@fly-vue/lcdp-iview 1.7.5 → 1.7.6
Sign up to get free protection for your applications and to get access to all the features.
- package/@types/module/action-nodes/impl/http.d.ts +4 -0
- package/@types/module/action-nodes/service-type-transport.d.ts +6 -1
- package/@types/module/components/attribute/designer/prop-value-editor/var-input/index.vue.d.ts +3 -3
- package/@types/module/components/components/iam/lib/query-methods-builder.d.ts +5 -2
- package/@types/module/components/components/iam/mixins/build-query-methods.d.ts +0 -19
- package/@types/module/components/for-designer/event-container/channel.vue.d.ts +30 -0
- package/@types/module/components/for-designer/index.d.ts +3 -0
- package/@types/module/components/for-renderer/data-exporter/csv.d.ts +1 -0
- package/@types/module/components/for-renderer/data-exporter/export-csv.d.ts +1 -0
- package/@types/module/components/for-renderer/data-exporter/index.vue.d.ts +62 -0
- package/@types/module/components/for-renderer/data-exporter/types.d.ts +9 -0
- package/@types/module/components/for-renderer/event-container/channel.vue.d.ts +41 -0
- package/@types/module/components/for-renderer/event-container/context.d.ts +48 -0
- package/@types/module/components/for-renderer/event-container/form-context.d.ts +9 -0
- package/@types/module/components/for-renderer/event-container/form-dispatcher.vue.d.ts +24 -0
- package/@types/module/components/for-renderer/event-container/form-receiver.vue.d.ts +51 -0
- package/@types/module/components/for-renderer/event-container/index.d.ts +3 -0
- package/@types/module/components/for-renderer/event-container/use-channel.d.ts +4 -0
- package/@types/module/components/for-renderer/event-container/use-form.d.ts +10 -0
- package/@types/module/components/for-renderer/excel-importer/failed-list.vue.d.ts +33 -0
- package/@types/module/components/for-renderer/excel-importer/index.vue.d.ts +166 -0
- package/@types/module/components/for-renderer/excel-importer/successful-list.vue.d.ts +22 -0
- package/@types/module/components/for-renderer/excel-importer/test-data.d.ts +15 -0
- package/@types/module/components/for-renderer/excel-importer/to-import-list.vue.d.ts +29 -0
- package/@types/module/components/for-renderer/excel-importer/types.d.ts +17 -0
- package/@types/module/components/for-renderer/excel-importer/use-check-all.d.ts +4 -0
- package/@types/module/components/for-renderer/excel-importer/use-pager.d.ts +6 -0
- package/@types/module/components/for-renderer/excel-importer/use-records-handler.d.ts +34 -0
- package/@types/module/components/for-renderer/excel-importer/use-urls.d.ts +5 -0
- package/@types/module/components/for-renderer/index.d.ts +5 -0
- package/@types/module/components/for-renderer/inline-renderer/index.vue.d.ts +13 -5
- package/@types/module/components/index.d.ts +118 -69
- package/@types/module/components/utils.d.ts +8 -0
- package/@types/module/index.d.ts +1 -0
- package/@types/module/schema-extend/components/excel-importer.d.ts +16 -0
- package/@types/module/schema-extend/components/form.d.ts +7 -7
- package/@types/module/schema-extend/components/iv-table.d.ts +5 -0
- package/@types/module/schema-extend/components/layout.d.ts +1 -7
- package/@types/module/schema-extend/components/lcdp-event-receiver.d.ts +17 -0
- package/@types/module/schema-extend/components/others.d.ts +7 -0
- package/@types/module/schema-extend/components/tinymce.d.ts +27 -0
- package/@types/module/schema-extend/components/tree.d.ts +3 -0
- package/@types/module/schema-extend/components/upload.d.ts +5 -0
- package/bingo-builder-manifest.json +15 -13
- package/index.js +4 -4
- package/modules/fly_vue_lcdp_iview/assets/css/app.css +2 -2
- package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-attrcomponent.c8863f62.css +1 -0
- package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-component-ice.a6489154.css +1 -0
- package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-component.cb2d58ef.css +1 -0
- package/modules/fly_vue_lcdp_iview/assets/css/vendors~lcdp-iview-component-ice.e98f8f0c.css +1 -0
- package/modules/fly_vue_lcdp_iview/chunk-732b533d.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/dll.js +10 -10
- package/modules/fly_vue_lcdp_iview/lcdp-designer-components.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/lcdp-iview-attrcomponent.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/lcdp-iview-basecomponent.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/lcdp-iview-component-ice.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/{lcdp-iview-component.e6ed3307f2094e1adbff.js → lcdp-iview-component-region.084b452e18e2a435fae5.js} +2 -2
- package/modules/fly_vue_lcdp_iview/lcdp-iview-component.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/lcdp-renderer-components.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/vendors~lcdp-iview-component-ice.084b452e18e2a435fae5.js +1 -0
- package/package.json +16 -15
- package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-attrcomponent.5b64e92e.css +0 -1
- package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-component.28c2f15b.css +0 -1
- package/modules/fly_vue_lcdp_iview/chunk-732b533d.e6ed3307f2094e1adbff.js +0 -1
- package/modules/fly_vue_lcdp_iview/lcdp-designer-components.e6ed3307f2094e1adbff.js +0 -1
- package/modules/fly_vue_lcdp_iview/lcdp-iview-attrcomponent.e6ed3307f2094e1adbff.js +0 -1
- package/modules/fly_vue_lcdp_iview/lcdp-iview-basecomponent.e6ed3307f2094e1adbff.js +0 -1
- package/modules/fly_vue_lcdp_iview/lcdp-renderer-components.e6ed3307f2094e1adbff.js +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
(window["webpackJsonp_$fly_vue_lcdp_iview_"]=window["webpackJsonp_$fly_vue_lcdp_iview_"]||[]).push([["vendors~lcdp-iview-component-ice"],{"0342":function(e,t,n){},"07d1":function(e,t,n){n("94ce")},"07d7":function(e,t,n){n("a8b8")},"0a9d":function(e,t,n){n("69a4")},2401:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},o=n("string"),i=n("object"),a=n("array"),c=r("boolean"),u=r("function"),s=r("number"),l=function(){},f=function(e){return function(){return e}},d=function(e){return e},m=function(e,t){return e===t},g=function(e){return function(t){return!e(t)}},p=f(!1),h=f(!0),v=function(){return y},y=function(){var e=function(e){return e()},t=d,n={fold:function(e,t){return e()},isSome:p,isNone:h,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:t,orThunk:e,map:v,each:l,bind:v,exists:p,forall:h,filter:function(){return v()},toArray:function(){return[]},toString:f("none()")};return n}(),b=function(e){var t=f(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:h,isNone:p,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return b(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:y},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},w=function(e){return null===e||void 0===e?y:b(e)},k={some:b,none:v,from:w},_=Array.prototype.slice,x=Array.prototype.push,z=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},C=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},S=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},T=function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],o=[],i=0,a=e.length;i<a;i++){var c=e[i],u=t(c);u!==n&&(r.push(o),o=[]),n=u,o.push(c)}return 0!==o.length&&r.push(o),r},O=function(e,t,n){return C(e,(function(e,r){n=t(n,e,r)})),n},E=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return k.some(i);if(n(i,r))break}return k.none()},A=function(e,t){return E(e,t,p)},D=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);x.apply(t,e[n])}return t},M=function(e,t){return D(z(e,t))},R=function(e){var t=_.call(e,0);return t.reverse(),t},N=function(e,t){return t>=0&&t<e.length?k.some(e[t]):k.none()},B=function(e){return N(e,0)},P=function(e){return N(e,e.length-1)},L=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return k.none()},I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},I.apply(this,arguments)};function H(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var F=function(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}},j=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),c=a||r("(pointer:coarse)"),u=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!s&&!u&&!l;return{isiPad:f(o),isiPhone:f(i),isTablet:f(u),isPhone:f(s),isTouch:f(c),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:f(l),isDesktop:f(d)}},V=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},U=function(e,t){var n=V(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return $(r(1),r(2))},q=function(e,t){var n=String(t).toLowerCase();return 0===e.length?W():U(e,n)},W=function(){return $(0,0)},$=function(e,t){return{major:e,minor:t}},G={nu:$,detect:q,unknown:W},K=function(e,t){return L(t.brands,(function(t){var n=t.brand.toLowerCase();return A(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:G.nu(parseInt(t.version,10),0)}}))}))},X=function(e,t){var n=String(t).toLowerCase();return A(e,(function(e){return e.search(n)}))},Y=function(e,t){return X(e,t).map((function(e){var n=G.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},J=function(e,t){return X(e,t).map((function(e){var n=G.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Z=function(e,t){return-1!==e.indexOf(t)},Q=function(e){return function(t){return t.replace(e,"")}},ee=Q(/^\s+|\s+$/g),te=function(e){return e.length>0},ne=function(e){return!te(e)},re=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,oe=function(e){return function(t){return Z(t,e)}},ie=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Z(e,"edge/")&&Z(e,"chrome")&&Z(e,"safari")&&Z(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,re],search:function(e){return Z(e,"chrome")&&!Z(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Z(e,"msie")||Z(e,"trident")}},{name:"Opera",versionRegexes:[re,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:oe("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:oe("firefox")},{name:"Safari",versionRegexes:[re,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Z(e,"safari")||Z(e,"mobile/"))&&Z(e,"applewebkit")}}],ae=[{name:"Windows",search:oe("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Z(e,"iphone")||Z(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:oe("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:oe("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:oe("linux"),versionRegexes:[]},{name:"Solaris",search:oe("sunos"),versionRegexes:[]},{name:"FreeBSD",search:oe("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:oe("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ce={browsers:f(ie),oses:f(ae)},ue="Edge",se="Chrome",le="IE",fe="Opera",de="Firefox",me="Safari",ge=function(){return pe({current:void 0,version:G.unknown()})},pe=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(ue),isChrome:r(se),isIE:r(le),isOpera:r(fe),isFirefox:r(de),isSafari:r(me)}},he={unknown:ge,nu:pe,edge:f(ue),chrome:f(se),ie:f(le),opera:f(fe),firefox:f(de),safari:f(me)},ve="Windows",ye="iOS",be="Android",we="Linux",ke="OSX",_e="Solaris",xe="FreeBSD",ze="ChromeOS",Ce=function(){return Se({current:void 0,version:G.unknown()})},Se=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(ve),isiOS:r(ye),isAndroid:r(be),isOSX:r(ke),isLinux:r(we),isSolaris:r(_e),isFreeBSD:r(xe),isChromeOS:r(ze)}},Te={unknown:Ce,nu:Se,windows:f(ve),ios:f(ye),android:f(be),linux:f(we),osx:f(ke),solaris:f(_e),freebsd:f(xe),chromeos:f(ze)},Oe=function(e,t,n){var r=ce.browsers(),o=ce.oses(),i=t.bind((function(e){return K(r,e)})).orThunk((function(){return Y(r,e)})).fold(he.unknown,he.nu),a=J(o,e).fold(Te.unknown,Te.nu),c=j(a,i,e,n);return{browser:i,os:a,deviceType:c}},Ee={detect:Oe},Ae=function(e){return window.matchMedia(e).matches},De=F((function(){return Ee.detect(navigator.userAgent,k.from(navigator.userAgentData),Ae)})),Me=function(){return De()},Re=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Ne=function(e,t){return Re(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Be=1,Pe=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return He(r.childNodes[0])},Le=function(e,t){var n=t||document,r=n.createElement(e);return He(r)},Ie=function(e,t){var n=t||document,r=n.createTextNode(e);return He(r)},He=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},Fe=function(e,t,n){return k.from(e.dom.elementFromPoint(t,n)).map(He)},je={fromHtml:Pe,fromTag:Le,fromText:Ie,fromDom:He,fromPoint:Fe},Ve=function(e,t){var n=e.dom;if(n.nodeType!==Be)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Ue=function(e,t){return e.dom===t.dom},qe=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},We=function(e,t){return Ne(e.dom,t.dom)},$e=function(e,t){return Me().browser.isIE()?We(e,t):qe(e,t)},Ge=Ve,Ke=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Xe=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Ye=tinymce.util.Tools.resolve("tinymce.util.VK"),Je=Object.keys,Ze=function(e,t){for(var n=Je(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},Qe=function(e){return function(t,n){e[n]=t}},et=function(e,t,n,r){var o={};return Ze(e,(function(e,o){(t(e,o)?n:r)(e,o)})),o},tt=function(e,t){var n={};return et(e,t,Qe(n),l),n};"undefined"!==typeof window?window:Function("return this;")();var nt=function(e){var t=e.dom.nodeName;return t.toLowerCase()},rt=function(e){return e.dom.nodeType},ot=function(e){return function(t){return rt(t)===e}},it=ot(Be),at=function(e){return function(t){return it(t)&&nt(t)===e}},ct=function(e,t,n){if(!(o(n)||c(n)||s(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},ut=function(e,t){var n=e.dom;Ze(t,(function(e,t){ct(n,t,e)}))},st=function(e){return O(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},lt=function(e){return k.from(e.dom.parentNode).map(je.fromDom)},ft=function(e){return z(e.dom.childNodes,je.fromDom)},dt=function(e,t){var n=e.dom.childNodes;return k.from(n[t]).map(je.fromDom)},mt=function(e){return dt(e,0)},gt=function(e){return dt(e,e.dom.childNodes.length-1)},pt=function(e,t){var n=lt(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},ht=function(e,t){e.dom.appendChild(t.dom)},vt=function(e,t){C(t,(function(t){pt(e,t)}))},yt=function(e,t){C(t,(function(t){ht(e,t)}))},bt=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},wt=function(e,t){return je.fromDom(e.dom.cloneNode(t))},kt=function(e){return wt(e,!0)},_t=function(e,t){var n=je.fromTag(t),r=st(e);return ut(n,r),n},xt=function(e,t){var n=_t(e,t);pt(e,n);var r=ft(e);return yt(n,r),bt(e),n},zt=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Ct=tinymce.util.Tools.resolve("tinymce.util.Tools"),St=function(e){return function(t){return t&&t.nodeName.toLowerCase()===e}},Tt=function(e){return function(t){return t&&e.test(t.nodeName)}},Ot=function(e){return e&&3===e.nodeType},Et=Tt(/^(OL|UL|DL)$/),At=Tt(/^(OL|UL)$/),Dt=St("ol"),Mt=Tt(/^(LI|DT|DD)$/),Rt=Tt(/^(DT|DD)$/),Nt=Tt(/^(TH|TD)$/),Bt=St("br"),Pt=function(e){return e.parentNode.firstChild===e},Lt=function(e,t){return t&&!!e.schema.getTextBlockElements()[t.nodeName]},It=function(e,t){return e&&e.nodeName in t},Ht=function(e,t){return!!Bt(t)&&(e.isBlock(t.nextSibling)&&!Bt(t.previousSibling))},Ft=function(e,t,n){var r=e.isEmpty(t);return!(n&&e.select("span[data-mce-type=bookmark]",t).length>0)&&r},jt=function(e,t){return e.isChildOf(t,e.getRoot())},Vt=function(e){return e.getParam("lists_indent_on_tab",!0)},Ut=function(e){var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},qt=function(e){return e.getParam("forced_root_block_attrs",{})},Wt=function(e,t){var n,r,o,i=e.dom,a=e.schema.getBlockElements(),c=i.createFragment(),u=Ut(e);if(u&&(r=i.create(u),r.tagName===u.toUpperCase()&&i.setAttribs(r,qt(e)),It(t.firstChild,a)||c.appendChild(r)),t)while(n=t.firstChild){var s=n.nodeName;o||"SPAN"===s&&"bookmark"===n.getAttribute("data-mce-type")||(o=!0),It(n,a)?(c.appendChild(n),r=null):u?(r||(r=i.create(u),c.appendChild(r)),r.appendChild(n)):c.appendChild(n)}return u?o||r.appendChild(i.create("br",{"data-mce-bogus":"1"})):c.appendChild(i.create("br")),c},$t=zt.DOM,Gt=function(e,t,n){var r=function(e){Ct.each(o,(function(t){e.parentNode.insertBefore(t,n.parentNode)})),$t.remove(e)},o=$t.select('span[data-mce-type="bookmark"]',t),i=Wt(e,n),a=$t.createRng();a.setStartAfter(n),a.setEndAfter(t);for(var c=a.extractContents(),u=c.firstChild;u;u=u.firstChild)if("LI"===u.nodeName&&e.dom.isEmpty(u)){$t.remove(u);break}e.dom.isEmpty(c)||$t.insertAfter(c,t),$t.insertAfter(i,t),Ft(e.dom,n.parentNode)&&r(n.parentNode),$t.remove(n),Ft(e.dom,t)&&$t.remove(t)},Kt=at("dd"),Xt=at("dt"),Yt=function(e,t){Kt(t)?xt(t,"dt"):Xt(t)&<(t).each((function(n){return Gt(e,n.dom,t.dom)}))},Jt=function(e){Xt(e)&&xt(e,"dd")},Zt=function(e,t,n){C(n,"Indent"===t?Jt:function(t){return Yt(e,t)})},Qt=function(e,t){if(Ot(e))return{container:e,offset:t};var n=Ke.getNode(e,t);return Ot(n)?{container:n,offset:t>=e.childNodes.length?n.data.length:0}:n.previousSibling&&Ot(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&Ot(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:e,offset:t}},en=function(e){var t=e.cloneRange(),n=Qt(e.startContainer,e.startOffset);t.setStart(n.container,n.offset);var r=Qt(e.endContainer,e.endOffset);return t.setEnd(r.container,r.offset),t},tn=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),nn=function(e,t){var n=t||e.selection.getStart(!0);return e.dom.getParent(n,"OL,UL,DL",ln(e,n))},rn=function(e,t){return e&&1===t.length&&t[0]===e},on=function(e){return S(e.querySelectorAll("ol,ul,dl"),Et)},an=function(e){var t=nn(e),n=e.selection.getSelectedBlocks();return rn(t,n)?on(t):S(n,(function(e){return Et(e)&&t!==e}))},cn=function(e,t){var n=Ct.map(t,(function(t){var n=e.dom.getParent(t,"li,dd,dt",ln(e,t));return n||t}));return tn.unique(n)},un=function(e){var t=e.selection.getSelectedBlocks();return S(cn(e,t),Mt)},sn=function(e){return S(un(e),Rt)},ln=function(e,t){var n=e.dom.getParents(t,"TD,TH");return n.length>0?n[0]:e.getBody()},fn=function(e,t){var n=e.dom.getParents(t,"ol,ul",ln(e,t));return P(n)},dn=function(e){var t=fn(e,e.selection.getStart()),n=S(e.selection.getSelectedBlocks(),At);return t.toArray().concat(n)},mn=function(e){var t=dn(e);return gn(e,t)},gn=function(e,t){var n=z(t,(function(t){return fn(e,t).getOr(t)}));return tn.unique(n)},pn=function(e,t,n){return void 0===n&&(n=m),e.exists((function(e){return n(e,t)}))},hn=function(e,t,n){return e.isSome()&&t.isSome()?k.some(n(e.getOrDie(),t.getOrDie())):k.none()},vn=function(e,t){var n=t||document,r=n.createDocumentFragment();return C(e,(function(e){r.appendChild(e.dom)})),je.fromDom(r)},yn=function(e,t,n){return e.fire("ListMutation",{action:t,element:n})},bn=function(e){return void 0!==e.style&&u(e.style.getPropertyValue)},wn=function(e,t,n){if(!o(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);bn(e)&&e.style.setProperty(t,n)},kn=function(e,t,n){var r=e.dom;wn(r,t,n)},_n=function(e,t){ht(e.item,t.list)},xn=function(e){for(var t=1;t<e.length;t++)_n(e[t-1],e[t])},zn=function(e,t){hn(P(e),B(t),_n)},Cn=function(e,t){var n={list:je.fromTag(t,e),item:je.fromTag("li",e)};return ht(n.list,n.item),n},Sn=function(e,t,n){for(var r=[],o=0;o<n;o++)r.push(Cn(e,t.listType));return r},Tn=function(e,t){for(var n=0;n<e.length-1;n++)kn(e[n].item,"list-style-type","none");P(e).each((function(e){ut(e.list,t.listAttributes),ut(e.item,t.itemAttributes),yt(e.item,t.content)}))},On=function(e,t){nt(e.list)!==t.listType&&(e.list=xt(e.list,t.listType)),ut(e.list,t.listAttributes)},En=function(e,t,n){var r=je.fromTag("li",e);return ut(r,t),yt(r,n),r},An=function(e,t){ht(e.list,t),e.item=t},Dn=function(e,t,n){var r=t.slice(0,n.depth);return P(r).each((function(t){var r=En(e,n.itemAttributes,n.content);An(t,r),On(t,n)})),r},Mn=function(e,t,n){var r=Sn(e,n,n.depth-t.length);return xn(r),Tn(r,n),zn(t,r),t.concat(r)},Rn=function(e,t){var n=O(t,(function(t,n){return n.depth>t.length?Mn(e,t,n):Dn(e,t,n)}),[]);return B(n).map((function(e){return e.list}))},Nn=function(e){return Ge(e,"OL,UL")},Bn=function(e){return mt(e).exists(Nn)},Pn=function(e){return gt(e).exists(Nn)},Ln=function(e){return e.depth>0},In=function(e){return e.isSelected},Hn=function(e){var t=ft(e),n=Pn(e)?t.slice(0,-1):t;return z(n,kt)},Fn=function(e,t,n){return lt(e).filter(it).map((function(r){return{depth:t,dirty:!1,isSelected:n,content:Hn(e),itemAttributes:st(e),listAttributes:st(r),listType:nt(r)}}))},jn=function(e,t){switch(e){case"Indent":t.depth++;break;case"Outdent":t.depth--;break;case"Flatten":t.depth=0}t.dirty=!0},Vn=function(e,t){e.listType=t.listType,e.listAttributes=I({},t.listAttributes)},Un=function(e){e.listAttributes=tt(e.listAttributes,(function(e,t){return"start"!==t}))},qn=function(e,t){var n=e[t].depth,r=function(e){return e.depth===n&&!e.dirty},o=function(e){return e.depth<n};return E(R(e.slice(0,t)),r,o).orThunk((function(){return E(e.slice(t+1),r,o)}))},Wn=function(e){return C(e,(function(t,n){qn(e,n).fold((function(){t.dirty&&Un(t)}),(function(e){return Vn(t,e)}))})),e},$n=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Gn=function(e,t,n,r){return mt(r).filter(Nn).fold((function(){t.each((function(e){Ue(e.start,r)&&n.set(!0)}));var o=Fn(r,e,n.get());t.each((function(e){Ue(e.end,r)&&n.set(!1)}));var i=gt(r).filter(Nn).map((function(r){return Kn(e,t,n,r)})).getOr([]);return o.toArray().concat(i)}),(function(r){return Kn(e,t,n,r)}))},Kn=function(e,t,n,r){return M(ft(r),(function(r){var o=Nn(r)?Kn:Gn,i=e+1;return o(i,t,n,r)}))},Xn=function(e,t){var n=$n(!1),r=0;return z(e,(function(e){return{sourceList:e,entries:Kn(r,t,n,e)}}))},Yn=function(e,t){var n=Wn(t);return z(n,(function(t){var n=vn(t.content);return je.fromDom(Wt(e,n.dom))}))},Jn=function(e,t){var n=Wn(t);return Rn(e.contentDocument,n).toArray()},Zn=function(e,t){return M(T(t,Ln),(function(t){var n=B(t).exists(Ln);return n?Jn(e,t):Yn(e,t)}))},Qn=function(e,t){C(S(e,In),(function(e){return jn(t,e)}))},er=function(e){var t=z(un(e),je.fromDom);return hn(A(t,g(Bn)),A(R(t),g(Bn)),(function(e,t){return{start:e,end:t}}))},tr=function(e,t,n){var r=Xn(t,er(e));C(r,(function(t){Qn(t.entries,n);var r=Zn(e,t.entries);C(r,(function(t){yn(e,"Indent"===n?"IndentList":"OutdentList",t.dom)})),vt(t.sourceList,r),bt(t.sourceList)}))},nr=function(e,t){var n=z(mn(e),je.fromDom),r=z(sn(e),je.fromDom),o=!1;if(n.length||r.length){var i=e.selection.getBookmark();tr(e,n,t),Zt(e,t,r),e.selection.moveToBookmark(i),e.selection.setRng(en(e.selection.getRng())),e.nodeChanged(),o=!0}return o},rr=function(e){return nr(e,"Indent")},or=function(e){return nr(e,"Outdent")},ir=function(e){return nr(e,"Flatten")},ar=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),cr=zt.DOM,ur=function(e){var t={},n=function(n){var r=e[n?"startContainer":"endContainer"],o=e[n?"startOffset":"endOffset"];if(1===r.nodeType){var i=cr.create("span",{"data-mce-type":"bookmark"});r.hasChildNodes()?(o=Math.min(o,r.childNodes.length-1),n?r.insertBefore(i,r.childNodes[o]):cr.insertAfter(i,r.childNodes[o])):r.appendChild(i),r=i,o=0}t[n?"startContainer":"endContainer"]=r,t[n?"startOffset":"endOffset"]=o};return n(!0),e.collapsed||n(),t},sr=function(e){var t=function(t){var n,r=function(e){var t=e.parentNode.firstChild,n=0;while(t){if(t===e)return n;1===t.nodeType&&"bookmark"===t.getAttribute("data-mce-type")||n++,t=t.nextSibling}return-1},o=n=e[t?"startContainer":"endContainer"],i=e[t?"startOffset":"endOffset"];o&&(1===o.nodeType&&(i=r(o),o=o.parentNode,cr.remove(n),!o.hasChildNodes()&&cr.isBlock(o)&&o.appendChild(cr.create("br"))),e[t?"startContainer":"endContainer"]=o,e[t?"startOffset":"endOffset"]=i)};t(!0),t();var n=cr.createRng();return n.setStart(e.startContainer,e.startOffset),e.endContainer&&n.setEnd(e.endContainer,e.endOffset),en(n)},lr=function(e){switch(e){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},fr=function(e){return/\btox\-/.test(e.className)},dr=function(e,t,n){var r=function(e){var r=E(e.parents,Et,Nt).filter((function(e){return e.nodeName===t&&!fr(e)})).isSome();n(r)},o=e.dom.getParents(e.selection.getNode());return r({parents:o}),e.on("NodeChange",r),function(){return e.off("NodeChange",r)}},mr=function(e,t,n){var r=n["list-style-type"]?n["list-style-type"]:null;e.setStyle(t,"list-style-type",r)},gr=function(e,t){Ct.each(t,(function(t,n){e.setAttribute(n,t)}))},pr=function(e,t,n){gr(t,n["list-attributes"]),Ct.each(e.select("li",t),(function(e){gr(e,n["list-item-attributes"])}))},hr=function(e,t,n){mr(e,t,n),pr(e,t,n)},vr=function(e,t,n){Ct.each(n,(function(n){var r;return e.setStyle(t,(r={},r[n]="",r))}))},yr=function(e,t,n,r){var o=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"];1===o.nodeType&&(o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o),!n&&Bt(o.nextSibling)&&(o=o.nextSibling);while(o.parentNode!==r){if(Lt(e,o))return o;if(/^(TD|TH)$/.test(o.parentNode.nodeName))return o;o=o.parentNode}return o},br=function(e,t,n){for(var r,o=[],i=e.dom,a=yr(e,t,!0,n),c=yr(e,t,!1,n),u=[],s=a;s;s=s.nextSibling)if(u.push(s),s===c)break;return Ct.each(u,(function(t){if(Lt(e,t))return o.push(t),void(r=null);if(i.isBlock(t)||Bt(t))return Bt(t)&&i.remove(t),void(r=null);var a=t.nextSibling;ar.isBookmarkNode(t)&&(Et(a)||Lt(e,a)||!a&&t.parentNode===n)?r=null:(r||(r=i.create("p"),t.parentNode.insertBefore(r,t),o.push(r)),r.appendChild(t))})),o},wr=function(e,t,n){var r=e.getStyle(t,"list-style-type"),o=n?n["list-style-type"]:"";return o=null===o?"":o,r===o},kr=function(e,t,n){var r=e.selection.getRng(),o="LI",i=ln(e,e.selection.getStart(!0)),a=e.dom;if("false"!==a.getContentEditable(e.selection.getNode())){t=t.toUpperCase(),"DL"===t&&(o="DT");var c=ur(r),u=br(e,r,i);Ct.each(u,(function(r){var i,c=r.previousSibling,u=r.parentNode;Mt(u)||(c&&Et(c)&&c.nodeName===t&&wr(a,c,n)?(i=c,r=a.rename(r,o),c.appendChild(r)):(i=a.create(t),r.parentNode.insertBefore(i,r),i.appendChild(r),r=a.rename(r,o)),vr(a,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),hr(a,i,n),Sr(e.dom,i))})),e.selection.setRng(sr(c))}},_r=function(e,t){return e&&t&&Et(e)&&e.nodeName===t.nodeName},xr=function(e,t,n){var r=e.getStyle(t,"list-style-type",!0),o=e.getStyle(n,"list-style-type",!0);return r===o},zr=function(e,t){return e.className===t.className},Cr=function(e,t,n){return _r(t,n)&&xr(e,t,n)&&zr(t,n)},Sr=function(e,t){var n,r;if(n=t.nextSibling,Cr(e,t,n)){while(r=n.firstChild)t.appendChild(r);e.remove(n)}if(n=t.previousSibling,Cr(e,t,n)){while(r=n.lastChild)t.insertBefore(r,t.firstChild);e.remove(n)}},Tr=function(e,t,n,r){if(t.nodeName!==n){var o=e.dom.rename(t,n);hr(e.dom,o,r),yn(e,lr(n),o)}else hr(e.dom,t,r),yn(e,lr(n),t)},Or=function(e,t,n,r,o){var i=Et(t);if(i&&t.nodeName===r&&!Er(o))ir(e);else{kr(e,r,o);var a=ur(e.selection.getRng()),c=i?H([t],n,!0):n;Ct.each(c,(function(t){Tr(e,t,r,o)})),e.selection.setRng(sr(a))}},Er=function(e){return"list-style-type"in e},Ar=function(e,t,n,r){if(t!==e.getBody())if(t)if(t.nodeName!==n||Er(r)||fr(t)){var o=ur(e.selection.getRng());hr(e.dom,t,r);var i=e.dom.rename(t,n);Sr(e.dom,i),e.selection.setRng(sr(o)),kr(e,n,r),yn(e,lr(n),i)}else ir(e);else kr(e,n,r),yn(e,lr(n),t)},Dr=function(e,t,n){var r=nn(e),o=an(e),a=i(n)?n:{};o.length>0?Or(e,r,o,t,a):Ar(e,r,t,a)},Mr=zt.DOM,Rr=function(e,t){var n=t.parentNode;if("LI"===n.nodeName&&n.firstChild===t){var r=n.previousSibling;r&&"LI"===r.nodeName?(r.appendChild(t),Ft(e,n)&&Mr.remove(n)):Mr.setStyle(n,"listStyleType","none")}if(Et(n)){r=n.previousSibling;r&&"LI"===r.nodeName&&r.appendChild(t)}},Nr=function(e,t){var n=Ct.grep(e.select("ol,ul",t));Ct.each(n,(function(t){Rr(e,t)}))},Br=function(e,t,n,r){var o=t.startContainer,i=t.startOffset;if(Ot(o)&&(n?i<o.data.length:i>0))return o;var a=e.schema.getNonEmptyElements();1===o.nodeType&&(o=Ke.getNode(o,i));var c=new Xe(o,r);n&&Ht(e.dom,o)&&c.next();while(o=c[n?"next":"prev2"]()){if("LI"===o.nodeName&&!o.hasChildNodes())return o;if(a[o.nodeName])return o;if(Ot(o)&&o.data.length>0)return o}},Pr=function(e,t){var n=t.childNodes;return 1===n.length&&!Et(n[0])&&e.isBlock(n[0])},Lr=function(e,t){Pr(e,t)&&e.remove(t.firstChild,!0)},Ir=function(e,t,n){var r,o=Pr(e,n)?n.firstChild:n;if(Lr(e,t),!Ft(e,t,!0))while(r=t.firstChild)o.appendChild(r)},Hr=function(e,t,n){var r,o=t.parentNode;if(jt(e,t)&&jt(e,n)){Et(n.lastChild)&&(r=n.lastChild),o===n.lastChild&&Bt(o.previousSibling)&&e.remove(o.previousSibling);var i=n.lastChild;i&&Bt(i)&&t.hasChildNodes()&&e.remove(i),Ft(e,n,!0)&&e.$(n).empty(),Ir(e,t,n),r&&n.appendChild(r);var a=$e(je.fromDom(n),je.fromDom(t)),c=a?e.getParents(t,Et,n):[];e.remove(t),C(c,(function(t){Ft(e,t)&&t!==e.getRoot()&&e.remove(t)}))}},Fr=function(e,t,n){e.dom.$(n).empty(),Hr(e.dom,t,n),e.selection.setCursorLocation(n,0)},jr=function(e,t,n,r){var o=e.dom;if(o.isEmpty(r))Fr(e,n,r);else{var i=ur(t);Hr(o,n,r),e.selection.setRng(sr(i))}},Vr=function(e,t,n,r){var o=ur(t);Hr(e.dom,n,r);var i=sr(o);e.selection.setRng(i)},Ur=function(e,t){var n=e.dom,r=e.selection,o=r.getStart(),i=ln(e,o),a=n.getParent(r.getStart(),"LI",i);if(a){var c=a.parentNode;if(c===e.getBody()&&Ft(n,c))return!0;var u=en(r.getRng()),s=n.getParent(Br(e,u,t,i),"LI",i);if(s&&s!==a)return e.undoManager.transact((function(){t?jr(e,u,s,a):Pt(a)?or(e):Vr(e,u,a,s)})),!0;if(!s&&!t&&0===u.startOffset&&0===u.endOffset)return e.undoManager.transact((function(){ir(e)})),!0}return!1},qr=function(e,t,n){var r=e.getParent(t.parentNode,e.isBlock,n);e.remove(t),r&&e.isEmpty(r)&&e.remove(r)},Wr=function(e,t){var n=e.dom,r=e.selection.getStart(),o=ln(e,r),i=n.getParent(r,n.isBlock,o);if(i&&n.isEmpty(i)){var a=en(e.selection.getRng()),c=n.getParent(Br(e,a,t,o),"LI",o);if(c)return e.undoManager.transact((function(){qr(n,i,o),Sr(n,c.parentNode),e.selection.select(c,!0),e.selection.collapse(t)})),!0}return!1},$r=function(e,t){return Ur(e,t)||Wr(e,t)},Gr=function(e){var t=e.selection.getStart(),n=ln(e,t),r=e.dom.getParent(t,"LI,DT,DD",n);return!!(r||un(e).length>0)&&(e.undoManager.transact((function(){e.execCommand("Delete"),Nr(e.dom,e.getBody())})),!0)},Kr=function(e,t){return e.selection.isCollapsed()?$r(e,t):Gr(e)},Xr=function(e){e.on("keydown",(function(t){t.keyCode===Ye.BACKSPACE?Kr(e,!1)&&t.preventDefault():t.keyCode===Ye.DELETE&&Kr(e,!0)&&t.preventDefault()}))},Yr=function(e){return{backspaceDelete:function(t){Kr(e,t)}}},Jr=function(e,t){var n=nn(e);e.undoManager.transact((function(){i(t.styles)&&e.dom.setStyles(n,t.styles),i(t.attrs)&&Ze(t.attrs,(function(t,r){return e.dom.setAttrib(n,r,t)}))}))},Zr=function(e){var t=R(ee(e).split("")),n=z(t,(function(e,t){var n=e.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,t)*n}));return O(n,(function(e,t){return e+t}),0)},Qr=function(e){if(e--,e<0)return"";var t=e%26,n=Math.floor(e/26),r=Qr(n),o=String.fromCharCode("A".charCodeAt(0)+t);return r+o},eo=function(e){return/^[A-Z]+$/.test(e)},to=function(e){return/^[a-z]+$/.test(e)},no=function(e){return/^[0-9]+$/.test(e)},ro=function(e){return no(e)?2:eo(e)?0:to(e)?1:ne(e)?3:4},oo=function(e){switch(ro(e)){case 2:return k.some({listStyleType:k.none(),start:e});case 0:return k.some({listStyleType:k.some("upper-alpha"),start:Zr(e).toString()});case 1:return k.some({listStyleType:k.some("lower-alpha"),start:Zr(e).toString()});case 3:return k.some({listStyleType:k.none(),start:""});case 4:return k.none()}},io=function(e){var t=parseInt(e.start,10);return pn(e.listStyleType,"upper-alpha")?Qr(t):pn(e.listStyleType,"lower-alpha")?Qr(t).toLowerCase():e.start},ao=function(e){var t=nn(e);Dt(t)&&e.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:io({start:e.dom.getAttrib(t,"start","1"),listStyleType:k.some(e.dom.getStyle(t,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var n=t.getData();oo(n.start).each((function(t){e.execCommand("mceListUpdate",!1,{attrs:{start:"1"===t.start?"":t.start},styles:{"list-style-type":t.listStyleType.getOr("")}})})),t.close()}})},co=function(e,t){return function(){var n=nn(e);return n&&n.nodeName===t}},uo=function(e){e.addCommand("mceListProps",(function(){ao(e)}))},so=function(e){e.on("BeforeExecCommand",(function(t){var n=t.command.toLowerCase();"indent"===n?rr(e):"outdent"===n&&or(e)})),e.addCommand("InsertUnorderedList",(function(t,n){Dr(e,"UL",n)})),e.addCommand("InsertOrderedList",(function(t,n){Dr(e,"OL",n)})),e.addCommand("InsertDefinitionList",(function(t,n){Dr(e,"DL",n)})),e.addCommand("RemoveList",(function(){ir(e)})),uo(e),e.addCommand("mceListUpdate",(function(t,n){i(n)&&Jr(e,n)})),e.addQueryStateHandler("InsertUnorderedList",co(e,"UL")),e.addQueryStateHandler("InsertOrderedList",co(e,"OL")),e.addQueryStateHandler("InsertDefinitionList",co(e,"DL"))},lo=function(e){e.on("keydown",(function(t){t.keyCode!==Ye.TAB||Ye.metaKeyPressed(t)||e.undoManager.transact((function(){(t.shiftKey?or(e):rr(e))&&t.preventDefault()}))}))},fo=function(e){Vt(e)&&lo(e),Xr(e)},mo=function(e){var t=function(t){return function(){return e.execCommand(t)}};e.hasPlugin("advlist")||(e.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:t("InsertOrderedList"),onSetup:function(t){return dr(e,"OL",t.setActive)}}),e.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:t("InsertUnorderedList"),onSetup:function(t){return dr(e,"UL",t.setActive)}}))},go=function(e){var t={text:"List properties...",icon:"ordered-list",onAction:function(){return e.execCommand("mceListProps")},onSetup:function(t){return dr(e,"OL",(function(e){return t.setDisabled(!e)}))}};e.ui.registry.addMenuItem("listprops",t),e.ui.registry.addContextMenu("lists",{update:function(t){var n=nn(e,t);return Dt(n)?["listprops"]:[]}})};function po(){e.add("lists",(function(e){return!1===e.hasPlugin("rtc",!0)?(fo(e),so(e)):uo(e),mo(e),go(e),Yr(e)}))}po()})()},"2b07":function(e,t,n){n("dbbc")},"2d33":function(e,t,n){n("303c")},"303c":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");function t(){e.add("colorpicker",(function(){}))}t()})()},3154:function(e,t,n){n("f034")},3699:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)},n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},o=r("string"),i=r("object"),a=r("array"),c=function(e){return null===e||void 0===e},u=function(e){return!c(e)},s=function(){},l=function(e){return function(){return e}},f=function(e){return e},d=l(!1),m=l(!0),g=function(){return p},p=function(){var e=function(e){return e()},t=f,n={fold:function(e,t){return e()},isSome:d,isNone:m,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:l(null),getOrUndefined:l(void 0),or:t,orThunk:e,map:g,each:s,bind:g,exists:d,forall:m,filter:function(){return g()},toArray:function(){return[]},toString:l("none()")};return n}(),h=function(e){var t=l(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:m,isNone:d,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return h(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:p},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},v=function(e){return null===e||void 0===e?p:h(e)},y={some:h,none:g,from:v},b=Array.prototype.push,w=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},k=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);b.apply(t,e[n])}return t},_=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},x=Object.keys,z=Object.hasOwnProperty,C=function(e,t){for(var n=x(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},S=function(e,t){return T(e,t)?y.from(e[t]):y.none()},T=function(e,t){return z.call(e,t)},O=function(e){return e.getParam("media_scripts")},E=function(e){return e.getParam("audio_template_callback")},A=function(e){return e.getParam("video_template_callback")},D=function(e){return e.getParam("media_live_embeds",!0)},M=function(e){return e.getParam("media_filter_html",!0)},R=function(e){return e.getParam("media_url_resolver")},N=function(e){return e.getParam("media_alt_source",!0)},B=function(e){return e.getParam("media_poster",!0)},P=function(e){return e.getParam("media_dimensions",!0)},L=tinymce.util.Tools.resolve("tinymce.util.Tools"),I=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),H=tinymce.util.Tools.resolve("tinymce.html.SaxParser"),F=function(e,t){if(e)for(var n=0;n<e.length;n++)if(-1!==t.indexOf(e[n].filter))return e[n]},j=I.DOM,V=function(e){return e.replace(/px$/,"")},U=function(e){var t=e.map.style,n=t?j.parseStyle(t):{};return{type:"ephox-embed-iri",source:e.map["data-ephox-embed-iri"],altsource:"",poster:"",width:S(n,"max-width").map(V).getOr(""),height:S(n,"max-height").map(V).getOr("")}},q=function(e,t){var n=_(!1),r={};return H({validate:!1,allow_conditional_comments:!0,start:function(t,o){if(n.get());else if(T(o.map,"data-ephox-embed-iri"))n.set(!0),r=U(o);else{if(r.source||"param"!==t||(r.source=o.map.movie),"iframe"!==t&&"object"!==t&&"embed"!==t&&"video"!==t&&"audio"!==t||(r.type||(r.type=t),r=L.extend(o.map,r)),"script"===t){var i=F(e,o.map.src);if(!i)return;r={type:"script",source:o.map.src,width:String(i.width),height:String(i.height)}}"source"===t&&(r.source?r.altsource||(r.altsource=o.map.src):r.source=o.map.src),"img"!==t||r.poster||(r.poster=o.map.src)}}}).parse(t),r.source=r.source||r.src||r.data,r.altsource=r.altsource||"",r.poster=r.poster||"",r},W=function(e){var t={mp3:"audio/mpeg",m4a:"audio/x-m4a",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",ogg:"video/ogg",swf:"application/x-shockwave-flash"},n=e.toLowerCase().split(".").pop(),r=t[n];return r||""},$=tinymce.util.Tools.resolve("tinymce.html.Schema"),G=tinymce.util.Tools.resolve("tinymce.html.Writer"),K=I.DOM,X=function(e){return/^[0-9.]+$/.test(e)?e+"px":e},Y=function(e,t){C(t,(function(t,n){var r=""+t;if(e.map[n]){var o=e.length;while(o--){var i=e[o];i.name===n&&(r?(e.map[n]=r,i.value=r):(delete e.map[n],e.splice(o,1)))}}else r&&(e.push({name:n,value:r}),e.map[n]=r)}))},J=function(e,t){var n=t.map.style,r=n?K.parseStyle(n):{};r["max-width"]=X(e.width),r["max-height"]=X(e.height),Y(t,{style:K.serializeStyle(r)})},Z=["source","altsource"],Q=function(e,t,n){var r,o=G(),i=_(!1),a=0;return H({validate:!1,allow_conditional_comments:!0,comment:function(e){o.comment(e)},cdata:function(e){o.cdata(e)},text:function(e,t){o.text(e,t)},start:function(e,c,u){if(i.get());else if(T(c.map,"data-ephox-embed-iri"))i.set(!0),J(t,c);else{switch(e){case"video":case"object":case"embed":case"img":case"iframe":void 0!==t.height&&void 0!==t.width&&Y(c,{width:t.width,height:t.height});break}if(n)switch(e){case"video":Y(c,{poster:t.poster,src:""}),t.altsource&&Y(c,{src:""});break;case"iframe":Y(c,{src:t.source});break;case"source":if(a<2&&(Y(c,{src:t[Z[a]],type:t[Z[a]+"mime"]}),!t[Z[a]]))return;a++;break;case"img":if(!t.poster)return;r=!0;break}}o.start(e,c,u)},end:function(e){if(!i.get()){if("video"===e&&n)for(var c=0;c<2;c++)if(t[Z[c]]){var u=[];u.map={},a<=c&&(Y(u,{src:t[Z[c]],type:t[Z[c]+"mime"]}),o.start("source",u,!0))}if(t.poster&&"object"===e&&n&&!r){var s=[];s.map={},Y(s,{src:t.poster,width:t.width,height:t.height}),o.start("img",s,!0)}}o.end(e)}},$({})).parse(e),o.getContent()},ee=[{regex:/youtu\.be\/([\w\-_\?&=.]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/youtube\.com(.+)v=([^&]+)(&([a-z0-9&=\-_]+))?/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$2?$4",allowFullscreen:!0},{regex:/youtube.com\/embed\/([a-z0-9\?&=\-_]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/vimeo\.com\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$1?title=0&byline=0&portrait=0&color=8dc7dc",allowFullscreen:!0},{regex:/vimeo\.com\/(.*)\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$2?title=0&byline=0",allowFullscreen:!0},{regex:/maps\.google\.([a-z]{2,3})\/maps\/(.+)msid=(.+)/,type:"iframe",w:425,h:350,url:'maps.google.com/maps/ms?msid=$2&output=embed"',allowFullscreen:!1},{regex:/dailymotion\.com\/video\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0},{regex:/dai\.ly\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0}],te=function(e){var t=e.match(/^(https?:\/\/|www\.)(.+)$/i);return t&&t.length>1?"www."===t[1]?"https://":t[1]:"https://"},ne=function(e,t){for(var n=te(t),r=e.regex.exec(t),o=n+e.url,i=function(e){o=o.replace("$"+e,(function(){return r[e]?r[e]:""}))},a=0;a<r.length;a++)i(a);return o.replace(/\?$/,"")},re=function(e){var t=ee.filter((function(t){return t.regex.test(e)}));return t.length>0?L.extend({},t[0],{url:ne(t[0],e)}):null},oe=function(e){var t=e.allowfullscreen?' allowFullscreen="1"':"";return'<iframe src="'+e.source+'" width="'+e.width+'" height="'+e.height+'"'+t+"></iframe>"},ie=function(e){var t='<object data="'+e.source+'" width="'+e.width+'" height="'+e.height+'" type="application/x-shockwave-flash">';return e.poster&&(t+='<img src="'+e.poster+'" width="'+e.width+'" height="'+e.height+'" />'),t+="</object>",t},ae=function(e,t){return t?t(e):'<audio controls="controls" src="'+e.source+'">'+(e.altsource?'\n<source src="'+e.altsource+'"'+(e.altsourcemime?' type="'+e.altsourcemime+'"':"")+" />\n":"")+"</audio>"},ce=function(e,t){return t?t(e):'<video width="'+e.width+'" height="'+e.height+'"'+(e.poster?' poster="'+e.poster+'"':"")+' controls="controls">\n<source src="'+e.source+'"'+(e.sourcemime?' type="'+e.sourcemime+'"':"")+" />\n"+(e.altsource?'<source src="'+e.altsource+'"'+(e.altsourcemime?' type="'+e.altsourcemime+'"':"")+" />\n":"")+"</video>"},ue=function(e){return'<script src="'+e.source+'"><\/script>'},se=function(e,t){var n=L.extend({},t);if(!n.source&&(L.extend(n,q(O(e),n.embed)),!n.source))return"";n.altsource||(n.altsource=""),n.poster||(n.poster=""),n.source=e.convertURL(n.source,"source"),n.altsource=e.convertURL(n.altsource,"source"),n.sourcemime=W(n.source),n.altsourcemime=W(n.altsource),n.poster=e.convertURL(n.poster,"poster");var r=re(n.source);if(r&&(n.source=r.url,n.type=r.type,n.allowfullscreen=r.allowFullscreen,n.width=n.width||String(r.w),n.height=n.height||String(r.h)),n.embed)return Q(n.embed,n,!0);var o=F(O(e),n.source);o&&(n.type="script",n.width=String(o.width),n.height=String(o.height));var i=E(e),a=A(e);return n.width=n.width||"300",n.height=n.height||"150",L.each(n,(function(t,r){n[r]=e.dom.encode(""+t)})),"iframe"===n.type?oe(n):"application/x-shockwave-flash"===n.sourcemime?ie(n):-1!==n.sourcemime.indexOf("audio")?ae(n,i):"script"===n.type?ue(n):ce(n,a)},le=function(e){return e.hasAttribute("data-mce-object")||e.hasAttribute("data-ephox-embed-iri")},fe=function(e){e.on("click keyup touchend",(function(){var t=e.selection.getNode();t&&e.dom.hasClass(t,"mce-preview-object")&&e.dom.getAttrib(t,"data-mce-selected")&&t.setAttribute("data-mce-selected","2")})),e.on("ObjectSelected",(function(e){var t=e.target.getAttribute("data-mce-object");"script"===t&&e.preventDefault()})),e.on("ObjectResized",(function(e){var t=e.target;if(t.getAttribute("data-mce-object")){var n=t.getAttribute("data-mce-html");n&&(n=unescape(n),t.setAttribute("data-mce-html",escape(Q(n,{width:String(e.width),height:String(e.height)}))))}}))},de=tinymce.util.Tools.resolve("tinymce.util.Promise"),me={},ge=function(e,t,n){return new de((function(r,o){var i=function(n){return n.html&&(me[e.source]=n),r({url:e.source,html:n.html?n.html:t(e)})};me[e.source]?i(me[e.source]):n({url:e.source},i,o)}))},pe=function(e,t){return de.resolve({html:t(e),url:e.source})},he=function(e){return function(t){return se(e,t)}},ve=function(e,t){var n=R(e);return n?ge(t,he(e),n):pe(t,he(e))},ye=function(e){return T(me,e)},be=function(e,t){return S(t,e).bind((function(e){return S(e,"meta")}))},we=function(e,t,n){return function(r){var o,a=function(){return S(e,r)},c=function(){return S(t,r)},u=function(e){return S(e,"value").bind((function(e){return e.length>0?y.some(e):y.none()}))},s=function(){return a().bind((function(e){return i(e)?u(e).orThunk(c):c().orThunk((function(){return y.from(e)}))}))},l=function(){return c().orThunk((function(){return a().bind((function(e){return i(e)?u(e):y.from(e)}))}))};return o={},o[r]=(r===n?s():l()).getOr(""),o}},ke=function(e,t){var n={};return S(e,"dimensions").each((function(e){w(["width","height"],(function(r){S(t,r).orThunk((function(){return S(e,r)})).each((function(e){return n[r]=e}))}))})),n},_e=function(e,n){var r=n?be(n,e).getOr({}):{},o=we(e,r,n);return t(t(t(t(t({},o("source")),o("altsource")),o("poster")),o("embed")),ke(e,r))},xe=function(e){var n=t(t({},e),{source:{value:S(e,"source").getOr("")},altsource:{value:S(e,"altsource").getOr("")},poster:{value:S(e,"poster").getOr("")}});return w(["width","height"],(function(t){S(e,t).each((function(e){var r=n.dimensions||{};r[t]=e,n.dimensions=r}))})),n},ze=function(e){return function(t){var n=t&&t.msg?"Media embed handler error: "+t.msg:"Media embed handler threw unknown error.";e.notificationManager.open({type:"error",text:n})}},Ce=function(e,t){return q(O(e),t)},Se=function(e){var n=e.selection.getNode(),r=le(n)?e.serializer.serialize(n,{selection:!0}):"";return t({embed:r},q(O(e),r))},Te=function(e,n){return function(r){if(o(r.url)&&r.url.trim().length>0){var i=r.html,a=Ce(n,i),c=t(t({},a),{source:r.url,embed:i});e.setData(xe(c))}}},Oe=function(e,t){for(var n=e.dom.select("*[data-mce-object]"),r=0;r<t.length;r++)for(var o=n.length-1;o>=0;o--)t[r]===n[o]&&n.splice(o,1);e.selection.select(n[0])},Ee=function(e,t){var n=e.dom.select("*[data-mce-object]");e.insertContent(t),Oe(e,n),e.nodeChanged()},Ae=function(e,t,n){t.embed=Q(t.embed,t),t.embed&&(e.source===t.source||ye(t.source))?Ee(n,t.embed):ve(n,t).then((function(e){Ee(n,e.html)})).catch(ze(n))},De=function(e){var n=Se(e),r=_(n),o=xe(n),i=function(t,n){var r=_e(n.getData(),"source");t.source!==r.source&&(Te(v,e)({url:r.source,html:""}),ve(e,r).then(Te(v,e)).catch(ze(e)))},a=function(t){var n=_e(t.getData()),r=Ce(e,n.embed);t.setData(xe(r))},c=function(n,r){var o=_e(n.getData(),r),i=se(e,o);n.setData(xe(t(t({},o),{embed:i})))},u=[{name:"source",type:"urlinput",filetype:"media",label:"Source"}],s=P(e)?[{type:"sizeinput",name:"dimensions",label:"Constrain proportions",constrain:!0}]:[],l={title:"General",name:"general",items:k([u,s])},f={type:"textarea",name:"embed",label:"Paste your embed code below:"},d={title:"Embed",items:[f]},m=[];N(e)&&m.push({name:"altsource",type:"urlinput",filetype:"media",label:"Alternative source URL"}),B(e)&&m.push({name:"poster",type:"urlinput",filetype:"image",label:"Media poster (Image URL)"});var g={title:"Advanced",name:"advanced",items:m},p=[l,d];m.length>0&&p.push(g);var h={type:"tabpanel",tabs:p},v=e.windowManager.open({title:"Insert/Edit Media",size:"normal",body:h,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var n=_e(t.getData());Ae(r.get(),n,e),t.close()},onChange:function(e,t){switch(t.name){case"source":i(r.get(),e);break;case"embed":a(e);break;case"dimensions":case"altsource":case"poster":c(e,t.name);break}r.set(_e(e.getData()))},initialData:o})},Me=function(e){var t=function(){De(e)};return{showDialog:t}},Re=function(e){var t=function(){De(e)};e.addCommand("mceMedia",t)},Ne=tinymce.util.Tools.resolve("tinymce.html.Node"),Be=tinymce.util.Tools.resolve("tinymce.Env"),Pe=tinymce.util.Tools.resolve("tinymce.html.DomParser"),Le=function(e,t){if(!1===M(e))return t;var n,r=G();return H({validate:!1,allow_conditional_comments:!1,comment:function(e){n||r.comment(e)},cdata:function(e){n||r.cdata(e)},text:function(e,t){n||r.text(e,t)},start:function(t,o,i){if(n=!0,"script"!==t&&"noscript"!==t&&"svg"!==t){for(var a=o.length-1;a>=0;a--){var c=o[a].name;0===c.indexOf("on")&&(delete o.map[c],o.splice(a,1)),"style"===c&&(o[a].value=e.dom.serializeStyle(e.dom.parseStyle(o[a].value),t))}r.start(t,o,i),n=!1}},end:function(e){n||r.end(e)}},$({})).parse(t),r.getContent()},Ie=function(e){var t=e.name;return"iframe"===t||"video"===t||"audio"===t},He=function(e,t,n,r){void 0===r&&(r=null);var o=e.attr(n);return u(o)?o:T(t,n)?null:r},Fe=function(e,t,n){var r="img"===t.name||"video"===e.name,o=r?"300":null,i="audio"===e.name?"30":"150",a=r?i:null;t.attr({width:He(e,n,"width",o),height:He(e,n,"height",a)})},je=function(e,t,n,r){var o=Pe({forced_root_block:!1,validate:!1},e.schema).parse(r,{context:t});while(o.firstChild)n.append(o.firstChild)},Ve=function(e,t){var n=t.name,r=new Ne("img",1);return r.shortEnded=!0,qe(e,t,r),Fe(t,r,{}),r.attr({style:t.attr("style"),src:Be.transparentSrc,"data-mce-object":n,class:"mce-object mce-object-"+n}),r},Ue=function(e,t){var n=t.name,r=new Ne("span",1);r.attr({contentEditable:"false",style:t.attr("style"),"data-mce-object":n,class:"mce-preview-object mce-object-"+n}),qe(e,t,r);var o=e.dom.parseStyle(t.attr("style")),i=new Ne(n,1);if(Fe(t,i,o),i.attr({src:t.attr("src"),style:t.attr("style"),class:t.attr("class")}),"iframe"===n)i.attr({allowfullscreen:t.attr("allowfullscreen"),frameborder:"0"});else{var a=["controls","crossorigin","currentTime","loop","muted","poster","preload"];w(a,(function(e){i.attr(e,t.attr(e))}));var c=r.attr("data-mce-html");u(c)&&je(e,n,i,unescape(c))}var s=new Ne("span",1);return s.attr("class","mce-shim"),r.append(i),r.append(s),r},qe=function(e,t,n){var r=t.attributes,o=r.length;while(o--){var i=r[o].name,a=r[o].value;"width"!==i&&"height"!==i&&"style"!==i&&("data"!==i&&"src"!==i||(a=e.convertURL(a,i)),n.attr("data-mce-p-"+i,a))}var c=t.firstChild&&t.firstChild.value;c&&(n.attr("data-mce-html",escape(Le(e,c))),n.firstChild=null)},We=function(e){var t=e.attr("class");return t&&/\btiny-pageembed\b/.test(t)},$e=function(e){while(e=e.parent)if(e.attr("data-ephox-embed-iri")||We(e))return!0;return!1},Ge=function(e){return function(t){var n,r,o=t.length;while(o--)n=t[o],n.parent&&(n.parent.attr("data-mce-object")||("script"!==n.name||(r=F(O(e),n.attr("src")),r))&&(r&&(r.width&&n.attr("width",r.width.toString()),r.height&&n.attr("height",r.height.toString())),Ie(n)&&D(e)&&Be.ceFalse?$e(n)||n.replace(Ue(e,n)):$e(n)||n.replace(Ve(e,n))))}},Ke=function(e){e.on("preInit",(function(){var t=e.schema.getSpecialElements();L.each("video audio iframe object".split(" "),(function(e){t[e]=new RegExp("</"+e+"[^>]*>","gi")}));var n=e.schema.getBoolAttrs();L.each("webkitallowfullscreen mozallowfullscreen allowfullscreen".split(" "),(function(e){n[e]={}})),e.parser.addNodeFilter("iframe,video,audio,object,embed,script",Ge(e)),e.serializer.addAttributeFilter("data-mce-object",(function(t,n){var r,o,i,a,c,u,s,l,f=t.length;while(f--)if(r=t[f],r.parent){s=r.attr(n),o=new Ne(s,1),"audio"!==s&&"script"!==s&&(l=r.attr("class"),l&&-1!==l.indexOf("mce-preview-object")?o.attr({width:r.firstChild.attr("width"),height:r.firstChild.attr("height")}):o.attr({width:r.attr("width"),height:r.attr("height")})),o.attr({style:r.attr("style")}),a=r.attributes,i=a.length;while(i--){var d=a[i].name;0===d.indexOf("data-mce-p-")&&o.attr(d.substr(11),a[i].value)}"script"===s&&o.attr("type","text/javascript"),c=r.attr("data-mce-html"),c&&(u=new Ne("#text",3),u.raw=!0,u.value=Le(e,unescape(c)),o.append(u)),r.replace(o)}}))})),e.on("SetContent",(function(){e.$("span.mce-preview-object").each((function(t,n){var r=e.$(n);0===r.find("span.mce-shim").length&&r.append('<span class="mce-shim"></span>')}))}))},Xe=function(e){e.on("ResolveName",(function(e){var t;1===e.target.nodeType&&(t=e.target.getAttribute("data-mce-object"))&&(e.name=t)}))},Ye=function(e){var t=function(){return e.execCommand("mceMedia")};e.ui.registry.addToggleButton("media",{tooltip:"Insert/edit media",icon:"embed",onAction:t,onSetup:function(t){var n=e.selection;return t.setActive(le(n.getNode())),n.selectorChangedWithUnbind("img[data-mce-object],span[data-mce-object],div[data-ephox-embed-iri]",t.setActive).unbind}}),e.ui.registry.addMenuItem("media",{icon:"embed",text:"Media...",onAction:t})};function Je(){e.add("media",(function(e){return Re(e),Ye(e),Xe(e),Ke(e),fe(e),Me(e)}))}Je()})()},"3aea":function(e,t,n){n("3699")},"3c41":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=0,n=function(e){var n=new Date,r=n.getTime(),o=Math.floor(1e9*Math.random());return t++,e+"_"+o+t+String(r)},r=function(e,t){var n='<table data-mce-id="mce" style="width: 100%">';n+="<tbody>";for(var r=0;r<t;r++){n+="<tr>";for(var o=0;o<e;o++)n+="<td><br></td>";n+="</tr>"}return n+="</tbody>",n+="</table>",n},o=function(e){var t=e.dom.select("*[data-mce-id]");return t[0]},i=function(e,t,n){e.undoManager.transact((function(){e.insertContent(r(t,n));var i=o(e);i.removeAttribute("data-mce-id");var a=e.dom.select("td,th",i);e.selection.setCursorLocation(a[0],0)}))},a=function(e,t,n){e.plugins.table?e.plugins.table.insertTable(t,n):i(e,t,n)},c=function(e,t,r){var o=e.editorUpload.blobCache,i=o.create(n("mceu"),r,t);o.add(i),e.insertContent(e.dom.createHTML("img",{src:i.blobUri()}))},u=tinymce.util.Tools.resolve("tinymce.util.Promise"),s=function(e){return new u((function(t){var n=new FileReader;n.onloadend=function(){t(n.result.split(",")[1])},n.readAsDataURL(e)}))},l=tinymce.util.Tools.resolve("tinymce.Env"),f=tinymce.util.Tools.resolve("tinymce.util.Delay"),d=function(e){return new u((function(t){var n=document.createElement("input");n.type="file",n.accept="image/*",n.style.position="fixed",n.style.left="0",n.style.top="0",n.style.opacity="0.001",document.body.appendChild(n);var r=function(e){t(Array.prototype.slice.call(e.target.files))};n.addEventListener("change",r);var o=function(r){var i=function(){t([]),n.parentNode.removeChild(n)};l.os.isAndroid()&&"remove"!==r.type?f.setEditorTimeout(e,i,0):i(),e.off("focusin remove",o)};e.on("focusin remove",o),n.click()}))},m=function(e){e.ui.registry.addButton("quickimage",{icon:"image",tooltip:"Insert image",onAction:function(){d(e).then((function(t){if(t.length>0){var n=t[0];s(n).then((function(t){c(e,t,n)}))}}))}}),e.ui.registry.addButton("quicktable",{icon:"table",tooltip:"Insert table",onAction:function(){a(e,2,2)}})},g=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},p=function(e){return function(t){return g(t)===e}},h=function(e){return function(t){return typeof t===e}},v=function(e){return function(t){return e===t}},y=p("string"),b=p("object"),w=p("array"),k=h("boolean"),_=v(void 0),x=h("function"),z=function(){},C=function(e){return function(){return e}},S=function(e){return e},T=C(!1),O=C(!0),E=function(){return A},A=function(){var e=function(e){return e()},t=S,n={fold:function(e,t){return e()},isSome:T,isNone:O,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:C(null),getOrUndefined:C(void 0),or:t,orThunk:e,map:E,each:z,bind:E,exists:T,forall:O,filter:function(){return E()},toArray:function(){return[]},toString:C("none()")};return n}(),D=function(e){var t=C(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:O,isNone:T,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)?o:A},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},M=function(e){return null===e||void 0===e?A:D(e)},R={some:D,none:E,from:M};function N(e,t,n,r,o){return e(n,r)?R.some(n):x(o)&&o(n)?R.none():t(n,r,o)}var B=1,P=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return H(r.childNodes[0])},L=function(e,t){var n=t||document,r=n.createElement(e);return H(r)},I=function(e,t){var n=t||document,r=n.createTextNode(e);return H(r)},H=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},F=function(e,t,n){return R.from(e.dom.elementFromPoint(t,n)).map(H)},j={fromHtml:P,fromTag:L,fromText:I,fromDom:H,fromPoint:F},V=function(e,t){var n=e.dom;if(n.nodeType!==B)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")};"undefined"!==typeof window?window:Function("return this;")();var U=function(e){var t=e.dom.nodeName;return t.toLowerCase()},q=function(e,t,n){var r=e.dom,o=x(n)?n:T;while(r.parentNode){r=r.parentNode;var i=j.fromDom(r);if(t(i))return R.some(i);if(o(i))break}return R.none()},W=function(e,t,n){var r=function(e,t){return t(e)};return N(r,q,e,t,n)},$=function(e,t,n){return q(e,(function(e){return V(e,t)}),n)},G=function(e,t,n){var r=function(e,t){return V(e,t)};return N(r,$,e,t,n)},K=function(e,t){if(t(e))return!0;throw new Error("Default value doesn't match requested type.")},X=function(e,t){if(w(e)||b(e))throw new Error("expected a string but found: "+e);return _(e)?t:k(e)?!1===e?"":t:e},Y=function(e){return function(t,n,r){K(r,e);var o=t.getParam(n,r);return X(o,r)}},J=Y(y),Z=function(e){return J(e,"quickbars_selection_toolbar","bold italic | quicklink h2 h3 blockquote")},Q=function(e){return J(e,"quickbars_insert_toolbar","quickimage quicktable")},ee=function(e){return J(e,"quickbars_image_toolbar","alignleft aligncenter alignright")},te=function(e){var t=Q(e);t.trim().length>0&&e.ui.registry.addContextToolbar("quickblock",{predicate:function(t){var n=j.fromDom(t),r=e.schema.getTextBlockElements(),o=function(t){return t.dom===e.getBody()};return G(n,"table",o).fold((function(){return W(n,(function(t){return U(t)in r&&e.dom.isEmpty(t.dom)}),o).isSome()}),T)},items:t,position:"line",scope:"editor"})},ne=function(e){var t=function(t){return"false"!==e.dom.getContentEditableParent(t)},n=function(e){return"IMG"===e.nodeName||"FIGURE"===e.nodeName&&/image/i.test(e.className)},r=ee(e);r.trim().length>0&&e.ui.registry.addContextToolbar("imageselection",{predicate:n,items:r,position:"node"});var o=Z(e);o.trim().length>0&&e.ui.registry.addContextToolbar("textselection",{predicate:function(r){return!n(r)&&!e.selection.isCollapsed()&&t(r)},items:o,position:"selection",scope:"editor"})};function re(){e.add("quickbars",(function(e){m(e),te(e),ne(e)}))}re()})()},4237:function(e,t,n){n("be7f")},"4cb4":function(e,t){window.tinymce.Resource.add("tinymce.plugins.emoticons",{grinning:{keywords:["face","smile","happy","joy",":D","grin"],char:"😀",fitzpatrick_scale:!1,category:"people"},grimacing:{keywords:["face","grimace","teeth"],char:"😬",fitzpatrick_scale:!1,category:"people"},grin:{keywords:["face","happy","smile","joy","kawaii"],char:"😁",fitzpatrick_scale:!1,category:"people"},joy:{keywords:["face","cry","tears","weep","happy","happytears","haha"],char:"😂",fitzpatrick_scale:!1,category:"people"},rofl:{keywords:["face","rolling","floor","laughing","lol","haha"],char:"🤣",fitzpatrick_scale:!1,category:"people"},partying:{keywords:["face","celebration","woohoo"],char:"🥳",fitzpatrick_scale:!1,category:"people"},smiley:{keywords:["face","happy","joy","haha",":D",":)","smile","funny"],char:"😃",fitzpatrick_scale:!1,category:"people"},smile:{keywords:["face","happy","joy","funny","haha","laugh","like",":D",":)"],char:"😄",fitzpatrick_scale:!1,category:"people"},sweat_smile:{keywords:["face","hot","happy","laugh","sweat","smile","relief"],char:"😅",fitzpatrick_scale:!1,category:"people"},laughing:{keywords:["happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],char:"😆",fitzpatrick_scale:!1,category:"people"},innocent:{keywords:["face","angel","heaven","halo"],char:"😇",fitzpatrick_scale:!1,category:"people"},wink:{keywords:["face","happy","mischievous","secret",";)","smile","eye"],char:"😉",fitzpatrick_scale:!1,category:"people"},blush:{keywords:["face","smile","happy","flushed","crush","embarrassed","shy","joy"],char:"😊",fitzpatrick_scale:!1,category:"people"},slightly_smiling_face:{keywords:["face","smile"],char:"🙂",fitzpatrick_scale:!1,category:"people"},upside_down_face:{keywords:["face","flipped","silly","smile"],char:"🙃",fitzpatrick_scale:!1,category:"people"},relaxed:{keywords:["face","blush","massage","happiness"],char:"☺️",fitzpatrick_scale:!1,category:"people"},yum:{keywords:["happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],char:"😋",fitzpatrick_scale:!1,category:"people"},relieved:{keywords:["face","relaxed","phew","massage","happiness"],char:"😌",fitzpatrick_scale:!1,category:"people"},heart_eyes:{keywords:["face","love","like","affection","valentines","infatuation","crush","heart"],char:"😍",fitzpatrick_scale:!1,category:"people"},smiling_face_with_three_hearts:{keywords:["face","love","like","affection","valentines","infatuation","crush","hearts","adore"],char:"🥰",fitzpatrick_scale:!1,category:"people"},kissing_heart:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"😘",fitzpatrick_scale:!1,category:"people"},kissing:{keywords:["love","like","face","3","valentines","infatuation","kiss"],char:"😗",fitzpatrick_scale:!1,category:"people"},kissing_smiling_eyes:{keywords:["face","affection","valentines","infatuation","kiss"],char:"😙",fitzpatrick_scale:!1,category:"people"},kissing_closed_eyes:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"😚",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue_winking_eye:{keywords:["face","prank","childish","playful","mischievous","smile","wink","tongue"],char:"😜",fitzpatrick_scale:!1,category:"people"},zany:{keywords:["face","goofy","crazy"],char:"🤪",fitzpatrick_scale:!1,category:"people"},raised_eyebrow:{keywords:["face","distrust","scepticism","disapproval","disbelief","surprise"],char:"🤨",fitzpatrick_scale:!1,category:"people"},monocle:{keywords:["face","stuffy","wealthy"],char:"🧐",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue_closed_eyes:{keywords:["face","prank","playful","mischievous","smile","tongue"],char:"😝",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue:{keywords:["face","prank","childish","playful","mischievous","smile","tongue"],char:"😛",fitzpatrick_scale:!1,category:"people"},money_mouth_face:{keywords:["face","rich","dollar","money"],char:"🤑",fitzpatrick_scale:!1,category:"people"},nerd_face:{keywords:["face","nerdy","geek","dork"],char:"🤓",fitzpatrick_scale:!1,category:"people"},sunglasses:{keywords:["face","cool","smile","summer","beach","sunglass"],char:"😎",fitzpatrick_scale:!1,category:"people"},star_struck:{keywords:["face","smile","starry","eyes","grinning"],char:"🤩",fitzpatrick_scale:!1,category:"people"},clown_face:{keywords:["face"],char:"🤡",fitzpatrick_scale:!1,category:"people"},cowboy_hat_face:{keywords:["face","cowgirl","hat"],char:"🤠",fitzpatrick_scale:!1,category:"people"},hugs:{keywords:["face","smile","hug"],char:"🤗",fitzpatrick_scale:!1,category:"people"},smirk:{keywords:["face","smile","mean","prank","smug","sarcasm"],char:"😏",fitzpatrick_scale:!1,category:"people"},no_mouth:{keywords:["face","hellokitty"],char:"😶",fitzpatrick_scale:!1,category:"people"},neutral_face:{keywords:["indifference","meh",":|","neutral"],char:"😐",fitzpatrick_scale:!1,category:"people"},expressionless:{keywords:["face","indifferent","-_-","meh","deadpan"],char:"😑",fitzpatrick_scale:!1,category:"people"},unamused:{keywords:["indifference","bored","straight face","serious","sarcasm","unimpressed","skeptical","dubious","side_eye"],char:"😒",fitzpatrick_scale:!1,category:"people"},roll_eyes:{keywords:["face","eyeroll","frustrated"],char:"🙄",fitzpatrick_scale:!1,category:"people"},thinking:{keywords:["face","hmmm","think","consider"],char:"🤔",fitzpatrick_scale:!1,category:"people"},lying_face:{keywords:["face","lie","pinocchio"],char:"🤥",fitzpatrick_scale:!1,category:"people"},hand_over_mouth:{keywords:["face","whoops","shock","surprise"],char:"🤭",fitzpatrick_scale:!1,category:"people"},shushing:{keywords:["face","quiet","shhh"],char:"🤫",fitzpatrick_scale:!1,category:"people"},symbols_over_mouth:{keywords:["face","swearing","cursing","cussing","profanity","expletive"],char:"🤬",fitzpatrick_scale:!1,category:"people"},exploding_head:{keywords:["face","shocked","mind","blown"],char:"🤯",fitzpatrick_scale:!1,category:"people"},flushed:{keywords:["face","blush","shy","flattered"],char:"😳",fitzpatrick_scale:!1,category:"people"},disappointed:{keywords:["face","sad","upset","depressed",":("],char:"😞",fitzpatrick_scale:!1,category:"people"},worried:{keywords:["face","concern","nervous",":("],char:"😟",fitzpatrick_scale:!1,category:"people"},angry:{keywords:["mad","face","annoyed","frustrated"],char:"😠",fitzpatrick_scale:!1,category:"people"},rage:{keywords:["angry","mad","hate","despise"],char:"😡",fitzpatrick_scale:!1,category:"people"},pensive:{keywords:["face","sad","depressed","upset"],char:"😔",fitzpatrick_scale:!1,category:"people"},confused:{keywords:["face","indifference","huh","weird","hmmm",":/"],char:"😕",fitzpatrick_scale:!1,category:"people"},slightly_frowning_face:{keywords:["face","frowning","disappointed","sad","upset"],char:"🙁",fitzpatrick_scale:!1,category:"people"},frowning_face:{keywords:["face","sad","upset","frown"],char:"☹",fitzpatrick_scale:!1,category:"people"},persevere:{keywords:["face","sick","no","upset","oops"],char:"😣",fitzpatrick_scale:!1,category:"people"},confounded:{keywords:["face","confused","sick","unwell","oops",":S"],char:"😖",fitzpatrick_scale:!1,category:"people"},tired_face:{keywords:["sick","whine","upset","frustrated"],char:"😫",fitzpatrick_scale:!1,category:"people"},weary:{keywords:["face","tired","sleepy","sad","frustrated","upset"],char:"😩",fitzpatrick_scale:!1,category:"people"},pleading:{keywords:["face","begging","mercy"],char:"🥺",fitzpatrick_scale:!1,category:"people"},triumph:{keywords:["face","gas","phew","proud","pride"],char:"😤",fitzpatrick_scale:!1,category:"people"},open_mouth:{keywords:["face","surprise","impressed","wow","whoa",":O"],char:"😮",fitzpatrick_scale:!1,category:"people"},scream:{keywords:["face","munch","scared","omg"],char:"😱",fitzpatrick_scale:!1,category:"people"},fearful:{keywords:["face","scared","terrified","nervous","oops","huh"],char:"😨",fitzpatrick_scale:!1,category:"people"},cold_sweat:{keywords:["face","nervous","sweat"],char:"😰",fitzpatrick_scale:!1,category:"people"},hushed:{keywords:["face","woo","shh"],char:"😯",fitzpatrick_scale:!1,category:"people"},frowning:{keywords:["face","aw","what"],char:"😦",fitzpatrick_scale:!1,category:"people"},anguished:{keywords:["face","stunned","nervous"],char:"😧",fitzpatrick_scale:!1,category:"people"},cry:{keywords:["face","tears","sad","depressed","upset",":'("],char:"😢",fitzpatrick_scale:!1,category:"people"},disappointed_relieved:{keywords:["face","phew","sweat","nervous"],char:"😥",fitzpatrick_scale:!1,category:"people"},drooling_face:{keywords:["face"],char:"🤤",fitzpatrick_scale:!1,category:"people"},sleepy:{keywords:["face","tired","rest","nap"],char:"😪",fitzpatrick_scale:!1,category:"people"},sweat:{keywords:["face","hot","sad","tired","exercise"],char:"😓",fitzpatrick_scale:!1,category:"people"},hot:{keywords:["face","feverish","heat","red","sweating"],char:"🥵",fitzpatrick_scale:!1,category:"people"},cold:{keywords:["face","blue","freezing","frozen","frostbite","icicles"],char:"🥶",fitzpatrick_scale:!1,category:"people"},sob:{keywords:["face","cry","tears","sad","upset","depressed"],char:"😭",fitzpatrick_scale:!1,category:"people"},dizzy_face:{keywords:["spent","unconscious","xox","dizzy"],char:"😵",fitzpatrick_scale:!1,category:"people"},astonished:{keywords:["face","xox","surprised","poisoned"],char:"😲",fitzpatrick_scale:!1,category:"people"},zipper_mouth_face:{keywords:["face","sealed","zipper","secret"],char:"🤐",fitzpatrick_scale:!1,category:"people"},nauseated_face:{keywords:["face","vomit","gross","green","sick","throw up","ill"],char:"🤢",fitzpatrick_scale:!1,category:"people"},sneezing_face:{keywords:["face","gesundheit","sneeze","sick","allergy"],char:"🤧",fitzpatrick_scale:!1,category:"people"},vomiting:{keywords:["face","sick"],char:"🤮",fitzpatrick_scale:!1,category:"people"},mask:{keywords:["face","sick","ill","disease"],char:"😷",fitzpatrick_scale:!1,category:"people"},face_with_thermometer:{keywords:["sick","temperature","thermometer","cold","fever"],char:"🤒",fitzpatrick_scale:!1,category:"people"},face_with_head_bandage:{keywords:["injured","clumsy","bandage","hurt"],char:"🤕",fitzpatrick_scale:!1,category:"people"},woozy:{keywords:["face","dizzy","intoxicated","tipsy","wavy"],char:"🥴",fitzpatrick_scale:!1,category:"people"},sleeping:{keywords:["face","tired","sleepy","night","zzz"],char:"😴",fitzpatrick_scale:!1,category:"people"},zzz:{keywords:["sleepy","tired","dream"],char:"💤",fitzpatrick_scale:!1,category:"people"},poop:{keywords:["hankey","shitface","fail","turd","shit"],char:"💩",fitzpatrick_scale:!1,category:"people"},smiling_imp:{keywords:["devil","horns"],char:"😈",fitzpatrick_scale:!1,category:"people"},imp:{keywords:["devil","angry","horns"],char:"👿",fitzpatrick_scale:!1,category:"people"},japanese_ogre:{keywords:["monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],char:"👹",fitzpatrick_scale:!1,category:"people"},japanese_goblin:{keywords:["red","evil","mask","monster","scary","creepy","japanese","goblin"],char:"👺",fitzpatrick_scale:!1,category:"people"},skull:{keywords:["dead","skeleton","creepy","death"],char:"💀",fitzpatrick_scale:!1,category:"people"},ghost:{keywords:["halloween","spooky","scary"],char:"👻",fitzpatrick_scale:!1,category:"people"},alien:{keywords:["UFO","paul","weird","outer_space"],char:"👽",fitzpatrick_scale:!1,category:"people"},robot:{keywords:["computer","machine","bot"],char:"🤖",fitzpatrick_scale:!1,category:"people"},smiley_cat:{keywords:["animal","cats","happy","smile"],char:"😺",fitzpatrick_scale:!1,category:"people"},smile_cat:{keywords:["animal","cats","smile"],char:"😸",fitzpatrick_scale:!1,category:"people"},joy_cat:{keywords:["animal","cats","haha","happy","tears"],char:"😹",fitzpatrick_scale:!1,category:"people"},heart_eyes_cat:{keywords:["animal","love","like","affection","cats","valentines","heart"],char:"😻",fitzpatrick_scale:!1,category:"people"},smirk_cat:{keywords:["animal","cats","smirk"],char:"😼",fitzpatrick_scale:!1,category:"people"},kissing_cat:{keywords:["animal","cats","kiss"],char:"😽",fitzpatrick_scale:!1,category:"people"},scream_cat:{keywords:["animal","cats","munch","scared","scream"],char:"🙀",fitzpatrick_scale:!1,category:"people"},crying_cat_face:{keywords:["animal","tears","weep","sad","cats","upset","cry"],char:"😿",fitzpatrick_scale:!1,category:"people"},pouting_cat:{keywords:["animal","cats"],char:"😾",fitzpatrick_scale:!1,category:"people"},palms_up:{keywords:["hands","gesture","cupped","prayer"],char:"🤲",fitzpatrick_scale:!0,category:"people"},raised_hands:{keywords:["gesture","hooray","yea","celebration","hands"],char:"🙌",fitzpatrick_scale:!0,category:"people"},clap:{keywords:["hands","praise","applause","congrats","yay"],char:"👏",fitzpatrick_scale:!0,category:"people"},wave:{keywords:["hands","gesture","goodbye","solong","farewell","hello","hi","palm"],char:"👋",fitzpatrick_scale:!0,category:"people"},call_me_hand:{keywords:["hands","gesture"],char:"🤙",fitzpatrick_scale:!0,category:"people"},"+1":{keywords:["thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],char:"👍",fitzpatrick_scale:!0,category:"people"},"-1":{keywords:["thumbsdown","no","dislike","hand"],char:"👎",fitzpatrick_scale:!0,category:"people"},facepunch:{keywords:["angry","violence","fist","hit","attack","hand"],char:"👊",fitzpatrick_scale:!0,category:"people"},fist:{keywords:["fingers","hand","grasp"],char:"✊",fitzpatrick_scale:!0,category:"people"},fist_left:{keywords:["hand","fistbump"],char:"🤛",fitzpatrick_scale:!0,category:"people"},fist_right:{keywords:["hand","fistbump"],char:"🤜",fitzpatrick_scale:!0,category:"people"},v:{keywords:["fingers","ohyeah","hand","peace","victory","two"],char:"✌",fitzpatrick_scale:!0,category:"people"},ok_hand:{keywords:["fingers","limbs","perfect","ok","okay"],char:"👌",fitzpatrick_scale:!0,category:"people"},raised_hand:{keywords:["fingers","stop","highfive","palm","ban"],char:"✋",fitzpatrick_scale:!0,category:"people"},raised_back_of_hand:{keywords:["fingers","raised","backhand"],char:"🤚",fitzpatrick_scale:!0,category:"people"},open_hands:{keywords:["fingers","butterfly","hands","open"],char:"👐",fitzpatrick_scale:!0,category:"people"},muscle:{keywords:["arm","flex","hand","summer","strong","biceps"],char:"💪",fitzpatrick_scale:!0,category:"people"},pray:{keywords:["please","hope","wish","namaste","highfive"],char:"🙏",fitzpatrick_scale:!0,category:"people"},foot:{keywords:["kick","stomp"],char:"🦶",fitzpatrick_scale:!0,category:"people"},leg:{keywords:["kick","limb"],char:"🦵",fitzpatrick_scale:!0,category:"people"},handshake:{keywords:["agreement","shake"],char:"🤝",fitzpatrick_scale:!1,category:"people"},point_up:{keywords:["hand","fingers","direction","up"],char:"☝",fitzpatrick_scale:!0,category:"people"},point_up_2:{keywords:["fingers","hand","direction","up"],char:"👆",fitzpatrick_scale:!0,category:"people"},point_down:{keywords:["fingers","hand","direction","down"],char:"👇",fitzpatrick_scale:!0,category:"people"},point_left:{keywords:["direction","fingers","hand","left"],char:"👈",fitzpatrick_scale:!0,category:"people"},point_right:{keywords:["fingers","hand","direction","right"],char:"👉",fitzpatrick_scale:!0,category:"people"},fu:{keywords:["hand","fingers","rude","middle","flipping"],char:"🖕",fitzpatrick_scale:!0,category:"people"},raised_hand_with_fingers_splayed:{keywords:["hand","fingers","palm"],char:"🖐",fitzpatrick_scale:!0,category:"people"},love_you:{keywords:["hand","fingers","gesture"],char:"🤟",fitzpatrick_scale:!0,category:"people"},metal:{keywords:["hand","fingers","evil_eye","sign_of_horns","rock_on"],char:"🤘",fitzpatrick_scale:!0,category:"people"},crossed_fingers:{keywords:["good","lucky"],char:"🤞",fitzpatrick_scale:!0,category:"people"},vulcan_salute:{keywords:["hand","fingers","spock","star trek"],char:"🖖",fitzpatrick_scale:!0,category:"people"},writing_hand:{keywords:["lower_left_ballpoint_pen","stationery","write","compose"],char:"✍",fitzpatrick_scale:!0,category:"people"},selfie:{keywords:["camera","phone"],char:"🤳",fitzpatrick_scale:!0,category:"people"},nail_care:{keywords:["beauty","manicure","finger","fashion","nail"],char:"💅",fitzpatrick_scale:!0,category:"people"},lips:{keywords:["mouth","kiss"],char:"👄",fitzpatrick_scale:!1,category:"people"},tooth:{keywords:["teeth","dentist"],char:"🦷",fitzpatrick_scale:!1,category:"people"},tongue:{keywords:["mouth","playful"],char:"👅",fitzpatrick_scale:!1,category:"people"},ear:{keywords:["face","hear","sound","listen"],char:"👂",fitzpatrick_scale:!0,category:"people"},nose:{keywords:["smell","sniff"],char:"👃",fitzpatrick_scale:!0,category:"people"},eye:{keywords:["face","look","see","watch","stare"],char:"👁",fitzpatrick_scale:!1,category:"people"},eyes:{keywords:["look","watch","stalk","peek","see"],char:"👀",fitzpatrick_scale:!1,category:"people"},brain:{keywords:["smart","intelligent"],char:"🧠",fitzpatrick_scale:!1,category:"people"},bust_in_silhouette:{keywords:["user","person","human"],char:"👤",fitzpatrick_scale:!1,category:"people"},busts_in_silhouette:{keywords:["user","person","human","group","team"],char:"👥",fitzpatrick_scale:!1,category:"people"},speaking_head:{keywords:["user","person","human","sing","say","talk"],char:"🗣",fitzpatrick_scale:!1,category:"people"},baby:{keywords:["child","boy","girl","toddler"],char:"👶",fitzpatrick_scale:!0,category:"people"},child:{keywords:["gender-neutral","young"],char:"🧒",fitzpatrick_scale:!0,category:"people"},boy:{keywords:["man","male","guy","teenager"],char:"👦",fitzpatrick_scale:!0,category:"people"},girl:{keywords:["female","woman","teenager"],char:"👧",fitzpatrick_scale:!0,category:"people"},adult:{keywords:["gender-neutral","person"],char:"🧑",fitzpatrick_scale:!0,category:"people"},man:{keywords:["mustache","father","dad","guy","classy","sir","moustache"],char:"👨",fitzpatrick_scale:!0,category:"people"},woman:{keywords:["female","girls","lady"],char:"👩",fitzpatrick_scale:!0,category:"people"},blonde_woman:{keywords:["woman","female","girl","blonde","person"],char:"👱♀️",fitzpatrick_scale:!0,category:"people"},blonde_man:{keywords:["man","male","boy","blonde","guy","person"],char:"👱",fitzpatrick_scale:!0,category:"people"},bearded_person:{keywords:["person","bewhiskered"],char:"🧔",fitzpatrick_scale:!0,category:"people"},older_adult:{keywords:["human","elder","senior","gender-neutral"],char:"🧓",fitzpatrick_scale:!0,category:"people"},older_man:{keywords:["human","male","men","old","elder","senior"],char:"👴",fitzpatrick_scale:!0,category:"people"},older_woman:{keywords:["human","female","women","lady","old","elder","senior"],char:"👵",fitzpatrick_scale:!0,category:"people"},man_with_gua_pi_mao:{keywords:["male","boy","chinese"],char:"👲",fitzpatrick_scale:!0,category:"people"},woman_with_headscarf:{keywords:["female","hijab","mantilla","tichel"],char:"🧕",fitzpatrick_scale:!0,category:"people"},woman_with_turban:{keywords:["female","indian","hinduism","arabs","woman"],char:"👳♀️",fitzpatrick_scale:!0,category:"people"},man_with_turban:{keywords:["male","indian","hinduism","arabs"],char:"👳",fitzpatrick_scale:!0,category:"people"},policewoman:{keywords:["woman","police","law","legal","enforcement","arrest","911","female"],char:"👮♀️",fitzpatrick_scale:!0,category:"people"},policeman:{keywords:["man","police","law","legal","enforcement","arrest","911"],char:"👮",fitzpatrick_scale:!0,category:"people"},construction_worker_woman:{keywords:["female","human","wip","build","construction","worker","labor","woman"],char:"👷♀️",fitzpatrick_scale:!0,category:"people"},construction_worker_man:{keywords:["male","human","wip","guy","build","construction","worker","labor"],char:"👷",fitzpatrick_scale:!0,category:"people"},guardswoman:{keywords:["uk","gb","british","female","royal","woman"],char:"💂♀️",fitzpatrick_scale:!0,category:"people"},guardsman:{keywords:["uk","gb","british","male","guy","royal"],char:"💂",fitzpatrick_scale:!0,category:"people"},female_detective:{keywords:["human","spy","detective","female","woman"],char:"🕵️♀️",fitzpatrick_scale:!0,category:"people"},male_detective:{keywords:["human","spy","detective"],char:"🕵",fitzpatrick_scale:!0,category:"people"},woman_health_worker:{keywords:["doctor","nurse","therapist","healthcare","woman","human"],char:"👩⚕️",fitzpatrick_scale:!0,category:"people"},man_health_worker:{keywords:["doctor","nurse","therapist","healthcare","man","human"],char:"👨⚕️",fitzpatrick_scale:!0,category:"people"},woman_farmer:{keywords:["rancher","gardener","woman","human"],char:"👩🌾",fitzpatrick_scale:!0,category:"people"},man_farmer:{keywords:["rancher","gardener","man","human"],char:"👨🌾",fitzpatrick_scale:!0,category:"people"},woman_cook:{keywords:["chef","woman","human"],char:"👩🍳",fitzpatrick_scale:!0,category:"people"},man_cook:{keywords:["chef","man","human"],char:"👨🍳",fitzpatrick_scale:!0,category:"people"},woman_student:{keywords:["graduate","woman","human"],char:"👩🎓",fitzpatrick_scale:!0,category:"people"},man_student:{keywords:["graduate","man","human"],char:"👨🎓",fitzpatrick_scale:!0,category:"people"},woman_singer:{keywords:["rockstar","entertainer","woman","human"],char:"👩🎤",fitzpatrick_scale:!0,category:"people"},man_singer:{keywords:["rockstar","entertainer","man","human"],char:"👨🎤",fitzpatrick_scale:!0,category:"people"},woman_teacher:{keywords:["instructor","professor","woman","human"],char:"👩🏫",fitzpatrick_scale:!0,category:"people"},man_teacher:{keywords:["instructor","professor","man","human"],char:"👨🏫",fitzpatrick_scale:!0,category:"people"},woman_factory_worker:{keywords:["assembly","industrial","woman","human"],char:"👩🏭",fitzpatrick_scale:!0,category:"people"},man_factory_worker:{keywords:["assembly","industrial","man","human"],char:"👨🏭",fitzpatrick_scale:!0,category:"people"},woman_technologist:{keywords:["coder","developer","engineer","programmer","software","woman","human","laptop","computer"],char:"👩💻",fitzpatrick_scale:!0,category:"people"},man_technologist:{keywords:["coder","developer","engineer","programmer","software","man","human","laptop","computer"],char:"👨💻",fitzpatrick_scale:!0,category:"people"},woman_office_worker:{keywords:["business","manager","woman","human"],char:"👩💼",fitzpatrick_scale:!0,category:"people"},man_office_worker:{keywords:["business","manager","man","human"],char:"👨💼",fitzpatrick_scale:!0,category:"people"},woman_mechanic:{keywords:["plumber","woman","human","wrench"],char:"👩🔧",fitzpatrick_scale:!0,category:"people"},man_mechanic:{keywords:["plumber","man","human","wrench"],char:"👨🔧",fitzpatrick_scale:!0,category:"people"},woman_scientist:{keywords:["biologist","chemist","engineer","physicist","woman","human"],char:"👩🔬",fitzpatrick_scale:!0,category:"people"},man_scientist:{keywords:["biologist","chemist","engineer","physicist","man","human"],char:"👨🔬",fitzpatrick_scale:!0,category:"people"},woman_artist:{keywords:["painter","woman","human"],char:"👩🎨",fitzpatrick_scale:!0,category:"people"},man_artist:{keywords:["painter","man","human"],char:"👨🎨",fitzpatrick_scale:!0,category:"people"},woman_firefighter:{keywords:["fireman","woman","human"],char:"👩🚒",fitzpatrick_scale:!0,category:"people"},man_firefighter:{keywords:["fireman","man","human"],char:"👨🚒",fitzpatrick_scale:!0,category:"people"},woman_pilot:{keywords:["aviator","plane","woman","human"],char:"👩✈️",fitzpatrick_scale:!0,category:"people"},man_pilot:{keywords:["aviator","plane","man","human"],char:"👨✈️",fitzpatrick_scale:!0,category:"people"},woman_astronaut:{keywords:["space","rocket","woman","human"],char:"👩🚀",fitzpatrick_scale:!0,category:"people"},man_astronaut:{keywords:["space","rocket","man","human"],char:"👨🚀",fitzpatrick_scale:!0,category:"people"},woman_judge:{keywords:["justice","court","woman","human"],char:"👩⚖️",fitzpatrick_scale:!0,category:"people"},man_judge:{keywords:["justice","court","man","human"],char:"👨⚖️",fitzpatrick_scale:!0,category:"people"},woman_superhero:{keywords:["woman","female","good","heroine","superpowers"],char:"🦸♀️",fitzpatrick_scale:!0,category:"people"},man_superhero:{keywords:["man","male","good","hero","superpowers"],char:"🦸♂️",fitzpatrick_scale:!0,category:"people"},woman_supervillain:{keywords:["woman","female","evil","bad","criminal","heroine","superpowers"],char:"🦹♀️",fitzpatrick_scale:!0,category:"people"},man_supervillain:{keywords:["man","male","evil","bad","criminal","hero","superpowers"],char:"🦹♂️",fitzpatrick_scale:!0,category:"people"},mrs_claus:{keywords:["woman","female","xmas","mother christmas"],char:"🤶",fitzpatrick_scale:!0,category:"people"},santa:{keywords:["festival","man","male","xmas","father christmas"],char:"🎅",fitzpatrick_scale:!0,category:"people"},sorceress:{keywords:["woman","female","mage","witch"],char:"🧙♀️",fitzpatrick_scale:!0,category:"people"},wizard:{keywords:["man","male","mage","sorcerer"],char:"🧙♂️",fitzpatrick_scale:!0,category:"people"},woman_elf:{keywords:["woman","female"],char:"🧝♀️",fitzpatrick_scale:!0,category:"people"},man_elf:{keywords:["man","male"],char:"🧝♂️",fitzpatrick_scale:!0,category:"people"},woman_vampire:{keywords:["woman","female"],char:"🧛♀️",fitzpatrick_scale:!0,category:"people"},man_vampire:{keywords:["man","male","dracula"],char:"🧛♂️",fitzpatrick_scale:!0,category:"people"},woman_zombie:{keywords:["woman","female","undead","walking dead"],char:"🧟♀️",fitzpatrick_scale:!1,category:"people"},man_zombie:{keywords:["man","male","dracula","undead","walking dead"],char:"🧟♂️",fitzpatrick_scale:!1,category:"people"},woman_genie:{keywords:["woman","female"],char:"🧞♀️",fitzpatrick_scale:!1,category:"people"},man_genie:{keywords:["man","male"],char:"🧞♂️",fitzpatrick_scale:!1,category:"people"},mermaid:{keywords:["woman","female","merwoman","ariel"],char:"🧜♀️",fitzpatrick_scale:!0,category:"people"},merman:{keywords:["man","male","triton"],char:"🧜♂️",fitzpatrick_scale:!0,category:"people"},woman_fairy:{keywords:["woman","female"],char:"🧚♀️",fitzpatrick_scale:!0,category:"people"},man_fairy:{keywords:["man","male"],char:"🧚♂️",fitzpatrick_scale:!0,category:"people"},angel:{keywords:["heaven","wings","halo"],char:"👼",fitzpatrick_scale:!0,category:"people"},pregnant_woman:{keywords:["baby"],char:"🤰",fitzpatrick_scale:!0,category:"people"},breastfeeding:{keywords:["nursing","baby"],char:"🤱",fitzpatrick_scale:!0,category:"people"},princess:{keywords:["girl","woman","female","blond","crown","royal","queen"],char:"👸",fitzpatrick_scale:!0,category:"people"},prince:{keywords:["boy","man","male","crown","royal","king"],char:"🤴",fitzpatrick_scale:!0,category:"people"},bride_with_veil:{keywords:["couple","marriage","wedding","woman","bride"],char:"👰",fitzpatrick_scale:!0,category:"people"},man_in_tuxedo:{keywords:["couple","marriage","wedding","groom"],char:"🤵",fitzpatrick_scale:!0,category:"people"},running_woman:{keywords:["woman","walking","exercise","race","running","female"],char:"🏃♀️",fitzpatrick_scale:!0,category:"people"},running_man:{keywords:["man","walking","exercise","race","running"],char:"🏃",fitzpatrick_scale:!0,category:"people"},walking_woman:{keywords:["human","feet","steps","woman","female"],char:"🚶♀️",fitzpatrick_scale:!0,category:"people"},walking_man:{keywords:["human","feet","steps"],char:"🚶",fitzpatrick_scale:!0,category:"people"},dancer:{keywords:["female","girl","woman","fun"],char:"💃",fitzpatrick_scale:!0,category:"people"},man_dancing:{keywords:["male","boy","fun","dancer"],char:"🕺",fitzpatrick_scale:!0,category:"people"},dancing_women:{keywords:["female","bunny","women","girls"],char:"👯",fitzpatrick_scale:!1,category:"people"},dancing_men:{keywords:["male","bunny","men","boys"],char:"👯♂️",fitzpatrick_scale:!1,category:"people"},couple:{keywords:["pair","people","human","love","date","dating","like","affection","valentines","marriage"],char:"👫",fitzpatrick_scale:!1,category:"people"},two_men_holding_hands:{keywords:["pair","couple","love","like","bromance","friendship","people","human"],char:"👬",fitzpatrick_scale:!1,category:"people"},two_women_holding_hands:{keywords:["pair","friendship","couple","love","like","female","people","human"],char:"👭",fitzpatrick_scale:!1,category:"people"},bowing_woman:{keywords:["woman","female","girl"],char:"🙇♀️",fitzpatrick_scale:!0,category:"people"},bowing_man:{keywords:["man","male","boy"],char:"🙇",fitzpatrick_scale:!0,category:"people"},man_facepalming:{keywords:["man","male","boy","disbelief"],char:"🤦♂️",fitzpatrick_scale:!0,category:"people"},woman_facepalming:{keywords:["woman","female","girl","disbelief"],char:"🤦♀️",fitzpatrick_scale:!0,category:"people"},woman_shrugging:{keywords:["woman","female","girl","confused","indifferent","doubt"],char:"🤷",fitzpatrick_scale:!0,category:"people"},man_shrugging:{keywords:["man","male","boy","confused","indifferent","doubt"],char:"🤷♂️",fitzpatrick_scale:!0,category:"people"},tipping_hand_woman:{keywords:["female","girl","woman","human","information"],char:"💁",fitzpatrick_scale:!0,category:"people"},tipping_hand_man:{keywords:["male","boy","man","human","information"],char:"💁♂️",fitzpatrick_scale:!0,category:"people"},no_good_woman:{keywords:["female","girl","woman","nope"],char:"🙅",fitzpatrick_scale:!0,category:"people"},no_good_man:{keywords:["male","boy","man","nope"],char:"🙅♂️",fitzpatrick_scale:!0,category:"people"},ok_woman:{keywords:["women","girl","female","pink","human","woman"],char:"🙆",fitzpatrick_scale:!0,category:"people"},ok_man:{keywords:["men","boy","male","blue","human","man"],char:"🙆♂️",fitzpatrick_scale:!0,category:"people"},raising_hand_woman:{keywords:["female","girl","woman"],char:"🙋",fitzpatrick_scale:!0,category:"people"},raising_hand_man:{keywords:["male","boy","man"],char:"🙋♂️",fitzpatrick_scale:!0,category:"people"},pouting_woman:{keywords:["female","girl","woman"],char:"🙎",fitzpatrick_scale:!0,category:"people"},pouting_man:{keywords:["male","boy","man"],char:"🙎♂️",fitzpatrick_scale:!0,category:"people"},frowning_woman:{keywords:["female","girl","woman","sad","depressed","discouraged","unhappy"],char:"🙍",fitzpatrick_scale:!0,category:"people"},frowning_man:{keywords:["male","boy","man","sad","depressed","discouraged","unhappy"],char:"🙍♂️",fitzpatrick_scale:!0,category:"people"},haircut_woman:{keywords:["female","girl","woman"],char:"💇",fitzpatrick_scale:!0,category:"people"},haircut_man:{keywords:["male","boy","man"],char:"💇♂️",fitzpatrick_scale:!0,category:"people"},massage_woman:{keywords:["female","girl","woman","head"],char:"💆",fitzpatrick_scale:!0,category:"people"},massage_man:{keywords:["male","boy","man","head"],char:"💆♂️",fitzpatrick_scale:!0,category:"people"},woman_in_steamy_room:{keywords:["female","woman","spa","steamroom","sauna"],char:"🧖♀️",fitzpatrick_scale:!0,category:"people"},man_in_steamy_room:{keywords:["male","man","spa","steamroom","sauna"],char:"🧖♂️",fitzpatrick_scale:!0,category:"people"},couple_with_heart_woman_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"💑",fitzpatrick_scale:!1,category:"people"},couple_with_heart_woman_woman:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"👩❤️👩",fitzpatrick_scale:!1,category:"people"},couple_with_heart_man_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"👨❤️👨",fitzpatrick_scale:!1,category:"people"},couplekiss_man_woman:{keywords:["pair","valentines","love","like","dating","marriage"],char:"💏",fitzpatrick_scale:!1,category:"people"},couplekiss_woman_woman:{keywords:["pair","valentines","love","like","dating","marriage"],char:"👩❤️💋👩",fitzpatrick_scale:!1,category:"people"},couplekiss_man_man:{keywords:["pair","valentines","love","like","dating","marriage"],char:"👨❤️💋👨",fitzpatrick_scale:!1,category:"people"},family_man_woman_boy:{keywords:["home","parents","child","mom","dad","father","mother","people","human"],char:"👪",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl:{keywords:["home","parents","people","human","child"],char:"👨👩👧",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl_boy:{keywords:["home","parents","people","human","children"],char:"👨👩👧👦",fitzpatrick_scale:!1,category:"people"},family_man_woman_boy_boy:{keywords:["home","parents","people","human","children"],char:"👨👩👦👦",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl_girl:{keywords:["home","parents","people","human","children"],char:"👨👩👧👧",fitzpatrick_scale:!1,category:"people"},family_woman_woman_boy:{keywords:["home","parents","people","human","children"],char:"👩👩👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl:{keywords:["home","parents","people","human","children"],char:"👩👩👧",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl_boy:{keywords:["home","parents","people","human","children"],char:"👩👩👧👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_boy_boy:{keywords:["home","parents","people","human","children"],char:"👩👩👦👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl_girl:{keywords:["home","parents","people","human","children"],char:"👩👩👧👧",fitzpatrick_scale:!1,category:"people"},family_man_man_boy:{keywords:["home","parents","people","human","children"],char:"👨👨👦",fitzpatrick_scale:!1,category:"people"},family_man_man_girl:{keywords:["home","parents","people","human","children"],char:"👨👨👧",fitzpatrick_scale:!1,category:"people"},family_man_man_girl_boy:{keywords:["home","parents","people","human","children"],char:"👨👨👧👦",fitzpatrick_scale:!1,category:"people"},family_man_man_boy_boy:{keywords:["home","parents","people","human","children"],char:"👨👨👦👦",fitzpatrick_scale:!1,category:"people"},family_man_man_girl_girl:{keywords:["home","parents","people","human","children"],char:"👨👨👧👧",fitzpatrick_scale:!1,category:"people"},family_woman_boy:{keywords:["home","parent","people","human","child"],char:"👩👦",fitzpatrick_scale:!1,category:"people"},family_woman_girl:{keywords:["home","parent","people","human","child"],char:"👩👧",fitzpatrick_scale:!1,category:"people"},family_woman_girl_boy:{keywords:["home","parent","people","human","children"],char:"👩👧👦",fitzpatrick_scale:!1,category:"people"},family_woman_boy_boy:{keywords:["home","parent","people","human","children"],char:"👩👦👦",fitzpatrick_scale:!1,category:"people"},family_woman_girl_girl:{keywords:["home","parent","people","human","children"],char:"👩👧👧",fitzpatrick_scale:!1,category:"people"},family_man_boy:{keywords:["home","parent","people","human","child"],char:"👨👦",fitzpatrick_scale:!1,category:"people"},family_man_girl:{keywords:["home","parent","people","human","child"],char:"👨👧",fitzpatrick_scale:!1,category:"people"},family_man_girl_boy:{keywords:["home","parent","people","human","children"],char:"👨👧👦",fitzpatrick_scale:!1,category:"people"},family_man_boy_boy:{keywords:["home","parent","people","human","children"],char:"👨👦👦",fitzpatrick_scale:!1,category:"people"},family_man_girl_girl:{keywords:["home","parent","people","human","children"],char:"👨👧👧",fitzpatrick_scale:!1,category:"people"},yarn:{keywords:["ball","crochet","knit"],char:"🧶",fitzpatrick_scale:!1,category:"people"},thread:{keywords:["needle","sewing","spool","string"],char:"🧵",fitzpatrick_scale:!1,category:"people"},coat:{keywords:["jacket"],char:"🧥",fitzpatrick_scale:!1,category:"people"},labcoat:{keywords:["doctor","experiment","scientist","chemist"],char:"🥼",fitzpatrick_scale:!1,category:"people"},womans_clothes:{keywords:["fashion","shopping_bags","female"],char:"👚",fitzpatrick_scale:!1,category:"people"},tshirt:{keywords:["fashion","cloth","casual","shirt","tee"],char:"👕",fitzpatrick_scale:!1,category:"people"},jeans:{keywords:["fashion","shopping"],char:"👖",fitzpatrick_scale:!1,category:"people"},necktie:{keywords:["shirt","suitup","formal","fashion","cloth","business"],char:"👔",fitzpatrick_scale:!1,category:"people"},dress:{keywords:["clothes","fashion","shopping"],char:"👗",fitzpatrick_scale:!1,category:"people"},bikini:{keywords:["swimming","female","woman","girl","fashion","beach","summer"],char:"👙",fitzpatrick_scale:!1,category:"people"},kimono:{keywords:["dress","fashion","women","female","japanese"],char:"👘",fitzpatrick_scale:!1,category:"people"},lipstick:{keywords:["female","girl","fashion","woman"],char:"💄",fitzpatrick_scale:!1,category:"people"},kiss:{keywords:["face","lips","love","like","affection","valentines"],char:"💋",fitzpatrick_scale:!1,category:"people"},footprints:{keywords:["feet","tracking","walking","beach"],char:"👣",fitzpatrick_scale:!1,category:"people"},flat_shoe:{keywords:["ballet","slip-on","slipper"],char:"🥿",fitzpatrick_scale:!1,category:"people"},high_heel:{keywords:["fashion","shoes","female","pumps","stiletto"],char:"👠",fitzpatrick_scale:!1,category:"people"},sandal:{keywords:["shoes","fashion","flip flops"],char:"👡",fitzpatrick_scale:!1,category:"people"},boot:{keywords:["shoes","fashion"],char:"👢",fitzpatrick_scale:!1,category:"people"},mans_shoe:{keywords:["fashion","male"],char:"👞",fitzpatrick_scale:!1,category:"people"},athletic_shoe:{keywords:["shoes","sports","sneakers"],char:"👟",fitzpatrick_scale:!1,category:"people"},hiking_boot:{keywords:["backpacking","camping","hiking"],char:"🥾",fitzpatrick_scale:!1,category:"people"},socks:{keywords:["stockings","clothes"],char:"🧦",fitzpatrick_scale:!1,category:"people"},gloves:{keywords:["hands","winter","clothes"],char:"🧤",fitzpatrick_scale:!1,category:"people"},scarf:{keywords:["neck","winter","clothes"],char:"🧣",fitzpatrick_scale:!1,category:"people"},womans_hat:{keywords:["fashion","accessories","female","lady","spring"],char:"👒",fitzpatrick_scale:!1,category:"people"},tophat:{keywords:["magic","gentleman","classy","circus"],char:"🎩",fitzpatrick_scale:!1,category:"people"},billed_hat:{keywords:["cap","baseball"],char:"🧢",fitzpatrick_scale:!1,category:"people"},rescue_worker_helmet:{keywords:["construction","build"],char:"⛑",fitzpatrick_scale:!1,category:"people"},mortar_board:{keywords:["school","college","degree","university","graduation","cap","hat","legal","learn","education"],char:"🎓",fitzpatrick_scale:!1,category:"people"},crown:{keywords:["king","kod","leader","royalty","lord"],char:"👑",fitzpatrick_scale:!1,category:"people"},school_satchel:{keywords:["student","education","bag","backpack"],char:"🎒",fitzpatrick_scale:!1,category:"people"},luggage:{keywords:["packing","travel"],char:"🧳",fitzpatrick_scale:!1,category:"people"},pouch:{keywords:["bag","accessories","shopping"],char:"👝",fitzpatrick_scale:!1,category:"people"},purse:{keywords:["fashion","accessories","money","sales","shopping"],char:"👛",fitzpatrick_scale:!1,category:"people"},handbag:{keywords:["fashion","accessory","accessories","shopping"],char:"👜",fitzpatrick_scale:!1,category:"people"},briefcase:{keywords:["business","documents","work","law","legal","job","career"],char:"💼",fitzpatrick_scale:!1,category:"people"},eyeglasses:{keywords:["fashion","accessories","eyesight","nerdy","dork","geek"],char:"👓",fitzpatrick_scale:!1,category:"people"},dark_sunglasses:{keywords:["face","cool","accessories"],char:"🕶",fitzpatrick_scale:!1,category:"people"},goggles:{keywords:["eyes","protection","safety"],char:"🥽",fitzpatrick_scale:!1,category:"people"},ring:{keywords:["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],char:"💍",fitzpatrick_scale:!1,category:"people"},closed_umbrella:{keywords:["weather","rain","drizzle"],char:"🌂",fitzpatrick_scale:!1,category:"people"},dog:{keywords:["animal","friend","nature","woof","puppy","pet","faithful"],char:"🐶",fitzpatrick_scale:!1,category:"animals_and_nature"},cat:{keywords:["animal","meow","nature","pet","kitten"],char:"🐱",fitzpatrick_scale:!1,category:"animals_and_nature"},mouse:{keywords:["animal","nature","cheese_wedge","rodent"],char:"🐭",fitzpatrick_scale:!1,category:"animals_and_nature"},hamster:{keywords:["animal","nature"],char:"🐹",fitzpatrick_scale:!1,category:"animals_and_nature"},rabbit:{keywords:["animal","nature","pet","spring","magic","bunny"],char:"🐰",fitzpatrick_scale:!1,category:"animals_and_nature"},fox_face:{keywords:["animal","nature","face"],char:"🦊",fitzpatrick_scale:!1,category:"animals_and_nature"},bear:{keywords:["animal","nature","wild"],char:"🐻",fitzpatrick_scale:!1,category:"animals_and_nature"},panda_face:{keywords:["animal","nature","panda"],char:"🐼",fitzpatrick_scale:!1,category:"animals_and_nature"},koala:{keywords:["animal","nature"],char:"🐨",fitzpatrick_scale:!1,category:"animals_and_nature"},tiger:{keywords:["animal","cat","danger","wild","nature","roar"],char:"🐯",fitzpatrick_scale:!1,category:"animals_and_nature"},lion:{keywords:["animal","nature"],char:"🦁",fitzpatrick_scale:!1,category:"animals_and_nature"},cow:{keywords:["beef","ox","animal","nature","moo","milk"],char:"🐮",fitzpatrick_scale:!1,category:"animals_and_nature"},pig:{keywords:["animal","oink","nature"],char:"🐷",fitzpatrick_scale:!1,category:"animals_and_nature"},pig_nose:{keywords:["animal","oink"],char:"🐽",fitzpatrick_scale:!1,category:"animals_and_nature"},frog:{keywords:["animal","nature","croak","toad"],char:"🐸",fitzpatrick_scale:!1,category:"animals_and_nature"},squid:{keywords:["animal","nature","ocean","sea"],char:"🦑",fitzpatrick_scale:!1,category:"animals_and_nature"},octopus:{keywords:["animal","creature","ocean","sea","nature","beach"],char:"🐙",fitzpatrick_scale:!1,category:"animals_and_nature"},shrimp:{keywords:["animal","ocean","nature","seafood"],char:"🦐",fitzpatrick_scale:!1,category:"animals_and_nature"},monkey_face:{keywords:["animal","nature","circus"],char:"🐵",fitzpatrick_scale:!1,category:"animals_and_nature"},gorilla:{keywords:["animal","nature","circus"],char:"🦍",fitzpatrick_scale:!1,category:"animals_and_nature"},see_no_evil:{keywords:["monkey","animal","nature","haha"],char:"🙈",fitzpatrick_scale:!1,category:"animals_and_nature"},hear_no_evil:{keywords:["animal","monkey","nature"],char:"🙉",fitzpatrick_scale:!1,category:"animals_and_nature"},speak_no_evil:{keywords:["monkey","animal","nature","omg"],char:"🙊",fitzpatrick_scale:!1,category:"animals_and_nature"},monkey:{keywords:["animal","nature","banana","circus"],char:"🐒",fitzpatrick_scale:!1,category:"animals_and_nature"},chicken:{keywords:["animal","cluck","nature","bird"],char:"🐔",fitzpatrick_scale:!1,category:"animals_and_nature"},penguin:{keywords:["animal","nature"],char:"🐧",fitzpatrick_scale:!1,category:"animals_and_nature"},bird:{keywords:["animal","nature","fly","tweet","spring"],char:"🐦",fitzpatrick_scale:!1,category:"animals_and_nature"},baby_chick:{keywords:["animal","chicken","bird"],char:"🐤",fitzpatrick_scale:!1,category:"animals_and_nature"},hatching_chick:{keywords:["animal","chicken","egg","born","baby","bird"],char:"🐣",fitzpatrick_scale:!1,category:"animals_and_nature"},hatched_chick:{keywords:["animal","chicken","baby","bird"],char:"🐥",fitzpatrick_scale:!1,category:"animals_and_nature"},duck:{keywords:["animal","nature","bird","mallard"],char:"🦆",fitzpatrick_scale:!1,category:"animals_and_nature"},eagle:{keywords:["animal","nature","bird"],char:"🦅",fitzpatrick_scale:!1,category:"animals_and_nature"},owl:{keywords:["animal","nature","bird","hoot"],char:"🦉",fitzpatrick_scale:!1,category:"animals_and_nature"},bat:{keywords:["animal","nature","blind","vampire"],char:"🦇",fitzpatrick_scale:!1,category:"animals_and_nature"},wolf:{keywords:["animal","nature","wild"],char:"🐺",fitzpatrick_scale:!1,category:"animals_and_nature"},boar:{keywords:["animal","nature"],char:"🐗",fitzpatrick_scale:!1,category:"animals_and_nature"},horse:{keywords:["animal","brown","nature"],char:"🐴",fitzpatrick_scale:!1,category:"animals_and_nature"},unicorn:{keywords:["animal","nature","mystical"],char:"🦄",fitzpatrick_scale:!1,category:"animals_and_nature"},honeybee:{keywords:["animal","insect","nature","bug","spring","honey"],char:"🐝",fitzpatrick_scale:!1,category:"animals_and_nature"},bug:{keywords:["animal","insect","nature","worm"],char:"🐛",fitzpatrick_scale:!1,category:"animals_and_nature"},butterfly:{keywords:["animal","insect","nature","caterpillar"],char:"🦋",fitzpatrick_scale:!1,category:"animals_and_nature"},snail:{keywords:["slow","animal","shell"],char:"🐌",fitzpatrick_scale:!1,category:"animals_and_nature"},beetle:{keywords:["animal","insect","nature","ladybug"],char:"🐞",fitzpatrick_scale:!1,category:"animals_and_nature"},ant:{keywords:["animal","insect","nature","bug"],char:"🐜",fitzpatrick_scale:!1,category:"animals_and_nature"},grasshopper:{keywords:["animal","cricket","chirp"],char:"🦗",fitzpatrick_scale:!1,category:"animals_and_nature"},spider:{keywords:["animal","arachnid"],char:"🕷",fitzpatrick_scale:!1,category:"animals_and_nature"},scorpion:{keywords:["animal","arachnid"],char:"🦂",fitzpatrick_scale:!1,category:"animals_and_nature"},crab:{keywords:["animal","crustacean"],char:"🦀",fitzpatrick_scale:!1,category:"animals_and_nature"},snake:{keywords:["animal","evil","nature","hiss","python"],char:"🐍",fitzpatrick_scale:!1,category:"animals_and_nature"},lizard:{keywords:["animal","nature","reptile"],char:"🦎",fitzpatrick_scale:!1,category:"animals_and_nature"},"t-rex":{keywords:["animal","nature","dinosaur","tyrannosaurus","extinct"],char:"🦖",fitzpatrick_scale:!1,category:"animals_and_nature"},sauropod:{keywords:["animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],char:"🦕",fitzpatrick_scale:!1,category:"animals_and_nature"},turtle:{keywords:["animal","slow","nature","tortoise"],char:"🐢",fitzpatrick_scale:!1,category:"animals_and_nature"},tropical_fish:{keywords:["animal","swim","ocean","beach","nemo"],char:"🐠",fitzpatrick_scale:!1,category:"animals_and_nature"},fish:{keywords:["animal","food","nature"],char:"🐟",fitzpatrick_scale:!1,category:"animals_and_nature"},blowfish:{keywords:["animal","nature","food","sea","ocean"],char:"🐡",fitzpatrick_scale:!1,category:"animals_and_nature"},dolphin:{keywords:["animal","nature","fish","sea","ocean","flipper","fins","beach"],char:"🐬",fitzpatrick_scale:!1,category:"animals_and_nature"},shark:{keywords:["animal","nature","fish","sea","ocean","jaws","fins","beach"],char:"🦈",fitzpatrick_scale:!1,category:"animals_and_nature"},whale:{keywords:["animal","nature","sea","ocean"],char:"🐳",fitzpatrick_scale:!1,category:"animals_and_nature"},whale2:{keywords:["animal","nature","sea","ocean"],char:"🐋",fitzpatrick_scale:!1,category:"animals_and_nature"},crocodile:{keywords:["animal","nature","reptile","lizard","alligator"],char:"🐊",fitzpatrick_scale:!1,category:"animals_and_nature"},leopard:{keywords:["animal","nature"],char:"🐆",fitzpatrick_scale:!1,category:"animals_and_nature"},zebra:{keywords:["animal","nature","stripes","safari"],char:"🦓",fitzpatrick_scale:!1,category:"animals_and_nature"},tiger2:{keywords:["animal","nature","roar"],char:"🐅",fitzpatrick_scale:!1,category:"animals_and_nature"},water_buffalo:{keywords:["animal","nature","ox","cow"],char:"🐃",fitzpatrick_scale:!1,category:"animals_and_nature"},ox:{keywords:["animal","cow","beef"],char:"🐂",fitzpatrick_scale:!1,category:"animals_and_nature"},cow2:{keywords:["beef","ox","animal","nature","moo","milk"],char:"🐄",fitzpatrick_scale:!1,category:"animals_and_nature"},deer:{keywords:["animal","nature","horns","venison"],char:"🦌",fitzpatrick_scale:!1,category:"animals_and_nature"},dromedary_camel:{keywords:["animal","hot","desert","hump"],char:"🐪",fitzpatrick_scale:!1,category:"animals_and_nature"},camel:{keywords:["animal","nature","hot","desert","hump"],char:"🐫",fitzpatrick_scale:!1,category:"animals_and_nature"},giraffe:{keywords:["animal","nature","spots","safari"],char:"🦒",fitzpatrick_scale:!1,category:"animals_and_nature"},elephant:{keywords:["animal","nature","nose","th","circus"],char:"🐘",fitzpatrick_scale:!1,category:"animals_and_nature"},rhinoceros:{keywords:["animal","nature","horn"],char:"🦏",fitzpatrick_scale:!1,category:"animals_and_nature"},goat:{keywords:["animal","nature"],char:"🐐",fitzpatrick_scale:!1,category:"animals_and_nature"},ram:{keywords:["animal","sheep","nature"],char:"🐏",fitzpatrick_scale:!1,category:"animals_and_nature"},sheep:{keywords:["animal","nature","wool","shipit"],char:"🐑",fitzpatrick_scale:!1,category:"animals_and_nature"},racehorse:{keywords:["animal","gamble","luck"],char:"🐎",fitzpatrick_scale:!1,category:"animals_and_nature"},pig2:{keywords:["animal","nature"],char:"🐖",fitzpatrick_scale:!1,category:"animals_and_nature"},rat:{keywords:["animal","mouse","rodent"],char:"🐀",fitzpatrick_scale:!1,category:"animals_and_nature"},mouse2:{keywords:["animal","nature","rodent"],char:"🐁",fitzpatrick_scale:!1,category:"animals_and_nature"},rooster:{keywords:["animal","nature","chicken"],char:"🐓",fitzpatrick_scale:!1,category:"animals_and_nature"},turkey:{keywords:["animal","bird"],char:"🦃",fitzpatrick_scale:!1,category:"animals_and_nature"},dove:{keywords:["animal","bird"],char:"🕊",fitzpatrick_scale:!1,category:"animals_and_nature"},dog2:{keywords:["animal","nature","friend","doge","pet","faithful"],char:"🐕",fitzpatrick_scale:!1,category:"animals_and_nature"},poodle:{keywords:["dog","animal","101","nature","pet"],char:"🐩",fitzpatrick_scale:!1,category:"animals_and_nature"},cat2:{keywords:["animal","meow","pet","cats"],char:"🐈",fitzpatrick_scale:!1,category:"animals_and_nature"},rabbit2:{keywords:["animal","nature","pet","magic","spring"],char:"🐇",fitzpatrick_scale:!1,category:"animals_and_nature"},chipmunk:{keywords:["animal","nature","rodent","squirrel"],char:"🐿",fitzpatrick_scale:!1,category:"animals_and_nature"},hedgehog:{keywords:["animal","nature","spiny"],char:"🦔",fitzpatrick_scale:!1,category:"animals_and_nature"},raccoon:{keywords:["animal","nature"],char:"🦝",fitzpatrick_scale:!1,category:"animals_and_nature"},llama:{keywords:["animal","nature","alpaca"],char:"🦙",fitzpatrick_scale:!1,category:"animals_and_nature"},hippopotamus:{keywords:["animal","nature"],char:"🦛",fitzpatrick_scale:!1,category:"animals_and_nature"},kangaroo:{keywords:["animal","nature","australia","joey","hop","marsupial"],char:"🦘",fitzpatrick_scale:!1,category:"animals_and_nature"},badger:{keywords:["animal","nature","honey"],char:"🦡",fitzpatrick_scale:!1,category:"animals_and_nature"},swan:{keywords:["animal","nature","bird"],char:"🦢",fitzpatrick_scale:!1,category:"animals_and_nature"},peacock:{keywords:["animal","nature","peahen","bird"],char:"🦚",fitzpatrick_scale:!1,category:"animals_and_nature"},parrot:{keywords:["animal","nature","bird","pirate","talk"],char:"🦜",fitzpatrick_scale:!1,category:"animals_and_nature"},lobster:{keywords:["animal","nature","bisque","claws","seafood"],char:"🦞",fitzpatrick_scale:!1,category:"animals_and_nature"},mosquito:{keywords:["animal","nature","insect","malaria"],char:"🦟",fitzpatrick_scale:!1,category:"animals_and_nature"},paw_prints:{keywords:["animal","tracking","footprints","dog","cat","pet","feet"],char:"🐾",fitzpatrick_scale:!1,category:"animals_and_nature"},dragon:{keywords:["animal","myth","nature","chinese","green"],char:"🐉",fitzpatrick_scale:!1,category:"animals_and_nature"},dragon_face:{keywords:["animal","myth","nature","chinese","green"],char:"🐲",fitzpatrick_scale:!1,category:"animals_and_nature"},cactus:{keywords:["vegetable","plant","nature"],char:"🌵",fitzpatrick_scale:!1,category:"animals_and_nature"},christmas_tree:{keywords:["festival","vacation","december","xmas","celebration"],char:"🎄",fitzpatrick_scale:!1,category:"animals_and_nature"},evergreen_tree:{keywords:["plant","nature"],char:"🌲",fitzpatrick_scale:!1,category:"animals_and_nature"},deciduous_tree:{keywords:["plant","nature"],char:"🌳",fitzpatrick_scale:!1,category:"animals_and_nature"},palm_tree:{keywords:["plant","vegetable","nature","summer","beach","mojito","tropical"],char:"🌴",fitzpatrick_scale:!1,category:"animals_and_nature"},seedling:{keywords:["plant","nature","grass","lawn","spring"],char:"🌱",fitzpatrick_scale:!1,category:"animals_and_nature"},herb:{keywords:["vegetable","plant","medicine","weed","grass","lawn"],char:"🌿",fitzpatrick_scale:!1,category:"animals_and_nature"},shamrock:{keywords:["vegetable","plant","nature","irish","clover"],char:"☘",fitzpatrick_scale:!1,category:"animals_and_nature"},four_leaf_clover:{keywords:["vegetable","plant","nature","lucky","irish"],char:"🍀",fitzpatrick_scale:!1,category:"animals_and_nature"},bamboo:{keywords:["plant","nature","vegetable","panda","pine_decoration"],char:"🎍",fitzpatrick_scale:!1,category:"animals_and_nature"},tanabata_tree:{keywords:["plant","nature","branch","summer"],char:"🎋",fitzpatrick_scale:!1,category:"animals_and_nature"},leaves:{keywords:["nature","plant","tree","vegetable","grass","lawn","spring"],char:"🍃",fitzpatrick_scale:!1,category:"animals_and_nature"},fallen_leaf:{keywords:["nature","plant","vegetable","leaves"],char:"🍂",fitzpatrick_scale:!1,category:"animals_and_nature"},maple_leaf:{keywords:["nature","plant","vegetable","ca","fall"],char:"🍁",fitzpatrick_scale:!1,category:"animals_and_nature"},ear_of_rice:{keywords:["nature","plant"],char:"🌾",fitzpatrick_scale:!1,category:"animals_and_nature"},hibiscus:{keywords:["plant","vegetable","flowers","beach"],char:"🌺",fitzpatrick_scale:!1,category:"animals_and_nature"},sunflower:{keywords:["nature","plant","fall"],char:"🌻",fitzpatrick_scale:!1,category:"animals_and_nature"},rose:{keywords:["flowers","valentines","love","spring"],char:"🌹",fitzpatrick_scale:!1,category:"animals_and_nature"},wilted_flower:{keywords:["plant","nature","flower"],char:"🥀",fitzpatrick_scale:!1,category:"animals_and_nature"},tulip:{keywords:["flowers","plant","nature","summer","spring"],char:"🌷",fitzpatrick_scale:!1,category:"animals_and_nature"},blossom:{keywords:["nature","flowers","yellow"],char:"🌼",fitzpatrick_scale:!1,category:"animals_and_nature"},cherry_blossom:{keywords:["nature","plant","spring","flower"],char:"🌸",fitzpatrick_scale:!1,category:"animals_and_nature"},bouquet:{keywords:["flowers","nature","spring"],char:"💐",fitzpatrick_scale:!1,category:"animals_and_nature"},mushroom:{keywords:["plant","vegetable"],char:"🍄",fitzpatrick_scale:!1,category:"animals_and_nature"},chestnut:{keywords:["food","squirrel"],char:"🌰",fitzpatrick_scale:!1,category:"animals_and_nature"},jack_o_lantern:{keywords:["halloween","light","pumpkin","creepy","fall"],char:"🎃",fitzpatrick_scale:!1,category:"animals_and_nature"},shell:{keywords:["nature","sea","beach"],char:"🐚",fitzpatrick_scale:!1,category:"animals_and_nature"},spider_web:{keywords:["animal","insect","arachnid","silk"],char:"🕸",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_americas:{keywords:["globe","world","USA","international"],char:"🌎",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_africa:{keywords:["globe","world","international"],char:"🌍",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_asia:{keywords:["globe","world","east","international"],char:"🌏",fitzpatrick_scale:!1,category:"animals_and_nature"},full_moon:{keywords:["nature","yellow","twilight","planet","space","night","evening","sleep"],char:"🌕",fitzpatrick_scale:!1,category:"animals_and_nature"},waning_gibbous_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep","waxing_gibbous_moon"],char:"🌖",fitzpatrick_scale:!1,category:"animals_and_nature"},last_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌗",fitzpatrick_scale:!1,category:"animals_and_nature"},waning_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌘",fitzpatrick_scale:!1,category:"animals_and_nature"},new_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌑",fitzpatrick_scale:!1,category:"animals_and_nature"},waxing_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌒",fitzpatrick_scale:!1,category:"animals_and_nature"},first_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌓",fitzpatrick_scale:!1,category:"animals_and_nature"},waxing_gibbous_moon:{keywords:["nature","night","sky","gray","twilight","planet","space","evening","sleep"],char:"🌔",fitzpatrick_scale:!1,category:"animals_and_nature"},new_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌚",fitzpatrick_scale:!1,category:"animals_and_nature"},full_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌝",fitzpatrick_scale:!1,category:"animals_and_nature"},first_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌛",fitzpatrick_scale:!1,category:"animals_and_nature"},last_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌜",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_with_face:{keywords:["nature","morning","sky"],char:"🌞",fitzpatrick_scale:!1,category:"animals_and_nature"},crescent_moon:{keywords:["night","sleep","sky","evening","magic"],char:"🌙",fitzpatrick_scale:!1,category:"animals_and_nature"},star:{keywords:["night","yellow"],char:"⭐",fitzpatrick_scale:!1,category:"animals_and_nature"},star2:{keywords:["night","sparkle","awesome","good","magic"],char:"🌟",fitzpatrick_scale:!1,category:"animals_and_nature"},dizzy:{keywords:["star","sparkle","shoot","magic"],char:"💫",fitzpatrick_scale:!1,category:"animals_and_nature"},sparkles:{keywords:["stars","shine","shiny","cool","awesome","good","magic"],char:"✨",fitzpatrick_scale:!1,category:"animals_and_nature"},comet:{keywords:["space"],char:"☄",fitzpatrick_scale:!1,category:"animals_and_nature"},sunny:{keywords:["weather","nature","brightness","summer","beach","spring"],char:"☀️",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_small_cloud:{keywords:["weather"],char:"🌤",fitzpatrick_scale:!1,category:"animals_and_nature"},partly_sunny:{keywords:["weather","nature","cloudy","morning","fall","spring"],char:"⛅",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_large_cloud:{keywords:["weather"],char:"🌥",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_rain_cloud:{keywords:["weather"],char:"🌦",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud:{keywords:["weather","sky"],char:"☁️",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_rain:{keywords:["weather"],char:"🌧",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_lightning_and_rain:{keywords:["weather","lightning"],char:"⛈",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_lightning:{keywords:["weather","thunder"],char:"🌩",fitzpatrick_scale:!1,category:"animals_and_nature"},zap:{keywords:["thunder","weather","lightning bolt","fast"],char:"⚡",fitzpatrick_scale:!1,category:"animals_and_nature"},fire:{keywords:["hot","cook","flame"],char:"🔥",fitzpatrick_scale:!1,category:"animals_and_nature"},boom:{keywords:["bomb","explode","explosion","collision","blown"],char:"💥",fitzpatrick_scale:!1,category:"animals_and_nature"},snowflake:{keywords:["winter","season","cold","weather","christmas","xmas"],char:"❄️",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_snow:{keywords:["weather"],char:"🌨",fitzpatrick_scale:!1,category:"animals_and_nature"},snowman:{keywords:["winter","season","cold","weather","christmas","xmas","frozen","without_snow"],char:"⛄",fitzpatrick_scale:!1,category:"animals_and_nature"},snowman_with_snow:{keywords:["winter","season","cold","weather","christmas","xmas","frozen"],char:"☃",fitzpatrick_scale:!1,category:"animals_and_nature"},wind_face:{keywords:["gust","air"],char:"🌬",fitzpatrick_scale:!1,category:"animals_and_nature"},dash:{keywords:["wind","air","fast","shoo","fart","smoke","puff"],char:"💨",fitzpatrick_scale:!1,category:"animals_and_nature"},tornado:{keywords:["weather","cyclone","twister"],char:"🌪",fitzpatrick_scale:!1,category:"animals_and_nature"},fog:{keywords:["weather"],char:"🌫",fitzpatrick_scale:!1,category:"animals_and_nature"},open_umbrella:{keywords:["weather","spring"],char:"☂",fitzpatrick_scale:!1,category:"animals_and_nature"},umbrella:{keywords:["rainy","weather","spring"],char:"☔",fitzpatrick_scale:!1,category:"animals_and_nature"},droplet:{keywords:["water","drip","faucet","spring"],char:"💧",fitzpatrick_scale:!1,category:"animals_and_nature"},sweat_drops:{keywords:["water","drip","oops"],char:"💦",fitzpatrick_scale:!1,category:"animals_and_nature"},ocean:{keywords:["sea","water","wave","nature","tsunami","disaster"],char:"🌊",fitzpatrick_scale:!1,category:"animals_and_nature"},green_apple:{keywords:["fruit","nature"],char:"🍏",fitzpatrick_scale:!1,category:"food_and_drink"},apple:{keywords:["fruit","mac","school"],char:"🍎",fitzpatrick_scale:!1,category:"food_and_drink"},pear:{keywords:["fruit","nature","food"],char:"🍐",fitzpatrick_scale:!1,category:"food_and_drink"},tangerine:{keywords:["food","fruit","nature","orange"],char:"🍊",fitzpatrick_scale:!1,category:"food_and_drink"},lemon:{keywords:["fruit","nature"],char:"🍋",fitzpatrick_scale:!1,category:"food_and_drink"},banana:{keywords:["fruit","food","monkey"],char:"🍌",fitzpatrick_scale:!1,category:"food_and_drink"},watermelon:{keywords:["fruit","food","picnic","summer"],char:"🍉",fitzpatrick_scale:!1,category:"food_and_drink"},grapes:{keywords:["fruit","food","wine"],char:"🍇",fitzpatrick_scale:!1,category:"food_and_drink"},strawberry:{keywords:["fruit","food","nature"],char:"🍓",fitzpatrick_scale:!1,category:"food_and_drink"},melon:{keywords:["fruit","nature","food"],char:"🍈",fitzpatrick_scale:!1,category:"food_and_drink"},cherries:{keywords:["food","fruit"],char:"🍒",fitzpatrick_scale:!1,category:"food_and_drink"},peach:{keywords:["fruit","nature","food"],char:"🍑",fitzpatrick_scale:!1,category:"food_and_drink"},pineapple:{keywords:["fruit","nature","food"],char:"🍍",fitzpatrick_scale:!1,category:"food_and_drink"},coconut:{keywords:["fruit","nature","food","palm"],char:"🥥",fitzpatrick_scale:!1,category:"food_and_drink"},kiwi_fruit:{keywords:["fruit","food"],char:"🥝",fitzpatrick_scale:!1,category:"food_and_drink"},mango:{keywords:["fruit","food","tropical"],char:"🥭",fitzpatrick_scale:!1,category:"food_and_drink"},avocado:{keywords:["fruit","food"],char:"🥑",fitzpatrick_scale:!1,category:"food_and_drink"},broccoli:{keywords:["fruit","food","vegetable"],char:"🥦",fitzpatrick_scale:!1,category:"food_and_drink"},tomato:{keywords:["fruit","vegetable","nature","food"],char:"🍅",fitzpatrick_scale:!1,category:"food_and_drink"},eggplant:{keywords:["vegetable","nature","food","aubergine"],char:"🍆",fitzpatrick_scale:!1,category:"food_and_drink"},cucumber:{keywords:["fruit","food","pickle"],char:"🥒",fitzpatrick_scale:!1,category:"food_and_drink"},carrot:{keywords:["vegetable","food","orange"],char:"🥕",fitzpatrick_scale:!1,category:"food_and_drink"},hot_pepper:{keywords:["food","spicy","chilli","chili"],char:"🌶",fitzpatrick_scale:!1,category:"food_and_drink"},potato:{keywords:["food","tuber","vegatable","starch"],char:"🥔",fitzpatrick_scale:!1,category:"food_and_drink"},corn:{keywords:["food","vegetable","plant"],char:"🌽",fitzpatrick_scale:!1,category:"food_and_drink"},leafy_greens:{keywords:["food","vegetable","plant","bok choy","cabbage","kale","lettuce"],char:"🥬",fitzpatrick_scale:!1,category:"food_and_drink"},sweet_potato:{keywords:["food","nature"],char:"🍠",fitzpatrick_scale:!1,category:"food_and_drink"},peanuts:{keywords:["food","nut"],char:"🥜",fitzpatrick_scale:!1,category:"food_and_drink"},honey_pot:{keywords:["bees","sweet","kitchen"],char:"🍯",fitzpatrick_scale:!1,category:"food_and_drink"},croissant:{keywords:["food","bread","french"],char:"🥐",fitzpatrick_scale:!1,category:"food_and_drink"},bread:{keywords:["food","wheat","breakfast","toast"],char:"🍞",fitzpatrick_scale:!1,category:"food_and_drink"},baguette_bread:{keywords:["food","bread","french"],char:"🥖",fitzpatrick_scale:!1,category:"food_and_drink"},bagel:{keywords:["food","bread","bakery","schmear"],char:"🥯",fitzpatrick_scale:!1,category:"food_and_drink"},pretzel:{keywords:["food","bread","twisted"],char:"🥨",fitzpatrick_scale:!1,category:"food_and_drink"},cheese:{keywords:["food","chadder"],char:"🧀",fitzpatrick_scale:!1,category:"food_and_drink"},egg:{keywords:["food","chicken","breakfast"],char:"🥚",fitzpatrick_scale:!1,category:"food_and_drink"},bacon:{keywords:["food","breakfast","pork","pig","meat"],char:"🥓",fitzpatrick_scale:!1,category:"food_and_drink"},steak:{keywords:["food","cow","meat","cut","chop","lambchop","porkchop"],char:"🥩",fitzpatrick_scale:!1,category:"food_and_drink"},pancakes:{keywords:["food","breakfast","flapjacks","hotcakes"],char:"🥞",fitzpatrick_scale:!1,category:"food_and_drink"},poultry_leg:{keywords:["food","meat","drumstick","bird","chicken","turkey"],char:"🍗",fitzpatrick_scale:!1,category:"food_and_drink"},meat_on_bone:{keywords:["good","food","drumstick"],char:"🍖",fitzpatrick_scale:!1,category:"food_and_drink"},bone:{keywords:["skeleton"],char:"🦴",fitzpatrick_scale:!1,category:"food_and_drink"},fried_shrimp:{keywords:["food","animal","appetizer","summer"],char:"🍤",fitzpatrick_scale:!1,category:"food_and_drink"},fried_egg:{keywords:["food","breakfast","kitchen","egg"],char:"🍳",fitzpatrick_scale:!1,category:"food_and_drink"},hamburger:{keywords:["meat","fast food","beef","cheeseburger","mcdonalds","burger king"],char:"🍔",fitzpatrick_scale:!1,category:"food_and_drink"},fries:{keywords:["chips","snack","fast food"],char:"🍟",fitzpatrick_scale:!1,category:"food_and_drink"},stuffed_flatbread:{keywords:["food","flatbread","stuffed","gyro"],char:"🥙",fitzpatrick_scale:!1,category:"food_and_drink"},hotdog:{keywords:["food","frankfurter"],char:"🌭",fitzpatrick_scale:!1,category:"food_and_drink"},pizza:{keywords:["food","party"],char:"🍕",fitzpatrick_scale:!1,category:"food_and_drink"},sandwich:{keywords:["food","lunch","bread"],char:"🥪",fitzpatrick_scale:!1,category:"food_and_drink"},canned_food:{keywords:["food","soup"],char:"🥫",fitzpatrick_scale:!1,category:"food_and_drink"},spaghetti:{keywords:["food","italian","noodle"],char:"🍝",fitzpatrick_scale:!1,category:"food_and_drink"},taco:{keywords:["food","mexican"],char:"🌮",fitzpatrick_scale:!1,category:"food_and_drink"},burrito:{keywords:["food","mexican"],char:"🌯",fitzpatrick_scale:!1,category:"food_and_drink"},green_salad:{keywords:["food","healthy","lettuce"],char:"🥗",fitzpatrick_scale:!1,category:"food_and_drink"},shallow_pan_of_food:{keywords:["food","cooking","casserole","paella"],char:"🥘",fitzpatrick_scale:!1,category:"food_and_drink"},ramen:{keywords:["food","japanese","noodle","chopsticks"],char:"🍜",fitzpatrick_scale:!1,category:"food_and_drink"},stew:{keywords:["food","meat","soup"],char:"🍲",fitzpatrick_scale:!1,category:"food_and_drink"},fish_cake:{keywords:["food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],char:"🍥",fitzpatrick_scale:!1,category:"food_and_drink"},fortune_cookie:{keywords:["food","prophecy"],char:"🥠",fitzpatrick_scale:!1,category:"food_and_drink"},sushi:{keywords:["food","fish","japanese","rice"],char:"🍣",fitzpatrick_scale:!1,category:"food_and_drink"},bento:{keywords:["food","japanese","box"],char:"🍱",fitzpatrick_scale:!1,category:"food_and_drink"},curry:{keywords:["food","spicy","hot","indian"],char:"🍛",fitzpatrick_scale:!1,category:"food_and_drink"},rice_ball:{keywords:["food","japanese"],char:"🍙",fitzpatrick_scale:!1,category:"food_and_drink"},rice:{keywords:["food","china","asian"],char:"🍚",fitzpatrick_scale:!1,category:"food_and_drink"},rice_cracker:{keywords:["food","japanese"],char:"🍘",fitzpatrick_scale:!1,category:"food_and_drink"},oden:{keywords:["food","japanese"],char:"🍢",fitzpatrick_scale:!1,category:"food_and_drink"},dango:{keywords:["food","dessert","sweet","japanese","barbecue","meat"],char:"🍡",fitzpatrick_scale:!1,category:"food_and_drink"},shaved_ice:{keywords:["hot","dessert","summer"],char:"🍧",fitzpatrick_scale:!1,category:"food_and_drink"},ice_cream:{keywords:["food","hot","dessert"],char:"🍨",fitzpatrick_scale:!1,category:"food_and_drink"},icecream:{keywords:["food","hot","dessert","summer"],char:"🍦",fitzpatrick_scale:!1,category:"food_and_drink"},pie:{keywords:["food","dessert","pastry"],char:"🥧",fitzpatrick_scale:!1,category:"food_and_drink"},cake:{keywords:["food","dessert"],char:"🍰",fitzpatrick_scale:!1,category:"food_and_drink"},cupcake:{keywords:["food","dessert","bakery","sweet"],char:"🧁",fitzpatrick_scale:!1,category:"food_and_drink"},moon_cake:{keywords:["food","autumn"],char:"🥮",fitzpatrick_scale:!1,category:"food_and_drink"},birthday:{keywords:["food","dessert","cake"],char:"🎂",fitzpatrick_scale:!1,category:"food_and_drink"},custard:{keywords:["dessert","food"],char:"🍮",fitzpatrick_scale:!1,category:"food_and_drink"},candy:{keywords:["snack","dessert","sweet","lolly"],char:"🍬",fitzpatrick_scale:!1,category:"food_and_drink"},lollipop:{keywords:["food","snack","candy","sweet"],char:"🍭",fitzpatrick_scale:!1,category:"food_and_drink"},chocolate_bar:{keywords:["food","snack","dessert","sweet"],char:"🍫",fitzpatrick_scale:!1,category:"food_and_drink"},popcorn:{keywords:["food","movie theater","films","snack"],char:"🍿",fitzpatrick_scale:!1,category:"food_and_drink"},dumpling:{keywords:["food","empanada","pierogi","potsticker"],char:"🥟",fitzpatrick_scale:!1,category:"food_and_drink"},doughnut:{keywords:["food","dessert","snack","sweet","donut"],char:"🍩",fitzpatrick_scale:!1,category:"food_and_drink"},cookie:{keywords:["food","snack","oreo","chocolate","sweet","dessert"],char:"🍪",fitzpatrick_scale:!1,category:"food_and_drink"},milk_glass:{keywords:["beverage","drink","cow"],char:"🥛",fitzpatrick_scale:!1,category:"food_and_drink"},beer:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"🍺",fitzpatrick_scale:!1,category:"food_and_drink"},beers:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"🍻",fitzpatrick_scale:!1,category:"food_and_drink"},clinking_glasses:{keywords:["beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],char:"🥂",fitzpatrick_scale:!1,category:"food_and_drink"},wine_glass:{keywords:["drink","beverage","drunk","alcohol","booze"],char:"🍷",fitzpatrick_scale:!1,category:"food_and_drink"},tumbler_glass:{keywords:["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],char:"🥃",fitzpatrick_scale:!1,category:"food_and_drink"},cocktail:{keywords:["drink","drunk","alcohol","beverage","booze","mojito"],char:"🍸",fitzpatrick_scale:!1,category:"food_and_drink"},tropical_drink:{keywords:["beverage","cocktail","summer","beach","alcohol","booze","mojito"],char:"🍹",fitzpatrick_scale:!1,category:"food_and_drink"},champagne:{keywords:["drink","wine","bottle","celebration"],char:"🍾",fitzpatrick_scale:!1,category:"food_and_drink"},sake:{keywords:["wine","drink","drunk","beverage","japanese","alcohol","booze"],char:"🍶",fitzpatrick_scale:!1,category:"food_and_drink"},tea:{keywords:["drink","bowl","breakfast","green","british"],char:"🍵",fitzpatrick_scale:!1,category:"food_and_drink"},cup_with_straw:{keywords:["drink","soda"],char:"🥤",fitzpatrick_scale:!1,category:"food_and_drink"},coffee:{keywords:["beverage","caffeine","latte","espresso"],char:"☕",fitzpatrick_scale:!1,category:"food_and_drink"},baby_bottle:{keywords:["food","container","milk"],char:"🍼",fitzpatrick_scale:!1,category:"food_and_drink"},salt:{keywords:["condiment","shaker"],char:"🧂",fitzpatrick_scale:!1,category:"food_and_drink"},spoon:{keywords:["cutlery","kitchen","tableware"],char:"🥄",fitzpatrick_scale:!1,category:"food_and_drink"},fork_and_knife:{keywords:["cutlery","kitchen"],char:"🍴",fitzpatrick_scale:!1,category:"food_and_drink"},plate_with_cutlery:{keywords:["food","eat","meal","lunch","dinner","restaurant"],char:"🍽",fitzpatrick_scale:!1,category:"food_and_drink"},bowl_with_spoon:{keywords:["food","breakfast","cereal","oatmeal","porridge"],char:"🥣",fitzpatrick_scale:!1,category:"food_and_drink"},takeout_box:{keywords:["food","leftovers"],char:"🥡",fitzpatrick_scale:!1,category:"food_and_drink"},chopsticks:{keywords:["food"],char:"🥢",fitzpatrick_scale:!1,category:"food_and_drink"},soccer:{keywords:["sports","football"],char:"⚽",fitzpatrick_scale:!1,category:"activity"},basketball:{keywords:["sports","balls","NBA"],char:"🏀",fitzpatrick_scale:!1,category:"activity"},football:{keywords:["sports","balls","NFL"],char:"🏈",fitzpatrick_scale:!1,category:"activity"},baseball:{keywords:["sports","balls"],char:"⚾",fitzpatrick_scale:!1,category:"activity"},softball:{keywords:["sports","balls"],char:"🥎",fitzpatrick_scale:!1,category:"activity"},tennis:{keywords:["sports","balls","green"],char:"🎾",fitzpatrick_scale:!1,category:"activity"},volleyball:{keywords:["sports","balls"],char:"🏐",fitzpatrick_scale:!1,category:"activity"},rugby_football:{keywords:["sports","team"],char:"🏉",fitzpatrick_scale:!1,category:"activity"},flying_disc:{keywords:["sports","frisbee","ultimate"],char:"🥏",fitzpatrick_scale:!1,category:"activity"},"8ball":{keywords:["pool","hobby","game","luck","magic"],char:"🎱",fitzpatrick_scale:!1,category:"activity"},golf:{keywords:["sports","business","flag","hole","summer"],char:"⛳",fitzpatrick_scale:!1,category:"activity"},golfing_woman:{keywords:["sports","business","woman","female"],char:"🏌️♀️",fitzpatrick_scale:!1,category:"activity"},golfing_man:{keywords:["sports","business"],char:"🏌",fitzpatrick_scale:!0,category:"activity"},ping_pong:{keywords:["sports","pingpong"],char:"🏓",fitzpatrick_scale:!1,category:"activity"},badminton:{keywords:["sports"],char:"🏸",fitzpatrick_scale:!1,category:"activity"},goal_net:{keywords:["sports"],char:"🥅",fitzpatrick_scale:!1,category:"activity"},ice_hockey:{keywords:["sports"],char:"🏒",fitzpatrick_scale:!1,category:"activity"},field_hockey:{keywords:["sports"],char:"🏑",fitzpatrick_scale:!1,category:"activity"},lacrosse:{keywords:["sports","ball","stick"],char:"🥍",fitzpatrick_scale:!1,category:"activity"},cricket:{keywords:["sports"],char:"🏏",fitzpatrick_scale:!1,category:"activity"},ski:{keywords:["sports","winter","cold","snow"],char:"🎿",fitzpatrick_scale:!1,category:"activity"},skier:{keywords:["sports","winter","snow"],char:"⛷",fitzpatrick_scale:!1,category:"activity"},snowboarder:{keywords:["sports","winter"],char:"🏂",fitzpatrick_scale:!0,category:"activity"},person_fencing:{keywords:["sports","fencing","sword"],char:"🤺",fitzpatrick_scale:!1,category:"activity"},women_wrestling:{keywords:["sports","wrestlers"],char:"🤼♀️",fitzpatrick_scale:!1,category:"activity"},men_wrestling:{keywords:["sports","wrestlers"],char:"🤼♂️",fitzpatrick_scale:!1,category:"activity"},woman_cartwheeling:{keywords:["gymnastics"],char:"🤸♀️",fitzpatrick_scale:!0,category:"activity"},man_cartwheeling:{keywords:["gymnastics"],char:"🤸♂️",fitzpatrick_scale:!0,category:"activity"},woman_playing_handball:{keywords:["sports"],char:"🤾♀️",fitzpatrick_scale:!0,category:"activity"},man_playing_handball:{keywords:["sports"],char:"🤾♂️",fitzpatrick_scale:!0,category:"activity"},ice_skate:{keywords:["sports"],char:"⛸",fitzpatrick_scale:!1,category:"activity"},curling_stone:{keywords:["sports"],char:"🥌",fitzpatrick_scale:!1,category:"activity"},skateboard:{keywords:["board"],char:"🛹",fitzpatrick_scale:!1,category:"activity"},sled:{keywords:["sleigh","luge","toboggan"],char:"🛷",fitzpatrick_scale:!1,category:"activity"},bow_and_arrow:{keywords:["sports"],char:"🏹",fitzpatrick_scale:!1,category:"activity"},fishing_pole_and_fish:{keywords:["food","hobby","summer"],char:"🎣",fitzpatrick_scale:!1,category:"activity"},boxing_glove:{keywords:["sports","fighting"],char:"🥊",fitzpatrick_scale:!1,category:"activity"},martial_arts_uniform:{keywords:["judo","karate","taekwondo"],char:"🥋",fitzpatrick_scale:!1,category:"activity"},rowing_woman:{keywords:["sports","hobby","water","ship","woman","female"],char:"🚣♀️",fitzpatrick_scale:!0,category:"activity"},rowing_man:{keywords:["sports","hobby","water","ship"],char:"🚣",fitzpatrick_scale:!0,category:"activity"},climbing_woman:{keywords:["sports","hobby","woman","female","rock"],char:"🧗♀️",fitzpatrick_scale:!0,category:"activity"},climbing_man:{keywords:["sports","hobby","man","male","rock"],char:"🧗♂️",fitzpatrick_scale:!0,category:"activity"},swimming_woman:{keywords:["sports","exercise","human","athlete","water","summer","woman","female"],char:"🏊♀️",fitzpatrick_scale:!0,category:"activity"},swimming_man:{keywords:["sports","exercise","human","athlete","water","summer"],char:"🏊",fitzpatrick_scale:!0,category:"activity"},woman_playing_water_polo:{keywords:["sports","pool"],char:"🤽♀️",fitzpatrick_scale:!0,category:"activity"},man_playing_water_polo:{keywords:["sports","pool"],char:"🤽♂️",fitzpatrick_scale:!0,category:"activity"},woman_in_lotus_position:{keywords:["woman","female","meditation","yoga","serenity","zen","mindfulness"],char:"🧘♀️",fitzpatrick_scale:!0,category:"activity"},man_in_lotus_position:{keywords:["man","male","meditation","yoga","serenity","zen","mindfulness"],char:"🧘♂️",fitzpatrick_scale:!0,category:"activity"},surfing_woman:{keywords:["sports","ocean","sea","summer","beach","woman","female"],char:"🏄♀️",fitzpatrick_scale:!0,category:"activity"},surfing_man:{keywords:["sports","ocean","sea","summer","beach"],char:"🏄",fitzpatrick_scale:!0,category:"activity"},bath:{keywords:["clean","shower","bathroom"],char:"🛀",fitzpatrick_scale:!0,category:"activity"},basketball_woman:{keywords:["sports","human","woman","female"],char:"⛹️♀️",fitzpatrick_scale:!0,category:"activity"},basketball_man:{keywords:["sports","human"],char:"⛹",fitzpatrick_scale:!0,category:"activity"},weight_lifting_woman:{keywords:["sports","training","exercise","woman","female"],char:"🏋️♀️",fitzpatrick_scale:!0,category:"activity"},weight_lifting_man:{keywords:["sports","training","exercise"],char:"🏋",fitzpatrick_scale:!0,category:"activity"},biking_woman:{keywords:["sports","bike","exercise","hipster","woman","female"],char:"🚴♀️",fitzpatrick_scale:!0,category:"activity"},biking_man:{keywords:["sports","bike","exercise","hipster"],char:"🚴",fitzpatrick_scale:!0,category:"activity"},mountain_biking_woman:{keywords:["transportation","sports","human","race","bike","woman","female"],char:"🚵♀️",fitzpatrick_scale:!0,category:"activity"},mountain_biking_man:{keywords:["transportation","sports","human","race","bike"],char:"🚵",fitzpatrick_scale:!0,category:"activity"},horse_racing:{keywords:["animal","betting","competition","gambling","luck"],char:"🏇",fitzpatrick_scale:!0,category:"activity"},business_suit_levitating:{keywords:["suit","business","levitate","hover","jump"],char:"🕴",fitzpatrick_scale:!0,category:"activity"},trophy:{keywords:["win","award","contest","place","ftw","ceremony"],char:"🏆",fitzpatrick_scale:!1,category:"activity"},running_shirt_with_sash:{keywords:["play","pageant"],char:"🎽",fitzpatrick_scale:!1,category:"activity"},medal_sports:{keywords:["award","winning"],char:"🏅",fitzpatrick_scale:!1,category:"activity"},medal_military:{keywords:["award","winning","army"],char:"🎖",fitzpatrick_scale:!1,category:"activity"},"1st_place_medal":{keywords:["award","winning","first"],char:"🥇",fitzpatrick_scale:!1,category:"activity"},"2nd_place_medal":{keywords:["award","second"],char:"🥈",fitzpatrick_scale:!1,category:"activity"},"3rd_place_medal":{keywords:["award","third"],char:"🥉",fitzpatrick_scale:!1,category:"activity"},reminder_ribbon:{keywords:["sports","cause","support","awareness"],char:"🎗",fitzpatrick_scale:!1,category:"activity"},rosette:{keywords:["flower","decoration","military"],char:"🏵",fitzpatrick_scale:!1,category:"activity"},ticket:{keywords:["event","concert","pass"],char:"🎫",fitzpatrick_scale:!1,category:"activity"},tickets:{keywords:["sports","concert","entrance"],char:"🎟",fitzpatrick_scale:!1,category:"activity"},performing_arts:{keywords:["acting","theater","drama"],char:"🎭",fitzpatrick_scale:!1,category:"activity"},art:{keywords:["design","paint","draw","colors"],char:"🎨",fitzpatrick_scale:!1,category:"activity"},circus_tent:{keywords:["festival","carnival","party"],char:"🎪",fitzpatrick_scale:!1,category:"activity"},woman_juggling:{keywords:["juggle","balance","skill","multitask"],char:"🤹♀️",fitzpatrick_scale:!0,category:"activity"},man_juggling:{keywords:["juggle","balance","skill","multitask"],char:"🤹♂️",fitzpatrick_scale:!0,category:"activity"},microphone:{keywords:["sound","music","PA","sing","talkshow"],char:"🎤",fitzpatrick_scale:!1,category:"activity"},headphones:{keywords:["music","score","gadgets"],char:"🎧",fitzpatrick_scale:!1,category:"activity"},musical_score:{keywords:["treble","clef","compose"],char:"🎼",fitzpatrick_scale:!1,category:"activity"},musical_keyboard:{keywords:["piano","instrument","compose"],char:"🎹",fitzpatrick_scale:!1,category:"activity"},drum:{keywords:["music","instrument","drumsticks","snare"],char:"🥁",fitzpatrick_scale:!1,category:"activity"},saxophone:{keywords:["music","instrument","jazz","blues"],char:"🎷",fitzpatrick_scale:!1,category:"activity"},trumpet:{keywords:["music","brass"],char:"🎺",fitzpatrick_scale:!1,category:"activity"},guitar:{keywords:["music","instrument"],char:"🎸",fitzpatrick_scale:!1,category:"activity"},violin:{keywords:["music","instrument","orchestra","symphony"],char:"🎻",fitzpatrick_scale:!1,category:"activity"},clapper:{keywords:["movie","film","record"],char:"🎬",fitzpatrick_scale:!1,category:"activity"},video_game:{keywords:["play","console","PS4","controller"],char:"🎮",fitzpatrick_scale:!1,category:"activity"},space_invader:{keywords:["game","arcade","play"],char:"👾",fitzpatrick_scale:!1,category:"activity"},dart:{keywords:["game","play","bar","target","bullseye"],char:"🎯",fitzpatrick_scale:!1,category:"activity"},game_die:{keywords:["dice","random","tabletop","play","luck"],char:"🎲",fitzpatrick_scale:!1,category:"activity"},chess_pawn:{keywords:["expendable"],char:"♟",fitzpatrick_scale:!1,category:"activity"},slot_machine:{keywords:["bet","gamble","vegas","fruit machine","luck","casino"],char:"🎰",fitzpatrick_scale:!1,category:"activity"},jigsaw:{keywords:["interlocking","puzzle","piece"],char:"🧩",fitzpatrick_scale:!1,category:"activity"},bowling:{keywords:["sports","fun","play"],char:"🎳",fitzpatrick_scale:!1,category:"activity"},red_car:{keywords:["red","transportation","vehicle"],char:"🚗",fitzpatrick_scale:!1,category:"travel_and_places"},taxi:{keywords:["uber","vehicle","cars","transportation"],char:"🚕",fitzpatrick_scale:!1,category:"travel_and_places"},blue_car:{keywords:["transportation","vehicle"],char:"🚙",fitzpatrick_scale:!1,category:"travel_and_places"},bus:{keywords:["car","vehicle","transportation"],char:"🚌",fitzpatrick_scale:!1,category:"travel_and_places"},trolleybus:{keywords:["bart","transportation","vehicle"],char:"🚎",fitzpatrick_scale:!1,category:"travel_and_places"},racing_car:{keywords:["sports","race","fast","formula","f1"],char:"🏎",fitzpatrick_scale:!1,category:"travel_and_places"},police_car:{keywords:["vehicle","cars","transportation","law","legal","enforcement"],char:"🚓",fitzpatrick_scale:!1,category:"travel_and_places"},ambulance:{keywords:["health","911","hospital"],char:"🚑",fitzpatrick_scale:!1,category:"travel_and_places"},fire_engine:{keywords:["transportation","cars","vehicle"],char:"🚒",fitzpatrick_scale:!1,category:"travel_and_places"},minibus:{keywords:["vehicle","car","transportation"],char:"🚐",fitzpatrick_scale:!1,category:"travel_and_places"},truck:{keywords:["cars","transportation"],char:"🚚",fitzpatrick_scale:!1,category:"travel_and_places"},articulated_lorry:{keywords:["vehicle","cars","transportation","express"],char:"🚛",fitzpatrick_scale:!1,category:"travel_and_places"},tractor:{keywords:["vehicle","car","farming","agriculture"],char:"🚜",fitzpatrick_scale:!1,category:"travel_and_places"},kick_scooter:{keywords:["vehicle","kick","razor"],char:"🛴",fitzpatrick_scale:!1,category:"travel_and_places"},motorcycle:{keywords:["race","sports","fast"],char:"🏍",fitzpatrick_scale:!1,category:"travel_and_places"},bike:{keywords:["sports","bicycle","exercise","hipster"],char:"🚲",fitzpatrick_scale:!1,category:"travel_and_places"},motor_scooter:{keywords:["vehicle","vespa","sasha"],char:"🛵",fitzpatrick_scale:!1,category:"travel_and_places"},rotating_light:{keywords:["police","ambulance","911","emergency","alert","error","pinged","law","legal"],char:"🚨",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_police_car:{keywords:["vehicle","law","legal","enforcement","911"],char:"🚔",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_bus:{keywords:["vehicle","transportation"],char:"🚍",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_automobile:{keywords:["car","vehicle","transportation"],char:"🚘",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_taxi:{keywords:["vehicle","cars","uber"],char:"🚖",fitzpatrick_scale:!1,category:"travel_and_places"},aerial_tramway:{keywords:["transportation","vehicle","ski"],char:"🚡",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_cableway:{keywords:["transportation","vehicle","ski"],char:"🚠",fitzpatrick_scale:!1,category:"travel_and_places"},suspension_railway:{keywords:["vehicle","transportation"],char:"🚟",fitzpatrick_scale:!1,category:"travel_and_places"},railway_car:{keywords:["transportation","vehicle"],char:"🚃",fitzpatrick_scale:!1,category:"travel_and_places"},train:{keywords:["transportation","vehicle","carriage","public","travel"],char:"🚋",fitzpatrick_scale:!1,category:"travel_and_places"},monorail:{keywords:["transportation","vehicle"],char:"🚝",fitzpatrick_scale:!1,category:"travel_and_places"},bullettrain_side:{keywords:["transportation","vehicle"],char:"🚄",fitzpatrick_scale:!1,category:"travel_and_places"},bullettrain_front:{keywords:["transportation","vehicle","speed","fast","public","travel"],char:"🚅",fitzpatrick_scale:!1,category:"travel_and_places"},light_rail:{keywords:["transportation","vehicle"],char:"🚈",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_railway:{keywords:["transportation","vehicle"],char:"🚞",fitzpatrick_scale:!1,category:"travel_and_places"},steam_locomotive:{keywords:["transportation","vehicle","train"],char:"🚂",fitzpatrick_scale:!1,category:"travel_and_places"},train2:{keywords:["transportation","vehicle"],char:"🚆",fitzpatrick_scale:!1,category:"travel_and_places"},metro:{keywords:["transportation","blue-square","mrt","underground","tube"],char:"🚇",fitzpatrick_scale:!1,category:"travel_and_places"},tram:{keywords:["transportation","vehicle"],char:"🚊",fitzpatrick_scale:!1,category:"travel_and_places"},station:{keywords:["transportation","vehicle","public"],char:"🚉",fitzpatrick_scale:!1,category:"travel_and_places"},flying_saucer:{keywords:["transportation","vehicle","ufo"],char:"🛸",fitzpatrick_scale:!1,category:"travel_and_places"},helicopter:{keywords:["transportation","vehicle","fly"],char:"🚁",fitzpatrick_scale:!1,category:"travel_and_places"},small_airplane:{keywords:["flight","transportation","fly","vehicle"],char:"🛩",fitzpatrick_scale:!1,category:"travel_and_places"},airplane:{keywords:["vehicle","transportation","flight","fly"],char:"✈️",fitzpatrick_scale:!1,category:"travel_and_places"},flight_departure:{keywords:["airport","flight","landing"],char:"🛫",fitzpatrick_scale:!1,category:"travel_and_places"},flight_arrival:{keywords:["airport","flight","boarding"],char:"🛬",fitzpatrick_scale:!1,category:"travel_and_places"},sailboat:{keywords:["ship","summer","transportation","water","sailing"],char:"⛵",fitzpatrick_scale:!1,category:"travel_and_places"},motor_boat:{keywords:["ship"],char:"🛥",fitzpatrick_scale:!1,category:"travel_and_places"},speedboat:{keywords:["ship","transportation","vehicle","summer"],char:"🚤",fitzpatrick_scale:!1,category:"travel_and_places"},ferry:{keywords:["boat","ship","yacht"],char:"⛴",fitzpatrick_scale:!1,category:"travel_and_places"},passenger_ship:{keywords:["yacht","cruise","ferry"],char:"🛳",fitzpatrick_scale:!1,category:"travel_and_places"},rocket:{keywords:["launch","ship","staffmode","NASA","outer space","outer_space","fly"],char:"🚀",fitzpatrick_scale:!1,category:"travel_and_places"},artificial_satellite:{keywords:["communication","gps","orbit","spaceflight","NASA","ISS"],char:"🛰",fitzpatrick_scale:!1,category:"travel_and_places"},seat:{keywords:["sit","airplane","transport","bus","flight","fly"],char:"💺",fitzpatrick_scale:!1,category:"travel_and_places"},canoe:{keywords:["boat","paddle","water","ship"],char:"🛶",fitzpatrick_scale:!1,category:"travel_and_places"},anchor:{keywords:["ship","ferry","sea","boat"],char:"⚓",fitzpatrick_scale:!1,category:"travel_and_places"},construction:{keywords:["wip","progress","caution","warning"],char:"🚧",fitzpatrick_scale:!1,category:"travel_and_places"},fuelpump:{keywords:["gas station","petroleum"],char:"⛽",fitzpatrick_scale:!1,category:"travel_and_places"},busstop:{keywords:["transportation","wait"],char:"🚏",fitzpatrick_scale:!1,category:"travel_and_places"},vertical_traffic_light:{keywords:["transportation","driving"],char:"🚦",fitzpatrick_scale:!1,category:"travel_and_places"},traffic_light:{keywords:["transportation","signal"],char:"🚥",fitzpatrick_scale:!1,category:"travel_and_places"},checkered_flag:{keywords:["contest","finishline","race","gokart"],char:"🏁",fitzpatrick_scale:!1,category:"travel_and_places"},ship:{keywords:["transportation","titanic","deploy"],char:"🚢",fitzpatrick_scale:!1,category:"travel_and_places"},ferris_wheel:{keywords:["photo","carnival","londoneye"],char:"🎡",fitzpatrick_scale:!1,category:"travel_and_places"},roller_coaster:{keywords:["carnival","playground","photo","fun"],char:"🎢",fitzpatrick_scale:!1,category:"travel_and_places"},carousel_horse:{keywords:["photo","carnival"],char:"🎠",fitzpatrick_scale:!1,category:"travel_and_places"},building_construction:{keywords:["wip","working","progress"],char:"🏗",fitzpatrick_scale:!1,category:"travel_and_places"},foggy:{keywords:["photo","mountain"],char:"🌁",fitzpatrick_scale:!1,category:"travel_and_places"},tokyo_tower:{keywords:["photo","japanese"],char:"🗼",fitzpatrick_scale:!1,category:"travel_and_places"},factory:{keywords:["building","industry","pollution","smoke"],char:"🏭",fitzpatrick_scale:!1,category:"travel_and_places"},fountain:{keywords:["photo","summer","water","fresh"],char:"⛲",fitzpatrick_scale:!1,category:"travel_and_places"},rice_scene:{keywords:["photo","japan","asia","tsukimi"],char:"🎑",fitzpatrick_scale:!1,category:"travel_and_places"},mountain:{keywords:["photo","nature","environment"],char:"⛰",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_snow:{keywords:["photo","nature","environment","winter","cold"],char:"🏔",fitzpatrick_scale:!1,category:"travel_and_places"},mount_fuji:{keywords:["photo","mountain","nature","japanese"],char:"🗻",fitzpatrick_scale:!1,category:"travel_and_places"},volcano:{keywords:["photo","nature","disaster"],char:"🌋",fitzpatrick_scale:!1,category:"travel_and_places"},japan:{keywords:["nation","country","japanese","asia"],char:"🗾",fitzpatrick_scale:!1,category:"travel_and_places"},camping:{keywords:["photo","outdoors","tent"],char:"🏕",fitzpatrick_scale:!1,category:"travel_and_places"},tent:{keywords:["photo","camping","outdoors"],char:"⛺",fitzpatrick_scale:!1,category:"travel_and_places"},national_park:{keywords:["photo","environment","nature"],char:"🏞",fitzpatrick_scale:!1,category:"travel_and_places"},motorway:{keywords:["road","cupertino","interstate","highway"],char:"🛣",fitzpatrick_scale:!1,category:"travel_and_places"},railway_track:{keywords:["train","transportation"],char:"🛤",fitzpatrick_scale:!1,category:"travel_and_places"},sunrise:{keywords:["morning","view","vacation","photo"],char:"🌅",fitzpatrick_scale:!1,category:"travel_and_places"},sunrise_over_mountains:{keywords:["view","vacation","photo"],char:"🌄",fitzpatrick_scale:!1,category:"travel_and_places"},desert:{keywords:["photo","warm","saharah"],char:"🏜",fitzpatrick_scale:!1,category:"travel_and_places"},beach_umbrella:{keywords:["weather","summer","sunny","sand","mojito"],char:"🏖",fitzpatrick_scale:!1,category:"travel_and_places"},desert_island:{keywords:["photo","tropical","mojito"],char:"🏝",fitzpatrick_scale:!1,category:"travel_and_places"},city_sunrise:{keywords:["photo","good morning","dawn"],char:"🌇",fitzpatrick_scale:!1,category:"travel_and_places"},city_sunset:{keywords:["photo","evening","sky","buildings"],char:"🌆",fitzpatrick_scale:!1,category:"travel_and_places"},cityscape:{keywords:["photo","night life","urban"],char:"🏙",fitzpatrick_scale:!1,category:"travel_and_places"},night_with_stars:{keywords:["evening","city","downtown"],char:"🌃",fitzpatrick_scale:!1,category:"travel_and_places"},bridge_at_night:{keywords:["photo","sanfrancisco"],char:"🌉",fitzpatrick_scale:!1,category:"travel_and_places"},milky_way:{keywords:["photo","space","stars"],char:"🌌",fitzpatrick_scale:!1,category:"travel_and_places"},stars:{keywords:["night","photo"],char:"🌠",fitzpatrick_scale:!1,category:"travel_and_places"},sparkler:{keywords:["stars","night","shine"],char:"🎇",fitzpatrick_scale:!1,category:"travel_and_places"},fireworks:{keywords:["photo","festival","carnival","congratulations"],char:"🎆",fitzpatrick_scale:!1,category:"travel_and_places"},rainbow:{keywords:["nature","happy","unicorn_face","photo","sky","spring"],char:"🌈",fitzpatrick_scale:!1,category:"travel_and_places"},houses:{keywords:["buildings","photo"],char:"🏘",fitzpatrick_scale:!1,category:"travel_and_places"},european_castle:{keywords:["building","royalty","history"],char:"🏰",fitzpatrick_scale:!1,category:"travel_and_places"},japanese_castle:{keywords:["photo","building"],char:"🏯",fitzpatrick_scale:!1,category:"travel_and_places"},stadium:{keywords:["photo","place","sports","concert","venue"],char:"🏟",fitzpatrick_scale:!1,category:"travel_and_places"},statue_of_liberty:{keywords:["american","newyork"],char:"🗽",fitzpatrick_scale:!1,category:"travel_and_places"},house:{keywords:["building","home"],char:"🏠",fitzpatrick_scale:!1,category:"travel_and_places"},house_with_garden:{keywords:["home","plant","nature"],char:"🏡",fitzpatrick_scale:!1,category:"travel_and_places"},derelict_house:{keywords:["abandon","evict","broken","building"],char:"🏚",fitzpatrick_scale:!1,category:"travel_and_places"},office:{keywords:["building","bureau","work"],char:"🏢",fitzpatrick_scale:!1,category:"travel_and_places"},department_store:{keywords:["building","shopping","mall"],char:"🏬",fitzpatrick_scale:!1,category:"travel_and_places"},post_office:{keywords:["building","envelope","communication"],char:"🏣",fitzpatrick_scale:!1,category:"travel_and_places"},european_post_office:{keywords:["building","email"],char:"🏤",fitzpatrick_scale:!1,category:"travel_and_places"},hospital:{keywords:["building","health","surgery","doctor"],char:"🏥",fitzpatrick_scale:!1,category:"travel_and_places"},bank:{keywords:["building","money","sales","cash","business","enterprise"],char:"🏦",fitzpatrick_scale:!1,category:"travel_and_places"},hotel:{keywords:["building","accomodation","checkin"],char:"🏨",fitzpatrick_scale:!1,category:"travel_and_places"},convenience_store:{keywords:["building","shopping","groceries"],char:"🏪",fitzpatrick_scale:!1,category:"travel_and_places"},school:{keywords:["building","student","education","learn","teach"],char:"🏫",fitzpatrick_scale:!1,category:"travel_and_places"},love_hotel:{keywords:["like","affection","dating"],char:"🏩",fitzpatrick_scale:!1,category:"travel_and_places"},wedding:{keywords:["love","like","affection","couple","marriage","bride","groom"],char:"💒",fitzpatrick_scale:!1,category:"travel_and_places"},classical_building:{keywords:["art","culture","history"],char:"🏛",fitzpatrick_scale:!1,category:"travel_and_places"},church:{keywords:["building","religion","christ"],char:"⛪",fitzpatrick_scale:!1,category:"travel_and_places"},mosque:{keywords:["islam","worship","minaret"],char:"🕌",fitzpatrick_scale:!1,category:"travel_and_places"},synagogue:{keywords:["judaism","worship","temple","jewish"],char:"🕍",fitzpatrick_scale:!1,category:"travel_and_places"},kaaba:{keywords:["mecca","mosque","islam"],char:"🕋",fitzpatrick_scale:!1,category:"travel_and_places"},shinto_shrine:{keywords:["temple","japan","kyoto"],char:"⛩",fitzpatrick_scale:!1,category:"travel_and_places"},watch:{keywords:["time","accessories"],char:"⌚",fitzpatrick_scale:!1,category:"objects"},iphone:{keywords:["technology","apple","gadgets","dial"],char:"📱",fitzpatrick_scale:!1,category:"objects"},calling:{keywords:["iphone","incoming"],char:"📲",fitzpatrick_scale:!1,category:"objects"},computer:{keywords:["technology","laptop","screen","display","monitor"],char:"💻",fitzpatrick_scale:!1,category:"objects"},keyboard:{keywords:["technology","computer","type","input","text"],char:"⌨",fitzpatrick_scale:!1,category:"objects"},desktop_computer:{keywords:["technology","computing","screen"],char:"🖥",fitzpatrick_scale:!1,category:"objects"},printer:{keywords:["paper","ink"],char:"🖨",fitzpatrick_scale:!1,category:"objects"},computer_mouse:{keywords:["click"],char:"🖱",fitzpatrick_scale:!1,category:"objects"},trackball:{keywords:["technology","trackpad"],char:"🖲",fitzpatrick_scale:!1,category:"objects"},joystick:{keywords:["game","play"],char:"🕹",fitzpatrick_scale:!1,category:"objects"},clamp:{keywords:["tool"],char:"🗜",fitzpatrick_scale:!1,category:"objects"},minidisc:{keywords:["technology","record","data","disk","90s"],char:"💽",fitzpatrick_scale:!1,category:"objects"},floppy_disk:{keywords:["oldschool","technology","save","90s","80s"],char:"💾",fitzpatrick_scale:!1,category:"objects"},cd:{keywords:["technology","dvd","disk","disc","90s"],char:"💿",fitzpatrick_scale:!1,category:"objects"},dvd:{keywords:["cd","disk","disc"],char:"📀",fitzpatrick_scale:!1,category:"objects"},vhs:{keywords:["record","video","oldschool","90s","80s"],char:"📼",fitzpatrick_scale:!1,category:"objects"},camera:{keywords:["gadgets","photography"],char:"📷",fitzpatrick_scale:!1,category:"objects"},camera_flash:{keywords:["photography","gadgets"],char:"📸",fitzpatrick_scale:!1,category:"objects"},video_camera:{keywords:["film","record"],char:"📹",fitzpatrick_scale:!1,category:"objects"},movie_camera:{keywords:["film","record"],char:"🎥",fitzpatrick_scale:!1,category:"objects"},film_projector:{keywords:["video","tape","record","movie"],char:"📽",fitzpatrick_scale:!1,category:"objects"},film_strip:{keywords:["movie"],char:"🎞",fitzpatrick_scale:!1,category:"objects"},telephone_receiver:{keywords:["technology","communication","dial"],char:"📞",fitzpatrick_scale:!1,category:"objects"},phone:{keywords:["technology","communication","dial","telephone"],char:"☎️",fitzpatrick_scale:!1,category:"objects"},pager:{keywords:["bbcall","oldschool","90s"],char:"📟",fitzpatrick_scale:!1,category:"objects"},fax:{keywords:["communication","technology"],char:"📠",fitzpatrick_scale:!1,category:"objects"},tv:{keywords:["technology","program","oldschool","show","television"],char:"📺",fitzpatrick_scale:!1,category:"objects"},radio:{keywords:["communication","music","podcast","program"],char:"📻",fitzpatrick_scale:!1,category:"objects"},studio_microphone:{keywords:["sing","recording","artist","talkshow"],char:"🎙",fitzpatrick_scale:!1,category:"objects"},level_slider:{keywords:["scale"],char:"🎚",fitzpatrick_scale:!1,category:"objects"},control_knobs:{keywords:["dial"],char:"🎛",fitzpatrick_scale:!1,category:"objects"},compass:{keywords:["magnetic","navigation","orienteering"],char:"🧭",fitzpatrick_scale:!1,category:"objects"},stopwatch:{keywords:["time","deadline"],char:"⏱",fitzpatrick_scale:!1,category:"objects"},timer_clock:{keywords:["alarm"],char:"⏲",fitzpatrick_scale:!1,category:"objects"},alarm_clock:{keywords:["time","wake"],char:"⏰",fitzpatrick_scale:!1,category:"objects"},mantelpiece_clock:{keywords:["time"],char:"🕰",fitzpatrick_scale:!1,category:"objects"},hourglass_flowing_sand:{keywords:["oldschool","time","countdown"],char:"⏳",fitzpatrick_scale:!1,category:"objects"},hourglass:{keywords:["time","clock","oldschool","limit","exam","quiz","test"],char:"⌛",fitzpatrick_scale:!1,category:"objects"},satellite:{keywords:["communication","future","radio","space"],char:"📡",fitzpatrick_scale:!1,category:"objects"},battery:{keywords:["power","energy","sustain"],char:"🔋",fitzpatrick_scale:!1,category:"objects"},electric_plug:{keywords:["charger","power"],char:"🔌",fitzpatrick_scale:!1,category:"objects"},bulb:{keywords:["light","electricity","idea"],char:"💡",fitzpatrick_scale:!1,category:"objects"},flashlight:{keywords:["dark","camping","sight","night"],char:"🔦",fitzpatrick_scale:!1,category:"objects"},candle:{keywords:["fire","wax"],char:"🕯",fitzpatrick_scale:!1,category:"objects"},fire_extinguisher:{keywords:["quench"],char:"🧯",fitzpatrick_scale:!1,category:"objects"},wastebasket:{keywords:["bin","trash","rubbish","garbage","toss"],char:"🗑",fitzpatrick_scale:!1,category:"objects"},oil_drum:{keywords:["barrell"],char:"🛢",fitzpatrick_scale:!1,category:"objects"},money_with_wings:{keywords:["dollar","bills","payment","sale"],char:"💸",fitzpatrick_scale:!1,category:"objects"},dollar:{keywords:["money","sales","bill","currency"],char:"💵",fitzpatrick_scale:!1,category:"objects"},yen:{keywords:["money","sales","japanese","dollar","currency"],char:"💴",fitzpatrick_scale:!1,category:"objects"},euro:{keywords:["money","sales","dollar","currency"],char:"💶",fitzpatrick_scale:!1,category:"objects"},pound:{keywords:["british","sterling","money","sales","bills","uk","england","currency"],char:"💷",fitzpatrick_scale:!1,category:"objects"},moneybag:{keywords:["dollar","payment","coins","sale"],char:"💰",fitzpatrick_scale:!1,category:"objects"},credit_card:{keywords:["money","sales","dollar","bill","payment","shopping"],char:"💳",fitzpatrick_scale:!1,category:"objects"},gem:{keywords:["blue","ruby","diamond","jewelry"],char:"💎",fitzpatrick_scale:!1,category:"objects"},balance_scale:{keywords:["law","fairness","weight"],char:"⚖",fitzpatrick_scale:!1,category:"objects"},toolbox:{keywords:["tools","diy","fix","maintainer","mechanic"],char:"🧰",fitzpatrick_scale:!1,category:"objects"},wrench:{keywords:["tools","diy","ikea","fix","maintainer"],char:"🔧",fitzpatrick_scale:!1,category:"objects"},hammer:{keywords:["tools","build","create"],char:"🔨",fitzpatrick_scale:!1,category:"objects"},hammer_and_pick:{keywords:["tools","build","create"],char:"⚒",fitzpatrick_scale:!1,category:"objects"},hammer_and_wrench:{keywords:["tools","build","create"],char:"🛠",fitzpatrick_scale:!1,category:"objects"},pick:{keywords:["tools","dig"],char:"⛏",fitzpatrick_scale:!1,category:"objects"},nut_and_bolt:{keywords:["handy","tools","fix"],char:"🔩",fitzpatrick_scale:!1,category:"objects"},gear:{keywords:["cog"],char:"⚙",fitzpatrick_scale:!1,category:"objects"},brick:{keywords:["bricks"],char:"🧱",fitzpatrick_scale:!1,category:"objects"},chains:{keywords:["lock","arrest"],char:"⛓",fitzpatrick_scale:!1,category:"objects"},magnet:{keywords:["attraction","magnetic"],char:"🧲",fitzpatrick_scale:!1,category:"objects"},gun:{keywords:["violence","weapon","pistol","revolver"],char:"🔫",fitzpatrick_scale:!1,category:"objects"},bomb:{keywords:["boom","explode","explosion","terrorism"],char:"💣",fitzpatrick_scale:!1,category:"objects"},firecracker:{keywords:["dynamite","boom","explode","explosion","explosive"],char:"🧨",fitzpatrick_scale:!1,category:"objects"},hocho:{keywords:["knife","blade","cutlery","kitchen","weapon"],char:"🔪",fitzpatrick_scale:!1,category:"objects"},dagger:{keywords:["weapon"],char:"🗡",fitzpatrick_scale:!1,category:"objects"},crossed_swords:{keywords:["weapon"],char:"⚔",fitzpatrick_scale:!1,category:"objects"},shield:{keywords:["protection","security"],char:"🛡",fitzpatrick_scale:!1,category:"objects"},smoking:{keywords:["kills","tobacco","cigarette","joint","smoke"],char:"🚬",fitzpatrick_scale:!1,category:"objects"},skull_and_crossbones:{keywords:["poison","danger","deadly","scary","death","pirate","evil"],char:"☠",fitzpatrick_scale:!1,category:"objects"},coffin:{keywords:["vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],char:"⚰",fitzpatrick_scale:!1,category:"objects"},funeral_urn:{keywords:["dead","die","death","rip","ashes"],char:"⚱",fitzpatrick_scale:!1,category:"objects"},amphora:{keywords:["vase","jar"],char:"🏺",fitzpatrick_scale:!1,category:"objects"},crystal_ball:{keywords:["disco","party","magic","circus","fortune_teller"],char:"🔮",fitzpatrick_scale:!1,category:"objects"},prayer_beads:{keywords:["dhikr","religious"],char:"📿",fitzpatrick_scale:!1,category:"objects"},nazar_amulet:{keywords:["bead","charm"],char:"🧿",fitzpatrick_scale:!1,category:"objects"},barber:{keywords:["hair","salon","style"],char:"💈",fitzpatrick_scale:!1,category:"objects"},alembic:{keywords:["distilling","science","experiment","chemistry"],char:"⚗",fitzpatrick_scale:!1,category:"objects"},telescope:{keywords:["stars","space","zoom","science","astronomy"],char:"🔭",fitzpatrick_scale:!1,category:"objects"},microscope:{keywords:["laboratory","experiment","zoomin","science","study"],char:"🔬",fitzpatrick_scale:!1,category:"objects"},hole:{keywords:["embarrassing"],char:"🕳",fitzpatrick_scale:!1,category:"objects"},pill:{keywords:["health","medicine","doctor","pharmacy","drug"],char:"💊",fitzpatrick_scale:!1,category:"objects"},syringe:{keywords:["health","hospital","drugs","blood","medicine","needle","doctor","nurse"],char:"💉",fitzpatrick_scale:!1,category:"objects"},dna:{keywords:["biologist","genetics","life"],char:"🧬",fitzpatrick_scale:!1,category:"objects"},microbe:{keywords:["amoeba","bacteria","germs"],char:"🦠",fitzpatrick_scale:!1,category:"objects"},petri_dish:{keywords:["bacteria","biology","culture","lab"],char:"🧫",fitzpatrick_scale:!1,category:"objects"},test_tube:{keywords:["chemistry","experiment","lab","science"],char:"🧪",fitzpatrick_scale:!1,category:"objects"},thermometer:{keywords:["weather","temperature","hot","cold"],char:"🌡",fitzpatrick_scale:!1,category:"objects"},broom:{keywords:["cleaning","sweeping","witch"],char:"🧹",fitzpatrick_scale:!1,category:"objects"},basket:{keywords:["laundry"],char:"🧺",fitzpatrick_scale:!1,category:"objects"},toilet_paper:{keywords:["roll"],char:"🧻",fitzpatrick_scale:!1,category:"objects"},label:{keywords:["sale","tag"],char:"🏷",fitzpatrick_scale:!1,category:"objects"},bookmark:{keywords:["favorite","label","save"],char:"🔖",fitzpatrick_scale:!1,category:"objects"},toilet:{keywords:["restroom","wc","washroom","bathroom","potty"],char:"🚽",fitzpatrick_scale:!1,category:"objects"},shower:{keywords:["clean","water","bathroom"],char:"🚿",fitzpatrick_scale:!1,category:"objects"},bathtub:{keywords:["clean","shower","bathroom"],char:"🛁",fitzpatrick_scale:!1,category:"objects"},soap:{keywords:["bar","bathing","cleaning","lather"],char:"🧼",fitzpatrick_scale:!1,category:"objects"},sponge:{keywords:["absorbing","cleaning","porous"],char:"🧽",fitzpatrick_scale:!1,category:"objects"},lotion_bottle:{keywords:["moisturizer","sunscreen"],char:"🧴",fitzpatrick_scale:!1,category:"objects"},key:{keywords:["lock","door","password"],char:"🔑",fitzpatrick_scale:!1,category:"objects"},old_key:{keywords:["lock","door","password"],char:"🗝",fitzpatrick_scale:!1,category:"objects"},couch_and_lamp:{keywords:["read","chill"],char:"🛋",fitzpatrick_scale:!1,category:"objects"},sleeping_bed:{keywords:["bed","rest"],char:"🛌",fitzpatrick_scale:!0,category:"objects"},bed:{keywords:["sleep","rest"],char:"🛏",fitzpatrick_scale:!1,category:"objects"},door:{keywords:["house","entry","exit"],char:"🚪",fitzpatrick_scale:!1,category:"objects"},bellhop_bell:{keywords:["service"],char:"🛎",fitzpatrick_scale:!1,category:"objects"},teddy_bear:{keywords:["plush","stuffed"],char:"🧸",fitzpatrick_scale:!1,category:"objects"},framed_picture:{keywords:["photography"],char:"🖼",fitzpatrick_scale:!1,category:"objects"},world_map:{keywords:["location","direction"],char:"🗺",fitzpatrick_scale:!1,category:"objects"},parasol_on_ground:{keywords:["weather","summer"],char:"⛱",fitzpatrick_scale:!1,category:"objects"},moyai:{keywords:["rock","easter island","moai"],char:"🗿",fitzpatrick_scale:!1,category:"objects"},shopping:{keywords:["mall","buy","purchase"],char:"🛍",fitzpatrick_scale:!1,category:"objects"},shopping_cart:{keywords:["trolley"],char:"🛒",fitzpatrick_scale:!1,category:"objects"},balloon:{keywords:["party","celebration","birthday","circus"],char:"🎈",fitzpatrick_scale:!1,category:"objects"},flags:{keywords:["fish","japanese","koinobori","carp","banner"],char:"🎏",fitzpatrick_scale:!1,category:"objects"},ribbon:{keywords:["decoration","pink","girl","bowtie"],char:"🎀",fitzpatrick_scale:!1,category:"objects"},gift:{keywords:["present","birthday","christmas","xmas"],char:"🎁",fitzpatrick_scale:!1,category:"objects"},confetti_ball:{keywords:["festival","party","birthday","circus"],char:"🎊",fitzpatrick_scale:!1,category:"objects"},tada:{keywords:["party","congratulations","birthday","magic","circus","celebration"],char:"🎉",fitzpatrick_scale:!1,category:"objects"},dolls:{keywords:["japanese","toy","kimono"],char:"🎎",fitzpatrick_scale:!1,category:"objects"},wind_chime:{keywords:["nature","ding","spring","bell"],char:"🎐",fitzpatrick_scale:!1,category:"objects"},crossed_flags:{keywords:["japanese","nation","country","border"],char:"🎌",fitzpatrick_scale:!1,category:"objects"},izakaya_lantern:{keywords:["light","paper","halloween","spooky"],char:"🏮",fitzpatrick_scale:!1,category:"objects"},red_envelope:{keywords:["gift"],char:"🧧",fitzpatrick_scale:!1,category:"objects"},email:{keywords:["letter","postal","inbox","communication"],char:"✉️",fitzpatrick_scale:!1,category:"objects"},envelope_with_arrow:{keywords:["email","communication"],char:"📩",fitzpatrick_scale:!1,category:"objects"},incoming_envelope:{keywords:["email","inbox"],char:"📨",fitzpatrick_scale:!1,category:"objects"},"e-mail":{keywords:["communication","inbox"],char:"📧",fitzpatrick_scale:!1,category:"objects"},love_letter:{keywords:["email","like","affection","envelope","valentines"],char:"💌",fitzpatrick_scale:!1,category:"objects"},postbox:{keywords:["email","letter","envelope"],char:"📮",fitzpatrick_scale:!1,category:"objects"},mailbox_closed:{keywords:["email","communication","inbox"],char:"📪",fitzpatrick_scale:!1,category:"objects"},mailbox:{keywords:["email","inbox","communication"],char:"📫",fitzpatrick_scale:!1,category:"objects"},mailbox_with_mail:{keywords:["email","inbox","communication"],char:"📬",fitzpatrick_scale:!1,category:"objects"},mailbox_with_no_mail:{keywords:["email","inbox"],char:"📭",fitzpatrick_scale:!1,category:"objects"},package:{keywords:["mail","gift","cardboard","box","moving"],char:"📦",fitzpatrick_scale:!1,category:"objects"},postal_horn:{keywords:["instrument","music"],char:"📯",fitzpatrick_scale:!1,category:"objects"},inbox_tray:{keywords:["email","documents"],char:"📥",fitzpatrick_scale:!1,category:"objects"},outbox_tray:{keywords:["inbox","email"],char:"📤",fitzpatrick_scale:!1,category:"objects"},scroll:{keywords:["documents","ancient","history","paper"],char:"📜",fitzpatrick_scale:!1,category:"objects"},page_with_curl:{keywords:["documents","office","paper"],char:"📃",fitzpatrick_scale:!1,category:"objects"},bookmark_tabs:{keywords:["favorite","save","order","tidy"],char:"📑",fitzpatrick_scale:!1,category:"objects"},receipt:{keywords:["accounting","expenses"],char:"🧾",fitzpatrick_scale:!1,category:"objects"},bar_chart:{keywords:["graph","presentation","stats"],char:"📊",fitzpatrick_scale:!1,category:"objects"},chart_with_upwards_trend:{keywords:["graph","presentation","stats","recovery","business","economics","money","sales","good","success"],char:"📈",fitzpatrick_scale:!1,category:"objects"},chart_with_downwards_trend:{keywords:["graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],char:"📉",fitzpatrick_scale:!1,category:"objects"},page_facing_up:{keywords:["documents","office","paper","information"],char:"📄",fitzpatrick_scale:!1,category:"objects"},date:{keywords:["calendar","schedule"],char:"📅",fitzpatrick_scale:!1,category:"objects"},calendar:{keywords:["schedule","date","planning"],char:"📆",fitzpatrick_scale:!1,category:"objects"},spiral_calendar:{keywords:["date","schedule","planning"],char:"🗓",fitzpatrick_scale:!1,category:"objects"},card_index:{keywords:["business","stationery"],char:"📇",fitzpatrick_scale:!1,category:"objects"},card_file_box:{keywords:["business","stationery"],char:"🗃",fitzpatrick_scale:!1,category:"objects"},ballot_box:{keywords:["election","vote"],char:"🗳",fitzpatrick_scale:!1,category:"objects"},file_cabinet:{keywords:["filing","organizing"],char:"🗄",fitzpatrick_scale:!1,category:"objects"},clipboard:{keywords:["stationery","documents"],char:"📋",fitzpatrick_scale:!1,category:"objects"},spiral_notepad:{keywords:["memo","stationery"],char:"🗒",fitzpatrick_scale:!1,category:"objects"},file_folder:{keywords:["documents","business","office"],char:"📁",fitzpatrick_scale:!1,category:"objects"},open_file_folder:{keywords:["documents","load"],char:"📂",fitzpatrick_scale:!1,category:"objects"},card_index_dividers:{keywords:["organizing","business","stationery"],char:"🗂",fitzpatrick_scale:!1,category:"objects"},newspaper_roll:{keywords:["press","headline"],char:"🗞",fitzpatrick_scale:!1,category:"objects"},newspaper:{keywords:["press","headline"],char:"📰",fitzpatrick_scale:!1,category:"objects"},notebook:{keywords:["stationery","record","notes","paper","study"],char:"📓",fitzpatrick_scale:!1,category:"objects"},closed_book:{keywords:["read","library","knowledge","textbook","learn"],char:"📕",fitzpatrick_scale:!1,category:"objects"},green_book:{keywords:["read","library","knowledge","study"],char:"📗",fitzpatrick_scale:!1,category:"objects"},blue_book:{keywords:["read","library","knowledge","learn","study"],char:"📘",fitzpatrick_scale:!1,category:"objects"},orange_book:{keywords:["read","library","knowledge","textbook","study"],char:"📙",fitzpatrick_scale:!1,category:"objects"},notebook_with_decorative_cover:{keywords:["classroom","notes","record","paper","study"],char:"📔",fitzpatrick_scale:!1,category:"objects"},ledger:{keywords:["notes","paper"],char:"📒",fitzpatrick_scale:!1,category:"objects"},books:{keywords:["literature","library","study"],char:"📚",fitzpatrick_scale:!1,category:"objects"},open_book:{keywords:["book","read","library","knowledge","literature","learn","study"],char:"📖",fitzpatrick_scale:!1,category:"objects"},safety_pin:{keywords:["diaper"],char:"🧷",fitzpatrick_scale:!1,category:"objects"},link:{keywords:["rings","url"],char:"🔗",fitzpatrick_scale:!1,category:"objects"},paperclip:{keywords:["documents","stationery"],char:"📎",fitzpatrick_scale:!1,category:"objects"},paperclips:{keywords:["documents","stationery"],char:"🖇",fitzpatrick_scale:!1,category:"objects"},scissors:{keywords:["stationery","cut"],char:"✂️",fitzpatrick_scale:!1,category:"objects"},triangular_ruler:{keywords:["stationery","math","architect","sketch"],char:"📐",fitzpatrick_scale:!1,category:"objects"},straight_ruler:{keywords:["stationery","calculate","length","math","school","drawing","architect","sketch"],char:"📏",fitzpatrick_scale:!1,category:"objects"},abacus:{keywords:["calculation"],char:"🧮",fitzpatrick_scale:!1,category:"objects"},pushpin:{keywords:["stationery","mark","here"],char:"📌",fitzpatrick_scale:!1,category:"objects"},round_pushpin:{keywords:["stationery","location","map","here"],char:"📍",fitzpatrick_scale:!1,category:"objects"},triangular_flag_on_post:{keywords:["mark","milestone","place"],char:"🚩",fitzpatrick_scale:!1,category:"objects"},white_flag:{keywords:["losing","loser","lost","surrender","give up","fail"],char:"🏳",fitzpatrick_scale:!1,category:"objects"},black_flag:{keywords:["pirate"],char:"🏴",fitzpatrick_scale:!1,category:"objects"},rainbow_flag:{keywords:["flag","rainbow","pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],char:"🏳️🌈",fitzpatrick_scale:!1,category:"objects"},closed_lock_with_key:{keywords:["security","privacy"],char:"🔐",fitzpatrick_scale:!1,category:"objects"},lock:{keywords:["security","password","padlock"],char:"🔒",fitzpatrick_scale:!1,category:"objects"},unlock:{keywords:["privacy","security"],char:"🔓",fitzpatrick_scale:!1,category:"objects"},lock_with_ink_pen:{keywords:["security","secret"],char:"🔏",fitzpatrick_scale:!1,category:"objects"},pen:{keywords:["stationery","writing","write"],char:"🖊",fitzpatrick_scale:!1,category:"objects"},fountain_pen:{keywords:["stationery","writing","write"],char:"🖋",fitzpatrick_scale:!1,category:"objects"},black_nib:{keywords:["pen","stationery","writing","write"],char:"✒️",fitzpatrick_scale:!1,category:"objects"},memo:{keywords:["write","documents","stationery","pencil","paper","writing","legal","exam","quiz","test","study","compose"],char:"📝",fitzpatrick_scale:!1,category:"objects"},pencil2:{keywords:["stationery","write","paper","writing","school","study"],char:"✏️",fitzpatrick_scale:!1,category:"objects"},crayon:{keywords:["drawing","creativity"],char:"🖍",fitzpatrick_scale:!1,category:"objects"},paintbrush:{keywords:["drawing","creativity","art"],char:"🖌",fitzpatrick_scale:!1,category:"objects"},mag:{keywords:["search","zoom","find","detective"],char:"🔍",fitzpatrick_scale:!1,category:"objects"},mag_right:{keywords:["search","zoom","find","detective"],char:"🔎",fitzpatrick_scale:!1,category:"objects"},heart:{keywords:["love","like","valentines"],char:"❤️",fitzpatrick_scale:!1,category:"symbols"},orange_heart:{keywords:["love","like","affection","valentines"],char:"🧡",fitzpatrick_scale:!1,category:"symbols"},yellow_heart:{keywords:["love","like","affection","valentines"],char:"💛",fitzpatrick_scale:!1,category:"symbols"},green_heart:{keywords:["love","like","affection","valentines"],char:"💚",fitzpatrick_scale:!1,category:"symbols"},blue_heart:{keywords:["love","like","affection","valentines"],char:"💙",fitzpatrick_scale:!1,category:"symbols"},purple_heart:{keywords:["love","like","affection","valentines"],char:"💜",fitzpatrick_scale:!1,category:"symbols"},black_heart:{keywords:["evil"],char:"🖤",fitzpatrick_scale:!1,category:"symbols"},broken_heart:{keywords:["sad","sorry","break","heart","heartbreak"],char:"💔",fitzpatrick_scale:!1,category:"symbols"},heavy_heart_exclamation:{keywords:["decoration","love"],char:"❣",fitzpatrick_scale:!1,category:"symbols"},two_hearts:{keywords:["love","like","affection","valentines","heart"],char:"💕",fitzpatrick_scale:!1,category:"symbols"},revolving_hearts:{keywords:["love","like","affection","valentines"],char:"💞",fitzpatrick_scale:!1,category:"symbols"},heartbeat:{keywords:["love","like","affection","valentines","pink","heart"],char:"💓",fitzpatrick_scale:!1,category:"symbols"},heartpulse:{keywords:["like","love","affection","valentines","pink"],char:"💗",fitzpatrick_scale:!1,category:"symbols"},sparkling_heart:{keywords:["love","like","affection","valentines"],char:"💖",fitzpatrick_scale:!1,category:"symbols"},cupid:{keywords:["love","like","heart","affection","valentines"],char:"💘",fitzpatrick_scale:!1,category:"symbols"},gift_heart:{keywords:["love","valentines"],char:"💝",fitzpatrick_scale:!1,category:"symbols"},heart_decoration:{keywords:["purple-square","love","like"],char:"💟",fitzpatrick_scale:!1,category:"symbols"},peace_symbol:{keywords:["hippie"],char:"☮",fitzpatrick_scale:!1,category:"symbols"},latin_cross:{keywords:["christianity"],char:"✝",fitzpatrick_scale:!1,category:"symbols"},star_and_crescent:{keywords:["islam"],char:"☪",fitzpatrick_scale:!1,category:"symbols"},om:{keywords:["hinduism","buddhism","sikhism","jainism"],char:"🕉",fitzpatrick_scale:!1,category:"symbols"},wheel_of_dharma:{keywords:["hinduism","buddhism","sikhism","jainism"],char:"☸",fitzpatrick_scale:!1,category:"symbols"},star_of_david:{keywords:["judaism"],char:"✡",fitzpatrick_scale:!1,category:"symbols"},six_pointed_star:{keywords:["purple-square","religion","jewish","hexagram"],char:"🔯",fitzpatrick_scale:!1,category:"symbols"},menorah:{keywords:["hanukkah","candles","jewish"],char:"🕎",fitzpatrick_scale:!1,category:"symbols"},yin_yang:{keywords:["balance"],char:"☯",fitzpatrick_scale:!1,category:"symbols"},orthodox_cross:{keywords:["suppedaneum","religion"],char:"☦",fitzpatrick_scale:!1,category:"symbols"},place_of_worship:{keywords:["religion","church","temple","prayer"],char:"🛐",fitzpatrick_scale:!1,category:"symbols"},ophiuchus:{keywords:["sign","purple-square","constellation","astrology"],char:"⛎",fitzpatrick_scale:!1,category:"symbols"},aries:{keywords:["sign","purple-square","zodiac","astrology"],char:"♈",fitzpatrick_scale:!1,category:"symbols"},taurus:{keywords:["purple-square","sign","zodiac","astrology"],char:"♉",fitzpatrick_scale:!1,category:"symbols"},gemini:{keywords:["sign","zodiac","purple-square","astrology"],char:"♊",fitzpatrick_scale:!1,category:"symbols"},cancer:{keywords:["sign","zodiac","purple-square","astrology"],char:"♋",fitzpatrick_scale:!1,category:"symbols"},leo:{keywords:["sign","purple-square","zodiac","astrology"],char:"♌",fitzpatrick_scale:!1,category:"symbols"},virgo:{keywords:["sign","zodiac","purple-square","astrology"],char:"♍",fitzpatrick_scale:!1,category:"symbols"},libra:{keywords:["sign","purple-square","zodiac","astrology"],char:"♎",fitzpatrick_scale:!1,category:"symbols"},scorpius:{keywords:["sign","zodiac","purple-square","astrology","scorpio"],char:"♏",fitzpatrick_scale:!1,category:"symbols"},sagittarius:{keywords:["sign","zodiac","purple-square","astrology"],char:"♐",fitzpatrick_scale:!1,category:"symbols"},capricorn:{keywords:["sign","zodiac","purple-square","astrology"],char:"♑",fitzpatrick_scale:!1,category:"symbols"},aquarius:{keywords:["sign","purple-square","zodiac","astrology"],char:"♒",fitzpatrick_scale:!1,category:"symbols"},pisces:{keywords:["purple-square","sign","zodiac","astrology"],char:"♓",fitzpatrick_scale:!1,category:"symbols"},id:{keywords:["purple-square","words"],char:"🆔",fitzpatrick_scale:!1,category:"symbols"},atom_symbol:{keywords:["science","physics","chemistry"],char:"⚛",fitzpatrick_scale:!1,category:"symbols"},u7a7a:{keywords:["kanji","japanese","chinese","empty","sky","blue-square"],char:"🈳",fitzpatrick_scale:!1,category:"symbols"},u5272:{keywords:["cut","divide","chinese","kanji","pink-square"],char:"🈹",fitzpatrick_scale:!1,category:"symbols"},radioactive:{keywords:["nuclear","danger"],char:"☢",fitzpatrick_scale:!1,category:"symbols"},biohazard:{keywords:["danger"],char:"☣",fitzpatrick_scale:!1,category:"symbols"},mobile_phone_off:{keywords:["mute","orange-square","silence","quiet"],char:"📴",fitzpatrick_scale:!1,category:"symbols"},vibration_mode:{keywords:["orange-square","phone"],char:"📳",fitzpatrick_scale:!1,category:"symbols"},u6709:{keywords:["orange-square","chinese","have","kanji"],char:"🈶",fitzpatrick_scale:!1,category:"symbols"},u7121:{keywords:["nothing","chinese","kanji","japanese","orange-square"],char:"🈚",fitzpatrick_scale:!1,category:"symbols"},u7533:{keywords:["chinese","japanese","kanji","orange-square"],char:"🈸",fitzpatrick_scale:!1,category:"symbols"},u55b6:{keywords:["japanese","opening hours","orange-square"],char:"🈺",fitzpatrick_scale:!1,category:"symbols"},u6708:{keywords:["chinese","month","moon","japanese","orange-square","kanji"],char:"🈷️",fitzpatrick_scale:!1,category:"symbols"},eight_pointed_black_star:{keywords:["orange-square","shape","polygon"],char:"✴️",fitzpatrick_scale:!1,category:"symbols"},vs:{keywords:["words","orange-square"],char:"🆚",fitzpatrick_scale:!1,category:"symbols"},accept:{keywords:["ok","good","chinese","kanji","agree","yes","orange-circle"],char:"🉑",fitzpatrick_scale:!1,category:"symbols"},white_flower:{keywords:["japanese","spring"],char:"💮",fitzpatrick_scale:!1,category:"symbols"},ideograph_advantage:{keywords:["chinese","kanji","obtain","get","circle"],char:"🉐",fitzpatrick_scale:!1,category:"symbols"},secret:{keywords:["privacy","chinese","sshh","kanji","red-circle"],char:"㊙️",fitzpatrick_scale:!1,category:"symbols"},congratulations:{keywords:["chinese","kanji","japanese","red-circle"],char:"㊗️",fitzpatrick_scale:!1,category:"symbols"},u5408:{keywords:["japanese","chinese","join","kanji","red-square"],char:"🈴",fitzpatrick_scale:!1,category:"symbols"},u6e80:{keywords:["full","chinese","japanese","red-square","kanji"],char:"🈵",fitzpatrick_scale:!1,category:"symbols"},u7981:{keywords:["kanji","japanese","chinese","forbidden","limit","restricted","red-square"],char:"🈲",fitzpatrick_scale:!1,category:"symbols"},a:{keywords:["red-square","alphabet","letter"],char:"🅰️",fitzpatrick_scale:!1,category:"symbols"},b:{keywords:["red-square","alphabet","letter"],char:"🅱️",fitzpatrick_scale:!1,category:"symbols"},ab:{keywords:["red-square","alphabet"],char:"🆎",fitzpatrick_scale:!1,category:"symbols"},cl:{keywords:["alphabet","words","red-square"],char:"🆑",fitzpatrick_scale:!1,category:"symbols"},o2:{keywords:["alphabet","red-square","letter"],char:"🅾️",fitzpatrick_scale:!1,category:"symbols"},sos:{keywords:["help","red-square","words","emergency","911"],char:"🆘",fitzpatrick_scale:!1,category:"symbols"},no_entry:{keywords:["limit","security","privacy","bad","denied","stop","circle"],char:"⛔",fitzpatrick_scale:!1,category:"symbols"},name_badge:{keywords:["fire","forbid"],char:"📛",fitzpatrick_scale:!1,category:"symbols"},no_entry_sign:{keywords:["forbid","stop","limit","denied","disallow","circle"],char:"🚫",fitzpatrick_scale:!1,category:"symbols"},x:{keywords:["no","delete","remove","cancel","red"],char:"❌",fitzpatrick_scale:!1,category:"symbols"},o:{keywords:["circle","round"],char:"⭕",fitzpatrick_scale:!1,category:"symbols"},stop_sign:{keywords:["stop"],char:"🛑",fitzpatrick_scale:!1,category:"symbols"},anger:{keywords:["angry","mad"],char:"💢",fitzpatrick_scale:!1,category:"symbols"},hotsprings:{keywords:["bath","warm","relax"],char:"♨️",fitzpatrick_scale:!1,category:"symbols"},no_pedestrians:{keywords:["rules","crossing","walking","circle"],char:"🚷",fitzpatrick_scale:!1,category:"symbols"},do_not_litter:{keywords:["trash","bin","garbage","circle"],char:"🚯",fitzpatrick_scale:!1,category:"symbols"},no_bicycles:{keywords:["cyclist","prohibited","circle"],char:"🚳",fitzpatrick_scale:!1,category:"symbols"},"non-potable_water":{keywords:["drink","faucet","tap","circle"],char:"🚱",fitzpatrick_scale:!1,category:"symbols"},underage:{keywords:["18","drink","pub","night","minor","circle"],char:"🔞",fitzpatrick_scale:!1,category:"symbols"},no_mobile_phones:{keywords:["iphone","mute","circle"],char:"📵",fitzpatrick_scale:!1,category:"symbols"},exclamation:{keywords:["heavy_exclamation_mark","danger","surprise","punctuation","wow","warning"],char:"❗",fitzpatrick_scale:!1,category:"symbols"},grey_exclamation:{keywords:["surprise","punctuation","gray","wow","warning"],char:"❕",fitzpatrick_scale:!1,category:"symbols"},question:{keywords:["doubt","confused"],char:"❓",fitzpatrick_scale:!1,category:"symbols"},grey_question:{keywords:["doubts","gray","huh","confused"],char:"❔",fitzpatrick_scale:!1,category:"symbols"},bangbang:{keywords:["exclamation","surprise"],char:"‼️",fitzpatrick_scale:!1,category:"symbols"},interrobang:{keywords:["wat","punctuation","surprise"],char:"⁉️",fitzpatrick_scale:!1,category:"symbols"},100:{keywords:["score","perfect","numbers","century","exam","quiz","test","pass","hundred"],char:"💯",fitzpatrick_scale:!1,category:"symbols"},low_brightness:{keywords:["sun","afternoon","warm","summer"],char:"🔅",fitzpatrick_scale:!1,category:"symbols"},high_brightness:{keywords:["sun","light"],char:"🔆",fitzpatrick_scale:!1,category:"symbols"},trident:{keywords:["weapon","spear"],char:"🔱",fitzpatrick_scale:!1,category:"symbols"},fleur_de_lis:{keywords:["decorative","scout"],char:"⚜",fitzpatrick_scale:!1,category:"symbols"},part_alternation_mark:{keywords:["graph","presentation","stats","business","economics","bad"],char:"〽️",fitzpatrick_scale:!1,category:"symbols"},warning:{keywords:["exclamation","wip","alert","error","problem","issue"],char:"⚠️",fitzpatrick_scale:!1,category:"symbols"},children_crossing:{keywords:["school","warning","danger","sign","driving","yellow-diamond"],char:"🚸",fitzpatrick_scale:!1,category:"symbols"},beginner:{keywords:["badge","shield"],char:"🔰",fitzpatrick_scale:!1,category:"symbols"},recycle:{keywords:["arrow","environment","garbage","trash"],char:"♻️",fitzpatrick_scale:!1,category:"symbols"},u6307:{keywords:["chinese","point","green-square","kanji"],char:"🈯",fitzpatrick_scale:!1,category:"symbols"},chart:{keywords:["green-square","graph","presentation","stats"],char:"💹",fitzpatrick_scale:!1,category:"symbols"},sparkle:{keywords:["stars","green-square","awesome","good","fireworks"],char:"❇️",fitzpatrick_scale:!1,category:"symbols"},eight_spoked_asterisk:{keywords:["star","sparkle","green-square"],char:"✳️",fitzpatrick_scale:!1,category:"symbols"},negative_squared_cross_mark:{keywords:["x","green-square","no","deny"],char:"❎",fitzpatrick_scale:!1,category:"symbols"},white_check_mark:{keywords:["green-square","ok","agree","vote","election","answer","tick"],char:"✅",fitzpatrick_scale:!1,category:"symbols"},diamond_shape_with_a_dot_inside:{keywords:["jewel","blue","gem","crystal","fancy"],char:"💠",fitzpatrick_scale:!1,category:"symbols"},cyclone:{keywords:["weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],char:"🌀",fitzpatrick_scale:!1,category:"symbols"},loop:{keywords:["tape","cassette"],char:"➿",fitzpatrick_scale:!1,category:"symbols"},globe_with_meridians:{keywords:["earth","international","world","internet","interweb","i18n"],char:"🌐",fitzpatrick_scale:!1,category:"symbols"},m:{keywords:["alphabet","blue-circle","letter"],char:"Ⓜ️",fitzpatrick_scale:!1,category:"symbols"},atm:{keywords:["money","sales","cash","blue-square","payment","bank"],char:"🏧",fitzpatrick_scale:!1,category:"symbols"},sa:{keywords:["japanese","blue-square","katakana"],char:"🈂️",fitzpatrick_scale:!1,category:"symbols"},passport_control:{keywords:["custom","blue-square"],char:"🛂",fitzpatrick_scale:!1,category:"symbols"},customs:{keywords:["passport","border","blue-square"],char:"🛃",fitzpatrick_scale:!1,category:"symbols"},baggage_claim:{keywords:["blue-square","airport","transport"],char:"🛄",fitzpatrick_scale:!1,category:"symbols"},left_luggage:{keywords:["blue-square","travel"],char:"🛅",fitzpatrick_scale:!1,category:"symbols"},wheelchair:{keywords:["blue-square","disabled","a11y","accessibility"],char:"♿",fitzpatrick_scale:!1,category:"symbols"},no_smoking:{keywords:["cigarette","blue-square","smell","smoke"],char:"🚭",fitzpatrick_scale:!1,category:"symbols"},wc:{keywords:["toilet","restroom","blue-square"],char:"🚾",fitzpatrick_scale:!1,category:"symbols"},parking:{keywords:["cars","blue-square","alphabet","letter"],char:"🅿️",fitzpatrick_scale:!1,category:"symbols"},potable_water:{keywords:["blue-square","liquid","restroom","cleaning","faucet"],char:"🚰",fitzpatrick_scale:!1,category:"symbols"},mens:{keywords:["toilet","restroom","wc","blue-square","gender","male"],char:"🚹",fitzpatrick_scale:!1,category:"symbols"},womens:{keywords:["purple-square","woman","female","toilet","loo","restroom","gender"],char:"🚺",fitzpatrick_scale:!1,category:"symbols"},baby_symbol:{keywords:["orange-square","child"],char:"🚼",fitzpatrick_scale:!1,category:"symbols"},restroom:{keywords:["blue-square","toilet","refresh","wc","gender"],char:"🚻",fitzpatrick_scale:!1,category:"symbols"},put_litter_in_its_place:{keywords:["blue-square","sign","human","info"],char:"🚮",fitzpatrick_scale:!1,category:"symbols"},cinema:{keywords:["blue-square","record","film","movie","curtain","stage","theater"],char:"🎦",fitzpatrick_scale:!1,category:"symbols"},signal_strength:{keywords:["blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],char:"📶",fitzpatrick_scale:!1,category:"symbols"},koko:{keywords:["blue-square","here","katakana","japanese","destination"],char:"🈁",fitzpatrick_scale:!1,category:"symbols"},ng:{keywords:["blue-square","words","shape","icon"],char:"🆖",fitzpatrick_scale:!1,category:"symbols"},ok:{keywords:["good","agree","yes","blue-square"],char:"🆗",fitzpatrick_scale:!1,category:"symbols"},up:{keywords:["blue-square","above","high"],char:"🆙",fitzpatrick_scale:!1,category:"symbols"},cool:{keywords:["words","blue-square"],char:"🆒",fitzpatrick_scale:!1,category:"symbols"},new:{keywords:["blue-square","words","start"],char:"🆕",fitzpatrick_scale:!1,category:"symbols"},free:{keywords:["blue-square","words"],char:"🆓",fitzpatrick_scale:!1,category:"symbols"},zero:{keywords:["0","numbers","blue-square","null"],char:"0️⃣",fitzpatrick_scale:!1,category:"symbols"},one:{keywords:["blue-square","numbers","1"],char:"1️⃣",fitzpatrick_scale:!1,category:"symbols"},two:{keywords:["numbers","2","prime","blue-square"],char:"2️⃣",fitzpatrick_scale:!1,category:"symbols"},three:{keywords:["3","numbers","prime","blue-square"],char:"3️⃣",fitzpatrick_scale:!1,category:"symbols"},four:{keywords:["4","numbers","blue-square"],char:"4️⃣",fitzpatrick_scale:!1,category:"symbols"},five:{keywords:["5","numbers","blue-square","prime"],char:"5️⃣",fitzpatrick_scale:!1,category:"symbols"},six:{keywords:["6","numbers","blue-square"],char:"6️⃣",fitzpatrick_scale:!1,category:"symbols"},seven:{keywords:["7","numbers","blue-square","prime"],char:"7️⃣",fitzpatrick_scale:!1,category:"symbols"},eight:{keywords:["8","blue-square","numbers"],char:"8️⃣",fitzpatrick_scale:!1,category:"symbols"},nine:{keywords:["blue-square","numbers","9"],char:"9️⃣",fitzpatrick_scale:!1,category:"symbols"},keycap_ten:{keywords:["numbers","10","blue-square"],char:"🔟",fitzpatrick_scale:!1,category:"symbols"},asterisk:{keywords:["star","keycap"],char:"*⃣",fitzpatrick_scale:!1,category:"symbols"},1234:{keywords:["numbers","blue-square"],char:"🔢",fitzpatrick_scale:!1,category:"symbols"},eject_button:{keywords:["blue-square"],char:"⏏️",fitzpatrick_scale:!1,category:"symbols"},arrow_forward:{keywords:["blue-square","right","direction","play"],char:"▶️",fitzpatrick_scale:!1,category:"symbols"},pause_button:{keywords:["pause","blue-square"],char:"⏸",fitzpatrick_scale:!1,category:"symbols"},next_track_button:{keywords:["forward","next","blue-square"],char:"⏭",fitzpatrick_scale:!1,category:"symbols"},stop_button:{keywords:["blue-square"],char:"⏹",fitzpatrick_scale:!1,category:"symbols"},record_button:{keywords:["blue-square"],char:"⏺",fitzpatrick_scale:!1,category:"symbols"},play_or_pause_button:{keywords:["blue-square","play","pause"],char:"⏯",fitzpatrick_scale:!1,category:"symbols"},previous_track_button:{keywords:["backward"],char:"⏮",fitzpatrick_scale:!1,category:"symbols"},fast_forward:{keywords:["blue-square","play","speed","continue"],char:"⏩",fitzpatrick_scale:!1,category:"symbols"},rewind:{keywords:["play","blue-square"],char:"⏪",fitzpatrick_scale:!1,category:"symbols"},twisted_rightwards_arrows:{keywords:["blue-square","shuffle","music","random"],char:"🔀",fitzpatrick_scale:!1,category:"symbols"},repeat:{keywords:["loop","record"],char:"🔁",fitzpatrick_scale:!1,category:"symbols"},repeat_one:{keywords:["blue-square","loop"],char:"🔂",fitzpatrick_scale:!1,category:"symbols"},arrow_backward:{keywords:["blue-square","left","direction"],char:"◀️",fitzpatrick_scale:!1,category:"symbols"},arrow_up_small:{keywords:["blue-square","triangle","direction","point","forward","top"],char:"🔼",fitzpatrick_scale:!1,category:"symbols"},arrow_down_small:{keywords:["blue-square","direction","bottom"],char:"🔽",fitzpatrick_scale:!1,category:"symbols"},arrow_double_up:{keywords:["blue-square","direction","top"],char:"⏫",fitzpatrick_scale:!1,category:"symbols"},arrow_double_down:{keywords:["blue-square","direction","bottom"],char:"⏬",fitzpatrick_scale:!1,category:"symbols"},arrow_right:{keywords:["blue-square","next"],char:"➡️",fitzpatrick_scale:!1,category:"symbols"},arrow_left:{keywords:["blue-square","previous","back"],char:"⬅️",fitzpatrick_scale:!1,category:"symbols"},arrow_up:{keywords:["blue-square","continue","top","direction"],char:"⬆️",fitzpatrick_scale:!1,category:"symbols"},arrow_down:{keywords:["blue-square","direction","bottom"],char:"⬇️",fitzpatrick_scale:!1,category:"symbols"},arrow_upper_right:{keywords:["blue-square","point","direction","diagonal","northeast"],char:"↗️",fitzpatrick_scale:!1,category:"symbols"},arrow_lower_right:{keywords:["blue-square","direction","diagonal","southeast"],char:"↘️",fitzpatrick_scale:!1,category:"symbols"},arrow_lower_left:{keywords:["blue-square","direction","diagonal","southwest"],char:"↙️",fitzpatrick_scale:!1,category:"symbols"},arrow_upper_left:{keywords:["blue-square","point","direction","diagonal","northwest"],char:"↖️",fitzpatrick_scale:!1,category:"symbols"},arrow_up_down:{keywords:["blue-square","direction","way","vertical"],char:"↕️",fitzpatrick_scale:!1,category:"symbols"},left_right_arrow:{keywords:["shape","direction","horizontal","sideways"],char:"↔️",fitzpatrick_scale:!1,category:"symbols"},arrows_counterclockwise:{keywords:["blue-square","sync","cycle"],char:"🔄",fitzpatrick_scale:!1,category:"symbols"},arrow_right_hook:{keywords:["blue-square","return","rotate","direction"],char:"↪️",fitzpatrick_scale:!1,category:"symbols"},leftwards_arrow_with_hook:{keywords:["back","return","blue-square","undo","enter"],char:"↩️",fitzpatrick_scale:!1,category:"symbols"},arrow_heading_up:{keywords:["blue-square","direction","top"],char:"⤴️",fitzpatrick_scale:!1,category:"symbols"},arrow_heading_down:{keywords:["blue-square","direction","bottom"],char:"⤵️",fitzpatrick_scale:!1,category:"symbols"},hash:{keywords:["symbol","blue-square","twitter"],char:"#️⃣",fitzpatrick_scale:!1,category:"symbols"},information_source:{keywords:["blue-square","alphabet","letter"],char:"ℹ️",fitzpatrick_scale:!1,category:"symbols"},abc:{keywords:["blue-square","alphabet"],char:"🔤",fitzpatrick_scale:!1,category:"symbols"},abcd:{keywords:["blue-square","alphabet"],char:"🔡",fitzpatrick_scale:!1,category:"symbols"},capital_abcd:{keywords:["alphabet","words","blue-square"],char:"🔠",fitzpatrick_scale:!1,category:"symbols"},symbols:{keywords:["blue-square","music","note","ampersand","percent","glyphs","characters"],char:"🔣",fitzpatrick_scale:!1,category:"symbols"},musical_note:{keywords:["score","tone","sound"],char:"🎵",fitzpatrick_scale:!1,category:"symbols"},notes:{keywords:["music","score"],char:"🎶",fitzpatrick_scale:!1,category:"symbols"},wavy_dash:{keywords:["draw","line","moustache","mustache","squiggle","scribble"],char:"〰️",fitzpatrick_scale:!1,category:"symbols"},curly_loop:{keywords:["scribble","draw","shape","squiggle"],char:"➰",fitzpatrick_scale:!1,category:"symbols"},heavy_check_mark:{keywords:["ok","nike","answer","yes","tick"],char:"✔️",fitzpatrick_scale:!1,category:"symbols"},arrows_clockwise:{keywords:["sync","cycle","round","repeat"],char:"🔃",fitzpatrick_scale:!1,category:"symbols"},heavy_plus_sign:{keywords:["math","calculation","addition","more","increase"],char:"➕",fitzpatrick_scale:!1,category:"symbols"},heavy_minus_sign:{keywords:["math","calculation","subtract","less"],char:"➖",fitzpatrick_scale:!1,category:"symbols"},heavy_division_sign:{keywords:["divide","math","calculation"],char:"➗",fitzpatrick_scale:!1,category:"symbols"},heavy_multiplication_x:{keywords:["math","calculation"],char:"✖️",fitzpatrick_scale:!1,category:"symbols"},infinity:{keywords:["forever"],char:"♾",fitzpatrick_scale:!1,category:"symbols"},heavy_dollar_sign:{keywords:["money","sales","payment","currency","buck"],char:"💲",fitzpatrick_scale:!1,category:"symbols"},currency_exchange:{keywords:["money","sales","dollar","travel"],char:"💱",fitzpatrick_scale:!1,category:"symbols"},copyright:{keywords:["ip","license","circle","law","legal"],char:"©️",fitzpatrick_scale:!1,category:"symbols"},registered:{keywords:["alphabet","circle"],char:"®️",fitzpatrick_scale:!1,category:"symbols"},tm:{keywords:["trademark","brand","law","legal"],char:"™️",fitzpatrick_scale:!1,category:"symbols"},end:{keywords:["words","arrow"],char:"🔚",fitzpatrick_scale:!1,category:"symbols"},back:{keywords:["arrow","words","return"],char:"🔙",fitzpatrick_scale:!1,category:"symbols"},on:{keywords:["arrow","words"],char:"🔛",fitzpatrick_scale:!1,category:"symbols"},top:{keywords:["words","blue-square"],char:"🔝",fitzpatrick_scale:!1,category:"symbols"},soon:{keywords:["arrow","words"],char:"🔜",fitzpatrick_scale:!1,category:"symbols"},ballot_box_with_check:{keywords:["ok","agree","confirm","black-square","vote","election","yes","tick"],char:"☑️",fitzpatrick_scale:!1,category:"symbols"},radio_button:{keywords:["input","old","music","circle"],char:"🔘",fitzpatrick_scale:!1,category:"symbols"},white_circle:{keywords:["shape","round"],char:"⚪",fitzpatrick_scale:!1,category:"symbols"},black_circle:{keywords:["shape","button","round"],char:"⚫",fitzpatrick_scale:!1,category:"symbols"},red_circle:{keywords:["shape","error","danger"],char:"🔴",fitzpatrick_scale:!1,category:"symbols"},large_blue_circle:{keywords:["shape","icon","button"],char:"🔵",fitzpatrick_scale:!1,category:"symbols"},small_orange_diamond:{keywords:["shape","jewel","gem"],char:"🔸",fitzpatrick_scale:!1,category:"symbols"},small_blue_diamond:{keywords:["shape","jewel","gem"],char:"🔹",fitzpatrick_scale:!1,category:"symbols"},large_orange_diamond:{keywords:["shape","jewel","gem"],char:"🔶",fitzpatrick_scale:!1,category:"symbols"},large_blue_diamond:{keywords:["shape","jewel","gem"],char:"🔷",fitzpatrick_scale:!1,category:"symbols"},small_red_triangle:{keywords:["shape","direction","up","top"],char:"🔺",fitzpatrick_scale:!1,category:"symbols"},black_small_square:{keywords:["shape","icon"],char:"▪️",fitzpatrick_scale:!1,category:"symbols"},white_small_square:{keywords:["shape","icon"],char:"▫️",fitzpatrick_scale:!1,category:"symbols"},black_large_square:{keywords:["shape","icon","button"],char:"⬛",fitzpatrick_scale:!1,category:"symbols"},white_large_square:{keywords:["shape","icon","stone","button"],char:"⬜",fitzpatrick_scale:!1,category:"symbols"},small_red_triangle_down:{keywords:["shape","direction","bottom"],char:"🔻",fitzpatrick_scale:!1,category:"symbols"},black_medium_square:{keywords:["shape","button","icon"],char:"◼️",fitzpatrick_scale:!1,category:"symbols"},white_medium_square:{keywords:["shape","stone","icon"],char:"◻️",fitzpatrick_scale:!1,category:"symbols"},black_medium_small_square:{keywords:["icon","shape","button"],char:"◾",fitzpatrick_scale:!1,category:"symbols"},white_medium_small_square:{keywords:["shape","stone","icon","button"],char:"◽",fitzpatrick_scale:!1,category:"symbols"},black_square_button:{keywords:["shape","input","frame"],char:"🔲",fitzpatrick_scale:!1,category:"symbols"},white_square_button:{keywords:["shape","input"],char:"🔳",fitzpatrick_scale:!1,category:"symbols"},speaker:{keywords:["sound","volume","silence","broadcast"],char:"🔈",fitzpatrick_scale:!1,category:"symbols"},sound:{keywords:["volume","speaker","broadcast"],char:"🔉",fitzpatrick_scale:!1,category:"symbols"},loud_sound:{keywords:["volume","noise","noisy","speaker","broadcast"],char:"🔊",fitzpatrick_scale:!1,category:"symbols"},mute:{keywords:["sound","volume","silence","quiet"],char:"🔇",fitzpatrick_scale:!1,category:"symbols"},mega:{keywords:["sound","speaker","volume"],char:"📣",fitzpatrick_scale:!1,category:"symbols"},loudspeaker:{keywords:["volume","sound"],char:"📢",fitzpatrick_scale:!1,category:"symbols"},bell:{keywords:["sound","notification","christmas","xmas","chime"],char:"🔔",fitzpatrick_scale:!1,category:"symbols"},no_bell:{keywords:["sound","volume","mute","quiet","silent"],char:"🔕",fitzpatrick_scale:!1,category:"symbols"},black_joker:{keywords:["poker","cards","game","play","magic"],char:"🃏",fitzpatrick_scale:!1,category:"symbols"},mahjong:{keywords:["game","play","chinese","kanji"],char:"🀄",fitzpatrick_scale:!1,category:"symbols"},spades:{keywords:["poker","cards","suits","magic"],char:"♠️",fitzpatrick_scale:!1,category:"symbols"},clubs:{keywords:["poker","cards","magic","suits"],char:"♣️",fitzpatrick_scale:!1,category:"symbols"},hearts:{keywords:["poker","cards","magic","suits"],char:"♥️",fitzpatrick_scale:!1,category:"symbols"},diamonds:{keywords:["poker","cards","magic","suits"],char:"♦️",fitzpatrick_scale:!1,category:"symbols"},flower_playing_cards:{keywords:["game","sunset","red"],char:"🎴",fitzpatrick_scale:!1,category:"symbols"},thought_balloon:{keywords:["bubble","cloud","speech","thinking","dream"],char:"💭",fitzpatrick_scale:!1,category:"symbols"},right_anger_bubble:{keywords:["caption","speech","thinking","mad"],char:"🗯",fitzpatrick_scale:!1,category:"symbols"},speech_balloon:{keywords:["bubble","words","message","talk","chatting"],char:"💬",fitzpatrick_scale:!1,category:"symbols"},left_speech_bubble:{keywords:["words","message","talk","chatting"],char:"🗨",fitzpatrick_scale:!1,category:"symbols"},clock1:{keywords:["time","late","early","schedule"],char:"🕐",fitzpatrick_scale:!1,category:"symbols"},clock2:{keywords:["time","late","early","schedule"],char:"🕑",fitzpatrick_scale:!1,category:"symbols"},clock3:{keywords:["time","late","early","schedule"],char:"🕒",fitzpatrick_scale:!1,category:"symbols"},clock4:{keywords:["time","late","early","schedule"],char:"🕓",fitzpatrick_scale:!1,category:"symbols"},clock5:{keywords:["time","late","early","schedule"],char:"🕔",fitzpatrick_scale:!1,category:"symbols"},clock6:{keywords:["time","late","early","schedule","dawn","dusk"],char:"🕕",fitzpatrick_scale:!1,category:"symbols"},clock7:{keywords:["time","late","early","schedule"],char:"🕖",fitzpatrick_scale:!1,category:"symbols"},clock8:{keywords:["time","late","early","schedule"],char:"🕗",fitzpatrick_scale:!1,category:"symbols"},clock9:{keywords:["time","late","early","schedule"],char:"🕘",fitzpatrick_scale:!1,category:"symbols"},clock10:{keywords:["time","late","early","schedule"],char:"🕙",fitzpatrick_scale:!1,category:"symbols"},clock11:{keywords:["time","late","early","schedule"],char:"🕚",fitzpatrick_scale:!1,category:"symbols"},clock12:{keywords:["time","noon","midnight","midday","late","early","schedule"],char:"🕛",fitzpatrick_scale:!1,category:"symbols"},clock130:{keywords:["time","late","early","schedule"],char:"🕜",fitzpatrick_scale:!1,category:"symbols"},clock230:{keywords:["time","late","early","schedule"],char:"🕝",fitzpatrick_scale:!1,category:"symbols"},clock330:{keywords:["time","late","early","schedule"],char:"🕞",fitzpatrick_scale:!1,category:"symbols"},clock430:{keywords:["time","late","early","schedule"],char:"🕟",fitzpatrick_scale:!1,category:"symbols"},clock530:{keywords:["time","late","early","schedule"],char:"🕠",fitzpatrick_scale:!1,category:"symbols"},clock630:{keywords:["time","late","early","schedule"],char:"🕡",fitzpatrick_scale:!1,category:"symbols"},clock730:{keywords:["time","late","early","schedule"],char:"🕢",fitzpatrick_scale:!1,category:"symbols"},clock830:{keywords:["time","late","early","schedule"],char:"🕣",fitzpatrick_scale:!1,category:"symbols"},clock930:{keywords:["time","late","early","schedule"],char:"🕤",fitzpatrick_scale:!1,category:"symbols"},clock1030:{keywords:["time","late","early","schedule"],char:"🕥",fitzpatrick_scale:!1,category:"symbols"},clock1130:{keywords:["time","late","early","schedule"],char:"🕦",fitzpatrick_scale:!1,category:"symbols"},clock1230:{keywords:["time","late","early","schedule"],char:"🕧",fitzpatrick_scale:!1,category:"symbols"},afghanistan:{keywords:["af","flag","nation","country","banner"],char:"🇦🇫",fitzpatrick_scale:!1,category:"flags"},aland_islands:{keywords:["Åland","islands","flag","nation","country","banner"],char:"🇦🇽",fitzpatrick_scale:!1,category:"flags"},albania:{keywords:["al","flag","nation","country","banner"],char:"🇦🇱",fitzpatrick_scale:!1,category:"flags"},algeria:{keywords:["dz","flag","nation","country","banner"],char:"🇩🇿",fitzpatrick_scale:!1,category:"flags"},american_samoa:{keywords:["american","ws","flag","nation","country","banner"],char:"🇦🇸",fitzpatrick_scale:!1,category:"flags"},andorra:{keywords:["ad","flag","nation","country","banner"],char:"🇦🇩",fitzpatrick_scale:!1,category:"flags"},angola:{keywords:["ao","flag","nation","country","banner"],char:"🇦🇴",fitzpatrick_scale:!1,category:"flags"},anguilla:{keywords:["ai","flag","nation","country","banner"],char:"🇦🇮",fitzpatrick_scale:!1,category:"flags"},antarctica:{keywords:["aq","flag","nation","country","banner"],char:"🇦🇶",fitzpatrick_scale:!1,category:"flags"},antigua_barbuda:{keywords:["antigua","barbuda","flag","nation","country","banner"],char:"🇦🇬",fitzpatrick_scale:!1,category:"flags"},argentina:{keywords:["ar","flag","nation","country","banner"],char:"🇦🇷",fitzpatrick_scale:!1,category:"flags"},armenia:{keywords:["am","flag","nation","country","banner"],char:"🇦🇲",fitzpatrick_scale:!1,category:"flags"},aruba:{keywords:["aw","flag","nation","country","banner"],char:"🇦🇼",fitzpatrick_scale:!1,category:"flags"},australia:{keywords:["au","flag","nation","country","banner"],char:"🇦🇺",fitzpatrick_scale:!1,category:"flags"},austria:{keywords:["at","flag","nation","country","banner"],char:"🇦🇹",fitzpatrick_scale:!1,category:"flags"},azerbaijan:{keywords:["az","flag","nation","country","banner"],char:"🇦🇿",fitzpatrick_scale:!1,category:"flags"},bahamas:{keywords:["bs","flag","nation","country","banner"],char:"🇧🇸",fitzpatrick_scale:!1,category:"flags"},bahrain:{keywords:["bh","flag","nation","country","banner"],char:"🇧🇭",fitzpatrick_scale:!1,category:"flags"},bangladesh:{keywords:["bd","flag","nation","country","banner"],char:"🇧🇩",fitzpatrick_scale:!1,category:"flags"},barbados:{keywords:["bb","flag","nation","country","banner"],char:"🇧🇧",fitzpatrick_scale:!1,category:"flags"},belarus:{keywords:["by","flag","nation","country","banner"],char:"🇧🇾",fitzpatrick_scale:!1,category:"flags"},belgium:{keywords:["be","flag","nation","country","banner"],char:"🇧🇪",fitzpatrick_scale:!1,category:"flags"},belize:{keywords:["bz","flag","nation","country","banner"],char:"🇧🇿",fitzpatrick_scale:!1,category:"flags"},benin:{keywords:["bj","flag","nation","country","banner"],char:"🇧🇯",fitzpatrick_scale:!1,category:"flags"},bermuda:{keywords:["bm","flag","nation","country","banner"],char:"🇧🇲",fitzpatrick_scale:!1,category:"flags"},bhutan:{keywords:["bt","flag","nation","country","banner"],char:"🇧🇹",fitzpatrick_scale:!1,category:"flags"},bolivia:{keywords:["bo","flag","nation","country","banner"],char:"🇧🇴",fitzpatrick_scale:!1,category:"flags"},caribbean_netherlands:{keywords:["bonaire","flag","nation","country","banner"],char:"🇧🇶",fitzpatrick_scale:!1,category:"flags"},bosnia_herzegovina:{keywords:["bosnia","herzegovina","flag","nation","country","banner"],char:"🇧🇦",fitzpatrick_scale:!1,category:"flags"},botswana:{keywords:["bw","flag","nation","country","banner"],char:"🇧🇼",fitzpatrick_scale:!1,category:"flags"},brazil:{keywords:["br","flag","nation","country","banner"],char:"🇧🇷",fitzpatrick_scale:!1,category:"flags"},british_indian_ocean_territory:{keywords:["british","indian","ocean","territory","flag","nation","country","banner"],char:"🇮🇴",fitzpatrick_scale:!1,category:"flags"},british_virgin_islands:{keywords:["british","virgin","islands","bvi","flag","nation","country","banner"],char:"🇻🇬",fitzpatrick_scale:!1,category:"flags"},brunei:{keywords:["bn","darussalam","flag","nation","country","banner"],char:"🇧🇳",fitzpatrick_scale:!1,category:"flags"},bulgaria:{keywords:["bg","flag","nation","country","banner"],char:"🇧🇬",fitzpatrick_scale:!1,category:"flags"},burkina_faso:{keywords:["burkina","faso","flag","nation","country","banner"],char:"🇧🇫",fitzpatrick_scale:!1,category:"flags"},burundi:{keywords:["bi","flag","nation","country","banner"],char:"🇧🇮",fitzpatrick_scale:!1,category:"flags"},cape_verde:{keywords:["cabo","verde","flag","nation","country","banner"],char:"🇨🇻",fitzpatrick_scale:!1,category:"flags"},cambodia:{keywords:["kh","flag","nation","country","banner"],char:"🇰🇭",fitzpatrick_scale:!1,category:"flags"},cameroon:{keywords:["cm","flag","nation","country","banner"],char:"🇨🇲",fitzpatrick_scale:!1,category:"flags"},canada:{keywords:["ca","flag","nation","country","banner"],char:"🇨🇦",fitzpatrick_scale:!1,category:"flags"},canary_islands:{keywords:["canary","islands","flag","nation","country","banner"],char:"🇮🇨",fitzpatrick_scale:!1,category:"flags"},cayman_islands:{keywords:["cayman","islands","flag","nation","country","banner"],char:"🇰🇾",fitzpatrick_scale:!1,category:"flags"},central_african_republic:{keywords:["central","african","republic","flag","nation","country","banner"],char:"🇨🇫",fitzpatrick_scale:!1,category:"flags"},chad:{keywords:["td","flag","nation","country","banner"],char:"🇹🇩",fitzpatrick_scale:!1,category:"flags"},chile:{keywords:["flag","nation","country","banner"],char:"🇨🇱",fitzpatrick_scale:!1,category:"flags"},cn:{keywords:["china","chinese","prc","flag","country","nation","banner"],char:"🇨🇳",fitzpatrick_scale:!1,category:"flags"},christmas_island:{keywords:["christmas","island","flag","nation","country","banner"],char:"🇨🇽",fitzpatrick_scale:!1,category:"flags"},cocos_islands:{keywords:["cocos","keeling","islands","flag","nation","country","banner"],char:"🇨🇨",fitzpatrick_scale:!1,category:"flags"},colombia:{keywords:["co","flag","nation","country","banner"],char:"🇨🇴",fitzpatrick_scale:!1,category:"flags"},comoros:{keywords:["km","flag","nation","country","banner"],char:"🇰🇲",fitzpatrick_scale:!1,category:"flags"},congo_brazzaville:{keywords:["congo","flag","nation","country","banner"],char:"🇨🇬",fitzpatrick_scale:!1,category:"flags"},congo_kinshasa:{keywords:["congo","democratic","republic","flag","nation","country","banner"],char:"🇨🇩",fitzpatrick_scale:!1,category:"flags"},cook_islands:{keywords:["cook","islands","flag","nation","country","banner"],char:"🇨🇰",fitzpatrick_scale:!1,category:"flags"},costa_rica:{keywords:["costa","rica","flag","nation","country","banner"],char:"🇨🇷",fitzpatrick_scale:!1,category:"flags"},croatia:{keywords:["hr","flag","nation","country","banner"],char:"🇭🇷",fitzpatrick_scale:!1,category:"flags"},cuba:{keywords:["cu","flag","nation","country","banner"],char:"🇨🇺",fitzpatrick_scale:!1,category:"flags"},curacao:{keywords:["curaçao","flag","nation","country","banner"],char:"🇨🇼",fitzpatrick_scale:!1,category:"flags"},cyprus:{keywords:["cy","flag","nation","country","banner"],char:"🇨🇾",fitzpatrick_scale:!1,category:"flags"},czech_republic:{keywords:["cz","flag","nation","country","banner"],char:"🇨🇿",fitzpatrick_scale:!1,category:"flags"},denmark:{keywords:["dk","flag","nation","country","banner"],char:"🇩🇰",fitzpatrick_scale:!1,category:"flags"},djibouti:{keywords:["dj","flag","nation","country","banner"],char:"🇩🇯",fitzpatrick_scale:!1,category:"flags"},dominica:{keywords:["dm","flag","nation","country","banner"],char:"🇩🇲",fitzpatrick_scale:!1,category:"flags"},dominican_republic:{keywords:["dominican","republic","flag","nation","country","banner"],char:"🇩🇴",fitzpatrick_scale:!1,category:"flags"},ecuador:{keywords:["ec","flag","nation","country","banner"],char:"🇪🇨",fitzpatrick_scale:!1,category:"flags"},egypt:{keywords:["eg","flag","nation","country","banner"],char:"🇪🇬",fitzpatrick_scale:!1,category:"flags"},el_salvador:{keywords:["el","salvador","flag","nation","country","banner"],char:"🇸🇻",fitzpatrick_scale:!1,category:"flags"},equatorial_guinea:{keywords:["equatorial","gn","flag","nation","country","banner"],char:"🇬🇶",fitzpatrick_scale:!1,category:"flags"},eritrea:{keywords:["er","flag","nation","country","banner"],char:"🇪🇷",fitzpatrick_scale:!1,category:"flags"},estonia:{keywords:["ee","flag","nation","country","banner"],char:"🇪🇪",fitzpatrick_scale:!1,category:"flags"},ethiopia:{keywords:["et","flag","nation","country","banner"],char:"🇪🇹",fitzpatrick_scale:!1,category:"flags"},eu:{keywords:["european","union","flag","banner"],char:"🇪🇺",fitzpatrick_scale:!1,category:"flags"},falkland_islands:{keywords:["falkland","islands","malvinas","flag","nation","country","banner"],char:"🇫🇰",fitzpatrick_scale:!1,category:"flags"},faroe_islands:{keywords:["faroe","islands","flag","nation","country","banner"],char:"🇫🇴",fitzpatrick_scale:!1,category:"flags"},fiji:{keywords:["fj","flag","nation","country","banner"],char:"🇫🇯",fitzpatrick_scale:!1,category:"flags"},finland:{keywords:["fi","flag","nation","country","banner"],char:"🇫🇮",fitzpatrick_scale:!1,category:"flags"},fr:{keywords:["banner","flag","nation","france","french","country"],char:"🇫🇷",fitzpatrick_scale:!1,category:"flags"},french_guiana:{keywords:["french","guiana","flag","nation","country","banner"],char:"🇬🇫",fitzpatrick_scale:!1,category:"flags"},french_polynesia:{keywords:["french","polynesia","flag","nation","country","banner"],char:"🇵🇫",fitzpatrick_scale:!1,category:"flags"},french_southern_territories:{keywords:["french","southern","territories","flag","nation","country","banner"],char:"🇹🇫",fitzpatrick_scale:!1,category:"flags"},gabon:{keywords:["ga","flag","nation","country","banner"],char:"🇬🇦",fitzpatrick_scale:!1,category:"flags"},gambia:{keywords:["gm","flag","nation","country","banner"],char:"🇬🇲",fitzpatrick_scale:!1,category:"flags"},georgia:{keywords:["ge","flag","nation","country","banner"],char:"🇬🇪",fitzpatrick_scale:!1,category:"flags"},de:{keywords:["german","nation","flag","country","banner"],char:"🇩🇪",fitzpatrick_scale:!1,category:"flags"},ghana:{keywords:["gh","flag","nation","country","banner"],char:"🇬🇭",fitzpatrick_scale:!1,category:"flags"},gibraltar:{keywords:["gi","flag","nation","country","banner"],char:"🇬🇮",fitzpatrick_scale:!1,category:"flags"},greece:{keywords:["gr","flag","nation","country","banner"],char:"🇬🇷",fitzpatrick_scale:!1,category:"flags"},greenland:{keywords:["gl","flag","nation","country","banner"],char:"🇬🇱",fitzpatrick_scale:!1,category:"flags"},grenada:{keywords:["gd","flag","nation","country","banner"],char:"🇬🇩",fitzpatrick_scale:!1,category:"flags"},guadeloupe:{keywords:["gp","flag","nation","country","banner"],char:"🇬🇵",fitzpatrick_scale:!1,category:"flags"},guam:{keywords:["gu","flag","nation","country","banner"],char:"🇬🇺",fitzpatrick_scale:!1,category:"flags"},guatemala:{keywords:["gt","flag","nation","country","banner"],char:"🇬🇹",fitzpatrick_scale:!1,category:"flags"},guernsey:{keywords:["gg","flag","nation","country","banner"],char:"🇬🇬",fitzpatrick_scale:!1,category:"flags"},guinea:{keywords:["gn","flag","nation","country","banner"],char:"🇬🇳",fitzpatrick_scale:!1,category:"flags"},guinea_bissau:{keywords:["gw","bissau","flag","nation","country","banner"],char:"🇬🇼",fitzpatrick_scale:!1,category:"flags"},guyana:{keywords:["gy","flag","nation","country","banner"],char:"🇬🇾",fitzpatrick_scale:!1,category:"flags"},haiti:{keywords:["ht","flag","nation","country","banner"],char:"🇭🇹",fitzpatrick_scale:!1,category:"flags"},honduras:{keywords:["hn","flag","nation","country","banner"],char:"🇭🇳",fitzpatrick_scale:!1,category:"flags"},hong_kong:{keywords:["hong","kong","flag","nation","country","banner"],char:"🇭🇰",fitzpatrick_scale:!1,category:"flags"},hungary:{keywords:["hu","flag","nation","country","banner"],char:"🇭🇺",fitzpatrick_scale:!1,category:"flags"},iceland:{keywords:["is","flag","nation","country","banner"],char:"🇮🇸",fitzpatrick_scale:!1,category:"flags"},india:{keywords:["in","flag","nation","country","banner"],char:"🇮🇳",fitzpatrick_scale:!1,category:"flags"},indonesia:{keywords:["flag","nation","country","banner"],char:"🇮🇩",fitzpatrick_scale:!1,category:"flags"},iran:{keywords:["iran,","islamic","republic","flag","nation","country","banner"],char:"🇮🇷",fitzpatrick_scale:!1,category:"flags"},iraq:{keywords:["iq","flag","nation","country","banner"],char:"🇮🇶",fitzpatrick_scale:!1,category:"flags"},ireland:{keywords:["ie","flag","nation","country","banner"],char:"🇮🇪",fitzpatrick_scale:!1,category:"flags"},isle_of_man:{keywords:["isle","man","flag","nation","country","banner"],char:"🇮🇲",fitzpatrick_scale:!1,category:"flags"},israel:{keywords:["il","flag","nation","country","banner"],char:"🇮🇱",fitzpatrick_scale:!1,category:"flags"},it:{keywords:["italy","flag","nation","country","banner"],char:"🇮🇹",fitzpatrick_scale:!1,category:"flags"},cote_divoire:{keywords:["ivory","coast","flag","nation","country","banner"],char:"🇨🇮",fitzpatrick_scale:!1,category:"flags"},jamaica:{keywords:["jm","flag","nation","country","banner"],char:"🇯🇲",fitzpatrick_scale:!1,category:"flags"},jp:{keywords:["japanese","nation","flag","country","banner"],char:"🇯🇵",fitzpatrick_scale:!1,category:"flags"},jersey:{keywords:["je","flag","nation","country","banner"],char:"🇯🇪",fitzpatrick_scale:!1,category:"flags"},jordan:{keywords:["jo","flag","nation","country","banner"],char:"🇯🇴",fitzpatrick_scale:!1,category:"flags"},kazakhstan:{keywords:["kz","flag","nation","country","banner"],char:"🇰🇿",fitzpatrick_scale:!1,category:"flags"},kenya:{keywords:["ke","flag","nation","country","banner"],char:"🇰🇪",fitzpatrick_scale:!1,category:"flags"},kiribati:{keywords:["ki","flag","nation","country","banner"],char:"🇰🇮",fitzpatrick_scale:!1,category:"flags"},kosovo:{keywords:["xk","flag","nation","country","banner"],char:"🇽🇰",fitzpatrick_scale:!1,category:"flags"},kuwait:{keywords:["kw","flag","nation","country","banner"],char:"🇰🇼",fitzpatrick_scale:!1,category:"flags"},kyrgyzstan:{keywords:["kg","flag","nation","country","banner"],char:"🇰🇬",fitzpatrick_scale:!1,category:"flags"},laos:{keywords:["lao","democratic","republic","flag","nation","country","banner"],char:"🇱🇦",fitzpatrick_scale:!1,category:"flags"},latvia:{keywords:["lv","flag","nation","country","banner"],char:"🇱🇻",fitzpatrick_scale:!1,category:"flags"},lebanon:{keywords:["lb","flag","nation","country","banner"],char:"🇱🇧",fitzpatrick_scale:!1,category:"flags"},lesotho:{keywords:["ls","flag","nation","country","banner"],char:"🇱🇸",fitzpatrick_scale:!1,category:"flags"},liberia:{keywords:["lr","flag","nation","country","banner"],char:"🇱🇷",fitzpatrick_scale:!1,category:"flags"},libya:{keywords:["ly","flag","nation","country","banner"],char:"🇱🇾",fitzpatrick_scale:!1,category:"flags"},liechtenstein:{keywords:["li","flag","nation","country","banner"],char:"🇱🇮",fitzpatrick_scale:!1,category:"flags"},lithuania:{keywords:["lt","flag","nation","country","banner"],char:"🇱🇹",fitzpatrick_scale:!1,category:"flags"},luxembourg:{keywords:["lu","flag","nation","country","banner"],char:"🇱🇺",fitzpatrick_scale:!1,category:"flags"},macau:{keywords:["macao","flag","nation","country","banner"],char:"🇲🇴",fitzpatrick_scale:!1,category:"flags"},macedonia:{keywords:["macedonia,","flag","nation","country","banner"],char:"🇲🇰",fitzpatrick_scale:!1,category:"flags"},madagascar:{keywords:["mg","flag","nation","country","banner"],char:"🇲🇬",fitzpatrick_scale:!1,category:"flags"},malawi:{keywords:["mw","flag","nation","country","banner"],char:"🇲🇼",fitzpatrick_scale:!1,category:"flags"},malaysia:{keywords:["my","flag","nation","country","banner"],char:"🇲🇾",fitzpatrick_scale:!1,category:"flags"},maldives:{keywords:["mv","flag","nation","country","banner"],char:"🇲🇻",fitzpatrick_scale:!1,category:"flags"},mali:{keywords:["ml","flag","nation","country","banner"],char:"🇲🇱",fitzpatrick_scale:!1,category:"flags"},malta:{keywords:["mt","flag","nation","country","banner"],char:"🇲🇹",fitzpatrick_scale:!1,category:"flags"},marshall_islands:{keywords:["marshall","islands","flag","nation","country","banner"],char:"🇲🇭",fitzpatrick_scale:!1,category:"flags"},martinique:{keywords:["mq","flag","nation","country","banner"],char:"🇲🇶",fitzpatrick_scale:!1,category:"flags"},mauritania:{keywords:["mr","flag","nation","country","banner"],char:"🇲🇷",fitzpatrick_scale:!1,category:"flags"},mauritius:{keywords:["mu","flag","nation","country","banner"],char:"🇲🇺",fitzpatrick_scale:!1,category:"flags"},mayotte:{keywords:["yt","flag","nation","country","banner"],char:"🇾🇹",fitzpatrick_scale:!1,category:"flags"},mexico:{keywords:["mx","flag","nation","country","banner"],char:"🇲🇽",fitzpatrick_scale:!1,category:"flags"},micronesia:{keywords:["micronesia,","federated","states","flag","nation","country","banner"],char:"🇫🇲",fitzpatrick_scale:!1,category:"flags"},moldova:{keywords:["moldova,","republic","flag","nation","country","banner"],char:"🇲🇩",fitzpatrick_scale:!1,category:"flags"},monaco:{keywords:["mc","flag","nation","country","banner"],char:"🇲🇨",fitzpatrick_scale:!1,category:"flags"},mongolia:{keywords:["mn","flag","nation","country","banner"],char:"🇲🇳",fitzpatrick_scale:!1,category:"flags"},montenegro:{keywords:["me","flag","nation","country","banner"],char:"🇲🇪",fitzpatrick_scale:!1,category:"flags"},montserrat:{keywords:["ms","flag","nation","country","banner"],char:"🇲🇸",fitzpatrick_scale:!1,category:"flags"},morocco:{keywords:["ma","flag","nation","country","banner"],char:"🇲🇦",fitzpatrick_scale:!1,category:"flags"},mozambique:{keywords:["mz","flag","nation","country","banner"],char:"🇲🇿",fitzpatrick_scale:!1,category:"flags"},myanmar:{keywords:["mm","flag","nation","country","banner"],char:"🇲🇲",fitzpatrick_scale:!1,category:"flags"},namibia:{keywords:["na","flag","nation","country","banner"],char:"🇳🇦",fitzpatrick_scale:!1,category:"flags"},nauru:{keywords:["nr","flag","nation","country","banner"],char:"🇳🇷",fitzpatrick_scale:!1,category:"flags"},nepal:{keywords:["np","flag","nation","country","banner"],char:"🇳🇵",fitzpatrick_scale:!1,category:"flags"},netherlands:{keywords:["nl","flag","nation","country","banner"],char:"🇳🇱",fitzpatrick_scale:!1,category:"flags"},new_caledonia:{keywords:["new","caledonia","flag","nation","country","banner"],char:"🇳🇨",fitzpatrick_scale:!1,category:"flags"},new_zealand:{keywords:["new","zealand","flag","nation","country","banner"],char:"🇳🇿",fitzpatrick_scale:!1,category:"flags"},nicaragua:{keywords:["ni","flag","nation","country","banner"],char:"🇳🇮",fitzpatrick_scale:!1,category:"flags"},niger:{keywords:["ne","flag","nation","country","banner"],char:"🇳🇪",fitzpatrick_scale:!1,category:"flags"},nigeria:{keywords:["flag","nation","country","banner"],char:"🇳🇬",fitzpatrick_scale:!1,category:"flags"},niue:{keywords:["nu","flag","nation","country","banner"],char:"🇳🇺",fitzpatrick_scale:!1,category:"flags"},norfolk_island:{keywords:["norfolk","island","flag","nation","country","banner"],char:"🇳🇫",fitzpatrick_scale:!1,category:"flags"},northern_mariana_islands:{keywords:["northern","mariana","islands","flag","nation","country","banner"],char:"🇲🇵",fitzpatrick_scale:!1,category:"flags"},north_korea:{keywords:["north","korea","nation","flag","country","banner"],char:"🇰🇵",fitzpatrick_scale:!1,category:"flags"},norway:{keywords:["no","flag","nation","country","banner"],char:"🇳🇴",fitzpatrick_scale:!1,category:"flags"},oman:{keywords:["om_symbol","flag","nation","country","banner"],char:"🇴🇲",fitzpatrick_scale:!1,category:"flags"},pakistan:{keywords:["pk","flag","nation","country","banner"],char:"🇵🇰",fitzpatrick_scale:!1,category:"flags"},palau:{keywords:["pw","flag","nation","country","banner"],char:"🇵🇼",fitzpatrick_scale:!1,category:"flags"},palestinian_territories:{keywords:["palestine","palestinian","territories","flag","nation","country","banner"],char:"🇵🇸",fitzpatrick_scale:!1,category:"flags"},panama:{keywords:["pa","flag","nation","country","banner"],char:"🇵🇦",fitzpatrick_scale:!1,category:"flags"},papua_new_guinea:{keywords:["papua","new","guinea","flag","nation","country","banner"],char:"🇵🇬",fitzpatrick_scale:!1,category:"flags"},paraguay:{keywords:["py","flag","nation","country","banner"],char:"🇵🇾",fitzpatrick_scale:!1,category:"flags"},peru:{keywords:["pe","flag","nation","country","banner"],char:"🇵🇪",fitzpatrick_scale:!1,category:"flags"},philippines:{keywords:["ph","flag","nation","country","banner"],char:"🇵🇭",fitzpatrick_scale:!1,category:"flags"},pitcairn_islands:{keywords:["pitcairn","flag","nation","country","banner"],char:"🇵🇳",fitzpatrick_scale:!1,category:"flags"},poland:{keywords:["pl","flag","nation","country","banner"],char:"🇵🇱",fitzpatrick_scale:!1,category:"flags"},portugal:{keywords:["pt","flag","nation","country","banner"],char:"🇵🇹",fitzpatrick_scale:!1,category:"flags"},puerto_rico:{keywords:["puerto","rico","flag","nation","country","banner"],char:"🇵🇷",fitzpatrick_scale:!1,category:"flags"},qatar:{keywords:["qa","flag","nation","country","banner"],char:"🇶🇦",fitzpatrick_scale:!1,category:"flags"},reunion:{keywords:["réunion","flag","nation","country","banner"],char:"🇷🇪",fitzpatrick_scale:!1,category:"flags"},romania:{keywords:["ro","flag","nation","country","banner"],char:"🇷🇴",fitzpatrick_scale:!1,category:"flags"},ru:{keywords:["russian","federation","flag","nation","country","banner"],char:"🇷🇺",fitzpatrick_scale:!1,category:"flags"},rwanda:{keywords:["rw","flag","nation","country","banner"],char:"🇷🇼",fitzpatrick_scale:!1,category:"flags"},st_barthelemy:{keywords:["saint","barthélemy","flag","nation","country","banner"],char:"🇧🇱",fitzpatrick_scale:!1,category:"flags"},st_helena:{keywords:["saint","helena","ascension","tristan","cunha","flag","nation","country","banner"],char:"🇸🇭",fitzpatrick_scale:!1,category:"flags"},st_kitts_nevis:{keywords:["saint","kitts","nevis","flag","nation","country","banner"],char:"🇰🇳",fitzpatrick_scale:!1,category:"flags"},st_lucia:{keywords:["saint","lucia","flag","nation","country","banner"],char:"🇱🇨",fitzpatrick_scale:!1,category:"flags"},st_pierre_miquelon:{keywords:["saint","pierre","miquelon","flag","nation","country","banner"],char:"🇵🇲",fitzpatrick_scale:!1,category:"flags"},st_vincent_grenadines:{keywords:["saint","vincent","grenadines","flag","nation","country","banner"],char:"🇻🇨",fitzpatrick_scale:!1,category:"flags"},samoa:{keywords:["ws","flag","nation","country","banner"],char:"🇼🇸",fitzpatrick_scale:!1,category:"flags"},san_marino:{keywords:["san","marino","flag","nation","country","banner"],char:"🇸🇲",fitzpatrick_scale:!1,category:"flags"},sao_tome_principe:{keywords:["sao","tome","principe","flag","nation","country","banner"],char:"🇸🇹",fitzpatrick_scale:!1,category:"flags"},saudi_arabia:{keywords:["flag","nation","country","banner"],char:"🇸🇦",fitzpatrick_scale:!1,category:"flags"},senegal:{keywords:["sn","flag","nation","country","banner"],char:"🇸🇳",fitzpatrick_scale:!1,category:"flags"},serbia:{keywords:["rs","flag","nation","country","banner"],char:"🇷🇸",fitzpatrick_scale:!1,category:"flags"},seychelles:{keywords:["sc","flag","nation","country","banner"],char:"🇸🇨",fitzpatrick_scale:!1,category:"flags"},sierra_leone:{keywords:["sierra","leone","flag","nation","country","banner"],char:"🇸🇱",fitzpatrick_scale:!1,category:"flags"},singapore:{keywords:["sg","flag","nation","country","banner"],char:"🇸🇬",fitzpatrick_scale:!1,category:"flags"},sint_maarten:{keywords:["sint","maarten","dutch","flag","nation","country","banner"],char:"🇸🇽",fitzpatrick_scale:!1,category:"flags"},slovakia:{keywords:["sk","flag","nation","country","banner"],char:"🇸🇰",fitzpatrick_scale:!1,category:"flags"},slovenia:{keywords:["si","flag","nation","country","banner"],char:"🇸🇮",fitzpatrick_scale:!1,category:"flags"},solomon_islands:{keywords:["solomon","islands","flag","nation","country","banner"],char:"🇸🇧",fitzpatrick_scale:!1,category:"flags"},somalia:{keywords:["so","flag","nation","country","banner"],char:"🇸🇴",fitzpatrick_scale:!1,category:"flags"},south_africa:{keywords:["south","africa","flag","nation","country","banner"],char:"🇿🇦",fitzpatrick_scale:!1,category:"flags"},south_georgia_south_sandwich_islands:{keywords:["south","georgia","sandwich","islands","flag","nation","country","banner"],char:"🇬🇸",fitzpatrick_scale:!1,category:"flags"},kr:{keywords:["south","korea","nation","flag","country","banner"],char:"🇰🇷",fitzpatrick_scale:!1,category:"flags"},south_sudan:{keywords:["south","sd","flag","nation","country","banner"],char:"🇸🇸",fitzpatrick_scale:!1,category:"flags"},es:{keywords:["spain","flag","nation","country","banner"],char:"🇪🇸",fitzpatrick_scale:!1,category:"flags"},sri_lanka:{keywords:["sri","lanka","flag","nation","country","banner"],char:"🇱🇰",fitzpatrick_scale:!1,category:"flags"},sudan:{keywords:["sd","flag","nation","country","banner"],char:"🇸🇩",fitzpatrick_scale:!1,category:"flags"},suriname:{keywords:["sr","flag","nation","country","banner"],char:"🇸🇷",fitzpatrick_scale:!1,category:"flags"},swaziland:{keywords:["sz","flag","nation","country","banner"],char:"🇸🇿",fitzpatrick_scale:!1,category:"flags"},sweden:{keywords:["se","flag","nation","country","banner"],char:"🇸🇪",fitzpatrick_scale:!1,category:"flags"},switzerland:{keywords:["ch","flag","nation","country","banner"],char:"🇨🇭",fitzpatrick_scale:!1,category:"flags"},syria:{keywords:["syrian","arab","republic","flag","nation","country","banner"],char:"🇸🇾",fitzpatrick_scale:!1,category:"flags"},taiwan:{keywords:["tw","flag","nation","country","banner"],char:"🇹🇼",fitzpatrick_scale:!1,category:"flags"},tajikistan:{keywords:["tj","flag","nation","country","banner"],char:"🇹🇯",fitzpatrick_scale:!1,category:"flags"},tanzania:{keywords:["tanzania,","united","republic","flag","nation","country","banner"],char:"🇹🇿",fitzpatrick_scale:!1,category:"flags"},thailand:{keywords:["th","flag","nation","country","banner"],char:"🇹🇭",fitzpatrick_scale:!1,category:"flags"},timor_leste:{keywords:["timor","leste","flag","nation","country","banner"],char:"🇹🇱",fitzpatrick_scale:!1,category:"flags"},togo:{keywords:["tg","flag","nation","country","banner"],char:"🇹🇬",fitzpatrick_scale:!1,category:"flags"},tokelau:{keywords:["tk","flag","nation","country","banner"],char:"🇹🇰",fitzpatrick_scale:!1,category:"flags"},tonga:{keywords:["to","flag","nation","country","banner"],char:"🇹🇴",fitzpatrick_scale:!1,category:"flags"},trinidad_tobago:{keywords:["trinidad","tobago","flag","nation","country","banner"],char:"🇹🇹",fitzpatrick_scale:!1,category:"flags"},tunisia:{keywords:["tn","flag","nation","country","banner"],char:"🇹🇳",fitzpatrick_scale:!1,category:"flags"},tr:{keywords:["turkey","flag","nation","country","banner"],char:"🇹🇷",fitzpatrick_scale:!1,category:"flags"},turkmenistan:{keywords:["flag","nation","country","banner"],char:"🇹🇲",fitzpatrick_scale:!1,category:"flags"},turks_caicos_islands:{keywords:["turks","caicos","islands","flag","nation","country","banner"],char:"🇹🇨",fitzpatrick_scale:!1,category:"flags"},tuvalu:{keywords:["flag","nation","country","banner"],char:"🇹🇻",fitzpatrick_scale:!1,category:"flags"},uganda:{keywords:["ug","flag","nation","country","banner"],char:"🇺🇬",fitzpatrick_scale:!1,category:"flags"},ukraine:{keywords:["ua","flag","nation","country","banner"],char:"🇺🇦",fitzpatrick_scale:!1,category:"flags"},united_arab_emirates:{keywords:["united","arab","emirates","flag","nation","country","banner"],char:"🇦🇪",fitzpatrick_scale:!1,category:"flags"},uk:{keywords:["united","kingdom","great","britain","northern","ireland","flag","nation","country","banner","british","UK","english","england","union jack"],char:"🇬🇧",fitzpatrick_scale:!1,category:"flags"},england:{keywords:["flag","english"],char:"🏴",fitzpatrick_scale:!1,category:"flags"},scotland:{keywords:["flag","scottish"],char:"🏴",fitzpatrick_scale:!1,category:"flags"},wales:{keywords:["flag","welsh"],char:"🏴",fitzpatrick_scale:!1,category:"flags"},us:{keywords:["united","states","america","flag","nation","country","banner"],char:"🇺🇸",fitzpatrick_scale:!1,category:"flags"},us_virgin_islands:{keywords:["virgin","islands","us","flag","nation","country","banner"],char:"🇻🇮",fitzpatrick_scale:!1,category:"flags"},uruguay:{keywords:["uy","flag","nation","country","banner"],char:"🇺🇾",fitzpatrick_scale:!1,category:"flags"},uzbekistan:{keywords:["uz","flag","nation","country","banner"],char:"🇺🇿",fitzpatrick_scale:!1,category:"flags"},vanuatu:{keywords:["vu","flag","nation","country","banner"],char:"🇻🇺",fitzpatrick_scale:!1,category:"flags"},vatican_city:{keywords:["vatican","city","flag","nation","country","banner"],char:"🇻🇦",fitzpatrick_scale:!1,category:"flags"},venezuela:{keywords:["ve","bolivarian","republic","flag","nation","country","banner"],char:"🇻🇪",fitzpatrick_scale:!1,category:"flags"},vietnam:{keywords:["viet","nam","flag","nation","country","banner"],char:"🇻🇳",fitzpatrick_scale:!1,category:"flags"},wallis_futuna:{keywords:["wallis","futuna","flag","nation","country","banner"],char:"🇼🇫",fitzpatrick_scale:!1,category:"flags"},western_sahara:{keywords:["western","sahara","flag","nation","country","banner"],char:"🇪🇭",fitzpatrick_scale:!1,category:"flags"},yemen:{keywords:["ye","flag","nation","country","banner"],char:"🇾🇪",fitzpatrick_scale:!1,category:"flags"},zambia:{keywords:["zm","flag","nation","country","banner"],char:"🇿🇲",fitzpatrick_scale:!1,category:"flags"},zimbabwe:{keywords:["zw","flag","nation","country","banner"],char:"🇿🇼",fitzpatrick_scale:!1,category:"flags"},united_nations:{keywords:["un","flag","banner"],char:"🇺🇳",fitzpatrick_scale:!1,category:"flags"},pirate_flag:{keywords:["skull","crossbones","flag","banner"],char:"🏴☠️",fitzpatrick_scale:!1,category:"flags"}})},"4ea8":function(e,t,n){n("cdd9")},"64d8":function(e,t,n){n("ef1f")},"69a4":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(e){return e.getParam("content_style","","string")},o=function(e){return e.getParam("content_css_cors",!1,"boolean")},i=function(e){var t=e.getParam("body_class","","hash");return t[e.id]||""},a=function(e){var t=e.getParam("body_class","","string");return-1===t.indexOf("=")?t:i(e)},c=function(e){var t=e.getParam("body_id","","hash");return t[e.id]||t},u=function(e){var t=e.getParam("body_id","tinymce","string");return-1===t.indexOf("=")?t:c(e)},s=function(e){var i="",c=e.dom.encode,s=r(e);i+='<base href="'+c(e.documentBaseURI.getURI())+'">';var l=o(e)?' crossorigin="anonymous"':"";n.each(e.contentCSS,(function(t){i+='<link type="text/css" rel="stylesheet" href="'+c(e.documentBaseURI.toAbsolute(t))+'"'+l+">"})),s&&(i+='<style type="text/css">'+s+"</style>");var f=u(e),d=a(e),m=t.mac?"e.metaKey":"e.ctrlKey && !e.altKey",g='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+m+")) {e.preventDefault();}}}, false);<\/script> ",p=e.getBody().dir,h=p?' dir="'+c(p)+'"':"",v="<!DOCTYPE html><html><head>"+i+'</head><body id="'+c(f)+'" class="mce-content-body '+c(d)+'"'+h+">"+e.getContent()+g+"</body></html>";return v},l=function(e){var t=s(e),n=e.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:t}});n.focus("close")},f=function(e){e.addCommand("mcePreview",(function(){l(e)}))},d=function(e){var t=function(){return e.execCommand("mcePreview")};e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:t}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:t})};function m(){e.add("preview",(function(e){f(e),d(e)}))}m()})()},"69e4":function(e,t,n){n("d169")},"7c4f":function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return!!e.hasPlugin("powerpaste",!0)&&("undefined"!==typeof window.console&&window.console.log&&window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),!0)},r=function(e){return{clipboard:e}},o=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},i=function(e){return function(t){return o(t)===e}},a=function(e){return function(t){return typeof t===e}},c=i("array"),u=function(e){return null===e||void 0===e},s=function(e){return!u(e)},l=a("function"),f=function(){},d=function(e){return function(){return e}},m=function(e){return e},g=d(!1),p=d(!0),h=function(){return v},v=function(){var e=function(e){return e()},t=m,n={fold:function(e,t){return e()},isSome:g,isNone:p,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:h,each:f,bind:h,exists:g,forall:p,filter:function(){return h()},toArray:function(){return[]},toString:d("none()")};return n}(),y=function(e){var t=d(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:p,isNone:g,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return y(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:v},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},b=function(e){return null===e||void 0===e?v:y(e)},w={some:y,none:h,from:b},k=Array.prototype.slice,_=Array.prototype.push,x=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return!0}return!1},z=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},C=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},S=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},T=function(e,t,n){return C(e,(function(e,r){n=t(n,e,r)})),n},O=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!c(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);_.apply(t,e[n])}return t},E=function(e,t){return O(z(e,t))},A=l(Array.from)?Array.from:function(e){return k.call(e)},D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},D.apply(this,arguments)},M=function(t){var n=e(w.none()),r=function(){return n.get().each(t)},o=function(){r(),n.set(w.none())},i=function(){return n.get().isSome()},a=function(){return n.get()},c=function(e){r(),n.set(w.some(e))};return{clear:o,isSet:i,get:a,set:c}},R=function(){var e=M(f),t=function(t){return e.get().each(t)};return D(D({},e),{on:t})},N=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},B=function(e,t){return N(e,t,0)},P=function(e,t){return N(e,t,e.length-t.length)},L=function(e,t){return t<=0?"":new Array(t+1).join(e)},I=tinymce.util.Tools.resolve("tinymce.Env"),H=tinymce.util.Tools.resolve("tinymce.util.Delay"),F=tinymce.util.Tools.resolve("tinymce.util.Promise"),j=tinymce.util.Tools.resolve("tinymce.util.VK"),V=function(e,t,n,r){return e.fire("PastePreProcess",{content:t,internal:n,wordContent:r})},U=function(e,t,n,r){return e.fire("PastePostProcess",{node:t,internal:n,wordContent:r})},q=function(e,t){return e.fire("PastePlainTextToggle",{state:t})},W=function(e,t){return e.fire("paste",{ieFake:t})},$=tinymce.util.Tools.resolve("tinymce.util.Tools"),G=function(e){return e.getParam("paste_block_drop",!1)},K=function(e){return e.getParam("paste_data_images",!1)},X=function(e){return e.getParam("paste_filter_drop",!0)},Y=function(e){return e.getParam("paste_preprocess")},J=function(e){return e.getParam("paste_postprocess")},Z=function(e){return e.getParam("paste_webkit_styles")},Q=function(e){return e.getParam("paste_remove_styles_if_webkit",!0)},ee=function(e){return e.getParam("paste_merge_formats",!0)},te=function(e){return e.getParam("smart_paste",!0)},ne=function(e){return e.getParam("paste_as_text",!1)},re=function(e){return e.getParam("paste_retain_style_properties")},oe=function(e){var t="-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody";return e.getParam("paste_word_valid_elements",t)},ie=function(e){return e.getParam("paste_convert_word_fake_lists",!0)},ae=function(e){return e.getParam("paste_enable_default_filters",!0)},ce=function(e){return e.getParam("validate")},ue=function(e){return e.getParam("allow_html_data_urls",!1,"boolean")},se=function(e){return e.getParam("paste_data_images",!1,"boolean")},le=function(e){return e.getParam("images_dataimg_filter")},fe=function(e){return e.getParam("images_reuse_filename")},de=function(e){return e.getParam("forced_root_block")},me=function(e){return e.getParam("forced_root_block_attrs")},ge=function(e){return e.getParam("paste_tab_spaces",4,"number")},pe=function(e){var t="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp";return $.explode(e.getParam("images_file_types",t,"string"))},he="x-tinymce/html",ve="\x3c!-- "+he+" --\x3e",ye=function(e){return ve+e},be=function(e){return e.replace(ve,"")},we=function(e){return-1!==e.indexOf(ve)},ke=d(he),_e=Object.hasOwnProperty,xe=function(e,t){return _e.call(e,t)},ze=tinymce.util.Tools.resolve("tinymce.html.Entities"),Ce=function(e){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(e)},Se=function(e){return e.replace(/\r?\n/g,"<br>")},Te=function(e,t){var n=[],r="<"+e;if("object"===typeof t){for(var o in t)xe(t,o)&&n.push(o+'="'+ze.encodeAllRaw(t[o])+'"');n.length&&(r+=" "+n.join(" "))}return r+">"},Oe=function(e,t,n){var r=e.split(/\n\n/),o=Te(t,n),i="</"+t+">",a=$.map(r,(function(e){return e.split(/\n/).join("<br />")})),c=function(e){return o+e+i};return 1===a.length?a[0]:$.map(a,c).join("")},Ee=function(e,t,n){return t?Oe(e,!0===t?"p":t,n):Se(e)},Ae=tinymce.util.Tools.resolve("tinymce.html.DomParser"),De=tinymce.util.Tools.resolve("tinymce.html.Serializer"),Me=" ",Re=tinymce.util.Tools.resolve("tinymce.html.Node"),Ne=tinymce.util.Tools.resolve("tinymce.html.Schema"),Be=function(e){return e.constructor===RegExp},Pe=function(e,t){return $.each(t,(function(t){e=Be(t)?e.replace(t,""):e.replace(t[0],t[1])})),e},Le=function(e){var t=Ne(),n=Ae({},t),r="",o=t.getShortEndedElements(),i=$.makeMap("script noscript style textarea video audio iframe object"," "),a=t.getBlockElements(),c=function(e){var t=e.name,n=e;if("br"!==t){if("wbr"!==t)if(o[t]&&(r+=" "),i[t])r+=" ";else{if(3===e.type&&(r+=e.value),!e.shortEnded&&(e=e.firstChild))do{c(e)}while(e=e.next);a[t]&&n.next&&(r+="\n","p"===t&&(r+="\n"))}}else r+="\n"};return e=Pe(e,[/<!\[[^\]]+\]>/g]),c(n.parse(e)),r},Ie=function(e){var t=function(e,t,n){return t||n?Me:" "};return e=Pe(e,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,t],/<br class="Apple-interchange-newline">/g,/<br>$/i]),e},He=function(e){var t=0;return function(){return e+t++}},Fe=function(e){var t=e.toLowerCase(),n={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return $.hasOwn(n,t)?"image/"+n[t]:"image/"+t},je=function(e){return/<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument/i.test(e)||/class="OutlineElement/.test(e)||/id="?docs\-internal\-guid\-/.test(e)},Ve=function(e){var t=!1,n=[/^[IVXLMCD]+\.[ \u00a0]/,/^[ivxlmcd]+\.[ \u00a0]/,/^[a-z]{1,2}[\.\)][ \u00a0]/,/^[A-Z]{1,2}[\.\)][ \u00a0]/,/^[0-9]+\.[ \u00a0]/,/^[\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]+\.[ \u00a0]/,/^[\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d\u62fe]+\.[ \u00a0]/];return e=e.replace(/^[\u00a0 ]+/,""),$.each(n,(function(n){if(n.test(e))return t=!0,!1})),t},Ue=function(e){return/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(e)},qe=function(e){var t,n,r=1,o=function(e){var t="";if(3===e.type)return e.value;if(e=e.firstChild)do{t+=o(e)}while(e=e.next);return t},i=function(e,t){if(3===e.type&&t.test(e.value))return e.value=e.value.replace(t,""),!1;if(e=e.firstChild)do{if(!i(e,t))return!1}while(e=e.next);return!0},a=function(e){if(e._listIgnore)e.remove();else if(e=e.firstChild)do{a(e)}while(e=e.next)},c=function(e,o,c){var u=e._listLevel||r;u!==r&&(u<r?t&&(t=t.parent.parent):(n=t,t=null)),t&&t.name===o?t.append(e):(n=n||t,t=new Re(o,1),c>1&&t.attr("start",""+c),e.wrap(t)),e.name="li",u>r&&n&&n.lastChild.append(t),r=u,a(e),i(e,/^\u00a0+/),i(e,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),i(e,/^\u00a0+/)},u=[],s=e.firstChild;while("undefined"!==typeof s&&null!==s)if(u.push(s),s=s.walk(),null!==s)while("undefined"!==typeof s&&s.parent!==e)s=s.walk();for(var l=0;l<u.length;l++)if(e=u[l],"p"===e.name&&e.firstChild){var f=o(e);if(Ue(f)){c(e,"ul");continue}if(Ve(f)){var d=/([0-9]+)\./.exec(f),m=1;d&&(m=parseInt(d[1],10)),c(e,"ol",m);continue}if(e._listLevel){c(e,"ul",1);continue}t=null}else n=t,t=null},We=function(e,t,n,r){var o={},i=e.dom.parseStyle(r);$.each(i,(function(i,a){switch(a){case"mso-list":var c=/\w+ \w+([0-9]+)/i.exec(r);c&&(n._listLevel=parseInt(c[1],10)),/Ignore/i.test(i)&&n.firstChild&&(n._listIgnore=!0,n.firstChild._listIgnore=!0);break;case"horiz-align":a="text-align";break;case"vert-align":a="vertical-align";break;case"font-color":case"mso-foreground":a="color";break;case"mso-background":case"mso-highlight":a="background";break;case"font-weight":case"font-style":return void("normal"!==i&&(o[a]=i));case"mso-element":if(/^(comment|comment-list)$/i.test(i))return void n.remove();break}0!==a.indexOf("mso-comment")?0!==a.indexOf("mso-")&&("all"===re(e)||t&&t[a])&&(o[a]=i):n.remove()})),/(bold)/i.test(o["font-weight"])&&(delete o["font-weight"],n.wrap(new Re("b",1))),/(italic)/i.test(o["font-style"])&&(delete o["font-style"],n.wrap(new Re("i",1)));var a=e.dom.serializeStyle(o,n.name);return a||null},$e=function(e,t){var n,r=re(e);r&&(n=$.makeMap(r.split(/[, ]/))),t=Pe(t,[/<br class="?Apple-interchange-newline"?>/gi,/<b[^>]+id="?docs-internal-[^>]*>/gi,/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi,Me],[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(e,t){return t.length>0?t.replace(/./," ").slice(Math.floor(t.length/2)).split("").join(Me):""}]]);var o=oe(e),i=Ne({valid_elements:o,valid_children:"-li[p]"});$.each(i.elements,(function(e){e.attributes.class||(e.attributes.class={},e.attributesOrder.push("class")),e.attributes.style||(e.attributes.style={},e.attributesOrder.push("style"))}));var a=Ae({},i);a.addAttributeFilter("style",(function(t){var r,o=t.length;while(o--)r=t[o],r.attr("style",We(e,n,r,r.attr("style"))),"span"===r.name&&r.parent&&!r.attributes.length&&r.unwrap()})),a.addAttributeFilter("class",(function(e){var t,n,r=e.length;while(r--)t=e[r],n=t.attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&t.remove(),t.attr("class",null)})),a.addNodeFilter("del",(function(e){var t=e.length;while(t--)e[t].remove()})),a.addNodeFilter("a",(function(e){var t,n,r,o=e.length;while(o--)if(t=e[o],n=t.attr("href"),r=t.attr("name"),n&&-1!==n.indexOf("#_msocom_"))t.remove();else if(n&&0===n.indexOf("file://")&&(n=n.split("#")[1],n&&(n="#"+n)),n||r){if(r&&!/^_?(?:toc|edn|ftn)/i.test(r)){t.unwrap();continue}t.attr({href:n,name:r})}else t.unwrap()}));var c=a.parse(t);return ie(e)&&qe(c),t=De({validate:ce(e)},i).serialize(c),t},Ge=function(e,t){return ae(e)?$e(e,t):t},Ke=function(e,t){var n=Ae({},e.schema);n.addNodeFilter("meta",(function(e){$.each(e,(function(e){e.remove()}))}));var r=n.parse(t,{forced_root_block:!1,isRootContent:!0});return De({validate:ce(e)},e.schema).serialize(r)},Xe=function(e,t){return{content:e,cancelled:t}},Ye=function(e,t,n,r){var o=e.dom.create("div",{style:"display:none"},t),i=U(e,o,n,r);return Xe(i.node.innerHTML,i.isDefaultPrevented())},Je=function(e,t,n,r){var o=V(e,t,n,r),i=Ke(e,o.content);return e.hasEventListeners("PastePostProcess")&&!o.isDefaultPrevented()?Ye(e,i,n,r):Xe(i,o.isDefaultPrevented())},Ze=function(e,t,n){var r=je(t),o=r?Ge(e,t):t;return Je(e,o,n,r)},Qe=function(e,t){return e.insertContent(t,{merge:ee(e),paste:!0}),!0},et=function(e){return/^https?:\/\/[\w\?\-\/+=.&%@~#]+$/i.test(e)},tt=function(e,t){return et(t)&&x(pe(e),(function(e){return P(t.toLowerCase(),"."+e.toLowerCase())}))},nt=function(e,t,n){return e.undoManager.extra((function(){n(e,t)}),(function(){e.insertContent('<img src="'+t+'">')})),!0},rt=function(e,t,n){return e.undoManager.extra((function(){n(e,t)}),(function(){e.execCommand("mceInsertLink",!1,t)})),!0},ot=function(e,t,n){return!(!1!==e.selection.isCollapsed()||!et(t))&&rt(e,t,n)},it=function(e,t,n){return!!tt(e,t)&&nt(e,t,n)},at=function(e,t){$.each([ot,it,Qe],(function(n){return!0!==n(e,t,Qe)}))},ct=function(e,t,n){n||!1===te(e)?Qe(e,t):at(e,t)},ut=function(e){return-1!==" \f\t\v".indexOf(e)},st=function(e){return"\n"===e||"\r"===e},lt=function(e,t){return t<e.length&&t>=0&&st(e[t])},ft=function(e,t){var n=L(" ",ge(e)),r=t.replace(/\t/g,n),o=T(r,(function(e,t){return ut(t)||t===Me?e.pcIsSpace||""===e.str||e.str.length===r.length-1||lt(r,e.str.length+1)?{pcIsSpace:!1,str:e.str+Me}:{pcIsSpace:!0,str:e.str+" "}:{pcIsSpace:st(t),str:e.str+t}}),{pcIsSpace:!1,str:""});return o.str},dt=function(e,t,n,r){var o=Ze(e,t,n);!1===o.cancelled&&ct(e,o.content,r)},mt=function(e,t,n){var r=n||we(t);dt(e,be(t),r,!1)},gt=function(e,t){var n=e.dom.encode(t).replace(/\r\n/g,"\n"),r=ft(e,n),o=Ee(r,de(e),me(e));dt(e,o,!1,!0)},pt=function(e){var t={},n="data:text/mce-internal,";if(e){if(e.getData){var r=e.getData("Text");r&&r.length>0&&-1===r.indexOf(n)&&(t["text/plain"]=r)}if(e.types)for(var o=0;o<e.types.length;o++){var i=e.types[o];try{t[i]=e.getData(i)}catch(a){t[i]=""}}}return t},ht=function(e,t){return pt(t.clipboardData||e.getDoc().dataTransfer)},vt=function(e,t){return t in e&&e[t].length>0},yt=function(e){return vt(e,"text/html")||vt(e,"text/plain")},bt=function(e){var t=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(e);return t?{type:t[1],data:decodeURIComponent(t[2])}:{type:null,data:null}},wt=function(e,t){var n=le(e);return!n||n(t)},kt=function(e,t){var n=t.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return s(n)?e.dom.encode(n[1]):null},_t=He("mceclip"),xt=function(e,t){var n=bt(t.uri),r=n.data,o=n.type,i=_t(),a=t.blob,c=new Image;if(c.src=t.uri,wt(e,c)){var u=e.editorUpload.blobCache,l=void 0,f=u.getByData(r,o);if(f)l=f;else{var d=fe(e)&&s(a.name),m=d?kt(e,a.name):i,g=d?a.name:void 0;l=u.create(i,a,r,m,g),u.add(l)}mt(e,'<img src="'+l.blobUri()+'">',!1)}else mt(e,'<img src="'+t.uri+'">',!1)},zt=function(e){return"paste"===e.type},Ct=function(e){return s(e.getAsFile)},St=function(e){return F.all(z(e,(function(e){return new F((function(t){var n=Ct(e)?e.getAsFile():e,r=new window.FileReader;r.onload=function(){t({blob:n,uri:r.result})},r.readAsDataURL(n)}))})))},Tt=function(e){var t=pe(e);return function(e){return B(e.type,"image/")&&x(t,(function(t){return Fe(t)===e.type}))}},Ot=function(e,t){var n=t.items?E(A(t.items),(function(e){return"file"===e.kind?[e.getAsFile()]:[]})):[],r=t.files?A(t.files):[];return S(n.length>0?n:r,Tt(e))},Et=function(e,t,n){var r=zt(t)?t.clipboardData:t.dataTransfer;if(se(e)&&r){var o=Ot(e,r);if(o.length>0)return t.preventDefault(),St(o).then((function(t){n&&e.selection.setRng(n),C(t,(function(t){xt(e,t)}))})),!0}return!1},At=function(e){var t=e.clipboardData;return-1!==navigator.userAgent.indexOf("Android")&&t&&t.items&&0===t.items.length},Dt=function(e){return j.metaKeyPressed(e)&&86===e.keyCode||e.shiftKey&&45===e.keyCode},Mt=function(e,t,n){var r,o=R(),i=R();e.on("keyup",i.clear),e.on("keydown",(function(n){var a=function(e){Dt(e)&&!e.isDefaultPrevented()&&t.remove()};if(Dt(n)&&!n.isDefaultPrevented()){if(r=n.shiftKey&&86===n.keyCode,r&&I.webkit&&-1!==navigator.userAgent.indexOf("Version/"))return;if(n.stopImmediatePropagation(),o.set(n),i.set(!0),I.ie&&r)return n.preventDefault(),void W(e,!0);t.remove(),t.create(),e.once("keyup",a),e.once("paste",(function(){e.off("keyup",a)}))}}));var a=function(e,n,r,o,i){var a;vt(n,"text/html")?a=n["text/html"]:(a=t.getHtml(),i=i||we(a),t.isDefaultContent(a)&&(o=!0)),a=Ie(a),t.remove();var c=!1===i&&Ce(a),u=et(a);(!a.length||c&&!u)&&(o=!0),(o||u)&&(a=vt(n,"text/plain")&&c?n["text/plain"]:Le(a)),t.isDefaultContent(a)?r||e.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents."):o?gt(e,a):mt(e,a,i)},c=function(){return t.getLastRng()||e.selection.getRng()};e.on("paste",(function(u){var s=o.isSet()||i.isSet();s&&o.clear();var l=ht(e,u),f="text"===n.get()||r,d=vt(l,ke());r=!1,u.isDefaultPrevented()||At(u)?t.remove():yt(l)||!Et(e,u,c())?(s||u.preventDefault(),!I.ie||s&&!u.ieFake||vt(l,"text/html")||(t.create(),e.dom.bind(t.getEl(),"paste",(function(e){e.stopPropagation()})),e.getDoc().execCommand("Paste",!1,null),l["text/html"]=t.getHtml()),vt(l,"text/html")?(u.preventDefault(),d||(d=we(l["text/html"])),a(e,l,s,f,d)):H.setEditorTimeout(e,(function(){a(e,l,s,f,d)}),0)):t.remove()}))},Rt=function(e,t,n){var r;Mt(e,t,n),e.parser.addNodeFilter("img",(function(t,n,o){var i=function(e){return e.data&&!0===e.data.paste},a=function(e){e.attr("data-mce-object")||r===I.transparentSrc||e.remove()},c=function(e){return 0===e.indexOf("webkit-fake-url")},u=function(e){return 0===e.indexOf("data:")};if(!se(e)&&i(o)){var s=t.length;while(s--)r=t[s].attr("src"),r&&(c(r)||!ue(e)&&u(r))&&a(t[s])}}))},Nt=function(e){return I.ie&&e.inline?document.body:e.getBody()},Bt=function(e){return Nt(e)!==e.getBody()},Pt=function(e,t,n){Bt(e)&&e.dom.bind(t,"paste keyup",(function(t){Ut(e,n)||e.fire("paste")}))},Lt=function(e,t,n){var r=e.dom,o=e.getBody();t.set(e.selection.getRng());var i=e.dom.add(Nt(e),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},n);(I.ie||I.gecko)&&r.setStyle(i,"left","rtl"===r.getStyle(o,"direction",!0)?65535:-65535),r.bind(i,"beforedeactivate focusin focusout",(function(e){e.stopPropagation()})),Pt(e,i,n),i.focus(),e.selection.select(i,!0)},It=function(e,t){if(Ht(e)){var n=void 0,r=t.get();while(n=e.dom.get("mcepastebin"))e.dom.remove(n),e.dom.unbind(n);r&&e.selection.setRng(r)}t.set(null)},Ht=function(e){return e.dom.get("mcepastebin")},Ft=function(e){var t=function(t,n){t.appendChild(n),e.dom.remove(n,!0)},n=$.grep(Nt(e).childNodes,(function(e){return"mcepastebin"===e.id})),r=n.shift();$.each(n,(function(e){t(r,e)}));for(var o=e.dom.select("div[id=mcepastebin]",r),i=o.length-1;i>=0;i--){var a=e.dom.create("div");r.insertBefore(a,o[i]),t(a,o[i])}return r?r.innerHTML:""},jt=function(e,t){return t===e},Vt=function(e){return e&&"mcepastebin"===e.id},Ut=function(e,t){var n=Ht(e);return Vt(n)&&jt(t,n.innerHTML)},qt=function(t){var n=e(null),r="%MCEPASTEBIN%";return{create:function(){return Lt(t,n,r)},remove:function(){return It(t,n)},getEl:function(){return Ht(t)},getHtml:function(){return Ft(t)},getLastRng:n.get,isDefault:function(){return Ut(t,r)},isDefaultContent:function(e){return jt(r,e)}}},Wt=function(e,t){var n=qt(e);return e.on("PreInit",(function(){return Rt(e,n,t)})),{pasteFormat:t,pasteHtml:function(t,n){return mt(e,t,n)},pasteText:function(t){return gt(e,t)},pasteImageData:function(t,n){return Et(e,t,n)},getDataTransferItems:pt,hasHtmlOrText:yt,hasContentType:vt}},$t=function(e,t){"text"===t.pasteFormat.get()?(t.pasteFormat.set("html"),q(e,!1)):(t.pasteFormat.set("text"),q(e,!0)),e.focus()},Gt=function(e,t){e.addCommand("mceTogglePlainTextPaste",(function(){$t(e,t)})),e.addCommand("mceInsertClipboardContent",(function(e,n){n.content&&t.pasteHtml(n.content,n.internal),n.text&&t.pasteText(n.text)}))},Kt=function(e){return!1===I.iOS&&"function"===typeof(null===e||void 0===e?void 0:e.setData)},Xt=function(e,t,n){if(!Kt(e))return!1;try{return e.clearData(),e.setData("text/html",t),e.setData("text/plain",n),e.setData(ke(),t),!0}catch(r){return!1}},Yt=function(e,t,n,r){Xt(e.clipboardData,t.html,t.text)?(e.preventDefault(),r()):n(t.html,r)},Jt=function(e){return function(t,n){var r=ye(t),o=e.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),i=e.dom.create("div",{contenteditable:"true"},r);e.dom.setStyles(o,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),o.appendChild(i),e.dom.add(e.getBody(),o);var a=e.selection.getRng();i.focus();var c=e.dom.createRng();c.selectNodeContents(i),e.selection.setRng(c),H.setTimeout((function(){e.selection.setRng(a),o.parentNode.removeChild(o),n()}),0)}},Zt=function(e){return{html:e.selection.getContent({contextual:!0}),text:e.selection.getContent({format:"text"})}},Qt=function(e){return!!e.dom.getParent(e.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",e.getBody())},en=function(e){return!e.selection.isCollapsed()||Qt(e)},tn=function(e){return function(t){en(e)&&Yt(t,Zt(e),Jt(e),(function(){if(I.browser.isChrome()||I.browser.isFirefox()){var t=e.selection.getRng();H.setEditorTimeout(e,(function(){e.selection.setRng(t),e.execCommand("Delete")}),0)}else e.execCommand("Delete")}))}},nn=function(e){return function(t){en(e)&&Yt(t,Zt(e),Jt(e),f)}},rn=function(e){e.on("cut",tn(e)),e.on("copy",nn(e))},on=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),an=function(e,t){return on.getCaretRangeFromPoint(t.clientX,t.clientY,e.getDoc())},cn=function(e){var t=e["text/plain"];return!!t&&0===t.indexOf("file://")},un=function(e,t){e.focus(),e.selection.setRng(t)},sn=function(e,t,n){G(e)&&e.on("dragend dragover draggesture dragdrop drop drag",(function(e){e.preventDefault(),e.stopPropagation()})),K(e)||e.on("drop",(function(e){var t=e.dataTransfer;t&&t.files&&t.files.length>0&&e.preventDefault()})),e.on("drop",(function(r){var o=an(e,r);if(!r.isDefaultPrevented()&&!n.get()){var i=t.getDataTransferItems(r.dataTransfer),a=t.hasContentType(i,ke());if((t.hasHtmlOrText(i)&&!cn(i)||!t.pasteImageData(r,o))&&o&&X(e)){var c=i["mce-internal"]||i["text/html"]||i["text/plain"];c&&(r.preventDefault(),H.setEditorTimeout(e,(function(){e.undoManager.transact((function(){i["mce-internal"]&&e.execCommand("Delete"),un(e,o),c=Ie(c),i["text/html"]?t.pasteHtml(c,a):t.pasteText(c)}))})))}}})),e.on("dragstart",(function(e){n.set(!0)})),e.on("dragover dragend",(function(t){K(e)&&!1===n.get()&&(t.preventDefault(),un(e,an(e,t))),"dragend"===t.type&&n.set(!1)}))},ln=function(e){var t=e.plugins.paste,n=Y(e);n&&e.on("PastePreProcess",(function(e){n.call(t,t,e)}));var r=J(e);r&&e.on("PastePostProcess",(function(e){r.call(t,t,e)}))},fn=function(e,t){e.on("PastePreProcess",(function(n){n.content=t(e,n.content,n.internal,n.wordContent)}))},dn=function(e,t){e.on("PastePostProcess",(function(n){t(e,n.node)}))},mn=function(e,t){if(!je(t))return t;var n=[];$.each(e.schema.getBlockElements(),(function(e,t){n.push(t)}));var r=new RegExp("(?:<br> [\\s\\r\\n]+|<br>)*(<\\/?("+n.join("|")+")[^>]*>)(?:<br> [\\s\\r\\n]+|<br>)*","g");return t=Pe(t,[[r,"$1"]]),t=Pe(t,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]]),t},gn=function(e,t,n,r){if(r||n)return t;var o,i=Z(e);if(!1===Q(e)||"all"===i)return t;if(i&&(o=i.split(/[, ]/)),o){var a=e.dom,c=e.selection.getNode();t=t.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(function(e,t,n,r){var i=a.parseStyle(a.decode(n)),u={};if("none"===o)return t+r;for(var s=0;s<o.length;s++){var l=i[o[s]],f=a.getStyle(c,o[s],!0);/color/.test(o[s])&&(l=a.toHex(l),f=a.toHex(f)),f!==l&&(u[o[s]]=l)}var d=a.serializeStyle(u,"span");return d?t+' style="'+d+'"'+r:t+r}))}else t=t.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return t=t.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(function(e,t,n,r){return t+' style="'+n+'"'+r})),t},pn=function(e,t){e.$("a",t).find("font,u").each((function(t,n){e.dom.remove(n,!0)}))},hn=function(e){I.webkit&&fn(e,gn),I.ie&&(fn(e,mn),dn(e,pn))},vn=function(e,t){return function(n){n.setActive("text"===t.pasteFormat.get());var r=function(e){return n.setActive(e.state)};return e.on("PastePlainTextToggle",r),function(){return e.off("PastePlainTextToggle",r)}}},yn=function(e,t){var n=function(){return e.execCommand("mceTogglePlainTextPaste")};e.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:n,onSetup:vn(e,t)}),e.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:n,onSetup:vn(e,t)})};function bn(){t.add("paste",(function(t){if(!1===n(t)){var o=e(!1),i=e(ne(t)?"text":"html"),a=Wt(t,i);return hn(t),yn(t,a),Gt(t,a),ln(t),rn(t),sn(t,a,o),r(a)}}))}bn()})()},"84ec":function(e,t,n){n("2401")},8863:function(e,t,n){n("9dd9")},"90e7":function(e,t,n){n("3c41")},9434:function(e,t,n){n("e8b0")},"94ce":function(e,t){(function(){"use strict";var e=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},t=function(t){return function(n){return e(n)===t}},n=function(e){return function(t){return typeof t===e}},r=function(e){return function(t){return e===t}},o=t("string"),i=t("object"),a=t("array"),c=r(null),u=n("boolean"),s=r(void 0),l=function(e){return null===e||void 0===e},f=function(e){return!l(e)},d=n("function"),m=n("number"),g=function(){},p=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},h=function(e,t){return function(n){return e(t(n))}},v=function(e){return function(){return e}},y=function(e){return e},b=function(e,t){return e===t};function w(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}var k=function(e){return function(t){return!e(t)}},_=function(e){return function(){throw new Error(e)}},x=v(!1),z=v(!0),C=function(){return S},S=function(){var e=function(e){return e()},t=y,n={fold:function(e,t){return e()},isSome:x,isNone:z,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:v(null),getOrUndefined:v(void 0),or:t,orThunk:e,map:C,each:g,bind:C,exists:x,forall:z,filter:function(){return C()},toArray:function(){return[]},toString:v("none()")};return n}(),T=function(e){var t=v(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:z,isNone:x,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return T(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:S},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},O=function(e){return null===e||void 0===e?S:T(e)},E={some:T,none:C,from:O},A=Array.prototype.slice,D=Array.prototype.indexOf,M=Array.prototype.push,R=function(e,t){return D.call(e,t)},N=function(e,t){return R(e,t)>-1},B=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return!0}return!1},P=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},L=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},I=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},H=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},F=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o],c=t(a,o)?n:r;c.push(a)}return{pass:n,fail:r}},j=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},V=function(e,t,n){return H(e,(function(e,r){n=t(n,e,r)})),n},U=function(e,t,n){return I(e,(function(e,r){n=t(n,e,r)})),n},q=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return E.some(i);if(n(i,r))break}return E.none()},W=function(e,t){return q(e,t,x)},$=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return E.some(n)}return E.none()},G=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);M.apply(t,e[n])}return t},K=function(e,t){return G(L(e,t))},X=function(e,t){for(var n=0,r=e.length;n<r;++n){var o=e[n];if(!0!==t(o,n))return!1}return!0},Y=function(e){var t=A.call(e,0);return t.reverse(),t},J=function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n},Z=function(e){return[e]},Q=function(e,t){var n=A.call(e,0);return n.sort(t),n},ee=function(e,t){return t>=0&&t<e.length?E.some(e[t]):E.none()},te=function(e){return ee(e,0)},ne=function(e){return ee(e,e.length-1)},re=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return E.none()},oe=function(){return oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oe.apply(this,arguments)};function ie(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var ae=function(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}},ce=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),c=a||r("(pointer:coarse)"),u=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!s&&!u&&!l;return{isiPad:v(o),isiPhone:v(i),isTablet:v(u),isPhone:v(s),isTouch:v(c),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:v(l),isDesktop:v(f)}},ue=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},se=function(e,t){var n=ue(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return de(r(1),r(2))},le=function(e,t){var n=String(t).toLowerCase();return 0===e.length?fe():se(e,n)},fe=function(){return de(0,0)},de=function(e,t){return{major:e,minor:t}},me={nu:de,detect:le,unknown:fe},ge=function(e,t){return re(t.brands,(function(t){var n=t.brand.toLowerCase();return W(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:me.nu(parseInt(t.version,10),0)}}))}))},pe=function(e,t){var n=String(t).toLowerCase();return W(e,(function(e){return e.search(n)}))},he=function(e,t){return pe(e,t).map((function(e){var n=me.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ve=function(e,t){return pe(e,t).map((function(e){var n=me.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ye=function(e,t){return e.substring(t)},be=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},we=function(e,t){return _e(e,t)?ye(e,t.length):e},ke=function(e,t){return-1!==e.indexOf(t)},_e=function(e,t){return be(e,t,0)},xe=function(e,t){return be(e,t,e.length-t.length)},ze=function(e){return function(t){return t.replace(e,"")}},Ce=ze(/^\s+|\s+$/g),Se=function(e){return e.length>0},Te=function(e){return!Se(e)},Oe=function(e){var t=parseFloat(e);return isNaN(t)?E.none():E.some(t)},Ee=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ae=function(e){return function(t){return ke(t,e)}},De=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ke(e,"edge/")&&ke(e,"chrome")&&ke(e,"safari")&&ke(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ee],search:function(e){return ke(e,"chrome")&&!ke(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ke(e,"msie")||ke(e,"trident")}},{name:"Opera",versionRegexes:[Ee,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ae("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ae("firefox")},{name:"Safari",versionRegexes:[Ee,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ke(e,"safari")||ke(e,"mobile/"))&&ke(e,"applewebkit")}}],Me=[{name:"Windows",search:Ae("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ke(e,"iphone")||ke(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ae("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Ae("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ae("linux"),versionRegexes:[]},{name:"Solaris",search:Ae("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ae("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ae("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Re={browsers:v(De),oses:v(Me)},Ne="Edge",Be="Chrome",Pe="IE",Le="Opera",Ie="Firefox",He="Safari",Fe=function(){return je({current:void 0,version:me.unknown()})},je=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Ne),isChrome:r(Be),isIE:r(Pe),isOpera:r(Le),isFirefox:r(Ie),isSafari:r(He)}},Ve={unknown:Fe,nu:je,edge:v(Ne),chrome:v(Be),ie:v(Pe),opera:v(Le),firefox:v(Ie),safari:v(He)},Ue="Windows",qe="iOS",We="Android",$e="Linux",Ge="OSX",Ke="Solaris",Xe="FreeBSD",Ye="ChromeOS",Je=function(){return Ze({current:void 0,version:me.unknown()})},Ze=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Ue),isiOS:r(qe),isAndroid:r(We),isOSX:r(Ge),isLinux:r($e),isSolaris:r(Ke),isFreeBSD:r(Xe),isChromeOS:r(Ye)}},Qe={unknown:Je,nu:Ze,windows:v(Ue),ios:v(qe),android:v(We),linux:v($e),osx:v(Ge),solaris:v(Ke),freebsd:v(Xe),chromeos:v(Ye)},et=function(e,t,n){var r=Re.browsers(),o=Re.oses(),i=t.bind((function(e){return ge(r,e)})).orThunk((function(){return he(r,e)})).fold(Ve.unknown,Ve.nu),a=ve(o,e).fold(Qe.unknown,Qe.nu),c=ce(a,i,e,n);return{browser:i,os:a,deviceType:c}},tt={detect:et},nt=function(e){return window.matchMedia(e).matches},rt=ae((function(){return tt.detect(navigator.userAgent,E.from(navigator.userAgentData),nt)})),ot=function(){return rt()},it=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},at=function(e,t){return it(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},ct=8,ut=9,st=11,lt=1,ft=3,dt=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return pt(r.childNodes[0])},mt=function(e,t){var n=t||document,r=n.createElement(e);return pt(r)},gt=function(e,t){var n=t||document,r=n.createTextNode(e);return pt(r)},pt=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},ht=function(e,t,n){return E.from(e.dom.elementFromPoint(t,n)).map(pt)},vt={fromHtml:dt,fromTag:mt,fromText:gt,fromDom:pt,fromPoint:ht},yt=function(e,t){var n=e.dom;if(n.nodeType!==lt)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},bt=function(e){return e.nodeType!==lt&&e.nodeType!==ut&&e.nodeType!==st||0===e.childElementCount},wt=function(e,t){var n=void 0===t?document:t.dom;return bt(n)?[]:L(n.querySelectorAll(e),vt.fromDom)},kt=function(e,t){var n=void 0===t?document:t.dom;return bt(n)?E.none():E.from(n.querySelector(e)).map(vt.fromDom)},_t=function(e,t){return e.dom===t.dom},xt=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},zt=function(e,t){return at(e.dom,t.dom)},Ct=function(e,t){return ot().browser.isIE()?zt(e,t):xt(e,t)},St=yt,Tt=Object.keys,Ot=Object.hasOwnProperty,Et=function(e,t){for(var n=Tt(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},At=function(e,t){return Dt(e,(function(e,n){return{k:n,v:t(e,n)}}))},Dt=function(e,t){var n={};return Et(e,(function(e,r){var o=t(e,r);n[o.k]=o.v})),n},Mt=function(e){return function(t,n){e[n]=t}},Rt=function(e,t,n,r){var o={};return Et(e,(function(e,o){(t(e,o)?n:r)(e,o)})),o},Nt=function(e,t){var n={};return Rt(e,t,Mt(n),g),n},Bt=function(e,t){var n=[];return Et(e,(function(e,r){n.push(t(e,r))})),n},Pt=function(e){return Bt(e,y)},Lt=function(e){return Tt(e).length},It=function(e,t){return Ht(e,t)?E.from(e[t]):E.none()},Ht=function(e,t){return Ot.call(e,t)},Ft=function(e,t){return Ht(e,t)&&void 0!==e[t]&&null!==e[t]},jt=function(e){for(var t in e)if(Ot.call(e,t))return!1;return!0},Vt=["tfoot","thead","tbody","colgroup"],Ut=function(e){return N(Vt,e)},qt=function(e,t){return{rows:e,columns:t}},Wt=function(e,t){return{row:e,column:t}},$t=function(e,t,n){return{element:e,rowspan:t,colspan:n}},Gt=function(e,t,n,r){return{element:e,rowspan:t,colspan:n,isNew:r}},Kt=function(e,t,n,r,o,i){return{element:e,rowspan:t,colspan:n,row:r,column:o,isLocked:i}},Xt=function(e,t,n){return{element:e,cells:t,section:n}},Yt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Jt=function(e,t,n){return{element:e,isNew:t,isLocked:n}},Zt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Qt=function(e,t,n,r){return{startRow:e,startCol:t,finishRow:n,finishCol:r}},en=function(e,t,n){return{element:e,colspan:t,column:n}},tn=function(e,t){return{element:e,columns:t}};"undefined"!==typeof window?window:Function("return this;")();var nn=function(e){var t=e.dom.nodeName;return t.toLowerCase()},rn=function(e){return e.dom.nodeType},on=function(e){return function(t){return rn(t)===e}},an=function(e){return rn(e)===ct||"#comment"===nn(e)},cn=on(lt),un=on(ft),sn=on(ut),ln=on(st),fn=function(e){return function(t){return cn(t)&&nn(t)===e}},dn=function(e){return vt.fromDom(e.dom.ownerDocument)},mn=function(e){return sn(e)?e:dn(e)},gn=function(e){return vt.fromDom(mn(e).dom.defaultView)},pn=function(e){return E.from(e.dom.parentNode).map(vt.fromDom)},hn=function(e){return E.from(e.dom.parentElement).map(vt.fromDom)},vn=function(e,t){var n=d(t)?t:x,r=e.dom,o=[];while(null!==r.parentNode&&void 0!==r.parentNode){var i=r.parentNode,a=vt.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o},yn=function(e){return E.from(e.dom.previousSibling).map(vt.fromDom)},bn=function(e){return E.from(e.dom.nextSibling).map(vt.fromDom)},wn=function(e){return L(e.dom.childNodes,vt.fromDom)},kn=function(e,t){var n=e.dom.childNodes;return E.from(n[t]).map(vt.fromDom)},_n=function(e){return kn(e,0)},xn=function(e){return ln(e)&&f(e.dom.host)},zn=d(Element.prototype.attachShadow)&&d(Node.prototype.getRootNode),Cn=v(zn),Sn=zn?function(e){return vt.fromDom(e.dom.getRootNode())}:mn,Tn=function(e){var t=Sn(e);return xn(t)?E.some(t):E.none()},On=function(e){return vt.fromDom(e.dom.host)},En=function(e){if(Cn()&&f(e.target)){var t=vt.fromDom(e.target);if(cn(t)&&An(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return te(n)}}return E.from(e.target)},An=function(e){return f(e.dom.shadowRoot)},Dn=function(e){var t=un(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return Tn(vt.fromDom(t)).fold((function(){return n.body.contains(t)}),h(Dn,On))},Mn=function(){return Rn(vt.fromDom(document))},Rn=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return vt.fromDom(t)},Nn=function(e,t,n){return j(vn(e,n),t)},Bn=function(e,t){return j(wn(e),t)},Pn=function(e,t){var n=[];return I(wn(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Pn(e,t))})),n},Ln=function(e,t,n){return Nn(e,(function(e){return yt(e,t)}),n)},In=function(e,t){return Bn(e,(function(e){return yt(e,t)}))},Hn=function(e,t){return wt(t,e)};function Fn(e,t,n,r,o){return e(n,r)?E.some(n):d(o)&&o(n)?E.none():t(n,r,o)}var jn=function(e,t,n){var r=e.dom,o=d(n)?n:x;while(r.parentNode){r=r.parentNode;var i=vt.fromDom(r);if(t(i))return E.some(i);if(o(i))break}return E.none()},Vn=function(e,t,n){var r=function(e,t){return t(e)};return Fn(r,jn,e,t,n)},Un=function(e,t){var n=function(e){return t(vt.fromDom(e))},r=W(e.dom.childNodes,n);return r.map(vt.fromDom)},qn=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var o=vt.fromDom(e.childNodes[r]);if(t(o))return E.some(o);var i=n(e.childNodes[r]);if(i.isSome())return i}return E.none()};return n(e.dom)},Wn=function(e,t,n){return jn(e,(function(e){return yt(e,t)}),n)},$n=function(e,t){return Un(e,(function(e){return yt(e,t)}))},Gn=function(e,t){return kt(t,e)},Kn=function(e,t,n){var r=function(e,t){return yt(e,t)};return Fn(r,Wn,e,t,n)},Xn=function(e,t,n){if(!(o(n)||u(n)||m(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Yn=function(e,t,n){Xn(e.dom,t,n)},Jn=function(e,t){var n=e.dom;Et(t,(function(e,t){Xn(n,t,e)}))},Zn=function(e,t){Et(t,(function(t,n){t.fold((function(){tr(e,n)}),(function(t){Xn(e.dom,n,t)}))}))},Qn=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},er=function(e,t){return E.from(Qn(e,t))},tr=function(e,t){e.dom.removeAttribute(t)},nr=function(e){return U(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},rr=function(e,t,n){return void 0===n&&(n=b),e.exists((function(e){return n(e,t)}))},or=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},ir=function(e,t,n){return e.isSome()&&t.isSome()?E.some(n(e.getOrDie(),t.getOrDie())):E.none()},ar=function(e,t){return void 0!==e&&null!==e?t(e):E.none()},cr=function(e){return e.bind(y)},ur=function(e,t){return e?E.some(t):E.none()},sr=function(e){return void 0!==e.style&&d(e.style.getPropertyValue)},lr=function(e,t,n){if(!o(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);sr(e)&&e.style.setProperty(t,n)},fr=function(e,t){sr(e)&&e.style.removeProperty(t)},dr=function(e,t,n){var r=e.dom;lr(r,t,n)},mr=function(e,t){var n=e.dom;Et(t,(function(e,t){lr(n,t,e)}))},gr=function(e,t){var n=e.dom,r=window.getComputedStyle(n),o=r.getPropertyValue(t);return""!==o||Dn(e)?o:pr(n,t)},pr=function(e,t){return sr(e)?e.style.getPropertyValue(t):""},hr=function(e,t){var n=e.dom,r=pr(n,t);return E.from(r).filter((function(e){return e.length>0}))},vr=function(e,t){var n=e.dom;fr(n,t),rr(er(e,"style").map(Ce),"")&&tr(e,"style")},yr=function(e,t){var n=e.dom,r=t.dom;sr(n)&&sr(r)&&(r.style.cssText=n.style.cssText)},br=function(e,t,n){return void 0===n&&(n=0),er(e,t).map((function(e){return parseInt(e,10)})).getOr(n)},wr=function(e,t){return br(e,t,1)},kr=function(e){return fn("col")(e)?br(e,"span",1)>1:wr(e,"colspan")>1},_r=function(e){return wr(e,"rowspan")>1},xr=function(e,t){return parseInt(gr(e,t),10)},zr=v(10),Cr=v(10),Sr=function(e,t){return Tr(e,t,z)},Tr=function(e,t,n){return K(wn(e),(function(e){return yt(e,t)?n(e)?[e]:[]:Tr(e,t,n)}))},Or=function(e,t,n){if(void 0===n&&(n=x),n(t))return E.none();if(N(e,nn(t)))return E.some(t);var r=function(e){return yt(e,"table")||n(e)};return Wn(t,e.join(","),r)},Er=function(e,t){return Or(["td","th"],e,t)},Ar=function(e){return Sr(e,"th,td")},Dr=function(e){return yt(e,"colgroup")?In(e,"col"):K(Nr(e),(function(e){return In(e,"col")}))},Mr=function(e,t){return Kn(e,"table",t)},Rr=function(e){return Sr(e,"tr")},Nr=function(e){return Mr(e).fold(v([]),(function(e){return In(e,"colgroup")}))},Br=function(e,t){return L(e,(function(e){if("colgroup"===nn(e)){var n=L(Dr(e),(function(e){var t=br(e,"span",1);return $t(e,1,t)}));return Xt(e,n,"colgroup")}n=L(Ar(e),(function(e){var t=br(e,"rowspan",1),n=br(e,"colspan",1);return $t(e,t,n)}));return Xt(e,n,t(e))}))},Pr=function(e){return pn(e).map((function(e){var t=nn(e);return Ut(t)?t:"tbody"})).getOr("tbody")},Lr=function(e){var t=Rr(e),n=Nr(e),r=ie(ie([],n,!0),t,!0);return Br(r,Pr)},Ir=function(e,t){return Br(e,(function(){return t}))},Hr=function(e,t,n){var r=e.cells,o=r.slice(0,t),i=r.slice(t),a=o.concat(n).concat(i);return Vr(e,a)},Fr=function(e,t,n){return Hr(e,t,[n])},jr=function(e,t,n){var r=e.cells;r[t]=n},Vr=function(e,t){return Zt(e.element,t,e.section,e.isNew)},Ur=function(e,t){var n=e.cells,r=L(n,t);return Zt(e.element,r,e.section,e.isNew)},qr=function(e,t){return e.cells[t]},Wr=function(e,t){return qr(e,t).element},$r=function(e){return e.cells.length},Gr=function(e){var t=F(e,(function(e){return"colgroup"===e.section}));return{rows:t.fail,cols:t.pass}},Kr=function(e,t,n){var r=L(e.cells,n);return Zt(t(e.element),r,e.section,!0)},Xr="data-snooker-locked-cols",Yr=function(e){return er(e,Xr).bind((function(e){return E.from(e.match(/\d+/g))})).map((function(e){return J(e,z)}))},Jr=function(e){var t=U(Gr(e).rows,(function(e,t){return I(t.cells,(function(t,n){t.isLocked&&(e[n]=!0)})),e}),{}),n=Bt(t,(function(e,t){return parseInt(t,10)}));return Q(n)},Zr=function(e,t){return e+","+t},Qr=function(e,t,n){return E.from(e.access[Zr(t,n)])},eo=function(e,t,n){var r=to(e,(function(e){return n(t,e.element)}));return r.length>0?E.some(r[0]):E.none()},to=function(e,t){var n=K(e.all,(function(e){return e.cells}));return j(n,t)},no=function(e){var t={},n=0;return I(e.cells,(function(e){var r=e.colspan;P(r,(function(o){var i=n+o;t[i]=en(e.element,r,i)})),n+=r})),t},ro=function(e){var t={},n=[],r=te(e).map((function(e){return e.element})).bind(Mr),o=r.bind(Yr).getOr({}),i=0,a=0,c=0,u=F(e,(function(e){return"colgroup"===e.section})),s=u.pass,l=u.fail;I(l,(function(e){var r=[];I(e.cells,(function(e){var n=0;while(void 0!==t[Zr(c,n)])n++;for(var i=Ft(o,n.toString()),u=Kt(e.element,e.rowspan,e.colspan,c,n,i),s=0;s<e.colspan;s++)for(var l=0;l<e.rowspan;l++){var f=c+l,d=n+s,m=Zr(f,d);t[m]=u,a=Math.max(a,d+1)}r.push(u)})),i++,n.push(Xt(e.element,r,e.section)),c++}));var f=ne(s).map((function(e){var t=no(e),n=tn(e.element,Pt(t));return{colgroups:[n],columns:t}})).getOrThunk((function(){return{colgroups:[],columns:{}}})),d=f.columns,m=f.colgroups,g=qt(i,a);return{grid:g,access:t,all:n,columns:d,colgroups:m}},oo=function(e){var t=Lr(e);return ro(t)},io=function(e){return K(e.all,(function(e){return e.cells}))},ao=function(e){return Pt(e.columns)},co=function(e){return Tt(e.columns).length>0},uo=function(e,t){return E.from(e.columns[t])},so={fromTable:oo,generate:ro,getAt:Qr,findItem:eo,filterItems:to,justCells:io,justColumns:ao,hasColumns:co,getColumnAt:uo},lo=function(e,t){var n=t.column,r=t.column+t.colspan-1,o=t.row,i=t.row+t.rowspan-1;return n<=e.finishCol&&r>=e.startCol&&o<=e.finishRow&&i>=e.startRow},fo=function(e,t){return t.column>=e.startCol&&t.column+t.colspan-1<=e.finishCol&&t.row>=e.startRow&&t.row+t.rowspan-1<=e.finishRow},mo=function(e,t){for(var n=!0,r=w(fo,t),o=t.startRow;o<=t.finishRow;o++)for(var i=t.startCol;i<=t.finishCol;i++)n=n&&so.getAt(e,o,i).exists(r);return n?E.some(t):E.none()},go=function(e,t){return Qt(Math.min(e.row,t.row),Math.min(e.column,t.column),Math.max(e.row+e.rowspan-1,t.row+t.rowspan-1),Math.max(e.column+e.colspan-1,t.column+t.colspan-1))},po=function(e,t,n){var r=so.findItem(e,t,_t),o=so.findItem(e,n,_t);return r.bind((function(e){return o.map((function(t){return go(e,t)}))}))},ho=function(e,t,n){return po(e,t,n).bind((function(t){return mo(e,t)}))},vo=function(e,t,n,r){return so.findItem(e,t,_t).bind((function(t){var o=n>0?t.row+t.rowspan-1:t.row,i=r>0?t.column+t.colspan-1:t.column,a=so.getAt(e,o+n,i+r);return a.map((function(e){return e.element}))}))},yo=function(e,t,n){return po(e,t,n).map((function(t){var n=so.filterItems(e,w(lo,t));return L(n,(function(e){return e.element}))}))},bo=function(e,t){var n=function(e,t){return Ct(t,e)};return so.findItem(e,t,n).map((function(e){return e.element}))},wo=function(e,t,n){return Mr(e).bind((function(r){var o=zo(r);return vo(o,e,t,n)}))},ko=function(e,t,n){var r=zo(e);return yo(r,t,n)},_o=function(e,t,n,r,o){var i=zo(e),a=_t(e,n)?E.some(t):bo(i,t),c=_t(e,o)?E.some(r):bo(i,r);return a.bind((function(e){return c.bind((function(t){return yo(i,e,t)}))}))},xo=function(e,t,n){var r=zo(e);return ho(r,t,n)},zo=so.fromTable,Co=function(e,t){var n=pn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},So=function(e,t){var n=bn(e);n.fold((function(){var n=pn(e);n.each((function(e){Oo(e,t)}))}),(function(e){Co(e,t)}))},To=function(e,t){var n=_n(e);n.fold((function(){Oo(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},Oo=function(e,t){e.dom.appendChild(t.dom)},Eo=function(e,t,n){kn(e,n).fold((function(){Oo(e,t)}),(function(e){Co(e,t)}))},Ao=function(e,t){Co(e,t),Oo(t,e)},Do=function(e,t){I(t,(function(t){Co(e,t)}))},Mo=function(e,t){I(t,(function(n,r){var o=0===r?e:t[r-1];So(o,n)}))},Ro=function(e,t){I(t,(function(t){Oo(e,t)}))},No=function(e){e.dom.textContent="",I(wn(e),(function(e){Bo(e)}))},Bo=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Po=function(e){var t=wn(e);t.length>0&&Do(e,t),Bo(e)},Lo=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?E.from(t.dom.nodeValue):E.none()},o=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:o}},Io=Lo(un,"text"),Ho=function(e){return Io.get(e)},Fo=function(e){return Io.getOption(e)},jo=function(e,t){return Io.set(e,t)},Vo=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function Uo(){var e=function(e){return vt.fromDom(e.dom.cloneNode(!1))},t=function(e){return mn(e).dom},n=function(e){return!!cn(e)&&("body"===nn(e)||N(Vo,nn(e)))},r=function(e){return!!cn(e)&&N(["br","img","hr","input"],nn(e))},o=function(e){return cn(e)&&"false"===Qn(e,"contenteditable")},i=function(e,t){return e.dom.compareDocumentPosition(t.dom)},a=function(e,t){var n=nr(e);Jn(t,n)},c=function(e){var t=nn(e);return N(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},u=function(e){return cn(e)?er(e,"lang"):E.none()};return{up:v({selector:Wn,closest:Kn,predicate:jn,all:vn}),down:v({selector:Hn,predicate:Pn}),styles:v({get:gr,getRaw:hr,set:dr,remove:vr}),attrs:v({get:Qn,set:Yn,remove:tr,copyTo:a}),insert:v({before:Co,after:So,afterAll:Mo,append:Oo,appendAll:Ro,prepend:To,wrap:Ao}),remove:v({unwrap:Po,remove:Bo}),create:v({nu:vt.fromTag,clone:e,text:vt.fromText}),query:v({comparePosition:i,prevSibling:yn,nextSibling:bn}),property:v({children:wn,name:nn,parent:pn,document:t,isText:un,isComment:an,isElement:cn,isSpecial:c,getLanguage:u,getText:Ho,setText:jo,isBoundary:n,isEmptyTag:r,isNonEditable:o}),eq:_t,is:St}}var qo=function(e,t,n,r){var o=n[0],i=n.slice(1);return r(e,t,o,i)},Wo=function(e,t,n){return n.length>0?qo(e,t,n,$o):E.none()},$o=function(e,t,n,r){var o=t(e,n);return V(r,(function(n,r){var o=t(e,r);return Go(e,n,o)}),o)},Go=function(e,t,n){return t.bind((function(t){return n.filter(w(e.eq,t))}))},Ko=function(e,t){return w(e.eq,t)},Xo=function(e,t,n,r){void 0===r&&(r=x);var o=[t].concat(e.up().all(t)),i=[n].concat(e.up().all(n)),a=function(e){var t=$(e,r);return t.fold((function(){return e}),(function(t){return e.slice(0,t+1)}))},c=a(o),u=a(i),s=W(c,(function(t){return B(u,Ko(e,t))}));return{firstpath:c,secondpath:u,shared:s}},Yo=Wo,Jo=Xo,Zo=Uo(),Qo=function(e,t){return Yo(Zo,(function(t,n){return e(n)}),t)},ei=function(e,t,n){return Jo(Zo,e,t,n)},ti=function(e){return Wn(e,"table")},ni=function(e,t,n){var r=function(e){return function(t){return void 0!==n&&n(t)||_t(t,e)}};return _t(e,t)?E.some({boxes:E.some([e]),start:e,finish:t}):ti(e).bind((function(o){return ti(t).bind((function(i){if(_t(o,i))return E.some({boxes:ko(o,e,t),start:e,finish:t});if(Ct(o,i)){var a=Ln(t,"td,th",r(o)),c=a.length>0?a[a.length-1]:t;return E.some({boxes:_o(o,e,o,t,i),start:e,finish:c})}if(Ct(i,o)){a=Ln(e,"td,th",r(i));var u=a.length>0?a[a.length-1]:e;return E.some({boxes:_o(i,e,o,t,i),start:e,finish:u})}return ei(e,t).shared.bind((function(a){return Kn(a,"table",n).bind((function(n){var a=Ln(t,"td,th",r(n)),c=a.length>0?a[a.length-1]:t,u=Ln(e,"td,th",r(n)),s=u.length>0?u[u.length-1]:e;return E.some({boxes:_o(n,e,o,t,i),start:s,finish:c})}))}))}))}))},ri=function(e,t){var n=Hn(e,t);return n.length>0?E.some(n):E.none()},oi=function(e,t){return W(e,(function(e){return yt(e,t)}))},ii=function(e,t,n){return Gn(e,t).bind((function(t){return Gn(e,n).bind((function(e){return Qo(ti,[t,e]).map((function(n){return{first:t,last:e,table:n}}))}))}))},ai=function(e,t){return Wn(e,"table").bind((function(n){return Gn(n,t).bind((function(t){return ni(t,e).bind((function(e){return e.boxes.map((function(t){return{boxes:t,start:e.start,finish:e.finish}}))}))}))}))},ci=function(e,t,n,r,o){return oi(e,o).bind((function(e){return wo(e,t,n).bind((function(e){return ai(e,r)}))}))},ui=function(e,t){return ri(e,t)},si=function(e,t,n){return ii(e,t,n).bind((function(t){var n=function(t){return _t(e,t)},r="thead,tfoot,tbody,table",o=Wn(t.first,r,n),i=Wn(t.last,r,n);return o.bind((function(e){return i.bind((function(n){return _t(e,n)?xo(t.table,t.first,t.last):E.none()}))}))}))},li=function(e){if(!a(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return I(e,(function(r,o){var i=Tt(r);if(1!==i.length)throw new Error("one and only one name per case");var c=i[0],u=r[c];if(void 0!==n[c])throw new Error("duplicate key detected:"+c);if("cata"===c)throw new Error("cannot have a case named cata (sorry)");if(!a(u))throw new Error("case arguments must be an array");t.push(c),n[c]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==u.length)throw new Error("Wrong number of arguments to case "+c+". Expected "+u.length+" ("+u+"), got "+i);var a=function(e){var r=Tt(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var o=X(t,(function(e){return N(r,e)}));if(!o)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[c].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var i=t[o];return i.apply(null,n)},match:a,log:function(e){console.log(e,{constructors:t,constructor:c,params:n})}}}})),n},fi={generate:li},di=fi.generate([{none:[]},{multiple:["elements"]},{single:["element"]}]),mi=function(e,t,n,r){return e.fold(t,n,r)},gi=di.none,pi=di.multiple,hi=di.single,vi=function(e,t,n){var r=function(){return ui(e(),n).fold((function(){return t().fold(gi,hi)}),(function(e){return pi(e)}))};return{get:r}},yi=tinymce.util.Tools.resolve("tinymce.PluginManager"),bi=function(e,t){return vt.fromDom(e.dom.cloneNode(t))},wi=function(e){return bi(e,!1)},ki=function(e){return bi(e,!0)},_i=function(e,t){var n=vt.fromTag(t),r=nr(e);return Jn(n,r),n},xi=function(e,t){var n=_i(e,t),r=wn(ki(e));return Ro(n,r),n},zi=function(e,t){var n=_i(e,t);Co(e,n);var r=wn(e);return Ro(n,r),Bo(e),n},Ci=function(e,t){var n=function(t,n){if(!m(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;sr(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var o=gr(n,e);return parseFloat(o)||0}return r},o=r,i=function(e,t){return U(t,(function(t,n){var r=gr(e,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o}),0)},a=function(e,t,n){var r=i(e,n),o=t>r?t-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:a}},Si=function(){var e=ot().browser;return e.isIE()||e.isEdge()},Ti=function(e,t){return Oe(e).getOr(t)},Oi=function(e,t,n){return Ti(gr(e,t),n)},Ei=function(e){return gr(e,"box-sizing")},Ai=function(e,t,n,r){var o=Oi(e,"padding-"+n,0),i=Oi(e,"padding-"+r,0),a=Oi(e,"border-"+n+"-width",0),c=Oi(e,"border-"+r+"-width",0);return t-o-i-a-c},Di=function(e,t){var n=e.dom,r=n.getBoundingClientRect().height||n.offsetHeight;return"border-box"===t?r:Ai(e,r,"top","bottom")},Mi=function(e,t){var n=e.dom,r=n.getBoundingClientRect().width||n.offsetWidth;return"border-box"===t?r:Ai(e,r,"left","right")},Ri=function(e){return Si()?Di(e,Ei(e)):Oi(e,"height",e.dom.offsetHeight)},Ni=function(e){return Si()?Mi(e,Ei(e)):Oi(e,"width",e.dom.offsetWidth)},Bi=function(e){return Mi(e,"content-box")},Pi=Ci("width",(function(e){return e.dom.offsetWidth})),Li=function(e){return Pi.get(e)},Ii=function(e){return Pi.getOuter(e)},Hi=Bi,Fi=Ni,ji=function(e,t){void 0===t&&(t=z);var n=e.grid,r=P(n.columns,y),o=P(n.rows,y);return L(r,(function(n){var r=function(){return K(o,(function(t){return so.getAt(e,t,n).filter((function(e){return e.column===n})).toArray()}))},i=function(e){return 1===e.colspan&&t(e.element)},a=function(){return so.getAt(e,0,n)};return Vi(r,i,a)}))},Vi=function(e,t,n){var r=e(),o=W(r,t),i=o.orThunk((function(){return E.from(r[0]).orThunk(n)}));return i.map((function(e){return e.element}))},Ui=function(e){var t=e.grid,n=P(t.rows,y),r=P(t.columns,y);return L(n,(function(t){var n=function(){return K(r,(function(n){return so.getAt(e,t,n).filter((function(e){return e.row===t})).fold(v([]),(function(e){return[e]}))}))},o=function(e){return 1===e.rowspan},i=function(){return so.getAt(e,t,0)};return Vi(n,o,i)}))},qi=function(e,t){if(t<0||t>=e.length-1)return E.none();var n=e[t].fold((function(){var n=Y(e.slice(0,t));return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return E.some({value:e,delta:0})})),r=e[t+1].fold((function(){var n=e.slice(t+1);return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return E.some({value:e,delta:1})}));return n.bind((function(e){return r.map((function(t){var n=t.delta+e.delta;return Math.abs(t.value-e.value)/n}))}))},Wi=function(e,t){return function(n){return"rtl"===$i(n)?t:e}},$i=function(e){return"rtl"===gr(e,"direction")?"rtl":"ltr"},Gi=Ci("height",(function(e){var t=e.dom;return Dn(e)?t.getBoundingClientRect().height:t.offsetHeight})),Ki=function(e){return Gi.get(e)},Xi=function(e){return Gi.getOuter(e)},Yi=Ri,Ji=function(e,t){var n=function(n,r){return Ji(e+n,t+r)};return{left:e,top:t,translate:n}},Zi=Ji,Qi=function(e){var t=e.getBoundingClientRect();return Zi(t.left,t.top)},ea=function(e,t){return void 0!==e?e:void 0!==t?t:0},ta=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom)return Zi(n.offsetLeft,n.offsetTop);var i=ea(null===r||void 0===r?void 0:r.pageYOffset,o.scrollTop),a=ea(null===r||void 0===r?void 0:r.pageXOffset,o.scrollLeft),c=ea(o.clientTop,n.clientTop),u=ea(o.clientLeft,n.clientLeft);return na(e).translate(a-u,i-c)},na=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Zi(r.offsetLeft,r.offsetTop):Dn(e)?Qi(t):Zi(0,0)},ra=function(e,t){return{row:e,y:t}},oa=function(e,t){return{col:e,x:t}},ia=function(e){var t=ta(e);return t.left+Ii(e)},aa=function(e){return ta(e).left},ca=function(e,t){return oa(e,aa(t))},ua=function(e,t){return oa(e,ia(t))},sa=function(e){return ta(e).top},la=function(e,t){return ra(e,sa(t))},fa=function(e,t){return ra(e,sa(t)+Xi(t))},da=function(e,t,n){if(0===n.length)return[];var r=L(n.slice(1),(function(t,n){return t.map((function(t){return e(n,t)}))})),o=n[n.length-1].map((function(e){return t(n.length-1,e)}));return r.concat([o])},ma=function(e){return-e},ga={delta:y,positions:function(e){return da(la,fa,e)},edge:sa},pa={delta:y,edge:aa,positions:function(e){return da(ca,ua,e)}},ha={delta:ma,edge:ia,positions:function(e){return da(ua,ca,e)}},va=Wi(pa,ha),ya={delta:function(e,t){return va(t).delta(e,t)},positions:function(e,t){return va(t).positions(e,t)},edge:function(e){return va(e).edge(e)}},ba={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},wa=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",o=function(e){return"(?:"+e+")?"},i=["Infinity",e+r+o(e)+o(n),r+e+o(n),e+o(n)].join("|"),a="[+-]?(?:"+i+")";return new RegExp("^("+a+")(.*)$")}(),ka=function(e,t){return B(t,(function(t){return B(ba[t],(function(t){return e===t}))}))},_a=function(e,t){var n=E.from(wa.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return ka(r,t)?E.some({value:n,unit:r}):E.none()}))},xa=/(\d+(\.\d+)?)%/,za=/(\d+(\.\d+)?)px|em/,Ca=fn("col"),Sa=function(e,t,n){var r=hn(e).getOrThunk((function(){return Rn(dn(e))}));return t(e)/n(r)*100},Ta=function(e,t){dr(e,"width",t+"px")},Oa=function(e,t){dr(e,"width",t+"%")},Ea=function(e,t){dr(e,"height",t+"px")},Aa=function(e){return Yi(e)+"px"},Da=function(e,t,n,r){var o=Mr(e).map((function(e){var r=n(e);return Math.floor(t/100*r)})).getOr(t);return r(e,o),o},Ma=function(e,t,n,r){var o=parseFloat(e);return xe(e,"%")&&"table"!==nn(t)?Da(t,o,n,r):o},Ra=function(e){var t=Aa(e);return t?Ma(t,e,Ki,Ea):Ki(e)},Na=function(e,t,n){var r=n(e),o=wr(e,t);return r/o},Ba=function(e,t){return hr(e,t).orThunk((function(){return er(e,t).map((function(e){return e+"px"}))}))},Pa=function(e){return Ba(e,"width")},La=function(e){return Ba(e,"height")},Ia=function(e){return Sa(e,Li,Hi)},Ha=function(e){return Ca(e)?Li(e):Fi(e)},Fa=function(e){return Na(e,"rowspan",Ra)},ja=function(e){var t=Pa(e);return t.bind((function(e){return _a(e,["fixed","relative","empty"])}))},Va=function(e,t,n){dr(e,"width",t+n)},Ua=function(e){return Li(e)+"px"},qa=function(e){return Sa(e,Li,Hi)+"%"},Wa=function(e){return Pa(e).exists((function(e){return xa.test(e)}))},$a=function(e){return Pa(e).exists((function(e){return za.test(e)}))},Ga=function(e){return Pa(e).isNone()},Ka=v(xa),Xa=fn("col"),Ya=function(e){return Pa(e).getOrThunk((function(){return Ha(e)+"px"}))},Ja=function(e){return La(e).getOrThunk((function(){return Fa(e)+"px"}))},Za=function(e){return L(so.justColumns(e),(function(e){return E.from(e.element)}))},Qa=function(e){var t=ot().browser,n=t.isChrome()||t.isFirefox();return!Xa(e)||n},ec=function(e,t,n,r,o,i){return e.filter(r).fold((function(){return i(qi(n,t))}),(function(e){return o(e)}))},tc=function(e,t,n,r){var o=ji(e),i=so.hasColumns(e)?Za(e):o,a=[E.some(ya.edge(t))].concat(L(ya.positions(o,t),(function(e){return e.map((function(e){return e.x}))}))),c=k(kr);return L(i,(function(e,t){return ec(e,t,a,c,(function(e){if(Qa(e))return n(e);var i=ar(o[t],y);return ec(i,t,a,c,(function(e){return r(E.some(Li(e)))}),r)}),r)}))},nc=function(e){return e.map((function(e){return e+"px"})).getOr("")},rc=function(e,t){return tc(e,t,Ya,nc)},oc=function(e,t,n){return tc(e,t,Ia,(function(e){return e.fold((function(){return n.minCellWidth()}),(function(e){return e/n.pixelWidth()*100}))}))},ic=function(e,t,n){return tc(e,t,Ha,(function(e){return e.getOrThunk(n.minCellWidth)}))},ac=function(e,t,n,r,o){var i=Ui(e),a=[E.some(n.edge(t))].concat(L(n.positions(i,t),(function(e){return e.map((function(e){return e.y}))})));return L(i,(function(e,t){return ec(e,t,a,k(_r),r,o)}))},cc=function(e,t,n){return ac(e,t,n,Fa,(function(e){return e.getOrThunk(Cr)}))},uc=function(e,t,n){return ac(e,t,n,Ja,nc)},sc=function(e,t){return function(){return Dn(e)?t(e):parseFloat(hr(e,"width").getOr("0"))}},lc=function(e){var t=sc(e,Li),n=v(0),r=function(t,n){return ic(t,e,n)};return{width:t,pixelWidth:t,getWidths:r,getCellDelta:n,singleColumnWidth:v([0]),minCellWidth:n,setElementWidth:g,adjustTableWidth:g,isRelative:!0,label:"none"}},fc=function(e){var t=sc(e,(function(e){return parseFloat(qa(e))})),n=sc(e,Li),r=function(e){return e/n()*100},o=function(e,t){return[100-e]},i=function(){return zr()/n()*100},a=function(n){var r=t(),o=n/100*r,i=r+o;Oa(e,i)},c=function(t,n){return oc(t,e,n)};return{width:t,pixelWidth:n,getWidths:c,getCellDelta:r,singleColumnWidth:o,minCellWidth:i,setElementWidth:Oa,adjustTableWidth:a,isRelative:!0,label:"percent"}},dc=function(e){var t=sc(e,Li),n=y,r=function(e,t){var n=Math.max(zr(),e+t);return[n-e]},o=function(n){var r=t()+n;Ta(e,r)},i=function(t,n){return ic(t,e,n)};return{width:t,pixelWidth:t,getWidths:i,getCellDelta:n,singleColumnWidth:r,minCellWidth:zr,setElementWidth:Ta,adjustTableWidth:o,isRelative:!1,label:"pixel"}},mc=function(e,t){var n=Ka().exec(t);return null!==n?fc(e):dc(e)},gc=function(e){var t=Pa(e);return t.fold((function(){return lc(e)}),(function(t){return mc(e,t)}))},pc={getTableSize:gc,pixelSize:dc,percentageSize:fc,noneSize:lc},hc=function(e,t,n,r,o,i){return{minRow:e,minCol:t,maxRow:n,maxCol:r,allCells:o,selectedCells:i}},vc=function(e,t){var n=e.grid.columns,r=e.grid.rows,o=r,i=n,a=0,c=0,u=[],s=[];return Et(e.access,(function(e){if(u.push(e),t(e)){s.push(e);var n=e.row,r=n+e.rowspan-1,l=e.column,f=l+e.colspan-1;n<o?o=n:r>a&&(a=r),l<i?i=l:f>c&&(c=f)}})),hc(o,i,a,c,u,s)},yc=function(e,t,n){var r=e[n].element,o=vt.fromTag("td");Oo(o,vt.fromTag("br"));var i=t?Oo:To;i(r,o)},bc=function(e,t,n,r){for(var o=t.grid.columns,i=t.grid.rows,a=0;a<i;a++)for(var c=!1,u=0;u<o;u++)if(!(a<n.minRow||a>n.maxRow||u<n.minCol||u>n.maxCol)){var s=so.getAt(t,a,u).filter(r).isNone();s?yc(e,c,a):c=!0}},wc=function(e,t,n,r){Et(n.columns,(function(e){(e.column<t.minCol||e.column>t.maxCol)&&Bo(e.element)}));var o=j(Sr(e,"tr"),(function(e){return 0===e.dom.childElementCount}));I(o,Bo),t.minCol!==t.maxCol&&t.minRow!==t.maxRow||I(Sr(e,"th,td"),(function(e){tr(e,"rowspan"),tr(e,"colspan")})),tr(e,Xr),tr(e,"data-snooker-col-series");var i=pc.getTableSize(e);i.adjustTableWidth(r)},kc=function(e,t,n,r){if(0===r.minCol&&t.grid.columns===r.maxCol+1)return 0;var o=ic(t,e,n),i=U(o,(function(e,t){return e+t}),0),a=U(o.slice(r.minCol,r.maxCol+1),(function(e,t){return e+t}),0),c=a/i*n.pixelWidth(),u=c-n.pixelWidth();return n.getCellDelta(u)},_c=function(e,t){var n=function(e){return yt(e.element,t)},r=ki(e),o=Lr(r),i=pc.getTableSize(e),a=so.generate(o),c=vc(a,n),u="th:not("+t+"),td:not("+t+")",s=Tr(r,"th,td",(function(e){return yt(e,u)}));I(s,Bo),bc(o,a,c,n);var l=so.fromTable(e),f=kc(e,l,i,c);return wc(r,c,a,f),r},xc=" ",zc=function(e){return"img"===nn(e)?1:Fo(e).fold((function(){return wn(e).length}),(function(e){return e.length}))},Cc=function(e){return Fo(e).filter((function(e){return 0!==e.trim().length||e.indexOf(xc)>-1})).isSome()},Sc=["img","br"],Tc=function(e){var t=Cc(e);return t||N(Sc,nn(e))},Oc=function(e){return qn(e,Tc)},Ec=function(e){return Ac(e,Tc)},Ac=function(e,t){var n=function(e){for(var r=wn(e),o=r.length-1;o>=0;o--){var i=r[o];if(t(i))return E.some(i);var a=n(i);if(a.isSome())return a}return E.none()};return n(e)},Dc={scope:["row","col"]},Mc=function(e){return function(){var t=vt.fromTag("td",e.dom);return Oo(t,vt.fromTag("br",e.dom)),t}},Rc=function(e){return function(){return vt.fromTag("col",e.dom)}},Nc=function(e){return function(){return vt.fromTag("colgroup",e.dom)}},Bc=function(e){return function(){return vt.fromTag("tr",e.dom)}},Pc=function(e,t,n){var r=xi(e,t);return Et(n,(function(e,t){null===e?tr(r,t):Yn(r,t,e)})),r},Lc=function(e){return e},Ic=function(e,t,n){var r=Oc(e);return r.map((function(r){var o=n.join(","),i=Ln(r,o,(function(t){return _t(t,e)}));return V(i,(function(e,t){var n=wi(t);return tr(n,"contenteditable"),Oo(e,n),n}),t)})).getOr(t)},Hc=function(e,t){Et(Dc,(function(n,r){return er(e,r).filter((function(e){return N(n,e)})).each((function(e){return Yn(t,r,e)}))}))},Fc=function(e,t,n){var r=function(e,t){yr(e.element,t),vr(t,"height"),1!==e.colspan&&vr(t,"width")},o=function(o){var i=vt.fromTag(nn(o.element),t.dom),a=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),c=a.length>0?Ic(o.element,i,a):i;return Oo(c,vt.fromTag("br")),r(o,i),Hc(o.element,i),e(o.element,i),i},i=function(n){var o=vt.fromTag(nn(n.element),t.dom);return r(n,o),e(n.element,o),o};return{col:i,colgroup:Nc(t),row:Bc(t),cell:o,replace:Pc,colGap:Rc(t),gap:Mc(t)}},jc=function(e){return{col:Rc(e),colgroup:Nc(e),row:Bc(e),cell:Mc(e),replace:Lc,colGap:Rc(e),gap:Mc(e)}},Vc=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,wn(vt.fromDom(r))},Uc=function(e){return L(e,vt.fromDom)},qc=function(e){return e.nodeName.toLowerCase()},Wc=function(e){return vt.fromDom(e.getBody())},$c=function(e){return e.getBoundingClientRect().width},Gc=function(e){return e.getBoundingClientRect().height},Kc=function(e){return function(t){return _t(t,Wc(e))}},Xc=function(e){return e?e.replace(/px$/,""):""},Yc=function(e){return/^\d+(\.\d+)?$/.test(e)?e+"px":e},Jc=function(e){tr(e,"data-mce-style");var t=function(e){return tr(e,"data-mce-style")};I(Ar(e),t),I(Dr(e),t),I(Rr(e),t)},Zc=function(e,t){var n=e.dom.getStyle(t,"width")||e.dom.getAttrib(t,"width");return E.from(n).filter(Se)},Qc=function(e){return/^(\d+(\.\d+)?)%$/.test(e)},eu=function(e){return/^(\d+(\.\d+)?)px$/.test(e)},tu=function(e){return vt.fromDom(e.selection.getStart())},nu=function(e){return vt.fromDom(e.selection.getEnd())},ru=function(e){return mi(e.get(),v([]),y,Z)},ou=function(e){var t=function(e,t){return er(e,t).exists((function(e){return parseInt(e,10)>1}))},n=function(e){return t(e,"rowspan")||t(e,"colspan")},r=ru(e);return r.length>0&&X(r,n)?E.some(r):E.none()},iu=function(e,t,n){return mi(t.get(),E.none,(function(t){return t.length<=1?E.none():si(e,n.firstSelectedSelector,n.lastSelectedSelector).map((function(e){return{bounds:e,cells:t}}))}),E.none)},au="data-mce-selected",cu="td["+au+"],th["+au+"]",uu="["+au+"]",su="data-mce-first-selected",lu="td["+su+"],th["+su+"]",fu="data-mce-last-selected",du="td["+fu+"],th["+fu+"]",mu=uu,gu={selected:au,selectedSelector:cu,firstSelected:su,firstSelectedSelector:lu,lastSelected:fu,lastSelectedSelector:du},pu=function(e){return{element:e,mergable:E.none(),unmergable:E.none(),selection:[e]}},hu=function(e,t,n){return{element:n,mergable:iu(t,e,gu),unmergable:ou(e),selection:ru(e)}},vu=function(e,t,n){return{element:e,clipboard:t,generators:n}},yu=function(e,t,n,r){return{selection:ru(e),clipboard:n,generators:r}},bu=function(e){return Mr(e).bind((function(e){return ui(e,gu.firstSelectedSelector)})).fold(v(e),(function(e){return e[0]}))},wu=function(e){return function(t,n){var r=nn(t),o="col"===r||"colgroup"===r?bu(t):t;return Kn(o,e,n)}},ku=wu("th,td,caption"),_u=wu("th,td"),xu=function(e){return ru(e)},zu=function(e,t){var n=_u(e),r=n.bind((function(e){return Mr(e)})).map((function(e){return Rr(e)}));return ir(n,r,(function(e,n){return j(n,(function(n){return B(Uc(n.dom.cells),(function(n){return"1"===Qn(n,t)||_t(n,e)}))}))})).getOr([])},Cu=function(e){return Mr(e[0]).map((function(e){var t=_c(e,mu);return Jc(t),[t]}))},Su=function(e,t){return L(t,(function(t){return e.selection.serializer.serialize(t.dom,{})})).join("")},Tu=function(e){return L(e,(function(e){return e.dom.innerText})).join("")},Ou=function(e,t,n){e.on("BeforeGetContent",(function(n){var r=function(t){n.preventDefault(),Cu(t).each((function(t){n.content="text"===n.format?Tu(t):Su(e,t)}))};!0===n.selection&&mi(t.get(),g,r,g)})),e.on("BeforeSetContent",(function(r){if(!0===r.selection&&!0===r.paste){var o=xu(t);te(o).each((function(t){Mr(t).each((function(o){var i=j(Vc(r.content),(function(e){return"meta"!==nn(e)})),a=fn("table");if(1===i.length&&a(i[0])){r.preventDefault();var c=vt.fromDom(e.getDoc()),u=jc(c),s=vu(t,i[0],u);n.pasteCells(o,s).each((function(){e.focus()}))}}))}))}}))},Eu=fi.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Au=oe({},Eu),Du=function(e,t){return 0===e.length?Au.none():1===e.length?Au.only(0):0===t?Au.left(0,1):t===e.length-1?Au.right(t-1,t):t>0&&t<e.length-1?Au.middle(t-1,t,t+1):Au.none()},Mu=function(e,t,n,r,o){var i=e.slice(0),a=Du(e,t),c=v(L(i,v(0))),u=function(e){return r.singleColumnWidth(i[e],n)},s=function(e,t){return o.calcLeftEdgeDeltas(i,e,t,n,r.minCellWidth(),r.isRelative)},l=function(e,t,a){return o.calcMiddleDeltas(i,e,t,a,n,r.minCellWidth(),r.isRelative)},f=function(e,t){return o.calcRightEdgeDeltas(i,e,t,n,r.minCellWidth(),r.isRelative)};return a.fold(c,u,s,l,f)},Ru=function(e,t,n){for(var r=0,o=e;o<t;o++)r+=void 0!==n[o]?n[o]:0;return r},Nu=function(e,t){var n=so.justCells(e);return L(n,(function(e){var n=Ru(e.column,e.column+e.colspan,t);return{element:e.element,width:n,colspan:e.colspan}}))},Bu=function(e,t){var n=so.justColumns(e);return L(n,(function(e,n){return{element:e.element,width:t[n],colspan:e.colspan}}))},Pu=function(e,t){var n=so.justCells(e);return L(n,(function(e){var n=Ru(e.row,e.row+e.rowspan,t);return{element:e.element,height:n,rowspan:e.rowspan}}))},Lu=function(e,t){return L(e.all,(function(e,n){return{element:e.element,height:t[n]}}))},Iu=function(e){return V(e,(function(e,t){return e+t}),0)},Hu=function(e,t){return so.hasColumns(e)?Bu(e,t):Nu(e,t)},Fu=function(e,t,n){var r=Hu(e,t);I(r,(function(e){n.setElementWidth(e.element,e.width)}))},ju=function(e,t,n,r,o){var i=so.fromTable(e),a=o.getCellDelta(t),c=o.getWidths(i,o),u=n===i.grid.columns-1,s=r.clampTableDelta(c,n,a,o.minCellWidth(),u),l=Mu(c,n,s,o,r),f=L(l,(function(e,t){return e+c[t]}));Fu(i,f,o),r.resizeTable(o.adjustTableWidth,s,u)},Vu=function(e,t,n,r){var o=so.fromTable(e),i=cc(o,e,r),a=L(i,(function(e,r){return n===r?Math.max(t+e,Cr()):e})),c=Pu(o,a),u=Lu(o,a);I(u,(function(e){Ea(e.element,e.height)})),I(c,(function(e){Ea(e.element,e.height)}));var s=Iu(a);Ea(e,s)},Uu=function(e,t,n,r,o){var i=so.generate(t),a=r.getWidths(i,r),c=r.pixelWidth(),u=o.calcRedestributedWidths(a,c,n.pixelDelta,r.isRelative),s=u.newSizes,l=u.delta;Fu(i,s,r),r.adjustTableWidth(l)},qu=function(e,t,n,r){var o=so.generate(t),i=r.getWidths(o,r);Fu(o,i,r)},Wu=function(e){return L(e,v(0))},$u=function(e,t,n,r,o){return o(e.slice(0,t)).concat(r).concat(o(e.slice(n)))},Gu=function(e){return function(t,n,r,o){if(e(r)){var i=Math.max(o,t[n]-Math.abs(r)),a=Math.abs(i-t[n]);return r>=0?a:-a}return r}},Ku=Gu((function(e){return e<0})),Xu=Gu(z),Yu=function(){var e=function(e,t,n,r,o){var i=Ku(e,t,r,o);return $u(e,t,n+1,[i,0],Wu)},t=function(e,t,n,r){var o=(100+n)/100,i=Math.max(r,(e[t]+n)/o);return L(e,(function(e,n){var r=n===t?i:e/o;return r-e}))},n=function(n,r,o,i,a,c){return c?t(n,r,i,a):e(n,r,o,i,a)},r=function(e,t,r,o,i,a,c){return n(e,r,o,i,a,c)},o=function(e,t){return e(t)},i=function(e,n,r,o,i,a){if(a)return t(e,r,o,i);var c=Ku(e,r,o,i);return Wu(e.slice(0,r)).concat([c])},a=function(e,t,n,r){if(r){var o=t+n,i=o/t,a=L(e,(function(e){return e/i}));return{delta:100*i-100,newSizes:a}}return{delta:n,newSizes:e}};return{resizeTable:o,clampTableDelta:Ku,calcLeftEdgeDeltas:n,calcMiddleDeltas:r,calcRightEdgeDeltas:i,calcRedestributedWidths:a}},Ju=function(){var e=function(e,t,n,r,o){var i=r>=0?n:t,a=Xu(e,i,r,o);return $u(e,t,n+1,[a,-a],Wu)},t=function(t,n,r,o,i,a){return e(t,r,o,i,a)},n=function(e,t,n){n&&e(t)},r=function(e,t,n,r,o,i){if(i)return Wu(e);var a=r/e.length;return L(e,v(a))},o=function(e,t,n,r,o){if(o){if(n>=0)return n;var i=U(e,(function(e,t){return e+t-r}),0);return Math.max(-i,n)}return Ku(e,t,n,r)},i=function(e,t,n,r){return{delta:0,newSizes:e}};return{resizeTable:n,clampTableDelta:o,calcLeftEdgeDeltas:e,calcMiddleDeltas:t,calcRightEdgeDeltas:r,calcRedestributedWidths:i}},Zu=function(e,t){var n=E.from(e.dom.documentElement).map(vt.fromDom).getOr(e);return{parent:v(n),view:v(e),origin:v(Zi(0,0)),isResizable:t}},Qu=function(e,t,n){var r=function(){return ta(t)};return{parent:v(t),view:v(e),origin:r,isResizable:n}},es=function(e,t,n){return{parent:v(t),view:v(e),origin:v(Zi(0,0)),isResizable:n}},ts={only:Zu,detached:Qu,body:es},ns=fi.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),rs=function(e,t,n){var r=n.substring(0,n.length-e.length),o=parseFloat(r);return r===o.toString()?t(o):ns.invalid(n)},os=function(e){return xe(e,"%")?rs("%",ns.percent,e):xe(e,"px")?rs("px",ns.pixels,e):ns.invalid(e)},is=oe(oe({},ns),{from:os}),as=function(e,t){return L(e,(function(e){var n=is.from(e);return n.fold((function(){return e}),(function(e){var n=e/t*100;return n+"%"}),(function(e){return e+"%"}))}))},cs=function(e,t,n){var r=n/t;return L(e,(function(e){var t=is.from(e);return t.fold((function(){return e}),(function(e){return e*r+"px"}),(function(e){return e/100*n+"px"}))}))},us=function(e,t){var n=e.fold((function(){return v("")}),(function(e){var n=e/t;return v(n+"px")}),(function(){var e=100/t;return v(e+"%")}));return P(t,n)},ss=function(e,t,n){return e.fold((function(){return t}),(function(e){return cs(t,n,e)}),(function(e){return as(t,n)}))},ls=function(e,t,n){var r=is.from(n),o=X(e,(function(e){return"0px"===e}))?us(r,e.length):ss(r,e,t);return gs(o)},fs=function(e,t){return 0===e.length?t:V(e,(function(e,t){return is.from(t).fold(v(0),y,y)+e}),0)},ds=function(e,t){var n=Math.floor(e);return{value:n+t,remainder:e-n}},ms=function(e,t){return is.from(e).fold(v(e),(function(e){return e+t+"px"}),(function(e){return e+t+"%"}))},gs=function(e){if(0===e.length)return e;var t=V(e,(function(e,t){var n=is.from(t).fold((function(){return{value:t,remainder:0}}),(function(e){return ds(e,"px")}),(function(e){return{value:e+"%",remainder:0}}));return{output:[n.value].concat(e.output),remainder:e.remainder+n.remainder}}),{output:[],remainder:0}),n=t.output;return n.slice(0,n.length-1).concat([ms(n[n.length-1],Math.round(t.remainder))])},ps=is.from,hs=function(e,t,n){I(t,(function(t){var r=e.slice(t.column,t.colspan+t.column),o=fs(r,zr());dr(t.element,"width",o+n)}))},vs=function(e,t,n){I(t,(function(t,r){var o=fs([e[r]],zr());dr(t.element,"width",o+n)}))},ys=function(e,t,n,r){I(n,(function(t){var n=e.slice(t.row,t.rowspan+t.row),o=fs(n,Cr());dr(t.element,"height",o+r)})),I(t,(function(t,n){dr(t.element,"height",e[n])}))},bs=function(e){return ps(e).fold(v("px"),v("px"),v("%"))},ws=function(e,t,n){var r=so.fromTable(e),o=r.all,i=so.justCells(r),a=so.justColumns(r);t.each((function(t){var n=bs(t),o=Li(e),c=rc(r,e),u=ls(c,o,t);so.hasColumns(r)?vs(u,a,n):hs(u,i,n),dr(e,"width",t)})),n.each((function(t){var n=bs(t),a=Ki(e),c=uc(r,e,ga),u=ls(c,a,t);ys(u,o,i,n),dr(e,"height",t)}))},ks=Wa,_s=$a,xs=Ga,zs=function(e){var t=so.fromTable(e);return t.grid},Cs=function(e){var t=[],n=function(e){if(void 0===e)throw new Error("Event bind error: undefined handler");t.push(e)},r=function(e){t=j(t,(function(t){return t!==e}))},o=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o={};I(e,(function(e,t){o[e]=n[t]})),I(t,(function(e){e(o)}))};return{bind:n,unbind:r,trigger:o}},Ss=function(e){var t=At(e,(function(e){return{bind:e.bind,unbind:e.unbind}})),n=At(e,(function(e){return e.trigger}));return{registry:t,trigger:n}},Ts=function(e,t){var n=null,r=function(){c(n)||(clearTimeout(n),n=null)},o=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];r(),n=setTimeout((function(){n=null,e.apply(null,o)}),t)};return{cancel:r,throttle:o}},Os=function(e){return e.slice(0).sort()},Es=function(e,t){throw new Error("All required keys ("+Os(e).join(", ")+") were not specified. Specified keys were: "+Os(t).join(", ")+".")},As=function(e){throw new Error("Unsupported keys for object: "+Os(e).join(", "))},Ds=function(e,t){if(!a(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");I(t,(function(t){if(!o(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")}))},Ms=function(e,t){throw new Error("All values need to be of type: "+t+". Keys ("+Os(e).join(", ")+") were not.")},Rs=function(e){var t=Os(e),n=W(t,(function(e,n){return n<t.length-1&&e===t[n+1]}));n.each((function(e){throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+t.join(", ")+"].")}))},Ns=function(e,t){return Bs(e,t,{validate:d,label:"function"})},Bs=function(e,t,n){if(0===t.length)throw new Error("You must specify at least one required field.");return Ds("required",t),Rs(t),function(r){var o=Tt(r),i=X(t,(function(e){return N(o,e)}));i||Es(t,o),e(t,o);var a=j(t,(function(e){return!n.validate(r[e],e)}));return a.length>0&&Ms(a,n.label),r}},Ps=function(e,t){var n=j(t,(function(t){return!N(e,t)}));n.length>0&&As(n)},Ls=function(e){return Ns(Ps,e)},Is=Ls(["compare","extract","mutate","sink"]),Hs=Ls(["element","start","stop","destroy"]),Fs=Ls(["forceDrop","drop","move","delayDrop"]),js=function(){var e=E.none(),t=function(){e=E.none()},n=function(t,n){var r=e.map((function(e){return t.compare(e,n)}));return e=E.some(n),r},r=function(e,t){var r=t.extract(e);r.each((function(e){var r=n(t,e);r.each((function(e){o.trigger.move(e)}))}))},o=Ss({move:Cs(["info"])});return{onEvent:r,reset:t,events:o.registry}},Vs=function(){var e=Ss({move:Cs(["info"])});return{onEvent:g,reset:g,events:e.registry}},Us=function(){var e=Vs(),t=js(),n=e,r=function(){n.reset(),n=t},o=function(){n.reset(),n=e},i=function(e,t){n.onEvent(e,t)},a=function(){return n===t};return{on:r,off:o,isOn:a,onEvent:i,events:t.events}},qs=function(e,t,n){var r=!1,o=Ss({start:Cs([]),stop:Cs([])}),i=Us(),a=function(){m.stop(),i.isOn()&&(i.off(),o.trigger.stop())},c=Ts(a,200),u=function(e){m.start(e),i.on(),o.trigger.start()},s=function(e){c.cancel(),i.onEvent(e,t)};i.events.move.bind((function(n){t.mutate(e,n.info)}));var l=function(){r=!0},f=function(){r=!1},d=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r&&e.apply(null,t)}},m=t.sink(Fs({forceDrop:a,drop:d(a),move:d(s),delayDrop:d(c.throttle)}),n),g=function(){m.destroy()};return{element:m.element,go:u,on:l,off:f,destroy:g,events:o.registry}},Ws=function(e,t,n,r,o,i,a){return{target:e,x:t,y:n,stop:r,prevent:o,kill:i,raw:a}},$s=function(e){var t=vt.fromDom(En(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},o=p(r,n);return Ws(t,e.clientX,e.clientY,n,r,o,e)},Gs=function(e,t){return function(n){e(n)&&t($s(n))}},Ks=function(e,t,n,r,o){var i=Gs(n,r);return e.dom.addEventListener(t,i,o),{unbind:w(Ys,e,t,i,o)}},Xs=function(e,t,n,r){return Ks(e,t,n,r,!1)},Ys=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Js=z,Zs=function(e,t,n){return Xs(e,t,Js,n)},Qs=$s,el=function(e,t){var n=Qn(e,t);return void 0===n||""===n?[]:n.split(" ")},tl=function(e,t,n){var r=el(e,t),o=r.concat([n]);return Yn(e,t,o.join(" ")),!0},nl=function(e,t,n){var r=j(el(e,t),(function(e){return e!==n}));return r.length>0?Yn(e,t,r.join(" ")):tr(e,t),!1},rl=function(e){return void 0!==e.dom.classList},ol=function(e){return el(e,"class")},il=function(e,t){return tl(e,"class",t)},al=function(e,t){return nl(e,"class",t)},cl=function(e,t){rl(e)?e.dom.classList.add(t):il(e,t)},ul=function(e){var t=rl(e)?e.dom.classList:ol(e);0===t.length&&tr(e,"class")},sl=function(e,t){if(rl(e)){var n=e.dom.classList;n.remove(t)}else al(e,t);ul(e)},ll=function(e,t){return rl(e)&&e.dom.classList.contains(t)},fl=function(e){var t=e.replace(/\./g,"-"),n=function(e){return t+"-"+e};return{resolve:n}},dl=fl("ephox-dragster"),ml=dl.resolve,gl=function(e){var t=oe({layerClass:ml("blocker")},e),n=vt.fromTag("div");Yn(n,"role","presentation"),mr(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),cl(n,ml("blocker")),cl(n,t.layerClass);var r=v(n),o=function(){Bo(n)};return{element:r,destroy:o}},pl=function(e,t){return Zi(t.left-e.left,t.top-e.top)},hl=function(e){return E.some(Zi(e.x,e.y))},vl=function(e,t){e.mutate(t.left,t.top)},yl=function(e,t){var n=gl(t),r=Zs(n.element(),"mousedown",e.forceDrop),o=Zs(n.element(),"mouseup",e.drop),i=Zs(n.element(),"mousemove",e.move),a=Zs(n.element(),"mouseout",e.delayDrop),c=function(){n.destroy(),o.unbind(),i.unbind(),a.unbind(),r.unbind()},u=function(e){Oo(e,n.element())},s=function(){Bo(n.element())};return Hs({element:n.element,start:u,stop:s,destroy:c})},bl=Is({compare:pl,extract:hl,sink:yl,mutate:vl}),wl=function(e,t){void 0===t&&(t={});var n=void 0!==t.mode?t.mode:bl;return qs(e,n,t)},kl=function(e){return Kn(e,"[contenteditable]")},_l=function(e,t){return void 0===t&&(t=!1),!ot().browser.isIE()&&Dn(e)?e.dom.isContentEditable:kl(e).fold(v(t),(function(e){return"true"===xl(e)}))},xl=function(e){return e.dom.contentEditable},zl=fl("ephox-snooker"),Cl=zl.resolve,Sl=function(){var e=Ss({drag:Cs(["xDelta","yDelta"])}),t=function(t,n){e.trigger.drag(t,n)};return{mutate:t,events:e.registry}},Tl=function(){var e=Ss({drag:Cs(["xDelta","yDelta","target"])}),t=E.none(),n=Sl();n.events.drag.bind((function(n){t.each((function(t){e.trigger.drag(n.xDelta,n.yDelta,t)}))}));var r=function(e){t=E.some(e)},o=function(){return t};return{assign:r,get:o,mutate:n.mutate,events:e.registry}},Ol=function(e,t,n,r,o){var i=vt.fromTag("div");return mr(i,{position:"absolute",left:t-r/2+"px",top:n+"px",height:o+"px",width:r+"px"}),Jn(i,{"data-column":e,role:"presentation"}),i},El=function(e,t,n,r,o){var i=vt.fromTag("div");return mr(i,{position:"absolute",left:t+"px",top:n-o/2+"px",height:o+"px",width:r+"px"}),Jn(i,{"data-row":e,role:"presentation"}),i},Al=Cl("resizer-bar"),Dl=Cl("resizer-rows"),Ml=Cl("resizer-cols"),Rl=7,Nl=function(e,t){return K(e.all,(function(e,n){return t(e.element)?[n]:[]}))},Bl=function(e,t){var n=[];return P(e.grid.columns,(function(r){var o=so.getColumnAt(e,r).map((function(e){return e.element}));o.forall(t)&&n.push(r)})),j(n,(function(n){var r=so.filterItems(e,(function(e){return e.column===n}));return X(r,(function(e){return t(e.element)}))}))},Pl=function(e){var t=Hn(e.parent(),"."+Al);I(t,Bo)},Ll=function(e,t,n){var r=e.origin();I(t,(function(t){t.each((function(t){var o=n(r,t);cl(o,Al),Oo(e.parent(),o)}))}))},Il=function(e,t,n,r){Ll(e,t,(function(e,t){var o=Ol(t.col,t.x-e.left,n.top-e.top,Rl,r);return cl(o,Ml),o}))},Hl=function(e,t,n,r){Ll(e,t,(function(e,t){var o=El(t.row,n.left-e.left,t.y-e.top,r,Rl);return cl(o,Dl),o}))},Fl=function(e,t,n,r,o){var i=ta(n),a=t.isResizable,c=r.length>0?ga.positions(r,n):[],u=c.length>0?Nl(e,a):[],s=j(c,(function(e,t){return B(u,(function(e){return t===e}))}));Hl(t,s,i,Ii(n));var l=o.length>0?ya.positions(o,n):[],f=l.length>0?Bl(e,a):[],d=j(l,(function(e,t){return B(f,(function(e){return t===e}))}));Il(t,d,i,Xi(n))},jl=function(e,t){if(Pl(e),e.isResizable(t)){var n=so.fromTable(t),r=Ui(n),o=ji(n);Fl(n,e,t,r,o)}},Vl=function(e,t){var n=Hn(e.parent(),"."+Al);I(n,t)},Ul=function(e){Vl(e,(function(e){dr(e,"display","none")}))},ql=function(e){Vl(e,(function(e){dr(e,"display","block")}))},Wl=function(e){return ll(e,Dl)},$l=function(e){return ll(e,Ml)},Gl=Cl("resizer-bar-dragging"),Kl=function(e){var t=Tl(),n=wl(t,{}),r=E.none(),o=function(e,t){return E.from(Qn(e,t))};t.events.drag.bind((function(e){o(e.target,"data-row").each((function(t){var n=xr(e.target,"top");dr(e.target,"top",n+e.yDelta+"px")})),o(e.target,"data-column").each((function(t){var n=xr(e.target,"left");dr(e.target,"left",n+e.xDelta+"px")}))}));var i=function(e,t){var n=xr(e,t),r=br(e,"data-initial-"+t,0);return n-r};n.events.stop.bind((function(){t.get().each((function(t){r.each((function(n){o(t,"data-row").each((function(e){var r=i(t,"top");tr(t,"data-initial-top"),m.trigger.adjustHeight(n,r,parseInt(e,10))})),o(t,"data-column").each((function(e){var r=i(t,"left");tr(t,"data-initial-left"),m.trigger.adjustWidth(n,r,parseInt(e,10))})),jl(e,n)}))}))}));var a=function(r,o){m.trigger.startAdjust(),t.assign(r),Yn(r,"data-initial-"+o,xr(r,o)),cl(r,Gl),dr(r,"opacity","0.2"),n.go(e.parent())},c=Zs(e.parent(),"mousedown",(function(e){Wl(e.target)&&a(e.target,"top"),$l(e.target)&&a(e.target,"left")})),u=function(t){return _t(t,e.view())},s=function(e){return Kn(e,"table",u).filter(_l)},l=Zs(e.view(),"mouseover",(function(t){s(t.target).fold((function(){Dn(t.target)&&Pl(e)}),(function(t){r=E.some(t),jl(e,t)}))})),f=function(){c.unbind(),l.unbind(),n.destroy(),Pl(e)},d=function(t){jl(e,t)},m=Ss({adjustHeight:Cs(["table","delta","row"]),adjustWidth:Cs(["table","delta","column"]),startAdjust:Cs([])});return{destroy:f,refresh:d,on:n.on,off:n.off,hideBars:w(Ul,e),showBars:w(ql,e),events:m.registry}},Xl=function(e,t,n){var r=ga,o=ya,i=Kl(e),a=Ss({beforeResize:Cs(["table","type"]),afterResize:Cs(["table","type"]),startDrag:Cs([])});return i.events.adjustHeight.bind((function(e){var t=e.table;a.trigger.beforeResize(t,"row");var n=r.delta(e.delta,t);Vu(t,n,e.row,r),a.trigger.afterResize(t,"row")})),i.events.startAdjust.bind((function(e){a.trigger.startDrag()})),i.events.adjustWidth.bind((function(e){var r=e.table;a.trigger.beforeResize(r,"col");var i=o.delta(e.delta,r),c=n(r);ju(r,i,e.column,t,c),a.trigger.afterResize(r,"col")})),{on:i.on,off:i.off,hideBars:i.hideBars,showBars:i.showBars,destroy:i.destroy,events:a.registry}},Yl={create:Xl},Jl=function(e,t){return e.fire("newrow",{node:t})},Zl=function(e,t){return e.fire("newcell",{node:t})},Ql=function(e,t,n,r,o){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:o})},ef=function(e,t,n,r,o){e.fire("ObjectResized",{target:t,width:n,height:r,origin:o})},tf=function(e,t,n,r,o){e.fire("TableSelectionChange",{cells:t,start:n,finish:r,otherCells:o})},nf=function(e){e.fire("TableSelectionClear")},rf=function(e,t,n){e.fire("TableModified",oe(oe({},n),{table:t}))},of={structure:!1,style:!0},af={structure:!0,style:!1},cf={structure:!0,style:!0},uf="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",sf={"border-collapse":"collapse",width:"100%"},lf=P(5,(function(e){var t=e+1+"px";return{title:t,value:t}})),ff=L(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],(function(e){return{title:e,value:e.toLowerCase()}})),df=function(e){var t;if(Rf(e)){var n=e.dom,r=null!==(t=n.getParent(e.selection.getStart(),n.isBlock))&&void 0!==t?t:e.getBody(),o=Hi(vt.fromDom(r));return oe(oe({},sf),{width:o+"px"})}return Nf(e)?Nt(sf,(function(e,t){return"width"!==t})):sf},mf={border:"1"},gf="preservetable",pf=function(e){return e.getParam("table_sizing_mode","auto")},hf=function(e){return e.getParam("table_responsive_width")},vf=function(e){return e.getParam("table_border_widths",lf,"array")},yf=function(e){return e.getParam("table_border_styles",ff,"array")},bf=function(e){return e.getParam("table_default_attributes",mf,"object")},wf=function(e){return e.getParam("table_default_styles",df(e),"object")},kf=function(e){return e.getParam("table_resize_bars",!0,"boolean")},_f=function(e){return e.getParam("table_tab_navigation",!0,"boolean")},xf=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},zf=function(e){return e.getParam("table_row_advtab",!0,"boolean")},Cf=function(e){return e.getParam("table_advtab",!0,"boolean")},Sf=function(e){return e.getParam("table_appearance_options",!0,"boolean")},Tf=function(e){return e.getParam("table_grid",!0,"boolean")},Of=function(e){return e.getParam("table_style_by_css",!1,"boolean")},Ef=function(e){return e.getParam("table_cell_class_list",[],"array")},Af=function(e){return e.getParam("table_row_class_list",[],"array")},Df=function(e){return e.getParam("table_class_list",[],"array")},Mf=function(e){return"relative"===pf(e)||!0===hf(e)},Rf=function(e){return"fixed"===pf(e)||!1===hf(e)},Nf=function(e){return"responsive"===pf(e)},Bf=function(e){return e.getParam("table_toolbar",uf)},Pf=function(e){return e.getParam("table_use_colgroups",!1,"boolean")},Lf=function(e){var t="section",n=e.getParam("table_header_type",t,"string"),r=["section","cells","sectionCells","auto"];return N(r,n)?n:t},If=function(e){var t=["preservetable","resizetable"],n=e.getParam("table_column_resizing",gf,"string");return W(t,(function(e){return e===n})).getOr(gf)},Hf=function(e){return"preservetable"===If(e)},Ff=function(e){return"resizetable"===If(e)},jf=function(e){var t=e.getParam("table_clone_elements");return o(t)?E.some(t.split(/[ ,]/)):Array.isArray(t)?E.some(t):E.none()},Vf=function(e){var t=e.getParam("object_resizing",!0);return o(t)?"table"===t:t},Uf=function(e){return e.getParam("table_background_color_map",[],"array")},qf=function(e){return e.getParam("table_border_color_map",[],"array")},Wf=function(e,t){return Mf(e)?pc.percentageSize(t):Rf(e)?pc.pixelSize(t):pc.getTableSize(t)},$f=function(e){tr(e,"width")},Gf=function(e){var t=qa(e);ws(e,E.some(t),E.none()),$f(e)},Kf=function(e){var t=Ua(e);ws(e,E.some(t),E.none()),$f(e)},Xf=function(e){vr(e,"width");var t=Dr(e),n=t.length>0?t:Ar(e);I(n,(function(e){vr(e,"width"),$f(e)})),$f(e)},Yf=Gf,Jf=Kf,Zf=Xf,Qf=function(e){var t=so.fromTable(e);so.hasColumns(t)||I(Ar(e),(function(e){var t=gr(e,"width");dr(e,"width",t),tr(e,"width")}))},ed=function(){var e=vt.fromTag("div");return mr(e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Oo(Mn(),e),e},td=function(e,t){return e.inline?ts.body(Wc(e),ed(),t):ts.only(vt.fromDom(e.getDoc()),t)},nd=function(e,t){e.inline&&Bo(t.parent())},rd="bar-",od=function(e){return"false"!==Qn(e,"data-mce-resize")},id=function(e){var t,n,r=E.none(),o=E.none(),i=E.none(),a=function(e){return"TABLE"===e.nodeName},c=function(){return o},u=function(){return i.getOr(ts.only(vt.fromDom(e.getBody()),od))},s=function(t){return Wf(e,t)},l=function(){return Hf(e)?Ju():Yu()},f=function(e){return zs(e).columns},d=function(r,o,i){var a=xe(o,"e");if(""===n&&Yf(r),i!==t&&""!==n){dr(r,"width",n);var c=l(),u=s(r),d=Hf(e)||a?f(r)-1:0;ju(r,i-t,d,c,u)}else if(Qc(n)){var m=parseFloat(n.replace("%","")),g=i*m/t;dr(r,"width",g+"%")}eu(n)&&Qf(r)},m=function(){o.each((function(e){e.destroy()})),i.each((function(t){nd(e,t)}))};return e.on("init",(function(){var t=td(e,od);if(i=E.some(t),Vf(e)&&kf(e)){var n=l(),a=Yl.create(t,n,s);a.on(),a.events.startDrag.bind((function(t){r=E.some(e.selection.getRng())})),a.events.beforeResize.bind((function(t){var n=t.table.dom;Ql(e,n,$c(n),Gc(n),rd+t.type)})),a.events.afterResize.bind((function(t){var n=t.table,o=n.dom;Jc(n),r.each((function(t){e.selection.setRng(t),e.focus()})),ef(e,o,$c(o),Gc(o),rd+t.type),e.undoManager.add()})),o=E.some(a)}})),e.on("ObjectResizeStart",(function(r){var o=r.target;if(a(o)){var i=vt.fromDom(o);I(e.dom.select(".mce-clonedresizable"),(function(t){e.dom.addClass(t,"mce-"+If(e)+"-columns")})),!_s(i)&&Rf(e)?Jf(i):!ks(i)&&Mf(e)&&Yf(i),xs(i)&&_e(r.origin,rd)&&Yf(i),t=r.width,n=Nf(e)?"":Zc(e,o).getOr("")}})),e.on("ObjectResized",(function(t){var n=t.target;if(a(n)){var r=vt.fromDom(n),o=t.origin;_e(o,"corner-")&&d(r,o,t.width),Jc(r),rf(e,r.dom,of)}})),e.on("SwitchMode",(function(){c().each((function(t){e.mode.isReadOnly()?t.hideBars():t.showBars()}))})),{lazyResize:c,lazyWire:u,destroy:m}},ad=function(e,t){return{element:e,offset:t}},cd=function(e,t,n){return e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?n(t).bind((function(t){return cd(e,t,n).orThunk((function(){return E.some(t)}))})):E.none()},ud=function(e,t){if(e.property().isText(t))return e.property().getText(t).length;var n=e.property().children(t);return n.length},sd=function(e,t){var n=cd(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(n))return ad(n,ud(e,n));var r=e.property().children(n);return r.length>0?sd(e,r[r.length-1]):ad(n,ud(e,n))},ld=sd,fd=Uo(),dd=function(e){return ld(fd,e)},md=function(e,t){var n=wr(e,"colspan");if(1===n){var r=ja(e);r.each((function(n){var r=n.value/2;Va(e,r,n.unit),Va(t,r,n.unit)}))}},gd=fn("th"),pd=function(e){return X(e,(function(e){return gd(e.element)}))},hd=function(e,t){return e&&t?"sectionCells":e?"section":"cells"},vd=function(e){var t="thead"===e.section,n=rr(yd(e.cells),"th");return t||n?{type:"header",subType:hd(t,n)}:"tfoot"===e.section?{type:"footer"}:{type:"body"}},yd=function(e){var t=j(e,(function(e){return gd(e.element)}));return 0===t.length?E.some("td"):t.length===e.length?E.some("th"):E.none()},bd=function(e){var t=L(e,(function(e){return vd(e).type})),n=N(t,"header"),r=N(t,"footer");if(n||r){var o=N(t,"body");return!n||o||r?n||o||!r?E.none():E.some("footer"):E.some("header")}return E.some("body")},wd=function(e){return re(e.all,(function(e){var t=vd(e);return"header"===t.type?E.from(t.subType):E.none()}))},kd=function(e,t,n){return Jt(n(e.element,t),!0,e.isLocked)},_d=function(e,t){return e.section!==t?Zt(e.element,e.cells,t,e.isNew):e},xd=function(){return{transformRow:_d,transformCell:function(e,t,n){var r=n(e.element,t),o="td"!==nn(r)?zi(r,"td"):r;return Jt(o,e.isNew,e.isLocked)}}},zd=function(){return{transformRow:_d,transformCell:kd}},Cd=function(){return{transformRow:function(e,t){var n="thead"===t?"tbody":t;return _d(e,n)},transformCell:kd}},Sd=function(){return{transformRow:y,transformCell:kd}},Td=function(e,t){var n=so.fromTable(e),r=wd(n).getOr(t);switch(r){case"section":return xd();case"sectionCells":return zd();case"cells":return Cd()}},Od={getTableSectionType:Td,section:xd,sectionCells:zd,cells:Cd,fallback:Sd},Ed=function(e,t,n,r){n===r?tr(e,t):Yn(e,t,n)},Ad=function(e,t,n){ne(In(e,t)).fold((function(){return To(e,n)}),(function(e){return So(e,n)}))},Dd=function(e,t){var n=$n(e,t).getOrThunk((function(){var n=vt.fromTag(t,dn(e).dom);return"thead"===t?Ad(e,"caption,colgroup",n):"colgroup"===t?Ad(e,"caption",n):Oo(e,n),n}));return No(n),n},Md=function(e,t){var n=[],r=[],o=function(e){return L(e,(function(e){e.isNew&&n.push(e.element);var t=e.element;return No(t),I(e.cells,(function(e){e.isNew&&r.push(e.element),Ed(e.element,"colspan",e.colspan,1),Ed(e.element,"rowspan",e.rowspan,1),Oo(t,e.element)})),t}))},i=function(e){return K(e,(function(e){return L(e.cells,(function(e){return Ed(e.element,"span",e.colspan,1),e.element}))}))},a=function(t,n){var r=Dd(e,n),a="colgroup"===n?i:o,c=a(t);Ro(r,c)},c=function(t){$n(e,t).each(Bo)},u=function(e,t){e.length>0?a(e,t):c(t)},s=[],l=[],f=[],d=[];return I(t,(function(e){switch(e.section){case"thead":s.push(e);break;case"tbody":l.push(e);break;case"tfoot":f.push(e);break;case"colgroup":d.push(e);break}})),u(d,"colgroup"),u(s,"thead"),u(l,"tbody"),u(f,"tfoot"),{newRows:n,newCells:r}},Rd=function(e){return L(e,(function(e){var t=wi(e.element);return I(e.cells,(function(e){var n=ki(e.element);Ed(n,"colspan",e.colspan,1),Ed(n,"rowspan",e.rowspan,1),Oo(t,n)})),t}))},Nd=function(e,t){return L(e,(function(e){return qr(e,t)}))},Bd=function(e,t){return e[t]},Pd=function(e,t){if(0===e.length)return 0;var n=e[0],r=$(e,(function(e){return!t(n.element,e.element)}));return r.getOr(e.length)},Ld=function(e,t,n,r){var o=Bd(e,t),i="colgroup"===o.section,a=Pd(o.cells.slice(n),r),c=i?1:Pd(Nd(e.slice(t),n),r);return{colspan:a,rowspan:c}},Id=function(e,t){var n=L(e,(function(e){return L(e.cells,x)})),r=function(e,t,r,o){for(var i=e;i<e+r;i++)for(var a=t;a<t+o;a++)n[i][a]=!0};return L(e,(function(o,i){var a=K(o.cells,(function(o,a){if(!1===n[i][a]){var c=Ld(e,i,a,t);return r(i,a,c.rowspan,c.colspan),[Gt(o.element,c.rowspan,c.colspan,o.isNew)]}return[]}));return Yt(o.element,a,o.section,o.isNew)}))},Hd=function(e,t,n){var r=[];I(e.colgroups,(function(o){for(var i=[],a=0;a<e.grid.columns;a++){var c=so.getColumnAt(e,a).map((function(e){return Jt(e.element,n,!1)})).getOrThunk((function(){return Jt(t.colGap(),!0,!1)}));i.push(c)}r.push(Zt(o.element,i,"colgroup",n))}));for(var o=0;o<e.grid.rows;o++){for(var i=[],a=0;a<e.grid.columns;a++){var c=so.getAt(e,o,a).map((function(e){return Jt(e.element,n,e.isLocked)})).getOrThunk((function(){return Jt(t.gap(),!0,!1)}));i.push(c)}var u=e.all[o],s=Zt(u.element,i,u.section,n);r.push(s)}return r},Fd=function(e,t){return Hd(e,t,!1)},jd=function(e){return Id(e,_t)},Vd=function(e,t){return re(e.all,(function(e){return W(e.cells,(function(e){return _t(t,e.element)}))}))},Ud=function(e,t,n){var r=L(t.selection,(function(t){return Er(t).bind((function(t){return Vd(e,t)})).filter(n)})),o=or(r);return ur(o.length>0,o)},qd=function(e,t,n,r,o){return function(i,a,c,u,s){var l=so.fromTable(a),f=E.from(null===s||void 0===s?void 0:s.section).getOrThunk(Od.fallback),d=t(l,c).map((function(t){var n=Fd(l,u),r=e(n,t,_t,o(u),f),i=Jr(r.grid),a=jd(r.grid);return{info:t,grid:a,cursor:r.cursor,lockedColumns:i}}));return d.bind((function(e){var t=Md(a,e.grid),o=E.from(null===s||void 0===s?void 0:s.sizing).getOrThunk((function(){return pc.getTableSize(a)})),c=E.from(null===s||void 0===s?void 0:s.resize).getOrThunk(Ju);return n(a,e.grid,e.info,{sizing:o,resize:c,section:f}),r(a),jl(i,a),tr(a,Xr),e.lockedColumns.length>0&&Yn(a,Xr,e.lockedColumns.join(",")),E.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})}))}},Wd=function(e,t){return Er(t.element).bind((function(n){return Vd(e,n).map((function(e){var n=oe(oe({},e),{generators:t.generators,clipboard:t.clipboard});return n}))}))},$d=function(e,t){return Ud(e,t,z).map((function(e){return{cells:e,generators:t.generators,clipboard:t.clipboard}}))},Gd=function(e,t){return t.mergable},Kd=function(e,t){return t.unmergable},Xd=function(e,t){return Ud(e,t,z)},Yd=function(e,t){return Ud(e,t,(function(e){return!e.isLocked}))},Jd=function(e,t){return Vd(e,t).exists((function(e){return!e.isLocked}))},Zd=function(e,t){return X(t,(function(t){return Jd(e,t)}))},Qd=function(e,t){return Gd(e,t).filter((function(t){return Zd(e,t.cells)}))},em=function(e,t){return Kd(e,t).filter((function(t){return Zd(e,t)}))},tm=function(e,t,n,r){var o=Gr(e).rows;if(0===o.length)return e;for(var i=t.startRow;i<=t.finishRow;i++)for(var a=t.startCol;a<=t.finishCol;a++){var c=o[i],u=qr(c,a).isLocked;jr(c,a,Jt(r(),!1,u))}return e},nm=function(e,t,n,r){for(var o=Gr(e).rows,i=!0,a=0;a<o.length;a++)for(var c=0;c<$r(o[0]);c++){var u=o[a],s=qr(u,c),l=s.element,f=n(l,t);!0===f&&!1===i?jr(u,c,Jt(r(),!0,s.isLocked)):!0===f&&(i=!1)}return e},rm=function(e,t){return U(e,(function(e,n){return B(e,(function(e){return t(e.element,n.element)}))?e:e.concat([n])}),[])},om=function(e,t,n,r){return t>0&&t<e[0].cells.length&&I(e,(function(e){var o=e.cells[t-1],i=e.cells[t],a=n(i.element,o.element);a&&jr(e,t,Jt(r(),!0,i.isLocked))})),e},im=function(e,t,n,r){var o=Gr(e).rows;if(t>0&&t<o.length){var i=o[t-1].cells,a=rm(i,n);I(a,(function(e){for(var i=E.none(),a=t;a<o.length;a++)for(var c=function(t){var c=o[a],u=qr(c,t),s=n(u.element,e.element);s&&(i.isNone()&&(i=E.some(r())),i.each((function(e){jr(c,t,Jt(e,!0,u.isLocked))})))},u=0;u<$r(o[0]);u++)c(u)}))}return e},am=function(e){var t=function(t){return am(e)},n=function(t){return am(e)},r=function(t){return am(t(e))},o=function(t){return am(e)},i=function(t){t(e)},a=function(t){return t(e)},c=function(t,n){return n(e)},u=function(t){return t(e)},s=function(t){return t(e)},l=function(){return E.some(e)};return{isValue:z,isError:x,getOr:v(e),getOrThunk:v(e),getOrDie:v(e),or:t,orThunk:n,fold:c,map:r,mapError:o,each:i,bind:a,exists:u,forall:s,toOptional:l}},cm=function(e){var t=function(e){return e()},n=function(){return _(String(e))()},r=y,o=function(e){return e()},i=function(t){return cm(e)},a=function(t){return cm(t(e))},c=function(t){return cm(e)},u=function(t,n){return t(e)};return{isValue:x,isError:z,getOr:y,getOrThunk:t,getOrDie:n,or:r,orThunk:o,fold:u,map:i,mapError:a,each:g,bind:c,exists:x,forall:z,toOptional:E.none}},um=function(e,t){return e.fold((function(){return cm(t)}),am)},sm={value:am,error:cm,fromOption:um},lm=function(e,t,n){if(e.row>=t.length||e.column>$r(t[0]))return sm.error("invalid start address out of table bounds, row: "+e.row+", column: "+e.column);var r=t.slice(e.row),o=r[0].cells.slice(e.column),i=$r(n[0]),a=n.length;return sm.value({rowDelta:r.length-a,colDelta:o.length-i})},fm=function(e,t){var n=$r(e[0]),r=$r(t[0]);return{rowDelta:0,colDelta:n-r}},dm=function(e,t){var n=e.length,r=t.length;return{rowDelta:n-r,colDelta:0}},mm=function(e,t,n,r){var o="colgroup"===t.section?n.col:n.cell;return P(e,(function(e){return Jt(o(),!0,r(e))}))},gm=function(e,t,n,r){var o=e[e.length-1];return e.concat(P(t,(function(){var e="colgroup"===o.section?n.colgroup:n.row,t=Kr(o,e,y),i=mm(t.cells.length,t,n,(function(e){return Ht(r,e.toString())}));return Vr(t,i)})))},pm=function(e,t,n,r){return L(e,(function(e){var o=mm(t,e,n,x);return Hr(e,r,o)}))},hm=function(e,t,n){return L(e,(function(e){return U(n,(function(n,r){var o=mm(1,e,t,z)[0];return Fr(n,r,o)}),e)}))},vm=function(e,t,n){var r=t.colDelta<0?pm:y,o=t.rowDelta<0?gm:y,i=Jr(e),a=$r(e[0]),c=B(i,(function(e){return e===a-1})),u=r(e,Math.abs(t.colDelta),n,c?a-1:a),s=Jr(u);return o(u,Math.abs(t.rowDelta),n,J(s,z))},ym=function(e,t,n,r){var o=qr(e[t],n),i=w(r,o.element),a=e[t];return e.length>1&&$r(a)>1&&(n>0&&i(Wr(a,n-1))||n<a.cells.length-1&&i(Wr(a,n+1))||t>0&&i(Wr(e[t-1],n))||t<e.length-1&&i(Wr(e[t+1],n)))},bm=function(e,t,n,r,o,i){for(var a=e.row,c=e.column,u=n.length,s=$r(n[0]),l=a+u,f=c+s+i.length,d=J(i,z),m=a;m<l;m++)for(var g=0,p=c;p<f;p++)if(d[p])g++;else{ym(t,m,p,o)&&nm(t,Wr(t[m],p),o,r.cell);var h=p-c-g,v=qr(n[m-a],h),y=v.element,b=r.replace(y);jr(t[m],p,Jt(b,!0,v.isLocked))}return t},wm=function(e,t,n){var r=$r(t[0]),o=Gr(t).cols.length+e.row,i=P(r-e.column,(function(t){return t+e.column})),a=W(i,(function(e){return X(n,(function(t){return t!==e}))})).getOr(r-1);return{row:o,column:a}},km=function(e,t,n){return j(n,(function(n){return n>=e.column&&n<=$r(t[0])+e.column}))},_m=function(e,t,n,r,o){var i=Jr(t),a=wm(e,t,i),c=Gr(n).rows,u=km(a,c,i),s=lm(a,t,c);return s.map((function(e){var n=oe(oe({},e),{colDelta:e.colDelta-u.length}),i=vm(t,n,r),s=Jr(i),l=km(a,c,s);return bm(a,i,c,r,o,l)}))},xm=function(e,t,n,r,o){om(t,e,o,r.cell);var i=dm(n,t),a=vm(n,i,r),c=dm(t,a),u=vm(t,c,r);return L(u,(function(t,n){return Hr(t,e,a[n].cells)}))},zm=function(e,t,n,r,o){im(t,e,o,r.cell);var i=Jr(t),a=fm(t,n),c=oe(oe({},a),{colDelta:a.colDelta-i.length}),u=vm(t,c,r),s=Gr(u),l=s.cols,f=s.rows,d=Jr(u),m=fm(n,t),g=oe(oe({},m),{colDelta:m.colDelta+d.length}),p=hm(n,r,d),h=vm(p,g,r);return l.concat(f.slice(0,e)).concat(h).concat(f.slice(e,f.length))},Cm=function(e,t,n,r){return Kr(e,(function(e){return r(e,n)}),t)},Sm=function(e,t,n,r,o){var i=Gr(e),a=i.rows,c=i.cols,u=a.slice(0,t),s=a.slice(t),l=Cm(a[n],(function(e,n){var i=t>0&&t<a.length&&r(Wr(a[t-1],n),Wr(a[t],n)),c=i?qr(a[t],n):Jt(o(e.element,r),!0,e.isLocked);return c}),r,o);return c.concat(u).concat([l]).concat(s)},Tm=function(e,t,n,r,o,i,a){if("colgroup"!==n&&r)return qr(e,t);var c=qr(e,o);return Jt(a(c.element,i),!0,!1)},Om=function(e,t,n,r,o){return L(e,(function(e){var i=t>0&&t<$r(e)&&r(Wr(e,t-1),Wr(e,t)),a=Tm(e,t,e.section,i,n,r,o);return Fr(e,t,a)}))},Em=function(e,t){return K(e,(function(e){var n=e.cells,r=V(t,(function(e,t){return t>=0&&t<e.length?e.slice(0,t).concat(e.slice(t+1)):e}),n);return r.length>0?[Zt(e.element,r,e.section,e.isNew)]:[]}))},Am=function(e,t,n){var r=Gr(e),o=r.rows,i=r.cols;return i.concat(o.slice(0,t)).concat(o.slice(n+1))},Dm=function(e,t,n,r){return void 0!==Wr(e[t],n)&&t>0&&r(Wr(e[t-1],n),Wr(e[t],n))},Mm=function(e,t,n){return t>0&&n(Wr(e,t-1),Wr(e,t))},Rm=function(e,t,n,r){return Dm(e,t,n,r)||Mm(e[t],n,r)},Nm=function(e,t){var n=X(t,y)&&pd(e.cells);return n?z:function(e,n,r){var o=nn(e.element);return!("th"===o&&t[r])}},Bm=function(e,t){var n=X(t,y)&&pd(e);return n?z:function(e,n,r){var o=nn(e.element);return!("th"===o&&t[n])}},Pm=function(e,t,n,r){var o=function(e){return"row"===e?_r(t):kr(t)},i=function(e){return o(e)?e+"group":e};if(e)return gd(t)?i(n):null;if(r&&gd(t)){var a="row"===n?"col":"row";return i(a)}return null},Lm=function(e,t){return function(n,r,o){return E.some(Pm(e,n.element,"col",t[o]))}},Im=function(e,t){return function(n,r){return E.some(Pm(e,n.element,"row",t[r]))}},Hm=function(e,t,n){return Jt(n(e.element,t),!0,e.isLocked)},Fm=function(e,t,n,r,o,i,a){var c=function(e){return B(t,(function(t){return n(e.element,t.element)}))};return L(e,(function(e,t){return Ur(e,(function(e,u){if(c(e)){var s=a(e,t,u)?o(e,n,r):e;return i(s,t,u).each((function(e){Zn(s.element,{scope:E.from(e)})})),s}return e}))}))},jm=function(e,t,n){return K(e,(function(r,o){return Rm(e,o,t,n)?[]:[qr(r,t)]}))},Vm=function(e,t,n){var r=e[t];return K(r.cells,(function(r,o){return Rm(e,t,o,n)?[]:[r]}))},Um=function(e,t,n,r,o){var i=Gr(e).rows,a=K(t,(function(e){return jm(i,e,r)})),c=L(e,(function(e){return pd(e.cells)})),u=Bm(a,c),s=Im(n,c);return Fm(e,a,r,o,Hm,s,u)},qm=function(e,t,n,r,o,i,a){var c=Gr(e),u=c.cols,s=c.rows,l=s[t[0]],f=K(t,(function(e){return Vm(s,e,o)})),d=L(l.cells,(function(e,t){return pd(jm(s,t,o))})),m=ie([],s,!0);I(t,(function(e){m[e]=a.transformRow(s[e],n)}));var g=u.concat(m),p=Nm(l,d),h=Lm(r,d);return Fm(g,f,o,i,a.transformCell,h,p)},Wm=function(e,t,n,r){var o=Gr(e).rows,i=L(t,(function(e){return qr(o[e.row],e.column)}));return Fm(e,i,n,r,Hm,E.none,z)},$m=function(e){var t=function(e,t){var n=B(e,(function(e){return e.column===t.column}));return n?e:e.concat([t])};return U(e,t,[]).sort((function(e,t){return e.column-t.column}))},Gm=fn("col"),Km=fn("colgroup"),Xm=function(e){return"tr"===nn(e)||Km(e)},Ym=function(e){var t=br(e,"colspan",1),n=br(e,"rowspan",1);return{element:e,colspan:t,rowspan:n}},Jm=function(e,t){void 0===t&&(t=Ym);var n=function(t){return Gm(t.element)?e.col(t):e.cell(t)},r=function(t){return Km(t.element)?e.colgroup(t):e.row(t)},o=function(e){if(Xm(e))return r({element:e});var o=n(t(e));return i=E.some({item:e,replacement:o}),o},i=E.none(),a=function(e,t){return i.fold((function(){return o(e)}),(function(n){return t(e,n.item)?n.replacement:o(e)}))};return{getOrInit:a}},Zm=function(e){return function(t){var n=[],r=function(e,t){return W(n,(function(n){return t(n.item,e)}))},o=function(r){var o="td"===e?{scope:null}:{},i=t.replace(r,e,o);return n.push({item:r,sub:i}),i},i=function(e,t){return Xm(e)||Gm(e)?e:r(e,t).fold((function(){return o(e)}),(function(n){return t(e,n.item)?n.sub:o(e)}))};return{replaceOrInit:i}}},Qm=function(e){return er(e,"scope").map((function(e){return e.substr(0,3)}))},eg=function(e){var t=function(t){var n=Qm(t);return n.each((function(e){return Yn(t,"scope",e)})),function(){var r=e.cell({element:t,colspan:1,rowspan:1});return vr(r,"width"),vr(t,"width"),n.each((function(e){return Yn(r,"scope",e)})),r}},n=function(e){var t=function(){var t=or(L(e,Qm));if(0===t.length)return E.none();var n=t[0],r=["row","col"],o=B(t,(function(e){return e!==n&&N(r,e)}));return o?E.none():E.from(n)};return vr(e[0],"width"),t().fold((function(){return tr(e[0],"scope")}),(function(t){return Yn(e[0],"scope",t+"group")})),v(e[0])};return{unmerge:t,merge:n}},tg={modification:Jm,transform:Zm,merging:eg},ng=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],rg=function(e,t){var n=e.property().name(t);return N(["ol","ul"],n)},og=function(e,t){var n=e.property().name(t);return N(ng,n)},ig=function(e,t){return N(["br","img","hr","input"],e.property().name(t))},ag=Uo(),cg=function(e){return og(ag,e)},ug=function(e){return rg(ag,e)},sg=function(e){return ig(ag,e)},lg=function(e){var t=function(e){return"br"===nn(e)},n=function(e){return X(e,(function(e){return t(e)||un(e)&&0===Ho(e).trim().length}))},r=function(e){return"li"===nn(e)||jn(e,ug).isSome()},o=function(e){return bn(e).map((function(e){return!!cg(e)||!!sg(e)&&"img"!==nn(e)})).getOr(!1)},i=function(e){return Ec(e).bind((function(n){var i=o(n);return pn(n).map((function(o){return!0===i||r(o)||t(n)||cg(o)&&!_t(e,o)?[]:[vt.fromTag("br")]}))})).getOr([])},a=function(){var t=K(e,(function(e){var t=wn(e);return n(t)?[]:t.concat(i(e))}));return 0===t.length?[vt.fromTag("br")]:t},c=a();No(e[0]),Ro(e[0],c)},fg=function(e){return _l(e,!0)},dg=function(e){var t=Ar(e);0===t.length&&Bo(e)},mg=function(e,t){return{grid:e,cursor:t}},gg=function(e){return re(e,(function(e){return re(e.cells,(function(e){var t=e.element;return ur(fg(t),t)}))}))},pg=function(e,t,n){var r,o,i=Gr(e).rows;return E.from(null===(o=null===(r=i[t])||void 0===r?void 0:r.cells[n])||void 0===o?void 0:o.element).filter(fg).orThunk((function(){return gg(i)}))},hg=function(e,t,n){var r=pg(e,t,n);return mg(e,r)},vg=function(e){var t=function(e,t){var n=B(e,(function(e){return e.row===t.row}));return n?e:e.concat([t])};return U(e,t,[]).sort((function(e,t){return e.row-t.row}))},yg=function(e,t,n,r){var o=t[0].row,i=vg(t),a=V(i,(function(e,t){var i=Sm(e.grid,o,t.row+e.delta,n,r.getOrInit);return{grid:i,delta:e.delta+1}}),{grid:e,delta:0}).grid;return hg(a,o,t[0].column)},bg=function(e,t,n,r){var o=vg(t),i=o[o.length-1],a=i.row+i.rowspan,c=V(o,(function(e,t){return Sm(e,a,t.row,n,r.getOrInit)}),e);return hg(c,a,t[0].column)},wg=function(e,t,n,r){var o=t.details,i=$m(o),a=i[0].column,c=V(i,(function(e,t){var o=Om(e.grid,a,t.column+e.delta,n,r.getOrInit);return{grid:o,delta:e.delta+1}}),{grid:e,delta:0}).grid;return hg(c,o[0].row,a)},kg=function(e,t,n,r){var o=t.details,i=o[o.length-1],a=i.column+i.colspan,c=$m(o),u=V(c,(function(e,t){return Om(e,a,t.column,n,r.getOrInit)}),e);return hg(u,o[0].row,a)},_g=function(e,t,n,r){var o=$m(t),i=L(o,(function(e){return e.column})),a=Um(e,i,!0,n,r.replaceOrInit);return hg(a,t[0].row,t[0].column)},xg=function(e,t,n,r){var o=Wm(e,t,n,r.replaceOrInit);return hg(o,t[0].row,t[0].column)},zg=function(e,t,n,r){var o=$m(t),i=L(o,(function(e){return e.column})),a=Um(e,i,!1,n,r.replaceOrInit);return hg(a,t[0].row,t[0].column)},Cg=function(e,t,n,r){var o=Wm(e,t,n,r.replaceOrInit);return hg(o,t[0].row,t[0].column)},Sg=function(e,t){return function(n,r,o,i,a){var c=vg(r),u=L(c,(function(e){return e.row})),s=qm(n,u,e,t,o,i.replaceOrInit,a);return hg(s,r[0].row,r[0].column)}},Tg=Sg("thead",!0),Og=Sg("tbody",!1),Eg=Sg("tfoot",!1),Ag=function(e,t,n,r){var o=$m(t.details),i=Em(e,L(o,(function(e){return e.column}))),a=i.length>0?i[0].cells.length-1:0;return hg(i,o[0].row,Math.min(o[0].column,a))},Dg=function(e,t,n,r){var o=vg(t),i=Am(e,o[0].row,o[o.length-1].row),a=i.length>0?i.length-1:0;return hg(i,Math.min(t[0].row,a),t[0].column)},Mg=function(e,t,n,r){var o=t.cells;lg(o);var i=tm(e,t.bounds,n,r.merge(o));return mg(i,E.from(o[0]))},Rg=function(e,t,n,r){var o=function(e,t){return nm(e,t,n,r.unmerge(t))},i=V(t,o,e);return mg(i,E.from(t[0]))},Ng=function(e,t,n,r){var o=function(e,t){var n=so.fromTable(e);return Hd(n,t,!0)},i=o(t.clipboard,t.generators),a=Wt(t.row,t.column),c=_m(a,e,i,t.generators,n);return c.fold((function(){return mg(e,E.some(t.element))}),(function(e){return hg(e,t.row,t.column)}))},Bg=function(e,t,n){var r=Ir(e,n.section),o=so.generate(r);return Hd(o,t,!0)},Pg=function(e,t,n,r){var o=Gr(e).rows,i=t.cells[0].column,a=o[t.cells[0].row],c=Bg(t.clipboard,t.generators,a),u=xm(i,e,c,t.generators,n);return hg(u,t.cells[0].row,t.cells[0].column)},Lg=function(e,t,n,r){var o=Gr(e).rows,i=t.cells[t.cells.length-1].column+t.cells[t.cells.length-1].colspan,a=o[t.cells[0].row],c=Bg(t.clipboard,t.generators,a),u=xm(i,e,c,t.generators,n);return hg(u,t.cells[0].row,t.cells[0].column)},Ig=function(e,t,n,r){var o=Gr(e).rows,i=t.cells[0].row,a=o[i],c=Bg(t.clipboard,t.generators,a),u=zm(i,e,c,t.generators,n);return hg(u,t.cells[0].row,t.cells[0].column)},Hg=function(e,t,n,r){var o=Gr(e).rows,i=t.cells[t.cells.length-1].row+t.cells[t.cells.length-1].rowspan,a=o[t.cells[0].row],c=Bg(t.clipboard,t.generators,a),u=zm(i,e,c,t.generators,n);return hg(u,t.cells[0].row,t.cells[0].column)},Fg=function(e,t){var n=so.fromTable(e),r=Xd(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].column,o=t.column+t.colspan,i=G(L(n.all,(function(e){return j(e.cells,(function(e){return e.column>=r&&e.column<o}))})));return yd(i)})).getOr("")},jg=function(e,t){var n=so.fromTable(e),r=Xd(n,t);return r.bind(yd).getOr("")},Vg=function(e,t){var n=so.fromTable(e),r=Xd(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].row,o=t.row+t.rowspan,i=n.all.slice(r,o);return bd(i)})).getOr("")},Ug=function(e,t,n,r){return qu(e,t,n,r.sizing)},qg=function(e,t,n,r){return Uu(e,t,n,r.sizing,r.resize)},Wg=function(e,t){return B(t,(function(e){return 0===e.column&&e.isLocked}))},$g=function(e,t){return B(t,(function(t){return t.column+t.colspan>=e.grid.columns&&t.isLocked}))},Gg=function(e,t){var n=ji(e),r=$m(t);return U(r,(function(e,t){var r=n[t.column],o=r.map(Ii).getOr(0);return e+o}),0)},Kg=function(e){return function(t,n){return Xd(t,n).filter((function(n){var r=e?Wg:$g;return!r(t,n)})).map((function(e){return{details:e,pixelDelta:Gg(t,e)}}))}},Xg=function(e,t){return Yd(e,t).map((function(t){return{details:t,pixelDelta:-Gg(e,t)}}))},Yg=function(e){return function(t,n){return $d(t,n).filter((function(n){var r=e?Wg:$g;return!r(t,n.cells)}))}},Jg=tg.transform("th"),Zg=tg.transform("td"),Qg=qd(yg,Xd,g,g,tg.modification),ep=qd(bg,Xd,g,g,tg.modification),tp=qd(wg,Kg(!0),qg,g,tg.modification),np=qd(kg,Kg(!1),qg,g,tg.modification),rp=qd(Ag,Xg,qg,dg,tg.modification),op=qd(Dg,Xd,g,dg,tg.modification),ip=qd(_g,Yd,g,g,Jg),ap=qd(zg,Yd,g,g,Zg),cp=qd(Tg,Yd,g,g,Jg),up=qd(Og,Yd,g,g,Zg),sp=qd(Eg,Yd,g,g,Zg),lp=qd(xg,Yd,g,g,Jg),fp=qd(Cg,Yd,g,g,Zg),dp=qd(Mg,Qd,Ug,g,tg.merging),mp=qd(Rg,em,Ug,g,tg.merging),gp=qd(Ng,Wd,Ug,g,tg.modification),pp=qd(Pg,Yg(!0),g,g,tg.modification),hp=qd(Lg,Yg(!1),g,g,tg.modification),vp=qd(Ig,$d,g,g,tg.modification),yp=qd(Hg,$d,g,g,tg.modification),bp=Fg,wp=jg,kp=Vg,_p=function(e,t,n){var r=function(e){return"table"===nn(Wc(e))},o=function(t){return!1===r(e)||zs(t).rows>1},i=function(t){return!1===r(e)||zs(t).columns>1},a=jf(e),c=Ff(e)?g:md,u=function(t){switch(Lf(e)){case"section":return Od.section();case"sectionCells":return Od.sectionCells();case"cells":return Od.cells();default:return Od.getTableSectionType(t,"section")}},s=function(n,r){return r.cursor.fold((function(){var r=Ar(n);return te(r).filter(Dn).map((function(r){t.clear(n);var o=e.dom.createRng();return o.selectNode(r.dom),e.selection.setRng(o),Yn(r,"data-mce-selected","1"),o}))}),(function(r){var o=dd(r),i=e.dom.createRng();return i.setStart(o.element.dom,o.offset),i.setEnd(o.element.dom,o.offset),e.selection.setRng(i),t.clear(n),E.some(i)}))},l=function(t,n,r,o,i){return function(c,l,f){void 0===f&&(f=!1),Jc(c);var d=o(),m=vt.fromDom(e.getDoc()),g=Fc(r,m,a),p={sizing:Wf(e,c),resize:Ff(e)?Yu():Ju(),section:u(c)};return n(c)?t(d,c,l,g,p).bind((function(t){I(t.newRows,(function(t){Jl(e,t.dom)})),I(t.newCells,(function(t){Zl(e,t.dom)}));var n=s(c,t);return Dn(c)&&(Jc(c),f||rf(e,c.dom,i)),n.map((function(e){return{rng:e,effect:i}}))})):E.none()}},f=l(op,o,g,n,af),d=l(rp,i,g,n,af),m=l(Qg,z,g,n,af),p=l(ep,z,g,n,af),h=l(tp,z,c,n,af),v=l(np,z,c,n,af),y=l(dp,z,g,n,af),b=l(mp,z,g,n,af),w=l(pp,z,g,n,af),k=l(hp,z,g,n,af),_=l(vp,z,g,n,af),x=l(yp,z,g,n,af),C=l(gp,z,g,n,cf),S=l(lp,z,g,n,af),T=l(fp,z,g,n,af),O=l(ip,z,g,n,af),A=l(ap,z,g,n,af),D=l(cp,z,g,n,af),M=l(up,z,g,n,af),R=l(sp,z,g,n,af),N=wp,B=bp,P=kp;return{deleteRow:f,deleteColumn:d,insertRowsBefore:m,insertRowsAfter:p,insertColumnsBefore:h,insertColumnsAfter:v,mergeCells:y,unmergeCells:b,pasteColsBefore:w,pasteColsAfter:k,pasteRowsBefore:_,pasteRowsAfter:x,pasteCells:C,makeCellsHeader:S,unmakeCellsHeader:T,makeColumnsHeader:O,unmakeColumnsHeader:A,makeRowsHeader:D,makeRowsBody:M,makeRowsFooter:R,getTableRowType:P,getTableCellType:N,getTableColType:B}},xp={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},zp=function(){return vt.fromTag("th")},Cp=function(){return vt.fromTag("td")},Sp=function(){return vt.fromTag("col")},Tp=function(e,t,n,r){for(var o=vt.fromTag("tr"),i=0;i<e;i++){var a=r<t||i<n?zp():Cp();i<n&&Yn(a,"scope","row"),r<t&&Yn(a,"scope","col"),Oo(a,vt.fromTag("br")),Oo(o,a)}return o},Op=function(e){var t=vt.fromTag("colgroup");return P(e,(function(){return Oo(t,Sp())})),t},Ep=function(e,t,n,r){return P(e,(function(e){return Tp(t,n,r,e)}))},Ap=function(e,t,n,r,o,i){void 0===i&&(i=xp);var a=vt.fromTag("table"),c="cells"!==o;mr(a,i.styles),Jn(a,i.attributes),i.colGroups&&Oo(a,Op(t));var u=Math.min(e,n);if(c&&n>0){var s=vt.fromTag("thead");Oo(a,s);var l="sectionCells"===o?u:0,f=Ep(n,t,l,r);Ro(s,f)}var d=vt.fromTag("tbody");Oo(a,d);var m=c?e-u:e,g=c?0:n,p=Ep(m,t,g,r);return Ro(d,p),a},Dp=function(e){return e.dom.innerHTML},Mp=function(e){var t=vt.fromTag("div"),n=vt.fromDom(e.dom.cloneNode(!0));return Oo(t,n),Dp(t)},Rp=function(e,t){e.selection.select(t.dom,!0),e.selection.collapse(!0)},Np=function(e,t){Gn(t,"td,th").each(w(Rp,e))},Bp=function(e,t){I(Hn(t,"tr"),(function(t){Jl(e,t.dom),I(Hn(t,"th,td"),(function(t){Zl(e,t.dom)}))}))},Pp=function(e){return o(e)&&-1!==e.indexOf("%")},Lp=function(e,t,n,r,o){var i=wf(e),a={styles:i,attributes:bf(e),colGroups:Pf(e)};return e.undoManager.ignore((function(){var i=Ap(n,t,o,r,Lf(e),a);Yn(i,"data-mce-id","__mce");var c=Mp(i);e.insertContent(c),e.addVisual()})),Gn(Wc(e),'table[data-mce-id="__mce"]').map((function(t){return Rf(e)?Jf(t):Nf(e)?Zf(t):(Mf(e)||Pp(i.width))&&Yf(t),Jc(t),tr(t,"data-mce-id"),Bp(e,t),Np(e,t),t.dom})).getOr(null)},Ip=function(e,t,n,r,o){void 0===r&&(r={});var i=function(e){return m(e)&&e>0};if(i(t)&&i(n)){var a=r.headerRows||0,c=r.headerColumns||0;return Lp(e,n,t,c,a)}return console.error(o),null},Hp=function(e){return function(){return e().fold((function(){return[]}),(function(e){return L(e,(function(e){return e.dom}))}))}},Fp=function(e){return function(t){var n=t.length>0?E.some(Uc(t)):E.none();e(n)}},jp=function(e){return function(t,n,r){void 0===r&&(r={});var o=Ip(e,n,t,r,"Invalid values for insertTable - rows and columns values are required to insert a table.");return e.undoManager.add(),o}},Vp=function(e,t,n,r){return{insertTable:jp(e),setClipboardRows:Fp(t.setRows),getClipboardRows:Hp(t.getRows),setClipboardCols:Fp(t.setColumns),getClipboardCols:Hp(t.getColumns),resizeHandler:n,selectionTargets:r}},Up=function(e,t,n){var r=br(e,t,1);1===n||r<=1?tr(e,t):Yn(e,t,Math.min(n,r))},qp=function(e,t,n){if(so.hasColumns(e)){var r=j(so.justColumns(e),(function(e){return e.column>=t&&e.column<n})),o=L(r,(function(e){var r=ki(e.element);return Up(r,"span",n-t),r})),i=vt.fromTag("colgroup");return Ro(i,o),[i]}return[]},Wp=function(e,t,n){return L(e.all,(function(e){var r=j(e.cells,(function(e){return e.column>=t&&e.column<n})),o=L(r,(function(e){var r=ki(e.element);return Up(r,"colspan",n-t),r})),i=vt.fromTag("tr");return Ro(i,o),i}))},$p=function(e,t){var n=so.fromTable(e),r=Yd(n,t);return r.map((function(e){var t=e[e.length-1],r=e[0].column,o=t.column+t.colspan,i=qp(n,r,o),a=Wp(n,r,o);return ie(ie([],i,!0),a,!0)}))},Gp=function(e,t,n){var r=so.fromTable(e),o=Xd(r,t);return o.bind((function(e){var t=Hd(r,n,!1),o=Gr(t).rows,i=o.slice(e[0].row,e[e.length-1].row+e[e.length-1].rowspan),a=K(i,(function(e){var t=j(e.cells,(function(e){return!e.isLocked}));return t.length>0?[oe(oe({},e),{cells:t})]:[]})),c=jd(a);return ur(c.length>0,c)})).map((function(e){return Rd(e)}))},Kp=tinymce.util.Tools.resolve("tinymce.util.Tools"),Xp=function(e,t,n){var r,o=e.select("td,th",t),i=function(t,r){for(var o=0;o<r.length;o++){var i=e.getStyle(r[o],n);if("undefined"===typeof t&&(t=i),t!==i)return""}return t};return i(r,o)},Yp=function(e,t,n){n&&e.formatter.apply("align"+n,{},t)},Jp=function(e,t,n){n&&e.formatter.apply("valign"+n,{},t)},Zp=function(e,t){Kp.each("left center right".split(" "),(function(n){e.formatter.remove("align"+n,{},t)}))},Qp=function(e,t){Kp.each("top middle bottom".split(" "),(function(n){e.formatter.remove("valign"+n,{},t)}))},eh=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],th=function(e){return{value:e}},nh=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,rh=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,oh=function(e){return nh.test(e)||rh.test(e)},ih=function(e){return we(e,"#").toUpperCase()},ah=function(e){return oh(e)?E.some({value:ih(e)}):E.none()},ch=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},uh=function(e){var t=ch(e.red)+ch(e.green)+ch(e.blue);return th(t)},sh=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,lh=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,fh=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},dh=function(e,t,n,r){var o=parseInt(e,10),i=parseInt(t,10),a=parseInt(n,10),c=parseFloat(r);return fh(o,i,a,c)},mh=function(e){if("transparent"===e)return E.some(fh(0,0,0,0));var t=sh.exec(e);if(null!==t)return E.some(dh(t[1],t[2],t[3],"1"));var n=lh.exec(e);return null!==n?E.some(dh(n[1],n[2],n[3],n[4])):E.none()},gh=function(e){return ah(e).orThunk((function(){return mh(e).map(uh)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,o=r[0],i=r[1],a=r[2],c=r[3];return uh(fh(o,i,a,c))}))},ph=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},hh=function(e){var t=ph(E.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(E.none())},o=function(){return t.get().isSome()},i=function(){return t.get()},a=function(e){n(),t.set(E.some(e))};return{clear:r,isSet:o,get:i,set:a}},vh=function(){return hh((function(e){return e.unbind()}))},yh=function(){var e=hh(g),t=function(t){return e.get().each(t)};return oe(oe({},e),{on:t})},bh=function(e,t,n,r){return function(o){var i=vh(),a=Te(r),c=function(){var c=xu(t),u=function(t){return e.formatter.match(n,{value:r},t.dom,a)};a?(o.setActive(!B(c,u)),i.set(e.formatter.formatChanged(n,(function(e){return o.setActive(!e)}),!0))):(o.setActive(X(c,u)),i.set(e.formatter.formatChanged(n,o.setActive,!1,{value:r})))};return e.initialized?c():e.on("init",c),i.clear}},wh=function(e){return Ft(e,"menu")},kh=function(e){return L(e,(function(e){var t=e.text||e.title;return wh(e)?{text:t,items:kh(e.menu)}:{text:t,value:e.value}}))},_h=function(e,t,n,r,o){return L(n,(function(n){var i=n.text||n.title;return wh(n)?{type:"nestedmenuitem",text:i,getSubmenuItems:function(){return _h(e,t,n.menu,r,o)}}:{text:i,type:"togglemenuitem",onAction:function(){return o(n.value)},onSetup:bh(e,t,r,n.value)}}))},xh=function(e,t){return function(n){var r;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[t]=n,r))}},zh=function(e){return K(e,(function(e){return wh(e)?[oe(oe({},e),{menu:zh(e.menu)})]:Se(e.value)?[e]:[]}))},Ch=function(e,t,n,r,o){return function(i){return i(_h(e,t,n,r,o))}},Sh=function(e,t,n){var r=L(t,(function(e){return{text:e.title,value:"#"+gh(e.value).value,type:"choiceitem"}}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:r.length>0?r:void 0,allowCustomColors:!1},onAction:function(t){var r,o="remove"===t.value?"":t.value;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[n]=o,r))}}]},Th=function(e){return function(){var t=e.queryCommandValue("mceTableRowType"),n="header"===t?"body":"header";e.execCommand("mceTableRowType",!1,{type:n})}},Oh=function(e){return function(){var t=e.queryCommandValue("mceTableColType"),n="th"===t?"td":"th";e.execCommand("mceTableColType",!1,{type:n})}},Eh=function(e){var t=kh(Ef(e));return t.length>0?E.some({name:"class",type:"listbox",label:"Class",items:t}):E.none()},Ah=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:eh}],Dh=function(e){return Ah.concat(Eh(e).toArray())},Mh=function(e,t){var n=[{text:"Select...",value:""}],r=[{name:"borderstyle",type:"listbox",label:"Border style",items:n.concat(kh(yf(e)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}],o={name:"borderwidth",type:"input",label:"Border width"},i="cell"===t?[o].concat(r):r;return{title:"Advanced",name:"advanced",items:i}},Rh=function(e){return function(t,n){var r=t.dom,o=function(t,o){e&&!o||r.setAttrib(n,t,o)},i=function(t,o){e&&!o||r.setStyle(n,t,o)},a=function(r,o){e&&!o||(""===o?t.formatter.remove(r,{value:null},n,!0):t.formatter.apply(r,{value:o},n))};return{setAttrib:o,setStyle:i,setFormat:a}}},Nh={normal:Rh(!1),ifTruthy:Rh(!0)},Bh=function(e){return function(t){return _e(t,"rgb")?e.toHex(t):t}},Ph=function(e,t){var n=vt.fromDom(t);return{borderwidth:hr(n,"border-width").getOr(""),borderstyle:hr(n,"border-style").getOr(""),bordercolor:hr(n,"border-color").map(Bh(e)).getOr(""),backgroundcolor:hr(n,"background-color").map(Bh(e)).getOr("")}},Lh=function(e){var t=e[0],n=e.slice(1);return I(n,(function(e){I(Tt(t),(function(n){Et(e,(function(e,r){var o=t[n];""!==o&&n===r&&o!==e&&(t[n]="")}))}))})),t},Ih=function(e,t,n,r){return W(e,(function(e){return!s(n.formatter.matchNode(r,t+e))})).getOr("")},Hh=w(Ih,["left","center","right"],"align"),Fh=w(Ih,["top","middle","bottom"],"valign"),jh=function(e,t){var n=wf(e),r=bf(e),o=function(e){return{borderstyle:It(n,"border-style").getOr(""),bordercolor:Bh(e)(It(n,"border-color").getOr("")),backgroundcolor:Bh(e)(It(n,"background-color").getOr(""))}},i={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},a=function(){var t=n["border-width"];return Of(e)&&t?{border:t}:It(r,"border").fold((function(){return{}}),(function(e){return{border:e}}))},c=t?o(e.dom):{},u=function(){var e=It(n,"border-spacing").or(It(r,"cellspacing")).fold((function(){return{}}),(function(e){return{cellspacing:e}})),t=It(n,"border-padding").or(It(r,"cellpadding")).fold((function(){return{}}),(function(e){return{cellpadding:e}}));return oe(oe({},e),t)},s=oe(oe(oe(oe(oe(oe({},i),n),r),c),a()),u());return s},Vh=function(e){return Mr(vt.fromDom(e)).map((function(t){var n={selection:Uc(e.cells)};return kp(t,n)})).getOr("")},Uh=function(e,t,n){var r=function(t,n){var r=hr(vt.fromDom(n),"border-width");return Of(e)&&r.isSome()?r.getOr(""):t.getAttrib(n,"border")||Xp(e.dom,n,"border-width")||Xp(e.dom,n,"border")},o=e.dom,i=Of(e)?o.getStyle(t,"border-spacing")||o.getAttrib(t,"cellspacing"):o.getAttrib(t,"cellspacing")||o.getStyle(t,"border-spacing"),a=Of(e)?Xp(o,t,"padding")||o.getAttrib(t,"cellpadding"):o.getAttrib(t,"cellpadding")||Xp(o,t,"padding");return oe({width:o.getStyle(t,"width")||o.getAttrib(t,"width"),height:o.getStyle(t,"height")||o.getAttrib(t,"height"),cellspacing:i,cellpadding:a,border:r(o,t),caption:!!o.select("caption",t)[0],class:o.getAttrib(t,"class",""),align:Hh(e,t)},n?Ph(o,t):{})},qh=function(e,t,n){var r=e.dom;return oe({height:r.getStyle(t,"height")||r.getAttrib(t,"height"),class:r.getAttrib(t,"class",""),type:Vh(t),align:Hh(e,t)},n?Ph(r,t):{})},Wh=function(e,t,n,r){var o=e.dom,i=r.getOr(t),a=function(e,t){return o.getStyle(e,t)||o.getAttrib(e,t)};return oe({width:a(i,"width"),height:a(t,"height"),scope:o.getAttrib(t,"scope"),celltype:qc(t),class:o.getAttrib(t,"class",""),halign:Hh(e,t),valign:Fh(e,t)},n?Ph(o,t):{})},$h=function(e,t){var n=so.fromTable(e),r=so.justCells(n),o=j(r,(function(e){return B(t,(function(t){return _t(e.element,t)}))}));return L(o,(function(e){return{element:e.element.dom,column:so.getColumnAt(n,e.column).map((function(e){return e.element.dom}))}}))},Gh=function(e,t,n){e.setAttrib("scope",n.scope),e.setAttrib("class",n.class),e.setStyle("height",Yc(n.height)),t.setStyle("width",Yc(n.width))},Kh=function(e,t){e.setFormat("tablecellbackgroundcolor",t.backgroundcolor),e.setFormat("tablecellbordercolor",t.bordercolor),e.setFormat("tablecellborderstyle",t.borderstyle),e.setFormat("tablecellborderwidth",Yc(t.borderwidth))},Xh=function(e,t,n){var r=1===t.length;I(t,(function(t){var o=t.element,i=r?Nh.normal(e,o):Nh.ifTruthy(e,o),a=t.column.map((function(t){return r?Nh.normal(e,t):Nh.ifTruthy(e,t)})).getOr(i);Gh(i,a,n),xf(e)&&Kh(i,n),r&&(Zp(e,o),Qp(e,o)),n.halign&&Yp(e,o,n.halign),n.valign&&Jp(e,o,n.valign)}))},Yh=function(e,t){e.execCommand("mceTableCellType",!1,{type:t.celltype,no_events:!0})},Jh=function(e,t,n,r){var o=Nt(r,(function(e,t){return n[t]!==e}));Lt(o)>0&&t.length>=1&&Mr(t[0]).each((function(n){var i=$h(n,t),a=Lt(Nt(o,(function(e,t){return"scope"!==t&&"celltype"!==t})))>0,c=Ht(o,"celltype");(a||Ht(o,"scope"))&&Xh(e,i,r),c&&Yh(e,r),rf(e,n.dom,{structure:c,style:a})}))},Zh=function(e,t,n,r){var o=r.getData();r.close(),e.undoManager.transact((function(){Jh(e,t,n,o),e.focus()}))},Qh=function(e,t){var n=Mr(t[0]).map((function(n){return L($h(n,t),(function(t){return Wh(e,t.element,xf(e),t.column)}))}));return Lh(n.getOrDie())},ev=function(e,t){var n=xu(t);if(0!==n.length){var r=Qh(e,n),o={type:"tabpanel",tabs:[{title:"General",name:"general",items:Dh(e)},Mh(e,"cell")]},i={type:"panel",items:[{type:"grid",columns:2,items:Dh(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:xf(e)?o:i,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:w(Zh,e,n,r)})}},tv=function(e){var t=kh(Af(e));return t.length>0?E.some({name:"class",type:"listbox",label:"Class",items:t}):E.none()},nv=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],rv=function(e){return nv.concat(tv(e).toArray())},ov=function(e,t){e.setAttrib("class",t.class),e.setStyle("height",Yc(t.height))},iv=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle)},av=function(e,t,n,r){var o=1===t.length;I(t,(function(t){var i=o?Nh.normal(e,t):Nh.ifTruthy(e,t);ov(i,n),zf(e)&&iv(i,n),n.align!==r.align&&(Zp(e,t),Yp(e,t,n.align))}))},cv=function(e,t){e.execCommand("mceTableRowType",!1,{type:t.type,no_events:!0})},uv=function(e,t,n,r){var o=Nt(r,(function(e,t){return n[t]!==e}));if(Lt(o)>0){var i=Ht(o,"type"),a=!i||Lt(o)>1;a&&av(e,t,r,n),i&&cv(e,r),Mr(vt.fromDom(t[0])).each((function(t){return rf(e,t.dom,{structure:i,style:a})}))}},sv=function(e,t,n,r){var o=r.getData();r.close(),e.undoManager.transact((function(){uv(e,t,n,o),e.focus()}))},lv=function(e){var t=zu(tu(e),gu.selected);if(0!==t.length){var n=L(t,(function(t){return qh(e,t.dom,zf(e))})),r=Lh(n),o={type:"tabpanel",tabs:[{title:"General",name:"general",items:rv(e)},Mh(e,"row")]},i={type:"panel",items:[{type:"grid",columns:2,items:rv(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:zf(e)?o:i,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:w(sv,e,L(t,(function(e){return e.dom})),r)})}},fv=function(e,t,n){var r=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],o=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],i=Sf(e)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],a=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],c=t.length>0?[{type:"listbox",name:"class",label:"Class",items:t}]:[];return r.concat(o).concat(i).concat(a).concat(c)},dv=function(e,t,n,r){if("TD"===t.tagName||"TH"===t.tagName)o(n)?e.setStyle(t,n,r):e.setStyle(t,n);else if(t.children)for(var i=0;i<t.children.length;i++)dv(e,t.children[i],n,r)},mv=function(e,t,n){var r=e.dom,o={},i={};if(o.class=n.class,i.height=Yc(n.height),r.getAttrib(t,"width")&&!Of(e)?o.width=Xc(n.width):i.width=Yc(n.width),Of(e)?(i["border-width"]=Yc(n.border),i["border-spacing"]=Yc(n.cellspacing)):(o.border=n.border,o.cellpadding=n.cellpadding,o.cellspacing=n.cellspacing),Of(e)&&t.children)for(var a=0;a<t.children.length;a++)dv(r,t.children[a],{"border-width":Yc(n.border),padding:Yc(n.cellpadding)}),Cf(e)&&dv(r,t.children[a],{"border-color":n.bordercolor});Cf(e)&&(i["background-color"]=n.backgroundcolor,i["border-color"]=n.bordercolor,i["border-style"]=n.borderstyle),o.style=r.serializeStyle(oe(oe({},wf(e)),i)),r.setAttribs(t,oe(oe({},bf(e)),o))},gv=function(e,t,n,r){var o=e.dom,i=r.getData(),a=Nt(i,(function(e,t){return n[t]!==e}));r.close(),""===i.class&&delete i.class,e.undoManager.transact((function(){if(!t){var n=parseInt(i.cols,10)||1,r=parseInt(i.rows,10)||1;t=Lp(e,n,r,0,0)}if(Lt(a)>0){mv(e,t,i);var c=o.select("caption",t)[0];(c&&!i.caption||!c&&i.caption)&&e.execCommand("mceTableToggleCaption"),""===i.align?Zp(e,t):Yp(e,t,i.align)}if(e.focus(),e.addVisual(),Lt(a)>0){var u=Ht(a,"caption"),s=!u||Lt(a)>1;rf(e,t,{structure:u,style:s})}}))},pv=function(e,t){var n,r=e.dom,o=jh(e,Cf(e));!1===t?(n=r.getParent(e.selection.getStart(),"table",e.getBody()),n?o=Uh(e,n,Cf(e)):Cf(e)&&(o.borderstyle="",o.bordercolor="",o.backgroundcolor="")):(o.cols="1",o.rows="1",Cf(e)&&(o.borderstyle="",o.bordercolor="",o.backgroundcolor=""));var i=kh(Df(e));i.length>0&&o.class&&(o.class=o.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:fv(e,i,t)},c=function(){return{type:"panel",items:[a]}},u=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},Mh(e,"table")]}},s=Cf(e)?u():c();e.windowManager.open({title:"Table Properties",size:"normal",body:s,onSubmit:w(gv,e,n,o),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:o})},hv=function(e){return ku(tu(e),Kc(e))},vv=function(e){return _u(tu(e),Kc(e))},yv=function(e,t,n,r,a){var c=Kc(e),u=function(){return hv(e).each((function(t){Mr(t,c).filter(k(c)).each((function(t){var n=vt.fromText("");if(So(t,n),Bo(t),e.dom.isEmpty(e.getBody()))e.setContent(""),e.selection.setCursorLocation();else{var r=e.dom.createRng();r.setStart(n.dom,0),r.setEnd(n.dom,0),e.selection.setRng(r),e.nodeChanged()}}))}))},s=function(t){return hv(e).each((function(n){var r=Nf(e)||Rf(e)||Mf(e);r||Mr(n,c).each((function(n){"relative"!==t||ks(n)?"fixed"!==t||_s(n)?"responsive"!==t||xs(n)||Zf(n):Jf(n):Yf(n),Jc(n),rf(e,n.dom,af)}))}))},l=function(e){return Mr(e,c)},f=function(t){return vv(e).bind((function(e){return l(e).map((function(n){return t(n,e)}))}))},d=function(t,n){f((function(t){e.formatter.toggle("tableclass",{value:n},t.dom),rf(e,t.dom,of)}))},m=function(t,n){f((function(t){var o=xu(r),i=X(o,(function(t){return e.formatter.match("tablecellclass",{value:n},t.dom)})),a=i?e.formatter.remove:e.formatter.apply;I(o,(function(e){return a("tablecellclass",{value:n},e.dom)})),rf(e,t.dom,of)}))},p=function(){hv(e).each((function(t){Mr(t,c).each((function(n){$n(n,"caption").fold((function(){var t=vt.fromTag("caption");Oo(t,vt.fromText("Caption")),Eo(n,t,0),e.selection.setCursorLocation(t.dom,0)}),(function(r){fn("caption")(t)&&kt("td",n).each((function(t){return e.selection.setCursorLocation(t.dom,0)})),Bo(r)})),rf(e,n.dom,af)}))}))},h=function(t){e.focus()},v=function(e,t){return void 0===t&&(t=!1),f((function(n,o){var i=hu(r,n,o);e(n,i,t).each(h)}))},y=function(){return f((function(t,n){var o=hu(r,t,n),i=Fc(g,vt.fromDom(e.getDoc()),E.none());return Gp(t,o,i)}))},b=function(){return f((function(e,t){var n=hu(r,e,t);return $p(e,n)}))},_=function(t,n){return n().each((function(n){var o=L(n,(function(e){return ki(e)}));f((function(n,i){var a=jc(vt.fromDom(e.getDoc())),c=yu(r,i,o,a);t(n,c).each(h)}))}))},x=function(e){return function(t,n){return It(n,"type").each((function(t){v(e(t),n.no_events)}))}};Et({mceTableSplitCells:function(){return v(t.unmergeCells)},mceTableMergeCells:function(){return v(t.mergeCells)},mceTableInsertRowBefore:function(){return v(t.insertRowsBefore)},mceTableInsertRowAfter:function(){return v(t.insertRowsAfter)},mceTableInsertColBefore:function(){return v(t.insertColumnsBefore)},mceTableInsertColAfter:function(){return v(t.insertColumnsAfter)},mceTableDeleteCol:function(){return v(t.deleteColumn)},mceTableDeleteRow:function(){return v(t.deleteRow)},mceTableCutCol:function(){return b().each((function(e){a.setColumns(e),v(t.deleteColumn)}))},mceTableCutRow:function(){return y().each((function(e){a.setRows(e),v(t.deleteRow)}))},mceTableCopyCol:function(){return b().each((function(e){return a.setColumns(e)}))},mceTableCopyRow:function(){return y().each((function(e){return a.setRows(e)}))},mceTablePasteColBefore:function(){return _(t.pasteColsBefore,a.getColumns)},mceTablePasteColAfter:function(){return _(t.pasteColsAfter,a.getColumns)},mceTablePasteRowBefore:function(){return _(t.pasteRowsBefore,a.getRows)},mceTablePasteRowAfter:function(){return _(t.pasteRowsAfter,a.getRows)},mceTableDelete:u,mceTableCellToggleClass:m,mceTableToggleClass:d,mceTableToggleCaption:p,mceTableSizingMode:function(e,t){return s(t)},mceTableCellType:x((function(e){return"th"===e?t.makeCellsHeader:t.unmakeCellsHeader})),mceTableColType:x((function(e){return"th"===e?t.makeColumnsHeader:t.unmakeColumnsHeader})),mceTableRowType:x((function(e){switch(e){case"header":return t.makeRowsHeader;case"footer":return t.makeRowsFooter;default:return t.makeRowsBody}}))},(function(t,n){return e.addCommand(n,t)})),Et({mceTableProps:w(pv,e,!1),mceTableRowProps:w(lv,e),mceTableCellProps:w(ev,e,r)},(function(t,n){return e.addCommand(n,(function(){return t()}))})),e.addCommand("mceInsertTable",(function(t,n){i(n)&&Tt(n).length>0?Ip(e,n.rows,n.columns,n.options,"Invalid values for mceInsertTable - rows and columns values are required to insert a table."):pv(e,!0)})),e.addCommand("mceTableApplyCellStyle",(function(t,n){var a=function(e){return"tablecell"+e.toLowerCase().replace("-","")};if(i(n)){var c=xu(r);if(0!==c.length){var u=Nt(n,(function(t,n){return e.formatter.has(a(n))&&o(t)}));jt(u)||(Et(u,(function(t,n){I(c,(function(r){Nh.normal(e,r.dom).setFormat(a(n),t)}))})),l(c[0]).each((function(t){return rf(e,t.dom,of)})))}}}))},bv=function(e,t,n){var r=Kc(e),o=function(t){return _u(tu(e)).bind((function(e){return Mr(e,r).map((function(r){var o=hu(n,r,e);return t(r,o)}))})).getOr("")};Et({mceTableRowType:function(){return o(t.getTableRowType)},mceTableCellType:function(){return o(t.getTableCellType)},mceTableColType:function(){return o(t.getTableColType)}},(function(t,n){return e.addQueryValueHandler(n,t)}))},wv=function(){var e=yh(),t=yh();return{getRows:e.get,setRows:function(n){n.fold(e.clear,e.set),t.clear()},clearRows:e.clear,getColumns:t.get,setColumns:function(n){n.fold(t.clear,t.set),e.clear()},clearColumns:t.clear}},kv={remove_similar:!0,inherit:!1},_v=oe({selector:"td,th"},kv),xv={tablecellbackgroundcolor:oe({styles:{backgroundColor:"%value"}},_v),tablecellverticalalign:oe({styles:{"vertical-align":"%value"}},_v),tablecellbordercolor:oe({styles:{borderColor:"%value"}},_v),tablecellclass:oe({classes:["%value"]},_v),tableclass:oe({selector:"table",classes:["%value"]},kv),tablecellborderstyle:oe({styles:{borderStyle:"%value"}},_v),tablecellborderwidth:oe({styles:{borderWidth:"%value"}},_v)},zv=function(e){e.formatter.register(xv)},Cv=fi.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),Sv=function(e){return void 0===e&&(e=void 0),Cv.none(e)},Tv=oe(oe({},Cv),{none:Sv}),Ov=function(e,t,n,r,o){void 0===o&&(o=z);var i=1===r;if(!i&&n<=0)return Tv.first(e[0]);if(i&&n>=e.length-1)return Tv.last(e[e.length-1]);var a=n+r,c=e[a];return o(c)?Tv.middle(t,c):Ov(e,t,a,r,o)},Ev=function(e,t){return Mr(e,t).bind((function(t){var n=Ar(t),r=$(n,(function(t){return _t(e,t)}));return r.map((function(e){return{index:e,all:n}}))}))},Av=function(e,t,n){var r=Ev(e,n);return r.fold((function(){return Tv.none(e)}),(function(n){return Ov(n.all,e,n.index,1,t)}))},Dv=function(e,t,n){var r=Ev(e,n);return r.fold((function(){return Tv.none()}),(function(n){return Ov(n.all,e,n.index,-1,t)}))},Mv=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},Rv={create:Mv},Nv=fi.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Bv=function(e,t,n,r){return e.fold(t,n,r)},Pv=function(e){return e.fold(y,y,y)},Lv=Nv.before,Iv=Nv.on,Hv=Nv.after,Fv={before:Lv,on:Iv,after:Hv,cata:Bv,getStart:Pv},jv=fi.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Vv=function(e){return jv.exact(e.start,e.soffset,e.finish,e.foffset)},Uv=function(e){return e.match({domRange:function(e){return vt.fromDom(e.startContainer)},relative:function(e,t){return Fv.getStart(e)},exact:function(e,t,n,r){return e}})},qv=jv.domRange,Wv=jv.relative,$v=jv.exact,Gv=function(e){var t=Uv(e);return gn(t)},Kv=Rv.create,Xv={domRange:qv,relative:Wv,exact:$v,exactFromRange:Vv,getWin:Gv,range:Kv},Yv=function(e,t){var n=e.document.createRange();return n.selectNode(t.dom),n},Jv=function(e,t){var n=e.document.createRange();return Zv(n,t),n},Zv=function(e,t){return e.selectNodeContents(t.dom)},Qv=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},ey=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},ty=function(e,t,n){var r=e.document.createRange();return Qv(r,t),ey(r,n),r},ny=function(e,t,n,r,o){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(r.dom,o),i},ry=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},oy=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?E.some(n).map(ry):E.none()},iy=fi.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),ay=function(e,t,n){return t(vt.fromDom(n.startContainer),n.startOffset,vt.fromDom(n.endContainer),n.endOffset)},cy=function(e,t){return t.match({domRange:function(e){return{ltr:v(e),rtl:E.none}},relative:function(t,n){return{ltr:ae((function(){return ty(e,t,n)})),rtl:ae((function(){return E.some(ty(e,n,t))}))}},exact:function(t,n,r,o){return{ltr:ae((function(){return ny(e,t,n,r,o)})),rtl:ae((function(){return E.some(ny(e,r,o,t,n))}))}}})},uy=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return iy.rtl(vt.fromDom(e.endContainer),e.endOffset,vt.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return ay(e,iy.ltr,n)}))}return ay(e,iy.ltr,n)},sy=function(e,t){var n=cy(e,t);return uy(e,n)},ly=function(e,t){var n=sy(e,t);return n.match({ltr:function(t,n,r,o){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(r.dom,o),i},rtl:function(t,n,r,o){var i=e.document.createRange();return i.setStart(r.dom,o),i.setEnd(t.dom,n),i}})};iy.ltr,iy.rtl;var fy=function(e,t,n,r,o){if(0===o)return 0;if(t===r)return o-1;for(var i=r,a=1;a<o;a++){var c=e(a),u=Math.abs(t-c.left);if(n<=c.bottom){if(n<c.top||u>i)return a-1;i=u}}return 0},dy=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},my=function(e,t,n,r,o){var i=function(n){var r=e.dom.createRange();return r.setStart(t.dom,n),r.collapse(!0),r},a=function(e){var t=i(e);return t.getBoundingClientRect()},c=Ho(t).length,u=fy(a,n,r,o.right,c);return i(u)},gy=function(e,t,n,r){var o=e.dom.createRange();o.selectNode(t.dom);var i=o.getClientRects(),a=re(i,(function(e){return dy(e,n,r)?E.some(e):E.none()}));return a.map((function(o){return my(e,t,n,r,o)}))},py=function(e,t,n,r){var o=e.dom.createRange(),i=wn(t);return re(i,(function(t){return o.selectNode(t.dom),dy(o.getBoundingClientRect(),n,r)?hy(e,t,n,r):E.none()}))},hy=function(e,t,n,r){return un(t)?gy(e,t,n,r):py(e,t,n,r)},vy=function(e,t,n,r){var o=e.dom.createRange();o.selectNode(t.dom);var i=o.getBoundingClientRect(),a=Math.max(i.left,Math.min(i.right,n)),c=Math.max(i.top,Math.min(i.bottom,r));return hy(e,t,a,c)},yy=!0,by=!1,wy=function(e,t){return t-e.left<e.right-t?yy:by},ky=function(e,t,n){var r=e.dom.createRange();return r.selectNode(t.dom),r.collapse(n),r},_y=function(e,t,n){var r=e.dom.createRange();r.selectNode(t.dom);var o=r.getBoundingClientRect(),i=wy(o,n),a=i===yy?Oc:Ec;return a(t).map((function(t){return ky(e,t,i)}))},xy=function(e,t,n){var r=t.dom.getBoundingClientRect(),o=wy(r,n);return E.some(ky(e,t,o))},zy=function(e,t,n){var r=0===wn(t).length?xy:_y;return r(e,t,n)},Cy=function(e,t,n){var r,o;return E.from(null===(o=(r=e.dom).caretPositionFromPoint)||void 0===o?void 0:o.call(r,t,n)).bind((function(t){if(null===t.offsetNode)return E.none();var n=e.dom.createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),E.some(n)}))},Sy=function(e,t,n){var r,o;return E.from(null===(o=(r=e.dom).caretRangeFromPoint)||void 0===o?void 0:o.call(r,t,n))},Ty=function(e,t,n,r){var o=e.dom.createRange();o.selectNode(t.dom);var i=o.getBoundingClientRect(),a=Math.max(i.left,Math.min(i.right,n)),c=Math.max(i.top,Math.min(i.bottom,r));return vy(e,t,a,c)},Oy=function(e,t,n){return vt.fromPoint(e,t,n).bind((function(r){var o=function(){return zy(e,r,t)};return 0===wn(r).length?o():Ty(e,r,t,n).orThunk(o)}))},Ey=function(){return document.caretPositionFromPoint?Cy:document.caretRangeFromPoint?Sy:Oy}(),Ay=function(e,t,n){var r=vt.fromDom(e.document);return Ey(r,t,n).map((function(e){return Rv.create(vt.fromDom(e.startContainer),e.startOffset,vt.fromDom(e.endContainer),e.endOffset)}))},Dy=function(e,t){var n=nn(e);return"input"===n?Fv.after(e):N(["br","img"],n)?0===t?Fv.before(e):Fv.after(e):Fv.on(e,t)},My=function(e,t){var n=e.fold(Fv.before,Dy,Fv.after),r=t.fold(Fv.before,Dy,Fv.after);return Xv.relative(n,r)},Ry=function(e,t,n,r){var o=Dy(e,t),i=Dy(n,r);return Xv.relative(o,i)},Ny=function(e){return e.match({domRange:function(e){var t=vt.fromDom(e.startContainer),n=vt.fromDom(e.endContainer);return Ry(t,e.startOffset,n,e.endOffset)},relative:My,exact:Ry})},By=function(e,t,n,r){var o=dn(e),i=o.dom.createRange();return i.setStart(e.dom,t),i.setEnd(n.dom,r),i},Py=function(e,t,n,r){var o=By(e,t,n,r),i=_t(e,n)&&t===r;return o.collapsed&&!i},Ly=function(e){return E.from(e.getSelection())},Iy=function(e,t){Ly(e).each((function(e){e.removeAllRanges(),e.addRange(t)}))},Hy=function(e,t,n,r,o){var i=ny(e,t,n,r,o);Iy(e,i)},Fy=function(e,t,n,r,o,i){t.collapse(n.dom,r),t.extend(o.dom,i)},jy=function(e,t){return sy(e,t).match({ltr:function(t,n,r,o){Hy(e,t,n,r,o)},rtl:function(t,n,r,o){Ly(e).each((function(i){if(i.setBaseAndExtent)i.setBaseAndExtent(t.dom,n,r.dom,o);else if(i.extend)try{Fy(e,i,t,n,r,o)}catch(a){Hy(e,r,o,t,n)}else Hy(e,r,o,t,n)}))}})},Vy=function(e,t,n,r,o){var i=Ry(t,n,r,o);jy(e,i)},Uy=function(e,t,n){var r=My(t,n);jy(e,r)},qy=function(e){var t=Xv.getWin(e).dom,n=function(e,n,r,o){return ny(t,e,n,r,o)},r=Ny(e);return sy(t,r).match({ltr:n,rtl:n})},Wy=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return E.some(Rv.create(vt.fromDom(t.startContainer),t.startOffset,vt.fromDom(n.endContainer),n.endOffset))}return E.none()},$y=function(e){if(null===e.anchorNode||null===e.focusNode)return Wy(e);var t=vt.fromDom(e.anchorNode),n=vt.fromDom(e.focusNode);return Py(t,e.anchorOffset,n,e.focusOffset)?E.some(Rv.create(t,e.anchorOffset,n,e.focusOffset)):Wy(e)},Gy=function(e,t,n){void 0===n&&(n=!0);var r=n?Jv:Yv,o=r(e,t);Iy(e,o)},Ky=function(e){return Ly(e).filter((function(e){return e.rangeCount>0})).bind($y)},Xy=function(e){return Ky(e).map((function(e){return Xv.exact(e.start,e.soffset,e.finish,e.foffset)}))},Yy=function(e,t){var n=ly(e,t);return oy(n)},Jy=function(e,t,n){return Ay(e,t,n)},Zy=function(e){Ly(e).each((function(e){return e.removeAllRanges()}))},Qy=tinymce.util.Tools.resolve("tinymce.util.VK"),eb=function(e,t,n){return rb(e,t,Av(n,_l))},tb=function(e,t,n){return rb(e,t,Dv(n,_l))},nb=function(e,t){var n=Xv.exact(t,0,t,0);return qy(n)},rb=function(e,t,n){return n.fold(E.none,E.none,(function(t,n){return Oc(n).map((function(t){return nb(e,t)}))}),(function(n){return e.execCommand("mceTableInsertRowAfter"),eb(e,t,n)}))},ob=["table","li","dl"],ib=function(e,t,n){if(e.keyCode===Qy.TAB){var r=Wc(t),o=function(e){var t=nn(e);return _t(e,r)||N(ob,t)},i=t.selection.getRng(),a=vt.fromDom(e.shiftKey?i.startContainer:i.endContainer);Er(a,o).each((function(r){e.preventDefault(),Mr(r,o).each(n.clear),t.selection.collapse(e.shiftKey);var i=e.shiftKey?tb:eb,a=i(t,o,r);a.each((function(e){t.selection.setRng(e)}))}))}},ab=function(e,t){return{selection:e,kill:t}},cb={create:ab},ub=function(e,t,n,r){return{start:Fv.on(e,t),finish:Fv.on(n,r)}},sb={create:ub},lb=function(e,t){var n=ly(e,t);return Rv.create(vt.fromDom(n.startContainer),n.startOffset,vt.fromDom(n.endContainer),n.endOffset)},fb=sb.create,db=function(e,t,n,r,o,i,a){return _t(n,o)&&r===i?E.none():Kn(n,"td,th",t).bind((function(n){return Kn(o,"td,th",t).bind((function(r){return mb(e,t,n,r,a)}))}))},mb=function(e,t,n,r,o){return _t(n,r)?E.none():ni(n,r,t).bind((function(t){var r=t.boxes.getOr([]);return r.length>1?(o(e,r,t.start,t.finish),E.some(cb.create(E.some(fb(n,0,n,zc(n))),!0))):E.none()}))},gb=function(e,t,n,r,o){var i=function(e){return o.clearBeforeUpdate(n),o.selectRange(n,e.boxes,e.start,e.finish),e.boxes};return ci(r,e,t,o.firstSelectedSelector,o.lastSelectedSelector).map(i)},pb=function(e,t){return{item:e,mode:t}},hb=function(e,t,n,r){return void 0===r&&(r=vb),e.property().parent(t).map((function(e){return pb(e,r)}))},vb=function(e,t,n,r){return void 0===r&&(r=yb),n.sibling(e,t).map((function(e){return pb(e,r)}))},yb=function(e,t,n,r){void 0===r&&(r=yb);var o=e.property().children(t),i=n.first(o);return i.map((function(e){return pb(e,r)}))},bb=[{current:hb,next:vb,fallback:E.none()},{current:vb,next:yb,fallback:E.some(hb)},{current:yb,next:yb,fallback:E.some(vb)}],wb=function(e,t,n,r,o){void 0===o&&(o=bb);var i=W(o,(function(e){return e.current===n}));return i.bind((function(n){return n.current(e,t,r,n.next).orThunk((function(){return n.fallback.bind((function(n){return wb(e,t,n,r)}))}))}))},kb=function(){var e=function(e,t){return e.query().prevSibling(t)},t=function(e){return e.length>0?E.some(e[e.length-1]):E.none()};return{sibling:e,first:t}},_b=function(){var e=function(e,t){return e.query().nextSibling(t)},t=function(e){return e.length>0?E.some(e[0]):E.none()};return{sibling:e,first:t}},xb={left:kb,right:_b},zb=function(e,t,n,r,o,i){var a=wb(e,t,r,o);return a.bind((function(t){return i(t.item)?E.none():n(t.item)?E.some(t.item):zb(e,t.item,n,t.mode,o,i)}))},Cb=function(e,t,n,r){return zb(e,t,n,vb,xb.left(),r)},Sb=function(e,t,n,r){return zb(e,t,n,vb,xb.right(),r)},Tb=function(e){return function(t){return 0===e.property().children(t).length}},Ob=function(e,t,n){return Ab(e,t,Tb(e),n)},Eb=function(e,t,n){return Db(e,t,Tb(e),n)},Ab=Cb,Db=Sb,Mb=Uo(),Rb=function(e,t){return Ob(Mb,e,t)},Nb=function(e,t){return Eb(Mb,e,t)},Bb=function(e,t,n){return Ab(Mb,e,t,n)},Pb=function(e,t,n){return Db(Mb,e,t,n)},Lb=function(e,t,n){return jn(e,t,n).isSome()},Ib=fi.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Hb=function(e,t,n){var r=e.getRect(t),o=e.getRect(n);return o.right>r.left&&o.left<r.right},Fb=function(e){return Kn(e,"tr")},jb=function(e,t,n,r,o,i,a){return Kn(r,"td,th",a).bind((function(n){return Kn(t,"td,th",a).map((function(t){return _t(n,t)?_t(r,n)&&zc(n)===o?i(t):Ib.none("in same cell"):Qo(Fb,[n,t]).fold((function(){return Hb(e,t,n)?Ib.success():i(t)}),(function(e){return i(t)}))}))})).getOr(Ib.none("default"))},Vb=function(e,t,n,r,o){return e.fold(t,n,r,o)},Ub=oe(oe({},Ib),{verify:jb,cata:Vb}),qb=function(e,t,n,r){return{parent:e,children:t,element:n,index:r}},Wb=function(e){return pn(e).bind((function(t){var n=wn(t);return $b(n,e).map((function(r){return qb(t,n,e,r)}))}))},$b=function(e,t){return $(e,w(_t,t))},Gb=function(e){return"br"===nn(e)},Kb=function(e,t,n){return t(e,n).bind((function(e){return un(e)&&0===Ho(e).trim().length?Kb(e,t,n):E.some(e)}))},Xb=function(e,t,n){return n.traverse(t).orThunk((function(){return Kb(t,n.gather,e)})).map(n.relative)},Yb=function(e,t){return kn(e,t).filter(Gb).orThunk((function(){return kn(e,t-1).filter(Gb)}))},Jb=function(e,t,n,r){return Yb(t,n).bind((function(t){return r.traverse(t).fold((function(){return Kb(t,r.gather,e).map(r.relative)}),(function(e){return Wb(e).map((function(e){return Fv.on(e.parent,e.index)}))}))}))},Zb=function(e,t,n,r){var o=Gb(t)?Xb(e,t,r):Jb(e,t,n,r);return o.map((function(e){return{start:e,finish:e}}))},Qb=function(e){return Ub.cata(e,(function(e){return E.none()}),(function(){return E.none()}),(function(e){return E.some(ad(e,0))}),(function(e){return E.some(ad(e,zc(e)))}))},ew=function(e,t){return{left:e.left,top:e.top+t,right:e.right,bottom:e.bottom+t}},tw=function(e,t){return{left:e.left,top:e.top-t,right:e.right,bottom:e.bottom-t}},nw=function(e,t,n){return{left:e.left+t,top:e.top+n,right:e.right+t,bottom:e.bottom+n}},rw=function(e){return e.top},ow=function(e){return e.bottom},iw=function(e,t,n){return n>=0&&n<zc(t)?e.getRangedRect(t,n,t,n+1):n>0?e.getRangedRect(t,n-1,t,n):E.none()},aw=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}},cw=function(e,t){return E.some(e.getRect(t))},uw=function(e,t,n){return cn(t)?cw(e,t).map(aw):un(t)?iw(e,t,n).map(aw):E.none()},sw=function(e,t){return cn(t)?cw(e,t).map(aw):un(t)?e.getRangedRect(t,0,t,zc(t)).map(aw):E.none()},lw=5,fw=100,dw=fi.generate([{none:[]},{retry:["caret"]}]),mw=function(e,t){return e.left<t.left||Math.abs(t.right-e.left)<1||e.left>t.right},gw=function(e,t,n){return Vn(t,cg).fold(x,(function(t){return sw(e,t).exists((function(e){return mw(n,e)}))}))},pw=function(e,t,n,r,o){var i=ew(o,lw);return Math.abs(n.bottom-r.bottom)<1||n.top>o.bottom?dw.retry(i):n.top===o.bottom?dw.retry(ew(o,1)):gw(e,t,o)?dw.retry(nw(i,lw,0)):dw.none()},hw=function(e,t,n,r,o){var i=tw(o,lw);return Math.abs(n.top-r.top)<1||n.bottom<o.top?dw.retry(i):n.bottom===o.top?dw.retry(tw(o,1)):gw(e,t,o)?dw.retry(nw(i,lw,0)):dw.none()},vw={point:rw,adjuster:hw,move:tw,gather:Rb},yw={point:ow,adjuster:pw,move:ew,gather:Nb},bw=function(e,t,n){return e.elementFromPoint(t,n).filter((function(e){return"table"===nn(e)})).isSome()},ww=function(e,t,n,r,o){return kw(e,t,n,t.move(r,lw),o)},kw=function(e,t,n,r,o){return 0===o?E.some(r):bw(e,r.left,t.point(r))?ww(e,t,n,r,o-1):e.situsFromPoint(r.left,t.point(r)).bind((function(i){return i.start.fold(E.none,(function(i){return sw(e,i).bind((function(a){return t.adjuster(e,i,a,n,r).fold(E.none,(function(r){return kw(e,t,n,r,o-1)}))})).orThunk((function(){return E.some(r)}))}),E.none)}))},_w=function(e,t){return e.situsFromPoint(t.left,t.bottom+lw)},xw=function(e,t){return e.situsFromPoint(t.left,t.top-lw)},zw=function(e,t,n){return e.point(t)>n.getInnerHeight()?E.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?E.some(-e.point(t)):E.none()},Cw=function(e,t,n){var r=e.move(n,lw),o=kw(t,e,n,r,fw).getOr(r);return zw(e,o,t).fold((function(){return t.situsFromPoint(o.left,e.point(o))}),(function(n){return t.scrollBy(0,n),t.situsFromPoint(o.left,e.point(o)-n)}))},Sw={tryUp:w(Cw,vw),tryDown:w(Cw,yw),ieTryUp:xw,ieTryDown:_w,getJumpSize:v(lw)},Tw=20,Ow=function(e,t,n){return e.getSelection().bind((function(r){return Zb(t,r.finish,r.foffset,n).fold((function(){return E.some(ad(r.finish,r.foffset))}),(function(o){var i=e.fromSitus(o),a=Ub.verify(e,r.finish,r.foffset,i.finish,i.foffset,n.failure,t);return Qb(a)}))}))},Ew=function(e,t,n,r,o,i){return 0===i?E.none():Mw(e,t,n,r,o).bind((function(a){var c=e.fromSitus(a),u=Ub.verify(e,n,r,c.finish,c.foffset,o.failure,t);return Ub.cata(u,(function(){return E.none()}),(function(){return E.some(a)}),(function(a){return _t(n,a)&&0===r?Aw(e,n,r,tw,o):Ew(e,t,a,0,o,i-1)}),(function(a){return _t(n,a)&&r===zc(a)?Aw(e,n,r,ew,o):Ew(e,t,a,zc(a),o,i-1)}))}))},Aw=function(e,t,n,r,o){return uw(e,t,n).bind((function(t){return Dw(e,o,r(t,Sw.getJumpSize()))}))},Dw=function(e,t,n){var r=ot().browser;return r.isChrome()||r.isSafari()||r.isFirefox()||r.isEdge()?t.otherRetry(e,n):r.isIE()?t.ieRetry(e,n):E.none()},Mw=function(e,t,n,r,o){return uw(e,n,r).bind((function(t){return Dw(e,o,t)}))},Rw=function(e,t,n){return Ow(e,t,n).bind((function(r){return Ew(e,t,r.element,r.offset,n,Tw).map(e.fromSitus)}))},Nw=function(e,t){return Lb(e,(function(e){return pn(e).exists((function(e){return _t(e,t)}))}))},Bw=function(e,t,n,r,o){return Kn(r,"td,th",t).bind((function(r){return Kn(r,"table",t).bind((function(i){return Nw(o,i)?Rw(e,t,n).bind((function(e){return Kn(e.finish,"td,th",t).map((function(t){return{start:r,finish:t,range:e}}))})):E.none()}))}))},Pw=function(e,t,n,r,o,i){return ot().browser.isIE()?E.none():i(r,t).orThunk((function(){return Bw(e,t,n,r,o).map((function(e){var t=e.range;return cb.create(E.some(fb(t.start,t.soffset,t.finish,t.foffset)),!0)}))}))},Lw=function(e,t){return Kn(e,"tr",t).bind((function(e){return Kn(e,"table",t).bind((function(n){var r=Hn(n,"tr");return _t(e,r[0])?Bb(n,(function(e){return Ec(e).isSome()}),t).map((function(e){var t=zc(e);return cb.create(E.some(fb(e,t,e,t)),!0)})):E.none()}))}))},Iw=function(e,t){return Kn(e,"tr",t).bind((function(e){return Kn(e,"table",t).bind((function(n){var r=Hn(n,"tr");return _t(e,r[r.length-1])?Pb(n,(function(e){return Oc(e).isSome()}),t).map((function(e){return cb.create(E.some(fb(e,0,e,0)),!0)})):E.none()}))}))},Hw=function(e,t,n,r,o,i,a){return Bw(e,n,r,o,i).bind((function(e){return mb(t,n,e.start,e.finish,a)}))},Fw=function(e,t){return Kn(e,"td,th",t)},jw=function(e,t,n,r){var o=yh(),i=o.clear,a=function(i){o.on((function(o){r.clearBeforeUpdate(t),Fw(i.target,n).each((function(a){ni(o,a,n).each((function(n){var o=n.boxes.getOr([]);if(1===o.length){var c=o[0],u="false"===xl(c),s=rr(kl(i.target),c,_t);u&&s&&(r.selectRange(t,o,c,c),e.selectContents(c))}else o.length>1&&(r.selectRange(t,o,n.start,n.finish),e.selectContents(a))}))}))}))},c=function(e){r.clear(t),Fw(e.target,n).each(o.set)},u=function(e){a(e)},s=function(e){a(e),i()};return{clearstate:i,mousedown:c,mouseover:u,mouseup:s}},Vw={traverse:bn,gather:Nb,relative:Fv.before,otherRetry:Sw.tryDown,ieRetry:Sw.ieTryDown,failure:Ub.failedDown},Uw={traverse:yn,gather:Rb,relative:Fv.before,otherRetry:Sw.tryUp,ieRetry:Sw.ieTryUp,failure:Ub.failedUp},qw=function(e){return function(t){return t===e}},Ww=qw(38),$w=qw(40),Gw=function(e){return e>=37&&e<=40},Kw={isBackward:qw(37),isForward:qw(39)},Xw={isBackward:qw(39),isForward:qw(37)},Yw=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Zi(n,r)},Jw=function(e,t,n){var r=void 0!==n?n.dom:document,o=r.defaultView;o&&o.scrollBy(e,t)},Zw=function(e){var t=function(t,n){return vt.fromPoint(vt.fromDom(e.document),t,n)},n=function(e){return e.dom.getBoundingClientRect()},r=function(t,n,r,o){var i=Xv.exact(t,n,r,o);return Yy(e,i)},o=function(){return Xy(e).map((function(t){return lb(e,t)}))},i=function(t){var n=Xv.relative(t.start,t.finish);return lb(e,n)},a=function(t,n){return Jy(e,t,n).map((function(e){return sb.create(e.start,e.soffset,e.finish,e.foffset)}))},c=function(){Zy(e)},u=function(t){void 0===t&&(t=!1),Xy(e).each((function(n){return n.fold((function(e){return e.collapse(t)}),(function(n,r){var o=t?n:r;Uy(e,o,o)}),(function(n,r,o,i){var a=t?n:o,c=t?r:i;Vy(e,a,c,a,c)}))}))},s=function(t){Gy(e,t,!1)},l=function(t){Gy(e,t)},f=function(t){Vy(e,t.start,t.soffset,t.finish,t.foffset)},d=function(t,n){Uy(e,t,n)},m=function(){return e.innerHeight},g=function(){var t=Yw(vt.fromDom(e.document));return t.top},p=function(t,n){Jw(t,n,vt.fromDom(e.document))};return{elementFromPoint:t,getRect:n,getRangedRect:r,getSelection:o,fromSitus:i,situsFromPoint:a,clearSelection:c,collapseSelection:u,setSelection:f,setRelativeSelection:d,selectNode:s,selectContents:l,getInnerHeight:m,getScrollY:g,scrollBy:p}},Qw=function(e,t){return{rows:e,cols:t}},ek=function(e,t,n,r){var o=Zw(e),i=jw(o,t,n,r);return{clearstate:i.clearstate,mousedown:i.mousedown,mouseover:i.mouseover,mouseup:i.mouseup}},tk=function(e,t,n,r){var o=Zw(e),i=function(){return r.clear(t),E.none()},a=function(e,a,c,u,s,l){var f=e.raw,d=f.which,m=!0===f.shiftKey,g=ri(t,r.selectedSelector).fold((function(){return Gw(d)&&!m&&r.clearBeforeUpdate(t),$w(d)&&m?w(Hw,o,t,n,Vw,u,a,r.selectRange):Ww(d)&&m?w(Hw,o,t,n,Uw,u,a,r.selectRange):$w(d)?w(Pw,o,n,Vw,u,a,Iw):Ww(d)?w(Pw,o,n,Uw,u,a,Lw):E.none}),(function(e){var n=function(n){return function(){var i=re(n,(function(n){return gb(n.rows,n.cols,t,e,r)}));return i.fold((function(){return ii(t,r.firstSelectedSelector,r.lastSelectedSelector).map((function(e){var n=$w(d)||l.isForward(d)?Fv.after:Fv.before;return o.setRelativeSelection(Fv.on(e.first,0),n(e.table)),r.clear(t),cb.create(E.none(),!0)}))}),(function(e){return E.some(cb.create(E.none(),!0))}))}};return $w(d)&&m?n([Qw(1,0)]):Ww(d)&&m?n([Qw(-1,0)]):l.isBackward(d)&&m?n([Qw(0,-1),Qw(-1,0)]):l.isForward(d)&&m?n([Qw(0,1),Qw(1,0)]):Gw(d)&&!m?i:E.none}));return g()},c=function(e,o,i,a,c){return ri(t,r.selectedSelector).fold((function(){var u=e.raw,s=u.which,l=!0===u.shiftKey;return l&&Gw(s)?db(t,n,o,i,a,c,r.selectRange):E.none()}),E.none)};return{keydown:a,keyup:c}},nk=function(e,t,n,r){var o=Zw(e);return function(e,i){r.clearBeforeUpdate(t),ni(e,i,n).each((function(e){var n=e.boxes.getOr([]);r.selectRange(t,n,e.start,e.finish),o.selectContents(i),o.collapseSelection()}))}},rk=function(e,t){I(t,(function(t){sl(e,t)}))},ok=function(e){return function(t){cl(t,e)}},ik=function(e){return function(t){rk(t,e)}},ak=function(e){var t=ok(e.selected),n=ik([e.selected,e.lastSelected,e.firstSelected]),r=function(t){var r=Hn(t,e.selectedSelector);I(r,n)},o=function(n,o,i,a){r(n),I(o,t),cl(i,e.firstSelected),cl(a,e.lastSelected)};return{clearBeforeUpdate:r,clear:r,selectRange:o,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},ck=function(e,t,n){var r=function(t){tr(t,e.selected),tr(t,e.firstSelected),tr(t,e.lastSelected)},o=function(t){Yn(t,e.selected,"1")},i=function(e){a(e),n()},a=function(t){var n=Hn(t,e.selectedSelector+","+e.firstSelectedSelector+","+e.lastSelectedSelector);I(n,r)},c=function(n,r,a,c){i(n),I(r,o),Yn(a,e.firstSelected,"1"),Yn(c,e.lastSelected,"1"),t(r,a,c)};return{clearBeforeUpdate:a,clear:i,selectRange:c,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},uk={byClass:ak,byAttr:ck},sk=function(e,t){var n=e.slice(0,t[t.length-1].row+1),r=jd(n);return K(r,(function(e){var n=e.cells.slice(0,t[t.length-1].column+1);return L(n,(function(e){return e.element}))}))},lk=function(e,t){var n=e.slice(t[0].row+t[0].rowspan-1,e.length),r=jd(n);return K(r,(function(e){var n=e.cells.slice(t[0].column+t[0].colspan-1,e.cells.length);return L(n,(function(e){return e.element}))}))},fk=function(e,t,n){var r=so.fromTable(e),o=Xd(r,t);return o.map((function(e){var t=Hd(r,n,!1),o=sk(t,e),i=lk(t,e);return{upOrLeftCells:o,downOrRightCells:i}}))},dk=tinymce.util.Tools.resolve("tinymce.Env"),mk=function(e){return!1===ll(vt.fromDom(e.target),"ephox-snooker-resizer-bar")};function gk(e,t,n){var r=function(t,r,o){n.targets().each((function(n){var i=Mr(r);i.each((function(i){var a=jf(e),c=Fc(g,vt.fromDom(e.getDoc()),a),u=fk(i,n,c);tf(e,t,r,o,u)}))}))},o=function(){return nf(e)},i=uk.byAttr(gu,r,o);return e.on("init",(function(n){var r=e.getWin(),o=Wc(e),a=Kc(e),c=function(){var t=e.selection,n=vt.fromDom(t.getStart()),r=vt.fromDom(t.getEnd()),a=Qo(Mr,[n,r]);a.fold((function(){return i.clear(o)}),g)},u=ek(r,o,a,i),s=tk(r,o,a,i),l=nk(r,o,a,i),f=function(e){return!0===e.raw.shiftKey};e.on("TableSelectorChange",(function(e){return l(e.start,e.finish)}));var d=function(t,n){f(t)&&(n.kill&&t.kill(),n.selection.each((function(t){var n=Xv.relative(t.start,t.finish),o=ly(r,n);e.selection.setRng(o)})))},m=function(t){var n=Qs(t);if(n.raw.shiftKey&&Gw(n.raw.which)){var r=e.selection.getRng(),o=vt.fromDom(r.startContainer),i=vt.fromDom(r.endContainer);s.keyup(n,o,r.startOffset,i,r.endOffset).each((function(e){d(n,e)}))}},p=function(n){var r=Qs(n);t().each((function(e){return e.hideBars()}));var o=e.selection.getRng(),i=vt.fromDom(o.startContainer),a=vt.fromDom(o.endContainer),c=Wi(Kw,Xw)(vt.fromDom(e.selection.getStart()));s.keydown(r,i,o.startOffset,a,o.endOffset,c).each((function(e){d(r,e)})),t().each((function(e){return e.showBars()}))},h=function(e){return 0===e.button},v=function(e){return void 0===e.buttons||(!(!dk.browser.isEdge()||0!==e.buttons)||0!==(1&e.buttons))},y=function(e){u.clearstate()},b=function(e){h(e)&&mk(e)&&u.mousedown(Qs(e))},w=function(e){v(e)&&mk(e)&&u.mouseover(Qs(e))},k=function(e){h(e)&&mk(e)&&u.mouseup(Qs(e))},_=function(){var e=ph(vt.fromDom(o)),t=ph(0),n=function(n){var r=vt.fromDom(n.target);if("td"===nn(r)||"th"===nn(r)){var o=e.get(),i=t.get();_t(o,r)&&n.timeStamp-i<300&&(n.preventDefault(),l(r,r))}e.set(r),t.set(n.timeStamp)};return{touchEnd:n}},x=_();e.on("dragstart",y),e.on("mousedown",b),e.on("mouseover",w),e.on("mouseup",k),e.on("touchend",x.touchEnd),e.on("keyup",m),e.on("keydown",p),e.on("NodeChange",c)})),{clear:i.clear}}var pk=function(e,t){return $n(e,t).isSome()},hk=function(e,t){var n=ph(E.none()),r=ph([]),o=E.none(),i=fn("caption"),a=function(e){return o.forall((function(t){return!t[e]}))},c=function(){return ku(tu(e),Kc(e))},u=function(){return ku(nu(e),Kc(e))},s=function(){return c().bind((function(e){return cr(ir(Mr(e),u().bind(Mr),(function(n,r){return _t(n,r)?i(e)?E.some(pu(e)):E.some(hu(t,n,e)):E.none()})))}))},l=function(e){var t=Mr(e.element);return t.map((function(t){var n=so.fromTable(t),r=Xd(n,e).getOr([]),o=U(r,(function(e,t){return t.isLocked&&(e.onAny=!0,0===t.column?e.onFirst=!0:t.column+t.colspan>=n.grid.columns&&(e.onLast=!0)),e}),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:Qd(n,e).isSome(),unmergeable:em(n,e).isSome(),locked:o}}))},f=function(){n.set(ae(s)()),o=n.get().bind(l),I(r.get(),(function(e){return e()}))},d=function(e){return e(),r.set(r.get().concat([e])),function(){r.set(j(r.get(),(function(t){return t!==e})))}},m=function(e,t){return d((function(){return n.get().fold((function(){e.setDisabled(!0)}),(function(n){e.setDisabled(t(n))}))}))},g=function(e,t,r){return d((function(){return n.get().fold((function(){e.setDisabled(!0),e.setActive(!1)}),(function(n){e.setDisabled(t(n)),e.setActive(r(n))}))}))},p=function(e){return o.exists((function(t){return t.locked[e]}))},h=function(e){return m(e,(function(e){return!1}))},v=function(e){return m(e,(function(e){return i(e.element)}))},y=function(e){return function(t){return m(t,(function(t){return i(t.element)||p(e)}))}},b=function(e){return function(t){return m(t,(function(t){return i(t.element)||e().isNone()}))}},w=function(e,t){return function(n){return m(n,(function(n){return i(n.element)||e().isNone()||p(t)}))}},k=function(e){return m(e,(function(e){return a("mergeable")}))},_=function(e){return m(e,(function(e){return a("unmergeable")}))},z=function(t){return g(t,x,(function(t){var n=Mr(t.element,Kc(e));return n.exists((function(e){return pk(e,"caption")}))}))},C=function(t,n){return function(r){return g(r,(function(e){return i(e.element)}),(function(){return e.queryCommandValue(t)===n}))}},S=C("mceTableRowType","header"),T=C("mceTableColType","th");return e.on("NodeChange ExecCommand TableSelectorChange",f),{onSetupTable:h,onSetupCellOrRow:v,onSetupColumn:y,onSetupPasteable:b,onSetupPasteableColumn:w,onSetupMergeable:k,onSetupUnmergeable:_,resetTargets:f,onSetupTableWithCaption:z,onSetupTableRowHeaders:S,onSetupTableColumnHeaders:T,targets:n.get}},vk=function(e,t,n,r){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(e){return e("inserttable | cell row column | advtablesort | tableprops deletetable")}});var o=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:o("mceTableProps"),icon:"table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:o("mceTableDelete"),icon:"table-delete-table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:o("mceTableCellProps"),icon:"table-cell-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:o("mceTableMergeCells"),icon:"table-merge-cells",onSetup:n.onSetupMergeable}),e.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:o("mceTableSplitCells"),icon:"table-split-cells",onSetup:n.onSetupUnmergeable}),e.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:o("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:o("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:o("mceTableDeleteRow"),icon:"table-delete-row",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:o("mceTableRowProps"),icon:"table-row-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:o("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:o("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:o("mceTableDeleteCol"),icon:"table-delete-column",onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:o("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:o("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:o("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:o("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:o("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:o("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:o("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:o("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")}),e.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:o("mceInsertTable"),icon:"table"});var i=zh(Df(e));0!==i.length&&e.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:Ch(e,t,i,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)})),onSetup:n.onSetupTable});var a=zh(Ef(e));0!==a.length&&e.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:Ch(e,t,a,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)})),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:Ch(e,t,eh,"tablecellverticalalign",xh(e,"vertical-align")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:Ch(e,t,vf(e),"tablecellborderwidth",xh(e,"border-width")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:Ch(e,t,yf(e),"tablecellborderstyle",xh(e,"border-style")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablecaption",{tooltip:"Table caption",onAction:o("mceTableToggleCaption"),icon:"table-caption",onSetup:n.onSetupTableWithCaption}),e.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:function(t){return t(Sh(e,Uf(e),"background-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function(t){return t(Sh(e,qf(e),"border-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablerowheader",{tooltip:"Row header",icon:"table-top-header",onAction:Th(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleButton("tablecolheader",{tooltip:"Column header",icon:"table-left-header",onAction:Oh(e),onSetup:n.onSetupTableColumnHeaders})},yk=function(e){var t=function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},n=Bf(e);n.length>0&&e.ui.registry.addContextToolbar("table",{predicate:t,items:n,scope:"node",position:"node"})},bk=function(e,t,n,r){var o=function(t){return function(){return e.execCommand(t)}},i=function(t){e.execCommand("mceInsertTable",!1,{rows:t.numRows,columns:t.numColumns})},a={text:"Table properties",onSetup:n.onSetupTable,onAction:o("mceTableProps")},c={text:"Delete table",icon:"table-delete-table",onSetup:n.onSetupTable,onAction:o("mceTableDelete")};e.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:o("mceTableInsertRowBefore"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:o("mceTableInsertRowAfter"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:o("mceTableDeleteRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:o("mceTableRowProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:o("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:o("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:o("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:o("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)});var u={type:"nestedmenuitem",text:"Row",getSubmenuItems:v("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")};e.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:o("mceTableInsertColBefore"),onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:o("mceTableInsertColAfter"),onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:o("mceTableDeleteCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:o("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:o("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:o("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:o("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")});var s={type:"nestedmenuitem",text:"Column",getSubmenuItems:v("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")};e.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:o("mceTableCellProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:o("mceTableMergeCells"),onSetup:n.onSetupMergeable}),e.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:o("mceTableSplitCells"),onSetup:n.onSetupUnmergeable});var l={type:"nestedmenuitem",text:"Cell",getSubmenuItems:v("tablecellprops tablemergecells tablesplitcells")};!1===Tf(e)?e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:o("mceInsertTable")}):e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:i}]}}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:o("mceInsertTable")}),e.ui.registry.addMenuItem("tableprops",a),e.ui.registry.addMenuItem("deletetable",c),e.ui.registry.addNestedMenuItem("row",u),e.ui.registry.addNestedMenuItem("column",s),e.ui.registry.addNestedMenuItem("cell",l),e.ui.registry.addContextMenu("table",{update:function(){return n.resetTargets(),n.targets().fold(v(""),(function(e){return"caption"===nn(e.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}});var f=zh(Df(e));0!==f.length&&e.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return _h(e,t,f,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)}))},onSetup:n.onSetupTable});var d=zh(Ef(e));0!==d.length&&e.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return _h(e,t,d,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)}))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return _h(e,t,eh,"tablecellverticalalign",xh(e,"vertical-align"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return _h(e,t,vf(e),"tablecellborderwidth",xh(e,"border-width"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return _h(e,t,yf(e),"tablecellborderstyle",xh(e,"border-style"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablecaption",{icon:"table-caption",text:"Table caption",onAction:o("mceTableToggleCaption"),onSetup:n.onSetupTableWithCaption}),e.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return Sh(e,Uf(e),"background-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return Sh(e,qf(e),"border-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablerowheader",{text:"Row header",icon:"table-top-header",onAction:Th(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleMenuItem("tablecolheader",{text:"Column header",icon:"table-left-header",onAction:Oh(e),onSetup:n.onSetupTableColumnHeaders})},wk=function(e){var t=vi((function(){return Wc(e)}),(function(){return _u(tu(e),Kc(e))}),gu.selectedSelector),n=hk(e,t),r=id(e),o=gk(e,r.lazyResize,n),i=_p(e,o,r.lazyWire),a=wv();return yv(e,i,o,t,a),bv(e,i,t),Ou(e,t,i),bk(e,t,n,a),vk(e,t,n,a),yk(e),e.on("PreInit",(function(){e.serializer.addTempAttr(gu.firstSelected),e.serializer.addTempAttr(gu.lastSelected),zv(e)})),_f(e)&&e.on("keydown",(function(t){ib(t,e,o)})),e.on("remove",(function(){r.destroy()})),Vp(e,a,r,n)};function kk(){yi.add("table",wk)}kk()})()},"9dd9":function(e,t,n){(function(e){(function(){"use strict";var t=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=tinymce.util.Tools.resolve("tinymce.util.Tools"),o=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},i=function(e){return function(t){return o(t)===e}},a=function(e){return function(t){return typeof t===e}},c=i("array"),u=function(e){return null===e||void 0===e},s=function(e){return!u(e)},l=a("function"),f=function(){},d=function(e){return function(){return e}},m=function(e){return e},g=d(!1),p=d(!0),h=function(){return v},v=function(){var e=function(e){return e()},t=m,n={fold:function(e,t){return e()},isSome:g,isNone:p,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:h,each:f,bind:h,exists:g,forall:p,filter:function(){return h()},toArray:function(){return[]},toString:d("none()")};return n}(),y=function(e){var t=d(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:p,isNone:g,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return y(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:v},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},b=function(e){return null===e||void 0===e?v:y(e)},w={some:y,none:h,from:b},k={},_={exports:k};(function(t,n,r,o){(function(e,o){"object"===typeof n&&"undefined"!==typeof r?r.exports=o():"function"===typeof t&&t.amd?t(o):(e="undefined"!==typeof globalThis?globalThis:e||self,e.EphoxContactWrapper=o())})(this,(function(){var t="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},n={exports:{}};(function(e){(function(t){var n=setTimeout;function r(){}function o(e,t){return function(){e.apply(t,arguments)}}function i(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(o){return void u(t.promise,o)}c(t.promise,r)}else(1===e._state?c:u)(t.promise,e._value)}))):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void s(e);if("function"===typeof n)return void f(o(n,t),e)}e._state=1,e._value=t,s(e)}catch(r){u(e,r)}}function u(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(r){if(n)return;n=!0,u(t,r)}}i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},i.all=function(e){var t=Array.prototype.slice.call(e);return new i((function(e,n){if(0===t.length)return e([]);var r=t.length;function o(i,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var c=a.then;if("function"===typeof c)return void c.call(a,(function(e){o(i,e)}),n)}t[i]=a,0===--r&&e(t)}catch(u){n(u)}}for(var i=0;i<t.length;i++)o(i,t[i])}))},i.resolve=function(e){return e&&"object"===typeof e&&e.constructor===i?e:new i((function(t){t(e)}))},i.reject=function(e){return new i((function(t,n){n(e)}))},i.race=function(e){return new i((function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)}))},i._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},e.exports?e.exports=i:t.Promise||(t.Promise=i)})(t)})(n);var r=n.exports,o=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),i={boltExport:o.Promise||r};return i}))})(void 0,k,_);var x=_.exports.boltExport,z=function(e,t){return T(document.createElement("canvas"),e,t)},C=function(e){var t=z(e.width,e.height),n=S(t);return n.drawImage(e,0,0),t},S=function(e){return e.getContext("2d")},T=function(e,t,n){return e.width=t,e.height=n,e},O=function(e){return e.naturalWidth||e.width},E=function(e){return e.naturalHeight||e.height},A=function(e){var t=e.src;return 0===t.indexOf("data:")?N(t):M(t)},D=function(e){return new x((function(t,n){var r=URL.createObjectURL(e),o=new Image,i=function(){o.removeEventListener("load",a),o.removeEventListener("error",c)},a=function(){i(),t(o)},c=function(){i(),n("Unable to load data of type "+e.type+": "+r)};o.addEventListener("load",a),o.addEventListener("error",c),o.src=r,o.complete&&setTimeout(a,0)}))},M=function(e){return new x((function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="blob",r.onload=function(){200===this.status&&t(this.response)},r.onerror=function(){var e=this,t=function(){var e=new Error("No access to download image");return e.code=18,e.name="SecurityError",e},r=function(){return new Error("Error "+e.status+" downloading image")};n(0===this.status?t():r())},r.send()}))},R=function(e){var t=e.split(","),n=/data:([^;]+)/.exec(t[0]);if(!n)return w.none();for(var r=n[1],o=t[1],i=1024,a=atob(o),c=a.length,u=Math.ceil(c/i),s=new Array(u),l=0;l<u;++l){for(var f=l*i,d=Math.min(f+i,c),m=new Array(d-f),g=f,p=0;g<d;++p,++g)m[p]=a[g].charCodeAt(0);s[l]=new Uint8Array(m)}return w.some(new Blob(s,{type:r}))},N=function(e){return new x((function(t,n){R(e).fold((function(){n("uri is not base64: "+e)}),t)}))},B=function(e,t,n){return t=t||"image/png",l(HTMLCanvasElement.prototype.toBlob)?new x((function(r,o){e.toBlob((function(e){e?r(e):o()}),t,n)})):N(e.toDataURL(t,n))},P=function(e,t,n){return t=t||"image/png",e.toDataURL(t,n)},L=function(e){return D(e).then((function(e){H(e);var t=z(O(e),E(e)),n=S(t);return n.drawImage(e,0,0),t}))},I=function(e){return new x((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},H=function(e){URL.revokeObjectURL(e.src)},F=function(e){return D(e)},j=function(e){return A(e)},V=Array.prototype.indexOf,U=function(e,t){return V.call(e,t)},q=function(e,t){return U(e,t)>-1},W=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},$=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},G=function(e,t,n){return W(e,(function(e,r){n=t(n,e,r)})),n},K=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return w.some(i);if(n(i,r))break}return w.none()},X=function(e,t){return K(e,t,g)},Y=function(e,t){for(var n=0,r=e.length;n<r;++n){var o=e[n];if(!0!==t(o,n))return!1}return!0},J=Object.keys,Z=function(e,t){for(var n=J(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},Q=function(e){if(!c(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return W(e,(function(r,o){var i=J(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],u=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!c(u))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==u.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+u.length+" ("+u+"), got "+i);var c=function(e){var r=J(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var o=Y(t,(function(e){return q(r,e)}));if(!o)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var i=t[o];return i.apply(null,n)},match:c,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},ee={generate:Q};ee.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var te=function(e,t,n){var r=t.type,o=d(r),i=function(){return x.resolve(t)},a=d(n),c=function(){return n.split(",")[1]},u=function(t,n){return e.then((function(e){return B(e,t,n)}))},s=function(t,n){return e.then((function(e){return P(e,t,n)}))},l=function(e,t){return s(e,t).then((function(e){return e.split(",")[1]}))},f=function(){return e.then(C)};return{getType:o,toBlob:i,toDataURL:a,toBase64:c,toAdjustedBlob:u,toAdjustedDataURL:s,toAdjustedBase64:l,toCanvas:f}},ne=function(e){return I(e).then((function(t){return te(L(e),e,t)}))},re=function(e,t){return B(e,t).then((function(t){return te(x.resolve(e),t,e.toDataURL())}))},oe=function(e,t){void 0===t&&(t=2);var n=Math.pow(10,t),r=Math.round(e*n);return Math.ceil(r/n)},ie=function(e,t){return e.toCanvas().then((function(n){return ae(n,e.getType(),t)}))},ae=function(e,t,n){var r=n<0?360+n:n,o=r*Math.PI/180,i=e.width,a=e.height,c=Math.sin(o),u=Math.cos(o),s=oe(Math.abs(i*u)+Math.abs(a*c)),l=oe(Math.abs(i*c)+Math.abs(a*u)),f=z(s,l),d=S(f);return d.translate(s/2,l/2),d.rotate(o),d.drawImage(e,-i/2,-a/2),re(f,t)},ce=function(e,t){return e.toCanvas().then((function(n){return ue(n,e.getType(),t)}))},ue=function(e,t,n){var r=z(e.width,e.height),o=S(r);return"v"===n?(o.scale(1,-1),o.drawImage(e,0,-r.height)):(o.scale(-1,1),o.drawImage(e,-r.width,0)),re(r,t)},se=function(e,t){return ce(e,t)},le=function(e,t){return ie(e,t)},fe=function(e,t,n){return void 0===n&&(n=!1),new x((function(r){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&r({status:o.status,blob:o.response})},o.open("GET",e,!0),o.withCredentials=n,Z(t,(function(e,t){o.setRequestHeader(t,e)})),o.responseType="blob",o.send()}))},de=function(e){return new x((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=function(e){n(e)},r.readAsText(e)}))},me=function(e){try{return w.some(JSON.parse(e))}catch(t){return w.none()}},ge=[{code:404,message:"Could not find Image Proxy"},{code:403,message:"Rejected request"},{code:0,message:"Incorrect Image Proxy URL"}],pe=[{type:"not_found",message:"Failed to load image."},{type:"key_missing",message:"The request did not include an api key."},{type:"key_not_found",message:"The provided api key could not be found."},{type:"domain_not_trusted",message:"The api key is not valid for the request origins."}],he=function(e,t){var n=G(t,(function(e,t){return s(e)?e[t]:void 0}),e);return w.from(n)},ve=function(e,t){return"application/json"===(null===t||void 0===t?void 0:t.type)&&(400===e||403===e||404===e||500===e)},ye=function(e){var t=X(ge,(function(t){return e===t.code})).fold(d("Unknown ImageProxy error"),(function(e){return e.message}));return"ImageProxy HTTP error: "+t},be=function(e){var t=ye(e);return x.reject(t)},we=function(e){return X(pe,(function(t){return t.type===e})).fold(d("Unknown service error"),(function(e){return e.message}))},ke=function(e){var t=me(e),n=t.bind((function(e){return he(e,["error","type"]).map(we)})).getOr("Invalid JSON in service error message");return"ImageProxy Service error: "+n},_e=function(e){return de(e).then((function(e){var t=ke(e);return x.reject(t)}))},xe=function(e,t){return ve(e,t)?_e(t):be(e)},ze=function(e,t){var n=-1===e.indexOf("?")?"?":"&";return/[?&]apiKey=/.test(e)?e:e+n+"apiKey="+encodeURIComponent(t)},Ce=function(e){return e<200||e>=300},Se=function(e,t){var n={"Content-Type":"application/json;charset=UTF-8","tiny-api-key":t};return fe(ze(e,t),n).then((function(e){return Ce(e.status)?xe(e.status,e.blob):x.resolve(e.blob)}))},Te=function(e,t){return fe(e,{},t).then((function(e){return Ce(e.status)?be(e.status):x.resolve(e.blob)}))},Oe=function(e,t,n){return void 0===n&&(n=!1),t?Se(e,t):Te(e,n)},Ee=function(e){return ne(e)},Ae=1,De=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Ne(r.childNodes[0])},Me=function(e,t){var n=t||document,r=n.createElement(e);return Ne(r)},Re=function(e,t){var n=t||document,r=n.createTextNode(e);return Ne(r)},Ne=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},Be=function(e,t,n){return w.from(e.dom.elementFromPoint(t,n)).map(Ne)},Pe={fromHtml:De,fromTag:Me,fromText:Re,fromDom:Ne,fromPoint:Be},Le=function(e,t){var n=e.dom;if(n.nodeType!==Ae)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")};"undefined"!==typeof window?window:Function("return this;")();var Ie=function(e,t){var n=function(e){return t(Pe.fromDom(e))},r=X(e.dom.childNodes,n);return r.map(Pe.fromDom)},He=function(e,t){return Ie(e,(function(e){return Le(e,t)}))},Fe=tinymce.util.Tools.resolve("tinymce.util.Delay"),je=tinymce.util.Tools.resolve("tinymce.util.Promise"),Ve=tinymce.util.Tools.resolve("tinymce.util.URI"),Ue=function(e){return e.getParam("imagetools_toolbar","rotateleft rotateright flipv fliph editimage imageoptions")},qe=function(e){return e.getParam("imagetools_proxy")},We=function(e){return e.getParam("imagetools_cors_hosts",[],"string[]")},$e=function(e){return e.getParam("imagetools_credentials_hosts",[],"string[]")},Ge=function(e){return w.from(e.getParam("imagetools_fetch_image",null,"function"))},Ke=function(e){return e.getParam("api_key",e.getParam("imagetools_api_key","","string"),"string")},Xe=function(e){return e.getParam("images_upload_timeout",3e4,"number")},Ye=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Je=function(e){var t,n,r=function(e){return/^[0-9\.]+px$/.test(e)};return t=e.style.width,n=e.style.height,t||n?r(t)&&r(n)?{w:parseInt(t,10),h:parseInt(n,10)}:null:(t=e.width,n=e.height,t&&n?{w:parseInt(t,10),h:parseInt(n,10)}:null)},Ze=function(e,t){var n,r;t&&(n=e.style.width,r=e.style.height,(n||r)&&(e.style.width=t.w+"px",e.style.height=t.h+"px",e.removeAttribute("data-mce-style")),n=e.width,r=e.height,(n||r)&&(e.setAttribute("width",String(t.w)),e.setAttribute("height",String(t.h))))},Qe=function(e){return{w:e.naturalWidth,h:e.naturalHeight}},et=0,tt=function(e){return He(Pe.fromDom(e),"img")},nt=function(e,t){return e.dom.is(t,"figure")},rt=function(e,t){return e.dom.is(t,"img:not([data-mce-object],[data-mce-placeholder])")},ot=function(e,t){var n=function(t){return rt(e,t)&&(st(e,t)||lt(e,t)||s(qe(e)))};return nt(e,t)?tt(t).bind((function(e){return n(e.dom)?w.some(e.dom):w.none()})):n(t)?w.some(t):w.none()},it=function(e,t){e.notificationManager.open({text:t,type:"error"})},at=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return null!==n&&nt(e,n)?tt(n):rt(e,t)?w.some(Pe.fromDom(t)):w.none()},ct=function(e,t,n){var r=t.match(/(?:\/|^)(([^\/\?]+)\.(?:[a-z0-9.]+))(?:\?|$)/i);return s(r)?e.dom.encode(r[n]):null},ut=function(){return"imagetools"+et++},st=function(e,t){var n=t.src;return 0===n.indexOf("data:")||0===n.indexOf("blob:")||new Ve(n).host===e.documentBaseURI.host},lt=function(e,t){return-1!==r.inArray(We(e),new Ve(t.src).host)},ft=function(e,t){return-1!==r.inArray($e(e),new Ve(t.src).host)},dt=function(e,t){if(lt(e,t))return Oe(t.src,null,ft(e,t));if(!st(e,t)){var n=qe(e),r=n+(-1===n.indexOf("?")?"?":"&")+"url="+encodeURIComponent(t.src),o=Ke(e);return Oe(r,o,!1)}return j(t)},mt=function(e,t){return Ge(e).fold((function(){return dt(e,t)}),(function(e){return e(t)}))},gt=function(e,t){var n=e.editorUpload.blobCache.getByUri(t.src);return n?je.resolve(n.blob()):mt(e,t)},pt=function(e,t){var n=Fe.setEditorTimeout(e,(function(){e.editorUpload.uploadImagesAuto()}),Xe(e));t.set(n)},ht=function(e){Fe.clearTimeout(e.get())},vt=function(e,t,n,r,o,i,a){return n.toBlob().then((function(c){var u,l,f,d,m=e.editorUpload.blobCache;u=i.src;var g=t.type===c.type;return Ye(e)&&(d=m.getByUri(u),s(d)?(u=d.uri(),l=d.name(),f=d.filename()):(l=ct(e,u,2),f=ct(e,u,1))),d=m.create({id:ut(),blob:c,base64:n.toBase64(),uri:u,name:l,filename:g?f:void 0}),m.add(d),e.undoManager.transact((function(){var t=function(){e.$(i).off("load",t),e.nodeChanged(),r?e.editorUpload.uploadImagesAuto():(ht(o),pt(e,o))};e.$(i).on("load",t),a&&e.$(i).attr({width:a.w,height:a.h}),e.$(i).attr({src:d.blobUri()}).removeAttr("data-mce-src")})),d}))},yt=function(e,t,n,r){return function(){var o=at(e);return o.fold((function(){it(e,"Could not find selected image")}),(function(o){return e._scanForImages().then((function(){return gt(e,o.dom)})).then((function(i){return Ee(i).then(n).then((function(n){return vt(e,i,n,!1,t,o.dom,r)}))})).catch((function(t){it(e,t)}))}))}},bt=function(e,t,n){return function(){var r=at(e),o=r.map((function(e){var t=Je(e.dom);return t?{w:t.h,h:t.w}:null})).getOrNull();return yt(e,t,(function(e){return le(e,n)}),o)()}},wt=function(e,t,n){return function(){return yt(e,t,(function(e){return se(e,n)}))()}},kt=function(e,t,n,r,o){return F(o).then((function(e){var t=Qe(e);return r.w===t.w&&r.h===t.h||Je(n)&&Ze(n,t),URL.revokeObjectURL(e.src),o})).then(Ee).then((function(r){return vt(e,o,r,!0,t,n)}))},_t="save-state",xt="disable",zt="enable",Ct=function(e){return{blob:e,url:URL.createObjectURL(e)}},St=function(e,t){return function(){var n=function(n){return{title:"Edit Image",size:"large",body:{type:"panel",items:[{type:"imagetools",name:"imagetools",label:"Edit Image",currentState:n}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0,disabled:!0}],onSubmit:function(n){var i=n.getData().imagetools.blob;r.each((function(n){o.each((function(r){kt(e,t,n.dom,r,i)}))})),n.close()},onCancel:f,onAction:function(e,t){switch(t.name){case _t:t.value?e.enable("save"):e.disable("save");break;case xt:e.disable("save"),e.disable("cancel");break;case zt:e.enable("cancel");break}}}},r=at(e),o=r.map((function(e){return Qe(e.dom)}));r.each((function(t){ot(e,t.dom).each((function(r){gt(e,t.dom).then((function(t){var r=Ct(t);e.windowManager.open(n(r))}))}))}))}},Tt=function(e,t){r.each({mceImageRotateLeft:bt(e,t,-90),mceImageRotateRight:bt(e,t,90),mceImageFlipVertical:wt(e,t,"v"),mceImageFlipHorizontal:wt(e,t,"h"),mceEditImage:St(e,t)},(function(t,n){e.addCommand(n,t)}))},Ot=function(e,t,n){e.on("NodeChange",(function(r){var o=n.get(),i=ot(e,r.element);o&&!i.exists((function(e){return o.src===e.src}))&&(ht(t),e.editorUpload.uploadImagesAuto(),n.set(null)),i.each(n.set)}))},Et=function(e){var t=[],n=function(t){return function(){return e.execCommand(t)}},r=function(){return at(e).exists((function(t){return ot(e,t.dom).isSome()}))},o=function(e){var n=function(t){return e.setDisabled(!t)};return n(r()),t=t.concat([n]),function(){t=$(t,(function(e){return e!==n}))}};e.on("NodeChange",(function(){var e=r();W(t,(function(t){return t(e)}))})),e.ui.registry.addButton("rotateleft",{tooltip:"Rotate counterclockwise",icon:"rotate-left",onAction:n("mceImageRotateLeft"),onSetup:o}),e.ui.registry.addButton("rotateright",{tooltip:"Rotate clockwise",icon:"rotate-right",onAction:n("mceImageRotateRight"),onSetup:o}),e.ui.registry.addButton("flipv",{tooltip:"Flip vertically",icon:"flip-vertically",onAction:n("mceImageFlipVertical"),onSetup:o}),e.ui.registry.addButton("fliph",{tooltip:"Flip horizontally",icon:"flip-horizontally",onAction:n("mceImageFlipHorizontal"),onSetup:o}),e.ui.registry.addButton("editimage",{tooltip:"Edit image",icon:"edit-image",onAction:n("mceEditImage"),onSetup:o}),e.ui.registry.addButton("imageoptions",{tooltip:"Image options",icon:"image",onAction:n("mceImage")}),e.ui.registry.addContextMenu("imagetools",{update:function(t){return ot(e,t).map((function(e){return{text:"Edit image",icon:"edit-image",onAction:n("mceEditImage")}})).toArray()}})},At=function(e){e.ui.registry.addContextToolbar("imagetools",{items:Ue(e),predicate:function(t){return ot(e,t).isSome()},position:"node",scope:"node"})};function Dt(){n.add("imagetools",(function(e){var n=t(0),r=t(null);Tt(e,n),Et(e),At(e),Ot(e,n,r)}))}Dt()})()}).call(this,n("c8ba"))},a8b8:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){},n=function(e){return function(){return e}},r=function(e){return e},o=n(!1),i=n(!0),a=function(){return c},c=function(){var e=function(e){return e()},c=r,u={fold:function(e,t){return e()},isSome:o,isNone:i,getOr:c,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:n(null),getOrUndefined:n(void 0),or:c,orThunk:e,map:a,each:t,bind:a,exists:o,forall:i,filter:function(){return a()},toArray:function(){return[]},toString:n("none()")};return u}(),u=function(e){var t=n(e),r=function(){return s},a=function(t){return t(e)},s={fold:function(t,n){return n(e)},isSome:i,isNone:o,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:r,orThunk:r,map:function(t){return u(t(e))},each:function(t){t(e)},bind:a,exists:a,forall:a,filter:function(t){return t(e)?s:c},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return s},s=function(e){return null===e||void 0===e?c:u(e)},l={some:u,none:a,from:s},f=function(e,t){return t>=0&&t<e.length?l.some(e[t]):l.none()},d=function(e){return f(e,0)},m=function(e,t){return e?l.some(t):l.none()},g=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),p=function(e){return e&&"PRE"===e.nodeName&&-1!==e.className.indexOf("language-")},h=function(e){return function(t,n){return e(n)}},v="undefined"!==typeof window?window:Function("return this;")(),y={},b={exports:y},w={};(function(e,t,n,r){var o=window.Prism;window.Prism={manual:!0},function(r,o){"object"===typeof t&&"undefined"!==typeof n?n.exports=o():"function"===typeof e&&e.amd?e(o):(r="undefined"!==typeof globalThis?globalThis:r||self,r.EphoxContactWrapper=o())}(this,(function(){var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof w?w:"undefined"!==typeof self?self:{},t={exports:{}};(function(t){var n="undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},r=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e["__id"]||Object.defineProperty(e,"__id",{value:++n}),e["__id"]},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){while(e&&!t.test(e.className))e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"===typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){var r="no-"+t;while(e){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||o.languages;var i=r[e],a={};for(var c in i)if(i.hasOwnProperty(c)){if(c==t)for(var u in n)n.hasOwnProperty(u)&&(a[u]=n[u]);n.hasOwnProperty(c)||(a[c]=i[c])}var s=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===s&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var c in t)if(t.hasOwnProperty(c)){n.call(t,c,t[c],r||c);var u=t[c],s=o.util.type(u);"Object"!==s||i[a(u)]?"Array"!==s||i[a(u)]||(i[a(u)]=!0,e(u,n,c,i)):(i[a(u)]=!0,e(u,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),c=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var u=n.parentElement;u&&"pre"===u.nodeName.toLowerCase()&&(u.className=u.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var s=n.textContent,l={element:n,language:a,grammar:c,code:s};function f(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),u=l.element.parentElement,u&&"pre"===u.nodeName.toLowerCase()&&!u.hasAttribute("tabindex")&&u.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var d=new Worker(o.filename);d.onmessage=function(e){f(e.data)},d.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else f(o.highlight(l.code,l.grammar,l.language));else f(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new u;return s(o,o.head,e),c(e,o,t,o.head,0),f(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function c(e,t,n,r,u,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var m=n[d];m=Array.isArray(m)?m:[m];for(var g=0;g<m.length;++g){if(f&&f.cause==d+","+g)return;var p=m[g],h=p.inside,v=!!p.lookbehind,y=!!p.greedy,b=p.alias;if(y&&!p.pattern.global){var w=p.pattern.toString().match(/[imsuy]*$/)[0];p.pattern=RegExp(p.pattern.source,w+"g")}for(var k=p.pattern||p,_=r.next,x=u;_!==t.tail;x+=_.value.length,_=_.next){if(f&&x>=f.reach)break;var z=_.value;if(t.length>e.length)return;if(!(z instanceof i)){var C,S=1;if(y){if(C=a(k,x,e,v),!C)break;var T=C.index,O=C.index+C[0].length,E=x;E+=_.value.length;while(T>=E)_=_.next,E+=_.value.length;if(E-=_.value.length,x=E,_.value instanceof i)continue;for(var A=_;A!==t.tail&&(E<O||"string"===typeof A.value);A=A.next)S++,E+=A.value.length;S--,z=e.slice(x,E),C.index-=x}else if(C=a(k,0,z,v),!C)continue;T=C.index;var D=C[0],M=z.slice(0,T),R=z.slice(T+D.length),N=x+z.length;f&&N>f.reach&&(f.reach=N);var B=_.prev;M&&(B=s(t,B,M),x+=M.length),l(t,B,S);var P=new i(d,h?o.tokenize(D,h):D,b,D);if(_=s(t,B,P),R&&s(t,_,R),S>1){var L={cause:d+","+g,reach:N};c(e,t,n,_.prev,x,L),f&&L.reach>f.reach&&(f.reach=L.reach)}}}}}}function u(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}function f(e){var t=[],n=e.head.next;while(n!==e.tail)t.push(n.value),n=n.next;return t}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var c="";for(var u in i.attributes)c+=" "+u+'="'+(i.attributes[u]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+c+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var d=o.util.currentScript();function m(){o.manual||o.highlightAll()}if(d&&(o.filename=d.src,d.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var g=document.readyState;"loading"===g||"interactive"===g&&d&&d.defer?document.addEventListener("DOMContentLoaded",m):window.requestAnimationFrame?window.requestAnimationFrame(m):window.setTimeout(m,16)}return o}(n);t.exports&&(t.exports=r),"undefined"!==typeof e&&(e.Prism=r)})(t),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"===typeof i&&!i(e))return e;var o,c=a.length;while(-1!==n.code.indexOf(o=t(r,c)))++c;return a[c]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);a(n.tokens)}function a(c){for(var u=0;u<c.length;u++){if(o>=i.length)break;var s=c[u];if("string"===typeof s||s.content&&"string"===typeof s.content){var l=i[o],f=n.tokenStack[l],d="string"===typeof s?s:s.content,m=t(r,l),g=d.indexOf(m);if(g>-1){++o;var p=d.substring(0,g),h=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),v=d.substring(g+m.length),y=[];p&&y.push.apply(y,a([p])),y.push(h),v&&y.push.apply(y,a([v])),"string"===typeof s?c.splice.apply(c,[u,1].concat(y)):s.content=y}}else s.content&&a(s.content)}return c}}}})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c["string"]],comment:Prism.languages.c["comment"],"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c["boolean"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function i(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var a=i(o.typeDeclaration),c=RegExp(i(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),u=i(o.typeDeclaration+" "+o.contextual+" "+o.other),s=i(o.type+" "+o.typeDeclaration+" "+o.other),l=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),f=r(/\((?:[^()]|<<self>>)*\)/.source,2),d=/@?\b[A-Za-z_]\w*\b/.source,m=t(/<<0>>(?:\s*<<1>>)?/.source,[d,l]),g=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,m]),p=/\[\s*(?:,\s*)*\]/.source,h=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[g,p]),v=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[l,f,p]),y=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),b=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[y,g,p]),w={keyword:c,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,_=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0},{pattern:RegExp(k),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[g]),lookbehind:!0,inside:w},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[d,b]),lookbehind:!0,inside:w},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[d]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[a,m]),lookbehind:!0,inside:w},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[g]),lookbehind:!0,inside:w},{pattern:n(/(\bwhere\s+)<<0>>/.source,[d]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[h]),lookbehind:!0,inside:w},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[b,s,d]),inside:w}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[d]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[d]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:w},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[b,g]),inside:w,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[b]),lookbehind:!0,inside:w,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[d,l]),inside:{function:n(/^<<0>>/.source,[d]),generic:{pattern:RegExp(l),alias:"class-name",inside:w}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[a,m,d,b,c.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,f]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(b),greedy:!0,inside:w},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var z=_+"|"+k,C=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[z]),S=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),T=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,O=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[g,S]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[T,O]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[T]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[S]),inside:e.languages.csharp},"class-name":{pattern:RegExp(g),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var E=/:[^}\r\n]+/.source,A=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),D=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[A,E]),M=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[z]),2),R=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,E]);function N(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,E]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:N(D,A)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[R]),lookbehind:!0,greedy:!0,inside:N(R,M)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css["atrule"].inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup["tag"].inside["attr-value"].inside["entity"]=Prism.languages.markup["entity"],Prism.languages.markup["doctype"].inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes["title"]=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n["cdata"]=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},c=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:c,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:c,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){var n=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi;e.languages["markup-templating"].buildPlaceholders(t,"php",n)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside["interpolation"].inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism);var n=t.exports,r={boltExport:n};return r}));var i=window.Prism;window.Prism=o})(void 0,y,b);var k=b.exports.boltExport,_=function(e){return e.getParam("codesample_languages")},x=function(e){return e.getParam("codesample_global_prismjs",!1,"boolean")},z=function(e){return v.Prism&&x(e)?v.Prism:k},C=function(e){var t=e.selection?e.selection.getNode():null;return m(p(t),t)},S=function(e,t,n){e.undoManager.transact((function(){var r=C(e);return n=g.DOM.encode(n),r.fold((function(){e.insertContent('<pre id="__new" class="language-'+t+'">'+n+"</pre>"),e.selection.select(e.$("#__new").removeAttr("id")[0])}),(function(r){e.dom.setAttrib(r,"class","language-"+t),r.innerHTML=n,z(e).highlightElement(r),e.selection.select(r)}))}))},T=function(e){var t=C(e);return t.fold(n(""),(function(e){return e.textContent}))},O=function(e){var t=[{text:"HTML/XML",value:"markup"},{text:"JavaScript",value:"javascript"},{text:"CSS",value:"css"},{text:"PHP",value:"php"},{text:"Ruby",value:"ruby"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C",value:"c"},{text:"C#",value:"csharp"},{text:"C++",value:"cpp"}],n=_(e);return n||t},E=function(e,t){var n=C(e);return n.fold((function(){return t}),(function(e){var n=e.className.match(/language-(\w+)/);return n?n[1]:t}))},A=function(e){var t=O(e),r=d(t).fold(n(""),(function(e){return e.value})),o=E(e,r),i=T(e);e.windowManager.open({title:"Insert/Edit Code Sample",size:"large",body:{type:"panel",items:[{type:"selectbox",name:"language",label:"Language",items:t},{type:"textarea",name:"code",label:"Code view"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{language:o,code:i},onSubmit:function(t){var n=t.getData();S(e,n.language,n.code),t.close()}})},D=function(e){e.addCommand("codesample",(function(){var t=e.selection.getNode();e.selection.isCollapsed()||p(t)?A(e):e.formatter.toggle("code")}))},M=function(e){var t=e.$;e.on("PreProcess",(function(e){t("pre[contenteditable=false]",e.node).filter(h(p)).each((function(e,n){var r=t(n),o=n.textContent;r.attr("class",t.trim(r.attr("class"))),r.removeAttr("contentEditable"),r.empty().append(t("<code></code>").each((function(){this.textContent=o})))}))})),e.on("SetContent",(function(){var n=t("pre").filter(h(p)).filter((function(e,t){return"false"!==t.contentEditable}));n.length&&e.undoManager.transact((function(){n.each((function(n,r){t(r).find("br").each((function(t,n){n.parentNode.replaceChild(e.getDoc().createTextNode("\n"),n)})),r.contentEditable="false",r.innerHTML=e.dom.encode(r.textContent),z(e).highlightElement(r),r.className=t.trim(r.className)}))}))}))},R=function(e){var t=e.selection.getStart();return e.dom.is(t,'pre[class*="language-"]')},N=function(e){var t=function(){return e.execCommand("codesample")};e.ui.registry.addToggleButton("codesample",{icon:"code-sample",tooltip:"Insert/edit code sample",onAction:t,onSetup:function(t){var n=function(){t.setActive(R(e))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}}}),e.ui.registry.addMenuItem("codesample",{text:"Code sample...",icon:"code-sample",onAction:t})};function B(){e.add("codesample",(function(e){M(e),N(e),D(e),e.on("dblclick",(function(t){p(t.target)&&A(e)}))}))}B()})()},bc54:function(e,t,n){n("7c4f")},be7f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.VK"),n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},o=function(e){return function(t){return typeof t===e}},i=function(e){return function(t){return e===t}},a=r("string"),c=r("array"),u=i(null),s=o("boolean"),l=o("function"),f=function(){},d=function(e){return function(){return e}},m=function(e){return e},g=function(e,t){return e===t},p=d(!1),h=d(!0),v=function(){return y},y=function(){var e=function(e){return e()},t=m,n={fold:function(e,t){return e()},isSome:p,isNone:h,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:v,each:f,bind:v,exists:p,forall:h,filter:function(){return v()},toArray:function(){return[]},toString:d("none()")};return n}(),b=function(e){var t=d(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:h,isNone:p,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return b(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:y},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},w=function(e){return null===e||void 0===e?y:b(e)},k={some:b,none:v,from:w},_=Array.prototype.indexOf,x=Array.prototype.push,z=function(e,t){return _.call(e,t)},C=function(e,t){return z(e,t)>-1},S=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},T=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},O=function(e,t,n){return T(e,(function(e,r){n=t(n,e,r)})),n},E=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!c(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);x.apply(t,e[n])}return t},A=function(e,t){return E(S(e,t))},D=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return k.none()},M=function(e,t,n){return void 0===n&&(n=g),e.exists((function(e){return n(e,t)}))},R=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},N=function(e,t){return e?k.some(t):k.none()},B=function(e){var t=e.getParam("link_assume_external_targets",!1);return s(t)&&t?1:!a(t)||"http"!==t&&"https"!==t?0:t},P=function(e){return e.getParam("link_context_toolbar",!1,"boolean")},L=function(e){return e.getParam("link_list")},I=function(e){return e.getParam("default_link_target")},H=function(e){return e.getParam("target_list",!0)},F=function(e){return e.getParam("rel_list",[],"array")},j=function(e){return e.getParam("link_class_list",[],"array")},V=function(e){return e.getParam("link_title",!0,"boolean")},U=function(e){return e.getParam("allow_unsafe_link_target",!1,"boolean")},q=function(e){return e.getParam("link_quicklink",!1,"boolean")},W=function(e){return e.getParam("link_default_protocol","http","string")},$=tinymce.util.Tools.resolve("tinymce.util.Tools"),G=function(e){return a(e.value)?e.value:""},K=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},X=function(e,t){var n=[];return $.each(e,(function(e){var r=K(e);if(void 0!==e.menu){var o=X(e.menu,t);n.push({text:r,items:o})}else{var i=t(e);n.push({text:r,value:i})}})),n},Y=function(e){return void 0===e&&(e=G),function(t){return k.from(t).map((function(t){return X(t,e)}))}},J=function(e){return Y(G)(e)},Z=function(e,t){return function(n){return{name:e,type:"listbox",label:t,items:n}}},Q={sanitize:J,sanitizeWith:Y,createUi:Z,getValue:G},ee=function(){return ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ee.apply(this,arguments)},te=Object.keys,ne=Object.hasOwnProperty,re=function(e,t){for(var n=te(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},oe=function(e){return function(t,n){e[n]=t}},ie=function(e,t,n,r){var o={};return re(e,(function(e,o){(t(e,o)?n:r)(e,o)})),o},ae=function(e,t){var n={};return ie(e,t,oe(n),f),n},ce=function(e,t){return ne.call(e,t)},ue=function(e,t){return ce(e,t)&&void 0!==e[t]&&null!==e[t]},se=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),le=tinymce.util.Tools.resolve("tinymce.util.URI"),fe=function(e){return e&&"a"===e.nodeName.toLowerCase()},de=function(e){return fe(e)&&!!pe(e)},me=function(e,t){if(e.collapsed)return[];var n=e.cloneContents(),r=new se(n.firstChild,n),o=[],i=n.firstChild;do{t(i)&&o.push(i)}while(i=r.next());return o},ge=function(e){return/^\w+:/i.test(e)},pe=function(e){var t=e.getAttribute("data-mce-href");return t||e.getAttribute("href")},he=function(e,t){var n=["noopener"],r=e?e.split(/\s+/):[],o=function(e){return $.trim(e.sort().join(" "))},i=function(e){return e=a(e),e.length>0?e.concat(n):n},a=function(e){return e.filter((function(e){return-1===$.inArray(n,e)}))},c=t?i(r):a(r);return c.length>0?o(c):""},ve=function(e){return e.replace(/\uFEFF/g,"")},ye=function(e,t){return t=t||e.selection.getNode(),xe(t)?e.dom.select("a[href]",t)[0]:e.dom.getParent(t,"a[href]")},be=function(e,t){var n=t?t.innerText||t.textContent:e.getContent({format:"text"});return ve(n)},we=function(e){return $.grep(e,de).length>0},ke=function(e){return me(e,de).length>0},_e=function(e){var t=e.schema.getTextInlineElements(),n=function(e){return 1===e.nodeType&&!fe(e)&&!ce(t,e.nodeName.toLowerCase())},r=me(e.selection.getRng(),n);return 0===r.length},xe=function(e){return e&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className)},ze=function(e){var t=["title","rel","class","target"];return O(t,(function(t,n){return e[n].each((function(e){t[n]=e.length>0?e:null})),t}),{href:e.href})},Ce=function(e,t){return"http"!==t&&"https"!==t||ge(e)?e:t+"://"+e},Se=function(e,t){var n=ee({},t);if(!(F(e).length>0)&&!1===U(e)){var r=he(n.rel,"_blank"===n.target);n.rel=r||null}return k.from(n.target).isNone()&&!1===H(e)&&(n.target=I(e)),n.href=Ce(n.href,B(e)),n},Te=function(e,t,n,r){n.each((function(e){ce(t,"innerText")?t.innerText=e:t.textContent=e})),e.dom.setAttribs(t,r),e.selection.select(t)},Oe=function(e,t,n,r){xe(t)?Le(e,t,r):n.fold((function(){e.execCommand("mceInsertLink",!1,r)}),(function(t){e.insertContent(e.dom.createHTML("a",r,e.dom.encode(t)))}))},Ee=function(e,t,n){var r=e.selection.getNode(),o=ye(e,r),i=Se(e,ze(n));e.undoManager.transact((function(){n.href===t.href&&t.attach(),o?(e.focus(),Te(e,o,n.text,i)):Oe(e,r,n.text,i)}))},Ae=function(e){var t=e.dom,n=e.selection,r=n.getBookmark(),o=n.getRng().cloneRange(),i=t.getParent(o.startContainer,"a[href]",e.getBody()),a=t.getParent(o.endContainer,"a[href]",e.getBody());i&&o.setStartBefore(i),a&&o.setEndAfter(a),n.setRng(o),e.execCommand("unlink"),n.moveToBookmark(r)},De=function(e){e.undoManager.transact((function(){var t=e.selection.getNode();xe(t)?Pe(e,t):Ae(e),e.focus()}))},Me=function(e){var t=e.class,n=e.href,r=e.rel,o=e.target,i=e.text,a=e.title;return ae({class:t.getOrNull(),href:n,rel:r.getOrNull(),target:o.getOrNull(),text:i.getOrNull(),title:a.getOrNull()},(function(e,t){return!1===u(e)}))},Re=function(e,t){var n=t.href;return ee(ee({},t),{href:le.isDomSafe(n,"a",e.settings)?n:""})},Ne=function(e,t,n){var r=Re(e,n);e.hasPlugin("rtc",!0)?e.execCommand("createlink",!1,Me(r)):Ee(e,t,r)},Be=function(e){e.hasPlugin("rtc",!0)?e.execCommand("unlink"):De(e)},Pe=function(e,t){var n=e.dom.select("img",t)[0];if(n){var r=e.dom.getParents(n,"a[href]",t)[0];r&&(r.parentNode.insertBefore(n,r),e.dom.remove(r))}},Le=function(e,t,n){var r=e.dom.select("img",t)[0];if(r){var o=e.dom.create("a",n);r.parentNode.insertBefore(o,r),o.appendChild(r)}},Ie=function(e){return ue(e,"items")},He=function(e,t){return D(t,(function(t){return Ie(t)?He(e,t.items):N(t.value===e,t)}))},Fe=function(e,t,n,r){var o=r[t],i=e.length>0;return void 0!==o?He(o,n).map((function(t){return{url:{value:t.value,meta:{text:i?e:t.text,attach:f}},text:i?e:t.text}})):k.none()},je=function(e,t){return"link"===t?e.link:"anchor"===t?e.anchor:k.none()},Ve=function(e,t){var n={text:e.text,title:e.title},r=function(e){return N(n.title.length<=0,k.from(e.meta.title).getOr(""))},o=function(e){return N(n.text.length<=0,k.from(e.meta.text).getOr(e.value))},i=function(e){var t=o(e.url),n=r(e.url);return t.isSome()||n.isSome()?k.some(ee(ee({},t.map((function(e){return{text:e}})).getOr({})),n.map((function(e){return{title:e}})).getOr({}))):k.none()},a=function(e,r){var o=je(t,r.name).getOr([]);return Fe(n.text,r.name,o,e)},c=function(e,t){var r=t.name;return"url"===r?i(e()):C(["anchor","link"],r)?a(e(),t):"text"===r||"title"===r?(n[r]=e()[r],k.none()):k.none()};return{onChange:c}},Ue={init:Ve,getDelta:Fe},qe=tinymce.util.Tools.resolve("tinymce.util.Delay"),We=tinymce.util.Tools.resolve("tinymce.util.Promise"),$e=function(e,t,n){var r=e.selection.getRng();qe.setEditorTimeout(e,(function(){e.windowManager.confirm(t,(function(t){e.selection.setRng(r),n(t)}))}))},Ge=function(e){var t=e.href,n=t.indexOf("@")>0&&-1===t.indexOf("/")&&-1===t.indexOf("mailto:");return n?k.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(e){return ee(ee({},e),{href:"mailto:"+t})}}):k.none()},Ke=function(e,t){return function(n){var r=n.href,o=1===e&&!ge(r)||0===e&&/^\s*www(\.|\d\.)/i.test(r);return o?k.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+t+":// prefix?",preprocess:function(e){return ee(ee({},e),{href:t+"://"+r})}}):k.none()}},Xe=function(e,t){return D([Ge,Ke(B(e),W(e))],(function(e){return e(t)})).fold((function(){return We.resolve(t)}),(function(n){return new We((function(r){$e(e,n.message,(function(e){r(e?n.preprocess(t):t)}))}))}))},Ye={preprocess:Xe},Je=function(e){var t=e.dom.select("a:not([href])"),n=A(t,(function(e){var t=e.name||e.id;return t?[{text:t,value:"#"+t}]:[]}));return n.length>0?k.some([{text:"None",value:""}].concat(n)):k.none()},Ze={getAnchors:Je},Qe=function(e){var t=j(e);return t.length>0?Q.sanitize(t):k.none()},et={getClasses:Qe},tt=tinymce.util.Tools.resolve("tinymce.util.XHR"),nt=function(e){try{return k.some(JSON.parse(e))}catch(t){return k.none()}},rt=function(e){var t=function(t){return e.convertURL(t.value||t.url,"href")},n=L(e);return new We((function(e){a(n)?tt.send({url:n,success:function(t){return e(nt(t))},error:function(t){return e(k.none())}}):l(n)?n((function(t){return e(k.some(t))})):e(k.from(n))})).then((function(e){return e.bind(Q.sanitizeWith(t)).map((function(e){if(e.length>0){var t=[{text:"None",value:""}];return t.concat(e)}return e}))}))},ot={getLinks:rt},it=function(e,t){var n=F(e);if(n.length>0){var r=M(t,"_blank"),o=!1===U(e),i=function(e){return he(Q.getValue(e),r)},a=o?Q.sanitizeWith(i):Q.sanitize;return a(n)}return k.none()},at={getRels:it},ct=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],ut=function(e){var t=H(e);return c(t)?Q.sanitize(t).orThunk((function(){return k.some(ct)})):!1===t?k.none():k.some(ct)},st={getTargets:ut},lt=function(e,t,n){var r=e.getAttrib(t,n);return null!==r&&r.length>0?k.some(r):k.none()},ft=function(e,t){var n=e.dom,r=_e(e),o=r?k.some(be(e.selection,t)):k.none(),i=t?k.some(n.getAttrib(t,"href")):k.none(),a=t?k.from(n.getAttrib(t,"target")):k.none(),c=lt(n,t,"rel"),u=lt(n,t,"class"),s=lt(n,t,"title");return{url:i,text:o,title:s,target:a,rel:c,linkClass:u}},dt=function(e,t){return ot.getLinks(e).then((function(n){var r=ft(e,t);return{anchor:r,catalogs:{targets:st.getTargets(e),rels:at.getRels(e,r.target),classes:et.getClasses(e),anchor:Ze.getAnchors(e),link:n},optNode:k.from(t),flags:{titleEnabled:V(e)}}}))},mt={collect:dt},gt=function(e,t){return function(n){var r=n.getData();if(!r.url.value)return Be(e),void n.close();var o=function(e){return k.from(r[e]).filter((function(n){return!M(t.anchor[e],n)}))},i={href:r.url.value,text:o("text"),target:o("target"),rel:o("rel"),class:o("linkClass"),title:o("title")},a={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:f};Ye.preprocess(e,i).then((function(t){Ne(e,a,t)})),n.close()}},pt=function(e){var t=ye(e);return mt.collect(e,t)},ht=function(e,t){var n=e.anchor,r=n.url.getOr("");return{url:{value:r,meta:{original:{value:r}}},text:n.text.getOr(""),title:n.title.getOr(""),anchor:r,link:r,rel:n.rel.getOr(""),target:n.target.or(t).getOr(""),linkClass:n.linkClass.getOr("")}},vt=function(e,t,n){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],o=e.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),i=e.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],a=k.from(I(n)),c=ht(e,a),u=e.catalogs,s=Ue.init(c,u),l={type:"panel",items:E([r,o,i,R([u.anchor.map(Q.createUi("anchor","Anchors")),u.rels.map(Q.createUi("rel","Rel")),u.targets.map(Q.createUi("target","Open link in...")),u.link.map(Q.createUi("link","Link list")),u.classes.map(Q.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:l,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:c,onChange:function(e,t){var n=t.name;s.onChange(e.getData,{name:n}).each((function(t){e.setData(t)}))},onSubmit:t}},yt=function(e){var t=pt(e);t.then((function(t){var n=gt(e,t);return vt(t,n,e)})).then((function(t){e.windowManager.open(t)}))},bt=function(e,t){document.body.appendChild(e),e.dispatchEvent(t),document.body.removeChild(e)},wt=function(e){var t=document.createElement("a");t.target="_blank",t.href=e,t.rel="noreferrer noopener";var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),bt(t,n)},kt=function(e,t){return e.dom.getParent(t,"a[href]")},_t=function(e){return kt(e,e.selection.getStart())},xt=function(e){return!0===e.altKey&&!1===e.shiftKey&&!1===e.ctrlKey&&!1===e.metaKey},zt=function(e,t){if(t){var n=pe(t);if(/^#/.test(n)){var r=e.$(n);r.length&&e.selection.scrollIntoView(r[0],!0)}else wt(t.href)}},Ct=function(e){return function(){yt(e)}},St=function(e){return function(){zt(e,_t(e))}},Tt=function(e){e.on("click",(function(n){var r=kt(e,n.target);r&&t.metaKeyPressed(n)&&(n.preventDefault(),zt(e,r))})),e.on("keydown",(function(t){var n=_t(e);n&&13===t.keyCode&&xt(t)&&(t.preventDefault(),zt(e,n))}))},Ot=function(e,t){return e.on("NodeChange",t),function(){return e.off("NodeChange",t)}},Et=function(e){return function(t){var n=function(){return t.setActive(!e.mode.isReadOnly()&&null!==ye(e,e.selection.getNode()))};return n(),Ot(e,n)}},At=function(e){return function(t){var n=function(){return t.setDisabled(null===ye(e,e.selection.getNode()))};return n(),Ot(e,n)}},Dt=function(e){return function(t){var n=function(t){return we(t)||ke(e.selection.getRng())},r=e.dom.getParents(e.selection.getStart());return t.setDisabled(!n(r)),Ot(e,(function(e){return t.setDisabled(!n(e.parents))}))}},Mt=function(e){e.addCommand("mceLink",(function(){q(e)?e.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):Ct(e)()}))},Rt=function(e){e.addShortcut("Meta+K","",(function(){e.execCommand("mceLink")}))},Nt=function(e){e.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:Ct(e),onSetup:Et(e)}),e.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:St(e),onSetup:At(e)}),e.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return Be(e)},onSetup:Dt(e)})},Bt=function(e){e.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:St(e),onSetup:At(e)}),e.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:Ct(e)}),e.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return Be(e)},onSetup:Dt(e)})},Pt=function(e){var t="link unlink openlink",n="link";e.ui.registry.addContextMenu("link",{update:function(r){return we(e.dom.getParents(r,"a"))?t:n}})},Lt=function(e){var t=function(e){e.selection.collapse(!1)},n=function(t){var n=e.selection.getNode();return t.setDisabled(!ye(e,n)),f},r=function(t){var n=ye(e),r=_e(e);if(!n&&r){var o=be(e.selection,n);return k.some(o.length>0?o:t)}return k.none()};e.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Et(e)},label:"Link",predicate:function(t){return!!ye(e,t)&&P(e)},initValue:function(){var t=ye(e);return t?pe(t):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(t){var n=e.selection.getNode();return t.setActive(!!ye(e,n)),Et(e)(t)},onAction:function(n){var o=n.getValue(),i=r(o),a={href:o,attach:f};Ne(e,a,{href:o,text:i,title:k.none(),rel:k.none(),target:k.none(),class:k.none()}),t(e),n.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(t){Be(e),t.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(t){St(e)(),t.hide()}}]})};function It(){e.add("link",(function(e){Nt(e),Bt(e),Pt(e),Lt(e),Tt(e),Mt(e),Rt(e)}))}It()})()},c4a9:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=function(){return"undefined"!==typeof window?window:e},o=function(){var e=r();return e&&e.tinymce?e.tinymce:null}}).call(this,n("c8ba"))},ca72:function(e,t,n){"use strict";var r=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],o=function(e){return-1!==r.map((function(e){return e.toLowerCase()})).indexOf(e.toLowerCase())},i=function(e,t,n){Object.keys(t).filter(o).forEach((function(r){var o=t[r];"function"===typeof o&&("onInit"===r?o(e,n):n.on(r.substring(2),(function(e){return o(e,n)})))}))},a=function(e,t){var n=e.$props.modelEvents?e.$props.modelEvents:null,r=Array.isArray(n)?n.join(" "):n;t.on(r||"change input undo redo",(function(){e.$emit("input",t.getContent({format:e.$props.outputFormat}))}))},c=function(e,t,n){var r=t.$props.value?t.$props.value:"",o=t.$props.initialValue?t.$props.initialValue:"";n.setContent(r||(t.initialized?t.cache:o)),t.$watch("value",(function(e,r){n&&"string"===typeof e&&e!==r&&e!==n.getContent({format:t.$props.outputFormat})&&n.setContent(e)})),t.$listeners.input&&a(t,n),i(e,t.$listeners,n),t.initialized=!0},u=0,s=function(e){var t=Date.now(),n=Math.floor(1e9*Math.random());return u++,e+"_"+n+u+String(t)},l=function(e){return null!==e&&"textarea"===e.tagName.toLowerCase()},f=function(e){return"undefined"===typeof e||""===e?[]:Array.isArray(e)?e:e.split(" ")},d=function(e,t){return f(e).concat(f(t))},m=function(e){return null===e||void 0===e},g=function(){return{listeners:[],scriptId:s("tiny-script"),scriptLoaded:!1}},p=function(){var e=g(),t=function(e,t,n,r){var o=t.createElement("script");o.referrerPolicy="origin",o.type="application/javascript",o.id=e,o.src=n;var i=function(){o.removeEventListener("load",i),r()};o.addEventListener("load",i),t.head&&t.head.appendChild(o)},n=function(n,r,o){e.scriptLoaded?o():(e.listeners.push(o),n.getElementById(e.scriptId)||t(e.scriptId,n,r,(function(){e.listeners.forEach((function(e){return e()})),e.scriptLoaded=!0})))},r=function(){e=g()};return{load:n,reinitialize:r}},h=p(),v=n("c4a9"),y={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return"html"===e||"text"===e}}},b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},b.apply(this,arguments)},w=function(e,t,n){return e(n||"div",{attrs:{id:t}})},k=function(e,t){return e("textarea",{attrs:{id:t},style:{visibility:"hidden"}})},_=function(e){return function(){var t=b(b({},e.$props.init),{readonly:e.$props.disabled,selector:"#"+e.elementId,plugins:d(e.$props.init&&e.$props.init.plugins,e.$props.plugins),toolbar:e.$props.toolbar||e.$props.init&&e.$props.init.toolbar,inline:e.inlineEditor,setup:function(t){e.editor=t,t.on("init",(function(n){return c(n,e,t)})),e.$props.init&&"function"===typeof e.$props.init.setup&&e.$props.init.setup(t)}});l(e.element)&&(e.element.style.visibility="",e.element.style.display=""),Object(v["a"])().init(t)}},x={props:y,created:function(){this.elementId=this.$props.id||s("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline,this.initialized=!1},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==Object(v["a"])())_(this)();else if(this.element&&this.element.ownerDocument){var e=this.$props.cloudChannel?this.$props.cloudChannel:"5",t=this.$props.apiKey?this.$props.apiKey:"no-api-key",n=m(this.$props.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+t+"/tinymce/"+e+"/tinymce.min.js":this.$props.tinymceScriptSrc;h.load(this.element.ownerDocument,n,_(this))}},beforeDestroy:function(){null!==Object(v["a"])()&&Object(v["a"])().remove(this.editor)},deactivated:function(){var e;this.inlineEditor||(this.cache=this.editor.getContent(),null===(e=Object(v["a"])())||void 0===e||e.remove(this.editor))},activated:function(){!this.inlineEditor&&this.initialized&&_(this)()},render:function(e){return this.inlineEditor?w(e,this.elementId,this.$props.tagName):k(e,this.elementId)}};t["a"]=x},cdd9:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)},n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},o=function(e){return function(t){return typeof t===e}},i=function(e){return function(t){return e===t}},a=r("string"),c=r("object"),u=r("array"),s=i(null),l=o("boolean"),f=function(e){return null===e||void 0===e},d=function(e){return!f(e)},m=o("function"),g=o("number"),p=function(){},h=function(e){return function(){return e}},v=function(e){return e},y=h(!1),b=h(!0),w=function(){return k},k=function(){var e=function(e){return e()},t=v,n={fold:function(e,t){return e()},isSome:y,isNone:b,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:h(null),getOrUndefined:h(void 0),or:t,orThunk:e,map:w,each:p,bind:w,exists:y,forall:b,filter:function(){return w()},toArray:function(){return[]},toString:h("none()")};return n}(),_=function(e){var t=h(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:b,isNone:y,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return _(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:k},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},x=function(e){return null===e||void 0===e?k:_(e)},z={some:_,none:w,from:x},C=Object.keys,S=Object.hasOwnProperty,T=function(e,t){for(var n=C(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},O=function(e){return function(t,n){e[n]=t}},E=function(e,t,n,r){var o={};return T(e,(function(e,o){(t(e,o)?n:r)(e,o)})),o},A=function(e,t){var n={};return E(e,t,O(n),p),n},D=function(e,t){return S.call(e,t)},M=function(e,t){return D(e,t)&&void 0!==e[t]&&null!==e[t]},R=Array.prototype.push,N=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!u(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);R.apply(t,e[n])}return t},B=function(e,t){return t>=0&&t<e.length?z.some(e[t]):z.none()},P=function(e){return B(e,0)},L=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return z.none()};"undefined"!==typeof window?window:Function("return this;")();var I=function(e,t,n){if(!(a(n)||l(n)||g(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},H=function(e,t,n){I(e.dom,t,n)},F=function(e,t){e.dom.removeAttribute(t)},j=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return q(r.childNodes[0])},V=function(e,t){var n=t||document,r=n.createElement(e);return q(r)},U=function(e,t){var n=t||document,r=n.createTextNode(e);return q(r)},q=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},W=function(e,t,n){return z.from(e.dom.elementFromPoint(t,n)).map(q)},$={fromHtml:j,fromTag:V,fromText:U,fromDom:q,fromPoint:W},G=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),K=tinymce.util.Tools.resolve("tinymce.util.Promise"),X=tinymce.util.Tools.resolve("tinymce.util.URI"),Y=tinymce.util.Tools.resolve("tinymce.util.XHR"),J=function(e){return e.getParam("image_dimensions",!0,"boolean")},Z=function(e){return e.getParam("image_advtab",!1,"boolean")},Q=function(e){return e.getParam("image_uploadtab",!0,"boolean")},ee=function(e){return e.getParam("image_prepend_url","","string")},te=function(e){return e.getParam("image_class_list")},ne=function(e){return e.getParam("image_description",!0,"boolean")},re=function(e){return e.getParam("image_title",!1,"boolean")},oe=function(e){return e.getParam("image_caption",!1,"boolean")},ie=function(e){return e.getParam("image_list",!1)},ae=function(e){return d(e.getParam("images_upload_url"))},ce=function(e){return d(e.getParam("images_upload_handler"))},ue=function(e){return e.getParam("a11y_advanced_options",!1,"boolean")},se=function(e){return e.getParam("automatic_uploads",!0,"boolean")},le=function(e,t){return Math.max(parseInt(e,10),parseInt(t,10))},fe=function(e){return new K((function(t){var n=document.createElement("img"),r=function(e){n.onload=n.onerror=null,n.parentNode&&n.parentNode.removeChild(n),t(e)};n.onload=function(){var e=le(n.width,n.clientWidth),t=le(n.height,n.clientHeight),o={width:e,height:t};r(K.resolve(o))},n.onerror=function(){r(K.reject("Failed to get image dimensions for: "+e))};var o=n.style;o.visibility="hidden",o.position="fixed",o.bottom=o.left="0px",o.width=o.height="auto",document.body.appendChild(n),n.src=e}))},de=function(e){return e&&(e=e.replace(/px$/,"")),e},me=function(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e},ge=function(e){if(e.margin){var t=String(e.margin).split(" ");switch(t.length){case 1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case 2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case 3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case 4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}delete e.margin}return e},pe=function(e,t){var n=ie(e);a(n)?Y.send({url:n,success:function(e){t(JSON.parse(e))}}):m(n)?n(t):t(n)},he=function(e,t,n){var r=function(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())};n.onload=function(){t.width||t.height||!J(e)||e.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},ve=function(e){return new K((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=function(){n(r.error.message)},r.readAsDataURL(e)}))},ye=function(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))},be=function(e,t){return X.isDomSafe(t,"img",e.settings)},we=G.DOM,ke=function(e){return e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?de(e.style.marginLeft):""},_e=function(e){return e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?de(e.style.marginTop):""},xe=function(e){return e.style.borderWidth?de(e.style.borderWidth):""},ze=function(e,t){return e.hasAttribute(t)?e.getAttribute(t):""},Ce=function(e,t){return e.style[t]?e.style[t]:""},Se=function(e){return null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName},Te=function(e,t,n){""===n?e.removeAttribute(t):e.setAttribute(t,n)},Oe=function(e){var t=we.create("figure",{class:"image"});we.insertAfter(t,e),t.appendChild(e),t.appendChild(we.create("figcaption",{contentEditable:"true"},"Caption")),t.contentEditable="false"},Ee=function(e){var t=e.parentNode;we.insertAfter(e,t),we.remove(t)},Ae=function(e){Se(e)?Ee(e):Oe(e)},De=function(e,t){var n=e.getAttribute("style"),r=t(null!==n?n:"");r.length>0?(e.setAttribute("style",r),e.setAttribute("data-mce-style",r)):e.removeAttribute("style")},Me=function(e,t){return function(e,n,r){e.style[n]?(e.style[n]=me(r),De(e,t)):Te(e,n,r)}},Re=function(e,t){return e.style[t]?de(e.style[t]):ze(e,t)},Ne=function(e,t){var n=me(t);e.style.marginLeft=n,e.style.marginRight=n},Be=function(e,t){var n=me(t);e.style.marginTop=n,e.style.marginBottom=n},Pe=function(e,t){var n=me(t);e.style.borderWidth=n},Le=function(e,t){e.style.borderStyle=t},Ie=function(e){return Ce(e,"borderStyle")},He=function(e){return"FIGURE"===e.nodeName},Fe=function(e){return"IMG"===e.nodeName},je=function(e){return 0===we.getAttrib(e,"alt").length&&"presentation"===we.getAttrib(e,"role")},Ve=function(e){return je(e)?"":ze(e,"alt")},Ue=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},qe=function(e,t){var n=document.createElement("img");return Te(n,"style",t.style),(ke(n)||""!==t.hspace)&&Ne(n,t.hspace),(_e(n)||""!==t.vspace)&&Be(n,t.vspace),(xe(n)||""!==t.border)&&Pe(n,t.border),(Ie(n)||""!==t.borderStyle)&&Le(n,t.borderStyle),e(n.getAttribute("style"))},We=function(e,n){var r=document.createElement("img");if(Je(e,t(t({},n),{caption:!1}),r),Ke(r,n.alt,n.isDecorative),n.caption){var o=we.create("figure",{class:"image"});return o.appendChild(r),o.appendChild(we.create("figcaption",{contentEditable:"true"},"Caption")),o.contentEditable="false",o}return r},$e=function(e,t){return{src:ze(t,"src"),alt:Ve(t),title:ze(t,"title"),width:Re(t,"width"),height:Re(t,"height"),class:ze(t,"class"),style:e(ze(t,"style")),caption:Se(t),hspace:ke(t),vspace:_e(t),border:xe(t),borderStyle:Ce(t,"borderStyle"),isDecorative:je(t)}},Ge=function(e,t,n,r,o){n[r]!==t[r]&&o(e,r,n[r])},Ke=function(e,t,n){if(n){we.setAttrib(e,"role","presentation");var r=$.fromDom(e);H(r,"alt","")}else{if(s(t)){r=$.fromDom(e);F(r,"alt")}else{r=$.fromDom(e);H(r,"alt",t)}"presentation"===we.getAttrib(e,"role")&&we.setAttrib(e,"role","")}},Xe=function(e,t,n){n.alt===t.alt&&n.isDecorative===t.isDecorative||Ke(e,n.alt,n.isDecorative)},Ye=function(e,t){return function(n,r,o){e(n,o),De(n,t)}},Je=function(e,t,n){var r=$e(e,n);Ge(n,r,t,"caption",(function(e,t,n){return Ae(e)})),Ge(n,r,t,"src",Te),Ge(n,r,t,"title",Te),Ge(n,r,t,"width",Me("width",e)),Ge(n,r,t,"height",Me("height",e)),Ge(n,r,t,"class",Te),Ge(n,r,t,"style",Ye((function(e,t){return Te(e,"style",t)}),e)),Ge(n,r,t,"hspace",Ye(Ne,e)),Ge(n,r,t,"vspace",Ye(Be,e)),Ge(n,r,t,"border",Ye(Pe,e)),Ge(n,r,t,"borderStyle",Ye(Le,e)),Xe(n,r,t)},Ze=function(e,t){var n=e.dom.styles.parse(t),r=ge(n),o=e.dom.styles.parse(e.dom.styles.serialize(r));return e.dom.styles.serialize(o)},Qe=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return n?e.dom.select("img",n)[0]:t&&("IMG"!==t.nodeName||ye(t))?null:t},et=function(e,t){var n=e.dom,r=A(e.schema.getTextBlockElements(),(function(t,n){return!e.schema.isValidChild(n,"figure")})),o=n.getParent(t.parentNode,(function(e){return M(r,e.nodeName)}),e.getBody());return o?n.split(o,t):t},tt=function(e){var t=Qe(e);return t?$e((function(t){return Ze(e,t)}),t):Ue()},nt=function(e,t){var n=We((function(t){return Ze(e,t)}),t);e.dom.setAttrib(n,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(n.outerHTML);var r=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(r,"data-mce-id",null),He(r)){var o=et(e,r);e.selection.select(o)}else e.selection.select(r)},rt=function(e,t){e.dom.setAttrib(t,"src",t.getAttribute("src"))},ot=function(e,t){if(t){var n=e.dom.is(t.parentNode,"figure.image")?t.parentNode:t;e.dom.remove(n),e.focus(),e.nodeChanged(),e.dom.isEmpty(e.getBody())&&(e.setContent(""),e.selection.setCursorLocation())}},it=function(e,t){var n=Qe(e);if(Je((function(t){return Ze(e,t)}),t,n),rt(e,n),He(n.parentNode)){var r=n.parentNode;et(e,r),e.selection.select(n.parentNode)}else e.selection.select(n),he(e,t,n)},at=function(e,n){var r=n.src;return t(t({},n),{src:be(e,r)?r:""})},ct=function(e,n){var r=Qe(e);if(r){var o=$e((function(t){return Ze(e,t)}),r),i=t(t({},o),n),a=at(e,i);i.src?it(e,a):ot(e,r)}else n.src&&nt(e,t(t({},Ue()),n))},ut=function(e,t){var n=c(e)&&c(t);return n?lt(e,t):t},st=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<t.length;o++){var i=t[o];for(var a in i)D(i,a)&&(r[a]=e(r[a],i[a]))}return r}},lt=st(ut),ft=function(e){return e.length>0},dt=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),mt=tinymce.util.Tools.resolve("tinymce.util.Tools"),gt=function(e){return a(e.value)?e.value:""},pt=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},ht=function(e,t){var n=[];return mt.each(e,(function(e){var r=pt(e);if(void 0!==e.menu){var o=ht(e.menu,t);n.push({text:r,items:o})}else{var i=t(e);n.push({text:r,value:i})}})),n},vt=function(e){return void 0===e&&(e=gt),function(t){return t?z.from(t).map((function(t){return ht(t,e)})):z.none()}},yt=function(e){return vt(gt)(e)},bt=function(e){return D(e,"items")},wt=function(e,t){return L(e,(function(e){return bt(e)?wt(e.items,t):e.value===t?z.some(e):z.none()}))},kt=function(e,t){return e.bind((function(e){return wt(e,t)}))},_t={sanitizer:vt,sanitize:yt,findEntry:kt},xt=function(e){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},zt={makeTab:xt},Ct=function(e){var t=_t.sanitizer((function(t){return e.convertURL(t.value||t.url,"src")})),n=new K((function(n){pe(e,(function(e){n(t(e).map((function(e){return N([[{text:"None",value:""}],e])})))}))})),r=_t.sanitize(te(e)),o=Z(e),i=Q(e),c=ae(e),u=ce(e),s=tt(e),l=ne(e),f=re(e),d=J(e),m=oe(e),g=ue(e),p=se(e),h=z.some(ee(e)).filter((function(e){return a(e)&&e.length>0}));return n.then((function(e){return{image:s,imageList:e,classList:r,hasAdvTab:o,hasUploadTab:i,hasUploadUrl:c,hasUploadHandler:u,hasDescription:l,hasImageTitle:f,hasDimensions:d,hasImageCaption:m,prependURL:h,hasAccessibilityOptions:g,automaticUploads:p}}))},St=function(e){var n={name:"src",type:"urlinput",filetype:"image",label:"Source"},r=e.imageList.map((function(e){return{name:"images",type:"listbox",label:"Image list",items:e}})),o={name:"alt",type:"input",label:"Alternative description",disabled:e.hasAccessibilityOptions&&e.image.isDecorative},i={name:"title",type:"input",label:"Image title"},a={name:"dimensions",type:"sizeinput"},c={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},u=e.classList.map((function(e){return{name:"classes",type:"listbox",label:"Class",items:e}})),s={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},l=function(e){return e?{type:"grid",columns:2}:{type:"panel"}};return N([[n],r.toArray(),e.hasAccessibilityOptions&&e.hasDescription?[c]:[],e.hasDescription?[o]:[],e.hasImageTitle?[i]:[],e.hasDimensions?[a]:[],[t(t({},l(e.classList.isSome()&&e.hasImageCaption)),{items:N([u.toArray(),e.hasImageCaption?[s]:[]])})]])},Tt=function(e){return{title:"General",name:"general",items:St(e)}},Ot={makeTab:Tt,makeItems:St},Et=function(e){var t=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:t}},At={makeTab:Et},Dt=function(e){return{prevImage:_t.findEntry(e.imageList,e.image.src),prevAlt:e.image.alt,open:!0}},Mt=function(e){return{src:{value:e.src,meta:{}},images:e.src,alt:e.alt,title:e.title,dimensions:{width:e.width,height:e.height},classes:e.class,caption:e.caption,style:e.style,vspace:e.vspace,border:e.border,hspace:e.hspace,borderstyle:e.borderStyle,fileinput:[],isDecorative:e.isDecorative}},Rt=function(e,t){return{src:e.src.value,alt:0===e.alt.length&&t?null:e.alt,title:e.title,width:e.dimensions.width,height:e.dimensions.height,class:e.classes,style:e.style,caption:e.caption,hspace:e.hspace,vspace:e.vspace,border:e.border,borderStyle:e.borderstyle,isDecorative:e.isDecorative}},Nt=function(e,t){return/^(?:[a-zA-Z]+:)?\/\//.test(t)?z.none():e.prependURL.bind((function(e){return t.substring(0,e.length)!==e?z.some(e+t):z.none()}))},Bt=function(e,t){var n=t.getData();Nt(e,n.src.value).each((function(e){t.setData({src:{value:e,meta:n.src.meta}})}))},Pt=function(e,t,n){e.hasDescription&&a(n.alt)&&(t.alt=n.alt),e.hasAccessibilityOptions&&(t.isDecorative=n.isDecorative||t.isDecorative||!1),e.hasImageTitle&&a(n.title)&&(t.title=n.title),e.hasDimensions&&(a(n.width)&&(t.dimensions.width=n.width),a(n.height)&&(t.dimensions.height=n.height)),a(n.class)&&_t.findEntry(e.classList,n.class).each((function(e){t.classes=e.value})),e.hasImageCaption&&l(n.caption)&&(t.caption=n.caption),e.hasAdvTab&&(a(n.style)&&(t.style=n.style),a(n.vspace)&&(t.vspace=n.vspace),a(n.border)&&(t.border=n.border),a(n.hspace)&&(t.hspace=n.hspace),a(n.borderstyle)&&(t.borderstyle=n.borderstyle))},Lt=function(e,t){var n=t.getData(),r=n.src.meta;if(void 0!==r){var o=lt({},n);Pt(e,o,r),t.setData(o)}},It=function(e,t,n,r){var o=r.getData(),i=o.src.value,a=o.src.meta||{};a.width||a.height||!t.hasDimensions||(ft(i)?e.imageSize(i).then((function(e){n.open&&r.setData({dimensions:e})})).catch((function(e){return console.error(e)})):r.setData({dimensions:{width:"",height:""}}))},Ht=function(e,t,n){var r=n.getData(),o=_t.findEntry(e.imageList,r.src.value);t.prevImage=o,n.setData({images:o.map((function(e){return e.value})).getOr("")})},Ft=function(e,t,n,r){Bt(t,r),Lt(t,r),It(e,t,n,r),Ht(t,n,r)},jt=function(e,t,n,r){var o=r.getData(),i=_t.findEntry(t.imageList,o.images);i.each((function(e){var t=""===o.alt||n.prevImage.map((function(e){return e.text===o.alt})).getOr(!1);t?""===e.value?r.setData({src:e,alt:n.prevAlt}):r.setData({src:e,alt:e.text}):r.setData({src:e})})),n.prevImage=i,Ft(e,t,n,r)},Vt=function(e){var t=e["margin-top"]&&e["margin-bottom"]&&e["margin-top"]===e["margin-bottom"];return t?de(String(e["margin-top"])):""},Ut=function(e){var t=e["margin-right"]&&e["margin-left"]&&e["margin-right"]===e["margin-left"];return t?de(String(e["margin-right"])):""},qt=function(e){return e["border-width"]?de(String(e["border-width"])):""},Wt=function(e){return e["border-style"]?String(e["border-style"]):""},$t=function(e,t,n){return t(e(t(n)))},Gt=function(e,t,n){var r=ge(e(n.style)),o=lt({},n);return o.vspace=Vt(r),o.hspace=Ut(r),o.border=qt(r),o.borderstyle=Wt(r),o.style=$t(e,t,r),o},Kt=function(e,t){var n=t.getData(),r=Gt(e.parseStyle,e.serializeStyle,n);t.setData(r)},Xt=function(e,t,n){var r=lt(Mt(t.image),n.getData()),o=qe(e.normalizeCss,Rt(r,!1));n.setData({style:o})},Yt=function(e,t,n,r){var o=r.getData();r.block("Uploading image"),P(o.fileinput).fold((function(){r.unblock()}),(function(o){var i=URL.createObjectURL(o),a=function(){r.unblock(),URL.revokeObjectURL(i)},c=function(o){r.setData({src:{value:o,meta:{}}}),r.showTab("general"),Ft(e,t,n,r)};ve(o).then((function(n){var u=e.createBlobCache(o,i,n);t.automaticUploads?e.uploadImage(u).then((function(e){c(e.url),a()})).catch((function(t){a(),e.alertErr(t)})):(e.addToBlobCache(u),c(u.blobUri()),r.unblock())}))}))},Jt=function(e,t,n){return function(r,o){"src"===o.name?Ft(e,t,n,r):"images"===o.name?jt(e,t,n,r):"alt"===o.name?n.prevAlt=r.getData().alt:"style"===o.name?Kt(e,r):"vspace"===o.name||"hspace"===o.name||"border"===o.name||"borderstyle"===o.name?Xt(e,t,r):"fileinput"===o.name?Yt(e,t,n,r):"isDecorative"===o.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},Zt=function(e){return function(){e.open=!1}},Qt=function(e){if(e.hasAdvTab||e.hasUploadUrl||e.hasUploadHandler){var t={type:"tabpanel",tabs:N([[Ot.makeTab(e)],e.hasAdvTab?[zt.makeTab(e)]:[],e.hasUploadTab&&(e.hasUploadUrl||e.hasUploadHandler)?[At.makeTab(e)]:[]])};return t}var n={type:"panel",items:Ot.makeItems(e)};return n},en=function(e){return function(t){var n=Dt(t);return{title:"Insert/Edit Image",size:"normal",body:Qt(t),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Mt(t.image),onSubmit:e.onSubmit(t),onChange:Jt(e,t,n),onClose:Zt(n)}}},tn=function(e){return function(t){return function(n){var r=lt(Mt(t.image),n.getData());e.execCommand("mceUpdateImage",!1,Rt(r,t.hasAccessibilityOptions)),e.editorUpload.uploadImagesAuto(),n.close()}}},nn=function(e){return function(t){return be(e,t)?fe(e.documentBaseURI.toAbsolute(t)).then((function(e){return{width:String(e.width),height:String(e.height)}})):K.resolve({width:"",height:""})}},rn=function(e){return function(t,n,r){return e.editorUpload.blobCache.create({blob:t,blobUri:n,name:t.name?t.name.replace(/\.[^\.]+$/,""):null,filename:t.name,base64:r.split(",")[1]})}},on=function(e){return function(t){e.editorUpload.blobCache.add(t)}},an=function(e){return function(t){e.windowManager.alert(t)}},cn=function(e){return function(t){return Ze(e,t)}},un=function(e){return function(t){return e.dom.parseStyle(t)}},sn=function(e){return function(t,n){return e.dom.serializeStyle(t,n)}},ln=function(e){return function(t){return dt(e).upload([t],!1).then((function(e){return 0===e.length?K.reject("Failed to upload image"):!1===e[0].status?K.reject(e[0].error.message):e[0]}))}},fn=function(e){var t={onSubmit:tn(e),imageSize:nn(e),addToBlobCache:on(e),createBlobCache:rn(e),alertErr:an(e),normalizeCss:cn(e),parseStyle:un(e),serializeStyle:sn(e),uploadImage:ln(e)},n=function(){Ct(e).then(en(t)).then(e.windowManager.open)};return{open:n}},dn=function(e){e.addCommand("mceImage",fn(e).open),e.addCommand("mceUpdateImage",(function(t,n){e.undoManager.transact((function(){return ct(e,n)}))}))},mn=function(e){var t=e.attr("class");return t&&/\bimage\b/.test(t)},gn=function(e){return function(t){var n=t.length,r=function(t){t.attr("contenteditable",e?"true":null)};while(n--){var o=t[n];mn(o)&&(o.attr("contenteditable",e?"false":null),mt.each(o.getAll("figcaption"),r))}}},pn=function(e){e.on("PreInit",(function(){e.parser.addNodeFilter("figure",gn(!0)),e.serializer.addNodeFilter("figure",gn(!1))}))},hn=function(e){e.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:fn(e).open,onSetup:function(t){return t.setActive(d(Qe(e))),e.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",t.setActive).unbind}}),e.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:fn(e).open}),e.ui.registry.addContextMenu("image",{update:function(e){return He(e)||Fe(e)&&!ye(e)?["image"]:[]}})};function vn(){e.add("image",(function(e){pn(e),hn(e),dn(e)}))}vn()})()},d169:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return function(t){return e===t}},n=t(null),r=function(){},o=function(e){return function(){return e}},i=function(e){return e},a=o(!1),c=o(!0),u=function(){return s},s=function(){var e=function(e){return e()},t=i,n={fold:function(e,t){return e()},isSome:a,isNone:c,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:t,orThunk:e,map:u,each:r,bind:u,exists:a,forall:c,filter:function(){return u()},toArray:function(){return[]},toString:o("none()")};return n}(),l=function(e){var t=o(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:c,isNone:a,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return l(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:s},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},f=function(e){return null===e||void 0===e?s:l(e)},d={some:l,none:u,from:f},m=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return!0}return!1},g=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},p=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},h=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},v=function(e,t){var r=null,o=function(){n(r)||(clearTimeout(r),r=null)},i=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];o(),r=setTimeout((function(){r=null,e.apply(null,n)}),t)};return{cancel:o,throttle:i}},y=function(e,t){e.insertContent(t)},b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},b.apply(this,arguments)},w=Object.keys,k=Object.hasOwnProperty,_=function(e,t){for(var n=w(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},x=function(e,t){return z(e,(function(e,n){return{k:n,v:t(e,n)}}))},z=function(e,t){var n={};return _(e,(function(e,r){var o=t(e,r);n[o.k]=o.v})),n},C=function(e,t){return k.call(e,t)},S=function(e,t){return t},T=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<t.length;o++){var i=t[o];for(var a in i)C(i,a)&&(r[a]=e(r[a],i[a]))}return r}},O=T(S),E=function(e){var t=h(d.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(d.none())},o=function(){return t.get().isSome()},i=function(){return t.get()},a=function(e){n(),t.set(d.some(e))};return{clear:r,isSet:o,get:i,set:a}},A=function(){var e=E(r),t=function(t){return e.get().each(t)};return b(b({},e),{on:t})},D=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},M=function(e,t){return-1!==e.indexOf(t)},R=function(e,t){return D(e,t,0)},N=tinymce.util.Tools.resolve("tinymce.Resource"),B=tinymce.util.Tools.resolve("tinymce.util.Delay"),P=tinymce.util.Tools.resolve("tinymce.util.Promise"),L="tinymce.plugins.emoticons",I=function(e){return e.getParam("emoticons_database","emojis","string")},H=function(e,t){var n=I(e);return e.getParam("emoticons_database_url",t+"/js/"+n+e.suffix+".js","string")},F=function(e){return e.getParam("emoticons_database_id",L,"string")},j=function(e){return e.getParam("emoticons_append",{},"object")},V=function(e){return e.getParam("emoticons_images_url","https://twemoji.maxcdn.com/v/13.0.1/72x72/","string")},U="All",q={symbols:"Symbols",people:"People",animals_and_nature:"Animals and Nature",food_and_drink:"Food and Drink",activity:"Activity",travel_and_places:"Travel and Places",objects:"Objects",flags:"Flags",user:"User Defined"},W=function(e,t){return C(e,t)?e[t]:t},$=function(e){var t=j(e);return x(t,(function(e){return b({keywords:[],category:"user"},e)}))},G=function(e,t,n){var r=A(),o=A(),i=V(e),a=function(e){return R(e.char,"<img")?e.char.replace(/src="([^"]+)"/,(function(e,t){return'src="'+i+t+'"'})):e.char},c=function(e){var t={},n=[];_(e,(function(e,r){var o={title:r,keywords:e.keywords,char:a(e),category:W(q,e.category)},i=void 0!==t[o.category]?t[o.category]:[];t[o.category]=i.concat([o]),n.push(o)})),r.set(t),o.set(n)};e.on("init",(function(){N.load(n,t).then((function(t){var n=$(e);c(O(t,n))}),(function(e){console.log("Failed to load emoticons: "+e),r.set({}),o.set([])}))}));var u=function(e){return e===U?s():r.get().bind((function(t){return d.from(t[e])})).getOr([])},s=function(){return o.get().getOr([])},l=function(){return[U].concat(w(r.get().getOr({})))},f=function(){return m()?P.resolve(!0):new P((function(e,n){var r=15,o=B.setInterval((function(){m()?(B.clearInterval(o),e(!0)):(r--,r<0&&(console.log("Could not load emojis from url: "+t),B.clearInterval(o),n(!1)))}),100)}))},m=function(){return r.isSet()&&o.isSet()};return{listCategories:l,hasLoaded:m,waitForLoad:f,listAll:s,listCategory:u}},K=function(e,t){return M(e.title.toLowerCase(),t)||m(e.keywords,(function(e){return M(e.toLowerCase(),t)}))},X=function(e,t,n){for(var r=[],o=t.toLowerCase(),i=n.fold((function(){return a}),(function(e){return function(t){return t>=e}})),c=0;c<e.length;c++)if((0===t.length||K(e[c],o))&&(r.push({value:e[c].char,text:e[c].title,icon:e[c].char}),i(r.length)))break;return r},Y="pattern",J=function(e,t){var n={pattern:"",results:X(t.listAll(),"",d.some(300))},r=h(U),o=function(e){var n=e.getData(),o=r.get(),i=t.listCategory(o),a=X(i,n[Y],o===U?d.some(300):d.none());e.setData({results:a})},i=v((function(e){o(e)}),200),a={label:"Search",type:"input",name:Y},c={type:"collection",name:"results"},u=function(){var o={type:"tabpanel",tabs:g(t.listCategories(),(function(e){return{title:e,name:e,items:[a,c]}}))};return{title:"Emoticons",size:"normal",body:o,initialData:n,onTabChange:function(e,t){r.set(t.newTabName),i.throttle(e)},onChange:i.throttle,onAction:function(t,n){"results"===n.name&&(y(e,n.value),t.close())},buttons:[{type:"cancel",text:"Close",primary:!0}]}},s=e.windowManager.open(u());s.focus(Y),t.hasLoaded()||(s.block("Loading emoticons..."),t.waitForLoad().then((function(){s.redial(u()),i.throttle(s),s.focus(Y),s.unblock()})).catch((function(e){s.redial({title:"Emoticons",body:{type:"panel",items:[{type:"alertbanner",level:"error",icon:"warning",text:"<p>Could not load emoticons</p>"}]},buttons:[{type:"cancel",text:"Close",primary:!0}],initialData:{pattern:"",results:[]}}),s.focus(Y),s.unblock()})))},Z=function(e,t){e.addCommand("mceEmoticons",(function(){return J(e,t)}))},Q=function(e){e.on("PreInit",(function(){e.parser.addAttributeFilter("data-emoticon",(function(e){p(e,(function(e){e.attr("data-mce-resize","false"),e.attr("data-mce-placeholder","1")}))}))}))},ee=function(e,t){e.ui.registry.addAutocompleter("emoticons",{ch:":",columns:"auto",minChars:2,fetch:function(e,n){return t.waitForLoad().then((function(){var r=t.listAll();return X(r,e,d.some(n))}))},onAction:function(t,n,r){e.selection.setRng(n),e.insertContent(r),t.hide()}})},te=function(e){var t=function(){return e.execCommand("mceEmoticons")};e.ui.registry.addButton("emoticons",{tooltip:"Emoticons",icon:"emoji",onAction:t}),e.ui.registry.addMenuItem("emoticons",{text:"Emoticons...",icon:"emoji",onAction:t})};function ne(){e.add("emoticons",(function(e,t){var n=H(e,t),r=F(e),o=G(e,n,r);Z(e,o),te(e),ee(e,o),Q(e)}))}ne()})()},dbbc:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){e.addCommand("InsertHorizontalRule",(function(){e.execCommand("mceInsertContent",!1,"<hr />")}))},n=function(e){var t=function(){return e.execCommand("InsertHorizontalRule")};e.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:t}),e.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:t})};function r(){e.add("hr",(function(e){t(e),n(e)}))}r()})()},e562:function(e,t,n){(function(t){(function(){"use strict";var n=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)},o=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},i=function(e,t){return a((function(n,r){return e.eq(t(n),t(r))}))},a=function(e){return{eq:e}},c=a((function(e,t){return e===t})),u=c,s=function(e){return a((function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e.eq(t[o],n[o]))return!1;return!0}))},l=function(e,t){return i(s(e),(function(e){return o(e,t)}))},f=function(e){return a((function(t,n){var r=Object.keys(t),o=Object.keys(n);if(!l(u).eq(r,o))return!1;for(var i=r.length,a=0;a<i;a++){var c=r[a];if(!e.eq(t[c],n[c]))return!1}return!0}))},d=a((function(e,t){if(e===t)return!0;var o=n(e),i=n(t);return o===i&&(r(o)?e===t:"array"===o?s(d).eq(e,t):"object"===o&&f(d).eq(e,t))})),m=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},g=function(e){return function(t){return m(t)===e}},p=function(e){return function(t){return typeof t===e}},h=function(e){return function(t){return e===t}},v=g("string"),y=g("object"),b=g("array"),w=h(null),k=p("boolean"),_=h(void 0),x=function(e){return null===e||void 0===e},z=function(e){return!x(e)},C=p("function"),S=p("number"),T=function(){},O=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},E=function(e,t){return function(n){return e(t(n))}},A=function(e){return function(){return e}},D=function(e){return e},M=function(e,t){return e===t};function R(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}var N=function(e){return function(t){return!e(t)}},B=function(e){return function(){throw new Error(e)}},P=function(e){return e()},L=function(e){e()},I=A(!1),H=A(!0),F=function(){return j},j=function(){var e=function(e){return e()},t=D,n={fold:function(e,t){return e()},isSome:I,isNone:H,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:A(null),getOrUndefined:A(void 0),or:t,orThunk:e,map:F,each:T,bind:F,exists:I,forall:H,filter:function(){return F()},toArray:function(){return[]},toString:A("none()")};return n}(),V=function(e){var t=A(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:H,isNone:I,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return V(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:j},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},U=function(e){return null===e||void 0===e?j:V(e)},q={some:V,none:F,from:U},W=Array.prototype.slice,$=Array.prototype.indexOf,G=Array.prototype.push,K=function(e,t){return $.call(e,t)},X=function(e,t){var n=K(e,t);return-1===n?q.none():q.some(n)},Y=function(e,t){return K(e,t)>-1},J=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return!0}return!1},Z=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},Q=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},ee=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},te=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o],c=t(a,o)?n:r;c.push(a)}return{pass:n,fail:r}},ne=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},re=function(e,t,n){return ee(e,(function(e,r){n=t(n,e,r)})),n},oe=function(e,t,n){return Q(e,(function(e,r){n=t(n,e,r)})),n},ie=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return q.some(i);if(n(i,r))break}return q.none()},ae=function(e,t){return ie(e,t,I)},ce=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return q.some(n)}return q.none()},ue=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!b(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);G.apply(t,e[n])}return t},se=function(e,t){return ue(Z(e,t))},le=function(e,t){for(var n=0,r=e.length;n<r;++n){var o=e[n];if(!0!==t(o,n))return!1}return!0},fe=function(e){var t=W.call(e,0);return t.reverse(),t},de=function(e,t){return ne(e,(function(e){return!Y(t,e)}))},me=function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n},ge=function(e,t){var n=W.call(e,0);return n.sort(t),n},pe=function(e,t){return t>=0&&t<e.length?q.some(e[t]):q.none()},he=function(e){return pe(e,0)},ve=function(e){return pe(e,e.length-1)},ye=C(Array.from)?Array.from:function(e){return W.call(e)},be=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return q.none()},we=Object.keys,ke=Object.hasOwnProperty,_e=function(e,t){for(var n=we(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},xe=function(e,t){return ze(e,(function(e,n){return{k:n,v:t(e,n)}}))},ze=function(e,t){var n={};return _e(e,(function(e,r){var o=t(e,r);n[o.k]=o.v})),n},Ce=function(e){return function(t,n){e[n]=t}},Se=function(e,t,n,r){var o={};return _e(e,(function(e,o){(t(e,o)?n:r)(e,o)})),o},Te=function(e,t){var n={},r={};return Se(e,t,Ce(n),Ce(r)),{t:n,f:r}},Oe=function(e,t){var n={};return Se(e,t,Ce(n),T),n},Ee=function(e,t){var n=[];return _e(e,(function(e,r){n.push(t(e,r))})),n},Ae=function(e){return Ee(e,D)},De=function(e,t){return Me(e,t)?q.from(e[t]):q.none()},Me=function(e,t){return ke.call(e,t)},Re=function(e,t){return Me(e,t)&&void 0!==e[t]&&null!==e[t]},Ne=function(e,t,n){return void 0===n&&(n=d),f(n).eq(e,t)},Be=Array.isArray,Pe=function(e){if(Be(e))return e;for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n];return t},Le=function(e,t,n){var r,o;if(!e)return!1;if(n=n||e,void 0!==e.length){for(r=0,o=e.length;r<o;r++)if(!1===t.call(n,e[r],r,e))return!1}else for(r in e)if(Me(e,r)&&!1===t.call(n,e[r],r,e))return!1;return!0},Ie=function(e,t){var n=[];return Le(e,(function(r,o){n.push(t(r,o,e))})),n},He=function(e,t){var n=[];return Le(e,(function(r,o){t&&!t(r,o,e)||n.push(r)})),n},Fe=function(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},je=function(e,t,n,r){for(var o=_(n)?e[0]:n,i=0;i<e.length;i++)o=t.call(r,o,e[i],i);return o},Ve=function(e,t,n){var r,o;for(r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return r;return-1},Ue=function(e){return e[e.length-1]},qe=function(){return qe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qe.apply(this,arguments)};function We(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function $e(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var Ge=function(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}},Ke=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),c=a||r("(pointer:coarse)"),u=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!s&&!u&&!l;return{isiPad:A(o),isiPhone:A(i),isTablet:A(u),isPhone:A(s),isTouch:A(c),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:A(l),isDesktop:A(f)}},Xe=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},Ye=function(e,t){var n=Xe(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Qe(r(1),r(2))},Je=function(e,t){var n=String(t).toLowerCase();return 0===e.length?Ze():Ye(e,n)},Ze=function(){return Qe(0,0)},Qe=function(e,t){return{major:e,minor:t}},et={nu:Qe,detect:Je,unknown:Ze},tt=function(e,t){return be(t.brands,(function(t){var n=t.brand.toLowerCase();return ae(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:et.nu(parseInt(t.version,10),0)}}))}))},nt=function(e,t){var n=String(t).toLowerCase();return ae(e,(function(e){return e.search(n)}))},rt=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ot=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},it=function(e,t){return e.substring(t)},at=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},ct=function(e,t){return st(e,t)?it(e,t.length):e},ut=function(e,t){return-1!==e.indexOf(t)},st=function(e,t){return at(e,t,0)},lt=function(e){return function(t){return t.replace(e,"")}},ft=lt(/^\s+|\s+$/g),dt=lt(/^\s+/g),mt=lt(/\s+$/g),gt=function(e){return e.length>0},pt=function(e){return!gt(e)},ht=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,vt=function(e){return function(t){return ut(t,e)}},yt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ut(e,"edge/")&&ut(e,"chrome")&&ut(e,"safari")&&ut(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ht],search:function(e){return ut(e,"chrome")&&!ut(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ut(e,"msie")||ut(e,"trident")}},{name:"Opera",versionRegexes:[ht,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:vt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:vt("firefox")},{name:"Safari",versionRegexes:[ht,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ut(e,"safari")||ut(e,"mobile/"))&&ut(e,"applewebkit")}}],bt=[{name:"Windows",search:vt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ut(e,"iphone")||ut(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:vt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:vt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:vt("linux"),versionRegexes:[]},{name:"Solaris",search:vt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:vt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:vt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],wt={browsers:A(yt),oses:A(bt)},kt="Edge",_t="Chrome",xt="IE",zt="Opera",Ct="Firefox",St="Safari",Tt=function(){return Ot({current:void 0,version:et.unknown()})},Ot=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(kt),isChrome:r(_t),isIE:r(xt),isOpera:r(zt),isFirefox:r(Ct),isSafari:r(St)}},Et={unknown:Tt,nu:Ot,edge:A(kt),chrome:A(_t),ie:A(xt),opera:A(zt),firefox:A(Ct),safari:A(St)},At="Windows",Dt="iOS",Mt="Android",Rt="Linux",Nt="OSX",Bt="Solaris",Pt="FreeBSD",Lt="ChromeOS",It=function(){return Ht({current:void 0,version:et.unknown()})},Ht=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(At),isiOS:r(Dt),isAndroid:r(Mt),isOSX:r(Nt),isLinux:r(Rt),isSolaris:r(Bt),isFreeBSD:r(Pt),isChromeOS:r(Lt)}},Ft={unknown:It,nu:Ht,windows:A(At),ios:A(Dt),android:A(Mt),linux:A(Rt),osx:A(Nt),solaris:A(Bt),freebsd:A(Pt),chromeos:A(Lt)},jt=function(e,t,n){var r=wt.browsers(),o=wt.oses(),i=t.bind((function(e){return tt(r,e)})).orThunk((function(){return rt(r,e)})).fold(Et.unknown,Et.nu),a=ot(o,e).fold(Ft.unknown,Ft.nu),c=Ke(a,i,e,n);return{browser:i,os:a,deviceType:c}},Vt={detect:jt},Ut=function(e){return window.matchMedia(e).matches},qt=Ge((function(){return Vt.detect(navigator.userAgent,q.from(navigator.userAgentData),Ut)})),Wt=function(){return qt()},$t=navigator.userAgent,Gt=Wt(),Kt=Gt.browser,Xt=Gt.os,Yt=Gt.deviceType,Jt=/WebKit/.test($t)&&!Kt.isEdge(),Zt="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Qt=-1!==$t.indexOf("Windows Phone"),en={opera:Kt.isOpera(),webkit:Jt,ie:!(!Kt.isIE()&&!Kt.isEdge())&&Kt.version.major,gecko:Kt.isFirefox(),mac:Xt.isOSX()||Xt.isiOS(),iOS:Yt.isiPad()||Yt.isiPhone(),android:Xt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Kt.isIE()?document.documentMode||7:10,fileApi:Zt,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Kt.isIE(),desktop:Yt.isDesktop(),windowsPhone:Qt,browser:{current:Kt.current,version:Kt.version,isChrome:Kt.isChrome,isEdge:Kt.isEdge,isFirefox:Kt.isFirefox,isIE:Kt.isIE,isOpera:Kt.isOpera,isSafari:Kt.isSafari},os:{current:Xt.current,version:Xt.version,isAndroid:Xt.isAndroid,isChromeOS:Xt.isChromeOS,isFreeBSD:Xt.isFreeBSD,isiOS:Xt.isiOS,isLinux:Xt.isLinux,isOSX:Xt.isOSX,isSolaris:Xt.isSolaris,isWindows:Xt.isWindows},deviceType:{isDesktop:Yt.isDesktop,isiPad:Yt.isiPad,isiPhone:Yt.isiPhone,isPhone:Yt.isPhone,isTablet:Yt.isTablet,isTouch:Yt.isTouch,isWebView:Yt.isWebView}},tn=/^\s*|\s*$/g,nn=function(e){return null===e||void 0===e?"":(""+e).replace(tn,"")},rn=function(e,t){return t?!("array"!==t||!Be(e))||typeof e===t:void 0!==e},on=function(e,t,n){var r;e=e||[],t=t||",","string"===typeof e&&(e=e.split(t)),n=n||{},r=e.length;while(r--)n[e[r]]={};return n},an=Me,cn=function(e,t,n){var r,o,i,a=this,c=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var u=e[3].match(/(^|\.)(\w+)$/i)[2],s=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!s[u]){if("static"===e[2])return s[u]=t,void(this.onCreate&&this.onCreate(e[2],e[3],s[u]));t[u]||(t[u]=function(){},c=1),s[u]=t[u],a.extend(s[u].prototype,t),e[5]&&(r=a.resolve(e[5]).prototype,o=e[5].match(/\.(\w+)$/i)[1],i=s[u],s[u]=c?function(){return r[o].apply(this,arguments)}:function(){return this.parent=r[o],i.apply(this,arguments)},s[u].prototype[u]=s[u],a.each(r,(function(e,t){s[u].prototype[t]=r[t]})),a.each(t,(function(e,t){r[t]?s[u].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==u&&(s[u].prototype[t]=e)}))),a.each(t.static,(function(e,t){s[u][t]=e}))}},un=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var o=t[r];for(var i in o)if(Me(o,i)){var a=o[i];void 0!==a&&(e[i]=a)}}return e},sn=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Le(e,(function(e,o){if(!1===t.call(r,e,o,n))return!1;sn(e,t,n,r)})))},ln=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)r=e[n],t[r]||(t[r]={}),t=t[r];return t},fn=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0,r=e.length;n<r;n++)if(t=t[e[n]],!t)break;return t},dn=function(e,t){return!e||rn(e,"array")?e:Ie(e.split(t||","),nn)},mn=function(e){var t=en.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},gn={trim:nn,isArray:Be,is:rn,toArray:Pe,makeMap:on,each:Le,map:Ie,grep:He,inArray:Fe,hasOwn:an,extend:un,create:cn,walk:sn,createNS:ln,resolve:fn,explode:dn,_addCacheSuffix:mn},pn=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return yn(r.childNodes[0])},hn=function(e,t){var n=t||document,r=n.createElement(e);return yn(r)},vn=function(e,t){var n=t||document,r=n.createTextNode(e);return yn(r)},yn=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},bn=function(e,t,n){return q.from(e.dom.elementFromPoint(t,n)).map(yn)},wn={fromHtml:pn,fromTag:hn,fromText:vn,fromDom:yn,fromPoint:bn},kn=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},o=t(e);do{o=o.bind(r)}while(o.isSome());return n},_n=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},xn=function(e,t){return _n(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},zn=8,Cn=9,Sn=11,Tn=1,On=3,En=function(e,t){var n=e.dom;if(n.nodeType!==Tn)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},An=function(e){return e.nodeType!==Tn&&e.nodeType!==Cn&&e.nodeType!==Sn||0===e.childElementCount},Dn=function(e,t){var n=void 0===t?document:t.dom;return An(n)?[]:Z(n.querySelectorAll(e),wn.fromDom)},Mn=function(e,t){var n=void 0===t?document:t.dom;return An(n)?q.none():q.from(n.querySelector(e)).map(wn.fromDom)},Rn=function(e,t){return e.dom===t.dom},Nn=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},Bn=function(e,t){return xn(e.dom,t.dom)},Pn=function(e,t){return Wt().browser.isIE()?Bn(e,t):Nn(e,t)};"undefined"!==typeof window?window:Function("return this;")();var Ln=function(e){var t=e.dom.nodeName;return t.toLowerCase()},In=function(e){return e.dom.nodeType},Hn=function(e){return function(t){return In(t)===e}},Fn=function(e){return In(e)===zn||"#comment"===Ln(e)},jn=Hn(Tn),Vn=Hn(On),Un=Hn(Cn),qn=Hn(Sn),Wn=function(e){return function(t){return jn(t)&&Ln(t)===e}},$n=function(e){return wn.fromDom(e.dom.ownerDocument)},Gn=function(e){return Un(e)?e:$n(e)},Kn=function(e){return wn.fromDom(Gn(e).dom.documentElement)},Xn=function(e){return wn.fromDom(Gn(e).dom.defaultView)},Yn=function(e){return q.from(e.dom.parentNode).map(wn.fromDom)},Jn=function(e,t){var n=C(t)?t:I,r=e.dom,o=[];while(null!==r.parentNode&&void 0!==r.parentNode){var i=r.parentNode,a=wn.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o},Zn=function(e){var t=function(t){return ne(t,(function(t){return!Rn(e,t)}))};return Yn(e).map(rr).map(t).getOr([])},Qn=function(e){return q.from(e.dom.previousSibling).map(wn.fromDom)},er=function(e){return q.from(e.dom.nextSibling).map(wn.fromDom)},tr=function(e){return fe(kn(e,Qn))},nr=function(e){return kn(e,er)},rr=function(e){return Z(e.dom.childNodes,wn.fromDom)},or=function(e,t){var n=e.dom.childNodes;return q.from(n[t]).map(wn.fromDom)},ir=function(e){return or(e,0)},ar=function(e){return or(e,e.dom.childNodes.length-1)},cr=function(e){return e.dom.childNodes.length},ur=function(e){var t=e.dom.head;if(null===t||void 0===t)throw new Error("Head is not available yet");return wn.fromDom(t)},sr=function(e){return qn(e)&&z(e.dom.host)},lr=C(Element.prototype.attachShadow)&&C(Node.prototype.getRootNode),fr=A(lr),dr=lr?function(e){return wn.fromDom(e.dom.getRootNode())}:Gn,mr=function(e){return sr(e)?e:ur(Gn(e))},gr=function(e){var t=dr(e);return sr(t)?q.some(t):q.none()},pr=function(e){return wn.fromDom(e.dom.host)},hr=function(e){if(fr()&&z(e.target)){var t=wn.fromDom(e.target);if(jn(t)&&vr(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return he(n)}}return q.from(e.target)},vr=function(e){return z(e.dom.shadowRoot)},yr=function(e,t){var n=Yn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},br=function(e,t){var n=er(e);n.fold((function(){var n=Yn(e);n.each((function(e){kr(e,t)}))}),(function(e){yr(e,t)}))},wr=function(e,t){var n=ir(e);n.fold((function(){kr(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},kr=function(e,t){e.dom.appendChild(t.dom)},_r=function(e,t){yr(e,t),kr(t,e)},xr=function(e,t){Q(t,(function(t){yr(e,t)}))},zr=function(e,t){Q(t,(function(t){kr(e,t)}))},Cr=function(e){e.dom.textContent="",Q(rr(e),(function(e){Sr(e)}))},Sr=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Tr=function(e){var t=rr(e);t.length>0&&xr(e,t),Sr(e)},Or=function(e){var t=Vn(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return gr(wn.fromDom(t)).fold((function(){return n.body.contains(t)}),E(Or,pr))},Er=function(e,t){var n=function(n,r){return Er(e+n,t+r)};return{left:e,top:t,translate:n}},Ar=Er,Dr=function(e){var t=e.getBoundingClientRect();return Ar(t.left,t.top)},Mr=function(e,t){return void 0!==e?e:void 0!==t?t:0},Rr=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom)return Ar(n.offsetLeft,n.offsetTop);var i=Mr(null===r||void 0===r?void 0:r.pageYOffset,o.scrollTop),a=Mr(null===r||void 0===r?void 0:r.pageXOffset,o.scrollLeft),c=Mr(o.clientTop,n.clientTop),u=Mr(o.clientLeft,n.clientLeft);return Nr(e).translate(a-u,i-c)},Nr=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Ar(r.offsetLeft,r.offsetTop):Or(e)?Dr(t):Ar(0,0)},Br=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Ar(n,r)},Pr=function(e,t,n){var r=void 0!==n?n.dom:document,o=r.defaultView;o&&o.scrollTo(e,t)},Lr=function(e,t){var n=Wt().browser.isSafari();n&&C(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},Ir=function(e){var t=void 0===e?window:e;return Wt().browser.isFirefox()?q.none():q.from(t["visualViewport"])},Hr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Fr=function(e){var t=void 0===e?window:e,n=t.document,r=Br(wn.fromDom(n));return Ir(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,o=e.clientHeight;return Hr(r.left,r.top,n,o)}),(function(e){return Hr(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},jr=function(e){return function(t){return!!t&&t.nodeType===e}},Vr=function(e){return!!e&&!Object.getPrototypeOf(e)},Ur=jr(1),qr=function(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return Y(t,n)}return!1}},Wr=function(e,t){var n=t.toLowerCase().split(" ");return function(t){if(Ur(t))for(var r=0;r<n.length;r++){var o=t.ownerDocument.defaultView.getComputedStyle(t,null),i=o?o.getPropertyValue(e):null;if(i===n[r])return!0}return!1}},$r=function(e){return function(t){return Ur(t)&&t.hasAttribute(e)}},Gr=function(e,t){return function(n){return Ur(n)&&n.getAttribute(e)===t}},Kr=function(e){return Ur(e)&&e.hasAttribute("data-mce-bogus")},Xr=function(e){return Ur(e)&&"all"===e.getAttribute("data-mce-bogus")},Yr=function(e){return Ur(e)&&"TABLE"===e.tagName},Jr=function(e){return function(t){if(Ur(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},Zr=qr(["textarea","input"]),Qr=jr(3),eo=jr(8),to=jr(9),no=jr(11),ro=qr(["br"]),oo=qr(["img"]),io=Jr("true"),ao=Jr("false"),co=qr(["td","th"]),uo=qr(["video","audio","object","embed"]),so=function(e,t,n){return void 0===n&&(n=M),e.exists((function(e){return n(e,t)}))},lo=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},fo=function(e,t,n){return e.isSome()&&t.isSome()?q.some(n(e.getOrDie(),t.getOrDie())):q.none()},mo=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?q.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):q.none()},go=function(e,t){return e?q.some(t):q.none()},po=function(e){return void 0!==e.style&&C(e.style.getPropertyValue)},ho=function(e,t,n){if(!(v(n)||k(n)||S(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},vo=function(e,t,n){ho(e.dom,t,n)},yo=function(e,t){var n=e.dom;_e(t,(function(e,t){ho(n,t,e)}))},bo=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},wo=function(e,t){return q.from(bo(e,t))},ko=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},_o=function(e,t){e.dom.removeAttribute(t)},xo=function(e){return oe(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},zo=function(e,t,n){if(!v(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);po(e)&&e.style.setProperty(t,n)},Co=function(e,t){var n=e.dom;_e(t,(function(e,t){zo(n,t,e)}))},So=function(e,t){var n=e.dom,r=window.getComputedStyle(n),o=r.getPropertyValue(t);return""!==o||Or(e)?o:To(n,t)},To=function(e,t){return po(e)?e.style.getPropertyValue(t):""},Oo=function(e,t){var n=e.dom,r=To(n,t);return q.from(r).filter((function(e){return e.length>0}))},Eo=function(e){var t={},n=e.dom;if(po(n))for(var r=0;r<n.style.length;r++){var o=n.style.item(r);t[o]=n.style[o]}return t},Ao=function(e){return e.dom.offsetWidth},Do=Wt().browser,Mo=function(e){return ae(e,jn)},Ro=function(e){return Do.isFirefox()&&"table"===Ln(e)?Mo(rr(e)).filter((function(e){return"caption"===Ln(e)})).bind((function(e){return Mo(nr(e)).map((function(t){var n=t.dom.offsetTop,r=e.dom.offsetTop,o=e.dom.offsetHeight;return n<=r?-o:0}))})).getOr(0):0},No=function(e,t){return e.children&&Y(e.children,t)},Bo=function(e,t,n){var r=0,o=0,i=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===So(wn.fromDom(e),"position")){var a=t.getBoundingClientRect();return r=a.left+(i.documentElement.scrollLeft||e.scrollLeft)-i.documentElement.clientLeft,o=a.top+(i.documentElement.scrollTop||e.scrollTop)-i.documentElement.clientTop,{x:r,y:o}}var c=t;while(c&&c!==n&&c.nodeType&&!No(c,n)){var u=c;r+=u.offsetLeft||0,o+=u.offsetTop||0,c=u.offsetParent}c=t.parentNode;while(c&&c!==n&&c.nodeType&&!No(c,n))r-=c.scrollLeft||0,o-=c.scrollTop||0,c=c.parentNode;o+=Ro(wn.fromDom(t))}return{x:r,y:o}},Po={},Lo={exports:Po};(function(e,n,r,o){(function(t,o){"object"===typeof n&&"undefined"!==typeof r?r.exports=o():"function"===typeof e&&e.amd?e(o):(t="undefined"!==typeof globalThis?globalThis:t||self,t.EphoxContactWrapper=o())})(this,(function(){var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},n={exports:{}};(function(t){(function(e){var n=setTimeout;function r(){}function o(e,t){return function(){e.apply(t,arguments)}}function i(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(o){return void u(t.promise,o)}c(t.promise,r)}else(1===e._state?c:u)(t.promise,e._value)}))):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void s(e);if("function"===typeof n)return void f(o(n,t),e)}e._state=1,e._value=t,s(e)}catch(r){u(e,r)}}function u(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(r){if(n)return;n=!0,u(t,r)}}i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},i.all=function(e){var t=Array.prototype.slice.call(e);return new i((function(e,n){if(0===t.length)return e([]);var r=t.length;function o(i,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var c=a.then;if("function"===typeof c)return void c.call(a,(function(e){o(i,e)}),n)}t[i]=a,0===--r&&e(t)}catch(u){n(u)}}for(var i=0;i<t.length;i++)o(i,t[i])}))},i.resolve=function(e){return e&&"object"===typeof e&&e.constructor===i?e:new i((function(t){t(e)}))},i.reject=function(e){return new i((function(t,n){n(e)}))},i.race=function(e){return new i((function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)}))},i._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},t.exports?t.exports=i:e.Promise||(e.Promise=i)})(e)})(n);var r=n.exports,o=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),i={boltExport:o.Promise||r};return i}))})(void 0,Po,Lo);var Io=Lo.exports.boltExport,Ho=function(e){var t=q.none(),n=[],r=function(e){return Ho((function(t){o((function(n){t(e(n))}))}))},o=function(e){a()?u(e):n.push(e)},i=function(e){a()||(t=q.some(e),c(n),n=[])},a=function(){return t.isSome()},c=function(e){Q(e,u)},u=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(i),{get:o,map:r,isReady:a}},Fo=function(e){return Ho((function(t){t(e)}))},jo={nu:Ho,pure:Fo},Vo=function(e){setTimeout((function(){throw e}),0)},Uo=function(e){var t=function(t){e().then(t,Vo)},n=function(t){return Uo((function(){return e().then(t)}))},r=function(t){return Uo((function(){return e().then((function(e){return t(e).toPromise()}))}))},o=function(t){return Uo((function(){return e().then((function(){return t.toPromise()}))}))},i=function(){return jo.nu(t)},a=function(){var t=null;return Uo((function(){return null===t&&(t=e()),t}))},c=e;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:a,toPromise:c,get:t}},qo=function(e){return Uo((function(){return new Io(e)}))},Wo=function(e){return Uo((function(){return Io.resolve(e)}))},$o={nu:qo,pure:Wo},Go=function(e,t){return t((function(t){var n=[],r=0,o=function(o){return function(i){n[o]=i,r++,r>=e.length&&t(n)}};0===e.length?t([]):Q(e,(function(e,t){e.get(o(t))}))}))},Ko=function(e){return Go(e,$o.nu)},Xo=function(e){var t=function(t){return Xo(e)},n=function(t){return Xo(e)},r=function(t){return Xo(t(e))},o=function(t){return Xo(e)},i=function(t){t(e)},a=function(t){return t(e)},c=function(t,n){return n(e)},u=function(t){return t(e)},s=function(t){return t(e)},l=function(){return q.some(e)};return{isValue:H,isError:I,getOr:A(e),getOrThunk:A(e),getOrDie:A(e),or:t,orThunk:n,fold:c,map:r,mapError:o,each:i,bind:a,exists:u,forall:s,toOptional:l}},Yo=function(e){var t=function(e){return e()},n=function(){return B(String(e))()},r=D,o=function(e){return e()},i=function(t){return Yo(e)},a=function(t){return Yo(t(e))},c=function(t){return Yo(e)},u=function(t,n){return t(e)};return{isValue:I,isError:H,getOr:D,getOrThunk:t,getOrDie:n,or:r,orThunk:o,fold:u,map:i,mapError:a,each:T,bind:c,exists:I,forall:H,toOptional:q.none}},Jo=function(e,t){return e.fold((function(){return Yo(t)}),Xo)},Zo={value:Xo,error:Yo,fromOption:Jo},Qo=function(e){if(!b(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return Q(e,(function(r,o){var i=we(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],c=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!b(c))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==c.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+c.length+" ("+c+"), got "+i);var u=function(e){var r=we(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var o=le(t,(function(e){return Y(r,e)}));if(!o)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var i=t[o];return i.apply(null,n)},match:u,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},ei={generate:Qo};ei.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var ti=function(e){return e.fold(D,D)};function ni(e,t,n,r,o){return e(n,r)?q.some(n):C(o)&&o(n)?q.none():t(n,r,o)}var ri,oi,ii,ai,ci,ui,si,li,fi,di,mi,gi,pi,hi,vi,yi,bi,wi,ki,_i=function(e,t,n){var r=e.dom,o=C(n)?n:I;while(r.parentNode){r=r.parentNode;var i=wn.fromDom(r);if(t(i))return q.some(i);if(o(i))break}return q.none()},xi=function(e,t,n){var r=function(e,t){return t(e)};return ni(r,_i,e,t,n)},zi=function(e,t){var n=e.dom;return n.parentNode?Ci(wn.fromDom(n.parentNode),(function(n){return!Rn(e,n)&&t(n)})):q.none()},Ci=function(e,t){var n=function(e){return t(wn.fromDom(e))},r=ae(e.dom.childNodes,n);return r.map(wn.fromDom)},Si=function(e,t,n){return _i(e,(function(e){return En(e,t)}),n)},Ti=function(e,t){return Mn(t,e)},Oi=function(e,t,n){var r=function(e,t){return En(e,t)};return ni(r,Si,e,t,n)},Ei=window.Promise?window.Promise:Io,Ai=function(e,t){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],o=function(e){window.setTimeout(e,0)},i=0;i<r.length&&!n;i++)n=window[r[i]+"RequestAnimationFrame"];n||(n=o),n(e,t)},Di=function(e,t){return"number"!==typeof t&&(t=0),setTimeout(e,t)},Mi=function(e,t){return"number"!==typeof t&&(t=1),setInterval(e,t)},Ri=function(e){return clearTimeout(e)},Ni=function(e){return clearInterval(e)},Bi=function(e,t){var n,r=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];clearTimeout(n),n=Di((function(){e.apply(this,r)}),t)};return r.stop=function(){clearTimeout(n)},r},Pi={requestAnimationFrame:function(e,t){ri?ri.then(e):ri=new Ei((function(e){t||(t=document.body),Ai(e,t)})).then(e)},setTimeout:Di,setInterval:Mi,setEditorTimeout:function(e,t,n){return Di((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,n){var r=Mi((function(){e.removed?clearInterval(r):t()}),n);return r},debounce:Bi,throttle:Bi,clearInterval:Ni,clearTimeout:Ri},Li=function(e,t){void 0===t&&(t={});var n=0,r={},o=wn.fromDom(e),i=Gn(o),a=t.maxLoadTime||5e3,c=function(e){t.referrerPolicy=e},u=function(e){kr(mr(o),e)},s=function(e){var t=mr(o);Ti(t,"#"+e).each(Sr)},l=function(e){return De(r,e).getOrThunk((function(){return{id:"mce-u"+n++,passed:[],failed:[],count:0}}))},f=function(n,o,c){var s,f=gn._addCacheSuffix(n),d=l(f);r[f]=d,d.count++;var m=function(e,t){var n=e.length;while(n--)e[n]();d.status=t,d.passed=[],d.failed=[],s&&(s.onload=null,s.onerror=null,s=null)},g=function(){return m(d.passed,2)},p=function(){return m(d.failed,3)},h=function(e,t){e()||(Date.now()-b<a?Pi.setTimeout(t):p())},v=function(){h((function(){var t=e.styleSheets,n=t.length;while(n--){var r=t[n],o=r.ownerNode;if(o&&o.id===s.id)return g(),!0}return!1}),v)};if(o&&d.passed.push(o),c&&d.failed.push(c),1!==d.status)if(2!==d.status)if(3!==d.status){d.status=1;var y=wn.fromTag("link",i.dom);yo(y,{rel:"stylesheet",type:"text/css",id:d.id});var b=Date.now();t.contentCssCors&&vo(y,"crossOrigin","anonymous"),t.referrerPolicy&&vo(y,"referrerpolicy",t.referrerPolicy),s=y.dom,s.onload=v,s.onerror=p,u(y),vo(y,"href",f)}else p();else g()},d=function(e){return $o.nu((function(t){f(e,O(t,A(Zo.value(e))),O(t,A(Zo.error(e))))}))},m=function(e,t,n){Ko(Z(e,d)).get((function(e){var r=te(e,(function(e){return e.isValue()}));r.fail.length>0?n(r.fail.map(ti)):t(r.pass.map(ti))}))},g=function(e){var t=gn._addCacheSuffix(e);De(r,t).each((function(e){var n=--e.count;0===n&&(delete r[t],s(e.id))}))},p=function(e){Q(e,(function(e){g(e)}))};return{load:f,loadAll:m,unload:g,unloadAll:p,_setReferrerPolicy:c}},Ii=function(){var e=new WeakMap,t=function(t,n){var r=dr(t),o=r.dom;return q.from(e.get(o)).getOrThunk((function(){var t=Li(o,n);return e.set(o,t),t}))};return{forElement:t}},Hi=Ii(),Fi=function(){function e(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var o,i;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(o=e[n],o)return o;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n],o)return o}}},e.prototype.findPreviousNode=function(e,t,n,r){var o,i,a;if(e){if(o=e[n],this.rootNode&&o===this.rootNode)return;if(o){if(!r)for(a=o[t];a;a=a[t])if(!a[t])return a;return o}if(i=e.parentNode,i&&i!==this.rootNode)return i}},e}(),ji=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],Vi=["td","th"],Ui=["thead","tbody","tfoot"],qi=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Wi=["h1","h2","h3","h4","h5","h6"],$i=["li","dd","dt"],Gi=["ul","ol","dl"],Ki=["pre","script","textarea","style"],Xi=function(e){var t;return function(n){return t=t||me(e,H),Me(t,Ln(n))}},Yi=Xi(Wi),Ji=Xi(ji),Zi=function(e){return"table"===Ln(e)},Qi=function(e){return jn(e)&&!Ji(e)},ea=function(e){return jn(e)&&"br"===Ln(e)},ta=Xi(qi),na=Xi(Gi),ra=Xi($i),oa=Xi(Ui),ia=Xi(Vi),aa=Xi(Ki),ca=function(e,t,n){return Si(e,t,n).isSome()},ua="\ufeff",sa=" ",la=function(e){return e===ua},fa=function(e){return e.replace(/\uFEFF/g,"")},da=ua,ma=la,ga=fa,pa=Ur,ha=Qr,va=function(e){return ha(e)&&(e=e.parentNode),pa(e)&&e.hasAttribute("data-mce-caret")},ya=function(e){return ha(e)&&ma(e.data)},ba=function(e){return va(e)||ya(e)},wa=function(e){return e.firstChild!==e.lastChild||!ro(e.firstChild)},ka=function(e,t){var n=e.ownerDocument,r=n.createTextNode(da),o=e.parentNode;if(t){i=e.previousSibling;if(ha(i)){if(ba(i))return i;if(Ta(i))return i.splitText(i.data.length-1)}o.insertBefore(r,e)}else{var i=e.nextSibling;if(ha(i)){if(ba(i))return i;if(Sa(i))return i.splitText(1),i}e.nextSibling?o.insertBefore(r,e.nextSibling):o.appendChild(r)}return r},_a=function(e){var t=e.container();return!!Qr(t)&&(t.data.charAt(e.offset())===da||e.isAtStart()&&ya(t.previousSibling))},xa=function(e){var t=e.container();return!!Qr(t)&&(t.data.charAt(e.offset()-1)===da||e.isAtEnd()&&ya(t.nextSibling))},za=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},Ca=function(e,t,n){var r=t.ownerDocument,o=r.createElement(e);o.setAttribute("data-mce-caret",n?"before":"after"),o.setAttribute("data-mce-bogus","all"),o.appendChild(za());var i=t.parentNode;return n?i.insertBefore(o,t):t.nextSibling?i.insertBefore(o,t.nextSibling):i.appendChild(o),o},Sa=function(e){return ha(e)&&e.data[0]===da},Ta=function(e){return ha(e)&&e.data[e.data.length-1]===da},Oa=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];Kr(n)&&n.parentNode.removeChild(n)},Ea=function(e){return e&&e.hasAttribute("data-mce-caret")?(Oa(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},Aa=function(e){return va(e.startContainer)},Da=io,Ma=ao,Ra=ro,Na=Qr,Ba=qr(["script","style","textarea"]),Pa=qr(["img","input","textarea","hr","iframe","video","audio","object","embed"]),La=qr(["table"]),Ia=ba,Ha=function(e){return!Ia(e)&&(Na(e)?!Ba(e.parentNode):Pa(e)||Ra(e)||La(e)||ja(e))},Fa=function(e){return Ur(e)&&"true"===e.getAttribute("unselectable")},ja=function(e){return!1===Fa(e)&&Ma(e)},Va=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(ja(e))return!1;if(Da(e))return!0}return!0},Ua=function(e){return!!ja(e)&&!0!==oe(ye(e.getElementsByTagName("*")),(function(e,t){return e||Da(t)}),!1)},qa=function(e){return Pa(e)||Ua(e)},Wa=function(e,t){return Ha(e)&&Va(e,t)},$a=/^[ \t\r\n]*$/,Ga=function(e){return $a.test(e)},Ka=function(e,t){var n=wn.fromDom(t),r=wn.fromDom(e);return ca(r,"pre,code",R(Rn,n))},Xa=function(e,t){return Qr(e)&&Ga(e.data)&&!1===Ka(e,t)},Ya=function(e){return Ur(e)&&"A"===e.nodeName&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},Ja=function(e,t){return Ha(e)&&!1===Xa(e,t)||Ya(e)||Za(e)},Za=$r("data-mce-bookmark"),Qa=$r("data-mce-bogus"),ec=Gr("data-mce-bogus","all"),tc=function(e,t){var n=0;if(Ja(e,e))return!1;var r=e.firstChild;if(!r)return!0;var o=new Fi(r,e);do{if(t){if(ec(r)){r=o.next(!0);continue}if(Qa(r)){r=o.next();continue}}if(ro(r))n++,r=o.next();else{if(Ja(r,e))return!1;r=o.next()}}while(r);return n<=1},nc=function(e,t){return void 0===t&&(t=!0),tc(e.dom,t)},rc=function(e){return"span"===e.nodeName.toLowerCase()},oc=function(e,t){return z(e)&&(Ja(e,t)||Qi(wn.fromDom(e)))},ic=function(e,t){var n=new Fi(e,t).prev(!1),r=new Fi(e,t).next(!1),o=_(n)||oc(n,t),i=_(r)||oc(r,t);return o&&i},ac=function(e){return rc(e)&&"bookmark"===e.getAttribute("data-mce-type")},cc=function(e,t){return Qr(e)&&e.data.length>0&&ic(e,t)},uc=function(e){return!!Ur(e)&&e.childNodes.length>0},sc=function(e){return no(e)||to(e)},lc=function(e,t,n){var r=n||t;if(Ur(t)&&ac(t))return t;for(var o=t.childNodes,i=o.length-1;i>=0;i--)lc(e,o[i],r);if(Ur(t)){var a=t.childNodes;1===a.length&&ac(a[0])&&t.parentNode.insertBefore(a[0],t)}return sc(t)||Ja(t,r)||uc(t)||cc(t,r)||e.remove(t),t},fc=gn.makeMap,dc=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mc=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gc=/[<>&\"\']/g,pc=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,hc={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},vc={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},yc={"<":"<",">":">","&":"&",""":'"',"'":"'"},bc=function(e){var t=wn.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},wc=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),vc[r]||(o="&"+e[n+1]+";",i[r]=o,i[o]=r);return i}},kc=wc("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),_c=function(e,t){return e.replace(t?dc:mc,(function(e){return vc[e]||e}))},xc=function(e){return(""+e).replace(gc,(function(e){return vc[e]||e}))},zc=function(e,t){return e.replace(t?dc:mc,(function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":vc[e]||"&#"+e.charCodeAt(0)+";"}))},Cc=function(e,t,n){return n=n||kc,e.replace(t?dc:mc,(function(e){return vc[e]||n[e]||e}))},Sc=function(e,t){var n=wc(t)||kc,r=function(e,t){return e.replace(t?dc:mc,(function(e){return void 0!==vc[e]?vc[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))},o=function(e,t){return Cc(e,t,n)},i=fc(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?o:Cc:i.numeric?zc:_c},Tc=function(e){return e.replace(pc,(function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):hc[t]||String.fromCharCode(t)):yc[e]||kc[e]||bc(e)}))},Oc={encodeRaw:_c,encodeAllRaw:xc,encodeNumeric:zc,encodeNamed:Cc,getEncodeFunc:Sc,decode:Tc},Ec={},Ac={},Dc=gn.makeMap,Mc=gn.each,Rc=gn.extend,Nc=gn.explode,Bc=gn.inArray,Pc=function(e,t){return e=gn.trim(e),e?e.split(t||" "):[]},Lc=function(e,t){var n=Dc(e," ",Dc(e.toUpperCase()," "));return Rc(n,t)},Ic=function(e){return Lc("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},Hc=function(e){var t,n,r,o,i,a,c={},u=function(e,n,r){var o,i,a,u=function(e,t){var n,r,o={};for(n=0,r=e.length;n<r;n++)o[e[n]]=t||{};return o};r=r||[],n=n||"","string"===typeof r&&(r=Pc(r));var s=Pc(e);o=s.length;while(o--)i=Pc([t,n].join(" ")),a={attributes:u(i),attributesOrder:i,children:u(r,Ac)},c[s[o]]=a},s=function(e,t){var n,r,o,i,a=Pc(e);n=a.length;var u=Pc(t);while(n--)for(r=c[a[n]],o=0,i=u.length;o<i;o++)r.attributes[u[o]]={},r.attributesOrder.push(u[o])};return Ec[e]?Ec[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),Mc(Pc(a),(function(e){u(e,"",r)})),i="center dir isindex noframes",n=[n,i].join(" "),o=[n,r].join(" "),Mc(Pc(i),(function(e){u(e,"",o)}))),o=o||[n,r].join(" "),u("html","manifest","head body"),u("head","","base command link meta noscript script style title"),u("title hr noscript br"),u("base","href target"),u("link","href rel media hreflang type sizes hreflang"),u("meta","name http-equiv content charset"),u("style","media type scoped"),u("script","src async defer type charset"),u("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",o),u("address dt dd div caption","",o),u("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),u("blockquote","cite",o),u("ol","reversed start type","li"),u("ul","","li"),u("li","value",o),u("dl","","dt dd"),u("a","href target rel media hreflang type",r),u("q","cite",r),u("ins del","cite datetime",o),u("img","src sizes srcset alt usemap ismap width height"),u("iframe","src name width height",o),u("embed","src type width height"),u("object","data type typemustmatch name usemap form width height",[o,"param"].join(" ")),u("param","name value"),u("map","name",[o,"area"].join(" ")),u("area","alt coords shape href target rel media hreflang type"),u("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),u("colgroup","span","col"),u("col","span"),u("tbody thead tfoot","","tr"),u("tr","","td th"),u("td","colspan rowspan headers",o),u("th","colspan rowspan headers scope abbr",o),u("form","accept-charset action autocomplete enctype method name novalidate target",o),u("fieldset","disabled form name",[o,"legend"].join(" ")),u("label","form for",r),u("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),u("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?o:r),u("select","disabled form multiple name required size","option optgroup"),u("optgroup","disabled label","option"),u("option","disabled label selected value"),u("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),u("menu","type label",[o,"li"].join(" ")),u("noscript","",o),"html4"!==e&&(u("wbr"),u("ruby","",[r,"rt rp"].join(" ")),u("figcaption","",o),u("mark rt rp summary bdi","",r),u("canvas","width height",o),u("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[o,"track source"].join(" ")),u("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[o,"track source"].join(" ")),u("picture","","img source"),u("source","src srcset type media sizes"),u("track","kind src srclang label default"),u("datalist","",[r,"option"].join(" ")),u("article section nav aside main header footer","",o),u("hgroup","","h1 h2 h3 h4 h5 h6"),u("figure","",[o,"figcaption"].join(" ")),u("time","datetime",r),u("dialog","open",o),u("command","type label icon disabled checked radiogroup command"),u("output","for form name",r),u("progress","value max",r),u("meter","value min max low high optimum",r),u("details","open",[o,"summary"].join(" ")),u("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(s("script","language xml:space"),s("style","xml:space"),s("object","declare classid code codebase codetype archive standby align border hspace vspace"),s("embed","align name hspace vspace"),s("param","valuetype type"),s("a","charset name rev shape coords"),s("br","clear"),s("applet","codebase archive code object alt name width height align hspace vspace"),s("img","name longdesc align border hspace vspace"),s("iframe","longdesc frameborder marginwidth marginheight scrolling align"),s("font basefont","size color face"),s("input","usemap align"),s("select"),s("textarea"),s("h1 h2 h3 h4 h5 h6 div p legend caption","align"),s("ul","type compact"),s("li","type"),s("ol dl menu dir","compact"),s("pre","width xml:space"),s("hr","align noshade size width"),s("isindex","prompt"),s("table","summary width frame rules cellspacing cellpadding align bgcolor"),s("col","width align char charoff valign"),s("colgroup","width align char charoff valign"),s("thead","align char charoff valign"),s("tr","align char charoff valign bgcolor"),s("th","axis align char charoff valign nowrap bgcolor width height"),s("form","accept"),s("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),s("tfoot","align char charoff valign"),s("tbody","align char charoff valign"),s("area","nohref"),s("body","background bgcolor text link vlink alink")),"html4"!==e&&(s("input button select textarea","autofocus"),s("input textarea","placeholder"),s("a","download"),s("link script img","crossorigin"),s("img","loading"),s("iframe","sandbox seamless allowfullscreen loading")),Mc(Pc("a form meter progress dfn"),(function(e){c[e]&&delete c[e].children[e]})),delete c.caption.children.table,delete c.script,Ec[e]=c,c)},Fc=function(e,t){var n;return e&&(n={},"string"===typeof e&&(e={"*":e}),Mc(e,(function(e,r){n[r]=n[r.toUpperCase()]="map"===t?Dc(e,/[, ]/):Nc(e,/[, ]/)}))),n},jc=function(e){var t={},n={},r=[],o={},i={},a=function(t,n,r){var o=e[t];return o?o=Dc(o,/[, ]/,Dc(o.toUpperCase(),/[, ]/)):(o=Ec[t],o||(o=Lc(n,r),Ec[t]=o)),o};e=e||{};var c=Hc(e.schema);!1===e.verify_html&&(e.valid_elements="*[*]");var u=Fc(e.valid_styles),s=Fc(e.invalid_styles,"map"),l=Fc(e.valid_classes,"map"),f=a("whitespace_elements","pre script noscript style textarea video audio iframe object code"),d=a("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),m=a("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),g=a("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),p="td th iframe video audio object script code",h=a("non_empty_elements",p+" pre",m),v=a("move_caret_before_on_enter_elements",p+" table",m),y=a("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),b=a("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",y),w=a("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp");Mc((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(e){i[e]=new RegExp("</"+e+"[^>]*>","gi")}));var k=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},_=function(e){var n,o,i,a,c,u,s,l,f,d,m,g,p,h,v,y,b,w,_=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,x=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,z=/[*?+]/;if(e){var C=Pc(e,",");for(t["@"]&&(y=t["@"].attributes,b=t["@"].attributesOrder),n=0,o=C.length;n<o;n++)if(c=_.exec(C[n]),c){if(h=c[1],f=c[2],v=c[3],l=c[5],g={},p=[],u={attributes:g,attributesOrder:p},"#"===h&&(u.paddEmpty=!0),"-"===h&&(u.removeEmpty=!0),"!"===c[4]&&(u.removeEmptyAttrs=!0),y&&(_e(y,(function(e,t){g[t]=e})),p.push.apply(p,b)),l)for(l=Pc(l,"|"),i=0,a=l.length;i<a;i++)if(c=x.exec(l[i]),c){if(s={},m=c[1],d=c[2].replace(/[\\:]:/g,":"),h=c[3],w=c[4],"!"===m&&(u.attributesRequired=u.attributesRequired||[],u.attributesRequired.push(d),s.required=!0),"-"===m){delete g[d],p.splice(Bc(p,d),1);continue}h&&("="===h&&(u.attributesDefault=u.attributesDefault||[],u.attributesDefault.push({name:d,value:w}),s.defaultValue=w),":"===h&&(u.attributesForced=u.attributesForced||[],u.attributesForced.push({name:d,value:w}),s.forcedValue=w),"<"===h&&(s.validValues=Dc(w,"?"))),z.test(d)?(u.attributePatterns=u.attributePatterns||[],s.pattern=k(d),u.attributePatterns.push(s)):(g[d]||p.push(d),g[d]=s)}y||"@"!==f||(y=g,b=p),v&&(u.outputName=f,t[v]=u),z.test(f)?(u.pattern=k(f),r.push(u)):t[f]=u}}},x=function(e){t={},r=[],_(e),Mc(c,(function(e,t){n[t]=e.children}))},z=function(e){var r=/^(~)?(.+)$/;e&&(Ec.text_block_elements=Ec.block_elements=null,Mc(Pc(e,","),(function(e){var i=r.exec(e),a="~"===i[1],c=a?"span":"div",u=i[2];if(n[u]=n[c],o[u]=c,a||(b[u.toUpperCase()]={},b[u]={}),!t[u]){var s=t[c];s=Rc({},s),delete s.removeEmptyAttrs,delete s.removeEmpty,t[u]=s}Mc(n,(function(e,t){e[c]&&(n[t]=e=Rc({},n[t]),e[u]=e[c])}))})))},C=function(t){var r=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;Ec[e.schema]=null,t&&Mc(Pc(t,","),(function(e){var t,o,i=r.exec(e);i&&(o=i[1],t=o?n[i[2]]:n[i[2]]={"#comment":{}},t=n[i[2]],Mc(Pc(i[3],"|"),(function(e){"-"===o?delete t[e]:t[e]={}})))}))},S=function(e){var n,o=t[e];if(o)return o;n=r.length;while(n--)if(o=r[n],o.pattern.test(e))return o};e.valid_elements?x(e.valid_elements):(Mc(c,(function(e,r){t[r]={attributes:e.attributes,attributesOrder:e.attributesOrder},n[r]=e.children})),"html5"!==e.schema&&Mc(Pc("strong/b em/i"),(function(e){var n=Pc(e,"/");t[n[1]].outputName=n[0]})),Mc(w,(function(n,r){t[r]&&(e.padd_empty_block_inline_children&&(t[r].paddInEmptyBlock=!0),t[r].removeEmpty=!0)})),Mc(Pc("ol ul blockquote a table tbody"),(function(e){t[e]&&(t[e].removeEmpty=!0)})),Mc(Pc("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){t[e].paddEmpty=!0})),Mc(Pc("span"),(function(e){t[e].removeEmptyAttrs=!0}))),z(e.custom_elements),C(e.valid_children),_(e.extended_valid_elements),C("+ol[ul|ol],+ul[ul|ol]"),Mc({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(function(e,n){t[n]&&(t[n].parentsRequired=Pc(e))})),e.invalid_elements&&Mc(Nc(e.invalid_elements),(function(e){t[e]&&delete t[e]})),S("span")||_("span[!data-mce-type|*]");var T=A(u),O=A(s),E=A(l),D=A(g),M=A(b),R=A(y),N=A(w),B=A(m),P=A(d),L=A(h),I=A(v),H=A(f),F=A(i),j=function(e,t){var r=n[e.toLowerCase()];return!(!r||!r[t.toLowerCase()])},V=function(e,t){var n,r,o=S(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(n=o.attributePatterns,n){r=n.length;while(r--)if(n[r].pattern.test(e))return!0}}return!1},U=A(o);return{children:n,elements:t,getValidStyles:T,getValidClasses:E,getBlockElements:M,getInvalidStyles:O,getShortEndedElements:B,getTextBlockElements:R,getTextInlineElements:N,getBoolAttrs:D,getElementRule:S,getSelfClosingElements:P,getNonEmptyElements:L,getMoveCaretBeforeOnEnterElements:I,getWhiteSpaceElements:H,getSpecialElements:F,isValidChild:j,isValid:V,getCustomElements:U,addValidElements:_,setValidElements:x,addCustomElements:z,addValidChildren:C}},Vc=function(e,t,n,r){var o=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+o(t)+o(n)+o(r)},Uc=function(e,t){var n,r,o,i=this,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,c=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,u=/\s*([^:]+):\s*([^;]+);?/g,s=/\s+$/,l={},f=ua;e=e||{},t&&(r=t.getValidStyles(),o=t.getInvalidStyles());var d=("\\\" \\' \\; \\: ; : "+f).split(" ");for(n=0;n<d.length;n++)l[d[n]]=f+n,l[f+n]=d[n];return{toHex:function(e){return e.replace(a,Vc)},parse:function(t){var r,o,d,m,g={},p=e.url_converter,h=e.url_converter_scope||i,v=function(e,t,r){var o=g[e+"-top"+t];if(o){var i=g[e+"-right"+t];if(i){var a=g[e+"-bottom"+t];if(a){var c=g[e+"-left"+t];if(c){var u=[o,i,a,c];n=u.length-1;while(n--)if(u[n]!==u[n+1])break;n>-1&&r||(g[e+t]=-1===n?u[0]:u.join(" "),delete g[e+"-top"+t],delete g[e+"-right"+t],delete g[e+"-bottom"+t],delete g[e+"-left"+t])}}}}},y=function(e){var t,n=g[e];if(n){n=n.split(" "),t=n.length;while(t--)if(n[t]!==n[0])return!1;return g[e]=n[0],!0}},b=function(e,t,n,r){y(t)&&y(n)&&y(r)&&(g[e]=g[t]+" "+g[n]+" "+g[r],delete g[t],delete g[n],delete g[r])},w=function(e){return m=!0,l[e]},k=function(e,t){return m&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return l[e]}))),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},_=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},x=function(e){return e.replace(/\\[0-9a-f]+/gi,_)},z=function(t,n,r,o,i,a){if(i=i||a,i)return i=k(i),"'"+i.replace(/\'/g,"\\'")+"'";if(n=k(n||r||o),!e.allow_script_urls){var c=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(c))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(c))return""}return p&&(n=p.call(h,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,w).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,w)}));while(r=u.exec(t))if(u.lastIndex=r.index+r[0].length,o=r[1].replace(s,"").toLowerCase(),d=r[2].replace(s,""),o&&d){if(o=x(o),d=x(d),-1!==o.indexOf(f)||-1!==o.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===o||/expression\s*\(|\/\*|\*\//.test(d)))continue;"font-weight"===o&&"700"===d?d="bold":"color"!==o&&"background-color"!==o||(d=d.toLowerCase()),d=d.replace(a,Vc),d=d.replace(c,z),g[o]=m?k(d,!0):d}v("border","",!0),v("border","-width"),v("border","-color"),v("border","-style"),v("padding",""),v("margin",""),b("border","border-width","border-style","border-color"),"medium none"===g.border&&delete g.border,"none"===g["border-image"]&&delete g["border-image"]}return g},serialize:function(e,t){var n="",i=function(t){var o,i=r[t];if(i)for(var a=0,c=i.length;a<c;a++)t=i[a],o=e[t],o&&(n+=(n.length>0?" ":"")+t+": "+o+";")},a=function(e,t){var n=o["*"];return(!n||!n[e])&&(n=o[t],!(n&&n[e]))};return t&&r?(i("*"),i(t)):_e(e,(function(e,r){!e||o&&!a(r,t)||(n+=(n.length>0?" ":"")+r+": "+e+";")})),n}}},qc={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Wc=function(e){return e instanceof Event||C(e.initEvent)},$c=function(e){return e.isDefaultPrevented===H||e.isDefaultPrevented===I},Gc=function(e){return x(e.preventDefault)||Wc(e)},Kc=function(e,t){var n=null!==t&&void 0!==t?t:{};for(var r in e)Me(qc,r)||(n[r]=e[r]);return z(n.composedPath)&&(n.composedPath=function(){return e.composedPath()}),n},Xc=function(e,t,n,r){var o,i=Kc(t,r);return i.type=e,x(i.target)&&(i.target=null!==(o=i.srcElement)&&void 0!==o?o:n),Gc(t)&&(i.preventDefault=function(){i.defaultPrevented=!0,i.isDefaultPrevented=H,C(t.preventDefault)?t.preventDefault():Wc(t)&&(t.returnValue=!1)},i.stopPropagation=function(){i.cancelBubble=!0,i.isPropagationStopped=H,C(t.stopPropagation)?t.stopPropagation():Wc(t)&&(t.cancelBubble=!0)},i.stopImmediatePropagation=function(){i.isImmediatePropagationStopped=H,i.stopPropagation()},$c(i)||(i.isDefaultPrevented=!0===i.defaultPrevented?H:I,i.isPropagationStopped=!0===i.cancelBubble?H:I,i.isImmediatePropagationStopped=I)),i},Yc="mce-data-",Jc=/^(?:mouse|contextmenu)|click/,Zc=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Qc=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},eu=function(e){return z(e)&&Jc.test(e.type)},tu=function(e,t){var n=Xc(e.type,e,document,t);if(eu(e)&&_(e.pageX)&&!_(e.clientX)){var r=n.target.ownerDocument||document,o=r.documentElement,i=r.body,a=n;a.pageX=e.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),a.pageY=e.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)}return _(n.metaKey)&&(n.metaKey=!1),n},nu=function(e,t,n){var r=e.document,o={type:"ready"};if(n.domLoaded)t(o);else{var i=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){Qc(e,"DOMContentLoaded",a),Qc(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(o)),e=null};i()?a():Zc(e,"DOMContentLoaded",a),n.domLoaded||Zc(e,"load",a)}},ru=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Yc+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return e.prototype.bind=function(e,t,n,r){var o,i,a,c,u,s,l,f=this,d=window,m=function(e){f.executeHandlers(tu(e||d.event),o)};if(e&&3!==e.nodeType&&8!==e.nodeType){e[f.expando]?o=e[f.expando]:(o=f.count++,e[f.expando]=o,f.events[o]={}),r=r||e;var g=t.split(" ");a=g.length;while(a--)c=g[a],s=m,u=l=!1,"DOMContentLoaded"===c&&(c="ready"),f.domLoaded&&"ready"===c&&"complete"===e.readyState?n.call(r,tu({type:c})):(f.hasMouseEnterLeave||(u=f.mouseEnterLeave[c],u&&(s=function(e){var t=e.currentTarget,n=e.relatedTarget;if(n&&t.contains)n=t.contains(n);else while(n&&n!==t)n=n.parentNode;n||(e=tu(e||d.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,f.executeHandlers(e,o))})),f.hasFocusIn||"focusin"!==c&&"focusout"!==c||(l=!0,u="focusin"===c?"focus":"blur",s=function(e){e=tu(e||d.event),e.type="focus"===e.type?"focusin":"focusout",f.executeHandlers(e,o)}),i=f.events[o][c],i?"ready"===c&&f.domLoaded?n(tu({type:c})):i.push({func:n,scope:r}):(f.events[o][c]=i=[{func:n,scope:r}],i.fakeName=u,i.capture=l,i.nativeHandler=s,"ready"===c?nu(e,s,f):Zc(e,u||c,s,l)));return e=i=null,n}},e.prototype.unbind=function(e,t,n){var r,o,i,a,c;if(!e||3===e.nodeType||8===e.nodeType)return this;var u=e[this.expando];if(u){if(c=this.events[u],t){var s=t.split(" ");o=s.length;while(o--)if(a=s[o],r=c[a],r){if(n){i=r.length;while(i--)if(r[i].func===n){var l=r.nativeHandler,f=r.fakeName,d=r.capture;r=r.slice(0,i).concat(r.slice(i+1)),r.nativeHandler=l,r.fakeName=f,r.capture=d,c[a]=r}}n&&0!==r.length||(delete c[a],Qc(e,r.fakeName||a,r.nativeHandler,r.capture))}}else _e(c,(function(t,n){Qc(e,t.fakeName||n,t.nativeHandler,t.capture)})),c={};for(a in c)if(Me(c,a))return this;delete this.events[u];try{delete e[this.expando]}catch(m){e[this.expando]=null}}return this},e.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var o=tu({type:t,target:e},n);do{r=e[this.expando],r&&this.executeHandlers(o,r),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!o.isPropagationStopped());return this},e.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName){this.unbind(e),n=e.getElementsByTagName("*"),t=n.length;while(t--)e=n[t],e[this.expando]&&this.unbind(e)}return this},e.prototype.destroy=function(){this.events={}},e.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},e.prototype.executeHandlers=function(e,t){var n=this.events[t],r=n&&n[e.type];if(r)for(var o=0,i=r.length;o<i;o++){var a=r[o];if(a&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}},e.Event=new e,e}(),ou="sizzle"+-new Date,iu=window.document,au=0,cu=0,uu=Vu(),su=Vu(),lu=Vu(),fu=function(e,t){return e===t&&(mi=!0),0},du="undefined",mu=1<<31,gu={}.hasOwnProperty,pu=[],hu=pu.pop,vu=pu.push,yu=pu.push,bu=pu.slice,wu=pu.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},ku="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",_u="[\\x20\\t\\r\\n\\f]",xu="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",zu="\\["+_u+"*("+xu+")(?:"+_u+"*([*^$|!~]?=)"+_u+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+xu+"))|)"+_u+"*\\]",Cu=":("+xu+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+zu+")*)|.*)\\)|)",Su=new RegExp("^"+_u+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_u+"+$","g"),Tu=new RegExp("^"+_u+"*,"+_u+"*"),Ou=new RegExp("^"+_u+"*([>+~]|"+_u+")"+_u+"*"),Eu=new RegExp("="+_u+"*([^\\]'\"]*?)"+_u+"*\\]","g"),Au=new RegExp(Cu),Du=new RegExp("^"+xu+"$"),Mu={ID:new RegExp("^#("+xu+")"),CLASS:new RegExp("^\\.("+xu+")"),TAG:new RegExp("^("+xu+"|[*])"),ATTR:new RegExp("^"+zu),PSEUDO:new RegExp("^"+Cu),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_u+"*(even|odd|(([+-]|)(\\d*)n|)"+_u+"*(?:([+-]|)"+_u+"*(\\d+)|))"+_u+"*\\)|)","i"),bool:new RegExp("^(?:"+ku+")$","i"),needsContext:new RegExp("^"+_u+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_u+"*((?:-\\d)?\\d*)"+_u+"*\\)|)(?=[^-]|$)","i")},Ru=/^(?:input|select|textarea|button)$/i,Nu=/^h\d$/i,Bu=/^[^{]+\{\s*\[native \w/,Pu=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Lu=/[+~]/,Iu=/'|\\/g,Hu=new RegExp("\\\\([\\da-f]{1,6}"+_u+"?|("+_u+")|.)","ig"),Fu=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{yu.apply(pu=bu.call(iu.childNodes),iu.childNodes),pu[iu.childNodes.length].nodeType}catch(vj){yu={apply:pu.length?function(e,t){vu.apply(e,bu.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}var ju=function(e,t,n,r){var o,i,a,c,u,s,l,f,d,m;if((t?t.ownerDocument||t:iu)!==pi&&gi(t),t=t||pi,n=n||[],!e||"string"!==typeof e)return n;if(1!==(c=t.nodeType)&&9!==c)return[];if(vi&&!r){if(o=Pu.exec(e))if(a=o[1]){if(9===c){if(i=t.getElementById(a),!i||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&ki(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return yu.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&oi.getElementsByClassName)return yu.apply(n,t.getElementsByClassName(a)),n}if(oi.qsa&&(!yi||!yi.test(e))){if(f=l=ou,d=t,m=9===c&&e,1===c&&"object"!==t.nodeName.toLowerCase()){s=ui(e),(l=t.getAttribute("id"))?f=l.replace(Iu,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",u=s.length;while(u--)s[u]=f+Yu(s[u]);d=Lu.test(e)&&Ku(t.parentNode)||t,m=s.join(",")}if(m)try{return yu.apply(n,d.querySelectorAll(m)),n}catch(g){}finally{l||t.removeAttribute("id")}}}return li(e.replace(Su,"$1"),t,n,r)};function Vu(){var e=[];function t(n,r){return e.push(n+" ")>ii.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function Uu(e){return e[ou]=!0,e}function qu(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||mu)-(~e.sourceIndex||mu);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function Wu(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function $u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function Gu(e){return Uu((function(t){return t=+t,Uu((function(n,r){var o,i=e([],n.length,t),a=i.length;while(a--)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function Ku(e){return e&&typeof e.getElementsByTagName!==du&&e}function Xu(){}function Yu(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Ju(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=cu++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var c,u,s=[au,i];if(a){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,a))return!0}else while(t=t[r])if(1===t.nodeType||o){if(u=t[ou]||(t[ou]={}),(c=u[r])&&c[0]===au&&c[1]===i)return s[2]=c[2];if(u[r]=s,s[2]=e(t,n,a))return!0}}}function Zu(e){return e.length>1?function(t,n,r){var o=e.length;while(o--)if(!e[o](t,n,r))return!1;return!0}:e[0]}function Qu(e,t,n){for(var r=0,o=t.length;r<o;r++)ju(e,t[r],n);return n}function es(e,t,n,r,o){for(var i,a=[],c=0,u=e.length,s=null!=t;c<u;c++)(i=e[c])&&(n&&!n(i,r,o)||(a.push(i),s&&t.push(c)));return a}function ts(e,t,n,r,o,i){return r&&!r[ou]&&(r=ts(r)),o&&!o[ou]&&(o=ts(o,i)),Uu((function(i,a,c,u){var s,l,f,d=[],m=[],g=a.length,p=i||Qu(t||"*",c.nodeType?[c]:c,[]),h=!e||!i&&t?p:es(p,d,e,c,u),v=n?o||(i?e:g||r)?[]:a:h;if(n&&n(h,v,c,u),r){s=es(v,m),r(s,[],c,u),l=s.length;while(l--)(f=s[l])&&(v[m[l]]=!(h[m[l]]=f))}if(i){if(o||e){if(o){s=[],l=v.length;while(l--)(f=v[l])&&s.push(h[l]=f);o(null,v=[],s,u)}l=v.length;while(l--)(f=v[l])&&(s=o?wu.call(i,f):d[l])>-1&&(i[s]=!(a[s]=f))}}else v=es(v===a?v.splice(g,v.length):v),o?o(null,a,v,u):yu.apply(a,v)}))}function ns(e){for(var t,n,r,o=e.length,i=ii.relative[e[0].type],a=i||ii.relative[" "],c=i?1:0,u=Ju((function(e){return e===t}),a,!0),s=Ju((function(e){return wu.call(t,e)>-1}),a,!0),l=[function(e,n,r){var o=!i&&(r||n!==fi)||((t=n).nodeType?u(e,n,r):s(e,n,r));return t=null,o}];c<o;c++)if(n=ii.relative[e[c].type])l=[Ju(Zu(l),n)];else{if(n=ii.filter[e[c].type].apply(null,e[c].matches),n[ou]){for(r=++c;r<o;r++)if(ii.relative[e[r].type])break;return ts(c>1&&Zu(l),c>1&&Yu(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(Su,"$1"),n,c<r&&ns(e.slice(c,r)),r<o&&ns(e=e.slice(r)),r<o&&Yu(e))}l.push(n)}return Zu(l)}function rs(e,t){var n=t.length>0,r=e.length>0,o=function(o,i,a,c,u){var s,l,f,d=0,m="0",g=o&&[],p=[],h=fi,v=o||r&&ii.find.TAG("*",u),y=au+=null==h?1:Math.random()||.1,b=v.length;for(u&&(fi=i!==pi&&i);m!==b&&null!=(s=v[m]);m++){if(r&&s){l=0;while(f=e[l++])if(f(s,i,a)){c.push(s);break}u&&(au=y)}n&&((s=!f&&s)&&d--,o&&g.push(s))}if(d+=m,n&&m!==d){l=0;while(f=t[l++])f(g,p,i,a);if(o){if(d>0)while(m--)g[m]||p[m]||(p[m]=hu.call(c));p=es(p)}yu.apply(c,p),u&&!o&&p.length>0&&d+t.length>1&&ju.uniqueSort(c)}return u&&(au=y,fi=h),g};return n?Uu(o):o}oi=ju.support={},ci=ju.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},gi=ju.setDocument=function(e){var t,n=e?e.ownerDocument||e:iu,r=n.defaultView;function o(e){try{return e.top}catch(t){}return null}return n!==pi&&9===n.nodeType&&n.documentElement?(pi=n,hi=n.documentElement,vi=!ci(n),r&&r!==o(r)&&(r.addEventListener?r.addEventListener("unload",(function(){gi()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){gi()}))),oi.attributes=!0,oi.getElementsByTagName=!0,oi.getElementsByClassName=Bu.test(n.getElementsByClassName),oi.getById=!0,ii.find.ID=function(e,t){if(typeof t.getElementById!==du&&vi){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},ii.filter.ID=function(e){var t=e.replace(Hu,Fu);return function(e){return e.getAttribute("id")===t}},ii.find.TAG=oi.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==du)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){while(n=i[o++])1===n.nodeType&&r.push(n);return r}return i},ii.find.CLASS=oi.getElementsByClassName&&function(e,t){if(vi)return t.getElementsByClassName(e)},bi=[],yi=[],oi.disconnectedMatch=!0,yi=yi.length&&new RegExp(yi.join("|")),bi=bi.length&&new RegExp(bi.join("|")),t=Bu.test(hi.compareDocumentPosition),ki=t||Bu.test(hi.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},fu=t?function(e,t){if(e===t)return mi=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!oi.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===iu&&ki(iu,e)?-1:t===n||t.ownerDocument===iu&&ki(iu,t)?1:di?wu.call(di,e)-wu.call(di,t):0:4&r?-1:1)}:function(e,t){if(e===t)return mi=!0,0;var r,o=0,i=e.parentNode,a=t.parentNode,c=[e],u=[t];if(!i||!a)return e===n?-1:t===n?1:i?-1:a?1:di?wu.call(di,e)-wu.call(di,t):0;if(i===a)return qu(e,t);r=e;while(r=r.parentNode)c.unshift(r);r=t;while(r=r.parentNode)u.unshift(r);while(c[o]===u[o])o++;return o?qu(c[o],u[o]):c[o]===iu?-1:u[o]===iu?1:0},n):pi},ju.matches=function(e,t){return ju(e,null,null,t)},ju.matchesSelector=function(e,t){if((e.ownerDocument||e)!==pi&&gi(e),t=t.replace(Eu,"='$1']"),oi.matchesSelector&&vi&&(!bi||!bi.test(t))&&(!yi||!yi.test(t)))try{var n=wi.call(e,t);if(n||oi.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(vj){}return ju(t,pi,null,[e]).length>0},ju.contains=function(e,t){return(e.ownerDocument||e)!==pi&&gi(e),ki(e,t)},ju.attr=function(e,t){(e.ownerDocument||e)!==pi&&gi(e);var n=ii.attrHandle[t.toLowerCase()],r=n&&gu.call(ii.attrHandle,t.toLowerCase())?n(e,t,!vi):void 0;return void 0!==r?r:oi.attributes||!vi?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ju.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ju.uniqueSort=function(e){var t,n=[],r=0,o=0;if(mi=!oi.detectDuplicates,di=!oi.sortStable&&e.slice(0),e.sort(fu),mi){while(t=e[o++])t===e[o]&&(r=n.push(o));while(r--)e.splice(n[r],1)}return di=null,e},ai=ju.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=ai(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=ai(t);return n},ii=ju.selectors={cacheLength:50,createPseudo:Uu,match:Mu,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Hu,Fu),e[3]=(e[3]||e[4]||e[5]||"").replace(Hu,Fu),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ju.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ju.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Mu.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Au.test(n)&&(t=ui(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Hu,Fu).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=uu[e+" "];return t||(t=new RegExp("(^|"+_u+")"+e+"("+_u+"|$)"))&&uu(e,(function(e){return t.test("string"===typeof e.className&&e.className||typeof e.getAttribute!==du&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=ju.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),c="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var s,l,f,d,m,g,p=i!==a?"nextSibling":"previousSibling",h=t.parentNode,v=c&&t.nodeName.toLowerCase(),y=!u&&!c;if(h){if(i){while(p){f=t;while(f=f[p])if(c?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;g=p="only"===e&&!g&&"nextSibling"}return!0}if(g=[a?h.firstChild:h.lastChild],a&&y){l=h[ou]||(h[ou]={}),s=l[e]||[],m=s[0]===au&&s[1],d=s[0]===au&&s[2],f=m&&h.childNodes[m];while(f=++m&&f&&f[p]||(d=m=0)||g.pop())if(1===f.nodeType&&++d&&f===t){l[e]=[au,m,d];break}}else if(y&&(s=(t[ou]||(t[ou]={}))[e])&&s[0]===au)d=s[1];else while(f=++m&&f&&f[p]||(d=m=0)||g.pop())if((c?f.nodeName.toLowerCase()===v:1===f.nodeType)&&++d&&(y&&((f[ou]||(f[ou]={}))[e]=[au,d]),f===t))break;return d-=o,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(e,t){var n,r=ii.pseudos[e]||ii.setFilters[e.toLowerCase()]||ju.error("unsupported pseudo: "+e);return r[ou]?r(t):r.length>1?(n=[e,e,"",t],ii.setFilters.hasOwnProperty(e.toLowerCase())?Uu((function(e,n){var o,i=r(e,t),a=i.length;while(a--)o=wu.call(e,i[a]),e[o]=!(n[o]=i[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:Uu((function(e){var t=[],n=[],r=si(e.replace(Su,"$1"));return r[ou]?Uu((function(e,t,n,o){var i,a=r(e,null,o,[]),c=e.length;while(c--)(i=a[c])&&(e[c]=!(t[c]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:Uu((function(e){return function(t){return ju(e,t).length>0}})),contains:Uu((function(e){return e=e.replace(Hu,Fu),function(t){return(t.textContent||t.innerText||ai(t)).indexOf(e)>-1}})),lang:Uu((function(e){return Du.test(e||"")||ju.error("unsupported lang: "+e),e=e.replace(Hu,Fu).toLowerCase(),function(t){var n;do{if(n=vi?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===hi},focus:function(e){return e===pi.activeElement&&(!pi.hasFocus||pi.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!ii.pseudos.empty(e)},header:function(e){return Nu.test(e.nodeName)},input:function(e){return Ru.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:Gu((function(){return[0]})),last:Gu((function(e,t){return[t-1]})),eq:Gu((function(e,t,n){return[n<0?n+t:n]})),even:Gu((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:Gu((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:Gu((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:Gu((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},ii.pseudos.nth=ii.pseudos.eq,Q(["radio","checkbox","file","password","image"],(function(e){ii.pseudos[e]=Wu(e)})),Q(["submit","reset"],(function(e){ii.pseudos[e]=$u(e)})),Xu.prototype=ii.filters=ii.pseudos,ii.setFilters=new Xu,ui=ju.tokenize=function(e,t){var n,r,o,i,a,c,u,s=su[e+" "];if(s)return t?0:s.slice(0);a=e,c=[],u=ii.preFilter;while(a){for(i in n&&!(r=Tu.exec(a))||(r&&(a=a.slice(r[0].length)||a),c.push(o=[])),n=!1,(r=Ou.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(Su," ")}),a=a.slice(n.length)),ii.filter)ii.filter.hasOwnProperty(i)&&(!(r=Mu[i].exec(a))||u[i]&&!(r=u[i](r))||(n=r.shift(),o.push({value:n,type:i,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?ju.error(e):su(e,c).slice(0)},si=ju.compile=function(e,t){var n,r=[],o=[],i=lu[e+" "];if(!i){t||(t=ui(e)),n=t.length;while(n--)i=ns(t[n]),i[ou]?r.push(i):o.push(i);i=lu(e,rs(o,r)),i.selector=e}return i},li=ju.select=function(e,t,n,r){var o,i,a,c,u,s="function"===typeof e&&e,l=!r&&ui(e=s.selector||e);if(n=n||[],1===l.length){if(i=l[0]=l[0].slice(0),i.length>2&&"ID"===(a=i[0]).type&&oi.getById&&9===t.nodeType&&vi&&ii.relative[i[1].type]){if(t=(ii.find.ID(a.matches[0].replace(Hu,Fu),t)||[])[0],!t)return n;s&&(t=t.parentNode),e=e.slice(i.shift().value.length)}o=Mu.needsContext.test(e)?0:i.length;while(o--){if(a=i[o],ii.relative[c=a.type])break;if((u=ii.find[c])&&(r=u(a.matches[0].replace(Hu,Fu),Lu.test(i[0].type)&&Ku(t.parentNode)||t))){if(i.splice(o,1),e=r.length&&Yu(i),!e)return yu.apply(n,r),n;break}}}return(s||si(e,l))(r,t,!vi,n,Lu.test(e)&&Ku(t.parentNode)||t),n},oi.sortStable=ou.split("").sort(fu).join("")===ou,oi.detectDuplicates=!!mi,gi(),oi.sortDetached=!0;var os=document,is=Array.prototype.push,as=Array.prototype.slice,cs=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,us=ru.Event,ss=gn.makeMap("children,contents,next,prev"),ls=function(e){return"undefined"!==typeof e},fs=function(e){return"string"===typeof e},ds=function(e){return e&&e===e.window},ms=function(e,t){t=t||os;var n,r=t.createElement("div"),o=t.createDocumentFragment();r.innerHTML=e;while(n=r.firstChild)o.appendChild(n);return o},gs=function(e,t,n,r){var o;if(fs(t))t=ms(t,Es(e[0]));else if(t.length&&!t.nodeType){if(t=Rs.makeArray(t),r)for(o=t.length-1;o>=0;o--)gs(e,t[o],n,r);else for(o=0;o<t.length;o++)gs(e,t[o],n,r);return e}if(t.nodeType){o=e.length;while(o--)n.call(e[o],t)}return e},ps=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},hs=function(e,t,n){var r,o;return t=Rs(t)[0],e.each((function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,o=t.cloneNode(!1),e.parentNode.insertBefore(o,e)),o.appendChild(e)})),e},vs=gn.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),ys=gn.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),bs={for:"htmlFor",class:"className",readonly:"readOnly"},ws={float:"cssFloat"},ks={},_s={},xs=function(e,t){return new Rs.fn.init(e,t)},zs=function(e,t){var n;if(t.indexOf)return t.indexOf(e);n=t.length;while(n--)if(t[n]===e)return n;return-1},Cs=/^\s*|\s*$/g,Ss=function(e){return null===e||void 0===e?"":(""+e).replace(Cs,"")},Ts=function(e,t){var n,r,o,i;if(e)if(n=e.length,void 0===n){for(r in e)if(e.hasOwnProperty(r)&&(i=e[r],!1===t.call(i,r,i)))break}else for(o=0;o<n;o++)if(i=e[o],!1===t.call(i,o,i))break;return e},Os=function(e,t){var n=[];return Ts(e,(function(e,r){t(r,e)&&n.push(r)})),n},Es=function(e){return e?9===e.nodeType?e:e.ownerDocument:os};xs.fn=xs.prototype={constructor:xs,selector:"",context:null,length:0,init:function(e,t){var n,r,o=this;if(!e)return o;if(e.nodeType)return o.context=o[0]=e,o.length=1,o;if(t&&t.nodeType)o.context=t;else{if(t)return Rs(e).attr(t);o.context=t=document}if(fs(e)){if(o.selector=e,n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:cs.exec(e),!n)return Rs(t).find(e);if(n[1]){r=ms(e,Es(t)).firstChild;while(r)is.call(o,r),r=r.nextSibling}else{if(r=Es(t).getElementById(n[2]),!r)return o;if(r.id!==n[2])return o.find(e);o.length=1,o[0]=r}}else this.add(e,!1);return o},toArray:function(){return gn.toArray(this)},add:function(e,t){var n,r,o=this;if(fs(e))return o.add(Rs(e));if(!1!==t)for(n=Rs.unique(o.toArray().concat(Rs.makeArray(e))),o.length=n.length,r=0;r<n.length;r++)o[r]=n[r];else is.apply(o,Rs.makeArray(e));return o},attr:function(e,t){var n,r=this;if("object"===typeof e)Ts(e,(function(e,t){r.attr(e,t)}));else{if(!ls(t)){if(r[0]&&1===r[0].nodeType){if(n=ks[e],n&&n.get)return n.get(r[0],e);if(ys[e])return r.prop(e)?e:void 0;t=r[0].getAttribute(e,2),null===t&&(t=void 0)}return t}this.each((function(){var n;if(1===this.nodeType){if(n=ks[e],n&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}}))}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if(e=bs[e]||e,"object"===typeof e)Ts(e,(function(e,t){n.prop(e,t)}));else{if(!ls(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each((function(){1===this.nodeType&&(this[e]=t)}))}return n},css:function(e,t){var n,r,o=this,i=function(e){return e.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()}))},a=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e}))};if("object"===typeof e)Ts(e,(function(e,t){o.css(e,t)}));else if(ls(t))e=i(e),"number"!==typeof t||vs[e]||(t=t.toString()+"px"),o.each((function(){var n=this.style;if(r=_s[e],r&&r.set)r.set(this,t);else{try{this.style[ws[e]||e]=t}catch(o){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(a(e)):n.removeAttribute(e))}}));else{if(n=o[0],r=_s[e],r&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[i(e)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(e))}catch(c){return}}return o},remove:function(){var e,t=this,n=this.length;while(n--)e=t[n],us.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){var e,t=this,n=this.length;while(n--){e=t[n];while(e.firstChild)e.removeChild(e.firstChild)}return this},html:function(e){var t,n=this;if(ls(e)){t=n.length;try{while(t--)n[t].innerHTML=e}catch(r){Rs(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(ls(e)){t=n.length;while(t--)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return gs(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return gs(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)}),!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?gs(e,arguments,(function(e){this.parentNode.insertBefore(e,this)})):e},after:function(){var e=this;return e[0]&&e[0].parentNode?gs(e,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):e},appendTo:function(e){return Rs(e).append(this),this},prependTo:function(e){return Rs(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return hs(this,e)},wrapAll:function(e){return hs(this,e,!0)},wrapInner:function(e){return this.each((function(){Rs(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){Rs(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),Rs(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!==typeof e||(-1!==e.indexOf(" ")?Ts(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,r){var o=ps(r,e);if(o!==t){var i=r.className;o?r.className=Ss((" "+i+" ").replace(" "+e+" "," ")):r.className+=i?" "+e:e}}))),n},hasClass:function(e){return ps(this[0],e)},each:function(e){return Ts(this,e)},on:function(e,t){return this.each((function(){us.bind(this,e,t)}))},off:function(e,t){return this.each((function(){us.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"===typeof e?us.fire(this,e.type,e):us.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return Rs(as.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)Rs.find(e,this[t],r);return Rs(r)},filter:function(e){return Rs("function"===typeof e?Os(this.toArray(),(function(t,n){return e(n,t)})):Rs.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Rs&&(e=e[0]),this.each((function(n,r){while(r){if("string"===typeof e&&Rs(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}})),Rs(t)},offset:function(e){var t,n,r,o,i=0,a=0;return e?this.css(e):(t=this[0],t&&(n=t.ownerDocument,r=n.documentElement,t.getBoundingClientRect&&(o=t.getBoundingClientRect(),i=o.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=o.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:i,top:a})},push:is,sort:Array.prototype.sort,splice:Array.prototype.splice},gn.extend(xs,{extend:gn.extend,makeArray:function(e){return ds(e)||e.nodeType?[e]:gn.toArray(e)},inArray:zs,isArray:gn.isArray,each:Ts,trim:Ss,grep:Os,find:ju,expr:ju.selectors,unique:ju.uniqueSort,text:ju.getText,contains:ju.contains,filter:function(e,t,n){var r=t.length;n&&(e=":not("+e+")");while(r--)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?Rs.find.matchesSelector(t[0],e)?[t[0]]:[]:Rs.find.matches(e,t),t}});var As=function(e,t,n){var r=[],o=e[t];"string"!==typeof n&&n instanceof Rs&&(n=n[0]);while(o&&9!==o.nodeType){if(void 0!==n){if(o===n)break;if("string"===typeof n&&Rs(o).is(n))break}1===o.nodeType&&r.push(o),o=o[t]}return r},Ds=function(e,t,n,r){var o=[];for(r instanceof Rs&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"===typeof r&&Rs(e).is(r))break}o.push(e)}return o},Ms=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};Ts({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return As(e,"parentNode")},next:function(e){return Ms(e,"nextSibling",1)},prev:function(e){return Ms(e,"previousSibling",1)},children:function(e){return Ds(e.firstChild,"nextSibling",1)},contents:function(e){return gn.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){xs.fn[e]=function(n){var r=this,o=[];r.each((function(){var e=t.call(o,this,n,o);e&&(Rs.isArray(e)?o.push.apply(o,e):o.push(e))})),this.length>1&&(ss[e]||(o=Rs.unique(o)),0===e.indexOf("parents")&&(o=o.reverse()));var i=Rs(o);return n?i.filter(n):i}})),Ts({parentsUntil:function(e,t){return As(e,"parentNode",t)},nextUntil:function(e,t){return Ds(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Ds(e,"previousSibling",1,t).slice(1)}},(function(e,t){xs.fn[e]=function(n,r){var o=this,i=[];o.each((function(){var e=t.call(i,this,n,i);e&&(Rs.isArray(e)?i.push.apply(i,e):i.push(e))})),this.length>1&&(i=Rs.unique(i),0!==e.indexOf("parents")&&"prevUntil"!==e||(i=i.reverse()));var a=Rs(i);return r?a.filter(r):a}})),xs.fn.is=function(e){return!!e&&this.filter(e).length>0},xs.fn.init.prototype=xs.fn,xs.overrideDefaults=function(e){var t,n=function(r,o){return t=t||e(),0===arguments.length&&(r=t.element),o||(o=t.context),new n.fn.init(r,o)};return Rs.extend(n,this),n},xs.attrHooks=ks,xs.cssHooks=_s;var Rs=xs,Ns=gn.each,Bs=gn.grep,Ps=en.ie,Ls=/^([a-z0-9],?)+$/i,Is=function(e,t,n){var r=t.keep_values,o={set:function(e,r,o){t.url_converter&&null!==r&&(r=t.url_converter.call(t.url_converter_scope||n(),r,o,e[0])),e.attr("data-mce-"+o,r).attr(o,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},i={style:{set:function(t,n){null===n||"object"!==typeof n?(r&&t.attr("data-mce-style",n),null!==n&&"string"===typeof n?(t.removeAttr("style"),t.css(e.parse(n))):t.attr("style",n)):t.css(n)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName),n}}};return r&&(i.href=i.src=o),i},Hs=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},Fs=function(e,t){var n,r,o=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(o++,n=r);return o},js=function(e,t){void 0===t&&(t={});var n={},r=window,o={},i=0,a=!0,c=!0,u=Hi.forElement(wn.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),s=[],l=t.schema?t.schema:jc({}),f=Uc({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),d=t.ownEvents?new ru:ru.Event,m=l.getBlockElements(),g=Rs.overrideDefaults((function(){return{context:e,element:De.getRoot()}})),p=function(e){if("string"===typeof e)return!!m[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!m[e.nodeName])}return!1},h=function(t){return t&&e&&v(t)?e.getElementById(t):t},y=function(e){return g("string"===typeof e?h(e):e)},b=function(e,t,n){var r,o,i=y(e);return i.length&&(r=Me[t],o=r&&r.get?r.get(i,t):i.attr(t)),"undefined"===typeof o&&(o=n||""),o},w=function(e){var t=h(e);return t?t.attributes:[]},k=function(e,n,r){""===r&&(r=null);var o=y(e),i=o.attr(n);if(o.length){var a=Me[n];a&&a.set?a.set(o,r,n):o.attr(n,r),i!==r&&t.onSetAttrib&&t.onSetAttrib({attrElm:o,attrName:n,attrValue:r})}},_=function(t,n){if(!Ps||1!==t.nodeType||n)return t.cloneNode(n);var r=e.createElement(t.nodeName);return Ns(w(t),(function(e){k(r,e.nodeName,b(t,e.nodeName))})),r},z=function(){return t.root_element||e.body},C=function(e){var t=Fr(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},S=function(t,n){return Bo(e.body,h(t),n)},O=function(e,n,r){var o=v(n)?y(e).css(n,r):y(e).css(n);t.update_styles&&Hs(f,o)},E=function(e,n){var r=y(e).css(n);t.update_styles&&Hs(f,r)},D=function(e,t,n){var r=y(e);return n?r.css(t):(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})),"float"===t&&(t=en.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},M=function(e){var t,n;return e=h(e),t=D(e,"width"),n=D(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},R=function(e){e=h(e);var t=S(e),n=M(e);return{x:t.x,y:t.y,w:n.w,h:n.h}},N=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(Ls.test(t)){var r=t.toLowerCase().split(/,/),o=e.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===o)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var i=Array.isArray(e)?e:[e];return ju(t,i[0].ownerDocument||i[0],null,i).length>0},B=function(e,t,n,r){var o,i=[],a=h(e);r=void 0===r,n=n||("BODY"!==z().nodeName?z().parentNode:null),gn.is(t,"string")&&(o=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return N(e,o)});while(a){if(a===n||x(a.nodeType)||to(a)||no(a))break;if(!t||"function"===typeof t&&t(a)){if(!r)return[a];i.push(a)}a=a.parentNode}return r?i:null},P=function(e,t,n){var r=B(e,t,n,!1);return r&&r.length>0?r[0]:null},L=function(e,t,n){var r=t;if(e)for("string"===typeof t&&(r=function(e){return N(e,t)}),e=e[n];e;e=e[n])if("function"===typeof r&&r(e))return e;return null},I=function(e,t){return L(e,t,"nextSibling")},H=function(e,t){return L(e,t,"previousSibling")},F=function(n,r){return ju(n,h(r)||t.root_element||e,[])},j=function(e,t,n){var r,o="string"===typeof e?h(e):e;if(!o)return!1;if(gn.isArray(o)&&(o.length||0===o.length))return r=[],Ns(o,(function(e,o){e&&r.push(t.call(n,"string"===typeof e?h(e):e,o))})),r;var i=n||this;return t.call(i,o)},V=function(e,t){y(e).each((function(e,n){Ns(t,(function(e,t){k(n,t,e)}))}))},U=function(e,t){var n=y(e);Ps?n.each((function(e,n){if(!1!==n.canHaveHTML){while(n.firstChild)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(r){Rs("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)},q=function(t,n,r,o,i){return j(t,(function(t){var a="string"===typeof n?e.createElement(n):n;return V(a,r),o&&("string"!==typeof o&&o.nodeType?a.appendChild(o):"string"===typeof o&&U(a,o)),i?a:t.appendChild(a)}))},W=function(t,n,r){return q(e.createElement(t),t,n,r,!0)},$=Oc.decode,G=Oc.encodeAllRaw,K=function(e,t,n){var r,o="";for(r in o+="<"+e,t)Re(t,r)&&(o+=" "+r+'="'+G(t[r])+'"');return"undefined"!==typeof n?o+">"+n+"</"+e+">":o+" />"},X=function(t){var n,r=e.createElement("div"),o=e.createDocumentFragment();o.appendChild(r),t&&(r.innerHTML=t);while(n=r.firstChild)o.appendChild(n);return o.removeChild(r),o},Y=function(e,t){var n=y(e);return t?n.each((function(){var e;while(e=this.firstChild)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)})).remove():n.remove(),n.length>1?n.toArray():n[0]},J=function(e){return j(e,(function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))}))},Z=function(e){return f.parse(e)},ee=function(e,t){return f.serialize(e,t)},te=function(t){var r,o;if(De!==js.DOM&&e===document){if(n[t])return;n[t]=!0}o=e.getElementById("mceDefaultStyles"),o||(o=e.createElement("style"),o.id="mceDefaultStyles",o.type="text/css",r=e.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o)),o.styleSheet?o.styleSheet.cssText+=t:o.appendChild(e.createTextNode(t))},ne=function(e){e||(e=""),Q(e.split(","),(function(e){o[e]=!0,u.load(e,T)}))},re=function(e,t,n){y(e).toggleClass(t,n).each((function(){""===this.className&&Rs(this).attr("class",null)}))},oe=function(e,t){y(e).addClass(t)},ie=function(e,t){re(e,t,!1)},ae=function(e,t){return y(e).hasClass(t)},ce=function(e){y(e).show()},ue=function(e){y(e).hide()},se=function(e){return"none"===y(e).css("display")},le=function(e){return(e||"mce_")+i++},fe=function(e){var t="string"===typeof e?h(e):e;return Ur(t)?t.outerHTML:Rs("<div></div>").append(Rs(t).clone()).html()},de=function(e,t){y(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}Y(Rs(this).html(t),!0)}))},me=function(e,t){var n=h(t);return j(e,(function(e){var t=n.parentNode,r=n.nextSibling;return r?t.insertBefore(e,r):t.appendChild(e),e}))},ge=function(e,t,n){return j(t,(function(t){return gn.is(t,"array")&&(e=e.cloneNode(!0)),n&&Ns(Bs(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))},pe=function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=W(t),Ns(w(e),(function(t){k(n,t.nodeName,b(e,t.nodeName))})),ge(n,e,!0)),n||e},he=function(e,t){var n,r=e;while(r){n=t;while(n&&r!==n)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},ve=function(e){return f.toHex(gn.trim(e))},ye=function(e){if(Ur(e)){var t="a"===e.nodeName.toLowerCase()&&!b(e,"href")&&b(e,"id");if(b(e,"name")||b(e,"data-mce-bookmark")||t)return!0}return!1},be=function(e,t){var n,r,o=0;if(ye(e))return!1;if(e=e.firstChild,e){var i=new Fi(e,e.parentNode),a=l?l.getWhiteSpaceElements():{};t=t||(l?l.getNonEmptyElements():null);do{if(n=e.nodeType,Ur(e)){var c=e.getAttribute("data-mce-bogus");if(c){e=i.next("all"===c);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"===r){o++,e=i.next();continue}return!1}if(ye(e))return!1}if(8===n)return!1;if(3===n&&!Ga(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&Ga(e.nodeValue))return!1;e=i.next()}while(e)}return o<=1},we=function(){return e.createRange()},ke=function(e,t,n){var r,o,i,a=we();if(e&&t)return a.setStart(e.parentNode,Fs(e)),a.setEnd(t.parentNode,Fs(t)),r=a.extractContents(),a=we(),a.setStart(t.parentNode,Fs(t)+1),a.setEnd(e.parentNode,Fs(e)+1),o=a.extractContents(),i=e.parentNode,i.insertBefore(lc(De,r),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(lc(De,o),e),Y(e),n||t},xe=function(n,o,i,a){if(gn.isArray(n)){var c=n.length,u=[];while(c--)u[c]=xe(n[c],o,i,a);return u}!t.collect||n!==e&&n!==r||s.push([n,o,i,a]);var l=d.bind(n,o,i,a||De);return l},ze=function(t,n,o){if(gn.isArray(t)){var i=t.length,a=[];while(i--)a[i]=ze(t[i],n,o);return a}if(s.length>0&&(t===e||t===r)){i=s.length;while(i--){var c=s[i];t!==c[0]||n&&n!==c[1]||o&&o!==c[2]||d.unbind(c[0],c[1],c[2])}}return d.unbind(t,n,o)},Ce=function(e,t,n){return d.fire(e,t,n)},Se=function(e){if(e&&Ur(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},Te=function(e){for(var t=z(),n=null;e&&e!==t;e=e.parentNode)if(n=Se(e),null!==n)break;return n},Oe=function(){if(s.length>0){var e=s.length;while(e--){var t=s[e];d.unbind(t[0],t[1],t[2])}}_e(o,(function(e,t){u.unload(t),delete o[t]})),ju.setDocument&&ju.setDocument()},Ee=function(e,t){if(Ps){while(e){if(t===e)return!0;e=e.parentNode}return!1}return e===t||t.contains(e)},Ae=function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},De={doc:e,settings:t,win:r,files:o,stdMode:a,boxModel:c,styleSheetLoader:u,boundEvents:s,styles:f,schema:l,events:d,isBlock:p,$:g,$$:y,root:null,clone:_,getRoot:z,getViewPort:C,getRect:R,getSize:M,getParent:P,getParents:B,get:h,getNext:I,getPrev:H,select:F,is:N,add:q,create:W,createHTML:K,createFragment:X,remove:Y,setStyle:O,getStyle:D,setStyles:E,removeAllAttribs:J,setAttrib:k,setAttribs:V,getAttrib:b,getPos:S,parseStyle:Z,serializeStyle:ee,addStyle:te,loadCSS:ne,addClass:oe,removeClass:ie,hasClass:ae,toggleClass:re,show:ce,hide:ue,isHidden:se,uniqueId:le,setHTML:U,getOuterHTML:fe,setOuterHTML:de,decode:$,encode:G,insertAfter:me,replace:ge,rename:pe,findCommonAncestor:he,toHex:ve,run:j,getAttribs:w,isEmpty:be,createRng:we,nodeIndex:Fs,split:ke,bind:xe,unbind:ze,fire:Ce,getContentEditable:Se,getContentEditableParent:Te,destroy:Oe,isChildOf:Ee,dumpRng:Ae},Me=Is(f,t,A(De));return De};js.DOM=js(document),js.nodeIndex=Fs;var Vs=js.DOM,Us=gn.each,qs=gn.grep,Ws=0,$s=1,Gs=2,Ks=3,Xs=function(){function e(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}return e.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},e.prototype.loadScript=function(e,t,n){var r,o=Vs,i=function(){o.remove(u),r&&(r.onerror=r.onload=r=null)},a=function(){i(),t()},c=function(){i(),C(n)?n():"undefined"!==typeof console&&console.log&&console.log("Failed to load script: "+e)},u=o.uniqueId();r=document.createElement("script"),r.id=u,r.type="text/javascript",r.src=gn._addCacheSuffix(e),this.settings.referrerPolicy&&o.setAttrib(r,"referrerpolicy",this.settings.referrerPolicy),r.onload=a,r.onerror=c,(document.getElementsByTagName("head")[0]||document.body).appendChild(r)},e.prototype.isDone=function(e){return this.states[e]===Gs},e.prototype.markDone=function(e){this.states[e]=Gs},e.prototype.add=function(e,t,n,r){var o=this.states[e];this.queue.push(e),void 0===o&&(this.states[e]=Ws),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},e.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},e.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},e.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},e.prototype.loadScripts=function(e,t,n,r){var o=this,i=[],a=function(e,t){Us(o.scriptLoadedCallbacks[t],(function(t){C(t[e])&&t[e].call(t.scope)})),o.scriptLoadedCallbacks[t]=void 0};o.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this});var c=function(){var t=qs(e);if(e.length=0,Us(t,(function(e){o.states[e]!==Gs?o.states[e]!==Ks?o.states[e]!==$s&&(o.states[e]=$s,o.loading++,o.loadScript(e,(function(){o.states[e]=Gs,o.loading--,a("success",e),c()}),(function(){o.states[e]=Ks,o.loading--,i.push(e),a("failure",e),c()}))):a("failure",e):a("success",e)})),!o.loading){var n=o.queueLoadedCallbacks.slice(0);o.queueLoadedCallbacks.length=0,Us(n,(function(e){0===i.length?C(e.success)&&e.success.call(e.scope):C(e.failure)&&e.failure.call(e.scope,i)}))}};c()},e.ScriptLoader=new e,e}(),Ys=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Js=function(e){return y(e)&&Me(e,"raw")},Zs=function(e){return b(e)&&e.length>1},Qs={},el=Ys("en"),tl=function(){return De(Qs,el.get())},nl=function(){return xe(Qs,(function(e){return qe({},e)}))},rl=function(e){e&&el.set(e)},ol=function(){return el.get()},il=function(e,t){var n=Qs[e];n||(Qs[e]=n={}),_e(t,(function(e,t){n[t.toLowerCase()]=e}))},al=function(e){var t=tl().getOr({}),n=function(e){return C(e)?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||void 0===e},o=function(e){var r=n(e);return De(t,r.toLowerCase()).map(n).getOr(r)},i=function(e){return e.replace(/{context:\w+}$/,"")};if(r(e))return"";if(Js(e))return n(e.raw);if(Zs(e)){var a=e.slice(1),c=o(e[0]).replace(/\{([0-9]+)\}/g,(function(e,t){return Me(a,t)?n(a[t]):e}));return i(c)}return i(o(e))},cl=function(){return tl().bind((function(e){return De(e,"_dir")})).exists((function(e){return"rtl"===e}))},ul=function(e){return Me(Qs,e)},sl={getData:nl,setCode:rl,getCode:ol,add:il,translate:al,isRtl:cl,hasCode:ul},ll=function(){var e=[],t={},n={},r=[],o=function(e,t){var n=ne(r,(function(n){return n.name===e&&n.state===t}));Q(n,(function(e){return e.callback()}))},i=function(e){if(n[e])return n[e].instance},a=function(e){var t;return n[e]&&(t=n[e].dependencies),t||[]},c=function(e,n){!1!==ll.languageLoad&&g(e,(function(){var r=sl.getCode(),o=","+(n||"")+",";!r||n&&-1===o.indexOf(","+r+",")||Xs.ScriptLoader.add(t[e]+"/langs/"+r+".js")}),"loaded")},u=function(t,r,i){var a=r;return e.push(a),n[t]={instance:a,dependencies:i},o(t,"added"),a},s=function(e){delete t[e],delete n[e]},l=function(e,t){return"object"===typeof t?t:"string"===typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},f=function(e,n){var r=t[e];Q(n,(function(e){Xs.ScriptLoader.add(r+"/"+e)}))},d=function(e,t,n,r){var o=a(e);Q(o,(function(e){var n=l(t,e);m(n.resource,n,void 0,void 0)})),n&&(r?n.call(r):n.call(Xs))},m=function(e,r,i,a,c){if(!t[e]){var u="string"===typeof r?r:r.prefix+r.resource+r.suffix;0!==u.indexOf("/")&&-1===u.indexOf("://")&&(u=ll.baseURL+"/"+u),t[e]=u.substring(0,u.lastIndexOf("/"));var s=function(){o(e,"loaded"),d(e,r,i,a)};n[e]?s():Xs.ScriptLoader.add(u,s,a,c)}},g=function(e,o,i){void 0===i&&(i="added"),Me(n,e)&&"added"===i||Me(t,e)&&"loaded"===i?o():r.push({name:e,state:i,callback:o})};return{items:e,urls:t,lookup:n,_listeners:r,get:i,dependencies:a,requireLangPack:c,add:u,remove:s,createUrl:l,addComponents:f,load:m,waitFor:g}};ll.languageLoad=!0,ll.baseURL="",ll.PluginManager=ll(),ll.ThemeManager=ll();var fl=function(e){var t=Ys(q.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(q.none())},o=function(){return t.get().isSome()},i=function(){return t.get()},a=function(e){n(),t.set(q.some(e))};return{clear:r,isSet:o,get:i,set:a}},dl=function(){var e=fl(T),t=function(t){return e.get().each(t)};return qe(qe({},e),{on:t})},ml=function(e,t){var n=null,r=function(){w(n)||(clearTimeout(n),n=null)},o=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];w(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))};return{cancel:r,throttle:o}},gl=function(e,t){var n=null,r=function(){w(n)||(clearTimeout(n),n=null)},o=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];r(),n=setTimeout((function(){n=null,e.apply(null,o)}),t)};return{cancel:r,throttle:o}},pl=function(e,t){var n=bo(e,t);return void 0===n||""===n?[]:n.split(" ")},hl=function(e,t,n){var r=pl(e,t),o=r.concat([n]);return vo(e,t,o.join(" ")),!0},vl=function(e,t,n){var r=ne(pl(e,t),(function(e){return e!==n}));return r.length>0?vo(e,t,r.join(" ")):_o(e,t),!1},yl=function(e){return void 0!==e.dom.classList},bl=function(e){return pl(e,"class")},wl=function(e,t){return hl(e,"class",t)},kl=function(e,t){return vl(e,"class",t)},_l=function(e,t){yl(e)?e.dom.classList.add(t):wl(e,t)},xl=function(e){var t=yl(e)?e.dom.classList:bl(e);0===t.length&&_o(e,"class")},zl=function(e,t){if(yl(e)){var n=e.dom.classList;n.remove(t)}else kl(e,t);xl(e)},Cl=function(e,t){return yl(e)&&e.dom.classList.contains(t)},Sl=function(e,t){var n=[];return Q(rr(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Sl(e,t))})),n},Tl=function(e,t){return Dn(t,e)},Ol=A("mce-annotation"),El=A("data-mce-annotation"),Al=A("data-mce-annotation-uid"),Dl=function(e,t){var n=e.selection.getRng(),r=wn.fromDom(n.startContainer),o=wn.fromDom(e.getBody()),i=t.fold((function(){return"."+Ol()}),(function(e){return"["+El()+'="'+e+'"]'})),a=or(r,n.startOffset).getOr(r),c=Oi(a,i,(function(e){return Rn(e,o)})),u=function(e,t){return ko(e,t)?q.some(bo(e,t)):q.none()};return c.bind((function(t){return u(t,""+Al()).bind((function(n){return u(t,""+El()).map((function(t){var r=Rl(e,n);return{uid:n,name:t,elements:r}}))}))}))},Ml=function(e){return jn(e)&&Cl(e,Ol())},Rl=function(e,t){var n=wn.fromDom(e.getBody());return Tl(n,"["+Al()+'="'+t+'"]')},Nl=function(e,t){var n=wn.fromDom(e.getBody()),r=Tl(n,"["+El()+'="'+t+'"]'),o={};return Q(r,(function(e){var t=bo(e,Al()),n=De(o,t).getOr([]);o[t]=n.concat([e])})),o},Bl=function(e,t){var n=Ys({}),r=function(){return{listeners:[],previous:dl()}},o=function(e,t){i(e,(function(e){return t(e),e}))},i=function(e,t){var o=n.get(),i=De(o,e).getOrThunk(r),a=t(i);o[e]=a,n.set(o)},a=function(e,t,n){o(e,(function(r){Q(r.listeners,(function(r){return r(!0,e,{uid:t,nodes:Z(n,(function(e){return e.dom}))})}))}))},c=function(e){o(e,(function(t){Q(t.listeners,(function(t){return t(!1,e)}))}))},u=gl((function(){var t=n.get(),r=ge(we(t));Q(r,(function(t){i(t,(function(n){var r=n.previous.get();return Dl(e,q.some(t)).fold((function(){r.isSome()&&(c(t),n.previous.clear())}),(function(e){var t=e.uid,o=e.name,i=e.elements;so(r,t)||(a(o,t,i),n.previous.set(t))})),{previous:n.previous,listeners:n.listeners}}))}))}),30);e.on("remove",(function(){u.cancel()})),e.on("NodeChange",(function(){u.throttle()}));var s=function(e,t){i(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))};return{addListener:s}},Pl=function(e,t){var n=function(e){return q.from(e.attr(El())).bind(t.lookup)};e.on("init",(function(){e.serializer.addNodeFilter("span",(function(e){Q(e,(function(e){n(e).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}))},Ll=function(){var e={},t=function(t,n){e[t]={name:t,settings:n}},n=function(t){return De(e,t).map((function(e){return e.settings}))};return{register:t,lookup:n}},Il=0,Hl=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Il++,e+"_"+r+Il+String(n)},Fl=function(e,t){Q(t,(function(t){_l(e,t)}))},jl=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,rr(wn.fromDom(r))},Vl=function(e){return Z(e,wn.fromDom)},Ul=function(e){return e.dom.innerHTML},ql=function(e,t){var n=$n(e),r=n.dom,o=wn.fromDom(r.createDocumentFragment()),i=jl(t,r);zr(o,i),Cr(e),kr(e,o)},Wl=function(e,t){return wn.fromDom(e.dom.cloneNode(t))},$l=function(e){return Wl(e,!1)},Gl=function(e){return Wl(e,!0)},Kl=function(e,t,n){void 0===n&&(n=I);var r=new Fi(e,t),o=function(e){var t;do{t=r[e]()}while(t&&!Qr(t)&&!n(t));return q.from(t).filter(Qr)};return{current:function(){return q.from(r.current()).filter(Qr)},next:function(){return o("next")},prev:function(){return o("prev")},prev2:function(){return o("prev2")}}},Xl=function(e,t){var n=t||function(t){return e.isBlock(t)||ro(t)||ao(t)},r=function(e,t,n,o){if(Qr(e)){var i=o(e,t,e.data);if(-1!==i)return q.some({container:e,offset:i})}return n().bind((function(e){return r(e.container,e.offset,n,o)}))},o=function(e,t,o,i){var a=Kl(e,i,n);return r(e,t,(function(){return a.prev().map((function(e){return{container:e,offset:e.length}}))}),o).getOrNull()},i=function(e,t,o,i){var a=Kl(e,i,n);return r(e,t,(function(){return a.next().map((function(e){return{container:e,offset:0}}))}),o).getOrNull()};return{backwards:o,forwards:i}},Yl=Math.round,Jl=function(e){return e?{left:Yl(e.left),top:Yl(e.top),bottom:Yl(e.bottom),right:Yl(e.right),width:Yl(e.width),height:Yl(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Zl=function(e,t){return e=Jl(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},Ql=function(e,t){return e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right},ef=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},tf=function(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&ef(t.top-e.bottom,e,t)},nf=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&ef(t.bottom-e.top,e,t)},rf=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},of=function(e,t,n){return Math.min(Math.max(e,t),n)},af=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},cf=function(e,t){if(Ur(e)&&e.hasChildNodes()){var n=e.childNodes,r=of(t,0,n.length-1);return n[r]}return e},uf=function(e,t){return t<0&&Ur(e)&&e.hasChildNodes()?void 0:cf(e,t)},sf=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿-⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),lf=function(e){return"string"===typeof e&&e.charCodeAt(0)>=768&&sf.test(e)},ff=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(e[n](t))return!0;return!1}},df=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(!e[n](t))return!1;return!0}},mf=Ur,gf=Ha,pf=Wr("display","block table"),hf=Wr("float","left right"),vf=df(mf,gf,N(hf)),yf=N(Wr("white-space","pre pre-line pre-wrap")),bf=Qr,wf=ro,kf=js.nodeIndex,_f=uf,xf=function(e){return"createRange"in e?e.createRange():js.DOM.createRng()},zf=function(e){return e&&/[\r\n\t ]/.test(e)},Cf=function(e){return!!e.setStart&&!!e.setEnd},Sf=function(e){var t=e.startContainer,n=e.startOffset;if(zf(e.toString())&&yf(t.parentNode)&&Qr(t)){var r=t.data;if(zf(r[n-1])||zf(r[n+1]))return!0}return!1},Tf=function(e){var t=e.ownerDocument,n=xf(t),r=t.createTextNode(sa),o=e.parentNode;o.insertBefore(r,e),n.setStart(r,0),n.setEnd(r,1);var i=Jl(n.getBoundingClientRect());return o.removeChild(r),i},Of=function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,o=e.endOffset;if(t===n&&Qr(n)&&0===r&&1===o){var i=e.cloneRange();return i.setEndAfter(n),Af(i)}return null},Ef=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},Af=function(e){var t,n=e.getClientRects();return t=n.length>0?Jl(n[0]):Jl(e.getBoundingClientRect()),!Cf(e)&&wf(e)&&Ef(t)?Tf(e):Ef(t)&&Cf(e)?Of(e):t},Df=function(e,t){var n=Zl(e,t);return n.width=1,n.right=n.left+1,n},Mf=function(e){var t=[],n=function(e){0!==e.height&&(t.length>0&&Ql(e,t[t.length-1])||t.push(e))},r=function(e,r){var o=xf(e.ownerDocument);if(r<e.data.length){if(lf(e.data[r]))return t;if(lf(e.data[r-1])&&(o.setStart(e,r),o.setEnd(e,r+1),!Sf(o)))return n(Df(Af(o),!1)),t}r>0&&(o.setStart(e,r-1),o.setEnd(e,r),Sf(o)||n(Df(Af(o),!1))),r<e.data.length&&(o.setStart(e,r),o.setEnd(e,r+1),Sf(o)||n(Df(Af(o),!0)))},o=e.container(),i=e.offset();if(bf(o))return r(o,i),t;if(mf(o))if(e.isAtEnd()){var a=_f(o,i);bf(a)&&r(a,a.data.length),vf(a)&&!wf(a)&&n(Df(Af(a),!1))}else{a=_f(o,i);if(bf(a)&&r(a,0),vf(a)&&e.isAtEnd())return n(Df(Af(a),!1)),t;var c=_f(e.container(),e.offset()-1);vf(c)&&!wf(c)&&(pf(c)||pf(a)||!vf(a))&&n(Df(Af(c),!1)),vf(a)&&n(Df(Af(a),!0))}return t},Rf=function(e,t,n){var r=function(){return bf(e),0===t},o=function(){return bf(e)?t>=e.data.length:t>=e.childNodes.length},i=function(){var n=xf(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},a=function(){return n||(n=Mf(Rf(e,t))),n},c=function(){return a().length>0},u=function(n){return n&&e===n.container()&&t===n.offset()},s=function(n){return _f(e,n?t-1:t)};return{container:A(e),offset:A(t),toRange:i,getClientRects:a,isVisible:c,isAtStart:r,isAtEnd:o,isEqual:u,getNode:s}};Rf.fromRangeStart=function(e){return Rf(e.startContainer,e.startOffset)},Rf.fromRangeEnd=function(e){return Rf(e.endContainer,e.endOffset)},Rf.after=function(e){return Rf(e.parentNode,kf(e)+1)},Rf.before=function(e){return Rf(e.parentNode,kf(e))},Rf.isAbove=function(e,t){return fo(he(t.getClientRects()),ve(e.getClientRects()),tf).getOr(!1)},Rf.isBelow=function(e,t){return fo(ve(t.getClientRects()),he(e.getClientRects()),nf).getOr(!1)},Rf.isAtStart=function(e){return!!e&&e.isAtStart()},Rf.isAtEnd=function(e){return!!e&&e.isAtEnd()},Rf.isTextPosition=function(e){return!!e&&Qr(e.container())},Rf.isElementPosition=function(e){return!1===Rf.isTextPosition(e)};var Nf,Bf=function(e,t){Qr(t)&&0===t.data.length&&e.remove(t)},Pf=function(e,t,n){t.insertNode(n),Bf(e,n.previousSibling),Bf(e,n.nextSibling)},Lf=function(e,t,n){var r=q.from(n.firstChild),o=q.from(n.lastChild);t.insertNode(n),r.each((function(t){return Bf(e,t.previousSibling)})),o.each((function(t){return Bf(e,t.nextSibling)}))},If=function(e,t,n){no(n)?Lf(e,t,n):Pf(e,t,n)},Hf=Qr,Ff=Kr,jf=js.nodeIndex,Vf=function(e){var t=e.parentNode;return Ff(t)?Vf(t):t},Uf=function(e){return e?je(e.childNodes,(function(e,t){return Ff(t)&&"BR"!==t.nodeName?e=e.concat(Uf(t)):e.push(t),e}),[]):[]},qf=function(e,t){while(e=e.previousSibling){if(!Hf(e))break;t+=e.data.length}return t},Wf=function(e){return function(t){return e===t}},$f=function(e){var t,n;t=Uf(Vf(e)),n=Ve(t,Wf(e),e),t=t.slice(0,n+1);var r=je(t,(function(e,n,r){return Hf(n)&&Hf(t[r-1])&&e++,e}),0);return t=He(t,qr([e.nodeName])),n=Ve(t,Wf(e),e),n-r},Gf=function(e){var t;return t=Hf(e)?"text()":e.nodeName.toLowerCase(),t+"["+$f(e)+"]"},Kf=function(e,t,n){var r=[];for(t=t.parentNode;t!==e;t=t.parentNode){if(n&&n(t))break;r.push(t)}return r},Xf=function(e,t){var n,r,o,i,a,c=[];return n=t.container(),r=t.offset(),Hf(n)?o=qf(n,r):(i=n.childNodes,r>=i.length?(o="after",r=i.length-1):o="before",n=i[r]),c.push(Gf(n)),a=Kf(e,n),a=He(a,N(Kr)),c=c.concat(Ie(a,(function(e){return Gf(e)}))),c.reverse().join("/")+","+o},Yf=function(e,t,n){var r=Uf(e);return r=He(r,(function(e,t){return!Hf(e)||!Hf(r[t-1])})),r=He(r,qr([t])),r[n]},Jf=function(e,t){var n,r=e,o=0;while(Hf(r)){if(n=r.data.length,t>=o&&t<=o+n){e=r,t-=o;break}if(!Hf(r.nextSibling)){e=r,t=n;break}o+=n,r=r.nextSibling}return Hf(e)&&t>e.data.length&&(t=e.data.length),Rf(e,t)},Zf=function(e,t){var n;if(!t)return null;var r=t.split(","),o=r[0].split("/");n=r.length>1?r[1]:"before";var i=je(o,(function(e,t){var n=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return n?("text()"===n[1]&&(n[1]="#text"),Yf(e,n[1],parseInt(n[2],10))):null}),e);return i?Hf(i)?Jf(i,parseInt(n,10)):(n="after"===n?jf(i)+1:jf(i),Rf(i.parentNode,n)):null},Qf=ao,ed=function(e,t,n){var r,o;for(o=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Qr(r);r=r.previousSibling)o+=e(r.data).length;return o},td=function(e,t,n,r,o){var i,a=r[o?"startContainer":"endContainer"],c=r[o?"startOffset":"endOffset"],u=[],s=0,l=e.getRoot();for(Qr(a)?u.push(n?ed(t,a,c):c):(i=a.childNodes,c>=i.length&&i.length&&(s=1,c=Math.max(0,i.length-1)),u.push(e.nodeIndex(i[c],n)+s));a&&a!==l;a=a.parentNode)u.push(e.nodeIndex(a,n));return u},nd=function(e,t,n,r){var o=t.dom,i={};return i.start=td(o,e,n,r,!0),t.isCollapsed()||(i.end=td(o,e,n,r,!1)),Aa(r)&&(i.isFakeCaret=!0),i},rd=function(e,t,n){var r=0;return gn.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++})),r},od=function(e,t){var n,r,o,i=t?"start":"end";n=e[i+"Container"],r=e[i+"Offset"],Ur(n)&&"TR"===n.nodeName&&(o=n.childNodes,n=o[Math.min(t?r:r-1,o.length-1)],n&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r)))},id=function(e){return od(e,!0),od(e,!1),e},ad=function(e,t){var n;if(Ur(e)&&(e=cf(e,t),Qf(e)))return e;if(ba(e)){if(Qr(e)&&va(e)&&(e=e.parentNode),n=e.previousSibling,Qf(n))return n;if(n=e.nextSibling,Qf(n))return n}},cd=function(e){return ad(e.startContainer,e.startOffset)||ad(e.endContainer,e.endOffset)},ud=function(e,t,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(Qf(r)||"IMG"===o)return{name:o,index:rd(n.dom,o,r)};var a=cd(i);return a?(o=a.tagName,{name:o,index:rd(n.dom,o,a)}):nd(e,n,t,i)},sd=function(e){var t=e.getRng();return{start:Xf(e.dom.getRoot(),Rf.fromRangeStart(t)),end:Xf(e.dom.getRoot(),Rf.fromRangeEnd(t))}},ld=function(e){return{rng:e.getRng()}},fd=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,""):e.create("span",r)},dd=function(e,t){var n=e.dom,r=e.getRng(),o=n.uniqueId(),i=e.isCollapsed(),a=e.getNode(),c=a.nodeName;if("IMG"===c)return{name:c,index:rd(n,c,a)};var u=id(r.cloneRange());if(!i){u.collapse(!1);var s=fd(n,o+"_end",t);If(n,u,s)}r=id(r),r.collapse(!0);var l=fd(n,o+"_start",t);return If(n,r,l),e.moveToBookmark({id:o,keep:!0}),{id:o}},md=function(e,t,n){return 2===t?ud(ga,n,e):3===t?sd(e):t?ld(e):dd(e,!1)},gd=R(ud,D,!0),pd=js.DOM,hd="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow",vd=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var o=e.getParam(t,"","hash");return De(o,e.id).getOr(n)}return r},yd=function(e){return e.getParam("iframe_attrs",{})},bd=function(e){return e.getParam("doctype","<!DOCTYPE html>")},wd=function(e){return e.getParam("document_base_url","")},kd=function(e){return vd(e,"body_id","tinymce")},_d=function(e){return vd(e,"body_class","")},xd=function(e){return e.getParam("content_security_policy","")},zd=function(e){return e.getParam("br_in_pre",!0)},Cd=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Sd=function(e){return e.getParam("forced_root_block_attrs",{})},Td=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},Od=function(e){return e.getParam("no_newline_selector","")},Ed=function(e){return e.getParam("keep_styles",!0)},Ad=function(e){return e.getParam("end_container_on_empty_block",!1)},Dd=function(e){return gn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},Md=function(e){return gn.explode(e.getParam("font_size_classes",""))},Rd=function(e){return e.getParam("images_dataimg_filter",H,"function")},Nd=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Bd=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Pd=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},Ld=function(e){return e.getParam("icons","","string")},Id=function(e){return e.getParam("icons_url","","string")},Hd=function(e){return e.getParam("images_upload_url","","string")},Fd=function(e){return e.getParam("images_upload_base_path","","string")},jd=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},Vd=function(e){return e.getParam("images_upload_handler",null,"function")},Ud=function(e){return e.getParam("content_css_cors",!1,"boolean")},qd=function(e){return e.getParam("referrer_policy","","string")},Wd=function(e){return e.getParam("language","en","string")},$d=function(e){return e.getParam("language_url","","string")},Gd=function(e){return e.getParam("indent_use_margin",!1)},Kd=function(e){return e.getParam("indentation","40px","string")},Xd=function(e){var t=e.getParam("content_css");return v(t)?Z(t.split(","),ft):b(t)?t:!1===t||e.inline?[]:["default"]},Yd=function(e){var t=e.getParam("font_css",[]);return b(t)?t:Z(t.split(","),ft)},Jd=function(e){return e.getParam("directionality",sl.isRtl()?"rtl":void 0)},Zd=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Qd=function(e){var t=e.getParam("object_resizing");return!1!==t&&!en.iOS&&(v(t)?t:"table,img,figure.image,div,video,iframe")},em=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},tm=function(e){return e.getParam("placeholder",pd.getAttrib(e.getElement(),"placeholder"),"string")},nm=function(e){return e.getParam("event_root")},rm=function(e){return e.getParam("service_message")},om=function(e){return e.getParam("theme")},im=function(e){return e.getParam("validate")},am=function(e){return!1!==e.getParam("inline_boundaries")},cm=function(e){return e.getParam("formats")},um=function(e){var t=e.getParam("preview_styles",hd);return v(t)?t:""},sm=function(e){return e.getParam("format_empty_lines",!1,"boolean")},lm=function(e){return e.getParam("custom_ui_selector","","string")},fm=function(e){return e.getParam("theme_url")},dm=function(e){return e.getParam("inline")},mm=function(e){return e.getParam("hidden_input")},gm=function(e){return e.getParam("submit_patch")},pm=function(e){return"xml"===e.getParam("encoding")},hm=function(e){return e.getParam("add_form_submit_trigger")},vm=function(e){return e.getParam("add_unload_trigger")},ym=function(e){return""!==Cd(e)},bm=function(e){return e.getParam("custom_undo_redo_levels",0,"number")},wm=function(e){return e.getParam("disable_nodechange")},km=function(e){return e.getParam("readonly")},_m=function(e){return e.getParam("content_css_cors")},xm=function(e){return e.getParam("plugins","","string")},zm=function(e){return e.getParam("external_plugins")},Cm=function(e){return e.getParam("block_unsupported_drop",!0,"boolean")},Sm=function(e){return e.getParam("visual",!0,"boolean")},Tm=function(e){return e.getParam("visual_table_class","mce-item-table","string")},Om=function(e){return e.getParam("visual_anchor_class","mce-item-anchor","string")},Em=function(e){return e.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string")},Am=Ur,Dm=Qr,Mm=function(e){var t=e.parentNode;t&&t.removeChild(e)},Rm=function(e){var t=ga(e);return{count:e.length-t.length,text:t}},Nm=function(e){var t;while(-1!==(t=e.data.lastIndexOf(da)))e.deleteData(t,1)},Bm=function(e,t){return jm(e),t},Pm=function(e,t){var n=Rm(e.data.substr(0,t.offset())),r=Rm(e.data.substr(t.offset())),o=n.text+r.text;return o.length>0?(Nm(e),Rf(e,t.offset()-n.count)):t},Lm=function(e,t){var n=t.container(),r=X(ye(n.childNodes),e).map((function(e){return e<t.offset()?Rf(n,t.offset()-1):t})).getOr(t);return jm(e),r},Im=function(e,t){return Dm(e)&&t.container()===e?Pm(e,t):Bm(e,t)},Hm=function(e,t){return t.container()===e.parentNode?Lm(e,t):Bm(e,t)},Fm=function(e,t){return Rf.isTextPosition(t)?Im(e,t):Hm(e,t)},jm=function(e){Am(e)&&ba(e)&&(wa(e)?e.removeAttribute("data-mce-caret"):Mm(e)),Dm(e)&&(Nm(e),0===e.data.length&&Mm(e))},Vm=Wt().browser,Um=ao,qm=uo,Wm=co,$m="*[contentEditable=false],video,audio,embed,object",Gm=function(e,t,n){var r,o,i=Zl(t.getBoundingClientRect(),n);if("BODY"===e.tagName){var a=e.ownerDocument.documentElement;r=e.scrollLeft||a.scrollLeft,o=e.scrollTop||a.scrollTop}else{var c=e.getBoundingClientRect();r=e.scrollLeft-c.left,o=e.scrollTop-c.top}i.left+=r,i.right+=r,i.top+=o,i.bottom+=o,i.width=1;var u=t.offsetWidth-t.clientWidth;return u>0&&(n&&(u*=-1),i.left+=u,i.right+=u),i},Km=function(e){for(var t=Tl(wn.fromDom(e),$m),n=0;n<t.length;n++){var r=t[n].dom,o=r.previousSibling;if(Ta(o)){var i=o.data;1===i.length?o.parentNode.removeChild(o):o.deleteData(i.length-1,1)}if(o=r.nextSibling,Sa(o)){i=o.data;1===i.length?o.parentNode.removeChild(o):o.deleteData(0,1)}}},Xm=function(e,t,n,r){var o,i,a=dl(),c=Cd(e),u=c.length>0?c:"p",s=function(e,r){var o;if(l(),Wm(r))return null;if(!n(r))return i=ka(r,e),o=r.ownerDocument.createRange(),Jm(i.nextSibling)?(o.setStart(i,0),o.setEnd(i,0)):(o.setStart(i,1),o.setEnd(i,1)),o;i=Ca(u,r,e);var c=Gm(t,r,e);Rs(i).css("top",c.top);var s=Rs('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(qe({},c)).appendTo(t)[0];return a.set({caret:s,element:r,before:e}),e&&Rs(s).addClass("mce-visual-caret-before"),f(),o=r.ownerDocument.createRange(),o.setStart(i,0),o.setEnd(i,0),o},l=function(){Km(t),i&&(jm(i),i=null),a.on((function(e){Rs(e.caret).remove(),a.clear()})),o&&(Pi.clearInterval(o),o=void 0)},f=function(){o=Pi.setInterval((function(){r()?Rs("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Rs("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")}),500)},d=function(){a.on((function(e){var n=Gm(t,e.element,e.before);Rs(e.caret).css(qe({},n))}))},m=function(){return Pi.clearInterval(o)},g=function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"};return{show:s,hide:l,getCss:g,reposition:d,destroy:m}},Ym=function(){return Vm.isIE()||Vm.isEdge()||Vm.isFirefox()},Jm=function(e){return Um(e)||qm(e)},Zm=function(e){return Jm(e)||Yr(e)&&Ym()},Qm=ao,eg=uo,tg=Wr("display","block table table-cell table-caption list-item"),ng=ba,rg=va,og=Ur,ig=Ha,ag=function(e){return e>0},cg=function(e){return e<0},ug=function(e,t){var n;while(n=e(t))if(!rg(n))return n;return null},sg=function(e,t,n,r,o){var i=new Fi(e,r),a=Qm(e)||rg(e);if(cg(t)){if(a&&(e=ug(i.prev.bind(i),!0),n(e)))return e;while(e=ug(i.prev.bind(i),o))if(n(e))return e}if(ag(t)){if(a&&(e=ug(i.next.bind(i),!0),n(e)))return e;while(e=ug(i.next.bind(i),o))if(n(e))return e}return null},lg=function(e,t){while(e&&e!==t){if(tg(e))return e;e=e.parentNode}return null},fg=function(e,t,n){return lg(e.container(),n)===lg(t.container(),n)},dg=function(e,t){if(!t)return null;var n=t.container(),r=t.offset();return og(n)?n.childNodes[r+e]:null},mg=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},gg=function(e,t,n){return lg(t,e)===lg(n,e)},pg=function(e,t,n){var r=e?"previousSibling":"nextSibling";while(n&&n!==t){var o=n[r];if(ng(o)&&(o=o[r]),Qm(o)||eg(o)){if(gg(t,o,n))return o;break}if(ig(o))break;n=n.parentNode}return null},hg=R(mg,!0),vg=R(mg,!1),yg=function(e,t,n){var r,o=R(pg,!0,t),i=R(pg,!1,t),a=n.startContainer,c=n.startOffset;if(va(a)){og(a)||(a=a.parentNode);var u=a.getAttribute("data-mce-caret");if("before"===u&&(r=a.nextSibling,Zm(r)))return hg(r);if("after"===u&&(r=a.previousSibling,Zm(r)))return vg(r)}if(!n.collapsed)return n;if(Qr(a)){if(ng(a)){if(1===e){if(r=i(a),r)return hg(r);if(r=o(a),r)return vg(r)}if(-1===e){if(r=o(a),r)return vg(r);if(r=i(a),r)return hg(r)}return n}if(Ta(a)&&c>=a.data.length-1)return 1===e&&(r=i(a),r)?hg(r):n;if(Sa(a)&&c<=1)return-1===e&&(r=o(a),r)?vg(r):n;if(c===a.data.length)return r=i(a),r?hg(r):n;if(0===c)return r=o(a),r?vg(r):n}return n},bg=function(e,t){return q.from(dg(e?0:-1,t)).filter(Qm)},wg=function(e,t,n){var r=yg(e,t,n);return-1===e?Rf.fromRangeStart(r):Rf.fromRangeEnd(r)},kg=function(e){return q.from(e.getNode()).map(wn.fromDom)},_g=function(e){return q.from(e.getNode(!0)).map(wn.fromDom)},xg=function(e,t){while(t=e(t))if(t.isVisible())return t;return t},zg=function(e,t){var n=fg(e,t);return!(n||!ro(e.getNode()))||n};(function(e){e[e["Backwards"]=-1]="Backwards",e[e["Forwards"]=1]="Forwards"})(Nf||(Nf={}));var Cg=ao,Sg=Qr,Tg=Ur,Og=ro,Eg=Ha,Ag=qa,Dg=Wa,Mg=function(e,t){var n=[];while(e&&e!==t)n.push(e),e=e.parentNode;return n},Rg=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},Ng=function(e,t){if(ag(e)){if(Eg(t.previousSibling)&&!Sg(t.previousSibling))return Rf.before(t);if(Sg(t))return Rf(t,0)}if(cg(e)){if(Eg(t.nextSibling)&&!Sg(t.nextSibling))return Rf.after(t);if(Sg(t))return Rf(t,t.data.length)}return cg(e)?Og(t)?Rf.before(t):Rf.after(t):Rf.before(t)},Bg=function(e,t){var n=t.nextSibling;return n&&Eg(n)?Sg(n)?Rf(n,0):Rf.before(n):Pg(Nf.Forwards,Rf.after(t),e)},Pg=function(e,t,n){var r,o,i,a;if(!Tg(n)||!t)return null;if(t.isEqual(Rf.after(n))&&n.lastChild){if(a=Rf.after(n.lastChild),cg(e)&&Eg(n.lastChild)&&Tg(n.lastChild))return Og(n.lastChild)?Rf.before(n.lastChild):a}else a=t;var c=a.container(),u=a.offset();if(Sg(c)){if(cg(e)&&u>0)return Rf(c,--u);if(ag(e)&&u<c.length)return Rf(c,++u);r=c}else{if(cg(e)&&u>0&&(o=Rg(c,u-1),Eg(o)))return!Ag(o)&&(i=sg(o,e,Dg,o),i)?Sg(i)?Rf(i,i.data.length):Rf.after(i):Sg(o)?Rf(o,o.data.length):Rf.before(o);if(ag(e)&&u<c.childNodes.length&&(o=Rg(c,u),Eg(o)))return Og(o)?Bg(n,o):!Ag(o)&&(i=sg(o,e,Dg,o),i)?Sg(i)?Rf(i,0):Rf.before(i):Sg(o)?Rf(o,0):Rf.after(o);r=o||a.getNode()}if((ag(e)&&a.isAtEnd()||cg(e)&&a.isAtStart())&&(r=sg(r,e,H,n,!0),Dg(r,n)))return Ng(e,r);o=sg(r,e,Dg,n);var s=Ue(ne(Mg(c,n),Cg));return!s||o&&s.contains(o)?o?Ng(e,o):null:(a=ag(e)?Rf.after(s):Rf.before(s),a)},Lg=function(e){return{next:function(t){return Pg(Nf.Forwards,t,e)},prev:function(t){return Pg(Nf.Backwards,t,e)}}},Ig=function(e,t,n){var r=e?Rf.before(n):Rf.after(n);return Wg(e,t,r)},Hg=function(e){return ro(e)?Rf.before(e):Rf.after(e)},Fg=function(e){return Rf.isTextPosition(e)?0===e.offset():Ha(e.getNode())},jg=function(e){if(Rf.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Ha(e.getNode(!0))},Vg=function(e,t){return!Rf.isTextPosition(e)&&!Rf.isTextPosition(t)&&e.getNode()===t.getNode(!0)},Ug=function(e){return!Rf.isTextPosition(e)&&ro(e.getNode())},qg=function(e,t,n){return e?!Vg(t,n)&&!Ug(t)&&jg(t)&&Fg(n):!Vg(n,t)&&Fg(t)&&jg(n)},Wg=function(e,t,n){var r=Lg(t);return q.from(e?r.next(n):r.prev(n))},$g=function(e,t,n){return Wg(e,t,n).bind((function(r){return fg(n,r,t)&&qg(e,n,r)?Wg(e,t,r):q.some(r)}))},Gg=function(e,t,n,r){return $g(e,t,n).bind((function(n){return r(n)?Gg(e,t,n,r):q.some(n)}))},Kg=function(e,t){var n=e?t.firstChild:t.lastChild;return Qr(n)?q.some(Rf(n,e?0:n.data.length)):n?Ha(n)?q.some(e?Rf.before(n):Hg(n)):Ig(e,t,n):q.none()},Xg=R(Wg,!0),Yg=R(Wg,!1),Jg=R(Kg,!0),Zg=R(Kg,!1),Qg="_mce_caret",ep=function(e){return Ur(e)&&e.id===Qg},tp=function(e,t){while(t&&t!==e){if(t.id===Qg)return t;t=t.parentNode}return null},np=function(e){return v(e.start)},rp=function(e){return Me(e,"rng")},op=function(e){return Me(e,"id")},ip=function(e){return Me(e,"name")},ap=function(e){return gn.isArray(e.start)},cp=function(e,t){return Ur(t)&&e.isBlock(t)&&!t.innerHTML&&!en.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},up=function(e,t){var n,r=e.createRng();return n=Zf(e.getRoot(),t.start),r.setStart(n.container(),n.offset()),n=Zf(e.getRoot(),t.end),r.setEnd(n.container(),n.offset()),r},sp=function(e,t){var n=e.ownerDocument.createTextNode(da);e.appendChild(n),t.setStart(n,0),t.setEnd(n,0)},lp=function(e){return!1===e.hasChildNodes()},fp=function(e,t){return Zg(e).fold(I,(function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0}))},dp=function(e,t,n){return!(!lp(t)||!tp(e,t))&&(sp(t,n),!0)},mp=function(e,t,n,r){var o,i,a,c,u=n[t?"start":"end"],s=e.getRoot();if(u){for(a=u[0],i=s,o=u.length-1;o>=1;o--){if(c=i.childNodes,dp(s,i,r))return!0;if(u[o]>c.length-1)return!!dp(s,i,r)||fp(i,r);i=c[u[o]]}3===i.nodeType&&(a=Math.min(u[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(u[0],i.childNodes.length)),t?r.setStart(i,a):r.setEnd(i,a)}return!0},gp=function(e){return Qr(e)&&e.data.length>0},pp=function(e,t,n){var r,o,i,a,c,u,s=e.get(n.id+"_"+t),l=n.keep;if(s){if(r=s.parentNode,"start"===t?(l?s.hasChildNodes()?(r=s.firstChild,o=1):gp(s.nextSibling)?(r=s.nextSibling,o=0):gp(s.previousSibling)?(r=s.previousSibling,o=s.previousSibling.data.length):(r=s.parentNode,o=e.nodeIndex(s)+1):o=e.nodeIndex(s),c=r,u=o):(l?s.hasChildNodes()?(r=s.firstChild,o=1):gp(s.previousSibling)?(r=s.previousSibling,o=s.previousSibling.data.length):(r=s.parentNode,o=e.nodeIndex(s)):o=e.nodeIndex(s),c=r,u=o),!l){a=s.previousSibling,i=s.nextSibling,gn.each(gn.grep(s.childNodes),(function(e){Qr(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));while(s=e.get(n.id+"_"+t))e.remove(s,!0);a&&i&&a.nodeType===i.nodeType&&Qr(a)&&!en.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),c=a,u=o)}return q.some(Rf(c,u))}return q.none()},hp=function(e,t){var n=e.createRng();return mp(e,!0,t,n)&&mp(e,!1,t,n)?q.some(n):q.none()},vp=function(e,t){var n=pp(e,"start",t),r=pp(e,"end",t);return fo(n,r.or(n),(function(t,n){var r=e.createRng();return r.setStart(cp(e,t.container()),t.offset()),r.setEnd(cp(e,n.container()),n.offset()),r}))},yp=function(e,t){return q.from(e.select(t.name)[t.index]).map((function(t){var n=e.createRng();return n.selectNode(t),n}))},bp=function(e,t){var n=e.dom;if(t){if(ap(t))return hp(n,t);if(np(t))return q.some(up(n,t));if(op(t))return vp(n,t);if(ip(t))return yp(n,t);if(rp(t))return q.some(t.rng)}return q.none()},wp=function(e,t,n){return md(e,t,n)},kp=function(e,t){bp(e,t).each((function(t){e.setRng(t)}))},_p=function(e){return Ur(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},xp=function(e){return function(t){return e===t}},zp=xp(sa),Cp=function(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)},Sp=function(e){return!Cp(e)&&!zp(e)},Tp=function(e){return!!e.nodeType},Op=function(e){return e&&/^(IMG)$/.test(e.nodeName)},Ep=function(e,t,n){var r=n.startOffset,o=n.startContainer;if((o!==n.endContainer||!Op(o.childNodes[r]))&&Ur(o)){var i=o.childNodes,a=void 0;r<i.length?(o=i[r],a=new Fi(o,e.getParent(o,e.isBlock))):(o=i[i.length-1],a=new Fi(o,e.getParent(o,e.isBlock)),a.next(!0));for(var c=a.current();c;c=a.next())if(Qr(c)&&!Rp(c))return n.setStart(c,0),void t.setRng(n)}},Ap=function(e,t,n){if(e){var r=t?"nextSibling":"previousSibling";for(e=n?e:e[r];e;e=e[r])if(Ur(e)||!Rp(e))return e}},Dp=function(e,t){return Tp(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},Mp=function(e,t,n){return e.schema.isValidChild(t,n)},Rp=function(e,t){if(void 0===t&&(t=!1),z(e)&&Qr(e)){var n=t?e.data.replace(/ /g," "):e.data;return Ga(n)}return!1},Np=function(e){return z(e)&&Qr(e)&&0===e.length},Bp=function(e,t){return C(e)?e=e(t):z(t)&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e},Pp=function(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},Lp=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},Ip=function(e,t,n){return Lp(e,e.getStyle(t,n),n)},Hp=function(e,t){var n;return e.getParent(t,(function(t){return n=e.getStyle(t,"text-decoration"),n&&"none"!==n})),n},Fp=function(e,t,n){return e.getParents(t,n,e.getRoot())},jp=function(e,t){var n=function(e){var t=function(e){return e.length>1&&"%"===e.charAt(0)};return J(["styles","attributes"],(function(n){return De(e,n).exists((function(e){var n=b(e)?e:Ae(e);return J(n,t)}))}))};return J(e.formatter.get(t),n)},Vp=function(e,t,n){var r=["inline","block","selector","attributes","styles","classes"],o=function(e){return Oe(e,(function(e,t){return J(r,(function(e){return e===t}))}))};return J(e.formatter.get(t),(function(t){var r=o(t);return J(e.formatter.get(n),(function(e){var t=o(e);return Ne(r,t)}))}))},Up=function(e){return Re(e,"block")},qp=function(e){return Re(e,"selector")},Wp=function(e){return Re(e,"inline")},$p=function(e){return qp(e)&&Wp(e)&&so(De(e,"mixed"),!0)},Gp=function(e){return qp(e)&&!1!==e.expand&&!Wp(e)},Kp=_p,Xp=Fp,Yp=Rp,Jp=Dp,Zp=function(e){return ro(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling},Qp=function(e,t){var n=t;while(n){if(Ur(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},eh=function(e,t,n,r){for(var o=t.data,i=n;e?i>=0:i<o.length;e?i--:i++)if(r(o.charAt(i)))return e?i+1:i;return-1},th=function(e,t,n){return eh(e,t,n,(function(e){return zp(e)||Cp(e)}))},nh=function(e,t,n){return eh(e,t,n,Sp)},rh=function(e,t,n,r,o,i){var a,c=e.getParent(n,e.isBlock)||t,u=function(t,n,r){var i=Xl(e),u=o?i.backwards:i.forwards;return q.from(u(t,n,(function(e,t){return Kp(e.parentNode)?-1:(a=e,r(o,e,t))}),c))},s=u(n,r,th);return s.bind((function(e){return i?u(e.container,e.offset+(o?-1:0),nh):q.some(e)})).orThunk((function(){return a?q.some({container:a,offset:o?0:a.length}):q.none()}))},oh=function(e,t,n,r,o){Qr(r)&&pt(r.data)&&r[o]&&(r=r[o]);for(var i=Xp(e,r),a=0;a<i.length;a++)for(var c=0;c<t.length;c++){var u=t[c];if((!z(u.collapsed)||u.collapsed===n.collapsed)&&(qp(u)&&e.is(i[a],u.selector)))return i[a]}return r},ih=function(e,t,n,r){var o=n,i=e.dom,a=i.getRoot(),c=t[0];if(Up(c)&&(o=c.wrapper?null:i.getParent(n,c.block,a)),!o){var u=i.getParent(n,"LI,TD,TH");o=i.getParent(Qr(n)?n.parentNode:n,(function(t){return t!==a&&Jp(e,t)}),u)}if(o&&Up(c)&&c.wrapper&&(o=Xp(i,o,"ul,ol").reverse()[0]||o),!o){o=n;while(o[r]&&!i.isBlock(o[r]))if(o=o[r],Pp(o,"br"))break}return o||n},ah=function(e,t,n,r){var o=n.parentNode;return!z(n[r])&&(!(o!==t&&!x(o)&&!e.isBlock(o))||ah(e,t,o,r))},ch=function(e,t,n,r,o){var i=n,a=o?"previousSibling":"nextSibling",c=e.getRoot();if(Qr(n)&&!Yp(n)&&(o?r>0:r<n.data.length))return n;while(1){if(!t[0].block_expand&&e.isBlock(i))return i;for(var u=i[a];u;u=u[a]){var s=Qr(u)&&!ah(e,c,u,a);if(!Kp(u)&&!Zp(u)&&!Yp(u,s))return i}if(i===c||i.parentNode===c){n=i;break}i=i.parentNode}return n},uh=function(e){return Kp(e.parentNode)||Kp(e)},sh=function(e,t,n,r){void 0===r&&(r=!1);var o=t.startContainer,i=t.startOffset,a=t.endContainer,c=t.endOffset,u=e.dom,s=n[0];if(Ur(o)&&o.hasChildNodes()&&(o=cf(o,i),Qr(o)&&(i=0)),Ur(a)&&a.hasChildNodes()&&(a=cf(a,t.collapsed?c:c-1),Qr(a)&&(c=a.nodeValue.length)),o=Qp(u,o),a=Qp(u,a),uh(o)&&(o=Kp(o)?o:o.parentNode,o=t.collapsed?o.previousSibling||o:o.nextSibling||o,Qr(o)&&(i=t.collapsed?o.length:0)),uh(a)&&(a=Kp(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,Qr(a)&&(c=t.collapsed?0:a.length)),t.collapsed){var l=rh(u,e.getBody(),o,i,!0,r);l.each((function(e){var t=e.container,n=e.offset;o=t,i=n}));var f=rh(u,e.getBody(),a,c,!1,r);f.each((function(e){var t=e.container,n=e.offset;a=t,c=n}))}return(Wp(s)||s.block_expand)&&(Wp(s)&&Qr(o)&&0!==i||(o=ch(u,n,o,i,!0)),Wp(s)&&Qr(a)&&c!==a.nodeValue.length||(a=ch(u,n,a,c,!1))),Gp(s)&&(o=oh(u,n,t,o,"previousSibling"),a=oh(u,n,t,a,"nextSibling")),(Up(s)||qp(s))&&(o=ih(e,n,o,"previousSibling"),a=ih(e,n,a,"nextSibling"),Up(s)&&(u.isBlock(o)||(o=ch(u,n,o,i,!0)),u.isBlock(a)||(a=ch(u,n,a,c,!1)))),Ur(o)&&(i=u.nodeIndex(o),o=o.parentNode),Ur(a)&&(c=u.nodeIndex(a)+1,a=a.parentNode),{startContainer:o,startOffset:i,endContainer:a,endOffset:c}},lh=function(e,t,n){var r=t.startOffset,o=cf(t.startContainer,r),i=t.endOffset,a=cf(t.endContainer,i-1),c=function(e){var t=e[0];Qr(t)&&t===o&&r>=t.data.length&&e.splice(0,1);var n=e[e.length-1];return 0===i&&e.length>0&&n===a&&Qr(n)&&e.splice(e.length-1,1),e},u=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},s=function(t,n){return e.getParent(t,(function(e){return e.parentNode===n}),n)},l=function(e,t,r){for(var o=r?"nextSibling":"previousSibling",i=e,a=i.parentNode;i&&i!==t;i=a){a=i.parentNode;var s=u(i===e?i:i[o],o);s.length&&(r||s.reverse(),n(c(s)))}};if(o===a)return n(c([o]));var f=e.findCommonAncestor(o,a);if(e.isChildOf(o,a))return l(o,f,!0);if(e.isChildOf(a,o))return l(a,f);var d=s(o,f)||o,m=s(a,f)||a;l(o,d,!0);var g=u(d===o?d:d.nextSibling,"nextSibling",m===a?m.nextSibling:m);g.length&&n(c(g)),l(a,m)},fh=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},dh=function(e){return se(e,(function(e){var t=af(e);return t?[wn.fromDom(t)]:[]}))},mh=function(e){return fh(e).length>1},gh=function(e){return ne(dh(e),ia)},ph=function(e){return Tl(e,"td[data-mce-selected],th[data-mce-selected]")},hh=function(e,t){var n=ph(t);return n.length>0?n:gh(e)},vh=function(e){return hh(fh(e.selection.getSel()),wn.fromDom(e.getBody()))},yh=function(e,t){return Si(e,"table",t)},bh=function(e){var t=e.startContainer,n=e.startOffset;return Qr(t)?0===n?q.some(wn.fromDom(t)):q.none():q.from(t.childNodes[n]).map(wn.fromDom)},wh=function(e){var t=e.endContainer,n=e.endOffset;return Qr(t)?n===t.data.length?q.some(wn.fromDom(t)):q.none():q.from(t.childNodes[n-1]).map(wn.fromDom)},kh=function(e){return ir(e).fold(A([e]),(function(t){return[e].concat(kh(t))}))},_h=function(e){return ar(e).fold(A([e]),(function(t){return"br"===Ln(t)?Qn(t).map((function(t){return[e].concat(_h(t))})).getOr([]):[e].concat(_h(t))}))},xh=function(e,t){return fo(bh(t),wh(t),(function(t,n){var r=ae(kh(e),R(Rn,t)),o=ae(_h(e),R(Rn,n));return r.isSome()&&o.isSome()})).getOr(!1)},zh=function(e,t,n,r){var o=n,i=new Fi(n,o),a=Oe(e.schema.getMoveCaretBeforeOnEnterElements(),(function(e,t){return!Y(["td","th","table"],t.toLowerCase())}));do{if(Qr(n)&&0!==gn.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName])return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?t.setStart(o,0):t.setEnd(o,o.childNodes.length))},Ch=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0},Sh=function(e,t){var n=vh(e);n.length>0?Q(n,(function(n){var r=n.dom,o=e.dom.createRng();o.setStartBefore(r),o.setEndAfter(r),t(o,!0)})):t(e.selection.getRng(),!1)},Th=function(e,t,n){var r=dd(e,t);n(r),e.moveToBookmark(r)},Oh=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?q.from(t.dom.nodeValue):q.none()},o=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:o}},Eh=Oh(Vn,"text"),Ah=function(e){return Eh.get(e)},Dh=function(e){return Vn(e)&&Ah(e)===da},Mh=function(e,t,n,r){return Yn(t).fold((function(){return"skipping"}),(function(o){return"br"===r||Dh(t)?"valid":Ml(t)?"existing":ep(t.dom)?"caret":Mp(e,n,r)&&Mp(e,Ln(o),n)?"valid":"invalid-child"}))},Rh=function(e,t){var n=sh(e,t,[{inline:"span"}]);t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)},Nh=function(e,t,n,r){var o=t.uid,i=void 0===o?Hl("mce-annotation"):o,a=We(t,["uid"]),c=wn.fromTag("span",e);_l(c,Ol()),vo(c,""+Al(),i),vo(c,""+El(),n);var u=r(i,a),s=u.attributes,l=void 0===s?{}:s,f=u.classes,d=void 0===f?[]:f;return yo(c,l),Fl(c,d),c},Bh=function(e,t,n,r,o){var i=[],a=Nh(e.getDoc(),o,n,r),c=dl(),u=function(){c.clear()},s=function(){return c.get().getOrThunk((function(){var e=$l(a);return i.push(e),c.set(e),e}))},l=function(e){Q(e,f)},f=function(t){var n=Mh(e,t,"span",Ln(t));switch(n){case"invalid-child":u();var r=rr(t);l(r),u();break;case"valid":var o=s();_r(t,o);break}},d=function(e){var t=Z(e,wn.fromDom);l(t)};return lh(e.dom,t,(function(e){u(),d(e)})),i},Ph=function(e,t,n,r){e.undoManager.transact((function(){var o=e.selection,i=o.getRng(),a=vh(e).length>0;if(i.collapsed&&!a&&Rh(e,i),o.getRng().collapsed&&!a){var c=Nh(e.getDoc(),r,t,n.decorate);ql(c,sa),o.getRng().insertNode(c.dom),o.select(c.dom)}else Th(o,!1,(function(){Sh(e,(function(o){Bh(e,o,t,n.decorate,r)}))}))}))},Lh=function(e){var t=Ll();Pl(e,t);var n=Bl(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each((function(t){Ph(e,n,t,r)}))},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){Dl(e,q.some(t)).each((function(e){var t=e.elements;Q(t,Tr)}))},getAll:function(t){var n=Nl(e,t);return xe(n,(function(e){return Z(e,(function(e){return e.dom}))}))}}},Ih=function(e){return{getBookmark:R(wp,e),moveToBookmark:R(kp,e)}};Ih.isBookmarkNode=_p;var Hh=function(e,t){while(t&&t!==e){if(io(t)||ao(t))return t;t=t.parentNode}return null},Fh=function(e,t,n){if(n.collapsed)return!1;if(en.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Ur(r))return J(r.getClientRects(),(function(n){return rf(n,e,t)}))}return J(n.getClientRects(),(function(n){return rf(n,e,t)}))},jh=function(e,t){return e.fire("PreProcess",t)},Vh=function(e,t){return e.fire("PostProcess",t)},Uh=function(e){return e.fire("remove")},qh=function(e){return e.fire("detach")},Wh=function(e,t){return e.fire("SwitchMode",{mode:t})},$h=function(e,t,n,r,o){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:o})},Gh=function(e,t,n,r,o){e.fire("ObjectResized",{target:t,width:n,height:r,origin:o})},Kh=function(e){return e.fire("PreInit")},Xh=function(e){return e.fire("PostRender")},Yh=function(e){return e.fire("Init")},Jh=function(e,t){return e.fire("PlaceholderToggle",{state:t})},Zh=function(e,t,n){return e.fire(t,n)},Qh=function(e,t,n,r){return e.fire("FormatApply",{format:t,node:n,vars:r})},ev=function(e,t,n,r){return e.fire("FormatRemove",{format:t,node:n,vars:r})},tv={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||tv.metaKeyPressed(e)},metaKeyPressed:function(e){return en.mac?e.metaKey:e.ctrlKey&&!e.altKey}},nv=ao,rv=function(e,t){var n,r,o,i,a,c,u,s,l,f,d,m,g,p,h,v,y,b="data-mce-selected",w=t.dom,k=gn.each,_=t.getDoc(),x=document,C=Math.abs,S=Math.round,T=t.getBody(),O={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},E=function(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))},A=function(e){return uo(e)||w.hasClass(e,"mce-preview-object")},D=function(e,t){if("longpress"===e.type||0===e.type.indexOf("touch")){var n=e.touches[0];return E(e.target)&&!Fh(n.clientX,n.clientY,t)}return E(e.target)&&!Fh(e.clientX,e.clientY,t)},M=function(e){var n=e.target;D(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(n)},R=function(e){return w.is(e,"figure.image")?[e.querySelector("img")]:w.hasClass(e,"mce-preview-object")&&z(e.firstElementChild)?[e,e.firstElementChild]:[e]},N=function(e){var n=Qd(t);return!!n&&("false"!==e.getAttribute("data-mce-resize")&&(e!==t.getBody()&&(w.hasClass(e,"mce-preview-object")?En(wn.fromDom(e.firstElementChild),n):En(wn.fromDom(e),n))))},B=function(e){return A(e)?w.create("img",{src:en.transparentSrc}):e.cloneNode(!0)},P=function(e,n,r){if(z(r)){var o=R(e);Q(o,(function(e){e.style[n]||!t.schema.isValid(e.nodeName.toLowerCase(),n)?w.setStyle(e,n,r):w.setAttrib(e,n,""+r)}))}},L=function(e,t,n){P(e,"width",t),P(e,"height",n)},I=function(e){var a,b,k,_,x;a=e.screenX-c,b=e.screenY-u,p=a*i[2]+f,h=b*i[3]+d,p=p<5?5:p,h=h<5?5:h,k=(E(n)||A(n))&&!1!==em(t)?!tv.modifierPressed(e):tv.modifierPressed(e),k&&(C(a)>C(b)?(h=S(p*m),p=S(h/m)):(p=S(h/m),h=S(p*m))),L(r,p,h),_=i.startPos.x+a,x=i.startPos.y+b,_=_>0?_:0,x=x>0?x:0,w.setStyles(o,{left:_,top:x,display:"block"}),o.innerHTML=p+" × "+h,i[2]<0&&r.clientWidth<=p&&w.setStyle(r,"left",s+(f-p)),i[3]<0&&r.clientHeight<=h&&w.setStyle(r,"top",l+(d-h)),a=T.scrollWidth-v,b=T.scrollHeight-y,a+b!==0&&w.setStyles(o,{left:_-a,top:x-b}),g||($h(t,n,f,d,"corner-"+i.name),g=!0)},H=function(){var e=g;g=!1,e&&(P(n,"width",p),P(n,"height",h)),w.unbind(_,"mousemove",I),w.unbind(_,"mouseup",H),x!==_&&(w.unbind(x,"mousemove",I),w.unbind(x,"mouseup",H)),w.remove(r),w.remove(o),w.remove(a),F(n),e&&(Gh(t,n,p,h,"corner-"+i.name),w.setAttrib(n,"style",w.getAttrib(n,"style"))),t.nodeChanged()},F=function(e){q();var s=w.getPos(e,T),l=s.x,g=s.y,z=e.getBoundingClientRect(),C=z.width||z.right-z.left,S=z.height||z.bottom-z.top;n!==e&&(j(),n=e,p=h=0);var E=t.fire("ObjectSelected",{target:e}),A=w.getAttrib(n,b,"1");N(e)&&!E.isDefaultPrevented()?k(O,(function(e,t){var s,p=function(s){var p=R(n)[0];c=s.screenX,u=s.screenY,f=p.clientWidth,d=p.clientHeight,m=d/f,i=e,i.name=t,i.startPos={x:C*e[0]+l,y:S*e[1]+g},v=T.scrollWidth,y=T.scrollHeight,a=w.add(T,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),w.setStyles(a,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),r=B(n),w.addClass(r,"mce-clonedresizable"),w.setAttrib(r,"data-mce-bogus","all"),r.contentEditable="false",w.setStyles(r,{left:l,top:g,margin:0}),L(r,C,S),r.removeAttribute(b),T.appendChild(r),w.bind(_,"mousemove",I),w.bind(_,"mouseup",H),x!==_&&(w.bind(x,"mousemove",I),w.bind(x,"mouseup",H)),o=w.add(T,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},f+" × "+d)};s=w.get("mceResizeHandle"+t),s&&w.remove(s),s=w.add(T,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===en.ie&&(s.contentEditable=!1),w.bind(s,"mousedown",(function(e){e.stopImmediatePropagation(),e.preventDefault(),p(e)})),e.elm=s,w.setStyles(s,{left:C*e[0]+l-s.offsetWidth/2,top:S*e[1]+g-s.offsetHeight/2})})):j(),w.getAttrib(n,b)||n.setAttribute(b,A)},j=function(){q(),n&&n.removeAttribute(b),_e(O,(function(e,t){var n=w.get("mceResizeHandle"+t);n&&(w.unbind(n),w.remove(n))}))},V=function(n){var r,o,i=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};g||t.removed||(k(w.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute(b)})),o="mousedown"===n.type?n.target:e.getNode(),o=w.$(o).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],i(o,T)&&(W(),r=e.getStart(!0),i(r,o)&&i(e.getEnd(!0),o))?F(o):j())},U=function(e){return nv(Hh(t.getBody(),e))},q=function(){_e(O,(function(e){e.elm&&(w.unbind(e.elm),delete e.elm)}))},W=function(){try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(e){}};t.on("init",(function(){if(W(),en.browser.isIE()||en.browser.isEdge()){t.on("mousedown click",(function(e){var n=e.target,r=n.nodeName;g||!/^(TABLE|IMG|HR)$/.test(r)||U(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())}));var e=function(e){var n=function(e){Pi.setEditorTimeout(t,(function(){return t.selection.select(e)}))};if(U(e.target)||uo(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))};w.bind(T,"mscontrolselect",e),t.on("remove",(function(){return w.unbind(T,"mscontrolselect",e)}))}var r=Pi.throttle((function(e){t.composing||V(e)}));t.on("nodechange ResizeEditor ResizeWindow ResizeContent drop FullscreenStateChanged",r),t.on("keyup compositionend",(function(e){n&&"TABLE"===n.nodeName&&r(e)})),t.on("hide blur",j),t.on("contextmenu longpress",M,!0)})),t.on("remove",q);var $=function(){n=r=a=null};return{isResizable:N,showResizeRect:F,hideResizeRect:j,updateResizeRect:V,destroy:$}},ov=function(e){return io(e)||ao(e)},iv=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},av=function(e,t,n){var r,o=n.elementFromPoint(e,t),i=n.body.createTextRange();if(o&&"HTML"!==o.tagName||(o=n.body),i.moveToElementText(o),r=gn.toArray(i.getClientRects()),r=r.sort((function(e,n){return e=Math.abs(Math.max(e.top-t,e.bottom-t)),n=Math.abs(Math.max(n.top-t,n.bottom-t)),e-n})),r.length>0){t=(r[0].bottom+r[0].top)/2;try{return i.moveToPoint(e,t),i.collapse(!0),i}catch(a){}}return null},cv=function(e,t){var n=e&&e.parentElement?e.parentElement():null;return ao(iv(n,t,ov))?null:e},uv=function(e,t,n){var r,o,i=n;if(i.caretPositionFromPoint)o=i.caretPositionFromPoint(e,t),o&&(r=n.createRange(),r.setStart(o.offsetNode,o.offset),r.collapse(!0));else if(i.caretRangeFromPoint)r=i.caretRangeFromPoint(e,t);else if(i.body.createTextRange){r=i.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(a){r=av(e,t,n)}return cv(r,n.body)}return r},sv=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},lv=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},fv=function(e,t,n){return null!==lv(e,t,n)},dv=function(e,t,n){return fv(e,t,(function(e){return e.nodeName===n}))},mv=function(e){return e&&"TABLE"===e.nodeName},gv=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},pv=function(e,t){return ba(e)&&!1===fv(e,t,ep)},hv=function(e,t,n){var r=new Fi(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());while(t=r[n?"prev":"next"]())if(ro(t))return!0},vv=function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t},yv=function(e,t){while(t&&t!==e){if(ao(t))return!0;t=t.parentNode}return!1},bv=function(e,t,n,r,o){var i,a,c=e.getRoot(),u=e.schema.getNonEmptyElements(),s=e.getParent(o.parentNode,e.isBlock)||c;if(r&&ro(o)&&t&&e.isEmpty(s))return q.some(Rf(o.parentNode,e.nodeIndex(o)));var l=new Fi(o,s);while(a=l[r?"prev":"next"]()){if("false"===e.getContentEditableParent(a)||pv(a,c))return q.none();if(Qr(a)&&a.nodeValue.length>0)return!1===dv(a,c,"A")?q.some(Rf(a,r?a.nodeValue.length:0)):q.none();if(e.isBlock(a)||u[a.nodeName.toLowerCase()])return q.none();i=a}return n&&i?q.some(Rf(i,0)):q.none()},wv=function(e,t,n,r){var o,i,a,c,u=e.getRoot(),s=!1;o=r[(n?"start":"end")+"Container"],i=r[(n?"start":"end")+"Offset"];var l=Ur(o)&&i===o.childNodes.length,f=e.schema.getNonEmptyElements();if(c=n,ba(o))return q.none();if(Ur(o)&&i>o.childNodes.length-1&&(c=!1),to(o)&&(o=u,i=0),o===u){if(c&&(a=o.childNodes[i>0?i-1:0],a)){if(ba(a))return q.none();if(f[a.nodeName]||mv(a))return q.none()}if(o.hasChildNodes()){if(i=Math.min(!c&&i>0?i-1:i,o.childNodes.length-1),o=o.childNodes[i],i=Qr(o)&&l?o.data.length:0,!t&&o===u.lastChild&&mv(o))return q.none();if(yv(u,o)||ba(o))return q.none();if(o.hasChildNodes()&&!1===mv(o)){a=o;var d=new Fi(o,u);do{if(ao(a)||ba(a)){s=!1;break}if(Qr(a)&&a.nodeValue.length>0){i=c?0:a.nodeValue.length,o=a,s=!0;break}if(f[a.nodeName.toLowerCase()]&&!gv(a)){i=e.nodeIndex(a),o=a.parentNode,c||i++,s=!0;break}}while(a=c?d.next():d.prev())}}}return t&&(Qr(o)&&0===i&&bv(e,l,t,!0,o).each((function(e){o=e.container(),i=e.offset(),s=!0})),Ur(o)&&(a=o.childNodes[i],a||(a=o.childNodes[i-1]),!a||!ro(a)||vv(a,"A")||hv(e,a,!1)||hv(e,a,!0)||bv(e,l,t,!0,a).each((function(e){o=e.container(),i=e.offset(),s=!0})))),c&&!t&&Qr(o)&&i===o.nodeValue.length&&bv(e,l,t,!1,o).each((function(e){o=e.container(),i=e.offset(),s=!0})),s?q.some(Rf(o,i)):q.none()},kv=function(e,t){var n=t.collapsed,r=t.cloneRange(),o=Rf.fromRangeStart(t);return wv(e,n,!0,r).each((function(e){n&&Rf.isAbove(o,e)||r.setStart(e.container(),e.offset())})),n||wv(e,n,!1,r).each((function(e){r.setEnd(e.container(),e.offset())})),n&&r.collapse(!0),sv(t,r)?q.none():q.some(r)},_v=function(e,t){return e.splitText(t)},xv=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset;return t===r&&Qr(t)?n>0&&n<t.nodeValue.length&&(r=_v(t,n),t=r.previousSibling,o>n?(o-=n,t=r=_v(r,o).previousSibling,o=r.nodeValue.length,n=0):o=0):(Qr(t)&&n>0&&n<t.nodeValue.length&&(t=_v(t,n),n=0),Qr(r)&&o>0&&o<r.nodeValue.length&&(r=_v(r,o).previousSibling,o=r.nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:o}},zv=function(e){var t=function(t,n){return lh(e,t,n)},n=xv,r=function(t){return kv(e,t).fold(I,(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))};return{walk:t,split:n,normalize:r}};zv.compareRanges=sv,zv.getCaretRangeFromPoint=uv,zv.getSelectedNode=af,zv.getNode=cf;var Cv,Sv=function(e,t){var n=function(t,n){if(!S(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;po(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var o=So(n,e);return parseFloat(o)||0}return r},o=r,i=function(e,t){return oe(t,(function(t,n){var r=So(e,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o}),0)},a=function(e,t,n){var r=i(e,n),o=t>r?t-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:a}},Tv=Sv("height",(function(e){var t=e.dom;return Or(e)?t.getBoundingClientRect().height:t.offsetHeight})),Ov=function(e){return Tv.get(e)},Ev=function(e,t){var n=e.view(t);return n.fold(A([]),(function(t){var n=e.owner(t),r=Ev(e,n);return[t].concat(r)}))},Av=function(e,t){var n=t.owner(e);return Ev(t,n)},Dv=function(e){var t,n=e.dom===document?q.none():q.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(wn.fromDom)},Mv=function(e){return Gn(e)},Rv=Object.freeze({__proto__:null,view:Dv,owner:Mv}),Nv=function(e){var t=wn.fromDom(document),n=Br(t),r=Av(e,Rv),o=Nr(e),i=re(r,(function(e,t){var n=Nr(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return Ar(i.left+o.left+n.left,i.top+o.top+n.top)},Bv=function(e){return"textarea"===Ln(e)},Pv=function(e,t){var n=e.fire("ScrollIntoView",t);return n.isDefaultPrevented()},Lv=function(e,t){e.fire("AfterScrollIntoView",t)},Iv=function(e,t){var n=rr(e);if(0===n.length||Bv(e))return{element:e,offset:t};if(t<n.length&&!Bv(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return Bv(r)?{element:e,offset:t}:"img"===Ln(r)?{element:r,offset:1}:Vn(r)?{element:r,offset:Ah(r).length}:{element:r,offset:rr(r).length}},Hv=function(e,t){var n=Rr(e),r=Ov(e);return{element:e,bottom:n.top+r,height:r,pos:n,cleanup:t}},Fv=function(e,t){var n=Iv(e,t),r=wn.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">'+da+"</span>");return yr(n.element,r),Hv(r,(function(){return Sr(r)}))},jv=function(e){return Hv(wn.fromDom(e),T)},Vv=function(e,t,n,r){$v(e,(function(o,i){return qv(e,t,n,r)}),n)},Uv=function(e,t,n,r,o){var i={elm:r.element.dom,alignToTop:o};if(!Pv(e,i)){var a=Br(t).top;n(t,a,r,o),Lv(e,i)}},qv=function(e,t,n,r){var o=wn.fromDom(e.getBody()),i=wn.fromDom(e.getDoc());Ao(o);var a=Fv(wn.fromDom(n.startContainer),n.startOffset);Uv(e,i,t,a,r),a.cleanup()},Wv=function(e,t,n,r){var o=wn.fromDom(e.getDoc());Uv(e,o,n,jv(t),r)},$v=function(e,t,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,a=n.endOffset;t(wn.fromDom(r),wn.fromDom(i));var c=e.dom.createRng();c.setStart(r,o),c.setEnd(i,a),e.selection.setRng(n)},Gv=function(e,t,n,r){var o=e.pos;if(n)Pr(o.left,o.top,r);else{var i=o.top-t+e.height;Pr(o.left,i,r)}},Kv=function(e,t,n,r,o){var i=n+t,a=r.pos.top,c=r.bottom,u=c-a>=n;if(a<t)Gv(r,n,!1!==o,e);else if(a>i){var s=u?!1!==o:!0===o;Gv(r,n,s,e)}else c>i&&!u&&Gv(r,n,!0===o,e)},Xv=function(e,t,n,r){var o=e.dom.defaultView.innerHeight;Kv(e,t,o,n,r)},Yv=function(e,t,n,r){var o=e.dom.defaultView.innerHeight;Kv(e,t,o,n,r);var i=Nv(n.element),a=Fr(window);i.top<a.y?Lr(n.element,!1!==r):i.top>a.bottom&&Lr(n.element,!0===r)},Jv=function(e,t,n){return Vv(e,Xv,t,n)},Zv=function(e,t,n){return Wv(e,t,Xv,n)},Qv=function(e,t,n){return Vv(e,Yv,t,n)},ey=function(e,t,n){return Wv(e,t,Yv,n)},ty=function(e,t,n){var r=e.inline?Zv:ey;r(e,t,n)},ny=function(e,t,n){var r=e.inline?Jv:Qv;r(e,t,n)},ry=function(){return wn.fromDom(document)},oy=function(e){return e.dom.focus()},iy=function(e){var t=dr(e).dom;return e.dom===t.activeElement},ay=function(e){return void 0===e&&(e=ry()),q.from(e.dom.activeElement).map(wn.fromDom)},cy=function(e){return ay(dr(e)).filter((function(t){return e.dom.contains(t.dom)}))},uy=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},sy={create:uy},ly=ei.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),fy=function(e,t,n,r){return e.fold(t,n,r)},dy=function(e){return e.fold(D,D,D)},my=ly.before,gy=ly.on,py=ly.after,hy={before:my,on:gy,after:py,cata:fy,getStart:dy},vy=ei.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),yy=function(e){return vy.exact(e.start,e.soffset,e.finish,e.foffset)},by=function(e){return e.match({domRange:function(e){return wn.fromDom(e.startContainer)},relative:function(e,t){return hy.getStart(e)},exact:function(e,t,n,r){return e}})},wy=vy.domRange,ky=vy.relative,_y=vy.exact,xy=function(e){var t=by(e);return Xn(t)},zy=sy.create,Cy={domRange:wy,relative:ky,exact:_y,exactFromRange:yy,getWin:xy,range:zy},Sy=Wt().browser,Ty=function(e,t){var n=Vn(t)?Ah(t).length:rr(t).length+1;return e>n?n:e<0?0:e},Oy=function(e){return Cy.range(e.start,Ty(e.soffset,e.start),e.finish,Ty(e.foffset,e.finish))},Ey=function(e,t){return!Vr(t.dom)&&(Pn(e,t)||Rn(e,t))},Ay=function(e){return function(t){return Ey(e,t.start)&&Ey(e,t.finish)}},Dy=function(e){return!0===e.inline||Sy.isIE()},My=function(e){return Cy.range(wn.fromDom(e.startContainer),e.startOffset,wn.fromDom(e.endContainer),e.endOffset)},Ry=function(e){var t=e.getSelection(),n=t&&0!==t.rangeCount?q.from(t.getRangeAt(0)):q.none();return n.map(My)},Ny=function(e){var t=Xn(e);return Ry(t.dom).filter(Ay(e))},By=function(e,t){return q.from(t).filter(Ay(e)).map(Oy)},Py=function(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),q.some(t)}catch(n){return q.none()}},Ly=function(e){var t=Dy(e)?Ny(wn.fromDom(e.getBody())):q.none();e.bookmark=t.isSome()?t:e.bookmark},Iy=function(e,t){var n=wn.fromDom(e.getBody()),r=Dy(e)?q.from(t):q.none(),o=r.map(My).filter(Ay(n));e.bookmark=o.isSome()?o:e.bookmark},Hy=function(e){var t=e.bookmark?e.bookmark:q.none();return t.bind((function(t){return By(wn.fromDom(e.getBody()),t)})).bind(Py)},Fy=function(e){Hy(e).each((function(t){return e.selection.setRng(t)}))},jy=function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},Vy={isEditorUIElement:jy},Uy=function(e){return"nodechange"===e.type&&e.selectionChange},qy=function(e,t){var n=function(){t.throttle()};js.DOM.bind(document,"mouseup",n),e.on("remove",(function(){js.DOM.unbind(document,"mouseup",n)}))},Wy=function(e){e.on("focusout",(function(){Ly(e)}))},$y=function(e,t){e.on("mouseup touchend",(function(e){t.throttle()}))},Gy=function(e,t){var n=Wt().browser;n.isIE()?Wy(e):$y(e,t),e.on("keyup NodeChange",(function(t){Uy(t)||Ly(e)}))},Ky=function(e){var t=ml((function(){Ly(e)}),0);e.on("init",(function(){e.inline&&qy(e,t),Gy(e,t)})),e.on("remove",(function(){t.cancel()}))},Xy=js.DOM,Yy=function(e){return Vy.isEditorUIElement(e)},Jy=function(e){var t=e.classList;return void 0!==t&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"))},Zy=function(e,t){var n=lm(e),r=Xy.getParent(t,(function(t){return Yy(t)||!!n&&e.dom.is(t,n)}));return null!==r},Qy=function(e){try{var t=dr(wn.fromDom(e.getElement()));return ay(t).fold((function(){return document.body}),(function(e){return e.dom}))}catch(n){return document.body}},eb=function(e,t){var n=t.editor;Ky(n),n.on("focusin",(function(){var t=e.focusedEditor;t!==n&&(t&&t.fire("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.fire("focus",{blurredEditor:t}),n.focus(!0))})),n.on("focusout",(function(){Pi.setEditorTimeout(n,(function(){var t=e.focusedEditor;Zy(n,Qy(n))||t!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),Cv||(Cv=function(t){var n=e.activeEditor;n&&hr(t).each((function(t){t.ownerDocument===document&&(t===document.body||Zy(n,t)||e.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))}))},Xy.bind(document,"focusin",Cv))},tb=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(Xy.unbind(document,"focusin",Cv),Cv=null)},nb=function(e){e.on("AddEditor",R(eb,e)),e.on("RemoveEditor",R(tb,e))},rb=function(e,t){return e.dom.getParent(t,(function(t){return"true"===e.dom.getContentEditable(t)}))},ob=function(e){return e.collapsed?q.from(cf(e.startContainer,e.startOffset)).map(wn.fromDom):q.none()},ib=function(e,t){return ob(t).bind((function(t){return oa(t)?q.some(t):!1===Pn(e,t)?q.some(e):q.none()}))},ab=function(e,t){ib(wn.fromDom(e.getBody()),t).bind((function(e){return Jg(e.dom)})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))},cb=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},ub=function(e){return iy(e)||cy(e).isSome()},sb=function(e){return e.iframeElement&&iy(wn.fromDom(e.iframeElement))},lb=function(e){var t=e.getBody();return t&&ub(wn.fromDom(t))},fb=function(e){var t=dr(wn.fromDom(e.getElement()));return ay(t).filter((function(t){return!Jy(t.dom)&&Zy(e,t.dom)})).isSome()},db=function(e){return e.inline?lb(e):sb(e)},mb=function(e){return db(e)||fb(e)},gb=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===db(e)&&Hy(e).each((function(t){e.selection.setRng(t),r=t}));var o=rb(e,t.getNode());if(e.$.contains(n,o))return cb(o),ab(e,r),void pb(e);e.inline||(en.opera||cb(n),e.getWin().focus()),(en.gecko||e.inline)&&(cb(n),ab(e,r)),pb(e)},pb=function(e){return e.editorManager.setActive(e)},hb=function(e,t){e.removed||(t?pb(e):gb(e))},vb=function(e,t,n,r,o){var i=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return q.from(i).map(wn.fromDom).map((function(e){return r&&t.collapsed?e:or(e,o(e,a)).getOr(e)})).bind((function(e){return jn(e)?q.some(e):Yn(e).filter(jn)})).map((function(e){return e.dom})).getOr(e)},yb=function(e,t,n){return vb(e,t,!0,n,(function(e,t){return Math.min(cr(e),t)}))},bb=function(e,t,n){return vb(e,t,!1,n,(function(e,t){return t>0?t-1:t}))},wb=function(e,t){var n=e;while(e&&Qr(e)&&0===e.length)e=t?e.nextSibling:e.previousSibling;return e||n},kb=function(e,t){var n,r,o;if(!t)return e;r=t.startContainer,o=t.endContainer;var i=t.startOffset,a=t.endOffset;return n=t.commonAncestorContainer,!t.collapsed&&(r===o&&a-i<2&&r.hasChildNodes()&&(n=r.childNodes[i]),3===r.nodeType&&3===o.nodeType&&(r=r.length===i?wb(r.nextSibling,!0):r.parentNode,o=0===a?wb(o.previousSibling,!1):o.parentNode,r&&r===o))?r:n&&3===n.nodeType?n.parentNode:n},_b=function(e,t,n,r){var o,i=[],a=e.getRoot();if(n=e.getParent(n||yb(a,t,t.collapsed),e.isBlock),r=e.getParent(r||bb(a,t,t.collapsed),e.isBlock),n&&n!==a&&i.push(n),n&&r&&n!==r){o=n;var c=new Fi(n,a);while((o=c.next())&&o!==r)e.isBlock(o)&&i.push(o)}return r&&n!==r&&r!==a&&i.push(r),i},xb=function(e,t,n){return q.from(t).map((function(t){var r=e.nodeIndex(t),o=e.createRng();return o.setStart(t.parentNode,r),o.setEnd(t.parentNode,r+1),n&&(zh(e,o,t,!0),zh(e,o,t,!1)),o}))},zb=function(e,t){return Z(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))},Cb={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Sb=function(e,t,n){var r=n?"lastChild":"firstChild",o=n?"prev":"next";if(e[r])return e[r];if(e!==t){var i=e[o];if(i)return i;for(var a=e.parent;a&&a!==t;a=a.parent)if(i=a[o],i)return i}},Tb=function(e){if(!Ga(e.value))return!1;var t=e.parent;return!t||"span"===t.name&&!t.attr("style")||!/^[ ]+$/.test(e.value)},Ob=function(e){var t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t},Eb=function(){function e(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,Cb[t]||1);return n&&_e(n,(function(e,t){r.attr(t,e)})),r},e.prototype.replace=function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},e.prototype.attr=function(e,t){var n,r=this;if("string"!==typeof e)return void 0!==e&&null!==e&&_e(e,(function(e,t){r.attr(t,e)})),r;if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];var o=n.length;while(o--)if(n[o].name===e)return n.splice(o,1),r}return r}if(e in n.map){o=n.length;while(o--)if(n[o].name===e){n[o].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}return n.map[e]}},e.prototype.clone=function(){var t,n=this,r=new e(n.name,n.type);if(t=n.attributes){var o=[];o.map={};for(var i=0,a=t.length;i<a;i++){var c=t[i];"id"!==c.name&&(o[o.length]={name:c.name,value:c.value},o.map[c.name]=c.value)}r.attributes=o}return r.value=n.value,r.shortEnded=n.shortEnded,r},e.prototype.wrap=function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},e.prototype.unwrap=function(){for(var e=this,t=e.firstChild;t;){var n=t.next;e.insert(t,e,!0),t=n}e.remove()},e.prototype.remove=function(){var e=this,t=e.parent,n=e.next,r=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e},e.prototype.append=function(e){var t=this;e.parent&&e.remove();var n=t.lastChild;return n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},e.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},e.prototype.getAll=function(e){for(var t=this,n=[],r=t.firstChild;r;r=Sb(r,t))r.name===e&&n.push(r);return n},e.prototype.children=function(){for(var e=this,t=[],n=e.firstChild;n;n=n.next)t.push(n);return t},e.prototype.empty=function(){var e=this;if(e.firstChild){for(var t=[],n=e.firstChild;n;n=Sb(n,e))t.push(n);var r=t.length;while(r--){n=t[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return e.firstChild=e.lastChild=null,e},e.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this,o=r.firstChild;if(Ob(r))return!1;if(o)do{if(1===o.type){if(o.attr("data-mce-bogus"))continue;if(e[o.name])return!1;if(Ob(o))return!1}if(8===o.type)return!1;if(3===o.type&&!Tb(o))return!1;if(3===o.type&&o.parent&&t[o.parent.name]&&Ga(o.value))return!1;if(n&&n(o))return!1}while(o=Sb(o,r));return!0},e.prototype.walk=function(e){return Sb(this,null,e)},e}(),Ab=function(e){var t,n=/data:[^;<"'\s]+;base64,([a-z0-9\+\/=\s]+)/gi,r=[],o={},i=Hl("img"),a=0,c=0;while(t=n.exec(e)){var u=t[0],s=i+"_"+c++;o[s]=u,a<t.index&&r.push(e.substr(a,t.index-a)),r.push(s),a=t.index+u.length}var l=new RegExp(i+"_[0-9]+","g");return 0===a?{prefix:i,uris:o,html:e,re:l}:(a<e.length&&r.push(e.substr(a)),{prefix:i,uris:o,html:r.join(""),re:l})},Db=function(e,t){return e.replace(t.re,(function(e){return De(t.uris,e).getOr(e)}))},Mb=function(e){var t=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(e);return t?q.some({type:t[1],data:decodeURIComponent(t[2])}):q.none()},Rb=gn.each,Nb=gn.trim,Bb="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),Pb={ftp:21,http:80,https:443,mailto:25},Lb=["img","video"],Ib=function(e,t){return z(e)?!e:!z(t)||!Y(Lb,t)},Hb=function(e,t,n){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?Ib(e.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))},Fb=function(){function e(t,n){t=Nb(t),this.settings=n||{};var r=this.settings.base_uri,o=this;if(/^([\w\-]+):([^\/]{2})/i.test(t)||/^\s*#/.test(t))o.source=t;else{var i=0===t.indexOf("//");if(0!==t.indexOf("/")||i||(t=(r&&r.protocol||"http")+"://mce_host"+t),!/^[\w\-]*:?\/\//.test(t)){var a=this.settings.base_uri?this.settings.base_uri.path:new e(document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)t="//mce_host"+o.toAbsPath(a,t);else{var c=/([^#?]*)([#?]?.*)/.exec(t);t=(r&&r.protocol||"http")+"://mce_host"+o.toAbsPath(a,c[1])+c[2]}}t=t.replace(/@@/g,"(mce_at)");var u=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t);Rb(Bb,(function(e,t){var n=u[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),o[e]=n})),r&&(o.protocol||(o.protocol=r.protocol),o.userInfo||(o.userInfo=r.userInfo),o.port||"mce_host"!==o.host||(o.port=r.port),o.host&&"mce_host"!==o.host||(o.host=r.host),o.source=""),i&&(o.protocol="")}}return e.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},e.isDomSafe=function(e,t,n){if(void 0===n&&(n={}),n.allow_script_urls)return!0;var r=Oc.decode(e).replace(/[\s\u0000-\u001F]+/g,"");try{r=decodeURIComponent(r)}catch(o){r=unescape(r)}return!/((java|vb)script|mhtml):/i.test(r)&&!Hb(n,r,t)},e.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},e.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},e.prototype.toRelative=function(t){var n;if("./"===t)return t;var r=new e(t,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var o=this.getURI(),i=r.getURI();return o===i||"/"===o.charAt(o.length-1)&&o.substr(0,o.length-1)===i?o:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},e.prototype.toAbsolute=function(t,n){var r=new e(t,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},e.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=Pb[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},e.prototype.toRelPath=function(e,t){var n,r,o=0,i="",a=e.substring(0,e.lastIndexOf("/")).split("/"),c=t.split("/");if(a.length>=c.length)for(n=0,r=a.length;n<r;n++)if(n>=c.length||a[n]!==c[n]){o=n+1;break}if(a.length<c.length)for(n=0,r=c.length;n<r;n++)if(n>=a.length||a[n]!==c[n]){o=n+1;break}if(1===o)return t;for(n=0,r=a.length-(o-1);n<r;n++)i+="../";for(n=o-1,r=c.length;n<r;n++)i+=n!==o-1?"/"+c[n]:c[n];return i},e.prototype.toAbsPath=function(e,t){var n,r,o=0,i=[],a=/\/$/.test(t)?"/":"",c=e.split("/"),u=t.split("/");for(Rb(c,(function(e){e&&i.push(e)})),c=i,n=u.length-1,i=[];n>=0;n--)0!==u[n].length&&"."!==u[n]&&(".."!==u[n]?o>0?o--:i.push(u[n]):o++);return n=c.length-o,r=n<=0?fe(i).join("/"):c.slice(0,n).join("/")+"/"+fe(i).join("/"),0!==r.indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},e.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},e}(),jb=gn.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),Vb=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},Ub=function(e,t,n){var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,o=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,i=e.getShortEndedElements(),a=1,c=n;while(0!==a){r.lastIndex=c;while(1){var u=r.exec(t);if(null===u)return c;if("!"===u[1]){c=st(u[2],"--")?Wb(t,!1,u.index+"!--".length):Wb(t,!0,u.index+1);break}o.lastIndex=r.lastIndex;var s=o.exec(t);if(!w(s)&&s.index===r.lastIndex){"/"===u[1]?a-=1:Me(i,u[2])||(a+=1),c=r.lastIndex+s[0].length;break}}}return c},qb=function(e,t){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(e.substr(t))},Wb=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&qb(r,n)){var o=r.indexOf("[endif]",n);return r.indexOf(">",o)}if(t){var i=r.indexOf(">",n);return-1!==i?i:r.length}var a=/--!?>/g;a.lastIndex=n;var c=a.exec(e);return c?c.index+c[0].length:r.length},$b=function(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"===typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null},Gb=function(e,t){var n;void 0===t&&(t=jc()),e=e||{};var r=null!==(n=e.document)&&void 0!==n?n:document,o=r.createElement("form");!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var i=e.comment?e.comment:T,a=e.cdata?e.cdata:T,c=e.text?e.text:T,u=e.start?e.start:T,s=e.end?e.end:T,l=e.pi?e.pi:T,f=e.doctype?e.doctype:T,d=function(n,d){void 0===d&&(d="html");var m,g,p,h,v,y,b,w,k,_,x,z,C,S,T,O,E,A,D,M,R=n.html,N=0,B=[],P=0,L=Oc.decode,I=gn.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),H="html"===d?0:1,F=function(e){var t,n;t=B.length;while(t--)if(B[t].name===e)break;if(t>=0){for(n=B.length-1;n>=t;n--)e=B[n],e.valid&&s(e.name);B.length=t}},j=function(e,t){return c(Db(e,n),t)},V=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),i(Db(t,n)))},U=function(e){return Db(e,n)},q=function(e,t){var n=e||"",r=!st(n,"--"),o=Wb(R,r,t);return e=R.substr(t,o-t),V(r?n+e:e),o+1},W=function(t,n,i,a,c){if(n=n.toLowerCase(),i=U(n in Y?n:L(i||a||c||"")),J&&!w&&!1===Vb(n)){var u=S[n];if(!u&&T){var s=T.length;while(s--)if(u=T[s],u.pattern.test(n))break;-1===s&&(u=null)}if(!u)return;if(u.validValues&&!(i in u.validValues))return}var l="name"===n||"id"===n;l&&t in jb&&(i in r||i in o)||I[n]&&!Fb.isDomSafe(i,t,e)||w&&(n in I||0===n.indexOf("on"))||(h.map[n]=i,h.push({name:n,value:i}))},$=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'\">]+(?:\"[^\"]*\"|'[^']*'))*[^\"'>]*(?:\"[^\">]*|'[^'>]*)?|\\s*|\\/)>))","g"),G=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,K=t.getShortEndedElements(),X=e.self_closing_elements||t.getSelfClosingElements(),Y=t.getBoolAttrs(),J=e.validate,Z=e.remove_internals,Q=e.fix_self_closing,ee=t.getSpecialElements(),te=R+">";while(m=$.exec(te)){var ne=m[0];if(N<m.index&&j(L(R.substr(N,m.index-N))),g=m[7])g=g.toLowerCase(),":"===g.charAt(0)&&(g=g.substr(1)),F(g);else if(g=m[8]){if(m.index+ne.length>R.length){j(L(R.substr(m.index))),N=m.index+ne.length;continue}g=g.toLowerCase(),":"===g.charAt(0)&&(g=g.substr(1)),k=g in K,Q&&X[g]&&B.length>0&&B[B.length-1].name===g&&F(g);var re=$b(G,m[9]);if(null!==re){if("all"===re){N=Ub(t,R,$.lastIndex),$.lastIndex=N;continue}x=!1}if(!J||(_=t.getElementRule(g))){if(x=!0,J&&(S=_.attributes,T=_.attributePatterns),(C=m[9])?(w=-1!==C.indexOf("data-mce-type"),w&&Z&&(x=!1),h=[],h.map={},C.replace(G,(function(e,t,n,r,o){return W(g,t,n,r,o),""}))):(h=[],h.map={}),J&&!w){if(O=_.attributesRequired,E=_.attributesDefault,A=_.attributesForced,D=_.removeEmptyAttrs,D&&!h.length&&(x=!1),A){v=A.length;while(v--)z=A[v],b=z.name,M=z.value,"{$uid}"===M&&(M="mce_"+P++),h.map[b]=M,h.push({name:b,value:M})}if(E){v=E.length;while(v--)z=E[v],b=z.name,b in h.map||(M=z.value,"{$uid}"===M&&(M="mce_"+P++),h.map[b]=M,h.push({name:b,value:M}))}if(O){v=O.length;while(v--)if(O[v]in h.map)break;-1===v&&(x=!1)}if(z=h.map["data-mce-bogus"]){if("all"===z){N=Ub(t,R,$.lastIndex),$.lastIndex=N;continue}x=!1}}x&&u(g,h,k)}else x=!1;if(p=ee[g]){p.lastIndex=N=m.index+ne.length,(m=p.exec(R))?(x&&(y=R.substr(N,m.index-N)),N=m.index+m[0].length):(y=R.substr(N),N=R.length),x&&(y.length>0&&j(y,!0),s(g)),$.lastIndex=N;continue}k||(C&&C.indexOf("/")===C.length-1?x&&s(g):B.push({name:g,valid:x}))}else if(g=m[1])V(g);else if(g=m[2]){var oe=1===H||e.preserve_cdata||B.length>0&&t.isValidChild(B[B.length-1].name,"#cdata");if(!oe){N=q("",m.index+2),$.lastIndex=N;continue}a(g)}else if(g=m[3])f(g);else{if((g=m[4])||"<!"===ne){N=q(g,m.index+ne.length),$.lastIndex=N;continue}if(g=m[5]){if(1!==H){N=q("?",m.index+2),$.lastIndex=N;continue}l(g,m[6])}}N=m.index+ne.length}for(N<R.length&&j(L(R.substr(N))),v=B.length-1;v>=0;v--)g=B[v],g.valid&&s(g.name)},m=function(e,t){void 0===t&&(t="html"),d(Ab(e),t)};return{parse:m}};Gb.findEndTag=Ub;var Kb=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},Xb=function(e,t){var n,r=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,o=e.schema,i=Kb(e.getTempAttrs(),t),a=o.getShortEndedElements();while(n=r.exec(i)){var c=r.lastIndex,u=n[0].length,s=void 0;s=a[n[1]]?c:Gb.findEndTag(o,i,c),i=i.substring(0,c-u)+i.substring(s),r.lastIndex=c-u}return ga(i)},Yb=Xb,Jb=function(e,t){var n=Cd(e),r=new RegExp("^(<"+n+"[^>]*>( | |\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return t.replace(r,"")},Zb=function(e,t){return qe(qe({},e),{format:t,get:!0,getInner:!0})},Qb=function(e,t,n,r){var o,i=Zb(t,n),a=t.no_events?i:e.fire("BeforeGetContent",i);return o="raw"===a.format?gn.trim(Yb(e.serializer,r.innerHTML)):"text"===a.format?e.dom.isEmpty(r)?"":ga(r.innerText||r.textContent):"tree"===a.format?e.serializer.serialize(r,a):Jb(e,e.serializer.serialize(r,a)),Y(["text","tree"],a.format)||aa(wn.fromDom(r))?a.content=o:a.content=gn.trim(o),a.no_events?a.content:e.fire("GetContent",a).content},ew=function(e,t,n){return q.from(e.getBody()).fold(A("tree"===t.format?new Eb("body",11):""),(function(r){return Qb(e,t,n,r)}))},tw=gn.each,nw=function(e){var t=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return tw(e.getAttribs(t),(function(r){var o=r.nodeName.toLowerCase();0!==o.indexOf("_")&&"style"!==o&&0!==o.indexOf("data-")&&(n[o]=e.getAttrib(t,o))})),n},o=function(e,t){var n,r;for(r in e)if(Me(e,r)){if(n=t[r],"undefined"===typeof n)return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(Me(t,r))return!1;return!0};return!!o(r(t),r(n))&&(!!o(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))&&(!_p(t)&&!_p(n)))};return{compare:t}},rw=gn.makeMap,ow=function(e){var t=[];e=e||{};var n=e.indent,r=rw(e.indent_before||""),o=rw(e.indent_after||""),i=Oc.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format;return{start:function(e,c,u){var s,l,f,d;if(n&&r[e]&&t.length>0&&(d=t[t.length-1],d.length>0&&"\n"!==d&&t.push("\n")),t.push("<",e),c)for(s=0,l=c.length;s<l;s++)f=c[s],t.push(" ",f.name,'="',i(f.value,!0),'"');t[t.length]=!u||a?">":" />",u&&n&&o[e]&&t.length>0&&(d=t[t.length-1],d.length>0&&"\n"!==d&&t.push("\n"))},end:function(e){var r;t.push("</",e,">"),n&&o[e]&&t.length>0&&(r=t[t.length-1],r.length>0&&"\n"!==r&&t.push("\n"))},text:function(e,n){e.length>0&&(t[t.length]=n?e:i(e))},cdata:function(e){t.push("<![CDATA[",e,"]]>")},comment:function(e){t.push("\x3c!--",e,"--\x3e")},pi:function(e,r){r?t.push("<?",e," ",i(r),"?>"):t.push("<?",e,"?>"),n&&t.push("\n")},doctype:function(e){t.push("<!DOCTYPE",e,">",n?"\n":"")},reset:function(){t.length=0},getContent:function(){return t.join("").replace(/\n$/,"")}}},iw=function(e,t){void 0===t&&(t=jc());var n=ow(e);e=e||{},e.validate=!("validate"in e)||e.validate;var r=function(r){var o=e.validate,i={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)do{a(e)}while(e=e.next)}};n.reset();var a=function(e){var r=i[e.type];if(r)r(e);else{var c=e.name,u=e.shortEnded,s=e.attributes;if(o&&s&&s.length>1){var l=[];l.map={};var f=t.getElementRule(e.name);if(f){for(var d=0,m=f.attributesOrder.length;d<m;d++){var g=f.attributesOrder[d];if(g in s.map){var p=s.map[g];l.map[g]=p,l.push({name:g,value:p})}}for(d=0,m=s.length;d<m;d++){g=s[d].name;if(!(g in l.map)){p=s.map[g];l.map[g]=p,l.push({name:g,value:p})}}s=l}}if(n.start(e.name,s,u),!u){if(e=e.firstChild)do{a(e)}while(e=e.next);n.end(c)}}};return 1!==r.type||e.inner?i[11](r):a(r),n.getContent()};return{serialize:r}},aw=new Set;(function(){var e=["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"];Q(e,(function(e){aw.add(e)}))})();var cw=["font","text-decoration","text-emphasis"],uw=function(e,t){return we(e.parseStyle(e.getAttrib(t,"style")))},sw=function(e){return aw.has(e)},lw=function(e,t){return le(uw(e,t),(function(e){return!sw(e)}))},fw=function(e){return ne(e,(function(e){return J(cw,(function(t){return st(e,t)}))}))},dw=function(e,t,n){var r=uw(e,t),o=uw(e,n),i=function(r){var o=e.getStyle(t,r),i=e.getStyle(n,r);return gt(o)&>(i)&&o!==i};return J(r,(function(e){var t=function(t){return J(t,(function(t){return t===e}))};if(!t(o)&&t(cw)){var n=fw(o);return J(n,i)}return i(e)}))},mw=function(e,t,n){return q.from(n.container()).filter(Qr).exists((function(r){var o=e?0:-1;return t(r.data.charAt(n.offset()+o))}))},gw=R(mw,!0,Cp),pw=R(mw,!1,Cp),hw=function(e){var t=e.container();return Qr(t)&&(0===t.data.length||ma(t.data)&&Ih.isBookmarkNode(t.parentNode))},vw=function(e,t){return function(n){return q.from(dg(e?0:-1,n)).filter(t).isSome()}},yw=function(e){return oo(e)&&"block"===So(wn.fromDom(e),"display")},bw=function(e){return ao(e)&&!Xr(e)},ww=vw(!0,yw),kw=vw(!1,yw),_w=vw(!0,uo),xw=vw(!1,uo),zw=vw(!0,Yr),Cw=vw(!1,Yr),Sw=vw(!0,bw),Tw=vw(!1,bw),Ow=function(e){var t=[],n=e.dom;while(n)t.push(wn.fromDom(n)),n=n.lastChild;return t},Ew=function(e){var t=Tl(e,"br"),n=ne(Ow(e).slice(-1),ea);t.length===n.length&&Q(n,Sr)},Aw=function(e){Cr(e),kr(e,wn.fromHtml('<br data-mce-bogus="1">'))},Dw=function(e){ar(e).each((function(t){Qn(t).each((function(n){Ji(e)&&ea(t)&&Ji(n)&&Sr(t)}))}))},Mw=function(e){return e.slice(0,-1)},Rw=function(e,t,n){return Pn(t,e)?Mw(Jn(e,(function(e){return n(e)||Rn(e,t)}))):[]},Nw=function(e,t){return Rw(e,t,I)},Bw=function(e,t){return[e].concat(Nw(e,t))},Pw=function(e,t,n){return Gg(e,t,n,hw)},Lw=function(e,t){return ae(Bw(wn.fromDom(t.container()),e),Ji)},Iw=function(e,t,n){return Pw(e,t.dom,n).forall((function(e){return Lw(t,n).fold((function(){return!1===fg(e,n,t.dom)}),(function(r){return!1===fg(e,n,t.dom)&&Pn(r,wn.fromDom(e.container()))}))}))},Hw=function(e,t,n){return Lw(t,n).fold((function(){return Pw(e,t.dom,n).forall((function(e){return!1===fg(e,n,t.dom)}))}),(function(t){return Pw(e,t.dom,n).isNone()}))},Fw=R(Hw,!1),jw=R(Hw,!0),Vw=R(Iw,!1),Uw=R(Iw,!0),qw=function(e){return kg(e).exists(ea)},Ww=function(e,t,n){var r=ne(Bw(wn.fromDom(n.container()),t),Ji),o=he(r).getOr(t);return Wg(e,o.dom,n).filter(qw)},$w=function(e,t){return kg(t).exists(ea)||Ww(!0,e,t).isSome()},Gw=function(e,t){return _g(t).exists(ea)||Ww(!1,e,t).isSome()},Kw=R(Ww,!1),Xw=R(Ww,!0),Yw=function(e){return Rf.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},Jw=function(e,t){var n=ne(Bw(wn.fromDom(t.container()),e),Ji);return he(n).getOr(e)},Zw=function(e,t){return Yw(t)?pw(t):pw(t)||Yg(Jw(e,t).dom,t).exists(pw)},Qw=function(e,t){return Yw(t)?gw(t):gw(t)||Xg(Jw(e,t).dom,t).exists(gw)},ek=function(e){return Y(["pre","pre-wrap"],e)},tk=function(e){return kg(e).bind((function(e){return xi(e,jn)})).exists((function(e){return ek(So(e,"white-space"))}))},nk=function(e,t){return Yg(e.dom,t).isNone()},rk=function(e,t){return Xg(e.dom,t).isNone()},ok=function(e,t){return nk(e,t)||rk(e,t)||Fw(e,t)||jw(e,t)||Gw(e,t)||$w(e,t)},ik=function(e,t){return!tk(t)&&(ok(e,t)||Zw(e,t)||Qw(e,t))},ak=function(e,t){return!tk(t)&&(Fw(e,t)||Vw(e,t)||Gw(e,t)||Zw(e,t))},ck=function(e){var t=e.container(),n=e.offset();return Qr(t)&&n<t.data.length?Rf(t,n+1):e},uk=function(e,t){return!tk(t)&&(jw(e,t)||Uw(e,t)||$w(e,t)||Qw(e,t))},sk=function(e,t){return ak(e,t)||uk(e,ck(t))},lk=function(e,t){return zp(e.charAt(t))},fk=function(e){var t=e.container();return Qr(t)&&ut(t.data,sa)},dk=function(e){var t=e.split("");return Z(t,(function(e,n){return zp(e)&&n>0&&n<t.length-1&&Sp(t[n-1])&&Sp(t[n+1])?" ":e})).join("")},mk=function(e,t){var n=t.data,r=Rf(t,0);return!(!lk(n,0)||sk(e,r))&&(t.data=" "+n.slice(1),!0)},gk=function(e){var t=e.data,n=dk(t);return n!==t&&(e.data=n,!0)},pk=function(e,t){var n=t.data,r=Rf(t,n.length-1);return!(!lk(n,n.length-1)||sk(e,r))&&(t.data=n.slice(0,-1)+" ",!0)},hk=function(e,t){return q.some(t).filter(fk).bind((function(t){var n=t.container(),r=mk(e,n)||gk(n)||pk(e,n);return r?q.some(t):q.none()}))},vk=function(e){var t=wn.fromDom(e.getBody());e.selection.isCollapsed()&&hk(t,Rf.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))},yk=function(e,t,n){var r=oe(e,(function(r,o){return Cp(o)||zp(o)?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+sa}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+o}}),{previousCharIsSpace:!1,str:""});return r.str},bk=function(e,t,n){if(0!==n){var r=wn.fromDom(e),o=_i(r,Ji).getOr(r),i=e.data.slice(t,t+n),a=t+n>=e.data.length&&uk(o,Rf(e,e.data.length)),c=0===t&&ak(o,Rf(e,0));e.replaceData(t,n,yk(i,c,a))}},wk=function(e,t){var n=e.data.slice(t),r=n.length-dt(n).length;bk(e,t,r)},kk=function(e,t){var n=e.data.slice(0,t),r=n.length-mt(n).length;bk(e,t-r,r)},_k=function(e,t,n,r){void 0===r&&(r=!0);var o=mt(e.data).length,i=r?e:t,a=r?t:e;return r?i.appendData(a.data):i.insertData(0,a.data),Sr(wn.fromDom(a)),n&&wk(i,o),i},xk=function(e,t){var n=e.container(),r=e.offset();return!1===Rf.isTextPosition(e)&&n===t.parentNode&&r>Rf.before(t).offset()},zk=function(e,t){return xk(t,e)?Rf(t.container(),t.offset()-1):t},Ck=function(e){return Qr(e)?Rf(e,0):Rf.before(e)},Sk=function(e){return Qr(e)?Rf(e,e.data.length):Rf.after(e)},Tk=function(e){return Ha(e.previousSibling)?q.some(Sk(e.previousSibling)):e.previousSibling?Zg(e.previousSibling):q.none()},Ok=function(e){return Ha(e.nextSibling)?q.some(Ck(e.nextSibling)):e.nextSibling?Jg(e.nextSibling):q.none()},Ek=function(e,t){var n=Rf.before(t.previousSibling?t.previousSibling:t.parentNode);return Yg(e,n).fold((function(){return Xg(e,Rf.after(t))}),q.some)},Ak=function(e,t){return Xg(e,Rf.after(t)).fold((function(){return Yg(e,Rf.before(t))}),q.some)},Dk=function(e,t){return Tk(t).orThunk((function(){return Ok(t)})).orThunk((function(){return Ek(e,t)}))},Mk=function(e,t){return Ok(t).orThunk((function(){return Tk(t)})).orThunk((function(){return Ak(e,t)}))},Rk=function(e,t,n){return e?Mk(t,n):Dk(t,n)},Nk=function(e,t,n){return Rk(e,t,n).map(R(zk,n))},Bk=function(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))},Pk=function(e){return function(t){return t.dom===e}},Lk=function(e,t){return t&&Me(e.schema.getBlockElements(),Ln(t))},Ik=function(e){if(nc(e)){var t=wn.fromHtml('<br data-mce-bogus="1">');return Cr(e),kr(e,t),q.some(Rf.before(t.dom))}return q.none()},Hk=function(e,t,n){var r=Qn(e).filter(Vn),o=er(e).filter(Vn);return Sr(e),mo(r,o,t,(function(e,t,r){var o=e.dom,i=t.dom,a=o.data.length;return _k(o,i,n),r.container()===i?Rf(o,a):r})).orThunk((function(){return n&&(r.each((function(e){return kk(e.dom,e.dom.length)})),o.each((function(e){return wk(e.dom,0)}))),t}))},Fk=function(e,t){return Me(e.schema.getTextInlineElements(),Ln(t))},jk=function(e,t,n,r){void 0===r&&(r=!0);var o=Nk(t,e.getBody(),n.dom),i=_i(n,R(Lk,e),Pk(e.getBody())),a=Hk(n,o,Fk(e,n));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):i.bind(Ik).fold((function(){r&&Bk(e,t,a)}),(function(n){r&&Bk(e,t,q.some(n))}))},Vk=function(e){return function(t){return Rn(e,t)}},Uk=function(e){return Tl(e,"td,th")},qk=function(e,t){var n=function(e){return yh(wn.fromDom(e),t)},r=n(e.startContainer),o=n(e.endContainer),i=r.isSome(),a=o.isSome(),c=fo(r,o,Rn).getOr(!1),u=!c&&i&&a;return{startTable:r,endTable:o,isStartInTable:i,isEndInTable:a,isSameTable:c,isMultiTable:u}},Wk=function(e,t){return{start:e,end:t}},$k=function(e,t,n){return{rng:e,table:t,cells:n}},Gk=ei.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),Kk=function(e,t){return Oi(wn.fromDom(e),"td,th",t)},Xk=function(e){return!Rn(e.start,e.end)},Yk=function(e,t){return yh(e.start,t).bind((function(n){return yh(e.end,t).bind((function(e){return go(Rn(n,e),n)}))}))},Jk=function(e,t){return!Xk(e)&&Yk(e,t).exists((function(e){var t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}))},Zk=function(e,t){var n=Kk(e.startContainer,t),r=Kk(e.endContainer,t);return fo(n,r,Wk)},Qk=function(e){return function(t){return yh(t,e).bind((function(e){return ve(Uk(e)).map((function(e){return Wk(t,e)}))}))}},e_=function(e){return function(t){return yh(t,e).bind((function(e){return he(Uk(e)).map((function(e){return Wk(e,t)}))}))}},t_=function(e){return function(t){return Yk(t,e).map((function(e){return $k(t,e,Uk(e))}))}},n_=function(e,t,n,r){if(n.collapsed||!e.forall(Xk))return q.none();if(t.isSameTable){var o=e.bind(t_(r));return q.some({start:o,end:o})}var i=Kk(n.startContainer,r),a=Kk(n.endContainer,r),c=i.bind(Qk(r)).bind(t_(r)),u=a.bind(e_(r)).bind(t_(r));return q.some({start:c,end:u})},r_=function(e,t){return ce(e,(function(e){return Rn(e,t)}))},o_=function(e){return fo(r_(e.cells,e.rng.start),r_(e.cells,e.rng.end),(function(t,n){return e.cells.slice(t,n+1)}))},i_=function(e,t,n){return e.exists((function(e){return Jk(e,n)&&xh(e.start,t)}))},a_=function(e,t){var n=t.startTable,r=t.endTable,o=e.cloneRange();return n.each((function(e){return o.setStartAfter(e.dom)})),r.each((function(e){return o.setEndBefore(e.dom)})),o},c_=function(e,t,n,r){return n_(e,t,n,r).bind((function(e){var t=e.start,n=e.end;return t.or(n)})).bind((function(e){var r=t.isSameTable,o=o_(e).getOr([]);if(r&&e.cells.length===o.length)return q.some(Gk.fullTable(e.table));if(o.length>0){if(r)return q.some(Gk.partialTable(o,q.none()));var i=a_(n,t);return q.some(Gk.partialTable(o,q.some(qe(qe({},t),{rng:i}))))}return q.none()}))},u_=function(e,t,n,r){return n_(e,t,n,r).bind((function(e){var r=e.start,o=e.end,i=r.bind(o_).getOr([]),a=o.bind(o_).getOr([]);if(i.length>0&&a.length>0){var c=a_(n,t);return q.some(Gk.multiTable(i,a,c))}return q.none()}))},s_=function(e,t){var n=Vk(e),r=Zk(t,n),o=qk(t,n);return i_(r,t,n)?r.map((function(e){return Gk.singleCellTable(t,e.start)})):o.isMultiTable?u_(r,o,t,n):c_(r,o,t,n)},l_=function(e){var t=Fn(e)?Qn(e):ar(e);return t.bind(l_).orThunk((function(){return q.some(e)}))},f_=function(e){return Q(e,(function(e){_o(e,"contenteditable"),Aw(e)}))},d_=function(e,t){return q.from(e.dom.getParent(t,e.dom.isBlock)).map(wn.fromDom)},m_=function(e,t,n){n.each((function(n){t?Sr(n):(Aw(n),e.selection.setCursorLocation(n.dom,0))}))},g_=function(e,t,n,r){var o=n.cloneRange();r?(o.setStart(n.startContainer,n.startOffset),o.setEndAfter(t.dom.lastChild)):(o.setStartBefore(t.dom.firstChild),o.setEnd(n.endContainer,n.endOffset)),y_(e,o,t,!1)},p_=function(e){var t=vh(e),n=wn.fromDom(e.selection.getNode());co(n.dom)&&nc(n)?e.selection.setCursorLocation(n.dom,0):e.selection.collapse(!0),t.length>1&&J(t,(function(e){return Rn(e,n)}))&&vo(n,"data-mce-selected","1")},h_=function(e,t,n){var r=e.selection.getRng(),o=n.bind((function(n){var o=n.rng,i=n.isStartInTable,a=d_(e,i?o.endContainer:o.startContainer);o.deleteContents(),m_(e,i,a.filter(nc));var c=i?t[0]:t[t.length-1];return g_(e,c,r,i),nc(c)?q.none():q.some(i?t.slice(1):t.slice(0,-1))})).getOr(t);return f_(o),p_(e),!0},v_=function(e,t,n,r){var o=e.selection.getRng(),i=t[0],a=n[n.length-1];g_(e,i,o,!0),g_(e,a,o,!1);var c=nc(i)?t:t.slice(1),u=nc(a)?n:n.slice(0,-1);return f_(c.concat(u)),r.deleteContents(),p_(e),!0},y_=function(e,t,n,r){void 0===r&&(r=!0),t.deleteContents();var o=l_(n).getOr(n),i=wn.fromDom(e.dom.getParent(o.dom,e.dom.isBlock));if(nc(i)&&(Aw(i),r&&e.selection.setCursorLocation(i.dom,0)),!Rn(n,i)){var a=so(Yn(i),n)?[]:Zn(i);Q(a.concat(rr(n)),(function(e){Rn(e,i)||Pn(e,i)||!nc(e)||Sr(e)}))}return!0},b_=function(e,t){return jk(e,!1,t),!0},w_=function(e,t,n){return s_(t,n).map((function(t){return t.fold(R(y_,e),R(b_,e),R(h_,e),R(v_,e))}))},k_=function(e,t){return T_(e,t)},__=function(e,t,n,r){return C_(t,r).fold((function(){return w_(e,t,n)}),(function(t){return k_(e,t)})).getOr(!1)},x_=function(e,t,n){var r=wn.fromDom(e.getBody()),o=e.selection.getRng();return 0!==n.length?h_(e,n,q.none()):__(e,r,o,t)},z_=function(e,t){return ae(Bw(t,e),ia)},C_=function(e,t){return ae(Bw(t,e),Wn("caption"))},S_=function(e,t,n,r,o){return $g(n,e.getBody(),o).bind((function(e){return z_(t,wn.fromDom(e.getNode())).map((function(e){return!1===Rn(e,r)}))}))},T_=function(e,t){return Aw(t),e.selection.setCursorLocation(t.dom,0),q.some(!0)},O_=function(e,t,n,r){return Jg(e.dom).bind((function(o){return Zg(e.dom).map((function(e){return t?n.isEqual(o)&&r.isEqual(e):n.isEqual(e)&&r.isEqual(o)}))})).getOr(!0)},E_=function(e,t){return T_(e,t)},A_=function(e,t,n){return C_(e,wn.fromDom(n.getNode())).map((function(e){return!1===Rn(e,t)}))},D_=function(e,t,n,r,o){return $g(n,e.getBody(),o).bind((function(i){return O_(r,n,o,i)?E_(e,r):A_(t,r,i)})).or(q.some(!0))},M_=function(e,t,n,r){var o=Rf.fromRangeStart(e.selection.getRng());return z_(n,r).bind((function(r){return nc(r)?T_(e,r):S_(e,n,t,r,o)})).getOr(!1)},R_=function(e,t,n,r){var o=Rf.fromRangeStart(e.selection.getRng());return nc(r)?T_(e,r):D_(e,n,t,r,o)},N_=function(e,t){return e?zw(t):Cw(t)},B_=function(e,t){var n=Rf.fromRangeStart(e.selection.getRng());return N_(t,n)||Wg(t,e.getBody(),n).exists((function(e){return N_(t,e)}))},P_=function(e,t,n){var r=wn.fromDom(e.getBody());return C_(r,n).fold((function(){return M_(e,t,r,n)||B_(e,t)}),(function(n){return R_(e,t,r,n).getOr(!1)}))},L_=function(e,t){var n=wn.fromDom(e.selection.getStart(!0)),r=vh(e);return e.selection.isCollapsed()&&0===r.length?P_(e,t,n):x_(e,n,r)},I_=function(e,t,n,r){var o=document.createRange();return o.setStart(e,t),o.setEnd(n,r),o},H_=function(e){var t=Rf.fromRangeStart(e),n=Rf.fromRangeEnd(e),r=e.commonAncestorContainer;return Wg(!1,r,n).map((function(o){return!fg(t,n,r)&&fg(t,o,r)?I_(t.container(),t.offset(),o.container(),o.offset()):e})).getOr(e)},F_=function(e){return e.collapsed?e:H_(e)},j_=function(e){return e.firstChild&&e.firstChild===e.lastChild},V_=function(e){return"br"===e.name||e.value===sa},U_=function(e,t){var n=e.getBlockElements();return n[t.name]&&j_(t)&&V_(t.firstChild)},q_=function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||U_(e,t))},W_=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),q_(e,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},$_=function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e},G_=function(e,t,n){var r=t.serialize(n),o=e.createFragment(r);return $_(o)},K_=function(e){return ne(e.childNodes,(function(e){return"LI"===e.nodeName}))},X_=function(e){return e.data===sa||ro(e)},Y_=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&X_(e.firstChild)},J_=function(e){return!e.firstChild||Y_(e)},Z_=function(e){return e.length>0&&J_(e[e.length-1])?e.slice(0,-1):e},Q_=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},ex=function(e,t){return!!Q_(e,t)},tx=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]},nx=function(e,t){var n=Rf.before(e),r=Lg(t),o=r.next(n);return o?o.toRange():null},rx=function(e,t){var n=Rf.after(e),r=Lg(t),o=r.prev(n);return o?o.toRange():null},ox=function(e,t,n,r){var o=tx(e,r),i=e.parentNode;return i.insertBefore(o[0],e),gn.each(t,(function(t){i.insertBefore(t,e)})),i.insertBefore(o[1],e),i.removeChild(e),rx(t[t.length-1],n)},ix=function(e,t,n){var r=e.parentNode;return gn.each(t,(function(t){r.insertBefore(t,e)})),nx(e,n)},ax=function(e,t,n,r){return r.insertAfter(t.reverse(),e),rx(t[0],n)},cx=function(e,t,n,r){var o=G_(t,e,r),i=Q_(t,n.startContainer),a=Z_(K_(o.firstChild)),c=1,u=2,s=t.getRoot(),l=function(e){var r=Rf.fromRangeStart(n),o=Lg(t.getRoot()),a=e===c?o.prev(r):o.next(r);return!a||Q_(t,a.getNode())!==i};return l(c)?ix(i,a,s):l(u)?ax(i,a,s,t):ox(i,a,s,n)},ux=function(e,t,n){var r=wn.fromDom(e.getRoot());return n=ak(r,Rf.fromRangeStart(t))?n.replace(/^ /," "):n.replace(/^ /," "),n=uk(r,Rf.fromRangeEnd(t))?n.replace(/( | )(<br( \/)>)?$/," "):n.replace(/ (<br( \/)?>)?$/," "),n},sx=co,lx=function(e,t,n){if(null!==n){var r=e.getParent(t.endContainer,sx);return n===r&&xh(wn.fromDom(n),t)}return!1},fx=function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?e.dom.setHTML(n,t):e.selection.setContent(t)}},dx=function(e,t){q.from(e.getParent(t,"td,th")).map(wn.fromDom).each(Dw)},mx=function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=nw(r);gn.each(r.select("*[data-mce-fragment]"),(function(e){var t=z(n[e.nodeName.toLowerCase()]);if(t&&lw(r,e))for(var a=e.parentNode;z(a)&&a!==o;a=a.parentNode){var c=dw(r,e,a);if(c)break;if(i.compare(a,e)){r.remove(e,!0);break}}}))}},gx=function(e){var t=e;while(t=t.walk())1===t.type&&t.attr("data-mce-fragment","1")},px=function(e){gn.each(e.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")}))},hx=function(e){return!!e.getAttribute("data-mce-fragment")},vx=function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]},yx=function(e,t){var n,r=e.dom,o=e.selection;if(t){o.scrollIntoView(t);var i=Hh(e.getBody(),t);if("false"===r.getContentEditable(i))return r.remove(t),void o.select(i);var a=r.createRng(),c=t.previousSibling;if(Qr(c)){if(a.setStart(c,c.nodeValue.length),!en.ie){var u=t.nextSibling;Qr(u)&&(c.appendData(u.data),u.parentNode.removeChild(u))}}else a.setStartBefore(t),a.setEndBefore(t);var s=function(t){var n=Rf.fromRangeStart(t),r=Lg(e.getBody());if(n=r.next(n),n)return n.toRange()},l=r.getParent(t,r.isBlock);r.remove(t),l&&r.isEmpty(l)&&(e.$(l).empty(),a.setStart(l,0),a.setEnd(l,0),sx(l)||hx(l)||!(n=s(a))?r.add(l,r.create("br",{"data-mce-bogus":"1"})):(a=n,r.remove(l))),o.setRng(a)}},bx=function(e){var t=e.dom,n=F_(e.selection.getRng());e.selection.setRng(n);var r=t.getParent(n.startContainer,sx);lx(t,n,r)?y_(e,n,wn.fromDom(r)):e.getDoc().execCommand("Delete",!1,null)},wx=function(e,t,n){var r,o,i,a=e.selection,c=e.dom;/^ | $/.test(t)&&(t=ux(c,a.getRng(),t));var u=e.parser,s=n.merge,l=iw({validate:im(e)},e.schema),f='<span id="mce_marker" data-mce-type="bookmark"></span>',d=e.fire("BeforeSetContent",{content:t,format:"html",selection:!0,paste:n.paste});if(d.isDefaultPrevented())e.fire("SetContent",{content:d.content,format:"html",selection:!0,paste:n.paste});else{t=d.content,-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,f),o=a.getRng();var m=o.startContainer||(o.parentElement?o.parentElement():null),g=e.getBody();m===g&&a.isCollapsed()&&c.isBlock(g.firstChild)&&vx(e,g.firstChild)&&c.isEmpty(g.firstChild)&&(o=c.createRng(),o.setStart(g.firstChild,0),o.setEnd(g.firstChild,0),a.setRng(o)),a.isCollapsed()||bx(e),r=a.getNode();var p={context:r.nodeName.toLowerCase(),data:n.data,insert:!0},h=u.parse(t,p);if(!0===n.paste&&W_(e.schema,h)&&ex(c,r))return o=cx(l,c,a.getRng(),h),a.setRng(o),void e.fire("SetContent",d);if(gx(h),i=h.lastChild,"mce_marker"===i.attr("id")){var v=i;for(i=i.prev;i;i=i.walk(!0))if(3===i.type||!c.isBlock(i.name)){e.schema.isValidChild(i.parent.name,"span")&&i.parent.insert(v,i,"br"===i.name);break}}if(e._selectionOverrides.showBlockCaretContainer(r),p.invalid){e.selection.setContent(f),r=a.getNode();var y=e.getBody();9===r.nodeType?r=i=y:i=r;while(i!==y)r=i,i=i.parentNode;t=r===y?y.innerHTML:c.getOuterHTML(r),t=l.serialize(u.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return l.serialize(h)})))),r===y?c.setHTML(y,t):c.setOuterHTML(r,t)}else t=l.serialize(h),fx(e,t,r);mx(e,s),yx(e,c.get("mce_marker")),px(e.getBody()),dx(c,a.getStart()),e.fire("SetContent",d),e.addVisual()}},kx=function(e,t){t(e),e.firstChild&&kx(e.firstChild,t),e.next&&kx(e.next,t)},_x=function(e,t,n){var r={},o={},i=[];for(var a in n.firstChild&&kx(n.firstChild,(function(n){Q(e,(function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})})),Q(t,(function(e){"string"===typeof n.attr(e.name)&&(o[e.name]?o[e.name].nodes.push(n):o[e.name]={filter:e,nodes:[n]})}))})),r)Me(r,a)&&i.push(r[a]);for(var c in o)Me(o,c)&&i.push(o[c]);return i},xx=function(e,t,n){var r=_x(e,t,n);Q(r,(function(e){Q(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}))},zx="html",Cx=function(e){return e instanceof Eb},Sx=function(e){db(e)&&Jg(e.getBody()).each((function(t){var n=t.getNode(),r=Yr(n)?Jg(n).getOr(t):t;e.selection.setRng(r.toRange())}))},Tx=function(e,t,n){e.dom.setHTML(e.getBody(),t),!0!==n&&Sx(e)},Ox=function(e,t,n,r){if(0===n.length||/^\s+$/.test(n)){var o='<br data-mce-bogus="1">';"TABLE"===t.nodeName?n="<tr><td>"+o+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+o+"</li>");var i=Cd(e);i&&e.schema.isValidChild(t.nodeName.toLowerCase(),i.toLowerCase())?(n=o,n=e.dom.createHTML(i,Sd(e),n)):n||(n='<br data-mce-bogus="1">'),Tx(e,n,r.no_selection),e.fire("SetContent",r)}else"raw"!==r.format&&(n=iw({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=aa(wn.fromDom(t))?n:gn.trim(n),Tx(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r);return r.content},Ex=function(e,t,n,r){xx(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var o=iw({validate:e.validate},e.schema).serialize(n);return r.content=aa(wn.fromDom(t))?o:gn.trim(o),Tx(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r),n},Ax=function(e,t){return qe(qe({format:zx},e),{set:!0,content:Cx(t)?"":t})},Dx=function(e,t,n){var r=Ax(n,t),o=n.no_events?r:e.fire("BeforeSetContent",r);return Cx(t)||(t=o.content),q.from(e.getBody()).fold(A(t),(function(n){return Cx(t)?Ex(e,n,t,o):Ox(e,n,t,o)}))},Mx=function(e,t){return zi(e,t).isSome()},Rx=function(e){return C(e)?e:I},Nx=function(e,t,n){var r=e.dom,o=Rx(n);while(r.parentNode){r=r.parentNode;var i=wn.fromDom(r),a=t(i);if(a.isSome())return a;if(o(i))break}return q.none()},Bx=function(e,t,n){var r=t(e),o=Rx(n);return r.orThunk((function(){return o(e)?q.none():Nx(e,t,o)}))},Px=Pp,Lx=function(e,t,n){var r=e.formatter.get(n);if(r)for(var o=0;o<r.length;o++){var i=r[o];if(qp(i)&&!1===i.inherit&&e.dom.is(t,i.selector))return!0}return!1},Ix=function(e,t,n,r,o){var i=e.dom.getRoot();return t!==i&&(t=e.dom.getParent(t,(function(t){return!!Lx(e,t,n)||(t.parentNode===i||!!jx(e,t,n,r,!0))})),!!jx(e,t,n,r,o))},Hx=function(e,t,n){return!!Px(t,n.inline)||(!!Px(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0))},Fx=function(e,t,n,r,o,i){var a=n[r];if(C(n.onmatch))return n.onmatch(t,n,r);if(a)if(_(a.length)){for(var c in a)if(Me(a,c)){var u="attributes"===r?e.getAttrib(t,c):Ip(e,t,c),s=Bp(a[c],i),l=x(u)||pt(u);if(l&&x(s))continue;if(o&&l&&!n.exact)return!1;if((!o||n.exact)&&!Px(u,Lp(e,s,c)))return!1}}else for(var f=0;f<a.length;f++)if("attributes"===r?e.getAttrib(t,a[f]):Ip(e,t,a[f]))return!0;return!0},jx=function(e,t,n,r,o){var i=e.formatter.get(n),a=e.dom;if(i&&t)for(var c=0;c<i.length;c++){var u=i[c];if(Hx(e.dom,t,u)&&Fx(a,t,u,"attributes",o,r)&&Fx(a,t,u,"styles",o,r)){var s=u.classes;if(s)for(var l=0;l<s.length;l++)if(!e.dom.hasClass(t,Bp(s[l],r)))return;return u}}},Vx=function(e,t,n,r,o){if(r)return Ix(e,r,t,n,o);if(r=e.selection.getNode(),Ix(e,r,t,n,o))return!0;var i=e.selection.getStart();return!(i===r||!Ix(e,i,t,n,o))},Ux=function(e,t,n){var r=[],o={},i=e.selection.getStart();return e.dom.getParent(i,(function(i){for(var a=0;a<t.length;a++){var c=t[a];!o[c]&&jx(e,i,c,n)&&(o[c]=!0,r.push(c))}}),e.dom.getRoot()),r},qx=function(e,t){var n=function(t){return Rn(t,wn.fromDom(e.getBody()))},r=function(t,n){return jx(e,t.dom,n)?q.some(n):q.none()};return q.from(e.selection.getStart(!0)).bind((function(e){return Bx(wn.fromDom(e),(function(e){return be(t,(function(t){return r(e,t)}))}),n)})).getOrNull()},Wx=function(e,t){var n=e.formatter.get(t),r=e.dom;if(n)for(var o=e.selection.getStart(),i=Fp(r,o),a=n.length-1;a>=0;a--){var c=n[a];if(!qp(c)||z(c.defaultBlock))return!0;for(var u=i.length-1;u>=0;u--)if(r.is(i[u],c.selector))return!0}return!1},$x=function(e,t,n){return oe(n,(function(n,r){var o=jp(e,r);return e.formatter.matchNode(t,r,{},o)?n.concat([r]):n}),[])},Gx=da,Kx="_mce_caret",Xx=function(e,t){return e.importNode(t,!0)},Yx=function(e){var t=[];while(e){if(3===e.nodeType&&e.nodeValue!==Gx||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t},Jx=function(e){return Yx(e).length>0},Zx=function(e){if(e){var t=new Fi(e,e);for(e=t.current();e;e=t.next())if(Qr(e))return e}return null},Qx=function(e){var t=wn.fromTag("span");return yo(t,{id:Kx,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&kr(t,wn.fromText(Gx)),t},ez=function(e){var t=Zx(e);return t&&t.nodeValue.charAt(0)===Gx&&t.deleteData(0,1),t},tz=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(Jx(t))jk(e,!1,wn.fromDom(t),n);else{var i=o.getRng(),a=r.getParent(t,r.isBlock),c=i.startContainer,u=i.startOffset,s=i.endContainer,l=i.endOffset,f=ez(t);r.remove(t,!0),c===f&&u>0&&i.setStart(f,u-1),s===f&&l>0&&i.setEnd(f,l-1),a&&r.isEmpty(a)&&Aw(wn.fromDom(a)),o.setRng(i)}},nz=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(t)tz(e,t,n);else if(t=tp(e.getBody(),o.getStart()),!t)while(t=r.get(Kx))tz(e,t,!1)},rz=function(e,t,n){var r=e.dom,o=r.getParent(n,R(Dp,e));o&&r.isEmpty(o)?n.parentNode.replaceChild(t,n):(Ew(wn.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},oz=function(e,t){return e.appendChild(t),t},iz=function(e,t){var n=re(e,(function(e,t){return oz(e,t.cloneNode(!1))}),t);return oz(n,n.ownerDocument.createTextNode(Gx))},az=function(e,t,n,r,o,i){var a=e.formatter,c=e.dom,u=ne(we(a.get()),(function(e){return e!==r&&!ut(e,"removeformat")})),s=$x(e,n,u),l=ne(s,(function(t){return!Vp(e,t,r)}));if(l.length>0){var f=n.cloneNode(!1);return c.add(t,f),a.remove(r,o,f,i),c.remove(f),q.some(f)}return q.none()},cz=function(e,t,n){var r,o,i=e.selection,a=i.getRng(),c=a.startOffset,u=a.startContainer,s=u.nodeValue;r=tp(e.getBody(),i.getStart()),r&&(o=Zx(r));var l=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(s&&c>0&&c<s.length&&l.test(s.charAt(c))&&l.test(s.charAt(c-1))){var f=i.getBookmark();a.collapse(!0);var d=sh(e,a,e.formatter.get(t));d=xv(d),e.formatter.apply(t,n,d),i.moveToBookmark(f)}else r&&o.nodeValue===Gx||(r=Xx(e.getDoc(),Qx(!0).dom),o=r.firstChild,a.insertNode(r),c=1),e.formatter.apply(t,n,r),i.setCursorLocation(o,c)},uz=function(e,t,n,r){var o,i,a,c=e.dom,u=e.selection,s=[],l=u.getRng(),f=l.startContainer,d=l.startOffset;i=f,3===f.nodeType&&(d!==f.nodeValue.length&&(o=!0),i=i.parentNode);while(i){if(jx(e,i,t,n,r)){a=i;break}i.nextSibling&&(o=!0),s.push(i),i=i.parentNode}if(a)if(o){var m=u.getBookmark();l.collapse(!0);var g=sh(e,l,e.formatter.get(t),!0);g=xv(g),e.formatter.remove(t,n,g,r),u.moveToBookmark(m)}else{var p=tp(e.getBody(),a),h=Qx(!1).dom;rz(e,h,null!==p?p:a);var v=az(e,h,a,t,n,r),y=iz(s.concat(v.toArray()),h);tz(e,p,!1),u.setCursorLocation(y,1),c.isEmpty(a)&&c.remove(a)}},sz=function(e,t){var n=e.selection,r=e.getBody();nz(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==Gx||nz(e,tp(r,n.getStart())),37!==t&&39!==t||nz(e,tp(r,n.getStart()))},lz=function(e){e.on("mouseup keydown",(function(t){sz(e,t.keyCode)}))},fz=function(e,t){var n=Qx(!1),r=iz(t,n.dom);return yr(wn.fromDom(e),n),Sr(wn.fromDom(e)),Rf(r,0)},dz=function(e,t){var n=e.schema.getTextInlineElements();return Me(n,Ln(t))&&!ep(t.dom)&&!Kr(t.dom)},mz=function(e){return ep(e.dom)&&Jx(e.dom)},gz={},pz=He,hz=Le,vz=function(e,t){var n=gz[e];n||(gz[e]=[]),gz[e].push(t)},yz=function(e,t){hz(gz[e],(function(e){e(t)}))};vz("pre",(function(e){var t,n=e.selection.getRng(),r=function(e){return i(e.previousSibling)&&-1!==Fe(t,e.previousSibling)},o=function(e,t){Rs(t).remove(),Rs(e).append("<br><br>").append(t.childNodes)},i=qr(["pre"]);n.collapsed||(t=e.selection.getSelectedBlocks(),hz(pz(pz(t,i),r),(function(e){o(e.previousSibling,e)})))}));var bz=gn.each,wz=function(e){return Ur(e)&&!_p(e)&&!ep(e)&&!Kr(e)},kz=function(e,t){for(var n=e;n;n=n[t]){if(Qr(n)&>(n.data))return e;if(Ur(n)&&!_p(n))return n}return e},_z=function(e,t,n){var r=nw(e);if(t&&n&&(t=kz(t,"previousSibling"),n=kz(n,"nextSibling"),r.compare(t,n))){for(var o=t.nextSibling;o&&o!==n;){var i=o;o=o.nextSibling,t.appendChild(i)}return e.remove(n),gn.each(gn.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n},xz=function(e,t,n,r){if(r&&!1!==t.merge_siblings){var o=_z(e,Ap(r),r);_z(e,o,Ap(o,!0))}},zz=function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";bz(e.select(r,n),(function(n){wz(n)&&bz(t.styles,(function(t,r){e.setStyle(n,r,"")}))}))}},Cz=function(e,t,n){bz(e.childNodes,(function(e){wz(e)&&(t(e)&&n(e),e.hasChildNodes()&&Cz(e,t,n))}))},Sz=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},Tz=function(e,t){return function(n){return!(!n||!Ip(e,n,t))}},Oz=function(e,t,n){return function(r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),Sz(e,r)}},Ez=ei.generate([{keep:[]},{rename:["name"]},{removed:[]}]),Az=/^(src|href|style)$/,Dz=gn.each,Mz=Pp,Rz=function(e){return/^(TR|TH|TD)$/.test(e.nodeName)},Nz=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},Bz=function(e,t,n){var r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];if(Ur(r)){var i=r.childNodes.length-1;!n&&o&&o--,r=r.childNodes[o>i?i:o]}return Qr(r)&&n&&o>=r.nodeValue.length&&(r=new Fi(r,e.getBody()).next()||r),Qr(r)&&!n&&0===o&&(r=new Fi(r,e.getBody()).prev()||r),r},Pz=function(e,t){var n=t?"firstChild":"lastChild";if(Rz(e)&&e[n]){var r=e[n];return"TR"===e.nodeName&&r[n]||r}return e},Lz=function(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o},Iz=function(e,t,n,r,o){var i=wn.fromDom(t),a=wn.fromDom(e.create(r,o)),c=n?nr(i):tr(i);return zr(a,c),n?(yr(i,a),wr(a,i)):(br(i,a),kr(a,i)),a.dom},Hz=function(e,t,n){return!(!Wp(n)||!Mz(t,n.inline))||(!(!Up(n)||!Mz(t,n.block))||(qp(n)?Ur(t)&&e.is(t,n.selector):void 0))},Fz=function(e,t){return t.links&&"A"===e.nodeName},jz=function(e,t,n,r){var o=Ap(t,n,r);return x(o)||"BR"===o.nodeName||e.isBlock(o)},Vz=function(e,t,n){var r,o=t.parentNode,i=e.dom,a=Cd(e);Up(n)&&(a?o===i.getRoot()&&(n.list_block&&Mz(t,n.list_block)||Q(ye(t.childNodes),(function(t){Mp(e,a,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=Lz(i,t,a),i.setAttribs(r,e.settings.forced_root_block_attrs)):r=null}))):i.isBlock(t)&&!i.isBlock(o)&&(jz(i,t,!1)||jz(i,t.firstChild,!0,!0)||t.insertBefore(i.create("br"),t.firstChild),jz(i,t,!0)||jz(i,t.lastChild,!1,!0)||t.appendChild(i.create("br")))),$p(n)&&!Mz(n.inline,t)||i.remove(t,!0)},Uz=function(e,t,n,r,o){var i,a=e.dom;if(!Hz(a,r,t)&&!Fz(r,t))return Ez.keep();var c=r;if(Wp(t)&&"all"===t.remove&&b(t.preserve_attributes)){var u=ne(a.getAttribs(c),(function(e){return Y(t.preserve_attributes,e.name.toLowerCase())}));if(a.removeAllAttribs(c),Q(u,(function(e){return a.setAttrib(c,e.name,e.value)})),u.length>0)return Ez.rename("span")}if("all"!==t.remove){Dz(t.styles,(function(e,r){e=Lp(a,Bp(e,n),r+""),S(r)&&(r=e,o=null),(t.remove_similar||!o||Mz(Ip(a,o,r),e))&&a.setStyle(c,r,""),i=!0})),i&&""===a.getAttrib(c,"style")&&(c.removeAttribute("style"),c.removeAttribute("data-mce-style")),Dz(t.attributes,(function(e,r){var i;if(e=Bp(e,n),S(r)&&(r=e,o=null),t.remove_similar||!o||Mz(a.getAttrib(o,r),e)){if("class"===r&&(e=a.getAttrib(c,r),e&&(i="",Q(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(i+=(i?" ":"")+e)})),i)))return void a.setAttrib(c,r,i);if(Az.test(r)&&c.removeAttribute("data-mce-"+r),"style"===r&&qr(["li"])(c)&&"none"===a.getStyle(c,"list-style-type"))return c.removeAttribute(r),void a.setStyle(c,"list-style-type","none");"class"===r&&c.removeAttribute("className"),c.removeAttribute(r)}})),Dz(t.classes,(function(e){e=Bp(e,n),o&&!a.hasClass(o,e)||a.removeClass(c,e)}));for(var s=a.getAttribs(c),l=0;l<s.length;l++){var f=s[l].nodeName;if(0!==f.indexOf("_")&&0!==f.indexOf("data-"))return Ez.keep()}}return"none"!==t.remove?(Vz(e,c,t),Ez.removed()):Ez.keep()},qz=function(e,t,n,r,o){return Uz(e,t,n,r,o).fold(I,(function(t){return e.dom.rename(r,t),!0}),H)},Wz=function(e,t,n,r,o){var i;return Q(Fp(e.dom,t.parentNode).reverse(),(function(t){if(!i&&"_start"!==t.id&&"_end"!==t.id){var a=jx(e,t,n,r,o);a&&!1!==a.split&&(i=t)}})),i},$z=function(e,t,n,r){return Uz(e,t,n,r,r).fold(A(r),(function(t){var n=e.dom.createFragment();return n.appendChild(r),e.dom.rename(r,t)}),A(null))},Gz=function(e,t,n,r,o,i,a,c){var u,s,l,f=e.dom;if(n){for(var d=n.parentNode,m=r.parentNode;m&&m!==d;m=m.parentNode){u=f.clone(m,!1);for(var g=0;g<t.length;g++)if(u=$z(e,t[g],c,u),null===u)break;u&&(s&&u.appendChild(s),l||(l=u),s=u)}!i||a.mixed&&f.isBlock(n)||(r=f.split(n,r)),s&&(o.parentNode.insertBefore(s,o),l.appendChild(o),Wp(a)&&xz(f,a,c,s))}return r},Kz=function(e,t,n,r,o){var i=e.formatter.get(t),a=i[0],c=!0,u=e.dom,s=e.selection,l=function(r){var c=Wz(e,r,t,n,o);return Gz(e,i,c,r,r,!0,a,n)},f=function(e){return _p(e)&&Ur(e)&&("_start"===e.id||"_end"===e.id)},d=function(t){return J(i,(function(r){return qz(e,r,n,t,t)}))},m=function(t){var n=!0,r=!1;Ur(t)&&u.getContentEditable(t)&&(n=c,c="true"===u.getContentEditable(t),r=!0);var o=ye(t.childNodes);if(c&&!r){var s=d(t),l=s||J(i,(function(e){return Hx(u,t,e)})),f=t.parentNode;!l&&z(f)&&Gp(a)&&d(f)}if(a.deep&&o.length){for(var g=0;g<o.length;g++)m(o[g]);r&&(c=n)}var p=["underline","line-through","overline"];Q(p,(function(n){Ur(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&Hp(u,t.parentNode)===n&&qz(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,t)}))},g=function(e){var t=u.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return f(n)&&(n=n[e?"firstChild":"lastChild"]),Qr(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),u.remove(t,!0),n},p=function(t){var n,r,o=sh(e,t,i,t.collapsed);if(a.split){if(o=xv(o),n=Bz(e,o,!0),r=Bz(e,o),n!==r){if(n=Pz(n,!0),r=Pz(r,!1),Nz(u,n,r)){var c=q.from(n.firstChild).getOr(n);return l(Iz(u,c,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void g(!0)}if(Nz(u,r,n)){c=q.from(r.lastChild).getOr(r);return l(Iz(u,c,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void g(!1)}n=Lz(u,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=Lz(u,r,"span",{id:"_end","data-mce-type":"bookmark"});var s=u.createRng();s.setStartAfter(n),s.setEndBefore(r),lh(u,s,(function(e){Q(e,(function(e){_p(e)||_p(e.parentNode)||l(e)}))})),l(n),l(r),n=g(!0),r=g()}else n=r=l(n);o.startContainer=n.parentNode?n.parentNode:n,o.startOffset=u.nodeIndex(n),o.endContainer=r.parentNode?r.parentNode:r,o.endOffset=u.nodeIndex(r)+1}lh(u,o,(function(e){Q(e,m)}))};if(r){if(Tp(r)){var h=u.createRng();h.setStartBefore(r),h.setEndAfter(r),p(h)}else p(r);ev(e,t,r,n)}else if("false"!==u.getContentEditable(s.getNode()))s.isCollapsed()&&Wp(a)&&!vh(e).length?uz(e,t,n,o):(Th(s,!0,(function(){Sh(e,p)})),Wp(a)&&Vx(e,t,n,s.getStart())&&Ep(u,s,s.getRng()),e.nodeChanged()),ev(e,t,r,n);else{r=s.getNode();for(var v=0;v<i.length;v++)if(i[v].ceFalseOverride&&qz(e,i[v],n,r,r))break;ev(e,t,r,n)}},Xz=gn.each,Yz=function(e,t,n,r){var o=function(t){if(1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType){var n=Hp(e,t.parentNode);e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null)}};t.styles&&(t.styles.color||t.styles.textDecoration)&&(gn.walk(r,o,"childNodes"),o(r))},Jz=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&Cz(r,Tz(e,"fontSize"),Oz(e,"backgroundColor",Bp(t.styles.backgroundColor,n)))},Zz=function(e,t,n,r){!Wp(t)||"sub"!==t.inline&&"sup"!==t.inline||(Cz(r,Tz(e,"fontSize"),Oz(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},Qz=function(e,t,n,r){Xz(t,(function(t){Wp(t)&&Xz(e.dom.select(t.inline,r),(function(r){wz(r)&&qz(e,t,n,r,t.exact?r:null)})),zz(e.dom,t,r)}))},eC=function(e,t,n,r,o){jx(e,o.parentNode,n,r)&&qz(e,t,r,o)||t.merge_with_parents&&e.dom.getParent(o.parentNode,(function(i){if(jx(e,i,n,r))return qz(e,t,r,o),!0}))},tC=gn.each,nC=function(e){return Ur(e)&&!_p(e)&&!ep(e)&&!Kr(e)},rC=function(e,t,n,r){if(sm(e)&&Wp(t)){var o=Ic(e.schema),i=Mx(wn.fromDom(n),(function(e){return ep(e.dom)}));return Re(o,r)&&nc(wn.fromDom(n.parentNode),!1)&&!i}return!1},oC=function(e,t,n,r){var o=e.formatter.get(t),i=o[0],a=!r&&e.selection.isCollapsed(),c=e.dom,u=e.selection,s=function(e,t){if(void 0===t&&(t=i),C(t.onformat)&&t.onformat(e,t,n,r),tC(t.styles,(function(t,r){c.setStyle(e,r,Bp(t,n))})),t.styles){var o=c.getAttrib(e,"style");o&&c.setAttrib(e,"data-mce-style",o)}tC(t.attributes,(function(t,r){c.setAttrib(e,r,Bp(t,n))})),tC(t.classes,(function(t){t=Bp(t,n),c.hasClass(e,t)||c.addClass(e,t)}))},l=function(e,t){var n=!1;return tC(e,(function(e){return!!qp(e)&&(z(e.collapsed)&&e.collapsed!==a?void 0:c.is(t,e.selector)&&!ep(t)?(s(t,e),n=!0,!1):void 0)})),n},f=function(e){if(v(e)){var t=c.create(e);return s(t),t}return null},d=function(r,a,c){var u=[],d=!0,m=i.inline||i.block,g=f(m);lh(r,a,(function(a){var f,p=function(a){var h=!1,v=d,y=a.nodeName.toLowerCase(),b=a.parentNode,w=b.nodeName.toLowerCase();if(Ur(a)&&r.getContentEditable(a)&&(v=d,d="true"===r.getContentEditable(a),h=!0),ro(a)&&!rC(e,i,a,w))return f=null,void(Up(i)&&r.remove(a));if(Up(i)&&i.wrapper&&jx(e,a,t,n))f=null;else{if(d&&!h&&Up(i)&&!i.wrapper&&Dp(e,y)&&Mp(e,w,m)){var k=r.rename(a,m);return s(k),u.push(k),void(f=null)}if(qp(i)){var _=l(o,a);if(!_&&z(b)&&Gp(i)&&(_=l(o,b)),!Wp(i)||_)return void(f=null)}!d||h||!Mp(e,m,y)||!Mp(e,w,m)||!c&&Qr(a)&&ma(a.data)||ep(a)||Wp(i)&&r.isBlock(a)?(f=null,Q(ye(a.childNodes),p),h&&(d=v),f=null):(f||(f=r.clone(g,!1),a.parentNode.insertBefore(f,a),u.push(f)),f.appendChild(a))}};Q(a,p)})),!0===i.links&&Q(u,(function(e){var t=function(e){"A"===e.nodeName&&s(e,i),Q(ye(e.childNodes),t)};t(e)})),Q(u,(function(a){var c=function(e){var t=0;return Q(e.childNodes,(function(e){Np(e)||_p(e)||t++})),t},l=function(e){var t=ae(e.childNodes,nC).filter((function(e){return Hx(r,e,i)}));return t.map((function(t){var n=r.clone(t,!1);return s(n),r.replace(n,e,!0),r.remove(t,!0),n})).getOr(e)},f=c(a);!(u.length>1)&&r.isBlock(a)||0!==f?(Wp(i)||Up(i)&&i.wrapper)&&(i.exact||1!==f||(a=l(a)),Qz(e,o,n,a),eC(e,i,t,n,a),Jz(r,i,n,a),Yz(r,i,n,a),Zz(r,i,n,a),xz(r,i,n,a)):r.remove(a,!0)}))};if("false"!==c.getContentEditable(u.getNode())){if(i){if(r)if(Tp(r)){if(!l(o,r)){var m=c.createRng();m.setStartBefore(r),m.setEndAfter(r),d(c,sh(e,m,o),!0)}}else d(c,r,!0);else if(a&&Wp(i)&&!vh(e).length)cz(e,t,n);else{var g=u.getNode(),p=o[0];e.settings.forced_root_block||!p.defaultBlock||c.getParent(g,c.isBlock)||oC(e,p.defaultBlock),u.setRng(F_(u.getRng())),Th(u,!0,(function(){Sh(e,(function(t,n){var r=n?t:sh(e,t,o);d(c,r,!1)}))})),Ep(c,u,u.getRng()),e.nodeChanged()}yz(t,e)}Qh(e,t,r,n)}else{r=u.getNode();for(var h=0,y=o.length;h<y;h++){var b=o[h];if(b.ceFalseOverride&&qp(b)&&c.is(r,b.selector)){s(r,b);break}}Qh(e,t,r,n)}},iC=function(e){return Me(e,"vars")},aC=function(e,t){e.set({}),t.on("NodeChange",(function(n){lC(t,n.element,e.get())})),t.on("FormatApply FormatRemove",(function(n){var r=q.from(n.node).map((function(e){return Tp(e)?e:e.startContainer})).bind((function(e){return Ur(e)?q.some(e):q.from(e.parentElement)})).getOrThunk((function(){return cC(t)}));lC(t,r,e.get())}))},cC=function(e){return e.selection.getStart()},uC=function(e,t,n,r,o){var i=function(t){var i=e.formatter.matchNode(t,n,null!==o&&void 0!==o?o:{},r);return!_(i)},a=function(t){return!!Lx(e,t,n)||!r&&z(e.formatter.matchNode(t,n,o,!0))};return ie(t,i,a)},sC=function(e,t){var n=null!==t&&void 0!==t?t:cC(e);return ne(Fp(e.dom,n),(function(e){return Ur(e)&&!Kr(e)}))},lC=function(e,t,n){var r=sC(e,t);_e(n,(function(n,o){var i=function(n){var i=uC(e,r,o,n.similar,iC(n)?n.vars:void 0),a=i.isSome();if(n.state.get()!==a){n.state.set(a);var c=i.getOr(t);iC(n)?n.callback(a,{node:c,format:o,parents:r}):Q(n.callbacks,(function(e){return e(a,{node:c,format:o,parents:r})}))}};Q([n.withSimilar,n.withoutSimilar],i),Q(n.withVars,i)}))},fC=function(e,t,n,r,o,i){var a=t.get();Q(n.split(","),(function(t){var n=De(a,t).getOrThunk((function(){var e={withSimilar:{state:Ys(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Ys(!1),similar:!1,callbacks:[]},withVars:[]};return a[t]=e,e})),c=function(){var n=sC(e);return uC(e,n,t,o,i).isSome()};if(_(i)){var u=o?n.withSimilar:n.withoutSimilar;u.callbacks.push(r),1===u.callbacks.length&&u.state.set(c())}else n.withVars.push({state:Ys(c()),similar:o,vars:i,callback:r})})),t.set(a)},dC=function(e,t,n){var r=e.get();Q(t.split(","),(function(e){return De(r,e).each((function(t){r[e]={withSimilar:qe(qe({},t.withSimilar),{callbacks:ne(t.withSimilar.callbacks,(function(e){return e!==n}))}),withoutSimilar:qe(qe({},t.withoutSimilar),{callbacks:ne(t.withoutSimilar.callbacks,(function(e){return e!==n}))}),withVars:ne(t.withVars,(function(e){return e.callback!==n}))}}))})),e.set(r)},mC=function(e,t,n,r,o,i){return null===t.get()&&aC(t,e),fC(e,t,n,r,o,i),{unbind:function(){return dC(t,n,r)}}},gC=function(e,t,n,r){var o=e.formatter.get(t);!Vx(e,t,n,r)||"toggle"in o[0]&&!o[0].toggle?oC(e,t,n,r):Kz(e,t,n,r)},pC=function(e,t){var n=t||document,r=n.createDocumentFragment();return Q(e,(function(e){r.appendChild(e.dom)})),wn.fromDom(r)},hC=function(e,t,n){return{element:e,width:t,rows:n}},vC=function(e,t){return{element:e,cells:t}},yC=function(e,t){return{x:e,y:t}},bC=function(e,t){var n=parseInt(bo(e,t),10);return isNaN(n)?1:n},wC=function(e,t,n,r,o){for(var i=bC(o,"rowspan"),a=bC(o,"colspan"),c=e.rows,u=n;u<n+i;u++){c[u]||(c[u]=vC(Gl(r),[]));for(var s=t;s<t+a;s++){var l=c[u].cells;l[s]=u===n&&s===t?o:$l(o)}}},kC=function(e,t,n){var r=e.rows,o=r[n]?r[n].cells:[];return!!o[t]},_C=function(e,t,n){while(kC(e,t,n))t++;return t},xC=function(e){return oe(e,(function(e,t){return t.cells.length>e?t.cells.length:e}),0)},zC=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(Rn(o[i],t))return q.some(yC(i,r));return q.none()},CC=function(e,t,n,r,o){for(var i=[],a=e.rows,c=n;c<=o;c++){var u=a[c].cells,s=t<r?u.slice(t,r+1):u.slice(r,t+1);i.push(vC(a[c].element,s))}return i},SC=function(e,t,n){var r=t.x,o=t.y,i=n.x,a=n.y,c=o<a?CC(e,r,o,i,a):CC(e,r,a,i,o);return hC(e.element,xC(c),c)},TC=function(e,t){var n=$l(e.element),r=wn.fromTag("tbody");return zr(r,t),kr(n,r),n},OC=function(e){return Z(e.rows,(function(e){var t=Z(e.cells,(function(e){var t=Gl(e);return _o(t,"colspan"),_o(t,"rowspan"),t})),n=$l(e.element);return zr(n,t),n}))},EC=function(e){var t=hC($l(e),0,[]);return Q(Tl(e,"tr"),(function(e,n){Q(Tl(e,"td,th"),(function(r,o){wC(t,_C(t,o,n),n,e,r)}))})),hC(t.element,xC(t.rows),t.rows)},AC=function(e){return TC(e,OC(e))},DC=function(e,t,n){return zC(e,t).bind((function(t){return zC(e,n).map((function(n){return SC(e,t,n)}))}))},MC=function(e){return ae(e,(function(e){return"ul"===Ln(e)||"ol"===Ln(e)}))},RC=function(e,t){return ae(e,(function(e){return"li"===Ln(e)&&xh(e,t)})).fold(A([]),(function(t){return MC(e).map((function(e){var t=wn.fromTag(Ln(e)),n=Oe(Eo(e),(function(e,t){return st(t,"list-style")}));return Co(t,n),[wn.fromTag("li"),t]})).getOr([])}))},NC=function(e,t){var n=oe(t,(function(e,t){return kr(t,e),t}),e);return t.length>0?pC([n]):n},BC=function(e){return ra(e)?Yn(e).filter(na).fold(A([]),(function(t){return[e,t]})):na(e)?[e]:[]},PC=function(e,t){var n=wn.fromDom(t.commonAncestorContainer),r=Bw(n,e),o=ne(r,(function(e){return Qi(e)||Yi(e)})),i=RC(r,t),a=o.concat(i.length?i:BC(n));return Z(a,$l)},LC=function(){return pC([])},IC=function(e,t){return NC(wn.fromDom(t.cloneContents()),PC(e,t))},HC=function(e,t){return Si(t,"table",R(Rn,e))},FC=function(e,t){return HC(e,t[0]).bind((function(e){var n=t[0],r=t[t.length-1],o=EC(e);return DC(o,n,r).map((function(e){return pC([AC(e)])}))})).getOrThunk(LC)},jC=function(e,t){return t.length>0&&t[0].collapsed?LC():IC(e,t[0])},VC=function(e,t){var n=hh(t,e);return n.length>0?FC(e,n):jC(e,t)},UC=function(e){return e.replace(/^[ \f\n\r\t\v]+/,"")},qC=function(e,t){return t>=0&&t<e.length&&Cp(e.charAt(t))},WC=function(e,t){var n=ga(e.innerText);return t?UC(n):n},$C=function(e){return e.map((function(e){return e.nodeName})).getOr("div").toLowerCase()},GC=function(e){return q.from(e.selection.getRng()).map((function(t){var n=q.from(e.dom.getParent(t.commonAncestorContainer,e.dom.isBlock)),r=e.getBody(),o=$C(n),i=en.browser.isIE()&&"pre"!==o,a=e.dom.add(r,o,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),c=WC(a,i),u=ga(a.textContent);if(e.dom.remove(a),qC(u,0)||qC(u,u.length-1)){var s=n.getOr(r),l=WC(s,i),f=l.indexOf(c);if(-1===f)return c;var d=qC(l,f-1),m=qC(l,f+c.length);return(d?" ":"")+c+(m?" ":"")}return c})).getOr("")},KC=function(e,t){var n=e.selection.getRng(),r=e.dom.create("body"),o=e.selection.getSel(),i=zb(e,fh(o)),a=t.contextual?VC(wn.fromDom(e.getBody()),i).dom:n.cloneContents();return a&&r.appendChild(a),e.selection.serializer.serialize(r,t)},XC=function(e,t){return qe(qe({},e),{format:t,get:!0,selection:!0})},YC=function(e,t,n){void 0===n&&(n={});var r=XC(n,t),o=e.fire("BeforeGetContent",r);if(o.isDefaultPrevented())return e.fire("GetContent",o),o.content;if("text"===o.format)return GC(e);o.getInner=!0;var i=KC(e,o);return"tree"===o.format?i:(o.content=e.selection.isCollapsed()?"":i,e.fire("GetContent",o),o.content)},JC=0,ZC=1,QC=2,eS=function(e,t){var n=e.length+t.length+2,r=new Array(n),o=new Array(n),i=function(e,t,n){return{start:e,end:t,diag:n}},a=function(n,r,o,i,c){var s=u(n,r,o,i);if(null===s||s.start===r&&s.diag===r-i||s.end===n&&s.diag===n-o){var l=n,f=o;while(l<r||f<i)l<r&&f<i&&e[l]===t[f]?(c.push([JC,e[l]]),++l,++f):r-n>i-o?(c.push([QC,e[l]]),++l):(c.push([ZC,t[f]]),++f)}else{a(n,s.start,o,s.start-s.diag,c);for(var d=s.start;d<s.end;++d)c.push([JC,e[d]]);a(s.end,r,s.end-s.diag,i,c)}},c=function(n,r,o,a){var c=n;while(c-r<a&&c<o&&e[c]===t[c-r])++c;return i(n,c,r)},u=function(n,i,a,u){var s=i-n,l=u-a;if(0===s||0===l)return null;var f,d,m,g,p,h=s-l,v=l+s,y=(v%2===0?v:v+1)/2;for(r[1+y]=n,o[1+y]=i+1,f=0;f<=y;++f){for(d=-f;d<=f;d+=2){m=d+y,d===-f||d!==f&&r[m-1]<r[m+1]?r[m]=r[m+1]:r[m]=r[m-1]+1,g=r[m],p=g-n+a-d;while(g<i&&p<u&&e[g]===t[p])r[m]=++g,++p;if(h%2!==0&&h-f<=d&&d<=h+f&&o[m-h]<=r[m])return c(o[m-h],d+n-a,i,u)}for(d=h-f;d<=h+f;d+=2){m=d+y-h,d===h-f||d!==h+f&&o[m+1]<=o[m-1]?o[m]=o[m+1]-1:o[m]=o[m-1],g=o[m]-1,p=g-n+a-d;while(g>=n&&p>=a&&e[g]===t[p])o[m]=g--,p--;if(h%2===0&&-f<=d&&d<=f&&o[m]<=r[m+h])return c(o[m],d+n-a,i,u)}}},s=[];return a(0,e.length,0,t.length,s),s},tS=function(e){return Ur(e)?e.outerHTML:Qr(e)?Oc.encodeRaw(e.data,!1):eo(e)?"\x3c!--"+e.data+"--\x3e":""},nS=function(e){var t,n=document.createElement("div"),r=document.createDocumentFragment();e&&(n.innerHTML=e);while(t=n.firstChild)r.appendChild(t);return r},rS=function(e,t,n){var r=nS(t);if(e.hasChildNodes()&&n<e.childNodes.length){var o=e.childNodes[n];o.parentNode.insertBefore(r,o)}else e.appendChild(r)},oS=function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}},iS=function(e,t){var n=0;Q(e,(function(e){e[0]===JC?n++:e[0]===ZC?(rS(t,e[1],n),n++):e[0]===QC&&oS(t,n)}))},aS=function(e){return ne(Z(ye(e.childNodes),tS),(function(e){return e.length>0}))},cS=function(e,t){var n=Z(ye(t.childNodes),tS);return iS(eS(n,e),t),t},uS=Ge((function(){return document.implementation.createHTMLDocument("undo")})),sS=function(e){return-1!==e.indexOf("</iframe>")},lS=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},fS=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},dS=function(e){var t=aS(e.getBody()),n=se(t,(function(t){var n=Xb(e.serializer,t);return n.length>0?[n]:[]})),r=n.join("");return sS(r)?lS(n):fS(r)},mS=function(e,t,n){var r=n?t.beforeBookmark:t.bookmark;"fragmented"===t.type?cS(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw",no_selection:!z(r)||!ap(r)||!r.isFakeCaret}),e.selection.moveToBookmark(r)},gS=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},pS=function(e){var t=wn.fromTag("body",uS());return ql(t,gS(e)),Q(Tl(t,"*[data-mce-bogus]"),Tr),Ul(t)},hS=function(e,t){return gS(e)===gS(t)},vS=function(e,t){return pS(e)===pS(t)},yS=function(e,t){return!(!e||!t)&&(!!hS(e,t)||vS(e,t))},bS=function(e){return 0===e.get()},wS=function(e,t,n){bS(n)&&(e.typing=t)},kS=function(e,t){e.typing&&(wS(e,!1,t),e.add())},_S=function(e){e.typing&&(e.typing=!1,e.add())},xS=function(e,t,n){bS(t)&&n.set(gd(e.selection))},zS=function(e,t,n,r,o,i,a){var c=dS(e);if(i=i||{},i=gn.extend(i,c),!1===bS(r)||e.removed)return null;var u=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:i,lastLevel:u,originalEvent:a}).isDefaultPrevented())return null;if(u&&yS(u,i))return null;t.data[n.get()]&&o.get().each((function(e){t.data[n.get()].beforeBookmark=e}));var s=bm(e);if(s&&t.data.length>s){for(var l=0;l<t.data.length-1;l++)t.data[l]=t.data[l+1];t.data.length--,n.set(t.data.length)}i.bookmark=gd(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(i),n.set(t.data.length-1);var f={level:i,lastLevel:u,originalEvent:a};return n.get()>0?(e.setDirty(!0),e.fire("AddUndo",f),e.fire("change",f)):e.fire("AddUndo",f),i},CS=function(e,t,n){t.data=[],n.set(0),t.typing=!1,e.fire("ClearUndos")},SS=function(e,t,n,r,o){if(t.transact(r)){var i=t.data[n.get()].bookmark,a=t.data[n.get()-1];mS(e,a,!0),t.transact(o)&&(t.data[n.get()-1].beforeBookmark=i)}},TS=function(e,t,n){var r;return t.get()<n.length-1&&(t.set(t.get()+1),r=n[t.get()],mS(e,r,!1),e.setDirty(!0),e.fire("Redo",{level:r})),r},OS=function(e,t,n,r){var o;return t.typing&&(t.add(),t.typing=!1,wS(t,!1,n)),r.get()>0&&(r.set(r.get()-1),o=t.data[r.get()],mS(e,o,!0),e.setDirty(!0),e.fire("Undo",{level:o})),o},ES=function(e){e.clear(),e.add()},AS=function(e,t,n){return n.get()>0||t.typing&&t.data[0]&&!yS(dS(e),t.data[0])},DS=function(e,t){return t.get()<e.data.length-1&&!e.typing},MS=function(e,t,n){return kS(e,t),e.beforeChange(),e.ignore(n),e.add()},RS=function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},NS=function(e,t){var n=e.dom,r=z(t)?t:e.getBody();_(e.hasVisual)&&(e.hasVisual=Sm(e)),Q(n.select("table,a",r),(function(t){switch(t.nodeName){case"TABLE":var r=Tm(e),o=n.getAttrib(t,"border");o&&"0"!==o||!e.hasVisual?n.removeClass(t,r):n.addClass(t,r);break;case"A":if(!n.getAttrib(t,"href")){var i=n.getAttrib(t,"name")||t.id,a=Om(e);i&&e.hasVisual?n.addClass(t,a):n.removeClass(t,a)}break}})),e.fire("VisualAid",{element:t,hasVisual:e.hasVisual})},BS=function(e){return{undoManager:{beforeChange:function(t,n){return xS(e,t,n)},add:function(t,n,r,o,i,a){return zS(e,t,n,r,o,i,a)},undo:function(t,n,r){return OS(e,t,n,r)},redo:function(t,n){return TS(e,t,n)},clear:function(t,n){return CS(e,t,n)},reset:function(e){return ES(e)},hasUndo:function(t,n){return AS(e,t,n)},hasRedo:function(e,t){return DS(e,t)},transact:function(e,t,n){return MS(e,t,n)},ignore:function(e,t){return RS(e,t)},extra:function(t,n,r,o){return SS(e,t,n,r,o)}},formatter:{match:function(t,n,r,o){return Vx(e,t,n,r,o)},matchAll:function(t,n){return Ux(e,t,n)},matchNode:function(t,n,r,o){return jx(e,t,n,r,o)},canApply:function(t){return Wx(e,t)},closest:function(t){return qx(e,t)},apply:function(t,n,r){return oC(e,t,n,r)},remove:function(t,n,r,o){return Kz(e,t,n,r,o)},toggle:function(t,n,r){return gC(e,t,n,r)},formatChanged:function(t,n,r,o,i){return mC(e,t,n,r,o,i)}},editor:{getContent:function(t,n){return ew(e,t,n)},setContent:function(t,n){return Dx(e,t,n)},insertContent:function(t,n){return wx(e,t,n)},addVisual:function(t){return NS(e,t)}},selection:{getContent:function(t,n){return YC(e,t,n)}},raw:{getModel:function(){return q.none()}}}},PS=function(e){var t=function(e){return y(e)?e:{}},n=e.undoManager,r=e.formatter,o=e.editor,i=e.selection,a=e.raw;return{undoManager:{beforeChange:n.beforeChange,add:n.add,undo:n.undo,redo:n.redo,clear:n.clear,reset:n.reset,hasUndo:n.hasUndo,hasRedo:n.hasRedo,transact:function(e,t,r){return n.transact(r)},ignore:function(e,t){return n.ignore(t)},extra:function(e,t,r,o){return n.extra(r,o)}},formatter:{match:function(e,n,o,i){return r.match(e,t(n),i)},matchAll:r.matchAll,matchNode:r.matchNode,canApply:function(e){return r.canApply(e)},closest:function(e){return r.closest(e)},apply:function(e,n,o){return r.apply(e,t(n))},remove:function(e,n,o,i){return r.remove(e,t(n))},toggle:function(e,n,o){return r.toggle(e,t(n))},formatChanged:function(e,t,n,o,i){return r.formatChanged(t,n,o,i)}},editor:{getContent:function(e,t){return o.getContent(e)},setContent:function(e,t){return o.setContent(e,t)},insertContent:function(e,t){return o.insertContent(e)},addVisual:o.addVisual},selection:{getContent:function(e,t){return i.getContent(t)}},raw:{getModel:function(){return q.some(a.getRawModel())}}}},LS=function(){var e=A(null),t=A("");return{undoManager:{beforeChange:T,add:e,undo:e,redo:e,clear:T,reset:T,hasUndo:I,hasRedo:I,transact:e,ignore:T,extra:T},formatter:{match:I,matchAll:A([]),matchNode:A(void 0),canApply:I,closest:t,apply:T,remove:T,toggle:T,formatChanged:A({unbind:T})},editor:{getContent:t,setContent:t,insertContent:T,addVisual:T},selection:{getContent:t},raw:{getModel:A(q.none())}}},IS=function(e){return Me(e.plugins,"rtc")},HS=function(e){return De(e.plugins,"rtc").bind((function(e){return q.from(e.setup)}))},FS=function(e){var t=e;return HS(e).fold((function(){return t.rtcInstance=BS(e),q.none()}),(function(e){return t.rtcInstance=LS(),q.some((function(){return e().then((function(e){return t.rtcInstance=PS(e),e.rtc.isRemote}))}))}))},jS=function(e){return e.rtcInstance?e.rtcInstance:BS(e)},VS=function(e){var t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")},US=function(e,t,n){VS(e).undoManager.beforeChange(t,n)},qS=function(e,t,n,r,o,i,a){return VS(e).undoManager.add(t,n,r,o,i,a)},WS=function(e,t,n,r){return VS(e).undoManager.undo(t,n,r)},$S=function(e,t,n){return VS(e).undoManager.redo(t,n)},GS=function(e,t,n){VS(e).undoManager.clear(t,n)},KS=function(e,t){VS(e).undoManager.reset(t)},XS=function(e,t,n){return VS(e).undoManager.hasUndo(t,n)},YS=function(e,t,n){return VS(e).undoManager.hasRedo(t,n)},JS=function(e,t,n,r){return VS(e).undoManager.transact(t,n,r)},ZS=function(e,t,n){VS(e).undoManager.ignore(t,n)},QS=function(e,t,n,r,o){VS(e).undoManager.extra(t,n,r,o)},eT=function(e,t,n,r,o){return VS(e).formatter.match(t,n,r,o)},tT=function(e,t,n){return VS(e).formatter.matchAll(t,n)},nT=function(e,t,n,r,o){return VS(e).formatter.matchNode(t,n,r,o)},rT=function(e,t){return VS(e).formatter.canApply(t)},oT=function(e,t){return VS(e).formatter.closest(t)},iT=function(e,t,n,r){VS(e).formatter.apply(t,n,r)},aT=function(e,t,n,r,o){VS(e).formatter.remove(t,n,r,o)},cT=function(e,t,n,r){VS(e).formatter.toggle(t,n,r)},uT=function(e,t,n,r,o,i){return VS(e).formatter.formatChanged(t,n,r,o,i)},sT=function(e,t,n){return jS(e).editor.getContent(t,n)},lT=function(e,t,n){return jS(e).editor.setContent(t,n)},fT=function(e,t,n){return jS(e).editor.insertContent(t,n)},dT=function(e,t,n){return VS(e).selection.getContent(t,n)},mT=function(e,t){return VS(e).editor.addVisual(t)},gT=function(e,t){void 0===t&&(t={});var n=t.format?t.format:"html";return dT(e,n,t)},pT=function(e){return 0===e.dom.length?(Sr(e),q.none()):q.some(e)},hT=function(e,t){return e.filter((function(e){return Ih.isBookmarkNode(e.dom)})).bind(t?er:Qn)},vT=function(e,t,n,r){var o=e.dom,i=t.dom,a=r?o.length:i.length;r?(_k(o,i,!1,!r),n.setStart(i,a)):(_k(i,o,!1,!r),n.setEnd(i,a))},yT=function(e,t){Yn(e).each((function(n){var r=e.dom;t&&ak(n,Rf(r,0))?wk(r,0):!t&&uk(n,Rf(r,r.length))&&kk(r,r.length)}))},bT=function(e,t,n,r){e.bind((function(e){var o=r?kk:wk;return o(e.dom,r?e.dom.length:0),t.filter(Vn).map((function(t){return vT(e,t,n,r)}))})).orThunk((function(){var e=hT(t,r).or(t).filter(Vn);return e.map((function(e){return yT(e,r)}))}))},wT=function(e,t){var n=q.from(t.firstChild).map(wn.fromDom),r=q.from(t.lastChild).map(wn.fromDom);e.deleteContents(),e.insertNode(t);var o=n.bind(Qn).filter(Vn).bind(pT),i=r.bind(er).filter(Vn).bind(pT);bT(o,n,e,!0),bT(i,r,e,!1),e.collapse(!1)},kT=function(e,t){return qe(qe({format:"html"},e),{set:!0,selection:!0,content:t})},_T=function(e,t){if("raw"!==t.format){var n=e.selection.getRng(),r=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),o=r?{context:r.nodeName.toLowerCase()}:{},i=e.parser.parse(t.content,qe(qe({isRootContent:!0,forced_root_block:!1},o),t));return iw({validate:e.validate},e.schema).serialize(i)}return t.content},xT=function(e,t,n){void 0===n&&(n={});var r=kT(n,t),o=r;if(!r.no_events){var i=e.fire("BeforeSetContent",r);if(i.isDefaultPrevented())return void e.fire("SetContent",i);o=i}o.content=_T(e,o);var a=e.selection.getRng();wT(a,a.createContextualFragment(o.content)),e.selection.setRng(a),ny(e,a),o.no_events||e.fire("SetContent",o)},zT=function(e,t,n){if(e&&Me(e,t)){var r=ne(e[t],(function(e){return e!==n}));0===r.length?delete e[t]:e[t]=r}};function CT(e,t){var n,r,o=function(t,n){return ae(n,(function(n){return e.is(n,t)}))},i=function(t){return e.getParents(t,null,e.getRoot())};return{selectorChangedWithUnbind:function(e,a){return n||(n={},r={},t.on("NodeChange",(function(e){var t=e.element,a=i(t),c={};gn.each(n,(function(e,t){o(t,a).each((function(n){r[t]||(Q(e,(function(e){e(!0,{node:n,selector:t,parents:a})})),r[t]=e),c[t]=e}))})),gn.each(r,(function(e,n){c[n]||(delete r[n],gn.each(e,(function(e){e(!1,{node:t,selector:n,parents:a})})))}))}))),n[e]||(n[e]=[]),n[e].push(a),o(e,i(t.selection.getStart())).each((function(){r[e]=n[e]})),{unbind:function(){zT(n,e,a),zT(r,e,a)}}}}}var ST=function(e){return!!e.select},TT=function(e){return!(!e||!e.ownerDocument)&&Pn(wn.fromDom(e.ownerDocument),wn.fromDom(e))},OT=function(e){return!!e&&(!!ST(e)||TT(e.startContainer)&&TT(e.endContainer))},ET=function(e,t,n,r){var o,i,a=CT(e,r).selectorChangedWithUnbind,c=function(t,n){var o=e.createRng();z(t)&&z(n)?(o.setStart(t,n),o.setEnd(t,n),b(o),h(!1)):(zh(e,o,r.getBody(),!0),b(o))},u=function(e){return gT(r,e)},s=function(e,t){return xT(r,e,t)},l=function(e){return yb(r.getBody(),y(),e)},f=function(e){return bb(r.getBody(),y(),e)},d=function(e,t){return R.getBookmark(e,t)},m=function(e){return R.moveToBookmark(e)},g=function(t,n){return xb(e,t,n).each(b),t},p=function(){var e=y(),t=v();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},h=function(e){var t=y();t.collapse(!!e),b(t)},v=function(){return t.getSelection?t.getSelection():t.document.selection},y=function(){var n,a,c,u=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}},s=t.document;if(void 0!==r.bookmark&&!1===db(r)){var l=Hy(r);if(l.isSome())return l.map((function(e){return zb(r,[e])[0]})).getOr(s.createRange())}try{(n=v())&&!Vr(n.anchorNode)&&(a=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():s.createRange(),a=zb(r,[a])[0])}catch(f){}return a||(a=s.createRange?s.createRange():s.body.createTextRange()),a.setStart&&9===a.startContainer.nodeType&&a.collapsed&&(c=e.getRoot(),a.setStart(c,0),a.setEnd(c,0)),o&&i&&(0===u(a.START_TO_START,a,o)&&0===u(a.END_TO_END,a,o)?a=i:(o=null,i=null)),a},b=function(e,t){var n;if(OT(e)){var a=ST(e)?e:null;if(a){i=null;try{a.select()}catch(s){}}else{var c=v(),u=r.fire("SetSelectionRange",{range:e,forward:t});if(e=u.range,c){i=e;try{c.removeAllRanges(),c.addRange(e)}catch(s){}!1===t&&c.extend&&(c.collapse(e.endContainer,e.endOffset),c.extend(e.startContainer,e.startOffset)),o=c.rangeCount>0?c.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!c.setBaseAndExtent||en.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(n=e.startContainer.childNodes[e.startOffset],n&&"IMG"===n.tagName&&(c.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),c.anchorNode===e.startContainer&&c.focusNode===e.endContainer||c.setBaseAndExtent(n,0,n,1))),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},w=function(t){return s(e.getOuterHTML(t)),t},k=function(){return kb(r.getBody(),y())},_=function(t,n){return _b(e,y(),t,n)},x=function(){var t=v(),n=null===t||void 0===t?void 0:t.anchorNode,r=null===t||void 0===t?void 0:t.focusNode;if(!t||!n||!r||Vr(n)||Vr(r))return!0;var o=e.createRng();o.setStart(n,t.anchorOffset),o.collapse(!0);var i=e.createRng();return i.setStart(r,t.focusOffset),i.collapse(!0),o.compareBoundaryPoints(o.START_TO_START,i)<=0},C=function(){var t=y(),n=v();if(!mh(n)&&Ch(r)){var o=kv(e,t);return o.each((function(e){b(e,x())})),o.getOr(t)}return t},S=function(e,t){return a(e,t),M},T=function(){var t,n=e.getRoot();while(n&&"BODY"!==n.nodeName){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},O=function(e,t){z(e)?ty(r,e,t):ny(r,y(),t)},E=function(e,t){return b(uv(e,t,r.getDoc()))},A=function(){var e=y();return e.collapsed?Rf.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},D=function(){t=o=i=null,N.destroy()},M={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:h,setCursorLocation:c,getContent:u,setContent:s,getBookmark:d,moveToBookmark:m,select:g,isCollapsed:p,isForward:x,setNode:w,getNode:k,getSel:v,setRng:b,getRng:y,getStart:l,getEnd:f,getSelectedBlocks:_,normalize:C,selectorChanged:S,selectorChangedWithUnbind:a,getScrollContainer:T,scrollIntoView:O,placeCaretAt:E,getBoundingClientRect:A,destroy:D},R=Ih(M),N=rv(M,r);return M.bookmarkManager=R,M.controlSelection=N,M},AT=function(e,t){Q(t,(function(t){e.attr(t,null)}))},DT=function(e,t,n){e.addNodeFilter("font",(function(e){Q(e,(function(e){var r=t.parse(e.attr("style")),o=e.attr("color"),i=e.attr("face"),a=e.attr("size");o&&(r.color=o),i&&(r["font-family"]=i),a&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),AT(e,["color","face","size"])}))}))},MT=function(e,t){e.addNodeFilter("strike",(function(e){Q(e,(function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))}))}))},RT=function(e,t){var n=Uc();t.convert_fonts_to_spans&&DT(e,n,gn.explode(t.font_size_legacy_values)),MT(e,n)},NT=function(e,t){t.inline_styles&&RT(e,t)},BT=function(e){return new Ei((function(t,n){var r=function(){n("Cannot convert "+e+" to Blob. Resource might not exist or is inaccessible.")};try{var o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){200===o.status?t(o.response):r()},o.onerror=r,o.send()}catch(i){r()}}))},PT=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},LT=function(e,t){var n;try{n=atob(t)}catch(vj){return q.none()}for(var r=new Uint8Array(n.length),o=0;o<r.length;o++)r[o]=n.charCodeAt(o);return q.some(new Blob([r],{type:e}))},IT=function(e){return new Ei((function(t){var n=PT(e),r=n.type,o=n.data;LT(r,o).fold((function(){return t(new Blob([]))}),t)}))},HT=function(e){return 0===e.indexOf("blob:")?BT(e):0===e.indexOf("data:")?IT(e):null},FT=function(e){return new Ei((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},jT=0,VT=function(e){return(e||"blobid")+jT++},UT=function(e,t,n,r){var o,i;if(0===t.src.indexOf("blob:"))return i=e.getByUri(t.src),void(i?n({image:t,blobInfo:i}):HT(t.src).then((function(r){FT(r).then((function(a){o=PT(a).data,i=e.create(VT(),r,o),e.add(i),n({image:t,blobInfo:i})}))}),(function(e){r(e)})));var a=PT(t.src),c=a.data,u=a.type;o=c,i=e.getByData(o,u),i?n({image:t,blobInfo:i}):HT(t.src).then((function(r){i=e.create(VT(),r,o),e.add(i),n({image:t,blobInfo:i})}),(function(e){r(e)}))},qT=function(e){return e?ye(e.getElementsByTagName("img")):[]},WT=function(e,t){var n={},r=function(r,o){o||(o=H);var i=ne(qT(r),(function(t){var n=t.src;return!!en.fileApi&&(!t.hasAttribute("data-mce-bogus")&&(!t.hasAttribute("data-mce-placeholder")&&(!(!n||n===en.transparentSrc)&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&o(t):0===n.indexOf("data:")&&o(t)))))})),a=Z(i,(function(e){if(void 0!==n[e.src])return new Ei((function(t){n[e.src].then((function(n){if("string"===typeof n)return n;t({image:e,blobInfo:n.blobInfo})}))}));var r=new Ei((function(n,r){UT(t,e,n,r)})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=r,r}));return Ei.all(a)};return{findAll:r}},$T=function(e,t,n,r){var o=e.padd_empty_with_br||t.insert;o&&n[r.name]?r.empty().append(new Eb("br",1)).shortEnded=!0:r.empty().append(new Eb("#text",3)).value=sa},GT=function(e){return KT(e,"#text")&&e.firstChild.value===sa},KT=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},XT=function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty},YT=function(e,t,n,r){return r.isEmpty(t,n,(function(t){return XT(e,t)}))},JT=function(e,t){return e&&(Me(t,e.name)||"br"===e.name)},ZT=function(e){return z(e.attr("data-mce-bogus"))},QT=function(e){return e.attr("src")===en.transparentSrc||z(e.attr("data-mce-placeholder"))},eO=function(e,t){if(t.images_dataimg_filter){var n=new Image;return n.src=e.attr("src"),_e(e.attributes.map,(function(e,t){n.setAttribute(t,e)})),t.images_dataimg_filter(n)}return!0},tO=function(e,t){var n=t.blob_cache,r=function(e){var r=e.attr("src");QT(e)||ZT(e)||Mb(r).filter((function(){return eO(e,t)})).bind((function(e){var t=e.type,r=e.data;return q.from(n.getByData(r,t)).orThunk((function(){return LT(t,r).map((function(e){var t=n.create(VT(),e,r);return n.add(t),t}))}))})).each((function(t){e.attr("src",t.blobUri())}))};n&&e.addAttributeFilter("src",(function(e){return Q(e,r)}))},nO=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,r,o){var i,a,c,u,s,l,f,d,m=e.length,g=gn.extend({},n.getBlockElements()),p=n.getNonEmptyElements(),h=n.getWhiteSpaceElements();for(g.body=1,i=0;i<m;i++)if(a=e[i],c=a.parent,g[a.parent.name]&&a===c.lastChild){s=a.prev;while(s){if(l=s.name,"span"!==l||"bookmark"!==s.attr("data-mce-type")){"br"===l&&(a=null);break}s=s.prev}a&&(a.remove(),YT(n,p,h,c)&&(f=n.getElementRule(c.name),f&&(f.removeEmpty?c.remove():f.paddEmpty&&$T(t,o,g,c))))}else{u=a;while(c&&c.firstChild===u&&c.lastChild===u){if(u=c,g[c.name])break;c=c.parent}u===c&&!0!==t.padd_empty_with_br&&(d=new Eb("#text",3),d.value=sa,a.replace(d))}})),e.addAttributeFilter("href",(function(e){var n=e.length,r=function(e){var t=e.split(" ").filter((function(e){return e.length>0}));return t.concat(["noopener"]).sort().join(" ")},o=function(e){var t=e?gn.trim(e):"";return/\b(noopener)\b/g.test(t)?t:r(t)};if(!t.allow_unsafe_link_target)while(n--){var i=e[n];"a"===i.name&&"_blank"===i.attr("target")&&i.attr("rel",o(i.attr("rel")))}})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){var t,n,r,o,i=e.length;while(i--)if(o=e[i],"a"===o.name&&o.firstChild&&!o.attr("href")){r=o.parent,t=o.lastChild;do{n=t.prev,r.insert(t,o),t=n}while(t)}})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){var t,n,r=e.length;while(r--)if(t=e[r],n=t.parent,"ul"===n.name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var o=new Eb("li",1);o.attr("style","list-style-type: none"),t.wrap(o)}})),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",(function(e){var t=n.getValidClasses(),r=e.length;while(r--){for(var o=e[r],i=o.attr("class").split(" "),a="",c=0;c<i.length;c++){var u=i[c],s=!1,l=t["*"];l&&l[u]&&(s=!0),l=t[o.name],!s&&l&&l[u]&&(s=!0),s&&(a&&(a+=" "),a+=u)}a.length||(a=null),o.attr("class",a)}})),tO(e,t)},rO=gn.makeMap,oO=gn.each,iO=gn.explode,aO=gn.extend,cO=function(e,t){void 0===t&&(t=jc());var n={},r=[],o={},i={};e=e||{},e.validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var a=function(e){for(var n=rO("tr,td,th,tbody,thead,tfoot,table"),r=t.getNonEmptyElements(),o=t.getWhiteSpaceElements(),i=t.getTextBlockElements(),a=t.getSpecialElements(),u=function(e,n){if(void 0===n&&(n=e.parent),a[e.name])e.empty().remove();else{for(var r=e.children(),o=0,i=r;o<i.length;o++){var c=i[o];t.isValidChild(n.name,c.name)||u(c,n)}e.unwrap()}},s=0;s<e.length;s++){var l=e[s],f=void 0,d=void 0,m=void 0;if(l.parent&&!l.fixed)if(i[l.name]&&"li"===l.parent.name){var g=l.next;while(g){if(!i[g.name])break;g.name="li",g.fixed=!0,l.parent.insert(g,l.parent),g=g.next}l.unwrap()}else{var p=[l];for(f=l.parent;f&&!t.isValidChild(f.name,l.name)&&!n[f.name];f=f.parent)p.push(f);if(f&&p.length>1)if(t.isValidChild(f.name,l.name)){p.reverse(),d=c(p[0].clone());for(var h=d,v=0;v<p.length-1;v++){t.isValidChild(h.name,p[v].name)?(m=c(p[v].clone()),h.append(m)):m=h;for(var y=p[v].firstChild;y&&y!==p[v+1];){var b=y.next;m.append(y),y=b}h=m}YT(t,r,o,d)?f.insert(l,p[0],!0):(f.insert(d,p[0],!0),f.insert(l,d)),f=p[0],(YT(t,r,o,f)||KT(f,"br"))&&f.empty().remove()}else u(l);else if(l.parent){if("li"===l.name){g=l.prev;if(g&&("ul"===g.name||"ol"===g.name)){g.append(l);continue}if(g=l.next,g&&("ul"===g.name||"ol"===g.name)){g.insert(l,g.firstChild,!0);continue}l.wrap(c(new Eb("ul",1)));continue}t.isValidChild(l.parent.name,"div")&&t.isValidChild("div",l.name)?l.wrap(c(new Eb("div",1))):u(l)}}}},c=function(e){var t=e.name;if(t in n){var a=o[t];a?a.push(e):o[t]=[e]}var c=r.length;while(c--){var u=r[c].name;if(u in e.attributes.map){a=i[u];a?a.push(e):i[u]=[e]}}return e},u=function(e,t){oO(iO(e),(function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)}))},s=function(){var e=[];for(var t in n)Me(n,t)&&e.push({name:t,callbacks:n[t]});return e},l=function(e,t){oO(iO(e),(function(e){var n;for(n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})}))},f=function(){return[].concat(r)},d=function(c,u){var s,l,f,d,m,g,p,h,v=[],y=function(e){return!1===e?"":!0===e?"p":e};u=u||{},o={},i={};var b=aO(rO("script,style,head,html,body,title,meta,param"),t.getBlockElements()),w=Ic(t),k=t.getNonEmptyElements(),_=t.children,x=e.validate,C="forced_root_block"in u?u.forced_root_block:e.forced_root_block,S=y(C),T=t.getWhiteSpaceElements(),O=/^[ \t\r\n]+/,E=/[ \t\r\n]+$/,A=/[ \t\r\n]+/g,D=/^[ \t\r\n]+$/,M=Me(T,u.context)||Me(T,e.root_name),R=function(){var n=H.firstChild,r=null,o=function(e){e&&(n=e.firstChild,n&&3===n.type&&(n.value=n.value.replace(O,"")),n=e.lastChild,n&&3===n.type&&(n.value=n.value.replace(E,"")))};if(t.isValidChild(H.name,S.toLowerCase())){while(n){var i=n.next;3===n.type||1===n.type&&"p"!==n.name&&!b[n.name]&&!n.attr("data-mce-type")?(r||(r=N(S,1),r.attr(e.forced_root_block_attrs),H.insert(r,n)),r.append(n)):(o(r),r=null),n=i}o(r)}},N=function(e,t){var r,i=new Eb(e,t);return e in n&&(r=o[e],r?r.push(i):o[e]=[i]),i},B=function(e){for(var n=t.getBlockElements(),r=e.prev;r&&3===r.type;){var o=r.value.replace(E,"");if(o.length>0)return void(r.value=o);var i=r.next;if(i){if(3===i.type&&i.value.length){r=r.prev;continue}if(!n[i.name]&&"script"!==i.name&&"style"!==i.name){r=r.prev;continue}}var a=r.prev;r.remove(),r=a}},P=function(e){var t={};for(var n in e)"li"!==n&&"p"!==n&&(t[n]=e[n]);return t},L=function(e){var n=e;while(z(n)){if(n.name in w)return YT(t,k,T,n);n=n.parent}return!1},I=Gb({validate:x,document:e.document,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,preserve_cdata:e.preserve_cdata,self_closing_elements:P(t.getSelfClosingElements()),cdata:function(e){h.append(N("#cdata",4)).value=e},text:function(e,t){var n;M||(e=e.replace(A," "),JT(h.lastChild,b)&&(e=e.replace(O,""))),0!==e.length&&(n=N("#text",3),n.raw=!!t,h.append(n).value=e)},comment:function(e){h.append(N("#comment",8)).value=e},pi:function(e,t){h.append(N(e,7)).value=t,B(h)},doctype:function(e){var t=h.append(N("#doctype",10));t.value=e,B(h)},start:function(e,n,o){var a=x?t.getElementRule(e):{};if(a){var c=N(a.outputName||e,1);c.attributes=n,c.shortEnded=o,h.append(c);var u=_[h.name];u&&_[c.name]&&!u[c.name]&&v.push(c);var s=r.length;while(s--){var l=r[s].name;l in n.map&&(g=i[l],g?g.push(c):i[l]=[c])}b[e]&&B(c),o||(h=c),!M&&T[e]&&(M=!0)}},end:function(n){var r,o,i,a=x?t.getElementRule(n):{};if(a){if(b[n]&&!M){if(r=h.firstChild,r&&3===r.type)if(o=r.value.replace(O,""),o.length>0)r.value=o,r=r.next;else{i=r.next,r.remove(),r=i;while(r&&3===r.type)o=r.value,i=r.next,(0===o.length||D.test(o))&&(r.remove(),r=i),r=i}if(r=h.lastChild,r&&3===r.type)if(o=r.value.replace(E,""),o.length>0)r.value=o,r=r.prev;else{i=r.prev,r.remove(),r=i;while(r&&3===r.type)o=r.value,i=r.prev,(0===o.length||D.test(o))&&(r.remove(),r=i),r=i}}M&&T[n]&&(M=!1);var c=YT(t,k,T,h),s=h.parent;a.paddInEmptyBlock&&c&&L(h)?$T(e,u,b,h):a.removeEmpty&&c?b[h.name]?h.empty().remove():h.unwrap():a.paddEmpty&&(GT(h)||c)&&$T(e,u,b,h),h=s}}},t),H=h=new Eb(u.context||e.root_name,11);if(I.parse(c,u.format),x&&v.length&&(u.context?u.invalid=!0:a(v)),S&&("body"===H.name||u.isRootContent)&&R(),!u.invalid){for(p in o)if(Me(o,p)){g=n[p],s=o[p],d=s.length;while(d--)s[d].parent||s.splice(d,1);for(l=0,f=g.length;l<f;l++)g[l](s,p,u)}for(l=0,f=r.length;l<f;l++)if(g=r[l],g.name in i){s=i[g.name],d=s.length;while(d--)s[d].parent||s.splice(d,1);for(d=0,m=g.callbacks.length;d<m;d++)g.callbacks[d](s,g.name,u)}}return H},m={schema:t,addAttributeFilter:l,getAttributeFilters:f,addNodeFilter:u,getNodeFilters:s,filterNode:c,parse:d};return nO(m,e),NT(m,e),m},uO=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",(function(e,t){var n=e.length;while(n--){var r=e[n];r.attr("tabindex",r.attr("data-mce-tabindex")),r.attr(t,null)}})),e.addAttributeFilter("src,href,style",(function(e,r){var o="data-mce-"+r,i=t.url_converter,a=t.url_converter_scope,c=e.length;while(c--){var u=e[c],s=u.attr(o);void 0!==s?(u.attr(r,s.length>0?s:null),u.attr(o,null)):(s=u.attr(r),"style"===r?s=n.serializeStyle(n.parseStyle(s),u.name):i&&(s=i.call(a,s,r,u.name)),u.attr(r,s.length>0?s:null))}})),e.addAttributeFilter("class",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("class");r&&(r=n.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),n.attr("class",r.length>0?r:null))}})),e.addAttributeFilter("data-mce-type",(function(e,t,n){var r=e.length;while(r--){var o=e[r];if("bookmark"===o.attr("data-mce-type")&&!n.cleanup){var i=q.from(o.firstChild).exists((function(e){return!ma(e.value)}));i?o.unwrap():o.remove()}}})),e.addNodeFilter("noscript",(function(e){var t=e.length;while(t--){var n=e[t].firstChild;n&&(n.value=Oc.decode(n.value))}})),e.addNodeFilter("script,style",(function(e,n){var r=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")},o=e.length;while(o--){var i=e[o],a=i.firstChild?i.firstChild.value:"";if("script"===n){var c=i.attr("type");c&&i.attr("type","mce-no/type"===c?null:c.replace(/^mce\-/,"")),"xhtml"===t.element_format&&a.length>0&&(i.firstChild.value="// <![CDATA[\n"+r(a)+"\n// ]]>")}else"xhtml"===t.element_format&&a.length>0&&(i.firstChild.value="\x3c!--\n"+r(a)+"\n--\x3e")}})),e.addNodeFilter("#comment",(function(e){var r=e.length;while(r--){var o=e[r];t.preserve_cdata&&0===o.value.indexOf("[CDATA[")?(o.name="#cdata",o.type=4,o.value=n.decode(o.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===o.value.indexOf("mce:protected ")&&(o.name="#text",o.type=3,o.raw=!0,o.value=unescape(o.value).substr(14))}})),e.addNodeFilter("xml:namespace,input",(function(e,t){var n=e.length;while(n--){var r=e[n];7===r.type?r.remove():1===r.type&&("input"!==t||r.attr("type")||r.attr("type","text"))}})),e.addAttributeFilter("data-mce-type",(function(t){Q(t,(function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())}))})),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)}))},sO=function(e){var t=function(e){return e&&"br"===e.name},n=e.lastChild;if(t(n)){var r=n.prev;t(r)&&(n.remove(),r.remove())}},lO=function(e,t,n){var r,o=e.dom,i=t.cloneNode(!0),a=document.implementation;if(a.createHTMLDocument){var c=a.createHTMLDocument("");gn.each("BODY"===i.nodeName?i.childNodes:[i],(function(e){c.body.appendChild(c.importNode(e,!0))})),i="BODY"!==i.nodeName?c.body.firstChild:c.body,r=o.doc,o.doc=c}return jh(e,qe(qe({},n),{node:i})),r&&(o.doc=r),i},fO=function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events},dO=function(e,t,n){return fO(e,n)?lO(e,t,n):t},mO=function(e,t,n){-1===gn.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)})),t.push(n))},gO=function(e,t,n){if(!t.no_events&&e){var r=Vh(e,qe(qe({},t),{content:n}));return r.content}return n},pO=function(e,t,n){var r=ga(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||aa(wn.fromDom(t))?r:gn.trim(r)},hO=function(e,t,n){var r=n.selection?qe({forced_root_block:!1},n):n,o=e.parse(t,r);return sO(o),o},vO=function(e,t,n){var r=iw(e,t);return r.serialize(n)},yO=function(e,t,n,r,o){var i=vO(t,n,r);return gO(e,o,i)},bO=function(e,t){var n=["data-mce-selected"],r=t&&t.dom?t.dom:js.DOM,o=t&&t.schema?t.schema:jc(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs;var i=cO(e,o);uO(i,e,r);var a=function(n,a){void 0===a&&(a={});var c=qe({format:"html"},a),u=dO(t,n,c),s=pO(r,u,c),l=hO(i,s,c);return"tree"===c.format?l:yO(t,e,o,l,c)};return{schema:o,addNodeFilter:i.addNodeFilter,addAttributeFilter:i.addAttributeFilter,serialize:a,addRules:o.addValidElements,setRules:o.setValidElements,addTempAttr:R(mO,i,n),getTempAttrs:A(n),getNodeFilters:i.getNodeFilters,getAttributeFilters:i.getAttributeFilters}},wO=function(e,t){var n=bO(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}},kO="html",_O=function(e,t){void 0===t&&(t={});var n=t.format?t.format:kO;return sT(e,t,n)},xO=function(e,t,n){return void 0===n&&(n={}),lT(e,t,n)},zO=js.DOM,CO=function(e){zO.setStyle(e.id,"display",e.orgDisplay)},SO=function(e){return q.from(e).each((function(e){return e.destroy()}))},TO=function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)},OO=function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),zO.unbind(t,"submit reset",e.formEventDelegate))},EO=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&zO.remove(o.nextSibling),Uh(e),e.editorManager.remove(e),!e.inline&&r&&CO(e),qh(e),zO.remove(e.getContainer()),SO(t),SO(n),e.destroy()}},AO=function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),SO(n),SO(r)),OO(e),TO(e),e.destroyed=!0):e.remove())},DO=function(e,t){var n=y(e)&&y(t);return n?RO(e,t):t},MO=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<t.length;o++){var i=t[o];for(var a in i)Me(i,a)&&(r[a]=e(r[a],i[a]))}return r}},RO=MO(DO),NO="autoresize_on_init,content_editable_state,convert_fonts_to_spans,inline_styles,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),BO="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),PO="imagetools,toc".split(","),LO=function(e){var t=ne(NO,(function(t){return Me(e,t)})),n=e.forced_root_block;return!1!==n&&""!==n||t.push("forced_root_block (false only)"),ge(t)},IO=function(e){var t=gn.makeMap(e.plugins," "),n=function(e){return Me(t,e)},r=$e($e([],ne(BO,n),!0),se(PO,(function(e){return n(e)?[e+" (moving to premium)"]:[]})),!0);return ge(r)},HO=function(e,t){var n=LO(e),r=IO(t),o=r.length>0,i=n.length>0,a="mobile"===t.theme;if(o||i||a){var c="\n- ",u=a?"\n\nThemes:"+c+"mobile":"",s=o?"\n\nPlugins:"+c+r.join(c):"",l=i?"\n\nSettings:"+c+n.join(c):"";console.warn("The following deprecated features are currently enabled, these will be removed in TinyMCE 6.0. See https://www.tiny.cloud/docs/release-notes/6.0-upcoming-changes/ for more information."+u+s+l)}},FO=function(e,t){return{sections:A(e),settings:A(t)}},jO=Wt().deviceType,VO=jO.isTouch(),UO=jO.isPhone(),qO=jO.isTablet(),WO=["lists","autolink","autosave"],$O={table_grid:!1,object_resizing:!1,resize:!1},GO=function(e){var t=b(e)?e.join(" "):e,n=Z(v(t)?t.split(" "):[],ft);return ne(n,(function(e){return e.length>0}))},KO=function(e){return ne(e,R(Y,WO))},XO=function(e,t){var n=Te(t,(function(t,n){return Y(e,n)}));return FO(n.t,n.f)},YO=function(e,t,n){void 0===n&&(n={});var r=e.sections(),o=De(r,t).getOr({});return gn.extend({},n,o)},JO=function(e,t){return Me(e.sections(),t)},ZO=function(e,t,n){var r=e.sections();return JO(e,t)&&r[t].theme===n},QO=function(e,t){return JO(e,t)?e.sections()[t]:{}},eE=function(e,t){return De(e,"toolbar_mode").orThunk((function(){return De(e,"toolbar_drawer").map((function(e){return!1===e?"wrap":e}))})).getOr(t)},tE=function(e,t,n,r,o){var i={id:t,theme:"silver",toolbar_mode:eE(e,"floating"),plugins:"",document_base_url:n,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:o.convertURL,url_converter_scope:o};return qe(qe({},i),r?$O:{})},nE=function(e,t){var n={resize:!1,toolbar_mode:eE(e,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return qe(qe(qe({},$O),n),t?r:{})},rE=function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?gn.extend({},e.external_plugins,n):n},oE=function(e,t){return[].concat(GO(e)).concat(GO(t))},iE=function(e,t,n,r){return e&&ZO(t,"mobile","mobile")?KO(r):e&&JO(t,"mobile")?r:n},aE=function(e,t,n,r){var o=GO(n.forced_plugins),i=GO(r.plugins),a=QO(t,"mobile"),c=a.plugins?GO(a.plugins):i,u=iE(e,t,i,c),s=oE(o,u);if(en.browser.isIE()&&Y(s,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return gn.extend(r,{plugins:s.join(" ")})},cE=function(e,t){return e&&JO(t,"mobile")},uE=function(e,t,n,r,o){var i=e?{mobile:nE(o.mobile||{},t)}:{},a=XO(["mobile"],RO(i,o)),c=gn.extend(n,r,a.settings(),cE(e,a)?YO(a,"mobile"):{},{validate:!0,external_plugins:rE(r,a.settings())});return aE(e,a,r,c)},sE=function(e,t,n,r,o){var i=tE(o,t,n,VO,e),a=uE(UO||qO,UO,i,r,o);return!1!==a.deprecation_warnings&&HO(o,a),a},lE=function(e,t,n){return q.from(t.settings[n]).filter(e)},fE=function(e){var t={};return"string"===typeof e?Q(e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(","),(function(e){var n=e.split("=");n.length>1?t[gn.trim(n[0])]=gn.trim(n[1]):t[gn.trim(n[0])]=gn.trim(n[0])})):t=e,t},dE=function(e){return function(t){return b(t)&&le(t,e)}},mE=function(e,t,n,r){var o=t in e.settings?e.settings[t]:n;return"hash"===r?fE(o):"string"===r?lE(v,e,t).getOr(n):"number"===r?lE(S,e,t).getOr(n):"boolean"===r?lE(k,e,t).getOr(n):"object"===r?lE(y,e,t).getOr(n):"array"===r?lE(b,e,t).getOr(n):"string[]"===r?lE(dE(v),e,t).getOr(n):"function"===r?lE(C,e,t).getOr(n):o},gE=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return e[t]?e[t]:{icons:{}}},r=function(t){return Me(e,t)};return{add:t,get:n,has:r}},pE=gE(),hE=function(e,t){var n=t.dom;return n[e]},vE=function(e,t){return parseInt(So(t,e),10)},yE=R(hE,"clientWidth"),bE=R(hE,"clientHeight"),wE=R(vE,"margin-top"),kE=R(vE,"margin-left"),_E=function(e){return e.dom.getBoundingClientRect()},xE=function(e,t,n){var r=yE(e),o=bE(e);return t>=0&&n>=0&&t<=r&&n<=o},zE=function(e,t,n,r){var o=_E(t),i=e?o.left+t.dom.clientLeft+kE(t):0,a=e?o.top+t.dom.clientTop+wE(t):0,c=n-i,u=r-a;return{x:c,y:u}},CE=function(e,t,n){var r=wn.fromDom(e.getBody()),o=e.inline?r:Kn(r),i=zE(e.inline,o,t,n);return xE(o,i.x,i.y)},SE=function(e){return q.from(e).map(wn.fromDom)},TE=function(e){var t=e.inline?e.getBody():e.getContentAreaContainer();return SE(t).map(Or).getOr(!1)},OE=function(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}},EE=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():OE()},r=function(){return q.from(t[0])},o=function(e,t){return e.type===t.type&&e.text===t.text&&!e.progressBar&&!e.timeout&&!t.progressBar&&!t.timeout},i=function(){t.length>0&&n().reposition(t)},a=function(e){t.push(e)},c=function(e){ce(t,(function(t){return t===e})).each((function(e){t.splice(e,1)}))},u=function(u,s){if(void 0===s&&(s=!0),!e.removed&&TE(e))return s&&e.fire("BeforeOpenNotification",{notification:u}),ae(t,(function(e){return o(n().getArgs(e),u)})).getOrThunk((function(){e.editorManager.setActive(e);var t=n().open(u,(function(){c(t),i(),r().fold((function(){return e.focus()}),(function(e){return oy(wn.fromDom(e.getEl()))}))}));return a(t),i(),e.fire("OpenNotification",{notification:qe({},t)}),t}))},s=function(){r().each((function(e){n().close(e),c(e),i()}))},l=A(t),f=function(e){e.on("SkinLoaded",(function(){var t=rm(e);t&&u({text:t,type:"warning",timeout:0},!1),i()})),e.on("show ResizeEditor ResizeWindow NodeChange",(function(){Pi.requestAnimationFrame(i)})),e.on("remove",(function(){Q(t.slice(),(function(e){n().close(e)}))}))};return f(e),{open:u,close:s,getNotifications:l}},AE=ll.PluginManager,DE=ll.ThemeManager;function ME(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}var RE=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():ME()},r=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t?t.apply(e,n):void 0}},o=function(t){e.fire("OpenWindow",{dialog:t})},i=function(t){e.fire("CloseWindow",{dialog:t})},a=function(e){t.push(e),o(e)},c=function(n){i(n),t=ne(t,(function(e){return e!==n})),0===t.length&&e.focus()},u=function(){return q.from(t[t.length-1])},s=function(t){e.editorManager.setActive(e),Ly(e);var n=t();return a(n),n},l=function(e,t){return s((function(){return n().open(e,t,c)}))},f=function(e){return s((function(){return n().openUrl(e,c)}))},d=function(e,t,o){var i=n();i.alert(e,r(o||i,t))},m=function(e,t,o){var i=n();i.confirm(e,r(o||i,t))},g=function(){u().each((function(e){n().close(e),c(e)}))};return e.on("remove",(function(){Q(t,(function(e){n().close(e)}))})),{open:l,openUrl:f,alert:d,confirm:m,close:g}},NE=function(e,t){e.notificationManager.open({type:"error",text:t})},BE=function(e,t){e._skinLoaded?NE(e,t):e.on("SkinLoaded",(function(){NE(e,t)}))},PE=function(e,t){BE(e,sl.translate(["Failed to upload image: {0}",t]))},LE=function(e,t,n){Zh(e,t,{message:n}),console.error(n)},IE=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},HE=function(e,t,n){LE(e,"PluginLoadError",IE("plugin",t,n))},FE=function(e,t,n){LE(e,"IconsLoadError",IE("icons",t,n))},jE=function(e,t,n){LE(e,"LanguageLoadError",IE("language",t,n))},VE=function(e,t,n){var r=sl.translate(["Failed to initialize plugin: {0}",t]);Zh(e,"PluginLoadError",{message:r}),UE(r,n),BE(e,r)},UE=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=window.console;r&&(r.error?r.error.apply(r,$e([e],t,!1)):r.log.apply(r,$e([e],t,!1)))},qE=function(e){return/^[a-z0-9\-]+$/i.test(e)},WE=function(e){return GE(e,Xd(e))},$E=function(e){return GE(e,Yd(e))},GE=function(e,t){var n=e.editorManager.baseURL+"/skins/content",r=e.editorManager.suffix,o="content"+r+".css",i=!0===e.inline;return Z(t,(function(t){return qE(t)&&!i?n+"/"+t+"/"+o:e.documentBaseURI.toAbsolute(t)}))},KE=function(e){e.contentCSS=e.contentCSS.concat(WE(e),$E(e))},XE=function(){var e=1,t=2,n={},r=function(e,t){return{status:e,resultUri:t}},o=function(e){return e in n},i=function(e){var t=n[e];return t?t.resultUri:null},a=function(t){return!!o(t)&&n[t].status===e},c=function(e){return!!o(e)&&n[e].status===t},u=function(t){n[t]=r(e,null)},s=function(e,o){n[e]=r(t,o)},l=function(e){delete n[e]},f=function(){n={}};return{hasBlobUri:o,getResultUri:i,isPending:a,isUploaded:c,markPending:u,markUploaded:s,removeFailed:l,destroy:f}},YE=0,JE=function(){var e=function(){return Math.round(4294967295*Math.random()).toString(36)},t=(new Date).getTime();return"s"+t.toString(36)+e()+e()+e()},ZE=function(e){return e+YE+++JE()},QE=function(){var e=[],t=function(e){var t={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};return t[e.toLowerCase()]||"dat"},n=function(e,t,n,o,i){if(v(e)){var a=e;return r({id:a,name:o,filename:i,blob:t,base64:n})}if(y(e))return r(e);throw new Error("Unknown input type")},r=function(e){if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var n=e.id||ZE("blobid"),r=e.name||n,o=e.blob;return{id:A(n),name:A(r),filename:A(e.filename||r+"."+t(o.type)),blob:A(o),base64:A(e.base64),blobUri:A(e.blobUri||URL.createObjectURL(o)),uri:A(e.uri)}},o=function(t){a(t.id())||e.push(t)},i=function(t){return ae(e,t).getOrUndefined()},a=function(e){return i((function(t){return t.id()===e}))},c=function(e){return i((function(t){return t.blobUri()===e}))},u=function(e,t){return i((function(n){return n.base64()===e&&n.blob().type===t}))},s=function(t){e=ne(e,(function(e){return e.blobUri()!==t||(URL.revokeObjectURL(e.blobUri()),!1)}))},l=function(){Q(e,(function(e){URL.revokeObjectURL(e.blobUri())})),e=[]};return{create:n,add:o,get:a,getByUri:c,getByData:u,findFirst:i,removeByUri:s,destroy:l}},eA=function(e,t){var n={},r=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},o=function(e,n,o,i){var a=new XMLHttpRequest;a.open("POST",t.url),a.withCredentials=t.credentials,a.upload.onprogress=function(e){i(e.loaded/e.total*100)},a.onerror=function(){o("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){if(a.status<200||a.status>=300)o("HTTP Error: "+a.status);else{var e=JSON.parse(a.responseText);e&&"string"===typeof e.location?n(r(t.basePath,e.location)):o("Invalid JSON: "+a.responseText)}};var c=new FormData;c.append("file",e.blob(),e.filename()),a.send(c)},i=function(){return new Ei((function(e){e([])}))},a=function(e,t){return{url:t,blobInfo:e,status:!0}},c=function(e,t,n){return{url:"",blobInfo:e,status:!1,error:{message:t,options:n}}},u=function(e,t){gn.each(n[e],(function(e){e(t)})),delete n[e]},s=function(t,n,r){return e.markPending(t.blobUri()),new Ei((function(o){var i,s;try{var l=function(){i&&(i.close(),s=T)},f=function(n){l(),e.markUploaded(t.blobUri(),n),u(t.blobUri(),a(t,n)),o(a(t,n))},d=function(n,r){var i=r||{};l(),e.removeFailed(t.blobUri()),u(t.blobUri(),c(t,n,i)),o(c(t,n,i))};s=function(e){e<0||e>100||q.from(i).orThunk((function(){return q.from(r).map(P)})).each((function(t){i=t,t.progressBar.value(e)}))},n(t,f,d,s)}catch(m){o(c(t,m.message,{}))}}))},l=function(e){return e===o},f=function(e){var t=e.blobUri();return new Ei((function(e){n[t]=n[t]||[],n[t].push(e)}))},d=function(n,r){return n=gn.grep(n,(function(t){return!e.isUploaded(t.blobUri())})),Ei.all(gn.map(n,(function(n){return e.isPending(n.blobUri())?f(n):s(n,t.handler,r)})))},m=function(e,n){return!t.url&&l(t.handler)?i():d(e,n)};return!1===C(t.handler)&&(t.handler=o),{upload:m}},tA=function(e){return function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}},nA=function(e,t){return eA(t,{url:Hd(e),basePath:Fd(e),credentials:jd(e),handler:Vd(e)})},rA=function(e){var t=XE(),n=nA(e,t);return{upload:function(t,r){return void 0===r&&(r=!0),n.upload(t,r?tA(e):void 0)}}},oA=function(e){var t=Ys(null);e.on("change AddUndo",(function(e){t.set(qe({},e.level))}));var n=function(){var n=e.undoManager.data;ve(n).filter((function(e){return!yS(t.get(),e)})).each((function(t){e.setDirty(!0),e.fire("change",{level:t,lastLevel:pe(n,n.length-2).getOrNull()})}))};return{fireIfChanged:n}},iA=function(e){var t,n,r=QE(),o=XE(),i=[],a=oA(e),c=function(t){return function(n){return e.selection?t(n):[]}},u=function(e){return e+(-1===e.indexOf("?")?"?":"&")+(new Date).getTime()},s=function(e,t,n){var r=0;do{r=e.indexOf(t,r),-1!==r&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1)}while(-1!==r);return e},l=function(e,t,n){var r='src="'+n+'"'+(n===en.transparentSrc?' data-mce-placeholder="1"':"");return e=s(e,'src="'+t+'"',r),e=s(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"'),e},f=function(t,n){Q(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=Z(e.fragments,(function(e){return l(e,t,n)})):e.content=l(e.content,t,n)}))},d=function(t,n){var r=e.convertURL(n,"src");f(t.src,n),e.$(t).attr({src:Bd(e)?u(n):n,"data-mce-src":r})},m=function(n){return t||(t=nA(e,o)),v().then(c((function(o){var i=Z(o,(function(e){return e.blobInfo}));return t.upload(i,tA(e)).then(c((function(t){var i=[],c=Z(t,(function(t,n){var a=o[n].blobInfo,c=o[n].image;return t.status&&Pd(e)?(r.removeByUri(c.src),IS(e)||d(c,t.url)):t.error&&(t.error.options.remove&&(f(c.getAttribute("src"),en.transparentSrc),i.push(c)),PE(e,t.error.message)),{element:c,status:t.status,uploadUri:t.url,blobInfo:a}}));return c.length>0&&a.fireIfChanged(),i.length>0&&(IS(e)?console.error("Removing images on failed uploads is currently unsupported for RTC"):e.undoManager.transact((function(){Q(i,(function(t){e.dom.remove(t),r.removeByUri(t.src)}))}))),n&&n(c),c})))})))},g=function(t){if(Nd(e))return m(t)},p=function(t){if(!1===le(i,(function(e){return e(t)})))return!1;if(0===t.getAttribute("src").indexOf("data:")){var n=Rd(e);return n(t)}return!0},h=function(e){i.push(e)},v=function(){return n||(n=WT(o,r)),n.findAll(e.getBody(),p).then(c((function(t){return t=ne(t,(function(t){return"string"!==typeof t||(BE(e,t),!1)})),IS(e)||Q(t,(function(e){f(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))},y=function(){r.destroy(),o.destroy(),n=t=null},b=function(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var i=o.getResultUri(n);if(i)return'src="'+i+'"';var a=r.getByUri(n);if(a||(a=oe(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null)),a){var c=a.blob();return'src="data:'+c.type+";base64,"+a.base64()+'"'}return t}))};return e.on("SetContent",(function(){Nd(e)?g():v()})),e.on("RawSaveContent",(function(e){e.content=b(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||"tree"===e.format||(e.content=b(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){Q(e,(function(e){var t=e.attr("src");if(!r.getByUri(t)){var n=o.getResultUri(t);n&&e.attr("src",n)}}))}))})),{blobCache:r,addFilter:h,uploadImages:m,uploadImagesAuto:g,scanForImages:v,destroy:y}},aA=function(e){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(e,t,n){return Ur(e)&&e.hasAttribute("href")},onformat:function(t,n,r){gn.each(r,(function(n,r){e.setAttrib(t,r,n)}))}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.customValue)&&void 0!==t?t:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return gn.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),(function(e){t[e]={block:e,remove:"all"}})),t},cA=function(e){var t={},n=function(e){return z(e)?t[e]:t},r=function(e){return Me(t,e)},o=function(e,n){e&&(v(e)?(b(n)||(n=[n]),Q(n,(function(e){_(e.deep)&&(e.deep=!qp(e)),_(e.split)&&(e.split=!qp(e)||Wp(e)),_(e.remove)&&qp(e)&&!Wp(e)&&(e.remove="none"),qp(e)&&Wp(e)&&(e.mixed=!0,e.block_expand=!0),v(e.classes)&&(e.classes=e.classes.split(/\s+/))})),t[e]=n):_e(e,(function(e,t){o(t,e)})))},i=function(e){return e&&t[e]&&delete t[e],t};return o(aA(e.dom)),o(cm(e)),{get:n,has:r,register:o,unregister:i}},uA=gn.each,sA=js.DOM,lA=function(e,t){var n,r,o,i=t&&t.schema||jc({}),a=function(e,t){t.classes.length&&sA.addClass(e,t.classes.join(" ")),sA.setAttribs(e,t.attrs)},c=function(e){r="string"===typeof e?{name:e,classes:[],attrs:{}}:e;var t=sA.create(r.name);return a(t,r),t},u=function(e,t){var n="string"!==typeof e?e.nodeName.toLowerCase():e,r=i.getElementRule(n),o=r&&r.parentsRequired;return!(!o||!o.length)&&(t&&-1!==gn.inArray(o,t)?t:o[0])},s=function(e,t,n){var r,o,i=t.length>0&&t[0],a=i&&i.name,l=u(e,a);if(l)a===l?(o=t[0],t=t.slice(1)):o=l;else if(i)o=t[0],t=t.slice(1);else if(!n)return e;return o&&(r=c(o),r.appendChild(e)),n&&(r||(r=sA.create("div"),r.appendChild(e)),gn.each(n,(function(t){var n=c(t);r.insertBefore(n,e)}))),s(r,t,o&&o.siblings)};return e&&e.length?(r=e[0],n=c(r),o=sA.create("div"),o.appendChild(s(n,e.slice(1),r.siblings)),o):""},fA=function(e){var t,n={classes:[],attrs:{}};return e=n.selector=gn.trim(e),"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,r,o,i){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==gn.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r);break}if("["===o){var a=i.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""}))),n.name=t||"div",n},dA=function(e){return e&&"string"===typeof e?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),gn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=gn.map(e.split(/(?:~\+|~|\+)/),fA),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[]},mA=function(e,t){var n,r,o,i="",a=um(e);if(""===a)return"";var c=function(e){return e.replace(/%(\w+)/g,"")};if("string"===typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}if("preview"in t){var u=De(t,"preview");if(so(u,!1))return"";a=u.getOr(a)}n=t.block||t.inline||"span";var s=dA(t.selector);s.length?(s[0].name||(s[0].name=n),n=t.selector,r=lA(s,e)):r=lA([n],e);var l=sA.select(n,r)[0]||r.firstChild;return uA(t.styles,(function(e,t){var n=c(e);n&&sA.setStyle(l,t,n)})),uA(t.attributes,(function(e,t){var n=c(e);n&&sA.setAttrib(l,t,n)})),uA(t.classes,(function(e){var t=c(e);sA.hasClass(l,t)||sA.addClass(l,t)})),e.fire("PreviewFormats"),sA.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),o=sA.getStyle(e.getBody(),"fontSize",!0),o=/px$/.test(o)?parseInt(o,10):0,uA(a.split(" "),(function(t){var n=sA.getStyle(l,t,!0);if(("background-color"!==t||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)||(n=sA.getStyle(e.getBody(),t,!0),"#ffffff"!==sA.toHex(n).toLowerCase()))&&("color"!==t||"#000000"!==sA.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===o)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*o+"px"}"border"===t&&n&&(i+="padding:0 2px;"),i+=t+":"+n+";"}})),e.fire("AfterPreviewFormats"),sA.remove(r),i},gA=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},pA=function(e){var t=cA(e),n=Ys(null);return gA(e),lz(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:function(t,n,r){iT(e,t,n,r)},remove:function(t,n,r,o){aT(e,t,n,r,o)},toggle:function(t,n,r){cT(e,t,n,r)},match:function(t,n,r,o){return eT(e,t,n,r,o)},closest:function(t){return oT(e,t)},matchAll:function(t,n){return tT(e,t,n)},matchNode:function(t,n,r,o){return nT(e,t,n,r,o)},canApply:function(t){return rT(e,t)},formatChanged:function(t,r,o,i){return uT(e,n,t,r,o,i)},getCssText:R(mA,e)}},hA=function(e){switch(e.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return!0;default:return!1}},vA=function(e,t,n){var r=Ys(!1),o=function(e){wS(t,!1,n),t.add({},e)};e.on("init",(function(){t.add()})),e.on("BeforeExecCommand",(function(e){var r=e.command;hA(r)||(kS(t,n),t.beforeChange())})),e.on("ExecCommand",(function(e){var t=e.command;hA(t)||o(e)})),e.on("ObjectResizeStart cut",(function(){t.beforeChange()})),e.on("SaveContent ObjectResized blur",o),e.on("dragend",o),e.on("keyup",(function(n){var i=n.keyCode;n.isDefaultPrevented()||((i>=33&&i<=36||i>=37&&i<=40||45===i||n.ctrlKey)&&(o(),e.nodeChanged()),46!==i&&8!==i||e.nodeChanged(),r.get()&&t.typing&&!1===yS(dS(e),t.data[0])&&(!1===e.isDirty()&&(e.setDirty(!0),e.fire("change",{level:t.data[0],lastLevel:null})),e.fire("TypingUndo"),r.set(!1),e.nodeChanged()))})),e.on("keydown",(function(e){var i=e.keyCode;if(!e.isDefaultPrevented())if(i>=33&&i<=36||i>=37&&i<=40||45===i)t.typing&&o(e);else{var a=e.ctrlKey&&!e.altKey||e.metaKey;!(i<16||i>20)||224===i||91===i||t.typing||a||(t.beforeChange(),wS(t,!0,n),t.add({},e),r.set(!0))}})),e.on("mousedown",(function(e){t.typing&&o(e)}));var i=function(e){return"insertReplacementText"===e.inputType},a=function(e){return"insertText"===e.inputType&&null===e.data},c=function(e){return"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType};e.on("input",(function(e){e.inputType&&(i(e)||a(e)||c(e))&&o(e)})),e.on("AddUndo Undo Redo ClearUndos",(function(t){t.isDefaultPrevented()||e.nodeChanged()}))},yA=function(e){e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},bA=function(e){var t=dl(),n=Ys(0),r=Ys(0),o={data:[],typing:!1,beforeChange:function(){US(e,n,t)},add:function(i,a){return qS(e,o,r,n,t,i,a)},undo:function(){return WS(e,o,n,r)},redo:function(){return $S(e,r,o.data)},clear:function(){GS(e,o,r)},reset:function(){KS(e,o)},hasUndo:function(){return XS(e,o,r)},hasRedo:function(){return YS(e,o,r)},transact:function(t){return JS(e,o,n,t)},ignore:function(t){ZS(e,n,t)},extra:function(t,n){QS(e,o,r,t,n)}};return IS(e)||vA(e,o,n),yA(e),o},wA=[9,27,tv.HOME,tv.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,tv.DOWN,tv.UP,tv.LEFT,tv.RIGHT].concat(en.browser.isFirefox()?[224]:[]),kA="data-mce-placeholder",_A=function(e){return"keydown"===e.type||"keyup"===e.type},xA=function(e){var t=e.keyCode;return t===tv.BACKSPACE||t===tv.DELETE},zA=function(e){if(_A(e)){var t=e.keyCode;return!xA(e)&&(tv.metaKeyPressed(e)||e.altKey||t>=112&&t<=123||Y(wA,t))}return!1},CA=function(e){return _A(e)&&!(xA(e)||"keyup"===e.type&&229===e.keyCode)},SA=function(e,t,n){if(nc(wn.fromDom(t),!1)){var r=""===n,o=t.firstElementChild;return!o||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&(r?!e.isBlock(o):n===o.nodeName.toLowerCase())}return!1},TA=function(e){var t=e.dom,n=Cd(e),r=tm(e),o=function(i,a){if(!zA(i)){var c=e.getBody(),u=!CA(i)&&SA(t,c,n),s=""!==t.getAttrib(c,kA);(s!==u||a)&&(t.setAttrib(c,kA,u?r:null),t.setAttrib(c,"aria-placeholder",u?r:null),Jh(e,u),e.on(u?"keydown":"keyup",o),e.off(u?"keyup":"keydown",o))}};r&&e.on("init",(function(t){o(t,!0),e.on("change SetContent ExecCommand",o),e.on("paste",(function(t){return Pi.setEditorTimeout(e,(function(){return o(t)}))}))}))},OA=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,EA=function(e){return OA.test(e)},AA=function(e,t){return En(wn.fromDom(t),Zd(e))},DA=function(e){return"rtl"===js.DOM.getStyle(e,"direction",!0)||EA(e.textContent)},MA=function(e,t,n){return ne(js.DOM.getParents(n.container(),"*",t),e)},RA=function(e,t,n){var r=MA(e,t,n);return q.from(r[r.length-1])},NA=function(e,t,n){var r=lg(t,e),o=lg(n,e);return r&&r===o},BA=function(e){return _a(e)||xa(e)},PA=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?ya(n)?Qr(n.nextSibling)?Rf(n.nextSibling,0):Rf.after(n):_a(t)?Rf(n,r+1):t:ya(n)?Qr(n.previousSibling)?Rf(n.previousSibling,n.previousSibling.data.length):Rf.before(n):xa(t)?Rf(n,r-1):t},LA=R(PA,!0),IA=R(PA,!1),HA=function(e){return function(t){return Rn(e,wn.fromDom(t.dom.parentNode))}},FA=function(e){return ta(e)||ra(e)},jA=function(e,t){return Pn(e,t)?xi(t,FA,HA(e)):q.none()},VA=function(e){var t=e.getBody(),n=t.firstChild&&e.dom.isBlock(t.firstChild)?t.firstChild:t;e.selection.setCursorLocation(n,0)},UA=function(e){e.dom.isEmpty(e.getBody())&&(e.setContent(""),VA(e))},qA=function(e,t,n){return fo(Jg(n),Zg(n),(function(r,o){var i=PA(!0,r),a=PA(!1,o),c=PA(!1,t);return e?Xg(n,c).exists((function(e){return e.isEqual(a)&&t.isEqual(i)})):Yg(n,c).exists((function(e){return e.isEqual(i)&&t.isEqual(a)}))})).getOr(!0)},WA=function(e,t){return{block:e,position:t}},$A=function(e,t){return{from:e,to:t}},GA=function(e,t){var n=wn.fromDom(e),r=wn.fromDom(t.container());return jA(n,r).map((function(e){return WA(e,t)}))},KA=function(e){return!1===Rn(e.from.block,e.to.block)},XA=function(e){return Yn(e.from.block).bind((function(t){return Yn(e.to.block).filter((function(e){return Rn(t,e)}))})).isSome()},YA=function(e){return!1===ao(e.from.block.dom)&&!1===ao(e.to.block.dom)},JA=function(e,t,n){return ro(n.position.getNode())&&!1===nc(n.block)?Kg(!1,n.block.dom).bind((function(r){return r.isEqual(n.position)?Wg(t,e,r).bind((function(t){return GA(e,t)})):q.some(n)})).getOr(n):n},ZA=function(e,t,n){var r=GA(e,Rf.fromRangeStart(n)),o=r.bind((function(n){return Wg(t,e,n.position).bind((function(n){return GA(e,n).map((function(n){return JA(e,t,n)}))}))}));return fo(r,o,$A).filter((function(e){return KA(e)&&XA(e)&&YA(e)}))},QA=function(e,t,n){return n.collapsed?ZA(e,t,n):q.none()},eD=function(e){var t=rr(e);return ce(t,Ji).fold(A(t),(function(e){return t.slice(0,e)}))},tD=function(e){var t=eD(e);return Q(t,Sr),t},nD=function(e,t){var n=Bw(t,e);return ae(n.reverse(),(function(e){return nc(e)})).each(Sr)},rD=function(e){return 0===ne(tr(e),(function(e){return!nc(e)})).length},oD=function(e,t,n,r){if(nc(n))return Aw(n),Jg(n.dom);rD(r)&&nc(t)&&yr(r,wn.fromTag("br"));var o=Yg(n.dom,Rf.before(r.dom));return Q(tD(t),(function(e){yr(r,e)})),nD(e,t),o},iD=function(e,t,n){if(nc(n))return Sr(n),nc(t)&&Aw(t),Jg(t.dom);var r=Zg(n.dom);return Q(tD(t),(function(e){kr(n,e)})),nD(e,t),r},aD=function(e,t){var n=Bw(t,e);return q.from(n[n.length-1])},cD=function(e,t){return Pn(t,e)?aD(t,e):q.none()},uD=function(e,t){Kg(e,t.dom).map((function(e){return e.getNode()})).map(wn.fromDom).filter(ea).each(Sr)},sD=function(e,t,n){return uD(!0,t),uD(!1,n),cD(t,n).fold(R(iD,e,t,n),R(oD,e,t,n))},lD=function(e,t,n,r){return t?sD(e,r,n):sD(e,n,r)},fD=function(e,t){var n=wn.fromDom(e.getBody()),r=QA(n.dom,t,e.selection.getRng()).bind((function(e){return lD(n,t,e.from.block,e.to.block)}));return r.each((function(t){e.selection.setRng(t.toRange())})),r.isSome()},dD=function(e,t){var n=t.getRng();return fo(jA(e,wn.fromDom(n.startContainer)),jA(e,wn.fromDom(n.endContainer)),(function(r,o){return!1===Rn(r,o)&&(n.deleteContents(),lD(e,!0,r,o).each((function(e){t.setRng(e.toRange())})),!0)})).getOr(!1)},mD=function(e,t){var n=wn.fromDom(t),r=R(Rn,e);return _i(n,ia,r).isSome()},gD=function(e,t){return mD(e,t.startContainer)||mD(e,t.endContainer)},pD=function(e,t){var n=Yg(e.dom,Rf.fromRangeStart(t)).isNone(),r=Xg(e.dom,Rf.fromRangeEnd(t)).isNone();return!gD(e,t)&&n&&r},hD=function(e){return e.setContent(""),e.selection.setCursorLocation(),!0},vD=function(e){var t=wn.fromDom(e.getBody()),n=e.selection.getRng();return pD(t,n)?hD(e):dD(t,e.selection)},yD=function(e,t){return!e.selection.isCollapsed()&&vD(e)},bD=io,wD=ao,kD=function(e,t,n,r,o){return q.from(t._selectionOverrides.showCaret(e,n,r,o))},_D=function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t},xD=function(e,t){var n=e.fire("BeforeObjectSelected",{target:t});return n.isDefaultPrevented()?q.none():q.some(_D(t))},zD=function(e,t,n){var r=yg(1,e.getBody(),t),o=Rf.fromRangeStart(r),i=o.getNode();if(Jm(i))return kD(1,e,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(Jm(a))return kD(1,e,a,!1,!1);var c=e.dom.getParent(o.getNode(),(function(e){return wD(e)||bD(e)}));return Jm(c)?kD(1,e,c,!1,n):q.none()},CD=function(e,t,n){return t.collapsed?zD(e,t,n).getOr(t):t},SD=function(e){return Sw(e)||_w(e)},TD=function(e){return Tw(e)||xw(e)},OD=function(e,t){Qr(t)&&0===t.data.length&&e.remove(t)},ED=function(e,t,n,r,o,i){return kD(r,e,i.getNode(!o),o,!0).each((function(n){if(t.collapsed){var r=t.cloneRange();o?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()}else t.deleteContents();e.selection.setRng(n)})),OD(e.dom,n),!0},AD=function(e,t){var n=e.selection.getRng();if(!Qr(n.commonAncestorContainer))return!1;var r=t?Nf.Forwards:Nf.Backwards,o=Lg(e.getBody()),i=R(xg,t?o.next:o.prev),a=t?SD:TD,c=wg(r,e.getBody(),n),u=PA(t,i(c));if(!u||!zg(c,u))return!1;if(a(u))return ED(e,n,c.getNode(),r,t,u);var s=i(u);return!!(s&&a(s)&&zg(u,s))&&ED(e,n,c.getNode(),r,t,s)},DD=function(e,t){return AD(e,t)},MD=function(e){return ia(wn.fromDom(e))||ra(wn.fromDom(e))},RD=ei.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),ND=function(e,t){var n=t.getNode(!1===e),r=e?"after":"before";return Ur(n)&&n.getAttribute("data-mce-caret")===r},BD=function(e,t,n,r){var o=function(t){return Qi(wn.fromDom(t))&&!fg(n,r,e)};return bg(!t,n).fold((function(){return bg(t,r).fold(I,o)}),o)},PD=function(e,t,n,r){var o=r.getNode(!1===t);return jA(wn.fromDom(e),wn.fromDom(n.getNode())).map((function(e){return nc(e)?RD.remove(e.dom):RD.moveToElement(o)})).orThunk((function(){return q.some(RD.moveToElement(o))}))},LD=function(e,t,n){return Wg(t,e,n).bind((function(r){return MD(r.getNode())||BD(e,t,n,r)?q.none():t&&ao(r.getNode())||!1===t&&ao(r.getNode(!0))?PD(e,t,n,r):t&&Tw(n)||!1===t&&Sw(n)?q.some(RD.moveToPosition(r)):q.none()}))},ID=function(e,t){return e&&ao(t.nextSibling)?q.some(RD.moveToElement(t.nextSibling)):!1===e&&ao(t.previousSibling)?q.some(RD.moveToElement(t.previousSibling)):q.none()},HD=function(e,t,n){return n.fold((function(e){return q.some(RD.remove(e))}),(function(e){return q.some(RD.moveToElement(e))}),(function(n){return fg(t,n,e)?q.none():q.some(RD.moveToPosition(n))}))},FD=function(e,t,n){return ND(t,n)?ID(t,n.getNode(!1===t)).fold((function(){return LD(e,t,n)}),q.some):LD(e,t,n).bind((function(t){return HD(e,n,t)}))},jD=function(e,t,n){var r=yg(t?1:-1,e,n),o=Rf.fromRangeStart(r),i=wn.fromDom(e);return!1===t&&Tw(o)?q.some(RD.remove(o.getNode(!0))):t&&Sw(o)?q.some(RD.remove(o.getNode())):!1===t&&Sw(o)&&Gw(i,o)?Kw(i,o).map((function(e){return RD.remove(e.getNode())})):t&&Tw(o)&&$w(i,o)?Xw(i,o).map((function(e){return RD.remove(e.getNode())})):FD(e,t,o)},VD=function(e,t){return function(n){return e._selectionOverrides.hideFakeCaret(),jk(e,t,wn.fromDom(n)),!0}},UD=function(e,t){return function(n){var r=t?Rf.before(n):Rf.after(n);return e.selection.setRng(r.toRange()),!0}},qD=function(e){return function(t){return e.selection.setRng(t.toRange()),!0}},WD=function(e,t){return q.from(Hh(e.getBody(),t))},$D=function(e,t){var n=e.selection.getNode();return WD(e,n).filter(ao).fold((function(){return jD(e.getBody(),t,e.selection.getRng()).exists((function(n){return n.fold(VD(e,t),UD(e,t),qD(e))}))}),H)},GD=function(e){Q(Tl(e,".mce-offscreen-selection"),Sr)},KD=function(e,t){var n=e.selection.getNode();if(ao(n)&&!co(n)){var r=WD(e,n.parentNode).filter(ao);return r.fold((function(){return GD(wn.fromDom(e.getBody())),jk(e,t,wn.fromDom(e.selection.getNode())),UA(e),!0}),H)}return!1},XD=function(e){var t=e.dom,n=e.selection,r=Hh(e.getBody(),n.getNode());if(io(r)&&t.isBlock(r)&&t.isEmpty(r)){var o=t.create("br",{"data-mce-bogus":"1"});t.setHTML(r,""),r.appendChild(o),n.setRng(Rf.before(o).toRange())}return!0},YD=function(e,t){return e.selection.isCollapsed()?$D(e,t):KD(e,t)},JD=function(e,t){var n=Rf.fromRangeStart(e.selection.getRng());return Wg(t,e.getBody(),n).filter((function(e){return t?ww(e):kw(e)})).bind((function(e){return q.from(dg(t?0:-1,e))})).exists((function(t){return e.selection.select(t),!0}))},ZD=function(e,t){return!!e.selection.isCollapsed()&&JD(e,t)},QD=Qr,eM=function(e){return QD(e)&&e.data[0]===da},tM=function(e){return QD(e)&&e.data[e.data.length-1]===da},nM=function(e){return e.ownerDocument.createTextNode(da)},rM=function(e){if(QD(e.previousSibling))return tM(e.previousSibling)||e.previousSibling.appendData(da),e.previousSibling;if(QD(e))return eM(e)||e.insertData(0,da),e;var t=nM(e);return e.parentNode.insertBefore(t,e),t},oM=function(e){if(QD(e.nextSibling))return eM(e.nextSibling)||e.nextSibling.insertData(0,da),e.nextSibling;if(QD(e))return tM(e)||e.appendData(da),e;var t=nM(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t},iM=function(e,t){return e?rM(t):oM(t)},aM=R(iM,!0),cM=R(iM,!1),uM=function(e,t){return Qr(e.container())?iM(t,e.container()):iM(t,e.getNode())},sM=function(e,t){var n=t.get();return n&&e.container()===n&&ya(n)},lM=function(e,t){return t.fold((function(t){jm(e.get());var n=aM(t);return e.set(n),q.some(Rf(n,n.length-1))}),(function(t){return Jg(t).map((function(t){if(sM(t,e))return Rf(e.get(),1);jm(e.get());var n=uM(t,!0);return e.set(n),Rf(n,1)}))}),(function(t){return Zg(t).map((function(t){if(sM(t,e))return Rf(e.get(),e.get().length-1);jm(e.get());var n=uM(t,!1);return e.set(n),Rf(n,n.length-1)}))}),(function(t){jm(e.get());var n=cM(t);return e.set(n),q.some(Rf(n,1))}))},fM=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return q.none()},dM=ei.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),mM=function(e,t){var n=lg(t,e);return n||e},gM=function(e,t,n){var r=LA(n),o=mM(t,r.container());return RA(e,o,r).fold((function(){return Xg(o,r).bind(R(RA,e,o)).map((function(e){return dM.before(e)}))}),q.none)},pM=function(e,t){return null===tp(e,t)},hM=function(e,t,n){return RA(e,t,n).filter(R(pM,t))},vM=function(e,t,n){var r=IA(n);return hM(e,t,r).bind((function(e){var t=Yg(e,r);return t.isNone()?q.some(dM.start(e)):q.none()}))},yM=function(e,t,n){var r=LA(n);return hM(e,t,r).bind((function(e){var t=Xg(e,r);return t.isNone()?q.some(dM.end(e)):q.none()}))},bM=function(e,t,n){var r=IA(n),o=mM(t,r.container());return RA(e,o,r).fold((function(){return Yg(o,r).bind(R(RA,e,o)).map((function(e){return dM.after(e)}))}),q.none)},wM=function(e){return!1===DA(_M(e))},kM=function(e,t,n){var r=fM([gM,vM,yM,bM],[e,t,n]);return r.filter(wM)},_M=function(e){return e.fold(D,D,D,D)},xM=function(e){return e.fold(A("before"),A("start"),A("end"),A("after"))},zM=function(e){return e.fold(dM.before,dM.before,dM.after,dM.after)},CM=function(e){return e.fold(dM.start,dM.start,dM.end,dM.end)},SM=function(e,t){return xM(e)===xM(t)&&_M(e)===_M(t)},TM=function(e,t,n,r,o,i){return fo(RA(t,n,r),RA(t,n,o),(function(t,r){return t!==r&&NA(n,t,r)?dM.after(e?t:r):i})).getOr(i)},OM=function(e,t){return e.fold(H,(function(e){return!SM(e,t)}))},EM=function(e,t,n,r,o){var i=PA(e,o),a=Wg(e,n,i).map(R(PA,e)),c=a.fold((function(){return r.map(zM)}),(function(o){return kM(t,n,o).map(R(TM,e,t,n,i,o)).filter(R(OM,r))}));return c.filter(wM)},AM=function(e,t){return e?t.fold(O(q.some,dM.start),q.none,O(q.some,dM.after),q.none):t.fold(q.none,O(q.some,dM.before),q.none,O(q.some,dM.end))},DM=function(e,t,n,r){var o=PA(e,r),i=kM(t,n,o);return kM(t,n,o).bind(R(AM,e)).orThunk((function(){return EM(e,t,n,i,r)}))};R(DM,!1),R(DM,!0);var MM,RM=function(e){return C(e.selection.getSel().modify)},NM=function(e,t,n){var r=e?1:-1;return t.setRng(Rf(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},BM=function(e,t){var n=t.selection.getRng(),r=e?Rf.fromRangeEnd(n):Rf.fromRangeStart(n);return!!RM(t)&&(e&&_a(r)?NM(!0,t.selection,r):!(e||!xa(r))&&NM(!1,t.selection,r))};(function(e){e[e["Br"]=0]="Br",e[e["Block"]=1]="Block",e[e["Wrap"]=2]="Wrap",e[e["Eol"]=3]="Eol"})(MM||(MM={}));var PM,LM=function(e,t){return e===Nf.Backwards?fe(t):t},IM=function(e,t,n){return e===Nf.Forwards?t.next(n):t.prev(n)},HM=function(e,t,n,r){return ro(r.getNode(t===Nf.Forwards))?MM.Br:!1===fg(n,r)?MM.Block:MM.Wrap},FM=function(e,t,n,r){var o=Lg(n),i=r,a=[];while(i){var c=IM(t,o,i);if(!c)break;if(ro(c.getNode(!1)))return t===Nf.Forwards?{positions:LM(t,a).concat([c]),breakType:MM.Br,breakAt:q.some(c)}:{positions:LM(t,a),breakType:MM.Br,breakAt:q.some(c)};if(c.isVisible()){if(e(i,c)){var u=HM(n,t,i,c);return{positions:LM(t,a),breakType:u,breakAt:q.some(c)}}a.push(c),i=c}else i=c}return{positions:LM(t,a),breakType:MM.Eol,breakAt:q.none()}},jM=function(e,t,n,r){return t(n,r).breakAt.map((function(r){var o=t(n,r).positions;return e===Nf.Backwards?o.concat(r):[r].concat(o)})).getOr([])},VM=function(e,t){return oe(e,(function(e,n){return e.fold((function(){return q.some(n)}),(function(r){return fo(he(r.getClientRects()),he(n.getClientRects()),(function(e,o){var i=Math.abs(t-e.left),a=Math.abs(t-o.left);return a<=i?n:r})).or(e)}))}),q.none())},UM=function(e,t){return he(t.getClientRects()).bind((function(t){return VM(e,t.left)}))},qM=R(FM,Rf.isAbove,-1),WM=R(FM,Rf.isBelow,1),$M=R(jM,-1,qM),GM=R(jM,1,WM),KM=function(e,t){return qM(e,t).breakAt.isNone()},XM=function(e,t){return WM(e,t).breakAt.isNone()},YM=function(e){return Jg(e).map((function(t){return[t].concat(WM(e,t).positions)})).getOr([])},JM=function(e){return Zg(e).map((function(t){return qM(e,t).positions.concat(t)})).getOr([])},ZM=function(e){var t=function(t){return Z(t,(function(t){var n=Jl(t);return n.node=e,n}))};if(Ur(e))return t(e.getClientRects());if(Qr(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}},QM=function(e){return se(e,ZM)};(function(e){e[e["Up"]=-1]="Up",e[e["Down"]=1]="Down"})(PM||(PM={}));var eR,tR,nR=function(e,t,n,r){while(r=sg(r,e,Wa,t))if(n(r))return},rR=function(e,t,n,r,o,i){var a=0,c=[],u=function(r){var i=QM([r]);-1===e&&(i=i.reverse());for(var u=0;u<i.length;u++){var l=i[u];if(!n(l,s)){if(c.length>0&&t(l,Ue(c))&&a++,l.line=a,o(l))return!0;c.push(l)}}},s=Ue(i.getClientRects());if(!s)return c;var l=i.getNode();return u(l),nR(e,r,u,l),c},oR=function(e,t){return t.line>e},iR=function(e,t){return t.line===e},aR=R(rR,PM.Up,tf,nf),cR=R(rR,PM.Down,nf,tf),uR=function(e,t,n,r){var o,i,a,c,u=Lg(t),s=[],l=0,f=function(e){return Ue(e.getClientRects())};1===e?(o=u.next,i=nf,a=tf,c=Rf.after(r)):(o=u.prev,i=tf,a=nf,c=Rf.before(r));var d=f(c);do{if(c.isVisible()){var m=f(c);if(!a(m,d)){s.length>0&&i(m,Ue(s))&&l++;var g=Jl(m);if(g.position=c,g.line=l,n(g))return s;s.push(g)}}}while(c=o(c));return s},sR=function(e){return function(t){return oR(e,t)}},lR=function(e){return function(t){return iR(e,t)}},fR=ao,dR=sg,mR=function(e,t){return Math.abs(e.left-t)},gR=function(e,t){return Math.abs(e.right-t)},pR=function(e,t){return e>=t.left&&e<=t.right},hR=function(e,t){return e>=t.top&&e<=t.bottom},vR=function(e){return Re(e,"node")},yR=function(e,t,n){return void 0===n&&(n=H),je(e,(function(e,r){if(pR(t,r))return n(r)?r:e;if(pR(t,e))return n(e)?e:r;var o=Math.min(mR(e,t),gR(e,t)),i=Math.min(mR(r,t),gR(r,t));return i===o&&vR(r)&&fR(r.node)||i<o?r:e}))},bR=function(e,t,n,r,o){var i=dR(r,e,Wa,t,!o);do{if(!i||n(i))return}while(i=dR(i,e,Wa,t))},wR=function(e,t,n){void 0===n&&(n=!0);var r=[],o=function(e,n){var o=ne(QM([n]),(function(n){return!e(n,t)}));return r=r.concat(o),0===o.length};return r.push(t),bR(PM.Up,e,R(o,tf),t.node,n),bR(PM.Down,e,R(o,nf),t.node,n),r},kR=function(e){return ne(ye(e.getElementsByTagName("*")),Zm)},_R=function(e,t){return{node:e.node,before:mR(e,t)<gR(e,t)}},xR=function(e,t,n){var r=QM(kR(e)),o=ne(r,R(hR,n)),i=function(e){return!Yr(e.node)&&!uo(e.node)},a=yR(o,t,i);if(a){var c=i(a);if(a=yR(wR(e,a,c),t,i),a&&Zm(a.node))return _R(a,t)}return null},zR=function(e,t){e.selection.setRng(t),ny(e,e.selection.getRng())},CR=function(e,t,n){return q.some(CD(e,t,n))},SR=function(e,t,n,r,o,i){var a=t===Nf.Forwards,c=Lg(e.getBody()),u=R(xg,a?c.next:c.prev),s=a?r:o;if(!n.collapsed){var l=af(n);if(i(l))return kD(t,e,l,t===Nf.Backwards,!1)}var f=wg(t,e.getBody(),n);if(s(f))return xD(e,f.getNode(!a));var d=PA(a,u(f)),m=Aa(n);if(!d)return m?q.some(n):q.none();if(s(d))return kD(t,e,d.getNode(!a),a,!1);var g=u(d);return g&&s(g)&&zg(d,g)?kD(t,e,g.getNode(!a),a,!1):m?CR(e,d.toRange(),!1):q.none()},TR=function(e,t,n,r,o,i){var a=wg(t,e.getBody(),n),c=Ue(a.getClientRects()),u=t===PM.Down;if(!c)return q.none();var s,l=u?cR:aR,f=l(e.getBody(),sR(1),a),d=ne(f,lR(1)),m=c.left,g=yR(d,m);if(g&&i(g.node)){var p=Math.abs(m-g.left),h=Math.abs(m-g.right);return kD(t,e,g.node,p<h,!1)}if(s=r(a)?a.getNode():o(a)?a.getNode(!0):af(n),s){var v=uR(t,e.getBody(),sR(1),s),y=yR(ne(v,lR(1)),m);if(y)return CR(e,y.position.toRange(),!1);if(y=Ue(ne(v,lR(0))),y)return CR(e,y.position.toRange(),!1)}return 0===d.length?OR(e,u).filter(u?o:r).map((function(t){return CD(e,t.toRange(),!1)})):q.none()},OR=function(e,t){var n=e.selection.getRng(),r=e.getBody();if(t){var o=Rf.fromRangeEnd(n),i=WM(r,o);return ve(i.positions)}o=Rf.fromRangeStart(n),i=qM(r,o);return he(i.positions)},ER=function(e,t,n){return OR(e,t).filter(n).exists((function(t){return e.selection.setRng(t.toRange()),!0}))},AR=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},DR=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},MR=function(e,t,n){return lM(t,n).map((function(t){return AR(e,t),n}))},RR=function(e,t,n){var r=e.getBody(),o=Rf.fromRangeStart(e.selection.getRng()),i=R(AA,e),a=DM(n,i,r,o);return a.bind((function(n){return MR(e,t,n)}))},NR=function(e,t,n){var r=Z(Tl(wn.fromDom(t.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(e){return e.dom})),o=ne(r,e),i=ne(n,e);Q(de(o,i),R(DR,!1)),Q(de(i,o),R(DR,!0))},BR=function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=Rf.fromRangeStart(e.selection.getRng());Rf.isTextPosition(n)&&!1===BA(n)&&(AR(e,Fm(t.get(),n)),t.set(null))}},PR=function(e,t,n,r){if(t.selection.isCollapsed()){var o=ne(r,e);Q(o,(function(r){var o=Rf.fromRangeStart(t.selection.getRng());kM(e,t.getBody(),o).bind((function(e){return MR(t,n,e)}))}))}},LR=function(e,t,n){return!!am(e)&&RR(e,t,n).isSome()},IR=function(e,t,n){return!!am(t)&&BM(e,t)},HR=function(e){var t=Ys(null),n=R(AA,e);return e.on("NodeChange",(function(r){!am(e)||en.browser.isIE()&&r.initial||(NR(n,e.dom,r.parents),BR(e,t),PR(n,e,t,r.parents))})),t},FR=R(IR,!0),jR=R(IR,!1),VR=function(e,t,n){if(am(e)){var r=OR(e,t).getOrThunk((function(){var n=e.selection.getRng();return t?Rf.fromRangeEnd(n):Rf.fromRangeStart(n)}));return kM(R(AA,e),e.getBody(),r).exists((function(t){var r=zM(t);return lM(n,r).exists((function(t){return AR(e,t),!0}))}))}return!1},UR=function(e,t){var n=document.createRange();return n.setStart(e.container(),e.offset()),n.setEnd(t.container(),t.offset()),n},qR=function(e){return fo(Jg(e),Zg(e),(function(t,n){var r=PA(!0,t),o=PA(!1,n);return Xg(e,r).forall((function(e){return e.isEqual(o)}))})).getOr(!0)},WR=function(e,t){return function(n){return lM(t,n).exists((function(t){return AR(e,t),!0}))}},$R=function(e,t,n,r){var o=e.getBody(),i=R(AA,e);e.undoManager.ignore((function(){e.selection.setRng(UR(n,r)),e.execCommand("Delete"),kM(i,o,Rf.fromRangeStart(e.selection.getRng())).map(CM).map(WR(e,t))})),e.nodeChanged()},GR=function(e,t){var n=lg(t,e);return n||e},KR=function(e,t,n,r){var o=GR(e.getBody(),r.container()),i=R(AA,e),a=kM(i,o,r);return a.bind((function(e){return n?e.fold(A(q.some(CM(e))),q.none,A(q.some(zM(e))),q.none):e.fold(q.none,A(q.some(zM(e))),q.none,A(q.some(CM(e))))})).map(WR(e,t)).getOrThunk((function(){var c=$g(n,o,r),u=c.bind((function(e){return kM(i,o,e)}));return fo(a,u,(function(){return RA(i,o,r).exists((function(t){return!!qR(t)&&(jk(e,n,wn.fromDom(t)),!0)}))})).orThunk((function(){return u.bind((function(o){return c.map((function(o){return n?$R(e,t,r,o):$R(e,t,o,r),!0}))}))})).getOr(!1)}))},XR=function(e,t,n){if(e.selection.isCollapsed()&&am(e)){var r=Rf.fromRangeStart(e.selection.getRng());return KR(e,t,n,r)}return!1},YR=function(e,t){var n=Bw(t,e);return ce(n,Ji).fold(A(n),(function(e){return n.slice(0,e)}))},JR=function(e){return 1===cr(e)},ZR=function(e,t,n,r){var o=R(dz,t),i=Z(ne(r,o),(function(e){return e.dom}));if(0===i.length)jk(t,e,n);else{var a=fz(n.dom,i);t.selection.setRng(a.toRange())}},QR=function(e,t){var n=wn.fromDom(e.getBody()),r=wn.fromDom(e.selection.getStart()),o=ne(YR(n,r),JR);return ve(o).exists((function(n){var r=Rf.fromRangeStart(e.selection.getRng());return!(!qA(t,r,n.dom)||mz(n))&&(ZR(t,e,n,o),!0)}))},eN=function(e,t){return!!e.selection.isCollapsed()&&QR(e,t)},tN=function(e,t,n){return e._selectionOverrides.hideFakeCaret(),jk(e,t,wn.fromDom(n)),!0},nN=function(e,t){var n=t?_w:xw,r=t?Nf.Forwards:Nf.Backwards,o=wg(r,e.getBody(),e.selection.getRng());return n(o)?tN(e,t,o.getNode(!t)):q.from(PA(t,o)).filter((function(e){return n(e)&&zg(o,e)})).exists((function(n){return tN(e,t,n.getNode(!t))}))},rN=function(e,t){var n=e.selection.getNode();return!!uo(n)&&tN(e,t,n)},oN=function(e,t){return e.selection.isCollapsed()?nN(e,t):rN(e,t)},iN=function(e){return xi(e,(function(e){return io(e.dom)||ao(e.dom)})).exists((function(e){return io(e.dom)}))},aN=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},cN=function(e,t){var n=e||Zi(t)?"margin":"padding",r="rtl"===So(t,"direction")?"-right":"-left";return n+r},uN=function(e,t,n,r,o,i){var a=cN(n,wn.fromDom(i));if("outdent"===t){var c=Math.max(0,aN(i.style[a])-r);e.setStyle(i,a,c?c+o:"")}else{c=aN(i.style[a])+r+o;e.setStyle(i,a,c)}},sN=function(e,t){return le(t,(function(t){var n=cN(Gd(e),t),r=Oo(t,n).map(aN).getOr(0),o=e.dom.getContentEditable(t.dom);return"false"!==o&&r>0}))},lN=function(e){var t=mN(e);return!e.mode.isReadOnly()&&(t.length>1||sN(e,t))},fN=function(e){return na(e)||ra(e)},dN=function(e){return Yn(e).exists(fN)},mN=function(e){return ne(Vl(e.selection.getSelectedBlocks()),(function(e){return!fN(e)&&!dN(e)&&iN(e)}))},gN=function(e,t){var n=e.dom,r=e.selection,o=e.formatter,i=Kd(e),a=/[a-z%]+$/i.exec(i)[0],c=parseInt(i,10),u=Gd(e),s=Cd(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==s||n.getParent(r.getNode(),n.isBlock)||o.apply("div"),Q(mN(e),(function(e){uN(n,t,u,c,a,e.dom)}))},pN=function(e,t){if(e.selection.isCollapsed()&&lN(e)){var n=e.dom,r=e.selection.getRng(),o=Rf.fromRangeStart(r),i=n.getParent(r.startContainer,n.isBlock);if(null!==i&&Fw(wn.fromDom(i),o))return gN(e,"outdent"),!0}return!1},hN=function(e,t){e.getDoc().execCommand(t,!1,null)},vN=function(e,t){pN(e)||YD(e,!1)||DD(e,!1)||XR(e,t,!1)||fD(e,!1)||L_(e)||ZD(e,!1)||oN(e,!1)||yD(e)||eN(e,!1)||(hN(e,"Delete"),UA(e))},yN=function(e,t){YD(e,!0)||DD(e,!0)||XR(e,t,!0)||fD(e,!0)||L_(e)||ZD(e,!0)||oN(e,!0)||yD(e)||eN(e,!0)||hN(e,"ForwardDelete")},bN=function(e,t){e.addCommand("delete",(function(){vN(e,t)})),e.addCommand("forwardDelete",(function(){yN(e,t)}))},wN=5,kN=400,_N=function(e){return void 0===e.touches||1!==e.touches.length?q.none():q.some(e.touches[0])},xN=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>wN||r>wN},zN=function(e){var t=dl(),n=Ys(!1),r=gl((function(t){e.fire("longpress",qe(qe({},t),{type:"longpress"})),n.set(!0)}),kN);e.on("touchstart",(function(e){_N(e).each((function(o){r.cancel();var i={x:o.clientX,y:o.clientY,target:e.target};r.throttle(e),n.set(!1),t.set(i)}))}),!0),e.on("touchmove",(function(o){r.cancel(),_N(o).each((function(r){t.on((function(o){xN(r,o)&&(t.clear(),n.set(!1),e.fire("longpresscancel"))}))}))}),!0),e.on("touchend touchcancel",(function(o){r.cancel(),"touchcancel"!==o.type&&t.get().filter((function(e){return e.target.isEqualNode(o.target)})).each((function(){n.get()?o.preventDefault():e.fire("tap",qe(qe({},o),{type:"tap"}))}))}),!0)},CN=function(e,t){return Me(e,t.nodeName)},SN=function(e,t){return!!Qr(t)||!!Ur(t)&&(!CN(e,t)&&!_p(t))},TN=function(e,t,n){return J(Nw(wn.fromDom(n),wn.fromDom(t)),(function(t){return CN(e,t.dom)}))},ON=function(e,t){if(Qr(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||CN(e,t.nextSibling)))return!0}return!1},EN=function(e){var t,n,r,o=e.dom,i=e.selection,a=e.schema,c=a.getBlockElements(),u=i.getStart(),s=e.getBody(),l=Cd(e);if(u&&Ur(u)&&l){var f=s.nodeName.toLowerCase();if(a.isValidChild(f,l.toLowerCase())&&!TN(c,s,u)){var d=i.getRng(),m=d.startContainer,g=d.startOffset,p=d.endContainer,h=d.endOffset,v=db(e);u=s.firstChild;while(u)if(SN(c,u)){if(ON(c,u)){n=u,u=u.nextSibling,o.remove(n);continue}t||(t=o.create(l,Sd(e)),u.parentNode.insertBefore(t,u),r=!0),n=u,u=u.nextSibling,t.appendChild(n)}else t=null,u=u.nextSibling;r&&v&&(d.setStart(m,g),d.setEnd(p,h),i.setRng(d),e.nodeChanged())}}},AN=function(e){Cd(e)&&e.on("NodeChange",R(EN,e))},DN=function(e){return Ti(wn.fromDom(e.getBody()),"*[data-mce-caret]").map((function(e){return e.dom})).getOrNull()},MN=function(e){e.selection.setRng(e.selection.getRng())},RN=function(e,t){t.hasAttribute("data-mce-caret")&&(Ea(t),MN(e),e.selection.scrollIntoView(t))},NN=function(e,t){var n=DN(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void RN(e,n)):void(wa(n)&&(RN(e,n),e.undoManager.add()))},BN=function(e){e.on("keyup compositionstart",R(NN,e))},PN=ao,LN=function(e,t,n){return SR(t,e,n,Sw,Tw,PN)},IN=function(e,t,n){var r=function(e){return Sw(e)||zw(e)},o=function(e){return Tw(e)||Cw(e)};return TR(t,e,n,r,o,PN)},HN=function(e){var t=e.dom.create(Cd(e));return(!en.ie||en.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t},FN=function(e,t,n){var r=Lg(e.getBody()),o=R(xg,1===t?r.next:r.prev);if(n.collapsed&&ym(e)){var i=e.dom.getParent(n.startContainer,"PRE");if(!i)return;var a=o(Rf.fromRangeStart(n));if(!a){var c=HN(e);1===t?e.$(i).after(c):e.$(i).before(c),e.selection.select(c,!0),e.selection.collapse()}}},jN=function(e,t){var n=t?Nf.Forwards:Nf.Backwards,r=e.selection.getRng();return LN(n,e,r).orThunk((function(){return FN(e,n,r),q.none()}))},VN=function(e,t){var n=t?1:-1,r=e.selection.getRng();return IN(n,e,r).orThunk((function(){return FN(e,n,r),q.none()}))},UN=function(e,t){return jN(e,t).exists((function(t){return zR(e,t),!0}))},qN=function(e,t){return VN(e,t).exists((function(t){return zR(e,t),!0}))},WN=function(e,t){var n=t?Tw:Sw;return ER(e,t,n)},$N=function(e){return Y(["figcaption"],Ln(e))},GN=function(e){var t=document.createRange();return t.setStartBefore(e.dom),t.setEndBefore(e.dom),t},KN=function(e,t,n){n?kr(e,t):wr(e,t)},XN=function(e,t){var n=wn.fromTag("br");return KN(e,n,t),GN(n)},YN=function(e,t,n,r){var o=wn.fromTag(n),i=wn.fromTag("br");return yo(o,r),kr(o,i),KN(e,o,t),GN(i)},JN=function(e,t,n,r){return""===t?XN(e,r):YN(e,r,t,n)},ZN=function(e,t){var n=R(Rn,t);return xi(wn.fromDom(e.container()),Ji,n).filter($N)},QN=function(e,t,n){return t?XM(e.dom,n):KM(e.dom,n)},eB=function(e,t){var n=wn.fromDom(e.getBody()),r=Rf.fromRangeStart(e.selection.getRng()),o=Cd(e),i=Sd(e);return ZN(r,n).exists((function(){if(QN(n,t,r)){var a=JN(n,o,i,t);return e.selection.setRng(a),!0}return!1}))},tB=function(e,t){return!!e.selection.isCollapsed()&&eB(e,t)},nB=function(e){return Z(e,(function(e){return qe({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:T},e)}))},rB=function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},oB=function(e,t){return se(nB(e),(function(e){return rB(e,t)?[e]:[]}))},iB=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(null,t)}},aB=function(e,t){return ae(oB(e,t),(function(e){return e.action()}))},cB=function(e,t){var n=t?Nf.Forwards:Nf.Backwards,r=e.selection.getRng();return SR(e,n,r,_w,xw,uo).exists((function(t){return zR(e,t),!0}))},uB=function(e,t){var n=t?1:-1,r=e.selection.getRng();return TR(e,n,r,_w,xw,uo).exists((function(t){return zR(e,t),!0}))},sB=function(e,t){var n=t?xw:_w;return ER(e,t,n)},lB=function(e,t){return{left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}},fB=function(e,t){return se(t,(function(t){var n=lB(Jl(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]}))},dB=function(e,t,n){return oe(e,(function(e,r){return e.fold((function(){return q.some(r)}),(function(e){var o=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),i=Math.sqrt(Math.abs(r.x-t)+Math.abs(r.y-n));return q.some(i<o?r:e)}))}),q.none())},mB=function(e,t,n,r,o){var i=Tl(wn.fromDom(n),"td,th,caption").map((function(e){return e.dom})),a=ne(fB(e,i),(function(e){return t(e,o)}));return dB(a,r,o).map((function(e){return e.cell}))},gB=function(e){return e.bottom},pB=function(e){return e.top},hB=function(e,t){return e.y<t},vB=function(e,t){return e.y>t},yB=R(mB,gB,hB),bB=R(mB,pB,vB),wB=function(e,t){return he(t.getClientRects()).bind((function(t){return yB(e,t.left,t.top)})).bind((function(e){return UM(JM(e),t)}))},kB=function(e,t){return ve(t.getClientRects()).bind((function(t){return bB(e,t.left,t.top)})).bind((function(e){return UM(YM(e),t)}))},_B=function(e,t,n){return n.breakAt.exists((function(n){return e(t,n).breakAt.isSome()}))},xB=function(e){return e.breakType===MM.Wrap&&0===e.positions.length},zB=function(e){return e.breakType===MM.Br&&1===e.positions.length},CB=function(e,t,n){var r=e(t,n);return xB(r)||!ro(n.getNode())&&zB(r)?!_B(e,t,r):r.breakAt.isNone()},SB=R(CB,qM),TB=R(CB,WM),OB=function(e,t,n){var r=Rf.fromRangeStart(t);return Kg(!e,n).exists((function(e){return e.isEqual(r)}))},EB=function(e,t,n,r){var o=e.selection.getRng(),i=t?1:-1;return!(!Ym()||!OB(t,o,n))&&(kD(i,e,n,!t,!1).each((function(t){zR(e,t)})),!0)},AB=function(e,t,n){return wB(t,n).orThunk((function(){return he(n.getClientRects()).bind((function(n){return VM($M(e,Rf.before(t)),n.left)}))})).getOr(Rf.before(t))},DB=function(e,t,n){return kB(t,n).orThunk((function(){return he(n.getClientRects()).bind((function(n){return VM(GM(e,Rf.after(t)),n.left)}))})).getOr(Rf.after(t))},MB=function(e,t){var n=t.getNode(e);return Ur(n)&&"TABLE"===n.nodeName?q.some(n):q.none()},RB=function(e,t,n,r){var o=Cd(t);o?t.undoManager.transact((function(){var r=wn.fromTag(o);yo(r,Sd(t)),kr(r,wn.fromTag("br")),e?br(wn.fromDom(n),r):yr(wn.fromDom(n),r);var i=t.dom.createRng();i.setStart(r.dom,0),i.setEnd(r.dom,0),zR(t,i)})):zR(t,r.toRange())},NB=function(e,t,n){var r=MB(!!t,n),o=!1===t;r.fold((function(){return zR(e,n.toRange())}),(function(r){return Kg(o,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return zR(e,n.toRange())}),(function(o){return RB(t,e,r,n)}))}))},BB=function(e,t,n,r){var o=e.selection.getRng(),i=Rf.fromRangeStart(o),a=e.getBody();if(!t&&SB(r,i)){var c=AB(a,n,i);return NB(e,t,c),!0}if(t&&TB(r,i)){c=DB(a,n,i);return NB(e,t,c),!0}return!1},PB=function(e,t,n){return q.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(r){return q.from(e.dom.getParent(r,"table")).map((function(o){return n(e,t,o,r)}))})).getOr(!1)},LB=function(e,t){return PB(e,t,EB)},IB=function(e,t){return PB(e,t,BB)},HB=function(e,t,n){var r=Wt().os;aB([{keyCode:tv.RIGHT,action:iB(UN,e,!0)},{keyCode:tv.LEFT,action:iB(UN,e,!1)},{keyCode:tv.UP,action:iB(qN,e,!1)},{keyCode:tv.DOWN,action:iB(qN,e,!0)},{keyCode:tv.RIGHT,action:iB(LB,e,!0)},{keyCode:tv.LEFT,action:iB(LB,e,!1)},{keyCode:tv.UP,action:iB(IB,e,!1)},{keyCode:tv.DOWN,action:iB(IB,e,!0)},{keyCode:tv.RIGHT,action:iB(cB,e,!0)},{keyCode:tv.LEFT,action:iB(cB,e,!1)},{keyCode:tv.UP,action:iB(uB,e,!1)},{keyCode:tv.DOWN,action:iB(uB,e,!0)},{keyCode:tv.RIGHT,action:iB(LR,e,t,!0)},{keyCode:tv.LEFT,action:iB(LR,e,t,!1)},{keyCode:tv.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:iB(FR,e,t)},{keyCode:tv.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:iB(jR,e,t)},{keyCode:tv.UP,action:iB(tB,e,!1)},{keyCode:tv.DOWN,action:iB(tB,e,!0)}],n).each((function(e){n.preventDefault()}))},FB=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&HB(e,t,n)}))},jB=function(e,t,n){aB([{keyCode:tv.BACKSPACE,action:iB(pN,e,!1)},{keyCode:tv.BACKSPACE,action:iB(YD,e,!1)},{keyCode:tv.DELETE,action:iB(YD,e,!0)},{keyCode:tv.BACKSPACE,action:iB(DD,e,!1)},{keyCode:tv.DELETE,action:iB(DD,e,!0)},{keyCode:tv.BACKSPACE,action:iB(XR,e,t,!1)},{keyCode:tv.DELETE,action:iB(XR,e,t,!0)},{keyCode:tv.BACKSPACE,action:iB(L_,e,!1)},{keyCode:tv.DELETE,action:iB(L_,e,!0)},{keyCode:tv.BACKSPACE,action:iB(ZD,e,!1)},{keyCode:tv.DELETE,action:iB(ZD,e,!0)},{keyCode:tv.BACKSPACE,action:iB(oN,e,!1)},{keyCode:tv.DELETE,action:iB(oN,e,!0)},{keyCode:tv.BACKSPACE,action:iB(yD,e,!1)},{keyCode:tv.DELETE,action:iB(yD,e,!0)},{keyCode:tv.BACKSPACE,action:iB(fD,e,!1)},{keyCode:tv.DELETE,action:iB(fD,e,!0)},{keyCode:tv.BACKSPACE,action:iB(eN,e,!1)},{keyCode:tv.DELETE,action:iB(eN,e,!0)}],n).each((function(e){n.preventDefault()}))},VB=function(e,t){aB([{keyCode:tv.BACKSPACE,action:iB(XD,e)},{keyCode:tv.DELETE,action:iB(XD,e)}],t)},UB=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&jB(e,t,n)})),e.on("keyup",(function(t){!1===t.isDefaultPrevented()&&VB(e,t)}))},qB=function(e){while(e){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}},WB=function(e,t){var n,r=t,o=e.dom,i=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var a=qB(t.firstChild);a&&/^(UL|OL|DL)$/.test(a.nodeName)&&t.insertBefore(o.doc.createTextNode(sa),t.firstChild)}var c=o.createRng();if(t.normalize(),t.hasChildNodes()){var u=new Fi(t,t);while(n=u.current()){if(Qr(n)){c.setStart(n,0),c.setEnd(n,0);break}if(i[n.nodeName.toLowerCase()]){c.setStartBefore(n),c.setEndBefore(n);break}r=n,n=u.next()}n||(c.setStart(r,0),c.setEnd(r,0))}else ro(t)?t.nextSibling&&o.isBlock(t.nextSibling)?(c.setStartBefore(t),c.setEndBefore(t)):(c.setStartAfter(t),c.setEndAfter(t)):(c.setStart(t,0),c.setEnd(t,0));e.selection.setRng(c),ny(e,c)}},$B=function(e,t){var n,r,o=e.getRoot();n=t;while(n!==o&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},GB=function(e){return q.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},KB=function(e){return GB(e).fold(A(""),(function(e){return e.nodeName.toUpperCase()}))},XB=function(e){return GB(e).filter((function(e){return ra(wn.fromDom(e))})).isSome()},YB=function(e,t){return e.firstChild&&e.firstChild.nodeName===t},JB=function(e){var t;return(null===(t=e.parentNode)||void 0===t?void 0:t.firstChild)===e},ZB=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},QB=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},eP=function(e){return QB(e)&&QB(e.parentNode)},tP=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},nP=function(e,t,n){var r=e[n?"firstChild":"lastChild"];while(r){if(Ur(r))break;r=r[n?"nextSibling":"previousSibling"]}return r===t},rP=function(e,t,n,r,o){var i=e.dom,a=e.selection.getRng();if(n!==e.getBody()){eP(n)&&(o="LI");var c=o?t(o):i.create("BR");if(nP(n,r,!0)&&nP(n,r,!1))if(ZB(n,"LI")){var u=tP(n);i.insertAfter(c,u),JB(n)?i.remove(u):i.remove(n)}else i.replace(c,n);else if(nP(n,r,!0))ZB(n,"LI")?(i.insertAfter(c,tP(n)),c.appendChild(i.doc.createTextNode(" ")),c.appendChild(n)):n.parentNode.insertBefore(c,n),i.remove(r);else if(nP(n,r,!1))i.insertAfter(c,tP(n)),i.remove(r);else{n=tP(n);var s=a.cloneRange();s.setStartAfter(r),s.setEndAfter(n);var l=s.extractContents();"LI"===o&&YB(l,"LI")?(c=l.firstChild,i.insertAfter(l,n)):(i.insertAfter(l,n),i.insertAfter(c,n)),i.remove(r)}WB(e,c)}},oP=function(e){Q(Sl(wn.fromDom(e),Vn),(function(e){var t=e.dom;t.nodeValue=ga(t.nodeValue)}))},iP=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},aP=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},cP=function(e){e.innerHTML='<br data-mce-bogus="1">'},uP=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},sP=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},lP=function(e,t,n){var r,o=n,i=[];if(o){while(o=o.firstChild){if(e.isBlock(o))return;Ur(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}r=i.length;while(r--)o=i[r],(!o.hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue||iP(e,o))&&e.remove(o)}},fP=function(e,t,n){return!1===Qr(t)?n:e?1===n&&t.data.charAt(n-1)===da?0:n:n===t.data.length-1&&t.data.charAt(n)===da?t.data.length:n},dP=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,fP(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,fP(!1,e.endContainer,e.endOffset)),t},mP=function(e){do{Qr(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild}while(e)},gP=function(e,t){var n,r,o=e.getRoot();n=t;while(n!==o&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},pP=function(e,t,n){var r=e.dom;q.from(n.style).map(r.parseStyle).each((function(e){var n=Eo(wn.fromDom(t)),o=qe(qe({},n),e);r.setStyles(t,o)}));var o=q.from(n.class).map((function(e){return e.split(/\s+/)})),i=q.from(t.className).map((function(e){return ne(e.split(/\s+/),(function(e){return""!==e}))}));fo(o,i,(function(e,n){var o=ne(n,(function(t){return!Y(e,t)})),i=$e($e([],e,!0),o,!0);r.setAttrib(t,"class",i.join(" "))}));var a=["style","class"],c=Oe(n,(function(e,t){return!Y(a,t)}));r.setAttribs(t,c)},hP=function(e,t){var n=Cd(e);if(n&&n.toLowerCase()===t.tagName.toLowerCase()){var r=Sd(e);pP(e,t,r)}},vP=function(e,t,n,r,o){var i,a,c,u,s,l,f=t||"P",d=e.dom,m=gP(d,r);if(a=d.getParent(r,d.isBlock),!a||!sP(d,a)){if(a=a||m,l=a===e.getBody()||aP(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return i=d.create(f),hP(e,i),a.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;u=r;while(u.parentNode!==a)u=u.parentNode;while(u&&!d.isBlock(u))c=u,u=u.previousSibling;if(c&&e.schema.isValidChild(l,f.toLowerCase())){i=d.create(f),hP(e,i),c.parentNode.insertBefore(i,c),u=c;while(u&&!d.isBlock(u))s=u.nextSibling,i.appendChild(u),u=s;n.setStart(r,o),n.setEnd(r,o)}}return r},yP=function(e,t){t.normalize();var n=t.lastChild;n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")},bP=function(e,t){var n,r,o,i,a,c,u,s,l,f,d=e.dom,m=e.schema,g=m.getNonEmptyElements(),p=e.selection.getRng(),h=function(t){var n,o,a,c=r,u=m.getTextInlineElements();if(n=t||"TABLE"===s||"HR"===s?d.create(t||l):i.cloneNode(!1),a=n,!1===Ed(e))d.setAttrib(n,"style",null),d.setAttrib(n,"class",null);else do{if(u[c.nodeName]){if(ep(c)||_p(c))continue;o=c.cloneNode(!1),d.setAttrib(o,"id",""),n.hasChildNodes()?(o.appendChild(n.firstChild),n.appendChild(o)):(a=o,n.appendChild(o))}}while((c=c.parentNode)&&c!==k);return hP(e,n),cP(a),n},v=function(e){var t,n,a=fP(e,r,o);if(Qr(r)&&(e?a>0:a<r.nodeValue.length))return!1;if(r.parentNode===i&&f&&!e)return!0;if(e&&Ur(r)&&r===i.firstChild)return!0;if(uP(r,"TABLE")||uP(r,"HR"))return f&&!e||!f&&e;var c=new Fi(r,i);Qr(r)&&(e&&0===a?c.prev():e||a!==r.nodeValue.length||c.next());while(t=c.current()){if(Ur(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),g[n]&&"br"!==n))return!1}else if(Qr(t)&&!Ga(t.nodeValue))return!1;e?c.prev():c.next()}return!0},y=function(){a=/^(H[1-6]|PRE|FIGURE)$/.test(s)&&"HGROUP"!==_?h(l):h(),Ad(e)&&sP(d,u)&&d.isEmpty(i)?a=d.split(u,i):d.insertAfter(a,i),WB(e,a)};kv(d,p).each((function(e){p.setStart(e.startContainer,e.startOffset),p.setEnd(e.endContainer,e.endOffset)})),r=p.startContainer,o=p.startOffset,l=Cd(e);var b=!(!t||!t.shiftKey),w=!(!t||!t.ctrlKey);Ur(r)&&r.hasChildNodes()&&(f=o>r.childNodes.length-1,r=r.childNodes[Math.min(o,r.childNodes.length-1)]||r,o=f&&Qr(r)?r.nodeValue.length:0);var k=gP(d,r);if(k){(l&&!b||!l&&b)&&(r=vP(e,l,p,r,o)),i=d.getParent(r,d.isBlock),u=i?d.getParent(i.parentNode,d.isBlock):null,s=i?i.nodeName.toUpperCase():"";var _=u?u.nodeName.toUpperCase():"";"LI"!==_||w||(i=u,u=u.parentNode,s=_),/^(LI|DT|DD)$/.test(s)&&d.isEmpty(i)?rP(e,h,u,i,l):l&&i===e.getBody()||(l=l||"P",va(i)?(a=Ea(i),d.isEmpty(i)&&cP(i),hP(e,a),WB(e,a)):v()?y():v(!0)?(a=i.parentNode.insertBefore(h(),i),WB(e,uP(i,"HR")?a:i)):(n=dP(p).cloneRange(),n.setEndAfter(i),c=n.extractContents(),oP(c),mP(c),a=c.firstChild,d.insertAfter(c,i),lP(d,g,a),yP(d,i),d.isEmpty(i)&&cP(i),a.normalize(),d.isEmpty(a)?(d.remove(a),y()):(hP(e,a),WB(e,a))),d.setAttrib(a,"id",""),e.fire("NewBlock",{newBlock:a}))}},wP=function(e,t,n){var r,o=new Fi(t,n),i=e.getNonEmptyElements();while(r=o.next())if(i[r.nodeName.toLowerCase()]||r.length>0)return!0},kP=function(e,t,n){var r=e.dom.createRng();n?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)),e.selection.setRng(r),ny(e,r)},_P=function(e,t){var n,r,o=e.selection,i=e.dom,a=o.getRng();kv(i,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var c=a.startOffset,u=a.startContainer;if(1===u.nodeType&&u.hasChildNodes()){var s=c>u.childNodes.length-1;u=u.childNodes[Math.min(c,u.childNodes.length-1)]||u,c=s&&3===u.nodeType?u.nodeValue.length:0}var l=i.getParent(u,i.isBlock),f=l?i.getParent(l.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",m=!(!t||!t.ctrlKey);"LI"!==d||m||(l=f),u&&3===u.nodeType&&c>=u.nodeValue.length&&(wP(e.schema,u,l)||(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=i.create("br"),If(i,a,n),kP(e,n,r),e.undoManager.add()},xP=function(e,t){var n=wn.fromTag("br");yr(wn.fromDom(t),n),e.undoManager.add()},zP=function(e,t){SP(e.getBody(),t)||br(wn.fromDom(t),wn.fromTag("br"));var n=wn.fromTag("br");br(wn.fromDom(t),n),kP(e,n.dom,!1),e.undoManager.add()},CP=function(e){return ro(e.getNode())},SP=function(e,t){return!!CP(Rf.after(t))||Xg(e,Rf.after(t)).map((function(e){return ro(e.getNode())})).getOr(!1)},TP=function(e){return e&&"A"===e.nodeName&&"href"in e},OP=function(e){return e.fold(I,TP,TP,I)},EP=function(e){var t=R(AA,e),n=Rf.fromRangeStart(e.selection.getRng());return kM(t,e.getBody(),n).filter(OP)},AP=function(e,t){t.fold(T,R(xP,e),R(zP,e),T)},DP=function(e,t){var n=EP(e);n.isSome()?n.each(R(AP,e)):_P(e,t)},MP=function(e,t){return GB(e).filter((function(e){return t.length>0&&En(wn.fromDom(e),t)})).isSome()},RP=function(e){return MP(e,Td(e))},NP=function(e){return MP(e,Od(e))},BP=ei.generate([{br:[]},{block:[]},{none:[]}]),PP=function(e,t){return NP(e)},LP=function(e){return function(t,n){var r=""===Cd(t);return r===e}},IP=function(e){return function(t,n){return XB(t)===e}},HP=function(e,t){return function(n,r){var o=KB(n)===e.toUpperCase();return o===t}},FP=function(e){return HP("pre",e)},jP=function(){return HP("summary",!0)},VP=function(e){return function(t,n){return zd(t)===e}},UP=function(e,t){return RP(e)},qP=function(e,t){return t},WP=function(e){var t=Cd(e),n=$B(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},$P=function(e,t){return function(n,r){var o=oe(e,(function(e,t){return e&&t(n,r)}),!0);return o?q.some(t):q.none()}},GP=function(e,t){return fM([$P([PP],BP.none()),$P([jP()],BP.br()),$P([FP(!0),VP(!1),qP],BP.br()),$P([FP(!0),VP(!1)],BP.block()),$P([FP(!0),VP(!0),qP],BP.block()),$P([FP(!0),VP(!0)],BP.br()),$P([IP(!0),qP],BP.br()),$P([IP(!0)],BP.block()),$P([LP(!0),qP,WP],BP.block()),$P([LP(!0)],BP.br()),$P([UP],BP.br()),$P([LP(!1),qP],BP.br()),$P([WP],BP.block())],[e,!(!t||!t.shiftKey)]).getOr(BP.none())},KP=function(e,t){GP(e,t).fold((function(){DP(e,t)}),(function(){bP(e,t)}),T)},XP=function(e,t){t.isDefaultPrevented()||(t.preventDefault(),_S(e.undoManager),e.undoManager.transact((function(){!1===e.selection.isCollapsed()&&e.execCommand("Delete"),KP(e,t)})))},YP=function(e){e.on("keydown",(function(t){t.keyCode===tv.ENTER&&XP(e,t)}))},JP=function(e,t,n){aB([{keyCode:tv.END,action:iB(WN,e,!0)},{keyCode:tv.HOME,action:iB(WN,e,!1)},{keyCode:tv.END,action:iB(sB,e,!0)},{keyCode:tv.HOME,action:iB(sB,e,!1)},{keyCode:tv.END,action:iB(VR,e,!0,t)},{keyCode:tv.HOME,action:iB(VR,e,!1,t)}],n).each((function(e){n.preventDefault()}))},ZP=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&JP(e,t,n)}))},QP=Wt().browser,eL=function(e){var t=ml((function(){e.composing||vk(e)}),0);QP.isIE()&&(e.on("keypress",(function(e){t.throttle()})),e.on("remove",(function(e){t.cancel()})))},tL=function(e){eL(e),e.on("input",(function(t){!1===t.isComposing&&vk(e)}))},nL=Wt(),rL=function(e,t,n){aB([{keyCode:tv.PAGE_UP,action:iB(VR,e,!1,t)},{keyCode:tv.PAGE_DOWN,action:iB(VR,e,!0,t)}],n)},oL=function(e){return e.stopImmediatePropagation()},iL=function(e){return e.keyCode===tv.PAGE_UP||e.keyCode===tv.PAGE_DOWN},aL=function(e,t,n){n&&!e.get()?t.on("NodeChange",oL,!0):!n&&e.get()&&t.off("NodeChange",oL),e.set(n)},cL=function(e,t){if(!nL.os.isOSX()){var n=Ys(!1);e.on("keydown",(function(t){iL(t)&&aL(n,e,!0)})),e.on("keyup",(function(r){!1===r.isDefaultPrevented()&&rL(e,t,r),iL(r)&&n.get()&&(aL(n,e,!1),e.nodeChanged())}))}},uL=function(e,t){var n=t.container(),r=t.offset();return Qr(n)?(n.insertData(r,e),q.some(Rf(n,r+e.length))):kg(t).map((function(n){var r=wn.fromText(e);return t.isAtEnd()?br(n,r):yr(n,r),Rf(r.dom,e.length)}))},sL=R(uL,sa),lL=R(uL," "),fL=function(e){return function(t){return t.fold((function(t){return Yg(e.dom,Rf.before(t))}),(function(e){return Jg(e)}),(function(e){return Zg(e)}),(function(t){return Xg(e.dom,Rf.after(t))}))}},dL=function(e,t){return function(n){return ik(e,n)?sL(t):lL(t)}},mL=function(e){return function(t){return e.selection.setRng(t.toRange()),e.nodeChanged(),!0}},gL=function(e){var t=Rf.fromRangeStart(e.selection.getRng()),n=wn.fromDom(e.getBody());if(e.selection.isCollapsed()){var r=R(AA,e),o=Rf.fromRangeStart(e.selection.getRng());return kM(r,e.getBody(),o).bind(fL(n)).bind(dL(n,t)).exists(mL(e))}return!1},pL=function(e,t){aB([{keyCode:tv.SPACEBAR,action:iB(gL,e)}],t).each((function(e){t.preventDefault()}))},hL=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&pL(e,t)}))},vL=function(e){var t=HR(e);return BN(e),FB(e,t),UB(e,t),YP(e),hL(e),tL(e),ZP(e,t),cL(e,t),t},yL=function(e){return IS(e)?Ys(null):vL(e)},bL=function(){function e(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",(function(n){var r=e.selection.getRng(),o={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&sv(o,t)||e.fire("SelectionChange"),t=o})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!en.range&&e.selection.isCollapsed()||Ch(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&Ch(e)&&("IMG"===e.selection.getNode().nodeName?Pi.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}return e.prototype.nodeChanged=function(e){var t,n,r,o=this.editor.selection;this.editor.initialized&&o&&!wm(this.editor)&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),t=o.getStart(!0)||r,t.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,(function(e){if(e===r)return!0;n.push(e)})),e=e||{},e.element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e);if(n.length===this.lastPath.length){for(t=n.length;t>=0;t--)if(n[t]!==this.lastPath[t])break;if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),wL=function(e){e.on("click",(function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()}))},kL=function(e){e.parser.addNodeFilter("details",(function(e){Q(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),e.serializer.addNodeFilter("details",(function(e){Q(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",v(t)?t:null),e.attr("data-mce-open",null)}))}))},_L=function(e){wL(e),kL(e)},xL=function(e){return Ur(e)&&ta(wn.fromDom(e))},zL=function(e){var t=e.selection.getRng(),n=Rf.fromRangeStart(t),r=Rf.fromRangeEnd(t);if(Rf.isElementPosition(n)){var o=n.container();xL(o)&&Jg(o).each((function(e){return t.setStart(e.container(),e.offset())}))}if(Rf.isElementPosition(r)){o=n.container();xL(o)&&Zg(o).each((function(e){return t.setEnd(e.container(),e.offset())}))}e.selection.setRng(F_(t))},CL=function(e){e.on("click",(function(t){t.detail>=3&&zL(e)}))},SL=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,o=n.defaultView;return{top:t.top+o.pageYOffset-r.clientTop,left:t.left+o.pageXOffset-r.clientLeft}},TL=function(e){return e.inline?SL(e.getBody()):{left:0,top:0}},OL=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},EL=function(e){var t=e.getBody(),n=e.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},o={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?r:o},AL=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=SL(e.getContentAreaContainer()),r=EL(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}},DL=function(e,t,n){return{pageX:n.left-e.left+t.left,pageY:n.top-e.top+t.top}},ML=function(e,t){return DL(TL(e),OL(e),AL(e,t))},RL=ao,NL=io,BL=function(e,t){return RL(t)&&t!==e},PL=function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!RL(t)},LL=function(e){var t=e.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},IL=function(e,t,n,r){var o=e.dom,i=t.cloneNode(!0);o.setStyles(i,{width:n,height:r}),o.setAttrib(i,"data-mce-selected",null);var a=o.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return o.setStyles(a,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),o.setStyles(i,{margin:0,boxSizing:"border-box"}),a.appendChild(i),a},HL=function(e,t){e.parentNode!==t&&t.appendChild(e)},FL=function(e,t,n,r,o,i){var a=0,c=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>o&&(a=t.pageX+n-o),t.pageY+r>i&&(c=t.pageY+r-i),e.style.width=n-a+"px",e.style.height=r-c+"px"},jL=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},VL=function(e){return 0===e.button},UL=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}},qL=function(e,t){return function(n){if(VL(n)){var r=ae(t.dom.getParents(n.target),ff(RL,NL)).getOr(null);if(BL(t.getBody(),r)){var o=t.dom.getPos(r),i=t.getBody(),a=t.getDoc().documentElement;e.set({element:r,dragging:!1,screenX:n.screenX,screenY:n.screenY,maxX:(t.inline?i.scrollWidth:a.offsetWidth)-2,maxY:(t.inline?i.scrollHeight:a.offsetHeight)-2,relX:n.pageX-o.x,relY:n.pageY-o.y,width:r.offsetWidth,height:r.offsetHeight,ghost:IL(t,r,r.offsetWidth,r.offsetHeight)})}}}},WL=function(e,t){var n=Pi.throttle((function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)}),0);return t.on("remove",n.stop),function(r){return e.on((function(e){var o=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(!e.dragging&&o>10){var i=t.fire("dragstart",{target:e.element});if(i.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){var a=UL(e,ML(t,r));HL(e.ghost,t.getBody()),FL(e.ghost,a,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}))}},$L=function(e){var t=e.getSel().getRangeAt(0),n=t.startContainer;return 3===n.nodeType?n.parentNode:n},GL=function(e,t){return function(n){e.on((function(e){if(e.dragging){if(PL(t,$L(t.selection),e.element)){var r=LL(e.element),o=t.fire("drop",{clientX:n.clientX,clientY:n.clientY});o.isDefaultPrevented()||t.undoManager.transact((function(){jL(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}t.fire("dragend")}})),XL(e)}},KL=function(e,t){return function(){e.on((function(e){e.dragging&&t.fire("dragend")})),XL(e)}},XL=function(e){e.on((function(e){jL(e.ghost)})),e.clear()},YL=function(e){var t=dl(),n=js.DOM,r=document,o=qL(t,e),i=WL(t,e),a=GL(t,e),c=KL(t,e);e.on("mousedown",o),e.on("mousemove",i),e.on("mouseup",a),n.bind(r,"mousemove",i),n.bind(r,"mouseup",c),e.on("remove",(function(){n.unbind(r,"mousemove",i),n.unbind(r,"mouseup",c)})),e.on("keydown",(function(e){e.keyCode===tv.ESC&&c()}))},JL=function(e){e.on("drop",(function(t){var n="undefined"!==typeof t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;(RL(n)||"false"===e.dom.getContentEditableParent(n))&&t.preventDefault()}))},ZL=function(e){var t=function(t){if(!t.isDefaultPrevented()){var n=t.dataTransfer;n&&(Y(n.types,"Files")||n.files.length>0)&&(t.preventDefault(),"drop"===t.type&&BE(e,"Dropped file type is not supported"))}},n=function(n){Zy(e,n.target)&&t(n)},r=function(){var r=js.DOM,o=e.dom,i=document,a=e.inline?e.getBody():e.getDoc(),c=["drop","dragover"];Q(c,(function(e){r.bind(i,e,n),o.bind(a,e,t)})),e.on("remove",(function(){Q(c,(function(e){r.unbind(i,e,n),o.unbind(a,e,t)}))}))};e.on("init",(function(){Pi.setEditorTimeout(e,r,0)}))},QL=function(e){YL(e),JL(e),Cm(e)&&ZL(e)},eI=function(e){var t=ml((function(){if(!e.removed&&e.getBody().contains(document.activeElement)){var t=e.selection.getRng();if(t.collapsed){var n=CD(e,t,!1);e.selection.setRng(n)}}}),0);e.on("focus",(function(){t.throttle()})),e.on("blur",(function(){t.cancel()}))},tI=function(e){e.on("init",(function(){e.on("focusin",(function(t){var n=t.target;if(uo(n)){var r=Hh(e.getBody(),n),o=ao(r)?r:n;e.selection.getNode()!==o&&xD(e,o).each((function(t){return e.selection.setRng(t)}))}}))}))},nI=io,rI=ao,oI=function(e,t){return Hh(e.getBody(),t)},iI=function(e){var t,n=e.selection,r=e.dom,o=r.isBlock,i=e.getBody(),a=Xm(e,i,o,(function(){return db(e)})),c="sel-"+r.uniqueId(),u="data-mce-selected",s=function(e){return r.hasClass(e,"mce-offscreen-selection")},l=function(e){return e!==i&&(rI(e)||uo(e))&&r.isChildOf(e,i)},f=function(e){return Sw(e)||Tw(e)||_w(e)||xw(e)},d=function(){var e=r.get(c);return e?e.getElementsByTagName("*")[0]:e},m=function(e){e&&n.setRng(e)},g=n.getRng,p=function(t,r,o,i){void 0===i&&(i=!0);var c=e.fire("ShowCaret",{target:r,direction:t,before:o});return c.isDefaultPrevented()?null:(i&&n.scrollIntoView(r,-1===t),a.show(o,r))},h=function(e){e.hasAttribute("data-mce-caret")&&(Ea(e),m(g()),n.scrollIntoView(e))},v=function(){e.on("mouseup",(function(t){var n=g();n.collapsed&&CE(e,t.clientX,t.clientY)&&zD(e,n,!1).each(m)})),e.on("click",(function(t){var o=oI(e,t.target);o&&(rI(o)&&(t.preventDefault(),e.focus()),nI(o)&&r.isChildOf(o,n.getNode())&&C())})),e.on("blur NewBlock",C),e.on("ResizeWindow FullscreenStateChanged",a.reposition);var c=function(e){var t=e.firstChild;if(x(t))return!1;var n=Rf.before(t);if(ro(n.getNode())&&1===e.childNodes.length)return!f(n);var r=Lg(e),o=r.next(n);return o&&!f(o)},u=function(e,t){var n=r.getParent(e,o),i=r.getParent(t,o);return n===i},h=function(t,n){var i=r.getParent(t,o),a=r.getParent(n,o);return!x(i)&&(!(t===a||!r.isChildOf(i,a)||!1!==rI(oI(e,i)))||!r.isChildOf(a,i)&&!u(i,a)&&c(i))};e.on("tap",(function(t){var n=t.target,r=oI(e,n);rI(r)?(t.preventDefault(),xD(e,r).each(z)):l(n)&&xD(e,n).each(z)}),!0),e.on("mousedown",(function(t){var o=t.target;if((o===i||"HTML"===o.nodeName||r.isChildOf(o,i))&&!1!==CE(e,t.clientX,t.clientY)){var a=oI(e,o);if(a)rI(a)?(t.preventDefault(),xD(e,a).each(z)):(C(),nI(a)&&t.shiftKey||Fh(t.clientX,t.clientY,n.getRng())||(T(),n.placeCaretAt(t.clientX,t.clientY)));else if(l(o))xD(e,o).each(z);else if(!1===Zm(o)){C(),T();var c=xR(i,t.clientX,t.clientY);if(c&&!h(o,c.node)){t.preventDefault();var u=p(1,c.node,c.before,!1);m(u),e.getBody().focus()}}}})),e.on("keypress",(function(e){tv.modifierPressed(e)||rI(n.getNode())&&e.preventDefault()})),e.on("GetSelectionRange",(function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);n=n.cloneRange(),n.selectNode(t),e.range=n}})),e.on("SetSelectionRange",(function(e){e.range=w(e.range);var t=z(e.range,e.forward);t&&(e.range=t)}));var v=function(e){return"mcepastebin"===e.id};e.on("AfterSetSelectionRange",(function(e){var t=e.range,n=t.startContainer.parentNode;b(t)||v(n)||T(),s(n)||C()})),e.on("copy",(function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!en.ie){var n=d();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText||n.innerText))}})),QL(e),eI(e),tI(e)},y=function(e){return ba(e)||Sa(e)||Ta(e)},b=function(e){return y(e.startContainer)||y(e.endContainer)},w=function(t){var n=e.schema.getShortEndedElements(),o=r.createRng(),i=t.startContainer,a=t.startOffset,c=t.endContainer,u=t.endOffset;return Me(n,i.nodeName.toLowerCase())?0===a?o.setStartBefore(i):o.setStartAfter(i):o.setStart(i,a),Me(n,c.nodeName.toLowerCase())?0===u?o.setEndBefore(c):o.setEndAfter(c):o.setEnd(c,u),o},k=function(t,o,i){var a=e.$,u=Ti(wn.fromDom(e.getBody()),"#"+c).fold((function(){return a([])}),(function(e){return a([e.dom])}));0===u.length&&(u=a('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",c),u.appendTo(e.getBody()));var s=r.createRng();o===i&&en.ie?(u.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(o),s.setStartAfter(u[0].firstChild.firstChild),s.setEndAfter(o)):(u.empty().append(sa).append(o).append(sa),s.setStart(u[0].firstChild,1),s.setEnd(u[0].lastChild,0)),u.css({top:r.getPos(t,e.getBody()).y}),u[0].focus();var l=n.getSel();return l.removeAllRanges(),l.addRange(s),s},_=function(n){var o=n.cloneNode(!0),i=e.fire("ObjectSelected",{target:n,targetClone:o});if(i.isDefaultPrevented())return null;var a=k(n,i.targetClone,o),c=wn.fromDom(n);return Q(Tl(wn.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){Rn(c,e)||_o(e,u)})),r.getAttrib(n,u)||n.setAttribute(u,"1"),t=n,T(),a},z=function(e,t){if(!e)return null;if(e.collapsed){if(!b(e)){var n=t?1:-1,o=wg(n,i,e),a=o.getNode(!t);if(Zm(a))return p(n,a,!!t&&!o.isAtEnd(),!1);var c=o.getNode(t);if(Zm(c))return p(n,c,!t&&!o.isAtEnd(),!1)}return null}var u=e.startContainer,s=e.startOffset,f=e.endOffset;if(3===u.nodeType&&0===s&&rI(u.parentNode)&&(u=u.parentNode,s=r.nodeIndex(u),u=u.parentNode),1!==u.nodeType)return null;if(f===s+1&&u===e.endContainer){var d=u.childNodes[s];if(l(d))return _(d)}return null},C=function(){t&&t.removeAttribute(u),Ti(wn.fromDom(e.getBody()),"#"+c).each(Sr),t=null},S=function(){a.destroy(),t=null},T=function(){a.hide()};return en.ceFalse&&!IS(e)&&v(),{showCaret:p,showBlockCaretContainer:h,hideFakeCaret:T,destroy:S}},aI=function(e){var t=gn.each,n=tv.BACKSPACE,r=tv.DELETE,o=e.dom,i=e.selection,a=e.parser,c=en.gecko,u=en.ie,s=en.webkit,l="data:text/mce-internal,",f=u?"Text":"URL",d=function(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},m=function(e){return e.isDefaultPrevented()},g=function(t){var n,r;t.dataTransfer&&(e.selection.isCollapsed()&&"IMG"===t.target.tagName&&i.select(t.target),n=e.selection.getContent(),n.length>0&&(r=l+escape(e.id)+","+escape(n),t.dataTransfer.setData(f,r)))},p=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(f),t&&t.indexOf(l)>=0)?(t=t.substr(l.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null},h=function(t,n){e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:t,internal:n}):e.execCommand("mceInsertContent",!1,t)},v=function(){var t=function(e){var t=o.create("body"),n=e.cloneContents();return t.appendChild(n),i.serializer.serialize(t,{format:"html"})},a=function(n){var r=t(n),i=o.createRng();i.selectNode(e.getBody());var a=t(i);return r===a};e.on("keydown",(function(t){var i,c,u=t.keyCode;if(!m(t)&&(u===r||u===n)){if(i=e.selection.isCollapsed(),c=e.getBody(),i&&!o.isEmpty(c))return;if(!i&&!a(e.selection.getRng()))return;t.preventDefault(),e.setContent(""),c.firstChild&&o.isBlock(c.firstChild)?e.selection.setCursorLocation(c.firstChild,0):e.selection.setCursorLocation(c,0),e.nodeChanged()}}))},y=function(){e.shortcuts.add("meta+a",null,"SelectAll")},b=function(){e.inline||o.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;if(t.target===e.getDoc().documentElement)if(n=i.getRng(),e.getBody().focus(),"mousedown"===t.type){if(ba(n.startContainer))return;i.placeCaretAt(t.clientX,t.clientY)}else i.setRng(n)}))},w=function(){e.on("keydown",(function(t){if(!m(t)&&t.keyCode===n){if(!e.getBody().getElementsByTagName("hr").length)return;if(i.isCollapsed()&&0===i.getRng().startOffset){var r=i.getNode(),a=r.previousSibling;if("HR"===r.nodeName)return o.remove(r),void t.preventDefault();a&&a.nodeName&&"hr"===a.nodeName.toLowerCase()&&(o.remove(a),t.preventDefault())}}}))},k=function(){Range.prototype.getClientRects||e.on("mousedown",(function(t){if(!m(t)&&"HTML"===t.target.nodeName){var n=e.getBody();n.blur(),Pi.setEditorTimeout(e,(function(){n.focus()}))}}))},_=function(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==o.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&o.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),i.select(n))}))},x=function(){var n=function(){var n=o.getAttribs(i.getStart().cloneNode(!1));return function(){var r=i.getStart();r!==e.getBody()&&(o.setAttrib(r,"style",null),t(n,(function(e){r.setAttributeNode(e.cloneNode(!0))})))}},r=function(){return!i.isCollapsed()&&o.getParent(i.getStart(),o.isBlock)!==o.getParent(i.getEnd(),o.isBlock)};e.on("keypress",(function(t){var o;if(!m(t)&&(8===t.keyCode||46===t.keyCode)&&r())return o=n(),e.getDoc().execCommand("delete",!1,null),o(),t.preventDefault(),!1})),o.bind(e.getDoc(),"cut",(function(t){var o;!m(t)&&r()&&(o=n(),Pi.setEditorTimeout(e,(function(){o()})))}))},z=function(){e.on("keydown",(function(e){if(!m(e)&&e.keyCode===n&&i.isCollapsed()&&0===i.getRng().startOffset){var t=i.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))},C=function(){e.on("keydown",(function(t){var n,r;if(!m(t)&&t.keyCode===tv.BACKSPACE){n=i.getRng();var a=n.startContainer,c=n.startOffset,u=o.getRoot();if(r=a,n.collapsed&&0===c){while(r&&r.parentNode&&r.parentNode.firstChild===r&&r.parentNode!==u)r=r.parentNode;"BLOCKQUOTE"===r.tagName&&(e.formatter.toggle("blockquote",null,r),n=o.createRng(),n.setStart(a,0),n.setEnd(a,0),i.setRng(n))}}}))},S=function(){var t=function(){d("StyleWithCSS",!1),d("enableInlineTableEditing",!1),Qd(e)||d("enableObjectResizing",!1)};km(e)||e.on("BeforeExecCommand mousedown",t)},O=function(){var n=function(){t(o.select("a"),(function(e){var t=e.parentNode,n=o.getRoot();if(t.lastChild===e){while(t&&!o.isBlock(t)){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}o.add(t,"br",{"data-mce-bogus":1})}}))};e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||n()}))},E=function(){Cd(e)&&e.on("init",(function(){d("DefaultParagraphSeparator",Cd(e))}))},A=function(){e.on("keyup focusin mouseup",(function(e){tv.modifierPressed(e)||i.normalize()}),!0)},D=function(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},M=function(){e.inline||e.on("keydown",(function(){document.activeElement===document.body&&e.getWin().focus()}))},R=function(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;if("HTML"===t.target.nodeName){if(en.ie>11)return void e.getBody().focus();n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()}})))},N=function(){en.mac&&e.on("keydown",(function(t){if(tv.metaKeyPressed(t)&&!t.shiftKey&&(37===t.keyCode||39===t.keyCode)){t.preventDefault();var n=e.selection.getSel();n.modify("move",37===t.keyCode?"backward":"forward","lineboundary")}}))},B=function(){d("AutoUrlDetect",!1)},P=function(){e.on("click",(function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)})),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},L=function(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))},I=function(){a.addNodeFilter("br",(function(e){var t=e.length;while(t--)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}))},H=function(){e.on("dragstart",(function(e){g(e)})),e.on("drop",(function(t){if(!m(t)){var n=p(t);if(n&&n.id!==e.id){t.preventDefault();var r=uv(t.x,t.y,e.getDoc());i.setRng(r),h(n.html,!0)}}}))},F=T,j=function(){if(!c||e.removed)return!1;var t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount},V=function(){s&&(b(),_(),L(),y(),en.iOS&&(M(),R(),P())),c&&(k(),S(),D(),N())},U=function(){C(),v(),en.windowsPhone||A(),s&&(b(),_(),E(),L(),z(),I(),en.iOS?(M(),R(),P()):y()),en.ie>=11&&(R(),z()),en.ie&&(y(),B(),H()),c&&(w(),k(),x(),S(),O(),D(),N(),z())};return IS(e)?V():U(),{refreshContentEditable:F,isHidden:j}},cI=js.DOM,uI=function(e,t){var n=wn.fromDom(e.getBody()),r=mr(dr(n)),o=wn.fromTag("style");vo(o,"type","text/css"),kr(o,wn.fromText(t)),kr(r,o),e.on("remove",(function(){Sr(o)}))},sI=function(e){return e.inline?e.getElement().nodeName.toLowerCase():void 0},lI=function(e){return Oe(e,(function(e){return!1===_(e)}))},fI=function(e){var t=e.settings;return lI({block_elements:t.block_elements,boolean_attributes:t.boolean_attributes,custom_elements:t.custom_elements,extended_valid_elements:t.extended_valid_elements,invalid_elements:t.invalid_elements,invalid_styles:t.invalid_styles,move_caret_before_on_enter_elements:t.move_caret_before_on_enter_elements,non_empty_elements:t.non_empty_elements,schema:t.schema,self_closing_elements:t.self_closing_elements,short_ended_elements:t.short_ended_elements,special:t.special,text_block_elements:t.text_block_elements,text_inline_elements:t.text_inline_elements,valid_children:t.valid_children,valid_classes:t.valid_classes,valid_elements:t.valid_elements,valid_styles:t.valid_styles,verify_html:t.verify_html,whitespace_elements:t.whitespace_elements,padd_empty_block_inline_children:t.format_empty_lines})},dI=function(e){var t=e.settings,n=e.editorUpload.blobCache;return lI({allow_conditional_comments:t.allow_conditional_comments,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_html_in_named_anchor:t.allow_html_in_named_anchor,allow_script_urls:t.allow_script_urls,allow_unsafe_link_target:t.allow_unsafe_link_target,convert_fonts_to_spans:t.convert_fonts_to_spans,fix_list_elements:t.fix_list_elements,font_size_legacy_values:t.font_size_legacy_values,forced_root_block:t.forced_root_block,forced_root_block_attrs:t.forced_root_block_attrs,padd_empty_with_br:t.padd_empty_with_br,preserve_cdata:t.preserve_cdata,remove_trailing_brs:t.remove_trailing_brs,inline_styles:t.inline_styles,root_name:sI(e),validate:!0,blob_cache:n,document:e.getDoc(),images_dataimg_filter:t.images_dataimg_filter})},mI=function(e){var t=e.settings;return qe(qe(qe({},dI(e)),fI(e)),lI({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope,element_format:t.element_format,entities:t.entities,entity_encoding:t.entity_encoding,indent:t.indent,indent_after:t.indent_after,indent_before:t.indent_before}))},gI=function(e){var t=cO(dI(e),e.schema);return t.addAttributeFilter("src,href,style,tabindex",(function(t,n){var r,o,i=t.length,a=e.dom,c="data-mce-"+n;while(i--)if(r=t[i],o=r.attr(n),o&&!r.attr(c)){if(0===o.indexOf("data:")||0===o.indexOf("blob:"))continue;"style"===n?(o=a.serializeStyle(a.parseStyle(o),r.name),o.length||(o=null),r.attr(c,o),r.attr(n,o)):"tabindex"===n?(r.attr(c,o),r.attr(n,null)):r.attr(c,e.convertURL(o,n,r.name))}})),t.addNodeFilter("script",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}})),e.settings.preserve_cdata&&t.addNodeFilter("#cdata",(function(t){var n=t.length;while(n--){var r=t[n];r.type=8,r.name="#comment",r.value="[CDATA["+e.dom.encode(r.value)+"]]"}})),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(t){var n=t.length,r=e.schema.getNonEmptyElements();while(n--){var o=t[n];o.isEmpty(r)&&0===o.getAll("br").length&&(o.append(new Eb("br",1)).shortEnded=!0)}})),t},pI=function(e){e.settings.auto_focus&&Pi.setEditorTimeout(e,(function(){var t;t=!0===e.settings.auto_focus?e:e.editorManager.get(e.settings.auto_focus),t.destroyed||t.focus()}),100)},hI=function(e){var t=e.dom.getRoot();e.inline||Ch(e)&&e.selection.getStart(!0)!==t||Jg(t).each((function(t){var n=t.getNode(),r=Yr(n)?Jg(n).getOr(t):t;en.browser.isIE()?Iy(e,r.toRange()):e.selection.setRng(r.toRange())}))},vI=function(e){e.bindPendingEventDelegates(),e.initialized=!0,Yh(e),e.focus(!0),hI(e),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),pI(e)},yI=function(e){return e.inline?e.ui.styleSheetLoader:e.dom.styleSheetLoader},bI=function(e,t,n){var r=[new Ei((function(n,r){return yI(e).loadAll(t,n,r)}))];return e.inline?r:r.concat([new Ei((function(t,r){return e.ui.styleSheetLoader.loadAll(n,t,r)}))])},wI=function(e){var t=yI(e),n=Yd(e),r=e.contentCSS,o=function(){t.unloadAll(r),e.inline||e.ui.styleSheetLoader.unloadAll(n)},i=function(){e.removed?o():e.on("remove",o)};if(e.contentStyles.length>0){var a="";gn.each(e.contentStyles,(function(e){a+=e+"\r\n"})),e.dom.addStyle(a)}var c=Ei.all(bI(e,r,n)).then(i).catch(i);return e.settings.content_style&&uI(e,e.settings.content_style),c},kI=function(e){var t=e.settings,n=e.getDoc(),r=e.getBody();Kh(e),t.browser_spellcheck||t.gecko_spellcheck||(n.body.spellcheck=!1,cI.setAttrib(r,"spellcheck","false")),e.quirks=aI(e),Xh(e);var o=Jd(e);void 0!==o&&(r.dir=o),t.protect&&e.on("BeforeSetContent",(function(e){gn.each(t.protect,(function(t){e.content=e.content.replace(t,(function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"}))}))})),e.on("SetContent",(function(){e.addVisual(e.getBody())})),e.on("compositionstart compositionend",(function(t){e.composing="compositionstart"===t.type}))},_I=function(e){IS(e)||e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"})},xI=function(e){!0!==e.removed&&(_I(e),vI(e))},zI=function(e,t){var n=e.settings,r=e.getElement(),o=e.getDoc();n.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(o.open(),o.write(e.iframeHTML),o.close()),e.inline&&(cI.addClass(r,"mce-content-body"),e.contentDocument=o=document,e.contentWindow=window,e.bodyElement=r,e.contentAreaContainer=r);var i=e.getBody();i.disabled=!0,e.readonly=!!n.readonly,e.readonly||(e.inline&&"static"===cI.getStyle(i,"position",!0)&&(i.style.position="relative"),i.contentEditable=e.getParam("content_editable_state",!0)),i.disabled=!1,e.editorUpload=iA(e),e.schema=jc(fI(e)),e.dom=js(o,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:Ud(e),referrerPolicy:qd(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=gI(e),e.serializer=wO(mI(e),e),e.selection=ET(e.dom,e.getWin(),e.serializer,e),e.annotator=Lh(e),e.formatter=pA(e),e.undoManager=bA(e),e._nodeChangeDispatcher=new bL(e),e._selectionOverrides=iI(e),zN(e),_L(e),IS(e)||CL(e);var a=yL(e);bN(e,a),AN(e),TA(e);var c=FS(e);kI(e),c.fold((function(){wI(e).then((function(){return xI(e)}))}),(function(t){e.setProgressState(!0),wI(e).then((function(){t().then((function(t){e.setProgressState(!1),xI(e)}),(function(t){e.notificationManager.open({type:"error",text:String(t)}),xI(e)}))}))}))},CI=js.DOM,SI=function(e,t){if(document.domain!==window.location.hostname&&en.browser.isIE()){var n=ZE("mce");e[n]=function(){zI(e)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return CI.setAttrib(t,"src",r),!0}return!1},TI=function(e,t,n,r){var o=wn.fromTag("iframe");return yo(o,r),yo(o,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),_l(o,"tox-edit-area__iframe"),o},OI=function(e){var t=bd(e)+"<html><head>";wd(e)!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=kd(e),r=_d(e),o=e.translate(Em(e));return xd(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+xd(e)+'" />'),t+='</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+e.id+'" aria-label="'+o+'"><br></body></html>',t},EI=function(e,t){var n=e.translate("Rich Text Area"),r=TI(e.id,n,t.height,yd(e)).dom;r.onload=function(){r.onload=null,e.fire("load")};var o=SI(e,r);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=r,e.iframeHTML=OI(e),CI.add(t.iframeContainer,r),o},AI=function(e,t){var n=EI(e,t);t.editorContainer&&(CI.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=CI.isHidden(t.editorContainer)),e.getElement().style.display="none",CI.setAttrib(e.id,"aria-hidden","true"),n||zI(e)},DI=js.DOM,MI=function(e,t,n){var r=AE.get(n),o=AE.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=gn.trim(n),r&&-1===gn.inArray(t,n)){if(gn.each(AE.dependencies(n),(function(n){MI(e,t,n)})),e.plugins[n])return;try{var i=new r(e,o,e.$);e.plugins[n]=i,i.init&&(i.init(e,o),t.push(n))}catch(vj){VE(e,n,vj)}}},RI=function(e){return e.replace(/^\-/,"")},NI=function(e){var t=[];gn.each(xm(e).split(/[ ,]/),(function(n){MI(e,t,RI(n))}))},BI=function(e){var t=gn.trim(Ld(e)),n=e.ui.registry.getAll().icons,r=qe(qe({},pE.get("default").icons),pE.get(t).icons);_e(r,(function(t,r){Me(n,r)||e.ui.registry.addIcon(r,t)}))},PI=function(e){var t=om(e);if(v(t)){e.settings.theme=RI(t);var n=DE.get(t);e.theme=new n(e,DE.urls[t]),e.theme.init&&e.theme.init(e,DE.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}},LI=function(e){return e.theme.renderUI()},II=function(e){var t=e.getElement(),n=om(e),r=n(e,t);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||e.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||e.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:t.offsetHeight,r},HI=function(e){return{editorContainer:e,iframeContainer:e,api:{}}},FI=function(e){var t=DI.create("div");return DI.insertAfter(t,e),HI(t)},jI=function(e){var t=e.getElement();return e.inline?HI(null):FI(t)},VI=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,v(om(e))?LI(e):C(om(e))?II(e):jI(e)},UI=function(e,t){var n={show:q.from(t.show).getOr(T),hide:q.from(t.hide).getOr(T),disable:q.from(t.disable).getOr(T),isDisabled:q.from(t.isDisabled).getOr(I),enable:function(){e.mode.isReadOnly()||q.from(t.enable).map(L)}};e.ui=qe(qe({},e.ui),n)},qI=function(e){e.fire("ScriptsLoaded"),BI(e),PI(e),NI(e);var t=VI(e);UI(e,q.from(t.api).getOr({}));var n={editorContainer:t.editorContainer,iframeContainer:t.iframeContainer};return e.editorContainer=n.editorContainer?n.editorContainer:null,KE(e),e.inline?zI(e):AI(e,n)},WI=js.DOM,$I=function(e){return"-"===e.charAt(0)},GI=function(e,t){var n=Wd(t),r=$d(t);if(!1===sl.hasCode(n)&&"en"!==n){var o=""!==r?r:t.editorManager.baseURL+"/langs/"+n+".js";e.add(o,T,void 0,(function(){jE(t,o,n)}))}},KI=function(e,t,n,r){var o=om(t);if(v(o)){if(!$I(o)&&!Me(DE.urls,o)){var i=fm(t);i?DE.load(o,t.documentBaseURI.toAbsolute(i)):DE.load(o,"themes/"+o+"/theme"+n+".js")}e.loadQueue((function(){DE.waitFor(o,r)}))}else r()},XI=function(e){return q.from(Id(e)).filter((function(e){return e.length>0})).map((function(e){return{url:e,name:q.none()}}))},YI=function(e,t,n){return q.from(t).filter((function(e){return e.length>0&&!pE.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons"+n+".js",name:q.some(t)}}))},JI=function(e,t,n){var r=YI(t,"default",n),o=XI(t).orThunk((function(){return YI(t,Ld(t),"")}));Q(lo([r,o]),(function(n){e.add(n.url,T,void 0,(function(){FE(t,n.url,n.name.getOrUndefined())}))}))},ZI=function(e,t){gn.each(zm(e),(function(t,n){AE.load(n,t,T,void 0,(function(){HE(e,t,n)})),e.settings.plugins+=" "+n})),gn.each(xm(e).split(/[ ,]/),(function(n){if(n=gn.trim(n),n&&!AE.urls[n])if($I(n)){n=n.substr(1,n.length);var r=AE.dependencies(n);gn.each(r,(function(n){var r={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"},o=AE.createUrl(r,n);AE.load(o.resource,o,T,void 0,(function(){HE(e,o.prefix+o.resource+o.suffix,o.resource)}))}))}else{var o={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"};AE.load(n,o,T,void 0,(function(){HE(e,o.prefix+o.resource+o.suffix,n)}))}}))},QI=function(e,t){var n=Xs.ScriptLoader;KI(n,e,t,(function(){GI(n,e),JI(n,e,t),ZI(e,t),n.loadQueue((function(){e.removed||qI(e)}),e,(function(){e.removed||qI(e)}))}))},eH=function(e,t){return Hi.forElement(e,{contentCssCors:_m(t),referrerPolicy:qd(t)})},tH=function(e){var t=e.id;sl.setCode(Wd(e));var n=function(){WI.unbind(window,"ready",n),e.render()};if(ru.Event.domLoaded){if(e.getElement()&&en.contentEditable){var r=wn.fromDom(e.getElement()),o=xo(r);e.on("remove",(function(){ee(r.dom.attributes,(function(e){return _o(r,e.name)})),yo(r,o)})),e.ui.styleSheetLoader=eH(r,e),dm(e)?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");var i=e.getElement().form||WI.getParent(t,"form");i&&(e.formElement=i,mm(e)&&!Zr(e.getElement())&&(WI.insertAfter(WI.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},WI.bind(i,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!gm(e)||i.submit.nodeType||i.submit.length||i._mceOldSubmit||(i._mceOldSubmit=i.submit,i.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),i._mceOldSubmit(i)})),e.windowManager=RE(e),e.notificationManager=EE(e),pm(e)&&e.on("GetContent",(function(e){e.save&&(e.content=WI.encode(e.content))})),hm(e)&&e.on("submit",(function(){e.initialized&&e.save()})),vm(e)&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),QI(e,e.suffix)}}else WI.bind(window,"ready",n)},nH=function(e,t){return mT(e,t)},rH={"font-size":"size","font-family":"face"},oH=function(e,t,n){var r=function(t){return Oo(t,e).orThunk((function(){return"font"===Ln(t)?De(rH,e).bind((function(e){return wo(t,e)})):q.none()}))},o=function(e){return Rn(wn.fromDom(t),e)};return Bx(wn.fromDom(n),(function(e){return r(e)}),o)},iH=function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},aH=function(e,t){return q.from(js.DOM.getStyle(t,e,!0))},cH=function(e){return function(t,n){return q.from(n).map(wn.fromDom).filter(jn).bind((function(n){return oH(e,t,n.dom).or(aH(e,n.dom))})).getOr("")}},uH=cH("font-size"),sH=O(iH,cH("font-family")),lH=function(e){return Jg(e.getBody()).map((function(e){var t=e.container();return Qr(t)?t.parentNode:t}))},fH=function(e){return q.from(e.selection.getRng()).bind((function(t){var n=e.getBody(),r=t.startContainer===n&&0===t.startOffset;return r?q.none():q.from(e.selection.getStart(!0))}))},dH=function(e,t){return fH(e).orThunk(R(lH,e)).map(wn.fromDom).filter(jn).bind(t)},mH=function(e,t){return dH(e,E(q.some,t))},gH=function(e,t){if(/^[0-9.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&n<=7){var r=Dd(e),o=Md(e);return o?o[n-1]||t:r[n-1]||t}return t}return t},pH=function(e){var t=e.split(/\s*,\s*/);return Z(t,(function(e){return-1===e.indexOf(" ")||st(e,'"')||st(e,"'")?e:"'"+e+"'"})).join(",")},hH=function(e,t){var n=gH(e,t);e.formatter.toggle("fontname",{value:pH(n)}),e.nodeChanged()},vH=function(e){return mH(e,(function(t){return sH(e.getBody(),t.dom)})).getOr("")},yH=function(e,t){e.formatter.toggle("fontsize",{value:gH(e,t)}),e.nodeChanged()},bH=function(e){return mH(e,(function(t){return uH(e.getBody(),t.dom)})).getOr("")},wH=function(e){return mH(e,(function(t){var n=wn.fromDom(e.getBody()),r=Bx(t,(function(e){return Oo(e,"line-height")}),R(Rn,n)),o=function(){var e=parseFloat(So(t,"line-height")),n=parseFloat(So(t,"font-size"));return String(e/n)};return r.getOrThunk(o)})).getOr("")},kH=function(e,t){e.formatter.toggle("lineheight",{value:String(t)}),e.nodeChanged()},_H=function(e){if("string"!==typeof e){var t=gn.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}return{content:e,details:{}}},xH=function(e,t){var n=_H(t);fT(e,n.content,n.details)},zH=gn.each,CH=gn.map,SH=gn.inArray,TH=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(e,t,n,r){var o,i=!1,a=this;if(!a.editor.removed){if("mcefocus"!==e.toLowerCase()&&(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?Fy(a.editor):a.editor.focus()),r=a.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;var c=e.toLowerCase();if(o=a.commands.exec[c])return o(c,t,n),a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(zH(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),i=!0,!1})),i)return i;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{i=a.editor.getDoc().execCommand(e,t,n)}catch(u){}return!!i&&(a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},e.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(n){}return!1}},e.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(n){}}},e.prototype.addCommands=function(e,t){void 0===t&&(t="exec");var n=this;zH(e,(function(e,r){zH(r.toLowerCase().split(","),(function(r){n.commands[t][r]=e}))}))},e.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,o,i,a){return t.call(n||r.editor,o,i,a)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(t){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(e){var t=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":T,"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},mceFocus:function(t,n,r){hb(e,r)},"Cut,Copy,Paste":function(n){var r,o=e.getDoc();try{t.execNativeCommand(n)}catch(a){r=!0}if("paste"!==n||o.queryCommandEnabled(n)||(r=!0),r||!o.queryCommandSupported(n)){var i=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");en.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:i,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),zH("left,center,right,justify".split(","),(function(t){r!==t&&e.formatter.remove("align"+t)})),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r;t.execNativeCommand(n);var o=e.dom.getParent(e.selection.getNode(),"ol,ul");o&&(r=o.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(t.storeSelection(),e.dom.split(r,o),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,{value:r})},FontName:function(t,n,r){hH(e,r)},FontSize:function(t,n,r){yH(e,r)},LineHeight:function(t,n,r){kH(e,r)},Lang:function(e,n,r){t.toggleFormat(e,{value:r.code,customValue:r.customCode})},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,o){var i=o||e.selection.getNode();i!==e.getBody()&&(t.storeSelection(),e.dom.remove(i,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var o=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&o++===r)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){xH(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var o=e.getContent();e.setContent(o.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(t,n,r){KP(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){gN(e,t)},mceRepaint:T,InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){"string"===typeof r&&(r={href:r});var o=e.dom.getParent(e.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),o&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,o)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),io);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return DP(e,r),!0}});var n=function(t){return function(){var n=e.selection,r=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks(),o=CH(r,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==SH(o,!0)}};t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return lN(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",(function(){return vH(e)}),this),t.addQueryValueHandler("FontSize",(function(){return bH(e)}),this),t.addQueryValueHandler("LineHeight",(function(){return wH(e)}),this)},e}(),OH="data-mce-contenteditable",EH=function(e,t,n){Cl(e,t)&&!1===n?zl(e,t):n&&_l(e,t)},AH=function(e,t,n){try{e.getDoc().execCommand(t,!1,String(n))}catch(r){}},DH=function(e,t){e.dom.contentEditable=t?"true":"false"},MH=function(e){Q(Tl(e,'*[contenteditable="true"]'),(function(e){vo(e,OH,"true"),DH(e,!1)}))},RH=function(e){Q(Tl(e,"*["+OH+'="true"]'),(function(e){_o(e,OH),DH(e,!0)}))},NH=function(e){q.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")}))},BH=function(e){e.selection.setRng(e.selection.getRng())},PH=function(e,t){var n=wn.fromDom(e.getBody());EH(n,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),NH(e),e.readonly=!0,DH(n,!1),MH(n)):(e.readonly=!1,DH(n,!0),RH(n),AH(e,"StyleWithCSS",!1),AH(e,"enableInlineTableEditing",!1),AH(e,"enableObjectResizing",!1),mb(e)&&e.focus(),BH(e),e.nodeChanged())},LH=function(e){return e.readonly},IH=function(e){e.parser.addAttributeFilter("contenteditable",(function(t){LH(e)&&Q(t,(function(e){e.attr(OH,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(OH,(function(t){LH(e)&&Q(t,(function(e){e.attr("contenteditable",e.attr(OH))}))})),e.serializer.addTempAttr(OH)},HH=function(e){e.serializer?IH(e):e.on("PreInit",(function(){IH(e)}))},FH=function(e){return"click"===e.type},jH=function(e,t){var n=function(t){return Rn(t,wn.fromDom(e.getBody()))};return Oi(t,"a",n).bind((function(e){return wo(e,"href")}))},VH=function(e,t){if(FH(t)&&!tv.metaKeyPressed(t)){var n=wn.fromDom(t.target);jH(e,n).each((function(n){if(t.preventDefault(),/^#/.test(n)){var r=e.dom.select(n+',[name="'+ct(n,"#")+'"]');r.length&&e.selection.scrollIntoView(r[0],!0)}else window.open(n,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")}))}},UH=function(e){e.on("ShowCaret",(function(t){LH(e)&&t.preventDefault()})),e.on("ObjectSelected",(function(t){LH(e)&&t.preventDefault()}))},qH=gn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),WH=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||I}return e.isNative=function(e){return!!qH[e.toLowerCase()]},e.prototype.fire=function(e,t){var n=e.toLowerCase(),r=Xc(n,t||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(r);var o=this.bindings[n];if(o)for(var i=0,a=o.length;i<a;i++){var c=o[i];if(!c.removed){if(c.once&&this.off(n,c.func),r.isImmediatePropagationStopped())return r;if(!1===c.func.call(this.scope,r))return r.preventDefault(),r}}return r},e.prototype.on=function(e,t,n,r){if(!1===t&&(t=I),t){var o={func:t,removed:!1};r&&gn.extend(o,r);var i=e.toLowerCase().split(" "),a=i.length;while(a--){var c=i[a],u=this.bindings[c];u||(u=[],this.toggleEvent(c,!0)),u=n?$e([o],u,!0):$e($e([],u,!0),[o],!1),this.bindings[c]=u}}return this},e.prototype.off=function(e,t){var n=this;if(e){var r=e.toLowerCase().split(" "),o=r.length;while(o--){var i=r[o],a=this.bindings[i];if(!i)return _e(this.bindings,(function(e,t){n.toggleEvent(t,!1),delete n.bindings[t]})),this;if(a){if(t){var c=te(a,(function(e){return e.func===t}));a=c.fail,this.bindings[i]=a,Q(c.pass,(function(e){e.removed=!0}))}else a.length=0;a.length||(this.toggleEvent(e,!1),delete this.bindings[i])}}}else _e(this.bindings,(function(e,t){n.toggleEvent(t,!1)})),this.bindings={};return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),$H=function(e){return e._eventDispatcher||(e._eventDispatcher=new WH({scope:e,toggleEvent:function(t,n){WH.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},GH={fire:function(e,t,n){var r=this;if(r.removed&&"remove"!==e&&"detach"!==e)return t;var o=$H(r).fire(e,t);if(!1!==n&&r.parent){var i=r.parent();while(i&&!o.isPropagationStopped())i.fire(e,o,!1),i=i.parent()}return o},on:function(e,t,n){return $H(this).on(e,t,n)},off:function(e,t){return $H(this).off(e,t)},once:function(e,t){return $H(this).once(e,t)},hasEventListeners:function(e){return $H(this).has(e)}},KH=js.DOM,XH=function(e,t){if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t))return e.getDoc().documentElement;var n=nm(e);return n?(e.eventRoot||(e.eventRoot=KH.select(n)[0]),e.eventRoot):e.getBody()},YH=function(e){return!e.hidden&&!LH(e)},JH=function(e,t,n){YH(e)?e.fire(t,n):LH(e)&&VH(e,n)},ZH=function(e,t){var n;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed){var r=XH(e,t);if(nm(e)){if(eR||(eR={},e.editorManager.on("removeEditor",(function(){e.editorManager.activeEditor||eR&&(_e(eR,(function(t,n){e.dom.unbind(XH(e,n))})),eR=null)}))),eR[t])return;n=function(n){var r=n.target,o=e.editorManager.get(),i=o.length;while(i--){var a=o[i].getBody();(a===r||KH.isChildOf(r,a))&&JH(o[i],t,n)}},eR[t]=n,KH.bind(r,t,n)}else n=function(n){JH(e,t,n)},KH.bind(r,t,n),e.delegates[t]=n}},QH=qe(qe({},GH),{bindPendingEventDelegates:function(){var e=this;gn.each(e._pendingNativeEvents,(function(t){ZH(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(n.removed||(t?n.initialized?ZH(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(XH(n,e),e,n.delegates[e]),delete n.delegates[e])))},unbindAllNativeEvents:function(){var e=this,t=e.getBody(),n=e.dom;e.delegates&&(_e(e.delegates,(function(t,n){e.dom.unbind(XH(e,n),n,t)})),delete e.delegates),!e.inline&&t&&n&&(t.onload=null,n.unbind(e.getWin()),n.unbind(e.getDoc())),n&&(n.unbind(t),n.unbind(e.getContainer()))}}),eF=["design","readonly"],tF=function(e,t,n,r){var o=n[t.get()],i=n[r];try{i.activate()}catch(vj){return void console.error("problem while activating editor mode "+r+":",vj)}o.deactivate(),o.editorReadOnly!==i.editorReadOnly&&PH(e,i.editorReadOnly),t.set(r),Wh(e,r)},nF=function(e,t,n,r){if(r!==n.get()){if(!Me(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?tF(e,n,t,r):e.on("init",(function(){return tF(e,n,t,r)}))}},rF=function(e,t,n){var r;if(Y(eF,t))throw new Error("Cannot override default mode "+t);return qe(qe({},e),(r={},r[t]=qe(qe({},n),{deactivate:function(){try{n.deactivate()}catch(vj){console.error("problem while deactivating editor mode "+t+":",vj)}}}),r))},oF=function(e){var t=Ys("design"),n=Ys({design:{activate:T,deactivate:T,editorReadOnly:!1},readonly:{activate:T,deactivate:T,editorReadOnly:!0}});return HH(e),UH(e),{isReadOnly:function(){return LH(e)},set:function(r){return nF(e,n.get(),t,r)},get:function(){return t.get()},register:function(e,t){n.set(rF(n.get(),e,t))}}},iF=gn.each,aF=gn.explode,cF={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},uF=gn.makeMap("alt,ctrl,shift,meta,access"),sF=function(e){var t,n={};iF(aF(e.toLowerCase(),"+"),(function(e){e in uF?n[e]=!0:/^[0-9]{2,}$/.test(e)?n.keyCode=parseInt(e,10):(n.charCode=e.charCodeAt(0),n.keyCode=cF[e]||e.toUpperCase().charCodeAt(0))}));var r=[n.keyCode];for(t in uF)n[t]?r.push(t):n[t]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,en.mac?n.ctrl=!0:n.shift=!0),n.meta&&(en.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n},lF=function(){function e(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",(function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(iF(t.shortcuts,(function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0})),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))}))}return e.prototype.add=function(e,t,n,r){var o=this,i=o.normalizeCommandFunc(n);return iF(aF(gn.trim(e)),(function(e){var n=o.createShortcut(e,t,i,r);o.shortcuts[n.id]=n})),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},e.prototype.normalizeCommandFunc=function(e){var t=this,n=e;return"string"===typeof n?function(){t.editor.execCommand(n,!1,null)}:gn.isArray(n)?function(){t.editor.execCommand(n[0],n[1],n[2])}:n},e.prototype.createShortcut=function(e,t,n,r){var o=gn.map(aF(e,">"),sF);return o[o.length-1]=gn.extend(o[o.length-1],{func:n,scope:r||this.editor}),gn.extend(o[0],{desc:this.editor.translate(t),subpatterns:o.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123},e.prototype.matchShortcut=function(e,t){return!!t&&(t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&(t.alt===e.altKey&&t.shift===e.shiftKey&&(!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0))))},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),fF=function(){var e={},t={},n={},r={},o={},i={},a={},c=function(e,t){return function(n,r){return e[n.toLowerCase()]=qe(qe({},r),{type:t})}},u=function(e,t){return r[e.toLowerCase()]=t};return{addButton:c(e,"button"),addGroupToolbarButton:c(e,"grouptoolbarbutton"),addToggleButton:c(e,"togglebutton"),addMenuButton:c(e,"menubutton"),addSplitButton:c(e,"splitbutton"),addMenuItem:c(t,"menuitem"),addNestedMenuItem:c(t,"nestedmenuitem"),addToggleMenuItem:c(t,"togglemenuitem"),addAutocompleter:c(n,"autocompleter"),addContextMenu:c(o,"contextmenu"),addContextToolbar:c(i,"contexttoolbar"),addContextForm:c(i,"contextform"),addSidebar:c(a,"sidebar"),addIcon:u,getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:o,contextToolbars:i,sidebars:a}}}},dF=function(){var e=fF();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}},mF=js.DOM,gF=gn.extend,pF=gn.each,hF=gn.resolve,vF=en.ie,yF=function(){function e(e,t,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,gF(this,QH),this.settings=sE(this,e,this.documentBaseUrl,n.defaultSettings,t),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(Xs.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),js.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),ll.languageLoad=this.settings.language_load,ll.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new Fb(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new lF(this),this.editorCommands=new TH(this),this.settings.cache_suffix&&(en.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:dF(),styleSheetLoader:void 0,show:T,hide:T,enable:T,disable:T,isDisabled:I};var o=this,i=oF(o);this.mode=i,this.setMode=i.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Rs.overrideDefaults((function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}}))}return e.prototype.render=function(){tH(this)},e.prototype.focus=function(e){this.execCommand("mceFocus",!1,e)},e.prototype.hasFocus=function(){return db(this)},e.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,o=this,i=o.settings[e];if(i)return o.callbackLookup&&(r=o.callbackLookup[e])&&(i=r.func,r=r.scope),"string"===typeof i&&(r=i.replace(/\.\w+$/,""),r=r?hF(r):0,i=hF(i),o.callbackLookup=o.callbackLookup||{},o.callbackLookup[e]={func:i,scope:r}),i.apply(r||o,t)},e.prototype.translate=function(e){return sl.translate(e)},e.prototype.getParam=function(e,t,n){return mE(this,e,t,n)},e.prototype.hasPlugin=function(e,t){var n=Y(xm(this).split(/[ ,]/),e);return!!n&&(!t||void 0!==AE.get(e))},e.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},e.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},e.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},e.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},e.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},e.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},e.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},e.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},e.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},e.prototype.show=function(){var e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable="true":(mF.show(e.getContainer()),mF.hide(e.id)),e.load(),e.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(vF&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(mF.hide(e.getContainer()),mF.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},e.prototype.load=function(e){var t,n=this,r=n.getElement();if(n.removed)return"";if(r){e=e||{},e.load=!0;var o=Zr(r)?r.value:r.innerHTML;return t=n.setContent(o,e),e.element=r,e.no_events||n.fire("LoadContent",e),e.element=r=null,t}},e.prototype.save=function(e){var t,n,r=this,o=r.getElement();if(o&&r.initialized&&!r.removed)return e=e||{},e.save=!0,e.element=o,t=e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,Zr(o)?o.value=t:(!e.is_removing&&r.inline||(o.innerHTML=t),(n=mF.getParent(r.id,"form"))&&pF(n.elements,(function(e){if(e.name===r.id)return e.value=t,!1}))),e.element=o=null,!1!==e.set_dirty&&r.setDirty(!1),t},e.prototype.setContent=function(e,t){return xO(this,e,t)},e.prototype.getContent=function(e){return _O(this,e)},e.prototype.insertContent=function(e,t){t&&(e=gF({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){void 0===e?xO(this,this.startContent,{format:"raw"}):xO(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},e.prototype.isDirty=function(){return!this.isNotDirty},e.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},e.prototype.getContainer=function(){var e=this;return e.container||(e.container=mF.get(e.editorContainer||e.id+"_parent")),e.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=mF.get(this.id)),this.targetElm},e.prototype.getWin=function(){var e,t=this;return t.contentWindow||(e=t.iframeElement,e&&(t.contentWindow=e.contentWindow)),t.contentWindow},e.prototype.getDoc=function(){var e,t=this;return t.contentDocument||(e=t.getWin(),e&&(t.contentDocument=e.document)),t.contentDocument},e.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},e.prototype.convertURL=function(e,t,n){var r=this,o=r.settings;return o.urlconverter_callback?r.execCallback("urlconverter_callback",e,n,!0,t):!o.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:o.relative_urls?r.documentBaseURI.toRelative(e):(e=r.documentBaseURI.toAbsolute(e,o.remove_script_host),e)},e.prototype.addVisual=function(e){nH(this,e)},e.prototype.remove=function(){EO(this)},e.prototype.destroy=function(e){AO(this,e)},e.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},e.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},e.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},e.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},e.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},e.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},e}(),bF=js.DOM,wF=gn.explode,kF=gn.each,_F=gn.extend,xF=0,zF=!1,CF=[],SF=[],TF=function(e){return"length"!==e},OF=function(e){var t=e.type;kF(RF.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e);break}}))},EF=function(e){e!==zF&&(e?Rs(window).on("resize scroll",OF):Rs(window).off("resize scroll",OF),zF=e)},AF=function(e){var t=SF;delete CF[e.id];for(var n=0;n<CF.length;n++)if(CF[n]===e){CF.splice(n,1);break}return SF=ne(SF,(function(t){return e!==t})),RF.activeEditor===e&&(RF.activeEditor=SF.length>0?SF[0]:null),RF.focusedEditor===e&&(RF.focusedEditor=null),t.length!==SF.length},DF=function(e){return e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(AF(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0,e=null),e},MF="CSS1Compat"!==document.compatMode,RF=qe(qe({},GH),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Rs,majorVersion:"5",minorVersion:"10.5",releaseDate:"2022-05-25",editors:CF,i18n:sl,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t,n=this,r="";t=Fb.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/"));var o=window.tinymce||window.tinyMCEPreInit;if(o)e=o.base||o.baseURL,r=o.suffix;else{for(var i=document.getElementsByTagName("script"),a=0;a<i.length;a++){var c=i[a].src||"";if(""!==c){var u=c.substring(c.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(c)){-1!==u.indexOf(".min")&&(r=".min"),e=c.substring(0,c.lastIndexOf("/"));break}}}if(!e&&document.currentScript){c=document.currentScript.src;-1!==c.indexOf(".min")&&(r=".min"),e=c.substring(0,c.lastIndexOf("/"))}}n.baseURL=new Fb(t).toAbsolute(e),n.documentBaseURL=t,n.baseURI=new Fb(n.baseURL),n.suffix=r,nb(n)},overrideDefaults:function(e){var t=e.base_url;t&&this._setBaseUrl(t);var n=e.suffix;e.suffix&&(this.suffix=n),this.defaultSettings=e;var r=e.plugin_base_urls;void 0!==r&&_e(r,(function(e,t){ll.PluginManager.urls[t]=e}))},init:function(e){var t,n=this,r=gn.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),o=function(e,t){return e.inline&&t.tagName.toLowerCase()in r},i=function(e){var t=e.id;return t||(t=De(e,"name").filter((function(e){return!bF.get(e)})).getOrThunk(bF.uniqueId),e.setAttribute("id",t)),t},a=function(t){var r=e[t];if(r)return r.apply(n,[])},c=function(e,t){return t.constructor===RegExp?t.test(e.className):bF.hasClass(e,t)},u=function(e){var t=[];if(en.browser.isIE()&&en.browser.version.major<11)return UE("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(MF)return UE("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return kF(e.types,(function(e){t=t.concat(bF.select(e.selector))})),t;if(e.selector)return bF.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":var n=e.elements||"";n.length>0&&kF(wF(n),(function(e){var n=bF.get(e);n?t.push(n):kF(document.forms,(function(n){kF(n.elements,(function(n){n.name===e&&(e="mce_editor_"+xF++,bF.setAttrib(n,"id",e),t.push(n))}))}))}));break;case"textareas":case"specific_textareas":kF(bF.select("textarea"),(function(n){e.editor_deselector&&c(n,e.editor_deselector)||e.editor_selector&&!c(n,e.editor_selector)||t.push(n)}));break}return t},s=function(e){t=e},l=function(){var t,r=0,c=[],f=function(e,o,i){var a=new yF(e,o,n);c.push(a),a.on("init",(function(){++r===t.length&&s(c)})),a.targetElm=a.targetElm||i,a.render()};bF.unbind(window,"ready",l),a("onpageload"),t=Rs.unique(u(e)),e.types?kF(e.types,(function(n){gn.each(t,(function(t){return!bF.is(t,n.selector)||(f(i(t),_F({},e,n),t),!1)}))})):(gn.each(t,(function(e){DF(n.get(e.id))})),t=gn.grep(t,(function(e){return!n.get(e.id)})),0===t.length?s([]):kF(t,(function(t){o(e,t)?UE("Could not initialize inline editor on invalid inline target element",t):f(i(t),e,t)})))};return n.settings=e,bF.bind(window,"ready",l),new Ei((function(e){t?e(t):s=function(t){e(t)}}))},get:function(e){return 0===arguments.length?SF.slice(0):v(e)?ae(SF,(function(t){return t.id===e})).getOr(null):S(e)&&SF[e]?SF[e]:null},add:function(e){var t=this,n=CF[e.id];return n===e||(null===t.get(e.id)&&(TF(e.id)&&(CF[e.id]=e),CF.push(e),SF.push(e)),EF(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),tR||(tR=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",tR))),e},createEditor:function(e,t){return this.add(new yF(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!v(e))return n=e,w(r.get(n.id))?null:(AF(n)&&r.fire("RemoveEditor",{editor:n}),0===SF.length&&window.removeEventListener("beforeunload",tR),n.remove(),EF(SF.length>0),n);kF(bF.select(e),(function(e){n=r.get(e.id),n&&r.remove(n)}))}else for(t=SF.length-1;t>=0;t--)r.remove(SF[t])},execCommand:function(e,t,n){var r=this,o=r.get(n);switch(e){case"mceAddEditor":return r.get(n)||new yF(n,r.settings,r).render(),!0;case"mceRemoveEditor":return o&&o.remove(),!0;case"mceToggleEditor":return o?(o.isHidden()?o.show():o.hide(),!0):(r.execCommand("mceAddEditor",!1,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(e,t,n)},triggerSave:function(){kF(SF,(function(e){e.save()}))},addI18n:function(e,t){sl.add(e,t)},translate:function(e){return sl.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new Fb(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new Fb(this.baseURL)}});RF.setup();var NF,BF,PF=Math.min,LF=Math.max,IF=Math.round,HF=function(e,t,n){var r=t.x,o=t.y,i=e.w,a=e.h,c=t.w,u=t.h,s=(n||"").split("");return"b"===s[0]&&(o+=u),"r"===s[1]&&(r+=c),"c"===s[0]&&(o+=IF(u/2)),"c"===s[1]&&(r+=IF(c/2)),"b"===s[3]&&(o-=a),"r"===s[4]&&(r-=i),"c"===s[3]&&(o-=IF(a/2)),"c"===s[4]&&(r-=IF(i/2)),qF(r,o,i,a)},FF=function(e,t,n,r){var o,i;for(i=0;i<r.length;i++)if(o=HF(e,t,r[i]),o.x>=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},jF=function(e,t,n){return qF(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},VF=function(e,t){var n=LF(e.x,t.x),r=LF(e.y,t.y),o=PF(e.x+e.w,t.x+t.w),i=PF(e.y+e.h,t.y+t.h);return o-n<0||i-r<0?null:qF(n,r,o-n,i-r)},UF=function(e,t,n){var r=e.x,o=e.y,i=e.x+e.w,a=e.y+e.h,c=t.x+t.w,u=t.y+t.h,s=LF(0,t.x-r),l=LF(0,t.y-o),f=LF(0,i-c),d=LF(0,a-u);return r+=s,o+=l,n&&(i+=s,a+=l,r-=f,o-=d),i-=f,a-=d,qF(r,o,i-r,a-o)},qF=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},WF=function(e){return qF(e.left,e.top,e.width,e.height)},$F={inflate:jF,relativePosition:HF,findBestRelativePosition:FF,intersect:VF,clamp:UF,create:qF,fromClientRect:WF},GF=function(e,t,n){void 0===n&&(n=1e3);var r=!1,o=null,i=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r||(r=!0,null!==o&&(clearTimeout(o),o=null),e.apply(null,t))}},a=i(e),c=i(t),u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r||null!==o||(o=setTimeout((function(){return c.apply(null,e)}),n))};return{start:u,resolve:a,reject:c}},KF=function(){var e={},t={},n=function(n,r){var o='Script at URL "'+r+'" failed to load',i='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==e[n])return e[n];var a=new Ei((function(e,a){var c=GF(e,a);t[n]=c.resolve,Xs.ScriptLoader.loadScript(r,(function(){return c.start(i)}),(function(){return c.reject(o)}))}));return e[n]=a,a},r=function(n,r){void 0!==t[n]&&(t[n](r),delete t[n]),e[n]=Ei.resolve(r)};return{load:n,add:r}},XF=KF(),YF=gn.each,JF=gn.extend,ZF=function(){};ZF.extend=NF=function(e){var t=this,n=t.prototype,r=function(){var e,t,n,r=this;if(!BF&&(r.init&&r.init.apply(r,arguments),t=r.Mixins,t)){e=t.length;while(e--)n=t[e],n.init&&n.init.apply(r,arguments)}},o=function(){return this},i=function(e,t){return function(){var r=this,o=r._super;r._super=n[e];var i=t.apply(r,arguments);return r._super=o,i}};BF=!0;var a=new t;return BF=!1,e.Mixins&&(YF(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),n.Mixins&&(e.Mixins=n.Mixins.concat(e.Mixins))),e.Methods&&YF(e.Methods.split(","),(function(t){e[t]=o})),e.Properties&&YF(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){var t=this;return void 0!==e?(t[n]=e,t):t[n]}})),e.Statics&&YF(e.Statics,(function(e,t){r[t]=e})),e.Defaults&&n.Defaults&&(e.Defaults=JF({},n.Defaults,e.Defaults)),_e(e,(function(e,t){"function"===typeof e&&n[t]?a[t]=i(t,e):a[t]=e})),r.prototype=a,r.constructor=r,r.extend=NF,r};var QF,ej=Math.min,tj=Math.max,nj=Math.round,rj=function(e){var t={},n=0,r=0,o=0,i=function(e,t,n){var r,o,i;r=0,o=0,i=0,e/=255,t/=255,n/=255;var a=ej(e,ej(t,n)),c=tj(e,tj(t,n));if(a===c)return i=a,{h:0,s:0,v:100*i};var u=e===a?t-n:n===a?e-t:n-e;return r=e===a?3:n===a?1:5,r=60*(r-u/(c-a)),o=(c-a)/c,i=c,{h:nj(r),s:nj(100*o),v:nj(100*i)}},a=function(e,t,i){if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,i=parseInt(i,10)/100,t=tj(0,ej(t,1)),i=tj(0,ej(i,1)),0!==t){var a=e/60,c=i*t,u=c*(1-Math.abs(a%2-1)),s=i-c;switch(Math.floor(a)){case 0:n=c,r=u,o=0;break;case 1:n=u,r=c,o=0;break;case 2:n=0,r=c,o=u;break;case 3:n=0,r=u,o=c;break;case 4:n=u,r=0,o=c;break;case 5:n=c,r=0,o=u;break;default:n=r=o=0}n=nj(255*(n+s)),r=nj(255*(r+s)),o=nj(255*(o+s))}else n=r=o=nj(255*i)},c=function(){var e=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+e(n)+e(r)+e(o)},u=function(){return{r:n,g:r,b:o}},s=function(){return i(n,r,o)},l=function(e){var i;return"object"===typeof e?"r"in e?(n=e.r,r=e.g,o=e.b):"v"in e&&a(e.h,e.s,e.v):(i=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10)):(i=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16)):(i=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(i[1]+i[1],16),r=parseInt(i[2]+i[2],16),o=parseInt(i[3]+i[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,o=o<0?0:o>255?255:o,t};return e&&l(e),t.toRgb=u,t.toHsv=s,t.toHex=c,t.parse=l,t},oj=function(e){var t=JSON.stringify(e);return v(t)?t.replace(/[\u0080-\uFFFF]/g,(function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t})):t},ij={serialize:oj,parse:function(e){try{return JSON.parse(e)}catch(t){}}},aj={callbacks:{},count:0,send:function(e){var t=this,n=js.DOM,r=void 0!==e.count?e.count:t.count,o="tinymce_jsonp_"+r;t.callbacks[r]=function(i){n.remove(o),delete t.callbacks[r],e.callback(i)},n.add(n.doc.body,"script",{id:o,src:e.url,type:"text/javascript"}),t.count++}},cj=qe(qe({},GH),{send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||n++>1e4?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,n>1e4?"TIMED_OUT":"GENERAL",t,e),t=null):Pi.setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",cj.fire("beforeInitialize",{settings:e}),t=new XMLHttpRequest,t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&gn.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t=cj.fire("beforeSend",{xhr:t,settings:e}).xhr,t.send(e.data),!e.async)return r();Pi.setTimeout(r,10)}}),uj=gn.extend,sj=function(){function e(e){this.settings=uj({},e),this.count=0}return e.sendRPC=function(t){return(new e).send(t)},e.prototype.send=function(e){var t=e.error,n=e.success,r=uj(this.settings,e);r.success=function(e,o){e=ij.parse(e),"undefined"===typeof e&&(e={error:"JSON Parse error."}),e.error?t.call(r.error_scope||r.scope,e.error,o):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=ij.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",cj.send(r)},e}(),lj=function(){return function(){var e={},t=[],n={getItem:function(t){var n=e[t];return n||null},setItem:function(n,r){t.push(n),e[n]=String(r)},key:function(e){return t[e]},removeItem:function(n){t=t.filter((function(e){return e===n})),delete e[n]},clear:function(){t=[],e={}},length:0};return Object.defineProperty(n,"length",{get:function(){return t.length},configurable:!1,enumerable:!1}),n}()};try{var fj="__storage_test__";QF=window.localStorage,QF.setItem(fj,fj),QF.removeItem(fj)}catch(vj){QF=lj()}var dj=QF,mj={geom:{Rect:$F},util:{Promise:Ei,Delay:Pi,Tools:gn,VK:tv,URI:Fb,Class:ZF,EventDispatcher:WH,Observable:GH,I18n:sl,XHR:cj,JSON:ij,JSONRequest:sj,JSONP:aj,LocalStorage:dj,Color:rj,ImageUploader:rA},dom:{EventUtils:ru,Sizzle:ju,DomQuery:Rs,TreeWalker:Fi,TextSeeker:Xl,DOMUtils:js,ScriptLoader:Xs,RangeUtils:zv,Serializer:wO,StyleSheetLoader:Li,ControlSelection:rv,BookmarkManager:Ih,Selection:ET,Event:ru.Event},html:{Styles:Uc,Entities:Oc,Node:Eb,Schema:jc,SaxParser:Gb,DomParser:cO,Writer:ow,Serializer:iw},Env:en,AddOnManager:ll,Annotator:Lh,Formatter:pA,UndoManager:bA,EditorCommands:TH,WindowManager:RE,NotificationManager:EE,EditorObservable:QH,Shortcuts:lF,Editor:yF,FocusManager:Vy,EditorManager:RF,DOM:js.DOM,ScriptLoader:Xs.ScriptLoader,PluginManager:AE,ThemeManager:DE,IconManager:pE,Resource:XF,trim:gn.trim,isArray:gn.isArray,is:gn.is,toArray:gn.toArray,makeMap:gn.makeMap,each:gn.each,map:gn.map,grep:gn.grep,inArray:gn.inArray,extend:gn.extend,create:gn.create,walk:gn.walk,createNS:gn.createNS,resolve:gn.resolve,explode:gn.explode,_addCacheSuffix:gn._addCacheSuffix,isOpera:en.opera,isWebKit:en.webkit,isIE:en.ie,isGecko:en.gecko,isMac:en.mac},gj=gn.extend(RF,mj),pj=function(t){try{e.exports=t}catch(n){}},hj=function(e){window.tinymce=e,window.tinyMCE=e};hj(gj),pj(gj)})()}).call(this,n("c8ba"))},e8b0:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return e},n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},r="\ufeff",o=function(e){return e.replace(/\uFEFF/g,"")},i=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},a="[!-#%-*,-\\/:;?@\\[-\\]_{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]",c={aletter:"[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",midnumlet:"[-'\\.‘’․﹒'.]",midletter:"[:··״‧︓﹕:]",midnum:"[±+*/,;;։،؍٬߸⁄︐︔﹐﹔,;]",numeric:"[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",cr:"\\r",lf:"\\n",newline:"[\v\f
\u2028\u2029]",extend:"[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-゙゚︦]",format:"[-឴឵---\ufeff-]",katakana:"[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",extendnumlet:"[=_‿⁀⁔︳︴﹍-﹏_∀-⋿<>]",punctuation:a},u={ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},s=[new RegExp(c.aletter),new RegExp(c.midnumlet),new RegExp(c.midletter),new RegExp(c.midnum),new RegExp(c.numeric),new RegExp(c.cr),new RegExp(c.lf),new RegExp(c.newline),new RegExp(c.extend),new RegExp(c.format),new RegExp(c.katakana),new RegExp(c.extendnumlet),new RegExp("@")],l="",f=new RegExp("^"+c.punctuation+"$"),d=/^\s+$/,m=s,g=u.OTHER,p=function(e){for(var t=g,n=m.length,r=0;r<n;++r){var o=m[r];if(o&&o.test(e)){t=r;break}}return t},h=function(e){var t={};return function(n){if(t[n])return t[n];var r=e(n);return t[n]=r,r}},v=function(e){var t=h(p);return i(e,t)},y=function(e,t){var n=e[t],r=e[t+1];if(t<0||t>e.length-1&&0!==t)return!1;if(n===u.ALETTER&&r===u.ALETTER)return!1;var o=e[t+2];if(n===u.ALETTER&&(r===u.MIDLETTER||r===u.MIDNUMLET||r===u.AT)&&o===u.ALETTER)return!1;var i=e[t-1];return(n!==u.MIDLETTER&&n!==u.MIDNUMLET&&r!==u.AT||r!==u.ALETTER||i!==u.ALETTER)&&((n!==u.NUMERIC&&n!==u.ALETTER||r!==u.NUMERIC&&r!==u.ALETTER)&&((n!==u.MIDNUM&&n!==u.MIDNUMLET||r!==u.NUMERIC||i!==u.NUMERIC)&&((n!==u.NUMERIC||r!==u.MIDNUM&&r!==u.MIDNUMLET||o!==u.NUMERIC)&&(n!==u.EXTEND&&n!==u.FORMAT&&i!==u.EXTEND&&i!==u.FORMAT&&r!==u.EXTEND&&r!==u.FORMAT&&((n!==u.CR||r!==u.LF)&&(n===u.NEWLINE||n===u.CR||n===u.LF||(r===u.NEWLINE||r===u.CR||r===u.LF||(n!==u.KATAKANA||r!==u.KATAKANA)&&((r!==u.EXTENDNUMLET||n!==u.ALETTER&&n!==u.NUMERIC&&n!==u.KATAKANA&&n!==u.EXTENDNUMLET)&&((n!==u.EXTENDNUMLET||r!==u.ALETTER&&r!==u.NUMERIC&&r!==u.KATAKANA)&&n!==u.AT)))))))))},b=l,w=d,k=f,_=function(e){return"http"===e||"https"===e},x=function(e,t){var n;for(n=t;n<e.length;n++)if(w.test(e[n]))break;return n},z=function(e,t){var n=x(e,t+1),r=e.slice(t+1,n).join(b);return"://"===r.substr(0,3)?n:t},C=function(e,t,n,r){for(var o=[],i=[],a=0;a<n.length;++a)if(i.push(e[a]),y(n,a)){var c=t[a];if((r.includeWhitespace||!w.test(c))&&(r.includePunctuation||!k.test(c))){var u=a-i.length+1,s=a+1,l=t.slice(u,s).join(b);if(_(l)){var f=z(t,a),d=e.slice(s,f);Array.prototype.push.apply(i,d),a=f}o.push(i)}i=[]}return o},S=function(){return{includeWhitespace:!1,includePunctuation:!1}},T=function(e,t,o){o=n(n({},S()),o);for(var i=[],a=[],c=0;c<e.length;c++){var u=t(e[c]);u!==r&&(i.push(e[c]),a.push(u))}var s=v(a);return C(i,a,s,o)},O=T,E=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),A=function(e,t){var n=t.getBlockElements(),r=t.getShortEndedElements(),i=function(e){return n[e.nodeName]||r[e.nodeName]},a=[],c="",u=new E(e,e);while(e=u.next())3===e.nodeType?c+=o(e.data):i(e)&&c.length&&(a.push(c),c="");return c.length&&a.push(c),a},D=function(e){return e.replace(/\u200B/g,"")},M=function(e){return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length},R=function(e,n){var r=D(A(e,n).join("\n"));return O(r.split(""),t).length},N=function(e,t){var n=A(e,t).join("");return M(n)},B=function(e,t){var n=A(e,t).join("").replace(/\s/g,"");return M(n)},P=function(e,t){return function(){return t(e.getBody(),e.schema)}},L=function(e,t){return function(){return t(e.selection.getRng().cloneContents(),e.schema)}},I=function(e){return P(e,R)},H=function(e){return{body:{getWordCount:I(e),getCharacterCount:P(e,N),getCharacterCountWithoutSpaces:P(e,B)},selection:{getWordCount:L(e,R),getCharacterCount:L(e,N),getCharacterCountWithoutSpaces:L(e,B)},getCount:I(e)}},F=function(e,t){e.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(t.body.getWordCount()),String(t.selection.getWordCount())],["Characters (no spaces)",String(t.body.getCharacterCountWithoutSpaces()),String(t.selection.getCharacterCountWithoutSpaces())],["Characters",String(t.body.getCharacterCount()),String(t.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},j=function(e,t){e.addCommand("mceWordCount",(function(){return F(e,t)}))},V=tinymce.util.Tools.resolve("tinymce.util.Delay"),U=function(e,t){e.fire("wordCountUpdate",{wordCount:{words:t.body.getWordCount(),characters:t.body.getCharacterCount(),charactersWithoutSpaces:t.body.getCharacterCountWithoutSpaces()}})},q=function(e,t){U(e,t)},W=function(e,t,n){var r=V.debounce((function(){return q(e,t)}),n);e.on("init",(function(){q(e,t),V.setEditorTimeout(e,(function(){e.on("SetContent BeforeAddUndo Undo Redo ViewUpdate keyup",r)}),0)}))},$=function(e){var t=function(){return e.execCommand("mceWordCount")};e.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:t}),e.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:t})};function G(t){void 0===t&&(t=300),e.add("wordcount",(function(e){var n=H(e);return j(e,n),$(e),W(e,n,t),n}))}G()})()},ef1f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t){e.focus(),e.undoManager.transact((function(){e.setContent(t)})),e.selection.setCursorLocation(),e.nodeChanged()},n=function(e){return e.getContent({source_view:!0})},r=function(e){var r=n(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:r},onSubmit:function(n){t(e,n.getData().code),n.close()}})},o=function(e){e.addCommand("mceCodeEditor",(function(){r(e)}))},i=function(e){var t=function(){return e.execCommand("mceCodeEditor")};e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:t}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:t})};function a(){e.add("code",(function(e){return o(e),i(e),{}}))}a()})()},f034:function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return{isFullscreen:function(){return null!==e.get()}}},r=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},o=function(e){return function(t){return r(t)===e}},i=function(e){return function(t){return typeof t===e}},a=o("string"),c=o("array"),u=i("boolean"),s=function(e){return null===e||void 0===e},l=function(e){return!s(e)},f=i("function"),d=i("number"),m=function(){},g=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},p=function(e,t){return function(n){return e(t(n))}},h=function(e){return function(){return e}},v=function(e){return e};function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}var b=h(!1),w=h(!0),k=function(){return _},_=function(){var e=function(e){return e()},t=v,n={fold:function(e,t){return e()},isSome:b,isNone:w,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:h(null),getOrUndefined:h(void 0),or:t,orThunk:e,map:k,each:m,bind:k,exists:b,forall:w,filter:function(){return k()},toArray:function(){return[]},toString:h("none()")};return n}(),x=function(e){var t=h(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:w,isNone:b,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return x(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:_},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},z=function(e){return null===e||void 0===e?_:x(e)},C={some:x,none:k,from:z},S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},S.apply(this,arguments)},T=function(t){var n=e(C.none()),r=function(){return n.get().each(t)},o=function(){r(),n.set(C.none())},i=function(){return n.get().isSome()},a=function(){return n.get()},c=function(e){r(),n.set(C.some(e))};return{clear:o,isSet:i,get:a,set:c}},O=function(){return T((function(e){return e.unbind()}))},E=function(){var e=T(m),t=function(t){return e.get().each(t)};return S(S({},e),{on:t})},A=Array.prototype.push,D=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},M=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];t(o,n)}},R=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},N=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return C.some(i);if(n(i,r))break}return C.none()},B=function(e,t){return N(e,t,b)},P=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!c(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);A.apply(t,e[n])}return t},L=function(e,t){return P(D(e,t))},I=function(e,t){return t>=0&&t<e.length?C.some(e[t]):C.none()},H=function(e){return I(e,0)},F=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return C.none()},j=Object.keys,V=function(e,t){for(var n=j(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];t(a,i)}},U=function(e,t){return-1!==e.indexOf(t)},q=function(e){return void 0!==e.style&&f(e.style.getPropertyValue)},W=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return K(r.childNodes[0])},$=function(e,t){var n=t||document,r=n.createElement(e);return K(r)},G=function(e,t){var n=t||document,r=n.createTextNode(e);return K(r)},K=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},X=function(e,t,n){return C.from(e.dom.elementFromPoint(t,n)).map(K)},Y={fromHtml:W,fromTag:$,fromText:G,fromDom:K,fromPoint:X};"undefined"!==typeof window?window:Function("return this;")();var J=9,Z=11,Q=1,ee=3,te=function(e){return e.dom.nodeType},ne=function(e){return function(t){return te(t)===e}},re=ne(Q),oe=ne(ee),ie=ne(J),ae=ne(Z),ce=function(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}},ue=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),c=a||r("(pointer:coarse)"),u=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!u,l=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!s&&!u&&!l;return{isiPad:h(o),isiPhone:h(i),isTablet:h(u),isPhone:h(s),isTouch:h(c),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:h(l),isDesktop:h(f)}},se=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},le=function(e,t){var n=se(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return me(r(1),r(2))},fe=function(e,t){var n=String(t).toLowerCase();return 0===e.length?de():le(e,n)},de=function(){return me(0,0)},me=function(e,t){return{major:e,minor:t}},ge={nu:me,detect:fe,unknown:de},pe=function(e,t){return F(t.brands,(function(t){var n=t.brand.toLowerCase();return B(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:ge.nu(parseInt(t.version,10),0)}}))}))},he=function(e,t){var n=String(t).toLowerCase();return B(e,(function(e){return e.search(n)}))},ve=function(e,t){return he(e,t).map((function(e){var n=ge.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ye=function(e,t){return he(e,t).map((function(e){var n=ge.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},be=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,we=function(e){return function(t){return U(t,e)}},ke=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return U(e,"edge/")&&U(e,"chrome")&&U(e,"safari")&&U(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,be],search:function(e){return U(e,"chrome")&&!U(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return U(e,"msie")||U(e,"trident")}},{name:"Opera",versionRegexes:[be,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:we("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:we("firefox")},{name:"Safari",versionRegexes:[be,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(U(e,"safari")||U(e,"mobile/"))&&U(e,"applewebkit")}}],_e=[{name:"Windows",search:we("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return U(e,"iphone")||U(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:we("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:we("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:we("linux"),versionRegexes:[]},{name:"Solaris",search:we("sunos"),versionRegexes:[]},{name:"FreeBSD",search:we("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:we("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],xe={browsers:h(ke),oses:h(_e)},ze="Edge",Ce="Chrome",Se="IE",Te="Opera",Oe="Firefox",Ee="Safari",Ae=function(){return De({current:void 0,version:ge.unknown()})},De=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(ze),isChrome:r(Ce),isIE:r(Se),isOpera:r(Te),isFirefox:r(Oe),isSafari:r(Ee)}},Me={unknown:Ae,nu:De,edge:h(ze),chrome:h(Ce),ie:h(Se),opera:h(Te),firefox:h(Oe),safari:h(Ee)},Re="Windows",Ne="iOS",Be="Android",Pe="Linux",Le="OSX",Ie="Solaris",He="FreeBSD",Fe="ChromeOS",je=function(){return Ve({current:void 0,version:ge.unknown()})},Ve=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Re),isiOS:r(Ne),isAndroid:r(Be),isOSX:r(Le),isLinux:r(Pe),isSolaris:r(Ie),isFreeBSD:r(He),isChromeOS:r(Fe)}},Ue={unknown:je,nu:Ve,windows:h(Re),ios:h(Ne),android:h(Be),linux:h(Pe),osx:h(Le),solaris:h(Ie),freebsd:h(He),chromeos:h(Fe)},qe=function(e,t,n){var r=xe.browsers(),o=xe.oses(),i=t.bind((function(e){return pe(r,e)})).orThunk((function(){return ve(r,e)})).fold(Me.unknown,Me.nu),a=ye(o,e).fold(Ue.unknown,Ue.nu),c=ue(a,i,e,n);return{browser:i,os:a,deviceType:c}},We={detect:qe},$e=function(e){return window.matchMedia(e).matches},Ge=ce((function(){return We.detect(navigator.userAgent,C.from(navigator.userAgentData),$e)})),Ke=function(){return Ge()},Xe=function(e,t){var n=e.dom;if(n.nodeType!==Q)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Ye=function(e){return e.nodeType!==Q&&e.nodeType!==J&&e.nodeType!==Z||0===e.childElementCount},Je=function(e,t){var n=void 0===t?document:t.dom;return Ye(n)?[]:D(n.querySelectorAll(e),Y.fromDom)},Ze=function(e,t){return e.dom===t.dom},Qe=function(e){return Y.fromDom(e.dom.ownerDocument)},et=function(e){return ie(e)?e:Qe(e)},tt=function(e){return C.from(e.dom.parentNode).map(Y.fromDom)},nt=function(e,t){var n=f(t)?t:b,r=e.dom,o=[];while(null!==r.parentNode&&void 0!==r.parentNode){var i=r.parentNode,a=Y.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o},rt=function(e){var t=function(t){return R(t,(function(t){return!Ze(e,t)}))};return tt(e).map(ot).map(t).getOr([])},ot=function(e){return D(e.dom.childNodes,Y.fromDom)},it=function(e){return ae(e)&&l(e.dom.host)},at=f(Element.prototype.attachShadow)&&f(Node.prototype.getRootNode),ct=h(at),ut=at?function(e){return Y.fromDom(e.dom.getRootNode())}:et,st=function(e){var t=ut(e);return it(t)?C.some(t):C.none()},lt=function(e){return Y.fromDom(e.dom.host)},ft=function(e){if(ct()&&l(e.target)){var t=Y.fromDom(e.target);if(re(t)&&dt(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return H(n)}}return C.from(e.target)},dt=function(e){return l(e.dom.shadowRoot)},mt=function(e){var t=oe(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return st(Y.fromDom(t)).fold((function(){return n.body.contains(t)}),p(mt,lt))},gt=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return Y.fromDom(t)},pt=function(e,t,n){if(!(a(n)||u(n)||d(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},ht=function(e,t,n){pt(e.dom,t,n)},vt=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},yt=function(e,t){e.dom.removeAttribute(t)},bt=function(e,t,n){if(!a(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);q(e)&&e.style.setProperty(t,n)},wt=function(e,t){var n=e.dom;V(t,(function(e,t){bt(n,t,e)}))},kt=function(e,t){var n=e.dom,r=window.getComputedStyle(n),o=r.getPropertyValue(t);return""!==o||mt(e)?o:_t(n,t)},_t=function(e,t){return q(e)?e.style.getPropertyValue(t):""},xt=function(e,t,n,r,o,i,a){return{target:e,x:t,y:n,stop:r,prevent:o,kill:i,raw:a}},zt=function(e){var t=Y.fromDom(ft(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},o=g(r,n);return xt(t,e.clientX,e.clientY,n,r,o,e)},Ct=function(e,t){return function(n){e(n)&&t(zt(n))}},St=function(e,t,n,r,o){var i=Ct(n,r);return e.dom.addEventListener(t,i,o),{unbind:y(Ot,e,t,i,o)}},Tt=function(e,t,n,r){return St(e,t,n,r,!1)},Ot=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Et=w,At=function(e,t,n){return Tt(e,t,Et,n)},Dt=function(e,t){var n=function(n,r){return Dt(e+n,t+r)};return{left:e,top:t,translate:n}},Mt=Dt,Rt=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Mt(n,r)},Nt=function(e){var t=void 0===e?window:e;return Ke().browser.isFirefox()?C.none():C.from(t["visualViewport"])},Bt=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Pt=function(e){var t=void 0===e?window:e,n=t.document,r=Rt(Y.fromDom(n));return Nt(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,o=e.clientHeight;return Bt(r.left,r.top,n,o)}),(function(e){return Bt(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},Lt=function(e,t,n){return Nt(n).map((function(n){var r=function(e){return t(zt(e))};return n.addEventListener(e,r),{unbind:function(){return n.removeEventListener(e,r)}}})).getOrThunk((function(){return{unbind:m}}))},It=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Ht=tinymce.util.Tools.resolve("tinymce.Env"),Ft=tinymce.util.Tools.resolve("tinymce.util.Delay"),jt=function(e,t){e.fire("FullscreenStateChanged",{state:t})},Vt=function(e){return e.getParam("fullscreen_native",!1,"boolean")},Ut=function(e){var t=Y.fromDom(e.getElement());return st(t).map(lt).getOrThunk((function(){return gt(Qe(t))}))},qt=function(e){return void 0!==e.fullscreenElement?e.fullscreenElement:void 0!==e.msFullscreenElement?e.msFullscreenElement:void 0!==e.webkitFullscreenElement?e.webkitFullscreenElement:null},Wt=function(){return void 0!==document.fullscreenElement?"fullscreenchange":void 0!==document.msFullscreenElement?"MSFullscreenChange":void 0!==document.webkitFullscreenElement?"webkitfullscreenchange":"fullscreenchange"},$t=function(e){var t=e.dom;t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},Gt=function(e){var t=e.dom;t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitCancelFullScreen&&t.webkitCancelFullScreen()},Kt=function(e){return e.dom===qt(Qe(e).dom)},Xt=function(e,t,n){return R(nt(e,n),t)},Yt=function(e,t){return R(rt(e),t)},Jt=function(e){return Je(e)},Zt=function(e,t,n){return Xt(e,(function(e){return Xe(e,t)}),n)},Qt=function(e,t){return Yt(e,(function(e){return Xe(e,t)}))},en="data-ephox-mobile-fullscreen-style",tn="display:none!important;",nn="position:absolute!important;",rn="top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;",on="background-color:rgb(255,255,255)!important;",an=Ht.os.isAndroid(),cn=function(e){var t=kt(e,"background-color");return void 0!==t&&""!==t?"background-color:"+t+"!important":on},un=function(e,t,n){var r=function(e){return Qt(e,"*:not(.tox-silver-sink)")},o=function(t){return function(n){var r=vt(n,"style"),o=void 0===r?"no-styles":r.trim();o!==t&&(ht(n,en,o),wt(n,e.parseStyle(t)))}},i=Zt(t,"*"),a=L(i,r),c=cn(n);M(a,o(tn)),M(i,o(nn+rn+c));var u=!0===an?"":nn;o(u+rn+c)(t)},sn=function(e){var t=Jt("["+en+"]");M(t,(function(t){var n=vt(t,en);"no-styles"!==n?wt(t,e.parseStyle(n)):yt(t,"style"),yt(t,en)}))},ln=It.DOM,fn=function(){return Pt(window)},dn=function(e){return window.scrollTo(e.x,e.y)},mn=Nt().fold((function(){return{bind:m,unbind:m}}),(function(e){var t=E(),n=O(),r=O(),o=function(){document.body.scrollTop=0,document.documentElement.scrollTop=0},i=function(){window.requestAnimationFrame((function(){t.on((function(t){return wt(t,{top:e.offsetTop+"px",left:e.offsetLeft+"px",height:e.height+"px",width:e.width+"px"})}))}))},a=Ft.throttle((function(){o(),i()}),50),c=function(e){t.set(e),a(),n.set(Lt("resize",a)),r.set(Lt("scroll",a))},u=function(){t.on((function(){n.clear(),r.clear()})),t.clear()};return{bind:c,unbind:u}})),gn=function(e,t){var n=document.body,r=document.documentElement,o=e.getContainer(),i=Y.fromDom(o),a=Ut(e),c=t.get(),u=Y.fromDom(e.getBody()),s=Ht.deviceType.isTouch(),l=o.style,f=e.iframeElement,d=f.style,m=function(e){e(n,"tox-fullscreen"),e(r,"tox-fullscreen"),e(o,"tox-fullscreen"),st(i).map((function(e){return lt(e).dom})).each((function(t){e(t,"tox-fullscreen"),e(t,"tox-shadowhost")}))},g=function(){s&&sn(e.dom),m(ln.removeClass),mn.unbind(),C.from(t.get()).each((function(e){return e.fullscreenChangeHandler.unbind()}))};if(c)c.fullscreenChangeHandler.unbind(),Vt(e)&&Kt(a)&&Gt(Qe(a)),d.width=c.iframeWidth,d.height=c.iframeHeight,l.width=c.containerWidth,l.height=c.containerHeight,l.top=c.containerTop,l.left=c.containerLeft,g(),dn(c.scrollPos),t.set(null),jt(e,!1),e.off("remove",g);else{var p=At(Qe(a),Wt(),(function(n){Vt(e)&&(Kt(a)||null===t.get()||gn(e,t))})),h={scrollPos:fn(),containerWidth:l.width,containerHeight:l.height,containerTop:l.top,containerLeft:l.left,iframeWidth:d.width,iframeHeight:d.height,fullscreenChangeHandler:p};s&&un(e.dom,i,u),d.width=d.height="100%",l.width=l.height="",m(ln.addClass),mn.bind(i),e.on("remove",g),t.set(h),Vt(e)&&$t(a),jt(e,!0)}},pn=function(e,t){e.addCommand("mceFullScreen",(function(){gn(e,t)}))},hn=function(e,t){return function(n){n.setActive(null!==t.get());var r=function(e){return n.setActive(e.state)};return e.on("FullscreenStateChanged",r),function(){return e.off("FullscreenStateChanged",r)}}},vn=function(e,t){var n=function(){return e.execCommand("mceFullScreen")};e.ui.registry.addToggleMenuItem("fullscreen",{text:"Fullscreen",icon:"fullscreen",shortcut:"Meta+Shift+F",onAction:n,onSetup:hn(e,t)}),e.ui.registry.addToggleButton("fullscreen",{tooltip:"Fullscreen",icon:"fullscreen",onAction:n,onSetup:hn(e,t)})};function yn(){t.add("fullscreen",(function(t){var r=e(null);return t.inline||(pn(t,r),vn(t,r),t.addShortcut("Meta+Shift+F","","mceFullScreen")),n(r)}))}yn()})()},fc39:function(e,t){tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 01-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 00-1 1z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="M15.7 2l1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 01-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2zM18 12l-4.5-4L9 12h9zM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 01-2-2v-5h2zm8-7V4h6a2 2 0 012 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1l.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="M13 11l-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="M18.4 8l1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 01-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8zm1.6 7l-3-3-3 3h6z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 01-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 010-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 010-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 010-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 010-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 010-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 01-1-1v-2H7V9H5a1 1 0 110-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zm8.5-7.1h-11v2h11v-2z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0119 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 002.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 002-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 00-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 00-.8.8.8.8 0 01-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 012.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 110 18 9 9 0 010-18zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 003.2-2.1l-.2-.2a6 6 0 00-1-.6zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 01-2-2.8zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 01-.3-2zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1zm3-1.4l-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 00-1.3-3.5zm-9 0l2 .2V5.5a9 9 0 00-2 2.2zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 00-2-2.3zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 011.9-2.5zm4.4 0l.1.1a10 10 0 011.8 2.4l1.1-.7a7.5 7.5 0 00-3-1.8z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 110-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 01-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 012.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 11-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2 0l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V8H5a1 1 0 110-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V13H5a1 1 0 010-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 010-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 00-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 01-.7-.3 1 1 0 01-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 017 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 010 2H5a1 1 0 010-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 00-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 01-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8zm-2 2H5v5h6V6z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 012 2v7h-8v-2h6V6h-6V4z" opacity=".2"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v7h-8v7H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8-7h-6v5h6V6zm-8 0H5v5h6V6z"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 00-2 2v13c0 1.1.9 2 2 2h12a2 2 0 002-2V6a2 2 0 00-2-2H6zm0 12h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 11h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 6h8v3H6V6zm11 0c.6 0 1 .4 1 1v1a1 1 0 11-2 0V7c0-.6.4-1 1-1z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 012 2v13a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2h12zm0 12h-8v3h8v-3zM7 16a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8v-3zM7 11a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8V6zM7 6a1 1 0 00-1 1v1a1 1 0 102 0V7c0-.6-.4-1-1-1z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 01-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 011.2 1.5l-.1.1-4.1 3-4-3a1 1 0 011-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8l4 2.9a1 1 0 01-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 01-1-1v-4l-2 1.3a1 1 0 01-1.2-.1l-.1-.1a1 1 0 01.1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}})},fd8a:function(e,t,n){(function(e){!function(){"use strict";function t(e){return function(t){return r=typeof(n=t),(null===n?"null":"object"==r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===e;var n,r}}function n(e){return function(t){return typeof t===e}}function r(e){return function(t){return e===t}}function o(e){return null==e}function i(e,t){if(m(e)){for(var n=0,r=e.length;n<r;++n)if(!t(e[n]))return;return 1}}function a(){}function c(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}}function u(e){return function(){return e}}function s(e){return e}function l(e,t){return e===t}var f=t("string"),d=t("object"),m=t("array"),g=r(null),p=n("boolean"),h=r(void 0),v=function(e){return!o(e)},y=n("function"),b=n("number");function w(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}function k(e){return function(t){return!e(t)}}function _(e){return function(){throw new Error(e)}}var x=u(!1),z=u(!0),C=tinymce.util.Tools.resolve("tinymce.ThemeManager"),S=function(){return(S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function T(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function O(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function E(){return A}var A={fold:function(e,t){return e()},isSome:x,isNone:z,getOr:s,getOrThunk:D,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:u(null),getOrUndefined:u(void 0),or:s,orThunk:D,map:E,each:a,bind:E,exists:x,forall:z,filter:function(){return A},toArray:function(){return[]},toString:u("none()")};function D(e){return e()}function M(e,t){return we.call(e,t)}function R(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return!0;return!1}function N(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n}function B(e,t){for(var n=[],r=0;r<e.length;r+=t){var o=be.call(e,r,r+t);n.push(o)}return n}function P(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r}function L(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o];(t(a,o)?n:r).push(a)}return{pass:n,fail:r}}function I(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n}function H(e,t,n){return function(e){for(var r,o=e.length-1;0<=o;o--)r=e[o],n=t(n,r,o)}(e),n}function F(e,t,n){return xe(e,(function(e,r){n=t(n,e,r)})),n}function j(e,t){return function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return ye.some(i);if(n(i,r))break}return ye.none()}(e,t,x)}function V(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return ye.some(n);return ye.none()}function U(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!m(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);ke.apply(t,e[n])}return t}function q(e,t){return U(P(e,t))}function W(e,t){for(var n=0,r=e.length;n<r;++n)if(!0!==t(e[n],n))return!1;return!0}function $(e){var t=be.call(e,0);return t.reverse(),t}function G(e,t){return I(e,(function(e){return!_e(t,e)}))}function K(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n}function X(e){return[e]}function Y(e,t){var n=be.call(e,0);return n.sort(t),n}function J(e,t){return 0<=t&&t<e.length?ye.some(e[t]):ye.none()}function Z(e){return J(e,0)}function Q(e){return J(e,e.length-1)}function ee(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return ye.none()}function te(e,t){for(var n=Ce(e),r=0,o=n.length;r<o;r++){var i=n[r];t(e[i],i)}}function ne(e,t){return Te(e,(function(e,n){return{k:n,v:t(e,n)}}))}function re(e,t){var n=[];return te(e,(function(e,r){n.push(t(e,r))})),n}function oe(e,t){for(var n=Ce(e),r=0,o=n.length;r<o;r++){var i=n[r],a=e[i];if(t(a,i,e))return ye.some(a)}return ye.none()}function ie(e){return re(e,s)}function ae(e,t){return Oe(e,t)?ye.from(e[t]):ye.none()}function ce(e,t){return Oe(e,t)&&void 0!==e[t]&&null!==e[t]}function ue(e,t,n){return void 0===n&&(n=l),e.exists((function(e){return n(e,t)}))}function se(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t}function le(e,t){return e?ye.some(t):ye.none()}function fe(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t}function de(e,t){return-1!==e.indexOf(t)}function me(e){return 0<e.length}function ge(e){return void 0!==e.style&&y(e.style.getPropertyValue)}function pe(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}}var he,ve=function(e){function t(){return o}function n(t){return t(e)}var r=u(e),o={fold:function(t,n){return n(e)},isSome:z,isNone:x,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:t,orThunk:t,map:function(t){return ve(t(e))},each:function(t){t(e)},bind:n,exists:n,forall:n,filter:function(t){return t(e)?o:A},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},ye={some:ve,none:E,from:function(e){return null==e?A:ve(e)}},be=Array.prototype.slice,we=Array.prototype.indexOf,ke=Array.prototype.push,_e=function(e,t){return-1<M(e,t)},xe=function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)},ze=y(Array.from)?Array.from:function(e){return be.call(e)},Ce=Object.keys,Se=Object.hasOwnProperty,Te=function(e,t){var n={};return te(e,(function(e,r){var o=t(e,r);n[o.k]=o.v})),n},Oe=function(e,t){return Se.call(e,t)},Ee=function(e,t,n){return e.isSome()&&t.isSome()?ye.some(n(e.getOrDie(),t.getOrDie())):ye.none()},Ae=function(e,t){return fe(e,t,0)},De=function(e,t){return fe(e,t,e.length-t.length)},Me=(he=/^\s+|\s+$/g,function(e){return e.replace(he,"")}),Re={fromHtml:function(e,t){var n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||1<n.childNodes.length)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return pe(n.childNodes[0])},fromTag:function(e,t){var n=(t||document).createElement(e);return pe(n)},fromText:function(e,t){var n=(t||document).createTextNode(e);return pe(n)},fromDom:pe,fromPoint:function(e,t,n){return ye.from(e.dom.elementFromPoint(t,n)).map(pe)}};function Ne(e){return e.dom.nodeName.toLowerCase()}function Be(e){return function(t){return t.dom.nodeType===e}}function Pe(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}}function Le(e,t){var n=String(t).toLowerCase();return j(e,(function(e){return e.search(n)}))}function Ie(e){return function(t){return de(t,e)}}function He(e){return window.matchMedia(e).matches}function Fe(e,t){var n=e.dom;if(1!==n.nodeType)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")}function je(e){return 1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount}function Ve(e,t){return e.dom===t.dom}function Ue(e,t){return fn().browser.isIE()?(n=e.dom,r=t.dom,o=Node.DOCUMENT_POSITION_CONTAINED_BY,0!=(n.compareDocumentPosition(r)&o)):(i=e.dom)!==(a=t.dom)&&i.contains(a);var n,r,o,i,a}function qe(e){return Re.fromDom(e.dom.ownerDocument)}function We(e){return Kt(e)?e:qe(e)}function $e(e){return Re.fromDom(We(e).dom.documentElement)}function Ge(e){return Re.fromDom(We(e).dom.defaultView)}function Ke(e){return ye.from(e.dom.parentNode).map(Re.fromDom)}function Xe(e){return ye.from(e.dom.offsetParent).map(Re.fromDom)}function Ye(e){return P(e.dom.childNodes,Re.fromDom)}function Je(e,t){var n=e.dom.childNodes;return ye.from(n[t]).map(Re.fromDom)}function Ze(e,t){return{element:e,offset:t}}function Qe(e,t){var n=Ye(e);return 0<n.length&&t<n.length?Ze(n[t],0):Ze(e,t)}function et(e){return Xt(e)&&v(e.dom.host)}function tt(e){return et(e)?e:Re.fromDom(We(e).dom.body)}function nt(e){return Re.fromDom(e.dom.host)}function rt(e,t,n){if(!(f(n)||p(n)||b(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")}function ot(e,t,n){rt(e.dom,t,n)}function it(e,t){var n=e.dom;te(t,(function(e,t){rt(n,t,e)}))}function at(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n}function ct(e,t){return ye.from(at(e,t))}function ut(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)}function st(e,t){e.dom.removeAttribute(t)}function lt(e,t,n){if(!f(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);ge(e)&&e.style.setProperty(t,n)}function ft(e,t){ge(e)&&e.style.removeProperty(t)}function dt(e,t,n){lt(e.dom,t,n)}function mt(e,t){var n=e.dom;te(t,(function(e,t){lt(n,t,e)}))}function gt(e,t){var n=e.dom;te(t,(function(e,t){e.fold((function(){ft(n,t)}),(function(e){lt(n,t,e)}))}))}function pt(e,t){var n=e.dom,r=window.getComputedStyle(n).getPropertyValue(t);return""!==r||yn(e)?r:kn(n,t)}function ht(e,t){var n=e.dom,r=kn(n,t);return ye.from(r).filter((function(e){return 0<e.length}))}function vt(e,t,n){var r=Re.fromTag(e);return dt(r,t,n),ht(r,t).isSome()}function yt(e,t){ft(e.dom,t),ue(ct(e,"style").map(Me),"")&&st(e,"style")}function bt(e){return e.dom.offsetWidth}function wt(e,t){function n(n){var r=t(n);if(r<=0||null===r){var o=pt(n,e);return parseFloat(o)||0}return r}function r(e,t){return F(t,(function(t,n){var r=pt(e,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o}),0)}return{set:function(t,n){if(!b(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;ge(r)&&(r.style[e]=n+"px")},get:n,getOuter:n,aggregate:r,max:function(e,t,n){var o=r(e,n);return o<t?t-o:0}}}function kt(e){return _n.get(e)}function _t(e){return _n.getOuter(e)}function xt(e,t){return void 0!==e?e:void 0!==t?t:0}function zt(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom)return zn(n.offsetLeft,n.offsetTop);var i=xt(null==r?void 0:r.pageYOffset,o.scrollTop),a=xt(null==r?void 0:r.pageXOffset,o.scrollLeft),c=xt(o.clientTop,n.clientTop),u=xt(o.clientLeft,n.clientLeft);return Cn(e).translate(a-u,i-c)}function Ct(e){return Sn.get(e)}function St(e){return Sn.getOuter(e)}function Tt(e){function t(){return e.stopPropagation()}function n(){return e.preventDefault()}var r=c(n,t);return{target:Re.fromDom(function(e){if(gn()&&v(e.target)){var t=Re.fromDom(e.target);if($t(t)&&vn(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return Z(n)}}return ye.from(e.target)}(e).getOr(e.target)),x:e.clientX,y:e.clientY,stop:t,prevent:n,kill:r,raw:e}}function Ot(e,t,n,r,o){var i,a,c=(i=n,a=r,function(e){i(e)&&a(Tt(e))});return e.dom.addEventListener(t,c,o),{unbind:w(Tn,e,t,c,o)}}function Et(e,t){Ke(e).each((function(n){n.dom.insertBefore(t.dom,e.dom)}))}function At(e,t){ye.from(e.dom.nextSibling).map(Re.fromDom).fold((function(){Ke(e).each((function(e){On(e,t)}))}),(function(e){Et(e,t)}))}function Dt(e,t){Je(e,0).fold((function(){On(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))}function Mt(e,t){xe(t,(function(t){On(e,t)}))}function Rt(e){e.dom.textContent="",xe(Ye(e),(function(e){En(e)}))}function Nt(e){var t,n=Ye(e);0<n.length&&(t=e,xe(n,(function(e){Et(t,e)}))),En(e)}function Bt(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return zn(n,r)}function Pt(e,t,n){var r=(void 0!==n?n.dom:document).defaultView;r&&r.scrollTo(e,t)}function Lt(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}}function It(e){var t=void 0===e?window:e,n=t.document,r=Bt(Re.fromDom(n)),o=void 0===t?window:t;return(fn().browser.isFirefox()?ye.none():ye.from(o.visualViewport)).fold((function(){var e=t.document.documentElement,n=e.clientWidth,o=e.clientHeight;return Lt(r.left,r.top,n,o)}),(function(e){return Lt(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))}function Ht(e){var t,n=Bt(Re.fromDom(document)),r=(t=Dn).owner(e),o=An(t,r);return ye.some(o).fold(w(zt,e),(function(t){var r=Cn(e),o=H(t,(function(e,t){var n=Cn(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return zn(o.left+r.left+n.left,o.top+r.top+n.top)}))}function Ft(e){var t=Ht(e),n=St(e),r=_t(e);return Mn(t.left,t.top,n,r)}function jt(){return Yt(0,0)}function Vt(e){function t(e){return function(){return n===e}}var n=e.current,r=e.version;return{current:n,version:r,isEdge:t("Edge"),isChrome:t("Chrome"),isIE:t("IE"),isOpera:t("Opera"),isFirefox:t(en),isSafari:t("Safari")}}function Ut(e){function t(e){return function(){return n===e}}var n=e.current,r=e.version;return{current:n,version:r,isWindows:t(rn),isiOS:t("iOS"),isAndroid:t(on),isOSX:t("OSX"),isLinux:t("Linux"),isSolaris:t(an),isFreeBSD:t(cn),isChromeOS:t(un)}}"undefined"!=typeof window||Function("return this;")();var qt,Wt,$t=Be(1),Gt=Be(3),Kt=Be(9),Xt=Be(11),Yt=function(e,t){return{major:e,minor:t}},Jt={nu:Yt,detect:function(e,t){var n,r,o=String(t).toLowerCase();return 0===e.length?jt():(r=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}}(e,n=o))?Yt(i(1),i(2)):{major:0,minor:0};function i(e){return Number(n.replace(r,"$"+e))}},unknown:jt},Zt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Qt={browsers:u([{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return de(e,"edge/")&&de(e,"chrome")&&de(e,"safari")&&de(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Zt],search:function(e){return de(e,"chrome")&&!de(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return de(e,"msie")||de(e,"trident")}},{name:"Opera",versionRegexes:[Zt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ie("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ie("firefox")},{name:"Safari",versionRegexes:[Zt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(de(e,"safari")||de(e,"mobile/"))&&de(e,"applewebkit")}}]),oses:u([{name:"Windows",search:Ie("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return de(e,"iphone")||de(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ie("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Ie("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ie("linux"),versionRegexes:[]},{name:"Solaris",search:Ie("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ie("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ie("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}])},en="Firefox",tn=function(){return Vt({current:void 0,version:Jt.unknown()})},nn=Vt,rn=(u("Edge"),u("Chrome"),u("IE"),u("Opera"),u(en),u("Safari"),"Windows"),on="Android",an="Solaris",cn="FreeBSD",un="ChromeOS",sn=function(){return Ut({current:void 0,version:Jt.unknown()})},ln=Ut,fn=(u(rn),u("iOS"),u(on),u("Linux"),u("OSX"),u(an),u(cn),u(un),Pe((function(){return e=navigator.userAgent,t=ye.from(navigator.userAgentData),n=He,h=Qt.browsers(),v=Qt.oses(),y=t.bind((function(e){return t=h,ee(e.brands,(function(e){var n=e.brand.toLowerCase();return j(t,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(t){return{current:t.name,version:Jt.nu(parseInt(e.version,10),0)}}))}));var t})).orThunk((function(){return Le(h,t=e).map((function(e){var n=Jt.detect(e.versionRegexes,t);return{current:e.name,version:n}}));var t})).fold(tn,nn),b=Le(v,r=e).map((function(e){var t=Jt.detect(e.versionRegexes,r);return{current:e.name,version:t}})).fold(sn,ln),{browser:y,os:b,deviceType:(i=y,a=e,c=n,s=(o=b).isiOS()&&!0===/ipad/i.test(a),l=o.isiOS()&&!s,d=(f=o.isiOS()||o.isAndroid())||c("(pointer:coarse)"),m=s||!l&&f&&c("(min-device-width:768px)"),g=l||f&&!m,p=i.isSafari()&&o.isiOS()&&!1===/safari/i.test(a),{isiPad:u(s),isiPhone:u(l),isTablet:u(m),isPhone:u(g),isTouch:u(d),isAndroid:o.isAndroid,isiOS:o.isiOS,isWebView:u(p),isDesktop:u(!g&&!m&&!p)})};var e,t,n,r,o,i,a,c,s,l,f,d,m,g,p,h,v,y,b}))),dn=Ke,mn=y(Element.prototype.attachShadow)&&y(Node.prototype.getRootNode),gn=u(mn),pn=mn?function(e){return Re.fromDom(e.dom.getRootNode())}:We,hn=function(e){var t=pn(e);return et(t)?ye.some(t):ye.none()},vn=function(e){return v(e.dom.shadowRoot)},yn=function(e){var t=Gt(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;var n,r,o=t.ownerDocument;return hn(Re.fromDom(t)).fold((function(){return o.body.contains(t)}),(n=yn,r=nt,function(e){return n(r(e))}))},bn=function(){return wn(Re.fromDom(document))},wn=function(e){var t=e.dom.body;if(null==t)throw new Error("Body is not available yet");return Re.fromDom(t)},kn=function(e,t){return ge(e)?e.style.getPropertyValue(t):""},_n=wt("height",(function(e){var t=e.dom;return yn(e)?t.getBoundingClientRect().height:t.offsetHeight})),xn=function(e,t){return{left:e,top:t,translate:function(n,r){return xn(e+n,t+r)}}},zn=xn,Cn=function(e){var t,n=e.dom,r=n.ownerDocument.body;return r===n?zn(r.offsetLeft,r.offsetTop):yn(e)?(t=n.getBoundingClientRect(),zn(t.left,t.top)):zn(0,0)},Sn=wt("width",(function(e){return e.dom.offsetWidth})),Tn=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},On=function(e,t){e.dom.appendChild(t.dom)},En=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},An=function(e,t){return e.view(t).fold(u([]),(function(t){var n=e.owner(t),r=An(e,n);return[t].concat(r)}))},Dn=Object.freeze({__proto__:null,view:function(e){var t;return(e.dom===document?ye.none():ye.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement)).map(Re.fromDom)},owner:qe}),Mn=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Rn=function(e){var t=zt(e),n=St(e),r=_t(e);return Mn(t.left,t.top,n,r)},Nn=function(){return It(window)},Bn=function(e){return{isValue:z,isError:x,getOr:u(e),getOrThunk:u(e),getOrDie:u(e),or:function(t){return Bn(e)},orThunk:function(t){return Bn(e)},fold:function(t,n){return n(e)},map:function(t){return Bn(t(e))},mapError:function(t){return Bn(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOptional:function(){return ye.some(e)}}},Pn=function(e){return{isValue:x,isError:z,getOr:s,getOrThunk:function(e){return e()},getOrDie:function(){return _(String(e))()},or:s,orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return Pn(e)},mapError:function(t){return Pn(t(e))},each:a,bind:function(t){return Pn(e)},exists:x,forall:z,toOptional:ye.none}},Ln={value:Bn,error:Pn,fromOption:function(e,t){return e.fold((function(){return Pn(t)}),Bn)}};function In(e,t,n){return e.stype===qt.Error?t(e.serror):n(e.svalue)}function Hn(e){return{stype:qt.Value,svalue:e}}function Fn(e){return{stype:qt.Error,serror:e}}function jn(e,t,n,r){return{tag:"field",key:e,newKey:t,presence:n,prop:r}}function Vn(e,t,n){switch(e.tag){case"field":return t(e.key,e.newKey,e.presence,e.prop);case"custom":return n(e.newKey,e.instantiator)}}function Un(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<t.length;o++){var i,a=t[o];for(i in a)Oe(a,i)&&(r[i]=e(r[i],a[i]))}return r}}function qn(){return{tag:"required",process:{}}}function Wn(e){return{tag:"defaultedThunk",process:e}}function $n(e){return Wn(u(e))}function Gn(){return{tag:"option",process:{}}}function Kn(e){return{tag:"mergeWithThunk",process:e}}function Xn(e){return d(e)&&100<Ce(e).length?" removed due to size":JSON.stringify(e,null,2)}function Yn(e,t){return jr([{path:e,getErrorInfo:t}])}function Jn(e){return{extract:function(t,n){return Ur(e(n),(function(e){return Yn(t,u(e))}))},toString:u("val")}}function Zn(e,t,n,r){return r(ae(e,t).getOrThunk((function(){return n(e)})))}function Qn(e,t,n,r,o){function i(e){return o.extract(t.concat([r]),e)}function a(e){return e.fold((function(){return Fr(ye.none())}),(function(e){var n=o.extract(t.concat([r]),e);return qr(n,ye.some)}))}var c,s,l,f,d,m;switch(e.tag){case"required":return l=t,m=i,ae(f=n,d=r).fold((function(){return e=d,t=f,Yn(l,(function(){return'Could not find valid *required* value for "'+e+'" in '+Xn(t)}));var e,t}),m);case"defaultedThunk":return Zn(n,r,e.process,i);case"option":return a(ae(n,r));case"defaultedOptionThunk":return s=e.process,a(ae(c=n,r).map((function(e){return!0===e?s(c):e})));case"mergeWithThunk":return Zn(n,r,u({}),(function(t){return i(Gr(e.process(n),t))}))}}function er(e){return{extract:function(t,n){return e().extract(t,n)},toString:function(){return e().toString()}}}function tr(e){var t=Jr(e),n=H(e,(function(e,t){return Vn(t,(function(t){var n;return Gr(e,((n={})[t]=!0,n))}),u(e))}),{});return{extract:function(e,r){var o,i,c,u,s,l,f=I(p(r)?[]:Ce((c=v,u=i={},s=function(e,t){u[t]=e},l=a,te(r,(function(e,t){(c(e,t)?s:l)(e,t)})),i)),(function(e){return!ce(n,e)}));return 0===f.length?t.extract(e,r):(o=f,Yn(e,(function(){return"There are unsupported fields: ["+o.join(", ")+"] specified"})))},toString:t.toString}}function nr(e){return{extract:function(t,n){var r=P(n,(function(n,r){return e.extract(t.concat(["["+r+"]"]),n)}));return Xr(r)},toString:function(){return"array("+e.toString()+")"}}}function rr(e){return{extract:function(t,n){for(var r=[],o=0,i=e;o<i.length;o++){var a=i[o].extract(t,n);if(a.stype===qt.Value)return a;r.push(a)}return Xr(r)},toString:function(){return"oneOf("+P(e,(function(e){return e.toString()})).join(", ")+")"}}}function or(e,t){return Jn((function(n){var r=typeof n;return e(n)?Fr(n):jr("Expected type: "+t+" but got: "+r)}))}function ir(e,t){return{extract:function(n,r){return ae(r,e).fold((function(){return t=e,Yn(n,(function(){return'Choice schema did not contain choice key: "'+t+'"'}));var t}),(function(e){return o=n,i=r,ae(a=t,c=e).fold((function(){return e=a,t=c,Yn(o,(function(){return'The chosen schema: "'+t+'" did not exist in branches: '+Xn(e)}));var e,t}),(function(e){return e.extract(o.concat(["branch: "+c]),i)}));var o,i,a,c}))},toString:function(){return"chooseOn("+e+"). Possible values: "+Ce(t)}}}function ar(e){return Jn((function(t){return e(t).fold(jr,Fr)}))}function cr(e,t){return n=function(t){return e(t).fold(Fn,Hn)},r=t,{extract:function(e,t){var o=Ce(t),i=nr(Jn(n)).extract(e,o);return Vr(i,(function(n){var o=P(n,(function(e){return jn(e,e,qn(),r)}));return Jr(o).extract(e,t)}))},toString:function(){return"setOf("+r.toString()+")"}};var n,r}function ur(e,t,n){return Hr((o=t.extract([e],r=n),Wr(o,(function(e){return{input:r,errors:e}}))));var r,o}function sr(e){return e.fold((function(e){throw new Error(ao(e))}),s)}function lr(e,t,n){return sr(ur(e,t,n))}function fr(e,t){return ir(e,ne(t,Jr))}function dr(e){return ar((function(t){return _e(e,t)?Ln.value(t):Ln.error('Unsupported value: "'+t+'", choose one of "'+e.join(", ")+'".')}))}function mr(e){return co(e,e,qn(),Qr())}function gr(e,t){return co(e,e,qn(),t)}function pr(e){return gr(e,to)}function hr(e,t){return co(e,e,qn(),dr(t))}function vr(e){return gr(e,ro)}function yr(e,t){return co(e,e,qn(),Jr(t))}function br(e,t){return co(e,e,qn(),Zr(t))}function wr(e,t){return co(e,e,qn(),nr(t))}function kr(e){return co(e,e,Gn(),Qr())}function _r(e,t){return co(e,e,Gn(),t)}function xr(e){return _r(e,eo)}function zr(e){return _r(e,to)}function Cr(e){return _r(e,ro)}function Sr(e,t){return _r(e,nr(t))}function Tr(e,t){return _r(e,Jr(t))}function Or(e,t){return co(e,e,$n(t),Qr())}function Er(e,t,n){return co(e,e,$n(t),n)}function Ar(e,t){return Er(e,t,eo)}function Dr(e,t){return Er(e,t,to)}function Mr(e,t,n){return Er(e,t,dr(n))}function Rr(e,t){return Er(e,t,no)}function Nr(e,t){return Er(e,t,ro)}function Br(e,t,n){return Er(e,t,nr(n))}function Pr(e,t,n){return Er(e,t,Jr(n))}function Lr(e){var t=e;return{get:function(){return t},set:function(e){t=e}}}function Ir(e){if(!m(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return xe(e,(function(r,o){var i=Ce(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],c=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!m(c))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==c.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+c.length+" ("+c+"), got "+i);return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);return t[o].apply(null,n)},match:function(e){var r=Ce(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));if(!W(t,(function(e){return _e(r,e)})))throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)},log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n}(Wt=qt={})[Wt.Error=0]="Error",Wt[Wt.Value=1]="Value";var Hr=function(e){return In(e,Ln.error,Ln.value)},Fr=Hn,jr=Fn,Vr=function(e,t){return e.stype===qt.Value?t(e.svalue):e},Ur=function(e,t){return e.stype===qt.Error?t(e.serror):e},qr=function(e,t){return e.stype===qt.Value?{stype:qt.Value,svalue:t(e.svalue)}:e},Wr=function(e,t){return e.stype===qt.Error?{stype:qt.Error,serror:t(e.serror)}:e},$r=In,Gr=Un((function(e,t){return d(e)&&d(t)?Gr(e,t):t})),Kr=Un((function(e,t){return t})),Xr=function(e){var t,n,r=(t=[],n=[],xe(e,(function(e){In(e,(function(e){return n.push(e)}),(function(e){return t.push(e)}))})),{values:t,errors:n});return 0<r.errors.length?c(jr,U)(r.errors):Fr(r.values)},Yr=Jn(Fr),Jr=function(e){return{extract:function(t,n){for(var r={},o=[],i=0,a=e;i<a.length;i++)Vn(a[i],(function(e,i,a,c){var u=Qn(a,t,n,e,c);$r(u,(function(e){o.push.apply(o,e)}),(function(e){r[i]=e}))}),(function(e,t){r[e]=t(n)}));return 0<o.length?jr(o):Fr(r)},toString:function(){return"obj{\n"+P(e,(function(e){return Vn(e,(function(e,t,n,r){return e+" -> "+r.toString()}),(function(e,t){return"state("+e+")"}))})).join("\n")+"}"}}},Zr=c(nr,Jr),Qr=u(Yr),eo=or(b,"number"),to=or(f,"string"),no=or(p,"boolean"),ro=or(y,"function"),oo=function(e){if(Object(e)!==e)return!0;switch({}.toString.call(e).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(e).every((function(t){return oo(e[t])}));default:return!1}},io=Jn((function(e){return oo(e)?Fr(e):jr("Expected value to be acceptable for sending via postMessage")})),ao=function(e){return"Errors: \n"+P(10<(t=e.errors).length?t.slice(0,10).concat([{path:[],getErrorInfo:u("... (only showing first ten failures)")}]):t,(function(e){return"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo()})).join("\n")+"\n\nInput object: "+Xn(e.input);var t},co=jn,uo=function(e,t){return{tag:"custom",newKey:e,instantiator:t}};function so(e,t){return(n={})[e]=t,n;var n}function lo(e){return t={},xe(e,(function(e){t[e.key]=e.value})),t;var t}function fo(e){return y(e)?e:x}function mo(e,t,n){for(var r=e.dom,o=fo(n);r.parentNode;){r=r.parentNode;var i=Re.fromDom(r),a=t(i);if(a.isSome())return a;if(o(i))break}return ye.none()}function go(e,t,n){var r=t(e),o=fo(n);return r.orThunk((function(){return o(e)?ye.none():mo(e,t,o)}))}function po(e,t){return Ve(e.element,t.event.target)}function ho(e){if(!ce(e,"can")&&!ce(e,"abort")&&!ce(e,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(e,null,2)+" does not have can, abort, or run!");return S(S({},ui),e)}function vo(e){return u("alloy."+e)}function yo(e,t){na(e,e.element,t,{})}function bo(e,t,n){na(e,e.element,t,n)}function wo(e){yo(e,Bi())}function ko(e,t,n){na(e,t,n,{})}function _o(e,t,n,r){e.getSystem().triggerEvent(n,t,r.event)}function xo(e,t){return{key:e,value:ho({abort:t})}}function zo(e){return{key:e,value:ho({run:function(e,t){t.event.prevent()}})}}function Co(e,t){return{key:e,value:ho({run:t})}}function So(e,t,n){return{key:e,value:ho({run:function(e,r){t.apply(void 0,[e,r].concat(n))}})}}function To(e){return function(t){return{key:e,value:ho({run:function(e,n){po(e,n)&&t(e,n)}})}}}function Oo(e,t,n){var r,o=t.partUids[n];return Co(r=e,(function(e,t){e.getSystem().getByUid(o).each((function(e){_o(e,e.element,r,t)}))}))}function Eo(e,t){return Co(e,(function(e,n){var r=n.event,o=e.getSystem().getByDom(r.target).getOrThunk((function(){return go(r.target,(function(t){return e.getSystem().getByDom(t).toOptional()}),x).getOr(e)}));t(e,o,n)}))}function Ao(e){return Co(e,(function(e,t){t.cut()}))}function Do(e,t){return To(e)(t)}function Mo(e){return e.dom.innerHTML}function Ro(e,t){var n,r,o=qe(e).dom,i=Re.fromDom(o.createDocumentFragment());Mt(i,(n=t,(r=(o||document).createElement("div")).innerHTML=n,Ye(Re.fromDom(r)))),Rt(e),On(e,i)}function No(e){if(et(e))return"#shadow-root";var t=Re.fromDom(e.dom.cloneNode(!1)),n=Re.fromTag("div"),r=Re.fromDom(t.dom.cloneNode(!0));return On(n,r),Mo(n)}function Bo(e){var t=(new Date).getTime();return e+"_"+Math.floor(1e9*Math.random())+ ++la+String(t)}function Po(e){var t=$t(e)?e.dom[ga]:null;return ye.from(t)}function Lo(e){function t(t){return"The component must be in a context to execute: "+t+(e?"\n"+No(e().element)+" is not in context.":"")}function n(e){return function(){throw new Error(t(e))}}function r(e){return function(){console.warn(t(e))}}return{debugInfo:u("fake"),triggerEvent:r("triggerEvent"),triggerFocus:r("triggerFocus"),triggerEscape:r("triggerEscape"),broadcast:r("broadcast"),broadcastOn:r("broadcastOn"),broadcastEvent:r("broadcastEvent"),build:n("build"),addToWorld:n("addToWorld"),removeFromWorld:n("removeFromWorld"),addToGui:n("addToGui"),removeFromGui:n("removeFromGui"),getByUid:n("getByUid"),getByDom:n("getByDom"),isConnected:x}}function Io(e,t){var n=e.toString(),r=n.indexOf(")")+1,o=n.indexOf("("),i=n.substring(o+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:ba(i)}},e}function Ho(e){return so(wa,e)}function Fo(e){return t=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.apply(void 0,O([t.getApis(),t],n,!1))},r=(n=e.toString()).indexOf(")")+1,o=n.indexOf("("),i=n.substring(o+1,r-1).split(/,\s*/),t.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:ba(i.slice(1))}},t;var t,n,r,o,i}function jo(e,t){var n={};return te(e,(function(e,r){te(e,(function(e,o){var i=ae(n,o).getOr([]);n[o]=i.concat([t(r,e)])}))})),n}function Vo(e){return{classes:h(e.classes)?[]:e.classes,attributes:h(e.attributes)?{}:e.attributes,styles:h(e.styles)?{}:e.styles}}function Uo(e){return e.cHandler}function qo(e,t){return{name:e,handler:t}}function Wo(e,t,n){var r=t[n];return r?function(e,t,n){try{var r=Y(t,(function(t,r){var o=t.name,i=r.name,a=n.indexOf(o),c=n.indexOf(i);if(-1===a)throw new Error("The ordering for "+e+" does not have an entry for "+o+".\nOrder specified: "+JSON.stringify(n,null,2));if(-1===c)throw new Error("The ordering for "+e+" does not have an entry for "+i+".\nOrder specified: "+JSON.stringify(n,null,2));return a<c?-1:c<a?1:0}));return Ln.value(r)}catch(t){return Ln.error([t])}}("Event: "+n,e,r).map((function(e){var t,n,r,o,i=P(e,(function(e){return e.handler}));return{can:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return F(n,(function(t,n){return t&&n.can.apply(void 0,e)}),!0)},abort:(r=n=t=i,o=function(e){return e.abort},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return F(r,(function(t,n){return t||o(n).apply(void 0,e)}),!1)}),run:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];xe(t,(function(t){t.run.apply(void 0,e)}))}}})):Ln.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(P(e,(function(e){return e.name})),null,2)])}function $o(e,t){var n=at(e,t);return void 0===n||""===n?[]:n.split(" ")}function Go(e){return void 0!==e.dom.classList}function Ko(e,t){var n,r,o;Go(e)?e.dom.classList.add(t):(r=t,o=$o(n=e,"class").concat([r]),ot(n,"class",o.join(" ")))}function Xo(e,t){var n,r,o,i;Go(e)?e.dom.classList.remove(t):(o=t,0<(i=I($o(r=e,"class"),(function(e){return e!==o}))).length?ot(r,"class",i.join(" ")):st(r,"class")),0===(Go(n=e)?n.dom.classList:$o(n,"class")).length&&st(n,"class")}function Yo(e,t){return Go(e)&&e.dom.classList.contains(t)}function Jo(e,t){xe(t,(function(t){Ko(e,t)}))}function Zo(e,t){xe(t,(function(t){Xo(e,t)}))}function Qo(e){return e.dom.value}function ei(e,t){if(void 0===t)throw new Error("Value.set was undefined");e.dom.value=t}function ti(e){var t,n,r,o,i=(t=ae(e,"behaviours").getOr({}),q(Ce(t),(function(e){var n=t[e];return v(n)?[n.me]:[]})));return n=e,o=P(r=i,(function(e){return Tr(e.name(),[mr("config"),Or("state",ka)])})),{list:r,data:ne(ur("component.behaviours",Jr(o),n.behaviours).fold((function(e){throw new Error(ao(e)+"\nComplete spec:\n"+JSON.stringify(n,null,2))}),s),(function(e){return u(e.map((function(e){return{config:e.config,state:e.state.init(e.config)}})))}))}}function ni(e,t,n){var r,o,i=S(S({},(r=e).dom),{uid:r.uid,domChildren:P(r.components,(function(e){return e.element}))}),a=e.domModification.fold((function(){return Vo({})}),Vo),c=0<t.length?function(e,t,n,r){var o=S({},t);function i(e){return H(e,(function(e,t){return S(S({},t.modification),e)}),{})}xe(n,(function(t){o[t.name()]=t.exhibit(e,r)}));var a=jo(o,(function(e,t){return{name:e,modification:t}}));return Vo({classes:H(a.classes,(function(e,t){return t.modification.concat(e)}),[]),attributes:i(a.attributes),styles:i(a.styles)})}(n,{"alloy.base.modification":a},t,i):a;return S(S({},o=i),{attributes:S(S({},o.attributes),c.attributes),styles:S(S({},o.styles),c.styles),classes:o.classes.concat(c.classes)})}function ri(e,t,n){var r,o,i,a,c,u={"alloy.base.behaviour":e.events},s=e.eventOrder;return o=n,i=t,r=jo(S(S({},u),(a=o,c={},xe(i,(function(e){c[e.name()]=e.handlers(a)})),c)),qo),xa(r,s).getOrDie()}function oi(e){var t,n,r,o,i,a,c,u,s,l,f=va(e),d=f.events,m=T(f,["events"]),g=P(ae(m,"components").getOr([]),Oa),p=S(S({},m),{events:S(S({},sa),d),components:g});return Ln.value((n=Lr(ya),r=sr(ur("custom.definition",Ca,t=p)),o=ti(t),i=o.list,a=o.data,c=function(e){var t=Re.fromTag(e.tag);it(t,e.attributes),Jo(t,e.classes),mt(t,e.styles),e.innerHtml.each((function(e){return Ro(t,e)}));var n=e.domChildren;return Mt(t,n),e.value.each((function(e){ei(t,e)})),e.uid,pa(t,e.uid),t}(ni(r,i,a)),u=ri(r,i,a),s=Lr(r.components),l={uid:t.uid,getSystem:n.get,config:function(e){var n=a;return(y(n[e.name()])?n[e.name()]:function(){throw new Error("Could not find "+e.name()+" in "+JSON.stringify(t,null,2))})()},hasConfigured:function(e){return y(a[e.name()])},spec:t,readState:function(e){return a[e]().map((function(e){return e.state.readState()})).getOr("not enabled")},getApis:function(){return r.apis},connect:function(e){n.set(e)},disconnect:function(){n.set(Lo(h))},element:c,syncComponents:function(){var e=q(Ye(c),(function(e){return n.get().getByDom(e).fold((function(){return[]}),X)}));s.set(e)},components:s.get,events:u}));function h(){return l}}function ii(e){var t=Re.fromText(e);return Sa({element:t})}Ir([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var ai,ci,ui={can:z,abort:x,run:a},si=u,li=si("touchstart"),fi=si("touchmove"),di=si("touchend"),mi=si("touchcancel"),gi=si("mousedown"),pi=si("mousemove"),hi=si("mouseout"),vi=si("mouseup"),yi=si("mouseover"),bi=si("focusin"),wi=si("focusout"),ki=si("keydown"),_i=si("keyup"),xi=si("input"),zi=si("change"),Ci=si("click"),Si=si("transitioncancel"),Ti=si("transitionend"),Oi=si("transitionstart"),Ei=si("selectstart"),Ai={tap:vo("tap")},Di=vo("focus"),Mi=vo("blur.post"),Ri=vo("paste.post"),Ni=vo("receive"),Bi=vo("execute"),Pi=vo("focus.item"),Li=Ai.tap,Ii=vo("longpress"),Hi=vo("sandbox.close"),Fi=vo("typeahead.cancel"),ji=vo("system.init"),Vi=vo("system.touchmove"),Ui=vo("system.touchend"),qi=vo("system.scroll"),Wi=vo("system.resize"),$i=vo("system.attached"),Gi=vo("system.detached"),Ki=vo("system.dismissRequested"),Xi=vo("system.repositionRequested"),Yi=vo("focusmanager.shifted"),Ji=vo("slotcontainer.visibility"),Zi=vo("change.tab"),Qi=vo("dismiss.tab"),ea=vo("highlight"),ta=vo("dehighlight"),na=function(e,t,n,r){var o=S({target:t},r);e.getSystem().triggerEvent(n,t,o)},ra=lo,oa=To($i()),ia=To(Gi()),aa=To(ji()),ca=(ai=Bi(),function(e){return Co(ai,e)}),ua=ra([{key:Di(),value:ho({can:function(e,t){var n,r=t.event,o=r.originator,i=r.target;return!(Ve(n=o,e.element)&&!Ve(n,i)&&(console.warn(Di()+" did not get interpreted by the desired target. \nOriginator: "+No(o)+"\nTarget: "+No(i)+"\nCheck the "+Di()+" event handlers"),1))}})}]),sa=Object.freeze({__proto__:null,events:ua}),la=0,fa=u("alloy-id-"),da=u("data-alloy-id"),ma=fa(),ga=da(),pa=function(e,t){Object.defineProperty(e.dom,ga,{value:t,writable:!0})},ha=Bo,va=s,ya=Lo(),ba=function(e){return P(e,(function(e){return De(e,"/*")?e.substring(0,e.length-"/*".length):e}))},wa=Bo("alloy-premade"),ka={init:function(){return _a({readState:u("No State required")})}},_a=function(e){return e},xa=function(e,t){var n,r,o,i,a,c,u=re(e,(function(e,n){return(1===e.length?Ln.value(e[0].handler):Wo(e,t,n)).map((function(r){var o,i,a=(i=y(o=r)?{can:z,abort:x,run:o}:o,function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=[e,t].concat(n);i.abort.apply(void 0,o)?t.stop():i.can.apply(void 0,o)&&i.run.apply(void 0,o)}),c=1<e.length?I(t[n],(function(t){return R(e,(function(e){return e.name===t}))})).join(" > "):e[0].name;return so(n,{handler:a,purpose:c})}))}));return n={},r=[],o=[],xe(u,(function(e){e.fold((function(e){r.push(e)}),(function(e){o.push(e)}))})),0<(c={errors:r,values:o}).errors.length?Ln.error(U(c.errors)):(a=n,0===(i=c.values).length?Ln.value(a):Ln.value(Gr(a,Kr.apply(void 0,i))))},za="alloy.base.behaviour",Ca=Jr([co("dom","dom",qn(),Jr([mr("tag"),Or("styles",{}),Or("classes",[]),Or("attributes",{}),kr("value"),kr("innerHtml")])),mr("components"),mr("uid"),Or("events",{}),Or("apis",{}),co("eventOrder","eventOrder",((ci={})[Bi()]=["disabling",za,"toggling","typeaheadevents"],ci[Di()]=[za,"focusing","keying"],ci[ji()]=[za,"disabling","toggling","representing"],ci[xi()]=[za,"representing","streaming","invalidating"],ci[Gi()]=[za,"representing","item-events","tooltipping"],ci[gi()]=["focusing",za,"item-type-events"],ci[li()]=["focusing",za,"item-type-events"],ci[yi()]=["item-type-events","tooltipping"],ci[Ni()]=["receiving","reflecting","tooltipping"],Kn(u(ci))),Qr()),kr("domModification")]),Sa=function(e){var t=lr("external.component",tr([mr("element"),kr("uid")]),e),n=Lr(Lo()),r=t.uid.getOrThunk((function(){return ha("external")}));pa(t.element,r);var o={uid:r,getSystem:n.get,config:ye.none,hasConfigured:x,connect:function(e){n.set(e)},disconnect:function(){n.set(Lo((function(){return o})))},getApis:function(){return{}},element:t.element,spec:e,readState:u("No state"),syncComponents:a,components:u([]),events:{}};return Ho(o)},Ta=ha,Oa=function(e){return ae(e,wa).getOrThunk((function(){return oi(Oe(e,"uid")?e:S({uid:Ta("")},e)).getOrDie()}))},Ea=Ho;function Aa(e,t,n,r,o){return e(n,r)?ye.some(n):y(o)&&o(n)?ye.none():t(n,r,o)}function Da(e,t,n){for(var r=e.dom,o=y(n)?n:x;r.parentNode;){r=r.parentNode;var i=Re.fromDom(r);if(t(i))return ye.some(i);if(o(i))break}return ye.none()}function Ma(e,t,n){return Aa((function(e,t){return t(e)}),Da,e,t,n)}function Ra(e,t,n){return Ma(e,t,n).isSome()}function Na(e,t,n){return Da(e,(function(e){return Fe(e,t)}),n)}function Ba(e,t){return n=t,je(r=void 0===e?document:e.dom)?ye.none():ye.from(r.querySelector(n)).map(Re.fromDom);var n,r}function Pa(e,t,n){return Aa(Fe,Na,e,t,n)}function La(){var e=Bo("aria-owns");return{id:e,link:function(t){ot(t,"aria-owns",e)},unlink:function(e){st(e,"aria-owns")}}}var Ia,Ha,Fa=function(e,t){return Ra(t,(function(t){return Ve(t,e.element)}),x)||(n=e,Ma(t,(function(e){if(!$t(e))return!1;var t=at(e,"id");return void 0!==t&&-1<t.indexOf("aria-owns")})).bind((function(e){var t=at(e,"id");return Ba(pn(e),'[aria-owns="'+t+'"]')})).exists((function(e){return Fa(n,e)})));var n},ja="unknown";function Va(e,t,n){var r,o,i,a;switch(ae(Ua.get(),e).orThunk((function(){return ee(Ce(Ua.get()),(function(t){return-1<e.indexOf(t)?ye.some(Ua.get()[t]):ye.none()}))})).getOr(Ia.NORMAL)){case Ia.NORMAL:return n(Wa());case Ia.LOGGING:var c=(r=e,o=t,i=[],a=(new Date).getTime(),{logEventCut:function(e,t,n){i.push({outcome:"cut",target:t,purpose:n})},logEventStopped:function(e,t,n){i.push({outcome:"stopped",target:t,purpose:n})},logNoParent:function(e,t,n){i.push({outcome:"no-parent",target:t,purpose:n})},logEventNoHandlers:function(e,t){i.push({outcome:"no-handlers-left",target:t})},logEventResponse:function(e,t,n){i.push({outcome:"response",purpose:n,target:t})},write:function(){var e=(new Date).getTime();_e(["mousemove","mouseover","mouseout",ji()],r)||console.log(r,{event:r,time:e-a,target:o.dom,sequence:P(i,(function(e){return _e(["cut","stopped","response"],e.outcome)?"{"+e.purpose+"} "+e.outcome+" at ("+No(e.target)+")":e.outcome}))})}}),u=n(c);return c.write(),u;case Ia.STOP:return!0}}(Ha=Ia=Ia||{})[Ha.STOP=0]="STOP",Ha[Ha.NORMAL=1]="NORMAL",Ha[Ha.LOGGING=2]="LOGGING";var Ua=Lr({}),qa=["alloy/data/Fields","alloy/debugging/Debugging"],Wa=u({logEventCut:a,logEventStopped:a,logNoParent:a,logEventNoHandlers:a,logEventResponse:a,write:a}),$a=u([mr("menu"),mr("selectedMenu")]),Ga=u([mr("item"),mr("selectedItem")]);function Ka(){return yr("markers",[mr("backgroundMenu")].concat($a()).concat(Ga()))}function Xa(e){return yr("markers",P(e,mr))}function Ya(e,t,n){return void 0!==(r=new Error).stack&&j(r.stack.split("\n"),(function(e){return 0<e.indexOf("alloy")&&!R(qa,(function(t){return-1<e.indexOf(t)}))})).getOr(ja),co(t,t,n,ar((function(e){return Ln.value((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.apply(void 0,t)}))})));var r}function Ja(e){return Ya(0,e,$n(a))}function Za(e){return Ya(0,e,$n(ye.none))}function Qa(e){return Ya(0,e,qn())}function ec(e){return Ya(0,e,qn())}function tc(e,t){return uo(e,u(t))}function nc(e){return uo(e,s)}function rc(e,t,n,r,o,i,a,c){return{x:e,y:t,bubble:n,direction:r,placement:o,restriction:i,label:a+"-"+o,alwaysFit:c=void 0!==c&&c}}function oc(e,t,n,r){var o=e+t;return r<o?n:o<n?r:o}function ic(e,t){return K(["left","right","top","bottom"],(function(n){return ae(t,n).map((function(t){return function(e){switch(t){case 1:return e.x;case 0:return e.x+e.width;case 2:return e.y;case 3:return e.y+e.height}}(e)}))}))}function ac(e,t){return e.x+e.width/2-t.width/2}function cc(e,t){return e.x+e.width-t.width}function uc(e,t){return e.y-t.height}function sc(e){return e.y+e.height}function lc(e,t){return e.y+e.height/2-t.height/2}function fc(e,t,n){return rc(e.x+e.width,lc(e,t),n.east(),Uc(),"east",ic(e,{left:0}),$c)}function dc(e,t,n){return rc(e.x-t.width,lc(e,t),n.west(),qc(),"west",ic(e,{right:1}),$c)}function mc(){return[Gc,Kc,Xc,Yc,Zc,Jc,fc,dc]}function gc(){return[Kc,Gc,Yc,Xc,Zc,Jc,fc,dc]}function pc(){return[Xc,Yc,Gc,Kc,Jc,Zc]}function hc(){return[Yc,Xc,Kc,Gc,Jc,Zc]}function vc(){return[Gc,Kc,Xc,Yc,Zc,Jc]}function yc(){return[Kc,Gc,Yc,Xc,Zc,Jc]}function bc(e,t,n){return aa((function(r,o){n(r,e,t)}))}function wc(e){return{key:e,value:void 0}}function kc(e){var t,n,r,o,i,a,c,u,s=lr("Creating behaviour: "+e.name,ru,e);return t=s.fields,n=s.name,r=s.active,o=s.apis,i=s.extra,a=s.state,c=tr(t),u=Tr(n,[_r("config",tr(t))]),tu(c,u,n,r,o,i,a)}function _c(e){var t,n=lr("Creating behaviour: "+e.name,ou,e),r=fr(n.branchKey,n.branches),o=n.name,i=n.active,a=n.apis,c=n.extra,u=n.state,s=Tr(o,[_r("config",t=r)]);return tu(t,s,o,i,a,c,u)}function xc(){return Re.fromDom(document)}function zc(e){return e.dom.focus()}function Cc(e){var t=pn(e).dom;return e.dom===t.activeElement}function Sc(e){return void 0===e&&(e=xc()),ye.from(e.dom.activeElement).map(Re.fromDom)}function Tc(e){return Sc(pn(e)).filter((function(t){return e.dom.contains(t.dom)}))}function Oc(e,t){var n=pn(t),r=Sc(n).bind((function(e){function n(t){return Ve(e,t)}var r,o;return n(t)?ye.some(t):(r=n,(o=function(e){for(var t=0;t<e.childNodes.length;t++){var n=Re.fromDom(e.childNodes[t]);if(r(n))return ye.some(n);var i=o(e.childNodes[t]);if(i.isSome())return i}return ye.none()})(t.dom))})),o=e(t);return r.each((function(e){Sc(n).filter((function(t){return Ve(t,e)})).fold((function(){zc(e)}),a)})),o}function Ec(e,t,n,r,o){function i(e){return e+"px"}return{position:e,left:t.map(i),top:n.map(i),right:r.map(i),bottom:o.map(i)}}function Ac(e,t){var n;gt(e,S(S({},n=t),{position:ye.some(n.position)}))}function Dc(e,t,n,r,o,i){var a=t.rect,c=a.x-n,u=a.y-r,s=o-(c+a.width),l=i-(u+a.height),f=ye.some(c),d=ye.some(u),m=ye.some(s),g=ye.some(l),p=ye.none();return t.direction.fold((function(){return Ec(e,f,d,p,p)}),(function(){return Ec(e,p,d,m,p)}),(function(){return Ec(e,f,p,p,g)}),(function(){return Ec(e,p,p,m,g)}),(function(){return Ec(e,f,d,p,p)}),(function(){return Ec(e,f,p,p,g)}),(function(){return Ec(e,f,d,p,p)}),(function(){return Ec(e,p,d,m,p)}))}function Mc(e,t){return e.fold((function(){var e=t.rect;return Ec("absolute",ye.some(e.x),ye.some(e.y),ye.none(),ye.none())}),(function(e,n,r,o){return Dc("absolute",t,e,n,r,o)}),(function(e,n,r,o){return Dc("fixed",t,e,n,r,o)}))}function Rc(e,t){var n=w(Ht,t),r=e.fold(n,n,(function(){var e=Bt();return Ht(t).translate(-e.left,-e.top)})),o=St(t),i=_t(t);return Mn(r.left,r.top,o,i)}u(Jr(Ga().concat($a())));var Nc=u(Jr(Ga())),Bc=u(yr("initSize",[mr("numColumns"),mr("numRows")])),Pc=Ir([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Lc=Pc.southeast,Ic=Pc.southwest,Hc=Pc.northeast,Fc=Pc.northwest,jc=Pc.south,Vc=Pc.north,Uc=Pc.east,qc=Pc.west,Wc=function(e,t,n){return Math.min(Math.max(e,t),n)},$c="layout",Gc=function(e,t,n){return rc(e.x,sc(e),n.southeast(),Lc(),"southeast",ic(e,{left:1,top:3}),$c)},Kc=function(e,t,n){return rc(cc(e,t),sc(e),n.southwest(),Ic(),"southwest",ic(e,{right:0,top:3}),$c)},Xc=function(e,t,n){return rc(e.x,uc(e,t),n.northeast(),Hc(),"northeast",ic(e,{left:1,bottom:2}),$c)},Yc=function(e,t,n){return rc(cc(e,t),uc(e,t),n.northwest(),Fc(),"northwest",ic(e,{right:0,bottom:2}),$c)},Jc=function(e,t,n){return rc(ac(e,t),uc(e,t),n.north(),Vc(),"north",ic(e,{bottom:2}),$c)},Zc=function(e,t,n){return rc(ac(e,t),sc(e),n.south(),jc(),"south",ic(e,{top:3}),$c)},Qc=Object.freeze({__proto__:null,events:function(e){return ra([Co(Ni(),(function(t,n){var r,o=e.channels,i=Ce(o),a=n,c=(r=a).universal?i:I(i,(function(e){return _e(r.channels,e)}));xe(c,(function(e){var n=o[e],r=n.schema,i=lr("channel["+e+"] data\nReceiver: "+No(t.element),r,a.data);n.onReceive(t,i)}))}))])}}),eu=[gr("channels",cr(Ln.value,tr([Qa("onReceive"),Or("schema",Qr())])))],tu=function(e,t,n,r,o,i,a){function c(e){return ce(e,n)?e[n]():ye.none()}var s=ne(o,(function(e,t){return r=n,a=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=[e].concat(t);return e.config({name:u(r)}).fold((function(){throw new Error("We could not find any behaviour configuration for: "+r+". Using API: "+i)}),(function(t){var n=Array.prototype.slice.call(a,1);return o.apply(void 0,[e,t.config,t.state].concat(n))}))},c=i=t,s=(o=e).toString(),l=s.indexOf(")")+1,f=s.indexOf("("),d=s.substring(f+1,l-1).split(/,\s*/),a.toFunctionAnnotation=function(){return{name:c,parameters:ba(d.slice(0,1).concat(d.slice(3)))}},a;var r,o,i,a,c,s,l,f,d})),l=ne(i,Io),f=S(S(S({},l),s),{revoke:w(wc,n),config:function(t){var r=lr(n+"-config",e,t);return{key:n,value:{config:r,me:f,configAsRaw:Pe((function(){return lr(n+"-config",e,t)})),initialConfig:t,state:a}}},schema:u(t),exhibit:function(e,t){return Ee(c(e),ae(r,"exhibit"),(function(e,n){return n(t,e.config,e.state)})).getOrThunk((function(){return Vo({})}))},name:u(n),handlers:function(e){return c(e).map((function(e){return ae(r,"events").getOr((function(){return{}}))(e.config,e.state)})).getOr({})}});return f},nu=lo,ru=tr([mr("fields"),mr("name"),Or("active",{}),Or("apis",{}),Or("state",ka),Or("extra",{})]),ou=tr([mr("branchKey"),mr("branches"),mr("name"),Or("active",{}),Or("apis",{}),Or("state",ka),Or("extra",{})]),iu=u(void 0),au=kc({fields:eu,name:"receiving",active:Qc}),cu=Object.freeze({__proto__:null,exhibit:function(e,t){return Vo({classes:[],styles:t.useFixed()?{}:{position:"relative"}})}}),uu=Ir([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),su=function(e,t,n){var r=zn(t,n);return e.fold(u(r),u(r),(function(){var e=Bt();return r.translate(-e.left,-e.top)}))};function lu(e){return ct(e,Eu)}function fu(e,t,n,r){var o,i,a,c,s,l,f,d,m,g,p,h,v,y,b,w,k,_,x,z,C,S,T,O,E,A,D,M,R,N,B,P,L,I,H,F,j,V,U,q=e.bubble,W=q.offset,$=(L=r,I=e.restriction,H=W,F=oe("left",L.x),j=oe("top",L.y),V=oe("right",L.right),U=oe("bottom",L.bottom),Mn(F,j,V-F,U-j)),G=e.x+W.left,K=e.y+W.top,X=Mn(G,K,t,n),Y=(o=$.x,i=$.y,a=$.right,c=$.bottom,s=X.x,l=X.y,f=X.right,d=X.bottom,m=X.width,g=X.height,{originInBounds:o<=s&&s<=a&&i<=l&&l<=c,sizeInBounds:f<=a&&o<=f&&d<=c&&i<=d,visibleW:Math.min(m,o<=s?a-s:f-o),visibleH:Math.min(g,i<=l?c-l:d-i)}),J=Y.visibleW,Z=Y.visibleH,Q=Y.originInBounds&&Y.sizeInBounds,ee=Q?X:(p=$.x,h=$.y,v=$.right,y=$.bottom,b=X.x,w=X.y,k=X.width,_=X.height,x=Math.max(p,v-k),z=Math.max(h,y-_),C=Wc(b,p,x),S=Wc(w,h,z),T=Math.min(C+k,v)-C,O=Math.min(S+_,y)-S,Mn(C,S,T,O)),te=0<ee.width&&0<ee.height,ne=(E=e.direction,M=u((A=ee).bottom-(D=r).y),R=u(D.bottom-A.y),N=E.fold(R,R,M,M,R,M,R,R),B=u(A.right-D.x),P=u(D.right-A.x),{maxWidth:E.fold(P,B,P,B,P,P,P,B),maxHeight:N}),re={rect:ee,maxHeight:ne.maxHeight,maxWidth:ne.maxWidth,direction:e.direction,placement:e.placement,classes:{on:q.classesOn,off:q.classesOff},layout:e.label,testY:K};function oe(e,t){return I[e].map((function(n){var r="top"===e||"bottom"===e,o=r?H.top:H.left,i=("left"===e||"top"===e?Math.max:Math.min)(n,t)+o;return r?Wc(i,L.y,L.bottom):Wc(i,L.x,L.right)})).getOr(t)}return Q||e.alwaysFit?Au.fit(re):Au.nofit(re,J,Z,te)}function du(e){function t(){return n.get().each(e)}var n=Lr(ye.none());return{clear:function(){t(),n.set(ye.none())},isSet:function(){return n.get().isSome()},get:function(){return n.get()},set:function(e){t(),n.set(ye.some(e))}}}function mu(){return du((function(e){return e.destroy()}))}function gu(){return du((function(e){return e.unbind()}))}function pu(){var e=du(a);return S(S({},e),{on:function(t){return e.get().each(t)}})}function hu(e,t,n){return Ot(e,t,Du,n,!1)}function vu(e,t,n){return Ot(e,t,Du,n,!0)}function yu(e,t){function n(t){var n,r=null!==(n=t.raw.pseudoElement)&&void 0!==n?n:"";return Ve(t.target,e)&&!me(r)&&_e(Ru,t.raw.propertyName)}function r(r){var i;(o(r)||n(r))&&(u.clear(),s.clear(),!o(i=null==r?void 0:r.raw.type)&&i!==Ti()||(clearTimeout(a),st(e,Nu),Zo(e,t.classes)))}function i(){u.set(hu(e,Ti(),r)),s.set(hu(e,Si(),r))}var a,c,u=gu(),s=gu();"ontransitionstart"in e.dom?c=hu(e,Oi(),(function(e){n(e)&&(c.unbind(),i())})):i();var l,d,m=(l=e,d=g("transition-delay"),F(g("transition-duration"),(function(e,t,n){var r=p(d[n])+p(t);return Math.max(e,r)}),0));function g(e){var t=pt(l,e);return I(f(t)?t.split(/\s*,\s*/):[],me)}function p(e){if(f(e)&&/^[\d.]+/.test(e)){var t=parseFloat(e);return De(e,"ms")?t:1e3*t}return 0}requestAnimationFrame((function(){a=setTimeout(r,m+17),ot(e,Nu,a)}))}function bu(e,t,n,r,o,i){var a,c,u,s,f,d,m,g,p,h=(a=r,c=o,i.exists((function(e){var t=a.mode;return"all"===t||e[t]!==c[t]})));function v(e){return parseFloat(e).toFixed(3)}h||(p=e,W(r.classes,(function(e){return Yo(p,e)})))?(dt(e,"position",n.position),u=Rc(t,e),s=Mc(t,S(S({},o),{rect:u})),f=K(Ru,(function(e){return s[e]})),g=n,oe(f,(function(e,t){var n,r,o,i=g[t].map(v),a=e.map(v);return!Ee(n=i,r=a,o=void 0===o?l:o).getOr(n.isNone()&&r.isNone())})).isSome()&&(gt(e,f),h&&(Jo(d=e,(m=r).classes),ct(d,Nu).each((function(e){clearTimeout(parseInt(e,10)),st(d,Nu)})),yu(d,m)),bt(e))):Zo(e,r.classes)}function wu(e,t,n,r){yt(t,"max-height"),yt(t,"max-width");var o,i,a,c,l,f,d,m,g,p={width:St(o=t),height:_t(o)};return i=t,a=r.preference,c=e,l=p,f=n,d=r.bounds,m=l.width,g=l.height,F(a,(function(e,t){var n=w(h,t);return e.fold(u(e),n)}),Au.nofit({rect:c,maxHeight:l.height,maxWidth:l.width,direction:Lc(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:c.y},-1,-1,!1)).fold(s,s);function h(e,t,n,r,o){var a=fu(e(c,l,f,i,d),m,g,d);return a.fold(u(a),(function(e,i,c,u){return(o===u?r<c||n<i:!o&&u)?a:Au.nofit(t,n,r,o)}))}}function ku(e,t){var n=e,r=Math.floor(t);dt(n,"max-height",_n.max(n,r,["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"])+"px")}function _u(e,t,n){return void 0===e[t]?n:e[t]}function xu(e,t,n,r){function o(e){return ae(n,e).getOr([])}function i(e,t,n){var r=G(Iu,n);return{offset:zn(e,t),classesOn:q(n,o),classesOff:q(r,o)}}var a=e*(r=void 0===r?1:r),c=t*r;return{southeast:function(){return i(-e,t,["top","alignLeft"])},southwest:function(){return i(e,t,["top","alignRight"])},south:function(){return i(-e/2,t,["top","alignCentre"])},northeast:function(){return i(-e,-t,["bottom","alignLeft"])},northwest:function(){return i(e,-t,["bottom","alignRight"])},north:function(){return i(-e/2,-t,["bottom","alignCentre"])},east:function(){return i(e,-t/2,["valignCentre","left"])},west:function(){return i(-e,-t/2,["valignCentre","right"])},insetNortheast:function(){return i(a,c,["top","alignLeft","inset"])},insetNorthwest:function(){return i(-a,c,["top","alignRight","inset"])},insetNorth:function(){return i(-a/2,c,["top","alignCentre","inset"])},insetSoutheast:function(){return i(a,-c,["bottom","alignLeft","inset"])},insetSouthwest:function(){return i(-a,-c,["bottom","alignRight","inset"])},insetSouth:function(){return i(-a/2,-c,["bottom","alignCentre","inset"])},insetEast:function(){return i(-a,-c/2,["valignCentre","right","inset"])},insetWest:function(){return i(a,-c/2,["valignCentre","left","inset"])}}}function zu(){return xu(0,0,{})}function Cu(e,t){return function(n){return"rtl"===Fu(n)?t:e}}uu.none;var Su,Tu=uu.relative,Ou=uu.fixed,Eu="data-alloy-placement",Au=Ir([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Du=z,Mu=Tt,Ru=["top","bottom","right","left"],Nu="data-alloy-transition-timer",Bu=u((function(e,t){ku(e,t),mt(e,{"overflow-x":"hidden","overflow-y":"auto"})})),Pu=u((function(e,t){ku(e,t)})),Lu=function(e,t,n,r){var o,i,a,c,u=wu(e,t,n,r),s=t,l=u,f=Mc((o=r).origin,l);return o.transition.each((function(e){bu(s,o.origin,f,e,l,o.lastPlacement)})),Ac(s,f),c=u.placement,ot(t,Eu,c),Zo(i=t,(a=u.classes).off),Jo(i,a.on),(0,r.maxHeightFunction)(t,u.maxHeight),(0,r.maxWidthFunction)(t,u.maxWidth),{layout:u.layout,placement:u.placement}},Iu=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Hu=s,Fu=function(e){return"rtl"===pt(e,"direction")?"rtl":"ltr"};function ju(e){return Ra(e,(function(e){return $t(e)&&at(e,"data-alloy-vertical-dir")===Su.BottomToTop}))}function Vu(){return Tr("layouts",[mr("onLtr"),mr("onRtl"),kr("onBottomLtr"),kr("onBottomRtl")])}function Uu(e,t,n,r,o,i,a){var c=a.map(ju).getOr(!1),u=t.layouts.map((function(t){return t.onLtr(e)})),s=t.layouts.map((function(t){return t.onRtl(e)}));return Cu(c?t.layouts.bind((function(t){return t.onBottomLtr.map((function(t){return t(e)}))})).or(u).getOr(o):u.getOr(n),c?t.layouts.bind((function(t){return t.onBottomRtl.map((function(t){return t(e)}))})).or(s).getOr(i):s.getOr(r))(e)}function qu(e){return e.fold(s,(function(e,t,n){return e.translate(-t,-n)}))}function Wu(e){return e.fold(s,s)}function $u(e){return F(e,(function(e,t){return e.translate(t.left,t.top)}),zn(0,0))}function Gu(e){return $u(P(e,Wu))}function Ku(e,t,n){var r,o,i=Bt(qe(e.element)),a=(r=e,o=Ge(n.root).dom,ye.from(o.frameElement).map(Re.fromDom).filter((function(e){return Ve(qe(e),qe(r.element))})).map(zt).getOr(i));return cs(a,i.left,i.top)}function Xu(e,t,n,r){var o=as(zn(e,t));return ye.some({point:o,width:n,height:r})}function Yu(e,t,n,r,o){return e.map((function(e){var i=[t,e.point],a=r.fold((function(){return Gu(i)}),(function(){return Gu(i)}),(function(){return $u(P(i,qu))})),c={x:a.left,y:a.top,width:e.width,height:e.height},u=(n.showAbove?pc:vc)(),s=(n.showAbove?hc:yc)(),l=Uu(o,n,u,s,u,s,ye.none());return Hu({anchorBox:c,bubble:n.bubble.getOr(zu()),overrides:n.overrides,layouts:l,placer:ye.none()})}))}function Ju(e,t,n){var r,o=e.document.createRange(),i=o;return t.fold((function(e){i.setStartBefore(e.dom)}),(function(e,t){i.setStart(e.dom,t)}),(function(e){i.setStartAfter(e.dom)})),r=o,n.fold((function(e){r.setEndBefore(e.dom)}),(function(e,t){r.setEnd(e.dom,t)}),(function(e){r.setEndAfter(e.dom)})),o}function Zu(e,t,n,r,o){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(r.dom,o),i}function Qu(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}function es(e,t,n){return t(Re.fromDom(n.startContainer),n.startOffset,Re.fromDom(n.endContainer),n.endOffset)}function ts(e,t){return n=e,i=t.match({domRange:function(e){return{ltr:u(e),rtl:ye.none}},relative:function(e,t){return{ltr:Pe((function(){return Ju(n,e,t)})),rtl:Pe((function(){return ye.some(Ju(n,t,e))}))}},exact:function(e,t,r,o){return{ltr:Pe((function(){return Zu(n,e,t,r,o)})),rtl:Pe((function(){return ye.some(Zu(n,r,o,e,t))}))}}}),((o=(r=i).ltr()).collapsed?r.rtl().filter((function(e){return!1===e.collapsed})).map((function(e){return gs.rtl(Re.fromDom(e.endContainer),e.endOffset,Re.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return es(0,gs.ltr,o)})):es(0,gs.ltr,o)).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}});var n,r,o,i}(Su=Su||{}).TopToBottom="toptobottom",Su.BottomToTop="bottomtotop";var ns="data-alloy-vertical-dir",rs=[mr("hotspot"),kr("bubble"),Or("overrides",{}),Vu(),tc("placement",(function(e,t,n){var r=Rc(n,t.hotspot.element),o=Uu(e.element,t,vc(),yc(),pc(),hc(),ye.some(t.hotspot.element));return ye.some(Hu({anchorBox:r,bubble:t.bubble.getOr(zu()),overrides:t.overrides,layouts:o,placer:ye.none()}))}))],os=[mr("x"),mr("y"),Or("height",0),Or("width",0),Or("bubble",zu()),Or("overrides",{}),Vu(),tc("placement",(function(e,t,n){var r=su(n,t.x,t.y),o=Mn(r.left,r.top,t.width,t.height),i=Uu(e.element,t,mc(),gc(),mc(),gc(),ye.none());return ye.some(Hu({anchorBox:o,bubble:t.bubble,overrides:t.overrides,layouts:i,placer:ye.none()}))}))],is=Ir([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),as=is.screen,cs=is.absolute,us=[mr("node"),mr("root"),kr("bubble"),Vu(),Or("overrides",{}),Or("showAbove",!1),tc("placement",(function(e,t,n){var r=Ku(e,0,t);return t.node.filter(yn).bind((function(o){var i=o.dom.getBoundingClientRect(),a=Xu(i.left,i.top,i.width,i.height),c=t.node.getOr(e.element);return Yu(a,r,t,n,c)}))}))],ss=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},ls=Ir([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),fs=(ls.before,ls.on,ls.after,function(e){return e.fold(s,s,s)}),ds=Ir([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),ms={domRange:ds.domRange,relative:ds.relative,exact:ds.exact,exactFromRange:function(e){return ds.exact(e.start,e.soffset,e.finish,e.foffset)},getWin:function(e){return Ge(e.match({domRange:function(e){return Re.fromDom(e.startContainer)},relative:function(e,t){return fs(e)},exact:function(e,t,n,r){return e}}))},range:ss},gs=Ir([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]);function ps(e){return tf.getOption(e)}function hs(e){return ps(e).filter((function(e){return 0!==e.trim().length||-1<e.indexOf(" ")})).isSome()||_e(nf,Ne(e))}function vs(e,t){return je(n=void 0===e?document:e.dom)?[]:P(n.querySelectorAll(t),Re.fromDom);var n}function ys(e){if(0<e.rangeCount){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return ye.some(ss(Re.fromDom(t.startContainer),t.startOffset,Re.fromDom(n.endContainer),n.endOffset))}return ye.none()}function bs(e){if(null===e.anchorNode||null===e.focusNode)return ys(e);var t,n,r,o,i,a,c,u,s,l,f,d=Re.fromDom(e.anchorNode),m=Re.fromDom(e.focusNode);return t=d,n=e.anchorOffset,r=m,o=e.focusOffset,a=n,c=r,u=o,(s=qe(i=t).dom.createRange()).setStart(i.dom,a),s.setEnd(c.dom,u),l=s,f=Ve(t,r)&&n===o,l.collapsed&&!f?ye.some(ss(d,e.anchorOffset,m,e.focusOffset)):ys(e)}function ws(e,t){var n,r,o=(n=ts(e,t)).getClientRects();return 0<(r=0<o.length?o[0]:n.getBoundingClientRect()).width||0<r.height?ye.some(r).map(Qu):ye.none()}function ks(e,t){return{element:e,offset:t}}function _s(e,t){return(Gt(e)?ks:function(e,t){var n=Ye(e);if(0===n.length)return ks(e,t);if(t<n.length)return ks(n[t],0);var r=n[n.length-1];return ks(r,(Gt(r)?tf.get(r):Ye(r)).length)})(e,t)}function xs(e,t){return t.getSelection.getOrThunk((function(){return function(){return ye.from(e.getSelection()).filter((function(e){return 0<e.rangeCount})).bind(bs)}}))().map((function(e){var t=_s(e.start,e.soffset),n=_s(e.finish,e.foffset);return ms.range(t.element,t.offset,n.element,n.offset)}))}function zs(e){return e.x+e.width}function Cs(e,t){return e.x-t.width}function Ss(e,t){return e.y-t.height+e.height}function Ts(e,t,n){return rc(zs(e),e.y,n.southeast(),Lc(),"southeast",ic(e,{left:0,top:2}),of)}function Os(e,t,n){return rc(Cs(e,t),e.y,n.southwest(),Ic(),"southwest",ic(e,{right:1,top:2}),of)}function Es(e,t,n){return rc(zs(e),Ss(e,t),n.northeast(),Hc(),"northeast",ic(e,{left:0,bottom:3}),of)}function As(e,t,n){return rc(Cs(e,t),Ss(e,t),n.northwest(),Fc(),"northwest",ic(e,{right:1,bottom:3}),of)}function Ds(){return[Ts,Os,Es,As]}function Ms(){return[Os,Ts,As,Es]}function Rs(e,t,n,r,o,i,c){var u,s,l,f,d,m,g,p,h,v,y,b,w,k,_={anchorBox:n.anchorBox,origin:t};return u=_,s=o.element,l=n.bubble,f=n.layouts,d=i,m=r,g=n.overrides,p=c,v=_u(g,"maxHeightFunction",Bu()),y=_u(g,"maxWidthFunction",a),b=u.anchorBox,w=u.origin,k={bounds:(h=w,m.fold((function(){return h.fold(Nn,Nn,Mn)}),(function(e){return h.fold(e,e,(function(){var t=e(),n=su(h,t.x,t.y);return Mn(n.left,n.top,t.width,t.height)}))}))),origin:w,preference:f,maxHeightFunction:v,maxWidthFunction:y,lastPlacement:d,transition:p},Lu(b,s,l,k)}function Ns(e,t){On(e.element,t.element)}function Bs(e,t){var n,r=e.components();xe((n=e).components(),(function(e){return En(e.element)})),Rt(n.element),n.syncComponents();var o=G(r,t);xe(o,(function(t){df(t),e.getSystem().removeFromWorld(t)})),xe(t,(function(t){t.getSystem().isConnected()?Ns(e,t):(e.getSystem().addToWorld(t),Ns(e,t),yn(e.element)&&mf(t)),e.syncComponents()}))}function Ps(e,t){gf(e,t,On)}function Ls(e){df(e),En(e.element),e.getSystem().removeFromWorld(e)}function Is(e){var t=Ke(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}));Ls(e),t.each((function(e){e.syncComponents()}))}function Hs(e){var t=e.components();xe(t,Ls),Rt(e.element),e.syncComponents()}function Fs(e,t){pf(e,t,On)}function js(e){var t=Ye(e.element);xe(t,(function(t){e.getByDom(t).each(df)})),En(e.element)}function Vs(e,t,n,r){n.get().each((function(t){Hs(e)})),Ps(t.getAttachPoint(e),e);var o=e.getSystem().build(r);return Ps(e,o),n.set(o),o}function Us(e,t,n,r){var o=Vs(e,t,n,r);return t.onOpen(e,o),o}function qs(e,t,n){n.get().each((function(r){Hs(e),Is(e),t.onClose(e,r),n.clear()}))}function Ws(e,t,n){return n.isOpen()}function $s(e){var t=lr("Dismissal",_f,e),n={};return n[bf()]={schema:tr([mr("target")]),onReceive:function(e,n){yf.isOpen(e)&&(yf.isPartOf(e,n.target)||t.isExtraPart(e,n.target)||t.fireEventInstead.fold((function(){return yf.close(e)}),(function(t){return yo(e,t.event)})))}},n}function Gs(e){var t=lr("Reposition",xf,e),n={};return n[wf()]={onReceive:function(e){yf.isOpen(e)&&t.fireEventInstead.fold((function(){return t.doReposition(e)}),(function(t){return yo(e,t.event)}))}},n}function Ks(e,t,n){t.store.manager.onLoad(e,t,n)}function Xs(e,t,n){t.store.manager.onUnload(e,t,n)}function Ys(){var e=Lr(null);return _a({set:e.set,get:e.get,isNotSet:function(){return null===e.get()},clear:function(){e.set(null)},readState:function(){return{mode:"memory",value:e.get()}}})}function Js(){var e=Lr({}),t=Lr({});return _a({readState:function(){return{mode:"dataset",dataByValue:e.get(),dataByText:t.get()}},lookup:function(n){return ae(e.get(),n).orThunk((function(){return ae(t.get(),n)}))},update:function(n){var r=e.get(),o=t.get(),i={},a={};xe(n,(function(e){ae(i[e.value]=e,"meta").each((function(t){ae(t,"text").each((function(t){a[t]=e}))}))})),e.set(S(S({},r),i)),t.set(S(S({},o),a))},clear:function(){e.set({}),t.set({})}})}function Zs(e,t,n,r){var o=t.store;n.update([r]),o.setValue(e,r),t.onSetValue(e,r)}function Qs(e,t){return Pr(e,{},P(t,(function(t){return n=t.name(),r="Cannot configure "+t.name()+" for "+e,co(n,n,Gn(),Jn((function(e){return jr("The field: "+n+" is forbidden. "+r)})));var n,r})).concat([uo("dump",s)]))}function el(e){return e.dump}function tl(e,t){return S(S({},nu(t)),e.dump)}function nl(e){return Oe(e,"uiType")}function rl(e){return e.fold(ye.some,ye.none,ye.some,ye.some)}function ol(e){function t(e){return e.name}return e.fold(t,t,t,t)}function il(e,t){return function(n){var r=lr("Converting part type",t,n);return e(r)}}function al(e,t,n,r){return Gr(t.defaults(e,n,r),n,{uid:e.partUids[t.name]},t.overrides(e,n,r))}function cl(e,t){var n={};return xe(t,(function(t){rl(t).each((function(t){var r=nd(e,t.pname);n[t.name]=function(n){var o=lr("Part: "+t.name+" in "+e,Jr(t.schema),n);return S(S({},r),{config:n,validated:o})}}))})),n}function ul(e,t,n){return{uiType:Lf(),owner:e,name:t,config:n,validated:{}}}function sl(e){return q(e,(function(e){return e.fold(ye.none,ye.some,ye.none,ye.none).map((function(e){return yr(e.name,e.schema.concat([nc(ed())]))})).toArray()}))}function ll(e){return P(e,ol)}function fl(e,t,n){return r=t,o={},i={},xe(n,(function(e){e.fold((function(e){o[e.pname]=Bf(!0,(function(t,n,r){return e.factory.sketch(al(t,e,n,r))}))}),(function(e){var t=r.parts[e.name];i[e.name]=u(e.factory.sketch(al(r,e,t[ed()]),t))}),(function(e){o[e.pname]=Bf(!1,(function(t,n,r){return e.factory.sketch(al(t,e,n,r))}))}),(function(e){o[e.pname]=Pf(!0,(function(t,n,r){return P(t[e.name],(function(n){return e.factory.sketch(Gr(e.defaults(t,n,r),n,e.overrides(t,n)))}))}))}))})),{internals:u(o),externals:u(i)};var r,o,i}function dl(e,t,n){return r=ye.some(e),i=(o=t).components,l=ne(n,(function(e,t){return r=e,o=!1,{name:u(n=t),required:function(){return r.fold((function(e,t){return e}),(function(e,t){return e}))},used:function(){return o},replace:function(){if(o)throw new Error("Trying to use the same placeholder more than once: "+n);return o=!0,r}};var n,r,o})),a=r,c=o,s=l,f=q(i,(function(e){return Nf(a,c,e,s)})),te(l,(function(e){if(!1===e.used()&&e.required())throw new Error("Placeholder: "+e.name()+" was not found in components list\nNamespace: "+r.getOr("none")+"\nComponents: "+JSON.stringify(o.components,null,2))})),f;var r,o,i,a,c,s,l,f}function ml(e,t,n){var r=t.partUids[n];return e.getSystem().getByUid(r).toOptional()}function gl(e,t,n){return ml(e,t,n).getOrDie("Could not find part: "+n)}function pl(e,t,n){var r={},o=t.partUids,i=e.getSystem();return xe(n,(function(e){r[e]=u(i.getByUid(o[e]))})),r}function hl(e,t){var n=e.getSystem();return ne(t.partUids,(function(e,t){return u(n.getByUid(e))}))}function vl(e){return Ce(e.partUids)}function yl(e,t,n){var r={},o=t.partUids,i=e.getSystem();return xe(n,(function(e){r[e]=u(i.getByUid(o[e]).getOrDie())})),r}function bl(e,t){return lo(P(ll(t),(function(t){return{key:t,value:e+"-"+t}})))}function wl(e){return co("partUids","partUids",Kn((function(t){return bl(t.uid,e)})),Qr())}function kl(e,t,n,r,o){var i;return lr(e+" [SpecSchema]",tr((i=o,(0<r.length?[yr("parts",r)]:[]).concat([mr("uid"),Or("dom",{}),Or("components",[]),nc("originalSpec"),Or("debug.sketcher",{})]).concat(i)).concat(t)),n)}function _l(e,t,n,r,o){var i=od(o),a=kl(e,t,i,sl(n),[wl(n)]),c=fl(0,a,n);return r(a,dl(e,a,c.internals()),i,c.externals())}function xl(e){var t=lr("Sketcher for "+e.name,id,e),n=ne(t.apis,Fo),r=ne(t.extraApis,Io);return S(S({name:t.name,configFields:t.configFields,sketch:function(e){return n=t.name,r=t.configFields,(0,t.factory)(kl(n,r,o=od(e),[],[]),o);var n,r,o}},n),r)}function zl(e){var t=lr("Sketcher for "+e.name,ad,e),n=cl(t.name,t.partFields),r=ne(t.apis,Fo),o=ne(t.extraApis,Io);return S(S({name:t.name,partFields:t.partFields,configFields:t.configFields,sketch:function(e){return _l(t.name,t.configFields,t.partFields,t.factory,e)},parts:n},r),o)}function Cl(e){return"input"===Ne(e)&&"radio"!==at(e,"type")||"textarea"===Ne(e)}function Sl(e,t,n){(t.disabled()?ld:fd)(e,t)}function Tl(e,t){return!0===t.useNative&&_e(sd,Ne(e.element))}function Ol(e,t){return Tl(e,t)?ut(e.element,"disabled"):"true"===at(e.element,"aria-disabled")}function El(e,t,n,r){var o=vs(e.element,"."+t.highlightClass);xe(o,(function(n){R(r,(function(e){return e.element===n}))||(Xo(n,t.highlightClass),e.getSystem().getByDom(n).each((function(n){t.onDehighlight(e,n),yo(n,ta())})))}))}function Al(e,t,n,r){El(e,t,0,[r]),Gl(0,t,0,r)||(Ko(r.element,t.highlightClass),t.onHighlight(e,r),yo(r,ea()))}function Dl(e,t,n,r){var o=vs(e.element,"."+t.itemClass);return V(o,(function(e){return Yo(e,t.highlightClass)})).bind((function(t){var n=oc(t,r,0,o.length-1);return e.getSystem().getByDom(o[n]).toOptional()}))}function Ml(e,t,n){var r=$(e.slice(0,t)),o=$(e.slice(t+1));return j(r.concat(o),n)}function Rl(e,t,n){return j($(e.slice(0,t)),n)}function Nl(e,t,n){var r=e.slice(0,t);return j(e.slice(t+1).concat(r),n)}function Bl(e,t,n){return j(e.slice(t+1),n)}function Pl(e){return function(t){var n=t.raw;return _e(e,n.which)}}function Ll(e){return function(t){return W(e,(function(e){return e(t)}))}}function Il(e){return!0===e.raw.shiftKey}function Hl(e){return!0===e.raw.ctrlKey}function Fl(e,t){return{matches:e,classification:t}}function jl(e,t,n){t.exists((function(e){return n.exists((function(t){return Ve(t,e)}))}))||bo(e,Yi(),{prevFocus:t,newFocus:n})}function Vl(){function e(e){return Tc(e.element)}return{get:e,set:function(t,n){var r=e(t);t.getSystem().triggerFocus(n,t.element),jl(t,r,e(t))}}}function Ul(){function e(e){return hd.getHighlighted(e).map((function(e){return e.element}))}return{get:e,set:function(t,n){var r=e(t);t.getSystem().getByDom(n).fold(a,(function(e){hd.highlight(t,e)}));var o=e(t);jl(t,r,o)}}}function ql(e,t,n,r,o,i){var a=i.map(Rn);return lf(e,t,n,r,o,a)}function Wl(e,t,n){var r,o,i,a=t.getAttachPoint(e);dt(e.element,"position",ff.getMode(a)),i=t.cloakVisibilityAttr,ht((r=e).element,o="visibility").fold((function(){st(r.element,i)}),(function(e){ot(r.element,i,e)})),dt(r.element,o,"hidden")}function $l(e,t,n){var r,o,i,a=e.element;R(["top","left","right","bottom"],(function(e){return ht(a,e).isSome()}))||yt(e.element,"position"),o="visibility",i=t.cloakVisibilityAttr,ct((r=e).element,i).fold((function(){return yt(r.element,o)}),(function(e){return dt(r.element,o,e)}))}function Gl(e,t,n,r){return Yo(r.element,t.highlightClass)}function Kl(e,t,n){return Ba(e.element,"."+t.itemClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}function Xl(e,t,n){var r=vs(e.element,"."+t.itemClass);return(0<r.length?ye.some(r[r.length-1]):ye.none()).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}function Yl(e,t,n){return se(P(vs(e.element,"."+t.itemClass),(function(t){return e.getSystem().getByDom(t).toOptional()})))}gs.ltr,gs.rtl;var Jl,Zl,Ql,ef,tf=(Jl=Gt,{get:function(e){if(!Jl(e))throw new Error("Can only get text value of a text node");return Zl(e).getOr("")},getOption:Zl=function(e){return Jl(e)?ye.from(e.dom.nodeValue):ye.none()},set:function(e,t){if(!Jl(e))throw new Error("Can only set raw text value of a text node");e.dom.nodeValue=t}}),nf=["img","br"],rf=[kr("getSelection"),mr("root"),kr("bubble"),Vu(),Or("overrides",{}),Or("showAbove",!1),tc("placement",(function(e,t,n){var r=Ge(t.root).dom,o=Ku(e,0,t);return Yu(xs(r,t).bind((function(e){return t=r,n=ms.exactFromRange(e),(0<(o=ts(t,n).getBoundingClientRect()).width||0<o.height?ye.some(o).map(Qu):ye.none()).orThunk((function(){var t=Re.fromText("\ufeff");Et(e.start,t);var n=ws(r,ms.exact(t,0,t,1));return En(t),n})).bind((function(e){return Xu(e.left,e.top,e.width,e.height)}));var t,n,o})),o,t,n,xs(r,t).bind((function(e){return $t(e.start)?ye.some(e.start):dn(e.start)})).getOr(e.element))}))],of="link-layout",af=fr("type",{selection:rf,node:us,hotspot:rs,submenu:[mr("item"),Vu(),Or("overrides",{}),tc("placement",(function(e,t,n){var r=Rc(n,t.item.element),o=Uu(e.element,t,Ds(),Ms(),Ds(),Ms(),ye.none());return ye.some(Hu({anchorBox:r,bubble:zu(),overrides:t.overrides,layouts:o,placer:ye.none()}))}))],makeshift:os}),cf=[wr("classes",to),Mr("mode","all",["all","layout","placement"])],uf=[Or("useFixed",x),kr("getBounds")],sf=[gr("anchor",af),Tr("transition",cf)],lf=function(e,t,n,r,o,i){var a=lr("placement.info",Jr(sf),o),c=a.anchor,s=r.element,l=n.get(r.uid);Oc((function(){dt(s,"position","fixed");var o=ht(s,"visibility");dt(s,"visibility","hidden");var f,d,m,g,p=t.useFixed()?(g=document.documentElement,Ou(0,0,g.clientWidth,g.clientHeight)):(d=zt((f=e).element),m=f.element.dom.getBoundingClientRect(),Tu(d.left,d.top,m.width,m.height)),h=c.placement,v=i.map(u).or(t.getBounds);h(e,c,p).each((function(t){var o=t.placer.getOr(Rs)(e,p,t,v,r,l,a.transition);n.set(r.uid,o)})),o.fold((function(){yt(s,"visibility")}),(function(e){dt(s,"visibility",e)})),ht(s,"left").isNone()&&ht(s,"top").isNone()&&ht(s,"right").isNone()&&ht(s,"bottom").isNone()&&ue(ht(s,"position"),"fixed")&&yt(s,"position")}),s)},ff=kc({fields:uf,name:"positioning",active:cu,apis:Object.freeze({__proto__:null,position:function(e,t,n,r,o){ql(e,t,n,r,o,ye.none())},positionWithin:ql,positionWithinBounds:lf,getMode:function(e,t,n){return t.useFixed()?"fixed":"absolute"},reset:function(e,t,n,r){var o=r.element;xe(["position","left","right","top","bottom"],(function(e){return yt(o,e)})),st(o,Eu),n.clear(r.uid)}}),state:Object.freeze({__proto__:null,init:function(){var e={};return _a({readState:function(){return e},clear:function(t){v(t)?delete e[t]:e={}},set:function(t,n){e[t]=n},get:function(t){return ae(e,t)}})}})}),df=function(e){yo(e,Gi());var t=e.components();xe(t,df)},mf=function(e){var t=e.components();xe(t,mf),yo(e,$i())},gf=function(e,t,n){e.getSystem().addToWorld(t),n(e.element,t.element),yn(e.element)&&mf(t),e.syncComponents()},pf=function(e,t,n){n(e,t.element);var r=Ye(t.element);xe(r,(function(e){t.getByDom(e).each(mf)}))},hf=Object.freeze({__proto__:null,cloak:Wl,decloak:$l,open:Us,openWhileCloaked:function(e,t,n,r,o){Wl(e,t),Us(e,t,n,r),o(),$l(e,t)},close:qs,isOpen:Ws,isPartOf:function(e,t,n,r){return Ws(0,0,n)&&n.get().exists((function(n){return t.isPartOf(e,n,r)}))},getState:function(e,t,n){return n.get()},setContent:function(e,t,n,r){return n.get().map((function(){return Vs(e,t,n,r)}))}}),vf=Object.freeze({__proto__:null,events:function(e,t){return ra([Co(Hi(),(function(n,r){qs(n,e,t)}))])}}),yf=kc({fields:[Ja("onOpen"),Ja("onClose"),mr("isPartOf"),mr("getAttachPoint"),Or("cloakVisibilityAttr","data-precloak-visibility")],name:"sandboxing",active:vf,apis:hf,state:Object.freeze({__proto__:null,init:function(){var e=pu(),t=u("not-implemented");return _a({readState:t,isOpen:e.isSet,clear:e.clear,set:e.set,get:e.get})}})}),bf=u("dismiss.popups"),wf=u("reposition.popups"),kf=u("mouse.released"),_f=tr([Or("isExtraPart",x),Tr("fireEventInstead",[Or("event",Ki())])]),xf=tr([Tr("fireEventInstead",[Or("event",Xi())]),vr("doReposition")]),zf=Object.freeze({__proto__:null,onLoad:Ks,onUnload:Xs,setValue:function(e,t,n,r){t.store.manager.setValue(e,t,n,r)},getValue:function(e,t,n){return t.store.manager.getValue(e,t,n)},getState:function(e,t,n){return n}}),Cf=Object.freeze({__proto__:null,events:function(e,t){var n=e.resetOnDom?[oa((function(n,r){Ks(n,e,t)})),ia((function(n,r){Xs(n,e,t)}))]:[bc(e,t,Ks)];return ra(n)}}),Sf=Object.freeze({__proto__:null,memory:Ys,dataset:Js,manual:function(){return _a({readState:a})},init:function(e){return e.store.manager.state(e)}}),Tf=[kr("initialValue"),mr("getFallbackEntry"),mr("getDataKey"),mr("setValue"),tc("manager",{setValue:Zs,getValue:function(e,t,n){var r=t.store,o=r.getDataKey(e);return n.lookup(o).getOrThunk((function(){return r.getFallbackEntry(o)}))},onLoad:function(e,t,n){t.store.initialValue.each((function(r){Zs(e,t,n,r)}))},onUnload:function(e,t,n){n.clear()},state:Js})],Of=[mr("getValue"),Or("setValue",a),kr("initialValue"),tc("manager",{setValue:function(e,t,n,r){t.store.setValue(e,r),t.onSetValue(e,r)},getValue:function(e,t,n){return t.store.getValue(e)},onLoad:function(e,t,n){t.store.initialValue.each((function(n){t.store.setValue(e,n)}))},onUnload:a,state:ka.init})],Ef=kc({fields:[Er("store",{mode:"memory"},fr("mode",{memory:[kr("initialValue"),tc("manager",{setValue:function(e,t,n,r){n.set(r),t.onSetValue(e,r)},getValue:function(e,t,n){return n.get()},onLoad:function(e,t,n){t.store.initialValue.each((function(e){n.isNotSet()&&n.set(e)}))},onUnload:function(e,t,n){n.clear()},state:Ys})],manual:Of,dataset:Tf})),Ja("onSetValue"),Or("resetOnDom",!1)],name:"representing",active:Cf,apis:zf,extra:{setValueFrom:function(e,t){var n=Ef.getValue(t);Ef.setValue(e,n)}},state:Sf}),Af=Qs,Df=tl,Mf="placeholder",Rf=Ir([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),Nf=function(e,t,n,r){return o=e,a=r,(nl(i=n)&&i.uiType===Mf?(l=i,f=a,(c=o).exists((function(e){return e!==l.owner}))?Rf.single(!0,u(l)):ae(f,l.name).fold((function(){throw new Error("Unknown placeholder component: "+l.name+"\nKnown: ["+Ce(f)+"]\nNamespace: "+c.getOr("none")+"\nSpec: "+JSON.stringify(l,null,2))}),(function(e){return e.replace()}))):Rf.single(!1,u(i))).fold((function(o,i){var a=nl(n)?i(t,n.config,n.validated):i(t),c=q(ae(a,"components").getOr([]),(function(n){return Nf(e,t,n,r)}));return[S(S({},a),{components:c})]}),(function(e,r){if(nl(n)){var o=r(t,n.config,n.validated);return n.validated.preprocess.getOr(s)(o)}return r(t)}));var o,i,a,c,l,f},Bf=Rf.single,Pf=Rf.multiple,Lf=u(Mf),If=Ir([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),Hf=Or("factory",{sketch:s}),Ff=Or("schema",[]),jf=mr("name"),Vf=co("pname","pname",Wn((function(e){return"<alloy."+Bo(e.name)+">"})),Qr()),Uf=uo("schema",(function(){return[kr("preprocess")]})),qf=Or("defaults",u({})),Wf=Or("overrides",u({})),$f=Jr([Hf,Ff,jf,Vf,qf,Wf]),Gf=Jr([Hf,Ff,jf,qf,Wf]),Kf=Jr([Hf,Ff,jf,Vf,qf,Wf]),Xf=Jr([Hf,Uf,jf,mr("unit"),Vf,qf,Wf]),Yf=il(If.required,$f),Jf=il(If.external,Gf),Zf=il(If.optional,Kf),Qf=il(If.group,Xf),ed=u("entirety"),td=Object.freeze({__proto__:null,required:Yf,external:Jf,optional:Zf,group:Qf,asNamedPart:rl,name:ol,asCommon:function(e){return e.fold(s,s,s,s)},original:ed}),nd=function(e,t){return{uiType:Lf(),owner:e,name:t}},rd=Object.freeze({__proto__:null,generate:cl,generateOne:ul,schemas:sl,names:ll,substitutes:fl,components:dl,defaultUids:bl,defaultUidsSchema:wl,getAllParts:hl,getAllPartNames:vl,getPart:ml,getPartOrDie:gl,getParts:pl,getPartsOrDie:yl}),od=function(e){return Oe(e,"uid")?e:S(S({},e),{uid:ha("uid")})},id=tr([mr("name"),mr("factory"),mr("configFields"),Or("apis",{}),Or("extraApis",{})]),ad=tr([mr("name"),mr("factory"),mr("configFields"),mr("partFields"),Or("apis",{}),Or("extraApis",{})]),cd=Object.freeze({__proto__:null,getCurrent:function(e,t,n){return t.find(e)}}),ud=kc({fields:[mr("find")],name:"composing",apis:cd}),sd=["input","button","textarea","select"],ld=function(e,t,n){t.disableClass.each((function(t){Ko(e.element,t)})),(Tl(e,t)?function(e){ot(e.element,"disabled","disabled")}:function(e){ot(e.element,"aria-disabled","true")})(e),t.onDisabled(e)},fd=function(e,t,n){t.disableClass.each((function(t){Xo(e.element,t)})),(Tl(e,t)?function(e){st(e.element,"disabled")}:function(e){ot(e.element,"aria-disabled","false")})(e),t.onEnabled(e)},dd=Object.freeze({__proto__:null,enable:fd,disable:ld,isDisabled:Ol,onLoad:Sl,set:function(e,t,n,r){(r?ld:fd)(e,t)}}),md=Object.freeze({__proto__:null,exhibit:function(e,t){return Vo({classes:t.disabled()?t.disableClass.toArray():[]})},events:function(e,t){return ra([xo(Bi(),(function(t,n){return Ol(t,e)})),bc(e,t,Sl)])}}),gd=kc({fields:[Nr("disabled",x),Or("useNative",!0),kr("disableClass"),Ja("onDisabled"),Ja("onEnabled")],name:"disabling",active:md,apis:dd}),pd=Object.freeze({__proto__:null,dehighlightAll:function(e,t,n){return El(e,t,0,[])},dehighlight:function(e,t,n,r){Gl(0,t,0,r)&&(Xo(r.element,t.highlightClass),t.onDehighlight(e,r),yo(r,ta()))},highlight:Al,highlightFirst:function(e,t,n){Kl(e,t).each((function(n){Al(e,t,0,n)}))},highlightLast:function(e,t,n){Xl(e,t).each((function(n){Al(e,t,0,n)}))},highlightAt:function(e,t,n,r){var o,i,a;i=r,a=vs((o=e).element,"."+t.itemClass),ye.from(a[i]).fold((function(){return Ln.error(new Error("No element found with index "+i))}),o.getSystem().getByDom).fold((function(e){throw e}),(function(n){Al(e,t,0,n)}))},highlightBy:function(e,t,n,r){j(Yl(e,t),r).each((function(n){Al(e,t,0,n)}))},isHighlighted:Gl,getHighlighted:function(e,t,n){return Ba(e.element,"."+t.highlightClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},getFirst:Kl,getLast:Xl,getPrevious:function(e,t,n){return Dl(e,t,0,-1)},getNext:function(e,t,n){return Dl(e,t,0,1)},getCandidates:Yl}),hd=kc({fields:[mr("highlightClass"),mr("itemClass"),Ja("onHighlight"),Ja("onDehighlight")],name:"highlighting",apis:pd}),vd=[8],yd=[9],bd=[13],wd=[27],kd=[32],_d=[37],xd=[38],zd=[39],Cd=[40],Sd=k(Il);function Td(e,t,n,r,o){function i(e,t,n,r,o){var i=n(e,t,r,o),a=t.event;return j(i,(function(e){return e.matches(a)})).map((function(e){return e.classification})).bind((function(n){return n(e,t,r,o)}))}var a={schema:function(){return e.concat([Or("focusManager",Vl()),Er("focusInside","onFocus",ar((function(e){return _e(["onFocus","onEnterOrSpace","onApi"],e)?Ln.value(e):Ln.error("Invalid value for focusInside")}))),tc("handler",a),tc("state",t),tc("sendFocusIn",o)])},processKey:i,toEvents:function(e,t){var a=e.focusInside!==Ql.OnFocusMode?ye.none():o(e).map((function(n){return Co(Di(),(function(r,o){n(r,e,t),o.stop()}))})),c=[Co(ki(),(function(r,a){i(r,a,n,e,t).fold((function(){var n=r,i=a,c=Pl(kd.concat(bd))(i.event);e.focusInside===Ql.OnEnterOrSpaceMode&&c&&po(n,i)&&o(e).each((function(r){r(n,e,t),i.stop()}))}),(function(e){a.stop()}))})),Co(_i(),(function(n,o){i(n,o,r,e,t).each((function(e){o.stop()}))}))];return ra(a.toArray().concat(c))}};return a}function Od(e){function t(e,t){return 0<kt(e.visibilitySelector.bind((function(e){return Pa(t,e)})).getOr(t))}function n(e,n,r){var o=n,i=I(vs(e.element,o.selector),(function(e){return t(o,e)}));ye.from(i[o.firstTabstop]).each((function(t){n.focusManager.set(e,t)}))}function r(e,n,r,o){var i,a=vs(e.element,r.selector);return(i=r).focusManager.get(e).bind((function(e){return Pa(e,i.selector)})).bind((function(n){return V(a,w(Ve,n)).bind((function(n){return i=e,c=r,o(a,n,(function(e){return t(n=c,r=e)&&n.useTabstopAt(r);var n,r})).fold((function(){return c.cyclic?ye.some(!0):ye.none()}),(function(e){return c.focusManager.set(i,e),ye.some(!0)}));var i,c}))}))}var o=[kr("onEscape"),kr("onEnter"),Or("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Or("firstTabstop",0),Or("useTabstopAt",z),kr("visibilitySelector")].concat([e]),i=u([Fl(Ll([Il,Pl(yd)]),(function(e,t,n){return r(e,0,n,n.cyclic?Ml:Rl)})),Fl(Pl(yd),(function(e,t,n){return r(e,0,n,n.cyclic?Nl:Bl)})),Fl(Pl(wd),(function(e,t,n){return n.onEscape.bind((function(n){return n(e,t)}))})),Fl(Ll([Sd,Pl(bd)]),(function(e,t,n){return n.onEnter.bind((function(n){return n(e,t)}))}))]),a=u([]);return Td(o,ka.init,i,a,(function(){return ye.some(n)}))}function Ed(e,t,n){return Cl(n)&&Pl(kd)(t.event)?ye.none():(ko(e,n,Bi()),ye.some(!0))}function Ad(e,t){return ye.some(!0)}function Dd(e,t,n){return n.execute(e,t,e.element)}function Md(){var e=pu();return _a({readState:function(){return e.get().map((function(e){return{numRows:String(e.numRows),numColumns:String(e.numColumns)}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:function(t,n){e.set({numRows:t,numColumns:n})},getNumRows:function(){return e.get().map((function(e){return e.numRows}))},getNumColumns:function(){return e.get().map((function(e){return e.numColumns}))}})}function Rd(e){return function(t,n,r,o){var i=e(t.element);return eg(i,t,n,r,o)}}function Nd(e,t){return Rd(Cu(e,t))}function Bd(e,t){return Rd(Cu(t,e))}function Pd(e){return function(t,n,r,o){return eg(e,t,n,r,o)}}function Ld(e){return!((t=e.dom).offsetWidth<=0&&t.offsetHeight<=0);var t}function Id(e,t,n){var r,o=I(vs(e,n),Ld);return V(r=o,(function(e){return Ve(e,t)})).map((function(e){return{index:e,candidates:r}}))}function Hd(e,t){return V(e,(function(e){return Ve(t,e)}))}function Fd(e,t,n,r){return r(Math.floor(t/n),t%n).bind((function(t){var r=t.row*n+t.column;return 0<=r&&r<e.length?ye.some(e[r]):ye.none()}))}function jd(e,t,n,r,o){return Fd(e,t,r,(function(t,i){var a=t===n-1?e.length-t*r:r,c=oc(i,o,0,a-1);return ye.some({row:t,column:c})}))}function Vd(e,t,n,r,o){return Fd(e,t,r,(function(t,i){var a=oc(t,o,0,n-1),c=a===n-1?e.length-a*r:r,u=Wc(i,0,c-1);return ye.some({row:a,column:u})}))}function Ud(e,t,n){Ba(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))}function qd(e){return function(t,n,r,o){return Id(t,n,r.selector).bind((function(t){return e(t.candidates,t.index,o.getNumRows().getOr(r.initSize.numRows),o.getNumColumns().getOr(r.initSize.numColumns))}))}}function Wd(e,t,n){return n.captureTab?ye.some(!0):ye.none()}function $d(e,t,n,r){var o=function(e,t,n){var i,a=oc(t,r,0,n.length-1);return a===e?ye.none():"button"===Ne(i=n[a])&&"disabled"===at(i,"disabled")?o(e,a,n):ye.from(n[a])};return Id(e,n,t).bind((function(e){var t=e.index,n=e.candidates;return o(t,t,n)}))}function Gd(e,t,n){return(r=n).focusManager.get(e).bind((function(e){return Pa(e,r.selector)})).bind((function(r){return n.execute(e,t,r)}));var r}function Kd(e,t,n){t.getInitial(e).orThunk((function(){return Ba(e.element,t.selector)})).each((function(n){t.focusManager.set(e,n)}))}function Xd(e,t,n){return $d(e,n.selector,t,-1)}function Yd(e,t,n){return $d(e,n.selector,t,1)}function Jd(e){return function(t,n,r,o){return e(t,n,r,o).bind((function(){return r.executeOnMove?Gd(t,n,r):ye.some(!0)}))}}function Zd(e,t,n){return n.onEscape(e,t)}function Qd(e,t,n){return ye.from(e[t]).bind((function(e){return ye.from(e[n]).map((function(e){return{rowIndex:t,columnIndex:n,cell:e}}))}))}function em(e,t,n,r){return Qd(e,t,oc(n,r,0,e[t].length-1))}function tm(e,t,n,r){var o=oc(n,r,0,e.length-1),i=e[o].length;return Qd(e,o,Wc(t,0,i-1))}function nm(e,t,n,r){var o=e[t].length;return Qd(e,t,Wc(n+r,0,o-1))}function rm(e,t,n,r){var o=Wc(n+r,0,e.length-1),i=e[o].length;return Qd(e,o,Wc(t,0,i-1))}function om(e,t,n){t.previousSelector(e).orThunk((function(){var n=t.selectors;return Ba(e.element,n.cell)})).each((function(n){t.focusManager.set(e,n)}))}function im(e,t){return function(n,r,o){var i=o.cycles?e:t;return Pa(r,o.selectors.row).bind((function(e){return Hd(vs(e,o.selectors.cell),r).bind((function(t){var r=vs(n,o.selectors.row);return Hd(r,e).bind((function(e){var n,a=(n=o,P(r,(function(e){return vs(e,n.selectors.cell)})));return i(a,e,t).map((function(e){return e.cell}))}))}))}))}}function am(e,t,n){return n.focusManager.get(e).bind((function(r){return n.execute(e,t,r)}))}function cm(e,t,n){Ba(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))}function um(e,t,n){return $d(e,n.selector,t,-1)}function sm(e,t,n){return $d(e,n.selector,t,1)}function lm(e,t,n,r){var o=e.getSystem().build(r);gf(e,o,n)}function fm(e,t,n,r){j(Ng(e),(function(e){return Ve(r.element,e.element)})).each(Is)}function dm(e,t,n,r,o){var i=Ng(e);return ye.from(i[r]).map((function(t){return fm(e,0,0,t),o.each((function(t){lm(e,0,(function(e,t){var n,o=t;Je(n=e,r).fold((function(){On(n,o)}),(function(e){Et(e,o)}))}),t)})),t}))}function mm(e,t){var n,r;return{key:e,value:{config:{},me:(n=e,r=ra(t),kc({fields:[mr("enabled")],name:n,active:{events:u(r)}})),configAsRaw:u({}),initialConfig:{},state:ka}}}function gm(e,t){t.ignore||(zc(e.element),t.onFocus(e))}function pm(e,t,n){var r=t.aria;r.update(e,r,n.get())}function hm(e,t,n){t.toggleClass.each((function(t){(n.get()?Ko:Xo)(e.element,t)}))}function vm(e,t,n){Gm(e,t,n,!n.get())}function ym(e,t,n){n.set(!0),hm(e,t,n),pm(e,t,n)}function bm(e,t,n){n.set(!1),hm(e,t,n),pm(e,t,n)}function wm(e,t,n){Gm(e,t,n,t.selected)}function km(){function e(e,t){t.stop(),wo(e)}return[Co(Ci(),e),Co(Li(),e),Ao(li()),Ao(gi())]}function _m(e){return ra(U([e.map((function(e){return ca((function(t,n){e(t),n.stop()}))})).toArray(),km()]))}function xm(e){(Tc(e.element).isNone()||Ig.isFocused(e))&&(Ig.isFocused(e)||Ig.focus(e),bo(e,Vg,{item:e}))}function zm(e){bo(e,Ug,{item:e})}function Cm(e,t){return e.x+e.width/2-t.width/2}function Sm(e,t){return e.x+e.width-t.width}function Tm(e,t){return e.y+e.height-t.height}function Om(e,t){return e.y+e.height/2-t.height/2}function Em(e,t,n){return rc(Sm(e,t),Tm(e,t),n.insetSouthwest(),Fc(),"southwest",ic(e,{right:0,bottom:3}),cp)}function Am(e,t,n){return rc(e.x,Tm(e,t),n.insetSoutheast(),Hc(),"southeast",ic(e,{left:1,bottom:3}),cp)}function Dm(e,t,n){return rc(Sm(e,t),e.y,n.insetNorthwest(),Ic(),"northwest",ic(e,{right:0,top:2}),cp)}function Mm(e,t,n){return rc(e.x,e.y,n.insetNortheast(),Lc(),"northeast",ic(e,{left:1,top:2}),cp)}function Rm(e,t,n){return rc(Sm(e,t),Om(e,t),n.insetEast(),qc(),"east",ic(e,{right:0}),cp)}function Nm(e,t,n){return rc(e.x,Om(e,t),n.insetWest(),Uc(),"west",ic(e,{left:1}),cp)}function Bm(e){switch(e){case"north":return up;case"northeast":return Mm;case"northwest":return Dm;case"south":return sp;case"southeast":return Am;case"southwest":return Em;case"east":return Rm;case"west":return Nm}}function Pm(e,t,n,r,o){return lu(r).map(Bm).getOr(up)(e,t,n,r,o)}function Lm(e){switch(e){case"north":return sp;case"northeast":return Am;case"northwest":return Em;case"south":return up;case"southeast":return Mm;case"southwest":return Dm;case"east":return Nm;case"west":return Rm}}function Im(e,t,n,r,o){return lu(r).map(Lm).getOr(up)(e,t,n,r,o)}function Hm(e){var t=void 0!==e.uid&&ce(e,"uid")?e.uid:ha("memento");return{get:function(e){return e.getSystem().getByUid(t).getOrDie()},getOpt:function(e){return e.getSystem().getByUid(t).toOptional()},asSpec:function(){return S(S({},e),{uid:t})}}}function Fm(e){return function(){return ae(e,gp).getOr("!not found!")}}function jm(e,t){var n,r=e.toLowerCase();if(dp.isRtl()){var o=De(n=r,"-rtl")?n:n+"-rtl";return Oe(t,o)?o:r}return r}function Vm(e,t){return ae(t,jm(e,t))}function Um(e,t){var n=t();return Vm(e,n).getOrThunk(Fm(n))}function qm(){return mm("add-focusable",[oa((function(e){var t,n,r;t=e.element,n="svg",r=function(e){return Fe(e,n)},j(t.dom.childNodes,(function(e){return r(Re.fromDom(e))})).map(Re.fromDom).each((function(e){return ot(e,"focusable","false")}))}))])}function Wm(e,t,n,r){var o,i,a,c=(a=t,dp.isRtl()&&Oe(mp,a)?["tox-icon--flip"]:[]),u=ae(n,jm(t,n)).or(r).getOrThunk(Fm(n));return{dom:{tag:e.tag,attributes:null!==(o=e.attributes)&&void 0!==o?o:{},classes:e.classes.concat(c),innerHtml:u},behaviours:nu(O(O([],null!==(i=e.behaviours)&&void 0!==i?i:[],!0),[qm()],!1))}}function $m(e,t,n,r){return void 0===r&&(r=ye.none()),Wm(t,e,n(),r)}function Gm(e,t,n,r){(r?ym:bm)(e,t,n)}function Km(e,t,n){ot(e.element,"aria-expanded",n)}function Xm(e){return"prepared"===e.type?ye.some(e.menu):ye.none()}(ef=Ql=Ql||{}).OnFocusMode="onFocus",ef.OnEnterOrSpaceMode="onEnterOrSpace",ef.OnApiMode="onApi";var Ym=Od(uo("cyclic",x)),Jm=Od(uo("cyclic",z)),Zm=Td([Or("execute",Ed),Or("useSpace",!1),Or("useEnter",!0),Or("useControlEnter",!1),Or("useDown",!1)],ka.init,(function(e,t,n,r){var o=n.useSpace&&!Cl(e.element)?kd:[],i=n.useEnter?bd:[],a=n.useDown?Cd:[];return[Fl(Pl(o.concat(i).concat(a)),Dd)].concat(n.useControlEnter?[Fl(Ll([Hl,Pl(bd)]),Dd)]:[])}),(function(e,t,n,r){return n.useSpace&&!Cl(e.element)?[Fl(Pl(kd),Ad)]:[]}),(function(){return ye.none()})),Qm=Object.freeze({__proto__:null,flatgrid:Md,init:function(e){return e.state(e)}}),eg=function(e,t,n,r,o){return r.focusManager.get(t).bind((function(n){return e(t.element,n,r,o)})).map((function(e){return r.focusManager.set(t,e),!0}))},tg=Pd,ng=Pd,rg=Pd,og=qd((function(e,t,n,r){return jd(e,t,n,r,-1)})),ig=qd((function(e,t,n,r){return jd(e,t,n,r,1)})),ag=qd((function(e,t,n,r){return Vd(e,t,n,r,-1)})),cg=qd((function(e,t,n,r){return Vd(e,t,n,r,1)})),ug=Td([mr("selector"),Or("execute",Ed),Za("onEscape"),Or("captureTab",!1),Bc()],Md,u([Fl(Pl(_d),Nd(og,ig)),Fl(Pl(zd),Bd(og,ig)),Fl(Pl(xd),tg(ag)),Fl(Pl(Cd),ng(cg)),Fl(Ll([Il,Pl(yd)]),Wd),Fl(Ll([Sd,Pl(yd)]),Wd),Fl(Pl(wd),(function(e,t,n){return n.onEscape(e,t)})),Fl(Pl(kd.concat(bd)),(function(e,t,n,r){return(o=n).focusManager.get(e).bind((function(e){return Pa(e,o.selector)})).bind((function(r){return n.execute(e,t,r)}));var o}))]),u([Fl(Pl(kd),Ad)]),(function(){return ye.some(Ud)})),sg=[mr("selector"),Or("getInitial",ye.none),Or("execute",Ed),Za("onEscape"),Or("executeOnMove",!1),Or("allowVertical",!0)],lg=u([Fl(Pl(kd),Ad)]),fg=Td(sg,ka.init,(function(e,t,n,r){var o=_d.concat(n.allowVertical?xd:[]),i=zd.concat(n.allowVertical?Cd:[]);return[Fl(Pl(o),Jd(Nd(Xd,Yd))),Fl(Pl(i),Jd(Bd(Xd,Yd))),Fl(Pl(bd),Gd),Fl(Pl(kd),Gd),Fl(Pl(wd),Zd)]}),lg,(function(){return ye.some(Kd)})),dg=[yr("selectors",[mr("row"),mr("cell")]),Or("cycles",!0),Or("previousSelector",ye.none),Or("execute",Ed)],mg=im((function(e,t,n){return em(e,t,n,-1)}),(function(e,t,n){return nm(e,t,n,-1)})),gg=im((function(e,t,n){return em(e,t,n,1)}),(function(e,t,n){return nm(e,t,n,1)})),pg=im((function(e,t,n){return tm(e,n,t,-1)}),(function(e,t,n){return rm(e,n,t,-1)})),hg=im((function(e,t,n){return tm(e,n,t,1)}),(function(e,t,n){return rm(e,n,t,1)})),vg=u([Fl(Pl(_d),Nd(mg,gg)),Fl(Pl(zd),Bd(mg,gg)),Fl(Pl(xd),tg(pg)),Fl(Pl(Cd),ng(hg)),Fl(Pl(kd.concat(bd)),(function(e,t,n){return Tc(e.element).bind((function(r){return n.execute(e,t,r)}))}))]),yg=u([Fl(Pl(kd),Ad)]),bg=Td(dg,ka.init,vg,yg,(function(){return ye.some(om)})),wg=[mr("selector"),Or("execute",Ed),Or("moveOnTab",!1)],kg=u([Fl(Pl(xd),rg(um)),Fl(Pl(Cd),rg(sm)),Fl(Ll([Il,Pl(yd)]),(function(e,t,n,r){return n.moveOnTab?rg(um)(e,t,n,r):ye.none()})),Fl(Ll([Sd,Pl(yd)]),(function(e,t,n,r){return n.moveOnTab?rg(sm)(e,t,n,r):ye.none()})),Fl(Pl(bd),am),Fl(Pl(kd),am)]),_g=u([Fl(Pl(kd),Ad)]),xg=Td(wg,ka.init,kg,_g,(function(){return ye.some(cm)})),zg=Td([Za("onSpace"),Za("onEnter"),Za("onShiftEnter"),Za("onLeft"),Za("onRight"),Za("onTab"),Za("onShiftTab"),Za("onUp"),Za("onDown"),Za("onEscape"),Or("stopSpaceKeyup",!1),kr("focusIn")],ka.init,(function(e,t,n){return[Fl(Pl(kd),n.onSpace),Fl(Ll([Sd,Pl(bd)]),n.onEnter),Fl(Ll([Il,Pl(bd)]),n.onShiftEnter),Fl(Ll([Il,Pl(yd)]),n.onShiftTab),Fl(Ll([Sd,Pl(yd)]),n.onTab),Fl(Pl(xd),n.onUp),Fl(Pl(Cd),n.onDown),Fl(Pl(_d),n.onLeft),Fl(Pl(zd),n.onRight),Fl(Pl(kd),n.onSpace),Fl(Pl(wd),n.onEscape)]}),(function(e,t,n){return n.stopSpaceKeyup?[Fl(Pl(kd),Ad)]:[]}),(function(e){return e.focusIn})),Cg=Ym.schema(),Sg=Jm.schema(),Tg=fg.schema(),Og=ug.schema(),Eg=bg.schema(),Ag=Zm.schema(),Dg=xg.schema(),Mg=zg.schema(),Rg=_c({branchKey:"mode",branches:Object.freeze({__proto__:null,acyclic:Cg,cyclic:Sg,flow:Tg,flatgrid:Og,matrix:Eg,execution:Ag,menu:Dg,special:Mg}),name:"keying",active:{events:function(e,t){return e.handler.toEvents(e,t)}},apis:{focusIn:function(e,t,n){t.sendFocusIn(t).fold((function(){e.getSystem().triggerFocus(e.element,e.element)}),(function(r){r(e,t,n)}))},setGridSize:function(e,t,n,r,o){ce(n,"setGridSize")?n.setGridSize(r,o):console.error("Layout does not support setGridSize")}},state:Qm}),Ng=function(e,t){return e.components()},Bg=kc({fields:[],name:"replacing",apis:Object.freeze({__proto__:null,append:function(e,t,n,r){lm(e,0,On,r)},prepend:function(e,t,n,r){lm(e,0,Dt,r)},remove:fm,replaceAt:dm,replaceBy:function(e,t,n,r,o){return V(Ng(e),r).bind((function(t){return dm(e,0,0,t,o)}))},set:function(e,t,n,r){Oc((function(){var t=P(r,e.getSystem().build);Bs(e,t)}),e.element)},contents:Ng})}),Pg=Object.freeze({__proto__:null,focus:gm,blur:function(e,t){t.ignore||e.element.dom.blur()},isFocused:function(e){return Cc(e.element)}}),Lg=Object.freeze({__proto__:null,exhibit:function(e,t){return Vo(t.ignore?{}:{attributes:{tabindex:"-1"}})},events:function(e){return ra([Co(Di(),(function(t,n){gm(t,e),n.stop()}))].concat(e.stopMousedown?[Co(gi(),(function(e,t){t.event.prevent()}))]:[]))}}),Ig=kc({fields:[Ja("onFocus"),Or("stopMousedown",!1),Or("ignore",!1)],name:"focusing",active:Lg,apis:Pg}),Hg=Object.freeze({__proto__:null,onLoad:wm,toggle:vm,isOn:function(e,t,n){return n.get()},on:ym,off:bm,set:Gm}),Fg=Object.freeze({__proto__:null,exhibit:function(){return Vo({})},events:function(e,t){var n,r,o,i=(n=e,r=t,o=vm,ca((function(e){o(e,n,r)}))),a=bc(e,t,wm);return ra(U([e.toggleOnExecute?[i]:[],[a]]))}}),jg=kc({fields:[Or("selected",!1),kr("toggleClass"),Or("toggleOnExecute",!0),Er("aria",{mode:"none"},fr("mode",{pressed:[Or("syncWithExpanded",!1),tc("update",(function(e,t,n){ot(e.element,"aria-pressed",n),t.syncWithExpanded&&Km(e,0,n)}))],checked:[tc("update",(function(e,t,n){ot(e.element,"aria-checked",n)}))],expanded:[tc("update",Km)],selected:[tc("update",(function(e,t,n){ot(e.element,"aria-selected",n)}))],none:[tc("update",a)]}))],name:"toggling",active:Fg,apis:Hg,state:{init:function(){var e=Lr(!1);return{get:function(){return e.get()},set:function(t){return e.set(t)},clear:function(){return e.set(!1)},readState:function(){return e.get()}}}}}),Vg="alloy.item-hover",Ug="alloy.item-focus",qg=u(Vg),Wg=u(Ug),$g=[mr("data"),mr("components"),mr("dom"),Or("hasSubmenu",!1),kr("toggling"),Af("itemBehaviours",[jg,Ig,Rg,Ef]),Or("ignoreFocus",!1),Or("domModification",{}),tc("builder",(function(e){return{dom:e.dom,domModification:S(S({},e.domModification),{attributes:S(S(S({role:e.toggling.isSome()?"menuitemcheckbox":"menuitem"},e.domModification.attributes),{"aria-haspopup":e.hasSubmenu}),e.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:Df(e.itemBehaviours,[e.toggling.fold(jg.revoke,(function(e){return jg.config(S({aria:{mode:"checked"}},e))})),Ig.config({ignore:e.ignoreFocus,stopMousedown:e.ignoreFocus,onFocus:function(e){zm(e)}}),Rg.config({mode:"execution"}),Ef.config({store:{mode:"memory",initialValue:e.data}}),mm("item-type-events",O(O([],km(),!0),[Co(yi(),xm),Co(Pi(),Ig.focus)],!1))]),components:e.components,eventOrder:e.eventOrder}})),Or("eventOrder",{})],Gg=[mr("dom"),mr("components"),tc("builder",(function(e){return{dom:e.dom,components:e.components,events:ra([Co(Pi(),(function(e,t){t.stop()}))])}}))],Kg=u("item-widget"),Xg=u([Yf({name:"widget",overrides:function(e){return{behaviours:nu([Ef.config({store:{mode:"manual",getValue:function(t){return e.data},setValue:a}})])}}})]),Yg=fr("type",{widget:[mr("uid"),mr("data"),mr("components"),mr("dom"),Or("autofocus",!1),Or("ignoreFocus",!1),Af("widgetBehaviours",[Ef,Ig,Rg]),Or("domModification",{}),wl(Xg()),tc("builder",(function(e){function t(t){return ml(t,e,"widget").map((function(e){return Rg.focusIn(e),e}))}function n(t,n){return Cl(n.event.target)||e.autofocus&&n.setSource(t.element),ye.none()}var r=fl(Kg(),e,Xg()),o=dl(Kg(),e,r.internals());return{dom:e.dom,components:o,domModification:e.domModification,events:ra([ca((function(e,n){t(e).each((function(e){n.stop()}))})),Co(yi(),xm),Co(Pi(),(function(n,r){e.autofocus?t(n):Ig.focus(n)}))]),behaviours:Df(e.widgetBehaviours,[Ef.config({store:{mode:"memory",initialValue:e.data}}),Ig.config({ignore:e.ignoreFocus,onFocus:function(e){zm(e)}}),Rg.config({mode:"special",focusIn:e.autofocus?function(e){t(e)}:iu(),onLeft:n,onRight:n,onEscape:function(t,n){return Ig.isFocused(t)||e.autofocus?(e.autofocus&&n.setSource(t.element),ye.none()):(Ig.focus(t),ye.some(!0))}})])}}))],item:$g,separator:Gg}),Jg=u([Qf({factory:{sketch:function(e){var t=lr("menu.spec item",Yg,e);return t.builder(t)}},name:"items",unit:"item",defaults:function(e,t){return Oe(t,"uid")?t:S(S({},t),{uid:ha("item")})},overrides:function(e,t){return{type:t.type,ignoreFocus:e.fakeFocus,domModification:{classes:[e.markers.item]}}}})]),Zg=u([mr("value"),mr("items"),mr("dom"),mr("components"),Or("eventOrder",{}),Qs("menuBehaviours",[hd,Ef,ud,Rg]),Er("movement",{mode:"menu",moveOnTab:!0},fr("mode",{grid:[Bc(),tc("config",(function(e,t){return{mode:"flatgrid",selector:"."+e.markers.item,initSize:{numColumns:t.initSize.numColumns,numRows:t.initSize.numRows},focusManager:e.focusManager}}))],matrix:[tc("config",(function(e,t){return{mode:"matrix",selectors:{row:t.rowSelector,cell:"."+e.markers.item},focusManager:e.focusManager}})),mr("rowSelector")],menu:[Or("moveOnTab",!0),tc("config",(function(e,t){return{mode:"menu",selector:"."+e.markers.item,moveOnTab:t.moveOnTab,focusManager:e.focusManager}}))]})),gr("markers",Nc()),Or("fakeFocus",!1),Or("focusManager",Vl()),Ja("onHighlight")]),Qg=u("alloy.menu-focus"),ep=zl({name:"Menu",configFields:Zg(),partFields:Jg(),factory:function(e,t,n,r){return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:tl(e.menuBehaviours,[hd.config({highlightClass:e.markers.selectedItem,itemClass:e.markers.item,onHighlight:e.onHighlight}),Ef.config({store:{mode:"memory",initialValue:e.value}}),ud.config({find:ye.some}),Rg.config(e.movement.config(e,e.movement))]),events:ra([Co(Wg(),(function(e,t){var n=t.event;e.getSystem().getByDom(n.target).each((function(n){hd.highlight(e,n),t.stop(),bo(e,Qg(),{menu:e,item:n})}))})),Co(qg(),(function(e,t){var n=t.event.item;hd.highlight(e,n)}))]),components:t,eventOrder:e.eventOrder,domModification:{attributes:{role:"menu"}}}}}),tp=function(e,t,n,r){return ae(n,r).bind((function(r){return ae(e,r).bind((function(r){var o=tp(e,t,n,r);return ye.some([r].concat(o))}))})).getOr([])},np=function(){function e(e){return c(e).bind(Xm)}function t(e){return ae(n.get(),e)}var n=Lr({}),r=Lr({}),o=Lr({}),i=pu(),a=Lr({}),c=function(e){return ae(r.get(),e)};return{setMenuBuilt:function(e,t){var n;r.set(S(S({},r.get()),((n={})[e]={type:"prepared",menu:t},n)))},setContents:function(e,t,c,u){i.set(e),n.set(c),r.set(t),a.set(u);var s=function(e,t){var n={};te(e,(function(e,t){xe(e,(function(e){n[e]=t}))}));var r=t,o=Te(t,(function(e,t){return{k:e,v:t}})),i=ne(o,(function(e,t){return[t].concat(tp(n,r,o,t))}));return ne(n,(function(e){return ae(i,e).getOr([e])}))}(u,c);o.set(s)},expand:function(e){return ae(n.get(),e).map((function(t){var n=ae(o.get(),e).getOr([]);return[t].concat(n)}))},refresh:function(e){return ae(o.get(),e)},collapse:function(e){return ae(o.get(),e).bind((function(e){return 1<e.length?ye.some(e.slice(1)):ye.none()}))},lookupMenu:c,lookupItem:t,otherMenus:function(e){var t=a.get();return G(Ce(t),e)},getPrimary:function(){return i.get().bind(e)},getMenus:function(){return r.get()},clear:function(){n.set({}),r.set({}),o.set({}),i.clear()},isClear:function(){return i.get().isNone()},getTriggeringPath:function(r,a){var c=I(t(r).toArray(),(function(t){return e(t).isSome()}));return ae(o.get(),r).bind((function(t){var r=$(c.concat(t));return function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.isSome())return ye.none();t.push(r.getOrDie())}return ye.some(t)}(q(r,(function(t,o){return c=t,u=a,s=r.slice(0,o+1),e(c).bind((function(e){return t=c,oe(n.get(),(function(e,n){return e===t})).bind((function(t){return u(t).map((function(t){return{triggeredMenu:e,triggeringItem:t,triggeringPath:s}}))}));var t})).fold((function(){return ue(i.get(),t)?[]:[ye.none()]}),(function(e){return[ye.some(e)]}));var c,u,s})))}))}}},rp=Xm,op=u("collapse-item"),ip=xl({name:"TieredMenu",configFields:[ec("onExecute"),ec("onEscape"),Qa("onOpenMenu"),Qa("onOpenSubmenu"),Ja("onRepositionMenu"),Ja("onCollapseMenu"),Or("highlightImmediately",!0),yr("data",[mr("primary"),mr("menus"),mr("expansions")]),Or("fakeFocus",!1),Ja("onHighlight"),Ja("onHover"),Ka(),mr("dom"),Or("navigateOnHover",!0),Or("stayInDom",!1),Qs("tmenuBehaviours",[Rg,hd,ud,Bg]),Or("eventOrder",{})],apis:{collapseMenu:function(e,t){e.collapseMenu(t)},highlightPrimary:function(e,t){e.highlightPrimary(t)},repositionMenus:function(e,t){e.repositionMenus(t)}},factory:function(e,t){function n(t){var n,r,o=(n=t,r=e.data.primary,ne(e.data.menus,(function(t,o){function i(){return ep.sketch(S(S({},t),{value:o,markers:e.markers,fakeFocus:e.fakeFocus,onHighlight:e.onHighlight,focusManager:(e.fakeFocus?Ul:Vl)()}))}return o===r?{type:"prepared",menu:n.getSystem().build(i())}:{type:"notbuilt",nbMenu:i}}))),i=ne(e.data.menus,(function(e,t){return q(e.items,(function(e){return"separator"===e.type?[]:[e.data.value]}))}));return m.setContents(e.data.primary,o,e.data.expansions,i),m.getPrimary()}function r(e){return Ef.getValue(e).value}function o(e,t){hd.highlight(e,t),hd.getHighlighted(t).orThunk((function(){return hd.getFirst(t)})).each((function(t){ko(e,t.element,Pi())}))}function i(e,t){return se(P(t,(function(t){return e.lookupMenu(t).bind((function(e){return"prepared"===e.type?ye.some(e.menu):ye.none()}))})))}function c(t,n,r){var o=i(n,n.otherMenus(r));xe(o,(function(n){Zo(n.element,[e.markers.backgroundMenu]),e.stayInDom||Bg.remove(t,n)}))}function u(t,n){var o;te((o=t,d.get().getOrThunk((function(){var t={},n=I(vs(o.element,"."+e.markers.item),(function(e){return"true"===at(e,"aria-haspopup")}));return xe(n,(function(e){o.getSystem().getByDom(e).each((function(e){var n=r(e);t[n]=e}))})),d.set(t),t}))),(function(e,t){var r=_e(n,t);ot(e.element,"aria-expanded",r)}))}function s(t,n,r){return ye.from(r[0]).bind((function(a){return n.lookupMenu(a).bind((function(a){if("notbuilt"===a.type)return ye.none();var u=a.menu,s=i(n,r.slice(1));return xe(s,(function(t){Ko(t.element,e.markers.backgroundMenu)})),yn(u.element)||Bg.append(t,Ea(u)),Zo(u.element,[e.markers.backgroundMenu]),o(t,u),c(t,n,r),ye.some(u)}))}))}var l,f,d=pu(),m=np();function g(t,n,o){if(void 0===o&&(o=l.HighlightSubmenu),n.hasConfigured(gd)&&gd.isDisabled(n))return ye.some(n);var i=r(n);return m.expand(i).bind((function(r){return u(t,r),ye.from(r[0]).bind((function(i){return m.lookupMenu(i).bind((function(a){var c=function(e,t,n){if("notbuilt"!==n.type)return n.menu;var r=e.getSystem().build(n.nbMenu());return m.setMenuBuilt(t,r),r}(t,i,a);return yn(c.element)||Bg.append(t,Ea(c)),e.onOpenSubmenu(t,n,c,$(r)),o===l.HighlightSubmenu?(hd.highlightFirst(c),s(t,m,r)):(hd.dehighlightAll(c),ye.some(n))}))}))}))}function p(t,n){var o=r(n);return m.collapse(o).bind((function(r){return u(t,r),s(t,m,r).map((function(r){return e.onCollapseMenu(t,n,r),r}))}))}function h(t){return function(n,r){return Pa(r.getSource(),"."+e.markers.item).bind((function(e){return n.getSystem().getByDom(e).toOptional().bind((function(e){return t(n,e).map(z)}))}))}}function v(e){return hd.getHighlighted(e).bind(hd.getHighlighted)}(f=l={})[f.HighlightSubmenu=0]="HighlightSubmenu",f[f.HighlightParent=1]="HighlightParent";var y=ra([Co(Qg(),(function(e,t){var n=t.event.item;m.lookupItem(r(n)).each((function(){var n=t.event.menu;hd.highlight(e,n);var o=r(t.event.item);m.refresh(o).each((function(t){return c(e,m,t)}))}))})),ca((function(t,n){var o=n.event.target;t.getSystem().getByDom(o).each((function(n){0===r(n).indexOf("collapse-item")&&p(t,n),g(t,n,l.HighlightSubmenu).fold((function(){e.onExecute(t,n)}),a)}))})),oa((function(t,r){n(t).each((function(n){Bg.append(t,Ea(n)),e.onOpenMenu(t,n),e.highlightImmediately&&o(t,n)}))}))].concat(e.navigateOnHover?[Co(qg(),(function(t,n){var o=n.event.item,i=t,a=r(o);m.refresh(a).bind((function(e){return u(i,e),s(i,m,e)})),g(t,o,l.HighlightParent),e.onHover(t,o)}))]:[])),b={collapseMenu:function(e){v(e).each((function(t){p(e,t)}))},highlightPrimary:function(e){m.getPrimary().each((function(t){o(e,t)}))},repositionMenus:function(t){m.getPrimary().bind((function(e){return v(t).bind((function(e){var t=r(e),n=se(P(ie(m.getMenus()),rp));return m.getTriggeringPath(t,(function(e){return t=e,ee(n,(function(e){return e.getSystem().isConnected()?j(hd.getCandidates(e),(function(e){return r(e)===t})):ye.none()}));var t}))})).map((function(t){return{primary:e,triggeringPath:t}}))})).fold((function(){ye.from(t.components()[0]).filter((function(e){return"menu"===at(e.element,"role")})).each((function(n){e.onRepositionMenu(t,n,[])}))}),(function(n){var r=n.primary,o=n.triggeringPath;e.onRepositionMenu(t,r,o)}))}};return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:tl(e.tmenuBehaviours,[Rg.config({mode:"special",onRight:h((function(e,t){return Cl(t.element)?ye.none():g(e,t,l.HighlightSubmenu)})),onLeft:h((function(e,t){return Cl(t.element)?ye.none():p(e,t)})),onEscape:h((function(t,n){return p(t,n).orThunk((function(){return e.onEscape(t,n).map((function(){return t}))}))})),focusIn:function(e,t){m.getPrimary().each((function(t){ko(e,t.element,Pi())}))}}),hd.config({highlightClass:e.markers.selectedMenu,itemClass:e.markers.menu}),ud.config({find:function(e){return hd.getHighlighted(e)}}),Bg.config({})]),eventOrder:e.eventOrder,apis:b,events:y}},extraApis:{tieredData:function(e,t,n){return{primary:e,menus:t,expansions:n}},singleData:function(e,t){return{primary:e,menus:so(e,t),expansions:{}}},collapseItem:function(e){return{value:Bo(op()),meta:{text:e}}}}}),ap=xl({name:"InlineView",configFields:[mr("lazySink"),Ja("onShow"),Ja("onHide"),Cr("onEscape"),Qs("inlineBehaviours",[yf,Ef,au]),Tr("fireDismissalEventInstead",[Or("event",Ki())]),Tr("fireRepositionEventInstead",[Or("event",Xi())]),Or("getRelated",ye.none),Or("isExtraPart",x),Or("eventOrder",ye.none)],factory:function(e,t){function n(t){yf.isOpen(t)&&Ef.getValue(t).each((function(n){switch(n.mode){case"menu":yf.getState(t).each(ip.repositionMenus);break;case"position":var r=e.lazySink(t).getOrDie();ff.positionWithinBounds(r,t,n.config,n.getBounds())}}))}function r(e,t,n,r){i(e,t,n,(function(){return r.map((function(e){return Rn(e)}))}))}function o(t,n,r,o){var i,a,c,u,s,l=(i=e,a=t,c=n,u=o,s="horizontal"===r.type?{layouts:{onLtr:vc,onRtl:yc}}:{},ip.sketch({dom:{tag:"div"},data:r.data,markers:r.menu.markers,highlightImmediately:r.menu.highlightImmediately,onEscape:function(){return yf.close(a),i.onEscape.map((function(e){return e(a)})),ye.some(!0)},onExecute:function(){return ye.some(!0)},onOpenMenu:function(e,t){ff.positionWithinBounds(f().getOrDie(),t,c,u())},onOpenSubmenu:function(e,t,n,r){var o=f().getOrDie();ff.position(o,n,{anchor:S({type:"submenu",item:t},d(r))})},onRepositionMenu:function(e,t,n){var r=f().getOrDie();ff.positionWithinBounds(r,t,c,u()),xe(n,(function(e){var t=d(e.triggeringPath);ff.position(r,e.triggeredMenu,{anchor:S({type:"submenu",item:e.triggeringItem},t)})}))}}));function f(){return i.lazySink(a)}function d(e){return 2===e.length?s:{}}yf.open(t,l),Ef.setValue(t,ye.some({mode:"menu",menu:l}))}var i=function(t,n,r,o){var i=e.lazySink(t).getOrDie();yf.openWhileCloaked(t,n,(function(){return ff.positionWithinBounds(i,t,r,o())})),Ef.setValue(t,ye.some({mode:"position",config:r,getBounds:o}))},a={setContent:function(e,t){yf.setContent(e,t)},showAt:function(e,t,n){r(e,t,n,ye.none())},showWithin:r,showWithinBounds:i,showMenuAt:function(e,t,n){o(e,t,n,ye.none)},showMenuWithinBounds:o,hide:function(e){yf.isOpen(e)&&(Ef.setValue(e,ye.none()),yf.close(e))},getContent:function(e){return yf.getState(e)},reposition:n,isOpen:yf.isOpen};return{uid:e.uid,dom:e.dom,behaviours:tl(e.inlineBehaviours,[yf.config({isPartOf:function(t,n,r){return Fa(n,r)||(o=r,e.getRelated(t).exists((function(e){return Fa(e,o)})));var o},getAttachPoint:function(t){return e.lazySink(t).getOrDie()},onOpen:function(t){e.onShow(t)},onClose:function(t){e.onHide(t)}}),Ef.config({store:{mode:"memory",initialValue:ye.none()}}),au.config({channels:S(S({},$s(S({isExtraPart:t.isExtraPart},e.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),Gs(S(S({},e.fireRepositionEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})),{doReposition:n})))})]),eventOrder:e.eventOrder,apis:a}},apis:{showAt:function(e,t,n,r){e.showAt(t,n,r)},showWithin:function(e,t,n,r,o){e.showWithin(t,n,r,o)},showWithinBounds:function(e,t,n,r,o){e.showWithinBounds(t,n,r,o)},showMenuAt:function(e,t,n,r){e.showMenuAt(t,n,r)},showMenuWithinBounds:function(e,t,n,r,o){e.showMenuWithinBounds(t,n,r,o)},hide:function(e,t){e.hide(t)},isOpen:function(e,t){return e.isOpen(t)},getContent:function(e,t){return e.getContent(t)},setContent:function(e,t,n){e.setContent(t,n)},reposition:function(e,t){e.reposition(t)}}}),cp="layout-inset",up=function(e,t,n){return rc(Cm(e,t),e.y,n.insetNorth(),jc(),"north",ic(e,{top:2}),cp)},sp=function(e,t,n){return rc(Cm(e,t),Tm(e,t),n.insetSouth(),Vc(),"south",ic(e,{bottom:3}),cp)},lp=tinymce.util.Tools.resolve("tinymce.util.Delay"),fp=xl({name:"Button",factory:function(e){function t(t){return ae(e.dom,"attributes").bind((function(e){return ae(e,t)}))}var n=_m(e.action),r=e.dom.tag;return{uid:e.uid,dom:e.dom,components:e.components,events:n,behaviours:Df(e.buttonBehaviours,[Ig.config({}),Rg.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:function(){if("button"!==r)return{role:t("role").getOr("button")};var e=t("type").getOr("button"),n=t("role").map((function(e){return{role:e}})).getOr({});return S({type:e},n)}()},eventOrder:e.eventOrder}},configFields:[Or("uid",void 0),mr("dom"),Or("components",[]),Af("buttonBehaviours",[Ig,Rg]),kr("action"),kr("role"),Or("eventOrder",{})]}),dp=tinymce.util.Tools.resolve("tinymce.util.I18n"),mp={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},gp="temporary-placeholder",pp={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},hp=xl({name:"Notification",factory:function(e){function t(e){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+e+"%"}}}}function n(e){return{dom:{tag:"div",classes:["tox-text"],innerHtml:e+"%"}}}var r,o,i,a,c=Hm({dom:{tag:"p",innerHtml:e.translationProvider(e.text)},behaviours:nu([Bg.config({})])}),u=Hm({dom:{tag:"div",classes:e.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[t(0)]},n(0)],behaviours:nu([Bg.config({})])}),s={updateProgress:function(e,r){e.getSystem().isConnected()&&u.getOpt(e).each((function(e){Bg.set(e,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[t(r)]},n(r)])}))},updateText:function(e,t){var n;e.getSystem().isConnected()&&(n=c.get(e),Bg.set(n,[ii(t)]))}},l=U([e.icon.toArray(),e.level.toArray(),e.level.bind((function(e){return ye.from(pp[e])})).toArray()]),f=Hm(fp.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[$m("close",{tag:"div",classes:["tox-icon"],attributes:{"aria-label":e.translationProvider("Close")}},e.iconProvider)],action:function(t){e.onAction(t)}})),d=[(r=l,o={tag:"div",classes:["tox-notification__icon"]},i=e.iconProvider,a=i(),Wm(o,j(r,(function(e){return Oe(a,jm(e,a))})).getOr(gp),a,ye.none())),{dom:{tag:"div",classes:["tox-notification__body"]},components:[c.asSpec()],behaviours:nu([Bg.config({})])}];return{uid:e.uid,dom:{tag:"div",attributes:{role:"alert"},classes:e.level.map((function(e){return["tox-notification","tox-notification--in","tox-notification--"+e]})).getOr(["tox-notification","tox-notification--in"])},behaviours:nu([Ig.config({}),mm("notification-events",[Co(bi(),(function(e){f.getOpt(e).each(Ig.focus)}))])]),components:d.concat(e.progress?[u.asSpec()]:[]).concat(e.closeButton?[f.asSpec()]:[]),apis:s}},configFields:[kr("level"),mr("progress"),mr("icon"),mr("onAction"),mr("text"),mr("iconProvider"),mr("translationProvider"),Rr("closeButton",!0)],apis:{updateProgress:function(e,t,n){e.updateProgress(t,n)},updateText:function(e,t,n){e.updateText(t,n)}}});function vp(e,t){function n(){g(r)||(clearTimeout(r),r=null)}var r=null;return{cancel:n,throttle:function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];n(),r=setTimeout((function(){r=null,e.apply(null,o)}),t)}}}function yp(e,t,n,r,o){var i=Ap(e,(function(t){return(n=e).isBlock(r=t)||_e(["BR","IMG","HR","INPUT"],r.nodeName)||"false"===n.getContentEditable(r);var n,r}));return ye.from(i.backwards(t,n,r,o))}function bp(e,t){return Dp(Re.fromDom(e.selection.getNode())).getOrThunk((function(){var n,r,o=Re.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',e.getDoc());return On(o,Re.fromDom(t.extractContents())),t.insertNode(o.dom),Ke(o).each((function(e){return e.dom.normalize()})),n=hs,(r=function(e){for(var t=Ye(e),o=t.length-1;0<=o;o--){var i=t[o];if(n(i))return ye.some(i);var a=r(i);if(a.isSome())return a}return ye.none()})(o).map((function(t){var n;e.selection.setCursorLocation(t.dom,"img"===Ne(n=t)?1:ps(n).fold((function(){return Ye(n).length}),(function(e){return e.length})))})),o}))}function wp(e){return e.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")}function kp(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)}function _p(e,t){return e.substring(t.length)}function xp(e,t,n,r){return void 0===r&&(r=0),Dp(Re.fromDom(t.startContainer)).fold((function(){return function(e,t,n,r){if(void 0===r&&(r=0),!t.collapsed||3!==t.startContainer.nodeType)return ye.none();var o=e.getParent(t.startContainer,e.isBlock)||e.getRoot();return yp(e,t.startContainer,t.startOffset,(function(e,t,r){return function(e,n){for(var r=t-1;0<=r;r--){var o=e.charAt(r);if(kp(o))return ye.none();if(o===n)break}return ye.some(r)}(r,n).getOr(t)}),o).bind((function(e){var o=t.cloneRange();if(o.setStart(e.container,e.offset),o.setEnd(t.endContainer,t.endOffset),o.collapsed)return ye.none();var i=wp(o);return 0!==i.lastIndexOf(n)||_p(i,n).length<r?ye.none():ye.some({text:_p(i,n),range:o,triggerChar:n})}))}(e,t,n,r)}),(function(t){var r=e.createRng();r.selectNode(t.dom);var o=wp(r);return ye.some({range:r,text:_p(o,n),triggerChar:n})}))}function zp(e,t){return{container:e,offset:t}}function Cp(e){return ur("toolbarbutton",Hp,e)}function Sp(e){return ur("ToggleButton",jp,e)}function Tp(e,t,n,r){void 0===r&&(r={});var o=t(),i=e.selection.getRng().startContainer.nodeValue,a=I(o.lookupByChar(n.triggerChar),(function(t){return n.text.length>=t.minChars&&t.matches.getOrThunk((function(){return t=e.dom,function(e){var n=Np(e.startContainer,e.startOffset);return!yp(t,n.container,n.offset,(function(e,t){return 0===t?-1:t}),t.getRoot()).filter((function(e){return!kp(e.container.data.charAt(e.offset-1))})).isSome()};var t}))(n.range,i,n.text)}));if(0===a.length)return ye.none();var c=Mp.all(P(a,(function(e){return e.fetch(n.text,e.maxResults,r).then((function(t){return{matchText:n.text,items:t,columns:e.columns,onAction:e.onAction,highlightOn:e.highlightOn}}))})));return ye.some({lookupData:c,context:n})}var Op,Ep,Ap=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),Dp=function(e){return Pa(e,"[data-mce-autocompleter]")},Mp=tinymce.util.Tools.resolve("tinymce.util.Promise"),Rp=function(e){if(3===e.nodeType)return zp(e,e.data.length);var t=e.childNodes;return 0<t.length?Rp(t[t.length-1]):zp(e,t.length)},Np=function(e,t){var n=e.childNodes;return 0<n.length&&t<n.length?Np(n[t],0):0<n.length&&1===e.nodeType&&n.length===t?Rp(n[n.length-1]):zp(e,t)},Bp=Jr([pr("type"),zr("text")]),Pp=Jr([Or("type","autocompleteitem"),Or("active",!1),Or("disabled",!1),Or("meta",{}),pr("value"),zr("text"),zr("icon")]),Lp=Jr([pr("type"),pr("ch"),Ar("minChars",1),Or("columns",1),Ar("maxResults",10),Cr("matches"),vr("fetch"),vr("onAction"),Br("highlightOn",[],to)]),Ip=[Rr("disabled",!1),zr("tooltip"),zr("icon"),zr("text"),Nr("onSetup",(function(){return a}))],Hp=Jr([pr("type"),vr("onAction")].concat(Ip)),Fp=[Rr("active",!1)].concat(Ip),jp=Jr(Fp.concat([pr("type"),vr("onAction")])),Vp=[Nr("predicate",x),Mr("scope","node",["node","editor"]),Mr("position","selection",["node","selection","line"])],Up=Ip.concat([Or("type","contextformbutton"),Or("primary",!1),vr("onAction"),uo("original",s)]),qp=Fp.concat([Or("type","contextformbutton"),Or("primary",!1),vr("onAction"),uo("original",s)]),Wp=Ip.concat([Or("type","contextformbutton")]),$p=Fp.concat([Or("type","contextformtogglebutton")]),Gp=fr("type",{contextformbutton:Up,contextformtogglebutton:qp}),Kp=Jr([Or("type","contextform"),Nr("initValue",u("")),zr("label"),wr("commands",Gp),_r("launch",fr("type",{contextformbutton:Wp,contextformtogglebutton:$p}))].concat(Vp)),Xp=Jr([Or("type","contexttoolbar"),pr("items")].concat(Vp));function Yp(e){return ae(Sh,e).getOr(xh)}function Jp(e){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:"color"===e?"tox-swatches":"tox-menu",tieredMenu:"tox-tiered-menu"}}function Zp(e){var t=Jp(e);return{backgroundMenu:t.backgroundMenu,selectedMenu:t.selectedMenu,menu:t.menu,selectedItem:t.selectedItem,item:Yp(e)}}function Qp(e,t,n){return{dom:{tag:"div",classes:U([[Jp(n).tieredMenu]])},markers:Zp(n)}}function eh(e,t){return function(n){return P(B(n,t),(function(t){return{dom:e,components:t}}))}}function th(e,t){var n=[],r=[];return xe(e,(function(e,o){t(e,o)?(0<r.length&&n.push(r),r=[],Oe(e.dom,"innerHtml")&&r.push(e)):r.push(e)})),0<r.length&&n.push(r),P(n,(function(e){return{dom:{tag:"div",classes:["tox-collection__group"]},components:e}}))}function nh(e,t){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[ep.parts.items({preprocess:function(n){return"auto"!==e&&1<e?eh({tag:"div",classes:["tox-collection__group"]},e)(n):th(n,(function(e,n){return"separator"===t[n].type}))}})]}}function rh(e){return R(e,(function(e){return"icon"in e&&void 0!==e.icon}))}function oh(e){return console.error(ao(e)),console.log(e),ye.none()}function ih(e,t,n,r,o){var i,a=(i=n,{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[ep.parts.items({preprocess:function(e){return th(e,(function(e,t){return"separator"===i[t].type}))}})]});return{value:e,dom:a.dom,components:a.components,items:n}}function ah(e,t,n,r,o){var i,a;return"color"===o?{value:e,dom:(i={dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[ep.parts.items({preprocess:"auto"!==r?eh({tag:"div",classes:["tox-swatches__row"]},r):s})]}]}).dom,components:i.components,items:n}:"normal"===o&&"auto"===r?{value:e,dom:(i=nh(r,n)).dom,components:i.components,items:n}:"normal"===o&&1===r?{value:e,dom:(i=nh(1,n)).dom,components:i.components,items:n}:"normal"===o?{value:e,dom:(i=nh(r,n)).dom,components:i.components,items:n}:"listpreview"!==o||"auto"===r?{value:e,dom:{tag:"div",classes:U([[(a=Jp(o)).menu,"tox-menu-"+r+"-column"],t?[a.hasIcons]:[]])},components:Nh,items:n}:{value:e,dom:(i={dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[ep.parts.items({preprocess:eh({tag:"div",classes:["tox-collection__group"]},r)})]}).dom,components:i.components,items:n}}function ch(e,t,n){var r=vs(e.element,"."+n);if(0<r.length){var o=V(r,(function(e){var n=e.dom.getBoundingClientRect().top,o=r[0].dom.getBoundingClientRect().top;return Math.abs(n-o)>t})).getOr(r.length);return ye.some({numColumns:o,numRows:Math.ceil(r.length/o)})}return ye.none()}function uh(e,t,n){e.getSystem().broadcastOn([Yh],{})}function sh(e){return e.getParam("height",Math.max(e.getElement().offsetHeight,200))}function lh(e){return e.getParam("width",nv.DOM.getStyle(e.getElement(),"width"))}function fh(e){return ye.from(e.getParam("min_width")).filter(b)}function dh(e){return ye.from(e.getParam("min_height")).filter(b)}function mh(e){return ye.from(e.getParam("max_width")).filter(b)}function gh(e){return ye.from(e.getParam("max_height")).filter(b)}function ph(e){return!1!==e.getParam("menubar",!0,"boolean")}function hh(e){var t=e.getParam("toolbar",!0),n=!0===t,r=f(t),o=m(t)&&0<t.length;return!ov(e)&&(o||r||n)}function vh(e){var t=I(N(9,(function(t){return e.getParam("toolbar"+(t+1),!1,"string")})),(function(e){return"string"==typeof e}));return 0<t.length?ye.some(t):ye.none()}(Ep=Op={})[Ep.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",Ep[Ep.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX";var yh,bh,wh,kh,_h=Op,xh="tox-menu-nav__js",zh="tox-collection__item",Ch="tox-swatch",Sh={normal:xh,color:Ch},Th="tox-collection__item--enabled",Oh="tox-collection__item-icon",Eh="tox-collection__item-label",Ah="tox-collection__item-caret",Dh="tox-collection__item--active",Mh="tox-collection__item-container",Rh="tox-collection__item-container--row",Nh=[ep.parts.items({})],Bh=[pr("type"),pr("src"),zr("alt"),Br("classes",[],to)],Ph=Jr(Bh),Lh=[pr("type"),pr("text"),zr("name"),Br("classes",["tox-collection__item-label"],to)],Ih=Jr(Lh),Hh=er((function(){return ir("type",{cardimage:Ph,cardtext:Ih,cardcontainer:Fh})})),Fh=Jr([pr("type"),Dr("direction","horizontal"),Dr("align","left"),Dr("valign","middle"),wr("items",Hh)]),jh=[Rr("disabled",!1),zr("text"),zr("shortcut"),co("value","value",Wn((function(){return Bo("menuitem-value")})),Qr()),Or("meta",{})],Vh=Jr([pr("type"),zr("label"),wr("items",Hh),Nr("onSetup",(function(){return a})),Nr("onAction",a)].concat(jh)),Uh=Jr([pr("type"),Rr("active",!1),zr("icon")].concat(jh)),qh=[pr("type"),pr("fancytype"),Nr("onAction",a)],Wh=fr("fancytype",{inserttable:[Or("initData",{})].concat(qh),colorswatch:[Pr("initData",{},[Rr("allowCustomColors",!0),Sr("colors",Qr())])].concat(qh)}),$h=Jr([pr("type"),Nr("onSetup",(function(){return a})),Nr("onAction",a),zr("icon")].concat(jh)),Gh=Jr([pr("type"),vr("getSubmenuItems"),Nr("onSetup",(function(){return a})),zr("icon")].concat(jh)),Kh=Jr([pr("type"),zr("icon"),Rr("active",!1),Nr("onSetup",(function(){return a})),vr("onAction")].concat(jh)),Xh=function(e){return t=Bo("unnamed-events"),nu([mm(t,e)]);var t},Yh=Bo("tooltip.exclusive"),Jh=Bo("tooltip.show"),Zh=Bo("tooltip.hide"),Qh=Object.freeze({__proto__:null,hideAllExclusive:uh,setComponents:function(e,t,n,r){n.getTooltip().each((function(e){e.getSystem().isConnected()&&Bg.set(e,r)}))}}),ev=Object.freeze({__proto__:null,events:function(e,t){function n(n){t.getTooltip().each((function(r){Is(r),e.onHide(n,r),t.clearTooltip()})),t.clearTimer()}return ra(U([[Co(Jh,(function(n){t.resetTimer((function(){var r,o,i=n;t.isShowing()||(uh(i),r=e.lazySink(i).getOrDie(),o=i.getSystem().build({dom:e.tooltipDom,components:e.tooltipComponents,events:ra("normal"===e.mode?[Co(yi(),(function(e){yo(i,Jh)})),Co(hi(),(function(e){yo(i,Zh)}))]:[]),behaviours:nu([Bg.config({})])}),t.setTooltip(o),Ps(r,o),e.onShow(i,o),ff.position(r,o,{anchor:e.anchor(i)}))}),e.delay)})),Co(Zh,(function(r){t.resetTimer((function(){n(r)}),e.delay)})),Co(Ni(),(function(e,t){t.universal||_e(t.channels,Yh)&&n(e)})),ia((function(e){n(e)}))],"normal"===e.mode?[Co(bi(),(function(e){yo(e,Jh)})),Co(Mi(),(function(e){yo(e,Zh)})),Co(yi(),(function(e){yo(e,Jh)})),Co(hi(),(function(e){yo(e,Zh)}))]:[Co(ea(),(function(e,t){yo(e,Jh)})),Co(ta(),(function(e){yo(e,Zh)}))]]))}}),tv=kc({fields:[mr("lazySink"),mr("tooltipDom"),Or("exclusive",!0),Or("tooltipComponents",[]),Or("delay",300),Mr("mode","normal",["normal","follow-highlight"]),Or("anchor",(function(e){return{type:"hotspot",hotspot:e,layouts:{onLtr:u([Zc,Jc,Gc,Xc,Kc,Yc]),onRtl:u([Zc,Jc,Gc,Xc,Kc,Yc])}}})),Ja("onHide"),Ja("onShow")],name:"tooltipping",active:ev,state:Object.freeze({__proto__:null,init:function(){function e(){t.on(clearTimeout)}var t=pu(),n=pu(),r=u("not-implemented");return _a({getTooltip:n.get,isShowing:n.isSet,setTooltip:n.set,clearTooltip:n.clear,clearTimer:e,resetTimer:function(n,r){e(),t.set(setTimeout(n,r))},readState:r})}}),apis:Qh}),nv=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),rv=tinymce.util.Tools.resolve("tinymce.EditorManager"),ov=function(e){return vh(e).fold((function(){return 0<e.getParam("toolbar",[],"string[]").length}),z)};function iv(e){return e.getParam("toolbar_mode","","string")}function av(e){return e.getParam("toolbar_location",wh.auto,"string")}function cv(e){return av(e)===wh.bottom}function uv(e){if(!e.inline)return ye.none();var t=e.getParam("fixed_toolbar_container","","string");if(0<t.length)return Ba(bn(),t);var n=e.getParam("fixed_toolbar_container_target");return v(n)?ye.some(Re.fromDom(n)):ye.none()}function sv(e){return e.inline&&uv(e).isSome()}function lv(e){return uv(e).getOrThunk((function(){return tt(pn(Re.fromDom(e.getElement())))}))}function fv(e){return e.inline&&!ph(e)&&!hh(e)&&!ov(e)}function dv(e){return(e.getParam("toolbar_sticky",!1,"boolean")||e.inline)&&!sv(e)&&!fv(e)}function mv(e,t){var n=e.outerContainer.element;t&&(e.mothership.broadcastOn([bf()],{target:n}),e.uiMothership.broadcastOn([bf()],{target:n})),e.mothership.broadcastOn([Xv],{readonly:t}),e.uiMothership.broadcastOn([Xv],{readonly:t})}function gv(e,t){e.on("init",(function(){e.mode.isReadOnly()&&mv(t,!0)})),e.on("SwitchMode",(function(){return mv(t,e.mode.isReadOnly())})),e.getParam("readonly",!1,"boolean")&&e.setMode("readonly")}function pv(){var e;return au.config({channels:((e={})[Xv]={schema:Yv,onReceive:function(e,t){gd.set(e,t.readonly)}},e)})}function hv(e,t){var n=e.getApi(t);return function(e){e(n)}}function vv(e,t){return oa((function(n){hv(e,n)((function(n){var r=e.onSetup(n);y(r)&&t.set(r)}))}))}function yv(e,t){return ia((function(n){return hv(e,n)(t.get())}))}function bv(e,t,n,r){var o,i,c=Lr(a);return{type:"item",dom:t.dom,components:ey(t.optComponents),data:e.data,eventOrder:Qv,hasSubmenu:e.triggersSubmenu,itemBehaviours:nu([mm("item-events",[(o=e,i=n,ca((function(e,t){hv(o,e)(o.onAction),o.triggersSubmenu||i!==_h.CLOSE_ON_EXECUTE||(yo(e,Hi()),t.stop())}))),vv(e,c),yv(e,c)]),gd.config({disabled:function(){return e.disabled||r.isDisabled()},disableClass:"tox-collection__item--state-disabled"}),pv(),Bg.config({})].concat(e.itemBehaviours))}}function wv(e){return{value:e.value,meta:S({text:e.text.getOr("")},e.meta)}}function kv(e,t,n){return $m(e,{tag:"div",classes:n=void 0===n?[Oh]:n},t)}function _v(e){return{dom:{tag:"div",classes:[Eh]},components:[ii(dp.translate(e))]}}function xv(e,t){return{dom:{tag:"div",classes:t,innerHtml:e}}}function zv(e,t){return{dom:{tag:"div",classes:[Eh]},components:[{dom:{tag:e.tag,styles:e.styles},components:[ii(dp.translate(t))]}]}}function Cv(e){return{dom:{tag:"div",classes:["tox-collection__item-accessory"],innerHtml:(t=ty.mac?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},n=P(e.split("+"),(function(e){var n=e.toLowerCase().trim();return Oe(t,n)?t[n]:e})),ty.mac?n.join(""):n.join("+"))}};var t,n}function Sv(e){return kv("checkmark",e,["tox-collection__item-checkmark"])}function Tv(e){var t=e.map((function(e){return{attributes:{title:dp.translate(e)}}})).getOr({});return S({tag:"div",classes:[xh,zh]},t)}function Ov(e,t,n,r){return void 0===r&&(r=ye.none()),"color"===e.presets?(o=t,i=r,u=e.ariaLabel,s=e.value,{dom:(a=e.iconContent.map((function(e){return t=o.icons,n=i,Vm(e,r=t()).or(n).getOrThunk(Fm(r));var t,n,r})).getOr(""),c={tag:"div",attributes:u.map((function(e){return{title:o.translate(e)}})).getOr({}),classes:["tox-swatch"]},S(S({},c),"custom"===s?{tag:"button",classes:O(O([],c.classes,!0),["tox-swatches__picker-btn"],!1),innerHtml:a}:"remove"===s?{classes:O(O([],c.classes,!0),["tox-swatch--remove"],!1),innerHtml:a}:{attributes:S(S({},c.attributes),{"data-mce-color":s}),styles:{"background-color":s}})),optComponents:[]}):(l=e,f=t,d=r,m={tag:"div",classes:[Oh]},g=n?l.iconContent.map((function(e){return $m(e,m,f.icons,d)})).orThunk((function(){return ye.some({dom:m})})):ye.none(),p=l.checkMark,h=ye.from(l.meta).fold((function(){return _v}),(function(e){return Oe(e,"style")?w(zv,e.style):_v})),v=l.htmlContent.fold((function(){return l.textContent.map(h)}),(function(e){return ye.some(xv(e,[Eh]))})),{dom:Tv(l.ariaLabel),optComponents:[g,v,l.shortcutContent.map(Cv),p,l.caret]});var o,i,a,c,u,s,l,f,d,m,g,p,h,v}function Ev(e,t){return ae(e,"tooltipWorker").map((function(e){return[tv.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(e){return{type:"submenu",item:e,overrides:{maxHeightFunction:Pu}}},mode:"follow-highlight",onShow:function(t,n){e((function(e){tv.setComponents(t,[Sa({element:Re.fromDom(e)})])}))}})]})).getOr([])}function Av(e,t){var n=dp.translate(e),r=nv.DOM.encode(n);if(0<t.length){var o=new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");return r.replace(o,(function(e){return'<span class="tox-autocompleter-highlight">'+e+"</span>"}))}return r}function Dv(e){return{value:e}}function Mv(e){return oy.test(e)||iy.test(e)}function Rv(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()}function Nv(e){return Dv(Rv(e.red)+Rv(e.green)+Rv(e.blue))}function Bv(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}function Pv(e){var t=parseInt(e,10);return t.toString()===e&&0<=t&&t<=255}function Lv(e){var t,n,r,o=(e.hue||0)%360,i=e.saturation/100,a=e.value/100;i=cy(0,ay(i,1)),a=cy(0,ay(a,1));if(0===i)return Bv(t=n=r=uy(255*a),n,r,1);var c=o/60,u=a*i,s=u*(1-Math.abs(c%2-1)),l=a-u;switch(Math.floor(c)){case 0:t=u,n=s,r=0;break;case 1:t=s,n=u,r=0;break;case 2:t=0,n=u,r=s;break;case 3:t=0,n=s,r=u;break;case 4:t=s,n=0,r=u;break;case 5:t=u,n=0,r=s;break;default:t=n=r=0}return Bv(t=uy(255*(t+l)),n=uy(255*(n+l)),r=uy(255*(r+l)),1)}function Iv(e){var t,n,r=(t={value:e.value.replace(oy,(function(e,t,n,r){return t+t+n+n+r+r}))},null===(n=iy.exec(t.value))?["FFFFFF","FF","FF","FF"]:n);return Bv(parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16),1)}function Hv(e,t,n,r){return Bv(parseInt(e,10),parseInt(t,10),parseInt(n,10),parseFloat(r))}function Fv(e){if("transparent"===e)return ye.some(Bv(0,0,0,0));var t=sy.exec(e);if(null!==t)return ye.some(Hv(t[1],t[2],t[3],"1"));var n=ly.exec(e);return null!==n?ye.some(Hv(n[1],n[2],n[3],n[4])):ye.none()}function jv(e){return"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}function Vv(e,t){return e.fire("ResizeContent",t)}function Uv(e,t,n){return{hue:e,saturation:t,value:n}}function qv(e){var t,n,r=0,o=e.red/255,i=e.green/255,a=e.blue/255,c=Math.min(o,Math.min(i,a)),u=Math.max(o,Math.max(i,a));return c===u?Uv(0,0,100*(r=c)):(n=60*((o===c?3:a===c?1:5)-(o===c?i-a:a===c?o-i:a-o)/(u-c)),t=(u-c)/u,r=u,Uv(Math.round(n),Math.round(100*t),Math.round(100*r)))}function Wv(e){return Nv(Lv(e))}function $v(e){return(Mv(n=e)?ye.some({value:(Ae(t=n,"#")?t.substring("#".length):t).toUpperCase()}):ye.none()).orThunk((function(){return Fv(e).map(Nv)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data;return Nv(Bv(r[0],r[1],r[2],r[3]))}));var t,n}function Gv(e){return gd.config({disabled:e,disableClass:"tox-tbtn--disabled"})}(bh=yh=yh||{}).default="wrap",bh.floating="floating",bh.sliding="sliding",bh.scrolling="scrolling",(kh=wh=wh||{}).auto="auto",kh.top="top",kh.bottom="bottom";var Kv,Xv="silver.readonly",Yv=Jr([gr("readonly",no)]),Jv=function(e){return gd.config({disabled:e})},Zv=function(e){return gd.config({disabled:e,disableClass:"tox-tbtn--disabled",useNative:!1})},Qv=((Kv={})[Bi()]=["disabling","alloy.base.behaviour","toggling","item-events"],Kv),ey=se,ty=tinymce.util.Tools.resolve("tinymce.Env"),ny=function(e,t){return P(e,(function(e){switch(e.type){case"cardcontainer":return i=ny((o=e).items,t),a="vertical"===o.direction?"tox-collection__item-container--column":Rh,c="left"===o.align?"tox-collection__item-container--align-left":"tox-collection__item-container--align-right",{dom:{tag:"div",classes:[Mh,a,c,function(){switch(o.valign){case"top":return"tox-collection__item-container--valign-top";case"middle":return"tox-collection__item-container--valign-middle";case"bottom":return"tox-collection__item-container--valign-bottom"}}()]},components:i};case"cardimage":return r=e.src,{dom:{tag:"img",classes:e.classes,attributes:{src:r,alt:e.alt.getOr("")}}};case"cardtext":var n=e.name.exists((function(e){return _e(t.cardText.highlightOn,e)}))?ye.from(t.cardText.matchText).getOr(""):"";return xv(Av(e.text,n),e.classes)}var r,o,i,a,c}))},ry=cl(Kg(),Xg()),oy=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,iy=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,ay=Math.min,cy=Math.max,uy=Math.round,sy=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,ly=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,fy=Bv(255,0,0,1),dy=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),my="tinymce-custom-colors";function gy(e){return!1!==e.getParam("custom_colors")}function py(e){var t=e.getParam("color_map");return void 0!==t?function(e){for(var t=[],n=0;n<e.length;n+=2)t.push({text:e[n+1],value:"#"+$v(e[n]).value,type:"choiceitem"});return t}(t):Dy}function hy(e){My.add(e)}function vy(e){var t,n=(t=py(e).length,Math.max(5,Math.ceil(Math.sqrt(t))));return e.getParam("color_cols",n,"number")}function yy(e){var t="choiceitem",n={type:t,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return e?[n,{type:t,text:"Custom color",icon:"color-picker",value:"custom"}]:[n]}function by(e,t,n,r){"custom"===n?Ny(e)((function(n){n.each((function(n){hy(n),e.execCommand("mceApplyTextcolor",t,n),r(n)}))}),Ry):"remove"===n?(r(""),e.execCommand("mceRemoveTextcolor",t)):(r(n),e.execCommand("mceApplyTextcolor",t,n))}function wy(e,t){return e.concat(P(My.state(),(function(e){return{type:Ay,text:e,value:e}})).concat(yy(t)))}function ky(e,t){return function(n){n(wy(e,t))}}function _y(e,t,n){e.setIconFill("forecolor"===t?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color",n)}function xy(e,t,n,r,o){e.ui.registry.addSplitButton(t,{tooltip:r,presets:"color",icon:"forecolor"===t?"text-color":"highlight-bg-color",select:function(t){var r,o=n;return e.dom.getParents(e.selection.getStart(),(function(e){var t;(t=e.style["forecolor"===o?"color":"background-color"])&&(r=r||t)})),ye.from(r).bind((function(e){return Fv(e).map((function(e){var n=Nv(e).value;return de(t.toLowerCase(),n)}))})).getOr(!1)},columns:vy(e),fetch:ky(py(e),gy(e)),onAction:function(t){by(e,n,o.get(),a)},onItemAction:function(r,i){by(e,n,i,(function(n){o.set(n),e.fire("TextColorChange",{name:t,color:n})}))},onSetup:function(n){function r(e){e.name===t&&_y(n,e.name,e.color)}return _y(n,t,o.get()),e.on("TextColorChange",r),function(){e.off("TextColorChange",r)}}})}function zy(e,t,n,r){e.ui.registry.addNestedMenuItem(t,{text:r,icon:"forecolor"===t?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(t){by(e,n,t.value,a)}}]}})}function Cy(e,t,n,r,o,i,a,c){return ah(e,rh(t),By(t,n,r,"color"!==o?"normal":"color",i,a,c),r,o)}function Sy(e,t){var n=Zp(t);return 1===e?{mode:"menu",moveOnTab:!0}:"auto"===e?{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+("color"===t?"tox-swatches__row":"tox-collection__group")}}function Ty(e,t){return ii(t+"x"+e)}var Oy,Ey,Ay="choiceitem",Dy=[{type:Ay,text:"Light Green",value:"#BFEDD2"},{type:Ay,text:"Light Yellow",value:"#FBEEB8"},{type:Ay,text:"Light Red",value:"#F8CAC6"},{type:Ay,text:"Light Purple",value:"#ECCAFA"},{type:Ay,text:"Light Blue",value:"#C2E0F4"},{type:Ay,text:"Green",value:"#2DC26B"},{type:Ay,text:"Yellow",value:"#F1C40F"},{type:Ay,text:"Red",value:"#E03E2D"},{type:Ay,text:"Purple",value:"#B96AD9"},{type:Ay,text:"Blue",value:"#3598DB"},{type:Ay,text:"Dark Turquoise",value:"#169179"},{type:Ay,text:"Orange",value:"#E67E23"},{type:Ay,text:"Dark Red",value:"#BA372A"},{type:Ay,text:"Dark Purple",value:"#843FA1"},{type:Ay,text:"Dark Blue",value:"#236FA1"},{type:Ay,text:"Light Gray",value:"#ECF0F1"},{type:Ay,text:"Medium Gray",value:"#CED4D9"},{type:Ay,text:"Gray",value:"#95A5A6"},{type:Ay,text:"Dark Gray",value:"#7E8C8D"},{type:Ay,text:"Navy Blue",value:"#34495E"},{type:Ay,text:"Black",value:"#000000"},{type:Ay,text:"White",value:"#ffffff"}],My=function(e){function t(e){i.splice(e,1)}void 0===e&&(e=10);var n,r=dy.getItem(my),o=f(r)?JSON.parse(r):[],i=e-(n=o).length<0?n.slice(0,e):n;return{add:function(n){var r;(-1===(r=M(i,n))?ye.none():ye.some(r)).each(t),i.unshift(n),i.length>e&&i.pop(),dy.setItem(my,JSON.stringify(i))},state:function(){return i.slice(0)}}}(10),Ry="#000000",Ny=function(e){return function(t,n){var r=!1;e.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{colorpicker:n},onAction:function(e,t){"hex-valid"===t.name&&(r=t.value)},onSubmit:function(n){var o=n.getData().colorpicker;r?(t(ye.from(o)),n.close()):e.windowManager.alert(e.translate(["Invalid hex color code: {0}",o]))},onClose:a,onCancel:function(){t(ye.none())}})}},By=function(e,t,n,r,o,i,c){return se(P(e,(function(u){return"choiceitem"===u.type?ur("choicemenuitem",Uh,u).fold(oh,(function(s){return ye.some(function(e,t,n,r,o,i,c,u){void 0===u&&(u=!0);var s=Ov({presets:n,textContent:t?e.text:ye.none(),htmlContent:ye.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:t?e.shortcut:ye.none(),checkMark:t?ye.some(Sv(c.icons)):ye.none(),caret:ye.none(),value:e.value},c,u);return Gr(bv({data:wv(e),disabled:e.disabled,getApi:function(e){return{setActive:function(t){jg.set(e,t)},isActive:function(){return jg.isOn(e)},isDisabled:function(){return gd.isDisabled(e)},setDisabled:function(t){return gd.set(e,t)}}},onAction:function(t){return r(e.value)},onSetup:function(e){return e.setActive(o),a},triggersSubmenu:!1,itemBehaviours:[]},s,i,c),{toggling:{toggleClass:Th,toggleOnExecute:!1,selected:e.active}})}(s,1===n,r,t,i(u.value),o,c,rh(e)))})):ye.none()})))},Py=Bo("cell-over"),Ly=Bo("cell-execute"),Iy={inserttable:function(e){var t=Bo("size-label"),n=function(e){for(var t=[],n=0;n<10;n++){for(var r=[],o=0;o<10;o++)r.push(function(e,t,n){function r(n){return bo(n,Ly,{row:e,col:t})}function o(e,t){t.stop(),r(e)}var i;return Oa({dom:{tag:"div",attributes:((i={role:"button"})["aria-labelledby"]=n,i)},behaviours:nu([mm("insert-table-picker-cell",[Co(yi(),Ig.focus),Co(Bi(),r),Co(Ci(),o),Co(Li(),o)]),jg.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Ig.config({onFocus:function(n){return bo(n,Py,{row:e,col:t})}})])})}(n,o,e));t.push(r)}return t}(t),r=Ty(0,0),o=Hm({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:t}},components:[r],behaviours:nu([Bg.config({})])});return{type:"widget",data:{value:Bo("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[ry.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:q(n,(function(e){return P(e,Ea)})).concat(o.asSpec()),behaviours:nu([mm("insert-table-picker",[oa((function(e){Bg.set(o.get(e),[r])})),Eo(Py,(function(e,t,r){var i=r.event,a=i.row,c=i.col;!function(e,t,n){for(var r=0;r<10;r++)for(var o=0;o<10;o++)jg.set(e[r][o],r<=t&&o<=n)}(n,a,c),Bg.set(o.get(e),[Ty(a+1,c+1)])})),Eo(Ly,(function(t,n,r){var o=r.event,i=o.row,a=o.col;e.onAction({numRows:i+1,numColumns:a+1}),yo(t,Hi())}))]),Rg.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:function(e,t){var n,r,o,i=(r=t,o=(n=e).initData.allowCustomColors&&r.colorinput.hasCustomColors(),n.initData.colors.fold((function(){return wy(r.colorinput.getColors(),o)}),(function(e){return e.concat(yy(o))}))),a=t.colorinput.getColorCols(),c=Cy(Bo("menu-value"),i,(function(t){e.onAction({value:t})}),a,"color",_h.CLOSE_ON_EXECUTE,x,t.shared.providers),u=S(S({},c),{markers:Zp("color"),movement:Sy(a,"color")});return{type:"widget",data:{value:Bo("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[ry.widget(ep.sketch(u))]}}},Hy=function(e){var t=e.text.fold((function(){return{}}),(function(e){return{innerHtml:e}}));return{type:"separator",dom:S({tag:"div",classes:[zh,"tox-collection__group-heading"]},t),components:[]}},Fy=function(e,t,n,r){void 0===r&&(r=!0);var o=Ov({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:ye.none(),ariaLabel:e.text,caret:ye.none(),checkMark:ye.none(),shortcutContent:e.shortcut},n,r);return bv({data:wv(e),getApi:function(e){return{isDisabled:function(){return gd.isDisabled(e)},setDisabled:function(t){return gd.set(e,t)}}},disabled:e.disabled,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,t,n)},jy=function(e,t,n,r,o){void 0===r&&(r=!0);var i=(o=void 0!==o&&o)?kv("chevron-down",n.icons,[Ah]):kv("chevron-right",n.icons,[Ah]),c=Ov({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:ye.none(),ariaLabel:e.text,caret:ye.some(i),checkMark:ye.none(),shortcutContent:e.shortcut},n,r);return bv({data:wv(e),getApi:function(e){return{isDisabled:function(){return gd.isDisabled(e)},setDisabled:function(t){return gd.set(e,t)}}},disabled:e.disabled,onAction:a,onSetup:e.onSetup,triggersSubmenu:!0,itemBehaviours:[]},c,t,n)},Vy=function(e,t,n,r){void 0===r&&(r=!0);var o=Ov({iconContent:e.icon,textContent:e.text,htmlContent:ye.none(),ariaLabel:e.text,checkMark:ye.some(Sv(n.icons)),caret:ye.none(),shortcutContent:e.shortcut,presets:"normal",meta:e.meta},n,r);return Gr(bv({data:wv(e),disabled:e.disabled,getApi:function(e){return{setActive:function(t){jg.set(e,t)},isActive:function(){return jg.isOn(e)},isDisabled:function(){return gd.isDisabled(e)},setDisabled:function(t){return gd.set(e,t)}}},onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,t,n),{toggling:{toggleClass:Th,toggleOnExecute:!1,selected:e.active}})},Uy=function(e,t){return ae(Iy,e.fancytype).map((function(n){return n(e,t)}))};function qy(e,t,n,r,o,i,c){var s=1===r,l=!s||rh(e);return se(P(e,(function(e){switch(e.type){case"separator":return ur("Autocompleter.Separator",Bp,e).fold(oh,(function(e){return ye.some(Hy(e))}));case"cardmenuitem":return ur("cardmenuitem",Vh,e).fold(oh,(function(e){return ye.some((r=S(S({},e),{onAction:function(t){e.onAction(t),n(e.value,e.meta)}}),a=o,u=i,s={itemBehaviours:Ev(e.meta,i),cardText:{matchText:t,highlightOn:c}},l={dom:Tv(r.label),optComponents:[ye.some({dom:{tag:"div",classes:[Mh,Rh]},components:ny(r.items,s)})]},bv({data:wv(S({text:ye.none()},r)),disabled:r.disabled,getApi:function(e){return{isDisabled:function(){return gd.isDisabled(e)},setDisabled:function(t){gd.set(e,t),xe(vs(e.element,"*"),(function(n){e.getSystem().getByDom(n).each((function(e){e.hasConfigured(gd)&&gd.set(e,t)}))}))}}},onAction:r.onAction,onSetup:r.onSetup,triggersSubmenu:!1,itemBehaviours:ye.from(s.itemBehaviours).getOr([])},l,a,u.providers)));var r,a,u,s,l}));default:return ur("Autocompleter.Item",Pp,e).fold(oh,(function(e){return ye.some(function(e,t,n,r,o,i,c,s){void 0===s&&(s=!0);var l=Ov({presets:r,textContent:ye.none(),htmlContent:n?e.text.map((function(e){return Av(e,t)})):ye.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:ye.none(),checkMark:ye.none(),caret:ye.none(),value:e.value},c.providers,s,e.icon);return bv({data:wv(e),disabled:e.disabled,getApi:u({}),onAction:function(t){return o(e.value,e.meta)},onSetup:u(a),triggersSubmenu:!1,itemBehaviours:Ev(e.meta,c)},l,i,c.providers)}(e,t,s,"normal",n,o,i,l))}))}})))}function Wy(e,t,n,r,o){var i=rh(t),a=se(P(t,(function(e){function t(e){return function(e,t,n,r,o){function i(e){return o?S(S({},e),{shortcut:ye.none(),icon:e.text.isSome()?ye.none():e.icon}):e}var a=n.shared.providers;switch(e.type){case"menuitem":return ur("menuitem",$h,e).fold(oh,(function(e){return ye.some(Fy(i(e),t,a,r))}));case"nestedmenuitem":return ur("nestedmenuitem",Gh,e).fold(oh,(function(e){return ye.some(jy(i(e),t,a,r,o))}));case"togglemenuitem":return ur("togglemenuitem",Kh,e).fold(oh,(function(e){return ye.some(Vy(i(e),t,a,r))}));case"separator":return ur("separatormenuitem",Bp,e).fold(oh,(function(e){return ye.some(Hy(e))}));case"fancymenuitem":return ur("fancymenuitem",Wh,e).fold(oh,(function(e){return Uy(i(e),n)}));default:return console.error("Unknown item in general menu",e),ye.none()}}(e,n,r,o?!Oe(e,"text"):i,o)}return"nestedmenuitem"===e.type&&e.getSubmenuItems().length<=0?t(S(S({},e),{disabled:!0})):t(e)})));return(o?ih:ah)(e,i,a,1,"normal")}function $y(e){return ip.singleData(e.value,e)}function Gy(e,t,n){return Pa(e,t,n).isSome()}function Ky(e,t){var n=null;return{cancel:function(){null!==n&&(clearTimeout(n),n=null)},schedule:function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n=setTimeout((function(){e.apply(null,r),n=null}),t)}}}function Xy(e){var t=e.raw;return void 0===t.touches||1!==t.touches.length?ye.none():ye.some(t.touches[0])}function Yy(){return fn().browser.isFirefox()}function Jy(e,t){var n,r,o,i,a,c,u,s,l,f=S({stopBackspace:!0},t),d=(a=f,c=pu(),u=Lr(!1),s=Ky((function(e){a.triggerEvent(Ii(),e),u.set(!0)}),400),l=lo([{key:li(),value:function(e){return Xy(e).each((function(t){s.cancel();var n={x:t.clientX,y:t.clientY,target:e.target};s.schedule(e),u.set(!1),c.set(n)})),ye.none()}},{key:fi(),value:function(e){return s.cancel(),Xy(e).each((function(e){c.on((function(t){var n=e,r=t,o=Math.abs(n.clientX-r.x),i=Math.abs(n.clientY-r.y);(5<o||5<i)&&c.clear()}))})),ye.none()}},{key:di(),value:function(e){return s.cancel(),c.get().filter((function(t){return Ve(t.target,e.target)})).map((function(t){return u.get()?(e.prevent(),!1):a.triggerEvent(Li(),e)}))}}]),{fireIfReady:function(e,t){return ae(l,t).bind((function(t){return t(e)}))}}),m=P(["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"].concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(t){return hu(e,t,(function(e){d.fireIfReady(e,t).each((function(t){t&&e.kill()})),f.triggerEvent(t,e)&&e.kill()}))})),g=pu(),p=hu(e,"paste",(function(e){d.fireIfReady(e,"paste").each((function(t){t&&e.kill()})),f.triggerEvent("paste",e)&&e.kill(),g.set(setTimeout((function(){f.triggerEvent(Ri(),e)}),0))})),h=hu(e,"keydown",(function(e){var t;f.triggerEvent("keydown",e)?e.kill():!f.stopBackspace||(t=e).raw.which!==vd[0]||_e(["input","textarea"],Ne(t.target))||Gy(t.target,'[contenteditable="true"]')||e.prevent()})),v=(n=e,r=function(e){f.triggerEvent("focusin",e)&&e.kill()},Yy()?vu(n,"focus",r):hu(n,"focusin",r)),y=pu(),b=(o=e,i=function(e){f.triggerEvent("focusout",e)&&e.kill(),y.set(setTimeout((function(){f.triggerEvent(Mi(),e)}),0))},Yy()?vu(o,"blur",i):hu(o,"focusout",i));return{unbind:function(){xe(m,(function(e){e.unbind()})),h.unbind(),v.unbind(),b.unbind(),p.unbind(),g.on(clearTimeout),y.on(clearTimeout)}}}function Zy(e,t){return Lr(ae(e,"target").getOr(t))}function Qy(e,t,n,r,o,i){var a,c,u=e(t,r),s=(a=Lr(!1),c=Lr(!1),{stop:function(){a.set(!0)},cut:function(){c.set(!0)},isStopped:a.get,isCut:c.get,event:n,setSource:o.set,getSource:o.get});return u.fold((function(){return i.logEventNoHandlers(t,r),cb.complete()}),(function(e){var n=e.descHandler;return Uo(n)(s),s.isStopped()?(i.logEventStopped(t,e.element,n.purpose),cb.stopped()):s.isCut()?(i.logEventCut(t,e.element,n.purpose),cb.complete()):Ke(e.element).fold((function(){return i.logNoParent(t,e.element,n.purpose),cb.complete()}),(function(r){return i.logEventResponse(t,e.element,n.purpose),cb.resume(r)}))}))}function eb(){function e(e){Po(e.element).each((function(e){delete r[e],n.unregisterId(e)}))}var t,n=(t={},{registerId:function(e,n,r){te(r,(function(r,o){var i,a=void 0!==t[o]?t[o]:{};a[n]={cHandler:w.apply(void 0,[(i=r).handler].concat(e)),purpose:i.purpose},t[o]=a}))},unregisterId:function(e){te(t,(function(t,n){Oe(t,e)&&delete t[e]}))},filterByType:function(e){return ae(t,e).map((function(e){return re(e,(function(e,t){return{id:t,descHandler:e}}))})).getOr([])},find:function(e,n,r){return ae(t,n).bind((function(t){return go(r,(function(e){return n=t,Po(r=e).bind((function(e){return ae(n,e)})).map((function(e){return{element:r,descHandler:e}}));var n,r}),e)}))}}),r={};return{find:function(e,t,r){return n.find(e,t,r)},filter:function(e){return n.filterByType(e)},register:function(t){var o,i=Po((o=t).element).getOrThunk((function(){return e=o.element,t=Bo(ma+"uid-"),pa(e,t),t;var e,t}));ce(r,i)&&function(t){var n=r[i];if(n!==t)throw new Error('The tagId "'+i+'" is already used by: '+No(n.element)+"\nCannot use it for: "+No(t.element)+"\nThe conflicting element is"+(yn(n.element)?" ":" not ")+"already in the DOM");e(t)}(t),n.registerId([t],i,t.events),r[i]=t},unregister:e,getById:function(e){return ae(r,e)}}}function tb(e){function t(t){return Ke(e.element).fold(z,(function(e){return Ve(t,e)}))}function n(e,n){return o.find(t,e,n)}function r(e){var t=o.filter(Ni());xe(t,(function(t){Uo(t.descHandler)(e)}))}var o=eb(),i=Jy(e.element,{triggerEvent:function(e,t){return Va(e,t.target,(function(r){return sb(n,e,t,t.target,r)}))}}),c={debugInfo:u("real"),triggerEvent:function(e,t,r){Va(e,t,(function(o){return sb(n,e,r,t,o)}))},triggerFocus:function(e,t){Po(e).fold((function(){zc(e)}),(function(r){Va(Di(),e,(function(r){var o,i,c=n,u=Di(),s=r,l=Zy(o={originator:t,kill:a,prevent:a,target:e},i=e);return Qy(c,u,o,i,l,s),!1}))}))},triggerEscape:function(e,t){c.triggerEvent("keydown",e.element,t.event)},getByUid:function(e){return h(e)},getByDom:function(e){return v(e)},build:Oa,addToGui:function(e){f(e)},removeFromGui:function(e){d(e)},addToWorld:function(e){s(e)},removeFromWorld:function(e){l(e)},broadcast:function(e){m(e)},broadcastOn:function(e,t){g(e,t)},broadcastEvent:function(e,t){p(e,t)},isConnected:z},s=function(e){e.connect(c),Gt(e.element)||(o.register(e),xe(e.components(),s),c.triggerEvent(ji(),e.element,{target:e.element}))},l=function(e){Gt(e.element)||(xe(e.components(),l),o.unregister(e)),e.disconnect()},f=function(t){Ps(e,t)},d=function(e){Is(e)},m=function(e){r({universal:!0,data:e})},g=function(e,t){r({universal:!1,channels:e,data:t})},p=function(e,t){var n,r,i=o.filter(e);return r={stop:function(){n.set(!0)},cut:a,isStopped:(n=Lr(!1)).get,isCut:x,event:t,setSource:_("Cannot set source of a broadcasted event"),getSource:_("Cannot get source of a broadcasted event")},xe(i,(function(e){Uo(e.descHandler)(r)})),r.isStopped()},h=function(e){return o.getById(e).fold((function(){return Ln.error(new Error('Could not find component with uid: "'+e+'" in system.'))}),Ln.value)},v=function(e){var t=Po(e).getOr("not found");return h(t)};return s(e),{root:e,element:e.element,destroy:function(){i.unbind(),En(e.element)},add:f,remove:d,getByUid:h,getByDom:v,addToWorld:s,removeFromWorld:l,broadcast:m,broadcastOn:g,broadcastEvent:p}}function nb(e,t,n,r){var o=vb(e,t,n,r);return mb.sketch(o)}function rb(e,t){return mb.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}})}function ob(e){return nu([Ig.config({onFocus:e.selectOnFocus?function(e){var t=e.element,n=Qo(t);t.dom.setSelectionRange(0,n.length)}:a})])}function ib(e){return{tag:e.tag,attributes:S({type:"text"},e.inputAttributes),styles:e.inputStyles,classes:e.inputClasses}}function ab(e,t){function n(){return a.get().isSome()}function r(){n()&&ap.hide(u)}var o,i,a=pu(),c=Lr(!1),u=Oa(ap.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:nu([mm("dismissAutocompleter",[Co(Ki(),(function(){return l()}))])]),lazySink:t.getSink})),l=function(){var t;n()&&(t=a.get().map((function(e){return e.element})),Dp(t.getOr(Re.fromDom(e.selection.getNode()))).each(Nt),r(),a.clear(),c.set(!1))},f=Pe((function(){return r=ne(e.ui.registry.getAll().popups,(function(e){return ur("Autocompleter",Lp,e).fold((function(e){throw new Error(ao(e))}),s)})),t=re(r,(function(e){return e.ch})),n={},xe(t,(function(e){n[e]={}})),o=Ce(n),i=ie(r),{dataset:r,triggerChars:o,lookupByChar:function(e){return I(i,(function(t){return t.ch===e}))}};var t,n,r,o,i})),d=function(o){var i=o;a.get().map((function(t){return xp(e.dom,e.selection.getRng(),t.triggerChar).bind((function(t){return Tp(e,f,t,i)}))})).getOrThunk((function(){return t=e,r=(n=f)(),o=t.selection.getRng(),i=t.dom,a=o,ee(r.triggerChars,(function(e){return xp(i,a,e)})).bind((function(e){return Tp(t,n,e)}));var t,n,r,o,i,a})).fold(l,(function(o){var i,s=o.context;n()||(i=bp(e,s.range),a.set({triggerChar:s.triggerChar,element:i,matchLength:s.text.length}),c.set(!1)),o.lookupData.then((function(n){a.get().map((function(i){var a,s,f,m,g=o.context;i.triggerChar===g.triggerChar&&(s=g.triggerChar,m=ee(f=n,(function(e){return ye.from(e.columns)})).getOr(1),0<(a=q(f,(function(n){return qy(n.items,n.matchText,(function(t,o){var i=e.selection.getRng();xp(e.dom,i,s).fold((function(){return console.error("Lost context. Cursor probably moved")}),(function(e){var i=e.range,a={hide:function(){l()},reload:function(e){r(),d(e)}};c.set(!0),n.onAction(a,i,t,o),c.set(!1)}))}),m,_h.BUBBLE_TO_SANDBOX,t,n.highlightOn)}))).length?function(t,n,r,o){t.matchLength=n.text.length;var i,a,c,s,l,f,d=ee(r,(function(e){return ye.from(e.columns)})).getOr(1);ap.showAt(u,ep.sketch((i=ah("autocompleter-value",!0,o,d,"normal"),a=d,s=((c=Oy.ContentFocus)===Oy.ContentFocus?Ul:Vl)(),l=Sy(a,"normal"),f=Zp("normal"),{dom:i.dom,components:i.components,items:i.items,value:i.value,markers:{selectedItem:f.selectedItem,item:f.item},movement:l,fakeFocus:c===Oy.ContentFocus,focusManager:s,menuBehaviours:Xh("auto"!==a?[]:[oa((function(e,t){ch(e,4,f.item).each((function(t){var n=t.numColumns,r=t.numRows;Rg.setGridSize(e,r,n)}))}))])})),{anchor:{type:"node",root:Re.fromDom(e.getBody()),node:ye.from(t.element)}}),ap.getContent(u).each(hd.highlightFirst)}(i,g,n,a):(10<=g.text.length-i.matchLength?l:r)())}))}))}))},m={onKeypress:vp((function(e){27!==e.which&&d()}),50),cancelIfNecessary:l,isMenuOpen:function(){return ap.isOpen(u)},isActive:n,isProcessingAction:c.get,getView:function(){return ap.getContent(u)}};function g(e,t){bo(e,ki(),{raw:t})}!1===e.hasPlugin("rtc")&&(o=m,(i=e).on("keypress compositionend",o.onKeypress.throttle),i.on("remove",o.onKeypress.cancel),i.on("keydown",(function(e){function t(){return o.getView().bind(hd.getHighlighted)}8===e.which&&o.onKeypress.throttle(e),o.isActive()&&(27===e.which&&o.cancelIfNecessary(),o.isMenuOpen()?13===e.which?(t().each(wo),e.preventDefault()):40===e.which?(t().fold((function(){o.getView().each(hd.highlightFirst)}),(function(t){g(t,e)})),e.preventDefault(),e.stopImmediatePropagation()):37!==e.which&&38!==e.which&&39!==e.which||t().each((function(t){g(t,e),e.preventDefault(),e.stopImmediatePropagation()})):13!==e.which&&38!==e.which&&40!==e.which||o.cancelIfNecessary())})),i.on("NodeChange",(function(e){o.isActive()&&!o.isProcessingAction()&&Dp(Re.fromDom(e.element)).isNone()&&o.cancelIfNecessary()})))}(Ey=Oy={})[Ey.ContentFocus=0]="ContentFocus",Ey[Ey.UiFocus=1]="UiFocus";var cb=Ir([{stopped:[]},{resume:["element"]},{complete:[]}]),ub=function(e,t,n,r,o,i){return Qy(e,t,n,r,o,i).fold(z,(function(r){return ub(e,t,n,r,o,i)}),x)},sb=function(e,t,n,r,o){var i=Zy(n,r);return ub(e,t,n,r,i,o)},lb=xl({name:"Container",factory:function(e){var t=e.dom,n=t.attributes,r=T(t,["attributes"]);return{uid:e.uid,dom:S({tag:"div",attributes:S({role:"presentation"},n)},r),components:e.components,behaviours:el(e.containerBehaviours),events:e.events,domModification:e.domModification,eventOrder:e.eventOrder}},configFields:[Or("components",[]),Qs("containerBehaviours",[]),Or("events",{}),Or("domModification",{}),Or("eventOrder",{})]}),fb=u([Or("prefix","form-field"),Qs("fieldBehaviours",[ud,Ef])]),db=u([Zf({schema:[mr("dom")],name:"label"}),Zf({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[mr("text")],name:"aria-descriptor"}),Yf({factory:{sketch:function(e){var t,n,r=(t=["factory"],n={},te(e,(function(e,r){_e(t,r)||(n[r]=e)})),n);return e.factory.sketch(r)}},schema:[mr("factory")],name:"field"})]),mb=zl({name:"FormField",configFields:fb(),partFields:db(),factory:function(e,t,n,r){var o=tl(e.fieldBehaviours,[ud.config({find:function(t){return ml(t,e,"field")}}),Ef.config({store:{mode:"manual",getValue:function(e){return ud.getCurrent(e).bind(Ef.getValue)},setValue:function(e,t){ud.getCurrent(e).each((function(e){Ef.setValue(e,t)}))}}})]),i=ra([oa((function(t,n){var r=pl(t,e,["label","field","aria-descriptor"]);r.field().each((function(t){var n=Bo(e.prefix);r.label().each((function(e){ot(e.element,"for",n),ot(t.element,"id",n)})),r["aria-descriptor"]().each((function(n){var r=Bo(e.prefix);ot(n.element,"id",r),ot(t.element,"aria-describedby",r)}))}))}))]);return{uid:e.uid,dom:e.dom,components:t,behaviours:o,events:i,apis:{getField:function(t){return ml(t,e,"field")},getLabel:function(t){return ml(t,e,"label")}}}},apis:{getField:function(e,t){return e.getField(t)},getLabel:function(e,t){return e.getLabel(t)}}}),gb=Object.freeze({__proto__:null,exhibit:function(e,t){return Vo({attributes:lo([{key:t.tabAttr,value:"true"}])})}}),pb=kc({fields:[Or("tabAttr","data-alloy-tabstop")],name:"tabstopping",active:gb}),hb=tinymce.util.Tools.resolve("tinymce.html.Entities"),vb=function(e,t,n,r){return{dom:yb(n),components:e.toArray().concat([t]),fieldBehaviours:nu(r)}},yb=function(e){return{tag:"div",classes:["tox-form__group"].concat(e)}},bb=Bo("form-component-change"),wb=Bo("form-close"),kb=Bo("form-cancel"),_b=Bo("form-action"),xb=Bo("form-submit"),zb=Bo("form-block"),Cb=Bo("form-unblock"),Sb=Bo("form-tabchange"),Tb=Bo("form-resize"),Ob=u([kr("data"),Or("inputAttributes",{}),Or("inputStyles",{}),Or("tag","input"),Or("inputClasses",[]),Ja("onSetValue"),Or("styles",{}),Or("eventOrder",{}),Qs("inputBehaviours",[Ef,Ig]),Or("selectOnFocus",!0)]),Eb=xl({name:"Input",configFields:Ob(),factory:function(e,t){return{uid:e.uid,dom:ib(e),components:[],behaviours:S(S({},ob(n=e)),tl(n.inputBehaviours,[Ef.config({store:S(S({mode:"manual"},n.data.map((function(e){return{initialValue:e}})).getOr({})),{getValue:function(e){return Qo(e.element)},setValue:function(e,t){Qo(e.element)!==t&&ei(e.element,t)}}),onSetValue:n.onSetValue})])),eventOrder:e.eventOrder};var n}}),Ab={},Db={exports:Ab};function Mb(e){setTimeout((function(){throw e}),0)}function Rb(e){var t=Ne(e);return _e($b,t)}function Nb(e,t){Xo(t.getRoot(e).getOr(e.element),t.invalidClass),t.notify.each((function(t){Rb(e.element)&&ot(e.element,"aria-invalid",!1),t.getContainer(e).each((function(e){Ro(e,t.validHtml)})),t.onValid(e)}))}function Bb(e,t,n,r){Ko(t.getRoot(e).getOr(e.element),t.invalidClass),t.notify.each((function(t){Rb(e.element)&&ot(e.element,"aria-invalid",!0),t.getContainer(e).each((function(e){Ro(e,r)})),t.onInvalid(e,r)}))}function Pb(e,t,n){return t.validator.fold((function(){return Wb(Ln.value(!0))}),(function(t){return t.validate(e)}))}function Lb(e,t,n){return t.notify.each((function(t){t.onValidate(e)})),Pb(e,t).map((function(n){return e.getSystem().isConnected()?n.fold((function(n){return Bb(e,t,0,n),Ln.error(n)}),(function(n){return Nb(e,t),Ln.value(n)})):Ln.error("No longer in system")}))}!function(){var t=this,n=function(){var t,n,r,o={exports:{}};function i(){}function a(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=[],d(e,this)}function c(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n,r=1===e._state?t.onFulfilled:t.onRejected;if(null!==r){try{n=r(e._value)}catch(n){return void s(t.promise,n)}u(t.promise,n)}else(1===e._state?u:s)(t.promise,e._value)}))):e._deferreds.push(t)}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 a)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void d((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){s(e,t)}var r,o}function s(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)c(e,e._deferreds[t]);e._deferreds=null}function f(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,u(t,e))}),(function(e){n||(n=!0,s(t,e))}))}catch(e){if(n)return;n=!0,s(t,e)}}t=o,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},r=setTimeout,a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return c(this,new f(e,t,n)),n},a.all=function(e){var t=Array.prototype.slice.call(e);return new a((function(e,n){if(0===t.length)return e([]);for(var r=t.length,o=0;o<t.length;o++)!function o(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var c=a.then;if("function"==typeof c)return c.call(a,(function(e){o(i,e)}),n),0}t[i]=a,0==--r&&e(t)}catch(a){n(a)}}(o,t[o])}))},a.resolve=function(e){return e&&"object"==typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)}))},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){r(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a._setImmediateFn=function(e){a._immediateFn=e},a._setUnhandledRejectionFn=function(e){a._unhandledRejectionFn=e},t.exports?t.exports=a:n.Promise||(n.Promise=a);var m=o.exports;return{boltExport:("undefined"!=typeof window?window:Function("return this;")()).Promise||m}};"object"==typeof Ab&&void 0!==Db?Db.exports=n():(t="undefined"!=typeof globalThis?globalThis:t||self).EphoxContactWrapper=n()}();var Ib,Hb,Fb=Db.exports.boltExport,jb=function(e){function t(e){o()?i(e):r.push(e)}var n=ye.none(),r=[],o=function(){return n.isSome()},i=function(e){n.each((function(t){setTimeout((function(){e(t)}),0)}))};return e((function(e){o()||(n=ye.some(e),xe(r,i),r=[])})),{get:t,map:function(e){return jb((function(n){t((function(t){n(e(t))}))}))},isReady:o}},Vb={nu:jb,pure:function(e){return jb((function(t){t(e)}))}},Ub=function(e){function t(t){e().then(t,Mb)}return{map:function(t){return Ub((function(){return e().then(t)}))},bind:function(t){return Ub((function(){return e().then((function(e){return t(e).toPromise()}))}))},anonBind:function(t){return Ub((function(){return e().then((function(){return t.toPromise()}))}))},toLazy:function(){return Vb.nu(t)},toCached:function(){var t=null;return Ub((function(){return t=null===t?e():t}))},toPromise:e,get:t}},qb=function(e){return Ub((function(){return new Fb(e)}))},Wb=function(e){return Ub((function(){return Fb.resolve(e)}))},$b=["input","textarea"],Gb=Object.freeze({__proto__:null,markValid:Nb,markInvalid:Bb,query:Pb,run:Lb,isInvalid:function(e,t){return Yo(t.getRoot(e).getOr(e.element),t.invalidClass)}}),Kb=Object.freeze({__proto__:null,events:function(e,t){return e.validator.map((function(t){return ra([Co(t.onEvent,(function(t){Lb(t,e).get(s)}))].concat(t.validateOnLoad?[oa((function(t){Lb(t,e).get(a)}))]:[]))})).getOr({})}}),Xb=kc({fields:[mr("invalidClass"),Or("getRoot",ye.none),Tr("notify",[Or("aria","alert"),Or("getContainer",ye.none),Or("validHtml",""),Ja("onValid"),Ja("onInvalid"),Ja("onValidate")]),Tr("validator",[mr("validate"),Or("onEvent","input"),Or("validateOnLoad",!0)])],name:"invalidating",active:Kb,apis:Gb,extra:{validation:function(e){return function(t){var n=Ef.getValue(t);return Wb(e(n))}}}}),Yb=Object.freeze({__proto__:null,getCoupled:function(e,t,n,r){return n.getOrCreate(e,t,r)}}),Jb=kc({fields:[gr("others",cr(Ln.value,Qr()))],name:"coupling",apis:Yb,state:Object.freeze({__proto__:null,init:function(){var e={},t=u({});return _a({readState:t,getOrCreate:function(t,n,r){var o=Ce(n.others);if(o)return ae(e,r).getOrThunk((function(){var o=ae(n.others,r).getOrDie("No information found for coupled component: "+r)(t),i=t.getSystem().build(o);return e[r]=i}));throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+JSON.stringify(o,null,2))}})}})}),Zb=u("sink"),Qb=u(Zf({name:Zb(),overrides:u({dom:{tag:"div"},behaviours:nu([ff.config({useFixed:z})]),events:ra([Ao(ki()),Ao(gi()),Ao(Ci())])})}));function ew(e,t){var n=e.getHotspot(t).getOr(t),r=e.getAnchorOverrides();return e.layouts.fold((function(){return{type:"hotspot",hotspot:n,overrides:r}}),(function(e){return{type:"hotspot",hotspot:n,overrides:r,layouts:e}}))}function tw(e,t,n,r,o,i,a){var c,u=ew(e,n),s=n,l=r,f=o,d=a,m=t,g=(0,(c=e).fetch)(s).map(m),p=m_(s,c);return g.map((function(e){return e.bind((function(e){return ye.from(ip.sketch(S(S({},f.menu()),{uid:ha(""),data:e,highlightImmediately:d===Ib.HighlightFirst,onOpenMenu:function(e,t){var n=p().getOrDie();ff.position(n,t,{anchor:u}),yf.decloak(l)},onOpenSubmenu:function(e,t,n){var r=p().getOrDie();ff.position(r,n,{anchor:{type:"submenu",item:t}}),yf.decloak(l)},onRepositionMenu:function(e,t,n){var r=p().getOrDie();ff.position(r,t,{anchor:u}),xe(n,(function(e){ff.position(r,e.triggeredMenu,{anchor:{type:"submenu",item:e.triggeringItem}})}))},onEscape:function(){return Ig.focus(s),yf.close(l),ye.some(!0)}})))}))})).map((function(e){return e.fold((function(){yf.isOpen(r)&&yf.close(r)}),(function(e){yf.cloak(r),yf.open(r,e),i(r)})),r}))}function nw(e,t,n,r,o,i){var a=Jb.getCoupled(n,"sandbox");return(yf.isOpen(a)?function(e,t,n,r,o,i,a){return yf.close(r),Wb(r)}:tw)(e,t,n,a,r,o,i)}function rw(e){yf.getState(e).each((function(e){ip.repositionMenus(e)}))}function ow(e,t,n){var r=La(),o=m_(t,e);return{dom:{tag:"div",classes:e.sandboxClasses,attributes:{id:r.id,role:"listbox"}},behaviours:Df(e.sandboxBehaviours,[Ef.config({store:{mode:"memory",initialValue:t}}),yf.config({onOpen:function(o,i){var a,c,u,s,l,f,d=ew(e,t);r.link(t.element),e.matchWidth&&(a=d.hotspot,c=i,u=e.useMinWidth,l=ud.getCurrent(c).getOr(c),f=Ct(a.element),u?dt(l.element,"min-width",f+"px"):(s=l.element,Sn.set(s,f))),e.onOpen(d,o,i),void 0!==n&&void 0!==n.onOpen&&n.onOpen(o,i)},onClose:function(e,o){r.unlink(t.element),void 0!==n&&void 0!==n.onClose&&n.onClose(e,o)},isPartOf:function(e,n,r){return Fa(n,r)||Fa(t,r)},getAttachPoint:function(){return o().getOrDie()}}),ud.config({find:function(e){return yf.getState(e).bind((function(e){return ud.getCurrent(e)}))}}),au.config({channels:S(S({},$s({isExtraPart:x})),Gs({doReposition:rw}))})])}}function iw(e){rw(Jb.getCoupled(e,"sandbox"))}function aw(){return[Or("sandboxClasses",[]),Af("sandboxBehaviours",[ud,au,yf,Ef])]}function cw(e){return Zf({name:e+"-edge",overrides:function(t){return t.model.manager.edgeActions[e].fold((function(){return{}}),(function(e){return{events:ra([So(li(),(function(t,n,r){return e(t,r)}),[t]),So(gi(),(function(t,n,r){return e(t,r)}),[t]),So(pi(),(function(t,n,r){r.mouseIsDown.get()&&e(t,r)}),[t])])}}))}})}function uw(e){var t=e.event.raw;return-1===t.type.indexOf("touch")?void 0!==t.clientX?ye.some(t).map((function(e){return zn(e.clientX,e.clientY)})):ye.none():void 0!==t.touches&&1===t.touches.length?ye.some(t.touches[0]).map((function(e){return zn(e.clientX,e.clientY)})):ye.none()}function sw(e){return e.model.minX}function lw(e){return e.model.minY}function fw(e){return e.model.minX-1}function dw(e){return e.model.minY-1}function mw(e){return e.model.maxX}function gw(e){return e.model.maxY}function pw(e){return e.model.maxX+1}function hw(e){return e.model.maxY+1}function vw(e,t,n){return t(e)-n(e)}function yw(e){return vw(e,mw,sw)}function bw(e){return vw(e,gw,lw)}function ww(e){return yw(e)/2}function kw(e){return bw(e)/2}function _w(e){return e.stepSize}function xw(e){return e.snapToGrid}function zw(e){return e.snapStart}function Cw(e){return e.rounded}function Sw(e,t){return void 0!==e[t+"-edge"]}function Tw(e){return Sw(e,"left")}function Ow(e){return Sw(e,"right")}function Ew(e){return Sw(e,"top")}function Aw(e){return Sw(e,"bottom")}function Dw(e){return e.model.value.get()}function Mw(e,t){return{x:e,y:t}}function Rw(e,t){bo(e,A_(),{value:t})}function Nw(e,t,n,r){return e<t?e:n<e?n:e===t?t-1:Math.max(t,e-r)}function Bw(e,t,n,r){return n<e?e:e<t?t:e===n?n+1:Math.min(n,e+r)}function Pw(e,t,n){return Math.max(t,Math.min(n,e))}function Lw(e){var t=e.min,n=e.max,r=e.range,o=e.value,i=e.step,a=e.snap,c=e.snapStart,u=e.rounded,s=e.hasMinEdge,l=e.hasMaxEdge,f=e.minBound,d=e.maxBound,m=e.screenRange,g=s?t-1:t,p=l?n+1:n;if(o<f)return g;if(d<o)return p;var h,v,y,b,w,k=Pw((w=f,(Math.min(d,Math.max(o,w))-w)/m*r+t),g,p);return a&&t<=k&&k<=n?(h=k,v=t,y=n,b=i,c.fold((function(){var e=Math.round((h-v)/b)*b;return Pw(v+e,v-1,y+1)}),(function(e){var t=Math.round((h-e)%b/b),n=Math.floor((h-e)/b),r=Math.floor((y-e)/b),o=Math.min(r,n+t);return Math.max(e,e+o*b)}))):u?Math.round(k):k}function Iw(e){var t=e.min,n=e.max,r=e.range,o=e.value,i=e.hasMinEdge,a=e.hasMaxEdge,c=e.maxBound,u=e.maxOffset,s=e.centerMinEdge,l=e.centerMaxEdge;return o<t?i?0:s:n<o?a?c:l:(o-t)/r*u}function Hw(e){return e.element.dom.getBoundingClientRect()}function Fw(e){return Hw(e)[D_]}function jw(e){return Hw(e).right}function Vw(e){return Hw(e).top}function Uw(e){return Hw(e).bottom}function qw(e){return Hw(e).width}function Ww(e){return Hw(e).height}function $w(e,t){var n=Hw(e),r=Hw(t);return(n[D_]+n.right)/2-r[D_]}function Gw(e,t){var n=Hw(e),r=Hw(t);return(n.top+n.bottom)/2-r.top}function Kw(e,t){bo(e,A_(),{value:t})}function Xw(e,t,n){return Lw({min:sw(t),max:mw(t),range:yw(t),value:n,step:_w(t),snap:xw(t),snapStart:zw(t),rounded:Cw(t),hasMinEdge:Tw(t),hasMaxEdge:Ow(t),minBound:Fw(e),maxBound:jw(e),screenRange:qw(e)})}function Yw(e){return function(t,n){return Kw(t,{x:o=(0<e?Bw:Nw)(Dw(r=n).x,sw(r),mw(r),_w(r))}),ye.some(o).map(z);var r,o}}function Jw(e,t,n,r,o,i){var a,c,u,s,l,f,d,m,g=(c=i,u=n,s=r,l=o,f=qw(a=t),d=s.bind((function(e){return ye.some($w(e,a))})).getOr(0),m=l.bind((function(e){return ye.some($w(e,a))})).getOr(f),Iw({min:sw(c),max:mw(c),range:yw(c),value:u,hasMinEdge:Tw(c),hasMaxEdge:Ow(c),minBound:Fw(a),minOffset:0,maxBound:jw(a),maxOffset:f,centerMinEdge:d,centerMaxEdge:m}));return Fw(t)-Fw(e)+g}function Zw(e,t){bo(e,A_(),{value:t})}function Qw(e,t,n){return Lw({min:lw(t),max:gw(t),range:bw(t),value:n,step:_w(t),snap:xw(t),snapStart:zw(t),rounded:Cw(t),hasMinEdge:Ew(t),hasMaxEdge:Aw(t),minBound:Vw(e),maxBound:Uw(e),screenRange:Ww(e)})}function ek(e){return function(t,n){return Zw(t,{y:o=(0<e?Bw:Nw)(Dw(r=n).y,lw(r),gw(r),_w(r))}),ye.some(o).map(z);var r,o}}function tk(e,t,n,r,o,i){var a,c,u,s,l,f,d,m,g=(c=i,u=n,s=r,l=o,f=Ww(a=t),d=s.bind((function(e){return ye.some(Gw(e,a))})).getOr(0),m=l.bind((function(e){return ye.some(Gw(e,a))})).getOr(f),Iw({min:lw(c),max:gw(c),range:bw(c),value:u,hasMinEdge:Ew(c),hasMaxEdge:Aw(c),minBound:Vw(a),minOffset:0,maxBound:Uw(a),maxOffset:f,centerMinEdge:d,centerMaxEdge:m}));return Vw(t)-Vw(e)+g}function nk(e,t){bo(e,A_(),{value:t})}function rk(e,t){return{x:e,y:t}}function ok(e,t){return function(n,r){return i=r,a=0<e?Bw:Nw,nk(n,rk(c=(o=t)?Dw(i).x:a(Dw(i).x,sw(i),mw(i),_w(i)),o?a(Dw(i).y,lw(i),gw(i),_w(i)):Dw(i).y)),ye.some(c).map(z);var o,i,a,c}}function ik(e){return"<alloy.field."+e+">"}function ak(e,t,n,r){function o(n,r,o,i,c){var u,s,l=e(ax+"range"),f=[mb.parts.label({dom:{tag:"label",innerHtml:o,attributes:{"aria-label":i}}}),mb.parts.field({data:c,factory:Eb,inputAttributes:S({type:"text"},"hex"===r?{"aria-live":"polite"}:{}),inputClasses:[t("textfield")],inputBehaviours:nu([(u=r,s=n,Xb.config({invalidClass:t("invalid"),notify:{onValidate:function(e){bo(e,ix,{type:u})},onValid:function(e){bo(e,rx,{type:u,value:Ef.getValue(e)})},onInvalid:function(e){bo(e,ox,{type:u,value:Ef.getValue(e)})}},validator:{validate:function(t){var n=Ef.getValue(t),r=s(n)?Ln.value(!0):Ln.error(e("aria.input.invalid"));return Wb(r)},validateOnLoad:!1}})),pb.config({})]),onSetValue:function(e){Xb.isInvalid(e)&&Xb.run(e).get(a)}})],d="hex"!==r?[mb.parts["aria-descriptor"]({text:l})]:[];return{dom:{tag:"div",attributes:{role:"presentation"}},components:f.concat(d)}}function i(e,t){var n=t.red,r=t.green,o=t.blue;Ef.setValue(e,{red:n,green:r,blue:o})}function c(e,t){u.getOpt(e).each((function(e){dt(e.element,"background-color","#"+t.value)}))}var u=Hm({dom:{tag:"div",classes:[t("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}});return xl({factory:function(){function a(e){return g[e].get()}function s(e,t){g[e].set(t)}function l(e,t){var n=t.event;"hex"!==n.type?s(n.type,ye.none()):r(e)}function f(e,t){var r,o,u,l,f=t.event;"hex"===f.type?function(e,t){n(e);var r=Dv(t);s("hex",ye.some(t));var o=Iv(r);i(e,o),m(o),bo(e,Z_,{hex:r}),c(e,r)}(e,f.value):(r=e,o=f.type,u=f.value,l=parseInt(u,10),s(o,ye.some(l)),a("red").bind((function(e){return a("green").bind((function(t){return a("blue").map((function(n){return Bv(e,t,n,1)}))}))})).each((function(e){var t,n,o=(t=r,n=Nv(e),nx.getField(t,"hex").each((function(e){Ig.isFocused(e)||Ef.setValue(t,{hex:n.value})})),n);bo(r,Z_,{hex:o}),c(r,o)})))}function d(t){return{label:e(ax+t+".label"),description:e(ax+t+".description")}}function m(e){var t=e.red,n=e.green,r=e.blue;s("red",ye.some(t)),s("green",ye.some(n)),s("blue",ye.some(r))}var g={red:Lr(ye.some(255)),green:Lr(ye.some(255)),blue:Lr(ye.some(255)),hex:Lr(ye.some("ffffff"))},p=d("red"),h=d("green"),v=d("blue"),y=d("hex");return Gr(nx.sketch((function(n){return{dom:{tag:"form",classes:[t("rgb-form")],attributes:{"aria-label":e("aria.color.picker")}},components:[n.field("red",mb.sketch(o(Pv,"red",p.label,p.description,255))),n.field("green",mb.sketch(o(Pv,"green",h.label,h.description,255))),n.field("blue",mb.sketch(o(Pv,"blue",v.label,v.description,255))),n.field("hex",mb.sketch(o(Mv,"hex",y.label,y.description,"ffffff"))),u.asSpec()],formBehaviours:nu([Xb.config({invalidClass:t("form-invalid")}),mm("rgb-form-events",[Co(rx,f),Co(ox,l),Co(ix,l)])])}})),{apis:{updateHex:function(e,t){var n;Ef.setValue(e,{hex:t.value}),i(e,n=Iv(t)),m(n),c(e,t)}}})},name:"RgbForm",configFields:[],apis:{updateHex:function(e,t,n){e.updateHex(t,n)}},extraApis:{}})}function ck(e,t){return xl({name:"ColourPicker",configFields:[mr("dom"),Or("onValidHex",a),Or("onInvalidHex",a)],factory:function(n){function r(e,t,n){w.getOpt(e).each((function(e){v.setHue(e,n)}))}function o(e,t){k.getOpt(e).each((function(e){h.updateHex(e,t)}))}function i(e,t,n,r){var o=n,i=Iv(t);y.paletteRgba.set(i),y.paletteHue.set(o),xe(r,(function(r){r(e,t,n)}))}var a,c,s,l,f,d,m,g,p,h=ak(e,t,n.onValidHex,n.onInvalidHex),v=(m=t,g=J_.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[m("sv-palette-spectrum")]}}),p=J_.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[m("sv-palette-thumb")],innerHtml:"<div class="+m("sv-palette-inner-thumb")+' role="presentation"></div>'}}),xl({factory:function(e){var t=u({x:0,y:0}),n=nu([ud.config({find:ye.some}),Ig.config({})]);return J_.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[m("sv-palette")]},model:{mode:"xy",getInitialValue:t},rounded:!1,components:[g,p],onChange:function(e,t,n){bo(e,ex,{value:n})},onInit:function(e,t,n,r){_(n.element.dom,jv(fy))},sliderBehaviours:n})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:function(e,t,n){var r=n;_(t.components()[0].element.dom,jv(Lv(Uv(r,100,100))))},setThumb:function(e,t,n){var r=t,o=qv(Iv(n));J_.setValue(r,{x:o.saturation,y:100-o.value})}},extraApis:{}})),y={paletteRgba:Lr(fy),paletteHue:Lr(0)},b=Hm((c=J_.parts.spectrum({dom:{tag:"div",classes:[(a=t)("hue-slider-spectrum")],attributes:{role:"presentation"}}}),s=J_.parts.thumb({dom:{tag:"div",classes:[a("hue-slider-thumb")],attributes:{role:"presentation"}}}),J_.sketch({dom:{tag:"div",classes:[a("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:u({y:0})},components:[c,s],sliderBehaviours:nu([Ig.config({})]),onChange:function(e,t,n){bo(e,Q_,{value:n})}}))),w=Hm(v.sketch({})),k=Hm(h.sketch({}));function _(e,t){var n,r,o=e.width,i=e.height,a=e.getContext("2d");null!==a&&(a.fillStyle=t,a.fillRect(0,0,o,i),(n=a.createLinearGradient(0,0,o,0)).addColorStop(0,"rgba(255,255,255,1)"),n.addColorStop(1,"rgba(255,255,255,0)"),a.fillStyle=n,a.fillRect(0,0,o,i),(r=a.createLinearGradient(0,0,0,i)).addColorStop(0,"rgba(0,0,0,0)"),r.addColorStop(1,"rgba(0,0,0,1)"),a.fillStyle=r,a.fillRect(0,0,o,i))}return{uid:n.uid,dom:n.dom,components:[w.asSpec(),b.asSpec(),k.asSpec()],behaviours:nu([mm("colour-picker-events",[Co(Z_,(d=[r,function(e,t,n){b.getOpt(e).each((function(e){J_.setValue(e,{y:100-n/360*100})}))},function(e,t){w.getOpt(e).each((function(e){v.setThumb(e,t)}))}],function(e,t){var n=t.event.hex;i(e,n,qv(Iv(n)).hue,d)})),Co(ex,(f=[o],function(e,t){var n=t.event.value,r=y.paletteHue.get();i(e,Wv(Uv(r,n.x,100-n.y)),r,f)})),Co(Q_,(l=[r,o],function(e,t){var n=(100-t.event.value.y)/100*360,r=qv(y.paletteRgba.get());i(e,Wv(Uv(n,r.saturation,r.value)),n,l)}))]),ud.config({find:function(e){return k.getOpt(e)}}),Rg.config({mode:"acyclic"})])}}})}function uk(e){return sx[e]}function sk(e,t,n){return Ef.config(Gr({store:{mode:"manual",getValue:t,setValue:n}},e.map((function(e){return{store:{initialValue:e}}})).getOr({})))}function lk(e,t){function n(e,t){t.stop()}function r(e){return function(t,n){xe(e,(function(e){e(t,n)}))}}function o(e,t){var n;gd.isDisabled(e)||(n=t.event.raw,a(e,n.dataTransfer.files))}function i(e,t){var n=t.event.raw.target;a(e,n.files)}function a(n,r){var o,i;Ef.setValue(n,(o=r,i=fx.explode(t.getSetting("images_file_types","jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp","string")),I(ze(o),(function(e){return R(i,(function(t){return De(e.name.toLowerCase(),"."+t.toLowerCase())}))})))),bo(n,bb,{name:e.name})}var c=Hm({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:nu([mm("input-file-events",[Ao(Ci()),Ao(Li())])])});return nb(e.label.map((function(e){return rb(e,t)})),mb.parts.field({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:nu([px([]),c_(),gd.config({}),jg.config({toggleClass:"dragenter",toggleOnExecute:!1}),mm("dropzone-events",[Co("dragenter",r([n,jg.toggle])),Co("dragleave",r([n,jg.toggle])),Co("dragover",n),Co("drop",r([n,o])),Co(zi(),i)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:t.translate("Drop an image here")}},fp.sketch({dom:{tag:"button",innerHtml:t.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[c.asSpec()],action:function(e){c.get(e).element.dom.click()},buttonBehaviours:nu([pb.config({}),Jv(t.isDisabled),pv()])})]}]}}}}),["tox-form__group--stretched"],[])}function fk(e){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:e},behaviours:nu([Ig.config({ignore:!0}),pb.config({})])}}function dk(e){return{dom:{tag:"div",classes:["tox-navobj"]},components:[fk([hx]),e,fk([vx])],behaviours:nu([ux(1)])}}function mk(e,t){bo(e,ki(),{raw:{which:9,shiftKey:t}})}function gk(e,t){var n=t.element;Yo(n,hx)?mk(e,!0):Yo(n,vx)&&mk(e,!1)}function pk(e){return Gy(e,["."+hx,"."+vx].join(","),x)}function hk(e,t){return wx(document.createElement("canvas"),e,t)}function vk(e){var t=hk(e.width,e.height);return bx(t).drawImage(e,0,0),t}function yk(e){return e.naturalWidth||e.width}function bk(e){return e.naturalHeight||e.height}function wk(e,t,n){return t=t||"image/png",y(HTMLCanvasElement.prototype.toBlob)?new Fb((function(r,o){e.toBlob((function(e){e?r(e):o()}),t,n)})):(r=e.toDataURL(t,n),new Fb((function(e,t){(function(){var e=r.split(","),t=/data:([^;]+)/.exec(e[0]);if(!t)return ye.none();for(var n=t[1],o=e[1],i=atob(o),a=i.length,c=Math.ceil(a/1024),u=new Array(c),s=0;s<c;++s){for(var l=1024*s,f=Math.min(1024+l,a),d=new Array(f-l),m=l,g=0;m<f;++g,++m)d[g]=i[m].charCodeAt(0);u[s]=new Uint8Array(d)}return ye.some(new Blob(u,{type:n}))})().fold((function(){t("uri is not base64: "+r)}),e)})));var r}function kk(e,t,n){function r(t,n){return e.then((function(e){return e.toDataURL(t||"image/png",n)}))}return{getType:u(t.type),toBlob:function(){return Fb.resolve(t)},toDataURL:u(n),toBase64:function(){return n.split(",")[1]},toAdjustedBlob:function(t,n){return e.then((function(e){return wk(e,t,n)}))},toAdjustedDataURL:r,toAdjustedBase64:function(e,t){return r(e,t).then((function(e){return e.split(",")[1]}))},toCanvas:function(){return e.then(vk)}}}function _k(e,t){return wk(e,t).then((function(t){return kk(Fb.resolve(e),t,e.toDataURL())}))}function xk(e){return t=e,new Fb((function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)})).then((function(t){return kk((n=e,new Fb((function(e,t){function r(){i.removeEventListener("load",a),i.removeEventListener("error",c)}var o=URL.createObjectURL(n),i=new Image,a=function(){r(),e(i)},c=function(){r(),t("Unable to load data of type "+n.type+": "+o)};i.addEventListener("load",a),i.addEventListener("error",c),i.src=o,i.complete&&setTimeout(a,0)})).then((function(e){kx(e);var t=hk(yk(e),bk(e));return bx(t).drawImage(e,0,0),t}))),e,t);var n}));var t}function zk(e,t,n){var r="string"==typeof e?parseFloat(e):e;return n<r?r=n:r<t&&(r=t),r}function Ck(){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 Sk(e,t){for(var n=[],r=new Array(25),o=0;o<5;o++){for(var i=0;i<5;i++)n[i]=t[i+5*o];for(i=0;i<5;i++){for(var a=0,c=0;c<5;c++)a+=e[i+5*c]*n[c];r[i+5*o]=a}}return r}function Tk(e,t){return e.toCanvas().then((function(n){return xx(n,e.getType(),t)}))}function Ok(e){return function(t,n){return Tk(t,e(Ck(),n))}}function Ek(e,t){void 0===t&&(t=2);var n=Math.pow(10,t),r=Math.round(e*n);return Math.ceil(r/n)}function Ak(e){return zx(e)}function Dk(e){return Tx(e)}function Mk(e,t){return Ox(e,t)}function Rk(e,t){return Cx(e,t)}function Nk(e,t){return Sx(e,t)}function Bk(e,t){return r=t,(n=e).toCanvas().then((function(e){return Mx(e,n.getType(),r)}));var n,r}function Pk(e,t){return r=t,(n=e).toCanvas().then((function(e){return Dx(e,n.getType(),r)}));var n,r}function Lk(e,t,n){return $m(e,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:n},t)}function Ik(e,t){return Lk(e,t,[])}function Hk(e,t){return Lk(e,t,[Bg.config({})])}function Fk(e,t,n){return{dom:{tag:"span",innerHtml:n.translate(e),classes:[t+"__select-label"]},behaviours:nu([Bg.config({})])}}function jk(e,t,n){function r(e,t){var n=Ef.getValue(e);return Ig.focus(n),bo(n,"keydown",{raw:t.event.raw}),h_.close(n),ye.some(!0)}var o=Lr(a),i=e.text.map((function(e){return Hm(Fk(e,t,n.providers))})),c=e.icon.map((function(e){return Hm(Hk(e,n.providers.icons))})),u=e.role.fold((function(){return{}}),(function(e){return{role:e}})),s=e.tooltip.fold((function(){return{}}),(function(e){var t=n.providers.translate(e);return{title:t,"aria-label":t}})),l=$m("chevron-down",{tag:"div",classes:[t+"__select-chevron"]},n.providers.icons);return Hm(h_.sketch(S(S(S({},e.uid?{uid:e.uid}:{}),u),{dom:{tag:"button",classes:[t,t+"--select"].concat(P(e.classes,(function(e){return t+"--"+e}))),attributes:S({},s)},components:ey([c.map((function(e){return e.asSpec()})),i.map((function(e){return e.asSpec()})),ye.some(l)]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:nu(O(O([],e.dropdownBehaviours,!0),[Jv((function(){return e.disabled||n.providers.isDisabled()})),pv(),v_.config({}),Bg.config({}),mm("dropdown-events",[vv(e,o),yv(e,o)]),mm("menubutton-update-display-text",[Co(Px,(function(e,t){i.bind((function(t){return t.getOpt(e)})).each((function(e){Bg.set(e,[ii(n.providers.translate(t.event.text))])}))})),Co(Lx,(function(e,t){c.bind((function(t){return t.getOpt(e)})).each((function(e){Bg.set(e,[Hk(t.event.icon,n.providers.icons)])}))}))])],!1)),eventOrder:Gr(Bx,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:nu([Rg.config({mode:"special",onLeft:r,onRight:r})]),lazySink:n.getSink,toggleClass:t+"--active",parts:{menu:Qp(0,e.columns,e.presets)},fetch:function(t){return qb(w(e.fetch,t))}}))).asSpec()}function Vk(e){return"separator"===e.type}function Uk(e,t,n,r){var o=Bo("primary-menu"),i=Hx(e,n.shared.providers.menuItems());if(0===i.items.length)return ye.none();var a=Wy(o,i.items,t,n,r),c=ne(i.menus,(function(e,r){return Wy(r,e,t,n,!1)})),u=Gr(c,so(o,a));return ye.from(ip.tieredData(o,u,i.expansions))}function qk(e){return{isDisabled:function(){return gd.isDisabled(e)},setDisabled:function(t){return gd.set(e,t)},setActive:function(t){var n=e.element;t?(Ko(n,"tox-tbtn--enabled"),ot(n,"aria-pressed",!0)):(Xo(n,"tox-tbtn--enabled"),st(n,"aria-pressed"))},isActive:function(){return Yo(e.element,"tox-tbtn--enabled")}}}function Wk(e,t,n,r){return jk({text:e.text,icon:e.icon,tooltip:e.tooltip,role:r,fetch:function(t,r){e.fetch((function(e){r(Uk(e,_h.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:e.onSetup,getApi:qk,columns:1,presets:"normal",classes:[],dropdownBehaviours:[pb.config({})]},t,n.shared)}function $k(e,t,n,r,o,i){void 0===n&&(n=[]);var a=t.fold((function(){return{}}),(function(e){return{action:e}})),c=S({buttonBehaviours:nu([Jv((function(){return e.disabled||i.isDisabled()})),pv(),pb.config({}),mm("button press",[zo("click"),zo("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),u=Gr(c,{dom:r});return Gr(u,{components:o})}function Gk(e,t,n,r){void 0===r&&(r=[]);var o={tag:"button",classes:["tox-tbtn"],attributes:e.tooltip.map((function(e){return{"aria-label":n.translate(e),title:n.translate(e)}})).getOr({})},i=e.icon.map((function(e){return Ik(e,n.icons)}));return $k(e,t,r,o,ey([i]),n)}function Kk(e,t,n,r){void 0===r&&(r=[]);var o=Gk(e,ye.some(t),n,r);return fp.sketch(o)}function Xk(e,t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o=[]);var i=n.translate(e.text),a=e.icon?e.icon.map((function(e){return Ik(e,n.icons)})):ye.none(),c=a.isSome()?ey([a]):[],u=a.isSome()?{}:{innerHtml:i},s=O(O(O(O([],e.primary||e.borderless?["tox-button"]:["tox-button","tox-button--secondary"],!0),a.isSome()?["tox-button--icon"]:[],!0),e.borderless?["tox-button--naked"]:[],!0),o,!0);return $k(e,t,r,S(S({tag:"button",classes:s},u),{attributes:{title:i}}),c,n)}function Yk(e,t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o=[]);var i=Xk(e,ye.some(t),n,r,o);return fp.sketch(i)}function Jk(e,t){return function(n){"custom"===t?bo(n,_b,{name:e,value:{}}):"submit"===t?yo(n,xb):"cancel"===t?yo(n,kb):console.error("Unknown button type: ",t)}}function Zk(e,t,n){if("menu"===t){var r=e,o=Hm(Wk(S(S({},e),{onSetup:function(t){return t.setDisabled(e.disabled),a},fetch:(i=r.items,c=function(){return o},u=n,function(e){e(P(i,(function(e){var t,n,r=e.text.fold((function(){return{}}),(function(e){return{text:e}}));return S(S({type:e.type,active:!1},r),{onAction:function(e){var t=!e.isActive();e.setActive(t),n.storage.set(t),u.shared.getSink().each((function(e){c().getOpt(e).each((function(e){zc(e.element),bo(e,_b,{name:n.name,value:n.storage.get()})}))}))},onSetup:(t=n=e,function(e){e.setActive(t.storage.get())})})})))})}),"tox-tbtn",n,ye.none()));return o.asSpec()}var i,c,u;if("custom"===t||"cancel"===t||"submit"===t){var s=Jk(e.name,t);return Yk(S(S({},e),{borderless:!1}),s,n.shared.providers,[])}console.error("Unknown footer button type: ",t)}function Qk(e,t){return Yf({factory:mb,name:e,overrides:function(e){return{fieldBehaviours:nu([mm("coupled-input-behaviour",[Co(xi(),(function(n){ml(n,e,t).bind(ud.getCurrent).each((function(t){ml(n,e,"lock").each((function(r){jg.isOn(r)&&e.onLockedChange(n,t,r)}))}))}))])])}}})}function e_(e){var t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(e);if(null===t)return Ln.error(e);var n=parseFloat(t[1]),r=t[2];return Ln.value({value:n,unit:r})}function t_(e,t){function n(e){return Oe(r,e)}var r={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1};return e.unit===t?ye.some(e.value):n(e.unit)&&n(t)?r[e.unit]===r[t]?ye.some(e.value):ye.some(e.value/r[e.unit]*r[t]):ye.none()}function n_(e){return ye.none()}function r_(e,t){function n(e){return $m(e,{tag:"span",classes:["tox-icon","tox-lock-icon__"+e]},t.icons)}function r(e){return{dom:{tag:"div",classes:["tox-form__group"]},components:e}}function o(n){return mb.parts.field({factory:Eb,inputClasses:["tox-textfield"],inputBehaviours:nu([gd.config({disabled:function(){return e.disabled||t.isDisabled()}}),pv(),pb.config({}),mm("size-input-events",[Co(bi(),(function(e,t){bo(e,c,{isField1:n})})),Co(zi(),(function(t,n){bo(t,bb,{name:e.name})}))])]),selectOnFocus:!1})}function i(e){return{dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}}var a=n_,c=Bo("ratio-event"),u=Vx.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:t.translate(e.label.getOr("Constrain proportions"))}},components:[n("lock"),n("unlock")],buttonBehaviours:nu([gd.config({disabled:function(){return e.disabled||t.isDisabled()}}),pv(),pb.config({})])}),s=Vx.parts.field1(r([mb.parts.label(i("Width")),o(!0)])),l=Vx.parts.field2(r([mb.parts.label(i("Height")),o(!1)]));return Vx.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[s,l,r([i(" "),u])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(e,t,n){e_(Ef.getValue(e)).each((function(e){a(e).each((function(e){var n,r,o,i;Ef.setValue(t,(i=-1!==(i=(n=e).value.toFixed((r=n.unit)in(o={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4})?o[r]:1)).indexOf(".")?i.replace(/\.?0*$/,""):i)+n.unit)}))}))},coupledFieldBehaviours:nu([gd.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){Vx.getField1(e).bind(mb.getField).each(gd.disable),Vx.getField2(e).bind(mb.getField).each(gd.disable),Vx.getLock(e).each(gd.disable)},onEnabled:function(e){Vx.getField1(e).bind(mb.getField).each(gd.enable),Vx.getField2(e).bind(mb.getField).each(gd.enable),Vx.getLock(e).each(gd.enable)}}),pv(),mm("size-input-events2",[Co(c,(function(e,t){var n,r,o,i=t.event.isField1,c=i?Vx.getField1(e):Vx.getField2(e),u=i?Vx.getField2(e):Vx.getField1(e),s=c.map(Ef.getValue).getOr(""),l=u.map(Ef.getValue).getOr("");n=l,r=e_(s).toOptional(),o=e_(n).toOptional(),a=Ee(r,o,(function(e,t){return t_(e,t.unit).map((function(e){return t.value/e})).map((function(e){return n=e,r=t.unit,function(e){return t_(e,r).map((function(e){return{value:e*n,unit:r}}))};var n,r})).getOr(n_)})).getOr(n_)}))])])})}function o_(e,t){function n(e,n,r,o){return Hm(Yk({name:e,text:e,disabled:r,primary:o,icon:ye.none(),borderless:!1},n,t))}function r(e,n,r,o){return Hm(Kk({name:e,icon:ye.some(e),tooltip:ye.some(n),disabled:o,primary:!1,borderless:!1},r,t))}function o(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(gd)&&gd.disable(n)}))}function i(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(gd)&&gd.enable(n)}))}function c(e,t,n){bo(e,t,n)}function s(e){return yo(e,Gx.disable()),0}function l(e){return yo(e,Gx.enable()),0}function f(e,t){s(e),c(e,Ux.transform(),{transform:t}),l(e)}function d(e){return function(){Y.getOpt(e).each((function(e){Bg.set(e,[X])}))}}function m(e,t){s(e),c(e,Ux.transformApply(),{transform:t,swap:d(e)}),l(e)}function g(){return n("Back",(function(e){return c(e,Ux.back(),{swap:d(e)})}),!1,!1)}function p(){return Hm({dom:{tag:"div",classes:["tox-spacer"]},behaviours:nu([gd.config({})])})}function h(){return n("Apply",(function(e){return c(e,Ux.apply(),{swap:d(e)})}),!0,!0)}function v(e,t){return function(n){return e(n,t)}}function y(e,t){var n,r=t;s(n=e),c(n,Ux.tempTransform(),{transform:r}),l(n)}function b(e,n,r,o,i){var a=J_.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}),c=J_.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),s=J_.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return Hm(J_.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:i,getInitialValue:u({x:o})},components:[a,c,s],sliderBehaviours:nu([Ig.config({})]),onChoose:n}))}function w(e,t,n,r,a){var c,u,s,l,d,m,p=(c=e,u=t,s=n,l=r,d=a,[g(),(m=u,b(c,(function(e,t,n){f(e,v(m,n.x/100))}),s,l,d)),h()]);return lb.sketch({dom:x,components:p.map((function(e){return e.asSpec()})),containerBehaviours:nu([mm("image-tools-filter-panel-buttons-events",[Co(Gx.disable(),(function(e,t){o(p,e)})),Co(Gx.enable(),(function(e,t){i(p,e)}))])])})}function k(e){return b(e,(function(e,t,n){var r=j.getOpt(e),o=U.getOpt(e),i=V.getOpt(e);r.each((function(t){o.each((function(n){i.each((function(r){var o,i,a,c=Ef.getValue(t).x/100,u=Ef.getValue(r).x/100,s=Ef.getValue(n).x/100,l=(o=c,i=u,a=s,function(e){return Tk(e,(t=i,n=a,Sk(Ck(),[zk(o,0,2),0,0,0,0,0,zk(t,0,2),0,0,0,0,0,zk(n,0,2),0,0,0,0,0,1,0,0,0,0,0,1])));var t,n});f(e,l)}))}))}))}),0,100,200)}function _(e,t,n){return function(r){c(r,Ux.swap(),{transform:t,swap:function(){Y.getOpt(r).each((function(t){Bg.set(t,[e]),n(t)}))}})}}var x={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},z=a,C=[g(),p(),n("Apply",(function(t){m(t,(function(t){var n,r,o,i,a,c,u,s,l,f=e.getRect();return n=f.x,r=f.y,o=f.w,i=f.h,c=n,u=r,s=o,l=i,(a=t).toCanvas().then((function(e){return Rx(e,a.getType(),c,u,s,l)}))})),e.hideCrop()}),!1,!0)],S=lb.sketch({dom:x,components:C.map((function(e){return e.asSpec()})),containerBehaviours:nu([mm("image-tools-crop-buttons-events",[Co(Gx.disable(),(function(e,t){o(C,e)})),Co(Gx.enable(),(function(e,t){i(C,e)}))])])}),T=Hm(r_({name:"size",label:ye.none(),constrain:!0,disabled:!1},t)),O=[g(),p(),T,p(),n("Apply",(function(e){T.getOpt(e).each((function(t){var n,r,o=Ef.getValue(t),i=parseInt(o.width,10),a=parseInt(o.height,10),c=(n=i,r=a,function(e){return o=n,i=r,(t=e).toCanvas().then((function(e){return Ex(e,o,i).then((function(e){return _k(e,t.getType())}))}));var t,o,i});m(e,c)}))}),!1,!0)],E=lb.sketch({dom:x,components:O.map((function(e){return e.asSpec()})),containerBehaviours:nu([mm("image-tools-resize-buttons-events",[Co(Gx.disable(),(function(e,t){o(O,e)})),Co(Gx.enable(),(function(e,t){i(O,e)}))])])}),A=v(Bk,"h"),D=v(Bk,"v"),M=v(Pk,-90),R=v(Pk,90),N=[g(),p(),r("flip-horizontally","Flip horizontally",(function(e){y(e,A)}),!1),r("flip-vertically","Flip vertically",(function(e){y(e,D)}),!1),r("rotate-left","Rotate counterclockwise",(function(e){y(e,M)}),!1),r("rotate-right","Rotate clockwise",(function(e){y(e,R)}),!1),p(),h()],B=lb.sketch({dom:x,components:N.map((function(e){return e.asSpec()})),containerBehaviours:nu([mm("image-tools-fliprotate-buttons-events",[Co(Gx.disable(),(function(e,t){o(N,e)})),Co(Gx.enable(),(function(e,t){i(N,e)}))])])}),P=[g(),p(),h()],L=lb.sketch({dom:x,components:P.map((function(e){return e.asSpec()}))}),I=w("Brightness",Rk,-100,0,100),H=w("Contrast",Nk,-100,0,100),F=w("Gamma",Mk,-100,0,100),j=k("R"),V=k("G"),U=k("B"),q=[g(),j,V,U,h()],W=lb.sketch({dom:x,components:q.map((function(e){return e.asSpec()}))}),$=ye.some(Dk),G=ye.some(Ak),K=[r("crop","Crop",_(S,ye.none(),(function(t){e.showCrop()})),!1),r("resize","Resize",_(E,ye.none(),(function(t){T.getOpt(t).each((function(t){var n=e.getMeasurements(),r=n.width,o=n.height;Ef.setValue(t,{width:r,height:o})}))})),!1),r("orientation","Orientation",_(B,ye.none(),z),!1),r("brightness","Brightness",_(I,ye.none(),z),!1),r("sharpen","Sharpen",_(L,$,z),!1),r("contrast","Contrast",_(H,ye.none(),z),!1),r("color-levels","Color levels",_(W,ye.none(),z),!1),r("gamma","Gamma",_(F,ye.none(),z),!1),r("invert","Invert",_(L,G,z),!1)],X=lb.sketch({dom:x,components:K.map((function(e){return e.asSpec()}))}),Y=Hm(lb.sketch({dom:{tag:"div"},components:[X],containerBehaviours:nu([Bg.config({})])}));return{memContainer:Y,getApplyButton:function(e){return Y.getOpt(e).map((function(e){var t=e.components()[0];return t.components()[t.components().length-1]}))}}}function i_(e){if(v(e.changedTouches))for(var t="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<t.length;n++)e[t[n]]=e.changedTouches[0][t[n]]}function a_(e,t){return{uid:e.uid,dom:e.dom,components:t,behaviours:tl(e.formBehaviours,[Ef.config({store:{mode:"manual",getValue:function(t){return ne(hl(t,e),(function(e,t){return e().bind((function(e){var n=ud.getCurrent(e),r=new Error("Cannot find a current component to extract the value from for form part '"+t+"': "+No(e.element));return n.fold((function(){return Ln.error(r)}),Ln.value)})).map(Ef.getValue)}))},setValue:function(t,n){te(n,(function(n,r){ml(t,e,r).each((function(e){ud.getCurrent(e).each((function(e){Ef.setValue(e,n)}))}))}))}}})]),apis:{getField:function(t,n){return ml(t,e,n).bind(ud.getCurrent)}}}}function c_(){return ud.config({find:ye.some})}function u_(e){return t=Mo,n=Ro,sk(e,(function(e){return t(e.element)}),(function(e,t){return n(e.element,t)}));var t,n}(Hb=Ib=Ib||{})[Hb.HighlightFirst=0]="HighlightFirst",Hb[Hb.HighlightNone=1]="HighlightNone";var s_,l_,f_,d_,m_=function(e,t){return e.getSystem().getByUid(t.uid+"-"+Zb()).map((function(e){return function(){return Ln.value(e)}})).getOrThunk((function(){return t.lazySink.fold((function(){return function(){return Ln.error(new Error("No internal sink is specified, nor could an external sink be found"))}}),(function(t){return function(){return t(e)}}))}))},g_=u([mr("dom"),mr("fetch"),Ja("onOpen"),Za("onExecute"),Or("getHotspot",ye.some),Or("getAnchorOverrides",u({})),Vu(),Qs("dropdownBehaviours",[jg,Jb,Rg,Ig]),mr("toggleClass"),Or("eventOrder",{}),kr("lazySink"),Or("matchWidth",!1),Or("useMinWidth",!1),kr("role")].concat(aw())),p_=u([Jf({schema:[Ka()],name:"menu",defaults:function(e){return{onExecute:e.onExecute}}}),Qb()]),h_=zl({name:"Dropdown",configFields:g_(),partFields:p_(),factory:function(e,t,n,r){function o(e){yf.getState(e).each((function(e){ip.highlightPrimary(e)}))}function i(e,t){return wo(e),ye.some(!0)}var c,u={expand:function(t){jg.isOn(t)||nw(e,s,t,r,a,Ib.HighlightNone).get(a)},open:function(t){jg.isOn(t)||nw(e,s,t,r,a,Ib.HighlightFirst).get(a)},isOpen:jg.isOn,close:function(t){jg.isOn(t)&&nw(e,s,t,r,a,Ib.HighlightFirst).get(a)},repositionMenus:function(e){jg.isOn(e)&&iw(e)}};return{uid:e.uid,dom:e.dom,components:t,behaviours:tl(e.dropdownBehaviours,[jg.config({toggleClass:e.toggleClass,aria:{mode:"expanded"}}),Jb.config({others:{sandbox:function(t){return ow(e,t,{onOpen:function(){return jg.on(t)},onClose:function(){return jg.off(t)}})}}}),Rg.config({mode:"special",onSpace:i,onEnter:i,onDown:function(e,t){return h_.isOpen(e)?o(Jb.getCoupled(e,"sandbox")):h_.open(e),ye.some(!0)},onEscape:function(e,t){return h_.isOpen(e)?(h_.close(e),ye.some(!0)):ye.none()}}),Ig.config({})]),events:_m(ye.some((function(t){nw(e,s,t,r,o,Ib.HighlightFirst).get(a)}))),eventOrder:S(S({},e.eventOrder),((c={})[Bi()]=["disabling","toggling","alloy.base.behaviour"],c)),apis:u,domModification:{attributes:S(S({"aria-haspopup":"true"},e.role.fold((function(){return{}}),(function(e){return{role:e}}))),"button"===e.dom.tag?{type:ae(e.dom,"attributes").bind((function(e){return ae(e,"type")})).getOr("button")}:{})}}},apis:{open:function(e,t){return e.open(t)},expand:function(e,t){return e.expand(t)},close:function(e,t){return e.close(t)},isOpen:function(e,t){return e.isOpen(t)},repositionMenus:function(e,t){return e.repositionMenus(t)}}}),v_=kc({fields:[],name:"unselecting",active:Object.freeze({__proto__:null,events:function(){return ra([xo(Ei(),z)])},exhibit:function(){return Vo({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})}})}),y_=Bo("color-input-change"),b_=Bo("color-swatch-change"),w_=Bo("color-picker-cancel"),k_=Zf({schema:[mr("dom")],name:"label"}),__=cw("top-left"),x_=cw("top"),z_=cw("top-right"),C_=cw("right"),S_=cw("bottom-right"),T_=cw("bottom"),O_=cw("bottom-left"),E_=[k_,cw("left"),C_,x_,T_,__,z_,O_,S_,Yf({name:"thumb",defaults:u({dom:{styles:{position:"absolute"}}}),overrides:function(e){return{events:ra([Oo(li(),e,"spectrum"),Oo(fi(),e,"spectrum"),Oo(di(),e,"spectrum"),Oo(gi(),e,"spectrum"),Oo(pi(),e,"spectrum"),Oo(vi(),e,"spectrum")])}}}),Yf({schema:[uo("mouseIsDown",(function(){return Lr(!1)}))],name:"spectrum",overrides:function(e){function t(t,r){return n.getValueFromEvent(r).map((function(r){return n.setValueFrom(t,e,r)}))}var n=e.model.manager;return{behaviours:nu([Rg.config({mode:"special",onLeft:function(t){return n.onLeft(t,e)},onRight:function(t){return n.onRight(t,e)},onUp:function(t){return n.onUp(t,e)},onDown:function(t){return n.onDown(t,e)}}),Ig.config({})]),events:ra([Co(li(),t),Co(fi(),t),Co(gi(),t),Co(pi(),(function(n,r){e.mouseIsDown.get()&&t(n,r)}))])}}})],A_=u("slider.change.value"),D_="left",M_=Yw(-1),R_=Yw(1),N_=ye.none,B_=ye.none,P_={"top-left":ye.none(),top:ye.none(),"top-right":ye.none(),right:ye.some((function(e,t){Rw(e,{x:pw(t)})})),"bottom-right":ye.none(),bottom:ye.none(),"bottom-left":ye.none(),left:ye.some((function(e,t){Rw(e,{x:fw(t)})}))},L_=Object.freeze({__proto__:null,setValueFrom:function(e,t,n){var r=Xw(e,t,n);return Kw(e,{x:r}),r},setToMin:function(e,t){Kw(e,{x:sw(t)})},setToMax:function(e,t){Kw(e,{x:mw(t)})},findValueOfOffset:Xw,getValueFromEvent:function(e){return uw(e).map((function(e){return e.left}))},findPositionOfValue:Jw,setPositionFromValue:function(e,t,n,r){var o=Dw(n),i=Jw(e,r.getSpectrum(e),o.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=Ct(t.element)/2;dt(t.element,"left",i-a+"px")},onLeft:M_,onRight:R_,onUp:N_,onDown:B_,edgeActions:P_}),I_=ye.none,H_=ye.none,F_=ek(-1),j_=ek(1),V_={"top-left":ye.none(),top:ye.some((function(e,t){Rw(e,{y:dw(t)})})),"top-right":ye.none(),right:ye.none(),"bottom-right":ye.none(),bottom:ye.some((function(e,t){Rw(e,{y:hw(t)})})),"bottom-left":ye.none(),left:ye.none()},U_=Object.freeze({__proto__:null,setValueFrom:function(e,t,n){var r=Qw(e,t,n);return Zw(e,{y:r}),r},setToMin:function(e,t){Zw(e,{y:lw(t)})},setToMax:function(e,t){Zw(e,{y:gw(t)})},findValueOfOffset:Qw,getValueFromEvent:function(e){return uw(e).map((function(e){return e.top}))},findPositionOfValue:tk,setPositionFromValue:function(e,t,n,r){var o=Dw(n),i=tk(e,r.getSpectrum(e),o.y,r.getTopEdge(e),r.getBottomEdge(e),n),a=kt(t.element)/2;dt(t.element,"top",i-a+"px")},onLeft:I_,onRight:H_,onUp:F_,onDown:j_,edgeActions:V_}),q_=uw,W_=ok(-1,!1),$_=ok(1,!1),G_=ok(-1,!0),K_=ok(1,!0),X_={"top-left":ye.some((function(e,t){Rw(e,Mw(fw(t),dw(t)))})),top:ye.some((function(e,t){Rw(e,Mw(ww(t),dw(t)))})),"top-right":ye.some((function(e,t){Rw(e,Mw(pw(t),dw(t)))})),right:ye.some((function(e,t){Rw(e,Mw(pw(t),kw(t)))})),"bottom-right":ye.some((function(e,t){Rw(e,Mw(pw(t),hw(t)))})),bottom:ye.some((function(e,t){Rw(e,Mw(ww(t),hw(t)))})),"bottom-left":ye.some((function(e,t){Rw(e,Mw(fw(t),hw(t)))})),left:ye.some((function(e,t){Rw(e,Mw(fw(t),kw(t)))}))},Y_=Object.freeze({__proto__:null,setValueFrom:function(e,t,n){var r=rk(Xw(e,t,n.left),Qw(e,t,n.top));return nk(e,r),r},setToMin:function(e,t){nk(e,rk(sw(t),lw(t)))},setToMax:function(e,t){nk(e,rk(mw(t),gw(t)))},getValueFromEvent:q_,setPositionFromValue:function(e,t,n,r){var o=Dw(n),i=Jw(e,r.getSpectrum(e),o.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=tk(e,r.getSpectrum(e),o.y,r.getTopEdge(e),r.getBottomEdge(e),n),c=Ct(t.element)/2,u=kt(t.element)/2;dt(t.element,"left",i-c+"px"),dt(t.element,"top",a-u+"px")},onLeft:W_,onRight:$_,onUp:G_,onDown:K_,edgeActions:X_}),J_=zl({name:"Slider",configFields:[Or("stepSize",1),Or("onChange",a),Or("onChoose",a),Or("onInit",a),Or("onDragStart",a),Or("onDragEnd",a),Or("snapToGrid",!1),Or("rounded",!0),kr("snapStart"),gr("model",fr("mode",{x:[Or("minX",0),Or("maxX",100),uo("value",(function(e){return Lr(e.mode.minX)})),mr("getInitialValue"),tc("manager",L_)],y:[Or("minY",0),Or("maxY",100),uo("value",(function(e){return Lr(e.mode.minY)})),mr("getInitialValue"),tc("manager",U_)],xy:[Or("minX",0),Or("maxX",100),Or("minY",0),Or("maxY",100),uo("value",(function(e){return Lr({x:e.mode.minX,y:e.mode.minY})})),mr("getInitialValue"),tc("manager",Y_)]})),Qs("sliderBehaviours",[Rg,Ef]),uo("mouseIsDown",(function(){return Lr(!1)}))],partFields:E_,factory:function(e,t,n,r){function o(t){return gl(t,e,"thumb")}function i(t){return gl(t,e,"spectrum")}function a(t){return ml(t,e,"left-edge")}function c(t){return ml(t,e,"right-edge")}function u(t){return ml(t,e,"top-edge")}function s(t){return ml(t,e,"bottom-edge")}function l(t,n){v.setPositionFromValue(t,n,e,{getLeftEdge:a,getRightEdge:c,getTopEdge:u,getBottomEdge:s,getSpectrum:i})}function f(e,t){h.value.set(t),l(e,o(e))}function d(t){var n=e.mouseIsDown.get();e.mouseIsDown.set(!1),n&&ml(t,e,"thumb").each((function(n){var r=h.value.get();e.onChoose(t,n,r)}))}function m(t,n){n.stop(),e.mouseIsDown.set(!0),e.onDragStart(t,o(t))}function g(t,n){n.stop(),e.onDragEnd(t,o(t)),d(t)}var p,h=e.model,v=h.manager;return{uid:e.uid,dom:e.dom,components:t,behaviours:tl(e.sliderBehaviours,[Rg.config({mode:"special",focusIn:function(t){return ml(t,e,"spectrum").map(Rg.focusIn).map(z)}}),Ef.config({store:{mode:"manual",getValue:function(e){return h.value.get()}}}),au.config({channels:((p={})[kf()]={onReceive:d},p)})]),events:ra([Co(A_(),(function(t,n){!function(t,n){f(t,n);var r=o(t);e.onChange(t,r,n),ye.some(!0)}(t,n.event.value)})),oa((function(t,n){var r=h.getInitialValue();h.value.set(r);var a=o(t);l(t,a);var c=i(t);e.onInit(t,a,c,h.value.get())})),Co(li(),m),Co(di(),g),Co(gi(),m),Co(vi(),g)]),apis:{resetToMin:function(t){v.setToMin(t,e)},resetToMax:function(t){v.setToMax(t,e)},setValue:f,refresh:l},domModification:{styles:{position:"relative"}}}},apis:{setValue:function(e,t,n){e.setValue(t,n)},resetToMin:function(e,t){e.resetToMin(t)},resetToMax:function(e,t){e.resetToMax(t)},refresh:function(e,t){e.refresh(t)}}}),Z_=Bo("rgb-hex-update"),Q_=Bo("slider-update"),ex=Bo("palette-update"),tx=[Qs("formBehaviours",[Ef])],nx={getField:Fo((function(e,t,n){return e.getField(t,n)})),sketch:function(e){var t,n={field:function(e,n){return t.push(e),ul("form",ik(e),n)},record:u(t=[])},r=e(n),o=P(n.record(),(function(e){return Yf({name:e,pname:ik(e)})}));return _l("form",tx,o,a_,r)}},rx=Bo("valid-input"),ox=Bo("invalid-input"),ix=Bo("validating-input"),ax="colorcustom.rgb.",cx=function(e){return ud.config({find:e.getOpt})},ux=function(e){return ud.config({find:function(t){return Je(t.element,e).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))}})},sx={"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"},lx=tinymce.util.Tools.resolve("tinymce.Resource"),fx=tinymce.util.Tools.resolve("tinymce.util.Tools"),dx=Jr([Or("preprocess",s),Or("postprocess",s)]),mx=function(e,t){var n=lr("RepresentingConfigs.memento processors",dx,t);return Ef.config({store:{mode:"manual",getValue:function(t){var r=e.get(t),o=Ef.getValue(r);return n.postprocess(o)},setValue:function(t,r){var o=n.preprocess(r),i=e.get(t);Ef.setValue(i,o)}}})},gx=sk,px=function(e){return Ef.config({store:{mode:"memory",initialValue:e}})},hx=Bo("alloy-fake-before-tabstop"),vx=Bo("alloy-fake-after-tabstop"),yx=!(fn().browser.isIE()||fn().browser.isEdge()),bx=function(e){return e.getContext("2d")},wx=function(e,t,n){return e.width=t,e.height=n,e},kx=function(e){URL.revokeObjectURL(e.src)},_x=[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],xx=function(e,t,n){var r=bx(e),o=function(e){for(var t,r,o,i,a=e.data,c=n[0],u=n[1],s=n[2],l=n[3],f=n[4],d=n[5],m=n[6],g=n[7],p=n[8],h=n[9],v=n[10],y=n[11],b=n[12],w=n[13],k=n[14],_=n[15],x=n[16],z=n[17],C=n[18],S=n[19],T=0;T<a.length;T+=4)t=a[T],r=a[T+1],o=a[T+2],i=a[T+3],a[T]=t*c+r*u+o*s+i*l+f,a[T+1]=t*d+r*m+o*g+i*p+h,a[T+2]=t*v+r*y+o*b+i*w+k,a[T+3]=t*_+r*x+o*z+i*C+S;return e}(r.getImageData(0,0,e.width,e.height));return r.putImageData(o,0,0),_k(e,t)},zx=(s_=[-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],function(e){return Tk(e,s_)}),Cx=Ok((function(e,t){return Sk(e,[1,0,0,0,t=zk(255*t,-255,255),0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1])})),Sx=Ok((function(e,t){var n;return t=zk(t,-1,1),Sk(e,[(n=(t*=100)<0?127+t/100*127:127*(0==(n=t%1)?_x[t]:_x[Math.floor(t)]*(1-n)+_x[Math.floor(t)+1]*n)+127)/127,0,0,0,.5*(127-n),0,n/127,0,0,.5*(127-n),0,0,n/127,0,.5*(127-n),0,0,0,1,0,0,0,0,0,1])})),Tx=(l_=[0,-1,0,-1,5,-1,0,-1,0],function(e){return n=l_,(t=e).toCanvas().then((function(e){return r=e,o=t.getType(),i=n,a=bx(r),c=function(e,t,n){for(var r=function(e,t,n){return n<e?e=n:e<t&&(e=t),e},o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=e.data,c=t.data,u=e.width,s=e.height,l=0;l<s;l++)for(var f=0;f<u;f++){for(var d=0,m=0,g=0,p=0;p<o;p++)for(var h=0;h<o;h++){var v=r(f+h-i,0,u-1),y=4*(r(l+p-i,0,s-1)*u+v),b=n[p*o+h];d+=a[y]*b,m+=a[1+y]*b,g+=a[2+y]*b}var w=4*(l*u+f);c[w]=r(d,0,255),c[1+w]=r(m,0,255),c[2+w]=r(g,0,255)}return t}(a.getImageData(0,0,r.width,r.height),a.getImageData(0,0,r.width,r.height),i),a.putImageData(c,0,0),_k(r,o);var r,o,i,a,c}));var t,n}),Ox=(f_=function(e,t){return 255*Math.pow(e/255,1-t)},function(e,t){return e.toCanvas().then((function(n){return function(e,t,n){for(var r=bx(e),o=new Array(256),i=0;i<o.length;i++)o[i]=f_(i,n);var a=function(e,t){for(var n=e.data,r=0;r<n.length;r+=4)n[r]=t[n[r]],n[r+1]=t[n[r+1]],n[r+2]=t[n[r+2]];return e}(r.getImageData(0,0,e.width,e.height),o);return r.putImageData(a,0,0),_k(e,t)}(n,e.getType(),t)}))}),Ex=function(e,t,n){var r=yk(e),o=bk(e),i=t/r,a=n/o,c=!1;(i<.5||2<i)&&(i=i<.5?.5:2,c=!0),(a<.5||2<a)&&(a=a<.5?.5:2,c=!0);var u=Ax(e,i,a);return c?u.then((function(e){return Ex(e,t,n)})):u},Ax=function(e,t,n){return new Fb((function(r){var o=yk(e),i=bk(e),a=Math.floor(o*t),c=Math.floor(i*n),u=hk(a,c);bx(u).drawImage(e,0,0,o,i,0,0,a,c),r(u)}))},Dx=function(e,t,n){var r=(n<0?360+n:n)*Math.PI/180,o=e.width,i=e.height,a=Math.sin(r),c=Math.cos(r),u=Ek(Math.abs(o*c)+Math.abs(i*a)),s=Ek(Math.abs(o*a)+Math.abs(i*c)),l=hk(u,s),f=bx(l);return f.translate(u/2,s/2),f.rotate(r),f.drawImage(e,-o/2,-i/2),_k(l,t)},Mx=function(e,t,n){var r=hk(e.width,e.height),o=bx(r);return"v"===n?(o.scale(1,-1),o.drawImage(e,0,-r.height)):(o.scale(-1,1),o.drawImage(e,-r.width,0)),_k(r,t)},Rx=function(e,t,n,r,o,i){var a=hk(o,i);return bx(a).drawImage(e,-n,-r),_k(a,t)},Nx=Bo("toolbar.button.execute"),Bx=((d_={})[Bi()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],d_),Px=Bo("update-menu-text"),Lx=Bo("update-menu-icon"),Ix={type:"separator"},Hx=function(e,t){var n,r,o;return H((n=f(e)?e.split(" "):e,r=t,0<(o=F(n,(function(e,t){return f(t)?""===t?e:"|"===t?0<e.length&&!Vk(e[e.length-1])?e.concat([Ix]):e:Oe(r,t.toLowerCase())?e.concat([r[t.toLowerCase()]]):e:e.concat([t])}),[])).length&&Vk(o[o.length-1])&&o.pop(),o),(function(e,n){var r,o,i,a,c,u,s=function(e){if(Vk(e))return e;var t=ae(e,"value").getOrThunk((function(){return Bo("generated-menu-item")}));return Gr({value:t},e)}(n),l=(o=t,Oe(r=s,"getSubmenuItems")?(a=o,c=(i=r).getSubmenuItems(),u=Hx(c,a),{item:i,menus:Gr(u.menus,so(i.value,u.items)),expansions:Gr(u.expansions,so(i.value,i.value))}):{item:r,menus:{},expansions:{}});return{menus:Gr(e.menus,l.menus),items:[l.item].concat(e.items),expansions:Gr(e.expansions,l.expansions)}}),{menus:{},expansions:{},items:[]})},Fx=u([Or("field1Name","field1"),Or("field2Name","field2"),Qa("onLockedChange"),Xa(["lockClass"]),Or("locked",!1),Af("coupledFieldBehaviours",[ud,Ef])]),jx=u([Qk("field1","field2"),Qk("field2","field1"),Yf({factory:fp,schema:[mr("dom")],name:"lock",overrides:function(e){return{buttonBehaviours:nu([jg.config({selected:e.locked,toggleClass:e.markers.lockClass,aria:{mode:"pressed"}})])}}})]),Vx=zl({name:"FormCoupledInputs",configFields:Fx(),partFields:jx(),factory:function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:Df(e.coupledFieldBehaviours,[ud.config({find:ye.some}),Ef.config({store:{mode:"manual",getValue:function(t){var n=yl(t,e,["field1","field2"]),r={};return r[e.field1Name]=Ef.getValue(n.field1()),r[e.field2Name]=Ef.getValue(n.field2()),r},setValue:function(t,n){var r=yl(t,e,["field1","field2"]);ce(n,e.field1Name)&&Ef.setValue(r.field1(),n[e.field1Name]),ce(n,e.field2Name)&&Ef.setValue(r.field2(),n[e.field2Name])}}})]),apis:{getField1:function(t){return ml(t,e,"field1")},getField2:function(t){return ml(t,e,"field2")},getLock:function(t){return ml(t,e,"lock")}}}},apis:{getField1:function(e,t){return e.getField1(t)},getField2:function(e,t){return e.getField2(t)},getLock:function(e,t){return e.getLock(t)}}}),Ux={undo:u(Bo("undo")),redo:u(Bo("redo")),zoom:u(Bo("zoom")),back:u(Bo("back")),apply:u(Bo("apply")),swap:u(Bo("swap")),transform:u(Bo("transform")),tempTransform:u(Bo("temp-transform")),transformApply:u(Bo("transform-apply"))},qx=u("save-state"),Wx=u("disable"),$x=u("enable"),Gx={formActionEvent:_b,saveState:qx,disable:Wx,enable:$x},Kx=tinymce.util.Tools.resolve("tinymce.geom.Rect"),Xx=tinymce.util.Tools.resolve("tinymce.util.Observable"),Yx=tinymce.util.Tools.resolve("tinymce.util.VK");function Jx(e,t){function n(e){var n,o,i,a,f,g,v,b,w=e.raw,k=(n=Math.max,o=m.documentElement,i=m.body,a=n(o.scrollWidth,i.scrollWidth),f=n(o.clientWidth,i.clientWidth),g=n(o.offsetWidth,i.offsetWidth),v=n(o.scrollHeight,i.scrollHeight),b=n(o.clientHeight,i.clientHeight),{width:a<g?f:a,height:v<n(o.offsetHeight,i.offsetHeight)?b:v});i_(w),e.prevent(),u=w.button,s=w.screenX,l=w.screenY;var _=pt(h,"cursor");mt(c=Re.fromTag("div",m),{position:"absolute",top:"0",left:"0",width:k.width+"px",height:k.height+"px","z-index":"2147483647",opacity:"0.0001",cursor:_}),On(wn(p),c),d.push(hu(p,"mousemove",r),hu(p,"touchmove",r),hu(p,"mouseup",y),hu(p,"touchend",y)),t.start(w)}function r(e){var n=e.raw;if(i_(n),n.button!==u)return y(e);n.deltaX=n.screenX-s,n.deltaY=n.screenY-l,e.prevent(),t.drag(n)}var o,i,a,c,u,s,l,f=[],d=[],m=null!==(o=t.document)&&void 0!==o?o:document,g=null!==(i=t.root)&&void 0!==i?i:m,p=Re.fromDom(m),h=Re.fromDom(g.getElementById(null!==(a=t.handle)&&void 0!==a?a:e)),y=function(e){i_(e.raw),xe(d,(function(e){return e.unbind()})),d=[],En(c),t.stop&&t.stop(e.raw)};return f.push(hu(h,"mousedown",n),hu(h,"touchstart",n)),{destroy:function(){xe(d.concat(f),(function(e){return e.unbind()})),d=[],f=[],v(c)&&En(c)}}}function Zx(e,t,n,r,o){return Kk({name:e,icon:ye.some(t),disabled:n,tooltip:ye.some(e),primary:!1,borderless:!1},r,o)}function Qx(e,t){t?gd.enable(e):gd.disable(e)}var ez=0,tz=function(e,t,n,r,o){function i(e,t){return{x:t.x-e.x,y:t.y-e.y,w:t.w,h:t.h}}function a(t,r,o,a){var c=r.x+o*t.deltaX,u=r.y+a*t.deltaY,s=Math.max(20,r.w+o*t.deltaW),l=Math.max(20,r.h+a*t.deltaH),f=(e=Kx.clamp({x:c,y:u,w:s,h:l},n,"move"===t.name),i(n,e));y.fire("updateRect",{rect:f}),h(f)}function c(t){u(e=t)}function u(e){function n(e,t){Ba(m,"#"+d+"-"+e).each((function(e){mt(e,{left:t.x+"px",top:t.y+"px",width:Math.max(0,t.w)+"px",height:Math.max(0,t.h)+"px"})}))}xe(g,(function(t){Ba(m,"#"+d+"-"+t.name).each((function(n){mt(n,{left:e.w*t.xMul+e.x+"px",top:e.h*t.yMul+e.y+"px"})}))})),n("top",{x:t.x,y:t.y,w:t.w,h:e.y-t.y}),n("right",{x:e.x+e.w,y:e.y,w:t.w-e.x-e.w+t.x,h:e.h}),n("bottom",{x:t.x,y:e.y+e.h,w:t.w,h:t.h-e.y-e.h+t.y}),n("left",{x:t.x,y:e.y,w:e.x-t.x,h:e.h}),n("move",e)}var s,l,f=[],d="tox-crid-"+ez++,m=Re.fromDom(r),g=[{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"}],p=["top","right","bottom","left"],h=function(e){var t;c((t=n,{x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}))};function v(e){ot(e.target,"aria-grabbed","focus"===e.raw.type?"true":"false")}it(l=Re.fromTag("div"),{id:d,class:"tox-croprect-container",role:"grid","aria-dropeffect":"execute"}),On(m,l),xe(p,(function(e){Ba(m,"#"+d).each((function(t){var n=Re.fromTag("div");it(n,{id:d+"-"+e,class:"tox-croprect-block","data-mce-bogus":"all"}),dt(n,"display","none"),On(t,n)}))})),xe(g,(function(e){Ba(m,"#"+d).each((function(t){var n=Re.fromTag("div");it(n,{id:d+"-"+e.name,"aria-label":e.label,"aria-grabbed":"false","data-mce-bogus":"all",role:"gridcell",tabindex:"-1",title:e.label}),Jo(n,["tox-croprect-handle","tox-croprect-handle-"+e.name]),dt(n,"display","none"),On(t,n)}))})),s=P(g,(function(t){var n;return Jx(d,{document:r.ownerDocument,root:pn(m).dom,handle:d+"-"+t.name,start:function(){n=e},drag:function(e){a(t,n,e.deltaX,e.deltaY)}})})),u(e),f.push(hu(m,"focusin",v),hu(m,"focusout",v),hu(m,"keydown",(function(t){var n;function r(e,t,r,o,i){e.stopPropagation(),e.preventDefault(),a(n,r,o,i)}switch(xe(g,(function(e){if(at(t.target,"id")===d+"-"+e.name)return n=e,!1})),t.raw.keyCode){case Yx.LEFT:r(t,0,e,-10,0);break;case Yx.RIGHT:r(t,0,e,10,0);break;case Yx.UP:r(t,0,e,0,-10);break;case Yx.DOWN:r(t,0,e,0,10);break;case Yx.ENTER:case Yx.SPACEBAR:t.prevent(),o()}})));var y=S(S({},Xx),{toggleVisibility:function(e){var t=O(O([],P(g,(function(e){return"#"+d+"-"+e.name})),!0),P(p,(function(e){return"#"+d+"-"+e})),!0).join(","),n=vs(m,t);xe(n,e?function(e){return yt(e,"display")}:function(e){return dt(e,"display","none")})},setClampRect:function(t){n=t,u(e)},setRect:c,getInnerRect:function(){return i(n,e)},setInnerRect:h,setViewPortRect:function(n){t=n,u(e)},destroy:function(){xe(s,(function(e){return e.destroy()})),s=[],xe(f,(function(e){return e.unbind()})),f=[]}});return y};function nz(e){var t,n,r,o,i=Lr(e),c=pu(),u=(n=-1,{data:t=[],add:function(e){var r=t.splice(++n);return t.push(e),{state:e,removed:r}},undo:function(){if(r())return t[--n]},redo:function(){if(o())return t[++n]},canUndo:r=function(){return 0<n},canRedo:o=function(){return-1!==n&&n<t.length-1}});function s(e){i.set(e)}function l(e){URL.revokeObjectURL(e.url)}function f(e){var t=d(e);s(t);var n=u.add(t).removed;return fx.each(n,l),t.url}function d(e){return{blob:e,url:URL.createObjectURL(e)}}function m(){c.on(l),c.clear()}return u.add(e),{getBlobState:function(){return i.get()},setBlobState:s,addBlobState:f,getTempState:function(){return c.get().getOrThunk(i.get)},updateTempState:function(e){var t=d(e);return m(),c.set(t),t.url},addTempState:function(e){var t=d(e);return c.set(t),t.url},applyTempState:function(e){return c.get().fold(a,(function(t){f(t.blob),e()}))},destroyTempState:m,undo:function(){var e=u.undo();return s(e),e.url},redo:function(){var e=u.redo();return s(e),e.url},getHistoryStates:function(){return{undoEnabled:u.canUndo(),redoEnabled:u.canRedo()}}}}function rz(e,t){function n(e){var t=w.getHistoryStates();z.updateButtonUndoStates(e,t.undoEnabled,t.redoEnabled),bo(e,Gx.formActionEvent,{name:Gx.saveState(),value:t.undoEnabled})}function r(e){return e.toBlob()}function o(e){bo(e,Gx.formActionEvent,{name:Gx.disable(),value:{}})}function i(e,t,i,a,c){o(e),xk(t).then(i).then(r).then(a).then((function(t){return _(e,t)})).then((function(){n(e),c(),k(e)})).catch((function(t){console.log(t),e.getSystem().isConnected()&&k(e)}))}function c(e,t,n){i(e,w.getBlobState().blob,t,(function(e){return w.updateTempState(e)}),n)}function u(e){var t=w.getBlobState().url;return w.destroyTempState(),n(e),t}var s,l,f,d,m,g,p,h,v,y,b,w=nz(e.currentState),k=function(e){C.getApplyButton(e).each((function(e){gd.enable(e)})),bo(e,Gx.formActionEvent,{name:Gx.enable(),value:{}})},_=function(e,t){return o(e),x.updateSrc(e,t)},x=(d=e.currentState.url,g=Hm({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),p=Lr(1),m=mu(),h=S(S({},m),{run:function(e){return m.get().each(e)}}),v=Lr({x:0,y:0,w:1,h:1}),y=Lr({x:0,y:0,w:1,h:1}),{memContainer:b=Hm(lb.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[g.asSpec(),{dom:{tag:"img",attributes:{src:d}}},{dom:{tag:"div"},behaviours:nu([mm("image-panel-crop-events",[oa((function(e){b.getOpt(e).each((function(e){var t=e.element.dom,n=tz({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,a);n.toggleVisibility(!1),n.on("updateRect",(function(e){var t=e.rect,n=p.get(),r={x:Math.round(t.x/n),y:Math.round(t.y/n),w:Math.round(t.w/n),h:Math.round(t.h/n)};v.set(r)})),h.set(n)}))})),ia((function(){h.clear()}))])])}],containerBehaviours:nu([Bg.config({}),mm("image-panel-events",[oa((function(e){O(e,d)}))])])})),updateSrc:O,zoom:function(e,t){var n=p.get(),r=0<t?Math.min(2,n+.1):Math.max(.1,n-.1);p.set(r),b.getOpt(e).each((function(e){var t=e.components()[1].element;T(e,t)}))},showCrop:function(){h.run((function(e){e.toggleVisibility(!0)}))},hideCrop:function(){h.run((function(e){e.toggleVisibility(!1)}))},getRect:function(){return v.get()},getMeasurements:function(){var e=y.get();return{width:e.w,height:e.h}}}),z=(l=Hm(Zx("Undo","undo",!0,(function(e){bo(e,Ux.undo(),{direction:1})}),s=t)),f=Hm(Zx("Redo","redo",!0,(function(e){bo(e,Ux.redo(),{direction:1})}),s)),{container:lb.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[l.asSpec(),f.asSpec(),Zx("Zoom in","zoom-in",!1,(function(e){bo(e,Ux.zoom(),{direction:1})}),s),Zx("Zoom out","zoom-out",!1,(function(e){bo(e,Ux.zoom(),{direction:-1})}),s)]}),updateButtonUndoStates:function(e,t,n){l.getOpt(e).each((function(e){Qx(e,t)})),f.getOpt(e).each((function(e){Qx(e,n)}))}}),C=o_(x,t);function T(e,t){b.getOpt(e).each((function(e){var n=p.get(),r=Ct(e.element),o=kt(e.element),i=t.dom.naturalWidth*n,a=t.dom.naturalHeight*n,c=Math.max(0,r/2-i/2),u=Math.max(0,o/2-a/2),s={left:c.toString()+"px",top:u.toString()+"px",width:i.toString()+"px",height:a.toString()+"px",position:"absolute"};mt(t,s),g.getOpt(e).each((function(e){mt(e.element,s)})),h.run((function(e){var t=v.get();e.setRect({x:t.x*n+c,y:t.y*n+u,w:t.w*n,h:t.h*n}),e.setClampRect({x:c,y:u,w:i,h:a}),e.setViewPortRect({x:0,y:0,w:r,h:o})}))}))}function O(e,t){var n,r=Re.fromTag("img");return ot(r,"src",t),n=r.dom,new Mp((function(e){var t=function(){n.removeEventListener("load",t),e(n)};n.complete?e(n):n.addEventListener("load",t)})).then((function(){e.getSystem().isConnected()&&b.getOpt(e).map((function(e){var t=Sa({element:r});Bg.replaceAt(e,1,ye.some(t));var n=y.get(),o={x:0,y:0,w:r.dom.naturalWidth,h:r.dom.naturalHeight};y.set(o);var i,a=Kx.inflate(o,-20,-20);v.set(a),n.w===o.w&&n.h===o.h||(i=r,b.getOpt(e).each((function(e){var t=Ct(e.element),n=kt(e.element),r=i.dom.naturalWidth,o=i.dom.naturalHeight,a=Math.min(t/r,n/o);1<=a?p.set(1):p.set(a)}))),T(e,r)}))}))}return{dom:{tag:"div",attributes:{role:"presentation"}},components:[C.memContainer.asSpec(),x.memContainer.asSpec(),z.container],behaviours:nu([Ef.config({store:{mode:"manual",getValue:function(){return w.getBlobState()}}}),mm("image-tools-events",[Co(Ux.undo(),(function(e,t){var r=w.undo();_(e,r).then((function(t){k(e),n(e)}))})),Co(Ux.redo(),(function(e,t){var r=w.redo();_(e,r).then((function(t){k(e),n(e)}))})),Co(Ux.zoom(),(function(e,t){var n=t.event.direction;x.zoom(e,n)})),Co(Ux.back(),(function(e,t){var n,r=u(n=e);_(n,r).then((function(e){k(n)})),(0,t.event.swap)(),x.hideCrop()})),Co(Ux.apply(),(function(e,t){w.applyTempState((function(){u(e),(0,t.event.swap)()}))})),Co(Ux.transform(),(function(e,t){return c(e,t.event.transform,a)})),Co(Ux.tempTransform(),(function(e,t){var n=t.event.transform;i(e,w.getTempState().blob,n,(function(e){return w.addTempState(e)}),a)})),Co(Ux.transformApply(),(function(e,t){var n=e,r=t.event.transform,o=t.event.swap,a=w.getBlobState().blob;i(n,a,r,(function(e){var t=w.addBlobState(e);return u(n),t}),o)})),Co(Ux.swap(),(function(e,t){z.updateButtonUndoStates(e,!1,!1);var n=t.event.transform,r=t.event.swap;n.fold((function(){r()}),(function(t){c(e,t,r)}))}))]),c_()])}}function oz(e){return!Oe(e,"items")}function iz(e,t){function n(e){return{dom:{tag:"td",innerHtml:t.translate(e)}}}return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:P(e.header,(function(e){return{dom:{tag:"th",innerHtml:t.translate(e)}}}))}]},{dom:{tag:"tbody"},components:P(e.cells,(function(e){return{dom:{tag:"tr"},components:P(e,n)}}))}],behaviours:nu([pb.config({}),Ig.config({})])}}function az(e,t){var n=e.label.map((function(e){return rb(e,t)})),r=[gd.config({disabled:function(){return e.disabled||t.isDisabled()}}),pv(),Rg.config({mode:"execution",useEnter:!0!==e.multiline,useControlEnter:!0===e.multiline,execute:function(e){return yo(e,xb),ye.some(!0)}}),mm("textfield-change",[Co(xi(),(function(t,n){bo(t,bb,{name:e.name})})),Co(Ri(),(function(t,n){bo(t,bb,{name:e.name})}))]),pb.config({})],o=e.validation.map((function(e){return Xb.config({getRoot:function(e){return Ke(e.element)},invalidClass:"tox-invalid",validator:{validate:function(t){var n=Ef.getValue(t),r=e.validator(n);return Wb(!0===r?Ln.value(n):Ln.error(r))},validateOnLoad:e.validateOnLoad}})})).toArray(),i=e.placeholder.fold(u({}),(function(e){return{placeholder:t.translate(e)}})),a=e.inputMode.fold(u({}),(function(e){return{inputmode:e}})),c=S(S({},i),a);return nb(n,mb.parts.field({tag:!0===e.multiline?"textarea":"input",inputAttributes:c,inputClasses:[e.classname],inputBehaviours:nu(U([r,o])),selectOnFocus:!1,factory:Eb}),(e.flex?["tox-form__group--stretched"]:[]).concat(e.maximized?["tox-form-group--maximize"]:[]),[gd.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){mb.getField(e).each(gd.disable)},onEnabled:function(e){mb.getField(e).each(gd.enable)}}),pv()])}function cz(e){var t=Lr(null);return _a({readState:function(){return{timer:null!==t.get()?"set":"unset"}},setTimer:function(e){t.set(e)},cancel:function(){var e=t.get();null!==e&&e.cancel()}})}function uz(e,t,n){var r=Ef.getValue(n);Ef.setValue(t,r),sS(t)}function sz(e,t){var n=e.element,r=Qo(n),o=n.dom;"number"!==at(n,"type")&&t(o,r)}function lz(e){return{type:"menuitem",value:e.url,text:e.title,meta:{attach:e.attach},onAction:a}}function fz(e,t){return{type:"menuitem",value:t,text:e,meta:{attach:void 0},onAction:a}}function dz(e,t){return n=e,P(I(t,(function(e){return e.type===n})),lz);var n}function mz(e,t){var n=e.toLowerCase();return I(t,(function(e){return de((void 0!==e.meta&&void 0!==e.meta.text?e.meta:e).text.toLowerCase(),n)||de(e.value.toLowerCase(),n)}))}function gz(e,t,n){function r(t){var r=Ef.getValue(t);n.addToHistory(r.value,e.filetype)}var o,i,c,u,s=t.shared.providers,l=mb.parts.field({factory:mS,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":vS,type:"url"},minChars:0,responseTime:0,fetch:function(r){var o,i,a,c,u=Uk((o=e.filetype,i=n,a=Ef.getValue(r),c=void 0!==a.meta.text?a.meta.text:a.value,i.getLinkInformation().fold((function(){return[]}),(function(e){var t=mz(c,P(i.getHistory(o),(function(e){return fz(e,e)})));return"file"===o?F([t,mz(c,dz("header",e.targets)),mz(c,U([ye.from(e.anchorTop).map((function(e){return fz("<top>",e)})).toArray(),dz("anchor",e.targets),ye.from(e.anchorBottom).map((function(e){return fz("<bottom>",e)})).toArray()]))],(function(e,t){return 0===e.length||0===t.length?e.concat(t):e.concat(hS,t)}),[]):t}))),_h.BUBBLE_TO_SANDBOX,t,!1);return Wb(u)},getHotspot:function(e){return h.getOpt(e)},onSetValue:function(e,t){e.hasConfigured(Xb)&&Xb.run(e).get(a)},typeaheadBehaviours:nu(U([n.getValidationHandler().map((function(t){return Xb.config({getRoot:function(e){return Ke(e.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(e,t){d.getOpt(e).each((function(e){ot(e.element,"title",s.translate(t))}))}},validator:{validate:function(n){var r=Ef.getValue(n);return pS((function(n){t({type:e.filetype,url:r.value},(function(e){var t,r;"invalid"===e.status?(t=Ln.error(e.message),n(t)):(r=Ln.value(e.message),n(r))}))}))},validateOnLoad:!1}})})).toArray(),[gd.config({disabled:function(){return e.disabled||s.isDisabled()}}),pb.config({}),mm("urlinput-events",U(["file"===e.filetype?[Co(xi(),(function(t){bo(t,bb,{name:e.name})}))]:[],[Co(zi(),(function(t){bo(t,bb,{name:e.name}),r(t)})),Co(Ri(),(function(t){bo(t,bb,{name:e.name}),r(t)}))]]))]])),eventOrder:((o={})[xi()]=["streaming","urlinput-events","invalidating"],o),model:{getDisplayText:function(e){return e.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:t.shared.getSink,parts:{menu:Qp(0,0,"normal")},onExecute:function(e,t,n){bo(t,xb,{})},onItemExecute:function(t,n,o,i){r(t),bo(t,bb,{name:e.name})}}),f=e.label.map((function(e){return rb(e,s)})),d=Hm((i="invalid",c=ye.some(vS),$m("warning",{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+i],attributes:S({title:s.translate(u=void 0===u?i:u),"aria-live":"polite"},c.fold((function(){return{}}),(function(e){return{id:e}})))},s.icons))),m=Hm({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[d.asSpec()]}),g=n.getUrlPicker(e.filetype),p=Bo("browser.url.event"),h=Hm({dom:{tag:"div",classes:["tox-control-wrap"]},components:[l,m.asSpec()],behaviours:nu([gd.config({disabled:function(){return e.disabled||s.isDisabled()}})])}),v=Hm(Yk({name:e.name,icon:ye.some("browse"),text:e.label.getOr(""),disabled:e.disabled,primary:!1,borderless:!0},(function(e){return yo(e,p)}),s,[],["tox-browse-url"]));return mb.sketch({dom:yb([]),components:f.toArray().concat([{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:U([[h.asSpec()],g.map((function(){return v.asSpec()})).toArray()])}]),fieldBehaviours:nu([gd.config({disabled:function(){return e.disabled||s.isDisabled()},onDisabled:function(e){mb.getField(e).each(gd.disable),v.getOpt(e).each(gd.disable)},onEnabled:function(e){mb.getField(e).each(gd.enable),v.getOpt(e).each(gd.enable)}}),pv(),mm("url-input-events",[Co(p,(function(t){ud.getCurrent(t).each((function(n){var r=Ef.getValue(n),o=S({fieldname:e.name},r);g.each((function(r){r(o).get((function(r){Ef.setValue(n,r),bo(t,bb,{name:e.name})}))}))}))}))])])})}function pz(e){return function(t,n,r){return ae(n,"name").fold((function(){return e(n,r)}),(function(o){return t.field(o,e(n,r))}))}}function hz(e,t,n){var r=Gr(n,{shared:{interpreter:function(t){return wS(e,t,r)}}});return wS(e,t,r)}function vz(e,t,n){function r(){return Re.fromDom(e.getContentAreaContainer())}function o(){return p||!n()}var i,a,c,u,s,l,f,d,m,g,p=sv(e);return{inlineDialog:(f=r,d=t,m=o,g={maxHeightFunction:Pu()},function(){return m()?{type:"node",root:tt(f()),node:ye.from(f()),bubble:xu(12,12,kS),layouts:{onRtl:function(){return[Mm]},onLtr:function(){return[Dm]}},overrides:g}:{type:"hotspot",hotspot:d(),bubble:xu(-12,12,kS),layouts:{onRtl:function(){return[Gc]},onLtr:function(){return[Kc]}},overrides:g}}),banner:(u=r,s=t,l=o,function(){return l()?{type:"node",root:tt(u()),node:ye.from(u()),layouts:{onRtl:function(){return[up]},onLtr:function(){return[up]}}}:{type:"hotspot",hotspot:s(),layouts:{onRtl:function(){return[Zc]},onLtr:function(){return[Zc]}}}}),cursor:(a=e,function(){return{type:"selection",root:c(),getSelection:function(){var e=a.selection.getRng();return ye.some(ms.range(Re.fromDom(e.startContainer),e.startOffset,Re.fromDom(e.endContainer),e.endOffset))}}}),node:(i=c=function(){return Re.fromDom(e.getBody())},function(e){return{type:"node",root:i(),node:e}})}}function yz(e){return ye.from(e.getParam("style_formats")).filter(m).map((function(t){var n,r,o=(n=e,r=xS(t),n.formatter?i(r.customFormats):n.on("init",(function(){i(r.customFormats)})),r.formats);function i(e){xe(e,(function(e){n.formatter.has(e.name)||n.formatter.register(e.name,e.format)}))}return e.getParam("style_formats_merge",!1,"boolean")?_S.concat(o):o})).getOr(_S)}function bz(e,t,n){var r={type:"formatter",isSelected:t(e.format),getStylePreview:n(e.format)};return Gr(e,r)}function wz(e,t,n,r){var o=function(t){return P(t,(function(t){var i,a,c,s,l,d=Ce(t);if(ce(t,"items")){var m=o(t.items);return Gr(Gr(t,{type:"submenu"}),{getStyleItems:u(m)})}return ce(t,"format")?bz(t,n,r):1===d.length&&_e(d,"title")?Gr(t,{type:"separator"}):(s={type:"formatter",format:c="custom-"+(a=f((i=t).name)?i.name:Bo(i.title)),isSelected:n(c),getStylePreview:r(c)},l=Gr(i,s),e.formatter.register(a,l),l)}))};return o(t)}function kz(e){return function(t){if(v(n=t)&&1===n.nodeType){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}var n;return!1}}function _z(e,t,n,r,o){return{type:e,title:t,url:n,level:r,attach:o}}function xz(e){return e.innerText||e.textContent}function zz(e){return e&&"A"===e.nodeName&&void 0!==(e.id||e.name)&&YC(e)}function Cz(e){return e&&/^(H[1-6])$/.test(e.nodeName)}function Sz(e){return Cz(e)&&YC(e)}function Tz(e){var t,n=e.id||Bo("h");return _z("header",xz(e),"#"+n,Cz(t=e)?parseInt(t.nodeName.substr(1),10):0,(function(){e.id=n}))}function Oz(e){var t=e.id||e.name;return _z("anchor",xz(e)||"#"+t,"#"+t,0,a)}function Ez(e){return 0<zS(e.title).length}function Az(e){return f(e)&&/^https?/.test(e)}function Dz(e){return d(e)&&oe(e,(function(e){return!(m(t=e)&&t.length<=5&&W(t,Az));var t})).isNone()}function Mz(){var e,t=dy.getItem(OS);if(null===t)return{};try{e=JSON.parse(t)}catch(e){if(e instanceof SyntaxError)return console.log("Local storage "+OS+" was not valid JSON",e),{};throw e}return Dz(e)?e:(console.log("Local storage "+OS+" was not valid format",e),{})}function Rz(e){return ae(Mz(),e).getOr([])}function Nz(e,t){var n,r;Az(e)&&(r=I(ae(n=Mz(),t).getOr([]),(function(t){return t!==e})),n[t]=[e].concat(r).slice(0,5),function(e){if(!Dz(e))throw new Error("Bad format for history:\n"+JSON.stringify(e));dy.setItem(OS,JSON.stringify(e))}(n))}function Bz(e){return!!e}function Pz(e){return ne(fx.makeMap(e,/[, ]/),Bz)}function Lz(e){return ye.from(e.getParam("file_picker_callback")).filter(y)}function Iz(e){return ye.from(e).filter(f).getOrUndefined()}function Hz(e){return{getHistory:Rz,addToHistory:Nz,getLinkInformation:function(){return!1===(t=e).getParam("typeahead_urls")?ye.none():ye.some({targets:TS(t.getBody()),anchorTop:Iz(t.getParam("anchor_top","#top")),anchorBottom:Iz(t.getParam("anchor_bottom","#bottom"))});var t},getValidationHandler:function(){return ye.from(void 0===(n=(t=e).getParam("file_picker_validator_handler",void 0,"function"))?t.getParam("filepicker_validator_handler",void 0,"function"):n);var t,n},getUrlPicker:function(t){return n=s=e,r=l=t,i=ye.some((o=n).getParam("file_picker_types")).filter(Bz),a=ye.some(o.getParam("file_browser_callback_types")).filter(Bz),c=i.or(a).map(Pz),u=Lz(o).fold(x,(function(e){return c.fold(z,(function(e){return 0<Ce(e).length&&e}))})),(p(u)?u?Lz(n):ye.none():u[r]?Lz(n):ye.none()).map((function(e){return function(t){return qb((function(n){var r=S({filetype:l,fieldname:t.fieldname},ye.from(t.meta).getOr({}));e.call(s,(function(e,t){if(!f(e))throw new Error("Expected value to be string");if(void 0!==t&&!d(t))throw new Error("Expected meta to be a object");n({value:e,meta:t})}),t.value,r)}))}}));var n,r,o,i,a,c,u,s,l}}}function Fz(e,t,n){var r,o,i,a,c,u,s,l,f,d,m,g,p,h=Lr(!1),v={isPositionedAtTop:function(){return"top"===r.get()},getDockingMode:(r=Lr(cv(t)?"bottom":"top")).get,setDockingMode:r.set},y={shared:{providers:{icons:function(){return t.ui.registry.getAll().icons},menuItems:function(){return t.ui.registry.getAll().menuItems},translate:dp.translate,isDisabled:function(){return t.mode.isReadOnly()||t.ui.isDisabled()},getSetting:t.getParam.bind(t)},interpreter:function(e){return wS(bS,e,y)},anchors:vz(t,n,v.isPositionedAtTop),header:v,getSink:function(){return Ln.value(e)}},urlinput:Hz(t),styleselect:(f=Lr([]),d=Lr([]),m=Lr([]),g=Lr([]),p=Lr(!(l=function(e){var t=e.items;return void 0!==t&&0<t.length?q(t,l):[e.format]})),(s=t).on("PreInit",(function(e){var t=yz(s),n=wz(s,t,b,w);f.set(n),d.set(q(n,l))})),s.on("addStyleModifications",(function(e){var t=wz(s,e.items,b,w);m.set(t),p.set(e.replace),g.set(q(t,l))})),{getData:function(){var e=p.get()?[]:f.get(),t=m.get();return e.concat(t)},getFlattenedKeys:function(){var e=p.get()?[]:d.get(),t=g.get();return e.concat(t)}}),colorinput:{colorPicker:function(e,t){Ny(u)(e,t)},hasCustomColors:function(){return gy(c)},getColors:function(){return py(a)},getColorCols:(i=a=c=u=t,function(){return vy(i)})},dialog:{isDraggableModal:(o=t,function(){return o.getParam("draggable_modal",!1,"boolean")})},isContextMenuOpen:function(){return h.get()},setContextMenuState:function(e){return h.set(e)}};function b(e){return function(){return s.formatter.match(e)}}function w(e){return function(){var t=s.formatter.get(e);return void 0!==t?ye.some({tag:0<t.length&&(t[0].inline||t[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(e))}):ye.none()}}return y}function jz(e){return(ue(ht(e,"position"),"fixed")?ye.none():Xe(e)).orThunk((function(){var t=Re.fromTag("span");return Ke(e).bind((function(e){On(e,t);var n=Xe(t);return En(t),n}))}))}function Vz(e){return jz(e).map(zt).getOrThunk((function(){return zn(0,0)}))}function Uz(e,t){var n=e.element;Ko(n,t.transitionClass),Xo(n,t.fadeOutClass),Ko(n,t.fadeInClass),t.onShow(e)}function qz(e,t){var n=e.element;Ko(n,t.transitionClass),Xo(n,t.fadeInClass),Ko(n,t.fadeOutClass),t.onHide(e)}function Wz(e,t,n){return W(e,(function(e){switch(e){case"bottom":return t.bottom<=n.bottom;case"top":return t.y>=n.y}}))}function $z(e,t){return t.getInitialPos().map((function(t){return Mn(t.bounds.x,t.bounds.y,Ct(e),kt(e))}))}function Gz(e,t,n){return n.getInitialPos().bind((function(r){switch(n.clearInitialPos(),r.position){case"static":return ye.some(HS.static());case"absolute":var o=jz(e).map(Rn).getOrThunk((function(){return Rn(bn())}));return ye.some(HS.absolute(Ec("absolute",ae(r.style,"left").map((function(e){return t.x-o.x})),ae(r.style,"top").map((function(e){return t.y-o.y})),ae(r.style,"right").map((function(e){return o.right-t.right})),ae(r.style,"bottom").map((function(e){return o.bottom-t.bottom})))));default:return ye.none()}}))}function Kz(e,t,n){var r,o,i,a=e.element;return ue(ht(a,"position"),"fixed")?(o=t,$z(r=a,i=n).filter((function(e){return Wz(i.getModes(),e,o)})).bind((function(e){return Gz(r,e,i)}))):function(e,t,n){var r,o,i=Rn(e);if(Wz(n.getModes(),i,t))return ye.none();r=e,o=i,n.setInitialPos({style:function(){var e={},t=r.dom;if(ge(t))for(var n=0;n<t.style.length;n++){var o=t.style.item(n);e[o]=t.style[o]}return e}(),position:pt(r,"position")||"static",bounds:o});var a=Nn(),c=i.x-a.x,u=t.y-a.y,s=a.bottom-t.bottom,l=i.y<=t.y;return ye.some(HS.fixed(Ec("fixed",ye.some(c),l?ye.some(u):ye.none(),ye.none(),l?ye.none():ye.some(s))))}(a,t,n)}function Xz(e,t,n){n.setDocked(!1),xe(["left","right","top","bottom","position"],(function(t){return yt(e.element,t)})),t.onUndocked(e)}function Yz(e,t,n,r){var o="fixed"===r.position;n.setDocked(o),Ac(e.element,r),(o?t.onDocked:t.onUndocked)(e)}function Jz(e,t,n,r,o){void 0===o&&(o=!1),t.contextual.each((function(t){t.lazyContext(e).each((function(i){var a=i.y<r.bottom&&i.bottom>r.y;a!==n.isVisible()&&(n.setVisible(a),o&&!a?(Jo(e.element,[t.fadeOutClass]),t.onHide(e)):(a?Uz:qz)(e,t))}))}))}function Zz(e,t,n){var r,o,i,c,u,s;n.isDocked()&&(o=t,i=n,s=(r=e).element,i.setDocked(!1),$z(u=r.element,c=i).bind((function(e){return Gz(u,e,c)})).each((function(e){e.fold((function(){return Xz(r,o,i)}),(function(e){return Yz(r,o,i,e)}),a)})),i.setVisible(!0),o.contextual.each((function(e){Zo(s,[e.fadeInClass,e.fadeOutClass,e.transitionClass]),e.onShow(r)})),FS(r,o,i))}function Qz(e,t){return _e(US.getModes(e),t)}function eC(e){var t=e.element;Ke(t).each((function(n){var r,o,i="padding-"+US.getModes(e)[0];US.isDocked(e)?(r=Ct(n),dt(t,"width",r+"px"),dt(n,i,_t(o=t)+(parseInt(pt(o,"margin-top"),10)||0)+(parseInt(pt(o,"margin-bottom"),10)||0)+"px")):(yt(t,"width"),yt(n,i))}))}function tC(e,t){t?(Xo(e,WS.fadeOutClass),Jo(e,[WS.transitionClass,WS.fadeInClass])):(Xo(e,WS.fadeInClass),Jo(e,[WS.fadeOutClass,WS.transitionClass]))}function nC(e,t){var n=Re.fromDom(e.getContainer());t?(Ko(n,$S),Xo(n,GS)):(Ko(n,GS),Xo(n,$S))}function rC(e,t){function n(e){a().each((function(t){return e(t.element)}))}function r(t){e.inline||eC(t),nC(e,US.isDocked(t)),t.getSystem().broadcastOn([wf()],{}),a().each((function(e){return e.getSystem().broadcastOn([wf()],{})}))}var o,i=pu(),a=t.getSink,c=e.inline?[]:[au.config({channels:((o={})[qS()]={onReceive:eC},o)})];return O([Ig.config({}),US.config({contextual:S({lazyContext:function(t){var n=_t(t.element),r=e.inline?e.getContentAreaContainer():e.getContainer(),o=Rn(Re.fromDom(r)),i=o.height-n,a=o.y+(Qz(t,"top")?0:n);return ye.some(Mn(o.x,a,o.width,i))},onShow:function(){n((function(e){return tC(e,!0)}))},onShown:function(e){n((function(e){return Zo(e,[WS.transitionClass,WS.fadeInClass])})),i.get().each((function(t){var n,r=e.element,o=qe(n=t);Sc(o).filter((function(e){return!Ve(n,e)})).filter((function(e){return Ve(e,Re.fromDom(o.dom.body))||Ue(r,e)})).each((function(){return zc(n)})),i.clear()}))},onHide:function(e){var t=e.element,r=a;Tc(t).orThunk((function(){return r().toOptional().bind((function(e){return Tc(e.element)}))})).fold(i.clear,i.set),n((function(e){return tC(e,!1)}))},onHidden:function(){n((function(e){return Zo(e,[WS.transitionClass])}))}},WS),lazyViewport:function(t){var n=Nn(),r=e.getParam("toolbar_sticky_offset",0,"number"),o=n.y+(Qz(t,"top")?r:0),i=n.height-(Qz(t,"bottom")?r:0);return Mn(n.x,o,n.width,i)},modes:[t.header.getDockingMode()],onDocked:r,onUndocked:r})],c,!0)}function oC(e){return ur("menubutton",JS,e)}function iC(e,t){return t.getAnimationRoot.fold((function(){return e.element}),(function(t){return t(e)}))}function aC(e){return e.dimension.property}function cC(e,t){return e.dimension.getDimension(t)}function uC(e,t){Zo(iC(e,t),[t.shrinkingClass,t.growingClass])}function sC(e,t){Xo(e.element,t.openClass),Ko(e.element,t.closedClass),dt(e.element,aC(t),"0px"),bt(e.element)}function lC(e,t){Xo(e.element,t.closedClass),Ko(e.element,t.openClass),yt(e.element,aC(t))}function fC(e,t,n,r){n.setCollapsed(),dt(e.element,aC(t),cC(t,e.element)),bt(e.element),uC(e,t),sC(e,t),t.onStartShrink(e),t.onShrunk(e)}function dC(e,t,n){var r=cC(t,e.element);("0px"===r?fC:function(e,t,n,r){var o=r.getOrThunk((function(){return cC(t,e.element)}));n.setCollapsed(),dt(e.element,aC(t),o),bt(e.element);var i=iC(e,t);Xo(i,t.growingClass),Ko(i,t.shrinkingClass),sC(e,t),t.onStartShrink(e)})(e,t,n,ye.some(r))}function mC(e,t,n){var r=iC(e,t),o=Yo(r,t.shrinkingClass),i=cC(t,e.element);lC(e,t);var a=cC(t,e.element);(o?function(){dt(e.element,aC(t),i),bt(e.element)}:function(){sC(e,t)})(),Xo(r,t.shrinkingClass),Ko(r,t.growingClass),lC(e,t),dt(e.element,aC(t),a),n.setExpanded(),t.onStartGrow(e)}function gC(e,t,n){return!0===Yo(iC(e,t),t.growingClass)}function pC(e,t,n){return!0===Yo(iC(e,t),t.shrinkingClass)}function hC(e){return"<alloy.field."+e+">"}function vC(e){return{element:function(){return e.element.dom}}}function yC(e,t){ud.getCurrent(e).each((function(e){return Bg.set(e,[(n=t,aT.sketch((function(e){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:(t=e,o=P(Ce(r=n),(function(e){var t=r[e],n=sr(ur("sidebar",cT,t));return{name:e,getApi:vC,onSetup:n.onSetup,onShow:n.onShow,onHide:n.onHide}})),P(o,(function(e){var n=Lr(a);return t.slot(e.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:Xh([vv(e,n),yv(e,n),Co(Ji(),(function(e,t){var n=t.event;j(o,(function(e){return e.name===n.name})).each((function(t){(n.visible?t.onShow:t.onHide)(t.getApi(e))}))}))])})}))),slotBehaviours:Xh([oa((function(e){return aT.hideAllSlots(e)}))])};var t,r,o})))]);var n}))}function bC(e){return ud.getCurrent(e).bind((function(e){return nT.isGrowing(e)||nT.hasGrown(e)?ud.getCurrent(e).bind((function(e){return j(aT.getSlotNames(e),(function(t){return aT.isShowing(e,t)}))})):ye.none()}))}function wC(e){var t=Re.fromHtml(e),n=Ye(t),r=F(void 0!==t.dom.attributes?t.dom.attributes:[],(function(e,t){var n;return"class"===t.name?e:S(S({},e),((n={})[t.name]=t.value,n))}),{}),o=Array.prototype.slice.call(t.dom.classList,0),i=0===n.length?{}:{innerHtml:Mo(t)};return S({tag:Ne(t),classes:o,attributes:r},i)}function kC(e){return ud.getCurrent(e).each((function(e){return zc(e.element)}))}function _C(e,t,n){function r(n){var r;!o.get()||"focusin"===(r=n).type&&(r.composed?Z(r.composedPath()):ye.from(r.target)).map(Re.fromDom).filter($t).exists((function(e){return Yo(e,"mce-pastebin")}))||(n.preventDefault(),kC(t()),e.editorManager.setActive(e))}var o=Lr(!1),i=pu();function a(r){var i,a,c,u,s,l,f,d,m,g;r!==o.get()&&(o.set(r),i=e,a=t(),c=r,u=n.providers,d=a.element,m=c,g="data-mce-"+(s="tabindex"),ye.from(i.iframeElement).map(Re.fromDom).each((function(e){m?(ct(e,s).each((function(t){return ot(e,g,t)})),ot(e,s,-1)):(st(e,s),ct(e,g).each((function(t){ot(e,s,t),st(e,g)})))})),c?(fT.block(a,(f=u,function(e,t){return{dom:{tag:"div",attributes:{"aria-label":f.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:wC('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}})),yt(d,"display"),st(d,"aria-hidden"),i.hasFocus()&&kC(a)):(l=ud.getCurrent(a).exists((function(e){return Cc(e.element)})),fT.unblock(a),dt(d,"display","none"),ot(d,"aria-hidden","true"),l&&i.focus()),e.fire("AfterProgressState",{state:r}))}e.inline||e.on("PreInit",(function(){e.dom.bind(e.getWin(),"focusin",r),e.on("BeforeExecCommand",(function(e){"mcefocus"===e.command.toLowerCase()&&!0!==e.value&&r(e)}))})),e.on("ProgressState",(function(t){var n;i.on(lp.clearTimeout),b(t.time)?(n=lp.setEditorTimeout(e,(function(){return a(t.state)}),t.time),i.set(n)):(a(t.state),i.clear())}))}function xC(e,t,n){return{within:e,extra:t,withinWidth:n}}function zC(e,t,n){var r,o=(r=function(e,t){var r=n(e);return ye.some({element:e,start:t,finish:t+r,width:r})},F(e,(function(e,t){return r(t,e.len).fold(u(e),(function(t){return{len:t.finish,list:e.list.concat([t])}}))}),{len:0,list:[]}).list),i=I(o,(function(e){return e.finish<=t})),a=H(i,(function(e,t){return e+t.width}),0);return{within:i,extra:o.slice(i.length),withinWidth:a}}function CC(e){return P(e,(function(e){return e.element}))}function SC(e,t){var n=P(t,(function(e){return Ea(e)}));PS.setGroups(e,n)}function TC(e,t,n){var r,o,i,a,c,u,s,l,f,d,m,g,p,h,v,y,b,w,k,_,x=t.builtGroups.get();0!==x.length&&(r=gl(e,t,"primary"),o=Jb.getCoupled(e,"overflowGroup"),dt(r.element,"visibility","hidden"),a=ee(i=x.concat([o]),(function(e){return Tc(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))})),n([]),SC(r,i),c=Ct(r.element),0===(s=c,l=t.builtGroups.get(),d=o,b=(0===(m=zC(l,s,f=function(e){return Ct(e.element)})).extra.length?ye.some(m):ye.none()).getOrThunk((function(){return zC(l,s-f(d),f)})),w=b.within,k=b.extra,_=b.withinWidth,(u=1===k.length&&k[0].width<=f(d)?(y=_,xC(CC(w.concat(k)),[],y)):1<=k.length?(p=k,h=d,v=_,xC(CC(w).concat([h]),CC(p),v)):(g=_,xC(CC(w),[],g))).extra.length)?(Bg.remove(r,o),n([])):(SC(r,u.within),n(u.extra)),yt(r.element,"visibility"),bt(r.element),a.each(Ig.focus))}function OC(e,t){var n=Jb.getCoupled(e,"toolbarSandbox");yf.isOpen(n)?yf.close(n):yf.open(n,t.toolbar())}function EC(e,t,n,r){var o=n.getBounds.map((function(e){return e()})),i=n.lazySink(e).getOrDie();ff.positionWithinBounds(i,t,{anchor:{type:"hotspot",hotspot:e,layouts:r,overrides:{maxWidthFunction:pT()}}},o)}function AC(e,t,n,r,o){PS.setGroups(t,o),EC(e,t,n,r),jg.on(e)}function DC(e){return P(e,(function(e){return Ea(e)}))}function MC(e,t,n){TC(e,n,(function(r){n.overflowGroups.set(r),t.getOpt(e).each((function(e){yT.setGroups(e,DC(r))}))}))}function RC(e,t){ml(e,t,"overflow-button").bind((function(){return ml(e,t,"overflow")})).each((function(n){ZC(e,t),nT.toggleGrow(n)}))}function NC(e){var t=e.title.fold((function(){return{}}),(function(e){return{attributes:{title:e}}}));return{dom:S({tag:"div",classes:["tox-toolbar__group"]},t),components:[kT.parts.items({})],items:e.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:nu([pb.config({}),Ig.config({})])}}function BC(e){return kT.sketch(NC(e))}function PC(e,t){var n=oa((function(t){var n=P(e.initGroups,BC);PS.setGroups(t,n)}));return nu([Zv(e.providers.isDisabled),pv(),Rg.config({mode:t,onEscape:e.onEscape,selector:".tox-toolbar__group"}),mm("toolbar-events",[n])])}function LC(e){var t=e.cyclicKeying?"cyclic":"acyclic";return{uid:e.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":NC({title:ye.none(),items:[]}),"overflow-button":Gk({name:"more",icon:ye.some("more-drawer"),disabled:!1,tooltip:ye.some("More..."),primary:!1,borderless:!1},ye.none(),e.providers)},splitToolbarBehaviours:PC(e,t)}}function IC(e){var t=e.cyclicKeying?"cyclic":"acyclic";return PS.sketch({uid:e.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(e.type===yh.scrolling?["tox-toolbar--scrolling"]:[])},components:[PS.parts.groups({})],toolbarBehaviours:PC(e,t)})}function HC(e){return"string"==typeof e?e.split(" "):e}function FC(e,t){var n=S(S({},NT),t.menus),r=0<Ce(t.menus).length,o=I(void 0===t.menubar||!0===t.menubar?HC("file edit view insert format tools table help"):HC(!1===t.menubar?"":t.menubar),(function(e){var n=Oe(NT,e);return r?n||ae(t.menus,e).exists((function(e){return Oe(e,"items")})):n}));return I(P(o,(function(r){var o=n[r],i={title:o.title,items:HC(o.items)},a=t,c=e.getParam("removed_menuitems","").split(/[ ,]/);return{text:i.title,getItems:function(){return q(i.items,(function(e){var t=e.toLowerCase();return 0===t.trim().length||R(c,(function(e){return e===t}))?[]:"separator"===t||"|"===t?[{type:"separator"}]:a.menuItems[t]?[a.menuItems[t]]:[]}))}}})),(function(e){return 0<e.getItems().length&&R(e.getItems(),(function(e){return"separator"!==e.type}))}))}function jC(e){function t(){e._skinLoaded=!0,e.fire("SkinLoaded")}return function(){e.initialized?t():e.on("init",t)}}function VC(e,t,n){return new Mp((function(r,o){n.load(t,r,o),e.on("remove",(function(){return n.unload(t)}))}))}function UC(e,t){var n,r,o,i,a,c,u,s,l,d=(o=(n=t).getParam("skin"),i=n.getParam("skin_url"),!1!==o&&(r=o||"oxide",i=i?n.documentBaseURI.toAbsolute(i):rv.baseURL+"/skins/ui/"+r),i);d&&t.contentCSS.push(d+(e?"/content.inline":"/content")+".min.css"),!1===t.getParam("skin")==0&&f(d)?Mp.all([VC(t,d+"/skin.min.css",t.ui.styleSheetLoader),(u=t,s=d,l=Re.fromDom(u.getElement()),hn(l).isSome()?VC(u,s+"/skin.shadowdom.min.css",nv.DOM.styleSheetLoader):Mp.resolve())]).then(jC(t),(a=t,c="Skin could not be loaded",function(){return a.fire("SkinLoadError",{message:c})})):jC(t)()}function qC(e,t){return function(n){function r(){n.setActive(e.formatter.match(t));var r=e.formatter.formatChanged(t,n.setActive);o.set(r)}var o=gu();return e.initialized?r():e.once("init",r),function(){e.off("init",r),o.clear()}}}function WC(e,t,n){return function(r){function o(){return n(r)}function i(){n(r),e.on(t,o)}return e.initialized?i():e.once("init",i),function(){e.off("init",i),e.off(t,o)}}}function $C(e){return function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("mceToggleFormat",!1,t.format)}))}}}function GC(e,t){return function(){return e.execCommand(t)}}function KC(e,t,n){var r,o,i,a=n.dataset,c="basic"===a.type?function(){return P(a.data,(function(e){return bz(e,n.isSelectedFor,n.getPreviewFor)}))}:a.getData;return{items:(r=t,o=n,i=function(e,t,n){var r="formatter"===e.type&&o.isInvalid(e);return 0===t?r?[]:u(e,t,!1,n).toArray():u(e,t,r,n).toArray()},{validateItems:s,getFetch:function(e,t){return function(n,r){r(Uk(s(t()),_h.CLOSE_ON_EXECUTE,e,!1))}}}),getStyleItems:c};function u(e,t,n,a){var c=r.shared.providers.translate(e.title);if("separator"===e.type)return ye.some({type:"separator",text:c});if("submenu"!==e.type)return ye.some(S({type:"togglemenuitem",text:c,icon:e.icon,active:e.isSelected(a),disabled:n,onAction:o.onAction(e)},e.getStylePreview().fold((function(){return{}}),(function(e){return{meta:{style:e}}}))));var u=q(e.getStyleItems(),(function(e){return i(e,t,a)}));return 0===t&&u.length<=0?ye.none():ye.some({type:"nestedmenuitem",text:c,disabled:u.length<=0,getSubmenuItems:function(){return q(e.getStyleItems(),(function(e){return i(e,t,a)}))}})}function s(e){var t=o.getCurrentValue(),n=o.shouldHide?0:1;return q(e,(function(e){return i(e,n,t)}))}}function XC(e,t,n){var r=KC(0,t,n),o=r.items,i=r.getStyleItems,a=WC(e,"NodeChange",(function(e){var t=e.getComponent();n.updateText(t)}));return jk({text:n.icon.isSome()?ye.none():n.text,icon:n.icon,tooltip:ye.from(n.tooltip),role:ye.none(),fetch:o.getFetch(t,i),onSetup:a,getApi:function(e){return{getComponent:u(e)}},columns:1,presets:"normal",classes:n.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",t.shared)}function YC(e){return function(e){for(;e=e.parentNode;){var t=e.contentEditable;if(t&&"inherit"!==t)return CS(e)}return!1}(e)&&!SS(e)}function JC(e,t){function n(t){return vl(e)}function r(t,n){return function(r,o){return ml(r,e,o).map((function(e){return t(e,o)})).getOr(n)}}function o(e,t){return"true"!==at(e.element,"aria-hidden")}var i,a=r(o,!1),c=r((function(e,t){var n;o(e)&&(dt(n=e.element,"display","none"),ot(n,"aria-hidden","true"),bo(e,Ji(),{name:t,visible:!1}))})),u=(i=c,function(e,t){xe(t,(function(t){return i(e,t)}))}),s=r((function(e,t){var n;o(e)||(yt(n=e.element,"display"),st(n,"aria-hidden"),bo(e,Ji(),{name:t,visible:!0}))}));return{uid:e.uid,dom:e.dom,components:t,behaviours:el(e.slotBehaviours),apis:{getSlotNames:n,getSlot:function(t,n){return ml(t,e,n)},isShowing:a,hideSlot:c,hideAllSlots:function(e){return u(e,n())},showSlot:s}}}function ZC(e,t){ml(e,t,"overflow").each((function(n){TC(e,t,(function(e){var t=P(e,(function(e){return Ea(e)}));PS.setGroups(n,t)})),ml(e,t,"overflow-button").each((function(e){nT.hasGrown(n)&&jg.on(e)})),nT.refresh(n)}))}var QC,eS,tS,nS="data-value",rS=function(e,t,n,r){return P(n,(function(n){return oz(n)?{type:"togglemenuitem",text:n.text,value:n.value,active:n.value===r,onAction:function(){Ef.setValue(e,n.value),bo(e,bb,{name:t}),Ig.focus(e)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:function(){return rS(e,t,n.items,r)}}}))},oS=function(e,t){return ee(e,(function(e){return oz(e)?le(e.value===t,e):oS(e.items,t)}))},iS=xl({name:"HtmlSelect",configFields:[mr("options"),Qs("selectBehaviours",[Ig,Ef]),Or("selectClasses",[]),Or("selectAttributes",{}),kr("data")],factory:function(e,t){var n=P(e.options,(function(e){return{dom:{tag:"option",value:e.value,innerHtml:e.text}}})),r=e.data.map((function(e){return so("initialValue",e)})).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:n,behaviours:tl(e.selectBehaviours,[Ig.config({}),Ef.config({store:S({mode:"manual",getValue:function(e){return Qo(e.element)},setValue:function(t,n){j(e.options,(function(e){return e.value===n})).isSome()&&ei(t.element,n)}},r)})])}}}),aS=Object.freeze({__proto__:null,events:function(e,t){var n=e.stream.streams.setup(e,t);return ra([Co(e.event,n),ia((function(){return t.cancel()}))].concat(e.cancelEvent.map((function(e){return[Co(e,(function(){return t.cancel()}))]})).getOr([])))}}),cS=Object.freeze({__proto__:null,throttle:cz,init:function(e){return e.stream.streams.state(e)}}),uS=kc({fields:[gr("stream",fr("mode",{throttle:[mr("delay"),Or("stopEvent",!0),tc("streams",{setup:function(e,t){var n=e.stream,r=vp(e.onStream,n.delay);return t.setTimer(r),function(e,t){r.throttle(e,t),n.stopEvent&&t.stop()}},state:cz})]})),Or("event","input"),kr("cancelEvent"),Qa("onStream")],name:"streaming",active:aS,state:cS}),sS=function(e){sz(e,(function(e,t){return e.setSelectionRange(t.length,t.length)}))},lS=u("alloy.typeahead.itemexecute"),fS=u([kr("lazySink"),mr("fetch"),Or("minChars",5),Or("responseTime",1e3),Ja("onOpen"),Or("getHotspot",ye.some),Or("getAnchorOverrides",u({})),Or("layouts",ye.none()),Or("eventOrder",{}),Pr("model",{},[Or("getDisplayText",(function(e){return void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.value})),Or("selectsOver",!0),Or("populateFromBrowse",!0)]),Ja("onSetValue"),Za("onExecute"),Ja("onItemExecute"),Or("inputClasses",[]),Or("inputAttributes",{}),Or("inputStyles",{}),Or("matchWidth",!0),Or("useMinWidth",!1),Or("dismissOnBlur",!0),Xa(["openClass"]),kr("initialData"),Qs("typeaheadBehaviours",[Ig,Ef,uS,Rg,jg,Jb]),uo("previewing",(function(){return Lr(!0)}))].concat(Ob()).concat(aw())),dS=u([Jf({schema:[Ka()],name:"menu",overrides:function(e){return{fakeFocus:!0,onHighlight:function(t,n){e.previewing.get()?t.getSystem().getByUid(e.uid).each((function(r){(function(e,t,n){if(e.selectsOver){var r=Ef.getValue(t),o=e.getDisplayText(r),i=Ef.getValue(n);return 0===e.getDisplayText(i).indexOf(o)?ye.some((function(){var e;uz(0,t,n),e=o.length,sz(t,(function(t,n){return t.setSelectionRange(e,n.length)}))})):ye.none()}return ye.none()})(e.model,r,n).fold((function(){return hd.dehighlight(t,n)}),(function(e){return e()}))})):t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&uz(e.model,t,n)})),e.previewing.set(!1)},onExecute:function(t,n){return t.getSystem().getByUid(e.uid).toOptional().map((function(e){return bo(e,lS(),{item:n}),!0}))},onHover:function(t,n){e.previewing.set(!1),t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&uz(e.model,t,n)}))}}}})]),mS=zl({name:"Typeahead",configFields:fS(),partFields:dS(),factory:function(e,t,n,r){function o(t,n,o){e.previewing.set(!1);var c=Jb.getCoupled(t,"sandbox");yf.isOpen(c)?ud.getCurrent(c).each((function(e){hd.getHighlighted(e).fold((function(){o(e)}),(function(){_o(c,e.element,"keydown",n)}))})):tw(e,i(t),t,c,r,(function(e){ud.getCurrent(e).each(o)}),Ib.HighlightFirst).get(a)}function i(e){return function(t){return t.map((function(t){var n=q(ie(t.menus),(function(e){return I(e.items,(function(e){return"item"===e.type}))}));return Ef.getState(e).update(P(n,(function(e){return e.data}))),t}))}}var c=ob(e),u=[Ig.config({}),Ef.config({onSetValue:e.onSetValue,store:S({mode:"dataset",getDataKey:function(e){return Qo(e.element)},getFallbackEntry:function(e){return{value:e,meta:{}}},setValue:function(t,n){ei(t.element,e.model.getDisplayText(n))}},e.initialData.map((function(e){return so("initialValue",e)})).getOr({}))}),uS.config({stream:{mode:"throttle",delay:e.responseTime,stopEvent:!1},onStream:function(t,n){var o,c=Jb.getCoupled(t,"sandbox");Ig.isFocused(t)&&Qo(t.element).length>=e.minChars&&(o=ud.getCurrent(c).bind((function(e){return hd.getHighlighted(e).map(Ef.getValue)})),e.previewing.set(!0),tw(e,i(t),t,c,r,(function(t){ud.getCurrent(c).each((function(t){o.fold((function(){e.model.selectsOver&&hd.highlightFirst(t)}),(function(e){hd.highlightBy(t,(function(t){return Ef.getValue(t).value===e.value})),hd.getHighlighted(t).orThunk((function(){return hd.highlightFirst(t),ye.none()}))}))}))}),Ib.HighlightFirst).get(a))},cancelEvent:Fi()}),Rg.config({mode:"special",onDown:function(e,t){return o(e,t,hd.highlightFirst),ye.some(!0)},onEscape:function(e){var t=Jb.getCoupled(e,"sandbox");return yf.isOpen(t)?(yf.close(t),ye.some(!0)):ye.none()},onUp:function(e,t){return o(e,t,hd.highlightLast),ye.some(!0)},onEnter:function(t){var n=Jb.getCoupled(t,"sandbox"),r=yf.isOpen(n);if(r&&!e.previewing.get())return ud.getCurrent(n).bind((function(e){return hd.getHighlighted(e)})).map((function(e){return bo(t,lS(),{item:e}),!0}));var o=Ef.getValue(t);return yo(t,Fi()),e.onExecute(n,t,o),r&&yf.close(n),ye.some(!0)}}),jg.config({toggleClass:e.markers.openClass,aria:{mode:"expanded"}}),Jb.config({others:{sandbox:function(t){return ow(e,t,{onOpen:function(){return jg.on(t)},onClose:function(){return jg.off(t)}})}}}),mm("typeaheadevents",[ca((function(t){nw(e,i(t),t,r,a,Ib.HighlightFirst).get(a)})),Co(lS(),(function(t,n){var r=Jb.getCoupled(t,"sandbox");uz(e.model,t,n.event.item),yo(t,Fi()),e.onItemExecute(t,r,n.event.item,Ef.getValue(t)),yf.close(r),sS(t)}))].concat(e.dismissOnBlur?[Co(Mi(),(function(e){var t=Jb.getCoupled(e,"sandbox");Tc(t.element).isNone()&&yf.close(t)}))]:[]))];return{uid:e.uid,dom:ib(Gr(e,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:S(S({},c),tl(e.typeaheadBehaviours,u)),eventOrder:e.eventOrder}}}),gS=function(e){return S(S({},e),{toCached:function(){return gS(e.toCached())},bindFuture:function(t){return gS(e.bind((function(e){return e.fold((function(e){return Wb(Ln.error(e))}),(function(e){return t(e)}))})))},bindResult:function(t){return gS(e.map((function(e){return e.bind(t)})))},mapResult:function(t){return gS(e.map((function(e){return e.map(t)})))},mapError:function(t){return gS(e.map((function(e){return e.mapError(t)})))},foldResult:function(t,n){return e.map((function(e){return e.fold(t,n)}))},withTimeout:function(t,n){return gS(qb((function(r){var o=!1,i=setTimeout((function(){o=!0,r(Ln.error(n()))}),t);e.get((function(e){o||(clearTimeout(i),r(e))}))})))}})},pS=function(e){return gS(qb(e))},hS={type:"separator"},vS=Bo("aria-invalid"),yS={bar:pz((function(e,t){return n=t.shared,{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:P(e.items,n.interpreter)};var n})),collection:pz((function(e,t){return o=e,i=t.shared.providers,u=o.label.map((function(e){return rb(e,i)})),l=n((function(e,t,n,r){t.stop(),i.isDisabled()||bo(e,_b,{name:o.name,value:r})})),f=[Co(yi(),n((function(e,t,n){zc(n)}))),Co(Ci(),l),Co(Li(),l),Co(bi(),n((function(e,t,n){Ba(e.element,"."+Dh).each((function(e){Xo(e,Dh)})),Ko(n,Dh)}))),Co(wi(),n((function(e){Ba(e.element,"."+Dh).each((function(e){Xo(e,Dh)}))}))),ca(n((function(e,t,n,r){bo(e,_b,{name:o.name,value:r})})))],nb(u,mb.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==o.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:s},behaviours:nu([gd.config({disabled:i.isDisabled,onDisabled:function(e){r(e,(function(e){Ko(e,"tox-collection__item--state-disabled"),ot(e,"aria-disabled",!0)}))},onEnabled:function(e){r(e,(function(e){Xo(e,"tox-collection__item--state-disabled"),st(e,"aria-disabled")}))}}),pv(),Bg.config({}),Ef.config({store:{mode:"memory",initialValue:[]},onSetValue:function(e,t){var n=e,r=P(t,(function(e){var t=dp.translate(e.text),n=1===o.columns?'<div class="tox-collection__item-label">'+t+"</div>":"",r='<div class="tox-collection__item-icon">'+e.icon+"</div>",a={_:" "," - ":" ","-":" "},c=t.replace(/\_| \- |\-/g,(function(e){return a[e]}));return'<div class="tox-collection__item'+(i.isDisabled()?" tox-collection__item--state-disabled":"")+'" tabindex="-1" data-collection-item-value="'+hb.encodeAllRaw(e.value)+'" title="'+c+'" aria-label="'+c+'">'+r+n+"</div>"})),a=P("auto"!==o.columns&&1<o.columns?B(r,o.columns):[r],(function(e){return'<div class="tox-collection__group">'+e.join("")+"</div>"}));Ro(n.element,a.join("")),"auto"===o.columns&&ch(e,5,"tox-collection__item").each((function(t){var n=t.numRows,r=t.numColumns;Rg.setGridSize(e,n,r)})),yo(e,Tb)}}),pb.config({}),Rg.config(1===(c=o.columns)?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===c?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:".tox-collection__group",cell:"."+zh}}),mm("collection-events",f)]),eventOrder:((a={})[Bi()]=["disabling","alloy.base.behaviour","collection-events"],a)}),["tox-form__group--collection"],[]);function n(e){return function(t,n){Pa(n.event.target,"[data-collection-item-value]").each((function(r){e(t,n,r,at(r,"data-collection-item-value"))}))}}function r(e,t){return P(vs(e.element,".tox-collection__item"),t)}var o,i,a,c,u,l,f})),alertbanner:pz((function(e,t){return r=t.shared.providers,lb.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+(n=e).level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[fp.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:Um(n.icon,r.icons),attributes:{title:r.translate(n.iconTooltip)}},action:function(e){bo(e,_b,{name:"alert-banner",value:n.url})},buttonBehaviours:nu([qm()])})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:r.translate(n.text)}}]});var n,r})),input:pz((function(e,t){return r=t.shared.providers,az({name:(n=e).name,multiline:!1,label:n.label,inputMode:n.inputMode,placeholder:n.placeholder,flex:!1,disabled:n.disabled,classname:"tox-textfield",validation:ye.none(),maximized:n.maximized},r);var n,r})),textarea:pz((function(e,t){return r=t.shared.providers,az({name:(n=e).name,multiline:!0,label:n.label,inputMode:ye.none(),placeholder:n.placeholder,flex:!0,disabled:n.disabled,classname:"tox-textarea",validation:ye.none(),maximized:n.maximized},r);var n,r})),label:pz((function(e,t){return o={dom:{tag:"label",innerHtml:(r=t.shared).providers.translate((n=e).label),classes:["tox-label"]}},i=P(n.items,r.interpreter),{dom:{tag:"div",classes:["tox-form__group"]},components:[o].concat(i),behaviours:nu([c_(),Bg.config({}),u_(ye.none()),Rg.config({mode:"acyclic"})])};var n,r,o,i})),iframe:(QC=function(e,t){return n=e,r=t.shared.providers,a=yx&&n.sandboxed,c=S(S({},n.label.map((function(e){return{title:e}})).getOr({})),a?{sandbox:"allow-scripts allow-same-origin"}:{}),o=a,i=Lr(""),u={getValue:function(e){return i.get()},setValue:function(e,t){var n;o?ot(e.element,"srcdoc",t):(ot(e.element,"src","javascript:''"),(n=e.element.dom.contentWindow.document).open(),n.write(t),n.close()),i.set(t)}},nb(n.label.map((function(e){return rb(e,r)})),mb.parts.field({factory:{sketch:function(e){return dk({uid:e.uid,dom:{tag:"iframe",attributes:c},behaviours:nu([pb.config({}),Ig.config({}),gx(ye.none(),u.getValue,u.setValue)])})}}}),["tox-form__group--stretched"],[]);var n,r,o,i,a,c,u},function(e,t,n){var r=Gr(t,{source:"dynamic"});return pz(QC)(e,r,n)}),button:pz((function(e,t){return n=e,r=t.shared.providers,o=Jk(n.name,"custom"),nb(ye.none(),mb.parts.field(S({factory:fp},Xk(n,ye.some(o),r,[px(""),c_()]))),[],[]);var n,r,o})),checkbox:pz((function(e,t){return o=e,i=t.shared.providers,a=Ef.config({store:{mode:"manual",getValue:function(e){return e.element.dom.checked},setValue:function(e,t){e.element.dom.checked=t}}}),c=mb.parts.field({factory:{sketch:s},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:nu([c_(),gd.config({disabled:function(){return o.disabled||i.isDisabled()}}),pb.config({}),Ig.config({}),a,Rg.config({mode:"special",onEnter:n,onSpace:n,stopSpaceKeyup:!0}),mm("checkbox-events",[Co(zi(),(function(e,t){bo(e,bb,{name:o.name})}))])])}),u=mb.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:i.translate(o.label)},behaviours:nu([v_.config({})])}),l=Hm({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[r("checked"),r("unchecked")]}),mb.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[c,l.asSpec(),u],fieldBehaviours:nu([gd.config({disabled:function(){return o.disabled||i.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(e){mb.getField(e).each(gd.disable)},onEnabled:function(e){mb.getField(e).each(gd.enable)}}),pv()])});function n(e){return e.element.dom.click(),ye.some(!0)}function r(e){return $m("checked"===e?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+e]},i.icons)}var o,i,a,c,u,l})),colorinput:pz((function(e,t){return r=e,o=t.shared,i=t.colorinput,s=mb.parts.field({factory:Eb,inputClasses:["tox-textfield"],onSetValue:function(e){return Xb.run(e).get(a)},inputBehaviours:nu([gd.config({disabled:o.providers.isDisabled}),pv(),pb.config({}),Xb.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(e){return Ke(e.element)},notify:{onValid:function(e){var t=Ef.getValue(e);bo(e,y_,{color:t})}},validator:{validateOnLoad:!1,validate:function(e){var t=Ef.getValue(e);if(0===t.length)return Wb(Ln.value(!0));var n=Re.fromTag("span");dt(n,"background-color",t);var r=ht(n,"background-color").fold((function(){return Ln.error("blah")}),(function(e){return Ln.value(t)}));return Wb(r)}}})]),selectOnFocus:!1}),l=r.label.map((function(e){return rb(e,o.providers)})),f=Hm((c={dom:{tag:"span",attributes:{"aria-label":o.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[Kc,Gc,Zc]},onLtr:function(){return[Gc,Kc,Zc]}},components:[],fetch:ky(i.getColors(),i.hasCustomColors()),columns:i.getColorCols(),presets:"color",onItemAction:function(e,t){f.getOpt(e).each((function(e){"custom"===t?i.colorPicker((function(t){t.fold((function(){return yo(e,w_)}),(function(t){n(e,t),hy(t)}))}),"#ffffff"):n(e,"remove"===t?"":t)}))}},h_.sketch({dom:c.dom,components:c.components,toggleClass:"mce-active",dropdownBehaviours:nu([Jv((u=o).providers.isDisabled),pv(),v_.config({}),pb.config({})]),layouts:c.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:u.getSink,fetch:function(e){return qb((function(e){return c.fetch(e)})).map((function(t){return ye.from($y(Gr(Cy(Bo("menu-value"),t,(function(t){c.onItemAction(e,t)}),c.columns,c.presets,_h.CLOSE_ON_EXECUTE,x,u.providers),{movement:Sy(c.columns,c.presets)})))}))},parts:{menu:Qp(0,0,c.presets)}}))),mb.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:l.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[s,f.asSpec()]}]),fieldBehaviours:nu([mm("form-field-events",[Co(y_,(function(e,t){f.getOpt(e).each((function(e){dt(e.element,"background-color",t.event.color)})),bo(e,bb,{name:r.name})})),Co(b_,(function(e,t){mb.getField(e).each((function(n){Ef.setValue(n,t.event.value),ud.getCurrent(e).each(Ig.focus)}))})),Co(w_,(function(e,t){mb.getField(e).each((function(t){ud.getCurrent(e).each(Ig.focus)}))}))])])});function n(e,t){bo(e,b_,{value:t})}var r,o,i,c,u,s,l,f})),colorpicker:pz((function(e){var t=Hm(ck(uk,(function(e){return"tox-"+e})).sketch({dom:{tag:"div",classes:["tox-color-picker-container"],attributes:{role:"presentation"}},onValidHex:function(e){bo(e,_b,{name:"hex-valid",value:!0})},onInvalidHex:function(e){bo(e,_b,{name:"hex-valid",value:!1})}}));return{dom:{tag:"div"},components:[t.asSpec()],behaviours:nu([Ef.config({store:{mode:"manual",getValue:function(e){var n=t.get(e);return ud.getCurrent(n).bind((function(e){return Ef.getValue(e).hex})).map((function(e){return"#"+e})).getOr("")},setValue:function(e,n){var r=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/.exec(n),o=t.get(e);ud.getCurrent(o).fold((function(){console.log("Can not find form")}),(function(e){Ef.setValue(e,{hex:ye.from(r[1]).getOr("")}),nx.getField(e,"hex").each((function(e){yo(e,xi())}))}))}}}),c_()])}})),dropzone:pz((function(e,t){return lk(e,t.shared.providers)})),grid:pz((function(e,t){return n=t.shared,{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+e.columns+"col"]},components:P(e.items,n.interpreter)};var n})),listbox:pz((function(e,t){return n=e,o=(r=t).shared.providers,i=Z(n.items).filter(oz),c=n.label.map((function(e){return rb(e,o)})),s={dom:{tag:"div",classes:["tox-listboxfield"]},components:[mb.parts.field({dom:{},factory:{sketch:function(e){return jk({uid:e.uid,text:i.map((function(e){return e.text})),icon:ye.none(),tooltip:n.label,role:ye.none(),fetch:function(e,t){t(Uk(rS(e,n.name,n.items,Ef.getValue(e)),_h.CLOSE_ON_EXECUTE,r,!1))},onSetup:u(a),getApi:u({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[pb.config({}),Ef.config({store:{mode:"manual",initialValue:i.map((function(e){return e.value})).getOr(""),getValue:function(e){return at(e.element,nS)},setValue:function(e,t){oS(n.items,t).each((function(t){ot(e.element,nS,t.value),bo(e,Px,{text:t.text})}))}}})]},"tox-listbox",r.shared)}}})]},mb.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:U([c.toArray(),[s]]),fieldBehaviours:nu([gd.config({disabled:u(n.disabled),onDisabled:function(e){mb.getField(e).each(gd.disable)},onEnabled:function(e){mb.getField(e).each(gd.enable)}})])});var n,r,o,i,c,s})),selectbox:pz((function(e,t){return n=e,r=t.shared.providers,o=P(n.items,(function(e){return{text:r.translate(e.text),value:e.value}})),i=n.label.map((function(e){return rb(e,r)})),a={dom:{tag:"div",classes:["tox-selectfield"]},components:U([[mb.parts.field({dom:{},selectAttributes:{size:n.size},options:o,factory:iS,selectBehaviours:nu([gd.config({disabled:function(){return n.disabled||r.isDisabled()}}),pb.config({}),mm("selectbox-change",[Co(zi(),(function(e,t){bo(e,bb,{name:n.name})}))])])})],(1<n.size?ye.none():ye.some($m("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},r.icons))).toArray()])},mb.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:U([i.toArray(),[a]]),fieldBehaviours:nu([gd.config({disabled:function(){return n.disabled||r.isDisabled()},onDisabled:function(e){mb.getField(e).each(gd.disable)},onEnabled:function(e){mb.getField(e).each(gd.enable)}}),pv()])});var n,r,o,i,a})),sizeinput:pz((function(e,t){return r_(e,t.shared.providers)})),urlinput:pz((function(e,t){return gz(e,t,t.urlinput)})),customeditor:pz((function(e){var t=pu(),n=Hm({dom:{tag:e.tag}}),r=pu();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:nu([mm("custom-editor-events",[oa((function(o){n.getOpt(o).each((function(n){(Oe(e,"init")?e.init(n.element.dom):lx.load(e.scriptId,e.scriptUrl).then((function(t){return t(n.element.dom,e.settings)}))).then((function(e){r.on((function(t){e.setValue(t)})),r.clear(),t.set(e)}))}))}))]),Ef.config({store:{mode:"manual",getValue:function(){return t.get().fold((function(){return r.get().getOr("")}),(function(e){return e.getValue()}))},setValue:function(e,n){t.get().fold((function(){r.set(n)}),(function(e){return e.setValue(n)}))}}}),c_()]),components:[n.asSpec()]}})),htmlpanel:pz((function(e){return"presentation"===e.presets?lb.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html}}):lb.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html,attributes:{role:"document"}},containerBehaviours:nu([pb.config({}),Ig.config({})])})})),imagetools:pz((function(e,t){return rz(e,t.shared.providers)})),table:pz((function(e,t){return iz(e,t.shared.providers)})),panel:pz((function(e,t){return{dom:{tag:"div",classes:e.classes},components:P(e.items,t.shared.interpreter)}}))},bS={field:function(e,t){return t}},wS=function(e,t,n){return ae(yS,t.type).fold((function(){return console.error('Unknown factory type "'+t.type+'", defaulting to container: ',t),t}),(function(r){return r(e,t,n)}))},kS={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},_S=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],xS=function(e){return F(e,(function(e,t){if(Oe(t,"items")){var n=xS(t.items);return{customFormats:e.customFormats.concat(n.customFormats),formats:e.formats.concat([{title:t.title,items:n.formats}])}}if(Oe(t,"inline")||Oe(t,"block")||Oe(t,"selector")){var r="custom-"+(f(t.name)?t.name:t.title.toLowerCase());return{customFormats:e.customFormats.concat([{name:r,format:t}]),formats:e.formats.concat([{title:t.title,format:r,icon:t.icon}])}}return S(S({},e),{formats:e.formats.concat(t)})}),{customFormats:[],formats:[]})},zS=fx.trim,CS=kz("true"),SS=kz("false"),TS=function(e){var t=P(vs(Re.fromDom(e),"h1,h2,h3,h4,h5,h6,a:not([href])"),(function(e){return e.dom}));return I(P(I(t,Sz),Tz).concat(P(I(t,zz),Oz)),Ez)},OS="tinymce-url-history",ES=rd,AS=td,DS=u([Or("shell",!1),mr("makeItem"),Or("setupItem",a),Af("listBehaviours",[Bg])]),MS=u([Zf({name:"items",overrides:function(){return{behaviours:nu([Bg.config({})])}}})]),RS=zl({name:u("CustomList")(),configFields:DS(),partFields:MS(),factory:function(e,t,n,r){var o=e.shell?{behaviours:[Bg.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:o.components,behaviours:tl(e.listBehaviours,o.behaviours),apis:{setItems:function(t,n){var r;r=t,(e.shell?ye.some(r):ml(r,e,"items")).fold((function(){throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")}),(function(r){var o=Bg.contents(r),i=n.length,a=i-o.length,c=0<a?N(a,(function(){return e.makeItem()})):[],u=o.slice(i);xe(u,(function(e){return Bg.remove(r,e)})),xe(c,(function(e){return Bg.append(r,e)}));var s=Bg.contents(r);xe(s,(function(r,o){e.setupItem(t,r,n[o],o)}))}))}}}},apis:{setItems:function(e,t,n){e.setItems(t,n)}}}),NS=u([mr("dom"),Or("shell",!0),Qs("toolbarBehaviours",[Bg])]),BS=u([Zf({name:"groups",overrides:function(){return{behaviours:nu([Bg.config({})])}}})]),PS=zl({name:"Toolbar",configFields:NS(),partFields:BS(),factory:function(e,t,n,r){var o=e.shell?{behaviours:[Bg.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:o.components,behaviours:tl(e.toolbarBehaviours,o.behaviours),apis:{setGroups:function(t,n){var r;r=t,(e.shell?ye.some(r):ml(r,e,"groups")).fold((function(){throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")}),(function(e){Bg.set(e,n)}))}},domModification:{attributes:{role:"group"}}}},apis:{setGroups:function(e,t,n){e.setGroups(t,n)}}}),LS=u([]),IS=Object.freeze({__proto__:null,setup:a,isDocked:x,getBehaviours:LS}),HS=Ir([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),FS=function(e,t,n){var r,o,i,a;e.getSystem().isConnected()&&(i=n,a=(o=t).lazyViewport(r=e),i.isDocked()&&Jz(r,o,i,a),Kz(r,a,i).each((function(e){e.fold((function(){return Xz(r,o,i)}),(function(e){return Yz(r,o,i,e)}),(function(e){Jz(r,o,i,a,!0),Yz(r,o,i,e)}))})))},jS=Object.freeze({__proto__:null,refresh:FS,reset:Zz,isDocked:function(e,t,n){return n.isDocked()},getModes:function(e,t,n){return n.getModes()},setModes:function(e,t,n,r){return n.setModes(r)}}),VS=Object.freeze({__proto__:null,events:function(e,t){return ra([Do(Ti(),(function(n,r){e.contextual.each((function(e){Yo(n.element,e.transitionClass)&&(Zo(n.element,[e.transitionClass,e.fadeInClass]),(t.isVisible()?e.onShown:e.onHidden)(n)),r.stop()}))})),Co(qi(),(function(n,r){FS(n,e,t)})),Co(Wi(),(function(n,r){Zz(n,e,t)}))])}}),US=kc({fields:[Tr("contextual",[pr("fadeInClass"),pr("fadeOutClass"),pr("transitionClass"),vr("lazyContext"),Ja("onShow"),Ja("onShown"),Ja("onHide"),Ja("onHidden")]),Nr("lazyViewport",Nn),Br("modes",["top","bottom"],to),Ja("onDocked"),Ja("onUndocked")],name:"docking",active:VS,apis:jS,state:Object.freeze({__proto__:null,init:function(e){var t=Lr(!1),n=Lr(!0),r=pu(),o=Lr(e.modes);return _a({isDocked:t.get,setDocked:t.set,getInitialPos:r.get,setInitialPos:r.set,clearInitialPos:r.clear,isVisible:n.get,setVisible:n.set,getModes:o.get,setModes:o.set,readState:function(){return"docked: "+t.get()+", visible: "+n.get()+", modes: "+o.get().join(",")}})}})}),qS=u(Bo("toolbar-height-change")),WS={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},$S="tox-tinymce--toolbar-sticky-on",GS="tox-tinymce--toolbar-sticky-off",KS=Object.freeze({__proto__:null,setup:function(e,t,n){e.inline||(t.header.isPositionedAtTop()||e.on("ResizeEditor",(function(){n().each(US.reset)})),e.on("ResizeWindow ResizeEditor",(function(){n().each(eC)})),e.on("SkinLoaded",(function(){n().each((function(e){US.isDocked(e)?US.reset(e):US.refresh(e)}))})),e.on("FullscreenStateChanged",(function(){n().each(US.reset)}))),e.on("AfterScrollIntoView",(function(e){n().each((function(t){US.refresh(t);var n,r,o,i,a,c,u,s,l,f,d,m,g,p,h,v,y=t.element;Ld(y)&&(n=e,i=(o=qe(r=y)).dom.defaultView.innerHeight,a=Bt(o),u=Ft(c=Re.fromDom(n.elm)),s=kt(c),f=(l=u.y)+s,d=zt(r),m=kt(r),p=(g=d.top)+m,h=Math.abs(g-a.top)<2,v=Math.abs(p-(a.top+i))<2,h&&l<p?Pt(a.left,l-m,o):v&&g<f&&Pt(a.left,l-i+s+m,o))}))})),e.on("PostRender",(function(){nC(e,!1)}))},isDocked:function(e){return e().map(US.isDocked).getOr(!1)},getBehaviours:rC}),XS=Jr([pr("type"),gr("items",rr([Zr([pr("name"),wr("items",to)]),to]))].concat(Ip)),YS=[zr("text"),zr("tooltip"),zr("icon"),vr("fetch"),Nr("onSetup",(function(){return a}))],JS=Jr(O([pr("type")],YS,!0)),ZS=Jr([pr("type"),zr("tooltip"),zr("icon"),zr("text"),Cr("select"),vr("fetch"),Nr("onSetup",(function(){return a})),Mr("presets","normal",["normal","color","listpreview"]),Or("columns",1),vr("onAction"),vr("onItemAction")]),QS=xl({factory:function(e,t){var n={focus:Rg.focusIn,setMenus:function(e,n){var r=P(n,(function(e){return Wk(oC({type:"menubutton",text:e.text,fetch:function(t){t(e.getItems())}}).mapError((function(e){return ao(e)})).getOrDie(),"tox-mbtn",t.backstage,ye.some("menuitem"))}));Bg.set(e,r)}};return{uid:e.uid,dom:e.dom,components:[],behaviours:nu([Bg.config({}),mm("menubar-events",[oa((function(t){e.onSetup(t)})),Co(yi(),(function(e,t){Ba(e.element,".tox-mbtn--active").each((function(n){Pa(t.event.target,".tox-mbtn").each((function(t){Ve(n,t)||e.getSystem().getByDom(n).each((function(n){e.getSystem().getByDom(t).each((function(e){h_.expand(e),h_.close(n),Ig.focus(e)}))}))}))}))})),Co(Yi(),(function(e,t){t.event.prevFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(n){t.event.newFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(e){h_.isOpen(n)&&(h_.expand(e),h_.close(n))}))}))}))]),Rg.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return e.onEscape(t),ye.some(!0)}}),pb.config({})]),apis:n,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[mr("dom"),mr("uid"),mr("onEscape"),mr("backstage"),Or("onSetup",a)],apis:{focus:function(e,t){e.focus(t)},setMenus:function(e,t,n){e.setMenus(t,n)}}}),eT=Object.freeze({__proto__:null,refresh:function(e,t,n){var r;n.isExpanded()&&(yt(e.element,aC(t)),r=cC(t,e.element),dt(e.element,aC(t),r))},grow:function(e,t,n){n.isExpanded()||mC(e,t,n)},shrink:function(e,t,n){n.isExpanded()&&dC(e,t,n)},immediateShrink:function(e,t,n){n.isExpanded()&&fC(e,t,n)},hasGrown:function(e,t,n){return n.isExpanded()},hasShrunk:function(e,t,n){return n.isCollapsed()},isGrowing:gC,isShrinking:pC,isTransitioning:function(e,t,n){return gC(e,t)||pC(e,t)},toggleGrow:function(e,t,n){(n.isExpanded()?dC:mC)(e,t,n)},disableTransitions:uC}),tT=Object.freeze({__proto__:null,exhibit:function(e,t,n){return Vo(t.expanded?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:so(t.dimension.property,"0px")})},events:function(e,t){return ra([Do(Ti(),(function(n,r){r.event.raw.propertyName===e.dimension.property&&(uC(n,e),t.isExpanded()&&yt(n.element,e.dimension.property),(t.isExpanded()?e.onGrown:e.onShrunk)(n))}))])}}),nT=kc({fields:[mr("closedClass"),mr("openClass"),mr("shrinkingClass"),mr("growingClass"),kr("getAnimationRoot"),Ja("onShrunk"),Ja("onStartShrink"),Ja("onGrown"),Ja("onStartGrow"),Or("expanded",!1),gr("dimension",fr("property",{width:[tc("property","width"),tc("getDimension",(function(e){return Ct(e)+"px"}))],height:[tc("property","height"),tc("getDimension",(function(e){return kt(e)+"px"}))]}))],name:"sliding",active:tT,apis:eT,state:Object.freeze({__proto__:null,init:function(e){var t=Lr(e.expanded);return _a({isExpanded:function(){return!0===t.get()},isCollapsed:function(){return!1===t.get()},setCollapsed:w(t.set,!1),setExpanded:w(t.set,!0),readState:function(){return"expanded: "+t.get()}})}})}),rT="container",oT=[Qs("slotBehaviours",[])],iT=ne({getSlotNames:function(e,t){return e.getSlotNames(t)},getSlot:function(e,t,n){return e.getSlot(t,n)},isShowing:function(e,t,n){return e.isShowing(t,n)},hideSlot:function(e,t,n){return e.hideSlot(t,n)},hideAllSlots:function(e,t){return e.hideAllSlots(t)},showSlot:function(e,t,n){return e.showSlot(t,n)}},Fo),aT=S(S({},iT),{sketch:function(e){var t,n={slot:function(e,n){return t.push(e),ul(rT,hC(e),n)},record:u(t=[])},r=e(n),o=P(n.record(),(function(e){return Yf({name:e,pname:hC(e)})}));return _l(rT,oT,o,JC,r)}}),cT=Jr([zr("icon"),zr("tooltip"),Nr("onShow",a),Nr("onHide",a),Nr("onSetup",(function(){return a}))]),uT=Bo("FixSizeEvent"),sT=Bo("AutoSizeEvent"),lT=Object.freeze({__proto__:null,block:function(e,t,n,r){ot(e.element,"aria-busy",!0);var o=t.getRoot(e).getOr(e),i=nu([Rg.config({mode:"special",onTab:function(){return ye.some(!0)},onShiftTab:function(){return ye.some(!0)}}),Ig.config({})]),a=r(o,i),c=o.getSystem().build(a);Bg.append(o,Ea(c)),c.hasConfigured(Rg)&&t.focus&&Rg.focusIn(c),n.isBlocked()||t.onBlock(e),n.blockWith((function(){return Bg.remove(o,c)}))},unblock:function(e,t,n){st(e.element,"aria-busy"),n.isBlocked()&&t.onUnblock(e),n.clear()}}),fT=kc({fields:[Nr("getRoot",ye.none),Rr("focus",!0),Ja("onBlock"),Ja("onUnblock")],name:"blocking",apis:lT,state:Object.freeze({__proto__:null,init:function(){var e=mu();return _a({readState:e.isSet,blockWith:function(t){e.set({destroy:t})},clear:e.clear,isBlocked:e.isSet})}})}),dT=u([Qs("splitToolbarBehaviours",[Jb]),uo("builtGroups",(function(){return Lr([])}))]),mT=u([Xa(["overflowToggledClass"]),Cr("getOverflowBounds"),mr("lazySink"),uo("overflowGroups",(function(){return Lr([])}))].concat(dT())),gT=u([Yf({factory:PS,schema:NS(),name:"primary"}),Jf({schema:NS(),name:"overflow"}),Jf({name:"overflow-button"}),Jf({name:"overflow-group"})]),pT=u((function(e,t){var n=e,r=Math.floor(t);dt(n,"max-width",Sn.max(n,r,["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"])+"px")})),hT=u([Xa(["toggledClass"]),mr("lazySink"),vr("fetch"),Cr("getBounds"),Tr("fireDismissalEventInstead",[Or("event",Ki())]),Vu()]),vT=u([Jf({name:"button",overrides:function(e){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:nu([jg.config({toggleClass:e.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),Jf({factory:PS,schema:NS(),name:"toolbar",overrides:function(e){return{toolbarBehaviours:nu([Rg.config({mode:"cyclic",onEscape:function(t){return ml(t,e,"button").each(Ig.focus),ye.none()}})])}}})]),yT=zl({name:"FloatingToolbarButton",factory:function(e,t,n,r){return S(S({},fp.sketch(S(S({},r.button()),{action:function(e){OC(e,r)},buttonBehaviours:Df({dump:r.button().buttonBehaviours},[Jb.config({others:{toolbarSandbox:function(t){return r=t,o=n,i=e,{dom:{tag:"div",attributes:{id:(a=La()).id}},behaviours:nu([Rg.config({mode:"special",onEscape:function(e){return yf.close(e),ye.some(!0)}}),yf.config({onOpen:function(e,t){i.fetch().get((function(e){AC(r,t,i,o.layouts,e),a.link(r.element),Rg.focusIn(t)}))},onClose:function(){jg.off(r),Ig.focus(r),a.unlink(r.element)},isPartOf:function(e,t,n){return Fa(t,n)||Fa(r,n)},getAttachPoint:function(){return i.lazySink(r).getOrDie()}}),au.config({channels:S(S({},$s(S({isExtraPart:x},i.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),Gs({doReposition:function(){yf.getState(Jb.getCoupled(r,"toolbarSandbox")).each((function(e){EC(r,e,i,o.layouts)}))}}))})])};var r,o,i,a}}})])}))),{apis:{setGroups:function(t,r){yf.getState(Jb.getCoupled(t,"toolbarSandbox")).each((function(o){AC(t,o,e,n.layouts,r)}))},reposition:function(t){yf.getState(Jb.getCoupled(t,"toolbarSandbox")).each((function(r){EC(t,r,e,n.layouts)}))},toggle:function(e){OC(e,r)},getToolbar:function(e){return yf.getState(Jb.getCoupled(e,"toolbarSandbox"))},isOpen:function(e){return yf.isOpen(Jb.getCoupled(e,"toolbarSandbox"))}}})},configFields:hT(),partFields:vT(),apis:{setGroups:function(e,t,n){e.setGroups(t,n)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},getToolbar:function(e,t){return e.getToolbar(t)},isOpen:function(e,t){return e.isOpen(t)}}}),bT=u([mr("items"),Xa(["itemSelector"]),Qs("tgroupBehaviours",[Rg])]),wT=u([Qf({name:"items",unit:"item"})]),kT=zl({name:"ToolbarGroup",configFields:bT(),partFields:wT(),factory:function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:tl(e.tgroupBehaviours,[Rg.config({mode:"flow",selector:e.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}}}),_T=zl({name:"SplitFloatingToolbar",configFields:mT(),partFields:gT(),factory:function(e,t,n,r){var o=Hm(yT.sketch({fetch:function(){return qb((function(t){t(DC(e.overflowGroups.get()))}))},layouts:{onLtr:function(){return[Kc,Gc]},onRtl:function(){return[Gc,Kc]},onBottomLtr:function(){return[Yc,Xc]},onBottomRtl:function(){return[Xc,Yc]}},getBounds:n.getOverflowBounds,lazySink:e.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:e.markers.overflowToggledClass},parts:{button:r["overflow-button"](),toolbar:r.overflow()}}));return{uid:e.uid,dom:e.dom,components:t,behaviours:tl(e.splitToolbarBehaviours,[Jb.config({others:{overflowGroup:function(){return kT.sketch(S(S({},r["overflow-group"]()),{items:[o.asSpec()]}))}}})]),apis:{setGroups:function(t,n){e.builtGroups.set(P(n,t.getSystem().build)),MC(t,o,e)},refresh:function(t){return MC(t,o,e)},toggle:function(e){o.getOpt(e).each((function(e){yT.toggle(e)}))},isOpen:function(e){return o.getOpt(e).map(yT.isOpen).getOr(!1)},reposition:function(e){o.getOpt(e).each((function(e){yT.reposition(e)}))},getOverflow:function(e){return o.getOpt(e).bind(yT.getToolbar)}},domModification:{attributes:{role:"group"}}}},apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)},getOverflow:function(e,t){return e.getOverflow(t)}}}),xT=u([Xa(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Ja("onOpened"),Ja("onClosed")].concat(dT())),zT=u([Yf({factory:PS,schema:NS(),name:"primary"}),Yf({factory:PS,schema:NS(),name:"overflow",overrides:function(e){return{toolbarBehaviours:nu([nT.config({dimension:{property:"height"},closedClass:e.markers.closedClass,openClass:e.markers.openClass,shrinkingClass:e.markers.shrinkingClass,growingClass:e.markers.growingClass,onShrunk:function(t){ml(t,e,"overflow-button").each((function(e){jg.off(e),Ig.focus(e)})),e.onClosed(t)},onGrown:function(t){Rg.focusIn(t),e.onOpened(t)},onStartGrow:function(t){ml(t,e,"overflow-button").each(jg.on)}}),Rg.config({mode:"acyclic",onEscape:function(t){return ml(t,e,"overflow-button").each(Ig.focus),ye.some(!0)}})])}}}),Jf({name:"overflow-button",overrides:function(e){return{buttonBehaviours:nu([jg.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),Jf({name:"overflow-group"})]),CT=zl({name:"SplitSlidingToolbar",configFields:xT(),partFields:zT(),factory:function(e,t,n,r){var o="alloy.toolbar.toggle";return{uid:e.uid,dom:e.dom,components:t,behaviours:tl(e.splitToolbarBehaviours,[Jb.config({others:{overflowGroup:function(e){return kT.sketch(S(S({},r["overflow-group"]()),{items:[fp.sketch(S(S({},r["overflow-button"]()),{action:function(t){yo(e,o)}}))]}))}}}),mm("toolbar-toggle-events",[Co(o,(function(t){RC(t,e)}))])]),apis:{setGroups:function(t,n){var r=P(n,t.getSystem().build);e.builtGroups.set(r),ZC(t,e)},refresh:function(t){return ZC(t,e)},toggle:function(t){return RC(t,e)},isOpen:function(t){return ml(t,e,"overflow").map(nT.hasGrown).getOr(!1)}},domModification:{attributes:{role:"group"}}}},apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)}}}),ST=AS.optional({factory:QS,name:"menubar",schema:[mr("backstage")]}),TT=AS.optional({factory:{sketch:function(e){return RS.sketch({uid:e.uid,dom:e.dom,listBehaviours:nu([Rg.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return IC({type:e.type,uid:Bo("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:e.providers,onEscape:function(){return e.onEscape(),ye.some(!0)}})},setupItem:function(e,t,n,r){PS.setGroups(t,n)},shell:!0})}},name:"multiple-toolbar",schema:[mr("dom"),mr("onEscape")]}),OT=AS.optional({factory:{sketch:function(e){return(e.type===yh.sliding?function(e){var t=CT.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=CT.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),r=LC(e);return CT.sketch(S(S({},r),{components:[t,n],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(e){e.getSystem().broadcastOn([qS()],{type:"opened"})},onClosed:function(e){e.getSystem().broadcastOn([qS()],{type:"closed"})}}))}:e.type===yh.floating?function(e){var t=LC(e),n=_T.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return _T.sketch(S(S({},t),{lazySink:e.getSink,getOverflowBounds:function(){var t=e.moreDrawerData.lazyHeader().element,n=Ft(t),r=$e(t),o=Ft(r),i=Math.max(r.dom.scrollHeight,o.height);return Mn(n.x+4,o.y,n.width-8,i)},parts:S(S({},t.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:e.attributes}}}),components:[n],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))}:IC)({type:e.type,uid:e.uid,onEscape:function(){return e.onEscape(),ye.some(!0)},cyclicKeying:!1,initGroups:[],getSink:e.getSink,providers:e.providers,moreDrawerData:{lazyToolbar:e.lazyToolbar,lazyMoreButton:e.lazyMoreButton,lazyHeader:e.lazyHeader},attributes:e.attributes})}},name:"toolbar",schema:[mr("dom"),mr("onEscape"),mr("getSink")]}),ET=AS.optional({factory:{sketch:function(e){var t=e.editor,n=e.sticky?rC:LS;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:nu(n(t,e.sharedBackstage))}}},name:"header",schema:[mr("dom")]}),AT=AS.optional({name:"socket",schema:[mr("dom")]}),DT=AS.optional({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:nu([pb.config({}),Ig.config({}),nT.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(e){ud.getCurrent(e).each(aT.hideAllSlots),yo(e,sT)},onGrown:function(e){yo(e,sT)},onStartGrow:function(e){bo(e,uT,{width:ht(e.element,"width").getOr("")})},onStartShrink:function(e){bo(e,uT,{width:Ct(e.element)+"px"})}}),Bg.config({}),ud.config({find:function(e){return Z(Bg.contents(e))}})])}],behaviours:nu([ux(0),mm("sidebar-sliding-events",[Co(uT,(function(e,t){dt(e.element,"width",t.event.width)})),Co(sT,(function(e,t){yt(e.element,"width")}))])])}}},name:"sidebar",schema:[mr("dom")]}),MT=AS.optional({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:nu([Bg.config({}),fT.config({focus:!1}),ud.config({find:function(e){return Z(e.components())}})]),components:[]}}},name:"throbber",schema:[mr("dom")]}),RT=zl({name:"OuterContainer",factory:function(e,t,n){return{uid:e.uid,dom:e.dom,components:t,apis:{getSocket:function(t){return ES.getPart(t,e,"socket")},setSidebar:function(t,n){ES.getPart(t,e,"sidebar").each((function(e){return yC(e,n)}))},toggleSidebar:function(t,n){ES.getPart(t,e,"sidebar").each((function(e){var t=n;ud.getCurrent(e).each((function(e){ud.getCurrent(e).each((function(n){nT.hasGrown(e)?aT.isShowing(n,t)?nT.shrink(e):(aT.hideAllSlots(n),aT.showSlot(n,t)):(aT.hideAllSlots(n),aT.showSlot(n,t),nT.grow(e))}))}))}))},whichSidebar:function(t){return ES.getPart(t,e,"sidebar").bind(bC).getOrNull()},getHeader:function(t){return ES.getPart(t,e,"header")},getToolbar:function(t){return ES.getPart(t,e,"toolbar")},setToolbar:function(t,n){ES.getPart(t,e,"toolbar").each((function(e){e.getApis().setGroups(e,n)}))},setToolbars:function(t,n){ES.getPart(t,e,"multiple-toolbar").each((function(e){RS.setItems(e,n)}))},refreshToolbar:function(t){ES.getPart(t,e,"toolbar").each((function(e){return e.getApis().refresh(e)}))},toggleToolbarDrawer:function(t){ES.getPart(t,e,"toolbar").each((function(e){var t=e.getApis().toggle;null!=t?ye.some(function(t){return t(e)}(t)):ye.none()}))},isToolbarDrawerToggled:function(t){return ES.getPart(t,e,"toolbar").bind((function(e){return ye.from(e.getApis().isOpen).map((function(t){return t(e)}))})).getOr(!1)},getThrobber:function(t){return ES.getPart(t,e,"throbber")},focusToolbar:function(t){ES.getPart(t,e,"toolbar").orThunk((function(){return ES.getPart(t,e,"multiple-toolbar")})).each((function(e){Rg.focusIn(e)}))},setMenubar:function(t,n){ES.getPart(t,e,"menubar").each((function(e){QS.setMenus(e,n)}))},focusMenubar:function(t){ES.getPart(t,e,"menubar").each((function(e){QS.focus(e)}))}},behaviours:e.behaviours}},configFields:[mr("dom"),mr("behaviours")],partFields:[ET,ST,OT,TT,AT,DT,MT],apis:{getSocket:function(e,t){return e.getSocket(t)},setSidebar:function(e,t,n){e.setSidebar(t,n)},toggleSidebar:function(e,t,n){e.toggleSidebar(t,n)},whichSidebar:function(e,t){return e.whichSidebar(t)},getHeader:function(e,t){return e.getHeader(t)},getToolbar:function(e,t){return e.getToolbar(t)},setToolbar:function(e,t,n){var r=P(n,BC);e.setToolbar(t,r)},setToolbars:function(e,t,n){var r=P(n,(function(e){return P(e,BC)}));e.setToolbars(t,r)},refreshToolbar:function(e,t){return e.refreshToolbar(t)},toggleToolbarDrawer:function(e,t){e.toggleToolbarDrawer(t)},isToolbarDrawerToggled:function(e,t){return e.isToolbarDrawerToggled(t)},getThrobber:function(e,t){return e.getThrobber(t)},setMenubar:function(e,t,n){e.setMenubar(t,n)},focusMenubar:function(e,t){e.focusMenubar(t)},focusToolbar:function(e,t){e.focusToolbar(t)}}}),NT={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},BT=w(UC,!1),PT=w(UC,!0);function LT(e,t,n,r){var o;return{type:"basic",data:(o=e.getParam(t,n,"string"),P(r===eS.SemiColon?o.replace(/;$/,"").split(";"):o.split(" "),(function(e){var t=e,n=e,r=e.split("=");return 1<r.length&&(t=r[0],n=r[1]),{title:t,format:n}})))}}function IT(e){var t={type:"basic",data:vO};return{tooltip:"Align",text:ye.none(),icon:ye.some("align-left"),isSelectedFor:function(t){return function(){return e.formatter.match(t)}},getCurrentValue:ye.none,getPreviewFor:function(e){return ye.none},onAction:function(t){return function(){return j(vO,(function(e){return e.format===t.format})).each((function(t){return e.execCommand(t.command)}))}},updateText:function(t){var n=j(vO,(function(t){return e.formatter.match(t.format)})).fold(u("left"),(function(e){return e.title.toLowerCase()}));bo(t,Lx,{icon:"align-"+n})},dataset:t,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}}function HT(e){return P(e.split(/\s*,\s*/),(function(e){return e.replace(/^['"]+|['"]+$/g,"")}))}function FT(e){function t(){function t(e){return e?HT(e)[0]:""}var o=e.queryCommandValue("FontName"),i=r.data,a=o?o.toLowerCase():"";return{matchOpt:j(i,(function(e){var n=e.format;return n.toLowerCase()===a||t(n).toLowerCase()===t(a).toLowerCase()})).orThunk((function(){return le(0===(e=a).indexOf("-apple-system")&&(t=HT(e.toLowerCase()),W(yO,(function(e){return-1<t.indexOf(e.toLowerCase())}))),{title:n,format:a});var e,t})),font:o}}var n="System Font",r=LT(e,"font_formats","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",eS.SemiColon);return{tooltip:"Fonts",text:ye.some(n),icon:ye.none(),isSelectedFor:function(e){return function(t){return t.exists((function(t){return t.format===e}))}},getCurrentValue:function(){return t().matchOpt},getPreviewFor:function(e){return function(){return ye.some({tag:"div",styles:-1===e.indexOf("dings")?{"font-family":e}:{}})}},onAction:function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontName",!1,t.format)}))}},updateText:function(e){var n=t(),r=n.matchOpt,o=n.font,i=r.fold(u(o),(function(e){return e.title}));bo(e,Px,{text:i})},dataset:r,shouldHide:!1,isInvalid:x}}function jT(e){function t(){var t=ye.none(),n=r.data,o=e.queryCommandValue("FontSize");if(o)for(var i=function(e){var r,i,a,c,u=(i=e,/[0-9.]+px$/.test(r=o)?(a=72*parseInt(r,10)/96,c=Math.pow(10,i||0),Math.round(a*c)/c+"pt"):ae(wO,r).getOr(r)),s=ae(bO,u).getOr("");t=j(n,(function(e){return e.format===o||e.format===u||e.format===s}))},a=3;t.isNone()&&0<=a;a--)i(a);return{matchOpt:t,size:o}}var n=u(ye.none),r=LT(e,"fontsize_formats","8pt 10pt 12pt 14pt 18pt 24pt 36pt",eS.Space);return{tooltip:"Font sizes",text:ye.some("12pt"),icon:ye.none(),isSelectedFor:function(e){return function(t){return t.exists((function(t){return t.format===e}))}},getPreviewFor:n,getCurrentValue:function(){return t().matchOpt},onAction:function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontSize",!1,t.format)}))}},updateText:function(e){var n=t(),r=n.matchOpt,o=n.size,i=r.fold(u(o),(function(e){return e.title}));bo(e,Px,{text:i})},dataset:r,shouldHide:!1,isInvalid:x}}function VT(e,t){var n=t(),r=P(n,(function(e){return e.format}));return ye.from(e.formatter.closest(r)).bind((function(e){return j(n,(function(t){return t.format===e}))})).orThunk((function(){return le(e.formatter.match("p"),{title:"Paragraph",format:"p"})}))}function UT(e){var t=LT(e,"block_formats","Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",eS.SemiColon);return{tooltip:"Blocks",text:ye.some("Paragraph"),icon:ye.none(),isSelectedFor:function(t){return function(){return e.formatter.match(t)}},getCurrentValue:ye.none,getPreviewFor:function(t){return function(){var n=e.formatter.get(t);return ye.some({tag:0<n.length&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))})}},onAction:$C(e),updateText:function(n){var r=VT(e,(function(){return t.data})).fold(u("Paragraph"),(function(e){return e.title}));bo(n,Px,{text:r})},dataset:t,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}}function qT(e,t){return{tooltip:"Formats",text:ye.some("Paragraph"),icon:ye.none(),isSelectedFor:function(t){return function(){return e.formatter.match(t)}},getCurrentValue:ye.none,getPreviewFor:function(t){return function(){var n=e.formatter.get(t);return void 0!==n?ye.some({tag:0<n.length&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):ye.none()}},onAction:$C(e),updateText:function(t){var n=function(e){var t=e.items;return void 0!==t&&0<t.length?q(t,n):[{title:e.title,format:e.format}]},r=q(yz(e),n),o=VT(e,u(r)).fold(u("Paragraph"),(function(e){return e.title}));bo(t,Px,{text:o})},shouldHide:e.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(t){return!e.formatter.canApply(t.format)},dataset:t}}function WT(e){return{isDisabled:function(){return gd.isDisabled(e)},setDisabled:function(t){return gd.set(e,t)}}}function $T(e){return{setActive:function(t){jg.set(e,t)},isActive:function(){return jg.isOn(e)},isDisabled:function(){return gd.isDisabled(e)},setDisabled:function(t){return gd.set(e,t)}}}function GT(e,t){return e.map((function(e){return{"aria-label":t.translate(e),title:t.translate(e)}})).getOr({})}function KT(e,t,n,r,o,i){var a;return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]),attributes:GT(n,i)},components:ey([e.map((function(e){return Ik(e,i.icons)})),t.map((function(e){return Fk(e,"tox-tbtn",i)}))]),eventOrder:((a={})[gi()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:nu([Zv(i.isDisabled),pv(),mm("common-button-display-events",[Co(gi(),(function(e,t){t.event.prevent(),yo(e,TO)}))])].concat(r.map((function(n){return xO.config({channel:n,initialData:{icon:e,text:t},renderComponents:function(e,t){return ey([e.icon.map((function(e){return Ik(e,i.icons)})),e.text.map((function(e){return Fk(e,"tox-tbtn",i)}))])}})})).toArray()).concat(o.getOr([])))}}function XT(e,t,n){var r,o=Lr(a),i=KT(e.icon,e.text,e.tooltip,ye.none(),ye.none(),n);return fp.sketch({dom:i.dom,components:i.components,eventOrder:Bx,buttonBehaviours:nu([mm("toolbar-button-events",[(r={onAction:e.onAction,getApi:t.getApi},ca((function(e,t){hv(r,e)((function(t){bo(e,Nx,{buttonApi:t}),r.onAction(t)}))}))),vv(t,o),yv(t,o)]),Zv((function(){return e.disabled||n.isDisabled()})),pv()].concat(t.toolbarButtonBehaviours))})}function YT(e,t){return function(n,r,o){var i=e(n).mapError((function(e){return ao(e)})).getOrDie();return t(i,r,o)}}function JT(e,t,n,r){var o,a=t.outerContainer,c=n.toolbar,u=n.buttons;i(c,f)?(o=c.map((function(t){var o={toolbar:t,buttons:u,allowToolbarGroups:n.allowToolbarGroups};return RO(e,o,{backstage:r},ye.none())})),RT.setToolbars(a,o)):RT.setToolbar(a,RO(e,n,{backstage:r},ye.none()))}function ZT(e){return/^[0-9\.]+(|px)$/i.test(""+e)?ye.some(parseInt(""+e,10)):ye.none()}function QT(e){return b(e)?e+"px":e}function eO(e,t,n){var r=t.filter((function(t){return e<t})),o=n.filter((function(t){return t<e}));return r.or(o).getOr(e)}function tO(e){var t=lh(e),n=fh(e),r=mh(e);return ZT(t).map((function(e){return eO(e,n,r)}))}function nO(e,t,n,r,o){function i(){return k.get()&&!e.removed}function a(e){return w?e.fold(u(0),(function(e){return 1<e.components().length?kt(e.components()[1].element):0})):0}function c(){f.broadcastOn([wf()],{})}function s(e){var n,r,u,s,l;void 0===e&&(e=!1),i()&&(g||(n=h.getOrThunk((function(){var e=ZT(pt(bn(),"margin-left")).getOr(0);return Ct(bn())-zt(t).left+e})),dt(o.get().element,"max-width",n+"px")),w&&RT.refreshToolbar(d),g||(r=a(RT.getToolbar(d)),u=Rn(t),s=y()?Math.max(u.y-kt(o.get().element)+r,0):u.bottom,mt(d.element,{position:"absolute",top:Math.round(s)+"px",left:Math.round(u.x)+"px"})),p&&(l=o.get(),e?US.reset(l):US.refresh(l)),c())}function l(n){var r,c;void 0===n&&(n=!0),!g&&p&&i()&&(r=v.getDockingMode(),(c=function(n){switch(av(e)){case wh.auto:var r=a(RT.getToolbar(d)),o=kt(n.element)-r,i=Rn(t);if(i.y>o)return"top";var c=$e(t),u=Math.max(c.dom.scrollHeight,kt(c));return i.bottom<u-o||Nn().bottom<i.bottom-o?"bottom":"top";case wh.bottom:return"bottom";default:return wh.top,"top"}}(o.get()))!==r&&(function(e){var t=o.get();US.setModes(t,[e]),v.setDockingMode(e);var n=y()?Su.TopToBottom:Su.BottomToTop;ot(t.element,ns,n)}(c),n&&s(!0)))}var f=n.uiMothership,d=n.outerContainer,m=nv.DOM,g=sv(e),p=dv(e),h=mh(e).or(tO(e)),v=r.shared.header,y=v.isPositionedAtTop,b=iv(e),w=b===yh.sliding||b===yh.floating,k=Lr(!1);return{isVisible:i,isPositionedAtTop:y,show:function(){k.set(!0),dt(d.element,"display","flex"),m.addClass(e.getBody(),"mce-edit-focus"),yt(f.element,"display"),l(!1),s()},hide:function(){k.set(!1),n.outerContainer&&(dt(d.element,"display","none"),m.removeClass(e.getBody(),"mce-edit-focus")),dt(f.element,"display","none")},update:s,updateMode:l,repositionPopups:c}}function rO(e,t){var n=Rn(e);return{pos:t?n.y:n.bottom,bounds:n}}function oO(e,t){return Co(Nx,(function(n,r){var o,i=e.get(n),a=(o=i,{hide:function(){return yo(o,Hi())},getValue:function(){return Ef.getValue(o)}});t.onAction(a,r.event.buttonApi)}))}function iO(e,t,n){return t.bottom-e.y>=(n=void 0===n?.01:n)&&e.bottom-t.y>=n}function aO(e){var t=function(e){var t=e.getBoundingClientRect();if(t.height<=0&&t.width<=0){var n=Qe(Re.fromDom(e.startContainer),e.startOffset).element;return(Gt(n)?Ke(n):ye.some(n)).filter($t).map((function(e){return e.dom.getBoundingClientRect()})).getOr(t)}return t}(e.selection.getRng());if(e.inline){var n=Bt();return Mn(n.left+t.left,n.top+t.top,t.width,t.height)}var r=Ft(Re.fromDom(e.getBody()));return Mn(r.x+t.left,r.y+t.top,t.width,t.height)}function cO(e,t,n,r){void 0===r&&(r=0);var o,i,a,c,u=It(window),s=Rn(Re.fromDom(e.getContentAreaContainer())),l=ph(e)||hh(e)||ov(e),f=(o=s,i=u,a=r,{x:c=Math.max(o.x+a,i.x),width:Math.min(o.right-a,i.right)-c}),d=f.x,m=f.width;if(e.inline&&!l)return Mn(d,u.y,m,u.height);var g=function(e,t,n,r,o,i){var a=Re.fromDom(e.getContainer()),c=Ba(a,".tox-editor-header").getOr(a),u=Rn(c),s=u.y>=t.bottom,l=r&&!s;if(e.inline&&l)return{y:Math.max(u.bottom+i,n.y),bottom:n.bottom};if(e.inline&&!l)return{y:n.y,bottom:Math.min(u.y-i,n.bottom)};var f="line"===o?Rn(a):t;return l?{y:Math.max(u.bottom+i,n.y),bottom:Math.min(f.bottom-i,n.bottom)}:{y:Math.max(f.y+i,n.y),bottom:Math.min(u.y-i,n.bottom)}}(e,s,u,t.header.isPositionedAtTop(),n,r),p=g.y,h=g.bottom;return Mn(d,p,m,h-p)}function uO(e){return"node"===e}function sO(e,t,n,r,o){var i=aO(e),a=r.lastElement().exists((function(e){return Ve(n,e)})),c=n,u=e.selection.getRng(),s=Qe(Re.fromDom(u.startContainer),u.startOffset);return u.startContainer===u.endContainer&&u.startOffset===u.endOffset-1&&Ve(s.element,c)?a?Pm:up:a?function(e,n){var o=ht(e,"position");dt(e,"position",n);var a=iO(i,Rn(t))&&!r.isReposition()?Im:Pm;return o.each((function(t){return dt(e,"position",t)})),a}(t,r.getMode()):("fixed"===r.getMode()?o.y+Bt().top:o.y)+(kt(t)+12)<=i.y?up:sp}function lO(e,t){var n=L(I(t,(function(t){return t.predicate(e.dom)})),(function(e){return"contexttoolbar"===e.type}));return{contextToolbars:n.pass,contextForms:n.fail}}function fO(e,t){function n(e){return Ve(e,o)}var r,o=Re.fromDom(t.getBody()),i=Re.fromDom(t.selection.getNode());return n(r=i)||Ue(o,r)?function(e,t,n){var r=lO(e,t);if(0<r.contextForms.length)return ye.some({elem:e,toolbars:[r.contextForms[0]]});var o=lO(e,n);if(0<o.contextForms.length)return ye.some({elem:e,toolbars:[o.contextForms[0]]});if(0<r.contextToolbars.length||0<o.contextToolbars.length){var i=function(e){if(e.length<=1)return e;function t(t){return R(e,(function(e){return e.position===t}))}function n(t){return I(e,(function(e){return e.position===t}))}var r=t("selection"),o=t("node");if(r||o){if(o&&r){var i=n("node"),a=P(n("selection"),(function(e){return S(S({},e),{position:"node"})}));return i.concat(a)}return n(r?"selection":"node")}return n("line")}(r.contextToolbars.concat(o.contextToolbars));return ye.some({elem:e,toolbars:i})}return ye.none()}(i,e.inNodeScope,e.inEditorScope).orThunk((function(){return o=e,(t=n)(r=i)?ye.none():mo(r,(function(e){if($t(e)){var t=lO(e,o.inNodeScope),n=t.contextToolbars,r=t.contextForms,i=0<r.length?r:(c=n).length<=1?c:a("selection").orThunk((function(){return a("node")})).orThunk((function(){return a("line")})).map((function(e){return e.position})).fold((function(){return[]}),(function(e){return I(c,(function(t){return t.position===e}))}));return 0<i.length?ye.some({elem:e,toolbars:i}):ye.none()}function a(e){return j(c,(function(t){return t.position===e}))}var c;return ye.none()}),t);var t,r,o})):ye.none()}function dO(e,t){var n={},r=[],o=[],i={},a={},c=Ce(e);return xe(c,(function(c){var u,s,l,f,d,m=e[c];"contextform"===m.type?(l=c,d=sr(ur("ContextForm",Kp,f=m)),(n[l]=d).launch.map((function(e){i["form:"+l]=S(S({},f.launch),{type:"contextformtogglebutton"===e.type?"togglebutton":"button",onAction:function(){t(d)}})})),("editor"===d.scope?o:r).push(d),a[l]=d):"contexttoolbar"===m.type&&(u=c,ur("ContextToolbar",Xp,s=m).each((function(e){("editor"===s.scope?o:r).push(e),a[u]=e})))})),{forms:n,inNodeScope:r,inEditorScope:o,lookupTable:a,formNavigators:i}}function mO(e,t,n,r){function o(){var t=w.get().getOr("node"),n=uO(t)?1:0;return cO(e,h,t,n)}function i(){return!(e.removed||v()&&p.isContextMenuOpen())}function c(){if(i()){var t=o(),n=ue(w.get(),"node")?(r=e,y.get().filter(yn).map(Ft).getOrThunk((function(){return aO(r)}))):aO(e);return t.height<=0||!iO(n,t)}return 1;var r}function u(){y.clear(),b.clear(),w.clear(),ap.hide(k)}function s(){var e;ap.isOpen(k)&&(yt(e=k.element,"display"),c()?dt(e,"display","none"):(b.set(0),ap.reposition(k)))}function l(t){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:nu([Rg.config({mode:"acyclic"}),mm("pop-dialog-wrap-events",[oa((function(t){e.shortcuts.add("ctrl+F9","focus statusbar",(function(){return Rg.focusIn(t)}))})),ia((function(t){e.shortcuts.remove("ctrl+F9")}))])])}}function f(t,r){var o,i,a,c,u,s,l,f="node"===t?h.anchors.node(r):h.anchors.cursor(),d=(o=e,i=t,a=v(),c={lastElement:y.get,isReposition:function(){return ue(b.get(),0)},getMode:function(){return ff.getMode(n)}},"line"===i?{bubble:xu(12,0,FO),layouts:{onLtr:function(){return[fc]},onRtl:function(){return[dc]}},overrides:jO}:{bubble:xu(0,12,FO,1/12),layouts:(u=o,s=c,l=i,a?{onLtr:function(e){return[Zc,Gc,Kc,Xc,Yc,Jc].concat(m(e))},onRtl:function(e){return[Zc,Kc,Gc,Yc,Xc,Jc].concat(m(e))}}:{onLtr:function(e){return[Jc,Zc,Xc,Gc,Yc,Kc].concat(m(e))},onRtl:function(e){return[Jc,Zc,Yc,Kc,Xc,Gc].concat(m(e))}}),overrides:jO});function m(e){return uO(l)?[(t=e,function(e,n,r,o,i){var a=sO(u,o,t,s,i),c=S(S({},e),{y:i.y,height:i.height});return S(S({},a(c,n,r,o,i)),{alwaysFit:!0})})]:[];var t}return Gr(f,d)}function d(e,t){var r,a,u,s;z.cancel(),i()&&(r=x(e),u=f(a=e[0].position,t),w.set(a),b.set(1),yt(s=k.element,"display"),ue(Ee(t,y.get(),Ve),!0)||(Xo(s,$O),ff.reset(n,k)),ap.showWithinBounds(k,l(r),{anchor:u,transition:{classes:[$O],mode:"placement"}},(function(){return ye.some(o())})),t.fold(y.clear,y.set),c()&&dt(s,"display","none"))}var m,g,p=r.backstage,h=p.shared,v=fn().deviceType.isTouch,y=pu(),b=pu(),w=pu(),k=Oa((m={sink:n,onEscape:function(){return e.focus(),ye.some(!0)}},g=Lr([]),ap.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(e){g.set([]),ap.getContent(e).each((function(e){yt(e.element,"visibility")})),Xo(e.element,WO),yt(e.element,"width")},inlineBehaviours:nu([mm("context-toolbar-events",[Do(Ti(),(function(e,t){"width"===t.event.raw.propertyName&&(Xo(e.element,WO),yt(e.element,"width"))})),Co(qO,(function(e,t){var n=e.element;yt(n,"width");var r=Ct(n);ap.setContent(e,t.event.contents),Ko(n,WO);var o=Ct(n);dt(n,"width",r+"px"),ap.getContent(e).each((function(e){t.event.focus.bind((function(e){return zc(e),Tc(n)})).orThunk((function(){return Rg.focusIn(e),Sc(pn(n))}))})),lp.setTimeout((function(){dt(e.element,"width",o+"px")}),0)})),Co(VO,(function(e,t){ap.getContent(e).each((function(t){g.set(g.get().concat([{bar:t,focus:Sc(pn(e.element))}]))})),bo(e,qO,{contents:t.event.forwardContents,focus:ye.none()})})),Co(UO,(function(e,t){Q(g.get()).each((function(t){g.set(g.get().slice(0,g.get().length-1)),bo(e,qO,{contents:Ea(t.bar),focus:t.focus})}))}))]),Rg.config({mode:"special",onEscape:function(e){return Q(g.get()).fold((function(){return m.onEscape()}),(function(t){return yo(e,UO),ye.some(!0)}))}})]),lazySink:function(){return Ln.value(m.sink)}}))),_=Pe((function(){return dO(t,(function(e){var t=x([e]);bo(k,VO,{forwardContents:l(t)})}))})),x=function(t){var n=e.ui.registry.getAll().buttons,o=_(),i=S(S({},n),o.formNavigators),a=iv(e)===yh.scrolling?yh.scrolling:yh.default,c=U(P(t,(function(t){return"contexttoolbar"===t.type?RO(e,{buttons:i,toolbar:t.items,allowToolbarGroups:!1},r,ye.some(["form:"])):(n=h.providers,HO(t,n));var n})));return IC({type:a,uid:Bo("context-toolbar"),initGroups:c,onEscape:ye.none,cyclicKeying:!0,providers:h.providers})},z=vp((function(){e.hasFocus()&&!e.removed&&(Yo(k.element,$O)?z.throttle():fO(_(),e).fold(u,(function(e){d(e.toolbars,ye.some(e.elem))})))}),17);e.on("init",(function(){e.on("remove",u),e.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",s),e.on("click keyup focus SetContent",z.throttle),e.on(IO,u),e.on("contexttoolbar-show",(function(t){ae(_().lookupTable,t.toolbarKey).each((function(n){d([n],le(t.target!==e,t.target)),ap.getContent(k).each(Rg.focusIn)}))})),e.on("focusout",(function(t){lp.setEditorTimeout(e,(function(){Tc(n.element).isNone()&&Tc(k.element).isNone()&&u()}),0)})),e.on("SwitchMode",(function(){e.mode.isReadOnly()&&u()})),e.on("AfterProgressState",(function(t){t.state?u():e.hasFocus()&&z.throttle()})),e.on("NodeChange",(function(e){Tc(k.element).fold(z.throttle,a)}))}))}(tS=eS=eS||{})[tS.SemiColon=0]="SemiColon",tS[tS.Space=1]="Space";var gO,pO,hO,vO=[{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"}],yO=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],bO={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},wO={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},kO=Object.freeze({__proto__:null,events:function(e,t){function n(n,r){e.updateState.each((function(e){var o=e(n,r);t.set(o)})),e.renderComponents.each((function(e){var o=P(e(r,t.get()),n.getSystem().build);Bs(n,o)}))}return ra([Co(Ni(),(function(t,r){var o,i=r;i.universal||(o=e.channel,_e(i.channels,o)&&n(t,i.data))})),oa((function(t,r){e.initialData.each((function(e){n(t,e)}))}))])}}),_O=Object.freeze({__proto__:null,getState:function(e,t,n){return n}}),xO=kc({fields:[mr("channel"),kr("renderComponents"),kr("updateState"),kr("initialData")],name:"reflecting",active:kO,apis:_O,state:Object.freeze({__proto__:null,init:function(){var e=Lr(ye.none());return{readState:function(){return e.get().getOr("none")},get:e.get,set:e.set,clear:function(){return e.set(ye.none())}}}})}),zO=u([mr("toggleClass"),mr("fetch"),Qa("onExecute"),Or("getHotspot",ye.some),Or("getAnchorOverrides",u({})),Vu(),Qa("onItemExecute"),kr("lazySink"),mr("dom"),Ja("onOpen"),Qs("splitDropdownBehaviours",[Jb,Rg,Ig]),Or("matchWidth",!1),Or("useMinWidth",!1),Or("eventOrder",{}),kr("role")].concat(aw())),CO=u([Yf({factory:fp,schema:[mr("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:nu([Ig.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each(wo)},buttonBehaviours:nu([jg.config({toggleOnExecute:!1,toggleClass:e.toggleClass})])}}}),Yf({factory:fp,schema:[mr("dom")],name:"button",defaults:function(){return{buttonBehaviours:nu([Ig.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each((function(n){e.onExecute(n,t)}))}}}}),Zf({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[mr("text")],name:"aria-descriptor"}),Jf({schema:[Ka()],name:"menu",defaults:function(e){return{onExecute:function(t,n){t.getSystem().getByUid(e.uid).each((function(r){e.onItemExecute(r,t,n)}))}}}}),Qb()]),SO=zl({name:"SplitDropdown",configFields:zO(),partFields:CO(),factory:function(e,t,n,r){function o(e){ud.getCurrent(e).each((function(e){hd.highlightFirst(e),Rg.focusIn(e)}))}function i(t){nw(e,s,t,r,o,Ib.HighlightFirst).get(a)}function c(t){return wo(gl(t,e,"button")),ye.some(!0)}var u,l=S(S({},ra([oa((function(t,n){ml(t,e,"aria-descriptor").each((function(e){var n=Bo("aria");ot(e.element,"id",n),ot(t.element,"aria-describedby",n)}))}))])),_m(ye.some(i))),f={repositionMenus:function(e){jg.isOn(e)&&iw(e)}};return{uid:e.uid,dom:e.dom,components:t,apis:f,eventOrder:S(S({},e.eventOrder),((u={})[Bi()]=["disabling","toggling","alloy.base.behaviour"],u)),events:l,behaviours:tl(e.splitDropdownBehaviours,[Jb.config({others:{sandbox:function(t){var n=gl(t,e,"arrow");return ow(e,t,{onOpen:function(){jg.on(n),jg.on(t)},onClose:function(){jg.off(n),jg.off(t)}})}}}),Rg.config({mode:"special",onSpace:c,onEnter:c,onDown:function(e){return i(e),ye.some(!0)}}),Ig.config({}),jg.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:e.role.getOr("button"),"aria-haspopup":!0}}}},apis:{repositionMenus:function(e,t){return e.repositionMenus(t)}}}),TO=Bo("focus-button"),OO=function(e,t,n){return XT(e,{toolbarButtonBehaviours:[].concat(0<n.length?[mm("toolbarButtonWith",n)]:[]),getApi:WT,onSetup:e.onSetup},t)},EO=function(e,t,n){return Gr(XT(e,{toolbarButtonBehaviours:[Bg.config({}),jg.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(0<n.length?[mm("toolbarToggleButtonWith",n)]:[]),getApi:$T,onSetup:e.onSetup},t))},AO=[{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"]}],DO={button:YT(Cp,(function(e,t){return n=t.backstage.shared.providers,OO(e,n,[]);var n})),togglebutton:YT(Sp,(function(e,t){return n=t.backstage.shared.providers,EO(e,n,[]);var n})),menubutton:YT(oC,(function(e,t){return Wk(e,"tox-tbtn",t.backstage,ye.none())})),splitbutton:YT((function(e){return ur("SplitButton",ZS,e)}),(function(e,t){return r=e,o=t.backstage.shared,l=Bo("channel-update-split-dropdown-display"),f=Lr(a),d={getApi:n,onSetup:r.onSetup},SO.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:S({"aria-pressed":!1},GT(r.tooltip,o.providers))},onExecute:function(e){r.onAction(n(e))},onItemExecute:function(e,t,n){},splitDropdownBehaviours:nu([Gv(o.providers.isDisabled),pv(),mm("split-dropdown-events",[Co(TO,Ig.focus),vv(d,f),yv(d,f)]),v_.config({})]),eventOrder:((i={})[$i()]=["alloy.base.behaviour","split-dropdown-events"],i),toggleClass:"tox-tbtn--enabled",lazySink:o.getSink,fetch:(c=n,u=r,s=o.providers,function(e){return qb((function(e){return u.fetch(e)})).map((function(t){return ye.from($y(Gr(Cy(Bo("menu-value"),t,(function(t){u.onItemAction(c(e),t)}),u.columns,u.presets,_h.CLOSE_ON_EXECUTE,u.select.getOr(x),s),{movement:Sy(u.columns,u.presets),menuBehaviours:Xh("auto"!==u.columns?[]:[oa((function(e,t){ch(e,4,Yp(u.presets)).each((function(t){var n=t.numRows,r=t.numColumns;Rg.setGridSize(e,n,r)}))}))])})))}))}),parts:{menu:Qp(0,r.columns,r.presets)},components:[SO.parts.button(KT(r.icon,r.text,ye.none(),ye.some(l),ye.some([jg.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),o.providers)),SO.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:Um("chevron-down",o.providers.icons)},buttonBehaviours:nu([Gv(o.providers.isDisabled),pv(),qm()])}),SO.parts["aria-descriptor"]({text:o.providers.translate("To open the popup, press Shift+Enter")})]});function n(e){return{isDisabled:function(){return gd.isDisabled(e)},setDisabled:function(t){return gd.set(e,t)},setIconFill:function(t,n){Ba(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){ot(e,"fill",n)}))},setIconStroke:function(t,n){Ba(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){ot(e,"stroke",n)}))},setActive:function(t){ot(e.element,"aria-pressed",t),Ba(e.element,"span").each((function(n){e.getSystem().getByDom(n).each((function(e){return jg.set(e,t)}))}))},isActive:function(){return Ba(e.element,"span").exists((function(t){return e.getSystem().getByDom(t).exists(jg.isOn)}))}}}var r,o,i,c,u,s,l,f,d})),grouptoolbarbutton:YT((function(e){return ur("GroupToolbarButton",XS,e)}),(function(e,t,n){var r,o,i,a,c,u,s=n.ui.registry.getAll().buttons,l=((r={})[ns]=t.backstage.shared.header.isPositionedAtTop()?Su.TopToBottom:Su.BottomToTop,r);if(iv(n)!==yh.floating)throw new Error("Toolbar groups are only supported when using floating toolbar mode");return i=t.backstage,a=function(e){return RO(n,{buttons:s,toolbar:e,allowToolbarGroups:!1},t,ye.none())},c=l,u=i.shared,yT.sketch({lazySink:u.getSink,fetch:function(){return qb((function(e){e(P(a(o.items),BC))}))},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:KT((o=e).icon,o.text,o.tooltip,ye.none(),ye.none(),u.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:c}}}})})),styleSelectButton:function(e,t){return XC(e,n=t.backstage,qT(e,S({type:"advanced"},n.styleselect)));var n},fontsizeSelectButton:function(e,t){return XC(e,t.backstage,jT(e))},fontSelectButton:function(e,t){return XC(e,t.backstage,FT(e))},formatButton:function(e,t){return XC(e,t.backstage,UT(e))},alignMenuButton:function(e,t){return XC(e,t.backstage,IT(e))}},MO={styleselect:DO.styleSelectButton,fontsizeselect:DO.fontsizeSelectButton,fontselect:DO.fontSelectButton,formatselect:DO.formatButton,align:DO.alignMenuButton},RO=function(e,t,n,r){var o,a,c,u,s=(c=t.toolbar,u=t.buttons,!1===c?[]:void 0===c||!0===c?(o=u,a=P(AO,(function(e){var t=I(e.items,(function(e){return Oe(o,e)||Oe(MO,e)}));return{name:e.name,items:t}})),I(a,(function(e){return 0<e.items.length}))):f(c)?P(c.split("|"),(function(e){return{items:e.trim().split(" ")}})):i(c,(function(e){return Oe(e,"name")&&Oe(e,"items")}))?c:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[]));return I(P(s,(function(o){var i=q(o.items,(function(o){return 0===o.trim().length?[]:(i=e,a=t.buttons,c=o,u=t.allowToolbarGroups,s=n,l=r,ae(a,c.toLowerCase()).orThunk((function(){return l.bind((function(e){return ee(e,(function(e){return ae(a,e+c.toLowerCase())}))}))})).fold((function(){return ae(MO,c.toLowerCase()).map((function(e){return e(i,s)})).orThunk((function(){return ye.none()}))}),(function(e){return"grouptoolbarbutton"!==e.type||u?(n=s,r=i,ae(DO,(t=e).type).fold((function(){return console.error("skipping button defined by",t),ye.none()}),(function(e){return ye.some(e(t,n,r))}))):(console.warn("Ignoring the '"+c+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),ye.none());var t,n,r})).toArray());var i,a,c,u,s,l}));return{title:ye.from(e.translate(o.name)),items:i}})),(function(e){return 0<e.items.length}))},NO=fn(),BO=NO.os.isiOS()&&NO.os.version.major<=12,PO=Object.freeze({__proto__:null,render:function(e,t,n,r,o){var i=Lr(0),a=t.outerContainer;BT(e);var c=Re.fromDom(o.targetNode),u=tt(pn(c)),s=t.mothership;pf(c,s,At),Fs(u,t.uiMothership),e.on("PostRender",(function(){JT(e,t,n,r),i.set(e.getWin().innerWidth),RT.setMenubar(a,FC(e,n)),RT.setSidebar(a,n.sidebar),function(e,t){function n(){var t=u.get();t.left===a.innerWidth&&t.top===a.innerHeight||(u.set(zn(a.innerWidth,a.innerHeight)),Vv(e))}function r(){var t=e.getDoc().documentElement,n=s.get();n.left===t.offsetWidth&&n.top===t.offsetHeight||(s.set(zn(t.offsetWidth,t.offsetHeight)),Vv(e))}function o(t){return e.fire("ScrollContent",t)}var i=e.dom,a=e.getWin(),c=e.getDoc().documentElement,u=Lr(zn(a.innerWidth,a.innerHeight)),s=Lr(zn(c.offsetWidth,c.offsetHeight));i.bind(a,"resize",n),i.bind(a,"scroll",o);var l=vu(Re.fromDom(e.getBody()),"load",r),f=t.uiMothership.element;e.on("hide",(function(){dt(f,"display","none")})),e.on("show",(function(){yt(f,"display")})),e.on("NodeChange",r),e.on("remove",(function(){l.unbind(),i.unbind(a,"resize",n),i.unbind(a,"scroll",o),a=null}))}(e,t)}));var l,f,d,m,p=RT.getSocket(a).getOrDie("Could not find expected socket element");BO&&(mt(p.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"}),f=function(){e.fire("ScrollContent")},d=null,m=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];g(d)&&(d=setTimeout((function(){d=null,f.apply(null,e)}),20))},l=hu(p.element,"scroll",m),e.on("remove",l.unbind)),gv(e,t),e.addCommand("ToggleSidebar",(function(t,n){RT.toggleSidebar(a,n),e.fire("ToggleSidebar")})),e.addQueryValueHandler("ToggleSidebar",(function(){return RT.whichSidebar(a)}));var h=iv(e);h!==yh.sliding&&h!==yh.floating||e.on("ResizeWindow ResizeEditor ResizeContent",(function(){var n=e.getWin().innerWidth;n!==i.get()&&(RT.refreshToolbar(t.outerContainer),i.set(n))}));var v={enable:function(){mv(t,!1)},disable:function(){mv(t,!0)},isDisabled:function(){return gd.isDisabled(a)}};return{iframeContainer:p.element.dom,editorContainer:a.element.dom,api:v}}}),LO=Object.freeze({__proto__:null,render:function(e,t,n,r,o){var i=t.mothership,a=t.uiMothership,c=t.outerContainer,u=Lr(null),s=Re.fromDom(o.targetNode),l=nO(e,s,t,r,u),f=e.getParam("toolbar_persist",!1,"boolean");function d(){var o;u.get()?l.show():(u.set(RT.getHeader(c).getOrDie()),Fs(o=lv(e),i),Fs(o,a),JT(e,t,n,r),RT.setMenubar(c,FC(e,n)),l.show(),function(e,t,n,r){function o(r){var o=rO(t,n.isPositionedAtTop()),a=o.pos,c=o.bounds,u=i.get(),s=u.pos,l=u.bounds,f=c.height!==l.height||c.width!==l.width;i.set({pos:a,bounds:c}),f&&Vv(e,r),n.isVisible()&&(s!==a?n.update(!0):f&&(n.updateMode(),n.repositionPopups()))}var i=Lr(rO(t,n.isPositionedAtTop()));r||(e.on("activate",n.show),e.on("deactivate",n.hide)),e.on("SkinLoaded ResizeWindow",(function(){return n.update(!0)})),e.on("NodeChange keydown",(function(e){lp.requestAnimationFrame((function(){return o(e)}))})),e.on("ScrollWindow",(function(){return n.updateMode()}));var a=gu();a.set(vu(Re.fromDom(e.getBody()),"load",o)),e.on("remove",(function(){a.clear()}))}(e,s,l,f),e.nodeChanged())}PT(e),e.on("show",d),e.on("hide",l.hide),f||(e.on("focus",d),e.on("blur",l.hide)),e.on("init",(function(){(e.hasFocus()||f)&&d()})),gv(e,t);var m={show:function(){l.show()},hide:function(){l.hide()},enable:function(){mv(t,!1)},disable:function(){mv(t,!0)},isDisabled:function(){return gd.isDisabled(c)}};return{editorContainer:c.element.dom,api:m}}}),IO="contexttoolbar-hide",HO=function(e,t){var n,r,o,i,c=e.label.fold((function(){return{}}),(function(e){return{"aria-label":e}})),u=Hm(Eb.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:e.initValue(),inputAttributes:c,selectOnFocus:!0,inputBehaviours:nu([Rg.config({mode:"special",onEnter:function(e){return s.findPrimary(e).map((function(e){return wo(e),!0}))},onLeft:function(e,t){return t.cut(),ye.none()},onRight:function(e,t){return t.cut(),ye.none()}})])})),s=(n=u,r=e.commands,o=t,i=P(r,(function(e){return Hm(("contextformtogglebutton"===e.type?function(e,t,n){var r=t.original;r.primary;var o=T(r,["primary"]),i=sr(Sp(S(S({},o),{type:"togglebutton",onAction:a})));return EO(i,n.backstage.shared.providers,[oO(e,t)])}:function(e,t,n){var r=t.original;r.primary;var o=T(r,["primary"]),i=sr(Cp(S(S({},o),{type:"button",onAction:a})));return OO(i,n.backstage.shared.providers,[oO(e,t)])})(n,e,{backstage:{shared:{providers:o}}}))})),{asSpecs:function(){return P(i,(function(e){return e.asSpec()}))},findPrimary:function(e){return ee(r,(function(t,n){return t.primary?ye.from(i[n]).bind((function(t){return t.getOpt(e)})).filter(k(gd.isDisabled)):ye.none()}))}});return[{title:ye.none(),items:[u.asSpec()]},{title:ye.none(),items:s.asSpecs()}]},FO={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},jO={maxHeightFunction:Pu(),maxWidthFunction:pT()},VO=Bo("forward-slide"),UO=Bo("backward-slide"),qO=Bo("change-slide-event"),WO="tox-pop--resizing",$O="tox-pop--transition",GO={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},KO=(hO=["Infinity",(gO="[0-9]+")+"\\."+XO(gO)+XO(pO="[eE][+-]?[0-9]+"),"\\."+gO+XO(pO),gO+XO(pO)].join("|"),new RegExp("^([+-]?(?:"+hO+"))(.*)$"));function XO(e){return"(?:"+e+")?"}function YO(e,t){function n(){var n=t.getOptions(e),r=t.getCurrent(e).map(t.hash),o=pu();return P(n,(function(n){return{type:"togglemenuitem",text:t.display(n),onSetup:function(i){function a(e){e&&(o.on((function(e){return e.setActive(!1)})),o.set(i)),i.setActive(e)}a(ue(r,t.hash(n)));var c=t.watcher(e,n,a);return function(){o.clear(),c()}},onAction:function(){return t.setCurrent(e,n)}}}))}e.ui.registry.addMenuButton(t.name,{tooltip:t.text,icon:t.icon,fetch:function(e){return e(n())},onSetup:t.onToolbarSetup}),e.ui.registry.addNestedMenuItem(t.name,{type:"nestedmenuitem",text:t.text,getSubmenuItems:n,onSetup:t.onMenuSetup})}function JO(e,t){return function(){e.execCommand("mceToggleFormat",!1,t)}}function ZO(e){var t,n;!function(e){fx.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(function(t,n){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:qC(e,t.name),onAction:JO(e,t.name)})}));for(var t=1;t<=6;t++){var n="h"+t;e.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+t,onSetup:qC(e,n),onAction:JO(e,n)})}}(e),t=e,fx.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(e){t.ui.registry.addButton(e.name,{tooltip:e.text,icon:e.icon,onAction:GC(t,e.action)})})),n=e,fx.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],(function(e){n.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onAction:GC(n,e.action),onSetup:qC(n,e.name)})}))}function QO(e,t){return WC(e,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",(function(n){n.setDisabled(e.mode.isReadOnly()||!e.undoManager[t]())}))}function eE(e){var t;e.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:GC(e,"mceToggleVisualAid")}),e.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:WC(t=e,"VisualAid",(function(e){e.setActive(t.hasVisual)})),onAction:GC(e,"mceToggleVisualAid")})}function tE(e,t){var n,r,o,i,a,c,s,l,f,d,m,g,p,v,y,b,w,k,_,x,z,C,T,O,E,A=e;xe([{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"}],(function(e){A.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onAction:GC(A,e.cmd),onSetup:qC(A,e.name)})})),A.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onAction:GC(A,"JustifyNone")}),ZO(O=e),E=O,fx.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(e){E.ui.registry.addMenuItem(e.name,{text:e.text,icon:e.icon,shortcut:e.shortcut,onAction:GC(E,e.action)})})),E.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:JO(E,"code")}),T=KC(0,m=f=t,IT(d=l=e)),d.ui.registry.addNestedMenuItem("align",{text:m.shared.providers.translate("Align"),getSubmenuItems:function(){return T.items.validateItems(T.getStyleItems())}}),v=KC(0,p=f,FT(g=l)),g.ui.registry.addNestedMenuItem("fontformats",{text:p.shared.providers.translate("Fonts"),getSubmenuItems:function(){return v.items.validateItems(v.getStyleItems())}}),y=l,w=S({type:"advanced"},(b=f).styleselect),k=KC(0,b,qT(y,w)),y.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return k.items.validateItems(k.getStyleItems())}}),x=KC(0,f,UT(_=l)),_.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return x.items.validateItems(x.getStyleItems())}}),C=KC(0,f,jT(z=l)),z.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return C.items.validateItems(C.getStyleItems())}}),(c=a=e).ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:QO(c,"hasUndo"),onAction:GC(c,"undo")}),c.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:QO(c,"hasRedo"),onAction:GC(c,"redo")}),(s=a).ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",disabled:!0,onSetup:QO(s,"hasUndo"),onAction:GC(s,"undo")}),s.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",disabled:!0,onSetup:QO(s,"hasRedo"),onAction:GC(s,"redo")}),function(e){var t;(t=e).addCommand("mceApplyTextcolor",(function(e,n){var r,o=e,i=n;(r=t).undoManager.transact((function(){r.focus(),r.formatter.apply(o,{value:i}),r.nodeChanged()}))})),t.addCommand("mceRemoveTextcolor",(function(e){var n,r=e;(n=t).undoManager.transact((function(){n.focus(),n.formatter.remove(r,{value:null},null,!0),n.nodeChanged()}))}));var n=Lr(Ry),r=Lr(Ry);xy(e,"forecolor","forecolor","Text color",n),xy(e,"backcolor","hilitecolor","Background color",r),zy(e,"forecolor","forecolor","Text color"),zy(e,"backcolor","hilitecolor","Background color")}(e),eE(e),(o=e).ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:WC(i=o,"NodeChange",(function(e){e.setDisabled(!i.queryCommandState("outdent"))})),onAction:GC(o,"outdent")}),o.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:GC(o,"indent")}),YO(n=e,FE),r=n,ye.from(r.getParam("content_langs",void 0,"array")).map((function(e){return{name:"language",text:"Language",icon:"language",getOptions:u(e),hash:function(e){return h(e.customCode)?e.code:e.code+"/"+e.customCode},display:function(e){return e.title},watcher:function(e,t,n){return e.formatter.formatChanged("lang",n,!1,{value:t.code,customValue:t.customCode}).unbind},getCurrent:function(e){return go(Re.fromDom(e.selection.getNode()),(function(e){return ye.some(e).filter($t).bind((function(e){return ct(e,"lang").map((function(t){return{code:t,customCode:ct(e,"data-mce-lang").getOrUndefined(),title:""}}))}))}))},setCurrent:function(e,t){return e.execCommand("Lang",!1,t)},onToolbarSetup:function(e){var t=gu();return e.setActive(r.formatter.match("lang",{},void 0,!0)),t.set(r.formatter.formatChanged("lang",e.setActive,!0)),t.clear}}})).each((function(e){return YO(n,e)}))}function nE(e,t){return{type:"makeshift",x:e,y:t}}function rE(e){return"longpress"===e.type||0===e.type.indexOf("touch")}function oE(e,t){return"contextmenu"===t.type||"longpress"===t.type?e.inline?function(e){if(rE(e)){var t=e.touches[0];return nE(t.pageX,t.pageY)}return nE(e.pageX,e.pageY)}(t):(n=e.getContentAreaContainer(),r=function(e){if(rE(e)){var t=e.touches[0];return nE(t.clientX,t.clientY)}return nE(e.clientX,e.clientY)}(t),o=nv.DOM.getPos(n),i=o.x,a=o.y,nE(r.x+i,r.y+a)):jE(e);var n,r,o,i,a}function iE(e,t,n){switch(n){case"node":return{type:"node",node:ye.some(Re.fromDom((r=e).selection.getNode())),root:Re.fromDom(r.getBody())};case"point":return oE(e,t);case"selection":return jE(e)}var r}function aE(e,t,n,r,o,i){function a(){var a,c,u,m,g,p,h,v,y,b,w=n();u=w,m=r,g=o,h=!(f||s||l&&d),y=iE(a=e,c=t,v=p=i),b=S({bubble:xu(0,"point"===v?12:0,UE),layouts:VE,overrides:{maxWidthFunction:pT(),maxHeightFunction:Pu()}},y),Uk(u,_h.CLOSE_ON_EXECUTE,m,!0).map((function(e){c.preventDefault(),ap.showMenuWithinBounds(g,{anchor:b},{menu:{markers:Zp("normal"),highlightImmediately:h},data:e,type:"horizontal"},(function(){return ye.some(cO(a,m.shared,"node"===p?"node":"selection"))})),a.fire(IO)}))}var c,u=fn(),s=u.os.isiOS(),l=u.os.isOSX(),f=u.os.isAndroid(),d=u.deviceType.isTouch();(l||s)&&"node"!==i?(c=function(){(function(e){function t(){lp.setEditorTimeout(e,(function(){e.selection.setRng(n)}),10),i()}var n=e.selection.getRng();function r(e){e.preventDefault(),e.stopImmediatePropagation()}function o(){return i()}e.once("touchend",t),e.on("mousedown",r,!0),e.once("longpresscancel",o);var i=function(){e.off("touchend",t),e.off("longpresscancel",o),e.off("mousedown",r)}})(e),a()},function(e,t){var n=e.selection;if(!(n.isCollapsed()||t.touches.length<1)){var r=t.touches[0],o=n.getRng();return ws(e.getWin(),ms.domRange(o)).exists((function(e){return e.left<=r.clientX&&e.right>=r.clientX&&e.top<=r.clientY&&e.bottom>=r.clientY}))}}(e,t)?c():(e.once("selectionchange",c),e.once("touchend",(function(){return e.off("selectionchange",c)})))):a()}function cE(e){return"string"==typeof e?e.split(/[ ,]/):e}function uE(e){return e.getParam("contextmenu_never_use_native",!1,"boolean")}function sE(e){return f(e)?"|"===e:"separator"===e.type}function lE(e,t){if(0===t.length)return e;var n=Q(e).filter((function(e){return!sE(e)})).fold((function(){return[]}),(function(e){return[qE]}));return e.concat(n).concat(t).concat([qE])}function fE(e,t){return"longpress"!==t.type&&(2!==t.button||t.target===e.getBody()&&""===t.pointerType)}function dE(e,t){return fE(e,t)?e.selection.getStart(!0):t.target}function mE(e,t,n){function r(e){return ap.hide(a)}function o(t){var r;uE(e)&&t.preventDefault(),t.ctrlKey&&!uE(e)||!1===e.getParam("contextmenu")||(r=function(e,t){var n=e.getParam("contextmenu_avoid_overlap","","string"),r=fE(e,t)?"selection":"point";if(me(n)){var o=dE(e,t);return Gy(Re.fromDom(o),n)?"node":r}return r}(e,t),(i()?aE:function(e,t,n,r,o,i){var a=n(),c=iE(e,t,i);Uk(a,_h.CLOSE_ON_EXECUTE,r,!1).map((function(e){t.preventDefault(),ap.showMenuAt(o,{anchor:c},{menu:{markers:Zp("normal")},data:e})}))})(e,t,(function(){var n,r,o,i=dE(e,t),a=e.ui.registry.getAll(),c=(o=(r=e).ui.registry.getAll().contextMenus,ye.from(r.getParam("contextmenu")).map(cE).getOrThunk((function(){return I(cE("link linkchecker image imagetools table spellchecker configurepermanentpen"),(function(e){return Oe(o,e)}))}))),u=a.contextMenus,s=i;return 0<(n=F(c,(function(e,t){return ae(u,t.toLowerCase()).map((function(t){var n=t.update(s);if(f(n))return lE(e,n.split(" "));if(0<n.length){var r=P(n,WE);return lE(e,r)}return e})).getOrThunk((function(){return e.concat([t])}))}),[])).length&&sE(n[n.length-1])&&n.pop(),n}),n,a,r))}var i=fn().deviceType.isTouch,a=Oa(ap.sketch({dom:{tag:"div"},lazySink:t,onEscape:function(){return e.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:nu([mm("dismissContextMenu",[Co(Ki(),(function(t,n){yf.close(t),e.focus()}))])])}));e.on("init",(function(){var t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(i()?"":" ResizeWindow");e.on(t,r),e.on("longpress contextmenu",o)}))}function gE(e){return function(t){return t.translate(-e.left,-e.top)}}function pE(e){return function(t){return t.translate(e.left,e.top)}}function hE(e){return function(t,n){return F(e,(function(e,t){return t(e)}),zn(t,n))}}function vE(e,t,n){return e.fold(hE([pE(n),gE(t)]),hE([gE(t)]),hE([]))}function yE(e,t,n){return e.fold(hE([pE(n)]),hE([]),hE([pE(t)]))}function bE(e,t,n){return e.fold(hE([]),hE([gE(n)]),hE([pE(t),gE(n)]))}function wE(e,t,n){var r=e.fold((function(e,t){return{position:ye.some("absolute"),left:ye.some(e+"px"),top:ye.some(t+"px")}}),(function(e,t){return{position:ye.some("absolute"),left:ye.some(e-n.left+"px"),top:ye.some(t-n.top+"px")}}),(function(e,t){return{position:ye.some("fixed"),left:ye.some(e+"px"),top:ye.some(t+"px")}}));return S({right:ye.none(),bottom:ye.none()},r)}function kE(e,t,n,r){function o(e,o){return function(i,a){var c=e(t,n,r);return o(i.getOr(c.left),a.getOr(c.top))}}return e.fold(o(bE,GE),o(yE,KE),o(vE,XE))}function _E(e,t){var n=at(e,t);return h(n)?NaN:parseInt(n,10)}function xE(e,t,n,r,o,i){var a,c,u,s,l,f,d=(a=n,c=r,l=_E(s=e.element,(u=t).leftAttr),f=_E(s,u.topAttr),(isNaN(l)||isNaN(f)?ye.none():ye.some(zn(l,f))).fold((function(){return a}),(function(e){return XE(e.left+c.left,e.top+c.top)}))),m=(t.mustSnap?YE:JE)(e,t,d,o,i),g=vE(d,o,i),p=t,h=g,v=e.element;return ot(v,p.leftAttr,h.left+"px"),ot(v,p.topAttr,h.top+"px"),m.fold((function(){return{coord:XE(g.left,g.top),extra:ye.none()}}),(function(e){return{coord:e.output,extra:e.extra}}))}function zE(e,t,n,r){return ee(e,(function(e){var o,i,a=e.sensor,c=e.range.left,u=e.range.top,s=yE(t,o=n,i=r),l=yE(a,o,i);return Math.abs(s.left-l.left)<=c&&Math.abs(s.top-l.top)<=u?ye.some({output:kE(e.output,t,n,r),extra:e.extra}):ye.none()}))}function CE(e,t){var n;e.getSystem().addToGui(t),Ke((n=t).element).filter($t).each((function(e){ht(e,"z-index").each((function(t){ot(e,QE,t)})),dt(e,"z-index",pt(n.element,"z-index"))}))}function SE(e){Ke(e.element).filter($t).each((function(e){ct(e,QE).fold((function(){return yt(e,"z-index")}),(function(t){return dt(e,"z-index",t)})),st(e,QE)})),e.getSystem().removeFromGui(e)}function TE(e,t,n){return e.getSystem().build(lb.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[t]},events:n}))}function OE(e,t){return{bounds:e.getBounds(),height:_t(t.element),width:St(t.element)}}function EE(e,t,n,r,o){var i=n.update(r,o),a=n.getStartData().getOrThunk((function(){return OE(t,e)}));i.each((function(n){var r,o,i,c,s,l,f,d,m,g,p,h,v,y,b,w,k,_,x,z,C,S,T,O,E,A=e,D=a,M=n,R=(r=t).getTarget(A.element);r.repositionTarget&&(o=Bt(qe(A.element)),i=Vz(R),S=ht(C=R,"left"),T=ht(C,"top"),O=ht(C,"position"),E=function(e,t,n){return("fixed"===n?XE:GE)(parseInt(e,10),parseInt(t,10))},c=(S.isSome()&&T.isSome()&&O.isSome()?ye.some(E(S.getOrDie(),T.getOrDie(),O.getOrDie())):ye.none()).getOrThunk((function(){var e=zt(C);return KE(e.left,e.top)})),s=A,l=r.snaps,f=c,d=o,m=i,g=M,p=D,v=l.fold((function(){var e,t,n=vE((e=g.left,t=g.top,f.fold((function(n,r){return GE(n+e,r+t)}),(function(n,r){return KE(n+e,r+t)}),(function(n,r){return XE(n+e,r+t)}))),d,m);return XE(n.left,n.top)}),(function(e){var t=xE(s,e,f,g,d,m);return t.extra.each((function(t){e.onSensor(s,t)})),t.coord})),y=d,b=m,w=(h=p).bounds,k=yE(v,y,b),_=Wc(k.left,w.x,w.x+w.width-h.width),x=Wc(k.top,w.y,w.y+w.height-h.height),z=KE(_,x),gt(R,wE(v.fold((function(){var e=bE(z,y,b);return GE(e.left,e.top)}),u(z),(function(){var e=vE(z,y,b);return XE(e.left,e.top)})),0,i))),r.onDrag(A,R,M)}))}function AE(e,t,n,r){t.each(SE),n.snaps.each((function(t){var n,r;n=t,st(r=e.element,n.leftAttr),st(r,n.topAttr)}));var o=n.getTarget(e.element);r.reset(),n.onDrop(e,o)}function DE(e){return function(t,n){function r(e){n.setStartData(OE(t,e))}return ra(O([Co(qi(),(function(e){n.getStartData().each((function(){return r(e)}))}))],e(t,n,r),!0))}}function ME(e,t,n){return[Co(gi(),(function(r,o){var i,a,c,u,s;0===o.event.raw.button&&(o.stop(),c={drop:i=function(){return AE(r,ye.some(u),e,t)},delayDrop:(a=Ky(i,200)).schedule,forceDrop:i,move:function(n){a.cancel(),EE(r,e,t,nA,n)}},u=TE(r,e.blockerClass,(s=c,ra([Co(gi(),s.forceDrop),Co(vi(),s.drop),Co(pi(),(function(e,t){s.move(t.event)})),Co(hi(),s.delayDrop)]))),n(r),CE(r,u))}))]}function RE(e,t,n){function r(n){AE(n,o.get(),e,t),o.clear()}var o=pu();return[Co(li(),(function(i,a){function c(){return r(i)}a.stop();var u,s,l,f=TE(i,e.blockerClass,(s=u=c,l=function(n){EE(i,e,t,oA,n)},ra([Co(li(),s),Co(di(),u),Co(mi(),u),Co(fi(),(function(e,t){l(t.event)}))])));o.set(f),n(i),CE(i,f)})),Co(fi(),(function(n,r){r.stop(),EE(n,e,t,oA,r.event)})),Co(di(),(function(e,t){t.stop(),r(e)})),Co(mi(),r)]}function NE(e,t,n,r,o,i){return e.fold((function(){return cA.snap({sensor:KE(n-20,r-20),range:zn(o,i),output:KE(ye.some(n),ye.some(r)),extra:{td:t}})}),(function(e){var o=n-20,i=r-20,a=e.element.dom.getBoundingClientRect();return cA.snap({sensor:KE(o,i),range:zn(40,40),output:KE(ye.some(n-a.width/2),ye.some(r-a.height/2)),extra:{td:t}})}))}function BE(e,t,n){return{getSnapPoints:e,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(e,r){var o=r.td,i=t.get(),a=o;i.exists((function(e){return Ve(e,a)}))||(t.set(o),n(o))},mustSnap:!0}}function PE(e){return Hm(fp.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:nu([cA.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:e}),v_.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))}function LE(e,t){function n(e){var n=Ft(e);return NE(g.getOpt(t),e,n.x,n.y,n.width,n.height)}function r(e){var n=Ft(e);return NE(p.getOpt(t),e,n.right,n.bottom,n.width,n.height)}function o(t,n,r,o){var i=r(n);cA.snapTo(t,i),function(t){var r=n.dom.getBoundingClientRect();yt(t.element,"display");var i=Ge(Re.fromDom(e.getBody())).dom.innerHeight,a=r[o]<0,c=r[o]>i;(a||c)&&dt(t.element,"display","none")}(t)}function i(e){return o(h,e,n,"top")}function a(e){return o(v,e,r,"bottom")}var c=Lr([]),u=Lr([]),s=Lr(!1),l=pu(),f=pu(),d=BE((function(){return P(c.get(),n)}),l,(function(t){f.get().each((function(n){e.fire("TableSelectorChange",{start:t,finish:n})}))})),m=BE((function(){return P(u.get(),r)}),f,(function(t){l.get().each((function(n){e.fire("TableSelectorChange",{start:n,finish:t})}))})),g=PE(d),p=PE(m),h=Oa(g.asSpec()),v=Oa(p.asSpec());fn().deviceType.isTouch()&&(e.on("TableSelectionChange",(function(e){s.get()||(Ps(t,h),Ps(t,v),s.set(!0)),l.set(e.start),f.set(e.finish),e.otherCells.each((function(t){c.set(t.upOrLeftCells),u.set(t.downOrRightCells),i(e.start),a(e.finish)}))})),e.on("ResizeEditor ResizeWindow ScrollContent",(function(){l.get().each(i),f.get().each(a)})),e.on("TableSelectionClear",(function(){s.get()&&(Is(h),Is(v),s.set(!1)),l.clear(),f.clear()})))}var IE,HE,FE={name:"lineheight",text:"Line height",icon:"line-height",getOptions:function(e){return e.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},hash:function(e){return t=["fixed","relative","empty"],ye.from(KO.exec(e)).bind((function(e){var n=Number(e[1]),r=e[2],o=r;return R(t,(function(e){return R(GO[e],(function(e){return o===e}))}))?ye.some({value:n,unit:r}):ye.none()})).map((function(e){return e.value+e.unit})).getOr(e);var t},display:s,watcher:function(e,t,n){return e.formatter.formatChanged("lineheight",n,!1,{value:t}).unbind},getCurrent:function(e){return ye.from(e.queryCommandValue("LineHeight"))},setCurrent:function(e,t){return e.execCommand("LineHeight",!1,t)}},jE=function(e){return{type:"selection",root:Re.fromDom(e.selection.getNode())}},VE={onLtr:function(){return[Zc,Gc,Kc,Xc,Yc,Jc,up,sp,Mm,Am,Dm,Em]},onRtl:function(){return[Zc,Kc,Gc,Yc,Xc,Jc,up,sp,Dm,Em,Mm,Am]}},UE={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"]},qE={type:"separator"},WE=function(e){function t(e){return{text:e.text,icon:e.icon,disabled:e.disabled,shortcut:e.shortcut}}var n;if(f(e))return e;switch(e.type){case"separator":return qE;case"submenu":return S(S({type:"nestedmenuitem"},t(e)),{getSubmenuItems:function(){var t=e.getSubmenuItems();return f(t)?t:P(t,WE)}});default:return S(S({type:"menuitem"},t(e)),{onAction:(n=e.onAction,function(){return n()})})}},$E=Ir([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),GE=$E.offset,KE=$E.absolute,XE=$E.fixed,YE=function(e,t,n,r,o){var i=t.getSnapPoints(e);return zE(i,n,r,o).orThunk((function(){return F(i,(function(e,t){var i,a,c,u,s,l,f,d=(i=t.sensor,t.range.left,t.range.top,u=yE(n,a=r,c=o),s=yE(i,a,c),l=Math.abs(u.left-s.left),f=Math.abs(u.top-s.top),zn(l,f));return e.deltas.fold((function(){return{deltas:ye.some(d),snap:ye.some(t)}}),(function(n){return(d.left+d.top)/2<=(n.left+n.top)/2?{deltas:ye.some(d),snap:ye.some(t)}:e}))}),{deltas:ye.none(),snap:ye.none()}).snap.map((function(e){return{output:kE(e.output,n,r,o),extra:e.extra}}))}))},JE=function(e,t,n,r,o){return zE(t.getSnapPoints(e),n,r,o)},ZE=Object.freeze({__proto__:null,snapTo:function(e,t,n,r){var o,i,a,c=t.getTarget(e.element);t.repositionTarget&&(o=Bt(qe(e.element)),i=Vz(c),gt(c,wE({coord:kE((a=r).output,a.output,o,i),extra:a.extra}.coord,0,i)))}}),QE="data-initial-z-index",eA=Tr("snaps",[mr("getSnapPoints"),Ja("onSensor"),mr("leftAttr"),mr("topAttr"),Or("lazyViewport",Nn),Or("mustSnap",!1)]),tA=[Or("useFixed",x),mr("blockerClass"),Or("getTarget",s),Or("onDrag",a),Or("repositionTarget",!0),Or("onDrop",a),Nr("getBounds",Nn),eA],nA=Object.freeze({__proto__:null,getData:function(e){return ye.from(zn(e.x,e.y))},getDelta:function(e,t){return zn(t.left-e.left,t.top-e.top)}}),rA=O(O([],tA,!0),[tc("dragger",{handlers:DE(ME)})],!1),oA=Object.freeze({__proto__:null,getData:function(e){var t,n=e.raw.touches;return 1===n.length?(t=n[0],ye.some(zn(t.clientX,t.clientY))):ye.none()},getDelta:function(e,t){return zn(t.left-e.left,t.top-e.top)}}),iA=O(O([],tA,!0),[tc("dragger",{handlers:DE(RE)})],!1),aA=O(O([],tA,!0),[tc("dragger",{handlers:DE((function(e,t,n){return O(O([],ME(e,t,n),!0),RE(e,t,n),!0)}))})],!1),cA=_c({branchKey:"mode",branches:Object.freeze({__proto__:null,mouse:rA,touch:iA,mouseOrTouch:aA}),name:"dragging",active:{events:function(e,t){return e.dragger.handlers(e,t)}},extra:{snap:function(e){return{sensor:e.sensor,range:e.range,output:e.output,extra:ye.from(e.extra)}}},state:Object.freeze({__proto__:null,init:function(){var e=ye.none(),t=ye.none(),n=u({});return _a({readState:n,reset:function(){e=ye.none(),t=ye.none()},update:function(t,n){return t.getData(n).bind((function(n){return r=t,o=n,i=e.map((function(e){return r.getDelta(e,o)})),e=ye.some(o),i;var r,o,i}))},getStartData:function(){return t},setStartData:function(e){t=ye.some(e)}})}}),apis:ZE});function uA(e,t,n){var r,o,i,a,c,u,s=Re.fromDom(e.getContainer());te((r=e,o=t,i=n,a=kt(s),c=Ct(s),(u={}).height=eO(a+o.top,dh(r),gh(r)),i===IE.Both&&(u.width=eO(c+o.left,fh(r),mh(r))),u),(function(e,t){return dt(s,t,QT(e)),0})),e.fire("ResizeEditor")}function sA(e,t,n,r){return uA(e,zn(20*n,20*r),t),ye.some(!0)}function lA(e,t){var n,r,o,i,a,c,u,s,l,f,d,m,g,p,h,v;return{dom:{tag:"div",classes:["tox-statusbar"]},components:(v=[],e.getParam("elementpath",!0,"boolean")&&v.push((g=e,h=t,(p={}).delimiter||(p.delimiter="»"),{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:nu([Rg.config({mode:"flow",selector:"div[role=button]"}),gd.config({disabled:h.isDisabled}),pv(),pb.config({}),Bg.config({}),mm("elementPathEvents",[oa((function(e,t){g.shortcuts.add("alt+F11","focus statusbar elementpath",(function(){return Rg.focusIn(e)})),g.on("NodeChange",(function(t){var n,r,o=function(e){for(var t=[],n=e.length;0<n--;){var r=e[n];if(1===r.nodeType&&!function(e){if(1===e.nodeType){if("BR"===e.nodeName||e.getAttribute("data-mce-bogus"))return 1;if("bookmark"===e.getAttribute("data-mce-type"))return 1}}(r)){var o=g.fire("ResolveName",{name:r.nodeName.toLowerCase(),target:r});if(o.isDefaultPrevented()||t.push({name:o.name,element:r}),o.isPropagationStopped())break}}return t}(t.parents);0<o.length?Bg.set(e,(n=P(o||[],(function(e,t){return fp.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":t,"tab-index":-1,"aria-level":t+1},innerHtml:e.name},action:function(t){g.focus(),g.selection.select(e.element),g.nodeChanged()},buttonBehaviours:nu([Jv(h.isDisabled),pv()])})})),r={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+p.delimiter+" "}},F(n.slice(1),(function(e,t){var n=e;return n.push(r),n.push(t),n}),[n[0]]))):Bg.set(e,[])}))}))])]),components:[]})),e.hasPlugin("wordcount")&&v.push((f=e,d=t,fp.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:nu([Jv(d.isDisabled),pv(),pb.config({}),Bg.config({}),Ef.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),mm("wordcount-events",[ca((function(e){var t=Ef.getValue(e),n="words"===t.mode?"characters":"words";Ef.setValue(e,{mode:n,count:t.count}),y(e,t.count,n)})),oa((function(e){f.on("wordCountUpdate",(function(t){var n=Ef.getValue(e).mode;Ef.setValue(e,{mode:n,count:t.wordCount}),y(e,t.wordCount,n)}))}))])]),eventOrder:((m={})[Bi()]=["disabling","alloy.base.behaviour","wordcount-events"],m)}))),e.getParam("branding",!0,"boolean")&&v.push({dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:'<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&utm_medium=poweredby&utm_source=tinymce&utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+(l=dp.translate(["Powered by {0}","Tiny"]))+'">'+l+"</a>"}}),n=0<v.length?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:v}]:[],i=t,c=!(a=o=e).hasPlugin("autoresize"),r=(s=!1===(u=a.getParam("resize",c))?IE.None:"both"===u?IE.Both:IE.Vertical)===IE.None?ye.none():ye.some($m("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:i.translate("Resize")},behaviours:[cA.config({mode:"mouse",repositionTarget:!1,onDrag:function(e,t,n){return uA(o,n,s)},blockerClass:"tox-blocker"}),Rg.config({mode:"special",onLeft:function(){return sA(o,s,-1,0)},onRight:function(){return sA(o,s,1,0)},onUp:function(){return sA(o,s,0,-1)},onDown:function(){return sA(o,s,0,1)}}),pb.config({}),Ig.config({})]},i.icons)),n.concat(r.toArray()))};function y(e,t,n){return Bg.set(e,[ii(d.translate(["{0} "+n,t[n]]))])}}function fA(e){function t(){return d.bind(RT.getHeader)}function n(){return Ln.value(w)}function r(){return d.bind((function(e){return RT.getThrobber(e)})).getOrDie("Could not find throbber element")}var o,i,c,u,s=e.inline,l=s?LO:PO,f=dv(e)?KS:IS,d=ye.none(),m=fn(),g=m.browser.isIE()?["tox-platform-ie"]:[],p=m.deviceType.isTouch()?["tox-platform-touch"]:[],h=cv(e),v=lv(e),y=dp.isRtl()?{attributes:{dir:"rtl"}}:{},b={attributes:((o={})[ns]=h?Su.BottomToTop:Su.TopToBottom,o)},w=Oa((i=Ve(bn(),v)&&"grid"===pt(v,"display"),c={dom:S({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(g).concat(p)},y),behaviours:nu([ff.config({useFixed:function(){return f.isDocked(t)}})])},u={dom:{styles:{width:document.body.clientWidth+"px"}},events:ra([Co(Wi(),(function(){dt(Q.element,"width",document.body.clientWidth+"px")}))])},Gr(c,i?u:{}))),k=Hm({dom:{tag:"div",classes:["tox-anchorbar"]}}),_=Fz(w,e,(function(){return d.bind((function(e){return k.getOpt(e)})).getOrDie("Could not find a anchor bar element")})),x=RT.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:_,onEscape:function(){e.focus()}}),z=iv(e),C=RT.parts.toolbar(S({dom:{tag:"div",classes:["tox-toolbar"]},getSink:n,providers:_.shared.providers,onEscape:function(){e.focus()},type:z,lazyToolbar:function(){return d.bind((function(e){return RT.getToolbar(e)})).getOrDie("Could not find more toolbar element")},lazyHeader:function(){return t().getOrDie("Could not find header element")}},b)),T=RT.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:_.shared.providers,onEscape:function(){e.focus()},type:z}),O=RT.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),E=RT.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),A=RT.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:_}),D=e.getParam("statusbar",!0,"boolean")&&!s?ye.some(lA(e,_.shared.providers)):ye.none(),M={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[O,E]},R=ov(e),N=hh(e),B=ph(e),P=RT.parts.header({dom:S({tag:"div",classes:["tox-editor-header"]},b),components:U([B?[x]:[],R?[T]:N?[C]:[],sv(e)?[]:[k.asSpec()]]),sticky:dv(e),editor:e,sharedBackstage:_.shared}),L=U([h?[]:[P],s?[]:[M],h?[P]:[]]),I=U([[{dom:{tag:"div",classes:["tox-editor-container"]},components:L}],s?[]:D.toArray(),[A]]),H=fv(e),F=S(S({role:"application"},dp.isRtl()?{dir:"rtl"}:{}),H?{"aria-hidden":"true"}:{}),j=Oa(RT.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(s?["tox-tinymce-inline"]:[]).concat(h?["tox-tinymce--toolbar-bottom"]:[]).concat(p).concat(g),styles:S({visibility:"hidden"},H?{opacity:"0",border:"0"}:{}),attributes:F},components:I,behaviours:nu([pv(),gd.config({disableClass:"tox-tinymce--disabled"}),Rg.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])}));d=ye.some(j);e.shortcuts.add("alt+F9","focus menubar",(function(){RT.focusMenubar(j)})),e.shortcuts.add("alt+F10","focus toolbar",(function(){RT.focusToolbar(j)})),e.addCommand("ToggleToolbarDrawer",(function(){RT.toggleToolbarDrawer(j)})),e.addQueryStateHandler("ToggleToolbarDrawer",(function(){return RT.isToolbarDrawerToggled(j)}));var V,q,W,$,G,K,X,Y,J,Z=tb(j),Q=tb(w);function ee(){var t,n,r,o,i,a,c=QT((o=sh(r=n=e),i=dh(r),a=gh(r),ZT(o).map((function(e){return eO(e,i,a)})).getOr(sh(n)))),u=QT(tO(t=e).getOr(lh(t)));return e.inline||(vt("div","width",u)&&dt(j.element,"width",u),vt("div","height",c)?dt(j.element,"height",c):dt(j.element,"height","200px")),c}return V=e,q=Z,W=Q,$=xc(),G=hu($,"touchstart",oe),K=hu($,"touchmove",(function(e){return te(Vi(),e)})),X=hu($,"touchend",(function(e){return te(Ui(),e)})),Y=hu($,"mousedown",oe),J=hu($,"mouseup",(function(e){0===e.raw.button&&re(kf(),{target:e.target})})),V.on("PostRender",(function(){V.on("click",ie),V.on("tap",ie),V.on("mouseup",ae),V.on("mousedown",ce),V.on("ScrollWindow",se),V.on("ResizeWindow",le),V.on("ResizeEditor",fe),V.on("AfterProgressState",de),V.on("DismissPopups",me)})),V.on("remove",(function(){V.off("click",ie),V.off("tap",ie),V.off("mouseup",ae),V.off("mousedown",ce),V.off("ScrollWindow",se),V.off("ResizeWindow",le),V.off("ResizeEditor",fe),V.off("AfterProgressState",de),V.off("DismissPopups",me),Y.unbind(),G.unbind(),K.unbind(),X.unbind(),J.unbind()})),V.on("detach",(function(){js(q),js(W),q.destroy(),W.destroy()})),{mothership:Z,uiMothership:Q,backstage:_,renderUI:function(){var o,i;f.setup(e,_.shared,t),tE(e,_),mE(e,n,_),i=(o=e).ui.registry.getAll().sidebars,xe(Ce(i),(function(e){function t(){return ue(ye.from(o.queryCommandValue("ToggleSidebar")),e)}var n=i[e];o.ui.registry.addToggleButton(e,{icon:n.icon,tooltip:n.tooltip,onAction:function(n){o.execCommand("ToggleSidebar",!1,e),n.setActive(t())},onSetup:function(e){function n(){return e.setActive(t())}return o.on("ToggleSidebar",n),function(){o.off("ToggleSidebar",n)}}})})),_C(e,r,_.shared),ne(e.getParam("toolbar_groups",{},"object"),(function(t,n){e.ui.registry.addGroupToolbarButton(n,t)}));var a,c=e.ui.registry.getAll(),u=c.buttons,s=c.menuItems,d=c.contextToolbars,m=c.sidebars,g=vh(e),p={menuItems:s,menus:(a=e.getParam("menu"))?ne(a,(function(e){return S(S({},e),{items:e.items})})):{},menubar:e.getParam("menubar"),toolbar:g.getOrThunk((function(){return e.getParam("toolbar",!0)})),allowToolbarGroups:z===yh.floating,buttons:u,sidebar:m};mO(e,d,w,{backstage:_}),LE(e,w);var h=e.getElement(),v=ee();return l.render(e,{mothership:Z,uiMothership:Q,outerContainer:j},p,_,{targetNode:h,height:v})},getUi:function(){return{channels:{broadcastAll:Q.broadcast,broadcastOn:Q.broadcastOn,register:a}}}};function te(e,t){xe([q,W],(function(n){n.broadcastEvent(e,t)}))}function re(e,t){xe([q,W],(function(n){n.broadcastOn([e],t)}))}function oe(e){return re(bf(),{target:e.target})}function ie(e){return re(bf(),{target:Re.fromDom(e.target)})}function ae(e){0===e.button&&re(kf(),{target:Re.fromDom(e.target)})}function ce(){xe(V.editorManager.get(),(function(e){V!==e&&e.fire("DismissPopups",{relatedTarget:V})}))}function se(e){return te(qi(),Mu(e))}function le(e){re(wf(),{}),te(Wi(),Mu(e))}function fe(){return re(wf(),{})}function de(e){e.state&&re(bf(),{target:Re.fromDom(V.getContainer())})}function me(e){re(bf(),{target:Re.fromDom(e.relatedTarget.getContainer())})}}function dA(e){return co("items","items",qn(),nr(ar((function(t){return ur("Checking item of "+e,tM,t).fold((function(e){return Ln.error(ao(e))}),(function(e){return Ln.value(e)}))}))))}function mA(e){return f(e.type)&&f(e.name)}function gA(e){return{internalDialog:sr(ur("dialog",sM,e)),dataValidator:(t=q(I(dM(e),mA),(function(e){return ye.from(mM[e.type]).fold((function(){return[]}),(function(t){return[gr(e.name,t)]}))})),Jr(t)),initialData:e.initialData};var t}function pA(e){var t=[],n={};return te(e,(function(e,r){e.fold((function(){t.push(r)}),(function(e){n[r]=e}))})),0<t.length?Ln.error(t):Ln.value(n)}function hA(e,t){dt(e,"height",t+"px"),fn().browser.isIE()?yt(e,"flex-basis"):dt(e,"flex-basis",t+"px")}function vA(e,t,n){Na(e,'[role="dialog"]').each((function(e){Ba(e,'[role="tablist"]').each((function(r){n.get().map((function(n){return dt(t,"height","0"),dt(t,"flex-basis","0"),Math.min(n,(i=t,a=r,c=$e(o=e).dom,u="fixed"===pt(Na(o,".tox-dialog-wrap").getOr(o),"position")?Math.max(c.clientHeight,window.innerHeight):Math.max(c.offsetHeight,c.scrollHeight),s=kt(i),l=i.dom.offsetLeft>=a.dom.offsetLeft+Ct(a)?Math.max(kt(a),s):s,f=parseInt(pt(o,"margin-top"),10)||0,d=parseInt(pt(o,"margin-bottom"),10)||0,u-(kt(o)+f+d-l)));var o,i,a,c,u,s,l,f,d})).each((function(e){hA(t,e)}))}))}))}function yA(e){return Ba(e,'[role="tabpanel"]')}function bA(e,t){function n(e){var t=pA(Ef.getValue(e)).getOr({}),n=a.get(),r=Gr(n,t);a.set(r)}function r(e){var t=a.get();Ef.setValue(e,t)}var o,i,a=Lr({}),c=Lr(null),u=P(e.tabs,(function(e){return{value:e.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:t.shared.providers.translate(e.title)},view:function(){return[nx.sketch((function(o){return{dom:{tag:"div",classes:["tox-form"]},components:P(e.items,(function(e){return hz(o,e,t)})),formBehaviours:nu([Rg.config({mode:"acyclic",useTabstopAt:k(pk)}),mm("TabView.form.events",[oa(r),ia(n)]),au.config({channels:lo([{key:xM,value:{onReceive:n}},{key:zM,value:{onReceive:r}}])})])}}))]}}})),s=(o=u,i=pu(),{extraEvents:[oa((function(e){var t=e.element;yA(t).each((function(n){var r;dt(n,"visibility","hidden"),e.getSystem().getByDom(n).toOptional().each((function(e){var t,r,a;Z(Y((r=n,a=e,P(t=o,(function(e,n){Bg.set(a,t[n].view());var o=r.dom.getBoundingClientRect();return Bg.set(a,[]),o.height}))),(function(e,t){return t<e?-1:e<t?1:0}))).fold(i.clear,i.set)})),vA(t,n,i),yt(n,"visibility"),r=e,Z(o).each((function(e){return _M.showTab(r,e.value)})),lp.requestAnimationFrame((function(){vA(t,n,i)}))}))})),Co(Wi(),(function(e){var t=e.element;yA(t).each((function(e){vA(t,e,i)}))})),Co(Tb,(function(e,t){var n=e.element;yA(n).each((function(e){var t=Sc(pn(e));dt(e,"visibility","hidden");var r=ht(e,"height").map((function(e){return parseInt(e,10)}));yt(e,"height"),yt(e,"flex-basis");var o=e.dom.getBoundingClientRect().height;r.forall((function(e){return e<o}))?(i.set(o),vA(n,e,i)):r.each((function(t){hA(e,t)})),yt(e,"visibility"),t.each(zc)}))}))],selectFirst:!1});return _M.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(e,t,n){var r=Ef.getValue(t);bo(e,Sb,{name:r,oldName:c.get()}),c.set(r)},tabs:u,components:[_M.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[yM.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:nu([pb.config({})])}),_M.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:s.selectFirst,tabSectionBehaviours:nu([mm("tabpanel",s.extraEvents),Rg.config({mode:"acyclic"}),ud.config({find:function(e){return Z(_M.getViewItems(e))}}),Ef.config({store:{mode:"manual",getValue:function(e){return e.getSystem().broadcastOn([xM],{}),a.get()},setValue:function(e,t){a.set(t),e.getSystem().broadcastOn([zM],{})}}})])})}function wA(e,t,n,r){return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:S(S({},t.map((function(e){return{id:e}})).getOr({})),r?{"aria-live":"polite"}:{})},components:[],behaviours:nu([ux(0),xO.config({channel:TM,updateState:function(e,t){return ye.some({isTabPanel:function(){return"tabpanel"===t.body.type}})},renderComponents:function(e){return"tabpanel"!==e.body.type?[(t=e.body,r=n,{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[(o=Hm(nx.sketch((function(e){return{dom:{tag:"div",classes:["tox-form"].concat(t.classes)},components:P(t.items,(function(t){return hz(e,t,r)}))}})))).asSpec()]}],behaviours:nu([Rg.config({mode:"acyclic",useTabstopAt:k(pk)}),cx(o),mx(o,{postprocess:function(e){return pA(e).fold((function(e){return console.error(e),{}}),s)}})])})]:[bA(e.body,n)];var t,r,o},initialData:e})])}}function kA(e,t){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[e,t]}}function _A(e,t){return YA.parts.close(fp.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:e,buttonBehaviours:nu([pb.config({})])}))}function xA(){return YA.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})}function zA(e,t){return YA.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:wC("<p>"+t.translate(e)+"</p>")}]}]})}function CA(e){return YA.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:e})}function SA(e,t){return[lb.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:e}),lb.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})]}function TA(e){var t,n="tox-dialog",r=n+"-wrap",o=r+"__backdrop",i=n+"__disable-scroll";return YA.sketch({lazySink:e.lazySink,onEscape:function(t){return e.onEscape(t),ye.some(!0)},useTabstopAt:function(e){return!pk(e)},dom:{tag:"div",classes:[n].concat(e.extraClasses),styles:S({position:"relative"},e.extraStyles)},components:O([e.header,e.body],e.footer.toArray(),!0),parts:{blocker:{dom:wC('<div class="'+r+'"></div>'),components:[{dom:{tag:"div",classes:AM?[o,o+"--opaque"]:[o]}}]}},dragBlockClass:r,modalBehaviours:nu(O([Ig.config({}),mm("dialog-events",e.dialogEvents.concat([Do(bi(),(function(e,t){Rg.focusIn(e)}))])),mm("scroll-lock",[oa((function(){Ko(bn(),i)})),ia((function(){Xo(bn(),i)}))])],e.extraBehaviours,!0)),eventOrder:S(((t={})[Bi()]=["dialog-events"],t[$i()]=["scroll-lock","dialog-events","alloy.base.behaviour"],t[Gi()]=["alloy.base.behaviour","dialog-events","scroll-lock"],t),e.eventOrder)})}function OA(e){return fp.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close"),title:e.translate("Close")}},components:[$m("close",{tag:"div",classes:["tox-icon"]},e.icons)],action:function(e){yo(e,kb)}})}function EA(e,t,n){function r(e){return[ii(n.translate(e.title))]}return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:S({},t.map((function(e){return{id:e}})).getOr({}))},components:r(e),behaviours:nu([xO.config({channel:SM,renderComponents:r})])}}function AA(){return{dom:wC('<div class="tox-dialog__draghandle"></div>')}}function DA(e,t){return n={title:t.shared.providers.translate(e),draggable:t.dialog.isDraggableModal()},r=t.shared.providers,o=YA.parts.title(EA(n,ye.none(),r)),i=YA.parts.draghandle(AA()),a=YA.parts.close(OA(r)),c=[o].concat(n.draggable?[i]:[]).concat([a]),lb.sketch({dom:wC('<div class="tox-dialog__header"></div>'),components:c});var n,r,o,i,a,c}function MA(e,t,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":n.translate(e)},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:t,components:[{dom:wC('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}}function RA(e,t,n){return{onClose:function(){return n.closeWindow()},onBlock:function(n){YA.setBusy(e(),(function(e,r){return MA(n.message,r,t)}))},onUnblock:function(){YA.setIdle(e())}}}function NA(e,t,n,r){var o;return Oa(TA(S(S({},e),{lazySink:r.shared.getSink,extraBehaviours:O([xO.config({channel:CM,updateState:function(e,t){return ye.some(t)},initialData:t}),px({})],e.extraBehaviours,!0),onEscape:function(e){yo(e,kb)},dialogEvents:n,eventOrder:((o={})[Ni()]=[xO.name(),au.name()],o[$i()]=["scroll-lock",xO.name(),"messages","dialog-events","alloy.base.behaviour"],o[Gi()]=["alloy.base.behaviour","dialog-events","messages",xO.name(),"scroll-lock"],o)})))}function BA(e){return P(e,(function(e){return"menu"===e.type?(n=P((t=e).items,(function(e){var t=Lr(!1);return S(S({},e),{storage:t})})),S(S({},t),{items:n})):e;var t,n}))}function PA(e){return F(e,(function(e,t){return"menu"!==t.type?e:F(t.items,(function(e,t){return e[t.name]=t.storage,e}),e)}),{})}function LA(e,t){return[Eo(bi(),gk),e(wb,(function(e,n){t.onClose(),n.onClose()})),e(kb,(function(e,t,n,r){t.onCancel(e),yo(r,wb)})),Co(Cb,(function(e,n){return t.onUnblock()})),Co(zb,(function(e,n){return t.onBlock(n.event)}))]}function IA(e,t){function n(e,t){return lb.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+e]},components:P(t,(function(e){return e.memento.asSpec()}))})}var r=L(t.map((function(e){return e.footerButtons})).getOr([]),(function(e){return"start"===e.align}));return[n("start",r.pass),n("end",r.fail)]}function HA(e,t){return{dom:wC('<div class="tox-dialog__footer"></div>'),components:[],behaviours:nu([xO.config({channel:OM,initialData:e,updateState:function(e,n){var r=P(n.buttons,(function(e){var n=Hm(Zk(e,e.type,t));return{name:e.name,align:e.align,memento:n}}));return ye.some({lookupByName:function(e,t){return n=e,o=t,j(r,(function(e){return e.name===o})).bind((function(e){return e.memento.getOpt(n)}));var n,o},footerButtons:r})},renderComponents:IA})])}}function FA(e,t){return YA.parts.footer(HA(e,t))}function jA(e,t){if(e.getRoot().getSystem().isConnected()){var n=ud.getCurrent(e.getFormWrapper()).getOr(e.getFormWrapper());return nx.getField(n,t).fold((function(){var r=e.getFooter();return xO.getState(r).get().bind((function(e){return e.lookupByName(n,t)}))}),(function(e){return ye.some(e)}))}return ye.none()}function VA(e,t,n){function r(t){var n=e.getRoot();n.getSystem().isConnected()&&t(n)}var o={getData:function(){var t=e.getRoot(),r=t.getSystem().isConnected()?e.getFormWrapper():t,o=Ef.getValue(r),i=ne(n,(function(e){return e.get()}));return S(S({},o),i)},setData:function(t){r((function(r){var i,a,c=o.getData(),u=S(S({},c),t),s=(i=u,a=e.getRoot(),xO.getState(a).get().map((function(e){return sr(ur("data",e.dataValidator,i))})).getOr(i)),l=e.getFormWrapper();Ef.setValue(l,s),te(n,(function(e,t){Oe(u,t)&&e.set(u[t])}))}))},disable:function(t){jA(e,t).each(gd.disable)},enable:function(t){jA(e,t).each(gd.enable)},focus:function(t){jA(e,t).each(Ig.focus)},block:function(e){if(!f(e))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");r((function(t){bo(t,zb,{message:e})}))},unblock:function(){r((function(e){yo(e,Cb)}))},showTab:function(t){r((function(n){var r=e.getBody();xO.getState(r).get().exists((function(e){return e.isTabPanel()}))&&ud.getCurrent(r).each((function(e){_M.showTab(e,t)}))}))},redial:function(e){r((function(n){var r=t(e);n.getSystem().broadcastOn([CM],r),n.getSystem().broadcastOn([SM],r.internalDialog),n.getSystem().broadcastOn([TM],r.internalDialog),n.getSystem().broadcastOn([OM],r.internalDialog),o.setData(r.initialData)}))},close:function(){r((function(e){yo(e,wb)}))}};return o}function UA(e){return d(e)&&-1!==BM.indexOf(e.mceAction)}function qA(e,t,n,r){var o,i,a,c=DA(e.title,r),u=(i={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[dk({dom:{tag:"iframe",attributes:{src:e.url}},behaviours:nu([pb.config({}),Ig.config({})])})]}],behaviours:nu([Rg.config({mode:"acyclic",useTabstopAt:k(pk)})])},YA.parts.body(i)),s=e.buttons.bind((function(e){return 0===e.length?ye.none():ye.some(FA({buttons:e},r))})),l=DM((function(){return w}),RA((function(){return b}),r.shared.providers,t)),m=S(S({},e.height.fold((function(){return{}}),(function(e){return{height:e+"px","max-height":e+"px"}}))),e.width.fold((function(){return{}}),(function(e){return{width:e+"px","max-width":e+"px"}}))),g=e.width.isNone()&&e.height.isNone()?["tox-dialog--width-lg"]:[],h=new NM(e.url,{base_uri:new NM(window.location.href)}),v=h.protocol+"://"+h.host+(h.port?":"+h.port:""),y=gu(),b=NA({header:c,body:u,footer:s,extraClasses:g,extraBehaviours:[mm("messages",[oa((function(){var t=hu(Re.fromDom(window),"message",(function(t){var r,o;h.isSameOrigin(new NM(t.raw.origin))&&(UA(r=t.raw.data)?function(e,t,n){switch(n.mceAction){case"insertContent":e.insertContent(n.content);break;case"setContent":e.setContent(n.content);break;case"execCommand":var r=!!p(n.ui)&&n.ui;e.execCommand(n.cmd,r,n.value);break;case"close":t.close();break;case"block":t.block(n.message);break;case"unblock":t.unblock()}}(n,w,r):!UA(o=r)&&d(o)&&Oe(o,"mceAction")&&e.onMessage(w,r))}));y.set(t)})),ia(y.clear)]),au.config({channels:((o={})[EM]={onReceive:function(e,t){Ba(e.element,"iframe").each((function(e){e.dom.contentWindow.postMessage(t,v)}))}},o)})],extraStyles:m},e,l,r),w={block:function(e){if(!f(e))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");_((function(t){bo(t,zb,{message:e})}))},unblock:function(){_((function(e){yo(e,Cb)}))},close:function(){_((function(e){yo(e,wb)}))},sendMessage:function(e){_((function(t){t.getSystem().broadcastOn([EM],e)}))}};function _(e){a.getSystem().isConnected()&&e(a)}return{dialog:a=b,instanceApi:w}}function WA(e){function t(e,t){return gM.open((function(e,n,r){var o,i,a,s,l,f,d,m,g,p,h,v,y,b,w=n,k=(i={redial:gM.redial,closeWindow:function(){YA.hide(k.dialog),t(k.instanceApi)}},a=c,f=DA((o={dataValidator:r,initialData:w,internalDialog:e}).internalDialog.title,a),s=a,l=wA({body:o.internalDialog.body},ye.none(),s,!1),d=YA.parts.body(l),m=BA(o.internalDialog.buttons),g=PA(m),p=FA({buttons:m},a),h=MM((function(){return b}),RA((function(){return y}),a.shared.providers,i),a.shared.getSink),v=function(){switch(o.internalDialog.size){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}}(),y=NA({header:f,body:d,footer:ye.some(p),extraClasses:v,extraBehaviours:[],extraStyles:{}},o,h,a),b=VA({getRoot:u(y),getBody:function(){return YA.getBody(y)},getFooter:function(){return YA.getFooter(y)},getFormWrapper:function(){var e=YA.getBody(y);return ud.getCurrent(e).getOr(e)}},i.redial,g),{dialog:y,instanceApi:b});return YA.show(k.dialog),k.instanceApi.setData(w),k.instanceApi}),e)}function n(e,t,n,r){return gM.open((function(e,o,i){function a(){return L.on((function(e){ap.reposition(e),US.refresh(e)}))}var f,d,m,g,p,h,v,y,b,w,k,_,x,z,C,T,E,A,D,M,R,N,B,P=sr(ur("data",i,o)),L=pu(),I=c.shared.header.isPositionedAtTop(),H=(d={dataValidator:i,initialData:P,internalDialog:e},m={redial:gM.redial,closeWindow:function(){L.on(ap.hide),s.off("ResizeEditor",a),L.clear(),n(H.instanceApi)}},g=c,p=r,z=Bo("dialog-label"),C=Bo("dialog-content"),T=Hm((y={title:d.internalDialog.title,draggable:!0},b=z,w=g.shared.providers,lb.sketch({dom:wC('<div class="tox-dialog__header"></div>'),components:[EA(y,ye.some(b),w),AA(),OA(w)],containerBehaviours:nu([cA.config({mode:"mouse",blockerClass:"blocker",getTarget:function(e){return Pa(e,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}))),E=Hm((k={body:d.internalDialog.body},_=g,x=p,wA(k,ye.some(C),_,x))),A=BA(d.internalDialog.buttons),D=PA(A),M=Hm(RM({buttons:A},g)),R=MM((function(){return B}),{onBlock:function(e){fT.block(N,(function(t,n){return MA(e.message,n,g.shared.providers)}))},onUnblock:function(){fT.unblock(N)},onClose:function(){return m.closeWindow()}},g.shared.getSink),N=Oa({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:((h={role:"dialog"})["aria-labelledby"]=z,h["aria-describedby"]=C,h)},eventOrder:((v={})[Ni()]=[xO.name(),au.name()],v[Bi()]=["execute-on-form"],v[$i()]=["reflecting","execute-on-form"],v),behaviours:nu([Rg.config({mode:"cyclic",onEscape:function(e){return yo(e,wb),ye.some(!0)},useTabstopAt:function(e){return!pk(e)&&("button"!==Ne(e)||"disabled"!==at(e,"disabled"))}}),xO.config({channel:CM,updateState:function(e,t){return ye.some(t)},initialData:d}),Ig.config({}),mm("execute-on-form",R.concat([Do(bi(),(function(e,t){Rg.focusIn(e)}))])),fT.config({getRoot:function(){return ye.some(N)}}),Bg.config({}),px({})]),components:[T.asSpec(),E.asSpec(),M.asSpec()]}),B=VA({getRoot:u(N),getFooter:function(){return M.get(N)},getBody:function(){return E.get(N)},getFormWrapper:function(){var e=E.get(N);return ud.getCurrent(e).getOr(e)}},m.redial,D),{dialog:N,instanceApi:B}),F=Oa(ap.sketch(S(S({lazySink:c.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},I?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:nu(O([mm("window-manager-inline-events",[Co(Ki(),(function(e,t){yo(H.dialog,kb)}))])],(f=s,l&&I?[]:[US.config({contextual:{lazyContext:function(){return ye.some(Rn(Re.fromDom(f.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]),!0)),isExtraPart:function(e,t){return Gy(n=t,".tox-alert-dialog")||Gy(n,".tox-confirm-dialog");var n}})));return L.set(F),ap.showWithin(F,Ea(H.dialog),{anchor:t},ye.some(bn())),l&&I||(US.refresh(F),s.on("ResizeEditor",a)),H.instanceApi.setData(P),Rg.focusIn(H.dialog),H.instanceApi}),e)}var r,o,i,a,c=e.backstage,s=e.editor,l=dv(s),f=(o=(r=e).backstage.shared,{open:function(e,t){function n(){YA.hide(u),t()}var i=Hm(Zk({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:ye.none()},"cancel",r.backstage)),a=xA(),c=_A(n,o.providers),u=Oa(TA({lazySink:function(){return o.getSink()},header:kA(a,c),body:zA(e,o.providers),footer:ye.some(CA(SA([],[i.asSpec()]))),onEscape:n,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Co(kb,n)],eventOrder:{}}));YA.show(u);var s=i.get(u);Ig.focus(s)}}),d=(a=(i=e).backstage.shared,{open:function(e,t){function n(e){YA.hide(s),t(e)}var r=Hm(Zk({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:ye.none()},"submit",i.backstage)),o=Zk({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:ye.none()},"cancel",i.backstage),c=xA(),u=_A((function(){return n(!1)}),a.providers),s=Oa(TA({lazySink:function(){return a.getSink()},header:kA(c,u),body:zA(e,a.providers),footer:ye.some(CA(SA([],[o,r.asSpec()]))),onEscape:function(){return n(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Co(kb,(function(){return n(!1)})),Co(xb,(function(){return n(!0)}))],eventOrder:{}}));YA.show(s);var l=r.get(s);Ig.focus(l)}});return{open:function(e,r,o){return void 0!==r&&"toolbar"===r.inline?n(e,c.shared.anchors.inlineDialog(),o,r.ariaAttrs):void 0!==r&&"cursor"===r.inline?n(e,c.shared.anchors.cursor(),o,r.ariaAttrs):t(e,o)},openUrl:function(e,t){return n=t,gM.openUrl((function(e){var t=qA(e,{closeWindow:function(){YA.hide(t.dialog),n(t.instanceApi)}},s,c);return YA.show(t.dialog),t.instanceApi}),e);var n},alert:function(e,t){f.open(e,(function(){t()}))},close:function(e){e.close()},confirm:function(e,t){d.open(e,(function(e){t(e)}))}}}(HE=IE=IE||{})[HE.None=0]="None",HE[HE.Both=1]="Both",HE[HE.Vertical=2]="Vertical";var $A,GA=u([mr("lazySink"),kr("dragBlockClass"),Nr("getBounds",Nn),Or("useTabstopAt",z),Or("eventOrder",{}),Qs("modalBehaviours",[Rg]),Za("onExecute"),ec("onEscape")]),KA={sketch:s},XA=u([Zf({name:"draghandle",overrides:function(e,t){return{behaviours:nu([cA.config({mode:"mouse",getTarget:function(e){return Na(e,'[role="dialog"]').getOr(e)},blockerClass:e.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(t,null,2)).message),getBounds:e.getDragBounds})])}}}),Yf({schema:[mr("dom")],name:"title"}),Yf({factory:KA,schema:[mr("dom")],name:"close"}),Yf({factory:KA,schema:[mr("dom")],name:"body"}),Zf({factory:KA,schema:[mr("dom")],name:"footer"}),Jf({factory:{sketch:function(e,t){return S(S({},e),{dom:t.dom,components:t.components})}},schema:[Or("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Or("components",[])],name:"blocker"})]),YA=zl({name:"ModalDialog",configFields:GA(),partFields:XA(),factory:function(e,t,n,r){var o,i=pu(),a=Bo("modal-events"),c=S(S({},e.eventOrder),((o={})[$i()]=[a].concat(e.eventOrder["alloy.system.attached"]||[]),o));return{uid:e.uid,dom:e.dom,components:t,apis:{show:function(t){i.set(t);var n=e.lazySink(t).getOrDie(),o=r.blocker(),a=n.getSystem().build(S(S({},o),{components:o.components.concat([Ea(t)]),behaviours:nu([Ig.config({}),mm("dialog-blocker-events",[Do(bi(),(function(){Rg.focusIn(t)}))])])}));Ps(n,a),Rg.focusIn(t)},hide:function(e){i.clear(),Ke(e.element).each((function(t){e.getSystem().getByDom(t).each((function(e){Is(e)}))}))},getBody:function(t){return gl(t,e,"body")},getFooter:function(t){return gl(t,e,"footer")},setIdle:function(e){fT.unblock(e)},setBusy:function(e,t){fT.block(e,t)}},eventOrder:c,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:tl(e.modalBehaviours,[Bg.config({}),Rg.config({mode:"cyclic",onEnter:e.onExecute,onEscape:e.onEscape,useTabstopAt:e.useTabstopAt}),fT.config({getRoot:i.get}),mm(a,[oa((function(t){var n,r,o,i=t.element,a=gl(t,e,"title").element,c=ct(i,"id").fold((function(){var e=Bo("dialog-label");return ot(a,"id",e),e}),s);ot(i,"aria-labelledby",c),n=t.element,r=gl(t,e,"body").element,o=ye.from(at(n,"id")).fold((function(){var e=Bo("dialog-describe");return ot(r,"id",e),e}),s),ot(n,"aria-describedby",o)}))])])}},apis:{show:function(e,t){e.show(t)},hide:function(e,t){e.hide(t)},getBody:function(e,t){return e.getBody(t)},getFooter:function(e,t){return e.getFooter(t)},setBusy:function(e,t,n){e.setBusy(t,n)},setIdle:function(e,t){e.setIdle(t)}}}),JA=Jr([pr("type"),pr("name")].concat(jh)),ZA=no,QA=[co("name","name",Wn((function(){return Bo("button-name")})),to),zr("icon"),Mr("align","end",["start","end"]),Rr("primary",!1),Rr("disabled",!1)],eD=O(O([],QA,!0),[pr("text")],!1),tD=O([hr("type",["submit","cancel","custom"])],eD,!0),nD=fr("type",{submit:tD,cancel:tD,custom:tD,menu:O([hr("type",["menu"]),zr("text"),zr("tooltip"),zr("icon"),wr("items",JA)],QA,!0)}),rD=[pr("type"),pr("text"),hr("level",["info","warn","error","success"]),pr("icon"),Or("url","")],oD=Jr(rD),iD=[pr("type"),pr("text"),Rr("disabled",!1),Rr("primary",!1),co("name","name",Wn((function(){return Bo("button-name")})),to),zr("icon"),Rr("borderless",!1)],aD=Jr(iD),cD=[pr("type"),pr("name"),pr("label"),Rr("disabled",!1)],uD=Jr(cD),sD=no,lD=[pr("type"),pr("name")],fD=lD.concat([zr("label")]),dD=fD.concat([Or("columns","auto")]),mD=Jr(dD),gD=Zr([pr("value"),pr("text"),pr("icon")]),pD=Jr(fD),hD=to,vD=Jr(fD),yD=to,bD=lD.concat([Dr("tag","textarea"),pr("scriptId"),pr("scriptUrl"),Er("settings",void 0,io)]),wD=lD.concat([Dr("tag","textarea"),vr("init")]),kD=ar((function(e){return ur("customeditor.old",tr(wD),e).orThunk((function(){return ur("customeditor.new",tr(bD),e)}))})),_D=to,xD=Jr(fD),zD=nr(Yr),CD=[pr("type"),pr("html"),Mr("presets","presentation",["presentation","document"])],SD=Jr(CD),TD=fD.concat([Rr("sandboxed",!0)]),OD=Jr(TD),ED=to,AD=fD.concat([gr("currentState",Jr([mr("blob"),pr("url")]))]),DD=Jr(AD),MD=fD.concat([zr("inputMode"),zr("placeholder"),Rr("maximized",!1),Rr("disabled",!1)]),RD=Jr(MD),ND=to,BD=[pr("text"),pr("value")],PD=[pr("text"),wr("items",($A=Pe((function(){return LD})),{extract:function(e,t){return $A().extract(e,t)},toString:function(){return $A().toString()}}))],LD=rr([Jr(BD),Jr(PD)]),ID=fD.concat([wr("items",LD),Rr("disabled",!1)]),HD=Jr(ID),FD=to,jD=fD.concat([br("items",[pr("text"),pr("value")]),Ar("size",1),Rr("disabled",!1)]),VD=Jr(jD),UD=to,qD=fD.concat([Rr("constrain",!0),Rr("disabled",!1)]),WD=Jr(qD),$D=Jr([pr("width"),pr("height")]),GD=[pr("type"),wr("header",to),wr("cells",nr(to))],KD=Jr(GD),XD=fD.concat([zr("placeholder"),Rr("maximized",!1),Rr("disabled",!1)]),YD=Jr(XD),JD=to,ZD=fD.concat([Mr("filetype","file",["image","media","file"]),Or("disabled",!1)]),QD=Jr(ZD),eM=Jr([pr("value"),Or("meta",{})]),tM=er((function(){return ir("type",{alertbanner:oD,bar:Jr((n=dA("bar"),[pr("type"),n])),button:aD,checkbox:uD,colorinput:pD,colorpicker:vD,dropzone:xD,grid:Jr((e=dA("grid"),[pr("type"),gr("columns",eo),e])),iframe:OD,input:RD,listbox:HD,selectbox:VD,sizeinput:WD,textarea:YD,urlinput:QD,customeditor:kD,htmlpanel:SD,imagetools:DD,collection:mD,label:Jr((t=dA("label"),[pr("type"),pr("label"),t])),table:KD,panel:rM});var e,t,n})),nM=[pr("type"),Or("classes",[]),wr("items",tM)],rM=Jr(nM),oM=[co("name","name",Wn((function(){return Bo("tab-name")})),to),pr("title"),wr("items",tM)],iM=[pr("type"),br("tabs",oM)],aM=Jr(iM),cM=eD,uM=nD,sM=Jr([pr("title"),gr("body",ir("type",{panel:rM,tabpanel:aM})),Dr("size","normal"),wr("buttons",uM),Or("initialData",{}),Nr("onAction",a),Nr("onChange",a),Nr("onSubmit",a),Nr("onClose",a),Nr("onCancel",a),Or("onTabChange",a)]),lM=Jr(O([hr("type",["cancel","custom"])],cM,!0)),fM=Jr([pr("title"),pr("url"),xr("height"),xr("width"),Sr("buttons",lM),Nr("onAction",a),Nr("onCancel",a),Nr("onClose",a),Nr("onMessage",a)]),dM=function(e){return d(e)?[e].concat(q(ie(e),dM)):m(e)?q(e,dM):[]},mM={checkbox:sD,colorinput:hD,colorpicker:yD,dropzone:zD,input:ND,iframe:ED,sizeinput:$D,selectbox:UD,listbox:FD,size:$D,textarea:JD,urlinput:eM,customeditor:_D,collection:gD,togglemenuitem:ZA},gM={open:function(e,t){var n=gA(t);return e(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(e,t){return e(sr(ur("dialog",fM,t)))},redial:gA},pM=xl({name:"TabButton",configFields:[Or("uid",void 0),mr("value"),co("dom","dom",Kn((function(){return{attributes:{role:"tab",id:Bo("aria"),"aria-selected":"false"}}})),Qr()),kr("action"),Or("domModification",{}),Qs("tabButtonBehaviours",[Ig,Rg,Ef]),mr("view")],factory:function(e,t){return{uid:e.uid,dom:e.dom,components:e.components,events:_m(e.action),behaviours:tl(e.tabButtonBehaviours,[Ig.config({}),Rg.config({mode:"execution",useSpace:!0,useEnter:!0}),Ef.config({store:{mode:"memory",initialValue:e.value}})]),domModification:e.domModification}}}),hM=u([mr("tabs"),mr("dom"),Or("clickToDismiss",!1),Qs("tabbarBehaviours",[hd,Rg]),Xa(["tabClass","selectedClass"])]),vM=u([Qf({factory:pM,name:"tabs",unit:"tab",overrides:function(e){return{action:function(t){var n=t.getSystem().getByUid(e.uid).getOrDie(),r=hd.isHighlighted(n,t);(r&&e.clickToDismiss?function(e,t){hd.dehighlight(e,t),bo(e,Qi(),{tabbar:e,button:t})}:r?a:function(e,t){hd.highlight(e,t),bo(e,Zi(),{tabbar:e,button:t})})(n,t)},domModification:{classes:[e.markers.tabClass]}}}})]),yM=zl({name:"Tabbar",configFields:hM(),partFields:vM(),factory:function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:tl(e.tabbarBehaviours,[hd.config({highlightClass:e.markers.selectedClass,itemClass:e.markers.tabClass,onHighlight:function(e,t){ot(t.element,"aria-selected","true")},onDehighlight:function(e,t){ot(t.element,"aria-selected","false")}}),Rg.config({mode:"flow",getInitial:function(e){return hd.getHighlighted(e).map((function(e){return e.element}))},selector:"."+e.markers.tabClass,executeOnMove:!0})])}}}),bM=xl({name:"Tabview",configFields:[Qs("tabviewBehaviours",[Bg])],factory:function(e,t){return{uid:e.uid,dom:e.dom,behaviours:tl(e.tabviewBehaviours,[Bg.config({})]),domModification:{attributes:{role:"tabpanel"}}}}}),wM=u([Or("selectFirst",!0),Ja("onChangeTab"),Ja("onDismissTab"),Or("tabs",[]),Qs("tabSectionBehaviours",[])]),kM=u([Yf({factory:yM,schema:[mr("dom"),yr("markers",[mr("tabClass"),mr("selectedClass")])],name:"tabbar",defaults:function(e){return{tabs:e.tabs}}}),Yf({factory:bM,name:"tabview"})]),_M=zl({name:"TabSection",configFields:wM(),partFields:kM(),factory:function(e,t,n,r){function o(t,n){ml(t,e,"tabbar").each((function(e){n(e).each(wo)}))}return{uid:e.uid,dom:e.dom,components:t,behaviours:el(e.tabSectionBehaviours),events:ra(U([e.selectFirst?[oa((function(e,t){o(e,hd.getFirst)}))]:[],[Co(Zi(),(function(t,n){var r=n.event.button,o=Ef.getValue(r);ml(r,e,"tabview").each((function(t){j(e.tabs,(function(e){return e.value===o})).each((function(n){var o=n.view();ct(r.element,"id").each((function(e){ot(t.element,"aria-labelledby",e)})),Bg.set(t,o),e.onChangeTab(t,r,o)}))}))})),Co(Qi(),(function(t,n){var r=n.event.button;e.onDismissTab(t,r)}))]])),apis:{getViewItems:function(t){return ml(t,e,"tabview").map((function(e){return Bg.contents(e)})).getOr([])},showTab:function(e,t){o(e,(function(e){return j(hd.getCandidates(e),(function(e){return Ef.getValue(e)===t})).filter((function(t){return!hd.isHighlighted(e,t)}))}))}}}},apis:{getViewItems:function(e,t){return e.getViewItems(t)},showTab:function(e,t,n){e.showTab(t,n)}}}),xM="send-data-to-section",zM="send-data-to-view",CM=Bo("update-dialog"),SM=Bo("update-title"),TM=Bo("update-body"),OM=Bo("update-footer"),EM=Bo("body-send-message"),AM=ty.deviceType.isTouch(),DM=function(e,t){function n(t,n){return Co(t,(function(t,r){var o,i;o=t,i=function(o,i){n(e(),o,r.event,t)},xO.getState(o).get().each((function(e){i(e,o)}))}))}return O(O([],LA(n,t),!0),[n(_b,(function(e,t,n){t.onAction(e,{name:n.name})}))],!1)},MM=function(e,t,n){function r(t,n){return Co(t,(function(t,r){var o,i;o=t,i=function(o,i){n(e(),o,r.event,t)},xO.getState(o).get().each((function(e){i(e.internalDialog,o)}))}))}return O(O([],LA(r,t),!0),[r(xb,(function(e,t){return t.onSubmit(e)})),r(bb,(function(e,t,n){t.onChange(e,{name:n.name})})),r(_b,(function(e,t,r,o){function i(){return Rg.focusIn(o)}function a(e){return ut(e,"disabled")||ct(e,"aria-disabled").exists((function(e){return"true"===e}))}var c=pn(o.element),u=Sc(c);t.onAction(e,{name:r.name,value:r.value}),Sc(c).fold(i,(function(e){a(e)||u.exists((function(t){return Ue(e,t)&&a(t)}))?i():n().toOptional().filter((function(t){return!Ue(t.element,e)})).each(i)}))})),r(Sb,(function(e,t,n){t.onTabChange(e,{newTabName:n.name,oldTabName:n.oldName})})),ia((function(t){var n=e();Ef.setValue(t,n.getData())}))],!1)},RM=HA,NM=tinymce.util.Tools.resolve("tinymce.util.URI"),BM=["insertContent","setContent","execCommand","close","block","unblock"];C.add("silver",(function(e){var t=fA(e),n=t.uiMothership,r=t.backstage,o=t.renderUI,i=t.getUi;return ab(e,r.shared),{renderUI:o,getWindowManagerImpl:u(WA({editor:e,backstage:r})),getNotificationManagerImpl:function(){return t=e,o=n,i={backstage:r}.backstage.shared,{open:function(e,n){function r(){n(),ap.hide(u)}var a=!e.closeButton&&e.timeout&&(0<e.timeout||e.timeout<0),c=Oa(hp.sketch({text:e.text,level:_e(["success","error","warning","warn","info"],e.type)?e.type:void 0,progress:!0===e.progressBar,icon:ye.from(e.icon),closeButton:!a,onAction:r,iconProvider:i.providers.icons,translationProvider:i.providers.translate})),u=Oa(ap.sketch(S({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:i.getSink,fireDismissalEventInstead:{}},i.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));function s(){var e=Rn(Re.fromDom(t.getContentAreaContainer())),n=Nn(),r=Wc(n.x,e.x,e.right),o=Wc(n.y,e.y,e.bottom),i=Math.max(e.right,n.right),a=Math.max(e.bottom,n.bottom);return ye.some(Mn(r,o,i-r,a-o))}return o.add(u),0<e.timeout&&lp.setTimeout((function(){r()}),e.timeout),{close:r,moveTo:function(e,t){ap.showAt(u,Ea(c),{anchor:{type:"makeshift",x:e,y:t}})},moveRel:function(e,t){var n,r,o,a=Ea(c),l={maxHeightFunction:Pu()};"banner"!==t&&v(e)?(n=function(){switch(t){case"bc-bc":return sp;case"tc-tc":return up;case"tc-bc":return Jc;default:return Zc}}(),r={type:"node",root:bn(),node:ye.some(Re.fromDom(e)),overrides:l,layouts:{onRtl:function(){return[n]},onLtr:function(){return[n]}}},ap.showWithinBounds(u,a,{anchor:r},s)):(o=S(S({},i.anchors.banner()),{overrides:l}),ap.showWithinBounds(u,a,{anchor:o},s))},text:function(e){hp.updateText(c,e)},settings:e,getEl:function(){return c.element.dom},progressBar:{value:function(e){hp.updateProgress(c,e)}}}},close:function(e){e.close()},reposition:function(e){0<e.length&&xe(e,(function(t,n){0===n?t.moveRel(null,"banner"):t.moveRel(e[n-1].getEl(),"bc-tc")}))},getArgs:function(e){return e.settings}};var t,o,i},ui:i()}}))}()}).call(this,n("c8ba"))}}]);
|