!function(l){"use strict";vart,e,n,r,i=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(){},o=function(t){returnfunction(){returnt}},u=function(t){returnt},c=o(!1),s=o(!0),f=c,m=s,d=function(){returng},g=(r={fold:function(t,e){returnt()},is:f,isSome:f,isNone:m,getOr:n=function(t){returnt},getOrThunk:e=function(t){returnt()},getOrDie:function(t){thrownewError(t||"error: getOrDie called on none.")},getOrNull:function(){returnnull},getOrUndefined:function(){returnundefined},or:n,orThunk:e,map:d,ap:d,each:function(){},bind:d,flatten:d,exists:f,forall:m,filter:d,equals:t=function(t){returnt.isNone()},equals_:t,toArray:function(){return[]},toString:o("none()")},Object.freeze&&Object.freeze(r),r),p=function(n){vart=function(){returnn},e=function(){returni},r=function(t){returnt(n)},i={fold:function(t,e){returne(n)},is:function(t){returnn===t},isSome:m,isNone:f,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:e,orThunk:e,map:function(t){returnp(t(n))},ap:function(t){returnt.fold(d,function(t){returnp(t(n))})},each:function(t){t(n)},bind:r,flatten:t,exists:r,forall:r,filter:function(t){returnt(n)?i:g},equals:function(t){returnt.is(n)},equals_:function(t,e){returnt.fold(f,function(t){returne(n,t)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};returni},w={some:p,none:d,from:function(t){returnnull===t||t===undefined?g:p(t)}},h=function(e){returnfunction(t){returnfunction(t){if(null===t)return"null";vare=typeoft;return"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e}(t)===e}},U=h("string"),b=h("object"),v=h("array"),y=h("boolean"),S=h("function"),D=Array.prototype.slice,T=Array.prototype.push,A=function(t){for(vare=[],n=0,r=t.length;n<r;++n){if(!v(t[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+t);T.apply(e,t[n])}returne},O=(S(Array.from)&&Array.from,function(){return(O=Object.assign||function(t){for(vare,n=1,r=arguments.length;n<r;n++)for(variine=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);returnt}).apply(this,arguments)}),C=function(t){varn=w.none(),e=[],r=function(t){i()?o(t):e.push(t)},i=function(){returnn.isSome()},a=function(t){!function(t,e){for(varn=0,r=t.length;n<r;n++)e(t[n],n,t)}(t,o)},o=function(e){n.each(function(t){l.setTimeout(function(){e(t)},0)})};returnt(function(t){n=w.some(t),a(e),e=[]}),{get:r,map:function(n){returnC(function(e){r(function(t){e(n(t))})})},isReady:i}},x={nu:C,pure:function(e){returnC(function(t){t(e)})}},I=function(e){vart=function(t){varr;e((r=t,function(){for(vart=[],e=0;e<arguments.length;e++)t[e]=arguments[e];varn=this;l.setTimeout(function(){r.apply(n,t)},0)}))},n=function(){returnx.nu(t)};return{map:function(r){returnI(function(n){t(function(t){vare=r(t);n(e)})})},bind:function(n){returnI(function(e){t(function(t){n(t).get(e)})})},anonBind:function(n){returnI(function(e){t(function(t){n.get(e)})})},toLazy:n,toCached:function(){vare=null;returnI(function(t){null===e&&(e=n()),e.get(t)})},get:t}},P={nu:I,pure:function(e){returnI(function(t){t(e)})}},N=function(n){return{is:function(t){returnn===t},isValue:s,isError:c,getOr:o(n),getOrThunk:o(n),getOrDie:o(n),or:function(t){returnN(n)},orThunk:function(t){returnN(n)},fold:function(t,e){returne(n)},map:function(t){returnN(t(n))},mapError:function(t){returnN(n)},each:function(t){t(n)},bind:function(t){returnt(n)},exists:function(t){returnt(n)},forall:function(t){returnt(n)},toOption:function(){returnw.some(n)}}},L=function(n){return{is:c,isValue:c,isError:s,getOr:u,getOrThunk:function(t){returnt()},getOrDie:function(){returnt=String(n),function(){thrownewError(t)}();vart},or:function(t){returnt},orThunk:function(t){returnt()},fold:function(t,e){returnt(n)},map:function(t){returnL(n)},mapError:function(t){returnL(t(n))},each:a,bind:function(t){returnL(n)},exists:c,forall:s,toOption:w.none}},E={value:N,error:L,f