!function(){vare={},t=function(t){for(varn=e[t],i=n.deps,o=n.defn,a=i.length,s=newArray(a),l=0;l<a;++l)s[l]=r(i[l]);varc=o.apply(null,s);if(void0===c)throw"module ["+t+"] returned undefined";n.instance=c},n=function(t,n,r){if("string"!=typeoft)throw"module id must be a string";if(void0===n)throw"no dependencies for "+t;if(void0===r)throw"no definition function for "+t;e[t]={deps:n,defn:r,instance:void0}},r=function(n){varr=e[n];if(void0===r)throw"module ["+n+"] was undefined";returnvoid0===r.instance&&t(n),r.instance},i=function(e,t){for(varn=e.length,i=newArray(n),o=0;o<n;++o)i.push(r(e[o]));t.apply(null,t)},o={};o.bolt={module:{api:{define:n,require:i,demand:r}}};vara=n,s=function(e,t){a(e,[],function(){returnt})};s("1",tinymce.PluginManager),s("2",tinymce.Env),s("3",tinymce.util.Promise),s("4",tinymce.util.URI),s("5",tinymce.util.Tools),s("6",tinymce.util.Delay),a("m",[],function(){functione(e,t){returnr(document.createElement("canvas"),e,t)}functiont(e){returne.getContext("2d")}functionn(e){vart=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}returnt||(t=null),t}functionr(e,t,n){returne.width=t,e.height=n,e}return{create:e,resize:r,get2dContext:t,get3dContext:n}}),a("n",[],function(){functione(e){returne.naturalWidth||e.width}functiont(e){returne.naturalHeight||e.height}return{getWidth:e,getHeight:t}}),a("o",[],function(){functione(e,t){returnfunction(){e.apply(t,arguments)}}functiont(t){if("object"!=typeofthis)thrownewTypeError("Promises must be constructed via new");if("function"!=typeoft)thrownewTypeError("not a function");this._state=null,this._value=null,this._deferreds=[],s(t,e(r,this),e(i,this))}functionn(e){vart=this;returnnull===this._state?voidthis._deferreds.push(e):voidl(function(){varn=t._state?e.onFulfilled:e.onRejected;if(null===n)returnvoid(t._state?e.resolve:e.reject)(t._value);varr;try{r=n(t._value)}catch(t){returnvoide.reject(t)}e.resolve(r)})}functionr(t){try{if(t===this)thrownewTypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeoft||"function"==typeoft)){varn=t.then;if("function"==typeofn)returnvoids(e(n,t),e(r,this),e(i,this))}this._state=!0,this._value=t,o.call(this)}catch(e){i.call(this,e)}}functioni(e){this._state=!1,this._value=e,o.call(this)}functiono(){for(vare=0,t=this._deferreds.length;e<t;e++)n.call(this,this._deferreds[e]);this._deferreds=null}functiona(e,t,n,r){this.onFulfilled="function"==typeofe?e:null,this.onRejected="function"==typeoft?t:null,this.resolve=n,this.reject=r}functions(e,t,n){varr=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(e){if(r)return;r=!0,n(e)}}if(window.Promise)returnwindow.Promise;varl=t.immediateFn||"function"==typeofsetImmediate&&setImmediate||function(e){setTimeout(e,1)},c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};returnt.prototype.catch=function(e){returnthis.then(null,e)},t.prototype.then=function(e,r){vari=this;returnnewt(function(t,o){n.call(i,newa(e,r,t,o))})},t.all=function(){vare=Array.prototype.slice.call(1===arguments.length&&c(arguments[0])?arguments[0]:arguments);returnnewt(function(t,n){functionr(o,a){try{if(a&&("object"==typeofa||"function"==typeofa)){vars=a.then;if("function"==typeofs)returnvoids.call(a,function(e){r(o,e)},n)}e[o]=a,0===--i&&t(e)}catch(e){n(e)}}if(0===e.length)returnt([]);for(vari=e.length,o=0;o<e.length;o++)r(o,e[o])})},t.resolve=function(e){returne&&"object"==typeofe&&e.constructor===t?e:newt(function(t){t(e)})},t.reject=function(e){returnnewt(function(t,n){n(e)})},t.race=function(e){returnnewt(function(t,n){for(varr=0,i=e.length;r<i;r++)e[r].then(t,n)})},t}),a("p",[],function(){functione(e){vart=document.createElement("a");returnt.href=e,t.pathname}functiont(t){varn=e(t).split("."),r=n[n.length-1],i={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png"};returnr&&(r=r.toLowerCase()),i[r]}return{guessMimeType:t}}),a("e",["o","m","p","n"],function(e,t,n,r){functioni(t){returnnewe(function(e){function