!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;functionb(e,...t){return(...o)=>{constn=t.concat(o);returne.apply(null,n)}}constw=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}},_=(e,t)=>{consto=[];for(letn=0,r=e.length;n<r;n++){constr=e[n];t(r,n)&&o.push(r)}returno},z=(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),A=(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),W=(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)),P=(e,t)=>{for(leto=0,n=e.length;o<n;++o)if(!0!==t(e[o],o))return!1;return!0},I=(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),$=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()},q=Object.keys,U=Object.hasOwnProperty,G=(e,t)=>{consto=q(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),Z="undefined"!=typeofwindow?window:Function("return this;")(),ee=(e,t)=>((e,t)=>{leto=null!=t?t:Z;for(lett=0;t<e.length&&null!=o;++t)o=o[e[t]];returno})(e.split("."),t),te=Object.getPrototypeOf,oe=e=>{constt=ee("ownerDocument.defaultView",e);returns(e)&&((e=>((e,t)=>{consto=((e,t)=>ee(e,t))(e,t);if(null==o)thrownewError(e+" not available on this browser");returno})("HTMLElement",e))(t).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(te(e).constructor.name))},ne=e=>e.dom.nodeName.toLowerCase(),re=e=>e.dom.nodeType,se=e=>t=>re(t)===e,le=e=>8===re(e)||"#comment"===ne(e),ae=e=>ce(e)&&oe(e.dom),ce=se(1),