amis/gh-pages/pkg/tinymce_e04c2eb.js
2020-07-20 18:12:43 +08:00

146 lines
1.4 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;/*!node_modules/tinymce/tinymce.js*/
amis.define("node_modules/tinymce/tinymce",function(e,t,n){!function(e){"use strict";function t(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)}}function r(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)for(var o=0,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 o(){for(var e=0,t=0,n=arguments.length;n>t;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;n>t;t++)for(var i=arguments[t],a=0,u=i.length;u>a;a++,o++)r[o]=i[a];return r}function i(t,n){void 0===n&&(n={});var r,o=0,i={};r=n.maxLoadTime||5e3;var a=function(e){n.referrerPolicy=e},u=function(e){t.getElementsByTagName("head")[0].appendChild(e)},c=function(a,c,s){var l,f,d,h,m=function(e){h.status=e,h.passed=[],h.failed=[],l&&(l.onload=null,l.onerror=null,l=null)},g=function(){for(var e=h.passed,t=e.length;t--;)e[t]();m(2)},p=function(){for(var e=h.failed,t=e.length;t--;)e[t]();m(3)},v=function(){var t=e.navigator.userAgent.match(/WebKit\/(\d*)/);return!!(t&&parseInt(t[1],10)<536)},y=function(e,t){e()||((new Date).getTime()-d<r?wi.setTimeout(t):p())},b=function(){y(function(){for(var e,n,r=t.styleSheets,o=r.length;o--;)if(e=r[o],n=e.ownerNode?e.ownerNode:e.owningElement,n&&n.id===l.id)return g(),!0},b)},C=function(){y(function(){try{var e=f.sheet.cssRules;return g(),!!e}catch(t){}},C)};if(a=ea._addCacheSuffix(a),i[a]?h=i[a]:(h={passed:[],failed:[]},i[a]=h),c&&h.passed.push(c),s&&h.failed.push(s),1!==h.status){if(2===h.status)return void g();if(3===h.status)return void p();if(h.status=1,l=t.createElement("link"),l.rel="stylesheet",l.type="text/css",l.id="u"+o++,l.async=!1,l.defer=!1,d=(new Date).getTime(),n.contentCssCors&&(l.crossOrigin="anonymous"),n.referrerPolicy&&Ao(Zt.fromDom(l),"referrerpolicy",n.referrerPolicy),"onload"in l&&!v())l.onload=b,l.onerror=p;else{if(e.navigator.userAgent.indexOf("Firefox")>0)return f=t.createElement("style"),f.textContent='@import "'+a+'"',C(),void u(f);b()}u(l),l.href=a}},s=function(e){return ai.nu(function(t){c(e,F(t,U(di.value(e))),F(t,U(di.error(e))))})},l=function(e){return e.fold(j,j)},f=function(e,t,n){ci(gt(e,s)).get(function(e){var r=yt(e,function(e){return e.isValue()});r.fail.length>0?n(r.fail.map(l)):t(r.pass.map(l))})};return{load:c,loadAll:f,_setReferrerPolicy:a}}function a(e){var t,n,r,o,i,a,u,c,s,l,f,d,h,m={},g={},p=[],v={},y={},b=function(t,n,r){var o=e[t];return o?o=su(o,/[, ]/,su(o.toUpperCase(),/[, ]/)):(o=uu[t],o||(o=su(n," ",su(n.toUpperCase()," ")),o=fu(o,r),uu[t]=o)),o};e=e||{},r=gu(e.schema),e.verify_html===!1&&(e.valid_elements="*[*]"),t=pu(e.valid_styles),n=pu(e.invalid_styles,"map"),c=pu(e.valid_classes,"map"),o=b("whitespace_elements","pre script noscript style textarea video audio iframe object code"),i=b("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),a=b("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),u=b("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),l=b("non_empty_elements","td th iframe video audio object script pre code",a),f=b("move_caret_before_on_enter_elements","table",l),d=b("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"),s=b("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",d),h=b("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp"),lu((e.special||"script noscript noframes noembed title style textarea xmp").split(" "),function(e){y[e]=new RegExp("</"+e+"[^>]*>","gi")});var C=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},w=function(e){var t,n,r,o,i,a,u,c,s,l,f,d,h,g,v,y,b,w,x,E=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/,z=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,k=/[*?+]/;if(e)for(e=mu(e,","),m["@"]&&(y=m["@"].attributes,b=m["@"].attributesOrder),t=0,n=e.length;n>t;t++)if(i=E.exec(e[t])){if(g=i[1],s=i[2],v=i[3],c=i[5],d={},h=[],a={attributes:d,attributesOrder:h},"#"===g&&(a.paddEmpty=!0),"-"===g&&(a.removeEmpty=!0),"!"===i[4]&&(a.removeEmptyAttrs=!0),y){for(w in y)d[w]=y[w];h.push.apply(h,b)}if(c)for(c=mu(c,"|"),r=0,o=c.length;o>r;r++)if(i=z.exec(c[r])){if(u={},f=i[1],l=i[2].replace(/[\\:]:/g,":"),g=i[3],x=i[4],"!"===f&&(a.attributesRequired=a.attributesRequired||[],a.attributesRequired.push(l),u.required=!0),"-"===f){delete d[l],h.splice(hu(h,l),1);continue}g&&("="===g&&(a.attributesDefault=a.attributesDefault||[],a.attributesDefault.push({name:l,value:x}),u.defaultValue=x),":"===g&&(a.attributesForced=a.attributesForced||[],a.attributesForced.push({name:l,value:x}),u.forcedValue=x),"<"===g&&(u.validValues=su(x,"?"))),k.test(l)?(a.attributePatterns=a.attributePatterns||[],u.pattern=C(l),a.attributePatterns.push(u)):(d[l]||h.push(l),d[l]=u)}y||"@"!==s||(y=d,b=h),v&&(a.outputName=s,m[v]=a),k.test(s)?(a.pattern=C(s),p.push(a)):m[s]=a}},x=function(e){m={},p=[],w(e),lu(r,function(e,t){g[t]=e.children})},E=function(e){var t=/^(~)?(.+)$/;e&&(uu.text_block_elements=uu.block_elements=null,lu(mu(e,","),function(e){var n=t.exec(e),r="~"===n[1],o=r?"span":"div",i=n[2];if(g[i]=g[o],v[i]=o,r||(s[i.toUpperCase()]={},s[i]={}),!m[i]){var a=m[o];a=fu({},a),delete a.removeEmptyAttrs,delete a.removeEmpty,m[i]=a}lu(g,function(e,t){e[o]&&(g[t]=e=fu({},g[t]),e[i]=e[o])})}))},z=function(t){var n=/^([+\-]?)(\w+)\[([^\]]+)\]$/;uu[e.schema]=null,t&&lu(mu(t,","),function(e){var t,r,o=n.exec(e);o&&(r=o[1],t=r?g[o[2]]:g[o[2]]={"#comment":{}},t=g[o[2]],lu(mu(o[3],"|"),function(e){"-"===r?delete t[e]:t[e]={}}))})},k=function(e){var t,n=m[e];if(n)return n;for(t=p.length;t--;)if(n=p[t],n.pattern.test(e))return n};e.valid_elements?x(e.valid_elements):(lu(r,function(e,t){m[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},g[t]=e.children}),"html5"!==e.schema&&lu(mu("strong/b em/i"),function(e){e=mu(e,"/"),m[e[1]].outputName=e[0]}),lu(mu("ol ul sub sup blockquote span font a table tbody tr strong em b i"),function(e){m[e]&&(m[e].removeEmpty=!0)}),lu(mu("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(e){m[e].paddEmpty=!0}),lu(mu("span"),function(e){m[e].removeEmptyAttrs=!0})),E(e.custom_elements),z(e.valid_children),w(e.extended_valid_elements),z("+ol[ul|ol],+ul[ul|ol]"),lu({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,t){m[t]&&(m[t].parentsRequired=mu(e))}),e.invalid_elements&&lu(du(e.invalid_elements),function(e){m[e]&&delete m[e]}),k("span")||w("span[!data-mce-type|*]");var N=function(){return t},S=function(){return n},T=function(){return c},A=function(){return u},R=function(){return s},B=function(){return d},D=function(){return h},M=function(){return a},_=function(){return i},P=function(){return l},O=function(){return f},H=function(){return o},L=function(){return y},I=function(e,t){var n=g[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},V=function(e,t){var n,r,o=k(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(n=o.attributePatterns)for(r=n.length;r--;)if(n[r].pattern.test(e))return!0}return!1},F=function(){return v};return{children:g,elements:m,getValidStyles:N,getValidClasses:T,getBlockElements:R,getInvalidStyles:S,getShortEndedElements:M,getTextBlockElements:B,getTextInlineElements:D,getBoolAttrs:A,getElementRule:k,getSelfClosingElements:_,getNonEmptyElements:P,getMoveCaretBeforeOnEnterElements:O,getWhiteSpaceElements:H,getSpecialElements:L,isValidChild:I,isValid:V,getCustomElements:F,addValidElements:w,setValidElements:x,addCustomElements:E,addValidChildren:z}}function u(){function e(n,r){return t.push(n+" ")>Ha.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function c(e){return e[Mu]=!0,e}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Uu)-(~e.sourceIndex||Uu);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function l(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function f(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function d(e){return c(function(t){return t=+t,c(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function h(e){return e&&typeof e.getElementsByTagName!==Fu&&e}function m(){}function g(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function p(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=Ou++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var u,c,s=[Pu,i];if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o){if(c=t[Mu]||(t[Mu]={}),(u=c[r])&&u[0]===Pu&&u[1]===i)return s[2]=u[2];if(c[r]=s,s[2]=e(t,n,a))return!0}}}function v(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function y(e,t,n){for(var r=0,o=t.length;o>r;r++)vc(e,t[r],n);return n}function b(e,t,n,r,o){for(var i,a=[],u=0,c=e.length,s=null!=t;c>u;u++)(i=e[u])&&(!n||n(i,r,o))&&(a.push(i),s&&t.push(u));return a}function C(e,t,n,r,o,i){return r&&!r[Mu]&&(r=C(r)),o&&!o[Mu]&&(o=C(o,i)),c(function(i,a,u,c){var s,l,f,d=[],h=[],m=a.length,g=i||y(t||"*",u.nodeType?[u]:u,[]),p=!e||!i&&t?g:b(g,d,e,u,c),v=n?o||(i?e:m||r)?[]:a:p;if(n&&n(p,v,u,c),r)for(s=b(v,h),r(s,[],u,c),l=s.length;l--;)(f=s[l])&&(v[h[l]]=!(p[h[l]]=f));if(i){if(o||e){if(o){for(s=[],l=v.length;l--;)(f=v[l])&&s.push(p[l]=f);o(null,v=[],s,c)}for(l=v.length;l--;)(f=v[l])&&(s=o?Yu.call(i,f):d[l])>-1&&(i[s]=!(a[s]=f))}}else v=b(v===a?v.splice(m,v.length):v),o?o(null,a,v,c):Ku.apply(a,v)})}function w(e){for(var t,n,r,o=e.length,i=Ha.relative[e[0].type],a=i||Ha.relative[" "],u=i?1:0,c=p(function(e){return e===t},a,!0),s=p(function(e){return Yu.call(t,e)>-1},a,!0),l=[function(e,n,r){return!i&&(r||n!==ja)||((t=n).nodeType?c(e,n,r):s(e,n,r))}];o>u;u++)if(n=Ha.relative[e[u].type])l=[p(v(l),n)];else{if(n=Ha.filter[e[u].type].apply(null,e[u].matches),n[Mu]){for(r=++u;o>r&&!Ha.relative[e[r].type];r++);return C(u>1&&v(l),u>1&&g(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(tc,"$1"),n,r>u&&w(e.slice(u,r)),o>r&&w(e=e.slice(r)),o>r&&g(e))}l.push(n)}return v(l)}function x(e,t){var n=t.length>0,r=e.length>0,o=function(o,i,a,u,c){var s,l,f,d=0,h="0",m=o&&[],g=[],p=ja,v=o||r&&Ha.find.TAG("*",c),y=Pu+=null==p?1:Math.random()||.1,C=v.length;for(c&&(ja=i!==Ka&&i);h!==C&&null!=(s=v[h]);h++){if(r&&s){for(l=0;f=e[l++];)if(f(s,i,a)){u.push(s);break}c&&(Pu=y)}n&&((s=!f&&s)&&d--,o&&m.push(s))}if(d+=h,n&&h!==d){for(l=0;f=t[l++];)f(m,g,i,a);if(o){if(d>0)for(;h--;)m[h]||g[h]||(g[h]=$u.call(u));g=b(g)}Ku.apply(u,g),c&&!o&&g.length>0&&d+t.length>1&&vc.uniqueSort(u)}return c&&(Pu=y,ja=p),m};return n?c(o):o}function E(t,n){var r=this;void 0===n&&(n={});var o,u={},c=e.window,s={},l=0,f=!0,d=!0,h=i(t,{contentCssCors:n.contentCssCors,referrerPolicy:n.referrerPolicy}),m=[],g=n.schema?n.schema:a({}),p=Cu({url_converter:n.url_converter,url_converter_scope:n.url_converter_scope},n.schema),v=n.ownEvents?new Du:Du.Event,y=g.getBlockElements(),b=Kc.overrideDefaults(function(){return{context:t,element:Dt.getRoot()}}),C=function(e){if("string"==typeof e)return!!y[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!y[e.nodeName])}return!1},w=function(e){if(e&&t&&"string"==typeof e){var n=t.getElementById(e);return n&&n.id!==e?t.getElementsByName(e)[1]:n}return e},x=function(e){return"string"==typeof e&&(e=w(e)),b(e)},z=function(e,t,n){var r,i,a=x(e);return a.length&&(r=o[t],i=r&&r.get?r.get(a,t):a.attr(t)),"undefined"==typeof i&&(i=n||""),i},k=function(e){var t=w(e);return t?t.attributes:[]},N=function(e,t,r){var i,a;""===r&&(r=null);var u=x(e);i=u.attr(t),u.length&&(a=o[t],a&&a.set?a.set(u,r,t):u.attr(t,r),i!==r&&n.onSetAttrib&&n.onSetAttrib({attrElm:u,attrName:t,attrValue:r}))},S=function(e,n){if(!Zc||1!==e.nodeType||n)return e.cloneNode(n);if(!n){var r=t.createElement(e.nodeName);return Yc(k(e),function(t){N(r,t.nodeName,z(e,t.nodeName))}),r}return null},T=function(){return n.root_element||t.body},A=function(e){var t=oo(e);return{x:t.x(),y:t.y(),w:t.width(),h:t.height()}},R=function(e,n){return $o.getPos(t.body,w(e),n)},B=function(e,t,r){var o=tt(t)?x(e).css(t,r):x(e).css(t);n.update_styles&&ts(p,o)},D=function(e,t){var r=x(e).css(t);n.update_styles&&ts(p,r)},M=function(e,t,n){var r=x(e);return n?r.css(t):(t=t.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}),"float"===t&&(t=Ri.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},_=function(e){var t,n;return e=w(e),t=M(e,"width"),n=M(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}},P=function(e){var t,n;return e=w(e),t=R(e),n=_(e),{x:t.x,y:t.y,w:n.w,h:n.h}},O=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(Jc.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 vc(t,i[0].ownerDocument||i[0],null,i).length>0},H=function(e,t,n,r){var o,i=[],a=w(e);for(r=void 0===r,n=n||("BODY"!==T().nodeName?T().parentNode:null),ea.is(t,"string")&&(o=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return O(e,o)});a&&a!==n&&a.nodeType&&9!==a.nodeType;){if(!t||"function"==typeof t&&t(a)){if(!r)return[a];i.push(a)}a=a.parentNode}return r?i:null},L=function(e,t,n){var r=H(e,t,n,!1);return r&&r.length>0?r[0]:null},I=function(e,t,n){var r=t;if(e)for("string"==typeof t&&(r=function(e){return O(e,t)}),e=e[n];e;e=e[n])if("function"==typeof r&&r(e))return e;return null},V=function(e,t){return I(e,t,"nextSibling")},F=function(e,t){return I(e,t,"previousSibling")},U=function(e,r){return vc(e,w(r)||n.root_element||t,[])},j=function(e,t,n){var o,i="string"==typeof e?w(e):e;if(!i)return!1;if(ea.isArray(i)&&(i.length||0===i.length))return o=[],Yc(i,function(e,r){e&&("string"==typeof e&&(e=w(e)),o.push(t.call(n,e,r)))}),o;var a=n?n:r;return t.call(a,i)},q=function(e,t){x(e).each(function(e,n){Yc(t,function(e,t){N(n,t,e)})})},$=function(e,t){var n=x(e);Zc?n.each(function(e,n){if(n.canHaveHTML!==!1){for(;n.firstChild;)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(r){Kc("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}}):n.html(t)},W=function(e,n,r,o,i){return j(e,function(e){var a="string"==typeof n?t.createElement(n):n;return q(a,r),o&&("string"!=typeof o&&o.nodeType?a.appendChild(o):"string"==typeof o&&$(a,o)),i?a:e.appendChild(a)})},K=function(e,n,r){return W(t.createElement(e),e,n,r,!0)},X=au.decode,Y=au.encodeAllRaw,G=function(e,t,n){var r,o="";o+="<"+e;for(r in t)t.hasOwnProperty(r)&&null!==t[r]&&"undefined"!=typeof t[r]&&(o+=" "+r+'="'+Y(t[r])+'"');return"undefined"!=typeof n?o+">"+n+"</"+e+">":o+" />"},Z=function(e){var n,r=t.createElement("div"),o=t.createDocumentFragment();for(o.appendChild(r),e&&(r.innerHTML=e);n=r.firstChild;)o.appendChild(n);return o.removeChild(r),o},J=function(e,t){var n=x(e);return t?n.each(function(){for(var e;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]},Q=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))})},et=function(e){return p.parse(e)},nt=function(e,t){return p.serialize(e,t)},rt=function(n){var r,o;if(Dt!==E.DOM&&t===e.document){if(u[n])return;u[n]=!0}o=t.getElementById("mceDefaultStyles"),o||(o=t.createElement("style"),o.id="mceDefaultStyles",o.type="text/css",r=t.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o)),o.styleSheet?o.styleSheet.cssText+=n:o.appendChild(t.createTextNode(n))},ot=function(r){var o;return Dt!==E.DOM&&t===e.document?void E.DOM.loadCSS(r):(r||(r=""),o=t.getElementsByTagName("head")[0],void Yc(r.split(","),function(e){var t;e=ea._addCacheSuffix(e),s[e]||(s[e]=!0,t=K("link",$t($t({rel:"stylesheet",type:"text/css",href:e},n.contentCssCors?{crossOrigin:"anonymous"}:{}),n.referrerPolicy?{referrerPolicy:n.referrerPolicy}:{})),o.appendChild(t))}))},it=function(e,t,n){x(e).toggleClass(t,n).each(function(){""===this.className&&Kc(this).attr("class",null)})},at=function(e,t){x(e).addClass(t)},ut=function(e,t){it(e,t,!1)},ct=function(e,t){return x(e).hasClass(t)},st=function(e){x(e).show()},lt=function(e){x(e).hide()},ft=function(e){return"none"===x(e).css("display")},dt=function(e){return(e?e:"mce_")+l++},ht=function(e){var t="string"==typeof e?w(e):e;return No.isElement(t)?t.outerHTML:Kc("<div></div>").append(Kc(t).clone()).html()},mt=function(e,t){x(e).each(function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}J(Kc(this).html(t),!0)})},gt=function(e,t){var n=w(t);return j(e,function(e){var t,r;return t=n.parentNode,r=n.nextSibling,r?t.insertBefore(e,r):t.appendChild(e),e})},pt=function(e,t,n){return j(t,function(t){return ea.is(t,"array")&&(e=e.cloneNode(!0)),n&&Yc(Gc(t.childNodes),function(t){e.appendChild(t)}),t.parentNode.replaceChild(e,t)})},vt=function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=K(t),Yc(k(e),function(t){N(n,t.nodeName,z(e,t.nodeName))}),pt(n,e,!0)),n||e},yt=function(e,t){for(var n,r=e;r;){for(n=t;n&&r!==n;)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},bt=function(e){return p.toHex(ea.trim(e))},Ct=function(e){if(No.isElement(e)){var t="a"===e.nodeName.toLowerCase()&&!z(e,"href")&&z(e,"id");if(z(e,"name")||z(e,"data-mce-bookmark")||t)return!0}return!1},wt=function(e,t){var n,r,o=0;if(Ct(e))return!1;if(e=e.firstChild){var i=new Xc(e,e.parentNode),a=g?g.getWhiteSpaceElements():{};t=t||(g?g.getNonEmptyElements():null);do{if(n=e.nodeType,No.isElement(e)){var u=e.getAttribute("data-mce-bogus");if(u){e=i.next("all"===u);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"===r){o++,e=i.next();continue}return!1}if(Ct(e))return!1}if(8===n)return!1;if(3===n&&!Qc.test(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&Qc.test(e.nodeValue))return!1;e=i.next()}while(e)}return 1>=o},xt=function(){return t.createRange()},Et=function(e,t,n){var r,o,i,a=xt();return e&&t?(a.setStart(e.parentNode,ns(e)),a.setEnd(t.parentNode,ns(t)),r=a.extractContents(),a=xt(),a.setStart(t.parentNode,ns(t)+1),a.setEnd(e.parentNode,ns(e)+1),o=a.extractContents(),i=e.parentNode,i.insertBefore(Na.trimNode(Dt,r),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(Na.trimNode(Dt,o),e),J(e),n||t):void 0},zt=function(e,r,o,i){if(ea.isArray(e)){for(var a=e.length,u=[];a--;)u[a]=zt(e[a],r,o,i);return u}return!n.collect||e!==t&&e!==c||m.push([e,r,o,i]),v.bind(e,r,o,i||Dt)},kt=function(e,n,r){var o;if(ea.isArray(e)){o=e.length;for(var i=[];o--;)i[o]=kt(e[o],n,r);return i}if(m&&(e===t||e===c))for(o=m.length;o--;){var a=m[o];e!==a[0]||n&&n!==a[1]||r&&r!==a[2]||v.unbind(a[0],a[1],a[2])}return v.unbind(e,n,r)},Nt=function(e,t,n){return v.fire(e,t,n)},St=function(e){if(e&&No.isElement(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},Tt=function(e){for(var t=T(),n=null;e&&e!==t&&(n=St(e),null===n);e=e.parentNode);return n},At=function(){if(m)for(var e=m.length;e--;){var t=m[e];v.unbind(t[0],t[1],t[2])}vc.setDocument&&vc.setDocument()},Rt=function(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},Bt=function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},Dt={doc:t,settings:n,win:c,files:s,stdMode:f,boxModel:d,styleSheetLoader:h,boundEvents:m,styles:p,schema:g,events:v,isBlock:C,$:b,$$:x,root:null,clone:S,getRoot:T,getViewPort:A,getRect:P,getSize:_,getParent:L,getParents:H,get:w,getNext:V,getPrev:F,select:U,is:O,add:W,create:K,createHTML:G,createFragment:Z,remove:J,setStyle:B,getStyle:M,setStyles:D,removeAllAttribs:Q,setAttrib:N,setAttribs:q,getAttrib:z,getPos:R,parseStyle:et,serializeStyle:nt,addStyle:rt,loadCSS:ot,addClass:at,removeClass:ut,hasClass:ct,toggleClass:it,show:st,hide:lt,isHidden:ft,uniqueId:dt,setHTML:$,getOuterHTML:ht,setOuterHTML:mt,decode:X,encode:Y,insertAfter:gt,replace:pt,rename:vt,findCommonAncestor:yt,toHex:bt,run:j,getAttribs:k,isEmpty:wt,createRng:xt,nodeIndex:ns,split:Et,bind:zt,unbind:kt,fire:Nt,getContentEditable:St,getContentEditableParent:Tt,destroy:At,isChildOf:Rt,dumpRng:Bt};return o=es(p,n,function(){return Dt}),Dt}function z(){var e=this,t=[],n={},r={},o=[],i=function(e,t){var n=bt(o,function(n){return n.name===e&&n.state===t});pt(n,function(e){return e.callback()})},a=function(e){return r[e]?r[e].instance:void 0},u=function(e){var t;return r[e]&&(t=r[e].dependencies),t||[]},c=function(e,t){z.languageLoad!==!1&&g(e,function(){var r=zs.getCode(),o=","+(t||"")+",";!r||t&&-1===o.indexOf(","+r+",")||fs.ScriptLoader.add(n[e]+"/langs/"+r+".js")},"loaded")},s=function(e,n,o){var a=n;return t.push(a),r[e]={instance:a,dependencies:o},i(e,"added"),a},l=function(e){delete n[e],delete r[e]},f=function(e,t){return"object"==typeof t?t:"string"==typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},d=function(t,n){var r=e.urls[t];pt(n,function(e){fs.ScriptLoader.add(r+"/"+e)})},h=function(e,t,n,r){var o=u(e);pt(o,function(e){var n=f(t,e);m(n.resource,n,void 0,void 0)}),n&&n.call(r?r:fs)},m=function(e,t,o,a,u){if(!n[e]){var c="string"==typeof t?t:t.prefix+t.resource+t.suffix;0!==c.indexOf("/")&&-1===c.indexOf("://")&&(c=z.baseURL+"/"+c),n[e]=c.substring(0,c.lastIndexOf("/"));var s=function(){i(e,"loaded"),h(e,t,o,a)};r[e]?s():fs.ScriptLoader.add(c,s,a,u)}},g=function(e,t,i){void 0===i&&(i="added"),qt(r,e)&&"added"===i?t():qt(n,e)&&"loaded"===i?t():o.push({name:e,state:i,callback:t})};return{items:t,urls:n,lookup:r,_listeners:o,get:a,dependencies:u,requireLangPack:c,add:s,remove:l,createUrl:f,addComponents:d,load:m,waitFor:g}}function k(e,t,n,r,o){return e(n,r)?J.some(n):at(o)&&o(n)?J.none():t(n,r,o)}function N(e,t,n){var r=function(){return yf(e)?0===t:0===t},o=function(){return yf(e)?t>=e.data.length:t>=e.childNodes.length},i=function(){var n;return n=xf(e.ownerDocument),n.setStart(e,t),n.setEnd(e,t),n},a=function(){return n||(n=Bf(N(e,t))),n},u=function(){return a().length>0},c=function(n){return n&&e===n.container()&&t===n.offset()},s=function(n){return wf(e,n?t-1:t)};return{container:U(e),offset:U(t),toRange:i,getClientRects:a,isVisible:u,isAtStart:r,isAtEnd:o,isEqual:c,getNode:s}}function S(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)?J.from(t.dom().nodeValue):J.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}}function T(e,t){void 0===t&&(t=a());var n=function(){};e=e||{},e.fix_self_closing!==!1&&(e.fix_self_closing=!0);var r=e.comment?e.comment:n,o=e.cdata?e.cdata:n,i=e.text?e.text:n,u=e.start?e.start:n,c=e.end?e.end:n,s=e.pi?e.pi:n,l=e.doctype?e.doctype:n,f=function(n,a){void 0===a&&(a="html");var f,d,h,m,g,p,v,y,b,C,w,x,E,z,k,N,S,T,A,R,B,D,M,_,P,O,H,L,I,V,F=0,U=[],j=0,q=au.decode,$=ea.makeMap("src,href,data,background,formaction,poster,xlink:href"),W=/((java|vb)script|mhtml):/i,K="html"===a?0:1,X=function(e){var t,n;for(t=U.length;t--&&U[t].name!==e;);if(t>=0){for(n=U.length-1;n>=t;n--)e=U[n],e.valid&&c(e.name);U.length=t}},Y=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),r(t))},G=function(e,t){var r=e||"",o=!Pn(r,"--"),i=Gg(n,o,t);return e=n.substr(t,i-t),Y(o?r+e:e),i+1},Z=function(t,n,r,o,i){var a,u,c=/[\s\u0000-\u001F]+/g;if(n=n.toLowerCase(),r=n in w?n:q(r||o||i||""),E&&!y&&Wg(n)===!1){if(a=T[n],!a&&A){for(u=A.length;u--&&(a=A[u],!a.pattern.test(n)););-1===u&&(a=null)}if(!a)return;if(a.validValues&&!(r in a.validValues))return}if($[n]&&!e.allow_script_urls){var s=r.replace(c,"");try{s=decodeURIComponent(s)}catch(l){s=unescape(s)}if(W.test(s))return;if(Kg(e,s))return}y&&(n in $||0===n.indexOf("on"))||(m.map[n]=r,m.push({name:n,value:r}))};for(O=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"),H=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,C=t.getShortEndedElements(),P=e.self_closing_elements||t.getSelfClosingElements(),w=t.getBoolAttrs(),E=e.validate,b=e.remove_internals,V=e.fix_self_closing,L=t.getSpecialElements(),M=n+">";f=O.exec(M);){var J=f[0];if(F<f.index&&i(q(n.substr(F,f.index-F))),d=f[7])d=d.toLowerCase(),":"===d.charAt(0)&&(d=d.substr(1)),X(d);else if(d=f[8]){if(f.index+J.length>n.length){i(q(n.substr(f.index))),F=f.index+J.length;continue}d=d.toLowerCase(),":"===d.charAt(0)&&(d=d.substr(1)),x=d in C,V&&P[d]&&U.length>0&&U[U.length-1].name===d&&X(d);var Q=Zg(H,f[9]);if(null!==Q){if("all"===Q){F=Xg(t,n,O.lastIndex),O.lastIndex=F;continue}k=!1}if(!E||(z=t.getElementRule(d))){if(k=!0,E&&(T=z.attributes,A=z.attributePatterns),(S=f[9])?(y=-1!==S.indexOf("data-mce-type"),y&&b&&(k=!1),m=[],m.map={},S.replace(H,Z)):(m=[],m.map={}),E&&!y){if(R=z.attributesRequired,B=z.attributesDefault,D=z.attributesForced,_=z.removeEmptyAttrs,_&&!m.length&&(k=!1),D)for(g=D.length;g--;)N=D[g],v=N.name,I=N.value,"{$uid}"===I&&(I="mce_"+j++),m.map[v]=I,m.push({name:v,value:I});if(B)for(g=B.length;g--;)N=B[g],v=N.name,v in m.map||(I=N.value,"{$uid}"===I&&(I="mce_"+j++),m.map[v]=I,m.push({name:v,value:I}));if(R){for(g=R.length;g--&&!(R[g]in m.map););-1===g&&(k=!1)}if(N=m.map["data-mce-bogus"]){if("all"===N){F=Xg(t,n,O.lastIndex),O.lastIndex=F;continue}k=!1}}k&&u(d,m,x)}else k=!1;if(h=L[d]){h.lastIndex=F=f.index+J.length,(f=h.exec(n))?(k&&(p=n.substr(F,f.index-F)),F=f.index+f[0].length):(p=n.substr(F),F=n.length),k&&(p.length>0&&i(p,!0),c(d)),O.lastIndex=F;continue}x||(S&&S.indexOf("/")===S.length-1?k&&c(d):U.push({name:d,valid:k}))}else if(d=f[1])Y(d);else if(d=f[2]){var et=1===K||e.preserve_cdata||U.length>0&&t.isValidChild(U[U.length-1].name,"#cdata");if(!et){F=G("",f.index+2),O.lastIndex=F;continue}o(d)}else if(d=f[3])l(d);else{if((d=f[4])||"<!"===J){F=G(d,f.index+J.length),O.lastIndex=F;continue}if(d=f[5]){if(1!==K){F=G("?",f.index+2),O.lastIndex=F;continue}s(d,f[6])}}F=f.index+J.length}for(F<n.length&&i(q(n.substr(F))),g=U.length-1;g>=0;g--)d=U[g],d.valid&&c(d.name)};return{parse:f}}function A(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}}function R(e){var t=[],n=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():A()},r=function(){return J.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)},u=function(e){Et(t,function(t){return t===e}).each(function(e){t.splice(e,1)})},c=function(r){return!e.removed&&Yy.isEditorAttachedToDom(e)?xt(t,function(e){return o(n().getArgs(e),r)}).getOrThunk(function(){e.editorManager.setActive(e);var t=n().open(r,function(){u(t),i()});return a(t),i(),t}):void 0},s=function(){r().each(function(e){n().close(e),u(e),i()})},l=function(){return t},f=function(e){e.on("SkinLoaded",function(){var t=e.settings.service_message;t&&c({text:t,type:"warning",timeout:0})}),e.on("ResizeEditor ResizeWindow NodeChange",function(){wi.requestAnimationFrame(i)}),e.on("remove",function(){pt(t.slice(),function(e){n().close(e)})})};return f(e),{open:c,close:s,getNotifications:l}}function B(){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}}function D(e){return{getBookmark:t(Km.getBookmark,e),moveToBookmark:t(Km.moveToBookmark,e)}}function M(e,t){var n=function(t,n){if(!ut(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom();So(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(0>=r||null===r){var o=Po(n,e);return parseFloat(o)||0}return r},o=r,i=function(e,t){return wt(t,function(t,n){var r=Po(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}}function _(e,t){var n,r;return{selectorChangedWithUnbind:function(o,i){return n||(n={},r={},t.on("NodeChange",function(t){var o=t.element,i=e.getParents(o,null,e.getRoot()),a={};ea.each(n,function(t,n){ea.each(i,function(o){return e.is(o,n)?(r[n]||(ea.each(t,function(e){e(!0,{node:o,selector:n,parents:i})}),r[n]=t),a[n]=t,!1):void 0})}),ea.each(r,function(e,t){a[t]||(delete r[t],ea.each(e,function(e){e(!1,{node:o,selector:t,parents:i})}))})})),n[o]||(n[o]=[]),n[o].push(i),{unbind:function(){Ow(n,o,i),Ow(r,o,i)}}}}}function P(e,t){var n={},r=function(r,o){var i;o||(o=U(!0)),i=bt(Ax(r),function(t){var n=t.src;return Ri.fileApi?t.hasAttribute("data-mce-bogus")?!1:t.hasAttribute("data-mce-placeholder")?!1:n&&n!==Ri.transparentSrc?0===n.indexOf("blob:")?!e.isUploaded(n)&&o(t):0===n.indexOf("data:")?o(t):!1:!1:!1});var a=gt(i,function(e){if(n[e.src])return new mi(function(t){n[e.src].then(function(n){return"string"==typeof n?n:void t({image:e,blobInfo:n.blobInfo})})});var r=new mi(function(n,r){Tx(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 mi.all(a)};return{findAll:r}}function O(t,n){var r={},o=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},i=function(t,r,i,a){var u,c;u=new e.XMLHttpRequest,u.open("POST",n.url),u.withCredentials=n.credentials,u.upload.onprogress=function(e){a(e.loaded/e.total*100)},u.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+u.status)},u.onload=function(){var e;return u.status<200||u.status>=300?void i("HTTP Error: "+u.status):(e=JSON.parse(u.responseText),e&&"string"==typeof e.location?void r(o(n.basePath,e.location)):void i("Invalid JSON: "+u.responseText))},c=new e.FormData,c.append("file",t.blob(),t.filename()),u.send(c)},a=function(){return new mi(function(e){e([])})},u=function(e,t){return{url:t,blobInfo:e,status:!0}},c=function(e,t){return{url:"",blobInfo:e,status:!1,error:t}},s=function(e,t){ea.each(r[e],function(e){e(t)}),delete r[e]},l=function(e,n,r){return t.markPending(e.blobUri()),new mi(function(o){var i,a,l=function(){};try{var f=function(){i&&(i.close(),a=l)},d=function(n){f(),t.markUploaded(e.blobUri(),n),s(e.blobUri(),u(e,n)),o(u(e,n))},h=function(n){f(),t.removeFailed(e.blobUri()),s(e.blobUri(),c(e,n)),o(c(e,n))};a=function(e){0>e||e>100||(i||(i=r()),i.progressBar.value(e))},n(e,d,h,a)}catch(m){o(c(e,m.message))}})},f=function(e){return e===i},d=function(e){var t=e.blobUri();return new mi(function(e){r[t]=r[t]||[],r[t].push(e)})},h=function(e,r){return e=ea.grep(e,function(e){return!t.isUploaded(e.blobUri())
}),mi.all(ea.map(e,function(e){return t.isPending(e.blobUri())?d(e):l(e,n.handler,r)}))},m=function(e,t){return!n.url&&f(n.handler)?a():h(e,t)};return at(n.handler)===!1&&(n.handler=i),{upload:m}}function H(){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:!1},u=function(e){return o(e)?n[e].status===t:!1},c=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:u,markPending:c,markUploaded:s,removeFailed:l,destroy:f}}function L(e){var t={},n=function(e){return e?t[e]:t},r=function(e){return qt(t,e)},o=function(e,n){e&&("string"!=typeof e?ea.each(e,function(e,t){o(t,e)}):(rt(n)||(n=[n]),ea.each(n,function(e){"undefined"==typeof e.deep&&(e.deep=!e.selector),"undefined"==typeof e.split&&(e.split=!e.selector||e.inline),"undefined"==typeof e.remove&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"==typeof e.classes&&(e.classes=e.classes.split(/\s+/))}),t[e]=n))},i=function(e){return e&&t[e]&&delete t[e],t};return o(nk.get(e.dom)),o(e.settings.formats),{get:n,has:r,register:o,unregister:i}}function I(e){var t=function(t,n){return Rg.walk(e,t,n)},n=Qx,r=function(t){return xw.normalize(e,t).fold(U(!1),function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0})};return{walk:t,split:n,normalize:r}}var V=function(){},F=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},U=function(e){return function(){return e}},j=function(e){return e},q=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},$=function(e){return function(){throw new Error(e)}},W=U(!1),K=U(!0),X=function(){return Y},Y=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e){return e()},is:W,isSome:W,isNone:K,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:U(null),getOrUndefined:U(void 0),or:n,orThunk:t,map:X,each:V,bind:X,exists:W,forall:K,filter:X,equals:e,equals_:e,toArray:function(){return[]},toString:U("none()")};return Object.freeze&&Object.freeze(r),r}(),G=function(e){var t=U(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:K,isNone:W,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return G(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+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(W,function(t){return n(e,t)})}};return o},Z=function(e){return null===e||void 0===e?Y:G(e)},J={some:G,none:X,from:Z},Q=function(e){if(null===e)return"null";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},et=function(e){return function(t){return Q(t)===e}},tt=et("string"),nt=et("object"),rt=et("array"),ot=et("null"),it=et("boolean"),at=et("function"),ut=et("number"),ct=Array.prototype.slice,st=Array.prototype.indexOf,lt=Array.prototype.push,ft=function(e,t){return st.call(e,t)},dt=function(e,t){var n=ft(e,t);return-1===n?J.none():J.some(n)},ht=function(e,t){return ft(e,t)>-1},mt=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return!0}return!1},gt=function(e,t){for(var n=e.length,r=new Array(n),o=0;n>o;o++){var i=e[o];r[o]=t(i,o)}return r},pt=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];t(o,n)}},vt=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},yt=function(e,t){for(var n=[],r=[],o=0,i=e.length;i>o;o++){var a=e[o],u=t(a,o)?n:r;u.push(a)}return{pass:n,fail:r}},bt=function(e,t){for(var n=[],r=0,o=e.length;o>r;r++){var i=e[r];t(i,r)&&n.push(i)}return n},Ct=function(e,t,n){return vt(e,function(e){n=t(n,e)}),n},wt=function(e,t,n){return pt(e,function(e){n=t(n,e)}),n},xt=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return J.some(o)}return J.none()},Et=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return J.some(n)}return J.none()},zt=function(e){for(var t=[],n=0,r=e.length;r>n;++n){if(!rt(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);lt.apply(t,e[n])}return t},kt=function(e,t){return zt(gt(e,t))},Nt=function(e,t){for(var n=0,r=e.length;r>n;++n){var o=e[n];if(t(o,n)!==!0)return!1}return!0},St=function(e){var t=ct.call(e,0);return t.reverse(),t},Tt=function(e,t){return bt(e,function(e){return!ht(t,e)})},At=function(e,t){for(var n={},r=0,o=e.length;o>r;r++){var i=e[r];n[String(i)]=t(i,r)}return n},Rt=function(e,t){var n=ct.call(e,0);return n.sort(t),n},Bt=function(e){return 0===e.length?J.none():J.some(e[0])},Dt=function(e){return 0===e.length?J.none():J.some(e[e.length-1])},Mt=at(Array.from)?Array.from:function(e){return ct.call(e)},_t=Object.keys,Pt=Object.hasOwnProperty,Ot=function(e,t){for(var n=_t(e),r=0,o=n.length;o>r;r++){var i=n[r],a=e[i];t(a,i)}},Ht=function(e,t){return Lt(e,function(e,n){return{k:n,v:t(e,n)}})},Lt=function(e,t){var n={};return Ot(e,function(e,r){var o=t(e,r);n[o.k]=o.v}),n},It=function(e){return function(t,n){e[n]=t}},Vt=function(e,t,n,r){var o={};return Ot(e,function(e,o){(t(e,o)?n:r)(e,o)}),o},Ft=function(e,t){var n={},r={};return Vt(e,t,It(n),It(r)),{t:n,f:r}},Ut=function(e,t){var n={};return Vt(e,t,It(n),V),n},jt=function(e,t){return qt(e,t)?J.from(e[t]):J.none()},qt=function(e,t){return Pt.call(e,t)},$t=function(){return $t=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$t.apply(this,arguments)},Wt=function(t,n){var r=n||e.document,o=r.createElement("div");if(o.innerHTML=t,!o.hasChildNodes()||o.childNodes.length>1)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Yt(o.childNodes[0])},Kt=function(t,n){var r=n||e.document,o=r.createElement(t);return Yt(o)},Xt=function(t,n){var r=n||e.document,o=r.createTextNode(t);return Yt(o)},Yt=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:U(e)}},Gt=function(e,t,n){var r=e.dom();return J.from(r.elementFromPoint(t,n)).map(Yt)},Zt={fromHtml:Wt,fromTag:Kt,fromText:Xt,fromDom:Yt,fromPoint:Gt},Jt=function(e){var t=e,n=function(){return t},r=function(e){t=e},o=function(){return Jt(n())};return{get:n,set:r,clone:o}},Qt=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}return void 0},en=function(e,t){var n=Qt(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return rn(r(1),r(2))},tn=function(e,t){var n=String(t).toLowerCase();return 0===e.length?nn():en(e,n)},nn=function(){return rn(0,0)},rn=function(e,t){return{major:e,minor:t}},on={nu:rn,detect:tn,unknown:nn},an="Edge",un="Chrome",cn="IE",sn="Opera",ln="Firefox",fn="Safari",dn=function(e,t){return function(){return t===e}},hn=function(){return mn({current:void 0,version:on.unknown()})},mn=function(e){var t=e.current,n=e.version;return{current:t,version:n,isEdge:dn(an,t),isChrome:dn(un,t),isIE:dn(cn,t),isOpera:dn(sn,t),isFirefox:dn(ln,t),isSafari:dn(fn,t)}},gn={unknown:hn,nu:mn,edge:U(an),chrome:U(un),ie:U(cn),opera:U(sn),firefox:U(ln),safari:U(fn)},pn="Windows",vn="iOS",yn="Android",bn="Linux",Cn="OSX",wn="Solaris",xn="FreeBSD",En="ChromeOS",zn=function(e,t){return function(){return t===e}},kn=function(){return Nn({current:void 0,version:on.unknown()})},Nn=function(e){var t=e.current,n=e.version;return{current:t,version:n,isWindows:zn(pn,t),isiOS:zn(vn,t),isAndroid:zn(yn,t),isOSX:zn(Cn,t),isLinux:zn(bn,t),isSolaris:zn(wn,t),isFreeBSD:zn(xn,t),isChromeOS:zn(En,t)}},Sn={unknown:kn,nu:Nn,windows:U(pn),ios:U(vn),android:U(yn),linux:U(bn),osx:U(Cn),solaris:U(wn),freebsd:U(xn),chromeos:U(En)},Tn=function(e,t,n,r){var o=e.isiOS()&&/ipad/i.test(n)===!0,i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),u=a||r("(pointer:coarse)"),c=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!c,l=t.isSafari()&&e.isiOS()&&/safari/i.test(n)===!1,f=!s&&!c&&!l;return{isiPad:U(o),isiPhone:U(i),isTablet:U(c),isPhone:U(s),isTouch:U(u),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:U(l),isDesktop:U(f)}},An=function(e,t){var n=String(t).toLowerCase();return xt(e,function(e){return e.search(n)})},Rn=function(e,t){return An(e,t).map(function(e){var n=on.detect(e.versionRegexes,t);return{current:e.name,version:n}})},Bn=function(e,t){return An(e,t).map(function(e){var n=on.detect(e.versionRegexes,t);return{current:e.name,version:n}})},Dn={detectBrowser:Rn,detectOs:Bn},Mn=function(e,t,n){if(""===t)return!0;if(e.length<t.length)return!1;var r=e.substr(n,n+t.length);return r===t},_n=function(e,t){return-1!==e.indexOf(t)},Pn=function(e,t){return Mn(e,t,0)},On=function(e){return e.replace(/^\s+|\s+$/g,"")},Hn=function(e){return e.replace(/^\s+/g,"")},Ln=function(e){return e.replace(/\s+$/g,"")},In=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Vn=function(e){return function(t){return _n(t,e)}},Fn=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return _n(e,"edge/")&&_n(e,"chrome")&&_n(e,"safari")&&_n(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,In],search:function(e){return _n(e,"chrome")&&!_n(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return _n(e,"msie")||_n(e,"trident")}},{name:"Opera",versionRegexes:[In,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Vn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Vn("firefox")},{name:"Safari",versionRegexes:[In,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(_n(e,"safari")||_n(e,"mobile/"))&&_n(e,"applewebkit")}}],Un=[{name:"Windows",search:Vn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return _n(e,"iphone")||_n(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Vn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Vn("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Vn("linux"),versionRegexes:[]},{name:"Solaris",search:Vn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Vn("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Vn("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],jn={browsers:U(Fn),oses:U(Un)},qn=function(e,t){var n=jn.browsers(),r=jn.oses(),o=Dn.detectBrowser(n,e).fold(gn.unknown,gn.nu),i=Dn.detectOs(r,e).fold(Sn.unknown,Sn.nu),a=Tn(i,o,e,t);return{browser:o,os:i,deviceType:a}},$n={detect:qn},Wn=function(t){return e.window.matchMedia(t).matches},Kn=Jt($n.detect(e.navigator.userAgent,Wn)),Xn=function(){return Kn.get()},Yn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e.length!==t.length)throw new Error('Wrong number of arguments to struct. Expected "['+e.length+']", got '+t.length+" arguments");var r={};return pt(e,function(e,n){r[e]=U(t[n])}),r}},Gn=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},Zn={toArray:Gn},Jn=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Qn=function(t,n){return Jn(t,n,e.Node.DOCUMENT_POSITION_PRECEDING)},er=function(t,n){return Jn(t,n,e.Node.DOCUMENT_POSITION_CONTAINED_BY)},tr={documentPositionPreceding:Qn,documentPositionContainedBy:er},nr=(e.Node.ATTRIBUTE_NODE,e.Node.CDATA_SECTION_NODE,e.Node.COMMENT_NODE,e.Node.DOCUMENT_NODE),rr=(e.Node.DOCUMENT_TYPE_NODE,e.Node.DOCUMENT_FRAGMENT_NODE,e.Node.ELEMENT_NODE),or=e.Node.TEXT_NODE,ir=(e.Node.PROCESSING_INSTRUCTION_NODE,e.Node.ENTITY_REFERENCE_NODE,e.Node.ENTITY_NODE,e.Node.NOTATION_NODE,rr),ar=nr,ur=function(e,t){var n=e.dom();if(n.nodeType!==ir)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")},cr=function(e){return e.nodeType!==ir&&e.nodeType!==ar||0===e.childElementCount},sr=function(t,n){var r=void 0===n?e.document:n.dom();return cr(r)?[]:gt(r.querySelectorAll(t),Zt.fromDom)},lr=function(t,n){var r=void 0===n?e.document:n.dom();return cr(r)?J.none():J.from(r.querySelector(t)).map(Zt.fromDom)},fr=function(e,t){return e.dom()===t.dom()},dr=function(e,t){var n=e.dom(),r=t.dom();return n===r?!1:n.contains(r)},hr=function(e,t){return tr.documentPositionContainedBy(e.dom(),t.dom())},mr=Xn().browser,gr=mr.isIE()?hr:dr,pr=function(e){return Zt.fromDom(e.dom().ownerDocument)},vr=function(e){return Zt.fromDom(e.dom().ownerDocument.documentElement)},yr=function(e){return Zt.fromDom(e.dom().ownerDocument.defaultView)},br=function(e){return J.from(e.dom().parentNode).map(Zt.fromDom)},Cr=function(e,t){for(var n=at(t)?t:W,r=e.dom(),o=[];null!==r.parentNode&&void 0!==r.parentNode;){var i=r.parentNode,a=Zt.fromDom(i);if(o.push(a),n(a)===!0)break;r=i}return o},wr=function(e){return J.from(e.dom().previousSibling).map(Zt.fromDom)},xr=function(e){return J.from(e.dom().nextSibling).map(Zt.fromDom)},Er=function(e){return St(Zn.toArray(e,wr))},zr=function(e){return Zn.toArray(e,xr)},kr=function(e){return gt(e.dom().childNodes,Zt.fromDom)},Nr=function(e,t){var n=e.dom().childNodes;return J.from(n[t]).map(Zt.fromDom)},Sr=function(e){return Nr(e,0)},Tr=function(e){return Nr(e,e.dom().childNodes.length-1)},Ar=function(e){return e.dom().childNodes.length},Rr=(Yn("element","offset"),function(e,t){var n=br(e);n.each(function(n){n.dom().insertBefore(t.dom(),e.dom())})}),Br=function(e,t){var n=xr(e);n.fold(function(){var n=br(e);n.each(function(e){Mr(e,t)})},function(e){Rr(e,t)})},Dr=function(e,t){var n=Sr(e);n.fold(function(){Mr(e,t)},function(n){e.dom().insertBefore(t.dom(),n.dom())})},Mr=function(e,t){e.dom().appendChild(t.dom())},_r=function(e,t){Rr(e,t),Mr(t,e)},Pr=function(e,t){pt(t,function(t){Rr(e,t)})},Or=function(e,t){pt(t,function(t){Mr(e,t)})},Hr=function(e){e.dom().textContent="",pt(kr(e),function(e){Lr(e)})},Lr=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},Ir=function(e){var t=kr(e);t.length>0&&Pr(e,t),Lr(e)},Vr=("undefined"!=typeof e.window?e.window:Function("return this;")(),function(e){var t=e.dom().nodeName;return t.toLowerCase()}),Fr=function(e){return e.dom().nodeType},Ur=function(e){return function(t){return Fr(t)===e}},jr=Ur(rr),qr=Ur(or),$r=function(e){var t=qr(e)?e.dom().parentNode:e.dom();return void 0!==t&&null!==t&&t.ownerDocument.body.contains(t)},Wr=function(e,t){var n=function(n,r){return Wr(e+n,t+r)};return{left:U(e),top:U(t),translate:n}},Kr=Wr,Xr=function(e){var t=e.getBoundingClientRect();return Kr(t.left,t.top)},Yr=function(e,t){return void 0!==e?e:void 0!==t?t:0},Gr=function(e){var t=e.dom().ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom())return Kr(n.offsetLeft,n.offsetTop);var i=Yr(r.pageYOffset,o.scrollTop),a=Yr(r.pageXOffset,o.scrollLeft),u=Yr(o.clientTop,n.clientTop),c=Yr(o.clientLeft,n.clientLeft);return Zr(e).translate(a-c,i-u)},Zr=function(e){var t=e.dom(),n=t.ownerDocument,r=n.body;return r===t?Kr(r.offsetLeft,r.offsetTop):$r(e)?Xr(t):Kr(0,0)},Jr=Xn().browser.isSafari(),Qr=function(t){var n=void 0!==t?t.dom():e.document,r=n.body.scrollLeft||n.documentElement.scrollLeft,o=n.body.scrollTop||n.documentElement.scrollTop;return Kr(r,o)},eo=function(t,n,r){var o=void 0!==r?r.dom():e.document,i=o.defaultView;i.scrollTo(t,n)},to=function(e,t){Jr&&at(e.dom().scrollIntoViewIfNeeded)?e.dom().scrollIntoViewIfNeeded(!1):e.dom().scrollIntoView(t)},no=function(t){var n=void 0===t?e.window:t;return J.from(n.visualViewport)},ro=function(e,t,n,r){return{x:U(e),y:U(t),width:U(n),height:U(r),right:U(e+n),bottom:U(t+r)}},oo=function(t){var n=void 0===t?e.window:t,r=n.document,o=Qr(Zt.fromDom(r));return no(n).fold(function(){var e=n.document.documentElement,t=e.clientWidth,r=e.clientHeight;return ro(o.left(),o.top(),t,r)},function(e){return ro(Math.max(e.pageLeft,o.left()),Math.max(e.pageTop,o.top()),e.width,e.height)})},io=function(e){return function(t){return!!t&&t.nodeType===e}},ao=function(e){return!!e&&!Object.getPrototypeOf(e)},uo=io(1),co=function(e){var t=e.map(function(e){return e.toLowerCase()});return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return ht(t,n)}return!1}},so=function(e,t){var n=t.toLowerCase().split(" ");return function(t){var r,o;if(uo(t))for(r=0;r<n.length;r++){var i=t.ownerDocument.defaultView.getComputedStyle(t,null);if(o=i?i.getPropertyValue(e):null,o===n[r])return!0}return!1}},lo=function(e,t){return function(n){return uo(n)&&n[e]===t}},fo=function(e){return function(t){return uo(t)&&t.hasAttribute(e)}},ho=function(e,t){return function(n){return uo(n)&&n.getAttribute(e)===t}},mo=function(e){return uo(e)&&e.hasAttribute("data-mce-bogus")},go=function(e){return uo(e)&&"all"===e.getAttribute("data-mce-bogus")},po=function(e){return uo(e)&&"TABLE"===e.tagName},vo=function(e){return function(t){if(uo(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},yo=co(["textarea","input"]),bo=io(3),Co=io(8),wo=io(9),xo=io(11),Eo=co(["br"]),zo=vo("true"),ko=vo("false"),No={isText:bo,isElement:uo,isComment:Co,isDocument:wo,isDocumentFragment:xo,isBr:Eo,isContentEditableTrue:zo,isContentEditableFalse:ko,isRestrictedNode:ao,matchNodeNames:co,hasPropValue:lo,hasAttribute:fo,hasAttributeValue:ho,matchStyleValues:so,isBogus:mo,isBogusAll:go,isTable:po,isTextareaOrInput:yo},So=function(e){return void 0!==e.style&&at(e.style.getPropertyValue)},To=function(t,n,r){if(!(tt(r)||it(r)||ut(r)))throw e.console.error("Invalid call to Attr.set. Key ",n,":: Value ",r,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(n,r+"")},Ao=function(e,t,n){To(e.dom(),t,n)},Ro=function(e,t){var n=e.dom();Ot(t,function(e,t){To(n,t,e)})},Bo=function(e,t){var n=e.dom().getAttribute(t);return null===n?void 0:n},Do=function(e,t){return J.from(Bo(e,t))},Mo=function(e,t){var n=e.dom();return n&&n.hasAttribute?n.hasAttribute(t):!1},_o=function(e,t){e.dom().removeAttribute(t)},Po=function(t,n){var r=t.dom(),o=e.window.getComputedStyle(r),i=o.getPropertyValue(n),a=""!==i||$r(t)?i:Oo(r,n);return null===a?void 0:a},Oo=function(e,t){return So(e)?e.style.getPropertyValue(t):""},Ho=function(e,t){var n=e.dom(),r=Oo(n,t);return J.from(r).filter(function(e){return e.length>0})},Lo=function(e){var t={},n=e.dom();if(So(n))for(var r=0;r<n.style.length;r++){var o=n.style.item(r);t[o]=n.style[o]}return t},Io=function(e){return e.dom().offsetWidth},Vo=Xn().browser,Fo=function(e){return xt(e,jr)},Uo=function(e){return Vo.isFirefox()&&"table"===Vr(e)?Fo(kr(e)).filter(function(e){return"caption"===Vr(e)}).bind(function(e){return Fo(zr(e)).map(function(t){var n=t.dom().offsetTop,r=e.dom().offsetTop,o=e.dom().offsetHeight;return r>=n?-o:0})}).getOr(0):0},jo=function(e,t){return e.children&&ht(e.children,t)},qo=function(e,t,n){var r,o,i=0,a=0,u=e.ownerDocument;if(n=n?n:e,t){if(n===e&&t.getBoundingClientRect&&"static"===Po(Zt.fromDom(e),"position"))return o=t.getBoundingClientRect(),i=o.left+(u.documentElement.scrollLeft||e.scrollLeft)-u.documentElement.clientLeft,a=o.top+(u.documentElement.scrollTop||e.scrollTop)-u.documentElement.clientTop,{x:i,y:a};for(r=t;r&&r!==n&&r.nodeType&&!jo(r,n);)i+=r.offsetLeft||0,a+=r.offsetTop||0,r=r.offsetParent;for(r=t.parentNode;r&&r!==n&&r.nodeType&&!jo(r,n);)i-=r.scrollLeft||0,a-=r.scrollTop||0,r=r.parentNode;a+=Uo(Zt.fromDom(t))}return{x:i,y:a}},$o={getPos:qo},Wo={},Ko={exports:Wo};!function(e,t,n,r){!function(r){if("object"==typeof t&&"undefined"!=typeof n)n.exports=r();else if("function"==typeof e&&e.amd)e([],r);else{var o;o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,o.EphoxContactWrapper=r()}}(function(){return function(){function e(t,n,o){function i(u,c){if(!n[u]){if(!t[u]){var s="function"==typeof r&&r;if(!c&&s)return s(u,!0);if(a)return a(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[u]={exports:{}};t[u][0].call(f.exports,function(e){var n=t[u][1][e];return i(n||e)},f,f.exports,e,t,n,o)}return n[u].exports}for(var a="function"==typeof r&&r,u=0;u<o.length;u++)i(o[u]);return i}return e}()({1:[function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){g&&h&&(g=!1,h.length?m=h.concat(m):p=-1,m.length&&u())}function u(){if(!g){var e=o(a);g=!0;for(var t=m.length;t;){for(h=m,m=[];++p<t;)h&&h[p].run();p=-1,t=m.length}h=null,g=!1,i(e)}}function c(e,t){this.fun=e,this.array=t}function s(){}var l,f,d=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var h,m=[],g=!1,p=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new c(e,t)),1!==m.length||g||o(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=s,d.addListener=s,d.once=s,d.off=s,d.removeListener=s,d.removeAllListeners=s,d.emit=s,d.prependListener=s,d.prependOnceListener=s,d.listeners=function(){return[]},d.binding=function(){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],2:[function(e,t){(function(e){!function(n){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){for(;3===e._state;)e=e._value;return 0===e._state?void e._deferreds.push(t):(e._handled=!0,void i._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._state?u:c)(t.promise,e._value);var r;try{r=n(e._value)}catch(o){return void c(t.promise,o)}u(t.promise,r)}))}function u(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){c(e,r)}}function c(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;n>t;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,u(t,e))},function(e){n||(n=!0,c(t,e))})}catch(r){if(n)return;n=!0,c(t,r)}}var d=setTimeout;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){function r(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,function(e){r(i,e)},n)}t[i]=a,0===--o&&e(t)}catch(c){n(c)}}if(0===t.length)return e([]);for(var o=t.length,i=0;i<t.length;i++)r(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;o>r;r++)e[r].then(t,n)})},i._immediateFn="function"==typeof e?function(t){e(t)}:function(e){d(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},"undefined"!=typeof t&&t.exports?t.exports=i:n.Promise||(n.Promise=i)}(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(e,t,n){(function(t,r){function o(e,t){this._id=e,this._clearFn=t}var i=e("process/browser.js").nextTick,a=Function.prototype.apply,u=Array.prototype.slice,c={},s=0;n.setTimeout=function(){return new o(a.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new o(a.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n.setImmediate="function"==typeof t?t:function(e){var t=s++,r=arguments.length<2?!1:u.call(arguments,1);return c[t]=!0,i(function(){c[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))}),t},n.clearImmediate="function"==typeof r?r:function(e){delete c[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t){var n=e("promise-polyfill"),r=function(){return"undefined"!=typeof window?window:Function("return this;")()}();t.exports={boltExport:r.Promise||n}},{"promise-polyfill":2}]},{},[4])(4)})}(void 0,Wo,Ko,void 0);var Xo,Yo,Go,Zo,Jo=Ko.exports.boltExport,Qo=function(t){var n=J.none(),r=[],o=function(e){return Qo(function(t){i(function(n){t(e(n))})})},i=function(e){u()?s(e):r.push(e)},a=function(e){n=J.some(e),c(r),r=[]},u=function(){return n.isSome()},c=function(e){pt(e,s)},s=function(t){n.each(function(n){e.setTimeout(function(){t(n)},0)})};return t(a),{get:i,map:o,isReady:u}},ei=function(e){return Qo(function(t){t(e)})},ti={nu:Qo,pure:ei},ni=function(t){e.setTimeout(function(){throw t},0)},ri=function(e){var t=function(t){e().then(t,ni)},n=function(t){return ri(function(){return e().then(t)})},r=function(t){return ri(function(){return e().then(function(e){return t(e).toPromise()})})},o=function(t){return ri(function(){return e().then(function(){return t.toPromise()})})},i=function(){return ti.nu(t)},a=function(){var t=null;return ri(function(){return null===t&&(t=e()),t})},u=e;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:a,toPromise:u,get:t}},oi=function(e){return ri(function(){return new Jo(e)})},ii=function(e){return ri(function(){return Jo.resolve(e)})},ai={nu:oi,pure:ii},ui=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([]):pt(e,function(e,t){e.get(o(t))})})},ci=function(e){return ui(e,ai.nu)},si=function(e){var t=function(t){return e===t},n=function(){return si(e)},r=function(){return si(e)},o=function(t){return si(t(e))},i=function(){return si(e)},a=function(t){t(e)},u=function(t){return t(e)},c=function(t,n){return n(e)},s=function(t){return t(e)},l=function(t){return t(e)},f=function(){return J.some(e)};return{is:t,isValue:K,isError:W,getOr:U(e),getOrThunk:U(e),getOrDie:U(e),or:n,orThunk:r,fold:c,map:o,mapError:i,each:a,bind:u,exists:s,forall:l,toOption:f}},li=function(e){var t=function(e){return e()},n=function(){return $(String(e))()},r=function(e){return e},o=function(e){return e()},i=function(){return li(e)},a=function(t){return li(t(e))},u=function(){return li(e)},c=function(t){return t(e)};return{is:W,isValue:W,isError:K,getOr:j,getOrThunk:t,getOrDie:n,or:r,orThunk:o,fold:c,map:i,mapError:a,each:V,bind:u,exists:W,forall:K,toOption:J.none}},fi=function(e,t){return e.fold(function(){return li(t)},si)},di={value:si,error:li,fromOption:fi},hi=function(){function t(e,t){return function(){e.apply(t,arguments)}}function n(e){var t=this;return null===this._state?void this._deferreds.push(e):void l(function(){var n=t._state?e.onFulfilled:e.onRejected;if(null===n)return void(t._state?e.resolve:e.reject)(t._value);var r;try{r=n(t._value)}catch(o){return void e.reject(o)}e.resolve(r)})}function r(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void u(t(n,e),t(r,this),t(o,this))}this._state=!0,this._value=e,i.call(this)}catch(a){o.call(this,a)}}function o(e){this._state=!1,this._value=e,i.call(this)}function i(){for(var e=0,t=this._deferreds.length;t>e;e++)n.call(this,this._deferreds[e]);this._deferreds=null}function a(e,t,n,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r}function u(e,t,n){var r=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(o){if(r)return;r=!0,n(o)}}var c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(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=null,this._value=null,this._deferreds=[],u(e,t(r,this),t(o,this))},l=s.immediateFn||"function"==typeof e.setImmediate&&e.setImmediate||function(t){e.setTimeout(t,1)};return s.prototype.catch=function(e){return this.then(null,e)},s.prototype.then=function(e,t){var r=this;return new s(function(o,i){n.call(r,new a(e,t,o,i))})},s.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&c(arguments[0])?arguments[0]:arguments);return new s(function(t,n){function r(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,function(e){r(i,e)},n)}e[i]=a,0===--o&&t(e)}catch(c){n(c)}}if(0===e.length)return t([]);for(var o=e.length,i=0;i<e.length;i++)r(i,e[i])})},s.resolve=function(e){return e&&"object"==typeof e&&e.constructor===s?e:new s(function(t){t(e)})},s.reject=function(e){return new s(function(t,n){n(e)})},s.race=function(e){return new s(function(t,n){for(var r=0,o=e.length;o>r;r++)e[r].then(t,n)})},s},mi=window.Promise?window.Promise:hi(),gi=function(t,n){var r,o=e.window.requestAnimationFrame,i=["ms","moz","webkit"],a=function(t){e.window.setTimeout(t,0)};for(r=0;r<i.length&&!o;r++)o=e.window[i[r]+"RequestAnimationFrame"];o||(o=a),o(t,n)},pi=function(t,n){return"number"!=typeof n&&(n=0),e.setTimeout(t,n)},vi=function(t,n){return"number"!=typeof n&&(n=1),e.setInterval(t,n)},yi=function(t){return e.clearTimeout(t)},bi=function(t){return e.clearInterval(t)},Ci=function(t,n){var r,o;return o=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];e.clearTimeout(r),r=pi(function(){t.apply(this,o)
},n)},o.stop=function(){e.clearTimeout(r)},o},wi={requestAnimationFrame:function(t,n){return Xo?void Xo.then(t):void(Xo=new mi(function(t){n||(n=e.document.body),gi(t,n)}).then(t))},setTimeout:pi,setInterval:vi,setEditorTimeout:function(e,t,n){return pi(function(){e.removed||t()},n)},setEditorInterval:function(t,n,r){var o;return o=vi(function(){t.removed?e.clearInterval(o):n()},r)},debounce:Ci,throttle:Ci,clearInterval:bi,clearTimeout:yi},xi=e.navigator.userAgent,Ei=Xn(),zi=Ei.browser,ki=Ei.os,Ni=Ei.deviceType,Si=/WebKit/.test(xi)&&!zi.isEdge(),Ti="FormData"in e.window&&"FileReader"in e.window&&"URL"in e.window&&!!e.URL.createObjectURL,Ai=-1!==xi.indexOf("Windows Phone"),Ri={opera:zi.isOpera(),webkit:Si,ie:zi.isIE()||zi.isEdge()?zi.version.major:!1,gecko:zi.isFirefox(),mac:ki.isOSX()||ki.isiOS(),iOS:Ni.isiPad()||Ni.isiPhone(),android:ki.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:e.window.getSelection&&"Range"in e.window,documentMode:zi.isIE()?e.document.documentMode||7:10,fileApi:Ti,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!zi.isIE(),desktop:Ni.isDesktop(),windowsPhone:Ai,browser:{current:zi.current,version:zi.version,isChrome:zi.isChrome,isEdge:zi.isEdge,isFirefox:zi.isFirefox,isIE:zi.isIE,isOpera:zi.isOpera,isSafari:zi.isSafari},os:{current:ki.current,version:ki.version,isAndroid:ki.isAndroid,isChromeOS:ki.isChromeOS,isFreeBSD:ki.isFreeBSD,isiOS:ki.isiOS,isLinux:ki.isLinux,isOSX:ki.isOSX,isSolaris:ki.isSolaris,isWindows:ki.isWindows},deviceType:{isDesktop:Ni.isDesktop,isiPad:Ni.isiPad,isiPhone:Ni.isiPhone,isPhone:Ni.isPhone,isTablet:Ni.isTablet,isTouch:Ni.isTouch,isWebView:Ni.isWebView}},Bi=Array.isArray,Di=function(e){var t,n,r=e;if(!Bi(e))for(r=[],t=0,n=e.length;n>t;t++)r[t]=e[t];return r},Mi=function(e,t,n){var r,o;if(!e)return 0;if(n=n||e,void 0!==e.length){for(r=0,o=e.length;o>r;r++)if(t.call(n,e[r],r,e)===!1)return 0}else for(r in e)if(e.hasOwnProperty(r)&&t.call(n,e[r],r,e)===!1)return 0;return 1},_i=function(e,t){var n=[];return Mi(e,function(r,o){n.push(t(r,o,e))}),n},Pi=function(e,t){var n=[];return Mi(e,function(r,o){(!t||t(r,o,e))&&n.push(r)}),n},Oi=function(e,t){var n,r;if(e)for(n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},Hi=function(e,t,n,r){var o=0;for(arguments.length<3&&(n=e[0]);o<e.length;o++)n=t.call(r,n,e[o],o);return n},Li=function(e,t,n){var r,o;for(r=0,o=e.length;o>r;r++)if(t.call(n,e[r],r,e))return r;return-1},Ii=function(e,t,n){var r=Li(e,t,n);return-1!==r?e[r]:void 0},Vi=function(e){return e[e.length-1]},Fi={isArray:Bi,toArray:Di,each:Mi,map:_i,filter:Pi,indexOf:Oi,reduce:Hi,findIndex:Li,find:Ii,last:Vi},Ui=/^\s*|\s*$/g,ji=function(e){return null===e||void 0===e?"":(""+e).replace(Ui,"")},qi=function(e,t){return t?"array"===t&&Fi.isArray(e)?!0:typeof e===t:void 0!==e},$i=function(e,t,n){var r;for(e=e||[],t=t||",","string"==typeof e&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},Wi=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Ki=function(e,t,n){var r,o,i,a,u,c=this,s=0;if(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e),i=e[3].match(/(^|\.)(\w+)$/i)[2],o=c.createNS(e[3].replace(/\.\w+$/,""),n),!o[i]){if("static"===e[2])return o[i]=t,void(this.onCreate&&this.onCreate(e[2],e[3],o[i]));t[i]||(t[i]=function(){},s=1),o[i]=t[i],c.extend(o[i].prototype,t),e[5]&&(r=c.resolve(e[5]).prototype,a=e[5].match(/\.(\w+)$/i)[1],u=o[i],o[i]=s?function(){return r[a].apply(this,arguments)}:function(){return this.parent=r[a],u.apply(this,arguments)},o[i].prototype[i]=o[i],c.each(r,function(e,t){o[i].prototype[t]=r[t]}),c.each(t,function(e,t){r[t]?o[i].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==i&&(o[i].prototype[t]=e)})),c.each(t.static,function(e,t){o[i][t]=e})}},Xi=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o,i,a,u,c=arguments;for(o=1,i=c.length;i>o;o++){t=c[o];for(a in t)t.hasOwnProperty(a)&&(u=t[a],void 0!==u&&(e[a]=u))}return e},Yi=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Fi.each(e,function(e,o){return t.call(r,e,o,n)===!1?!1:void Yi(e,t,n,r)}))},Gi=function(t,n){var r,o;for(n=n||e.window,t=t.split("."),r=0;r<t.length;r++)o=t[r],n[o]||(n[o]={}),n=n[o];return n},Zi=function(t,n){var r,o;for(n=n||e.window,t=t.split("."),r=0,o=t.length;o>r&&(n=n[t[r]],n);r++);return n},Ji=function(e,t){return!e||qi(e,"array")?e:Fi.map(e.split(t||","),ji)},Qi=function(e){var t=Ri.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},ea={trim:ji,isArray:Fi.isArray,is:qi,toArray:Fi.toArray,makeMap:$i,each:Fi.each,map:Fi.map,grep:Fi.filter,inArray:Fi.indexOf,hasOwn:Wi,extend:Xi,create:Ki,walk:Yi,createNS:Gi,resolve:Zi,explode:Ji,_addCacheSuffix:Qi},ta=["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"],na=["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param","embed","source","wbr","track"],ra=["td","th"],oa=["thead","tbody","tfoot"],ia=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],aa=["h1","h2","h3","h4","h5","h6"],ua=["li","dd","dt"],ca=["ul","ol","dl"],sa=["pre","script","textarea","style"],la=function(e){var t;return function(n){return t=t?t:At(e,U(!0)),t.hasOwnProperty(Vr(n))}},fa=la(aa),da=la(ta),ha=function(e){return"table"===Vr(e)},ma=function(e){return jr(e)&&!da(e)},ga=function(e){return jr(e)&&"br"===Vr(e)},pa=la(ia),va=la(ca),ya=la(ua),ba=la(na),Ca=la(oa),wa=la(ra),xa=la(sa),Ea=function(e){var t=e.previousSibling&&"SPAN"===e.previousSibling.nodeName,n=e.nextSibling&&"SPAN"===e.nextSibling.nodeName;return t&&n},za=function(e){return e&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},ka=function(e,t){var n,r=t.childNodes;if(!No.isElement(t)||!za(t)){for(n=r.length-1;n>=0;n--)ka(e,r[n]);if(No.isDocument(t)===!1){if(No.isText(t)&&t.nodeValue.length>0){var o=ea.trim(t.nodeValue).length;if(e.isBlock(t.parentNode)||o>0)return;if(0===o&&Ea(t))return}else if(No.isElement(t)&&(r=t.childNodes,1===r.length&&za(r[0])&&t.parentNode.insertBefore(r[0],t),r.length||ba(Zt.fromDom(t))))return;e.remove(t)}return t}},Na={trimNode:ka},Sa=ea.makeMap,Ta=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Aa=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ra=/[<>&\"\']/g,Ba=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Da={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:"Ÿ"};Go={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},Zo={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"};var Ma=function(e){var t;return t=Zt.fromTag("div").dom(),t.innerHTML=e,t.textContent||t.innerText||e},_a=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)),Go[r]||(o="&"+e[n+1]+";",i[r]=o,i[o]=r);return i}};Yo=_a("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);var Pa,Oa,Ha,La,Ia,Va,Fa,Ua,ja,qa,$a,Wa,Ka,Xa,Ya,Ga,Za,Ja,Qa,eu=function(e,t){return e.replace(t?Ta:Aa,function(e){return Go[e]||e})},tu=function(e){return(""+e).replace(Ra,function(e){return Go[e]||e})},nu=function(e,t){return e.replace(t?Ta:Aa,function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":Go[e]||"&#"+e.charCodeAt(0)+";"})},ru=function(e,t,n){return n=n||Yo,e.replace(t?Ta:Aa,function(e){return Go[e]||n[e]||e})},ou=function(e,t){var n=_a(t)||Yo,r=function(e,t){return e.replace(t?Ta:Aa,function(e){return void 0!==Go[e]?Go[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 ru(e,t,n)},i=Sa(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?o:ru:i.numeric?nu:eu},iu=function(e){return e.replace(Ba,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))):Da[t]||String.fromCharCode(t)):Zo[e]||Yo[e]||Ma(e)})},au={encodeRaw:eu,encodeAllRaw:tu,encodeNumeric:nu,encodeNamed:ru,getEncodeFunc:ou,decode:iu},uu={},cu={},su=ea.makeMap,lu=ea.each,fu=ea.extend,du=ea.explode,hu=ea.inArray,mu=function(e,t){return e=ea.trim(e),e?e.split(t||" "):[]},gu=function(e){var t,n,r,o,i,a,u={},c=function(e,n,r){var o,i,a,c=function(e,t){var n,r,o={};for(n=0,r=e.length;r>n;n++)o[e[n]]=t||{};return o};for(r=r||[],n=n||"","string"==typeof r&&(r=mu(r)),e=mu(e),o=e.length;o--;)i=mu([t,n].join(" ")),a={attributes:c(i),attributesOrder:i,children:c(r,cu)},u[e[o]]=a},s=function(e,t){var n,r,o,i;for(e=mu(e),n=e.length,t=mu(t);n--;)for(r=u[e[n]],o=0,i=t.length;i>o;o++)r.attributes[t[o]]={},r.attributesOrder.push(t[o])};return uu[e]?uu[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(" "),lu(mu(a),function(e){c(e,"",r)}),i="center dir isindex noframes",n=[n,i].join(" "),o=[n,r].join(" "),lu(mu(i),function(e){c(e,"",o)})),o=o||[n,r].join(" "),c("html","manifest","head body"),c("head","","base command link meta noscript script style title"),c("title hr noscript br"),c("base","href target"),c("link","href rel media hreflang type sizes hreflang"),c("meta","name http-equiv content charset"),c("style","media type scoped"),c("script","src async defer type charset"),c("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",o),c("address dt dd div caption","",o),c("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),c("blockquote","cite",o),c("ol","reversed start type","li"),c("ul","","li"),c("li","value",o),c("dl","","dt dd"),c("a","href target rel media hreflang type",r),c("q","cite",r),c("ins del","cite datetime",o),c("img","src sizes srcset alt usemap ismap width height"),c("iframe","src name width height",o),c("embed","src type width height"),c("object","data type typemustmatch name usemap form width height",[o,"param"].join(" ")),c("param","name value"),c("map","name",[o,"area"].join(" ")),c("area","alt coords shape href target rel media hreflang type"),c("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),c("colgroup","span","col"),c("col","span"),c("tbody thead tfoot","","tr"),c("tr","","td th"),c("td","colspan rowspan headers",o),c("th","colspan rowspan headers scope abbr",o),c("form","accept-charset action autocomplete enctype method name novalidate target",o),c("fieldset","disabled form name",[o,"legend"].join(" ")),c("label","form for",r),c("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"),c("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?o:r),c("select","disabled form multiple name required size","option optgroup"),c("optgroup","disabled label","option"),c("option","disabled label selected value"),c("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),c("menu","type label",[o,"li"].join(" ")),c("noscript","",o),"html4"!==e&&(c("wbr"),c("ruby","",[r,"rt rp"].join(" ")),c("figcaption","",o),c("mark rt rp summary bdi","",r),c("canvas","width height",o),c("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[o,"track source"].join(" ")),c("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[o,"track source"].join(" ")),c("picture","","img source"),c("source","src srcset type media sizes"),c("track","kind src srclang label default"),c("datalist","",[r,"option"].join(" ")),c("article section nav aside main header footer","",o),c("hgroup","","h1 h2 h3 h4 h5 h6"),c("figure","",[o,"figcaption"].join(" ")),c("time","datetime",r),c("dialog","open",o),c("command","type label icon disabled checked radiogroup command"),c("output","for form name",r),c("progress","value max",r),c("meter","value min max low high optimum",r),c("details","open",[o,"summary"].join(" ")),c("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")),lu(mu("a form meter progress dfn"),function(e){u[e]&&delete u[e].children[e]}),delete u.caption.children.table,delete u.script,uu[e]=u,u)},pu=function(e,t){var n;return e&&(n={},"string"==typeof e&&(e={"*":e}),lu(e,function(e,r){n[r]=n[r.toUpperCase()]="map"===t?su(e,/[, ]/):du(e,/[, ]/)})),n},vu="",yu=" ",bu=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)},Cu=function(e,t){var n,r,o,i,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,u=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,c=/\s*([^:]+):\s*([^;]+);?/g,s=/\s+$/,l={},f=vu;for(e=e||{},t&&(o=t.getValidStyles(),i=t.getInvalidStyles()),r=("\\\" \\' \\; \\: ; : "+f).split(" "),n=0;n<r.length;n++)l[r[n]]=f+n,l[f+n]=r[n];return{toHex:function(e){return e.replace(a,bu)},parse:function(t){var r,o,i,d,h={},m=e.url_converter,g=e.url_converter_scope||this,p=function(e,t,r){var o,i,a,u;if(o=h[e+"-top"+t],o&&(i=h[e+"-right"+t],i&&(a=h[e+"-bottom"+t],a&&(u=h[e+"-left"+t])))){var c=[o,i,a,u];for(n=c.length-1;n--&&c[n]===c[n+1];);n>-1&&r||(h[e+t]=-1===n?c[0]:c.join(" "),delete h[e+"-top"+t],delete h[e+"-right"+t],delete h[e+"-bottom"+t],delete h[e+"-left"+t])}},v=function(e){var t,n=h[e];if(n){for(n=n.split(" "),t=n.length;t--;)if(n[t]!==n[0])return!1;return h[e]=n[0],!0}},y=function(e,t,n,r){v(t)&&v(n)&&v(r)&&(h[e]=h[t]+" "+h[n]+" "+h[r],delete h[t],delete h[n],delete h[r])},b=function(e){return d=!0,l[e]},C=function(e,t){return d&&(e=e.replace(/\uFEFF[0-9]/g,function(e){return l[e]})),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},w=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},x=function(e){return e.replace(/\\[0-9a-f]+/gi,w)},E=function(t,n,r,o,i,a){if(i=i||a)return i=C(i),"'"+i.replace(/\'/g,"\\'")+"'";if(n=C(n||r||o),!e.allow_script_urls){var u=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(u))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(u))return""}return m&&(n=m.call(g,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){for(t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,b).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(e){return e.replace(/[;:]/g,b)});r=c.exec(t);)if(c.lastIndex=r.index+r[0].length,o=r[1].replace(s,"").toLowerCase(),i=r[2].replace(s,""),o&&i){if(o=x(o),i=x(i),-1!==o.indexOf(f)||-1!==o.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===o||/expression\s*\(|\/\*|\*\//.test(i)))continue;"font-weight"===o&&"700"===i?i="bold":("color"===o||"background-color"===o)&&(i=i.toLowerCase()),i=i.replace(a,bu),i=i.replace(u,E),h[o]=d?C(i,!0):i}p("border","",!0),p("border","-width"),p("border","-color"),p("border","-style"),p("padding",""),p("margin",""),y("border","border-width","border-style","border-color"),"medium none"===h.border&&delete h.border,"none"===h["border-image"]&&delete h["border-image"]}return h},serialize:function(e,t){var n,r,a="",u=function(t){var n,r,i,u;if(n=o[t])for(r=0,i=n.length;i>r;r++)t=n[r],u=e[t],u&&(a+=(a.length>0?" ":"")+t+": "+u+";")},c=function(e,t){var n;return n=i["*"],n&&n[e]?!1:(n=i[t],n&&n[e]?!1:!0)};if(t&&o)u("*"),u(t);else for(n in e)r=e[n],!r||i&&!c(n,t)||(a+=(a.length>0?" ":"")+n+": "+r+";");return a}}},wu="mce-data-",xu=/^(?:mouse|contextmenu)|click/,Eu={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1,mozPressure:1},zu=function(e){return e.isDefaultPrevented===Nu||e.isDefaultPrevented===ku},ku=function(){return!1},Nu=function(){return!0},Su=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Tu=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},Au=function(e,t){if(e.composedPath){var n=e.composedPath();if(n&&n.length>0)return n[0]}return t},Ru=function(t,n){var r,o=n||{};for(r in t)Eu[r]||(o[r]=t[r]);if(o.target||(o.target=o.srcElement||e.document),Ri.experimentalShadowDom&&(o.target=Au(t,o.target)),t&&xu.test(t.type)&&void 0===t.pageX&&void 0!==t.clientX){var i=o.target.ownerDocument||e.document,a=i.documentElement,u=i.body;o.pageX=t.clientX+(a&&a.scrollLeft||u&&u.scrollLeft||0)-(a&&a.clientLeft||u&&u.clientLeft||0),o.pageY=t.clientY+(a&&a.scrollTop||u&&u.scrollTop||0)-(a&&a.clientTop||u&&u.clientTop||0)}return o.preventDefault=function(){o.isDefaultPrevented=Nu,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},o.stopPropagation=function(){o.isPropagationStopped=Nu,t&&(t.stopPropagation?t.stopPropagation():t.cancelBubble=!0)},o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=Nu,o.stopPropagation()},zu(o)===!1&&(o.isDefaultPrevented=ku,o.isPropagationStopped=ku,o.isImmediatePropagationStopped=ku),"undefined"==typeof o.metaKey&&(o.metaKey=!1),o},Bu=function(e,t,n){var r=e.document,o={type:"ready"};if(n.domLoaded)return void t(o);var i=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){Tu(e,"DOMContentLoaded",a),Tu(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(o))};i()?a():Su(e,"DOMContentLoaded",a),Su(e,"load",a)},Du=function(){function t(){this.domLoaded=!1,this.events={},this.count=1,this.expando=wu+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in e.document.documentElement,this.hasFocusIn="onfocusin"in e.document.documentElement,this.count=1}return t.prototype.bind=function(t,n,r,o){var i,a,u,c,s,l,f,d=this,h=e.window,m=function(e){d.executeHandlers(Ru(e||h.event),i)};if(t&&3!==t.nodeType&&8!==t.nodeType){t[d.expando]?i=t[d.expando]:(i=d.count++,t[d.expando]=i,d.events[i]={}),o=o||t;var g=n.split(" ");for(u=g.length;u--;)c=g[u],l=m,s=f=!1,"DOMContentLoaded"===c&&(c="ready"),d.domLoaded&&"ready"===c&&"complete"===t.readyState?r.call(o,Ru({type:c})):(d.hasMouseEnterLeave||(s=d.mouseEnterLeave[c],s&&(l=function(e){var t,n;if(t=e.currentTarget,n=e.relatedTarget,n&&t.contains)n=t.contains(n);else for(;n&&n!==t;)n=n.parentNode;n||(e=Ru(e||h.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,d.executeHandlers(e,i))})),d.hasFocusIn||"focusin"!==c&&"focusout"!==c||(f=!0,s="focusin"===c?"focus":"blur",l=function(e){e=Ru(e||h.event),e.type="focus"===e.type?"focusin":"focusout",d.executeHandlers(e,i)}),a=d.events[i][c],a?"ready"===c&&d.domLoaded?r(Ru({type:c})):a.push({func:r,scope:o}):(d.events[i][c]=a=[{func:r,scope:o}],a.fakeName=s,a.capture=f,a.nativeHandler=l,"ready"===c?Bu(t,l,d):Su(t,s||c,l,f)));return t=a=0,r}},t.prototype.unbind=function(e,t,n){var r,o,i,a,u,c;if(!e||3===e.nodeType||8===e.nodeType)return this;if(r=e[this.expando]){if(c=this.events[r],t){var s=t.split(" ");for(i=s.length;i--;)if(u=s[i],o=c[u]){if(n)for(a=o.length;a--;)if(o[a].func===n){var l=o.nativeHandler,f=o.fakeName,d=o.capture;o=o.slice(0,a).concat(o.slice(a+1)),o.nativeHandler=l,o.fakeName=f,o.capture=d,c[u]=o}n&&0!==o.length||(delete c[u],Tu(e,o.fakeName||u,o.nativeHandler,o.capture))}}else{for(u in c)o=c[u],Tu(e,o.fakeName||u,o.nativeHandler,o.capture);c={}}for(u in c)return this;delete this.events[r];try{delete e[this.expando]}catch(h){e[this.expando]=null}}return this},t.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var o=Ru(null,n);o.type=t,o.target=e;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},t.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)for(this.unbind(e),n=e.getElementsByTagName("*"),t=n.length;t--;)e=n[t],e[this.expando]&&this.unbind(e);return this},t.prototype.destroy=function(){this.events={}},t.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},t.prototype.executeHandlers=function(e,t){var n,r,o,i,a=this.events[t];if(n=a&&a[e.type])for(r=0,o=n.length;o>r;r++)if(i=n[r],i&&i.func.call(i.scope,e)===!1&&e.preventDefault(),e.isImmediatePropagationStopped())return},t.Event=new t,t}(),Mu="sizzle"+-new Date,_u=e.window.document,Pu=0,Ou=0,Hu=u(),Lu=u(),Iu=u(),Vu=function(e,t){return e===t&&($a=!0),0},Fu="undefined",Uu=1<<31,ju={}.hasOwnProperty,qu=[],$u=qu.pop,Wu=qu.push,Ku=qu.push,Xu=qu.slice,Yu=qu.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},Gu="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Zu="[\\x20\\t\\r\\n\\f]",Ju="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Qu="\\["+Zu+"*("+Ju+")(?:"+Zu+"*([*^$|!~]?=)"+Zu+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Ju+"))|)"+Zu+"*\\]",ec=":("+Ju+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Qu+")*)|.*)\\)|)",tc=new RegExp("^"+Zu+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Zu+"+$","g"),nc=new RegExp("^"+Zu+"*,"+Zu+"*"),rc=new RegExp("^"+Zu+"*([>+~]|"+Zu+")"+Zu+"*"),oc=new RegExp("="+Zu+"*([^\\]'\"]*?)"+Zu+"*\\]","g"),ic=new RegExp(ec),ac=new RegExp("^"+Ju+"$"),uc={ID:new RegExp("^#("+Ju+")"),CLASS:new RegExp("^\\.("+Ju+")"),TAG:new RegExp("^("+Ju+"|[*])"),ATTR:new RegExp("^"+Qu),PSEUDO:new RegExp("^"+ec),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Zu+"*(even|odd|(([+-]|)(\\d*)n|)"+Zu+"*(?:([+-]|)"+Zu+"*(\\d+)|))"+Zu+"*\\)|)","i"),bool:new RegExp("^(?:"+Gu+")$","i"),needsContext:new RegExp("^"+Zu+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Zu+"*((?:-\\d)?\\d*)"+Zu+"*\\)|)(?=[^-]|$)","i")},cc=/^(?:input|select|textarea|button)$/i,sc=/^h\d$/i,lc=/^[^{]+\{\s*\[native \w/,fc=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,dc=/[+~]/,hc=/'|\\/g,mc=new RegExp("\\\\([\\da-f]{1,6}"+Zu+"?|("+Zu+")|.)","ig"),gc=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{Ku.apply(qu=Xu.call(_u.childNodes),_u.childNodes),qu[_u.childNodes.length].nodeType}catch(pc){Ku={apply:qu.length?function(e,t){Wu.apply(e,Xu.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}var vc=function(e,t,n,r){var o,i,a,u,c,s,l,f,d,m;if((t?t.ownerDocument||t:_u)!==Ka&&Wa(t),t=t||Ka,n=n||[],!e||"string"!=typeof e)return n;if(1!==(u=t.nodeType)&&9!==u)return[];if(Ya&&!r){if(o=fc.exec(e))if(a=o[1]){if(9===u){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))&&Qa(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return Ku.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&Oa.getElementsByClassName)return Ku.apply(n,t.getElementsByClassName(a)),n}if(Oa.qsa&&(!Ga||!Ga.test(e))){if(f=l=Mu,d=t,m=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(s=Va(e),(l=t.getAttribute("id"))?f=l.replace(hc,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",c=s.length;c--;)s[c]=f+g(s[c]);d=dc.test(e)&&h(t.parentNode)||t,m=s.join(",")}if(m)try{return Ku.apply(n,d.querySelectorAll(m)),n}catch(p){}finally{l||t.removeAttribute("id")}}}return Ua(e.replace(tc,"$1"),t,n,r)};Oa=vc.support={},Ia=vc.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},Wa=vc.setDocument=function(e){function t(e){try{return e.top}catch(t){}return null}var n,r=e?e.ownerDocument||e:_u,o=r.defaultView;return r!==Ka&&9===r.nodeType&&r.documentElement?(Ka=r,Xa=r.documentElement,Ya=!Ia(r),o&&o!==t(o)&&(o.addEventListener?o.addEventListener("unload",function(){Wa()},!1):o.attachEvent&&o.attachEvent("onunload",function(){Wa()})),Oa.attributes=!0,Oa.getElementsByTagName=!0,Oa.getElementsByClassName=lc.test(r.getElementsByClassName),Oa.getById=!0,Ha.find.ID=function(e,t){if(typeof t.getElementById!==Fu&&Ya){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},Ha.filter.ID=function(e){var t=e.replace(mc,gc);return function(e){return e.getAttribute("id")===t}},Ha.find.TAG=Oa.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==Fu?t.getElementsByTagName(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},Ha.find.CLASS=Oa.getElementsByClassName&&function(e,t){return Ya?t.getElementsByClassName(e):void 0},Za=[],Ga=[],Oa.disconnectedMatch=!0,Ga=Ga.length&&new RegExp(Ga.join("|")),Za=Za.length&&new RegExp(Za.join("|")),n=lc.test(Xa.compareDocumentPosition),Qa=n||lc.test(Xa.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Vu=n?function(e,t){if(e===t)return $a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!Oa.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===_u&&Qa(_u,e)?-1:t===r||t.ownerDocument===_u&&Qa(_u,t)?1:qa?Yu.call(qa,e)-Yu.call(qa,t):0:4&n?-1:1)}:function(e,t){if(e===t)return $a=!0,0;var n,o=0,i=e.parentNode,a=t.parentNode,u=[e],c=[t];if(!i||!a)return e===r?-1:t===r?1:i?-1:a?1:qa?Yu.call(qa,e)-Yu.call(qa,t):0;if(i===a)return s(e,t);for(n=e;n=n.parentNode;)u.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;u[o]===c[o];)o++;return o?s(u[o],c[o]):u[o]===_u?-1:c[o]===_u?1:0},r):Ka},vc.matches=function(e,t){return vc(e,null,null,t)},vc.matchesSelector=function(e,t){if((e.ownerDocument||e)!==Ka&&Wa(e),t=t.replace(oc,"='$1']"),!(!Oa.matchesSelector||!Ya||Za&&Za.test(t)||Ga&&Ga.test(t)))try{var n=Ja.call(e,t);if(n||Oa.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return vc(t,Ka,null,[e]).length>0},vc.contains=function(e,t){return(e.ownerDocument||e)!==Ka&&Wa(e),Qa(e,t)},vc.attr=function(e,t){(e.ownerDocument||e)!==Ka&&Wa(e);var n=Ha.attrHandle[t.toLowerCase()],r=n&&ju.call(Ha.attrHandle,t.toLowerCase())?n(e,t,!Ya):void 0;return void 0!==r?r:Oa.attributes||!Ya?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},vc.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},vc.uniqueSort=function(e){var t,n=[],r=0,o=0;if($a=!Oa.detectDuplicates,qa=!Oa.sortStable&&e.slice(0),e.sort(Vu),$a){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return qa=null,e},La=vc.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+=La(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=La(t);return n},Ha=vc.selectors={cacheLength:50,createPseudo:c,match:uc,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(mc,gc),e[3]=(e[3]||e[4]||e[5]||"").replace(mc,gc),"~="===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]||vc.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]&&vc.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return uc.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ic.test(n)&&(t=Va(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(mc,gc).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Hu[e+" "];return t||(t=new RegExp("(^|"+Zu+")"+e+"("+Zu+"|$)"))&&Hu(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==Fu&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=vc.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+"-":!1):!0}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,c){var s,l,f,d,h,m,g=i!==a?"nextSibling":"previousSibling",p=t.parentNode,v=u&&t.nodeName.toLowerCase(),y=!c&&!u;if(p){if(i){for(;g;){for(f=t;f=f[g];)if(u?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;m=g="only"===e&&!m&&"nextSibling"}return!0}if(m=[a?p.firstChild:p.lastChild],a&&y){for(l=p[Mu]||(p[Mu]={}),s=l[e]||[],h=s[0]===Pu&&s[1],d=s[0]===Pu&&s[2],f=h&&p.childNodes[h];f=++h&&f&&f[g]||(d=h=0)||m.pop();)if(1===f.nodeType&&++d&&f===t){l[e]=[Pu,h,d];break}}else if(y&&(s=(t[Mu]||(t[Mu]={}))[e])&&s[0]===Pu)d=s[1];else for(;(f=++h&&f&&f[g]||(d=h=0)||m.pop())&&((u?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(y&&((f[Mu]||(f[Mu]={}))[e]=[Pu,d]),f!==t)););return d-=o,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(e,t){var n,r=Ha.pseudos[e]||Ha.setFilters[e.toLowerCase()]||vc.error("unsupported pseudo: "+e);return r[Mu]?r(t):r.length>1?(n=[e,e,"",t],Ha.setFilters.hasOwnProperty(e.toLowerCase())?c(function(e,n){for(var o,i=r(e,t),a=i.length;a--;)o=Yu.call(e,i[a]),e[o]=!(n[o]=i[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:c(function(e){var t=[],n=[],r=Fa(e.replace(tc,"$1"));return r[Mu]?c(function(e,t,n,o){for(var i,a=r(e,null,o,[]),u=e.length;u--;)(i=a[u])&&(e[u]=!(t[u]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),!n.pop()}}),has:c(function(e){return function(t){return vc(e,t).length>0}}),contains:c(function(e){return e=e.replace(mc,gc),function(t){return(t.textContent||t.innerText||La(t)).indexOf(e)>-1}}),lang:c(function(e){return ac.test(e||"")||vc.error("unsupported lang: "+e),e=e.replace(mc,gc).toLowerCase(),function(t){var n;do if(n=Ya?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.window.location&&e.window.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===Xa},focus:function(e){return e===Ka.activeElement&&(!Ka.hasFocus||Ka.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!Ha.pseudos.empty(e)},header:function(e){return sc.test(e.nodeName)},input:function(e){return cc.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:d(function(){return[0]}),last:d(function(e,t){return[t-1]}),eq:d(function(e,t,n){return[0>n?n+t:n]}),even:d(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:d(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:d(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:d(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},Ha.pseudos.nth=Ha.pseudos.eq;for(Pa in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Ha.pseudos[Pa]=l(Pa);for(Pa in{submit:!0,reset:!0})Ha.pseudos[Pa]=f(Pa);m.prototype=Ha.filters=Ha.pseudos,Ha.setFilters=new m,Va=vc.tokenize=function(e,t){var n,r,o,i,a,u,c,s=Lu[e+" "];if(s)return t?0:s.slice(0);for(a=e,u=[],c=Ha.preFilter;a;){(!n||(r=nc.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=rc.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(tc," ")}),a=a.slice(n.length));for(i in Ha.filter)Ha.filter.hasOwnProperty(i)&&(!(r=uc[i].exec(a))||c[i]&&!(r=c[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?vc.error(e):Lu(e,u).slice(0)},Fa=vc.compile=function(e,t){var n,r=[],o=[],i=Iu[e+" "];if(!i){for(t||(t=Va(e)),n=t.length;n--;)i=w(t[n]),i[Mu]?r.push(i):o.push(i);i=Iu(e,x(o,r)),i.selector=e}return i},Ua=vc.select=function(e,t,n,r){var o,i,a,u,c,s="function"==typeof e&&e,l=!r&&Va(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&&Oa.getById&&9===t.nodeType&&Ya&&Ha.relative[i[1].type]){if(t=(Ha.find.ID(a.matches[0].replace(mc,gc),t)||[])[0],!t)return n;s&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=uc.needsContext.test(e)?0:i.length;o--&&(a=i[o],!Ha.relative[u=a.type]);)if((c=Ha.find[u])&&(r=c(a.matches[0].replace(mc,gc),dc.test(i[0].type)&&h(t.parentNode)||t))){if(i.splice(o,1),e=r.length&&g(i),!e)return Ku.apply(n,r),n;break}}return(s||Fa(e,l))(r,t,!Ya,n,dc.test(e)&&h(t.parentNode)||t),n},Oa.sortStable=Mu.split("").sort(Vu).join("")===Mu,Oa.detectDuplicates=!!$a,Wa(),Oa.sortDetached=!0;var yc=e.document,bc=Array.prototype.push,Cc=Array.prototype.slice,wc=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,xc=Du.Event,Ec=ea.makeMap("children,contents,next,prev"),zc=function(e){return"undefined"!=typeof e},kc=function(e){return"string"==typeof e},Nc=function(e){return e&&e===e.window},Sc=function(e,t){var n,r,o;for(t=t||yc,o=t.createElement("div"),n=t.createDocumentFragment(),o.innerHTML=e;r=o.firstChild;)n.appendChild(r);return n},Tc=function(e,t,n,r){var o;if(kc(t))t=Sc(t,jc(e[0]));else if(t.length&&!t.nodeType){if(t=Kc.makeArray(t),r)for(o=t.length-1;o>=0;o--)Tc(e,t[o],n,r);else for(o=0;o<t.length;o++)Tc(e,t[o],n,r);return e}if(t.nodeType)for(o=e.length;o--;)n.call(e[o],t);return e},Ac=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},Rc=function(e,t,n){var r,o;return t=Kc(t)[0],e.each(function(){var e=this;n&&r===e.parentNode?o.appendChild(e):(r=e.parentNode,o=t.cloneNode(!1),e.parentNode.insertBefore(o,e),o.appendChild(e))}),e},Bc=ea.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),Dc=ea.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),Mc={"for":"htmlFor","class":"className",readonly:"readOnly"},_c={"float":"cssFloat"},Pc={},Oc={},Hc=function(e,t){return new Kc.fn.init(e,t)},Lc=function(e,t){var n;if(t.indexOf)return t.indexOf(e);for(n=t.length;n--;)if(t[n]===e)return n;return-1},Ic=/^\s*|\s*$/g,Vc=function(e){return null===e||void 0===e?"":(""+e).replace(Ic,"")},Fc=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],t.call(i,r,i)===!1))break}else for(o=0;n>o&&(i=e[o],t.call(i,o,i)!==!1);o++);return e},Uc=function(e,t){var n=[];return Fc(e,function(e,r){t(r,e)&&n.push(r)}),n},jc=function(e){return e?9===e.nodeType?e:e.ownerDocument:yc};Hc.fn=Hc.prototype={constructor:Hc,selector:"",context:null,length:0,init:function(t,n){var r,o,i=this;if(!t)return i;if(t.nodeType)return i.context=i[0]=t,i.length=1,i;if(n&&n.nodeType)i.context=n;else{if(n)return Kc(t).attr(n);i.context=n=e.document}if(kc(t)){if(i.selector=t,r="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:wc.exec(t),!r)return Kc(n).find(t);if(r[1])for(o=Sc(t,jc(n)).firstChild;o;)bc.call(i,o),o=o.nextSibling;else{if(o=jc(n).getElementById(r[2]),!o)return i;if(o.id!==r[2])return i.find(t);i.length=1,i[0]=o}}else this.add(t,!1);return i},toArray:function(){return ea.toArray(this)},add:function(e,t){var n,r,o=this;if(kc(e))return o.add(Kc(e));if(t!==!1)for(n=Kc.unique(o.toArray().concat(Kc.makeArray(e))),o.length=n.length,r=0;r<n.length;r++)o[r]=n[r];else bc.apply(o,Kc.makeArray(e));return o},attr:function(e,t){var n,r=this;if("object"==typeof e)Fc(e,function(e,t){r.attr(e,t)});else{if(!zc(t)){if(r[0]&&1===r[0].nodeType){if(n=Pc[e],n&&n.get)return n.get(r[0],e);if(Dc[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=Pc[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=Mc[e]||e,"object"==typeof e)Fc(e,function(e,t){n.prop(e,t)});else{if(!zc(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)Fc(e,function(e,t){o.css(e,t)});else if(zc(t))e=i(e),"number"!=typeof t||Bc[e]||(t=t.toString()+"px"),o.each(function(){var n=this.style;if(r=Oc[e],r&&r.set)return void r.set(this,t);try{this.style[_c[e]||e]=t}catch(o){}(null===t||""===t)&&(n.removeProperty?n.removeProperty(a(e)):n.removeAttribute(e))});else{if(n=o[0],r=Oc[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(u){return void 0}}return o},remove:function(){for(var e,t=this,n=this.length;n--;)e=t[n],xc.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var e,t=this,n=this.length;n--;)for(e=t[n];e.firstChild;)e.removeChild(e.firstChild);return this},html:function(e){var t,n=this;if(zc(e)){t=n.length;try{for(;t--;)n[t].innerHTML=e}catch(r){Kc(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(zc(e)){for(t=n.length;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 Tc(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)})},prepend:function(){return Tc(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?Tc(e,arguments,function(e){this.parentNode.insertBefore(e,this)}):e},after:function(){var e=this;return e[0]&&e[0].parentNode?Tc(e,arguments,function(e){this.parentNode.insertBefore(e,this.nextSibling)},!0):e},appendTo:function(e){return Kc(e).append(this),this},prependTo:function(e){return Kc(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return Rc(this,e)},wrapAll:function(e){return Rc(this,e,!0)},wrapInner:function(e){return this.each(function(){Kc(this).contents().wrapAll(e)}),this},unwrap:function(){return this.parent().each(function(){Kc(this).replaceWith(this.childNodes)})},clone:function(){var e=[];return this.each(function(){e.push(this.cloneNode(!0))}),Kc(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?n:(-1!==e.indexOf(" ")?Fc(e.split(" "),function(){n.toggleClass(this,t)}):n.each(function(n,r){var o,i;i=Ac(r,e),i!==t&&(o=r.className,i?r.className=Vc((" "+o+" ").replace(" "+e+" "," ")):r.className+=o?" "+e:e)}),n)},hasClass:function(e){return Ac(this[0],e)},each:function(e){return Fc(this,e)},on:function(e,t){return this.each(function(){xc.bind(this,e,t)})},off:function(e,t){return this.each(function(){xc.unbind(this,e,t)})},trigger:function(e){return this.each(function(){"object"==typeof e?xc.fire(this,e.type,e):xc.fire(this,e)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new Kc(Cc.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;n>t;t++)Kc.find(e,this[t],r);return Kc(r)},filter:function(e){return Kc("function"==typeof e?Uc(this.toArray(),function(t,n){return e(n,t)}):Kc.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Kc&&(e=e[0]),this.each(function(n,r){for(;r;){if("string"==typeof e&&Kc(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}}),Kc(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:bc,sort:Array.prototype.sort,splice:Array.prototype.splice},ea.extend(Hc,{extend:ea.extend,makeArray:function(e){return Nc(e)||e.nodeType?[e]:ea.toArray(e)},inArray:Lc,isArray:ea.isArray,each:Fc,trim:Vc,grep:Uc,find:vc,expr:vc.selectors,unique:vc.uniqueSort,text:vc.getText,contains:vc.contains,filter:function(e,t,n){var r=t.length;for(n&&(e=":not("+e+")");r--;)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?Kc.find.matchesSelector(t[0],e)?[t[0]]:[]:Kc.find.matches(e,t)}});var qc=function(e,t,n){var r=[],o=e[t];for("string"!=typeof n&&n instanceof Kc&&(n=n[0]);o&&9!==o.nodeType;){if(void 0!==n){if(o===n)break;if("string"==typeof n&&Kc(o).is(n))break}1===o.nodeType&&r.push(o),o=o[t]}return r},$c=function(e,t,n,r){var o=[];for(r instanceof Kc&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"==typeof r&&Kc(e).is(r))break}o.push(e)}return o},Wc=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};Fc({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return qc(e,"parentNode")},next:function(e){return Wc(e,"nextSibling",1)},prev:function(e){return Wc(e,"previousSibling",1)},children:function(e){return $c(e.firstChild,"nextSibling",1)},contents:function(e){return ea.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},function(e,t){Hc.fn[e]=function(n){var r=this,o=[];r.each(function(){var e=t.call(o,this,n,o);e&&(Kc.isArray(e)?o.push.apply(o,e):o.push(e))}),this.length>1&&(Ec[e]||(o=Kc.unique(o)),0===e.indexOf("parents")&&(o=o.reverse()));var i=Kc(o);return n?i.filter(n):i}}),Fc({parentsUntil:function(e,t){return qc(e,"parentNode",t)},nextUntil:function(e,t){return $c(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return $c(e,"previousSibling",1,t).slice(1)}},function(e,t){Hc.fn[e]=function(n,r){var o=this,i=[];o.each(function(){var e=t.call(i,this,n,i);e&&(Kc.isArray(e)?i.push.apply(i,e):i.push(e))}),this.length>1&&(i=Kc.unique(i),(0===e.indexOf("parents")||"prevUntil"===e)&&(i=i.reverse()));var a=Kc(i);return r?a.filter(r):a}}),Hc.fn.is=function(e){return!!e&&this.filter(e).length>0},Hc.fn.init.prototype=Hc.fn,Hc.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 Kc.extend(n,this),n},Hc.attrHooks=Pc,Hc.cssHooks=Oc;var Kc=Hc,Xc=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])return o;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n])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}(),Yc=ea.each,Gc=ea.grep,Zc=Ri.ie,Jc=/^([a-z0-9],?)+$/i,Qc=/^[ \t\r\n]*$/,es=function(e,t,n){var r=t.keep_values,o={set:function(e,r,o){t.url_converter&&(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){return null!==n&&"object"==typeof n?void t.css(n):(r&&t.attr("data-mce-style",n),void(null!==n&&"string"==typeof n?(t.removeAttr("style"),t.css(e.parse(n))):t.attr("style",n)))},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName)}}};return r&&(i.href=i.src=o),i},ts=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)},ns=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};!function(t){t.DOM=t(e.document),t.nodeIndex=ns}(E||(E={}));var rs=E,os=rs.DOM,is=ea.each,as=ea.grep,us=0,cs=1,ss=2,ls=3,fs=function(){function t(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}return t.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},t.prototype.loadScript=function(t,n,r){var o,i,a=os,u=function(){a.remove(i),o&&(o.onreadystatechange=o.onload=o=null),n()},c=function(){at(r)?r():"undefined"!=typeof e.console&&e.console.log&&e.console.log("Failed to load script: "+t)};i=a.uniqueId(),o=e.document.createElement("script"),o.id=i,o.type="text/javascript",o.src=ea._addCacheSuffix(t),this.settings.referrerPolicy&&a.setAttrib(o,"referrerpolicy",this.settings.referrerPolicy),o.onload=u,o.onerror=c,(e.document.getElementsByTagName("head")[0]||e.document.body).appendChild(o)},t.prototype.isDone=function(e){return this.states[e]===ss},t.prototype.markDone=function(e){this.states[e]=ss},t.prototype.add=function(e,t,n,r){var o=this.states[e];void 0===o&&(this.queue.push(e),this.states[e]=us),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},t.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},t.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},t.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},t.prototype.loadScripts=function(e,t,n,r){var o,i=this,a=[],u=function(e,t){is(i.scriptLoadedCallbacks[t],function(t){at(t[e])&&t[e].call(t.scope)}),i.scriptLoadedCallbacks[t]=void 0};i.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this}),(o=function(){var t=as(e);if(e.length=0,is(t,function(e){return i.states[e]===ss?void u("success",e):i.states[e]===ls?void u("failure",e):void(i.states[e]!==cs&&(i.states[e]=cs,i.loading++,i.loadScript(e,function(){i.states[e]=ss,i.loading--,u("success",e),o()},function(){i.states[e]=ls,i.loading--,a.push(e),u("failure",e),o()})))}),!i.loading){var n=i.queueLoadedCallbacks.slice(0);i.queueLoadedCallbacks.length=0,is(n,function(e){0===a.length?at(e.success)&&e.success.call(e.scope):at(e.failure)&&e.failure.call(e.scope,a)})}})()},t.ScriptLoader=new t,t}(),ds=function(e){return nt(e)&&qt(e,"raw")},hs=function(e){return rt(e)&&e.length>1},ms={},gs=Jt("en"),ps=function(){return jt(ms,gs.get())},vs=function(){return Ht(ms,function(e){return $t({},e)})},ys=function(e){e&&gs.set(e)},bs=function(){return gs.get()},Cs=function(e,t){var n=ms[e];n||(ms[e]=n={}),Ot(t,function(e,t){n[t.toLowerCase()]=e})},ws=function(e){var t=ps().getOr({}),n=function(e){return at(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 jt(t,r.toLowerCase()).map(n).getOr(r)},i=function(e){return e.replace(/{context:\w+}$/,"")},a=function(e){return e};if(r(e))return a("");if(ds(e))return a(n(e.raw));if(hs(e)){var u=e.slice(1),c=o(e[0]).replace(/\{([0-9]+)\}/g,function(e,t){return qt(u,t)?n(u[t]):e});return a(i(c))}return a(i(o(e)))},xs=function(){return ps().bind(function(e){return jt(e,"_dir")}).exists(function(e){return"rtl"===e})},Es=function(e){return qt(ms,e)},zs={getData:vs,setCode:ys,getCode:bs,add:Cs,translate:ws,isRtl:xs,hasCode:Es};!function(e){e.PluginManager=e(),e.ThemeManager=e()}(z||(z={}));var ks=z,Ns=function(t,n){var r=null,o=function(){null!==r&&(e.clearTimeout(r),r=null)},i=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];null===r&&(r=e.setTimeout(function(){t.apply(null,o),r=null},n))};return{cancel:o,throttle:i}},Ss=function(t,n){var r=null,o=function(){null!==r&&(e.clearTimeout(r),r=null)},i=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];null!==r&&e.clearTimeout(r),r=e.setTimeout(function(){t.apply(null,o),r=null},n)};return{cancel:o,throttle:i}},Ts=function(e,t){var n=Bo(e,t);return void 0===n||""===n?[]:n.split(" ")},As=function(e,t,n){var r=Ts(e,t),o=r.concat([n]);return Ao(e,t,o.join(" ")),!0},Rs=function(e,t,n){var r=bt(Ts(e,t),function(e){return e!==n});return r.length>0?Ao(e,t,r.join(" ")):_o(e,t),!1},Bs=function(e){return void 0!==e.dom().classList},Ds=function(e){return Ts(e,"class")},Ms=function(e,t){return As(e,"class",t)},_s=function(e,t){return Rs(e,"class",t)},Ps=function(e,t){Bs(e)?e.dom().classList.add(t):Ms(e,t)},Os=function(e){var t=Bs(e)?e.dom().classList:Ds(e);0===t.length&&_o(e,"class")},Hs=function(e,t){if(Bs(e)){var n=e.dom().classList;n.remove(t)}else _s(e,t);Os(e)},Ls=function(e,t){return Bs(e)&&e.dom().classList.contains(t)},Is=function(e,t){var n=[];return pt(kr(e),function(e){t(e)&&(n=n.concat([e])),n=n.concat(Is(e,t))}),n},Vs=function(e,t){return sr(t,e)},Fs=function(e,t,n){for(var r=e.dom(),o=at(n)?n:U(!1);r.parentNode;){r=r.parentNode;var i=Zt.fromDom(r);if(t(i))return J.some(i);if(o(i))break}return J.none()},Us=function(e,t,n){var r=function(e,t){return t(e)};return k(r,Fs,e,t,n)},js=function(e,t,n){return Fs(e,function(e){return ur(e,t)},n)},qs=function(e,t){return lr(t,e)},$s=function(e,t,n){return k(ur,js,e,t,n)},Ws=U("mce-annotation"),Ks=U("data-mce-annotation"),Xs=U("data-mce-annotation-uid"),Ys=function(e,t){var n=e.selection.getRng(),r=Zt.fromDom(n.startContainer),o=Zt.fromDom(e.getBody()),i=t.fold(function(){return"."+Ws()},function(e){return"["+Ks()+'="'+e+'"]'}),a=Nr(r,n.startOffset).getOr(r),u=$s(a,i,function(e){return fr(e,o)}),c=function(e,t){return Mo(e,t)?J.some(Bo(e,t)):J.none()};return u.bind(function(t){return c(t,""+Xs()).bind(function(n){return c(t,""+Ks()).map(function(t){var r=Zs(e,n);return{uid:n,name:t,elements:r}})})})},Gs=function(e){return jr(e)&&Ls(e,Ws())},Zs=function(e,t){var n=Zt.fromDom(e.getBody());return Vs(n,"["+Xs()+'="'+t+'"]')},Js=function(e,t){var n=Zt.fromDom(e.getBody()),r=Vs(n,"["+Ks()+'="'+t+'"]'),o={};return pt(r,function(e){var t=Bo(e,Xs()),n=o.hasOwnProperty(t)?o[t]:[];o[t]=n.concat([e])}),o},Qs=function(e){var t=Jt({}),n=function(){return{listeners:[],previous:Jt(J.none())}},r=function(e,t){o(e,function(e){return t(e),e})},o=function(e,r){var o=t.get(),i=o.hasOwnProperty(e)?o[e]:n(),a=r(i);o[e]=a,t.set(o)},i=function(e,t,n){r(e,function(r){pt(r.listeners,function(r){return r(!0,e,{uid:t,nodes:gt(n,function(e){return e.dom()})})})})},a=function(e){r(e,function(t){pt(t.listeners,function(t){return t(!1,e)})})},u=Ss(function(){var n=t.get(),r=Rt(_t(n));pt(r,function(t){o(t,function(n){var r=n.previous.get();return Ys(e,J.some(t)).fold(function(){r.isSome()&&(a(t),n.previous.set(J.none()))},function(e){var t=e.uid,o=e.name,a=e.elements;r.is(t)||(i(o,t,a),n.previous.set(J.some(t)))}),{previous:n.previous,listeners:n.listeners}})})},30);e.on("remove",function(){u.cancel()}),e.on("NodeChange",function(){u.throttle()});var c=function(e,t){o(e,function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}})};return{addListener:c}},el=function(e,t){var n=function(e){return J.from(e.attr(Ks())).bind(t.lookup)};e.on("init",function(){e.serializer.addNodeFilter("span",function(e){pt(e,function(e){n(e).each(function(t){t.persistent===!1&&e.unwrap()})})})})},tl=function(){var e={},t=function(t,n){e[t]={name:t,settings:n}},n=function(t){return e.hasOwnProperty(t)?J.from(e[t]).map(function(e){return e.settings}):J.none()};return{register:t,lookup:n}},nl=0,rl=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return nl++,e+"_"+r+nl+String(n)},ol=function(e,t){pt(t,function(t){Ps(e,t)})},il=function(t,n){var r=n||e.document,o=r.createElement("div");return o.innerHTML=t,kr(Zt.fromDom(o))},al=function(e){return e.dom().innerHTML},ul=function(e,t){var n=pr(e),r=n.dom(),o=Zt.fromDom(r.createDocumentFragment()),i=il(t,r);Or(o,i),Hr(e),Mr(e,o)},cl=function(e,t){return Zt.fromDom(e.dom().cloneNode(t))},sl=function(e){return cl(e,!1)},ll=function(e){return cl(e,!0)},fl=vu,dl=function(e){return e===fl},hl=function(e){return e.replace(new RegExp(fl,"g"),"")},ml={isZwsp:dl,ZWSP:fl,trim:hl},gl=No.isElement,pl=No.isText,vl=function(e){return pl(e)&&(e=e.parentNode),gl(e)&&e.hasAttribute("data-mce-caret")},yl=function(e){return pl(e)&&ml.isZwsp(e.data)},bl=function(e){return vl(e)||yl(e)},Cl=function(e){return e.firstChild!==e.lastChild||!No.isBr(e.firstChild)},wl=function(e,t){var n,r,o,i;if(n=e.ownerDocument,o=n.createTextNode(ml.ZWSP),i=e.parentNode,t){if(r=e.previousSibling,pl(r)){if(bl(r))return r;if(Sl(r))return r.splitText(r.data.length-1)}i.insertBefore(o,e)}else{if(r=e.nextSibling,pl(r)){if(bl(r))return r;if(Nl(r))return r.splitText(1),r}e.nextSibling?i.insertBefore(o,e.nextSibling):i.appendChild(o)}return o},xl=function(e){var t=e.container();return e&&No.isText(t)?t.data.charAt(e.offset())===ml.ZWSP||e.isAtStart()&&yl(t.previousSibling):!1},El=function(e){var t=e.container();return e&&No.isText(t)?t.data.charAt(e.offset()-1)===ml.ZWSP||e.isAtEnd()&&yl(t.nextSibling):!1},zl=function(){var t=e.document.createElement("br");return t.setAttribute("data-mce-bogus","1"),t},kl=function(e,t,n){var r,o,i;return r=t.ownerDocument,o=r.createElement(e),o.setAttribute("data-mce-caret",n?"before":"after"),o.setAttribute("data-mce-bogus","all"),o.appendChild(zl()),i=t.parentNode,n?i.insertBefore(o,t):t.nextSibling?i.insertBefore(o,t.nextSibling):i.appendChild(o),o},Nl=function(e){return pl(e)&&e.data[0]===ml.ZWSP},Sl=function(e){return pl(e)&&e.data[e.data.length-1]===ml.ZWSP},Tl=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];No.isBogus(n)&&n.parentNode.removeChild(n)},Al=function(e){return e&&e.hasAttribute("data-mce-caret")?(Tl(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},Rl=function(e){return vl(e.startContainer)},Bl=No.isContentEditableTrue,Dl=No.isContentEditableFalse,Ml=No.isBr,_l=No.isText,Pl=No.matchNodeNames(["script","style","textarea"]),Ol=No.matchNodeNames(["img","input","textarea","hr","iframe","video","audio","object"]),Hl=No.matchNodeNames(["table"]),Ll=bl,Il=function(e){return Ll(e)?!1:_l(e)?Pl(e.parentNode)?!1:!0:Ol(e)||Ml(e)||Hl(e)||Fl(e)},Vl=function(e){return No.isElement(e)&&"true"===e.getAttribute("unselectable")},Fl=function(e){return Vl(e)===!1&&Dl(e)},Ul=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(Fl(e))return!1;if(Bl(e))return!0}return!0},jl=function(e){return Fl(e)?wt(Mt(e.getElementsByTagName("*")),function(e,t){return e||Bl(t)},!1)!==!0:!1},ql=function(e){return Ol(e)||jl(e)},$l=function(e,t){return Il(e)&&Ul(e,t)},Wl=Math.round,Kl=function(e){return e?{left:Wl(e.left),top:Wl(e.top),bottom:Wl(e.bottom),right:Wl(e.right),width:Wl(e.width),height:Wl(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Xl=function(e,t){return e=Kl(e),t?e.right=e.left:(e.left=e.left+e.width,e.right=e.left),e.width=0,e},Yl=function(e,t){return e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right},Gl=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},Zl=function(e,t){return e.bottom-e.height/2<t.top?!0:e.top>t.bottom?!1:Gl(t.top-e.bottom,e,t)},Jl=function(e,t){return e.top>t.bottom?!0:e.bottom<t.top?!1:Gl(t.bottom-e.top,e,t)},Ql=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},ef=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},tf=function(e,t){return 1===e.nodeType&&e.hasChildNodes()&&(t>=e.childNodes.length&&(t=e.childNodes.length-1),e=e.childNodes[t]),e},nf=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),rf=function(e){return"string"==typeof e&&e.charCodeAt(0)>=768&&nf.test(e)},of=function(e,t,n){return e.isSome()&&t.isSome()?J.some(n(e.getOrDie(),t.getOrDie())):J.none()},af=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?J.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):J.none()},uf=function(e,t){return e?J.some(t):J.none()},cf=[].slice,sf=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=cf.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(n[t](e))return!0;return!1}},lf=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=cf.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(!n[t](e))return!1;return!0}},ff={and:lf,or:sf},df=No.isElement,hf=Il,mf=No.matchStyleValues("display","block table"),gf=No.matchStyleValues("float","left right"),pf=ff.and(df,hf,q(gf)),vf=q(No.matchStyleValues("white-space","pre pre-line pre-wrap")),yf=No.isText,bf=No.isBr,Cf=rs.nodeIndex,wf=tf,xf=function(e){return"createRange"in e?e.createRange():rs.DOM.createRng()},Ef=function(e){return e&&/[\r\n\t ]/.test(e)},zf=function(e){return!!e.setStart&&!!e.setEnd},kf=function(e){var t,n=e.startContainer,r=e.startOffset;return Ef(e.toString())&&vf(n.parentNode)&&No.isText(n)&&(t=n.data,Ef(t[r-1])||Ef(t[r+1]))?!0:!1},Nf=function(e){var t,n=e.ownerDocument,r=xf(n),o=n.createTextNode(yu),i=e.parentNode;return i.insertBefore(o,e),r.setStart(o,0),r.setEnd(o,1),t=Kl(r.getBoundingClientRect()),i.removeChild(o),t},Sf=function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,o=e.endOffset;if(t===n&&No.isText(n)&&0===r&&1===o){var i=e.cloneRange();return i.setEndAfter(n),Af(i)}return null},Tf=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},Af=function(e){var t,n;return n=e.getClientRects(),t=Kl(n.length>0?n[0]:e.getBoundingClientRect()),!zf(e)&&bf(e)&&Tf(t)?Nf(e):Tf(t)&&zf(e)?Sf(e):t},Rf=function(e,t){var n=Xl(e,t);return n.width=1,n.right=n.left+1,n},Bf=function(e){var t,n,r=[],o=function(e){0!==e.height&&(r.length>0&&Yl(e,r[r.length-1])||r.push(e))
},i=function(e,t){var n=xf(e.ownerDocument);if(t<e.data.length){if(rf(e.data[t]))return r;if(rf(e.data[t-1])&&(n.setStart(e,t),n.setEnd(e,t+1),!kf(n)))return o(Rf(Af(n),!1)),r}t>0&&(n.setStart(e,t-1),n.setEnd(e,t),kf(n)||o(Rf(Af(n),!1))),t<e.data.length&&(n.setStart(e,t),n.setEnd(e,t+1),kf(n)||o(Rf(Af(n),!0)))};if(yf(e.container()))return i(e.container(),e.offset()),r;if(df(e.container()))if(e.isAtEnd())n=wf(e.container(),e.offset()),yf(n)&&i(n,n.data.length),pf(n)&&!bf(n)&&o(Rf(Af(n),!1));else{if(n=wf(e.container(),e.offset()),yf(n)&&i(n,0),pf(n)&&e.isAtEnd())return o(Rf(Af(n),!1)),r;t=wf(e.container(),e.offset()-1),pf(t)&&!bf(t)&&(mf(t)||mf(n)||!pf(n))&&o(Rf(Af(t),!1)),pf(n)&&o(Rf(Af(n),!0))}return r};!function(e){e.fromRangeStart=function(t){return e(t.startContainer,t.startOffset)},e.fromRangeEnd=function(t){return e(t.endContainer,t.endOffset)},e.after=function(t){return e(t.parentNode,Cf(t)+1)},e.before=function(t){return e(t.parentNode,Cf(t))},e.isAbove=function(e,t){return of(Bt(t.getClientRects()),Dt(e.getClientRects()),Zl).getOr(!1)},e.isBelow=function(e,t){return of(Dt(t.getClientRects()),Bt(e.getClientRects()),Jl).getOr(!1)},e.isAtStart=function(e){return e?e.isAtStart():!1},e.isAtEnd=function(e){return e?e.isAtEnd():!1},e.isTextPosition=function(e){return e?No.isText(e.container()):!1},e.isElementPosition=function(t){return e.isTextPosition(t)===!1}}(N||(N={}));var Df,Mf=N,_f=No.isText,Pf=No.isBogus,Of=rs.nodeIndex,Hf=function(e){var t=e.parentNode;return Pf(t)?Hf(t):t},Lf=function(e){return e?Fi.reduce(e.childNodes,function(e,t){return Pf(t)&&"BR"!==t.nodeName?e=e.concat(Lf(t)):e.push(t),e},[]):[]},If=function(e,t){for(;(e=e.previousSibling)&&_f(e);)t+=e.data.length;return t},Vf=function(e){return function(t){return e===t}},Ff=function(e){var t,n,r;return t=Lf(Hf(e)),n=Fi.findIndex(t,Vf(e),e),t=t.slice(0,n+1),r=Fi.reduce(t,function(e,n,r){return _f(n)&&_f(t[r-1])&&e++,e},0),t=Fi.filter(t,No.matchNodeNames([e.nodeName])),n=Fi.findIndex(t,Vf(e),e),n-r},Uf=function(e){var t;return t=_f(e)?"text()":e.nodeName.toLowerCase(),t+"["+Ff(e)+"]"},jf=function(e,t,n){var r=[];for(t=t.parentNode;t!==e&&(!n||!n(t));t=t.parentNode)r.push(t);return r},qf=function(e,t){var n,r,o,i,a,u=[];return n=t.container(),r=t.offset(),_f(n)?o=If(n,r):(i=n.childNodes,r>=i.length?(o="after",r=i.length-1):o="before",n=i[r]),u.push(Uf(n)),a=jf(e,n),a=Fi.filter(a,q(No.isBogus)),u=u.concat(Fi.map(a,function(e){return Uf(e)})),u.reverse().join("/")+","+o},$f=function(e,t,n){var r=Lf(e);return r=Fi.filter(r,function(e,t){return!_f(e)||!_f(r[t-1])}),r=Fi.filter(r,No.matchNodeNames([t])),r[n]},Wf=function(e,t){for(var n,r=e,o=0;_f(r);){if(n=r.data.length,t>=o&&o+n>=t){e=r,t-=o;break}if(!_f(r.nextSibling)){e=r,t=n;break}o+=n,r=r.nextSibling}return _f(e)&&t>e.data.length&&(t=e.data.length),Mf(e,t)},Kf=function(e,t){var n,r,o;return t?(n=t.split(","),t=n[0].split("/"),o=n.length>1?n[1]:"before",r=Fi.reduce(t,function(e,t){return(t=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t))?("text()"===t[1]&&(t[1]="#text"),$f(e,t[1],parseInt(t[2],10))):null},e),r?_f(r)?Wf(r,parseInt(o,10)):(o="after"===o?Of(r)+1:Of(r),Mf(r.parentNode,o)):null):null},Xf=function(e,t){No.isText(t)&&0===t.data.length&&e.remove(t)},Yf=function(e,t,n){t.insertNode(n),Xf(e,n.previousSibling),Xf(e,n.nextSibling)},Gf=function(e,t,n){var r=J.from(n.firstChild),o=J.from(n.lastChild);t.insertNode(n),r.each(function(t){return Xf(e,t.previousSibling)}),o.each(function(t){return Xf(e,t.nextSibling)})},Zf=function(e,t,n){No.isDocumentFragment(n)?Gf(e,t,n):Yf(e,t,n)},Jf=No.isContentEditableFalse,Qf=function(e,t,n){var r,o;for(o=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&No.isText(r);r=r.previousSibling)o+=e(r.data).length;return o},ed=function(e,t,n,r,o){var i,a=r[o?"startContainer":"endContainer"],u=r[o?"startOffset":"endOffset"],c=[],s=0,l=e.getRoot();for(No.isText(a)?c.push(n?Qf(t,a,u):u):(i=a.childNodes,u>=i.length&&i.length&&(s=1,u=Math.max(0,i.length-1)),c.push(e.nodeIndex(i[u],n)+s));a&&a!==l;a=a.parentNode)c.push(e.nodeIndex(a,n));return c},td=function(e,t,n,r){var o=t.dom,i={};return i.start=ed(o,e,n,r,!0),t.isCollapsed()||(i.end=ed(o,e,n,r,!1)),i},nd=function(e,t,n){var r=0;return ea.each(e.select(t),function(e){return"all"!==e.getAttribute("data-mce-bogus")?e===n?!1:void r++:void 0}),r},rd=function(e,t){var n,r,o,i=t?"start":"end";n=e[i+"Container"],r=e[i+"Offset"],No.isElement(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)))},od=function(e){return rd(e,!0),rd(e,!1),e},id=function(e,t){var n;if(No.isElement(e)&&(e=tf(e,t),Jf(e)))return e;if(bl(e)){if(No.isText(e)&&vl(e)&&(e=e.parentNode),n=e.previousSibling,Jf(n))return n;if(n=e.nextSibling,Jf(n))return n}},ad=function(e){return id(e.startContainer,e.startOffset)||id(e.endContainer,e.endOffset)},ud=function(e,t,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(Jf(r)||"IMG"===o)return{name:o,index:nd(n.dom,o,r)};var a=ad(i);return a?(o=a.tagName,{name:o,index:nd(n.dom,o,a)}):td(e,n,t,i)},cd=function(e){var t=e.getRng();return{start:qf(e.dom.getRoot(),Mf.fromRangeStart(t)),end:qf(e.dom.getRoot(),Mf.fromRangeEnd(t))}},sd=function(e){return{rng:e.getRng()}},ld=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)},fd=function(e,t){var n=e.dom,r=e.getRng(),o=n.uniqueId(),i=e.isCollapsed(),a=e.getNode(),u=a.nodeName;if("IMG"===u)return{name:u,index:nd(n,u,a)};var c=od(r.cloneRange());if(!i){c.collapse(!1);var s=ld(n,o+"_end",t);Zf(n,c,s)}r=od(r),r.collapse(!0);var l=ld(n,o+"_start",t);return Zf(n,r,l),e.moveToBookmark({id:o,keep:1}),{id:o}},dd=function(e,t,n){return 2===t?ud(ml.trim,n,e):3===t?cd(e):t?sd(e):fd(e,!1)},hd={getBookmark:dd,getUndoBookmark:t(ud,j,!0),getPersistentBookmark:fd},md=function(e,t,n){void 0===n&&(n=W);var r=new Xc(e,t),o=function(e){var t;do t=r[e]();while(t&&!No.isText(t)&&!n(t));return J.from(t).filter(No.isText)};return{current:function(){return J.from(r.current()).filter(No.isText)},next:function(){return o("next")},prev:function(){return o("prev")},prev2:function(){return o("prev2")}}},gd=function(e,t){var n=t?t:function(t){return e.isBlock(t)||No.isBr(t)||No.isContentEditableFalse(t)},r=function(e,t,n,o){if(No.isText(e)){var i=o(e,t,e.data);if(-1!==i)return J.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=md(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=md(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}},pd="_mce_caret",vd=function(e){return No.isElement(e)&&e.id===pd},yd=function(e,t){for(;t&&t!==e;){if(t.id===pd)return t;t=t.parentNode}return null},bd=No.isElement,Cd=No.isText,wd=function(e){var t=e.parentNode;t&&t.removeChild(e)},xd=function(e){try{return e.nodeValue}catch(t){return""}},Ed=function(e,t){0===t.length?wd(e):e.nodeValue=t},zd=function(e){var t=ml.trim(e);return{count:e.length-t.length,text:t}},kd=function(e,t){return Bd(e),t},Nd=function(e,t){var n=zd(e.data.substr(0,t.offset())),r=zd(e.data.substr(t.offset())),o=n.text+r.text;return o.length>0?(Ed(e,o),Mf(e,t.offset()-n.count)):t},Sd=function(e,t){var n=t.container(),r=dt(Mt(n.childNodes),e).map(function(e){return e<t.offset()?Mf(n,t.offset()-1):t}).getOr(t);return Bd(e),r},Td=function(e,t){return Cd(e)&&t.container()===e?Nd(e,t):kd(e,t)},Ad=function(e,t){return t.container()===e.parentNode?Sd(e,t):kd(e,t)},Rd=function(e,t){return Mf.isTextPosition(t)?Td(e,t):Ad(e,t)},Bd=function(e){if(bd(e)&&bl(e)&&(Cl(e)?e.removeAttribute("data-mce-caret"):wd(e)),Cd(e)){var t=ml.trim(xd(e));Ed(e,t)}},Dd={removeAndReposition:Rd,remove:Bd},Md=rs.DOM,_d=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var o=e.getParam(t,"","hash");return o.hasOwnProperty(e.id)?o[e.id]:n}return r},Pd=function(e){return e.getParam("iframe_attrs",{})},Od=function(e){return e.getParam("doctype","<!DOCTYPE html>")},Hd=function(e){return e.getParam("document_base_url","")},Ld=function(e){return _d(e,"body_id","tinymce")},Id=function(e){return _d(e,"body_class","")},Vd=function(e){return e.getParam("content_security_policy","")},Fd=function(e){return e.getParam("br_in_pre",!0)},Ud=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return t===!1?"":t===!0?"p":t},jd=function(e){return e.getParam("forced_root_block_attrs",{})},qd=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},$d=function(e){return e.getParam("no_newline_selector","")},Wd=function(e){return e.getParam("keep_styles",!0)},Kd=function(e){return e.getParam("end_container_on_empty_block",!1)},Xd=function(e){return ea.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},Yd=function(e){return ea.explode(e.getParam("font_size_classes",""))},Gd=function(e){return e.getParam("images_dataimg_filter",U(!0),"function")},Zd=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Jd=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Qd=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},eh=function(e){return e.getParam("icons","","string")},th=function(e){return e.getParam("icons_url","","string")},nh=function(e){return e.getParam("images_upload_url","","string")},rh=function(e){return e.getParam("images_upload_base_path","","string")},oh=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},ih=function(e){return e.getParam("images_upload_handler",null,"function")},ah=function(e){return e.getParam("content_css_cors",!1,"boolean")},uh=function(e){return e.getParam("referrer_policy","","string")},ch=function(e){return e.getParam("language","en","string")},sh=function(e){return e.getParam("language_url","","string")},lh=function(e){return e.getParam("indent_use_margin",!1)},fh=function(e){return e.getParam("indentation","40px","string")},dh=function(e){var t=e.settings.content_css;return tt(t)?gt(t.split(","),On):rt(t)?t:t===!1||e.inline?[]:["default"]},hh=function(e){return e.getParam("directionality",zs.isRtl()?"rtl":void 0)},mh=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},gh=function(e){return e.getParam("object_resizing")},ph=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},vh=function(e){return e.getParam("placeholder",Md.getAttrib(e.getElement(),"placeholder"),"string")},yh={getIframeAttrs:Pd,getDocType:Od,getDocumentBaseUrl:Hd,getBodyId:Ld,getBodyClass:Id,getContentSecurityPolicy:Vd,shouldPutBrInPre:Fd,getForcedRootBlock:Ud,getForcedRootBlockAttrs:jd,getBrNewLineSelector:qd,getNoNewLineSelector:$d,shouldKeepStyles:Wd,shouldEndContainerOnEmptyBlock:Kd,getFontStyleValues:Xd,getFontSizeClasses:Yd,getIconPackName:eh,getIconsUrl:th,getImagesDataImgFilter:Gd,isAutomaticUploadsEnabled:Zd,shouldReuseFileName:Jd,shouldReplaceBlobUris:Qd,getImageUploadUrl:nh,getImageUploadBasePath:rh,getImagesUploadCredentials:oh,getImagesUploadHandler:ih,shouldUseContentCssCors:ah,getReferrerPolicy:uh,getLanguageCode:ch,getLanguageUrl:sh,shouldIndentUseMargin:lh,getIndentation:fh,getContentCss:dh,getDirectionality:hh,getInlineBoundarySelector:mh,getObjectResizing:gh,getResizeImgProportional:ph,getPlaceholder:vh},bh=Xn().browser,Ch=No.isContentEditableFalse,wh=function(e){return No.isElement(e)&&/^(TD|TH)$/i.test(e.tagName)},xh=function(e,t,n){var r,o,i,a,u,c=Xl(t.getBoundingClientRect(),n);return"BODY"===e.tagName?(r=e.ownerDocument.documentElement,o=e.scrollLeft||r.scrollLeft,i=e.scrollTop||r.scrollTop):(u=e.getBoundingClientRect(),o=e.scrollLeft-u.left,i=e.scrollTop-u.top),c.left+=o,c.right+=o,c.top+=i,c.bottom+=i,c.width=1,a=t.offsetWidth-t.clientWidth,a>0&&(n&&(a*=-1),c.left+=a,c.right+=a),c},Eh=function(e){var t,n,r,o,i;for(t=Kc("*[contentEditable=false]",e),o=0;o<t.length;o++)n=t[o],r=n.previousSibling,Sl(r)&&(i=r.data,1===i.length?r.parentNode.removeChild(r):r.deleteData(i.length-1,1)),r=n.nextSibling,Nl(r)&&(i=r.data,1===i.length?r.parentNode.removeChild(r):r.deleteData(0,1))},zh=function(e,t,n,r){var o,i,a=Jt(J.none()),u=yh.getForcedRootBlock(e),c=u.length>0?u:"p",s=function(e,r){var o,u;if(l(),wh(r))return null;if(!n(r))return i=wl(r,e),u=r.ownerDocument.createRange(),Ch(i.nextSibling)?(u.setStart(i,0),u.setEnd(i,0)):(u.setStart(i,1),u.setEnd(i,1)),u;i=kl(c,r,e),o=xh(t,r,e),Kc(i).css("top",o.top);var s=Kc('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(o).appendTo(t)[0];return a.set(J.some({caret:s,element:r,before:e})),a.get().each(function(t){e&&Kc(t.caret).addClass("mce-visual-caret-before")}),f(),u=r.ownerDocument.createRange(),u.setStart(i,0),u.setEnd(i,0),u},l=function(){Eh(t),i&&(Dd.remove(i),i=null),a.get().each(function(e){Kc(e.caret).remove(),a.set(J.none())}),wi.clearInterval(o)},f=function(){o=wi.setInterval(function(){r()?Kc("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Kc("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")},500)},d=function(){a.get().each(function(e){var n=xh(t,e.element,e.before);Kc(e.caret).css($t({},n))})},h=function(){return wi.clearInterval(o)},m=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:m,reposition:d,destroy:h}},kh=function(){return bh.isIE()||bh.isEdge()||bh.isFirefox()},Nh=function(e){return Ch(e)||No.isTable(e)&&kh()},Sh=No.isContentEditableFalse,Th=No.matchStyleValues("display","block table table-cell table-caption list-item"),Ah=bl,Rh=vl,Bh=No.isElement,Dh=Il,Mh=function(e){return e>0},_h=function(e){return 0>e},Ph=function(e,t){for(var n;n=e(t);)if(!Rh(n))return n;return null},Oh=function(e,t,n,r,o){var i=new Xc(e,r);if(_h(t)){if((Sh(e)||Rh(e))&&(e=Ph(i.prev,!0),n(e)))return e;for(;e=Ph(i.prev,o);)if(n(e))return e}if(Mh(t)){if((Sh(e)||Rh(e))&&(e=Ph(i.next,!0),n(e)))return e;for(;e=Ph(i.next,o);)if(n(e))return e}return null},Hh=function(e,t){for(;e&&e!==t;){if(Th(e))return e;e=e.parentNode}return null},Lh=function(e,t,n){return Hh(e.container(),n)===Hh(t.container(),n)},Ih=function(e,t){var n,r;return t?(n=t.container(),r=t.offset(),Bh(n)?n.childNodes[r+e]:null):null},Vh=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},Fh=function(e,t,n){return Hh(t,e)===Hh(n,e)},Uh=function(e,t,n){var r,o;for(o=e?"previousSibling":"nextSibling";n&&n!==t;){if(r=n[o],Ah(r)&&(r=r[o]),Sh(r)){if(Fh(t,r,n))return r;break}if(Dh(r))break;n=n.parentNode}return null},jh=t(Vh,!0),qh=t(Vh,!1),$h=function(e,n,r){var o,i,a,u,c=t(Uh,!0,n),s=t(Uh,!1,n);if(i=r.startContainer,a=r.startOffset,vl(i)){if(Bh(i)||(i=i.parentNode),u=i.getAttribute("data-mce-caret"),"before"===u&&(o=i.nextSibling,Nh(o)))return jh(o);if("after"===u&&(o=i.previousSibling,Nh(o)))return qh(o)}if(!r.collapsed)return r;if(No.isText(i)){if(Ah(i)){if(1===e){if(o=s(i))return jh(o);if(o=c(i))return qh(o)}if(-1===e){if(o=c(i))return qh(o);if(o=s(i))return jh(o)}return r}if(Sl(i)&&a>=i.data.length-1)return 1===e&&(o=s(i))?jh(o):r;if(Nl(i)&&1>=a)return-1===e&&(o=c(i))?qh(o):r;if(a===i.data.length)return o=s(i),o?jh(o):r;if(0===a)return o=c(i),o?qh(o):r}return r},Wh=function(e,t){return J.from(Ih(e?0:-1,t)).filter(Sh)},Kh=function(e,t,n){var r=$h(e,t,n);return-1===e?N.fromRangeStart(r):N.fromRangeEnd(r)},Xh=function(e){return J.from(e.getNode()).map(Zt.fromDom)},Yh=function(e){return J.from(e.getNode(!0)).map(Zt.fromDom)},Gh=function(e,t){for(;t=e(t);)if(t.isVisible())return t;return t},Zh=function(e,t){var n=Lh(e,t);return!n&&No.isBr(e.getNode())?!0:n};!function(e){e[e.Backwards=-1]="Backwards",e[e.Forwards=1]="Forwards"}(Df||(Df={}));var Jh=No.isContentEditableFalse,Qh=No.isText,em=No.isElement,tm=No.isBr,nm=Il,rm=ql,om=$l,im=function(e,t){for(var n=[];e&&e!==t;)n.push(e),e=e.parentNode;return n},am=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},um=function(e,t){if(Mh(e)){if(nm(t.previousSibling)&&!Qh(t.previousSibling))return Mf.before(t);if(Qh(t))return Mf(t,0)}if(_h(e)){if(nm(t.nextSibling)&&!Qh(t.nextSibling))return Mf.after(t);if(Qh(t))return Mf(t,t.data.length)}return _h(e)?tm(t)?Mf.before(t):Mf.after(t):Mf.before(t)},cm=function(e,t){var n=t.nextSibling;return n&&nm(n)?Qh(n)?Mf(n,0):Mf.before(n):sm(Df.Forwards,Mf.after(t),e)},sm=function(e,t,n){var r,o,i,a,u;if(!em(n)||!t)return null;if(t.isEqual(Mf.after(n))&&n.lastChild){if(u=Mf.after(n.lastChild),_h(e)&&nm(n.lastChild)&&em(n.lastChild))return tm(n.lastChild)?Mf.before(n.lastChild):u}else u=t;var c=u.container(),s=u.offset();if(Qh(c)){if(_h(e)&&s>0)return Mf(c,--s);if(Mh(e)&&s<c.length)return Mf(c,++s);r=c}else{if(_h(e)&&s>0&&(o=am(c,s-1),nm(o)))return!rm(o)&&(i=Oh(o,e,om,o))?Qh(i)?Mf(i,i.data.length):Mf.after(i):Qh(o)?Mf(o,o.data.length):Mf.before(o);if(Mh(e)&&s<c.childNodes.length&&(o=am(c,s),nm(o)))return tm(o)?cm(n,o):!rm(o)&&(i=Oh(o,e,om,o))?Qh(i)?Mf(i,0):Mf.before(i):Qh(o)?Mf(o,0):Mf.after(o);r=o?o:u.getNode()}return(Mh(e)&&u.isAtEnd()||_h(e)&&u.isAtStart())&&(r=Oh(r,e,U(!0),n,!0),om(r,n))?um(e,r):(o=Oh(r,e,om,n),a=Fi.last(bt(im(c,n),Jh)),!a||o&&a.contains(o)?o?um(e,o):null:u=Mh(e)?Mf.after(a):Mf.before(a))},lm=function(e){return{next:function(t){return sm(Df.Forwards,t,e)},prev:function(t){return sm(Df.Backwards,t,e)}}},fm=function(e,t,n){var r=e?Mf.before(n):Mf.after(n);return ym(e,t,r)},dm=function(e){return No.isBr(e)?Mf.before(e):Mf.after(e)},hm=function(e){return Mf.isTextPosition(e)?0===e.offset():Il(e.getNode())},mm=function(e){if(Mf.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Il(e.getNode(!0))},gm=function(e,t){return!Mf.isTextPosition(e)&&!Mf.isTextPosition(t)&&e.getNode()===t.getNode(!0)},pm=function(e){return!Mf.isTextPosition(e)&&No.isBr(e.getNode())},vm=function(e,t,n){return e?!gm(t,n)&&!pm(t)&&mm(t)&&hm(n):!gm(n,t)&&hm(t)&&mm(n)},ym=function(e,t,n){var r=lm(t);return J.from(e?r.next(n):r.prev(n))},bm=function(e,t,n){return ym(e,t,n).bind(function(r){return Lh(n,r,t)&&vm(e,n,r)?ym(e,t,r):J.some(r)})},Cm=function(e,t,n,r){return bm(e,t,n).bind(function(n){return r(n)?Cm(e,t,n,r):J.some(n)})},wm=function(e,t){var n=e?t.firstChild:t.lastChild;return No.isText(n)?J.some(Mf(n,e?0:n.data.length)):n?Il(n)?J.some(e?Mf.before(n):dm(n)):fm(e,t,n):J.none()},xm=t(ym,!0),Em=t(ym,!1),zm={fromPosition:ym,nextPosition:xm,prevPosition:Em,navigate:bm,navigateIgnore:Cm,positionIn:wm,firstPositionIn:t(wm,!0),lastPositionIn:t(wm,!1)},km=function(e){return"string"==typeof e.start},Nm=function(e){return e.hasOwnProperty("rng")},Sm=function(e){return e.hasOwnProperty("id")},Tm=function(e){return e.hasOwnProperty("name")},Am=function(e){return ea.isArray(e.start)},Rm=function(e,t){return No.isElement(t)&&e.isBlock(t)&&!t.innerHTML&&!Ri.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},Bm=function(e,t){var n,r;return n=e.createRng(),r=Kf(e.getRoot(),t.start),n.setStart(r.container(),r.offset()),r=Kf(e.getRoot(),t.end),n.setEnd(r.container(),r.offset()),n},Dm=function(e,t){var n=e.ownerDocument.createTextNode(ml.ZWSP);e.appendChild(n),t.setStart(n,0),t.setEnd(n,0)},Mm=function(e){return e.hasChildNodes()===!1},_m=function(e,t){return zm.lastPositionIn(e).fold(function(){return!1},function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0})},Pm=function(e,t,n){return Mm(t)&&yd(e,t)?(Dm(t,n),!0):!1},Om=function(e,t,n,r){var o,i,a,u,c=n[t?"start":"end"],s=e.getRoot();if(c){for(a=c[0],i=s,o=c.length-1;o>=1;o--){if(u=i.childNodes,Pm(s,i,r))return!0;if(c[o]>u.length-1)return Pm(s,i,r)?!0:_m(i,r);i=u[c[o]]}3===i.nodeType&&(a=Math.min(c[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(c[0],i.childNodes.length)),t?r.setStart(i,a):r.setEnd(i,a)}return!0},Hm=function(e){return No.isText(e)&&e.data.length>0},Lm=function(e,t,n){var r,o,i,a,u,c,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):Hm(s.nextSibling)?(r=s.nextSibling,o=0):Hm(s.previousSibling)?(r=s.previousSibling,o=s.previousSibling.data.length):(r=s.parentNode,o=e.nodeIndex(s)+1):o=e.nodeIndex(s),u=r,c=o):(l?s.hasChildNodes()?(r=s.firstChild,o=1):Hm(s.previousSibling)?(r=s.previousSibling,o=s.previousSibling.data.length):(r=s.parentNode,o=e.nodeIndex(s)):o=e.nodeIndex(s),u=r,c=o),!l){for(a=s.previousSibling,i=s.nextSibling,ea.each(ea.grep(s.childNodes),function(e){No.isText(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))});s=e.get(n.id+"_"+t);)e.remove(s,!0);a&&i&&a.nodeType===i.nodeType&&No.isText(a)&&!Ri.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),"start"===t?(u=a,c=o):(u=a,c=o))}return J.some(Mf(u,c))}return J.none()},Im=function(e,t){var n=e.createRng();return Om(e,!0,t,n)&&Om(e,!1,t,n)?J.some(n):J.none()},Vm=function(e,t){var n=Lm(e,"start",t),r=Lm(e,"end",t);return of(n,r.or(n),function(t,n){var r=e.createRng();return r.setStart(Rm(e,t.container()),t.offset()),r.setEnd(Rm(e,n.container()),n.offset()),r})},Fm=function(e,t){return J.from(e.select(t.name)[t.index]).map(function(t){var n=e.createRng();return n.selectNode(t),n})},Um=function(e,t){var n=e.dom;if(t){if(Am(t))return Im(n,t);if(km(t))return J.some(Bm(n,t));if(Sm(t))return Vm(n,t);if(Tm(t))return Fm(n,t);if(Nm(t))return J.some(t.rng)}return J.none()},jm={resolve:Um},qm=function(e,t,n){return hd.getBookmark(e,t,n)},$m=function(e,t){jm.resolve(e,t).each(function(t){e.setRng(t)})},Wm=function(e){return No.isElement(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Km={getBookmark:qm,moveToBookmark:$m,isBookmarkNode:Wm},Xm=function(e){return function(t){return e===t}},Ym=Xm(yu),Gm=function(e){return""!==e&&-1!==" \f\n\r ".indexOf(e)},Zm=function(e){return!Gm(e)&&!Ym(e)},Jm=function(e){return!!e.nodeType},Qm=function(e){return e&&/^(IMG)$/.test(e.nodeName)},eg=function(e,t,n){var r,o,i,a=n.startOffset,u=n.startContainer;if((n.startContainer!==n.endContainer||!Qm(n.startContainer.childNodes[n.startOffset]))&&1===u.nodeType)for(i=u.childNodes,a<i.length?(u=i[a],r=new Xc(u,e.getParent(u,e.isBlock))):(u=i[i.length-1],r=new Xc(u,e.getParent(u,e.isBlock)),r.next(!0)),o=r.current();o;o=r.next())if(3===o.nodeType&&!og(o))return n.setStart(o,0),void t.setRng(n)},tg=function(e,t,n){if(e){var r=t?"nextSibling":"previousSibling";for(e=n?e:e[r];e;e=e[r])if(1===e.nodeType||!og(e))return e}},ng=function(e,t){return Jm(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},rg=function(e,t,n){return e.schema.isValidChild(t,n)},og=function(e){return e&&No.isText(e)&&/^([\t \r\n]+|)$/.test(e.nodeValue)},ig=function(e){return e&&No.isText(e)&&0===e.length},ag=function(e,t){return"string"!=typeof e?e=e(t):t&&(e=e.replace(/%(\w+)/g,function(e,n){return t[n]||e})),e},ug=function(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},cg=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},sg=function(e,t,n){return cg(e,e.getStyle(t,n),n)},lg=function(e,t){var n;return e.getParent(t,function(t){return n=e.getStyle(t,"text-decoration"),n&&"none"!==n}),n},fg=function(e,t,n){return e.getParents(t,n,e.getRoot())},dg=Km.isBookmarkNode,hg=fg,mg=og,gg=ng,pg=function(e){return"BR"===e.nodeName&&e.getAttribute("data-mce-bogus")&&!e.nextSibling},vg=function(e,t){for(var n=t;n;){if(No.isElement(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},yg=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},bg=function(e,t,n){return yg(e,t,n,function(e){return Ym(e)||Gm(e)})},Cg=function(e,t,n){return yg(e,t,n,Zm)},wg=function(e,t,n,r,o,i){var a,u=e.getParent(n,e.isBlock)||t,c=function(t,n,r){var i=gd(e),c=o?i.backwards:i.forwards;return J.from(c(t,n,function(e,t){return dg(e.parentNode)?-1:(a=e,r(o,e,t))},u))},s=c(n,r,bg);return s.bind(function(e){return i?c(e.container,e.offset+(o?-1:0),Cg):J.some(e)}).orThunk(function(){return a?J.some({container:a,offset:o?0:a.length}):J.none()})},xg=function(e,t,n,r,o){No.isText(r)&&0===r.nodeValue.length&&r[o]&&(r=r[o]);for(var i=hg(e,r),a=0;a<i.length;a++)for(var u=0;u<t.length;u++){var c=t[u];if(!("collapsed"in c&&c.collapsed!==n.collapsed)&&e.is(i[a],c.selector))return i[a]}return r},Eg=function(e,t,n,r){var o,i=e.dom,a=i.getRoot();if(t[0].wrapper||(o=i.getParent(n,t[0].block,a)),!o){var u=i.getParent(n,"LI,TD,TH");o=i.getParent(No.isText(n)?n.parentNode:n,function(t){return t!==a&&gg(e,t)},u)}if(o&&t[0].wrapper&&(o=hg(i,o,"ul,ol").reverse()[0]||o),!o)for(o=n;o[r]&&!i.isBlock(o[r])&&(o=o[r],!ug(o,"br")););return o||n},zg=function(e,t,n,r,o,i,a){var u,c,s,l,f;if(u=c=a?n:o,l=a?"previousSibling":"nextSibling",f=e.getRoot(),No.isText(u)&&!mg(u)&&(a?r>0:i<u.nodeValue.length))return u;for(;;){if(!t[0].block_expand&&e.isBlock(c))return c;for(s=c[l];s;s=s[l])if(!dg(s)&&!mg(s)&&!pg(s))return c;if(c===f||c.parentNode===f){u=c;break}c=c.parentNode}return u},kg=function(e,t,n,r){void 0===r&&(r=!1);var o=t.startContainer,i=t.startOffset,a=t.endContainer,u=t.endOffset,c=e.dom;if(No.isElement(o)&&o.hasChildNodes()&&(o=tf(o,i),No.isText(o)&&(i=0)),No.isElement(a)&&a.hasChildNodes()&&(a=tf(a,t.collapsed?u:u-1),No.isText(a)&&(u=a.nodeValue.length)),o=vg(c,o),a=vg(c,a),(dg(o.parentNode)||dg(o))&&(o=dg(o)?o:o.parentNode,o=t.collapsed?o.previousSibling||o:o.nextSibling||o,No.isText(o)&&(i=t.collapsed?o.length:0)),(dg(a.parentNode)||dg(a))&&(a=dg(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,No.isText(a)&&(u=t.collapsed?0:a.length)),t.collapsed){var s=wg(c,e.getBody(),o,i,!0,r);s.each(function(e){var t=e.container,n=e.offset;o=t,i=n});var l=wg(c,e.getBody(),a,u,!1,r);l.each(function(e){var t=e.container,n=e.offset;a=t,u=n})}return(n[0].inline||n[0].block_expand)&&(n[0].inline&&No.isText(o)&&0!==i||(o=zg(c,n,o,i,a,u,!0)),n[0].inline&&No.isText(a)&&u!==a.nodeValue.length||(a=zg(c,n,o,i,a,u,!1))),n[0].selector&&n[0].expand!==!1&&!n[0].inline&&(o=xg(c,n,t,o,"previousSibling"),a=xg(c,n,t,a,"nextSibling")),(n[0].block||n[0].selector)&&(o=Eg(e,n,o,"previousSibling"),a=Eg(e,n,a,"nextSibling"),n[0].block&&(c.isBlock(o)||(o=zg(c,n,o,i,a,u,!0)),c.isBlock(a)||(a=zg(c,n,o,i,a,u,!1)))),No.isElement(o)&&(i=c.nodeIndex(o),o=o.parentNode),No.isElement(a)&&(u=c.nodeIndex(a)+1,a=a.parentNode),{startContainer:o,startOffset:i,endContainer:a,endOffset:u}},Ng=ea.each,Sg=function(e,t){var n=e.childNodes;return t>=n.length?t=n.length-1:0>t&&(t=0),n[t]||e},Tg=function(e,t){return Sg(e,t-1)},Ag=function(e,t,n){var r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=e.select("td[data-mce-selected],th[data-mce-selected]");if(u.length>0)return void Ng(u,function(e){n([e])});var c=function(e){var t;return t=e[0],3===t.nodeType&&t===r&&o>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===a&&e.length>0&&t===i&&3===t.nodeType&&e.splice(e.length-1,1),e},s=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},l=function(e,t){do{if(e.parentNode===t)return e;e=e.parentNode}while(e)},f=function(e,t,r){for(var o=r?"nextSibling":"previousSibling",i=e,a=i.parentNode;i&&i!==t;i=a){a=i.parentNode;var u=s(i===e?i:i[o],o);u.length&&(r||u.reverse(),n(c(u)))}};if(1===r.nodeType&&r.hasChildNodes()&&(r=Sg(r,o)),1===i.nodeType&&i.hasChildNodes()&&(i=Tg(i,a)),r===i)return n(c([r]));for(var d=e.findCommonAncestor(r,i),h=r;h;h=h.parentNode){if(h===i)return f(r,d,!0);if(h===d)break}for(var h=i;h;h=h.parentNode){if(h===r)return f(i,d);if(h===d)break}var m=l(r,d)||r,g=l(i,d)||i;f(r,m,!0);var p=s(m===r?m:m.nextSibling,"nextSibling",g===i?g.nextSibling:g);p.length&&n(c(p)),f(i,g)},Rg={walk:Ag},Bg=S(qr,"text"),Dg=function(e){return Bg.get(e)},Mg=function(e){return qr(e)&&Dg(e)===vu},_g=function(e,t,n,r){return br(t).fold(function(){return"skipping"},function(o){return"br"===r||Mg(t)?"valid":Gs(t)?"existing":vd(t)?"caret":rg(e,n,r)&&rg(e,Vr(o),n)?"valid":"invalid-child"})},Pg=function(e,t){var n=kg(e,t,[{inline:!0}]);t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)},Og=function(e,t,n,o){var i=t.uid,a=void 0===i?rl("mce-annotation"):i,u=r(t,["uid"]),c=Zt.fromTag("span",e);Ps(c,Ws()),Ao(c,""+Xs(),a),Ao(c,""+Ks(),n);var s=o(a,u),l=s.attributes,f=void 0===l?{}:l,d=s.classes,h=void 0===d?[]:d;return Ro(c,f),ol(c,h),c},Hg=function(e,t,n,r,o){var i=[],a=Og(e.getDoc(),o,n,r),u=Jt(J.none()),c=function(){u.set(J.none())},s=function(){return u.get().getOrThunk(function(){var e=sl(a);return i.push(e),u.set(J.some(e)),e})},l=function(e){pt(e,f)},f=function(t){var n=_g(e,t,"span",Vr(t));switch(n){case"invalid-child":c();var r=kr(t);l(r),c();break;case"valid":var o=s();_r(t,o)}},d=function(e){var t=gt(e,Zt.fromDom);l(t)};return Rg.walk(e.dom,t,function(e){c(),d(e)}),i},Lg=function(e,t,n,r){e.undoManager.transact(function(){var o=e.selection.getRng();if(o.collapsed&&Pg(e,o),e.selection.getRng().collapsed){var i=Og(e.getDoc(),r,t,n.decorate);ul(i,yu),e.selection.getRng().insertNode(i.dom()),e.selection.select(i.dom())}else{var a=hd.getPersistentBookmark(e.selection,!1),u=e.selection.getRng();Hg(e,u,t,n.decorate,r),e.selection.moveToBookmark(a)}})},Ig=function(e){var t=tl();el(e,t);var n=Qs(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each(function(t){Lg(e,n,t,r)})},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){Ys(e,J.some(t)).each(function(e){var t=e.elements;pt(t,Ir)})},getAll:function(t){var n=Js(e,t);return Ht(n,function(e){return gt(e,function(e){return e.dom()})})}}},Vg=/^[ \t\r\n]*$/,Fg={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Ug=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])return i}},jg=function(e){if(!Vg.test(e.value))return!1;var t=e.parent;return t&&("span"!==t.name||t.attr("style"))&&/^[ ]+$/.test(e.value)?!1:!0},qg=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},$g=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,Fg[t]||1);if(n)for(var o in n)r.attr(o,n[o]);return 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){for(var o in e)r.attr(o,e[o]);return r}if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];for(var i=n.length;i--;)if(n[i].name===e)return n.splice(i,1),r}return r}if(e in n.map){for(var i=n.length;i--;)if(n[i].name===e){n[i].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;a>i;i++){var u=t[i];"id"!==u.name&&(o[o.length]={name:u.name,value:u.value},o.map[u.name]=u.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=Ug(r,t))r.name===e&&n.push(r);return n},e.prototype.empty=function(){var e=this;if(e.firstChild){for(var t=[],n=e.firstChild;n;n=Ug(n,e))t.push(n);for(var r=t.length;r--;){var 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(qg(r))return!1;if(o)do{if(1===o.type){if(o.attr("data-mce-bogus"))continue;if(e[o.name])return!1;if(qg(o))return!1}if(8===o.type)return!1;if(3===o.type&&!jg(o))return!1;if(3===o.type&&o.parent&&t[o.parent.name]&&Vg.test(o.value))return!1;if(n&&n(o))return!1}while(o=Ug(o,r));return!0},e.prototype.walk=function(e){return Ug(this,null,e)},e}(),Wg=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},Kg=function(e,t){return e.allow_html_data_urls?!1:/^data:image\//i.test(t)?e.allow_svg_data_urls===!1&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t)},Xg=function(e,t,n){var r,o,i,a,u=1;for(a=e.getShortEndedElements(),i=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g,i.lastIndex=r=n;o=i.exec(t);){if(r=i.lastIndex,"/"===o[1])u--;else if(!o[1]){if(o[2]in a)continue;u++}if(0===u)break}return r},Yg=function(e,t){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(e.substr(t))},Gg=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&Yg(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=/--!?>/;a.lastIndex=n;var u=a.exec(e);return u?u.index+u[0].length:r.length},Zg=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};!function(e){e.findEndTag=Xg}(T||(T={}));var Jg,Qg=T,ep=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},tp=function(e,t){var n,r,o,i,a,u=t,c=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,s=e.schema;for(u=ep(e.getTempAttrs(),u),a=s.getShortEndedElements();i=c.exec(u);)r=c.lastIndex,o=i[0].length,n=a[i[1]]?r:Qg.findEndTag(s,u,r),u=u.substring(0,r-o)+u.substring(n),c.lastIndex=r-o;return ml.trim(u)},np=tp,rp={trimExternal:np,trimInternal:tp},op="html",ip=function(e,t){var n=yh.getForcedRootBlock(e),r=new RegExp("^(<"+n+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return t.replace(r,"")},ap=function(e,t,n){var r;if(t.format=t.format?t.format:op,t.get=!0,t.getInner=!0,t.no_events||e.fire("BeforeGetContent",t),"raw"===t.format)r=ea.trim(rp.trimExternal(e.serializer,n.innerHTML));else if("text"===t.format)r=ml.trim(n.innerText||n.textContent);else{if("tree"===t.format)return e.serializer.serialize(n,t);r=ip(e,e.serializer.serialize(n,t))}return t.content="text"===t.format||xa(Zt.fromDom(n))?r:ea.trim(r),t.no_events||e.fire("GetContent",t),t.content},up=function(e,t){return void 0===t&&(t={}),J.from(e.getBody()).fold(U("tree"===t.format?new $g("body",11):""),function(n){return ap(e,t,n)})},cp=ea.makeMap,sp=function(e){var t,n,r,o,i,a=[];return e=e||{},t=e.indent,n=cp(e.indent_before||""),r=cp(e.indent_after||""),o=au.getEncodeFunc(e.entity_encoding||"raw",e.entities),i="html"===e.element_format,{start:function(e,u,c){var s,l,f,d;if(t&&n[e]&&a.length>0&&(d=a[a.length-1],d.length>0&&"\n"!==d&&a.push("\n")),a.push("<",e),u)for(s=0,l=u.length;l>s;s++)f=u[s],a.push(" ",f.name,'="',o(f.value,!0),'"');a[a.length]=!c||i?">":" />",c&&t&&r[e]&&a.length>0&&(d=a[a.length-1],d.length>0&&"\n"!==d&&a.push("\n"))},end:function(e){var n;a.push("</",e,">"),t&&r[e]&&a.length>0&&(n=a[a.length-1],n.length>0&&"\n"!==n&&a.push("\n"))},text:function(e,t){e.length>0&&(a[a.length]=t?e:o(e))},cdata:function(e){a.push("<![CDATA[",e,"]]>")},comment:function(e){a.push("<!--",e,"-->")},pi:function(e,n){n?a.push("<?",e," ",o(n),"?>"):a.push("<?",e,"?>"),t&&a.push("\n")},doctype:function(e){a.push("<!DOCTYPE",e,">",t?"\n":"")},reset:function(){a.length=0},getContent:function(){return a.join("").replace(/\n$/,"")}}},lp=function(e,t){void 0===t&&(t=a());var n=sp(e);e=e||{},e.validate="validate"in e?e.validate:!0;var r=function(r){var o,i;i=e.validate,o={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,u,c,s,l,f,d,h,m,g=o[e.type];if(g)g(e);else{if(r=e.name,u=e.shortEnded,c=e.attributes,i&&c&&c.length>1&&(f=[],f.map={},m=t.getElementRule(e.name))){for(d=0,h=m.attributesOrder.length;h>d;d++)s=m.attributesOrder[d],s in c.map&&(l=c.map[s],f.map[s]=l,f.push({name:s,value:l}));for(d=0,h=c.length;h>d;d++)s=c[d].name,s in f.map||(l=c.map[s],f.map[s]=l,f.push({name:s,value:l}));c=f}if(n.start(e.name,c,u),!u){if(e=e.firstChild)do a(e);while(e=e.next);n.end(r)}}};return 1!==r.type||e.inner?o[11](r):a(r),n.getContent()};return{serialize:r}},fp=function(e,t){t(e),e.firstChild&&fp(e.firstChild,t),e.next&&fp(e.next,t)},dp=function(e,t,n){var r={},o={},i=[];n.firstChild&&fp(n.firstChild,function(n){pt(e,function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})}),pt(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]})})});for(var a in r)r.hasOwnProperty(a)&&i.push(r[a]);for(var u in o)o.hasOwnProperty(u)&&i.push(o[u]);return i},hp=function(e,t,n){var r=dp(e,t,n);pt(r,function(e){pt(e.filter.callbacks,function(t){t(e.nodes,e.filter.name,{})})})},mp=function(e){var t=pr(e).dom();return e.dom()===t.activeElement},gp=function(t){var n=void 0!==t?t.dom():e.document;return J.from(n.activeElement).map(Zt.fromDom)},pp=function(e){return gp(pr(e)).filter(function(t){return e.dom().contains(t.dom())})},vp=function(t){if(!rt(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var n=[],r={};return pt(t,function(o,i){var a=_t(o);if(1!==a.length)throw new Error("one and only one name per case");var u=a[0],c=o[u];if(void 0!==r[u])throw new Error("duplicate key detected:"+u);if("cata"===u)throw new Error("cannot have a case named cata (sorry)");if(!rt(c))throw new Error("case arguments must be an array");n.push(u),r[u]=function(){var r=arguments.length;if(r!==c.length)throw new Error("Wrong number of arguments to case "+u+". Expected "+c.length+" ("+c+"), got "+r);for(var o=new Array(r),a=0;a<o.length;a++)o[a]=arguments[a];var s=function(e){var t=_t(e);if(n.length!==t.length)throw new Error("Wrong number of arguments to match. Expected: "+n.join(",")+"\nActual: "+t.join(","));var r=Nt(n,function(e){return ht(t,e)});if(!r)throw new Error("Not all branches were specified when using match. Specified: "+t.join(", ")+"\nRequired: "+n.join(", "));return e[u].apply(null,o)};return{fold:function(){if(arguments.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+arguments.length);var e=arguments[i];return e.apply(null,o)},match:s,log:function(t){e.console.log(t,{constructors:n,constructor:u,params:o})}}}}),r},yp={generate:vp},bp=Yn("start","soffset","finish","foffset"),Cp={create:bp},wp=yp.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),xp=function(e,t,n,r){return e.fold(t,n,r)},Ep=function(e){return e.fold(j,j,j)},zp=wp.before,kp=wp.on,Np=wp.after,Sp={before:zp,on:kp,after:Np,cata:xp,getStart:Ep},Tp=yp.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Ap=function(e){return Tp.exact(e.start(),e.soffset(),e.finish(),e.foffset())},Rp=function(e){return e.match({domRange:function(e){return Zt.fromDom(e.startContainer)},relative:function(e){return Sp.getStart(e)},exact:function(e){return e}})},Bp=Tp.domRange,Dp=Tp.relative,Mp=Tp.exact,_p=function(e){var t=Rp(e);return yr(t)},Pp=Cp.create,Op={domRange:Bp,relative:Dp,exact:Mp,exactFromRange:Ap,getWin:_p,range:Pp},Hp=Xn().browser,Lp=function(e,t){var n=qr(t)?Dg(t).length:kr(t).length+1;return e>n?n:0>e?0:e},Ip=function(e){return Op.range(e.start(),Lp(e.soffset(),e.start()),e.finish(),Lp(e.foffset(),e.finish()))},Vp=function(e,t){return!No.isRestrictedNode(t.dom())&&(gr(e,t)||fr(e,t))},Fp=function(e){return function(t){return Vp(e,t.start())&&Vp(e,t.finish())}},Up=function(e){return e.inline===!0||Hp.isIE()},jp=function(e){return Op.range(Zt.fromDom(e.startContainer),e.startOffset,Zt.fromDom(e.endContainer),e.endOffset)},qp=function(e){var t=e.getSelection(),n=t&&0!==t.rangeCount?J.from(t.getRangeAt(0)):J.none();return n.map(jp)},$p=function(e){var t=yr(e);return qp(t.dom()).filter(Fp(e))},Wp=function(e,t){return J.from(t).filter(Fp(e)).map(Ip)},Kp=function(t){var n=e.document.createRange();try{return n.setStart(t.start().dom(),t.soffset()),n.setEnd(t.finish().dom(),t.foffset()),J.some(n)}catch(r){return J.none()}},Xp=function(e){var t=Up(e)?$p(Zt.fromDom(e.getBody())):J.none();e.bookmark=t.isSome()?t:e.bookmark},Yp=function(e,t){var n=Zt.fromDom(e.getBody()),r=Up(e)?J.from(t):J.none(),o=r.map(jp).filter(Fp(n));e.bookmark=o.isSome()?o:e.bookmark},Gp=function(e){var t=e.bookmark?e.bookmark:J.none();return t.bind(function(t){return Wp(Zt.fromDom(e.getBody()),t)}).bind(Kp)},Zp=function(e){Gp(e).each(function(t){e.selection.setRng(t)})},Jp={store:Xp,storeNative:Yp,readRange:qp,restore:Zp,getRng:Gp,getBookmark:$p,validate:Wp},Qp=function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},ev={isEditorUIElement:Qp},tv=function(e){return"nodechange"===e.type&&e.selectionChange},nv=function(t,n){var r=function(){n.throttle()};rs.DOM.bind(e.document,"mouseup",r),t.on("remove",function(){rs.DOM.unbind(e.document,"mouseup",r)})},rv=function(e){e.on("focusout",function(){Jp.store(e)})},ov=function(e,t){e.on("mouseup touchend",function(){t.throttle()})},iv=function(e,t){var n=Xn().browser;n.isIE()?rv(e):ov(e,t),e.on("keyup NodeChange",function(t){tv(t)||Jp.store(e)})},av=function(e){var t=Ns(function(){Jp.store(e)},0);e.on("init",function(){e.inline&&nv(e,t),iv(e,t)}),e.on("remove",function(){t.cancel()})},uv={register:av},cv=rs.DOM,sv=function(e){return ev.isEditorUIElement(e)},lv=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"):!1},fv=function(e,t){var n=e?e.settings.custom_ui_selector:"",r=cv.getParent(t,function(t){return sv(t)||(n?e.dom.is(t,n):!1)});return null!==r},dv=function(){try{return e.document.activeElement}catch(t){return e.document.body}},hv=function(t,n){var r=n.editor;uv.register(r),r.on("focusin",function(){var e=this,n=t.focusedEditor;n!==e&&(n&&n.fire("blur",{focusedEditor:e}),t.setActive(e),t.focusedEditor=e,e.fire("focus",{blurredEditor:n}),e.focus(!0))}),r.on("focusout",function(){var e=this;wi.setEditorTimeout(e,function(){var n=t.focusedEditor;fv(e,dv())||n!==e||(e.fire("blur",{focusedEditor:null}),t.focusedEditor=null)})}),Jg||(Jg=function(n){var r,o=t.activeEditor;r=n.target,o&&r.ownerDocument===e.document&&(r===e.document.body||fv(o,r)||t.focusedEditor!==o||(o.fire("blur",{focusedEditor:null}),t.focusedEditor=null))},cv.bind(e.document,"focusin",Jg))},mv=function(t,n){t.focusedEditor===n.editor&&(t.focusedEditor=null),t.activeEditor||(cv.unbind(e.document,"focusin",Jg),Jg=null)},gv=function(e){e.on("AddEditor",t(hv,e)),e.on("RemoveEditor",t(mv,e))},pv={setup:gv,isEditorUIElement:sv,isEditorContentAreaElement:lv,isUIElement:fv},vv=function(e,t){return e.dom.getParent(t,function(t){return"true"===e.dom.getContentEditable(t)})},yv=function(e){return e.collapsed?J.from(tf(e.startContainer,e.startOffset)).map(Zt.fromDom):J.none()},bv=function(e,t){return yv(t).bind(function(t){return Ca(t)?J.some(t):gr(e,t)===!1?J.some(e):J.none()})},Cv=function(e,t){bv(Zt.fromDom(e.getBody()),t).bind(function(e){return zm.firstPositionIn(e.dom())}).fold(function(){e.selection.normalize()},function(t){return e.selection.setRng(t.toRange())})},wv=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},xv=function(e){return mp(e)||pp(e).isSome()},Ev=function(e){return e.iframeElement&&mp(Zt.fromDom(e.iframeElement))},zv=function(e){var t=e.getBody();return t&&xv(Zt.fromDom(t))},kv=function(e){return gp().filter(function(t){return!pv.isEditorContentAreaElement(t.dom())&&pv.isUIElement(e,t.dom())}).isSome()},Nv=function(e){return e.inline?zv(e):Ev(e)},Sv=function(e){return Nv(e)||kv(e)},Tv=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&Nv(e)===!1&&Jp.getRng(e).each(function(t){e.selection.setRng(t),r=t});var o=vv(e,t.getNode());return e.$.contains(n,o)?(wv(o),Cv(e,r),void Av(e)):(e.inline||(Ri.opera||wv(n),e.getWin().focus()),(Ri.gecko||e.inline)&&(wv(n),Cv(e,r)),void Av(e))},Av=function(e){return e.editorManager.setActive(e)},Rv=function(e,t){e.removed||(t?Av(e):Tv(e))},Bv={focus:Rv,hasFocus:Nv,hasEditorOrUiFocus:Sv},Dv="html",Mv=function(e){return e instanceof $g},_v=function(e){Bv.hasFocus(e)&&zm.firstPositionIn(e.getBody()).each(function(t){var n=t.getNode(),r=No.isTable(n)?zm.firstPositionIn(n).getOr(t):t;e.selection.setRng(r.toRange())})},Pv=function(e,t){e.dom.setHTML(e.getBody(),t),_v(e)},Ov=function(e,t,n,r){var o,i;return 0===n.length||/^\s+$/.test(n)?(i='<br data-mce-bogus="1">',"TABLE"===t.nodeName?n="<tr><td>"+i+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+i+"</li>"),o=yh.getForcedRootBlock(e),o&&e.schema.isValidChild(t.nodeName.toLowerCase(),o.toLowerCase())?(n=i,n=e.dom.createHTML(o,e.settings.forced_root_block_attrs,n)):n||(n='<br data-mce-bogus="1">'),Pv(e,n),e.fire("SetContent",r)):("raw"!==r.format&&(n=lp({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=xa(Zt.fromDom(t))?n:ea.trim(n),Pv(e,r.content),r.no_events||e.fire("SetContent",r)),r.content},Hv=function(e,t,n,r){hp(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var o=lp({validate:e.validate},e.schema).serialize(n);return r.content=xa(Zt.fromDom(t))?o:ea.trim(o),Pv(e,r.content),r.no_events||e.fire("SetContent",r),n},Lv=function(e,t,n){return void 0===n&&(n={}),n.format=n.format?n.format:Dv,n.set=!0,n.content=Mv(t)?"":t,Mv(t)||n.no_events||(e.fire("BeforeSetContent",n),t=n.content),J.from(e.getBody()).fold(U(t),function(r){return Mv(t)?Hv(e,r,t,n):Ov(e,r,t,n)})},Iv=function(e,t){return e.fire("PreProcess",t)},Vv=function(e,t){return e.fire("PostProcess",t)},Fv=function(e){return e.fire("remove")},Uv=function(e){return e.fire("detach")},jv=function(e,t){return e.fire("SwitchMode",{mode:t})},qv=function(e,t,n,r){e.fire("ObjectResizeStart",{target:t,width:n,height:r})},$v=function(e,t,n,r){e.fire("ObjectResized",{target:t,width:n,height:r})},Wv=function(e){return e.fire("PreInit")},Kv=function(e){return e.fire("PostRender")},Xv=function(e){return e.fire("Init")},Yv=function(e,t){return e.fire("PlaceholderToggle",{state:t})},Gv=function(e,t,n){return e.fire(t,n)},Zv=rs.DOM,Jv=function(e){Zv.setStyle(e.id,"display",e.orgDisplay)},Qv=function(e){return J.from(e).each(function(e){return e.destroy()})},ey=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)},ty=function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),Zv.unbind(t,"submit reset",e.formEventDelegate))},ny=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&&Zv.remove(o.nextSibling),Fv(e),e.editorManager.remove(e),!e.inline&&r&&Jv(e),Uv(e),Zv.remove(e.getContainer()),Qv(t),Qv(n),e.destroy()}},ry=function(e,t){var n=e.selection,r=e.dom;if(!e.destroyed){if(!t&&!e.removed)return void e.remove();t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),Qv(n),Qv(r)),ty(e),ey(e),e.destroyed=!0}},oy=Object.prototype.hasOwnProperty,iy=function(e,t){var n=nt(e)&&nt(t);return n?uy(e,t):t},ay=function(e){return function(){for(var t=new Array(arguments.length),n=0;n<t.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)oy.call(i,a)&&(r[a]=e(r[a],i[a]))}return r}},uy=ay(iy),cy=Yn("sections","settings"),sy=Xn().deviceType,ly=sy.isTouch(),fy=sy.isPhone(),dy=sy.isTablet(),hy=["lists","autolink","autosave"],my={table_grid:!1,object_resizing:!1,resize:!1},gy=function(e){var t=rt(e)?e.join(" "):e,n=gt(tt(t)?t.split(" "):[],On);return bt(n,function(e){return e.length>0})},py=function(e){return bt(e,t(ht,hy))},vy=function(e,t){var n=Ft(t,function(t,n){return ht(e,n)});return cy(n.t,n.f)},yy=function(e,t,n){void 0===n&&(n={});var r=e.sections(),o=r.hasOwnProperty(t)?r[t]:{};return ea.extend({},n,o)},by=function(e,t){return e.sections().hasOwnProperty(t)},Cy=function(e,t,n){var r=e.sections();return by(e,t)&&r[t].theme===n},wy=function(e,t){return by(e,t)?e.sections()[t]:{}},xy=function(e,t){return jt(e,"toolbar_mode").orThunk(function(){return jt(e,"toolbar_drawer").map(function(e){return e===!1?"wrap":e})}).getOr(t)},Ey=function(e,t,n,r,o){var i={id:t,theme:"silver",toolbar_mode:xy(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 $t($t({},i),r?my:{})},zy=function(e,t){var n={resize:!1,toolbar_mode:xy(e,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return $t($t($t({},my),n),t?r:{})},ky=function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?ea.extend({},e.external_plugins,n):n},Ny=function(e,t){return[].concat(gy(e)).concat(gy(t))},Sy=function(e,t,n,r){var o=gy(n.forced_plugins),i=gy(r.plugins),a=wy(t,"mobile"),u=a.plugins?gy(a.plugins):i,c=e&&Cy(t,"mobile","mobile")?py(u):e&&by(t,"mobile")?u:i,s=Ny(o,c);return ea.extend(r,{plugins:s.join(" ")})},Ty=function(e,t){return e&&by(t,"mobile")},Ay=function(e,t,n,r,o){var i=e?{mobile:zy(o,t)}:{},a=vy(["mobile"],uy(i,o)),u=ea.extend(n,r,a.settings(),Ty(e,a)?yy(a,"mobile"):{},{validate:!0,external_plugins:ky(r,a.settings())});return Sy(e,a,r,u)},Ry=function(e,t,n,r,o){var i=Ey(o,t,n,ly,e);return Ay(fy||dy,fy,i,r,o)},By=function(e,t,n){return J.from(t.settings[n]).filter(e)},Dy=function(e){var t={};return"string"==typeof e?pt(e.split(e.indexOf("=")>0?/[;,](?![^=;,]*(?:[;,]|$))/:","),function(e){var n=e.split("=");t[ea.trim(n[0])]=ea.trim(n.length>1?n[1]:n[0])}):t=e,t},My=function(e){return function(t){return rt(t)&&Nt(t,e)}},_y=function(e,t,n,r){var o=t in e.settings?e.settings[t]:n;return"hash"===r?Dy(o):"string"===r?By(tt,e,t).getOr(n):"number"===r?By(ut,e,t).getOr(n):"boolean"===r?By(it,e,t).getOr(n):"object"===r?By(nt,e,t).getOr(n):"array"===r?By(rt,e,t).getOr(n):"string[]"===r?By(My(tt),e,t).getOr(n):"function"===r?By(at,e,t).getOr(n):o},Py=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return e[t]?e[t]:{icons:{}}},r=function(t){return qt(e,t)};return{add:t,get:n,has:r}},Oy=Py(),Hy=function(e,t){var n=t.dom();return n[e]},Ly=function(e,t){return parseInt(Po(t,e),10)},Iy=t(Hy,"clientWidth"),Vy=t(Hy,"clientHeight"),Fy=t(Ly,"margin-top"),Uy=t(Ly,"margin-left"),jy=function(e){return e.dom().getBoundingClientRect()},qy=function(e,t,n){var r=Iy(e),o=Vy(e);return t>=0&&n>=0&&r>=t&&o>=n},$y=function(e,t,n,r){var o=jy(t),i=e?o.left+t.dom().clientLeft+Uy(t):0,a=e?o.top+t.dom().clientTop+Fy(t):0,u=n-i,c=r-a;return{x:u,y:c}},Wy=function(e,t,n){var r=Zt.fromDom(e.getBody()),o=e.inline?r:vr(r),i=$y(e.inline,o,t,n);return qy(o,i.x,i.y)},Ky=function(e){return J.from(e).map(Zt.fromDom)},Xy=function(e){var t=e.inline?e.getBody():e.getContentAreaContainer();return Ky(t).map(function(e){return gr(pr(e),e)}).getOr(!1)},Yy={isXYInContentArea:Wy,isEditorAttachedToDom:Xy},Gy=ks.PluginManager,Zy=ks.ThemeManager,Jy=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():B()},r=function(e,t){return function(){return t?t.apply(e,arguments):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)},u=function(n){i(n),t=bt(t,function(e){return e!==n}),0===t.length&&e.focus()},c=function(){return J.from(t[t.length-1])},s=function(t){e.editorManager.setActive(e),Jp.store(e);var n=t();return a(n),n},l=function(e,t){return s(function(){return n().open(e,t,u)})},f=function(e){return s(function(){return n().openUrl(e,u)})},d=function(e,t,o){n().alert(e,r(o?o:this,t))},h=function(e,t,o){n().confirm(e,r(o?o:this,t))},m=function(){c().each(function(e){n().close(e),u(e)})};return e.on("remove",function(){pt(t,function(e){n().close(e)})}),{open:l,openUrl:f,alert:d,confirm:h,close:m}},Qy=function(e,t){e.notificationManager.open({type:"error",text:t})},eb=function(e,t){e._skinLoaded?Qy(e,t):e.on("SkinLoaded",function(){Qy(e,t)})},tb=function(e,t){eb(e,zs.translate(["Failed to upload image: {0}",t]))},nb=function(t,n,r){Gv(t,n,{message:r}),e.console.error(r)},rb=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},ob=function(e,t,n){nb(e,"PluginLoadError",rb("plugin",t,n))},ib=function(e,t,n){nb(e,"IconsLoadError",rb("icons",t,n))},ab=function(e,t,n){nb(e,"LanguageLoadError",rb("language",t,n))},ub=function(e,t,n){var r=zs.translate(["Failed to initialize plugin: {0}",t]);cb(r,n),eb(e,r)},cb=function(){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.window.console;r&&(r.error?r.error.apply(r,arguments):r.log.apply(r,arguments))},sb={pluginLoadError:ob,iconsLoadError:ib,languageLoadError:ab,pluginInitError:ub,uploadError:tb,displayError:eb,initError:cb},lb=function(){return{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-5c0-.6-.4-1-1-1a1 1 0 0 0-1 1v5c0 .6-.4 1-1 1a1 1 0 0 1-1-1V9H4a1 1 0 1 1 0-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 0 0-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 1 0-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 0 0 1.4-1.4L12 6.6l-7.7 7.7a1 1 0 0 0 1.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 1 1 0-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-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 1 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-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 1 1 0-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 1 1 0-2h9.2zm4 0h.8a1 1 0 0 1 0 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 0 1 0-2h6.8zm4 0H19a1 1 0 0 1 0 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 0 1 0-2h4.4zm4 0H19a1 1 0 0 1 0 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 0 1 0-2h2zm4 0h8a1 1 0 0 1 0 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 1 1 0-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 0 0 1.4-1V6a1 1 0 0 0-1.4-.9l-12 6a1 1 0 0 0 0 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 0 1 5 18V6a1 1 0 0 1 1.4-.9l12 6a1 1 0 0 1 0 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 0 1-.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 0 0-1 1z" fill-rule="nonzero"/></svg>',"border-width":'<svg width="24" height="24"><path d="M5 14.8h14a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2zm-.5 3.7h15c.3 0 .5.2.5.5s-.2.5-.5.5h-15a.5.5 0 1 1 0-1zm.5-8.3h14c.6 0 1 .4 1 1v1c0 .5-.4 1-1 1H5a1 1 0 0 1-1-1v-1c0-.6.4-1 1-1zm0-5.7h14c.6 0 1 .4 1 1v2c0 .6-.4 1-1 1H5a1 1 0 0 1-1-1v-2c0-.6.4-1 1-1z" fill-rule="evenodd"/></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 0 1-.7.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 0 1-.7-.3A1 1 0 0 1 11 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 0 1-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-1a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3H5a1 1 0 0 1-.7-.3A1 1 0 0 1 4 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 0 1-.8.3 1 1 0 0 1-.6-.3l-.8-.7a1 1 0 0 1-.3-.8c0-.2.1-.5.3-.7a1 1 0 0 1 1.4 0zm-10-7l-.7-.8a1 1 0 0 1-.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 0 1-.7.3 1 1 0 0 1-.8-.3zm10 0a1 1 0 0 1-.8.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.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 0 1 0 1.4l-.8.8a1 1 0 0 1-.6.3 1 1 0 0 1-.8-.3 1 1 0 0 1-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 0 1 3.7 2.4 4 4 0 0 1 0 3.2A4 4 0 0 1 12 16a4 4 0 0 1-3.7-2.4 4 4 0 0 1 0-3.2A4 4 0 0 1 12 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 0 1 2 2v12a2 2 0 0 1-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 1 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1-1.4 1.4L13 13.4V20a1 1 0 0 1-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 1 1 0 14.8 7.4 7.4 0 0 1 0-14.8zM12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-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>',"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 0 1-.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 0 1-1 .7h-.2a.7.7 0 0 1-.7-1l4-12a1 1 0 1 1 2 0l4 12a.7.7 0 0 1-.8 1h-.2a1 1 0 0 1-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 0 1-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 0 0-.5-.1 1 1 0 0 0-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 0 0-.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 0 0 1.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 0 0-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 0 0-.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 0 1-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 0 1-.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 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-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 0 1 0-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 0 1 0-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 0 1 0-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 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8a1 1 0 0 1 0 2h-8a1 1 0 0 1 0-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 0 1 0-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 0 1 0-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 0 1 0-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 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.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 0 1 0-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 0 1 0-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 0 1 0-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 0 1 0-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 0 1 0-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 0 1-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 0 1-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 0 1 1.5-1.5l3.8 3.9 3.8-3.9a1 1 0 0 1 1.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 0 1-.8 2 2.8 2.8 0 0 1 .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 0 1-.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 0 1-.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 0 1-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 0 1 .8-2 2.8 2.8 0 0 1-.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 0 1-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 0 1-.5-.5V17a3 3 0 0 0 1-.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 0 1 18 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 0 1-3.7 3 5.7 5.7 0 0 1-3.2 0A5.9 5.9 0 0 1 7.6 18a6.2 6.2 0 0 1-1.4-2.6 6.7 6.7 0 0 1 0-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 0 1 2.3-4A20 20 0 0 1 12 4a26.4 26.4 0 0 1 3.2 3.4 18.2 18.2 0 0 1 2.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 0 0-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 0 1-1.3 3 5.3 5.3 0 0 1-2.3 1.5 4.9 4.9 0 0 1-2 .1 4.3 4.3 0 0 0 2.4.8 4 4 0 0 0 2-.6 4 4 0 0 0 1.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 0 0 0 18 1.5 1.5 0 0 0 1.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 0 0 5-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3-4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 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 0 0-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 0 1 0 2h-2v2a1 1 0 0 1-2 0v-2H9a1 1 0 0 1 0-2h2V8a1 1 0 0 1 2 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 0 0-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4zm-6 8a6 6 0 0 0 6 6V6a6 6 0 0 0-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 0 0-2 2v11h2V5h10V3zm1 4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-7a2 2 0 0 1-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 0 1-1-1v-2H7V9H5a1 1 0 1 1 0-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:'<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 0 1-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 0 1 8.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 0 1 0-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 0 1 0 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 0 0-.2-.5 1 1 0 0 0-.4-.2 1.6 1.6 0 0 0-.8 0 2.6 2.6 0 0 0-.8.3 2.5 2.5 0 0 0-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 0 0 .8-.3 2.8 2.8 0 0 0 1-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 0 0-.3-.8 2.4 2.4 0 0 0-.7-.7 2.5 2.5 0 0 0-.8-.3 1.5 1.5 0 0 0-.8 0 1 1 0 0 0-.4.2 1 1 0 0 0-.2.5 1.5 1.5 0 0 0 0 .7v.4l.3.4.3.4a2.8 2.8 0 0 0 .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 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-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:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9c0-1.2.9-2 2-2h7a2 2 0 0 1 2 2v2z"/><path d="M17 14h1a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1h-1a1 1 0 0 1 0-2h1v-1a1 1 0 0 1 2 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 0 0-.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 0 0-2-2H7v2h11v9zM6 17h15a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1H6a2 2 0 0 1-2-2V7H3a1 1 0 1 1 0-2h1V4a1 1 0 1 1 2 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 0 1 19 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 0 0 8 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 0 0-4 4.5h2.2zm-3.4 0a12 12 0 0 1 2.8-4 12 12 0 0 0-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 0 1-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 0 1 0 .8l-5.6 4A.5.5 0 0 1 9 16V8a.5.5 0 0 1 .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 0 0-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-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 1 0 0 16 8 8 0 0 0 0-16zm0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13z" fill-rule="nonzero"/></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 0 0 2.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 0 0 2-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 0 0-2 2zm14-2v2h2a2 2 0 0 0-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 0 0 2-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 0 0-2 2v3h2V6h10v3h2V6a2 2 0 0 0-2-2zm2 14h-2v2a2 2 0 0 0 2-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 0 0-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 0 1 0 2h-4v11a1 1 0 0 1-2 0V7H7a1 1 0 1 1 0-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 1 1 0-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 1 1-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 1 1 1.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 1 1 0-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 1 1 0 1.7H5a.9.9 0 0 1-.9-.9v-4.4a.9.9 0 1 1 1.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 0 1-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 0 1 0 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 0 1-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM4.5 4h15a.5.5 0 1 1 0 1h-15a.5.5 0 0 1 0-1zm2-2h11a.5.5 0 1 1 0 1h-11a.5.5 0 0 1 0-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 0 1-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 0 0-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 0 1 .6.5l.1.3a8.5 8.5 0 0 1 .3.6l1.9 4.6 2-5.2a1 1 0 0 1 1-.6.5.5 0 0 1 .5.6L13 14v2.8a.7.7 0 0 1-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 0 0-6 9 6.3 6.3 0 0 0 1.4 2l1 1a6.3 6.3 0 0 0 3.6 1 6.5 6.5 0 0 0 6-9 6.3 6.3 0 0 0-1.4-2l-1-1a6.3 6.3 0 0 0-3.6-1zM12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4z"/><path d="M9.6 9.7a.7.7 0 0 1-.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 0 0-.8.8.8.8 0 0 1-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 0 1 2.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 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-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 0 1-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 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 1 1 0-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 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 0 0 1.8-2.9 6.3 6.3 0 0 0-.1-4.1 5.8 5.8 0 0 0-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 0 0-3.9 1.8 6.3 6.3 0 0 0-1.3 6 6.2 6.2 0 0 0 1.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 0 1 4 11c0-1 .2-1.9.6-2.7A7 7 0 0 1 6.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 0 1 5.7 2 7 7 0 0 1 1.7 2.3 6 6 0 0 1 .2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 0 1-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 1 0 0-14 7 7 0 0 0 0 14zm0 2a9 9 0 1 1 0-18 9 9 0 0 1 0 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 0 0-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 0 1-3.1 1.9 6.1 6.1 0 0 1-5.5-1.6A5.8 5.8 0 0 1 6 14v-.3l.1-1.2A13.9 13.9 0 0 1 7.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 0 0 .2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 0 0-3-4.2L12 6a26.1 26.1 0 0 0-2.2 2.5l-1-1a20.9 20.9 0 0 1 2.9-3.3L12 4l1 .8a22.2 22.2 0 0 1 4 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>',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 0 1 1.4 1.4l-2.1 2a2 2 0 1 0 2.7 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2zm11.6-.6a1 1 0 0 1-1.4-1.4l2-2a2 2 0 1 0-2.6-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.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 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM11 26a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM11 36a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 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 0 0-.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 0 0-.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 0 1-.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 0 0-.3-.7A1 1 0 0 0 13 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 7.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-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 1 1 0-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 0 1-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 0 1 0 2H6a1 1 0 0 1 0-2zm0-6h8a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2zm0-6h8a1 1 0 0 1 0 2H6a1 1 0 1 1 0-2zm13-1v3.5a.5.5 0 1 1-1 0V5h-.5a.5.5 0 1 1 0-1H19zm-1 8.8l.2.2h1.3a.5.5 0 1 1 0 1h-1.6a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0-.2-.2h-1.3a.5.5 0 0 1-.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 0 1 0-1h1.2a.3.3 0 1 0 0-.6h-1.3a.4.4 0 1 1 0-.8h1.3a.3.3 0 0 0 0-.6h-1.2a.5.5 0 1 1 0-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 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 1 1 0-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 0 1-.5-.5V5h-.5a.5.5 0 0 1 0-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0-.2-.2H4.5a.5.5 0 0 1-.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 0 1 0-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 1 1 0-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 1 1 0-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 0 1 0-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 1 1-4.3 16.9l1.5-1.5A7 7 0 1 0 13 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 1 1 0-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm1.6-3.8a1 1 0 0 1-1.2 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 0 1 1.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 0 1 0-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 0 1 0-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 0 1-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 0 1-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 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 6.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L10 5z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 0 0-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 0 1-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 0 0-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 0 1 0-3L14 3l1 1-7.3 7.3a1 1 0 0 0 0 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 0 1-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 0 1 .1 2H13v6a1 1 0 0 1-2 .1V13H5a1 1 0 0 1-.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 0 1-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 0 1-1.4 0l-1.5-1.2a6.2 6.2 0 0 1-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 0 1-1-.9l-.2-1.9a5.8 5.8 0 0 1-1.5-.6l-1.5 1.2a1 1 0 0 1-1.4 0l-.7-.7a1 1 0 0 1 0-1.4l1.2-1.5a6.2 6.2 0 0 1-.6-1.5l-1.9-.2a1 1 0 0 1-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 0 1 .6-1.5L5.2 7.3a1 1 0 0 1 0-1.4l.7-.7a1 1 0 0 1 1.4 0l1.5 1.2a6.2 6.2 0 0 1 1.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 0 1 1.5.6l1.5-1.2a1 1 0 0 1 1.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 0 1 .6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 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 0 0 2.1-2.8 15.7 15.7 0 0 0-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 0 0-6.7 3.2A16.2 16.2 0 0 0 3.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 0 1 2.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 0 1-2.8-3.7 1 1 0 0 1 0-1zm12-3.3a2 2 0 1 0 2.7 2.6 4 4 0 1 1-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 0 0-3 3v6h2v3h14v-3h2v-6a3 3 0 0 0-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 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .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 1 1-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 1 1 1.4-1.4l5 5a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-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 0 1 1-1l5 .4a1 1 0 1 1-.2 2l-2.2-.2a7.8 7.8 0 0 0 8.4.2 7.5 7.5 0 0 0 3.5-6.4 1 1 0 1 1 2 0 9.5 9.5 0 0 1-4.5 8 9.9 9.9 0 0 1-10.2 0l.4 1.4a1 1 0 1 1-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 0 0-9.5-1 7.5 7.5 0 0 0-3.6 7 1 1 0 0 1-2 0 9.5 9.5 0 0 1 4.5-8.6 10 10 0 0 1 10.9.3l-.3-1a1 1 0 0 1 2-.5l1.1 4.8a1 1 0 0 1-1 1.2l-5-.4a1 1 0 0 1-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 0 1 0 .2l-2.6 10a1 1 0 0 1-1 .8h-.2a.8.8 0 0 1-.8-1l2.6-10H8a1 1 0 1 1 0-2h9a1 1 0 0 1 0 2h-3.8zM5 18h7a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2zm13 1.5L16.5 18 15 19.5a.7.7 0 0 1-1-1l1.5-1.5-1.5-1.5a.7.7 0 0 1 1-1l1.5 1.5 1.5-1.5a.7.7 0 0 1 1 1L17.5 17l1.5 1.5a.7.7 0 0 1-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 0 1 0 2h-1v9a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V9H5a1 1 0 1 1 0-2h3V6a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 0 0-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 0 1 2 0v4a1 1 0 0 1-2 0v-4zm4 0a1 1 0 0 1 2 0v4a1 1 0 0 1-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 1 1 9 2l-7 7A.5.5 0 1 1 1 8l7-7zM8.1 5.1A.5.5 0 1 1 9 6l-3 3A.5.5 0 1 1 5 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 0 1-.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 0 1-.7.3h-6a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3A1 1 0 0 1 4 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 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 0 1 2 0v6c0 .6-.4 1-1 1h-6a1 1 0 0 1 0-2h4.3L16 7A7.2 7.2 0 0 0 7.7 6a7 7 0 0 0 3 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 0 1 1.4 1.5A9.2 9.2 0 0 1 2.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 0 1 4.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L8 5zm12 11.2a1 1 0 1 1-1 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 1 1 1 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 1 0-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 1 0-1.4-1.4L13 11.6V4a1 1 0 0 0-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 0 0-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 0 0-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 0 0 2-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 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 0 0-1 1L9.6 17 18 8.6a.7.7 0 0 0 0-1 .7.7 0 0 0-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 0 1-.2-.6V8H5a1 1 0 1 1 0-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 0 1-.2-.6V13H5a1 1 0 0 1 0-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 0 1-.2-.6V18H5a1 1 0 0 1 0-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>',"sort-asc":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M4 8h5a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zm0 8h8a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0-4h7a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z"/><path fill-rule="nonzero" d="M16 8.4l-2.3 2.3a1 1 0 0 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 1 1-1.4 1.4L18 8.4V18a1 1 0 0 1-2 0V8.4z"/></g></svg>',"sort-dsc":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M4 16h5a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2zm0-8h8a1 1 0 0 0 0-2H4a1 1 0 1 0 0 2zm0 4h7a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2z"/><path fill-rule="nonzero" d="M16 15.6l-2.3-2.3a1 1 0 0 0-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 0 0-1.4-1.4L18 15.6V6a1 1 0 0 0-2 0v9.6z"/></g></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 0 1 0-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 0 0-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 0 1-.7-.3 1 1 0 0 1-.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 0 1-.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 0 1 7 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 0 1 0 2H5a1 1 0 0 1 0-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 0 0-.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 0 1-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-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-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 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-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 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-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 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-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 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-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 0 1-2 0V6h-8v12h8v-1a1 1 0 0 1 2 0v2c0 .5-.4 1-.9 1H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 0 1 .1 2H17v2a1 1 0 0 1-2 .1V13h-2a1 1 0 0 1-.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 0 1 2 2v12a2 2 0 0 1-2 2H4a1 1 0 0 1-1-1v-2a1 1 0 0 1 2 0v1h8V6H5v1a1 1 0 1 1-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 0 1 .1 2H9v2a1 1 0 0 1-2 .1V13H5a1 1 0 0 1-.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 1 1 0 2H5v6h14V6h-1a1 1 0 0 1 0-2h2c.6 0 1 .4 1 1v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 0 1 0 2h-2v2a1 1 0 0 1-2 .1V8H9a1 1 0 0 1 0-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 0 1 .1 2H13v2a1 1 0 0 1-2 .1V18H9a1 1 0 0 1-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 0 1 0-2h1v-6H5v6h1a1 1 0 0 1 0 2H4a1 1 0 0 1-1-1V6c0-1.1.9-2 2-2h14a2 2 0 0 1 2 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-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 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-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-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-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 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-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 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-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 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-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 1 1 6 0v4h4a2 2 0 0 1 2 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 1 0-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 1 1 1 0V6H15v1.6a8 8 0 1 1-6 0zm-2.6 5.3a.5.5 0 0 0 .3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 0 1 3.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 0 0-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 0 1-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 0 1-.5.6h-.8a.5.5 0 0 1-.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 0 0 .5.6h1.6a.5.5 0 0 0 .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 1 1 0-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 1 1 0-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-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 0 1 0-1l3.1-3A12.4 12.4 0 0 1 6.7 9H8a10.1 10.1 0 0 0 1.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 1 1 0-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 0 1-1 2.4 13.5 13.5 0 0 1-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 0 1-.4.7 1 1 0 0 1-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 0 1-1 .7.5.5 0 0 1-.4-.7l2.7-7.4a1 1 0 1 1 2 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 0 1-.4 1.8l-1 1.4a5.3 5.3 0 0 1-5.5 1 5 5 0 0 1-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 0 1-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 0 0 2.2.8 3.4 3.4 0 0 0 2.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 0 1 0-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 0 1-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 1 1-1.4 1.4l-5-5a1 1 0 0 1 0-1.4l5-5a1 1 0 0 1 1.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2 2a2 2 0 1 0 2.6 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2zm11.6-.6a1 1 0 0 1-1.4-1.4l2.1-2a2 2 0 1 0-2.7-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2zM7.6 6.3a.8.8 0 0 1-1 1.1L3.3 4.2a.7.7 0 1 1 1-1l3.2 3.1zM5.1 8.6a.8.8 0 0 1 0 1.5H3a.8.8 0 0 1 0-1.5H5zm5-3.5a.8.8 0 0 1-1.5 0V3a.8.8 0 0 1 1.5 0V5zm6 11.8a.8.8 0 0 1 1-1l3.2 3.2a.8.8 0 0 1-1 1L16 17zm-2.2 2a.8.8 0 0 1 1.5 0V21a.8.8 0 0 1-1.5 0V19zm5-3.5a.7.7 0 1 1 0-1.5H21a.8.8 0 0 1 0 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 0 0-.3-.7A1 1 0 0 0 16 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.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 0 1-.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 0 1 0-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-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 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 0 0-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 0 1 2 0v3c0 .6-.4 1-1 1H5a1 1 0 0 1-1-1v-3a1 1 0 0 1 2 0v2h12zM11 6.4L8.7 8.7a1 1 0 0 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 1 1-1.4 1.4L13 6.4V16a1 1 0 0 1-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 1 1 0-24 12 12 0 0 1 0 24zm-8.7-5.3a11 11 0 0 0 17.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>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 0 1-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 0 1-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 0 1 0 2v7a1 1 0 0 1-2 0V9h-1v7a1 1 0 0 1-2 0v-4a2.5 2.5 0 0 1-.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 0 1 2 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 6.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.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 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-1-9a1 1 0 0 1 2 0v6a1 1 0 0 1-2 0V8zm-2 4a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-3-5a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8z" fill-rule="nonzero"/></svg>'}
},fb=function(e){return/^[a-z0-9\-]+$/i.test(e)},db=function(e){var t=yh.getContentCss(e),n=e.editorManager.baseURL+"/skins/content",r=e.editorManager.suffix,o="content"+r+".css",i=e.inline===!0;return gt(t,function(t){return fb(t)&&!i?n+"/"+t+"/"+o:e.documentBaseURI.toAbsolute(t)})},hb=function(e){e.contentCSS=e.contentCSS.concat(db(e))};!function(e){e.isBookmarkNode=Km.isBookmarkNode}(D||(D={}));var mb=D,gb=function(e,t,n){if(n.collapsed)return!1;if(Ri.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(No.isElement(r))return mt(r.getClientRects(),function(n){return Ql(n,e,t)})}return mt(n.getClientRects(),function(n){return Ql(n,e,t)})},pb={isXYWithinRange:gb},vb={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(e){return Ri.mac?e.metaKey:e.ctrlKey&&!e.altKey}},yb=No.isContentEditableFalse,bb=No.isContentEditableTrue,Cb=function(e,t){for(;t&&t!==e;){if(bb(t)||yb(t))return t;t=t.parentNode}return null},wb=function(t,n){var r,o,i,a,u,c,s,l,f,d,h,m,g,p,v,y,b,C=n.dom,w=ea.each,x=n.getDoc(),E=e.document,z=Math.abs,k=Math.round,N=n.getBody();a={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var S=function(e){return e&&("IMG"===e.nodeName||n.dom.is(e,"figure.image"))},T=function(e,t){if("longpress"===e.type||0===e.type.indexOf("touch")){var n=e.touches[0];return S(e.target)&&!pb.isXYWithinRange(n.clientX,n.clientY,t)}return S(e.target)&&!pb.isXYWithinRange(e.clientX,e.clientY,t)},A=function(e){var t=e.target;T(e,n.selection.getRng())&&!e.isDefaultPrevented()&&n.selection.select(t)},R=function(e){return n.dom.is(e,"figure.image")?e.querySelector("img"):e},B=function(e){var t=yh.getObjectResizing(n);return t===!1||Ri.iOS?!1:("string"!=typeof t&&(t="table,img,figure.image,div"),"false"===e.getAttribute("data-mce-resize")?!1:e===n.getBody()?!1:ur(Zt.fromDom(e),t))},D=function(e){var t,a,w,x,E;t=e.screenX-c,a=e.screenY-s,p=t*u[2]+d,v=a*u[3]+h,p=5>p?5:p,v=5>v?5:v,w=S(r)&&yh.getResizeImgProportional(n)!==!1?!vb.modifierPressed(e):vb.modifierPressed(e),w&&(z(t)>z(a)?(v=k(p*m),p=k(v/m)):(p=k(v/m),v=k(p*m))),C.setStyles(R(o),{width:p,height:v}),x=u.startPos.x+t,E=u.startPos.y+a,x=x>0?x:0,E=E>0?E:0,C.setStyles(i,{left:x,top:E,display:"block"}),i.innerHTML=p+" &times; "+v,u[2]<0&&o.clientWidth<=p&&C.setStyle(o,"left",l+(d-p)),u[3]<0&&o.clientHeight<=v&&C.setStyle(o,"top",f+(h-v)),t=N.scrollWidth-y,a=N.scrollHeight-b,t+a!==0&&C.setStyles(i,{left:x-t,top:E-a}),g||(qv(n,r,d,h),g=!0)},M=function(){g=!1;var e=function(e,t){t&&(r.style[e]||!n.schema.isValid(r.nodeName.toLowerCase(),e)?C.setStyle(R(r),e,t):C.setAttrib(R(r),e,t))};e("width",p),e("height",v),C.unbind(x,"mousemove",D),C.unbind(x,"mouseup",M),E!==x&&(C.unbind(E,"mousemove",D),C.unbind(E,"mouseup",M)),C.remove(o),C.remove(i),_(r),$v(n,r,p,v),C.setAttrib(r,"style",C.getAttrib(r,"style")),n.nodeChanged()},_=function(e){var t,g,z,k,S;P(),L(),t=C.getPos(e,N),l=t.x,f=t.y,S=e.getBoundingClientRect(),g=S.width||S.right-S.left,z=S.height||S.bottom-S.top,r!==e&&(r=e,p=v=0),k=n.fire("ObjectSelected",{target:e}),B(e)&&!k.isDefaultPrevented()?w(a,function(e,t){var n,a=function(t){c=t.screenX,s=t.screenY,d=R(r).clientWidth,h=R(r).clientHeight,m=h/d,u=e,e.startPos={x:g*e[0]+l,y:z*e[1]+f},y=N.scrollWidth,b=N.scrollHeight,o=r.cloneNode(!0),C.addClass(o,"mce-clonedresizable"),C.setAttrib(o,"data-mce-bogus","all"),o.contentEditable=!1,o.unSelectabe=!0,C.setStyles(o,{left:l,top:f,margin:0}),o.removeAttribute("data-mce-selected"),N.appendChild(o),C.bind(x,"mousemove",D),C.bind(x,"mouseup",M),E!==x&&(C.bind(E,"mousemove",D),C.bind(E,"mouseup",M)),i=C.add(N,"div",{"class":"mce-resize-helper","data-mce-bogus":"all"},d+" &times; "+h)};n=C.get("mceResizeHandle"+t),n&&C.remove(n),n=C.add(N,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all","class":"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===Ri.ie&&(n.contentEditable=!1),C.bind(n,"mousedown",function(e){e.stopImmediatePropagation(),e.preventDefault(),a(e)}),e.elm=n,C.setStyles(n,{left:g*e[0]+l-n.offsetWidth/2,top:z*e[1]+f-n.offsetHeight/2})}):P(),r.setAttribute("data-mce-selected","1")},P=function(){var e,t;L(),r&&r.removeAttribute("data-mce-selected");for(e in a)t=C.get("mceResizeHandle"+e),t&&(C.unbind(t),C.remove(t))},O=function(e){var r,o,i=function(e,t){if(e)do if(e===t)return!0;while(e=e.parentNode)};return g||n.removed?void 0:(w(C.select("img[data-mce-selected],hr[data-mce-selected]"),function(e){e.removeAttribute("data-mce-selected")}),o="mousedown"===e.type?e.target:t.getNode(),o=C.$(o).closest("table,img,figure.image,hr")[0],i(o,N)&&(I(),r=t.getStart(!0),i(r,o)&&i(t.getEnd(!0),o))?void _(o):void P())},H=function(e){return yb(Cb(n.getBody(),e))},L=function(){for(var e in a){var t=a[e];t.elm&&(C.unbind(t.elm),delete t.elm)}},I=function(){try{n.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(e){}};n.on("init",function(){if(I(),Ri.browser.isIE()||Ri.browser.isEdge()){n.on("mousedown click",function(e){var t=e.target,r=t.nodeName;g||!/^(TABLE|IMG|HR)$/.test(r)||H(t)||(2!==e.button&&n.selection.select(t,"TABLE"===r),"mousedown"===e.type&&n.nodeChanged())});var e=function(e){var t=function(e){wi.setEditorTimeout(n,function(){return n.selection.select(e)})};return H(e.target)?(e.preventDefault(),void t(e.target)):void(/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&t(e.target)))};C.bind(N,"mscontrolselect",e),n.on("remove",function(){return C.unbind(N,"mscontrolselect",e)})}var t=wi.throttle(function(e){n.composing||O(e)});n.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",t),n.on("keyup compositionend",function(e){r&&"TABLE"===r.nodeName&&t(e)}),n.on("hide blur",P),n.on("contextmenu longpress",A,!0)}),n.on("remove",L);var V=function(){r=o=null};return{isResizable:B,showResizeRect:_,hideResizeRect:P,updateResizeRect:O,destroy:V}},xb=M("height",function(e){var t=e.dom();return $r(e)?t.getBoundingClientRect().height:t.offsetHeight}),Eb=function(e){return xb.get(e)},zb=function(e,t){var n=e.view(t);return n.fold(U([]),function(t){var n=e.owner(t),r=zb(e,n);return[t].concat(r)})},kb=function(e,t){var n=t.owner(e);return zb(t,n)},Nb=function(t){var n=t.dom()===e.document?J.none():J.from(t.dom().defaultView.frameElement);return n.map(Zt.fromDom)},Sb=function(e){return pr(e)},Tb=Object.freeze({__proto__:null,view:Nb,owner:Sb}),Ab=function(t){var n=Zt.fromDom(e.document),r=Qr(n),o=kb(t,Tb),i=Zr(t),a=Ct(o,function(e,t){var n=Zr(t);return{left:e.left+n.left(),top:e.top+n.top()}},{left:0,top:0});return Kr(a.left+i.left()+r.left(),a.top+i.top()+r.top())},Rb=function(e){return"textarea"===Vr(e)},Bb=function(e,t){var n=e.fire("ScrollIntoView",t);return n.isDefaultPrevented()},Db=function(e,t){e.fire("AfterScrollIntoView",t)},Mb=function(e,t){var n=kr(e);if(0===n.length||Rb(e))return{element:e,offset:t};if(t<n.length&&!Rb(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return Rb(r)?{element:e,offset:t}:"img"===Vr(r)?{element:r,offset:1}:qr(r)?{element:r,offset:Dg(r).length}:{element:r,offset:kr(r).length}},_b=function(e,t){var n=Gr(e),r=Eb(e);return{element:e,bottom:n.top()+r,height:r,pos:n,cleanup:t}},Pb=function(e,t){var n=Mb(e,t),r=Zt.fromHtml('<span data-mce-bogus="all">'+ml.ZWSP+"</span>");return Rr(n.element,r),_b(r,function(){return Lr(r)})},Ob=function(e){return _b(Zt.fromDom(e),V)},Hb=function(e,t,n,r){Fb(e,function(){return Ib(e,t,n,r)},n)},Lb=function(e,t,n,r,o){var i={elm:r.element.dom(),alignToTop:o};if(!Bb(e,i)){var a=Qr(t).top();n(t,a,r,o),Db(e,i)}},Ib=function(e,t,n,r){var o=Zt.fromDom(e.getBody()),i=Zt.fromDom(e.getDoc());Io(o);var a=Pb(Zt.fromDom(n.startContainer),n.startOffset);Lb(e,i,t,a,r),a.cleanup()},Vb=function(e,t,n,r){var o=Zt.fromDom(e.getDoc());Lb(e,o,n,Ob(t),r)},Fb=function(e,t,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,a=n.endOffset;t(Zt.fromDom(r),Zt.fromDom(i));var u=e.dom.createRng();u.setStart(r,o),u.setEnd(i,a),e.selection.setRng(n)},Ub=function(e,t,n,r){var o=e.pos;if(n)eo(o.left(),o.top(),r);else{var i=o.top()-t+e.height;eo(o.left(),i,r)}},jb=function(e,t,n,r,o){var i=n+t,a=r.pos.top(),u=r.bottom,c=u-a>=n;if(t>a)Ub(r,n,o!==!1,e);else if(a>i){var s=c?o!==!1:o===!0;Ub(r,n,s,e)}else u>i&&!c&&Ub(r,n,o===!0,e)},qb=function(e,t,n,r){var o=e.dom().defaultView.innerHeight;jb(e,t,o,n,r)},$b=function(t,n,r,o){var i=t.dom().defaultView.innerHeight;jb(t,n,i,r,o);var a=Ab(r.element),u=oo(e.window);a.top()<u.y()?to(r.element,o!==!1):a.top()>u.bottom()&&to(r.element,o===!0)},Wb=function(e,t,n){return Hb(e,qb,t,n)},Kb=function(e,t,n){return Vb(e,t,qb,n)},Xb=function(e,t,n){return Hb(e,$b,t,n)},Yb=function(e,t,n){return Vb(e,t,$b,n)},Gb=function(e,t,n){var r=e.inline?Kb:Yb;r(e,t,n)},Zb=function(e,t,n){var r=e.inline?Wb:Xb;r(e,t,n)},Jb={scrollElementIntoView:Gb,scrollRangeIntoView:Zb},Qb=function(e){return No.isContentEditableTrue(e)||No.isContentEditableFalse(e)},eC=function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null},tC=function(e,t,n){var r,o,i;if(r=n.elementFromPoint(e,t),o=n.body.createTextRange(),r&&"HTML"!==r.tagName||(r=n.body),o.moveToElementText(r),i=ea.toArray(o.getClientRects()),i=i.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}),i.length>0){t=(i[0].bottom+i[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(a){}}return null},nC=function(e,t){var n=e&&e.parentElement?e.parentElement():null;return No.isContentEditableFalse(eC(n,t,Qb))?null:e},rC=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(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(i.body.createTextRange){r=i.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(a){r=tC(e,t,n)}return nC(r,n.body)}return r},oC={fromPoint:rC},iC=function(e,t){return gt(t,function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t})},aC={processRanges:iC},uC=function(t,n){var r=n||e.document,o=r.createDocumentFragment();return pt(t,function(e){o.appendChild(e.dom())}),Zt.fromDom(o)},cC=function(e){return e.slice(0,-1)},sC=function(e,t,n){return gr(t,e)?cC(Cr(e,function(e){return n(e)||fr(e,t)})):[]},lC=function(e,t){return sC(e,t,U(!1))},fC=function(e,t){return[e].concat(lC(e,t))},dC={parentsUntil:sC,parents:lC,parentsAndSelf:fC},hC=function(e){var t=e.startContainer,n=e.startOffset;return No.isText(t)?0===n?J.some(Zt.fromDom(t)):J.none():J.from(t.childNodes[n]).map(Zt.fromDom)},mC=function(e){var t=e.endContainer,n=e.endOffset;return No.isText(t)?n===t.data.length?J.some(Zt.fromDom(t)):J.none():J.from(t.childNodes[n-1]).map(Zt.fromDom)},gC=function(e){return Sr(e).fold(U([e]),function(t){return[e].concat(gC(t))})},pC=function(e){return Tr(e).fold(U([e]),function(t){return"br"===Vr(t)?wr(t).map(function(t){return[e].concat(pC(t))}).getOr([]):[e].concat(pC(t))})},vC=function(e,n){return of(hC(n),mC(n),function(n,r){var o=xt(gC(e),t(fr,n)),i=xt(pC(e),t(fr,r));return o.isSome()&&i.isSome()}).getOr(!1)},yC=function(e,t,n,r){var o=n,i=new Xc(n,o),a=e.schema.getNonEmptyElements();do{if(3===n.nodeType&&0!==ea.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName]&&!/^(TD|TH)$/.test(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))},bC=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0},CC=Yn("element","width","rows"),wC=Yn("element","cells"),xC=Yn("x","y"),EC=function(e,t){var n=parseInt(Bo(e,t),10);return isNaN(n)?1:n},zC=function(e,t,n,r,o){for(var i=EC(o,"rowspan"),a=EC(o,"colspan"),u=e.rows(),c=n;n+i>c;c++){u[c]||(u[c]=wC(ll(r),[]));for(var s=t;t+a>s;s++){var l=u[c].cells();l[s]=c===n&&s===t?o:sl(o)}}},kC=function(e,t,n){var r=e.rows(),o=r[n]?r[n].cells():[];return!!o[t]},NC=function(e,t,n){for(;kC(e,t,n);)t++;return t},SC=function(e){return wt(e,function(e,t){return t.cells().length>e?t.cells().length:e},0)},TC=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(fr(o[i],t))return J.some(xC(i,r));return J.none()},AC=function(e,t,n,r,o){for(var i=[],a=e.rows(),u=n;o>=u;u++){var c=a[u].cells(),s=r>t?c.slice(t,r+1):c.slice(r,t+1);i.push(wC(a[u].element(),s))}return i},RC=function(e,t,n){var r=t.x(),o=t.y(),i=n.x(),a=n.y(),u=a>o?AC(e,r,o,i,a):AC(e,r,a,i,o);return CC(e.element(),SC(u),u)},BC=function(e,t){var n=sl(e.element()),r=Zt.fromTag("tbody");return Or(r,t),Mr(n,r),n},DC=function(e){return gt(e.rows(),function(e){var t=gt(e.cells(),function(e){var t=ll(e);return _o(t,"colspan"),_o(t,"rowspan"),t}),n=sl(e.element());return Or(n,t),n})},MC=function(e){var t=CC(sl(e),0,[]);return pt(Vs(e,"tr"),function(e,n){pt(Vs(e,"td,th"),function(r,o){zC(t,NC(t,o,n),n,e,r)})}),CC(t.element(),SC(t.rows()),t.rows())},_C=function(e){return BC(e,DC(e))},PC=function(e,t,n){return TC(e,t).bind(function(t){return TC(e,n).map(function(n){return RC(e,t,n)})})},OC={fromDom:MC,toDom:_C,subsection:PC},HC=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},LC=function(e){return kt(e,function(e){var t=ef(e);return t?[Zt.fromDom(t)]:[]})},IC=function(e){return HC(e).length>1},VC={getRanges:HC,getSelectedNodes:LC,hasMultipleRanges:IC},FC=function(e){return bt(VC.getSelectedNodes(e),wa)},UC=function(e){return Vs(e,"td[data-mce-selected],th[data-mce-selected]")},jC=function(e,t){var n=UC(t),r=FC(e);return n.length>0?n:r},qC=function(e){return jC(VC.getRanges(e.selection.getSel()),Zt.fromDom(e.getBody()))},$C={getCellsFromRanges:FC,getCellsFromElement:UC,getCellsFromElementOrRanges:jC,getCellsFromEditor:qC},WC=function(e){return xt(e,function(e){return"ul"===Vr(e)||"ol"===Vr(e)})},KC=function(e,t){return xt(e,function(e){return"li"===Vr(e)&&vC(e,t)}).fold(U([]),function(){return WC(e).map(function(e){return[Zt.fromTag("li"),Zt.fromTag(Vr(e))]}).getOr([])})},XC=function(e,t){var n=wt(t,function(e,t){return Mr(t,e),t},e);return t.length>0?uC([n]):n},YC=function(e){return ya(e)?br(e).filter(va).fold(U([]),function(t){return[e,t]}):va(e)?[e]:[]},GC=function(e,t){var n=Zt.fromDom(t.commonAncestorContainer),r=dC.parentsAndSelf(n,e),o=bt(r,function(e){return ma(e)||fa(e)}),i=KC(r,t),a=o.concat(i.length?i:YC(n));return gt(a,sl)},ZC=function(){return uC([])},JC=function(e,t){return XC(Zt.fromDom(t.cloneContents()),GC(e,t))},QC=function(e,n){return js(n,"table",t(fr,e))},ew=function(e,t){return QC(e,t[0]).bind(function(e){var n=t[0],r=t[t.length-1],o=OC.fromDom(e);return OC.subsection(o,n,r).map(function(e){return uC([OC.toDom(e)])})}).getOrThunk(ZC)},tw=function(e,t){return t.length>0&&t[0].collapsed?ZC():JC(e,t[0])},nw=function(e,t){var n=$C.getCellsFromElementOrRanges(t,e);return n.length>0?ew(e,n):tw(e,t)},rw={read:nw},ow=function(e){return J.from(e.selection.getRng()).map(function(t){var n=e.dom.add(e.getBody(),"div",{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),r=ml.trim(n.innerText);return e.dom.remove(n),r}).getOr("")},iw=function(e,t){var n,r=e.selection.getRng(),o=e.dom.create("body"),i=e.selection.getSel(),a=aC.processRanges(e,VC.getRanges(i));return n=t.contextual?rw.read(Zt.fromDom(e.getBody()),a).dom():r.cloneContents(),n&&o.appendChild(n),e.selection.serializer.serialize(o,t)},aw=function(e,t){if(void 0===t&&(t={}),t.get=!0,t.format=t.format||"html",t.selection=!0,t=e.fire("BeforeGetContent",t),t.isDefaultPrevented())return e.fire("GetContent",t),t.content;if("text"===t.format)return ow(e);t.getInner=!0;var n=iw(e,t);return"tree"===t.format?n:(t.content=e.selection.isCollapsed()?"":n,e.fire("GetContent",t),t.content)},uw={getContent:aw},cw=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},sw={isEq:cw},lw=function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null},fw=function(e,t,n){return null!==lw(e,t,n)},dw=function(e,t,n){return fw(e,t,function(e){return e.nodeName===n})},hw=function(e){return e&&"TABLE"===e.nodeName},mw=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},gw=function(e,t){return bl(e)&&fw(e,t,vd)===!1},pw=function(e,t,n){for(var r=new Xc(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());t=r[n?"prev":"next"]();)if(No.isBr(t))return!0},vw=function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t},yw=function(e,t){for(;t&&t!==e;){if(No.isContentEditableFalse(t))return!0;t=t.parentNode}return!1},bw=function(e,t,n,r,o){var i,a,u=e.getRoot(),c=e.schema.getNonEmptyElements(),s=e.getParent(o.parentNode,e.isBlock)||u;if(r&&No.isBr(o)&&t&&e.isEmpty(s))return J.some(N(o.parentNode,e.nodeIndex(o)));for(var l=new Xc(o,s);a=l[r?"prev":"next"]();){if("false"===e.getContentEditableParent(a)||gw(a,u))return J.none();if(No.isText(a)&&a.nodeValue.length>0)return dw(a,u,"A")===!1?J.some(N(a,r?a.nodeValue.length:0)):J.none();if(e.isBlock(a)||c[a.nodeName.toLowerCase()])return J.none();i=a}return n&&i?J.some(N(i,0)):J.none()},Cw=function(e,t,n,r){var o,i,a,u,c,s,l=e.getRoot(),f=!1;if(o=r[(n?"start":"end")+"Container"],i=r[(n?"start":"end")+"Offset"],s=No.isElement(o)&&i===o.childNodes.length,u=e.schema.getNonEmptyElements(),c=n,bl(o))return J.none();if(No.isElement(o)&&i>o.childNodes.length-1&&(c=!1),No.isDocument(o)&&(o=l,i=0),o===l){if(c&&(a=o.childNodes[i>0?i-1:0])){if(bl(a))return J.none();if(u[a.nodeName]||hw(a))return J.none()}if(o.hasChildNodes()){if(i=Math.min(!c&&i>0?i-1:i,o.childNodes.length-1),o=o.childNodes[i],i=No.isText(o)&&s?o.data.length:0,!t&&o===l.lastChild&&hw(o))return J.none();if(yw(l,o)||bl(o))return J.none();if(o.hasChildNodes()&&hw(o)===!1){a=o;var d=new Xc(o,l);do{if(No.isContentEditableFalse(a)||bl(a)){f=!1;break}if(No.isText(a)&&a.nodeValue.length>0){i=c?0:a.nodeValue.length,o=a,f=!0;break}if(u[a.nodeName.toLowerCase()]&&!mw(a)){i=e.nodeIndex(a),o=a.parentNode,c||i++,f=!0;break}}while(a=c?d.next():d.prev())}}}return t&&(No.isText(o)&&0===i&&bw(e,s,t,!0,o).each(function(e){o=e.container(),i=e.offset(),f=!0}),No.isElement(o)&&(a=o.childNodes[i],a||(a=o.childNodes[i-1]),!a||!No.isBr(a)||vw(a,"A")||pw(e,a,!1)||pw(e,a,!0)||bw(e,s,t,!0,a).each(function(e){o=e.container(),i=e.offset(),f=!0}))),c&&!t&&No.isText(o)&&i===o.nodeValue.length&&bw(e,s,t,!1,o).each(function(e){o=e.container(),i=e.offset(),f=!0}),f?J.some(N(o,i)):J.none()},ww=function(e,t){var n=t.collapsed,r=t.cloneRange(),o=N.fromRangeStart(t);return Cw(e,n,!0,r).each(function(e){n&&N.isAbove(o,e)||r.setStart(e.container(),e.offset())}),n||Cw(e,n,!1,r).each(function(e){r.setEnd(e.container(),e.offset())}),n&&r.collapse(!0),sw.isEq(t,r)?J.none():J.some(r)},xw={normalize:ww},Ew=function(e,t){e.insertData(0,t)},zw=function(e){return 0===e.dom().length?(Lr(e),J.none()):J.some(e)},kw=function(e,t){var n=J.from(t.firstChild).map(Zt.fromDom),r=J.from(t.lastChild).map(Zt.fromDom);e.deleteContents(),e.insertNode(t);var o=n.bind(wr).filter(qr).bind(zw),i=r.bind(xr).filter(qr).bind(zw);of(o,n.filter(qr),function(e,t){Ew(t.dom(),e.dom().data),Lr(e)}),of(i,r.filter(qr),function(t,n){var r=n.dom().length;n.dom().appendData(t.dom().data),e.setEnd(n.dom(),r),Lr(t)}),e.collapse(!1)},Nw=function(e,t){return e=e||{format:"html"},e.set=!0,e.selection=!0,e.content=t,e},Sw=function(e,t,n){if(n=Nw(n,t),!n.no_events&&(n=e.fire("BeforeSetContent",n),n.isDefaultPrevented()))return void e.fire("SetContent",n);var r=e.selection.getRng();kw(r,r.createContextualFragment(n.content)),e.selection.setRng(r),Jb.scrollRangeIntoView(e,r),n.no_events||e.fire("SetContent",n)},Tw={setContent:Sw},Aw=function(e,t,n,r,o){var i=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return J.from(i).map(Zt.fromDom).map(function(e){return r&&t.collapsed?e:Nr(e,o(e,a)).getOr(e)}).bind(function(e){return jr(e)?J.some(e):br(e)}).map(function(e){return e.dom()}).getOr(e)},Rw=function(e,t,n){return Aw(e,t,!0,n,function(e,t){return Math.min(Ar(e),t)})},Bw=function(e,t,n){return Aw(e,t,!1,n,function(e,t){return t>0?t-1:t})},Dw=function(e,t){for(var n=e;e&&No.isText(e)&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n},Mw=function(e,t){var n,r,o,i,a;return t?(r=t.startContainer,o=t.endContainer,i=t.startOffset,a=t.endOffset,n=t.commonAncestorContainer,!t.collapsed&&(r===o&&2>a-i&&r.hasChildNodes()&&(n=r.childNodes[i]),3===r.nodeType&&3===o.nodeType&&(r=r.length===i?Dw(r.nextSibling,!0):r.parentNode,o=0===a?Dw(o.previousSibling,!1):o.parentNode,r&&r===o))?r:n&&3===n.nodeType?n.parentNode:n):e},_w=function(e,t,n,r){var o,i,a=[];if(i=e.getRoot(),n=e.getParent(n||Rw(i,t,t.collapsed),e.isBlock),r=e.getParent(r||Bw(i,t,t.collapsed),e.isBlock),n&&n!==i&&a.push(n),n&&r&&n!==r){o=n;for(var u=new Xc(n,i);(o=u.next())&&o!==r;)e.isBlock(o)&&a.push(o)}return r&&n!==r&&r!==i&&a.push(r),a},Pw=function(e,t,n){return J.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&&(yC(e,o,t,!0),yC(e,o,t,!1)),o})},Ow=function(e,t,n){if(e&&e.hasOwnProperty(t)){var r=bt(e[t],function(e){return e!==n});0===r.length?delete e[t]:e[t]=r}},Hw=function(e){return!!e.select},Lw=function(e){return!(!e||!e.ownerDocument)&&gr(Zt.fromDom(e.ownerDocument),Zt.fromDom(e))},Iw=function(e){return e?Hw(e)?!0:Lw(e.startContainer)&&Lw(e.endContainer):!1},Vw=function(e,t,n,r){var o,i,a,u,c=_(e,r).selectorChangedWithUnbind,s=function(t,n){var o=e.createRng();t?(o.setStart(t,n),o.setEnd(t,n),w(o),y(!1)):(yC(e,o,r.getBody(),!0),w(o))},l=function(e){return uw.getContent(r,e)},f=function(e,t){return Tw.setContent(r,e,t)},d=function(e){return Rw(r.getBody(),C(),e)},h=function(e){return Bw(r.getBody(),C(),e)},m=function(e,t){return o.getBookmark(e,t)},g=function(e){return o.moveToBookmark(e)},p=function(t,n){return Pw(e,t,n).each(w),t},v=function(){var e=C(),t=b();return!e||e.item?!1:e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed},y=function(e){var t=C();t.collapse(!!e),w(t)},b=function(){return t.getSelection?t.getSelection():t.document.selection},C=function(){var n,o,i,c,s=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}};if(!t)return null;if(c=t.document,"undefined"==typeof c||null===c)return null;if(void 0!==r.bookmark&&Bv.hasFocus(r)===!1){var l=Jp.getRng(r);if(l.isSome())return l.map(function(e){return aC.processRanges(r,[e])[0]}).getOr(c.createRange())}try{(n=b())&&!No.isRestrictedNode(n.anchorNode)&&(o=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():c.createRange())}catch(f){}return o=aC.processRanges(r,[o])[0],o||(o=c.createRange?c.createRange():c.body.createTextRange()),o.setStart&&9===o.startContainer.nodeType&&o.collapsed&&(i=e.getRoot(),o.setStart(i,0),o.setEnd(i,0)),a&&u&&(0===s(o.START_TO_START,o,a)&&0===s(o.END_TO_END,o,a)?o=u:(a=null,u=null)),o},w=function(e,t){var n,o,i;if(Iw(e)){var c=Hw(e)?e:null;if(c){u=null;try{c.select()}catch(s){}}else{if(n=b(),i=r.fire("SetSelectionRange",{range:e,forward:t}),e=i.range,n){u=e;try{n.removeAllRanges(),n.addRange(e)}catch(s){}t===!1&&n.extend&&(n.collapse(e.endContainer,e.endOffset),n.extend(e.startContainer,e.startOffset)),a=n.rangeCount>0?n.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!n.setBaseAndExtent||Ri.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(o=e.startContainer.childNodes[e.startOffset],o&&"IMG"===o.tagName&&(n.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),(n.anchorNode!==e.startContainer||n.focusNode!==e.endContainer)&&n.setBaseAndExtent(o,0,o,1))),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},x=function(t){return f(e.getOuterHTML(t)),t},E=function(){return Mw(r.getBody(),C())},z=function(t,n){return _w(e,C(),t,n)},k=function(){var t,n,r=b();return r&&r.anchorNode&&r.focusNode?(t=e.createRng(),t.setStart(r.anchorNode,r.anchorOffset),t.collapse(!0),n=e.createRng(),n.setStart(r.focusNode,r.focusOffset),n.collapse(!0),t.compareBoundaryPoints(t.START_TO_START,n)<=0):!0},N=function(){var t=C(),n=b();if(!VC.hasMultipleRanges(n)&&bC(r)){var o=xw.normalize(e,t);return o.each(function(e){w(e,k())}),o.getOr(t)}return t},S=function(e,t){return c(e,t),M},T=function(){for(var t,n=e.getRoot();n&&"BODY"!==n.nodeName;){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},A=function(e,t){return Jb.scrollElementIntoView(r,e,t)},R=function(e,t){return w(oC.fromPoint(e,t,r.getDoc()))},B=function(){var e=C();return e.collapsed?Mf.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},D=function(){t=a=u=null,i.destroy()},M={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:y,setCursorLocation:s,getContent:l,setContent:f,getBookmark:m,moveToBookmark:g,select:p,isCollapsed:v,isForward:k,setNode:x,getNode:E,getSel:b,setRng:w,getRng:C,getStart:d,getEnd:h,getSelectedBlocks:z,normalize:N,selectorChanged:S,selectorChangedWithUnbind:c,getScrollContainer:T,scrollIntoView:A,placeCaretAt:R,getBoundingClientRect:B,destroy:D};return o=mb(M),i=wb(M,r),M.bookmarkManager=o,M.controlSelection=i,M},Fw=function(e,t){pt(t,function(t){e.attr(t,null)})},Uw=function(e,t,n){e.addNodeFilter("font",function(e){pt(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)),Fw(e,["color","face","size"])})})},jw=function(e,t){e.addNodeFilter("strike",function(e){pt(e,function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))})})},qw=function(e,t){var n=Cu();t.convert_fonts_to_spans&&Uw(e,n,ea.explode(t.font_size_legacy_values)),jw(e,n)},$w=function(e,t){t.inline_styles&&qw(e,t)},Ww={register:$w},Kw=function(e,t,n,r){var o=e.padd_empty_with_br||t.insert;o&&n[r.name]?r.empty().append(new $g("br",1)).shortEnded=!0:r.empty().append(new $g("#text",3)).value=yu},Xw=function(e){return Yw(e,"#text")&&e.firstChild.value===yu},Yw=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},Gw=function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty},Zw=function(e,t,n,r){return r.isEmpty(t,n,function(t){return Gw(e,t)})},Jw=function(e,t){return e&&(t[e.name]||"br"===e.name)},Qw=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",function(e,r,o){var i,a,u,c,s,l,f,d,h=e.length,m=ea.extend({},n.getBlockElements()),g=n.getNonEmptyElements(),p=n.getNonEmptyElements();for(m.body=1,i=0;h>i;i++)if(a=e[i],u=a.parent,m[a.parent.name]&&a===u.lastChild){for(s=a.prev;s;){if(l=s.name,"span"!==l||"bookmark"!==s.attr("data-mce-type")){if("br"!==l)break;if("br"===l){a=null;break}}s=s.prev}a&&(a.remove(),Zw(n,g,p,u)&&(f=n.getElementRule(u.name),f&&(f.removeEmpty?u.remove():f.paddEmpty&&Kw(t,o,m,u))))}else{for(c=a;u&&u.firstChild===c&&u.lastChild===c&&(c=u,!m[u.name]);)u=u.parent;c===u&&t.padd_empty_with_br!==!0&&(d=new $g("#text",3),d.value=yu,a.replace(d))}}),e.addAttributeFilter("href",function(e){var n,r=e.length,o=function(e){var t=e.split(" ").filter(function(e){return e.length>0});return t.concat(["noopener"]).sort().join(" ")},i=function(e){var t=e?ea.trim(e):"";return/\b(noopener)\b/g.test(t)?t:o(t)};if(!t.allow_unsafe_link_target)for(;r--;)n=e[r],"a"===n.name&&"_blank"===n.attr("target")&&n.attr("rel",i(n.attr("rel")))}),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",function(e){for(var t,n,r,o,i=e.length;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){for(var t,n,r=e.length;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 $g("li",1);o.attr("style","list-style-type: none"),t.wrap(o)}}),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",function(e){for(var t,r,o,i,a,u,c,s=e.length,l=n.getValidClasses();s--;){for(t=e[s],r=t.attr("class").split(" "),a="",o=0;o<r.length;o++)i=r[o],c=!1,u=l["*"],u&&u[i]&&(c=!0),u=l[t.name],!c&&u&&u[i]&&(c=!0),c&&(a&&(a+=" "),a+=i);a.length||(a=null),t.attr("class",a)}})},ex=ea.makeMap,tx=ea.each,nx=ea.explode,rx=ea.extend,ox=function(e,t){void 0===t&&(t=a());var n={},r=[],o={},i={};e=e||{},e.validate="validate"in e?e.validate:!0,e.root_name=e.root_name||"body";var u=function(e){var n,r,o,i,a,u,s,l,f,d,h,m,g,p,v,y;for(m=ex("tr,td,th,tbody,thead,tfoot,table"),d=t.getNonEmptyElements(),h=t.getWhiteSpaceElements(),g=t.getTextBlockElements(),p=t.getSpecialElements(),n=0;n<e.length;n++)if(r=e[n],r.parent&&!r.fixed)if(g[r.name]&&"li"===r.parent.name){for(v=r.next;v&&g[v.name];)v.name="li",v.fixed=!0,r.parent.insert(v,r.parent),v=v.next;r.unwrap(r)}else{for(i=[r],o=r.parent;o&&!t.isValidChild(o.name,r.name)&&!m[o.name];o=o.parent)i.push(o);if(o&&i.length>1){for(i.reverse(),a=u=c(i[0].clone()),f=0;f<i.length-1;f++){for(t.isValidChild(u.name,i[f].name)?(s=c(i[f].clone()),u.append(s)):s=u,l=i[f].firstChild;l&&l!==i[f+1];)y=l.next,s.append(l),l=y;u=s}Zw(t,d,h,a)?o.insert(r,i[0],!0):(o.insert(a,i[0],!0),o.insert(r,a)),o=i[0],(Zw(t,d,h,o)||Yw(o,"br"))&&o.empty().remove()}else if(r.parent){if("li"===r.name){if(v=r.prev,v&&("ul"===v.name||"ul"===v.name)){v.append(r);continue}if(v=r.next,v&&("ul"===v.name||"ul"===v.name)){v.insert(r,v.firstChild,!0);continue}r.wrap(c(new $g("ul",1)));continue}t.isValidChild(r.parent.name,"div")&&t.isValidChild("div",r.name)?r.wrap(c(new $g("div",1))):p[r.name]?r.empty().remove():r.unwrap()}}},c=function(e){var t,a,u;a=e.name,a in n&&(u=o[a],u?u.push(e):o[a]=[e]),t=r.length;for(;t--;)a=r[t].name,a in e.attributes.map&&(u=i[a],u?u.push(e):i[a]=[e]);return e},s=function(e,t){tx(nx(e),function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)})},l=function(){var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push({name:t,callbacks:n[t]});return e},f=function(e,t){tx(nx(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]})})},d=function(){return[].concat(r)},h=function(a,c){var s,l,f,d,h,m,g,p,v,y,b,C=[],w=function(e){return e===!1?"":e===!0?"p":e};c=c||{},o={},i={},v=rx(ex("script,style,head,html,body,title,meta,param"),t.getBlockElements());var x=t.getNonEmptyElements(),E=t.children,z=e.validate,k="forced_root_block"in c?c.forced_root_block:e.forced_root_block,N=w(k),S=t.getWhiteSpaceElements(),T=/^[ \t\r\n]+/,A=/[ \t\r\n]+$/,R=/[ \t\r\n]+/g,B=/^[ \t\r\n]+$/;y=S.hasOwnProperty(c.context)||S.hasOwnProperty(e.root_name);var D=function(){var n,r,o=O.firstChild,i=function(e){e&&(o=e.firstChild,o&&3===o.type&&(o.value=o.value.replace(T,"")),o=e.lastChild,o&&3===o.type&&(o.value=o.value.replace(A,"")))};if(t.isValidChild(O.name,N.toLowerCase())){for(;o;)n=o.next,3===o.type||1===o.type&&"p"!==o.name&&!v[o.name]&&!o.attr("data-mce-type")?r?r.append(o):(r=M(N,1),r.attr(e.forced_root_block_attrs),O.insert(r,o),r.append(o)):(i(r),r=null),o=n;i(r)}},M=function(e,t){var r,i=new $g(e,t);return e in n&&(r=o[e],r?r.push(i):o[e]=[i]),i},_=function(e){var n,r,o,i,a=t.getBlockElements();for(n=e.prev;n&&3===n.type;){if(o=n.value.replace(A,""),o.length>0)return void(n.value=o);if(r=n.next){if(3===r.type&&r.value.length){n=n.prev;continue}if(!a[r.name]&&"script"!==r.name&&"style"!==r.name){n=n.prev;continue}}i=n.prev,n.remove(),n=i}},P=function(e){var t,n={};for(t in e)"li"!==t&&"p"!==t&&(n[t]=e[t]);return n};s=Qg({validate:z,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){b.append(M("#cdata",4)).value=e
},text:function(e,t){var n;y||(e=e.replace(R," "),Jw(b.lastChild,v)&&(e=e.replace(T,""))),0!==e.length&&(n=M("#text",3),n.raw=!!t,b.append(n).value=e)},comment:function(e){b.append(M("#comment",8)).value=e},pi:function(e,t){b.append(M(e,7)).value=t,_(b)},doctype:function(e){var t;t=b.append(M("#doctype",10)),t.value=e,_(b)},start:function(e,n,o){var a,u,c,s,l;if(c=z?t.getElementRule(e):{}){for(a=M(c.outputName||e,1),a.attributes=n,a.shortEnded=o,b.append(a),l=E[b.name],l&&E[a.name]&&!l[a.name]&&C.push(a),u=r.length;u--;)s=r[u].name,s in n.map&&(g=i[s],g?g.push(a):i[s]=[a]);v[e]&&_(a),o||(b=a),!y&&S[e]&&(y=!0)}},end:function(n){var r,o,i,a,u;if(o=z?t.getElementRule(n):{}){if(v[n]&&!y){if(r=b.firstChild,r&&3===r.type)if(i=r.value.replace(T,""),i.length>0)r.value=i,r=r.next;else for(a=r.next,r.remove(),r=a;r&&3===r.type;)i=r.value,a=r.next,(0===i.length||B.test(i))&&(r.remove(),r=a),r=a;if(r=b.lastChild,r&&3===r.type)if(i=r.value.replace(A,""),i.length>0)r.value=i,r=r.prev;else for(a=r.prev,r.remove(),r=a;r&&3===r.type;)i=r.value,a=r.prev,(0===i.length||B.test(i))&&(r.remove(),r=a),r=a}if(y&&S[n]&&(y=!1),o.removeEmpty&&Zw(t,x,S,b))return u=b.parent,v[b.name]?b.empty().remove():b.unwrap(),void(b=u);o.paddEmpty&&(Xw(b)||Zw(t,x,S,b))&&Kw(e,c,v,b),b=b.parent}}},t);var O=b=new $g(c.context||e.root_name,11);if(s.parse(a,c.format),z&&C.length&&(c.context?c.invalid=!0:u(C)),N&&("body"===O.name||c.isRootContent)&&D(),!c.invalid){for(p in o)if(o.hasOwnProperty(p)){for(g=n[p],l=o[p],h=l.length;h--;)l[h].parent||l.splice(h,1);for(f=0,d=g.length;d>f;f++)g[f](l,p,c)}for(f=0,d=r.length;d>f;f++)if(g=r[f],g.name in i){for(l=i[g.name],h=l.length;h--;)l[h].parent||l.splice(h,1);for(h=0,m=g.callbacks.length;m>h;h++)g.callbacks[h](l,g.name,c)}}return O},m={schema:t,addAttributeFilter:f,getAttributeFilters:d,addNodeFilter:s,getNodeFilters:l,filterNode:c,parse:h};return Qw(m,e),Ww.register(m,e),m},ix=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",function(e,t){for(var n,r=e.length;r--;)n=e[r],n.attr("tabindex",n.attr("data-mce-tabindex")),n.attr(t,null)}),e.addAttributeFilter("src,href,style",function(e,r){for(var o,i,a=e.length,u="data-mce-"+r,c=t.url_converter,s=t.url_converter_scope;a--;)o=e[a],i=o.attr(u),void 0!==i?(o.attr(r,i.length>0?i:null),o.attr(u,null)):(i=o.attr(r),"style"===r?i=n.serializeStyle(n.parseStyle(i),o.name):c&&(i=c.call(s,i,r,o.name)),o.attr(r,i.length>0?i:null))}),e.addAttributeFilter("class",function(e){for(var t,n,r=e.length;r--;)t=e[r],n=t.attr("class"),n&&(n=t.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),t.attr("class",n.length>0?n:null))}),e.addAttributeFilter("data-mce-type",function(e,t,n){for(var r,o=e.length;o--;)if(r=e[o],"bookmark"===r.attr("data-mce-type")&&!n.cleanup){var i=J.from(r.firstChild).exists(function(e){return!ml.isZwsp(e.value)});i?r.unwrap():r.remove()}}),e.addNodeFilter("noscript",function(e){for(var t,n=e.length;n--;)t=e[n].firstChild,t&&(t.value=au.decode(t.value))}),e.addNodeFilter("script,style",function(e,n){for(var r,o,i,a=e.length,u=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,"")};a--;)r=e[a],o=r.firstChild?r.firstChild.value:"","script"===n?(i=r.attr("type"),i&&r.attr("type","mce-no/type"===i?null:i.replace(/^mce\-/,"")),"xhtml"===t.element_format&&o.length>0&&(r.firstChild.value="// <![CDATA[\n"+u(o)+"\n// ]]>")):"xhtml"===t.element_format&&o.length>0&&(r.firstChild.value="<!--\n"+u(o)+"\n-->")}),e.addNodeFilter("#comment",function(e){for(var r,o=e.length;o--;)r=e[o],t.preserve_cdata&&0===r.value.indexOf("[CDATA[")?(r.name="#cdata",r.type=4,r.value=n.decode(r.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===r.value.indexOf("mce:protected ")&&(r.name="#text",r.type=3,r.raw=!0,r.value=unescape(r.value).substr(14))}),e.addNodeFilter("xml:namespace,input",function(e,t){for(var n,r=e.length;r--;)n=e[r],7===n.type?n.remove():1===n.type&&("input"!==t||n.attr("type")||n.attr("type","text"))}),e.addAttributeFilter("data-mce-type",function(t){pt(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){for(var n=e.length;n--;)e[n].attr(t,null)})},ax=function(e){var t,n,r=function(e){return e&&"br"===e.name};t=e.lastChild,r(t)&&(n=t.prev,r(n)&&(t.remove(),n.remove()))},ux={register:ix,trimTrailingBr:ax},cx=function(t,n,r){var o,i,a,u=t.dom;return n=n.cloneNode(!0),o=e.document.implementation,o.createHTMLDocument&&(i=o.createHTMLDocument(""),ea.each("BODY"===n.nodeName?n.childNodes:[n],function(e){i.body.appendChild(i.importNode(e,!0))}),n="BODY"!==n.nodeName?i.body.firstChild:i.body,a=u.doc,u.doc=i),Iv(t,$t($t({},r),{node:n})),a&&(u.doc=a),n},sx=function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events},lx=function(e,t,n){return sx(e,n)?cx(e,t,n):t},fx={process:lx},dx=function(e,t,n){-1===ea.inArray(t,n)&&(e.addAttributeFilter(n,function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)}),t.push(n))},hx=function(e,t,n){if(!t.no_events&&e){var r=Vv(e,$t($t({},t),{content:n}));return r.content}return n},mx=function(e,t,n){var r=ml.trim(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||xa(Zt.fromDom(t))?r:ea.trim(r)},gx=function(e,t,n){var r=n.selection?$t({forced_root_block:!1},n):n,o=e.parse(t,r);return ux.trimTrailingBr(o),o},px=function(e,t,n){var r=lp(e,t);return r.serialize(n)},vx=function(e,t,n,r,o){var i=px(t,n,r);return hx(e,o,i)},yx=function(e,n){var r=["data-mce-selected"],o=n&&n.dom?n.dom:rs.DOM,i=n&&n.schema?n.schema:a(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs="remove_trailing_brs"in e?e.remove_trailing_brs:!0;var u=ox(e,i);ux.register(u,e,o);var c=function(t,r){void 0===r&&(r={});var a=$t({format:"html"},r),c=fx.process(n,t,a),s=mx(o,c,a),l=gx(u,s,a);return"tree"===a.format?l:vx(n,e,i,l,a)};return{schema:i,addNodeFilter:u.addNodeFilter,addAttributeFilter:u.addAttributeFilter,serialize:c,addRules:function(e){i.addValidElements(e)},setRules:function(e){i.setValidElements(e)},addTempAttr:t(dx,u,r),getTempAttrs:function(){return r},getNodeFilters:u.getNodeFilters,getAttributeFilters:u.getAttributeFilters}},bx=function(e,t){var n=yx(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}},Cx=function(t){return new mi(function(n,r){var o=function(){r("Cannot convert "+t+" to Blob. Resource might not exist or is inaccessible.")};try{var i=new e.XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(){200===this.status?n(this.response):o()},i.onerror=o,i.send()}catch(a){o()}})},wx=function(e){var t,n,r=decodeURIComponent(e).split(",");return n=/data:([^;]+)/.exec(r[0]),n&&(t=n[1]),{type:t,data:r[1]}},xx=function(t){return new mi(function(n){var r,o,i,a=wx(t);try{r=e.atob(a.data)}catch(u){return void n(new e.Blob([]))}for(o=new Uint8Array(r.length),i=0;i<o.length;i++)o[i]=r.charCodeAt(i);n(new e.Blob([o],{type:a.type}))})},Ex=function(e){return 0===e.indexOf("blob:")?Cx(e):0===e.indexOf("data:")?xx(e):null},zx=function(t){return new mi(function(n){var r=new e.FileReader;r.onloadend=function(){n(r.result)},r.readAsDataURL(t)})},kx={uriToBlob:Ex,blobToDataUri:zx,parseDataUri:wx},Nx=0,Sx=function(e){return(e||"blobid")+Nx++},Tx=function(e,t,n,r){var o,i;return 0===t.src.indexOf("blob:")?(i=e.getByUri(t.src),void(i?n({image:t,blobInfo:i}):kx.uriToBlob(t.src).then(function(r){kx.blobToDataUri(r).then(function(a){o=kx.parseDataUri(a).data,i=e.create(Sx(),r,o),e.add(i),n({image:t,blobInfo:i})})},function(e){r(e)}))):(o=kx.parseDataUri(t.src).data,i=e.findFirst(function(e){return e.base64()===o}),void(i?n({image:t,blobInfo:i}):kx.uriToBlob(t.src).then(function(r){i=e.create(Sx(),r,o),e.add(i),n({image:t,blobInfo:i})},function(e){r(e)})))},Ax=function(e){return e?Mt(e.getElementsByTagName("img")):[]},Rx=0,Bx=function(){var e=function(){return Math.round(4294967295*Math.random()).toString(36)},t=(new Date).getTime();return"s"+t.toString(36)+e()+e()+e()},Dx=function(e){return e+Rx++ +Bx()},Mx={uuid:Dx},_x=function(){var t=[],n=function(e){var t={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png"};return t[e.toLowerCase()]||"dat"},r=function(e,t,n,r){if(tt(e)){var i=e;return o({id:i,name:r,blob:t,base64:n})}if(nt(e))return o(e);throw new Error("Unknown input type")},o=function(t){var r,o;if(!t.blob||!t.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");return r=t.id||Mx.uuid("blobid"),o=t.name||r,{id:U(r),name:U(o),filename:U(o+"."+n(t.blob.type)),blob:U(t.blob),base64:U(t.base64),blobUri:U(t.blobUri||e.URL.createObjectURL(t.blob)),uri:U(t.uri)}},i=function(e){a(e.id())||t.push(e)},a=function(e){return u(function(t){return t.id()===e})},u=function(e){return bt(t,e)[0]},c=function(e){return u(function(t){return t.blobUri()===e})},s=function(n){t=bt(t,function(t){return t.blobUri()===n?(e.URL.revokeObjectURL(t.blobUri()),!1):!0})},l=function(){pt(t,function(t){e.URL.revokeObjectURL(t.blobUri())}),t=[]};return{create:r,add:i,get:a,getByUri:c,findFirst:u,removeByUri:s,destroy:l}},Px=function(e){var t,n,r=_x(),o=H(),i=[],a=function(t){return function(n){return e.selection?t(n):[]}},u=function(e){return e+(-1===e.indexOf("?")?"?":"&")+(new Date).getTime()},c=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},s=function(e,t,n){return e=c(e,'src="'+t+'"','src="'+n+'"'),e=c(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"')},l=function(t,n){pt(e.undoManager.data,function(e){"fragmented"===e.type?e.fragments=gt(e.fragments,function(e){return s(e,t,n)}):e.content=s(e.content,t,n)})},f=function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})},d=function(t,n){r.removeByUri(t.src),l(t.src,n),e.$(t).attr({src:yh.shouldReuseFileName(e)?u(n):n,"data-mce-src":e.convertURL(n,"src")})},h=function(n){return t||(t=O(o,{url:yh.getImageUploadUrl(e),basePath:yh.getImageUploadBasePath(e),credentials:yh.getImagesUploadCredentials(e),handler:yh.getImagesUploadHandler(e)})),v().then(a(function(r){var o=gt(r,function(e){return e.blobInfo});return t.upload(o,f).then(a(function(t){var o=gt(t,function(t,n){var o=r[n].image;return t.status&&yh.shouldReplaceBlobUris(e)?d(o,t.url):t.error&&sb.uploadError(e,t.error),{element:o,status:t.status}});return n&&n(o),o}))}))},m=function(t){return yh.isAutomaticUploadsEnabled(e)?h(t):void 0},g=function(t){if(Nt(i,function(e){return e(t)})===!1)return!1;if(0===t.getAttribute("src").indexOf("data:")){var n=yh.getImagesDataImgFilter(e);return n(t)}return!0},p=function(e){i.push(e)},v=function(){return n||(n=P(o,r)),n.findAll(e.getBody(),g).then(a(function(t){return t=bt(t,function(t){return"string"==typeof t?(sb.displayError(e,t),!1):!0}),pt(t,function(e){l(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=wt(e.editorManager.get(),function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)},null)),a){var u=a.blob();return'src="data:'+u.type+";base64,"+a.base64()+'"'}return t})};return e.on("SetContent",function(){yh.isAutomaticUploadsEnabled(e)?m():v()}),e.on("RawSaveContent",function(e){e.content=b(e.content)}),e.on("GetContent",function(e){e.source_view||"raw"===e.format||(e.content=b(e.content))}),e.on("PostRender",function(){e.parser.addNodeFilter("img",function(e){pt(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:p,uploadImages:h,uploadImagesAuto:m,scanForImages:v,destroy:y}},Ox=function(e){for(var t=[],n=e.dom();n;)t.push(Zt.fromDom(n)),n=n.lastChild;return t},Hx=function(e){var t=Vs(e,"br"),n=bt(Ox(e).slice(-1),ga);t.length===n.length&&pt(n,Lr)},Lx=function(e){Hr(e),Mr(e,Zt.fromHtml('<br data-mce-bogus="1">'))},Ix=function(e){return qr(e)?Dg(e)===yu:ga(e)},Vx=function(e){return 1===bt(kr(e),Ix).length},Fx=function(e){Tr(e).each(function(t){wr(t).each(function(n){da(e)&&ga(t)&&da(n)&&Lr(t)})})},Ux={removeTrailingBr:Hx,fillWithPaddingBr:Lx,isPaddedElement:Vx,trimBlockTrailingBr:Fx},jx=ug,qx=function(e,t,n){var r=e.formatter.get(n);if(r)for(var o=0;o<r.length;o++)if(r[o].inherit===!1&&e.dom.is(t,r[o].selector))return!0;return!1},$x=function(e,t,n,r){var o=e.dom.getRoot();return t===o?!1:(t=e.dom.getParent(t,function(t){return qx(e,t,n)?!0:t.parentNode===o||!!Xx(e,t,n,r,!0)}),Xx(e,t,n,r))},Wx=function(e,t,n){return jx(t,n.inline)?!0:jx(t,n.block)?!0:n.selector?1===t.nodeType&&e.is(t,n.selector):void 0},Kx=function(e,t,n,r,o,i){var a,u,c,s=n[r];if(n.onmatch)return n.onmatch(t,n,r);if(s)if("undefined"==typeof s.length){for(a in s)if(s.hasOwnProperty(a)){if(u="attributes"===r?e.getAttrib(t,a):sg(e,t,a),o&&!u&&!n.exact)return;if((!o||n.exact)&&!jx(u,cg(e,ag(s[a],i),a)))return}}else for(c=0;c<s.length;c++)if("attributes"===r?e.getAttrib(t,s[c]):sg(e,t,s[c]))return n;return n},Xx=function(e,t,n,r,o){var i,a,u,c,s=e.formatter.get(n),l=e.dom;if(s&&t)for(a=0;a<s.length;a++)if(i=s[a],Wx(e.dom,t,i)&&Kx(l,t,i,"attributes",o,r)&&Kx(l,t,i,"styles",o,r)){if(c=i.classes)for(u=0;u<c.length;u++)if(!e.dom.hasClass(t,c[u]))return;return i}},Yx=function(e,t,n,r){var o;return r?$x(e,r,t,n):(r=e.selection.getNode(),$x(e,r,t,n)?!0:(o=e.selection.getStart(),o!==r&&$x(e,o,t,n)?!0:!1))},Gx=function(e,t,n){var r,o=[],i={};return r=e.selection.getStart(),e.dom.getParent(r,function(r){var a,u;for(a=0;a<t.length;a++)u=t[a],!i[u]&&Xx(e,r,u,n)&&(i[u]=!0,o.push(u))},e.dom.getRoot()),o},Zx=function(e,t){var n,r,o,i,a,u=e.formatter.get(t),c=e.dom;if(u)for(n=e.selection.getStart(),r=fg(c,n),i=u.length-1;i>=0;i--){if(a=u[i].selector,!a||u[i].defaultBlock)return!0;for(o=r.length-1;o>=0;o--)if(c.is(r[o],a))return!0}return!1},Jx=function(e,t){return e.splitText(t)},Qx=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset;return t===r&&No.isText(t)?n>0&&n<t.nodeValue.length&&(r=Jx(t,n),t=r.previousSibling,o>n?(o-=n,t=r=Jx(r,o).previousSibling,o=r.nodeValue.length,n=0):o=0):(No.isText(t)&&n>0&&n<t.nodeValue.length&&(t=Jx(t,n),n=0),No.isText(r)&&o>0&&o<r.nodeValue.length&&(r=Jx(r,o).previousSibling,o=r.nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:o}},eE=function(e,t,n){var r=wt(e,function(r,o){return Gm(o)||Ym(o)?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+yu}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+o}},{previousCharIsSpace:!1,str:""});return r.str},tE=function(e,t,n){if(0!==n){var r=e.data.slice(t,t+n),o=t+n>=e.data.length,i=0===t;e.replaceData(t,n,eE(r,i,o))}},nE=function(e,t){var n=e.data.slice(t),r=n.length-Hn(n).length;return tE(e,t,r)},rE=function(e,t){var n=e.data.slice(0,t),r=n.length-Ln(n).length;return tE(e,t-r,r)},oE=function(e,t,n){var r=Ln(e.data).length;return e.appendData(t.data),Lr(Zt.fromDom(t)),n&&nE(e,r),e},iE=function(e,t,n){return js(e,t,n).isSome()},aE=function(e,n){var r=Zt.fromDom(e),o=Zt.fromDom(n);return iE(o,"pre,code",t(fr,r))},uE=function(e,t){return No.isText(t)&&/^[ \t\r\n]*$/.test(t.data)&&aE(e,t)===!1},cE=function(e){return No.isElement(e)&&"A"===e.nodeName&&e.hasAttribute("name")},sE=function(e,t){return Il(t)&&uE(e,t)===!1||cE(t)||lE(t)},lE=No.hasAttribute("data-mce-bookmark"),fE=No.hasAttribute("data-mce-bogus"),dE=No.hasAttributeValue("data-mce-bogus","all"),hE=function(e,t){var n,r=0;if(sE(e,e))return!1;if(n=e.firstChild,!n)return!0;var o=new Xc(n,e);do{if(t){if(dE(n)){n=o.next(!0);continue}if(fE(n)){n=o.next();continue}}if(No.isBr(n))r++,n=o.next();else{if(sE(e,n))return!1;n=o.next()}}while(n);return 1>=r},mE=function(e,t){return void 0===t&&(t=!0),hE(e.dom(),t)},gE={isEmpty:mE},pE=function(e,t){var n=e.container(),r=e.offset();return Mf.isTextPosition(e)===!1&&n===t.parentNode&&r>Mf.before(t).offset()},vE=function(e,t){return pE(t,e)?Mf(t.container(),t.offset()-1):t},yE=function(e){return No.isText(e)?Mf(e,0):Mf.before(e)},bE=function(e){return No.isText(e)?Mf(e,e.data.length):Mf.after(e)},CE=function(e){return Il(e.previousSibling)?J.some(bE(e.previousSibling)):e.previousSibling?zm.lastPositionIn(e.previousSibling):J.none()},wE=function(e){return Il(e.nextSibling)?J.some(yE(e.nextSibling)):e.nextSibling?zm.firstPositionIn(e.nextSibling):J.none()},xE=function(e,t){var n=Mf.before(t.previousSibling?t.previousSibling:t.parentNode);return zm.prevPosition(e,n).fold(function(){return zm.nextPosition(e,Mf.after(t))},J.some)},EE=function(e,t){return zm.nextPosition(e,Mf.after(t)).fold(function(){return zm.prevPosition(e,Mf.before(t))},J.some)},zE=function(e,t){return CE(t).orThunk(function(){return wE(t)}).orThunk(function(){return xE(e,t)})},kE=function(e,t){return wE(t).orThunk(function(){return CE(t)}).orThunk(function(){return EE(e,t)})},NE=function(e,t,n){return e?kE(t,n):zE(t,n)},SE=function(e,n,r){return NE(e,n,r).map(t(vE,r))},TE=function(e,t,n){n.fold(function(){e.focus()},function(n){e.selection.setRng(n.toRange(),t)})},AE=function(e){return function(t){return t.dom()===e}},RE=function(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(Vr(t))},BE=function(e){if(gE.isEmpty(e)){var t=Zt.fromHtml('<br data-mce-bogus="1">');return Hr(e),Mr(e,t),J.some(Mf.before(t.dom()))}return J.none()},DE=function(e,t,n){var r=wr(e).filter(qr),o=xr(e).filter(qr);return Lr(e),af(r,o,t,function(e,t,r){var o=e.dom(),i=t.dom(),a=o.data.length;return oE(o,i,n),r.container()===i?Mf(o,a):r}).orThunk(function(){return n&&(r.each(function(e){return rE(e.dom(),e.dom().length)}),o.each(function(e){return nE(e.dom(),0)})),t})},ME=function(e,t){return qt(e.schema.getTextInlineElements(),Vr(t))},_E=function(e,n,r,o){void 0===o&&(o=!0);var i=SE(n,e.getBody(),r.dom()),a=Fs(r,t(RE,e),AE(e.getBody())),u=DE(r,i,ME(e,r));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):a.bind(BE).fold(function(){o&&TE(e,n,u)},function(t){o&&TE(e,n,J.some(t))})},PE={deleteElement:_E},OE=ml.ZWSP,HE="_mce_caret",LE=function(e,t){return e.importNode(t,!0)},IE=function(e){for(var t=[];e;){if(3===e.nodeType&&e.nodeValue!==OE||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t},VE=function(e){return IE(e).length>0},FE=function(e){if(e){var t=new Xc(e,e);for(e=t.current();e;e=t.next())if(No.isText(e))return e}return null},UE=function(e){var t=Zt.fromTag("span");return Ro(t,{id:HE,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&Mr(t,Zt.fromText(OE)),t},jE=function(e){var t=FE(e);return t&&t.nodeValue.charAt(0)===OE&&t.deleteData(0,1),t},qE=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(VE(t))PE.deleteElement(e,!1,Zt.fromDom(t),n);else{var i=o.getRng(),a=r.getParent(t,r.isBlock),u=jE(t);i.startContainer===u&&i.startOffset>0&&i.setStart(u,i.startOffset-1),i.endContainer===u&&i.endOffset>0&&i.setEnd(u,i.endOffset-1),r.remove(t,!0),a&&r.isEmpty(a)&&Ux.fillWithPaddingBr(Zt.fromDom(a)),o.setRng(i)}},$E=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(t)qE(e,t,n);else if(t=yd(e.getBody(),o.getStart()),!t)for(;t=r.get(HE);)qE(e,t,!1)},WE=function(e,n,r){var o=e.dom,i=o.getParent(r,t(ng,e));i&&o.isEmpty(i)?r.parentNode.replaceChild(n,r):(Ux.removeTrailingBr(Zt.fromDom(r)),o.isEmpty(r)?r.parentNode.replaceChild(n,r):o.insertAfter(n,r))},KE=function(e,t){return e.appendChild(t),t},XE=function(e,t){var n=Ct(e,function(e,t){return KE(e,t.cloneNode(!1))},t);return KE(n,n.ownerDocument.createTextNode(OE))},YE=function(e,t,n){var r,o,i,a,u,c,s,l=e.selection;r=l.getRng(),a=r.startOffset,c=r.startContainer,s=c.nodeValue,o=yd(e.getBody(),l.getStart()),o&&(i=FE(o));var f=/[^\s\u00a0\u00ad\u200b\ufeff]/;s&&a>0&&a<s.length&&f.test(s.charAt(a))&&f.test(s.charAt(a-1))?(u=l.getBookmark(),r.collapse(!0),r=kg(e,r,e.formatter.get(t)),r=Qx(r),e.formatter.apply(t,n,r),l.moveToBookmark(u)):(o&&i.nodeValue===OE?e.formatter.apply(t,n,o):(o=LE(e.getDoc(),UE(!0).dom()),i=o.firstChild,r.insertNode(o),a=1,e.formatter.apply(t,n,o)),l.setCursorLocation(i,a))},GE=function(e,t,n,r){var o,i,a,u,c,s,l,f=e.dom,d=e.selection,h=[],m=d.getRng();for(o=m.startContainer,i=m.startOffset,c=o,3===o.nodeType&&(i!==o.nodeValue.length&&(u=!0),c=c.parentNode);c;){if(Xx(e,c,t,n,r)){s=c;break}c.nextSibling&&(u=!0),h.push(c),c=c.parentNode}if(s)if(u){a=d.getBookmark(),m.collapse(!0);var g=kg(e,m,e.formatter.get(t),!0);g=Qx(g),e.formatter.remove(t,n,g),d.moveToBookmark(a)}else{l=yd(e.getBody(),s);var p=UE(!1).dom(),v=XE(h,p);l?WE(e,p,l):WE(e,p,s),qE(e,l,!1),d.setCursorLocation(v,1),f.isEmpty(s)&&f.remove(s)}},ZE=function(e,t){var n=e.selection,r=e.getBody();$E(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==OE||$E(e,yd(r,n.getStart())),(37===t||39===t)&&$E(e,yd(r,n.getStart()))},JE=function(e){e.on("mouseup keydown",function(t){ZE(e,t.keyCode)})},QE=function(e,t){var n=UE(!1),r=XE(t,n.dom());return Rr(Zt.fromDom(e),n),Lr(Zt.fromDom(e)),Mf(r,0)},ez=function(e,t){var n=e.schema.getTextInlineElements();return n.hasOwnProperty(Vr(t))&&!vd(t.dom())&&!No.isBogus(t.dom())},tz=function(e){return vd(e.dom())&&VE(e.dom())},nz={},rz=Fi.filter,oz=Fi.each,iz=function(e,t){var n=nz[e];n||(nz[e]=n=[]),nz[e].push(t)},az=function(e,t){oz(nz[e],function(e){e(t)})};iz("pre",function(e){var t,n,r=e.selection.getRng(),o=function(e){return t(e.previousSibling)&&-1!==Fi.indexOf(n,e.previousSibling)},i=function(e,t){Kc(t).remove(),Kc(e).append("<br><br>").append(t.childNodes)};t=No.matchNodeNames(["pre"]),r.collapsed||(n=e.selection.getSelectedBlocks(),oz(rz(rz(n,t),o),function(e){i(e.previousSibling,e)}))});var uz,cz=ea.each,sz=function(e){this.compare=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return cz(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(e.hasOwnProperty(r)){if(n=t[r],"undefined"==typeof n)return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(t.hasOwnProperty(r))return!1;return!0};return o(r(t),r(n))&&o(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))?!Km.isBookmarkNode(t)&&!Km.isBookmarkNode(n):!1}},lz=/^(src|href|style)$/,fz=ea.each,dz=ug,hz=function(e){return/^(TH|TD)$/.test(e.nodeName)},mz=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},gz=function(e,t,n){var r,o;if(r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"],No.isElement(r)){var i=r.childNodes.length-1;!n&&o&&o--,r=r.childNodes[o>i?i:o]}return No.isText(r)&&n&&o>=r.nodeValue.length&&(r=new Xc(r,e.getBody()).next()||r),No.isText(r)&&!n&&0===o&&(r=new Xc(r,e.getBody()).prev()||r),r},pz=function(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o},vz=function(e,t,n,r,o){var i=Zt.fromDom(t),a=Zt.fromDom(e.create(r,o)),u=n?zr(i):Er(i);return Or(a,u),n?(Rr(i,a),Dr(a,i)):(Br(i,a),Mr(a,i)),a.dom()},yz=function(e,t,n){return dz(t,n.inline)?!0:dz(t,n.block)?!0:n.selector?No.isElement(t)&&e.is(t,n.selector):void 0},bz=function(e,t){return t.links&&"A"===e.nodeName},Cz=function(e,t,n,r){return t=tg(t,n,r),!t||"BR"===t.nodeName||e.isBlock(t)},wz=function(e,t,n){var r,o=t.parentNode,i=e.dom,a=yh.getForcedRootBlock(e);n.block&&(a?o===i.getRoot()&&(n.list_block&&dz(t,n.list_block)||fz(ea.grep(t.childNodes),function(t){rg(e,a,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=pz(i,t,a),i.setAttribs(r,e.settings.forced_root_block_attrs)):r=0})):i.isBlock(t)&&!i.isBlock(o)&&(Cz(i,t,!1)||Cz(i,t.firstChild,!0,!0)||t.insertBefore(i.create("br"),t.firstChild),Cz(i,t,!0)||Cz(i,t.lastChild,!1,!0)||t.appendChild(i.create("br")))),n.selector&&n.inline&&!dz(n.inline,t)||i.remove(t,!0)},xz=function(e,t,n,r,o){var i,a=e.dom;if(!yz(a,r,t)&&!bz(r,t))return!1;var u=r;if("all"!==t.remove){fz(t.styles,function(e,r){e=cg(a,ag(e,n),r),"number"==typeof r&&(r=e,o=null),(t.remove_similar||!o||dz(sg(a,o,r),e))&&a.setStyle(u,r,""),i=!0}),i&&""===a.getAttrib(u,"style")&&(u.removeAttribute("style"),u.removeAttribute("data-mce-style")),fz(t.attributes,function(e,r){var i;if(e=ag(e,n),"number"==typeof r&&(r=e,o=null),t.remove_similar||!o||dz(a.getAttrib(o,r),e)){if("class"===r&&(e=a.getAttrib(u,r),e&&(i="",fz(e.split(/\s+/),function(e){/mce\-\w+/.test(e)&&(i+=(i?" ":"")+e)}),i)))return void a.setAttrib(u,r,i);"class"===r&&u.removeAttribute("className"),lz.test(r)&&u.removeAttribute("data-mce-"+r),u.removeAttribute(r)}}),fz(t.classes,function(e){e=ag(e,n),(!o||a.hasClass(o,e))&&a.removeClass(u,e)});for(var c=a.getAttribs(u),s=0;s<c.length;s++){var l=c[s].nodeName;if(0!==l.indexOf("_")&&0!==l.indexOf("data-"))return!1}}return"none"!==t.remove?(wz(e,u,t),!0):void 0},Ez=function(e,t,n,r,o){var i;return fz(fg(e.dom,t.parentNode).reverse(),function(t){var a;i||"_start"===t.id||"_end"===t.id||(a=Xx(e,t,n,r,o),a&&a.split!==!1&&(i=t))}),i},zz=function(e,t,n,r,o,i,a,u){var c,s,l,f,d,h,m=e.dom;if(n){for(h=n.parentNode,c=r.parentNode;c&&c!==h;c=c.parentNode){for(s=m.clone(c,!1),d=0;d<t.length;d++)if(xz(e,t[d],u,s,s)){s=0;break}s&&(l&&s.appendChild(l),f||(f=s),l=s)}!i||a.mixed&&m.isBlock(n)||(r=m.split(n,r)),l&&(o.parentNode.insertBefore(l,o),f.appendChild(o))}return r},kz=function(e,t,n,r,o){var i,a,u=e.formatter.get(t),c=u[0],s=!0,l=e.dom,f=e.selection,d=function(r){var i=Ez(e,r,t,n,o);return zz(e,u,i,r,r,!0,c,n)},h=function(e){return Km.isBookmarkNode(e)&&No.isElement(e)&&("_start"===e.id||"_end"===e.id)},m=function(t){var r,o,i,a,f;if(No.isElement(t)&&l.getContentEditable(t)&&(a=s,s="true"===l.getContentEditable(t),f=!0),r=ea.grep(t.childNodes),s&&!f)for(o=0,i=u.length;i>o&&!xz(e,u[o],n,t,t);o++);if(c.deep&&r.length){for(o=0,i=r.length;i>o;o++)m(r[o]);f&&(s=a)}},g=function(e){var t=l.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return h(n)&&(n=n[e?"firstChild":"lastChild"]),No.isText(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),l.remove(t,!0),n},p=function(t){var n,r,o=t.commonAncestorContainer,i=kg(e,t,u,!0);if(c.split){if(i=Qx(i),n=gz(e,i,!0),r=gz(e,i),n!==r){if(/^(TR|TH|TD)$/.test(n.nodeName)&&n.firstChild&&(n="TR"===n.nodeName?n.firstChild.firstChild||n:n.firstChild||n),o&&/^T(HEAD|BODY|FOOT|R)$/.test(o.nodeName)&&hz(r)&&r.firstChild&&(r=r.firstChild||r),mz(l,n,r)){var a=J.from(n.firstChild).getOr(n);return d(vz(l,a,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void g(!0)}if(mz(l,r,n)){var a=J.from(r.lastChild).getOr(r);return d(vz(l,a,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void g(!1)}n=pz(l,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=pz(l,r,"span",{id:"_end","data-mce-type":"bookmark"});var s=l.createRng();s.setStartAfter(n),s.setEndBefore(r),Rg.walk(l,s,function(e){pt(e,function(e){Km.isBookmarkNode(e)||Km.isBookmarkNode(e.parentNode)||d(e)})}),d(n),d(r),n=g(!0),r=g()}else n=r=d(n);i.startContainer=n.parentNode?n.parentNode:n,i.startOffset=l.nodeIndex(n),i.endContainer=r.parentNode?r.parentNode:r,i.endOffset=l.nodeIndex(r)+1}Rg.walk(l,i,function(t){fz(t,function(t){m(t),No.isElement(t)&&"underline"===e.dom.getStyle(t,"text-decoration")&&t.parentNode&&"underline"===lg(l,t.parentNode)&&xz(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,t)})})};if(r)return void(Jm(r)?(a=l.createRng(),a.setStartBefore(r),a.setEndAfter(r),p(a)):p(r));if("false"!==l.getContentEditable(f.getNode()))f.isCollapsed()&&c.inline&&!l.select("td[data-mce-selected],th[data-mce-selected]").length?GE(e,t,n,o):(i=hd.getPersistentBookmark(e.selection,!0),p(f.getRng()),f.moveToBookmark(i),c.inline&&Yx(e,t,n,f.getStart())&&eg(l,f,f.getRng()),e.nodeChanged());else{r=f.getNode();for(var v=0,y=u.length;y>v&&(!u[v].ceFalseOverride||!xz(e,u[v],n,r,r));v++);}},Nz=ea.each,Sz=function(e){return No.isElement(e)&&!Km.isBookmarkNode(e)&&!vd(e)&&!No.isBogus(e)},Tz=function(e,t){var n;for(n=e;n;n=n[t]){if(No.isText(n)&&0!==n.nodeValue.length)return e;if(No.isElement(n)&&!Km.isBookmarkNode(n))return n}return e},Az=function(e,t,n){var r,o,i=new sz(e);if(t&&n&&(t=Tz(t,"previousSibling"),n=Tz(n,"nextSibling"),i.compare(t,n))){for(r=t.nextSibling;r&&r!==n;)o=r,r=r.nextSibling,t.appendChild(o);return e.remove(n),ea.each(ea.grep(n.childNodes),function(e){t.appendChild(e)}),t}return n},Rz=function(e,t,n){Nz(e.childNodes,function(e){Sz(e)&&(t(e)&&n(e),e.hasChildNodes()&&Rz(e,t,n))})},Bz=function(e,n){return t(function(t,n){return!(!n||!sg(e,n,t))},n)},Dz=function(e,n,r){return t(function(t,n,r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),Mz(e,r)},n,r)},Mz=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},_z=function(e,t){if(1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType){var n=lg(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)}},Pz=function(e,n,r,o){n.styles&&(n.styles.color||n.styles.textDecoration)&&(ea.walk(o,t(_z,e),"childNodes"),_z(e,o))},Oz=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&Rz(r,Bz(e,"fontSize"),Dz(e,"backgroundColor",ag(t.styles.backgroundColor,n)))},Hz=function(e,t,n,r){("sub"===t.inline||"sup"===t.inline)&&(Rz(r,Bz(e,"fontSize"),Dz(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},Lz=function(e,t,n,r){r&&t.merge_siblings!==!1&&(r=Az(e,tg(r),r),r=Az(e,r,tg(r,!0)))},Iz=function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";Nz(e.select(r,n),function(n){Sz(n)&&Nz(t.styles,function(t,r){e.setStyle(n,r,"")})})}},Vz=function(e,t,n,r){Nz(t,function(t){Nz(e.dom.select(t.inline,r),function(r){Sz(r)&&xz(e,t,n,r,t.exact?r:null)}),Iz(e.dom,t,r)})},Fz=function(e,t,n,r,o){Xx(e,o.parentNode,n,r)&&xz(e,t,r,o)||t.merge_with_parents&&e.dom.getParent(o.parentNode,function(i){return Xx(e,i,n,r)?(xz(e,t,r,o),!0):void 0})},Uz=function(t,n,r,o){var i=e.document.createRange();return i.setStart(t,n),i.setEnd(r,o),i},jz=function(e){var t=Mf.fromRangeStart(e),n=Mf.fromRangeEnd(e),r=e.commonAncestorContainer;return zm.fromPosition(!1,r,n).map(function(o){return!Lh(t,n,r)&&Lh(t,o,r)?Uz(t.container(),t.offset(),o.container(),o.offset()):e}).getOr(e)},qz=function(e){return e.collapsed?e:jz(e)},$z={normalize:qz},Wz=ea.each,Kz=function(e){return e&&1===e.nodeType&&!Km.isBookmarkNode(e)&&!vd(e)&&!No.isBogus(e)},Xz=function(e,t,n,r){var o,i,a=e.formatter.get(t),u=a[0],c=!r&&e.selection.isCollapsed(),s=e.dom,l=e.selection,f=function(e,t){if(t=t||u,e){if(t.onformat&&t.onformat(e,t,n,r),Wz(t.styles,function(t,r){s.setStyle(e,r,ag(t,n))}),t.styles){var o=s.getAttrib(e,"style");o&&s.setAttrib(e,"data-mce-style",o)}Wz(t.attributes,function(t,r){s.setAttrib(e,r,ag(t,n))}),Wz(t.classes,function(t){t=ag(t,n),s.hasClass(e,t)||s.addClass(e,t)})}},d=function(e,t){var n=!1;return u.selector?(Wz(e,function(e){return"collapsed"in e&&e.collapsed!==c?void 0:s.is(t,e.selector)&&!vd(t)?(f(t,e),n=!0,!1):void 0}),n):!1},h=function(r,o,i,c){var s,l,h=[],m=!0;s=u.inline||u.block,l=r.create(s),f(l),Rg.walk(r,o,function(o){var i,g=function(o){var p=!1,v=m,y=o.nodeName.toLowerCase(),b=o.parentNode.nodeName.toLowerCase();if(No.isElement(o)&&r.getContentEditable(o)&&(v=m,m="true"===r.getContentEditable(o),p=!0),ug(y,"br"))return i=0,void(u.block&&r.remove(o));
if(u.wrapper&&Xx(e,o,t,n))return void(i=0);if(m&&!p&&u.block&&!u.wrapper&&ng(e,y)&&rg(e,b,s))return o=r.rename(o,s),f(o),h.push(o),void(i=0);if(u.selector){var C=d(a,o);if(!u.inline||C)return void(i=0)}!m||p||!rg(e,s,y)||!rg(e,b,s)||!c&&3===o.nodeType&&1===o.nodeValue.length&&65279===o.nodeValue.charCodeAt(0)||vd(o)||u.inline&&r.isBlock(o)?(i=0,Wz(ea.grep(o.childNodes),g),p&&(m=v),i=0):(i||(i=r.clone(l,!1),o.parentNode.insertBefore(i,o),h.push(i)),i.appendChild(o))};Wz(o,g)}),u.links===!0&&Wz(h,function(e){var t=function(e){"A"===e.nodeName&&f(e,u),Wz(ea.grep(e.childNodes),t)};t(e)}),Wz(h,function(o){var i,c=function(e){var t=0;return Wz(e.childNodes,function(e){ig(e)||Km.isBookmarkNode(e)||t++}),t},s=function(e){var t=!1;return Wz(e.childNodes,function(e){return Kz(e)?(t=e,!1):void 0}),t},l=function(e){var t,n;return t=s(e),t&&!Km.isBookmarkNode(t)&&Wx(r,t,u)&&(n=r.clone(t,!1),f(n),r.replace(n,e,!0),r.remove(t,!0)),n||e};return i=c(o),(h.length>1||!r.isBlock(o))&&0===i?void r.remove(o,!0):void((u.inline||u.wrapper)&&(u.exact||1!==i||(o=l(o)),Vz(e,a,n,o),Fz(e,u,t,n,o),Oz(r,u,n,o),Pz(r,u,n,o),Hz(r,u,n,o),Lz(r,u,n,o)))})};if("false"!==s.getContentEditable(l.getNode())){if(u){if(r)Jm(r)?d(a,r)||(i=s.createRng(),i.setStartBefore(r),i.setEndAfter(r),h(s,kg(e,i,a),null,!0)):h(s,r,null,!0);else if(c&&u.inline&&!s.select("td[data-mce-selected],th[data-mce-selected]").length)YE(e,t,n);else{var m=e.selection.getNode();e.settings.forced_root_block||!a[0].defaultBlock||s.getParent(m,s.isBlock)||Xz(e,a[0].defaultBlock),e.selection.setRng($z.normalize(e.selection.getRng())),o=hd.getPersistentBookmark(e.selection,!0),h(s,kg(e,l.getRng(),a)),l.moveToBookmark(o),eg(s,l,l.getRng()),e.nodeChanged()}az(t,e)}}else{r=l.getNode();for(var g=0,p=a.length;p>g;g++)if(a[g].ceFalseOverride&&s.is(r,a[g].selector))return void f(r,a[g])}},Yz=function(e,t){var n=Jt({});e.set({}),t.on("NodeChange",function(r){Gz(t,r.element,n,e.get())})},Gz=function(e,t,n,r){var o=_t(n.get()),i={},a={},u=bt(fg(e.dom,t),function(e){return 1===e.nodeType&&!e.getAttribute("data-mce-bogus")});Ot(r,function(t,n){ea.each(u,function(r){return e.formatter.matchNode(r,n,{},t.similar)?(-1===o.indexOf(n)&&(pt(t.callbacks,function(e){e(!0,{node:r,format:n,parents:u})}),i[n]=t.callbacks),a[n]=t.callbacks,!1):qx(e,r,n)?!1:void 0})});var c=Zz(n.get(),a,t,u);n.set($t($t({},i),c))},Zz=function(e,t,n,r){return Ft(e,function(e,o){return qt(t,o)?!0:(pt(e,function(e){e(!1,{node:n,format:o,parents:r})}),!1)}).t},Jz=function(e,t,n,r){var o=e.get();pt(t.split(","),function(e){o[e]||(o[e]={similar:r,callbacks:[]}),o[e].callbacks.push(n)}),e.set(o)},Qz=function(e,t,n){var r=e.get();pt(t.split(","),function(e){r[e].callbacks=bt(r[e].callbacks,function(e){return e!==n}),0===r[e].callbacks.length&&delete r[e]}),e.set(r)},ek=function(e,t,n,r,o){return null===t.get()&&Yz(t,e),Jz(t,n,r,o),{unbind:function(){return Qz(t,n,r)}}},tk=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",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",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",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"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all"}],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},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(){return!0},onformat:function(t,n,r){ea.each(r,function(n,r){e.setAttrib(t,r,n)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",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 ea.each("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),function(e){t[e]={block:e,remove:"all"}}),t},nk={get:tk},rk=ea.each,ok=rs.DOM,ik=function(e,t){var n,r,o,i=t&&t.schema||a({}),u=function(e,t){t.classes.length&&ok.addClass(e,t.classes.join(" ")),ok.setAttribs(e,t.attrs)},c=function(e){var t;return r="string"==typeof e?{name:e,classes:[],attrs:{}}:e,t=ok.create(r.name),u(t,r),t},s=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!==ea.inArray(o,t)?t:o[0]:!1},l=function(e,t,n){var r,o,i,a=t.length>0&&t[0],u=a&&a.name;if(i=s(e,u))u===i?(o=t[0],t=t.slice(1)):o=i;else if(a)o=t[0],t=t.slice(1);else if(!n)return e;return o&&(r=c(o),r.appendChild(e)),n&&(r||(r=ok.create("div"),r.appendChild(e)),ea.each(n,function(t){var n=c(t);r.insertBefore(n,e)})),l(r,t,o&&o.siblings)};return e&&e.length?(r=e[0],n=c(r),o=ok.create("div"),o.appendChild(l(n,e.slice(1),r.siblings)),o):""},ak=function(e){var t,n={classes:[],attrs:{}};return e=n.selector=ea.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!==ea.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r)}if("["===o){var a=i.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""})),n.name=t||"div",n},uk=function(e){return e&&"string"==typeof e?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),ea.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),function(e){var t=ea.map(e.split(/(?:~\+|~|\+)/),ak),n=t.pop();return t.length&&(n.siblings=t),n}).reverse()):[]},ck=function(e,t){var n,r,o,i,a,u,c="";if(u=e.settings.preview_styles,u===!1)return"";"string"!=typeof u&&(u="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow");var s=function(e){return e.replace(/%(\w+)/g,"")};if("string"==typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}return"preview"in t&&(u=t.preview,u===!1)?"":(n=t.block||t.inline||"span",i=uk(t.selector),i.length?(i[0].name||(i[0].name=n),n=t.selector,r=ik(i,e)):r=ik([n],e),o=ok.select(n,r)[0]||r.firstChild,rk(t.styles,function(e,t){e=s(e),e&&ok.setStyle(o,t,e)}),rk(t.attributes,function(e,t){e=s(e),e&&ok.setAttrib(o,t,e)}),rk(t.classes,function(e){e=s(e),ok.hasClass(o,e)||ok.addClass(o,e)}),e.fire("PreviewFormats"),ok.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),a=ok.getStyle(e.getBody(),"fontSize",!0),a=/px$/.test(a)?parseInt(a,10):0,rk(u.split(" "),function(t){var n=ok.getStyle(o,t,!0);if(!("background-color"===t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)&&(n=ok.getStyle(e.getBody(),t,!0),"#ffffff"===ok.toHex(n).toLowerCase())||"color"===t&&"#000000"===ok.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===a)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*a+"px"}"border"===t&&n&&(c+="padding:0 2px;"),c+=t+":"+n+";"}}),e.fire("AfterPreviewFormats"),ok.remove(r),c)},sk=function(e,t,n,r,o){var i=t.get(n);!Yx(e,n,r,o)||"toggle"in i[0]&&!i[0].toggle?Xz(e,n,r,o):kz(e,n,r,o)},lk=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;6>=t;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"])},fk={setup:lk},dk=function(e){var n=L(e),r=Jt(null);return fk.setup(e),JE(e),{get:n.get,has:n.has,register:n.register,unregister:n.unregister,apply:t(Xz,e),remove:t(kz,e),toggle:t(sk,e,n),match:t(Yx,e),matchAll:t(Gx,e),matchNode:t(Xx,e),canApply:t(Zx,e),formatChanged:t(ek,e,r),getCssText:t(ck,e)}},hk=0,mk=1,gk=2,pk=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,u){var s=c(n,r,o,i);if(null===s||s.start===r&&s.diag===r-i||s.end===n&&s.diag===n-o)for(var l=n,f=o;r>l||i>f;)r>l&&i>f&&e[l]===t[f]?(u.push([hk,e[l]]),++l,++f):r-n>i-o?(u.push([gk,e[l]]),++l):(u.push([mk,t[f]]),++f);else{a(n,s.start,o,s.start-s.diag,u);for(var d=s.start;d<s.end;++d)u.push([hk,e[d]]);a(s.end,r,s.end-s.diag,i,u)}},u=function(n,r,o,a){for(var u=n;a>u-r&&o>u&&e[u]===t[u-r];)++u;return i(n,u,r)},c=function(n,i,a,c){var s=i-n,l=c-a;if(0===s||0===l)return null;var f=s-l,d=l+s,h=(d%2===0?d:d+1)/2;r[1+h]=n,o[1+h]=i+1;var m,g,p,v,y;for(m=0;h>=m;++m){for(g=-m;m>=g;g+=2){for(p=g+h,r[p]=g===-m||g!==m&&r[p-1]<r[p+1]?r[p+1]:r[p-1]+1,v=r[p],y=v-n+a-g;i>v&&c>y&&e[v]===t[y];)r[p]=++v,++y;if(f%2!==0&&g>=f-m&&f+m>=g&&o[p-f]<=r[p])return u(o[p-f],g+n-a,i,c)}for(g=f-m;f+m>=g;g+=2){for(p=g+h-f,o[p]=g===f-m||g!==f+m&&o[p+1]<=o[p-1]?o[p+1]-1:o[p-1],v=o[p]-1,y=v-n+a-g;v>=n&&y>=a&&e[v]===t[y];)o[p]=v--,y--;if(f%2===0&&g>=-m&&m>=g&&o[p]<=r[p+f])return u(o[p],g+n-a,i,c)}}},s=[];return a(0,e.length,0,t.length,s),s},vk={KEEP:hk,DELETE:gk,INSERT:mk,diff:pk},yk=function(e){return No.isElement(e)?e.outerHTML:No.isText(e)?au.encodeRaw(e.data,!1):No.isComment(e)?"<!--"+e.data+"-->":""},bk=function(t){var n,r,o;for(o=e.document.createElement("div"),n=e.document.createDocumentFragment(),t&&(o.innerHTML=t);r=o.firstChild;)n.appendChild(r);return n},Ck=function(e,t,n){var r=bk(t);if(e.hasChildNodes()&&n<e.childNodes.length){var o=e.childNodes[n];o.parentNode.insertBefore(r,o)}else e.appendChild(r)},wk=function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}},xk=function(e,t){var n=0;pt(e,function(e){e[0]===vk.KEEP?n++:e[0]===vk.INSERT?(Ck(t,e[1],n),n++):e[0]===vk.DELETE&&wk(t,n)})},Ek=function(e){return bt(gt(Mt(e.childNodes),yk),function(e){return e.length>0})},zk=function(e,t){var n=gt(Mt(t.childNodes),yk);return xk(vk.diff(n,e),t),t},kk={read:Ek,write:zk},Nk=Jt(J.none()),Sk=function(){return Nk.get().getOrThunk(function(){var t=e.document.implementation.createHTMLDocument("undo");return Nk.set(J.some(t)),t})},Tk=function(e){return-1!==e.indexOf("</iframe>")},Ak=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},Rk=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},Bk=function(e){var t,n,r;return t=kk.read(e.getBody()),r=kt(t,function(t){var n=rp.trimInternal(e.serializer,t);return n.length>0?[n]:[]}),n=r.join(""),Tk(n)?Ak(r):Rk(n)},Dk=function(e,t,n){"fragmented"===t.type?kk.write(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw"}),e.selection.moveToBookmark(n?t.beforeBookmark:t.bookmark)},Mk=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},_k=function(e){var t=Zt.fromTag("body",Sk());return ul(t,Mk(e)),pt(Vs(t,"*[data-mce-bogus]"),Ir),al(t)},Pk=function(e,t){return Mk(e)===Mk(t)},Ok=function(e,t){return _k(e)===_k(t)},Hk=function(e,t){return e&&t?Pk(e,t)?!0:Ok(e,t):!1},Lk={createFragmentedLevel:Ak,createCompleteLevel:Rk,createFromEditor:Bk,applyToEditor:Dk,isEq:Hk},Ik=function(e){return 0===e.get()},Vk=function(e,t,n){Ik(n)&&(e.typing=t)},Fk=function(e,t){e.typing&&(Vk(e,!1,t),e.add())},Uk=function(e){e.typing&&(e.typing=!1,e.add())},jk=function(e,t,n){Ik(t)&&n.set(J.some(hd.getUndoBookmark(e.selection)))},qk=function(e,t,n,r,o,i,a){var u=e.settings,c=Lk.createFromEditor(e);if(i=i||{},i=ea.extend(i,c),Ik(r)===!1||e.removed)return null;var s=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:i,lastLevel:s,originalEvent:a}).isDefaultPrevented())return null;if(s&&Lk.isEq(s,i))return null;if(t.data[n.get()]&&o.get().each(function(e){t.data[n.get()].beforeBookmark=e}),u.custom_undo_redo_levels&&t.data.length>u.custom_undo_redo_levels){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=hd.getUndoBookmark(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:s,originalEvent:a};return e.fire("AddUndo",f),n.get()>0&&(e.setDirty(!0),e.fire("change",f)),i},$k=function(e,t,n){t.data=[],n.set(0),t.typing=!1,e.fire("ClearUndos")},Wk=function(e,t,n,r,o){if(t.transact(r)){var i=t.data[n.get()].bookmark,a=t.data[n.get()-1];Lk.applyToEditor(e,a,!0),t.transact(o)&&(t.data[n.get()-1].beforeBookmark=i)}},Kk=function(e,t,n){var r;return t.get()<n.length-1&&(t.set(t.get()+1),r=n[t.get()],Lk.applyToEditor(e,r,!1),e.setDirty(!0),e.fire("Redo",{level:r})),r},Xk=function(e,t,n,r){var o;return t.typing&&(t.add(),t.typing=!1,Vk(t,!1,n)),r.get()>0&&(r.set(r.get()-1),o=t.data[r.get()],Lk.applyToEditor(e,o,!0),e.setDirty(!0),e.fire("Undo",{level:o})),o},Yk=function(e){e.clear(),e.add()},Gk=function(e,t,n){return n.get()>0||t.typing&&t.data[0]&&!Lk.isEq(Lk.createFromEditor(e),t.data[0])},Zk=function(e,t){return t.get()<e.data.length-1&&!e.typing},Jk=function(e,t,n){return Fk(e,t),e.beforeChange(),e.ignore(n),e.add()},Qk=function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},eN=function(e,t,n){var r=Jt(!1),o=function(e){Vk(t,!1,n),t.add({},e)};e.on("init",function(){t.add()}),e.on("BeforeExecCommand",function(e){var r=e.command;"Undo"!==r&&"Redo"!==r&&"mceRepaint"!==r&&(Fk(t,n),t.beforeChange())}),e.on("ExecCommand",function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==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&&36>=i||i>=37&&40>=i||45===i||n.ctrlKey)&&(o(),e.nodeChanged()),(46===i||8===i)&&e.nodeChanged(),r.get()&&t.typing&&Lk.isEq(Lk.createFromEditor(e),t.data[0])===!1&&(e.isDirty()===!1&&(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&&36>=i||i>=37&&40>=i||45===i)return void(t.typing&&o(e));var a=e.ctrlKey&&!e.altKey||e.metaKey;!(16>i||i>20)||224===i||91===i||t.typing||a||(t.beforeChange(),Vk(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};e.on("input",function(e){e.inputType&&(i(e)||a(e))&&o(e)}),e.on("AddUndo Undo Redo ClearUndos",function(t){t.isDefaultPrevented()||e.nodeChanged()})},tN=function(e){e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},nN=function(e){var t=Jt(J.none()),n=Jt(0),r=Jt(0),o={data:[],typing:!1,beforeChange:function(){jk(e,n,t)},add:function(i,a){return qk(e,o,r,n,t,i,a)},undo:function(){return Xk(e,o,n,r)},redo:function(){return Kk(e,r,o.data)},clear:function(){$k(e,o,r)},reset:function(){Yk(o)},hasUndo:function(){return Gk(e,o,r)},hasRedo:function(){return Zk(o,r)},transact:function(e){return Jk(o,n,e)},ignore:function(e){Qk(n,e)},extra:function(t,n){Wk(e,o,r,t,n)}};return eN(e,o,n),tN(e),o},rN=[9,27,vb.HOME,vb.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,vb.DOWN,vb.UP,vb.LEFT,vb.RIGHT].concat(Ri.browser.isFirefox()?[224]:[]),oN="data-mce-placeholder",iN=function(e){return"keydown"===e.type||"keyup"===e.type},aN=function(e){var t=e.keyCode;return t===vb.BACKSPACE||t===vb.DELETE},uN=function(e){if(iN(e)){var t=e.keyCode;return!aN(e)&&(vb.metaKeyPressed(e)||e.altKey||t>=112&&123>=t||ht(rN,t))}return!1},cN=function(e){return iN(e)&&!(aN(e)||"keyup"===e.type&&229===e.keyCode)},sN=function(e,t,n){if(gE.isEmpty(Zt.fromDom(t),!1)){var r=""===n,o=t.firstElementChild;return o?e.getStyle(t.firstElementChild,"padding-left")||e.getStyle(t.firstElementChild,"padding-right")?!1:r?!e.isBlock(o):n===o.nodeName.toLowerCase():!0}return!1},lN=function(e){var t=e.dom,n=yh.getForcedRootBlock(e),r=yh.getPlaceholder(e),o=function(i,a){if(!uN(i)){var u=e.getBody(),c=cN(i)?!1:sN(t,u,n),s=""!==t.getAttrib(u,oN);(s!==c||a)&&(t.setAttrib(u,oN,c?r:null),t.setAttrib(u,"aria-placeholder",c?r:null),Yv(e,c),e.on(c?"keydown":"keyup",o),e.off(c?"keyup":"keydown",o))}};r&&e.on("init",function(n){o(n,!0),e.on("change SetContent ExecCommand",o),e.on("remove",function(){var n=e.getBody();t.setAttrib(n,oN,null),t.setAttrib(n,"aria-placeholder",null)})})},fN=5,dN=400,hN=function(e){return void 0===e.touches||1!==e.touches.length?J.none():J.some(e.touches[0])},mN=function(e,t){var n=Math.abs(e.clientX-t.x()),r=Math.abs(e.clientY-t.y());return n>fN||r>fN},gN=function(e){var t=Jt(J.none()),n=Jt(!1),r=Ss(function(t){e.fire("longpress",$t($t({},t),{type:"longpress"})),n.set(!0)},dN);e.on("touchstart",function(e){hN(e).each(function(o){r.cancel();var i={x:U(o.clientX),y:U(o.clientY),target:U(e.target)};r.throttle(e),n.set(!1),t.set(J.some(i))})},!0),e.on("touchmove",function(o){r.cancel(),hN(o).each(function(r){t.get().each(function(o){mN(r,o)&&(t.set(J.none()),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",$t($t({},o),{type:"tap"}))})},!0)},pN={setup:gN},vN=function(e,t){return e.hasOwnProperty(t.nodeName)},yN=function(e,t){return No.isText(t)?!0:No.isElement(t)?!vN(e,t)&&!Km.isBookmarkNode(t):!1},bN=function(e,t,n){return mt(dC.parents(Zt.fromDom(n),Zt.fromDom(t)),function(t){return vN(e,t.dom())})},CN=function(e,t){if(No.isText(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||vN(e,t.nextSibling)))return!0}return!1},wN=function(e){var t,n,r,o,i,a,u,c,s,l,f=e.dom,d=e.selection,h=e.schema,m=h.getBlockElements(),g=d.getStart(),p=e.getBody(),v=yh.getForcedRootBlock(e);if(g&&No.isElement(g)&&v&&(l=p.nodeName.toLowerCase(),h.isValidChild(l,v.toLowerCase())&&!bN(m,p,g))){for(t=d.getRng(),n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,s=Bv.hasFocus(e),g=p.firstChild;g;)if(yN(m,g)){if(CN(m,g)){u=g,g=g.nextSibling,f.remove(u);continue}a||(a=f.create(v,yh.getForcedRootBlockAttrs(e)),g.parentNode.insertBefore(a,g),c=!0),u=g,g=g.nextSibling,a.appendChild(u)}else a=null,g=g.nextSibling;c&&s&&(t.setStart(n,r),t.setEnd(o,i),d.setRng(t),e.nodeChanged())}},xN=function(e){yh.getForcedRootBlock(e)&&e.on("NodeChange",t(wN,e))},EN={setup:xN},zN=No.isText,kN=function(e){return zN(e)&&e.data[0]===ml.ZWSP},NN=function(e){return zN(e)&&e.data[e.data.length-1]===ml.ZWSP},SN=function(e){return e.ownerDocument.createTextNode(ml.ZWSP)},TN=function(e){if(zN(e.previousSibling))return NN(e.previousSibling)?e.previousSibling:(e.previousSibling.appendData(ml.ZWSP),e.previousSibling);if(zN(e))return kN(e)?e:(e.insertData(0,ml.ZWSP),e);var t=SN(e);return e.parentNode.insertBefore(t,e),t},AN=function(e){if(zN(e.nextSibling))return kN(e.nextSibling)?e.nextSibling:(e.nextSibling.insertData(0,ml.ZWSP),e.nextSibling);if(zN(e))return NN(e)?e:(e.appendData(ml.ZWSP),e);var t=SN(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t},RN=function(e,t){return e?TN(t):AN(t)},BN=t(RN,!0),DN=t(RN,!1),MN=function(e,t){return No.isText(e.container())?RN(t,e.container()):RN(t,e.getNode())},_N=function(e,t){var n=t.get();return n&&e.container()===n&&yl(n)},PN=function(e,t){return t.fold(function(t){Dd.remove(e.get());var n=BN(t);return e.set(n),J.some(Mf(n,n.length-1))},function(t){return zm.firstPositionIn(t).map(function(t){if(_N(t,e))return Mf(e.get(),1);Dd.remove(e.get());var n=MN(t,!0);return e.set(n),Mf(n,1)})},function(t){return zm.lastPositionIn(t).map(function(t){if(_N(t,e))return Mf(e.get(),e.get().length-1);Dd.remove(e.get());var n=MN(t,!1);return e.set(n),Mf(n,n.length-1)})},function(t){Dd.remove(e.get());var n=DN(t);return e.set(n),J.some(Mf(n,1))})},ON={renderCaret:PN},HN=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,LN=function(e){return HN.test(e)},IN=function(e,t){return ur(Zt.fromDom(t),yh.getInlineBoundarySelector(e))},VN=function(e){return"rtl"===rs.DOM.getStyle(e,"direction",!0)||LN(e.textContent)},FN=function(e,t,n){return bt(rs.DOM.getParents(n.container(),"*",t),e)},UN=function(e,t,n){var r=FN(e,t,n);return J.from(r[r.length-1])},jN=function(e,t,n){var r=Hh(t,e),o=Hh(n,e);return r&&r===o},qN=function(e){return xl(e)||El(e)},$N=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?yl(n)?No.isText(n.nextSibling)?Mf(n.nextSibling,0):Mf.after(n):xl(t)?Mf(n,r+1):t:yl(n)?No.isText(n.previousSibling)?Mf(n.previousSibling,n.previousSibling.data.length):Mf.before(n):El(t)?Mf(n,r-1):t},WN=t($N,!0),KN=t($N,!1),XN={isInlineTarget:IN,findRootInline:UN,isRtl:VN,isAtZwsp:qN,normalizePosition:$N,normalizeForwards:WN,normalizeBackwards:KN,hasSameParentBlock:jN},YN=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return J.none()},GN={evaluateUntil:YN},ZN=yp.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),JN=function(e,t){var n=Hh(t,e);return n?n:e},QN=function(e,n,r){var o=XN.normalizeForwards(r),i=JN(n,o.container());return XN.findRootInline(e,i,o).fold(function(){return zm.nextPosition(i,o).bind(t(XN.findRootInline,e,i)).map(function(e){return ZN.before(e)})},J.none)},eS=function(e,t){return null===yd(e,t)},tS=function(e,n,r){return XN.findRootInline(e,n,r).filter(t(eS,n))},nS=function(e,t,n){var r=XN.normalizeBackwards(n);return tS(e,t,r).bind(function(e){var t=zm.prevPosition(e,r);return t.isNone()?J.some(ZN.start(e)):J.none()})},rS=function(e,t,n){var r=XN.normalizeForwards(n);return tS(e,t,r).bind(function(e){var t=zm.nextPosition(e,r);return t.isNone()?J.some(ZN.end(e)):J.none()})},oS=function(e,n,r){var o=XN.normalizeBackwards(r),i=JN(n,o.container());return XN.findRootInline(e,i,o).fold(function(){return zm.prevPosition(i,o).bind(t(XN.findRootInline,e,i)).map(function(e){return ZN.after(e)})},J.none)},iS=function(e){return XN.isRtl(uS(e))===!1},aS=function(e,t,n){var r=GN.evaluateUntil([QN,nS,rS,oS],[e,t,n]);return r.filter(iS)},uS=function(e){return e.fold(j,j,j,j)},cS=function(e){return e.fold(U("before"),U("start"),U("end"),U("after"))},sS=function(e){return e.fold(ZN.before,ZN.before,ZN.after,ZN.after)},lS=function(e){return e.fold(ZN.start,ZN.start,ZN.end,ZN.end)},fS=function(e,t){return cS(e)===cS(t)&&uS(e)===uS(t)},dS=function(e,t,n,r,o,i){return of(XN.findRootInline(t,n,r),XN.findRootInline(t,n,o),function(t,r){return t!==r&&XN.hasSameParentBlock(n,t,r)?ZN.after(e?t:r):i}).getOr(i)},hS=function(e,t){return e.fold(U(!0),function(e){return!fS(e,t)})},mS=function(e,n,r,o,i){var a=XN.normalizePosition(e,i),u=zm.fromPosition(e,r,a).map(t(XN.normalizePosition,e)),c=u.fold(function(){return o.map(sS)},function(i){return aS(n,r,i).map(t(dS,e,n,r,a,i)).filter(t(hS,o))});return c.filter(iS)},gS=function(e,t){return e?t.fold(F(J.some,ZN.start),J.none,F(J.some,ZN.after),J.none):t.fold(J.none,F(J.some,ZN.before),J.none,F(J.some,ZN.end))},pS=function(e,n,r,o){var i=XN.normalizePosition(e,o),a=aS(n,r,i);return aS(n,r,i).bind(t(gS,e)).orThunk(function(){return mS(e,n,r,a,o)})},vS={readLocation:aS,findLocation:pS,prevLocation:t(pS,!1),nextLocation:t(pS,!0),getElement:uS,outside:sS,inside:lS},yS=function(e){return at(e.selection.getSel().modify)},bS=function(e,t,n){var r=e?1:-1;return t.setRng(Mf(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},CS=function(e,t){var n=t.selection.getRng(),r=e?Mf.fromRangeEnd(n):Mf.fromRangeStart(n);return yS(t)?e&&xl(r)?bS(!0,t.selection,r):!e&&El(r)?bS(!1,t.selection,r):!1:!1},wS={hasSelectionModifyApi:yS,moveByWord:CS},xS=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},ES=function(e){return e.settings.inline_boundaries!==!1},zS=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},kS=function(e,t,n){return ON.renderCaret(t,n).map(function(t){return xS(e,t),n})},NS=function(e,n,r){var o=e.getBody(),i=Mf.fromRangeStart(e.selection.getRng()),a=t(XN.isInlineTarget,e),u=vS.findLocation(r,a,o,i);return u.bind(function(t){return kS(e,n,t)})},SS=function(e,n,r){var o=bt(n.select('*[data-mce-selected="inline-boundary"]'),e),i=bt(r,e);pt(Tt(o,i),t(zS,!1)),pt(Tt(i,o),t(zS,!0))},TS=function(e,t){if(e.selection.isCollapsed()&&e.composing!==!0&&t.get()){var n=Mf.fromRangeStart(e.selection.getRng());Mf.isTextPosition(n)&&XN.isAtZwsp(n)===!1&&(xS(e,Dd.removeAndReposition(t.get(),n)),t.set(null))}},AS=function(e,t,n,r){if(t.selection.isCollapsed()){var o=bt(r,e);pt(o,function(){var r=Mf.fromRangeStart(t.selection.getRng());vS.readLocation(e,t.getBody(),r).bind(function(e){return kS(t,n,e)})})}},RS=function(e,t,n){return function(){return ES(e)?NS(e,t,n).isSome():!1}},BS=function(e,t){return function(){return ES(t)?wS.moveByWord(e,t):!1}},DS=function(e){var n=Jt(null),r=t(XN.isInlineTarget,e);return e.on("NodeChange",function(t){!ES(e)||Ri.browser.isIE()&&t.initial||(SS(r,e.dom,t.parents),TS(e,n),AS(r,e,n,t.parents))}),n},MS=t(BS,!0),_S=t(BS,!1),PS={move:RS,moveNextWord:MS,movePrevWord:_S,setupSelectedState:DS,setCaretPosition:xS},OS=function(e){var t=function(t){return gt(t,function(t){return t=Kl(t),t.node=e,t})};if(No.isElement(e))return t(e.getClientRects());if(No.isText(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}},HS=function(e){return wt(e,function(e,t){return e.concat(OS(t))},[])};!function(e){e[e.Up=-1]="Up",e[e.Down=1]="Down"}(uz||(uz={}));var LS,IS=function(e,t,n,r){for(;r=Oh(r,e,$l,t);)if(n(r))return},VS=function(e,t,n,r,o,i){var a,u,c=0,s=[],l=function(r){var i,a,l;for(l=HS([r]),-1===e&&(l=l.reverse()),i=0;i<l.length;i++)if(a=l[i],!n(a,u)){if(s.length>0&&t(a,Fi.last(s))&&c++,a.line=c,o(a))return!0;s.push(a)}};return(u=Fi.last(i.getClientRects()))?(a=i.getNode(),l(a),IS(e,r,l,a),s):s},FS=function(e,t){return t.line>e},US=function(e,t){return t.line===e},jS=t(VS,uz.Up,Zl,Jl),qS=t(VS,uz.Down,Jl,Zl),$S=function(e,t,n,r){var o,i,a,u,c,s,l=lm(t),f=[],d=0,h=function(t){return Fi.last(1===e?t.getClientRects():t.getClientRects())};1===e?(o=l.next,i=Jl,a=Zl,u=Mf.after(r)):(o=l.prev,i=Zl,a=Jl,u=Mf.before(r)),s=h(u);do if(u.isVisible()&&(c=h(u),!a(c,s))){if(f.length>0&&i(c,Fi.last(f))&&d++,c=Kl(c),c.position=u,c.line=d,n(c))return f;f.push(c)}while(u=o(u));return f},WS=function(e){return function(t){return FS(e,t)}},KS=function(e){return function(t){return US(e,t)}},XS=No.isContentEditableFalse,YS=Oh,GS=function(e,t){return Math.abs(e.left-t)},ZS=function(e,t){return Math.abs(e.right-t)},JS=function(e,t){return e>=t.left&&e<=t.right},QS=function(e,t){return Fi.reduce(e,function(e,n){var r,o;return r=Math.min(GS(e,t),ZS(e,t)),o=Math.min(GS(n,t),ZS(n,t)),JS(t,n)?n:JS(t,e)?e:o===r&&XS(n.node)?n:r>o?n:e})},eT=function(e,t,n,r){for(;r=YS(r,e,$l,t);)if(n(r))return},tT=function(e,n){var r=[],o=function(e,t){var o;return o=bt(HS([t]),function(t){return!e(t,n)}),r=r.concat(o),0===o.length};return r.push(n),eT(uz.Up,e,t(o,Zl),n.node),eT(uz.Down,e,t(o,Jl),n.node),r},nT=function(e){return bt(Mt(e.getElementsByTagName("*")),Nh)},rT=function(e,t){return{node:e.node,before:GS(e,t)<ZS(e,t)}},oT=function(e,t,n){var r,o=HS(nT(e)),i=bt(o,function(e){return n>=e.top&&n<=e.bottom});return r=QS(i,t),r&&(r=QS(tT(e,r),t),r&&Nh(r.node))?rT(r,t):null},iT=No.isContentEditableTrue,aT=No.isContentEditableFalse,uT=function(e,t,n,r,o){return t._selectionOverrides.showCaret(e,n,r,o)},cT=function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t},sT=function(e,t){var n=e.fire("BeforeObjectSelected",{target:t});return n.isDefaultPrevented()?null:cT(t)},lT=function(e,t,n){var r=$h(1,e.getBody(),t),o=Mf.fromRangeStart(r),i=o.getNode();if(aT(i))return uT(1,e,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(aT(a))return uT(1,e,a,!1,!1);var u=e.dom.getParent(o.getNode(),function(e){return aT(e)||iT(e)});return aT(u)?uT(1,e,u,!1,n):null},fT=function(e,t,n){if(!t||!t.collapsed)return t;var r=lT(e,t,n);return r?r:t},dT=function(e,t,n){return J.from(n.container()).filter(No.isText).exists(function(r){var o=e?0:-1;return t(r.data.charAt(n.offset()+o))})},hT=t(dT,!0,Gm),mT=t(dT,!1,Gm),gT=function(e){var t=e.container();return No.isText(t)&&0===t.data.length},pT=function(e,t){return function(n){return J.from(Ih(e?0:-1,n)).filter(t).isSome()}},vT=function(e){return"IMG"===e.nodeName&&"block"===Po(Zt.fromDom(e),"display")},yT=function(e){return No.isContentEditableFalse(e)&&!No.isBogusAll(e)},bT=pT(!0,vT),CT=pT(!1,vT),wT=pT(!0,No.isTable),xT=pT(!1,No.isTable),ET=pT(!0,yT),zT=pT(!1,yT);!function(e){e[e.Br=0]="Br",e[e.Block=1]="Block",e[e.Wrap=2]="Wrap",e[e.Eol=3]="Eol"}(LS||(LS={}));var kT,NT,ST=function(e,t){return e===Df.Backwards?St(t):t},TT=function(e,t,n){return e===Df.Forwards?t.next(n):t.prev(n)},AT=function(e,t,n,r){return No.isBr(r.getNode(t===Df.Forwards))?LS.Br:Lh(n,r)===!1?LS.Block:LS.Wrap},RT=function(e,t,n,r){for(var o,i=lm(n),a=r,u=[];a&&(o=TT(t,i,a));){if(No.isBr(o.getNode(!1)))return t===Df.Forwards?{positions:ST(t,u).concat([o]),breakType:LS.Br,breakAt:J.some(o)}:{positions:ST(t,u),breakType:LS.Br,breakAt:J.some(o)};if(o.isVisible()){if(e(a,o)){var c=AT(n,t,a,o);return{positions:ST(t,u),breakType:c,breakAt:J.some(o)}}u.push(o),a=o}else a=o}return{positions:ST(t,u),breakType:LS.Eol,breakAt:J.none()}},BT=function(e,t,n,r){return t(n,r).breakAt.map(function(r){var o=t(n,r).positions;return e===Df.Backwards?o.concat(r):[r].concat(o)}).getOr([])},DT=function(e,t){return wt(e,function(e,n){return e.fold(function(){return J.some(n)},function(r){return of(Bt(r.getClientRects()),Bt(n.getClientRects()),function(e,o){var i=Math.abs(t-e.left),a=Math.abs(t-o.left);return i>=a?n:r}).or(e)})},J.none())},MT=function(e,t){return Bt(t.getClientRects()).bind(function(t){return DT(e,t.left)})},_T=t(RT,N.isAbove,-1),PT=t(RT,N.isBelow,1),OT=function(e,t){return _T(e,t).breakAt.isNone()},HT=function(e,t){return PT(e,t).breakAt.isNone()},LT=t(BT,-1,_T),IT=t(BT,1,PT),VT=function(e){return zm.firstPositionIn(e).map(function(t){return[t].concat(PT(e,t).positions)
}).getOr([])},FT=function(e){return zm.lastPositionIn(e).map(function(t){return _T(e,t).positions.concat(t)}).getOr([])},UT=No.isContentEditableFalse,jT=ef,qT=function(e,t,n,r){var o=e===Df.Forwards,i=o?ET:zT;if(!r.collapsed){var a=jT(r);if(UT(a))return uT(e,t,a,e===Df.Backwards,!0)}var u=Rl(r),c=Kh(e,t.getBody(),r);if(i(c))return sT(t,c.getNode(!o));var s=XN.normalizePosition(o,n(c));if(!s)return u?r:null;if(i(s))return uT(e,t,s.getNode(!o),o,!0);var l=n(s);return l&&i(l)&&Zh(s,l)?uT(e,t,l.getNode(!o),o,!0):u?fT(t,s.toRange(),!0):null},$T=function(e,t,n,r){var o,i,a,u,c,s,l,f,d;if(d=jT(r),o=Kh(e,t.getBody(),r),i=n(t.getBody(),WS(1),o),a=bt(i,KS(1)),c=Fi.last(o.getClientRects()),(ET(o)||wT(o))&&(d=o.getNode()),(zT(o)||xT(o))&&(d=o.getNode(!0)),!c)return null;if(s=c.left,u=QS(a,s),u&&UT(u.node))return l=Math.abs(s-u.left),f=Math.abs(s-u.right),uT(e,t,u.node,f>l,!0);if(d){var h=$S(e,t.getBody(),WS(1),d);if(u=QS(bt(h,KS(1)),s))return fT(t,u.position.toRange(),!0);if(u=Fi.last(bt(h,KS(0))))return fT(t,u.position.toRange(),!0)}},WT=function(e){var t=e.dom.create(yh.getForcedRootBlock(e));return(!Ri.ie||Ri.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t},KT=function(e,n,r){var o,i,a,u=lm(e.getBody()),c=t(Gh,u.next),s=t(Gh,u.prev);if(r.collapsed&&e.settings.forced_root_block){if(o=e.dom.getParent(r.startContainer,"PRE"),!o)return;i=1===n?c(Mf.fromRangeStart(r)):s(Mf.fromRangeStart(r)),i||(a=WT(e),1===n?e.$(o).after(a):e.$(o).before(a),e.selection.select(a,!0),e.selection.collapse())}},XT=function(e,n){var r,o=lm(e.getBody()),i=t(Gh,o.next),a=t(Gh,o.prev),u=n?Df.Forwards:Df.Backwards,c=n?i:a,s=e.selection.getRng();return(r=qT(u,e,c,s))?r:(r=KT(e,u,s),r?r:null)},YT=function(e,t){var n,r=t?1:-1,o=t?qS:jS,i=e.selection.getRng();return(n=$T(r,e,o,i))?n:(n=KT(e,r,i),n?n:null)},GT=function(e,t){return function(){var n=XT(e,t);return n?(e.selection.setRng(n),!0):!1}},ZT=function(e,t){return function(){var n=YT(e,t);return n?(e.selection.setRng(n),!0):!1}},JT=function(e){return function(t){return e?zT(t):ET(t)}},QT=function(e,t){return function(){var n=t?Mf.fromRangeEnd(e.selection.getRng()):Mf.fromRangeStart(e.selection.getRng()),r=t?PT(e.getBody(),n):_T(e.getBody(),n),o=t?Dt(r.positions):Bt(r.positions);return o.filter(JT(t)).fold(U(!1),function(t){return e.selection.setRng(t.toRange()),!0})}},eA=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}},tA=function(e,t){return kt(t,function(t){var n=eA(Kl(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]})},nA=function(e,t,n){return wt(e,function(e,r){return e.fold(function(){return J.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 J.some(o>i?r:e)})},J.none())},rA=function(e,t,n,r,o){var i=Vs(Zt.fromDom(n),"td,th,caption").map(function(e){return e.dom()}),a=bt(tA(e,i),function(e){return t(e,o)});return nA(a,r,o).map(function(e){return e.cell})},oA=function(e){return e.bottom},iA=function(e){return e.top},aA=function(e,t){return e.y<t},uA=function(e,t){return e.y>t},cA=t(rA,oA,aA),sA=t(rA,iA,uA),lA=function(e,t){return Bt(t.getClientRects()).bind(function(t){return cA(e,t.left,t.top)}).bind(function(e){return MT(FT(e),t)})},fA=function(e,t){return Dt(t.getClientRects()).bind(function(t){return sA(e,t.left,t.top)}).bind(function(e){return MT(VT(e),t)})},dA=function(e,t){e.selection.setRng(t),Jb.scrollRangeIntoView(e,t)},hA=function(e,t,n){return n.breakAt.map(function(n){return e(t,n).breakAt.isSome()}).getOr(!1)},mA=function(e){return e.breakType===LS.Wrap&&0===e.positions.length},gA=function(e){return e.breakType===LS.Br&&1===e.positions.length},pA=function(e,t,n){var r=e(t,n);return mA(r)||!No.isBr(n.getNode())&&gA(r)?!hA(e,t,r):r.breakAt.isNone()},vA=t(pA,_T),yA=t(pA,PT),bA=function(e,t,n){var r=Mf.fromRangeStart(t);return zm.positionIn(!e,n).map(function(e){return e.isEqual(r)}).getOr(!1)},CA=function(e,t,n){var r=e.selection.getRng(),o=t?1:-1;if(kh()&&bA(t,r,n)){var i=uT(o,e,n,!t,!0);return dA(e,i),!0}return!1},wA=function(e,t,n){return lA(t,n).orThunk(function(){return Bt(n.getClientRects()).bind(function(n){return DT(LT(e,Mf.before(t)),n.left)})}).getOr(Mf.before(t))},xA=function(e,t,n){return fA(t,n).orThunk(function(){return Bt(n.getClientRects()).bind(function(n){return DT(IT(e,Mf.after(t)),n.left)})}).getOr(Mf.after(t))},EA=function(e,t){var n=t.getNode(e);return No.isElement(n)&&"TABLE"===n.nodeName?J.some(n):J.none()},zA=function(e,t,n,r){var o=yh.getForcedRootBlock(t);o?t.undoManager.transact(function(){var r=Zt.fromTag(o);Ro(r,yh.getForcedRootBlockAttrs(t)),Mr(r,Zt.fromTag("br")),e?Br(Zt.fromDom(n),r):Rr(Zt.fromDom(n),r);var i=t.dom.createRng();i.setStart(r.dom(),0),i.setEnd(r.dom(),0),dA(t,i)}):dA(t,r.toRange())},kA=function(e,t,n){var r=t?EA(!0,n):EA(!1,n),o=t===!1;r.fold(function(){return dA(e,n.toRange())},function(r){return zm.positionIn(o,e.getBody()).filter(function(e){return e.isEqual(n)}).fold(function(){return dA(e,n.toRange())},function(){return zA(t,e,r,n)})})},NA=function(e,t,n,r){var o=e.selection.getRng(),i=Mf.fromRangeStart(o),a=e.getBody();if(!t&&vA(r,i)){var u=wA(a,n,i);return kA(e,t,u),!0}if(t&&yA(r,i)){var u=xA(a,n,i);return kA(e,t,u),!0}return!1},SA=function(e,t){return function(){return J.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind(function(n){return J.from(e.dom.getParent(n,"table")).map(function(n){return CA(e,t,n)})}).getOr(!1)}},TA=function(e,t){return function(){return J.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind(function(n){return J.from(e.dom.getParent(n,"table")).map(function(r){return NA(e,t,r,n)})}).getOr(!1)}},AA=function(e){return ht(["figcaption"],Vr(e))},RA=function(t){var n=e.document.createRange();return n.setStartBefore(t.dom()),n.setEndBefore(t.dom()),n},BA=function(e,t,n){n?Mr(e,t):Dr(e,t)},DA=function(e,t){var n=Zt.fromTag("br");return BA(e,n,t),RA(n)},MA=function(e,t,n,r){var o=Zt.fromTag(n),i=Zt.fromTag("br");return Ro(o,r),Mr(o,i),BA(e,o,t),RA(i)},_A=function(e,t,n,r){return""===t?DA(e,r):MA(e,r,t,n)},PA=function(e,n){var r=t(fr,n);return Us(Zt.fromDom(e.container()),da,r).filter(AA)},OA=function(e,t,n){return t?HT(e.dom(),n):OT(e.dom(),n)},HA=function(e,t){var n=Zt.fromDom(e.getBody()),r=Mf.fromRangeStart(e.selection.getRng()),o=yh.getForcedRootBlock(e),i=yh.getForcedRootBlockAttrs(e);return PA(r,n).exists(function(){if(OA(n,t,r)){var a=_A(n,o,i,t);return e.selection.setRng(a),!0}return!1})},LA=function(e,t){return function(){return e.selection.isCollapsed()?HA(e,t):!1}},IA=function(e){return gt(e,function(e){return $t({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:V},e)})},VA=function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},FA=function(e,t){return kt(IA(e),function(e){return VA(e,t)?[e]:[]})},UA=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}},jA=function(e,t){return xt(FA(e,t),function(e){return e.action()})},qA={match:FA,action:UA,execute:jA},$A=function(e,t,n){var r=Xn().os;qA.execute([{keyCode:vb.RIGHT,action:GT(e,!0)},{keyCode:vb.LEFT,action:GT(e,!1)},{keyCode:vb.UP,action:ZT(e,!1)},{keyCode:vb.DOWN,action:ZT(e,!0)},{keyCode:vb.RIGHT,action:SA(e,!0)},{keyCode:vb.LEFT,action:SA(e,!1)},{keyCode:vb.UP,action:TA(e,!1)},{keyCode:vb.DOWN,action:TA(e,!0)},{keyCode:vb.RIGHT,action:PS.move(e,t,!0)},{keyCode:vb.LEFT,action:PS.move(e,t,!1)},{keyCode:vb.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:PS.moveNextWord(e,t)},{keyCode:vb.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:PS.movePrevWord(e,t)},{keyCode:vb.UP,action:LA(e,!1)},{keyCode:vb.DOWN,action:LA(e,!0)}],n).each(function(){n.preventDefault()})},WA=function(e,t){e.on("keydown",function(n){n.isDefaultPrevented()===!1&&$A(e,t,n)})},KA={setup:WA},XA=function(e){return function(t){return fr(e,Zt.fromDom(t.dom().parentNode))}},YA=function(e,t){return gr(e,t)?Us(t,function(e){return pa(e)||ya(e)},XA(e)):J.none()},GA=function(e){var t=e.getBody(),n=t.firstChild&&e.dom.isBlock(t.firstChild)?t.firstChild:t;e.selection.setCursorLocation(n,0)},ZA=function(e){e.dom.isEmpty(e.getBody())&&(e.setContent(""),GA(e))},JA=function(e,t,n){return of(zm.firstPositionIn(n),zm.lastPositionIn(n),function(r,o){var i=XN.normalizePosition(!0,r),a=XN.normalizePosition(!1,o),u=XN.normalizePosition(!1,t);return e?zm.nextPosition(n,u).map(function(e){return e.isEqual(a)&&t.isEqual(i)}).getOr(!1):zm.prevPosition(n,u).map(function(e){return e.isEqual(i)&&t.isEqual(a)}).getOr(!1)}).getOr(!0)},QA={getParentBlock:YA,paddEmptyBody:ZA,willDeleteLastPositionInElement:JA},eR=function(e,t){return{block:U(e),position:U(t)}},tR=function(e,t){return{from:U(e),to:U(t)}},nR=function(e,t){var n=Zt.fromDom(e),r=Zt.fromDom(t.container());return QA.getParentBlock(n,r).map(function(e){return eR(e,t)})},rR=function(e){return fr(e.from().block(),e.to().block())===!1},oR=function(e){return br(e.from().block()).bind(function(t){return br(e.to().block()).filter(function(e){return fr(t,e)})}).isSome()},iR=function(e){return No.isContentEditableFalse(e.from().block().dom())===!1&&No.isContentEditableFalse(e.to().block().dom())===!1},aR=function(e,t,n){return No.isBr(n.position().getNode())&&gE.isEmpty(n.block())===!1?zm.positionIn(!1,n.block().dom()).bind(function(r){return r.isEqual(n.position())?zm.fromPosition(t,e,r).bind(function(t){return nR(e,t)}):J.some(n)}).getOr(n):n},uR=function(e,t,n){var r=nR(e,Mf.fromRangeStart(n)),o=r.bind(function(n){return zm.fromPosition(t,e,n.position()).bind(function(n){return nR(e,n).map(function(n){return aR(e,t,n)})})});return of(r,o,tR).filter(function(e){return rR(e)&&oR(e)&&iR(e)})},cR=function(e,t,n){return n.collapsed?uR(e,t,n):J.none()},sR={read:cR},lR=function(e){var t=kr(e);return Et(t,da).fold(function(){return t},function(e){return t.slice(0,e)})},fR=function(e){var t=lR(e);return pt(t,Lr),t},dR=function(e,t){var n=dC.parentsAndSelf(t,e);return xt(n.reverse(),function(e){return gE.isEmpty(e)}).each(Lr)},hR=function(e){return 0===bt(Er(e),function(e){return!gE.isEmpty(e)}).length},mR=function(e,t,n,r){if(gE.isEmpty(n))return Ux.fillWithPaddingBr(n),zm.firstPositionIn(n.dom());hR(r)&&gE.isEmpty(t)&&Rr(r,Zt.fromTag("br"));var o=zm.prevPosition(n.dom(),Mf.before(r.dom()));return pt(fR(t),function(e){Rr(r,e)}),dR(e,t),o},gR=function(e,t,n){if(gE.isEmpty(n))return Lr(n),gE.isEmpty(t)&&Ux.fillWithPaddingBr(t),zm.firstPositionIn(t.dom());var r=zm.lastPositionIn(n.dom());return pt(fR(t),function(e){Mr(n,e)}),dR(e,t),r},pR=function(e,t){var n=dC.parentsAndSelf(t,e);return J.from(n[n.length-1])},vR=function(e,t){return gr(t,e)?pR(t,e):J.none()},yR=function(e,t){zm.positionIn(e,t.dom()).map(function(e){return e.getNode()}).map(Zt.fromDom).filter(ga).each(Lr)},bR=function(e,n,r){return yR(!0,n),yR(!1,r),vR(n,r).fold(t(gR,e,n,r),t(mR,e,n,r))},CR=function(e,t,n,r){return t?bR(e,r,n):bR(e,n,r)},wR={mergeBlocks:CR},xR=function(e,t){var n=Zt.fromDom(e.getBody()),r=sR.read(n.dom(),t,e.selection.getRng()).bind(function(e){return wR.mergeBlocks(n,t,e.from().block(),e.to().block())});return r.each(function(t){e.selection.setRng(t.toRange())}),r.isSome()},ER={backspaceDelete:xR},zR=function(e,t){var n=t.getRng();return of(QA.getParentBlock(e,Zt.fromDom(n.startContainer)),QA.getParentBlock(e,Zt.fromDom(n.endContainer)),function(r,o){return fr(r,o)===!1?(n.deleteContents(),wR.mergeBlocks(e,!0,r,o).each(function(e){t.setRng(e.toRange())}),!0):!1}).getOr(!1)},kR=function(e,n){var r=Zt.fromDom(n),o=t(fr,e);return Fs(r,wa,o).isSome()},NR=function(e,t){return kR(e,t.startContainer)||kR(e,t.endContainer)},SR=function(e,t){var n=zm.prevPosition(e.dom(),Mf.fromRangeStart(t)).isNone(),r=zm.nextPosition(e.dom(),Mf.fromRangeEnd(t)).isNone();return!NR(e,t)&&n&&r},TR=function(e){return e.setContent(""),e.selection.setCursorLocation(),!0},AR=function(e){var t=Zt.fromDom(e.getBody()),n=e.selection.getRng();return SR(t,n)?TR(e):zR(t,e.selection)},RR=function(e){return e.selection.isCollapsed()?!1:AR(e)},BR={backspaceDelete:RR},DR=function(e){return Xh(e).exists(ga)},MR=function(e,t,n){var r=bt(dC.parentsAndSelf(Zt.fromDom(n.container()),t),da),o=Bt(r).getOr(t);return zm.fromPosition(e,o.dom(),n).filter(DR)},_R=function(e,t){return Xh(t).exists(ga)||MR(!0,e,t).isSome()},PR=function(e,t){return Yh(t).exists(ga)||MR(!1,e,t).isSome()},OR=t(MR,!1),HR=t(MR,!0),LR=function(e){return wa(Zt.fromDom(e))||ya(Zt.fromDom(e))},IR=yp.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),VR=function(e,t){var n=t.getNode(e===!1),r=e?"after":"before";return No.isElement(n)&&n.getAttribute("data-mce-caret")===r},FR=function(e,t,n,r){var o=function(t){return ma(Zt.fromDom(t))&&!Lh(n,r,e)};return Wh(!t,n).fold(function(){return Wh(t,r).fold(U(!1),o)},o)},UR=function(e,t,n,r){var o=r.getNode(t===!1);return QA.getParentBlock(Zt.fromDom(e),Zt.fromDom(n.getNode())).map(function(e){return gE.isEmpty(e)?IR.remove(e.dom()):IR.moveToElement(o)}).orThunk(function(){return J.some(IR.moveToElement(o))})},jR=function(e,t,n){return zm.fromPosition(t,e,n).bind(function(r){return LR(r.getNode())?J.none():FR(e,t,n,r)?J.none():t&&No.isContentEditableFalse(r.getNode())?UR(e,t,n,r):t===!1&&No.isContentEditableFalse(r.getNode(!0))?UR(e,t,n,r):t&&zT(n)?J.some(IR.moveToPosition(r)):t===!1&&ET(n)?J.some(IR.moveToPosition(r)):J.none()})},qR=function(e,t){return e&&No.isContentEditableFalse(t.nextSibling)?J.some(IR.moveToElement(t.nextSibling)):e===!1&&No.isContentEditableFalse(t.previousSibling)?J.some(IR.moveToElement(t.previousSibling)):J.none()},$R=function(e,t,n){return n.fold(function(e){return J.some(IR.remove(e))},function(e){return J.some(IR.moveToElement(e))},function(n){return Lh(t,n,e)?J.none():J.some(IR.moveToPosition(n))})},WR=function(e,t,n){return VR(t,n)?qR(t,n.getNode(t===!1)).fold(function(){return jR(e,t,n)},J.some):jR(e,t,n).bind(function(t){return $R(e,n,t)})},KR=function(e,t,n){var r=$h(t?1:-1,e,n),o=Mf.fromRangeStart(r),i=Zt.fromDom(e);return t===!1&&zT(o)?J.some(IR.remove(o.getNode(!0))):t&&ET(o)?J.some(IR.remove(o.getNode())):t===!1&&ET(o)&&PR(i,o)?OR(i,o).map(function(e){return IR.remove(e.getNode())}):t&&zT(o)&&_R(i,o)?HR(i,o).map(function(e){return IR.remove(e.getNode())}):WR(e,t,o)},XR=function(e,t){return function(n){return e._selectionOverrides.hideFakeCaret(),PE.deleteElement(e,t,Zt.fromDom(n)),!0}},YR=function(e,t){return function(n){var r=t?Mf.before(n):Mf.after(n);return e.selection.setRng(r.toRange()),!0}},GR=function(e){return function(t){return e.selection.setRng(t.toRange()),!0}},ZR=function(e,t){return J.from(tB(e.getBody(),t))},JR=function(e,t){var n=e.selection.getNode();return ZR(e,n).filter(No.isContentEditableFalse).fold(function(){var n=KR(e.getBody(),t,e.selection.getRng()).map(function(n){return n.fold(XR(e,t),YR(e,t),GR(e))});return n.getOr(!1)},function(){return!0})},QR=function(e){pt(Vs(e,".mce-offscreen-selection"),Lr)},eB=function(e,t){var n=e.selection.getNode();if(No.isContentEditableFalse(n)){var r=ZR(e,n.parentNode).filter(No.isContentEditableFalse);return r.fold(function(){return QR(Zt.fromDom(e.getBody())),PE.deleteElement(e,t,Zt.fromDom(e.selection.getNode())),QA.paddEmptyBody(e),!0},function(){return!0})}return!1},tB=function(e,t){for(;t&&t!==e;){if(No.isContentEditableTrue(t)||No.isContentEditableFalse(t))return t;t=t.parentNode}return null},nB=function(e){var t,n=tB(e.getBody(),e.selection.getNode());return No.isContentEditableTrue(n)&&e.dom.isBlock(n)&&e.dom.isEmpty(n)&&(t=e.dom.create("br",{"data-mce-bogus":"1"}),e.dom.setHTML(n,""),n.appendChild(t),e.selection.setRng(Mf.before(t).toRange())),!0},rB=function(e,t){return e.selection.isCollapsed()?JR(e,t):eB(e,t)},oB={backspaceDelete:rB,paddEmptyElement:nB},iB=function(e,t){No.isText(t)&&0===t.data.length&&e.remove(t)},aB=function(e,t,n,r,o,i){var a=uT(r,e,i.getNode(!o),o,!0);if(t.collapsed){var u=t.cloneRange();o?u.setEnd(a.startContainer,a.startOffset):u.setStart(a.endContainer,a.endOffset),u.deleteContents()}else t.deleteContents();return e.selection.setRng(a),iB(e.dom,n),!0},uB=function(e,n){var r=e.selection.getRng();if(!No.isText(r.commonAncestorContainer))return!1;var o=n?Df.Forwards:Df.Backwards,i=lm(e.getBody()),a=t(Gh,i.next),u=t(Gh,i.prev),c=n?a:u,s=n?ET:zT,l=Kh(o,e.getBody(),r),f=XN.normalizePosition(n,c(l));if(!f||!Zh(l,f))return!1;if(s(f))return aB(e,r,l.getNode(),o,n,f);var d=c(f);return d&&s(d)&&Zh(f,d)?aB(e,r,l.getNode(),o,n,d):!1},cB=function(e,t){return uB(e,t)},sB={backspaceDelete:cB},lB=function(e){return e.settings.inline_boundaries!==!1},fB=function(t,n){var r=e.document.createRange();return r.setStart(t.container(),t.offset()),r.setEnd(n.container(),n.offset()),r},dB=function(e){return of(zm.firstPositionIn(e),zm.lastPositionIn(e),function(t,n){var r=XN.normalizePosition(!0,t),o=XN.normalizePosition(!1,n);return zm.nextPosition(e,r).map(function(e){return e.isEqual(o)}).getOr(!0)}).getOr(!0)},hB=function(e,t){return function(n){return ON.renderCaret(t,n).map(function(t){return PS.setCaretPosition(e,t),!0}).getOr(!1)}},mB=function(e,n,r,o){var i=e.getBody(),a=t(XN.isInlineTarget,e);e.undoManager.ignore(function(){e.selection.setRng(fB(r,o)),e.execCommand("Delete"),vS.readLocation(a,i,Mf.fromRangeStart(e.selection.getRng())).map(vS.inside).map(hB(e,n))}),e.nodeChanged()},gB=function(e,t){var n=Hh(t,e);return n?n:e},pB=function(e,n,r,o){var i=gB(e.getBody(),o.container()),a=t(XN.isInlineTarget,e),u=vS.readLocation(a,i,o);return u.bind(function(e){return r?e.fold(U(J.some(vS.inside(e))),J.none,U(J.some(vS.outside(e))),J.none):e.fold(J.none,U(J.some(vS.outside(e))),J.none,U(J.some(vS.inside(e))))}).map(hB(e,n)).getOrThunk(function(){var t=zm.navigate(r,i,o),c=t.bind(function(e){return vS.readLocation(a,i,e)});return u.isSome()&&c.isSome()?XN.findRootInline(a,i,o).map(function(t){return dB(t)?(PE.deleteElement(e,r,Zt.fromDom(t)),!0):!1}).getOr(!1):c.bind(function(){return t.map(function(t){return r?mB(e,n,o,t):mB(e,n,t,o),!0})}).getOr(!1)})},vB=function(e,t,n){if(e.selection.isCollapsed()&&lB(e)){var r=Mf.fromRangeStart(e.selection.getRng());return pB(e,t,n,r)}return!1},yB={backspaceDelete:vB},bB=function(e,t){var n=dC.parentsAndSelf(t,e);return Et(n,da).fold(U(n),function(e){return n.slice(0,e)})},CB=function(e){return 1===kr(e).length},wB=function(e,n,r,o){var i=t(ez,n),a=gt(bt(o,i),function(e){return e.dom()});if(0===a.length)PE.deleteElement(n,e,r);else{var u=QE(r.dom(),a);n.selection.setRng(u.toRange())}},xB=function(e,t){var n=Zt.fromDom(e.getBody()),r=Zt.fromDom(e.selection.getStart()),o=bt(bB(n,r),CB);return Dt(o).map(function(n){var r=Mf.fromRangeStart(e.selection.getRng());return QA.willDeleteLastPositionInElement(t,r,n.dom())&&!tz(n)?(wB(t,e,n,o),!0):!1}).getOr(!1)},EB=function(e,t){return e.selection.isCollapsed()?xB(e,t):!1},zB={backspaceDelete:EB},kB=function(e,t){return{start:U(e),end:U(t)}},NB=function(e,t,n){return{rng:U(e),table:U(t),cells:U(n)}},SB=yp.generate([{removeTable:["element"]},{emptyCells:["cells"]}]),TB=function(e){return function(t){return fr(e,t)}},AB=function(e,t){return $s(Zt.fromDom(e),"td,th",t)},RB=function(e,t){return js(e,"table",t)},BB=function(e){return fr(e.start(),e.end())===!1},DB=function(e,t){return RB(e.start(),t).bind(function(n){return RB(e.end(),t).bind(function(e){return uf(fr(n,e),n)})})},MB=function(e){return Vs(e,"td,th")},_B=function(e,t){return RB(e.start(),t).bind(function(t){return Dt(MB(t)).map(function(t){return kB(e.start(),t)})})},PB=function(e,t){var n=AB(t.startContainer,e),r=AB(t.endContainer,e);return t.collapsed?J.none():of(n,r,kB).fold(function(){return n.fold(function(){return r.bind(function(t){return RB(t,e).bind(function(e){return Bt(MB(e)).map(function(e){return kB(e,t)})})})},function(t){return RB(t,e).bind(function(e){return Dt(MB(e)).map(function(e){return kB(t,e)})})})},function(t){return OB(e,t)?J.none():_B(t,e)})},OB=function(e,t){return DB(t,e).isSome()},HB=function(e,t){var n=AB(e.startContainer,t),r=AB(e.endContainer,t);return of(n,r,kB).filter(BB).filter(function(e){return OB(t,e)}).orThunk(function(){return PB(t,e)})},LB=function(e,t){return DB(e,t).map(function(t){return NB(e,t,MB(t))})},IB=function(e,t){var n=TB(e);return HB(t,n).bind(function(e){return LB(e,n)})},VB=function(e,t){return Et(e,function(e){return fr(e,t)})},FB=function(e){return of(VB(e.cells(),e.rng().start()),VB(e.cells(),e.rng().end()),function(t,n){return e.cells().slice(t,n+1)})},UB=function(e){return FB(e).map(function(t){var n=e.cells();return t.length===n.length?SB.removeTable(e.table()):SB.emptyCells(t)})},jB=function(e,t){return IB(e,t).bind(UB)},qB=function(e,t){return pt(t,Ux.fillWithPaddingBr),e.selection.setCursorLocation(t[0].dom(),0),!0},$B=function(e,t){return PE.deleteElement(e,!1,t),!0},WB=function(e,n,r){return jB(n,r).map(function(n){return n.fold(t($B,e),t(qB,e))})},KB=function(e,t){return QB(e,t)},XB=function(e,t,n,r){return ZB(t,r).fold(function(){return WB(e,t,n)},function(t){return KB(e,t)}).getOr(!1)},YB=function(e,t){var n=Zt.fromDom(e.getBody()),r=e.selection.getRng(),o=$C.getCellsFromEditor(e);return 0!==o.length?qB(e,o):XB(e,n,r,t)},GB=function(e,t){return xt(dC.parentsAndSelf(t,e),wa)},ZB=function(e,t){return xt(dC.parentsAndSelf(t,e),function(e){return"caption"===Vr(e)})},JB=function(e,t,n,r,o){return zm.navigate(n,e.getBody(),o).bind(function(e){return GB(t,Zt.fromDom(e.getNode())).map(function(e){return fr(e,r)===!1})})},QB=function(e,t){return Ux.fillWithPaddingBr(t),e.selection.setCursorLocation(t.dom(),0),J.some(!0)},eD=function(e,t,n,r){return zm.firstPositionIn(e.dom()).bind(function(o){return zm.lastPositionIn(e.dom()).map(function(e){return t?n.isEqual(o)&&r.isEqual(e):n.isEqual(e)&&r.isEqual(o)})}).getOr(!0)},tD=function(e,t){return QB(e,t)},nD=function(e,t,n){return ZB(e,Zt.fromDom(n.getNode())).map(function(e){return fr(e,t)===!1})},rD=function(e,t,n,r,o){return zm.navigate(n,e.getBody(),o).bind(function(i){return eD(r,n,o,i)?tD(e,r):nD(t,r,i)}).or(J.some(!0))},oD=function(e,t,n,r){var o=Mf.fromRangeStart(e.selection.getRng());return GB(n,r).bind(function(r){return gE.isEmpty(r)?QB(e,r):JB(e,n,t,r,o)}).getOr(!1)},iD=function(e,t,n,r){var o=Mf.fromRangeStart(e.selection.getRng());return gE.isEmpty(r)?QB(e,r):rD(e,n,t,r,o)},aD=function(e,t){return e?wT(t):xT(t)},uD=function(e,t){var n=Mf.fromRangeStart(e.selection.getRng());return aD(t,n)||zm.fromPosition(t,e.getBody(),n).map(function(e){return aD(t,e)}).getOr(!1)},cD=function(e,t,n){var r=Zt.fromDom(e.getBody());return ZB(r,n).fold(function(){return oD(e,t,r,n)||uD(e,t)},function(n){return iD(e,t,r,n).getOr(!1)})},sD=function(e,t){var n=Zt.fromDom(e.selection.getStart(!0)),r=$C.getCellsFromEditor(e);return e.selection.isCollapsed()&&0===r.length?cD(e,t,n):YB(e,n)},lD={backspaceDelete:sD},fD=function(e,t){var n=Mf.fromRangeStart(e.selection.getRng());return zm.fromPosition(t,e.getBody(),n).filter(function(e){return t?bT(e):CT(e)}).bind(function(e){return J.from(Ih(t?0:-1,e))}).map(function(t){return e.selection.select(t),!0}).getOr(!1)},dD=function(e,t){return e.selection.isCollapsed()?fD(e,t):!1},hD={backspaceDelete:dD},mD=function(e){return Us(e,function(e){return No.isContentEditableTrue(e.dom())||No.isContentEditableFalse(e.dom())}).exists(function(e){return No.isContentEditableTrue(e.dom())})},gD=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},pD=function(e,t){var n=e||ha(t)?"margin":"padding",r="rtl"===Po(t,"direction")?"-right":"-left";return n+r},vD=function(e,t,n,r,o,i){var a=pD(n,Zt.fromDom(i));if("outdent"===t){var u=Math.max(0,gD(i.style[a])-r);e.setStyle(i,a,u?u+o:"")}else{var u=gD(i.style[a])+r+o;e.setStyle(i,a,u)}},yD=function(e,t){return Nt(t,function(t){var n=pD(yh.shouldIndentUseMargin(e),t),r=Ho(t,n).map(gD).getOr(0),o=e.dom.getContentEditable(t.dom());return"false"!==o&&r>0})},bD=function(e){var t=xD(e);return!e.mode.isReadOnly()&&(t.length>1||yD(e,t))},CD=function(e){return va(e)||ya(e)},wD=function(e){return br(e).map(CD).getOr(!1)},xD=function(e){return bt(gt(e.selection.getSelectedBlocks(),Zt.fromDom),function(e){return!CD(e)&&!wD(e)&&mD(e)})},ED=function(e,t){var n=e.dom,r=e.selection,o=e.formatter,i=yh.getIndentation(e),a=/[a-z%]+$/i.exec(i)[0],u=parseInt(i,10),c=yh.shouldIndentUseMargin(e),s=yh.getForcedRootBlock(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==s||n.getParent(r.getNode(),n.isBlock)||o.apply("div"),pt(xD(e),function(e){vD(n,t,c,u,a,e.dom())})},zD=function(e,t,n){return zm.navigateIgnore(e,t,n,gT)},kD=function(e,t){return xt(dC.parentsAndSelf(Zt.fromDom(t.container()),e),da)},ND=function(e,t,n){return zD(e,t.dom(),n).forall(function(e){return kD(t,n).fold(function(){return Lh(e,n,t.dom())===!1},function(r){return Lh(e,n,t.dom())===!1&&gr(r,Zt.fromDom(e.container()))})})},SD=function(e,t,n){return kD(t,n).fold(function(){return zD(e,t.dom(),n).forall(function(e){return Lh(e,n,t.dom())===!1})},function(t){return zD(e,t.dom(),n).isNone()})},TD=t(SD,!1),AD=t(SD,!0),RD=t(ND,!1),BD=t(ND,!0),DD=function(e){if(e.selection.isCollapsed()&&bD(e)){var t=e.dom,n=e.selection.getRng(),r=Mf.fromRangeStart(n),o=t.getParent(n.startContainer,t.isBlock);if(null!==o&&TD(Zt.fromDom(o),r))return ED(e,"outdent"),!0}return!1},MD={backspaceDelete:DD},_D=function(e,t,n){qA.execute([{keyCode:vb.BACKSPACE,action:qA.action(MD.backspaceDelete,e,!1)},{keyCode:vb.BACKSPACE,action:qA.action(oB.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(oB.backspaceDelete,e,!0)},{keyCode:vb.BACKSPACE,action:qA.action(sB.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(sB.backspaceDelete,e,!0)},{keyCode:vb.BACKSPACE,action:qA.action(yB.backspaceDelete,e,t,!1)},{keyCode:vb.DELETE,action:qA.action(yB.backspaceDelete,e,t,!0)},{keyCode:vb.BACKSPACE,action:qA.action(lD.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(lD.backspaceDelete,e,!0)},{keyCode:vb.BACKSPACE,action:qA.action(hD.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(hD.backspaceDelete,e,!0)},{keyCode:vb.BACKSPACE,action:qA.action(BR.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(BR.backspaceDelete,e,!0)},{keyCode:vb.BACKSPACE,action:qA.action(ER.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(ER.backspaceDelete,e,!0)},{keyCode:vb.BACKSPACE,action:qA.action(zB.backspaceDelete,e,!1)},{keyCode:vb.DELETE,action:qA.action(zB.backspaceDelete,e,!0)}],n).each(function(){n.preventDefault()})},PD=function(e,t){qA.execute([{keyCode:vb.BACKSPACE,action:qA.action(oB.paddEmptyElement,e)},{keyCode:vb.DELETE,action:qA.action(oB.paddEmptyElement,e)}],t)},OD=function(e,t){e.on("keydown",function(n){n.isDefaultPrevented()===!1&&_D(e,t,n)}),e.on("keyup",function(t){t.isDefaultPrevented()===!1&&PD(e,t)})},HD={setup:OD},LD=function(e){for(;e;){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}},ID=function(e,t){var n,r,o=t,i=e.dom,a=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var u=LD(t.firstChild);u&&/^(UL|OL|DL)$/.test(u.nodeName)&&t.insertBefore(i.doc.createTextNode(yu),t.firstChild)}if(r=i.createRng(),t.normalize(),t.hasChildNodes()){for(var c=new Xc(t,t);n=c.current();){if(No.isText(n)){r.setStart(n,0),r.setEnd(n,0);break}if(a[n.nodeName.toLowerCase()]){r.setStartBefore(n),r.setEndBefore(n);break}o=n,n=c.next()}n||(r.setStart(o,0),r.setEnd(o,0))}else No.isBr(t)?t.nextSibling&&i.isBlock(t.nextSibling)?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)):(r.setStart(t,0),r.setEnd(t,0));e.selection.setRng(r),Jb.scrollRangeIntoView(e,r)}},VD=function(e,t){var n,r,o=e.getRoot();for(n=t;n!==o&&"false"!==e.getContentEditable(n);)"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},FD=function(e){return J.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},UD=function(e){return FD(e).fold(U(""),function(e){return e.nodeName.toUpperCase()})},jD=function(e){return FD(e).filter(function(e){return ya(Zt.fromDom(e))}).isSome()},qD={moveToCaretPosition:ID,getEditableRoot:VD,getParentBlock:FD,getParentBlockName:UD,isListItemParentBlock:jD},$D=function(e,t){return e.firstChild&&e.firstChild.nodeName===t},WD=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},KD=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},XD=function(e){return KD(e)&&KD(e.parentNode)},YD=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},GD=function(e,t,n){for(var r=e[n?"firstChild":"lastChild"];r&&!No.isElement(r);)r=r[n?"nextSibling":"previousSibling"];return r===t},ZD=function(e,t,n,r,o){var i=e.dom,a=e.selection.getRng();if(n!==e.getBody()){XD(n)&&(o="LI");var u=o?t(o):i.create("BR");if(GD(n,r,!0)&&GD(n,r,!1))WD(n,"LI")?i.insertAfter(u,YD(n)):i.replace(u,n);else if(GD(n,r,!0))WD(n,"LI")?(i.insertAfter(u,YD(n)),u.appendChild(i.doc.createTextNode(" ")),u.appendChild(n)):n.parentNode.insertBefore(u,n);else if(GD(n,r,!1))i.insertAfter(u,YD(n));else{n=YD(n);var c=a.cloneRange();c.setStartAfter(r),c.setEndAfter(n);var s=c.extractContents();"LI"===o&&$D(s,"LI")?(u=s.firstChild,i.insertAfter(s,n)):(i.insertAfter(s,n),i.insertAfter(u,n))}i.remove(r),qD.moveToCaretPosition(e,u)}},JD={insert:ZD},QD=function(e){pt(Is(Zt.fromDom(e),qr),function(e){var t=e.dom();t.nodeValue=ml.trim(t.nodeValue)})},eM=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},tM=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},nM=function(e){e.innerHTML='<br data-mce-bogus="1">'},rM=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},oM=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)},iM=function(e,t,n){var r,o=n,i=[];if(o){for(;o=o.firstChild;){if(e.isBlock(o))return;No.isElement(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}for(r=i.length;r--;)o=i[r],!o.hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue?e.remove(o):eM(e,o)&&e.remove(o)}},aM=function(e,t,n){return No.isText(t)===!1?n:e?1===n&&t.data.charAt(n-1)===ml.ZWSP?0:n:n===t.data.length-1&&t.data.charAt(n)===ml.ZWSP?t.data.length:n},uM=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,aM(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,aM(!1,e.endContainer,e.endOffset)),t},cM=function(e){do No.isText(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;while(e)},sM=function(e,t){var n,r,o=e.getRoot();for(n=t;n!==o&&"false"!==e.getContentEditable(n);)"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},lM=function(e,t,n){J.from(n.style).map(e.dom.parseStyle).each(function(n){var r=Lo(Zt.fromDom(t)),o=$t($t({},r),n);e.dom.setStyles(t,o)});var r=J.from(n.class).map(function(e){return e.split(/\s+/)}),i=J.from(t.className).map(function(e){return bt(e.split(/\s+/),function(e){return""!==e})});of(r,i,function(n,r){var i=bt(r,function(e){return!ht(n,e)}),a=o(n,i);e.dom.setAttrib(t,"class",a.join(" "))});var a=["style","class"],u=Ut(n,function(e,t){return!ht(a,t)});e.dom.setAttribs(t,u)},fM=function(e,t){var n=yh.getForcedRootBlock(e);if(n&&n.toLowerCase()===t.tagName.toLowerCase()){var r=yh.getForcedRootBlockAttrs(e);lM(e,t,r)}},dM=function(e,t,n,r,o){var i,a,u,c,s,l,f=t||"P",d=e.dom,h=sM(d,r);if(a=d.getParent(r,d.isBlock),!a||!oM(d,a)){if(a=a||h,l=a===e.getBody()||tM(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return i=d.create(f),fM(e,i),a.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;for(c=r;c.parentNode!==a;)c=c.parentNode;for(;c&&!d.isBlock(c);)u=c,c=c.previousSibling;if(u&&e.schema.isValidChild(l,f.toLowerCase())){for(i=d.create(f),fM(e,i),u.parentNode.insertBefore(i,u),c=u;c&&!d.isBlock(c);)s=c.nextSibling,i.appendChild(c),c=s;n.setStart(r,o),n.setEnd(r,o)}}return r},hM=function(e,t){var n;t.normalize(),n=t.lastChild,(!n||/^(left|right)$/gi.test(e.getStyle(n,"float",!0)))&&e.add(t,"br")
},mM=function(e,t){var n,r,o,i,a,u,c,s,l,f,d,h,m,g=e.dom,p=e.schema,v=p.getNonEmptyElements(),y=e.selection.getRng(),b=function(t){var n,i,u,c=o,s=p.getTextInlineElements();if(n=t||"TABLE"===f||"HR"===f?g.create(t||h):a.cloneNode(!1),u=n,yh.shouldKeepStyles(e)===!1)g.setAttrib(n,"style",null),g.setAttrib(n,"class",null);else do if(s[c.nodeName]){if(vd(c)||Km.isBookmarkNode(c))continue;i=c.cloneNode(!1),g.setAttrib(i,"id",""),n.hasChildNodes()?(i.appendChild(n.firstChild),n.appendChild(i)):(u=i,n.appendChild(i))}while((c=c.parentNode)&&c!==r);return fM(e,n),nM(u),n},C=function(e){var t,n,r=aM(e,o,i);if(No.isText(o)&&(e?r>0:r<o.nodeValue.length))return!1;if(o.parentNode===a&&m&&!e)return!0;if(e&&No.isElement(o)&&o===a.firstChild)return!0;if(rM(o,"TABLE")||rM(o,"HR"))return m&&!e||!m&&e;var u=new Xc(o,a);for(No.isText(o)&&(e&&0===r?u.prev():e||r!==o.nodeValue.length||u.next());t=u.current();){if(No.isElement(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),v[n]&&"br"!==n))return!1}else if(No.isText(t)&&!/^[ \t\r\n]*$/.test(t.nodeValue))return!1;e?u.prev():u.next()}return!0},w=function(){c=/^(H[1-6]|PRE|FIGURE)$/.test(f)&&"HGROUP"!==d?b(h):b(),yh.shouldEndContainerOnEmptyBlock(e)&&oM(g,l)&&g.isEmpty(a)?c=g.split(l,a):g.insertAfter(c,a),qD.moveToCaretPosition(e,c)};xw.normalize(g,y).each(function(e){y.setStart(e.startContainer,e.startOffset),y.setEnd(e.endContainer,e.endOffset)}),o=y.startContainer,i=y.startOffset,h=yh.getForcedRootBlock(e),u=!(!t||!t.shiftKey);var x=!(!t||!t.ctrlKey);return No.isElement(o)&&o.hasChildNodes()&&(m=i>o.childNodes.length-1,o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o,i=m&&No.isText(o)?o.nodeValue.length:0),(r=sM(g,o))?((h&&!u||!h&&u)&&(o=dM(e,h,y,o,i)),a=g.getParent(o,g.isBlock),l=a?g.getParent(a.parentNode,g.isBlock):null,f=a?a.nodeName.toUpperCase():"",d=l?l.nodeName.toUpperCase():"","LI"!==d||x||(a=l,l=l.parentNode,f=d),/^(LI|DT|DD)$/.test(f)&&g.isEmpty(a)?void JD.insert(e,b,l,a,h):void(h&&a===e.getBody()||(h=h||"P",vl(a)?(c=Al(a),g.isEmpty(a)&&nM(a),fM(e,c),qD.moveToCaretPosition(e,c)):C()?w():C(!0)?(c=a.parentNode.insertBefore(b(),a),qD.moveToCaretPosition(e,rM(a,"HR")?c:a)):(n=uM(y).cloneRange(),n.setEndAfter(a),s=n.extractContents(),QD(s),cM(s),c=s.firstChild,g.insertAfter(s,a),iM(g,v,c),hM(g,a),g.isEmpty(a)&&nM(a),c.normalize(),g.isEmpty(c)?(g.remove(c),w()):(fM(e,c),qD.moveToCaretPosition(e,c))),g.setAttrib(c,"id",""),e.fire("NewBlock",{newBlock:c})))):void 0},gM={insert:mM},pM=function(e,t,n){for(var r,o=new Xc(t,n),i=e.getNonEmptyElements();r=o.next();)if(i[r.nodeName.toLowerCase()]||r.length>0)return!0},vM=function(e,t,n){var r=e.create("span",{},"&nbsp;");n.parentNode.insertBefore(r,n),t.scrollIntoView(r),e.remove(r)},yM=function(e,t,n,r){var o=e.createRng();r?(o.setStartBefore(n),o.setEndBefore(n)):(o.setStartAfter(n),o.setEndAfter(n)),t.setRng(o)},bM=function(e,t){var n,r,o=e.selection,i=e.dom,a=o.getRng();xw.normalize(i,a).each(function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)});var u=a.startOffset,c=a.startContainer;if(1===c.nodeType&&c.hasChildNodes()){var s=u>c.childNodes.length-1;c=c.childNodes[Math.min(u,c.childNodes.length-1)]||c,u=s&&3===c.nodeType?c.nodeValue.length:0}var l=i.getParent(c,i.isBlock),f=l?i.getParent(l.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==d||h||(l=f),c&&3===c.nodeType&&u>=c.nodeValue.length&&(pM(e.schema,c,l)||(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=i.create("br"),Zf(i,a,n),vM(i,o,n),yM(i,o,n,r),e.undoManager.add()},CM=function(e,t){var n=Zt.fromTag("br");Rr(Zt.fromDom(t),n),e.undoManager.add()},wM=function(e,t){EM(e.getBody(),t)||Br(Zt.fromDom(t),Zt.fromTag("br"));var n=Zt.fromTag("br");Br(Zt.fromDom(t),n),vM(e.dom,e.selection,n.dom()),yM(e.dom,e.selection,n.dom(),!1),e.undoManager.add()},xM=function(e){return No.isBr(e.getNode())},EM=function(e,t){return xM(Mf.after(t))?!0:zm.nextPosition(e,Mf.after(t)).map(function(e){return No.isBr(e.getNode())}).getOr(!1)},zM=function(e){return e&&"A"===e.nodeName&&"href"in e},kM=function(e){return e.fold(U(!1),zM,zM,U(!1))},NM=function(e){var n=t(XN.isInlineTarget,e),r=Mf.fromRangeStart(e.selection.getRng());return vS.readLocation(n,e.getBody(),r).filter(kM)},SM=function(e,n){n.fold(V,t(CM,e),t(wM,e),V)},TM=function(e,n){var r=NM(e);r.isSome()?r.each(t(SM,e)):bM(e,n)},AM={insert:TM},RM=function(e,t){return qD.getParentBlock(e).filter(function(e){return t.length>0&&ur(Zt.fromDom(e),t)}).isSome()},BM=function(e){return RM(e,yh.getBrNewLineSelector(e))},DM=function(e){return RM(e,yh.getNoNewLineSelector(e))},MM={shouldInsertBr:BM,shouldBlockNewLine:DM},_M=yp.generate([{br:[]},{block:[]},{none:[]}]),PM=function(e){return MM.shouldBlockNewLine(e)},OM=function(e){return function(t){var n=""===yh.getForcedRootBlock(t);return n===e}},HM=function(e){return function(t){return qD.isListItemParentBlock(t)===e}},LM=function(e,t){return function(n){var r=qD.getParentBlockName(n)===e.toUpperCase();return r===t}},IM=function(e){return LM("pre",e)},VM=function(){return LM("summary",!0)},FM=function(e){return function(t){return yh.shouldPutBrInPre(t)===e}},UM=function(e){return MM.shouldInsertBr(e)},jM=function(e,t){return t},qM=function(e){var t=yh.getForcedRootBlock(e),n=qD.getEditableRoot(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t?t:"P")},$M=function(e,t){return function(n,r){var o=wt(e,function(e,t){return e&&t(n,r)},!0);return o?J.some(t):J.none()}},WM=function(e,t){return GN.evaluateUntil([$M([PM],_M.none()),$M([VM()],_M.br()),$M([IM(!0),FM(!1),jM],_M.br()),$M([IM(!0),FM(!1)],_M.block()),$M([IM(!0),FM(!0),jM],_M.block()),$M([IM(!0),FM(!0)],_M.br()),$M([HM(!0),jM],_M.br()),$M([HM(!0)],_M.block()),$M([OM(!0),jM,qM],_M.block()),$M([OM(!0)],_M.br()),$M([UM],_M.br()),$M([OM(!1),jM],_M.br()),$M([qM],_M.block())],[e,!(!t||!t.shiftKey)]).getOr(_M.none())},KM={getAction:WM},XM=function(e,t){KM.getAction(e,t).fold(function(){AM.insert(e,t)},function(){gM.insert(e,t)},V)},YM={insert:XM},GM=function(e,t){t.isDefaultPrevented()||(t.preventDefault(),Uk(e.undoManager),e.undoManager.transact(function(){e.selection.isCollapsed()===!1&&e.execCommand("Delete"),YM.insert(e,t)}))},ZM=function(e){e.on("keydown",function(t){t.keyCode===vb.ENTER&&GM(e,t)})},JM={setup:ZM},QM=function(e,t){var n=t.container(),r=t.offset();return No.isText(n)?(n.insertData(r,e),J.some(N(n,r+e.length))):Xh(t).map(function(n){var r=Zt.fromText(e);return t.isAtEnd()?Br(n,r):Rr(n,r),N(r.dom(),e.length)})},e_=t(QM,yu),t_=t(QM," "),n_=function(e){return N.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},r_=function(e,t){var n=bt(dC.parentsAndSelf(Zt.fromDom(t.container()),e),da);return Bt(n).getOr(e)},o_=function(e,t){return n_(t)?mT(t):mT(t)||zm.prevPosition(r_(e,t).dom(),t).exists(mT)},i_=function(e,t){return n_(t)?hT(t):hT(t)||zm.nextPosition(r_(e,t).dom(),t).exists(hT)},a_=function(e){return ht(["pre","pre-wrap"],e)},u_=function(e){return Xh(e).bind(function(e){return Us(e,jr)}).exists(function(e){return a_(Po(e,"white-space"))})},c_=function(e,t){return zm.prevPosition(e.dom(),t).isNone()},s_=function(e,t){return zm.nextPosition(e.dom(),t).isNone()},l_=function(e,t){return c_(e,t)||s_(e,t)||TD(e,t)||AD(e,t)||PR(e,t)||_R(e,t)},f_=function(e,t){return u_(t)?!1:l_(e,t)||o_(e,t)||i_(e,t)},d_=function(e,t){return u_(t)?!1:TD(e,t)||RD(e,t)||PR(e,t)||o_(e,t)},h_=function(e){var t=e.container(),n=e.offset();return No.isText(t)&&n<t.data.length?N(t,n+1):e},m_=function(e,t){var n=h_(t);return u_(n)?!1:AD(e,n)||BD(e,n)||_R(e,n)||i_(e,n)},g_=function(e,t){return d_(e,t)||m_(e,t)},p_=function(e,t){return Ym(e.charAt(t))},v_=function(e){var t=e.container();return No.isText(t)&&_n(t.data,yu)},y_=function(e){var t=e.split("");return gt(t,function(e,n){return Ym(e)&&n>0&&n<t.length-1&&Zm(t[n-1])&&Zm(t[n+1])?" ":e}).join("")},b_=function(e,t){var n=t.data,r=N(t,0);return p_(n,0)&&!g_(e,r)?(t.data=" "+n.slice(1),!0):!1},C_=function(e){var t=e.data,n=y_(t);return n!==t?(e.data=n,!0):!1},w_=function(e,t){var n=t.data,r=N(t,n.length-1);return p_(n,n.length-1)&&!g_(e,r)?(t.data=n.slice(0,-1)+" ",!0):!1},x_=function(e,t){return J.some(t).filter(v_).bind(function(t){var n=t.container(),r=b_(e,n)||C_(n)||w_(e,n);return r?J.some(t):J.none()})},E_=function(e){var t=Zt.fromDom(e.getBody());e.selection.isCollapsed()&&x_(t,N.fromRangeStart(e.selection.getRng())).each(function(t){e.selection.setRng(t.toRange())})},z_=function(e){return function(t){return t.fold(function(t){return zm.prevPosition(e.dom(),Mf.before(t))},function(e){return zm.firstPositionIn(e)},function(e){return zm.lastPositionIn(e)},function(t){return zm.nextPosition(e.dom(),Mf.after(t))})}},k_=function(e,t){return function(n){return f_(e,n)?e_(t):t_(t)}},N_=function(e){return function(t){return e.selection.setRng(t.toRange()),e.nodeChanged(),!0}},S_=function(e){var n=Mf.fromRangeStart(e.selection.getRng()),r=Zt.fromDom(e.getBody());if(e.selection.isCollapsed()){var o=t(XN.isInlineTarget,e),i=Mf.fromRangeStart(e.selection.getRng());return vS.readLocation(o,e.getBody(),i).bind(z_(r)).bind(k_(r,n)).exists(N_(e))}return!1},T_=function(e,t){qA.execute([{keyCode:vb.SPACEBAR,action:qA.action(S_,e)}],t).each(function(){t.preventDefault()})},A_=function(e){e.on("keydown",function(t){t.isDefaultPrevented()===!1&&T_(e,t)})},R_={setup:A_},B_=function(e){return qs(Zt.fromDom(e.getBody()),"*[data-mce-caret]").fold(U(null),function(e){return e.dom()})},D_=function(e){e.selection.setRng(e.selection.getRng())},M_=function(e,t){t.hasAttribute("data-mce-caret")&&(Al(t),D_(e),e.selection.scrollIntoView(t))},__=function(e,t){var n=B_(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void M_(e,n)):void(Cl(n)&&(M_(e,n),e.undoManager.add()))},P_=function(e){e.on("keyup compositionstart",t(__,e))},O_={setup:P_},H_=Xn().browser,L_=function(e){var t=Ns(function(){e.composing||E_(e)},0);H_.isIE()&&(e.on("keypress",function(){t.throttle()}),e.on("remove",function(){t.cancel()}))},I_=function(e){L_(e),e.on("input",function(t){t.isComposing===!1&&E_(e)})},V_=function(e,t){qA.execute([{keyCode:vb.END,action:QT(e,!0)},{keyCode:vb.HOME,action:QT(e,!1)}],t).each(function(){t.preventDefault()})},F_=function(e){e.on("keydown",function(t){t.isDefaultPrevented()===!1&&V_(e,t)})},U_={setup:F_},j_=function(e){var t=PS.setupSelectedState(e);O_.setup(e),KA.setup(e,t),HD.setup(e,t),JM.setup(e),R_.setup(e),I_(e),U_.setup(e)},q_={setup:j_},$_=function(){function e(e){this.lastPath=[],this.editor=e;var t,n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",function(n){var r,o;r=e.selection.getRng(),o={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset},"nodechange"!==n.type&&sw.isEq(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||!Ri.range&&e.selection.isCollapsed()||bC(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})}),e.on("mouseup",function(t){!t.isDefaultPrevented()&&bC(e)&&("IMG"===e.selection.getNode().nodeName?wi.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&&!this.editor.settings.disable_nodechange&&!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){return e===r?!0:void n.push(e)}),e=e||{},e.element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n;if(n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e),n.length===this.lastPath.length){for(t=n.length;t>=0&&n[t]===this.lastPath[t];t--);if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),W_=function(e){e.on("click",function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()})},K_=function(e){e.parser.addNodeFilter("details",function(e){pt(e,function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")})}),e.serializer.addNodeFilter("details",function(e){pt(e,function(e){var t=e.attr("data-mce-open");e.attr("open",tt(t)?t:null),e.attr("data-mce-open",null)})})},X_=function(e){W_(e),K_(e)},Y_=function(e){return No.isElement(e)&&pa(Zt.fromDom(e))},G_=function(e){var t=e.selection.getRng(),n=N.fromRangeStart(t),r=N.fromRangeEnd(t);if(N.isElementPosition(n)){var o=n.container();Y_(o)&&zm.firstPositionIn(o).each(function(e){return t.setStart(e.container(),e.offset())})}if(N.isElementPosition(r)){var o=n.container();Y_(o)&&zm.lastPositionIn(o).each(function(e){return t.setEnd(e.container(),e.offset())})}e.selection.setRng($z.normalize(t))},Z_=function(e){e.on("click",function(t){t.detail>=3&&G_(e)})},J_=function(e){var t,n,r,o;return o=e.getBoundingClientRect(),t=e.ownerDocument,n=t.documentElement,r=t.defaultView,{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}},Q_=function(e){return e.inline?J_(e.getBody()):{left:0,top:0}},eP=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},tP=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},nP=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=J_(e.getContentAreaContainer()),r=tP(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}},rP=function(e,t,n){return{pageX:n.left-e.left+t.left,pageY:n.top-e.top+t.top}},oP=function(e,t){return rP(Q_(e),eP(e),nP(e,t))},iP={calc:oP},aP=No.isContentEditableFalse,uP=No.isContentEditableTrue,cP=function(e,t){return aP(t)&&t!==e},sP=function(e,t,n){return t===n||e.dom.isChildOf(t,n)?!1:!aP(t)},lP=function(e){var t=e.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},fP=function(e,t,n,r){var o=t.cloneNode(!0);e.dom.setStyles(o,{width:n,height:r}),e.dom.setAttrib(o,"data-mce-selected",null);var i=e.dom.create("div",{"class":"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return e.dom.setStyles(i,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),e.dom.setStyles(o,{margin:0,boxSizing:"border-box"}),i.appendChild(o),i},dP=function(e,t){e.parentNode!==t&&t.appendChild(e)},hP=function(e,t,n,r,o,i){var a=0,u=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&&(u=t.pageY+r-i),e.style.width=n-a+"px",e.style.height=r-u+"px"},mP=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},gP=function(e){return 0===e.button},pP=function(e){return e.element},vP=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}},yP=function(e,t){return function(n){if(gP(n)){var r=xt(t.dom.getParents(n.target),ff.or(aP,uP)).getOr(null);if(cP(t.getBody(),r)){var o=t.dom.getPos(r),i=t.getBody(),a=t.getDoc().documentElement;e.element=r,e.screenX=n.screenX,e.screenY=n.screenY,e.maxX=(t.inline?i.scrollWidth:a.offsetWidth)-2,e.maxY=(t.inline?i.scrollHeight:a.offsetHeight)-2,e.relX=n.pageX-o.x,e.relY=n.pageY-o.y,e.width=r.offsetWidth,e.height=r.offsetHeight,e.ghost=fP(t,r,e.width,e.height)}}}},bP=function(e,t){var n=wi.throttle(function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)},0);return function(r){var o=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(pP(e)&&!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=vP(e,iP.calc(t,r));dP(e.ghost,t.getBody()),hP(e.ghost,a,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}},CP=function(e){var t=e.getSel().getRangeAt(0),n=t.startContainer;return 3===n.nodeType?n.parentNode:n},wP=function(e,t){return function(n){if(e.dragging&&sP(t,CP(t.selection),e.element)){var r=lP(e.element),o=t.fire("drop",{targetClone:r,clientX:n.clientX,clientY:n.clientY});o.isDefaultPrevented()||(r=o.targetClone,t.undoManager.transact(function(){mP(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}EP(e)}},xP=function(e,t){return function(){e.dragging&&t.fire("dragend"),EP(e)}},EP=function(e){e.dragging=!1,e.element=null,mP(e.ghost)},zP=function(t){var n,r,o,i,a,u,c={};n=rs.DOM,u=e.document,r=yP(c,t),o=bP(c,t),i=wP(c,t),a=xP(c,t),t.on("mousedown",r),t.on("mousemove",o),t.on("mouseup",i),n.bind(u,"mousemove",o),n.bind(u,"mouseup",a),t.on("remove",function(){n.unbind(u,"mousemove",o),n.unbind(u,"mouseup",a)})},kP=function(e){e.on("drop",function(t){var n="undefined"!=typeof t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;(aP(n)||aP(e.dom.getContentEditableParent(n)))&&t.preventDefault()})},NP=function(e){zP(e),kP(e)},SP={init:NP},TP=function(t){var n=Ns(function(){if(!t.removed&&t.getBody().contains(e.document.activeElement)){var n=t.selection.getRng();if(n.collapsed){var r=fT(t,t.selection.getRng(),!1);t.selection.setRng(r)}}},0);t.on("focus",function(){n.throttle()}),t.on("blur",function(){n.cancel()})},AP={setup:TP},RP=No.isContentEditableTrue,BP=No.isContentEditableFalse,DP=function(e,t){for(var n=e.getBody();t&&t!==n;){if(RP(t)||BP(t))return t;t=t.parentNode}return null},MP=function(e){var t,n=function(t){return e.dom.isBlock(t)},r=e.getBody(),o=zh(e,r,n,function(){return Bv.hasFocus(e)}),i="sel-"+e.dom.uniqueId(),a=function(t){return e.dom.hasClass(t,"mce-offscreen-selection")},u=function(){var t=e.dom.get(i);return t?t.getElementsByTagName("*")[0]:t},c=function(t){t&&e.selection.setRng(t)},s=function(){return e.selection.getRng()},l=function(t,n,r,i){void 0===i&&(i=!0);var a;return a=e.fire("ShowCaret",{target:n,direction:t,before:r}),a.isDefaultPrevented()?null:(i&&e.selection.scrollIntoView(n,-1===t),o.show(r,n))},f=function(t){t.hasAttribute("data-mce-caret")&&(Al(t),c(s()),e.selection.scrollIntoView(t))},d=function(){e.on("mouseup",function(t){var n=s();n.collapsed&&Yy.isXYInContentArea(e,t.clientX,t.clientY)&&c(lT(e,n,!1))}),e.on("click",function(t){var n;n=DP(e,t.target),n&&(BP(n)&&(t.preventDefault(),e.focus()),RP(n)&&e.dom.isChildOf(n,e.selection.getNode())&&v())}),e.on("blur NewBlock",function(){v()}),e.on("ResizeWindow FullscreenStateChanged",function(){return o.reposition()});var n=function(e){e.on("tap",function(t){var n=DP(e,t.target);BP(n)&&(t.preventDefault(),p(sT(e,n)))},!0)},i=function(e){var t=lm(e);if(!e.firstChild)return!1;var n=Mf.before(e.firstChild),r=t.next(n);return r&&!ET(r)&&!zT(r)},f=function(t,n){var r=e.dom.getParent(t,e.dom.isBlock),o=e.dom.getParent(n,e.dom.isBlock);return r===o},d=function(t,n){var r=e.dom.getParent(t,e.dom.isBlock),o=e.dom.getParent(n,e.dom.isBlock);return r&&e.dom.isChildOf(r,o)&&BP(DP(e,r))===!1?!0:r&&!f(r,o)&&i(r)};n(e),e.on("mousedown",function(t){var n,o=t.target;if((o===r||"HTML"===o.nodeName||e.dom.isChildOf(o,r))&&Yy.isXYInContentArea(e,t.clientX,t.clientY)!==!1)if(n=DP(e,o))BP(n)?(t.preventDefault(),p(sT(e,n))):(v(),RP(n)&&t.shiftKey||pb.isXYWithinRange(t.clientX,t.clientY,e.selection.getRng())||(b(),e.selection.placeCaretAt(t.clientX,t.clientY)));else if(Nh(o)===!1){v(),b();var i=oT(r,t.clientX,t.clientY);if(i&&!d(t.target,i.node)){t.preventDefault();var a=l(1,i.node,i.before,!1);e.getBody().focus(),c(a)}}}),e.on("keypress",function(t){if(!vb.modifierPressed(t))switch(t.keyCode){default:BP(e.selection.getNode())&&t.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=g(e.range);var t=p(e.range,e.forward);t&&(e.range=t)});var h=function(e){return"mcepastebin"===e.id};e.on("AfterSetSelectionRange",function(e){var t=e.range;m(t)||h(t.startContainer.parentNode)||b(),a(t.startContainer.parentNode)||v()}),e.on("copy",function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!Ri.ie){var n=u();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText))}}),SP.init(e),AP.setup(e)},h=function(e){return bl(e)||Nl(e)||Sl(e)},m=function(e){return h(e.startContainer)||h(e.endContainer)},g=function(t){var n=e.schema.getShortEndedElements(),r=e.dom.createRng(),o=t.startContainer,i=t.startOffset,a=t.endContainer,u=t.endOffset;return qt(n,o.nodeName.toLowerCase())?0===i?r.setStartBefore(o):r.setStartAfter(o):r.setStart(o,i),qt(n,a.nodeName.toLowerCase())?0===u?r.setEndBefore(a):r.setEndAfter(a):r.setEnd(a,u),r},p=function(n,o){var a,u,c,s,f,d,h,g,p,v,y=e.$,C=e.dom;if(!n)return null;if(n.collapsed){if(!m(n))if(o===!1){if(g=Kh(-1,r,n),Nh(g.getNode(!0)))return l(-1,g.getNode(!0),!1,!1);if(Nh(g.getNode()))return l(-1,g.getNode(),!g.isAtEnd(),!1)}else{if(g=Kh(1,r,n),Nh(g.getNode()))return l(1,g.getNode(),!g.isAtEnd(),!1);if(Nh(g.getNode(!0)))return l(1,g.getNode(!0),!1,!1)}return null}if(s=n.startContainer,f=n.startOffset,d=n.endOffset,3===s.nodeType&&0===f&&BP(s.parentNode)&&(s=s.parentNode,f=C.nodeIndex(s),s=s.parentNode),1!==s.nodeType)return null;if(d===f+1&&s===n.endContainer&&(a=s.childNodes[f]),!BP(a))return null;if(p=v=a.cloneNode(!0),h=e.fire("ObjectSelected",{target:a,targetClone:p}),h.isDefaultPrevented())return null;u=qs(Zt.fromDom(e.getBody()),"#"+i).fold(function(){return y([])},function(e){return y([e.dom()])}),p=h.targetClone,0===u.length&&(u=y('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",i),u.appendTo(e.getBody())),n=e.dom.createRng(),p===v&&Ri.ie?(u.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(p),n.setStartAfter(u[0].firstChild.firstChild),n.setEndAfter(p)):(u.empty().append(yu).append(p).append(yu),n.setStart(u[0].firstChild,1),n.setEnd(u[0].lastChild,0)),u.css({top:C.getPos(a,e.getBody()).y}),u[0].focus(),c=e.selection.getSel(),c.removeAllRanges(),c.addRange(n);var w=Zt.fromDom(a);return pt(Vs(Zt.fromDom(e.getBody()),"*[data-mce-selected]"),function(e){fr(w,e)||_o(e,"data-mce-selected")}),e.dom.getAttrib(a,"data-mce-selected")||a.setAttribute("data-mce-selected","1"),t=a,b(),n},v=function(){t&&(t.removeAttribute("data-mce-selected"),qs(Zt.fromDom(e.getBody()),"#"+i).each(Lr),t=null),qs(Zt.fromDom(e.getBody()),"#"+i).each(Lr),t=null},y=function(){o.destroy(),t=null},b=function(){o.hide()};return Ri.ceFalse&&d(),{showCaret:l,showBlockCaretContainer:f,hideFakeCaret:b,destroy:y}},_P=function(t){var n=ea.each,r=vb.BACKSPACE,o=vb.DELETE,i=t.dom,a=t.selection,u=t.settings,c=t.parser,s=Ri.gecko,l=Ri.ie,f=Ri.webkit,d="data:text/mce-internal,",h=l?"Text":"URL",m=function(e,n){try{t.getDoc().execCommand(e,!1,n)}catch(r){}},g=function(e){return e.isDefaultPrevented()},p=function(e){var n,r;e.dataTransfer&&(t.selection.isCollapsed()&&"IMG"===e.target.tagName&&a.select(e.target),n=t.selection.getContent(),n.length>0&&(r=d+escape(t.id)+","+escape(n),e.dataTransfer.setData(h,r)))},v=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(h),t&&t.indexOf(d)>=0)?(t=t.substr(d.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null},y=function(e,n){t.queryCommandSupported("mceInsertClipboardContent")?t.execCommand("mceInsertClipboardContent",!1,{content:e,internal:n}):t.execCommand("mceInsertContent",!1,e)},b=function(){var e=function(e){var t=i.create("body"),n=e.cloneContents();return t.appendChild(n),a.serializer.serialize(t,{format:"html"})},n=function(n){var r=e(n),o=i.createRng();o.selectNode(t.getBody());var a=e(o);return r===a};t.on("keydown",function(e){var a,u,c=e.keyCode;if(!g(e)&&(c===o||c===r)){if(a=t.selection.isCollapsed(),u=t.getBody(),a&&!i.isEmpty(u))return;if(!a&&!n(t.selection.getRng()))return;e.preventDefault(),t.setContent(""),u.firstChild&&i.isBlock(u.firstChild)?t.selection.setCursorLocation(u.firstChild,0):t.selection.setCursorLocation(u,0),t.nodeChanged()}})},C=function(){t.shortcuts.add("meta+a",null,"SelectAll")},w=function(){t.inline||i.bind(t.getDoc(),"mousedown mouseup",function(e){var n;if(e.target===t.getDoc().documentElement)if(n=a.getRng(),t.getBody().focus(),"mousedown"===e.type){if(bl(n.startContainer))return;a.placeCaretAt(e.clientX,e.clientY)}else a.setRng(n)})},x=function(){t.on("keydown",function(e){if(!g(e)&&e.keyCode===r){if(!t.getBody().getElementsByTagName("hr").length)return;if(a.isCollapsed()&&0===a.getRng().startOffset){var n=a.getNode(),o=n.previousSibling;if("HR"===n.nodeName)return i.remove(n),void e.preventDefault();o&&o.nodeName&&"hr"===o.nodeName.toLowerCase()&&(i.remove(o),e.preventDefault())}}})},E=function(){e.Range.prototype.getClientRects||t.on("mousedown",function(e){if(!g(e)&&"HTML"===e.target.nodeName){var n=t.getBody();n.blur(),wi.setEditorTimeout(t,function(){n.focus()})}})},z=function(){t.on("click",function(e){var n=e.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==i.getContentEditableParent(n)&&(e.preventDefault(),t.selection.select(n),t.nodeChanged()),"A"===n.nodeName&&i.hasClass(n,"mce-item-anchor")&&(e.preventDefault(),a.select(n))})},k=function(){var e=function(){var e=i.getAttribs(a.getStart().cloneNode(!1));return function(){var r=a.getStart();r!==t.getBody()&&(i.setAttrib(r,"style",null),n(e,function(e){r.setAttributeNode(e.cloneNode(!0))}))}},r=function(){return!a.isCollapsed()&&i.getParent(a.getStart(),i.isBlock)!==i.getParent(a.getEnd(),i.isBlock)};t.on("keypress",function(n){var o;return g(n)||8!==n.keyCode&&46!==n.keyCode||!r()?void 0:(o=e(),t.getDoc().execCommand("delete",!1,null),o(),n.preventDefault(),!1)}),i.bind(t.getDoc(),"cut",function(n){var o;!g(n)&&r()&&(o=e(),wi.setEditorTimeout(t,function(){o()}))})},N=function(){t.on("keydown",function(e){if(!g(e)&&e.keyCode===r&&a.isCollapsed()&&0===a.getRng().startOffset){var t=a.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}})},S=function(){t.on("keydown",function(e){var n,r,o,u,c;if(!g(e)&&e.keyCode===vb.BACKSPACE&&(n=a.getRng(),r=n.startContainer,o=n.startOffset,u=i.getRoot(),c=r,n.collapsed&&0===o)){for(;c&&c.parentNode&&c.parentNode.firstChild===c&&c.parentNode!==u;)c=c.parentNode;"BLOCKQUOTE"===c.tagName&&(t.formatter.toggle("blockquote",null,c),n=i.createRng(),n.setStart(r,0),n.setEnd(r,0),a.setRng(n))}})},T=function(){var e=function(){m("StyleWithCSS",!1),m("enableInlineTableEditing",!1),u.object_resizing||m("enableObjectResizing",!1)};u.readonly||t.on("BeforeExecCommand mousedown",e)},A=function(){var e=function(){n(i.select("a"),function(e){var t=e.parentNode,n=i.getRoot();if(t.lastChild===e){for(;t&&!i.isBlock(t);){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}i.add(t,"br",{"data-mce-bogus":1})}})};t.on("SetContent ExecCommand",function(t){("setcontent"===t.type||"mceInsertLink"===t.command)&&e()})},R=function(){u.forced_root_block&&t.on("init",function(){m("DefaultParagraphSeparator",yh.getForcedRootBlock(t))})},B=function(){t.on("keyup focusin mouseup",function(e){vb.modifierPressed(e)||a.normalize()},!0)},D=function(){t.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},M=function(){t.inline||t.on("keydown",function(){e.document.activeElement===e.document.body&&t.getWin().focus()})},_=function(){t.inline||(t.contentStyles.push("body {min-height: 150px}"),t.on("click",function(e){var n;if("HTML"===e.target.nodeName){if(Ri.ie>11)return void t.getBody().focus();n=t.selection.getRng(),t.getBody().focus(),t.selection.setRng(n),t.selection.normalize(),t.nodeChanged()}}))},P=function(){Ri.mac&&t.on("keydown",function(e){if(vb.metaKeyPressed(e)&&!e.shiftKey&&(37===e.keyCode||39===e.keyCode)){e.preventDefault();var n=t.selection.getSel();n.modify("move",37===e.keyCode?"backward":"forward","lineboundary")}})},O=function(){m("AutoUrlDetect",!1)},H=function(){t.on("click",function(e){var t=e.target;do if("A"===t.tagName)return void e.preventDefault();while(t=t.parentNode)}),t.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},L=function(){t.on("init",function(){t.dom.bind(t.getBody(),"submit",function(e){e.preventDefault()})})},I=function(){c.addNodeFilter("br",function(e){for(var t=e.length;t--;)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()})},V=function(){t.on("dragstart",function(e){p(e)}),t.on("drop",function(e){if(!g(e)){var n=v(e);if(n&&n.id!==t.id){e.preventDefault();var r=oC.fromPoint(e.x,e.y,t.getDoc());a.setRng(r),y(n.html,!0)}}})},F=function(){},U=function(){var e;return!s||t.removed?!1:(e=t.selection.getSel(),!e||!e.rangeCount||0===e.rangeCount)};return S(),b(),Ri.windowsPhone||B(),f&&(w(),z(),R(),L(),N(),I(),Ri.iOS?(M(),_(),H()):C()),Ri.ie>=11&&(_(),N()),Ri.ie&&(C(),O(),V()),s&&(x(),E(),k(),T(),A(),D(),P(),N()),{refreshContentEditable:F,isHidden:U}},PP=rs.DOM,OP=function(e,t){var n=Zt.fromDom(e.getDoc().head),r=Zt.fromTag("style");Ao(r,"type","text/css"),Mr(r,Zt.fromText(t)),Mr(n,r)},HP=function(e){var t=ox(e.settings,e.schema);return t.addAttributeFilter("src,href,style,tabindex",function(t,n){for(var r,o,i=t.length,a=e.dom,u="data-mce-"+n;i--;)if(r=t[i],o=r.attr(n),o&&!r.attr(u)){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(u,o),r.attr(n,o)):"tabindex"===n?(r.attr(u,o),r.attr(n,null)):r.attr(u,e.convertURL(o,n,r.name))}}),t.addNodeFilter("script",function(e){for(var t,n,r=e.length;r--;)t=e[r],n=t.attr("type")||"no/type",0!==n.indexOf("mce-")&&t.attr("type","mce-"+n)}),e.settings.preserve_cdata&&t.addNodeFilter("#cdata",function(t){for(var n,r=t.length;r--;)n=t[r],n.type=8,n.name="#comment",n.value="[CDATA["+e.dom.encode(n.value)+"]]"}),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(t){for(var n,r=t.length,o=e.schema.getNonEmptyElements();r--;)n=t[r],n.isEmpty(o)&&0===n.getAll("br").length&&(n.append(new $g("br",1)).shortEnded=!0)}),t},LP=function(e){e.settings.auto_focus&&wi.setEditorTimeout(e,function(){var t;t=e.settings.auto_focus===!0?e:e.editorManager.get(e.settings.auto_focus),t.destroyed||t.focus()},100)},IP=function(e){var t=e.dom.getRoot();e.inline||bC(e)&&e.selection.getStart(!0)!==t||zm.firstPositionIn(t).each(function(t){var n=t.getNode(),r=No.isTable(n)?zm.firstPositionIn(n).getOr(t):t;Ri.browser.isIE()?Jp.storeNative(e,r.toRange()):e.selection.setRng(r.toRange())})},VP=function(e){e.bindPendingEventDelegates(),e.initialized=!0,Xv(e),e.focus(!0),IP(e),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),LP(e)},FP=function(e){return e.inline?PP.styleSheetLoader:e.dom.styleSheetLoader},UP=function(t,n){var r,o,i=t.settings,u=t.getElement(),c=t.getDoc();i.inline||(t.getElement().style.visibility=t.orgVisibility),n||t.inline||(c.open(),c.write(t.iframeHTML),c.close()),t.inline&&(t.on("remove",function(){var e=this.getBody();PP.removeClass(e,"mce-content-body"),PP.removeClass(e,"mce-edit-focus"),PP.setAttrib(e,"contentEditable",null)}),PP.addClass(u,"mce-content-body"),t.contentDocument=c=e.document,t.contentWindow=e.window,t.bodyElement=u,t.contentAreaContainer=u,i.root_name=u.nodeName.toLowerCase()),r=t.getBody(),r.disabled=!0,t.readonly=!!i.readonly,t.readonly||(t.inline&&"static"===PP.getStyle(r,"position",!0)&&(r.style.position="relative"),r.contentEditable=t.getParam("content_editable_state",!0)),r.disabled=!1,t.editorUpload=Px(t),t.schema=a(i),t.dom=rs(c,{keep_values:!0,url_converter:t.convertURL,url_converter_scope:t,hex_colors:i.force_hex_style_colors,update_styles:!0,root_element:t.inline?t.getBody():null,collect:function(){return t.inline},schema:t.schema,contentCssCors:yh.shouldUseContentCssCors(t),referrerPolicy:yh.getReferrerPolicy(t),onSetAttrib:function(e){t.fire("SetAttrib",e)}}),t.parser=HP(t),t.serializer=bx(i,t),t.selection=Vw(t.dom,t.getWin(),t.serializer,t),t.annotator=Ig(t),t.formatter=dk(t),t.undoManager=nN(t),t._nodeChangeDispatcher=new $_(t),t._selectionOverrides=MP(t),pN.setup(t),X_(t),Z_(t),q_.setup(t),EN.setup(t),lN(t),Wv(t),i.browser_spellcheck||i.gecko_spellcheck||(c.body.spellcheck=!1,PP.setAttrib(r,"spellcheck","false")),t.quirks=_P(t),Kv(t);
var s=yh.getDirectionality(t);void 0!==s&&(r.dir=s),i.protect&&t.on("BeforeSetContent",function(e){ea.each(i.protect,function(t){e.content=e.content.replace(t,function(e){return"<!--mce:protected "+escape(e)+"-->"})})}),t.on("SetContent",function(){t.addVisual(t.getBody())}),t.load({initial:!0,format:"html"}),t.startContent=t.getContent({format:"raw"}),t.on("compositionstart compositionend",function(e){t.composing="compositionstart"===e.type}),t.contentStyles.length>0&&(o="",ea.each(t.contentStyles,function(e){o+=e+"\r\n"}),t.dom.addStyle(o)),FP(t).loadAll(t.contentCSS,function(){VP(t)},function(){VP(t)}),i.content_style&&OP(t,i.content_style)},jP={initContentBody:UP},qP=rs.DOM,$P=function(t,n){if(e.document.domain!==e.window.location.hostname&&Ri.browser.isIE()){var r=Mx.uuid("mce");t[r]=function(){jP.initContentBody(t)};var o='javascript:(function(){document.open();document.domain="'+e.document.domain+'";var ed = window.parent.tinymce.get("'+t.id+'");document.write(ed.iframeHTML);document.close();ed.'+r+"(true);})()";return qP.setAttrib(n,"src",o),!0}return!1},WP=function(e,t,n,r){var o=Zt.fromTag("iframe");return Ro(o,r),Ro(o,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),Ps(o,"tox-edit-area__iframe"),o},KP=function(e){var t,n,r;return r=yh.getDocType(e)+"<html><head>",yh.getDocumentBaseUrl(e)!==e.documentBaseUrl&&(r+='<base href="'+e.documentBaseURI.getURI()+'" />'),r+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',t=yh.getBodyId(e),n=yh.getBodyClass(e),yh.getContentSecurityPolicy(e)&&(r+='<meta http-equiv="Content-Security-Policy" content="'+yh.getContentSecurityPolicy(e)+'" />'),r+='</head><body id="'+t+'" class="mce-content-body '+n+'" data-id="'+e.id+'"><br></body></html>'},XP=function(e,t){var n=e.editorManager.translate("Rich Text Area. Press ALT-0 for help."),r=WP(e.id,n,t.height,yh.getIframeAttrs(e)).dom();r.onload=function(){r.onload=null,e.fire("load")};var o=$P(e,r);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=r,e.iframeHTML=KP(e),qP.add(t.iframeContainer,r),o},YP=function(e,t){var n=XP(e,t);t.editorContainer&&(qP.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=qP.isHidden(t.editorContainer)),e.getElement().style.display="none",qP.setAttrib(e.id,"aria-hidden","true"),n||jP.initContentBody(e)},GP={init:YP},ZP=rs.DOM,JP=function(e,t,n){var r=Gy.get(n),o=Gy.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=ea.trim(n),r&&-1===ea.inArray(t,n)){if(ea.each(Gy.dependencies(n),function(n){JP(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(a){sb.pluginInitError(e,n,a)}}},QP=function(e){return e.replace(/^\-/,"")},eO=function(e){var t=[];ea.each(e.settings.plugins.split(/[ ,]/),function(n){JP(e,t,QP(n))})},tO=function(e){var t=ea.trim(e.settings.icons),n=e.ui.registry.getAll().icons,r=lb(),o=$t($t({},r),Oy.get(t).icons);Ot(o,function(t,r){qt(n,r)||e.ui.registry.addIcon(r,t)})},nO=function(e){var t=e.settings.theme;if(tt(t)){e.settings.theme=QP(t);var n=Zy.get(t);e.theme=new n(e,Zy.urls[t]),e.theme.init&&e.theme.init(e,Zy.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}},rO=function(e){return e.theme.renderUI()},oO=function(e){var t=e.getElement(),n=e.settings.theme,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},iO=function(e){return{editorContainer:e,iframeContainer:e}},aO=function(e){var t=ZP.create("div");return ZP.insertAfter(t,e),iO(t)},uO=function(e){var t=e.getElement();return e.inline?iO(null):aO(t)},cO=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,tt(e.settings.theme)?rO(e):at(e.settings.theme)?oO(e):uO(e)},sO=function(e){e.fire("ScriptsLoaded"),tO(e),nO(e),eO(e);var t=cO(e);return e.editorContainer=t.editorContainer?t.editorContainer:null,hb(e),e.inline?jP.initContentBody(e):GP.init(e,t)},lO={init:sO},fO=rs.DOM,dO=function(e){return"-"===e.charAt(0)},hO=function(e,t){var n=yh.getLanguageCode(t),r=yh.getLanguageUrl(t);if(zs.hasCode(n)===!1&&"en"!==n){var o=""!==r?r:t.editorManager.baseURL+"/langs/"+n+".js";e.add(o,V,void 0,function(){sb.languageLoadError(t,o,n)})}},mO=function(e,t,n,r){var o=t.settings,i=o.theme;if(tt(i)){if(!dO(i)&&!Zy.urls.hasOwnProperty(i)){var a=o.theme_url;a?Zy.load(i,t.documentBaseURI.toAbsolute(a)):Zy.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue(function(){Zy.waitFor(i,r)})}else r()},gO=function(e){return J.from(yh.getIconsUrl(e)).filter(function(e){return e.length>0}).map(function(e){return{url:e,name:J.none()}})},pO=function(e){return J.from(yh.getIconPackName(e)).filter(function(e){return e.length>0&&!Oy.has(e)}).map(function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons.js",name:J.some(t)}})},vO=function(e,t){gO(t).orThunk(function(){return pO(t)}).each(function(n){e.add(n.url,V,void 0,function(){sb.iconsLoadError(t,n.url,n.name.getOrUndefined())})})},yO=function(e,t,n){rt(t.plugins)&&(t.plugins=t.plugins.join(" ")),ea.each(t.external_plugins,function(n,r){Gy.load(r,n,V,void 0,function(){sb.pluginLoadError(e,n,r)}),t.plugins+=" "+r}),ea.each(t.plugins.split(/[ ,]/),function(t){if(t=ea.trim(t),t&&!Gy.urls[t])if(dO(t)){t=t.substr(1,t.length);var r=Gy.dependencies(t);ea.each(r,function(t){var r={prefix:"plugins/",resource:t,suffix:"/plugin"+n+".js"},o=Gy.createUrl(r,t);Gy.load(o.resource,o,V,void 0,function(){sb.pluginLoadError(e,o.prefix+o.resource+o.suffix,o.resource)})})}else{var o={prefix:"plugins/",resource:t,suffix:"/plugin"+n+".js"};Gy.load(t,o,V,void 0,function(){sb.pluginLoadError(e,o.prefix+o.resource+o.suffix,t)})}})},bO=function(e,t){var n=fs.ScriptLoader;mO(n,e,t,function(){hO(n,e),vO(n,e),yO(e,e.settings,t),n.loadQueue(function(){e.removed||lO.init(e)},e,function(){e.removed||lO.init(e)})})},CO=function(t){var n=t.settings,r=t.id;zs.setCode(yh.getLanguageCode(t));var o=function(){fO.unbind(e.window,"ready",o),t.render()};if(!Du.Event.domLoaded)return void fO.bind(e.window,"ready",o);if(t.getElement()&&Ri.contentEditable){n.inline?t.inline=!0:(t.orgVisibility=t.getElement().style.visibility,t.getElement().style.visibility="hidden");var i=t.getElement().form||fO.getParent(r,"form");i&&(t.formElement=i,n.hidden_input&&!No.isTextareaOrInput(t.getElement())&&(fO.insertAfter(fO.create("input",{type:"hidden",name:r}),r),t.hasHiddenInput=!0),t.formEventDelegate=function(e){t.fire(e.type,e)},fO.bind(i,"submit reset",t.formEventDelegate),t.on("reset",function(){t.resetContent()}),!n.submit_patch||i.submit.nodeType||i.submit.length||i._mceOldSubmit||(i._mceOldSubmit=i.submit,i.submit=function(){return t.editorManager.triggerSave(),t.setDirty(!1),i._mceOldSubmit(i)})),t.windowManager=Jy(t),t.notificationManager=R(t),"xml"===n.encoding&&t.on("GetContent",function(e){e.save&&(e.content=fO.encode(e.content))}),n.add_form_submit_trigger&&t.on("submit",function(){t.initialized&&t.save()}),n.add_unload_trigger&&(t._beforeUnload=function(){!t.initialized||t.destroyed||t.isHidden()||t.save({format:"raw",no_events:!0,set_dirty:!1})},t.editorManager.on("BeforeUnload",t._beforeUnload)),t.editorManager.add(t),bO(t,t.suffix)}},wO={render:CO},xO=function(e){return e.firstChild&&e.firstChild===e.lastChild},EO=function(e){return"br"===e.name||e.value===yu},zO=function(e,t){var n=e.getBlockElements();return n[t.name]&&xO(t)&&EO(t.firstChild)},kO=function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||zO(e,t))},NO=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),kO(e,r)&&(r=r.prev),n&&n===r?"ul"===n.name||"ol"===n.name:!1},SO=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},TO=function(e,t,n){var r=t.serialize(n),o=e.createFragment(r);return SO(o)},AO=function(e){return ea.grep(e.childNodes,function(e){return"LI"===e.nodeName})},RO=function(e){return e.data===yu||No.isBr(e)},BO=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&RO(e.firstChild)},DO=function(e){return!e.firstChild||BO(e)},MO=function(e){return e.length>0&&DO(e[e.length-1])?e.slice(0,-1):e},_O=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},PO=function(e,t){return!!_O(e,t)},OO=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]},HO=function(e,t){var n=Mf.before(e),r=lm(t),o=r.next(n);return o?o.toRange():null},LO=function(e,t){var n=Mf.after(e),r=lm(t),o=r.prev(n);return o?o.toRange():null},IO=function(e,t,n,r){var o=OO(e,r),i=e.parentNode;return i.insertBefore(o[0],e),ea.each(t,function(t){i.insertBefore(t,e)}),i.insertBefore(o[1],e),i.removeChild(e),LO(t[t.length-1],n)},VO=function(e,t,n){var r=e.parentNode;return ea.each(t,function(t){r.insertBefore(t,e)}),HO(e,n)},FO=function(e,t,n,r){return r.insertAfter(t.reverse(),e),LO(t[0],n)},UO=function(e,t,n,r){var o=TO(t,e,r),i=_O(t,n.startContainer),a=MO(AO(o.firstChild)),u=1,c=2,s=t.getRoot(),l=function(e){var r=Mf.fromRangeStart(n),o=lm(t.getRoot()),a=e===u?o.prev(r):o.next(r);return a?_O(t,a.getNode())!==i:!0};return l(u)?VO(i,a,s):l(c)?FO(i,a,s,t):IO(i,a,s,n)},jO={isListFragment:NO,insertAtCaret:UO,isParentBlockLi:PO,trimListItems:MO,listItems:AO},qO=function(e,t){return No.isText(e)&&e.nodeValue[t-1]===yu},$O=function(e,t){var n,r;n=e.startContainer,r=e.startOffset;var o=function(e){return n[e]&&3===n[e].nodeType};return 3===n.nodeType&&(r>0?t=t.replace(/^&nbsp;/," "):o("previousSibling")||(t=t.replace(/^ /,"&nbsp;")),r<n.length?t=t.replace(/&nbsp;(<br>|)$/," "):o("nextSibling")||(t=t.replace(/(&nbsp;| )(<br>|)$/,"&nbsp;"))),t},WO=function(e,t){var n,r;return n=e.startContainer,r=e.startOffset,3===n.nodeType&&e.collapsed&&(n.data[r]===yu?(n.deleteData(r,1),/[\u00a0| ]$/.test(t)||(t+=" ")):n.data[r-1]===yu&&(n.deleteData(r-1,1),/[\u00a0| ]$/.test(t)||(t=" "+t))),t},KO=No.matchNodeNames(["td","th"]),XO=function(e,t){var n=e.selection.getRng(),r=n.startContainer,o=n.startOffset;n.collapsed&&qO(r,o)&&No.isText(r)&&(r.insertData(o-1," "),r.deleteData(o,1),n.setStart(r,o),n.setEnd(r,o),e.selection.setRng(n)),e.selection.setContent(t)},YO=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):XO(e,t)}},GO=function(e,t){J.from(e.getParent(t,"td,th")).map(Zt.fromDom).each(Ux.trimBlockTrailingBr)},ZO=function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=new sz(r);ea.each(r.select("*[data-mce-fragment]"),function(e){for(var t=e.parentNode;t&&t!==o;t=t.parentNode)n[e.nodeName.toLowerCase()]&&i.compare(t,e)&&r.remove(e,!0)})}},JO=function(e){for(var t=e;t=t.walk();)1===t.type&&t.attr("data-mce-fragment","1")},QO=function(e){ea.each(e.getElementsByTagName("*"),function(e){e.removeAttribute("data-mce-fragment")})},eH=function(e){return!!e.getAttribute("data-mce-fragment")},tH=function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]},nH=function(e,t){var n,r,o,i,a,u=e.dom,c=e.selection,s=function(t){for(var n=e.getBody();t&&t!==n;t=t.parentNode)if("false"===e.dom.getContentEditable(t))return t;return null};if(t){if(e.selection.scrollIntoView(t),n=s(t))return u.remove(t),void c.select(n);var l=u.createRng();i=t.previousSibling,i&&3===i.nodeType?(l.setStart(i,i.nodeValue.length),Ri.ie||(a=t.nextSibling,a&&3===a.nodeType&&(i.appendData(a.data),a.parentNode.removeChild(a)))):(l.setStartBefore(t),l.setEndBefore(t));var f=function(t){var n=Mf.fromRangeStart(t),r=lm(e.getBody());return n=r.next(n),n?n.toRange():void 0};r=u.getParent(t,u.isBlock),u.remove(t),r&&u.isEmpty(r)&&(e.$(r).empty(),l.setStart(r,0),l.setEnd(r,0),KO(r)||eH(r)||!(o=f(l))?u.add(r,u.create("br",{"data-mce-bogus":"1"})):(l=o,u.remove(r))),c.setRng(l)}},rH=function(e,t,n){var r,o,i,a,u,c,s,l,f,d,h,m=e.selection,g=e.dom;if(/^ | $/.test(t)&&(t=$O(m.getRng(),t)),r=e.parser,h=n.merge,o=lp({validate:e.settings.validate},e.schema),d='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;&#x200B;</span>',c={content:t,format:"html",selection:!0,paste:n.paste},c=e.fire("BeforeSetContent",c),c.isDefaultPrevented())return void e.fire("SetContent",{content:c.content,format:"html",selection:!0,paste:n.paste});t=c.content,-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,d),l=m.getRng();var p=l.startContainer||(l.parentElement?l.parentElement():null),v=e.getBody();p===v&&m.isCollapsed()&&g.isBlock(v.firstChild)&&tH(e,v.firstChild)&&g.isEmpty(v.firstChild)&&(l=g.createRng(),l.setStart(v.firstChild,0),l.setEnd(v.firstChild,0),m.setRng(l)),m.isCollapsed()||(e.selection.setRng($z.normalize(e.selection.getRng())),e.getDoc().execCommand("Delete",!1,null),t=WO(e.selection.getRng(),t)),i=m.getNode();var y={context:i.nodeName.toLowerCase(),data:n.data,insert:!0};if(u=r.parse(t,y),n.paste===!0&&jO.isListFragment(e.schema,u)&&jO.isParentBlockLi(g,i))return l=jO.insertAtCaret(o,g,e.selection.getRng(),u),e.selection.setRng(l),void e.fire("SetContent",c);if(JO(u),f=u.lastChild,"mce_marker"===f.attr("id"))for(s=f,f=f.prev;f;f=f.walk(!0))if(3===f.type||!g.isBlock(f.name)){e.schema.isValidChild(f.parent.name,"span")&&f.parent.insert(s,f,"br"===f.name);break}if(e._selectionOverrides.showBlockCaretContainer(i),y.invalid){for(XO(e,d),i=m.getNode(),a=e.getBody(),9===i.nodeType?i=f=a:f=i;f!==a;)i=f,f=f.parentNode;t=i===a?a.innerHTML:g.getOuterHTML(i),t=o.serialize(r.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return o.serialize(u)}))),i===a?g.setHTML(a,t):g.setOuterHTML(i,t)}else t=o.serialize(u),YO(e,t,i);ZO(e,h),nH(e,g.get("mce_marker")),QO(e.getBody()),GO(e.dom,e.selection.getStart()),e.fire("SetContent",c),e.addVisual()},oH=function(e){var t;return"string"!=typeof e?(t=ea.extend({paste:e.paste,data:{paste:e.paste}},e),{content:e.content,details:t}):{content:e,details:{}}},iH=function(e,t){var n=oH(t);rH(e,n.content,n.details)},aH={insertAtCaret:iH},uH=function(e,t){e.getDoc().execCommand(t,!1,null)},cH=function(e){MD.backspaceDelete(e,!1)||oB.backspaceDelete(e,!1)||sB.backspaceDelete(e,!1)||yB.backspaceDelete(e,!1)||ER.backspaceDelete(e,!1)||lD.backspaceDelete(e)||BR.backspaceDelete(e,!1)||zB.backspaceDelete(e,!1)||(uH(e,"Delete"),QA.paddEmptyBody(e))},sH=function(e){oB.backspaceDelete(e,!0)||sB.backspaceDelete(e,!0)||yB.backspaceDelete(e,!0)||ER.backspaceDelete(e,!0)||lD.backspaceDelete(e)||BR.backspaceDelete(e,!0)||zB.backspaceDelete(e,!0)||uH(e,"ForwardDelete")},lH={deleteCommand:cH,forwardDeleteCommand:sH},fH=function(e,t,n){for(var r=e.dom(),o=at(n)?n:U(!1);r.parentNode;){r=r.parentNode;var i=Zt.fromDom(r),a=t(i);if(a.isSome())return a;if(o(i))break}return J.none()},dH=function(e,t,n){var r=t(e);return r.orThunk(function(){return n(e)?J.none():fH(e,t,n)})},hH={"font-size":"size","font-family":"face"},mH=function(e,t,n){var r=function(t){return Ho(t,e).orThunk(function(){return"font"===Vr(t)?jt(hH,e).bind(function(e){return Do(t,e)}):J.none()})},o=function(e){return fr(Zt.fromDom(t),e)};return dH(Zt.fromDom(n),function(e){return r(e)},o)},gH=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},pH=function(e,t){return/[0-9.]+px$/.test(e)?gH(72*parseInt(e,10)/96,t||0)+"pt":e},vH=function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},yH=function(e,t){return J.from(rs.DOM.getStyle(t,e,!0))},bH=function(e){return function(t,n){return J.from(n).map(Zt.fromDom).filter(jr).bind(function(n){return mH(e,t,n.dom()).or(yH(e,n.dom()))}).getOr("")}},CH={getFontSize:bH("font-size"),getFontFamily:F(vH,bH("font-family")),toPt:pH},wH=function(e){return zm.firstPositionIn(e.getBody()).map(function(e){var t=e.container();return No.isText(t)?t.parentNode:t})},xH=function(e,t){return e.startContainer===t&&0===e.startOffset},EH=function(e){return J.from(e.selection.getRng()).bind(function(t){var n=e.getBody();return xH(t,n)?J.none():J.from(e.selection.getStart(!0))})},zH=function(e,t){if(/^[0-9\.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&7>=n){var r=yh.getFontStyleValues(e),o=yh.getFontSizeClasses(e);return o?o[n-1]||t:r[n-1]||t}return t}return t},kH=function(e){var t=e.split(/\s*,\s*/);return gt(t,function(e){return-1===e.indexOf(" ")||Pn(e,'"')||Pn(e,"'")?e:"'"+e+"'"}).join(",")},NH=function(e,t){var n=zH(e,t);e.formatter.toggle("fontname",{value:kH(n)}),e.nodeChanged()},SH=function(e){return EH(e).fold(function(){return wH(e).map(function(t){return CH.getFontFamily(e.getBody(),t)}).getOr("")},function(t){return CH.getFontFamily(e.getBody(),t)})},TH=function(e,t){e.formatter.toggle("fontsize",{value:zH(e,t)}),e.nodeChanged()},AH=function(e){return EH(e).fold(function(){return wH(e).map(function(t){return CH.getFontSize(e.getBody(),t)}).getOr("")},function(t){return CH.getFontSize(e.getBody(),t)})},RH=ea.each,BH=ea.map,DH=ea.inArray,MH=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,a=!1,u=this;if(!u.editor.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?Jp.restore(u.editor):u.editor.focus(),r=u.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;if(i=e.toLowerCase(),o=u.commands.exec[i])return o(i,t,n),u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(RH(this.editor.plugins,function(r){return r.execCommand&&r.execCommand(e,t,n)?(u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),a=!0,!1):void 0}),a)return a;if(u.editor.theme&&u.editor.theme.execCommand&&u.editor.theme.execCommand(e,t,n))return u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{a=u.editor.getDoc().execCommand(e,t,n)}catch(c){}return a?(u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0):!1}},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){var n=this;t=t||"exec",RH(e,function(e,r){RH(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?{value:t}:void 0),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":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},"Cut,Copy,Paste":function(n){var r,o=e.getDoc();try{t.execNativeCommand(n)}catch(i){r=!0}if("paste"!==n||o.queryCommandEnabled(n)||(r=!0),r||!o.queryCommandSupported(n)){var a=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");Ri.mac&&(a=a.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:a,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");return void(t&&e.dom.remove(t,!0))}e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),RH("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,o;t.execNativeCommand(n),r=e.dom.getParent(e.selection.getNode(),"ol,ul"),r&&(o=r.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(o.nodeName)&&(t.storeSelection(),e.dom.split(o,r),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,r)},FontName:function(t,n,r){NH(e,r)},FontSize:function(t,n,r){TH(e,r)},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){return 1===t.nodeType&&o++===r?(e.selection.select(t),!1):void 0},e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){aH.insertAtCaret(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){YM.insert(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){ED(e,t)},mceRepaint:function(){},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){var o;"string"==typeof r&&(r={href:r}),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(),No.isContentEditableTrue);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},"delete":function(){lH.deleteCommand(e)},forwardDelete:function(){lH.forwardDeleteCommand(e)},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return AM.insert(e,r),!0}});var n=function(t){return function(){var n=e.selection.isCollapsed()?[e.dom.getParent(e.selection.getNode(),e.dom.isBlock)]:e.selection.getSelectedBlocks(),r=BH(n,function(n){return!!e.formatter.matchNode(n,t)});return-1!==DH(r,!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 bD(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 SH(e)},this),t.addQueryValueHandler("FontSize",function(){return AH(e)},this)},e}(),_H=ea.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"," "),PH=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||W}return e.isNative=function(e){return!!_H[e.toLowerCase()]},e.prototype.fire=function(e,t){var n,r,o,i;if(e=e.toLowerCase(),t=t||{},t.type=e,t.target||(t.target=this.scope),t.preventDefault||(t.preventDefault=function(){t.isDefaultPrevented=K},t.stopPropagation=function(){t.isPropagationStopped=K},t.stopImmediatePropagation=function(){t.isImmediatePropagationStopped=K},t.isDefaultPrevented=W,t.isPropagationStopped=W,t.isImmediatePropagationStopped=W),this.settings.beforeFire&&this.settings.beforeFire(t),n=this.bindings[e])for(r=0,o=n.length;o>r;r++){if(i=n[r],i.once&&this.off(e,i.func),t.isImmediatePropagationStopped())return t.stopPropagation(),t;if(i.func.call(this.scope,t)===!1)return t.preventDefault(),t}return t},e.prototype.on=function(e,t,n,r){var o,i,a;if(t===!1&&(t=W),t){var u={func:t};for(r&&ea.extend(u,r),i=e.toLowerCase().split(" "),a=i.length;a--;)e=i[a],o=this.bindings[e],o||(o=this.bindings[e]=[],this.toggleEvent(e,!0)),n?o.unshift(u):o.push(u)}return this},e.prototype.off=function(e,t){var n,r,o,i,a;if(e)for(i=e.toLowerCase().split(" "),n=i.length;n--;){if(e=i[n],r=this.bindings[e],!e){for(o in this.bindings)this.toggleEvent(o,!1),delete this.bindings[o];return this}if(r){if(t)for(a=r.length;a--;)r[a].func===t&&(r=r.slice(0,a).concat(r.slice(a+1)),this.bindings[e]=r);else r.length=0;r.length||(this.toggleEvent(e,!1),delete this.bindings[e])}}else{for(e in this.bindings)this.toggleEvent(e,!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}(),OH=function(e){return e._eventDispatcher||(e._eventDispatcher=new PH({scope:e,toggleEvent:function(t,n){PH.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},HH={fire:function(e,t,n){var r=this;if(r.removed&&"remove"!==e&&"detach"!==e)return t;var o=OH(r).fire(e,t);if(n!==!1&&r.parent)for(var i=r.parent();i&&!o.isPropagationStopped();)i.fire(e,o,!1),i=i.parent();return o},on:function(e,t,n){return OH(this).on(e,t,n)},off:function(e,t){return OH(this).off(e,t)},once:function(e,t){return OH(this).once(e,t)},hasEventListeners:function(e){return OH(this).has(e)}},LH="data-mce-contenteditable",IH=function(e,t,n){Ls(e,t)&&n===!1?Hs(e,t):n&&Ps(e,t)},VH=function(e,t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},FH=function(e,t){e.dom().contentEditable=t?"true":"false"},UH=function(e){pt(Vs(e,'*[contenteditable="true"]'),function(e){Ao(e,LH,"true"),FH(e,!1)})},jH=function(e){pt(Vs(e,"*["+LH+'="true"]'),function(e){_o(e,LH),FH(e,!0)})},qH=function(e){J.from(e.selection.getNode()).each(function(e){e.removeAttribute("data-mce-selected")})},$H=function(e){e.selection.setRng(e.selection.getRng())},WH=function(e,t){var n=Zt.fromDom(e.getBody());IH(n,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),qH(e),e.readonly=!0,FH(n,!1),UH(n)):(e.readonly=!1,FH(n,!0),jH(n),VH(e,"StyleWithCSS",!1),VH(e,"enableInlineTableEditing",!1),VH(e,"enableObjectResizing",!1),Bv.hasEditorOrUiFocus(e)&&e.focus(),$H(e),e.nodeChanged())},KH=function(e){return e.readonly},XH=function(e){e.parser.addAttributeFilter("contenteditable",function(t){KH(e)&&pt(t,function(e){e.attr(LH,e.attr("contenteditable")),e.attr("contenteditable","false")})}),e.serializer.addAttributeFilter(LH,function(t){KH(e)&&pt(t,function(e){e.attr("contenteditable",e.attr(LH))})}),e.serializer.addTempAttr(LH)},YH=function(e){e.serializer?XH(e):e.on("PreInit",function(){XH(e)})},GH=function(e){return"click"===e.type},ZH=function(e,t){return null!==e.dom.getParent(t,"a")},JH=function(e,t){var n=t.target;GH(t)&&!vb.metaKeyPressed(t)&&ZH(e,n)&&t.preventDefault()},QH=function(e){e.on("ShowCaret",function(t){KH(e)&&t.preventDefault()}),e.on("ObjectSelected",function(t){KH(e)&&t.preventDefault()})},eL=rs.DOM,tL=function(e,t){return"selectionchange"===t?e.getDoc():!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t)?e.getDoc().documentElement:e.settings.event_root?(e.eventRoot||(e.eventRoot=eL.select(e.settings.event_root)[0]),e.eventRoot):e.getBody()},nL=function(e){return!e.hidden&&!KH(e)},rL=function(e,t,n){nL(e)?e.fire(t,n):KH(e)&&JH(e,n)},oL=function(e,t){var n,r;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed)if(n=tL(e,t),e.settings.event_root){if(kT||(kT={},e.editorManager.on("removeEditor",function(){var t;if(!e.editorManager.activeEditor&&kT){for(t in kT)e.dom.unbind(tL(e,t));kT=null}})),kT[t])return;r=function(n){for(var r=n.target,o=e.editorManager.get(),i=o.length;i--;){var a=o[i].getBody();(a===r||eL.isChildOf(r,a))&&rL(o[i],t,n)}},kT[t]=r,eL.bind(n,t,r)}else r=function(n){rL(e,t,n)},eL.bind(n,t,r),e.delegates[t]=r},iL=$t($t({},HH),{bindPendingEventDelegates:function(){var e=this;ea.each(e._pendingNativeEvents,function(t){oL(e,t)})},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(t?n.initialized?oL(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(tL(n,e),e,n.delegates[e]),delete n.delegates[e]))},unbindAllNativeEvents:function(){var e,t=this,n=t.getBody(),r=t.dom;if(t.delegates){for(e in t.delegates)t.dom.unbind(tL(t,e),e,t.delegates[e]);delete t.delegates}!t.inline&&n&&r&&(n.onload=null,r.unbind(t.getWin()),r.unbind(t.getDoc())),r&&(r.unbind(n),r.unbind(t.getContainer()))}}),aL=["design","readonly"],uL=function(t,n,r,o){var i=r[n.get()],a=r[o];try{a.activate()}catch(u){return void e.console.error("problem while activating editor mode "+o+":",u)}i.deactivate(),i.editorReadOnly!==a.editorReadOnly&&WH(t,a.editorReadOnly),n.set(o),jv(t,o)},cL=function(e,t,n,r){if(r!==n.get()){if(!qt(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?uL(e,n,t,r):e.on("init",function(){return uL(e,n,t,r)})}},sL=function(t,n,r){var o;if(ht(aL,n))throw new Error("Cannot override default mode "+n);return $t($t({},t),(o={},o[n]=$t($t({},r),{deactivate:function(){try{r.deactivate()}catch(t){e.console.error("problem while deactivating editor mode "+n+":",t)}}}),o))},lL=function(e){var t=Jt("design"),n=Jt({design:{activate:V,deactivate:V,editorReadOnly:!1},readonly:{activate:V,deactivate:V,editorReadOnly:!0}});return YH(e),QH(e),{isReadOnly:function(){return KH(e)},set:function(r){return cL(e,n.get(),t,r)},get:function(){return t.get()},register:function(e,t){n.set(sL(n.get(),e,t))}}},fL=ea.each,dL=ea.explode,hL={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},mL=ea.makeMap("alt,ctrl,shift,meta,access"),gL=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()||(fL(t.shortcuts,function(n){return t.matchShortcut(e,n)?(t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0):void 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,i=this;return o=n,"string"==typeof n?n=function(){i.editor.execCommand(o,!1,null)}:ea.isArray(o)&&(n=function(){i.editor.execCommand(o[0],o[1],o[2])}),fL(dL(ea.trim(e)),function(e){var o=i.createShortcut(e,t,n,r);i.shortcuts[o.id]=o}),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return this.shortcuts[t.id]?(delete this.shortcuts[t.id],!0):!1},e.prototype.parseShortcut=function(e){var t,n,r={};fL(dL(e.toLowerCase(),"+"),function(e){e in mL?r[e]=!0:/^[0-9]{2,}$/.test(e)?r.keyCode=parseInt(e,10):(r.charCode=e.charCodeAt(0),r.keyCode=hL[e]||e.toUpperCase().charCodeAt(0))}),t=[r.keyCode];for(n in mL)r[n]?t.push(n):r[n]=!1;return r.id=t.join(","),r.access&&(r.alt=!0,Ri.mac?r.ctrl=!0:r.shift=!0),r.meta&&(Ri.mac?r.meta=!0:(r.ctrl=!0,r.meta=!1)),r},e.prototype.createShortcut=function(e,t,n,r){var o;return o=ea.map(dL(e,">"),this.parseShortcut),o[o.length-1]=ea.extend(o[o.length-1],{func:n,scope:r||this.editor}),ea.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?!1:t.alt!==e.altKey||t.shift!==e.shiftKey?!1:e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode?(e.preventDefault(),!0):!1:!1},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),pL=function(){var e={},t={},n={},r={},o={},i={},a={},u=function(e,t){return function(n,r){return e[n.toLowerCase()]=$t($t({},r),{type:t})}},c=function(e,t){return r[e.toLowerCase()]=t};return{addButton:u(e,"button"),addGroupToolbarButton:u(e,"grouptoolbarbutton"),addToggleButton:u(e,"togglebutton"),addMenuButton:u(e,"menubutton"),addSplitButton:u(e,"splitbutton"),addMenuItem:u(t,"menuitem"),addNestedMenuItem:u(t,"nestedmenuitem"),addToggleMenuItem:u(t,"togglemenuitem"),addAutocompleter:u(n,"autocompleter"),addContextMenu:u(o,"contextmenu"),addContextToolbar:u(i,"contexttoolbar"),addContextForm:u(i,"contextform"),addSidebar:u(a,"sidebar"),addIcon:c,getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:o,contextToolbars:i,sidebars:a}}}},vL=function(){var e=pL();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}},yL=ea.each,bL=ea.trim,CL="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),wL={ftp:21,http:80,https:443,mailto:25},xL=function(){function t(n,r){n=bL(n),this.settings=r||{};var o=this.settings.base_uri,i=this;if(/^([\w\-]+):([^\/]{2})/i.test(n)||/^\s*#/.test(n))return void(i.source=n);var a=0===n.indexOf("//");if(0!==n.indexOf("/")||a||(n=(o?o.protocol||"http":"http")+"://mce_host"+n),!/^[\w\-]*:?\/\//.test(n)){var u=this.settings.base_uri?this.settings.base_uri.path:new t(e.document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)n="//mce_host"+i.toAbsPath(u,n);else{var c=/([^#?]*)([#?]?.*)/.exec(n);n=(o&&o.protocol||"http")+"://mce_host"+i.toAbsPath(u,c[1])+c[2]}}n=n.replace(/@@/g,"(mce_at)");var s=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(n);yL(CL,function(e,t){var n=s[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),i[e]=n}),o&&(i.protocol||(i.protocol=o.protocol),i.userInfo||(i.userInfo=o.userInfo),i.port||"mce_host"!==i.host||(i.port=o.port),i.host&&"mce_host"!==i.host||(i.host=o.host),i.source=""),a&&(i.protocol="")}return t.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},t.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},t.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()},t.prototype.toRelative=function(e){var n;if("./"===e)return e;var r=new t(e,{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)},t.prototype.toAbsolute=function(e,n){var r=new t(e,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},t.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=wL[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},t.prototype.toRelPath=function(e,t){var n,r,o,i=0,a="",u=e.substring(0,e.lastIndexOf("/")).split("/");if(n=t.split("/"),u.length>=n.length)for(r=0,o=u.length;o>r;r++)if(r>=n.length||u[r]!==n[r]){i=r+1;break}if(u.length<n.length)for(r=0,o=n.length;o>r;r++)if(r>=u.length||u[r]!==n[r]){i=r+1;break}if(1===i)return t;for(r=0,o=u.length-(i-1);o>r;r++)a+="../";for(r=i-1,o=n.length;o>r;r++)a+=r!==i-1?"/"+n[r]:n[r];return a},t.prototype.toAbsPath=function(e,t){var n,r,o,i=0,a=[];r=/\/$/.test(t)?"/":"";var u=e.split("/"),c=t.split("/");for(yL(u,function(e){e&&a.push(e)}),u=a,n=c.length-1,a=[];n>=0;n--)0!==c[n].length&&"."!==c[n]&&(".."!==c[n]?i>0?i--:a.push(c[n]):i++);return n=u.length-i,o=0>=n?St(a).join("/"):u.slice(0,n).join("/")+"/"+St(a).join("/"),0!==o.indexOf("/")&&(o="/"+o),r&&o.lastIndexOf("/")!==o.length-1&&(o+=r),o},t.prototype.getURI=function(e){void 0===e&&(e=!1);var t;return(!this.source||e)&&(t="",e||(t+=this.protocol?this.protocol+"://":"//",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},t}(),EL=rs.DOM,zL=ea.extend,kL=ea.each,NL=ea.resolve,SL=Ri.ie,TL=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,zL(this,iL),this.settings=Ry(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&&(fs.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),rs.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),ks.languageLoad=this.settings.language_load,ks.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new xL(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new gL(this),this.editorCommands=new MH(this),this.settings.cache_suffix&&(Ri.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:vL()};var o=this,i=lL(o);this.mode=i,this.setMode=i.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Kc.overrideDefaults(function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}})}return e.prototype.render=function(){wO.render(this)},e.prototype.focus=function(e){Bv.focus(this,e)},e.prototype.hasFocus=function(){return Bv.hasFocus(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];return i?(o.callbackLookup&&(r=o.callbackLookup[e])&&(i=r.func,r=r.scope),"string"==typeof i&&(r=i.replace(/\.\w+$/,""),r=r?NL(r):0,i=NL(i),o.callbackLookup=o.callbackLookup||{},o.callbackLookup[e]={func:i,scope:r}),i.apply(r||o,Array.prototype.slice.call(arguments,1))):void 0},e.prototype.translate=function(e){return zs.translate(e)},e.prototype.getParam=function(e,t,n){return _y(this,e,t,n)},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":(EL.show(e.getContainer()),EL.hide(e.id)),e.load(),e.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(SL&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(EL.hide(e.getContainer()),EL.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=No.isTextareaOrInput(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();return o&&r.initialized&&!r.removed?(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,No.isTextareaOrInput(o)?o.value=t:((e.is_removing||!r.inline)&&(o.innerHTML=t),(n=EL.getParent(r.id,"form"))&&kL(n.elements,function(e){return e.name===r.id?(e.value=t,!1):void 0})),e.element=o=null,e.set_dirty!==!1&&r.setDirty(!1),t):void 0},e.prototype.setContent=function(e,t){return Lv(this,e,t)},e.prototype.getContent=function(e){return up(this,e)},e.prototype.insertContent=function(e,t){t&&(e=zL({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){void 0===e?Lv(this,this.startContent,{format:"raw"}):Lv(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=EL.get(e.editorContainer||e.id+"_parent")),e.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=EL.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.prototype.addVisual=function(e){var t,n=this,r=n.settings,o=n.dom;e=e||n.getBody(),void 0===n.hasVisual&&(n.hasVisual=r.visual),kL(o.select("table,a",e),function(e){var i;switch(e.nodeName){case"TABLE":return t=r.visual_table_class||"mce-item-table",i=o.getAttrib(e,"border"),void(i&&"0"!==i||!n.hasVisual?o.removeClass(e,t):o.addClass(e,t));case"A":return void(o.getAttrib(e,"href")||(i=o.getAttrib(e,"name")||e.id,t=r.visual_anchor_class||"mce-item-anchor",i&&n.hasVisual?o.addClass(e,t):o.removeClass(e,t)))}}),n.fire("VisualAid",{element:e,hasVisual:n.hasVisual})},e.prototype.remove=function(){ny(this)},e.prototype.destroy=function(e){ry(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}(),AL=rs.DOM,RL=ea.explode,BL=ea.each,DL=ea.extend,ML=0,_L=!1,PL=[],OL=[],HL=function(e){return"length"!==e},LL=function(e){var t=e.type;BL(jL.get(),function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e)}})},IL=function(e){e!==_L&&(e?Kc(window).on("resize scroll",LL):Kc(window).off("resize scroll",LL),_L=e)},VL=function(e){var t=OL;delete PL[e.id];for(var n=0;n<PL.length;n++)if(PL[n]===e){PL.splice(n,1);break}return OL=bt(OL,function(t){return e!==t}),jL.activeEditor===e&&(jL.activeEditor=OL.length>0?OL[0]:null),jL.focusedEditor===e&&(jL.focusedEditor=null),t.length!==OL.length},FL=function(e){return e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(VL(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0,e=null),e},UL="CSS1Compat"!==e.document.compatMode,jL=$t($t({},HH),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Kc,majorVersion:"5",minorVersion:"2.2",releaseDate:"2020-04-23",editors:PL,i18n:zs,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var t,n,r=this,o="";n=xL.getDocumentBaseUrl(e.document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(n)&&(n=n.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(n)||(n+="/"));var i=window.tinymce||window.tinyMCEPreInit;if(i)t=i.base||i.baseURL,o=i.suffix;else{for(var a=e.document.getElementsByTagName("script"),u=0;u<a.length;u++){var c=a[u].src||"";if(""!==c){var s=c.substring(c.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(c)){-1!==s.indexOf(".min")&&(o=".min"),t=c.substring(0,c.lastIndexOf("/"));break}}}if(!t&&e.document.currentScript){var c=e.document.currentScript.src;-1!==c.indexOf(".min")&&(o=".min"),t=c.substring(0,c.lastIndexOf("/"))}}r.baseURL=new xL(n).toAbsolute(t),r.documentBaseURL=n,r.baseURI=new xL(r.baseURL),r.suffix=o,pv.setup(r)},overrideDefaults:function(e){var t,n;t=e.base_url,t&&this._setBaseUrl(t),n=e.suffix,e.suffix&&(this.suffix=n),this.defaultSettings=e;var r=e.plugin_base_urls;for(var o in r)ks.PluginManager.urls[o]=r[o]},init:function(t){var n,r,o=this;r=ea.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"," ");var i=function(e,t){return e.inline&&t.tagName.toLowerCase()in r},a=function(e){var t=e.id;return t||(t=e.name,t=t&&!AL.get(t)?e.name:AL.uniqueId(),e.setAttribute("id",t)),t},u=function(e){var n=t[e];if(n)return n.apply(o,Array.prototype.slice.call(arguments,2))},c=function(e,t){return t.constructor===RegExp?t.test(e.className):AL.hasClass(e,t)},s=function(t){var n,r=[];if(Ri.browser.isIE()&&Ri.browser.version.major<11)return sb.initError("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(UL)return sb.initError("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(t.types)return BL(t.types,function(e){r=r.concat(AL.select(e.selector))}),r;if(t.selector)return AL.select(t.selector);if(t.target)return[t.target];switch(t.mode){case"exact":n=t.elements||"",n.length>0&&BL(RL(n),function(t){var n;(n=AL.get(t))?r.push(n):BL(e.document.forms,function(e){BL(e.elements,function(e){e.name===t&&(t="mce_editor_"+ML++,AL.setAttrib(e,"id",t),r.push(e))})})});break;case"textareas":case"specific_textareas":BL(AL.select("textarea"),function(e){t.editor_deselector&&c(e,t.editor_deselector)||(!t.editor_selector||c(e,t.editor_selector))&&r.push(e)})}return r},l=function(e){n=e},f=function(){var e,n=0,r=[],c=function(t,i,a){var u=new TL(t,i,o);r.push(u),u.on("init",function(){++n===e.length&&l(r)}),u.targetElm=u.targetElm||a,u.render()};return AL.unbind(window,"ready",f),u("onpageload"),e=Kc.unique(s(t)),t.types?void BL(t.types,function(n){ea.each(e,function(e){return AL.is(e,n.selector)?(c(a(e),DL({},t,n),e),!1):!0})}):(ea.each(e,function(e){FL(o.get(e.id))}),e=ea.grep(e,function(e){return!o.get(e.id)}),void(0===e.length?l([]):BL(e,function(e){i(t,e)?sb.initError("Could not initialize inline editor on invalid inline target element",e):c(a(e),t,e)})))};return o.settings=t,AL.bind(window,"ready",f),new mi(function(e){n?e(n):l=function(t){e(t)}})},get:function(e){return 0===arguments.length?OL.slice(0):tt(e)?xt(OL,function(t){return t.id===e}).getOr(null):ut(e)&&OL[e]?OL[e]:null},add:function(e){var t,n=this;return t=PL[e.id],t===e?e:(null===n.get(e.id)&&(HL(e.id)&&(PL[e.id]=e),PL.push(e),OL.push(e)),IL(!0),n.activeEditor=e,n.fire("AddEditor",{editor:e}),NT||(NT=function(e){var t=n.fire("BeforeUnload");return t.returnValue?(e.preventDefault(),e.returnValue=t.returnValue,t.returnValue):void 0},window.addEventListener("beforeunload",NT)),e)},createEditor:function(e,t){return this.add(new TL(e,t,this))},remove:function(e){var t,n,r=this;if(e)return tt(e)?void BL(AL.select(e),function(e){n=r.get(e.id),n&&r.remove(n)}):(n=e,ot(r.get(n.id))?null:(VL(n)&&r.fire("RemoveEditor",{editor:n}),0===OL.length&&window.removeEventListener("beforeunload",NT),n.remove(),IL(OL.length>0),n));for(t=OL.length-1;t>=0;t--)r.remove(OL[t])},execCommand:function(e,t,n){var r=this,o=r.get(n);switch(e){case"mceAddEditor":return r.get(n)||new TL(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",0,n),!0)}return r.activeEditor?r.activeEditor.execCommand(e,t,n):!1},triggerSave:function(){BL(OL,function(e){e.save()})},addI18n:function(e,t){zs.add(e,t)},translate:function(e){return zs.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 xL(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new xL(this.baseURL)}});jL.setup(),function(e){e.compareRanges=sw.isEq,e.getCaretRangeFromPoint=oC.fromPoint,e.getSelectedNode=ef,e.getNode=tf}(I||(I={}));var qL,$L,WL=I,KL=function(t,n,r){void 0===r&&(r=1e3);var o=!1,i=null,a=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];o||(o=!0,null!==i&&(e.clearTimeout(i),i=null),t.apply(null,n))}},u=a(t),c=a(n),s=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];o||null!==i||(i=e.setTimeout(function(){return c.apply(null,t)},r))};return{start:s,resolve:u,reject:c}},XL=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 mi(function(e,a){var u=KL(e,a);t[n]=u.resolve,fs.ScriptLoader.loadScript(r,function(){return u.start(i)},function(){return u.reject(o)})});return e[n]=a,a},r=function(n,r){void 0!==t[n]&&(t[n](r),delete t[n]),e[n]=mi.resolve(r)};return{load:n,add:r}},YL=XL(),GL=Math.min,ZL=Math.max,JL=Math.round,QL=function(e,t,n){var r,o,i,a,u,c;return r=t.x,o=t.y,i=e.w,a=e.h,u=t.w,c=t.h,n=(n||"").split(""),"b"===n[0]&&(o+=c),"r"===n[1]&&(r+=u),"c"===n[0]&&(o+=JL(c/2)),"c"===n[1]&&(r+=JL(u/2)),"b"===n[3]&&(o-=a),"r"===n[4]&&(r-=i),"c"===n[3]&&(o-=JL(a/2)),"c"===n[4]&&(r-=JL(i/2)),oI(r,o,i,a)},eI=function(e,t,n,r){var o,i;for(i=0;i<r.length;i++)if(o=QL(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},tI=function(e,t,n){return oI(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},nI=function(e,t){var n,r,o,i;return n=ZL(e.x,t.x),r=ZL(e.y,t.y),o=GL(e.x+e.w,t.x+t.w),i=GL(e.y+e.h,t.y+t.h),0>o-n||0>i-r?null:oI(n,r,o-n,i-r)},rI=function(e,t,n){var r,o,i,a,u,c,s,l,f,d;return u=e.x,c=e.y,s=e.x+e.w,l=e.y+e.h,f=t.x+t.w,d=t.y+t.h,r=ZL(0,t.x-u),o=ZL(0,t.y-c),i=ZL(0,s-f),a=ZL(0,l-d),u+=r,c+=o,n&&(s+=r,l+=o,u-=i,c-=a),s-=i,l-=a,oI(u,c,s-u,l-c)},oI=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},iI=function(e){return oI(e.left,e.top,e.width,e.height)},aI={inflate:tI,relativePosition:QL,findBestRelativePosition:eI,intersect:nI,clamp:rI,create:oI,fromClientRect:iI},uI=ea.each,cI=ea.extend,sI=function(){};sI.extend=qL=function(e){var t,n,r,o=this,i=o.prototype,a=function(){var e,t,n,r=this;if(!$L&&(r.init&&r.init.apply(r,arguments),t=r.Mixins))for(e=t.length;e--;)n=t[e],n.init&&n.init.apply(r,arguments)},u=function(){return this},c=function(e,t){return function(){var n,r=this,o=r._super;return r._super=i[e],n=t.apply(r,arguments),r._super=o,n}};$L=!0,t=new o,$L=!1,e.Mixins&&(uI(e.Mixins,function(t){for(var n in t)"init"!==n&&(e[n]=t[n])}),i.Mixins&&(e.Mixins=i.Mixins.concat(e.Mixins))),e.Methods&&uI(e.Methods.split(","),function(t){e[t]=u}),e.Properties&&uI(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&&uI(e.Statics,function(e,t){a[t]=e}),e.Defaults&&i.Defaults&&(e.Defaults=cI({},i.Defaults,e.Defaults));for(n in e)r=e[n],t[n]="function"==typeof r&&i[n]?c(n,r):r;return a.prototype=t,a.constructor=a,a.extend=qL,a};var lI,fI=Math.min,dI=Math.max,hI=Math.round,mI=function(e){var t={},n=0,r=0,o=0,i=function(e,t,n){var r,o,i,a,u,c;return r=0,o=0,i=0,e/=255,t/=255,n/=255,u=fI(e,fI(t,n)),c=dI(e,dI(t,n)),u===c?(i=u,{h:0,s:0,v:100*i}):(a=e===u?t-n:n===u?e-t:n-e,r=e===u?3:n===u?1:5,r=60*(r-a/(c-u)),o=(c-u)/c,i=c,{h:hI(r),s:hI(100*o),v:hI(100*i)})},a=function(e,t,i){var a,u,c,s;if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,i=parseInt(i,10)/100,t=dI(0,fI(t,1)),i=dI(0,fI(i,1)),0===t)return void(n=r=o=hI(255*i));switch(a=e/60,u=i*t,c=u*(1-Math.abs(a%2-1)),s=i-u,Math.floor(a)){case 0:n=u,r=c,o=0;break;case 1:n=c,r=u,o=0;break;case 2:n=0,r=u,o=c;break;case 3:n=0,r=c,o=u;break;case 4:n=c,r=0,o=u;break;case 5:n=u,r=0,o=c;break;default:n=r=o=0}n=hI(255*(n+s)),r=hI(255*(r+s)),o=hI(255*(o+s))},u=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)},c=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=0>n?0:n>255?255:n,r=0>r?0:r>255?255:r,o=0>o?0:o>255?255:o,t};return e&&l(e),t.toRgb=c,t.toHsv=s,t.toHex=u,t.parse=l,t},gI=function(e){var t=JSON.stringify(e);return tt(t)?t.replace(/[\u0080-\uFFFF]/g,function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t}):t},pI={serialize:gI,parse:function(e){try{return JSON.parse(e)}catch(t){}}},vI={callbacks:{},count:0,send:function(e){var t=this,n=rs.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++}},yI=$t($t({},HH),{send:function(t){var n,r=0,o=function(){!t.async||4===n.readyState||r++>1e4?(t.success&&1e4>r&&200===n.status?t.success.call(t.success_scope,""+n.responseText,n,t):t.error&&t.error.call(t.error_scope,r>1e4?"TIMED_OUT":"GENERAL",n,t),n=null):wi.setTimeout(o,10)};if(t.scope=t.scope||this,t.success_scope=t.success_scope||t.scope,t.error_scope=t.error_scope||t.scope,t.async=t.async!==!1,t.data=t.data||"",yI.fire("beforeInitialize",{settings:t}),n=new e.XMLHttpRequest){if(n.overrideMimeType&&n.overrideMimeType(t.content_type),n.open(t.type||(t.data?"POST":"GET"),t.url,t.async),t.crossDomain&&(n.withCredentials=!0),t.content_type&&n.setRequestHeader("Content-Type",t.content_type),t.requestheaders&&ea.each(t.requestheaders,function(e){n.setRequestHeader(e.key,e.value)}),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n=yI.fire("beforeSend",{xhr:n,settings:t}).xhr,n.send(t.data),!t.async)return o();wi.setTimeout(o,10)}}}),bI=ea.extend,CI=function(){function e(e){this.settings=bI({},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=bI(this.settings,e);r.success=function(e,o){e=pI.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=pI.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",yI.send(r)},e}(),wI=function(){return function(){var e={},t=[],n={getItem:function(t){var n=e[t];return n?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{lI=e.window.localStorage}catch(pc){lI=wI()}var xI=lI,EI={geom:{Rect:aI},util:{Promise:mi,Delay:wi,Tools:ea,VK:vb,URI:xL,Class:sI,EventDispatcher:PH,Observable:HH,I18n:zs,XHR:yI,JSON:pI,JSONRequest:CI,JSONP:vI,LocalStorage:xI,Color:mI},dom:{EventUtils:Du,Sizzle:vc,DomQuery:Kc,TreeWalker:Xc,TextSeeker:gd,DOMUtils:rs,ScriptLoader:fs,RangeUtils:WL,Serializer:bx,ControlSelection:wb,BookmarkManager:mb,Selection:Vw,Event:Du.Event},html:{Styles:Cu,Entities:au,Node:$g,Schema:a,SaxParser:Qg,DomParser:ox,Writer:sp,Serializer:lp},Env:Ri,AddOnManager:ks,Annotator:Ig,Formatter:dk,UndoManager:nN,EditorCommands:MH,WindowManager:Jy,NotificationManager:R,EditorObservable:iL,Shortcuts:gL,Editor:TL,FocusManager:ev,EditorManager:jL,DOM:rs.DOM,ScriptLoader:fs.ScriptLoader,PluginManager:ks.PluginManager,ThemeManager:ks.ThemeManager,IconManager:Oy,Resource:YL,trim:ea.trim,isArray:ea.isArray,is:ea.is,toArray:ea.toArray,makeMap:ea.makeMap,each:ea.each,map:ea.map,grep:ea.grep,inArray:ea.inArray,extend:ea.extend,create:ea.create,walk:ea.walk,createNS:ea.createNS,resolve:ea.resolve,explode:ea.explode,_addCacheSuffix:ea._addCacheSuffix,isOpera:Ri.opera,isWebKit:Ri.webkit,isIE:Ri.ie,isGecko:Ri.gecko,isMac:Ri.mac},zI=ea.extend(jL,EI),kI=function(e){if("object"==typeof n)try{n.exports=e}catch(t){}},NI=function(e){window.tinymce=e,window.tinyMCE=e};NI(zI),kI(zI)}(window)});
;/*!node_modules/tinymce/themes/silver/theme.js*/
amis.define("node_modules/tinymce/themes/silver/theme",function(){!function(n){"use strict";function t(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var r=t.concat(e);return n.apply(null,r)}}function e(n,t){var e={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.indexOf(o)<0&&(e[o]=n[o]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(n);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(n,o[r])&&(e[o[r]]=n[o[r]]);return e}function o(){for(var n=0,t=0,e=arguments.length;e>t;t++)n+=arguments[t].length;for(var o=Array(n),r=0,t=0;e>t;t++)for(var i=arguments[t],u=0,a=i.length;a>u;u++,r++)o[r]=i[u];return o}function r(n,t){var e=function(t,e){if(!It(e)&&!e.match(/^[0-9]+$/))throw new Error(n+".set accepts only positive integer values. Value was "+e);var o=t.dom();Ts(o)&&(o.style[n]=e+"px")},o=function(e){var o=t(e);if(0>=o||null===o){var r=Vs(e,n);return parseFloat(r)||0}return o},r=o,i=function(n,t){return $t(t,function(t,e){var o=Vs(n,e),r=void 0===o?0:parseInt(o,10);return isNaN(r)?t:t+r},0)},u=function(n,t,e){var o=i(n,e),r=t>o?t-o:0;return r};return{set:e,get:o,getOuter:r,aggregate:i,max:u}}function i(n,t,e,o,r){return n(e,o)?St.some(e):Ft(r)&&r(e)?St.none():t(e,o,r)}function u(n,t){var e=function(e){if(!n(e))throw new Error("Can only get "+t+" value of a "+t+" node");return o(e).getOr("")},o=function(t){return n(t)?St.from(t.dom().nodeValue):St.none()},r=function(e,o){if(!n(e))throw new Error("Can only set raw "+t+" value of a "+t+" node");e.dom().nodeValue=o};return{get:e,getOption:o,set:r}}function a(n){return void 0!==n.uid}function c(n,t,e){var o=t.backstage,r=ZS(n),i=function(n){switch(n){case"bc-bc":return BS;case"tc-tc":return ES;case"tc-bc":return td;case"bc-tc":default:return ed}},u=function(n){Xt(n,function(n){return n.moveTo(0,0)})},a=function(n){n.length>0&&(ce(n).each(function(n){return n.moveRel(null,"banner")}),Xt(n,function(t,e){e>0&&t.moveRel(n[e-1].getEl(),"bc-tc")}))},c=function(n){u(n),a(n)},s=function(n,u){var a=!n.closeButton&&n.timeout&&(n.timeout>0||n.timeout<0),c=function(){u(),bS.hide(f)},s=of(hC.sketch({text:n.text,level:Lt(["success","error","warning","warn","info"],n.type)?n.type:void 0,progress:n.progressBar===!0,icon:St.from(n.icon),closeButton:!a,onAction:c,iconProvider:o.shared.providers.icons,translationProvider:o.shared.providers.translate})),f=of(bS.sketch(vt({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:t.backstage.shared.getSink,fireDismissalEventInstead:{}},r?{}:{fireRepositionEventInstead:{}})));return e.add(f),n.timeout>0&&DS.setTimeout(function(){c()},n.timeout),{close:c,moveTo:function(n,t){bS.showAt(f,{anchor:"makeshift",x:n,y:t},rf(s))},moveRel:function(n,e){if("banner"!==e){var o=i(e),r={anchor:"node",root:Bs(),node:St.some(Xr.fromDom(n)),layouts:{onRtl:function(){return[o]},onLtr:function(){return[o]}}};bS.showAt(f,r,rf(s))}else bS.showAt(f,t.backstage.shared.anchors.banner(),rf(s))},text:function(n){hC.updateText(s,n)},settings:n,getEl:function(){return s.element().dom()},progressBar:{value:function(n){hC.updateProgress(s,n)}}}},f=function(n){n.close()},l=function(n){return n.settings};return{open:s,close:f,reposition:c,getArgs:l}}function s(n){var t=10,e=10,o=Sc("size-label"),r=KO(o,t,e),i=sC({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:o}},components:[nf("0x0")],behaviours:bd([ew.config({})])});return{type:"widget",data:{value:Sc("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GO().widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:$O(r).concat(i.asSpec()),behaviours:bd([rw("insert-table-picker",[ba(XO,function(n,o,u){var a=u.event().row(),c=u.event().col();JO(r,a,c,t,e),ew.set(i.get(n),[QO(a,c)])}),ba(YO,function(t,e,o){n.onAction({numRows:o.event().row()+1,numColumns:o.event().col()+1}),ea(t,Pu())})]),Xx.config({initSize:{numRows:t,numColumns:e},mode:"flatgrid",selector:'[role="button"]'})])})]}}function f(n){void 0===n&&(n=10);var t=x_.getItem(w_),e=Bt(t)?JSON.parse(t):[],o=function(t){var e=n-t.length;return 0>e?t.slice(0,n):t},r=o(e),i=function(t){zt(r,t).each(u),r.unshift(t),r.length>n&&r.pop(),x_.setItem(w_,JSON.stringify(r))},u=function(n){r.splice(n,1)},a=function(){return r.slice(0)};return{add:i,state:a}}function l(n,t){var e=eT.getColors(t.colorinput.getColors(),t.colorinput.hasCustomColors()),o=t.colorinput.getColorCols(),r="color",i=xT(Sc("menu-value"),e,function(t){n.onAction({value:t})},o,r,FO.CLOSE_ON_EXECUTE,function(){return!1},t.shared.providers),u=vt(vt({},i),{markers:iT(r),movement:ST(o,r)});return{type:"widget",data:{value:Sc("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GO().widget(oS.sketch(u))]}}function d(t,e){var o=null,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];o=n.setTimeout(function(){t.apply(null,r),o=null},e)},i=function(){null!==o&&(n.clearTimeout(o),o=null)};return{cancel:i,schedule:r}}function m(){var n={},t=function(t,e,o){ge(o,function(o,r){var i=void 0!==n[r]?n[r]:{};i[e]=ns(o,t),n[r]=i})},e=function(n,t){return Bc(t).fold(function(){return St.none()},function(e){return n.bind(function(n){return xe(n,e)}).map(function(n){return bE(t,n)})})},o=function(t){return xe(n,t).map(function(n){return ve(n,function(n,t){return yE(t,n)})}).getOr([])},r=function(t,o,r){var i=xe(n,o);return iu(r,function(n){return e(i,n)},t)},i=function(t){ge(n,function(n){n.hasOwnProperty(t)&&delete n[t]})};return{registerId:t,unregisterId:i,filterByType:o,find:r}}function g(){var n=m(),t={},e=function(n){var t=n.element();return Bc(t).fold(function(){return Tc("uid-",n.element())},function(n){return n})},o=function(n,e){var o=t[e];if(o!==n)throw new Error('The tagId "'+e+'" is already used by: '+vc(o.element())+"\nCannot use it for: "+vc(n.element())+"\nThe conflicting element is"+(Es(o.element())?" ":" not ")+"already in the DOM");i(n)},r=function(r){var i=e(r);Se(t,i)&&o(r,i);var u=[r];n.registerId(u,i,r.events()),t[i]=r},i=function(e){Bc(e.element()).each(function(e){delete t[e],n.unregisterId(e)})},u=function(t){return n.filterByType(t)},a=function(t,e,o){return n.find(t,e,o)},c=function(n){return xe(t,n)};return{find:a,filter:u,register:r,unregister:i,getById:c}}function p(t,e){return b(n.document.createElement("canvas"),t,e)}function h(n){var t=p(n.width,n.height),e=v(t);return e.drawImage(n,0,0),t}function v(n){return n.getContext("2d")}function b(n,t,e){return n.width=t,n.height=e,n}function y(n){return n.naturalWidth||n.width}function x(n){return n.naturalHeight||n.height}function w(t){return new VF(function(e,o){function r(){c(),e(a)}function i(){c(),o("Unable to load data of type "+t.type+": "+u)}var u=n.URL.createObjectURL(t),a=new n.Image,c=function(){a.removeEventListener("load",r),a.removeEventListener("error",i)};a.addEventListener("load",r),a.addEventListener("error",i),a.src=u,a.complete&&r()})}function S(t){var e=t.split(","),o=/data:([^;]+)/.exec(e[0]);if(!o)return St.none();for(var r=o[1],i=e[1],u=1024,a=n.atob(i),c=a.length,s=Math.ceil(c/u),f=new Array(s),l=0;s>l;++l){for(var d=l*u,m=Math.min(d+u,c),g=new Array(m-d),p=d,h=0;m>p;++h,++p)g[h]=a[p].charCodeAt(0);f[l]=new Uint8Array(g)}return St.some(new n.Blob(f,{type:r}))}function C(n){return new VF(function(t,e){S(n).fold(function(){e("uri is not base64: "+n)},t)})}function k(t,e,o){return e=e||"image/png",n.HTMLCanvasElement.prototype.toBlob?new VF(function(n,r){t.toBlob(function(t){t?n(t):r()},e,o)}):C(t.toDataURL(e,o))}function O(n,t,e){return t=t||"image/png",n.toDataURL(t,e)}function _(n){return w(n).then(function(n){E(n);var t=p(y(n),x(n)),e=v(t);return e.drawImage(n,0,0),t})}function T(t){return new VF(function(e){var o=new n.FileReader;o.onloadend=function(){e(o.result)},o.readAsDataURL(t)})}function E(t){n.URL.revokeObjectURL(t.src)}function B(n,t,e){function o(){return VF.resolve(t)}function r(){return e}function i(){return e.split(",")[1]}function u(t,e){return n.then(function(n){return k(n,t,e)})}function a(t,e){return n.then(function(n){return O(n,t,e)})}function c(n,t){return a(n,t).then(function(n){return n.split(",")[1]})}function s(){return n.then(h)}var f=t.type,l=ft(f);return{getType:l,toBlob:o,toDataURL:r,toBase64:i,toAdjustedBlob:u,toAdjustedDataURL:a,toAdjustedBase64:c,toCanvas:s}}function D(n){return T(n).then(function(t){return B(_(n),n,t)})}function A(n,t){return k(n,t).then(function(t){return B(VF.resolve(n),t,n.toDataURL())})}function M(n,t,e){var o="string"==typeof n?parseFloat(n):n;return o>e?o=e:t>o&&(o=t),o}function F(){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]}function I(n,t){for(var e,o=[],r=new Array(25),i=0;5>i;i++){for(var u=0;5>u;u++)o[u]=t[u+5*i];for(var u=0;5>u;u++){e=0;for(var a=0;5>a;a++)e+=n[u+5*a]*o[a];r[u+5*i]=e}}return r}function R(n,t){var e;return t=M(t,-1,1),t*=100,0>t?e=127+t/100*127:(e=t%1,e=0===e?NF[t]:NF[Math.floor(t)]*(1-e)+NF[Math.floor(t)+1]*e,e=127*e+127),I(n,[e/127,0,0,0,.5*(127-e),0,e/127,0,0,.5*(127-e),0,0,e/127,0,.5*(127-e),0,0,0,1,0,0,0,0,0,1])}function V(n,t){return t=M(255*t,-255,255),I(n,[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])}function H(n,t,e,o){return t=M(t,0,2),e=M(e,0,2),o=M(o,0,2),I(n,[t,0,0,0,0,0,e,0,0,0,0,0,o,0,0,0,0,0,1,0,0,0,0,0,1])}function N(n,t){return n.toCanvas().then(function(e){return P(e,n.getType(),t)})}function P(n,t,e){function o(n,t){for(var e,o,r,i,u=n.data,a=t[0],c=t[1],s=t[2],f=t[3],l=t[4],d=t[5],m=t[6],g=t[7],p=t[8],h=t[9],v=t[10],b=t[11],y=t[12],x=t[13],w=t[14],S=t[15],C=t[16],k=t[17],O=t[18],_=t[19],T=0;T<u.length;T+=4)e=u[T],o=u[T+1],r=u[T+2],i=u[T+3],u[T]=e*a+o*c+r*s+i*f+l,u[T+1]=e*d+o*m+r*g+i*p+h,u[T+2]=e*v+o*b+r*y+i*x+w,u[T+3]=e*S+o*C+r*k+i*O+_;return n}var r=v(n),i=o(r.getImageData(0,0,n.width,n.height),e);return r.putImageData(i,0,0),A(n,t)}function z(n,t){return n.toCanvas().then(function(e){return L(e,n.getType(),t)})}function L(n,t,e){function o(n,t,e){function o(n,t,e){return n>e?n=e:t>n&&(n=t),n}for(var r=Math.round(Math.sqrt(e.length)),i=Math.floor(r/2),u=n.data,a=t.data,c=n.width,s=n.height,f=0;s>f;f++)for(var l=0;c>l;l++){for(var d=0,m=0,g=0,p=0;r>p;p++)for(var h=0;r>h;h++){var v=o(l+h-i,0,c-1),b=o(f+p-i,0,s-1),y=4*(b*c+v),x=e[p*r+h];d+=u[y]*x,m+=u[y+1]*x,g+=u[y+2]*x}var w=4*(f*c+l);a[w]=o(d,0,255),a[w+1]=o(m,0,255),a[w+2]=o(g,0,255)}return t}var r=v(n),i=r.getImageData(0,0,n.width,n.height),u=r.getImageData(0,0,n.width,n.height);return u=o(i,u,e),r.putImageData(u,0,0),A(n,t)}function j(n){var t=function(t,e,o){function r(n,t){for(var e=n.data,o=0;o<e.length;o+=4)e[o]=t[e[o]],e[o+1]=t[e[o+1]],e[o+2]=t[e[o+2]];return n}for(var i=v(t),u=new Array(256),a=0;a<u.length;a++)u[a]=n(a,o);var c=r(i.getImageData(0,0,t.width,t.height),u);return i.putImageData(c,0,0),A(t,e)};return function(n,e){return n.toCanvas().then(function(o){return t(o,n.getType(),e)})}}function U(n){return function(t,e){return N(t,n(F(),e))}}function W(n){return function(t){return N(t,n)}}function G(n){return function(t){return z(t,n)}}function X(n,t,e){var o=y(n),r=x(n),i=t/o,u=e/r,a=!1;(.5>i||i>2)&&(i=.5>i?.5:2,a=!0),(.5>u||u>2)&&(u=.5>u?.5:2,a=!0);var c=Y(n,i,u);return a?c.then(function(n){return X(n,t,e)}):c}function Y(n,t,e){return new VF(function(o){var r=y(n),i=x(n),u=Math.floor(r*t),a=Math.floor(i*e),c=p(u,a),s=v(c);s.drawImage(n,0,0,r,i,0,0,u,a),o(c)})}function q(n,t){return n.toCanvas().then(function(e){return K(e,n.getType(),t)})}function K(n,t,e){var o=p(n.width,n.height),r=v(o),i=0,u=0;return e=0>e?360+e:e,(90===e||270===e)&&b(o,o.height,o.width),(90===e||180===e)&&(i=o.width),(270===e||180===e)&&(u=o.height),r.translate(i,u),r.rotate(e*Math.PI/180),r.drawImage(n,0,0),A(o,t)}function J(n,t){return n.toCanvas().then(function(e){return $(e,n.getType(),t)})}function $(n,t,e){var o=p(n.width,n.height),r=v(o);return"v"===e?(r.scale(1,-1),r.drawImage(n,0,-o.height)):(r.scale(-1,1),r.drawImage(n,-o.width,0)),A(o,t)}function Q(n,t,e,o,r){return n.toCanvas().then(function(i){return Z(i,n.getType(),t,e,o,r)})}function Z(n,t,e,o,r,i){var u=p(r,i),a=v(u);return a.drawImage(n,-e,-o),A(u,t)}function nt(n,t,e){return n.toCanvas().then(function(o){return X(o,t,e).then(function(t){return A(t,n.getType())})})}function tt(n){var t,e,o,r,i,u,a,c,s=Math.max;return t=n.documentElement,e=n.body,o=s(t.scrollWidth,e.scrollWidth),r=s(t.clientWidth,e.clientWidth),i=s(t.offsetWidth,e.offsetWidth),u=s(t.scrollHeight,e.scrollHeight),a=s(t.clientHeight,e.clientHeight),c=s(t.offsetHeight,e.offsetHeight),{width:i>o?r:o,height:c>u?a:u}}function et(n){var t,e;if(n.changedTouches)for(t="screenX screenY pageX pageY clientX clientY".split(" "),e=0;e<t.length;e++)n[t[e]]=n.changedTouches[0][t[e]]}function ot(t,e){var o,r,i,u,a,c,s,f=e.document||n.document;e=e||{};var l=f.getElementById(e.handle||t);i=function(t){var i,d,m=tt(f);et(t),t.preventDefault(),r=t.button,i=l,c=t.screenX,s=t.screenY,d=n.window.getComputedStyle?n.window.getComputedStyle(i,null).getPropertyValue("cursor"):i.runtimeStyle.cursor,o=cR("<div></div>").css({position:"absolute",top:0,left:0,width:m.width,height:m.height,zIndex:2147483647,opacity:1e-4,cursor:d}).appendTo(f.body),cR(f).on("mousemove touchmove",a).on("mouseup touchend",u),e.start(t)},a=function(n){return et(n),n.button!==r?u(n):(n.deltaX=n.screenX-c,n.deltaY=n.screenY-s,n.preventDefault(),void e.drag(n))},u=function(n){et(n),cR(f).off("mousemove touchmove",a).off("mouseup touchend",u),o.remove(),e.stop&&e.stop(n)},this.destroy=function(){cR(l).off()},cR(l).on("mousedown touchstart",i)}function rt(){function n(n){var t;return t=i.splice(++u),i.push(n),{state:n,removed:t}}function t(){return o()?i[--u]:void 0}function e(){return r()?i[++u]:void 0}function o(){return u>0}function r(){return-1!==u&&u<i.length-1}var i=[],u=-1;return{data:i,add:n,undo:t,redo:e,canUndo:o,canRedo:r}}function it(){ht.add("silver",function(n){var t=qX.setup(n),e=t.uiMothership,o=t.backstage,r=t.renderUI,i=t.getUi;GT.register(n,o.shared);var u=iJ.setup({editor:n,backstage:o});return{renderUI:r,getWindowManagerImpl:ft(u),getNotificationManagerImpl:function(){return c(n,{backstage:o},e)},ui:i()}})}var ut,at=function(){},ct=function(n){return function(){return n()}},st=function(n,t){return function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return n(t.apply(null,e))}},ft=function(n){return function(){return n}},lt=function(n){return n},dt=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return!n.apply(null,t)}},mt=function(n){return function(){throw new Error(n)}},gt=ft(!1),pt=ft(!0),ht=tinymce.util.Tools.resolve("tinymce.ThemeManager"),vt=function(){return vt=Object.assign||function(n){for(var t,e=1,o=arguments.length;o>e;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},vt.apply(this,arguments)},bt=function(){return yt},yt=function(){var n=function(n){return n.isNone()},t=function(n){return n()},e=function(n){return n},o={fold:function(n){return n()},is:gt,isSome:gt,isNone:pt,getOr:e,getOrThunk:t,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:ft(null),getOrUndefined:ft(void 0),or:e,orThunk:t,map:bt,each:at,bind:bt,exists:gt,forall:pt,filter:bt,equals:n,equals_:n,toArray:function(){return[]},toString:ft("none()")};return Object.freeze&&Object.freeze(o),o}(),xt=function(n){var t=ft(n),e=function(){return r},o=function(t){return t(n)},r={fold:function(t,e){return e(n)},is:function(t){return n===t},isSome:pt,isNone:gt,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:e,orThunk:e,map:function(t){return xt(t(n))},each:function(t){t(n)},bind:o,exists:o,forall:o,filter:function(t){return t(n)?r:yt},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(t){return t.is(n)},equals_:function(t,e){return t.fold(gt,function(t){return e(n,t)})}};return r},wt=function(n){return null===n||void 0===n?yt:xt(n)},St={some:xt,none:bt,from:wt},Ct=function(n){var t=function(t){return n===t},e=function(){return Ct(n)},o=function(){return Ct(n)},r=function(t){return Ct(t(n))},i=function(){return Ct(n)},u=function(t){t(n)},a=function(t){return t(n)},c=function(t,e){return e(n)},s=function(t){return t(n)},f=function(t){return t(n)},l=function(){return St.some(n)};return{is:t,isValue:pt,isError:gt,getOr:ft(n),getOrThunk:ft(n),getOrDie:ft(n),or:e,orThunk:o,fold:c,map:r,mapError:i,each:u,bind:a,exists:s,forall:f,toOption:l}},kt=function(n){var t=function(n){return n()},e=function(){return mt(String(n))()},o=function(n){return n},r=function(n){return n()},i=function(){return kt(n)},u=function(t){return kt(t(n))},a=function(){return kt(n)},c=function(t){return t(n)};return{is:gt,isValue:gt,isError:pt,getOr:lt,getOrThunk:t,getOrDie:e,or:o,orThunk:r,fold:c,map:i,mapError:u,each:at,bind:a,exists:gt,forall:pt,toOption:St.none}},Ot=function(n,t){return n.fold(function(){return kt(t)},Ct)},_t={value:Ct,error:kt,fromOption:Ot},Tt=function(n){if(null===n)return"null";var t=typeof n;return"object"===t&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":t},Et=function(n){return function(t){return Tt(t)===n}},Bt=Et("string"),Dt=Et("object"),At=Et("array"),Mt=Et("boolean"),Ft=Et("function"),It=Et("number"),Rt=function(n,t){if(At(n)){for(var e=0,o=n.length;o>e;++e)if(t(n[e])!==!0)return!1;return!0}return!1},Vt=Array.prototype.slice,Ht=Array.prototype.indexOf,Nt=Array.prototype.push,Pt=function(n,t){return Ht.call(n,t)},zt=function(n,t){var e=Pt(n,t);return-1===e?St.none():St.some(e)},Lt=function(n,t){return Pt(n,t)>-1},jt=function(n,t){for(var e=0,o=n.length;o>e;e++){var r=n[e];if(t(r,e))return!0}return!1},Ut=function(n,t){for(var e=[],o=0;n>o;o++)e.push(t(o));return e},Wt=function(n,t){for(var e=[],o=0;o<n.length;o+=t){var r=Vt.call(n,o,o+t);e.push(r)}return e},Gt=function(n,t){for(var e=n.length,o=new Array(e),r=0;e>r;r++){var i=n[r];o[r]=t(i,r)}return o},Xt=function(n,t){for(var e=0,o=n.length;o>e;e++){var r=n[e];t(r,e)}},Yt=function(n,t){for(var e=n.length-1;e>=0;e--){var o=n[e];t(o,e)}},qt=function(n,t){for(var e=[],o=[],r=0,i=n.length;i>r;r++){var u=n[r],a=t(u,r)?e:o;a.push(u)}return{pass:e,fail:o}},Kt=function(n,t){for(var e=[],o=0,r=n.length;r>o;o++){var i=n[o];t(i,o)&&e.push(i)}return e},Jt=function(n,t,e){return Yt(n,function(n){e=t(e,n)}),e},$t=function(n,t,e){return Xt(n,function(n){e=t(e,n)}),e},Qt=function(n,t){for(var e=0,o=n.length;o>e;e++){var r=n[e];if(t(r,e))return St.some(r)}return St.none()},Zt=function(n,t){for(var e=0,o=n.length;o>e;e++){var r=n[e];if(t(r,e))return St.some(e)}return St.none()},ne=function(n){for(var t=[],e=0,o=n.length;o>e;++e){if(!At(n[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+n);Nt.apply(t,n[e])}return t},te=function(n,t){return ne(Gt(n,t))},ee=function(n,t){for(var e=0,o=n.length;o>e;++e){var r=n[e];if(t(r,e)!==!0)return!1}return!0},oe=function(n){var t=Vt.call(n,0);return t.reverse(),t},re=function(n,t){return Kt(n,function(n){return!Lt(t,n)})},ie=function(n,t){for(var e={},o=0,r=n.length;r>o;o++){var i=n[o];e[String(i)]=t(i,o)}return e},ue=function(n){return[n]},ae=function(n,t){var e=Vt.call(n,0);return e.sort(t),e},ce=function(n){return 0===n.length?St.none():St.some(n[0])},se=function(n){return 0===n.length?St.none():St.some(n[n.length-1])},fe=Ft(Array.from)?Array.from:function(n){return Vt.call(n)},le=function(n,t){for(var e=0;e<n.length;e++){var o=t(n[e],e);if(o.isSome())return o}return St.none()},de=Object.keys,me=Object.hasOwnProperty,ge=function(n,t){for(var e=de(n),o=0,r=e.length;r>o;o++){var i=e[o],u=n[i];t(u,i)}},pe=function(n,t){return he(n,function(n,e){return{k:e,v:t(n,e)}})},he=function(n,t){var e={};return ge(n,function(n,o){var r=t(n,o);e[r.k]=r.v}),e},ve=function(n,t){var e=[];return ge(n,function(n,o){e.push(t(n,o))}),e},be=function(n,t){for(var e=de(n),o=0,r=e.length;r>o;o++){var i=e[o],u=n[i];if(t(u,i,n))return St.some(u)}return St.none()},ye=function(n){return ve(n,function(n){return n})},xe=function(n,t){return we(n,t)?St.from(n[t]):St.none()},we=function(n,t){return me.call(n,t)},Se=function(n,t){return we(n,t)&&void 0!==n[t]&&null!==n[t]},Ce=function(t){if(!At(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],o={};return Xt(t,function(r,i){var u=de(r);if(1!==u.length)throw new Error("one and only one name per case");var a=u[0],c=r[a];if(void 0!==o[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!At(c))throw new Error("case arguments must be an array");e.push(a),o[a]=function(){var o=arguments.length;if(o!==c.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+c.length+" ("+c+"), got "+o);for(var r=new Array(o),u=0;u<r.length;u++)r[u]=arguments[u];var s=function(n){var t=de(n);if(e.length!==t.length)throw new Error("Wrong number of arguments to match. Expected: "+e.join(",")+"\nActual: "+t.join(","));var o=ee(e,function(n){return Lt(t,n)});if(!o)throw new Error("Not all branches were specified when using match. Specified: "+t.join(", ")+"\nRequired: "+e.join(", "));return n[a].apply(null,r)};return{fold:function(){if(arguments.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+arguments.length);var n=arguments[i];return n.apply(null,r)},match:s,log:function(t){n.console.log(t,{constructors:e,constructor:a,params:r})}}}}),o},ke={generate:Ce},Oe=Object.prototype.hasOwnProperty,_e=function(n,t){return t},Te=function(n,t){var e=Dt(n)&&Dt(t);return e?Be(n,t):t},Ee=function(n){return function(){for(var t=new Array(arguments.length),e=0;e<t.length;e++)t[e]=arguments[e];if(0===t.length)throw new Error("Can't merge zero objects");for(var o={},r=0;r<t.length;r++){var i=t[r];for(var u in i)Oe.call(i,u)&&(o[u]=n(o[u],i[u]))}return o}},Be=Ee(Te),De=Ee(_e),Ae=function(n){var t,e=!1;return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];return e||(e=!0,t=n.apply(null,o)),t}};!function(n){n[n.Error=0]="Error",n[n.Value=1]="Value"}(ut||(ut={}));var Me,Fe=function(n,t,e){return n.stype===ut.Error?t(n.serror):e(n.svalue)},Ie=function(n){var t=[],e=[];return Xt(n,function(n){Fe(n,function(n){return e.push(n)},function(n){return t.push(n)})}),{values:t,errors:e}},Re=function(n,t){return n.stype===ut.Error?{stype:ut.Error,serror:t(n.serror)}:n},Ve=function(n,t){return n.stype===ut.Value?{stype:ut.Value,svalue:t(n.svalue)}:n},He=function(n,t){return n.stype===ut.Value?t(n.svalue):n},Ne=function(n,t){return n.stype===ut.Error?t(n.serror):n},Pe=function(n){return{stype:ut.Value,svalue:n}},ze=function(n){return{stype:ut.Error,serror:n}},Le=function(n){return Fe(n,_t.error,_t.value)},je=function(n){return n.fold(ze,Pe)},Ue={fromResult:je,toResult:Le,svalue:Pe,partition:Ie,serror:ze,bind:He,bindError:Ne,map:Ve,mapError:Re,fold:Fe},We=ke.generate([{strict:[]},{defaultedThunk:["fallbackThunk"]},{asOption:[]},{asDefaultedOptionThunk:["fallbackThunk"]},{mergeWithThunk:["baseThunk"]}]),Ge=function(n){return We.defaultedThunk(ft(n))},Xe=function(n){return We.mergeWithThunk(ft(n))},Ye=We.strict,qe=We.asOption,Ke=We.defaultedThunk,Je=(We.asDefaultedOptionThunk,We.mergeWithThunk),$e=function(n,t){var e={};return ge(n,function(n,o){Lt(t,o)||(e[o]=n)}),e},Qe=function(n,t){var e;return e={},e[n]=t,e},Ze=function(n){var t={};return Xt(n,function(n){t[n.key]=n.value}),t},no=(ke.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),function(n){var t=[],e=[];return Xt(n,function(n){n.fold(function(n){t.push(n)},function(n){e.push(n)})}),{errors:t,values:e}}),to=function(n,t){return $e(n,t)},eo=function(n,t){return Qe(n,t)},oo=function(n){return Ze(n)},ro=function(n,t){return _t.value(0===n.length?t:Be(t,De.apply(void 0,n)))},io=function(n){return _t.error(ne(n))},uo=function(n,t){var e=no(n);return e.errors.length>0?io(e.errors):ro(e.values,t)},ao=function(n,t){return Ue.svalue(n.length>0?Be(t,De.apply(void 0,n)):t)},co=function(n){return st(Ue.serror,ne)(n)},so=function(n,t){var e=Ue.partition(n);return e.errors.length>0?co(e.errors):ao(e.values,t)},fo=function(n){var t=Ue.partition(n);return t.errors.length>0?co(t.errors):Ue.svalue(t.values)},lo={consolidateObj:so,consolidateArr:fo},mo=function(n){return Dt(n)&&de(n).length>100?" removed due to size":JSON.stringify(n,null,2)},go=function(n){var t=n.length>10?n.slice(0,10).concat([{path:[],getErrorInfo:function(){return"... (only showing first ten failures)"}}]):n;return Gt(t,function(n){return"Failed path: ("+n.path.join(" > ")+")\n"+n.getErrorInfo()})},po=function(n,t){return Ue.serror([{path:n,getErrorInfo:t}])},ho=function(n,t,e){return po(n,function(){return'Could not find valid *strict* value for "'+t+'" in '+mo(e)})},vo=function(n,t){return po(n,function(){return'Choice schema did not contain choice key: "'+t+'"'})},bo=function(n,t,e){return po(n,function(){return'The chosen schema: "'+e+'" did not exist in branches: '+mo(t)})},yo=function(n,t){return po(n,function(){return"There are unsupported fields: ["+t.join(", ")+"] specified"})},xo=function(n,t){return po(n,function(){return t})},wo=ke.generate([{field:["key","okey","presence","prop"]},{state:["okey","instantiator"]}]),So=function(n,t,e){return xe(t,e).fold(function(){return ho(n,e,t)},Ue.svalue)},Co=function(n,t,e){var o=xe(n,t).fold(function(){return e(n)},lt);return Ue.svalue(o)},ko=function(n,t){return Ue.svalue(xe(n,t))},Oo=function(n,t,e){var o=xe(n,t).map(function(t){return t===!0?e(n):t});return Ue.svalue(o)},_o=function(n,t,e,o){return e.fold(function(e,r,i,u){var a=function(t){var i=u.extract(n.concat([e]),o,t);return Ue.map(i,function(n){return Qe(r,o(n))})},c=function(t){return t.fold(function(){var n=Qe(r,o(St.none()));return Ue.svalue(n)},function(t){var i=u.extract(n.concat([e]),o,t);return Ue.map(i,function(n){return Qe(r,o(St.some(n)))})})};return function(){return i.fold(function(){return Ue.bind(So(n,t,e),a)},function(n){return Ue.bind(Co(t,e,n),a)},function(){return Ue.bind(ko(t,e),c)},function(n){return Ue.bind(Oo(t,e,n),c)},function(n){var o=n(t),r=Ue.map(Co(t,e,ft({})),function(n){return Be(o,n)});return Ue.bind(r,a)})}()},function(n,e){var r=e(t);return Ue.svalue(Qe(n,o(r)))})},To=function(n,t,e,o){var r=Gt(e,function(e){return _o(n,t,e,o)});return lo.consolidateObj(r,{})},Eo=function(n){var t=function(t,e,o){return n().extract(t,e,o)},e=function(){return n().toString()};return{extract:t,toString:e}},Bo=function(n){var t=function(t,e,o){return Ue.bindError(n(o,e),function(n){return xo(t,n)})},e=function(){return"val"};return{extract:t,toString:e}},Do=function(n){var t=de(n);return Kt(t,function(t){return Se(n,t)})},Ao=function(n){var t=Mo(n),e=Jt(n,function(n,t){return t.fold(function(t){return Be(n,eo(t,!0))},ft(n))},{}),o=function(n,o,r){var i=Mt(r)?[]:Do(r),u=Kt(i,function(n){return!Se(e,n)});return 0===u.length?t.extract(n,o,r):yo(n,u)};return{extract:o,toString:t.toString}},Mo=function(n){var t=function(t,e,o){return To(t,o,n,e)},e=function(){var t=Gt(n,function(n){return n.fold(function(n,t,e,o){return n+" -> "+o.toString()},function(n){return"state("+n+")"})});return"obj{\n"+t.join("\n")+"}"};return{extract:t,toString:e}},Fo=function(n){var t=function(t,e,o){var r=Gt(o,function(o,r){return n.extract(t.concat(["["+r+"]"]),e,o)});return lo.consolidateArr(r)},e=function(){return"array("+n.toString()+")"};return{extract:t,toString:e}},Io=function(n){var t=function(t,e,o){for(var r=[],i=0,u=n;i<u.length;i++){var a=u[i],c=a.extract(t,e,o);if(c.stype===ut.Value)return c;r.push(c)}return lo.consolidateArr(r)},e=function(){return"oneOf("+Gt(n,function(n){return n.toString()}).join(", ")+")"};return{extract:t,toString:e}},Ro=function(n,t){var e=function(t,e){return Fo(Bo(n)).extract(t,lt,e)},o=function(n,o,r){var i=de(r),u=e(n,i);return Ue.bind(u,function(e){var i=Gt(e,function(n){return wo.field(n,n,Ye(),t)});return Mo(i).extract(n,o,r)})},r=function(){return"setOf("+t.toString()+")"};return{extract:o,toString:r}},Vo=ft(Bo(Ue.svalue)),Ho=st(Fo,Mo),No=wo.state,Po=wo.field,zo=function(n,t,e,o,r){var i=xe(o,r);return i.fold(function(){return bo(n,o,r)},function(o){return o.extract(n.concat(["branch: "+r]),t,e)})},Lo=function(n,t){var e=function(e,o,r){var i=xe(r,n);return i.fold(function(){return vo(e,n)},function(n){return zo(e,o,r,t,n)})},o=function(){return"chooseOn("+n+"). Possible values: "+de(t)};return{extract:e,toString:o}},jo=Bo(Ue.svalue),Uo=function(n){return Ho(n)},Wo=function(){return Fo(jo)},Go=Eo,Xo=function(n){return Bo(function(t){return n(t).fold(Ue.serror,Ue.svalue)})},Yo=function(n,t){return Ro(function(t){return Ue.fromResult(n(t))},t)},qo=function(n,t,e,o){var r=t.extract([n],e,o);return Ue.mapError(r,function(n){return{input:o,errors:n}})},Ko=function(n,t,e){return Ue.toResult(qo(n,t,lt,e))},Jo=function(n){return n.fold(function(n){throw new Error(Qo(n))},lt)},$o=function(n,t,e){return Jo(Ko(n,t,e))},Qo=function(n){return"Errors: \n"+go(n.errors).join("\n")+"\n\nInput object: "+mo(n.input)},Zo=function(n,t){return Lo(n,t)},nr=function(n,t){return Lo(n,pe(t,Mo))},tr=ft(jo),er=function(n,t){return Bo(function(e){var o=typeof e;return n(e)?Ue.svalue(e):Ue.serror("Expected type: "+t+" but got: "+o)})},or=er(It,"number"),rr=er(Bt,"string"),ir=er(Mt,"boolean"),ur=er(Ft,"function"),ar=function(n){var t=function(n,t){for(var e=n.next();!e.done;){if(!t(e.value))return!1;e=n.next()}return!0};if(Object(n)!==n)return!0;switch({}.toString.call(n).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(n).every(function(t){return ar(n[t])});case"Map":return t(n.keys(),ar)&&t(n.values(),ar);case"Set":return t(n.keys(),ar);default:return!1}},cr=Bo(function(n){return ar(n)?Ue.svalue(n):Ue.serror("Expected value to be acceptable for sending via postMessage")}),sr=function(n){return Xo(function(t){return Lt(n,t)?_t.value(t):_t.error('Unsupported value: "'+t+'", choose one of "'+n.join(", ")+'".')})},fr=function(n){return Po(n,n,Ye(),Vo())},lr=function(n,t){return Po(n,n,Ye(),t)},dr=function(n){return lr(n,or)},mr=function(n){return lr(n,rr)},gr=function(n,t){return Po(n,n,Ye(),sr(t))},pr=function(n){return lr(n,ir)},hr=function(n){return lr(n,ur)},vr=function(n,t){return Po(n,n,qe(),Bo(function(){return Ue.serror("The field: "+n+" is forbidden. "+t)}))},br=function(n,t){return Po(n,n,Ye(),Mo(t))},yr=function(n,t){return Po(n,n,Ye(),Ho(t))},xr=function(n,t){return Po(n,n,Ye(),Fo(t))},wr=function(n){return Po(n,n,qe(),Vo())},Sr=function(n,t){return Po(n,n,qe(),t)},Cr=function(n){return Sr(n,or)},kr=function(n){return Sr(n,rr)},Or=function(n){return Sr(n,ur)},_r=function(n,t){return Sr(n,Fo(t))},Tr=function(n,t){return Sr(n,Mo(t))},Er=function(n,t){return Sr(n,Ao(t))},Br=function(n,t){return Po(n,n,Ge(t),Vo())},Dr=function(n,t,e){return Po(n,n,Ge(t),e)},Ar=function(n,t){return Dr(n,t,or)},Mr=function(n,t){return Dr(n,t,rr)},Fr=function(n,t,e){return Dr(n,t,sr(e))},Ir=function(n,t){return Dr(n,t,ir)},Rr=function(n,t){return Dr(n,t,ur)},Vr=function(n,t){return Dr(n,t,cr)},Hr=function(n,t,e){return Dr(n,t,Fo(e))},Nr=function(n,t,e){return Dr(n,t,Mo(e))},Pr=function(n,t){return No(n,t)},zr=function(n){var t=n,e=function(){return t},o=function(n){t=n},r=function(){return zr(e())};return{get:e,set:o,clone:r}},Lr=function(t,e){var o=e||n.document,r=o.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw n.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Wr(r.childNodes[0])},jr=function(t,e){var o=e||n.document,r=o.createElement(t);
return Wr(r)},Ur=function(t,e){var o=e||n.document,r=o.createTextNode(t);return Wr(r)},Wr=function(n){if(null===n||void 0===n)throw new Error("Node cannot be null or undefined");return{dom:ft(n)}},Gr=function(n,t,e){var o=n.dom();return St.from(o.elementFromPoint(t,e)).map(Wr)},Xr={fromHtml:Lr,fromTag:jr,fromText:Ur,fromDom:Wr,fromPoint:Gr},Yr=function(n,t,e){return 0!==(n.compareDocumentPosition(t)&e)},qr=function(t,e){return Yr(t,e,n.Node.DOCUMENT_POSITION_PRECEDING)},Kr=function(t,e){return Yr(t,e,n.Node.DOCUMENT_POSITION_CONTAINED_BY)},Jr={documentPositionPreceding:qr,documentPositionContainedBy:Kr},$r=function(n,t){for(var e=0;e<n.length;e++){var o=n[e];if(o.test(t))return o}return void 0},Qr=function(n,t){var e=$r(n,t);if(!e)return{major:0,minor:0};var o=function(n){return Number(t.replace(e,"$"+n))};return ti(o(1),o(2))},Zr=function(n,t){var e=String(t).toLowerCase();return 0===n.length?ni():Qr(n,e)},ni=function(){return ti(0,0)},ti=function(n,t){return{major:n,minor:t}},ei={nu:ti,detect:Zr,unknown:ni},oi="Edge",ri="Chrome",ii="IE",ui="Opera",ai="Firefox",ci="Safari",si=function(n,t){return function(){return t===n}},fi=function(){return li({current:void 0,version:ei.unknown()})},li=function(n){var t=n.current,e=n.version;return{current:t,version:e,isEdge:si(oi,t),isChrome:si(ri,t),isIE:si(ii,t),isOpera:si(ui,t),isFirefox:si(ai,t),isSafari:si(ci,t)}},di={unknown:fi,nu:li,edge:ft(oi),chrome:ft(ri),ie:ft(ii),opera:ft(ui),firefox:ft(ai),safari:ft(ci)},mi="Windows",gi="iOS",pi="Android",hi="Linux",vi="OSX",bi="Solaris",yi="FreeBSD",xi="ChromeOS",wi=function(n,t){return function(){return t===n}},Si=function(){return Ci({current:void 0,version:ei.unknown()})},Ci=function(n){var t=n.current,e=n.version;return{current:t,version:e,isWindows:wi(mi,t),isiOS:wi(gi,t),isAndroid:wi(pi,t),isOSX:wi(vi,t),isLinux:wi(hi,t),isSolaris:wi(bi,t),isFreeBSD:wi(yi,t),isChromeOS:wi(xi,t)}},ki={unknown:Si,nu:Ci,windows:ft(mi),ios:ft(gi),android:ft(pi),linux:ft(hi),osx:ft(vi),solaris:ft(bi),freebsd:ft(yi),chromeos:ft(xi)},Oi=function(n,t,e,o){var r=n.isiOS()&&/ipad/i.test(e)===!0,i=n.isiOS()&&!r,u=n.isiOS()||n.isAndroid(),a=u||o("(pointer:coarse)"),c=r||!i&&u&&o("(min-device-width:768px)"),s=i||u&&!c,f=t.isSafari()&&n.isiOS()&&/safari/i.test(e)===!1,l=!s&&!c&&!f;return{isiPad:ft(r),isiPhone:ft(i),isTablet:ft(c),isPhone:ft(s),isTouch:ft(a),isAndroid:n.isAndroid,isiOS:n.isiOS,isWebView:ft(f),isDesktop:ft(l)}},_i=function(n,t){var e=String(t).toLowerCase();return Qt(n,function(n){return n.search(e)})},Ti=function(n,t){return _i(n,t).map(function(n){var e=ei.detect(n.versionRegexes,t);return{current:n.name,version:e}})},Ei=function(n,t){return _i(n,t).map(function(n){var e=ei.detect(n.versionRegexes,t);return{current:n.name,version:e}})},Bi={detectBrowser:Ti,detectOs:Ei},Di=function(n,t,e){if(""===t)return!0;if(n.length<t.length)return!1;var o=n.substr(e,e+t.length);return o===t},Ai=function(n,t){return-1!==n.indexOf(t)},Mi=function(n,t){return Di(n,t,n.length-t.length)},Fi=function(n){return n.replace(/^\s+|\s+$/g,"")},Ii=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ri=function(n){return function(t){return Ai(t,n)}},Vi=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(n){return Ai(n,"edge/")&&Ai(n,"chrome")&&Ai(n,"safari")&&Ai(n,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ii],search:function(n){return Ai(n,"chrome")&&!Ai(n,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(n){return Ai(n,"msie")||Ai(n,"trident")}},{name:"Opera",versionRegexes:[Ii,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ri("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ri("firefox")},{name:"Safari",versionRegexes:[Ii,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(n){return(Ai(n,"safari")||Ai(n,"mobile/"))&&Ai(n,"applewebkit")}}],Hi=[{name:"Windows",search:Ri("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(n){return Ai(n,"iphone")||Ai(n,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ri("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Ri("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ri("linux"),versionRegexes:[]},{name:"Solaris",search:Ri("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ri("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ri("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Ni={browsers:ft(Vi),oses:ft(Hi)},Pi=function(n,t){var e=Ni.browsers(),o=Ni.oses(),r=Bi.detectBrowser(e,n).fold(di.unknown,di.nu),i=Bi.detectOs(o,n).fold(ki.unknown,ki.nu),u=Oi(i,r,n,t);return{browser:r,os:i,deviceType:u}},zi={detect:Pi},Li=function(t){return n.window.matchMedia(t).matches},ji=zr(zi.detect(n.navigator.userAgent,Li)),Ui=function(){return ji.get()},Wi=(n.Node.ATTRIBUTE_NODE,n.Node.CDATA_SECTION_NODE,n.Node.COMMENT_NODE,n.Node.DOCUMENT_NODE),Gi=(n.Node.DOCUMENT_TYPE_NODE,n.Node.DOCUMENT_FRAGMENT_NODE,n.Node.ELEMENT_NODE),Xi=n.Node.TEXT_NODE,Yi=(n.Node.PROCESSING_INSTRUCTION_NODE,n.Node.ENTITY_REFERENCE_NODE,n.Node.ENTITY_NODE,n.Node.NOTATION_NODE,Gi),qi=Wi,Ki=function(n,t){var e=n.dom();if(e.nodeType!==Yi)return!1;var o=e;if(void 0!==o.matches)return o.matches(t);if(void 0!==o.msMatchesSelector)return o.msMatchesSelector(t);if(void 0!==o.webkitMatchesSelector)return o.webkitMatchesSelector(t);if(void 0!==o.mozMatchesSelector)return o.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Ji=function(n){return n.nodeType!==Yi&&n.nodeType!==qi||0===n.childElementCount},$i=function(t,e){var o=void 0===e?n.document:e.dom();return Ji(o)?[]:Gt(o.querySelectorAll(t),Xr.fromDom)},Qi=function(t,e){var o=void 0===e?n.document:e.dom();return Ji(o)?St.none():St.from(o.querySelector(t)).map(Xr.fromDom)},Zi=function(n,t){return n.dom()===t.dom()},nu=function(n,t){var e=n.dom(),o=t.dom();return e===o?!1:e.contains(o)},tu=function(n,t){return Jr.documentPositionContainedBy(n.dom(),t.dom())},eu=Ui().browser,ou=eu.isIE()?tu:nu,ru=function(n,t,e){for(var o=n.dom(),r=Ft(e)?e:ft(!1);o.parentNode;){o=o.parentNode;var i=Xr.fromDom(o),u=t(i);if(u.isSome())return u;if(r(i))break}return St.none()},iu=function(n,t,e){var o=t(n);return o.orThunk(function(){return e(n)?St.none():ru(n,t,e)})},uu=function(n,t){return Zi(n.element(),t.event().target())},au=function(n){if(!Se(n,"can")&&!Se(n,"abort")&&!Se(n,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(n,null,2)+" does not have can, abort, or run!");return $o("Extracting event.handler",Ao([Br("can",ft(!0)),Br("abort",ft(!1)),Br("run",at)]),n)},cu=function(n,t){return function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return $t(n,function(n,o){return n&&t(o).apply(void 0,e)},!0)}},su=function(n,t){return function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return $t(n,function(n,o){return n||t(o).apply(void 0,e)},!1)}},fu=function(n){return Ft(n)?{can:ft(!0),abort:ft(!1),run:n}:n},lu=function(n){var t=cu(n,function(n){return n.can}),e=su(n,function(n){return n.abort}),o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];Xt(n,function(n){n.run.apply(void 0,t)})};return au({can:t,abort:e,run:o})},du=ft("touchstart"),mu=ft("touchmove"),gu=ft("touchend"),pu=ft("touchcancel"),hu=ft("mousedown"),vu=ft("mousemove"),bu=ft("mouseout"),yu=ft("mouseup"),xu=ft("mouseover"),wu=ft("focusin"),Su=ft("focusout"),Cu=ft("keydown"),ku=ft("keyup"),Ou=ft("input"),_u=ft("change"),Tu=ft("click"),Eu=ft("transitionend"),Bu=ft("selectstart"),Du={tap:ft("alloy.tap")},Au=ft("alloy.focus"),Mu=ft("alloy.blur.post"),Fu=ft("alloy.paste.post"),Iu=ft("alloy.receive"),Ru=ft("alloy.execute"),Vu=ft("alloy.focus.item"),Hu=Du.tap,Nu=ft("alloy.longpress"),Pu=ft("alloy.sandbox.close"),zu=ft("alloy.typeahead.cancel"),Lu=ft("alloy.system.init"),ju=ft("alloy.system.touchmove"),Uu=ft("alloy.system.touchend"),Wu=ft("alloy.system.scroll"),Gu=ft("alloy.system.resize"),Xu=ft("alloy.system.attached"),Yu=ft("alloy.system.detached"),qu=ft("alloy.system.dismissRequested"),Ku=ft("alloy.system.repositionRequested"),Ju=ft("alloy.focusmanager.shifted"),$u=ft("alloy.slotcontainer.visibility"),Qu=ft("alloy.change.tab"),Zu=ft("alloy.dismiss.tab"),na=ft("alloy.highlight"),ta=ft("alloy.dehighlight"),ea=function(n,t){ua(n,n.element(),t,{})},oa=function(n,t,e){ua(n,n.element(),t,e)},ra=function(n){ea(n,Ru())},ia=function(n,t,e){ua(n,t,e,{})},ua=function(n,t,e,o){var r=vt({target:t},o);n.getSystem().triggerEvent(e,t,pe(r,ft))},aa=function(n,t,e,o){n.getSystem().triggerEvent(e,t,o.event())},ca=function(n){return oo(n)},sa=function(n,t){return{key:n,value:au({abort:t})}},fa=function(n,t){return{key:n,value:au({can:t})}},la=function(n){return{key:n,value:au({run:function(n,t){t.event().prevent()}})}},da=function(n,t){return{key:n,value:au({run:t})}},ma=function(n,t,e){return{key:n,value:au({run:function(n,o){t.apply(void 0,[n,o].concat(e))}})}},ga=function(n){return function(t){return da(n,t)}},pa=function(n){return function(t){return{key:n,value:au({run:function(n,e){uu(n,e)&&t(n,e)}})}}},ha=function(n,t){return da(n,function(e,o){e.getSystem().getByUid(t).each(function(t){aa(t,t.element(),n,o)})})},va=function(n,t,e){var o=t.partUids[e];return ha(n,o)},ba=function(n,t){return da(n,function(n,e){var o=e.event(),r=n.getSystem().getByDom(o.target()).fold(function(){var t=iu(o.target(),function(t){return n.getSystem().getByDom(t).toOption()},ft(!1));return t.getOr(n)},function(n){return n});t(n,r,e)})},ya=function(n){return da(n,function(n,t){t.cut()})},xa=function(n){return da(n,function(n,t){t.stop()})},wa=function(n,t){return pa(n)(t)},Sa=pa(Xu()),Ca=pa(Yu()),ka=pa(Lu()),Oa=ga(Ru()),_a=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(n.length!==t.length)throw new Error('Wrong number of arguments to struct. Expected "['+n.length+']", got '+t.length+" arguments");var o={};return Xt(n,function(n,e){o[n]=ft(t[e])}),o}},Ta=function(n){return n.slice(0).sort()},Ea=function(n,t){throw new Error("All required keys ("+Ta(n).join(", ")+") were not specified. Specified keys were: "+Ta(t).join(", ")+".")},Ba=function(n){throw new Error("Unsupported keys for object: "+Ta(n).join(", "))},Da=function(n,t){if(!At(t))throw new Error("The "+n+" fields must be an array. Was: "+t+".");Xt(t,function(t){if(!Bt(t))throw new Error("The value "+t+" in the "+n+" fields was not a string.")})},Aa=function(n){var t=Ta(n),e=Qt(t,function(n,e){return e<t.length-1&&n===t[e+1]});e.each(function(n){throw new Error("The field: "+n+" occurs more than once in the combined fields: ["+t.join(", ")+"].")})},Ma=function(n,t){var e=n.concat(t);if(0===e.length)throw new Error("You must specify at least one required or optional field.");return Da("required",n),Da("optional",t),Aa(e),function(o){var r=de(o),i=ee(n,function(n){return Lt(r,n)});i||Ea(n,r);var u=Kt(r,function(n){return!Lt(e,n)});u.length>0&&Ba(u);var a={};return Xt(n,function(n){a[n]=ft(o[n])}),Xt(t,function(n){a[n]=ft(Object.prototype.hasOwnProperty.call(o,n)?St.some(o[n]):St.none())}),a}},Fa=function(n){return Xr.fromDom(n.dom().ownerDocument)},Ia=function(n){return Xr.fromDom(n.dom().ownerDocument.documentElement)},Ra=function(n){return Xr.fromDom(n.dom().ownerDocument.defaultView)},Va=function(n){return St.from(n.dom().parentNode).map(Xr.fromDom)},Ha=function(n){return St.from(n.dom().offsetParent).map(Xr.fromDom)},Na=function(n){return St.from(n.dom().nextSibling).map(Xr.fromDom)},Pa=function(n){return Gt(n.dom().childNodes,Xr.fromDom)},za=function(n,t){var e=n.dom().childNodes;return St.from(e[t]).map(Xr.fromDom)},La=function(n){return za(n,0)},ja=(_a("element","offset"),function(t,e){var o=e||n.document,r=o.createElement("div");return r.innerHTML=t,Pa(Xr.fromDom(r))}),Ua=function(n,t){var e=Va(n);e.each(function(e){e.dom().insertBefore(t.dom(),n.dom())})},Wa=function(n,t){var e=Na(n);e.fold(function(){var e=Va(n);e.each(function(n){Xa(n,t)})},function(n){Ua(n,t)})},Ga=function(n,t){var e=La(n);e.fold(function(){Xa(n,t)},function(e){n.dom().insertBefore(t.dom(),e.dom())})},Xa=function(n,t){n.dom().appendChild(t.dom())},Ya=function(n,t,e){za(n,e).fold(function(){Xa(n,t)},function(n){Ua(n,t)})},qa=function(n,t){Xt(t,function(t){Ua(n,t)})},Ka=function(n,t){Xt(t,function(t){Xa(n,t)})},Ja=function(n){n.dom().textContent="",Xt(Pa(n),function(n){$a(n)})},$a=function(n){var t=n.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},Qa=function(n){var t=Pa(n);t.length>0&&qa(n,t),$a(n)},Za=function(n){return n.dom().innerHTML},nc=function(n,t){var e=Fa(n),o=e.dom(),r=Xr.fromDom(o.createDocumentFragment()),i=ja(t,o);Ka(r,i),Ja(n),Xa(n,r)},tc=function(n){var t=Xr.fromTag("div"),e=Xr.fromDom(n.dom().cloneNode(!0));return Xa(t,e),Za(t)},ec=("undefined"!=typeof n.window?n.window:Function("return this;")(),function(n){var t=n.dom().nodeName;return t.toLowerCase()}),oc=function(n){return n.dom().nodeType},rc=function(n){return function(t){return oc(t)===n}},ic=rc(Gi),uc=rc(Xi),ac=function(t,e,o){if(!(Bt(o)||Mt(o)||It(o)))throw n.console.error("Invalid call to Attr.set. Key ",e,":: Value ",o,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,o+"")},cc=function(n,t,e){ac(n.dom(),t,e)},sc=function(n,t){var e=n.dom();ge(t,function(n,t){ac(e,t,n)})},fc=function(n,t){var e=n.dom().getAttribute(t);return null===e?void 0:e},lc=function(n,t){return St.from(fc(n,t))},dc=function(n,t){var e=n.dom();return e&&e.hasAttribute?e.hasAttribute(t):!1},mc=function(n,t){n.dom().removeAttribute(t)},gc=function(n,t){return Xr.fromDom(n.dom().cloneNode(t))},pc=function(n){return gc(n,!1)},hc=function(n){var t=pc(n);return tc(t)},vc=function(n){return hc(n)},bc=function(n,t,e){return Zi(t,n.element())&&!Zi(t,e)},yc=ca([fa(Au(),function(t,e){var o=e.event().originator(),r=e.event().target();return bc(t,o,r)?(n.console.warn(Au()+" did not get interpreted by the desired target. \nOriginator: "+vc(o)+"\nTarget: "+vc(r)+"\nCheck the "+Au()+" event handlers"),!1):!0})]),xc=Object.freeze({__proto__:null,events:yc}),wc=0,Sc=function(n){var t=new Date,e=t.getTime(),o=Math.floor(1e9*Math.random());return wc++,n+"_"+o+wc+String(e)},Cc=ft("alloy-id-"),kc=ft("data-alloy-id"),Oc=Cc(),_c=kc(),Tc=function(n,t){var e=Sc(Oc+n);return Ec(t,e),e},Ec=function(n,t){Object.defineProperty(n.dom(),_c,{value:t,writable:!0})},Bc=function(n){var t=ic(n)?n.dom()[_c]:null;return St.from(t)},Dc=function(n){return Sc(n)},Ac=lt,Mc=function(n){var t=function(t){return function(){throw new Error("The component must be in a context to send: "+t+(n?"\n"+vc(n().element())+" is not in context.":""))}};return{debugInfo:ft("fake"),triggerEvent:t("triggerEvent"),triggerFocus:t("triggerFocus"),triggerEscape:t("triggerEscape"),build:t("build"),addToWorld:t("addToWorld"),removeFromWorld:t("removeFromWorld"),addToGui:t("addToGui"),removeFromGui:t("removeFromGui"),getByUid:t("getByUid"),getByDom:t("getByDom"),broadcast:t("broadcast"),broadcastOn:t("broadcastOn"),broadcastEvent:t("broadcastEvent"),isConnected:ft(!1)}},Fc=Mc(),Ic=function(n,t,e){var o=e.toString(),r=o.indexOf(")")+1,i=o.indexOf("("),u=o.substring(i+1,r-1).split(/,\s*/);return n.toFunctionAnnotation=function(){return{name:t,parameters:Rc(u.slice(0,1).concat(u.slice(3)))}},n},Rc=function(n){return Gt(n,function(n){return Mi(n,"/*")?n.substring(0,n.length-"/*".length):n})},Vc=function(n,t){var e=n.toString(),o=e.indexOf(")")+1,r=e.indexOf("("),i=e.substring(r+1,o-1).split(/,\s*/);return n.toFunctionAnnotation=function(){return{name:t,parameters:Rc(i)}},n},Hc=function(n,t){var e=t.toString(),o=e.indexOf(")")+1,r=e.indexOf("("),i=e.substring(r+1,o-1).split(/,\s*/);return n.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:Rc(i.slice(1))}},n},Nc=Sc("alloy-premade"),Pc=function(n){return eo(Nc,n)},zc=function(n){return xe(n,Nc)},Lc=function(n){return Hc(function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];return n.apply(void 0,[t.getApis()].concat([t].concat(e)))},n)},jc={init:function(){return Uc({readState:function(){return"No State required"}})}},Uc=function(n){return n},Wc=function(n,t){var e=Gt(t,function(n){return Tr(n.name(),[fr("config"),Br("state",jc)])}),o=Ko("component.behaviours",Mo(e),n.behaviours).fold(function(t){throw new Error(Qo(t)+"\nComplete spec:\n"+JSON.stringify(n,null,2))},function(n){return n});return{list:t,data:pe(o,function(n){var t=n.map(function(n){return{config:n.config,state:n.state.init(n.config)}});return function(){return t}})}},Gc=function(n){return n.list},Xc=function(n){return n.data},Yc=function(n,t){var e={};return ge(n,function(n,o){ge(n,function(n,r){var i=xe(e,r).getOr([]);e[r]=i.concat([t(o,n)])})}),e},qc=function(n){return{classes:void 0!==n.classes?n.classes:[],attributes:void 0!==n.attributes?n.attributes:{},styles:void 0!==n.styles?n.styles:{}}},Kc=function(n,t){return vt(vt({},n),{attributes:vt(vt({},n.attributes),t.attributes),styles:vt(vt({},n.styles),t.styles),classes:n.classes.concat(t.classes)})},Jc=function(n,t,e,o){var r=vt({},t);Xt(e,function(t){r[t.name()]=t.exhibit(n,o)});var i=Yc(r,function(n,t){return{name:n,modification:t}}),u=function(n){return Jt(n,function(n,t){return vt(vt({},t.modification),n)},{})},a=Jt(i.classes,function(n,t){return t.modification.concat(n)},[]),c=u(i.attributes),s=u(i.styles);return qc({classes:a,attributes:c,styles:s})},$c=function(n,t,e,o){try{var r=ae(e,function(e,r){var i=e[t](),u=r[t](),a=o.indexOf(i),c=o.indexOf(u);if(-1===a)throw new Error("The ordering for "+n+" does not have an entry for "+i+".\nOrder specified: "+JSON.stringify(o,null,2));if(-1===c)throw new Error("The ordering for "+n+" does not have an entry for "+u+".\nOrder specified: "+JSON.stringify(o,null,2));return c>a?-1:a>c?1:0});return _t.value(r)}catch(i){return _t.error([i])}},Qc=function(n,t){return{handler:n,purpose:ft(t)}},Zc=function(n,t){return{cHandler:n,purpose:ft(t)}},ns=function(n,e){return Zc(t.apply(void 0,[n.handler].concat(e)),n.purpose())},ts=function(n){return n.cHandler},es=function(n,t){return{name:ft(n),handler:ft(t)}},os=function(n,t){var e={};return Xt(n,function(n){e[n.name()]=n.handlers(t)}),e},rs=function(n,t,e){var o=vt(vt({},e),os(t,n));return Yc(o,es)},is=function(n,t,e,o){var r=rs(n,e,o);return ss(r,t)},us=function(n){var t=fu(n);return function(n,e){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];var i=[n,e].concat(o);t.abort.apply(void 0,i)?e.stop():t.can.apply(void 0,i)&&t.run.apply(void 0,i)}},as=function(n,t){return _t.error(["The event ("+n+') 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(Gt(t,function(n){return n.name()}),null,2)])},cs=function(n,t,e){var o=t[e];return o?$c("Event: "+e,"name",n,o).map(function(n){var t=Gt(n,function(n){return n.handler()});return lu(t)}):as(e,n)},ss=function(n,t){var e=ve(n,function(n,e){var o=1===n.length?_t.value(n[0].handler()):cs(n,t,e);return o.map(function(o){var r=us(o),i=n.length>1?Kt(t[e],function(t){return jt(n,function(n){return n.name()===t})}).join(" > "):n[0].name();return eo(e,Qc(r,i))})});return uo(e,{})},fs=function(n){return Ko("custom.definition",Mo([Po("dom","dom",Ye(),Mo([fr("tag"),Br("styles",{}),Br("classes",[]),Br("attributes",{}),wr("value"),wr("innerHtml")])),fr("components"),fr("uid"),Br("events",{}),Br("apis",{}),Po("eventOrder","eventOrder",Xe({"alloy.execute":["disabling","alloy.base.behaviour","toggling","typeaheadevents"],"alloy.focus":["alloy.base.behaviour","focusing","keying"],"alloy.system.init":["alloy.base.behaviour","disabling","toggling","representing"],input:["alloy.base.behaviour","representing","streaming","invalidating"],"alloy.system.detached":["alloy.base.behaviour","representing","item-events","tooltipping"],mousedown:["focusing","alloy.base.behaviour","item-type-events"],touchstart:["focusing","alloy.base.behaviour","item-type-events"],mouseover:["item-type-events","tooltipping"]}),tr()),wr("domModification")]),n)},ls=function(n){return vt(vt({},n.dom),{uid:n.uid,domChildren:Gt(n.components,function(n){return n.element()})})},ds=function(n){return n.domModification.fold(function(){return qc({})},qc)},ms=function(n){return n.events},gs=function(n,t){var e=fc(n,t);return void 0===e||""===e?[]:e.split(" ")},ps=function(n,t,e){var o=gs(n,t),r=o.concat([e]);return cc(n,t,r.join(" ")),!0},hs=function(n,t,e){var o=Kt(gs(n,t),function(n){return n!==e});return o.length>0?cc(n,t,o.join(" ")):mc(n,t),!1},vs=function(n){return void 0!==n.dom().classList},bs=function(n){return gs(n,"class")},ys=function(n,t){return ps(n,"class",t)},xs=function(n,t){return hs(n,"class",t)},ws=function(n,t){vs(n)?n.dom().classList.add(t):ys(n,t)},Ss=function(n){var t=vs(n)?n.dom().classList:bs(n);0===t.length&&mc(n,"class")},Cs=function(n,t){if(vs(n)){var e=n.dom().classList;e.remove(t)}else xs(n,t);Ss(n)},ks=function(n,t){return vs(n)&&n.dom().classList.contains(t)},Os=function(n,t){Xt(t,function(t){ws(n,t)})},_s=function(n,t){Xt(t,function(t){Cs(n,t)})},Ts=function(n){return void 0!==n.style&&Ft(n.style.getPropertyValue)},Es=function(n){var t=uc(n)?n.dom().parentNode:n.dom();return void 0!==t&&null!==t&&t.ownerDocument.body.contains(t)},Bs=Ae(function(){return Ds(Xr.fromDom(n.document))}),Ds=function(n){var t=n.dom().body;if(null===t||void 0===t)throw new Error("Body is not available yet");return Xr.fromDom(t)},As=function(t,e,o){if(!Bt(o))throw n.console.error("Invalid call to CSS.set. Property ",e,":: Value ",o,":: Element ",t),new Error("CSS value must be a string: "+o);Ts(t)&&t.style.setProperty(e,o)},Ms=function(n,t){Ts(n)&&n.style.removeProperty(t)},Fs=function(n,t,e){var o=n.dom();As(o,t,e)},Is=function(n,t){var e=n.dom();ge(t,function(n,t){As(e,t,n)})},Rs=function(n,t){var e=n.dom();ge(t,function(n,t){n.fold(function(){Ms(e,t)},function(n){As(e,t,n)})})},Vs=function(t,e){var o=t.dom(),r=n.window.getComputedStyle(o),i=r.getPropertyValue(e),u=""!==i||Es(t)?i:Hs(o,e);return null===u?void 0:u},Hs=function(n,t){return Ts(n)?n.style.getPropertyValue(t):""},Ns=function(n,t){var e=n.dom(),o=Hs(e,t);return St.from(o).filter(function(n){return n.length>0})},Ps=function(n){var t={},e=n.dom();if(Ts(e))for(var o=0;o<e.style.length;o++){var r=e.style.item(o);t[r]=e.style[r]}return t},zs=function(n,t,e){var o=Xr.fromTag(n);Fs(o,t,e);var r=Ns(o,t);return r.isSome()},Ls=function(n,t){var e=n.dom();Ms(e,t),dc(n,"style")&&""===Fi(fc(n,"style"))&&mc(n,"style")},js=function(n){return n.dom().offsetWidth},Us=function(n){return n.dom().value},Ws=function(n,t){if(void 0===t)throw new Error("Value.set was undefined");n.dom().value=t},Gs=function(n){var t=Xr.fromTag(n.tag);sc(t,n.attributes),Os(t,n.classes),Is(t,n.styles),n.innerHtml.each(function(n){return nc(t,n)});var e=n.domChildren;return Ka(t,e),n.value.each(function(n){Ws(t,n)}),!n.uid,Ec(t,n.uid),t},Xs=function(n){var t=xe(n,"behaviours").getOr({}),e=Kt(de(t),function(n){return void 0!==t[n]});return Gt(e,function(n){return t[n].me})},Ys=function(n,t){return Wc(n,t)},qs=function(n){var t=Xs(n);return Ys(n,t)},Ks=function(n,t,e){var o=ls(n),r=ds(n),i={"alloy.base.modification":r},u=t.length>0?Jc(e,i,t,o):r;return Kc(o,u)},Js=function(n,t,e){var o={"alloy.base.behaviour":ms(n)};return is(e,n.eventOrder,t,o).getOrDie()},$s=function(n){var t=function(){return b},e=zr(Fc),o=Jo(fs(n)),r=qs(n),i=Gc(r),u=Xc(r),a=Ks(o,i,u),c=Gs(a),s=Js(o,i,u),f=zr(o.components),l=function(n){e.set(n)},d=function(){e.set(Mc(t))},m=function(){var n=Pa(c),t=te(n,function(n){return e.get().getByDom(n).fold(function(){return[]},function(n){return[n]})});f.set(t)},g=function(t){var e=u,o=Ft(e[t.name()])?e[t.name()]:function(){throw new Error("Could not find "+t.name()+" in "+JSON.stringify(n,null,2))};return o()},p=function(n){return Ft(u[n.name()])},h=function(){return o.apis},v=function(n){return u[n]().map(function(n){return n.state.readState()}).getOr("not enabled")},b={getSystem:e.get,config:g,hasConfigured:p,spec:ft(n),readState:v,getApis:h,connect:l,disconnect:d,element:ft(c),syncComponents:m,components:f.get,events:ft(s)};return b},Qs=function(n){var t=xe(n,"components").getOr([]);return Gt(t,of)},Zs=function(n){var t=Ac(n),o=t.events,r=e(t,["events"]),i=Qs(r),u=vt(vt({},r),{events:vt(vt({},xc),o),components:i});return _t.value($s(u))},nf=function(n){var t=Xr.fromText(n);return tf({element:t})},tf=function(n){var t=$o("external.component",Ao([fr("element"),wr("uid")]),n),e=zr(Mc()),o=function(n){e.set(n)},r=function(){e.set(Mc(function(){return i}))};t.uid.each(function(n){Ec(t.element,n)});var i={getSystem:e.get,config:St.none,hasConfigured:ft(!1),connect:o,disconnect:r,getApis:function(){return{}},element:ft(t.element),spec:ft(n),readState:ft("No state"),syncComponents:at,components:ft([]),events:ft({})};return Pc(i)},ef=Dc,of=function(n){return zc(n).fold(function(){var t=n.hasOwnProperty("uid")?n:vt({uid:ef("")},n);return Zs(t).getOrDie()},function(n){return n})},rf=Pc,uf=r("height",function(n){var t=n.dom();return Es(n)?t.getBoundingClientRect().height:t.offsetHeight}),af=function(n){return uf.get(n)},cf=function(n){return uf.getOuter(n)},sf=function(n,t){var e=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],o=uf.max(n,t,e);Fs(n,"max-height",o+"px")},ff=function(n,t){var e=function(e,o){return ff(n+e,t+o)};return{left:ft(n),top:ft(t),translate:e}},lf=ff,df=function(n){var t=n.getBoundingClientRect();return lf(t.left,t.top)},mf=function(n,t){return void 0!==n?n:void 0!==t?t:0},gf=function(n){var t=n.dom().ownerDocument,e=t.body,o=t.defaultView,r=t.documentElement;if(e===n.dom())return lf(e.offsetLeft,e.offsetTop);var i=mf(o.pageYOffset,r.scrollTop),u=mf(o.pageXOffset,r.scrollLeft),a=mf(r.clientTop,e.clientTop),c=mf(r.clientLeft,e.clientLeft);return pf(n).translate(u-c,i-a)},pf=function(n){var t=n.dom(),e=t.ownerDocument,o=e.body;return o===t?lf(o.offsetLeft,o.offsetTop):Es(n)?df(t):lf(0,0)},hf=r("width",function(n){return n.dom().offsetWidth}),vf=function(n,t){hf.set(n,t)},bf=function(n){return hf.get(n)},yf=function(n){return hf.getOuter(n)},xf=function(n,t){var e=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],o=hf.max(n,t,e);Fs(n,"max-width",o+"px")},wf=function(n,t,e,o,r,i,u){return{target:ft(n),x:ft(t),y:ft(e),stop:o,prevent:r,kill:i,raw:ft(u)}},Sf=function(n){var t=Xr.fromDom(n.target),e=function(){n.stopPropagation()},o=function(){n.preventDefault()},r=st(o,e);return wf(t,n.clientX,n.clientY,e,o,r,n)},Cf=function(n,t){return function(e){n(e)&&t(Sf(e))}},kf=function(n,e,o,r,i){var u=Cf(o,r);return n.dom().addEventListener(e,u,i),{unbind:t(Tf,n,e,u,i)}},Of=function(n,t,e,o){return kf(n,t,e,o,!1)},_f=function(n,t,e,o){return kf(n,t,e,o,!0)},Tf=function(n,t,e,o){n.dom().removeEventListener(t,e,o)},Ef=(Ui().browser.isSafari(),function(t){var e=void 0!==t?t.dom():n.document,o=e.body.scrollLeft||e.documentElement.scrollLeft,r=e.body.scrollTop||e.documentElement.scrollTop;return lf(o,r)}),Bf=function(t,e,o){var r=void 0!==o?o.dom():n.document,i=r.defaultView;i.scrollTo(t,e)},Df=function(t){var e=void 0===t?n.window:t;return St.from(e.visualViewport)},Af=function(n,t,e,o){return{x:ft(n),y:ft(t),width:ft(e),height:ft(o),right:ft(n+e),bottom:ft(t+o)}},Mf=function(t){var e=void 0===t?n.window:t,o=e.document,r=Ef(Xr.fromDom(o));return Df(e).fold(function(){var n=e.document.documentElement,t=n.clientWidth,o=n.clientHeight;return Af(r.left(),r.top(),t,o)},function(n){return Af(Math.max(n.pageLeft,r.left()),Math.max(n.pageTop,r.top()),n.width,n.height)})},Ff=function(n,t){var e=n.view(t);return e.fold(ft([]),function(t){var e=n.owner(t),o=Ff(n,e);return[t].concat(o)})},If=function(n,t){var e=t.owner(n),o=Ff(t,e);return St.some(o)},Rf=function(t){var e=t.dom()===n.document?St.none():St.from(t.dom().defaultView.frameElement);return e.map(Xr.fromDom)},Vf=function(n){return Fa(n)},Hf=Object.freeze({__proto__:null,view:Rf,owner:Vf}),Nf=function(e){var o=Xr.fromDom(n.document),r=Ef(o),i=If(e,Hf);return i.fold(t(gf,e),function(n){var t=pf(e),o=Jt(n,function(n,t){var e=pf(t);return{left:n.left+e.left(),top:n.top+e.top()}},{left:0,top:0});return lf(o.left+t.left()+r.left(),o.top+t.top()+r.top())})},Pf=_a("point","width","height"),zf=_a("x","y","width","height"),Lf=function(n,t,e,o){return{x:ft(n),y:ft(t),width:ft(e),height:ft(o),right:ft(n+e),bottom:ft(t+o)}},jf=function(n){var t=gf(n),e=yf(n),o=cf(n);return Lf(t.left(),t.top(),e,o)},Uf=function(n){var t=Nf(n),e=yf(n),o=cf(n);return Lf(t.left(),t.top(),e,o)},Wf=function(){return Mf(n.window)},Gf=function(n,t,e){for(var o=n.dom(),r=Ft(e)?e:ft(!1);o.parentNode;){o=o.parentNode;var i=Xr.fromDom(o);if(t(i))return St.some(i);if(r(i))break}return St.none()},Xf=function(n,t,e){var o=function(n,t){return t(n)};return i(o,Gf,n,t,e)},Yf=function(n,t){var e=function(n){for(var o=0;o<n.childNodes.length;o++){var r=Xr.fromDom(n.childNodes[o]);if(t(r))return St.some(r);var i=e(n.childNodes[o]);if(i.isSome())return i}return St.none()};return e(n.dom())},qf=function(n,t,e){return Xf(n,t,e).isSome()},Kf=function(n,t,e){return Gf(n,function(n){return Ki(n,t)},e)},Jf=function(n,t){return Qi(t,n)},$f=function(n,t,e){return i(Ki,Kf,n,t,e)},Qf=function(n){var t=Xf(n,function(n){if(!ic(n))return!1;var t=fc(n,"id");return void 0!==t&&t.indexOf("aria-owns")>-1});return t.bind(function(n){var t=fc(n,"id"),e=Fa(n);return Jf(e,'[aria-owns="'+t+'"]')})},Zf=function(){var n=Sc("aria-owns"),t=function(t){cc(t,"aria-owns",n)},e=function(n){mc(n,"aria-owns")};return{id:ft(n),link:t,unlink:e}},nl=function(n,t){return Qf(t).exists(function(t){return tl(n,t)})},tl=function(n,t){return qf(t,function(t){return Zi(t,n.element())},ft(!1))||nl(n,t)},el="unknown";!function(n){n[n.STOP=0]="STOP",n[n.NORMAL=1]="NORMAL",n[n.LOGGING=2]="LOGGING"}(Me||(Me={}));var ol,rl=zr({}),il=function(t,e){var o=[],r=(new Date).getTime();return{logEventCut:function(n,t,e){o.push({outcome:"cut",target:t,purpose:e})},logEventStopped:function(n,t,e){o.push({outcome:"stopped",target:t,purpose:e})},logNoParent:function(n,t,e){o.push({outcome:"no-parent",target:t,purpose:e})},logEventNoHandlers:function(n,t){o.push({outcome:"no-handlers-left",target:t})},logEventResponse:function(n,t,e){o.push({outcome:"response",purpose:e,target:t})},write:function(){var i=(new Date).getTime();Lt(["mousemove","mouseover","mouseout",Lu()],t)||n.console.log(t,{event:t,time:i-r,target:e.dom(),sequence:Gt(o,function(n){return Lt(["cut","stopped","response"],n.outcome)?"{"+n.purpose+"} "+n.outcome+" at ("+vc(n.target)+")":n.outcome})})}}},ul=function(n,t,e){var o=xe(rl.get(),n).orThunk(function(){var t=de(rl.get());return le(t,function(t){return n.indexOf(t)>-1?St.some(rl.get()[t]):St.none()})}).getOr(Me.NORMAL);switch(o){case Me.NORMAL:return e(ll());case Me.LOGGING:var r=il(n,t),i=e(r);return r.write(),i;case Me.STOP:return!0}},al=["alloy/data/Fields","alloy/debugging/Debugging"],cl=function(){var n=new Error;if(void 0!==n.stack){var t=n.stack.split("\n");return Qt(t,function(n){return n.indexOf("alloy")>0&&!jt(al,function(t){return n.indexOf(t)>-1})}).getOr(el)}return el},sl={logEventCut:at,logEventStopped:at,logNoParent:at,logEventNoHandlers:at,logEventResponse:at,write:at},fl=function(n,t,e){return ul(n,t,e)},ll=ft(sl),dl=ft([fr("menu"),fr("selectedMenu")]),ml=ft([fr("item"),fr("selectedItem")]),gl=(ft(Mo(ml().concat(dl()))),ft(Mo(ml()))),pl=br("initSize",[fr("numColumns"),fr("numRows")]),hl=function(){return lr("markers",gl())},vl=function(){return br("markers",[fr("backgroundMenu")].concat(dl()).concat(ml()))},bl=function(n){return br("markers",Gt(n,fr))},yl=function(n,t,e){cl();return Po(t,t,e,Xo(function(n){return _t.value(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];
return n.apply(void 0,t)})}))},xl=function(n){return yl("onHandler",n,Ge(at))},wl=function(n){return yl("onKeyboardHandler",n,Ge(St.none))},Sl=function(n){return yl("onHandler",n,Ye())},Cl=function(n){return yl("onKeyboardHandler",n,Ye())},kl=function(n,t){return Pr(n,ft(t))},Ol=function(n){return Pr(n,lt)},_l=ft(pl),Tl=_a("x","y","bubble","direction","boundsRestriction","label"),El=ke.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Bl=function(n,t,e,o,r,i,u,a,c){return n.fold(t,e,o,r,i,u,a,c)},Dl=function(n,t,e,o){return n.fold(t,t,o,o,t,o,e,e)},Al=function(n,t,e,o){return n.fold(t,o,t,o,e,e,t,o)},Ml=El.southeast,Fl=El.southwest,Il=El.northeast,Rl=El.northwest,Vl=El.south,Hl=El.north,Nl=El.east,Pl=El.west,zl=function(n,t){switch(t){case 1:return n.x();case 0:return n.x()+n.width();case 2:return n.y();case 3:return n.y()+n.height()}},Ll=function(n,t){return ie(["left","right","top","bottom"],function(e){return xe(t,e).map(function(t){return zl(n,t)})})},jl=function(n,t,e){var o=function(n,o){var r="top"===n||"bottom"===n?e.top():e.left();return xe(t,n).bind(lt).bind(function(t){return"left"===n||"top"===n?t>=o?St.some(t):St.none():o>=t?St.some(t):St.none()}).map(function(n){return n+r}).getOr(o)},r=o("left",n.x()),i=o("top",n.y()),u=o("right",n.right()),a=o("bottom",n.bottom());return Lf(r,i,u-r,a-i)},Ul=function(n){return n.x()},Wl=function(n,t){return n.x()+n.width()/2-t.width()/2},Gl=function(n,t){return n.x()+n.width()-t.width()},Xl=function(n,t){return n.y()-t.height()},Yl=function(n){return n.y()+n.height()},ql=function(n,t){return n.y()+n.height()/2-t.height()/2},Kl=function(n){return n.x()+n.width()},Jl=function(n,t){return n.x()-t.width()},$l=function(n,t,e){return Tl(Ul(n),Yl(n),e.southeast(),Ml(),Ll(n,{left:1,top:3}),"layout-se")},Ql=function(n,t,e){return Tl(Gl(n,t),Yl(n),e.southwest(),Fl(),Ll(n,{right:0,top:3}),"layout-sw")},Zl=function(n,t,e){return Tl(Ul(n),Xl(n,t),e.northeast(),Il(),Ll(n,{left:1,bottom:2}),"layout-ne")},nd=function(n,t,e){return Tl(Gl(n,t),Xl(n,t),e.northwest(),Rl(),Ll(n,{right:0,bottom:2}),"layout-nw")},td=function(n,t,e){return Tl(Wl(n,t),Xl(n,t),e.north(),Hl(),Ll(n,{bottom:2}),"layout-n")},ed=function(n,t,e){return Tl(Wl(n,t),Yl(n),e.south(),Vl(),Ll(n,{top:3}),"layout-s")},od=function(n,t,e){return Tl(Kl(n),ql(n,t),e.east(),Nl(),Ll(n,{left:0}),"layout-e")},rd=function(n,t,e){return Tl(Jl(n,t),ql(n,t),e.west(),Pl(),Ll(n,{right:1}),"layout-w")},id=function(){return[$l,Ql,Zl,nd,ed,td,od,rd]},ud=function(){return[Ql,$l,nd,Zl,ed,td,od,rd]},ad=function(){return[Zl,nd,$l,Ql,td,ed]},cd=function(){return[nd,Zl,Ql,$l,td,ed]},sd=function(){return[$l,Ql,Zl,nd,ed,td]},fd=function(){return[Ql,$l,nd,Zl,ed,td]},ld=function(n,t,e){return Oa(function(o){e(o,n,t)})},dd=function(n,t,e){return ka(function(o){e(o,n,t)})},md=function(n,t,e,o,r,i){var u=Ao(n),a=Tr(t,[Er("config",n)]);return vd(u,a,t,e,o,r,i)},gd=function(n,t,e,o,r,i){var u=n,a=Tr(t,[Sr("config",n)]);return vd(u,a,t,e,o,r,i)},pd=function(n,t,e){var o=function(o){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var u=[o].concat(r);return o.config({name:ft(n)}).fold(function(){throw new Error("We could not find any behaviour configuration for: "+n+". Using API: "+e)},function(n){var e=Array.prototype.slice.call(u,1);return t.apply(void 0,[o,n.config,n.state].concat(e))})};return Ic(o,e,t)},hd=function(n){return{key:n,value:void 0}},vd=function(n,e,o,r,i,u,a){var c=function(n){return Se(n,o)?n[o]():St.none()},s=pe(i,function(n,t){return pd(o,n,t)}),f=pe(u,function(n,t){return Vc(n,t)}),l=vt(vt(vt({},f),s),{revoke:t(hd,o),config:function(t){var e=$o(o+"-config",n,t);return{key:o,value:{config:e,me:l,configAsRaw:Ae(function(){return $o(o+"-config",n,t)}),initialConfig:t,state:a}}},schema:function(){return e},exhibit:function(n,t){return c(n).bind(function(n){return xe(r,"exhibit").map(function(e){return e(t,n.config,n.state)})}).getOr(qc({}))},name:function(){return o},handlers:function(n){return c(n).map(function(n){var t=xe(r,"events").getOr(function(){return{}});return t(n.config,n.state)}).getOr({})}});return l},bd=function(n){return oo(n)},yd=Ao([fr("fields"),fr("name"),Br("active",{}),Br("apis",{}),Br("state",jc),Br("extra",{})]),xd=function(n){var t=$o("Creating behaviour: "+n.name,yd,n);return md(t.fields,t.name,t.active,t.apis,t.extra,t.state)},wd=Ao([fr("branchKey"),fr("branches"),fr("name"),Br("active",{}),Br("apis",{}),Br("state",jc),Br("extra",{})]),Sd=function(n){var t=$o("Creating behaviour: "+n.name,wd,n);return gd(nr(t.branchKey,t.branches),t.name,t.active,t.apis,t.extra,t.state)},Cd=ft(void 0),kd=function(n,t){return t.universal()?n:Kt(n,function(n){return Lt(t.channels(),n)})},Od=function(n){return ca([da(Iu(),function(t,e){var o=n.channels,r=de(o),i=e,u=kd(r,i);Xt(u,function(n){var e=o[n],r=e.schema,u=$o("channel["+n+"] data\nReceiver: "+vc(t.element()),r,i.data());e.onReceive(t,u)})})])},_d=Object.freeze({__proto__:null,events:Od}),Td=[lr("channels",Yo(_t.value,Ao([Sl("onReceive"),Br("schema",tr())])))],Ed=xd({fields:Td,name:"receiving",active:_d}),Bd=function(n,t){return qc({classes:[],styles:t.useFixed()?{}:{position:"relative"}})},Dd=Object.freeze({__proto__:null,exhibit:Bd}),Ad=function(n){n.dom().focus()},Md=function(n){n.dom().blur()},Fd=function(n){var t=Fa(n).dom();return n.dom()===t.activeElement},Id=function(t){var e=void 0!==t?t.dom():n.document;return St.from(e.activeElement).map(Xr.fromDom)},Rd=function(n){return Id(Fa(n)).filter(function(t){return n.dom().contains(t.dom())})},Vd=function(n,t){var e=Fa(t),o=Id(e).bind(function(n){var e=function(t){return Zi(n,t)};return e(t)?St.some(t):Yf(t,e)}),r=n(t);return o.each(function(n){Id(e).filter(function(t){return Zi(t,n)}).fold(function(){Ad(n)},at)}),r},Hd=_a("position","left","top","right","bottom"),Nd=function(n,t){var e=function(n){return n+"px"};Rs(n,{position:St.some(t.position()),left:t.left().map(e),top:t.top().map(e),right:t.right().map(e),bottom:t.bottom().map(e)})},Pd=ke.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),zd=function(n,t,e,o,r,i){var u=t.x()-e,a=t.y()-o,c=t.width(),s=t.height(),f=r-(u+c),l=i-(a+s),d=St.some(u),m=St.some(a),g=St.some(f),p=St.some(l),h=St.none();return Bl(t.direction(),function(){return Hd(n,d,m,h,h)},function(){return Hd(n,h,m,g,h)},function(){return Hd(n,d,h,h,p)},function(){return Hd(n,h,h,g,p)},function(){return Hd(n,d,m,h,h)},function(){return Hd(n,d,h,h,p)},function(){return Hd(n,d,m,h,h)},function(){return Hd(n,h,m,g,h)})},Ld=function(n,t){return n.fold(function(){return Hd("absolute",St.some(t.x()),St.some(t.y()),St.none(),St.none())},function(n,e,o,r){return zd("absolute",t,n,e,o,r)},function(n,e,o,r){return zd("fixed",t,n,e,o,r)})},jd=function(n,e){var o=t(Nf,e),r=n.fold(o,o,function(){var n=Ef();return Nf(e).translate(-n.left(),-n.top())}),i=yf(e),u=cf(e);return Lf(r.left(),r.top(),i,u)},Ud=function(n,t){return t.fold(function(){return n.fold(Wf,Wf,Lf)},function(t){return n.fold(t,t,function(){var e=t(),o=Wd(n,e.x(),e.y());return Lf(o.left(),o.top(),e.width(),e.height())})})},Wd=function(n,t,e){var o=lf(t,e),r=function(){var n=Ef();return o.translate(-n.left(),-n.top())};return n.fold(ft(o),ft(o),r)},Gd=function(n,t,e,o){return n.fold(t,e,o)},Xd=(Pd.none,Pd.relative),Yd=Pd.fixed,qd=_a("anchorBox","origin"),Kd=function(n,t){return qd(n,t)},Jd=function(n,t,e,o){var r=n+t;return r>o?e:e>r?o:r},$d=function(n,t,e){return Math.min(Math.max(n,t),e)},Qd=Ma(["x","y","width","height","maxHeight","maxWidth","direction","classes","label","candidateYforTest"],[]),Zd=ke.generate([{fit:["reposition"]},{nofit:["reposition","deltaW","deltaH"]}]),nm=function(n,t,e,o,r){var i=r.x(),u=r.y(),a=r.width(),c=r.height(),s=n>=i,f=t>=u,l=s&&f,d=i+a>=n+e,m=u+c>=t+o,g=d&&m,p=Math.abs(Math.min(e,s?i+a-n:i-(n+e))),h=Math.abs(Math.min(o,f?u+c-t:u-(t+o))),v=Math.max(r.x(),r.right()-e),b=Math.max(r.y(),r.bottom()-o),y=$d(n,r.x(),v),x=$d(t,r.y(),b);return{originInBounds:l,sizeInBounds:g,limitX:y,limitY:x,deltaW:p,deltaH:h}},tm=function(n,t,e,o){var r=n.x(),i=n.y(),u=n.bubble().offset(),a=u.left(),c=u.top(),s=jl(o,n.boundsRestriction(),u),f=s.y(),l=s.bottom(),d=s.x(),m=s.right(),g=r+a,p=i+c,h=nm(g,p,t,e,s),v=h.originInBounds,b=h.sizeInBounds,y=h.limitX,x=h.limitY,w=h.deltaW,S=h.deltaH,C=ft(x+S-f),k=ft(l-x),O=Dl(n.direction(),k,k,C),_=ft(y+w-d),T=ft(m-y),E=Al(n.direction(),T,T,_),B=Qd({x:y,y:x,width:w,height:S,maxHeight:O,maxWidth:E,direction:n.direction(),classes:{on:n.bubble().classesOn(),off:n.bubble().classesOff()},label:n.label(),candidateYforTest:p});return v&&b?Zd.fit(B):Zd.nofit(B,w,S)},em=function(n,e,o,r,i){var u=o.width(),a=o.height(),c=function(n,t,c,s){var f=n(e,o,r),l=tm(f,u,a,i);return l.fold(Zd.fit,function(n,e,o){var r=o>s||e>c;return r?Zd.nofit(n,e,o):Zd.nofit(t,c,s)})},s=$t(n,function(n,e){var o=t(c,e);return n.fold(Zd.fit,o)},Zd.nofit(Qd({x:e.x(),y:e.y(),width:o.width(),height:o.height(),maxHeight:o.height(),maxWidth:o.width(),direction:Ml(),classes:{on:[],off:[]},label:"none",candidateYforTest:e.y()}),-1,-1));return s.fold(lt,lt)},om=function(n){return{width:ft(yf(n)),height:ft(cf(n))}},rm=function(n,t,e,o){Ls(t,"max-height"),Ls(t,"max-width");var r=om(t);return em(o.preference(),n,r,e,o.bounds())},im=function(n,t){var e=t.classes();_s(n,e.off),Os(n,e.on)},um=function(n,t,e){var o=e.maxHeightFunction();o(n,t.maxHeight())},am=function(n,t,e){var o=e.maxWidthFunction();o(n,t.maxWidth())},cm=function(n,t,e){Nd(n,Ld(e.origin(),t))},sm=function(n,t){sf(n,Math.floor(t))},fm=ft(function(n,t){sm(n,t),Is(n,{"overflow-x":"hidden","overflow-y":"auto"})}),lm=ft(function(n,t){sm(n,t)}),dm=Ma(["bounds","origin","preference","maxHeightFunction","maxWidthFunction"],[]),mm=function(n,t,e){return void 0===n[t]?e:n[t]},gm=function(n,t,e,o,r,i){var u=mm(i,"maxHeightFunction",fm()),a=mm(i,"maxWidthFunction",at),c=n.anchorBox(),s=n.origin(),f=dm({bounds:Ud(s,r),origin:s,preference:o,maxHeightFunction:u,maxWidthFunction:a});pm(c,t,e,f)},pm=function(n,t,e,o){var r=rm(n,t,e,o);cm(t,r,o),im(t,r),um(t,r,o),am(t,r,o)},hm=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right"],vm=function(n,t,e){var o=function(n){return xe(e,n).getOr([])},r=function(n,t,e){var r=re(hm,e);return{offset:function(){return lf(n,t)},classesOn:function(){return te(e,o)},classesOff:function(){return te(r,o)}}};return{southeast:function(){return r(-n,t,["top","alignLeft"])},southwest:function(){return r(n,t,["top","alignRight"])},south:function(){return r(-n/2,t,["top","alignCentre"])},northeast:function(){return r(-n,-t,["bottom","alignLeft"])},northwest:function(){return r(n,-t,["bottom","alignRight"])},north:function(){return r(-n/2,-t,["bottom","alignCentre"])},east:function(){return r(n,-t/2,["valignCentre","left"])},west:function(){return r(-n,-t/2,["valignCentre","right"])},innerNorthwest:function(){return r(-n,t,["top","alignRight"])},innerNortheast:function(){return r(n,t,["top","alignLeft"])},innerNorth:function(){return r(-n/2,t,["top","alignCentre"])},innerSouthwest:function(){return r(-n,-t,["bottom","alignRight"])},innerSoutheast:function(){return r(n,-t,["bottom","alignLeft"])},innerSouth:function(){return r(-n/2,-t,["bottom","alignCentre"])},innerWest:function(){return r(n,-t/2,["valignCentre","right"])},innerEast:function(){return r(-n,-t/2,["valignCentre","left"])}}},bm=function(){return vm(0,0,{})},ym=function(n){return n},xm=function(n,t){return function(e){return"rtl"===wm(e)?t:n}},wm=function(n){return"rtl"===Vs(n,"direction")?"rtl":"ltr"};!function(n){n.TopToBottom="toptobottom",n.BottomToTop="bottomtotop"}(ol||(ol={}));var Sm,Cm="data-alloy-vertical-dir",km=function(n){return qf(n,function(n){return ic(n)&&fc(n,Cm)===ol.BottomToTop})},Om=function(){return Tr("layouts",[fr("onLtr"),fr("onRtl"),wr("onBottomLtr"),wr("onBottomRtl")])},_m=function(n,t,e,o,r,i,u){var a=u.map(km).getOr(!1),c=t.layouts.map(function(t){return t.onLtr(n)}),s=t.layouts.map(function(t){return t.onRtl(n)}),f=a?t.layouts.bind(function(t){return t.onBottomLtr.map(function(t){return t(n)})}).or(c).getOr(r):c.getOr(e),l=a?t.layouts.bind(function(t){return t.onBottomRtl.map(function(t){return t(n)})}).or(s).getOr(i):s.getOr(o),d=xm(f,l);return d(n)},Tm=function(n,t,e){var o=t.hotspot,r=jd(e,o.element()),i=_m(n.element(),t,sd(),fd(),ad(),cd(),St.some(t.hotspot.element()));return St.some(ym({anchorBox:r,bubble:t.bubble.getOr(bm()),overrides:t.overrides,layouts:i,placer:St.none()}))},Em=[fr("hotspot"),wr("bubble"),Br("overrides",{}),Om(),kl("placement",Tm)],Bm=function(n,t,e){var o=Wd(e,t.x,t.y),r=Lf(o.left(),o.top(),t.width,t.height),i=_m(n.element(),t,id(),ud(),id(),ud(),St.none());return St.some(ym({anchorBox:r,bubble:t.bubble,overrides:t.overrides,layouts:i,placer:St.none()}))},Dm=[fr("x"),fr("y"),Br("height",0),Br("width",0),Br("bubble",bm()),Br("overrides",{}),Om(),kl("placement",Bm)],Am="",Mm=" ",Fm=_a("start","soffset","finish","foffset"),Im={create:Fm},Rm=ke.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Vm=function(n,t,e,o){return n.fold(t,e,o)},Hm=function(n){return n.fold(lt,lt,lt)},Nm=Rm.before,Pm=Rm.on,zm=Rm.after,Lm={before:Nm,on:Pm,after:zm,cata:Vm,getStart:Hm},jm=ke.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Um=function(n){return jm.exact(n.start(),n.soffset(),n.finish(),n.foffset())},Wm=function(n){return n.match({domRange:function(n){return Xr.fromDom(n.startContainer)},relative:function(n){return Lm.getStart(n)},exact:function(n){return n}})},Gm=jm.domRange,Xm=jm.relative,Ym=jm.exact,qm=function(n){var t=Wm(n);return Ra(t)},Km=Im.create,Jm={domRange:Gm,relative:Xm,exact:Ym,exactFromRange:Um,getWin:qm,range:Km},$m=function(n,t){t.fold(function(t){n.setStartBefore(t.dom())},function(t,e){n.setStart(t.dom(),e)},function(t){n.setStartAfter(t.dom())})},Qm=function(n,t){t.fold(function(t){n.setEndBefore(t.dom())},function(t,e){n.setEnd(t.dom(),e)},function(t){n.setEndAfter(t.dom())})},Zm=function(n,t,e){var o=n.document.createRange();return $m(o,t),Qm(o,e),o},ng=function(n,t,e,o,r){var i=n.document.createRange();return i.setStart(t.dom(),e),i.setEnd(o.dom(),r),i},tg=function(n){return{left:ft(n.left),top:ft(n.top),right:ft(n.right),bottom:ft(n.bottom),width:ft(n.width),height:ft(n.height)}},eg=function(n){var t=n.getClientRects(),e=t.length>0?t[0]:n.getBoundingClientRect();return e.width>0||e.height>0?St.some(e).map(tg):St.none()},og=ke.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),rg=function(n,t,e){return t(Xr.fromDom(e.startContainer),e.startOffset,Xr.fromDom(e.endContainer),e.endOffset)},ig=function(n,t){return t.match({domRange:function(n){return{ltr:ft(n),rtl:St.none}},relative:function(t,e){return{ltr:Ae(function(){return Zm(n,t,e)}),rtl:Ae(function(){return St.some(Zm(n,e,t))})}},exact:function(t,e,o,r){return{ltr:Ae(function(){return ng(n,t,e,o,r)}),rtl:Ae(function(){return St.some(ng(n,o,r,t,e))})}}})},ug=function(n,t){var e=t.ltr();if(e.collapsed){var o=t.rtl().filter(function(n){return n.collapsed===!1});return o.map(function(n){return og.rtl(Xr.fromDom(n.endContainer),n.endOffset,Xr.fromDom(n.startContainer),n.startOffset)}).getOrThunk(function(){return rg(n,og.ltr,e)})}return rg(n,og.ltr,e)},ag=function(n,t){var e=ig(n,t);return ug(n,e)},cg=function(n,t){var e=ag(n,t);return e.match({ltr:function(t,e,o,r){var i=n.document.createRange();return i.setStart(t.dom(),e),i.setEnd(o.dom(),r),i},rtl:function(t,e,o,r){var i=n.document.createRange();return i.setStart(o.dom(),r),i.setEnd(t.dom(),e),i}})},sg=(og.ltr,og.rtl,u(uc,"text")),fg=function(n){return sg.get(n)},lg=function(n){return sg.getOption(n)},dg=function(n){return"img"===ec(n)?1:lg(n).fold(function(){return Pa(n).length},function(n){return n.length})},mg=function(n){return lg(n).filter(function(n){return 0!==n.trim().length||n.indexOf(Mm)>-1}).isSome()},gg=["img","br"],pg=function(n){var t=mg(n);return t||Lt(gg,ec(n))},hg=function(n){return vg(n,pg)},vg=function(n,t){var e=function(n){for(var o=Pa(n),r=o.length-1;r>=0;r--){var i=o[r];if(t(i))return St.some(i);var u=e(i);if(u.isSome())return u}return St.none()};return e(n)},bg=function(n,t){return $i(t,n)},yg=function(n,t,e,o){var r=Fa(n),i=r.dom().createRange();return i.setStart(n.dom(),t),i.setEnd(e.dom(),o),i},xg=function(n,t,e,o){var r=yg(n,t,e,o),i=Zi(n,e)&&t===o;return r.collapsed&&!i},wg=function(n){if(n.rangeCount>0){var t=n.getRangeAt(0),e=n.getRangeAt(n.rangeCount-1);return St.some(Im.create(Xr.fromDom(t.startContainer),t.startOffset,Xr.fromDom(e.endContainer),e.endOffset))}return St.none()},Sg=function(n){var t=Xr.fromDom(n.anchorNode),e=Xr.fromDom(n.focusNode);return xg(t,n.anchorOffset,e,n.focusOffset)?St.some(Im.create(t,n.anchorOffset,e,n.focusOffset)):wg(n)},Cg=function(n){return St.from(n.getSelection()).filter(function(n){return n.rangeCount>0}).bind(Sg)},kg=function(n,t){var e=cg(n,t);return eg(e)},Og=_a("element","offset"),_g=function(n,t){var e=Pa(n);if(0===e.length)return Og(n,t);if(t<e.length)return Og(e[t],0);var o=e[e.length-1],r=uc(o)?fg(o).length:Pa(o).length;return Og(o,r)},Tg=ke.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),Eg=function(n){return n.fold(lt,function(n,t,e){return n.translate(-t,-e)})},Bg=function(n){return n.fold(lt,lt)},Dg=function(n){return $t(n,function(n,t){return n.translate(t.left(),t.top())},lf(0,0))},Ag=function(n){var t=Gt(n,Eg);return Dg(t)},Mg=function(n){var t=Gt(n,Bg);return Dg(t)},Fg=Tg.screen,Ig=Tg.absolute,Rg=function(n,t,e){var o=Ra(e.root).dom(),r=function(t){var e=Fa(t),o=Fa(n.element());return Zi(e,o)};return St.from(o.frameElement).map(Xr.fromDom).filter(r).map(gf)},Vg=function(n,t,e){var o=Fa(n.element()),r=Ef(o),i=Rg(n,t,e).getOr(r);return Ig(i,r.left(),r.top())},Hg=function(n,t,e,o){var r=n,i=t,u=e,a=o;0>n&&(r=0,u=e+n),0>t&&(i=0,a=o+t);var c=Fg(lf(r,i));return St.some(Pf(c,u,a))},Ng=function(n,t,e,o,r){return n.map(function(n){var i=[t,n.point()],u=Gd(o,function(){return Mg(i)},function(){return Mg(i)},function(){return Ag(i)}),a=zf(u.left(),u.top(),n.width(),n.height()),c=e.showAbove?ad():sd(),s=(e.showAbove,fd()),f=_m(r,e,c,s,c,s,St.none());return ym({anchorBox:a,bubble:e.bubble.getOr(bm()),overrides:e.overrides,layouts:f,placer:St.none()})})},Pg={capRect:Hg,calcNewAnchor:Ng},zg=_a("element","offset"),Lg=function(n,t){return uc(n)?zg(n,t):_g(n,t)},jg=function(n,t){var e=t.getSelection.getOrThunk(function(){return function(){return Cg(n)}});return e().map(function(n){var t=Lg(n.start(),n.soffset()),e=Lg(n.finish(),n.foffset());return Jm.range(t.element(),t.offset(),e.element(),e.offset())})},Ug=function(n,t,e){var o=Ra(t.root).dom(),r=Vg(n,e,t),i=jg(o,t).bind(function(n){var t=kg(o,Jm.exactFromRange(n)).orThunk(function(){var t=Xr.fromText(Am);return Ua(n.start(),t),kg(o,Jm.exact(t,0,t,1)).map(function(n){return $a(t),n})});return t.bind(function(n){return Pg.capRect(n.left(),n.top(),n.width(),n.height())})}),u=jg(o,t).bind(function(n){return ic(n.start())?St.some(n.start()):Va(n.start())}),a=u.getOr(n.element());return Pg.calcNewAnchor(i,r,t,e,a)},Wg=[wr("getSelection"),fr("root"),wr("bubble"),Om(),Br("overrides",{}),Br("showAbove",!1),kl("placement",Ug)],Gg=function(n,t,e){var o=Vg(n,e,t);return t.node.bind(function(r){var i=r.dom().getBoundingClientRect(),u=Pg.capRect(i.left,i.top,i.width,i.height),a=t.node.getOr(n.element());return Pg.calcNewAnchor(u,o,t,e,a)})},Xg=[fr("node"),fr("root"),wr("bubble"),Om(),Br("overrides",{}),Br("showAbove",!1),kl("placement",Gg)],Yg=function(n){return n.x()+n.width()},qg=function(n,t){return n.x()-t.width()},Kg=function(n,t){return n.y()-t.height()+n.height()},Jg=function(n){return n.y()},$g=function(n,t,e){return Tl(Yg(n),Jg(n),e.southeast(),Ml(),Ll(n,{left:0,top:2}),"link-layout-se")},Qg=function(n,t,e){return Tl(qg(n,t),Jg(n),e.southwest(),Fl(),Ll(n,{right:1,top:2}),"link-layout-sw")},Zg=function(n,t,e){return Tl(Yg(n),Kg(n,t),e.northeast(),Il(),Ll(n,{left:0,bottom:3}),"link-layout-ne")},np=function(n,t,e){return Tl(qg(n,t),Kg(n,t),e.northwest(),Rl(),Ll(n,{right:1,bottom:3}),"link-layout-nw")},tp=function(){return[$g,Qg,Zg,np]},ep=function(){return[Qg,$g,np,Zg]},op=function(n,t,e){var o=jd(e,t.item.element()),r=_m(n.element(),t,tp(),ep(),tp(),ep(),St.none());return St.some(ym({anchorBox:o,bubble:bm(),overrides:t.overrides,layouts:r,placer:St.none()}))},rp=[fr("item"),Om(),Br("overrides",{}),kl("placement",op)],ip=nr("anchor",{selection:Wg,node:Xg,hotspot:Em,submenu:rp,makeshift:Dm}),up=function(){var t=n.document.documentElement;return Yd(0,0,t.clientWidth,t.clientHeight)},ap=function(n){var t=gf(n.element()),e=n.element().dom().getBoundingClientRect();return Xd(t.left(),t.top(),e.width,e.height)},cp=function(n,t,e,o,r){var i=Kd(e.anchorBox,t);gm(i,r.element(),e.bubble,e.layouts,o,e.overrides)},sp=function(n,t,e,o,r){fp(n,t,e,o,r,St.none())},fp=function(n,t,e,o,r,i){var u=i.map(jf);return lp(n,t,e,o,r,u)},lp=function(n,t,e,o,r,i){var u=$o("positioning anchor.info",ip,o);Vd(function(){Fs(r.element(),"position","fixed");var e=Ns(r.element(),"visibility");Fs(r.element(),"visibility","hidden");var o=t.useFixed()?up():ap(n),a=u.placement,c=i.map(ft).or(t.getBounds);a(n,u,o).each(function(t){var e=t.placer.getOr(cp);e(n,o,t,c,r)}),e.fold(function(){Ls(r.element(),"visibility")},function(n){Fs(r.element(),"visibility",n)}),Ns(r.element(),"left").isNone()&&Ns(r.element(),"top").isNone()&&Ns(r.element(),"right").isNone()&&Ns(r.element(),"bottom").isNone()&&Ns(r.element(),"position").is("fixed")&&Ls(r.element(),"position")},r.element())},dp=function(n,t){return t.useFixed()?"fixed":"absolute"},mp=Object.freeze({__proto__:null,position:sp,positionWithin:fp,positionWithinBounds:lp,getMode:dp}),gp=[Br("useFixed",gt),wr("getBounds")],pp=xd({fields:gp,name:"positioning",active:Dd,apis:mp}),hp=function(n){ea(n,Yu());var t=n.components();Xt(t,hp)},vp=function(n){var t=n.components();Xt(t,vp),ea(n,Xu())},bp=function(n,t){Xa(n.element(),t.element())},yp=function(n){Xt(n.components(),function(n){return $a(n.element())}),Ja(n.element()),n.syncComponents()},xp=function(n,t){var e=n.components();yp(n);var o=re(e,t);Xt(o,function(t){hp(t),n.getSystem().removeFromWorld(t)}),Xt(t,function(t){t.getSystem().isConnected()?bp(n,t):(n.getSystem().addToWorld(t),bp(n,t),Es(n.element())&&vp(t)),n.syncComponents()})},wp=function(n,t){Sp(n,t,Xa)},Sp=function(n,t,e){n.getSystem().addToWorld(t),e(n.element(),t.element()),Es(n.element())&&vp(t),n.syncComponents()},Cp=function(n){hp(n),$a(n.element()),n.getSystem().removeFromWorld(n)},kp=function(n){var t=Va(n.element()).bind(function(t){return n.getSystem().getByDom(t).toOption()});Cp(n),t.each(function(n){n.syncComponents()})},Op=function(n){var t=n.components();Xt(t,Cp),Ja(n.element()),n.syncComponents()},_p=function(n,t){Ep(n,t,Xa)},Tp=function(n,t){Ep(n,t,Wa)},Ep=function(n,t,e){e(n,t.element());var o=Pa(t.element());Xt(o,function(n){t.getByDom(n).each(vp)})},Bp=function(n){var t=Pa(n.element());Xt(t,function(t){n.getByDom(t).each(hp)}),$a(n.element())},Dp=function(n,t,e,o){e.get().each(function(){Op(n)});var r=t.getAttachPoint(n);wp(r,n);var i=n.getSystem().build(o);return wp(n,i),e.set(i),i},Ap=function(n,t,e,o){var r=Dp(n,t,e,o);return t.onOpen(n,r),r},Mp=function(n,t,e,o){return e.get().map(function(){return Dp(n,t,e,o)})},Fp=function(n,t,e,o,r){zp(n,t),Ap(n,t,e,o),r(),jp(n,t)},Ip=function(n,t,e){e.get().each(function(o){Op(n),kp(n),t.onClose(n,o),e.clear()})},Rp=function(n,t,e){return e.isOpen()},Vp=function(n,t,e,o){return Rp(n,t,e)&&e.get().exists(function(e){return t.isPartOf(n,e,o)})},Hp=function(n,t,e){return e.get()},Np=function(n,t,e,o){Ns(n.element(),t).fold(function(){mc(n.element(),e)},function(t){cc(n.element(),e,t)}),Fs(n.element(),t,o)},Pp=function(n,t,e){if(dc(n.element(),e)){var o=fc(n.element(),e);Fs(n.element(),t,o)}else Ls(n.element(),t)},zp=function(n,t){var e=t.getAttachPoint(n);Fs(n.element(),"position",pp.getMode(e)),Np(n,"visibility",t.cloakVisibilityAttr,"hidden")},Lp=function(n){return jt(["top","left","right","bottom"],function(t){return Ns(n,t).isSome()})},jp=function(n,t){Lp(n.element())||Ls(n.element(),"position"),Pp(n,"visibility",t.cloakVisibilityAttr)},Up=Object.freeze({__proto__:null,cloak:zp,decloak:jp,open:Ap,openWhileCloaked:Fp,close:Ip,isOpen:Rp,isPartOf:Vp,getState:Hp,setContent:Mp}),Wp=function(n,t){return ca([da(Pu(),function(e){Ip(e,n,t)})])},Gp=Object.freeze({__proto__:null,events:Wp}),Xp=[xl("onOpen"),xl("onClose"),fr("isPartOf"),fr("getAttachPoint"),Br("cloakVisibilityAttr","data-precloak-visibility")],Yp=function(){var n=zr(St.none()),t=ft("not-implemented"),e=function(){return n.get().isSome()},o=function(t){n.set(St.some(t))},r=function(){return n.get()},i=function(){n.set(St.none())};return Uc({readState:t,isOpen:e,clear:i,set:o,get:r})},qp=Object.freeze({__proto__:null,init:Yp}),Kp=xd({fields:Xp,name:"sandboxing",active:Gp,apis:Up,state:qp}),Jp=ft("dismiss.popups"),$p=ft("reposition.popups"),Qp=ft("mouse.released"),Zp=Ao([Br("isExtraPart",ft(!1)),Tr("fireEventInstead",[Br("event",qu())])]),nh=function(n){var t,e=$o("Dismissal",Zp,n);return t={},t[Jp()]={schema:Ao([fr("target")]),onReceive:function(n,t){if(Kp.isOpen(n)){var o=Kp.isPartOf(n,t.target)||e.isExtraPart(n,t.target);o||e.fireEventInstead.fold(function(){return Kp.close(n)},function(t){return ea(n,t.event)})}}},t},th=Ao([Tr("fireEventInstead",[Br("event",Ku())]),hr("doReposition")]),eh=function(n){var t,e=$o("Reposition",th,n);return t={},t[$p()]={onReceive:function(n){Kp.isOpen(n)&&e.fireEventInstead.fold(function(){return e.doReposition(n)},function(t){return ea(n,t.event)})}},t},oh=function(n,t,e){t.store.manager.onLoad(n,t,e)},rh=function(n,t,e){t.store.manager.onUnload(n,t,e)},ih=function(n,t,e,o){t.store.manager.setValue(n,t,e,o)},uh=function(n,t,e){return t.store.manager.getValue(n,t,e)},ah=function(n,t,e){return e},ch=Object.freeze({__proto__:null,onLoad:oh,onUnload:rh,setValue:ih,getValue:uh,getState:ah}),sh=function(n,t){var e=n.resetOnDom?[Sa(function(e){oh(e,n,t)}),Ca(function(e){rh(e,n,t)})]:[dd(n,t,oh)];return ca(e)},fh=Object.freeze({__proto__:null,events:sh}),lh=function(){var n=zr(null),t=function(){return{mode:"memory",value:n.get()}},e=function(){return null===n.get()},o=function(){n.set(null)};return Uc({set:n.set,get:n.get,isNotSet:e,clear:o,readState:t})},dh=function(){var n=function(){};return Uc({readState:n})},mh=function(){var n=zr({}),t=zr({}),e=function(){return{mode:"dataset",dataByValue:n.get(),dataByText:t.get()}},o=function(){n.set({}),t.set({})},r=function(e){return xe(n.get(),e).orThunk(function(){return xe(t.get(),e)})},i=function(e){var o=n.get(),r=t.get(),i={},u={};Xt(e,function(n){i[n.value]=n,xe(n,"meta").each(function(t){xe(t,"text").each(function(t){u[t]=n})})}),n.set(vt(vt({},o),i)),t.set(vt(vt({},r),u))};return Uc({readState:e,lookup:r,update:i,clear:o})},gh=function(n){return n.store.manager.state(n)},ph=Object.freeze({__proto__:null,memory:lh,dataset:mh,manual:dh,init:gh}),hh=function(n,t,e,o){var r=t.store;e.update([o]),r.setValue(n,o),t.onSetValue(n,o)},vh=function(n,t,e){var o=t.store,r=o.getDataKey(n);return e.lookup(r).fold(function(){return o.getFallbackEntry(r)},function(n){return n})},bh=function(n,t,e){var o=t.store;o.initialValue.each(function(o){hh(n,t,e,o)})},yh=function(n,t,e){e.clear()},xh=[wr("initialValue"),fr("getFallbackEntry"),fr("getDataKey"),fr("setValue"),kl("manager",{setValue:hh,getValue:vh,onLoad:bh,onUnload:yh,state:mh})],wh=function(n,t){return t.store.getValue(n)},Sh=function(n,t,e,o){t.store.setValue(n,o),t.onSetValue(n,o)},Ch=function(n,t){t.store.initialValue.each(function(e){t.store.setValue(n,e)})},kh=[fr("getValue"),Br("setValue",at),wr("initialValue"),kl("manager",{setValue:Sh,getValue:wh,onLoad:Ch,onUnload:at,state:jc.init})],Oh=function(n,t,e,o){e.set(o),t.onSetValue(n,o)},_h=function(n,t,e){return e.get()},Th=function(n,t,e){t.store.initialValue.each(function(n){e.isNotSet()&&e.set(n)})},Eh=function(n,t,e){e.clear()},Bh=[wr("initialValue"),kl("manager",{setValue:Oh,getValue:_h,onLoad:Th,onUnload:Eh,state:lh})],Dh=[Dr("store",{mode:"memory"},nr("mode",{memory:Bh,manual:kh,dataset:xh})),xl("onSetValue"),Br("resetOnDom",!1)],Ah=xd({fields:Dh,name:"representing",active:fh,apis:ch,extra:{setValueFrom:function(n,t){var e=Ah.getValue(t);Ah.setValue(n,e)}},state:ph}),Mh=function(n,t){return Nr(n,{},Gt(t,function(t){return vr(t.name(),"Cannot configure "+t.name()+" for "+n)}).concat([Pr("dump",lt)]))},Fh=function(n){return n.dump},Ih=function(n,t){return vt(vt({},n.dump),bd(t))},Rh={field:Mh,augment:Ih,get:Fh},Vh="placeholder",Hh=ke.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),Nh=function(n){return we(n,"uiType")},Ph=function(n,t,e,o){return n.exists(function(n){return n!==e.owner})?Hh.single(!0,ft(e)):xe(o,e.name).fold(function(){throw new Error("Unknown placeholder component: "+e.name+"\nKnown: ["+de(o)+"]\nNamespace: "+n.getOr("none")+"\nSpec: "+JSON.stringify(e,null,2))},function(n){return n.replace()})},zh=function(n,t,e,o){return Nh(e)&&e.uiType===Vh?Ph(n,t,e,o):Hh.single(!1,ft(e))},Lh=function(n,t,e,o){var r=zh(n,t,e,o);return r.fold(function(r,i){var u=Nh(e)?i(t,e.config,e.validated):i(t),a=xe(u,"components").getOr([]),c=te(a,function(e){return Lh(n,t,e,o)});return[vt(vt({},u),{components:c})]},function(n,o){if(Nh(e)){var r=o(t,e.config,e.validated),i=e.validated.preprocess.getOr(lt);return i(r)}return o(t)})},jh=function(n,t,e,o){return te(e,function(e){return Lh(n,t,e,o)})},Uh=function(n,t){var e=!1,o=function(){return e},r=function(){if(e)throw new Error("Trying to use the same placeholder more than once: "+n);return e=!0,t},i=function(){return t.fold(function(n){return n},function(n){return n})};return{name:ft(n),required:i,used:o,replace:r}},Wh=function(n,t,e,o){var r=pe(o,function(n,t){return Uh(t,n)}),i=jh(n,t,e,r);return ge(r,function(e){if(e.used()===!1&&e.required())throw new Error("Placeholder: "+e.name()+" was not found in components list\nNamespace: "+n.getOr("none")+"\nComponents: "+JSON.stringify(t.components,null,2))}),i},Gh=Hh.single,Xh=Hh.multiple,Yh=ft(Vh),qh=ke.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),Kh=Br("factory",{sketch:lt}),Jh=Br("schema",[]),$h=fr("name"),Qh=Po("pname","pname",Ke(function(n){return"<alloy."+Sc(n.name)+">"}),tr()),Zh=Pr("schema",function(){return[wr("preprocess")]}),nv=Br("defaults",ft({})),tv=Br("overrides",ft({})),ev=Mo([Kh,Jh,$h,Qh,nv,tv]),ov=Mo([Kh,Jh,$h,nv,tv]),rv=Mo([Kh,Jh,$h,Qh,nv,tv]),iv=Mo([Kh,Zh,$h,fr("unit"),Qh,nv,tv]),uv=function(n){return n.fold(St.some,St.none,St.some,St.some)},av=function(n){var t=function(n){return n.name};return n.fold(t,t,t,t)},cv=function(n){return n.fold(lt,lt,lt,lt)},sv=function(n,t){return function(e){var o=$o("Converting part type",t,e);return n(o)}},fv=sv(qh.required,ev),lv=sv(qh.external,ov),dv=sv(qh.optional,rv),mv=sv(qh.group,iv),gv=ft("entirety"),pv=Object.freeze({__proto__:null,required:fv,external:lv,optional:dv,group:mv,asNamedPart:uv,name:av,asCommon:cv,original:gv}),hv=function(n,t,e,o){return Be(t.defaults(n,e,o),e,{uid:n.partUids[t.name]},t.overrides(n,e,o))},vv=function(n,t,e){var o={},r={};return Xt(e,function(n){n.fold(function(n){o[n.pname]=Gh(!0,function(t,e,o){return n.factory.sketch(hv(t,n,e,o))})},function(n){var e=t.parts[n.name];r[n.name]=ft(n.factory.sketch(hv(t,n,e[gv()]),e))},function(n){o[n.pname]=Gh(!1,function(t,e,o){return n.factory.sketch(hv(t,n,e,o))})},function(n){o[n.pname]=Xh(!0,function(t,e,o){var r=t[n.name];return Gt(r,function(e){return n.factory.sketch(Be(n.defaults(t,e,o),e,n.overrides(t,e)))})})})}),{internals:ft(o),externals:ft(r)}},bv=function(n,t){var e={};return Xt(t,function(t){uv(t).each(function(t){var o=yv(n,t.pname);e[t.name]=function(e){var r=$o("Part: "+t.name+" in "+n,Mo(t.schema),e);return vt(vt({},o),{config:e,validated:r})}})}),e},yv=function(n,t){return{uiType:Yh(),owner:n,name:t}
},xv=function(n,t,e){return{uiType:Yh(),owner:n,name:t,config:e,validated:{}}},wv=function(n){return te(n,function(n){return n.fold(St.none,St.some,St.none,St.none).map(function(n){return br(n.name,n.schema.concat([Ol(gv())]))}).toArray()})},Sv=function(n){return Gt(n,av)},Cv=function(n,t,e){return vv(n,t,e)},kv=function(n,t,e){return Wh(St.some(n),t,t.components,e)},Ov=function(n,t,e){var o=t.partUids[e];return n.getSystem().getByUid(o).toOption()},_v=function(n,t,e){return Ov(n,t,e).getOrDie("Could not find part: "+e)},Tv=function(n,t,e){var o={},r=t.partUids,i=n.getSystem();return Xt(e,function(n){o[n]=ft(i.getByUid(r[n]))}),o},Ev=function(n,t){var e=n.getSystem();return pe(t.partUids,function(n){return ft(e.getByUid(n))})},Bv=function(n){return de(n.partUids)},Dv=function(n,t,e){var o={},r=t.partUids,i=n.getSystem();return Xt(e,function(n){o[n]=ft(i.getByUid(r[n]).getOrDie())}),o},Av=function(n,t){var e=Sv(t);return oo(Gt(e,function(t){return{key:t,value:n+"-"+t}}))},Mv=function(n){return Po("partUids","partUids",Je(function(t){return Av(t.uid,n)}),tr())},Fv=Object.freeze({__proto__:null,generate:bv,generateOne:xv,schemas:wv,names:Sv,substitutes:Cv,components:kv,defaultUids:Av,defaultUidsSchema:Mv,getAllParts:Ev,getAllPartNames:Bv,getPart:Ov,getPartOrDie:_v,getParts:Tv,getPartsOrDie:Dv}),Iv=function(n,t){var e=n.length>0?[br("parts",n)]:[];return e.concat([fr("uid"),Br("dom",{}),Br("components",[]),Ol("originalSpec"),Br("debug.sketcher",{})]).concat(t)},Rv=function(n,t,e,o,r){var i=Iv(o,r);return $o(n+" [SpecSchema]",Ao(i.concat(t)),e)},Vv=function(n,t,e,o){var r=Pv(o),i=Rv(n,t,r,[],[]);return e(i,r)},Hv=function(n,t,e,o,r){var i=Pv(r),u=wv(e),a=Mv(e),c=Rv(n,t,i,u,[a]),s=Cv(n,c,e),f=kv(n,c,s.internals());return o(c,f,i,s.externals())},Nv=function(n){return we(n,"uid")},Pv=function(n){return Nv(n)?n:vt(vt({},n),{uid:Dc("uid")})},zv=Ao([fr("name"),fr("factory"),fr("configFields"),Br("apis",{}),Br("extraApis",{})]),Lv=Ao([fr("name"),fr("factory"),fr("configFields"),fr("partFields"),Br("apis",{}),Br("extraApis",{})]),jv=function(n){var t=$o("Sketcher for "+n.name,zv,n),e=function(n){return Vv(t.name,t.configFields,t.factory,n)},o=pe(t.apis,Lc),r=pe(t.extraApis,function(n,t){return Vc(n,t)});return vt(vt({name:ft(t.name),configFields:ft(t.configFields),sketch:e},o),r)},Uv=function(n){var t=$o("Sketcher for "+n.name,Lv,n),e=function(n){return Hv(t.name,t.configFields,t.partFields,t.factory,n)},o=bv(t.name,t.partFields),r=pe(t.apis,Lc),i=pe(t.extraApis,function(n,t){return Vc(n,t)});return vt(vt({name:ft(t.name),partFields:ft(t.partFields),configFields:ft(t.configFields),sketch:e,parts:ft(o)},r),i)},Wv=function(n){for(var t=[],e=function(n){t.push(n)},o=0;o<n.length;o++)n[o].each(e);return t},Gv=function(n){for(var t=[],e=0;e<n.length;e++){var o=n[e];if(!o.isSome())return St.none();t.push(o.getOrDie())}return St.some(t)},Xv=function(n,t,e){return n.isSome()&&t.isSome()?St.some(e(n.getOrDie(),t.getOrDie())):St.none()},Yv=function(n,t,e,o){return n.isSome()&&t.isSome()&&e.isSome()?St.some(o(n.getOrDie(),t.getOrDie(),e.getOrDie())):St.none()},qv=function(n){return"input"===ec(n)&&"radio"!==fc(n,"type")||"textarea"===ec(n)},Kv=function(n,t){return t.find(n)},Jv=Object.freeze({__proto__:null,getCurrent:Kv}),$v=[fr("find")],Qv=xd({fields:$v,name:"composing",apis:Jv}),Zv=function(n,t,e,o){var r=bg(n.element(),"."+t.highlightClass);Xt(r,function(e){jt(o,function(n){return n.element()===e})||(Cs(e,t.highlightClass),n.getSystem().getByDom(e).each(function(e){t.onDehighlight(n,e),ea(e,ta())}))})},nb=function(n,t,e){return Zv(n,t,e,[])},tb=function(n,t,e,o){ab(n,t,e,o)&&(Cs(o.element(),t.highlightClass),t.onDehighlight(n,o),ea(o,ta()))},eb=function(n,t,e,o){Zv(n,t,e,[o]),ab(n,t,e,o)||(ws(o.element(),t.highlightClass),t.onHighlight(n,o),ea(o,na()))},ob=function(n,t,e){fb(n,t).each(function(o){eb(n,t,e,o)})},rb=function(n,t,e){lb(n,t).each(function(o){eb(n,t,e,o)})},ib=function(n,t,e,o){sb(n,t,e,o).fold(function(n){throw new Error(n)},function(o){eb(n,t,e,o)})},ub=function(n,t,e,o){var r=pb(n,t),i=Qt(r,o);i.each(function(o){eb(n,t,e,o)})},ab=function(n,t,e,o){return ks(o.element(),t.highlightClass)},cb=function(n,t){return Jf(n.element(),"."+t.highlightClass).bind(function(t){return n.getSystem().getByDom(t).toOption()})},sb=function(n,t,e,o){var r=bg(n.element(),"."+t.itemClass);return St.from(r[o]).fold(function(){return _t.error("No element found with index "+o)},n.getSystem().getByDom)},fb=function(n,t){return Jf(n.element(),"."+t.itemClass).bind(function(t){return n.getSystem().getByDom(t).toOption()})},lb=function(n,t){var e=bg(n.element(),"."+t.itemClass),o=e.length>0?St.some(e[e.length-1]):St.none();return o.bind(function(t){return n.getSystem().getByDom(t).toOption()})},db=function(n,t,e,o){var r=bg(n.element(),"."+t.itemClass),i=Zt(r,function(n){return ks(n,t.highlightClass)});return i.bind(function(t){var e=Jd(t,o,0,r.length-1);return n.getSystem().getByDom(r[e]).toOption()})},mb=function(n,t,e){return db(n,t,e,-1)},gb=function(n,t,e){return db(n,t,e,1)},pb=function(n,t){var e=bg(n.element(),"."+t.itemClass);return Wv(Gt(e,function(t){return n.getSystem().getByDom(t).toOption()}))},hb=Object.freeze({__proto__:null,dehighlightAll:nb,dehighlight:tb,highlight:eb,highlightFirst:ob,highlightLast:rb,highlightAt:ib,highlightBy:ub,isHighlighted:ab,getHighlighted:cb,getFirst:fb,getLast:lb,getPrevious:mb,getNext:gb,getCandidates:pb}),vb=[fr("highlightClass"),fr("itemClass"),xl("onHighlight"),xl("onDehighlight")],bb=xd({fields:vb,name:"highlighting",apis:hb}),yb=function(){return[8]},xb=function(){return[9]},wb=function(){return[13]},Sb=function(){return[27]},Cb=function(){return[32]},kb=function(){return[37]},Ob=function(){return[38]},_b=function(){return[39]},Tb=function(){return[40]},Eb=function(n,t,e){var o=oe(n.slice(0,t)),r=oe(n.slice(t+1));return Qt(o.concat(r),e)},Bb=function(n,t,e){var o=oe(n.slice(0,t));return Qt(o,e)},Db=function(n,t,e){var o=n.slice(0,t),r=n.slice(t+1);return Qt(r.concat(o),e)},Ab=function(n,t,e){var o=n.slice(t+1);return Qt(o,e)},Mb=function(n){return function(t){var e=t.raw();return Lt(n,e.which)}},Fb=function(n){return function(t){return ee(n,function(n){return n(t)})}},Ib=function(n){var t=n.raw();return t.shiftKey===!0},Rb=function(n){var t=n.raw();return t.ctrlKey===!0},Vb=dt(Ib),Hb=function(n,t){return{matches:n,classification:t}},Nb=function(n,t){var e=Qt(n,function(n){return n.matches(t)});return e.map(function(n){return n.classification})},Pb=function(n,t,e){var o=t.exists(function(n){return e.exists(function(t){return Zi(t,n)})});o||oa(n,Ju(),{prevFocus:t,newFocus:e})},zb=function(){var n=function(n){return Rd(n.element())},t=function(t,e){var o=n(t);t.getSystem().triggerFocus(e,t.element());var r=n(t);Pb(t,o,r)};return{get:n,set:t}},Lb=function(){var n=function(n){return bb.getHighlighted(n).map(function(n){return n.element()})},t=function(t,e){var o=n(t);t.getSystem().getByDom(e).fold(at,function(n){bb.highlight(t,n)});var r=n(t);Pb(t,o,r)};return{get:n,set:t}};!function(n){n.OnFocusMode="onFocus",n.OnEnterOrSpaceMode="onEnterOrSpace",n.OnApiMode="onApi"}(Sm||(Sm={}));var jb,Ub=function(n,t,e,o,r){var i=function(){return n.concat([Br("focusManager",zb()),Dr("focusInside","onFocus",Xo(function(n){return Lt(["onFocus","onEnterOrSpace","onApi"],n)?_t.value(n):_t.error("Invalid value for focusInside")})),kl("handler",c),kl("state",t),kl("sendFocusIn",r)])},u=function(n,t,e,o,r){var i=e(n,t,o,r);return Nb(i,t.event()).bind(function(e){return e(n,t,o,r)})},a=function(n,t){var i=n.focusInside!==Sm.OnFocusMode?St.none():r(n).map(function(e){return da(Au(),function(o,r){e(o,n,t),r.stop()})}),a=function(e,o){var i=Mb(Cb().concat(wb()))(o.event());n.focusInside===Sm.OnEnterOrSpaceMode&&i&&uu(e,o)&&r(n).each(function(r){r(e,n,t),o.stop()})};return ca(i.toArray().concat([da(Cu(),function(o,r){u(o,r,e,n,t).fold(function(){a(o,r)},function(){r.stop()})}),da(ku(),function(e,r){u(e,r,o,n,t).each(function(){r.stop()})})]))},c={schema:i,processKey:u,toEvents:a};return c},Wb=function(n){var e=[wr("onEscape"),wr("onEnter"),Br("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Br("firstTabstop",0),Br("useTabstopAt",ft(!0)),wr("visibilitySelector")].concat([n]),o=function(n,t){var e=n.visibilitySelector.bind(function(n){return $f(t,n)}).getOr(t);return af(e)>0},r=function(n,t){var e=bg(n.element(),t.selector),r=Kt(e,function(n){return o(t,n)});return St.from(r[t.firstTabstop])},i=function(n,t){return t.focusManager.get(n).bind(function(n){return $f(n,t.selector)})},u=function(n,t){return o(n,t)&&n.useTabstopAt(t)},a=function(n,t){r(n,t).each(function(e){t.focusManager.set(n,e)})},c=function(n,t,e,o,r){return r(t,e,function(n){return u(o,n)}).fold(function(){return o.cyclic?St.some(!0):St.none()},function(t){return o.focusManager.set(n,t),St.some(!0)})},s=function(n,e,o,r){var u=bg(n.element(),o.selector);return i(n,o).bind(function(e){var i=Zt(u,t(Zi,e));return i.bind(function(t){return c(n,u,t,o,r)})})},f=function(n,t,e){var o=e.cyclic?Eb:Bb;return s(n,t,e,o)},l=function(n,t,e){var o=e.cyclic?Db:Ab;return s(n,t,e,o)},d=function(n,t,e){return e.onEnter.bind(function(e){return e(n,t)})},m=function(n,t,e){return e.onEscape.bind(function(e){return e(n,t)})},g=ft([Hb(Fb([Ib,Mb(xb())]),f),Hb(Mb(xb()),l),Hb(Mb(Sb()),m),Hb(Fb([Vb,Mb(wb())]),d)]),p=ft([]);return Ub(e,jc.init,g,p,function(){return St.some(a)})},Gb=Wb(Pr("cyclic",ft(!1))),Xb=Wb(Pr("cyclic",ft(!0))),Yb=function(n,t,e){return ia(n,e,Ru()),St.some(!0)},qb=function(n,t,e){return qv(e)&&Mb(Cb())(t.event())?St.none():Yb(n,t,e)},Kb=function(){return St.some(!0)},Jb=[Br("execute",qb),Br("useSpace",!1),Br("useEnter",!0),Br("useControlEnter",!1),Br("useDown",!1)],$b=function(n,t,e){return e.execute(n,t,n.element())},Qb=function(n,t,e){var o=e.useSpace&&!qv(n.element())?Cb():[],r=e.useEnter?wb():[],i=e.useDown?Tb():[],u=o.concat(r).concat(i);return[Hb(Mb(u),$b)].concat(e.useControlEnter?[Hb(Fb([Rb,Mb(wb())]),$b)]:[])},Zb=function(n,t,e){return e.useSpace&&!qv(n.element())?[Hb(Mb(Cb()),Kb)]:[]},ny=Ub(Jb,jc.init,Qb,Zb,function(){return St.none()}),ty=function(){var n=zr(St.none()),t=function(t,e){n.set(St.some({numRows:ft(t),numColumns:ft(e)}))},e=function(){return n.get().map(function(n){return n.numRows()})},o=function(){return n.get().map(function(n){return n.numColumns()})};return Uc({readState:function(){return n.get().map(function(n){return{numRows:String(n.numRows()),numColumns:String(n.numColumns())}}).getOr({numRows:"?",numColumns:"?"})},setGridSize:t,getNumRows:e,getNumColumns:o})},ey=function(n){return n.state(n)},oy=Object.freeze({__proto__:null,flatgrid:ty,init:ey}),ry=function(n){return function(t,e,o,r){var i=n(t.element());return cy(i,t,e,o,r)}},iy=function(n,t){var e=xm(n,t);return ry(e)},uy=function(n,t){var e=xm(t,n);return ry(e)},ay=function(n){return function(t,e,o,r){return cy(n,t,e,o,r)}},cy=function(n,t,e,o,r){var i=o.focusManager.get(t).bind(function(e){return n(t.element(),e,o,r)});return i.map(function(n){return o.focusManager.set(t,n),!0})},sy=ay,fy=ay,ly=ay,dy=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0},my=function(n){var t=n.dom();return!dy(t)},gy=function(n,t){return Zt(n,t).map(function(t){return{index:ft(t),candidates:ft(n)}})},py=function(n,t,e){var o=function(n){return Zi(n,t)},r=bg(n,e),i=Kt(r,my);return gy(i,o)},hy=function(n,t){return Zt(n,function(n){return Zi(t,n)})},vy=function(n,t,e,o){var r=Math.floor(t/e),i=t%e;return o(r,i).bind(function(t){var o=t.row()*e+t.column();return o>=0&&o<n.length?St.some(n[o]):St.none()})},by=function(n,t,e,o,r){return vy(n,t,o,function(t,i){var u=t===e-1,a=u?n.length-t*o:o,c=Jd(i,r,0,a-1);return St.some({row:ft(t),column:ft(c)})})},yy=function(n,t,e,o,r){return vy(n,t,o,function(t,i){var u=Jd(t,r,0,e-1),a=u===e-1,c=a?n.length-u*o:o,s=$d(i,0,c-1);return St.some({row:ft(u),column:ft(s)})})},xy=function(n,t,e,o){return by(n,t,e,o,1)},wy=function(n,t,e,o){return by(n,t,e,o,-1)},Sy=function(n,t,e,o){return yy(n,t,e,o,-1)},Cy=function(n,t,e,o){return yy(n,t,e,o,1)},ky=[fr("selector"),Br("execute",qb),wl("onEscape"),Br("captureTab",!1),_l()],Oy=function(n,t){Jf(n.element(),t.selector).each(function(e){t.focusManager.set(n,e)})},_y=function(n,t){return t.focusManager.get(n).bind(function(n){return $f(n,t.selector)})},Ty=function(n,t,e){return _y(n,e).bind(function(o){return e.execute(n,t,o)})},Ey=function(n){return function(t,e,o,r){return py(t,e,o.selector).bind(function(t){return n(t.candidates(),t.index(),r.getNumRows().getOr(o.initSize.numRows),r.getNumColumns().getOr(o.initSize.numColumns))})}},By=function(n,t,e){return e.captureTab?St.some(!0):St.none()},Dy=function(n,t,e){return e.onEscape(n,t)},Ay=Ey(wy),My=Ey(xy),Fy=Ey(Sy),Iy=Ey(Cy),Ry=ft([Hb(Mb(kb()),iy(Ay,My)),Hb(Mb(_b()),uy(Ay,My)),Hb(Mb(Ob()),sy(Fy)),Hb(Mb(Tb()),fy(Iy)),Hb(Fb([Ib,Mb(xb())]),By),Hb(Fb([Vb,Mb(xb())]),By),Hb(Mb(Sb()),Dy),Hb(Mb(Cb().concat(wb())),Ty)]),Vy=ft([Hb(Mb(Cb()),Kb)]),Hy=Ub(ky,ty,Ry,Vy,function(){return St.some(Oy)}),Ny=function(n,t,e,o){var r=function(n){return"button"===ec(n)&&"disabled"===fc(n,"disabled")},i=function(n,t,e){var u=Jd(t,o,0,e.length-1);return u===n?St.none():r(e[u])?i(n,u,e):St.from(e[u])};return py(n,e,t).bind(function(n){var t=n.index(),e=n.candidates();return i(t,t,e)})},Py=[fr("selector"),Br("getInitial",St.none),Br("execute",qb),wl("onEscape"),Br("executeOnMove",!1),Br("allowVertical",!0)],zy=function(n,t){return t.focusManager.get(n).bind(function(n){return $f(n,t.selector)})},Ly=function(n,t,e){return zy(n,e).bind(function(o){return e.execute(n,t,o)})},jy=function(n,t){t.getInitial(n).orThunk(function(){return Jf(n.element(),t.selector)}).each(function(e){t.focusManager.set(n,e)})},Uy=function(n,t,e){return Ny(n,e.selector,t,-1)},Wy=function(n,t,e){return Ny(n,e.selector,t,1)},Gy=function(n){return function(t,e,o,r){return n(t,e,o,r).bind(function(){return o.executeOnMove?Ly(t,e,o):St.some(!0)})}},Xy=function(n,t,e){return e.onEscape(n,t)},Yy=function(n,t,e){var o=kb().concat(e.allowVertical?Ob():[]),r=_b().concat(e.allowVertical?Tb():[]);return[Hb(Mb(o),Gy(iy(Uy,Wy))),Hb(Mb(r),Gy(uy(Uy,Wy))),Hb(Mb(wb()),Ly),Hb(Mb(Cb()),Ly),Hb(Mb(Sb()),Xy)]},qy=ft([Hb(Mb(Cb()),Kb)]),Ky=Ub(Py,jc.init,Yy,qy,function(){return St.some(jy)}),Jy=Ma(["rowIndex","columnIndex","cell"],[]),$y=function(n,t,e){return St.from(n[t]).bind(function(n){return St.from(n[e]).map(function(n){return Jy({rowIndex:t,columnIndex:e,cell:n})})})},Qy=function(n,t,e,o){var r=n[t],i=r.length,u=Jd(e,o,0,i-1);return $y(n,t,u)},Zy=function(n,t,e,o){var r=Jd(e,o,0,n.length-1),i=n[r].length,u=$d(t,0,i-1);return $y(n,r,u)},nx=function(n,t,e,o){var r=n[t],i=r.length,u=$d(e+o,0,i-1);return $y(n,t,u)},tx=function(n,t,e,o){var r=$d(e+o,0,n.length-1),i=n[r].length,u=$d(t,0,i-1);return $y(n,r,u)},ex=function(n,t,e){return Qy(n,t,e,1)},ox=function(n,t,e){return Qy(n,t,e,-1)},rx=function(n,t,e){return Zy(n,e,t,-1)},ix=function(n,t,e){return Zy(n,e,t,1)},ux=function(n,t,e){return nx(n,t,e,-1)},ax=function(n,t,e){return nx(n,t,e,1)},cx=function(n,t,e){return tx(n,e,t,-1)},sx=function(n,t,e){return tx(n,e,t,1)},fx=[br("selectors",[fr("row"),fr("cell")]),Br("cycles",!0),Br("previousSelector",St.none),Br("execute",qb)],lx=function(n,t){var e=t.previousSelector(n).orThunk(function(){var e=t.selectors;return Jf(n.element(),e.cell)});e.each(function(e){t.focusManager.set(n,e)})},dx=function(n,t,e){return Rd(n.element()).bind(function(o){return e.execute(n,t,o)})},mx=function(n,t){return Gt(n,function(n){return bg(n,t.selectors.cell)})},gx=function(n,t){return function(e,o,r){var i=r.cycles?n:t;return $f(o,r.selectors.row).bind(function(n){var t=bg(n,r.selectors.cell);return hy(t,o).bind(function(t){var o=bg(e,r.selectors.row);return hy(o,n).bind(function(n){var e=mx(o,r);return i(e,n,t).map(function(n){return n.cell()})})})})}},px=gx(ox,ux),hx=gx(ex,ax),vx=gx(rx,cx),bx=gx(ix,sx),yx=ft([Hb(Mb(kb()),iy(px,hx)),Hb(Mb(_b()),uy(px,hx)),Hb(Mb(Ob()),sy(vx)),Hb(Mb(Tb()),fy(bx)),Hb(Mb(Cb().concat(wb())),dx)]),xx=ft([Hb(Mb(Cb()),Kb)]),wx=Ub(fx,jc.init,yx,xx,function(){return St.some(lx)}),Sx=[fr("selector"),Br("execute",qb),Br("moveOnTab",!1)],Cx=function(n,t,e){return e.focusManager.get(n).bind(function(o){return e.execute(n,t,o)})},kx=function(n,t){Jf(n.element(),t.selector).each(function(e){t.focusManager.set(n,e)})},Ox=function(n,t,e){return Ny(n,e.selector,t,-1)},_x=function(n,t,e){return Ny(n,e.selector,t,1)},Tx=function(n,t,e,o){return e.moveOnTab?ly(Ox)(n,t,e,o):St.none()},Ex=function(n,t,e,o){return e.moveOnTab?ly(_x)(n,t,e,o):St.none()},Bx=ft([Hb(Mb(Ob()),ly(Ox)),Hb(Mb(Tb()),ly(_x)),Hb(Fb([Ib,Mb(xb())]),Tx),Hb(Fb([Vb,Mb(xb())]),Ex),Hb(Mb(wb()),Cx),Hb(Mb(Cb()),Cx)]),Dx=ft([Hb(Mb(Cb()),Kb)]),Ax=Ub(Sx,jc.init,Bx,Dx,function(){return St.some(kx)}),Mx=[wl("onSpace"),wl("onEnter"),wl("onShiftEnter"),wl("onLeft"),wl("onRight"),wl("onTab"),wl("onShiftTab"),wl("onUp"),wl("onDown"),wl("onEscape"),Br("stopSpaceKeyup",!1),wr("focusIn")],Fx=function(n,t,e){return[Hb(Mb(Cb()),e.onSpace),Hb(Fb([Vb,Mb(wb())]),e.onEnter),Hb(Fb([Ib,Mb(wb())]),e.onShiftEnter),Hb(Fb([Ib,Mb(xb())]),e.onShiftTab),Hb(Fb([Vb,Mb(xb())]),e.onTab),Hb(Mb(Ob()),e.onUp),Hb(Mb(Tb()),e.onDown),Hb(Mb(kb()),e.onLeft),Hb(Mb(_b()),e.onRight),Hb(Mb(Cb()),e.onSpace),Hb(Mb(Sb()),e.onEscape)]},Ix=function(n,t,e){return e.stopSpaceKeyup?[Hb(Mb(Cb()),Kb)]:[]},Rx=Ub(Mx,jc.init,Fx,Ix,function(n){return n.focusIn}),Vx=Gb.schema(),Hx=Xb.schema(),Nx=Ky.schema(),Px=Hy.schema(),zx=wx.schema(),Lx=ny.schema(),jx=Ax.schema(),Ux=Rx.schema(),Wx=Object.freeze({__proto__:null,acyclic:Vx,cyclic:Hx,flow:Nx,flatgrid:Px,matrix:zx,execution:Lx,menu:jx,special:Ux}),Gx=function(n){return Se(n,"setGridSize")},Xx=Sd({branchKey:"mode",branches:Wx,name:"keying",active:{events:function(n,t){var e=n.handler;return e.toEvents(n,t)}},apis:{focusIn:function(n,t,e){t.sendFocusIn(t).fold(function(){n.getSystem().triggerFocus(n.element(),n.element())},function(o){o(n,t,e)})},setGridSize:function(t,e,o,r,i){Gx(o)?o.setGridSize(r,i):n.console.error("Layout does not support setGridSize")}},state:oy}),Yx=function(n,t,e,o){Vd(function(){var t=Gt(o,n.getSystem().build);xp(n,t)},n.element())},qx=function(n,t,e,o){var r=n.getSystem().build(o);Sp(n,r,e)},Kx=function(n,t,e,o){qx(n,t,Xa,o)},Jx=function(n,t,e,o){qx(n,t,Ga,o)},$x=function(n,t,e,o){var r=Qx(n),i=Qt(r,function(n){return Zi(o.element(),n.element())});i.each(kp)},Qx=function(n){return n.components()},Zx=function(n,t,e,o,r){var i=Qx(n);return St.from(i[o]).map(function(i){return $x(n,t,e,i),r.each(function(e){qx(n,t,function(n,t){Ya(n,t,o)},e)}),i})},nw=function(n,t,e,o,r){var i=Qx(n);return Zt(i,o).bind(function(o){return Zx(n,t,e,o,r)})},tw=Object.freeze({__proto__:null,append:Kx,prepend:Jx,remove:$x,replaceAt:Zx,replaceBy:nw,set:Yx,contents:Qx}),ew=xd({fields:[],name:"replacing",apis:tw}),ow=function(n,t){var e=ca(t);return xd({fields:[fr("enabled")],name:n,active:{events:ft(e)}})},rw=function(n,t){var e=ow(n,t);return{key:n,value:{config:{},me:e,configAsRaw:ft({}),initialConfig:{},state:jc}}},iw=function(n,t){t.ignore||(Ad(n.element()),t.onFocus(n))},uw=function(n,t){t.ignore||Md(n.element())},aw=function(n){return Fd(n.element())},cw=Object.freeze({__proto__:null,focus:iw,blur:uw,isFocused:aw}),sw=function(n,t){var e=t.ignore?{}:{attributes:{tabindex:"-1"}};return qc(e)},fw=function(n){return ca([da(Au(),function(t,e){iw(t,n),e.stop()})].concat(n.stopMousedown?[da(hu(),function(n,t){t.event().prevent()})]:[]))},lw=Object.freeze({__proto__:null,exhibit:sw,events:fw}),dw=[xl("onFocus"),Br("stopMousedown",!1),Br("ignore",!1)],mw=xd({fields:dw,name:"focusing",active:lw,apis:cw}),gw=function(n,t,e){var o=t.aria;o.update(n,o,e.get())},pw=function(n,t,e){t.toggleClass.each(function(t){e.get()?ws(n.element(),t):Cs(n.element(),t)})},hw=function(n,t,e){yw(n,t,e,!e.get())},vw=function(n,t,e){e.set(!0),pw(n,t,e),gw(n,t,e)},bw=function(n,t,e){e.set(!1),pw(n,t,e),gw(n,t,e)},yw=function(n,t,e,o){var r=o?vw:bw;r(n,t,e)},xw=function(n,t,e){return e.get()},ww=function(n,t,e){yw(n,t,e,t.selected)},Sw=Object.freeze({__proto__:null,onLoad:ww,toggle:hw,isOn:xw,on:vw,off:bw,set:yw}),Cw=function(){return qc({})},kw=function(n,t){var e=ld(n,t,hw),o=dd(n,t,ww);return ca(ne([n.toggleOnExecute?[e]:[],[o]]))},Ow=Object.freeze({__proto__:null,exhibit:Cw,events:kw}),_w=function(n){var t=function(){var t=zr(n),e=function(){return t.get()},o=function(n){return t.set(n)},r=function(){return t.set(n)},i=function(){return t.get()};return{get:e,set:o,clear:r,readState:i}};return{init:t}},Tw=function(n,t,e){cc(n.element(),"aria-pressed",e),t.syncWithExpanded&&Dw(n,t,e)},Ew=function(n,t,e){cc(n.element(),"aria-selected",e)},Bw=function(n,t,e){cc(n.element(),"aria-checked",e)},Dw=function(n,t,e){cc(n.element(),"aria-expanded",e)},Aw=[Br("selected",!1),wr("toggleClass"),Br("toggleOnExecute",!0),Dr("aria",{mode:"none"},nr("mode",{pressed:[Br("syncWithExpanded",!1),kl("update",Tw)],checked:[kl("update",Bw)],expanded:[kl("update",Dw)],selected:[kl("update",Ew)],none:[kl("update",at)]}))],Mw=xd({fields:Aw,name:"toggling",active:Ow,apis:Sw,state:_w(!1)}),Fw=function(){var n=function(n,t){t.stop(),ra(n)};return[da(Tu(),n),da(Hu(),n),ya(du()),ya(hu())]},Iw=function(n){var t=function(n){return Oa(function(t,e){n(t),e.stop()})};return ca(ne([n.map(t).toArray(),Fw()]))},Rw="alloy.item-hover",Vw="alloy.item-focus",Hw=function(n){(Rd(n.element()).isNone()||mw.isFocused(n))&&(mw.isFocused(n)||mw.focus(n),oa(n,Rw,{item:n}))},Nw=function(n){oa(n,Vw,{item:n})},Pw=ft(Rw),zw=ft(Vw),Lw=function(n){return{dom:n.dom,domModification:vt(vt({},n.domModification),{attributes:vt(vt(vt({role:n.toggling.isSome()?"menuitemcheckbox":"menuitem"},n.domModification.attributes),{"aria-haspopup":n.hasSubmenu}),n.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:Rh.augment(n.itemBehaviours,[n.toggling.fold(Mw.revoke,function(n){return Mw.config(vt({aria:{mode:"checked"}},n))}),mw.config({ignore:n.ignoreFocus,stopMousedown:n.ignoreFocus,onFocus:function(n){Nw(n)}}),Xx.config({mode:"execution"}),Ah.config({store:{mode:"memory",initialValue:n.data}}),rw("item-type-events",o(Fw(),[da(xu(),Hw),da(Vu(),mw.focus)]))]),components:n.components,eventOrder:n.eventOrder}},jw=[fr("data"),fr("components"),fr("dom"),Br("hasSubmenu",!1),wr("toggling"),Rh.field("itemBehaviours",[Mw,mw,Xx,Ah]),Br("ignoreFocus",!1),Br("domModification",{}),kl("builder",Lw),Br("eventOrder",{})],Uw=function(n){return{dom:n.dom,components:n.components,events:ca([xa(Vu())])}},Ww=[fr("dom"),fr("components"),kl("builder",Uw)],Gw=function(){return"item-widget"},Xw=ft([fv({name:"widget",overrides:function(n){return{behaviours:bd([Ah.config({store:{mode:"manual",getValue:function(){return n.data},setValue:function(){}}})])}}})]),Yw=function(n){var t=Cv(Gw(),n,Xw()),e=kv(Gw(),n,t.internals()),o=function(t){return Ov(t,n,"widget").map(function(n){return Xx.focusIn(n),n})},r=function(t,e){return qv(e.event().target())?St.none():function(){return n.autofocus?(e.setSource(t.element()),St.none()):St.none()}()};return{dom:n.dom,components:e,domModification:n.domModification,events:ca([Oa(function(n,t){o(n).each(function(){t.stop()})}),da(xu(),Hw),da(Vu(),function(t){n.autofocus?o(t):mw.focus(t)})]),behaviours:Rh.augment(n.widgetBehaviours,[Ah.config({store:{mode:"memory",initialValue:n.data}}),mw.config({ignore:n.ignoreFocus,onFocus:function(n){Nw(n)}}),Xx.config({mode:"special",focusIn:n.autofocus?function(n){o(n)}:Cd(),onLeft:r,onRight:r,onEscape:function(t,e){return mw.isFocused(t)||n.autofocus?n.autofocus?(e.setSource(t.element()),St.none()):St.none():(mw.focus(t),St.some(!0))}})])}},qw=[fr("uid"),fr("data"),fr("components"),fr("dom"),Br("autofocus",!1),Br("ignoreFocus",!1),Rh.field("widgetBehaviours",[Ah,mw,Xx]),Br("domModification",{}),Mv(Xw()),kl("builder",Yw)],Kw=nr("type",{widget:qw,item:jw,separator:Ww}),Jw=function(n,t){return{mode:"flatgrid",selector:"."+n.markers.item,initSize:{numColumns:t.initSize.numColumns,numRows:t.initSize.numRows},focusManager:n.focusManager}},$w=function(n,t){return{mode:"matrix",selectors:{row:t.rowSelector,cell:"."+n.markers.item},focusManager:n.focusManager}},Qw=function(n,t){return{mode:"menu",selector:"."+n.markers.item,moveOnTab:t.moveOnTab,focusManager:n.focusManager}},Zw=ft([mv({factory:{sketch:function(n){var t=$o("menu.spec item",Kw,n);return t.builder(t)}},name:"items",unit:"item",defaults:function(n,t){return t.hasOwnProperty("uid")?t:vt(vt({},t),{uid:Dc("item")})},overrides:function(n,t){return{type:t.type,ignoreFocus:n.fakeFocus,domModification:{classes:[n.markers.item]}}}})]),nS=ft([fr("value"),fr("items"),fr("dom"),fr("components"),Br("eventOrder",{}),Mh("menuBehaviours",[bb,Ah,Qv,Xx]),Dr("movement",{mode:"menu",moveOnTab:!0},nr("mode",{grid:[_l(),kl("config",Jw)],matrix:[kl("config",$w),fr("rowSelector")],menu:[Br("moveOnTab",!0),kl("config",Qw)]})),hl(),Br("fakeFocus",!1),Br("focusManager",zb()),xl("onHighlight")]),tS=ft("alloy.menu-focus"),eS=function(n,t){return{uid:n.uid,dom:n.dom,markers:n.markers,behaviours:Ih(n.menuBehaviours,[bb.config({highlightClass:n.markers.selectedItem,itemClass:n.markers.item,onHighlight:n.onHighlight}),Ah.config({store:{mode:"memory",initialValue:n.value}}),Qv.config({find:St.some}),Xx.config(n.movement.config(n,n.movement))]),events:ca([da(zw(),function(n,t){var e=t.event();n.getSystem().getByDom(e.target()).each(function(e){bb.highlight(n,e),t.stop(),oa(n,tS(),{menu:n,item:e})})}),da(Pw(),function(n,t){var e=t.event().item();bb.highlight(n,e)})]),components:t,eventOrder:n.eventOrder,domModification:{attributes:{role:"menu"}}}},oS=Uv({name:"Menu",configFields:nS(),partFields:Zw(),factory:eS}),rS=function(n){return he(n,function(n,t){return{k:n,v:t}})},iS=function(n,t,e,o){return xe(e,o).bind(function(o){return xe(n,o).bind(function(o){var r=iS(n,t,e,o);return St.some([o].concat(r))})}).getOr([])},uS=function(n,t){var e={};ge(n,function(n,t){Xt(n,function(n){e[n]=t})});var o=t,r=rS(t),i=pe(r,function(n,t){return[t].concat(iS(e,o,r,t))});return pe(e,function(n){return xe(i,n).getOr([n])})},aS=function(){var n=zr({}),t=zr({}),e=zr({}),o=zr(St.none()),r=zr({}),i=function(){n.set({}),t.set({}),e.set({}),o.set(St.none())},u=function(){return o.get().isNone()},a=function(n,e){var o;t.set(vt(vt({},t.get()),(o={},o[n]={type:"prepared",menu:e},o)))},c=function(i,u,a,c){o.set(St.some(i)),n.set(a),t.set(u),r.set(c);var s=uS(c,a);e.set(s)},s=function(t){return be(n.get(),function(n){return n===t})},f=function(n,t,e){return p(n).bind(function(o){return s(n).bind(function(n){return t(n).map(function(n){return{triggeredMenu:o,triggeringItem:n,triggeringPath:e}})})})},l=function(n,t){var r=Kt(v(n).toArray(),function(n){return p(n).isSome()});return xe(e.get(),n).bind(function(n){var e=oe(r.concat(n)),i=te(e,function(n,r){return f(n,t,e.slice(0,r+1)).fold(function(){return o.get().is(n)?[]:[St.none()]},function(n){return[St.some(n)]})});return Gv(i)})},d=function(t){return xe(n.get(),t).map(function(n){var o=xe(e.get(),t).getOr([]);return[n].concat(o)})},m=function(n){return xe(e.get(),n).bind(function(n){return n.length>1?St.some(n.slice(1)):St.none()})},g=function(n){return xe(e.get(),n)},p=function(n){return h(n).bind(cS)},h=function(n){return xe(t.get(),n)},v=function(t){return xe(n.get(),t)},b=function(n){var t=r.get();return re(de(t),n)},y=function(){return o.get().bind(p)},x=function(){return t.get()};return{setMenuBuilt:a,setContents:c,expand:d,refresh:g,collapse:m,lookupMenu:h,lookupItem:v,otherMenus:b,getPrimary:y,getMenus:x,clear:i,isClear:u,getTriggeringPath:l}},cS=function(n){return"prepared"===n.type?St.some(n.menu):St.none()},sS={init:aS,extractPreparedMenu:cS},fS=function(n){var t,e=zr(St.none()),o=function(t,e,o){return pe(o,function(o,r){var i=function(){return oS.sketch(vt(vt({dom:o.dom},o),{value:r,items:o.items,markers:n.markers,fakeFocus:n.fakeFocus,onHighlight:n.onHighlight,focusManager:n.fakeFocus?Lb():zb()}))};return r===e?{type:"prepared",menu:t.getSystem().build(i())}:{type:"notbuilt",nbMenu:i}})},r=sS.init(),i=function(t){var e=o(t,n.data.primary,n.data.menus),i=c();return r.setContents(n.data.primary,e,n.data.expansions,i),r.getPrimary()},u=function(n){return Ah.getValue(n).value},a=function(n,t,e){return le(t,function(n){if(!n.getSystem().isConnected())return St.none();var t=bb.getCandidates(n);return Qt(t,function(n){return u(n)===e})})},c=function(){return pe(n.data.menus,function(n){return te(n.items,function(n){return"separator"===n.type?[]:[n.data.value]})})},s=function(n,t){bb.highlight(n,t),bb.getHighlighted(t).orThunk(function(){return bb.getFirst(t)}).each(function(t){ia(n,t.element(),Vu())})},f=function(n,t){return Wv(Gt(t,function(t){return n.lookupMenu(t).bind(function(n){return"prepared"===n.type?St.some(n.menu):St.none()})}))},l=function(t,e,o){var r=f(e,e.otherMenus(o));Xt(r,function(e){_s(e.element(),[n.markers.backgroundMenu]),n.stayInDom||ew.remove(t,e)})},d=function(t){return e.get().getOrThunk(function(){var o={},r=bg(t.element(),"."+n.markers.item),i=Kt(r,function(n){return"true"===fc(n,"aria-haspopup")});return Xt(i,function(n){t.getSystem().getByDom(n).each(function(n){var t=u(n);o[t]=n})}),e.set(St.some(o)),o})},m=function(n,t){var e=d(n);ge(e,function(n,e){var o=Lt(t,e);cc(n.element(),"aria-expanded",o)})},g=function(t,e,o){return St.from(o[0]).bind(function(r){return e.lookupMenu(r).bind(function(r){if("notbuilt"===r.type)return St.none();var i=r.menu,u=f(e,o.slice(1));return Xt(u,function(t){ws(t.element(),n.markers.backgroundMenu)}),Es(i.element())||ew.append(t,rf(i)),_s(i.element(),[n.markers.backgroundMenu]),s(t,i),l(t,e,o),St.some(i)})})};!function(n){n[n.HighlightSubmenu=0]="HighlightSubmenu",n[n.HighlightParent=1]="HighlightParent"}(t||(t={}));var p=function(n,t,e){if("notbuilt"===e.type){var o=n.getSystem().build(e.nbMenu());return r.setMenuBuilt(t,o),o}return e.menu},h=function(e,o,i){void 0===i&&(i=t.HighlightSubmenu);var a=u(o);return r.expand(a).bind(function(u){return m(e,u),St.from(u[0]).bind(function(a){return r.lookupMenu(a).bind(function(c){var s=p(e,a,c);return Es(s.element())||ew.append(e,rf(s)),n.onOpenSubmenu(e,o,s,oe(u)),i===t.HighlightSubmenu?(bb.highlightFirst(s),g(e,r,u)):(bb.dehighlightAll(s),St.some(o))})})})},v=function(t,e){var o=u(e);return r.collapse(o).bind(function(o){return m(t,o),g(t,r,o).map(function(o){return n.onCollapseMenu(t,e,o),o})})},b=function(n,t){var e=u(t);return r.refresh(e).bind(function(t){return m(n,t),g(n,r,t)})},y=function(n,e){return qv(e.element())?St.none():h(n,e,t.HighlightSubmenu)},x=function(n,t){return qv(t.element())?St.none():v(n,t)},w=function(t,e){return v(t,e).orThunk(function(){return n.onEscape(t,e).map(function(){return t})})},S=function(t){return function(e,o){return $f(o.getSource(),"."+n.markers.item).bind(function(n){return e.getSystem().getByDom(n).toOption().bind(function(n){return t(e,n).map(function(){return!0})})})}},C=ca([da(tS(),function(n,t){var e=t.event().item();r.lookupItem(u(e)).each(function(){var e=t.event().menu();bb.highlight(n,e);var o=u(t.event().item());r.refresh(o).each(function(t){return l(n,r,t)})})}),Oa(function(e,o){var r=o.event().target();e.getSystem().getByDom(r).each(function(o){var r=u(o);0===r.indexOf("collapse-item")&&v(e,o),h(e,o,t.HighlightSubmenu).fold(function(){n.onExecute(e,o)},function(){})})}),Sa(function(t){i(t).each(function(e){ew.append(t,rf(e)),n.onOpenMenu(t,e),n.highlightImmediately&&s(t,e)})})].concat(n.navigateOnHover?[da(Pw(),function(e,o){var r=o.event().item();b(e,r),h(e,r,t.HighlightParent),n.onHover(e,r)})]:[])),k=function(n){return bb.getHighlighted(n).bind(bb.getHighlighted)},O=function(n){k(n).each(function(t){v(n,t)})},_=function(n){r.getPrimary().each(function(t){s(n,t)})},T=function(n){return St.from(n.components()[0]).filter(function(n){return"menu"===fc(n.element(),"role")})},E=function(t){var e=r.getPrimary().bind(function(n){return k(t).bind(function(n){var e=u(n),o=ye(r.getMenus()),i=Wv(Gt(o,sS.extractPreparedMenu));return r.getTriggeringPath(e,function(n){return a(t,i,n)})}).map(function(t){return{primary:n,triggeringPath:t}
})});e.fold(function(){T(t).each(function(e){n.onRepositionMenu(t,e,[])})},function(e){var o=e.primary,r=e.triggeringPath;n.onRepositionMenu(t,o,r)})},B={collapseMenu:O,highlightPrimary:_,repositionMenus:E};return{uid:n.uid,dom:n.dom,markers:n.markers,behaviours:Ih(n.tmenuBehaviours,[Xx.config({mode:"special",onRight:S(y),onLeft:S(x),onEscape:S(w),focusIn:function(n){r.getPrimary().each(function(t){ia(n,t.element(),Vu())})}}),bb.config({highlightClass:n.markers.selectedMenu,itemClass:n.markers.menu}),Qv.config({find:function(n){return bb.getHighlighted(n)}}),ew.config({})]),eventOrder:n.eventOrder,apis:B,events:C}},lS=ft("collapse-item"),dS=function(n,t,e){return{primary:n,menus:t,expansions:e}},mS=function(n,t){return{primary:n,menus:eo(n,t),expansions:{}}},gS=function(n){return{value:Sc(lS()),meta:{text:n}}},pS=jv({name:"TieredMenu",configFields:[Cl("onExecute"),Cl("onEscape"),Sl("onOpenMenu"),Sl("onOpenSubmenu"),xl("onRepositionMenu"),xl("onCollapseMenu"),Br("highlightImmediately",!0),br("data",[fr("primary"),fr("menus"),fr("expansions")]),Br("fakeFocus",!1),xl("onHighlight"),xl("onHover"),vl(),fr("dom"),Br("navigateOnHover",!0),Br("stayInDom",!1),Mh("tmenuBehaviours",[Xx,bb,Qv,ew]),Br("eventOrder",{})],apis:{collapseMenu:function(n,t){n.collapseMenu(t)},highlightPrimary:function(n,t){n.highlightPrimary(t)},repositionMenus:function(n,t){n.repositionMenus(t)}},factory:fS,extraApis:{tieredData:dS,singleData:mS,collapseItem:gS}}),hS=function(n,t,e,o,r){var i=function(){return n.lazySink(t)},u="horizontal"===o.type?{layouts:{onLtr:function(){return sd()},onRtl:function(){return fd()}}}:{},a=function(n){return 2===n.length},c=function(n){return a(n)?u:{}};return pS.sketch({dom:{tag:"div"},data:o.data,markers:o.menu.markers,highlightImmediately:o.menu.highlightImmediately,onEscape:function(){return Kp.close(t),n.onEscape.map(function(n){return n(t)}),St.some(!0)},onExecute:function(){return St.some(!0)},onOpenMenu:function(n,t){pp.positionWithinBounds(i().getOrDie(),e,t,r())},onOpenSubmenu:function(n,t,e,o){var r=i().getOrDie();pp.position(r,vt({anchor:"submenu",item:t},c(o)),e)},onRepositionMenu:function(n,t,o){var u=i().getOrDie();pp.positionWithinBounds(u,e,t,r()),Xt(o,function(n){var t=c(n.triggeringPath);pp.position(u,vt({anchor:"submenu",item:n.triggeringItem},t),n.triggeredMenu)})}})},vS=function(n,t){var e=function(t,e){var o=n.getRelated(t);return o.exists(function(n){return tl(n,e)})},o=function(n,t){Kp.setContent(n,t)},r=function(n,t,e){i(n,t,e,St.none())},i=function(n,t,e,o){u(n,t,e,function(){return o.map(function(n){return jf(n)})})},u=function(t,e,o,r){var i=n.lazySink(t).getOrDie();Kp.openWhileCloaked(t,o,function(){return pp.positionWithinBounds(i,e,t,r())}),Ah.setValue(t,St.some({mode:"position",anchor:e,getBounds:r}))},a=function(n,t,e){c(n,t,e,function(){return St.none()})},c=function(t,e,o,r){var i=hS(n,t,e,o,r);Kp.open(t,i),Ah.setValue(t,St.some({mode:"menu",menu:i}))},s=function(n){Kp.isOpen(n)&&(Ah.setValue(n,St.none()),Kp.close(n))},f=function(n){return Kp.getState(n)},l=function(t){Kp.isOpen(t)&&Ah.getValue(t).each(function(e){switch(e.mode){case"menu":Kp.getState(t).each(function(n){pS.repositionMenus(n)});break;case"position":var o=n.lazySink(t).getOrDie();pp.positionWithinBounds(o,e.anchor,t,e.getBounds())}})},d={setContent:o,showAt:r,showWithin:i,showWithinBounds:u,showMenuAt:a,showMenuWithinBounds:c,hide:s,getContent:f,reposition:l,isOpen:Kp.isOpen};return{uid:n.uid,dom:n.dom,behaviours:Ih(n.inlineBehaviours,[Kp.config({isPartOf:function(n,t,o){return tl(t,o)||e(n,o)},getAttachPoint:function(t){return n.lazySink(t).getOrDie()},onOpen:function(t){n.onShow(t)},onClose:function(t){n.onHide(t)}}),Ah.config({store:{mode:"memory",initialValue:St.none()}}),Ed.config({channels:vt(vt({},nh(vt({isExtraPart:t.isExtraPart},n.fireDismissalEventInstead.map(function(n){return{fireEventInstead:{event:n.event}}}).getOr({})))),eh(vt(vt({},n.fireRepositionEventInstead.map(function(n){return{fireEventInstead:{event:n.event}}}).getOr({})),{doReposition:l})))})]),eventOrder:n.eventOrder,apis:d}},bS=jv({name:"InlineView",configFields:[fr("lazySink"),xl("onShow"),xl("onHide"),Or("onEscape"),Mh("inlineBehaviours",[Kp,Ah,Ed]),Tr("fireDismissalEventInstead",[Br("event",qu())]),Tr("fireRepositionEventInstead",[Br("event",Ku())]),Br("getRelated",St.none),Br("isExtraPart",gt),Br("eventOrder",St.none)],factory:vS,apis:{showAt:function(n,t,e,o){n.showAt(t,e,o)},showWithin:function(n,t,e,o,r){n.showWithin(t,e,o,r)},showWithinBounds:function(n,t,e,o,r){n.showWithinBounds(t,e,o,r)},showMenuAt:function(n,t,e,o){n.showMenuAt(t,e,o)},showMenuWithinBounds:function(n,t,e,o,r){n.showMenuWithinBounds(t,e,o,r)},hide:function(n,t){n.hide(t)},isOpen:function(n,t){return n.isOpen(t)},getContent:function(n,t){return n.getContent(t)},setContent:function(n,t,e){n.setContent(t,e)},reposition:function(n,t){n.reposition(t)}}}),yS=function(n){return n.x()},xS=function(n,t){return n.x()+n.width()/2-t.width()/2},wS=function(n,t){return n.x()+n.width()-t.width()},SS=function(n){return n.y()},CS=function(n,t){return n.y()+n.height()-t.height()},kS=function(n,t,e){return Tl(wS(n,t),CS(n,t),e.innerSoutheast(),Rl(),Ll(n,{right:0,bottom:3}),"layout-inner-se")},OS=function(n,t,e){return Tl(yS(n),CS(n,t),e.innerSouthwest(),Il(),Ll(n,{left:1,bottom:3}),"layout-inner-sw")},_S=function(n,t,e){return Tl(wS(n,t),SS(n),e.innerNortheast(),Fl(),Ll(n,{right:0,top:2}),"layout-inner-ne")},TS=function(n,t,e){return Tl(yS(n),SS(n),e.innerNorthwest(),Ml(),Ll(n,{left:1,top:2}),"layout-inner-nw")},ES=function(n,t,e){return Tl(xS(n,t),SS(n),e.innerNorth(),Vl(),Ll(n,{top:2}),"layout-inner-n")},BS=function(n,t,e){return Tl(xS(n,t),CS(n,t),e.innerSouth(),Hl(),Ll(n,{bottom:3}),"layout-inner-s")},DS=tinymce.util.Tools.resolve("tinymce.util.Delay"),AS=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),MS=tinymce.util.Tools.resolve("tinymce.EditorManager"),FS=function(n){var t=n.settings,e=t.skin,o=t.skin_url;if(e!==!1){var r=e?e:"oxide";o=o?n.documentBaseURI.toAbsolute(o):MS.baseURL+"/skins/ui/"+r}return o},IS=function(n){return n.getParam("readonly",!1,"boolean")},RS=function(n){return n.getParam("skin")===!1},VS=function(n){return n.getParam("height",Math.max(n.getElement().offsetHeight,200))},HS=function(n){return n.getParam("width",AS.DOM.getStyle(n.getElement(),"width"))},NS=function(n){return St.from(n.settings.min_width).filter(It)},PS=function(n){return St.from(n.settings.min_height).filter(It)},zS=function(n){return St.from(n.getParam("max_width")).filter(It)},LS=function(n){return St.from(n.getParam("max_height")).filter(It)},jS=function(n){return St.from(n.getParam("style_formats")).filter(At)},US=function(n){return n.getParam("style_formats_merge",!1,"boolean")},WS=function(n){return n.getParam("removed_menuitems","")},GS=function(n){return n.getParam("menubar",!0,"boolean")!==!1},XS=function(n){var t=n.getParam("toolbar",!0),e=t===!0,o=Bt(t),r=At(t)&&t.length>0;return!qS(n)&&(r||o||e)},YS=function(n){var t=de(n.settings),e=Kt(t,function(n){return/^toolbar([1-9])$/.test(n)}),o=Gt(e,function(t){return n.getParam(t,!1,"string")}),r=Kt(o,function(n){return"string"==typeof n});return r.length>0?St.some(r):St.none()},qS=function(n){return YS(n).fold(function(){var t=n.getParam("toolbar",[],"string[]");return t.length>0},function(){return!0})};!function(n){n["default"]="wrap",n.floating="floating",n.sliding="sliding",n.scrolling="scrolling"}(jb||(jb={}));var KS,JS=function(n){return n.getParam("toolbar_mode","","string")};!function(n){n.top="top",n.bottom="bottom"}(KS||(KS={}));var $S,QS=function(n){return n.getParam("toolbar_groups",{},"object")},ZS=function(n){return n.getParam("toolbar_location",KS.top,"string")!==KS.bottom},nC=function(n){return n.getParam("fixed_toolbar_container","","string")},tC=function(n){var t=nC(n);return t.length>0&&n.inline?Jf(Bs(),t):St.none()},eC=function(n){return n.inline&&tC(n).isSome()},oC=function(n){var t=tC(n);return t.getOr(Bs())},rC=function(n){return n.inline&&!GS(n)&&!XS(n)&&!qS(n)},iC=function(n){var t=n.getParam("toolbar_sticky",!1,"boolean");return(t||n.inline)&&!eC(n)&&!rC(n)},uC=function(n){return n.getParam("draggable_modal",!1,"boolean")},aC=function(n){var t=Iw(n.action),e=n.dom.tag,o=function(t){return xe(n.dom,"attributes").bind(function(n){return xe(n,t)})},r=function(){if("button"===e){var n=o("type").getOr("button"),t=o("role").map(function(n){return{role:n}}).getOr({});return vt({type:n},t)}var r=o("role").getOr("button");return{role:r}};return{uid:n.uid,dom:n.dom,components:n.components,events:t,behaviours:Rh.augment(n.buttonBehaviours,[mw.config({}),Xx.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:r()},eventOrder:n.eventOrder}},cC=jv({name:"Button",factory:aC,configFields:[Br("uid",void 0),fr("dom"),Br("components",[]),Rh.field("buttonBehaviours",[mw,Xx]),wr("action"),wr("role"),Br("eventOrder",{})]}),sC=function(n){var t=a(n)&&Se(n,"uid")?n.uid:Dc("memento"),e=function(n){return n.getSystem().getByUid(t).getOrDie()},o=function(n){return n.getSystem().getByUid(t).toOption()},r=function(){return vt(vt({},n),{uid:t})};return{get:e,getOpt:o,asSpec:r}},fC=function(n){return St.from(n()["temporary-placeholder"]).getOr("!not found!")},lC=function(n,t){return St.from(t()[n]).getOrThunk(function(){return fC(t)})},dC=function(n,t,e){return St.from(t()[n]).or(e).getOrThunk(function(){return fC(t)})},mC=function(n,t){return le(n,function(n){return St.from(t()[n])}).getOrThunk(function(){return fC(t)})},gC={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},pC=function(n){var t=sC({dom:{tag:"p",innerHtml:n.translationProvider(n.text)},behaviours:bd([ew.config({})])}),e=function(n){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+n+"%"}}}},o=function(n){return{dom:{tag:"div",classes:["tox-text"],innerHtml:n+"%"}}},r=sC({dom:{tag:"div",classes:n.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[e(0)]},o(0)],behaviours:bd([ew.config({})])}),i=function(n,t){n.getSystem().isConnected()&&r.getOpt(n).each(function(n){ew.set(n,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[e(t)]},o(t)])})},u=function(n,e){if(n.getSystem().isConnected()){var o=t.get(n);ew.set(o,[nf(e)])}},a={updateProgress:i,updateText:u},c=ne([n.icon.toArray(),n.level.toArray(),n.level.bind(function(n){return St.from(gC[n])}).toArray()]);return{uid:n.uid,dom:{tag:"div",attributes:{role:"alert"},classes:n.level.map(function(n){return["tox-notification","tox-notification--in","tox-notification--"+n]}).getOr(["tox-notification","tox-notification--in"])},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:mC(c,n.iconProvider)}},{dom:{tag:"div",classes:["tox-notification__body"]},components:[t.asSpec()],behaviours:bd([ew.config({})])}].concat(n.progress?[r.asSpec()]:[]).concat(n.closeButton?[cC.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:lC("close",n.iconProvider),attributes:{"aria-label":n.translationProvider("Close")}}}],action:function(t){n.onAction(t)}})]:[]),apis:a}},hC=jv({name:"Notification",factory:pC,configFields:[wr("level"),fr("progress"),fr("icon"),fr("onAction"),fr("text"),fr("iconProvider"),fr("translationProvider"),Ir("closeButton",!0)],apis:{updateProgress:function(n,t,e){n.updateProgress(t,e)},updateText:function(n,t,e){n.updateText(t,e)}}}),vC=function(t,e){var o=null,r=function(){null!==o&&(n.clearTimeout(o),o=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];null===o&&(o=n.setTimeout(function(){t.apply(null,r),o=null},e))};return{cancel:r,throttle:i}},bC=function(t,e){var o=null,r=function(){null!==o&&(n.clearTimeout(o),o=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];null!==o&&n.clearTimeout(o),o=n.setTimeout(function(){t.apply(null,r),o=null},e)};return{cancel:r,throttle:i}},yC=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),xC=function(n,t){return n.isBlock(t)||Lt(["BR","IMG","HR","INPUT"],t.nodeName)||"false"===n.getContentEditable(t)},wC=function(n,t,e,o,r){var i=yC(n,function(t){return xC(n,t)});return St.from(i.backwards(t,e,o,r))},SC="[data-mce-autocompleter]",CC=function(n,t){return kC(Xr.fromDom(n.selection.getNode())).getOrThunk(function(){var e=Xr.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',n.getDoc());return Xa(e,Xr.fromDom(t.extractContents())),t.insertNode(e.dom()),Va(e).each(function(n){return n.dom().normalize()}),hg(e).map(function(t){n.selection.setCursorLocation(t.dom(),dg(t))}),e})},kC=function(n){return $f(n,SC)},OC=function(n){return n.collapsed&&3===n.startContainer.nodeType},_C=function(n){return n.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},TC=function(n){return""!==n&&-1!=="  \f\n\r ".indexOf(n)},EC=function(n,t){return n.substring(t.length)},BC=function(n,t,e){var o;for(o=t-1;o>=0;o--){var r=n.charAt(o);if(TC(r))return St.none();if(r===e)break}return St.some(o)},DC=function(n,t,e,o){if(void 0===o&&(o=0),!OC(t))return St.none();var r=function(n,t,o){return BC(o,t,e).getOr(t)},i=n.getParent(t.startContainer,n.isBlock)||n.getRoot();return wC(n,t.startContainer,t.startOffset,r,i).bind(function(n){var r=t.cloneRange();if(r.setStart(n.container,n.offset),r.setEnd(t.endContainer,t.endOffset),r.collapsed)return St.none();var i=_C(r),u=i.lastIndexOf(e);return 0!==u||EC(i,e).length<o?St.none():St.some({text:EC(i,e),range:r,triggerChar:e})})},AC=function(n,t,e,o){return void 0===o&&(o=0),kC(Xr.fromDom(t.startContainer)).fold(function(){return DC(n,t,e,o)},function(t){var o=n.createRng();o.selectNode(t.dom());var r=_C(o);return St.some({range:o,text:EC(r,e),triggerChar:e})})},MC=function(n,t){t.on("keypress compositionend",n.onKeypress.throttle),t.on("remove",n.onKeypress.cancel);var e=function(n,t){oa(n,Cu(),{raw:t})};t.on("keydown",function(t){var o=function(){return n.getView().bind(bb.getHighlighted)};8===t.which&&n.onKeypress.throttle(t),n.isActive()&&(27===t.which&&n.cancelIfNecessary(),n.isMenuOpen()?13===t.which?(o().each(ra),t.preventDefault()):40===t.which?(o().fold(function(){n.getView().each(bb.highlightFirst)},function(n){e(n,t)}),t.preventDefault(),t.stopImmediatePropagation()):(37===t.which||38===t.which||39===t.which)&&o().each(function(n){e(n,t),t.preventDefault(),t.stopImmediatePropagation()}):(13===t.which||38===t.which||40===t.which)&&n.cancelIfNecessary())}),t.on("NodeChange",function(t){n.isActive()&&!n.isProcessingAction()&&kC(Xr.fromDom(t.element)).isNone()&&n.cancelIfNecessary()})},FC={setup:MC},IC=tinymce.util.Tools.resolve("tinymce.util.Promise"),RC=function(n,t){return{container:n,offset:t}},VC=function(t){return t.nodeType===n.Node.TEXT_NODE},HC=function(t){return t.nodeType===n.Node.ELEMENT_NODE},NC=function(n){if(VC(n))return RC(n,n.data.length);var t=n.childNodes;return t.length>0?NC(t[t.length-1]):RC(n,t.length)},PC=function(n,t){var e=n.childNodes;return e.length>0&&t<e.length?PC(e[t],0):e.length>0&&HC(n)&&e.length===t?NC(e[e.length-1]):RC(n,t)},zC=function(n,t){return wC(n,t.container,t.offset,function(n,t){return 0===t?-1:t},n.getRoot()).filter(function(n){var t=n.container.data.charAt(n.offset-1);return!TC(t)}).isSome()},LC=function(n){return function(t){var e=PC(t.startContainer,t.startOffset);return!zC(n,e)}},jC=function(n,t,e){return le(e.triggerChars,function(e){return AC(n,t,e)})},UC=function(n,t){var e=t(),o=n.selection.getRng();return jC(n.dom,o,e).bind(function(e){return WC(n,t,e)})},WC=function(n,t,e,o){void 0===o&&(o={});var r=t(),i=n.selection.getRng(),u=i.startContainer.nodeValue,a=Kt(r.lookupByChar(e.triggerChar),function(t){return e.text.length>=t.minChars&&t.matches.getOrThunk(function(){return LC(n.dom)})(e.range,u,e.text)});if(0===a.length)return St.none();var c=IC.all(Gt(a,function(n){var t=n.fetch(e.text,n.maxResults,o);return t.then(function(t){return{matchText:e.text,items:t,columns:n.columns,onAction:n.onAction}})}));return St.some({lookupData:c,context:e})},GC=Mo([mr("type"),kr("text")]),XC=function(n){return Ko("separatormenuitem",GC,n)},YC=Mo([Pr("type",function(){return"autocompleteitem"}),Pr("active",function(){return!1}),Pr("disabled",function(){return!1}),Br("meta",{}),mr("value"),kr("text"),kr("icon")]),qC=Mo([mr("type"),mr("ch"),Ar("minChars",1),Br("columns",1),Ar("maxResults",10),Or("matches"),hr("fetch"),hr("onAction")]),KC=function(n){return Ko("Autocompleter.Separator",GC,n)},JC=function(n){return Ko("Autocompleter.Item",YC,n)},$C=function(n){return Ko("Autocompleter",qC,n)},QC=function(n){var t={};return Xt(n,function(n){t[n]={}}),de(t)},ZC=function(n){var t=n.ui.registry.getAll().popups,e=pe(t,function(n){return $C(n).fold(function(n){throw new Error(Qo(n))},function(n){return n})}),o=QC(ve(e,function(n){return n.ch})),r=ye(e),i=function(n){return Kt(r,function(t){return t.ch===n})};return{dataset:e,triggerChars:o,lookupByChar:i}},nk=[Ir("disabled",!1),kr("text"),kr("shortcut"),Po("value","value",Ke(function(){return Sc("menuitem-value")}),tr()),Br("meta",{})],tk=Mo([mr("type"),Rr("onSetup",function(){return at}),Rr("onAction",at),kr("icon")].concat(nk)),ek=function(n){return Ko("menuitem",tk,n)},ok=Mo([mr("type"),hr("getSubmenuItems"),Rr("onSetup",function(){return at}),kr("icon")].concat(nk)),rk=function(n){return Ko("nestedmenuitem",ok,n)},ik=Mo([mr("type"),Ir("active",!1),Rr("onSetup",function(){return at}),hr("onAction")].concat(nk)),uk=function(n){return Ko("togglemenuitem",ik,n)},ak=Mo([mr("type"),Ir("active",!1),kr("icon")].concat(nk)),ck=function(n){return Ko("choicemenuitem",ak,n)},sk=["inserttable","colorswatch"],fk=Mo([mr("type"),gr("fancytype",sk),Rr("onAction",at)]),lk=function(n){return Ko("fancymenuitem",fk,n)},dk=function(n,t,e){var o=bg(n.element(),"."+e);if(o.length>0){var r=Zt(o,function(n){var e=n.dom().getBoundingClientRect().top,r=o[0].dom().getBoundingClientRect().top;return Math.abs(e-r)>t}).getOr(o.length);return St.some({numColumns:r,numRows:Math.ceil(o.length/r)})}return St.none()},mk=function(n,t){return bd([rw(n,t)])},gk=function(n){return mk(Sc("unnamed-events"),n)},pk={namedEvents:mk,unnamedEvents:gk},hk=[fr("lazySink"),fr("tooltipDom"),Br("exclusive",!0),Br("tooltipComponents",[]),Br("delay",300),Fr("mode","normal",["normal","follow-highlight"]),Br("anchor",function(n){return{anchor:"hotspot",hotspot:n,layouts:{onLtr:ft([ed,td,$l,Zl,Ql,nd]),onRtl:ft([ed,td,$l,Zl,Ql,nd])}}}),xl("onHide"),xl("onShow")],vk=function(){var t=zr(St.none()),e=zr(St.none()),o=function(){return e.get()},r=function(n){e.set(St.some(n))},i=function(){e.set(St.none())},u=function(){t.get().each(function(t){n.clearTimeout(t)})},a=function(e,o){u(),t.set(St.some(n.setTimeout(function(){e()},o)))},c=function(){return e.get().isSome()},s=ft("not-implemented");return Uc({getTooltip:o,isShowing:c,setTooltip:r,clearTooltip:i,clearTimer:u,resetTimer:a,readState:s})},bk=Object.freeze({__proto__:null,init:vk}),yk=Sc("tooltip.exclusive"),xk=Sc("tooltip.show"),wk=Sc("tooltip.hide"),Sk=function(n){n.getSystem().broadcastOn([yk],{})},Ck=function(n,t,e,o){e.getTooltip().each(function(n){n.getSystem().isConnected()&&ew.set(n,o)})},kk=Object.freeze({__proto__:null,hideAllExclusive:Sk,setComponents:Ck}),Ok=function(n,t){var e=function(e){t.getTooltip().each(function(o){kp(o),n.onHide(e,o),t.clearTooltip()}),t.clearTimer()},o=function(e){if(!t.isShowing()){Sk(e);var o=n.lazySink(e).getOrDie(),r=e.getSystem().build({dom:n.tooltipDom,components:n.tooltipComponents,events:ca("normal"===n.mode?[da(xu(),function(){ea(e,xk)}),da(bu(),function(){ea(e,wk)})]:[]),behaviours:bd([ew.config({})])});t.setTooltip(r),wp(o,r),n.onShow(e,r),pp.position(o,n.anchor(e),r)}};return ca(ne([[da(xk,function(e){t.resetTimer(function(){o(e)},n.delay)}),da(wk,function(o){t.resetTimer(function(){e(o)},n.delay)}),da(Iu(),function(n,t){var o=t;Lt(o.channels(),yk)&&e(n)}),Ca(function(n){e(n)})],"normal"===n.mode?[da(wu(),function(n){ea(n,xk)}),da(Mu(),function(n){ea(n,wk)}),da(xu(),function(n){ea(n,xk)}),da(bu(),function(n){ea(n,wk)})]:[da(na(),function(n){ea(n,xk)}),da(ta(),function(n){ea(n,wk)})]]))},_k=Object.freeze({__proto__:null,events:Ok}),Tk=xd({fields:hk,name:"tooltipping",active:_k,state:bk,apis:kk}),Ek=tinymce.util.Tools.resolve("tinymce.util.I18n"),Bk="tox-menu-nav__js",Dk="tox-collection__item",Ak="tox-swatch",Mk={normal:Bk,color:Ak},Fk="tox-collection__item--enabled",Ik="tox-collection__group-heading",Rk="tox-collection__item-icon",Vk="tox-collection__item-label",Hk="tox-collection__item-accessory",Nk="tox-collection__item-caret",Pk="tox-collection__item-checkmark",zk="tox-collection__item--active",Lk="tox-collection__item-icon-rtl",jk=function(n){return xe(Mk,n).getOr(Bk)},Uk=tinymce.util.Tools.resolve("tinymce.Env"),Wk=function(n){var t={alt:"&#x2325;",ctrl:"&#x2303;",shift:"&#x21E7;",meta:"&#x2318;",access:"&#x2303;&#x2325;"},e={meta:"Ctrl",access:"Shift+Alt"},o=Uk.mac?t:e,r=n.split("+"),i=Gt(r,function(n){var t=n.toLowerCase().trim();return we(o,t)?o[t]:n});return i.join(Uk.mac?"":"+")},Gk={convertText:Wk},Xk=function(n){return{dom:{tag:"div",classes:[Rk],innerHtml:n}}},Yk=function(n){return{dom:{tag:"div",classes:[Vk]},components:[nf(Ek.translate(n))]}},qk=function(n){return{dom:{tag:"div",classes:[Vk],innerHtml:n}}},Kk=function(n,t){return{dom:{tag:"div",classes:[Vk]},components:[{dom:{tag:n.tag,styles:n.styles},components:[nf(Ek.translate(t))]}]}},Jk=function(n){return{dom:{tag:"div",classes:[Hk],innerHtml:Gk.convertText(n)}}},$k=function(n){return{dom:{tag:"div",classes:[Rk,Pk],innerHtml:lC("checkmark",n)}}},Qk=function(n){return{dom:{tag:"div",classes:[Nk],innerHtml:lC("chevron-right",n)}}},Zk=function(n){return{dom:{tag:"div",classes:[Nk],innerHtml:lC("chevron-down",n)}}},nO=function(n,t,e,r){var i="custom",u="remove",a=function(){var a=Ak,c=e.getOr(""),s=n.map(function(n){return{title:r.translate(n)}}).getOr({}),f={tag:"div",attributes:s,classes:[a]};return t===i?vt(vt({},f),{tag:"button",classes:o(f.classes,["tox-swatches__picker-btn"]),innerHtml:c}):t===u?vt(vt({},f),{classes:o(f.classes,["tox-swatch--remove"]),innerHtml:c}):vt(vt({},f),{attributes:vt(vt({},f.attributes),{"data-mce-color":t}),styles:{"background-color":t}})};return{dom:a(),optComponents:[]}},tO=function(n,t,e,o,r){var i=e?n.checkMark.orThunk(function(){return t.or(St.some("")).map(Xk)}):St.none(),u=n.ariaLabel.map(function(n){return{attributes:{title:Ek.translate(n)}}}).getOr({}),a=vt({tag:"div",classes:[Bk,Dk].concat(r?[Lk]:[])},u),c=n.htmlContent.fold(function(){return n.textContent.map(o)},function(n){return St.some(qk(n))}),s={dom:a,optComponents:[i,c,n.shortcutContent.map(Jk),n.caret]};return s},eO=["list-num-default","list-num-lower-alpha","list-num-lower-greek","list-num-lower-roman","list-num-upper-alpha","list-num-upper-roman"],oO=["list-bull-circle","list-bull-default","list-bull-square"],rO=function(n,e,o,r){void 0===r&&(r=St.none());var i=function(n){return n.map(function(n){return Ek.isRtl()&&Lt(eO,n)?n+"-rtl":n})},u=Ek.isRtl()&&n.iconContent.exists(function(n){return Lt(oO,n)}),a=i(n.iconContent).map(function(n){return dC(n,e.icons,r)}),c=St.from(n.meta).fold(function(){return Yk},function(n){return we(n,"style")?t(Kk,n.style):Yk});return"color"===n.presets?nO(n.ariaLabel,n.value,a,e):tO(n,a,o,c,u)},iO=["input","button","textarea","select"],uO=function(n,t){t.disabled&&gO(n,t)},aO=function(n,t){return t.useNative===!0&&Lt(iO,ec(n.element()))},cO=function(n){return dc(n.element(),"disabled")},sO=function(n){cc(n.element(),"disabled","disabled")},fO=function(n){mc(n.element(),"disabled")},lO=function(n){return"true"===fc(n.element(),"aria-disabled")},dO=function(n){cc(n.element(),"aria-disabled","true")},mO=function(n){cc(n.element(),"aria-disabled","false")},gO=function(n,t){t.disableClass.each(function(t){ws(n.element(),t)});var e=aO(n,t)?sO:dO;e(n),t.onDisabled(n)},pO=function(n,t){t.disableClass.each(function(t){Cs(n.element(),t)});var e=aO(n,t)?fO:mO;e(n),t.onEnabled(n)},hO=function(n,t){return aO(n,t)?cO(n):lO(n)},vO=function(n,t,e,o){var r=o?gO:pO;r(n,t,e)},bO=Object.freeze({__proto__:null,enable:pO,disable:gO,isDisabled:hO,onLoad:uO,set:vO}),yO=function(n,t){return qc({classes:t.disabled?t.disableClass.map(ue).getOr([]):[]})},xO=function(n,t){return ca([sa(Ru(),function(t){return hO(t,n)}),dd(n,t,uO)])},wO=Object.freeze({__proto__:null,exhibit:yO,events:xO}),SO=[Br("disabled",!1),Br("useNative",!0),wr("disableClass"),xl("onDisabled"),xl("onEnabled")],CO=xd({fields:SO,name:"disabling",active:wO,apis:bO}),kO=function(n){return CO.config({disabled:n,disableClass:"tox-collection__item--state-disabled"})},OO=function(n){return CO.config({disabled:n})},_O=function(n){return CO.config({disabled:n,disableClass:"tox-tbtn--disabled"})},TO=function(n){return CO.config({disabled:n,disableClass:"tox-tbtn--disabled",useNative:!1})},EO={item:kO,button:OO,splitButton:_O,toolbarButton:TO},BO=function(n,t){var e=n.getApi(t);return function(n){n(e)}},DO=function(n,t){return Sa(function(e){var o=BO(n,e);o(function(e){var o=n.onSetup(e);null!==o&&void 0!==o&&t.set(o)})})},AO=function(n,t){return Ca(function(e){return BO(n,e)(t.get())})};!function(n){n[n.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",n[n.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"}($S||($S={}));var MO,FO=$S,IO=function(n,t){return Oa(function(e,o){BO(n,e)(n.onAction),n.triggersSubmenu||t!==FO.CLOSE_ON_EXECUTE||(ea(e,Pu()),o.stop())})},RO={"alloy.execute":["disabling","alloy.base.behaviour","toggling","item-events"]},VO=function(n){return te(n,function(n){return n.toArray()})},HO=function(n,t,e){var o=zr(at);return{type:"item",dom:t.dom,components:VO(t.optComponents),data:n.data,eventOrder:RO,hasSubmenu:n.triggersSubmenu,itemBehaviours:bd([rw("item-events",[IO(n,e),DO(n,o),AO(n,o)]),EO.item(n.disabled),ew.config({})].concat(n.itemBehaviours))}},NO=function(n){return{value:n.value,meta:vt({text:n.text.getOr("")},n.meta)}},PO=function(n,t){return xe(n,"tooltipWorker").map(function(n){return[Tk.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(n){return{anchor:"submenu",item:n,overrides:{maxHeightFunction:lm}}},mode:"follow-highlight",onShow:function(t){n(function(n){Tk.setComponents(t,[tf({element:Xr.fromDom(n)})])})}})]}).getOr([])},zO=function(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},LO=function(n){return AS.DOM.encode(n)},jO=function(n,t){var e=Ek.translate(n),o=LO(e);if(t.length>0){var r=new RegExp(zO(t),"gi");return o.replace(r,function(n){return'<span class="tox-autocompleter-highlight">'+n+"</span>"})}return o},UO=function(n,t,e,o,r,i,u,a){void 0===a&&(a=!0);var c=rO({presets:o,textContent:St.none(),htmlContent:e?n.text.map(function(n){return jO(n,t)}):St.none(),ariaLabel:n.text,iconContent:n.icon,shortcutContent:St.none(),checkMark:St.none(),caret:St.none(),value:n.value},u.providers,a,n.icon);return HO({data:NO(n),disabled:n.disabled,getApi:function(){return{}},onAction:function(){return r(n.value,n.meta)},onSetup:function(){return function(){}},triggersSubmenu:!1,itemBehaviours:PO(n.meta,u)},c,i)},WO=function(n,t,e,o,r,i,u){var a=function(n){return{setActive:function(t){Mw.set(n,t)},isActive:function(){return Mw.isOn(n)},isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)}}},c=rO({presets:e,textContent:t?n.text:St.none(),htmlContent:St.none(),ariaLabel:n.text,iconContent:n.icon,shortcutContent:t?n.shortcut:St.none(),checkMark:t?St.some($k(u.icons)):St.none(),caret:St.none(),value:n.value},u,!0);return Be(HO({data:NO(n),disabled:n.disabled,getApi:a,onAction:function(){return o(n.value)},onSetup:function(n){return n.setActive(r),function(){}},triggersSubmenu:!1,itemBehaviours:[]},c,i),{toggling:{toggleClass:Fk,toggleOnExecute:!1,selected:n.active}})},GO=ft(bv(Gw(),Xw())),XO=Sc("cell-over"),YO=Sc("cell-execute"),qO=function(n,t,e){var o,r=function(e){return oa(e,XO,{row:n,col:t})},i=function(e){return oa(e,YO,{row:n,col:t})},u=function(n,t){t.stop(),i(n)};return of({dom:{tag:"div",attributes:(o={role:"button"},o["aria-labelledby"]=e,o)},behaviours:bd([rw("insert-table-picker-cell",[da(xu(),mw.focus),da(Ru(),i),da(Tu(),u),da(Hu(),u)]),Mw.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),mw.config({onFocus:r})])})},KO=function(n,t,e){for(var o=[],r=0;t>r;r++){for(var i=[],u=0;e>u;u++)i.push(qO(r,u,n));o.push(i)}return o},JO=function(n,t,e,o,r){for(var i=0;o>i;i++)for(var u=0;r>u;u++)Mw.set(n[i][u],t>=i&&e>=u)},$O=function(n){return te(n,function(n){return Gt(n,rf)})},QO=function(n,t){return nf(t+1+"x"+(n+1))},ZO=function(n){return{value:ft(n)}},n_=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,t_=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,e_=function(n){return n_.test(n)||t_.test(n)},o_=function(n){var t=n.value().replace(n_,function(n,t,e,o){return t+t+e+e+o+o});return{value:ft(t)}},r_=function(n){var t=o_(n),e=t_.exec(t.value());return null===e?["FFFFFF","FF","FF","FF"]:e},i_=function(n){var t=n.toString(16);return 1===t.length?"0"+t:t},u_=function(n){var t=i_(n.red())+i_(n.green())+i_(n.blue());return ZO(t)},a_=Math.min,c_=Math.max,s_=Math.round,f_=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,l_=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,d_=function(n,t,e,o){return{red:ft(n),green:ft(t),blue:ft(e),alpha:ft(o)}},m_=function(n){var t=parseInt(n,10);return t.toString()===n&&t>=0&&255>=t},g_=function(n){var t,e,o,r=(n.hue()||0)%360,i=n.saturation()/100,u=n.value()/100;if(i=c_(0,a_(i,1)),u=c_(0,a_(u,1)),0===i)return t=e=o=s_(255*u),d_(t,e,o,1);var a=r/60,c=u*i,s=c*(1-Math.abs(a%2-1)),f=u-c;switch(Math.floor(a)){case 0:t=c,e=s,o=0;break;case 1:t=s,e=c,o=0;break;case 2:t=0,e=c,o=s;break;case 3:t=0,e=s,o=c;break;case 4:t=s,e=0,o=c;break;case 5:t=c,e=0,o=s;break;default:t=e=o=0}return t=s_(255*(t+f)),e=s_(255*(e+f)),o=s_(255*(o+f)),d_(t,e,o,1)},p_=function(n){var t=r_(n),e=parseInt(t[1],16),o=parseInt(t[2],16),r=parseInt(t[3],16);return d_(e,o,r,1)},h_=function(n,t,e,o){var r=parseInt(n,10),i=parseInt(t,10),u=parseInt(e,10),a=parseFloat(o);return d_(r,i,u,a)},v_=function(n){if("transparent"===n)return St.some(d_(0,0,0,0));var t=f_.exec(n);if(null!==t)return St.some(h_(t[1],t[2],t[3],"1"));var e=l_.exec(n);return null!==e?St.some(h_(e[1],e[2],e[3],e[4])):St.none()},b_=function(n){return"rgba("+n.red()+","+n.green()+","+n.blue()+","+n.alpha()+")"},y_=ft(d_(255,0,0,1)),x_=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),w_="tinymce-custom-colors",S_="choiceitem",C_=[{type:S_,text:"Light Green",value:"#BFEDD2"},{type:S_,text:"Light Yellow",value:"#FBEEB8"},{type:S_,text:"Light Red",value:"#F8CAC6"},{type:S_,text:"Light Purple",value:"#ECCAFA"},{type:S_,text:"Light Blue",value:"#C2E0F4"},{type:S_,text:"Green",value:"#2DC26B"},{type:S_,text:"Yellow",value:"#F1C40F"},{type:S_,text:"Red",value:"#E03E2D"},{type:S_,text:"Purple",value:"#B96AD9"},{type:S_,text:"Blue",value:"#3598DB"},{type:S_,text:"Dark Turquoise",value:"#169179"},{type:S_,text:"Orange",value:"#E67E23"},{type:S_,text:"Dark Red",value:"#BA372A"},{type:S_,text:"Dark Purple",value:"#843FA1"},{type:S_,text:"Dark Blue",value:"#236FA1"},{type:S_,text:"Light Gray",value:"#ECF0F1"},{type:S_,text:"Medium Gray",value:"#CED4D9"},{type:S_,text:"Gray",value:"#95A5A6"},{type:S_,text:"Dark Gray",value:"#7E8C8D"},{type:S_,text:"Navy Blue",value:"#34495E"},{type:S_,text:"Black",value:"#000000"},{type:S_,text:"White",value:"#ffffff"}],k_=f(10),O_=function(t){var e=[],o=n.document.createElement("canvas");o.height=1,o.width=1;for(var r=o.getContext("2d"),i=function(n,t){var e=255,o=t/255,r=Math.round(n*o+e*(1-o));return("0"+r.toString(16)).slice(-2).toUpperCase()},u=function(n){if(/^[0-9A-Fa-f]{6}$/.test(n))return"#"+n.toUpperCase();r.clearRect(0,0,o.width,o.height),r.fillStyle="#FFFFFF",r.fillStyle=n,r.fillRect(0,0,1,1);var t=r.getImageData(0,0,1,1).data,e=t[0],u=t[1],a=t[2],c=t[3];
return"#"+i(e,c)+i(u,c)+i(a,c)},a=0;a<t.length;a+=2)e.push({text:t[a+1],value:u(t[a]),type:"choiceitem"});return e},__=function(n,t){return n.getParam("color_cols",t,"number")},T_=function(n){return n.getParam("custom_colors")!==!1},E_=function(n){return n.getParam("color_map")},B_=function(n){var t=E_(n);return void 0!==t?O_(t):C_},D_=function(){return Gt(k_.state(),function(n){return{type:S_,text:n,value:n}})},A_=function(n){k_.add(n)},M_={mapColors:O_,getColorCols:__,hasCustomColors:T_,getColorMap:E_,getColors:B_,getCurrentColors:D_,addColor:A_},F_=function(n){return n.fire("SkinLoaded")},I_=function(n,t){return n.fire("SkinLoadError",t)},R_=function(n){return n.fire("ResizeEditor")},V_=function(n){return n.fire("BeforeRenderUI")},H_=function(n,t){return n.fire("ResizeContent",t)},N_=function(n,t){return n.fire("ScrollContent",t)},P_=function(n,t){return n.fire("TextColorChange",t)},z_={fireSkinLoaded:F_,fireSkinLoadError:I_,fireResizeEditor:R_,fireScrollContent:N_,fireBeforeRenderUI:V_,fireResizeContent:H_,fireTextColorChange:P_},L_=function(n,t){var e;return n.dom.getParents(n.selection.getStart(),function(n){var o;(o=n.style["forecolor"===t?"color":"background-color"])&&(e=e?e:o)}),e},j_=function(n,t,e){n.undoManager.transact(function(){n.focus(),n.formatter.apply(t,{value:e}),n.nodeChanged()})},U_=function(n,t){n.undoManager.transact(function(){n.focus(),n.formatter.remove(t,{value:null},null,!0),n.nodeChanged()})},W_=function(n){n.addCommand("mceApplyTextcolor",function(t,e){j_(n,t,e)}),n.addCommand("mceRemoveTextcolor",function(t){U_(n,t)})},G_=function(n){return Math.max(5,Math.ceil(Math.sqrt(n)))},X_=function(n){var t=M_.getColors(n),e=G_(t.length);return M_.getColorCols(n,e)},Y_=function(n){var t="choiceitem",e={type:t,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},o={type:t,text:"Custom color",icon:"color-picker",value:"custom"};return n?[e,o]:[e]},q_=function(n,t,e,o){if("custom"===e){var r=nT(n);r(function(e){e.each(function(e){M_.addColor(e),n.execCommand("mceApplyTextcolor",t,e),o(e)})},"#000000")}else"remove"===e?(o(""),n.execCommand("mceRemoveTextcolor",t)):(o(e),n.execCommand("mceApplyTextcolor",t,e))},K_=function(n,t){return n.concat(M_.getCurrentColors().concat(Y_(t)))},J_=function(n,t){return function(e){e(K_(n,t))}},$_=function(n,t,e){var o=function(t,e){n.setIconFill(t,e),n.setIconStroke(t,e)},r="forecolor"===t?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";o(r,e)},Q_=function(n,t,e,o,r){n.ui.registry.addSplitButton(t,{tooltip:o,presets:"color",icon:"forecolor"===t?"text-color":"highlight-bg-color",select:function(t){var o=St.from(L_(n,e));return o.bind(function(n){return v_(n).map(function(n){var e=u_(n).value();return Ai(t.toLowerCase(),e)})}).getOr(!1)},columns:X_(n),fetch:J_(M_.getColors(n),M_.hasCustomColors(n)),onAction:function(){null!==r.get()&&q_(n,e,r.get(),function(){})},onItemAction:function(o,i){q_(n,e,i,function(e){r.set(e),z_.fireTextColorChange(n,{name:t,color:e})})},onSetup:function(e){null!==r.get()&&$_(e,t,r.get());var o=function(n){n.name===t&&$_(e,n.name,n.color)};return n.on("TextColorChange",o),function(){n.off("TextColorChange",o)}}})},Z_=function(n,t,e,o){n.ui.registry.addNestedMenuItem(t,{text:o,icon:"forecolor"===t?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(t){q_(n,e,t.value,at)}}]}})},nT=function(n){return function(t,e){var o=function(n){return function(t){var e=t.getData();n(St.from(e.colorpicker)),t.close()}},r=function(n,t){"hex-valid"===t.name&&(t.value?n.enable("ok"):n.disable("ok"))},i={colorpicker:e},u=o(t);n.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:i,onAction:r,onSubmit:u,onClose:function(){},onCancel:function(){t(St.none())}})}},tT=function(n){W_(n);var t=zr(null),e=zr(null);Q_(n,"forecolor","forecolor","Text color",t),Q_(n,"backcolor","hilitecolor","Background color",e),Z_(n,"forecolor","forecolor","Text color"),Z_(n,"backcolor","hilitecolor","Background color")},eT={register:tT,getColors:K_,getFetch:J_,colorPickerDialog:nT,getCurrentColor:L_,getColorCols:X_,calcCols:G_},oT=function(n){return"color"===n?"tox-swatches":"tox-menu"},rT=function(n){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:oT(n),tieredMenu:"tox-tiered-menu"}},iT=function(n){var t=rT(n);return{backgroundMenu:t.backgroundMenu,selectedMenu:t.selectedMenu,menu:t.menu,selectedItem:t.selectedItem,item:jk(n)}},uT=function(n,t,e){var o=rT(e);return{tag:"div",classes:ne([[o.menu,"tox-menu-"+t+"-column"],n?[o.hasIcons]:[]])}},aT=[oS.parts().items({})],cT=function(n,t,e){var o=rT(e),r={tag:"div",classes:ne([[o.tieredMenu]])};return{dom:r,markers:iT(e)}},sT=function(n,t){return function(e){var o=Wt(e,t);return Gt(o,function(t){return{dom:n,components:t}})}},fT=function(n){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[oS.parts().items({preprocess:"auto"!==n?sT({tag:"div",classes:["tox-swatches__row"]},n):lt})]}]}},lT=function(n){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[oS.parts().items({preprocess:sT({tag:"div",classes:["tox-collection__group"]},n)})]}},dT=function(n,t){var e=[],o=[];return Xt(n,function(n,r){t(n,r)?(o.length>0&&e.push(o),o=[],we(n.dom,"innerHtml")&&o.push(n)):o.push(n)}),o.length>0&&e.push(o),Gt(e,function(n){return{dom:{tag:"div",classes:["tox-collection__group"]},components:n}})},mT=function(n,t){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===n?["tox-collection--list"]:["tox-collection--grid"])},components:[oS.parts().items({preprocess:function(e){return"auto"!==n&&n>1?sT({tag:"div",classes:["tox-collection__group"]},n)(e):dT(e,function(n,e){return"separator"===t[e].type})}})]}},gT=function(n){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[oS.parts().items({preprocess:function(t){return dT(t,function(t,e){return"separator"===n[e].type})}})]}},pT=function(n){return void 0!==n.icon||"togglemenuitem"===n.type||"choicemenuitem"===n.type},hT=function(n){return jt(n,pT)},vT=function(t){return n.console.error(Qo(t)),n.console.log(t),St.none()},bT=function(n,t,e){var o=gT(e);return{value:n,dom:o.dom,components:o.components,items:e}},yT=function(n,t,e,o,r){if("color"===r){var i=fT(o);return{value:n,dom:i.dom,components:i.components,items:e}}if("normal"===r&&"auto"===o){var i=mT(o,e);return{value:n,dom:i.dom,components:i.components,items:e}}if("normal"===r&&1===o){var i=mT(1,e);return{value:n,dom:i.dom,components:i.components,items:e}}if("normal"===r){var i=mT(o,e);return{value:n,dom:i.dom,components:i.components,items:e}}if("listpreview"===r&&"auto"!==o){var i=lT(o);return{value:n,dom:i.dom,components:i.components,items:e}}return{value:n,dom:uT(t,o,r),components:aT,items:e}},xT=function(n,t,e,o,r,i,u,a){var c=hT(t),s="color"!==r?"normal":"color",f=wT(t,e,o,s,i,u,a);return yT(n,c,f,o,r)},wT=function(n,t,e,o,r,i,u){return Wv(Gt(n,function(n){return"choiceitem"===n.type?ck(n).fold(vT,function(a){return St.some(WO(a,1===e,o,t,i(n.value),r,u))}):St.none()}))},ST=function(n,t){var e=iT(t);if(1===n)return{mode:"menu",moveOnTab:!0};if("auto"===n)return{mode:"grid",selector:"."+e.item,initSize:{numColumns:1,numRows:1}};var o="color"===t?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+o}},CT=function(n,t){return 1===n?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===n?{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?"."+Ak:"."+Dk}}},kT={inserttable:s,colorswatch:l},OT=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)?St.some(n[t]):St.none()},_T=function(n,t){return OT(kT,n.fancytype).map(function(e){return e(n,t)})},TT=function(n,t,e,o){void 0===o&&(o=!0);var r=function(n){return{isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)}}},i=rO({presets:"normal",iconContent:n.icon,textContent:n.text,htmlContent:St.none(),ariaLabel:n.text,caret:St.none(),checkMark:St.none(),shortcutContent:n.shortcut},e,o);return HO({data:NO(n),getApi:r,disabled:n.disabled,onAction:n.onAction,onSetup:n.onSetup,triggersSubmenu:!1,itemBehaviours:[]},i,t)},ET=function(n,t,e,o,r){void 0===o&&(o=!0),void 0===r&&(r=!1);var i=r?Zk(e.icons):Qk(e.icons),u=function(n){return{isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)}}},a=rO({presets:"normal",iconContent:n.icon,textContent:n.text,htmlContent:St.none(),ariaLabel:n.text,caret:St.some(i),checkMark:St.none(),shortcutContent:n.shortcut},e,o);return HO({data:NO(n),getApi:u,disabled:n.disabled,onAction:at,onSetup:n.onSetup,triggersSubmenu:!0,itemBehaviours:[]},a,t)},BT=function(n){var t=n.text.fold(function(){return{}},function(n){return{innerHtml:n}});return{type:"separator",dom:vt({tag:"div",classes:[Dk,Ik]},t),components:[]}},DT=function(n,t,e){var o=function(n){return{setActive:function(t){Mw.set(n,t)},isActive:function(){return Mw.isOn(n)},isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)}}},r=rO({iconContent:St.none(),textContent:n.text,htmlContent:St.none(),ariaLabel:n.text,checkMark:St.some($k(e.icons)),caret:St.none(),shortcutContent:n.shortcut,presets:"normal",meta:n.meta},e,!0);return Be(HO({data:NO(n),disabled:n.disabled,getApi:o,onAction:n.onAction,onSetup:n.onSetup,triggersSubmenu:!1,itemBehaviours:[]},r,t),{toggling:{toggleClass:Fk,toggleOnExecute:!1,selected:n.active}})},AT=UO,MT=BT,FT=TT,IT=ET,RT=DT,VT=_T;!function(n){n[n.ContentFocus=0]="ContentFocus",n[n.UiFocus=1]="UiFocus"}(MO||(MO={}));var HT=function(n){return void 0!==n.icon||"togglemenuitem"===n.type||"choicemenuitem"===n.type},NT=function(n){return jt(n,HT)},PT=function(t,e,o,r,i){var u=o.shared.providers,a=function(n){return i?vt(vt({},n),{shortcut:St.none(),icon:n.text.isSome()?St.none():n.icon}):n};switch(t.type){case"menuitem":return ek(t).fold(vT,function(n){return St.some(FT(a(n),e,u,r))});case"nestedmenuitem":return rk(t).fold(vT,function(n){return St.some(IT(a(n),e,u,r,i))});case"togglemenuitem":return uk(t).fold(vT,function(n){return St.some(RT(a(n),e,u))});case"separator":return XC(t).fold(vT,function(n){return St.some(MT(n))});case"fancymenuitem":return lk(t).fold(vT,function(n){return VT(a(n),o)});default:return n.console.error("Unknown item in general menu",t),St.none()}},zT=function(n,t,e,o,r,i){var u=1===o,a=!u||NT(n);return Wv(Gt(n,function(n){return"separator"===n.type?KC(n).fold(vT,function(n){return St.some(MT(n))}):JC(n).fold(vT,function(n){return St.some(AT(n,t,u,"normal",e,r,i,a))})}))},LT=function(n,t,e,o,r){var i=NT(t),u=Wv(Gt(t,function(n){var t=function(n){return r?!n.hasOwnProperty("text"):i},u=function(n){return PT(n,e,o,t(n),r)};return u("nestedmenuitem"===n.type&&n.getSubmenuItems().length<=0?vt(vt({},n),{disabled:!0}):n)})),a=r?bT:yT;return a(n,i,u,1,"normal")},jT=function(n){return pS.singleData(n.value,n)},UT=function(n,t,e,o){var r=e===MO.ContentFocus?Lb():zb(),i=ST(t,o),u=iT(o);return{dom:n.dom,components:n.components,items:n.items,value:n.value,markers:{selectedItem:u.selectedItem,item:u.item},movement:i,fakeFocus:e===MO.ContentFocus,focusManager:r,menuBehaviours:pk.unnamedEvents("auto"!==t?[]:[Sa(function(n){dk(n,4,u.item).each(function(t){var e=t.numColumns,o=t.numRows;Xx.setGridSize(n,o,e)})})])}},WT=function(t,e){var o=zr(St.none()),r=zr(!1),i=of(bS.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:bd([rw("dismissAutocompleter",[da(qu(),function(){return s()})])]),lazySink:e.getSink})),u=function(){return bS.isOpen(i)},a=function(){return o.get().isSome()},c=function(){a()&&bS.hide(i)},s=function(){if(a()){var n=o.get().map(function(n){return n.element});kC(n.getOr(Xr.fromDom(t.selection.getNode()))).each(Qa),c(),o.set(St.none()),r.set(!1)}},f=Ae(function(){return ZC(t)}),l=function(o,i){var u=le(i,function(n){return St.from(n.columns)}).getOr(1);return te(i,function(i){var a=i.items;return zT(a,i.matchText,function(e,u){var a=t.selection.getRng();AC(t.dom,a,o).fold(function(){return n.console.error("Lost context. Cursor probably moved")},function(n){var t=n.range,o={hide:function(){s()},reload:function(n){c(),p(n)}};r.set(!0),i.onAction(o,t,e,u),r.set(!1)})},u,FO.BUBBLE_TO_SANDBOX,e)})},d=function(n){if(!a()){var e=CC(t,n.range);o.set(St.some({triggerChar:n.triggerChar,element:e,matchLength:n.text.length})),r.set(!1)}},m=function(n,e,o,r){n.matchLength=e.text.length;var u=le(o,function(n){return St.from(n.columns)}).getOr(1);bS.showAt(i,{anchor:"node",root:Xr.fromDom(t.getBody()),node:St.from(n.element)},oS.sketch(UT(yT("autocompleter-value",!0,r,u,"normal"),u,MO.ContentFocus,"normal"))),bS.getContent(i).each(bb.highlightFirst)},g=function(n){return o.get().map(function(e){return AC(t.dom,t.selection.getRng(),e.triggerChar).bind(function(e){return WC(t,f,e,n)})}).getOrThunk(function(){return UC(t,f)})},p=function(n){g(n).fold(s,function(n){d(n.context),n.lookupData.then(function(t){o.get().map(function(e){var o=n.context;if(e.triggerChar===o.triggerChar){var r=l(o.triggerChar,t);r.length>0?m(e,o,t,r):o.text.length-e.matchLength>=10?s():c()}})})})},h=bC(function(n){27!==n.which&&p()},50),v={onKeypress:h,cancelIfNecessary:s,isMenuOpen:u,isActive:a,isProcessingAction:r.get,getView:function(){return bS.getContent(i)}};FC.setup(v,t)},GT={register:WT},XT=ft(!0),YT=function(n,t,e){return Of(n,t,XT,e)},qT=function(n,t,e){return _f(n,t,XT,e)},KT=Sf,JT=function(n,t,e){return $f(n,t,e).isSome()},$T=5,QT=400,ZT=function(n){var t=n.raw();return void 0===t.touches||1!==t.touches.length?St.none():St.some(t.touches[0])},nE=function(n,t){var e=Math.abs(n.clientX-t.x()),o=Math.abs(n.clientY-t.y());return e>$T||o>$T},tE=function(n){var t=zr(St.none()),e=zr(!1),o=d(function(t){n.triggerEvent(Nu(),t),e.set(!0)},QT),r=function(n){return ZT(n).each(function(r){o.cancel();var i={x:ft(r.clientX),y:ft(r.clientY),target:n.target};o.schedule(n),e.set(!1),t.set(St.some(i))}),St.none()},i=function(n){return o.cancel(),ZT(n).each(function(n){t.get().each(function(e){nE(n,e)&&t.set(St.none())})}),St.none()},u=function(r){o.cancel();var i=function(n){return Zi(n.target(),r.target())};return t.get().filter(i).map(function(){return e.get()?(r.prevent(),!1):n.triggerEvent(Hu(),r)})},a=oo([{key:du(),value:r},{key:mu(),value:i},{key:gu(),value:u}]),c=function(n,t){return xe(a,t).bind(function(t){return t(n)})};return{fireIfReady:c}},eE=function(n){var t=n.raw();return t.which===yb()[0]&&!Lt(["input","textarea"],ec(n.target()))&&!JT(n.target(),'[contenteditable="true"]')},oE=Ui().browser.isFirefox(),rE=Ao([hr("triggerEvent"),Br("stopBackspace",!0)]),iE=function(n,t){return oE?qT(n,"focus",t):YT(n,"focusin",t)},uE=function(n,t){return oE?qT(n,"blur",t):YT(n,"focusout",t)},aE=function(t,e){var o=$o("Getting GUI events settings",rE,e),r=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],i=tE(o),u=Gt(r.concat(["selectstart","input","contextmenu","change","transitionend","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),function(n){return YT(t,n,function(t){i.fireIfReady(t,n).each(function(n){n&&t.kill()});var e=o.triggerEvent(n,t);e&&t.kill()})}),a=zr(St.none()),c=YT(t,"paste",function(t){i.fireIfReady(t,"paste").each(function(n){n&&t.kill()});var e=o.triggerEvent("paste",t);e&&t.kill(),a.set(St.some(n.setTimeout(function(){o.triggerEvent(Fu(),t)},0)))}),s=YT(t,"keydown",function(n){var t=o.triggerEvent("keydown",n);t?n.kill():o.stopBackspace===!0&&eE(n)&&n.prevent()}),f=iE(t,function(n){var t=o.triggerEvent("focusin",n);t&&n.kill()}),l=zr(St.none()),d=uE(t,function(t){var e=o.triggerEvent("focusout",t);e&&t.kill(),l.set(St.some(n.setTimeout(function(){o.triggerEvent(Mu(),t)},0)))}),m=function(){Xt(u,function(n){n.unbind()}),s.unbind(),f.unbind(),d.unbind(),c.unbind(),a.get().each(n.clearTimeout),l.get().each(n.clearTimeout)};return{unbind:m}},cE=function(n,t){var e=xe(n,"target").map(function(n){return n()}).getOr(t);return zr(e)},sE=function(n,t){var e=zr(!1),o=zr(!1),r=function(){e.set(!0)},i=function(){o.set(!0)};return{stop:r,cut:i,isStopped:e.get,isCut:o.get,event:ft(n),setSource:t.set,getSource:t.get}},fE=function(n){var t=zr(!1),e=function(){t.set(!0)};return{stop:e,cut:at,isStopped:t.get,isCut:ft(!1),event:ft(n),setSource:mt("Cannot set source of a broadcasted event"),getSource:mt("Cannot get source of a broadcasted event")}},lE=ke.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),dE=function(n,t,e,o,r,i){var u=n(t,o),a=sE(e,r);return u.fold(function(){return i.logEventNoHandlers(t,o),lE.complete()},function(n){var e=n.descHandler(),o=ts(e);return o(a),a.isStopped()?(i.logEventStopped(t,n.element(),e.purpose()),lE.stopped()):a.isCut()?(i.logEventCut(t,n.element(),e.purpose()),lE.complete()):Va(n.element()).fold(function(){return i.logNoParent(t,n.element(),e.purpose()),lE.complete()},function(o){return i.logEventResponse(t,n.element(),e.purpose()),lE.resume(o)})})},mE=function(n,t,e,o,r,i){return dE(n,t,e,o,r,i).fold(function(){return!0},function(o){return mE(n,t,e,o,r,i)},function(){return!1})},gE=function(n,t,e,o,r){var i=cE(e,o);return dE(n,t,e,o,i,r)},pE=function(n,t){var e=fE(t);return Xt(n,function(n){var t=n.descHandler(),o=ts(t);o(e)}),e.isStopped()},hE=function(n,t,e,o){var r=e.target();return vE(n,t,e,r,o)},vE=function(n,t,e,o,r){var i=cE(e,o);return mE(n,t,e,o,i,r)},bE=_a("element","descHandler"),yE=function(n,t){return{id:ft(n),descHandler:ft(t)}},xE=function(n){var t=n.dom,o=t.attributes,r=e(t,["attributes"]);return{uid:n.uid,dom:vt({tag:"div",attributes:vt({role:"presentation"},o)},r),components:n.components,behaviours:Fh(n.containerBehaviours),events:n.events,domModification:n.domModification,eventOrder:n.eventOrder}},wE=jv({name:"Container",factory:xE,configFields:[Br("components",[]),Mh("containerBehaviours",[]),Br("events",{}),Br("domModification",{}),Br("eventOrder",{})]}),SE=function(n){var t=function(t){return Va(n.element()).fold(function(){return!0},function(n){return Zi(t,n)})},e=g(),o=function(n,o){return e.find(t,n,o)},r=aE(n.element(),{triggerEvent:function(n,t){return fl(n,t.target(),function(e){return hE(o,n,t,e)})}}),i={debugInfo:ft("real"),triggerEvent:function(n,t,e){fl(n,t,function(r){return vE(o,n,e,t,r)})},triggerFocus:function(n,t){Bc(n).fold(function(){Ad(n)},function(){fl(Au(),n,function(e){return gE(o,Au(),{originator:ft(t),kill:at,prevent:at,target:ft(n)},n,e),!1})})},triggerEscape:function(n,t){i.triggerEvent("keydown",n.element(),t.event())},getByUid:function(n){return h(n)},getByDom:function(n){return v(n)},build:of,addToGui:function(n){c(n)},removeFromGui:function(n){s(n)},addToWorld:function(n){u(n)},removeFromWorld:function(n){a(n)},broadcast:function(n){d(n)},broadcastOn:function(n,t){m(n,t)},broadcastEvent:function(n,t){p(n,t)},isConnected:ft(!0)},u=function(n){n.connect(i),uc(n.element())||(e.register(n),Xt(n.components(),u),i.triggerEvent(Lu(),n.element(),{target:ft(n.element())}))},a=function(n){uc(n.element())||(Xt(n.components(),a),e.unregister(n)),n.disconnect()},c=function(t){wp(n,t)},s=function(n){kp(n)},f=function(){r.unbind(),$a(n.element())},l=function(n){var t=e.filter(Iu());Xt(t,function(t){var e=t.descHandler(),o=ts(e);o(n)})},d=function(n){l({universal:ft(!0),data:ft(n)})},m=function(n,t){l({universal:ft(!1),channels:ft(n),data:ft(t)})},p=function(n,t){var o=e.filter(n);return pE(o,t)},h=function(n){return e.getById(n).fold(function(){return _t.error(new Error('Could not find component with uid: "'+n+'" in system.'))},_t.value)},v=function(n){var t=Bc(n).getOr("not found");return h(t)};return u(n),{root:ft(n),element:n.element,destroy:f,add:c,remove:s,getByUid:h,getByDom:v,addToWorld:u,removeFromWorld:a,broadcast:d,broadcastOn:m,broadcastEvent:p}},CE=Sc("form-component-change"),kE=Sc("form-close"),OE=Sc("form-cancel"),_E=Sc("form-action"),TE=Sc("form-submit"),EE=Sc("form-block"),BE=Sc("form-unblock"),DE=Sc("form-tabchange"),AE=Sc("form-resize"),ME=function(n,t){return wE.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+n.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[cC.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:lC(n.icon,t.icons),attributes:{title:t.translate(n.iconTooltip)}},action:function(t){oa(t,_E,{name:"alert-banner",value:n.url})}})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:t.translate(n.text)}}]})},FE=function(n,t){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:Gt(n.items,t.interpreter)}},IE=ft([Br("prefix","form-field"),Mh("fieldBehaviours",[Qv,Ah])]),RE=ft([dv({schema:[fr("dom")],name:"label"}),dv({factory:{sketch:function(n){return{uid:n.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:n.text}}}},schema:[fr("text")],name:"aria-descriptor"}),fv({factory:{sketch:function(n){var t=to(n,["factory"]);return n.factory.sketch(t)}},schema:[fr("factory")],name:"field"})]),VE=function(n,t){var e=Ih(n.fieldBehaviours,[Qv.config({find:function(t){return Ov(t,n,"field")}}),Ah.config({store:{mode:"manual",getValue:function(n){return Qv.getCurrent(n).bind(Ah.getValue)},setValue:function(n,t){Qv.getCurrent(n).each(function(n){Ah.setValue(n,t)})}}})]),o=ca([Sa(function(t){var e=Tv(t,n,["label","field","aria-descriptor"]);e.field().each(function(t){var o=Sc(n.prefix);e.label().each(function(n){cc(n.element(),"for",o),cc(t.element(),"id",o)}),e["aria-descriptor"]().each(function(e){var o=Sc(n.prefix);cc(e.element(),"id",o),cc(t.element(),"aria-describedby",o)})})})]),r={getField:function(t){return Ov(t,n,"field")},getLabel:function(t){return Ov(t,n,"label")}};return{uid:n.uid,dom:n.dom,components:t,behaviours:e,events:o,apis:r}},HE=Uv({name:"FormField",configFields:IE(),partFields:RE(),factory:VE,apis:{getField:function(n,t){return n.getField(t)},getLabel:function(n,t){return n.getLabel(t)}}}),NE=ft([wr("data"),Br("inputAttributes",{}),Br("inputStyles",{}),Br("tag","input"),Br("inputClasses",[]),xl("onSetValue"),Br("styles",{}),Br("eventOrder",{}),Mh("inputBehaviours",[Ah,mw]),Br("selectOnFocus",!0)]),PE=function(n){return bd([mw.config({onFocus:n.selectOnFocus?function(n){var t=n.element(),e=Us(t);t.dom().setSelectionRange(0,e.length)}:at})])},zE=function(n){return vt(vt({},PE(n)),Ih(n.inputBehaviours,[Ah.config({store:vt(vt({mode:"manual"},n.data.map(function(n){return{initialValue:n}}).getOr({})),{getValue:function(n){return Us(n.element())},setValue:function(n,t){var e=Us(n.element());e!==t&&Ws(n.element(),t)}}),onSetValue:n.onSetValue})]))},LE=function(n){return{tag:n.tag,attributes:vt({type:"text"},n.inputAttributes),styles:n.inputStyles,classes:n.inputClasses}},jE=function(n){return{uid:n.uid,dom:LE(n),components:[],behaviours:zE(n),eventOrder:n.eventOrder}},UE=jv({name:"Input",configFields:NE(),factory:jE}),WE={},GE={exports:WE};!function(n,t,e,o){!function(o){if("object"==typeof t&&"undefined"!=typeof e)e.exports=o();else if("function"==typeof n&&n.amd)n([],o);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,r.EphoxContactWrapper=o()}}(function(){return function(){function n(t,e,r){function i(a,c){if(!e[a]){if(!t[a]){var s="function"==typeof o&&o;if(!c&&s)return s(a,!0);if(u)return u(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var l=e[a]={exports:{}};t[a][0].call(l.exports,function(n){var e=t[a][1][n];return i(e||n)},l,l.exports,n,t,e,r)}return e[a].exports}for(var u="function"==typeof o&&o,a=0;a<r.length;a++)i(r[a]);return i}return n}()({1:[function(n,t){function e(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(n){if(f===setTimeout)return setTimeout(n,0);if((f===e||!f)&&setTimeout)return f=setTimeout,setTimeout(n,0);try{return f(n,0)}catch(t){try{return f.call(null,n,0)}catch(t){return f.call(this,n,0)}}}function i(n){if(l===clearTimeout)return clearTimeout(n);if((l===o||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(n);try{return l(n)}catch(t){try{return l.call(null,n)}catch(t){return l.call(this,n)}}}function u(){p&&m&&(p=!1,m.length?g=m.concat(g):h=-1,g.length&&a())}function a(){if(!p){var n=r(u);p=!0;for(var t=g.length;t;){for(m=g,g=[];++h<t;)m&&m[h].run();h=-1,t=g.length}m=null,p=!1,i(n)}}function c(n,t){this.fun=n,this.array=t}function s(){}var f,l,d=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:e}catch(n){f=e}try{l="function"==typeof clearTimeout?clearTimeout:o}catch(n){l=o}}();var m,g=[],p=!1,h=-1;d.nextTick=function(n){var t=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)t[e-1]=arguments[e];g.push(new c(n,t)),1!==g.length||p||r(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=s,d.addListener=s,d.once=s,d.off=s,d.removeListener=s,d.removeAllListeners=s,d.emit=s,d.prependListener=s,d.prependOnceListener=s,d.listeners=function(){return[]},d.binding=function(){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],2:[function(n,t){(function(n){!function(e){function o(){}function r(n,t){return function(){n.apply(t,arguments)}}function i(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(n,this)}function u(n,t){for(;3===n._state;)n=n._value;return 0===n._state?void n._deferreds.push(t):(n._handled=!0,void i._immediateFn(function(){var e=1===n._state?t.onFulfilled:t.onRejected;if(null===e)return void(1===n._state?a:c)(t.promise,n._value);var o;try{o=e(n._value)}catch(r){return void c(t.promise,r)}a(t.promise,o)}))}function a(n,t){try{if(t===n)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var e=t.then;if(t instanceof i)return n._state=3,n._value=t,void s(n);if("function"==typeof e)return void l(r(e,t),n)}n._state=1,n._value=t,s(n)}catch(o){c(n,o)}}function c(n,t){n._state=2,n._value=t,s(n)}function s(n){2===n._state&&0===n._deferreds.length&&i._immediateFn(function(){n._handled||i._unhandledRejectionFn(n._value)});for(var t=0,e=n._deferreds.length;e>t;t++)u(n,n._deferreds[t]);n._deferreds=null}function f(n,t,e){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=e}function l(n,t){var e=!1;try{n(function(n){e||(e=!0,a(t,n))},function(n){e||(e=!0,c(t,n))})}catch(o){if(e)return;e=!0,c(t,o)}}var d=setTimeout;i.prototype["catch"]=function(n){return this.then(null,n)},i.prototype.then=function(n,t){var e=new this.constructor(o);return u(this,new f(n,t,e)),e},i.all=function(n){var t=Array.prototype.slice.call(n);return new i(function(n,e){function o(i,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var a=u.then;if("function"==typeof a)return void a.call(u,function(n){o(i,n)},e)}t[i]=u,0===--r&&n(t)}catch(c){e(c)}}if(0===t.length)return n([]);for(var r=t.length,i=0;i<t.length;i++)o(i,t[i])})},i.resolve=function(n){return n&&"object"==typeof n&&n.constructor===i?n:new i(function(t){t(n)})},i.reject=function(n){return new i(function(t,e){e(n)})},i.race=function(n){return new i(function(t,e){for(var o=0,r=n.length;r>o;o++)n[o].then(t,e)})},i._immediateFn="function"==typeof n?function(t){n(t)}:function(n){d(n,0)},i._unhandledRejectionFn=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)},i._setImmediateFn=function(n){i._immediateFn=n},i._setUnhandledRejectionFn=function(n){i._unhandledRejectionFn=n},"undefined"!=typeof t&&t.exports?t.exports=i:e.Promise||(e.Promise=i)}(this)}).call(this,n("timers").setImmediate)},{timers:3}],3:[function(n,t,e){(function(t,o){function r(n,t){this._id=n,this._clearFn=t}var i=n("process/browser.js").nextTick,u=Function.prototype.apply,a=Array.prototype.slice,c={},s=0;e.setTimeout=function(){return new r(u.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(u.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(n){n.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(n,t){clearTimeout(n._idleTimeoutId),n._idleTimeout=t},e.unenroll=function(n){clearTimeout(n._idleTimeoutId),n._idleTimeout=-1},e._unrefActive=e.active=function(n){clearTimeout(n._idleTimeoutId);var t=n._idleTimeout;t>=0&&(n._idleTimeoutId=setTimeout(function(){n._onTimeout&&n._onTimeout()},t))},e.setImmediate="function"==typeof t?t:function(n){var t=s++,o=arguments.length<2?!1:a.call(arguments,1);return c[t]=!0,i(function(){c[t]&&(o?n.apply(null,o):n.call(null),e.clearImmediate(t))}),t},e.clearImmediate="function"==typeof o?o:function(n){delete c[n]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(n,t){var e=n("promise-polyfill"),o=function(){return"undefined"!=typeof window?window:Function("return this;")()}();t.exports={boltExport:o.Promise||e}},{"promise-polyfill":2}]},{},[4])(4)})}(void 0,WE,GE,void 0);var XE,YE=GE.exports.boltExport,qE=function(t){var e=St.none(),o=[],r=function(n){return qE(function(t){i(function(e){t(n(e))})})},i=function(n){a()?s(n):o.push(n)},u=function(n){e=St.some(n),c(o),o=[]},a=function(){return e.isSome()},c=function(n){Xt(n,s)},s=function(t){e.each(function(e){n.setTimeout(function(){t(e)},0)})};return t(u),{get:i,map:r,isReady:a}},KE=function(n){return qE(function(t){t(n)})},JE={nu:qE,pure:KE},$E=function(t){n.setTimeout(function(){throw t},0)},QE=function(n){var t=function(t){n().then(t,$E)},e=function(t){return QE(function(){return n().then(t)})},o=function(t){return QE(function(){return n().then(function(n){return t(n).toPromise()})})},r=function(t){return QE(function(){return n().then(function(){return t.toPromise()})})},i=function(){return JE.nu(t)},u=function(){var t=null;return QE(function(){return null===t&&(t=n()),t})},a=n;return{map:e,bind:o,anonBind:r,toLazy:i,toCached:u,toPromise:a,get:t}},ZE=function(n){return QE(function(){return new YE(n)})},nB=function(n){return QE(function(){return YE.resolve(n)})},tB={nu:ZE,pure:nB},eB=["input","textarea"],oB=function(n){var t=ec(n);return Lt(eB,t)},rB=function(n,t){var e=t.getRoot(n).getOr(n.element());Cs(e,t.invalidClass),t.notify.each(function(t){oB(n.element())&&cc(n.element(),"aria-invalid",!1),t.getContainer(n).each(function(n){nc(n,t.validHtml)}),t.onValid(n)})},iB=function(n,t,e,o){var r=t.getRoot(n).getOr(n.element());ws(r,t.invalidClass),t.notify.each(function(t){oB(n.element())&&cc(n.element(),"aria-invalid",!0),t.getContainer(n).each(function(n){nc(n,o)}),t.onInvalid(n,o)})},uB=function(n,t){return t.validator.fold(function(){return tB.pure(_t.value(!0))},function(t){return t.validate(n)})},aB=function(n,t,e){return t.notify.each(function(t){t.onValidate(n)}),uB(n,t).map(function(o){return n.getSystem().isConnected()?o.fold(function(o){return iB(n,t,e,o),_t.error(o)
},function(e){return rB(n,t),_t.value(e)}):_t.error("No longer in system")})},cB=function(n,t){var e=t.getRoot(n).getOr(n.element());return ks(e,t.invalidClass)},sB=Object.freeze({__proto__:null,markValid:rB,markInvalid:iB,query:uB,run:aB,isInvalid:cB}),fB=function(n,t){return n.validator.map(function(e){return ca([da(e.onEvent,function(e){aB(e,n,t).get(lt)})].concat(e.validateOnLoad?[Sa(function(e){aB(e,n,t).get(at)})]:[]))}).getOr({})},lB=Object.freeze({__proto__:null,events:fB}),dB=[fr("invalidClass"),Br("getRoot",St.none),Tr("notify",[Br("aria","alert"),Br("getContainer",St.none),Br("validHtml",""),xl("onValid"),xl("onInvalid"),xl("onValidate")]),Tr("validator",[fr("validate"),Br("onEvent","input"),Br("validateOnLoad",!0)])],mB=xd({fields:dB,name:"invalidating",active:lB,apis:sB,extra:{validation:function(n){return function(t){var e=Ah.getValue(t);return tB.pure(n(e))}}}}),gB=function(n,t){return qc({attributes:oo([{key:t.tabAttr,value:"true"}])})},pB=Object.freeze({__proto__:null,exhibit:gB}),hB=[Br("tabAttr","data-alloy-tabstop")],vB=xd({fields:hB,name:"tabstopping",active:pB}),bB=function(n,t,e,o){var r=xB(n,t,e,o);return HE.sketch(r)},yB=function(n,t){return bB(n,t,[],[])},xB=function(n,t,e,o){return{dom:SB(e),components:n.toArray().concat([t]),fieldBehaviours:bd(o)}},wB=function(){return SB([])},SB=function(n){return{tag:"div",classes:["tox-form__group"].concat(n)}},CB=function(n,t){return HE.parts().label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(n)}})},kB=function(n,t,e,o){return e.getOrCreate(n,t,o)},OB=Object.freeze({__proto__:null,getCoupled:kB}),_B=[lr("others",Yo(_t.value,tr()))],TB=function(){var n={},t=function(t,e,o){var r=de(e.others);if(r)return xe(n,o).getOrThunk(function(){var r=xe(e.others,o).getOrDie("No information found for coupled component: "+o),i=r(t),u=t.getSystem().build(i);return n[o]=u,u});throw new Error("Cannot find coupled component: "+o+". Known coupled components: "+JSON.stringify(r,null,2))},e=ft({});return Uc({readState:e,getOrCreate:t})},EB=Object.freeze({__proto__:null,init:TB}),BB=xd({fields:_B,name:"coupling",apis:OB,state:EB}),DB=ft("sink"),AB=ft(dv({name:DB(),overrides:ft({dom:{tag:"div"},behaviours:bd([pp.config({useFixed:pt})]),events:ca([ya(Cu()),ya(hu()),ya(Tu())])})}));!function(n){n[n.HighlightFirst=0]="HighlightFirst",n[n.HighlightNone=1]="HighlightNone"}(XE||(XE={}));var MB,FB=function(n,t){var e=n.getHotspot(t).getOr(t),o="hotspot",r=n.getAnchorOverrides();return n.layouts.fold(function(){return{anchor:o,hotspot:e,overrides:r}},function(n){return{anchor:o,hotspot:e,overrides:r,layouts:n}})},IB=function(n,t,e){var o=n.fetch;return o(e).map(t)},RB=function(n,t,e,o,r,i,u){var a=IB(n,t,o),c=zB(o,n);return a.map(function(n){return n.bind(function(n){return St.from(pS.sketch(vt(vt({},i.menu()),{uid:Dc(""),data:n,highlightImmediately:u===XE.HighlightFirst,onOpenMenu:function(n,t){var o=c().getOrDie();pp.position(o,e,t),Kp.decloak(r)},onOpenSubmenu:function(n,t,e){var o=c().getOrDie();pp.position(o,{anchor:"submenu",item:t},e),Kp.decloak(r)},onRepositionMenu:function(n,t,o){var r=c().getOrDie();pp.position(r,e,t),Xt(o,function(n){pp.position(r,{anchor:"submenu",item:n.triggeringItem},n.triggeredMenu)})},onEscape:function(){return mw.focus(o),Kp.close(r),St.some(!0)}})))})})},VB=function(n,t,e,o,r,i,u){var a=FB(n,e),c=RB(n,t,a,e,o,r,u);return c.map(function(n){return n.fold(function(){Kp.isOpen(o)&&Kp.close(o)},function(n){Kp.cloak(o),Kp.open(o,n),i(o)}),o})},HB=function(n,t,e,o){return Kp.close(o),tB.pure(o)},NB=function(n,t,e,o,r,i){var u=BB.getCoupled(e,"sandbox"),a=Kp.isOpen(u),c=a?HB:VB;return c(n,t,e,u,o,r,i)},PB=function(n,t,e){var o=Qv.getCurrent(t).getOr(t),r=bf(n.element());e?Fs(o.element(),"min-width",r+"px"):vf(o.element(),r)},zB=function(n,t){return n.getSystem().getByUid(t.uid+"-"+DB()).map(function(n){return function(){return _t.value(n)}}).getOrThunk(function(){return t.lazySink.fold(function(){return function(){return _t.error(new Error("No internal sink is specified, nor could an external sink be found"))}},function(t){return function(){return t(n)}})})},LB=function(n){Kp.getState(n).each(function(n){pS.repositionMenus(n)})},jB=function(n,t,e){var o=Zf(),r=function(r,i){var u=FB(n,t);o.link(t.element()),n.matchWidth&&PB(u.hotspot,i,n.useMinWidth),n.onOpen(u,r,i),void 0!==e&&void 0!==e.onOpen&&e.onOpen(r,i)},i=function(n,r){o.unlink(t.element()),void 0!==e&&void 0!==e.onClose&&e.onClose(n,r)},u=zB(t,n);return{dom:{tag:"div",classes:n.sandboxClasses,attributes:{id:o.id(),role:"listbox"}},behaviours:Rh.augment(n.sandboxBehaviours,[Ah.config({store:{mode:"memory",initialValue:t}}),Kp.config({onOpen:r,onClose:i,isPartOf:function(n,e,o){return tl(e,o)||tl(t,o)},getAttachPoint:function(){return u().getOrDie()}}),Qv.config({find:function(n){return Kp.getState(n).bind(function(n){return Qv.getCurrent(n)})}}),Ed.config({channels:vt(vt({},nh({isExtraPart:gt})),eh({doReposition:LB}))})])}},UB=function(n){var t=BB.getCoupled(n,"sandbox");LB(t)},WB=function(){return[Br("sandboxClasses",[]),Rh.field("sandboxBehaviours",[Qv,Ed,Kp,Ah])]},GB=ft([fr("dom"),fr("fetch"),xl("onOpen"),wl("onExecute"),Br("getHotspot",St.some),Br("getAnchorOverrides",ft({})),Om(),Mh("dropdownBehaviours",[Mw,BB,Xx,mw]),fr("toggleClass"),Br("eventOrder",{}),wr("lazySink"),Br("matchWidth",!1),Br("useMinWidth",!1),wr("role")].concat(WB())),XB=ft([lv({schema:[vl()],name:"menu",defaults:function(n){return{onExecute:n.onExecute}}}),AB()]),YB=function(n,t,e,o){var r,i=function(t){return xe(n.dom,"attributes").bind(function(n){return xe(n,t)})},u=function(n){Kp.getState(n).each(function(n){pS.highlightPrimary(n)})},a=function(t){var e=u;NB(n,function(n){return n},t,o,e,XE.HighlightFirst).get(at)},c={expand:function(t){Mw.isOn(t)||NB(n,function(n){return n},t,o,at,XE.HighlightNone).get(at)},open:function(t){Mw.isOn(t)||NB(n,function(n){return n},t,o,at,XE.HighlightFirst).get(at)},isOpen:Mw.isOn,close:function(t){Mw.isOn(t)&&NB(n,function(n){return n},t,o,at,XE.HighlightFirst).get(at)},repositionMenus:function(n){Mw.isOn(n)&&UB(n)}},s=function(n){return ra(n),St.some(!0)};return{uid:n.uid,dom:n.dom,components:t,behaviours:Ih(n.dropdownBehaviours,[Mw.config({toggleClass:n.toggleClass,aria:{mode:"expanded"}}),BB.config({others:{sandbox:function(t){return jB(n,t,{onOpen:function(){Mw.on(t)},onClose:function(){Mw.off(t)}})}}}),Xx.config({mode:"special",onSpace:s,onEnter:s,onDown:function(n){if(qB.isOpen(n)){var t=BB.getCoupled(n,"sandbox");u(t)}else qB.open(n);return St.some(!0)},onEscape:function(n){return qB.isOpen(n)?(qB.close(n),St.some(!0)):St.none()}}),mw.config({})]),events:Iw(St.some(a)),eventOrder:vt(vt({},n.eventOrder),(r={},r[Ru()]=["disabling","toggling","alloy.base.behaviour"],r)),apis:c,domModification:{attributes:vt(vt({"aria-haspopup":"true"},n.role.fold(function(){return{}},function(n){return{role:n}})),"button"===n.dom.tag?{type:i("type").getOr("button")}:{})}}},qB=Uv({name:"Dropdown",configFields:GB(),partFields:XB(),factory:YB,apis:{open:function(n,t){return n.open(t)},expand:function(n,t){return n.expand(t)},close:function(n,t){return n.close(t)},isOpen:function(n,t){return n.isOpen(t)},repositionMenus:function(n,t){return n.repositionMenus(t)}}}),KB=function(){return qc({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},JB=function(){return ca([sa(Bu(),ft(!0))])},$B=Object.freeze({__proto__:null,events:JB,exhibit:KB}),QB=xd({fields:[],name:"unselecting",active:$B}),ZB=function(n,t){return qB.sketch({dom:n.dom,components:n.components,toggleClass:"mce-active",dropdownBehaviours:bd([QB.config({}),vB.config({})]),layouts:n.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:t.getSink,fetch:function(e){return tB.nu(function(t){return n.fetch(t)}).map(function(o){return St.from(jT(Be(xT(Sc("menu-value"),o,function(t){n.onItemAction(e,t)},n.columns,n.presets,FO.CLOSE_ON_EXECUTE,function(){return!1},t.providers),{movement:ST(n.columns,n.presets)})))})},parts:{menu:cT(!1,1,n.presets)}})},nD=Sc("color-input-change"),tD=Sc("color-swatch-change"),eD=Sc("color-picker-cancel"),oD=function(n,t,e){var o=HE.parts().field({factory:UE,inputClasses:["tox-textfield"],onSetValue:function(n){return mB.run(n).get(function(){})},inputBehaviours:bd([vB.config({}),mB.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(n){return Va(n.element())},notify:{onValid:function(n){var t=Ah.getValue(n);oa(n,nD,{color:t})}},validator:{validateOnLoad:!1,validate:function(n){var t=Ah.getValue(n);if(0===t.length)return tB.pure(_t.value(!0));var e=Xr.fromTag("span");Fs(e,"background-color",t);var o=Ns(e,"background-color").fold(function(){return _t.error("blah")},function(){return _t.value(t)});return tB.pure(o)}}})]),selectOnFocus:!1}),r=n.label.map(function(n){return CB(n,t.providers)}),i=function(n,t){oa(n,tD,{value:t})},u=function(n,t){a.getOpt(n).each(function(n){"custom"===t?e.colorPicker(function(t){t.fold(function(){return ea(n,eD)},function(t){i(n,t),M_.addColor(t)})},"#ffffff"):"remove"===t?i(n,""):i(n,t)})},a=sC(ZB({dom:{tag:"span",attributes:{"aria-label":t.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[Ql,$l,ed]},onLtr:function(){return[$l,Ql,ed]}},components:[],fetch:eT.getFetch(e.getColors(),e.hasCustomColors()),columns:e.getColorCols(),presets:"color",onItemAction:u},t));return HE.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:r.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[o,a.asSpec()]}]),fieldBehaviours:bd([rw("form-field-events",[da(nD,function(t,e){a.getOpt(t).each(function(n){Fs(n.element(),"background-color",e.event().color())}),oa(t,CE,{name:n.name})}),da(tD,function(n,t){HE.getField(n).each(function(e){Ah.setValue(e,t.event().value()),Qv.getCurrent(n).each(mw.focus)})}),da(eD,function(n){HE.getField(n).each(function(){Qv.getCurrent(n).each(mw.focus)})})])])})},rD=function(n,t,e){return{hue:ft(n),saturation:ft(t),value:ft(e)}},iD=function(n){var t=0,e=0,o=0,r=n.red()/255,i=n.green()/255,u=n.blue()/255,a=Math.min(r,Math.min(i,u)),c=Math.max(r,Math.max(i,u));if(a===c)return o=a,rD(0,0,100*o);var s=r===a?i-u:u===a?r-i:u-r;return t=r===a?3:u===a?1:5,t=60*(t-s/(c-a)),e=(c-a)/c,o=c,rD(Math.round(t),Math.round(100*e),Math.round(100*o))},uD=function(n){var t=(100-n)/100*360,e=rD(t,100,100),o=g_(e);return u_(o)},aD=ft(Sc("rgb-hex-update")),cD=ft(Sc("slider-update")),sD=ft(Sc("palette-update")),fD=dv({schema:[fr("dom")],name:"label"}),lD=function(n){return dv({name:""+n+"-edge",overrides:function(t){var e=t.model.manager.edgeActions[n];return e.fold(function(){return{}},function(n){return{events:ca([ma(du(),function(t,e,o){return n(t,o)},[t]),ma(hu(),function(t,e,o){return n(t,o)},[t]),ma(vu(),function(t,e,o){o.mouseIsDown.get()&&n(t,o)},[t])])}})}})},dD=lD("top-left"),mD=lD("top"),gD=lD("top-right"),pD=lD("right"),hD=lD("bottom-right"),vD=lD("bottom"),bD=lD("bottom-left"),yD=lD("left"),xD=fv({name:"thumb",defaults:ft({dom:{styles:{position:"absolute"}}}),overrides:function(n){return{events:ca([va(du(),n,"spectrum"),va(mu(),n,"spectrum"),va(gu(),n,"spectrum"),va(hu(),n,"spectrum"),va(vu(),n,"spectrum"),va(yu(),n,"spectrum")])}}}),wD=fv({schema:[Pr("mouseIsDown",function(){return zr(!1)})],name:"spectrum",overrides:function(n){var t=n.model,e=t.manager,o=function(t,o){return e.getValueFromEvent(o).map(function(o){return e.setValueFrom(t,n,o)})};return{behaviours:bd([Xx.config({mode:"special",onLeft:function(t){return e.onLeft(t,n)},onRight:function(t){return e.onRight(t,n)},onUp:function(t){return e.onUp(t,n)},onDown:function(t){return e.onDown(t,n)}}),mw.config({})]),events:ca([da(du(),o),da(mu(),o),da(hu(),o),da(vu(),function(t,e){n.mouseIsDown.get()&&o(t,e)})])}}}),SD=[fD,yD,pD,mD,vD,dD,gD,bD,hD,xD,wD],CD="slider.change.value",kD=ft(CD),OD=function(n){return-1!==n.type.indexOf("touch")},_D=function(n){var t=n.event().raw();if(OD(t)){var e=t;return void 0!==e.touches&&1===e.touches.length?St.some(e.touches[0]).map(function(n){return lf(n.clientX,n.clientY)}):St.none()}var o=t;return void 0!==o.clientX?St.some(o).map(function(n){return lf(n.clientX,n.clientY)}):St.none()},TD="top",ED="right",BD="bottom",DD="left",AD=function(n){return n.model.minX},MD=function(n){return n.model.minY},FD=function(n){return n.model.minX-1},ID=function(n){return n.model.minY-1},RD=function(n){return n.model.maxX},VD=function(n){return n.model.maxY},HD=function(n){return n.model.maxX+1},ND=function(n){return n.model.maxY+1},PD=function(n,t,e){return t(n)-e(n)},zD=function(n){return PD(n,RD,AD)},LD=function(n){return PD(n,VD,MD)},jD=function(n){return zD(n)/2},UD=function(n){return LD(n)/2},WD=function(n){return n.stepSize},GD=function(n){return n.snapToGrid},XD=function(n){return n.snapStart},YD=function(n){return n.rounded},qD=function(n,t){return void 0!==n[t+"-edge"]},KD=function(n){return qD(n,DD)},JD=function(n){return qD(n,ED)},$D=function(n){return qD(n,TD)},QD=function(n){return qD(n,BD)},ZD=function(n){return n.model.value.get()},nA=function(n){return{x:ft(n)}},tA=function(n){return{y:ft(n)}},eA=function(n,t){return{x:ft(n),y:ft(t)}},oA=function(n,t){oa(n,kD(),{value:t})},rA=function(n,t){oA(n,eA(FD(t),ID(t)))},iA=function(n,t){oA(n,tA(ID(t)))},uA=function(n,t){oA(n,eA(jD(t),ID(t)))},aA=function(n,t){oA(n,eA(HD(t),ID(t)))},cA=function(n,t){oA(n,nA(HD(t)))},sA=function(n,t){oA(n,eA(HD(t),UD(t)))},fA=function(n,t){oA(n,eA(HD(t),ND(t)))},lA=function(n,t){oA(n,tA(ND(t)))},dA=function(n,t){oA(n,eA(jD(t),ND(t)))},mA=function(n,t){oA(n,eA(FD(t),ND(t)))},gA=function(n,t){oA(n,nA(FD(t)))},pA=function(n,t){oA(n,eA(FD(t),UD(t)))},hA=function(n,t,e,o){return t>n?n:n>e?e:n===t?t-1:Math.max(t,n-o)},vA=function(n,t,e,o){return n>e?n:t>n?t:n===e?e+1:Math.min(e,n+o)},bA=function(n,t,e){return Math.max(t,Math.min(e,n))},yA=function(n,t,e,o,r){return r.fold(function(){var r=n-t,i=Math.round(r/o)*o;return bA(t+i,t-1,e+1)},function(t){var r=(n-t)%o,i=Math.round(r/o),u=Math.floor((n-t)/o),a=Math.floor((e-t)/o),c=Math.min(a,u+i),s=t+c*o;return Math.max(t,s)})},xA=function(n,t,e){return Math.min(e,Math.max(n,t))-t},wA=function(n){var t=n.min,e=n.max,o=n.range,r=n.value,i=n.step,u=n.snap,a=n.snapStart,c=n.rounded,s=n.hasMinEdge,f=n.hasMaxEdge,l=n.minBound,d=n.maxBound,m=n.screenRange,g=s?t-1:t,p=f?e+1:e;if(l>r)return g;if(r>d)return p;var h=xA(r,l,d),v=bA(h/m*o+t,g,p);return u&&v>=t&&e>=v?yA(v,t,e,i,a):c?Math.round(v):v},SA=function(n){var t=n.min,e=n.max,o=n.range,r=n.value,i=n.hasMinEdge,u=n.hasMaxEdge,a=n.maxBound,c=n.maxOffset,s=n.centerMinEdge,f=n.centerMaxEdge;return t>r?i?0:s:r>e?u?a:f:(r-t)/o*c},CA="top",kA="right",OA="bottom",_A="left",TA="width",EA="height",BA=function(n){return n.element().dom().getBoundingClientRect()},DA=function(n,t){return n[t]},AA=function(n){var t=BA(n);return DA(t,_A)},MA=function(n){var t=BA(n);return DA(t,kA)},FA=function(n){var t=BA(n);return DA(t,CA)},IA=function(n){var t=BA(n);return DA(t,OA)},RA=function(n){var t=BA(n);return DA(t,TA)},VA=function(n){var t=BA(n);return DA(t,EA)},HA=function(n,t,e){return(n+t)/2-e},NA=function(n,t){var e=BA(n),o=BA(t),r=DA(e,_A),i=DA(e,kA),u=DA(o,_A);return HA(r,i,u)},PA=function(n,t){var e=BA(n),o=BA(t),r=DA(e,CA),i=DA(e,OA),u=DA(o,CA);return HA(r,i,u)},zA=function(n,t){oa(n,kD(),{value:t})},LA=function(n){return{x:ft(n)}},jA=function(n,t,e){var o={min:AD(t),max:RD(t),range:zD(t),value:e,step:WD(t),snap:GD(t),snapStart:XD(t),rounded:YD(t),hasMinEdge:KD(t),hasMaxEdge:JD(t),minBound:AA(n),maxBound:MA(n),screenRange:RA(n)};return wA(o)},UA=function(n,t,e){var o=jA(n,t,e),r=LA(o);return zA(n,r),o},WA=function(n,t){var e=AD(t);zA(n,LA(e))},GA=function(n,t){var e=RD(t);zA(n,LA(e))},XA=function(n,t,e){var o=n>0?vA:hA,r=o(ZD(e).x(),AD(e),RD(e),WD(e));return zA(t,LA(r)),St.some(r)},YA=function(n){return function(t,e){return XA(n,t,e).map(function(){return!0})}},qA=function(n){var t=_D(n);return t.map(function(n){return n.left()})},KA=function(n,t,e,o,r){var i=0,u=RA(n),a=o.bind(function(t){return St.some(NA(t,n))}).getOr(i),c=r.bind(function(t){return St.some(NA(t,n))}).getOr(u),s={min:AD(t),max:RD(t),range:zD(t),value:e,hasMinEdge:KD(t),hasMaxEdge:JD(t),minBound:AA(n),minOffset:i,maxBound:MA(n),maxOffset:u,centerMinEdge:a,centerMaxEdge:c};return SA(s)},JA=function(n,t,e,o,r,i){var u=KA(t,i,e,o,r);return AA(t)-AA(n)+u},$A=function(n,t,e,o){var r=ZD(e),i=JA(n,o.getSpectrum(n),r.x(),o.getLeftEdge(n),o.getRightEdge(n),e),u=bf(t.element())/2;Fs(t.element(),"left",i-u+"px")},QA=YA(-1),ZA=YA(1),nM=St.none,tM=St.none,eM={"top-left":St.none(),top:St.none(),"top-right":St.none(),right:St.some(cA),"bottom-right":St.none(),bottom:St.none(),"bottom-left":St.none(),left:St.some(gA)},oM=Object.freeze({__proto__:null,setValueFrom:UA,setToMin:WA,setToMax:GA,findValueOfOffset:jA,getValueFromEvent:qA,findPositionOfValue:JA,setPositionFromValue:$A,onLeft:QA,onRight:ZA,onUp:nM,onDown:tM,edgeActions:eM}),rM=function(n,t){oa(n,kD(),{value:t})},iM=function(n){return{y:ft(n)}},uM=function(n,t,e){var o={min:MD(t),max:VD(t),range:LD(t),value:e,step:WD(t),snap:GD(t),snapStart:XD(t),rounded:YD(t),hasMinEdge:$D(t),hasMaxEdge:QD(t),minBound:FA(n),maxBound:IA(n),screenRange:VA(n)};return wA(o)},aM=function(n,t,e){var o=uM(n,t,e),r=iM(o);return rM(n,r),o},cM=function(n,t){var e=MD(t);rM(n,iM(e))},sM=function(n,t){var e=VD(t);rM(n,iM(e))},fM=function(n,t,e){var o=n>0?vA:hA,r=o(ZD(e).y(),MD(e),VD(e),WD(e));return rM(t,iM(r)),St.some(r)},lM=function(n){return function(t,e){return fM(n,t,e).map(function(){return!0})}},dM=function(n){var t=_D(n);return t.map(function(n){return n.top()})},mM=function(n,t,e,o,r){var i=0,u=VA(n),a=o.bind(function(t){return St.some(PA(t,n))}).getOr(i),c=r.bind(function(t){return St.some(PA(t,n))}).getOr(u),s={min:MD(t),max:VD(t),range:LD(t),value:e,hasMinEdge:$D(t),hasMaxEdge:QD(t),minBound:FA(n),minOffset:i,maxBound:IA(n),maxOffset:u,centerMinEdge:a,centerMaxEdge:c};return SA(s)},gM=function(n,t,e,o,r,i){var u=mM(t,i,e,o,r);return FA(t)-FA(n)+u},pM=function(n,t,e,o){var r=ZD(e),i=gM(n,o.getSpectrum(n),r.y(),o.getTopEdge(n),o.getBottomEdge(n),e),u=af(t.element())/2;Fs(t.element(),"top",i-u+"px")},hM=St.none,vM=St.none,bM=lM(-1),yM=lM(1),xM={"top-left":St.none(),top:St.some(iA),"top-right":St.none(),right:St.none(),"bottom-right":St.none(),bottom:St.some(lA),"bottom-left":St.none(),left:St.none()},wM=Object.freeze({__proto__:null,setValueFrom:aM,setToMin:cM,setToMax:sM,findValueOfOffset:uM,getValueFromEvent:dM,findPositionOfValue:gM,setPositionFromValue:pM,onLeft:hM,onRight:vM,onUp:bM,onDown:yM,edgeActions:xM}),SM=function(n,t){oa(n,kD(),{value:t})},CM=function(n,t){return{x:ft(n),y:ft(t)}},kM=function(n,t,e){var o=jA(n,t,e.left()),r=uM(n,t,e.top()),i=CM(o,r);return SM(n,i),i},OM=function(n,t,e,o){var r=n>0?vA:hA,i=t?ZD(o).x():r(ZD(o).x(),AD(o),RD(o),WD(o)),u=t?r(ZD(o).y(),MD(o),VD(o),WD(o)):ZD(o).y();return SM(e,CM(i,u)),St.some(i)},_M=function(n,t){return function(e,o){return OM(n,t,e,o).map(function(){return!0})}},TM=function(n,t){var e=AD(t),o=MD(t);SM(n,CM(e,o))},EM=function(n,t){var e=RD(t),o=VD(t);SM(n,CM(e,o))},BM=function(n){return _D(n)},DM=function(n,t,e,o){var r=ZD(e),i=JA(n,o.getSpectrum(n),r.x(),o.getLeftEdge(n),o.getRightEdge(n),e),u=gM(n,o.getSpectrum(n),r.y(),o.getTopEdge(n),o.getBottomEdge(n),e),a=bf(t.element())/2,c=af(t.element())/2;Fs(t.element(),"left",i-a+"px"),Fs(t.element(),"top",u-c+"px")},AM=_M(-1,!1),MM=_M(1,!1),FM=_M(-1,!0),IM=_M(1,!0),RM={"top-left":St.some(rA),top:St.some(uA),"top-right":St.some(aA),right:St.some(sA),"bottom-right":St.some(fA),bottom:St.some(dA),"bottom-left":St.some(mA),left:St.some(pA)},VM=Object.freeze({__proto__:null,setValueFrom:kM,setToMin:TM,setToMax:EM,getValueFromEvent:BM,setPositionFromValue:DM,onLeft:AM,onRight:MM,onUp:FM,onDown:IM,edgeActions:RM}),HM=[Br("stepSize",1),Br("onChange",at),Br("onChoose",at),Br("onInit",at),Br("onDragStart",at),Br("onDragEnd",at),Br("snapToGrid",!1),Br("rounded",!0),wr("snapStart"),lr("model",nr("mode",{x:[Br("minX",0),Br("maxX",100),Pr("value",function(n){return zr(n.mode.minX)}),fr("getInitialValue"),kl("manager",oM)],y:[Br("minY",0),Br("maxY",100),Pr("value",function(n){return zr(n.mode.minY)}),fr("getInitialValue"),kl("manager",wM)],xy:[Br("minX",0),Br("maxX",100),Br("minY",0),Br("maxY",100),Pr("value",function(n){return zr({x:ft(n.mode.minX),y:ft(n.mode.minY)})}),fr("getInitialValue"),kl("manager",VM)]})),Mh("sliderBehaviours",[Xx,Ah]),Pr("mouseIsDown",function(){return zr(!1)})],NM=function(n,t){var e,o=function(t){return _v(t,n,"thumb")},r=function(t){return _v(t,n,"spectrum")},i=function(t){return Ov(t,n,"left-edge")},u=function(t){return Ov(t,n,"right-edge")},a=function(t){return Ov(t,n,"top-edge")},c=function(t){return Ov(t,n,"bottom-edge")},s=n.model,f=s.manager,l=function(t,e){f.setPositionFromValue(t,e,n,{getLeftEdge:i,getRightEdge:u,getTopEdge:a,getBottomEdge:c,getSpectrum:r})},d=function(t,e){s.value.set(e);var r=o(t);return l(t,r),n.onChange(t,r,e),St.some(!0)},m=function(t){f.setToMin(t,n)},g=function(t){f.setToMax(t,n)},p=function(t){var e=function(){Ov(t,n,"thumb").each(function(e){var o=s.value.get();n.onChoose(t,e,o)})},o=n.mouseIsDown.get();n.mouseIsDown.set(!1),o&&e()},h=function(t,e){e.stop(),n.mouseIsDown.set(!0),n.onDragStart(t,o(t))},v=function(t,e){e.stop(),n.onDragEnd(t,o(t)),p(t)};return{uid:n.uid,dom:n.dom,components:t,behaviours:Ih(n.sliderBehaviours,[Xx.config({mode:"special",focusIn:function(t){return Ov(t,n,"spectrum").map(Xx.focusIn).map(ft(!0))}}),Ah.config({store:{mode:"manual",getValue:function(){return s.value.get()}}}),Ed.config({channels:(e={},e[Qp()]={onReceive:p},e)})]),events:ca([da(kD(),function(n,t){d(n,t.event().value())}),Sa(function(t){var e=s.getInitialValue();s.value.set(e);var i=o(t);l(t,i);var u=r(t);n.onInit(t,i,u,s.value.get())}),da(du(),h),da(gu(),v),da(hu(),h),da(yu(),v)]),apis:{resetToMin:m,resetToMax:g,changeValue:d,refresh:l},domModification:{styles:{position:"relative"}}}},PM=Uv({name:"Slider",configFields:HM,partFields:SD,factory:NM,apis:{resetToMin:function(n,t){n.resetToMin(t)},resetToMax:function(n,t){n.resetToMax(t)},refresh:function(n,t){n.refresh(t)}}}),zM=function(n,t){var e=PM.parts().spectrum({dom:{tag:"div",classes:[t("hue-slider-spectrum")],attributes:{role:"presentation"}}}),o=PM.parts().thumb({dom:{tag:"div",classes:[t("hue-slider-thumb")],attributes:{role:"presentation"}}});return PM.sketch({dom:{tag:"div",classes:[t("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:ft({y:ft(0)})},components:[e,o],sliderBehaviours:bd([mw.config({})]),onChange:function(n,t,e){oa(n,cD(),{value:e})}})},LM="form",jM=[Mh("formBehaviours",[Ah])],UM=function(n){return"<alloy.field."+n+">"},WM=function(n){var t=function(){var n=[],t=function(t,e){return n.push(t),xv(LM,UM(t),e)};return{field:t,record:function(){return n}}}(),e=n(t),o=t.record(),r=Gt(o,function(n){return fv({name:n,pname:UM(n)})});return Hv(LM,jM,r,XM,e)},GM=function(n,t){return n.fold(function(){return _t.error(t)},_t.value)},XM=function(n,t){return{uid:n.uid,dom:n.dom,components:t,behaviours:Ih(n.formBehaviours,[Ah.config({store:{mode:"manual",getValue:function(t){var e=Ev(t,n);return pe(e,function(n,t){return n().bind(function(n){var e=Qv.getCurrent(n);return GM(e,new Error("Cannot find a current component to extract the value from for form part '"+t+"': "+vc(n.element())))}).map(Ah.getValue)})},setValue:function(t,e){ge(e,function(e,o){Ov(t,n,o).each(function(n){Qv.getCurrent(n).each(function(n){Ah.setValue(n,e)})})})}}})]),apis:{getField:function(t,e){return Ov(t,n,e).bind(Qv.getCurrent)}}}},YM={getField:Lc(function(n,t,e){return n.getField(t,e)}),sketch:WM},qM=Sc("valid-input"),KM=Sc("invalid-input"),JM=Sc("validating-input"),$M="colorcustom.rgb.",QM=function(n,t,e,o){var r=function(e,o){return mB.config({invalidClass:t("invalid"),notify:{onValidate:function(n){oa(n,JM,{type:e})},onValid:function(n){oa(n,qM,{type:e,value:Ah.getValue(n)})},onInvalid:function(n){oa(n,KM,{type:e,value:Ah.getValue(n)})}},validator:{validate:function(t){var e=Ah.getValue(t),r=o(e)?_t.value(!0):_t.error(n("aria.input.invalid"));return tB.pure(r)},validateOnLoad:!1}})},i=function(e,o,i,u,a){var c=n($M+"range"),s=HE.parts().label({dom:{tag:"label",innerHtml:i,attributes:{"aria-label":u}}}),f=HE.parts().field({data:a,factory:UE,inputAttributes:vt({type:"text"},"hex"===o?{"aria-live":"polite"}:{}),inputClasses:[t("textfield")],inputBehaviours:bd([r(o,e),vB.config({})]),onSetValue:function(n){if(mB.isInvalid(n)){var t=mB.run(n);t.get(at)}}}),l=[s,f],d="hex"!==o?[HE.parts()["aria-descriptor"]({text:c})]:[],m=l.concat(d);return{dom:{tag:"div",attributes:{role:"presentation"}},components:m}},u=function(n,t){var e=u_(t);return YM.getField(n,"hex").each(function(t){mw.isFocused(t)||Ah.setValue(n,{hex:e.value()})}),e},a=function(n,t){var e=t.red(),o=t.green(),r=t.blue();Ah.setValue(n,{red:e,green:o,blue:r})},c=sC({dom:{tag:"div",classes:[t("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),s=function(n,t){c.getOpt(n).each(function(n){Fs(n.element(),"background-color","#"+t.value())})},f=function(){var r={red:ft(zr(St.some(255))),green:ft(zr(St.some(255))),blue:ft(zr(St.some(255))),hex:ft(zr(St.some("ffffff")))},f=function(n,t){var e=p_(t);a(n,e),g(e)},l=function(n){return r[n]().get()},d=function(n,t){r[n]().set(t)},m=function(){return l("red").bind(function(n){return l("green").bind(function(t){return l("blue").map(function(e){return d_(n,t,e,1)})})})},g=function(n){var t=n.red(),e=n.green(),o=n.blue();d("red",St.some(t)),d("green",St.some(e)),d("blue",St.some(o))},p=function(n,t){var e=t.event();"hex"!==e.type()?d(e.type(),St.none()):o(n)},h=function(n,t){e(n);var o=ZO(t);d("hex",St.some(t));var r=p_(o);a(n,r),g(r),oa(n,aD(),{hex:o}),s(n,o)},v=function(n,t,e){var o=parseInt(e,10);d(t,St.some(o)),m().each(function(t){var e=u(n,t);s(n,e)})},b=function(n){return"hex"===n.type()},y=function(n,t){var e=t.event();b(e)?h(n,e.value()):v(n,e.type(),e.value())},x=function(t){return{label:n($M+t+".label"),description:n($M+t+".description")}},w=x("red"),S=x("green"),C=x("blue"),k=x("hex");return Be(YM.sketch(function(e){return{dom:{tag:"form",classes:[t("rgb-form")],attributes:{"aria-label":n("aria.color.picker")}},components:[e.field("red",HE.sketch(i(m_,"red",w.label,w.description,255))),e.field("green",HE.sketch(i(m_,"green",S.label,S.description,255))),e.field("blue",HE.sketch(i(m_,"blue",C.label,C.description,255))),e.field("hex",HE.sketch(i(e_,"hex",k.label,k.description,"ffffff"))),c.asSpec()],formBehaviours:bd([mB.config({invalidClass:t("form-invalid")}),rw("rgb-form-events",[da(qM,y),da(KM,p),da(JM,p)])])}}),{apis:{updateHex:function(n,t){Ah.setValue(n,{hex:t.value()}),f(n,t),s(n,t)}}})},l=jv({factory:f,name:"RgbForm",configFields:[],apis:{updateHex:function(n,t,e){n.updateHex(t,e)}},extraApis:{}});return l},ZM=function(n,t){var e=PM.parts().spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[t("sv-palette-spectrum")]}}),o=PM.parts().thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette-thumb")],innerHtml:"<div class="+t("sv-palette-inner-thumb")+' role="presentation"></div>'}}),r=function(n,t){var e=n.width,o=n.height,r=n.getContext("2d");if(null!==r){r.fillStyle=t,r.fillRect(0,0,e,o);var i=r.createLinearGradient(0,0,e,0);i.addColorStop(0,"rgba(255,255,255,1)"),i.addColorStop(1,"rgba(255,255,255,0)"),r.fillStyle=i,r.fillRect(0,0,e,o);var u=r.createLinearGradient(0,0,0,o);u.addColorStop(0,"rgba(0,0,0,0)"),u.addColorStop(1,"rgba(0,0,0,1)"),r.fillStyle=u,r.fillRect(0,0,e,o)}},i=function(n,t){var e=n.components()[0].element().dom();r(e,b_(t))},u=function(){var n=ft({x:ft(0),y:ft(0)}),i=function(n,t,e){oa(n,sD(),{value:e})},u=function(n,t,e){r(e.element().dom(),b_(y_()))},a=bd([Qv.config({find:St.some}),mw.config({})]);return PM.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette")]},model:{mode:"xy",getInitialValue:n},rounded:!1,components:[e,o],onChange:i,onInit:u,sliderBehaviours:a})},a=jv({factory:u,name:"SaturationBrightnessPalette",configFields:[],apis:{setRgba:function(n,t,e){i(t,e)}},extraApis:{}});return a},nF=function(n,t){var e=function(e){var o=QM(n,t,e.onValidHex,e.onInvalidHex),r=ZM(n,t),i={paletteRgba:ft(zr(y_()))},u=sC(r.sketch({})),a=sC(o.sketch({})),c=function(n,t){u.getOpt(n).each(function(n){var e=p_(t);i.paletteRgba().set(e),r.setRgba(n,e)})},s=function(n,t){a.getOpt(n).each(function(n){o.updateHex(n,t)})},f=function(n,t,e){Xt(e,function(e){e(n,t)})},l=function(){var n=[s];return function(t,e){var o=e.event().value(),r=i.paletteRgba().get(),u=iD(r),a=rD(u.hue(),o.x(),100-o.y()),c=g_(a),s=u_(c);f(t,s,n)}},d=function(){var n=[c,s];return function(t,e){var o=e.event().value(),r=uD(o.y());f(t,r,n)}};return{uid:e.uid,dom:e.dom,components:[u.asSpec(),zM(n,t),a.asSpec()],behaviours:bd([rw("colour-picker-events",[da(sD(),l()),da(cD(),d())]),Qv.config({find:function(n){return a.getOpt(n)}}),Xx.config({mode:"acyclic"})])}},o=jv({name:"ColourPicker",configFields:[fr("dom"),Br("onValidHex",at),Br("onInvalidHex",at)],factory:e});return o},tF=function(){return Qv.config({find:St.some})},eF=function(n){return Qv.config({find:n.getOpt})},oF=function(n){return Qv.config({find:function(t){return za(t.element(),n).bind(function(n){return t.getSystem().getByDom(n).toOption()})}})},rF={self:tF,memento:eF,childAt:oF},iF={"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"},uF=function(n){return iF[n]},aF=function(n){return uF(n)},cF=function(){var t=function(n){return"tox-"+n},e=nF(aF,t),o=function(n){oa(n,_E,{name:"hex-valid",value:!0})},r=function(n){oa(n,_E,{name:"hex-valid",value:!1})},i=sC(e.sketch({dom:{tag:"div",classes:[t("color-picker-container")],attributes:{role:"presentation"}},onValidHex:o,onInvalidHex:r}));return{dom:{tag:"div"},components:[i.asSpec()],behaviours:bd([Ah.config({store:{mode:"manual",getValue:function(n){var t=i.get(n),e=Qv.getCurrent(t),o=e.bind(function(n){var t=Ah.getValue(n);return t.hex});return o.map(function(n){return"#"+n}).getOr("")},setValue:function(t,e){var o=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,r=o.exec(e),u=i.get(t),a=Qv.getCurrent(u);a.fold(function(){n.console.log("Can not find form")},function(n){Ah.setValue(n,{hex:St.from(r[1]).getOr("")}),YM.getField(n,"hex").each(function(n){ea(n,Ou())})})}}}),rF.self()])}},sF=tinymce.util.Tools.resolve("tinymce.Resource"),fF=function(n){return Object.prototype.hasOwnProperty.call(n,"init")},lF=function(n){var t=zr(St.none()),e=sC({dom:{tag:n.tag}}),o=zr(St.none());return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:bd([rw("editor-foo-events",[Sa(function(r){e.getOpt(r).each(function(e){(fF(n)?n.init(e.element().dom()):sF.load(n.scriptId,n.scriptUrl).then(function(t){return t(e.element().dom(),n.settings)})).then(function(n){o.get().each(function(t){n.setValue(t)}),o.set(St.none()),t.set(St.some(n))})})})]),Ah.config({store:{mode:"manual",getValue:function(){return t.get().fold(function(){return o.get().getOr("")},function(n){return n.getValue()})},setValue:function(n,e){t.get().fold(function(){o.set(St.some(e))
},function(n){return n.setValue(e)})}}}),rF.self()]),components:[e.asSpec()]}},dF=Mo([Br("preprocess",lt),Br("postprocess",lt)]),mF=function(n,t){var e=$o("RepresentingConfigs.memento processors",dF,t);return Ah.config({store:{mode:"manual",getValue:function(t){var o=n.get(t),r=Ah.getValue(o);return e.postprocess(r)},setValue:function(t,o){var r=e.preprocess(o),i=n.get(t);Ah.setValue(i,r)}}})},gF=function(n,t,e){return Ah.config(Be({store:{mode:"manual",getValue:t,setValue:e}},n.map(function(n){return{store:{initialValue:n}}}).getOr({})))},pF=function(n,t,e){return gF(n,function(n){return t(n.element())},function(n,t){return e(n.element(),t)})},hF=function(n){return pF(n,Us,Ws)},vF=function(n){return pF(n,Za,nc)},bF=function(n){return Ah.config({store:{mode:"memory",initialValue:n}})},yF={memento:mF,withElement:pF,withComp:gF,domValue:hF,domHtml:vF,memory:bF},xF=".jpg,.jpeg,.png,.gif",wF=function(n){var t=new RegExp("("+xF.split(/\s*,\s*/).join("|")+")$","i");return Kt(fe(n),function(n){return t.test(n.name)})},SF=function(n,t){var e=function(n,t){t.stop()},o=function(n){return function(t,e){Xt(n,function(n){n(t,e)})}},r=function(n,t){if(!CO.isDisabled(n)){var e=t.event().raw();u(n,e.dataTransfer.files)}},i=function(n,t){var e=t.event().raw().target.files;u(n,e)},u=function(t,e){Ah.setValue(t,wF(e)),oa(t,CE,{name:n.name})},a=sC({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:bd([rw("input-file-events",[ya(Tu()),ya(Hu())])])}),c=function(n){return{uid:n.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:bd([yF.memory([]),rF.self(),CO.config({}),Mw.config({toggleClass:"dragenter",toggleOnExecute:!1}),rw("dropzone-events",[da("dragenter",o([e,Mw.toggle])),da("dragleave",o([e,Mw.toggle])),da("dragover",e),da("drop",o([e,r])),da(_u(),i)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:t.translate("Drop an image here")}},cC.sketch({dom:{tag:"button",innerHtml:t.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[a.asSpec()],action:function(n){var t=a.get(n);t.element().dom().click()},buttonBehaviours:bd([vB.config({})])})]}]}},s=n.label.map(function(n){return CB(n,t)}),f=HE.parts().field({factory:{sketch:c}});return bB(s,f,["tox-form__group--stretched"],[])},CF=function(n,t){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+n.columns+"col"]},components:Gt(n.items,t.interpreter)}},kF=Sc("alloy-fake-before-tabstop"),OF=Sc("alloy-fake-after-tabstop"),_F=function(n){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:n},behaviours:bd([mw.config({ignore:!0}),vB.config({})])}},TF=function(n){return{dom:{tag:"div",classes:["tox-navobj"]},components:[_F([kF]),n,_F([OF])],behaviours:bd([rF.childAt(1)])}},EF=function(n,t){oa(n,Cu(),{raw:{which:9,shiftKey:t}})},BF=function(n,t){var e=t.element();ks(e,kF)?EF(n,!0):ks(e,OF)&&EF(n,!1)},DF=function(n){return JT(n,["."+kF,"."+OF].join(","),ft(!1))},AF={isPseudoStop:DF,onFocus:BF,craft:TF},MF=!(Ui().browser.isIE()||Ui().browser.isEdge()),FF=function(n){var t=zr("");return{getValue:function(){return t.get()},setValue:function(e,o){if(n)cc(e.element(),"srcdoc",o);else{cc(e.element(),"src","javascript:''");var r=e.element().dom().contentWindow.document;r.open(),r.write(o),r.close()}t.set(o)}}},IF=function(n,t){var e=MF&&n.sandboxed,o=vt(vt({},n.label.map(function(n){return{title:n}}).getOr({})),e?{sandbox:"allow-scripts allow-same-origin"}:{}),r=FF(e),i=n.label.map(function(n){return CB(n,t)}),u=function(n){return AF.craft({uid:n.uid,dom:{tag:"iframe",attributes:o},behaviours:bd([vB.config({}),mw.config({}),yF.withComp(St.none(),r.getValue,r.setValue)])})},a=HE.parts().field({factory:{sketch:u}});return bB(i,a,["tox-form__group--stretched"],[])},RF=function(){function t(n,t){return function(){return n.apply(t,arguments)}}function e(n){var t=this;return null===this._state?void this._deferreds.push(n):void s(function(){var e=t._state?n.onFulfilled:n.onRejected;if(null===e)return void(t._state?n.resolve:n.reject)(t._value);var o;try{o=e(t._value)}catch(r){return void n.reject(r)}n.resolve(o)})}function o(n){try{if(n===this)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var e=n.then;if("function"==typeof e)return void a(t(e,n),t(o,this),t(r,this))}this._state=!0,this._value=n,i.call(this)}catch(u){r.call(this,u)}}function r(n){this._state=!1,this._value=n,i.call(this)}function i(){for(var n=0,t=this._deferreds;n<t.length;n++){var o=t[n];e.call(this,o)}this._deferreds=[]}function u(n,t,e,o){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.resolve=e,this.reject=o}function a(n,t,e){var o=!1;try{n(function(n){o||(o=!0,t(n))},function(n){o||(o=!0,e(n))})}catch(r){if(o)return;o=!0,e(r)}}var c=function(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],a(n,t(o,this),t(r,this))},s=c.immediateFn||"function"==typeof window.setImmediate&&window.setImmediate||function(t){n.setTimeout(t,1)},f=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)};return c.prototype.catch=function(n){return this.then(null,n)},c.prototype.then=function(n,t){var o=this;return new c(function(r,i){e.call(o,new u(n,t,r,i))})},c.all=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=Array.prototype.slice.call(1===n.length&&f(n[0])?n[0]:n);return new c(function(n,t){function o(i,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var a=u.then;if("function"==typeof a)return void a.call(u,function(n){o(i,n)},t)}e[i]=u,0===--r&&n(e)}catch(c){t(c)}}if(0===e.length)return n([]);for(var r=e.length,i=0;i<e.length;i++)o(i,e[i])})},c.resolve=function(n){return n&&"object"==typeof n&&n.constructor===c?n:new c(function(t){t(n)})},c.reject=function(n){return new c(function(t,e){e(n)})},c.race=function(n){return new c(function(t,e){for(var o=0,r=n;o<r.length;o++){var i=r[o];i.then(t,e)}})},c},VF=window.Promise?window.Promise:RF(),HF=function(n){return D(n)},NF=[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],PF=W([-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]),zF=U(V),LF=U(R),jF=function(n,t,e,o){return N(n,H(F(),t,e,o))},UF=G([0,-1,0,-1,5,-1,0,-1,0]),WF=j(function(n,t){return 255*Math.pow(n/255,1-t)}),GF=function(n){return PF(n)},XF=function(n){return UF(n)},YF=function(n,t){return WF(n,t)},qF=function(n,t,e,o){return jF(n,t,e,o)},KF=function(n,t){return zF(n,t)},JF=function(n,t){return LF(n,t)},$F=function(n,t){return J(n,t)},QF=function(n,t,e,o,r){return Q(n,t,e,o,r)},ZF=function(n,t,e){return nt(n,t,e)},nI=function(n,t){return q(n,t)},tI=function(n,t){return vt({dom:{tag:"span",innerHtml:n,classes:["tox-icon","tox-tbtn__icon-wrap"]}},t)},eI=function(n,t){return tI(lC(n,t),{})},oI=function(n,t){return tI(lC(n,t),{behaviours:bd([ew.config({})])})},rI=function(n,t,e){return{dom:{tag:"span",innerHtml:e.translate(n),classes:[t+"__select-label"]},behaviours:bd([ew.config({})])}},iI=Sc("toolbar.button.execute"),uI=function(n){return Oa(function(t){BO(n,t)(function(e){oa(t,iI,{buttonApi:e}),n.onAction(e)})})},aI={"alloy.execute":["disabling","alloy.base.behaviour","toggling","toolbar-button-events"]},cI=Sc("update-menu-text"),sI=Sc("update-menu-icon"),fI=function(n,t,e){var r=zr(at),i=n.text.map(function(n){return sC(rI(n,t,e.providers))}),u=n.icon.map(function(n){return sC(oI(n,e.providers.icons))}),a=function(n,t){var e=Ah.getValue(n);return mw.focus(e),oa(e,"keydown",{raw:t.event().raw()}),qB.close(e),St.some(!0)},c=n.role.fold(function(){return{}},function(n){return{role:n}}),s=n.tooltip.fold(function(){return{}},function(n){var t=e.providers.translate(n);return{title:t,"aria-label":t}}),f=sC(qB.sketch(vt(vt({},c),{dom:{tag:"button",classes:[t,t+"--select"].concat(Gt(n.classes,function(n){return t+"--"+n})),attributes:vt({},s)},components:VO([u.map(function(n){return n.asSpec()}),i.map(function(n){return n.asSpec()}),St.some({dom:{tag:"div",classes:[t+"__select-chevron"],innerHtml:lC("chevron-down",e.providers.icons)}})]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:bd(o(n.dropdownBehaviours,[EO.button(n.disabled),QB.config({}),ew.config({}),rw("dropdown-events",[DO(n,r),AO(n,r)]),rw("menubutton-update-display-text",[da(cI,function(n,t){i.bind(function(t){return t.getOpt(n)}).each(function(n){ew.set(n,[nf(e.providers.translate(t.event().text()))])})}),da(sI,function(n,t){u.bind(function(t){return t.getOpt(n)}).each(function(n){ew.set(n,[oI(t.event().icon(),e.providers.icons)])})})])])),eventOrder:Be(aI,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:bd([Xx.config({mode:"special",onLeft:a,onRight:a})]),lazySink:e.getSink,toggleClass:t+"--active",parts:{menu:cT(!1,n.columns,n.presets)},fetch:function(){return tB.nu(n.fetch)}})));return f.asSpec()},lI=function(n){return Bt(n)},dI=function(n){return"separator"===n.type},mI=function(n){return we(n,"getSubmenuItems")},gI={type:"separator"},pI=function(n,t){var e=$t(n,function(n,e){return lI(e)?""===e?n:"|"===e?n.length>0&&!dI(n[n.length-1])?n.concat([gI]):n:we(t,e.toLowerCase())?n.concat([t[e.toLowerCase()]]):n:n.concat([e])},[]);return e.length>0&&dI(e[e.length-1])&&e.pop(),e},hI=function(n,t){var e=n.getSubmenuItems(),o=yI(e,t),r=Be(o.menus,eo(n.value,o.items)),i=Be(o.expansions,eo(n.value,n.value));return{item:n,menus:r,expansions:i}},vI=function(n,t){return mI(n)?hI(n,t):{item:n,menus:{},expansions:{}}},bI=function(n){if(dI(n))return n;var t=xe(n,"value").getOrThunk(function(){return Sc("generated-menu-item")});return Be({value:t},n)},yI=function(n,t){var e=pI(Bt(n)?n.split(" "):n,t);return Jt(e,function(n,e){var o=bI(e),r=vI(o,t);return{menus:Be(n.menus,r.menus),items:[r.item].concat(n.items),expansions:Be(n.expansions,r.expansions)}},{menus:{},expansions:{},items:[]})},xI=function(n,t,e,o){var r=Sc("primary-menu"),i=yI(n,e.shared.providers.menuItems());if(0===i.items.length)return St.none();var u=LT(r,i.items,t,e,o),a=pe(i.menus,function(n,o){return LT(o,n,t,e,!1)}),c=Be(a,eo(r,u));return St.from(pS.tieredData(r,c,i.expansions))},wI=function(n){return{isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)},setActive:function(t){var e=n.element();t?(ws(e,"tox-tbtn--enabled"),cc(e,"aria-pressed",!0)):(Cs(e,"tox-tbtn--enabled"),mc(e,"aria-pressed"))},isActive:function(){return ks(n.element(),"tox-tbtn--enabled")}}},SI=function(n,t,e,o){return fI({text:n.text,icon:n.icon,tooltip:n.tooltip,role:o,fetch:function(t){n.fetch(function(n){t(xI(n,FO.CLOSE_ON_EXECUTE,e,!1))})},onSetup:n.onSetup,getApi:wI,columns:1,presets:"normal",classes:[],dropdownBehaviours:[vB.config({})]},t,e.shared)},CI=function(n,t,e){var o=function(n){return function(o){var r=!o.isActive();o.setActive(r),n.storage.set(r),e.shared.getSink().each(function(e){t().getOpt(e).each(function(t){Ad(t.element()),oa(t,_E,{name:n.name,value:n.storage.get()})})})}},r=function(n){return function(t){t.setActive(n.storage.get())}};return function(t){t(Gt(n,function(n){var t=n.text.fold(function(){return{}},function(n){return{text:n}});return vt(vt({type:n.type,active:!1},t),{onAction:o(n),onSetup:r(n)})}))}},kI=function(n,t,e,o,r){void 0===e&&(e=[]);var i=t.fold(function(){return{}},function(n){return{action:n}}),u=vt({buttonBehaviours:bd([EO.button(n.disabled),vB.config({}),rw("button press",[la("click"),la("mousedown")])].concat(e)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},i),a=Be(u,{dom:o});return Be(a,{components:r})},OI=function(n,t,e,o){void 0===o&&(o=[]);var r=n.tooltip.map(function(n){return{"aria-label":e.translate(n),title:e.translate(n)}}).getOr({}),i={tag:"button",classes:["tox-tbtn"],attributes:r},u=n.icon.map(function(n){return eI(n,e.icons)}),a=VO([u]);return kI(n,t,o,i,a)},_I=function(n,t,e,o){void 0===o&&(o=[]);var r=OI(n,St.some(t),e,o);return cC.sketch(r)},TI=function(n,t,e,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var u=e.translate(n.text),a=n.icon?n.icon.map(function(n){return eI(n,e.icons)}):St.none(),c=a.isSome()?VO([a]):[],s=a.isSome()?{}:{innerHtml:u},f=o(n.primary||n.borderless?["tox-button"]:["tox-button","tox-button--secondary"],a.isSome()?["tox-button--icon"]:[],n.borderless?["tox-button--naked"]:[],i),l=vt(vt({tag:"button",classes:f},s),{attributes:{title:u}});return kI(n,t,r,l,c)},EI=function(n,t,e,o,r){void 0===o&&(o=[]),void 0===r&&(r=[]);var i=TI(n,St.some(t),e,o,r);return cC.sketch(i)},BI=function(t,e){return function(o){"custom"===e?oa(o,_E,{name:t,value:{}}):"submit"===e?ea(o,TE):"cancel"===e?ea(o,OE):n.console.error("Unknown button type: ",e)}},DI=function(n,t){return"menu"===t},AI=function(n,t){return"custom"===t||"cancel"===t||"submit"===t},MI=function(t,e,o){if(DI(t,e)){var r=function(){return a},i=t,u=vt(vt({},t),{onSetup:function(n){return n.setDisabled(t.disabled),at},fetch:CI(i.items,r,o)}),a=sC(SI(u,"tox-tbtn",o,St.none()));return a.asSpec()}if(AI(t,e)){var c=BI(t.name,e),s=vt(vt({},t),{borderless:!1});return EI(s,c,o.shared.providers,[])}n.console.error("Unknown footer button type: ",e)},FI=function(n,t){var e=BI(n.name,"custom");return yB(St.none(),HE.parts().field(vt({factory:cC},TI(n,St.some(e),t,[yF.memory(""),rF.self()]))))},II=ft([Br("field1Name","field1"),Br("field2Name","field2"),Sl("onLockedChange"),bl(["lockClass"]),Br("locked",!1),Rh.field("coupledFieldBehaviours",[Qv,Ah])]),RI=function(n,t,e){return Ov(n,t,e).bind(Qv.getCurrent)},VI=function(n,t){return fv({factory:HE,name:n,overrides:function(n){return{fieldBehaviours:bd([rw("coupled-input-behaviour",[da(Ou(),function(e){RI(e,n,t).each(function(t){Ov(e,n,"lock").each(function(o){Mw.isOn(o)&&n.onLockedChange(e,t,o)})})})])])}}})},HI=ft([VI("field1","field2"),VI("field2","field1"),fv({factory:cC,schema:[fr("dom")],name:"lock",overrides:function(n){return{buttonBehaviours:bd([Mw.config({selected:n.locked,toggleClass:n.markers.lockClass,aria:{mode:"pressed"}})])}}})]),NI=function(n,t){return{uid:n.uid,dom:n.dom,components:t,behaviours:Rh.augment(n.coupledFieldBehaviours,[Qv.config({find:St.some}),Ah.config({store:{mode:"manual",getValue:function(t){var e,o=Dv(t,n,["field1","field2"]);return e={},e[n.field1Name]=Ah.getValue(o.field1()),e[n.field2Name]=Ah.getValue(o.field2()),e},setValue:function(t,e){var o=Dv(t,n,["field1","field2"]);Se(e,n.field1Name)&&Ah.setValue(o.field1(),e[n.field1Name]),Se(e,n.field2Name)&&Ah.setValue(o.field2(),e[n.field2Name])}}})]),apis:{getField1:function(t){return Ov(t,n,"field1")},getField2:function(t){return Ov(t,n,"field2")},getLock:function(t){return Ov(t,n,"lock")}}}},PI=Uv({name:"FormCoupledInputs",configFields:II(),partFields:HI(),factory:NI,apis:{getField1:function(n,t){return n.getField1(t)},getField2:function(n,t){return n.getField2(t)},getLock:function(n,t){return n.getLock(t)}}}),zI=function(n){var t={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,"in":4,"%":4},e=function(n){return n in t?t[n]:1},o=n.value.toFixed(e(n.unit));return-1!==o.indexOf(".")&&(o=o.replace(/\.?0*$/,"")),o+n.unit},LI=function(n){var t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,e=t.exec(n);if(null!==e){var o=parseFloat(e[1]),r=e[2];return _t.value({value:o,unit:r})}return _t.error(n)},jI=function(n,t){var e={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,"in":1},o=function(n){return Object.prototype.hasOwnProperty.call(e,n)};return n.unit===t?St.some(n.value):o(n.unit)&&o(t)?St.some(e[n.unit]===e[t]?n.value:n.value/e[n.unit]*e[t]):St.none()},UI=function(){return St.none()},WI=function(n,t){return function(e){return jI(e,t).map(function(e){return{value:e*n,unit:t}})}},GI=function(n,t){var e=LI(n).toOption(),o=LI(t).toOption();return Xv(e,o,function(n,t){return jI(n,t.unit).map(function(n){return t.value/n}).map(function(n){return WI(n,t.unit)}).getOr(UI)}).getOr(UI)},XI=function(n,t){var e=UI,o=Sc("ratio-event"),r=PI.parts().lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:t.translate(n.label.getOr("Constrain proportions"))}},components:[{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__lock"],innerHtml:lC("lock",t.icons)}},{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__unlock"],innerHtml:lC("unlock",t.icons)}}],buttonBehaviours:bd([EO.button(n.disabled),vB.config({})])}),i=function(n){return{dom:{tag:"div",classes:["tox-form__group"]},components:n}},u=function(t){return HE.parts().field({factory:UE,inputClasses:["tox-textfield"],inputBehaviours:bd([CO.config({disabled:n.disabled}),vB.config({}),rw("size-input-events",[da(wu(),function(n){oa(n,o,{isField1:t})}),da(_u(),function(t){oa(t,CE,{name:n.name})})])]),selectOnFocus:!1})},a=function(n){return{dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(n)}}},c=PI.parts().field1(i([HE.parts().label(a("Width")),u(!0)])),s=PI.parts().field2(i([HE.parts().label(a("Height")),u(!1)]));return PI.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[c,s,i([a("&nbsp;"),r])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(n,t){LI(Ah.getValue(n)).each(function(n){e(n).each(function(n){Ah.setValue(t,zI(n))})})},coupledFieldBehaviours:bd([CO.config({disabled:n.disabled,onDisabled:function(n){PI.getField1(n).bind(HE.getField).each(CO.disable),PI.getField2(n).bind(HE.getField).each(CO.disable),PI.getLock(n).each(CO.disable)},onEnabled:function(n){PI.getField1(n).bind(HE.getField).each(CO.enable),PI.getField2(n).bind(HE.getField).each(CO.enable),PI.getLock(n).each(CO.enable)}}),rw("size-input-events2",[da(o,function(n,t){var o=t.event().isField1(),r=o?PI.getField1(n):PI.getField2(n),i=o?PI.getField2(n):PI.getField1(n),u=r.map(Ah.getValue).getOr(""),a=i.map(Ah.getValue).getOr("");e=GI(u,a)})])])})},YI=ft(Sc("undo")),qI=ft(Sc("redo")),KI=ft(Sc("zoom")),JI=ft(Sc("back")),$I=ft(Sc("apply")),QI=ft(Sc("swap")),ZI=ft(Sc("transform")),nR=ft(Sc("temp-transform")),tR=ft(Sc("transform-apply")),eR={undo:YI,redo:qI,zoom:KI,back:JI,apply:$I,swap:QI,transform:ZI,tempTransform:nR,transformApply:tR},oR=ft("save-state"),rR=ft("disable"),iR=ft("enable"),uR={formActionEvent:_E,saveState:oR,disable:rR,enable:iR},aR=function(n,t){var e=function(n,e,o,r){return sC(EI({name:n,text:n,disabled:o,primary:r,icon:St.none(),borderless:!1},e,t))},o=function(n,e,o,r){return sC(_I({name:n,icon:St.some(n),tooltip:St.some(e),disabled:r,primary:!1,borderless:!1},o,t))},r=function(n,t){n.map(function(n){var e=n.get(t);e.hasConfigured(CO)&&CO.disable(e)})},i=function(n,t){n.map(function(n){var e=n.get(t);e.hasConfigured(CO)&&CO.enable(e)})},u={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},a=at,c=function(n,t,e){oa(n,t,e)},s=function(n){return ea(n,uR.disable())},f=function(n){return ea(n,uR.enable())},l=function(n,t){s(n),c(n,eR.transform(),{transform:t}),f(n)},d=function(n,t){s(n),c(n,eR.tempTransform(),{transform:t}),f(n)},m=function(n){return function(){ot.getOpt(n).each(function(n){ew.set(n,[tt])})}},g=function(n,t){s(n),c(n,eR.transformApply(),{transform:t,swap:m(n)}),f(n)},p=function(){return e("Back",function(n){return c(n,eR.back(),{swap:m(n)})},!1,!1)},h=function(){return sC({dom:{tag:"div",classes:["tox-spacer"]},behaviours:bd([CO.config({})])})},v=function(){return e("Apply",function(n){return c(n,eR.apply(),{swap:m(n)})},!0,!0)},b=function(){return function(t){var e=n.getRect();return QF(t,e.x,e.y,e.w,e.h)}},y=[p(),h(),e("Apply",function(t){var e=b();g(t,e),n.hideCrop()},!1,!0)],x=wE.sketch({dom:u,components:y.map(function(n){return n.asSpec()}),containerBehaviours:bd([rw("image-tools-crop-buttons-events",[da(uR.disable(),function(n){r(y,n)}),da(uR.enable(),function(n){i(y,n)})])])}),w=sC(XI({name:"size",label:St.none(),constrain:!0,disabled:!1},t)),S=function(n,t){return function(e){return ZF(e,n,t)}},C=[p(),h(),w,h(),e("Apply",function(n){w.getOpt(n).each(function(t){var e=Ah.getValue(t),o=parseInt(e.width,10),r=parseInt(e.height,10),i=S(o,r);g(n,i)})},!1,!0)],k=wE.sketch({dom:u,components:C.map(function(n){return n.asSpec()}),containerBehaviours:bd([rw("image-tools-resize-buttons-events",[da(uR.disable(),function(n){r(C,n)}),da(uR.enable(),function(n){i(C,n)})])])}),O=function(n,t){return function(e){return n(e,t)}},_=O($F,"h"),T=O($F,"v"),E=O(nI,-90),B=O(nI,90),D=function(n,t){d(n,t)},A=[p(),h(),o("flip-horizontally","Flip horizontally",function(n){D(n,_)},!1),o("flip-vertically","Flip vertically",function(n){D(n,T)},!1),o("rotate-left","Rotate counterclockwise",function(n){D(n,E)},!1),o("rotate-right","Rotate clockwise",function(n){D(n,B)},!1),h(),v()],M=wE.sketch({dom:u,components:A.map(function(n){return n.asSpec()}),containerBehaviours:bd([rw("image-tools-fliprotate-buttons-events",[da(uR.disable(),function(n){r(A,n)}),da(uR.enable(),function(n){i(A,n)})])])}),F=function(n,e,o,r,i){var u=PM.parts().label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(n)}}),a=PM.parts().spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),c=PM.parts().thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return sC(PM.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:o,maxX:i,getInitialValue:ft({x:ft(r)})},components:[u,a,c],sliderBehaviours:bd([mw.config({})]),onChoose:e}))},I=function(n,t,e,o,r){var i=function(n,e,o){var r=O(t,o.x()/100);l(n,r)};return F(n,i,e,o,r)},R=function(n,t,e,o,r){return[p(),I(n,t,e,o,r),v()]},V=function(n,t,e,o,a){var c=R(n,t,e,o,a);return wE.sketch({dom:u,components:c.map(function(n){return n.asSpec()}),containerBehaviours:bd([rw("image-tools-filter-panel-buttons-events",[da(uR.disable(),function(n){r(c,n)}),da(uR.enable(),function(n){i(c,n)})])])})},H=[p(),h(),v()],N=wE.sketch({dom:u,components:H.map(function(n){return n.asSpec()})}),P=V("Brightness",KF,-100,0,100),z=V("Contrast",JF,-100,0,100),L=V("Gamma",YF,-100,0,100),j=function(n,t,e){return function(o){return qF(o,n,t,e)}},U=function(n){var t=function(n){var t=W.getOpt(n),e=X.getOpt(n),o=G.getOpt(n);t.each(function(t){e.each(function(e){o.each(function(o){var r=Ah.getValue(t).x()/100,i=Ah.getValue(o).x()/100,u=Ah.getValue(e).x()/100,a=j(r,i,u);l(n,a)})})})};return F(n,t,0,100,200)},W=U("R"),G=U("G"),X=U("B"),Y=[p(),W,G,X,v()],q=wE.sketch({dom:u,components:Y.map(function(n){return n.asSpec()})}),K=function(n,t,e){return function(o){var r=function(){ot.getOpt(o).each(function(t){ew.set(t,[n]),e(t)})};c(o,eR.swap(),{transform:t,swap:r})}},J=function(){n.showCrop()},$=function(t){w.getOpt(t).each(function(t){var e=n.getMeasurements(),o=e.width,r=e.height;Ah.setValue(t,{width:o,height:r})})},Q=St.some(XF),Z=St.some(GF),nt=[o("crop","Crop",K(x,St.none(),J),!1),o("resize","Resize",K(k,St.none(),$),!1),o("orientation","Orientation",K(M,St.none(),a),!1),o("brightness","Brightness",K(P,St.none(),a),!1),o("sharpen","Sharpen",K(N,Q,a),!1),o("contrast","Contrast",K(z,St.none(),a),!1),o("color-levels","Color levels",K(q,St.none(),a),!1),o("gamma","Gamma",K(L,St.none(),a),!1),o("invert","Invert",K(N,Z,a),!1)],tt=wE.sketch({dom:u,components:nt.map(function(n){return n.asSpec()})}),et=wE.sketch({dom:{tag:"div"},components:[tt],containerBehaviours:bd([ew.config({})])}),ot=sC(et),rt=function(n){return ot.getOpt(n).map(function(n){var t=n.components()[0];return t.components()[t.components().length-1]})};return{memContainer:ot,getApplyButton:rt}},cR=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),sR=tinymce.util.Tools.resolve("tinymce.geom.Rect"),fR=tinymce.util.Tools.resolve("tinymce.util.Observable"),lR=tinymce.util.Tools.resolve("tinymce.util.Tools"),dR=tinymce.util.Tools.resolve("tinymce.util.VK"),mR=0,gR=function(n,t,e,o,r){function i(t,o,r,i){var u,a,c,s,f;u=o.x,a=o.y,c=o.w,s=o.h,u+=r*t.deltaX,a+=i*t.deltaY,c+=r*t.deltaW,s+=i*t.deltaH,20>c&&(c=20),20>s&&(s=20),f=n=sR.clamp({x:u,y:a,w:c,h:s},e,"move"===t.name),f=w(e,f),g.fire("updateRect",{rect:f}),l(f)}function u(){function t(t){var e;return new ot(b,{document:o.ownerDocument,handle:b+"-"+t.name,start:function(){e=n},drag:function(n){i(t,e,n.deltaX,n.deltaY)}})}cR('<div id="'+b+'" class="'+v+'croprect-container" role="grid" aria-dropeffect="execute">').appendTo(o),lR.each(h,function(n){cR("#"+b,o).append('<div id="'+b+"-"+n+'"class="'+v+'croprect-block" style="display: none" data-mce-bogus="all">')}),lR.each(y,function(n){cR("#"+b,o).append('<div id="'+b+"-"+n.name+'" class="'+v+"croprect-handle "+v+"croprect-handle-"+n.name+'"style="display: none" data-mce-bogus="all" role="gridcell" tabindex="-1" aria-label="'+n.label+'" aria-grabbed="false" title="'+n.label+'">')}),p=lR.map(y,t),c(n),cR(o).on("focusin focusout",function(n){cR(n.target).attr("aria-grabbed","focus"===n.type?"true":"false")}),cR(o).on("keydown",function(t){function e(n,t,e,r,u){n.stopPropagation(),n.preventDefault(),i(o,e,r,u)}var o;switch(lR.each(y,function(n){return t.target.id===b+"-"+n.name?(o=n,!1):void 0}),t.keyCode){case dR.LEFT:e(t,o,n,-10,0);break;case dR.RIGHT:e(t,o,n,10,0);break;case dR.UP:e(t,o,n,0,-10);break;case dR.DOWN:e(t,o,n,0,10);break;case dR.ENTER:case dR.SPACEBAR:t.preventDefault(),r()}})}function a(n){var t;t=lR.map(y,function(n){return"#"+b+"-"+n.name}).concat(lR.map(h,function(n){return"#"+b+"-"+n})).join(","),n?cR(t,o).show():cR(t,o).hide()}function c(n){function e(n,t){t.h<0&&(t.h=0),t.w<0&&(t.w=0),cR("#"+b+"-"+n,o).css({left:t.x,top:t.y,width:t.w,height:t.h})}lR.each(y,function(t){cR("#"+b+"-"+t.name,o).css({left:n.w*t.xMul+n.x,top:n.h*t.yMul+n.y})}),e("top",{x:t.x,y:t.y,w:t.w,h:n.y-t.y}),e("right",{x:n.x+n.w,y:n.y,w:t.w-n.x-n.w+t.x,h:n.h}),e("bottom",{x:t.x,y:n.y+n.h,w:t.w,h:t.h-n.y-n.h+t.y}),e("left",{x:t.x,y:n.y,w:n.x-t.x,h:n.h}),e("move",n)}function s(t){n=t,c(n)}function f(e){t=e,c(n)}function l(n){s(x(e,n))}function d(t){e=t,c(n)}function m(){lR.each(p,function(n){n.destroy()}),p=[]}var g,p,h,v="tox-",b=v+"crid-"+mR++,y=[{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"}];h=["top","right","bottom","left"];var x=function(n,t){return{x:t.x+n.x,y:t.y+n.y,w:t.w,h:t.h}},w=function(n,t){return{x:t.x-n.x,y:t.y-n.y,w:t.w,h:t.h}},S=function(){return w(e,n)};return u(),g=lR.extend({toggleVisibility:a,setClampRect:d,setRect:s,getInnerRect:S,setInnerRect:l,setViewPortRect:f,destroy:m},fR)},pR={create:gR},hR=function(n){return new IC(function(t){var e=function(){n.removeEventListener("load",e),t(n)};n.complete?t(n):n.addEventListener("load",e)})},vR=function(n){var t=sC({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),e=zr(1),o=zr(St.none()),r=zr({x:0,y:0,w:1,h:1}),i=zr({x:0,y:0,w:1,h:1}),u=function(n,i){g.getOpt(n).each(function(n){var u=e.get(),a=bf(n.element()),c=af(n.element()),s=i.dom().naturalWidth*u,f=i.dom().naturalHeight*u,l=Math.max(0,a/2-s/2),d=Math.max(0,c/2-f/2),m={left:l.toString()+"px",top:d.toString()+"px",width:s.toString()+"px",height:f.toString()+"px",position:"absolute"};Is(i,m),t.getOpt(n).each(function(n){Is(n.element(),m)}),o.get().each(function(n){var t=r.get();n.setRect({x:t.x*u+l,y:t.y*u+d,w:t.w*u,h:t.h*u}),n.setClampRect({x:l,y:d,w:s,h:f}),n.setViewPortRect({x:0,y:0,w:a,h:c})})})},a=function(n,t){g.getOpt(n).each(function(n){var o=bf(n.element()),r=af(n.element()),i=t.dom().naturalWidth,u=t.dom().naturalHeight,a=Math.min(o/i,r/u);e.set(a>=1?1:a)})},c=function(n,t){var e=Xr.fromTag("img");return cc(e,"src",t),hR(e.dom()).then(function(){return g.getOpt(n).map(function(n){var t=tf({element:e});ew.replaceAt(n,1,St.some(t));var o=i.get(),c={x:0,y:0,w:e.dom().naturalWidth,h:e.dom().naturalHeight};i.set(c);var s=sR.inflate(c,-20,-20);return r.set(s),(o.w!==c.w||o.h!==c.h)&&a(n,e),u(n,e),e})})},s=function(n,t){var o=e.get(),r=t>0?Math.min(2,o+.1):Math.max(.1,o-.1);e.set(r),g.getOpt(n).each(function(n){var t=n.components()[1].element();u(n,t)})},f=function(){o.get().each(function(n){n.toggleVisibility(!0)})},l=function(){o.get().each(function(n){n.toggleVisibility(!1)})},d=function(){return r.get()},m=wE.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[t.asSpec(),{dom:{tag:"img",attributes:{src:n}}},{dom:{tag:"div"},behaviours:bd([rw("image-panel-crop-events",[Sa(function(n){g.getOpt(n).each(function(n){var t=n.element().dom(),i=pR.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,function(){});i.toggleVisibility(!1),i.on("updateRect",function(n){var t=n.rect,o=e.get(),i={x:Math.round(t.x/o),y:Math.round(t.y/o),w:Math.round(t.w/o),h:Math.round(t.h/o)};r.set(i)}),o.set(St.some(i))})})])])}],containerBehaviours:bd([ew.config({}),rw("image-panel-events",[Sa(function(t){c(t,n)})])])}),g=sC(m),p=function(){var n=i.get();return{width:n.w,height:n.h}};return{memContainer:g,updateSrc:c,zoom:s,showCrop:f,hideCrop:l,getRect:d,getMeasurements:p}},bR=function(n,t,e,o,r){return _I({name:n,icon:St.some(t),disabled:e,tooltip:St.some(n),primary:!1,borderless:!1},o,r)},yR=function(n,t){t?CO.enable(n):CO.disable(n)},xR=function(n){var t=function(n,t,r){e.getOpt(n).each(function(n){yR(n,t)}),o.getOpt(n).each(function(n){yR(n,r)})},e=sC(bR("Undo","undo",!0,function(n){oa(n,eR.undo(),{direction:1})},n)),o=sC(bR("Redo","redo",!0,function(n){oa(n,eR.redo(),{direction:1})},n)),r=wE.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[e.asSpec(),o.asSpec(),bR("Zoom in","zoom-in",!1,function(n){oa(n,eR.zoom(),{direction:1})},n),bR("Zoom out","zoom-out",!1,function(n){oa(n,eR.zoom(),{direction:-1})},n)]});return{container:r,updateButtonUndoStates:t}},wR=function(t){var e=zr(t),o=zr(St.none()),r=rt();r.add(t);var i=function(){return e.get()},u=function(n){e.set(n)},a=function(){return o.get().fold(function(){return e.get()},function(n){return n})},c=function(n){var t=s(n);return d(),o.set(St.some(t)),t.url},s=function(t){return{blob:t,url:n.URL.createObjectURL(t)}},f=function(t){n.URL.revokeObjectURL(t.url)},l=function(n){lR.each(n,f)},d=function(){o.get().each(f),o.set(St.none())},m=function(n){var t=s(n);u(t);var e=r.add(t).removed;return l(e),t.url},g=function(n){var t=s(n);return o.set(St.some(t)),t.url},p=function(n){return o.get().fold(function(){},function(t){m(t.blob),n()})},h=function(){var n=r.undo();return u(n),n.url},v=function(){var n=r.redo();return u(n),n.url},b=function(){var n=r.canUndo(),t=r.canRedo();return{undoEnabled:n,redoEnabled:t}};return{getBlobState:i,setBlobState:u,addBlobState:m,getTempState:a,updateTempState:c,addTempState:g,applyTempState:p,destroyTempState:d,undo:h,redo:v,getHistoryStates:b}},SR=function(t,e){var o=wR(t.currentState),r=function(n,t){var e=t.event().direction();k.zoom(n,e)},i=function(n){var t=o.getHistoryStates();O.updateButtonUndoStates(n,t.undoEnabled,t.redoEnabled),oa(n,uR.formActionEvent,{name:uR.saveState(),value:t.undoEnabled})},u=function(n){O.updateButtonUndoStates(n,!1,!1)},a=function(n){var t=o.undo();
d(n,t).then(function(){l(n),i(n)})},c=function(n){var t=o.redo();d(n,t).then(function(){l(n),i(n)})},s=function(n){return n.toBlob()},f=function(n){oa(n,uR.formActionEvent,{name:uR.disable(),value:{}})},l=function(n){_.getApplyButton(n).each(function(n){CO.enable(n)}),oa(n,uR.formActionEvent,{name:uR.enable(),value:{}})},d=function(n,t){return f(n),k.updateSrc(n,t)},m=function(t,e,o,r,u){return f(t),HF(e).then(o).then(s).then(r).then(function(n){return d(t,n).then(function(n){return i(t),u(),l(t),n})}).catch(function(e){return n.console.log(e),l(t),e})},g=function(n,t,e){var r=o.getBlobState().blob,i=function(n){return o.updateTempState(n)};m(n,r,t,i,e)},p=function(n,t){var e=o.getTempState().blob,r=function(n){return o.addTempState(n)};m(n,e,t,r,at)},h=function(n,t,e){var r=o.getBlobState().blob,i=function(t){var e=o.addBlobState(t);return b(n),e};m(n,r,t,i,e)},v=function(n,t){var e=function(){b(n);var e=t.event().swap();e()};o.applyTempState(e)},b=function(n){var t=o.getBlobState().url;return o.destroyTempState(),i(n),t},y=function(n){var t=b(n);d(n,t).then(function(){l(n)})},x=function(n,t){y(n);var e=t.event().swap();e(),k.hideCrop()},w=function(n,t){return g(n,t.event().transform(),at)},S=function(n,t){return p(n,t.event().transform())},C=function(n,t){return h(n,t.event().transform(),t.event().swap())},k=vR(t.currentState.url),O=xR(e),_=aR(k,e),T=function(n,t){u(n);var e=t.event().transform(),o=t.event().swap();e.fold(function(){o()},function(t){g(n,t,o)})};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[_.memContainer.asSpec(),k.memContainer.asSpec(),O.container],behaviours:bd([Ah.config({store:{mode:"manual",getValue:function(){return o.getBlobState()}}}),rw("image-tools-events",[da(eR.undo(),a),da(eR.redo(),c),da(eR.zoom(),r),da(eR.back(),x),da(eR.apply(),v),da(eR.transform(),w),da(eR.tempTransform(),S),da(eR.transformApply(),C),da(eR.swap(),T)]),rF.self()])}},CR=function(n){var t=Gt(n.options,function(n){return{dom:{tag:"option",value:n.value,innerHtml:n.text}}}),e=n.data.map(function(n){return eo("initialValue",n)}).getOr({});return{uid:n.uid,dom:{tag:"select",classes:n.selectClasses,attributes:n.selectAttributes},components:t,behaviours:Ih(n.selectBehaviours,[mw.config({}),Ah.config({store:vt({mode:"manual",getValue:function(n){return Us(n.element())},setValue:function(t,e){var o=Qt(n.options,function(n){return n.value===e});o.isSome()&&Ws(t.element(),e)}},e)})])}},kR=jv({name:"HtmlSelect",configFields:[fr("options"),Mh("selectBehaviours",[mw,Ah]),Br("selectClasses",[]),Br("selectAttributes",{}),wr("data")],factory:CR}),OR=function(n,t){var e=Gt(n.items,function(n){return{text:t.translate(n.text),value:n.value}}),o=n.label.map(function(n){return CB(n,t)}),r=HE.parts().field({dom:{},selectAttributes:{size:n.size},options:e,factory:kR,selectBehaviours:bd([CO.config({disabled:n.disabled}),vB.config({}),rw("selectbox-change",[da(_u(),function(t){oa(t,CE,{name:n.name})})])])}),i=n.size>1?St.none():St.some({dom:{tag:"div",classes:["tox-selectfield__icon-js"],innerHtml:lC("chevron-down",t.icons)}}),u={dom:{tag:"div",classes:["tox-selectfield"]},components:ne([[r],i.toArray()])};return HE.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ne([o.toArray(),[u]]),fieldBehaviours:bd([CO.config({disabled:n.disabled,onDisabled:function(n){HE.getField(n).each(CO.disable)},onEnabled:function(n){HE.getField(n).each(CO.enable)}})])})},_R=function(n,t){var e=n.label.map(function(n){return CB(n,t)}),o=[CO.config({disabled:n.disabled}),Xx.config({mode:"execution",useEnter:n.multiline!==!0,useControlEnter:n.multiline===!0,execute:function(n){return ea(n,TE),St.some(!0)}}),rw("textfield-change",[da(Ou(),function(t){oa(t,CE,{name:n.name})}),da(Fu(),function(t){oa(t,CE,{name:n.name})})]),vB.config({})],r=n.validation.map(function(n){return mB.config({getRoot:function(n){return Va(n.element())},invalidClass:"tox-invalid",validator:{validate:function(t){var e=Ah.getValue(t),o=n.validator(e);return tB.pure(o===!0?_t.value(e):_t.error(o))},validateOnLoad:n.validateOnLoad}})}).toArray(),i=n.placeholder.fold(ft({}),function(n){return{placeholder:t.translate(n)}}),u=n.inputMode.fold(ft({}),function(n){return{inputmode:n}}),a=vt(vt({},i),u),c=HE.parts().field({tag:n.multiline===!0?"textarea":"input",inputAttributes:a,inputClasses:[n.classname],inputBehaviours:bd(ne([o,r])),selectOnFocus:!1,factory:UE}),s=n.flex?["tox-form__group--stretched"]:[],f=s.concat(n.maximized?["tox-form-group--maximize"]:[]),l=[CO.config({disabled:n.disabled,onDisabled:function(n){HE.getField(n).each(CO.disable)},onEnabled:function(n){HE.getField(n).each(CO.enable)}})];return bB(e,c,f,l)},TR=function(n,t){return _R({name:n.name,multiline:!1,label:n.label,inputMode:n.inputMode,placeholder:n.placeholder,flex:!1,disabled:n.disabled,classname:"tox-textfield",validation:St.none(),maximized:n.maximized},t)},ER=function(n,t){return _R({name:n.name,multiline:!0,label:n.label,inputMode:St.none(),placeholder:n.placeholder,flex:!0,disabled:n.disabled,classname:"tox-textarea",validation:St.none(),maximized:n.maximized},t)},BR=function(n,t){var e=n.stream.streams,o=e.setup(n,t);return ca([da(n.event,o),Ca(function(){return t.cancel()})].concat(n.cancelEvent.map(function(n){return[da(n,function(){return t.cancel()})]}).getOr([])))},DR=Object.freeze({__proto__:null,events:BR}),AR=function(){var n=zr(null),t=function(){return{timer:null!==n.get()?"set":"unset"}},e=function(t){n.set(t)},o=function(){var t=n.get();null!==t&&t.cancel()};return Uc({readState:t,setTimer:e,cancel:o})},MR=function(n){return n.stream.streams.state(n)},FR=Object.freeze({__proto__:null,throttle:AR,init:MR}),IR=function(n,t){var e=n.stream,o=bC(n.onStream,e.delay);return t.setTimer(o),function(n,t){o.throttle(n,t),e.stopEvent&&t.stop()}},RR=[lr("stream",nr("mode",{throttle:[fr("delay"),Br("stopEvent",!0),kl("streams",{setup:IR,state:AR})]})),Br("event","input"),wr("cancelEvent"),Sl("onStream")],VR=xd({fields:RR,name:"streaming",active:DR,state:FR}),HR=function(n,t,e){var o=Ah.getValue(e);Ah.setValue(t,o),PR(t)},NR=function(n,t){var e=n.element(),o=Us(e),r=e.dom();"number"!==fc(e,"type")&&t(r,o)},PR=function(n){NR(n,function(n,t){return n.setSelectionRange(t.length,t.length)})},zR=function(n,t){NR(n,function(n,e){return n.setSelectionRange(t,e.length)})},LR=function(n,t,e){if(n.selectsOver){var o=Ah.getValue(t),r=n.getDisplayText(o),i=Ah.getValue(e),u=n.getDisplayText(i);return 0===u.indexOf(r)?St.some(function(){HR(n,t,e),zR(t,r.length)}):St.none()}return St.none()},jR=ft("alloy.typeahead.itemexecute"),UR=function(n,t,e,o){var r=function(t,e,r){n.previewing.set(!1);var i=BB.getCoupled(t,"sandbox");if(Kp.isOpen(i))Qv.getCurrent(i).each(function(n){bb.getHighlighted(n).fold(function(){r(n)},function(){aa(i,n.element(),"keydown",e)})});else{var a=function(n){Qv.getCurrent(n).each(r)};VB(n,u(t),t,i,o,a,XE.HighlightFirst).get(at)}},i=PE(n),u=function(n){return function(t){return t.map(function(t){var e=ye(t.menus),o=te(e,function(n){return Kt(n.items,function(n){return"item"===n.type})}),r=Ah.getState(n);return r.update(Gt(o,function(n){return n.data})),t})}},a=[mw.config({}),Ah.config({onSetValue:n.onSetValue,store:vt({mode:"dataset",getDataKey:function(n){return Us(n.element())},getFallbackEntry:function(n){return{value:n,meta:{}}},setValue:function(t,e){Ws(t.element(),n.model.getDisplayText(e))}},n.initialData.map(function(n){return eo("initialValue",n)}).getOr({}))}),VR.config({stream:{mode:"throttle",delay:n.responseTime,stopEvent:!1},onStream:function(t){var e=BB.getCoupled(t,"sandbox"),r=mw.isFocused(t);if(r&&Us(t.element()).length>=n.minChars){var i=Qv.getCurrent(e).bind(function(n){return bb.getHighlighted(n).map(Ah.getValue)});n.previewing.set(!0);var a=function(){Qv.getCurrent(e).each(function(t){i.fold(function(){n.model.selectsOver&&bb.highlightFirst(t)},function(n){bb.highlightBy(t,function(t){var e=Ah.getValue(t);return e.value===n.value}),bb.getHighlighted(t).orThunk(function(){return bb.highlightFirst(t),St.none()})})})};VB(n,u(t),t,e,o,a,XE.HighlightFirst).get(at)}},cancelEvent:zu()}),Xx.config({mode:"special",onDown:function(n,t){return r(n,t,bb.highlightFirst),St.some(!0)},onEscape:function(n){var t=BB.getCoupled(n,"sandbox");return Kp.isOpen(t)?(Kp.close(t),St.some(!0)):St.none()},onUp:function(n,t){return r(n,t,bb.highlightLast),St.some(!0)},onEnter:function(t){var e=BB.getCoupled(t,"sandbox"),o=Kp.isOpen(e);if(o&&!n.previewing.get())return Qv.getCurrent(e).bind(function(n){return bb.getHighlighted(n)}).map(function(n){return oa(t,jR(),{item:n}),!0});var r=Ah.getValue(t);return ea(t,zu()),n.onExecute(e,t,r),o&&Kp.close(e),St.some(!0)}}),Mw.config({toggleClass:n.markers.openClass,aria:{mode:"expanded"}}),BB.config({others:{sandbox:function(t){return jB(n,t,{onOpen:function(){return Mw.on(t)},onClose:function(){return Mw.off(t)}})}}}),rw("typeaheadevents",[Oa(function(t){var e=at;NB(n,u(t),t,o,e,XE.HighlightFirst).get(at)}),da(jR(),function(t,e){var o=BB.getCoupled(t,"sandbox");HR(n.model,t,e.event().item()),ea(t,zu()),n.onItemExecute(t,o,e.event().item(),Ah.getValue(t)),Kp.close(o),PR(t)})].concat(n.dismissOnBlur?[da(Mu(),function(n){var t=BB.getCoupled(n,"sandbox");Rd(t.element()).isNone()&&Kp.close(t)})]:[]))];return{uid:n.uid,dom:LE(Be(n,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:vt(vt({},i),Ih(n.typeaheadBehaviours,a)),eventOrder:n.eventOrder}},WR=ft([wr("lazySink"),fr("fetch"),Br("minChars",5),Br("responseTime",1e3),xl("onOpen"),Br("getHotspot",St.some),Br("getAnchorOverrides",ft({})),Br("layouts",St.none()),Br("eventOrder",{}),Nr("model",{},[Br("getDisplayText",function(n){return void 0!==n.meta&&void 0!==n.meta.text?n.meta.text:n.value}),Br("selectsOver",!0),Br("populateFromBrowse",!0)]),xl("onSetValue"),wl("onExecute"),xl("onItemExecute"),Br("inputClasses",[]),Br("inputAttributes",{}),Br("inputStyles",{}),Br("matchWidth",!0),Br("useMinWidth",!1),Br("dismissOnBlur",!0),bl(["openClass"]),wr("initialData"),Mh("typeaheadBehaviours",[mw,Ah,VR,Xx,Mw,BB]),Pr("previewing",function(){return zr(!0)})].concat(NE()).concat(WB())),GR=ft([lv({schema:[vl()],name:"menu",overrides:function(n){return{fakeFocus:!0,onHighlight:function(t,e){t.getSystem().getByUid(n.uid).each(n.previewing.get()?function(o){LR(n.model,o,e).fold(function(){return bb.dehighlight(t,e)},function(n){return n()})}:function(t){n.model.populateFromBrowse&&HR(n.model,t,e)}),n.previewing.set(!1)},onExecute:function(t,e){return t.getSystem().getByUid(n.uid).toOption().map(function(n){return oa(n,jR(),{item:e}),!0})},onHover:function(t,e){n.previewing.set(!1),t.getSystem().getByUid(n.uid).each(function(t){n.model.populateFromBrowse&&HR(n.model,t,e)})}}}})]),XR=Uv({name:"Typeahead",configFields:WR(),partFields:GR(),factory:UR}),YR=function(t){var e=function(){return YR(t.toCached())},o=function(n){return YR(t.bind(function(t){return t.fold(function(n){return tB.pure(_t.error(n))},function(t){return n(t)})}))},r=function(n){return YR(t.map(function(t){return t.bind(n)}))},i=function(n){return YR(t.map(function(t){return t.map(n)}))},u=function(n){return YR(t.map(function(t){return t.mapError(n)}))},a=function(n,e){return t.map(function(t){return t.fold(n,e)})},c=function(e,o){return YR(tB.nu(function(r){var i=!1,u=n.setTimeout(function(){i=!0,r(_t.error(o()))},e);t.get(function(t){i||(n.clearTimeout(u),r(t))})}))};return vt(vt({},t),{toCached:e,bindFuture:o,bindResult:r,mapResult:i,mapError:u,foldResult:a,withTimeout:c})},qR=function(n){return YR(tB.nu(n))},KR=function(n){return YR(tB.pure(_t.value(n)))},JR=function(n){return YR(tB.pure(_t.error(n)))},$R=function(n){return YR(tB.pure(n))},QR=function(n){return YR(n.map(_t.value))},ZR=function(n){return qR(function(t){n.then(function(n){t(_t.value(n))},function(n){t(_t.error(n))})})},nV={nu:qR,wrap:YR,pure:KR,value:KR,error:JR,fromResult:$R,fromFuture:QR,fromPromise:ZR},tV={type:"separator"},eV=function(n){return{type:"menuitem",value:n.url,text:n.title,meta:{attach:n.attach},onAction:function(){}}},oV=function(n,t){return{type:"menuitem",value:t,text:n,meta:{attach:void 0},onAction:function(){}}},rV=function(n){return Gt(n,eV)},iV=function(n,t){return Kt(t,function(t){return t.type===n})},uV=function(n,t){return rV(iV(n,t))},aV=function(n){return uV("header",n.targets)},cV=function(n){return uV("anchor",n.targets)},sV=function(n){return St.from(n.anchorTop).map(function(n){return oV("<top>",n)}).toArray()},fV=function(n){return St.from(n.anchorBottom).map(function(n){return oV("<bottom>",n)}).toArray()},lV=function(n){return Gt(n,function(n){return oV(n,n)})},dV=function(n){return $t(n,function(n,t){var e=0===n.length||0===t.length;return e?n.concat(t):n.concat(tV,t)},[])},mV=function(n,t){var e=n.toLowerCase();return Kt(t,function(n){var t=void 0!==n.meta&&void 0!==n.meta.text?n.meta.text:n.text;return Ai(t.toLowerCase(),e)||Ai(n.value.toLowerCase(),e)})},gV=function(n,t,e){var o=Ah.getValue(t),r=void 0!==o.meta.text?o.meta.text:o.value,i=e.getLinkInformation();return i.fold(function(){return[]},function(t){var o=mV(r,lV(e.getHistory(n)));return"file"===n?dV([o,mV(r,aV(t)),mV(r,ne([sV(t),cV(t),fV(t)]))]):o})},pV=Sc("aria-invalid"),hV=function(n,t,e){var o,r=t.shared.providers,i=function(t){var o=Ah.getValue(t);e.addToHistory(o.value,n.filetype)},u=HE.parts().field({factory:XR,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":pV,type:"url"},minChars:0,responseTime:0,fetch:function(o){var r=gV(n.filetype,o,e),i=xI(r,FO.BUBBLE_TO_SANDBOX,t,!1);return tB.pure(i)},getHotspot:function(n){return m.getOpt(n)},onSetValue:function(n){n.hasConfigured(mB)&&mB.run(n).get(at)},typeaheadBehaviours:bd(ne([e.getValidationHandler().map(function(t){return mB.config({getRoot:function(n){return Va(n.element())},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(n,t){s.getOpt(n).each(function(n){cc(n.element(),"title",r.translate(t))})}},validator:{validate:function(e){var o=Ah.getValue(e);return nV.nu(function(e){t({type:n.filetype,url:o.value},function(n){if("invalid"===n.status){var t=_t.error(n.message);e(t)}else{var o=_t.value(n.message);e(o)}})})},validateOnLoad:!1}})}).toArray(),[CO.config({disabled:n.disabled}),vB.config({}),rw("urlinput-events",ne(["file"===n.filetype?[da(Ou(),function(t){oa(t,CE,{name:n.name})})]:[],[da(_u(),function(t){oa(t,CE,{name:n.name}),i(t)}),da(Fu(),function(t){oa(t,CE,{name:n.name}),i(t)})]]))]])),eventOrder:(o={},o[Ou()]=["streaming","urlinput-events","invalidating"],o),model:{getDisplayText:function(n){return n.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:t.shared.getSink,parts:{menu:cT(!1,1,"normal")},onExecute:function(n,t){oa(t,TE,{})},onItemExecute:function(t){i(t),oa(t,CE,{name:n.name})}}),a=n.label.map(function(n){return CB(n,r)}),c=function(n,t,e,o){return void 0===e&&(e=n),void 0===o&&(o=n),{dom:{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+n],innerHtml:lC(e,r.icons),attributes:vt({title:r.translate(o),"aria-live":"polite"},t.fold(function(){return{}},function(n){return{id:n}}))}}},s=sC(c("invalid",St.some(pV),"warning")),f=sC({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[s.asSpec()]}),l=e.getUrlPicker(n.filetype),d=Sc("browser.url.event"),m=sC({dom:{tag:"div",classes:["tox-control-wrap"]},components:[u,f.asSpec()],behaviours:bd([CO.config({disabled:n.disabled})])}),g=sC(EI({name:n.name,icon:St.some("browse"),text:n.label.getOr(""),disabled:n.disabled,primary:!1,borderless:!0},function(n){return ea(n,d)},r,[],["tox-browse-url"])),p=function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ne([[m.asSpec()],l.map(function(){return g.asSpec()}).toArray()])}},h=function(t){Qv.getCurrent(t).each(function(e){var o=Ah.getValue(e),r=vt({fieldname:n.name},o);l.each(function(o){o(r).get(function(o){Ah.setValue(e,o),oa(t,CE,{name:n.name})})})})};return HE.sketch({dom:wB(),components:a.toArray().concat([p()]),fieldBehaviours:bd([CO.config({disabled:n.disabled,onDisabled:function(n){HE.getField(n).each(CO.disable),g.getOpt(n).each(CO.disable)},onEnabled:function(n){HE.getField(n).each(CO.enable),g.getOpt(n).each(CO.enable)}}),rw("url-input-events",[da(d,h)])])})},vV=function(n,t){var e=Ah.config({store:{mode:"manual",getValue:function(n){var t=n.element().dom();return t.checked},setValue:function(n,t){var e=n.element().dom();e.checked=t}}}),o=function(n){return n.element().dom().click(),St.some(!0)},r=HE.parts().field({factory:{sketch:lt},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:bd([rF.self(),CO.config({disabled:n.disabled}),vB.config({}),mw.config({}),e,Xx.config({mode:"special",onEnter:o,onSpace:o,stopSpaceKeyup:!0}),rw("checkbox-events",[da(_u(),function(t){oa(t,CE,{name:n.name})})])])}),i=HE.parts().label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:t.translate(n.label)},behaviours:bd([QB.config({})])}),u=function(n){var e="checked"===n?"selected":"unselected";return{dom:{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+n],innerHtml:lC(e,t.icons)}}},a=sC({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[u("checked"),u("unchecked")]});return HE.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[r,a.asSpec(),i],fieldBehaviours:bd([CO.config({disabled:n.disabled,disableClass:"tox-checkbox--disabled",onDisabled:function(n){HE.getField(n).each(CO.disable)},onEnabled:function(n){HE.getField(n).each(CO.enable)}})])})},bV=function(n){return wE.sketch("presentation"===n.presets?{dom:{tag:"div",classes:["tox-form__group"],innerHtml:n.html}}:{dom:{tag:"div",classes:["tox-form__group"],innerHtml:n.html,attributes:{role:"document"}},containerBehaviours:bd([vB.config({}),mw.config({})])})},yV=function(n,t){var e={dom:{tag:"label",innerHtml:t.providers.translate(n.label),classes:["tox-label"]}},o=Gt(n.items,t.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[e].concat(o),behaviours:bd([rF.self(),ew.config({}),yF.domHtml(St.none()),Xx.config({mode:"acyclic"})])}},xV=function(n,t){var e=n.label.map(function(n){return CB(n,t)}),o=function(n){return function(t,e){$f(e.event().target(),"[data-collection-item-value]").each(function(o){n(t,e,o,fc(o,"data-collection-item-value"))})}},r=function(n){return'"'===n?"&quot;":n},i=function(t,e){var o=Gt(e,function(t){var e=Ek.translate(t.text),o=1===n.columns?'<div class="tox-collection__item-label">'+e+"</div>":"",i='<div class="tox-collection__item-icon">'+t.icon+"</div>",u={_:" "," - ":" ","-":" "},a=e.replace(/\_| \- |\-/g,function(n){return u[n]});return'<div class="tox-collection__item" tabindex="-1" data-collection-item-value="'+r(t.value)+'" title="'+a+'" aria-label="'+a+'">'+i+o+"</div>"}),i=n.columns>1&&"auto"!==n.columns?Wt(o,n.columns):[o],u=Gt(i,function(n){return'<div class="tox-collection__group">'+n.join("")+"</div>"});nc(t.element(),u.join(""))},u=o(function(t,e,o,r){e.stop(),oa(t,_E,{name:n.name,value:r})}),a=[da(xu(),o(function(n,t,e){Ad(e)})),da(Tu(),u),da(Hu(),u),da(wu(),o(function(n,t,e){Jf(n.element(),"."+zk).each(function(n){Cs(n,zk)}),ws(e,zk)})),da(Su(),o(function(n){Jf(n.element(),"."+zk).each(function(n){Cs(n,zk)})})),Oa(o(function(t,e,o,r){oa(t,_E,{name:n.name,value:r})}))],c=HE.parts().field({dom:{tag:"div",classes:["tox-collection"].concat(1!==n.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:lt},behaviours:bd([ew.config({}),Ah.config({store:{mode:"memory",initialValue:[]},onSetValue:function(t,e){i(t,e),"auto"===n.columns&&dk(t,5,"tox-collection__item").each(function(n){var e=n.numRows,o=n.numColumns;Xx.setGridSize(t,e,o)}),ea(t,AE)}}),vB.config({}),Xx.config(CT(n.columns,"normal")),rw("collection-events",a)])}),s=["tox-form__group--collection"];return bB(e,c,s,[])},wV=function(n,t){var e=function(n){return{dom:{tag:"th",innerHtml:t.translate(n)}}},o=function(n){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:Gt(n,e)}]}},r=function(n){return{dom:{tag:"td",innerHtml:t.translate(n)}}},i=function(n){return{dom:{tag:"tr"},components:Gt(n,r)}},u=function(n){return{dom:{tag:"tbody"},components:Gt(n,i)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[o(n.header),u(n.cells)],behaviours:bd([vB.config({}),mw.config({})])}},SV=function(n,t){return{dom:{tag:"div",classes:n.classes},components:Gt(n.items,t.shared.interpreter)}},CV=function(n){return function(t,e,o){return xe(e,"name").fold(function(){return n(e,o)},function(r){return t.field(r,n(e,o))})}},kV=function(n){return function(t,e,o){var r=Be(e,{source:"dynamic"});return CV(n)(t,r,o)}},OV={bar:CV(function(n,t){return FE(n,t.shared)}),collection:CV(function(n,t){return xV(n,t.shared.providers)}),alertbanner:CV(function(n,t){return ME(n,t.shared.providers)}),input:CV(function(n,t){return TR(n,t.shared.providers)}),textarea:CV(function(n,t){return ER(n,t.shared.providers)}),label:CV(function(n,t){return yV(n,t.shared)}),iframe:kV(function(n,t){return IF(n,t.shared.providers)}),button:CV(function(n,t){return FI(n,t.shared.providers)}),checkbox:CV(function(n,t){return vV(n,t.shared.providers)}),colorinput:CV(function(n,t){return oD(n,t.shared,t.colorinput)}),colorpicker:CV(cF),dropzone:CV(function(n,t){return SF(n,t.shared.providers)}),grid:CV(function(n,t){return CF(n,t.shared)}),selectbox:CV(function(n,t){return OR(n,t.shared.providers)}),sizeinput:CV(function(n,t){return XI(n,t.shared.providers)}),urlinput:CV(function(n,t){return hV(n,t,t.urlinput)}),customeditor:CV(lF),htmlpanel:CV(bV),imagetools:CV(function(n,t){return SR(n,t.shared.providers)}),table:CV(function(n,t){return wV(n,t.shared.providers)}),panel:CV(function(n,t){return SV(n,t)})},_V={field:function(n,t){return t}},TV=function(n,t,e){var o=Be(e,{shared:{interpreter:function(t){return EV(n,t,o)}}});return EV(n,t,o)},EV=function(t,e,o){return xe(OV,e.type).fold(function(){return n.console.error('Unknown factory type "'+e.type+'", defaulting to container: ',e),e},function(n){return n(t,e,o)})},BV=function(n,t){var e=_V;return EV(e,n,t)},DV={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},AV=function(n,t,e){var o=vm(-12,12,DV),r={maxHeightFunction:lm()},i=function(){return{anchor:"node",root:Ds(Fa(n())),node:St.from(n()),bubble:o,layouts:{onRtl:function(){return[TS]},onLtr:function(){return[_S]}},overrides:r}},u=function(){return{anchor:"hotspot",hotspot:t(),bubble:o,layouts:{onRtl:function(){return[$l]},onLtr:function(){return[Ql]}},overrides:r}};return e?i:u},MV=function(n,t,e){var o=function(){return{anchor:"node",root:Ds(Fa(n())),node:St.from(n()),layouts:{onRtl:function(){return[ES]},onLtr:function(){return[ES]}}}},r=function(){return{anchor:"hotspot",hotspot:t(),layouts:{onRtl:function(){return[ed]},onLtr:function(){return[ed]}}}};return e?o:r},FV=function(n,t){return function(){return{anchor:"selection",root:t(),getSelection:function(){var t=n.selection.getRng();return St.some(Jm.range(Xr.fromDom(t.startContainer),t.startOffset,Xr.fromDom(t.endContainer),t.endOffset))}}}},IV=function(n){return function(t){return{anchor:"node",root:n(),node:t}}},RV=function(n,t){var e=eC(n),o=function(){return Xr.fromDom(n.getBody())},r=function(){return Xr.fromDom(n.getContentAreaContainer())},i=e||!ZS(n);return{inlineDialog:AV(r,t,i),banner:MV(r,t,i),cursor:FV(n,o),node:IV(o)}},VV={getAnchors:RV},HV=function(n){return function(t,e){var o=eT.colorPickerDialog(n);o(t,e)}},NV=function(n){return function(){return M_.hasCustomColors(n)}},PV=function(n){return function(){return M_.getColors(n)}},zV=function(n){return function(){return eT.getColorCols(n)}},LV=function(n){return{colorPicker:HV(n),hasCustomColors:NV(n),getColors:PV(n),getColorCols:zV(n)}},jV=function(n){return function(){return uC(n)}},UV=function(n){return{isDraggableModal:jV(n)}},WV=[{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",icon:"bold",format:"bold"},{title:"Italic",icon:"italic",format:"italic"},{title:"Underline",icon:"underline",format:"underline"},{title:"Strikethrough",icon:"strike-through",format:"strikethrough"},{title:"Superscript",icon:"superscript",format:"superscript"},{title:"Subscript",icon:"subscript",format:"subscript"},{title:"Code",icon:"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",icon:"align-left",format:"alignleft"},{title:"Center",icon:"align-center",format:"aligncenter"},{title:"Right",icon:"align-right",format:"alignright"},{title:"Justify",icon:"align-justify",format:"alignjustify"}]}],GV=function(n){return we(n,"items")},XV=function(n){return we(n,"block")},YV=function(n){return we(n,"inline")},qV=function(n){return we(n,"selector")},KV=function(n){return $t(n,function(n,t){if(GV(t)){var e=KV(t.items);return{customFormats:n.customFormats.concat(e.customFormats),formats:n.formats.concat([{title:t.title,items:e.formats}])}}if(YV(t)||XV(t)||qV(t)){var o="custom-"+t.title.toLowerCase();return{customFormats:n.customFormats.concat([{name:o,format:t}]),formats:n.formats.concat([{title:t.title,format:o,icon:t.icon}])}}return vt(vt({},n),{formats:n.formats.concat(t)})},{customFormats:[],formats:[]})},JV=function(n,t){var e=KV(t),o=function(t){Xt(t,function(t){n.formatter.has(t.name)||n.formatter.register(t.name,t.format)})};return n.formatter?o(e.customFormats):n.on("init",function(){o(e.customFormats)}),e.formats},$V=function(n){return jS(n).map(function(t){var e=JV(n,t);return US(n)?WV.concat(e):e}).getOr(WV)},QV=function(n,t,e){var o={type:"formatter",isSelected:t(n.format),getStylePreview:e(n.format)};return Be(n,o)},ZV=function(n,t,e,o){var r=function(n){return QV(n,e,o)},i=function(n){var t={type:"submenu"};return Be(n,t)},u=function(t){var r=Sc(t.title),i={type:"formatter",format:r,isSelected:e(r),getStylePreview:o(r)},u=Be(t,i);return n.formatter.register(r,u),u},a=function(n){return Gt(n,function(n){var t=de(n);if(Se(n,"items")){var e=a(n.items);return Be(i(n),{getStyleItems:function(){return e}})}return Se(n,"format")?r(n):1===t.length&&Lt(t,"title")?Be(n,{type:"separator"}):u(n)})};return a(t)},nH=function(n){var t=function(t){return function(){return n.formatter.match(t)}},e=function(t){return function(){var e=n.formatter.get(t);return void 0!==e?St.some({tag:e.length>0?e[0].inline||e[0].block||"div":"div",styles:n.dom.parseStyle(n.formatter.getCssText(t))}):St.none()}},o=function(n){var t=n.items;return void 0!==t&&t.length>0?te(t,o):[n.format]},r=zr([]),i=zr([]),u=zr([]),a=zr([]),c=zr(!1);n.on("PreInit",function(){var u=$V(n),a=ZV(n,u,t,e);r.set(a),i.set(te(a,o))}),n.on("addStyleModifications",function(r){var i=ZV(n,r.items,t,e);u.set(i),c.set(r.replace),a.set(te(i,o))});var s=function(){var n=c.get()?[]:r.get(),t=u.get();return n.concat(t)},f=function(){var n=c.get()?[]:i.get(),t=a.get();return n.concat(t)};return{getData:s,getFlattenedKeys:f}},tH=lR.trim,eH=function(n){return function(t){if(t&&1===t.nodeType){if(t.contentEditable===n)return!0;if(t.getAttribute("data-mce-contenteditable")===n)return!0}return!1}},oH=eH("true"),rH=eH("false"),iH=function(n,t,e,o,r){return{type:n,title:t,url:e,level:o,attach:r}},uH=function(n){for(;n=n.parentNode;){var t=n.contentEditable;if(t&&"inherit"!==t)return oH(n)}return!1},aH=function(n,t){return Gt(bg(Xr.fromDom(t),n),function(n){return n.dom()})},cH=function(n){return n.innerText||n.textContent},sH=function(n){return n.id?n.id:Sc("h")},fH=function(n){return n&&"A"===n.nodeName&&void 0!==(n.id||n.name)},lH=function(n){return fH(n)&&mH(n)},dH=function(n){return n&&/^(H[1-6])$/.test(n.nodeName)},mH=function(n){return uH(n)&&!rH(n)},gH=function(n){return dH(n)&&mH(n)},pH=function(n){return dH(n)?parseInt(n.nodeName.substr(1),10):0},hH=function(n){var t=sH(n),e=function(){n.id=t};return iH("header",cH(n),"#"+t,pH(n),e)},vH=function(n){var t=n.id||n.name,e=cH(n);return iH("anchor",e?e:"#"+t,"#"+t,0,at)},bH=function(n){return Gt(Kt(n,gH),hH)},yH=function(n){return Gt(Kt(n,lH),vH)},xH=function(n){var t=aH("h1,h2,h3,h4,h5,h6,a:not([href])",n);return t},wH=function(n){return tH(n.title).length>0},SH=function(n){var t=xH(n);return Kt(bH(t).concat(yH(t)),wH)},CH={find:SH},kH="tinymce-url-history",OH=5,_H=function(n){return Bt(n)&&/^https?/.test(n)},TH=function(n){return At(n)&&n.length<=OH&&ee(n,_H)},EH=function(n){return Dt(n)&&be(n,function(n){return!TH(n)}).isNone()},BH=function(){var t=n.localStorage.getItem(kH);if(null===t)return{};var e;try{e=JSON.parse(t)}catch(o){if(o instanceof SyntaxError)return n.console.log("Local storage "+kH+" was not valid JSON",o),{};throw o}return EH(e)?e:(n.console.log("Local storage "+kH+" was not valid format",e),{})},DH=function(t){if(!EH(t))throw new Error("Bad format for history:\n"+JSON.stringify(t));n.localStorage.setItem(kH,JSON.stringify(t))},AH=function(n){var t=BH();return Object.prototype.hasOwnProperty.call(t,n)?t[n]:[]},MH=function(n,t){if(_H(n)){var e=BH(),o=Object.prototype.hasOwnProperty.call(e,t)?e[t]:[],r=Kt(o,function(t){return t!==n});e[t]=[n].concat(r).slice(0,OH),DH(e)}},FH=Object.prototype.hasOwnProperty,IH=function(n){return!!n},RH=function(n){return pe(lR.makeMap(n,/[, ]/),IH)},VH=function(n,t){return FH.call(n,t)?St.some(n[t]):St.none()},HH=function(n,t,e){var o=VH(n,t).getOr(e);return Bt(o)?St.some(o):St.none()},NH=function(n){return St.some(n.file_picker_callback).filter(Ft)},PH=function(n){var t=St.some(n.file_picker_types).filter(IH),e=St.some(n.file_browser_callback_types).filter(IH),o=t.or(e).map(RH);return NH(n).fold(function(){return!1},function(){return o.fold(function(){return!0},function(n){return de(n).length>0?n:!1})})},zH=function(n,t){var e=PH(n);return Mt(e)?e?NH(n):St.none():e[t]?NH(n):St.none()},LH=function(n,t){return zH(n.settings,t).map(function(e){return function(o){return tB.nu(function(r){var i=function(n,t){if(!Bt(n))throw new Error("Expected value to be string");if(void 0!==t&&!Dt(t))throw new Error("Expected meta to be a object");var e={value:n,meta:t};r(e)},u=vt({filetype:t,fieldname:o.fieldname},St.from(o.meta).getOr({}));e.call(n,i,o.value,u)})}})},jH=function(n){return n.settings.typeahead_urls===!1?St.none():St.some({targets:CH.find(n.getBody()),anchorTop:HH(n.settings,"anchor_top","#top").getOrUndefined(),anchorBottom:HH(n.settings,"anchor_bottom","#bottom").getOrUndefined()})},UH=function(n){var t=St.from(n.settings.file_picker_validator_handler).filter(Ft);return t.orThunk(function(){return St.from(n.settings.filepicker_validator_handler).filter(Ft)})},WH=function(n){return{getHistory:AH,addToHistory:MH,getLinkInformation:function(){return jH(n)},getValidationHandler:function(){return UH(n)},getUrlPicker:function(t){return LH(n,t)}}},GH=function(n,t,e){var o=zr(!1),r={shared:{providers:{icons:function(){return t.ui.registry.getAll().icons},menuItems:function(){return t.ui.registry.getAll().menuItems},translate:Ek.translate},interpreter:function(n){return BV(n,r)},anchors:VV.getAnchors(t,e),getSink:function(){return _t.value(n)}},urlinput:WH(t),styleselect:nH(t),colorinput:LV(t),dialog:UV(t),isContextMenuOpen:function(){return o.get()},setContextMenuState:function(n){return o.set(n)}};return r},XH=ft(function(n,t){xf(n,Math.floor(t))}),YH="contexttoolbar-show",qH="contexttoolbar-hide",KH=ft([fr("items"),bl(["itemSelector"]),Mh("tgroupBehaviours",[Xx])]),JH=ft([mv({name:"items",unit:"item"})]),$H=function(n,t){return{uid:n.uid,dom:n.dom,components:t,behaviours:Ih(n.tgroupBehaviours,[Xx.config({mode:"flow",selector:n.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},QH=Uv({name:"ToolbarGroup",configFields:KH(),partFields:JH(),factory:$H}),ZH=ft([fr("dom"),Br("shell",!0),Mh("toolbarBehaviours",[ew])]),nN=function(){return{behaviours:bd([ew.config({})])}
},tN=ft([dv({name:"groups",overrides:nN})]),eN=function(t,e){var o=function(t,e){r(t).fold(function(){throw n.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(n){ew.set(n,e)})},r=function(n){return t.shell?St.some(n):Ov(n,t,"groups")},i=t.shell?{behaviours:[ew.config({})],components:[]}:{behaviours:[],components:e};return{uid:t.uid,dom:t.dom,components:i.components,behaviours:Ih(t.toolbarBehaviours,i.behaviours),apis:{setGroups:o},domModification:{attributes:{role:"group"}}}},oN=Uv({name:"Toolbar",configFields:ZH(),partFields:tN(),factory:eN,apis:{setGroups:function(n,t,e){n.setGroups(t,e)}}}),rN=function(n,t){var e={len:0,list:[]},o=$t(n,function(n,e){var o=t(e,n.len);return o.fold(ft(n),function(t){return{len:t.finish(),list:n.list.concat([t])}})},e);return o.list},iN=_a("within","extra","withinWidth"),uN=function(n,t,e){var o=rN(n,function(n,t){var o=e(n);return St.some({element:ft(n),start:ft(t),finish:ft(t+o),width:ft(o)})}),r=Kt(o,function(n){return n.finish()<=t}),i=Jt(r,function(n,t){return n+t.width()},0),u=o.slice(r.length);return{within:ft(r),extra:ft(u),withinWidth:ft(i)}},aN=function(n){return Gt(n,function(n){return n.element()})},cN=function(n,t,e){var o=aN(n.concat(t));return iN(o,[],e)},sN=function(n,t,e,o){var r=aN(n).concat([e]);return iN(r,aN(t),o)},fN=function(n,t,e){return iN(aN(n),[],e)},lN=function(n,t,e){var o=uN(t,n,e);return 0===o.extra().length?St.some(o):St.none()},dN=function(n,t,e,o){var r=lN(n,t,e).getOrThunk(function(){return uN(t,n-e(o),e)}),i=r.within(),u=r.extra(),a=r.withinWidth();return 1===u.length&&u[0].width()<=e(o)?cN(i,u,a):u.length>=1?sN(i,u,o,a):fN(i,u,a)},mN=function(n,t){var e=Gt(t,function(n){return rf(n)});oN.setGroups(n,e)},gN=function(n){return le(n,function(n){return Rd(n.element()).bind(function(t){return n.getSystem().getByDom(t).toOption()})})},pN=function(n,t,e){var o=_v(n,t,"primary"),r=BB.getCoupled(n,"overflowGroup");Fs(o.element(),"visibility","hidden");var i=t.builtGroups.get().concat([r]),u=gN(i);e([]),mN(o,i);var a=bf(o.element()),c=dN(a,t.builtGroups.get(),function(n){return bf(n.element())},r);0===c.extra().length?(ew.remove(o,r),e([])):(mN(o,c.within()),e(c.extra())),Ls(o.element(),"visibility"),js(o.element()),u.each(mw.focus)},hN=ft([Mh("splitToolbarBehaviours",[BB]),Pr("builtGroups",function(){return zr([])})]),vN=ft([bl(["overflowToggledClass"]),Or("getOverflowBounds"),fr("lazySink"),Pr("overflowGroups",function(){return zr([])})].concat(hN())),bN=ft([fv({factory:oN,schema:ZH(),name:"primary"}),lv({schema:ZH(),name:"overflow"}),lv({name:"overflow-button"}),lv({name:"overflow-group"})]),yN=ft([bl(["toggledClass"]),fr("lazySink"),hr("fetch"),Or("getBounds"),Tr("fireDismissalEventInstead",[Br("event",qu())]),Om()]),xN=ft([lv({name:"button",overrides:function(n){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:bd([Mw.config({toggleClass:n.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),lv({factory:oN,schema:ZH(),name:"toolbar",overrides:function(n){return{toolbarBehaviours:bd([Xx.config({mode:"cyclic",onEscape:function(t){return Ov(t,n,"button").each(mw.focus),St.none()}})])}}})]),wN=function(n,t){var e=BB.getCoupled(n,"toolbarSandbox");Kp.isOpen(e)?Kp.close(e):Kp.open(e,t.toolbar())},SN=function(n,t,e,o){var r=e.getBounds.map(function(n){return n()}),i=e.lazySink(n).getOrDie();pp.positionWithinBounds(i,{anchor:"hotspot",hotspot:n,layouts:o,overrides:{maxWidthFunction:XH()}},t,r)},CN=function(n,t,e,o,r){oN.setGroups(t,r),SN(n,t,e,o),Mw.on(n)},kN=function(n,t,e){var o=Zf(),r=function(r,i){e.fetch().get(function(r){CN(n,i,e,t.layouts,r),o.link(n.element()),Xx.focusIn(i)})},i=function(){Mw.off(n),mw.focus(n),o.unlink(n.element())};return{dom:{tag:"div",attributes:{id:o.id()}},behaviours:bd([Xx.config({mode:"special",onEscape:function(n){return Kp.close(n),St.some(!0)}}),Kp.config({onOpen:r,onClose:i,isPartOf:function(t,e,o){return tl(e,o)||tl(n,o)},getAttachPoint:function(){return e.lazySink(n).getOrDie()}}),Ed.config({channels:vt(vt({},nh(vt({isExtraPart:gt},e.fireDismissalEventInstead.map(function(n){return{fireEventInstead:{event:n.event}}}).getOr({})))),eh({doReposition:function(){Kp.getState(BB.getCoupled(n,"toolbarSandbox")).each(function(o){SN(n,o,e,t.layouts)})}}))})])}},ON=function(n,t,e,o){return vt(vt({},cC.sketch(vt(vt({},o.button()),{action:function(n){wN(n,o)},buttonBehaviours:Rh.augment({dump:o.button().buttonBehaviours},[BB.config({others:{toolbarSandbox:function(t){return kN(t,e,n)}}})])}))),{apis:{setGroups:function(t,o){Kp.getState(BB.getCoupled(t,"toolbarSandbox")).each(function(r){CN(t,r,n,e.layouts,o)})},reposition:function(t){Kp.getState(BB.getCoupled(t,"toolbarSandbox")).each(function(o){SN(t,o,n,e.layouts)})},toggle:function(n){wN(n,o)},getToolbar:function(n){return Kp.getState(BB.getCoupled(n,"toolbarSandbox"))}}})},_N=Uv({name:"FloatingToolbarButton",factory:ON,configFields:yN(),partFields:xN(),apis:{setGroups:function(n,t,e){n.setGroups(t,e)},reposition:function(n,t){n.reposition(t)},toggle:function(n,t){n.toggle(t)},getToolbar:function(n,t){return n.getToolbar(t)}}}),TN=function(n){return Gt(n,function(n){return rf(n)})},EN=function(n,t,e){pN(n,e,function(o){e.overflowGroups.set(o),t.getOpt(n).each(function(n){_N.setGroups(n,TN(o))})})},BN=function(n,t,e,o){var r=sC(_N.sketch({fetch:function(){return tB.nu(function(t){t(TN(n.overflowGroups.get()))})},layouts:{onLtr:function(){return[Ql,$l]},onRtl:function(){return[$l,Ql]},onBottomLtr:function(){return[nd,Zl]},onBottomRtl:function(){return[Zl,nd]}},getBounds:e.getOverflowBounds,lazySink:n.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:n.markers.overflowToggledClass},parts:{button:o["overflow-button"](),toolbar:o.overflow()}}));return{uid:n.uid,dom:n.dom,components:t,behaviours:Ih(n.splitToolbarBehaviours,[BB.config({others:{overflowGroup:function(){return QH.sketch(vt(vt({},o["overflow-group"]()),{items:[r.asSpec()]}))}}})]),apis:{setGroups:function(t,e){n.builtGroups.set(Gt(e,t.getSystem().build)),EN(t,r,n)},refresh:function(t){return EN(t,r,n)},toggle:function(n){r.getOpt(n).each(function(n){_N.toggle(n)})},reposition:function(n){r.getOpt(n).each(function(n){_N.reposition(n)})},getOverflow:function(n){return r.getOpt(n).bind(function(n){return _N.getToolbar(n)})}},domModification:{attributes:{role:"group"}}}},DN=Uv({name:"SplitFloatingToolbar",configFields:vN(),partFields:bN(),factory:BN,apis:{setGroups:function(n,t,e){n.setGroups(t,e)},refresh:function(n,t){n.refresh(t)},reposition:function(n,t){n.reposition(t)},toggle:function(n,t){n.toggle(t)},getOverflow:function(n,t){return n.getOverflow(t)}}}),AN=function(n,t){return t.getAnimationRoot.fold(function(){return n.element()},function(t){return t(n)})},MN=function(n){return n.dimension.property},FN=function(n,t){return n.dimension.getDimension(t)},IN=function(n,t){var e=AN(n,t);_s(e,[t.shrinkingClass,t.growingClass])},RN=function(n,t){Cs(n.element(),t.openClass),ws(n.element(),t.closedClass),Fs(n.element(),MN(t),"0px"),js(n.element())},VN=function(n,t){Cs(n.element(),t.closedClass),ws(n.element(),t.openClass),Ls(n.element(),MN(t))},HN=function(n,t,e){e.setCollapsed(),Fs(n.element(),MN(t),FN(t,n.element())),js(n.element()),IN(n,t),RN(n,t),t.onStartShrink(n),t.onShrunk(n)},NN=function(n,t,e,o){var r=o.getOrThunk(function(){return FN(t,n.element())});e.setCollapsed(),Fs(n.element(),MN(t),r),js(n.element());var i=AN(n,t);Cs(i,t.growingClass),ws(i,t.shrinkingClass),RN(n,t),t.onStartShrink(n)},PN=function(n,t,e){var o=FN(t,n.element()),r="0px"===o?HN:NN;r(n,t,e,St.some(o))},zN=function(n,t,e){var o=AN(n,t),r=ks(o,t.shrinkingClass),i=FN(t,n.element());VN(n,t);var u=FN(t,n.element()),a=function(){Fs(n.element(),MN(t),i),js(n.element())},c=function(){RN(n,t)},s=r?a:c;s(),Cs(o,t.shrinkingClass),ws(o,t.growingClass),VN(n,t),Fs(n.element(),MN(t),u),e.setExpanded(),t.onStartGrow(n)},LN=function(n,t,e){if(e.isExpanded()){Ls(n.element(),MN(t));var o=FN(t,n.element());Fs(n.element(),MN(t),o)}},jN=function(n,t,e){e.isExpanded()||zN(n,t,e)},UN=function(n,t,e){e.isExpanded()&&PN(n,t,e)},WN=function(n,t,e){e.isExpanded()&&HN(n,t,e,St.none())},GN=function(n,t,e){return e.isExpanded()},XN=function(n,t,e){return e.isCollapsed()},YN=function(n,t){var e=AN(n,t);return ks(e,t.growingClass)===!0},qN=function(n,t){var e=AN(n,t);return ks(e,t.shrinkingClass)===!0},KN=function(n,t){return YN(n,t)===!0||qN(n,t)===!0},JN=function(n,t,e){var o=e.isExpanded()?PN:zN;o(n,t,e)},$N=Object.freeze({__proto__:null,refresh:LN,grow:jN,shrink:UN,immediateShrink:WN,hasGrown:GN,hasShrunk:XN,isGrowing:YN,isShrinking:qN,isTransitioning:KN,toggleGrow:JN,disableTransitions:IN}),QN=function(n,t){var e=t.expanded;return qc(e?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:eo(t.dimension.property,"0px")})},ZN=function(n,t){return ca([wa(Eu(),function(e,o){var r=o.event().raw();if(r.propertyName===n.dimension.property){IN(e,n),t.isExpanded()&&Ls(e.element(),n.dimension.property);var i=t.isExpanded()?n.onGrown:n.onShrunk;i(e)}})])},nP=Object.freeze({__proto__:null,exhibit:QN,events:ZN}),tP=[fr("closedClass"),fr("openClass"),fr("shrinkingClass"),fr("growingClass"),wr("getAnimationRoot"),xl("onShrunk"),xl("onStartShrink"),xl("onGrown"),xl("onStartGrow"),Br("expanded",!1),lr("dimension",nr("property",{width:[kl("property","width"),kl("getDimension",function(n){return bf(n)+"px"})],height:[kl("property","height"),kl("getDimension",function(n){return af(n)+"px"})]}))],eP=function(n){var e=zr(n.expanded),o=function(){return"expanded: "+e.get()};return Uc({isExpanded:function(){return e.get()===!0},isCollapsed:function(){return e.get()===!1},setCollapsed:t(e.set,!1),setExpanded:t(e.set,!0),readState:o})},oP=Object.freeze({__proto__:null,init:eP}),rP=xd({fields:tP,name:"sliding",active:nP,apis:$N,state:oP}),iP=ft([bl(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),xl("onOpened"),xl("onClosed")].concat(hN())),uP=ft([fv({factory:oN,schema:ZH(),name:"primary"}),fv({factory:oN,schema:ZH(),name:"overflow",overrides:function(n){return{toolbarBehaviours:bd([rP.config({dimension:{property:"height"},closedClass:n.markers.closedClass,openClass:n.markers.openClass,shrinkingClass:n.markers.shrinkingClass,growingClass:n.markers.growingClass,onShrunk:function(t){Ov(t,n,"overflow-button").each(function(n){Mw.off(n),mw.focus(n)}),n.onClosed(t)},onGrown:function(t){Xx.focusIn(t),n.onOpened(t)},onStartGrow:function(t){Ov(t,n,"overflow-button").each(Mw.on)}}),Xx.config({mode:"acyclic",onEscape:function(t){return Ov(t,n,"overflow-button").each(mw.focus),St.some(!0)}})])}}}),lv({name:"overflow-button",overrides:function(n){return{buttonBehaviours:bd([Mw.config({toggleClass:n.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),lv({name:"overflow-group"})]),aP=function(n,t){Ov(n,t,"overflow").each(function(e){cP(n,t),rP.toggleGrow(e)})},cP=function(n,t){Ov(n,t,"overflow").each(function(e){pN(n,t,function(n){var t=Gt(n,function(n){return rf(n)});oN.setGroups(e,t)}),Ov(n,t,"overflow-button").each(function(n){rP.hasGrown(e)&&Mw.on(n)}),rP.refresh(e)})},sP=function(n,t,e,o){var r="alloy.toolbar.toggle",i=function(t,e){var o=Gt(e,t.getSystem().build);n.builtGroups.set(o)};return{uid:n.uid,dom:n.dom,components:t,behaviours:Ih(n.splitToolbarBehaviours,[BB.config({others:{overflowGroup:function(n){return QH.sketch(vt(vt({},o["overflow-group"]()),{items:[cC.sketch(vt(vt({},o["overflow-button"]()),{action:function(){ea(n,r)}}))]}))}}}),rw("toolbar-toggle-events",[da(r,function(t){Ov(t,n,"overflow").each(function(e){cP(t,n),rP.toggleGrow(e)})})])]),apis:{setGroups:function(t,e){i(t,e),cP(t,n)},refresh:function(t){return cP(t,n)},toggle:function(t){return aP(t,n)}},domModification:{attributes:{role:"group"}}}},fP=Uv({name:"SplitSlidingToolbar",configFields:iP(),partFields:uP(),factory:sP,apis:{setGroups:function(n,t,e){n.setGroups(t,e)},refresh:function(n,t){n.refresh(t)},toggle:function(n,t){n.toggle(t)}}}),lP=ft(Sc("toolbar-height-change")),dP="silver.readonly",mP=Mo([pr("readonly")]),gP=function(n,t){$i("*",n.element()).forEach(function(e){n.getSystem().getByDom(e).each(function(n){n.hasConfigured(CO)&&CO.set(n,t)})})},pP=function(n,t){var e=n.outerContainer,o=e.element();t&&(n.mothership.broadcastOn([Jp()],{target:o}),n.uiMothership.broadcastOn([Jp()],{target:o})),n.mothership.broadcastOn([dP],{readonly:t}),n.uiMothership.broadcastOn([dP],{readonly:t})},hP=function(n,t){var e=n.outerContainer;pP(n,t),$i("*",e.element()).forEach(function(n){e.getSystem().getByDom(n).each(function(n){n.hasConfigured(CO)&&CO.set(n,t)})})},vP=function(n,t){n.on("init",function(){n.mode.isReadOnly()&&hP(t,!0)}),n.on("SwitchMode",function(){return hP(t,n.mode.isReadOnly())}),IS(n)&&n.setMode("readonly")},bP=function(n){var t;return Ed.config({channels:(t={},t[dP]={schema:mP,onReceive:function(t,e){n(t).each(function(n){gP(n,e.readonly)})}},t)})},yP=function(n){var t=n.title.fold(function(){return{}},function(n){return{attributes:{title:n}}});return{dom:vt({tag:"div",classes:["tox-toolbar__group"]},t),components:[QH.parts().items({})],items:n.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:bd([vB.config({}),mw.config({})])}},xP=function(n){return QH.sketch(yP(n))},wP=function(n,t,e){var o=Sa(function(t){var e=Gt(n.initGroups,xP);oN.setGroups(t,e)});return bd([Xx.config({mode:t,onEscape:n.onEscape,selector:".tox-toolbar__group"}),rw("toolbar-events",[o]),bP(e)])},SP=function(n,t){var e=n.cyclicKeying?"cyclic":"acyclic";return{uid:n.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":yP({title:St.none(),items:[]}),"overflow-button":OI({name:"more",icon:St.some("more-drawer"),disabled:!1,tooltip:St.some("More..."),primary:!1,borderless:!1},St.none(),n.backstage.shared.providers)},splitToolbarBehaviours:wP(n,e,t)}},CP=function(n){var t=SP(n,DN.getOverflow),e=4,o=DN.parts().primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return DN.sketch(vt(vt({},t),{lazySink:n.getSink,getOverflowBounds:function(){var t=n.moreDrawerData.lazyHeader().element(),o=Uf(t),r=Ia(t),i=Uf(r),u=Math.max(r.dom().scrollHeight,i.height());return Lf(o.x()+e,i.y(),o.width()-2*e,u)},parts:vt(vt({},t.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:n.attributes}}}),components:[o],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},kP=function(n){var t=fP.parts().primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),e=fP.parts().overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),o=SP(n,St.none);return fP.sketch(vt(vt({},o),{components:[t,e],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(n){n.getSystem().broadcastOn([lP()],{type:"opened"})},onClosed:function(n){n.getSystem().broadcastOn([lP()],{type:"closed"})}}))},OP=function(n){var t=n.cyclicKeying?"cyclic":"acyclic";return oN.sketch({uid:n.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(n.type===jb.scrolling?["tox-toolbar--scrolling"]:[])},components:[oN.parts().groups({})],toolbarBehaviours:wP(n,t,ft(St.none()))})},_P=[Ir("disabled",!1),kr("tooltip"),kr("icon"),kr("text"),Rr("onSetup",function(){return at})],TP=Mo([mr("type"),hr("onAction")].concat(_P)),EP=function(n){return Ko("toolbarbutton",TP,n)},BP=[kr("text"),kr("tooltip"),kr("icon"),hr("fetch"),Rr("onSetup",function(){return at})],DP=Mo(o([mr("type")],BP)),AP=function(n){return Ko("menubutton",DP,n)},MP=Mo([mr("type"),kr("tooltip"),kr("icon"),kr("text"),Or("select"),hr("fetch"),Rr("onSetup",function(){return at}),Fr("presets","normal",["normal","color","listpreview"]),Br("columns",1),hr("onAction"),hr("onItemAction")]),FP=function(n){return Ko("SplitButton",MP,n)},IP=[Ir("active",!1)].concat(_P),RP=Mo(IP.concat([mr("type"),hr("onAction")])),VP=function(n){return Ko("ToggleButton",RP,n)},HP=Mo([mr("type"),lr("items",Io([Uo([mr("name"),xr("items",rr)]),rr]))].concat(_P)),NP=function(n){return Ko("GroupToolbarButton",HP,n)},PP=[Rr("predicate",function(){return!1}),Fr("scope","node",["node","editor"]),Fr("position","selection",["node","selection","line"])],zP=_P.concat([Br("type","contextformbutton"),Br("primary",!1),hr("onAction"),Pr("original",lt)]),LP=IP.concat([Br("type","contextformbutton"),Br("primary",!1),hr("onAction"),Pr("original",lt)]),jP=_P.concat([Br("type","contextformbutton")]),UP=IP.concat([Br("type","contextformtogglebutton")]),WP=nr("type",{contextformbutton:zP,contextformtogglebutton:LP}),GP=Mo([Br("type","contextform"),Rr("initValue",function(){return""}),kr("label"),xr("commands",WP),Sr("launch",nr("type",{contextformbutton:jP,contextformtogglebutton:UP}))].concat(PP)),XP=Mo([Br("type","contexttoolbar"),mr("items")].concat(PP)),YP=function(n){return Ko("ContextToolbar",XP,n)},qP=function(n){return Ko("ContextForm",GP,n)},KP=function(n,t,e){return e},JP=Object.freeze({__proto__:null,getState:KP}),$P=function(n,t){var e=function(e,o){n.updateState.each(function(n){var r=n(e,o);t.set(r)}),n.renderComponents.each(function(n){var r=n(o,t.get()),i=Gt(r,e.getSystem().build);xp(e,i)})};return ca([da(Iu(),function(t,o){var r=o,i=n.channel;Lt(r.channels(),i)&&e(t,r.data())}),Sa(function(t){n.initialData.each(function(n){e(t,n)})})])},QP=Object.freeze({__proto__:null,events:$P}),ZP=function(){var n=zr(St.none()),t=function(t){return n.set(t)},e=function(){return n.set(St.none())},o=function(){return n.get()},r=function(){return n.get().fold(function(){return"none"},function(n){return n})};return{readState:r,get:o,set:t,clear:e}},nz=Object.freeze({__proto__:null,init:ZP}),tz=[fr("channel"),wr("renderComponents"),wr("updateState"),wr("initialData")],ez=xd({fields:tz,name:"reflecting",active:QP,apis:JP,state:nz}),oz=ft([fr("toggleClass"),fr("fetch"),Sl("onExecute"),Br("getHotspot",St.some),Br("getAnchorOverrides",ft({})),Om(),Sl("onItemExecute"),wr("lazySink"),fr("dom"),xl("onOpen"),Mh("splitDropdownBehaviours",[BB,Xx,mw]),Br("matchWidth",!1),Br("useMinWidth",!1),Br("eventOrder",{}),wr("role")].concat(WB())),rz=fv({factory:cC,schema:[fr("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:bd([mw.revoke()])}},overrides:function(n){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(n.uid).each(ra)},buttonBehaviours:bd([Mw.config({toggleOnExecute:!1,toggleClass:n.toggleClass})])}}}),iz=fv({factory:cC,schema:[fr("dom")],name:"button",defaults:function(){return{buttonBehaviours:bd([mw.revoke()])}},overrides:function(n){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(n.uid).each(function(e){n.onExecute(e,t)})}}}}),uz=ft([rz,iz,dv({factory:{sketch:function(n){return{uid:n.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:n.text}}}},schema:[fr("text")],name:"aria-descriptor"}),lv({schema:[vl()],name:"menu",defaults:function(n){return{onExecute:function(t,e){t.getSystem().getByUid(n.uid).each(function(o){n.onItemExecute(o,t,e)})}}}}),AB()]),az=function(n,t,e,o){var r=function(n){Qv.getCurrent(n).each(function(n){bb.highlightFirst(n),Xx.focusIn(n)})},i=function(t){var e=r;NB(n,function(n){return n},t,o,e,XE.HighlightFirst).get(at)},u=function(n){return i(n),St.some(!0)},a=function(t){var e=_v(t,n,"button");return ra(e),St.some(!0)},c=vt(vt({},ca([Sa(function(t){var e=Ov(t,n,"aria-descriptor");e.each(function(n){var e=Sc("aria");cc(n.element(),"id",e),cc(t.element(),"aria-describedby",e)})})])),Iw(St.some(i))),s={repositionMenus:function(n){Mw.isOn(n)&&UB(n)}};return{uid:n.uid,dom:n.dom,components:t,apis:s,eventOrder:vt(vt({},n.eventOrder),{"alloy.execute":["disabling","toggling","alloy.base.behaviour"]}),events:c,behaviours:Ih(n.splitDropdownBehaviours,[BB.config({others:{sandbox:function(t){var e=_v(t,n,"arrow"),o={onOpen:function(){Mw.on(e),Mw.on(t)},onClose:function(){Mw.off(e),Mw.off(t)}};return jB(n,t,o)}}}),Xx.config({mode:"special",onSpace:a,onEnter:a,onDown:u}),mw.config({}),Mw.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:n.role.getOr("button"),"aria-haspopup":!0}}}},cz=Uv({name:"SplitDropdown",configFields:oz(),partFields:uz(),factory:az,apis:{repositionMenus:function(n,t){return n.repositionMenus(t)}}}),sz=function(n){return{isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)}}},fz=function(n){return{setActive:function(t){Mw.set(n,t)},isActive:function(){return Mw.isOn(n)},isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)}}},lz=function(n,t){return n.map(function(n){return{"aria-label":t.translate(n),title:t.translate(n)}}).getOr({})},dz=Sc("focus-button"),mz=["checklist","ordered-list"],gz=["indent","outdent","table-insert-column-after","table-insert-column-before","unordered-list"],pz=function(n,t,e,o,r,i){var u,a=function(n){return Ek.isRtl()&&Lt(mz,n)?n+"-rtl":n},c=Ek.isRtl()&&n.exists(function(n){return Lt(gz,n)});return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]).concat(c?["tox-tbtn__icon-rtl"]:[]),attributes:lz(e,i)},components:VO([n.map(function(n){return eI(a(n),i.icons)}),t.map(function(n){return rI(n,"tox-tbtn",i)})]),eventOrder:(u={},u[hu()]=["focusing","alloy.base.behaviour","common-button-display-events"],u),buttonBehaviours:bd([rw("common-button-display-events",[da(hu(),function(n,t){t.event().prevent(),ea(n,dz)})])].concat(o.map(function(e){return ez.config({channel:e,initialData:{icon:n,text:t},renderComponents:function(n){return VO([n.icon.map(function(n){return eI(a(n),i.icons)}),n.text.map(function(n){return rI(n,"tox-tbtn",i)})])}})}).toArray()).concat(r.getOr([])))}},hz=function(n,t,e,o){var r=t.shared;return _N.sketch({lazySink:r.getSink,fetch:function(){return tB.nu(function(t){t(Gt(e(n.items),xP))})},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:pz(n.icon,n.text,n.tooltip,St.none(),St.none(),r.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:o}}}})},vz=function(n,t,e){var o=zr(at),r=pz(n.icon,n.text,n.tooltip,St.none(),St.none(),e);return cC.sketch({dom:r.dom,components:r.components,eventOrder:aI,buttonBehaviours:bd([rw("toolbar-button-events",[uI({onAction:n.onAction,getApi:t.getApi}),DO(t,o),AO(t,o)]),EO.toolbarButton(n.disabled)].concat(t.toolbarButtonBehaviours))})},bz=function(n,t){return yz(n,t,[])},yz=function(n,t,e){return vz(n,{toolbarButtonBehaviours:[].concat(e.length>0?[rw("toolbarButtonWith",e)]:[]),getApi:sz,onSetup:n.onSetup},t)},xz=function(n,t){return wz(n,t,[])},wz=function(n,t,e){return Be(vz(n,{toolbarButtonBehaviours:[ew.config({}),Mw.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(e.length>0?[rw("toolbarToggleButtonWith",e)]:[]),getApi:fz,onSetup:n.onSetup},t))},Sz=function(n,t,e){return function(o){return tB.nu(function(n){return t.fetch(n)}).map(function(r){return St.from(jT(Be(xT(Sc("menu-value"),r,function(e){t.onItemAction(n(o),e)},t.columns,t.presets,FO.CLOSE_ON_EXECUTE,t.select.getOr(function(){return!1}),e),{movement:ST(t.columns,t.presets),menuBehaviours:pk.unnamedEvents("auto"!==t.columns?[]:[Sa(function(n){dk(n,4,jk(t.presets)).each(function(t){var e=t.numRows,o=t.numColumns;Xx.setGridSize(n,e,o)})})])})))})}},Cz=function(n,t){var e,o=Sc("channel-update-split-dropdown-display"),r=function(n){return{isDisabled:function(){return CO.isDisabled(n)},setDisabled:function(t){return CO.set(n,t)},setIconFill:function(t,e){Jf(n.element(),'svg path[id="'+t+'"], rect[id="'+t+'"]').each(function(n){cc(n,"fill",e)})},setIconStroke:function(t,e){Jf(n.element(),'svg path[id="'+t+'"], rect[id="'+t+'"]').each(function(n){cc(n,"stroke",e)})},setActive:function(t){cc(n.element(),"aria-pressed",t),Jf(n.element(),"span").each(function(e){n.getSystem().getByDom(e).each(function(n){return Mw.set(n,t)})})},isActive:function(){return Jf(n.element(),"span").exists(function(t){return n.getSystem().getByDom(t).exists(Mw.isOn)})}}},i=zr(at),u={getApi:r,onSetup:n.onSetup};return cz.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:vt({"aria-pressed":!1},lz(n.tooltip,t.providers))},onExecute:function(t){n.onAction(r(t))},onItemExecute:function(){},splitDropdownBehaviours:bd([EO.splitButton(!1),rw("split-dropdown-events",[da(dz,mw.focus),DO(u,i),AO(u,i)]),QB.config({})]),eventOrder:(e={},e[Xu()]=["alloy.base.behaviour","split-dropdown-events"],e),toggleClass:"tox-tbtn--enabled",lazySink:t.getSink,fetch:Sz(r,n,t.providers),parts:{menu:cT(!1,n.columns,n.presets)},components:[cz.parts().button(pz(n.icon,n.text,St.none(),St.some(o),St.some([Mw.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),t.providers)),cz.parts().arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:lC("chevron-down",t.providers.icons)}}),cz.parts()["aria-descriptor"]({text:t.providers.translate("To open the popup, press Shift+Enter")})]})},kz=function(n){return{hide:function(){return ea(n,Pu())},getValue:function(){return Ah.getValue(n)}}},Oz=function(n,t){return da(iI,function(e,o){var r=n.get(e),i=kz(r);t.onAction(i,o.event().buttonApi())})},_z=function(n,t,o){var r=t.original,i=(r.primary,e(r,["primary"])),u=Jo(EP(vt(vt({},i),{type:"button",onAction:function(){}})));return yz(u,o.backstage.shared.providers,[Oz(n,t)])},Tz=function(n,t,o){var r=t.original,i=(r.primary,e(r,["primary"])),u=Jo(VP(vt(vt({},i),{type:"togglebutton",onAction:function(){}})));return wz(u,o.backstage.shared.providers,[Oz(n,t)])},Ez=function(n,t,e){var o={backstage:{shared:{providers:e}}};return"contextformtogglebutton"===t.type?Tz(n,t,o):_z(n,t,o)},Bz=function(n,t,e){var o=Gt(t,function(t){return sC(Ez(n,t,e))}),r=function(){return Gt(o,function(n){return n.asSpec()})},i=function(n){return le(t,function(t,e){return t.primary?St.from(o[e]).bind(function(t){return t.getOpt(n)}).filter(dt(CO.isDisabled)):St.none()})};return{asSpecs:r,findPrimary:i}},Dz=function(n,t,e){var o=t.label.fold(function(){return{}},function(n){return{"aria-label":n}}),r=sC(UE.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:t.initValue(),inputAttributes:o,selectOnFocus:!0,inputBehaviours:bd([Xx.config({mode:"special",onEnter:function(n){return i.findPrimary(n).map(function(n){return ra(n),!0})},onLeft:function(n,t){return t.cut(),St.none()},onRight:function(n,t){return t.cut(),St.none()}})])})),i=Bz(r,t.commands,e.shared.providers);return OP({type:n,uid:Sc("context-toolbar"),initGroups:[{title:St.none(),items:[r.asSpec()]},{title:St.none(),items:i.asSpecs()}],onEscape:St.none,cyclicKeying:!0})},Az={renderContextForm:Dz},Mz=function(n,t){var e=Math.max(t.x(),n.x()),o=n.right()-e,r=t.width()-(e-t.x()),i=Math.min(o,r);return{x:e,width:i}},Fz=function(n,t,e){var o=Xr.fromDom(n.getContainer()),r=Jf(o,".tox-editor-header").getOr(o),i=jf(r),u=i.y()>=t.bottom(),a=ZS(n),c=a&&!u;if(n.inline&&c)return{y:Math.max(i.bottom(),e.y()),bottom:e.bottom()};if(n.inline&&!c)return{y:e.y(),bottom:Math.min(i.y(),e.bottom())};var s=jf(o);return c?{y:Math.max(i.bottom(),e.y()),bottom:Math.min(s.bottom(),e.bottom())}:{y:Math.max(s.y(),e.y()),bottom:Math.min(i.y(),e.bottom())}},Iz=function(t){var e=Mf(n.window),o=jf(Xr.fromDom(t.getContentAreaContainer())),r=GS(t)||XS(t)||qS(t),i=Mz(o,e),u=i.x,a=i.width;if(t.inline&&!r)return Lf(u,e.y(),a,e.height());var c=Fz(t,o,e),s=c.y,f=c.bottom;return Lf(u,s,a,f-s)},Rz=function(n,t){return le(t,function(t){return t.predicate(n.dom())?St.some({toolbarApi:t,elem:n}):St.none()})},Vz=function(n,t){var e=Xr.fromDom(t.getBody()),o=function(n){return Zi(n,e)},r=function(n){return!o(n)&&!ou(e,n)},i=Xr.fromDom(t.selection.getNode());return r(i)?St.none():Rz(i,n.inNodeScope).orThunk(function(){return Rz(i,n.inEditorScope).orThunk(function(){return o(i)?St.none():ru(i,function(t){return Rz(t,n.inNodeScope)},o)})})},Hz={lookup:Vz},Nz=function(n,t){var e={},o=[],r=[],i={},u={},a=function(n,a){var c=Jo(qP(a));e[n]=c,c.launch.map(function(e){i["form:"+n]=vt(vt({},a.launch),{type:"contextformtogglebutton"===e.type?"togglebutton":"button",onAction:function(){t(c)}})}),"editor"===c.scope?r.push(c):o.push(c),u[n]=c},c=function(n,t){YP(t).each(function(e){"editor"===t.scope?r.push(e):o.push(e),u[n]=e})},s=de(n);return Xt(s,function(t){var e=n[t];"contextform"===e.type?a(t,e):"contexttoolbar"===e.type&&c(t,e)}),{forms:e,inNodeScope:o,inEditorScope:r,lookupTable:u,formNavigators:i}},Pz={categorise:Nz},zz=Sc("forward-slide"),Lz=Sc("backward-slide"),jz=Sc("change-slide-event"),Uz="tox-pop--resizing",Wz=function(n){var t=zr([]);return bS.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(n){t.set([]),bS.getContent(n).each(function(n){Ls(n.element(),"visibility")}),Cs(n.element(),Uz),Ls(n.element(),"width")},inlineBehaviours:bd([rw("context-toolbar-events",[wa(Eu(),function(n){bS.getContent(n).each(function(){}),Cs(n.element(),Uz),Ls(n.element(),"width")}),da(jz,function(n,t){Ls(n.element(),"width");var e=bf(n.element());bS.setContent(n,t.event().contents()),ws(n.element(),Uz);var o=bf(n.element());Fs(n.element(),"width",e+"px"),bS.getContent(n).each(function(e){t.event().focus().bind(function(t){return Ad(t),Rd(n.element())}).orThunk(function(){return Xx.focusIn(e),Id()})}),DS.setTimeout(function(){Fs(n.element(),"width",o+"px")},0)}),da(zz,function(n,e){bS.getContent(n).each(function(n){t.set(t.get().concat([{bar:n,focus:Id()}]))}),oa(n,jz,{contents:e.event().forwardContents(),focus:St.none()})}),da(Lz,function(n){se(t.get()).each(function(e){t.set(t.get().slice(0,t.get().length-1)),oa(n,jz,{contents:rf(e.bar),focus:e.focus})})})]),Xx.config({mode:"special",onEscape:function(e){return se(t.get()).fold(function(){return n.onEscape()},function(){return ea(e,Lz),St.some(!0)})}})]),lazySink:function(){return _t.value(n.sink)}})},Gz=function(n,t,e){var o=function(n,o,i,u){var a=t.shared.providers.translate(n.title);if("separator"===n.type)return St.some({type:"separator",text:a});if("submenu"===n.type){var c=te(n.getStyleItems(),function(n){return r(n,o,u)});return 0===o&&c.length<=0?St.none():St.some({type:"nestedmenuitem",text:a,disabled:c.length<=0,getSubmenuItems:function(){return te(n.getStyleItems(),function(n){return r(n,o,u)})}})}return St.some(vt({type:"togglemenuitem",text:a,active:n.isSelected(u),disabled:i,onAction:e.onAction(n)},n.getStylePreview().fold(function(){return{}},function(n){return{meta:{style:n}}})))},r=function(n,t,r){var i="formatter"===n.type&&e.isInvalid(n);return 0===t?i?[]:o(n,t,!1,r).toArray():o(n,t,i,r).toArray()},i=function(n){var t=e.getCurrentValue(),o=e.shouldHide?0:1;return te(n,function(n){return r(n,o,t)})},u=function(n,t){return function(e){var o=t(),r=i(o),u=xI(r,FO.CLOSE_ON_EXECUTE,n,!1);e(u)}};return{validateItems:i,getFetch:u}},Xz=function(n,t,e){var o=e.dataset,r="basic"===o.type?function(){return Gt(o.data,function(n){return QV(n,e.isSelectedFor,e.getPreviewFor)})}:o.getData;return{items:Gz(n,t,e),getStyleItems:r}},Yz=function(n,t,e){var o=Xz(n,t,e),r=o.items,i=o.getStyleItems,u=function(n){return{getComponent:function(){return n}}},a=function(t){return e.setInitialValue.each(function(n){return n(t.getComponent())}),e.nodeChangeHandler.map(function(e){var o=e(t.getComponent());return n.on("NodeChange",o),function(){n.off("NodeChange",o)}}).getOr(at)};return fI({text:e.icon.isSome()?St.none():St.some(""),icon:e.icon,tooltip:St.from(e.tooltip),role:St.none(),fetch:r.getFetch(t,i),onSetup:a,getApi:u,columns:1,presets:"normal",classes:e.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",t.shared)},qz=function(n){return Gt(n,function(n){var t=n,e=n,o=n.split("=");
return o.length>1&&(t=o[0],e=o[1]),{title:t,format:e}})},Kz=function(n){return{type:"basic",data:n}};!function(n){n[n.SemiColon=0]="SemiColon",n[n.Space=1]="Space"}(MB||(MB={}));var Jz,$z=function(n,t){return t===MB.SemiColon?n.replace(/;$/,"").split(";"):n.split(" ")},Qz=function(n,t,e,o){var r=xe(n.settings,t).getOr(e),i=qz($z(r,o));return{type:"basic",data:i}},Zz=[{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"}],nL=function(n){var t=function(){return Qt(Zz,function(t){return n.formatter.match(t.format)})},e=function(t){return function(){return n.formatter.match(t)}},o=function(){return function(){return St.none()}},r=function(n){var e=t(),o=e.fold(function(){return"left"},function(n){return n.title.toLowerCase()});oa(n,sI,{icon:"align-"+o})},i=St.some(function(n){return function(){return r(n)}}),u=St.some(function(n){return r(n)}),a=Kz(Zz),c=function(t){return function(){return Qt(Zz,function(n){return n.format===t.format}).each(function(t){return n.execCommand(t.command)})}};return{tooltip:"Align",icon:St.some("align-left"),isSelectedFor:e,getCurrentValue:ft(St.none()),getPreviewFor:o,onAction:c,setInitialValue:u,nodeChangeHandler:i,dataset:a,shouldHide:!1,isInvalid:function(t){return!n.formatter.canApply(t.format)}}},tL=function(n,t){return Yz(n,t,nL(n))},eL=function(n,t){var e=Xz(n,t,nL(n));n.ui.registry.addNestedMenuItem("align",{text:t.shared.providers.translate("Align"),getSubmenuItems:function(){return e.items.validateItems(e.getStyleItems())}})},oL="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",rL=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],iL=function(n){var t=n.split(/\s*,\s*/);return Gt(t,function(n){return n.replace(/^['"]+|['"]+$/g,"")})},uL=function(n){var t=function(){var t=iL(n.toLowerCase());return ee(rL,function(n){return t.indexOf(n.toLowerCase())>-1})};return 0===n.indexOf("-apple-system")&&t()},aL=function(n){var t=function(){var t=function(n){return n?iL(n)[0]:""},e=n.queryCommandValue("FontName"),o=s.data,r=e?e.toLowerCase():"",i=Qt(o,function(n){var e=n.format;return e.toLowerCase()===r||t(e).toLowerCase()===t(r).toLowerCase()}).orThunk(function(){return uL(r)?St.from({title:"System Font",format:r}):St.none()});return{matchOpt:i,font:e}},e=function(n){return function(t){return t.exists(function(t){return t.format===n})}},o=function(){var n=t().matchOpt;return n},r=function(n){return function(){return St.some({tag:"div",styles:-1===n.indexOf("dings")?{"font-family":n}:{}})}},i=function(t){return function(){n.undoManager.transact(function(){n.focus(),n.execCommand("FontName",!1,t.format)})}},u=function(n){var e=t(),o=e.matchOpt,r=e.font,i=o.fold(function(){return r},function(n){return n.title});oa(n,cI,{text:i})},a=St.some(function(n){return function(){return u(n)}}),c=St.some(function(n){return u(n)}),s=Qz(n,"font_formats",oL,MB.SemiColon);return{tooltip:"Fonts",icon:St.none(),isSelectedFor:e,getCurrentValue:o,getPreviewFor:r,onAction:i,setInitialValue:c,nodeChangeHandler:a,dataset:s,shouldHide:!1,isInvalid:function(){return!1}}},cL=function(n,t){return Yz(n,t,aL(n))},sL=function(n,t){var e=Xz(n,t,aL(n));n.ui.registry.addNestedMenuItem("fontformats",{text:t.shared.providers.translate("Fonts"),getSubmenuItems:function(){return e.items.validateItems(e.getStyleItems())}})},fL="8pt 10pt 12pt 14pt 18pt 24pt 36pt",lL={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},dL=function(n,t){var e=Math.pow(10,t);return Math.round(n*e)/e},mL=function(n,t){return/[0-9.]+px$/.test(n)?dL(72*parseInt(n,10)/96,t||0)+"pt":n},gL=function(n){return xe(lL,n).getOr("")},pL=function(n){var t=function(){var t=St.none(),e=s.data,o=n.queryCommandValue("FontSize");if(o)for(var r=function(n){var r=mL(o,n),i=gL(r);t=Qt(e,function(n){return n.format===o||n.format===r||n.format===i})},i=3;t.isNone()&&i>=0;i--)r(i);return{matchOpt:t,size:o}},e=function(n){return function(t){return t.exists(function(t){return t.format===n})}},o=function(){var n=t().matchOpt;return n},r=ft(ft(St.none())),i=function(t){return function(){n.undoManager.transact(function(){n.focus(),n.execCommand("FontSize",!1,t.format)})}},u=function(n){var e=t(),o=e.matchOpt,r=e.size,i=o.fold(function(){return r},function(n){return n.title});oa(n,cI,{text:i})},a=St.some(function(n){return function(){return u(n)}}),c=St.some(function(n){return u(n)}),s=Qz(n,"fontsize_formats",fL,MB.Space);return{tooltip:"Font sizes",icon:St.none(),isSelectedFor:e,getPreviewFor:r,getCurrentValue:o,onAction:i,setInitialValue:c,nodeChangeHandler:a,dataset:s,shouldHide:!1,isInvalid:function(){return!1}}},hL=function(n,t){return Yz(n,t,pL(n))},vL=function(n,t){var e=Xz(n,t,pL(n));n.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return e.items.validateItems(e.getStyleItems())}})},bL=function(n,t,e){var o=t();return le(e,function(t){return Qt(o,function(e){return n.formatter.matchNode(t,e.format)})}).orThunk(function(){return n.formatter.match("p")?St.some({title:"Paragraph",format:"p"}):St.none()})},yL=function(n){var t=n.selection.getStart(!0)||n.getBody();return n.dom.getParents(t,function(){return!0},n.getBody())},xL=function(n,t){return function(e){var o=zr(St.none()),r=function(){e.setActive(n.formatter.match(t));var r=n.formatter.formatChanged(t,e.setActive).unbind;o.set(St.some(r))};return n.initialized?r():n.on("init",r),function(){return o.get().each(function(n){return n()})}}},wL=function(n){return function(t){return function(){n.undoManager.transact(function(){n.focus(),n.execCommand("mceToggleFormat",!1,t.format)})}}},SL="Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",CL=function(n){var t=function(t){return bL(n,function(){return a.data},t)},e=function(t){return function(){return n.formatter.match(t)}},o=function(t){return function(){var e=n.formatter.get(t);return St.some({tag:e.length>0?e[0].inline||e[0].block||"div":"div",styles:n.dom.parseStyle(n.formatter.getCssText(t))})}},r=function(n,e){var o=t(n),r=o.fold(function(){return"Paragraph"},function(n){return n.title});oa(e,cI,{text:r})},i=St.some(function(n){return function(t){return r(t.parents,n)}}),u=St.some(function(t){var e=yL(n);r(e,t)}),a=Qz(n,"block_formats",SL,MB.SemiColon);return{tooltip:"Blocks",icon:St.none(),isSelectedFor:e,getCurrentValue:ft(St.none()),getPreviewFor:o,onAction:wL(n),setInitialValue:u,nodeChangeHandler:i,dataset:a,shouldHide:!1,isInvalid:function(t){return!n.formatter.canApply(t.format)}}},kL=function(n,t){return Yz(n,t,CL(n))},OL=function(n,t){var e=Xz(n,t,CL(n));n.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return e.items.validateItems(e.getStyleItems())}})},_L=function(n,t){var e=function(t){return function(){return n.formatter.match(t)}},o=function(t){return function(){var e=n.formatter.get(t);return void 0!==e?St.some({tag:e.length>0?e[0].inline||e[0].block||"div":"div",styles:n.dom.parseStyle(n.formatter.getCssText(t))}):St.none()}},r=function(t,e){var o=function(n){var t=n.items;return void 0!==t&&t.length>0?te(t,o):[{title:n.title,format:n.format}]},r=te($V(n),o),i=bL(n,function(){return r},t),u=i.fold(function(){return"Paragraph"},function(n){return n.title});oa(e,cI,{text:u})},i=St.some(function(n){return function(t){return r(t.parents,n)}}),u=St.some(function(t){var e=yL(n);r(e,t)});return{tooltip:"Formats",icon:St.none(),isSelectedFor:e,getCurrentValue:ft(St.none()),getPreviewFor:o,onAction:wL(n),setInitialValue:u,nodeChangeHandler:i,shouldHide:n.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(t){return!n.formatter.canApply(t.format)},dataset:t}},TL=function(n,t){var e=vt({type:"advanced"},t.styleselect);return Yz(n,t,_L(n,e))},EL=function(n,t){var e=vt({type:"advanced"},t.styleselect),o=Xz(n,t,_L(n,e));n.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return o.items.validateItems(o.getStyleItems())}})},BL=[{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"]}],DL=function(n,t){return function(e,o,r){var i=n(e).mapError(function(n){return Qo(n)}).getOrDie();return t(i,o,r)}},AL={button:DL(EP,function(n,t){return bz(n,t.backstage.shared.providers)}),togglebutton:DL(VP,function(n,t){return xz(n,t.backstage.shared.providers)}),menubutton:DL(AP,function(n,t){return SI(n,"tox-tbtn",t.backstage,St.none())}),splitbutton:DL(FP,function(n,t){return Cz(n,t.backstage.shared)}),grouptoolbarbutton:DL(NP,function(n,t,e){var o,r=e.ui.registry.getAll().buttons,i=function(n){return PL(e,{buttons:r,toolbar:n,allowToolbarGroups:!1},t,St.none())},u=(o={},o[Cm]=ZS(e)?ol.TopToBottom:ol.BottomToTop,o);switch(JS(e)){case jb.floating:return hz(n,t.backstage,i,u);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}}),styleSelectButton:function(n,t){return TL(n,t.backstage)},fontsizeSelectButton:function(n,t){return hL(n,t.backstage)},fontSelectButton:function(n,t){return cL(n,t.backstage)},formatButton:function(n,t){return kL(n,t.backstage)},alignMenuButton:function(n,t){return tL(n,t.backstage)}},ML=function(t,e,o){return xe(AL,t.type).fold(function(){return n.console.error("skipping button defined by",t),St.none()},function(n){return St.some(n(t,e,o))})},FL={styleselect:AL.styleSelectButton,fontsizeselect:AL.fontsizeSelectButton,fontselect:AL.fontSelectButton,formatselect:AL.formatButton,align:AL.alignMenuButton},IL=function(n){var t=Gt(BL,function(t){var e=Kt(t.items,function(t){return we(n,t)||we(FL,t)});return{name:t.name,items:e}});return Kt(t,function(n){return n.items.length>0})},RL=function(n){var t=n.split("|");return Gt(t,function(n){return{items:n.trim().split(" ")}})},VL=function(n){return Rt(n,function(n){return we(n,"name")&&we(n,"items")})},HL=function(t){var e=t.toolbar,o=t.buttons;return e===!1?[]:void 0===e||e===!0?IL(o):Bt(e)?RL(e):VL(e)?e:(n.console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},NL=function(t,e,o,r,i,u){return xe(e,o.toLowerCase()).orThunk(function(){return u.bind(function(n){return le(n,function(n){return xe(e,n+o.toLowerCase())})})}).fold(function(){return xe(FL,o.toLowerCase()).map(function(n){return n(t,i)}).orThunk(function(){return St.none()})},function(e){return"grouptoolbarbutton"!==e.type||r?ML(e,i,t):(n.console.warn("Ignoring the '"+o+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),St.none())})},PL=function(n,t,e,o){var r=HL(t),i=Gt(r,function(r){var i=te(r.items,function(r){return 0===r.trim().length?[]:NL(n,t.buttons,r,t.allowToolbarGroups,e,o).toArray()});return{title:St.from(n.translate(r.name)),items:i}});return Kt(i,function(n){return n.items.length>0})},zL=12,LL={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"]},jL={maxHeightFunction:lm(),maxWidthFunction:XH()},UL={onLtr:function(){return[td,ed,Zl,$l,nd,Ql,ES,BS,_S,kS,TS,OS]},onRtl:function(){return[td,ed,nd,Ql,Zl,$l,ES,BS,TS,OS,_S,kS]}},WL={onLtr:function(){return[ed,$l,Ql,Zl,nd,td,ES,BS,_S,kS,TS,OS]},onRtl:function(){return[ed,Ql,$l,nd,Zl,td,ES,BS,TS,OS,_S,kS]}},GL=function(n,t){return"line"===n?{bubble:vm(zL,0,LL),layouts:{onLtr:function(){return[od]},onRtl:function(){return[rd]}},overrides:jL}:{bubble:vm(0,zL,LL),layouts:t?WL:UL,overrides:jL}},XL=function(n,t,e,o){var r=Ui().deviceType.isTouch,i=of(Wz({sink:e,onEscape:function(){return n.focus(),St.some(!0)}})),u=function(){return Iz(n)},a=function(n,t,e,o){return Math.max(n,e)<=Math.min(t,o)},c=function(){var t=m.get().map(function(n){return n.getBoundingClientRect()}).getOrThunk(function(){return n.selection.getRng().getBoundingClientRect()}),e=n.inline?Ef().top():Uf(Xr.fromDom(n.getBody())).y();return{y:t.top+e,bottom:t.bottom+e}},s=function(){if(r()&&o.backstage.isContextMenuOpen())return!0;var n=c(),t=u();return!a(n.y,n.bottom,t.y(),t.bottom())},f=function(){bS.hide(i)},l=function(){d.get().each(function(n){var t=i.element();Ls(t,"display"),s()?Fs(t,"display","none"):pp.positionWithinBounds(e,n,i,St.some(u()))})},d=zr(St.none()),m=zr(St.none()),g=zr(null),p=function(t){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:bd([Xx.config({mode:"acyclic"}),rw("pop-dialog-wrap-events",[Sa(function(t){n.shortcuts.add("ctrl+F9","focus statusbar",function(){return Xx.focusIn(t)})}),Ca(function(){n.shortcuts.remove("ctrl+F9")})])])}},h=Ae(function(){return Pz.categorise(t,function(n){var t=v(n);oa(i,zz,{forwardContents:p(t)})})}),v=function(t){var e=n.ui.registry.getAll().buttons,r=JS(n)===jb.scrolling?jb.scrolling:jb.default,i=h();return"contexttoolbar"===t.type?function(){var u=vt(vt({},e),i.formNavigators),a=PL(n,{buttons:u,toolbar:t.items,allowToolbarGroups:!1},o,St.some(["form:"]));return OP({type:r,uid:Sc("context-toolbar"),initGroups:a,onEscape:St.none,cyclicKeying:!0})}():function(){return Az.renderContextForm(r,t,o.backstage)}()};n.on(YH,function(t){var e=h();xe(e.lookupTable,t.toolbarKey).each(function(e){y(e,t.target===n?St.none():St.some(t)),bS.getContent(i).each(Xx.focusIn)})});var b=function(n,t){var e="node"===n?o.backstage.shared.anchors.node(t):o.backstage.shared.anchors.cursor();return Be(e,GL(n,r()))},y=function(n,t){if(w(),!r()||!o.backstage.isContextMenuOpen()){var e=v(n),a=t.map(Xr.fromDom),c=b(n.position,a);d.set(St.some(c)),m.set(t);var f=i.element();Ls(f,"display"),bS.showWithinBounds(i,c,p(e),function(){return St.some(u())}),s()&&Fs(f,"display","none")}},x=function(){if(n.hasFocus()){var t=h();Hz.lookup(t,n).fold(function(){d.set(St.none()),bS.hide(i)},function(n){y(n.toolbarApi,St.some(n.elem.dom()))})}},w=function(){var n=g.get();null!==n&&(DS.clearTimeout(n),g.set(null))},S=function(n){w(),g.set(n)};n.on("init",function(){n.on(qH,f),n.on("ScrollContent ScrollWindow longpress",l),n.on("click keyup focus SetContent ObjectResized ResizeEditor",function(){S(DS.setEditorTimeout(n,x,0))}),n.on("focusout",function(){DS.setEditorTimeout(n,function(){Rd(e.element()).isNone()&&Rd(i.element()).isNone()&&(d.set(St.none()),bS.hide(i))},0)}),n.on("SwitchMode",function(){n.mode.isReadOnly()&&(d.set(St.none()),bS.hide(i))}),n.on("NodeChange",function(){Rd(i.element()).fold(function(){S(DS.setEditorTimeout(n,x,0))},function(){})})})},YL={register:XL},qL=function(t,e,o){var r=function(n,t){Xt([e,o],function(e){e.broadcastEvent(n,t)})},i=function(n,t){Xt([e,o],function(e){e.broadcastOn([n],t)})},u=function(n){return i(Jp(),{target:n.target()})},a=YT(Xr.fromDom(n.document),"touchstart",u),c=YT(Xr.fromDom(n.document),"touchmove",function(n){return r(ju(),n)}),s=YT(Xr.fromDom(n.document),"touchend",function(n){return r(Uu(),n)}),f=YT(Xr.fromDom(n.document),"mousedown",u),l=YT(Xr.fromDom(n.document),"mouseup",function(n){0===n.raw().button&&i(Qp(),{target:n.target()})}),d=function(n){return i(Jp(),{target:Xr.fromDom(n.target)})},m=function(n){0===n.button&&i(Qp(),{target:Xr.fromDom(n.target)})},g=function(n){return r(Wu(),KT(n))},p=function(n){i($p(),{}),r(Gu(),KT(n))},h=function(){return i($p(),{})};t.on("PostRender",function(){t.on("click",d),t.on("tap",d),t.on("mouseup",m),t.on("ScrollWindow",g),t.on("ResizeWindow",p),t.on("ResizeEditor",h)}),t.on("remove",function(){t.off("click",d),t.off("tap",d),t.off("mouseup",m),t.off("ScrollWindow",g),t.off("ResizeWindow",p),t.off("ResizeEditor",h),f.unbind(),a.unbind(),c.unbind(),s.unbind(),l.unbind()}),t.on("detach",function(){Bp(e),Bp(o),e.destroy(),o.destroy()})},KL={setup:qL},JL=Fv,$L=pv,QL=ft([Br("shell",!1),fr("makeItem"),Br("setupItem",at),Rh.field("listBehaviours",[ew])]),ZL=function(){return{behaviours:bd([ew.config({})])}},nj=dv({name:"items",overrides:ZL}),tj=ft([nj]),ej=ft("CustomList"),oj=function(t,e){var o=function(e,o){i(e).fold(function(){throw n.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(n){var r=ew.contents(n),i=o.length,u=i-r.length,a=u>0?Ut(u,function(){return t.makeItem()}):[],c=r.slice(i);Xt(c,function(t){return ew.remove(n,t)}),Xt(a,function(t){return ew.append(n,t)});var s=ew.contents(n);Xt(s,function(n,r){t.setupItem(e,n,o[r],r)})})},r=t.shell?{behaviours:[ew.config({})],components:[]}:{behaviours:[],components:e},i=function(n){return t.shell?St.some(n):Ov(n,t,"items")};return{uid:t.uid,dom:t.dom,components:r.components,behaviours:Ih(t.listBehaviours,r.behaviours),apis:{setItems:o}}},rj=Uv({name:ej(),configFields:QL(),partFields:tj(),factory:oj,apis:{setItems:function(n,t,e){n.setItems(t,e)}}}),ij=function(n){var t=Ns(n,"position").is("fixed"),e=t?St.none():Ha(n);return e.orThunk(function(){var t=Xr.fromTag("span");return Va(n).bind(function(n){Xa(n,t);var e=Ha(t);return $a(t),e})})},uj=function(n){return ij(n).map(gf).getOrThunk(function(){return lf(0,0)})},aj=ke.generate([{"static":[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),cj=function(n,t){var e=n.element();ws(e,t.transitionClass),Cs(e,t.fadeOutClass),ws(e,t.fadeInClass),t.onShow(n)},sj=function(n,t){var e=n.element();ws(e,t.transitionClass),Cs(e,t.fadeInClass),ws(e,t.fadeOutClass),t.onHide(n)},fj=function(n,t){return n.y()<t.bottom()&&n.bottom()>t.y()},lj=function(n,t){return n.y()>=t.y()},dj=function(n,t){return n.bottom()<=t.bottom()},mj=function(n,t,e){return ee(n,function(n){switch(n){case"bottom":return dj(t,e);case"top":return lj(t,e)}})},gj=function(n,t){return t.getInitialPosition().map(function(t){return Lf(t.bounds.x(),t.bounds.y(),bf(n),af(n))})},pj=function(n,t,e){e.setInitialPosition(St.some({style:Ps(n),position:Vs(n,"position")||"static",bounds:t}))},hj=function(n,t,e){return e.getInitialPosition().bind(function(o){switch(e.setInitialPosition(St.none()),o.position){case"static":return St.some(aj.static());case"absolute":var r=ij(n).map(jf).getOrThunk(function(){return jf(Bs())});return St.some(aj.absolute(Hd("absolute",xe(o.style,"left").map(function(){return t.x()-r.x()}),xe(o.style,"top").map(function(){return t.y()-r.y()}),xe(o.style,"right").map(function(){return r.right()-t.right()}),xe(o.style,"bottom").map(function(){return r.bottom()-t.bottom()}))));default:return St.none()}})},vj=function(n,t,e,o){return gj(n,o).filter(function(n){return mj(t.modes,n,e)}).bind(function(t){return hj(n,t,o)})},bj=function(n,t,e,o){var r=jf(n);if(mj(t.modes,r,e))return St.none();pj(n,r,o);var i=Wf(),u=r.x()-i.x(),a=e.y()-i.y(),c=i.bottom()-e.bottom(),s=r.y()<=e.y();return St.some(aj.fixed(Hd("fixed",St.some(u),s?St.some(a):St.none(),St.none(),s?St.none():St.some(c))))},yj=function(n,t,e,o){var r=n.element(),i=Ns(r,"position").is("fixed");return i?vj(r,t,e,o):bj(r,t,e,o)},xj=function(n,t){var e=n.element();return gj(e,t).bind(function(n){return hj(e,n,t)})},wj=function(n,t){Xt(["left","right","top","bottom","position"],function(t){return Ls(n.element(),t)}),t.onUndocked(n)},Sj=function(n,t,e){Nd(n.element(),e);var o="fixed"===e.position()?t.onDocked:t.onUndocked;o(n)},Cj=function(n,t,e,o,r){void 0===r&&(r=!1),t.contextual.each(function(t){t.lazyContext(n).each(function(i){var u=fj(i,o);if(u!==e.isVisible())if(e.setVisible(u),r&&!u)Os(n.element(),[t.fadeOutClass]),t.onHide(n);else{var a=u?cj:sj;a(n,t)}})})},kj=function(n,t,e){var o=t.lazyViewport(n),r=e.isDocked();r&&Cj(n,t,e,o),yj(n,t,o,e).each(function(i){e.setDocked(!r),i.fold(function(){return wj(n,t)},function(e){return Sj(n,t,e)},function(r){Cj(n,t,e,o,!0),Sj(n,t,r)})})},Oj=function(n,t,e){var o=n.element();e.setDocked(!1),xj(n,e).each(function(e){e.fold(function(){return wj(n,t)},function(e){return Sj(n,t,e)},at)}),e.setVisible(!0),t.contextual.each(function(t){_s(o,[t.fadeInClass,t.fadeOutClass,t.transitionClass]),t.onShow(n)}),_j(n,t,e)},_j=function(n,t,e){n.getSystem().isConnected()&&kj(n,t,e)},Tj=function(n,t,e){e.isDocked()&&Oj(n,t,e)},Ej=function(n,t,e){return e.isDocked()},Bj=Object.freeze({__proto__:null,refresh:_j,reset:Tj,isDocked:Ej}),Dj=function(n,t){return ca([wa(Eu(),function(e,o){n.contextual.each(function(n){if(ks(e.element(),n.transitionClass)){_s(e.element(),[n.transitionClass,n.fadeInClass]);var r=t.isVisible()?n.onShown:n.onHidden;r(e)}o.stop()})}),da(Wu(),function(e){_j(e,n,t)}),da(Gu(),function(e){Tj(e,n,t)})])},Aj=Object.freeze({__proto__:null,events:Dj}),Mj=[Tr("contextual",[mr("fadeInClass"),mr("fadeOutClass"),mr("transitionClass"),hr("lazyContext"),xl("onShow"),xl("onShown"),xl("onHide"),xl("onHidden")]),Rr("lazyViewport",Wf),Hr("modes",["top","bottom"],rr),xl("onDocked"),xl("onUndocked")],Fj=function(){var n=zr(!1),t=zr(!0),e=zr(St.none()),o=function(){return"docked: "+n.get()+", visible: "+t.get()};return Uc({isDocked:function(){return n.get()},setDocked:function(t){return n.set(t)},getInitialPosition:function(){return e.get()},setInitialPosition:function(n){return e.set(n)},isVisible:function(){return t.get()},setVisible:function(n){return t.set(n)},readState:o})},Ij=Object.freeze({__proto__:null,init:Fj}),Rj=xd({fields:Mj,name:"docking",active:Aj,apis:Bj,state:Ij}),Vj={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},Hj="tox-tinymce--toolbar-sticky-on",Nj="tox-tinymce--toolbar-sticky-off",Pj=function(n,t){var e=Fa(t),o=e.dom().defaultView.innerHeight,r=Ef(e),i=Xr.fromDom(n.elm),u=Uf(i),a=af(i),c=u.y(),s=c+a,f=gf(t),l=af(t),d=f.top(),m=d+l,g=Math.abs(d-r.top())<2,p=Math.abs(m-(r.top()+o))<2;if(g&&m>c)Bf(r.left(),c-l,e);else if(p&&s>d){var h=c-o+a+l;Bf(r.left(),h,e)}},zj=function(n,t){var e=function(n){return cf(n)+(parseInt(Vs(n,"margin-top"),10)||0)+(parseInt(Vs(n,"margin-bottom"),10)||0)},o=n.element();Va(o).each(function(r){var i="padding-"+(t?"top":"bottom");if(Rj.isDocked(n)){var u=bf(r);Fs(o,"width",u+"px"),Fs(r,i,e(o)+"px")}else Ls(o,"width"),Ls(r,i)})},Lj=function(n,t){t?(Cs(n,Vj.fadeOutClass),Os(n,[Vj.transitionClass,Vj.fadeInClass])):(Cs(n,Vj.fadeInClass),Os(n,[Vj.fadeOutClass,Vj.transitionClass]))},jj=function(n,t){var e=Xr.fromDom(n.getContainer());t?(ws(e,Hj),Cs(e,Nj)):(ws(e,Nj),Cs(e,Hj))},Uj=function(n,t){var e=Fa(t);Id(e).filter(function(n){return!Zi(t,n)}).filter(function(t){return Zi(t,Xr.fromDom(e.dom().body))||ou(n,t)}).each(function(){return Ad(t)})},Wj=function(n,t){return Rd(n).orThunk(function(){return t().toOption().bind(function(n){return Rd(n.element())})})},Gj=function(n,t){n.inline||(ZS(n)||n.on("ResizeEditor",function(){t().each(Rj.reset)}),n.on("ResizeWindow ResizeEditor",function(){t().each(function(t){return zj(t,ZS(n))})}),n.on("SkinLoaded",function(){t().each(function(n){Rj.isDocked(n)?Rj.reset(n):Rj.refresh(n)})}),n.on("FullscreenStateChanged",function(){t().each(Rj.reset)})),n.on("AfterScrollIntoView",function(n){t().each(function(t){Rj.refresh(t);var e=t.element();my(e)&&Pj(n,e)})}),n.on("PostRender",function(){jj(n,!1)})},Xj=function(n){return n().map(Rj.isDocked).getOr(!1)},Yj=function(n){var t;return[Ed.config({channels:(t={},t[lP()]={onReceive:function(t){zj(t,n)}},t)})]},qj=function(n,t){var e=zr(St.none()),r=ZS(n),i=function(n){t().each(function(t){return n(t.element())})},u=function(e){n.inline||zj(e,r),jj(n,Rj.isDocked(e)),e.getSystem().broadcastOn([$p()],{}),t().each(function(n){return n.getSystem().broadcastOn([$p()],{})})},a=n.inline?[]:Yj(r);return o([mw.config({}),Rj.config({contextual:vt({lazyContext:function(t){var e=cf(t.element()),o=n.inline?n.getContentAreaContainer():n.getContainer(),i=jf(Xr.fromDom(o)),u=i.height()-e,a=i.y()+(r?0:e);return St.some(Lf(i.x(),a,i.width(),u))},onShow:function(){i(function(n){return Lj(n,!0)})},onShown:function(n){i(function(n){return _s(n,[Vj.transitionClass,Vj.fadeInClass])}),e.get().each(function(t){Uj(n.element(),t),e.set(St.none())})},onHide:function(n){e.set(Wj(n.element(),t)),i(function(n){return Lj(n,!1)})},onHidden:function(){i(function(n){return _s(n,[Vj.transitionClass])})}},Vj),modes:[r?"top":"bottom"],onDocked:u,onUndocked:u})],a)},Kj=Object.freeze({__proto__:null,setup:Gj,isDocked:Xj,getBehaviours:qj}),Jj=at,$j=gt,Qj=ft([]),Zj=Object.freeze({__proto__:null,setup:Jj,isDocked:$j,getBehaviours:Qj}),nU=function(n){var t=n.editor,e=n.sticky?qj:Qj;return{uid:n.uid,dom:n.dom,components:n.components,behaviours:bd(e(t,n.getSink))}},tU=function(n,t){var e=function(n,e){var o=Gt(e,function(n){var e={type:"menubutton",text:n.text,fetch:function(t){t(n.getItems())}},o=AP(e).mapError(function(n){return Qo(n)}).getOrDie();return SI(o,"tox-mbtn",t.backstage,St.some("menuitem"))});ew.set(n,o)},o={focus:Xx.focusIn,setMenus:e};return{uid:n.uid,dom:n.dom,components:[],behaviours:bd([ew.config({}),rw("menubar-events",[Sa(function(t){n.onSetup(t)}),da(xu(),function(n,t){Jf(n.element(),".tox-mbtn--active").each(function(e){$f(t.event().target(),".tox-mbtn").each(function(t){Zi(e,t)||n.getSystem().getByDom(e).each(function(e){n.getSystem().getByDom(t).each(function(n){qB.expand(n),qB.close(e),mw.focus(n)})})})})}),da(Ju(),function(n,t){t.event().prevFocus().bind(function(t){return n.getSystem().getByDom(t).toOption()}).each(function(e){t.event().newFocus().bind(function(t){return n.getSystem().getByDom(t).toOption()}).each(function(n){qB.isOpen(e)&&(qB.expand(n),qB.close(e))})})})]),Xx.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return n.onEscape(t),St.some(!0)}}),vB.config({})]),apis:o,domModification:{attributes:{role:"menubar"}}}},eU=jv({factory:tU,name:"silver.Menubar",configFields:[fr("dom"),fr("uid"),fr("onEscape"),fr("backstage"),Br("onSetup",at)],apis:{focus:function(n,t){n.focus(t)},setMenus:function(n,t,e){n.setMenus(t,e)}}}),oU="container",rU=[Mh("slotBehaviours",[])],iU=function(n){return"<alloy.field."+n+">"},uU=function(n){var t=function(){var n=[],t=function(t,e){return n.push(t),xv(oU,iU(t),e)};return{slot:t,record:function(){return n}}}(),e=n(t),o=t.record(),r=Gt(o,function(n){return fv({name:n,pname:iU(n)})});return Hv(oU,rU,r,aU,e)},aU=function(n,t){var e=function(){return Bv(n)},o=function(t,e){return Ov(t,n,e)},r=function(t,e){return function(o,r){return Ov(o,n,r).map(function(n){return t(n,r)}).getOr(e)}},i=function(n){return function(t,e){Xt(e,function(e){return n(t,e)})}},u=function(n){return"true"!==fc(n.element(),"aria-hidden")},a=function(n,t){if(!u(n)){var e=n.element();Ls(e,"display"),mc(e,"aria-hidden"),oa(n,$u(),{name:t,visible:!0})}},c=function(n,t){if(u(n)){var e=n.element();Fs(e,"display","none"),cc(e,"aria-hidden","true"),oa(n,$u(),{name:t,visible:!1})}},s=r(u,!1),f=r(c),l=i(f),d=function(n){return l(n,e())},m=r(a),g={getSlotNames:e,getSlot:o,isShowing:s,hideSlot:f,hideAllSlots:d,showSlot:m};return{uid:n.uid,dom:n.dom,components:t,behaviours:Fh(n.slotBehaviours),apis:g}},cU=pe({getSlotNames:function(n,t){return n.getSlotNames(t)},getSlot:function(n,t,e){return n.getSlot(t,e)},isShowing:function(n,t,e){return n.isShowing(t,e)},hideSlot:function(n,t,e){return n.hideSlot(t,e)},hideAllSlots:function(n,t){return n.hideAllSlots(t)},showSlot:function(n,t,e){return n.showSlot(t,e)}},function(n){return Lc(n)}),sU=vt(vt({},cU),{sketch:uU}),fU=Mo([kr("icon"),kr("tooltip"),Rr("onShow",at),Rr("onHide",at),Rr("onSetup",function(){return at})]),lU=function(n){return Ko("sidebar",fU,n)},dU=function(n){var t=n.ui.registry.getAll().sidebars;Xt(de(t),function(e){var o=t[e],r=function(){return St.from(n.queryCommandValue("ToggleSidebar")).is(e)};n.ui.registry.addToggleButton(e,{icon:o.icon,tooltip:o.tooltip,onAction:function(t){n.execCommand("ToggleSidebar",!1,e),t.setActive(r())},onSetup:function(t){var e=function(){return t.setActive(r())};return n.on("ToggleSidebar",e),function(){n.off("ToggleSidebar",e)}}})})},mU=function(n){return{element:function(){return n.element().dom()}}},gU=function(n,t){var e=Gt(de(t),function(n){var e=t[n],o=Jo(lU(e));return{name:n,getApi:mU,onSetup:o.onSetup,onShow:o.onShow,onHide:o.onHide}});return Gt(e,function(t){var o=zr(at);return n.slot(t.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:pk.unnamedEvents([DO(t,o),AO(t,o),da($u(),function(n,t){var o=t.event(),r=Qt(e,function(n){return n.name===o.name()});r.each(function(t){var e=o.visible()?t.onShow:t.onHide;e(t.getApi(n))})})])})})},pU=function(n){return sU.sketch(function(t){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:gU(t,n),slotBehaviours:pk.unnamedEvents([Sa(function(n){return sU.hideAllSlots(n)})])}})},hU=function(n,t){var e=Qv.getCurrent(n);e.each(function(n){return ew.set(n,[pU(t)])})},vU=function(n,t){var e=Qv.getCurrent(n);e.each(function(n){var e=Qv.getCurrent(n);e.each(function(e){rP.hasGrown(n)?sU.isShowing(e,t)?rP.shrink(n):(sU.hideAllSlots(e),sU.showSlot(e,t)):(sU.hideAllSlots(e),sU.showSlot(e,t),rP.grow(n))})})},bU=function(n){var t=Qv.getCurrent(n);return t.bind(function(n){var t=rP.isGrowing(n)||rP.hasGrown(n);if(t){var e=Qv.getCurrent(n);return e.bind(function(n){return Qt(sU.getSlotNames(n),function(t){return sU.isShowing(n,t)})})}return St.none()})},yU=Sc("FixSizeEvent"),xU=Sc("AutoSizeEvent"),wU=function(n){return{uid:n.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:bd([vB.config({}),mw.config({}),rP.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(n){var t=Qv.getCurrent(n);t.each(sU.hideAllSlots),ea(n,xU)},onGrown:function(n){ea(n,xU)},onStartGrow:function(n){oa(n,yU,{width:Ns(n.element(),"width").getOr("")})},onStartShrink:function(n){oa(n,yU,{width:bf(n.element())+"px"})}}),ew.config({}),Qv.config({find:function(n){var t=ew.contents(n);return ce(t)}})])}],behaviours:bd([rF.childAt(0),rw("sidebar-sliding-events",[da(yU,function(n,t){Fs(n.element(),"width",t.event().width())}),da(xU,function(n){Ls(n.element(),"width")})])])}},SU=function(n){var t=void 0!==n.dom().attributes?n.dom().attributes:[];return $t(t,function(n,t){var e;return"class"===t.name?n:vt(vt({},n),(e={},e[t.name]=t.value,e))},{})},CU=function(n){return Array.prototype.slice.call(n.dom().classList,0)},kU=function(n){var t=Xr.fromHtml(n),e=Pa(t),o=SU(t),r=CU(t),i=0===e.length?{}:{innerHtml:Za(t)};return vt({tag:ec(t),classes:r,attributes:o},i)},OU=function(n){return{dom:{tag:"div",attributes:{"aria-label":n.translate("Loading...")},classes:["tox-throbber__busy-spinner"]},components:[{dom:kU('<div class="tox-spinner"><div></div><div></div><div></div></div>')}],behaviours:bd([Xx.config({mode:"special",onTab:function(){return St.some(!0)},onShiftTab:function(){return St.some(!0)}}),mw.config({})])}},_U=function(n,t,e){var o=n.element();t===!0?(ew.set(n,[OU(e)]),Ls(o,"display"),mc(o,"aria-hidden")):(ew.set(n,[]),Fs(o,"display","none"),cc(o,"aria-hidden","true"))},TU=function(n){return{uid:n.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:bd([ew.config({})]),components:[]}
},EU=function(n,t,e){var o=zr(!1),r=zr(St.none()),i=function(n){n!==o.get()&&(_U(t(),n,e.providers),o.set(n))};n.on("ProgressState",function(t){if(r.get().each(DS.clearTimeout),It(t.time)){var e=DS.setEditorTimeout(n,function(){return i(t.state)},t.time);r.set(St.some(e))}else i(t.state),r.set(St.none())})},BU=function(n,t){var e={getSocket:function(t){return JL.getPart(t,n,"socket")},setSidebar:function(t,e){JL.getPart(t,n,"sidebar").each(function(n){return hU(n,e)})},toggleSidebar:function(t,e){JL.getPart(t,n,"sidebar").each(function(n){return vU(n,e)})},whichSidebar:function(t){return JL.getPart(t,n,"sidebar").bind(bU).getOrNull()},getHeader:function(t){return JL.getPart(t,n,"header")},getToolbar:function(t){return JL.getPart(t,n,"toolbar")},setToolbar:function(t,e){JL.getPart(t,n,"toolbar").each(function(n){n.getApis().setGroups(n,e)})},setToolbars:function(t,e){JL.getPart(t,n,"multiple-toolbar").each(function(n){rj.setItems(n,e)})},refreshToolbar:function(t){var e=JL.getPart(t,n,"toolbar");e.each(function(n){return n.getApis().refresh(n)})},getThrobber:function(t){return JL.getPart(t,n,"throbber")},focusToolbar:function(t){var e=JL.getPart(t,n,"toolbar").orThunk(function(){return JL.getPart(t,n,"multiple-toolbar")});e.each(function(n){Xx.focusIn(n)})},setMenubar:function(t,e){JL.getPart(t,n,"menubar").each(function(n){eU.setMenus(n,e)})},focusMenubar:function(t){JL.getPart(t,n,"menubar").each(function(n){eU.focus(n)})}};return{uid:n.uid,dom:n.dom,components:t,apis:e,behaviours:n.behaviours}},DU=$L.optional({factory:eU,name:"menubar",schema:[fr("backstage")]}),AU=function(n){return n.type===jb.sliding?kP:n.type===jb.floating?CP:OP},MU=$L.optional({factory:{sketch:function(n){return rj.sketch({uid:n.uid,dom:n.dom,listBehaviours:bd([Xx.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return OP({type:n.type,uid:Sc("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],onEscape:function(){return St.none()}})},setupItem:function(n,t,e){oN.setGroups(t,e)},shell:!0})}},name:"multiple-toolbar",schema:[fr("dom"),fr("onEscape")]}),FU=$L.optional({factory:{sketch:function(n){var t=AU(n),e={type:n.type,uid:n.uid,onEscape:function(){return n.onEscape(),St.some(!0)},cyclicKeying:!1,initGroups:[],getSink:n.getSink,backstage:n.backstage,moreDrawerData:{lazyToolbar:n.lazyToolbar,lazyMoreButton:n.lazyMoreButton,lazyHeader:n.lazyHeader},attributes:n.attributes};return t(e)}},name:"toolbar",schema:[fr("dom"),fr("onEscape"),fr("getSink")]}),IU=$L.optional({factory:{sketch:nU},name:"header",schema:[fr("dom")]}),RU=$L.optional({name:"socket",schema:[fr("dom")]}),VU=$L.optional({factory:{sketch:wU},name:"sidebar",schema:[fr("dom")]}),HU=$L.optional({factory:{sketch:TU},name:"throbber",schema:[fr("dom")]}),NU=Uv({name:"OuterContainer",factory:BU,configFields:[fr("dom"),fr("behaviours")],partFields:[IU,DU,FU,MU,RU,VU,HU],apis:{getSocket:function(n,t){return n.getSocket(t)},setSidebar:function(n,t,e){n.setSidebar(t,e)},toggleSidebar:function(n,t,e){n.toggleSidebar(t,e)},whichSidebar:function(n,t){return n.whichSidebar(t)},getHeader:function(n,t){return n.getHeader(t)},getToolbar:function(n,t){return n.getToolbar(t)},setToolbar:function(n,t,e){var o=Gt(e,function(n){return xP(n)});n.setToolbar(t,o)},setToolbars:function(n,t,e){var o=Gt(e,function(n){return Gt(n,xP)});n.setToolbars(t,o)},refreshToolbar:function(n,t){return n.refreshToolbar(t)},getThrobber:function(n,t){return n.getThrobber(t)},setMenubar:function(n,t,e){n.setMenubar(t,e)},focusMenubar:function(n,t){n.focusMenubar(t)},focusToolbar:function(n,t){n.focusToolbar(t)}}}),PU="file edit view insert format tools table help",zU={file:{title:"File",items:"newdocument restoredraft | preview | 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 | forecolor backcolor | 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(n,t,e){var o=WS(e).split(/[ ,]/);return{text:n.title,getItems:function(){return te(n.items,function(n){var e=n.toLowerCase();return 0===e.trim().length?[]:jt(o,function(n){return n===e})?[]:"separator"===e||"|"===e?[{type:"separator"}]:t.menuItems[e]?[t.menuItems[e]]:[]})}}},jU=function(n){return"string"==typeof n?n.split(" "):n},UU=function(n,t){var e=vt(vt({},zU),t.menus),o=de(t.menus).length>0,r=jU(void 0===t.menubar||t.menubar===!0?PU:t.menubar===!1?"":t.menubar),i=Kt(r,function(n){return o?t.menus.hasOwnProperty(n)&&t.menus[n].hasOwnProperty("items")||zU.hasOwnProperty(n):zU.hasOwnProperty(n)}),u=Gt(i,function(o){var r=e[o];return LU({title:r.title,items:jU(r.items)},t,n)});return Kt(u,function(n){var t=function(n){return"separator"!==n.type};return n.getItems().length>0&&jt(n.getItems(),t)})},WU=function(n){var t=function(){n._skinLoaded=!0,z_.fireSkinLoaded(n)};return function(){n.initialized?t():n.on("init",t)}},GU=function(n,t){return function(){return z_.fireSkinLoadError(n,{message:t})}},XU={fireSkinLoaded:WU,fireSkinLoadError:GU},YU=function(n,t){var e,o=FS(t);o&&(e=o+"/skin.min.css",t.contentCSS.push(o+(n?"/content.inline":"/content")+".min.css")),RS(t)===!1&&e?AS.DOM.styleSheetLoader.load(e,XU.fireSkinLoaded(t),XU.fireSkinLoadError(t,"Skin could not be loaded")):XU.fireSkinLoaded(t)()},qU=t(YU,!1),KU=t(YU,!0),JU=function(n,t,e,o){var r=t.outerContainer,i=e.toolbar,u=e.buttons;if(Rt(i,Bt)){var a=i.map(function(t){var r={toolbar:t,buttons:u,allowToolbarGroups:e.allowToolbarGroups};return PL(n,r,{backstage:o},St.none())});NU.setToolbars(r,a)}else NU.setToolbar(r,PL(n,e,{backstage:o},St.none()))},$U=AS.DOM,QU=Ui(),ZU=QU.os.isiOS()&&QU.os.version.major<=12,nW=function(n){var t=n.getWin(),e=n.getDoc().documentElement,o=zr(lf(t.innerWidth,t.innerHeight)),r=zr(lf(e.offsetWidth,e.offsetHeight)),i=function(e){var i=n.getDoc().documentElement,u=o.get(),a=r.get();u.left()!==t.innerWidth||u.top()!==t.innerHeight?(o.set(lf(t.innerWidth,t.innerHeight)),z_.fireResizeContent(n,e)):(a.left()!==i.offsetWidth||a.top()!==i.offsetHeight)&&(r.set(lf(i.offsetWidth,i.offsetHeight)),z_.fireResizeContent(n,e))},u=function(t){return z_.fireScrollContent(n,t)};$U.bind(t,"resize",i),$U.bind(t,"scroll",u);var a=qT(Xr.fromDom(n.getBody()),"load",i);n.on("remove",function(){a.unbind(),$U.unbind(t,"resize",i),$U.unbind(t,"scroll",u)})},tW=function(n,t,e,o,r){var i=zr(0);qU(n),Tp(Xr.fromDom(r.targetNode),t.mothership),_p(Bs(),t.uiMothership),n.on("PostRender",function(){JU(n,t,e,o),i.set(n.getWin().innerWidth),NU.setMenubar(t.outerContainer,UU(n,e)),NU.setSidebar(t.outerContainer,e.sidebar),nW(n)});var u=NU.getSocket(t.outerContainer).getOrDie("Could not find expected socket element");if(ZU===!0){Is(u.element(),{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var a=vC(function(){n.fire("ScrollContent")},20);YT(u.element(),"scroll",a.throttle)}vP(n,t),n.addCommand("ToggleSidebar",function(e,o){NU.toggleSidebar(t.outerContainer,o),n.fire("ToggleSidebar")}),n.addQueryValueHandler("ToggleSidebar",function(){return NU.whichSidebar(t.outerContainer)});var c=JS(n),s=function(){NU.refreshToolbar(t.outerContainer)};return(c===jb.sliding||c===jb.floating)&&n.on("ResizeWindow ResizeEditor ResizeContent",function(){var t=n.getWin().innerWidth;t!==i.get()&&(s(),i.set(t))}),{iframeContainer:u.element().dom(),editorContainer:t.outerContainer.element().dom()}},eW={render:tW},oW=function(n){var t=/^[0-9\.]+(|px)$/i;return t.test(""+n)?St.some(parseInt(""+n,10)):St.none()},rW=function(n){return It(n)?n+"px":n},iW=function(n,t,e){var o=t.filter(function(t){return t>n}),r=e.filter(function(t){return n>t});return o.or(r).getOr(n)},uW={calcCappedSize:iW,parseToInt:oW,numToPx:rW},aW=function(n){var t=VS(n),e=PS(n),o=LS(n);return uW.parseToInt(t).map(function(n){return uW.calcCappedSize(n,e,o)})},cW=function(n){var t=aW(n);return t.getOr(VS(n))},sW=function(n){var t=HS(n),e=NS(n),o=zS(n);return uW.parseToInt(t).map(function(n){return uW.calcCappedSize(n,e,o)})},fW=function(n){var t=sW(n);return t.getOr(HS(n))},lW=function(n,t){var e=jf(n);return{pos:t?e.y():e.bottom(),height:e.height()}},dW=function(n,t,e,o,r){var i,u=t.mothership,a=t.uiMothership,c=t.outerContainer,s=AS.DOM,f=eC(n),l=iC(n),d=Xr.fromDom(r.targetNode),m=zS(n).or(sW(n)),g=JS(n),p=g===jb.sliding||g===jb.floating,h=ZS(n),v=zr(lW(d,h)),b=zr(!1);KU(n);var y=function(n){var t=p?n.fold(function(){return 0},function(n){return n.components().length>1?af(n.components()[1].element()):0}):0,e=jf(d),o=h?e.y()-af(i.element())+t:e.bottom();Is(c.element(),{position:"absolute",top:Math.round(o)+"px",left:Math.round(e.x())+"px"});var r=m.getOrThunk(function(){var n=uW.parseToInt(Vs(Bs(),"margin-left")).getOr(0);return bf(Bs())-e.x()+n});Fs(i.element(),"max-width",r+"px")},x=function(){a.broadcastOn([$p()],{})},w=function(n){if(void 0===n&&(n=!1),p&&NU.refreshToolbar(c),!f){var t=NU.getToolbar(c);y(t)}l&&(n?Rj.reset(i):Rj.refresh(i)),x()},S=function(){b.set(!0),Fs(c.element(),"display","flex"),s.addClass(n.getBody(),"mce-edit-focus"),Ls(a.element(),"display"),w()},C=function(){b.set(!1),t.outerContainer&&(Fs(c.element(),"display","none"),s.removeClass(n.getBody(),"mce-edit-focus")),Fs(a.element(),"display","none")},k=function(){if(i)return void S();i=NU.getHeader(c).getOrDie();var r=oC(n);_p(r,u),_p(r,a),JU(n,t,e,o),NU.setMenubar(c,UU(n,e)),S(),n.on("activate",S),n.on("deactivate",C),n.on("SkinLoaded ResizeWindow",function(){b.get()&&w(!0)}),n.on("NodeChange keydown",function(){DS.requestAnimationFrame(function(){var n=lW(d,h),t=v.get();b.get()&&(n.pos!==t.pos?(w(!0),v.set(n)):n.height!==t.height&&(x(),v.set(n)))})}),n.nodeChanged()};return n.on("focus",k),n.on("blur hide",C),n.on("init",function(){n.hasFocus()&&k()}),vP(n,t),{editorContainer:c.element().dom()}},mW={render:dW},gW=function(n){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"}];lR.each(t,function(t){n.ui.registry.addToggleButton(t.name,{tooltip:t.text,onAction:function(){return n.execCommand(t.cmd)},icon:t.icon,onSetup:xL(n,t.name)})});var e={name:"alignnone",text:"No alignment",cmd:"JustifyNone",icon:"align-none"};n.ui.registry.addButton(e.name,{tooltip:e.text,onAction:function(){return n.execCommand(e.cmd)},icon:e.icon})},pW={register:gW},hW=function(n,t){return function(){n.execCommand("mceToggleFormat",!1,t)}},vW=function(n){lR.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.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:xL(n,t.name),onAction:hW(n,t.name)})});for(var t=1;6>=t;t++){var e="h"+t;n.ui.registry.addToggleButton(e,{text:e.toUpperCase(),tooltip:"Heading "+t,onSetup:xL(n,e),onAction:hW(n,e)})}},bW=function(n){lR.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){n.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onAction:function(){return n.execCommand(t.action)}})})},yW=function(n){lR.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],function(t){n.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:function(){return n.execCommand(t.action)},onSetup:xL(n,t.name)})})},xW=function(n){vW(n),bW(n),yW(n)},wW=function(n){lR.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){n.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onAction:function(){return n.execCommand(t.action)}})}),n.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:hW(n,"code")})},SW=function(n){xW(n),wW(n)},CW={register:SW},kW=function(n,t,e){var o=function(){return t.undoManager?t.undoManager[e]():!1},r=function(){n.setDisabled(t.mode.isReadOnly()||!o())};return n.setDisabled(!o()),t.on("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",r),function(){return t.off("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",r)}},OW=function(n){n.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:function(t){return kW(t,n,"hasUndo")},onAction:function(){return n.execCommand("undo")}}),n.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:function(t){return kW(t,n,"hasRedo")},onAction:function(){return n.execCommand("redo")}})},_W=function(n){n.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",onSetup:function(t){return kW(t,n,"hasUndo")},onAction:function(){return n.execCommand("undo")}}),n.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",onSetup:function(t){return kW(t,n,"hasRedo")},onAction:function(){return n.execCommand("redo")}})},TW=function(n){OW(n),_W(n)},EW={register:TW},BW=function(n,t){n.setActive(t.hasVisual);var e=function(t){n.setActive(t.hasVisual)};return t.on("VisualAid",e),function(){return t.off("VisualAid",e)}},DW=function(n){n.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:function(t){return BW(t,n)},onAction:function(){n.execCommand("mceToggleVisualAid")}})},AW=function(n){n.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:function(){return n.execCommand("mceToggleVisualAid")}})},MW=function(n){AW(n),DW(n)},FW={register:MW},IW=function(n,t){n.setDisabled(!t.queryCommandState("outdent"));var e=function(){n.setDisabled(!t.queryCommandState("outdent"))};return t.on("NodeChange",e),function(){return t.off("NodeChange",e)}},RW=function(n){n.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:function(t){return IW(t,n)},onAction:function(){return n.execCommand("outdent")}}),n.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:function(){return n.execCommand("indent")}})},VW=function(n){RW(n)},HW={register:VW},NW=function(n,t){eL(n,t),sL(n,t),EL(n,t),OL(n,t),vL(n,t)},PW={register:NW},zW=function(n,t){pW.register(n),CW.register(n),PW.register(n,t),EW.register(n),eT.register(n),FW.register(n),HW.register(n)},LW={setup:zW},jW=function(n,t){return{anchor:"makeshift",x:n,y:t}},UW=function(n,t,e){return jW(n.x+t,n.y+e)},WW=function(n){return"longpress"===n.type||0===n.type.indexOf("touch")},GW=function(n){if(WW(n)){var t=n.touches[0];return jW(t.pageX,t.pageY)}return jW(n.pageX,n.pageY)},XW=function(n){if(WW(n)){var t=n.touches[0];return jW(t.clientX,t.clientY)}return jW(n.clientX,n.clientY)},YW=function(n,t){var e=AS.DOM.getPos(n);return UW(t,e.x,e.y)},qW=function(n,t){return"contextmenu"===t.type||"longpress"===t.type?n.inline?GW(t):YW(n.getContentAreaContainer(),XW(t)):KW(n)},KW=function(n){return{anchor:"selection",root:Xr.fromDom(n.selection.getNode())}},JW=function(n){return{anchor:"node",node:St.some(Xr.fromDom(n.selection.getNode())),root:Xr.fromDom(n.getBody())}},$W=function(n,t,e){return e?JW(n):qW(n,t)},QW=function(n,t,e,o,r,i){var u=e(),a=$W(n,t,i);xI(u,FO.CLOSE_ON_EXECUTE,o,!1).map(function(n){t.preventDefault(),bS.showMenuAt(r,a,{menu:{markers:iT("normal")},data:n})})},ZW={onLtr:function(){return[ed,$l,Ql,Zl,nd,td,ES,BS,_S,kS,TS,OS]},onRtl:function(){return[ed,Ql,$l,nd,Zl,td,ES,BS,TS,OS,_S,kS]}},nG=12,tG={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"]},eG=function(n,t){var e=n.selection;if(e.isCollapsed()||t.touches.length<1)return!1;var o=t.touches[0],r=e.getRng(),i=kg(n.getWin(),Jm.domRange(r));return i.exists(function(n){return n.left()<=o.clientX&&n.right()>=o.clientX&&n.top()<=o.clientY&&n.bottom()>=o.clientY})},oG=function(n,t,e){var o=t?JW(n):qW(n,e);return vt({bubble:vm(0,nG,tG),layouts:ZW,overrides:{maxWidthFunction:XH(),maxHeightFunction:lm()}},o)},rG=function(n){var t=n.selection.getRng(),e=function(){DS.setEditorTimeout(n,function(){n.selection.setRng(t)},10),i()};n.once("touchend",e);var o=function(n){n.preventDefault(),n.stopImmediatePropagation()};n.on("mousedown",o,!0);var r=function(){return i()};n.once("longpresscancel",r);var i=function(){n.off("touchend",e),n.off("longpresscancel",r),n.off("mousedown",o)}},iG=function(n,t,e,o,r,i,u){var a=oG(n,i,t);xI(e,FO.CLOSE_ON_EXECUTE,o,!0).map(function(e){t.preventDefault(),bS.showMenuWithinBounds(r,a,{menu:{markers:iT("normal"),highlightImmediately:u},data:e,type:"horizontal"},function(){return St.some(Iz(n))}),n.fire(qH)})},uG=function(n,t,e,o,r,i){var u=Ui(),a=u.os.isiOS(),c=u.os.isOSX(),s=u.os.isAndroid(),f=u.deviceType.isTouch(),l=function(){return!(s||a||c&&f)},d=function(){var u=e();iG(n,t,u,o,r,i,l())};if(!c&&!a||i)s&&!i&&n.selection.setCursorLocation(t.target,0),d();else{var m=function(){rG(n),d()};eG(n,t)?m():(n.once("selectionchange",m),n.once("touchend",function(){return n.off("selectionchange",m)}))}},aG=function(n){return"string"==typeof n?n.split(/[ ,]/):n},cG=function(n){return n.settings.contextmenu_never_use_native||!1},sG=function(n,t,e){var o=n.ui.registry.getAll().contextMenus;return xe(n.settings,t).map(aG).getOrThunk(function(){return Kt(aG(e),function(n){return we(o,n)})})},fG=function(n){return n.getParam("contextmenu")===!1},lG=function(n){return sG(n,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},dG={shouldNeverUseNative:cG,getContextMenu:lG,isContextMenuDisabled:fG},mG=function(n){return Bt(n)?"|"===n:"separator"===n.type},gG={type:"separator"},pG=function(n){if(Bt(n))return n;switch(n.type){case"separator":return gG;case"submenu":return{type:"nestedmenuitem",text:n.text,icon:n.icon,getSubmenuItems:function(){var t=n.getSubmenuItems();return Bt(t)?t:Gt(t,pG)}};default:return{type:"menuitem",text:n.text,icon:n.icon,onAction:ct(n.onAction)}}},hG=function(n,t){if(0===t.length)return n;var e=se(n).filter(function(n){return!mG(n)}),o=e.fold(function(){return[]},function(){return[gG]});return n.concat(o).concat(t).concat([gG])},vG=function(n,t,e){var o=$t(t,function(t,o){if(we(n,o)){var r=n[o].update(e);if(Bt(r))return hG(t,r.split(" "));if(r.length>0){var i=Gt(r,pG);return hG(t,i)}return t}return t.concat([o])},[]);return o.length>0&&mG(o[o.length-1])&&o.pop(),o},bG=function(n,t){return t.ctrlKey&&!dG.shouldNeverUseNative(n)},yG=function(n,t){return"longpress"!==t.type&&(2!==t.button||t.target===n.getBody()&&""===t.pointerType)},xG=function(n,t,e){var o=Ui(),r=o.deviceType.isTouch,i=of(bS.sketch({dom:{tag:"div"},lazySink:t,onEscape:function(){return n.focus()},onShow:function(){return e.setContextMenuState(!0)},onHide:function(){return e.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:bd([rw("dismissContextMenu",[da(qu(),function(t){Kp.close(t),n.focus()})])])})),u=function(){return bS.hide(i)},a=function(t){if(dG.shouldNeverUseNative(n)&&t.preventDefault(),!bG(n,t)&&!dG.isContextMenuDisabled(n)){var o=yG(n,t),u=function(){var e=o?n.selection.getStart(!0):t.target,r=n.ui.registry.getAll(),i=dG.getContextMenu(n);return vG(r.contextMenus,i,e)},a=r()?uG:QW;a(n,t,u,e,i,o)}};n.on("init",function(){var t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(r()?"":" ResizeWindow");n.on(t,u),n.on("longpress contextmenu",a)})},wG=ke.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),SG=function(n){return function(t){return t.translate(-n.left(),-n.top())}},CG=function(n){return function(t){return t.translate(n.left(),n.top())}},kG=function(n){return function(t,e){return $t(n,function(n,t){return t(n)},lf(t,e))}},OG=function(n,t,e){return n.fold(kG([CG(e),SG(t)]),kG([SG(t)]),kG([]))},_G=function(n,t,e){return n.fold(kG([CG(e)]),kG([]),kG([CG(t)]))},TG=function(n,t,e){return n.fold(kG([]),kG([SG(e)]),kG([CG(t),SG(e)]))},EG=function(n,t,e,o,r,i){var u=_G(n,r,i),a=_G(t,r,i);return Math.abs(u.left()-a.left())<=e&&Math.abs(u.top()-a.top())<=o},BG=function(n,t,e,o,r,i){var u=_G(n,r,i),a=_G(t,r,i),c=Math.abs(u.left()-a.left()),s=Math.abs(u.top()-a.top());return lf(c,s)},DG=function(n,t,e){var o=n.fold(function(n,t){return{position:St.some("absolute"),left:St.some(n+"px"),top:St.some(t+"px")}},function(n,t){return{position:St.some("absolute"),left:St.some(n-e.left()+"px"),top:St.some(t-e.top()+"px")}},function(n,t){return{position:St.some("fixed"),left:St.some(n+"px"),top:St.some(t+"px")}});return vt({right:St.none(),bottom:St.none()},o)},AG=function(n,t,e){return n.fold(function(n,o){return FG(n+t,o+e)},function(n,o){return IG(n+t,o+e)},function(n,o){return RG(n+t,o+e)})},MG=function(n,t,e,o){var r=function(n,r){return function(i,u){var a=n(t,e,o);return r(i.getOr(a.left()),u.getOr(a.top()))}};return n.fold(r(TG,FG),r(_G,IG),r(OG,RG))},FG=wG.offset,IG=wG.absolute,RG=wG.fixed,VG=function(n,t){var e=n.element(),o=parseInt(fc(e,t.leftAttr),10),r=parseInt(fc(e,t.topAttr),10);return isNaN(o)||isNaN(r)?St.none():St.some(lf(o,r))},HG=function(n,t,e){var o=n.element();cc(o,t.leftAttr,e.left()+"px"),cc(o,t.topAttr,e.top()+"px")},NG=function(n,t){var e=n.element();mc(e,t.leftAttr),mc(e,t.topAttr)},PG=function(n,t,e,o){return VG(n,t).fold(function(){return e},function(n){return RG(n.left()+o.left(),n.top()+o.top())})},zG=function(n,t,e,o,r,i){var u=PG(n,t,e,o),a=t.mustSnap?UG(n,t,u,r,i):WG(n,t,u,r,i),c=OG(u,r,i);return HG(n,t,c),a.fold(function(){return{coord:RG(c.left(),c.top()),extra:St.none()}},function(n){return{coord:n.output(),extra:n.extra()}})},LG=function(n,t){NG(n,t)},jG=function(n,t,e,o){return le(n,function(n){var r=n.sensor(),i=EG(t,r,n.range().left(),n.range().top(),e,o);return i?St.some({output:ft(MG(n.output(),t,e,o)),extra:n.extra}):St.none()})},UG=function(n,t,e,o,r){var i=t.getSnapPoints(n),u=jG(i,e,o,r);return u.orThunk(function(){var n=$t(i,function(n,t){var i=t.sensor(),u=BG(e,i,t.range().left(),t.range().top(),o,r);return n.deltas.fold(function(){return{deltas:St.some(u),snap:St.some(t)}},function(e){var o=(u.left()+u.top())/2,r=(e.left()+e.top())/2;return r>=o?{deltas:St.some(u),snap:St.some(t)}:n})},{deltas:St.none(),snap:St.none()});return n.snap.map(function(n){return{output:ft(MG(n.output(),e,o,r)),extra:n.extra}})})},WG=function(n,t,e,o,r){var i=t.getSnapPoints(n);return jG(i,e,o,r)},GG=function(n,t,e){return{coord:MG(n.output(),n.output(),t,e),extra:n.extra()}},XG=function(n,t,e,o){var r=t.getTarget(n.element());if(t.repositionTarget){var i=Fa(n.element()),u=Ef(i),a=uj(r),c=GG(o,u,a),s=DG(c.coord,u,a);Rs(r,s)}},YG=Object.freeze({__proto__:null,snapTo:XG}),qG="data-initial-z-index",KG=function(n){Va(n.element()).filter(ic).each(function(n){var t=fc(n,qG);dc(n,qG)?Fs(n,"z-index",t):Ls(n,"z-index"),mc(n,qG)})},JG=function(n){Va(n.element()).filter(ic).each(function(t){Ns(t,"z-index").each(function(n){cc(t,qG,n)}),Fs(t,"z-index",Vs(n.element(),"z-index"))})},$G=function(n,t){n.getSystem().addToGui(t),JG(t)},QG=function(n){KG(n),n.getSystem().removeFromGui(n)},ZG=function(n,t,e){return n.getSystem().build(wE.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[t]},events:e}))},nX=Tr("snaps",[fr("getSnapPoints"),xl("onSensor"),fr("leftAttr"),fr("topAttr"),Br("lazyViewport",Wf),Br("mustSnap",!1)]),tX=[Br("useFixed",gt),fr("blockerClass"),Br("getTarget",lt),Br("onDrag",at),Br("repositionTarget",!0),Br("onDrop",at),Rr("getBounds",Wf),nX],eX=function(n){return Yv(Ns(n,"left"),Ns(n,"top"),Ns(n,"position"),function(n,t,e){var o="fixed"===e?RG:FG;return o(parseInt(n,10),parseInt(t,10))}).getOrThunk(function(){var t=gf(n);return IG(t.left(),t.top())})},oX=function(n,t,e,o,r){var i=r.bounds,u=_G(t,e,o),a=$d(u.left(),i.x(),i.x()+i.width()-r.width),c=$d(u.top(),i.y(),i.y()+i.height()-r.height),s=IG(a,c);return t.fold(function(){var n=TG(s,e,o);return FG(n.left(),n.top())},function(){return s},function(){var n=OG(s,e,o);return RG(n.left(),n.top())})},rX=function(n,t,e,o,r,i,u){var a=t.fold(function(){var n=AG(e,i.left(),i.top()),t=OG(n,o,r);return RG(t.left(),t.top())},function(t){var u=zG(n,t,e,i,o,r);return u.extra.each(function(e){t.onSensor(n,e)}),u.coord});return oX(n,a,o,r,u)},iX=function(n,t,e,o){var r=t.getTarget(n.element());if(t.repositionTarget){var i=Fa(n.element()),u=Ef(i),a=uj(r),c=eX(r),s=rX(n,t.snaps,c,u,a,o,e),f=DG(s,u,a);Rs(r,f)}t.onDrag(n,r,o)},uX=function(n,t){return{bounds:n.getBounds(),height:cf(t.element()),width:yf(t.element())}},aX=function(n,t,e,o,r){var i=e.update(o,r),u=e.getStartData().getOrThunk(function(){return uX(t,n)});i.each(function(e){iX(n,t,u,e)})},cX=function(n,t,e,o){t.each(QG),e.snaps.each(function(t){LG(n,t)});var r=e.getTarget(n.element());o.reset(),e.onDrop(n,r)},sX=function(n){return function(t,e){var r=function(n){e.setStartData(uX(t,n))};return ca(o([da(Wu(),function(n){e.getStartData().each(function(){return r(n)})})],n(t,e,r)))}},fX=function(n){return ca([da(hu(),n.forceDrop),da(yu(),n.drop),da(vu(),function(t,e){n.move(e.event())}),da(bu(),n.delayDrop)])},lX=function(n){return St.from(lf(n.x(),n.y()))},dX=function(n,t){return lf(t.left()-n.left(),t.top()-n.top())},mX=Object.freeze({__proto__:null,getData:lX,getDelta:dX}),gX=function(n,t,e){return[da(hu(),function(o,r){var i=r.event().raw();if(0===i.button){r.stop();var u=function(){return cX(o,St.some(s),n,t)},a=d(u,200),c={drop:u,delayDrop:a.schedule,forceDrop:u,move:function(e){a.cancel(),aX(o,n,t,mX,e)}},s=ZG(o,n.blockerClass,fX(c)),f=function(){e(o),$G(o,s)};f()}})]},pX=o(tX,[kl("dragger",{handlers:sX(gX)})]),hX=function(n){return ca([da(du(),n.forceDrop),da(gu(),n.drop),da(pu(),n.drop),da(mu(),function(t,e){n.move(e.event())})])},vX=function(n){var t=n[0];return St.some(lf(t.clientX,t.clientY))},bX=function(n){var t=n.raw(),e=t.touches;return 1===e.length?vX(e):St.none()},yX=function(n,t){return lf(t.left()-n.left(),t.top()-n.top())},xX=Object.freeze({__proto__:null,getData:bX,getDelta:yX}),wX=function(n,t,e){var o=zr(St.none());return[da(du(),function(r,i){i.stop();var u=function(){cX(r,o.get(),n,t),o.set(St.none())},a={drop:u,delayDrop:function(){},forceDrop:u,move:function(e){aX(r,n,t,xX,e)}},c=ZG(r,n.blockerClass,hX(a));o.set(St.some(c));var s=function(){e(r),$G(r,c)};s()}),da(mu(),function(e,o){o.stop(),aX(e,n,t,xX,o.event())}),da(gu(),function(e,r){r.stop(),cX(e,o.get(),n,t),o.set(St.none())}),da(pu(),function(e){cX(e,o.get(),n,t),o.set(St.none())})]},SX=o(tX,[kl("dragger",{handlers:sX(wX)})]),CX=function(n,t,e){return o(gX(n,t,e),wX(n,t,e))},kX=o(tX,[kl("dragger",{handlers:sX(CX)})]),OX=pX,_X=SX,TX=kX,EX=Object.freeze({__proto__:null,mouse:OX,touch:_X,mouseOrTouch:TX}),BX=function(){var n=St.none(),t=St.none(),e=function(){n=St.none(),t=St.none()},o=function(t,e){var o=n.map(function(n){return t.getDelta(n,e)});return n=St.some(e),o},r=function(n,t){return n.getData(t).bind(function(t){return o(n,t)})},i=function(n){t=St.some(n)},u=function(){return t},a=ft({});return Uc({readState:a,reset:e,update:r,getStartData:u,setStartData:i})},DX=Object.freeze({__proto__:null,init:BX}),AX=Sd({branchKey:"mode",branches:EX,name:"dragging",active:{events:function(n,t){var e=n.dragger;return e.handlers(n,t)}},extra:{snap:Ma(["sensor","range","output"],["extra"])},state:DX,apis:YG}),MX=Ui(),FX=40,IX=FX/2,RX=function(n,t,e,o,r,i){return n.fold(function(){return AX.snap({sensor:IG(e-IX,o-IX),range:lf(r,i),output:IG(St.some(e),St.some(o)),extra:{td:t}})},function(n){var r=e-IX,i=o-IX,u=FX,a=FX,c=n.element().dom().getBoundingClientRect();return AX.snap({sensor:IG(r,i),range:lf(u,a),output:IG(St.some(e-c.width/2),St.some(o-c.height/2)),extra:{td:t}})})},VX=function(n,t,e){var o=function(n,t){return n.exists(function(n){return Zi(n,t)})};return{getSnapPoints:n,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(n,r){var i=r.td;o(t.get(),i)||(t.set(St.some(i)),e(i))},mustSnap:!0}},HX=function(n){return sC(cC.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:bd([AX.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:n}),QB.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},NX=function(n,t){var e=zr([]),o=zr([]),r=zr(!1),i=zr(St.none()),u=zr(St.none()),a=function(n){var e=Uf(n);return RX(m.getOpt(t),n,e.x(),e.y(),e.width(),e.height())},c=function(){return Gt(e.get(),function(n){return a(n)})},s=function(n){var e=Uf(n);return RX(g.getOpt(t),n,e.right(),e.bottom(),e.width(),e.height())},f=function(){return Gt(o.get(),function(n){return s(n)})},l=VX(c,i,function(t){u.get().each(function(e){n.fire("TableSelectorChange",{start:t,finish:e})})}),d=VX(f,u,function(t){i.get().each(function(e){n.fire("TableSelectorChange",{start:e,finish:t})})}),m=HX(l),g=HX(d),p=of(m.asSpec()),h=of(g.asSpec()),v=function(t,e,o,r){var i=e.dom().getBoundingClientRect();Ls(t.element(),"display");var u=Ra(Xr.fromDom(n.getBody())).dom().innerHeight,a=o(i),c=r(i,u);(a||c)&&Fs(t.element(),"display","none")},b=function(n,t,e,o){var r=e(t);AX.snapTo(n,r);var i=function(n){return n[o]<0},u=function(n,t){return n[o]>t};v(n,t,i,u)},y=function(n){return b(p,n,a,"top")},x=function(){return i.get().each(y)},w=function(n){return b(h,n,s,"bottom")},S=function(){return u.get().each(w)};MX.deviceType.isTouch()&&(n.on("TableSelectionChange",function(n){r.get()||(wp(t,p),wp(t,h),r.set(!0)),i.set(St.some(n.start)),u.set(St.some(n.finish)),n.otherCells.each(function(t){e.set(t.upOrLeftCells),o.set(t.downOrRightCells),y(n.start),w(n.finish)})}),n.on("ResizeEditor ResizeWindow ScrollContent",function(){x(),S()}),n.on("TableSelectionClear",function(){r.get()&&(kp(p),kp(h),r.set(!1)),i.set(St.none()),u.set(St.none())}))},PX={setup:NX};!function(n){n[n.None=0]="None",n[n.Both=1]="Both",n[n.Vertical=2]="Vertical"}(Jz||(Jz={}));var zX=function(n,t,e,o,r){var i={};return i.height=uW.calcCappedSize(o+t.top(),PS(n),LS(n)),e===Jz.Both&&(i.width=uW.calcCappedSize(r+t.left(),NS(n),zS(n))),i
},LX=function(n,t,e){var o=Xr.fromDom(n.getContainer()),r=zX(n,t,e,af(o),bf(o));ge(r,function(n,t){return Fs(o,t,uW.numToPx(n))}),z_.fireResizeEditor(n)},jX=function(n){if(1===n.nodeType){if("BR"===n.nodeName||n.getAttribute("data-mce-bogus"))return!0;if("bookmark"===n.getAttribute("data-mce-type"))return!0}return!1},UX=function(n,t){t.delimiter||(t.delimiter="»");var e=function(e){var o=e||[],r=Gt(o,function(t,e){return cC.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":e,"tab-index":-1,"aria-level":e+1},innerHtml:t.name},action:function(){n.focus(),n.selection.select(t.element),n.nodeChanged()}})}),i={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+t.delimiter+" "}};return $t(r.slice(1),function(n,t){var e=n;return e.push(i),e.push(t),e},[r[0]])},o=function(t){for(var e=[],o=t.length;o-->0;){var r=t[o];if(1===r.nodeType&&!jX(r)){var i=n.fire("ResolveName",{name:r.nodeName.toLowerCase(),target:r});if(i.isDefaultPrevented()||e.push({name:i.name,element:r}),i.isPropagationStopped())break}}return e};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:bd([Xx.config({mode:"flow",selector:"div[role=button]"}),vB.config({}),ew.config({}),rw("elementPathEvents",[Sa(function(t){n.shortcuts.add("alt+F11","focus statusbar elementpath",function(){return Xx.focusIn(t)}),n.on("NodeChange",function(n){var r=o(n.parents);r.length>0?ew.set(t,e(r)):ew.set(t,[])})})])]),components:[]}},WX={renderElementPath:UX},GX=function(n,t){var e=function(n,e,o){return ew.set(n,[nf(t.translate(["{0} "+o,e[o]]))])};return cC.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:bd([vB.config({}),ew.config({}),Ah.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),rw("wordcount-events",[Oa(function(n){var t=Ah.getValue(n),o="words"===t.mode?"characters":"words";Ah.setValue(n,{mode:o,count:t.count}),e(n,t.count,o)}),Sa(function(t){n.on("wordCountUpdate",function(n){var o=Ah.getValue(t).mode;Ah.setValue(t,{mode:o,count:n.wordCount}),e(t,n.wordCount,o)})})])])})},XX=function(n,t){var e=function(e){return{dom:{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:t.translate("Resize"),"aria-hidden":"true"},innerHtml:lC("resize-handle",t.icons)},behaviours:bd([AX.config({mode:"mouse",repositionTarget:!1,onDrag:function(t,o,r){LX(n,r,e)},blockerClass:"tox-blocker"})])}},o=function(){var n=Ek.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="'+n+'">'+n+"</a>";return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:t}}},r=function(n){var t=!Ai(n.settings.plugins,"autoresize"),e=n.getParam("resize",t);return e===!1?Jz.None:"both"===e?Jz.Both:Jz.Vertical},i=function(){var e=[];return n.getParam("elementpath",!0,"boolean")&&e.push(WX.renderElementPath(n,{})),Ai(n.settings.plugins,"wordcount")&&e.push(GX(n,t)),n.getParam("branding",!0,"boolean")&&e.push(o()),e.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:e}]:[]},u=function(){var t=i(),o=r(n);return o!==Jz.None&&t.push(e(o)),t};return{dom:{tag:"div",classes:["tox-statusbar"]},components:u()}},YX=function(n){var t,e=n.inline,o=e?mW:eW,r=iC(n)?Kj:Zj,i=St.none(),u=Ui(),a=u.browser.isIE(),c=a?["tox-platform-ie"]:[],s=u.deviceType.isTouch(),f="tox-platform-touch",l=s?[f]:[],d=ZS(n),m=Ek.isRtl()?{attributes:{dir:"rtl"}}:{},g={attributes:(t={},t[Cm]=d?ol.TopToBottom:ol.BottomToTop,t)},p=function(){return i.bind(NU.getHeader)},h=function(){return r.isDocked(p)},v=of({dom:vt({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(c).concat(l)},m),behaviours:bd([pp.config({useFixed:function(){return h()}})])}),b=function(){return _t.value(v)},y=sC({dom:{tag:"div",classes:["tox-anchorbar"]}}),x=function(){return i.bind(function(n){return y.getOpt(n)}).getOrDie("Could not find a anchor bar element")},w=function(){return i.bind(function(n){return NU.getToolbar(n)}).getOrDie("Could not find more toolbar element")},S=function(){return i.bind(function(n){return NU.getThrobber(n)}).getOrDie("Could not find throbber element")},C=GH(v,n,x),k=NU.parts().menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:C,onEscape:function(){n.focus()}}),O=JS(n),_=NU.parts().toolbar(vt({dom:{tag:"div",classes:["tox-toolbar"]},getSink:b,backstage:C,onEscape:function(){n.focus()},type:O,lazyToolbar:w,lazyHeader:function(){return p().getOrDie("Could not find header element")}},g)),T=NU.parts()["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},onEscape:function(){},type:O}),E=NU.parts().socket({dom:{tag:"div",classes:["tox-edit-area"]}}),B=NU.parts().sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),D=NU.parts().throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:C}),A=n.getParam("statusbar",!0,"boolean"),M=A&&!e?St.some(XX(n,C.shared.providers)):St.none(),F={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[E,B]},I=qS(n),R=XS(n),V=GS(n),H=function(){return I?[T]:R?[_]:[]},N=NU.parts().header({dom:vt({tag:"div",classes:["tox-editor-header"]},g),components:ne([V?[k]:[],H(),eC(n)?[]:[y.asSpec()]]),sticky:iC(n),editor:n,getSink:b}),P=ne([d?[N]:[],e?[]:[F],d?[]:[N]]),z={dom:{tag:"div",classes:["tox-editor-container"]},components:P},L=ne([[z],e?[]:M.toArray(),[D]]),j=rC(n),U=vt(vt({role:"application"},Ek.isRtl()?{dir:"rtl"}:{}),j?{"aria-hidden":"true"}:{}),W=of(NU.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(e?["tox-tinymce-inline"]:[]).concat(d?[]:["tox-tinymce--toolbar-bottom"]).concat(l).concat(c),styles:vt({visibility:"hidden"},j?{opacity:"0",border:"0"}:{}),attributes:U},components:L,behaviours:bd([Xx.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"})])}));i=St.some(W),n.shortcuts.add("alt+F9","focus menubar",function(){NU.focusMenubar(W)}),n.shortcuts.add("alt+F10","focus toolbar",function(){NU.focusToolbar(W)});var G=SE(W),X=SE(v);KL.setup(n,G,X);var Y=function(){var n={broadcastAll:X.broadcast,broadcastOn:X.broadcastOn,register:function(){}};return{channels:n}},q=function(){var t=uW.numToPx(cW(n)),e=uW.numToPx(fW(n));return n.inline||(zs("div","width",e)&&Fs(W.element(),"width",e),zs("div","height",t)?Fs(W.element(),"height",t):Fs(W.element(),"height","200px")),t},K=function(){r.setup(n,p),LW.setup(n,C),xG(n,b,C),dU(n),EU(n,S,C.shared),pe(QS(n),function(t,e){n.ui.registry.addGroupToolbarButton(e,t)});var t=n.ui.registry.getAll(),e=t.buttons,i=t.menuItems,u=t.contextToolbars,a=t.sidebars,c=YS(n),s={menuItems:i,menus:n.settings.menu?pe(n.settings.menu,function(n){return vt(vt({},n),{items:n.items})}):{},menubar:n.settings.menubar,toolbar:c.getOrThunk(function(){return n.getParam("toolbar",!0)}),allowToolbarGroups:O===jb.floating,buttons:e,sidebar:a};YL.register(n,u,v,{backstage:C}),PX.setup(n,v);var f=n.getElement(),l=q(),d={mothership:G,uiMothership:X,outerContainer:W},m={targetNode:f,height:l};return o.render(n,d,s,C,m)};return{mothership:G,uiMothership:X,backstage:C,renderUI:K,getUi:Y}},qX={setup:YX},KX=function(n,t){var e=St.from(fc(n,"id")).fold(function(){var n=Sc("dialog-describe");return cc(t,"id",n),n},lt);cc(n,"aria-describedby",e)},JX={labelledBy:function(n,t){var e=St.from(fc(n,"id")).fold(function(){var n=Sc("dialog-label");return cc(t,"id",n),n},lt);cc(n,"aria-labelledby",e)}},$X=ft([fr("lazySink"),wr("dragBlockClass"),Rr("getBounds",Wf),Br("useTabstopAt",ft(!0)),Br("eventOrder",{}),Mh("modalBehaviours",[Xx]),wl("onExecute"),Cl("onEscape")]),QX={sketch:lt},ZX=ft([dv({name:"draghandle",overrides:function(n,t){return{behaviours:bd([AX.config({mode:"mouse",getTarget:function(n){return Kf(n,'[role="dialog"]').getOr(n)},blockerClass:n.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:n.getDragBounds})])}}}),fv({schema:[fr("dom")],name:"title"}),fv({factory:QX,schema:[fr("dom")],name:"close"}),fv({factory:QX,schema:[fr("dom")],name:"body"}),dv({factory:QX,schema:[fr("dom")],name:"footer"}),lv({factory:{sketch:function(n,t){return vt(vt({},n),{dom:t.dom,components:t.components})}},schema:[Br("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Br("components",[])],name:"blocker"})]),nY=function(n,t,e,o){var r=Sc("alloy.dialog.busy"),i=Sc("alloy.dialog.idle"),u=bd([Xx.config({mode:"special",onTab:function(){return St.some(!0)},onShiftTab:function(){return St.some(!0)}}),mw.config({})]),a=function(t){var e=n.lazySink(t).getOrDie(),a=zr(St.none()),c=o.blocker(),s=e.getSystem().build(vt(vt({},c),{components:c.components.concat([rf(t)]),behaviours:bd([mw.config({}),rw("dialog-blocker-events",[wa(wu(),function(){Xx.focusIn(t)}),da(i,function(){dc(t.element(),"aria-busy")&&(mc(t.element(),"aria-busy"),a.get().each(function(n){return ew.remove(t,n)}))}),da(r,function(n,e){cc(t.element(),"aria-busy","true");var o=e.event().getBusySpec();a.get().each(function(n){ew.remove(t,n)});var r=o(t,u),i=n.getSystem().build(r);a.set(St.some(i)),ew.append(t,rf(i)),i.hasConfigured(Xx)&&Xx.focusIn(i)})])])}));wp(e,s),Xx.focusIn(t)},c=function(n){Va(n.element()).each(function(t){n.getSystem().getByDom(t).each(function(n){kp(n)})})},s=function(t){return _v(t,n,"body")},f=function(t){return _v(t,n,"footer")},l=function(n,t){oa(n,r,{getBusySpec:t})},d=function(n){ea(n,i)},m=Sc("modal-events"),g=vt(vt({},n.eventOrder),{"alloy.system.attached":[m].concat(n.eventOrder["alloy.system.attached"]||[])});return{uid:n.uid,dom:n.dom,components:t,apis:{show:a,hide:c,getBody:s,getFooter:f,setIdle:d,setBusy:l},eventOrder:g,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Ih(n.modalBehaviours,[ew.config({}),Xx.config({mode:"cyclic",onEnter:n.onExecute,onEscape:n.onEscape,useTabstopAt:n.useTabstopAt}),rw(m,[Sa(function(t){JX.labelledBy(t.element(),_v(t,n,"title").element()),KX(t.element(),_v(t,n,"body").element())})])])}},tY=Uv({name:"ModalDialog",configFields:$X(),partFields:ZX(),factory:nY,apis:{show:function(n,t){n.show(t)},hide:function(n,t){n.hide(t)},getBody:function(n,t){return n.getBody(t)},getFooter:function(n,t){return n.getFooter(t)},setBusy:function(n,t,e){n.setBusy(t,e)},setIdle:function(n,t){n.setIdle(t)}}}),eY=[mr("type"),mr("text"),gr("level",["info","warn","error","success"]),mr("icon"),Br("url","")],oY=Mo(eY),rY=function(n){return[mr("type"),n]},iY=[mr("type"),mr("text"),Ir("disabled",!1),Ir("primary",!1),Po("name","name",Ke(function(){return Sc("button-name")}),rr),kr("icon"),Ir("borderless",!1)],uY=Mo(iY),aY=[mr("type"),mr("name"),mr("label"),Ir("disabled",!1)],cY=Mo(aY),sY=ir,fY=[mr("type"),mr("name")],lY=fY.concat([kr("label")]),dY=lY,mY=Mo(dY),gY=rr,pY=lY,hY=Mo(pY),vY=rr,bY=lY,yY=Mo(bY),xY=Wo(),wY=function(n){return[mr("type"),dr("columns"),n]},SY=lY.concat([Ir("sandboxed",!0)]),CY=Mo(SY),kY=rr,OY=lY.concat([kr("inputMode"),kr("placeholder"),Ir("maximized",!1),Ir("disabled",!1)]),_Y=Mo(OY),TY=rr,EY=lY.concat([yr("items",[mr("text"),mr("value")]),Ar("size",1),Ir("disabled",!1)]),BY=Mo(EY),DY=rr,AY=lY.concat([Ir("constrain",!0),Ir("disabled",!1)]),MY=Mo(AY),FY=Mo([mr("width"),mr("height")]),IY=lY.concat([kr("placeholder"),Ir("maximized",!1),Ir("disabled",!1)]),RY=Mo(IY),VY=rr,HY=lY.concat([Fr("filetype","file",["image","media","file"]),Br("disabled",!1)]),NY=Mo(HY),PY=Mo([mr("value"),Br("meta",{})]),zY=fY.concat([Mr("tag","textarea"),mr("scriptId"),mr("scriptUrl"),Vr("settings",void 0)]),LY=fY.concat([Mr("tag","textarea"),hr("init")]),jY=Xo(function(n){return Ko("customeditor.old",Ao(LY),n).orThunk(function(){return Ko("customeditor.new",Ao(zY),n)})}),UY=rr,WY=[mr("type"),mr("html"),Fr("presets","presentation",["presentation","document"])],GY=Mo(WY),XY=lY.concat([lr("currentState",Mo([fr("blob"),mr("url")]))]),YY=Mo(XY),qY=lY.concat([Br("columns","auto")]),KY=Mo(qY),JY=Uo([mr("value"),mr("text"),mr("icon")]),$Y=function(n){return[mr("type"),mr("label"),n]},QY=[mr("type"),xr("header",rr),xr("cells",Fo(rr))],ZY=Mo(QY),nq=function(n){return Po("items","items",Ye(),Fo(Xo(function(t){return Ko("Checking item of "+n,tq,t).fold(function(n){return _t.error(Qo(n))},function(n){return _t.value(n)})})))},tq=Go(function(){return Zo("type",{alertbanner:oY,bar:Mo(rY(nq("bar"))),button:uY,checkbox:cY,colorinput:mY,colorpicker:hY,dropzone:yY,grid:Mo(wY(nq("grid"))),iframe:CY,input:_Y,selectbox:BY,sizeinput:MY,textarea:RY,urlinput:NY,customeditor:jY,htmlpanel:GY,imagetools:YY,collection:KY,label:Mo($Y(nq("label"))),table:ZY,panel:oq})}),eq=[mr("type"),Br("classes",[]),xr("items",tq)],oq=Mo(eq),rq=[Po("name","name",Ke(function(){return Sc("tab-name")}),rr),mr("title"),xr("items",tq)],iq=[mr("type"),yr("tabs",rq)],uq=Mo(iq),aq=Mo([mr("type"),mr("name")].concat(nk)),cq=ir,sq=[Po("name","name",Ke(function(){return Sc("button-name")}),rr),kr("icon"),Fr("align","end",["start","end"]),Ir("primary",!1),Ir("disabled",!1)],fq=o(sq,[mr("text")]),lq=o([gr("type",["submit","cancel","custom"])],fq),dq=o([gr("type",["menu"]),kr("text"),kr("tooltip"),kr("icon"),xr("items",aq)],sq),mq=nr("type",{submit:lq,cancel:lq,custom:lq,menu:dq}),gq=fq,pq=mq,hq=Mo([mr("title"),lr("body",Zo("type",{panel:oq,tabpanel:uq})),Mr("size","normal"),xr("buttons",pq),Br("initialData",{}),Rr("onAction",at),Rr("onChange",at),Rr("onSubmit",at),Rr("onClose",at),Rr("onCancel",at),Br("onTabChange",at)]),vq=function(n){return Ko("dialog",hq,n)},bq=function(n){return Dt(n)?[n].concat(te(ye(n),bq)):At(n)?te(n,bq):[]},yq=function(n){return Bt(n.type)&&Bt(n.name)},xq={checkbox:sY,colorinput:gY,colorpicker:vY,dropzone:xY,input:TY,iframe:kY,sizeinput:FY,selectbox:DY,size:FY,textarea:VY,urlinput:PY,customeditor:UY,collection:JY,togglemenuitem:cq},wq=function(n){return St.from(xq[n.type])},Sq=function(n){return Kt(bq(n),yq)},Cq=function(n){var t=Sq(n),e=te(t,function(n){return wq(n).fold(function(){return[]},function(t){return[lr(n.name,t)]})});return Mo(e)},kq=Mo(o([gr("type",["cancel","custom"])],gq)),Oq=Mo([mr("title"),mr("url"),Cr("height"),Cr("width"),_r("buttons",kq),Rr("onAction",at),Rr("onCancel",at),Rr("onClose",at),Rr("onMessage",at)]),_q=function(n){return Ko("dialog",Oq,n)},Tq=function(n){var t=Jo(vq(n)),e=Cq(n),o=n.initialData;return{internalDialog:t,dataValidator:e,initialData:o}},Eq={open:function(n,t){var e=Tq(t);return n(e.internalDialog,e.initialData,e.dataValidator)},openUrl:function(n,t){var e=Jo(_q(t));return n(e)},redial:function(n){return Tq(n)}},Bq=function(){var n=zr(St.none()),t=function(){n.set(St.none())},e=function(t){n.set(St.some(t))},o=function(t){n.get().each(t)},r=function(){return n.get().isSome()};return{clear:t,set:e,isSet:r,on:o}},Dq=function(n){var t=[],e={};return ge(n,function(n,o){n.fold(function(){t.push(o)},function(n){e[o]=n})}),t.length>0?_t.error(t):_t.value(e)},Aq=function(t,e){var o=sC(YM.sketch(function(n){return{dom:{tag:"div",classes:["tox-form"].concat(t.classes)},components:Gt(t.items,function(t){return TV(n,t,e)})}}));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[o.asSpec()]}],behaviours:bd([Xx.config({mode:"acyclic",useTabstopAt:dt(AF.isPseudoStop)}),rF.memento(o),yF.memento(o,{postprocess:function(t){return Dq(t).fold(function(t){return n.console.error(t),{}},function(n){return n})}})])}},Mq=function(n){return{uid:n.uid,dom:n.dom,components:n.components,events:Iw(n.action),behaviours:Ih(n.tabButtonBehaviours,[mw.config({}),Xx.config({mode:"execution",useSpace:!0,useEnter:!0}),Ah.config({store:{mode:"memory",initialValue:n.value}})]),domModification:n.domModification}},Fq=jv({name:"TabButton",configFields:[Br("uid",void 0),fr("value"),Po("dom","dom",Je(function(){return{attributes:{role:"tab",id:Sc("aria"),"aria-selected":"false"}}}),tr()),wr("action"),Br("domModification",{}),Mh("tabButtonBehaviours",[mw,Xx,Ah]),fr("view")],factory:Mq}),Iq=ft([fr("tabs"),fr("dom"),Br("clickToDismiss",!1),Mh("tabbarBehaviours",[bb,Xx]),bl(["tabClass","selectedClass"])]),Rq=mv({factory:Fq,name:"tabs",unit:"tab",overrides:function(n){var t=function(n,t){bb.dehighlight(n,t),oa(n,Zu(),{tabbar:n,button:t})},e=function(n,t){bb.highlight(n,t),oa(n,Qu(),{tabbar:n,button:t})};return{action:function(o){var r=o.getSystem().getByUid(n.uid).getOrDie(),i=bb.isHighlighted(r,o),u=function(){return i&&n.clickToDismiss?t:i?at:e}();u(r,o)},domModification:{classes:[n.markers.tabClass]}}}}),Vq=ft([Rq]),Hq=function(n,t){return{uid:n.uid,dom:n.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Ih(n.tabbarBehaviours,[bb.config({highlightClass:n.markers.selectedClass,itemClass:n.markers.tabClass,onHighlight:function(n,t){cc(t.element(),"aria-selected","true")},onDehighlight:function(n,t){cc(t.element(),"aria-selected","false")}}),Xx.config({mode:"flow",getInitial:function(n){return bb.getHighlighted(n).map(function(n){return n.element()})},selector:"."+n.markers.tabClass,executeOnMove:!0})])}},Nq=Uv({name:"Tabbar",configFields:Iq(),partFields:Vq(),factory:Hq}),Pq=function(n){return{uid:n.uid,dom:n.dom,behaviours:Ih(n.tabviewBehaviours,[ew.config({})]),domModification:{attributes:{role:"tabpanel"}}}},zq=jv({name:"Tabview",configFields:[Mh("tabviewBehaviours",[ew])],factory:Pq}),Lq=ft([Br("selectFirst",!0),xl("onChangeTab"),xl("onDismissTab"),Br("tabs",[]),Mh("tabSectionBehaviours",[])]),jq=fv({factory:Nq,schema:[fr("dom"),br("markers",[fr("tabClass"),fr("selectedClass")])],name:"tabbar",defaults:function(n){return{tabs:n.tabs}}}),Uq=fv({factory:zq,name:"tabview"}),Wq=ft([jq,Uq]),Gq=function(n,t){var e=function(t){var e=Ah.getValue(t);Ov(t,n,"tabview").each(function(o){var r=Qt(n.tabs,function(n){return n.value===e});r.each(function(e){var r=e.view();lc(t.element(),"id").each(function(n){cc(o.element(),"aria-labelledby",n)}),ew.set(o,r),n.onChangeTab(o,t,r)})})},o=function(t,e){Ov(t,n,"tabbar").each(function(n){e(n).each(ra)})};return{uid:n.uid,dom:n.dom,components:t,behaviours:Fh(n.tabSectionBehaviours),events:ca(ne([n.selectFirst?[Sa(function(n){o(n,bb.getFirst)})]:[],[da(Qu(),function(n,t){var o=t.event().button();e(o)}),da(Zu(),function(t,e){var o=e.event().button();n.onDismissTab(t,o)})]])),apis:{getViewItems:function(t){return Ov(t,n,"tabview").map(function(n){return ew.contents(n)}).getOr([])},showTab:function(n,t){var e=function(n){var e=bb.getCandidates(n),o=Qt(e,function(n){return Ah.getValue(n)===t});return o.filter(function(t){return!bb.isHighlighted(n,t)})};o(n,e)}}}},Xq=Uv({name:"TabSection",configFields:Lq(),partFields:Wq(),factory:Gq,apis:{getViewItems:function(n,t){return n.getViewItems(t)},showTab:function(n,t,e){n.showTab(t,e)}}}),Yq=function(n,t,e){return Gt(n,function(o,r){ew.set(e,n[r].view());var i=t.dom().getBoundingClientRect();return ew.set(e,[]),i.height})},qq=function(n){return ce(ae(n,function(n,t){return n>t?-1:t>n?1:0}))},Kq=function(t,e,o){var r,i=Ia(t).dom(),u=Kf(t,".tox-dialog-wrap").getOr(t),a="fixed"===Vs(u,"position");r=a?Math.max(i.clientHeight,n.window.innerHeight):Math.max(i.offsetHeight,i.scrollHeight);var c=af(e),s=e.dom().offsetLeft>=o.dom().offsetLeft+bf(o),f=s?Math.max(af(o),c):c,l=parseInt(Vs(t,"margin-top"),10)||0,d=parseInt(Vs(t,"margin-bottom"),10)||0,m=af(t)+l+d,g=m-f;return r-g},Jq=function(n,t){ce(n).each(function(n){return Xq.showTab(t,n.value)})},$q=function(n,t){Fs(n,"height",t+"px"),Ui().browser.isIE()?Ls(n,"flex-basis"):Fs(n,"flex-basis",t+"px")},Qq=function(n,t,e){Kf(n,'[role="dialog"]').each(function(n){Jf(n,'[role="tablist"]').each(function(o){e.get().map(function(e){return Fs(t,"height","0"),Fs(t,"flex-basis","0"),Math.min(e,Kq(n,t,o))}).each(function(n){$q(t,n)})})})},Zq=function(n){return Jf(n,'[role="tabpanel"]')},nK=function(n){var t=function(){var t=zr(St.none()),e=[Sa(function(e){var o=e.element();Zq(o).each(function(r){Fs(r,"visibility","hidden"),e.getSystem().getByDom(r).toOption().each(function(e){var o=Yq(n,r,e),i=qq(o);t.set(i)}),Qq(o,r,t),Ls(r,"visibility"),Jq(n,e),DS.requestAnimationFrame(function(){Qq(o,r,t)})})}),da(Gu(),function(n){var e=n.element();Zq(e).each(function(n){Qq(e,n,t)})}),da(AE,function(n){var e=n.element();Zq(e).each(function(n){var o=Id();Fs(n,"visibility","hidden");var r=Ns(n,"height").map(function(n){return parseInt(n,10)});Ls(n,"height"),Ls(n,"flex-basis");var i=n.dom().getBoundingClientRect().height,u=r.forall(function(n){return i>n});u?(t.set(St.from(i)),Qq(e,n,t)):r.each(function(t){$q(n,t)}),Ls(n,"visibility"),o.each(Ad)})})],o=!1;return{extraEvents:e,selectFirst:o}}(),e=function(){var n=[],t=!0;return{extraEvents:n,selectFirst:t}}();return{smartTabHeight:t,naiveTabHeight:e}},tK="send-data-to-section",eK="send-data-to-view",oK=function(n,t){var e=zr({}),o=function(n){var t=Ah.getValue(n),o=Dq(t).getOr({}),r=e.get(),i=Be(r,o);e.set(i)},r=function(n){var t=e.get();Ah.setValue(n,t)},i=zr(null),u=Gt(n.tabs,function(n){return{value:n.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:t.shared.providers.translate(n.title)},view:function(){return[YM.sketch(function(e){return{dom:{tag:"div",classes:["tox-form"]},components:Gt(n.items,function(n){return TV(e,n,t)}),formBehaviours:bd([Xx.config({mode:"acyclic",useTabstopAt:dt(AF.isPseudoStop)}),rw("TabView.form.events",[Sa(r),Ca(o)]),Ed.config({channels:oo([{key:tK,value:{onReceive:o}},{key:eK,value:{onReceive:r}}])})])}})]}}}),a=nK(u).smartTabHeight;return Xq.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(n,t){var e=Ah.getValue(t);oa(n,DE,{name:e,oldName:i.get()}),i.set(e)},tabs:u,components:[Xq.parts().tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[Nq.parts().tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:bd([vB.config({})])}),Xq.parts().tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:a.selectFirst,tabSectionBehaviours:bd([rw("tabpanel",a.extraEvents),Xx.config({mode:"acyclic"}),Qv.config({find:function(n){return ce(Xq.getViewItems(n))}}),Ah.config({store:{mode:"manual",getValue:function(n){return n.getSystem().broadcastOn([tK],{}),e.get()},setValue:function(n,t){e.set(t),n.getSystem().broadcastOn([eK],{})}}})])})},rK=Sc("update-dialog"),iK=Sc("update-title"),uK=Sc("update-body"),aK=Sc("update-footer"),cK=Sc("body-send-message"),sK=function(n,t,e,o){var r=function(n){switch(n.body.type){case"tabpanel":return[oK(n.body,e)];default:return[Aq(n.body,e)]}},i=function(n,t){return St.some({isTabPanel:function(){return"tabpanel"===t.body.type}})},u={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:vt(vt({},t.map(function(n){return{id:n}}).getOr({})),o?u:{})},components:[],behaviours:bd([rF.childAt(0),ez.config({channel:uK,updateState:i,renderComponents:r,initialData:n})])}},fK=function(n,t,e,o){return sK(n,St.some(t),e,o)},lK=function(n,t){var e=sK(n,St.none(),t,!1);return tY.parts().body(e)},dK=function(n){var t={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[AF.craft({dom:{tag:"iframe",attributes:{src:n.url}},behaviours:bd([vB.config({}),mw.config({})])})]}],behaviours:bd([Xx.config({mode:"acyclic",useTabstopAt:dt(AF.isPseudoStop)})])};return tY.parts().body(t)},mK=Uk.deviceType.isTouch(),gK=function(n,t){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[n,t]}},pK=function(n,t){return tY.parts().close(cC.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:n,buttonBehaviours:bd([vB.config({})])}))},hK=function(){return tY.parts().title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},vK=function(n,t){return tY.parts().body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:kU("<p>"+t.translate(n)+"</p>")}]}]})},bK=function(n){return tY.parts().footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:n})},yK=function(n,t){return[wE.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:n}),wE.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})]},xK=function(n){var t,e="tox-dialog",r=e+"-wrap",i=r+"__backdrop",u=e+"__disable-scroll";return tY.sketch({lazySink:n.lazySink,onEscape:function(t){return n.onEscape(t),St.some(!0)},useTabstopAt:function(n){return!AF.isPseudoStop(n)},dom:{tag:"div",classes:[e].concat(n.extraClasses),styles:vt({position:"relative"},n.extraStyles)},components:o([n.header,n.body],n.footer.toArray()),parts:{blocker:{dom:kU('<div class="'+r+'"></div>'),components:[{dom:{tag:"div",classes:mK?[i,i+"--opaque"]:[i]}}]}},dragBlockClass:r,modalBehaviours:bd(o([mw.config({}),rw("dialog-events",n.dialogEvents.concat([wa(wu(),function(n){Xx.focusIn(n)})])),rw("scroll-lock",[Sa(function(){ws(Bs(),u)}),Ca(function(){Cs(Bs(),u)})])],n.extraBehaviours)),eventOrder:vt((t={},t[Ru()]=["dialog-events"],t[Xu()]=["scroll-lock","dialog-events","alloy.base.behaviour"],t[Yu()]=["alloy.base.behaviour","dialog-events","scroll-lock"],t),n.eventOrder)})},wK=function(n){return cC.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":n.translate("Close"),title:n.translate("Close")}},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:'<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M17.953 7.453L13.422 12l4.531 4.547-1.406 1.406L12 13.422l-4.547 4.531-1.406-1.406L10.578 12 6.047 7.453l1.406-1.406L12 10.578l4.547-4.531z" fill-rule="evenodd"></path></svg>'}}],action:function(n){ea(n,OE)}})},SK=function(n,t,e){var o=function(n){return[nf(e.translate(n.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:vt({},t.map(function(n){return{id:n}}).getOr({}))},components:o(n),behaviours:bd([ez.config({channel:iK,renderComponents:o})])}},CK=function(){return{dom:kU('<div class="tox-dialog__draghandle"></div>')}},kK=function(n,t,e){return wE.sketch({dom:kU('<div class="tox-dialog__header"></div>'),components:[SK(n,St.some(t),e),CK(),wK(e)],containerBehaviours:bd([AX.config({mode:"mouse",blockerClass:"blocker",getTarget:function(n){return $f(n,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},OK=function(n,t){var e=tY.parts().title(SK(n,St.none(),t)),o=tY.parts().draghandle(CK()),r=tY.parts().close(wK(t)),i=[e].concat(n.draggable?[o]:[]).concat([r]);return wE.sketch({dom:kU('<div class="tox-dialog__header"></div>'),components:i})},_K=function(n,t){return OK({title:t.shared.providers.translate(n),draggable:t.dialog.isDraggableModal()},t.shared.providers)},TK=function(n,t){return{onClose:function(){return t.closeWindow()},onBlock:function(t){tY.setBusy(n(),function(n,e){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":t.message()},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:e,components:[{dom:kU('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}})},onUnblock:function(){tY.setIdle(n())}}},EK=function(n,t,e,r){var i,u=function(n,t){return St.some(t)};return of(xK(vt(vt({},n),{lazySink:r.shared.getSink,extraBehaviours:o([ez.config({channel:rK,updateState:u,initialData:t}),yF.memory({})],n.extraBehaviours),onEscape:function(n){ea(n,OE)},dialogEvents:e,eventOrder:(i={},i[Iu()]=["reflecting","receiving"],i[Xu()]=["scroll-lock","reflecting","messages","dialog-events","alloy.base.behaviour"],i[Yu()]=["alloy.base.behaviour","dialog-events","messages","reflecting","scroll-lock"],i)})))},BK=function(n){var t=function(n){var t=Gt(n.items,function(n){var t=zr(!1);return vt(vt({},n),{storage:t})});return vt(vt({},n),{items:t})};return Gt(n,function(n){return"menu"===n.type?t(n):n})},DK=function(n){return $t(n,function(n,t){if("menu"===t.type){var e=t;return $t(e.items,function(n,t){return n[t.name]=t.storage,n},n)}return n},{})},AK=function(n,t){return[ba(wu(),AF.onFocus),n(kE,function(n,e){t.onClose(),e.onClose()}),n(OE,function(n,t,e,o){t.onCancel(n),ea(o,kE)}),da(BE,function(){return t.onUnblock()}),da(EE,function(n,e){return t.onBlock(e.event())})]},MK=function(n,t){var e=function(t,e){return da(t,function(t,o){r(t,function(r){e(n(),r,o.event(),t)})})},r=function(n,t){ez.getState(n).get().each(function(e){t(e,n)})};return o(AK(e,t),[e(_E,function(n,t,e){t.onAction(n,{name:e.name()})})])},FK=function(n,t,e){var r=function(t,e){return da(t,function(t,o){i(t,function(r){e(n(),r,o.event(),t)})})},i=function(n,t){ez.getState(n).get().each(function(e){t(e.internalDialog,n)})};return o(AK(r,t),[r(TE,function(n,t){return t.onSubmit(n)}),r(CE,function(n,t,e){t.onChange(n,{name:e.name()})}),r(_E,function(n,t,o,r){var i=function(){return Xx.focusIn(r)},u=function(n){return dc(n,"disabled")||lc(n,"aria-disabled").exists(function(n){return"true"===n})},a=Id();t.onAction(n,{name:o.name(),value:o.value()}),Id().fold(i,function(n){u(n)?i():a.exists(function(t){return ou(n,t)&&u(t)})?i():e().toOption().filter(function(t){return!ou(t.element(),n)}).each(i)})}),r(DE,function(n,t,e){t.onTabChange(n,{newTabName:e.name(),oldTabName:e.oldName()})}),Ca(function(t){var e=n();Ah.setValue(t,e.getData())})])},IK={initUrlDialog:MK,initDialog:FK},RK=function(n,t){return MI(n,n.type,t)},VK=function(n,t,e){return Qt(t,function(n){return n.name===e}).bind(function(t){return t.memento.getOpt(n)})},HK=function(n,t){var e=t.map(function(n){return n.footerButtons}).getOr([]),o=qt(e,function(n){return"start"===n.align}),r=function(n,t){return wE.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+n]},components:Gt(t,function(n){return n.memento.asSpec()})})},i=r("start",o.pass),u=r("end",o.fail);return[i,u]},NK=function(n,t){var e=function(n,e){var o=Gt(e.buttons,function(n){var e=sC(RK(n,t));return{name:n.name,align:n.align,memento:e}}),r=function(n,t){return VK(n,o,t)};return St.some({lookupByName:r,footerButtons:o})};return{dom:kU('<div class="tox-dialog__footer"></div>'),components:[],behaviours:bd([ez.config({channel:aK,initialData:n,updateState:e,renderComponents:HK})])}},PK=function(n,t){return NK(n,t)},zK=function(n,t){return tY.parts().footer(NK(n,t))},LK=function(n,t){var e=n.getRoot();if(e.getSystem().isConnected()){var o=Qv.getCurrent(n.getFormWrapper()).getOr(n.getFormWrapper());return YM.getField(o,t).fold(function(){var e=n.getFooter(),r=ez.getState(e);return r.get().bind(function(n){return n.lookupByName(o,t)})},function(n){return St.some(n)})}return St.none()},jK=function(n,t){var e=n.getRoot();return ez.getState(e).get().map(function(n){return Jo(Ko("data",n.dataValidator,t))}).getOr(t)},UK=function(n,t,e){var o=function(t){var e=n.getRoot();e.getSystem().isConnected()&&t(e)},r=function(){var t=n.getRoot(),o=t.getSystem().isConnected()?n.getFormWrapper():t,r=Ah.getValue(o),i=pe(e,function(n){return n.get()});return vt(vt({},r),i)},i=function(t){o(function(){var o=g.getData(),r=vt(vt({},o),t),i=jK(n,r),u=n.getFormWrapper();Ah.setValue(u,i),ge(e,function(n,t){we(r,t)&&n.set(r[t])})})},u=function(t){LK(n,t).each(CO.disable)},a=function(t){LK(n,t).each(CO.enable)},c=function(t){LK(n,t).each(mw.focus)},s=function(n){if(!Bt(n))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");o(function(t){oa(t,EE,{message:n})})},f=function(){o(function(n){ea(n,BE)})},l=function(t){o(function(){var e=n.getBody(),o=ez.getState(e);o.get().exists(function(n){return n.isTabPanel()})&&Qv.getCurrent(e).each(function(n){Xq.showTab(n,t)
})})},d=function(n){o(function(e){var o=t(n);e.getSystem().broadcastOn([rK],o),e.getSystem().broadcastOn([iK],o.internalDialog),e.getSystem().broadcastOn([uK],o.internalDialog),e.getSystem().broadcastOn([aK],o.internalDialog),g.setData(o.initialData)})},m=function(){o(function(n){ea(n,kE)})},g={getData:r,setData:i,disable:u,enable:a,focus:c,block:s,unblock:f,showTab:l,redial:d,close:m};return g},WK=function(n,t,e){var o=_K(n.internalDialog.title,e),r=lK({body:n.internalDialog.body},e),i=BK(n.internalDialog.buttons),u=DK(i),a=zK({buttons:i},e),c=IK.initDialog(function(){return m},TK(function(){return l},t),e.shared.getSink),s="normal"!==n.internalDialog.size?"large"===n.internalDialog.size?["tox-dialog--width-lg"]:["tox-dialog--width-md"]:[],f={header:o,body:r,footer:St.some(a),extraClasses:s,extraBehaviours:[],extraStyles:{}},l=EK(f,n,c,e),d=function(){var n=function(){var n=tY.getBody(l);return Qv.getCurrent(n).getOr(n)};return{getRoot:function(){return l},getBody:function(){return tY.getBody(l)},getFooter:function(){return tY.getFooter(l)},getFormWrapper:n}}(),m=UK(d,t.redial,u);return{dialog:l,instanceApi:m}},GK=function(n,t,e,o){var r,i,u=Sc("dialog-label"),a=Sc("dialog-content"),c=function(n,t){return St.some(t)},s=sC(kK({title:n.internalDialog.title,draggable:!0},u,e.shared.providers)),f=sC(fK({body:n.internalDialog.body},a,e,o)),l=BK(n.internalDialog.buttons),d=DK(l),m=sC(PK({buttons:l},e)),g=IK.initDialog(function(){return h},{onBlock:function(){},onUnblock:function(){},onClose:function(){return t.closeWindow()}},e.shared.getSink),p=of({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(r={role:"dialog"},r["aria-labelledby"]=u,r["aria-describedby"]=""+a,r)},eventOrder:(i={},i[Iu()]=[ez.name(),Ed.name()],i[Ru()]=["execute-on-form"],i[Xu()]=["reflecting","execute-on-form"],i),behaviours:bd([Xx.config({mode:"cyclic",onEscape:function(n){return ea(n,kE),St.some(!0)},useTabstopAt:function(n){return!AF.isPseudoStop(n)&&("button"!==ec(n)||"disabled"!==fc(n,"disabled"))}}),ez.config({channel:rK,updateState:c,initialData:n}),mw.config({}),rw("execute-on-form",g.concat([wa(wu(),function(n){Xx.focusIn(n)})])),yF.memory({})]),components:[s.asSpec(),f.asSpec(),m.asSpec()]}),h=UK({getRoot:function(){return p},getFooter:function(){return m.get(p)},getBody:function(){return f.get(p)},getFormWrapper:function(){var n=f.get(p);return Qv.getCurrent(n).getOr(n)}},t.redial,d);return{dialog:p,instanceApi:h}},XK=tinymce.util.Tools.resolve("tinymce.util.URI"),YK=function(n){var t=function(t){n.getSystem().isConnected()&&t(n)},e=function(n){if(!Bt(n))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");t(function(t){oa(t,EE,{message:n})})},o=function(){t(function(n){ea(n,BE)})},r=function(){t(function(n){ea(n,kE)})},i=function(n){t(function(t){t.getSystem().broadcastOn([cK],n)})};return{block:e,unblock:o,close:r,sendMessage:i}},qK=["insertContent","setContent","execCommand","close","block","unblock"],KK=function(n){return Dt(n)&&-1!==qK.indexOf(n.mceAction)},JK=function(n){return!KK(n)&&Dt(n)&&we(n,"mceAction")},$K=function(n,t,e){switch(e.mceAction){case"insertContent":n.insertContent(e.content);break;case"setContent":n.setContent(e.content);break;case"execCommand":var o=Mt(e.ui)?e.ui:!1;n.execCommand(e.cmd,o,e.value);break;case"close":t.close();break;case"block":t.block(e.message);break;case"unblock":t.unblock()}},QK=function(t,e,o,r){var i,u=_K(t.title,r),a=dK(t),c=t.buttons.bind(function(n){return 0===n.length?St.none():St.some(zK({buttons:n},r))}),s=IK.initUrlDialog(function(){return b},TK(function(){return v},e)),f=vt(vt({},t.height.fold(function(){return{}},function(n){return{height:n+"px","max-height":n+"px"}})),t.width.fold(function(){return{}},function(n){return{width:n+"px","max-width":n+"px"}})),l=t.width.isNone()&&t.height.isNone()?["tox-dialog--width-lg"]:[],d=new XK(t.url,{base_uri:new XK(n.window.location.href)}),m=d.protocol+"://"+d.host+(d.port?":"+d.port:""),g=zr(St.none()),p=[rw("messages",[Sa(function(){var e=YT(Xr.fromDom(n.window),"message",function(n){if(d.isSameOrigin(new XK(n.raw().origin))){var e=n.raw().data;KK(e)?$K(o,b,e):JK(e)&&t.onMessage(b,e)}});g.set(St.some(e))}),Ca(function(){g.get().each(function(n){return n.unbind()})})]),Ed.config({channels:(i={},i[cK]={onReceive:function(n,t){Jf(n.element(),"iframe").each(function(n){var e=n.dom().contentWindow;e.postMessage(t,m)})}},i)})],h={header:u,body:a,footer:c,extraClasses:l,extraBehaviours:p,extraStyles:f},v=EK(h,t,s,r),b=YK(v);return{dialog:v,instanceApi:b}},ZK=function(n){var t=n.backstage.shared,e=function(e,o){var r=function(){tY.hide(c),o()},i=sC(MI({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:St.none()},"cancel",n.backstage)),u=hK(),a=pK(r,t.providers),c=of(xK({lazySink:function(){return t.getSink()},header:gK(u,a),body:vK(e,t.providers),footer:St.some(bK(yK([],[i.asSpec()]))),onEscape:r,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[da(OE,r)],eventOrder:{}}));tY.show(c);var s=i.get(c);mw.focus(s)};return{open:e}},nJ=function(n){var t=n.backstage.shared,e=function(e,o){var r=function(n){tY.hide(s),o(n)},i=sC(MI({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:St.none()},"submit",n.backstage)),u=MI({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:St.none()},"cancel",n.backstage),a=hK(),c=pK(function(){return r(!1)},t.providers),s=of(xK({lazySink:function(){return t.getSink()},header:gK(a,c),body:vK(e,t.providers),footer:St.some(bK(yK([],[u,i.asSpec()]))),onEscape:function(){return r(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[da(OE,function(){return r(!1)}),da(TE,function(){return r(!0)})],eventOrder:{}}));tY.show(s);var f=i.get(s);mw.focus(f)};return{open:e}},tJ=function(n,t){return Jo(Ko("data",t,n))},eJ=function(n){return JT(n,".tox-alert-dialog")||JT(n,".tox-confirm-dialog")},oJ=function(n,t,e){return t&&e?[]:[Rj.config({contextual:{lazyContext:function(){return St.some(jf(Xr.fromDom(n.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},rJ=function(n){var t=n.backstage,e=n.editor,r=iC(e),i=ZS(e),u=ZK(n),a=nJ(n),c=function(n,e,o){return void 0!==e&&"toolbar"===e.inline?d(n,t.shared.anchors.inlineDialog(),o,e.ariaAttrs):void 0!==e&&"cursor"===e.inline?d(n,t.shared.anchors.cursor(),o,e.ariaAttrs):l(n,o)},s=function(n,t){return f(n,t)},f=function(n,o){var r=function(n){var r=QK(n,{closeWindow:function(){tY.hide(r.dialog),o(r.instanceApi)}},e,t);return tY.show(r.dialog),r.instanceApi};return Eq.openUrl(r,n)},l=function(n,e){var o=function(n,o,r){var i=o,u={dataValidator:r,initialData:i,internalDialog:n},a=WK(u,{redial:Eq.redial,closeWindow:function(){tY.hide(a.dialog),e(a.instanceApi)}},t);return tY.show(a.dialog),a.instanceApi.setData(i),a.instanceApi};return Eq.open(o,n)},d=function(n,u,a,c){var s=function(n,s,f){var l=tJ(s,f),d=Bq(),m={dataValidator:f,initialData:l,internalDialog:n},g=function(){return d.on(function(n){bS.reposition(n),Rj.refresh(n)})},p=GK(m,{redial:Eq.redial,closeWindow:function(){d.on(bS.hide),e.off("ResizeEditor",g),d.clear(),a(p.instanceApi)}},t,c),h=of(bS.sketch(vt(vt({lazySink:t.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},i?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:bd(o([rw("window-manager-inline-events",[da(qu(),function(){ea(p.dialog,OE)})])],oJ(e,r,i))),isExtraPart:function(n,t){return eJ(t)}})));return d.set(h),bS.showWithin(h,u,rf(p.dialog),St.some(Bs())),r&&i||(Rj.refresh(h),e.on("ResizeEditor",g)),p.instanceApi.setData(l),Xx.focusIn(p.dialog),p.instanceApi};return Eq.open(s,n)},m=function(n,t){a.open(n,function(n){t(n)})},g=function(n,t){u.open(n,function(){t()})},p=function(n){n.close()};return{open:c,openUrl:s,alert:g,close:p,confirm:m}},iJ={setup:rJ};it()}(window)});
;/*!node_modules/tinymce/themes/silver/index.js*/
amis.define("node_modules/tinymce/themes/silver/index",function(e){e("node_modules/tinymce/themes/silver/theme")});
;/*!node_modules/tinymce/plugins/advlist/plugin.js*/
amis.define("node_modules/tinymce/plugins/advlist/plugin",function(){!function(){"use strict";function e(){t.add("advlist",function(e){var t=function(e,t){var r=e.settings.plugins?e.settings.plugins:"";return-1!==n.inArray(r.split(/[ ,]/),t)};t(e,"lists")&&(B.register(e),u.register(e))})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(e,t,n){var r="UL"===t?"InsertUnorderedList":"InsertOrderedList";e.execCommand(r,!1,n===!1?null:{"list-style-type":n})},i={applyListFormat:r},o=function(e){e.addCommand("ApplyUnorderedListStyle",function(t,n){i.applyListFormat(e,"UL",n["list-style-type"])}),e.addCommand("ApplyOrderedListStyle",function(t,n){i.applyListFormat(e,"OL",n["list-style-type"])})},u={register:o},l=function(e){var t=e.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");return t?t.split(/[ ,]/):[]},s=function(e){var t=e.getParam("advlist_bullet_styles","default,circle,square");return t?t.split(/[ ,]/):[]},c={getNumberStyles:l,getBulletStyles:s},a=function(){},f=function(e){return function(){return e}},d=f(!1),g=f(!0),p=function(){return m},m=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e){return e()},is:d,isSome:d,isNone:g,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:n,orThunk:t,map:p,each:a,bind:p,exists:d,forall:g,filter:p,equals:e,equals_:e,toArray:function(){return[]},toString:f("none()")};return Object.freeze&&Object.freeze(r),r}(),y=function(e){var t=f(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:g,isNone:d,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)?i:m},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(d,function(t){return n(e,t)})}};return i},v=function(e){return null===e||void 0===e?m:y(e)},L={some:y,none:p,from:v},O=function(e,t){return e.$.contains(e.getBody(),t)},N=function(e){return e&&/^(TH|TD)$/.test(e.nodeName)},S=function(e){return function(t){return t&&/^(OL|UL|DL)$/.test(t.nodeName)&&O(e,t)}},h=function(e){var t=e.dom.getParent(e.selection.getNode(),"ol,ul"),n=e.dom.getStyle(t,"listStyleType");return L.from(n)},T={isTableCellNode:N,isListNode:S,getSelectedStyleType:h},b=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return n}return-1},C=function(e){return e.replace(/\-/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()})},A=function(e,t,r){var i=b(t.parents,T.isTableCellNode),o=-1!==i?t.parents.slice(0,i):t.parents,u=n.grep(o,T.isListNode(e));return u.length>0&&u[0].nodeName===r},U=function(e,t,r,o,u,l){e.ui.registry.addSplitButton(t,{tooltip:r,icon:"OL"===u?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:function(e){var t=n.map(l,function(e){var t="OL"===u?"num":"bull",n="disc"===e||"decimal"===e?"default":e,r="default"===e?"":e,i=C(e);return{type:"choiceitem",value:r,icon:"list-"+t+"-"+n,text:i}});e(t)},onAction:function(){return e.execCommand(o)},onItemAction:function(t,n){i.applyListFormat(e,u,n)},select:function(t){var n=T.getSelectedStyleType(e);return n.map(function(e){return t===e}).getOr(!1)},onSetup:function(t){var n=function(n){t.setActive(A(e,n,u))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}}})},w=function(e,t,n,r,i){e.ui.registry.addToggleButton(t,{active:!1,tooltip:n,icon:"OL"===i?"ordered-list":"unordered-list",onSetup:function(t){var n=function(n){t.setActive(A(e,n,i))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}},onAction:function(){return e.execCommand(r)}})},_=function(e,t,n,r,i,o){o.length>0?U(e,t,n,r,i,o):w(e,t,n,r,i)},x=function(e){_(e,"numlist","Numbered list","InsertOrderedList","OL",c.getNumberStyles(e)),_(e,"bullist","Bullet list","InsertUnorderedList","UL",c.getBulletStyles(e))},B={register:x};e()}()});
;/*!node_modules/tinymce/plugins/advlist/index.js*/
amis.define("node_modules/tinymce/plugins/advlist/index",function(i){i("node_modules/tinymce/plugins/advlist/plugin")});
;/*!node_modules/tinymce/plugins/autolink/plugin.js*/
amis.define("node_modules/tinymce/plugins/autolink/plugin",function(){!function(){"use strict";function t(){e.add("autolink",function(t){k.setup(t)})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.Env"),i=function(t){return t.getParam("autolink_pattern",/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+\-]+@)(.+)$/i)},o=function(t){return t.getParam("default_link_target",!1)},r=function(t){return t.getParam("link_default_protocol","http","string")},a={getAutoLinkPattern:i,getDefaultLinkTarget:o,getDefaultLinkProtocol:r},f=function(t,e){return t===e||" "===t||160===t.charCodeAt(0)},u=function(t){h(t,-1,"(")},d=function(t){h(t,0,"")},l=function(t){h(t,-1,"")},s=function(t,e){if(0>e&&(e=0),3===t.nodeType){var n=t.data.length;e>n&&(e=n)}return e},c=function(t,e,n){1!==e.nodeType||e.hasChildNodes()?t.setStart(e,s(e,n)):t.setStartBefore(e)},g=function(t,e,n){1!==e.nodeType||e.hasChildNodes()?t.setEnd(e,s(e,n)):t.setEndAfter(e)},h=function(t,e,n){var i,o,r,u,d,l,s,h,m,k,C=a.getAutoLinkPattern(t),p=a.getDefaultLinkTarget(t);if("A"!==t.selection.getNode().tagName){if(i=t.selection.getRng(!0).cloneRange(),i.startOffset<5){if(h=i.endContainer.previousSibling,!h){if(!i.endContainer.firstChild||!i.endContainer.firstChild.nextSibling)return;h=i.endContainer.firstChild.nextSibling}if(m=h.length,c(i,h,m),g(i,h,m),i.endOffset<5)return;o=i.endOffset,u=h}else{if(u=i.endContainer,3!==u.nodeType&&u.firstChild){for(;3!==u.nodeType&&u.firstChild;)u=u.firstChild;3===u.nodeType&&(c(i,u,0),g(i,u,u.nodeValue.length))}o=1===i.endOffset?2:i.endOffset-1-e}r=o;do c(i,u,o>=2?o-2:0),g(i,u,o>=1?o-1:0),o-=1,k=i.toString();while(" "!==k&&""!==k&&160!==k.charCodeAt(0)&&o-2>=0&&k!==n);f(i.toString(),n)?(c(i,u,o),g(i,u,r),o+=1):0===i.startOffset?(c(i,u,0),g(i,u,r)):(c(i,u,o),g(i,u,r)),l=i.toString(),"."===l.charAt(l.length-1)&&g(i,u,r-1),l=i.toString().trim(),s=l.match(C);var y=a.getDefaultLinkProtocol(t);s&&("www."===s[1]?s[1]=y+"://www.":/@$/.test(s[1])&&!/^mailto:/.test(s[1])&&(s[1]="mailto:"+s[1]),d=t.selection.getBookmark(),t.selection.setRng(i),t.execCommand("createlink",!1,s[1]+s[2]),p!==!1&&t.dom.setAttrib(t.selection.getNode(),"target",p),t.selection.moveToBookmark(d),t.nodeChanged())}},m=function(t){var e;return t.on("keydown",function(e){return 13===e.keyCode?l(t):void 0}),n.browser.isIE()?void t.on("focus",function(){if(!e){e=!0;try{t.execCommand("AutoUrlDetect",!1,!0)}catch(n){}}}):(t.on("keypress",function(e){return 41===e.keyCode?u(t):void 0}),void t.on("keyup",function(e){return 32===e.keyCode?d(t):void 0}))},k={setup:m};t()}()});
;/*!node_modules/tinymce/plugins/autolink/index.js*/
amis.define("node_modules/tinymce/plugins/autolink/index",function(n){n("node_modules/tinymce/plugins/autolink/plugin")});
;/*!node_modules/tinymce/plugins/lists/plugin.js*/
amis.define("node_modules/tinymce/plugins/lists/plugin",function(){!function(e){"use strict";function t(){n.add("lists",function(e){return ai.setup(e),li.register(e),ii.register(e),ni.get(e)})}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(){},o=function(e){return function(){return e}},i=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},u=o(!1),s=o(!0),a=function(){return c},c=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},i={fold:function(e){return e()},is:u,isSome:u,isNone:s,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:n,orThunk:t,map:a,each:r,bind:a,exists:u,forall:s,filter:a,equals:e,equals_:e,toArray:function(){return[]},toString:o("none()")};return Object.freeze&&Object.freeze(i),i}(),f=function(e){var t=o(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:s,isNone:u,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return f(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:c},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(u,function(t){return n(e,t)})}};return i},d=function(e){return null===e||void 0===e?c:f(e)},l={some:f,none:a,from:d},m=function(e){if(null===e)return"null";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},g=function(e){return function(t){return m(t)===e}},v=g("string"),p=g("array"),h=g("boolean"),N=g("function"),y=g("number"),O=Array.prototype.slice,C=Array.prototype.push,S=function(e,t){for(var n=e.length,r=new Array(n),o=0;n>o;o++){var i=e[o];r[o]=t(i,o)}return r},L=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];t(o,n)}},T=function(e,t){for(var n=[],r=0,o=e.length;o>r;r++){var i=e[r];t(i,r)&&n.push(i)}return n},b=function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],o=[],i=0,u=e.length;u>i;i++){var s=e[i],a=t(s);a!==n&&(r.push(o),o=[]),n=a,o.push(s)}return 0!==o.length&&r.push(o),r},k=function(e,t,n){return L(e,function(e){n=t(n,e)}),n},E=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return l.some(o)}return l.none()},D=function(e){for(var t=[],n=0,r=e.length;r>n;++n){if(!p(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);C.apply(t,e[n])}return t},B=function(e,t){return D(S(e,t))},w=function(e){var t=O.call(e,0);return t.reverse(),t},x=function(e){return 0===e.length?l.none():l.some(e[0])},A=function(e){return 0===e.length?l.none():l.some(e[e.length-1])},R=(N(Array.from)?Array.from:function(e){return O.call(e)},function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)}),I=function(t,n){return R(t,n,e.Node.DOCUMENT_POSITION_PRECEDING)},P=function(t,n){return R(t,n,e.Node.DOCUMENT_POSITION_CONTAINED_BY)},_={documentPositionPreceding:I,documentPositionContainedBy:P},M=function(){return M=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},M.apply(this,arguments)},U=function(e){var t=e,n=function(){return t},r=function(e){t=e},o=function(){return U(n())};return{get:n,set:r,clone:o}},F=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}return void 0},z=function(e,t){var n=F(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return $(r(1),r(2))},j=function(e,t){var n=String(t).toLowerCase();return 0===e.length?H():z(e,n)},H=function(){return $(0,0)},$=function(e,t){return{major:e,minor:t}},W={nu:$,detect:j,unknown:H},q="Edge",V="Chrome",K="IE",Q="Opera",X="Firefox",Y="Safari",G=function(e,t){return function(){return t===e}},J=function(){return Z({current:void 0,version:W.unknown()})},Z=function(e){var t=e.current,n=e.version;return{current:t,version:n,isEdge:G(q,t),isChrome:G(V,t),isIE:G(K,t),isOpera:G(Q,t),isFirefox:G(X,t),isSafari:G(Y,t)}},et={unknown:J,nu:Z,edge:o(q),chrome:o(V),ie:o(K),opera:o(Q),firefox:o(X),safari:o(Y)},tt="Windows",nt="iOS",rt="Android",ot="Linux",it="OSX",ut="Solaris",st="FreeBSD",at="ChromeOS",ct=function(e,t){return function(){return t===e}},ft=function(){return dt({current:void 0,version:W.unknown()})},dt=function(e){var t=e.current,n=e.version;return{current:t,version:n,isWindows:ct(tt,t),isiOS:ct(nt,t),isAndroid:ct(rt,t),isOSX:ct(it,t),isLinux:ct(ot,t),isSolaris:ct(ut,t),isFreeBSD:ct(st,t),isChromeOS:ct(at,t)}},lt={unknown:ft,nu:dt,windows:o(tt),ios:o(nt),android:o(rt),linux:o(ot),osx:o(it),solaris:o(ut),freebsd:o(st),chromeos:o(at)},mt=function(e,t,n,r){var i=e.isiOS()&&/ipad/i.test(n)===!0,u=e.isiOS()&&!i,s=e.isiOS()||e.isAndroid(),a=s||r("(pointer:coarse)"),c=i||!u&&s&&r("(min-device-width:768px)"),f=u||s&&!c,d=t.isSafari()&&e.isiOS()&&/safari/i.test(n)===!1,l=!f&&!c&&!d;return{isiPad:o(i),isiPhone:o(u),isTablet:o(c),isPhone:o(f),isTouch:o(a),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:o(d),isDesktop:o(l)}},gt=function(e,t){var n=String(t).toLowerCase();return E(e,function(e){return e.search(n)})},vt=function(e,t){return gt(e,t).map(function(e){var n=W.detect(e.versionRegexes,t);return{current:e.name,version:n}})},pt=function(e,t){return gt(e,t).map(function(e){var n=W.detect(e.versionRegexes,t);return{current:e.name,version:n}})},ht={detectBrowser:vt,detectOs:pt},Nt=function(e,t){return-1!==e.indexOf(t)},yt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ot=function(e){return function(t){return Nt(t,e)}},Ct=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Nt(e,"edge/")&&Nt(e,"chrome")&&Nt(e,"safari")&&Nt(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,yt],search:function(e){return Nt(e,"chrome")&&!Nt(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Nt(e,"msie")||Nt(e,"trident")}},{name:"Opera",versionRegexes:[yt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ot("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ot("firefox")},{name:"Safari",versionRegexes:[yt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Nt(e,"safari")||Nt(e,"mobile/"))&&Nt(e,"applewebkit")}}],St=[{name:"Windows",search:Ot("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Nt(e,"iphone")||Nt(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ot("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Ot("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ot("linux"),versionRegexes:[]},{name:"Solaris",search:Ot("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ot("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ot("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Lt={browsers:o(Ct),oses:o(St)},Tt=function(e,t){var n=Lt.browsers(),r=Lt.oses(),o=ht.detectBrowser(n,e).fold(et.unknown,et.nu),i=ht.detectOs(r,e).fold(lt.unknown,lt.nu),u=mt(i,o,e,t);return{browser:o,os:i,deviceType:u}},bt={detect:Tt},kt=function(t){return e.window.matchMedia(t).matches},Et=U(bt.detect(e.navigator.userAgent,kt)),Dt=function(){return Et.get()},Bt=function(t,n){var r=n||e.document,o=r.createElement("div");if(o.innerHTML=t,!o.hasChildNodes()||o.childNodes.length>1)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return At(o.childNodes[0])},wt=function(t,n){var r=n||e.document,o=r.createElement(t);return At(o)},xt=function(t,n){var r=n||e.document,o=r.createTextNode(t);return At(o)},At=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:o(e)}},Rt=function(e,t,n){var r=e.dom();return l.from(r.elementFromPoint(t,n)).map(At)},It={fromHtml:Bt,fromTag:wt,fromText:xt,fromDom:At,fromPoint:Rt},Pt=(e.Node.ATTRIBUTE_NODE,e.Node.CDATA_SECTION_NODE,e.Node.COMMENT_NODE,e.Node.DOCUMENT_NODE,e.Node.DOCUMENT_TYPE_NODE,e.Node.DOCUMENT_FRAGMENT_NODE,e.Node.ELEMENT_NODE),_t=(e.Node.TEXT_NODE,e.Node.PROCESSING_INSTRUCTION_NODE,e.Node.ENTITY_REFERENCE_NODE,e.Node.ENTITY_NODE,e.Node.NOTATION_NODE,Pt),Mt=function(e,t){var n=e.dom();if(n.nodeType!==_t)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")},Ut=function(e,t){return e.dom()===t.dom()},Ft=function(e,t){var n=e.dom(),r=t.dom();return n===r?!1:n.contains(r)},zt=function(e,t){return _.documentPositionContainedBy(e.dom(),t.dom())},jt=Dt().browser,Ht=jt.isIE()?zt:Ft,$t=Mt,Wt=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),qt=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Vt=tinymce.util.Tools.resolve("tinymce.util.VK"),Kt=function(e,t,n){return e.isSome()&&t.isSome()?l.some(n(e.getOrDie(),t.getOrDie())):l.none()},Qt=function(t,n){var r=n||e.document,o=r.createDocumentFragment();return L(t,function(e){o.appendChild(e.dom())}),It.fromDom(o)},Xt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e.length!==t.length)throw new Error('Wrong number of arguments to struct. Expected "['+e.length+']", got '+t.length+" arguments");var r={};return L(e,function(e,n){r[e]=o(t[n])}),r}},Yt=Object.keys,Gt=function(e,t){for(var n=Yt(e),r=0,o=n.length;o>r;r++){var i=n[r],u=e[i];t(u,i)}},Jt=function(e){return l.from(e.dom().parentNode).map(It.fromDom)},Zt=function(e){return S(e.dom().childNodes,It.fromDom)},en=function(e,t){var n=e.dom().childNodes;return l.from(n[t]).map(It.fromDom)},tn=function(e){return en(e,0)},nn=function(e){return en(e,e.dom().childNodes.length-1)},rn=(Xt("element","offset"),function(e,t){var n=Jt(e);n.each(function(n){n.dom().insertBefore(t.dom(),e.dom())})}),on=function(e,t){e.dom().appendChild(t.dom())},un=function(e,t){L(t,function(t){rn(e,t)})},sn=function(e,t){L(t,function(t){on(e,t)})},an=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},cn=function(e,t,n){return e.fire("ListMutation",{action:t,element:n})},fn="undefined"!=typeof e.window?e.window:Function("return this;")(),dn=function(e,t){for(var n=void 0!==t&&null!==t?t:fn,r=0;r<e.length&&void 0!==n&&null!==n;++r)n=n[e[r]];return n},ln=function(e,t){var n=e.split(".");return dn(n,t)},mn=function(e,t){return ln(e,t)},gn=function(e,t){var n=mn(e,t);if(void 0===n||null===n)throw new Error(e+" not available on this browser");return n},vn={getOrDie:gn},pn=function(e){return vn.getOrDie("HTMLElement",e)},hn=function(e){var t=ln("ownerDocument.defaultView",e);return pn(t).prototype.isPrototypeOf(e)},Nn={isPrototypeOf:hn},yn=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),On=tinymce.util.Tools.resolve("tinymce.util.Tools"),Cn=function(e){return e&&3===e.nodeType},Sn=function(e){return e&&/^(OL|UL|DL)$/.test(e.nodeName)},Ln=function(e){return e&&/^(OL|UL)$/.test(e.nodeName)},Tn=function(e){return e&&/^(LI|DT|DD)$/.test(e.nodeName)},bn=function(e){return e&&/^(DT|DD)$/.test(e.nodeName)},kn=function(e){return e&&/^(TH|TD)$/.test(e.nodeName)},En=function(e){return e&&"BR"===e.nodeName},Dn=function(e){return e.parentNode.firstChild===e},Bn=function(e){return e.parentNode.lastChild===e},wn=function(e,t){return t&&!!e.schema.getTextBlockElements()[t.nodeName]},xn=function(e,t){return e&&e.nodeName in t},An=function(e,t){return En(t)&&e.isBlock(t.nextSibling)&&!En(t.previousSibling)?!0:!1},Rn=function(e,t,n){var r=e.isEmpty(t);return n&&e.select("span[data-mce-type=bookmark]",t).length>0?!1:r},In=function(e,t){return e.isChildOf(t,e.getRoot())},Pn={isTextNode:Cn,isListNode:Sn,isOlUlNode:Ln,isDlItemNode:bn,isListItemNode:Tn,isTableCellNode:kn,isBr:En,isFirstChild:Dn,isLastChild:Bn,isTextBlock:wn,isBlock:xn,isBogusBr:An,isEmpty:Rn,isChildOfBody:In},_n=function(e){var t=e.selection.getStart(!0);return e.dom.getParent(t,"OL,UL,DL",$n(e,t))},Mn=function(e,t){return e&&1===t.length&&t[0]===e},Un=function(e){return On.grep(e.querySelectorAll("ol,ul,dl"),function(e){return Pn.isListNode(e)})},Fn=function(e){var t=_n(e),n=e.selection.getSelectedBlocks();return Mn(t,n)?Un(t):On.grep(n,function(e){return Pn.isListNode(e)&&t!==e})},zn=function(e,t){var n=On.map(t,function(t){var n=e.dom.getParent(t,"li,dd,dt",$n(e,t));return n?n:t});return yn.unique(n)},jn=function(e){var t=e.selection.getSelectedBlocks();return On.grep(zn(e,t),function(e){return Pn.isListItemNode(e)})},Hn=function(e){return T(jn(e),Pn.isDlItemNode)},$n=function(e,t){var n=e.dom.getParents(t,"TD,TH"),r=n.length>0?n[0]:e.getBody();return r},Wn=function(e,t){var n=e.dom.getParents(t,"ol,ul",$n(e,t));return A(n)},qn=function(e){var t=Wn(e,e.selection.getStart()),n=T(e.selection.getSelectedBlocks(),Pn.isOlUlNode);return t.toArray().concat(n)},Vn=function(e){var t=qn(e);return Kn(e,t)},Kn=function(e,t){var n=S(t,function(t){return Wn(e,t).getOr(t)});return yn.unique(n)},Qn=function(e){var t=_n(e);return Nn.isPrototypeOf(t)},Xn={isList:Qn,getParentList:_n,getSelectedSubLists:Fn,getSelectedListItems:jn,getClosestListRootElm:$n,getSelectedDlItems:Hn,getSelectedListRoots:Vn},Yn=function(e){return e.getParam("lists_indent_on_tab",!0)},Gn=function(e){var t=e.getParam("forced_root_block","p");return t===!1?"":t===!0?"p":t},Jn=function(e){return e.getParam("forced_root_block_attrs",{})},Zn={shouldIndentOnTab:Yn,getForcedRootBlock:Gn,getForcedRootBlockAttrs:Jn},er=function(e,t){var n,r,o,i=e.dom,u=e.schema.getBlockElements(),s=i.createFragment(),a=Zn.getForcedRootBlock(e);if(a&&(r=i.create(a),r.tagName===a.toUpperCase()&&i.setAttribs(r,Zn.getForcedRootBlockAttrs(e)),Pn.isBlock(t.firstChild,u)||s.appendChild(r)),t)for(;n=t.firstChild;){var c=n.nodeName;o||"SPAN"===c&&"bookmark"===n.getAttribute("data-mce-type")||(o=!0),Pn.isBlock(n,u)?(s.appendChild(n),r=null):a?(r||(r=i.create(a),s.appendChild(r)),r.appendChild(n)):s.appendChild(n)}return a?o||r.appendChild(i.create("br",{"data-mce-bogus":"1"})):s.appendChild(i.create("br")),s},tr=function(e){var t=e.dom().nodeName;return t.toLowerCase()},nr=function(e){return e.dom().nodeType},rr=function(e){return function(t){return nr(t)===e}},or=rr(Pt),ir=function(t,n,r){if(!(v(r)||h(r)||y(r)))throw e.console.error("Invalid call to Attr.set. Key ",n,":: Value ",r,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(n,r+"")},ur=function(e,t){var n=e.dom();Gt(t,function(e,t){ir(n,t,e)})},sr=function(e){return k(e.dom().attributes,function(e,t){return e[t.name]=t.value,e},{})},ar=function(e){return void 0!==e.style&&N(e.style.getPropertyValue)},cr=function(t,n,r){if(!v(r))throw e.console.error("Invalid call to CSS.set. Property ",n,":: Value ",r,":: Element ",t),new Error("CSS value must be a string: "+r);ar(t)&&t.style.setProperty(n,r)},fr=function(e,t,n){var r=e.dom();cr(r,t,n)},dr=function(e,t){return It.fromDom(e.dom().cloneNode(t))},lr=function(e){return dr(e,!0)},mr=function(e,t){var n=It.fromTag(t),r=sr(e);return ur(n,r),n},gr=function(e,t){var n=mr(e,t);rn(e,n);var r=Zt(e);return sn(n,r),an(e),n},vr=function(e,t){on(e.item,t.list)},pr=function(e){for(var t=1;t<e.length;t++)vr(e[t-1],e[t])},hr=function(e,t){Kt(A(e),x(t),vr)},Nr=function(e,t){var n={list:It.fromTag(t,e),item:It.fromTag("li",e)};return on(n.list,n.item),n},yr=function(e,t,n){for(var r=[],o=0;n>o;o++)r.push(Nr(e,t.listType));return r},Or=function(e,t){for(var n=0;n<e.length-1;n++)fr(e[n].item,"list-style-type","none");A(e).each(function(e){ur(e.list,t.listAttributes),ur(e.item,t.itemAttributes),sn(e.item,t.content)})},Cr=function(e,t){tr(e.list)!==t.listType&&(e.list=gr(e.list,t.listType)),ur(e.list,t.listAttributes)},Sr=function(e,t,n){var r=It.fromTag("li",e);return ur(r,t),sn(r,n),r},Lr=function(e,t){on(e.list,t),e.item=t},Tr=function(e,t,n){var r=t.slice(0,n.depth);return A(r).each(function(t){var r=Sr(e,n.itemAttributes,n.content);Lr(t,r),Cr(t,n)}),r},br=function(e,t,n){var r=yr(e,n,n.depth-t.length);return pr(r),Or(r,n),hr(t,r),t.concat(r)},kr=function(e,t){var n=k(t,function(t,n){return n.depth>t.length?br(e,t,n):Tr(e,t,n)},[]);return x(n).map(function(e){return e.list})},Er=function(e){return $t(e,"OL,UL")},Dr=function(e){return tn(e).map(Er).getOr(!1)},Br=function(e){return nn(e).map(Er).getOr(!1)},wr=function(e){return e.depth>0},xr=function(e){return e.isSelected},Ar=function(e){var t=Zt(e),n=Br(e)?t.slice(0,-1):t;return S(n,lr)},Rr=function(e,t,n){return Jt(e).filter(or).map(function(r){return{depth:t,isSelected:n,content:Ar(e),itemAttributes:sr(e),listAttributes:sr(r),listType:tr(r)}})},Ir=function(e,t){switch(e){case"Indent":t.depth++;break;case"Outdent":t.depth--;break;case"Flatten":t.depth=0}},Pr=function(e,t){e.listType=t.listType,e.listAttributes=M({},t.listAttributes)},_r=function(e,t){for(var n=e[t].depth,r=t-1;r>=0;r--){if(e[r].depth===n)return l.some(e[r]);if(e[r].depth<n)break}return l.none()},Mr=function(e){L(e,function(t,n){_r(e,n).each(function(e){Pr(t,e)})})},Ur=function(e,t,n,r){return tn(r).filter(Er).fold(function(){t.each(function(e){Ut(e.start,r)&&n.set(!0)});var o=Rr(r,e,n.get());t.each(function(e){Ut(e.end,r)&&n.set(!1)});var i=nn(r).filter(Er).map(function(r){return Fr(e,t,n,r)}).getOr([]);return o.toArray().concat(i)},function(r){return Fr(e,t,n,r)})},Fr=function(e,t,n,r){return B(Zt(r),function(r){var o=Er(r)?Fr:Ur,i=e+1;return o(i,t,n,r)})},zr=function(e,t){var n=U(!1),r=0;return S(e,function(e){return{sourceList:e,entries:Fr(r,t,n,e)}})},jr=function(e,t){return S(t,function(t){var n=Qt(t.content);return It.fromDom(er(e,n.dom()))})},Hr=function(e,t){return Mr(t),kr(e.contentDocument,t).toArray()},$r=function(e,t){return B(b(t,wr),function(t){var n=x(t).map(wr).getOr(!1);return n?Hr(e,t):jr(e,t)})},Wr=function(e,t){L(T(e,xr),function(e){return Ir(t,e)})},qr=function(e){var t=S(Xn.getSelectedListItems(e),It.fromDom);return Kt(E(t,i(Dr)),E(w(t),i(Dr)),function(e,t){return{start:e,end:t}})},Vr=function(e,t,n){var r=zr(t,qr(e));L(r,function(t){Wr(t.entries,n);var r=$r(e,t.entries);L(r,function(t){cn(e,"Indent"===n?"IndentList":"OutdentList",t.dom())}),un(t.sourceList,r),an(t.sourceList)})},Kr=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Qr=Kr.DOM,Xr=function(e,t,n){var r,o,i,u,s,a=function(e){On.each(i,function(t){e.parentNode.insertBefore(t,n.parentNode)}),Qr.remove(e)};for(i=Qr.select('span[data-mce-type="bookmark"]',t),s=er(e,n),r=Qr.createRng(),r.setStartAfter(n),r.setEndAfter(t),o=r.extractContents(),u=o.firstChild;u;u=u.firstChild)if("LI"===u.nodeName&&e.dom.isEmpty(u)){Qr.remove(u);break}e.dom.isEmpty(o)||Qr.insertAfter(o,t),Qr.insertAfter(s,t),Pn.isEmpty(e.dom,n.parentNode)&&a(n.parentNode),Qr.remove(n),Pn.isEmpty(e.dom,t)&&Qr.remove(t)},Yr={splitList:Xr},Gr=function(e,t){$t(t,"dd")?gr(t,"dt"):$t(t,"dt")&&Jt(t).each(function(n){return Yr.splitList(e,n.dom(),t.dom())})},Jr=function(e){$t(e,"dt")&&gr(e,"dd")},Zr=function(e,t,n){"Indent"===t?L(n,Jr):L(n,function(t){return Gr(e,t)})},eo=function(e,t){if(Pn.isTextNode(e))return{container:e,offset:t};var n=Wt.getNode(e,t);return Pn.isTextNode(n)?{container:n,offset:t>=e.childNodes.length?n.data.length:0}:n.previousSibling&&Pn.isTextNode(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&Pn.isTextNode(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:e,offset:t}},to=function(e){var t=e.cloneRange(),n=eo(e.startContainer,e.startOffset);t.setStart(n.container,n.offset);var r=eo(e.endContainer,e.endOffset);return t.setEnd(r.container,r.offset),t},no={getNormalizedPoint:eo,normalizeRange:to},ro=function(e,t){var n=S(Xn.getSelectedListRoots(e),It.fromDom),r=S(Xn.getSelectedDlItems(e),It.fromDom),o=!1;if(n.length||r.length){var i=e.selection.getBookmark();Vr(e,n,t),Zr(e,t,r),e.selection.moveToBookmark(i),e.selection.setRng(no.normalizeRange(e.selection.getRng())),e.nodeChanged(),o=!0}return o},oo=function(e){return ro(e,"Indent")},io=function(e){return ro(e,"Outdent")},uo=function(e){return ro(e,"Flatten")},so=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),ao=Kr.DOM,co=function(e){var t={},n=function(n){var r,o,i;o=e[n?"startContainer":"endContainer"],i=e[n?"startOffset":"endOffset"],1===o.nodeType&&(r=ao.create("span",{"data-mce-type":"bookmark"}),o.hasChildNodes()?(i=Math.min(i,o.childNodes.length-1),n?o.insertBefore(r,o.childNodes[i]):ao.insertAfter(r,o.childNodes[i])):o.appendChild(r),o=r,i=0),t[n?"startContainer":"endContainer"]=o,t[n?"startOffset":"endOffset"]=i};return n(!0),e.collapsed||n(),t},fo=function(e){function t(t){var n,r,o,i=function(e){for(var t=e.parentNode.firstChild,n=0;t;){if(t===e)return n;(1!==t.nodeType||"bookmark"!==t.getAttribute("data-mce-type"))&&n++,t=t.nextSibling}return-1};n=o=e[t?"startContainer":"endContainer"],r=e[t?"startOffset":"endOffset"],n&&(1===n.nodeType&&(r=i(n),n=n.parentNode,ao.remove(o),!n.hasChildNodes()&&ao.isBlock(n)&&n.appendChild(ao.create("br"))),e[t?"startContainer":"endContainer"]=n,e[t?"startOffset":"endOffset"]=r)}t(!0),t();var n=ao.createRng();return n.setStart(e.startContainer,e.startOffset),e.endContainer&&n.setEnd(e.endContainer,e.endOffset),no.normalizeRange(n)},lo={createBookmark:co,resolveBookmark:fo},mo=function(e){return/\btox\-/.test(e.className)},go=function(e){switch(e){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},vo=function(e,t,n){var r=n["list-style-type"]?n["list-style-type"]:null;e.setStyle(t,"list-style-type",r)},po=function(e,t){On.each(t,function(t,n){e.setAttribute(n,t)})},ho=function(e,t,n){po(t,n["list-attributes"]),On.each(e.select("li",t),function(e){po(e,n["list-item-attributes"])})},No=function(e,t,n){vo(e,t,n),ho(e,t,n)},yo=function(e,t,n){On.each(n,function(n){var r;return e.setStyle(t,(r={},r[n]="",r))})},Oo=function(e,t,n,r){var o,i;for(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&&Pn.isBr(o.nextSibling)&&(o=o.nextSibling);o.parentNode!==r;){if(Pn.isTextBlock(e,o))return o;if(/^(TD|TH)$/.test(o.parentNode.nodeName))return o;o=o.parentNode}return o},Co=function(e,t,n){for(var r,o=[],i=e.dom,u=Oo(e,t,!0,n),s=Oo(e,t,!1,n),a=[],c=u;c&&(a.push(c),c!==s);c=c.nextSibling);return On.each(a,function(t){if(Pn.isTextBlock(e,t))return o.push(t),void(r=null);if(i.isBlock(t)||Pn.isBr(t))return Pn.isBr(t)&&i.remove(t),void(r=null);var u=t.nextSibling;return so.isBookmarkNode(t)&&(Pn.isTextBlock(e,u)||!u&&t.parentNode===n)?void(r=null):(r||(r=i.create("p"),t.parentNode.insertBefore(r,t),o.push(r)),void r.appendChild(t))}),o},So=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},Lo=function(e,t,n){void 0===n&&(n={});var r,o=e.selection.getRng(!0),i="LI",u=Xn.getClosestListRootElm(e,e.selection.getStart(!0)),s=e.dom;"false"!==s.getContentEditable(e.selection.getNode())&&(t=t.toUpperCase(),"DL"===t&&(i="DT"),r=lo.createBookmark(o),On.each(Co(e,o,u),function(r){var o,u;u=r.previousSibling,u&&Pn.isListNode(u)&&u.nodeName===t&&So(s,u,n)?(o=u,r=s.rename(r,i),u.appendChild(r)):(o=s.create(t),r.parentNode.insertBefore(o,r),o.appendChild(r),r=s.rename(r,i)),yo(s,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),No(s,o,n),Do(e.dom,o)}),e.selection.setRng(lo.resolveBookmark(r)))},To=function(e,t){return e&&t&&Pn.isListNode(e)&&e.nodeName===t.nodeName},bo=function(e,t,n){var r=e.getStyle(t,"list-style-type",!0),o=e.getStyle(n,"list-style-type",!0);return r===o},ko=function(e,t){return e.className===t.className},Eo=function(e,t,n){return To(t,n)&&bo(e,t,n)&&ko(t,n)},Do=function(e,t){var n,r;if(n=t.nextSibling,Eo(e,t,n)){for(;r=n.firstChild;)t.appendChild(r);e.remove(n)}if(n=t.previousSibling,Eo(e,t,n)){for(;r=n.lastChild;)t.insertBefore(r,t.firstChild);e.remove(n)}},Bo=function(e,t,n,r){if(t.nodeName!==n){var o=e.dom.rename(t,n);No(e.dom,o,r),cn(e,go(n),o)}else No(e.dom,t,r),cn(e,go(n),t)},wo=function(e,t,n,r,o){if(t.nodeName!==r||xo(o)){var i=lo.createBookmark(e.selection.getRng(!0));On.each([t].concat(n),function(t){Bo(e,t,r,o)}),e.selection.setRng(lo.resolveBookmark(i))}else uo(e)},xo=function(e){return"list-style-type"in e},Ao=function(e,t,n,r){if(t!==e.getBody())if(t)if(t.nodeName!==n||xo(r)||mo(t)){var o=lo.createBookmark(e.selection.getRng(!0));No(e.dom,t,r);var i=e.dom.rename(t,n);Do(e.dom,i),e.selection.setRng(lo.resolveBookmark(o)),cn(e,go(n),i)}else uo(e);else Lo(e,n,r),cn(e,go(n),t)},Ro=function(e,t,n){var r=Xn.getParentList(e),o=Xn.getSelectedSubLists(e);n=n?n:{},r&&o.length>0?wo(e,r,o,t,n):Ao(e,r,t,n)},Io={toggleList:Ro,mergeWithAdjacentLists:Do},Po=Kr.DOM,_o=function(e,t){var n,r=t.parentNode;"LI"===r.nodeName&&r.firstChild===t&&(n=r.previousSibling,n&&"LI"===n.nodeName?(n.appendChild(t),Pn.isEmpty(e,r)&&Po.remove(r)):Po.setStyle(r,"listStyleType","none")),Pn.isListNode(r)&&(n=r.previousSibling,n&&"LI"===n.nodeName&&n.appendChild(t))},Mo=function(e,t){On.each(On.grep(e.select("ol,ul",t)),function(t){_o(e,t)})},Uo={normalizeList:_o,normalizeLists:Mo},Fo=function(e,t,n,r){var o=t.startContainer,i=t.startOffset;if(Pn.isTextNode(o)&&(n?i<o.data.length:i>0))return o;var u=e.schema.getNonEmptyElements();1===o.nodeType&&(o=Wt.getNode(o,i));var s=new qt(o,r);for(n&&Pn.isBogusBr(e.dom,o)&&s.next();o=s[n?"next":"prev2"]();){if("LI"===o.nodeName&&!o.hasChildNodes())return o;if(u[o.nodeName])return o;if(Pn.isTextNode(o)&&o.data.length>0)return o}},zo=function(e,t){var n=t.childNodes;return 1===n.length&&!Pn.isListNode(n[0])&&e.isBlock(n[0])},jo=function(e,t){zo(e,t)&&e.remove(t.firstChild,!0)},Ho=function(e,t,n){var r,o;if(o=zo(e,n)?n.firstChild:n,jo(e,t),!Pn.isEmpty(e,t,!0))for(;r=t.firstChild;)o.appendChild(r)},$o=function(e,t,n){var r,o,i=t.parentNode;if(Pn.isChildOfBody(e,t)&&Pn.isChildOfBody(e,n)){Pn.isListNode(n.lastChild)&&(o=n.lastChild),i===n.lastChild&&Pn.isBr(i.previousSibling)&&e.remove(i.previousSibling),r=n.lastChild,r&&Pn.isBr(r)&&t.hasChildNodes()&&e.remove(r),Pn.isEmpty(e,n,!0)&&e.$(n).empty(),Ho(e,t,n),o&&n.appendChild(o);var u=Ht(It.fromDom(n),It.fromDom(t)),s=u?e.getParents(t,Pn.isListNode,n):[];e.remove(t),L(s,function(t){Pn.isEmpty(e,t)&&t!==e.getRoot()&&e.remove(t)})}},Wo=function(e,t,n){e.dom.$(n).empty(),$o(e.dom,t,n),e.selection.setCursorLocation(n)},qo=function(e,t,n,r){var o=e.dom;if(o.isEmpty(r))Wo(e,n,r);else{var i=lo.createBookmark(t);$o(o,n,r),e.selection.setRng(lo.resolveBookmark(i))}},Vo=function(e,t,n,r){var o=lo.createBookmark(t);$o(e.dom,n,r);var i=lo.resolveBookmark(o);e.selection.setRng(i)},Ko=function(e,t){var n=e.dom,r=e.selection,o=r.getStart(),i=Xn.getClosestListRootElm(e,o),u=n.getParent(r.getStart(),"LI",i);if(u){var s=u.parentNode;if(s===e.getBody()&&Pn.isEmpty(n,s))return!0;var a=no.normalizeRange(r.getRng()),c=n.getParent(Fo(e,a,t,i),"LI",i);if(c&&c!==u)return e.undoManager.transact(function(){t?qo(e,a,c,u):Pn.isFirstChild(u)?io(e):Vo(e,a,u,c)}),!0;if(!c&&!t&&0===a.startOffset&&0===a.endOffset)return e.undoManager.transact(function(){uo(e)}),!0}return!1},Qo=function(e,t,n){var r=e.getParent(t.parentNode,e.isBlock,n);e.remove(t),r&&e.isEmpty(r)&&e.remove(r)},Xo=function(e,t){var n=e.dom,r=e.selection.getStart(),o=Xn.getClosestListRootElm(e,r),i=n.getParent(r,n.isBlock,o);if(i&&n.isEmpty(i)){var u=no.normalizeRange(e.selection.getRng()),s=n.getParent(Fo(e,u,t,o),"LI",o);if(s)return e.undoManager.transact(function(){Qo(n,i,o),Io.mergeWithAdjacentLists(n,s.parentNode),e.selection.select(s,!0),e.selection.collapse(t)}),!0}return!1},Yo=function(e,t){return Ko(e,t)||Xo(e,t)},Go=function(e){var t=e.selection.getStart(),n=Xn.getClosestListRootElm(e,t),r=e.dom.getParent(t,"LI,DT,DD",n);return r||Xn.getSelectedListItems(e).length>0?(e.undoManager.transact(function(){e.execCommand("Delete"),Uo.normalizeLists(e.dom,e.getBody())}),!0):!1},Jo=function(e,t){return e.selection.isCollapsed()?Yo(e,t):Go(e)},Zo=function(e){e.on("keydown",function(t){t.keyCode===Vt.BACKSPACE?Jo(e,!1)&&t.preventDefault():t.keyCode===Vt.DELETE&&Jo(e,!0)&&t.preventDefault()})},ei={setup:Zo,backspaceDelete:Jo},ti=function(e){return{backspaceDelete:function(t){ei.backspaceDelete(e,t)}}},ni={get:ti},ri=function(e,t){return function(){var n=e.dom.getParent(e.selection.getStart(),"UL,OL,DL");return n&&n.nodeName===t}},oi=function(e){e.on("BeforeExecCommand",function(t){var n=t.command.toLowerCase();"indent"===n?oo(e):"outdent"===n&&io(e)}),e.addCommand("InsertUnorderedList",function(t,n){Io.toggleList(e,"UL",n)}),e.addCommand("InsertOrderedList",function(t,n){Io.toggleList(e,"OL",n)}),e.addCommand("InsertDefinitionList",function(t,n){Io.toggleList(e,"DL",n)}),e.addCommand("RemoveList",function(){uo(e)}),e.addQueryStateHandler("InsertUnorderedList",ri(e,"UL")),e.addQueryStateHandler("InsertOrderedList",ri(e,"OL")),e.addQueryStateHandler("InsertDefinitionList",ri(e,"DL"))},ii={register:oi},ui=function(e){e.on("keydown",function(t){t.keyCode!==Vt.TAB||Vt.metaKeyPressed(t)||e.undoManager.transact(function(){(t.shiftKey?io(e):oo(e))&&t.preventDefault()})})},si=function(e){Zn.shouldIndentOnTab(e)&&ui(e),ei.setup(e)},ai={setup:si},ci=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return n}return-1},fi=function(e,t){return function(n){var r=function(e){var r=ci(e.parents,Pn.isTableCellNode),o=-1!==r?e.parents.slice(0,r):e.parents,i=On.grep(o,Pn.isListNode);n.setActive(i.length>0&&i[0].nodeName===t&&!mo(i[0]))};return e.on("NodeChange",r),function(){return e.off("NodeChange",r)}}},di=function(e){var t=function(e,t){var n=e.settings.plugins?e.settings.plugins:"";return-1!==On.inArray(n.split(/[ ,]/),t)},n=function(t){return function(){return e.execCommand(t)}};t(e,"advlist")||(e.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:n("InsertOrderedList"),onSetup:fi(e,"OL")}),e.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:n("InsertUnorderedList"),onSetup:fi(e,"UL")}))},li={register:di};t()}(window)});
;/*!node_modules/tinymce/plugins/lists/index.js*/
amis.define("node_modules/tinymce/plugins/lists/index",function(i){i("node_modules/tinymce/plugins/lists/plugin")});
;/*!node_modules/tinymce/plugins/link/plugin.js*/
amis.define("node_modules/tinymce/plugins/link/plugin",function(){!function(t){"use strict";function n(){e.add("link",function(t){Re.setupButtons(t),Re.setupMenuItems(t),Re.setupContextMenu(t),Re.setupContextToolbars(t),be.setupGotoLinks(t),Le.register(t),Oe.setup(t)})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=tinymce.util.Tools.resolve("tinymce.util.VK"),o=function(t){if(null===t)return"null";var n=typeof t;return"object"===n&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===n&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":n},i=function(t){return function(n){return o(n)===t}},u=i("string"),a=i("array"),c=i("boolean"),l=i("function"),f=function(t){var n=t.getParam("link_assume_external_targets",!1);return c(n)&&n?1:!u(n)||"http"!==n&&"https"!==n?0:n},s=function(t){return t.getParam("link_context_toolbar",!1,"boolean")},m=function(t){return t.getParam("link_list")},g=function(t){return t.getParam("default_link_target")},d=function(t){return t.getParam("target_list",!0)},p=function(t){return t.getParam("rel_list",[],"array")},h=function(t){return t.getParam("link_class_list",[],"array")},v=function(t){return t.getParam("link_title",!0,"boolean")},y=function(t){return t.getParam("allow_unsafe_link_target",!1,"boolean")},k=function(t){return t.getParam("link_quicklink",!1,"boolean")},x=function(t){return t.getParam("link_default_protocol","http","string")},T={assumeExternalTargets:f,hasContextToolbar:s,getLinkList:m,getDefaultLinkTarget:g,getTargetList:d,getRelList:p,getLinkClassList:h,shouldShowLinkTitle:v,allowUnsafeLinkTarget:y,useQuickLink:k,getDefaultLinkProtocol:x},w=function(n,e){t.document.body.appendChild(n),n.dispatchEvent(e),t.document.body.removeChild(n)},b=function(n){var e=t.document.createElement("a");e.target="_blank",e.href=n,e.rel="noreferrer noopener";var r=t.document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,t.window,0,0,0,0,0,!1,!1,!1,!1,0,null),w(e,r)},_={open:b},L=function(){return L=Object.assign||function(t){for(var n,e=1,r=arguments.length;r>e;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},L.apply(this,arguments)},A=function(){},O=function(t){return function(){return t}},C=O(!1),E=O(!0),S=function(){return P},P=function(){var t=function(t){return t.isNone()},n=function(t){return t()},e=function(t){return t},r={fold:function(t){return t()},is:C,isSome:C,isNone:E,getOr:e,getOrThunk:n,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:O(null),getOrUndefined:O(void 0),or:e,orThunk:n,map:S,each:A,bind:S,exists:C,forall:E,filter:S,equals:t,equals_:t,toArray:function(){return[]},toString:O("none()")};return Object.freeze&&Object.freeze(r),r}(),R=function(t){var n=O(t),e=function(){return o},r=function(n){return n(t)},o={fold:function(n,e){return e(t)},is:function(n){return t===n},isSome:E,isNone:C,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:e,orThunk:e,map:function(n){return R(n(t))},each:function(n){n(t)},bind:r,exists:r,forall:r,filter:function(n){return n(t)?o:P},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(n){return n.is(t)},equals_:function(n,e){return n.fold(C,function(n){return e(t,n)})}};return o},D=function(t){return null===t||void 0===t?P:R(t)},N={some:R,none:S,from:D},I=Array.prototype.slice,j=Array.prototype.indexOf,F=Array.prototype.push,U=function(t,n){return j.call(t,n)},M=function(t,n){return U(t,n)>-1},z=function(t,n){for(var e=t.length,r=new Array(e),o=0;e>o;o++){var i=t[o];r[o]=n(i,o)}return r},q=function(t,n){for(var e=0,r=t.length;r>e;e++){var o=t[e];n(o,e)}},B=function(t,n,e){return q(t,function(t){e=n(e,t)}),e},K=function(t){for(var n=[],e=0,r=t.length;r>e;++e){if(!a(t[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+t);F.apply(n,t[e])}return n},H=function(t,n){return K(z(t,n))},V=(l(Array.from)?Array.from:function(t){return I.call(t)},function(t,n){for(var e=0;e<t.length;e++){var r=n(t[e],e);if(r.isSome())return r}return N.none()}),W=tinymce.util.Tools.resolve("tinymce.util.Tools"),G=function(t){return/^\w+:/i.test(t)},Q=function(t){var n=t.getAttribute("data-mce-href");return n?n:t.getAttribute("href")},$=function(t,n){var e=["noopener"],r=t?t.split(/\s+/):[],o=function(t){return W.trim(t.sort().join(" "))},i=function(t){return t=u(t),t.length>0?t.concat(e):e},u=function(t){return t.filter(function(t){return-1===W.inArray(e,t)})},a=n?i(r):u(r);return a.length>0?o(a):""},J=function(t){return t.replace(/\uFEFF/g,"")},X=function(t,n){return n=n||t.selection.getNode(),en(n)?t.dom.select("a[href]",n)[0]:t.dom.getParent(n,"a[href]")},Y=function(t,n){var e=n?n.innerText||n.textContent:t.getContent({format:"text"});return J(e)},Z=function(t){return t&&"A"===t.nodeName&&!!Q(t)},tn=function(t){return W.grep(t,Z).length>0},nn=function(t){return!/</.test(t)||/^<a [^>]+>[^<]+<\/a>$/.test(t)&&-1!==t.indexOf("href=")?!0:!1},en=function(t){return t&&"FIGURE"===t.nodeName&&/\bimage\b/i.test(t.className)},rn=function(t){return B(["title","rel","class","target"],function(n,e){return t[e].each(function(t){n[e]=t.length>0?t:null}),n},{href:t.href})},on=function(t,n){return"http"!==n&&"https"!==n||G(t)?t:n+"://"+t},un=function(t,n){var e=L({},n);if(!(T.getRelList(t).length>0)&&T.allowUnsafeLinkTarget(t)===!1){var r=$(e.rel,"_blank"===e.target);e.rel=r?r:null}return N.from(e.target).isNone()&&T.getTargetList(t)===!1&&(e.target=T.getDefaultLinkTarget(t)),e.href=on(e.href,T.assumeExternalTargets(t)),e},an=function(t,n,e,r){e.each(function(t){n.hasOwnProperty("innerText")?n.innerText=t:n.textContent=t}),t.dom.setAttribs(n,r),t.selection.select(n)},cn=function(t,n,e,r){en(n)?mn(t,n,r):e.fold(function(){t.execCommand("mceInsertLink",!1,r)},function(n){t.insertContent(t.dom.createHTML("a",r,t.dom.encode(n)))})},ln=function(t,n,e){var r=t.selection.getNode(),o=X(t,r),i=un(t,rn(e));t.undoManager.transact(function(){e.href===n.href&&n.attach(),o?(t.focus(),an(t,o,e.text,i)):cn(t,r,e.text,i)})},fn=function(t){t.undoManager.transact(function(){var n=t.selection.getNode();if(en(n))sn(t,n);else{var e=t.dom.getParent(n,"a[href]",t.getBody());e&&t.dom.remove(e,!0)}t.focus()})},sn=function(t,n){var e=t.dom.select("img",n)[0];if(e){var r=t.dom.getParents(e,"a[href]",n)[0];r&&(r.parentNode.insertBefore(e,r),t.dom.remove(r))}},mn=function(t,n,e){var r=t.dom.select("img",n)[0];if(r){var o=t.dom.create("a",e);r.parentNode.insertBefore(o,r),o.appendChild(r)}},gn={link:ln,unlink:fn,isLink:Z,hasLinks:tn,getHref:Q,isOnlyTextSelected:nn,getAnchorElement:X,getAnchorText:Y,applyRelTargetRules:$,hasProtocol:G},dn=function(t){for(var n=[],e=function(t){n.push(t)},r=0;r<t.length;r++)t[r].each(e);return n},pn=function(t){return u(t.value)?t.value:""},hn=function(t,n){var e=[];return W.each(t,function(t){var r=u(t.text)?t.text:u(t.title)?t.title:"";if(void 0!==t.menu);else{var o=n(t);e.push({text:r,value:o})}}),e},vn=function(t){return void 0===t&&(t=pn),function(n){return N.from(n).map(function(n){return hn(n,t)})}},yn=function(t){return vn(pn)(t)},kn=function(t,n){return function(e){return{name:t,type:"selectbox",label:n,items:e}}},xn={sanitize:yn,sanitizeWith:vn,createUi:kn,getValue:pn},Tn=function(t){var n=t,e=function(){return n},r=function(t){n=t},o=function(){return Tn(e())};return{get:e,set:r,clone:o}},wn=function(t,n){return V(n,function(n){return N.some(n).filter(function(n){return n.value===t})})},bn=function(t,n,e,r){var o=r[n],i=t.length>0;return void 0!==o?wn(o,e).map(function(n){return{url:{value:n.value,meta:{text:i?t:n.text,attach:A}},text:i?t:n.text}}):N.none()},_n=function(t,n){return"link"===n?t.catalogs.link:"anchor"===n?t.catalogs.anchor:N.none()},Ln=function(t,n){var e=Tn(t.text),r=function(t){if(e.get().length<=0){var n=void 0!==t.url.meta.text?t.url.meta.text:t.url.value,r=void 0!==t.url.meta.title?t.url.meta.title:"";return N.some({text:n,title:r})}return N.none()},o=function(t,r){var o=_n(n,r.name).getOr([]);return bn(e.get(),r.name,o,t)},i=function(t,n){return"url"===n.name?r(t()):M(["anchor","link"],n.name)?o(t(),n):"text"===n.name?(e.set(t().text),N.none()):N.none()};return{onChange:i}},An={init:Ln,getDelta:bn},On={},Cn={exports:On};!function(t,n,e,r){!function(r){if("object"==typeof n&&"undefined"!=typeof e)e.exports=r();else if("function"==typeof t&&t.amd)t([],r);else{var o;o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,o.EphoxContactWrapper=r()}}(function(){return function(){function t(n,e,o){function i(a,c){if(!e[a]){if(!n[a]){var l="function"==typeof r&&r;if(!c&&l)return l(a,!0);if(u)return u(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var s=e[a]={exports:{}};n[a][0].call(s.exports,function(t){var e=n[a][1][t];return i(e||t)},s,s.exports,t,n,e,o)}return e[a].exports}for(var u="function"==typeof r&&r,a=0;a<o.length;a++)i(o[a]);return i}return t}()({1:[function(t,n){function e(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===e||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(n){try{return f.call(null,t,0)}catch(n){return f.call(this,t,0)}}}function i(t){if(s===clearTimeout)return clearTimeout(t);if((s===r||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(t);try{return s(t)}catch(n){try{return s.call(null,t)}catch(n){return s.call(this,t)}}}function u(){p&&g&&(p=!1,g.length?d=g.concat(d):h=-1,d.length&&a())}function a(){if(!p){var t=o(u);p=!0;for(var n=d.length;n;){for(g=d,d=[];++h<n;)g&&g[h].run();h=-1,n=d.length}g=null,p=!1,i(t)}}function c(t,n){this.fun=t,this.array=n}function l(){}var f,s,m=n.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:e}catch(t){f=e}try{s="function"==typeof clearTimeout?clearTimeout:r}catch(t){s=r}}();var g,d=[],p=!1,h=-1;m.nextTick=function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)n[e-1]=arguments[e];d.push(new c(t,n)),1!==d.length||p||o(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=l,m.addListener=l,m.once=l,m.off=l,m.removeListener=l,m.removeAllListeners=l,m.emit=l,m.prependListener=l,m.prependOnceListener=l,m.listeners=function(){return[]},m.binding=function(){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(){throw new Error("process.chdir is not supported")},m.umask=function(){return 0}},{}],2:[function(t,n){(function(t){!function(e){function r(){}function o(t,n){return function(){t.apply(n,arguments)}}function i(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],s(t,this)}function u(t,n){for(;3===t._state;)t=t._value;return 0===t._state?void t._deferreds.push(n):(t._handled=!0,void i._immediateFn(function(){var e=1===t._state?n.onFulfilled:n.onRejected;if(null===e)return void(1===t._state?a:c)(n.promise,t._value);var r;try{r=e(t._value)}catch(o){return void c(n.promise,o)}a(n.promise,r)}))}function a(t,n){try{if(n===t)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var e=n.then;if(n instanceof i)return t._state=3,t._value=n,void l(t);if("function"==typeof e)return void s(o(e,n),t)}t._state=1,t._value=n,l(t)}catch(r){c(t,r)}}function c(t,n){t._state=2,t._value=n,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value)});for(var n=0,e=t._deferreds.length;e>n;n++)u(t,t._deferreds[n]);t._deferreds=null}function f(t,n,e){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.promise=e}function s(t,n){var e=!1;try{t(function(t){e||(e=!0,a(n,t))},function(t){e||(e=!0,c(n,t))})}catch(r){if(e)return;e=!0,c(n,r)}}var m=setTimeout;i.prototype["catch"]=function(t){return this.then(null,t)},i.prototype.then=function(t,n){var e=new this.constructor(r);return u(this,new f(t,n,e)),e},i.all=function(t){var n=Array.prototype.slice.call(t);return new i(function(t,e){function r(i,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var a=u.then;if("function"==typeof a)return void a.call(u,function(t){r(i,t)},e)}n[i]=u,0===--o&&t(n)}catch(c){e(c)}}if(0===n.length)return t([]);for(var o=n.length,i=0;i<n.length;i++)r(i,n[i])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(n){n(t)})},i.reject=function(t){return new i(function(n,e){e(t)})},i.race=function(t){return new i(function(n,e){for(var r=0,o=t.length;o>r;r++)t[r].then(n,e)})},i._immediateFn="function"==typeof t?function(n){t(n)}:function(t){m(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},i._setImmediateFn=function(t){i._immediateFn=t},i._setUnhandledRejectionFn=function(t){i._unhandledRejectionFn=t},"undefined"!=typeof n&&n.exports?n.exports=i:e.Promise||(e.Promise=i)}(this)}).call(this,t("timers").setImmediate)},{timers:3}],3:[function(t,n,e){(function(n,r){function o(t,n){this._id=t,this._clearFn=n}var i=t("process/browser.js").nextTick,u=Function.prototype.apply,a=Array.prototype.slice,c={},l=0;e.setTimeout=function(){return new o(u.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new o(u.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,n){clearTimeout(t._idleTimeoutId),t._idleTimeout=n},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var n=t._idleTimeout;n>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},n))},e.setImmediate="function"==typeof n?n:function(t){var n=l++,r=arguments.length<2?!1:a.call(arguments,1);return c[n]=!0,i(function(){c[n]&&(r?t.apply(null,r):t.call(null),e.clearImmediate(n))}),n},e.clearImmediate="function"==typeof r?r:function(t){delete c[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(t,n){var e=t("promise-polyfill"),r=function(){return"undefined"!=typeof window?window:Function("return this;")()}();n.exports={boltExport:r.Promise||e}},{"promise-polyfill":2}]},{},[4])(4)})}(void 0,On,Cn,void 0);var En=Cn.exports.boltExport,Sn=function(n){var e=N.none(),r=[],o=function(t){return Sn(function(n){i(function(e){n(t(e))})})},i=function(t){a()?l(t):r.push(t)},u=function(t){e=N.some(t),c(r),r=[]},a=function(){return e.isSome()},c=function(t){q(t,l)},l=function(n){e.each(function(e){t.setTimeout(function(){n(e)},0)})};return n(u),{get:i,map:o,isReady:a}},Pn=function(t){return Sn(function(n){n(t)})},Rn={nu:Sn,pure:Pn},Dn=function(n){t.setTimeout(function(){throw n},0)},Nn=function(t){var n=function(n){t().then(n,Dn)},e=function(n){return Nn(function(){return t().then(n)})},r=function(n){return Nn(function(){return t().then(function(t){return n(t).toPromise()})})},o=function(n){return Nn(function(){return t().then(function(){return n.toPromise()})})},i=function(){return Rn.nu(n)},u=function(){var n=null;return Nn(function(){return null===n&&(n=t()),n})},a=t;return{map:e,bind:r,anonBind:o,toLazy:i,toCached:u,toPromise:a,get:n}},In=function(t){return Nn(function(){return new En(t)})},jn=function(t){return Nn(function(){return En.resolve(t)})},Fn={nu:In,pure:jn},Un=tinymce.util.Tools.resolve("tinymce.util.Delay"),Mn=function(t,n,e){var r=t.selection.getRng();Un.setEditorTimeout(t,function(){t.windowManager.confirm(n,function(n){t.selection.setRng(r),e(n)})})},zn=function(t){var n=t.href,e=n.indexOf("@")>0&&-1===n.indexOf("//")&&-1===n.indexOf("mailto:");return e?N.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(t){return L(L({},t),{href:"mailto:"+n})}}):N.none()},qn=function(t,n){return function(e){var r=e.href,o=1===t&&!gn.hasProtocol(r)||0===t&&/^\s*www[\.|\d\.]/i.test(r);return o?N.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+n+":// prefix?",preprocess:function(t){return L(L({},t),{href:n+"://"+r})}}):N.none()}},Bn=function(t,n){return V([zn,qn(T.assumeExternalTargets(t),T.getDefaultLinkProtocol(t))],function(t){return t(n)}).fold(function(){return Fn.pure(n)},function(e){return Fn.nu(function(r){Mn(t,e.message,function(t){r(t?e.preprocess(n):n)})})})},Kn={preprocess:Bn},Hn=function(t){var n=t.dom.select("a:not([href])"),e=H(n,function(t){var n=t.name||t.id;return n?[{text:n,value:"#"+n}]:[]});return e.length>0?N.some([{text:"None",value:""}].concat(e)):N.none()},Vn={getAnchors:Hn},Wn=function(t){var n=T.getLinkClassList(t);return n.length>0?xn.sanitize(n):N.none()},Gn={getClasses:Wn},Qn=tinymce.util.Tools.resolve("tinymce.util.XHR"),$n=function(t){try{return N.some(JSON.parse(t))}catch(n){return N.none()}},Jn=function(t){var n=function(n){return t.convertURL(n.value||n.url,"href")},e=T.getLinkList(t);return Fn.nu(function(t){u(e)?Qn.send({url:e,success:function(n){return t($n(n))},error:function(){return t(N.none())}}):l(e)?e(function(n){return t(N.some(n))}):t(N.from(e))}).map(function(t){return t.bind(xn.sanitizeWith(n)).map(function(t){return t.length>0?[{text:"None",value:""}].concat(t):t})})},Xn={getLinks:Jn},Yn=function(t,n){var e=T.getRelList(t);if(e.length>0){var r=n.is("_blank"),o=T.allowUnsafeLinkTarget(t)===!1,i=function(t){return gn.applyRelTargetRules(xn.getValue(t),r)},u=o?xn.sanitizeWith(i):xn.sanitize;return u(e)}return N.none()},Zn={getRels:Yn},te=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],ne=function(t){var n=T.getTargetList(t);return a(n)?xn.sanitize(n).orThunk(function(){return N.some(te)}):n===!1?N.none():N.some(te)},ee={getTargets:ne},re=function(t,n,e){var r=t.getAttrib(n,e);return null!==r&&r.length>0?N.some(r):N.none()},oe=function(t,n){var e=t.dom,r=gn.isOnlyTextSelected(t.selection.getContent()),o=r?N.some(gn.getAnchorText(t.selection,n)):N.none(),i=n?N.some(e.getAttrib(n,"href")):N.none(),u=n?N.from(e.getAttrib(n,"target")):N.none(),a=re(e,n,"rel"),c=re(e,n,"class"),l=re(e,n,"title");return{url:i,text:o,title:l,target:u,rel:a,linkClass:c}},ie=function(t,n){return Xn.getLinks(t).map(function(e){var r=oe(t,n);return{anchor:r,catalogs:{targets:ee.getTargets(t),rels:Zn.getRels(t,r.target),classes:Gn.getClasses(t),anchor:Vn.getAnchors(t),link:e},optNode:N.from(n),flags:{titleEnabled:T.shouldShowLinkTitle(t)}}})},ue={collect:ie},ae=function(t,n){return function(e){var r=e.getData();if(!r.url.value)return gn.unlink(t),void e.close();var o=function(t){return N.from(r[t]).filter(function(e){return!n.anchor[t].is(e)})},i={href:r.url.value,text:o("text"),target:o("target"),rel:o("rel"),"class":o("linkClass"),title:o("title")},u={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:function(){}};Kn.preprocess(t,i).get(function(n){gn.link(t,u,n)}),e.close()}},ce=function(t){var n=gn.getAnchorElement(t);return ue.collect(t,n)},le=function(t,n){return{url:{value:t.anchor.url.getOr(""),meta:{attach:function(){},text:t.anchor.url.fold(function(){return""},function(){return t.anchor.text.getOr("")}),original:{value:t.anchor.url.getOr("")}}},text:t.anchor.text.getOr(""),title:t.anchor.title.getOr(""),anchor:t.anchor.url.getOr(""),link:t.anchor.url.getOr(""),rel:t.anchor.rel.getOr(""),target:t.anchor.target.or(n).getOr(""),linkClass:t.anchor.linkClass.getOr("")}},fe=function(t,n,e){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],o=t.anchor.text.map(function(){return{name:"text",type:"input",label:"Text to display"}}).toArray(),i=t.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],u=N.from(T.getDefaultLinkTarget(e)),a=le(t,u),c=An.init(a,t),l=t.catalogs,f={type:"panel",items:K([r,o,i,dn([l.anchor.map(xn.createUi("anchor","Anchors")),l.rels.map(xn.createUi("rel","Rel")),l.targets.map(xn.createUi("target","Open link in...")),l.link.map(xn.createUi("link","Link list")),l.classes.map(xn.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:f,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:a,onChange:function(t,n){var e=n.name;c.onChange(t.getData,{name:e}).each(function(n){t.setData(n)})},onSubmit:n}},se=function(t){var n=ce(t);n.map(function(n){var e=ae(t,n);return fe(n,e,t)}).get(function(n){t.windowManager.open(n)})},me={open:se},ge=function(t,n){return t.dom.getParent(n,"a[href]")},de=function(t){return ge(t,t.selection.getStart())},pe=function(t){return t.altKey===!0&&t.shiftKey===!1&&t.ctrlKey===!1&&t.metaKey===!1},he=function(t,n){if(n){var e=gn.getHref(n);if(/^#/.test(e)){var r=t.$(e);r.length&&t.selection.scrollIntoView(r[0],!0)}else _.open(n.href)}},ve=function(t){return function(){me.open(t)}},ye=function(t){return function(){he(t,de(t))}},ke=function(t){return function(n){var e,r,o;return T.hasContextToolbar(t)&&gn.isLink(n)&&(e=t.selection,r=e.getRng(),o=r.startContainer,3===o.nodeType&&e.isCollapsed()&&r.startOffset>0&&r.startOffset<o.data.length)?!0:!1}},xe=function(t){t.on("click",function(n){var e=ge(t,n.target);e&&r.metaKeyPressed(n)&&(n.preventDefault(),he(t,e))}),t.on("keydown",function(n){var e=de(t);e&&13===n.keyCode&&pe(n)&&(n.preventDefault(),he(t,e))})},Te=function(t){return function(n){var e=function(e){return n.setActive(!t.mode.isReadOnly()&&!!gn.getAnchorElement(t,e.element))};return t.on("NodeChange",e),function(){return t.off("NodeChange",e)}}},we=function(t){return function(n){var e=t.dom.getParents(t.selection.getStart());n.setDisabled(!gn.hasLinks(e));var r=function(t){return n.setDisabled(!gn.hasLinks(t.parents))};return t.on("NodeChange",r),function(){return t.off("NodeChange",r)}}},be={openDialog:ve,gotoSelectedLink:ye,leftClickedOnAHref:ke,setupGotoLinks:xe,toggleActiveState:Te,toggleEnabledState:we},_e=function(t){t.addCommand("mceLink",function(){T.useQuickLink(t)?t.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):be.openDialog(t)()})},Le={register:_e},Ae=function(t){t.addShortcut("Meta+K","",function(){t.execCommand("mceLink")})},Oe={setup:Ae},Ce=function(t){t.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:be.openDialog(t),onSetup:be.toggleActiveState(t)}),t.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:be.gotoSelectedLink(t),onSetup:be.toggleEnabledState(t)}),t.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return gn.unlink(t)},onSetup:be.toggleEnabledState(t)})},Ee=function(t){t.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:be.gotoSelectedLink(t),onSetup:be.toggleEnabledState(t)}),t.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:be.openDialog(t)}),t.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return gn.unlink(t)},onSetup:be.toggleEnabledState(t)})},Se=function(t){var n="link unlink openlink",e="link";t.ui.registry.addContextMenu("link",{update:function(r){return gn.hasLinks(t.dom.getParents(r,"a"))?n:e}})},Pe=function(t){var n=function(t){t.selection.collapse(!1)},e=function(n){var e=t.selection.getNode();return n.setDisabled(!gn.getAnchorElement(t,e)),function(){}};t.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:be.toggleActiveState(t)},label:"Link",predicate:function(n){return!!gn.getAnchorElement(t,n)&&T.hasContextToolbar(t)},initValue:function(){var n=gn.getAnchorElement(t);return n?gn.getHref(n):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(n){var e=t.selection.getNode();return n.setActive(!!gn.getAnchorElement(t,e)),be.toggleActiveState(t)(n)},onAction:function(e){var r=gn.getAnchorElement(t),o=e.getValue();if(r)t.dom.setAttrib(r,"href",o),n(t),e.hide();else{var i={href:o,attach:function(){}},u=gn.isOnlyTextSelected(t.selection.getContent()),a=u?N.some(gn.getAnchorText(t.selection,r)).filter(function(t){return t.length>0}).or(N.from(o)):N.none();gn.link(t,i,{href:o,text:a,title:N.none(),rel:N.none(),target:N.none(),"class":N.none()}),e.hide()}}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:e,onAction:function(n){gn.unlink(t),n.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:e,onAction:function(n){be.gotoSelectedLink(t)(),n.hide()}}]})},Re={setupButtons:Ce,setupMenuItems:Ee,setupContextMenu:Se,setupContextToolbars:Pe};n()}(window)});
;/*!node_modules/tinymce/plugins/link/index.js*/
amis.define("node_modules/tinymce/plugins/link/index",function(n){n("node_modules/tinymce/plugins/link/plugin")});
;/*!node_modules/tinymce/plugins/image/plugin.js*/
amis.define("node_modules/tinymce/plugins/image/plugin",function(){!function(e){"use strict";function t(t){var n=function(n,r,i,o){var a,u;a=new e.XMLHttpRequest,a.open("POST",t.url),a.withCredentials=t.credentials,a.upload.onprogress=function(e){o(e.loaded/e.total*100)},a.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){var e;return a.status<200||a.status>=300?void i("HTTP Error: "+a.status):(e=JSON.parse(a.responseText),e&&"string"==typeof e.location?void r(Fn(t.basePath,e.location)):void i("Invalid JSON: "+a.responseText))},u=new e.FormData,u.append("file",n.blob(),n.filename()),a.send(u)},r=function(e,t){return new dt(function(n,r){try{t(e,n,r,i)}catch(o){r(o.message)}})},o=function(e){return e===n},a=function(e){return!t.url&&o(t.handler)?dt.reject("Upload url missing from the settings."):r(e,t.handler)};return t=Sn.extend({credentials:!1,handler:n},t),{upload:a}}function n(){r.add("image",function(e){Pr.setup(e),Lr.register(e),Or.register(e)})}var r=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(){},o=function(e){return function(){return e}},a=function(e){return e},u=function(e){return function(){throw new Error(e)}},c=o(!1),s=o(!0),l=function(){return f},f=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e){return e()},is:c,isSome:c,isNone:s,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:n,orThunk:t,map:l,each:i,bind:l,exists:c,forall:s,filter:l,equals:e,equals_:e,toArray:function(){return[]},toString:o("none()")};return Object.freeze&&Object.freeze(r),r}(),d=function(e){var t=o(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:s,isNone:c,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return d(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:f},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(c,function(t){return n(e,t)})}};return i},m=function(e){return null===e||void 0===e?f:d(e)},p={some:d,none:l,from:m},g=function(e){if(null===e)return"null";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},h=function(e){return function(t){return g(t)===e}},v=h("string"),b=h("object"),y=h("array"),T=h("boolean"),w=h("function"),_=h("number"),D=Array.prototype.slice,x=Array.prototype.push,E=function(e,t){for(var n=0,r=e.length;r>n;n++){var i=e[n];t(i,n)}},A=function(e){for(var t=[],n=0,r=e.length;r>n;++n){if(!y(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);x.apply(t,e[n])}return t},N=function(e){return 0===e.length?p.none():p.some(e[0])},O=(w(Array.from)?Array.from:function(e){return D.call(e)},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()}),I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},I.apply(this,arguments)},S={},U={exports:S};!function(e,t,n,r){!function(r){if("object"==typeof t&&"undefined"!=typeof n)n.exports=r();else if("function"==typeof e&&e.amd)e([],r);else{var i;i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,i.EphoxContactWrapper=r()}}(function(){return function(){function e(t,n,i){function o(u,c){if(!n[u]){if(!t[u]){var s="function"==typeof r&&r;if(!c&&s)return s(u,!0);if(a)return a(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[u]={exports:{}};t[u][0].call(f.exports,function(e){var n=t[u][1][e];return o(n||e)},f,f.exports,e,t,n,i)}return n[u].exports}for(var a="function"==typeof r&&r,u=0;u<i.length;u++)o(i[u]);return o}return e}()({1:[function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){g&&m&&(g=!1,m.length?p=m.concat(p):h=-1,p.length&&u())}function u(){if(!g){var e=i(a);g=!0;for(var t=p.length;t;){for(m=p,p=[];++h<t;)m&&m[h].run();h=-1,t=p.length}m=null,g=!1,o(e)}}function c(e,t){this.fun=e,this.array=t}function s(){}var l,f,d=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var m,p=[],g=!1,h=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new c(e,t)),1!==p.length||g||i(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=s,d.addListener=s,d.once=s,d.off=s,d.removeListener=s,d.removeAllListeners=s,d.emit=s,d.prependListener=s,d.prependOnceListener=s,d.listeners=function(){return[]},d.binding=function(){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],2:[function(e,t){(function(e){!function(n){function r(){}function i(e,t){return function(){e.apply(t,arguments)}}function o(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){for(;3===e._state;)e=e._value;return 0===e._state?void e._deferreds.push(t):(e._handled=!0,void o._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._state?u:c)(t.promise,e._value);var r;try{r=n(e._value)}catch(i){return void c(t.promise,i)}u(t.promise,r)}))}function u(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 o)return e._state=3,e._value=t,void s(e);if("function"==typeof n)return void f(i(n,t),e)}e._state=1,e._value=t,s(e)}catch(r){c(e,r)}}function c(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;n>t;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,u(t,e))},function(e){n||(n=!0,c(t,e))})}catch(r){if(n)return;n=!0,c(t,r)}}var d=setTimeout;o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},o.all=function(e){var t=Array.prototype.slice.call(e);return new o(function(e,n){function r(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,function(e){r(o,e)},n)}t[o]=a,0===--i&&e(t)}catch(c){n(c)}}if(0===t.length)return e([]);for(var i=t.length,o=0;o<t.length;o++)r(o,t[o])})},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o(function(t){t(e)})},o.reject=function(e){return new o(function(t,n){n(e)})},o.race=function(e){return new o(function(t,n){for(var r=0,i=e.length;i>r;r++)e[r].then(t,n)})},o._immediateFn="function"==typeof e?function(t){e(t)}:function(e){d(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},"undefined"!=typeof t&&t.exports?t.exports=o:n.Promise||(n.Promise=o)}(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(e,t,n){(function(t,r){function i(e,t){this._id=e,this._clearFn=t}var o=e("process/browser.js").nextTick,a=Function.prototype.apply,u=Array.prototype.slice,c={},s=0;n.setTimeout=function(){return new i(a.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new i(a.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n.setImmediate="function"==typeof t?t:function(e){var t=s++,r=arguments.length<2?!1:u.call(arguments,1);return c[t]=!0,o(function(){c[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))}),t},n.clearImmediate="function"==typeof r?r:function(e){delete c[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t){var n=e("promise-polyfill"),r=function(){return"undefined"!=typeof window?window:Function("return this;")()}();t.exports={boltExport:r.Promise||n}},{"promise-polyfill":2}]},{},[4])(4)})}(void 0,S,U,void 0);var P=U.exports.boltExport,C=function(t){var n=p.none(),r=[],i=function(e){return C(function(t){o(function(n){t(e(n))})})},o=function(e){u()?s(e):r.push(e)},a=function(e){n=p.some(e),c(r),r=[]},u=function(){return n.isSome()},c=function(e){E(e,s)},s=function(t){n.each(function(n){e.setTimeout(function(){t(n)},0)})};return t(a),{get:o,map:i,isReady:u}},L=function(e){return C(function(t){t(e)})},R={nu:C,pure:L},M=function(t){e.setTimeout(function(){throw t},0)},j=function(e){var t=function(t){e().then(t,M)},n=function(t){return j(function(){return e().then(t)})},r=function(t){return j(function(){return e().then(function(e){return t(e).toPromise()})})},i=function(t){return j(function(){return e().then(function(){return t.toPromise()})})},o=function(){return R.nu(t)},a=function(){var t=null;return j(function(){return null===t&&(t=e()),t})},u=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:u,get:t}},k=function(e){return j(function(){return new P(e)})},F=function(e){return j(function(){return P.resolve(e)})},z={nu:k,pure:F},H=function(e){var t=function(t){return e===t},n=function(){return H(e)},r=function(){return H(e)},i=function(t){return H(t(e))},a=function(){return H(e)},u=function(t){t(e)},l=function(t){return t(e)},f=function(t,n){return n(e)},d=function(t){return t(e)},m=function(t){return t(e)},g=function(){return p.some(e)};return{is:t,isValue:s,isError:c,getOr:o(e),getOrThunk:o(e),getOrDie:o(e),or:n,orThunk:r,fold:f,map:i,mapError:a,each:u,bind:l,exists:d,forall:m,toOption:g}},B=function(e){var t=function(e){return e()},n=function(){return u(String(e))()},r=function(e){return e},o=function(e){return e()},l=function(){return B(e)},f=function(t){return B(t(e))},d=function(){return B(e)},m=function(t){return t(e)};return{is:c,isValue:c,isError:s,getOr:a,getOrThunk:t,getOrDie:n,or:r,orThunk:o,fold:m,map:l,mapError:f,each:i,bind:d,exists:c,forall:s,toOption:p.none}},G=function(e,t){return e.fold(function(){return B(t)},H)},W={value:H,error:B,fromOption:G},q=function(t){var n=function(){return q(t.toCached())},r=function(e){return q(t.bind(function(t){return t.fold(function(e){return z.pure(W.error(e))},function(t){return e(t)})}))},i=function(e){return q(t.map(function(t){return t.bind(e)}))},o=function(e){return q(t.map(function(t){return t.map(e)}))},a=function(e){return q(t.map(function(t){return t.mapError(e)}))},u=function(e,n){return t.map(function(t){return t.fold(e,n)})},c=function(n,r){return q(z.nu(function(i){var o=!1,a=e.setTimeout(function(){o=!0,i(W.error(r()))},n);t.get(function(t){o||(e.clearTimeout(a),i(t))})}))};return I(I({},t),{toCached:n,bindFuture:r,bindResult:i,mapResult:o,mapError:a,foldResult:u,withTimeout:c})},V=function(e){return q(z.nu(e))},X=function(e){return q(z.pure(W.value(e)))},$=function(e){return q(z.pure(W.error(e)))},J=function(e){return q(z.pure(e))},Y=function(e){return q(e.map(W.value))},K=function(e){return V(function(t){e.then(function(e){t(W.value(e))},function(e){t(W.error(e))})})},Z={nu:V,wrap:q,pure:X,value:X,error:$,fromResult:J,fromFuture:Y,fromPromise:K},Q=Object.prototype.hasOwnProperty,et=function(e,t){var n=b(e)&&b(t);return n?nt(e,t):t},tt=function(e){return function(){for(var t=new Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)Q.call(o,a)&&(r[a]=e(r[a],o[a]))}return r}},nt=tt(et),rt=(e.Node.ATTRIBUTE_NODE,e.Node.CDATA_SECTION_NODE,e.Node.COMMENT_NODE,e.Node.DOCUMENT_NODE,e.Node.DOCUMENT_TYPE_NODE,e.Node.DOCUMENT_FRAGMENT_NODE,e.Node.ELEMENT_NODE,e.Node.TEXT_NODE,e.Node.PROCESSING_INSTRUCTION_NODE,e.Node.ENTITY_REFERENCE_NODE,e.Node.ENTITY_NODE,e.Node.NOTATION_NODE,"undefined"!=typeof e.window?e.window:Function("return this;")(),function(t,n,r){if(!(v(r)||T(r)||_(r)))throw e.console.error("Invalid call to Attr.set. Key ",n,":: Value ",r,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(n,r+"")}),it=function(e,t,n){rt(e.dom(),t,n)},ot=function(t,n){var r=n||e.document,i=r.createElement("div");if(i.innerHTML=t,!i.hasChildNodes()||i.childNodes.length>1)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return ct(i.childNodes[0])},at=function(t,n){var r=n||e.document,i=r.createElement(t);return ct(i)},ut=function(t,n){var r=n||e.document,i=r.createTextNode(t);return ct(i)},ct=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:o(e)}},st=function(e,t,n){var r=e.dom();return p.from(r.elementFromPoint(t,n)).map(ct)},lt={fromHtml:ot,fromTag:at,fromText:ut,fromDom:ct,fromPoint:st},ft=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),dt=tinymce.util.Tools.resolve("tinymce.util.Promise"),mt=tinymce.util.Tools.resolve("tinymce.util.XHR"),pt=function(e){return e.getParam("image_dimensions",!0,"boolean")},gt=function(e){return e.getParam("image_advtab",!1,"boolean")},ht=function(e){return e.getParam("image_uploadtab",!0,"boolean")},vt=function(e){return e.getParam("image_prepend_url","","string")},bt=function(e){return e.getParam("image_class_list")},yt=function(e){return e.getParam("image_description",!0,"boolean")},Tt=function(e){return e.getParam("image_title",!1,"boolean")},wt=function(e){return e.getParam("image_caption",!1,"boolean")},_t=function(e){return e.getParam("image_list",!1)},Dt=function(e){return!!Et(e)},xt=function(e){return!!At(e)},Et=function(e){return e.getParam("images_upload_url","","string")},At=function(e){return e.getParam("images_upload_handler",void 0,"function")},Nt=function(e){return e.getParam("images_upload_base_path",void 0,"string")},Ot=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},It=function(e){return e.getParam("a11y_advanced_options",!1,"boolean")},St=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Ut={hasDimensions:pt,hasUploadTab:ht,hasAdvTab:gt,getPrependUrl:vt,getClassList:bt,hasDescription:yt,hasImageTitle:Tt,hasImageCaption:wt,getImageList:_t,hasUploadUrl:Dt,hasUploadHandler:xt,getUploadUrl:Et,getUploadHandler:At,getUploadBasePath:Nt,getUploadCredentials:Ot,showAccessibilityOptions:It,isAutomaticUploadsEnabled:St},Pt=function(e,t){return Math.max(parseInt(e,10),parseInt(t,10))},Ct=function(t,n){var r=e.document.createElement("img"),i=function(e){r.parentNode&&r.parentNode.removeChild(r),n(e)};r.onload=function(){var e=Pt(r.width,r.clientWidth),t=Pt(r.height,r.clientHeight),n={width:e,height:t};i(W.value(n))},r.onerror=function(){i(W.error("Failed to get image dimensions for: "+t))};var o=r.style;o.visibility="hidden",o.position="fixed",o.bottom=o.left="0px",o.width=o.height="auto",e.document.body.appendChild(r),r.src=t},Lt=function(e){return e&&(e=e.replace(/px$/,"")),e},Rt=function(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e},Mt=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},jt=function(e,t){var n=Ut.getImageList(e);"string"==typeof n?mt.send({url:n,success:function(e){t(JSON.parse(e))}}):"function"==typeof n?n(t):t(n)},kt=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||!Ut.hasDimensions(e)||e.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},Ft=function(t){return new dt(function(n,r){var i=new e.FileReader;i.onload=function(){n(i.result)},i.onerror=function(){r(i.error.message)},i.readAsDataURL(t)})},zt=function(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))},Ht={getImageSize:Ct,removePixelSuffix:Lt,addPixelSuffix:Rt,mergeMargins:Mt,createImageList:jt,waitLoadImage:kt,blobToDataUri:Ft,isPlaceholderImage:zt},Bt=ft.DOM,Gt=function(e){return e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?Ht.removePixelSuffix(e.style.marginLeft):""},Wt=function(e){return e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?Ht.removePixelSuffix(e.style.marginTop):""},qt=function(e){return e.style.borderWidth?Ht.removePixelSuffix(e.style.borderWidth):""},Vt=function(e,t){return e.hasAttribute(t)?e.getAttribute(t):""},Xt=function(e,t){return e.style[t]?e.style[t]:""},$t=function(e){return null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName},Jt=function(e,t,n){e.setAttribute(t,n)},Yt=function(e){var t=Bt.create("figure",{"class":"image"});Bt.insertAfter(t,e),t.appendChild(e),t.appendChild(Bt.create("figcaption",{contentEditable:"true"},"Caption")),t.contentEditable="false"},Kt=function(e){var t=e.parentNode;Bt.insertAfter(e,t),Bt.remove(t)},Zt=function(e){$t(e)?Kt(e):Yt(e)},Qt=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")},en=function(e,t){return function(e,n,r){e.style[n]?(e.style[n]=Ht.addPixelSuffix(r),Qt(e,t)):Jt(e,n,r)}},tn=function(e,t){return e.style[t]?Ht.removePixelSuffix(e.style[t]):Vt(e,t)},nn=function(e,t){var n=Ht.addPixelSuffix(t);e.style.marginLeft=n,e.style.marginRight=n},rn=function(e,t){var n=Ht.addPixelSuffix(t);e.style.marginTop=n,e.style.marginBottom=n},on=function(e,t){var n=Ht.addPixelSuffix(t);e.style.borderWidth=n},an=function(e,t){e.style.borderStyle=t},un=function(e){return Xt(e,"borderStyle")},cn=function(e){return"FIGURE"===e.nodeName},sn=function(e){return"IMG"===e.nodeName},ln=function(e){return 0===Bt.getAttrib(e,"alt").length&&"presentation"===Bt.getAttrib(e,"role")},fn=function(e){return ln(e)?"":Vt(e,"alt")},dn=function(){return{src:"",alt:"",title:"",width:"",height:"","class":"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},mn=function(t,n){var r=e.document.createElement("img");return Jt(r,"style",n.style),(Gt(r)||""!==n.hspace)&&nn(r,n.hspace),(Wt(r)||""!==n.vspace)&&rn(r,n.vspace),(qt(r)||""!==n.border)&&on(r,n.border),(un(r)||""!==n.borderStyle)&&an(r,n.borderStyle),t(r.getAttribute("style"))},pn=function(t,n,r){var i=e.document.createElement("img");if(Tn(t,I(I({},n),{caption:!1}),i,r),vn(i,n.alt,n.isDecorative,r),n.caption){var o=Bt.create("figure",{"class":"image"});return o.appendChild(i),o.appendChild(Bt.create("figcaption",{contentEditable:"true"},"Caption")),o.contentEditable="false",o}return i},gn=function(e,t){return{src:Vt(t,"src"),alt:fn(t),title:Vt(t,"title"),width:tn(t,"width"),height:tn(t,"height"),"class":Vt(t,"class"),style:e(Vt(t,"style")),caption:$t(t),hspace:Gt(t),vspace:Wt(t),border:qt(t),borderStyle:Xt(t,"borderStyle"),isDecorative:ln(t)}},hn=function(e,t,n,r,i){n[r]!==t[r]&&i(e,r,n[r])},vn=function(e,t,n,r){if(n){Bt.setAttrib(e,"role","presentation");var i=lt.fromDom(e);it(i,"alt","")}else{if(r.hasAccessibilityOptions)Bt.setAttrib(e,"alt",t);else{var i=lt.fromDom(e);it(i,"alt",t)}"presentation"===Bt.getAttrib(e,"role")&&Bt.setAttrib(e,"role","")}},bn=function(e,t,n,r){(n.alt!==t.alt||n.isDecorative!==t.isDecorative)&&vn(e,n.alt,n.isDecorative,r)},yn=function(e,t){return function(n,r,i){e(n,i),Qt(n,t)}},Tn=function(e,t,n,r){var i=gn(e,n);hn(n,i,t,"caption",function(e){return Zt(e)}),hn(n,i,t,"src",Jt),hn(n,i,t,"title",Jt),hn(n,i,t,"width",en("width",e)),hn(n,i,t,"height",en("height",e)),hn(n,i,t,"class",Jt),hn(n,i,t,"style",yn(function(e,t){return Jt(e,"style",t)},e)),hn(n,i,t,"hspace",yn(nn,e)),hn(n,i,t,"vspace",yn(rn,e)),hn(n,i,t,"border",yn(on,e)),hn(n,i,t,"borderStyle",yn(an,e)),bn(n,i,t,r)},wn=function(e,t){var n=e.dom.styles.parse(t),r=Ht.mergeMargins(n),i=e.dom.styles.parse(e.dom.styles.serialize(r));return e.dom.styles.serialize(i)},_n=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||Ht.isPlaceholderImage(t))?null:t},Dn=function(e,t){var n=e.dom,r=n.getParent(t.parentNode,function(t){return!!e.schema.getTextBlockElements()[t.nodeName]},e.getBody());return r?n.split(r,t):t},xn=function(e){var t=_n(e);return t?gn(function(t){return wn(e,t)},t):dn()},En=function(e,t,n){var r=pn(function(t){return wn(e,t)},t,n);e.dom.setAttrib(r,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(r.outerHTML);var i=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(i,"data-mce-id",null),cn(i)){var o=Dn(e,i);e.selection.select(o)}else e.selection.select(i)},An=function(e,t){e.dom.setAttrib(t,"src",t.getAttribute("src"))},Nn=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())}},On=function(e,t,n){var r=_n(e);if(Tn(function(t){return wn(e,t)},t,r,n),An(e,r),cn(r.parentNode)){var i=r.parentNode;Dn(e,i),e.selection.select(r.parentNode)}else e.selection.select(r),Ht.waitLoadImage(e,t,r)},In=function(e,t,n){var r=_n(e);r?t.src?On(e,t,n):Nn(e,r):t.src&&En(e,t,n)},Sn=tinymce.util.Tools.resolve("tinymce.util.Tools"),Un=function(e){return v(e.value)?e.value:""},Pn=function(e,t){var n=[];return Sn.each(e,function(e){var r=v(e.text)?e.text:v(e.title)?e.title:"";if(void 0!==e.menu){var i=Pn(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}}),n},Cn=function(e){return void 0===e&&(e=Un),function(t){return t?p.from(t).map(function(t){return Pn(t,e)}):p.none()}},Ln=function(e){return Cn(Un)(e)},Rn=function(e){return Object.prototype.hasOwnProperty.call(e,"items")},Mn=function(e,t){return O(e,function(e){return Rn(e)?Mn(e.items,t):e.value===t?p.some(e):p.none()})},jn=function(e,t){return e.bind(function(e){return Mn(e,t)})},kn={sanitizer:Cn,sanitize:Ln,findEntry:jn},Fn=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},zn=function(){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:"selectbox",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"}]}]}]}},Hn={makeTab:zn},Bn=function(e){var t=kn.sanitizer(function(t){return e.convertURL(t.value||t.url,"src")}),n=z.nu(function(n){Ht.createImageList(e,function(e){n(t(e).map(function(e){return A([[{text:"None",value:""}],e])}))})}),r=kn.sanitize(Ut.getClassList(e)),i=Ut.hasAdvTab(e),o=Ut.hasUploadTab(e),a=Ut.hasUploadUrl(e),u=Ut.hasUploadHandler(e),c=xn(e),s=Ut.hasDescription(e),l=Ut.hasImageTitle(e),f=Ut.hasDimensions(e),d=Ut.hasImageCaption(e),m=Ut.showAccessibilityOptions(e),g=Ut.getUploadUrl(e),h=Ut.getUploadBasePath(e),b=Ut.getUploadCredentials(e),y=Ut.getUploadHandler(e),T=Ut.isAutomaticUploadsEnabled(e),w=p.some(Ut.getPrependUrl(e)).filter(function(e){return v(e)&&e.length>0});return n.map(function(e){return{image:c,imageList:e,classList:r,hasAdvTab:i,hasUploadTab:o,hasUploadUrl:a,hasUploadHandler:u,hasDescription:s,hasImageTitle:l,hasDimensions:f,hasImageCaption:d,url:g,basePath:h,credentials:b,handler:y,prependURL:w,hasAccessibilityOptions:m,automaticUploads:T}})},Gn=function(e){var t={name:"src",type:"urlinput",filetype:"image",label:"Source"},n=e.imageList.map(function(e){return{name:"images",type:"selectbox",label:"Image list",items:e}}),r={name:"alt",type:"input",label:"Alternative description",disabled:e.hasAccessibilityOptions&&e.image.isDecorative},i={name:"title",type:"input",label:"Image title"},o={name:"dimensions",type:"sizeinput"},a={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},u=e.classList.map(function(e){return{name:"classes",type:"selectbox",label:"Class",items:e}}),c={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]};return A([[t],n.toArray(),e.hasAccessibilityOptions&&e.hasDescription?[a]:[],e.hasDescription?[r]:[],e.hasImageTitle?[i]:[],e.hasDimensions?[o]:[],[{type:"grid",columns:2,items:A([u.toArray(),e.hasImageCaption?[c]:[]])}]])},Wn=function(e){return{title:"General",name:"general",items:Gn(e)}},qn={makeTab:Wn,makeItems:Gn},Vn=function(){var e=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:e}},Xn={makeTab:Vn},$n=function(e){return{prevImage:kn.findEntry(e.imageList,e.image.src),prevAlt:e.image.alt,open:!0}},Jn=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}},Yn=function(e){return{src:e.src.value,alt: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}},Kn=function(e,t){return/^(?:[a-zA-Z]+:)?\/\//.test(t)?p.none():e.prependURL.bind(function(e){return t.substring(0,e.length)!==e?p.some(e+t):p.none()})},Zn=function(e,t){var n=t.getData();Kn(e,n.src.value).each(function(e){t.setData({src:{value:e,meta:n.src.meta}})})},Qn=function(e,t,n){e.hasDescription&&v(n.alt)&&(t.alt=n.alt),e.hasAccessibilityOptions&&(t.isDecorative=n.isDecorative||t.isDecorative||!1),e.hasImageTitle&&v(n.title)&&(t.title=n.title),e.hasDimensions&&(v(n.width)&&(t.dimensions.width=n.width),v(n.height)&&(t.dimensions.height=n.height)),v(n.class)&&kn.findEntry(e.classList,n.class).each(function(e){t.classes=e.value}),e.hasImageCaption&&T(n.caption)&&(t.caption=n.caption),e.hasAdvTab&&(v(n.style)&&(t.style=n.style),v(n.vspace)&&(t.vspace=n.vspace),v(n.border)&&(t.border=n.border),v(n.hspace)&&(t.hspace=n.hspace),v(n.borderstyle)&&(t.borderstyle=n.borderstyle))},er=function(e,t){var n=t.getData(),r=n.src.meta;if(void 0!==r){var i=nt({},n);Qn(e,i,r),t.setData(i)}},tr=function(e,t,n,r){var i=r.getData(),o=i.src.value,a=i.src.meta||{};a.width||a.height||!t.hasDimensions||e.imageSize(o).get(function(e){e.each(function(e){n.open&&r.setData({dimensions:e})})})},nr=function(e,t,n){var r=n.getData(),i=kn.findEntry(e.imageList,r.src.value);t.prevImage=i,n.setData({images:i.map(function(e){return e.value}).getOr("")})},rr=function(e,t,n,r){Zn(t,r),er(t,r),tr(e,t,n,r),nr(t,n,r)},ir=function(e,t,n,r){var i=r.getData(),o=kn.findEntry(t.imageList,i.images);o.each(function(e){var t=""===i.alt||n.prevImage.map(function(e){return e.text===i.alt}).getOr(!1);r.setData(t?""===e.value?{src:e,alt:n.prevAlt}:{src:e,alt:e.text}:{src:e})}),n.prevImage=o,rr(e,t,n,r)},or=function(e){var t=e["margin-top"]&&e["margin-bottom"]&&e["margin-top"]===e["margin-bottom"];return t?Ht.removePixelSuffix(String(e["margin-top"])):""},ar=function(e){var t=e["margin-right"]&&e["margin-left"]&&e["margin-right"]===e["margin-left"];return t?Ht.removePixelSuffix(String(e["margin-right"])):""},ur=function(e){return e["border-width"]?Ht.removePixelSuffix(String(e["border-width"])):""},cr=function(e){return e["border-style"]?String(e["border-style"]):""},sr=function(e,t,n){return t(e(t(n)))},lr=function(e,t,n){var r=Ht.mergeMargins(e(n.style)),i=nt({},n);return i.vspace=or(r),i.hspace=ar(r),i.border=ur(r),i.borderstyle=cr(r),i.style=sr(e,t,r),i},fr=function(e,t){var n=t.getData(),r=lr(e.parseStyle,e.serializeStyle,n);t.setData(r)},dr=function(e,t,n){var r=nt(Jn(t.image),n.getData()),i=mn(e.normalizeCss,Yn(r));n.setData({style:i})},mr=function(n,r,i,o){var a=o.getData();o.block("Uploading image"),N(a.fileinput).fold(function(){o.unblock()},function(a){var u=e.URL.createObjectURL(a),c=t({url:r.url,basePath:r.basePath,credentials:r.credentials,handler:r.handler}),s=function(){o.unblock(),e.URL.revokeObjectURL(u)},l=function(e){o.setData({src:{value:e,meta:{}}}),o.showTab("general"),rr(n,r,i,o)};Ht.blobToDataUri(a).then(function(e){var t=n.createBlobCache(a,u,e);r.automaticUploads?c.upload(t).then(function(e){l(e),s()}).catch(function(e){s(),n.alertErr(o,e)}):(n.addToBlobCache(t),l(t.blobUri()),o.unblock())})})},pr=function(e,t,n){return function(r,i){"src"===i.name?rr(e,t,n,r):"images"===i.name?ir(e,t,n,r):"alt"===i.name?n.prevAlt=r.getData().alt:"style"===i.name?fr(e,r):"vspace"===i.name||"hspace"===i.name||"border"===i.name||"borderstyle"===i.name?dr(e,t,r):"fileinput"===i.name?mr(e,t,n,r):"isDecorative"===i.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},gr=function(e){return function(){e.open=!1}},hr=function(e){if(e.hasAdvTab||e.hasUploadUrl||e.hasUploadHandler){var t={type:"tabpanel",tabs:A([[qn.makeTab(e)],e.hasAdvTab?[Hn.makeTab(e)]:[],e.hasUploadTab&&(e.hasUploadUrl||e.hasUploadHandler)?[Xn.makeTab(e)]:[]])};return t}var n={type:"panel",items:qn.makeItems(e)};return n},vr=function(e){return function(t){var n=$n(t);return{title:"Insert/Edit Image",size:"normal",body:hr(t),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Jn(t.image),onSubmit:e.onSubmit(t),onChange:pr(e,t,n),onClose:gr(n)}
}},br=function(e){return function(t){return function(n){var r=nt(Jn(t.image),n.getData());e.undoManager.transact(function(){In(e,Yn(r),t)}),e.editorUpload.uploadImagesAuto(),n.close()}}},yr=function(e){return function(t){return Z.nu(function(n){Ht.getImageSize(e.documentBaseURI.toAbsolute(t),function(e){var t=e.map(function(e){return{width:String(e.width),height:String(e.height)}});n(t)})})}},Tr=function(e){return function(t,n,r){return e.editorUpload.blobCache.create({blob:t,blobUri:n,name:t.name?t.name.replace(/\.[^\.]+$/,""):null,base64:r.split(",")[1]})}},wr=function(e){return function(t){e.editorUpload.blobCache.add(t)}},_r=function(e){return function(t,n){e.windowManager.alert(n,t.close)}},Dr=function(e){return function(t){return wn(e,t)}},xr=function(e){return function(t){return e.dom.parseStyle(t)}},Er=function(e){return function(t,n){return e.dom.serializeStyle(t,n)}},Ar=function(e){var t={onSubmit:br(e),imageSize:yr(e),addToBlobCache:wr(e),createBlobCache:Tr(e),alertErr:_r(e),normalizeCss:Dr(e),parseStyle:xr(e),serializeStyle:Er(e)},n=function(){return Bn(e).map(vr(t)).get(function(t){e.windowManager.open(t)})};return{open:n}},Nr=function(e){e.addCommand("mceImage",Ar(e).open)},Or={register:Nr},Ir=function(e){var t=e.attr("class");return t&&/\bimage\b/.test(t)},Sr=function(e){return function(t){for(var n=t.length,r=function(t){t.attr("contenteditable",e?"true":null)};n--;){var i=t[n];Ir(i)&&(i.attr("contenteditable",e?"false":null),Sn.each(i.getAll("figcaption"),r))}}},Ur=function(e){e.on("PreInit",function(){e.parser.addNodeFilter("figure",Sr(!0)),e.serializer.addNodeFilter("figure",Sr(!1))})},Pr={setup:Ur},Cr=function(e){e.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:Ar(e).open,onSetup:function(t){return 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:Ar(e).open}),e.ui.registry.addContextMenu("image",{update:function(e){return cn(e)||sn(e)&&!Ht.isPlaceholderImage(e)?["image"]:[]}})},Lr={register:Cr};n()}(window)});
;/*!node_modules/tinymce/plugins/image/index.js*/
amis.define("node_modules/tinymce/plugins/image/index",function(e){e("node_modules/tinymce/plugins/image/plugin")});
;/*!node_modules/tinymce/plugins/charmap/plugin.js*/
amis.define("node_modules/tinymce/plugins/charmap/plugin",function(){!function(n){"use strict";function e(){r.add("charmap",function(n){var e=L.getCharMap(n);return J.register(n,e),ee.register(n),$(n,e[0]),R.get(n)})}var r=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(n,e){return n.fire("insertCustomChar",{chr:e})},a={fireInsertCustomChar:t},i=function(n,e){var r=a.fireInsertCustomChar(n,e).chr;n.execCommand("mceInsertContent",!1,r)},o={insertChar:i},c=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=function(n){return n.settings.charmap},s=function(n){return n.settings.charmap_append},l={getCharMap:u,getCharMapAppend:s},g=function(){},f=function(n){return function(){return n}},m=f(!1),h=f(!0),p=function(){return d},d=function(){var n=function(n){return n.isNone()},e=function(n){return n()},r=function(n){return n},t={fold:function(n){return n()},is:m,isSome:m,isNone:h,getOr:r,getOrThunk:e,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:r,orThunk:e,map:p,each:g,bind:p,exists:m,forall:h,filter:p,equals:n,equals_:n,toArray:function(){return[]},toString:f("none()")};return Object.freeze&&Object.freeze(t),t}(),y=function(n){var e=f(n),r=function(){return a},t=function(e){return e(n)},a={fold:function(e,r){return r(n)},is:function(e){return n===e},isSome:h,isNone:m,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:r,orThunk:r,map:function(e){return y(e(n))},each:function(e){e(n)},bind:t,exists:t,forall:t,filter:function(e){return e(n)?a:d},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){return e.is(n)},equals_:function(e,r){return e.fold(m,function(e){return r(n,e)})}};return a},v=function(n){return null===n||void 0===n?d:y(n)},w={some:y,none:p,from:v},b=function(n){if(null===n)return"null";var e=typeof n;return"object"===e&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":e},C=function(n){return function(e){return b(e)===n}},k=C("array"),A=C("function"),O=Array.prototype.slice,x=Array.prototype.push,q=function(n,e){for(var r=n.length,t=new Array(r),a=0;r>a;a++){var i=n[a];t[a]=e(i,a)}return t},S=function(n,e){for(var r=0,t=n.length;t>r;r++){var a=n[r];e(a,r)}},T=function(n,e){for(var r=0,t=n.length;t>r;r++){var a=n[r];if(e(a,r))return w.some(a)}return w.none()},E=function(n){for(var e=[],r=0,t=n.length;t>r;++r){if(!k(n[r]))throw new Error("Arr.flatten item "+r+" was not an array, input: "+n);x.apply(e,n[r])}return e},M=function(n,e){return E(q(n,e))},I=(A(Array.from)?Array.from:function(n){return O.call(n)},c.isArray),z="User Defined",N=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"]]}]},U=function(n){return c.grep(n,function(n){return I(n)&&2===n.length})},D=function(n){return I(n)?[].concat(U(n)):"function"==typeof n?n():[]},P=function(n,e){var r=l.getCharMap(n);r&&(e=[{name:z,characters:D(r)}]);var t=l.getCharMapAppend(n);if(t){var a=c.grep(e,function(n){return n.name===z});return a.length?(a[0].characters=[].concat(a[0].characters).concat(D(t)),e):[].concat(e).concat({name:z,characters:D(t)})}return e},j=function(n){var e=P(n,N());return e.length>1?[{name:"All",characters:M(e,function(n){return n.characters})}].concat(e):e},L={getCharMap:j},_=function(n){var e=function(){return L.getCharMap(n)},r=function(e){o.insertChar(n,e)};return{getCharMap:e,insertChar:r}},R={get:_},Y=function(n){var e=n,r=function(){return e},t=function(n){e=n},a=function(){return Y(r())};return{get:r,set:t,clone:a}},B=function(e,r){var t=null,a=function(){null!==t&&(n.clearTimeout(t),t=null)},i=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];null!==t&&n.clearTimeout(t),t=n.setTimeout(function(){e.apply(null,a),t=null},r)};return{cancel:a,throttle:i}},H=function(n,e){return-1!==n.indexOf(e)},G=function(n,e,r){return H(String.fromCharCode(n).toLowerCase(),r)?!0:H(e.toLowerCase(),r)||H(e.toLowerCase().replace(/\s+/g,""),r)},K=function(n,e){var r=[],t=e.toLowerCase();return S(n.characters,function(n){G(n[0],n[1],t)&&r.push(n)}),q(r,function(n){return{text:n[1],value:String.fromCharCode(n[0]),icon:String.fromCharCode(n[0])}})},Q={scan:K},W="pattern",X=function(n,e){var r=function(){return[{label:"Search",type:"input",name:W},{type:"collection",name:"results"}]},t=function(){return q(e,function(n){return{title:n.name,name:n.name,items:r()}})},a=function(){return{type:"panel",items:r()}},i=function(){return{type:"tabpanel",tabs:t()}},c=Y(1===e.length?z:"All"),u=function(n,r){T(e,function(n){return n.name===c.get()}).each(function(e){var t=Q.scan(e,r);n.setData({results:t})})},s=40,l=B(function(n){var e=n.getData().pattern;u(n,e)},s),g=1===e.length?a():i(),f={pattern:"",results:Q.scan(e[0],"")},m={title:"Special Character",size:"normal",body:g,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:f,onAction:function(e,r){"results"===r.name&&(o.insertChar(n,r.value),e.close())},onTabChange:function(n,e){c.set(e.newTabName),l.throttle(n)},onChange:function(n,e){e.name===W&&l.throttle(n)}},h=n.windowManager.open(m);h.focus(W)},Z={open:X},F=function(n,e){n.addCommand("mceShowCharmap",function(){Z.open(n,e)})},J={register:F},V=tinymce.util.Tools.resolve("tinymce.util.Promise"),$=function(n,e){n.ui.registry.addAutocompleter("charmap",{ch:":",columns:"auto",minChars:2,fetch:function(n){return new V(function(r){r(Q.scan(e,n))})},onAction:function(e,r,t){n.selection.setRng(r),n.insertContent(t),e.hide()}})},ne=function(n){n.ui.registry.addButton("charmap",{icon:"insert-character",tooltip:"Special character",onAction:function(){return n.execCommand("mceShowCharmap")}}),n.ui.registry.addMenuItem("charmap",{icon:"insert-character",text:"Special character...",onAction:function(){return n.execCommand("mceShowCharmap")}})},ee={register:ne};e()}(window)});
;/*!node_modules/tinymce/plugins/charmap/index.js*/
amis.define("node_modules/tinymce/plugins/charmap/index",function(n){n("node_modules/tinymce/plugins/charmap/plugin")});
;/*!node_modules/tinymce/plugins/print/plugin.js*/
amis.define("node_modules/tinymce/plugins/print/plugin",function(){!function(){"use strict";function n(){t.add("print",function(n){r.register(n),c.register(n),n.addShortcut("Meta+P","","mcePrint")})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=tinymce.util.Tools.resolve("tinymce.Env"),e=function(n){n.addCommand("mcePrint",function(){i.browser.isIE()?n.getDoc().execCommand("print",!1,null):n.getWin().print()})},r={register:e},o=function(n){n.ui.registry.addButton("print",{icon:"print",tooltip:"Print",onAction:function(){return n.execCommand("mcePrint")}}),n.ui.registry.addMenuItem("print",{text:"Print...",icon:"print",onAction:function(){return n.execCommand("mcePrint")}})},c={register:o};n()}()});
;/*!node_modules/tinymce/plugins/print/index.js*/
amis.define("node_modules/tinymce/plugins/print/index",function(n){n("node_modules/tinymce/plugins/print/plugin")});
;/*!node_modules/tinymce/plugins/preview/plugin.js*/
amis.define("node_modules/tinymce/plugins/preview/plugin",function(){!function(){"use strict";function e(){t.add("preview",function(e){g.register(e),y.register(e)})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),i=function(e){return parseInt(e.getParam("plugin_preview_width","650"),10)},o=function(e){return parseInt(e.getParam("plugin_preview_height","500"),10)},r=function(e){return e.getParam("content_style","")},s=function(e){return e.getParam("content_css_cors",!1,"boolean")},a={getPreviewDialogWidth:i,getPreviewDialogHeight:o,getContentStyle:r,shouldUseContentCssCors:s},c=tinymce.util.Tools.resolve("tinymce.Env"),l=function(e){var t="",i=e.dom.encode,o=a.getContentStyle(e);t+='<base href="'+i(e.documentBaseURI.getURI())+'">',o&&(t+='<style type="text/css">'+o+"</style>");var r=a.shouldUseContentCssCors(e)?' crossorigin="anonymous"':"";n.each(e.contentCSS,function(n){t+='<link type="text/css" rel="stylesheet" href="'+i(e.documentBaseURI.toAbsolute(n))+'"'+r+">"});var s=e.settings.body_id||"tinymce";-1!==s.indexOf("=")&&(s=e.getParam("body_id","","hash"),s=s[e.id]||s);var l=e.settings.body_class||"";-1!==l.indexOf("=")&&(l=e.getParam("body_class","","hash"),l=l[e.id]||"");var d=c.mac?"e.metaKey":"e.ctrlKey && !e.altKey",m='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+d+")) {e.preventDefault();}}}, false);</script> ",u=e.getBody().dir,g=u?' dir="'+i(u)+'"':"",v="<!DOCTYPE html><html><head>"+t+'</head><body id="'+i(s)+'" class="mce-content-body '+i(l)+'"'+g+">"+e.getContent()+m+"</body></html>";return v},d={getPreviewHtml:l},m=function(e){var t=d.getPreviewHtml(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")},u=function(e){e.addCommand("mcePreview",function(){m(e)})},g={register:u},v=function(e){e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:function(){return e.execCommand("mcePreview")}}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:function(){return e.execCommand("mcePreview")}})},y={register:v};e()}()});
;/*!node_modules/tinymce/plugins/preview/index.js*/
amis.define("node_modules/tinymce/plugins/preview/index",function(e){e("node_modules/tinymce/plugins/preview/plugin")});
;/*!node_modules/tinymce/plugins/anchor/plugin.js*/
amis.define("node_modules/tinymce/plugins/anchor/plugin",function(){!function(){"use strict";function e(){t.add("anchor",function(e){h.setup(e),l.register(e),b.register(e)})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e,t){return"A"===t.tagName&&""===e.dom.getAttrib(t,"href")},o=function(e){return/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(e)},i=function(e){var t=e.selection.getNode();return n(e,t)?t.getAttribute("id")||t.getAttribute("name"):""},r=function(e,t){var o=e.selection.getNode();n(e,o)?(o.removeAttribute("name"),o.id=t,e.undoManager.add()):(e.focus(),e.selection.collapse(!0),e.insertContent(e.dom.createHTML("a",{id:t})))},a={isValidId:o,getId:i,insert:r},c=function(e,t){return a.isValidId(t)?(a.insert(e,t),!0):(e.windowManager.alert("Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),!1)},u=function(e){var t=a.getId(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){c(e,t.getData().id)&&t.close()}})},d={open:u},s=function(e){e.addCommand("mceAnchor",function(){d.open(e)})},l={register:s},m=function(e){return!e.attr("href")&&(e.attr("id")||e.attr("name"))&&!e.firstChild},f=function(e){return function(t){for(var n=0;n<t.length;n++)m(t[n])&&t[n].attr("contenteditable",e)}},g=function(e){e.on("PreInit",function(){e.parser.addNodeFilter("a",f("false")),e.serializer.addNodeFilter("a",f(null))})},h={setup:g},p=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")}})},b={register:p};e()}()});
;/*!node_modules/tinymce/plugins/anchor/index.js*/
amis.define("node_modules/tinymce/plugins/anchor/index",function(n){n("node_modules/tinymce/plugins/anchor/plugin")});
;/*!node_modules/tinymce/plugins/searchreplace/plugin.js*/
amis.define("node_modules/tinymce/plugins/searchreplace/plugin",function(){!function(){"use strict";function e(e){return e&&1===e.nodeType&&"false"===e.contentEditable}function t(t,n,r,o,a){function i(e,t){if(t=t||0,!e[0])throw new Error("findAndReplaceDOMText cannot handle zero-length matches");var n=e.index;if(t>0){var r=e[t];if(!r)throw new Error("Invalid capture group");n+=e[0].indexOf(r),e[0]=r}return[n,n+e[0].length,[e[0]]]}function c(t){var n;if(3===t.nodeType)return t.data;if(m[t.nodeName]&&!g[t.nodeName])return"";if(n="",e(t))return"\n";if((g[t.nodeName]||p[t.nodeName])&&(n+="\n"),t=t.firstChild)do n+=c(t);while(t=t.nextSibling);return n}function u(t,n,r){var o,a,i,c,u=[],d=0,s=t,l=n.shift(),f=0;e:for(;;){if((g[s.nodeName]||p[s.nodeName]||e(s))&&d++,3===s.nodeType&&(!a&&s.length+d>=l[1]?(a=s,c=l[1]-d):o&&u.push(s),!o&&s.length+d>l[0]&&(o=s,i=l[0]-d),d+=s.length),o&&a){if(s=r({startNode:o,startNodeIndex:i,endNode:a,endNodeIndex:c,innerNodes:u,match:l[2],matchIndex:f}),d-=a.length-c,o=null,a=null,u=[],l=n.shift(),f++,!l)break}else if(m[s.nodeName]&&!g[s.nodeName]||!s.firstChild){if(s.nextSibling){s=s.nextSibling;continue}}else if(!e(s)){s=s.firstChild;continue}for(;;){if(s.nextSibling){s=s.nextSibling;break}if(s.parentNode===t)break e;s=s.parentNode}}}function d(e){var t;if("function"!=typeof e){var n=e.nodeType?e:f.createElement(e);t=function(e,t){var r=n.cloneNode(!1);return r.setAttribute("data-mce-index",t),e&&r.appendChild(f.createTextNode(e)),r}}else t=e;return function(e){var n,r,o,a=e.startNode,i=e.endNode,c=e.matchIndex;if(a===i){var u=a;o=u.parentNode,e.startNodeIndex>0&&(n=f.createTextNode(u.data.substring(0,e.startNodeIndex)),o.insertBefore(n,u));var d=t(e.match[0],c);return o.insertBefore(d,u),e.endNodeIndex<u.length&&(r=f.createTextNode(u.data.substring(e.endNodeIndex)),o.insertBefore(r,u)),u.parentNode.removeChild(u),d}n=f.createTextNode(a.data.substring(0,e.startNodeIndex)),r=f.createTextNode(i.data.substring(e.endNodeIndex));for(var s=t(a.data.substring(e.startNodeIndex),c),l=0,g=e.innerNodes.length;g>l;++l){var m=e.innerNodes[l],p=t(m.data,c);m.parentNode.replaceChild(p,m)}var h=t(i.data.substring(0,e.endNodeIndex),c);return o=a.parentNode,o.insertBefore(n,a),o.insertBefore(s,a),o.removeChild(a),o=i.parentNode,o.insertBefore(h,i),o.insertBefore(r,i),o.removeChild(i),h}}var s,l,f,g,m,p,h=[],v=0;if(f=n.ownerDocument,g=a.getBlockElements(),m=a.getWhiteSpaceElements(),p=a.getShortEndedElements(),l=c(n)){if(t.global)for(;s=t.exec(l);)h.push(i(s,o));else s=l.match(t),h.push(i(s,o));return h.length&&(v=h.length,u(n,h,d(r))),v}}function n(){o.add("searchreplace",function(e){var t=r({index:-1,count:0,text:"",matchCase:!1,wholeWord:!1});return J.register(e,t),Q.register(e,t),j.get(e,t)})}var r=function(e){var t=e,n=function(){return t},o=function(e){t=e},a=function(){return r(n())};return{get:n,set:o,clone:a}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},a.apply(this,arguments)},i=function(){},c=function(e){return function(){return e}},u=c(!1),d=c(!0),s="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!----]_{}⦅-・]",l=c(s),f=function(){return g},g=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e){return e()},is:u,isSome:u,isNone:d,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:c(null),getOrUndefined:c(void 0),or:n,orThunk:t,map:f,each:i,bind:f,exists:u,forall:d,filter:f,equals:e,equals_:e,toArray:function(){return[]},toString:c("none()")};return Object.freeze&&Object.freeze(r),r}(),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)},is:function(t){return e===t},isSome:d,isNone:u,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:g},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(u,function(t){return n(e,t)})}};return o},p=function(e){return null===e||void 0===e?g:m(e)},h={some:m,none:f,from:p},v=l,x=tinymce.util.Tools.resolve("tinymce.util.Tools"),y={findAndReplaceDOMText:t},b=function(e){var t=e.getAttribute("data-mce-index");return"number"==typeof t?""+t:t},N=function(e,t,n){var r,o;return o=e.dom.create("span",{"data-mce-bogus":1}),o.className="mce-match-marker",r=e.getBody(),M(e,t,!1),y.findAndReplaceDOMText(n,r,o,1,e.schema)},w=function(e){var t=e.parentNode;e.firstChild&&t.insertBefore(e.firstChild,e),e.parentNode.removeChild(e)},C=function(e,t){var n,r=[];if(n=x.toArray(e.getBody().getElementsByTagName("span")),n.length)for(var o=0;o<n.length;o++){var a=b(n[o]);null!==a&&a.length&&a===t.toString()&&r.push(n[o])}return r},T=function(e,t,n){var r=t.get(),o=r.index,a=e.dom;n=n!==!1,n?o+1===r.count?o=0:o++:o-1===-1?o=r.count-1:o--,a.removeClass(C(e,r.index),"mce-match-marker-selected");var i=C(e,o);return i.length?(a.addClass(C(e,o),"mce-match-marker-selected"),e.selection.scrollIntoView(i[0]),o):-1},S=function(e,t){var n=t.parentNode;e.remove(t),e.isEmpty(n)&&e.remove(n)},O=function(e,t){var n=e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").replace(/\s/g,"[^\\S\\r\\n]"),r="("+n+")";return t?"(?:^|\\s|"+v()+")"+r+("(?=$|\\s|"+v()+")"):r},A=function(e,t,n,r,o){var a=O(n,o),i=N(e,t,new RegExp(a,r?"g":"gi"));if(i){var c=T(e,t,!0);t.set({index:c,count:i,text:n,matchCase:r,wholeWord:o})}return i},k=function(e,t){var n=T(e,t,!0);t.set(a(a({},t.get()),{index:n}))},B=function(e,t){var n=T(e,t,!1);t.set(a(a({},t.get()),{index:n}))},I=function(e){var t=b(e);return null!==t&&t.length>0},E=function(e,t,n,r,o){var i,c,u,d,s,l=t.get(),f=l.index,g=f;for(r=r!==!1,u=e.getBody(),c=x.grep(x.toArray(u.getElementsByTagName("span")),I),i=0;i<c.length;i++){var m=b(c[i]);if(d=s=parseInt(m,10),o||d===l.index){for(n.length?(c[i].firstChild.nodeValue=n,w(c[i])):S(e.dom,c[i]);c[++i];){if(d=parseInt(b(c[i]),10),d!==s){i--;break}S(e.dom,c[i])}r&&g--}else s>f&&c[i].setAttribute("data-mce-index",String(s-1))}return t.set(a(a({},l),{count:o?0:l.count-1,index:g})),r?k(e,t):B(e,t),!o&&t.get().count>0},M=function(e,t,n){var r,o,i,c,u=t.get();for(o=x.toArray(e.getBody().getElementsByTagName("span")),r=0;r<o.length;r++){var d=b(o[r]);null!==d&&d.length&&(d===u.index.toString()&&(i||(i=o[r].firstChild),c=o[r].firstChild),w(o[r]))}if(t.set(a(a({},u),{index:-1,count:0,text:""})),i&&c){var s=e.dom.createRng();return s.setStart(i,0),s.setEnd(c,c.data.length),n!==!1&&e.selection.setRng(s),s}},D=function(e,t){return t.get().count>1},R=function(e,t){return t.get().count>1},F=function(e,t){var n=function(n){return M(e,t,n)},r=function(n,r,o){return A(e,t,n,r,o)},o=function(){return k(e,t)},a=function(){return B(e,t)},i=function(n,r,o){return E(e,t,n,r,o)};return{done:n,find:r,next:o,prev:a,replace:i}},j={get:F},P=function(e){if(null===e)return"null";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},W=function(e){return function(t){return P(t)===e}},z=W("function"),q=Array.prototype.slice,_=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];t(o,n)}},$=(z(Array.from)?Array.from:function(e){return q.call(e)},function(){var e=r(h.none()),t=function(){e.set(h.none())},n=function(t){e.set(h.some(t))},o=function(t){e.get().each(t)},a=function(){return e.get().isSome()};return{clear:t,set:n,isSet:a,on:o}}),U=tinymce.util.Tools.resolve("tinymce.Env"),V=function(e,t){function n(n){var r=D(e,t)?n.enable:n.disable;r("next");var o=R(e,t)?n.enable:n.disable;o("prev")}function r(t){e.windowManager.alert("Could not find the specified string.",function(){t.focus("findtext")})}var o=$();e.undoManager.add();var i=x.trim(e.selection.getContent({format:"text"})),c=function(e){var n=e.getData(),r=t.get();t.set(a(a({},r),{matchCase:n.matchcase,wholeWord:n.wholewords}))},u=function(e,t){var n=["replace","replaceall","prev","next"],r=t?e.disable:e.enable;_(n,r)},d=function(e,t){U.browser.isSafari()&&U.deviceType.isTouch()&&("find"===t||"replace"===t||"replaceall"===t)&&e.focus(t)},s=function(r){M(e,t,!1),u(r,!0),n(r)},l=function(o){var a=o.getData(),i=t.get();if(!a.findtext.length)return void s(o);if(i.text===a.findtext&&i.matchCase===a.matchcase&&i.wholeWord===a.wholewords)k(e,t);else{var c=A(e,t,a.findtext,a.matchcase,a.wholewords);0>=c&&r(o),u(o,0===c)}n(o)},f=t.get(),g={findtext:i,replacetext:"",wholewords:f.wholeWord,matchcase:f.matchCase},m={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:"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:g,onChange:function(e,n){"findtext"===n.name&&t.get().count>0&&s(e)},onAction:function(r,o){var a=r.getData();switch(o.name){case"find":l(r);break;case"replace":E(e,t,a.replacetext)?n(r):s(r);break;case"replaceall":E(e,t,a.replacetext,!0,!0),s(r);break;case"prev":B(e,t),n(r);break;case"next":k(e,t),n(r);break;case"matchcase":case"wholewords":c(r),s(r)}d(r,o.name)},onSubmit:function(e){l(e),d(e,"find")},onClose:function(){e.focus(),M(e,t),e.undoManager.add()}};o.set(e.windowManager.open(m,{inline:"toolbar"}))},G={open:V},H=function(e,t){e.addCommand("SearchReplace",function(){G.open(e,t)})},J={register:H},K=function(e,t){return function(){G.open(e,t)}},L=function(e,t){e.ui.registry.addMenuItem("searchreplace",{text:"Find and replace...",shortcut:"Meta+F",onAction:K(e,t),icon:"search"}),e.ui.registry.addButton("searchreplace",{tooltip:"Find and replace",onAction:K(e,t),icon:"search"}),e.shortcuts.add("Meta+F","",K(e,t))},Q={register:L};n()}()});
;/*!node_modules/tinymce/plugins/searchreplace/index.js*/
amis.define("node_modules/tinymce/plugins/searchreplace/index",function(e){e("node_modules/tinymce/plugins/searchreplace/plugin")});
;/*!node_modules/tinymce/plugins/visualblocks/plugin.js*/
amis.define("node_modules/tinymce/plugins/visualblocks/plugin",function(){!function(){"use strict";function e(){o.add("visualblocks",function(e,o){var n=t(!1);c.register(e,o,n),k.register(e,n),g.setup(e,o,n)})}var t=function(e){var o=e,n=function(){return o},i=function(e){o=e},s=function(){return t(n())};return{get:n,set:i,clone:s}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e,t){e.fire("VisualBlocks",{state:t})},i={fireVisualBlocks:n},s=function(e,t,o){var n=e.dom;n.toggleClass(e.getBody(),"mce-visualblocks"),o.set(!o.get()),i.fireVisualBlocks(e,o.get())},u={toggleVisualBlocks:s},l=function(e,t,o){e.addCommand("mceVisualBlocks",function(){u.toggleVisualBlocks(e,t,o)})},c={register:l},r=function(e){return e.getParam("visualblocks_default_state",!1,"boolean")},a={isEnabledByDefault:r},f=function(e,t,o){e.on("PreviewFormats AfterPreviewFormats",function(t){o.get()&&e.dom.toggleClass(e.getBody(),"mce-visualblocks","afterpreviewformats"===t.type)}),e.on("init",function(){a.isEnabledByDefault(e)&&u.toggleVisualBlocks(e,t,o)}),e.on("remove",function(){e.dom.removeClass(e.getBody(),"mce-visualblocks")})},g={setup:f},m=function(e,t){return function(o){o.setActive(t.get());var n=function(e){return o.setActive(e.state)};return e.on("VisualBlocks",n),function(){return e.off("VisualBlocks",n)}}},d=function(e,t){e.ui.registry.addToggleButton("visualblocks",{icon:"visualblocks",tooltip:"Show blocks",onAction:function(){return e.execCommand("mceVisualBlocks")},onSetup:m(e,t)}),e.ui.registry.addToggleMenuItem("visualblocks",{text:"Show blocks",onAction:function(){return e.execCommand("mceVisualBlocks")},onSetup:m(e,t)})},k={register:d};e()}()});
;/*!node_modules/tinymce/plugins/visualblocks/index.js*/
amis.define("node_modules/tinymce/plugins/visualblocks/index",function(i){i("node_modules/tinymce/plugins/visualblocks/plugin")});
;/*!node_modules/tinymce/plugins/code/plugin.js*/
amis.define("node_modules/tinymce/plugins/code/plugin",function(){!function(){"use strict";function e(){n.add("code",function(e){return a.register(e),s.register(e),{}})}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,n){e.focus(),e.undoManager.transact(function(){e.setContent(n)}),e.selection.setCursorLocation(),e.nodeChanged()},o=function(e){return e.getContent({source_view:!0})},i={setContent:t,getContent:o},c=function(e){var n=i.getContent(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:n},onSubmit:function(n){i.setContent(e,n.getData().code),n.close()}})},r={open:c},u=function(e){e.addCommand("mceCodeEditor",function(){r.open(e)})},a={register:u},d=function(e){e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:function(){return r.open(e)}}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:function(){return r.open(e)}})},s={register:d};e()}()});
;/*!node_modules/tinymce/plugins/code/index.js*/
amis.define("node_modules/tinymce/plugins/code/index",function(e){e("node_modules/tinymce/plugins/code/plugin")});
;/*!node_modules/tinymce/plugins/fullscreen/plugin.js*/
amis.define("node_modules/tinymce/plugins/fullscreen/plugin",function(){!function(n){"use strict";function e(){t.add("fullscreen",function(n){var e=r(null);return n.settings.inline?i.get(e):(Gr.register(n,e),Jr.register(n,e),n.addShortcut("Meta+Shift+F","","mceFullScreen"),i.get(e))})}var r=function(n){var e=n,t=function(){return e},o=function(n){e=n},i=function(){return r(t())};return{get:t,set:o,clone:i}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(n){return{isFullscreen:function(){return null!==n.get()}}},i={get:o},u=function(){},c=function(n,e){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return n(e.apply(null,r))}},s=function(n){return function(){return n}},a=s(!1),f=s(!0),l=function(){return d},d=function(){var n=function(n){return n.isNone()},e=function(n){return n()},r=function(n){return n},t={fold:function(n){return n()},is:a,isSome:a,isNone:f,getOr:r,getOrThunk:e,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:s(null),getOrUndefined:s(void 0),or:r,orThunk:e,map:l,each:u,bind:l,exists:a,forall:f,filter:l,equals:n,equals_:n,toArray:function(){return[]},toString:s("none()")};return Object.freeze&&Object.freeze(t),t}(),m=function(n){var e=s(n),r=function(){return o},t=function(e){return e(n)},o={fold:function(e,r){return r(n)},is:function(e){return n===e},isSome:f,isNone:a,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:r,orThunk:r,map:function(e){return m(e(n))},each:function(e){e(n)},bind:t,exists:t,forall:t,filter:function(e){return e(n)?o:d},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){return e.is(n)},equals_:function(e,r){return e.fold(a,function(e){return r(n,e)})}};return o},v=function(n){return null===n||void 0===n?d:m(n)},g={some:m,none:l,from:v},h=function(n){var e=r(g.none()),t=function(){e.get().each(n)},o=function(){t(),e.set(g.none())},i=function(n){t(),e.set(g.some(n))},u=function(){return e.get().isSome()};return{clear:o,isSet:u,set:i}},p=function(){return h(function(n){n.unbind()})},w=function(){var n=r(g.none()),e=function(){n.set(g.none())},t=function(e){n.set(g.some(e))},o=function(e){n.get().each(e)},i=function(){return n.get().isSome()};return{clear:e,set:t,isSet:i,on:o}},y=function(n){if(null===n)return"null";var e=typeof n;return"object"===e&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":e},S=function(n){return function(e){return y(e)===n}},O=S("string"),E=S("array"),N=S("boolean"),T=S("function"),b=S("number"),x=Array.prototype.slice,C=Array.prototype.push,D=function(n,e){for(var r=n.length,t=new Array(r),o=0;r>o;o++){var i=n[o];t[o]=e(i,o)}return t},A=function(n,e){for(var r=0,t=n.length;t>r;r++){var o=n[r];e(o,r)}},_=function(n,e){for(var r=[],t=0,o=n.length;o>t;t++){var i=n[t];e(i,t)&&r.push(i)}return r},F=function(n,e){for(var r=0,t=n.length;t>r;r++){var o=n[r];if(e(o,r))return g.some(o)}return g.none()},M=function(n){for(var e=[],r=0,t=n.length;t>r;++r){if(!E(n[r]))throw new Error("Arr.flatten item "+r+" was not an array, input: "+n);C.apply(e,n[r])}return e},P=function(n,e){return M(D(n,e))},k=(T(Array.from)?Array.from:function(n){return x.call(n)},Object.keys),R=function(n,e){for(var r=k(n),t=0,o=r.length;o>t;t++){var i=r[t],u=n[i];e(u,i)}},I=function(n,e){return-1!==n.indexOf(e)},L=function(n){return void 0!==n.style&&T(n.style.getPropertyValue)},B=function(e,r){var t=r||n.document,o=t.createElement("div");if(o.innerHTML=e,!o.hasChildNodes()||o.childNodes.length>1)throw n.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return H(o.childNodes[0])},U=function(e,r){var t=r||n.document,o=t.createElement(e);return H(o)},W=function(e,r){var t=r||n.document,o=t.createTextNode(e);return H(o)},H=function(n){if(null===n||void 0===n)throw new Error("Node cannot be null or undefined");return{dom:s(n)}},j=function(n,e,r){var t=n.dom();return g.from(t.elementFromPoint(e,r)).map(H)},V={fromHtml:B,fromTag:U,fromText:W,fromDom:H,fromPoint:j},q=(n.Node.ATTRIBUTE_NODE,n.Node.CDATA_SECTION_NODE,n.Node.COMMENT_NODE,n.Node.DOCUMENT_NODE),z=(n.Node.DOCUMENT_TYPE_NODE,n.Node.DOCUMENT_FRAGMENT_NODE,n.Node.ELEMENT_NODE),X=n.Node.TEXT_NODE,Y=(n.Node.PROCESSING_INSTRUCTION_NODE,n.Node.ENTITY_REFERENCE_NODE,n.Node.ENTITY_NODE,n.Node.NOTATION_NODE,"undefined"!=typeof n.window?n.window:Function("return this;")(),function(n){return n.dom().nodeType}),G=function(n){return function(e){return Y(e)===n}},$=G(X),K=function(n){var e=$(n)?n.dom().parentNode:n.dom();return void 0!==e&&null!==e&&e.ownerDocument.body.contains(e)},J=function(e,r,t){if(!(O(t)||N(t)||b(t)))throw n.console.error("Invalid call to Attr.set. Key ",r,":: Value ",t,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(r,t+"")},Q=function(n,e,r){J(n.dom(),e,r)},Z=function(n,e){var r=n.dom().getAttribute(e);return null===r?void 0:r},ne=function(n,e){n.dom().removeAttribute(e)},ee=function(e,r,t){if(!O(t))throw n.console.error("Invalid call to CSS.set. Property ",r,":: Value ",t,":: Element ",e),new Error("CSS value must be a string: "+t);L(e)&&e.style.setProperty(r,t)},re=function(n,e){var r=n.dom();R(e,function(n,e){ee(r,e,n)})},te=function(e,r){var t=e.dom(),o=n.window.getComputedStyle(t),i=o.getPropertyValue(r),u=""!==i||K(e)?i:oe(t,r);return null===u?void 0:u},oe=function(n,e){return L(n)?n.style.getPropertyValue(e):""},ie=function(n,e,r,t,o,i,u){return{target:s(n),x:s(e),y:s(r),stop:t,prevent:o,kill:i,raw:s(u)}},ue=function(n){var e=V.fromDom(n.target),r=function(){n.stopPropagation()},t=function(){n.preventDefault()},o=c(t,r);return ie(e,n.clientX,n.clientY,r,t,o,n)},ce=function(n,e){for(var r=0;r<n.length;r++){var t=n[r];if(t.test(e))return t}return void 0},se=function(n,e){var r=ce(n,e);if(!r)return{major:0,minor:0};var t=function(n){return Number(e.replace(r,"$"+n))};return le(t(1),t(2))},ae=function(n,e){var r=String(e).toLowerCase();return 0===n.length?fe():se(n,r)},fe=function(){return le(0,0)},le=function(n,e){return{major:n,minor:e}},de={nu:le,detect:ae,unknown:fe},me="Edge",ve="Chrome",ge="IE",he="Opera",pe="Firefox",we="Safari",ye=function(n,e){return function(){return e===n}},Se=function(){return Oe({current:void 0,version:de.unknown()})},Oe=function(n){var e=n.current,r=n.version;return{current:e,version:r,isEdge:ye(me,e),isChrome:ye(ve,e),isIE:ye(ge,e),isOpera:ye(he,e),isFirefox:ye(pe,e),isSafari:ye(we,e)}},Ee={unknown:Se,nu:Oe,edge:s(me),chrome:s(ve),ie:s(ge),opera:s(he),firefox:s(pe),safari:s(we)},Ne="Windows",Te="iOS",be="Android",xe="Linux",Ce="OSX",De="Solaris",Ae="FreeBSD",_e="ChromeOS",Fe=function(n,e){return function(){return e===n}},Me=function(){return Pe({current:void 0,version:de.unknown()})},Pe=function(n){var e=n.current,r=n.version;return{current:e,version:r,isWindows:Fe(Ne,e),isiOS:Fe(Te,e),isAndroid:Fe(be,e),isOSX:Fe(Ce,e),isLinux:Fe(xe,e),isSolaris:Fe(De,e),isFreeBSD:Fe(Ae,e),isChromeOS:Fe(_e,e)}},ke={unknown:Me,nu:Pe,windows:s(Ne),ios:s(Te),android:s(be),linux:s(xe),osx:s(Ce),solaris:s(De),freebsd:s(Ae),chromeos:s(_e)},Re=function(n,e,r,t){var o=n.isiOS()&&/ipad/i.test(r)===!0,i=n.isiOS()&&!o,u=n.isiOS()||n.isAndroid(),c=u||t("(pointer:coarse)"),a=o||!i&&u&&t("(min-device-width:768px)"),f=i||u&&!a,l=e.isSafari()&&n.isiOS()&&/safari/i.test(r)===!1,d=!f&&!a&&!l;return{isiPad:s(o),isiPhone:s(i),isTablet:s(a),isPhone:s(f),isTouch:s(c),isAndroid:n.isAndroid,isiOS:n.isiOS,isWebView:s(l),isDesktop:s(d)}},Ie=function(n,e){var r=String(e).toLowerCase();return F(n,function(n){return n.search(r)})},Le=function(n,e){return Ie(n,e).map(function(n){var r=de.detect(n.versionRegexes,e);return{current:n.name,version:r}})},Be=function(n,e){return Ie(n,e).map(function(n){var r=de.detect(n.versionRegexes,e);return{current:n.name,version:r}})},Ue={detectBrowser:Le,detectOs:Be},We=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,He=function(n){return function(e){return I(e,n)}},je=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(n){return I(n,"edge/")&&I(n,"chrome")&&I(n,"safari")&&I(n,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,We],search:function(n){return I(n,"chrome")&&!I(n,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(n){return I(n,"msie")||I(n,"trident")}},{name:"Opera",versionRegexes:[We,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:He("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:He("firefox")},{name:"Safari",versionRegexes:[We,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(n){return(I(n,"safari")||I(n,"mobile/"))&&I(n,"applewebkit")}}],Ve=[{name:"Windows",search:He("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(n){return I(n,"iphone")||I(n,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:He("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:He("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:He("linux"),versionRegexes:[]},{name:"Solaris",search:He("sunos"),versionRegexes:[]},{name:"FreeBSD",search:He("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:He("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],qe={browsers:s(je),oses:s(Ve)},ze=function(n,e){var r=qe.browsers(),t=qe.oses(),o=Ue.detectBrowser(r,n).fold(Ee.unknown,Ee.nu),i=Ue.detectOs(t,n).fold(ke.unknown,ke.nu),u=Re(i,o,n,e);return{browser:o,os:i,deviceType:u}},Xe={detect:ze},Ye=function(e){return n.window.matchMedia(e).matches},Ge=r(Xe.detect(n.navigator.userAgent,Ye)),$e=function(){return Ge.get()},Ke=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(n.length!==e.length)throw new Error('Wrong number of arguments to struct. Expected "['+n.length+']", got '+e.length+" arguments");var t={};return A(n,function(n,r){t[n]=s(e[r])}),t}},Je=function(n,e,r){return 0!==(n.compareDocumentPosition(e)&r)},Qe=function(e,r){return Je(e,r,n.Node.DOCUMENT_POSITION_PRECEDING)},Ze=function(e,r){return Je(e,r,n.Node.DOCUMENT_POSITION_CONTAINED_BY)},nr={documentPositionPreceding:Qe,documentPositionContainedBy:Ze},er=z,rr=q,tr=function(n,e){var r=n.dom();if(r.nodeType!==er)return!1;var t=r;if(void 0!==t.matches)return t.matches(e);if(void 0!==t.msMatchesSelector)return t.msMatchesSelector(e);if(void 0!==t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(void 0!==t.mozMatchesSelector)return t.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},or=function(n){return n.nodeType!==er&&n.nodeType!==rr||0===n.childElementCount},ir=function(e,r){var t=void 0===r?n.document:r.dom();return or(t)?[]:D(t.querySelectorAll(e),V.fromDom)},ur=function(n,e){return n.dom()===e.dom()},cr=function(n,e){var r=n.dom(),t=e.dom();return r===t?!1:r.contains(t)},sr=function(n,e){return nr.documentPositionContainedBy(n.dom(),e.dom())},ar=$e().browser,fr=(ar.isIE()?sr:cr,function(n){return g.from(n.dom().parentNode).map(V.fromDom)}),lr=function(n,e){for(var r=T(e)?e:a,t=n.dom(),o=[];null!==t.parentNode&&void 0!==t.parentNode;){var i=t.parentNode,u=V.fromDom(i);if(o.push(u),r(u)===!0)break;t=i}return o},dr=function(n){var e=function(e){return _(e,function(e){return!ur(n,e)})};return fr(n).map(mr).map(e).getOr([])},mr=function(n){return D(n.dom().childNodes,V.fromDom)},vr=(Ke("element","offset"),function(n,e){var r=function(r,t){return vr(n+r,e+t)};return{left:s(n),top:s(e),translate:r}}),gr=vr,hr=($e().browser.isSafari(),function(e){var r=void 0!==e?e.dom():n.document,t=r.body.scrollLeft||r.documentElement.scrollLeft,o=r.body.scrollTop||r.documentElement.scrollTop;return gr(t,o)}),pr=function(e){var r=void 0===e?n.window:e;return g.from(r.visualViewport)},wr=function(n,e,r,t){return{x:s(n),y:s(e),width:s(r),height:s(t),right:s(n+r),bottom:s(e+t)}},yr=function(e){var r=void 0===e?n.window:e,t=r.document,o=hr(V.fromDom(t));return pr(r).fold(function(){var n=r.document.documentElement,e=n.clientWidth,t=n.clientHeight;return wr(o.left(),o.top(),e,t)},function(n){return wr(Math.max(n.pageLeft,o.left()),Math.max(n.pageTop,o.top()),n.width,n.height)})},Sr=function(n,e,r){return pr(r).map(function(e){var r=function(n){return ue(n)};return e.addEventListener(n,r),{unbind:function(){return e.removeEventListener(n,r)}}}).getOrThunk(function(){return{unbind:u}})},Or=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Er=tinymce.util.Tools.resolve("tinymce.Env"),Nr=tinymce.util.Tools.resolve("tinymce.util.Delay"),Tr=function(n,e){n.fire("FullscreenStateChanged",{state:e})},br={fireFullscreenStateChanged:Tr},xr=function(n,e,r){return _(lr(n,r),e)},Cr=function(n,e){return _(dr(n),e)},Dr=function(n){return ir(n)},Ar=function(n,e,r){return xr(n,function(n){return tr(n,e)},r)},_r=function(n,e){return Cr(n,function(n){return tr(n,e)})},Fr="data-ephox-mobile-fullscreen-style",Mr="display:none!important;",Pr="position:absolute!important;",kr="top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;",Rr="background-color:rgb(255,255,255)!important;",Ir=Er.os.isAndroid(),Lr=function(n){var e=te(n,"background-color");return void 0!==e&&""!==e?"background-color:"+e+"!important":Rr},Br=function(n,e,r){var t=function(n){return _r(n,"*:not(.tox-silver-sink)")},o=function(e){return function(r){var t=Z(r,"style"),o=void 0===t?"no-styles":t.trim();o!==e&&(Q(r,Fr,o),re(r,n.parseStyle(e)))}},i=Ar(e,"*"),u=P(i,t),c=Lr(r);A(u,o(Mr)),A(i,o(Pr+kr+c));var s=Ir===!0?"":Pr;o(s+kr+c)(e)},Ur=function(n){var e=Dr("["+Fr+"]");A(e,function(e){var r=Z(e,Fr);"no-styles"!==r?re(e,n.parseStyle(r)):ne(e,"style"),ne(e,Fr)})},Wr={clobberStyles:Br,restoreStyles:Ur},Hr=Or.DOM,jr=function(){var e=yr(n.window);return{x:e.x(),y:e.y()}},Vr=function(e){n.window.scrollTo(e.x,e.y)},qr=pr().fold(function(){return{bind:u,unbind:u}},function(e){var r=w(),t=p(),o=p(),i=function(){n.document.body.scrollTop=0,n.document.documentElement.scrollTop=0},u=function(){n.window.requestAnimationFrame(function(){r.on(function(n){return re(n,{top:e.offsetTop+"px",left:e.offsetLeft+"px",height:e.height+"px",width:e.width+"px"})})})},c=Nr.throttle(function(){i(),u()},50),s=function(n){r.set(n),c(),t.set(Sr("resize")),o.set(Sr("scroll"))},a=function(){r.on(function(){t.clear(),o.clear()}),r.clear()};return{bind:s,unbind:a}}),zr=function(e,r){var t,o,i,u,c=n.document.body,s=n.document.documentElement;o=e.getContainer();var a=V.fromDom(o),f=r.get(),l=V.fromDom(e.getBody()),d=Er.deviceType.isTouch();if(t=o.style,i=e.getContentAreaContainer().firstChild,u=i.style,f)u.width=f.iframeWidth,u.height=f.iframeHeight,t.width=f.containerWidth,t.height=f.containerHeight,t.top=f.containerTop,t.left=f.containerLeft,d&&Wr.restoreStyles(e.dom),Hr.removeClass(c,"tox-fullscreen"),Hr.removeClass(s,"tox-fullscreen"),Hr.removeClass(o,"tox-fullscreen"),Vr(f.scrollPos),r.set(null),br.fireFullscreenStateChanged(e,!1),qr.unbind(),e.off("remove",qr.unbind);else{var m={scrollPos:jr(),containerWidth:t.width,containerHeight:t.height,containerTop:t.top,containerLeft:t.left,iframeWidth:u.width,iframeHeight:u.height};d&&Wr.clobberStyles(e.dom,a,l),u.width=u.height="100%",t.width=t.height="",Hr.addClass(c,"tox-fullscreen"),Hr.addClass(s,"tox-fullscreen"),Hr.addClass(o,"tox-fullscreen"),qr.bind(a),e.on("remove",qr.unbind),r.set(m),br.fireFullscreenStateChanged(e,!0)}},Xr={toggleFullscreen:zr},Yr=function(n,e){n.addCommand("mceFullScreen",function(){Xr.toggleFullscreen(n,e)})},Gr={register:Yr},$r=function(n,e){return function(r){r.setActive(null!==e.get());var t=function(n){return r.setActive(n.state)};return n.on("FullscreenStateChanged",t),function(){return n.off("FullscreenStateChanged",t)}}},Kr=function(n,e){n.ui.registry.addToggleMenuItem("fullscreen",{text:"Fullscreen",shortcut:"Meta+Shift+F",onAction:function(){return n.execCommand("mceFullScreen")},onSetup:$r(n,e)}),n.ui.registry.addToggleButton("fullscreen",{tooltip:"Fullscreen",icon:"fullscreen",onAction:function(){return n.execCommand("mceFullScreen")},onSetup:$r(n,e)})},Jr={register:Kr};e()}(window)});
;/*!node_modules/tinymce/plugins/fullscreen/index.js*/
amis.define("node_modules/tinymce/plugins/fullscreen/index",function(e){e("node_modules/tinymce/plugins/fullscreen/plugin")});
;/*!node_modules/tinymce/plugins/insertdatetime/plugin.js*/
amis.define("node_modules/tinymce/plugins/insertdatetime/plugin",function(){!function(){"use strict";function e(){t.add("insertdatetime",function(e){T.register(e),h.register(e)})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d"))},r=function(e){return e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S"))},i=function(e){return e.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])},a=function(e){var t=i(e);return t.length>0?t[0]:r(e)},o=function(e){return e.getParam("insertdatetime_element",!1)},u={getDateFormat:n,getTimeFormat:r,getFormats:i,getDefaultDateTime:a,shouldInsertTimeElement:o},m="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),s="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),c="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),l="January February March April May June July August September October November December".split(" "),d=function(e,t){if(e=""+e,e.length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e},g=function(e,t,n){return 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",d(n.getMonth()+1,2)),t=t.replace("%d",d(n.getDate(),2)),t=t.replace("%H",""+d(n.getHours(),2)),t=t.replace("%M",""+d(n.getMinutes(),2)),t=t.replace("%S",""+d(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(l[n.getMonth()])),t=t.replace("%b",""+e.translate(c[n.getMonth()])),t=t.replace("%A",""+e.translate(s[n.getDay()])),t=t.replace("%a",""+e.translate(m[n.getDay()])),t=t.replace("%%","%")},f=function(e,t,n,r){var i=e.dom.create("time",{datetime:n},r);t.parentNode.insertBefore(i,t),e.dom.remove(t),e.selection.select(i,!0),e.selection.collapse(!1)},p=function(e,t){if(u.shouldInsertTimeElement(e)){var n=g(e,t),r=void 0;r=/%[HMSIp]/.test(t)?g(e,"%Y-%m-%dT%H:%M"):g(e,"%Y-%m-%d");var i=e.dom.getParent(e.selection.getStart(),"time");i?f(e,i,r,n):e.insertContent('<time datetime="'+r+'">'+n+"</time>")}else e.insertContent(g(e,t))},y={insertDateTime:p,getDateTime:g},D=function(e){e.addCommand("mceInsertDate",function(){y.insertDateTime(e,u.getDateFormat(e))}),e.addCommand("mceInsertTime",function(){y.insertDateTime(e,u.getTimeFormat(e))})},T={register:D},M=tinymce.util.Tools.resolve("tinymce.util.Tools"),S=function(e){var t=e,n=function(){return t},r=function(e){t=e},i=function(){return S(n())};return{get:n,set:r,clone:i}},v=function(e){var t=u.getFormats(e),n=S(u.getDefaultDateTime(e));e.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:function(e){return e===n.get()},fetch:function(n){n(M.map(t,function(t){return{type:"choiceitem",text:y.getDateTime(e,t),value:t}}))},onAction:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];y.insertDateTime(e,n.get())},onItemAction:function(t,r){n.set(r),y.insertDateTime(e,r)}});var r=function(t){return function(){n.set(t),y.insertDateTime(e,t)}};e.ui.registry.addNestedMenuItem("insertdatetime",{icon:"insert-time",text:"Date/time",getSubmenuItems:function(){return M.map(t,function(t){return{type:"menuitem",text:y.getDateTime(e,t),onAction:r(t)}})}})},h={register:v};e()}()});
;/*!node_modules/tinymce/plugins/insertdatetime/index.js*/
amis.define("node_modules/tinymce/plugins/insertdatetime/index",function(e){e("node_modules/tinymce/plugins/insertdatetime/plugin")});
;/*!node_modules/tinymce/plugins/media/plugin.js*/
amis.define("node_modules/tinymce/plugins/media/plugin",function(){!function(){"use strict";function e(){t.add("media",function(e){return Nt.register(e),nr.register(e),Yt.setup(e),Qt.setup(e),er.setup(e),Mt.get(e)})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;n>r;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},r.apply(this,arguments)},n=function(){},i=function(e){return function(){return e}},o=i(!1),a=i(!0),c=function(){return u},u=function(){var e=function(e){return e.isNone()},t=function(e){return e()},r=function(e){return e},u={fold:function(e){return e()},is:o,isSome:o,isNone:a,getOr:r,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:r,orThunk:t,map:c,each:n,bind:c,exists:o,forall:a,filter:c,equals:e,equals_:e,toArray:function(){return[]},toString:i("none()")};return Object.freeze&&Object.freeze(u),u}(),s=function(e){var t=i(e),r=function(){return c},n=function(t){return t(e)},c={fold:function(t,r){return r(e)},is:function(t){return e===t},isSome:a,isNone:o,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:r,orThunk:r,map:function(t){return s(t(e))},each:function(t){t(e)},bind:n,exists:n,forall:n,filter:function(t){return t(e)?c:u},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,r){return t.fold(o,function(t){return r(e,t)})}};return c},l=function(e){return null===e||void 0===e?u:s(e)},m={some:s,none:c,from:l},d=function(e){if(null===e)return"null";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},f=function(e){return function(t){return d(t)===e}},h=f("string"),p=f("object"),g=f("array"),v=f("function"),b=Array.prototype.slice,w=Array.prototype.push,y=function(e,t){for(var r=0,n=e.length;n>r;r++){var i=e[r];t(i,r)}},x=function(e){for(var t=[],r=0,n=e.length;n>r;++r){if(!g(e[r]))throw new Error("Arr.flatten item "+r+" was not an array, input: "+e);w.apply(t,e[r])}return t},S=(v(Array.from)?Array.from:function(e){return b.call(e)},function(e){var t=e,r=function(){return t},n=function(e){t=e},i=function(){return S(r())};return{get:r,set:n,clone:i}}),j=Object.hasOwnProperty,O=function(e,t){return A(e,t)?m.from(e[t]):m.none()},A=function(e,t){return j.call(e,t)},_=function(e){return e.getParam("media_scripts")},C=function(e){return e.getParam("audio_template_callback")},k=function(e){return e.getParam("video_template_callback")},T=function(e){return e.getParam("media_live_embeds",!0)},D=function(e){return e.getParam("media_filter_html",!0)},P=function(e){return e.getParam("media_url_resolver")},z=function(e){return e.getParam("media_alt_source",!0)},F=function(e){return e.getParam("media_poster",!0)},$=function(e){return e.getParam("media_dimensions",!0)},M={getScripts:_,getAudioTemplateCallback:C,getVideoTemplateCallback:k,hasLiveEmbeds:T,shouldFilterHtml:D,getUrlResolver:P,hasAltSource:z,hasPoster:F,hasDimensions:$},E=tinymce.util.Tools.resolve("tinymce.util.Tools"),N=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),U=tinymce.util.Tools.resolve("tinymce.html.SaxParser"),H=function(e,t){if(e)for(var r=0;r<e.length;r++)if(-1!==t.indexOf(e[r].filter))return e[r]},R=N.DOM,L=function(e){return e.replace(/px$/,"")},I=function(e){var t=e.map.style,r=t?R.parseStyle(t):{};return{type:"ephox-embed-iri",source:e.map["data-ephox-embed-iri"],altsource:"",poster:"",width:O(r,"max-width").map(L).getOr(""),height:O(r,"max-height").map(L).getOr("")}},q=function(e,t){var r=S(!1),n={};return U({validate:!1,allow_conditional_comments:!0,start:function(t,i){if(r.get());else if(A(i.map,"data-ephox-embed-iri"))r.set(!0),n=I(i);else{if(n.source||"param"!==t||(n.source=i.map.movie),("iframe"===t||"object"===t||"embed"===t||"video"===t||"audio"===t)&&(n.type||(n.type=t),n=E.extend(i.map,n)),"script"===t){var o=H(e,i.map.src);if(!o)return;n={type:"script",source:i.map.src,width:String(o.width),height:String(o.height)}}"source"===t&&(n.source?n.altsource||(n.altsource=i.map.src):n.source=i.map.src),"img"!==t||n.poster||(n.poster=i.map.src)}}}).parse(t),n.source=n.source||n.src||n.data,n.altsource=n.altsource||"",n.poster=n.poster||"",n},B=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"},r=e.toLowerCase().split(".").pop(),n=t[r];return n?n:""},V={guess:B},W=tinymce.util.Tools.resolve("tinymce.html.Schema"),G=tinymce.util.Tools.resolve("tinymce.html.Writer"),J=N.DOM,K=function(e){return/^[0-9.]+$/.test(e)?e+"px":e},Q=function(e,t){for(var r in t){var n=""+t[r];if(e.map[r])for(var i=e.length;i--;){var o=e[i];o.name===r&&(n?(e.map[r]=n,o.value=n):(delete e.map[r],e.splice(i,1)))}else n&&(e.push({name:r,value:n}),e.map[r]=n)}},X=function(e,t){var r=t.map.style,n=r?J.parseStyle(r):{};n["max-width"]=K(e.width),n["max-height"]=K(e.height),Q(t,{style:J.serializeStyle(n)})},Y=["source","altsource"],Z=function(e,t,r){var n,i=G(),o=S(!1),a=0;return U({validate:!1,allow_conditional_comments:!0,comment:function(e){i.comment(e)},cdata:function(e){i.cdata(e)},text:function(e,t){i.text(e,t)},start:function(e,c,u){if(o.get());else if(A(c.map,"data-ephox-embed-iri"))o.set(!0),X(t,c);else{switch(e){case"video":case"object":case"embed":case"img":case"iframe":void 0!==t.height&&void 0!==t.width&&Q(c,{width:t.width,height:t.height})}if(r)switch(e){case"video":Q(c,{poster:t.poster,src:""}),t.altsource&&Q(c,{src:""});break;case"iframe":Q(c,{src:t.source});break;case"source":if(2>a&&(Q(c,{src:t[Y[a]],type:t[Y[a]+"mime"]}),!t[Y[a]]))return;a++;break;case"img":if(!t.poster)return;n=!0}}i.start(e,c,u)},end:function(e){if(!o.get()){if("video"===e&&r)for(var c=0;2>c;c++)if(t[Y[c]]){var u=[];u.map={},c>a&&(Q(u,{src:t[Y[c]],type:t[Y[c]+"mime"]}),i.start("source",u,!0))}if(t.poster&&"object"===e&&r&&!n){var s=[];s.map={},Q(s,{src:t.poster,width:t.width,height:t.height}),i.start("img",s,!0)}}i.end(e)}},W({})).parse(e),i.getContent()},et={updateHtml:Z},tt=[{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}],rt=function(e){var t=e.match(/^(https?:\/\/|www\.)(.+)$/i);return t&&t.length>1?"www."===t[1]?"https://":t[1]:"https://"},nt=function(e,t){for(var r=rt(t),n=e.regex.exec(t),i=r+e.url,o=function(e){i=i.replace("$"+e,function(){return n[e]?n[e]:""})},a=0;a<n.length;a++)o(a);return i.replace(/\?$/,"")},it=function(e){var t=tt.filter(function(t){return t.regex.test(e)});return t.length>0?E.extend({},t[0],{url:nt(t[0],e)}):null},ot=function(e){var t=e.allowFullscreen?' allowFullscreen="1"':"";return'<iframe src="'+e.source+'" width="'+e.width+'" height="'+e.height+'"'+t+"></iframe>"},at=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>"},ct=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>"},ut=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>"},st=function(e){return'<script src="'+e.source+'"></script>'},lt=function(e,t){var r=E.extend({},t);if(!r.source&&(E.extend(r,q(M.getScripts(e),r.embed)),!r.source))return"";r.altsource||(r.altsource=""),r.poster||(r.poster=""),r.source=e.convertURL(r.source,"source"),r.altsource=e.convertURL(r.altsource,"source"),r.sourcemime=V.guess(r.source),r.altsourcemime=V.guess(r.altsource),r.poster=e.convertURL(r.poster,"poster");var n=it(r.source);if(n&&(r.source=n.url,r.type=n.type,r.allowFullscreen=n.allowFullscreen,r.width=r.width||String(n.w),r.height=r.height||String(n.h)),r.embed)return et.updateHtml(r.embed,r,!0);var i=H(M.getScripts(e),r.source);i&&(r.type="script",r.width=String(i.width),r.height=String(i.height));var o=M.getAudioTemplateCallback(e),a=M.getVideoTemplateCallback(e);return r.width=r.width||"300",r.height=r.height||"150",E.each(r,function(t,n){r[n]=e.dom.encode(""+t)}),"iframe"===r.type?ot(r):"application/x-shockwave-flash"===r.sourcemime?at(r):-1!==r.sourcemime.indexOf("audio")?ct(r,o):"script"===r.type?st(r):ut(r,a)},mt=tinymce.util.Tools.resolve("tinymce.util.Promise"),dt={},ft=function(e,t,r){return new mt(function(n,i){var o=function(r){return r.html&&(dt[e.source]=r),n({url:e.source,html:r.html?r.html:t(e)})};dt[e.source]?o(dt[e.source]):r({url:e.source},o,i)})},ht=function(e,t){return new mt(function(r){r({html:t(e),url:e.source})})},pt=function(e){return function(t){return lt(e,t)}},gt=function(e,t){var r=M.getUrlResolver(e);return r?ft(t,pt(e),r):ht(t,pt(e))},vt=function(e){return dt.hasOwnProperty(e)},bt={getEmbedHtml:gt,isCached:vt},wt=function(e,t){return O(t,e).bind(function(e){return O(e,"meta")})},yt=function(e,t,r){return function(n){var i,o=function(){return O(e,n)},a=function(){return O(t,n)},c=function(e){return O(e,"value").bind(function(e){return e.length>0?m.some(e):m.none()})},u=function(){return o().bind(function(e){return p(e)?c(e).orThunk(a):a().orThunk(function(){return m.from(e)})})},s=function(){return a().orThunk(function(){return o().bind(function(e){return p(e)?c(e):m.from(e)})})};return i={},i[n]=(n===r?u():s()).getOr(""),i}},xt=function(e,t){var r={};return O(e,"dimensions").each(function(e){y(["width","height"],function(n){O(t,n).orThunk(function(){return O(e,n)}).each(function(e){return r[n]=e})})}),r},St=function(e,t){var n=t?wt(t,e).getOr({}):{},i=yt(e,n,t);return r(r(r(r(r({},i("source")),i("altsource")),i("poster")),i("embed")),xt(e,n))},jt=function(e){var t=r(r({},e),{source:{value:O(e,"source").getOr("")},altsource:{value:O(e,"altsource").getOr("")},poster:{value:O(e,"poster").getOr("")}});return y(["width","height"],function(r){O(e,r).each(function(e){var n=t.dimensions||{};n[r]=e,t.dimensions=n})}),t},Ot=function(e){return function(t){var r=t&&t.msg?"Media embed handler error: "+t.msg:"Media embed handler threw unknown error.";e.notificationManager.open({type:"error",text:r})}},At=function(e,t){return q(M.getScripts(e),t)},_t=function(e){return e.getAttribute("data-mce-object")||e.getAttribute("data-ephox-embed-iri")},Ct=function(e){var t=e.selection.getNode(),n=_t(t)?e.serializer.serialize(t,{selection:!0}):"";return r({embed:n},q(M.getScripts(e),n))},kt=function(e,t){return function(n){if(h(n.url)&&n.url.trim().length>0){var i=n.html,o=At(t,i),a=r(r({},o),{source:n.url,embed:i});e.setData(jt(a))}}},Tt=function(e,t){for(var r=e.dom.select("img[data-mce-object]"),n=0;n<t.length;n++)for(var i=r.length-1;i>=0;i--)t[n]===r[i]&&r.splice(i,1);e.selection.select(r[0])},Dt=function(e,t){var r=e.dom.select("img[data-mce-object]");e.insertContent(t),Tt(e,r),e.nodeChanged()},Pt=function(e,t,r){t.embed=et.updateHtml(t.embed,t),t.embed&&(e.source===t.source||bt.isCached(t.source))?Dt(r,t.embed):bt.getEmbedHtml(r,t).then(function(e){Dt(r,e.html)}).catch(Ot(r))},zt=function(e){var t=Ct(e),n=S(t),i=jt(t),o=function(t,r){var n=St(r.getData(),"source");t.source!==n.source&&(kt(v,e)({url:n.source,html:""}),bt.getEmbedHtml(e,n).then(kt(v,e)).catch(Ot(e)))},a=function(t){var r=St(t.getData()),n=At(e,r.embed);t.setData(jt(n))},c=function(t,n){var i=St(t.getData(),n),o=lt(e,i);t.setData(jt(r(r({},i),{embed:o})))},u=[{name:"source",type:"urlinput",filetype:"media",label:"Source"}],s=M.hasDimensions(e)?[{type:"sizeinput",name:"dimensions",label:"Constrain proportions",constrain:!0}]:[],l={title:"General",name:"general",items:x([u,s])},m={type:"textarea",name:"embed",label:"Paste your embed code below:"},d={title:"Embed",items:[m]},f=[];M.hasAltSource(e)&&f.push({name:"altsource",type:"urlinput",filetype:"media",label:"Alternative source URL"}),M.hasPoster(e)&&f.push({name:"poster",type:"urlinput",filetype:"image",label:"Media poster (Image URL)"});var h={title:"Advanced",name:"advanced",items:f},p=[l,d];f.length>0&&p.push(h);var g={type:"tabpanel",tabs:p},v=e.windowManager.open({title:"Insert/Edit Media",size:"normal",body:g,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var r=St(t.getData());Pt(n.get(),r,e),t.close()},onChange:function(e,t){switch(t.name){case"source":o(n.get(),e);break;case"embed":a(e);break;case"dimensions":case"altsource":case"poster":c(e,t.name)}n.set(St(e.getData()))},initialData:i})},Ft={showDialog:zt,unwrap:St},$t=function(e){var t=function(){Ft.showDialog(e)};return{showDialog:t}},Mt={get:$t},Et=function(e){var t=function(){Ft.showDialog(e)};e.addCommand("mceMedia",t)},Nt={register:Et},Ut=tinymce.util.Tools.resolve("tinymce.html.Node"),Ht=tinymce.util.Tools.resolve("tinymce.Env"),Rt=function(e,t){if(M.shouldFilterHtml(e)===!1)return t;var r,n=G();return U({validate:!1,allow_conditional_comments:!1,comment:function(e){n.comment(e)},cdata:function(e){n.cdata(e)},text:function(e,t){n.text(e,t)},start:function(t,i,o){if(r=!0,"script"!==t&&"noscript"!==t&&"svg"!==t){for(var a=i.length-1;a>=0;a--){var c=i[a].name;0===c.indexOf("on")&&(delete i.map[c],i.splice(a,1)),"style"===c&&(i[a].value=e.dom.serializeStyle(e.dom.parseStyle(i[a].value),t))}n.start(t,i,o),r=!1}},end:function(e){r||n.end(e)}},W({})).parse(t),n.getContent()},Lt={sanitize:Rt},It=function(e,t){var r,n=t.name;return r=new Ut("img",1),r.shortEnded=!0,Bt(e,t,r),r.attr({width:t.attr("width")||"300",height:t.attr("height")||("audio"===n?"30":"150"),style:t.attr("style"),src:Ht.transparentSrc,"data-mce-object":n,"class":"mce-object mce-object-"+n}),r},qt=function(e,t){var r,n,i,o=t.name;return r=new Ut("span",1),r.attr({contentEditable:"false",style:t.attr("style"),"data-mce-object":o,"class":"mce-preview-object mce-object-"+o}),Bt(e,t,r),n=new Ut(o,1),n.attr({src:t.attr("src"),allowfullscreen:t.attr("allowfullscreen"),style:t.attr("style"),"class":t.attr("class"),width:t.attr("width"),height:t.attr("height"),frameborder:"0"}),i=new Ut("span",1),i.attr("class","mce-shim"),r.append(n),r.append(i),r},Bt=function(e,t,r){var n,i,o,a,c;for(o=t.attributes,a=o.length;a--;)n=o[a].name,i=o[a].value,"width"!==n&&"height"!==n&&"style"!==n&&(("data"===n||"src"===n)&&(i=e.convertURL(i,n)),r.attr("data-mce-p-"+n,i));c=t.firstChild&&t.firstChild.value,c&&(r.attr("data-mce-html",escape(Lt.sanitize(e,c))),r.firstChild=null)},Vt=function(e){var t=e.attr("class");return t&&/\btiny-pageembed\b/.test(t)},Wt=function(e){for(;e=e.parent;)if(e.attr("data-ephox-embed-iri")||Vt(e))return!0;return!1},Gt=function(e){return function(t){for(var r,n,i=t.length;i--;)r=t[i],r.parent&&(r.parent.attr("data-mce-object")||("script"!==r.name||(n=H(M.getScripts(e),r.attr("src"))))&&(n&&(n.width&&r.attr("width",n.width.toString()),n.height&&r.attr("height",n.height.toString())),"iframe"===r.name&&M.hasLiveEmbeds(e)&&Ht.ceFalse?Wt(r)||r.replace(qt(e,r)):Wt(r)||r.replace(It(e,r))))}},Jt={createPreviewIframeNode:qt,createPlaceholderNode:It,placeHolderConverter:Gt},Kt=function(e){e.on("preInit",function(){var t=e.schema.getSpecialElements();E.each("video audio iframe object".split(" "),function(e){t[e]=new RegExp("</"+e+"[^>]*>","gi")});var r=e.schema.getBoolAttrs();E.each("webkitallowfullscreen mozallowfullscreen allowfullscreen".split(" "),function(e){r[e]={}}),e.parser.addNodeFilter("iframe,video,audio,object,embed,script",Jt.placeHolderConverter(e)),e.serializer.addAttributeFilter("data-mce-object",function(t,r){for(var n,i,o,a,c,u,s,l,m=t.length;m--;)if(n=t[m],n.parent){for(s=n.attr(r),i=new Ut(s,1),"audio"!==s&&"script"!==s&&(l=n.attr("class"),i.attr(l&&-1!==l.indexOf("mce-preview-object")?{width:n.firstChild.attr("width"),height:n.firstChild.attr("height")}:{width:n.attr("width"),height:n.attr("height")})),i.attr({style:n.attr("style")}),a=n.attributes,o=a.length;o--;){var d=a[o].name;0===d.indexOf("data-mce-p-")&&i.attr(d.substr(11),a[o].value)}"script"===s&&i.attr("type","text/javascript"),c=n.attr("data-mce-html"),c&&(u=new Ut("#text",3),u.raw=!0,u.value=Lt.sanitize(e,unescape(c)),i.append(u)),n.replace(i)}})}),e.on("SetContent",function(){e.$("span.mce-preview-object").each(function(t,r){var n=e.$(r);0===n.find("span.mce-shim").length&&n.append('<span class="mce-shim"></span>')})})},Qt={setup:Kt},Xt=function(e){e.on("ResolveName",function(e){var t;1===e.target.nodeType&&(t=e.target.getAttribute("data-mce-object"))&&(e.name=t)})},Yt={setup:Xt},Zt=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");("audio"===t||"script"===t)&&e.preventDefault()}),e.on("ObjectResized",function(e){var t,r=e.target;r.getAttribute("data-mce-object")&&(t=r.getAttribute("data-mce-html"),t&&(t=unescape(t),r.setAttribute("data-mce-html",escape(et.updateHtml(t,{width:String(e.width),height:String(e.height)})))))})},er={setup:Zt},tr=function(e,t){return function(r){return e.selection.selectorChangedWithUnbind(t.join(","),r.setActive).unbind}},rr=function(e){e.ui.registry.addToggleButton("media",{tooltip:"Insert/edit media",icon:"embed",onAction:function(){e.execCommand("mceMedia")},onSetup:tr(e,["img[data-mce-object]","span[data-mce-object]","div[data-ephox-embed-iri]"])}),e.ui.registry.addMenuItem("media",{icon:"embed",text:"Media...",onAction:function(){e.execCommand("mceMedia")}})},nr={register:rr};e()}()});
;/*!node_modules/tinymce/plugins/media/index.js*/
amis.define("node_modules/tinymce/plugins/media/index",function(e){e("node_modules/tinymce/plugins/media/plugin")});
;/*!node_modules/tinymce/plugins/table/plugin.js*/
amis.define("node_modules/tinymce/plugins/table/plugin",function(){!function(e){"use strict";function t(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)}}function n(e,t,n,r,o){return e(n,r)?A.some(n):P(o)&&o(n)?A.none():t(n,r,o)}function r(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)?A.from(t.dom().nodeValue):A.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}}function o(){var e=function(e){return Gt.fromDom(e.dom().cloneNode(!1))},t=function(e){return e.dom().ownerDocument},n=function(e){return Tt(e)?"body"===Ct(e)?!0:j(Di,Ct(e)):!1},r=function(e){return Tt(e)?j(["br","img","hr","input"],Ct(e)):!1},o=function(e){return Tt(e)&&"false"===Bt(e,"contenteditable")},i=function(e,t){return e.dom().compareDocumentPosition(t.dom())},u=function(e,t){var n=kt(e);Et(t,n)};return{up:v({selector:Zr,closest:no,predicate:Xr,all:pr}),down:v({selector:Kr,predicate:qr}),styles:v({get:en,getRaw:nn,set:Qt,remove:rn}),attrs:v({get:Bt,set:Dt,remove:Nt,copyTo:u}),insert:v({before:Cr,after:Sr,afterAll:Ar,append:Rr,appendAll:Dr,prepend:xr,wrap:Tr}),remove:v({unwrap:Ir,remove:Br}),create:v({nu:Gt.fromTag,clone:e,text:Gt.fromText}),query:v({comparePosition:i,prevSibling:hr,nextSibling:vr}),property:v({children:br,name:Ct,parent:gr,document:t,isText:Ot,isComment:Rt,isElement:Tt,getText:jo,setText:Fo,isBoundary:n,isEmptyTag:r,isNonEditable:o}),eq:ur,is:sr}}function i(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();Ht(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(0>=r||null===r){var o=en(n,e);return parseFloat(o)||0}return r},o=r,i=function(e,t){return Y(t,function(t,n){var r=en(e,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o},0)},u=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:u}}function u(e){var t=function(t){return e(t).isRtl()?Qa.rtl:Qa.ltr},n=function(e,n){return t(n).delta(e,n)},r=function(e,n){return t(n).positions(e,n)},o=function(e){return t(e).edge(e)};return{delta:n,edge:o,positions:r}}function a(){var e=A.none(),t=function(){e=A.none()},n=function(t,n){var r=e.map(function(e){return t.compare(e,n)});return e=A.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=dg.create({move:fg(["info"])});return{onEvent:r,reset:t,events:o.registry}}function c(){return{onEvent:p,reset:p}}function l(){var e=c(),t=a(),n=e,r=function(){n.reset(),n=t},o=function(){n.reset(),n=e},i=function(e,t){n.onEvent(e,t)},u=function(){return n===t};return{on:r,off:o,isOn:u,onEvent:i,events:t.events}}function f(e,t,n,r){var o=A.none(),i=function(){o=A.none()},u=function(e){r.clear(t),o=Db(e.target(),n)},a=function(i){o.each(function(o){r.clearBeforeUpdate(t),Db(i.target(),n).each(function(i){gu.identify(o,i,n).each(function(n){var u=n.boxes().getOr([]);(u.length>1||1===u.length&&!ur(o,i))&&(r.selectRange(t,u,n.start(),n.finish()),e.selectContents(i))})})})},c=function(){o.each(i)};return{mousedown:u,mouseover:a,mouseup:c}}function s(e,t,n){var r=ht(["mousedown","mouseover","mouseup","keyup","keydown"],[]),o=A.none(),i=Td(e),u=function(t,r,o){n.targets().each(function(n){var u=yo.table(r);u.each(function(u){var a=Gt.fromDom(e.getDoc()),c=ci.cellOperations(p,a,i),l=nw.getOtherCells(u,n,c);Id(e,t,r,o,l)})})},a=function(){Nd(e)},c=Qb.byAttr(Tu,u,a);e.on("init",function(){var n=e.getWin(),i=Ks(e),u=Js(e),a=function(){var t=e.selection,n=Gt.fromDom(t.getStart()),r=Gt.fromDom(t.getEnd()),o=ou.sharedOne(yo.table,[n,r]);o.fold(function(){c.clear(i)},p)},l=Gb.mouse(n,i,u,c),f=Gb.keyboard(n,i,u,c),s=Gb.external(n,i,u,c),d=function(e){return e.raw().shiftKey===!0};e.on("TableSelectorChange",function(e){s(e.start,e.finish)});var m=function(t,r){d(t)&&(r.kill()&&t.kill(),r.selection().each(function(t){var r=Rp.relative(t.start(),t.finish()),o=Lp(n,r);e.selection.setRng(o)}))},h=function(t){var n=Cg(t);if(n.raw().shiftKey&&Wb.isNavigation(n.raw().which)){var r=e.selection.getRng(),o=Gt.fromDom(r.startContainer),i=Gt.fromDom(r.endContainer);f.keyup(n,o,r.startOffset,i,r.endOffset).each(function(e){m(n,e)})}},v=function(n){var r=Cg(n);t().each(function(e){e.hideBars()});var o=e.selection.getRng(),i=Gt.fromDom(e.selection.getStart()),u=Gt.fromDom(o.startContainer),a=Gt.fromDom(o.endContainer),c=id.directionAt(i).isRtl()?Wb.rtl:Wb.ltr;f.keydown(r,u,o.startOffset,a,o.endOffset,c).each(function(e){m(r,e)}),t().each(function(e){e.showBars()})},b=function(e){return 0===e.button},w=function(e){return void 0===e.buttons?!0:Im.browser.isEdge()&&0===e.buttons?!0:0!==(1&e.buttons)},y=function(e){b(e)&&rw(e)&&l.mousedown(Cg(e))},C=function(e){w(e)&&rw(e)&&l.mouseover(Cg(e))},S=function(e){b(e)&&rw(e)&&l.mouseup(Cg(e))},x=function(){var e=g(Gt.fromDom(i)),t=g(0),n=function(n){var r=Gt.fromDom(n.target);if("td"===Ct(r)||"th"===Ct(r)){var o=e.get(),i=t.get();ur(o,r)&&n.timeStamp-i<300&&(n.preventDefault(),s(r,r))}e.set(r),t.set(n.timeStamp)};return{touchEnd:n}},R=x();e.on("mousedown",y),e.on("mouseover",C),e.on("mouseup",S),e.on("touchend",R.touchEnd),e.on("keyup",h),e.on("keydown",v),e.on("NodeChange",a),o=A.some(r({mousedown:y,mouseover:C,mouseup:S,keyup:h,keydown:v}))});var l=function(){o.each(function(){})};return{clear:c.clear,destroy:l}}function d(e){var t=ow(e),n=iw(e,t),r=Zg(e),o=s(e,r.lazyResize,n),i=jd(e,r.lazyWire),u=g(A.none());return ig.registerCommands(e,i,o,t,u),qu.registerEvents(e,t,i,o),fw.addMenuItems(e,n),cw.addButtons(e,n),cw.addToolbars(e),e.on("PreInit",function(){e.serializer.addTempAttr(Tu.firstSelected()),e.serializer.addTempAttr(Tu.lastSelected())}),dd(e)&&e.on("keydown",function(t){Ph.handle(t,e,i,r.lazyWire)}),e.on("remove",function(){r.destroy(),o.destroy()}),mw(e,u,r,n)}function m(){D.add("table",d)}var g=function(e){var t=e,n=function(){return t},r=function(e){t=e},o=function(){return g(n())};return{get:n,set:r,clone:o}},p=function(){},h=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},v=function(e){return function(){return e}},b=function(e){return e},w=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},y=function(e){return function(){throw new Error(e)}},C=v(!1),S=v(!0),x=function(){return R},R=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e){return e()},is:C,isSome:C,isNone:S,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:v(null),getOrUndefined:v(void 0),or:n,orThunk:t,map:x,each:p,bind:x,exists:C,forall:S,filter:x,equals:e,equals_:e,toArray:function(){return[]},toString:v("none()")};return Object.freeze&&Object.freeze(r),r}(),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)},is:function(t){return e===t},isSome:S,isNone:C,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:R},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(C,function(t){return n(e,t)})}};return o},O=function(e){return null===e||void 0===e?R:T(e)},A={some:T,none:x,from:O},D=tinymce.util.Tools.resolve("tinymce.PluginManager"),E=function(e){if(null===e)return"null";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},B=function(e){return function(t){return E(t)===e}},I=B("string"),N=B("array"),k=B("boolean"),P=B("function"),M=B("number"),W=Array.prototype.slice,_=Array.prototype.indexOf,L=Array.prototype.push,H=function(e,t){return _.call(e,t)},j=function(e,t){return H(e,t)>-1},z=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return!0}return!1},F=function(e,t){for(var n=e.length,r=new Array(n),o=0;n>o;o++){var i=e[o];r[o]=t(i,o)}return r},U=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];t(o,n)}},V=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},q=function(e,t){for(var n=[],r=0,o=e.length;o>r;r++){var i=e[r];t(i,r)&&n.push(i)}return n},G=function(e,t,n){return V(e,function(e){n=t(n,e)}),n},Y=function(e,t,n){return U(e,function(e){n=t(n,e)}),n},K=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return A.some(o)}return A.none()},X=function(e,t){for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n))return A.some(n)}return A.none()},$=function(e){for(var t=[],n=0,r=e.length;r>n;++n){if(!N(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);L.apply(t,e[n])}return t},J=function(e,t){return $(F(e,t))},Q=function(e,t){for(var n=0,r=e.length;r>n;++n){var o=e[n];if(t(o,n)!==!0)return!1}return!0},Z=function(e){var t=W.call(e,0);return t.reverse(),t},et=function(e){return 0===e.length?A.none():A.some(e[e.length-1])},tt=(P(Array.from)?Array.from:function(e){return W.call(e)},function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return A.none()}),nt=Object.keys,rt=Object.hasOwnProperty,ot=function(e,t){for(var n=nt(e),r=0,o=n.length;o>r;r++){var i=n[r],u=e[i];t(u,i)}},it=function(e,t){return ut(e,function(e,n){return{k:n,v:t(e,n)}})},ut=function(e,t){var n={};return ot(e,function(e,r){var o=t(e,r);n[o.k]=o.v}),n},at=function(e,t){return ct(e,t)?A.from(e[t]):A.none()},ct=function(e,t){return rt.call(e,t)},lt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e.length!==t.length)throw new Error('Wrong number of arguments to struct. Expected "['+e.length+']", got '+t.length+" arguments");var r={};return U(e,function(e,n){r[e]=v(t[n])}),r}},ft=function(e){return e.slice(0).sort()},st=function(e,t){throw new Error("All required keys ("+ft(e).join(", ")+") were not specified. Specified keys were: "+ft(t).join(", ")+".")},dt=function(e){throw new Error("Unsupported keys for object: "+ft(e).join(", "))},mt=function(e,t){if(!N(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");U(t,function(t){if(!I(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")})},gt=function(e,t){throw new Error("All values need to be of type: "+t+". Keys ("+ft(e).join(", ")+") were not.")},pt=function(e){var t=ft(e),n=K(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(", ")+"].")})},ht=function(e,t){var n=e.concat(t);if(0===n.length)throw new Error("You must specify at least one required or optional field.");return mt("required",e),mt("optional",t),pt(n),function(r){var o=nt(r),i=Q(e,function(e){return j(o,e)});i||st(e,o);var u=q(o,function(e){return!j(n,e)});u.length>0&&dt(u);var a={};return U(e,function(e){a[e]=v(r[e])}),U(t,function(e){a[e]=v(Object.prototype.hasOwnProperty.call(r,e)?A.some(r[e]):A.none())}),a}},vt=(e.Node.ATTRIBUTE_NODE,e.Node.CDATA_SECTION_NODE,e.Node.COMMENT_NODE),bt=e.Node.DOCUMENT_NODE,wt=(e.Node.DOCUMENT_TYPE_NODE,e.Node.DOCUMENT_FRAGMENT_NODE,e.Node.ELEMENT_NODE),yt=e.Node.TEXT_NODE,Ct=(e.Node.PROCESSING_INSTRUCTION_NODE,e.Node.ENTITY_REFERENCE_NODE,e.Node.ENTITY_NODE,e.Node.NOTATION_NODE,"undefined"!=typeof e.window?e.window:Function("return this;")(),function(e){var t=e.dom().nodeName;return t.toLowerCase()}),St=function(e){return e.dom().nodeType},xt=function(e){return function(t){return St(t)===e}},Rt=function(e){return St(e)===vt||"#comment"===Ct(e)},Tt=xt(wt),Ot=xt(yt),At=function(t,n,r){if(!(I(r)||k(r)||M(r)))throw e.console.error("Invalid call to Attr.set. Key ",n,":: Value ",r,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(n,r+"")},Dt=function(e,t,n){At(e.dom(),t,n)},Et=function(e,t){var n=e.dom();ot(t,function(e,t){At(n,t,e)})},Bt=function(e,t){var n=e.dom().getAttribute(t);return null===n?void 0:n},It=function(e,t){var n=e.dom();return n&&n.hasAttribute?n.hasAttribute(t):!1},Nt=function(e,t){e.dom().removeAttribute(t)},kt=function(e){return Y(e.dom().attributes,function(e,t){return e[t.name]=t.value,e},{})},Pt=function(e,t,n){if(""===t)return!0;if(e.length<t.length)return!1;var r=e.substr(n,n+t.length);return r===t},Mt=function(e,t){return-1!==e.indexOf(t)},Wt=function(e,t){return Pt(e,t,0)},_t=function(e,t){return Pt(e,t,e.length-t.length)},Lt=function(e){return e.replace(/^\s+|\s+$/g,"")},Ht=function(e){return void 0!==e.style&&P(e.style.getPropertyValue)},jt=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}},zt=function(t,n){var r=n||e.document,o=r.createElement("div");if(o.innerHTML=t,!o.hasChildNodes()||o.childNodes.length>1)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Vt(o.childNodes[0])},Ft=function(t,n){var r=n||e.document,o=r.createElement(t);return Vt(o)},Ut=function(t,n){var r=n||e.document,o=r.createTextNode(t);return Vt(o)},Vt=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:v(e)}},qt=function(e,t,n){var r=e.dom();return A.from(r.elementFromPoint(t,n)).map(Vt)},Gt={fromHtml:zt,fromTag:Ft,fromText:Ut,fromDom:Vt,fromPoint:qt},Yt=function(e){var t=Ot(e)?e.dom().parentNode:e.dom();return void 0!==t&&null!==t&&t.ownerDocument.body.contains(t)},Kt=jt(function(){return Xt(Gt.fromDom(e.document))}),Xt=function(e){var t=e.dom().body;if(null===t||void 0===t)throw new Error("Body is not available yet");return Gt.fromDom(t)},$t=function(t,n,r){if(!I(r))throw e.console.error("Invalid call to CSS.set. Property ",n,":: Value ",r,":: Element ",t),new Error("CSS value must be a string: "+r);Ht(t)&&t.style.setProperty(n,r)},Jt=function(e,t){Ht(e)&&e.style.removeProperty(t)},Qt=function(e,t,n){var r=e.dom();$t(r,t,n)},Zt=function(e,t){var n=e.dom();ot(t,function(e,t){$t(n,t,e)})},en=function(t,n){var r=t.dom(),o=e.window.getComputedStyle(r),i=o.getPropertyValue(n),u=""!==i||Yt(t)?i:tn(r,n);return null===u?void 0:u},tn=function(e,t){return Ht(e)?e.style.getPropertyValue(t):""},nn=function(e,t){var n=e.dom(),r=tn(n,t);return A.from(r).filter(function(e){return e.length>0})},rn=function(e,t){var n=e.dom();Jt(n,t),It(e,"style")&&""===Lt(Bt(e,"style"))&&Nt(e,"style")},on=function(e,t){var n=e.dom(),r=t.dom();Ht(n)&&Ht(r)&&(r.style.cssText=n.style.cssText)},un=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},an=function(t,n){return un(t,n,e.Node.DOCUMENT_POSITION_PRECEDING)},cn=function(t,n){return un(t,n,e.Node.DOCUMENT_POSITION_CONTAINED_BY)},ln={documentPositionPreceding:an,documentPositionContainedBy:cn},fn=function(){return fn=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fn.apply(this,arguments)},sn=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}return void 0},dn=function(e,t){var n=sn(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return pn(r(1),r(2))},mn=function(e,t){var n=String(t).toLowerCase();return 0===e.length?gn():dn(e,n)},gn=function(){return pn(0,0)},pn=function(e,t){return{major:e,minor:t}},hn={nu:pn,detect:mn,unknown:gn},vn="Edge",bn="Chrome",wn="IE",yn="Opera",Cn="Firefox",Sn="Safari",xn=function(e,t){return function(){return t===e}},Rn=function(){return Tn({current:void 0,version:hn.unknown()})},Tn=function(e){var t=e.current,n=e.version;return{current:t,version:n,isEdge:xn(vn,t),isChrome:xn(bn,t),isIE:xn(wn,t),isOpera:xn(yn,t),isFirefox:xn(Cn,t),isSafari:xn(Sn,t)}},On={unknown:Rn,nu:Tn,edge:v(vn),chrome:v(bn),ie:v(wn),opera:v(yn),firefox:v(Cn),safari:v(Sn)},An="Windows",Dn="iOS",En="Android",Bn="Linux",In="OSX",Nn="Solaris",kn="FreeBSD",Pn="ChromeOS",Mn=function(e,t){return function(){return t===e}},Wn=function(){return _n({current:void 0,version:hn.unknown()})},_n=function(e){var t=e.current,n=e.version;return{current:t,version:n,isWindows:Mn(An,t),isiOS:Mn(Dn,t),isAndroid:Mn(En,t),isOSX:Mn(In,t),isLinux:Mn(Bn,t),isSolaris:Mn(Nn,t),isFreeBSD:Mn(kn,t),isChromeOS:Mn(Pn,t)}},Ln={unknown:Wn,nu:_n,windows:v(An),ios:v(Dn),android:v(En),linux:v(Bn),osx:v(In),solaris:v(Nn),freebsd:v(kn),chromeos:v(Pn)},Hn=function(e,t,n,r){var o=e.isiOS()&&/ipad/i.test(n)===!0,i=e.isiOS()&&!o,u=e.isiOS()||e.isAndroid(),a=u||r("(pointer:coarse)"),c=o||!i&&u&&r("(min-device-width:768px)"),l=i||u&&!c,f=t.isSafari()&&e.isiOS()&&/safari/i.test(n)===!1,s=!l&&!c&&!f;return{isiPad:v(o),isiPhone:v(i),isTablet:v(c),isPhone:v(l),isTouch:v(a),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:v(f),isDesktop:v(s)}},jn=function(e,t){var n=String(t).toLowerCase();return K(e,function(e){return e.search(n)})},zn=function(e,t){return jn(e,t).map(function(e){var n=hn.detect(e.versionRegexes,t);return{current:e.name,version:n}})},Fn=function(e,t){return jn(e,t).map(function(e){var n=hn.detect(e.versionRegexes,t);return{current:e.name,version:n}})},Un={detectBrowser:zn,detectOs:Fn},Vn=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,qn=function(e){return function(t){return Mt(t,e)}},Gn=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Mt(e,"edge/")&&Mt(e,"chrome")&&Mt(e,"safari")&&Mt(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Vn],search:function(e){return Mt(e,"chrome")&&!Mt(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Mt(e,"msie")||Mt(e,"trident")}},{name:"Opera",versionRegexes:[Vn,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:qn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:qn("firefox")},{name:"Safari",versionRegexes:[Vn,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Mt(e,"safari")||Mt(e,"mobile/"))&&Mt(e,"applewebkit")}}],Yn=[{name:"Windows",search:qn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Mt(e,"iphone")||Mt(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:qn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:qn("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:qn("linux"),versionRegexes:[]},{name:"Solaris",search:qn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:qn("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:qn("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Kn={browsers:v(Gn),oses:v(Yn)},Xn=function(e,t){var n=Kn.browsers(),r=Kn.oses(),o=Un.detectBrowser(n,e).fold(On.unknown,On.nu),i=Un.detectOs(r,e).fold(Ln.unknown,Ln.nu),u=Hn(i,o,e,t);return{browser:o,os:i,deviceType:u}},$n={detect:Xn},Jn=function(t){return e.window.matchMedia(t).matches},Qn=g($n.detect(e.navigator.userAgent,Jn)),Zn=function(){return Qn.get()},er=wt,tr=bt,nr=function(e,t){var n=e.dom();if(n.nodeType!==er)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")},rr=function(e){return e.nodeType!==er&&e.nodeType!==tr||0===e.childElementCount},or=function(t,n){var r=void 0===n?e.document:n.dom();return rr(r)?[]:F(r.querySelectorAll(t),Gt.fromDom)},ir=function(t,n){var r=void 0===n?e.document:n.dom();return rr(r)?A.none():A.from(r.querySelector(t)).map(Gt.fromDom)},ur=function(e,t){return e.dom()===t.dom()},ar=function(e,t){var n=e.dom(),r=t.dom();return n===r?!1:n.contains(r)},cr=function(e,t){return ln.documentPositionContainedBy(e.dom(),t.dom())},lr=Zn().browser,fr=lr.isIE()?cr:ar,sr=nr,dr=function(e){return Gt.fromDom(e.dom().ownerDocument)},mr=function(e){return Gt.fromDom(e.dom().ownerDocument.defaultView)},gr=function(e){return A.from(e.dom().parentNode).map(Gt.fromDom)},pr=function(e,t){for(var n=P(t)?t:C,r=e.dom(),o=[];null!==r.parentNode&&void 0!==r.parentNode;){var i=r.parentNode,u=Gt.fromDom(i);if(o.push(u),n(u)===!0)break;r=i}return o},hr=function(e){return A.from(e.dom().previousSibling).map(Gt.fromDom)},vr=function(e){return A.from(e.dom().nextSibling).map(Gt.fromDom)},br=function(e){return F(e.dom().childNodes,Gt.fromDom)},wr=function(e,t){var n=e.dom().childNodes;return A.from(n[t]).map(Gt.fromDom)},yr=function(e){return wr(e,0)},Cr=(lt("element","offset"),function(e,t){var n=gr(e);n.each(function(n){n.dom().insertBefore(t.dom(),e.dom())})}),Sr=function(e,t){var n=vr(e);n.fold(function(){var n=gr(e);n.each(function(e){Rr(e,t)})},function(e){Cr(e,t)})},xr=function(e,t){var n=yr(e);n.fold(function(){Rr(e,t)},function(n){e.dom().insertBefore(t.dom(),n.dom())})},Rr=function(e,t){e.dom().appendChild(t.dom())},Tr=function(e,t){Cr(e,t),Rr(t,e)},Or=function(e,t){U(t,function(t){Cr(e,t)})},Ar=function(e,t){U(t,function(n,r){var o=0===r?e:t[r-1];Sr(o,n)})},Dr=function(e,t){U(t,function(t){Rr(e,t)})},Er=function(e){e.dom().textContent="",U(br(e),function(e){Br(e)})},Br=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},Ir=function(e){var t=br(e);t.length>0&&Or(e,t),Br(e)},Nr=(lt("width","height"),lt("width","height"),lt("rows","columns")),kr=lt("row","column"),Pr=(lt("x","y"),lt("element","rowspan","colspan")),Mr=lt("element","rowspan","colspan","isNew"),Wr=lt("element","rowspan","colspan","row","column"),_r=lt("element","cells","section"),Lr=lt("element","isNew"),Hr=lt("element","cells","section","isNew"),jr=lt("cells","section"),zr=lt("details","section"),Fr=lt("startRow","startCol","finishRow","finishCol"),Ur=function(e,t,n){return q(pr(e,n),t)},Vr=function(e,t){return q(br(e),t)},qr=function(e,t){var n=[];return U(br(e),function(e){t(e)&&(n=n.concat([e])),n=n.concat(qr(e,t))}),n},Gr=function(e,t,n){return Ur(e,function(e){return nr(e,t)},n)},Yr=function(e,t){return Vr(e,function(e){return nr(e,t)})},Kr=function(e,t){return or(t,e)},Xr=function(e,t,n){for(var r=e.dom(),o=P(n)?n:v(!1);r.parentNode;){r=r.parentNode;var i=Gt.fromDom(r);if(t(i))return A.some(i);if(o(i))break}return A.none()},$r=function(e,t,r){var o=function(e,t){return t(e)};return n(o,Xr,e,t,r)},Jr=function(e,t){var n=function(e){return t(Gt.fromDom(e))},r=K(e.dom().childNodes,n);return r.map(Gt.fromDom)},Qr=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var o=Gt.fromDom(e.childNodes[r]);if(t(o))return A.some(o);var i=n(e.childNodes[r]);if(i.isSome())return i}return A.none()};return n(e.dom())},Zr=function(e,t,n){return Xr(e,function(e){return nr(e,t)},n)},eo=function(e,t){return Jr(e,function(e){return nr(e,t)})},to=function(e,t){return ir(t,e)},no=function(e,t,r){return n(nr,Zr,e,t,r)},ro=function(e,t){return oo(e,t,v(!0))},oo=function(e,t,n){return J(br(e),function(e){return nr(e,t)?n(e)?[e]:[]:oo(e,t,n)})},io={firstLayer:ro,filterFirstLayer:oo},uo=function(e,t,n){if(void 0===n&&(n=C),n(t))return A.none();if(j(e,Ct(t)))return A.some(t);var r=function(e){return nr(e,"table")||n(e)};return Zr(t,e.join(","),r)},ao=function(e,t){return uo(["td","th"],e,t)},co=function(e){return io.firstLayer(e,"th,td")},lo=function(e,t){return uo(["caption","tr","tbody","tfoot","thead"],e,t)},fo=function(e,t){return gr(t).map(function(t){return Yr(t,e)})},so=t(fo,"th,td"),mo=t(fo,"tr"),go=function(e){return to(e,"th,td")},po=function(e,t){return no(e,"table",t)},ho=function(e,t){return uo(["tr"],e,t)},vo=function(e){return io.firstLayer(e,"tr")},bo=function(e,t){return parseInt(Bt(e,t),10)},wo=function(e,t,n){var r=bo(e,t),o=bo(e,n);return Nr(r,o)},yo={cell:ao,firstCell:go,cells:co,neighbourCells:so,table:po,row:ho,rows:vo,notCell:lo,neighbourRows:mo,attr:bo,grid:wo},Co=function(e){var t=yo.rows(e);return F(t,function(e){var t=e,n=gr(t),r=n.map(function(e){var t=Ct(e);return"tfoot"===t||"thead"===t||"tbody"===t?t:"tbody"}).getOr("tbody"),o=F(yo.cells(e),function(e){var t=It(e,"rowspan")?parseInt(Bt(e,"rowspan"),10):1,n=It(e,"colspan")?parseInt(Bt(e,"colspan"),10):1;return Pr(e,t,n)});return _r(t,o,r)})},So=function(e,t){return F(e,function(e){var n=F(yo.cells(e),function(e){var t=It(e,"rowspan")?parseInt(Bt(e,"rowspan"),10):1,n=It(e,"colspan")?parseInt(Bt(e,"colspan"),10):1;return Pr(e,t,n)});return _r(e,n,t.section())})},xo={fromTable:Co,fromPastedRows:So},Ro=function(e,t){return e+","+t},To=function(e,t,n){var r=e.access()[Ro(t,n)];return void 0!==r?A.some(r):A.none()},Oo=function(e,t,n){var r=Ao(e,function(e){return n(t,e.element())});return r.length>0?A.some(r[0]):A.none()},Ao=function(e,t){var n=J(e.all(),function(e){return e.cells()});return q(n,t)},Do=function(e){var t={},n=[],r=e.length,o=0;U(e,function(e,r){var i=[];U(e.cells(),function(e){for(var n=0;void 0!==t[Ro(r,n)];)n++;for(var u=Wr(e.element(),e.rowspan(),e.colspan(),r,n),a=0;a<e.colspan();a++)for(var c=0;c<e.rowspan();c++){var l=r+c,f=n+a,s=Ro(l,f);t[s]=u,o=Math.max(o,f+1)}i.push(u)}),n.push(_r(e.element(),i,e.section()))});var i=Nr(r,o);return{grid:v(i),access:v(t),all:v(n)}},Eo=function(e){var t=F(e.all(),function(e){return e.cells()});return $(t)},Bo={generate:Do,getAt:To,findItem:Oo,filterItems:Ao,justCells:Eo},Io=lt("minRow","minCol","maxRow","maxCol"),No=function(e,t){var n=e.grid().columns(),r=e.grid().rows(),o=r,i=n,u=0,a=0;return ot(e.access(),function(e){if(t(e)){var n=e.row(),r=n+e.rowspan()-1,c=e.column(),l=c+e.colspan()-1;o>n?o=n:r>u&&(u=r),i>c?i=c:l>a&&(a=l)}}),Io(o,i,u,a)},ko=function(e,t,n){var r=e[n].element(),o=Gt.fromTag("td");Rr(o,Gt.fromTag("br"));var i=t?Rr:xr;i(r,o)},Po=function(e,t,n,r){for(var o=t.grid().columns(),i=t.grid().rows(),u=0;i>u;u++)for(var a=!1,c=0;o>c;c++)if(!(u<n.minRow()||u>n.maxRow()||c<n.minCol()||c>n.maxCol())){var l=Bo.getAt(t,u,c).filter(r).isNone();l?ko(e,a,u):a=!0}},Mo=function(e,t){var n=q(io.firstLayer(e,"tr"),function(e){return 0===e.dom().childElementCount});U(n,Br),(t.minCol()===t.maxCol()||t.minRow()===t.maxRow())&&U(io.firstLayer(e,"th,td"),function(e){Nt(e,"rowspan"),Nt(e,"colspan")}),Nt(e,"width"),Nt(e,"height"),rn(e,"width"),rn(e,"height")},Wo=function(e,t){var n=function(e){return nr(e.element(),t)},r=xo.fromTable(e),o=Bo.generate(r),i=No(o,n),u="th:not("+t+"),td:not("+t+")",a=io.filterFirstLayer(e,"th,td",function(e){return nr(e,u)});return U(a,Br),Po(r,o,i,n),Mo(e,i),e},_o={extract:Wo},Lo=" ",Ho=r(Ot,"text"),jo=function(e){return Ho.get(e)},zo=function(e){return Ho.getOption(e)},Fo=function(e,t){Ho.set(e,t)},Uo=function(e){return"img"===Ct(e)?1:zo(e).fold(function(){return br(e).length},function(e){return e.length})},Vo=function(e){return zo(e).filter(function(e){return 0!==e.trim().length||e.indexOf(Lo)>-1}).isSome()},qo=["img","br"],Go=function(e){var t=Vo(e);return t||j(qo,Ct(e))},Yo=function(e){return Qr(e,Go)},Ko=function(e){return Xo(e,Go)},Xo=function(e,t){var n=function(e){for(var r=br(e),o=r.length-1;o>=0;o--){var i=r[o];if(t(i))return A.some(i);var u=n(i);if(u.isSome())return u}return A.none()};return n(e)},$o=function(e,t){return Gt.fromDom(e.dom().cloneNode(t))},Jo=function(e){return $o(e,!1)},Qo=function(e){return $o(e,!0)},Zo=function(e,t){var n=Gt.fromTag(t),r=kt(e);return Et(n,r),n},ei=function(e,t){var n=Zo(e,t),r=br(Qo(e));return Dr(n,r),n},ti=function(){var e=Gt.fromTag("td");return Rr(e,Gt.fromTag("br")),e},ni=function(e,t,n){var r=ei(e,t);return ot(n,function(e,t){null===e?Nt(r,t):Dt(r,t,e)}),r},ri=function(e){return e},oi=function(e){return function(){return Gt.fromTag("tr",e.dom())}},ii=function(e,t,n){var r=Yo(e);return r.map(function(r){var o=n.join(","),i=Gr(r,o,function(t){return ur(t,e)});return G(i,function(e,t){var n=Jo(t);return Nt(n,"contenteditable"),Rr(e,n),n},t)}).getOr(t)},ui=function(e,t,n){var r=function(t){var r=dr(t.element()),o=Gt.fromTag(Ct(t.element()),r.dom()),i=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),u=i.length>0?ii(t.element(),o,i):o;return Rr(u,Gt.fromTag("br")),on(t.element(),o),rn(o,"height"),1!==t.colspan()&&rn(t.element(),"width"),e(t.element(),o),o};return{row:oi(t),cell:r,replace:ni,gap:ti}},ai=function(e){return{row:oi(e),cell:ti,replace:ri,gap:ti}},ci={cellOperations:ui,paste:ai},li=function(t,n){var r=n||e.document,o=r.createElement("div");return o.innerHTML=t,br(Gt.fromDom(o))},fi=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()},si=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()},di=function(e,n){for(var r=!0,o=t(si,n),i=n.startRow();i<=n.finishRow();i++)for(var u=n.startCol();u<=n.finishCol();u++)r=r&&Bo.getAt(e,i,u).exists(o);return r?A.some(n):A.none()},mi={inSelection:fi,isWithin:si,isRectangular:di},gi=function(e,t){return Fr(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))},pi=function(e,t,n){var r=Bo.findItem(e,t,ur),o=Bo.findItem(e,n,ur);return r.bind(function(e){return o.map(function(t){return gi(e,t)})})},hi=function(e,t,n){return pi(e,t,n).bind(function(t){return mi.isRectangular(e,t)})},vi={getAnyBox:pi,getBox:hi},bi=function(e,t,n,r){return Bo.findItem(e,t,ur).bind(function(t){var o=n>0?t.row()+t.rowspan()-1:t.row(),i=r>0?t.column()+t.colspan()-1:t.column(),u=Bo.getAt(e,o+n,i+r);return u.map(function(e){return e.element()})})},wi=function(e,n,r){return vi.getAnyBox(e,n,r).map(function(n){var r=Bo.filterItems(e,t(mi.inSelection,n));return F(r,function(e){return e.element()})})},yi=function(e,t){var n=function(e,t){return fr(t,e)};return Bo.findItem(e,t,n).map(function(e){return e.element()})},Ci={moveBy:bi,intercepts:wi,parentCell:yi},Si=function(e,t,n){return yo.table(e).bind(function(r){var o=Oi(r);return Ci.moveBy(o,e,t,n)})},xi=function(e,t,n){var r=Oi(e);return Ci.intercepts(r,t,n)},Ri=function(e,t,n,r,o){var i=Oi(e),u=ur(e,n)?A.some(t):Ci.parentCell(i,t),a=ur(e,o)?A.some(r):Ci.parentCell(i,r);return u.bind(function(e){return a.bind(function(t){return Ci.intercepts(i,e,t)})})},Ti=function(e,t,n){var r=Oi(e);return vi.getBox(r,t,n)},Oi=function(e){var t=xo.fromTable(e);return Bo.generate(t)},Ai={moveBy:Si,intercepts:xi,nestedIntercepts:Ri,getBox:Ti},Di=["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"],Ei=lt("left","right"),Bi=lt("first","second","splits"),Ii=function(e,n,r){var o=e.property().children(n),i=X(o,t(e.eq,r));return i.map(function(e){return{before:v(o.slice(0,e)),after:v(o.slice(e+1))}})},Ni=function(e,t,n){return Ii(e,t,n).map(function(n){var r=e.create().clone(t);return e.insert().appendAll(r,n.after()),e.insert().after(t,r),Ei(t,r)})},ki=function(e,t,n){return Ii(e,t,n).map(function(r){var o=e.create().clone(t);return e.insert().appendAll(o,r.before().concat([n])),e.insert().appendAll(t,r.after()),e.insert().before(t,o),Ei(o,t)})},Pi=function(e,t,n,r){var o=function(t,i,u){var a=Bi(t,A.none(),u);return n(t)?Bi(t,i,u):e.property().parent(t).bind(function(i){return r(e,i,t).map(function(e){var t=[{first:e.left,second:e.right}],r=n(i)?i:e.left();
return o(r,A.some(e.right()),u.concat(t))})}).getOr(a)};return o(t,A.none(),[])},Mi=function(e,t,n,r){var o=n[0],i=n.slice(1);return r(e,t,o,i)},Wi=function(e,t,n){return n.length>0?Mi(e,t,n,_i):A.none()},_i=function(e,t,n,r){var o=t(e,n);return G(r,function(n,r){var o=t(e,r);return Li(e,n,o)},o)},Li=function(e,n,r){return n.bind(function(n){return r.filter(t(e.eq,n))})},Hi=function(e,n){return t(e.eq,n)},ji=function(e,t,n,r){var o=e.property().children(t);if(e.eq(t,n[0]))return A.some([n[0]]);if(e.eq(t,r[0]))return A.some([r[0]]);var i=function(n){var r=Z(n),i=X(r,Hi(e,t)).getOr(-1),u=i<r.length-1?r[i+1]:r[i];return X(o,Hi(e,u))},u=i(n),a=i(r);return u.bind(function(e){return a.map(function(t){var n=Math.min(e,t),r=Math.max(e,t);return o.slice(n,r+1)})})},zi=function(e,t,n,r){void 0===r&&(r=C);var o=[t].concat(e.up().all(t)),i=[n].concat(e.up().all(n)),u=function(e){var t=X(e,r);return t.fold(function(){return e},function(t){return e.slice(0,t+1)})},a=u(o),c=u(i),l=K(a,function(t){return z(c,Hi(e,t))});return{firstpath:v(a),secondpath:v(c),shared:v(l)}},Fi=function(e,t,n){var r=zi(e,t,n);return r.shared().bind(function(t){return ji(e,t,r.firstpath(),r.secondpath())})},Ui={subset:Fi,ancestors:zi},Vi=Wi,qi=Ui.subset,Gi=Ui.ancestors,Yi=ki,Ki=Ni,Xi=Pi,$i={sharedOne:Vi,subset:qi,ancestors:Gi,breakToLeft:Yi,breakToRight:Ki,breakPath:Xi},Ji=o(),Qi=function(e,t){return $i.sharedOne(Ji,function(t,n){return e(n)},t)},Zi=function(e,t){return $i.subset(Ji,e,t)},eu=function(e,t,n){return $i.ancestors(Ji,e,t,n)},tu=function(e,t){return $i.breakToLeft(Ji,e,t)},nu=function(e,t){return $i.breakToRight(Ji,e,t)},ru=function(e,t,n){return $i.breakPath(Ji,e,t,function(e,t,r){return n(t,r)})},ou={sharedOne:Qi,subset:Zi,ancestors:eu,breakToLeft:tu,breakToRight:nu,breakPath:ru},iu=ht(["boxes","start","finish"],[]),uu={create:iu},au=function(e){return Zr(e,"table")},cu=function(e,t,n){var r=function(e){return function(t){return void 0!==n&&n(t)||ur(t,e)}};return ur(e,t)?A.some(uu.create({boxes:A.some([e]),start:e,finish:t})):au(e).bind(function(o){return au(t).bind(function(i){if(ur(o,i))return A.some(uu.create({boxes:Ai.intercepts(o,e,t),start:e,finish:t}));if(fr(o,i)){var u=Gr(t,"td,th",r(o)),a=u.length>0?u[u.length-1]:t;return A.some(uu.create({boxes:Ai.nestedIntercepts(o,e,o,t,i),start:e,finish:a}))}if(fr(i,o)){var u=Gr(e,"td,th",r(i)),c=u.length>0?u[u.length-1]:e;return A.some(uu.create({boxes:Ai.nestedIntercepts(i,e,o,t,i),start:e,finish:c}))}return ou.ancestors(e,t).shared().bind(function(u){return no(u,"table",n).bind(function(n){var u=Gr(t,"td,th",r(n)),a=u.length>0?u[u.length-1]:t,c=Gr(e,"td,th",r(n)),l=c.length>0?c[c.length-1]:e;return A.some(uu.create({boxes:Ai.nestedIntercepts(n,e,o,t,i),start:l,finish:a}))})})})})},lu=function(e,t){var n=Kr(e,t);return n.length>0?A.some(n):A.none()},fu=function(e,t){return K(e,function(e){return nr(e,t)})},su=function(e,t,n){return to(e,t).bind(function(t){return to(e,n).bind(function(e){return ou.sharedOne(au,[t,e]).map(function(n){return{first:v(t),last:v(e),table:v(n)}})})})},du=function(e,t){return Zr(e,"table").bind(function(n){return to(n,t).bind(function(t){return cu(t,e).bind(function(e){return e.boxes().map(function(t){return{boxes:v(t),start:v(e.start()),finish:v(e.finish())}})})})})},mu=function(e,t,n,r,o){return fu(e,o).bind(function(e){return Ai.moveBy(e,t,n).bind(function(e){return du(e,r)})})},gu={identify:cu,retrieve:lu,shiftSelection:mu,getEdges:su},pu=function(e,t){return gu.retrieve(e,t)},hu=function(e,t,n){return gu.getEdges(e,t,n).bind(function(t){var n=function(t){return ur(e,t)},r=Zr(t.first(),"thead,tfoot,tbody,table",n),o=Zr(t.last(),"thead,tfoot,tbody,table",n);return r.bind(function(e){return o.bind(function(n){return ur(e,n)?Ai.getBox(t.table(),t.first(),t.last()):A.none()})})})},vu={retrieve:pu,retrieveBox:hu},bu="data-mce-selected",wu="td["+bu+"],th["+bu+"]",yu="["+bu+"]",Cu="data-mce-first-selected",Su="td["+Cu+"],th["+Cu+"]",xu="data-mce-last-selected",Ru="td["+xu+"],th["+xu+"]",Tu={selected:v(bu),selectedSelector:v(wu),attributeSelector:v(yu),firstSelected:v(Cu),firstSelectedSelector:v(Su),lastSelected:v(xu),lastSelectedSelector:v(Ru)},Ou=function(t){if(!N(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var n=[],r={};return U(t,function(o,i){var u=nt(o);if(1!==u.length)throw new Error("one and only one name per case");var a=u[0],c=o[a];if(void 0!==r[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!N(c))throw new Error("case arguments must be an array");n.push(a),r[a]=function(){var r=arguments.length;if(r!==c.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+c.length+" ("+c+"), got "+r);for(var o=new Array(r),u=0;u<o.length;u++)o[u]=arguments[u];var l=function(e){var t=nt(e);if(n.length!==t.length)throw new Error("Wrong number of arguments to match. Expected: "+n.join(",")+"\nActual: "+t.join(","));var r=Q(n,function(e){return j(t,e)});if(!r)throw new Error("Not all branches were specified when using match. Specified: "+t.join(", ")+"\nRequired: "+n.join(", "));return e[a].apply(null,o)};return{fold:function(){if(arguments.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+arguments.length);var e=arguments[i];return e.apply(null,o)},match:l,log:function(t){e.console.log(t,{constructors:n,constructor:a,params:o})}}}}),r},Au={generate:Ou},Du=Au.generate([{none:[]},{multiple:["elements"]},{single:["selection"]}]),Eu=function(e,t,n,r){return e.fold(t,n,r)},Bu={cata:Eu,none:Du.none,multiple:Du.multiple,single:Du.single},Iu=function(e,t){return Bu.cata(t.get(),v([]),b,v([e]))},Nu=function(e,t){var n=function(e){return It(e,"rowspan")&&parseInt(Bt(e,"rowspan"),10)>1||It(e,"colspan")&&parseInt(Bt(e,"colspan"),10)>1},r=Iu(e,t);return r.length>0&&Q(r,n)?A.some(r):A.none()},ku=function(e,t){return Bu.cata(t.get(),A.none,function(t){return 0===t.length?A.none():vu.retrieveBox(e,Tu.firstSelectedSelector(),Tu.lastSelectedSelector()).bind(function(e){return t.length>1?A.some({bounds:v(e),cells:v(t)}):A.none()})},A.none)},Pu={mergable:ku,unmergable:Nu,selection:Iu},Mu=function(e){return{element:v(e),mergable:A.none,unmergable:A.none,selection:v([e])}},Wu=function(e,t,n){return{element:v(n),mergable:v(Pu.mergable(t,e)),unmergable:v(Pu.unmergable(n,e)),selection:v(Pu.selection(n,e))}},_u=function(e){return Mu(e)},Lu=lt("element","clipboard","generators"),Hu=function(e,t,n,r,o){return{element:v(n),mergable:A.none,unmergable:A.none,selection:v(Pu.selection(n,e)),clipboard:v(r),generators:v(o)}},ju={noMenu:Mu,forMenu:Wu,notCell:_u,paste:Lu,pasteRows:Hu},zu=function(e){return yo.table(e[0]).map(Qo).map(function(e){return[_o.extract(e,Tu.attributeSelector())]})},Fu=function(e,t){return F(t,function(t){return e.selection.serializer.serialize(t.dom(),{})}).join("")},Uu=function(e){return F(e,function(e){return e.dom().innerText}).join("")},Vu=function(e,t,n,r){e.on("BeforeGetContent",function(n){var r=function(t){n.preventDefault(),zu(t).each(function(t){n.content="text"===n.format?Uu(t):Fu(e,t)})};n.selection===!0&&Bu.cata(t.get(),p,r,p)}),e.on("BeforeSetContent",function(t){if(t.selection===!0&&t.paste===!0){var o=A.from(e.dom.getParent(e.selection.getStart(),"th,td"));o.each(function(o){var i=Gt.fromDom(o);yo.table(i).each(function(o){var u=q(li(t.content),function(e){return"meta"!==Ct(e)});if(1===u.length&&"table"===Ct(u[0])){t.preventDefault();var a=Gt.fromDom(e.getDoc()),c=ci.paste(a),l=ju.paste(i,u[0],c);n.pasteCells(o,l).each(function(t){e.selection.setRng(t),e.focus(),r.clear(o)})}})})}})},qu={registerEvents:Vu},Gu=i("height",function(e){var t=e.dom();return Yt(e)?t.getBoundingClientRect().height:t.offsetHeight}),Yu=function(e){return Gu.get(e)},Ku=function(e){return Gu.getOuter(e)},Xu=i("width",function(e){return e.dom().offsetWidth}),$u=function(e){return Xu.get(e)},Ju=function(e){return Xu.getOuter(e)},Qu=Zn(),Zu=function(){return Qu.browser.isIE()||Qu.browser.isEdge()},ea=function(e,t){var n=parseFloat(e);return isNaN(n)?t:n},ta=function(e,t,n){return ea(en(e,t),n)},na=function(e){var t=ta(e,"padding-top",0),n=ta(e,"padding-bottom",0),r=ta(e,"border-top-width",0),o=ta(e,"border-bottom-width",0),i=e.dom().getBoundingClientRect().height,u=en(e,"box-sizing"),a=r+o;return"border-box"===u?i:i-t-n-a},ra=function(e){return ta(e,"width",$u(e))},oa=function(e){return Zu()?na(e):ta(e,"height",Yu(e))},ia={getWidth:ra,getHeight:oa},ua=/(\d+(\.\d+)?)(\w|%)*/,aa=/(\d+(\.\d+)?)%/,ca=/(\d+(\.\d+)?)px|em/,la=function(e,t){Qt(e,"width",t+"px")},fa=function(e,t){Qt(e,"width",t+"%")},sa=function(e,t){Qt(e,"height",t+"px")},da=function(e){return nn(e,"height").getOrThunk(function(){return ia.getHeight(e)+"px"})},ma=function(e,t,n,r){var o=yo.table(e).map(function(e){var r=n(e);return Math.floor(t/100*r)}).getOr(t);return r(e,o),o},ga=function(e,t,n,r){var o=parseInt(e,10);return _t(e,"%")&&"table"!==Ct(t)?ma(t,o,n,r):o},pa=function(e){var t=da(e);return t?ga(t,e,Yu,sa):Yu(e)},ha=function(e,t,n){var r=n(e),o=va(e,t);return r/o},va=function(e,t){return It(e,t)?parseInt(Bt(e,t),10):1},ba=function(e){var t=nn(e,"width");return t.fold(function(){return A.from(Bt(e,"width"))},function(e){return A.some(e)})},wa=function(e,t){return e/t.pixelWidth()*100},ya=function(e,t,n){var r=aa.exec(t);if(null!==r)return parseFloat(r[1]);var o=$u(e);return wa(o,n)},Ca=function(e,t){var n=ba(e);return n.fold(function(){var n=$u(e);return wa(n,t)},function(n){return ya(e,n,t)})},Sa=function(e,t){return e/100*t.pixelWidth()},xa=function(e,t,n){var r=ca.exec(t);if(null!==r)return parseInt(r[1],10);var o=aa.exec(t);if(null!==o){var i=parseFloat(o[1]);return Sa(i,n)}return $u(e)},Ra=function(e,t){var n=ba(e);return n.fold(function(){return $u(e)},function(n){return xa(e,n,t)})},Ta=function(e){return ha(e,"rowspan",pa)},Oa=function(e){var t=ba(e);return t.bind(function(e){var t=ua.exec(e);return null!==t?A.some({width:v(parseFloat(t[1])),unit:v(t[3])}):A.none()})},Aa=function(e,t,n){Qt(e,"width",t+n)},Da={percentageBasedSizeRegex:v(aa),pixelBasedSizeRegex:v(ca),setPixelWidth:la,setPercentageWidth:fa,setHeight:sa,getPixelWidth:Ra,getPercentageWidth:Ca,getGenericWidth:Oa,setGenericWidth:Aa,getHeight:Ta,getRawWidth:ba},Ea=function(e,t){var n=Da.getGenericWidth(e);n.each(function(n){var r=n.width()/2;Da.setGenericWidth(e,r,n.unit()),Da.setGenericWidth(t,r,n.unit())})},Ba={halve:Ea},Ia=function(e,t){var n=function(n,r){return Ia(e+n,t+r)};return{left:v(e),top:v(t),translate:n}},Na=Ia,ka=function(e){var t=e.getBoundingClientRect();return Na(t.left,t.top)},Pa=function(e,t){return void 0!==e?e:void 0!==t?t:0},Ma=function(e){var t=e.dom().ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom())return Na(n.offsetLeft,n.offsetTop);var i=Pa(r.pageYOffset,o.scrollTop),u=Pa(r.pageXOffset,o.scrollLeft),a=Pa(o.clientTop,n.clientTop),c=Pa(o.clientLeft,n.clientLeft);return Wa(e).translate(u-c,i-a)},Wa=function(e){var t=e.dom(),n=t.ownerDocument,r=n.body;return r===t?Na(r.offsetLeft,r.offsetTop):Yt(e)?ka(t):Na(0,0)},_a=lt("row","y"),La=lt("col","x"),Ha=function(e){var t=Ma(e);return t.left()+Ju(e)},ja=function(e){return Ma(e).left()},za=function(e,t){return La(e,ja(t))},Fa=function(e,t){return La(e,Ha(t))},Ua=function(e){return Ma(e).top()},Va=function(e,t){return _a(e,Ua(t))},qa=function(e,t){return _a(e,Ua(t)+Ku(t))},Ga=function(e,t,n){if(0===n.length)return[];var r=F(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])},Ya=function(e){return-e},Ka={delta:b,positions:function(e){return Ga(Va,qa,e)},edge:Ua},Xa={delta:b,edge:ja,positions:function(e){return Ga(za,Fa,e)}},$a={delta:Ya,edge:Ha,positions:function(e){return Ga(Fa,za,e)}},Ja={height:Ka,rtl:$a,ltr:Xa},Qa={ltr:Ja.ltr,rtl:Ja.rtl},Za=function(e){var t=xo.fromTable(e),n=Bo.generate(t);return n.grid()},ec={getGridSize:Za},tc=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},nc=function(e,t,n,r){n===r?Nt(e,t):Dt(e,t,n)},rc=function(e,t){var n=[],r=[],o=function(t,o){var i=eo(e,o).getOrThunk(function(){var t=Gt.fromTag(o,dr(e).dom());return Rr(e,t),t});Er(i);var u=F(t,function(e){e.isNew()&&n.push(e.element());var t=e.element();return Er(t),U(e.cells(),function(e){e.isNew()&&r.push(e.element()),nc(e.element(),"colspan",e.colspan(),1),nc(e.element(),"rowspan",e.rowspan(),1),Rr(t,e.element())}),t});Dr(i,u)},i=function(t){eo(e,t).each(Br)},u=function(e,t){e.length>0?o(e,t):i(t)},a=[],c=[],l=[];return U(t,function(e){switch(e.section()){case"thead":a.push(e);break;case"tbody":c.push(e);break;case"tfoot":l.push(e)}}),u(a,"thead"),u(c,"tbody"),u(l,"tfoot"),{newRows:v(n),newCells:v(r)}},oc=function(e){var t=F(e,function(e){var t=Jo(e.element());return U(e.cells(),function(e){var n=Qo(e.element());nc(n,"colspan",e.colspan(),1),nc(n,"rowspan",e.rowspan(),1),Rr(t,n)}),t});return t},ic={render:rc,copy:oc},uc=function(e,t){var n=Bt(e,t);return void 0===n||""===n?[]:n.split(" ")},ac=function(e,t,n){var r=uc(e,t),o=r.concat([n]);return Dt(e,t,o.join(" ")),!0},cc=function(e,t,n){var r=q(uc(e,t),function(e){return e!==n});return r.length>0?Dt(e,t,r.join(" ")):Nt(e,t),!1},lc=function(e){return void 0!==e.dom().classList},fc=function(e){return uc(e,"class")},sc=function(e,t){return ac(e,"class",t)},dc=function(e,t){return cc(e,"class",t)},mc=function(e,t){lc(e)?e.dom().classList.add(t):sc(e,t)},gc=function(e){var t=lc(e)?e.dom().classList:fc(e);0===t.length&&Nt(e,"class")},pc=function(e,t){if(lc(e)){var n=e.dom().classList;n.remove(t)}else dc(e,t);gc(e)},hc=function(e,t){return lc(e)&&e.dom().classList.contains(t)},vc=function(e,t){for(var n=[],r=0;e>r;r++)n.push(t(r));return n},bc=function(e,t){for(var n=[],r=e;t>r;r++)n.push(r);return n},wc=function(e,t){if(0>t||t>=e.length-1)return A.none();var n=e[t].fold(function(){var n=Z(e.slice(0,t));return tt(n,function(e,t){return e.map(function(e){return{value:e,delta:t+1}})})},function(e){return A.some({value:e,delta:0})}),r=e[t+1].fold(function(){var n=e.slice(t+1);return tt(n,function(e,t){return e.map(function(e){return{value:e,delta:t+1}})})},function(e){return A.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})})},yc=function(e){var t=e.grid(),n=bc(0,t.columns()),r=bc(0,t.rows());return F(n,function(t){var n=function(){return J(r,function(n){return Bo.getAt(e,n,t).filter(function(e){return e.column()===t}).fold(v([]),function(e){return[e]})})},o=function(e){return 1===e.colspan()},i=function(){return Bo.getAt(e,0,t)};return Cc(n,o,i)})},Cc=function(e,t,n){var r=e(),o=K(r,t),i=o.orThunk(function(){return A.from(r[0]).orThunk(n)});return i.map(function(e){return e.element()})},Sc=function(e){var t=e.grid(),n=bc(0,t.rows()),r=bc(0,t.columns());return F(n,function(t){var n=function(){return J(r,function(n){return Bo.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 Bo.getAt(e,t,0)};return Cc(n,o,i)})},xc={columns:yc,rows:Sc},Rc=function(e){var t=e.replace(/\./g,"-"),n=function(e){return t+"-"+e};return{resolve:n}},Tc=Rc("ephox-snooker"),Oc={resolve:Tc.resolve},Ac=function(e,t,n,r,o){var i=Gt.fromTag("div");return Zt(i,{position:"absolute",left:t-r/2+"px",top:n+"px",height:o+"px",width:r+"px"}),Et(i,{"data-column":e,role:"presentation"}),i},Dc=function(e,t,n,r,o){var i=Gt.fromTag("div");return Zt(i,{position:"absolute",left:t+"px",top:n-o/2+"px",height:o+"px",width:r+"px"}),Et(i,{"data-row":e,role:"presentation"}),i},Ec={col:Ac,row:Dc},Bc=Oc.resolve("resizer-bar"),Ic=Oc.resolve("resizer-rows"),Nc=Oc.resolve("resizer-cols"),kc=7,Pc=function(e){var t=Kr(e.parent(),"."+Bc);U(t,Br)},Mc=function(e,t,n){var r=e.origin();U(t,function(t){t.each(function(t){var o=n(r,t);mc(o,Bc),Rr(e.parent(),o)})})},Wc=function(e,t,n,r){Mc(e,t,function(e,t){var o=Ec.col(t.col(),t.x()-e.left(),n.top()-e.top(),kc,r);return mc(o,Nc),o})},_c=function(e,t,n,r){Mc(e,t,function(e,t){var o=Ec.row(t.row(),n.left()-e.left(),t.y()-e.top(),r,kc);return mc(o,Ic),o})},Lc=function(e,t,n,r,o,i){var u=Ma(t),a=n.length>0?o.positions(n,t):[];_c(e,a,u,Ju(t));var c=r.length>0?i.positions(r,t):[];Wc(e,c,u,Ku(t))},Hc=function(e,t,n,r){Pc(e);var o=xo.fromTable(t),i=Bo.generate(o),u=xc.rows(i),a=xc.columns(i);Lc(e,t,u,a,n,r)},jc=function(e,t){var n=Kr(e.parent(),"."+Bc);U(n,t)},zc=function(e){jc(e,function(e){Qt(e,"display","none")})},Fc=function(e){jc(e,function(e){Qt(e,"display","block")})},Uc=function(e){return hc(e,Ic)},Vc=function(e){return hc(e,Nc)},qc={refresh:Hc,hide:zc,show:Fc,destroy:Pc,isRowBar:Uc,isColBar:Vc},Gc=function(e,t,n){var r=e.cells(),o=r.slice(0,t),i=r.slice(t),u=o.concat([n]).concat(i);return Kc(e,u)},Yc=function(e,t,n){var r=e.cells();r[t]=n},Kc=function(e,t){return jr(t,e.section())},Xc=function(e,t){var n=e.cells(),r=F(n,t);return jr(r,e.section())},$c=function(e,t){return e.cells()[t]},Jc=function(e,t){return $c(e,t).element()},Qc=function(e){return e.cells().length},Zc={addCell:Gc,setCells:Kc,mutateCell:Yc,getCell:$c,getCellElement:Jc,mapCells:Xc,cellLength:Qc},el=function(e,t){return F(e,function(e){return Zc.getCell(e,t)})},tl=function(e,t){return e[t]},nl=function(e,t){if(0===e.length)return 0;var n=e[0],r=X(e,function(e){return!t(n.element(),e.element())});return r.fold(function(){return e.length},function(e){return e})},rl=function(e,t,n,r){var o=tl(e,t).cells().slice(n),i=nl(o,r),u=el(e,n).slice(t),a=nl(u,r);return{colspan:v(i),rowspan:v(a)}},ol={subgrid:rl},il=function(e,t){var n=F(e,function(e){return F(e.cells(),function(){return!1})}),r=function(e,t,r,o){for(var i=e;e+r>i;i++)for(var u=t;t+o>u;u++)n[i][u]=!0};return F(e,function(o,i){var u=J(o.cells(),function(o,u){if(n[i][u]===!1){var a=ol.subgrid(e,i,u,t);return r(i,u,a.rowspan(),a.colspan()),[Mr(o.element(),a.rowspan(),a.colspan(),o.isNew())]}return[]});return zr(u,o.section())})},ul=function(e,t,n){for(var r=[],o=0;o<e.grid().rows();o++){for(var i=[],u=0;u<e.grid().columns();u++){var a=Bo.getAt(e,o,u).map(function(e){return Lr(e.element(),n)}).getOrThunk(function(){return Lr(t.gap(),!0)});i.push(a)}var c=jr(i,e.all()[o].section());r.push(c)}return r},al={toDetails:il,toGrid:ul},cl=function(e,t){return al.toGrid(e,t,!1)},ll=function(e,t){var n=function(e){var n=tt(e,function(e){return gr(e.element()).map(function(e){var t=gr(e).isNone();return Lr(e,t)})});return n.getOrThunk(function(){return Lr(t.row(),!0)})};return F(e,function(e){var t=n(e.details());return Hr(t.element(),e.details(),e.section(),t.isNew())})},fl=function(e,t){var n=al.toDetails(e,ur);return ll(n,t)},sl=function(e,t){var n=$(F(e.all(),function(e){return e.cells()}));return K(n,function(e){return ur(t,e.element())})},dl=function(e,t,n,r,o){return function(i,u,a,c,l){var f=xo.fromTable(u),s=Bo.generate(f),d=t(s,a).map(function(t){var n=cl(s,c),r=e(n,t,ur,o(c)),i=fl(r.grid(),c);return{grid:v(i),cursor:r.cursor}});return d.fold(function(){return A.none()},function(e){var t=ic.render(u,e.grid());return n(u,e.grid(),l),r(u),qc.refresh(i,u,Ja.height,l),A.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})})}},ml=function(e,t){return yo.cell(t.element()).bind(function(t){return sl(e,t)})},gl=function(e,t){return yo.cell(t.element()).bind(function(n){return sl(e,n).map(function(e){var n=fn(fn({},e),{generators:t.generators,clipboard:t.clipboard});return n})})},pl=function(e,t){var n=F(t.selection(),function(t){return yo.cell(t).bind(function(t){return sl(e,t)})}),r=tc(n);return r.length>0?A.some({cells:r,generators:t.generators,clipboard:t.clipboard}):A.none()},hl=function(e,t){return t.mergable()},vl=function(e,t){return t.unmergable()},bl=function(e,t){var n=F(t.selection(),function(t){return yo.cell(t).bind(function(t){return sl(e,t)})}),r=tc(n);return r.length>0?A.some(r):A.none()},wl=function(e){var t=function(t){return e===t},n=function(){return wl(e)},r=function(){return wl(e)},o=function(t){return wl(t(e))},i=function(){return wl(e)},u=function(t){t(e)},a=function(t){return t(e)},c=function(t,n){return n(e)},l=function(t){return t(e)},f=function(t){return t(e)},s=function(){return A.some(e)};return{is:t,isValue:S,isError:C,getOr:v(e),getOrThunk:v(e),getOrDie:v(e),or:n,orThunk:r,fold:c,map:o,mapError:i,each:u,bind:a,exists:l,forall:f,toOption:s}},yl=function(e){var t=function(e){return e()},n=function(){return y(String(e))()},r=function(e){return e},o=function(e){return e()},i=function(){return yl(e)},u=function(t){return yl(t(e))},a=function(){return yl(e)},c=function(t){return t(e)};return{is:C,isValue:C,isError:S,getOr:b,getOrThunk:t,getOrDie:n,or:r,orThunk:o,fold:c,map:i,mapError:u,each:p,bind:a,exists:C,forall:S,toOption:A.none}},Cl=function(e,t){return e.fold(function(){return yl(t)},wl)},Sl={value:wl,error:yl,fromOption:Cl},xl=function(e,t,n){if(e.row()>=t.length||e.column()>Zc.cellLength(t[0]))return Sl.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=Zc.cellLength(n[0]),u=n.length;return Sl.value({rowDelta:v(r.length-u),colDelta:v(o.length-i)})},Rl=function(e,t){var n=Zc.cellLength(e[0]),r=Zc.cellLength(t[0]);return{rowDelta:v(0),colDelta:v(n-r)}},Tl=function(e,t){return F(e,function(){return Lr(t.cell(),!0)})},Ol=function(e,t,n){return e.concat(vc(t,function(){return Zc.setCells(e[e.length-1],Tl(e[e.length-1].cells(),n))}))},Al=function(e,t,n){return F(e,function(e){return Zc.setCells(e,e.cells().concat(Tl(bc(0,t),n)))})},Dl=function(e,t,n){var r=t.colDelta()<0?Al:b,o=t.rowDelta()<0?Ol:b,i=r(e,Math.abs(t.colDelta()),n),u=o(i,Math.abs(t.rowDelta()),n);return u},El={measure:xl,measureWidth:Rl,tailor:Dl},Bl=function(e,t,n,r){if(0===e.length)return e;for(var o=t.startRow();o<=t.finishRow();o++)for(var i=t.startCol();i<=t.finishCol();i++)Zc.mutateCell(e[o],i,Lr(r(),!1));return e},Il=function(e,t,n,r){for(var o=!0,i=0;i<e.length;i++)for(var u=0;u<Zc.cellLength(e[0]);u++){var a=Zc.getCellElement(e[i],u),c=n(a,t);c===!0&&o===!1?Zc.mutateCell(e[i],u,Lr(r(),!0)):c===!0&&(o=!1)}return e},Nl=function(e,t){return Y(e,function(e,n){return z(e,function(e){return t(e.element(),n.element())})?e:e.concat([n])},[])},kl=function(e,t,n,r){if(t>0&&t<e.length){var o=e[t-1].cells(),i=Nl(o,n);U(i,function(o){for(var i=A.none(),u=function(t){for(var u=function(u){var a=e[t].cells()[u],c=n(a.element(),o.element());c&&(i.isNone()&&(i=A.some(r())),i.each(function(n){Zc.mutateCell(e[t],u,Lr(n,!0))}))},a=0;a<Zc.cellLength(e[0]);a++)u(a)},a=t;a<e.length;a++)u(a)})}return e},Pl={merge:Bl,unmerge:Il,splitRows:kl},Ml=function(e,n,r,o){var i=Zc.getCell(e[n],r),u=t(o,i.element()),a=e[n];return e.length>1&&Zc.cellLength(a)>1&&(r>0&&u(Zc.getCellElement(a,r-1))||r<a.cells().length-1&&u(Zc.getCellElement(a,r+1))||n>0&&u(Zc.getCellElement(e[n-1],r))||n<e.length-1&&u(Zc.getCellElement(e[n+1],r)))},Wl=function(e,t,n,r,o){for(var i=e.row(),u=e.column(),a=n.length,c=Zc.cellLength(n[0]),l=i+a,f=u+c,s=i;l>s;s++)for(var d=u;f>d;d++){Ml(t,s,d,o)&&Pl.unmerge(t,Zc.getCellElement(t[s],d),o,r.cell);var m=Zc.getCellElement(n[s-i],d-u),g=r.replace(m);Zc.mutateCell(t[s],d,Lr(g,!0))}return t},_l=function(e,t,n,r,o){var i=El.measure(e,t,n);return i.map(function(i){var u=El.tailor(t,i,r);return Wl(e,u,n,r,o)})},Ll=function(e,t,n,r,o){Pl.splitRows(t,e,o,r.cell);var i=El.measureWidth(n,t),u=El.tailor(n,i,r),a=El.measureWidth(t,u),c=El.tailor(t,a,r);return c.slice(0,e).concat(u).concat(c.slice(e,c.length))},Hl={merge:_l,insert:Ll},jl=function(e,t,n,r,o){var i=e.slice(0,t),u=e.slice(t),a=Zc.mapCells(e[n],function(n,i){var u=t>0&&t<e.length&&r(Zc.getCellElement(e[t-1],i),Zc.getCellElement(e[t],i)),a=u?Zc.getCell(e[t],i):Lr(o(n.element(),r),!0);return a});return i.concat([a]).concat(u)},zl=function(e,t,n,r,o){return F(e,function(e){var i=t>0&&t<Zc.cellLength(e)&&r(Zc.getCellElement(e,t-1),Zc.getCellElement(e,t)),u=i?Zc.getCell(e,t):Lr(o(Zc.getCellElement(e,n),r),!0);return Zc.addCell(e,t,u)})},Fl=function(e,t,n,r,o){var i=n+1;return F(e,function(e,u){var a=u===t,c=a?Lr(o(Zc.getCellElement(e,n),r),!0):Zc.getCell(e,n);return Zc.addCell(e,i,c)})},Ul=function(e,t,n,r,o){var i=t+1,u=e.slice(0,i),a=e.slice(i),c=Zc.mapCells(e[t],function(e,t){var i=t===n;return i?Lr(o(e.element(),r),!0):e});return u.concat([c]).concat(a)},Vl=function(e,t,n){var r=F(e,function(e){var r=e.cells().slice(0,t).concat(e.cells().slice(n+1));return jr(r,e.section())});return q(r,function(e){return e.cells().length>0})},ql=function(e,t,n){return e.slice(0,t).concat(e.slice(n+1))},Gl={insertRowAt:jl,insertColumnAt:zl,splitCellIntoColumns:Fl,splitCellIntoRows:Ul,deleteRowsAt:ql,deleteColumnsAt:Vl},Yl=function(e,t,n,r){var o=function(e){return z(t,function(t){return n(e.element(),t.element())})};return F(e,function(e){return Zc.mapCells(e,function(e){return o(e)?Lr(r(e.element(),n),!0):e})})},Kl=function(e,t,n,r){return void 0!==Zc.getCellElement(e[t],n)&&t>0&&r(Zc.getCellElement(e[t-1],n),Zc.getCellElement(e[t],n))},Xl=function(e,t,n){return t>0&&n(Zc.getCellElement(e,t-1),Zc.getCellElement(e,t))},$l=function(e,t,n,r){var o=J(e,function(r,o){var i=Kl(e,o,t,n)||Xl(r,t,n);return i?[]:[Zc.getCell(r,t)]});return Yl(e,o,n,r)},Jl=function(e,t,n,r){var o=e[t],i=J(o.cells(),function(r,i){var u=Kl(e,t,i,n)||Xl(o,i,n);return u?[]:[r]});return Yl(e,i,n,r)},Ql={replaceColumn:$l,replaceRow:Jl},Zl=Au.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),ef=fn({},Zl),tf=function(e,t){return 0===e.length?ef.none():1===e.length?ef.only(0):0===t?ef.left(0,1):t===e.length-1?ef.right(t-1,t):t>0&&t<e.length-1?ef.middle(t-1,t,t+1):ef.none()},nf=function(e,t,n,r){var o=e.slice(0),i=tf(e,t),u=function(e){return F(e,v(0))},a=v(u(o)),c=function(e){return r.singleColumnWidth(o[e],n)},l=function(e,t){if(n>=0){var i=Math.max(r.minCellWidth(),o[t]-n);return u(o.slice(0,e)).concat([n,i-o[t]]).concat(u(o.slice(t+1)))}var a=Math.max(r.minCellWidth(),o[e]+n),c=o[e]-a;return u(o.slice(0,e)).concat([a-o[e],c]).concat(u(o.slice(t+1)))},f=l,s=function(e,t,n){return l(t,n)},d=function(e,t){if(n>=0)return u(o.slice(0,t)).concat([n]);var i=Math.max(r.minCellWidth(),o[t]+n);return u(o.slice(0,t)).concat([i-o[t]])};return i.fold(a,c,f,s,d)},rf={determine:nf},of=function(e,t){return It(e,t)&&parseInt(Bt(e,t),10)>1},uf=function(e){return of(e,"colspan")},af=function(e){return of(e,"rowspan")},cf=function(e,t){return parseInt(en(e,t),10)},lf={hasColspan:uf,hasRowspan:af,minWidth:v(10),minHeight:v(10),getInt:cf},ff=function(e,t,n){return nn(e,t).fold(function(){return n(e)+"px"},function(e){return e})},sf=function(e,t){return ff(e,"width",function(e){return Da.getPixelWidth(e,t)})},df=function(e){return ff(e,"height",Da.getHeight)},mf=function(e,t,n,r,o){var i=xc.columns(e),u=F(i,function(e){return e.map(t.edge)});return F(i,function(e,t){var i=e.filter(w(lf.hasColspan));return i.fold(function(){var e=wc(u,t);return r(e)},function(e){return n(e,o)})})},gf=function(e){return e.map(function(e){return e+"px"}).getOr("")},pf=function(e,t,n){return mf(e,t,sf,gf,n)},hf=function(e,t,n){return mf(e,t,Da.getPercentageWidth,function(e){return e.fold(function(){return n.minCellWidth()},function(e){return e/n.pixelWidth()*100})},n)},vf=function(e,t,n){return mf(e,t,Da.getPixelWidth,function(e){return e.getOrThunk(n.minCellWidth)},n)},bf=function(e,t,n,r){var o=xc.rows(e),i=F(o,function(e){return e.map(t.edge)});return F(o,function(e,t){var o=e.filter(w(lf.hasRowspan));return o.fold(function(){var e=wc(i,t);return r(e)},function(e){return n(e)})})},wf=function(e,t){return bf(e,t,Da.getHeight,function(e){return e.getOrThunk(lf.minHeight)})},yf=function(e,t){return bf(e,t,df,gf)},Cf={getRawWidths:pf,getPixelWidths:vf,getPercentageWidths:hf,getPixelHeights:wf,getRawHeights:yf},Sf=function(e,t,n){for(var r=0,o=e;t>o;o++)r+=void 0!==n[o]?n[o]:0;return r},xf=function(e,t){var n=Bo.justCells(e);return F(n,function(e){var n=Sf(e.column(),e.column()+e.colspan(),t);return{element:e.element,width:v(n),colspan:e.colspan}})},Rf=function(e,t){var n=Bo.justCells(e);return F(n,function(e){var n=Sf(e.row(),e.row()+e.rowspan(),t);return{element:e.element,height:v(n),rowspan:e.rowspan}})},Tf=function(e,t){return F(e.all(),function(e,n){return{element:e.element,height:v(t[n])}})},Of={recalculateWidth:xf,recalculateHeight:Rf,matchRowHeight:Tf},Af=function(e,t){var n=parseFloat(e),r=$u(t),o=function(e){return e/r*100},i=function(e){return[100-e]},u=function(){return lf.minWidth()/r*100},a=function(e,t,r){var o=r/100,i=o*n;Da.setPercentageWidth(e,n+i)};return{width:v(n),pixelWidth:v(r),getWidths:Cf.getPercentageWidths,getCellDelta:o,singleColumnWidth:i,minCellWidth:u,setElementWidth:Da.setPercentageWidth,setTableWidth:a}},Df=function(e){var t=b,n=function(e,t){var n=Math.max(lf.minWidth(),e+t);return[n-e]},r=function(e,t){var n=G(t,function(e,t){return e+t},0);Da.setPixelWidth(e,n)};return{width:v(e),pixelWidth:v(e),getWidths:Cf.getPixelWidths,getCellDelta:t,singleColumnWidth:n,minCellWidth:lf.minWidth,setElementWidth:Da.setPixelWidth,setTableWidth:r}},Ef=function(e,t){var n=Da.percentageBasedSizeRegex().exec(t);if(null!==n)return Af(n[1],e);var r=Da.pixelBasedSizeRegex().exec(t);if(null!==r){var o=parseInt(r[1],10);return Df(o)}var i=$u(e);return Df(i)},Bf=function(e){var t=Da.getRawWidth(e);return t.fold(function(){var t=$u(e);return Df(t)},function(t){return Ef(e,t)})},If={getTableSize:Bf},Nf=function(e){return Bo.generate(e)},kf=function(e){return G(e,function(e,t){return e+t},0)},Pf=function(e){var t=xo.fromTable(e);return Nf(t)},Mf=function(e,t,n,r){var o=If.getTableSize(e),i=o.getCellDelta(t),u=Pf(e),a=o.getWidths(u,r,o),c=rf.determine(a,n,i,o),l=F(c,function(e,t){return e+a[t]}),f=Of.recalculateWidth(u,l);U(f,function(e){o.setElementWidth(e.element(),e.width())}),n===u.grid().columns()-1&&o.setTableWidth(e,l,i)},Wf=function(e,t,n,r){var o=Pf(e),i=Cf.getPixelHeights(o,r),u=F(i,function(e,r){return n===r?Math.max(t+e,lf.minHeight()):e}),a=Of.recalculateHeight(o,u),c=Of.matchRowHeight(o,u);U(c,function(e){Da.setHeight(e.element(),e.height())}),U(a,function(e){Da.setHeight(e.element(),e.height())});var l=kf(u);Da.setHeight(e,l)},_f=function(e,t,n){var r=If.getTableSize(e),o=Nf(t),i=r.getWidths(o,n,r),u=Of.recalculateWidth(o,i);U(u,function(e){r.setElementWidth(e.element(),e.width())}),u.length>0&&r.setTableWidth(e,i,r.getCellDelta(0))},Lf={adjustWidth:Mf,adjustHeight:Wf,adjustWidthTo:_f},Hf=function(e,t){return jf(e,t,{validate:P,label:"function"})},jf=function(e,t,n){if(0===t.length)throw new Error("You must specify at least one required field.");return mt("required",t),pt(t),function(r){var o=nt(r),i=Q(t,function(e){return j(o,e)});i||st(t,o),e(t,o);var u=q(t,function(e){return!n.validate(r[e],e)});return u.length>0&&gt(u,n.label),r}},zf=function(e,t){var n=q(t,function(t){return!j(e,t)});n.length>0&&dt(n)},Ff=function(e){return Hf(zf,e)},Uf=Ff(["cell","row","replace","gap"]),Vf=function(e){var t=It(e,"colspan")?parseInt(Bt(e,"colspan"),10):1,n=It(e,"rowspan")?parseInt(Bt(e,"rowspan"),10):1;return{element:v(e),colspan:v(t),rowspan:v(n)}},qf=function(e,t){void 0===t&&(t=Vf),Uf(e);var n=g(A.none()),r=function(t){return e.cell(t)},o=function(e){var n=t(e);return r(n)},i=function(e){var t=o(e);return n.get().isNone()&&n.set(A.some(t)),u=A.some({item:e,replacement:t}),t},u=A.none(),a=function(e,t){return u.fold(function(){return i(e)},function(n){return t(e,n.item)?n.replacement:i(e)})};return{getOrInit:a,cursor:n.get}},Gf=function(e,t){return function(n){var r=g(A.none());Uf(n);var o=[],i=function(e,t){return K(o,function(n){return t(n.item,e)})},u=function(i){var u={scope:e},a=n.replace(i,t,u);return o.push({item:i,sub:a}),r.get().isNone()&&r.set(A.some(a)),a},a=function(e,t){return i(e,t).fold(function(){return u(e)},function(n){return t(e,n.item)?n.sub:u(e)})};return{replaceOrInit:a,cursor:r.get}
}},Yf=function(e){Uf(e);var t=g(A.none()),n=function(n){return t.get().isNone()&&t.set(A.some(n)),function(){var t=e.cell({element:v(n),colspan:v(1),rowspan:v(1)});return rn(t,"width"),rn(n,"width"),t}};return{combine:n,cursor:t.get}},Kf={modification:qf,transform:Gf,merging:Yf},Xf=["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"],$f=function(e,t){var n=e.property().name(t);return j(["ol","ul"],n)},Jf=function(e,t){var n=e.property().name(t);return j(Xf,n)},Qf=function(e,t){var n=e.property().name(t);return j(["address","pre","p","h1","h2","h3","h4","h5","h6"],n)},Zf=function(e,t){var n=e.property().name(t);return j(["h1","h2","h3","h4","h5","h6"],n)},es=function(e,t){return j(["div","li","td","th","blockquote","body","caption"],e.property().name(t))},ts=function(e,t){return j(["br","img","hr","input"],e.property().name(t))},ns=function(e,t){return"iframe"===e.property().name(t)},rs=function(e,t){return!(Jf(e,t)||ts(e,t))&&"li"!==e.property().name(t)},os={isBlock:Jf,isList:$f,isFormatting:Qf,isHeading:Zf,isContainer:es,isEmptyTag:ts,isFrame:ns,isInline:rs},is=o(),us=function(e){return os.isBlock(is,e)},as=function(e){return os.isList(is,e)},cs=function(e){return os.isFormatting(is,e)},ls=function(e){return os.isHeading(is,e)},fs=function(e){return os.isContainer(is,e)},ss=function(e){return os.isEmptyTag(is,e)},ds=function(e){return os.isFrame(is,e)},ms=function(e){return os.isInline(is,e)},gs={isBlock:us,isList:as,isFormatting:cs,isHeading:ls,isContainer:fs,isEmptyTag:ss,isFrame:ds,isInline:ms},ps=function(e){var t=function(e){return"br"===Ct(e)},n=function(e){return Q(e,function(e){return t(e)||Ot(e)&&0===jo(e).trim().length})},r=function(e){return"li"===Ct(e)||Xr(e,gs.isList).isSome()},o=function(e){return vr(e).map(function(e){return gs.isBlock(e)?!0:gs.isEmptyTag(e)?"img"===Ct(e)?!1:!0:!1}).getOr(!1)},i=function(e){return Ko(e).bind(function(n){var i=o(n);return gr(n).map(function(o){return i===!0||r(o)||t(n)||gs.isBlock(o)&&!ur(e,o)?[]:[Gt.fromTag("br")]})}).getOr([])},u=function(){var t=J(e,function(e){var t=br(e);return n(t)?[]:t.concat(i(e))});return 0===t.length?[Gt.fromTag("br")]:t},a=u();Er(e[0]),Dr(e[0],a)},hs={merge:ps},vs=function(e){var t=yo.cells(e);0===t.length&&Br(e)},bs=lt("grid","cursor"),ws=function(e,t,n){return ys(e,t,n).orThunk(function(){return ys(e,0,0)})},ys=function(e,t,n){return A.from(e[t]).bind(function(e){return A.from(e.cells()[n]).bind(function(e){return A.from(e.element())})})},Cs=function(e,t,n){return bs(e,ys(e,t,n))},Ss=function(e){return Y(e,function(e,t){return z(e,function(e){return e.row()===t.row()})?e:e.concat([t])},[]).sort(function(e,t){return e.row()-t.row()})},xs=function(e){return Y(e,function(e,t){return z(e,function(e){return e.column()===t.column()})?e:e.concat([t])},[]).sort(function(e,t){return e.column()-t.column()})},Rs=function(e,t,n,r){var o=t.row(),i=t.row(),u=Gl.insertRowAt(e,i,o,n,r.getOrInit);return Cs(u,i,t.column())},Ts=function(e,t,n,r){var o=t[0].row(),i=t[0].row(),u=Ss(t),a=Y(u,function(e){return Gl.insertRowAt(e,i,o,n,r.getOrInit)},e);return Cs(a,i,t[0].column())},Os=function(e,t,n,r){var o=t.row(),i=t.row()+t.rowspan(),u=Gl.insertRowAt(e,i,o,n,r.getOrInit);return Cs(u,i,t.column())},As=function(e,t,n,r){var o=Ss(t),i=o[o.length-1].row(),u=o[o.length-1].row()+o[o.length-1].rowspan(),a=Y(o,function(e){return Gl.insertRowAt(e,u,i,n,r.getOrInit)},e);return Cs(a,u,t[0].column())},Ds=function(e,t,n,r){var o=t.column(),i=t.column(),u=Gl.insertColumnAt(e,i,o,n,r.getOrInit);return Cs(u,t.row(),i)},Es=function(e,t,n,r){var o=xs(t),i=o[0].column(),u=o[0].column(),a=Y(o,function(e){return Gl.insertColumnAt(e,u,i,n,r.getOrInit)},e);return Cs(a,t[0].row(),u)},Bs=function(e,t,n,r){var o=t.column(),i=t.column()+t.colspan(),u=Gl.insertColumnAt(e,i,o,n,r.getOrInit);return Cs(u,t.row(),i)},Is=function(e,t,n,r){var o=t[t.length-1].column(),i=t[t.length-1].column()+t[t.length-1].colspan(),u=xs(t),a=Y(u,function(e){return Gl.insertColumnAt(e,i,o,n,r.getOrInit)},e);return Cs(a,t[0].row(),i)},Ns=function(e,t,n,r){var o=Ql.replaceRow(e,t.row(),n,r.replaceOrInit);return Cs(o,t.row(),t.column())},ks=function(e,t,n,r){var o=Ql.replaceColumn(e,t.column(),n,r.replaceOrInit);return Cs(o,t.row(),t.column())},Ps=function(e,t,n,r){var o=Ql.replaceRow(e,t.row(),n,r.replaceOrInit);return Cs(o,t.row(),t.column())},Ms=function(e,t,n,r){var o=Ql.replaceColumn(e,t.column(),n,r.replaceOrInit);return Cs(o,t.row(),t.column())},Ws=function(e,t,n,r){var o=Gl.splitCellIntoColumns(e,t.row(),t.column(),n,r.getOrInit);return Cs(o,t.row(),t.column())},_s=function(e,t,n,r){var o=Gl.splitCellIntoRows(e,t.row(),t.column(),n,r.getOrInit);return Cs(o,t.row(),t.column())},Ls=function(e,t){var n=xs(t),r=Gl.deleteColumnsAt(e,n[0].column(),n[n.length-1].column()),o=ws(r,t[0].row(),t[0].column());return bs(r,o)},Hs=function(e,t){var n=Ss(t),r=Gl.deleteRowsAt(e,n[0].row(),n[n.length-1].row()),o=ws(r,t[0].row(),t[0].column());return bs(r,o)},js=function(e,t,n){var r=t.cells();hs.merge(r);var o=Pl.merge(e,t.bounds(),n,v(r[0]));return bs(o,A.from(r[0]))},zs=function(e,t,n,r){var o=G(t,function(e,t){return Pl.unmerge(e,t,n,r.combine(t))},e);return bs(o,A.from(t[0]))},Fs=function(e,t,n){var r=function(e,t){var n=xo.fromTable(e),r=Bo.generate(n);return al.toGrid(r,t,!0)},o=r(t.clipboard(),t.generators()),i=kr(t.row(),t.column()),u=Hl.merge(i,e,o,t.generators(),n);return u.fold(function(){return bs(e,A.some(t.element()))},function(e){var n=ws(e,t.row(),t.column());return bs(e,n)})},Us=function(e,t,n){var r=xo.fromPastedRows(e,n),o=Bo.generate(r);return al.toGrid(o,t,!0)},Vs=function(e,t,n){var r=e[t.cells[0].row()],o=t.cells[0].row(),i=Us(t.clipboard(),t.generators(),r),u=Hl.insert(o,e,i,t.generators(),n),a=ws(u,t.cells[0].row(),t.cells[0].column());return bs(u,a)},qs=function(e,t,n){var r=e[t.cells[0].row()],o=t.cells[t.cells.length-1].row()+t.cells[t.cells.length-1].rowspan(),i=Us(t.clipboard(),t.generators(),r),u=Hl.insert(o,e,i,t.generators(),n),a=ws(u,t.cells[0].row(),t.cells[0].column());return bs(u,a)},Gs=Lf.adjustWidthTo,Ys={insertRowBefore:dl(Rs,ml,p,p,Kf.modification),insertRowsBefore:dl(Ts,bl,p,p,Kf.modification),insertRowAfter:dl(Os,ml,p,p,Kf.modification),insertRowsAfter:dl(As,bl,p,p,Kf.modification),insertColumnBefore:dl(Ds,ml,Gs,p,Kf.modification),insertColumnsBefore:dl(Es,bl,Gs,p,Kf.modification),insertColumnAfter:dl(Bs,ml,Gs,p,Kf.modification),insertColumnsAfter:dl(Is,bl,Gs,p,Kf.modification),splitCellIntoColumns:dl(Ws,ml,Gs,p,Kf.modification),splitCellIntoRows:dl(_s,ml,p,p,Kf.modification),eraseColumns:dl(Ls,bl,Gs,vs,Kf.modification),eraseRows:dl(Hs,bl,p,vs,Kf.modification),makeColumnHeader:dl(ks,ml,p,p,Kf.transform("row","th")),unmakeColumnHeader:dl(Ms,ml,p,p,Kf.transform(null,"td")),makeRowHeader:dl(Ns,ml,p,p,Kf.transform("col","th")),unmakeRowHeader:dl(Ps,ml,p,p,Kf.transform(null,"td")),mergeCells:dl(js,hl,p,p,Kf.merging),unmergeCells:dl(zs,vl,Gs,p,Kf.merging),pasteCells:dl(Fs,gl,Gs,p,Kf.modification),pasteRowsBefore:dl(Vs,pl,p,p,Kf.modification),pasteRowsAfter:dl(qs,pl,p,p,Kf.modification)},Ks=function(e){return Gt.fromDom(e.getBody())},Xs=function(e){return e.getBoundingClientRect().width},$s=function(e){return e.getBoundingClientRect().height},Js=function(e){return function(t){return ur(t,Ks(e))}},Qs=function(e){return e?e.replace(/px$/,""):""},Zs=function(e){return/^[0-9]+$/.test(e)&&(e+="px"),e},ed=function(e){var t=Kr(e,"td[data-mce-style],th[data-mce-style]");Nt(e,"data-mce-style"),U(t,function(e){Nt(e,"data-mce-style")})},td=function(e){return"rtl"===en(e,"direction")?"rtl":"ltr"},nd={isRtl:v(!1)},rd={isRtl:v(!0)},od=function(e){var t=td(e);return"rtl"===t?rd:nd},id={directionAt:od},ud="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",ad={"border-collapse":"collapse",width:"100%"},cd={border:"1"},ld=function(e){return e.getParam("table_default_attributes",cd,"object")},fd=function(e){return e.getParam("table_default_styles",ad,"object")},sd=function(e){return e.getParam("table_resize_bars",!0,"boolean")},dd=function(e){return e.getParam("table_tab_navigation",!0,"boolean")},md=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},gd=function(e){return e.getParam("table_row_advtab",!0,"boolean")},pd=function(e){return e.getParam("table_advtab",!0,"boolean")},hd=function(e){return e.getParam("table_appearance_options",!0,"boolean")},vd=function(e){return e.getParam("table_grid",!0,"boolean")},bd=function(e){return e.getParam("table_style_by_css",!1,"boolean")},wd=function(e){return e.getParam("table_cell_class_list",[],"array")},yd=function(e){return e.getParam("table_row_class_list",[],"array")},Cd=function(e){return e.getParam("table_class_list",[],"array")},Sd=function(e){return e.getParam("table_responsive_width")===!0},xd=function(e){return e.getParam("table_responsive_width")===!1},Rd=function(e){return e.getParam("table_toolbar",ud)},Td=function(e){var t=e.getParam("table_clone_elements");return I(t)?A.some(t.split(/[ ,]/)):Array.isArray(t)?A.some(t):A.none()},Od=function(e){var t=e.getParam("object_resizing",!0);return I(t)?"table"===t:t},Ad=function(e,t){return e.fire("newrow",{node:t})},Dd=function(e,t){return e.fire("newcell",{node:t})},Ed=function(e,t,n,r){e.fire("ObjectResizeStart",{target:t,width:n,height:r})},Bd=function(e,t,n,r){e.fire("ObjectResized",{target:t,width:n,height:r})},Id=function(e,t,n,r,o){e.fire("TableSelectionChange",{cells:t,start:n,finish:r,otherCells:o})},Nd=function(e){e.fire("TableSelectionClear")},kd=lt("element","offset"),Pd=(lt("element","deltaOffset"),lt("element","start","finish"),lt("begin","end"),lt("element","text"),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 Pd(e,t,n).orThunk(function(){return A.some(t)})}):A.none()}),Md=function(e,t){if(e.property().isText(t))return e.property().getText(t).length;var n=e.property().children(t);return n.length},Wd=function(e,t){var n=Pd(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(n))return kd(n,Md(e,n));var r=e.property().children(n);return r.length>0?Wd(e,r[r.length-1]):kd(n,Md(e,n))},_d=Wd,Ld=o(),Hd=function(e){return _d(Ld,e)},jd=function(e,t){var n=function(e){return"table"===Ct(Ks(e))},r=function(t){var r=ec.getGridSize(t);return n(e)===!1||r.rows()>1},o=function(t){var r=ec.getGridSize(t);return n(e)===!1||r.columns()>1},i=Td(e),a=function(t,n,r,o){return function(a,c){ed(a);var l=o(),f=Gt.fromDom(e.getDoc()),s=u(id.directionAt),d=ci.cellOperations(r,f,i);return n(a)?t(l,a,c,d,s).bind(function(t){return U(t.newRows(),function(t){Ad(e,t.dom())}),U(t.newCells(),function(t){Dd(e,t.dom())}),t.cursor().map(function(t){var n=Hd(t),r=e.dom.createRng();return r.setStart(n.element().dom(),n.offset()),r.setEnd(n.element().dom(),n.offset()),r})}):A.none()}},c=a(Ys.eraseRows,r,p,t),l=a(Ys.eraseColumns,o,p,t),f=a(Ys.insertRowsBefore,S,p,t),s=a(Ys.insertRowsAfter,S,p,t),d=a(Ys.insertColumnsBefore,S,Ba.halve,t),m=a(Ys.insertColumnsAfter,S,Ba.halve,t),g=a(Ys.mergeCells,S,p,t),h=a(Ys.unmergeCells,S,p,t),v=a(Ys.pasteRowsBefore,S,p,t),b=a(Ys.pasteRowsAfter,S,p,t),w=a(Ys.pasteCells,S,p,t);return{deleteRow:c,deleteColumn:l,insertRowsBefore:f,insertRowsAfter:s,insertColumnsBefore:d,insertColumnsAfter:m,mergeCells:g,unmergeCells:h,pasteRowsBefore:v,pasteRowsAfter:b,pasteCells:w}},zd=function(e,t,n){var r=xo.fromTable(e),o=Bo.generate(r),i=bl(o,t);return i.map(function(e){var t=al.toGrid(o,n,!1),r=t.slice(e[0].row(),e[e.length-1].row()+e[e.length-1].rowspan()),i=fl(r,n);return ic.copy(i)})},Fd={copyRows:zd},Ud=tinymce.util.Tools.resolve("tinymce.util.Tools"),Vd=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 r=i(r,o)},qd=function(e,t,n){n&&e.formatter.apply("align"+n,{},t)},Gd=function(e,t,n){n&&e.formatter.apply("valign"+n,{},t)},Yd=function(e,t){Ud.each("left center right".split(" "),function(n){e.formatter.remove("align"+n,{},t)})},Kd=function(e,t){Ud.each("top middle bottom".split(" "),function(n){e.formatter.remove("valign"+n,{},t)})},Xd={applyAlign:qd,applyVAlign:Gd,unApplyAlign:Yd,unApplyVAlign:Kd,getTDTHOverallStyle:Vd},$d=function(e,t,n){var r=function(e,n){return n=n||[],Ud.each(e,function(e){var o={text:e.text||e.title};e.menu?o.menu=r(e.menu):(o.value=e.value,t&&t(o)),n.push(o)}),n};return r(e,n||[])},Jd=function(e,t){var n=function(t){return Wt(t,"rgb")?e.toHex(t):t},r=nn(Gt.fromDom(t),"border-width").getOr(""),o=nn(Gt.fromDom(t),"border-style").getOr(""),i=nn(Gt.fromDom(t),"border-color").map(n).getOr(""),u=nn(Gt.fromDom(t),"background-color").map(n).getOr("");return{borderwidth:r,borderstyle:o,bordercolor:i,backgroundcolor:u}},Qd=function(e){var t=e[0],n=e.slice(1),r=nt(t);return U(n,function(e){U(r,function(n){ot(e,function(e,r){var o=t[n];""!==o&&n===r&&o!==e&&(t[n]="")})})}),t},Zd=function(e){var t=[{name:"borderstyle",type:"selectbox",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"}]},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}],n={name:"borderwidth",type:"input",label:"Border width"},r="cell"===e?[n].concat(t):t;return{title:"Advanced",name:"advanced",items:r}},em=function(e,t,n,r,o){var i={};return Ud.each(e.split(" "),function(e){r.formatter.matchNode(o,t+e)&&(i[n]=e)}),i[n]||(i[n]=""),i},tm=t(em,"left center right"),nm=t(em,"top middle bottom"),rm=function(e,t){var n=fd(e),r=ld(e),o=function(e){var t=function(t){return Wt(t,"rgb")?e.toHex(t):t},r=at(n,"border-style").getOr(""),o=at(n,"border-color").getOr(""),i=at(n,"background-color").getOr("");return{borderstyle:r,bordercolor:t(o),backgroundcolor:t(i)}},i={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,"class":"",align:"",border:""},u=function(){var t=n["border-width"];return bd(e)&&t?{border:t}:at(r,"border").fold(function(){return{}},function(e){return{border:e}})},a=e.dom,c=t?o(a):{},l=function(){var e=at(n,"border-spacing").or(at(r,"cellspacing")).fold(function(){return{}},function(e){return{cellspacing:e}}),t=at(n,"border-padding").or(at(r,"cellpadding")).fold(function(){return{}},function(e){return{cellpadding:e}});return fn(fn({},e),t)},f=fn(fn(fn(fn(fn(fn({},i),n),r),c),u()),l());return f},om=function(e,t,n){var r=function(t,n){var r=nn(Gt.fromDom(n),"border-width");return bd(e)&&r.isSome()?r.getOr(""):t.getAttrib(n,"border")||Xd.getTDTHOverallStyle(e.dom,n,"border-width")||Xd.getTDTHOverallStyle(e.dom,n,"border")},o=e.dom,i=fn(fn({width:o.getStyle(t,"width")||o.getAttrib(t,"width"),height:o.getStyle(t,"height")||o.getAttrib(t,"height"),cellspacing:o.getStyle(t,"border-spacing")||o.getAttrib(t,"cellspacing"),cellpadding:o.getAttrib(t,"cellpadding")||Xd.getTDTHOverallStyle(e.dom,t,"padding"),border:r(o,t),caption:!!o.select("caption",t)[0],"class":o.getAttrib(t,"class","")},tm("align","align",e,t)),n?Jd(o,t):{});return i},im=function(e,t,n){var r=e.dom,o=fn(fn({height:r.getStyle(t,"height")||r.getAttrib(t,"height"),scope:r.getAttrib(t,"scope"),"class":r.getAttrib(t,"class",""),align:"",type:t.parentNode.nodeName.toLowerCase()},tm("align","align",e,t)),n?Jd(r,t):{});return o},um=function(e,t,n){var r=e.dom,o=fn(fn(fn({width:r.getStyle(t,"width")||r.getAttrib(t,"width"),height:r.getStyle(t,"height")||r.getAttrib(t,"height"),scope:r.getAttrib(t,"scope"),celltype:t.nodeName.toLowerCase(),"class":r.getAttrib(t,"class","")},tm("align","halign",e,t)),nm("valign","valign",e,t)),n?Jd(r,t):{});return o},am={buildListItems:$d,extractAdvancedStyles:Jd,getSharedValues:Qd,getAdvancedTab:Zd,extractDataFromTableElement:om,extractDataFromRowElement:im,extractDataFromCellElement:um,extractDataFromSettings:rm},cm=function(e){var t=wd(e),n=am.buildListItems(t,function(t){t.value&&(t.textStyle=function(){return e.formatter.getCssText({block:"tr",classes:[t.value]})})});return t.length>0?A.some({name:"class",type:"selectbox",label:"Class",items:n}):A.none()},lm=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"selectbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"selectbox",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:"selectbox",label:"H Align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"selectbox",label:"V Align",items:[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}]}],fm=function(e){return cm(e).fold(function(){return lm},function(e){return lm.concat(e)})},sm={getItems:fm},dm=function(e,t){var n=function(n,r){e.setAttrib(t,n,r)},r=function(n,r){e.setStyle(t,n,r)};return{setAttrib:n,setStyle:r}},mm=function(e,t){var n=function(n,r){r&&e.setAttrib(t,n,r)},r=function(n,r){r&&e.setStyle(t,n,r)};return{setAttrib:n,setStyle:r}},gm={normal:dm,ifTruthy:mm},pm=function(e,t){e.setAttrib("scope",t.scope),e.setAttrib("class",t.class),e.setStyle("width",Zs(t.width)),e.setStyle("height",Zs(t.height))},hm=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle),e.setStyle("border-width",Zs(t.borderwidth))},vm=function(e,t,n){var r=e.dom,o=n.celltype&&t[0].nodeName.toLowerCase()!==n.celltype?r.rename(t[0],n.celltype):t[0],i=gm.normal(r,o);pm(i,n),md(e)&&hm(i,n),Xd.unApplyAlign(e,o),Xd.unApplyVAlign(e,o),n.halign&&Xd.applyAlign(e,o,n.halign),n.valign&&Xd.applyVAlign(e,o,n.valign)},bm=function(e,t,n){var r=e.dom;Ud.each(t,function(t){n.celltype&&t.nodeName.toLowerCase()!==n.celltype&&(t=r.rename(t,n.celltype));var o=gm.ifTruthy(r,t);pm(o,n),md(e)&&hm(o,n),n.halign&&Xd.applyAlign(e,t,n.halign),n.valign&&Xd.applyVAlign(e,t,n.valign)})},wm=function(e,t,n){var r=n.getData();n.close(),e.undoManager.transact(function(){var n=1===t.length?vm:bm;n(e,t,r),e.focus()})},ym=function(e){var n,r=[];if(r=e.dom.select("td[data-mce-selected],th[data-mce-selected]"),n=e.dom.getParent(e.selection.getStart(),"td,th"),!r.length&&n&&r.push(n),n=n||r[0]){var o=Ud.map(r,function(t){return am.extractDataFromCellElement(e,t,md(e))}),i=am.getSharedValues(o),u={type:"tabpanel",tabs:[{title:"General",name:"general",items:sm.getItems(e)},am.getAdvancedTab("cell")]},a={type:"panel",items:[{type:"grid",columns:2,items:sm.getItems(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:md(e)?u:a,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i,onSubmit:t(wm,e,r)})}},Cm={open:ym},Sm=function(e){var t=yd(e),n=am.buildListItems(t,function(t){t.value&&(t.textStyle=function(){return e.formatter.getCssText({block:"tr",classes:[t.value]})})});return t.length>0?A.some({name:"class",type:"selectbox",label:"Class",items:n}):A.none()},xm=[{type:"selectbox",name:"type",label:"Row type",items:[{text:"Header",value:"thead"},{text:"Body",value:"tbody"},{text:"Footer",value:"tfoot"}]},{type:"selectbox",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"}],Rm=function(e){return Sm(e).fold(function(){return xm},function(e){return xm.concat(e)})},Tm={getItems:Rm},Om=function(e,t,n){var r=e.getParent(t,"table"),o=t.parentNode,i=e.select(n,r)[0];i||(i=e.create(n),r.firstChild?"CAPTION"===r.firstChild.nodeName?e.insertAfter(i,r.firstChild):r.insertBefore(i,r.firstChild):r.appendChild(i)),"tbody"===n&&"THEAD"===o.nodeName&&i.firstChild?i.insertBefore(t,i.firstChild):i.appendChild(t),o.hasChildNodes()||e.remove(o)},Am=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle)},Dm=function(e,t,n,r){var o=e.dom,i=r.getData();r.close();var u=1===t.length?gm.normal:gm.ifTruthy;e.undoManager.transact(function(){Ud.each(t,function(t){i.type!==t.parentNode.nodeName.toLowerCase()&&Om(e.dom,t,i.type);var r=u(o,t);r.setAttrib("scope",i.scope),r.setAttrib("class",i.class),r.setStyle("height",Zs(i.height)),gd(e)&&Am(r,i),i.align!==n.align&&(Xd.unApplyAlign(e,t),Xd.applyAlign(e,t,i.align))}),e.focus()})},Em=function(e){var n,r,o,i=e.dom,u=[];if(n=i.getParent(e.selection.getStart(),"table"),n&&(r=i.getParent(e.selection.getStart(),"td,th"),Ud.each(n.rows,function(e){Ud.each(e.cells,function(t){return(i.getAttrib(t,"data-mce-selected")||t===r)&&u.indexOf(e)<0?(u.push(e),!1):void 0})}),o=u[0])){var a=Ud.map(u,function(t){return am.extractDataFromRowElement(e,t,gd(e))}),c=am.getSharedValues(a),l={type:"tabpanel",tabs:[{title:"General",name:"general",items:Tm.getItems(e)},am.getAdvancedTab("row")]},f={type:"panel",items:[{type:"grid",columns:2,items:Tm.getItems(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:gd(e)?l:f,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:c,onSubmit:t(Dm,e,u,c)})}},Bm={open:Em},Im=tinymce.util.Tools.resolve("tinymce.Env"),Nm={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},percentages:!0},km=function(){return Gt.fromTag("table")},Pm=function(){return Gt.fromTag("tbody")},Mm=function(){return Gt.fromTag("tr")},Wm=function(){return Gt.fromTag("th")},_m=function(){return Gt.fromTag("td")},Lm=function(e,t,n,r,o){void 0===o&&(o=Nm);var i=km();Zt(i,o.styles),Et(i,o.attributes);var u=Pm();Rr(i,u);for(var a=[],c=0;e>c;c++){for(var l=Mm(),f=0;t>f;f++){var s=n>c||r>f?Wm():_m();r>f&&Dt(s,"scope","row"),n>c&&Dt(s,"scope","col"),Rr(s,Gt.fromTag("br")),o.percentages&&Qt(s,"width",100/t+"%"),Rr(l,s)}a.push(l)}return Dr(u,a),i},Hm=function(e){return e.dom().innerHTML},jm=function(e){var t=Gt.fromTag("div"),n=Gt.fromDom(e.dom().cloneNode(!0));return Rr(t,n),Hm(t)},zm=function(e,t){e.selection.select(t.dom(),!0),e.selection.collapse(!0)},Fm=function(e,n){to(n,"td,th").each(t(zm,e))},Um=function(e,t){U(Kr(t,"tr"),function(t){Ad(e,t.dom()),U(Kr(t,"th,td"),function(t){Dd(e,t.dom())})})},Vm=function(e){return I(e)&&-1!==e.indexOf("%")},qm=function(e,t,n){var r=fd(e),o={styles:r,attributes:ld(e),percentages:Vm(r.width)&&!xd(e)},i=Lm(n,t,0,0,o);Dt(i,"data-mce-id","__mce");var u=jm(i);return e.insertContent(u),to(Ks(e),'table[data-mce-id="__mce"]').map(function(t){return xd(e)&&Qt(t,"width",en(t,"width")),Nt(t,"data-mce-id"),Um(e,t),Fm(e,t),t.dom()}).getOr(null)},Gm={insert:qm},Ym=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=hd(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"}]}]:[],u=[{type:"selectbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],a=t?[{type:"selectbox",name:"class",label:"Class",items:am.buildListItems(Cd(e),function(t){t.value&&(t.textStyle=function(){return e.formatter.getCssText({block:"table",classes:[t.value]})})})}]:[];return r.concat(o).concat(i).concat(u).concat(a)},Km={getItems:Ym},Xm=function(e,t,n,r){if("TD"===t.tagName||"TH"===t.tagName)I(n)?e.setStyle(t,n,r):e.setStyle(t,n);else if(t.children)for(var o=0;o<t.children.length;o++)Xm(e,t.children[o],n,r)},$m=function(e,t,n){var r=e.dom,o={},i={};if(o.class=n.class,i.height=Zs(n.height),r.getAttrib(t,"width")&&!bd(e)?o.width=Qs(n.width):i.width=Zs(n.width),bd(e)?(i["border-width"]=Zs(n.border),i["border-spacing"]=Zs(n.cellspacing)):(o.border=n.border,o.cellpadding=n.cellpadding,o.cellspacing=n.cellspacing),bd(e)&&t.children)for(var u=0;u<t.children.length;u++)Xm(r,t.children[u],{"border-width":Zs(n.border),padding:Zs(n.cellpadding)}),pd(e)&&Xm(r,t.children[u],{"border-color":n.bordercolor});pd(e)&&(i["background-color"]=n.backgroundcolor,i["border-color"]=n.bordercolor,i["border-style"]=n.borderstyle),o.style=r.serializeStyle(fn(fn({},fd(e)),i)),r.setAttribs(t,fn(fn({},ld(e)),o))},Jm=function(e,t,n){var r,o=e.dom,i=n.getData();n.close(),""===i.class&&delete i.class,e.undoManager.transact(function(){if(!t){var n=parseInt(i.cols,10)||1,u=parseInt(i.rows,10)||1;t=Gm.insert(e,n,u)}$m(e,t,i),r=o.select("caption",t)[0],r&&!i.caption&&o.remove(r),!r&&i.caption&&(r=o.create("caption"),r.innerHTML=Im.ie?Lo:'<br data-mce-bogus="1"/>',t.insertBefore(r,t.firstChild)),""===i.align?Xd.unApplyAlign(e,t):Xd.applyAlign(e,t,i.align),e.focus(),e.addVisual()})},Qm=function(e,n){var r,o=e.dom,i=am.extractDataFromSettings(e,pd(e));n===!1?(r=o.getParent(e.selection.getStart(),"table"),r?i=am.extractDataFromTableElement(e,r,pd(e)):pd(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor="")):(i.cols="1",i.rows="1",pd(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor=""));var u=Cd(e).length>0;u&&i.class&&(i.class=i.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:Km.getItems(e,u,n)},c=function(){return{type:"panel",items:[a]}},l=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},am.getAdvancedTab("table")]}},f=pd(e)?l():c();e.windowManager.open({title:"Table Properties",size:"normal",body:f,onSubmit:t(Jm,e,r),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i})},Zm={open:Qm},eg=function(e){return function(t){return A.from(t.dom.getParent(t.selection.getStart(),e)).map(Gt.fromDom)}},tg=eg("th,td"),ng=eg("th,td,caption"),rg=Ud.each,og=function(e,n,r,o,i){var u=Js(e),a=function(){ng(e).each(function(t){var n=yo.table(t,u);n.filter(w(u)).each(function(t){var n=Gt.fromText("");if(Sr(t,n),Br(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()}})})},c=function(e){return yo.table(e,u)},l=function(e){return{width:Xs(e.dom()),height:Xs(e.dom())}},f=function(e,t,n){var r=l(n);(t.width!==r.width||t.height!==r.height)&&(Ed(e,n.dom(),t.width,t.height),Bd(e,n.dom(),r.width,r.height))},s=function(t){tg(e).each(function(n){c(n).each(function(i){var u=ju.forMenu(o,i,n),a=l(i);t(i,u).each(function(t){f(e,a,i),e.selection.setRng(t),e.focus(),r.clear(i),ed(i)})})})},d=function(){return tg(e).map(function(t){return c(t).bind(function(n){var r=Gt.fromDom(e.getDoc()),i=ju.forMenu(o,n,t),u=ci.cellOperations(p,r,A.none());return Fd.copyRows(n,i,u)})})},m=function(t){i.get().each(function(n){var i=F(n,function(e){return Qo(e)});tg(e).each(function(n){c(n).each(function(u){var a=Gt.fromDom(e.getDoc()),c=ci.paste(a),l=ju.pasteRows(o,u,n,i,c);t(u,l).each(function(t){e.selection.setRng(t),e.focus(),r.clear(u)})})})})};rg({mceTableSplitCells:function(){s(n.unmergeCells)},mceTableMergeCells:function(){s(n.mergeCells)},mceTableInsertRowBefore:function(){s(n.insertRowsBefore)},mceTableInsertRowAfter:function(){s(n.insertRowsAfter)},mceTableInsertColBefore:function(){s(n.insertColumnsBefore)},mceTableInsertColAfter:function(){s(n.insertColumnsAfter)},mceTableDeleteCol:function(){s(n.deleteColumn)},mceTableDeleteRow:function(){s(n.deleteRow)},mceTableCutRow:function(){d().each(function(e){i.set(e),s(n.deleteRow)})},mceTableCopyRow:function(){d().each(function(e){i.set(e)})},mceTablePasteRowBefore:function(){m(n.pasteRowsBefore)},mceTablePasteRowAfter:function(){m(n.pasteRowsAfter)},mceTableDelete:a},function(t,n){e.addCommand(n,t)}),rg({mceInsertTable:t(Zm.open,e,!0),mceTableProps:t(Zm.open,e,!1),mceTableRowProps:t(Bm.open,e),mceTableCellProps:t(Cm.open,e)},function(t,n){e.addCommand(n,function(){t()})})},ig={registerCommands:og},ug=function(e){var t=A.from(e.dom().documentElement).map(Gt.fromDom).getOr(e);return{parent:v(t),view:v(e),origin:v(Na(0,0))}},ag=function(e,t){var n=function(){return Ma(t)};return{parent:v(t),view:v(e),origin:n}},cg=function(e,t){return{parent:v(t),view:v(e),origin:v(Na(0,0))}},lg={only:ug,detached:ag,body:cg},fg=function(e){var t=lt.apply(null,e),n=[],r=function(e){if(void 0===e)throw new Error("Event bind error: undefined handler");n.push(e)},o=function(e){n=q(n,function(t){return t!==e})},i=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=t.apply(null,e);U(n,function(e){e(o)})};return{bind:r,unbind:o,trigger:i}},sg=function(e){var t=it(e,function(e){return{bind:e.bind,unbind:e.unbind}}),n=it(e,function(e){return e.trigger});return{registry:t,trigger:n}},dg={create:sg},mg=function(e,t,n,r,o,i,u){return{target:v(e),x:v(t),y:v(n),stop:r,prevent:o,kill:i,raw:v(u)}},gg=function(e){var t=Gt.fromDom(e.target),n=function(){e.stopPropagation()},r=function(){e.preventDefault()},o=h(r,n);return mg(t,e.clientX,e.clientY,n,r,o,e)},pg=function(e,t){return function(n){e(n)&&t(gg(n))}},hg=function(e,n,r,o,i){var u=pg(r,o);return e.dom().addEventListener(n,u,i),{unbind:t(bg,e,n,u,i)}},vg=function(e,t,n,r){return hg(e,t,n,r,!1)},bg=function(e,t,n,r){e.dom().removeEventListener(t,n,r)},wg=v(!0),yg=function(e,t,n){return vg(e,t,wg,n)},Cg=gg,Sg=Rc("ephox-dragster"),xg={resolve:Sg.resolve},Rg=function(e){var t=fn({layerClass:xg.resolve("blocker")},e),n=Gt.fromTag("div");Dt(n,"role","presentation"),Zt(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),mc(n,xg.resolve("blocker")),mc(n,t.layerClass);var r=function(){return n},o=function(){Br(n)};return{element:r,destroy:o}},Tg=Ff(["compare","extract","mutate","sink"]),Og=Ff(["element","start","stop","destroy"]),Ag=Ff(["forceDrop","drop","move","delayDrop"]),Dg=function(e,t){return Na(t.left()-e.left(),t.top()-e.top())},Eg=function(e){return A.some(Na(e.x(),e.y()))},Bg=function(e,t){e.mutate(t.left(),t.top())},Ig=function(e,t){var n=Rg(t),r=yg(n.element(),"mousedown",e.forceDrop),o=yg(n.element(),"mouseup",e.drop),i=yg(n.element(),"mousemove",e.move),u=yg(n.element(),"mouseout",e.delayDrop),a=function(){n.destroy(),o.unbind(),i.unbind(),u.unbind(),r.unbind()},c=function(e){Rr(e,n.element())},l=function(){Br(n.element())};return Og({element:n.element,start:c,stop:l,destroy:a})},Ng=Tg({compare:Dg,extract:Eg,sink:Ig,mutate:Bg}),kg=function(t,n){var r=null,o=function(){null!==r&&(e.clearTimeout(r),r=null)},i=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];null!==r&&e.clearTimeout(r),r=e.setTimeout(function(){t.apply(null,o),r=null},n)};return{cancel:o,throttle:i}},Pg=function(e,t,n){var r=!1,o=dg.create({start:fg([]),stop:fg([])}),i=l(),u=function(){g.stop(),i.isOn()&&(i.off(),o.trigger.stop())},a=kg(u,200),c=function(e){g.start(e),i.on(),o.trigger.start()},f=function(e){a.cancel(),i.onEvent(e,t)};i.events.move.bind(function(n){t.mutate(e,n.info())});var s=function(){r=!0},d=function(){r=!1},m=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r&&e.apply(null,t)}},g=t.sink(Ag({forceDrop:u,drop:m(u),move:m(f),delayDrop:m(a.throttle)}),n),p=function(){g.destroy()};return{element:g.element,go:c,on:s,off:d,destroy:p,events:o.registry}
},Mg={setup:Pg},Wg=function(e,t){void 0===t&&(t={});var n=void 0!==t.mode?t.mode:Ng;return Mg.setup(e,n,t)},_g={transform:Wg},Lg=function(){var e=dg.create({drag:fg(["xDelta","yDelta"])}),t=function(t,n){e.trigger.drag(t,n)};return{mutate:t,events:e.registry}},Hg=function(){var e=dg.create({drag:fg(["xDelta","yDelta","target"])}),t=A.none(),n=Lg();n.events.drag.bind(function(n){t.each(function(t){e.trigger.drag(n.xDelta(),n.yDelta(),t)})});var r=function(e){t=A.some(e)},o=function(){return t};return{assign:r,get:o,mutate:n.mutate,events:e.registry}},jg=function(e){return"true"===Bt(e,"contenteditable")},zg=function(e,t){return no(e,"[contenteditable]",t)},Fg=Oc.resolve("resizer-bar-dragging"),Ug=function(e,n,r){var o=Hg(),i=_g.transform(o,{}),u=A.none(),a=function(e,t){return A.from(Bt(e,t))};o.events.drag.bind(function(e){a(e.target(),"data-row").each(function(){var t=lf.getInt(e.target(),"top");Qt(e.target(),"top",t+e.yDelta()+"px")}),a(e.target(),"data-column").each(function(){var t=lf.getInt(e.target(),"left");Qt(e.target(),"left",t+e.xDelta()+"px")})});var c=function(e,t){var n=lf.getInt(e,t),r=parseInt(Bt(e,"data-initial-"+t),10);return n-r};i.events.stop.bind(function(){o.get().each(function(t){u.each(function(o){a(t,"data-row").each(function(e){var n=c(t,"top");Nt(t,"data-initial-top"),h.trigger.adjustHeight(o,n,parseInt(e,10))}),a(t,"data-column").each(function(e){var n=c(t,"left");Nt(t,"data-initial-left"),h.trigger.adjustWidth(o,n,parseInt(e,10))}),qc.refresh(e,o,r,n)})})});var l=function(t,n){h.trigger.startAdjust(),o.assign(t),Dt(t,"data-initial-"+n,parseInt(en(t,n),10)),mc(t,Fg),Qt(t,"opacity","0.2"),i.go(e.parent())},f=yg(e.parent(),"mousedown",function(e){qc.isRowBar(e.target())&&l(e.target(),"top"),qc.isColBar(e.target())&&l(e.target(),"left")}),s=function(t){return ur(t,e.view())},d=function(e){return no(e,"table",s).filter(function(e){return zg(e,s).exists(jg)})},m=yg(e.view(),"mouseover",function(t){d(t.target()).fold(function(){Yt(t.target())&&qc.destroy(e)},function(t){u=A.some(t),qc.refresh(e,t,r,n)})}),g=function(){f.unbind(),m.unbind(),i.destroy(),qc.destroy(e)},p=function(t){qc.refresh(e,t,r,n)},h=dg.create({adjustHeight:fg(["table","delta","row"]),adjustWidth:fg(["table","delta","column"]),startAdjust:fg([])});return{destroy:g,refresh:p,on:i.on,off:i.off,hideBars:t(qc.hide,e),showBars:t(qc.show,e),events:h.registry}},Vg=function(e,t){var n=Ja.height,r=Ug(e,t,n),o=dg.create({beforeResize:fg(["table"]),afterResize:fg(["table"]),startDrag:fg([])});return r.events.adjustHeight.bind(function(e){o.trigger.beforeResize(e.table());var t=n.delta(e.delta(),e.table());Lf.adjustHeight(e.table(),t,e.row(),n),o.trigger.afterResize(e.table())}),r.events.startAdjust.bind(function(){o.trigger.startDrag()}),r.events.adjustWidth.bind(function(e){o.trigger.beforeResize(e.table());var n=t.delta(e.delta(),e.table());Lf.adjustWidth(e.table(),n,e.column(),t),o.trigger.afterResize(e.table())}),{on:r.on,off:r.off,hideBars:r.hideBars,showBars:r.showBars,destroy:r.destroy,events:o.registry}},qg={create:Vg},Gg=function(){var e=Gt.fromTag("div");return Zt(e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Rr(Kt(),e),e},Yg=function(e){return e.inline?lg.body(Ks(e),Gg()):lg.only(Gt.fromDom(e.getDoc()))},Kg=function(e,t){e.inline&&Br(t.parent())},Xg={get:Yg,remove:Kg},$g=function(e,t){return Xs(e.dom())/Xs(t.dom())*100+"%"},Jg=function(e){var t=Gt.fromDom(e);gr(t).map(function(e){return $g(t,e)}).each(function(e){Qt(t,"width",e),U(Kr(t,"tr"),function(e){U(br(e),function(t){Qt(t,"width",$g(t,e))})})})},Qg=function(e){Qt(Gt.fromDom(e),"width",Xs(e).toString()+"px")},Zg=function(e){var t,n,r=A.none(),o=A.none(),i=A.none(),a=/(\d+(\.\d+)?)%/,c=function(e){return"TABLE"===e.nodeName},l=function(t){var n=e.dom.getStyle(t,"width")||e.dom.getAttrib(t,"width");return A.from(n).filter(function(e){return e.length>0})},f=function(){return o},s=function(){return i.getOr(lg.only(Gt.fromDom(e.getBody())))},d=function(){o.each(function(e){e.destroy()}),i.each(function(t){Xg.remove(e,t)})};return e.on("init",function(){var t=u(id.directionAt),n=Xg.get(e);if(i=A.some(n),Od(e)&&sd(e)){var a=qg.create(n,t);a.on(),a.events.startDrag.bind(function(){r=A.some(e.selection.getRng())}),a.events.beforeResize.bind(function(t){var n=t.table().dom();Ed(e,n,Xs(n),$s(n))}),a.events.afterResize.bind(function(t){var n=t.table(),o=n.dom();ed(n),r.each(function(t){e.selection.setRng(t),e.focus()}),Bd(e,o,Xs(o),$s(o)),e.undoManager.add()}),o=A.some(a)}}),e.on("ObjectResizeStart",function(r){var o=r.target;if(c(o)){var i=l(o).map(function(e){return a.test(e)}).getOr(!1);i&&xd(e)?Qg(o):!i&&Sd(e)&&Jg(o),t=r.width,n=l(o).getOr("")}}),e.on("ObjectResized",function(r){var o=r.target;if(c(o)){var i=o;if(a.test(n)){var u=parseFloat(a.exec(n)[1]),l=r.width*u/t;e.dom.setStyle(i,"width",l+"%")}else{var f=[];Ud.each(i.rows,function(t){Ud.each(t.cells,function(t){var n=e.dom.getStyle(t,"width",!0);f.push({cell:t,width:n})})}),Ud.each(f,function(t){e.dom.setStyle(t.cell,"width",t.width),e.dom.setAttrib(t.cell,"width",null)})}}}),e.on("SwitchMode",function(){f().each(function(t){e.mode.isReadOnly()?t.hideBars():t.showBars()})}),{lazyResize:f,lazyWire:s,destroy:d}},ep=Au.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),tp=function(e){return void 0===e&&(e=void 0),ep.none(e)},np=fn(fn({},ep),{none:tp}),rp=function(e,t){return yo.table(e,t).bind(function(t){var n=yo.cells(t),r=X(n,function(t){return ur(e,t)});return r.map(function(e){return{index:v(e),all:v(n)}})})},op=function(e,t){var n=rp(e,t);return n.fold(function(){return np.none(e)},function(t){return t.index()+1<t.all().length?np.middle(e,t.all()[t.index()+1]):np.last(e)})},ip=function(e,t){var n=rp(e,t);return n.fold(function(){return np.none()},function(t){return t.index()-1>=0?np.middle(e,t.all()[t.index()-1]):np.first(e)})},up={next:op,prev:ip},ap=lt("start","soffset","finish","foffset"),cp={create:ap},lp=Au.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),fp=function(e,t,n,r){return e.fold(t,n,r)},sp=function(e){return e.fold(b,b,b)},dp=lp.before,mp=lp.on,gp=lp.after,pp={before:dp,on:mp,after:gp,cata:fp,getStart:sp},hp=Au.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),vp=function(e){return hp.exact(e.start(),e.soffset(),e.finish(),e.foffset())},bp=function(e){return e.match({domRange:function(e){return Gt.fromDom(e.startContainer)},relative:function(e){return pp.getStart(e)},exact:function(e){return e}})},wp=hp.domRange,yp=hp.relative,Cp=hp.exact,Sp=function(e){var t=bp(e);return mr(t)},xp=cp.create,Rp={domRange:wp,relative:yp,exact:Cp,exactFromRange:vp,getWin:Sp,range:xp},Tp=function(e,t){var n=e.document.createRange();return Op(n,t),n},Op=function(e,t){e.selectNodeContents(t.dom())},Ap=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())})},Dp=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())})},Ep=function(e,t,n){var r=e.document.createRange();return Ap(r,t),Dp(r,n),r},Bp=function(e,t,n,r,o){var i=e.document.createRange();return i.setStart(t.dom(),n),i.setEnd(r.dom(),o),i},Ip=function(e){return{left:v(e.left),top:v(e.top),right:v(e.right),bottom:v(e.bottom),width:v(e.width),height:v(e.height)}},Np=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?A.some(n).map(Ip):A.none()},kp=Au.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Pp=function(e,t,n){return t(Gt.fromDom(n.startContainer),n.startOffset,Gt.fromDom(n.endContainer),n.endOffset)},Mp=function(e,t){return t.match({domRange:function(e){return{ltr:v(e),rtl:A.none}},relative:function(t,n){return{ltr:jt(function(){return Ep(e,t,n)}),rtl:jt(function(){return A.some(Ep(e,n,t))})}},exact:function(t,n,r,o){return{ltr:jt(function(){return Bp(e,t,n,r,o)}),rtl:jt(function(){return A.some(Bp(e,r,o,t,n))})}}})},Wp=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter(function(e){return e.collapsed===!1});return r.map(function(e){return kp.rtl(Gt.fromDom(e.endContainer),e.endOffset,Gt.fromDom(e.startContainer),e.startOffset)}).getOrThunk(function(){return Pp(e,kp.ltr,n)})}return Pp(e,kp.ltr,n)},_p=function(e,t){var n=Mp(e,t);return Wp(e,n)},Lp=function(e,t){var n=_p(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}})},Hp=(kp.ltr,kp.rtl,function(e,t,n,r,o){if(0===o)return 0;if(t===r)return o-1;for(var i=r,u=1;o>u;u++){var a=e(u),c=Math.abs(t-a.left);if(n<=a.bottom){if(n<a.top||c>i)return u-1;i=c}}return 0}),jp=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},zp=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},u=function(e){var t=i(e);return t.getBoundingClientRect()},a=jo(t).length,c=Hp(u,n,r,o.right,a);return i(c)},Fp=function(e,t,n,r){var o=e.dom().createRange();o.selectNode(t.dom());var i=o.getClientRects(),u=tt(i,function(e){return jp(e,n,r)?A.some(e):A.none()});return u.map(function(o){return zp(e,t,n,r,o)})},Up=function(e,t,n,r){var o=e.dom().createRange(),i=br(t);return tt(i,function(t){return o.selectNode(t.dom()),jp(o.getBoundingClientRect(),n,r)?Vp(e,t,n,r):A.none()})},Vp=function(e,t,n,r){return Ot(t)?Fp(e,t,n,r):Up(e,t,n,r)},qp=function(e,t,n,r){var o=e.dom().createRange();o.selectNode(t.dom());var i=o.getBoundingClientRect(),u=Math.max(i.left,Math.min(i.right,n)),a=Math.max(i.top,Math.min(i.bottom,r));return Vp(e,t,u,a)},Gp=!0,Yp=!1,Kp=function(e,t){return t-e.left<e.right-t?Gp:Yp},Xp=function(e,t,n){var r=e.dom().createRange();return r.selectNode(t.dom()),r.collapse(n),r},$p=function(e,t,n){var r=e.dom().createRange();r.selectNode(t.dom());var o=r.getBoundingClientRect(),i=Kp(o,n),u=i===Gp?Yo:Ko;return u(t).map(function(t){return Xp(e,t,i)})},Jp=function(e,t,n){var r=t.dom().getBoundingClientRect(),o=Kp(r,n);return A.some(Xp(e,t,o))},Qp=function(e,t,n){var r=0===br(t).length?Jp:$p;return r(e,t,n)},Zp=function(e,t,n){return A.from(e.dom().caretPositionFromPoint(t,n)).bind(function(t){if(null===t.offsetNode)return A.none();var n=e.dom().createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),A.some(n)})},eh=function(e,t,n){return A.from(e.dom().caretRangeFromPoint(t,n))},th=function(e,t,n,r){var o=e.dom().createRange();o.selectNode(t.dom());var i=o.getBoundingClientRect(),u=Math.max(i.left,Math.min(i.right,n)),a=Math.max(i.top,Math.min(i.bottom,r));return qp(e,t,u,a)},nh=function(e,t,n){return Gt.fromPoint(e,t,n).bind(function(r){var o=function(){return Qp(e,r,t)};return 0===br(r).length?o():th(e,r,t,n).orThunk(o)})},rh=document.caretPositionFromPoint?Zp:document.caretRangeFromPoint?eh:nh,oh=function(e,t,n){var r=Gt.fromDom(e.document);return rh(r,t,n).map(function(e){return cp.create(Gt.fromDom(e.startContainer),e.startOffset,Gt.fromDom(e.endContainer),e.endOffset)})},ih=function(e,t){var n=Ct(e);return"input"===n?pp.after(e):j(["br","img"],n)?0===t?pp.before(e):pp.after(e):pp.on(e,t)},uh=function(e,t){var n=e.fold(pp.before,ih,pp.after),r=t.fold(pp.before,ih,pp.after);return Rp.relative(n,r)},ah=function(e,t,n,r){var o=ih(e,t),i=ih(n,r);return Rp.relative(o,i)},ch=function(e){return e.match({domRange:function(e){var t=Gt.fromDom(e.startContainer),n=Gt.fromDom(e.endContainer);return ah(t,e.startOffset,n,e.endOffset)},relative:uh,exact:ah})},lh=function(e,t,n,r){var o=dr(e),i=o.dom().createRange();return i.setStart(e.dom(),t),i.setEnd(n.dom(),r),i},fh=function(e,t,n,r){var o=lh(e,t,n,r),i=ur(e,n)&&t===r;return o.collapsed&&!i},sh=function(e,t){A.from(e.getSelection()).each(function(e){e.removeAllRanges(),e.addRange(t)})},dh=function(e,t,n,r,o){var i=Bp(e,t,n,r,o);sh(e,i)},mh=function(e,t,n,r,o,i){t.collapse(n.dom(),r),t.extend(o.dom(),i)},gh=function(e,t){return _p(e,t).match({ltr:function(t,n,r,o){dh(e,t,n,r,o)},rtl:function(t,n,r,o){var i=e.getSelection();if(i.setBaseAndExtent)i.setBaseAndExtent(t.dom(),n,r.dom(),o);else if(i.extend)try{mh(e,i,t,n,r,o)}catch(u){dh(e,r,o,t,n)}else dh(e,r,o,t,n)}})},ph=function(e,t,n,r,o){var i=ah(t,n,r,o);gh(e,i)},hh=function(e,t,n){var r=uh(t,n);gh(e,r)},vh=function(e){var t=Rp.getWin(e).dom(),n=function(e,n,r,o){return Bp(t,e,n,r,o)},r=ch(e);return _p(t,r).match({ltr:n,rtl:n})},bh=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return A.some(cp.create(Gt.fromDom(t.startContainer),t.startOffset,Gt.fromDom(n.endContainer),n.endOffset))}return A.none()},wh=function(e){var t=Gt.fromDom(e.anchorNode),n=Gt.fromDom(e.focusNode);return fh(t,e.anchorOffset,n,e.focusOffset)?A.some(cp.create(t,e.anchorOffset,n,e.focusOffset)):bh(e)},yh=function(e,t){var n=Tp(e,t);sh(e,n)},Ch=function(e){return A.from(e.getSelection()).filter(function(e){return e.rangeCount>0}).bind(wh)},Sh=function(e){return Ch(e).map(function(e){return Rp.exact(e.start(),e.soffset(),e.finish(),e.foffset())})},xh=function(e,t){var n=Lp(e,t);return Np(n)},Rh=function(e,t,n){return oh(e,t,n)},Th=function(e){var t=e.getSelection();t.removeAllRanges()},Oh=tinymce.util.Tools.resolve("tinymce.util.VK"),Ah=function(e,t,n,r){return Ih(e,t,up.next(n),r)},Dh=function(e,t,n,r){return Ih(e,t,up.prev(n),r)},Eh=function(e,t){var n=Rp.exact(t,0,t,0);return vh(n)},Bh=function(e,t){var n=Kr(t,"tr");return et(n).bind(function(t){return to(t,"td,th").map(function(t){return Eh(e,t)})})},Ih=function(e,t,n,r){return n.fold(A.none,A.none,function(t,n){return Yo(n).map(function(t){return Eh(e,t)})},function(n){return yo.table(n,t).bind(function(t){var o=ju.noMenu(n);return e.undoManager.transact(function(){r.insertRowsAfter(t,o)}),Bh(e,t)})})},Nh=["table","li","dl"],kh=function(e,t,n,r){if(e.keyCode===Oh.TAB){var o=Ks(t),i=function(e){var t=Ct(e);return ur(e,o)||j(Nh,t)},u=t.selection.getRng();if(u.collapsed){var a=Gt.fromDom(u.startContainer);yo.cell(a,i).each(function(o){e.preventDefault();var u=e.shiftKey?Dh:Ah,a=u(t,i,o,n,r);a.each(function(e){t.selection.setRng(e)})})}}},Ph={handle:kh},Mh=lt("selection","kill"),Wh={create:Mh},_h=function(e,t,n,r){return{start:v(pp.on(e,t)),finish:v(pp.on(n,r))}},Lh={create:_h},Hh=function(e,t){var n=Lp(e,t);return cp.create(Gt.fromDom(n.startContainer),n.startOffset,Gt.fromDom(n.endContainer),n.endOffset)},jh=Lh.create,zh={convertToRange:Hh,makeSitus:jh},Fh=function(e,t,n,r,o,i,u){return ur(n,o)&&r===i?A.none():no(n,"td,th",t).bind(function(n){return no(o,"td,th",t).bind(function(r){return Uh(e,t,n,r,u)})})},Uh=function(e,t,n,r,o){return ur(n,r)?A.none():gu.identify(n,r,t).bind(function(t){var r=t.boxes().getOr([]);return r.length>0?(o(e,r,t.start(),t.finish()),A.some(Wh.create(A.some(zh.makeSitus(n,0,n,Uo(n))),!0))):A.none()})},Vh=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 gu.shiftSelection(r,e,t,o.firstSelectedSelector(),o.lastSelectedSelector()).map(i)},qh={sync:Fh,detect:Uh,update:Vh},Gh=lt("item","mode"),Yh=function(e,t,n,r){return void 0===r&&(r=Kh),e.property().parent(t).map(function(e){return Gh(e,r)})},Kh=function(e,t,n,r){return void 0===r&&(r=Xh),n.sibling(e,t).map(function(e){return Gh(e,r)})},Xh=function(e,t,n,r){void 0===r&&(r=Xh);var o=e.property().children(t),i=n.first(o);return i.map(function(e){return Gh(e,r)})},$h=[{current:Yh,next:Kh,fallback:A.none()},{current:Kh,next:Xh,fallback:A.some(Yh)},{current:Xh,next:Xh,fallback:A.some(Kh)}],Jh=function(e,t,n,r,o){void 0===o&&(o=$h);var i=K(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 Jh(e,t,n,r)})})})},Qh=function(){var e=function(e,t){return e.query().prevSibling(t)},t=function(e){return e.length>0?A.some(e[e.length-1]):A.none()};return{sibling:e,first:t}},Zh=function(){var e=function(e,t){return e.query().nextSibling(t)},t=function(e){return e.length>0?A.some(e[0]):A.none()};return{sibling:e,first:t}},ev={left:Qh,right:Zh},tv=function(e,t,n,r,o,i){var u=Jh(e,t,r,o);return u.bind(function(t){return i(t.item())?A.none():n(t.item())?A.some(t.item()):tv(e,t.item(),n,t.mode(),o,i)})},nv=function(e,t,n,r){return tv(e,t,n,Kh,ev.left(),r)},rv=function(e,t,n,r){return tv(e,t,n,Kh,ev.right(),r)},ov=function(e){return function(t){return 0===e.property().children(t).length}},iv=function(e,t,n){return av(e,t,ov(e),n)},uv=function(e,t,n){return cv(e,t,ov(e),n)},av=nv,cv=rv,lv=o(),fv=function(e,t){return iv(lv,e,t)},sv=function(e,t){return uv(lv,e,t)},dv=function(e,t,n){return av(lv,e,t,n)},mv=function(e,t,n){return cv(lv,e,t,n)},gv=function(e,t,n){return Xr(e,t,n).isSome()},pv=Au.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),hv=function(e,t,n){var r=e.getRect(t),o=e.getRect(n);return o.right>r.left&&o.left<r.right},vv=function(e){return no(e,"tr")},bv=function(e,t,n,r,o,i,u){return no(r,"td,th",u).bind(function(n){return no(t,"td,th",u).map(function(t){return ur(n,t)?ur(r,n)&&Uo(n)===o?i(t):pv.none("in same cell"):ou.sharedOne(vv,[n,t]).fold(function(){return hv(e,t,n)?pv.success():i(t)},function(){return i(t)})})}).getOr(pv.none("default"))},wv=function(e,t,n,r,o){return e.fold(t,n,r,o)},yv=fn(fn({},pv),{verify:bv,cata:wv}),Cv=(lt("ancestor","descendants","element","index"),lt("parent","children","element","index")),Sv=function(e){return gr(e).bind(function(t){var n=br(t);return xv(n,e).map(function(r){return Cv(t,n,e,r)})})},xv=function(e,n){return X(e,t(ur,n))},Rv=function(e){return"br"===Ct(e)},Tv=function(e,t,n){return t(e,n).bind(function(e){return Ot(e)&&0===jo(e).trim().length?Tv(e,t,n):A.some(e)})},Ov=function(e,t,n){return n.traverse(t).orThunk(function(){return Tv(t,n.gather,e)}).map(n.relative)},Av=function(e,t){return wr(e,t).filter(Rv).orThunk(function(){return wr(e,t-1).filter(Rv)})},Dv=function(e,t,n,r){return Av(t,n).bind(function(t){return r.traverse(t).fold(function(){return Tv(t,r.gather,e).map(r.relative)},function(e){return Sv(e).map(function(e){return pp.on(e.parent(),e.index())})})})},Ev=function(e,t,n,r){var o=Rv(t)?Ov(e,t,r):Dv(e,t,n,r);return o.map(function(e){return{start:v(e),finish:v(e)}})},Bv=function(e){return yv.cata(e,function(){return A.none()},function(){return A.none()},function(e){return A.some(kd(e,0))},function(e){return A.some(kd(e,Uo(e)))})},Iv={tryBr:Ev,process:Bv},Nv=ht(["left","top","right","bottom"],[]),kv=function(e,t){return Nv({left:e.left(),top:e.top()+t,right:e.right(),bottom:e.bottom()+t})},Pv=function(e,t){return Nv({left:e.left(),top:e.top()-t,right:e.right(),bottom:e.bottom()-t})},Mv=function(e,t){var n=e.bottom()-e.top();return Nv({left:e.left(),top:t-n,right:e.right(),bottom:t})},Wv=function(e,t){var n=e.bottom()-e.top();return Nv({left:e.left(),top:t,right:e.right(),bottom:t+n})},_v=function(e,t,n){return Nv({left:e.left()+t,top:e.top()+n,right:e.right()+t,bottom:e.bottom()+n})},Lv=function(e){return e.top()},Hv=function(e){return e.bottom()},jv=function(e){return"("+e.left()+", "+e.top()+") -> ("+e.right()+", "+e.bottom()+")"},zv={nu:Nv,moveUp:Pv,moveDown:kv,moveBottomTo:Mv,moveTopTo:Wv,getTop:Lv,getBottom:Hv,translate:_v,toString:jv},Fv=function(e,t,n){return n>=0&&n<Uo(t)?e.getRangedRect(t,n,t,n+1):n>0?e.getRangedRect(t,n-1,t,n):A.none()},Uv=function(e){return zv.nu({left:e.left,top:e.top,right:e.right,bottom:e.bottom})},Vv=function(e,t){return A.some(e.getRect(t))},qv=function(e,t,n){return Tt(t)?Vv(e,t).map(Uv):Ot(t)?Fv(e,t,n).map(Uv):A.none()},Gv=function(e,t){return Tt(t)?Vv(e,t).map(Uv):Ot(t)?e.getRangedRect(t,0,t,Uo(t)).map(Uv):A.none()},Yv={getBoxAt:qv,getEntireBox:Gv},Kv=5,Xv=100,$v=Au.generate([{none:[]},{retry:["caret"]}]),Jv=function(e,t){return e.left()<t.left()||Math.abs(t.right()-e.left())<1||e.left()>t.right()},Qv=function(e,t,n){return $r(t,gs.isBlock).fold(v(!1),function(t){return Yv.getEntireBox(e,t).exists(function(e){return Jv(n,e)})})},Zv=function(e,t,n,r,o){var i=zv.moveDown(o,Kv);return Math.abs(n.bottom()-r.bottom())<1?$v.retry(i):n.top()>o.bottom()?$v.retry(i):n.top()===o.bottom()?$v.retry(zv.moveDown(o,1)):Qv(e,t,o)?$v.retry(zv.translate(i,Kv,0)):$v.none()},eb=function(e,t,n,r,o){var i=zv.moveUp(o,Kv);return Math.abs(n.top()-r.top())<1?$v.retry(i):n.bottom()<o.top()?$v.retry(i):n.bottom()===o.top()?$v.retry(zv.moveUp(o,1)):Qv(e,t,o)?$v.retry(zv.translate(i,Kv,0)):$v.none()},tb={point:zv.getTop,adjuster:eb,move:zv.moveUp,gather:fv},nb={point:zv.getBottom,adjuster:Zv,move:zv.moveDown,gather:sv},rb=function(e,t,n){return e.elementFromPoint(t,n).filter(function(e){return"table"===Ct(e)}).isSome()},ob=function(e,t,n,r,o){return ib(e,t,n,t.move(r,Kv),o)},ib=function(e,t,n,r,o){return 0===o?A.some(r):rb(e,r.left(),t.point(r))?ob(e,t,n,r,o-1):e.situsFromPoint(r.left(),t.point(r)).bind(function(i){return i.start().fold(A.none,function(i){return Yv.getEntireBox(e,i).bind(function(u){return t.adjuster(e,i,u,n,r).fold(A.none,function(r){return ib(e,t,n,r,o-1)})}).orThunk(function(){return A.some(r)})},A.none)})},ub=function(e,t){return e.situsFromPoint(t.left(),t.bottom()+Kv)},ab=function(e,t){return e.situsFromPoint(t.left(),t.top()-Kv)},cb=function(e,t,n){return e.point(t)>n.getInnerHeight()?A.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?A.some(-e.point(t)):A.none()},lb=function(e,t,n){var r=e.move(n,Kv),o=ib(t,e,n,r,Xv).getOr(r);return cb(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)})},fb={tryUp:t(lb,tb),tryDown:t(lb,nb),ieTryUp:ab,ieTryDown:ub,getJumpSize:v(Kv)},sb=20,db=Zn(),mb=function(e,t,n){return e.getSelection().bind(function(r){return Iv.tryBr(t,r.finish(),r.foffset(),n).fold(function(){return A.some(kd(r.finish(),r.foffset()))},function(o){var i=e.fromSitus(o),u=yv.verify(e,r.finish(),r.foffset(),i.finish(),i.foffset(),n.failure,t);return Iv.process(u)})})},gb=function(e,t,n,r,o,i){return 0===i?A.none():vb(e,t,n,r,o).bind(function(u){var a=e.fromSitus(u),c=yv.verify(e,n,r,a.finish(),a.foffset(),o.failure,t);return yv.cata(c,function(){return A.none()},function(){return A.some(u)},function(u){return ur(n,u)&&0===r?pb(e,n,r,zv.moveUp,o):gb(e,t,u,0,o,i-1)},function(u){return ur(n,u)&&r===Uo(u)?pb(e,n,r,zv.moveDown,o):gb(e,t,u,Uo(u),o,i-1)})})},pb=function(e,t,n,r,o){return Yv.getBoxAt(e,t,n).bind(function(t){return hb(e,o,r(t,fb.getJumpSize()))})},hb=function(e,t,n){return db.browser.isChrome()||db.browser.isSafari()||db.browser.isFirefox()||db.browser.isEdge()?t.otherRetry(e,n):db.browser.isIE()?t.ieRetry(e,n):A.none()},vb=function(e,t,n,r,o){return Yv.getBoxAt(e,n,r).bind(function(t){return hb(e,o,t)})},bb=function(e,t,n){return mb(e,t,n).bind(function(r){return gb(e,t,r.element(),r.offset(),n,sb).map(e.fromSitus)})},wb={handle:bb},yb=Zn(),Cb=function(e,t){return gv(e,function(e){return gr(e).exists(function(e){return ur(e,t)})})},Sb=function(e,t,n,r,o){return no(r,"td,th",t).bind(function(r){return no(r,"table",t).bind(function(i){return Cb(o,i)?wb.handle(e,t,n).bind(function(e){return no(e.finish(),"td,th",t).map(function(t){return{start:v(r),finish:v(t),range:v(e)}})}):A.none()})})},xb=function(e,t,n,r,o,i){return yb.browser.isIE()?A.none():i(r,t).orThunk(function(){return Sb(e,t,n,r,o).map(function(e){var t=e.range();return Wh.create(A.some(zh.makeSitus(t.start(),t.soffset(),t.finish(),t.foffset())),!0)})})},Rb=function(e,t){return no(e,"tr",t).bind(function(e){return no(e,"table",t).bind(function(n){var r=Kr(n,"tr");return ur(e,r[0])?dv(n,function(e){return Ko(e).isSome()},t).map(function(e){var t=Uo(e);return Wh.create(A.some(zh.makeSitus(e,t,e,t)),!0)}):A.none()})})},Tb=function(e,t){return no(e,"tr",t).bind(function(e){return no(e,"table",t).bind(function(n){var r=Kr(n,"tr");return ur(e,r[r.length-1])?mv(n,function(e){return Yo(e).isSome()},t).map(function(e){return Wh.create(A.some(zh.makeSitus(e,0,e,0)),!0)}):A.none()})})},Ob=function(e,t,n,r,o,i,u){return Sb(e,n,r,o,i).bind(function(e){return qh.detect(t,n,e.start(),e.finish(),u)})},Ab={navigate:xb,select:Ob,firstUpCheck:Rb,lastDownCheck:Tb},Db=function(e,t){return no(e,"td,th",t)},Eb={traverse:vr,gather:sv,relative:pp.before,otherRetry:fb.tryDown,ieRetry:fb.ieTryDown,failure:yv.failedDown},Bb={traverse:hr,gather:fv,relative:pp.before,otherRetry:fb.tryUp,ieRetry:fb.ieTryUp,failure:yv.failedUp},Ib={down:Eb,up:Bb},Nb=function(e){return function(t){return t===e}},kb=Nb(38),Pb=Nb(40),Mb=function(e){return e>=37&&40>=e},Wb={ltr:{isBackward:Nb(37),isForward:Nb(39)},rtl:{isBackward:Nb(39),isForward:Nb(37)},isUp:kb,isDown:Pb,isNavigation:Mb},_b=function(e){return{left:e.left(),top:e.top(),right:e.right(),bottom:e.bottom(),width:e.width(),height:e.height()}},Lb={toRaw:_b},Hb=(Zn().browser.isSafari(),function(t){var n=void 0!==t?t.dom():e.document,r=n.body.scrollLeft||n.documentElement.scrollLeft,o=n.body.scrollTop||n.documentElement.scrollTop;return Na(r,o)}),jb=function(t,n,r){var o=void 0!==r?r.dom():e.document,i=o.defaultView;i.scrollBy(t,n)},zb=function(e){var t=function(t,n){return Gt.fromPoint(Gt.fromDom(e.document),t,n)},n=function(e){return e.dom().getBoundingClientRect()},r=function(t,n,r,o){var i=Rp.exact(t,n,r,o);return xh(e,i).map(Lb.toRaw)},o=function(){return Sh(e).map(function(t){return zh.convertToRange(e,t)})},i=function(t){var n=Rp.relative(t.start(),t.finish());return zh.convertToRange(e,n)},u=function(t,n){return Rh(e,t,n).map(function(e){return Lh.create(e.start(),e.soffset(),e.finish(),e.foffset())})},a=function(){Th(e)},c=function(t){void 0===t&&(t=!1),Sh(e).each(function(n){return n.fold(function(e){return e.collapse(t)},function(n,r){var o=t?n:r;hh(e,o,o)},function(n,r,o,i){var u=t?n:o,a=t?r:i;ph(e,u,a,u,a)})})},l=function(t){yh(e,t)},f=function(t){ph(e,t.start(),t.soffset(),t.finish(),t.foffset())},s=function(t,n){hh(e,t,n)},d=function(){return e.innerHeight},m=function(){var t=Hb(Gt.fromDom(e.document));return t.top()},g=function(t,n){jb(t,n,Gt.fromDom(e.document))};return{elementFromPoint:t,getRect:n,getRangedRect:r,getSelection:o,fromSitus:i,situsFromPoint:u,clearSelection:a,collapseSelection:c,setSelection:f,setRelativeSelection:s,selectContents:l,getInnerHeight:d,getScrollY:m,scrollBy:g}},Fb=lt("rows","cols"),Ub=function(e,t,n,r){var o=zb(e),i=f(o,t,n,r);return{mousedown:i.mousedown,mouseover:i.mouseover,mouseup:i.mouseup}},Vb=function(e,n,r,o){var i=zb(e),u=function(){return o.clear(n),A.none()},a=function(e,a,c,l,f,s){var d=e.raw(),m=d.which,g=d.shiftKey===!0,p=gu.retrieve(n,o.selectedSelector()).fold(function(){return Wb.isDown(m)&&g?t(Ab.select,i,n,r,Ib.down,l,a,o.selectRange):Wb.isUp(m)&&g?t(Ab.select,i,n,r,Ib.up,l,a,o.selectRange):Wb.isDown(m)?t(Ab.navigate,i,r,Ib.down,l,a,Ab.lastDownCheck):Wb.isUp(m)?t(Ab.navigate,i,r,Ib.up,l,a,Ab.firstUpCheck):A.none},function(e){var t=function(t){return function(){var r=tt(t,function(t){return qh.update(t.rows(),t.cols(),n,e,o)});return r.fold(function(){return gu.getEdges(n,o.firstSelectedSelector(),o.lastSelectedSelector()).map(function(e){var t=Wb.isDown(m)||s.isForward(m)?pp.after:pp.before;return i.setRelativeSelection(pp.on(e.first(),0),t(e.table())),o.clear(n),Wh.create(A.none(),!0)})},function(){return A.some(Wh.create(A.none(),!0))})}};return Wb.isDown(m)&&g?t([Fb(1,0)]):Wb.isUp(m)&&g?t([Fb(-1,0)]):s.isBackward(m)&&g?t([Fb(0,-1),Fb(-1,0)]):s.isForward(m)&&g?t([Fb(0,1),Fb(1,0)]):Wb.isNavigation(m)&&g===!1?u:A.none});return p()},c=function(e,t,i,u,a){return gu.retrieve(n,o.selectedSelector()).fold(function(){var c=e.raw(),l=c.which,f=c.shiftKey===!0;return f===!1?A.none():Wb.isNavigation(l)?qh.sync(n,r,t,i,u,a,o.selectRange):A.none()},A.none)};return{keydown:a,keyup:c}},qb=function(e,t,n,r){var o=zb(e);return function(e,i){r.clearBeforeUpdate(t),gu.identify(e,i,n).each(function(e){var n=e.boxes().getOr([]);r.selectRange(t,n,e.start(),e.finish()),o.selectContents(i),o.collapseSelection()})}},Gb={mouse:Ub,keyboard:Vb,external:qb},Yb=function(e,t){U(t,function(t){pc(e,t)})},Kb=function(e){return function(t){mc(t,e)}},Xb=function(e){return function(t){Yb(t,e)}},$b=function(e){var t=Kb(e.selected()),n=Xb([e.selected(),e.lastSelected(),e.firstSelected()]),r=function(t){var r=Kr(t,e.selectedSelector());U(r,n)},o=function(n,o,i,u){r(n),U(o,t),mc(i,e.firstSelected()),mc(u,e.lastSelected())};return{clearBeforeUpdate:r,clear:r,selectRange:o,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},Jb=function(e,t,n){var r=function(t){Nt(t,e.selected()),Nt(t,e.firstSelected()),Nt(t,e.lastSelected())},o=function(t){Dt(t,e.selected(),"1")},i=function(e){u(e),n()},u=function(t){var n=Kr(t,e.selectedSelector());U(n,r)},a=function(n,r,u,a){i(n),U(r,o),Dt(u,e.firstSelected(),"1"),Dt(a,e.lastSelected(),"1"),t(r,u,a)};return{clearBeforeUpdate:u,clear:i,selectRange:a,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},Qb={byClass:$b,byAttr:Jb},Zb=function(e,t,n){var r=e.slice(0,t[t.length-1].row()+1),o=fl(r,n);return J(o,function(e){var n=e.cells().slice(0,t[t.length-1].column()+1);return F(n,function(e){return e.element()})})},ew=function(e,t,n){var r=e.slice(t[0].row()+t[0].rowspan()-1,e.length),o=fl(r,n);return J(o,function(e){var n=e.cells().slice(t[0].column()+t[0].colspan()-1,+e.cells().length);return F(n,function(e){return e.element()})})},tw=function(e,t,n){var r=xo.fromTable(e),o=Bo.generate(r),i=bl(o,t);return i.map(function(e){var t=al.toGrid(o,n,!1),r=Zb(t,e,n),i=ew(t,e,n);return{upOrLeftCells:r,downOrRightCells:i}})},nw={getOtherCells:tw},rw=function(e){return hc(Gt.fromDom(e.target),"ephox-snooker-resizer-bar")===!1},ow=function(e){var t=function(){var t=Ks(e);return vu.retrieve(t,Tu.selectedSelector()).fold(function(){return void 0===e.selection.getStart()?Bu.none():Bu.single(e.selection)},function(e){return Bu.multiple(e)})};return{get:t}},iw=function(e,t){var n=g(A.none()),r=g([]),o=function(){return ng(e).bind(function(e){var n=yo.table(e);return n.map(function(n){return"caption"===Ct(e)?ju.notCell(e):ju.forMenu(t,n,e)})})},i=function(){n.set(jt(o)()),U(r.get(),function(e){return e()})},u=function(e,t){var o=function(){return n.get().fold(function(){e.setDisabled(!0)},function(n){e.setDisabled(t(n))})};return o(),r.set(r.get().concat([o])),function(){r.set(q(r.get(),function(e){return e!==o}))}},a=function(e){return u(e,function(){return!1})},c=function(e){return u(e,function(e){return"caption"===Ct(e.element())})},l=function(e){return u(e,function(e){return e.mergable().isNone()})},f=function(e){return u(e,function(e){return e.unmergable().isNone()})};return e.on("NodeChange TableSelectorChange",i),{onSetupTable:a,onSetupCellOrRow:c,onSetupMergeable:l,onSetupUnmergeable:f,resetTargets:i,targets:function(){return n.get()}}},uw=function(e,t){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(e){return e("inserttable | cell row column | advtablesort | tableprops deletetable")}});var n=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:n("mceTableProps"),icon:"table",onSetup:t.onSetupTable}),e.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:n("mceTableDelete"),icon:"table-delete-table",onSetup:t.onSetupTable}),e.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:n("mceTableCellProps"),icon:"table-cell-properties",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:n("mceTableMergeCells"),icon:"table-merge-cells",onSetup:t.onSetupMergeable}),e.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:n("mceTableSplitCells"),icon:"table-split-cells",onSetup:t.onSetupUnmergeable}),e.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:n("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:n("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:n("mceTableDeleteRow"),icon:"table-delete-row",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:n("mceTableRowProps"),icon:"table-row-properties",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:n("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:n("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:n("mceTableDeleteCol"),icon:"table-delete-column",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",onAction:n("mceTableCutRow"),icon:"temporary-placeholder",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",onAction:n("mceTableCopyRow"),icon:"temporary-placeholder",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",onAction:n("mceTablePasteRowBefore"),icon:"temporary-placeholder",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",onAction:n("mceTablePasteRowAfter"),icon:"temporary-placeholder",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:n("mceInsertTable"),icon:"table"})
},aw=function(e){var t=function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},n=Rd(e);n.length>0&&e.ui.registry.addContextToolbar("table",{predicate:t,items:n,scope:"node",position:"node"})},cw={addButtons:uw,addToolbars:aw},lw=function(e,t){var n=function(t){return function(){return e.execCommand(t)}},r=function(t){var n=t.numRows,r=t.numColumns;e.undoManager.transact(function(){Gm.insert(e,r,n)}),e.addVisual()},o={text:"Table properties",onSetup:t.onSetupTable,onAction:n("mceTableProps")},i={text:"Delete table",icon:"table-delete-table",onSetup:t.onSetupTable,onAction:n("mceTableDelete")},u=[{type:"menuitem",text:"Insert row before",icon:"table-insert-row-above",onAction:n("mceTableInsertRowBefore"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Insert row after",icon:"table-insert-row-after",onAction:n("mceTableInsertRowAfter"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Delete row",icon:"table-delete-row",onAction:n("mceTableDeleteRow"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Row properties",icon:"table-row-properties",onAction:n("mceTableRowProps"),onSetup:t.onSetupCellOrRow},{type:"separator"},{type:"menuitem",text:"Cut row",onAction:n("mceTableCutRow"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Copy row",onAction:n("mceTableCopyRow"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Paste row before",onAction:n("mceTablePasteRowBefore"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Paste row after",onAction:n("mceTablePasteRowAfter"),onSetup:t.onSetupCellOrRow}],a={type:"nestedmenuitem",text:"Row",getSubmenuItems:function(){return u}},c=[{type:"menuitem",text:"Insert column before",icon:"table-insert-column-before",onAction:n("mceTableInsertColBefore"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Insert column after",icon:"table-insert-column-after",onAction:n("mceTableInsertColAfter"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Delete column",icon:"table-delete-column",onAction:n("mceTableDeleteCol"),onSetup:t.onSetupCellOrRow}],l={type:"nestedmenuitem",text:"Column",getSubmenuItems:function(){return c}},f=[{type:"menuitem",text:"Cell properties",icon:"table-cell-properties",onAction:n("mceTableCellProps"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Merge cells",icon:"table-merge-cells",onAction:n("mceTableMergeCells"),onSetup:t.onSetupMergeable},{type:"menuitem",text:"Split cell",icon:"table-split-cells",onAction:n("mceTableSplitCells"),onSetup:t.onSetupUnmergeable}],s={type:"nestedmenuitem",text:"Cell",getSubmenuItems:function(){return f}};vd(e)===!1?e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:n("mceInsertTable")}):e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:r}]}}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:n("mceInsertTable")}),e.ui.registry.addMenuItem("tableprops",o),e.ui.registry.addMenuItem("deletetable",i),e.ui.registry.addNestedMenuItem("row",a),e.ui.registry.addNestedMenuItem("column",l),e.ui.registry.addNestedMenuItem("cell",s),e.ui.registry.addContextMenu("table",{update:function(){return t.resetTargets(),t.targets().fold(function(){return""},function(e){return"caption"===Ct(e.element())?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"})}})},fw={addMenuItems:lw},sw=function(e){return e.get().fold(function(){},function(e){return F(e,function(e){return e.dom()})})},dw=function(e,t){var n=F(e,Gt.fromDom);t.set(A.from(n))},mw=function(e,t,n,r){return{insertTable:function(t,n){return Gm.insert(e,t,n)},setClipboardRows:function(e){return dw(e,t)},getClipboardRows:function(){return sw(t)},resizeHandler:n,selectionTargets:r}};m()}(window)});
;/*!node_modules/tinymce/plugins/table/index.js*/
amis.define("node_modules/tinymce/plugins/table/index",function(e){e("node_modules/tinymce/plugins/table/plugin")});
;/*!node_modules/tinymce/plugins/paste/plugin.js*/
amis.define("node_modules/tinymce/plugins/paste/plugin",function(){!function(t){"use strict";function e(t,e){return de.each(e,function(e){t=e.constructor===RegExp?t.replace(e,""):t.replace(e[0],e[1])}),t}function n(t){function n(t){var e=t.name,r=t;if("br"===e)return void(i+="\n");if("wbr"!==e){if(u[e]&&(i+=" "),a[e])return void(i+=" ");if(3===t.type&&(i+=t.value),!t.shortEnded&&(t=t.firstChild))do n(t);while(t=t.next);s[e]&&r.next&&(i+="\n","p"===e&&(i+="\n"))}}var r=Ie(),o=De({},r),i="",u=r.getShortEndedElements(),a=de.makeMap("script noscript style textarea video audio iframe object"," "),s=r.getBlockElements();return t=e(t,[/<!\[[^\]]+\]>/g]),n(o.parse(t)),i}function r(t){function n(t,e,n){return e||n?Ke:" "}return t=e(t,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,n],/<br class="Apple-interchange-newline">/g,/<br>$/i])}function o(t){var e=0;return function(){return t+e++}}function i(t){return/<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^'']*\bmso-|w:WordDocument/i.test(t)||/class="OutlineElement/.test(t)||/id="?docs\-internal\-guid\-/.test(t)}function u(t){var e,n;return n=[/^[IVXLMCD]{1,2}\.[ \u00a0]/,/^[ivxlmcd]{1,2}\.[ \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]/],t=t.replace(/^[\u00a0 ]+/,""),de.each(n,function(n){return n.test(t)?(e=!0,!1):void 0}),e}function a(t){return/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(t)}function s(t){function e(t){var n="";if(3===t.type)return t.value;if(t=t.firstChild)do n+=e(t);while(t=t.next);return n}function n(t,e){if(3===t.type&&e.test(t.value))return t.value=t.value.replace(e,""),!1;if(t=t.firstChild)do if(!n(t,e))return!1;while(t=t.next);return!0}function r(t){if(t._listIgnore)return void t.remove();if(t=t.firstChild)do r(t);while(t=t.next)}function o(t,e,o){var u=t._listLevel||c;u!==c&&(c>u?i&&(i=i.parent.parent):(s=i,i=null)),i&&i.name===e?i.append(t):(s=s||i,i=new Se(e,1),o>1&&i.attr("start",""+o),t.wrap(i)),t.name="li",u>c&&s&&s.lastChild.append(i),c=u,r(t),n(t,/^\u00a0+/),n(t,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),n(t,/^\u00a0+/)}for(var i,s,c=1,l=[],f=t.firstChild;"undefined"!=typeof f&&null!==f;)if(l.push(f),f=f.walk(),null!==f)for(;"undefined"!=typeof f&&f.parent!==t;)f=f.walk();for(var d=0;d<l.length;d++)if(t=l[d],"p"===t.name&&t.firstChild){var m=e(t);if(a(m)){o(t,"ul");continue}if(u(m)){var p=/([0-9]+)\./.exec(m),g=1;p&&(g=parseInt(p[1],10)),o(t,"ol",g);continue}if(t._listLevel){o(t,"ul",1);continue}i=null}else s=i,i=null}function c(t,e,n,r){var o,i={},u=t.dom.parseStyle(r);return de.each(u,function(u,a){switch(a){case"mso-list":o=/\w+ \w+([0-9]+)/i.exec(r),o&&(n._listLevel=parseInt(o[1],10)),/Ignore/i.test(u)&&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"!==u&&(i[a]=u));case"mso-element":if(/^(comment|comment-list)$/i.test(u))return void n.remove()}return 0===a.indexOf("mso-comment")?void n.remove():void(0!==a.indexOf("mso-")&&("all"===Ve.getRetainStyleProps(t)||e&&e[a])&&(i[a]=u))}),/(bold)/i.test(i["font-weight"])&&(delete i["font-weight"],n.wrap(new Se("b",1))),/(italic)/i.test(i["font-style"])&&(delete i["font-style"],n.wrap(new Se("i",1))),i=t.dom.serializeStyle(i,n.name),i?i:null}function l(t,e){t.on("PastePreProcess",function(n){n.content=e(t,n.content,n.internal,n.wordContent)})}function f(t,e){t.on("PastePostProcess",function(n){e(t,n.node)})}function d(t,e){if(!Ze.isWordContent(e))return e;var n=[];de.each(t.schema.getBlockElements(),function(t,e){n.push(e)});var r=new RegExp("(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*(<\\/?("+n.join("|")+")[^>]*>)(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*","g");return e=Ge.filter(e,[[r,"$1"]]),e=Ge.filter(e,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]])}function m(t,e,n,r){if(r||n)return e;var o,i=Ve.getWebkitStyles(t);if(Ve.shouldRemoveWebKitStyles(t)===!1||"all"===i)return e;if(i&&(o=i.split(/[, ]/)),o){var u=t.dom,a=t.selection.getNode();e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,function(t,e,n,r){var i=u.parseStyle(u.decode(n)),s={};if("none"===o)return e+r;for(var c=0;c<o.length;c++){var l=i[o[c]],f=u.getStyle(a,o[c],!0);/color/.test(o[c])&&(l=u.toHex(l),f=u.toHex(f)),f!==l&&(s[o[c]]=l)}return s=u.serializeStyle(s,"span"),s?e+' style="'+s+'"'+r:e+r})}else e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return e=e.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,function(t,e,n,r){return e+' style="'+n+'"'+r})}function p(t,e){t.$("a",e).find("font,u").each(function(e,n){t.dom.remove(n,!0)})}function g(){h.add("paste",function(t){if(b.hasProPlugin(t)===!1){var e=v(!1),n=v(Ve.isPasteAsTextEnabled(t)?"text":"html"),r=Zn(t,n),o=yr.setup(t);return wr.register(t,r),I.register(t,r),vr.setup(t),sr.register(t),pr.setup(t,r,e),w.get(r,o)}})}var v=function(t){var e=t,n=function(){return e},r=function(t){e=t},o=function(){return v(n())};return{get:n,set:r,clone:o}},h=tinymce.util.Tools.resolve("tinymce.PluginManager"),y=function(e){return/(^|[ ,])powerpaste([, ]|$)/.test(e.settings.plugins)&&h.get("powerpaste")?("undefined"!=typeof t.window.console&&t.window.console.log&&t.window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),!0):!1},b={hasProPlugin:y},P=function(t,e){return{clipboard:t,quirks:e}},w={get:P},x=function(t,e,n,r){return t.fire("PastePreProcess",{content:e,internal:n,wordContent:r})},_=function(t,e,n,r){return t.fire("PastePostProcess",{node:e,internal:n,wordContent:r})},T=function(t,e){return t.fire("PastePlainTextToggle",{state:e})},C=function(t,e){return t.fire("paste",{ieFake:e})},k={firePastePreProcess:x,firePastePostProcess:_,firePastePlainTextToggle:T,firePaste:C},D=function(t,e){"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),k.firePastePlainTextToggle(t,!1)):(e.pasteFormat.set("text"),k.firePastePlainTextToggle(t,!0)),t.focus()},F={togglePlainTextPaste:D},S=function(t,e){t.addCommand("mceTogglePlainTextPaste",function(){F.togglePlainTextPaste(t,e)}),t.addCommand("mceInsertClipboardContent",function(t,n){n.content&&e.pasteHtml(n.content,n.internal),n.text&&e.pasteText(n.text)})},I={register:S},E=function(){},R=function(t){return function(){return t}},O=R(!1),A=R(!0),j=function(){return M},M=function(){var t=function(t){return t.isNone()},e=function(t){return t()},n=function(t){return t},r={fold:function(t){return t()},is:O,isSome:O,isNone:A,getOr:n,getOrThunk:e,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:R(null),getOrUndefined:R(void 0),or:n,orThunk:e,map:j,each:E,bind:j,exists:O,forall:A,filter:j,equals:t,equals_:t,toArray:function(){return[]},toString:R("none()")};return Object.freeze&&Object.freeze(r),r}(),L=function(t){var e=R(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:A,isNone:O,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return L(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:M},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(O,function(e){return n(t,e)})}};return o},H=function(t){return null===t||void 0===t?M:L(t)},B={some:L,none:j,from:H},N=function(t){if(null===t)return"null";var e=typeof t;return"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},U=function(t){return function(e){return N(e)===t}},$=U("function"),W=Array.prototype.slice,z=function(t,e){for(var n=t.length,r=new Array(n),o=0;n>o;o++){var i=t[o];r[o]=e(i,o)}return r},V=function(t,e){for(var n=0,r=t.length;r>n;n++){var o=t[n];e(o,n)}},K=function(t,e){for(var n=[],r=0,o=t.length;o>r;r++){var i=t[r];e(i,r)&&n.push(i)}return n},q=function(t,e,n){return V(t,function(t){n=e(n,t)}),n},G=$(Array.from)?Array.from:function(t){return W.call(t)},X={},Y={exports:X};!function(t,e,n,r){!function(r){if("object"==typeof e&&"undefined"!=typeof n)n.exports=r();else if("function"==typeof t&&t.amd)t([],r);else{var o;o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,o.EphoxContactWrapper=r()}}(function(){return function(){function t(e,n,o){function i(a,s){if(!n[a]){if(!e[a]){var c="function"==typeof r&&r;if(!s&&c)return c(a,!0);if(u)return u(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var f=n[a]={exports:{}};e[a][0].call(f.exports,function(t){var n=e[a][1][t];return i(n||t)},f,f.exports,t,e,n,o)}return n[a].exports}for(var u="function"==typeof r&&r,a=0;a<o.length;a++)i(o[a]);return i}return t}()({1:[function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function u(){g&&m&&(g=!1,m.length?p=m.concat(p):v=-1,p.length&&a())}function a(){if(!g){var t=o(u);g=!0;for(var e=p.length;e;){for(m=p,p=[];++v<e;)m&&m[v].run();v=-1,e=p.length}m=null,g=!1,i(t)}}function s(t,e){this.fun=t,this.array=e}function c(){}var l,f,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var m,p=[],g=!1,v=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new s(t,e)),1!==p.length||g||o(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(){return[]},d.binding=function(){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],2:[function(t,e){(function(t){!function(n){function r(){}function o(t,e){return function(){t.apply(e,arguments)}}function i(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(t,this)}function u(t,e){for(;3===t._state;)t=t._value;return 0===t._state?void t._deferreds.push(e):(t._handled=!0,void i._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._state?a:s)(e.promise,t._value);var r;try{r=n(t._value)}catch(o){return void s(e.promise,o)}a(e.promise,r)}))}function a(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void c(t);if("function"==typeof n)return void f(o(n,e),t)}t._state=1,t._value=e,c(t)}catch(r){s(t,r)}}function s(t,e){t._state=2,t._value=e,c(t)}function c(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;n>e;e++)u(t,t._deferreds[e]);t._deferreds=null}function l(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function f(t,e){var n=!1;try{t(function(t){n||(n=!0,a(e,t))},function(t){n||(n=!0,s(e,t))})}catch(r){if(n)return;n=!0,s(e,r)}}var d=setTimeout;i.prototype["catch"]=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var n=new this.constructor(r);return u(this,new l(t,e,n)),n},i.all=function(t){var e=Array.prototype.slice.call(t);return new i(function(t,n){function r(i,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var a=u.then;if("function"==typeof a)return void a.call(u,function(t){r(i,t)},n)}e[i]=u,0===--o&&t(e)}catch(s){n(s)}}if(0===e.length)return t([]);for(var o=e.length,i=0;i<e.length;i++)r(i,e[i])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(t){return new i(function(e,n){for(var r=0,o=t.length;o>r;r++)t[r].then(e,n)})},i._immediateFn="function"==typeof t?function(e){t(e)}:function(t){d(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},i._setImmediateFn=function(t){i._immediateFn=t},i._setUnhandledRejectionFn=function(t){i._unhandledRejectionFn=t},"undefined"!=typeof e&&e.exports?e.exports=i:n.Promise||(n.Promise=i)}(this)}).call(this,t("timers").setImmediate)},{timers:3}],3:[function(t,e,n){(function(e,r){function o(t,e){this._id=t,this._clearFn=e}var i=t("process/browser.js").nextTick,u=Function.prototype.apply,a=Array.prototype.slice,s={},c=0;n.setTimeout=function(){return new o(u.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new o(u.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n.setImmediate="function"==typeof e?e:function(t){var e=c++,r=arguments.length<2?!1:a.call(arguments,1);return s[e]=!0,i(function(){s[e]&&(r?t.apply(null,r):t.call(null),n.clearImmediate(e))}),e},n.clearImmediate="function"==typeof r?r:function(t){delete s[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(t,e){var n=t("promise-polyfill"),r=function(){return"undefined"!=typeof window?window:Function("return this;")()}();e.exports={boltExport:r.Promise||n}},{"promise-polyfill":2}]},{},[4])(4)})}(void 0,X,Y,void 0);var Z=Y.exports.boltExport,J=function(e){var n=B.none(),r=[],o=function(t){return J(function(e){i(function(n){e(t(n))})})},i=function(t){a()?c(t):r.push(t)},u=function(t){n=B.some(t),s(r),r=[]},a=function(){return n.isSome()},s=function(t){V(t,c)},c=function(e){n.each(function(n){t.setTimeout(function(){e(n)},0)})};return e(u),{get:i,map:o,isReady:a}},Q=function(t){return J(function(e){e(t)})},te={nu:J,pure:Q},ee=function(e){t.setTimeout(function(){throw e},0)},ne=function(t){var e=function(e){t().then(e,ee)},n=function(e){return ne(function(){return t().then(e)})},r=function(e){return ne(function(){return t().then(function(t){return e(t).toPromise()})})},o=function(e){return ne(function(){return t().then(function(){return e.toPromise()})})},i=function(){return te.nu(e)},u=function(){var e=null;return ne(function(){return null===e&&(e=t()),e})},a=t;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:u,toPromise:a,get:e}},re=function(t){return ne(function(){return new Z(t)})},oe=function(t){return ne(function(){return Z.resolve(t)})},ie={nu:re,pure:oe},ue=function(t,e){return e(function(e){var n=[],r=0,o=function(o){return function(i){n[o]=i,r++,r>=t.length&&e(n)}};0===t.length?e([]):V(t,function(t,e){t.get(o(e))})})},ae=function(t){return ue(t,ie.nu)},se=function(t,e){return ae(z(t,e))},ce=function(){var t=v(B.none()),e=function(){t.set(B.none())},n=function(e){t.set(B.some(e))},r=function(e){t.get().each(e)},o=function(){return t.get().isSome()};return{clear:e,set:n,isSet:o,on:r}},le=tinymce.util.Tools.resolve("tinymce.Env"),fe=tinymce.util.Tools.resolve("tinymce.util.Delay"),de=tinymce.util.Tools.resolve("tinymce.util.Tools"),me=tinymce.util.Tools.resolve("tinymce.util.VK"),pe="x-tinymce/html",ge="<!-- "+pe+" -->",ve=function(t){return ge+t},he=function(t){return t.replace(ge,"")},ye=function(t){return-1!==t.indexOf(ge)},be={mark:ve,unmark:he,isMarked:ye,internalHtmlMime:function(){return pe}},Pe=tinymce.util.Tools.resolve("tinymce.html.Entities"),we=function(t){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(t)},xe=function(t){return t.replace(/\r?\n/g,"<br>")},_e=function(t,e){var n,r=[],o="<"+t;if("object"==typeof e){for(n in e)e.hasOwnProperty(n)&&r.push(n+'="'+Pe.encodeAllRaw(e[n])+'"');r.length&&(o+=" "+r.join(" "))}return o+">"},Te=function(t,e,n){var r=t.split(/\n\n/),o=_e(e,n),i="</"+e+">",u=de.map(r,function(t){return t.split(/\n/).join("<br />")}),a=function(t){return o+t+i};return 1===u.length?u[0]:de.map(u,a).join("")},Ce=function(t,e,n){return e?Te(t,e===!0?"p":e,n):xe(t)},ke={isPlainText:we,convert:Ce,toBRs:xe,toBlockElements:Te},De=tinymce.util.Tools.resolve("tinymce.html.DomParser"),Fe=tinymce.util.Tools.resolve("tinymce.html.Serializer"),Se=tinymce.util.Tools.resolve("tinymce.html.Node"),Ie=tinymce.util.Tools.resolve("tinymce.html.Schema"),Ee=function(t){return t.getParam("paste_block_drop",!1)},Re=function(t){return t.getParam("paste_data_images",!1)},Oe=function(t){return t.getParam("paste_filter_drop",!0)},Ae=function(t){return t.getParam("paste_preprocess")},je=function(t){return t.getParam("paste_postprocess")},Me=function(t){return t.getParam("paste_webkit_styles")},Le=function(t){return t.getParam("paste_remove_styles_if_webkit",!0)},He=function(t){return t.getParam("paste_merge_formats",!0)},Be=function(t){return t.getParam("smart_paste",!0)},Ne=function(t){return t.getParam("paste_as_text",!1)},Ue=function(t){return t.getParam("paste_retain_style_properties")},$e=function(t){var e="-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 t.getParam("paste_word_valid_elements",e)},We=function(t){return t.getParam("paste_convert_word_fake_lists",!0)},ze=function(t){return t.getParam("paste_enable_default_filters",!0)},Ve={shouldBlockDrop:Ee,shouldPasteDataImages:Re,shouldFilterDrop:Oe,getPreProcess:Ae,getPostProcess:je,getWebkitStyles:Me,shouldRemoveWebKitStyles:Le,shouldMergeFormats:He,isSmartPasteEnabled:Be,isPasteAsTextEnabled:Ne,getRetainStyleProps:Ue,getWordValidElements:$e,shouldConvertWordFakeLists:We,shouldUseDefaultFilters:ze},Ke=" ",qe=function(){return-1!==t.navigator.userAgent.indexOf(" Edge/")},Ge={filter:e,innerText:n,trimHtml:r,createIdGenerator:o,isMsEdge:qe},Xe=function(t,e){var n,r;n=Ve.getRetainStyleProps(t),n&&(r=de.makeMap(n.split(/[, ]/))),e=Ge.filter(e,[/<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,Ke],[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(t,e){return e.length>0?e.replace(/./," ").slice(Math.floor(e.length/2)).split("").join(Ke):""}]]);var o=Ve.getWordValidElements(t),i=Ie({valid_elements:o,valid_children:"-li[p]"});de.each(i.elements,function(t){t.attributes.class||(t.attributes.class={},t.attributesOrder.push("class")),t.attributes.style||(t.attributes.style={},t.attributesOrder.push("style"))});var u=De({},i);u.addAttributeFilter("style",function(e){for(var n,o=e.length;o--;)n=e[o],n.attr("style",c(t,r,n,n.attr("style"))),"span"===n.name&&n.parent&&!n.attributes.length&&n.unwrap()}),u.addAttributeFilter("class",function(t){for(var e,n,r=t.length;r--;)e=t[r],n=e.attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&e.remove(),e.attr("class",null)}),u.addNodeFilter("del",function(t){for(var e=t.length;e--;)t[e].remove()}),u.addNodeFilter("a",function(t){for(var e,n,r,o=t.length;o--;)if(e=t[o],n=e.attr("href"),r=e.attr("name"),n&&-1!==n.indexOf("#_msocom_"))e.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)){e.unwrap();continue}e.attr({href:n,name:r})}else e.unwrap()});var a=u.parse(e);return Ve.shouldConvertWordFakeLists(t)&&s(a),e=Fe({validate:t.settings.validate},i).serialize(a)},Ye=function(t,e){return Ve.shouldUseDefaultFilters(t)?Xe(t,e):e},Ze={preProcess:Ye,isWordContent:i},Je=function(t,e){var n=De({},t.schema);n.addNodeFilter("meta",function(t){de.each(t,function(t){return t.remove()})});var r=n.parse(e,{forced_root_block:!1,isRootContent:!0});return Fe({validate:t.settings.validate},t.schema).serialize(r)},Qe=function(t,e){return{content:t,cancelled:e}},tn=function(t,e,n,r){var o=t.dom.create("div",{style:"display:none"},e),i=k.firePastePostProcess(t,o,n,r);return Qe(i.node.innerHTML,i.isDefaultPrevented())},en=function(t,e,n,r){var o=k.firePastePreProcess(t,e,n,r),i=Je(t,o.content);return t.hasEventListeners("PastePostProcess")&&!o.isDefaultPrevented()?tn(t,i,n,r):Qe(i,o.isDefaultPrevented())},nn=function(t,e,n){var r=Ze.isWordContent(e),o=r?Ze.preProcess(t,e):e;return en(t,o,n,r)},rn={process:nn},on=function(t,e){return t.insertContent(e,{merge:Ve.shouldMergeFormats(t),paste:!0}),!0},un=function(t){return/^https?:\/\/[\w\?\-\/+=.&%@~#]+$/i.test(t)},an=function(t){return un(t)&&/.(gif|jpe?g|png)$/.test(t)},sn=function(t,e,n){return t.undoManager.extra(function(){n(t,e)},function(){t.insertContent('<img src="'+e+'">')}),!0},cn=function(t,e,n){return t.undoManager.extra(function(){n(t,e)},function(){t.execCommand("mceInsertLink",!1,e)}),!0},ln=function(t,e,n){return t.selection.isCollapsed()===!1&&un(e)?cn(t,e,n):!1},fn=function(t,e,n){return an(e)?sn(t,e,n):!1},dn=function(t,e){de.each([ln,fn,on],function(n){return n(t,e,on)!==!0})},mn=function(t,e,n){n||Ve.isSmartPasteEnabled(t)===!1?on(t,e):dn(t,e)},pn={isImageUrl:an,isAbsoluteUrl:un,insertContent:mn},gn=function(t){return-1!==" \f ".indexOf(t)},vn=function(t){return"\n"===t||"\r"===t},hn=function(t,e){return e<t.length&&e>=0?vn(t[e]):!1},yn=function(t){var e=q(t,function(e,n){return gn(n)||n===Ke?e.pcIsSpace||""===e.str||e.str.length===t.length-1||hn(t,e.str.length+1)?{pcIsSpace:!1,str:e.str+Ke}:{pcIsSpace:!0,str:e.str+" "}:{pcIsSpace:vn(n),str:e.str+n}},{pcIsSpace:!1,str:""});return e.str},bn=function(t,e,n,r){var o=rn.process(t,e,n);o.cancelled===!1&&pn.insertContent(t,o.content,r)},Pn=function(t,e,n){var r=n?n:be.isMarked(e);bn(t,be.unmark(e),r,!1)},wn=function(t,e){var n=t.dom.encode(e).replace(/\r\n/g,"\n"),r=yn(n),o=ke.convert(r,t.settings.forced_root_block,t.settings.forced_root_block_attrs);bn(t,o,!1,!0)},xn=function(t){var e={},n="data:text/mce-internal,";if(t){if(t.getData){var r=t.getData("Text");r&&r.length>0&&-1===r.indexOf(n)&&(e["text/plain"]=r)}if(t.types)for(var o=0;o<t.types.length;o++){var i=t.types[o];try{e[i]=t.getData(i)}catch(u){e[i]=""}}}return e},_n=function(t,e){var n=xn(e.clipboardData||t.getDoc().dataTransfer);return Ge.isMsEdge()?de.extend(n,{"text/html":""}):n},Tn=function(t,e){return e in t&&t[e].length>0},Cn=function(t){return Tn(t,"text/html")||Tn(t,"text/plain")},kn=function(t){var e;return e=t.indexOf(","),-1!==e?t.substr(e+1):null},Dn=function(t,e){return t.images_dataimg_filter?t.images_dataimg_filter(e):!0},Fn=function(t,e){var n=e.match(/([\s\S]+?)\.(?:jpeg|jpg|png|gif)$/i);return n?t.dom.encode(n[1]):null},Sn=Ge.createIdGenerator("mceclip"),In=function(e,n){var r=kn(n.uri),o=Sn(),i=e.settings.images_reuse_filename&&n.blob.name?Fn(e,n.blob.name):o,u=new t.Image;if(u.src=n.uri,Dn(e.settings,u)){var a=e.editorUpload.blobCache,s=void 0,c=void 0;c=a.findFirst(function(t){return t.base64()===r}),c?s=c:(s=a.create(o,n.blob,r,i),a.add(s)),Pn(e,'<img src="'+s.blobUri()+'">',!1)}else Pn(e,'<img src="'+n.uri+'">',!1)},En=function(t){return"paste"===t.type},Rn=function(t){return se(t,function(t){return ie.nu(function(e){var n=t.getAsFile?t.getAsFile():t,r=new window.FileReader;r.onload=function(){e({blob:n,uri:r.result})},r.readAsDataURL(n)})})},On=function(t){var e=t.items?z(G(t.items),function(t){return t.getAsFile()}):[],n=t.files?G(t.files):[],r=K(e.length>0?e:n,function(t){return/^image\/(jpeg|png|gif|bmp)$/.test(t.type)});return r},An=function(t,e,n){var r=En(e)?e.clipboardData:e.dataTransfer;if(t.settings.paste_data_images&&r){var o=On(r);if(o.length>0)return e.preventDefault(),Rn(o).get(function(e){n&&t.selection.setRng(n),V(e,function(e){In(t,e)})}),!0}return!1},jn=function(e){var n=e.clipboardData;return-1!==t.navigator.userAgent.indexOf("Android")&&n&&n.items&&0===n.items.length},Mn=function(t){return me.metaKeyPressed(t)&&86===t.keyCode||t.shiftKey&&45===t.keyCode},Ln=function(e,n,r){function o(t,r,o,i){var u,a,s;return Tn(t,"text/html")?u=t["text/html"]:(u=n.getHtml(),i=i?i:be.isMarked(u),n.isDefaultContent(u)&&(o=!0)),u=Ge.trimHtml(u),n.remove(),a=i===!1&&ke.isPlainText(u),s=pn.isImageUrl(u),(!u.length||a&&!s)&&(o=!0),(o||s)&&(u=Tn(t,"text/plain")&&a?t["text/plain"]:Ge.innerText(u)),n.isDefaultContent(u)?void(r||e.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents.")):void(o?wn(e,u):Pn(e,u,i))}var i,u=ce();e.on("keydown",function(r){function o(t){Mn(t)&&!t.isDefaultPrevented()&&n.remove()}if(Mn(r)&&!r.isDefaultPrevented()){if(i=r.shiftKey&&86===r.keyCode,i&&le.webkit&&-1!==t.navigator.userAgent.indexOf("Version/"))return;if(r.stopImmediatePropagation(),u.set(r),window.setTimeout(function(){u.clear()},100),le.ie&&i)return r.preventDefault(),void k.firePaste(e,!0);n.remove(),n.create(),e.once("keyup",o),e.once("paste",function(){e.off("keyup",o)})}});var a=function(){return n.getLastRng()||e.selection.getRng()};e.on("paste",function(t){var s=u.isSet(),c=_n(e,t),l="text"===r.get()||i,f=Tn(c,be.internalHtmlMime());return i=!1,t.isDefaultPrevented()||jn(t)?void n.remove():!Cn(c)&&An(e,t,a())?void n.remove():(s||t.preventDefault(),!le.ie||s&&!t.ieFake||Tn(c,"text/html")||(n.create(),e.dom.bind(n.getEl(),"paste",function(t){t.stopPropagation()}),e.getDoc().execCommand("Paste",!1,null),c["text/html"]=n.getHtml()),void(Tn(c,"text/html")?(t.preventDefault(),f||(f=be.isMarked(c["text/html"])),o(c,s,l,f)):fe.setEditorTimeout(e,function(){o(c,s,l,f)},0)))})},Hn=function(t,e,n){Ln(t,e,n);var r;t.parser.addNodeFilter("img",function(e,n,o){var i=function(t){return t.data&&t.data.paste===!0},u=function(t){t.attr("data-mce-object")||r===le.transparentSrc||t.remove()},a=function(t){return 0===t.indexOf("webkit-fake-url")},s=function(t){return 0===t.indexOf("data:")};if(!t.settings.paste_data_images&&i(o))for(var c=e.length;c--;)r=e[c].attr("src"),r&&(a(r)?u(e[c]):!t.settings.allow_html_data_urls&&s(r)&&u(e[c]))})},Bn=function(e){return le.ie&&e.inline?t.document.body:e.getBody()},Nn=function(t){return Bn(t)!==t.getBody()},Un=function(t,e,n){Nn(t)&&t.dom.bind(e,"paste keyup",function(){Xn(t,n)||t.fire("paste")})},$n=function(t,e,n){var r,o=t.dom,i=t.getBody();e.set(t.selection.getRng()),r=t.dom.add(Bn(t),"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),(le.ie||le.gecko)&&o.setStyle(r,"left","rtl"===o.getStyle(i,"direction",!0)?65535:-65535),o.bind(r,"beforedeactivate focusin focusout",function(t){t.stopPropagation()}),Un(t,r,n),r.focus(),t.selection.select(r,!0)},Wn=function(t,e){if(zn(t)){for(var n=void 0,r=e.get();n=t.dom.get("mcepastebin");)t.dom.remove(n),t.dom.unbind(n);r&&t.selection.setRng(r)}e.set(null)},zn=function(t){return t.dom.get("mcepastebin")},Vn=function(t){var e,n,r,o,i,u=function(e,n){e.appendChild(n),t.dom.remove(n,!0)};for(n=de.grep(Bn(t).childNodes,function(t){return"mcepastebin"===t.id}),e=n.shift(),de.each(n,function(t){u(e,t)}),o=t.dom.select("div[id=mcepastebin]",e),r=o.length-1;r>=0;r--)i=t.dom.create("div"),e.insertBefore(i,o[r]),u(i,o[r]);return e?e.innerHTML:""},Kn=function(t){return t.get()},qn=function(t,e){return e===t},Gn=function(t){return t&&"mcepastebin"===t.id},Xn=function(t,e){var n=zn(t);return Gn(n)&&qn(e,n.innerHTML)},Yn=function(t){var e=v(null),n="%MCEPASTEBIN%";return{create:function(){return $n(t,e,n)},remove:function(){return Wn(t,e)},getEl:function(){return zn(t)},getHtml:function(){return Vn(t)},getLastRng:function(){return Kn(e)},isDefault:function(){return Xn(t,n)},isDefaultContent:function(t){return qn(n,t)}}},Zn=function(t,e){var n=Yn(t);return t.on("PreInit",function(){return Hn(t,n,e)}),{pasteFormat:e,pasteHtml:function(e,n){return Pn(t,e,n)},pasteText:function(e){return wn(t,e)},pasteImageData:function(e,n){return An(t,e,n)},getDataTransferItems:xn,hasHtmlOrText:Cn,hasContentType:Tn}},Jn=function(t){return le.iOS===!1&&void 0!==t&&"function"==typeof t.setData&&Ge.isMsEdge()!==!0},Qn=function(t,e,n){if(!Jn(t))return!1;try{return t.clearData(),t.setData("text/html",e),t.setData("text/plain",n),t.setData(be.internalHtmlMime(),e),!0}catch(r){return!1}},tr=function(t,e,n,r){Qn(t.clipboardData,e.html,e.text)?(t.preventDefault(),r()):n(e.html,r)},er=function(t){return function(e,n){var r=be.mark(e),o=t.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),i=t.dom.create("div",{contenteditable:"true"},r);t.dom.setStyles(o,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),o.appendChild(i),t.dom.add(t.getBody(),o);var u=t.selection.getRng();i.focus();var a=t.dom.createRng();a.selectNodeContents(i),t.selection.setRng(a),fe.setTimeout(function(){t.selection.setRng(u),o.parentNode.removeChild(o),n()},0)}},nr=function(t){return{html:t.selection.getContent({contextual:!0}),text:t.selection.getContent({format:"text"})}},rr=function(t){return!!t.dom.getParent(t.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",t.getBody())},or=function(t){return!t.selection.isCollapsed()||rr(t)},ir=function(t){return function(e){or(t)&&tr(e,nr(t),er(t),function(){if(le.browser.isChrome()){var e=t.selection.getRng();fe.setEditorTimeout(t,function(){t.selection.setRng(e),t.execCommand("Delete")},0)}else t.execCommand("Delete")})}},ur=function(t){return function(e){or(t)&&tr(e,nr(t),er(t),function(){})}},ar=function(t){t.on("cut",ir(t)),t.on("copy",ur(t))},sr={register:ar},cr=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),lr=function(t,e){return cr.getCaretRangeFromPoint(e.clientX,e.clientY,t.getDoc())},fr=function(t){var e=t["text/plain"];return e?0===e.indexOf("file://"):!1},dr=function(t,e){t.focus(),t.selection.setRng(e)},mr=function(t,e,n){Ve.shouldBlockDrop(t)&&t.on("dragend dragover draggesture dragdrop drop drag",function(t){t.preventDefault(),t.stopPropagation()}),Ve.shouldPasteDataImages(t)||t.on("drop",function(t){var e=t.dataTransfer;e&&e.files&&e.files.length>0&&t.preventDefault()}),t.on("drop",function(r){var o,i;if(i=lr(t,r),!r.isDefaultPrevented()&&!n.get()){o=e.getDataTransferItems(r.dataTransfer);var u=e.hasContentType(o,be.internalHtmlMime());if((e.hasHtmlOrText(o)&&!fr(o)||!e.pasteImageData(r,i))&&i&&Ve.shouldFilterDrop(t)){var a=o["mce-internal"]||o["text/html"]||o["text/plain"];a&&(r.preventDefault(),fe.setEditorTimeout(t,function(){t.undoManager.transact(function(){o["mce-internal"]&&t.execCommand("Delete"),dr(t,i),a=Ge.trimHtml(a),o["text/html"]?e.pasteHtml(a,u):e.pasteText(a)
})}))}}}),t.on("dragstart",function(){n.set(!0)}),t.on("dragover dragend",function(e){Ve.shouldPasteDataImages(t)&&n.get()===!1&&(e.preventDefault(),dr(t,lr(t,e))),"dragend"===e.type&&n.set(!1)})},pr={setup:mr},gr=function(t){var e=t.plugins.paste,n=Ve.getPreProcess(t);n&&t.on("PastePreProcess",function(t){n.call(e,e,t)});var r=Ve.getPostProcess(t);r&&t.on("PastePostProcess",function(t){r.call(e,e,t)})},vr={setup:gr},hr=function(t){le.webkit&&l(t,m),le.ie&&(l(t,d),f(t,p))},yr={setup:hr},br=function(t,e){return function(n){n.setActive("text"===e.pasteFormat.get());var r=function(t){return n.setActive(t.state)};return t.on("PastePlainTextToggle",r),function(){return t.off("PastePlainTextToggle",r)}}},Pr=function(t,e){t.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:function(){return t.execCommand("mceTogglePlainTextPaste")},onSetup:br(t,e)}),t.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",onAction:function(){return t.execCommand("mceTogglePlainTextPaste")},onSetup:br(t,e)})},wr={register:Pr};g()}(window)});
;/*!node_modules/tinymce/plugins/paste/index.js*/
amis.define("node_modules/tinymce/plugins/paste/index",function(e){e("node_modules/tinymce/plugins/paste/plugin")});
;/*!node_modules/tinymce/plugins/help/plugin.js*/
amis.define("node_modules/tinymce/plugins/help/plugin",function(){!function(){"use strict";function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var r=t.concat(n);return e.apply(null,r)}}function t(){o.add("help",function(e){var t=n({}),o=r(t),a=at(e,t);return c.register(e,a),i.register(e,a),e.shortcuts.add("Alt+0","Open help dialog","mceHelp"),o})}var n=function(e){var t=e,o=function(){return t},r=function(e){t=e},a=function(){return n(o())};return{get:o,set:r,clone:a}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(e){var t=function(t){var n=e.get();n[t.name]=t,e.set(n)};return{addTab:t}},a=function(e,t){e.addCommand("mceHelp",t)},i={register:a},s=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})},c={register:s},u=function(){return u=Object.assign||function(e){for(var t,n=1,o=arguments.length;o>n;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},u.apply(this,arguments)},l=function(){},h=function(e){return function(){return e}},m=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},p=h(!1),d=h(!0),f=function(){return g},g=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},o={fold:function(e){return e()},is:p,isSome:p,isNone:d,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:h(null),getOrUndefined:h(void 0),or:n,orThunk:t,map:f,each:l,bind:f,exists:p,forall:d,filter:f,equals:e,equals_:e,toArray:function(){return[]},toString:h("none()")};return Object.freeze&&Object.freeze(o),o}(),b=function(e){var t=h(e),n=function(){return r},o=function(t){return t(e)},r={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:d,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:o,exists:o,forall:o,filter:function(t){return t(e)?r:g},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(p,function(t){return n(e,t)})}};return r},y=function(e){return null===e||void 0===e?g:b(e)},v={some:b,none:f,from:y},k=function(e){if(null===e)return"null";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},w=function(e){return function(t){return k(t)===e}},A=w("function"),T=Array.prototype.slice,x=Array.prototype.indexOf,C=function(e,t){return x.call(e,t)},P=function(e,t){var n=C(e,t);return-1===n?v.none():v.some(n)},M=function(e,t){return C(e,t)>-1},O=function(e,t){for(var n=e.length,o=new Array(n),r=0;n>r;r++){var a=e[r];o[r]=t(a,r)}return o},F=function(e,t){for(var n=[],o=0,r=e.length;r>o;o++){var a=e[o];t(a,o)&&n.push(a)}return n},S=function(e,t){for(var n=0,o=e.length;o>n;n++){var r=e[n];if(t(r,n))return v.some(r)}return v.none()},_=(A(Array.from)?Array.from:function(e){return T.call(e)},Object.keys),E=Object.hasOwnProperty,I=function(e,t){return j(e,t)?v.from(e[t]):v.none()},j=function(e,t){return E.call(e,t)},H=function(e){for(var t=[],n=function(e){t.push(e)},o=0;o<e.length;o++)e[o].each(n);return t},U=function(e){return v.from(e.getParam("help_tabs"))},W=[{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:"Header 1"},{shortcuts:["Access + 2"],action:"Header 2"},{shortcuts:["Access + 3"],action:"Header 3"},{shortcuts:["Access + 4"],action:"Header 4"},{shortcuts:["Access + 5"],action:"Header 5"},{shortcuts:["Access + 6"],action:"Header 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"}],D={shortcuts:W},N=tinymce.util.Tools.resolve("tinymce.Env"),L=function(e){var t={alt:"&#x2325;",ctrl:"&#x2303;",shift:"&#x21E7;",meta:"&#x2318;",access:"&#x2303;&#x2325;"},n={meta:"Ctrl ",access:"Shift + Alt "},o=N.mac?t:n,r=e.split("+"),a=O(r,function(e){var t=e.toLowerCase().trim();return j(o,t)?o[t]:e});return N.mac?a.join("").replace(/\s/,""):a.join("+")},B={convertText:L},z=function(){var e=O(D.shortcuts,function(e){var t=O(e.shortcuts,B.convertText).join(" or ");return[e.action,t]}),t={type:"table",header:["Action","Shortcut"],cells:e};return{name:"shortcuts",title:"Handy Shortcuts",items:[t]}},V={tab:z},q=function(e,t){var n=function(e){var t=typeof e;return"string"===t||"number"===t};return e.replace(/\$\{([^{}]*)\}/g,function(e,o){var r=t[o];return n(r)?r.toString():e})},K=tinymce.util.Tools.resolve("tinymce.util.I18n"),R=[{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:"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:"advcode",name:"Advanced Code Editor*"},{key:"formatpainter",name:"Format Painter*"},{key:"powerpaste",name:"PowerPaste*"},{key:"tinydrive",name:"Tiny Drive*"},{key:"tinymcespellchecker",name:"Spell Checker Pro*"},{key:"a11ychecker",name:"Accessibility Checker*"},{key:"linkchecker",name:"Link Checker*"},{key:"mentions",name:"Mentions*"},{key:"mediaembed",name:"Enhanced Media Embed*"},{key:"checklist",name:"Checklist*"},{key:"casechange",name:"Case Change*"},{key:"permanentpen",name:"Permanent Pen*"},{key:"pageembed",name:"Page Embed*"},{key:"tinycomments",name:"Tiny Comments*"},{key:"advtable",name:"Advanced Tables*"},{key:"autocorrect",name:"Autocorrect*"}],X={urls:R},$=function(t){var n=function(){var e=["Accessibility Checker","Advanced Code Editor","Advanced Tables","Case Change","Checklist","Tiny Comments","Tiny Drive","Enhanced Media Embed","Format Painter","Link Checker","Mentions","MoxieManager","Page Embed","Permanent Pen","PowerPaste","Spell Checker Pro"],t=O(e,function(e){return"<li>"+K.translate(e)+"</li>"}).join("");return'<div data-mce-tabstop="1" tabindex="-1"><p><b>'+K.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">'+K.translate("Learn more...")+"</a></li></ul></div>"},o=e(q,'<a href="${url}" target="_blank" rel="noopener">${name}</a>'),r=function(e,t){return S(X.urls,function(e){return e.key===t}).fold(function(){var n=e.plugins[t].getMetadata;return"function"==typeof n?o(n()):t},function(e){return o({name:e.name,url:"https://www.tiny.cloud/docs/plugins/"+e.key})})},a=function(t){var n=_(t.plugins);return void 0===t.settings.forced_plugins?n:F(n,m(e(M,t.settings.forced_plugins)))},i=function(e){var t=a(e),n=O(t,function(t){return"<li>"+r(e,t)+"</li>"}),o=n.length,i=n.join(""),s="<p><b>"+K.translate(["Plugins installed ({0}):",o])+"</b></p><ul>"+i+"</ul>";return s},s=function(e){return null==e?"":'<div data-mce-tabstop="1" tabindex="-1">'+i(e)+"</div>"},c={type:"htmlpanel",presets:"document",html:[s(t),n()].join("")};return{name:"plugins",title:"Plugins",items:[c]}},Y={tab:$},Z=tinymce.util.Tools.resolve("tinymce.EditorManager"),G=function(){var e=function(e,t){return 0===e.indexOf("@")?"X.X.X":e+"."+t},t=e(Z.majorVersion,Z.minorVersion),n='<a href="https://www.tinymce.com/docs/changelog/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">TinyMCE '+t+"</a>",o={type:"htmlpanel",html:"<p>"+K.translate(["You are using {0}",n])+"</p>",presets:"document"};return{name:"versions",title:"Version",items:[o]}},J={tab:G},Q="<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</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 tabs 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>",et=function(){var e={type:"htmlpanel",presets:"document",html:Q};return{name:"keyboardnav",title:"Keyboard Navigation",items:[e]}},tt={tab:et},nt=function(e,t){var n={},o=O(e,function(e){return"string"==typeof e?(j(t,e)&&(n[e]=t[e]),e):(n[e.name]=e,e.name)});return{tabs:n,names:o}},ot=function(e){var t=_(e),n=P(t,"versions");return n.each(function(e){t.splice(e,1),t.push("versions")}),{tabs:e,names:t}},rt=function(e,t){var n,o=V.tab(),r=tt.tab(),a=Y.tab(e),i=J.tab(),s=u((n={},n[o.name]=o,n[r.name]=r,n[a.name]=a,n[i.name]=i,n),t.get());return U(e).fold(function(){return ot(s)},function(e){return nt(e,s)})},at=function(e,t){return function(){var n=rt(e,t),o=n.tabs,r=n.names,a=O(r,function(e){return I(o,e)}),i=H(a),s={type:"tabpanel",tabs:i};e.windowManager.open({title:"Help",size:"medium",body:s,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{}})}};t()}()});
;/*!node_modules/tinymce/plugins/help/index.js*/
amis.define("node_modules/tinymce/plugins/help/index",function(e){e("node_modules/tinymce/plugins/help/plugin")});
;/*!node_modules/tinymce/plugins/wordcount/plugin.js*/
amis.define("node_modules/tinymce/plugins/wordcount/plugin",function(){!function(){"use strict";function t(t){void 0===t&&(t=300),n.add("wordcount",function(n){var e=Z(n);return tn(n,e),V(n,e,t),e})}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(){},r=function(t){return function(){return t}},o=function(t){return t},u=r(!1),i=r(!0),c=function(){return c=Object.assign||function(t){for(var n,e=1,r=arguments.length;r>e;e++){n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},c.apply(this,arguments)},a="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!----]_{}⦅-・]",l={aletter:"[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ--ℝℤΩℨK--ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA---하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",midnumlet:"[-'\\.‘’․﹒'.]",midletter:"[:··״‧︓﹕:]",midnum:"[±+*/,;;։،؍٬߸⁄︐︔﹐﹔,;]",numeric:"[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",cr:"\\r",lf:"\\n",newline:"[ \f…\u2028\u2029]",extend:"[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿‌‍⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-゙゚︦]",format:"[­؀-؃۝܏឴឵‎‏‪----]",katakana:"[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",extendnumlet:"[=_‿⁀⁔︳︴-﹏_∀-<>]",punctuation:a},f={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},E=[new RegExp(l.aletter),new RegExp(l.midnumlet),new RegExp(l.midletter),new RegExp(l.midnum),new RegExp(l.numeric),new RegExp(l.cr),new RegExp(l.lf),new RegExp(l.newline),new RegExp(l.extend),new RegExp(l.format),new RegExp(l.katakana),new RegExp(l.extendnumlet),new RegExp("@")],s="",g=new RegExp("^"+l.punctuation+"$"),d=/^\s+$/,p=function(){return T},T=function(){var t=function(t){return t.isNone()},n=function(t){return t()},o=function(t){return t},c={fold:function(t){return t()},is:u,isSome:u,isNone:i,getOr:o,getOrThunk:n,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:r(null),getOrUndefined:r(void 0),or:o,orThunk:n,map:p,each:e,bind:p,exists:u,forall:i,filter:p,equals:t,equals_:t,toArray:function(){return[]},toString:r("none()")};return Object.freeze&&Object.freeze(c),c}(),h=function(t){if(null===t)return"null";var n=typeof t;return"object"===n&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===n&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":n},A=function(t){return function(n){return h(n)===t}},C=A("function"),R=Array.prototype.slice,m=function(t,n){for(var e=t.length,r=new Array(e),o=0;e>o;o++){var u=t[o];r[o]=n(u,o)}return r},y=(C(Array.from)?Array.from:function(t){return R.call(t)},E),N=f.OTHER,M=function(t){for(var n=N,e=y.length,r=0;e>r;++r){var o=y[r];if(o&&o.test(t)){n=r;break}}return n},v=function(t){var n={};return function(e){if(n[e])return n[e];var r=t(e);return n[e]=r,r}},w=function(t){var n=v(M);return m(t,n)},L=function(t,n){var e,r,o=t[n],u=t[n+1];return 0>n||n>t.length-1&&0!==n?!1:o===f.ALETTER&&u===f.ALETTER?!1:(r=t[n+2],o!==f.ALETTER||u!==f.MIDLETTER&&u!==f.MIDNUMLET&&u!==f.AT||r!==f.ALETTER?(e=t[n-1],(o!==f.MIDLETTER&&o!==f.MIDNUMLET&&u!==f.AT||u!==f.ALETTER||e!==f.ALETTER)&&(o!==f.NUMERIC&&o!==f.ALETTER||u!==f.NUMERIC&&u!==f.ALETTER)&&(o!==f.MIDNUM&&o!==f.MIDNUMLET||u!==f.NUMERIC||e!==f.NUMERIC)&&(o!==f.NUMERIC||u!==f.MIDNUM&&u!==f.MIDNUMLET||r!==f.NUMERIC)?o===f.EXTEND||o===f.FORMAT||e===f.EXTEND||e===f.FORMAT||u===f.EXTEND||u===f.FORMAT?!1:o===f.CR&&u===f.LF?!1:o===f.NEWLINE||o===f.CR||o===f.LF?!0:u===f.NEWLINE||u===f.CR||u===f.LF?!0:o===f.KATAKANA&&u===f.KATAKANA?!1:(u!==f.EXTENDNUMLET||o!==f.ALETTER&&o!==f.NUMERIC&&o!==f.KATAKANA&&o!==f.EXTENDNUMLET)&&(o!==f.EXTENDNUMLET||u!==f.ALETTER&&u!==f.NUMERIC&&u!==f.KATAKANA)?o===f.AT?!1:!0:!1:!1):!1)},D="",U=s,I=d,x=g,W=function(t){return"http"===t||"https"===t},b=function(t,n){var e;for(e=n;e<t.length&&!I.test(t[e]);e++);return e},O=function(t,n){var e=b(t,n+1),r=t.slice(n+1,e).join(U);return"://"===r.substr(0,3)?e:n},S=function(t,n,e,r){for(var o=[],u=[],i=0;i<e.length;++i)if(u.push(t[i]),L(e,i)){var c=n[i];if(!(!r.includeWhitespace&&I.test(c)||!r.includePunctuation&&x.test(c))){var a=i-u.length+1,l=i+1,f=n.slice(a,l).join(U);if(W(f)){var E=O(n,i),s=t.slice(l,E);Array.prototype.push.apply(u,s),i=E}o.push(u)}u=[]}return o},F=function(){return{includeWhitespace:!1,includePunctuation:!1}},j=function(t,n,e){e=c(c({},F()),e);for(var r=[],o=[],u=0;u<t.length;u++){var i=n(t[u]);i!==D&&(r.push(t[u]),o.push(i))}var a=w(o);return S(r,o,a,e)},k=j,K=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),X=function(t,n){for(var e=n.getBlockElements(),r=n.getShortEndedElements(),o=function(t){return e[t.nodeName]||r[t.nodeName]},u=[],i="",c=new K(t,t);t=c.next();)3===t.nodeType?i+=t.data:o(t)&&i.length&&(u.push(i),i="");return i.length&&u.push(i),u},P=function(t){return t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length},B=function(t,n){var e=X(t,n).join("\n");return k(e.split(""),o).length},_=function(t,n){var e=X(t,n).join("");return P(e)},z=function(t,n){var e=X(t,n).join("").replace(/\s/g,"");return P(e)},q=function(t,n){return function(){return n(t.getBody(),t.schema)}},H=function(t,n){return function(){return n(t.selection.getRng().cloneContents(),t.schema)}},$=function(t){return q(t,B)},Z=function(t){return{body:{getWordCount:$(t),getCharacterCount:q(t,_),getCharacterCountWithoutSpaces:q(t,z)},selection:{getWordCount:H(t,B),getCharacterCount:H(t,_),getCharacterCountWithoutSpaces:H(t,z)},getCount:$(t)}},G=tinymce.util.Tools.resolve("tinymce.util.Delay"),J=function(t,n){t.fire("wordCountUpdate",{wordCount:{words:n.body.getWordCount(),characters:n.body.getCharacterCount(),charactersWithoutSpaces:n.body.getCharacterCountWithoutSpaces()}})},Q=function(t,n){J(t,n)},V=function(t,n,e){var r=G.debounce(function(){return Q(t,n)},e);t.on("init",function(){Q(t,n),G.setEditorTimeout(t,function(){t.on("SetContent BeforeAddUndo Undo Redo keyup",r)},0)})},Y=function(t,n){t.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(n.body.getWordCount()),String(n.selection.getWordCount())],["Characters (no spaces)",String(n.body.getCharacterCountWithoutSpaces()),String(n.selection.getCharacterCountWithoutSpaces())],["Characters",String(n.body.getCharacterCount()),String(n.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},tn=function(t,n){t.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:function(){return Y(t,n)}}),t.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:function(){return Y(t,n)}})};t()}()});
;/*!node_modules/tinymce/plugins/wordcount/index.js*/
amis.define("node_modules/tinymce/plugins/wordcount/index",function(n){n("node_modules/tinymce/plugins/wordcount/plugin")});
;/*!node_modules/tinymce/plugins/hr/plugin.js*/
amis.define("node_modules/tinymce/plugins/hr/plugin",function(){!function(){"use strict";function n(){e.add("hr",function(n){o.register(n),r.register(n)})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(n){n.addCommand("InsertHorizontalRule",function(){n.execCommand("mceInsertContent",!1,"<hr />")})},o={register:t},i=function(n){n.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}}),n.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}})},r={register:i};n()}()});
;/*!node_modules/tinymce/plugins/hr/index.js*/
amis.define("node_modules/tinymce/plugins/hr/index",function(n){n("node_modules/tinymce/plugins/hr/plugin")});
;/*!node_modules/tinymce/plugins/pagebreak/plugin.js*/
amis.define("node_modules/tinymce/plugins/pagebreak/plugin",function(){!function(){"use strict";function e(){t.add("pagebreak",function(e){s.register(e),f.register(e),g.setup(e),p.setup(e)})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=tinymce.util.Tools.resolve("tinymce.Env"),n=function(e){return e.getParam("pagebreak_separator","<!-- pagebreak -->")},r=function(e){return e.getParam("pagebreak_split_block",!1)},o={getSeparatorHtml:n,shouldSplitBlock:r},i=function(){return"mce-pagebreak"},c=function(){return'<img src="'+a.transparentSrc+'" class="'+i()+'" data-mce-resize="false" data-mce-placeholder />'},l=function(e){var t=o.getSeparatorHtml(e),a=new RegExp(t.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(e){return"\\"+e}),"gi");e.on("BeforeSetContent",function(e){e.content=e.content.replace(a,c())}),e.on("PreInit",function(){e.serializer.addNodeFilter("img",function(a){for(var n,r,i=a.length;i--;)if(n=a[i],r=n.attr("class"),r&&-1!==r.indexOf("mce-pagebreak")){var c=n.parent;if(e.schema.getBlockElements()[c.name]&&o.shouldSplitBlock(e)){c.type=3,c.value=t,c.raw=!0,n.remove();continue}n.type=3,n.value=t,n.raw=!0}})})},g={setup:l,getPlaceholderHtml:c,getPageBreakClass:i},u=function(e){e.addCommand("mcePageBreak",function(){e.insertContent(e.settings.pagebreak_split_block?"<p>"+g.getPlaceholderHtml()+"</p>":g.getPlaceholderHtml())})},s={register:u},m=function(e){e.on("ResolveName",function(t){"IMG"===t.target.nodeName&&e.dom.hasClass(t.target,g.getPageBreakClass())&&(t.name="pagebreak")})},p={setup:m},d=function(e){e.ui.registry.addButton("pagebreak",{icon:"page-break",tooltip:"Page break",onAction:function(){return e.execCommand("mcePageBreak")}}),e.ui.registry.addMenuItem("pagebreak",{text:"Page break",icon:"page-break",onAction:function(){return e.execCommand("mcePageBreak")}})},f={register:d};e()}()});
;/*!node_modules/tinymce/plugins/pagebreak/index.js*/
amis.define("node_modules/tinymce/plugins/pagebreak/index",function(e){e("node_modules/tinymce/plugins/pagebreak/plugin")});
;/*!node_modules/tinymce/plugins/spellchecker/plugin.js*/
amis.define("node_modules/tinymce/plugins/spellchecker/plugin",function(){!function(e){"use strict";function t(e){return e&&1===e.nodeType&&"false"===e.contentEditable}function n(){o.add("spellchecker",function(e,t){if(a.hasProPlugin(e)===!1){var n=r(!1),o=r(k.getLanguage(e)),i=r(null),c=r(null);return K.register(e,t,n,i,o,c),Z.setup(e,t,c,n,i,o),q.register(e,t,n,i,c,o),j.get(e,n,c,i,o,t)}})}var r=function(e){var t=e,n=function(){return t},o=function(e){t=e},i=function(){return r(n())};return{get:n,set:o,clone:i}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(t){return/(^|[ ,])tinymcespellchecker([, ]|$)/.test(t.settings.plugins)&&o.get("tinymcespellchecker")?("undefined"!=typeof e.window.console&&e.window.console.log&&e.window.console.log("Spell Checker Pro is incompatible with Spell Checker plugin! Remove 'spellchecker' from the 'plugins' option."),!0):!1},a={hasProPlugin:i},c=tinymce.util.Tools.resolve("tinymce.util.Tools"),l=tinymce.util.Tools.resolve("tinymce.util.URI"),u=tinymce.util.Tools.resolve("tinymce.util.XHR"),s=function(e){return e.fire("SpellcheckStart")},d=function(e){return e.fire("SpellcheckEnd")},f={fireSpellcheckStart:s,fireSpellcheckEnd:d},g=function(e){var t="English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr_FR,German=de,Italian=it,Polish=pl,Portuguese=pt_BR,Spanish=es,Swedish=sv";return e.getParam("spellchecker_languages",t)},h=function(e){var t=e.getParam("language","en");return e.getParam("spellchecker_language",t)},p=function(e){return e.getParam("spellchecker_rpc_url")},m=function(e){return e.getParam("spellchecker_callback")},v=function(e){var t=new RegExp('[^\\s!"#$%&()*+,-./:;<=>?@[\\]^_{|}`§©«®±¶·¸»¼½¾¿×÷¤”“„    ]+',"g");return e.getParam("spellchecker_wordchar_pattern",t)},k={getLanguages:g,getLanguage:h,getRpcUrl:p,getSpellcheckerCallback:m,getSpellcheckerWordcharPattern:v},x=function(e,n){function r(e,t){if(!e[0])throw new Error("findAndReplaceDOMText cannot handle zero-length matches");return{start:e.index,end:e.index+e[0].length,text:e[0],data:t}}function o(e){var n;if(3===e.nodeType)return e.data;if(T[e.nodeName]&&!w[e.nodeName])return"";if(t(e))return"\n";if(n="",(w[e.nodeName]||P[e.nodeName])&&(n+="\n"),e=e.firstChild)do n+=o(e);while(e=e.nextSibling);return n}function i(e,n,r){var o,i,a,c,l,u=[],s=0,d=e,f=0;n=n.slice(0),n.sort(function(e,t){return e.start-t.start}),l=n.shift();e:for(;;){if((w[d.nodeName]||P[d.nodeName]||t(d))&&s++,3===d.nodeType&&(!i&&d.length+s>=l.end?(i=d,c=l.end-s):o&&u.push(d),!o&&d.length+s>l.start&&(o=d,a=l.start-s),s+=d.length),o&&i){if(d=r({startNode:o,startNodeIndex:a,endNode:i,endNodeIndex:c,innerNodes:u,match:l.text,matchIndex:f}),s-=i.length-c,o=null,i=null,u=[],l=n.shift(),f++,!l)break}else if(T[d.nodeName]&&!w[d.nodeName]||!d.firstChild){if(d.nextSibling){d=d.nextSibling;continue}}else if(!t(d)){d=d.firstChild;continue}for(;;){if(d.nextSibling){d=d.nextSibling;break}if(d.parentNode===e)break e;d=d.parentNode}}}function a(e){function t(t,n){var r=I[n];r.stencil||(r.stencil=e(r));var o=r.stencil.cloneNode(!1);return o.setAttribute("data-mce-index",n),t&&o.appendChild(B.doc.createTextNode(t)),o}return function(e){var n,r,o,i=e.startNode,a=e.endNode,c=e.matchIndex,l=B.doc;if(i===a){var u=i;o=u.parentNode,e.startNodeIndex>0&&(n=l.createTextNode(u.data.substring(0,e.startNodeIndex)),o.insertBefore(n,u));var s=t(e.match,c);return o.insertBefore(s,u),e.endNodeIndex<u.length&&(r=l.createTextNode(u.data.substring(e.endNodeIndex)),o.insertBefore(r,u)),u.parentNode.removeChild(u),s}n=l.createTextNode(i.data.substring(0,e.startNodeIndex)),r=l.createTextNode(a.data.substring(e.endNodeIndex));for(var d=t(i.data.substring(e.startNodeIndex),c),f=0,g=e.innerNodes.length;g>f;++f){var h=e.innerNodes[f],p=t(h.data,c);h.parentNode.replaceChild(p,h)}var m=t(a.data.substring(0,e.endNodeIndex),c);return o=i.parentNode,o.insertBefore(n,i),o.insertBefore(d,i),o.removeChild(i),o=a.parentNode,o.insertBefore(m,a),o.insertBefore(r,a),o.removeChild(a),m}}function c(e){for(var t=e.parentNode;e.childNodes.length>0;)t.insertBefore(e.childNodes[0],e);t.removeChild(e)}function l(e){return-1!==e.className.indexOf("mce-spellchecker-word")}function u(t){var n=e.getElementsByTagName("*"),r=[];t="number"==typeof t?""+t:null;for(var o=0;o<n.length;o++){var i=n[o],a=i.getAttribute("data-mce-index");null!==a&&a.length&&l(i)&&(a===t||null===t)&&r.push(i)}return r}function s(e){for(var t=I.length;t--;)if(I[t]===e)return t;return-1}function d(e){var t=[];return f(function(n,r){e(n,r)&&t.push(n)}),I=t,this}function f(e){for(var t=0,n=I.length;n>t&&e(I[t],t)!==!1;t++);return this}function g(t){return I.length&&i(e,I,a(t)),this}function h(e,t){if(b&&e.global)for(;y=e.exec(b);)I.push(r(y,t));return this}function p(e){var t,n=u(e?s(e):null);for(t=n.length;t--;)c(n[t]);return this}function m(e){return I[e.getAttribute("data-mce-index")]}function v(e){return u(s(e))[0]}function k(e,t,n){return I.push({start:e,end:e+t,text:b.substr(e,t),data:n}),this}function x(e){var t=u(s(e)),r=n.dom.createRng();return r.setStartBefore(t[0]),r.setEndAfter(t[t.length-1]),r}function N(e,t){var r=x(e);return r.deleteContents(),t.length>0&&r.insertNode(n.dom.doc.createTextNode(t)),r}function S(){return I.splice(0,I.length),p(),this}var y,b,w,T,P,I=[],B=n.dom;return w=n.schema.getBlockElements(),T=n.schema.getWhiteSpaceElements(),P=n.schema.getShortEndedElements(),b=o(e),{text:b,matches:I,each:f,filter:d,reset:S,matchFromElement:m,elementFromMatch:v,find:h,add:k,wrap:g,unwrap:p,replace:N,rangeFromMatch:x,indexOf:s}},N=function(){},S=function(e){return function(){return e}},y=S(!1),b=S(!0),w=function(){return T},T=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e){return e()},is:y,isSome:y,isNone:b,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:S(null),getOrUndefined:S(void 0),or:n,orThunk:t,map:w,each:N,bind:w,exists:y,forall:b,filter:w,equals:e,equals_:e,toArray:function(){return[]},toString:S("none()")};return Object.freeze&&Object.freeze(r),r}(),P=Object.hasOwnProperty,I=function(e){for(var t in e)if(P.call(e,t))return!1;return!0},B=function(e,t){if(!t.get()){var n=x(e.getBody(),e);t.set(n)}return t.get()},A=function(e,t,n){return function(r,o,i,a){var s={method:r,lang:n.get()},d="";s["addToDictionary"===r?"word":"text"]=o,c.each(s,function(e,t){d&&(d+="&"),d+=t+"="+encodeURIComponent(e)}),u.send({url:new l(t).toAbsolute(k.getRpcUrl(e)),type:"post",content_type:"application/x-www-form-urlencoded",data:d,success:function(t){var n=JSON.parse(t);if(n)n.error?a(n.error):i(n);else{var r=e.translate("Server response wasn't proper JSON.");a(r)}},error:function(){var t=e.translate("The spelling service was not found: (")+k.getRpcUrl(e)+e.translate(")");a(t)}})}},E=function(e,t,n,r,o,i,a){var c=k.getSpellcheckerCallback(e),l=c?c:A(e,t,n);l.call(e.plugins.spellchecker,r,o,i,a)},C=function(e,t,n,r,o,i){if(!D(e,n,r)){var a=function(t){e.notificationManager.open({text:t,type:"error"}),e.setProgressState(!1),D(e,n,r)},c=function(t){W(e,n,r,o,t)};e.setProgressState(!0),E(e,t,i,"spellcheck",B(e,r).text,c,a),e.focus()}},O=function(e,t,n){e.dom.select("span.mce-spellchecker-word").length||D(e,t,n)},R=function(e,t,n,r,o,i,a){e.setProgressState(!0),E(e,t,o,"addToDictionary",i,function(){e.setProgressState(!1),e.dom.remove(a,!0),O(e,n,r)},function(t){e.notificationManager.open({text:t,type:"error"}),e.setProgressState(!1)})},_=function(e,t,n,r,o,i){e.selection.collapse(),i?c.each(e.dom.select("span.mce-spellchecker-word"),function(t){t.getAttribute("data-mce-word")===r&&e.dom.remove(t,!0)}):e.dom.remove(o,!0),O(e,t,n)},D=function(e,t,n){var r=e.selection.getBookmark();return B(e,n).reset(),e.selection.moveToBookmark(r),n.set(null),t.get()?(t.set(!1),f.fireSpellcheckEnd(e),!0):void 0},M=function(e){var t=e.getAttribute("data-mce-index");return"number"==typeof t?""+t:t},F=function(e,t){var n,r=[];if(n=c.toArray(e.getBody().getElementsByTagName("span")),n.length)for(var o=0;o<n.length;o++){var i=M(n[o]);null!==i&&i.length&&i===t.toString()&&r.push(n[o])}return r},W=function(e,t,n,r,o){var i=!!o.dictionary,a=o.words;if(e.setProgressState(!1),I(a)){var c=e.translate("No misspellings found.");return e.notificationManager.open({text:c,type:"info"}),void t.set(!1)}r.set({suggestions:a,hasDictionarySupport:i});var l=e.selection.getBookmark();B(e,n).find(k.getSpellcheckerWordcharPattern(e)).filter(function(e){return!!a[e.text]}).wrap(function(t){return e.dom.create("span",{"class":"mce-spellchecker-word","aria-invalid":"spelling","data-mce-bogus":1,"data-mce-word":t.text})}),e.selection.moveToBookmark(l),t.set(!0),f.fireSpellcheckStart(e)},L={spellcheck:C,checkIfFinished:O,addToDictionary:R,ignoreWord:_,findSpansByIndex:F,getElmIndex:M,markErrors:W},U=function(e,t,n,r,o){var i=function(){return o.get()},a=function(){return k.getSpellcheckerWordcharPattern(e)},c=function(o){L.markErrors(e,t,r,n,o)},l=function(){return r.get()};return{getTextMatcher:l,getWordCharPattern:a,markErrors:c,getLanguage:i}},j={get:U},z=function(e,t,n,r,o,i){e.addCommand("mceSpellCheck",function(){L.spellcheck(e,t,n,r,o,i)})},q={register:z},J=function(){return J=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},J.apply(this,arguments)},$="SpellcheckStart SpellcheckEnd",G=function(e,t){var n=[];return c.each(t,function(e){n.push({selectable:!0,text:e.name,data:e.value})}),n},H=function(e){return c.map(k.getLanguages(e).split(","),function(e){return e=e.split("="),{name:e[0],value:e[1]}})},X=function(e,t,n,r,o,i){var a=G("Language",H(e)),l=function(){L.spellcheck(e,t,n,r,i,o)},u={tooltip:"Spellcheck",onAction:l,icon:"spell-check",onSetup:function(t){var r=function(){t.setActive(n.get())};return e.on($,r),function(){e.off($,r)}}},s=J(J({},u),{type:"splitbutton",select:function(e){return e===o.get()},fetch:function(e){var t=c.map(a,function(e){return{type:"choiceitem",value:e.data,text:e.text}});e(t)},onItemAction:function(e,t){o.set(t)}});a.length>1?e.ui.registry.addSplitButton("spellchecker",s):e.ui.registry.addToggleButton("spellchecker",u),e.ui.registry.addToggleMenuItem("spellchecker",{text:"Spellcheck",onSetup:function(t){t.setActive(n.get());var r=function(){t.setActive(n.get())};return e.on($,r),function(){e.off($,r)}},onAction:l})},K={register:X},Q=!0,V=function(e,t,n,r,o,i,a,l){var u=[],s=n.get().suggestions[a];c.each(s,function(t){u.push({text:t,onAction:function(){e.insertContent(e.dom.encode(t)),e.dom.remove(l),L.checkIfFinished(e,r,o)}})});var d=n.get().hasDictionarySupport;return d&&(u.push({type:"separator"}),u.push({text:"Add to dictionary",onAction:function(){L.addToDictionary(e,t,r,o,i,a,l)}})),u.push.apply(u,[{type:"separator"},{text:"Ignore",onAction:function(){L.ignoreWord(e,r,o,a,l)}},{text:"Ignore all",onAction:function(){L.ignoreWord(e,r,o,a,l,Q)}}]),u},Y=function(e,t,n,r,o,i){var a=function(a){var c=a;if("mce-spellchecker-word"!==c.className)return[];var l=L.findSpansByIndex(e,L.getElmIndex(c));if(l.length>0){var u=e.dom.createRng();return u.setStartBefore(l[0]),u.setEndAfter(l[l.length-1]),e.selection.setRng(u),V(e,t,n,r,o,i,c.getAttribute("data-mce-word"),l)}};e.ui.registry.addContextMenu("spellchecker",{update:a})},Z={setup:Y};n()}(window)});
;/*!node_modules/tinymce/plugins/spellchecker/index.js*/
amis.define("node_modules/tinymce/plugins/spellchecker/index",function(e){e("node_modules/tinymce/plugins/spellchecker/plugin")});
;/*!node_modules/tinymce/plugins/visualchars/plugin.js*/
amis.define("node_modules/tinymce/plugins/visualchars/plugin",function(){!function(n){"use strict";function e(){r.add("visualchars",function(n){var e=t(!1);return pe.register(n,e),we(n,e),Te.setup(n,e),be.setup(n,e),i.get(e)})}var t=function(n){var e=n,r=function(){return e},o=function(n){e=n},i=function(){return t(r())};return{get:r,set:o,clone:i}},r=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(n){var e=function(){return n.get()};return{isEnabled:e}},i={get:o},u=function(n,e){return n.fire("VisualChars",{state:e})},a={fireVisualChars:u},c=function(){},s=function(n){return function(){return n}},f=s(!1),l=s(!0),d=function(){return m},m=function(){var n=function(n){return n.isNone()},e=function(n){return n()},t=function(n){return n},r={fold:function(n){return n()},is:f,isSome:f,isNone:l,getOr:t,getOrThunk:e,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:s(null),getOrUndefined:s(void 0),or:t,orThunk:e,map:d,each:c,bind:d,exists:f,forall:l,filter:d,equals:n,equals_:n,toArray:function(){return[]},toString:s("none()")};return Object.freeze&&Object.freeze(r),r}(),g=function(n){var e=s(n),t=function(){return o},r=function(e){return e(n)},o={fold:function(e,t){return t(n)},is:function(e){return n===e},isSome:l,isNone:f,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){return g(e(n))},each:function(e){e(n)},bind:r,exists:r,forall:r,filter:function(e){return e(n)?o:m},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(f,function(e){return t(n,e)})}};return o},v=function(n){return null===n||void 0===n?m:g(n)},h={some:g,none:d,from:v},p=function(n){if(null===n)return"null";var e=typeof n;return"object"===e&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":e},N=function(n){return function(e){return p(e)===n}},E=N("string"),T=N("boolean"),O=N("function"),y=N("number"),C=Array.prototype.slice,b=function(n,e){for(var t=n.length,r=new Array(t),o=0;t>o;o++){var i=n[o];r[o]=e(i,o)}return r},D=function(n,e){for(var t=0,r=n.length;r>t;t++){var o=n[t];e(o,t)}},w=function(n,e){for(var t=[],r=0,o=n.length;o>r;r++){var i=n[r];e(i,r)&&t.push(i)}return t},_=(O(Array.from)?Array.from:function(n){return C.call(n)},n.Node.ATTRIBUTE_NODE,n.Node.CDATA_SECTION_NODE,n.Node.COMMENT_NODE,n.Node.DOCUMENT_NODE,n.Node.DOCUMENT_TYPE_NODE,n.Node.DOCUMENT_FRAGMENT_NODE,n.Node.ELEMENT_NODE,n.Node.TEXT_NODE),A=(n.Node.PROCESSING_INSTRUCTION_NODE,n.Node.ENTITY_REFERENCE_NODE,n.Node.ENTITY_NODE,n.Node.NOTATION_NODE,"undefined"!=typeof n.window?n.window:Function("return this;")(),function(n){return n.dom().nodeType}),S=function(n){return n.dom().nodeValue},M=function(n){return function(e){return A(e)===n}},k=M(_),x=function(e,t,r){if(!(E(r)||T(r)||y(r)))throw n.console.error("Invalid call to Attr.set. Key ",t,":: Value ",r,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,r+"")},V=function(n,e,t){x(n.dom(),e,t)},B=function(n,e){var t=n.dom().getAttribute(e);return null===t?void 0:t},I=function(n,e){n.dom().removeAttribute(e)},L=function(n,e){var t=B(n,e);return void 0===t||""===t?[]:t.split(" ")},P=function(n,e,t){var r=L(n,e),o=r.concat([t]);return V(n,e,o.join(" ")),!0},R=function(n,e,t){var r=w(L(n,e),function(n){return n!==t});return r.length>0?V(n,e,r.join(" ")):I(n,e),!1},U=function(n){return void 0!==n.dom().classList},j=function(n){return L(n,"class")},q=function(n,e){return P(n,"class",e)},F=function(n,e){return R(n,"class",e)},G=function(n,e){U(n)?n.dom().classList.add(e):q(n,e)},H=function(n){var e=U(n)?n.dom().classList:j(n);0===e.length&&I(n,"class")},W=function(n,e){if(U(n)){var t=n.dom().classList;t.remove(e)}else F(n,e);H(n)},Y=function(e,t){var r=t||n.document,o=r.createElement("div");if(o.innerHTML=e,!o.hasChildNodes()||o.childNodes.length>1)throw n.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return X(o.childNodes[0])},z=function(e,t){var r=t||n.document,o=r.createElement(e);return X(o)},K=function(e,t){var r=t||n.document,o=r.createTextNode(e);return X(o)},X=function(n){if(null===n||void 0===n)throw new Error("Node cannot be null or undefined");return{dom:s(n)}},J=function(n,e,t){var r=n.dom();return h.from(r.elementFromPoint(e,t)).map(X)},Q={fromHtml:Y,fromTag:z,fromText:K,fromDom:X,fromPoint:J},Z={" ":"nbsp","­":"shy"},$=function(n,e){var t,r="";for(t in n)r+=t;return new RegExp("["+r+"]",e?"g":"")},ne=function(n){var e,t="";for(e in n)t&&(t+=","),t+="span.mce-"+n[e];return t},ee={charMap:Z,regExp:$(Z),regExpGlobal:$(Z,!0),selector:ne(Z),nbspClass:"mce-nbsp",charMapToRegExp:$,charMapToSelector:ne},te=function(n){return'<span data-mce-bogus="1" class="mce-'+ee.charMap[n]+'">'+n+"</span>"},re={wrapCharWithSpan:te},oe=function(n){var e=S(n);return k(n)&&void 0!==e&&ee.regExp.test(e)},ie=function(n,e){var t=[],r=n.dom(),o=b(r.childNodes,Q.fromDom);return D(o,function(n){e(n)&&(t=t.concat([n])),t=t.concat(ie(n,e))}),t},ue=function(n,e){for(;n.parentNode;){if(n.parentNode===e)return n;n=n.parentNode}},ae=function(n){return n.replace(ee.regExpGlobal,re.wrapCharWithSpan)},ce={isMatch:oe,filterDescendants:ie,findParentElm:ue,replaceWithSpans:ae},se=function(n){return"span"===n.nodeName.toLowerCase()&&n.classList.contains("mce-nbsp-wrap")},fe=function(n,e){var t=ce.filterDescendants(Q.fromDom(e),ce.isMatch);D(t,function(e){var t=e.dom().parentNode;if(se(t))G(Q.fromDom(t),ee.nbspClass);else{for(var r=ce.replaceWithSpans(n.dom.encode(S(e))),o=n.dom.create("div",null,r),i=void 0;i=o.lastChild;)n.dom.insertAfter(i,e.dom());n.dom.remove(e.dom())}})},le=function(n,e){var t=n.dom.select(ee.selector,e);D(t,function(e){se(e)?W(Q.fromDom(e),ee.nbspClass):n.dom.remove(e,!0)})},de=function(n){var e=n.getBody(),t=n.selection.getBookmark(),r=ce.findParentElm(n.selection.getNode(),e);r=void 0!==r?r:e,le(n,r),fe(n,r),n.selection.moveToBookmark(t)},me={show:fe,hide:le,toggle:de},ge=function(n,e){var t,r=n.getBody(),o=n.selection;e.set(!e.get()),a.fireVisualChars(n,e.get()),t=o.getBookmark(),e.get()===!0?me.show(n,r):me.hide(n,r),o.moveToBookmark(t)},ve={toggleVisualChars:ge},he=function(n,e){n.addCommand("mceVisualChars",function(){ve.toggleVisualChars(n,e)})},pe={register:he},Ne=tinymce.util.Tools.resolve("tinymce.util.Delay"),Ee=function(n,e){var t=Ne.debounce(function(){me.toggle(n)},300);n.settings.forced_root_block!==!1&&n.on("keydown",function(r){e.get()===!0&&(13===r.keyCode?me.toggle(n):t())})},Te={setup:Ee},Oe=function(n){return n.getParam("visualchars_default_state",!1)},ye={isEnabledByDefault:Oe},Ce=function(n,e){n.on("init",function(){var t=!ye.isEnabledByDefault(n);e.set(t),ve.toggleVisualChars(n,e)})},be={setup:Ce},De=function(n,e){return function(t){t.setActive(e.get());var r=function(n){return t.setActive(n.state)};return n.on("VisualChars",r),function(){return n.off("VisualChars",r)}}},we=function(n,e){n.ui.registry.addToggleButton("visualchars",{tooltip:"Show invisible characters",icon:"visualchars",onAction:function(){return n.execCommand("mceVisualChars")},onSetup:De(n,e)}),n.ui.registry.addToggleMenuItem("visualchars",{text:"Show invisible characters",onAction:function(){return n.execCommand("mceVisualChars")},onSetup:De(n,e)})};e()}(window)});
;/*!node_modules/tinymce/plugins/visualchars/index.js*/
amis.define("node_modules/tinymce/plugins/visualchars/index",function(i){i("node_modules/tinymce/plugins/visualchars/plugin")});
;/*!node_modules/tinymce/plugins/template/plugin.js*/
amis.define("node_modules/tinymce/plugins/template/plugin",function(){!function(){"use strict";function e(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 a=t.concat(n);return e.apply(null,a)}}function t(){n.add("template",function(e){Z.register(e),x.register(e),A.setup(e)})}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(){},a=function(e){return function(){return e}},o=a(!1),u=a(!0),i=tinymce.util.Tools.resolve("tinymce.util.Tools"),c=tinymce.util.Tools.resolve("tinymce.util.XHR"),l=function(e){return e.getParam("template_cdate_classes","cdate")},s=function(e){return e.getParam("template_mdate_classes","mdate")},f=function(e){return e.getParam("template_selected_content_classes","selcontent")},p=function(e){return e.getParam("template_preview_replace_values")},m=function(e){return e.getParam("template_replace_values")},d=function(e){return e.templates},g=function(e){return e.getParam("template_cdate_format",e.translate("%Y-%m-%d"))},y=function(e){return e.getParam("template_mdate_format",e.translate("%Y-%m-%d"))},v={getCreationDateClasses:l,getModificationDateClasses:s,getSelectedContentClasses:f,getPreviewReplaceValues:p,getTemplateReplaceValues:m,getTemplates:d,getCdateFormat:g,getMdateFormat:y},h=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){var r="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),a="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),o="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),u="January February March April May June July August September October November December".split(" ");return 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",h(n.getMonth()+1,2)),t=t.replace("%d",h(n.getDate(),2)),t=t.replace("%H",""+h(n.getHours(),2)),t=t.replace("%M",""+h(n.getMinutes(),2)),t=t.replace("%S",""+h(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(u[n.getMonth()])),t=t.replace("%b",""+e.translate(o[n.getMonth()])),t=t.replace("%A",""+e.translate(a[n.getDay()])),t=t.replace("%a",""+e.translate(r[n.getDay()])),t=t.replace("%%","%")},b={getDateTime:T},M=function(e,t){return function(){var n=v.getTemplates(e);return"function"==typeof n?void n(t):void("string"==typeof n?c.send({url:n,success:function(e){t(JSON.parse(e))}}):t(n))}},C=function(e,t){return i.each(t,function(t,n){"function"==typeof t&&(t=t(n)),e=e.replace(new RegExp("\\{\\$"+n+"\\}","g"),t)}),e},O=function(e,t){var n=e.dom,r=v.getTemplateReplaceValues(e);i.each(n.select("*",t),function(e){i.each(r,function(t,a){n.hasClass(e,a)&&"function"==typeof r[a]&&r[a](e)})})},S=function(e,t){return new RegExp("\\b"+t+"\\b","g").test(e.className)},_=function(e,t,n){var r,a,o=e.dom,u=e.selection.getContent();n=C(n,v.getTemplateReplaceValues(e)),r=o.create("div",null,n),a=o.select(".mceTmpl",r),a&&a.length>0&&(r=o.create("div",null),r.appendChild(a[0].cloneNode(!0))),i.each(o.select("*",r),function(t){S(t,v.getCreationDateClasses(e).replace(/\s+/g,"|"))&&(t.innerHTML=b.getDateTime(e,v.getCdateFormat(e))),S(t,v.getModificationDateClasses(e).replace(/\s+/g,"|"))&&(t.innerHTML=b.getDateTime(e,v.getMdateFormat(e))),S(t,v.getSelectedContentClasses(e).replace(/\s+/g,"|"))&&(t.innerHTML=u)}),O(e,r),e.execCommand("mceInsertContent",!1,r.innerHTML),e.addVisual()},D={createTemplateList:M,replaceTemplateValues:C,replaceVals:O,insertTemplate:_},P=function(t){t.addCommand("mceInsertTemplate",e(D.insertTemplate,t))},x={register:P},w=function(e){e.on("PreProcess",function(t){var n=e.dom,r=v.getMdateFormat(e);i.each(n.select("div",t.node),function(t){n.hasClass(t,"mceTmpl")&&(i.each(n.select("*",t),function(t){n.hasClass(t,e.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))&&(t.innerHTML=b.getDateTime(e,r))}),D.replaceVals(e,t))})})},A={setup:w},N=function(){return F},F=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},i={fold:function(e){return e()},is:o,isSome:o,isNone:u,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:a(null),getOrUndefined:a(void 0),or:n,orThunk:t,map:N,each:r,bind:N,exists:o,forall:u,filter:N,equals:e,equals_:e,toArray:function(){return[]},toString:a("none()")};return Object.freeze&&Object.freeze(i),i}(),H=function(e){var t=a(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:u,isNone:o,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)?i:F},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(o,function(t){return n(e,t)})}};return i},L=function(e){return null===e||void 0===e?F:H(e)},V={some:H,none:N,from:L},I=function(e){if(null===e)return"null";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 function(t){return I(t)===e}},k=R("function"),J=Array.prototype.slice,Y=function(e,t){for(var n=e.length,r=new Array(n),a=0;n>a;a++){var o=e[a];r[a]=t(o,a)}return r},j=function(e,t){for(var n=0,r=e.length;r>n;n++){var a=e[n];if(t(a,n))return V.some(a)}return V.none()},q=(k(Array.from)?Array.from:function(e){return J.call(e)},tinymce.util.Tools.resolve("tinymce.util.Promise")),B=Object.hasOwnProperty,E=function(e,t){return z(e,t)?V.from(e[t]):V.none()},z=function(e,t){return B.call(e,t)},U={'"':"&quot;","<":"&lt;",">":"&gt;","&":"&amp;","'":"&#039;"},W=function(e){return e.replace(/["'<>&]/g,function(e){return E(U,e).getOr(e)})},X=function(e,t){if(-1===t.indexOf("<html>")){var n="";i.each(e.contentCSS,function(t){n+='<link type="text/css" rel="stylesheet" href="'+e.documentBaseURI.toAbsolute(t)+'">'});var r=e.settings.body_class||"";-1!==r.indexOf("=")&&(r=e.getParam("body_class","","hash"),r=r[e.id]||"");var a=e.dom.encode,o=e.getBody().dir,u=o?' dir="'+a(o)+'"':"";t="<!DOCTYPE html><html><head>"+n+'</head><body class="'+a(r)+'"'+u+">"+t+"</body></html>"}return D.replaceTemplateValues(t,v.getPreviewReplaceValues(e))},$=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"}),V.none()}return V.from(i.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)?V.from(e.url):V.none(),content:n(e)?V.none():V.from(e.content),description:e.description}}}))},r=function(e){return Y(e,function(e){return{text:e.text,value:e.text}})},a=function(e,t){return j(e,function(e){return e.text===t})},o=function(t){e.windowManager.alert("Could not load the specified template.",function(){return t.focus("template")})},u=function(e){return new q(function(t,n){e.value.url.fold(function(){return t(e.value.content.getOr(""))},function(e){return c.send({url:e,success:function(e){t(e)},error:function(e){n(e)}})})})},l=function(e,t){return function(n,r){if("template"===r.name){var i=n.getData().template;a(e,i).each(function(e){n.block("Loading..."),u(e).then(function(r){t(n,e,r)}).catch(function(){t(n,e,""),n.disable("save"),o(n)})})}}},s=function(t){return function(n){var r=n.getData();a(t,r.template).each(function(t){u(t).then(function(t){D.insertTemplate(e,!1,t),n.close()}).catch(function(){n.disable("save"),o(n)})})}},f=function(t){var n=r(t),a=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:s(t),onChange:l(t,i)}},i=function(t,r,o){var u=X(e,o),i=[{type:"selectbox",name:"template",label:"Templates",items:n},{type:"htmlpanel",html:'<p aria-live="polite">'+W(r.value.description)+"</p>"},{label:"Preview",type:"iframe",name:"preview",sandboxed:!1}],c={template:r.text,preview:u};t.unblock(),t.redial(a(i,c)),t.focus("template")},c=e.windowManager.open(a([],{template:"",preview:""}));c.block("Loading..."),u(t[0]).then(function(e){i(c,t[0],e)}).catch(function(){i(c,t[0],""),c.disable("save"),o(c)})},p=n();p.each(f)},G={open:$},K=function(e){return function(t){G.open(e,t)}},Q=function(e){e.ui.registry.addButton("template",{icon:"template",tooltip:"Insert template",onAction:D.createTemplateList(e.settings,K(e))}),e.ui.registry.addMenuItem("template",{icon:"template",text:"Insert template...",onAction:D.createTemplateList(e.settings,K(e))})},Z={register:Q};t()}()});
;/*!node_modules/tinymce/plugins/template/index.js*/
amis.define("node_modules/tinymce/plugins/template/index",function(e){e("node_modules/tinymce/plugins/template/plugin")});
;/*!node_modules/tinymce/plugins/nonbreaking/plugin.js*/
amis.define("node_modules/tinymce/plugins/nonbreaking/plugin",function(){!function(){"use strict";function n(){e.add("nonbreaking",function(n){p.register(n),m.register(n),b.setup(n)})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(n){var e=n.getParam("nonbreaking_force_tab",0);return"boolean"==typeof e?e===!0?3:0:e},i=function(n){return n.getParam("nonbreaking_wrap",!0,"boolean")},r={getKeyboardSpaces:t,wrapNbsps:i},o=function(n,e){for(var t="",i=0;e>i;i++)t+=n;return t},a=function(n){return n.plugins.visualchars?n.plugins.visualchars.isEnabled():!1},s=function(n,e){var t=function(){return a(n)?"mce-nbsp-wrap mce-nbsp":"mce-nbsp-wrap"},i=function(){return'<span class="'+t()+'" contenteditable="false">'+o("&nbsp;",e)+"</span>"},s=r.wrapNbsps(n),u=s||n.plugins.visualchars?i():o("&nbsp;",e);n.undoManager.transact(function(){return n.insertContent(u)})},u={insertNbsp:s},c=function(n){n.addCommand("mceNonBreaking",function(){u.insertNbsp(n,1)})},p={register:c},g=tinymce.util.Tools.resolve("tinymce.util.VK"),f=function(n){var e=r.getKeyboardSpaces(n);e>0&&n.on("keydown",function(t){if(t.keyCode===g.TAB&&!t.isDefaultPrevented()){if(t.shiftKey)return;t.preventDefault(),t.stopImmediatePropagation(),u.insertNbsp(n,e)}})},b={setup:f},l=function(n){n.ui.registry.addButton("nonbreaking",{icon:"non-breaking",tooltip:"Nonbreaking space",onAction:function(){return n.execCommand("mceNonBreaking")}}),n.ui.registry.addMenuItem("nonbreaking",{icon:"non-breaking",text:"Nonbreaking space",onAction:function(){return n.execCommand("mceNonBreaking")}})},m={register:l};n()}()});
;/*!node_modules/tinymce/plugins/nonbreaking/index.js*/
amis.define("node_modules/tinymce/plugins/nonbreaking/index",function(n){n("node_modules/tinymce/plugins/nonbreaking/plugin")});
;/*!node_modules/tinymce/plugins/emoticons/plugin.js*/
amis.define("node_modules/tinymce/plugins/emoticons/plugin",function(){!function(n){"use strict";function t(){e.add("emoticons",function(n,t){var e=G.getEmoticonDatabaseUrl(n,t),r=G.getEmoticonDatabaseId(n),o=V(n,e,r);$.register(n,o),w(n,o)})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(){},o=function(n){return function(){return n}},i=o(!1),u=o(!0),c=function(){return a},a=function(){var n=function(n){return n.isNone()},t=function(n){return n()},e=function(n){return n},a={fold:function(n){return n()},is:i,isSome:i,isNone:u,getOr:e,getOrThunk:t,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:e,orThunk:t,map:c,each:r,bind:c,exists:i,forall:u,filter:c,equals:n,equals_:n,toArray:function(){return[]},toString:o("none()")};return Object.freeze&&Object.freeze(a),a}(),l=function(n){var t=o(n),e=function(){return c},r=function(t){return t(n)},c={fold:function(t,e){return e(n)},is:function(t){return n===t},isSome:u,isNone:i,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:e,orThunk:e,map:function(t){return l(t(n))},each:function(t){t(n)},bind:r,exists:r,forall:r,filter:function(t){return t(n)?c:a},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(t){return t.is(n)},equals_:function(t,e){return t.fold(i,function(t){return e(n,t)})}};return c},s=function(n){return null===n||void 0===n?a:l(n)},f={some:l,none:c,from:s},m=function(n){if(null===n)return"null";var t=typeof n;return"object"===t&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":t},g=function(n){return function(t){return m(t)===n}},d=g("function"),y=Array.prototype.slice,p=function(n,t){for(var e=0,r=n.length;r>e;e++){var o=n[e];if(t(o,e))return!0}return!1},v=function(n,t){for(var e=n.length,r=new Array(e),o=0;e>o;o++){var i=n[o];r[o]=t(i,o)}return r},h=(d(Array.from)?Array.from:function(n){return y.call(n)},function(n,t){return-1!==n.indexOf(t)}),b=function(n,t){return h(n.title.toLowerCase(),t)||p(n.keywords,function(n){return h(n.toLowerCase(),t)})},O=function(n,t,e){for(var r=[],o=t.toLowerCase(),u=e.fold(function(){return i},function(n){return function(t){return t>=n}}),c=0;c<n.length&&(0!==t.length&&!b(n[c],o)||(r.push({value:n[c].char,text:n[c].title,icon:n[c].char}),!u(r.length)));c++);return r},w=function(n,t){n.ui.registry.addAutocompleter("emoticons",{ch:":",columns:"auto",minChars:2,fetch:function(n,e){return t.waitForLoad().then(function(){var r=t.listAll();return O(r,n,f.some(e))})},onAction:function(t,e,r){n.selection.setRng(e),n.insertContent(r),t.hide()}})},A=function(n){var t=n,e=function(){return t},r=function(n){t=n},o=function(){return A(e())};return{get:e,set:r,clone:o}},j=function(t,e){var r=null,o=function(){null!==r&&(n.clearTimeout(r),r=null)},i=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];null!==r&&n.clearTimeout(r),r=n.setTimeout(function(){t.apply(null,o),r=null},e)};return{cancel:o,throttle:i}},C=function(n,t){n.insertContent(t)},k=function(){return k=Object.assign||function(n){for(var t,e=1,r=arguments.length;r>e;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},k.apply(this,arguments)},D=Object.prototype.hasOwnProperty,T=function(n,t){return t},_=function(n){return function(){for(var t=new Array(arguments.length),e=0;e<t.length;e++)t[e]=arguments[e];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 u in i)D.call(i,u)&&(r[u]=n(r[u],i[u]))}return r}},E=_(T),P=Object.keys,S=Object.hasOwnProperty,x=function(n,t){for(var e=P(n),r=0,o=e.length;o>r;r++){var i=e[r],u=n[i];t(u,i)}},L=function(n,t){return N(n,function(n,e){return{k:e,v:t(n,e)}})},N=function(n,t){var e={};return x(n,function(n,r){var o=t(n,r);e[o.k]=o.v}),e},F=function(n,t){return S.call(n,t)},I=tinymce.util.Tools.resolve("tinymce.Resource"),U=tinymce.util.Tools.resolve("tinymce.util.Delay"),q=tinymce.util.Tools.resolve("tinymce.util.Promise"),z="tinymce.plugins.emoticons",M=function(n,t){return n.getParam("emoticons_database_url",t+"/js/emojis"+n.suffix+".js")},R=function(n){return n.getParam("emoticons_database_id",z,"string")},B=function(n){return n.getParam("emoticons_append",{},"object")},G={getEmoticonDatabaseUrl:M,getEmoticonDatabaseId:R,getAppendedEmoticons:B},H="All",J={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"},K=function(n,t){return F(n,t)?n[t]:t},Q=function(n){var t=G.getAppendedEmoticons(n);return L(t,function(n){return k({keywords:[],category:"user"},n)})},V=function(t,e,r){var o=A(f.none()),i=A(f.none()),u=function(n){var t={},e=[];x(n,function(n,r){var o={title:r,keywords:n.keywords,"char":n.char,category:K(J,n.category)},i=void 0!==t[o.category]?t[o.category]:[];t[o.category]=i.concat([o]),e.push(o)}),o.set(f.some(t)),i.set(f.some(e))};t.on("init",function(){I.load(r,e).then(function(n){var e=Q(t);u(E(n,e))},function(t){n.console.log("Failed to load emoticons: "+t),o.set(f.some({})),i.set(f.some([]))})});var c=function(n){return n===H?a():o.get().bind(function(t){return f.from(t[n])}).getOr([])},a=function(){return i.get().getOr([])},l=function(){return[H].concat(P(o.get().getOr({})))},s=function(){return m()?q.resolve(!0):new q(function(t,r){var o=15,i=U.setInterval(function(){m()?(U.clearInterval(i),t(!0)):(o--,0>o&&(n.console.log("Could not load emojis from url: "+e),U.clearInterval(i),r(!1)))},100)})},m=function(){return o.get().isSome()&&i.get().isSome()};return{listCategories:l,hasLoaded:m,waitForLoad:s,listAll:a,listCategory:c}},W="pattern",X=function(n,t){var e={pattern:"",results:O(t.listAll(),"",f.some(300))},r=A(H),o=function(n){var e=n.getData(),o=r.get(),i=t.listCategory(o),u=O(i,e[W],o===H?f.some(300):f.none());n.setData({results:u})},i=j(function(n){o(n)},200),u={label:"Search",type:"input",name:W},c={type:"collection",name:"results"},a=function(){var o={type:"tabpanel",tabs:v(t.listCategories(),function(n){return{title:n,name:n,items:[u,c]}})};return{title:"Emoticons",size:"normal",body:o,initialData:e,onTabChange:function(n,t){r.set(t.newTabName),i.throttle(n)},onChange:i.throttle,onAction:function(t,e){"results"===e.name&&(C(n,e.value),t.close())},buttons:[{type:"cancel",text:"Close",primary:!0}]}},l=n.windowManager.open(a());l.focus(W),t.hasLoaded()||(l.block("Loading emoticons..."),t.waitForLoad().then(function(){l.redial(a()),i.throttle(l),l.focus(W),l.unblock()}).catch(function(){l.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:[]}}),l.focus(W),l.unblock()}))},Y={open:X},Z=function(n,t){var e=function(){return Y.open(n,t)};n.ui.registry.addButton("emoticons",{tooltip:"Emoticons",icon:"emoji",onAction:e}),n.ui.registry.addMenuItem("emoticons",{text:"Emoticons...",icon:"emoji",onAction:e})},$={register:Z};t()}(window)});
;/*!node_modules/tinymce/plugins/emoticons/index.js*/
amis.define("node_modules/tinymce/plugins/emoticons/index",function(n){n("node_modules/tinymce/plugins/emoticons/plugin")});
;/*!node_modules/tinymce/plugins/emoticons/js/emojis.js*/
amis.define("node_modules/tinymce/plugins/emoticons/js/emojis",function(){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"},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"},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"},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"},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"},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"},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"},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"},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"},coat:{keywords:["jacket"],"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"},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"},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"},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"},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"},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"},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"},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"},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"},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"},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"},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"},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"},"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"},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"},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"},slot_machine:{keywords:["bet","gamble","vegas","fruit machine","luck","casino"],"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"},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"},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"},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"},chains:{keywords:["lock","arrest"],"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"},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"},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"},thermometer:{keywords:["weather","temperature","hot","cold"],"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"},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"},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"},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"},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"},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"},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"],"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"},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"}})
});
;/*!src/components/Tinymce.tsx*/
amis.define("82fac39",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=n.__importDefault(e("node_modules/react/index")),i=n.__importDefault(e("node_modules/tinymce/tinymce"));e("node_modules/tinymce/themes/silver/index"),e("node_modules/tinymce/plugins/advlist/index"),e("node_modules/tinymce/plugins/autolink/index"),e("node_modules/tinymce/plugins/lists/index"),e("node_modules/tinymce/plugins/link/index"),e("node_modules/tinymce/plugins/image/index"),e("node_modules/tinymce/plugins/charmap/index"),e("node_modules/tinymce/plugins/print/index"),e("node_modules/tinymce/plugins/preview/index"),e("node_modules/tinymce/plugins/anchor/index"),e("node_modules/tinymce/plugins/searchreplace/index"),e("node_modules/tinymce/plugins/visualblocks/index"),e("node_modules/tinymce/plugins/code/index"),e("node_modules/tinymce/plugins/fullscreen/index"),e("node_modules/tinymce/plugins/insertdatetime/index"),e("node_modules/tinymce/plugins/media/index"),e("node_modules/tinymce/plugins/table/index"),e("node_modules/tinymce/plugins/paste/index"),e("node_modules/tinymce/plugins/help/index"),e("node_modules/tinymce/plugins/wordcount/index"),e("node_modules/tinymce/plugins/hr/index"),e("node_modules/tinymce/plugins/pagebreak/index"),e("node_modules/tinymce/plugins/spellchecker/index"),e("node_modules/tinymce/plugins/visualchars/index"),e("node_modules/tinymce/plugins/template/index"),e("node_modules/tinymce/plugins/nonbreaking/index"),e("node_modules/tinymce/plugins/emoticons/index"),e("node_modules/tinymce/plugins/emoticons/js/emojis");var r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elementRef=o.default.createRef(),t}return n.__extends(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.locale;this.config=n.__assign(n.__assign({inline:!1,skin:!1,content_css:!1,height:400,language:t&&"zh-cn"!==t?"en":"zh_CN",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","table emoticons template paste help"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | help",menu:{file:{title:"File",items:"newdocument restoredraft | preview | print "},edit:{title:"Edit",items:"undo redo | cut copy paste | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen"},insert:{title:"Insert",items:"image link media 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 | forecolor backcolor | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | code wordcount"},table:{title:"Table",items:"inserttable | cell row column | tableprops deletetable"},help:{title:"Help",items:"help"}},paste_data_images:!0},this.props.config),{target:this.elementRef.current,readOnly:this.props.disabled,setup:function(t){e.editor=t,t.on("init",function(n){e.initEditor(n,t)})}}),i.default.init(this.config)},t.prototype.componentDidUpdate=function(e){var t,n=this.props;n.model!==e.model&&n.model!==this.currentContent&&(null===(t=this.editor)||void 0===t?void 0:t.setContent(n.model||""))},t.prototype.componentWillUnmount=function(){i.default.remove(this.editor)},t.prototype.initEditor=function(e,t){var n=this,o=this.props,i=o.model,r=o.onModelChange,l=o.outputFormat,a=o.onFocus,s=o.onBlur,d=i||"";t.setContent(d),r&&t.on("change keyup setcontent",function(){var e=t.getContent({format:l});e!==n.currentContent&&(n.currentContent=e,r(e))}),a&&t.on("focus",a),s&&t.on("blur",s)},t.prototype.render=function(){return o.default.createElement("textarea",{ref:this.elementRef})},t.defaultProps={outputFormat:"html"},t}(o.default.Component);t.default=r,i.default.addI18n("zh_CN",{Redo:"重做",Undo:"撤销",Cut:"剪切",Copy:"复制",Paste:"粘贴","Select all":"全选","New document":"新文件",Ok:"确定",Cancel:"取消","Visual aids":"网格线",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Superscript:"上标",Subscript:"下标","Clear formatting":"清除格式","Align left":"左边对齐","Align center":"中间对齐","Align right":"右边对齐",Justify:"两端对齐","Bullet list":"项目符号","Numbered list":"编号列表","Decrease indent":"减少缩进","Increase indent":"增加缩进",Close:"关闭",Formats:"格式","Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.":"你的浏览器不支持打开剪贴板请使用Ctrl+X/C/V等快捷键。",Headers:"标题","Header 1":"标题1","Header 2":"标题2","Header 3":"标题3","Header 4":"标题4","Header 5":"标题5","Header 6":"标题6",Headings:"标题","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4","Heading 5":"标题5","Heading 6":"标题6",Preformatted:"预先格式化的",Div:"Div",Pre:"Pre",Code:"代码",Paragraph:"段落",Blockquote:"引文区块",Inline:"文本",Blocks:"基块","Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.":"当前为纯文本粘贴模式,再次点击可以回到普通粘贴模式。",Fonts:"字体","Font Sizes":"字号",Class:"类型","Browse for an image":"浏览图像",OR:"或","Drop an image here":"拖放一张图像至此",Upload:"上传",Block:"块",Align:"对齐",Default:"默认",Circle:"空心圆",Disc:"实心圆",Square:"方块","Lower Alpha":"小写英文字母","Lower Greek":"小写希腊字母","Lower Roman":"小写罗马字母","Upper Alpha":"大写英文字母","Upper Roman":"大写罗马字母","Anchor...":"锚点...",Name:"名称",Id:"标识符","Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.":"标识符应该以字母开头,后跟字母、数字、破折号、点、冒号或下划线。","You have unsaved changes are you sure you want to navigate away?":"你还有文档尚未保存,确定要离开?","Restore last draft":"恢复上次的草稿","Special character...":"特殊字符...","Source code":"源代码","Insert/Edit code sample":"插入/编辑代码示例",Language:"语言","Code sample...":"示例代码...","Color Picker":"选色器",R:"R",G:"G",B:"B","Left to right":"从左到右","Right to left":"从右到左","Emoticons...":"表情符号...","Metadata and Document Properties":"元数据和文档属性",Title:"标题",Keywords:"关键词",Description:"描述",Robots:"机器人",Author:"作者",Encoding:"编码",Fullscreen:"全屏",Action:"操作",Shortcut:"快捷键",Help:"帮助",Address:"地址","Focus to menubar":"移动焦点到菜单栏","Focus to toolbar":"移动焦点到工具栏","Focus to element path":"移动焦点到元素路径","Focus to contextual toolbar":"移动焦点到上下文菜单","Insert link (if link plugin activated)":"插入链接 (如果链接插件已激活)","Save (if save plugin activated)":"保存(如果保存插件已激活)","Find (if searchreplace plugin activated)":"查找(如果查找替换插件已激活)","Plugins installed ({0}):":"已安装插件 ({0}):","Premium plugins:":"优秀插件:","Learn more...":"了解更多...","You are using {0}":"你正在使用 {0}",Plugins:"插件","Handy Shortcuts":"快捷键","Horizontal line":"水平分割线","Insert/edit image":"插入/编辑图片","Image description":"图片描述",Source:"地址",Dimensions:"大小","Constrain proportions":"保持纵横比",General:"普通",Advanced:"高级",Style:"样式","Vertical space":"垂直边距","Horizontal space":"水平边距",Border:"边框","Insert image":"插入图片","Image...":"图片...","Image list":"图片列表","Rotate counterclockwise":"逆时针旋转","Rotate clockwise":"顺时针旋转","Flip vertically":"垂直翻转","Flip horizontally":"水平翻转","Edit image":"编辑图片","Image options":"图片选项","Zoom in":"放大","Zoom out":"缩小",Crop:"裁剪",Resize:"调整大小",Orientation:"方向",Brightness:"亮度",Sharpen:"锐化",Contrast:"对比度","Color levels":"颜色层次",Gamma:"伽马值",Invert:"反转",Apply:"应用",Back:"后退","Insert date/time":"插入日期/时间","Date/time":"日期/时间","Insert/Edit Link":"插入/编辑链接","Insert/edit link":"插入/编辑链接","Text to display":"显示文字",Url:"地址","Open link in...":"链接打开位置...","Current window":"当前窗口",None:"无","New window":"在新窗口打开","Remove link":"删除链接",Anchors:"锚点","Link...":"链接...","Paste or type a link":"粘贴或输入链接","The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?":"你所填写的URL地址为邮件地址需要加上mailto:前缀吗?","The URL you entered seems to be an external link. Do you want to add the required http:// prefix?":"你所填写的URL地址属于外部链接需要加上http://:前缀吗?","Link list":"链接列表","Insert video":"插入视频","Insert/edit video":"插入/编辑视频","Insert/edit media":"插入/编辑媒体","Alternative source":"镜像","Alternative source URL":"替代来源网址","Media poster (Image URL)":"封面(图片地址)","Paste your embed code below:":"将内嵌代码粘贴在下面:",Embed:"内嵌","Media...":"多媒体...","Nonbreaking space":"不间断空格","Page break":"分页符","Paste as text":"粘贴为文本",Preview:"预览","Print...":"打印...",Save:"保存",Find:"查找","Replace with":"替换为",Replace:"替换","Replace all":"全部替换",Previous:"上一个",Next:"下一个","Find and replace...":"查找并替换...","Could not find the specified string.":"未找到搜索内容.","Match case":"区分大小写","Find whole words only":"全字匹配","Spell check":"拼写检查",Ignore:"忽略","Ignore all":"全部忽略",Finish:"完成","Add to Dictionary":"添加到字典","Insert table":"插入表格","Table properties":"表格属性","Delete table":"删除表格",Cell:"单元格",Row:"行",Column:"列","Cell properties":"单元格属性","Merge cells":"合并单元格","Split cell":"拆分单元格","Insert row before":"在上方插入","Insert row after":"在下方插入","Delete row":"删除行","Row properties":"行属性","Cut row":"剪切行","Copy row":"复制行","Paste row before":"粘贴到上方","Paste row after":"粘贴到下方","Insert column before":"在左侧插入","Insert column after":"在右侧插入","Delete column":"删除列",Cols:"列",Rows:"行",Width:"宽",Height:"高","Cell spacing":"单元格外间距","Cell padding":"单元格内边距","Show caption":"显示标题",Left:"左对齐",Center:"居中",Right:"右对齐","Cell type":"单元格类型",Scope:"范围",Alignment:"对齐方式","H Align":"水平对齐","V Align":"垂直对齐",Top:"顶部对齐",Middle:"垂直居中",Bottom:"底部对齐","Header cell":"表头单元格","Row group":"行组","Column group":"列组","Row type":"行类型",Header:"表头",Body:"表体",Footer:"表尾","Border color":"边框颜色","Insert template...":"插入模板...",Templates:"模板",Template:"模板","Text color":"文字颜色","Background color":"背景色","Custom...":"自定义...","Custom color":"自定义颜色","No color":"无","Remove color":"移除颜色","Table of Contents":"内容列表","Show blocks":"显示区块边框","Show invisible characters":"显示不可见字符","Word count":"字数",Count:"计数",Document:"文档",Selection:"选择",Words:"单词","Words: {0}":"字数:{0}","{0} words":"{0} 字",File:"文件",Edit:"编辑",Insert:"插入",View:"视图",Format:"格式",Table:"表格",Tools:"工具","Powered by {0}":"由{0}驱动","Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help":"在编辑区按ALT-F9打开菜单按ALT-F10打开工具栏按ALT-0查看帮助","Image title":"图片标题","Border width":"边框宽度","Border style":"边框样式",Error:"错误",Warn:"警告",Valid:"有效","To open the popup, press Shift+Enter":"按Shitf+Enter键打开对话框","Rich Text Area. Press ALT-0 for help.":"编辑区。按Alt+0键打开帮助。","System Font":"系统字体","Failed to upload image: {0}":"图片上传失败: {0}","Failed to load plugin: {0} from url {1}":"插件加载失败: {0} 来自链接 {1}","Failed to load plugin url: {0}":"插件加载失败 链接: {0}","Failed to initialize plugin: {0}":"插件初始化失败: {0}",example:"示例",Search:"搜索",All:"全部",Currency:"货币",Text:"文字",Quotations:"引用",Mathematical:"数学","Extended Latin":"拉丁语扩充",Symbols:"符号",Arrows:"箭头","User Defined":"自定义","dollar sign":"美元符号","currency sign":"货币符号","euro-currency sign":"欧元符号","colon sign":"冒号","cruzeiro sign":"克鲁赛罗币符号","french franc sign":"法郎符号","lira sign":"里拉符号","mill sign":"密尔符号","naira sign":"奈拉符号","peseta sign":"比塞塔符号","rupee sign":"卢比符号","won sign":"韩元符号","new sheqel sign":"新谢克尔符号","dong sign":"越南盾符号","kip sign":"老挝基普符号","tugrik sign":"图格里克符号","drachma sign":"德拉克马符号","german penny symbol":"德国便士符号","peso sign":"比索符号","guarani sign":"瓜拉尼符号","austral sign":"澳元符号","hryvnia sign":"格里夫尼亚符号","cedi sign":"塞地符号","livre tournois sign":"里弗弗尔符号","spesmilo sign":"spesmilo符号","tenge sign":"坚戈符号","indian rupee sign":"印度卢比","turkish lira sign":"土耳其里拉","nordic mark sign":"北欧马克","manat sign":"马纳特符号","ruble sign":"卢布符号","yen character":"日元字样","yuan character":"人民币元字样","yuan character, in hong kong and taiwan":"元字样(港台地区)","yen/yuan character variant one":"元字样(大写)","Loading emoticons...":"加载表情符号...","Could not load emoticons":"不能加载表情符号",People:"人类","Animals and Nature":"动物和自然","Food and Drink":"食物和饮品",Activity:"活动","Travel and Places":"旅游和地点",Objects:"物件",Flags:"旗帜",Characters:"字符","Characters (no spaces)":"字符(无空格)","{0} characters":"{0} 个字符","Error: Form submit field collision.":"错误: 表单提交字段冲突。","Error: No form element found.":"错误: 没有表单控件。",Update:"更新","Color swatch":"颜色样本",Turquoise:"青绿色",Green:"绿色",Blue:"蓝色",Purple:"紫色","Navy Blue":"海军蓝","Dark Turquoise":"深蓝绿色","Dark Green":"深绿色","Medium Blue":"中蓝色","Medium Purple":"中紫色","Midnight Blue":"深蓝色",Yellow:"黄色",Orange:"橙色",Red:"红色","Light Gray":"浅灰色",Gray:"灰色","Dark Yellow":"暗黄色","Dark Orange":"深橙色","Dark Red":"深红色","Medium Gray":"中灰色","Dark Gray":"深灰色","Light Green":"浅绿色","Light Yellow":"浅黄色","Light Red":"浅红色","Light Purple":"浅紫色","Light Blue":"浅蓝色","Dark Purple":"深紫色","Dark Blue":"深蓝色",Black:"黑色",White:"白色","Switch to or from fullscreen mode":"切换全屏模式","Open help dialog":"打开帮助对话框",history:"历史",styles:"样式",formatting:"格式化",alignment:"对齐",indentation:"缩进","permanent pen":"记号笔",comments:"备注","Format Painter":"格式刷","Insert/edit iframe":"插入/编辑框架",Capitalization:"大写",lowercase:"小写",UPPERCASE:"大写","Title Case":"首字母大写","Permanent Pen Properties":"永久笔属性","Permanent pen properties...":"永久笔属性...",Font:"字体",Size:"字号","More...":"更多...","Spellcheck Language":"拼写检查语言","Select...":"选择...",Preferences:"首选项",Yes:"是",No:"否","Keyboard Navigation":"键盘指引",Version:"版本",Anchor:"锚点","Special character":"特殊符号","Code sample":"代码示例",Color:"颜色",Emoticons:"表情","Document properties":"文档属性",Image:"图片","Insert link":"插入链接",Target:"打开方式",Link:"链接",Poster:"封面",Media:"媒体",Print:"打印",Prev:"上一个","Find and replace":"查找和替换","Whole words":"全字匹配",Spellcheck:"拼写检查",Caption:"标题","Insert template":"插入模板"})});