!function(e,t){"use strict";functionn(e,t){for(varn,r=[],i=0;i<e.length;++i){if(n=s[e[i]]||o(e[i]),!n)throw"module definition dependecy not found: "+e[i];r.push(n)}t.apply(null,r)}functionr(e,r,i){if("string"!=typeofe)throw"invalid module definition, module id must be defined and be a string";if(r===t)throw"invalid module definition, dependencies must be specified";if(i===t)throw"invalid module definition, definition function must be specified";n(r,function(){s[e]=i.apply(null,arguments)})}functioni(e){return!!s[e]}functiono(t){for(varn=e,r=t.split(/[.\/]/),i=0;i<r.length;++i){if(!n[r[i]])return;n=n[r[i]]}returnn}functiona(n){for(varr=0;r<n.length;r++){for(vari=e,o=n[r],a=o.split(/[.\/]/),l=0;l<a.length-1;++l)i[a[l]]===t&&(i[a[l]]={}),i=i[a[l]];i[a[a.length-1]]=s[o]}}vars={},l="tinymce/dom/EventUtils",c="tinymce/dom/Sizzle",u="tinymce/dom/DomQuery",d="tinymce/html/Styles",f="tinymce/dom/TreeWalker",p="tinymce/util/Tools",h="tinymce/dom/Range",m="tinymce/html/Entities",g="tinymce/Env",v="tinymce/dom/DOMUtils",y="tinymce/dom/ScriptLoader",b="tinymce/AddOnManager",C="tinymce/html/Node",x="tinymce/html/Schema",w="tinymce/html/SaxParser",_="tinymce/html/DomParser",N="tinymce/html/Writer",E="tinymce/html/Serializer",k="tinymce/dom/Serializer",S="tinymce/dom/TridentSelection",T="tinymce/util/VK",R="tinymce/dom/ControlSelection",A="tinymce/dom/Selection",B="tinymce/dom/RangeUtils",D="tinymce/Formatter",H="tinymce/UndoManager",L="tinymce/EnterKey",M="tinymce/ForceBlocks",P="tinymce/EditorCommands",O="tinymce/util/URI",I="tinymce/util/Class",F="tinymce/ui/Selector",W="tinymce/ui/Collection",z="tinymce/ui/DomUtils",V="tinymce/ui/Control",U="tinymce/ui/Factory",q="tinymce/ui/Container",j="tinymce/ui/DragHelper",$="tinymce/ui/Scrollable",K="tinymce/ui/Panel",G="tinymce/ui/Movable",Y="tinymce/ui/Resizable",X="tinymce/ui/FloatPanel",J="tinymce/ui/KeyboardNavigation",Q="tinymce/ui/Window",Z="tinymce/ui/MessageBox",et="tinymce/WindowManager",tt="tinymce/util/Quirks",nt="tinymce/util/Observable",rt="tinymce/Shortcuts",it="tinymce/Editor",ot="tinymce/util/I18n",at="tinymce/FocusManager",st="tinymce/EditorManager",lt="tinymce/LegacyInput",ct="tinymce/util/XHR",ut="tinymce/util/JSON",dt="tinymce/util/JSONRequest",ft="tinymce/util/JSONP",pt="tinymce/util/LocalStorage",ht="tinymce/Compat",mt="tinymce/ui/Layout",gt="tinymce/ui/AbsoluteLayout",vt="tinymce/ui/Tooltip",yt="tinymce/ui/Widget",bt="tinymce/ui/Button",Ct="tinymce/ui/ButtonGroup",xt="tinymce/ui/Checkbox",wt="tinymce/ui/PanelButton",_t="tinymce/ui/ColorButton",Nt="tinymce/ui/ComboBox",Et="tinymce/ui/Path",kt="tinymce/ui/ElementPath",St="tinymce/ui/FormItem",Tt="tinymce/ui/Form",Rt="tinymce/ui/FieldSet",At="tinymce/ui/FilePicker",Bt="tinymce/ui/FitLayout",Dt="tinymce/ui/FlexLayout",Ht="tinymce/ui/FlowLayout",Lt="tinymce/ui/FormatControls",Mt="tinymce/ui/GridLayout",Pt="tinymce/ui/Iframe",Ot="tinymce/ui/Label",It="tinymce/ui/Toolbar",Ft="tinymce/ui/MenuBar",Wt="tinymce/ui/MenuButton",zt="tinymce/ui/ListBox",Vt="tinymce/ui/MenuItem",Ut="tinymce/ui/Menu",qt="tinymce/ui/Radio",jt="tinymce/ui/ResizeHandle",$t="tinymce/ui/Spacer",Kt="tinymce/ui/SplitButton",Gt="tinymce/ui/StackLayout",Yt="tinymce/ui/TabPanel",Xt="tinymce/ui/TextBox",Jt="tinymce/ui/Throbber";r(l,[],function(){functione(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)}functiont(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)}functionn(e,t){functionn(){return!1}functionr(){return!0}vari,o=t||{},l;for(iine)s[i]||(o[i]=e[i]);if(o.target||(o.target=o.srcElement||document),e&&a.test(e.type)&&e.pageX===l&&e.clientX!==l){varc=o.target.ownerDocument||document,u=c.documentElement,d=c.body;o.pageX=e.clientX+(u&&u.scrollLeft||d&&d.scrollLeft||0)-(u&&u.clientLeft||d&&d.clientLeft||0),o.pageY=e.clientY+(u&&u.scrollTop||d&&d.scrollTop||0)-(u&&u.clientTop||d&&d.clientTop||0)}returno.preventDefault=function(){o.isDefaultPrevented=r,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},o.stopPropagation=function(){o.
},addComponents:function(t,n){varr=this.urls[t];i(n,function(t){e.ScriptLoader.add(r+"/"+t)})},load:function(n,o,a,s){functionl(){varr=c.dependencies(n);i(r,function(e){varn=c.createUrl(o,e);c.load(n.resource,n,t,t)}),a&&(s?a.call(s):a.call(e))}varc=this,u=o;c.urls[n]||("object"==typeofo&&(u=o.prefix+o.resource+o.suffix),0!==u.indexOf("/")&&-1==u.indexOf("://")&&(u=r.baseURL+"/"+u),c.urls[n]=u.substring(0,u.lastIndexOf("/")),c.lookup[n]?l():e.ScriptLoader.add(u,l,s))}},r.PluginManager=newr,r.ThemeManager=newr,r}),r(C,[],function(){functione(e,t,n){varr,i,o=n?"lastChild":"firstChild",a=n?"prev":"next";if(e[o])returne[o];if(e!==t){if(r=e[a])returnr;for(i=e.parent;i&&i!==t;i=i.parent)if(r=i[a])returnr}}functiont(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}varn=/^[ \t\r\n]*$/,r={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11};returnt.prototype={replace:function(e){vart=this;returne.parent&&e.remove(),t.insert(e,t),t.remove(),t},attr:function(e,t){varn=this,r,i,o;if("string"!=typeofe){for(iine)n.attr(i,e[i]);returnn}if(r=n.attributes){if(t!==o){if(null===t){if(einr.map)for(deleter.map[e],i=r.length;i--;)if(r[i].name===e)returnr=r.splice(i,1),n;returnn}if(einr.map){for(i=r.length;i--;)if(r[i].name===e){r[i].value=t;break}}elser.push({name:e,value:t});returnr.map[e]=t,n}returnr.map[e]}},clone:function(){vare=this,n=newt(e.name,e.type),r,i,o,a,s;if(o=e.attributes){for(s=[],s.map={},r=0,i=o.length;i>r;r++)a=o[r],"id"!==a.name&&(s[s.length]={name:a.name,value:a.value},s.map[a.name]=a.value);n.attributes=s}returnn.value=e.value,n.shortEnded=e.shortEnded,n},wrap:function(e){vart=this;returnt.parent.insert(e,t),e.append(t),t},unwrap:function(){vare=this,t,n;for(t=e.firstChild;t;)n=t.next,e.insert(t,e,!0),t=n;e.remove()},remove:function(){vare=this,t=e.parent,n=e.next,r=e.prev;returnt&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e},append:function(e){vart=this,n;returne.parent&&e.remove(),n=t.lastChild,n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},insert:function(e,t,n){varr;returne.parent&&e.remove(),r=t.parent||this,n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},getAll:function(t){varn=this,r,i=[];for(r=n.firstChild;r;r=e(r,n))r.name===t&&i.push(r);returni},empty:function(){vart=this,n,r,i;if(t.firstChild){for(n=[],i=t.firstChild;i;i=e(i,t))n.push(i);for(r=n.length;r--;)i=n[r],i.parent=i.firstChild=i.lastChild=i.next=i.prev=null}returnt.firstChild=t.lastChild=null,t},isEmpty:function(t){varr=this,i=r.firstChild,o,a;if(i)do{if(1===i.type){if(i.attributes.map["data-mce-bogus"])continue;if(t[i.name])return!1;for(o=i.attributes.length;o--;)if(a=i.attributes[o].name,"name"===a||0===a.indexOf("data-mce-"))return!1}if(8===i.type)return!1;if(3===i.type&&!n.test(i.value))return!1}while(i=e(i,r));return!0},walk:function(t){returne(this,null,t)}},t.create=function(e,n){vari,o;if(i=newt(e,r[e]||1),n)for(oinn)i.attr(o,n[o]);returni},t}),r(x,[p],function(e){functiont(e,t){returne?e.split(t||" "):[]}functionn(e){functionn(e,n,r){functioni(e){vart={},n,r;for(n=0,r=e.length;r>n;n++)t[e[n]]={};returnt}varo,l,c,u=arguments;for(r=r||[],n=n||"","string"==typeofr&&(r=t(r)),l=3;l<u.length;l++)"string"==typeofu[l]&&(u[l]=t(u[l])),r.push.apply(r,u[l]);for(e=t(e),o=e.length;o--;)c=[].concat(s,t(n)),a[e[o]]={attributes:i(c),attributesOrder:c,children:i(r)}}functioni(e,n){varr,i,o,s;for(e=t(e),r=e.length,n=t(n);r--;)for(i=a[e[r]],o=0,s=n.length;s>o;o++)i.attributes[n[o]]={},i.attributesOrder.push(n[o])}vara={},s,l,c,u,d,f,p;returnr[e]?r[e]:(s=t("id accesskey class dir lang style tabindex title"),l=t("onabortonbluroncanceloncanplayoncanplaythroughonchangeonclickoncloseoncontextmenuoncuechangeondblclickondragondragendondragenterondragleaveondragoverond
returne.isArray(t)?o.apply(n,t):tinstanceofr?n.add(t.toArray()):o.call(n,t),n},set:function(e){vart=this,n=t.length,r;for(t.length=0,t.add(e),r=t.length;n>r;r++)deletet[r];returnt},filter:function(e){varn=this,i,o,a=[],s,l;for("string"==typeofe?(e=newt(e),l=function(t){returne.match(t)}):l=e,i=0,o=n.length;o>i;i++)s=n[i],l(s)&&a.push(s);returnnewr(a)},slice:function(){returnnewr(a.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},each:function(t){returne.each(this,t),this},toArray:function(){returne.toArray(this)},indexOf:function(e){for(vart=this,n=t.length;n--&&t[n]!==e;);returnn},reverse:function(){returnnewr(e.toArray(this).reverse())},hasClass:function(e){returnthis[0]?this[0].hasClass(e):!1},prop:function(e,t){varn=this,r,i;returnt!==r?(n.each(function(n){n[e]&&n[e](t)}),n):(i=n[0],i&&i[e]?i[e]():void0)},exec:function(t){varn=this,r=e.toArray(arguments).slice(1);returnn.each(function(e){e[t]&&e[t].apply(e,r)}),n},remove:function(){for(vare=this.length;e--;)this[e].remove();returnthis}},e.each("fire on off show hide addClass removeClass append prepend before after reflow".split(" "),function(t){i[t]=function(){varn=e.toArray(arguments);returnthis.each(function(e){tine&&e[t].apply(e,n)}),this}}),e.each("text name disabled active selected checked visible parent value data".split(" "),function(e){i[e]=function(t){returnthis.prop(e,t)}}),r=n.extend(i),t.Collection=r,r}),r(z,[p,v],function(e,t){return{id:function(){returnt.DOM.uniqueId()},createFragment:function(e){returnt.DOM.createFragment(e)},getWindowSize:function(){returnt.DOM.getViewPort()},getSize:function(e){returnt.DOM.getSize(e)},getPos:function(e,n){returnt.DOM.getPos(e,n)},getViewPort:function(e){returnt.DOM.getViewPort(e)},get:function(e){returndocument.getElementById(e)},addClass:function(e,n){returnt.DOM.addClass(e,n)},removeClass:function(e,n){returnt.DOM.removeClass(e,n)},hasClass:function(e,n){returnt.DOM.hasClass(e,n)},toggleClass:function(e,n,r){returnt.DOM.toggleClass(e,n,r)},css:function(e,n,r){returnt.DOM.setStyle(e,n,r)},on:function(e,n,r,i){returnt.DOM.bind(e,n,r,i)},off:function(e,n,r){returnt.DOM.unbind(e,n,r)},fire:function(e,n,r){returnt.DOM.fire(e,n,r)},innerHtml:function(e,n){t.DOM.setHTML(e,n)}}}),r(V,[I,p,W,z],function(e,t,n,r){vari=t.makeMap("focusin focusout scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave wheel keydown keypress keyup contextmenu"," "),o={},a="onmousewheel"indocument,s=!1,l=e.extend({Statics:{controlIdLookup:{}},classPrefix:"mce-",init:function(e){varn=this,i,o;if(n.settings=e=t.extend({},n.Defaults,e),n._id=r.id(),n._text=n._name="",n._width=n._height=0,n._aria={role:e.role},i=e.classes)for(i=i.split(" "),i.map={},o=i.length;o--;)i.map[i[o]]=!0;n._classes=i||[],n.visible(!0),t.each("title text width height name classes visible disabled active value".split(" "),function(t){varr=e[t],i;r!==i?n[t](r):n["_"+t]===i&&(n["_"+t]=!1)}),n.on("click",function(){returnn.disabled()?!1:void0}),e.classes&&t.each(e.classes.split(" "),function(e){n.addClass(e)}),n.settings=e,n._borderBox=n.parseBox(e.border),n._paddingBox=n.parseBox(e.padding),n._marginBox=n.parseBox(e.margin),e.hidden&&n.hide()},Properties:"parent,title,text,width,height,disabled,active,name,value",Methods:"renderHtml",getContainerElm:function(){returndocument.body},getParentCtrl:function(e){for(vart;e&&!(t=l.controlIdLookup[e.id]);)e=e.parentNode;returnt},parseBox:function(e){vart,n=10;if(e)return"number"==typeofe?(e=e||0,{top:e,left:e,bottom:e,right:e}):(e=e.split(" "),t=e.length,1===t?e[1]=e[2]=e[3]=e[0]:2===t?(e[2]=e[0],e[3]=e[1]):3===t&&(e[3]=e[1]),{top:parseInt(e[0],n)||0,right:parseInt(e[1],n)||0,bottom:parseInt(e[2],n)||0,left:parseInt(e[3],n)||0})},borderBox:function(){returnthis._borderBox},paddingBox:function(){returnthis._paddingBox},marginBox:function(){returnthis._marginBox},measureBox:function(e,t){functionn(t){varn=document.defaultView;returnn?(t=t.replace(/[A-Z]/g,function(e){return"-"+e}),n.getComputedStyle(e