!function(){vara={},b=function(b){for(varc=a[b],e=c.deps,f=c.defn,g=e.length,h=newArray(g),i=0;i<g;++i)h[i]=d(e[i]);varj=f.apply(null,h);if(void0===j)throw"module ["+b+"] returned undefined";c.instance=j},c=function(b,c,d){if("string"!=typeofb)throw"module id must be a string";if(void0===c)throw"no dependencies for "+b;if(void0===d)throw"no definition function for "+b;a[b]={deps:c,defn:d,instance:void0}},d=function(c){vard=a[c];if(void0===d)throw"module ["+c+"] was undefined";returnvoid0===d.instance&&b(c),d.instance},e=function(a,b){for(varc=a.length,e=newArray(c),f=0;f<c;++f)e[f]=d(a[f]);b.apply(null,e)},f={};f.bolt={module:{api:{define:c,require:e,demand:d}}};varg=c,h=function(a,b){g(a,[],function(){returnb})};g("1",[],function(){vara=function(b){varc=b,d=function(){returnc},e=function(a){c=a},f=function(){returna(d())};return{get:d,set:e,clone:f}};returna}),h("6",tinymce.util.Tools.resolve),g("2",["6"],function(a){returna("tinymce.PluginManager")}),h("c",setInterval),g("d",["6"],function(a){returna("tinymce.util.LocalStorage")}),g("a",["6"],function(a){returna("tinymce.util.Tools")}),g("e",[],function(){vara=function(a){returna.fire("RestoreDraft")},b=function(a){returna.fire("StoreDraft")},c=function(a){returna.fire("RemoveDraft")};return{fireRestoreDraft:a,fireStoreDraft:b,fireRemoveDraft:c}}),h("f",document),g("g",[],function(){vara=function(a,b){varc={s:1e3,m:6e4};returna=/^(\d+)([ms]?)$/.exec(""+(a||b)),(a[2]?c[a[2]]:1)*parseInt(a,10)};return{parse:a}}),g("b",["f","g"],function(a,b){varc=function(a){returna.getParam("autosave_ask_before_unload",!0)},d=function(b){varc=b.getParam("autosave_prefix","tinymce-autosave-{path}{query}{hash}-{id}-");returnc=c.replace(/\{path\}/g,a.location.pathname),c=c.replace(/\{query\}/g,a.location.search),c=c.replace(/\{hash\}/g,a.location.hash),c=c.replace(/\{id\}/g,b.id)},e=function(a){returna.getParam("autosave_restore_when_empty",!1)},f=function(a){returnb.parse(a.settings.autosave_interval,"30s")},g=function(a){returnb.parse(a.settings.autosave_retention,"20m")};return{shouldAskBeforeUnload:c,getAutoSavePrefix:d,shouldRestoreWhenEmpty:e,getAutoSaveInterval:f,getAutoSaveRetention:g}}),g("7",["c","d","a","e","b"],function(a,b,c,d,e){varf=function(a,b){vard=a.settings.forced_root_block;returnb=c.trim("undefined"==typeofb?a.getBody().innerHTML:b),""===b||newRegExp("^<"+d+"[^>]*>((\xa0| |[ \t]|<br[^>]*>)+?|)</"+d+">|<br>$","i").test(b)},g=function(a){varc=parseInt(b.getItem(e.getAutoSavePrefix(a)+"time"),10)||0;return!((newDate).getTime()-c>e.getAutoSaveRetention(a))||(h(a,!1),!1)},h=function(a,c){varf=e.getAutoSavePrefix(a);b.removeItem(f+"draft"),b.removeItem(f+"time"),c!==!1&&d.fireRemoveDraft(a)},i=function(a){varc=e.getAutoSavePrefix(a);!f(a)&&a.isDirty()&&(b.setItem(c+"draft",a.getContent({format:"raw",no_events:!0})),b.setItem(c+"time",(newDate).getTime()),d.fireStoreDraft(a))},j=function(a){varc=e.getAutoSavePrefix(a);g(a)&&(a.setContent(b.getItem(c+"draft"),{format:"raw"}),d.fireRestoreDraft(a))},k=function(b,c){vard=e.getAutoSaveInterval(b);c.get()||(a(function(){b.removed||i(b)},d),c.set(!0))},l=function(a){a.undoManager.transact(function(){j(a),h(a)}),a.focus()};return{isEmpty:f,hasDraft:g,removeDraft:h,storeDraft:i,restoreDraft:j,startStoreDraft:k,restoreLastDraft:l}}),g("3",["7"],function(a){varb=function(a,b){returnfunction(){varc=Array.prototype.slice.call(arguments);returna.apply(null,[b].concat(c))}},c=function(c){return{hasDraft:b(a.hasDraft,c),storeDraft:b(a.storeDraft,c),restoreDraft:b(a.restoreDraft,c),removeDraft:b(a.removeDraft,c),isEmpty:b(a.isEmpty,c)}};return{get:c}}),h("8",window),g("9",["6"],function(a){returna("tinymce.EditorManager")}),g("4",["8","9","a","b"],function(a,b,c,d){b._beforeUnloadHandler=function(){vara;returnc.each(b.get(),function(b){b.plugins.autosave&&b.plugins.autosave.storeDraft(),!a&&b.isDirty()&&d.shouldAskBeforeUnload(b)&&(a=b.translate("You have unsaved changes are you sure you want to navigate away?"))}),a};vare=function(c){a.onbeforeunload=b._beforeUnloadHandler};r