!function(){"use strict";vare=tinymce.util.Tools.resolve("tinymce.ModelManager");constt=e=>t=>(e=>{constt=typeofe;returnnull===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(o=n=e,(r=String).prototype.isPrototypeOf(o)||(null===(s=n.constructor)||void0===s?void0:s.name)===r.name)?"string":t;varo,n,r,s})(t)===e,o=e=>t=>typeoft===e,n=e=>t=>e===t,r=t("string"),s=t("object"),l=t("array"),a=n(null),c=o("boolean"),i=n(void0),m=e=>!(e=>null==e)(e),d=o("function"),u=o("number"),f=()=>{},g=e=>()=>e,h=e=>e,p=(e,t)=>e===t;functionw(e,...t){return(...o)=>{constn=t.concat(o);returne.apply(null,n)}}constb=e=>t=>!e(t),v=e=>e(),y=g(!1),x=g(!0);classC{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewC(!0,e)}staticnone(){returnC.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?C.some(e(this.value)):C.none()}bind(e){returnthis.tag?e(this.value):C.none()}exists(e){returnthis.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:C.none()}getOr(e){returnthis.tag?this.value:e}or(e){returnthis.tag?this:e}getOrThunk(e){returnthis.tag?this.value:e()}orThunk(e){returnthis.tag?this:e()}getOrDie(e){if(this.tag)returnthis.value;thrownewError(null!=e?e:"Called getOrDie on None")}staticfrom(e){returnm(e)?C.some(e):C.none()}getOrNull(){returnthis.tag?this.value:null}getOrUndefined(){returnthis.value}each(e){this.tag&&e(this.value)}toArray(){returnthis.tag?[this.value]:[]}toString(){returnthis.tag?`some(${this.value})`:"none()"}}C.singletonNone=newC(!1);constS=Array.prototype.slice,T=Array.prototype.indexOf,R=Array.prototype.push,D=(e,t)=>{returno=e,n=t,T.call(o,n)>-1;varo,n},O=(e,t)=>{for(leto=0,n=e.length;o<n;o++)if(t(e[o],o))return!0;return!1},k=(e,t)=>{consto=[];for(letn=0;n<e;n++)o.push(t(n));returno},E=(e,t)=>{consto=e.length,n=newArray(o);for(letr=0;r<o;r++){consto=e[r];n[r]=t(o,r)}returnn},N=(e,t)=>{for(leto=0,n=e.length;o<n;o++)t(e[o],o)},B=(e,t)=>{consto=[],n=[];for(letr=0,s=e.length;r<s;r++){consts=e[r];(t(s,r)?o:n).push(s)}return{pass:o,fail:n}},z=(e,t)=>{consto=[];for(letn=0,r=e.length;n<r;n++){constr=e[n];t(r,n)&&o.push(r)}returno},A=(e,t,o)=>(((e,t)=>{for(leto=e.length-1;o>=0;o--)t(e[o],o)})(e,((e,n)=>{o=t(o,e,n)})),o),W=(e,t,o)=>(N(e,((e,n)=>{o=t(o,e,n)})),o),L=(e,t)=>((e,t,o)=>{for(letn=0,r=e.length;n<r;n++){constr=e[n];if(t(r,n))returnC.some(r);if(o(r,n))break}returnC.none()})(e,t,y),_=(e,t)=>{for(leto=0,n=e.length;o<n;o++)if(t(e[o],o))returnC.some(o);returnC.none()},M=e=>{constt=[];for(leto=0,n=e.length;o<n;++o){if(!l(e[o]))thrownewError("Arr.flatten item "+o+" was not an array, input: "+e);R.apply(t,e[o])}returnt},j=(e,t)=>M(E(e,t)),I=(e,t)=>{for(leto=0,n=e.length;o<n;++o)if(!0!==t(e[o],o))return!1;return!0},P=(e,t)=>{consto={};for(letn=0,r=e.length;n<r;n++){constr=e[n];o[String(r)]=t(r,n)}returno},F=(e,t)=>t>=0&&t<e.length?C.some(e[t]):C.none(),H=e=>F(e,0),q=e=>F(e,e.length-1),V=(e,t)=>{for(leto=0;o<e.length;o++){constn=t(e[o],o);if(n.isSome())returnn}returnC.none()},$=Object.keys,U=Object.hasOwnProperty,G=(e,t)=>{consto=$(e);for(letn=0,r=o.length;n<r;n++){constr=o[n];t(e[r],r)}},K=(e,t)=>Y(e,((e,o)=>({k:o,v:t(e,o)}))),Y=(e,t)=>{consto={};returnG(e,((e,n)=>{constr=t(e,n);o[r.k]=r.v})),o},J=(e,t)=>{consto=[];returnG(e,((e,n)=>{o.push(t(e,n))})),o},Q=e=>J(e,h),X=(e,t)=>U.call(e,t);"undefined"!=typeofwindow?window:Function("return this;")();constZ=e=>e.dom.nodeName.toLowerCase(),ee=e=>e.dom.nodeType,te=e=>t=>ee(t)===e,oe=e=>8===ee(e)||"#comment"===Z(e),ne=te(1),re=te(3),se=te(9),le=te(11),ae=e=>t=>ne(t)&&Z(t)===e,ce=(e,t,o)=>{if(!(r(o)||c(o)||u(o)))throwconsole.error("Invalid call to Attribute.set. Key ",t,":: Value ",o,":: Element ",e),newError("Attribute value was not simple");e.setAttribute(t,o+"")},ie=(e,t,o)=>{ce(e.dom,t,o)},me=(e,t)=>{consto=e.dom;G(t,((e,t)=>{ce(o,t,e)}))},de=(e,t)=>{consto=e.dom.getAttribute(t);returnnull===o?void0:o},ue=(e,t)=>C.from(de(e,t)),fe=(e,t)=>{e.d