/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){function ca(a,e){CKEDITOR.tools.extend(this,e,{editor:a,id:"cke-"+CKEDITOR.tools.getUniqueId(),area:a._.notificationArea});e.type||(this.type="info");this.element=this._createElement();a.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(this.element)}function ea(a){var e=this;this.editor=a;this.notifications=[];this.element=this._createElement();this._uiBuffer=CKEDITOR.tools.eventsBuffer(10,this._layout,this);this._changeBuffer=CKEDITOR.tools.eventsBuffer(500,this._layout,
this);a.on("destroy",function(){e._removeListeners();e.element.remove()})}if(!window.CKEDITOR||!window.CKEDITOR.dom)window.CKEDITOR||(window.CKEDITOR=function(){var a=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,e={timestamp:"F96C",version:"4.5.3",revision:"6c70c82",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:a},status:"unloaded",basePath:function(){var b=window.CKEDITOR_BASEPATH||"";if(!b)for(var g=document.getElementsByTagName("script"),e=0;e<g.length;e++){var f=g[e].src.match(a);
if(f){b=f[1];break}}-1==b.indexOf(":/")&&"//"!=b.slice(0,2)&&(b=0===b.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+b:location.href.match(/^[^\?]*\/(?:)/)[0]+b);if(!b)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return b}(),getUrl:function(a){-1==a.indexOf(":/")&&0!==a.indexOf("/")&&(a=this.basePath+a);this.timestamp&&("/"!=a.charAt(a.length-1)&&!/[&?]t=/.test(a))&&(a+=(0<=a.indexOf("?")?
"&":"?")+"t="+this.timestamp);return a},domReady:function(){function a(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",a,!1),b()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),b())}catch(f){}}function b(){for(var a;a=g.shift();)a()}var g=[];return function(f){function b(){try{document.documentElement.doScroll("left")}catch(h){setTimeout(b,1);return}a()}g.push(f);"complete"===document.readyState&&setTimeout(a,
1);if(1==g.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",a,!1),window.addEventListener("load",a,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",a);window.attachEvent("onload",a);f=!1;try{f=!window.frameElement}catch(d){}document.documentElement.doScroll&&f&&b()}}}()},b=window.CKEDITOR_GETURL;if(b){var g=e.getUrl;e.getUrl=function(a){return b.call(e,a)||g.call(e,a)}}return e}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=
function(a){var e=CKEDITOR.event.prototype,b;for(b in e)a[b]==null&&(a[b]=e[b])},CKEDITOR.event.prototype=function(){function a(a){var c=e(this);return c[a]||(c[a]=new b(a))}var e=function(a){a=a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={})},b=function(a){this.name=a;this.listeners=[]};b.prototype={getListenerIndex:function(a){for(var b=0,e=this.listeners;b<e.length;b++)if(e[b].fn==a)return b;return-1}};return{define:function(b,c){var e=a.call(this,b);CKEDITOR.tools.extend(e,
c,true)},on:function(b,c,e,i,f){function k(h,a,f,l){h={name:b,sender:this,editor:h,data:a,listenerData:i,stop:f,cancel:l,removeListener:d};return c.call(e,h)===false?false:h.data}function d(){l.removeListener(b,c)}var h=a.call(this,b);if(h.getListenerIndex(c)<0){h=h.listeners;e||(e=this);isNaN(f)&&(f=10);var l=this;k.fn=c;k.priority=f;for(var q=h.length-1;q>=0;q--)if(h[q].priority<=f){h.splice(q+1,0,k);return{removeListener:d}}h.unshift(k)}return{removeListener:d}},once:function(){var a=Array.prototype.slice.call(arguments),
b=a[1];a[1]=function(a){a.removeListener();return b.apply(this,arguments)};return this.on.apply(this,a)},capture:function(){CKEDITOR.event.useCapture=1;var a=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return a},fire:function(){var a=0,b=function(){a=1},j=0,i=function(){j=1};return function(f,k,d){var h=e(this)[f],f=a,l=j;a=j=0;if(h){var q=h.listeners;if(q.length)for(var q=q.slice(0),p,m=0;m<q.length;m++){if(h.errorProof)try{p=q[m].call(this,d,k,b,i)}catch(n){}else p=q[m].call(this,
d,k,b,i);p===false?j=1:typeof p!="undefined"&&(k=p);if(a||j)break}}k=j?false:typeof k=="undefined"?true:k;a=f;j=l;return k}}(),fireOnce:function(a,b,j){b=this.fire(a,b,j);delete e(this)[a];return b},removeListener:function(a,b){var j=e(this)[a];if(j){var i=j.getListenerIndex(b);i>=0&&j.listeners.splice(i,1)}},removeAllListeners:function(){var a=e(this),b;for(b in a)delete a[b]},hasListeners:function(a){return(a=e(this)[a])&&a.listeners.length>0}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,
arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(a,e){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fire.call(this,a,e,this)},CKEDITOR.editor.prototype.fireOnce=function(a,e){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fireOnce.call(this,a,e,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var a=navigator.userAgent.toLowerCase(),e=a.match(/edge[ \/](\d+.?\d*)/),
b=a.indexOf("trident/")>-1,b=!(!e&&!b),b={ie:b,edge:!!e,webkit:!b&&a.indexOf(" applewebkit/")>-1,air:a.indexOf(" adobeair/")>-1,mac:a.indexOf("macintosh")>-1,quirks:document.compatMode=="BackCompat"&&(!document.documentMode||document.documentMode<10),mobile:a.indexOf("mobile")>-1,iOS:/(ipad|iphone|ipod)/.test(a),isCustomDomain:function(){if(!this.ie)return false;var a=document.domain,b=window.location.hostname;return a!=b&&a!="["+b+"]"},secure:location.protocol=="https:"};b.gecko=navigator.product==
"Gecko"&&!b.webkit&&!b.ie;if(b.webkit)a.indexOf("chrome")>-1?b.chrome=true:b.safari=true;var g=0;if(b.ie){g=e?parseFloat(e[1]):b.quirks||!document.documentMode?parseFloat(a.match(/msie (\d+)/)[1]):document.documentMode;b.ie9Compat=g==9;b.ie8Compat=g==8;b.ie7Compat=g==7;b.ie6Compat=g<7||b.quirks}if(b.gecko)if(e=a.match(/rv:([\d\.]+)/)){e=e[1].split(".");g=e[0]*1E4+(e[1]||0)*100+(e[2]||0)*1}b.air&&(g=parseFloat(a.match(/ adobeair\/(\d+)/)[1]));b.webkit&&(g=parseFloat(a.match(/ applewebkit\/(\d+)/)[1]));
b.version=g;b.isCompatible=!(b.ie&&g<7)&&!(b.gecko&&g<4E4)&&!(b.webkit&&g<534);b.hidpi=window.devicePixelRatio>=2;b.needsBrFiller=b.gecko||b.webkit||b.ie&&g>10;b.needsNbspFiller=b.ie&&g<11;b.cssClass="cke_browser_"+(b.ie?"ie":b.gecko?"gecko":b.webkit?"webkit":"unknown");if(b.quirks)b.cssClass=b.cssClass+" cke_browser_quirks";if(b.ie)b.cssClass=b.cssClass+(" cke_browser_ie"+(b.quirks?"6 cke_browser_iequirks":b.version));if(b.air)b.cssClass=b.cssClass+" cke_browser_air";if(b.iOS)b.cssClass=b.cssClass+
" cke_browser_ios";if(b.hidpi)b.cssClass=b.cssClass+" cke_hidpi";return b}()),"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if(CKEDITOR.status!="basic_ready")CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var a=document.createElement("script");a.type="text/javascript";a.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(a)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(a){(this._.pending||
(this._.pending=[])).push(a)};(function(){CKEDITOR.domReady(function(){var a=CKEDITOR.loadFullCore,e=CKEDITOR.loadFullCoreTimeout;if(a){CKEDITOR.status="basic_ready";a&&a._load?a():e&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},e*1E3)}})})();CKEDITOR.status="basic_loaded"}(),CKEDITOR.dom={},function(){var a=[],e=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",b=/&/g,g=/>/g,c=/</g,j=/"/g,i=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,f={lt:"<",
gt:">",amp:"&",quot:'"',nbsp:" ",shy:"­"},k=function(d,h){return h[0]=="#"?String.fromCharCode(parseInt(h.slice(1),10)):f[h]};CKEDITOR.on("reset",function(){a=[]});CKEDITOR.tools={arrayCompare:function(d,h){if(!d&&!h)return true;if(!d||!h||d.length!=h.length)return false;for(var a=0;a<d.length;a++)if(d[a]!=h[a])return false;return true},getIndex:function(d,h){for(var a=0;a<d.length;++a)if(h(d[a]))return a;return-1},clone:function(d){var h;if(d&&d instanceof Array){h=[];for(var a=0;a<d.length;a++)h[a]=
CKEDITOR.tools.clone(d[a]);return h}if(d===null||typeof d!="object"||d instanceof String||d instanceof Number||d instanceof Boolean||d instanceof Date||d instanceof RegExp||d.nodeType||d.window===d)return d;h=new d.constructor;for(a in d)h[a]=CKEDITOR.tools.clone(d[a]);return h},capitalize:function(a,h){return a.charAt(0).toUpperCase()+(h?a.slice(1):a.slice(1).toLowerCase())},extend:function(a){var h=arguments.length,f,b;if(typeof(f=arguments[h-1])=="boolean")h--;else if(typeof(f=arguments[h-2])==
"boolean"){b=arguments[h-1];h=h-2}for(var k=1;k<h;k++){var c=arguments[k],g;for(g in c)if(f===true||a[g]==null)if(!b||g in b)a[g]=c[g]}return a},prototypedCopy:function(a){var h=function(){};h.prototype=a;return new h},copy:function(a){var h={},f;for(f in a)h[f]=a[f];return h},isArray:function(a){return Object.prototype.toString.call(a)=="[object Array]"},isEmpty:function(a){for(var h in a)if(a.hasOwnProperty(h))return false;return true},cssVendorPrefix:function(a,h,f){if(f)return e+a+":"+h+";"+a+
":"+h;f={};f[a]=h;f[e+a]=h;return f},cssStyleToDomStyle:function(){var a=document.createElement("div").style,h=typeof a.cssFloat!="undefined"?"cssFloat":typeof a.styleFloat!="undefined"?"styleFloat":"float";return function(a){return a=="float"?h:a.replace(/-./g,function(h){return h.substr(1).toUpperCase()})}}(),buildStyleHtml:function(a){for(var a=[].concat(a),h,f=[],b=0;b<a.length;b++)if(h=a[b])/@import|[{}]/.test(h)?f.push("<style>"+h+"</style>"):f.push('<link type="text/css" rel=stylesheet href="'+
h+'">');return f.join("")},htmlEncode:function(a){return a===void 0||a===null?"":(""+a).replace(b,"&amp;").replace(g,"&gt;").replace(c,"&lt;")},htmlDecode:function(a){return a.replace(i,k)},htmlEncodeAttr:function(a){return CKEDITOR.tools.htmlEncode(a).replace(j,"&quot;")},htmlDecodeAttr:function(a){return CKEDITOR.tools.htmlDecode(a)},transformPlainTextToHtml:function(a,h){var f=h==CKEDITOR.ENTER_BR,b=this.htmlEncode(a.replace(/\r\n/g,"\n")),b=b.replace(/\t/g,"&nbsp;&nbsp; &nbsp;"),k=h==CKEDITOR.ENTER_P?
"p":"div";if(!f){var c=/\n{2}/g;if(c.test(b))var g="<"+k+">",e="</"+k+">",b=g+b.replace(c,function(){return e+g})+e}b=b.replace(/\n/g,"<br>");f||(b=b.replace(RegExp("<br>(?=</"+k+">)"),function(h){return CKEDITOR.tools.repeat(h,2)}));b=b.replace(/^ | $/g,"&nbsp;");return b=b.replace(/(>|\s) /g,function(h,a){return a+"&nbsp;"}).replace(/ (?=<)/g,"&nbsp;")},getNextNumber:function(){var a=0;return function(){return++a}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var a=
"e",h=0;h<8;h++)a=a+Math.floor((1+Math.random())*65536).toString(16).substring(1);return a},override:function(a,h){var f=h(a);f.prototype=a.prototype;return f},setTimeout:function(a,h,f,b,k){k||(k=window);f||(f=k);return k.setTimeout(function(){b?a.apply(f,[].concat(b)):a.apply(f)},h||0)},trim:function(){var a=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(h){return h.replace(a,"")}}(),ltrim:function(){var a=/^[ \t\n\r]+/g;return function(h){return h.replace(a,"")}}(),rtrim:function(){var a=/[ \t\n\r]+$/g;
return function(h){return h.replace(a,"")}}(),indexOf:function(a,h){if(typeof h=="function")for(var f=0,b=a.length;f<b;f++){if(h(a[f]))return f}else{if(a.indexOf)return a.indexOf(h);f=0;for(b=a.length;f<b;f++)if(a[f]===h)return f}return-1},search:function(a,h){var f=CKEDITOR.tools.indexOf(a,h);return f>=0?a[f]:null},bind:function(a,h){return function(){return a.apply(h,arguments)}},createClass:function(a){var h=a.$,f=a.base,b=a.privates||a._,k=a.proto,a=a.statics;!h&&(h=function(){f&&this.base.apply(this,
arguments)});if(b)var c=h,h=function(){var h=this._||(this._={}),a;for(a in b){var f=b[a];h[a]=typeof f=="function"?CKEDITOR.tools.bind(f,this):f}c.apply(this,arguments)};if(f){h.prototype=this.prototypedCopy(f.prototype);h.prototype.constructor=h;h.base=f;h.baseProto=f.prototype;h.prototype.base=function(){this.base=f.prototype.base;f.apply(this,arguments);this.base=arguments.callee}}k&&this.extend(h.prototype,k,true);a&&this.extend(h,a,true);return h},addFunction:function(f,h){return a.push(function(){return f.apply(h||
this,arguments)})-1},removeFunction:function(f){a[f]=null},callFunction:function(f){var h=a[f];return h&&h.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var a=/^-?\d+\.?\d*px$/,h;return function(f){h=CKEDITOR.tools.trim(f+"")+"px";return a.test(h)?h:f||""}}(),convertToPx:function(){var a;return function(h){if(!a){a=CKEDITOR.dom.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"></div>',CKEDITOR.document);
CKEDITOR.document.getBody().append(a)}if(!/%$/.test(h)){a.setStyle("width",h);return a.$.clientWidth}return h}}(),repeat:function(a,h){return Array(h+1).join(a)},tryThese:function(){for(var a,h=0,f=arguments.length;h<f;h++){var b=arguments[h];try{a=b();break}catch(k){}}return a},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(a){return function(){var h=arguments,f=this;window.setTimeout(function(){a.apply(f,h)},0)}},normalizeCssText:function(a,h){var f=[],
b,k=CKEDITOR.tools.parseCssText(a,true,h);for(b in k)f.push(b+":"+k[b]);f.sort();return f.length?f.join(";")+";":""},convertRgbToHex:function(a){return a.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(h,a,f,b){h=[a,f,b];for(a=0;a<3;a++)h[a]=("0"+parseInt(h[a],10).toString(16)).slice(-2);return"#"+h.join("")})},parseCssText:function(a,h,f){var b={};if(f){f=new CKEDITOR.dom.element("span");f.setAttribute("style",a);a=CKEDITOR.tools.convertRgbToHex(f.getAttribute("style")||"")}if(!a||
a==";")return b;a.replace(/&quot;/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,f,d){if(h){f=f.toLowerCase();f=="font-family"&&(d=d.toLowerCase().replace(/["']/g,"").replace(/\s*,\s*/g,","));d=CKEDITOR.tools.trim(d)}b[f]=d});return b},writeCssText:function(a,h){var f,b=[];for(f in a)b.push(f+":"+a[f]);h&&b.sort();return b.join("; ")},objectCompare:function(a,h,f){var b;if(!a&&!h)return true;if(!a||!h)return false;for(b in a)if(a[b]!=h[b])return false;if(!f)for(b in h)if(a[b]!=
h[b])return false;return true},objectKeys:function(a){var h=[],f;for(f in a)h.push(f);return h},convertArrayToObject:function(a,h){var f={};arguments.length==1&&(h=true);for(var b=0,k=a.length;b<k;++b)f[a[b]]=h;return f},fixDomain:function(){for(var a;;)try{a=window.parent.document.domain;break}catch(h){a=a?a.replace(/.+?(?:\.|$)/,""):document.domain;if(!a)break;document.domain=a}return!!a},eventsBuffer:function(a,h,f){function b(){c=(new Date).getTime();k=false;f?h.call(f):h()}var k,c=0;return{input:function(){if(!k){var h=
(new Date).getTime()-c;h<a?k=setTimeout(b,a-h):b()}},reset:function(){k&&clearTimeout(k);k=c=0}}},enableHtml5Elements:function(a,h){for(var f=["abbr","article","aside","audio","bdi","canvas","data","datalist","details","figcaption","figure","footer","header","hgroup","main","mark","meter","nav","output","progress","section","summary","time","video"],b=f.length,k;b--;){k=a.createElement(f[b]);h&&a.appendChild(k)}},checkIfAnyArrayItemMatches:function(a,h){for(var f=0,b=a.length;f<b;++f)if(a[f].match(h))return true;
return false},checkIfAnyObjectPropertyMatches:function(a,h){for(var f in a)if(f.match(h))return true;return false},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw=="}}(),CKEDITOR.dtd=function(){var a=CKEDITOR.tools.extend,e=function(a,h){for(var f=CKEDITOR.tools.clone(a),b=1;b<arguments.length;b++){var h=arguments[b],k;for(k in h)delete f[k]}return f},b={},g={},c={address:1,article:1,aside:1,blockquote:1,details:1,div:1,dl:1,fieldset:1,figure:1,
footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,main:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},j={command:1,link:1,meta:1,noscript:1,script:1,style:1},i={},f={"#":1},k={center:1,dir:1,noframes:1};a(b,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,
select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},f,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});a(g,c,b,k);e={a:e(b,{a:1,button:1}),abbr:b,address:g,area:i,article:g,aside:g,audio:a({source:1,track:1},g),b:b,base:i,bdi:b,bdo:b,blockquote:g,body:g,br:i,button:e(b,{a:1,button:1}),canvas:b,caption:g,cite:b,code:b,col:i,colgroup:{col:1},command:i,datalist:a({option:1},b),dd:g,del:b,details:a({summary:1},g),dfn:b,div:g,dl:{dt:1,
dd:1},dt:g,em:b,embed:i,fieldset:a({legend:1},g),figcaption:g,figure:a({figcaption:1},g),footer:g,form:g,h1:b,h2:b,h3:b,h4:b,h5:b,h6:b,head:a({title:1,base:1},j),header:g,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:i,html:a({head:1,body:1},g,j),i:b,iframe:f,img:i,input:i,ins:b,kbd:b,keygen:i,label:b,legend:b,li:g,link:i,main:g,map:g,mark:b,menu:a({li:1},g),meta:i,meter:e(b,{meter:1}),nav:g,noscript:a({link:1,meta:1,style:1},b),object:a({param:1},b),ol:{li:1},optgroup:{option:1},option:f,output:b,p:b,
param:i,pre:b,progress:e(b,{progress:1}),q:b,rp:b,rt:b,ruby:a({rp:1,rt:1},b),s:b,samp:b,script:f,section:g,select:{optgroup:1,option:1},small:b,source:i,span:b,strong:b,style:f,sub:b,summary:b,sup:b,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:g,textarea:f,tfoot:{tr:1},th:g,thead:{tr:1},time:e(b,{time:1}),title:f,tr:{th:1,td:1},track:i,u:b,ul:{li:1},"var":b,video:a({source:1,track:1},g),wbr:i,acronym:b,applet:a({param:1},g),basefont:i,big:b,center:g,dialog:i,dir:{li:1},
font:b,isindex:i,noframes:g,strike:b,tt:b};a(e,{$block:a({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},c,k),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,
header:1,hgroup:1,main:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1},$inline:b,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:a({body:1,head:1,html:1},e.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,
select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,time:1,tt:1,u:1,"var":1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1,ins:1,map:1,noscript:1,object:1,video:1},
$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}});return e}(),CKEDITOR.dom.event=function(a){this.$=a},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var a=this.getKey();if(this.$.ctrlKey||this.$.metaKey)a=a+CKEDITOR.CTRL;this.$.shiftKey&&(a=a+CKEDITOR.SHIFT);this.$.altKey&&(a=a+CKEDITOR.ALT);return a},preventDefault:function(a){var e=
this.$;e.preventDefault?e.preventDefault():e.returnValue=false;a&&this.stopPropagation()},stopPropagation:function(){var a=this.$;a.stopPropagation?a.stopPropagation():a.cancelBubble=true},getTarget:function(){var a=this.$.target||this.$.srcElement;return a?new CKEDITOR.dom.node(a):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var a=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(a.documentElement.scrollLeft||a.body.scrollLeft),y:this.$.pageY||
this.$.clientY+(a.documentElement.scrollTop||a.body.scrollTop)}}},CKEDITOR.CTRL=1114112,CKEDITOR.SHIFT=2228224,CKEDITOR.ALT=4456448,CKEDITOR.EVENT_PHASE_CAPTURING=1,CKEDITOR.EVENT_PHASE_AT_TARGET=2,CKEDITOR.EVENT_PHASE_BUBBLING=3,CKEDITOR.dom.domObject=function(a){if(a)this.$=a},CKEDITOR.dom.domObject.prototype=function(){var a=function(a,b){return function(g){typeof CKEDITOR!="undefined"&&a.fire(b,new CKEDITOR.dom.event(g))}};return{getPrivate:function(){var a;if(!(a=this.getCustomData("_")))this.setCustomData("_",
a={});return a},on:function(e){var b=this.getCustomData("_cke_nativeListeners");if(!b){b={};this.setCustomData("_cke_nativeListeners",b)}if(!b[e]){b=b[e]=a(this,e);this.$.addEventListener?this.$.addEventListener(e,b,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+e,b)}return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(a){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(a)){var b=this.getCustomData("_cke_nativeListeners"),
g=b&&b[a];if(g){this.$.removeEventListener?this.$.removeEventListener(a,g,false):this.$.detachEvent&&this.$.detachEvent("on"+a,g);delete b[a]}}},removeAllListeners:function(){var a=this.getCustomData("_cke_nativeListeners"),b;for(b in a){var g=a[b];this.$.detachEvent?this.$.detachEvent("on"+b,g):this.$.removeEventListener&&this.$.removeEventListener(b,g,false);delete a[b]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}(),function(a){var e={};CKEDITOR.on("reset",function(){e={}});a.equals=
function(a){try{return a&&a.$===this.$}catch(g){return false}};a.setCustomData=function(a,g){var c=this.getUniqueId();(e[c]||(e[c]={}))[a]=g;return this};a.getCustomData=function(a){var g=this.$["data-cke-expando"];return(g=g&&e[g])&&a in g?g[a]:null};a.removeCustomData=function(a){var g=this.$["data-cke-expando"],g=g&&e[g],c,j;if(g){c=g[a];j=a in g;delete g[a]}return j?c:null};a.clearCustomData=function(){this.removeAllListeners();var a=this.$["data-cke-expando"];a&&delete e[a]};a.getUniqueId=function(){return this.$["data-cke-expando"]||
(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(a)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(a){return a?new CKEDITOR.dom[a.nodeType==CKEDITOR.NODE_DOCUMENT?"document":a.nodeType==CKEDITOR.NODE_ELEMENT?"element":a.nodeType==CKEDITOR.NODE_TEXT?"text":a.nodeType==CKEDITOR.NODE_COMMENT?"comment":a.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](a):this},CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=
1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT=3,CKEDITOR.NODE_COMMENT=8,CKEDITOR.NODE_DOCUMENT_FRAGMENT=11,CKEDITOR.POSITION_IDENTICAL=0,CKEDITOR.POSITION_DISCONNECTED=1,CKEDITOR.POSITION_FOLLOWING=2,CKEDITOR.POSITION_PRECEDING=4,CKEDITOR.POSITION_IS_CONTAINED=8,CKEDITOR.POSITION_CONTAINS=16,CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(a,e){a.append(this,e);return a},clone:function(a,e){function b(c){c["data-cke-expando"]&&(c["data-cke-expando"]=false);if(!(c.nodeType!=CKEDITOR.NODE_ELEMENT&&
c.nodeType!=CKEDITOR.NODE_DOCUMENT_FRAGMENT)){!e&&c.nodeType==CKEDITOR.NODE_ELEMENT&&c.removeAttribute("id",false);if(a)for(var c=c.childNodes,g=0;g<c.length;g++)b(c[g])}}function g(b){if(!(b.type!=CKEDITOR.NODE_ELEMENT&&b.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT)){if(b.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var c=b.getName();c[0]==":"&&b.renameNode(c.substring(1))}if(a)for(c=0;c<b.getChildCount();c++)g(b.getChild(c))}}var c=this.$.cloneNode(a);b(c);c=new CKEDITOR.dom.node(c);CKEDITOR.env.ie&&(CKEDITOR.env.version<
9&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT))&&g(c);return c},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(a){a.$.parentNode.insertBefore(this.$,a.$.nextSibling);return a},insertBefore:function(a){a.$.parentNode.insertBefore(this.$,a.$);return a},insertBeforeMe:function(a){this.$.parentNode.insertBefore(a.$,this.$);return a},getAddress:function(a){for(var e=[],b=this.getDocument().$.documentElement,
g=this.$;g&&g!=b;){var c=g.parentNode;c&&e.unshift(this.getIndex.call({$:g},a));g=c}return e},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(a){function e(a,b){var f=b?a.nextSibling:a.previousSibling;return!f||f.nodeType!=CKEDITOR.NODE_TEXT?null:f.nodeValue?f:e(f,b)}var b=this.$,g=-1,c;if(!this.$.parentNode||a&&b.nodeType==CKEDITOR.NODE_TEXT&&!b.nodeValue&&!e(b)&&!e(b,true))return-1;do if(!a||!(b!=this.$&&b.nodeType==
CKEDITOR.NODE_TEXT&&(c||!b.nodeValue))){g++;c=b.nodeType==CKEDITOR.NODE_TEXT}while(b=b.previousSibling);return g},getNextSourceNode:function(a,e,b){if(b&&!b.call)var g=b,b=function(a){return!a.equals(g)};var a=!a&&this.getFirst&&this.getFirst(),c;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;a=this.getNext()}for(;!a&&(c=(c||this).getParent());){if(b&&b(c,true)===false)return null;a=c.getNext()}return!a||b&&b(a)===false?null:e&&e!=a.type?a.getNextSourceNode(false,
e,b):a},getPreviousSourceNode:function(a,e,b){if(b&&!b.call)var g=b,b=function(a){return!a.equals(g)};var a=!a&&this.getLast&&this.getLast(),c;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;a=this.getPrevious()}for(;!a&&(c=(c||this).getParent());){if(b&&b(c,true)===false)return null;a=c.getPrevious()}return!a||b&&b(a)===false?null:e&&a.type!=e?a.getPreviousSourceNode(false,e,b):a},getPrevious:function(a){var e=this.$,b;do b=(e=e.previousSibling)&&e.nodeType!=10&&new CKEDITOR.dom.node(e);
while(b&&a&&!a(b));return b},getNext:function(a){var e=this.$,b;do b=(e=e.nextSibling)&&new CKEDITOR.dom.node(e);while(b&&a&&!a(b));return b},getParent:function(a){var e=this.$.parentNode;return e&&(e.nodeType==CKEDITOR.NODE_ELEMENT||a&&e.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(e):null},getParents:function(a){var e=this,b=[];do b[a?"push":"unshift"](e);while(e=e.getParent());return b},getCommonAncestor:function(a){if(a.equals(this))return this;if(a.contains&&a.contains(this))return a;
var e=this.contains?this:this.getParent();do if(e.contains(a))return e;while(e=e.getParent());return null},getPosition:function(a){var e=this.$,b=a.$;if(e.compareDocumentPosition)return e.compareDocumentPosition(b);if(e==b)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&a.type==CKEDITOR.NODE_ELEMENT){if(e.contains){if(e.contains(b))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(b.contains(e))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in
e)return e.sourceIndex<0||b.sourceIndex<0?CKEDITOR.POSITION_DISCONNECTED:e.sourceIndex<b.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}for(var e=this.getAddress(),a=a.getAddress(),b=Math.min(e.length,a.length),g=0;g<b;g++)if(e[g]!=a[g])return e[g]<a[g]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return e.length<a.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(a,e){var b=
this.$,g,c;if(!e)b=b.parentNode;if(typeof a=="function"){c=true;g=a}else{c=false;g=function(b){b=typeof b.nodeName=="string"?b.nodeName.toLowerCase():"";return typeof a=="string"?b==a:b in a}}for(;b;){if(g(c?new CKEDITOR.dom.node(b):b))return new CKEDITOR.dom.node(b);try{b=b.parentNode}catch(j){b=null}}return null},hasAscendant:function(a,e){var b=this.$;if(!e)b=b.parentNode;for(;b;){if(b.nodeName&&b.nodeName.toLowerCase()==a)return true;b=b.parentNode}return false},move:function(a,e){a.append(this.remove(),
e)},remove:function(a){var e=this.$,b=e.parentNode;if(b){if(a)for(;a=e.firstChild;)b.insertBefore(e.removeChild(a),e);b.removeChild(e)}return this},replace:function(a){this.insertBefore(a);a.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var a;this.getFirst&&(a=this.getFirst());){if(a.type==CKEDITOR.NODE_TEXT){var e=CKEDITOR.tools.ltrim(a.getText()),b=a.getLength();if(e){if(e.length<b){a.split(b-e.length);this.$.removeChild(this.$.firstChild)}}else{a.remove();continue}}break}},
rtrim:function(){for(var a;this.getLast&&(a=this.getLast());){if(a.type==CKEDITOR.NODE_TEXT){var e=CKEDITOR.tools.rtrim(a.getText()),b=a.getLength();if(e){if(e.length<b){a.split(e.length);this.$.lastChild.parentNode.removeChild(this.$.lastChild)}}else{a.remove();continue}}break}if(CKEDITOR.env.needsBrFiller)(a=this.$.lastChild)&&(a.type==1&&a.nodeName.toLowerCase()=="br")&&a.parentNode.removeChild(a)},isReadOnly:function(a){var e=this;this.type!=CKEDITOR.NODE_ELEMENT&&(e=this.getParent());CKEDITOR.env.edge&&
(e&&e.is("textarea"))&&(a=true);if(!a&&e&&typeof e.$.isContentEditable!="undefined")return!(e.$.isContentEditable||e.data("cke-editable"));for(;e;){if(e.data("cke-editable"))return false;if(e.hasAttribute("contenteditable"))return e.getAttribute("contenteditable")=="false";e=e.getParent()}return true}}),CKEDITOR.dom.window=function(a){CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},
getViewPaneSize:function(){var a=this.$.document,e=a.compatMode=="CSS1Compat";return{width:(e?a.documentElement.clientWidth:a.body.clientWidth)||0,height:(e?a.documentElement.clientHeight:a.body.clientHeight)||0}},getScrollPosition:function(){var a=this.$;if("pageXOffset"in a)return{x:a.pageXOffset||0,y:a.pageYOffset||0};a=a.document;return{x:a.documentElement.scrollLeft||a.body.scrollLeft||0,y:a.documentElement.scrollTop||a.body.scrollTop||0}},getFrame:function(){var a=this.$.frameElement;return a?
new CKEDITOR.dom.element.get(a):null}}),CKEDITOR.dom.document=function(a){CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(a){if(this.$.createStyleSheet)this.$.createStyleSheet(a);else{var e=new CKEDITOR.dom.element("link");e.setAttributes({rel:"stylesheet",type:"text/css",href:a});this.getHead().append(e)}},appendStyleText:function(a){if(this.$.createStyleSheet){var e=
this.$.createStyleSheet("");e.cssText=a}else{var b=new CKEDITOR.dom.element("style",this);b.append(new CKEDITOR.dom.text(a,this));this.getHead().append(b)}return e||b.$.sheet},createElement:function(a,e){var b=new CKEDITOR.dom.element(a,this);if(e){e.attributes&&b.setAttributes(e.attributes);e.styles&&b.setStyles(e.styles)}return b},createText:function(a){return new CKEDITOR.dom.text(a,this)},focus:function(){this.getWindow().focus()},getActive:function(){var a;try{a=this.$.activeElement}catch(e){return null}return new CKEDITOR.dom.element(a)},
getById:function(a){return(a=this.$.getElementById(a))?new CKEDITOR.dom.element(a):null},getByAddress:function(a,e){for(var b=this.$.documentElement,g=0;b&&g<a.length;g++){var c=a[g];if(e)for(var j=-1,i=0;i<b.childNodes.length;i++){var f=b.childNodes[i];if(!(e===true&&f.nodeType==3&&f.previousSibling&&f.previousSibling.nodeType==3)){j++;if(j==c){b=f;break}}}else b=b.childNodes[c]}return b?new CKEDITOR.dom.node(b):null},getElementsByTag:function(a,e){!(CKEDITOR.env.ie&&document.documentMode<=8)&&e&&
(a=e+":"+a);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(a))},getHead:function(){var a=this.$.getElementsByTagName("head")[0];return a=a?new CKEDITOR.dom.element(a):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),true)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(a){this.$.open("text/html",
"replace");CKEDITOR.env.ie&&(a=a.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$&\n<script data-cke-temp="1">('+CKEDITOR.tools.fixDomain+")();<\/script>"));this.$.write(a);this.$.close()},find:function(a){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(a))},findOne:function(a){return(a=this.$.querySelector(a))?new CKEDITOR.dom.element(a):null},_getHtml5ShivFrag:function(){var a=this.getCustomData("html5ShivFrag");if(!a){a=this.$.createDocumentFragment();CKEDITOR.tools.enableHtml5Elements(a,true);
this.setCustomData("html5ShivFrag",a)}return a}}),CKEDITOR.dom.nodeList=function(a){this.$=a},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(a){if(a<0||a>=this.$.length)return null;return(a=this.$[a])?new CKEDITOR.dom.node(a):null}},CKEDITOR.dom.element=function(a,e){typeof a=="string"&&(a=(e?e.$:document).createElement(a));CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.element.get=function(a){return(a=typeof a=="string"?document.getElementById(a)||document.getElementsByName(a)[0]:
a)&&(a.$?a:new CKEDITOR.dom.element(a))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(a,e){var b=new CKEDITOR.dom.element("div",e);b.setHtml(a);return b.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(a,e,b,g){var c=e.getCustomData("list_marker_id")||e.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),j=e.getCustomData("list_marker_names")||e.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");
a[c]=e;j[b]=1;return e.setCustomData(b,g)},CKEDITOR.dom.element.clearAllMarkers=function(a){for(var e in a)CKEDITOR.dom.element.clearMarkers(a,a[e],1)},CKEDITOR.dom.element.clearMarkers=function(a,e,b){var g=e.getCustomData("list_marker_names"),c=e.getCustomData("list_marker_id"),j;for(j in g)e.removeCustomData(j);e.removeCustomData("list_marker_names");if(b){e.removeCustomData("list_marker_id");delete a[c]}},function(){function a(a,b){return(" "+a+" ").replace(j," ").indexOf(" "+b+" ")>-1}function e(a){var b=
true;if(!a.$.id){a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber();b=false}return function(){b||a.removeAttribute("id")}}function b(a,b){return"#"+a.$.id+" "+b.split(/,\s*/).join(", #"+a.$.id+" ")}function g(a){for(var b=0,d=0,h=i[a].length;d<h;d++)b=b+(parseInt(this.getComputedStyle(i[a][d])||0,10)||0);return b}var c=!!document.createElement("span").classList,j=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:c?function(a){this.$.classList.add(a);
return this}:function(f){var b=this.$.className;b&&(a(b,f)||(b=b+(" "+f)));this.$.className=b||f;return this},removeClass:c?function(a){var b=this.$;b.classList.remove(a);b.className||b.removeAttribute("class");return this}:function(f){var b=this.getAttribute("class");if(b&&a(b,f))(b=b.replace(RegExp("(?:^|\\s+)"+f+"(?=\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",b):this.removeAttribute("class");return this},hasClass:function(b){return a(this.$.className,b)},append:function(a,b){typeof a==
"string"&&(a=this.getDocument().createElement(a));b?this.$.insertBefore(a.$,this.$.firstChild):this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var b=new CKEDITOR.dom.element("div",this.getDocument());b.setHtml(a);b.moveChildren(this)}else this.setHtml(a)},appendText:function(a){this.$.text!=null&&CKEDITOR.env.ie&&CKEDITOR.env.version<9?this.$.text=this.$.text+a:this.append(new CKEDITOR.dom.text(a))},appendBogus:function(a){if(a||CKEDITOR.env.needsBrFiller){for(a=
this.getLast();a&&a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(a.getText());)a=a.getPrevious();if(!a||!a.is||!a.is("br")){a=this.getDocument().createElement("br");CKEDITOR.env.gecko&&a.setAttribute("type","_moz");this.append(a)}}},breakParent:function(a,b){var d=new CKEDITOR.dom.range(this.getDocument());d.setStartAfter(this);d.setEndAfter(a);var h=d.extractContents(false,b||false);d.insertNode(this.remove());h.insertAfterNode(this)},contains:!document.compareDocumentPosition?function(a){var b=
this.$;return a.type!=CKEDITOR.NODE_ELEMENT?b.contains(a.getParent().$):b!=a.$&&b.contains(a.$)}:function(a){return!!(this.$.compareDocumentPosition(a.$)&16)},focus:function(){function a(){try{this.$.focus()}catch(b){}}return function(b){b?CKEDITOR.tools.setTimeout(a,100,this):a.call(this)}}(),getHtml:function(){var a=this.$.innerHTML;return CKEDITOR.env.ie?a.replace(/<\?[^>]*>/g,""):a},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var a=this.$.ownerDocument.createElement("div");
a.appendChild(this.$.cloneNode(true));return a.innerHTML},getClientRect:function(){var a=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!a.width&&(a.width=a.right-a.left);!a.height&&(a.height=a.bottom-a.top);return a},setHtml:CKEDITOR.env.ie&&CKEDITOR.env.version<9?function(a){try{var b=this.$;if(this.getParent())return b.innerHTML=a;var d=this.getDocument()._getHtml5ShivFrag();d.appendChild(b);b.innerHTML=a;d.removeChild(b);return a}catch(h){this.$.innerHTML="";b=new CKEDITOR.dom.element("body",
this.getDocument());b.$.innerHTML=a;for(b=b.getChildren();b.count();)this.append(b.getItem(0));return a}}:function(a){return this.$.innerHTML=a},setText:function(){var a=document.createElement("p");a.innerHTML="x";a=a.textContent;return function(b){this.$[a?"textContent":"innerText"]=b}}(),getAttribute:function(){var a=function(a){return this.$.getAttribute(a,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){switch(a){case "class":a="className";break;case "http-equiv":a=
"httpEquiv";break;case "name":return this.$.name;case "tabindex":a=this.$.getAttribute(a,2);a!==0&&this.$.tabIndex===0&&(a=null);return a;case "checked":a=this.$.attributes.getNamedItem(a);return(a.specified?a.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[a];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(a,
2)}:a}(),getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(a){var b=this.getWindow().$.getComputedStyle(this.$,null);return b?b.getPropertyValue(a):""}:function(a){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(a)]},getDtd:function(){var a=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return a};return a},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,
getTabIndex:function(){var a=this.$.tabIndex;return a===0&&!CKEDITOR.dtd.$tabIndex[this.getName()]&&parseInt(this.getAttribute("tabindex"),10)!==0?-1:a},getText:function(){return this.$.textContent||this.$.innerText||""},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var a=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&document.documentMode<=8){var b=this.$.scopeName;b!="HTML"&&
(a=b.toLowerCase()+":"+a)}this.getName=function(){return a};return this.getName()},getValue:function(){return this.$.value},getFirst:function(a){var b=this.$.firstChild;(b=b&&new CKEDITOR.dom.node(b))&&(a&&!a(b))&&(b=b.getNext(a));return b},getLast:function(a){var b=this.$.lastChild;(b=b&&new CKEDITOR.dom.node(b))&&(a&&!a(b))&&(b=b.getPrevious(a));return b},getStyle:function(a){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]},is:function(){var a=this.getName();if(typeof arguments[0]=="object")return!!arguments[0][a];
for(var b=0;b<arguments.length;b++)if(arguments[b]==a)return true;return false},isEditable:function(a){var b=this.getName();if(this.isReadOnly()||this.getComputedStyle("display")=="none"||this.getComputedStyle("visibility")=="hidden"||CKEDITOR.dtd.$nonEditable[b]||CKEDITOR.dtd.$empty[b]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())return false;if(a!==false){a=CKEDITOR.dtd[b]||CKEDITOR.dtd.span;return!(!a||!a["#"])}return true},isIdentical:function(a){var b=
this.clone(0,1),a=a.clone(0,1);b.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);a.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);if(b.$.isEqualNode){b.$.style.cssText=CKEDITOR.tools.normalizeCssText(b.$.style.cssText);a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText);return b.$.isEqualNode(a.$)}b=b.getOuterHtml();a=a.getOuterHtml();if(CKEDITOR.env.ie&&CKEDITOR.env.version<9&&this.is("a")){var d=
this.getParent();if(d.type==CKEDITOR.NODE_ELEMENT){d=d.clone();d.setHtml(b);b=d.getHtml();d.setHtml(a);a=d.getHtml()}}return b==a},isVisible:function(){var a=(this.$.offsetHeight||this.$.offsetWidth)&&this.getComputedStyle("visibility")!="hidden",b,d;if(a&&CKEDITOR.env.webkit){b=this.getWindow();if(!b.equals(CKEDITOR.document.getWindow())&&(d=b.$.frameElement))a=(new CKEDITOR.dom.element(d)).isVisible()}return!!a},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return false;
for(var a=this.getChildren(),b=0,d=a.count();b<d;b++){var h=a.getItem(b);if(!(h.type==CKEDITOR.NODE_ELEMENT&&h.data("cke-bookmark"))&&(h.type==CKEDITOR.NODE_ELEMENT&&!h.isEmptyInlineRemoveable()||h.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(h.getText())))return false}return true},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var a=this.$.attributes,b=0;b<a.length;b++){var d=a[b];switch(d.nodeName){case "class":if(this.getAttribute("class"))return true;
case "data-cke-expando":continue;default:if(d.specified)return true}}return false}:function(){var a=this.$.attributes,b=a.length,d={"data-cke-expando":1,_moz_dirty:1};return b>0&&(b>2||!d[a[0].nodeName]||b==2&&!d[a[1].nodeName])},hasAttribute:function(){function a(b){var d=this.$.attributes.getNamedItem(b);if(this.getName()=="input")switch(b){case "class":return this.$.className.length>0;case "checked":return!!this.$.checked;case "value":b=this.getAttribute("type");return b=="checkbox"||b=="radio"?
this.$.value!="on":!!this.$.value}return!d?false:d.specified}return CKEDITOR.env.ie?CKEDITOR.env.version<8?function(b){return b=="name"?!!this.$.name:a.call(this,b)}:a:function(a){return!!this.$.attributes.getNamedItem(a)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(a,b){var d=this.$,a=a.$;if(d!=a){var h;if(b)for(;h=d.lastChild;)a.insertBefore(d.removeChild(h),a.firstChild);else for(;h=d.firstChild;)a.appendChild(d.removeChild(h))}},mergeSiblings:function(){function a(b,
d,h){if(d&&d.type==CKEDITOR.NODE_ELEMENT){for(var f=[];d.data("cke-bookmark")||d.isEmptyInlineRemoveable();){f.push(d);d=h?d.getNext():d.getPrevious();if(!d||d.type!=CKEDITOR.NODE_ELEMENT)return}if(b.isIdentical(d)){for(var c=h?b.getLast():b.getFirst();f.length;)f.shift().move(b,!h);d.moveChildren(b,!h);d.remove();c&&c.type==CKEDITOR.NODE_ELEMENT&&c.mergeSiblings()}}}return function(b){if(b===false||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a")){a(this,this.getNext(),true);a(this,this.getPrevious())}}}(),
show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var a=function(a,b){this.$.setAttribute(a,b);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(b,d){b=="class"?this.$.className=d:b=="style"?this.$.style.cssText=d:b=="tabindex"?this.$.tabIndex=d:b=="checked"?this.$.checked=d:b=="contenteditable"?a.call(this,"contentEditable",d):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(b,d){if(b==
"src"&&d.match(/^http:\/\//))try{a.apply(this,arguments)}catch(h){}else a.apply(this,arguments);return this}:a}(),setAttributes:function(a){for(var b in a)this.setAttribute(b,a[b]);return this},setValue:function(a){this.$.value=a;return this},removeAttribute:function(){var a=function(a){this.$.removeAttribute(a)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){a=="class"?a="className":a=="tabindex"?a="tabIndex":a=="contenteditable"&&(a="contentEditable");this.$.removeAttribute(a)}:
a}(),removeAttributes:function(a){if(CKEDITOR.tools.isArray(a))for(var b=0;b<a.length;b++)this.removeAttribute(a[b]);else for(b in a)a.hasOwnProperty(b)&&this.removeAttribute(b)},removeStyle:function(a){var b=this.$.style;if(!b.removeProperty&&(a=="border"||a=="margin"||a=="padding")){var d=["top","left","right","bottom"],h;a=="border"&&(h=["color","style","width"]);for(var b=[],c=0;c<d.length;c++)if(h)for(var g=0;g<h.length;g++)b.push([a,d[c],h[g]].join("-"));else b.push([a,d[c]].join("-"));for(a=
0;a<b.length;a++)this.removeStyle(b[a])}else{b.removeProperty?b.removeProperty(a):b.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(a));this.$.style.cssText||this.removeAttribute("style")}},setStyle:function(a,b){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]=b;return this},setStyles:function(a){for(var b in a)this.setStyle(b,a[b]);return this},setOpacity:function(a){if(CKEDITOR.env.ie&&CKEDITOR.env.version<9){a=Math.round(a*100);this.setStyle("filter",a>=100?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+
a+")")}else this.setStyle("opacity",a)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none"));if(CKEDITOR.env.ie){this.setAttribute("unselectable","on");for(var a,b=this.getElementsByTag("*"),d=0,h=b.count();d<h;d++){a=b.getItem(d);a.setAttribute("unselectable","on")}}},getPositionedAncestor:function(){for(var a=this;a.getName()!="html";){if(a.getComputedStyle("position")!="static")return a;a=a.getParent()}return null},getDocumentPosition:function(a){var b=0,
d=0,h=this.getDocument(),c=h.getBody(),g=h.$.compatMode=="BackCompat";if(document.documentElement.getBoundingClientRect){var e=this.$.getBoundingClientRect(),m=h.$.documentElement,j=m.clientTop||c.$.clientTop||0,o=m.clientLeft||c.$.clientLeft||0,i=true;if(CKEDITOR.env.ie){i=h.getDocumentElement().contains(this);h=h.getBody().contains(this);i=g&&h||!g&&i}if(i){if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&CKEDITOR.env.version>=12){b=c.$.scrollLeft||m.scrollLeft;d=c.$.scrollTop||m.scrollTop}else{d=g?c.$:
m;b=d.scrollLeft;d=d.scrollTop}b=e.left+b-o;d=e.top+d-j}}else{j=this;for(o=null;j&&!(j.getName()=="body"||j.getName()=="html");){b=b+(j.$.offsetLeft-j.$.scrollLeft);d=d+(j.$.offsetTop-j.$.scrollTop);if(!j.equals(this)){b=b+(j.$.clientLeft||0);d=d+(j.$.clientTop||0)}for(;o&&!o.equals(j);){b=b-o.$.scrollLeft;d=d-o.$.scrollTop;o=o.getParent()}o=j;j=(e=j.$.offsetParent)?new CKEDITOR.dom.element(e):null}}if(a){e=this.getWindow();j=a.getWindow();if(!e.equals(j)&&e.$.frameElement){a=(new CKEDITOR.dom.element(e.$.frameElement)).getDocumentPosition(a);
b=b+a.x;d=d+a.y}}if(!document.documentElement.getBoundingClientRect&&CKEDITOR.env.gecko&&!g){b=b+(this.$.clientLeft?1:0);d=d+(this.$.clientTop?1:0)}return{x:b,y:d}},scrollIntoView:function(a){var b=this.getParent();if(b){do{(b.$.clientWidth&&b.$.clientWidth<b.$.scrollWidth||b.$.clientHeight&&b.$.clientHeight<b.$.scrollHeight)&&!b.is("body")&&this.scrollIntoParent(b,a,1);if(b.is("html")){var d=b.getWindow();try{var h=d.$.frameElement;h&&(b=new CKEDITOR.dom.element(h))}catch(c){}}}while(b=b.getParent())
}},scrollIntoParent:function(a,b,d){var h,c,g,e;function m(h,b){if(/body|html/.test(a.getName()))a.getWindow().$.scrollBy(h,b);else{a.$.scrollLeft=a.$.scrollLeft+h;a.$.scrollTop=a.$.scrollTop+b}}function j(a,h){var b={x:0,y:0};if(!a.is(s?"body":"html")){var d=a.$.getBoundingClientRect();b.x=d.left;b.y=d.top}d=a.getWindow();if(!d.equals(h)){d=j(CKEDITOR.dom.element.get(d.$.frameElement),h);b.x=b.x+d.x;b.y=b.y+d.y}return b}function i(a,h){return parseInt(a.getComputedStyle("margin-"+h)||0,10)||0}!a&&
(a=this.getWindow());g=a.getDocument();var s=g.$.compatMode=="BackCompat";a instanceof CKEDITOR.dom.window&&(a=s?g.getBody():g.getDocumentElement());g=a.getWindow();c=j(this,g);var t=j(a,g),w=this.$.offsetHeight;h=this.$.offsetWidth;var u=a.$.clientHeight,x=a.$.clientWidth;g=c.x-i(this,"left")-t.x||0;e=c.y-i(this,"top")-t.y||0;h=c.x+h+i(this,"right")-(t.x+x)||0;c=c.y+w+i(this,"bottom")-(t.y+u)||0;if(e<0||c>0)m(0,b===true?e:b===false?c:e<0?e:c);if(d&&(g<0||h>0))m(g<0?g:h,0)},setState:function(a,b,
d){b=b||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(b+"_on");this.removeClass(b+"_off");this.removeClass(b+"_disabled");d&&this.setAttribute("aria-pressed",true);d&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(b+"_disabled");this.removeClass(b+"_off");this.removeClass(b+"_on");d&&this.setAttribute("aria-disabled",true);d&&this.removeAttribute("aria-pressed");break;default:this.addClass(b+"_off");this.removeClass(b+"_on");this.removeClass(b+
"_disabled");d&&this.removeAttribute("aria-pressed");d&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(b){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a,b){for(var d=this.$.attributes,b=b||{},h=0;h<d.length;h++){var c=d[h],g=c.nodeName.toLowerCase(),e;if(!(g in b))if(g=="checked"&&(e=this.getAttribute(g)))a.setAttribute(g,e);else if(!CKEDITOR.env.ie||this.hasAttribute(g)){e=this.getAttribute(g);
if(e===null)e=c.nodeValue;a.setAttribute(g,e)}}if(this.$.style.cssText!=="")a.$.style.cssText=this.$.style.cssText},renameNode:function(a){if(this.getName()!=a){var b=this.getDocument(),a=new CKEDITOR.dom.element(a,b);this.copyAttributes(a);this.moveChildren(a);this.getParent(true)&&this.$.parentNode.replaceChild(a.$,this.$);a.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=a.$;delete this.getName}},getChild:function(){function a(b,d){var h=b.childNodes;if(d>=0&&d<h.length)return h[d]}return function(b){var d=
this.$;if(b.slice)for(b=b.slice();b.length>0&&d;)d=a(d,b.shift());else d=a(d,b);return d?new CKEDITOR.dom.node(d):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){this.on("contextmenu",function(a){a.data.getTarget().hasClass("cke_enable_context_menu")||a.data.preventDefault()})},getDirection:function(a){return a?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":
this.getStyle("direction")||this.getAttribute("dir")},data:function(a,b){a="data-"+a;if(b===void 0)return this.getAttribute(a);b===false?this.removeAttribute(a):this.setAttribute(a,b);return null},getEditor:function(){var a=CKEDITOR.instances,b,d;for(b in a){d=a[b];if(d.element.equals(this)&&d.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO)return d}return null},find:function(a){var c=e(this),a=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(b(this,a)));c();return a},findOne:function(a){var c=e(this),
a=this.$.querySelector(b(this,a));c();return a?new CKEDITOR.dom.element(a):null},forEach:function(a,b,d){if(!d&&(!b||this.type==b))var h=a(this);if(h!==false)for(var d=this.getChildren(),c=0;c<d.count();c++){h=d.getItem(c);h.type==CKEDITOR.NODE_ELEMENT?h.forEach(a,b):(!b||h.type==b)&&a(h)}}});var i={width:["border-left-width","border-right-width","padding-left","padding-right"],height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};CKEDITOR.dom.element.prototype.setSize=
function(a,b,d){if(typeof b=="number"){if(d&&(!CKEDITOR.env.ie||!CKEDITOR.env.quirks))b=b-g.call(this,a);this.setStyle(a,b+"px")}};CKEDITOR.dom.element.prototype.getSize=function(a,b){var d=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(a)],this.$["client"+CKEDITOR.tools.capitalize(a)])||0;b&&(d=d-g.call(this,a));return d}}(),CKEDITOR.dom.documentFragment=function(a){a=a||CKEDITOR.document;this.$=a.type==CKEDITOR.NODE_DOCUMENT?a.$.createDocumentFragment():a},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,
CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(a){a=a.$;a.parentNode.insertBefore(this.$,a.nextSibling)},getHtml:function(){var a=new CKEDITOR.dom.element("div");this.clone(1,1).appendTo(a);return a.getHtml().replace(/\s*data-cke-expando=".*?"/g,"")}},!0,{append:1,appendBogus:1,clone:1,getFirst:1,getHtml:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,
getChildCount:1,getChild:1,getChildren:1}),function(){function a(a,b){var h=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(h.collapsed){this.end();return null}h.optimize()}var d,c=h.startContainer;d=h.endContainer;var g=h.startOffset,f=h.endOffset,e,j=this.guard,k=this.type,i=a?"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var v=d.type==CKEDITOR.NODE_ELEMENT?d:d.getParent(),r=d.type==CKEDITOR.NODE_ELEMENT?d.getChild(f):d.getNext();this._.guardLTR=function(a,
b){return(!b||!v.equals(a))&&(!r||!a.equals(r))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(h.root))}}if(a&&!this._.guardRTL){var y=c.type==CKEDITOR.NODE_ELEMENT?c:c.getParent(),z=c.type==CKEDITOR.NODE_ELEMENT?g?c.getChild(g-1):null:c.getPrevious();this._.guardRTL=function(a,b){return(!b||!y.equals(a))&&(!z||!a.equals(z))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(h.root))}}var B=a?this._.guardRTL:this._.guardLTR;e=j?function(a,b){return B(a,b)===false?false:j(a,b)}:B;if(this.current)d=this.current[i](false,
k,e);else{if(a)d.type==CKEDITOR.NODE_ELEMENT&&(d=f>0?d.getChild(f-1):e(d,true)===false?null:d.getPreviousSourceNode(true,k,e));else{d=c;if(d.type==CKEDITOR.NODE_ELEMENT&&!(d=d.getChild(g)))d=e(c,true)===false?null:c.getNextSourceNode(true,k,e)}d&&e(d)===false&&(d=null)}for(;d&&!this._.end;){this.current=d;if(!this.evaluator||this.evaluator(d)!==false){if(!b)return d}else if(b&&this.evaluator)return false;d=d[i](false,k,e)}this.end();return this.current=null}function e(b){for(var h,d=null;h=a.call(this,
b);)d=h;return d}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(a){this.range=a;this._={}},proto:{end:function(){this._.end=1},next:function(){return a.call(this)},previous:function(){return a.call(this,1)},checkForward:function(){return a.call(this,0,1)!==false},checkBackward:function(){return a.call(this,1,1)!==false},lastForward:function(){return e.call(this)},lastBackward:function(){return e.call(this,1)},reset:function(){delete this.current;this._={}}}});var b={block:1,"list-item":1,
table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},g={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(a){return this.getComputedStyle("float")=="none"&&!(this.getComputedStyle("position")in g)&&b[this.getComputedStyle("display")]?true:!!(this.is(CKEDITOR.dtd.$block)||a&&this.is(a))};CKEDITOR.dom.walker.blockBoundary=function(a){return function(b){return!(b.type==
CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary(a))}};CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(a,b){function h(a){return a&&a.getName&&a.getName()=="span"&&a.data("cke-bookmark")}return function(d){var c,g;c=d&&d.type!=CKEDITOR.NODE_ELEMENT&&(g=d.getParent())&&h(g);c=a?c:c||h(d);return!!(b^c)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(b){var h;b&&b.type==CKEDITOR.NODE_TEXT&&(h=!CKEDITOR.tools.trim(b.getText())||
CKEDITOR.env.webkit&&b.getText()=="​");return!!(a^h)}};CKEDITOR.dom.walker.invisible=function(a){var b=CKEDITOR.dom.walker.whitespaces(),h=CKEDITOR.env.webkit?1:0;return function(d){if(b(d))d=1;else{d.type==CKEDITOR.NODE_TEXT&&(d=d.getParent());d=d.$.offsetWidth<=h}return!!(a^d)}};CKEDITOR.dom.walker.nodeType=function(a,b){return function(h){return!!(b^h.type==a)}};CKEDITOR.dom.walker.bogus=function(a){function b(a){return!j(a)&&!i(a)}return function(h){var d=CKEDITOR.env.needsBrFiller?h.is&&h.is("br"):
h.getText&&c.test(h.getText());if(d){d=h.getParent();h=h.getNext(b);d=d.isBlockBoundary()&&(!h||h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary())}return!!(a^d)}};CKEDITOR.dom.walker.temp=function(a){return function(b){b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent());b=b&&b.hasAttribute("data-cke-temp");return!!(a^b)}};var c=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,j=CKEDITOR.dom.walker.whitespaces(),i=CKEDITOR.dom.walker.bookmark(),f=CKEDITOR.dom.walker.temp();CKEDITOR.dom.walker.ignored=function(a){return function(b){b=
j(b)||i(b)||f(b);return!!(a^b)}};var k=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(a){return function(b){for(var h=0,d=b.getChildCount();h<d;++h)if(!k(b.getChild(h)))return!!a;return!a}};var d=CKEDITOR.dom.walker.empty(),h=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(a){var b={},h;for(h in a)CKEDITOR.dtd[h]["#"]&&(b[h]=1);return b}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=function(a){return function(b){return!!(a^
(k(b)?0:b.type==CKEDITOR.NODE_TEXT||b.type==CKEDITOR.NODE_ELEMENT&&(b.is(CKEDITOR.dtd.$inline)||(b.is("hr")||b.getAttribute("contenteditable")=="false")||!CKEDITOR.env.needsBrFiller&&b.is(h)&&d(b))?1:0))}};CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(i(a)||j(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$inline)&&!a.is(CKEDITOR.dtd.$empty));return a&&(CKEDITOR.env.needsBrFiller?a.is&&a.is("br"):a.getText&&c.test(a.getText()))?a:false}}(),
CKEDITOR.dom.range=function(a){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null;this.collapsed=true;var e=a instanceof CKEDITOR.dom.document;this.document=e?a:a.getDocument();this.root=e?a.getBody():a},function(){function a(a){a.collapsed=a.startContainer&&a.endContainer&&a.startContainer.equals(a.endContainer)&&a.startOffset==a.endOffset}function e(a,b,d,c,g){function f(a,b,h,d){var c=h?a.getPrevious():a.getNext();if(d&&k)return c;if(u||d)b.append(a.clone(true,g),h);else{a.remove();
i&&b.append(a)}return c}function e(){var a,b,h,d=Math.min(E.length,H.length);for(a=0;a<d;a++){b=E[a];h=H[a];if(!b.equals(h))return a}return a-1}function j(){var b=L-1,d=A&&D&&!x.equals(v);if(b<K-1||b<S-1||d){d?a.moveToPosition(v,CKEDITOR.POSITION_BEFORE_START):S==b+1&&B?a.moveToPosition(H[b],CKEDITOR.POSITION_BEFORE_END):a.moveToPosition(H[b+1],CKEDITOR.POSITION_BEFORE_START);if(c)if((b=E[b+1])&&b.type==CKEDITOR.NODE_ELEMENT){d=CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none">&nbsp;</span>',
a.document);d.insertAfter(b);b.mergeSiblings(false);a.moveToBookmark({startNode:d})}}else a.collapse(true)}a.optimizeBookmark();var k=b===0,i=b==1,u=b==2,b=u||i,x=a.startContainer,v=a.endContainer,r=a.startOffset,y=a.endOffset,z,B,A,D,C,F;if(u&&v.type==CKEDITOR.NODE_TEXT&&x.equals(v)){x=a.document.createText(x.substring(r,y));d.append(x)}else{if(v.type==CKEDITOR.NODE_TEXT)u?F=true:v=v.split(y);else if(v.getChildCount()>0)if(y>=v.getChildCount()){v=v.getChild(y-1);B=true}else v=v.getChild(y);else D=
B=true;if(x.type==CKEDITOR.NODE_TEXT)u?C=true:x.split(r);else if(x.getChildCount()>0)if(r===0){x=x.getChild(r);z=true}else x=x.getChild(r-1);else A=z=true;for(var E=x.getParents(),H=v.getParents(),L=e(),K=E.length-1,S=H.length-1,I=d,U,R,M,Z=-1,N=L;N<=K;N++){R=E[N];M=R.getNext();for(N==K&&!(R.equals(H[N])&&K<S)?z?f(R,I,false,A):C&&I.append(a.document.createText(R.substring(r))):b&&(U=I.append(R.clone(0,g)));M;){if(M.equals(H[N])){Z=N;break}M=f(M,I)}I=U}I=d;for(N=L;N<=S;N++){d=H[N];M=d.getPrevious();
if(d.equals(E[N]))b&&(I=I.getChild(0));else{N==S&&!(d.equals(E[N])&&S<K)?B?f(d,I,false,D):F&&I.append(a.document.createText(d.substring(0,y))):b&&(U=I.append(d.clone(0,g)));if(N>Z)for(;M;)M=f(M,I,true);I=U}}u||j()}}function b(){var a=false,b=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(true),c=CKEDITOR.dom.walker.bogus();return function(g){if(d(g)||b(g))return true;if(c(g)&&!a)return a=true;return g.type==CKEDITOR.NODE_TEXT&&(g.hasAscendant("pre")||CKEDITOR.tools.trim(g.getText()).length)||
g.type==CKEDITOR.NODE_ELEMENT&&!g.is(j)?false:true}}function g(a){var b=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(1);return function(c){return d(c)||b(c)?true:!a&&i(c)||c.type==CKEDITOR.NODE_ELEMENT&&c.is(CKEDITOR.dtd.$removeEmpty)}}function c(a){return function(){var b;return this[a?"getPreviousNode":"getNextNode"](function(a){!b&&d(a)&&(b=a);return k(a)&&!(i(a)&&a.equals(b))})}}var j={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,
kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},i=CKEDITOR.dom.walker.bogus(),f=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,k=CKEDITOR.dom.walker.editable(),d=CKEDITOR.dom.walker.ignored(true);CKEDITOR.dom.range.prototype={clone:function(){var a=new CKEDITOR.dom.range(this.root);a._setStartContainer(this.startContainer);a.startOffset=this.startOffset;a._setEndContainer(this.endContainer);a.endOffset=this.endOffset;a.collapsed=this.collapsed;return a},collapse:function(a){if(a){this._setEndContainer(this.startContainer);
this.endOffset=this.startOffset}else{this._setStartContainer(this.endContainer);this.startOffset=this.endOffset}this.collapsed=true},cloneContents:function(a){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||e(this,2,b,false,typeof a=="undefined"?true:a);return b},deleteContents:function(a){this.collapsed||e(this,0,null,a)},extractContents:function(a,b){var d=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||e(this,1,d,a,typeof b=="undefined"?true:b);return d},
createBookmark:function(a){var b,d,c,g,f=this.collapsed;b=this.document.createElement("span");b.data("cke-bookmark",1);b.setStyle("display","none");b.setHtml("&nbsp;");if(a){c="cke_bm_"+CKEDITOR.tools.getNextNumber();b.setAttribute("id",c+(f?"C":"S"))}if(!f){d=b.clone();d.setHtml("&nbsp;");a&&d.setAttribute("id",c+"E");g=this.clone();g.collapse();g.insertNode(d)}g=this.clone();g.collapse(true);g.insertNode(b);if(d){this.setStartAfter(b);this.setEndBefore(d)}else this.moveToPosition(b,CKEDITOR.POSITION_AFTER_END);
return{startNode:a?c+(f?"C":"S"):b,endNode:a?c+"E":d,serializable:a,collapsed:f}},createBookmark2:function(){function a(h){var d=h.container,c=h.offset,g;g=d;var f=c;g=g.type!=CKEDITOR.NODE_ELEMENT||f===0||f==g.getChildCount()?0:g.getChild(f-1).type==CKEDITOR.NODE_TEXT&&g.getChild(f).type==CKEDITOR.NODE_TEXT;if(g){d=d.getChild(c-1);c=d.getLength()}d.type==CKEDITOR.NODE_ELEMENT&&c>1&&(c=d.getChild(c-1).getIndex(true)+1);if(d.type==CKEDITOR.NODE_TEXT){g=d;for(f=0;(g=g.getPrevious())&&g.type==CKEDITOR.NODE_TEXT;)f=
f+g.getLength();g=f;if(d.getText())c=c+g;else{f=d.getPrevious(b);if(g){c=g;d=f?f.getNext():d.getParent().getFirst()}else{d=d.getParent();c=f?f.getIndex(true)+1:0}}}h.container=d;h.offset=c}var b=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,true);return function(b){var d=this.collapsed,c={container:this.startContainer,offset:this.startOffset},g={container:this.endContainer,offset:this.endOffset};if(b){a(c);d||a(g)}return{start:c.container.getAddress(b),end:d?null:g.container.getAddress(b),startOffset:c.offset,
endOffset:g.offset,normalized:b,collapsed:d,is2:true}}}(),moveToBookmark:function(a){if(a.is2){var b=this.document.getByAddress(a.start,a.normalized),d=a.startOffset,c=a.end&&this.document.getByAddress(a.end,a.normalized),a=a.endOffset;this.setStart(b,d);c?this.setEnd(c,a):this.collapse(true)}else{b=(d=a.serializable)?this.document.getById(a.startNode):a.startNode;a=d?this.document.getById(a.endNode):a.endNode;this.setStartBefore(b);b.remove();if(a){this.setEndBefore(a);a.remove()}else this.collapse(true)}},
getBoundaryNodes:function(){var a=this.startContainer,b=this.endContainer,d=this.startOffset,c=this.endOffset,g;if(a.type==CKEDITOR.NODE_ELEMENT){g=a.getChildCount();if(g>d)a=a.getChild(d);else if(g<1)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a);a=a.getNextSourceNode()||a}}if(b.type==CKEDITOR.NODE_ELEMENT){g=b.getChildCount();if(g>c)b=b.getChild(c).getPreviousSourceNode(true);else if(g<1)b=b.getPreviousSourceNode();else{for(b=b.$;b.lastChild;)b=
b.lastChild;b=new CKEDITOR.dom.node(b)}}a.getPosition(b)&CKEDITOR.POSITION_FOLLOWING&&(a=b);return{startNode:a,endNode:b}},getCommonAncestor:function(a,b){var d=this.startContainer,c=this.endContainer,d=d.equals(c)?a&&d.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?d.getChild(this.startOffset):d:d.getCommonAncestor(c);return b&&!d.is?d.getParent():d},optimize:function(){var a=this.startContainer,b=this.startOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setStartAfter(a):
this.setStartBefore(a));a=this.endContainer;b=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setEndAfter(a):this.setEndBefore(a))},optimizeBookmark:function(){var a=this.startContainer,b=this.endContainer;a.is&&(a.is("span")&&a.data("cke-bookmark"))&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);b&&(b.is&&b.is("span")&&b.data("cke-bookmark"))&&this.setEndAt(b,CKEDITOR.POSITION_AFTER_END)},trim:function(a,b){var d=this.startContainer,c=this.startOffset,g=this.collapsed;
if((!a||g)&&d&&d.type==CKEDITOR.NODE_TEXT){if(c)if(c>=d.getLength()){c=d.getIndex()+1;d=d.getParent()}else{var f=d.split(c),c=d.getIndex()+1,d=d.getParent();if(this.startContainer.equals(this.endContainer))this.setEnd(f,this.endOffset-this.startOffset);else if(d.equals(this.endContainer))this.endOffset=this.endOffset+1}else{c=d.getIndex();d=d.getParent()}this.setStart(d,c);if(g){this.collapse(true);return}}d=this.endContainer;c=this.endOffset;if(!b&&!g&&d&&d.type==CKEDITOR.NODE_TEXT){if(c){c>=d.getLength()||
d.split(c);c=d.getIndex()+1}else c=d.getIndex();d=d.getParent();this.setEnd(d,c)}},enlarge:function(a,b){function d(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")?null:a}var c=RegExp(/[^\s\ufeff]/);switch(a){case CKEDITOR.ENLARGE_INLINE:var g=1;case CKEDITOR.ENLARGE_ELEMENT:if(this.collapsed)break;var f=this.getCommonAncestor(),e=this.root,j,k,i,u,x,v=false,r,y;r=this.startContainer;var z=this.startOffset;if(r.type==CKEDITOR.NODE_TEXT){if(z){r=!CKEDITOR.tools.trim(r.substring(0,
z)).length&&r;v=!!r}if(r&&!(u=r.getPrevious()))i=r.getParent()}else{z&&(u=r.getChild(z-1)||r.getLast());u||(i=r)}for(i=d(i);i||u;){if(i&&!u){!x&&i.equals(f)&&(x=true);if(g?i.isBlockBoundary():!e.contains(i))break;if(!v||i.getComputedStyle("display")!="inline"){v=false;x?j=i:this.setStartBefore(i)}u=i.getPrevious()}for(;u;){r=false;if(u.type==CKEDITOR.NODE_COMMENT)u=u.getPrevious();else{if(u.type==CKEDITOR.NODE_TEXT){y=u.getText();c.test(y)&&(u=null);r=/[\s\ufeff]$/.test(y)}else if((u.$.offsetWidth>
(CKEDITOR.env.webkit?1:0)||b&&u.is("br"))&&!u.data("cke-bookmark"))if(v&&CKEDITOR.dtd.$removeEmpty[u.getName()]){y=u.getText();if(c.test(y))u=null;else for(var z=u.$.getElementsByTagName("*"),B=0,A;A=z[B++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){u=null;break}u&&(r=!!y.length)}else u=null;r&&(v?x?j=i:i&&this.setStartBefore(i):v=true);if(u){r=u.getPrevious();if(!i&&!r){i=u;u=null;break}u=r}else i=null}}i&&(i=d(i.getParent()))}r=this.endContainer;z=this.endOffset;i=u=null;x=v=false;
var D=function(a,b){var h=new CKEDITOR.dom.range(e);h.setStart(a,b);h.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);var h=new CKEDITOR.dom.walker(h),d;for(h.guard=function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())};d=h.next();){if(d.type!=CKEDITOR.NODE_TEXT)return false;y=d!=a?d.getText():d.substring(b);if(c.test(y))return false}return true};if(r.type==CKEDITOR.NODE_TEXT)if(CKEDITOR.tools.trim(r.substring(z)).length)v=true;else{v=!r.getLength();if(z==r.getLength()){if(!(u=r.getNext()))i=
r.getParent()}else D(r,z)&&(i=r.getParent())}else(u=r.getChild(z))||(i=r);for(;i||u;){if(i&&!u){!x&&i.equals(f)&&(x=true);if(g?i.isBlockBoundary():!e.contains(i))break;if(!v||i.getComputedStyle("display")!="inline"){v=false;x?k=i:i&&this.setEndAfter(i)}u=i.getNext()}for(;u;){r=false;if(u.type==CKEDITOR.NODE_TEXT){y=u.getText();D(u,0)||(u=null);r=/^[\s\ufeff]/.test(y)}else if(u.type==CKEDITOR.NODE_ELEMENT){if((u.$.offsetWidth>0||b&&u.is("br"))&&!u.data("cke-bookmark"))if(v&&CKEDITOR.dtd.$removeEmpty[u.getName()]){y=
u.getText();if(c.test(y))u=null;else{z=u.$.getElementsByTagName("*");for(B=0;A=z[B++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){u=null;break}}u&&(r=!!y.length)}else u=null}else r=1;r&&v&&(x?k=i:this.setEndAfter(i));if(u){r=u.getNext();if(!i&&!r){i=u;u=null;break}u=r}else i=null}i&&(i=d(i.getParent()))}if(j&&k){f=j.contains(k)?k:j;this.setStartBefore(f);this.setEndAfter(f)}break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:i=new CKEDITOR.dom.range(this.root);
e=this.root;i.setStartAt(e,CKEDITOR.POSITION_AFTER_START);i.setEnd(this.startContainer,this.startOffset);i=new CKEDITOR.dom.walker(i);var C,F,E=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),H=null,L=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&a.getAttribute("contenteditable")=="false")if(H){if(H.equals(a)){H=null;return}}else H=a;else if(H)return;var b=E(a);b||(C=a);return b},g=function(a){var b=L(a);!b&&(a.is&&a.is("br"))&&(F=a);return b};i.guard=L;i=i.lastBackward();
C=C||e;this.setStartAt(C,!C.is("br")&&(!i&&this.checkStartOfBlock()||i&&C.contains(i))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){i=this.clone();i=new CKEDITOR.dom.walker(i);var K=CKEDITOR.dom.walker.whitespaces(),S=CKEDITOR.dom.walker.bookmark();i.evaluator=function(a){return!K(a)&&!S(a)};if((i=i.previous())&&i.type==CKEDITOR.NODE_ELEMENT&&i.is("br"))break}i=this.clone();i.collapse();i.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);i=new CKEDITOR.dom.walker(i);
i.guard=a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?g:L;C=H=F=null;i=i.lastForward();C=C||e;this.setEndAt(C,!i&&this.checkEndOfBlock()||i&&C.contains(i)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);F&&this.setEndAfter(F)}},shrink:function(a,b,d){if(!this.collapsed){var a=a||CKEDITOR.SHRINK_TEXT,c=this.clone(),g=this.startContainer,f=this.endContainer,e=this.startOffset,j=this.endOffset,i=1,k=1;if(g&&g.type==CKEDITOR.NODE_TEXT)if(e)if(e>=g.getLength())c.setStartAfter(g);else{c.setStartBefore(g);
i=0}else c.setStartBefore(g);if(f&&f.type==CKEDITOR.NODE_TEXT)if(j)if(j>=f.getLength())c.setEndAfter(f);else{c.setEndAfter(f);k=0}else c.setEndBefore(f);var c=new CKEDITOR.dom.walker(c),u=CKEDITOR.dom.walker.bookmark();c.evaluator=function(b){return b.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var x;c.guard=function(b,c){if(u(b))return true;if(a==CKEDITOR.SHRINK_ELEMENT&&b.type==CKEDITOR.NODE_TEXT||c&&b.equals(x)||d===false&&b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()||
b.type==CKEDITOR.NODE_ELEMENT&&b.hasAttribute("contenteditable"))return false;!c&&b.type==CKEDITOR.NODE_ELEMENT&&(x=b);return true};if(i)(g=c[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(g,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);if(k){c.reset();(c=c[a==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(c,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)}return!(!i&&!k)}},insertNode:function(a){this.optimizeBookmark();this.trim(false,
true);var b=this.startContainer,d=b.getChild(this.startOffset);d?a.insertBefore(d):b.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a,b){this.setStartAt(a,b);this.collapse(true)},moveToRange:function(a){this.setStart(a.startContainer,a.startOffset);this.setEnd(a.endContainer,a.endOffset)},selectNodeContents:function(a){this.setStart(a,0);this.setEnd(a,a.type==CKEDITOR.NODE_TEXT?a.getLength():a.getChildCount())},setStart:function(b,
d){if(b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]){d=b.getIndex();b=b.getParent()}this._setStartContainer(b);this.startOffset=d;if(!this.endContainer){this._setEndContainer(b);this.endOffset=d}a(this)},setEnd:function(b,d){if(b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]){d=b.getIndex()+1;b=b.getParent()}this._setEndContainer(b);this.endOffset=d;if(!this.startContainer){this._setStartContainer(b);this.startOffset=d}a(this)},setStartAfter:function(a){this.setStart(a.getParent(),
a.getIndex()+1)},setStartBefore:function(a){this.setStart(a.getParent(),a.getIndex())},setEndAfter:function(a){this.setEnd(a.getParent(),a.getIndex()+1)},setEndBefore:function(a){this.setEnd(a.getParent(),a.getIndex())},setStartAt:function(b,d){switch(d){case CKEDITOR.POSITION_AFTER_START:this.setStart(b,0);break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setStart(b,b.getLength()):this.setStart(b,b.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(b);
break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(b)}a(this)},setEndAt:function(b,d){switch(d){case CKEDITOR.POSITION_AFTER_START:this.setEnd(b,0);break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setEnd(b,b.getLength()):this.setEnd(b,b.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(b);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(b)}a(this)},fixBlock:function(a,b){var d=this.createBookmark(),c=this.document.createElement(b);this.collapse(a);
this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(c);c.trim();this.insertNode(c);var g=c.getBogus();g&&g.remove();c.appendBogus();this.moveToBookmark(d);return c},splitBlock:function(a,b){var d=new CKEDITOR.dom.elementPath(this.startContainer,this.root),c=new CKEDITOR.dom.elementPath(this.endContainer,this.root),g=d.block,f=c.block,e=null;if(!d.blockLimit.equals(c.blockLimit))return null;if(a!="br"){if(!g){g=this.fixBlock(true,a);f=(new CKEDITOR.dom.elementPath(this.endContainer,
this.root)).block}f||(f=this.fixBlock(false,a))}d=g&&this.checkStartOfBlock();c=f&&this.checkEndOfBlock();this.deleteContents();if(g&&g.equals(f))if(c){e=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(f,CKEDITOR.POSITION_AFTER_END);f=null}else if(d){e=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START);g=null}else{f=this.splitElement(g,b||false);g.is("ul","ol")||g.appendBogus()}return{previousBlock:g,nextBlock:f,
wasStartOfBlock:d,wasEndOfBlock:c,elementPath:e}},splitElement:function(a,b){if(!this.collapsed)return null;this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var d=this.extractContents(false,b||false),c=a.clone(false,b||false);d.appendTo(c);c.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return c},removeEmptyBlocksAtEnd:function(){function a(h){return function(a){return b(a)||(d(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isEmptyInlineRemoveable())||h.is("table")&&a.is("caption")?false:true}}
var b=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(false);return function(b){for(var d=this.createBookmark(),c=this[b?"endPath":"startPath"](),g=c.block||c.blockLimit,f;g&&!g.equals(c.root)&&!g.getFirst(a(g));){f=g.getParent();this[b?"setEndAt":"setStartAt"](g,CKEDITOR.POSITION_AFTER_END);g.remove(1);g=f}this.moveToBookmark(d)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,
this.root)},checkBoundaryOfElement:function(a,b){var d=b==CKEDITOR.START,c=this.clone();c.collapse(d);c[d?"setStartAt":"setEndAt"](a,d?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(c);c.evaluator=g(d);return c[d?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var a=this.startContainer,d=this.startOffset;if(CKEDITOR.env.ie&&d&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.ltrim(a.substring(0,d));f.test(a)&&this.trim(0,1)}this.trim();a=new CKEDITOR.dom.elementPath(this.startContainer,
this.root);d=this.clone();d.collapse(true);d.setStartAt(a.block||a.blockLimit,CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(d);a.evaluator=b();return a.checkBackward()},checkEndOfBlock:function(){var a=this.endContainer,d=this.endOffset;if(CKEDITOR.env.ie&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.rtrim(a.substring(d));f.test(a)&&this.trim(1,0)}this.trim();a=new CKEDITOR.dom.elementPath(this.endContainer,this.root);d=this.clone();d.collapse(false);d.setEndAt(a.block||a.blockLimit,CKEDITOR.POSITION_BEFORE_END);
a=new CKEDITOR.dom.walker(d);a.evaluator=b();return a.checkForward()},getPreviousNode:function(a,b,d){var c=this.clone();c.collapse(1);c.setStartAt(d||this.root,CKEDITOR.POSITION_AFTER_START);d=new CKEDITOR.dom.walker(c);d.evaluator=a;d.guard=b;return d.previous()},getNextNode:function(a,b,d){var c=this.clone();c.collapse();c.setEndAt(d||this.root,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(c);d.evaluator=a;d.guard=b;return d.next()},checkReadOnly:function(){function a(b,d){for(;b;){if(b.type==
CKEDITOR.NODE_ELEMENT){if(b.getAttribute("contentEditable")=="false"&&!b.data("cke-editable"))return 0;if(b.is("html")||b.getAttribute("contentEditable")=="true"&&(b.contains(d)||b.equals(d)))break}b=b.getParent()}return 1}return function(){var b=this.startContainer,d=this.endContainer;return!(a(b,d)&&a(d,b))}}(),moveToElementEditablePosition:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable(false)){this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);return true}for(var c=
0;a;){if(a.type==CKEDITOR.NODE_TEXT){b&&this.endContainer&&this.checkEndOfBlock()&&f.test(a.getText())?this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);c=1;break}if(a.type==CKEDITOR.NODE_ELEMENT)if(a.isEditable()){this.moveToPosition(a,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START);c=1}else if(b&&a.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START);
else if(a.getAttribute("contenteditable")=="false"&&a.is(CKEDITOR.dtd.$block)){this.setStartBefore(a);this.setEndAfter(a);return true}var g=a,e=c,j=void 0;g.type==CKEDITOR.NODE_ELEMENT&&g.isEditable(false)&&(j=g[b?"getLast":"getFirst"](d));!e&&!j&&(j=g[b?"getPrevious":"getNext"](d));a=j}return!!c},moveToClosestEditablePosition:function(a,b){var d,c=0,g,f,e=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];if(a){d=new CKEDITOR.dom.range(this.root);d.moveToPosition(a,e[b?0:1])}else d=this.clone();
if(a&&!a.is(CKEDITOR.dtd.$block))c=1;else if(g=d[b?"getNextEditableNode":"getPreviousEditableNode"]()){c=1;if((f=g.type==CKEDITOR.NODE_ELEMENT)&&g.is(CKEDITOR.dtd.$block)&&g.getAttribute("contenteditable")=="false"){d.setStartAt(g,CKEDITOR.POSITION_BEFORE_START);d.setEndAt(g,CKEDITOR.POSITION_AFTER_END)}else if(!CKEDITOR.env.needsBrFiller&&f&&g.is(CKEDITOR.dom.walker.validEmptyBlockContainers)){d.setEnd(g,0);d.collapse()}else d.moveToPosition(g,e[b?1:0])}c&&this.moveToRange(d);return!!c},moveToElementEditStart:function(a){return this.moveToElementEditablePosition(a)},
moveToElementEditEnd:function(a){return this.moveToElementEditablePosition(a,true)},getEnclosedNode:function(){var a=this.clone();a.optimize();if(a.startContainer.type!=CKEDITOR.NODE_ELEMENT||a.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var a=new CKEDITOR.dom.walker(a),b=CKEDITOR.dom.walker.bookmark(false,true),d=CKEDITOR.dom.walker.whitespaces(true);a.evaluator=function(a){return d(a)&&b(a)};var c=a.next();a.reset();return c&&c.equals(a.previous())?c:null},getTouchedStartNode:function(){var a=
this.startContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.startOffset)||a},getTouchedEndNode:function(){var a=this.endContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.endOffset-1)||a},getNextEditableNode:c(),getPreviousEditableNode:c(1),scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("<span>&nbsp;</span>",this.document),b,d,c,g=this.clone();g.optimize();if(c=g.startContainer.type==CKEDITOR.NODE_TEXT){d=g.startContainer.getText();
b=g.startContainer.split(g.startOffset);a.insertAfter(g.startContainer)}else g.insertNode(a);a.scrollIntoView();if(c){g.startContainer.setText(d);b.remove()}a.remove()},_setStartContainer:function(a){this.startContainer=a},_setEndContainer:function(a){this.endContainer=a}}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START=3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3,
CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT=1,CKEDITOR.SHRINK_TEXT=2,"use strict",function(){function a(a){if(!(arguments.length<1)){this.range=a;this.forceBrBreak=0;this.enlargeBr=1;this.enforceRealBlocks=0;this._||(this._={})}}function e(a){var b=[];a.forEach(function(a){if(a.getAttribute("contenteditable")=="true"){b.push(a);return false}},CKEDITOR.NODE_ELEMENT,true);return b}function b(a,c,g,f){a:{f==null&&(f=e(g));for(var j;j=f.shift();)if(j.getDtd().p){f=
{element:j,remaining:f};break a}f=null}if(!f)return 0;if((j=CKEDITOR.filter.instances[f.element.data("cke-filter")])&&!j.check(c))return b(a,c,g,f.remaining);c=new CKEDITOR.dom.range(f.element);c.selectNodeContents(f.element);c=c.createIterator();c.enlargeBr=a.enlargeBr;c.enforceRealBlocks=a.enforceRealBlocks;c.activeFilter=c.filter=j;a._.nestedEditable={element:f.element,container:g,remaining:f.remaining,iterator:c};return 1}function g(a,b,c){if(!b)return false;a=a.clone();a.collapse(!c);return a.checkBoundaryOfElement(b,
c?CKEDITOR.START:CKEDITOR.END)}var c=/^[\r\n\t ]+$/,j=CKEDITOR.dom.walker.bookmark(false,true),i=CKEDITOR.dom.walker.whitespaces(true),f=function(a){return j(a)&&i(a)},k={dd:1,dt:1,li:1};a.prototype={getNextParagraph:function(a){var h,e,i,p,m,a=a||"p";if(this._.nestedEditable){if(h=this._.nestedEditable.iterator.getNextParagraph(a)){this.activeFilter=this._.nestedEditable.iterator.activeFilter;return h}this.activeFilter=this.filter;if(b(this,a,this._.nestedEditable.container,this._.nestedEditable.remaining)){this.activeFilter=
this._.nestedEditable.iterator.activeFilter;return this._.nestedEditable.iterator.getNextParagraph(a)}this._.nestedEditable=null}if(!this.range.root.getDtd()[a])return null;if(!this._.started){var n=this.range.clone();e=n.startPath();var o=n.endPath(),s=!n.collapsed&&g(n,e.block),t=!n.collapsed&&g(n,o.block,1);n.shrink(CKEDITOR.SHRINK_ELEMENT,true);s&&n.setStartAt(e.block,CKEDITOR.POSITION_BEFORE_END);t&&n.setEndAt(o.block,CKEDITOR.POSITION_AFTER_START);e=n.endContainer.hasAscendant("pre",true)||
n.startContainer.hasAscendant("pre",true);n.enlarge(this.forceBrBreak&&!e||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(!n.collapsed){e=new CKEDITOR.dom.walker(n.clone());o=CKEDITOR.dom.walker.bookmark(true,true);e.evaluator=o;this._.nextNode=e.next();e=new CKEDITOR.dom.walker(n.clone());e.evaluator=o;e=e.previous();this._.lastNode=e.getNextSourceNode(true,null,n.root);if(this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&
this._.lastNode.getParent().isBlockBoundary()){o=this.range.clone();o.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END);if(o.checkEndOfBlock()){o=new CKEDITOR.dom.elementPath(o.endContainer,o.root);this._.lastNode=(o.block||o.blockLimit).getNextSourceNode(true)}}if(!this._.lastNode||!n.root.contains(this._.lastNode)){this._.lastNode=this._.docEndMarker=n.document.createText("");this._.lastNode.insertAfter(e)}n=null}this._.started=1;e=n}o=this._.nextNode;n=this._.lastNode;for(this._.nextNode=
null;o;){var s=0,t=o.hasAscendant("pre"),w=o.type!=CKEDITOR.NODE_ELEMENT,u=0;if(w)o.type==CKEDITOR.NODE_TEXT&&c.test(o.getText())&&(w=0);else{var x=o.getName();if(CKEDITOR.dtd.$block[x]&&o.getAttribute("contenteditable")=="false"){h=o;b(this,a,h);break}else if(o.isBlockBoundary(this.forceBrBreak&&!t&&{br:1})){if(x=="br")w=1;else if(!e&&!o.getChildCount()&&x!="hr"){h=o;i=o.equals(n);break}if(e){e.setEndAt(o,CKEDITOR.POSITION_BEFORE_START);if(x!="br")this._.nextNode=o}s=1}else{if(o.getFirst()){if(!e){e=
this.range.clone();e.setStartAt(o,CKEDITOR.POSITION_BEFORE_START)}o=o.getFirst();continue}w=1}}if(w&&!e){e=this.range.clone();e.setStartAt(o,CKEDITOR.POSITION_BEFORE_START)}i=(!s||w)&&o.equals(n);if(e&&!s)for(;!o.getNext(f)&&!i;){x=o.getParent();if(x.isBlockBoundary(this.forceBrBreak&&!t&&{br:1})){s=1;w=0;i||x.equals(n);e.setEndAt(x,CKEDITOR.POSITION_BEFORE_END);break}o=x;w=1;i=o.equals(n);u=1}w&&e.setEndAt(o,CKEDITOR.POSITION_AFTER_END);o=this._getNextSourceNode(o,u,n);if((i=!o)||s&&e)break}if(!h){if(!e){this._.docEndMarker&&
this._.docEndMarker.remove();return this._.nextNode=null}h=new CKEDITOR.dom.elementPath(e.startContainer,e.root);o=h.blockLimit;s={div:1,th:1,td:1};h=h.block;if(!h&&o&&!this.enforceRealBlocks&&s[o.getName()]&&e.checkStartOfBlock()&&e.checkEndOfBlock()&&!o.equals(e.root))h=o;else if(!h||this.enforceRealBlocks&&h.is(k)){h=this.range.document.createElement(a);e.extractContents().appendTo(h);h.trim();e.insertNode(h);p=m=true}else if(h.getName()!="li"){if(!e.checkStartOfBlock()||!e.checkEndOfBlock()){h=
h.clone(false);e.extractContents().appendTo(h);h.trim();m=e.splitBlock();p=!m.wasStartOfBlock;m=!m.wasEndOfBlock;e.insertNode(h)}}else if(!i)this._.nextNode=h.equals(n)?null:this._getNextSourceNode(e.getBoundaryNodes().endNode,1,n)}if(p)(p=h.getPrevious())&&p.type==CKEDITOR.NODE_ELEMENT&&(p.getName()=="br"?p.remove():p.getLast()&&p.getLast().$.nodeName.toLowerCase()=="br"&&p.getLast().remove());if(m)(p=h.getLast())&&p.type==CKEDITOR.NODE_ELEMENT&&p.getName()=="br"&&(!CKEDITOR.env.needsBrFiller||p.getPrevious(j)||
p.getNext(j))&&p.remove();if(!this._.nextNode)this._.nextNode=i||h.equals(n)||!n?null:this._getNextSourceNode(h,1,n);return h},_getNextSourceNode:function(a,b,c){function g(a){return!(a.equals(c)||a.equals(f))}for(var f=this.range.root,a=a.getNextSourceNode(b,null,g);!j(a);)a=a.getNextSourceNode(b,null,g);return a}};CKEDITOR.dom.range.prototype.createIterator=function(){return new a(this)}}(),CKEDITOR.command=function(a,e){this.uiItems=[];this.exec=function(b){if(this.state==CKEDITOR.TRISTATE_DISABLED||
!this.checkAllowed())return false;this.editorFocus&&a.focus();return this.fire("exec")===false?true:e.exec.call(this,a,b)!==false};this.refresh=function(a,b){if(!this.readOnly&&a.readOnly)return true;if(this.context&&!b.isContextFor(this.context)){this.disable();return true}if(!this.checkAllowed(true)){this.disable();return true}this.startDisabled||this.enable();this.modes&&!this.modes[a.mode]&&this.disable();return this.fire("refresh",{editor:a,path:b})===false?true:e.refresh&&e.refresh.apply(this,
arguments)!==false};var b;this.checkAllowed=function(g){return!g&&typeof b=="boolean"?b:b=a.activeFilter.checkFeature(this)};CKEDITOR.tools.extend(this,e,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!e.context,state:CKEDITOR.TRISTATE_DISABLED});CKEDITOR.event.call(this)},CKEDITOR.command.prototype={enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(!this.preserveState||typeof this.previousState=="undefined"?CKEDITOR.TRISTATE_OFF:this.previousState)},
disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(a){if(this.state==a||a!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())return false;this.previousState=this.state;this.state=a;this.fire("state");return true},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,
CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"<!DOCTYPE html>",bodyId:"",bodyClass:"",fullPage:!1,height:200,extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1E4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function a(a,b,d,c,h){var g,f,a=[];
for(g in b){f=b[g];f=typeof f=="boolean"?{}:typeof f=="function"?{match:f}:D(f);if(g.charAt(0)!="$")f.elements=g;if(d)f.featureName=d.toLowerCase();var e=f;e.elements=i(e.elements,/\s+/)||null;e.propertiesOnly=e.propertiesOnly||e.elements===true;var j=/\s*,\s*/,k=void 0;for(k in H){e[k]=i(e[k],j)||null;var m=e,v=L[k],o=i(e[L[k]],j),l=e[k],n=[],r=true,E=void 0;o?r=false:o={};for(E in l)if(E.charAt(0)=="!"){E=E.slice(1);n.push(E);o[E]=true;r=false}for(;E=n.pop();){l[E]=l["!"+E];delete l["!"+E]}m[v]=
(r?false:o)||null}e.match=e.match||null;c.push(f);a.push(f)}for(var b=h.elements,h=h.generic,p,d=0,c=a.length;d<c;++d){g=D(a[d]);f=g.classes===true||g.styles===true||g.attributes===true;e=g;k=v=j=void 0;for(j in H)e[j]=s(e[j]);m=true;for(k in L){j=L[k];v=e[j];o=[];l=void 0;for(l in v)l.indexOf("*")>-1?o.push(RegExp("^"+l.replace(/\*/g,".*")+"$")):o.push(l);v=o;if(v.length){e[j]=v;m=false}}e.nothingRequired=m;e.noProperties=!(e.attributes||e.classes||e.styles);if(g.elements===true||g.elements===null)h[f?
"unshift":"push"](g);else{e=g.elements;delete g.elements;for(p in e)if(b[p])b[p][f?"unshift":"push"](g);else b[p]=[g]}}}function e(a,d,c,h){if(!a.match||a.match(d))if(h||f(a,d)){if(!a.propertiesOnly)c.valid=true;if(!c.allAttributes)c.allAttributes=b(a.attributes,d.attributes,c.validAttributes);if(!c.allStyles)c.allStyles=b(a.styles,d.styles,c.validStyles);if(!c.allClasses){a=a.classes;d=d.classes;h=c.validClasses;if(a)if(a===true)a=true;else{for(var g=0,e=d.length,j;g<e;++g){j=d[g];h[j]||(h[j]=a(j))}a=
false}else a=false;c.allClasses=a}}}function b(a,b,d){if(!a)return false;if(a===true)return true;for(var c in b)d[c]||(d[c]=a(c));return false}function g(a,b,d){if(!a.match||a.match(b)){if(a.noProperties)return false;d.hadInvalidAttribute=c(a.attributes,b.attributes)||d.hadInvalidAttribute;d.hadInvalidStyle=c(a.styles,b.styles)||d.hadInvalidStyle;a=a.classes;b=b.classes;if(a){for(var h=false,g=a===true,f=b.length;f--;)if(g||a(b[f])){b.splice(f,1);h=true}a=h}else a=false;d.hadInvalidClass=a||d.hadInvalidClass}}
function c(a,b){if(!a)return false;var d=false,c=a===true,h;for(h in b)if(c||a(h)){delete b[h];d=true}return d}function j(a,b,d){if(a.disabled||a.customConfig&&!d||!b)return false;a._.cachedChecks={};return true}function i(a,b){if(!a)return false;if(a===true)return a;if(typeof a=="string"){a=C(a);return a=="*"?true:CKEDITOR.tools.convertArrayToObject(a.split(b))}if(CKEDITOR.tools.isArray(a))return a.length?CKEDITOR.tools.convertArrayToObject(a):false;var d={},c=0,h;for(h in a){d[h]=a[h];c++}return c?
d:false}function f(a,b){if(a.nothingRequired)return true;var d,c,h,g;if(h=a.requiredClasses){g=b.classes;for(d=0;d<h.length;++d){c=h[d];if(typeof c=="string"){if(CKEDITOR.tools.indexOf(g,c)==-1)return false}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(g,c))return false}}return k(b.styles,a.requiredStyles)&&k(b.attributes,a.requiredAttributes)}function k(a,b){if(!b)return true;for(var d=0,c;d<b.length;++d){c=b[d];if(typeof c=="string"){if(!(c in a))return false}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(a,
c))return false}return true}function d(a){if(!a)return{};for(var a=a.split(/\s*,\s*/).sort(),b={};a.length;)b[a.shift()]=F;return b}function h(a){for(var b,d,c,h,g={},f=1,a=C(a);b=a.match(K);){if(d=b[2]){c=l(d,"styles");h=l(d,"attrs");d=l(d,"classes")}else c=h=d=null;g["$"+f++]={elements:b[1],classes:d,styles:c,attributes:h};a=a.slice(b[0].length)}return g}function l(a,b){var d=a.match(S[b]);return d?C(d[1]):null}function q(a){var b=a.styleBackup=a.attributes.style,d=a.classBackup=a.attributes["class"];
if(!a.styles)a.styles=CKEDITOR.tools.parseCssText(b||"",1);if(!a.classes)a.classes=d?d.split(/\s+/):[]}function p(a,b,d,c){var h=0,f;if(c.toHtml)b.name=b.name.replace(I,"$1");if(c.doCallbacks&&a.elementCallbacks){a:for(var j=a.elementCallbacks,i=0,k=j.length,m;i<k;++i)if(m=j[i](b)){f=m;break a}if(f)return f}if(c.doTransform)if(f=a._.transformations[b.name]){q(b);for(j=0;j<f.length;++j)x(a,b,f[j]);n(b)}if(c.doFilter){a:{j=b.name;i=a._;a=i.allowedRules.elements[j];f=i.allowedRules.generic;j=i.disallowedRules.elements[j];
i=i.disallowedRules.generic;k=c.skipRequired;m={valid:false,validAttributes:{},validClasses:{},validStyles:{},allAttributes:false,allClasses:false,allStyles:false,hadInvalidAttribute:false,hadInvalidClass:false,hadInvalidStyle:false};var v,l;if(!a&&!f)a=null;else{q(b);if(j){v=0;for(l=j.length;v<l;++v)if(g(j[v],b,m)===false){a=null;break a}}if(i){v=0;for(l=i.length;v<l;++v)g(i[v],b,m)}if(a){v=0;for(l=a.length;v<l;++v)e(a[v],b,m,k)}if(f){v=0;for(l=f.length;v<l;++v)e(f[v],b,m,k)}a=m}}if(!a){d.push(b);
return A}if(!a.valid){d.push(b);return A}l=a.validAttributes;var s=a.validStyles;f=a.validClasses;var j=b.attributes,r=b.styles,i=b.classes,k=b.classBackup,E=b.styleBackup,p,u,t=[];m=[];var z=/^data-cke-/;v=false;delete j.style;delete j["class"];delete b.classBackup;delete b.styleBackup;if(!a.allAttributes)for(p in j)if(!l[p])if(z.test(p)){if(p!=(u=p.replace(/^data-cke-saved-/,""))&&!l[u]){delete j[p];v=true}}else{delete j[p];v=true}if(!a.allStyles||a.hadInvalidStyle){for(p in r)a.allStyles||s[p]?
t.push(p+":"+r[p]):v=true;if(t.length)j.style=t.sort().join("; ")}else if(E)j.style=E;if(!a.allClasses||a.hadInvalidClass){for(p=0;p<i.length;++p)(a.allClasses||f[i[p]])&&m.push(i[p]);m.length&&(j["class"]=m.sort().join(" "));k&&m.length<k.split(/\s+/).length&&(v=true)}else k&&(j["class"]=k);v&&(h=A);if(!c.skipFinalValidation&&!o(b)){d.push(b);return A}}if(c.toHtml)b.name=b.name.replace(U,"cke:$1");return h}function m(a){var b=[],d;for(d in a)d.indexOf("*")>-1&&b.push(d.replace(/\*/g,".*"));return b.length?
RegExp("^(?:"+b.join("|")+")$"):null}function n(a){var b=a.attributes,d;delete b.style;delete b["class"];if(d=CKEDITOR.tools.writeCssText(a.styles,true))b.style=d;a.classes.length&&(b["class"]=a.classes.sort().join(" "))}function o(a){switch(a.name){case "a":if(!a.children.length&&!a.attributes.name)return false;break;case "img":if(!a.attributes.src)return false}return true}function s(a){if(!a)return false;if(a===true)return true;var b=m(a);return function(d){return d in a||b&&d.match(b)}}function t(){return new CKEDITOR.htmlParser.element("br")}
function w(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.name=="br"||B.$block[a.name])}function u(a,b,d){var c=a.name;if(B.$empty[c]||!a.children.length)if(c=="hr"&&b=="br")a.replaceWith(t());else{a.parent&&d.push({check:"it",el:a.parent});a.remove()}else if(B.$block[c]||c=="tr")if(b=="br"){if(a.previous&&!w(a.previous)){b=t();b.insertBefore(a)}if(a.next&&!w(a.next)){b=t();b.insertAfter(a)}a.replaceWithChildren()}else{var c=a.children,h;b:{h=B[b];for(var g=0,f=c.length,e;g<f;++g){e=c[g];if(e.type==
CKEDITOR.NODE_ELEMENT&&!h[e.name]){h=false;break b}}h=true}if(h){a.name=b;a.attributes={};d.push({check:"parent-down",el:a})}else{h=a.parent;for(var g=h.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||h.name=="body",j,i,f=c.length;f>0;){e=c[--f];if(g&&(e.type==CKEDITOR.NODE_TEXT||e.type==CKEDITOR.NODE_ELEMENT&&B.$inline[e.name])){if(!j){j=new CKEDITOR.htmlParser.element(b);j.insertAfter(a);d.push({check:"parent-down",el:j})}j.add(e,0)}else{j=null;i=B[h.name]||B.span;e.insertAfter(a);h.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&
(e.type==CKEDITOR.NODE_ELEMENT&&!i[e.name])&&d.push({check:"el-up",el:e})}}a.remove()}}else if(c in{style:1,script:1})a.remove();else{a.parent&&d.push({check:"it",el:a.parent});a.replaceWithChildren()}}function x(a,b,d){var c,h;for(c=0;c<d.length;++c){h=d[c];if((!h.check||a.check(h.check,false))&&(!h.left||h.left(b))){h.right(b,R);break}}}function v(a,b){var d=b.getDefinition(),c=d.attributes,h=d.styles,g,f,e,j;if(a.name!=d.element)return false;for(g in c)if(g=="class"){d=c[g].split(/\s+/);for(e=
a.classes.join("|");j=d.pop();)if(e.indexOf(j)==-1)return false}else if(a.attributes[g]!=c[g])return false;for(f in h)if(a.styles[f]!=h[f])return false;return true}function r(a,b){var d,c;if(typeof a=="string")d=a;else if(a instanceof CKEDITOR.style)c=a;else{d=a[0];c=a[1]}return[{element:d,left:c,right:function(a,d){d.transform(a,b)}}]}function y(a){return function(b){return v(b,a)}}function z(a){return function(b,d){d[a](b)}}var B=CKEDITOR.dtd,A=1,D=CKEDITOR.tools.copy,C=CKEDITOR.tools.trim,F="cke-test",
E=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2;CKEDITOR.filter=function(a){this.allowedContent=[];this.disallowedContent=[];this.elementCallbacks=null;this.disabled=false;this.editor=null;this.id=CKEDITOR.tools.getNextNumber();this._={allowedRules:{elements:{},generic:[]},disallowedRules:{elements:{},generic:[]},transformations:{},cachedTests:{}};CKEDITOR.filter.instances[this.id]=this;if(a instanceof CKEDITOR.editor){a=this.editor=a;this.customConfig=true;var b=a.config.allowedContent;if(b===
true)this.disabled=true;else{if(!b)this.customConfig=false;this.allow(b,"config",1);this.allow(a.config.extraAllowedContent,"extra",1);this.allow(E[a.enterMode]+" "+E[a.shiftEnterMode],"default",1);this.disallow(a.config.disallowedContent)}}else{this.customConfig=false;this.allow(a,"default",1)}};CKEDITOR.filter.instances={};CKEDITOR.filter.prototype={allow:function(b,d,c){if(!j(this,b,c))return false;var g,f;if(typeof b=="string")b=h(b);else if(b instanceof CKEDITOR.style){if(b.toAllowedContentRules)return this.allow(b.toAllowedContentRules(this.editor),
d,c);g=b.getDefinition();b={};c=g.attributes;b[g.element]=g={styles:g.styles,requiredStyles:g.styles&&CKEDITOR.tools.objectKeys(g.styles)};if(c){c=D(c);g.classes=c["class"]?c["class"].split(/\s+/):null;g.requiredClasses=g.classes;delete c["class"];g.attributes=c;g.requiredAttributes=c&&CKEDITOR.tools.objectKeys(c)}}else if(CKEDITOR.tools.isArray(b)){for(g=0;g<b.length;++g)f=this.allow(b[g],d,c);return f}a(this,b,d,this.allowedContent,this._.allowedRules);return true},applyTo:function(a,b,d,c){if(this.disabled)return false;
var h=this,g=[],f=this.editor&&this.editor.config.protectedSource,e,j=false,i={doFilter:!d,doTransform:true,doCallbacks:true,toHtml:b};a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if(a.attributes["data-cke-filter"]=="off")return false;if(!b||!(a.name=="span"&&~CKEDITOR.tools.objectKeys(a.attributes).join("|").indexOf("data-cke-"))){e=p(h,a,g,i);if(e&A)j=true;else if(e&2)return false}}else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var d;a:{var c=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,
""));d=[];var k,v,m;if(f)for(v=0;v<f.length;++v)if((m=c.match(f[v]))&&m[0].length==c.length){d=true;break a}c=CKEDITOR.htmlParser.fragment.fromHtml(c);c.children.length==1&&(k=c.children[0]).type==CKEDITOR.NODE_ELEMENT&&p(h,k,d,i);d=!d.length}d||g.push(a)}},null,true);g.length&&(j=true);for(var k,a=[],c=E[c||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)],v;d=g.pop();)d.type==CKEDITOR.NODE_ELEMENT?u(d,c,a):d.remove();for(;k=a.pop();){d=k.el;if(d.parent){v=B[d.parent.name]||B.span;switch(k.check){case "it":B.$removeEmpty[d.name]&&
!d.children.length?u(d,c,a):o(d)||u(d,c,a);break;case "el-up":d.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!v[d.name]&&u(d,c,a);break;case "parent-down":d.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!v[d.name]&&u(d.parent,c,a)}}}return j},checkFeature:function(a){if(this.disabled||!a)return true;a.toFeature&&(a=a.toFeature(this.editor));return!a.requiredContent||this.check(a.requiredContent)},disable:function(){this.disabled=true},disallow:function(b){if(!j(this,b,true))return false;typeof b==
"string"&&(b=h(b));a(this,b,null,this.disallowedContent,this._.disallowedRules);return true},addContentForms:function(a){if(!this.disabled&&a){var b,d,c=[],h;for(b=0;b<a.length&&!h;++b){d=a[b];if((typeof d=="string"||d instanceof CKEDITOR.style)&&this.check(d))h=d}if(h){for(b=0;b<a.length;++b)c.push(r(a[b],h));this.addTransformations(c)}}},addElementCallback:function(a){if(!this.elementCallbacks)this.elementCallbacks=[];this.elementCallbacks.push(a)},addFeature:function(a){if(this.disabled||!a)return true;
a.toFeature&&(a=a.toFeature(this.editor));this.allow(a.allowedContent,a.name);this.addTransformations(a.contentTransformations);this.addContentForms(a.contentForms);return a.requiredContent&&(this.customConfig||this.disallowedContent.length)?this.check(a.requiredContent):true},addTransformations:function(a){var b,d;if(!this.disabled&&a){var c=this._.transformations,h;for(h=0;h<a.length;++h){b=a[h];var g=void 0,f=void 0,e=void 0,j=void 0,i=void 0,k=void 0;d=[];for(f=0;f<b.length;++f){e=b[f];if(typeof e==
"string"){e=e.split(/\s*:\s*/);j=e[0];i=null;k=e[1]}else{j=e.check;i=e.left;k=e.right}if(!g){g=e;g=g.element?g.element:j?j.match(/^([a-z0-9]+)/i)[0]:g.left.getDefinition().element}i instanceof CKEDITOR.style&&(i=y(i));d.push({check:j==g?null:j,left:i,right:typeof k=="string"?z(k):k})}b=g;c[b]||(c[b]=[]);c[b].push(d)}}},check:function(a,b,c){if(this.disabled)return true;if(CKEDITOR.tools.isArray(a)){for(var g=a.length;g--;)if(this.check(a[g],b,c))return true;return false}var f,e;if(typeof a=="string"){e=
a+"<"+(b===false?"0":"1")+(c?"1":"0")+">";if(e in this._.cachedChecks)return this._.cachedChecks[e];g=h(a).$1;f=g.styles;var j=g.classes;g.name=g.elements;g.classes=j=j?j.split(/\s*,\s*/):[];g.styles=d(f);g.attributes=d(g.attributes);g.children=[];j.length&&(g.attributes["class"]=j.join(" "));if(f)g.attributes.style=CKEDITOR.tools.writeCssText(g.styles);f=g}else{g=a.getDefinition();f=g.styles;j=g.attributes||{};if(f){f=D(f);j.style=CKEDITOR.tools.writeCssText(f,true)}else f={};f={name:g.element,attributes:j,
classes:j["class"]?j["class"].split(/\s+/):[],styles:f,children:[]}}var j=CKEDITOR.tools.clone(f),i=[],k;if(b!==false&&(k=this._.transformations[f.name])){for(g=0;g<k.length;++g)x(this,f,k[g]);n(f)}p(this,j,i,{doFilter:true,doTransform:b!==false,skipRequired:!c,skipFinalValidation:!c});b=i.length>0?false:CKEDITOR.tools.objectCompare(f.attributes,j.attributes,true)?true:false;typeof a=="string"&&(this._.cachedChecks[e]=b);return b},getAllowedEnterMode:function(){var a=["p","div","br"],b={p:CKEDITOR.ENTER_P,
div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(d,c){var h=a.slice(),g;if(this.check(E[d]))return d;for(c||(h=h.reverse());g=h.pop();)if(this.check(g))return b[g];return CKEDITOR.ENTER_BR}}(),destroy:function(){delete CKEDITOR.filter.instances[this.id];delete this._;delete this.allowedContent;delete this.disallowedContent}};var H={styles:1,attributes:1,classes:1},L={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},K=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,
S={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},I=/^cke:(object|embed|param)$/,U=/^(object|embed|param)$/,R=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a,"height")},sizeToAttribute:function(a){this.lengthToAttribute(a,"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,b,d){d=d||b;if(!(d in a.styles)){var c=a.attributes[b];if(c){/^\d+$/.test(c)&&(c=c+"px");a.styles[d]=c}}delete a.attributes[b]},
lengthToAttribute:function(a,b,d){d=d||b;if(!(d in a.attributes)){var c=a.styles[b],h=c&&c.match(/^(\d+)(?:\.\d*)?px$/);h?a.attributes[d]=h[1]:c==F&&(a.attributes[d]=F)}delete a.styles[b]},alignmentToStyle:function(a){if(!("float"in a.styles)){var b=a.attributes.align;if(b=="left"||b=="right")a.styles["float"]=b}delete a.attributes.align},alignmentToAttribute:function(a){if(!("align"in a.attributes)){var b=a.styles["float"];if(b=="left"||b=="right")a.attributes.align=b}delete a.styles["float"]},matchesStyle:v,
transform:function(a,b){if(typeof b=="string")a.name=b;else{var d=b.getDefinition(),c=d.styles,h=d.attributes,g,f,e,j;a.name=d.element;for(g in h)if(g=="class"){d=a.classes.join("|");for(e=h[g].split(/\s+/);j=e.pop();)d.indexOf(j)==-1&&a.classes.push(j)}else a.attributes[g]=h[g];for(f in c)a.styles[f]=c[f]}}}}(),function(){CKEDITOR.focusManager=function(a){if(a.focusManager)return a.focusManager;this.hasFocus=false;this.currentActive=null;this._={editor:a};return this};CKEDITOR.focusManager._={blurDelay:200};
CKEDITOR.focusManager.prototype={focus:function(a){this._.timer&&clearTimeout(this._.timer);if(a)this.currentActive=a;if(!this.hasFocus&&!this._.locked){(a=CKEDITOR.currentInstance)&&a.focusManager.blur(1);this.hasFocus=true;(a=this._.editor.container)&&a.addClass("cke_focus");this._.editor.fire("focus")}},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(a){function e(){if(this.hasFocus){this.hasFocus=false;var a=this._.editor.container;a&&a.removeClass("cke_focus");
this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var b=CKEDITOR.focusManager._.blurDelay;a||!b?e.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;e.call(this)},b,this)}},add:function(a,e){var b=a.getCustomData("focusmanager");if(!b||b!=this){b&&b.remove(a);var b="focus",g="blur";if(e)if(CKEDITOR.env.ie){b="focusin";g="focusout"}else CKEDITOR.event.useCapture=1;var c={blur:function(){a.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(a)}};
a.on(b,c.focus,this);a.on(g,c.blur,this);if(e)CKEDITOR.event.useCapture=0;a.setCustomData("focusmanager",this);a.setCustomData("focusmanager_handlers",c)}},remove:function(a){a.removeCustomData("focusmanager");var e=a.removeCustomData("focusmanager_handlers");a.removeListener("blur",e.blur);a.removeListener("focus",e.focus)}}}(),CKEDITOR.keystrokeHandler=function(a){if(a.keystrokeHandler)return a.keystrokeHandler;this.keystrokes={};this.blockedKeystrokes={};this._={editor:a};return this},function(){var a,
e=function(b){var b=b.data,c=b.getKeystroke(),e=this.keystrokes[c],i=this._.editor;a=i.fire("key",{keyCode:c,domEvent:b})===false;if(!a){e&&(a=i.execCommand(e,{from:"keystrokeHandler"})!==false);a||(a=!!this.blockedKeystrokes[c])}a&&b.preventDefault(true);return!a},b=function(b){if(a){a=false;b.data.preventDefault(true)}};CKEDITOR.keystrokeHandler.prototype={attach:function(a){a.on("keydown",e,this);if(CKEDITOR.env.gecko&&CKEDITOR.env.mac)a.on("keypress",b,this)}}}(),function(){CKEDITOR.lang={languages:{af:1,
ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,"zh-cn":1,zh:1},rtl:{ar:1,fa:1,he:1,ku:1,ug:1},load:function(a,e,b){if(!a||!CKEDITOR.lang.languages[a])a=this.detect(e,a);var g=this,e=function(){g[a].dir=
g.rtl[a]?"rtl":"ltr";b(a,g[a])};this[a]?e():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+a+".js"),e,this)},detect:function(a,e){var b=this.languages,e=e||navigator.userLanguage||navigator.language||a,g=e.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),c=g[1],g=g[2];b[c+"-"+g]?c=c+"-"+g:b[c]||(c=null);CKEDITOR.lang.detect=c?function(){return c}:function(a){return a};return c||a}}}(),CKEDITOR.scriptLoader=function(){var a={},e={};return{load:function(b,g,c,j){var i=typeof b=="string";i&&(b=[b]);
c||(c=CKEDITOR);var f=b.length,k=[],d=[],h=function(a){g&&(i?g.call(c,a):g.call(c,k,d))};if(f===0)h(true);else{var l=function(a,b){(b?k:d).push(a);if(--f<=0){j&&CKEDITOR.document.getDocumentElement().removeStyle("cursor");h(b)}},q=function(b,d){a[b]=1;var c=e[b];delete e[b];for(var h=0;h<c.length;h++)c[h](b,d)},p=function(b){if(a[b])l(b,true);else{var d=e[b]||(e[b]=[]);d.push(l);if(!(d.length>1)){var c=new CKEDITOR.dom.element("script");c.setAttributes({type:"text/javascript",src:b});if(g)if(CKEDITOR.env.ie&&
CKEDITOR.env.version<11)c.$.onreadystatechange=function(){if(c.$.readyState=="loaded"||c.$.readyState=="complete"){c.$.onreadystatechange=null;q(b,true)}};else{c.$.onload=function(){setTimeout(function(){q(b,true)},0)};c.$.onerror=function(){q(b,false)}}c.appendTo(CKEDITOR.document.getHead())}}};j&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var m=0;m<f;m++)p(b[m])}},queue:function(){function a(){var b;(b=g[0])&&this.load(b.scriptUrl,b.callback,CKEDITOR,0)}var g=[];return function(c,
e){var i=this;g.push({scriptUrl:c,callback:function(){e&&e.apply(this,arguments);g.shift();a.call(i)}});g.length==1&&a.call(this)}}()}}(),CKEDITOR.resourceManager=function(a,e){this.basePath=a;this.fileName=e;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(a,e){if(this.registered[a])throw'[CKEDITOR.resourceManager.add] The resource name "'+a+'" is already registered.';var b=this.registered[a]=e||{};b.name=a;b.path=this.getPath(a);
CKEDITOR.fire(a+CKEDITOR.tools.capitalize(this.fileName)+"Ready",b);return this.get(a)},get:function(a){return this.registered[a]||null},getPath:function(a){var e=this.externals[a];return CKEDITOR.getUrl(e&&e.dir||this.basePath+a+"/")},getFilePath:function(a){var e=this.externals[a];return CKEDITOR.getUrl(this.getPath(a)+(e?e.file:this.fileName+".js"))},addExternal:function(a,e,b){for(var a=a.split(","),g=0;g<a.length;g++){var c=a[g];b||(e=e.replace(/[^\/]+$/,function(a){b=a;return""}));this.externals[c]=
{dir:e,file:b||this.fileName+".js"}}},load:function(a,e,b){CKEDITOR.tools.isArray(a)||(a=a?[a]:[]);for(var g=this.loaded,c=this.registered,j=[],i={},f={},k=0;k<a.length;k++){var d=a[k];if(d)if(!g[d]&&!c[d]){var h=this.getFilePath(d);j.push(h);h in i||(i[h]=[]);i[h].push(d)}else f[d]=this.get(d)}CKEDITOR.scriptLoader.load(j,function(a,d){if(d.length)throw'[CKEDITOR.resourceManager.load] Resource name "'+i[d[0]].join(",")+'" was not found at "'+d[0]+'".';for(var c=0;c<a.length;c++)for(var h=i[a[c]],
j=0;j<h.length;j++){var k=h[j];f[k]=this.get(k);g[k]=1}e.call(b,f)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(a){var e={};return function(b,g,c){var j={},i=function(b){a.call(this,b,function(a){CKEDITOR.tools.extend(j,a);var b=[],h;for(h in a){var f=a[h],q=f&&f.requires;if(!e[h]){if(f.icons)for(var p=f.icons.split(","),m=p.length;m--;)CKEDITOR.skin.addIcon(p[m],f.path+"icons/"+(CKEDITOR.env.hidpi&&
f.hidpi?"hidpi/":"")+p[m]+".png");e[h]=1}if(q){q.split&&(q=q.split(","));for(f=0;f<q.length;f++)j[q[f]]||b.push(q[f])}}if(b.length)i.call(this,b);else{for(h in j){f=j[h];if(f.onLoad&&!f.onLoad._called){f.onLoad()===false&&delete j[h];f.onLoad._called=1}}g&&g.call(c||window,j)}},this)};i.call(this,b)}}),CKEDITOR.plugins.setLang=function(a,e,b){var g=this.get(a),a=g.langEntries||(g.langEntries={}),g=g.lang||(g.lang=[]);g.split&&(g=g.split(","));CKEDITOR.tools.indexOf(g,e)==-1&&g.push(e);a[e]=b},CKEDITOR.ui=
function(a){if(a.ui)return a.ui;this.items={};this.instances={};this.editor=a;this._={handlers:{}};return this},CKEDITOR.ui.prototype={add:function(a,e,b){b.name=a.toLowerCase();var g=this.items[a]={type:e,command:b.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(g,b)},get:function(a){return this.instances[a]},create:function(a){var e=this.items[a],b=e&&this._.handlers[e.type],g=e&&e.command&&this.editor.getCommand(e.command),b=b&&b.create.apply(this,e.args);this.instances[a]=
b;g&&g.uiItems.push(b);if(b&&!b.type)b.type=e.type;return b},addHandler:function(a,e){this._.handlers[a]=e},space:function(a){return CKEDITOR.document.getById(this.spaceId(a))},spaceId:function(a){return this.editor.id+"_"+a}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function a(a,d,h){CKEDITOR.event.call(this);a=a&&CKEDITOR.tools.clone(a);if(d!==void 0){if(d instanceof CKEDITOR.dom.element){if(!h)throw Error("One of the element modes must be specified.");}else throw Error("Expect element of type CKEDITOR.dom.element.");
if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&h==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!(h==CKEDITOR.ELEMENT_MODE_INLINE?d.is(CKEDITOR.dtd.$editable)||d.is("textarea"):h==CKEDITOR.ELEMENT_MODE_REPLACE?!d.is(CKEDITOR.dtd.$nonBodyContent):1))throw Error('The specified element mode is not supported on element: "'+d.getName()+'".');this.element=d;this.elementMode=h;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(d.getId()||d.getNameAtt())}else this.elementMode=
CKEDITOR.ELEMENT_MODE_NONE;this._={};this.commands={};this.templates={};this.name=this.name||e();this.id=CKEDITOR.tools.getNextId();this.status="unloaded";this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config);this.ui=new CKEDITOR.ui(this);this.focusManager=new CKEDITOR.focusManager(this);this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this);this.on("readOnly",b);this.on("selectionChange",function(a){c(this,a.data.path)});this.on("activeFilterChange",function(){c(this,this.elementPath(),true)});
this.on("mode",b);this.on("instanceReady",function(){this.config.startupFocus&&this.focus()});CKEDITOR.fire("instanceCreated",null,this);CKEDITOR.add(this);CKEDITOR.tools.setTimeout(function(){i(this,a)},0,this)}function e(){do var a="editor"+ ++q;while(CKEDITOR.instances[a]);return a}function b(){var a=this.commands,b;for(b in a)g(this,a[b])}function g(a,b){b[b.startDisabled?"disable":a.readOnly&&!b.readOnly?"disable":b.modes[a.mode]?"enable":"disable"]()}function c(a,b,d){if(b){var c,h,g=a.commands;
for(h in g){c=g[h];(d||c.contextSensitive)&&c.refresh(a,b)}}}function j(a){var b=a.config.customConfig;if(!b)return false;var b=CKEDITOR.getUrl(b),d=p[b]||(p[b]={});if(d.fn){d.fn.call(a,a.config);(CKEDITOR.getUrl(a.config.customConfig)==b||!j(a))&&a.fireOnce("customConfigLoaded")}else CKEDITOR.scriptLoader.queue(b,function(){d.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};j(a)});return true}function i(a,b){a.on("customConfigLoaded",function(){if(b){if(b.on)for(var d in b.on)a.on(d,b.on[d]);
CKEDITOR.tools.extend(a.config,b,true);delete a.config.on}d=a.config;a.readOnly=d.readOnly?true:a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.is("textarea")?a.element.hasAttribute("disabled")||a.element.hasAttribute("readonly"):a.element.isReadOnly():a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?a.element.hasAttribute("disabled")||a.element.hasAttribute("readonly"):false;a.blockless=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?!(a.element.is("textarea")||CKEDITOR.dtd[a.element.getName()].p):
false;a.tabIndex=d.tabIndex||a.element&&a.element.getAttribute("tabindex")||0;a.activeEnterMode=a.enterMode=a.blockless?CKEDITOR.ENTER_BR:d.enterMode;a.activeShiftEnterMode=a.shiftEnterMode=a.blockless?CKEDITOR.ENTER_BR:d.shiftEnterMode;if(d.skin)CKEDITOR.skinName=d.skin;a.fireOnce("configLoaded");a.dataProcessor=new CKEDITOR.htmlDataProcessor(a);a.filter=a.activeFilter=new CKEDITOR.filter(a);f(a)});if(b&&b.customConfig!=null)a.config.customConfig=b.customConfig;j(a)||a.fireOnce("customConfigLoaded")}
function f(a){CKEDITOR.skin.loadPart("editor",function(){k(a)})}function k(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(b,c){var h=a.config.title;a.langCode=b;a.lang=CKEDITOR.tools.prototypedCopy(c);a.title=typeof h=="string"||h===false?h:[a.lang.editor,a.name].join(", ");if(!a.config.contentsLangDirection)a.config.contentsLangDirection=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.getDirection(1):a.lang.dir;a.fire("langLoaded");d(a)})}function d(a){a.getStylesSet(function(b){a.once("loaded",
function(){a.fire("stylesSet",{styles:b})},null,null,1);h(a)})}function h(a){var b=a.config,d=b.plugins,c=b.extraPlugins,h=b.removePlugins;if(c)var g=RegExp("(?:^|,)(?:"+c.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),d=d.replace(g,""),d=d+(","+c);if(h)var f=RegExp("(?:^|,)(?:"+h.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),d=d.replace(f,"");CKEDITOR.env.air&&(d=d+",adobeair");CKEDITOR.plugins.load(d.split(","),function(d){var c=[],h=[],g=[];a.plugins=d;for(var e in d){var j=d[e],i=j.lang,k=null,l=j.requires,
o;CKEDITOR.tools.isArray(l)&&(l=l.join(","));if(l&&(o=l.match(f)))for(;l=o.pop();)CKEDITOR.tools.setTimeout(function(a,b){throw Error('Plugin "'+a.replace(",","")+'" cannot be removed from the plugins list, because it\'s required by "'+b+'" plugin.');},0,null,[l,e]);if(i&&!a.lang[e]){i.split&&(i=i.split(","));if(CKEDITOR.tools.indexOf(i,a.langCode)>=0)k=a.langCode;else{k=a.langCode.replace(/-.*/,"");k=k!=a.langCode&&CKEDITOR.tools.indexOf(i,k)>=0?k:CKEDITOR.tools.indexOf(i,"en")>=0?"en":i[0]}if(!j.langEntries||
!j.langEntries[k])g.push(CKEDITOR.getUrl(j.path+"lang/"+k+".js"));else{a.lang[e]=j.langEntries[k];k=null}}h.push(k);c.push(j)}CKEDITOR.scriptLoader.load(g,function(){for(var d=["beforeInit","init","afterInit"],g=0;g<d.length;g++)for(var f=0;f<c.length;f++){var e=c[f];g===0&&(h[f]&&e.lang&&e.langEntries)&&(a.lang[e.name]=e.langEntries[h[f]]);if(e[d[g]])e[d[g]](a)}a.fireOnce("pluginsLoaded");b.keystrokes&&a.setKeystroke(a.config.keystrokes);for(f=0;f<a.config.blockedKeystrokes.length;f++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[f]]=
1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)})})}function l(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var b=this.getData();this.config.htmlEncodeOutput&&(b=CKEDITOR.tools.htmlEncode(b));a.is("textarea")?a.setValue(b):a.setHtml(b);return true}return false}a.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=a;var q=0,p={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(a,b){b.name=a.toLowerCase();var d=new CKEDITOR.command(this,
b);this.mode&&g(this,d);return this.commands[a]=d},_attachToForm:function(){function a(c){b.updateElement();b._.required&&(!d.getValue()&&b.fire("required")===false)&&c.data.preventDefault()}var b=this,d=b.element,c=new CKEDITOR.dom.element(d.$.form);if(d.is("textarea")&&c){c.on("submit",a);if(c.$.submit&&c.$.submit.call&&c.$.submit.apply)c.$.submit=CKEDITOR.tools.override(c.$.submit,function(b){return function(){a();b.apply?b.apply(this):b()}});b.on("destroy",function(){c.removeListener("submit",
a)})}},destroy:function(a){this.fire("beforeDestroy");!a&&l.call(this);this.editable(null);this.filter.destroy();delete this.filter;delete this.activeFilter;this.status="destroyed";this.fire("destroy");this.removeAllListeners();CKEDITOR.remove(this);CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(a){if(!a){a=this.getSelection();if(!a)return null;a=a.getStartElement()}return a?new CKEDITOR.dom.elementPath(a,this.editable()):null},createRange:function(){var a=this.editable();return a?
new CKEDITOR.dom.range(a):null},execCommand:function(a,b){var d=this.getCommand(a),c={name:a,commandData:b,command:d};if(d&&d.state!=CKEDITOR.TRISTATE_DISABLED&&this.fire("beforeCommandExec",c)!==false){c.returnValue=d.exec(c.commandData);if(!d.async&&this.fire("afterCommandExec",c)!==false)return c.returnValue}return false},getCommand:function(a){return this.commands[a]},getData:function(a){!a&&this.fire("beforeGetData");var b=this._.data;if(typeof b!="string")b=(b=this.element)&&this.elementMode==
CKEDITOR.ELEMENT_MODE_REPLACE?b.is("textarea")?b.getValue():b.getHtml():"";b={dataValue:b};!a&&this.fire("getData",b);return b.dataValue},getSnapshot:function(){var a=this.fire("getSnapshot");if(typeof a!="string")a=(a=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?a.is("textarea")?a.getValue():a.getHtml():"";return a},loadSnapshot:function(a){this.fire("loadSnapshot",a)},setData:function(a,b,d){var c=true,h=b;if(b&&typeof b=="object"){d=b.internal;h=b.callback;c=!b.noSnapshot}!d&&
c&&this.fire("saveSnapshot");if(h||!d)this.once("dataReady",function(a){!d&&c&&this.fire("saveSnapshot");h&&h.call(a.editor)});a={dataValue:a};!d&&this.fire("setData",a);this._.data=a.dataValue;!d&&this.fire("afterSetData",a)},setReadOnly:function(a){a=a==null||a;if(this.readOnly!=a){this.readOnly=a;this.keystrokeHandler.blockedKeystrokes[8]=+a;this.editable().setReadOnly(a);this.fire("readOnly")}},insertHtml:function(a,b,d){this.fire("insertHtml",{dataValue:a,mode:b,range:d})},insertText:function(a){this.fire("insertText",
a)},insertElement:function(a){this.fire("insertElement",a)},getSelectedHtml:function(a){var b=this.editable(),d=this.getSelection(),d=d&&d.getRanges();if(!b||!d||d.length===0)return null;b=b.getHtmlFromRange(d[0]);return a?b.getHtml():b},extractSelectedHtml:function(a,b){var d=this.editable(),c=this.getSelection().getRanges();if(!d||c.length===0)return null;c=c[0];d=d.extractHtmlFromRange(c,b);b||this.getSelection().selectRanges([c]);return a?d.getHtml():d},focus:function(){this.fire("beforeFocus")},
checkDirty:function(){return this.status=="ready"&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return l.call(this)},setKeystroke:function(){for(var a=this.keystrokeHandler.keystrokes,b=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],d,c,h=b.length;h--;){d=b[h];c=0;if(CKEDITOR.tools.isArray(d)){c=d[1];d=d[0]}c?a[d]=c:delete a[d]}},addFeature:function(a){return this.filter.addFeature(a)},
setActiveFilter:function(a){if(!a)a=this.filter;if(this.activeFilter!==a){this.activeFilter=a;this.fire("activeFilterChange");a===this.filter?this.setActiveEnterMode(null,null):this.setActiveEnterMode(a.getAllowedEnterMode(this.enterMode),a.getAllowedEnterMode(this.shiftEnterMode,true))}},setActiveEnterMode:function(a,b){a=a?this.blockless?CKEDITOR.ENTER_BR:a:this.enterMode;b=b?this.blockless?CKEDITOR.ENTER_BR:b:this.shiftEnterMode;if(this.activeEnterMode!=a||this.activeShiftEnterMode!=b){this.activeEnterMode=
a;this.activeShiftEnterMode=b;this.fire("activeEnterModeChange")}},showNotification:function(a){alert(a)}})}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:/<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--\>)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},function(){var a=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,
e={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(b){for(var g,c,j=0,i;g=this._.htmlPartsRegex.exec(b);){c=g.index;if(c>j){j=b.substring(j,c);if(i)i.push(j);else this.onText(j)}j=this._.htmlPartsRegex.lastIndex;if(c=g[1]){c=c.toLowerCase();if(i&&CKEDITOR.dtd.$cdata[c]){this.onCDATA(i.join(""));
i=null}if(!i){this.onTagClose(c);continue}}if(i)i.push(g[0]);else if(c=g[3]){c=c.toLowerCase();if(!/="/.test(c)){var f={},k,d=g[4];g=!!g[5];if(d)for(;k=a.exec(d);){var h=k[1].toLowerCase();k=k[2]||k[3]||k[4]||"";f[h]=!k&&e[h]?h:CKEDITOR.tools.htmlDecodeAttr(k)}this.onTagOpen(c,f,g);!i&&CKEDITOR.dtd.$cdata[c]&&(i=[])}}else if(c=g[2])this.onComment(c)}if(b.length>j)this.onText(b.substring(j,b.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},
proto:{openTag:function(a){this._.output.push("<",a)},openTagClose:function(a,e){e?this._.output.push(" />"):this._.output.push(">")},attribute:function(a,e){typeof e=="string"&&(e=CKEDITOR.tools.htmlEncodeAttr(e));this._.output.push(" ",a,'="',e,'"')},closeTag:function(a){this._.output.push("</",a,">")},text:function(a){this._.output.push(a)},comment:function(a){this._.output.push("<\!--",a,"--\>")},write:function(a){this._.output.push(a)},reset:function(){this._.output=[];this._.indent=false},getHtml:function(a){var e=
this._.output.join("");a&&this.reset();return e}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var a=this.parent.children,e=CKEDITOR.tools.indexOf(a,this),b=this.previous,g=this.next;b&&(b.next=g);g&&(g.previous=b);a.splice(e,1);this.parent=null},replaceWith:function(a){var e=this.parent.children,b=CKEDITOR.tools.indexOf(e,this),g=a.previous=this.previous,c=a.next=this.next;g&&(g.next=a);c&&(c.previous=a);e[b]=a;a.parent=this.parent;
this.parent=null},insertAfter:function(a){var e=a.parent.children,b=CKEDITOR.tools.indexOf(e,a),g=a.next;e.splice(b+1,0,this);this.next=a.next;this.previous=a;a.next=this;g&&(g.previous=this);this.parent=a.parent},insertBefore:function(a){var e=a.parent.children,b=CKEDITOR.tools.indexOf(e,a);e.splice(b,0,this);this.next=a;(this.previous=a.previous)&&(a.previous.next=this);a.previous=this;this.parent=a.parent},getAscendant:function(a){var e=typeof a=="function"?a:typeof a=="string"?function(b){return b.name==
a}:function(b){return b.name in a},b=this.parent;for(;b&&b.type==CKEDITOR.NODE_ELEMENT;){if(e(b))return b;b=b.parent}return null},wrapWith:function(a){this.replaceWith(a);a.add(this);return a},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(a){return a||{}}}}(),"use strict",CKEDITOR.htmlParser.comment=function(a){this.value=a;this._={isBlockLike:false}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,
{type:CKEDITOR.NODE_COMMENT,filter:function(a,e){var b=this.value;if(!(b=a.onComment(e,b,this))){this.remove();return false}if(typeof b!="string"){this.replaceWith(b);return false}this.value=b;return true},writeHtml:function(a,e){e&&this.filter(e);a.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(a){this.value=a;this._={isBlockLike:false}};CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(a,
e){if(!(this.value=a.onText(e,this.value,this))){this.remove();return false}},writeHtml:function(a,e){e&&this.filter(e);a.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(a){this.value=a};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(a){a.write(this.value)}})}(),"use strict",CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,
hasInlineStarted:false}},function(){function a(a){return a.attributes["data-cke-survive"]?false:a.name=="a"&&a.attributes.href||CKEDITOR.dtd.$removeEmpty[a.name]}var e=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),b={ol:1,ul:1},g=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),c={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=
function(j,i,f){function k(a){var b;if(o.length>0)for(var c=0;c<o.length;c++){var h=o[c],g=h.name,f=CKEDITOR.dtd[g],e=t.name&&CKEDITOR.dtd[t.name];if((!e||e[g])&&(!a||!f||f[a]||!CKEDITOR.dtd[a])){if(!b){d();b=1}h=h.clone();h.parent=t;t=h;o.splice(c,1);c--}else if(g==t.name){l(t,t.parent,1);c--}}}function d(){for(;s.length;)l(s.shift(),t)}function h(a){if(a._.isBlockLike&&a.name!="pre"&&a.name!="textarea"){var b=a.children.length,d=a.children[b-1],c;if(d&&d.type==CKEDITOR.NODE_TEXT)(c=CKEDITOR.tools.rtrim(d.value))?
d.value=c:a.children.length=b-1}}function l(b,d,c){var d=d||t||n,g=t;if(b.previous===void 0){if(q(d,b)){t=d;m.onTagOpen(f,{});b.returnPoint=d=t}h(b);(!a(b)||b.children.length)&&d.add(b);b.name=="pre"&&(u=false);b.name=="textarea"&&(w=false)}if(b.returnPoint){t=b.returnPoint;delete b.returnPoint}else t=c?d:g}function q(a,b){if((a==n||a.name=="body")&&f&&(!a.name||CKEDITOR.dtd[a.name][f])){var d,c;return(d=b.attributes&&(c=b.attributes["data-cke-real-element-type"])?c:b.name)&&d in CKEDITOR.dtd.$inline&&
!(d in CKEDITOR.dtd.head)&&!b.isOrphan||b.type==CKEDITOR.NODE_TEXT}}function p(a,b){return a in CKEDITOR.dtd.$listItem||a in CKEDITOR.dtd.$tableContent?a==b||a=="dt"&&b=="dd"||a=="dd"&&b=="dt":false}var m=new CKEDITOR.htmlParser,n=i instanceof CKEDITOR.htmlParser.element?i:typeof i=="string"?new CKEDITOR.htmlParser.element(i):new CKEDITOR.htmlParser.fragment,o=[],s=[],t=n,w=n.name=="textarea",u=n.name=="pre";m.onTagOpen=function(c,h,f,j){h=new CKEDITOR.htmlParser.element(c,h);if(h.isUnknown&&f)h.isEmpty=
true;h.isOptionalClose=j;if(a(h))o.push(h);else{if(c=="pre")u=true;else{if(c=="br"&&u){t.add(new CKEDITOR.htmlParser.text("\n"));return}c=="textarea"&&(w=true)}if(c=="br")s.push(h);else{for(;;){j=(f=t.name)?CKEDITOR.dtd[f]||(t._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):g;if(!h.isUnknown&&!t.isUnknown&&!j[c])if(t.isOptionalClose)m.onTagClose(f);else if(c in b&&f in b){f=t.children;(f=f[f.length-1])&&f.name=="li"||l(f=new CKEDITOR.htmlParser.element("li"),t);!h.returnPoint&&(h.returnPoint=t);
t=f}else if(c in CKEDITOR.dtd.$listItem&&!p(c,f))m.onTagOpen(c=="li"?"ul":"dl",{},0,1);else if(f in e&&!p(c,f)){!h.returnPoint&&(h.returnPoint=t);t=t.parent}else{f in CKEDITOR.dtd.$inline&&o.unshift(t);if(t.parent)l(t,t.parent,1);else{h.isOrphan=1;break}}else break}k(c);d();h.parent=t;h.isEmpty?l(h):t=h}}};m.onTagClose=function(a){for(var b=o.length-1;b>=0;b--)if(a==o[b].name){o.splice(b,1);return}for(var c=[],h=[],g=t;g!=n&&g.name!=a;){g._.isBlockLike||h.unshift(g);c.push(g);g=g.returnPoint||g.parent}if(g!=
n){for(b=0;b<c.length;b++){var e=c[b];l(e,e.parent)}t=g;g._.isBlockLike&&d();l(g,g.parent);if(g==t)t=t.parent;o=o.concat(h)}a=="body"&&(f=false)};m.onText=function(a){if((!t._.hasInlineStarted||s.length)&&!u&&!w){a=CKEDITOR.tools.ltrim(a);if(a.length===0)return}var b=t.name,h=b?CKEDITOR.dtd[b]||(t._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):g;if(!w&&!h["#"]&&b in e){m.onTagOpen(c[b]||"");m.onText(a)}else{d();k();!u&&!w&&(a=a.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));a=new CKEDITOR.htmlParser.text(a);
if(q(t,a))this.onTagOpen(f,{},0,1);t.add(a)}};m.onCDATA=function(a){t.add(new CKEDITOR.htmlParser.cdata(a))};m.onComment=function(a){d();k();t.add(new CKEDITOR.htmlParser.comment(a))};m.parse(j);for(d();t!=n;)l(t,t.parent,1);h(n);return n};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(a,b){isNaN(b)&&(b=this.children.length);var c=b>0?this.children[b-1]:null;if(c){if(a._.isBlockLike&&c.type==CKEDITOR.NODE_TEXT){c.value=CKEDITOR.tools.rtrim(c.value);if(c.value.length===
0){this.children.pop();this.add(a);return}}c.next=a}a.previous=c;a.parent=this;this.children.splice(b,0,a);if(!this._.hasInlineStarted)this._.hasInlineStarted=a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&!a._.isBlockLike},filter:function(a,b){b=this.getFilterContext(b);a.onRoot(b,this);this.filterChildren(a,false,b)},filterChildren:function(a,b,c){if(this.childrenFilteredBy!=a.id){c=this.getFilterContext(c);if(b&&!this.parent)a.onRoot(c,this);this.childrenFilteredBy=a.id;for(b=0;b<this.children.length;b++)this.children[b].filter(a,
c)===false&&b--}},writeHtml:function(a,b){b&&this.filter(b);this.writeChildrenHtml(a)},writeChildrenHtml:function(a,b,c){var g=this.getFilterContext();if(c&&!this.parent&&b)b.onRoot(g,this);b&&this.filterChildren(b,false,g);b=0;c=this.children;for(g=c.length;b<g;b++)c[b].writeHtml(a)},forEach:function(a,b,c){if(!c&&(!b||this.type==b))var g=a(this);if(g!==false)for(var c=this.children,d=0;d<c.length;d++){g=c[d];g.type==CKEDITOR.NODE_ELEMENT?g.forEach(a,b):(!b||g.type==b)&&a(g)}},getFilterContext:function(a){return a||
{}}}}(),"use strict",function(){function a(){this.rules=[]}function e(b,g,c,e){var i,f;for(i in g){(f=b[i])||(f=b[i]=new a);f.add(g[i],c,e)}}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(b){this.id=CKEDITOR.tools.getNextNumber();this.elementNameRules=new a;this.attributeNameRules=new a;this.elementsRules={};this.attributesRules={};this.textRules=new a;this.commentRules=new a;this.rootRules=new a;b&&this.addRules(b,10)},proto:{addRules:function(a,g){var c;if(typeof g=="number")c=
g;else if(g&&"priority"in g)c=g.priority;typeof c!="number"&&(c=10);typeof g!="object"&&(g={});a.elementNames&&this.elementNameRules.addMany(a.elementNames,c,g);a.attributeNames&&this.attributeNameRules.addMany(a.attributeNames,c,g);a.elements&&e(this.elementsRules,a.elements,c,g);a.attributes&&e(this.attributesRules,a.attributes,c,g);a.text&&this.textRules.add(a.text,c,g);a.comment&&this.commentRules.add(a.comment,c,g);a.root&&this.rootRules.add(a.root,c,g)},applyTo:function(a){a.filter(this)},onElementName:function(a,
g){return this.elementNameRules.execOnName(a,g)},onAttributeName:function(a,g){return this.attributeNameRules.execOnName(a,g)},onText:function(a,g,c){return this.textRules.exec(a,g,c)},onComment:function(a,g,c){return this.commentRules.exec(a,g,c)},onRoot:function(a,g){return this.rootRules.exec(a,g)},onElement:function(a,g){for(var c=[this.elementsRules["^"],this.elementsRules[g.name],this.elementsRules.$],e,i=0;i<3;i++)if(e=c[i]){e=e.exec(a,g,this);if(e===false)return null;if(e&&e!=g)return this.onNode(a,
e);if(g.parent&&!g.name)break}return g},onNode:function(a,g){var c=g.type;return c==CKEDITOR.NODE_ELEMENT?this.onElement(a,g):c==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(a,g.value)):c==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(a,g.value)):null},onAttribute:function(a,g,c,e){return(c=this.attributesRules[c])?c.exec(a,e,g,this):e}}});CKEDITOR.htmlParser.filterRulesGroup=a;a.prototype={add:function(a,g,c){this.rules.splice(this.findIndex(g),0,{value:a,priority:g,
options:c})},addMany:function(a,g,c){for(var e=[this.findIndex(g),0],i=0,f=a.length;i<f;i++)e.push({value:a[i],priority:g,options:c});this.rules.splice.apply(this.rules,e)},findIndex:function(a){for(var g=this.rules,c=g.length-1;c>=0&&a<g[c].priority;)c--;return c+1},exec:function(a,g){var c=g instanceof CKEDITOR.htmlParser.node||g instanceof CKEDITOR.htmlParser.fragment,e=Array.prototype.slice.call(arguments,1),i=this.rules,f=i.length,k,d,h,l;for(l=0;l<f;l++){if(c){k=g.type;d=g.name}h=i[l];if(!(a.nonEditable&&
!h.options.applyToAll||a.nestedEditable&&h.options.excludeNestedEditable)){h=h.value.apply(null,e);if(h===false||c&&h&&(h.name!=d||h.type!=k))return h;h!=null&&(e[0]=g=h)}}return g},execOnName:function(a,g){for(var c=0,e=this.rules,i=e.length,f;g&&c<i;c++){f=e[c];!(a.nonEditable&&!f.options.applyToAll||a.nestedEditable&&f.options.excludeNestedEditable)&&(g=g.replace(f.value[0],f.value[1]))}return g}}}(),function(){function a(a,d){function h(a){return a||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "):
new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function f(a,d){return function(c){if(c.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var f=[],k=b(c),i,v;if(k)for(e(k,1)&&f.push(k);k;){if(j(k)&&(i=g(k))&&e(i))if((v=g(i))&&!j(v))f.push(i);else{h(l).insertAfter(i);i.remove()}k=k.previous}for(k=0;k<f.length;k++)f[k].remove();if(f=!a||(typeof d=="function"?d(c):d)!==false)if(!l&&!CKEDITOR.env.needsBrFiller&&c.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)f=false;else if(!l&&!CKEDITOR.env.needsBrFiller&&(document.documentMode>
7||c.name in CKEDITOR.dtd.tr||c.name in CKEDITOR.dtd.$listItem))f=false;else{f=b(c);f=!f||c.name=="form"&&f.name=="input"}f&&c.add(h(a))}}}function e(a,b){if((!l||CKEDITOR.env.needsBrFiller)&&a.type==CKEDITOR.NODE_ELEMENT&&a.name=="br"&&!a.attributes["data-cke-eol"])return true;var d;if(a.type==CKEDITOR.NODE_TEXT&&(d=a.value.match(o))){if(d.index){(new CKEDITOR.htmlParser.text(a.value.substring(0,d.index))).insertBefore(a);a.value=d[0]}if(!CKEDITOR.env.needsBrFiller&&l&&(!b||a.parent.name in v))return true;
if(!l)if((d=a.previous)&&d.name=="br"||!d||j(d))return true}return false}var k={elements:{}},l=d=="html",v=CKEDITOR.tools.extend({},u),m;for(m in v)"#"in t[m]||delete v[m];for(m in v)k.elements[m]=f(l,a.config.fillEmptyBlocks);k.root=f(l,false);k.elements.br=function(a){return function(b){if(b.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var d=b.attributes;if("data-cke-bogus"in d||"data-cke-eol"in d)delete d["data-cke-bogus"];else{for(d=b.next;d&&c(d);)d=d.next;var f=g(b);!d&&j(b.parent)?i(b.parent,
h(a)):j(d)&&(f&&!j(f))&&h(a).insertBefore(d)}}}}(l);return k}function e(a,b){return a!=CKEDITOR.ENTER_BR&&b!==false?a==CKEDITOR.ENTER_DIV?"div":"p":false}function b(a){for(a=a.children[a.children.length-1];a&&c(a);)a=a.previous;return a}function g(a){for(a=a.previous;a&&c(a);)a=a.previous;return a}function c(a){return a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(a.value)||a.type==CKEDITOR.NODE_ELEMENT&&a.attributes["data-cke-bookmark"]}function j(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in
u||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function i(a,b){var d=a.children[a.children.length-1];a.children.push(b);b.parent=a;if(d){d.next=b;b.previous=d}}function f(a){a=a.attributes;a.contenteditable!="false"&&(a["data-cke-editable"]=a.contenteditable?"true":1);a.contenteditable="false"}function k(a){a=a.attributes;switch(a["data-cke-editable"]){case "true":a.contenteditable="true";break;case "1":delete a.contenteditable}}function d(a){return a.replace(z,function(a,b,d){return"<"+b+d.replace(B,
function(a,b){return A.test(b)&&d.indexOf("data-cke-saved-"+b)==-1?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a:a})+">"})}function h(a,b){return a.replace(b,function(a,b,d){a.indexOf("<textarea")===0&&(a=b+p(d).replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</textarea>");return"<cke:encoded>"+encodeURIComponent(a)+"</cke:encoded>"})}function l(a){return a.replace(F,function(a,b){return decodeURIComponent(b)})}function q(a){return a.replace(/<\!--(?!{cke_protected})[\s\S]+?--\>/g,function(a){return"<\!--"+
s+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\>"})}function p(a){return a.replace(/<\!--\{cke_protected\}\{C\}([\s\S]+?)--\>/g,function(a,b){return decodeURIComponent(b)})}function m(a,b){var d=b._.dataStore;return a.replace(/<\!--\{cke_protected\}([\s\S]+?)--\>/g,function(a,b){return decodeURIComponent(b)}).replace(/\{cke_protected_(\d+)\}/g,function(a,b){return d&&d[b]||""})}function n(a,b){for(var d=[],c=b.config.protectedSource,h=b._.dataStore||(b._.dataStore={id:1}),g=/<\!--\{cke_temp(comment)?\}(\d*?)--\>/g,
c=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(c),a=a.replace(/<\!--[\s\S]*?--\>/g,function(a){return"<\!--{cke_tempcomment}"+(d.push(a)-1)+"--\>"}),f=0;f<c.length;f++)a=a.replace(c[f],function(a){a=a.replace(g,function(a,b,c){return d[c]});return/cke_temp(comment)?/.test(a)?a:"<\!--{cke_temp}"+(d.push(a)-1)+"--\>"});a=a.replace(g,function(a,b,c){return"<\!--"+s+(b?"{C}":"")+encodeURIComponent(d[c]).replace(/--/g,"%2D%2D")+"--\>"});a=a.replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g,
function(a){return a.replace(/<\!--\{cke_protected\}([^>]*)--\>/g,function(a,b){h[h.id]=decodeURIComponent(b);return"{cke_protected_"+h.id++ +"}"})});return a=a.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(a,d,c,h){return"<"+d+c+">"+m(p(h),b)+"</"+d+">"})}CKEDITOR.htmlDataProcessor=function(b){var c,g,f=this;this.editor=b;this.dataFilter=c=new CKEDITOR.htmlParser.filter;this.htmlFilter=g=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;c.addRules(x);
c.addRules(v,{applyToAll:true});c.addRules(a(b,"data"),{applyToAll:true});g.addRules(r);g.addRules(y,{applyToAll:true});g.addRules(a(b,"html"),{applyToAll:true});b.on("toHtml",function(a){var a=a.data,c=a.dataValue,g,c=n(c,b),c=h(c,C),c=d(c),c=h(c,D),c=c.replace(E,"$1cke:$2"),c=c.replace(L,"<cke:$1$2></cke:$1>"),c=c.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),c=c.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");g=a.context||b.editable().getName();var f;if(CKEDITOR.env.ie&&
CKEDITOR.env.version<9&&g=="pre"){g="div";c="<pre>"+c+"</pre>";f=1}g=b.document.createElement(g);g.setHtml("a"+c);c=g.getHtml().substr(1);c=c.replace(RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");f&&(c=c.replace(/^<pre>|<\/pre>$/gi,""));c=c.replace(H,"$1$2");c=l(c);c=p(c);g=a.fixForBody===false?false:e(a.enterMode,b.config.autoParagraph);c=CKEDITOR.htmlParser.fragment.fromHtml(c,a.context,g);if(g){f=c;if(!f.children.length&&CKEDITOR.dtd[f.name][g]){g=new CKEDITOR.htmlParser.element(g);f.add(g)}}a.dataValue=
c},null,null,5);b.on("toHtml",function(a){a.data.filter.applyTo(a.data.dataValue,true,a.data.dontFilter,a.data.enterMode)&&b.fire("dataFiltered")},null,null,6);b.on("toHtml",function(a){a.data.dataValue.filterChildren(f.dataFilter,true)},null,null,10);b.on("toHtml",function(a){var a=a.data,b=a.dataValue,d=new CKEDITOR.htmlParser.basicWriter;b.writeChildrenHtml(d);b=d.getHtml(true);a.dataValue=q(b)},null,null,15);b.on("toDataFormat",function(a){var d=a.data.dataValue;a.data.enterMode!=CKEDITOR.ENTER_BR&&
(d=d.replace(/^<br *\/?>/i,""));a.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(d,a.data.context,e(a.data.enterMode,b.config.autoParagraph))},null,null,5);b.on("toDataFormat",function(a){a.data.dataValue.filterChildren(f.htmlFilter,true)},null,null,10);b.on("toDataFormat",function(a){a.data.filter.applyTo(a.data.dataValue,false,true)},null,null,11);b.on("toDataFormat",function(a){var d=a.data.dataValue,c=f.writer;c.reset();d.writeChildrenHtml(c);d=c.getHtml(true);d=p(d);d=m(d,b);a.data.dataValue=
d},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,b,d,c){var h=this.editor,g,f,e,j;if(b&&typeof b=="object"){g=b.context;d=b.fixForBody;c=b.dontFilter;f=b.filter;e=b.enterMode;j=b.protectedWhitespaces}else g=b;!g&&g!==null&&(g=h.editable().getName());return h.fire("toHtml",{dataValue:a,context:g,fixForBody:d,dontFilter:c,filter:f||h.filter,enterMode:e||h.enterMode,protectedWhitespaces:j}).dataValue},toDataFormat:function(a,b){var d,c,h;if(b){d=b.context;c=b.filter;h=b.enterMode}!d&&
d!==null&&(d=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:a,filter:c||this.editor.filter,context:d,enterMode:h||this.editor.enterMode}).dataValue}};var o=/(?:&nbsp;|\xa0)$/,s="{cke_protected}",t=CKEDITOR.dtd,w=["caption","colgroup","col","thead","tfoot","tbody"],u=CKEDITOR.tools.extend({},t.$blockLimit,t.$block),x={elements:{input:f,textarea:f}},v={attributeNames:[[/^on/,"data-cke-pa-on"],[/^data-cke-expando$/,""]]},r={elements:{embed:function(a){var b=a.parent;
if(b&&b.name=="object"){var d=b.attributes.width,b=b.attributes.height;if(d)a.attributes.width=d;if(b)a.attributes.height=b}},a:function(a){if(!a.children.length&&!a.attributes.name&&!a.attributes["data-cke-saved-name"])return false}}},y={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(a){var b=a.attributes;if(b){if(b["data-cke-temp"])return false;for(var d=["name","href","src"],c,h=0;h<d.length;h++){c=
"data-cke-saved-"+d[h];c in b&&delete b[d[h]]}}return a},table:function(a){a.children.slice(0).sort(function(a,b){var d,c;if(a.type==CKEDITOR.NODE_ELEMENT&&b.type==a.type){d=CKEDITOR.tools.indexOf(w,a.name);c=CKEDITOR.tools.indexOf(w,b.name)}if(!(d>-1&&c>-1&&d!=c)){d=a.parent?a.getIndex():-1;c=b.parent?b.getIndex():-1}return d>c?1:-1})},param:function(a){a.children=[];a.isEmpty=true;return a},span:function(a){a.attributes["class"]=="Apple-style-span"&&delete a.name},html:function(a){delete a.attributes.contenteditable;
delete a.attributes["class"]},body:function(a){delete a.attributes.spellcheck;delete a.attributes.contenteditable},style:function(a){var b=a.children[0];if(b&&b.value)b.value=CKEDITOR.tools.trim(b.value);if(!a.attributes.type)a.attributes.type="text/css"},title:function(a){var b=a.children[0];!b&&i(a,b=new CKEDITOR.htmlParser.text);b.value=a.attributes["data-cke-title"]||""},input:k,textarea:k},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,""))||false}}};
if(CKEDITOR.env.ie)y.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,function(a){return a.toLowerCase()})};var z=/<(a|area|img|input|source)\b([^>]*)>/gi,B=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,A=/^(href|src|name)$/i,D=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,C=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,F=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,E=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,H=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,
L=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),"use strict",CKEDITOR.htmlParser.element=function(a,e){this.name=a;this.attributes=e||{};this.children=[];var b=a||"",g=b.match(/^cke:(.*)/);g&&(b=g[1]);b=!(!CKEDITOR.dtd.$nonBodyContent[b]&&!CKEDITOR.dtd.$block[b]&&!CKEDITOR.dtd.$listItem[b]&&!CKEDITOR.dtd.$tableContent[b]&&!(CKEDITOR.dtd.$nonEditable[b]||b=="br"));this.isEmpty=!!CKEDITOR.dtd.$empty[a];this.isUnknown=!CKEDITOR.dtd[a];this._={isBlockLike:b,hasInlineStarted:this.isEmpty||!b}},
CKEDITOR.htmlParser.cssStyle=function(a){var e={};((a instanceof CKEDITOR.htmlParser.element?a.attributes.style:a)||"").replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,g,c){g=="font-family"&&(c=c.replace(/["']/g,""));e[g.toLowerCase()]=c});return{rules:e,populate:function(a){var g=this.toString();if(g)a instanceof CKEDITOR.dom.element?a.setAttribute("style",g):a instanceof CKEDITOR.htmlParser.element?a.attributes.style=g:a.style=g},toString:function(){var a=[],g;
for(g in e)e[g]&&a.push(g,":",e[g],";");return a.join("")}}},function(){function a(a){return function(b){return b.type==CKEDITOR.NODE_ELEMENT&&(typeof a=="string"?b.name==a:b.name in a)}}var e=function(a,b){a=a[0];b=b[0];return a<b?-1:a>b?1:0},b=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:b.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(a,
b){var e=this,i,f,b=e.getFilterContext(b);if(b.off)return true;if(!e.parent)a.onRoot(b,e);for(;;){i=e.name;if(!(f=a.onElementName(b,i))){this.remove();return false}e.name=f;if(!(e=a.onElement(b,e))){this.remove();return false}if(e!==this){this.replaceWith(e);return false}if(e.name==i)break;if(e.type!=CKEDITOR.NODE_ELEMENT){this.replaceWith(e);return false}if(!e.name){this.replaceWithChildren();return false}}i=e.attributes;var k,d;for(k in i){d=k;for(f=i[k];;)if(d=a.onAttributeName(b,k))if(d!=k){delete i[k];
k=d}else break;else{delete i[k];break}d&&((f=a.onAttribute(b,e,d,f))===false?delete i[d]:i[d]=f)}e.isEmpty||this.filterChildren(a,false,b);return true},filterChildren:b.filterChildren,writeHtml:function(a,b){b&&this.filter(b);var j=this.name,i=[],f=this.attributes,k,d;a.openTag(j,f);for(k in f)i.push([k,f[k]]);a.sortAttributes&&i.sort(e);k=0;for(d=i.length;k<d;k++){f=i[k];a.attribute(f[0],f[1])}a.openTagClose(j,this.isEmpty);this.writeChildrenHtml(a);this.isEmpty||a.closeTag(j)},writeChildrenHtml:b.writeChildrenHtml,
replaceWithChildren:function(){for(var a=this.children,b=a.length;b;)a[--b].insertAfter(this);this.remove()},forEach:b.forEach,getFirst:function(b){if(!b)return this.children.length?this.children[0]:null;typeof b!="function"&&(b=a(b));for(var c=0,e=this.children.length;c<e;++c)if(b(this.children[c]))return this.children[c];return null},getHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeChildrenHtml(a);return a.getHtml()},setHtml:function(a){for(var a=this.children=CKEDITOR.htmlParser.fragment.fromHtml(a).children,
b=0,e=a.length;b<e;++b)a[b].parent=this},getOuterHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeHtml(a);return a.getHtml()},split:function(a){for(var b=this.children.splice(a,this.children.length-a),e=this.clone(),i=0;i<b.length;++i)b[i].parent=e;e.children=b;if(b[0])b[0].previous=null;if(a>0)this.children[a-1].next=null;this.parent.add(e,this.getIndex()+1);return e},addClass:function(a){if(!this.hasClass(a)){var b=this.attributes["class"]||"";this.attributes["class"]=b+(b?" ":
"")+a}},removeClass:function(a){var b=this.attributes["class"];if(b)(b=CKEDITOR.tools.trim(b.replace(RegExp("(?:\\s+|^)"+a+"(?:\\s+|$)")," ")))?this.attributes["class"]=b:delete this.attributes["class"]},hasClass:function(a){var b=this.attributes["class"];return!b?false:RegExp("(?:^|\\s)"+a+"(?=\\s|$)").test(b)},getFilterContext:function(a){var b=[];a||(a={off:false,nonEditable:false,nestedEditable:false});!a.off&&this.attributes["data-cke-processor"]=="off"&&b.push("off",true);!a.nonEditable&&this.attributes.contenteditable==
"false"?b.push("nonEditable",true):a.nonEditable&&(!a.nestedEditable&&this.attributes.contenteditable=="true")&&b.push("nestedEditable",true);if(b.length)for(var a=CKEDITOR.tools.copy(a),e=0;e<b.length;e=e+2)a[b[e]]=b[e+1];return a}},true)}(),function(){var a={},e=/{([^}]+)}/g,b=/([\\'])/g,g=/\n/g,c=/\r/g;CKEDITOR.template=function(j){if(a[j])this.output=a[j];else{var i=j.replace(b,"\\$1").replace(g,"\\n").replace(c,"\\r").replace(e,function(a,b){return"',data['"+b+"']==undefined?'{"+b+"}':data['"+
b+"'],'"});this.output=a[j]=Function("data","buffer","return buffer?buffer.push('"+i+"'):['"+i+"'].join('');")}}}(),delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(a){CKEDITOR.instances[a.name]=a;a.on("focus",function(){if(CKEDITOR.currentInstance!=a){CKEDITOR.currentInstance=a;CKEDITOR.fire("currentInstance")}});a.on("blur",function(){if(CKEDITOR.currentInstance==a){CKEDITOR.currentInstance=null;CKEDITOR.fire("currentInstance")}});
CKEDITOR.fire("instance",null,a)},CKEDITOR.remove=function(a){delete CKEDITOR.instances[a.name]},function(){var a={};CKEDITOR.addTemplate=function(e,b){var g=a[e];if(g)return g;g={name:e,source:b};CKEDITOR.fire("template",g);return a[e]=new CKEDITOR.template(g.source)};CKEDITOR.getTemplate=function(e){return a[e]}}(),function(){var a=[];CKEDITOR.addCss=function(e){a.push(e)};CKEDITOR.getCss=function(){return a.join("\n")}}(),CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&&
CKEDITOR.fire("reset")}),CKEDITOR.TRISTATE_ON=1,CKEDITOR.TRISTATE_OFF=2,CKEDITOR.TRISTATE_DISABLED=0,function(){CKEDITOR.inline=function(a,e){if(!CKEDITOR.env.isCompatible)return null;a=CKEDITOR.dom.element.get(a);if(a.getEditor())throw'The editor instance "'+a.getEditor().name+'" is already attached to the provided element.';var b=new CKEDITOR.editor(e,a,CKEDITOR.ELEMENT_MODE_INLINE),g=a.is("textarea")?a:null;if(g){b.setData(g.getValue(),null,true);a=CKEDITOR.dom.element.createFromHtml('<div contenteditable="'+
!!b.readOnly+'" class="cke_textarea_inline">'+g.getValue()+"</div>",CKEDITOR.document);a.insertAfter(g);g.hide();g.$.form&&b._attachToForm()}else b.setData(a.getHtml(),null,true);b.on("loaded",function(){b.fire("uiReady");b.editable(a);b.container=a;b.ui.contentsElement=a;b.setData(b.getData(1));b.resetDirty();b.fire("contentDom");b.mode="wysiwyg";b.fire("mode");b.status="ready";b.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,b)},null,null,1E4);b.on("destroy",function(){if(g){b.container.clearCustomData();
b.container.remove();g.show()}b.element.clearCustomData();delete b.element});return b};CKEDITOR.inlineAll=function(){var a,e,b;for(b in CKEDITOR.dtd.$editable)for(var g=CKEDITOR.document.getElementsByTag(b),c=0,j=g.count();c<j;c++){a=g.getItem(c);if(a.getAttribute("contenteditable")=="true"){e={element:a,config:{}};CKEDITOR.fire("inline",e)!==false&&CKEDITOR.inline(a,e.config)}}};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})}(),CKEDITOR.replaceClass="ckeditor",function(){function a(a,
c,j,i){if(!CKEDITOR.env.isCompatible)return null;a=CKEDITOR.dom.element.get(a);if(a.getEditor())throw'The editor instance "'+a.getEditor().name+'" is already attached to the provided element.';var f=new CKEDITOR.editor(c,a,i);if(i==CKEDITOR.ELEMENT_MODE_REPLACE){a.setStyle("visibility","hidden");f._.required=a.hasAttribute("required");a.removeAttribute("required")}j&&f.setData(j,null,true);f.on("loaded",function(){b(f);i==CKEDITOR.ELEMENT_MODE_REPLACE&&(f.config.autoUpdateElement&&a.$.form)&&f._attachToForm();
f.setMode(f.config.startupMode,function(){f.resetDirty();f.status="ready";f.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,f)})});f.on("destroy",e);return f}function e(){var a=this.container,b=this.element;if(a){a.clearCustomData();a.remove()}if(b){b.clearCustomData();if(this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE){b.show();this._.required&&b.setAttribute("required","required")}delete this.element}}function b(a){var b=a.name,e=a.element,i=a.elementMode,f=a.fire("uiSpace",{space:"top",
html:""}).html,k=a.fire("uiSpace",{space:"bottom",html:""}).html,d=new CKEDITOR.template('<{outerEl} id="cke_{name}" class="{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'"  dir="{langDir}" lang="{langCode}" role="application"'+(a.title?' aria-labelledby="cke_{name}_arialbl"':"")+">"+(a.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':"")+'<{outerEl} class="cke_inner cke_reset" role="presentation">{topHtml}<{outerEl} id="{contentId}" class="cke_contents cke_reset" role="presentation"></{outerEl}>{bottomHtml}</{outerEl}></{outerEl}>'),
b=CKEDITOR.dom.element.createFromHtml(d.output({id:a.id,name:b,langDir:a.lang.dir,langCode:a.langCode,voiceLabel:a.title,topHtml:f?'<span id="'+a.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+f+"</span>":"",contentId:a.ui.spaceId("contents"),bottomHtml:k?'<span id="'+a.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+k+"</span>":"",outerEl:CKEDITOR.env.ie?"span":"div"}));if(i==CKEDITOR.ELEMENT_MODE_REPLACE){e.hide();b.insertAfter(e)}else e.append(b);
a.container=b;a.ui.contentsElement=a.ui.space("contents");f&&a.ui.space("top").unselectable();k&&a.ui.space("bottom").unselectable();e=a.config.width;i=a.config.height;e&&b.setStyle("width",CKEDITOR.tools.cssLength(e));i&&a.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(i));b.disableContextMenu();CKEDITOR.env.webkit&&b.on("focus",function(){a.focus()});a.fireOnce("uiReady")}CKEDITOR.replace=function(b,c){return a(b,c,null,CKEDITOR.ELEMENT_MODE_REPLACE)};CKEDITOR.appendTo=function(b,
c,e){return a(b,c,e,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=document.getElementsByTagName("textarea"),b=0;b<a.length;b++){var e=null,i=a[b];if(i.name||i.id){if(typeof arguments[0]=="string"){if(!RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)").test(i.className))continue}else if(typeof arguments[0]=="function"){e={};if(arguments[0](i,e)===false)continue}this.replace(i,e)}}};CKEDITOR.editor.prototype.addMode=function(a,b){(this._.modes||(this._.modes={}))[a]=b};CKEDITOR.editor.prototype.setMode=
function(a,b){var e=this,i=this._.modes;if(!(a==e.mode||!i||!i[a])){e.fire("beforeSetMode",a);if(e.mode){var f=e.checkDirty(),i=e._.previousModeData,k,d=0;e.fire("beforeModeUnload");e.editable(0);e._.previousMode=e.mode;e._.previousModeData=k=e.getData(1);if(e.mode=="source"&&i==k){e.fire("lockSnapshot",{forceUpdate:true});d=1}e.ui.space("contents").setHtml("");e.mode=""}else e._.previousModeData=e.getData(1);this._.modes[a](function(){e.mode=a;f!==void 0&&!f&&e.resetDirty();d?e.fire("unlockSnapshot"):
a=="wysiwyg"&&e.fire("saveSnapshot");setTimeout(function(){e.fire("mode");b&&b.call(e)},0)})}};CKEDITOR.editor.prototype.resize=function(a,b,e,i){var f=this.container,k=this.ui.space("contents"),d=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement,i=i?this.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}):f;i.setSize("width",a,true);d&&(d.style.width="1%");var h=(i.$.offsetHeight||0)-(k.$.clientHeight||0),f=Math.max(b-(e?0:h),
0),b=e?b+h:b;k.setStyle("height",f+"px");d&&(d.style.width="100%");this.fire("resize",{outerHeight:b,contentsHeight:f,outerWidth:a||i.getSize("width")})};CKEDITOR.editor.prototype.getResizable=function(a){return a?this.ui.space("contents"):this.container};CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){var a,e,b,g;function c(a){var b=a.editor,d=a.data.path,c=d.blockLimit,e=a.data.selection,g=e.getRanges()[0],
k;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)if(e=j(e,d)){e.appendBogus();k=CKEDITOR.env.ie}if(h(b,d.block,c)&&g.collapsed&&!g.getCommonAncestor().isReadOnly()){d=g.clone();d.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);c=new CKEDITOR.dom.walker(d);c.guard=function(a){return!f(a)||a.type==CKEDITOR.NODE_COMMENT||a.isReadOnly()};if(!c.checkForward()||d.checkStartOfBlock()&&d.checkEndOfBlock()){b=g.fixBlock(true,b.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p");if(!CKEDITOR.env.needsBrFiller)(b=
b.getFirst(f))&&(b.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(b.getText()).match(/^(?:&nbsp;|\xa0)$/))&&b.remove();k=1;a.cancel()}}k&&g.select()}function j(a,b){if(a.isFake)return 0;var d=b.block||b.blockLimit,c=d&&d.getLast(f);if(d&&d.isBlockBoundary()&&(!c||!(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()))&&!d.is("pre")&&!d.getBogus())return d}function i(a){var b=a.data.getTarget();if(b.is("input")){b=b.getAttribute("type");(b=="submit"||b=="reset")&&a.data.preventDefault()}}function f(a){return m(a)&&
n(a)}function k(a,b){return function(d){var c=d.data.$.toElement||d.data.$.fromElement||d.data.$.relatedTarget,c=c&&c.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(c):null;(!c||!b.equals(c)&&!b.contains(c))&&a.call(this,d)}}function d(a){function b(a){return function(b,c){c&&(b.type==CKEDITOR.NODE_ELEMENT&&b.is(h))&&(d=b);if(!c&&f(b)&&(!a||!s(b)))return false}}var d,c=a.getRanges()[0],a=a.root,h={table:1,ul:1,ol:1,dl:1};if(c.startPath().contains(h)){var e=c.clone();e.collapse(1);e.setStartAt(a,
CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(e);a.guard=b();a.checkBackward();if(d){e=c.clone();e.collapse();e.setEndAt(d,CKEDITOR.POSITION_AFTER_END);a=new CKEDITOR.dom.walker(e);a.guard=b(true);d=false;a.checkForward();return d}}return null}function h(a,b,d){return a.config.autoParagraph!==false&&a.activeEnterMode!=CKEDITOR.ENTER_BR&&(a.editable().equals(d)&&!b||b&&b.getAttribute("contenteditable")=="true")}function l(a){return a.activeEnterMode!=CKEDITOR.ENTER_BR&&a.config.autoParagraph!==
false?a.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p":false}function q(a){var b=a.editor;b.getSelection().scrollIntoView();setTimeout(function(){b.fire("saveSnapshot")},0)}function p(a,b,d){for(var c=a.getCommonAncestor(b),b=a=d?b:a;(a=a.getParent())&&!c.equals(a)&&a.getChildCount()==1;)b=a;b.remove()}CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(a,b){this.base(b.$||b);this.editor=a;this.status="unloaded";this.hasFocus=false;this.setup()},proto:{focus:function(){var a;
if(CKEDITOR.env.webkit&&!this.hasFocus){a=this.editor._.previousActive||this.getDocument().getActive();if(this.contains(a)){a.focus();return}}try{this.$[CKEDITOR.env.ie&&this.getDocument().equals(CKEDITOR.document)?"setActive":"focus"]()}catch(b){if(!CKEDITOR.env.ie)throw b;}if(CKEDITOR.env.safari&&!this.isInline()){a=CKEDITOR.document.getActive();a.equals(this.getWindow().getFrame())||this.getWindow().focus()}},on:function(a,b){var d=Array.prototype.slice.call(arguments,0);if(CKEDITOR.env.ie&&/^focus|blur$/.exec(a)){a=
a=="focus"?"focusin":"focusout";b=k(b,this);d[0]=a;d[1]=b}return CKEDITOR.dom.element.prototype.on.apply(this,d)},attachListener:function(a){!this._.listeners&&(this._.listeners=[]);var b=Array.prototype.slice.call(arguments,1),b=a.on.apply(a,b);this._.listeners.push(b);return b},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(b){}},restoreAttrs:function(){var a=this._.attrChanges,b,d;for(d in a)if(a.hasOwnProperty(d)){b=a[d];b!==null?this.setAttribute(d,
b):this.removeAttribute(d)}},attachClass:function(a){var b=this.getCustomData("classes");if(!this.hasClass(a)){!b&&(b=[]);b.push(a);this.setCustomData("classes",b);this.addClass(a)}},changeAttr:function(a,b){var d=this.getAttribute(a);if(b!==d){!this._.attrChanges&&(this._.attrChanges={});a in this._.attrChanges||(this._.attrChanges[a]=d);this.setAttribute(a,b)}},insertText:function(a){this.editor.focus();this.insertHtml(this.transformPlainTextToHtml(a),"text")},transformPlainTextToHtml:function(a){var b=
this.editor.getSelection().getStartElement().hasAscendant("pre",true)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(a,b)},insertHtml:function(a,b,d){var c=this.editor;c.focus();c.fire("saveSnapshot");d||(d=c.getSelection().getRanges()[0]);w(this,b||"html",a,d);d.select();q(this);this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(a,b,d){w(this,d||"html",a,b);this.editor.fire("afterInsertHtml",{intoRange:b})},insertElement:function(a,
b){var d=this.editor;d.focus();d.fire("saveSnapshot");var c=d.activeEnterMode,d=d.getSelection(),h=a.getName(),h=CKEDITOR.dtd.$block[h];b||(b=d.getRanges()[0]);if(this.insertElementIntoRange(a,b)){b.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);if(h)if((h=a.getNext(function(a){return f(a)&&!s(a)}))&&h.type==CKEDITOR.NODE_ELEMENT&&h.is(CKEDITOR.dtd.$block))h.getDtd()["#"]?b.moveToElementEditStart(h):b.moveToElementEditEnd(a);else if(!h&&c!=CKEDITOR.ENTER_BR){h=b.fixBlock(true,c==CKEDITOR.ENTER_DIV?
"div":"p");b.moveToElementEditStart(h)}}d.selectRanges([b]);q(this)},insertElementIntoSelection:function(a){this.insertElement(a)},insertElementIntoRange:function(a,b){var d=this.editor,c=d.config.enterMode,h=a.getName(),e=CKEDITOR.dtd.$block[h];if(b.checkReadOnly())return false;b.deleteContents(1);b.startContainer.type==CKEDITOR.NODE_ELEMENT&&b.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})&&u(b);var g,f;if(e)for(;(g=b.getCommonAncestor(0,1))&&(f=CKEDITOR.dtd[g.getName()])&&(!f||!f[h]);)if(g.getName()in
CKEDITOR.dtd.span)b.splitElement(g);else if(b.checkStartOfBlock()&&b.checkEndOfBlock()){b.setStartBefore(g);b.collapse(true);g.remove()}else b.splitBlock(c==CKEDITOR.ENTER_DIV?"div":"p",d.editable());b.insertNode(a);return true},setData:function(a,b){b||(a=this.editor.dataProcessor.toHtml(a));this.setHtml(a);this.fixInitialSelection();if(this.status=="unloaded")this.status="ready";this.editor.fire("dataReady")},getData:function(a){var b=this.getHtml();a||(b=this.editor.dataProcessor.toDataFormat(b));
return b},setReadOnly:function(a){this.setAttribute("contenteditable",!a)},detach:function(){this.removeClass("cke_editable");this.status="detached";var a=this.editor;this._.detach();delete a.document;delete a.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},fixInitialSelection:function(){function a(){var b=d.getDocument().$,c=b.getSelection(),h;if(c.anchorNode&&c.anchorNode==d.$)h=true;else if(CKEDITOR.env.webkit){var e=d.getDocument().getActive();e&&(e.equals(d)&&
!c.anchorNode)&&(h=true)}if(h){h=new CKEDITOR.dom.range(d);h.moveToElementEditStart(d);b=b.createRange();b.setStart(h.startContainer.$,h.startOffset);b.collapse(true);c.removeAllRanges();c.addRange(b)}}function b(){var a=d.getDocument().$,c=a.selection,h=d.getDocument().getActive();if(c.type=="None"&&h.equals(d)){c=new CKEDITOR.dom.range(d);a=a.body.createTextRange();c.moveToElementEditStart(d);c=c.startContainer;c.type!=CKEDITOR.NODE_ELEMENT&&(c=c.getParent());a.moveToElementText(c.$);a.collapse(true);
a.select()}}var d=this;if(CKEDITOR.env.ie&&(CKEDITOR.env.version<9||CKEDITOR.env.quirks)){if(this.hasFocus){this.focus();b()}}else if(this.hasFocus){this.focus();a()}else this.once("focus",function(){a()},null,null,-999)},getHtmlFromRange:function(d){if(d.collapsed)return new CKEDITOR.dom.documentFragment(d.document);d={doc:this.getDocument(),range:d.clone()};a.detect(d,this);e.exclude(d);b.shrink(d);d.fragment=d.range.cloneContents();g.rebuild(d,this);a.fix(d,this);return new CKEDITOR.dom.documentFragment(d.fragment.$)},
extractHtmlFromRange:function(a,b){var d=x,c={range:a,doc:a.document},h=this.getHtmlFromRange(a);if(a.collapsed){a.optimize();return h}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);d.table.detectPurge(c);c.bookmark=a.createBookmark();delete c.range;var e=this.editor.createRange();e.moveToPosition(c.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START);c.targetBookmark=e.createBookmark();d.list.detectMerge(c,this);d.table.detectRanges(c,this);d.block.detectMerge(c,this);if(c.tableContentsRanges){d.table.deleteRanges(c);
a.moveToBookmark(c.bookmark);c.range=a}else{a.moveToBookmark(c.bookmark);c.range=a;a.extractContents(d.detectExtractMerge(c))}a.moveToBookmark(c.targetBookmark);a.optimize();d.fixUneditableRangePosition(a);d.list.merge(c,this);d.table.purge(c,this);d.block.merge(c,this);if(b){d=a.startPath();if(c=a.checkStartOfBlock())if(c=a.checkEndOfBlock())if(c=d.block)if(c=!a.root.equals(d.block)){a:{var c=d.block.getElementsByTag("span"),e=0,g;if(c)for(;g=c.getItem(e++);)if(!n(g)){c=true;break a}c=false}c=!c}if(c){a.moveToPosition(d.block,
CKEDITOR.POSITION_BEFORE_START);d.block.remove()}}else{d.autoParagraph(this.editor,a);o(a.startContainer)&&a.startContainer.appendBogus()}a.startContainer.mergeSiblings();return h},setup:function(){var a=this.editor;this.attachListener(a,"beforeGetData",function(){var b=this.getData();this.is("textarea")||a.config.ignoreEmptyParagraph!==false&&(b=b.replace(t,function(a,b){return b}));a.setData(b,null,1)},this);this.attachListener(a,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(a,
"afterSetData",function(){this.setData(a.getData(1))},this);this.attachListener(a,"loadSnapshot",function(a){this.setData(a.data,1)},this);this.attachListener(a,"beforeFocus",function(){var b=a.getSelection();(b=b&&b.getNative())&&b.type=="Control"||this.focus()},this);this.attachListener(a,"insertHtml",function(a){this.insertHtml(a.data.dataValue,a.data.mode,a.data.range)},this);this.attachListener(a,"insertElement",function(a){this.insertElement(a.data)},this);this.attachListener(a,"insertText",
function(a){this.insertText(a.data)},this);this.setReadOnly(a.readOnly);this.attachClass("cke_editable");a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):(a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE||a.elementMode==CKEDITOR.ELEMENT_MODE_APPENDTO)&&this.attachClass("cke_editable_themed");this.attachClass("cke_contents_"+a.config.contentsLangDirection);a.keystrokeHandler.blockedKeystrokes[8]=+a.readOnly;a.keystrokeHandler.attach(this);this.on("blur",function(){this.hasFocus=
false},null,null,-1);this.on("focus",function(){this.hasFocus=true},null,null,-1);a.focusManager.add(this);if(this.equals(CKEDITOR.document.getActive())){this.hasFocus=true;a.once("contentDom",function(){a.focusManager.focus(this)},this)}this.isInline()&&this.changeAttr("tabindex",a.tabIndex);if(!this.is("textarea")){a.document=this.getDocument();a.window=this.getWindow();var b=a.document;this.changeAttr("spellcheck",!a.config.disableNativeSpellChecker);var c=a.config.contentsLangDirection;this.getDirection(1)!=
c&&this.changeAttr("dir",c);var h=CKEDITOR.getCss();if(h){c=b.getHead();if(!c.getCustomData("stylesheet")){h=b.appendStyleText(h);h=new CKEDITOR.dom.element(h.ownerNode||h.owningElement);c.setCustomData("stylesheet",h);h.data("cke-temp",1)}}c=b.getCustomData("stylesheet_ref")||0;b.setCustomData("stylesheet_ref",c+1);this.setCustomData("cke_includeReadonly",!a.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){var a=a.data,b=(new CKEDITOR.dom.elementPath(a.getTarget(),this)).contains("a");
b&&(a.$.button!=2&&b.isReadOnly())&&a.preventDefault()});var e={8:1,46:1};this.attachListener(a,"key",function(b){if(a.readOnly)return true;var c=b.data.domEvent.getKey(),h;if(c in e){var b=a.getSelection(),g,f=b.getRanges()[0],k=f.startPath(),i,j,l,c=c==8;if(CKEDITOR.env.ie&&CKEDITOR.env.version<11&&(g=b.getSelectedElement())||(g=d(b))){a.fire("saveSnapshot");f.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START);g.remove();f.select();a.fire("saveSnapshot");h=1}else if(f.collapsed)if((i=k.block)&&(l=
i[c?"getPrevious":"getNext"](m))&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("table")&&f[c?"checkStartOfBlock":"checkEndOfBlock"]()){a.fire("saveSnapshot");f[c?"checkEndOfBlock":"checkStartOfBlock"]()&&i.remove();f["moveToElementEdit"+(c?"End":"Start")](l);f.select();a.fire("saveSnapshot");h=1}else if(k.blockLimit&&k.blockLimit.is("td")&&(j=k.blockLimit.getAscendant("table"))&&f.checkBoundaryOfElement(j,c?CKEDITOR.START:CKEDITOR.END)&&(l=j[c?"getPrevious":"getNext"](m))){a.fire("saveSnapshot");f["moveToElementEdit"+
(c?"End":"Start")](l);f.checkStartOfBlock()&&f.checkEndOfBlock()?l.remove():f.select();a.fire("saveSnapshot");h=1}else if((j=k.contains(["td","th","caption"]))&&f.checkBoundaryOfElement(j,c?CKEDITOR.START:CKEDITOR.END))h=1}return!h});a.blockless&&(CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)&&this.attachListener(this,"keyup",function(b){if(b.data.getKeystroke()in e&&!this.getFirst(f)){this.appendBogus();b=a.createRange();b.moveToPosition(this,CKEDITOR.POSITION_AFTER_START);b.select()}});this.attachListener(this,
"dblclick",function(b){if(a.readOnly)return false;b={element:b.data.getTarget()};a.fire("doubleclick",b)});CKEDITOR.env.ie&&this.attachListener(this,"click",i);(!CKEDITOR.env.ie||CKEDITOR.env.edge)&&this.attachListener(this,"mousedown",function(b){var d=b.data.getTarget();if(d.is("img","hr","input","textarea","select")&&!d.isReadOnly()){a.getSelection().selectElement(d);d.is("input","textarea","select")&&b.data.preventDefault()}});CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(b){(b=
b.data.getTarget())&&b.is("img")&&a.getSelection().selectElement(b)});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(b){if(b.data.$.button==2){b=b.data.getTarget();if(!b.getOuterHtml().replace(t,"")){var d=a.createRange();d.moveToElementEditStart(b);d.select(true)}}});if(CKEDITOR.env.webkit){this.attachListener(this,"click",function(a){a.data.getTarget().is("input","select")&&a.data.preventDefault()});this.attachListener(this,"mouseup",function(a){a.data.getTarget().is("input","textarea")&&
a.data.preventDefault()})}CKEDITOR.env.webkit&&this.attachListener(a,"key",function(b){if(a.readOnly)return true;b=b.data.domEvent.getKey();if(b in e){var d=b==8,c=a.getSelection().getRanges()[0],b=c.startPath();if(c.collapsed){var h;a:{var g=b.block;if(g)if(c[d?"checkStartOfBlock":"checkEndOfBlock"]())if(!c.moveToClosestEditablePosition(g,!d)||!c.collapsed)h=false;else{if(c.startContainer.type==CKEDITOR.NODE_ELEMENT){var f=c.startContainer.getChild(c.startOffset-(d?1:0));if(f&&f.type==CKEDITOR.NODE_ELEMENT&&
f.is("hr")){a.fire("saveSnapshot");f.remove();h=true;break a}}if((c=c.startPath().block)&&(!c||!c.contains(g))){a.fire("saveSnapshot");var k;(k=(d?c:g).getBogus())&&k.remove();h=a.getSelection();k=h.createBookmarks();(d?g:c).moveChildren(d?c:g,false);b.lastElement.mergeSiblings();p(g,c,!d);h.selectBookmarks(k);h=true}}else h=false;else h=false}if(!h)return}else{d=c;h=b.block;k=d.endPath().block;if(!h||!k||h.equals(k))b=false;else{a.fire("saveSnapshot");(g=h.getBogus())&&g.remove();d.enlarge(CKEDITOR.ENLARGE_INLINE);
d.deleteContents();if(k.getParent()){k.moveChildren(h,false);b.lastElement.mergeSiblings();p(h,k,true)}d=a.getSelection().getRanges()[0];d.collapse(1);d.optimize();d.startContainer.getHtml()===""&&d.startContainer.appendBogus();d.select();b=true}if(!b)return}a.getSelection().scrollIntoView();a.fire("saveSnapshot");return false}},this,null,100)}}},_:{detach:function(){this.editor.setData(this.editor.getData(),0,1);this.clearListeners();this.restoreAttrs();var a;if(a=this.removeCustomData("classes"))for(;a.length;)this.removeClass(a.pop());
if(!this.is("textarea")){a=this.getDocument();var b=a.getHead();if(b.getCustomData("stylesheet")){var d=a.getCustomData("stylesheet_ref");if(--d)a.setCustomData("stylesheet_ref",d);else{a.removeCustomData("stylesheet_ref");b.removeCustomData("stylesheet").remove()}}}this.editor.fire("contentDomUnload");delete this.editor}}});CKEDITOR.editor.prototype.editable=function(a){var b=this._.editable;if(b&&a)return 0;if(arguments.length)b=this._.editable=a?a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this,
a):(b&&b.detach(),null);return b};CKEDITOR.on("instanceLoaded",function(a){var b=a.editor;b.on("insertElement",function(a){a=a.data;if(a.type==CKEDITOR.NODE_ELEMENT&&(a.is("input")||a.is("textarea"))){a.getAttribute("contentEditable")!="false"&&a.data("cke-editable",a.hasAttribute("contenteditable")?"true":"1");a.setAttribute("contentEditable",false)}});b.on("selectionChange",function(a){if(!b.readOnly){var d=b.getSelection();if(d&&!d.isLocked){d=b.checkDirty();b.fire("lockSnapshot");c(a);b.fire("unlockSnapshot");
!d&&b.resetDirty()}}})});CKEDITOR.on("instanceCreated",function(a){var b=a.editor;b.on("mode",function(){var a=b.editable();if(a&&a.isInline()){var d=b.title;a.changeAttr("role","textbox");a.changeAttr("aria-label",d);d&&a.changeAttr("title",d);var c=b.fire("ariaEditorHelpLabel",{}).label;if(c)if(d=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents")){var h=CKEDITOR.tools.getNextId(),c=CKEDITOR.dom.element.createFromHtml('<span id="'+h+'" class="cke_voice_label">'+c+"</span>");
d.append(c);a.changeAttr("aria-describedby",h)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");var m=CKEDITOR.dom.walker.whitespaces(true),n=CKEDITOR.dom.walker.bookmark(false,true),o=CKEDITOR.dom.walker.empty(),s=CKEDITOR.dom.walker.bogus(),t=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,w=function(){function a(b){return b.type==CKEDITOR.NODE_ELEMENT}
function b(d,c){var h,e,g,f,i=[],j=c.range.startContainer;h=c.range.startPath();for(var j=k[j.getName()],l=0,o=d.getChildren(),m=o.count(),p=-1,s=-1,E=0,u=h.contains(k.$list);l<m;++l){h=o.getItem(l);if(a(h)){g=h.getName();if(u&&g in CKEDITOR.dtd.$list)i=i.concat(b(h,c));else{f=!!j[g];if(g=="br"&&h.data("cke-eol")&&(!l||l==m-1)){E=(e=l?i[l-1].node:o.getItem(l+1))&&(!a(e)||!e.is("br"));e=e&&a(e)&&k.$block[e.getName()]}p==-1&&!f&&(p=l);f||(s=l);i.push({isElement:1,isLineBreak:E,isBlock:h.isBlockBoundary(),
hasBlockSibling:e,node:h,name:g,allowed:f});e=E=0}}else i.push({isElement:0,node:h,allowed:1})}if(p>-1)i[p].firstNotAllowed=1;if(s>-1)i[s].lastNotAllowed=1;return i}function d(b,c){var h=[],e=b.getChildren(),g=e.count(),f,i=0,j=k[c],l=!b.is(k.$inline)||b.is("br");for(l&&h.push(" ");i<g;i++){f=e.getItem(i);a(f)&&!f.is(j)?h=h.concat(d(f,c)):h.push(f)}l&&h.push(" ");return h}function c(b){return b&&a(b)&&(b.is(k.$removeEmpty)||b.is("a")&&!b.isBlockBoundary())}function e(b,d,c,h){var g=b.clone(),f,k;
g.setEndAt(d,CKEDITOR.POSITION_BEFORE_END);if((f=(new CKEDITOR.dom.walker(g)).next())&&a(f)&&i[f.getName()]&&(k=f.getPrevious())&&a(k)&&!k.getParent().equals(b.startContainer)&&c.contains(k)&&h.contains(f)&&f.isIdentical(k)){f.moveChildren(k);f.remove();e(b,d,c,h)}}function g(b,d){function c(b,d){if(d.isBlock&&d.isElement&&!d.node.is("br")&&a(b)&&b.is("br")){b.remove();return 1}}var h=d.endContainer.getChild(d.endOffset),e=d.endContainer.getChild(d.endOffset-1);h&&c(h,b[b.length-1]);if(e&&c(e,b[0])){d.setEnd(d.endContainer,
d.endOffset-1);d.collapse()}}var k=CKEDITOR.dtd,i={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,li:1,pre:1,dl:1,blockquote:1},j={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},o=CKEDITOR.tools.extend({},k.$inline);delete o.br;return function(i,m,p,s){var u=i.editor,q=false;if(m=="unfiltered_html"){m="html";q=true}if(!s.checkReadOnly()){var t=(new CKEDITOR.dom.elementPath(s.startContainer,s.root)).blockLimit||s.root,i={type:m,dontFilter:q,editable:i,editor:u,range:s,blockLimit:t,mergeCandidates:[],
zombies:[]},m=i.range,s=i.mergeCandidates,n,x;if(i.type=="text"&&m.shrink(CKEDITOR.SHRINK_ELEMENT,true,false)){n=CKEDITOR.dom.element.createFromHtml("<span>&nbsp;</span>",m.document);m.insertNode(n);m.setStartAfter(n)}q=new CKEDITOR.dom.elementPath(m.startContainer);i.endPath=t=new CKEDITOR.dom.elementPath(m.endContainer);if(!m.collapsed){var u=t.block||t.blockLimit,w=m.getCommonAncestor();u&&(!u.equals(w)&&!u.contains(w)&&m.checkEndOfBlock())&&i.zombies.push(u);m.deleteContents()}for(;(x=a(m.startContainer)&&
m.startContainer.getChild(m.startOffset-1))&&a(x)&&x.isBlockBoundary()&&q.contains(x);)m.moveToPosition(x,CKEDITOR.POSITION_BEFORE_END);e(m,i.blockLimit,q,t);if(n){m.setEndBefore(n);m.collapse();n.remove()}n=m.startPath();if(u=n.contains(c,false,1)){m.splitElement(u);i.inlineStylesRoot=u;i.inlineStylesPeak=n.lastElement}n=m.createBookmark();(u=n.startNode.getPrevious(f))&&a(u)&&c(u)&&s.push(u);(u=n.startNode.getNext(f))&&a(u)&&c(u)&&s.push(u);for(u=n.startNode;(u=u.getParent())&&c(u);)s.push(u);m.moveToBookmark(n);
if(n=p){n=i.range;if(i.type=="text"&&i.inlineStylesRoot){x=i.inlineStylesPeak;m=x.getDocument().createText("{cke-peak}");for(s=i.inlineStylesRoot.getParent();!x.equals(s);){m=m.appendTo(x.clone());x=x.getParent()}p=m.getOuterHtml().split("{cke-peak}").join(p)}x=i.blockLimit.getName();if(/^\s+|\s+$/.test(p)&&"span"in CKEDITOR.dtd[x])var O='<span data-cke-marker="1">&nbsp;</span>',p=O+p+O;p=i.editor.dataProcessor.toHtml(p,{context:null,fixForBody:false,protectedWhitespaces:!!O,dontFilter:i.dontFilter,
filter:i.editor.activeFilter,enterMode:i.editor.activeEnterMode});x=n.document.createElement("body");x.setHtml(p);if(O){x.getFirst().remove();x.getLast().remove()}if((O=n.startPath().block)&&!(O.getChildCount()==1&&O.getBogus()))a:{var J;if(x.getChildCount()==1&&a(J=x.getFirst())&&J.is(j)&&!J.hasAttribute("contenteditable")){O=J.getElementsByTag("*");n=0;for(s=O.count();n<s;n++){m=O.getItem(n);if(!m.is(o))break a}J.moveChildren(J.getParent(1));J.remove()}}i.dataWrapper=x;n=p}if(n){J=i.range;n=J.document;
var G;x=i.blockLimit;var s=0,P,O=[],Q,C,p=u=0,V,W,m=J.startContainer,q=i.endPath.elements[0],$,t=q.getPosition(m),w=!!q.getCommonAncestor(m)&&t!=CKEDITOR.POSITION_IDENTICAL&&!(t&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED),m=b(i.dataWrapper,i);for(g(m,J);s<m.length;s++){t=m[s];if(G=t.isLineBreak){G=J;V=x;var T=void 0,aa=void 0;if(t.hasBlockSibling)G=1;else{T=G.startContainer.getAscendant(k.$block,1);if(!T||!T.is({div:1,p:1}))G=0;else{aa=T.getPosition(V);if(aa==CKEDITOR.POSITION_IDENTICAL||
aa==CKEDITOR.POSITION_CONTAINS)G=0;else{V=G.splitElement(T);G.moveToPosition(V,CKEDITOR.POSITION_AFTER_START);G=1}}}}if(G)p=s>0;else{G=J.startPath();if(!t.isBlock&&h(i.editor,G.block,G.blockLimit)&&(C=l(i.editor))){C=n.createElement(C);C.appendBogus();J.insertNode(C);CKEDITOR.env.needsBrFiller&&(P=C.getBogus())&&P.remove();J.moveToPosition(C,CKEDITOR.POSITION_BEFORE_END)}if((G=J.startPath().block)&&!G.equals(Q)){if(P=G.getBogus()){P.remove();O.push(G)}Q=G}t.firstNotAllowed&&(u=1);if(u&&t.isElement){G=
J.startContainer;for(V=null;G&&!k[G.getName()][t.name];){if(G.equals(x)){G=null;break}V=G;G=G.getParent()}if(G){if(V){W=J.splitElement(V);i.zombies.push(W);i.zombies.push(V)}}else{V=x.getName();$=!s;G=s==m.length-1;V=d(t.node,V);for(var T=[],aa=V.length,Y=0,X=void 0,ba=0,fa=-1;Y<aa;Y++){X=V[Y];if(X==" "){if(!ba&&(!$||Y)){T.push(new CKEDITOR.dom.text(" "));fa=T.length}ba=1}else{T.push(X);ba=0}}G&&fa==T.length&&T.pop();$=T}}if($){for(;G=$.pop();)J.insertNode(G);$=0}else J.insertNode(t.node);if(t.lastNotAllowed&&
s<m.length-1){(W=w?q:W)&&J.setEndAt(W,CKEDITOR.POSITION_AFTER_START);u=0}J.collapse()}}if(m.length!=1)P=false;else{P=m[0];P=P.isElement&&P.node.getAttribute("contenteditable")=="false"}if(P){p=true;G=m[0].node;J.setStartAt(G,CKEDITOR.POSITION_BEFORE_START);J.setEndAt(G,CKEDITOR.POSITION_AFTER_END)}i.dontMoveCaret=p;i.bogusNeededBlocks=O}P=i.range;var da;W=i.bogusNeededBlocks;for($=P.createBookmark();Q=i.zombies.pop();)if(Q.getParent()){C=P.clone();C.moveToElementEditStart(Q);C.removeEmptyBlocksAtEnd()}if(W)for(;Q=
W.pop();)CKEDITOR.env.needsBrFiller?Q.appendBogus():Q.append(P.document.createText(" "));for(;Q=i.mergeCandidates.pop();)Q.mergeSiblings();P.moveToBookmark($);if(!i.dontMoveCaret){for(Q=a(P.startContainer)&&P.startContainer.getChild(P.startOffset-1);Q&&a(Q)&&!Q.is(k.$empty);){if(Q.isBlockBoundary())P.moveToPosition(Q,CKEDITOR.POSITION_BEFORE_END);else{if(c(Q)&&Q.getHtml().match(/(\s|&nbsp;)$/g)){da=null;break}da=P.clone();da.moveToPosition(Q,CKEDITOR.POSITION_BEFORE_END)}Q=Q.getLast(f)}da&&P.moveToRange(da)}}}}(),
u=function(){function a(b){b=new CKEDITOR.dom.walker(b);b.guard=function(a,b){if(b)return false;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$tableContent)};b.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT};return b}function b(a,d,c){d=a.getDocument().createElement(d);a.append(d,c);return d}function d(a){var b=a.count(),c;for(b;b-- >0;){c=a.getItem(b);if(!CKEDITOR.tools.trim(c.getHtml())){c.appendBogus();CKEDITOR.env.ie&&(CKEDITOR.env.version<9&&c.getChildCount())&&c.getFirst().remove()}}}
return function(c){var h=c.startContainer,e=h.getAscendant("table",1),g=false;d(e.getElementsByTag("td"));d(e.getElementsByTag("th"));e=c.clone();e.setStart(h,0);e=a(e).lastBackward();if(!e){e=c.clone();e.setEndAt(h,CKEDITOR.POSITION_BEFORE_END);e=a(e).lastForward();g=true}e||(e=h);if(e.is("table")){c.setStartAt(e,CKEDITOR.POSITION_BEFORE_START);c.collapse(true);e.remove()}else{e.is({tbody:1,thead:1,tfoot:1})&&(e=b(e,"tr",g));e.is("tr")&&(e=b(e,e.getParent().is("thead")?"th":"td",g));(h=e.getBogus())&&
h.remove();c.moveToPosition(e,g?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END)}}}();a={detect:function(a,b){var d=a.range,c=d.clone(),h=d.clone(),e=new CKEDITOR.dom.elementPath(d.startContainer,b),g=new CKEDITOR.dom.elementPath(d.endContainer,b);c.collapse(1);h.collapse();if(e.block&&c.checkBoundaryOfElement(e.block,CKEDITOR.END)){d.setStartAfter(e.block);a.prependEolBr=1}if(g.block&&h.checkBoundaryOfElement(g.block,CKEDITOR.START)){d.setEndBefore(g.block);a.appendEolBr=1}},fix:function(a,
b){var d=b.getDocument(),c;if(a.appendEolBr){c=this.createEolBr(d);a.fragment.append(c)}a.prependEolBr&&(!c||c.getPrevious())&&a.fragment.append(this.createEolBr(d),1)},createEolBr:function(a){return a.createElement("br",{attributes:{"data-cke-eol":1}})}};e={exclude:function(a){var b=a.range.getBoundaryNodes(),d=b.startNode;(b=b.endNode)&&(s(b)&&(!d||!d.equals(b)))&&a.range.setEndBefore(b)}};g={rebuild:function(a,b){var d=a.range,c=d.getCommonAncestor(),h=new CKEDITOR.dom.elementPath(c,b),e=new CKEDITOR.dom.elementPath(d.startContainer,
b),d=new CKEDITOR.dom.elementPath(d.endContainer,b),g;c.type==CKEDITOR.NODE_TEXT&&(c=c.getParent());if(h.blockLimit.is({tr:1,table:1})){var f=h.contains("table").getParent();g=function(a){return!a.equals(f)}}else if(h.block&&h.block.is(CKEDITOR.dtd.$listItem)){e=e.contains(CKEDITOR.dtd.$list);d=d.contains(CKEDITOR.dtd.$list);if(!e.equals(d)){var i=h.contains(CKEDITOR.dtd.$list).getParent();g=function(a){return!a.equals(i)}}}g||(g=function(a){return!a.equals(h.block)&&!a.equals(h.blockLimit)});this.rebuildFragment(a,
b,c,g)},rebuildFragment:function(a,b,d,c){for(var h;d&&!d.equals(b)&&c(d);){h=d.clone(0,1);a.fragment.appendTo(h);a.fragment=h;d=d.getParent()}}};b={shrink:function(a){var a=a.range,b=a.startContainer,d=a.endContainer,c=a.startOffset,h=a.endOffset;b.type==CKEDITOR.NODE_ELEMENT&&(b.equals(d)&&b.is("tr")&&++c==h)&&a.shrink(CKEDITOR.SHRINK_TEXT)}};var x=function(){function a(b,d){var c=b.getParent();if(c.is(CKEDITOR.dtd.$inline))b[d?"insertBefore":"insertAfter"](c)}function b(d,c,h){a(c);a(h,1);for(var e;e=
h.getNext();){e.insertAfter(c);c=e}o(d)&&d.remove()}function d(a,b){var c=new CKEDITOR.dom.range(a);c.setStartAfter(b.startNode);c.setEndBefore(b.endNode);return c}return{list:{detectMerge:function(a,b){var c=d(b,a.bookmark),h=c.startPath(),e=c.endPath(),g=h.contains(CKEDITOR.dtd.$list),f=e.contains(CKEDITOR.dtd.$list);a.mergeList=g&&f&&g.getParent().equals(f.getParent())&&!g.equals(f);a.mergeListItems=h.block&&e.block&&h.block.is(CKEDITOR.dtd.$listItem)&&e.block.is(CKEDITOR.dtd.$listItem);if(a.mergeList||
a.mergeListItems){c=c.clone();c.setStartBefore(a.bookmark.startNode);c.setEndAfter(a.bookmark.endNode);a.mergeListBookmark=c.createBookmark()}},merge:function(a,d){if(a.mergeListBookmark){var c=a.mergeListBookmark.startNode,h=a.mergeListBookmark.endNode,e=new CKEDITOR.dom.elementPath(c,d),g=new CKEDITOR.dom.elementPath(h,d);if(a.mergeList){var f=e.contains(CKEDITOR.dtd.$list),i=g.contains(CKEDITOR.dtd.$list);if(!f.equals(i)){i.moveChildren(f);i.remove()}}if(a.mergeListItems){e=e.contains(CKEDITOR.dtd.$listItem);
g=g.contains(CKEDITOR.dtd.$listItem);e.equals(g)||b(g,c,h)}c.remove();h.remove()}}},block:{detectMerge:function(a,b){if(!a.tableContentsRanges&&!a.mergeListBookmark){var d=new CKEDITOR.dom.range(b);d.setStartBefore(a.bookmark.startNode);d.setEndAfter(a.bookmark.endNode);a.mergeBlockBookmark=d.createBookmark()}},merge:function(a,d){if(a.mergeBlockBookmark&&!a.purgeTableBookmark){var c=a.mergeBlockBookmark.startNode,h=a.mergeBlockBookmark.endNode,e=new CKEDITOR.dom.elementPath(c,d),g=new CKEDITOR.dom.elementPath(h,
d),e=e.block,g=g.block;e&&(g&&!e.equals(g))&&b(g,c,h);c.remove();h.remove()}}},table:function(){function a(d){var h=[],e,g=new CKEDITOR.dom.walker(d),f=d.startPath().contains(c),i=d.endPath().contains(c),k={};g.guard=function(a,g){if(a.type==CKEDITOR.NODE_ELEMENT){var j="visited_"+(g?"out":"in");if(a.getCustomData(j))return;CKEDITOR.dom.element.setMarker(k,a,j,1)}if(g&&f&&a.equals(f)){e=d.clone();e.setEndAt(f,CKEDITOR.POSITION_BEFORE_END);h.push(e)}else if(!g&&i&&a.equals(i)){e=d.clone();e.setStartAt(i,
CKEDITOR.POSITION_AFTER_START);h.push(e)}else if(!g&&a.type==CKEDITOR.NODE_ELEMENT&&a.is(c)&&(!f||b(a,f))&&(!i||b(a,i))){e=d.clone();e.selectNodeContents(a);h.push(e)}};g.lastForward();CKEDITOR.dom.element.clearAllMarkers(k);return h}function b(a,d){var c=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,h=a.getPosition(d);return h===CKEDITOR.POSITION_IDENTICAL?false:(h&c)===0}var c={td:1,th:1,caption:1};return{detectPurge:function(a){var b=a.range,d=b.clone();d.enlarge(CKEDITOR.ENLARGE_ELEMENT);
var d=new CKEDITOR.dom.walker(d),h=0;d.evaluator=function(a){a.type==CKEDITOR.NODE_ELEMENT&&a.is(c)&&++h};d.checkForward();if(h>1){var d=b.startPath().contains("table"),e=b.endPath().contains("table");if(d&&e&&b.checkBoundaryOfElement(d,CKEDITOR.START)&&b.checkBoundaryOfElement(e,CKEDITOR.END)){b=a.range.clone();b.setStartBefore(d);b.setEndAfter(e);a.purgeTableBookmark=b.createBookmark()}}},detectRanges:function(h,e){var g=d(e,h.bookmark),f=g.clone(),i,k,j=g.getCommonAncestor();j.is(CKEDITOR.dtd.$tableContent)&&
!j.is(c)&&(j=j.getAscendant("table",true));k=j;j=new CKEDITOR.dom.elementPath(g.startContainer,k);k=new CKEDITOR.dom.elementPath(g.endContainer,k);j=j.contains("table");k=k.contains("table");if(j||k){if(j&&k&&b(j,k)){h.tableSurroundingRange=f;f.setStartAt(j,CKEDITOR.POSITION_AFTER_END);f.setEndAt(k,CKEDITOR.POSITION_BEFORE_START);f=g.clone();f.setEndAt(j,CKEDITOR.POSITION_AFTER_END);i=g.clone();i.setStartAt(k,CKEDITOR.POSITION_BEFORE_START);i=a(f).concat(a(i))}else if(j){if(!k){h.tableSurroundingRange=
f;f.setStartAt(j,CKEDITOR.POSITION_AFTER_END);g.setEndAt(j,CKEDITOR.POSITION_AFTER_END)}}else{h.tableSurroundingRange=f;f.setEndAt(k,CKEDITOR.POSITION_BEFORE_START);g.setStartAt(k,CKEDITOR.POSITION_AFTER_START)}h.tableContentsRanges=i?i:a(g)}},deleteRanges:function(a){for(var b;b=a.tableContentsRanges.pop();){b.extractContents();o(b.startContainer)&&b.startContainer.appendBogus()}a.tableSurroundingRange&&a.tableSurroundingRange.extractContents()},purge:function(a){if(a.purgeTableBookmark){var b=a.doc,
d=a.range.clone(),b=b.createElement("p");b.insertBefore(a.purgeTableBookmark.startNode);d.moveToBookmark(a.purgeTableBookmark);d.deleteContents();a.range.moveToPosition(b,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(a){return!(a.range.startPath().contains(CKEDITOR.dtd.$listItem)&&a.range.endPath().contains(CKEDITOR.dtd.$listItem))},fixUneditableRangePosition:function(a){a.startContainer.getDtd()["#"]||a.moveToClosestEditablePosition(null,true)},autoParagraph:function(a,b){var d=
b.startPath(),c;if(h(a,d.block,d.blockLimit)&&(c=l(a))){c=b.document.createElement(c);c.appendBogus();b.insertNode(c);b.moveToPosition(c,CKEDITOR.POSITION_AFTER_START)}}}}()}(),function(){function a(){var a=this._.fakeSelection,b;if(a){b=this.getSelection(1);if(!b||!b.isHidden()){a.reset();a=0}}if(!a){a=b||this.getSelection(1);if(!a||a.getType()==CKEDITOR.SELECTION_NONE)return}this.fire("selectionCheck",a);b=this.elementPath();if(!b.compare(this._.selectionPreviousPath)){if(CKEDITOR.env.webkit)this._.previousActive=
this.document.getActive();this._.selectionPreviousPath=b;this.fire("selectionChange",{selection:a,path:b})}}function e(){m=true;if(!p){b.call(this);p=CKEDITOR.tools.setTimeout(b,200,this)}}function b(){p=null;if(m){CKEDITOR.tools.setTimeout(a,0,this);m=false}}function g(a){return n(a)||a.type==CKEDITOR.NODE_ELEMENT&&!a.is(CKEDITOR.dtd.$empty)?true:false}function c(a){function b(d,c){return!d||d.type==CKEDITOR.NODE_TEXT?false:a.clone()["moveToElementEdit"+(c?"End":"Start")](d)}if(!(a.root instanceof
CKEDITOR.editable))return false;var d=a.startContainer,c=a.getPreviousNode(g,null,d),h=a.getNextNode(g,null,d);return b(c)||b(h,1)||!c&&!h&&!(d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary()&&d.getBogus())?true:false}function j(a){return a.getCustomData("cke-fillingChar")}function i(a,b){var c=a&&a.removeCustomData("cke-fillingChar");if(c){if(b!==false){var h,e=a.getDocument().getSelection().getNative(),g=e&&e.type!="None"&&e.getRangeAt(0);if(c.getLength()>1&&g&&g.intersectsNode(c.$)){h=k(e);g=
e.focusNode==c.$&&e.focusOffset>0;e.anchorNode==c.$&&e.anchorOffset>0&&h[0].offset--;g&&h[1].offset--}}c.setText(f(c.getText()));h&&d(a.getDocument().$,h)}}function f(a){return a.replace(/\u200B( )?/g,function(a){return a[1]?" ":""})}function k(a){return[{node:a.anchorNode,offset:a.anchorOffset},{node:a.focusNode,offset:a.focusOffset}]}function d(a,b){var d=a.getSelection(),c=a.createRange();c.setStart(b[0].node,b[0].offset);c.collapse(true);d.removeAllRanges();d.addRange(c);d.extend(b[1].node,b[1].offset)}
function h(a){var b=CKEDITOR.dom.element.createFromHtml('<div data-cke-hidden-sel="1" data-cke-temp="1" style="'+(CKEDITOR.env.ie?"display:none":"position:fixed;top:0;left:-1000px")+'">&nbsp;</div>',a.document);a.fire("lockSnapshot");a.editable().append(b);var d=a.getSelection(1),c=a.createRange(),h=d.root.on("selectionchange",function(a){a.cancel()},null,null,0);c.setStartAt(b,CKEDITOR.POSITION_AFTER_START);c.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);d.selectRanges([c]);h.removeListener();a.fire("unlockSnapshot");
a._.hiddenSelectionContainer=b}function l(a){var b={37:1,39:1,8:1,46:1};return function(d){var c=d.data.getKeystroke();if(b[c]){var h=a.getSelection().getRanges(),e=h[0];if(h.length==1&&e.collapsed)if((c=e[c<38?"getPreviousEditableNode":"getNextEditableNode"]())&&c.type==CKEDITOR.NODE_ELEMENT&&c.getAttribute("contenteditable")=="false"){a.getSelection().fake(c);d.data.preventDefault();d.cancel()}}}}function q(a){for(var b=0;b<a.length;b++){var d=a[b];d.getCommonAncestor().isReadOnly()&&a.splice(b,
1);if(!d.collapsed){if(d.startContainer.isReadOnly())for(var c=d.startContainer,h;c;){if((h=c.type==CKEDITOR.NODE_ELEMENT)&&c.is("body")||!c.isReadOnly())break;h&&c.getAttribute("contentEditable")=="false"&&d.setStartAfter(c);c=c.getParent()}c=d.startContainer;h=d.endContainer;var e=d.startOffset,g=d.endOffset,f=d.clone();c&&c.type==CKEDITOR.NODE_TEXT&&(e>=c.getLength()?f.setStartAfter(c):f.setStartBefore(c));h&&h.type==CKEDITOR.NODE_TEXT&&(g?f.setEndAfter(h):f.setEndBefore(h));c=new CKEDITOR.dom.walker(f);
c.evaluator=function(c){if(c.type==CKEDITOR.NODE_ELEMENT&&c.isReadOnly()){var h=d.clone();d.setEndBefore(c);d.collapsed&&a.splice(b--,1);if(!(c.getPosition(f.endContainer)&CKEDITOR.POSITION_CONTAINS)){h.setStartAfter(c);h.collapsed||a.splice(b+1,0,h)}return true}return false};c.next()}}return a}var p,m,n=CKEDITOR.dom.walker.invisible(1),o=function(){function a(b){return function(a){var d=a.editor.createRange();d.moveToClosestEditablePosition(a.selected,b)&&a.editor.getSelection().selectRanges([d]);
return false}}function b(a){return function(b){var d=b.editor,c=d.createRange(),h;if(!(h=c.moveToClosestEditablePosition(b.selected,a)))h=c.moveToClosestEditablePosition(b.selected,!a);h&&d.getSelection().selectRanges([c]);d.fire("saveSnapshot");b.selected.remove();if(!h){c.moveToElementEditablePosition(d.editable());d.getSelection().selectRanges([c])}d.fire("saveSnapshot");return false}}var d=a(),c=a(1);return{37:d,38:d,39:c,40:c,8:b(),46:b(1)}}();CKEDITOR.on("instanceCreated",function(b){function d(){var a=
c.getSelection();a&&a.removeAllRanges()}var c=b.editor;c.on("contentDom",function(){function b(){p=new CKEDITOR.dom.selection(c.getSelection());p.lock()}function d(){g.removeListener("mouseup",d);j.removeListener("mouseup",d);var a=CKEDITOR.document.$.selection,b=a.createRange();a.type!="None"&&b.parentElement().ownerDocument==h.$&&b.select()}var h=c.document,g=CKEDITOR.document,f=c.editable(),k=h.getBody(),j=h.getDocumentElement(),o=f.isInline(),m,p;CKEDITOR.env.gecko&&f.attachListener(f,"focus",
function(a){a.removeListener();if(m!==0)if((a=c.getSelection().getNative())&&a.isCollapsed&&a.anchorNode==f.$){a=c.createRange();a.moveToElementEditStart(f);a.select()}},null,null,-2);f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){m&&CKEDITOR.env.webkit&&(m=c._.previousActive&&c._.previousActive.equals(h.getActive()));c.unlockSelection(m);m=0},null,null,-1);f.attachListener(f,"mousedown",function(){m=0});if(CKEDITOR.env.ie||o){s?f.attachListener(f,"beforedeactivate",b,null,
null,-1):f.attachListener(c,"selectionCheck",b,null,null,-1);f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){c.lockSelection(p);m=1},null,null,-1);f.attachListener(f,"mousedown",function(){m=0})}if(CKEDITOR.env.ie&&!o){var t;f.attachListener(f,"mousedown",function(a){if(a.data.$.button==2){a=c.document.getSelection();if(!a||a.getType()==CKEDITOR.SELECTION_NONE)t=c.window.getScrollPosition()}});f.attachListener(f,"mouseup",function(a){if(a.data.$.button==2&&t){c.document.$.documentElement.scrollLeft=
t.x;c.document.$.documentElement.scrollTop=t.y}t=null});if(h.$.compatMode!="BackCompat"){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)j.on("mousedown",function(a){function b(a){a=a.data.$;if(c){var d=k.$.createTextRange();try{d.moveToPoint(a.clientX,a.clientY)}catch(h){}c.setEndPoint(e.compareEndPoints("StartToStart",d)<0?"EndToEnd":"StartToStart",d);c.select()}}function d(){j.removeListener("mousemove",b);g.removeListener("mouseup",d);j.removeListener("mouseup",d);c.select()}a=a.data;if(a.getTarget().is("html")&&
a.$.y<j.$.clientHeight&&a.$.x<j.$.clientWidth){var c=k.$.createTextRange();try{c.moveToPoint(a.$.clientX,a.$.clientY)}catch(h){}var e=c.duplicate();j.on("mousemove",b);g.on("mouseup",d);j.on("mouseup",d)}});if(CKEDITOR.env.version>7&&CKEDITOR.env.version<11)j.on("mousedown",function(a){if(a.data.getTarget().is("html")){g.on("mouseup",d);j.on("mouseup",d)}})}}f.attachListener(f,"selectionchange",a,c);f.attachListener(f,"keyup",e,c);f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){c.forceNextSelectionCheck();
c.selectionChange(1)});if(o&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var q;f.attachListener(f,"mousedown",function(){q=1});f.attachListener(h.getDocumentElement(),"mouseup",function(){q&&e.call(c);q=0})}else f.attachListener(CKEDITOR.env.ie?f:h.getDocumentElement(),"mouseup",e,c);CKEDITOR.env.webkit&&f.attachListener(h,"keydown",function(a){switch(a.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:i(f)}},null,null,-1);f.attachListener(f,"keydown",l(c),
null,null,-1)});c.on("setData",function(){c.unlockSelection();CKEDITOR.env.webkit&&d()});c.on("contentDomUnload",function(){c.unlockSelection()});if(CKEDITOR.env.ie9Compat)c.on("beforeDestroy",d,null,null,9);c.on("dataReady",function(){delete c._.fakeSelection;delete c._.hiddenSelectionContainer;c.selectionChange(1)});c.on("loadSnapshot",function(){var a=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),b=c.editable().getLast(a);if(b&&b.hasAttribute("data-cke-hidden-sel")){b.remove();if(CKEDITOR.env.gecko)(a=
c.editable().getFirst(a))&&(a.is("br")&&a.getAttribute("_moz_editor_bogus_node"))&&a.remove()}},null,null,100);c.on("key",function(a){if(c.mode=="wysiwyg"){var b=c.getSelection();if(b.isFake){var d=o[a.data.keyCode];if(d)return d({editor:c,selected:b.getSelectedElement(),selection:b,keyEvent:a})}}})});CKEDITOR.on("instanceReady",function(a){function b(){var a=h.editable();if(a)if(a=j(a)){var d=h.document.$.getSelection();if(d.type!="None"&&(d.anchorNode==a.$||d.focusNode==a.$))g=k(d);e=a.getText();
a.setText(f(e))}}function c(){var a=h.editable();if(a)if(a=j(a)){a.setText(e);if(g){d(h.document.$,g);g=null}}}var h=a.editor,e,g;if(CKEDITOR.env.webkit){h.on("selectionChange",function(){var a=h.editable(),b=j(a);b&&(b.getCustomData("ready")?i(a):b.setCustomData("ready",1))},null,null,-1);h.on("beforeSetMode",function(){i(h.editable())},null,null,-1);h.on("beforeUndoImage",b);h.on("afterUndoImage",c);h.on("beforeGetData",b,null,null,0);h.on("getData",c)}});CKEDITOR.editor.prototype.selectionChange=
function(b){(b?a:e).call(this)};CKEDITOR.editor.prototype.getSelection=function(a){if((this._.savedSelection||this._.fakeSelection)&&!a)return this._.savedSelection||this._.fakeSelection;return(a=this.editable())&&this.mode=="wysiwyg"?new CKEDITOR.dom.selection(a):null};CKEDITOR.editor.prototype.lockSelection=function(a){a=a||this.getSelection(1);if(a.getType()!=CKEDITOR.SELECTION_NONE){!a.isLocked&&a.lock();this._.savedSelection=a;return true}return false};CKEDITOR.editor.prototype.unlockSelection=
function(a){var b=this._.savedSelection;if(b){b.unlock(a);delete this._.savedSelection;return true}return false};CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath};CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)};CKEDITOR.dom.range.prototype.select=function(){var a=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);a.selectRanges([this]);return a};
CKEDITOR.SELECTION_NONE=1;CKEDITOR.SELECTION_TEXT=2;CKEDITOR.SELECTION_ELEMENT=3;var s=typeof window.getSelection!="function",t=1;CKEDITOR.dom.selection=function(a){if(a instanceof CKEDITOR.dom.selection)var b=a,a=a.root;var d=a instanceof CKEDITOR.dom.element;this.rev=b?b.rev:t++;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root=d?a:this.document.getBody();this.isLocked=0;this._={cache:{}};if(b){CKEDITOR.tools.extend(this._.cache,b._.cache);this.isFake=b.isFake;this.isLocked=
b.isLocked;return this}var a=this.getNative(),c,h;if(a)if(a.getRangeAt)c=(h=a.rangeCount&&a.getRangeAt(0))&&new CKEDITOR.dom.node(h.commonAncestorContainer);else{try{h=a.createRange()}catch(e){}c=h&&CKEDITOR.dom.element.get(h.item&&h.item(0)||h.parentElement())}if(!c||!(c.type==CKEDITOR.NODE_ELEMENT||c.type==CKEDITOR.NODE_TEXT)||!this.root.equals(c)&&!this.root.contains(c)){this._.cache.type=CKEDITOR.SELECTION_NONE;this._.cache.startElement=null;this._.cache.selectedElement=null;this._.cache.selectedText=
"";this._.cache.ranges=new CKEDITOR.dom.rangeList}return this};var w={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1};CKEDITOR.dom.selection.prototype={getNative:function(){return this._.cache.nativeSel!==void 0?this._.cache.nativeSel:this._.cache.nativeSel=s?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:s?function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_NONE;
try{var d=this.getNative(),c=d.type;if(c=="Text")b=CKEDITOR.SELECTION_TEXT;if(c=="Control")b=CKEDITOR.SELECTION_ELEMENT;if(d.createRange().parentElement())b=CKEDITOR.SELECTION_TEXT}catch(h){}return a.type=b}:function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_TEXT,d=this.getNative();if(!d||!d.rangeCount)b=CKEDITOR.SELECTION_NONE;else if(d.rangeCount==1){var d=d.getRangeAt(0),c=d.startContainer;if(c==d.endContainer&&c.nodeType==1&&d.endOffset-d.startOffset==1&&w[c.childNodes[d.startOffset].nodeName.toLowerCase()])b=
CKEDITOR.SELECTION_ELEMENT}return a.type=b},getRanges:function(){var a=s?function(){function a(b){return(new CKEDITOR.dom.node(b)).getIndex()}var b=function(b,d){b=b.duplicate();b.collapse(d);var c=b.parentElement();if(!c.hasChildNodes())return{container:c,offset:0};for(var h=c.children,e,g,f=b.duplicate(),k=0,i=h.length-1,j=-1,l,o;k<=i;){j=Math.floor((k+i)/2);e=h[j];f.moveToElementText(e);l=f.compareEndPoints("StartToStart",b);if(l>0)i=j-1;else if(l<0)k=j+1;else return{container:c,offset:a(e)}}if(j==
-1||j==h.length-1&&l<0){f.moveToElementText(c);f.setEndPoint("StartToStart",b);f=f.text.replace(/(\r\n|\r)/g,"\n").length;h=c.childNodes;if(!f){e=h[h.length-1];return e.nodeType!=CKEDITOR.NODE_TEXT?{container:c,offset:h.length}:{container:e,offset:e.nodeValue.length}}for(c=h.length;f>0&&c>0;){g=h[--c];if(g.nodeType==CKEDITOR.NODE_TEXT){o=g;f=f-g.nodeValue.length}}return{container:o,offset:-f}}f.collapse(l>0?true:false);f.setEndPoint(l>0?"StartToStart":"EndToStart",b);f=f.text.replace(/(\r\n|\r)/g,
"\n").length;if(!f)return{container:c,offset:a(e)+(l>0?0:1)};for(;f>0;)try{g=e[l>0?"previousSibling":"nextSibling"];if(g.nodeType==CKEDITOR.NODE_TEXT){f=f-g.nodeValue.length;o=g}e=g}catch(m){return{container:c,offset:a(e)}}return{container:o,offset:l>0?-f:o.nodeValue.length+f}};return function(){var a=this.getNative(),d=a&&a.createRange(),c=this.getType();if(!a)return[];if(c==CKEDITOR.SELECTION_TEXT){a=new CKEDITOR.dom.range(this.root);c=b(d,true);a.setStart(new CKEDITOR.dom.node(c.container),c.offset);
c=b(d);a.setEnd(new CKEDITOR.dom.node(c.container),c.offset);a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse();return[a]}if(c==CKEDITOR.SELECTION_ELEMENT){for(var c=[],h=0;h<d.length;h++){for(var e=d.item(h),f=e.parentNode,g=0,a=new CKEDITOR.dom.range(this.root);g<f.childNodes.length&&f.childNodes[g]!=e;g++);a.setStart(new CKEDITOR.dom.node(f),g);a.setEnd(new CKEDITOR.dom.node(f),g+1);c.push(a)}return c}return[]}}():function(){var a=
[],b,d=this.getNative();if(!d)return a;for(var c=0;c<d.rangeCount;c++){var h=d.getRangeAt(c);b=new CKEDITOR.dom.range(this.root);b.setStart(new CKEDITOR.dom.node(h.startContainer),h.startOffset);b.setEnd(new CKEDITOR.dom.node(h.endContainer),h.endOffset);a.push(b)}return a};return function(b){var d=this._.cache,c=d.ranges;if(!c)d.ranges=c=new CKEDITOR.dom.rangeList(a.call(this));return!b?c:q(new CKEDITOR.dom.rangeList(c.slice()))}}(),getStartElement:function(){var a=this._.cache;if(a.startElement!==
void 0)return a.startElement;var b;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var d=this.getRanges()[0];if(d){if(d.collapsed){b=d.startContainer;b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent())}else{for(d.optimize();;){b=d.startContainer;if(d.startOffset==(b.getChildCount?b.getChildCount():b.getLength())&&!b.isBlockBoundary())d.setStartAfter(b);else break}b=d.startContainer;if(b.type!=CKEDITOR.NODE_ELEMENT)return b.getParent();
b=b.getChild(d.startOffset);if(!b||b.type!=CKEDITOR.NODE_ELEMENT)b=d.startContainer;else for(d=b.getFirst();d&&d.type==CKEDITOR.NODE_ELEMENT;){b=d;d=d.getFirst()}}b=b.$}}return a.startElement=b?new CKEDITOR.dom.element(b):null},getSelectedElement:function(){var a=this._.cache;if(a.selectedElement!==void 0)return a.selectedElement;var b=this,d=CKEDITOR.tools.tryThese(function(){return b.getNative().createRange().item(0)},function(){for(var a=b.getRanges()[0].clone(),d,c,h=2;h&&(!(d=a.getEnclosedNode())||
!(d.type==CKEDITOR.NODE_ELEMENT&&w[d.getName()]&&(c=d)));h--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return c&&c.$});return a.selectedElement=d?new CKEDITOR.dom.element(d):null},getSelectedText:function(){var a=this._.cache;if(a.selectedText!==void 0)return a.selectedText;var b=this.getNative(),b=s?b.type=="Control"?"":b.createRange().text:b.toString();return a.selectedText=b},lock:function(){this.getRanges();this.getStartElement();this.getSelectedElement();this.getSelectedText();this._.cache.nativeSel=
null;this.isLocked=1},unlock:function(a){if(this.isLocked){if(a)var b=this.getSelectedElement(),d=!b&&this.getRanges(),c=this.isFake;this.isLocked=0;this.reset();if(a)(a=b||d[0]&&d[0].getCommonAncestor())&&a.getAscendant("body",1)&&(c?this.fake(b):b?this.selectElement(b):this.selectRanges(d))}},reset:function(){this._.cache={};this.isFake=0;var a=this.root.editor;if(a&&a._.fakeSelection&&this.rev==a._.fakeSelection.rev){delete a._.fakeSelection;var b=a._.hiddenSelectionContainer;if(b){var d=a.checkDirty();
a.fire("lockSnapshot");b.remove();a.fire("unlockSnapshot");!d&&a.resetDirty()}delete a._.hiddenSelectionContainer}this.rev=t++},selectElement:function(a){var b=new CKEDITOR.dom.range(this.root);b.setStartBefore(a);b.setEndAfter(a);this.selectRanges([b])},selectRanges:function(a){var b=this.root.editor,b=b&&b._.hiddenSelectionContainer;this.reset();if(b)for(var b=this.root,d,h=0;h<a.length;++h){d=a[h];if(d.endContainer.equals(b))d.endOffset=Math.min(d.endOffset,b.getChildCount())}if(a.length)if(this.isLocked){var e=
CKEDITOR.document.getActive();this.unlock();this.selectRanges(a);this.lock();e&&!e.equals(this.root)&&e.focus()}else{var f;a:{var g,k;if(a.length==1&&!(k=a[0]).collapsed&&(f=k.getEnclosedNode())&&f.type==CKEDITOR.NODE_ELEMENT){k=k.clone();k.shrink(CKEDITOR.SHRINK_ELEMENT,true);if((g=k.getEnclosedNode())&&g.type==CKEDITOR.NODE_ELEMENT)f=g;if(f.getAttribute("contenteditable")=="false")break a}f=void 0}if(f)this.fake(f);else{if(s){k=CKEDITOR.dom.walker.whitespaces(true);g=/\ufeff|\u00a0/;b={table:1,
tbody:1,tr:1};if(a.length>1){f=a[a.length-1];a[0].setEnd(f.endContainer,f.endOffset)}f=a[0];var a=f.collapsed,j,l,o;if((d=f.getEnclosedNode())&&d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in w&&(!d.is("a")||!d.getText()))try{o=d.$.createControlRange();o.addElement(d.$);o.select();return}catch(m){}if(f.startContainer.type==CKEDITOR.NODE_ELEMENT&&f.startContainer.getName()in b||f.endContainer.type==CKEDITOR.NODE_ELEMENT&&f.endContainer.getName()in b){f.shrink(CKEDITOR.NODE_ELEMENT,true);a=f.collapsed}o=
f.createBookmark();b=o.startNode;if(!a)e=o.endNode;o=f.document.$.body.createTextRange();o.moveToElementText(b.$);o.moveStart("character",1);if(e){g=f.document.$.body.createTextRange();g.moveToElementText(e.$);o.setEndPoint("EndToEnd",g);o.moveEnd("character",-1)}else{j=b.getNext(k);l=b.hasAscendant("pre");j=!(j&&j.getText&&j.getText().match(g))&&(l||!b.hasPrevious()||b.getPrevious().is&&b.getPrevious().is("br"));l=f.document.createElement("span");l.setHtml("&#65279;");l.insertBefore(b);j&&f.document.createText("﻿").insertBefore(b)}f.setStartBefore(b);
b.remove();if(a){if(j){o.moveStart("character",-1);o.select();f.document.$.selection.clear()}else o.select();f.moveToPosition(l,CKEDITOR.POSITION_BEFORE_START);l.remove()}else{f.setEndBefore(e);e.remove();o.select()}}else{e=this.getNative();if(!e)return;this.removeAllRanges();for(o=0;o<a.length;o++){if(o<a.length-1){j=a[o];l=a[o+1];g=j.clone();g.setStart(j.endContainer,j.endOffset);g.setEnd(l.startContainer,l.startOffset);if(!g.collapsed){g.shrink(CKEDITOR.NODE_ELEMENT,true);f=g.getCommonAncestor();
g=g.getEnclosedNode();if(f.isReadOnly()||g&&g.isReadOnly()){l.setStart(j.startContainer,j.startOffset);a.splice(o--,1);continue}}}f=a[o];l=this.document.$.createRange();if(f.collapsed&&CKEDITOR.env.webkit&&c(f)){j=this.root;i(j,false);g=j.getDocument().createText("​");j.setCustomData("cke-fillingChar",g);f.insertNode(g);if((j=g.getNext())&&!g.getPrevious()&&j.type==CKEDITOR.NODE_ELEMENT&&j.getName()=="br"){i(this.root);f.moveToPosition(j,CKEDITOR.POSITION_BEFORE_START)}else f.moveToPosition(g,CKEDITOR.POSITION_AFTER_END)}l.setStart(f.startContainer.$,
f.startOffset);try{l.setEnd(f.endContainer.$,f.endOffset)}catch(p){if(p.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")>=0){f.collapse(1);l.setEnd(f.endContainer.$,f.endOffset)}else throw p;}e.addRange(l)}}this.reset();this.root.fire("selectionchange")}}},fake:function(a){var b=this.root.editor;this.reset();h(b);var d=this._.cache,c=new CKEDITOR.dom.range(this.root);c.setStartBefore(a);c.setEndAfter(a);d.ranges=new CKEDITOR.dom.rangeList(c);d.selectedElement=d.startElement=a;d.type=CKEDITOR.SELECTION_ELEMENT;
d.selectedText=d.nativeSel=null;this.isFake=1;this.rev=t++;b._.fakeSelection=this;this.root.fire("selectionchange")},isHidden:function(){var a=this.getCommonAncestor();a&&a.type==CKEDITOR.NODE_TEXT&&(a=a.getParent());return!(!a||!a.data("cke-hidden-sel"))},createBookmarks:function(a){a=this.getRanges().createBookmarks(a);this.isFake&&(a.isFake=1);return a},createBookmarks2:function(a){a=this.getRanges().createBookmarks2(a);this.isFake&&(a.isFake=1);return a},selectBookmarks:function(a){for(var b=
[],d,c=0;c<a.length;c++){var h=new CKEDITOR.dom.range(this.root);h.moveToBookmark(a[c]);b.push(h)}if(a.isFake){d=b[0].getEnclosedNode();if(!d||d.type!=CKEDITOR.NODE_ELEMENT)a.isFake=0}a.isFake?this.fake(d):this.selectRanges(b);return this},getCommonAncestor:function(){var a=this.getRanges();return!a.length?null:a[0].startContainer.getCommonAncestor(a[a.length-1].endContainer)},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=
CKEDITOR.SELECTION_NONE){var a=this.getNative();try{a&&a[s?"empty":"removeAllRanges"]()}catch(b){}this.reset()}}}}(),"use strict",CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function a(a,b){for(var d,c;a=a.getParent();){if(a.equals(b))break;if(a.getAttribute("data-nostyle"))d=a;else if(!c){var h=a.getAttribute("contentEditable");h=="false"?d=a:h=="true"&&(c=1)}}return d}function e(b){var d=b.document;if(b.collapsed){d=o(this,d);b.insertNode(d);b.moveToPosition(d,
CKEDITOR.POSITION_BEFORE_END)}else{var c=this.element,h=this._.definition,f,k=h.ignoreReadonly,i=k||h.includeReadonly;i==null&&(i=b.root.getCustomData("cke_includeReadonly"));var j=CKEDITOR.dtd[c];if(!j){f=true;j=CKEDITOR.dtd.span}b.enlarge(CKEDITOR.ENLARGE_INLINE,1);b.trim();var l=b.createBookmark(),m=l.startNode,s=l.endNode,t=m,q;if(!k){var n=b.getCommonAncestor(),k=a(m,n),n=a(s,n);k&&(t=k.getNextSourceNode(true));n&&(s=n)}for(t.getPosition(s)==CKEDITOR.POSITION_FOLLOWING&&(t=0);t;){k=false;if(t.equals(s)){t=
null;k=true}else{var w=t.type==CKEDITOR.NODE_ELEMENT?t.getName():null,n=w&&t.getAttribute("contentEditable")=="false",u=w&&t.getAttribute("data-nostyle");if(w&&t.data("cke-bookmark")){t=t.getNextSourceNode(true);continue}if(n&&i&&CKEDITOR.dtd.$block[w])for(var x=t,v=g(x),r=void 0,z=v.length,y=0,x=z&&new CKEDITOR.dom.range(x.getDocument());y<z;++y){var r=v[y],A=CKEDITOR.filter.instances[r.data("cke-filter")];if(A?A.check(this):1){x.selectNodeContents(r);e.call(this,x)}}v=w?!j[w]||u?0:n&&!i?0:(t.getPosition(s)|
D)==D&&(!h.childRule||h.childRule(t)):1;if(v)if((v=t.getParent())&&((v.getDtd()||CKEDITOR.dtd.span)[c]||f)&&(!h.parentRule||h.parentRule(v))){if(!q&&(!w||!CKEDITOR.dtd.$removeEmpty[w]||(t.getPosition(s)|D)==D)){q=b.clone();q.setStartBefore(t)}w=t.type;if(w==CKEDITOR.NODE_TEXT||n||w==CKEDITOR.NODE_ELEMENT&&!t.getChildCount()){for(var w=t,aa;(k=!w.getNext(B))&&(aa=w.getParent(),j[aa.getName()])&&(aa.getPosition(m)|C)==C&&(!h.childRule||h.childRule(aa));)w=aa;q.setEndAfter(w)}}else k=true;else k=true;
t=t.getNextSourceNode(u||n)}if(k&&q&&!q.collapsed){for(var k=o(this,d),n=k.hasAttributes(),u=q.getCommonAncestor(),w={},v={},r={},z={},Y,X,ba;k&&u;){if(u.getName()==c){for(Y in h.attributes)if(!z[Y]&&(ba=u.getAttribute(X)))k.getAttribute(Y)==ba?v[Y]=1:z[Y]=1;for(X in h.styles)if(!r[X]&&(ba=u.getStyle(X)))k.getStyle(X)==ba?w[X]=1:r[X]=1}u=u.getParent()}for(Y in v)k.removeAttribute(Y);for(X in w)k.removeStyle(X);n&&!k.hasAttributes()&&(k=null);if(k){q.extractContents().appendTo(k);q.insertNode(k);p.call(this,
k);k.mergeSiblings();CKEDITOR.env.ie||k.$.normalize()}else{k=new CKEDITOR.dom.element("span");q.extractContents().appendTo(k);q.insertNode(k);p.call(this,k);k.remove(true)}q=null}}b.moveToBookmark(l);b.shrink(CKEDITOR.SHRINK_TEXT);b.shrink(CKEDITOR.NODE_ELEMENT,true)}}function b(a){function b(){for(var a=new CKEDITOR.dom.elementPath(c.getParent()),d=new CKEDITOR.dom.elementPath(i.getParent()),h=null,f=null,e=0;e<a.elements.length;e++){var g=a.elements[e];if(g==a.block||g==a.blockLimit)break;j.checkElementRemovable(g,
true)&&(h=g)}for(e=0;e<d.elements.length;e++){g=d.elements[e];if(g==d.block||g==d.blockLimit)break;j.checkElementRemovable(g,true)&&(f=g)}f&&i.breakParent(f);h&&c.breakParent(h)}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var d=a.createBookmark(),c=d.startNode;if(a.collapsed){for(var h=new CKEDITOR.dom.elementPath(c.getParent(),a.root),f,e=0,g;e<h.elements.length&&(g=h.elements[e]);e++){if(g==h.block||g==h.blockLimit)break;if(this.checkElementRemovable(g)){var k;if(a.collapsed&&(a.checkBoundaryOfElement(g,
CKEDITOR.END)||(k=a.checkBoundaryOfElement(g,CKEDITOR.START)))){f=g;f.match=k?"start":"end"}else{g.mergeSiblings();g.is(this.element)?q.call(this,g):m(g,w(this)[g.getName()])}}}if(f){g=c;for(e=0;;e++){k=h.elements[e];if(k.equals(f))break;else if(k.match)continue;else k=k.clone();k.append(g);g=k}g[f.match=="start"?"insertBefore":"insertAfter"](f)}}else{var i=d.endNode,j=this;b();for(h=c;!h.equals(i);){f=h.getNextSourceNode();if(h.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(h)){h.getName()==
this.element?q.call(this,h):m(h,w(this)[h.getName()]);if(f.type==CKEDITOR.NODE_ELEMENT&&f.contains(c)){b();f=c.getNext()}}h=f}}a.moveToBookmark(d);a.shrink(CKEDITOR.NODE_ELEMENT,true)}function g(a){var b=[];a.forEach(function(a){if(a.getAttribute("contenteditable")=="true"){b.push(a);return false}},CKEDITOR.NODE_ELEMENT,true);return b}function c(a){var b=a.getEnclosedNode()||a.getCommonAncestor(false,true);(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1))&&!a.isReadOnly()&&s(a,
this)}function j(a){var b=a.getCommonAncestor(true,true);if(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1)){var b=this._.definition,d=b.attributes;if(d)for(var c in d)a.removeAttribute(c,d[c]);if(b.styles)for(var h in b.styles)b.styles.hasOwnProperty(h)&&a.removeStyle(h)}}function i(a){var b=a.createBookmark(true),d=a.createIterator();d.enforceRealBlocks=true;if(this._.enterMode)d.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var c,h=a.document,f;c=d.getNextParagraph();)if(!c.isReadOnly()&&
(d.activeFilter?d.activeFilter.check(this):1)){f=o(this,h,c);k(c,f)}a.moveToBookmark(b)}function f(a){var b=a.createBookmark(1),d=a.createIterator();d.enforceRealBlocks=true;d.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var c,h;c=d.getNextParagraph();)if(this.checkElementRemovable(c))if(c.is("pre")){(h=this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&c.copyAttributes(h);k(c,h)}else q.call(this,c);a.moveToBookmark(b)}function k(a,
b){var c=!b;if(c){b=a.getDocument().createElement("div");a.copyAttributes(b)}var f=b&&b.is("pre"),e=a.is("pre"),g=!f&&e;if(f&&!e){e=b;(g=a.getBogus())&&g.remove();g=a.getHtml();g=h(g,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");g=g.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");g=g.replace(/([ \t\n\r]+|&nbsp;)/g," ");g=g.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var k=a.getDocument().createElement("div");k.append(e);e.$.outerHTML="<pre>"+g+"</pre>";e.copyAttributes(k.getFirst());e=k.getFirst().remove()}else e.setHtml(g);
b=e}else g?b=l(c?[a.getHtml()]:d(a),b):a.moveChildren(b);b.replace(a);if(f){var c=b,i;if((i=c.getPrevious(A))&&i.type==CKEDITOR.NODE_ELEMENT&&i.is("pre")){f=h(i.getHtml(),/\n$/,"")+"\n\n"+h(c.getHtml(),/^\n/,"");CKEDITOR.env.ie?c.$.outerHTML="<pre>"+f+"</pre>":c.setHtml(f);i.remove()}}else c&&n(b)}function d(a){var b=[];h(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(a,b,d){return b+"</pre>"+d+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(a,
d){b.push(d)});return b}function h(a,b,d){var c="",h="",a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(a,b,d){b&&(c=b);d&&(h=d);return""});return c+a.replace(b,d)+h}function l(a,b){var d;a.length>1&&(d=new CKEDITOR.dom.documentFragment(b.getDocument()));for(var c=0;c<a.length;c++){var f=a[c],f=f.replace(/(\r\n|\r)/g,"\n"),f=h(f,/^[ \t]*\n/,""),f=h(f,/\n$/,""),f=h(f,/^[ \t]+|[ \t]+$/g,function(a,b){return a.length==1?"&nbsp;":b?" "+CKEDITOR.tools.repeat("&nbsp;",
a.length-1):CKEDITOR.tools.repeat("&nbsp;",a.length-1)+" "}),f=f.replace(/\n/g,"<br>"),f=f.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat("&nbsp;",a.length-1)+" "});if(d){var e=b.clone();e.setHtml(f);d.append(e)}else b.setHtml(f)}return d||b}function q(a,b){var d=this._.definition,c=d.attributes,d=d.styles,h=w(this)[a.getName()],f=CKEDITOR.tools.isEmpty(c)&&CKEDITOR.tools.isEmpty(d),e;for(e in c)if(!((e=="class"||this._.definition.fullMatch)&&a.getAttribute(e)!=u(e,c[e]))&&!(b&&e.slice(0,
5)=="data-")){f=a.hasAttribute(e);a.removeAttribute(e)}for(var g in d)if(!(this._.definition.fullMatch&&a.getStyle(g)!=u(g,d[g],true))){f=f||!!a.getStyle(g);a.removeStyle(g)}m(a,h,v[a.getName()]);f&&(this._.definition.alwaysRemoveElement?n(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!a.hasAttributes()?n(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function p(a){for(var b=w(this),d=a.getElementsByTag(this.element),c,h=d.count();--h>=0;){c=d.getItem(h);
c.isReadOnly()||q.call(this,c,true)}for(var f in b)if(f!=this.element){d=a.getElementsByTag(f);for(h=d.count()-1;h>=0;h--){c=d.getItem(h);c.isReadOnly()||m(c,b[f])}}}function m(a,b,d){if(b=b&&b.attributes)for(var c=0;c<b.length;c++){var h=b[c][0],f;if(f=a.getAttribute(h)){var e=b[c][1];(e===null||e.test&&e.test(f)||typeof e=="string"&&f==e)&&a.removeAttribute(h)}}d||n(a)}function n(a,b){if(!a.hasAttributes()||b)if(CKEDITOR.dtd.$block[a.getName()]){var d=a.getPrevious(A),c=a.getNext(A);d&&(d.type==
CKEDITOR.NODE_TEXT||!d.isBlockBoundary({br:1}))&&a.append("br",1);c&&(c.type==CKEDITOR.NODE_TEXT||!c.isBlockBoundary({br:1}))&&a.append("br");a.remove(true)}else{d=a.getFirst();c=a.getLast();a.remove(true);if(d){d.type==CKEDITOR.NODE_ELEMENT&&d.mergeSiblings();c&&(!d.equals(c)&&c.type==CKEDITOR.NODE_ELEMENT)&&c.mergeSiblings()}}}function o(a,b,d){var c;c=a.element;c=="*"&&(c="span");c=new CKEDITOR.dom.element(c,b);d&&d.copyAttributes(c);c=s(c,a);b.getCustomData("doc_processing_style")&&c.hasAttribute("id")?
c.removeAttribute("id"):b.setCustomData("doc_processing_style",1);return c}function s(a,b){var d=b._.definition,c=d.attributes,d=CKEDITOR.style.getStyleText(d);if(c)for(var h in c)a.setAttribute(h,c[h]);d&&a.setAttribute("style",d);return a}function t(a,b){for(var d in a)a[d]=a[d].replace(z,function(a,d){return b[d]})}function w(a){if(a._.overrides)return a._.overrides;var b=a._.overrides={},d=a._.definition.overrides;if(d){CKEDITOR.tools.isArray(d)||(d=[d]);for(var c=0;c<d.length;c++){var h=d[c],
f,e;if(typeof h=="string")f=h.toLowerCase();else{f=h.element?h.element.toLowerCase():a.element;e=h.attributes}h=b[f]||(b[f]={});if(e){var h=h.attributes=h.attributes||[],g;for(g in e)h.push([g.toLowerCase(),e[g]])}}}return b}function u(a,b,d){var c=new CKEDITOR.dom.element("span");c[d?"setStyle":"setAttribute"](a,b);return c[d?"getStyle":"getAttribute"](a)}function x(a,b,d){for(var c=a.document,h=a.getRanges(),b=b?this.removeFromRange:this.applyToRange,f,e=h.createIterator();f=e.getNextRange();)b.call(this,
f,d);a.selectRanges(h);c.removeCustomData("doc_processing_style")}var v={address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,details:1,datagrid:1,datalist:1},r={a:1,blockquote:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1},y=/\s*(?:;\s*|$)/,z=/#\((.+?)\)/g,B=CKEDITOR.dom.walker.bookmark(0,1),A=CKEDITOR.dom.walker.whitespaces(1);
CKEDITOR.style=function(a,b){if(typeof a.type=="string")return new CKEDITOR.style.customHandlers[a.type](a);var d=a.attributes;if(d&&d.style){a.styles=CKEDITOR.tools.extend({},a.styles,CKEDITOR.tools.parseCssText(d.style));delete d.style}if(b){a=CKEDITOR.tools.clone(a);t(a.attributes,b);t(a.styles,b)}d=this.element=a.element?typeof a.element=="string"?a.element.toLowerCase():a.element:"*";this.type=a.type||(v[d]?CKEDITOR.STYLE_BLOCK:r[d]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE);if(typeof this.element==
"object")this.type=CKEDITOR.STYLE_OBJECT;this._={definition:a}};CKEDITOR.style.prototype={apply:function(a){if(a instanceof CKEDITOR.dom.document)return x.call(this,a.getSelection());if(this.checkApplicable(a.elementPath(),a)){var b=this._.enterMode;if(!b)this._.enterMode=a.activeEnterMode;x.call(this,a.getSelection(),0,a);this._.enterMode=b}},remove:function(a){if(a instanceof CKEDITOR.dom.document)return x.call(this,a.getSelection(),1);if(this.checkApplicable(a.elementPath(),a)){var b=this._.enterMode;
if(!b)this._.enterMode=a.activeEnterMode;x.call(this,a.getSelection(),1,a);this._.enterMode=b}},applyToRange:function(a){this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?e:this.type==CKEDITOR.STYLE_BLOCK?i:this.type==CKEDITOR.STYLE_OBJECT?c:null;return this.applyToRange(a)},removeFromRange:function(a){this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?b:this.type==CKEDITOR.STYLE_BLOCK?f:this.type==CKEDITOR.STYLE_OBJECT?j:null;return this.removeFromRange(a)},applyToObject:function(a){s(a,this)},
checkActive:function(a,b){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(a.block||a.blockLimit,true,b);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var d=a.elements,c=0,h;c<d.length;c++){h=d[c];if(!(this.type==CKEDITOR.STYLE_INLINE&&(h==a.block||h==a.blockLimit))){if(this.type==CKEDITOR.STYLE_OBJECT){var f=h.getName();if(!(typeof this.element=="string"?f==this.element:f in this.element))continue}if(this.checkElementRemovable(h,true,b))return true}}}return false},
checkApplicable:function(a,b,d){b&&b instanceof CKEDITOR.filter&&(d=b);if(d&&!d.check(this))return false;switch(this.type){case CKEDITOR.STYLE_OBJECT:return!!a.contains(this.element);case CKEDITOR.STYLE_BLOCK:return!!a.blockLimit.getDtd()[this.element]}return true},checkElementMatch:function(a,b){var d=this._.definition;if(!a||!d.ignoreReadonly&&a.isReadOnly())return false;var c=a.getName();if(typeof this.element=="string"?c==this.element:c in this.element){if(!b&&!a.hasAttributes())return true;if(c=
d._AC)d=c;else{var c={},h=0,f=d.attributes;if(f)for(var e in f){h++;c[e]=f[e]}if(e=CKEDITOR.style.getStyleText(d)){c.style||h++;c.style=e}c._length=h;d=d._AC=c}if(d._length){for(var g in d)if(g!="_length"){h=a.getAttribute(g)||"";if(g=="style")a:{c=d[g];typeof c=="string"&&(c=CKEDITOR.tools.parseCssText(c));typeof h=="string"&&(h=CKEDITOR.tools.parseCssText(h,true));e=void 0;for(e in c)if(!(e in h&&(h[e]==c[e]||c[e]=="inherit"||h[e]=="inherit"))){c=false;break a}c=true}else c=d[g]==h;if(c){if(!b)return true}else if(b)return false}if(b)return true}else return true}return false},
checkElementRemovable:function(a,b,d){if(this.checkElementMatch(a,b,d))return true;if(b=w(this)[a.getName()]){var c;if(!(b=b.attributes))return true;for(d=0;d<b.length;d++){c=b[d][0];if(c=a.getAttribute(c)){var h=b[d][1];if(h===null)return true;if(typeof h=="string"){if(c==h)return true}else if(h.test(c))return true}}}return false},buildPreview:function(a){var b=this._.definition,d=[],c=b.element;c=="bdo"&&(c="span");var d=["<",c],h=b.attributes;if(h)for(var f in h)d.push(" ",f,'="',h[f],'"');(h=
CKEDITOR.style.getStyleText(b))&&d.push(' style="',h,'"');d.push(">",a||b.name,"</",c,">");return d.join("")},getDefinition:function(){return this._.definition}};CKEDITOR.style.getStyleText=function(a){var b=a._ST;if(b)return b;var b=a.styles,d=a.attributes&&a.attributes.style||"",c="";d.length&&(d=d.replace(y,";"));for(var h in b){var f=b[h],e=(h+":"+f).replace(y,";");f=="inherit"?c=c+e:d=d+e}d.length&&(d=CKEDITOR.tools.normalizeCssText(d,true));return a._ST=d+c};CKEDITOR.style.customHandlers={};
CKEDITOR.style.addCustomHandler=function(a){var b=function(a){this._={definition:a};this.setup&&this.setup(a)};b.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},a,true);return this.customHandlers[a.type]=b};var D=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,C=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(a,e){this.requiredContent=
this.allowedContent=this.style=a;CKEDITOR.tools.extend(this,e,true)},CKEDITOR.styleCommand.prototype.exec=function(a){a.focus();this.state==CKEDITOR.TRISTATE_OFF?a.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&a.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(a,e,b){CKEDITOR.stylesSet.addExternal(a,e,"");CKEDITOR.stylesSet.load(a,
b)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(a,e){var b=this._.styleStateChangeCallbacks;if(!b){b=this._.styleStateChangeCallbacks=[];this.on("selectionChange",function(a){for(var c=0;c<b.length;c++){var e=b[c],i=e.style.checkActive(a.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;e.fn.call(this,i)}})}b.push({style:a,fn:e})},applyStyle:function(a){a.apply(this)},removeStyle:function(a){a.remove(this)},getStylesSet:function(a){if(this._.stylesDefinitions)a(this._.stylesDefinitions);
else{var e=this,b=e.config.stylesCombo_stylesSet||e.config.stylesSet;if(b===false)a(null);else if(b instanceof Array){e._.stylesDefinitions=b;a(b)}else{b||(b="default");var b=b.split(":"),g=b[0];CKEDITOR.stylesSet.addExternal(g,b[1]?b.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(g,function(b){e._.stylesDefinitions=b[g];a(e._.stylesDefinitions)})}}}}),CKEDITOR.dom.comment=function(a,e){typeof a=="string"&&(a=(e?e.$:document).createComment(a));CKEDITOR.dom.domObject.call(this,
a)},CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"<\!--"+this.$.nodeValue+"--\>"}}),"use strict",function(){var a={},e={},b;for(b in CKEDITOR.dtd.$blockLimit)b in CKEDITOR.dtd.$list||(a[b]=1);for(b in CKEDITOR.dtd.$block)b in CKEDITOR.dtd.$blockLimit||b in CKEDITOR.dtd.$empty||(e[b]=1);CKEDITOR.dom.elementPath=function(b,c){var j=null,i=null,f=[],k=b,d,c=c||b.getDocument().getBody();
do if(k.type==CKEDITOR.NODE_ELEMENT){f.push(k);if(!this.lastElement){this.lastElement=k;if(k.is(CKEDITOR.dtd.$object)||k.getAttribute("contenteditable")=="false")continue}if(k.equals(c))break;if(!i){d=k.getName();k.getAttribute("contenteditable")=="true"?i=k:!j&&e[d]&&(j=k);if(a[d]){var h;if(h=!j){if(d=d=="div"){a:{d=k.getChildren();h=0;for(var l=d.count();h<l;h++){var q=d.getItem(h);if(q.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[q.getName()]){d=true;break a}}d=false}d=!d}h=d}h?j=k:i=k}}}while(k=
k.getParent());i||(i=c);this.block=j;this.blockLimit=i;this.root=c;this.elements=f}}(),CKEDITOR.dom.elementPath.prototype={compare:function(a){var e=this.elements,a=a&&a.elements;if(!a||e.length!=a.length)return false;for(var b=0;b<e.length;b++)if(!e[b].equals(a[b]))return false;return true},contains:function(a,e,b){var g;typeof a=="string"&&(g=function(b){return b.getName()==a});a instanceof CKEDITOR.dom.element?g=function(b){return b.equals(a)}:CKEDITOR.tools.isArray(a)?g=function(b){return CKEDITOR.tools.indexOf(a,
b.getName())>-1}:typeof a=="function"?g=a:typeof a=="object"&&(g=function(b){return b.getName()in a});var c=this.elements,j=c.length;e&&j--;if(b){c=Array.prototype.slice.call(c,0);c.reverse()}for(e=0;e<j;e++)if(g(c[e]))return c[e];return null},isContextFor:function(a){var e;if(a in CKEDITOR.dtd.$block){e=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit;return!!e.getDtd()[a]}return true},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},
CKEDITOR.dom.text=function(a,e){typeof a=="string"&&(a=(e?e.$:document).createTextNode(a));this.$=a},CKEDITOR.dom.text.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(a){this.$.nodeValue=a},split:function(a){var e=this.$.parentNode,b=e.childNodes.length,g=this.getLength(),c=this.getDocument(),j=new CKEDITOR.dom.text(this.$.splitText(a),
c);if(e.childNodes.length==b)if(a>=g){j=c.createText("");j.insertAfter(this)}else{a=c.createText("");a.insertAfter(j);a.remove()}return j},substring:function(a,e){return typeof e!="number"?this.$.nodeValue.substr(a):this.$.nodeValue.substring(a,e)}}),function(){function a(a,e,c){var j=a.serializable,i=e[c?"endContainer":"startContainer"],f=c?"endOffset":"startOffset",k=j?e.document.getById(a.startNode):a.startNode,a=j?e.document.getById(a.endNode):a.endNode;if(i.equals(k.getPrevious())){e.startOffset=
e.startOffset-i.getLength()-a.getPrevious().getLength();i=a.getNext()}else if(i.equals(a.getPrevious())){e.startOffset=e.startOffset-i.getLength();i=a.getNext()}i.equals(k.getParent())&&e[f]++;i.equals(a.getParent())&&e[f]++;e[c?"endContainer":"startContainer"]=i;return e}CKEDITOR.dom.rangeList=function(a){if(a instanceof CKEDITOR.dom.rangeList)return a;a?a instanceof CKEDITOR.dom.range&&(a=[a]):a=[];return CKEDITOR.tools.extend(a,e)};var e={createIterator:function(){var a=this,e=CKEDITOR.dom.walker.bookmark(),
c=[],j;return{getNextRange:function(i){j=j===void 0?0:j+1;var f=a[j];if(f&&a.length>1){if(!j)for(var k=a.length-1;k>=0;k--)c.unshift(a[k].createBookmark(true));if(i)for(var d=0;a[j+d+1];){for(var h=f.document,i=0,k=h.getById(c[d].endNode),h=h.getById(c[d+1].startNode);;){k=k.getNextSourceNode(false);if(h.equals(k))i=1;else if(e(k)||k.type==CKEDITOR.NODE_ELEMENT&&k.isBlockBoundary())continue;break}if(!i)break;d++}for(f.moveToBookmark(c.shift());d--;){k=a[++j];k.moveToBookmark(c.shift());f.setEnd(k.endContainer,
k.endOffset)}}return f}}},createBookmarks:function(b){for(var e=[],c,j=0;j<this.length;j++){e.push(c=this[j].createBookmark(b,true));for(var i=j+1;i<this.length;i++){this[i]=a(c,this[i]);this[i]=a(c,this[i],true)}}return e},createBookmarks2:function(a){for(var e=[],c=0;c<this.length;c++)e.push(this[c].createBookmark2(a));return e},moveToBookmarks:function(a){for(var e=0;e<this.length;e++)this[e].moveToBookmark(a[e])}}}(),function(){function a(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||
"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function e(b){var c=CKEDITOR.skin["ua_"+b],e=CKEDITOR.env;if(c)for(var c=c.split(",").sort(function(a,b){return a>b?-1:1}),f=0,g;f<c.length;f++){g=c[f];if(e.ie&&(g.replace(/^ie/,"")==e.version||e.quirks&&g=="iequirks"))g="ie";if(e[g]){b=b+("_"+c[f]);break}}return CKEDITOR.getUrl(a()+b+".css")}function b(a,b){if(!j[a]){CKEDITOR.document.appendStyleSheet(e(a));j[a]=1}b&&b()}function g(a){var b=a.getById(i);if(!b){b=a.getHead().append("style");b.setAttribute("id",
i);b.setAttribute("type","text/css")}return b}function c(a,b,c){var e,f,g;if(CKEDITOR.env.webkit){b=b.split("}").slice(0,-1);for(f=0;f<b.length;f++)b[f]=b[f].split("{")}for(var k=0;k<a.length;k++)if(CKEDITOR.env.webkit)for(f=0;f<b.length;f++){g=b[f][1];for(e=0;e<c.length;e++)g=g.replace(c[e][0],c[e][1]);a[k].$.sheet.addRule(b[f][0],g)}else{g=b;for(e=0;e<c.length;e++)g=g.replace(c[e][0],c[e][1]);CKEDITOR.env.ie&&CKEDITOR.env.version<11?a[k].$.styleSheet.cssText=a[k].$.styleSheet.cssText+g:a[k].$.innerHTML=
a[k].$.innerHTML+g}}var j={};CKEDITOR.skin={path:a,loadPart:function(d,c){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(a()+"skin.js"),function(){b(d,c)}):b(d,c)},getPath:function(a){return CKEDITOR.getUrl(e(a))},icons:{},addIcon:function(a,b,c,e){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:b,offset:c||0,bgsize:e||"16px"})},getIconStyle:function(a,b,c,e,f){var g;if(a){a=a.toLowerCase();b&&(g=this.icons[a+"-rtl"]);g||(g=this.icons[a])}a=c||
g&&g.path||"";e=e||g&&g.offset;f=f||g&&g.bgsize||"16px";return a&&"background-image:url("+CKEDITOR.getUrl(a)+");background-position:0 "+e+"px;background-size:"+f+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(a){var b=g(CKEDITOR.document);return(this.setUiColor=function(a){this.uiColor=a;var d=CKEDITOR.skin.chameleon,e="",g="";if(typeof d=="function"){e=d(this,"editor");g=d(this,"panel")}a=[[k,a]];c([b],e,a);c(f,g,a)}).call(this,
a)}});var i="cke_ui_color",f=[],k=/\$color/g;CKEDITOR.on("instanceLoaded",function(a){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var b=a.editor,a=function(a){a=(a.data[0]||a.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument();if(!a.getById("cke_ui_color")){a=g(a);f.push(a);var d=b.getUiColor();d&&c([a],CKEDITOR.skin.chameleon(b,"panel"),[[k,d]])}};b.on("panelShow",a);b.on("menuShow",a);b.config.uiColor&&b.setUiColor(b.config.uiColor)}})}(),function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=
false;else{var a=CKEDITOR.dom.element.createFromHtml('<div style="width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"></div>',CKEDITOR.document);a.appendTo(CKEDITOR.document.getHead());try{var e=a.getComputedStyle("border-top-color"),b=a.getComputedStyle("border-right-color");CKEDITOR.env.hc=!!(e&&e==b)}catch(g){CKEDITOR.env.hc=false}a.remove()}if(CKEDITOR.env.hc)CKEDITOR.env.cssClass=CKEDITOR.env.cssClass+" cke_hc";CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}");
CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(a=CKEDITOR._.pending){delete CKEDITOR._.pending;for(e=0;e<a.length;e++){CKEDITOR.editor.prototype.constructor.apply(a[e][0],a[e][1]);CKEDITOR.add(a[e][0])}}}(),CKEDITOR.skin.name="moono",CKEDITOR.skin.ua_editor="ie,iequirks,ie7,ie8,gecko",CKEDITOR.skin.ua_dialog="ie,iequirks,ie7,ie8",CKEDITOR.skin.chameleon=function(){var a=function(){return function(a,b){for(var e=a.match(/[^#]./g),i=0;i<3;i++){var f=e,k=i,d;d=parseInt(e[i],16);d=("0"+(b<0?
0|d*(1+b):0|d+(255-d)*b).toString(16)).slice(-2);f[k]=d}return"#"+e.join("")}}(),e=function(){var a=new CKEDITOR.template("background:#{to};background-image:linear-gradient(to bottom,{from},{to});filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='{from}',endColorstr='{to}');");return function(b,e){return a.output({from:b,to:e})}}(),b={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ {defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_bottom [{defaultGradient}border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [{defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [{defaultGradient}outline-color:{defaultBorder};border-top-color:{defaultBorder};] {id} .cke_dialog_tab [{lightGradient}border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [{mediumGradient}] {id} .cke_dialog_contents [border-top-color:{defaultBorder};] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [background:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};] {id} .cke_toolgroup [{lightGradient}border-color:{defaultBorder};] {id} a.cke_button_off:hover, {id} a.cke_button_off:focus, {id} a.cke_button_off:active [{mediumGradient}] {id} .cke_button_on [{ckeButtonOn}] {id} .cke_toolbar_separator [background-color: {ckeToolbarSeparator};] {id} .cke_combo_button [border-color:{defaultBorder};{lightGradient}] {id} a.cke_combo_button:hover, {id} a.cke_combo_button:focus, {id} .cke_combo_on a.cke_combo_button [border-color:{defaultBorder};{mediumGradient}] {id} .cke_path_item [color:{elementsPathColor};] {id} a.cke_path_item:hover, {id} a.cke_path_item:focus, {id} a.cke_path_item:active [background-color:{elementsPathBg};] {id}.cke_panel [border-color:{defaultBorder};] "),
panel:new CKEDITOR.template(".cke_panel_grouptitle [{lightGradient}border-color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .cke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background-color:{menubuttonIconHover};] .cke_menuseparator [background-color:{menubuttonIcon};] a:hover.cke_colorbox, a:focus.cke_colorbox, a:active.cke_colorbox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_colormore, a:focus.cke_colorauto, a:focus.cke_colormore, a:active.cke_colorauto, a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defaultBorder};] ")};
return function(g,c){var j=g.uiColor,j={id:"."+g.id,defaultBorder:a(j,-0.1),defaultGradient:e(a(j,0.9),j),lightGradient:e(a(j,1),a(j,0.7)),mediumGradient:e(a(j,0.8),a(j,0.5)),ckeButtonOn:e(a(j,0.6),a(j,0.7)),ckeResizer:a(j,-0.4),ckeToolbarSeparator:a(j,0.5),ckeColorauto:a(j,0.8),dialogBody:a(j,0.7),dialogTabSelected:e("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:a(j,-0.6),elementsPathBg:j,menubuttonIcon:a(j,0.5),menubuttonIconHover:a(j,0.3)};return b[c].output(j).replace(/\[/g,
"{").replace(/\]/g,"}")}}(),CKEDITOR.plugins.add("dialogui",{onLoad:function(){var a=function(a){this._||(this._={});this._["default"]=this._.initValue=a["default"]||"";this._.required=a.required||false;for(var b=[this._],c=1;c<arguments.length;c++)b.push(arguments[c]);b.push(true);CKEDITOR.tools.extend.apply(CKEDITOR.tools,b);return this._},e={build:function(a,b,c){return new CKEDITOR.ui.dialog.textInput(a,b,c)}},b={build:function(a,b,c){return new CKEDITOR.ui.dialog[b.type](a,b,c)}},g={isChanged:function(){return this.getValue()!=
this.getInitValue()},reset:function(a){this.setValue(this.getInitValue(),a)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._["default"]},getInitValue:function(){return this._.initValue}},c=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(a,b){if(!this._.domOnChangeRegistered){a.on("load",function(){this.getInputElement().on("change",function(){a.parts.dialog.isVisible()&&this.fire("change",
{value:this.getValue()})},this)},this);this._.domOnChangeRegistered=true}this.on("change",b)}},true),j=/^on([A-Z]\w+)/,i=function(a){for(var b in a)(j.test(b)||b=="title"||b=="type")&&delete a[b];return a},f=function(a){a=a.data.getKeystroke();a==CKEDITOR.SHIFT+CKEDITOR.ALT+36?this.setDirectionMarker("ltr"):a==CKEDITOR.SHIFT+CKEDITOR.ALT+35&&this.setDirectionMarker("rtl")};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(b,d,c,e){if(!(arguments.length<4)){var f=a.call(this,d);f.labelId=
CKEDITOR.tools.getNextId()+"_label";this._.children=[];var g={role:d.role||"presentation"};if(d.includeLabel)g["aria-labelledby"]=f.labelId;CKEDITOR.ui.dialog.uiElement.call(this,b,d,c,"div",null,g,function(){var a=[],c=d.required?" cke_required":"";if(d.labelLayout!="horizontal")a.push('<label class="cke_dialog_ui_labeled_label'+c+'" ',' id="'+f.labelId+'"',f.inputId?' for="'+f.inputId+'"':"",(d.labelStyle?' style="'+d.labelStyle+'"':"")+">",d.label,"</label>",'<div class="cke_dialog_ui_labeled_content"',
d.controlStyle?' style="'+d.controlStyle+'"':"",' role="presentation">',e.call(this,b,d),"</div>");else{c={type:"hbox",widths:d.widths,padding:0,children:[{type:"html",html:'<label class="cke_dialog_ui_labeled_label'+c+'" id="'+f.labelId+'" for="'+f.inputId+'"'+(d.labelStyle?' style="'+d.labelStyle+'"':"")+">"+CKEDITOR.tools.htmlEncode(d.label)+"</label>"},{type:"html",html:'<span class="cke_dialog_ui_labeled_content"'+(d.controlStyle?' style="'+d.controlStyle+'"':"")+">"+e.call(this,b,d)+"</span>"}]};
CKEDITOR.dialog._.uiElementBuilders.hbox.build(b,c,a)}return a.join("")})}},textInput:function(b,d,c){if(!(arguments.length<3)){a.call(this,d);var e=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",g={"class":"cke_dialog_ui_input_"+d.type,id:e,type:d.type};if(d.validate)this.validate=d.validate;if(d.maxLength)g.maxlength=d.maxLength;if(d.size)g.size=d.size;if(d.inputStyle)g.style=d.inputStyle;var i=this,j=false;b.on("load",function(){i.getInputElement().on("keydown",function(a){a.data.getKeystroke()==
13&&(j=true)});i.getInputElement().on("keyup",function(a){if(a.data.getKeystroke()==13&&j){b.getButton("ok")&&setTimeout(function(){b.getButton("ok").click()},0);j=false}i.bidi&&f.call(i,a)},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,b,d,c,function(){var a=['<div class="cke_dialog_ui_input_',d.type,'" role="presentation"'];d.width&&a.push('style="width:'+d.width+'" ');a.push("><input ");g["aria-labelledby"]=this._.labelId;this._.required&&(g["aria-required"]=this._.required);for(var b in g)a.push(b+
'="'+g[b]+'" ');a.push(" /></div>");return a.join("")})}},textarea:function(b,d,c){if(!(arguments.length<3)){a.call(this,d);var e=this,g=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",i={};if(d.validate)this.validate=d.validate;i.rows=d.rows||5;i.cols=d.cols||20;i["class"]="cke_dialog_ui_input_textarea "+(d["class"]||"");if(typeof d.inputStyle!="undefined")i.style=d.inputStyle;if(d.dir)i.dir=d.dir;if(e.bidi)b.on("load",function(){e.getInputElement().on("keyup",f)},e);CKEDITOR.ui.dialog.labeledElement.call(this,
b,d,c,function(){i["aria-labelledby"]=this._.labelId;this._.required&&(i["aria-required"]=this._.required);var a=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',g,'" '],b;for(b in i)a.push(b+'="'+CKEDITOR.tools.htmlEncode(i[b])+'" ');a.push(">",CKEDITOR.tools.htmlEncode(e._["default"]),"</textarea></div>");return a.join("")})}},checkbox:function(b,d,c){if(!(arguments.length<3)){var e=a.call(this,d,{"default":!!d["default"]});if(d.validate)this.validate=d.validate;CKEDITOR.ui.dialog.uiElement.call(this,
b,d,c,"span",null,null,function(){var a=CKEDITOR.tools.extend({},d,{id:d.id?d.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},true),c=[],h=CKEDITOR.tools.getNextId()+"_label",f={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":h};i(a);if(d["default"])f.checked="checked";if(typeof a.inputStyle!="undefined")a.style=a.inputStyle;e.checkbox=new CKEDITOR.ui.dialog.uiElement(b,a,c,"input",null,f);c.push(' <label id="',h,'" for="',f.id,'"'+(d.labelStyle?' style="'+d.labelStyle+
'"':"")+">",CKEDITOR.tools.htmlEncode(d.label),"</label>");return c.join("")})}},radio:function(b,d,c){if(!(arguments.length<3)){a.call(this,d);if(!this._["default"])this._["default"]=this._.initValue=d.items[0][1];if(d.validate)this.validate=d.validate;var e=[],f=this;d.role="radiogroup";d.includeLabel=true;CKEDITOR.ui.dialog.labeledElement.call(this,b,d,c,function(){for(var a=[],c=[],h=(d.id?d.id:CKEDITOR.tools.getNextId())+"_radio",g=0;g<d.items.length;g++){var j=d.items[g],t=j[2]!==void 0?j[2]:
j[0],w=j[1]!==void 0?j[1]:j[0],u=CKEDITOR.tools.getNextId()+"_radio_input",x=u+"_label",u=CKEDITOR.tools.extend({},d,{id:u,title:null,type:null},true),t=CKEDITOR.tools.extend({},u,{title:t},true),v={type:"radio","class":"cke_dialog_ui_radio_input",name:h,value:w,"aria-labelledby":x},r=[];if(f._["default"]==w)v.checked="checked";i(u);i(t);if(typeof u.inputStyle!="undefined")u.style=u.inputStyle;u.keyboardFocusable=true;e.push(new CKEDITOR.ui.dialog.uiElement(b,u,r,"input",null,v));r.push(" ");new CKEDITOR.ui.dialog.uiElement(b,
t,r,"label",null,{id:x,"for":v.id},j[0]);a.push(r.join(""))}new CKEDITOR.ui.dialog.hbox(b,e,a,c);return c.join("")});this._.children=e}},button:function(b,d,c){if(arguments.length){typeof d=="function"&&(d=d(b.getParentEditor()));a.call(this,d,{disabled:d.disabled||false});CKEDITOR.event.implementOn(this);var e=this;b.on("load",function(){var a=this.getElement();(function(){a.on("click",function(a){e.click();a.data.preventDefault()});a.on("keydown",function(a){if(a.data.getKeystroke()in{32:1}){e.click();
a.data.preventDefault()}})})();a.unselectable()},this);var f=CKEDITOR.tools.extend({},d);delete f.style;var g=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,b,f,c,"a",null,{style:d.style,href:"javascript:void(0)",title:d.label,hidefocus:"true","class":d["class"],role:"button","aria-labelledby":g},'<span id="'+g+'" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(d.label)+"</span>")}},select:function(b,d,c){if(!(arguments.length<3)){var e=a.call(this,d);if(d.validate)this.validate=
d.validate;e.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,b,d,c,function(){var a=CKEDITOR.tools.extend({},d,{id:d.id?d.id+"_select":CKEDITOR.tools.getNextId()+"_select"},true),c=[],h=[],f={id:e.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};c.push('<div class="cke_dialog_ui_input_',d.type,'" role="presentation"');d.width&&c.push('style="width:'+d.width+'" ');c.push(">");if(d.size!==void 0)f.size=d.size;if(d.multiple!==void 0)f.multiple=
d.multiple;i(a);for(var g=0,j;g<d.items.length&&(j=d.items[g]);g++)h.push('<option value="',CKEDITOR.tools.htmlEncode(j[1]!==void 0?j[1]:j[0]).replace(/"/g,"&quot;"),'" /> ',CKEDITOR.tools.htmlEncode(j[0]));if(typeof a.inputStyle!="undefined")a.style=a.inputStyle;e.select=new CKEDITOR.ui.dialog.uiElement(b,a,c,"select",null,f,h.join(""));c.push("</div>");return c.join("")})}},file:function(b,d,c){if(!(arguments.length<3)){d["default"]===void 0&&(d["default"]="");var e=CKEDITOR.tools.extend(a.call(this,
d),{definition:d,buttons:[]});if(d.validate)this.validate=d.validate;b.on("load",function(){CKEDITOR.document.getById(e.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,b,d,c,function(){e.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var a=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="',e.frameId,'" title="',d.label,'" src="javascript:void('];a.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+
CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0");a.push(')"></iframe>');return a.join("")})}},fileButton:function(b,d,c){var e=this;if(!(arguments.length<3)){a.call(this,d);if(d.validate)this.validate=d.validate;var f=CKEDITOR.tools.extend({},d),g=f.onClick;f.className=(f.className?f.className+" ":"")+"cke_dialog_ui_button";f.onClick=function(a){var c=d["for"];if(!g||g.call(this,a)!==false){b.getContentElement(c[0],c[1]).submit();this.disable()}};b.on("load",function(){b.getContentElement(d["for"][0],
d["for"][1])._.buttons.push(e)});CKEDITOR.ui.dialog.button.call(this,b,f,c)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,b=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,c=/\/$/;return function(e,f,g){if(!(arguments.length<3)){var i=[],j=f.html;j.charAt(0)!="<"&&(j="<span>"+j+"</span>");var o=f.focus;if(o){var s=this.focus;this.focus=function(){(typeof o=="function"?o:s).call(this);this.fire("focus")};if(f.isFocusable)this.isFocusable=this.isFocusable;this.keyboardFocusable=true}CKEDITOR.ui.dialog.uiElement.call(this,
e,f,i,"span",null,null,"");i=i.join("").match(a);j=j.match(b)||["","",""];if(c.test(j[1])){j[1]=j[1].slice(0,-1);j[2]="/"+j[2]}g.push([j[1]," ",i[1]||"",j[2]].join(""))}}}(),fieldset:function(a,b,c,e,f){var g=f.label;this._={children:b};CKEDITOR.ui.dialog.uiElement.call(this,a,f,e,"fieldset",null,null,function(){var a=[];g&&a.push("<legend"+(f.labelStyle?' style="'+f.labelStyle+'"':"")+">"+g+"</legend>");for(var b=0;b<c.length;b++)a.push(c[b]);return a.join("")})}},true);CKEDITOR.ui.dialog.html.prototype=
new CKEDITOR.ui.dialog.uiElement;CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setLabel:function(a){var b=CKEDITOR.document.getById(this._.labelId);b.getChildCount()<1?(new CKEDITOR.dom.text(a,CKEDITOR.document)).appendTo(b):b.getChild(0).$.nodeValue=a;return this},getLabel:function(){var a=CKEDITOR.document.getById(this._.labelId);return!a||a.getChildCount()<1?"":a.getChild(0).getText()},eventProcessors:c},true);CKEDITOR.ui.dialog.button.prototype=
CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return!this._.disabled?this.fire("click",{dialog:this._.dialog}):false},enable:function(){this._.disabled=false;var a=this.getElement();a&&a.removeClass("cke_disabled")},disable:function(){this._.disabled=true;this.getElement().addClass("cke_disabled")},isVisible:function(){return this.getElement().getFirst().isVisible()},isEnabled:function(){return!this._.disabled},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,
{onClick:function(a,b){this.on("click",function(){b.apply(this,arguments)})}},true),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:true},true);CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)},focus:function(){var a=this.selectParentTab();setTimeout(function(){var b=a.getInputElement();b&&b.$.focus()},0)},select:function(){var a=
this.selectParentTab();setTimeout(function(){var b=a.getInputElement();if(b){b.$.focus();b.$.select()}},0)},accessKeyUp:function(){this.select()},setValue:function(a){if(this.bidi){var b=a&&a.charAt(0);(b=b=="‪"?"ltr":b=="‫"?"rtl":null)&&(a=a.slice(1));this.setDirectionMarker(b)}a||(a="");return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},getValue:function(){var a=CKEDITOR.ui.dialog.uiElement.prototype.getValue.call(this);if(this.bidi&&a){var b=this.getDirectionMarker();
b&&(a=(b=="ltr"?"‪":"‫")+a)}return a},setDirectionMarker:function(a){var b=this.getInputElement();a?b.setAttributes({dir:a,"data-cke-dir-marker":a}):this.getDirectionMarker()&&b.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:true},g,true);CKEDITOR.ui.dialog.textarea.prototype=new CKEDITOR.ui.dialog.textInput;CKEDITOR.ui.dialog.select.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,
{getInputElement:function(){return this._.select.getElement()},add:function(a,b,c){var e=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),f=this.getInputElement().$;e.$.text=a;e.$.value=b===void 0||b===null?a:b;c===void 0||c===null?CKEDITOR.env.ie?f.add(e.$):f.add(e.$,null):f.add(e.$,c);return this},remove:function(a){this.getInputElement().$.remove(a);return this},clear:function(){for(var a=this.getInputElement().$;a.length>0;)a.remove(0);return this},keyboardFocusable:true},
g,true);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(a,b){this.getInputElement().$.checked=a;!b&&this.fire("change",{value:a})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(a,b){if(!CKEDITOR.env.ie||CKEDITOR.env.version>8)return c.onChange.apply(this,arguments);a.on("load",
function(){var a=this._.checkbox.getElement();a.on("propertychange",function(b){b=b.data.$;b.propertyName=="checked"&&this.fire("change",{value:a.$.checked})},this)},this);this.on("change",b);return null}},keyboardFocusable:true},g,true);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(a,b){for(var c=this._.children,e,f=0;f<c.length&&(e=c[f]);f++)e.getElement().$.checked=e.getValue()==a;!b&&this.fire("change",{value:a})},getValue:function(){for(var a=
this._.children,b=0;b<a.length;b++)if(a[b].getElement().$.checked)return a[b].getValue();return null},accessKeyUp:function(){var a=this._.children,b;for(b=0;b<a.length;b++)if(a[b].getElement().$.checked){a[b].getElement().focus();return}a[0].getElement().focus()},eventProcessors:{onChange:function(a,b){if(CKEDITOR.env.ie){a.on("load",function(){for(var a=this._.children,b=this,d=0;d<a.length;d++)a[d].getElement().on("propertychange",function(a){a=a.data.$;a.propertyName=="checked"&&this.$.checked&&
b.fire("change",{value:this.getAttribute("value")})})},this);this.on("change",b)}else return c.onChange.apply(this,arguments);return null}}},g,true);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,g,{getInputElement:function(){var a=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return a.$.forms.length>0?new CKEDITOR.dom.element(a.$.forms[0].elements[0]):this.getElement()},submit:function(){this.getInputElement().getParent().$.submit();return this},
getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(a){var b=/^on([A-Z]\w+)/,c,e=function(a,b,d,c){a.on("formLoaded",function(){a.getInputElement().on(d,c,a)})},f;for(f in a)if(c=f.match(b))this.eventProcessors[f]?this.eventProcessors[f].call(this,this._.dialog,a[f]):e(this,this._.dialog,c[1].toLowerCase(),a[f]);return this},reset:function(){function a(){c.$.open();var k="";e.size&&(k=e.size-(CKEDITOR.env.ie?7:0));var t=b.frameId+"_input";c.$.write(['<html dir="'+
j+'" lang="'+o+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+j+'" lang="'+o+'" action="',CKEDITOR.tools.htmlEncode(e.action),'"><label id="',b.labelId,'" for="',t,'" style="display:none">',CKEDITOR.tools.htmlEncode(e.label),'</label><input style="width:100%" id="',t,'" aria-labelledby="',b.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(e.id||"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(k>
0?k:""),'" /></form></body></html><script>',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+g+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+i+")}","<\/script>"].join(""));c.$.close();for(k=0;k<f.length;k++)f[k].enable()}var b=this._,c=CKEDITOR.document.getById(b.frameId).getFrameDocument(),e=b.definition,f=b.buttons,g=this.formLoadedNumber,i=this.formUnloadNumber,j=b.dialog._.editor.lang.dir,o=b.dialog._.editor.langCode;
if(!g){g=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this);i=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this);this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(g);CKEDITOR.tools.removeFunction(i)})}CKEDITOR.env.gecko?setTimeout(a,500):a()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(a,
b){if(!this._.domOnChangeRegistered){this.on("formLoaded",function(){this.getInputElement().on("change",function(){this.fire("change",{value:this.getValue()})},this)},this);this._.domOnChangeRegistered=true}this.on("change",b)}},keyboardFocusable:true},true);CKEDITOR.ui.dialog.fileButton.prototype=new CKEDITOR.ui.dialog.button;CKEDITOR.ui.dialog.fieldset.prototype=CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype);CKEDITOR.dialog.addUIElement("text",e);CKEDITOR.dialog.addUIElement("password",
e);CKEDITOR.dialog.addUIElement("textarea",b);CKEDITOR.dialog.addUIElement("checkbox",b);CKEDITOR.dialog.addUIElement("radio",b);CKEDITOR.dialog.addUIElement("button",b);CKEDITOR.dialog.addUIElement("select",b);CKEDITOR.dialog.addUIElement("file",b);CKEDITOR.dialog.addUIElement("fileButton",b);CKEDITOR.dialog.addUIElement("html",b);CKEDITOR.dialog.addUIElement("fieldset",{build:function(a,b,c){for(var e=b.children,f,g=[],i=[],j=0;j<e.length&&(f=e[j]);j++){var o=[];g.push(o);i.push(CKEDITOR.dialog._.uiElementBuilders[f.type].build(a,
f,o))}return new CKEDITOR.ui.dialog[b.type](a,i,g,c,b)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,CKEDITOR.DIALOG_STATE_IDLE=1,CKEDITOR.DIALOG_STATE_BUSY=2,function(){function a(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+a,d=b-1;d>b-a;d--)if(this._.tabs[this._.tabIdList[d%a]][0].$.offsetHeight)return this._.tabIdList[d%a];return null}function e(){for(var a=
this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),d=b+1;d<b+a;d++)if(this._.tabs[this._.tabIdList[d%a]][0].$.offsetHeight)return this._.tabIdList[d%a];return null}function b(a,b){for(var d=a.$.getElementsByTagName("input"),c=0,h=d.length;c<h;c++){var e=new CKEDITOR.dom.element(d[c]);if(e.getAttribute("type").toLowerCase()=="text")if(b){e.setAttribute("value",e.getCustomData("fake_value")||"");e.removeCustomData("fake_value")}else{e.setCustomData("fake_value",e.getAttribute("value"));
e.setAttribute("value","")}}}function g(a,b){var d=this.getInputElement();d&&(a?d.removeAttribute("aria-invalid"):d.setAttribute("aria-invalid",true));a||(this.select?this.select():this.focus());b&&alert(b);this.fire("validated",{valid:a,msg:b})}function c(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")}function j(a){var b=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",n).output({id:CKEDITOR.tools.getNextNumber(),editorId:a.id,langDir:a.lang.dir,langCode:a.langCode,
editorDialogClass:"cke_editor_"+a.name.replace(/\./g,"\\.")+"_dialog",closeTitle:a.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""})),d=b.getChild([0,0,0,0,0]),c=d.getChild(0),h=d.getChild(1);a.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(d);if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks&&!CKEDITOR.env.edge){a="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())";CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+
a+'" tabIndex="-1"></iframe>').appendTo(d.getParent())}c.unselectable();h.unselectable();return{element:b,parts:{dialog:b.getChild(0),title:c,close:h,tabs:d.getChild(2),contents:d.getChild([3,0,0,0]),footer:d.getChild([3,0,1,0])}}}function i(a,b,d){this.element=b;this.focusIndex=d;this.tabIndex=0;this.isFocusable=function(){return!b.getAttribute("disabled")&&b.isVisible()};this.focus=function(){a._.currentFocusIndex=this.focusIndex;this.element.focus()};b.on("keydown",function(a){a.data.getKeystroke()in
{32:1,13:1}&&this.fire("click")});b.on("focus",function(){this.fire("mouseover")});b.on("blur",function(){this.fire("mouseout")})}function f(a){function b(){a.layout()}var d=CKEDITOR.document.getWindow();d.on("resize",b);a.on("hide",function(){d.removeListener("resize",b)})}function k(a,b){this._={dialog:a};CKEDITOR.tools.extend(this,b)}function d(a){function b(d){var i=a.getSize(),j=CKEDITOR.document.getWindow().getViewPaneSize(),k=d.data.$.screenX,l=d.data.$.screenY,o=k-c.x,s=l-c.y;c={x:k,y:l};
h.x=h.x+o;h.y=h.y+s;a.move(h.x+g[3]<f?-g[3]:h.x-g[1]>j.width-i.width-f?j.width-i.width+(e.lang.dir=="rtl"?0:g[1]):h.x,h.y+g[0]<f?-g[0]:h.y-g[2]>j.height-i.height-f?j.height-i.height+g[2]:h.y,1);d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mousemove",b);CKEDITOR.document.removeListener("mouseup",d);if(CKEDITOR.env.ie6Compat){var a=r.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",d)}}var c=null,h=null,e=a.getParentEditor(),f=e.config.dialog_magnetDistance,
g=CKEDITOR.skin.margins||[0,0,0,0];typeof f=="undefined"&&(f=20);a.parts.title.on("mousedown",function(e){c={x:e.data.$.screenX,y:e.data.$.screenY};CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",d);h=a.getPosition();if(CKEDITOR.env.ie6Compat){var f=r.getChild(0).getFrameDocument();f.on("mousemove",b);f.on("mouseup",d)}e.data.preventDefault()},a)}function h(a){var b,d;function c(h){var o=g.lang.dir=="rtl",s=l.width,m=l.height,t=s+(h.data.$.screenX-b)*(o?-1:1)*(a._.moved?1:2),p=
m+(h.data.$.screenY-d)*(a._.moved?1:2),n=a._.element.getFirst(),n=o&&n.getComputedStyle("right"),q=a.getPosition();q.y+p>k.height&&(p=k.height-q.y);if((o?n:q.x)+t>k.width)t=k.width-(o?n:q.x);if(f==CKEDITOR.DIALOG_RESIZE_WIDTH||f==CKEDITOR.DIALOG_RESIZE_BOTH)s=Math.max(e.minWidth||0,t-i);if(f==CKEDITOR.DIALOG_RESIZE_HEIGHT||f==CKEDITOR.DIALOG_RESIZE_BOTH)m=Math.max(e.minHeight||0,p-j);a.resize(s,m);a._.moved||a.layout();h.data.preventDefault()}function h(){CKEDITOR.document.removeListener("mouseup",
h);CKEDITOR.document.removeListener("mousemove",c);if(o){o.remove();o=null}if(CKEDITOR.env.ie6Compat){var a=r.getChild(0).getFrameDocument();a.removeListener("mouseup",h);a.removeListener("mousemove",c)}}var e=a.definition,f=e.resizable;if(f!=CKEDITOR.DIALOG_RESIZE_NONE){var g=a.getParentEditor(),i,j,k,l,o,s=CKEDITOR.tools.addFunction(function(e){l=a.getSize();var f=a.parts.contents;if(f.$.getElementsByTagName("iframe").length){o=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>');
f.append(o)}j=l.height-a.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks));i=l.width-a.parts.contents.getSize("width",1);b=e.screenX;d=e.screenY;k=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",c);CKEDITOR.document.on("mouseup",h);if(CKEDITOR.env.ie6Compat){f=r.getChild(0).getFrameDocument();f.on("mousemove",c);f.on("mouseup",h)}e.preventDefault&&e.preventDefault()});a.on("load",function(){var b="";f==CKEDITOR.DIALOG_RESIZE_WIDTH?
b=" cke_resizer_horizontal":f==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(b=" cke_resizer_vertical");b=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+b+" cke_resizer_"+g.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(g.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+s+', event )">'+(g.lang.dir=="ltr"?"◢":"◣")+"</div>");a.parts.footer.append(b,1)});g.on("destroy",function(){CKEDITOR.tools.removeFunction(s)})}}function l(a){a.data.preventDefault(1)}function q(a){var b=CKEDITOR.document.getWindow(),
d=a.config,c=d.dialog_backgroundCoverColor||"white",h=d.dialog_backgroundCoverOpacity,e=d.baseFloatZIndex,d=CKEDITOR.tools.genKey(c,h,e),f=v[d];if(f)f.show();else{e=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",e,"; top: 0px; left: 0px; ",!CKEDITOR.env.ie6Compat?"background-color: "+c:"",'" class="cke_dialog_background_cover">'];if(CKEDITOR.env.ie6Compat){c="<html><body style=\\'background-color:"+c+";\\'></body></html>";e.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:');
e.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+c+"' );document.close();")+"})())");e.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')}e.push("</div>");f=CKEDITOR.dom.element.createFromHtml(e.join(""));f.setOpacity(h!==void 0?h:0.5);f.on("keydown",l);f.on("keypress",l);f.on("keyup",l);f.appendTo(CKEDITOR.document.getBody());v[d]=f}a.focusManager.add(f);
r=f;var a=function(){var a=b.getViewPaneSize();f.setStyles({width:a.width+"px",height:a.height+"px"})},g=function(){var a=b.getScrollPosition(),d=CKEDITOR.dialog._.currentTop;f.setStyles({left:a.x+"px",top:a.y+"px"});if(d){do{a=d.getPosition();d.move(a.x,a.y)}while(d=d._.parentDialog)}};x=a;b.on("resize",a);a();(!CKEDITOR.env.mac||!CKEDITOR.env.webkit)&&f.focus();if(CKEDITOR.env.ie6Compat){var i=function(){g();arguments.callee.prevScrollHandler.apply(this,arguments)};b.$.setTimeout(function(){i.prevScrollHandler=
window.onscroll||function(){};window.onscroll=i},0);g()}}function p(a){if(r){a.focusManager.remove(r);a=CKEDITOR.document.getWindow();r.hide();a.removeListener("resize",x);CKEDITOR.env.ie6Compat&&a.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0);x=null}}var m=CKEDITOR.tools.cssLength,n='<div class="cke_reset_all {editorId} {editorDialogClass} {hidpi}" dir="{langDir}" lang="{langCode}" role="dialog" aria-labelledby="cke_dialog_title_{id}"><table class="cke_dialog '+
CKEDITOR.env.cssClass+' cke_{langDir}" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="cke_dialog_body" role="presentation"><div id="cke_dialog_title_{id}" class="cke_dialog_title" role="presentation"></div><a id="cke_dialog_close_button_{id}" class="cke_dialog_close_button" href="javascript:void(0)" title="{closeTitle}" role="button"><span class="cke_label">X</span></a><div id="cke_dialog_tabs_{id}" class="cke_dialog_tabs" role="tablist"></div><table class="cke_dialog_contents" role="presentation"><tr><td id="cke_dialog_contents_{id}" class="cke_dialog_contents_body" role="presentation"></td></tr><tr><td id="cke_dialog_footer_{id}" class="cke_dialog_footer" role="presentation"></td></tr></table></div></td></tr></table></div>';
CKEDITOR.dialog=function(b,f){function i(){var a=r._.focusList;a.sort(function(a,b){return a.tabIndex!=b.tabIndex?b.tabIndex-a.tabIndex:a.focusIndex-b.focusIndex});for(var b=a.length,d=0;d<b;d++)a[d].focusIndex=d}function k(a){var b=r._.focusList,a=a||0;if(!(b.length<1)){var d=r._.currentFocusIndex;r._.tabBarMode&&a<0&&(d=0);try{b[d].getInputElement().$.blur()}catch(c){}var h=d,e=r._.pageCount>1;do{h=h+a;if(e&&!r._.tabBarMode&&(h==b.length||h==-1)){r._.tabBarMode=true;r._.tabs[r._.currentTabId][0].focus();
r._.currentFocusIndex=-1;return}h=(h+b.length)%b.length;if(h==d)break}while(a&&!b[h].isFocusable());b[h].focus();b[h].type=="text"&&b[h].select()}}function l(d){if(r==CKEDITOR.dialog._.currentTop){var c=d.data.getKeystroke(),h=b.lang.dir=="rtl",f=[37,38,39,40];w=x=0;if(c==9||c==CKEDITOR.SHIFT+9){k(c==CKEDITOR.SHIFT+9?-1:1);w=1}else if(c==CKEDITOR.ALT+121&&!r._.tabBarMode&&r.getPageCount()>1){r._.tabBarMode=true;r._.tabs[r._.currentTabId][0].focus();r._.currentFocusIndex=-1;w=1}else if(CKEDITOR.tools.indexOf(f,
c)!=-1&&r._.tabBarMode){c=CKEDITOR.tools.indexOf([h?39:37,38],c)!=-1?a.call(r):e.call(r);r.selectPage(c);r._.tabs[c][0].focus();w=1}else if((c==13||c==32)&&r._.tabBarMode){this.selectPage(this._.currentTabId);this._.tabBarMode=false;this._.currentFocusIndex=-1;k(1);w=1}else if(c==13){c=d.data.getTarget();if(!c.is("a","button","select","textarea")&&(!c.is("input")||c.$.type!="button")){(c=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(c.click,0,c);w=1}x=1}else if(c==27){(c=this.getButton("cancel"))?
CKEDITOR.tools.setTimeout(c.click,0,c):this.fire("cancel",{hide:true}).hide!==false&&this.hide();x=1}else return;s(d)}}function s(a){w?a.data.preventDefault(1):x&&a.data.stopPropagation()}var m=CKEDITOR.dialog._.dialogDefinitions[f],t=CKEDITOR.tools.clone(o),p=b.config.dialog_buttonsOrder||"OS",n=b.lang.dir,q={},w,x;(p=="OS"&&CKEDITOR.env.mac||p=="rtl"&&n=="ltr"||p=="ltr"&&n=="rtl")&&t.buttons.reverse();m=CKEDITOR.tools.extend(m(b),t);m=CKEDITOR.tools.clone(m);m=new u(this,m);t=j(b);this._={editor:b,
element:t.element,name:f,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:false,focusList:[],currentFocusIndex:0,hasFocus:false};this.parts=t.parts;CKEDITOR.tools.setTimeout(function(){b.fire("ariaWidget",this.parts.contents)},0,this);t={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};t[n=="rtl"?"right":"left"]=0;this.parts.dialog.setStyles(t);
CKEDITOR.event.call(this);this.definition=m=CKEDITOR.fire("dialogDefinition",{name:f,definition:m},b).definition;if(!("removeDialogTabs"in b._)&&b.config.removeDialogTabs){t=b.config.removeDialogTabs.split(";");for(n=0;n<t.length;n++){p=t[n].split(":");if(p.length==2){var v=p[0];q[v]||(q[v]=[]);q[v].push(p[1])}}b._.removeDialogTabs=q}if(b._.removeDialogTabs&&(q=b._.removeDialogTabs[f]))for(n=0;n<q.length;n++)m.removeContents(q[n]);if(m.onLoad)this.on("load",m.onLoad);if(m.onShow)this.on("show",m.onShow);
if(m.onHide)this.on("hide",m.onHide);if(m.onOk)this.on("ok",function(a){b.fire("saveSnapshot");setTimeout(function(){b.fire("saveSnapshot")},0);if(m.onOk.call(this,a)===false)a.data.hide=false});this.state=CKEDITOR.DIALOG_STATE_IDLE;if(m.onCancel)this.on("cancel",function(a){if(m.onCancel.call(this,a)===false)a.data.hide=false});var r=this,z=function(a){var b=r._.contents,d=false,c;for(c in b)for(var h in b[c])if(d=a.call(this,b[c][h]))return};this.on("ok",function(a){z(function(b){if(b.validate){var d=
b.validate(this),c=typeof d=="string"||d===false;if(c){a.data.hide=false;a.stop()}g.call(b,!c,typeof d=="string"?d:void 0);return c}})},this,null,0);this.on("cancel",function(a){z(function(d){if(d.isChanged()){if(!b.config.dialog_noConfirmCancel&&!confirm(b.lang.common.confirmCancel))a.data.hide=false;return true}})},this,null,0);this.parts.close.on("click",function(a){this.fire("cancel",{hide:true}).hide!==false&&this.hide();a.data.preventDefault()},this);this.changeFocus=k;var y=this._.element;
b.focusManager.add(y,1);this.on("show",function(){y.on("keydown",l,this);if(CKEDITOR.env.gecko)y.on("keypress",s,this)});this.on("hide",function(){y.removeListener("keydown",l);CKEDITOR.env.gecko&&y.removeListener("keypress",s);z(function(a){c.apply(a)})});this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",l,this,null,0)});this.on("show",function(){i();var a=r._.pageCount>1;if(b.config.dialog_startupFocusTab&&a){r._.tabBarMode=true;r._.tabs[r._.currentTabId][0].focus();
r._.currentFocusIndex=-1}else if(!this._.hasFocus){this._.currentFocusIndex=a?-1:this._.focusList.length-1;if(m.onFocus)(a=m.onFocus.call(this))&&a.focus();else k(1)}},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on("load",function(){var a=this.getElement(),b=a.getFirst();b.remove();b.appendTo(a)},this);d(this);h(this);(new CKEDITOR.dom.text(m.title,CKEDITOR.document)).appendTo(this.parts.title);for(n=0;n<m.contents.length;n++)(q=m.contents[n])&&this.addPage(q);this.parts.tabs.on("click",
function(a){var b=a.data.getTarget();if(b.hasClass("cke_dialog_tab")){b=b.$.id;this.selectPage(b.substring(4,b.lastIndexOf("_")));if(this._.tabBarMode){this._.tabBarMode=false;this._.currentFocusIndex=-1;k(1)}a.data.preventDefault()}},this);n=[];q=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:m.buttons},n).getChild();this.parts.footer.setHtml(n.join(""));for(n=0;n<q.length;n++)this._.buttons[q[n].id]=q[n]};CKEDITOR.dialog.prototype=
{destroy:function(){this.hide();this._.element.remove()},resize:function(){return function(a,b){if(!this._.contentSize||!(this._.contentSize.width==a&&this._.contentSize.height==b)){CKEDITOR.dialog.fire("resize",{dialog:this,width:a,height:b},this._.editor);this.fire("resize",{width:a,height:b},this._.editor);this.parts.contents.setStyles({width:a+"px",height:b+"px"});if(this._.editor.lang.dir=="rtl"&&this._.position)this._.position.x=CKEDITOR.document.getWindow().getViewPaneSize().width-this._.contentSize.width-
parseInt(this._.element.getFirst().getStyle("right"),10);this._.contentSize={width:a,height:b}}}}(),getSize:function(){var a=this._.element.getFirst();return{width:a.$.offsetWidth||0,height:a.$.offsetHeight||0}},move:function(a,b,d){var c=this._.element.getFirst(),h=this._.editor.lang.dir=="rtl",e=c.getComputedStyle("position")=="fixed";CKEDITOR.env.ie&&c.setStyle("zoom","100%");if(!e||!this._.position||!(this._.position.x==a&&this._.position.y==b)){this._.position={x:a,y:b};if(!e){e=CKEDITOR.document.getWindow().getScrollPosition();
a=a+e.x;b=b+e.y}if(h){e=this.getSize();a=CKEDITOR.document.getWindow().getViewPaneSize().width-e.width-a}b={top:(b>0?b:0)+"px"};b[h?"right":"left"]=(a>0?a:0)+"px";c.setStyles(b);d&&(this._.moved=1)}},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var a=this._.element,b=this.definition;!a.getParent()||!a.getParent().equals(CKEDITOR.document.getBody())?a.appendTo(CKEDITOR.document.getBody()):a.setStyle("display","block");this.resize(this._.contentSize&&this._.contentSize.width||
b.width||b.minWidth,this._.contentSize&&this._.contentSize.height||b.height||b.minHeight);this.reset();this.selectPage(this.definition.contents[0].id);if(CKEDITOR.dialog._.currentZIndex===null)CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex;this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex=CKEDITOR.dialog._.currentZIndex+10);if(CKEDITOR.dialog._.currentTop===null){CKEDITOR.dialog._.currentTop=this;this._.parentDialog=null;q(this._.editor)}else{this._.parentDialog=
CKEDITOR.dialog._.currentTop;this._.parentDialog.getElement().getFirst().$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2);CKEDITOR.dialog._.currentTop=this}a.on("keydown",z);a.on("keyup",B);this._.hasFocus=false;for(var d in b.contents)if(b.contents[d]){var a=b.contents[d],c=this._.tabs[a.id],h=a.requiredContent,e=0;if(c){for(var g in this._.contents[a.id]){var i=this._.contents[a.id][g];if(!(i.type=="hbox"||i.type=="vbox"||!i.getInputElement()))if(i.requiredContent&&!this._.editor.activeFilter.check(i.requiredContent))i.disable();
else{i.enable();e++}}!e||h&&!this._.editor.activeFilter.check(h)?c[0].addClass("cke_dialog_tab_disabled"):c[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout();f(this);this.parts.dialog.setStyle("visibility","");this.fireOnce("load",{});CKEDITOR.ui.fire("ready",this);this.fire("show",{});this._.editor.fire("dialogShow",this);this._.parentDialog||this._.editor.focusManager.lock();this.foreach(function(a){a.setInitValue&&a.setInitValue()})},100,this)},layout:function(){var a=
this.parts.dialog,b=this.getSize(),d=CKEDITOR.document.getWindow().getViewPaneSize(),c=(d.width-b.width)/2,h=(d.height-b.height)/2;CKEDITOR.env.ie6Compat||(b.height+(h>0?h:0)>d.height||b.width+(c>0?c:0)>d.width?a.setStyle("position","absolute"):a.setStyle("position","fixed"));this.move(this._.moved?this._.position.x:c,this._.moved?this._.position.y:h)},foreach:function(a){for(var b in this._.contents)for(var d in this._.contents[b])a.call(this,this._.contents[b][d]);return this},reset:function(){var a=
function(a){a.reset&&a.reset(1)};return function(){this.foreach(a);return this}}(),setupContent:function(){var a=arguments;this.foreach(function(b){b.setup&&b.setup.apply(b,a)})},commitContent:function(){var a=arguments;this.foreach(function(b){CKEDITOR.env.ie&&this._.currentFocusIndex==b.focusIndex&&b.getInputElement().$.blur();b.commit&&b.commit.apply(b,a)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{});this._.editor.fire("dialogHide",this);this.selectPage(this._.tabIdList[0]);
var a=this._.element;a.setStyle("display","none");this.parts.dialog.setStyle("visibility","hidden");for(D(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var b=this._.parentDialog.getElement().getFirst();b.setStyle("z-index",parseInt(b.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else p(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex=CKEDITOR.dialog._.currentZIndex-10;
else{CKEDITOR.dialog._.currentZIndex=null;a.removeListener("keydown",z);a.removeListener("keyup",B);var d=this._.editor;d.focus();setTimeout(function(){d.focusManager.unlock();CKEDITOR.env.iOS&&d.window.focus()},0)}delete this._.parentDialog;this.foreach(function(a){a.resetInitValue&&a.resetInitValue()});this.setState(CKEDITOR.DIALOG_STATE_IDLE)}},addPage:function(a){if(!a.requiredContent||this._.editor.filter.check(a.requiredContent)){for(var b=[],d=a.label?' title="'+CKEDITOR.tools.htmlEncode(a.label)+
'"':"",c=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",children:a.elements,expand:!!a.expand,padding:a.padding,style:a.style||"width: 100%;"},b),h=this._.contents[a.id]={},e=c.getChild(),f=0;c=e.shift();){!c.notAllowed&&(c.type!="hbox"&&c.type!="vbox")&&f++;h[c.id]=c;typeof c.getChild=="function"&&e.push.apply(e,c.getChild())}if(!f)a.hidden=true;b=CKEDITOR.dom.element.createFromHtml(b.join(""));b.setAttribute("role","tabpanel");c=CKEDITOR.env;
h="cke_"+a.id+"_"+CKEDITOR.tools.getNextNumber();d=CKEDITOR.dom.element.createFromHtml(['<a class="cke_dialog_tab"',this._.pageCount>0?" cke_last":"cke_first",d,a.hidden?' style="display:none"':"",' id="',h,'"',c.gecko&&!c.hc?"":' href="javascript:void(0)"',' tabIndex="-1" hidefocus="true" role="tab">',a.label,"</a>"].join(""));b.setAttribute("aria-labelledby",h);this._.tabs[a.id]=[d,b];this._.tabIdList.push(a.id);!a.hidden&&this._.pageCount++;this._.lastTab=d;this.updateStyle();b.setAttribute("name",
a.id);b.appendTo(this.parts.contents);d.unselectable();this.parts.tabs.append(d);if(a.accessKey){A(this,this,"CTRL+"+a.accessKey,F,C);this._.accessKeyMap["CTRL+"+a.accessKey]=a.id}}},selectPage:function(a){if(this._.currentTabId!=a&&!this._.tabs[a][0].hasClass("cke_dialog_tab_disabled")&&this.fire("selectPage",{page:a,currentPage:this._.currentTabId})!==false){for(var d in this._.tabs){var c=this._.tabs[d][0],h=this._.tabs[d][1];if(d!=a){c.removeClass("cke_dialog_tab_selected");h.hide()}h.setAttribute("aria-hidden",
d!=a)}var e=this._.tabs[a];e[0].addClass("cke_dialog_tab_selected");if(CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat){b(e[1]);e[1].show();setTimeout(function(){b(e[1],1)},0)}else e[1].show();this._.currentTabId=a;this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,a)}},updateStyle:function(){this.parts.dialog[(this._.pageCount===1?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(b){var d=this._.tabs[b]&&this._.tabs[b][0];if(d&&this._.pageCount!=1&&d.isVisible()){b==this._.currentTabId&&
this.selectPage(a.call(this));d.hide();this._.pageCount--;this.updateStyle()}},showPage:function(a){if(a=this._.tabs[a]&&this._.tabs[a][0]){a.show();this._.pageCount++;this.updateStyle()}},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(a,b){var d=this._.contents[a];return d&&d[b]},getValueOf:function(a,b){return this.getContentElement(a,b).getValue()},setValueOf:function(a,b,d){return this.getContentElement(a,b).setValue(d)},getButton:function(a){return this._.buttons[a]},
click:function(a){return this._.buttons[a].click()},disableButton:function(a){return this._.buttons[a].disable()},enableButton:function(a){return this._.buttons[a].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(a,b){if(typeof b=="undefined"){b=this._.focusList.length;this._.focusList.push(new i(this,a,b))}else{this._.focusList.splice(b,
0,new i(this,a,b));for(var d=b+1;d<this._.focusList.length;d++)this._.focusList[d].focusIndex++}},setState:function(a){if(this.state!=a){this.state=a;if(a==CKEDITOR.DIALOG_STATE_BUSY){if(!this.parts.spinner){var b=this.getParentEditor().lang.dir,d={attributes:{"class":"cke_dialog_spinner"},styles:{"float":b=="rtl"?"right":"left"}};d.styles["margin-"+(b=="rtl"?"left":"right")]="8px";this.parts.spinner=CKEDITOR.document.createElement("div",d);this.parts.spinner.setHtml("&#8987;");this.parts.spinner.appendTo(this.parts.title,
1)}this.parts.spinner.show();this.getButton("ok").disable()}else if(a==CKEDITOR.DIALOG_STATE_IDLE){this.parts.spinner&&this.parts.spinner.hide();this.getButton("ok").enable()}this.fire("state",a)}}};CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(a,b){if(!this._.dialogDefinitions[a]||typeof b=="function")this._.dialogDefinitions[a]=b},exists:function(a){return!!this._.dialogDefinitions[a]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(a,b,d){a=a.config.removeDialogTabs;
return!(a&&a.match(RegExp("(?:^|;)"+b+":"+d+"(?:$|;)","i")))},okButton:function(){var a=function(a,b){b=b||{};return CKEDITOR.tools.extend({id:"ok",type:"button",label:a.lang.common.ok,"class":"cke_dialog_ui_button_ok",onClick:function(a){a=a.data.dialog;a.fire("ok",{hide:true}).hide!==false&&a.hide()}},b,true)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(d){return a(d,b)},{type:"button"},true)};return a}(),cancelButton:function(){var a=function(a,b){b=b||{};return CKEDITOR.tools.extend({id:"cancel",
type:"button",label:a.lang.common.cancel,"class":"cke_dialog_ui_button_cancel",onClick:function(a){a=a.data.dialog;a.fire("cancel",{hide:true}).hide!==false&&a.hide()}},b,true)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(d){return a(d,b)},{type:"button"},true)};return a}(),addUIElement:function(a,b){this._.uiElementBuilders[a]=b}});CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};CKEDITOR.event.implementOn(CKEDITOR.dialog);
CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);var o={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},s=function(a,b,d){for(var c=0,h;h=a[c];c++){if(h.id==b)return h;if(d&&h[d])if(h=s(h[d],b,d))return h}return null},t=function(a,b,d,c,h){if(d){for(var e=0,f;f=a[e];e++){if(f.id==d){a.splice(e,0,b);return b}if(c&&f[c])if(f=t(f[c],b,d,c,true))return f}if(h)return null}a.push(b);return b},w=function(a,b,d){for(var c=
0,h;h=a[c];c++){if(h.id==b)return a.splice(c,1);if(d&&h[d])if(h=w(h[d],b,d))return h}return null},u=function(a,b){this.dialog=a;for(var d=b.contents,c=0,h;h=d[c];c++)d[c]=h&&new k(a,h);CKEDITOR.tools.extend(this,b)};u.prototype={getContents:function(a){return s(this.contents,a)},getButton:function(a){return s(this.buttons,a)},addContents:function(a,b){return t(this.contents,a,b)},addButton:function(a,b){return t(this.buttons,a,b)},removeContents:function(a){w(this.contents,a)},removeButton:function(a){w(this.buttons,
a)}};k.prototype={get:function(a){return s(this.elements,a,"children")},add:function(a,b){return t(this.elements,a,b,"children")},remove:function(a){w(this.elements,a,"children")}};var x,v={},r,y={},z=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,d=a.data.$.altKey,c=a.data.$.shiftKey,h=String.fromCharCode(a.data.$.keyCode);if((b=y[(b?"CTRL+":"")+(d?"ALT+":"")+(c?"SHIFT+":"")+h])&&b.length){b=b[b.length-1];b.keydown&&b.keydown.call(b.uiElement,b.dialog,b.key);a.data.preventDefault()}},B=function(a){var b=
a.data.$.ctrlKey||a.data.$.metaKey,d=a.data.$.altKey,c=a.data.$.shiftKey,h=String.fromCharCode(a.data.$.keyCode);if((b=y[(b?"CTRL+":"")+(d?"ALT+":"")+(c?"SHIFT+":"")+h])&&b.length){b=b[b.length-1];if(b.keyup){b.keyup.call(b.uiElement,b.dialog,b.key);a.data.preventDefault()}}},A=function(a,b,d,c,h){(y[d]||(y[d]=[])).push({uiElement:a,dialog:b,key:d,keyup:h||a.accessKeyUp,keydown:c||a.accessKeyDown})},D=function(a){for(var b in y){for(var d=y[b],c=d.length-1;c>=0;c--)(d[c].dialog==a||d[c].uiElement==
a)&&d.splice(c,1);d.length===0&&delete y[b]}},C=function(a,b){a._.accessKeyMap[b]&&a.selectPage(a._.accessKeyMap[b])},F=function(){};(function(){CKEDITOR.ui.dialog={uiElement:function(a,b,d,c,h,e,f){if(!(arguments.length<4)){var g=(c.call?c(b):c)||"div",i=["<",g," "],j=(h&&h.call?h(b):h)||{},k=(e&&e.call?e(b):e)||{},l=(f&&f.call?f.call(this,a,b):f)||"",o=this.domId=k.id||CKEDITOR.tools.getNextId()+"_uiElement";if(b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)){j.display="none";
this.notAllowed=true}k.id=o;var m={};b.type&&(m["cke_dialog_ui_"+b.type]=1);b.className&&(m[b.className]=1);if(b.disabled)m.cke_disabled=1;for(var s=k["class"]&&k["class"].split?k["class"].split(" "):[],o=0;o<s.length;o++)s[o]&&(m[s[o]]=1);s=[];for(o in m)s.push(o);k["class"]=s.join(" ");if(b.title)k.title=b.title;m=(b.style||"").split(";");if(b.align){s=b.align;j["margin-left"]=s=="left"?0:"auto";j["margin-right"]=s=="right"?0:"auto"}for(o in j)m.push(o+":"+j[o]);b.hidden&&m.push("display:none");
for(o=m.length-1;o>=0;o--)m[o]===""&&m.splice(o,1);if(m.length>0)k.style=(k.style?k.style+"; ":"")+m.join("; ");for(o in k)i.push(o+'="'+CKEDITOR.tools.htmlEncode(k[o])+'" ');i.push(">",l,"</",g,">");d.push(i.join(""));(this._||(this._={})).dialog=a;if(typeof b.isChanged=="boolean")this.isChanged=function(){return b.isChanged};if(typeof b.isChanged=="function")this.isChanged=b.isChanged;if(typeof b.setValue=="function")this.setValue=CKEDITOR.tools.override(this.setValue,function(a){return function(d){a.call(this,
b.setValue.call(this,d))}});if(typeof b.getValue=="function")this.getValue=CKEDITOR.tools.override(this.getValue,function(a){return function(){return b.getValue.call(this,a.call(this))}});CKEDITOR.event.implementOn(this);this.registerEvents(b);this.accessKeyUp&&(this.accessKeyDown&&b.accessKey)&&A(this,a,"CTRL+"+b.accessKey);var t=this;a.on("load",function(){var b=t.getInputElement();if(b){var d=t.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?"cke_dialog_ui_focused":"";b.on("focus",
function(){a._.tabBarMode=false;a._.hasFocus=true;t.fire("focus");d&&this.addClass(d)});b.on("blur",function(){t.fire("blur");d&&this.removeClass(d)})}});CKEDITOR.tools.extend(this,b);if(this.keyboardFocusable){this.tabIndex=b.tabIndex||0;this.focusIndex=a._.focusList.push(this)-1;this.on("focus",function(){a._.currentFocusIndex=t.focusIndex})}}},hbox:function(a,b,d,c,h){if(!(arguments.length<4)){this._||(this._={});var e=this._.children=b,f=h&&h.widths||null,g=h&&h.height||null,i,j={role:"presentation"};
h&&h.align&&(j.align=h.align);CKEDITOR.ui.dialog.uiElement.call(this,a,h||{type:"hbox"},c,"table",{},j,function(){var a=['<tbody><tr class="cke_dialog_ui_hbox">'];for(i=0;i<d.length;i++){var b="cke_dialog_ui_hbox_child",c=[];i===0&&(b="cke_dialog_ui_hbox_first");i==d.length-1&&(b="cke_dialog_ui_hbox_last");a.push('<td class="',b,'" role="presentation" ');f?f[i]&&c.push("width:"+m(f[i])):c.push("width:"+Math.floor(100/d.length)+"%");g&&c.push("height:"+m(g));h&&h.padding!==void 0&&c.push("padding:"+
m(h.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&e[i].align)&&c.push("text-align:"+e[i].align);c.length>0&&a.push('style="'+c.join("; ")+'" ');a.push(">",d[i],"</td>")}a.push("</tr></tbody>");return a.join("")})}},vbox:function(a,b,d,c,h){if(!(arguments.length<3)){this._||(this._={});var e=this._.children=b,f=h&&h.width||null,g=h&&h.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,h||{type:"vbox"},c,"div",null,{role:"presentation"},function(){var b=['<table role="presentation" cellspacing="0" border="0" '];
b.push('style="');h&&h.expand&&b.push("height:100%;");b.push("width:"+m(f||"100%"),";");CKEDITOR.env.webkit&&b.push("float:none;");b.push('"');b.push('align="',CKEDITOR.tools.htmlEncode(h&&h.align||(a.getParentEditor().lang.dir=="ltr"?"left":"right")),'" ');b.push("><tbody>");for(var c=0;c<d.length;c++){var i=[];b.push('<tr><td role="presentation" ');f&&i.push("width:"+m(f||"100%"));g?i.push("height:"+m(g[c])):h&&h.expand&&i.push("height:"+Math.floor(100/d.length)+"%");h&&h.padding!==void 0&&i.push("padding:"+
m(h.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&e[c].align)&&i.push("text-align:"+e[c].align);i.length>0&&b.push('style="',i.join("; "),'" ');b.push(' class="cke_dialog_ui_vbox_child">',d[c],"</td></tr>")}b.push("</tbody></table>");return b.join("")})}}}})();CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(a,b){this.getInputElement().setValue(a);
!b&&this.fire("change",{value:a});return this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return false},selectParentTab:function(){for(var a=this.getInputElement();(a=a.getParent())&&a.$.className.search("cke_dialog_page_contents")==-1;);if(!a)return this;a=a.getAttribute("name");this._.dialog._.currentTabId!=a&&this._.dialog.selectPage(a);return this},focus:function(){this.selectParentTab().getInputElement().focus();return this},registerEvents:function(a){var b=
/^on([A-Z]\w+)/,d,c=function(a,b,d,c){b.on("load",function(){a.getInputElement().on(d,c,a)})},h;for(h in a)if(d=h.match(b))this.eventProcessors[h]?this.eventProcessors[h].call(this,this._.dialog,a[h]):c(this,this._.dialog,d[1].toLowerCase(),a[h]);return this},eventProcessors:{onLoad:function(a,b){a.on("load",b,this)},onShow:function(a,b){a.on("show",b,this)},onHide:function(a,b){a.on("hide",b,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var a=this.getElement();
this.getInputElement().setAttribute("disabled","true");a.addClass("cke_disabled")},enable:function(){var a=this.getElement();this.getInputElement().removeAttribute("disabled");a.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return!this.isEnabled()||!this.isVisible()?false:true}};CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,
{getChild:function(a){if(arguments.length<1)return this._.children.concat();a.splice||(a=[a]);return a.length<2?this._.children[a[0]]:this._.children[a[0]]&&this._.children[a[0]].getChild?this._.children[a[0]].getChild(a.slice(1,a.length)):null}},true);CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox;(function(){var a={build:function(a,b,d){for(var c=b.children,h,e=[],f=[],g=0;g<c.length&&(h=c[g]);g++){var i=[];e.push(i);f.push(CKEDITOR.dialog._.uiElementBuilders[h.type].build(a,h,i))}return new CKEDITOR.ui.dialog[b.type](a,
f,e,d,b)}};CKEDITOR.dialog.addUIElement("hbox",a);CKEDITOR.dialog.addUIElement("vbox",a)})();CKEDITOR.dialogCommand=function(a,b){this.dialogName=a;CKEDITOR.tools.extend(this,b,true)};CKEDITOR.dialogCommand.prototype={exec:function(a){a.openDialog(this.dialogName)},canUndo:false,editorFocus:1};(function(){var a=/^([a]|[^a])+$/,b=/^\d*$/,d=/^\d*(?:\.\d+)?$/,c=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,h=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,e=/^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;CKEDITOR.VALIDATE_OR=
1;CKEDITOR.VALIDATE_AND=2;CKEDITOR.dialog.validate={functions:function(){var a=arguments;return function(){var b=this&&this.getValue?this.getValue():a[0],d,c=CKEDITOR.VALIDATE_AND,h=[],e;for(e=0;e<a.length;e++)if(typeof a[e]=="function")h.push(a[e]);else break;if(e<a.length&&typeof a[e]=="string"){d=a[e];e++}e<a.length&&typeof a[e]=="number"&&(c=a[e]);var f=c==CKEDITOR.VALIDATE_AND?true:false;for(e=0;e<h.length;e++)f=c==CKEDITOR.VALIDATE_AND?f&&h[e](b):f||h[e](b);return!f?d:true}},regex:function(a,
b){return function(d){d=this&&this.getValue?this.getValue():d;return!a.test(d)?b:true}},notEmpty:function(b){return this.regex(a,b)},integer:function(a){return this.regex(b,a)},number:function(a){return this.regex(d,a)},cssLength:function(a){return this.functions(function(a){return h.test(CKEDITOR.tools.trim(a))},a)},htmlLength:function(a){return this.functions(function(a){return c.test(CKEDITOR.tools.trim(a))},a)},inlineStyle:function(a){return this.functions(function(a){return e.test(CKEDITOR.tools.trim(a))},
a)},equals:function(a,b){return this.functions(function(b){return b==a},b)},notEqual:function(a,b){return this.functions(function(b){return b!=a},b)}};CKEDITOR.on("instanceDestroyed",function(a){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var b;b=CKEDITOR.dialog._.currentTop;)b.hide();for(var d in v)v[d].remove();v={}}var a=a.editor._.storedDialogs,c;for(c in a)a[c].destroy()})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(a,b){var d=null,c=CKEDITOR.dialog._.dialogDefinitions[a];
CKEDITOR.dialog._.currentTop===null&&q(this);if(typeof c=="function"){d=this._.storedDialogs||(this._.storedDialogs={});d=d[a]||(d[a]=new CKEDITOR.dialog(this,a));b&&b.call(d,d);d.show()}else{if(c=="failed"){p(this);throw Error('[CKEDITOR.dialog.openDialog] Dialog "'+a+'" failed when loading definition.');}typeof c=="string"&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(c),function(){typeof CKEDITOR.dialog._.dialogDefinitions[a]!="function"&&(CKEDITOR.dialog._.dialogDefinitions[a]="failed");this.openDialog(a,
b)},this,0,1)}CKEDITOR.skin.loadPart("dialog");return d}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(a){a.on("doubleclick",function(e){e.data.dialog&&a.openDialog(e.data.dialog)},null,null,999)}}),function(){CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{af:1,ar:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,en:1,"en-gb":1,eo:1,es:1,et:1,fa:1,fi:1,fo:1,fr:1,"fr-ca":1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,nb:1,nl:1,no:1,
pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sr:1,"sr-latn":1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},init:function(a){var e=this;a.addCommand("a11yHelp",{exec:function(){var b=a.langCode,b=e.availableLangs[b]?b:e.availableLangs[b.replace(/-.*/,"")]?b.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e.path+"dialogs/lang/"+b+".js"),function(){a.lang.a11yhelp=e.langEntries[b];a.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:false});a.setKeystroke(CKEDITOR.ALT+
48,"a11yHelp");CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js");a.on("ariaEditorHelpLabel",function(b){b.data.label=a.lang.common.editorHelp})}})}(),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(a){var e=a.addCommand("about",new CKEDITOR.dialogCommand("about"));e.modes={wysiwyg:1,source:1};e.canUndo=false;e.readOnly=1;a.ui.addButton&&a.ui.addButton("About",{label:a.lang.about.title,command:"about",toolbar:"about"});CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),
CKEDITOR.plugins.add("basicstyles",{init:function(a){var e=0,b=function(b,c,j,d){if(d){var d=new CKEDITOR.style(d),h=g[j];h.unshift(d);a.attachStyleStateChange(d,function(b){!a.readOnly&&a.getCommand(j).setState(b)});a.addCommand(j,new CKEDITOR.styleCommand(d,{contentForms:h}));a.ui.addButton&&a.ui.addButton(b,{label:c,command:j,toolbar:"basicstyles,"+(e=e+10)})}},g={bold:["strong","b",["span",function(a){a=a.styles["font-weight"];return a=="bold"||+a>=700}]],italic:["em","i",["span",function(a){return a.styles["font-style"]==
"italic"}]],underline:["u",["span",function(a){return a.styles["text-decoration"]=="underline"}]],strike:["s","strike",["span",function(a){return a.styles["text-decoration"]=="line-through"}]],subscript:["sub"],superscript:["sup"]},c=a.config,j=a.lang.basicstyles;b("Bold",j.bold,"bold",c.coreStyles_bold);b("Italic",j.italic,"italic",c.coreStyles_italic);b("Underline",j.underline,"underline",c.coreStyles_underline);b("Strike",j.strike,"strike",c.coreStyles_strike);b("Subscript",j.subscript,"subscript",
c.coreStyles_subscript);b("Superscript",j.superscript,"superscript",c.coreStyles_superscript);a.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}}),CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"},CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"},CKEDITOR.config.coreStyles_underline={element:"u"},CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"},CKEDITOR.config.coreStyles_subscript={element:"sub"},CKEDITOR.config.coreStyles_superscript=
{element:"sup"},function(){function a(a,b,d,c){if(!a.isReadOnly()&&!a.equals(d.editable())){CKEDITOR.dom.element.setMarker(c,a,"bidi_processed",1);for(var c=a,e=d.editable();(c=c.getParent())&&!c.equals(e);)if(c.getCustomData("bidi_processed")){a.removeStyle("direction");a.removeAttribute("dir");return}c="useComputedState"in d.config?d.config.useComputedState:1;if((c?a.getComputedStyle("direction"):a.getStyle("direction")||a.hasAttribute("dir"))!=b){a.removeStyle("direction");if(c){a.removeAttribute("dir");
b!=a.getComputedStyle("direction")&&a.setAttribute("dir",b)}else a.setAttribute("dir",b);d.forceNextSelectionCheck()}}}function e(a,b,d){var c=a.getCommonAncestor(false,true),a=a.clone();a.enlarge(d==CKEDITOR.ENTER_BR?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(a.checkBoundaryOfElement(c,CKEDITOR.START)&&a.checkBoundaryOfElement(c,CKEDITOR.END)){for(var e;c&&c.type==CKEDITOR.NODE_ELEMENT&&(e=c.getParent())&&e.getChildCount()==1&&!(c.getName()in b);)c=e;return c.type==CKEDITOR.NODE_ELEMENT&&
c.getName()in b&&c}}function b(b){return{context:"p",allowedContent:{"h1 h2 h3 h4 h5 h6 table ul ol blockquote div tr p div li td":{propertiesOnly:true,attributes:"dir"}},requiredContent:"p[dir]",refresh:function(a,b){var d=a.config.useComputedState,c,d=d===void 0||d;if(!d){c=b.lastElement;for(var h=a.editable();c&&!(c.getName()in i||c.equals(h));){var e=c.getParent();if(!e)break;c=e}}c=c||b.block||b.blockLimit;if(c.equals(a.editable()))(h=a.getSelection().getRanges()[0].getEnclosedNode())&&h.type==
CKEDITOR.NODE_ELEMENT&&(c=h);if(c){d=d?c.getComputedStyle("direction"):c.getStyle("direction")||c.getAttribute("dir");a.getCommand("bidirtl").setState(d=="rtl"?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF);a.getCommand("bidiltr").setState(d=="ltr"?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}d=(b.block||b.blockLimit||a.editable()).getDirection(1);if(d!=(a._.selDir||a.lang.dir)){a._.selDir=d;a.fire("contentDirChanged",d)}},exec:function(d){var f=d.getSelection(),g=d.config.enterMode,i=f.getRanges();if(i&&
i.length){for(var k={},o=f.createBookmarks(),i=i.createIterator(),s,t=0;s=i.getNextRange(1);){var w=s.getEnclosedNode();if(!w||w&&!(w.type==CKEDITOR.NODE_ELEMENT&&w.getName()in j))w=e(s,c,g);w&&a(w,b,d,k);var u=new CKEDITOR.dom.walker(s),x=o[t].startNode,v=o[t++].endNode;u.evaluator=function(a){var b=g==CKEDITOR.ENTER_P?"p":"div",d;if(d=a?a.type==CKEDITOR.NODE_ELEMENT:false)if(d=a.getName()in c){if(b=a.is(b))b=((b=a.getParent())?b.type==CKEDITOR.NODE_ELEMENT:false)&&a.getParent().is("blockquote");
d=!b&&a.getPosition(x)&CKEDITOR.POSITION_FOLLOWING&&(a.getPosition(v)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_CONTAINS)==CKEDITOR.POSITION_PRECEDING}return!!d};for(;w=u.next();)a(w,b,d,k);s=s.createIterator();for(s.enlargeBr=g!=CKEDITOR.ENTER_BR;w=s.getNextParagraph(g==CKEDITOR.ENTER_P?"p":"div");)a(w,b,d,k)}CKEDITOR.dom.element.clearAllMarkers(k);d.forceNextSelectionCheck();f.selectBookmarks(o);d.focus()}}}}function g(a){var b=a==f.setAttribute,d=a==f.removeAttribute,c=/\bdirection\s*:\s*(.*?)\s*(:?$|;)/;
return function(e,f){if(!this.isReadOnly()){var g;if(g=e==(b||d?"dir":"direction")||e=="style"&&(d||c.test(f))){a:{g=this;for(var i=g.getDocument().getBody().getParent();g;){if(g.equals(i)){g=false;break a}g=g.getParent()}g=true}g=!g}if(g){g=this.getDirection(1);i=a.apply(this,arguments);if(g!=this.getDirection(1)){this.getDocument().fire("dirChanged",this);return i}}}return a.apply(this,arguments)}}var c={table:1,ul:1,ol:1,blockquote:1,div:1},j={},i={};CKEDITOR.tools.extend(j,c,{tr:1,p:1,div:1,li:1});
CKEDITOR.tools.extend(i,j,{td:1});CKEDITOR.plugins.add("bidi",{init:function(a){function d(b,c,e,f,g){a.addCommand(e,new CKEDITOR.command(a,f));a.ui.addButton&&a.ui.addButton(b,{label:c,command:e,toolbar:"bidi,"+g})}if(!a.blockless){var c=a.lang.bidi;d("BidiLtr",c.ltr,"bidiltr",b("ltr"),10);d("BidiRtl",c.rtl,"bidirtl",b("rtl"),20);a.on("contentDom",function(){a.document.on("dirChanged",function(b){a.fire("dirChanged",{node:b.data,dir:b.data.getDirection(1)})})});a.on("contentDirChanged",function(b){var b=
(a.lang.dir!=b.data?"add":"remove")+"Class",d=a.ui.space(a.config.toolbarLocation);if(d)d[b]("cke_mixed_dir_content")})}}});for(var f=CKEDITOR.dom.element.prototype,k=["setStyle","removeStyle","setAttribute","removeAttribute"],d=0;d<k.length;d++)f[k[d]]=CKEDITOR.tools.override(f[k[d]],g)}(),function(){var a={exec:function(a){var b=a.getCommand("blockquote").state,g=a.getSelection(),c=g&&g.getRanges()[0];if(c){var j=g.createBookmarks();if(CKEDITOR.env.ie){var i=j[0].startNode,f=j[0].endNode,k;if(i&&
i.getParent().getName()=="blockquote")for(k=i;k=k.getNext();)if(k.type==CKEDITOR.NODE_ELEMENT&&k.isBlockBoundary()){i.move(k,true);break}if(f&&f.getParent().getName()=="blockquote")for(k=f;k=k.getPrevious();)if(k.type==CKEDITOR.NODE_ELEMENT&&k.isBlockBoundary()){f.move(k);break}}var d=c.createIterator();d.enlargeBr=a.config.enterMode!=CKEDITOR.ENTER_BR;if(b==CKEDITOR.TRISTATE_OFF){for(i=[];b=d.getNextParagraph();)i.push(b);if(i.length<1){b=a.document.createElement(a.config.enterMode==CKEDITOR.ENTER_P?
"p":"div");f=j.shift();c.insertNode(b);b.append(new CKEDITOR.dom.text("﻿",a.document));c.moveToBookmark(f);c.selectNodeContents(b);c.collapse(true);f=c.createBookmark();i.push(b);j.unshift(f)}k=i[0].getParent();c=[];for(f=0;f<i.length;f++){b=i[f];k=k.getCommonAncestor(b.getParent())}for(b={table:1,tbody:1,tr:1,ol:1,ul:1};b[k.getName()];)k=k.getParent();for(f=null;i.length>0;){for(b=i.shift();!b.getParent().equals(k);)b=b.getParent();b.equals(f)||c.push(b);f=b}for(;c.length>0;){b=c.shift();if(b.getName()==
"blockquote"){for(f=new CKEDITOR.dom.documentFragment(a.document);b.getFirst();){f.append(b.getFirst().remove());i.push(f.getLast())}f.replace(b)}else i.push(b)}c=a.document.createElement("blockquote");for(c.insertBefore(i[0]);i.length>0;){b=i.shift();c.append(b)}}else if(b==CKEDITOR.TRISTATE_ON){f=[];for(k={};b=d.getNextParagraph();){for(i=c=null;b.getParent();){if(b.getParent().getName()=="blockquote"){c=b.getParent();i=b;break}b=b.getParent()}if(c&&i&&!i.getCustomData("blockquote_moveout")){f.push(i);
CKEDITOR.dom.element.setMarker(k,i,"blockquote_moveout",true)}}CKEDITOR.dom.element.clearAllMarkers(k);b=[];i=[];for(k={};f.length>0;){d=f.shift();c=d.getParent();if(d.getPrevious())if(d.getNext()){d.breakParent(d.getParent());i.push(d.getNext())}else d.remove().insertAfter(c);else d.remove().insertBefore(c);if(!c.getCustomData("blockquote_processed")){i.push(c);CKEDITOR.dom.element.setMarker(k,c,"blockquote_processed",true)}b.push(d)}CKEDITOR.dom.element.clearAllMarkers(k);for(f=i.length-1;f>=0;f--){c=
i[f];a:{k=c;for(var d=0,h=k.getChildCount(),l=void 0;d<h&&(l=k.getChild(d));d++)if(l.type==CKEDITOR.NODE_ELEMENT&&l.isBlockBoundary()){k=false;break a}k=true}k&&c.remove()}if(a.config.enterMode==CKEDITOR.ENTER_BR)for(c=true;b.length;){d=b.shift();if(d.getName()=="div"){f=new CKEDITOR.dom.documentFragment(a.document);c&&(d.getPrevious()&&!(d.getPrevious().type==CKEDITOR.NODE_ELEMENT&&d.getPrevious().isBlockBoundary()))&&f.append(a.document.createElement("br"));for(c=d.getNext()&&!(d.getNext().type==
CKEDITOR.NODE_ELEMENT&&d.getNext().isBlockBoundary());d.getFirst();)d.getFirst().remove().appendTo(f);c&&f.append(a.document.createElement("br"));f.replace(d);c=false}}}g.selectBookmarks(j);a.focus()}},refresh:function(a,b){this.setState(a.elementPath(b.block||b.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"};CKEDITOR.plugins.add("blockquote",{init:function(e){if(!e.blockless){e.addCommand("blockquote",
a);e.ui.addButton&&e.ui.addButton("Blockquote",{label:e.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"})}}})}(),"use strict",function(){function a(a,b,d){if(!b.type)b.type="auto";if(d&&a.fire("beforePaste",b)===false||!b.dataValue&&b.dataTransfer.isEmpty())return false;if(!b.dataValue)b.dataValue="";if(CKEDITOR.env.gecko&&b.method=="drop"&&a.toolbox)a.once("afterPaste",function(){a.toolbox.focus()});return a.fire("paste",b)}function e(b){function d(){var a=b.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var c=
function(a){y.initPasteDataTransfer(a,b);a.data.preventDefault()};a.on("copy",c);a.on("cut",c);a.on("cut",function(){b.extractSelectedHtml()},null,null,999)}a.on(y.mainPasteEvent,function(a){y.mainPasteEvent=="beforepaste"&&z||x(a)});if(y.mainPasteEvent=="beforepaste"){a.on("paste",function(a){if(!B){f();a.data.preventDefault();x(a);i("paste")||b.openDialog("paste")}});a.on("contextmenu",g,null,null,0);a.on("beforepaste",function(a){a.data&&(!a.data.$.ctrlKey&&!a.data.$.shiftKey)&&g()},null,null,
0)}a.on("beforecut",function(){!z&&j(b)});var e;a.attachListener(CKEDITOR.env.ie?a:b.document.getDocumentElement(),"mouseup",function(){e=setTimeout(function(){v()},0)});b.on("destroy",function(){clearTimeout(e)});a.on("keyup",v)}function c(a){return{type:a,canUndo:a=="cut",startDisabled:true,exec:function(){this.type=="cut"&&j();var a;var d=this.type;if(CKEDITOR.env.ie)a=i(d);else try{a=b.document.$.execCommand(d,false,null)}catch(c){a=false}a||b.showNotification(b.lang.clipboard[this.type+"Error"]);
return a}}}function e(){return{canUndo:false,async:true,exec:function(b,d){var c=function(d,c){d&&a(b,d,!!c);b.fire("afterCommandExec",{name:"paste",command:h,returnValue:!!d})},h=this;typeof d=="string"?c({dataValue:d,method:"paste",dataTransfer:y.initPasteDataTransfer()},1):b.getClipboardData(c)}}}function f(){B=1;setTimeout(function(){B=0},100)}function g(){z=1;setTimeout(function(){z=0},10)}function i(a){var d=b.document,c=d.getBody(),e=false,f=function(){e=true};c.on(a,f);CKEDITOR.env.version>
7?d.$.execCommand(a):d.$.selection.createRange().execCommand(a);c.removeListener(a,f);return e}function j(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var a=b.getSelection(),d,c,e;if(a.getType()==CKEDITOR.SELECTION_ELEMENT&&(d=a.getSelectedElement())){c=a.getRanges()[0];e=b.document.createText("");e.insertBefore(d);c.setStartBefore(e);c.setEndAfter(d);a.selectRanges([c]);setTimeout(function(){if(d.getParent()){e.remove();a.selectElement(d)}},0)}}}function k(a,d){var c=b.document,e=b.editable(),f=function(a){a.cancel()},
g;if(!c.getById("cke_pastebin")){var i=b.getSelection(),j=i.createBookmarks();CKEDITOR.env.ie&&i.root.fire("selectionchange");var o=new CKEDITOR.dom.element((CKEDITOR.env.webkit||e.is("body"))&&!CKEDITOR.env.ie?"body":"div",c);o.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var l=0,c=c.getWindow();if(CKEDITOR.env.webkit){e.append(o);o.addClass("cke_editable");if(!e.is("body")){l=e.getComputedStyle("position")!="static"?e:CKEDITOR.dom.element.get(e.$.offsetParent);l=l.getDocumentPosition().y}}else e.getAscendant(CKEDITOR.env.ie?
"body":"html",1).append(o);o.setStyles({position:"absolute",top:c.getScrollPosition().y-l+10+"px",width:"1px",height:Math.max(1,c.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0});CKEDITOR.env.safari&&o.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text"));if(l=o.getParent().isReadOnly()){o.setOpacity(0);o.setAttribute("contenteditable",true)}else o.setStyle(b.config.contentsLangDirection=="ltr"?"left":"right","-1000px");b.on("selectionChange",f,null,null,0);if(CKEDITOR.env.webkit||
CKEDITOR.env.gecko)g=e.once("blur",f,null,null,-100);l&&o.focus();l=new CKEDITOR.dom.range(o);l.selectNodeContents(o);var s=l.select();CKEDITOR.env.ie&&(g=e.once("blur",function(){b.lockSelection(s)}));var m=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){if(CKEDITOR.env.webkit)CKEDITOR.document.getBody().$.scrollTop=m;g&&g.removeListener();CKEDITOR.env.ie&&e.focus();i.selectBookmarks(j);o.remove();var a;if(CKEDITOR.env.webkit&&(a=o.getFirst())&&a.is&&a.hasClass("Apple-style-span"))o=
a;b.removeListener("selectionChange",f);d(o.getHtml())},0)}}function w(){if(y.mainPasteEvent=="paste"){b.fire("beforePaste",{type:"auto",method:"paste"});return false}b.focus();f();var a=b.focusManager;a.lock();if(b.editable().fire(y.mainPasteEvent)&&!i("paste")){a.unlock();return false}a.unlock();return true}function u(a){if(b.mode=="wysiwyg")switch(a.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:a=b.editable();f();y.mainPasteEvent=="paste"&&a.fire("beforepaste");break;case CKEDITOR.CTRL+
88:case CKEDITOR.SHIFT+46:b.fire("saveSnapshot");setTimeout(function(){b.fire("saveSnapshot")},50)}}function x(d){var c={type:"auto",method:"paste",dataTransfer:y.initPasteDataTransfer(d)};c.dataTransfer.cacheData();var e=b.fire("beforePaste",c)!==false;if(e&&y.canClipboardApiBeTrusted(c.dataTransfer,b)){d.data.preventDefault();setTimeout(function(){a(b,c)},0)}else k(d,function(d){c.dataValue=d.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,"");e&&a(b,c)})}function v(){if(b.mode=="wysiwyg"){var a=
r("paste");b.getCommand("cut").setState(r("cut"));b.getCommand("copy").setState(r("copy"));b.getCommand("paste").setState(a);b.fire("pasteState",a)}}function r(a){if(A&&a in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if(a=="paste")return CKEDITOR.TRISTATE_OFF;var a=b.getSelection(),d=a.getRanges();return a.getType()==CKEDITOR.SELECTION_NONE||d.length==1&&d[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var y=CKEDITOR.plugins.clipboard,z=0,B=0,A=0;(function(){b.on("key",u);b.on("contentDom",
d);b.on("selectionChange",function(a){A=a.data.selection.getRanges()[0].checkReadOnly();v()});b.contextMenu&&b.contextMenu.addListener(function(a,b){A=b.getRanges()[0].checkReadOnly();return{cut:r("cut"),copy:r("copy"),paste:r("paste")}})})();(function(){function a(d,c,e,f,g){var i=b.lang.clipboard[c];b.addCommand(c,e);b.ui.addButton&&b.ui.addButton(d,{label:i,command:c,toolbar:"clipboard,"+f});b.addMenuItems&&b.addMenuItem(c,{label:i,command:c,group:"clipboard",order:g})}a("Cut","cut",c("cut"),10,
1);a("Copy","copy",c("copy"),20,4);a("Paste","paste",e(),30,8)})();b.getClipboardData=function(a,d){function c(a){a.removeListener();a.cancel();d(a.data)}function e(a){a.removeListener();a.cancel();j=true;d({type:i,dataValue:a.data,method:"paste"})}function f(){this.customTitle=a&&a.title}var g=false,i="auto",j=false;if(!d){d=a;a=null}b.on("paste",c,null,null,0);b.on("beforePaste",function(a){a.removeListener();g=true;i=a.data.type},null,null,1E3);if(w()===false){b.removeListener("paste",c);if(g&&
b.fire("pasteDialog",f)){b.on("pasteDialogCommit",e);b.on("dialogHide",function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",e);setTimeout(function(){j||d(null)},10)})}else d(null)}}}function b(a){if(CKEDITOR.env.webkit){if(!a.match(/^[^<]*$/g)&&!a.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi)&&!a.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi))return"html"}else if(CKEDITOR.env.gecko){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}else return"html";
return"htmlifiedtext"}function g(a,b){function d(a){return CKEDITOR.tools.repeat("</p><p>",~~(a/2))+(a%2==1?"<br>":"")}b=b.replace(/\s+/g," ").replace(/> +</g,"><").replace(/<br ?\/>/gi,"<br>");b=b.replace(/<\/?[A-Z]+>/g,function(a){return a.toLowerCase()});if(b.match(/^[^<]$/))return b;if(CKEDITOR.env.webkit&&b.indexOf("<div>")>-1){b=b.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"<br>").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"<div></div>");b.match(/<div>(<br>|)<\/div>/)&&(b="<p>"+
b.replace(/(<div>(<br>|)<\/div>)+/g,function(a){return d(a.split("</div><div>").length+1)})+"</p>");b=b.replace(/<\/div><div>/g,"<br>");b=b.replace(/<\/?div>/g,"")}if(CKEDITOR.env.gecko&&a.enterMode!=CKEDITOR.ENTER_BR){CKEDITOR.env.gecko&&(b=b.replace(/^<br><br>$/,"<br>"));b.indexOf("<br><br>")>-1&&(b="<p>"+b.replace(/(<br>){2,}/g,function(a){return d(a.length/4)})+"</p>")}return i(a,b)}function c(){function a(){var b={},d;for(d in CKEDITOR.dtd)d.charAt(0)!="$"&&(d!="div"&&d!="span")&&(b[d]=1);return b}
var b,d;return{get:function(c){if(c=="plain-text")return b||(b=new CKEDITOR.filter("br"));if(c=="semantic-content"){if(!(c=d)){c=new CKEDITOR.filter;c.allow({$1:{elements:a(),attributes:true,styles:false,classes:false}});c=d=c}return c}return c?new CKEDITOR.filter(c):null}}}function j(a,b,d){var b=CKEDITOR.htmlParser.fragment.fromHtml(b),c=new CKEDITOR.htmlParser.basicWriter;d.applyTo(b,true,false,a.activeEnterMode);b.writeHtml(c);return c.getHtml()}function i(a,b){a.enterMode==CKEDITOR.ENTER_BR?
b=b.replace(/(<\/p><p>)+/g,function(a){return CKEDITOR.tools.repeat("<br>",a.length/7*2)}).replace(/<\/?p>/g,""):a.enterMode==CKEDITOR.ENTER_DIV&&(b=b.replace(/<(\/)?p>/g,"<$1div>"));return b}function f(a){a.data.preventDefault();a.data.$.dataTransfer.dropEffect="none"}function k(b){var d=CKEDITOR.plugins.clipboard;b.on("contentDom",function(){function c(d,e,f){e.select();a(b,{dataTransfer:f,method:"drop"},1);f.sourceEditor.fire("saveSnapshot");f.sourceEditor.editable().extractHtmlFromRange(d);f.sourceEditor.getSelection().selectRanges([d]);
f.sourceEditor.fire("saveSnapshot")}function e(c,f){c.select();a(b,{dataTransfer:f,method:"drop"},1);d.resetDragDataTransfer()}function f(a,d,c){var e={$:a.data.$,target:a.data.getTarget()};if(d)e.dragRange=d;if(c)e.dropRange=c;b.fire(a.name,e)===false&&a.data.preventDefault()}function g(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());return a.getChildCount()}var i=b.editable(),j=CKEDITOR.plugins.clipboard.getDropTarget(b),k=b.ui.space("top"),w=b.ui.space("bottom");d.preventDefaultDropOnElement(k);
d.preventDefaultDropOnElement(w);i.attachListener(j,"dragstart",f);i.attachListener(b,"dragstart",d.resetDragDataTransfer,d,null,1);i.attachListener(b,"dragstart",function(a){d.initDragDataTransfer(a,b);a=d.dragRange=b.getSelection().getRanges()[0];if(CKEDITOR.env.ie&&CKEDITOR.env.version<10){d.dragStartContainerChildCount=a?g(a.startContainer):null;d.dragEndContainerChildCount=a?g(a.endContainer):null}},null,null,2);i.attachListener(j,"dragend",f);i.attachListener(b,"dragend",d.initDragDataTransfer,
d,null,1);i.attachListener(b,"dragend",d.resetDragDataTransfer,d,null,100);i.attachListener(j,"dragover",function(a){var b=a.data.getTarget();b&&b.is&&b.is("html")?a.data.preventDefault():CKEDITOR.env.ie&&(CKEDITOR.plugins.clipboard.isFileApiSupported&&a.data.$.dataTransfer.types.contains("Files"))&&a.data.preventDefault()});i.attachListener(j,"drop",function(a){a.data.preventDefault();var c=a.data.getTarget();if(!c.isReadOnly()||c.type==CKEDITOR.NODE_ELEMENT&&c.is("html")){var c=d.getRangeAtDropPosition(a,
b),e=d.dragRange;c&&f(a,e,c)}});i.attachListener(b,"drop",d.initDragDataTransfer,d,null,1);i.attachListener(b,"drop",function(a){if(a=a.data){var f=a.dropRange,g=a.dragRange,i=a.dataTransfer;i.getTransferType(b)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){d.internalDrop(g,f,i,b)},0):i.getTransferType(b)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?c(g,f,i):e(f,i)}},null,null,9999)})}CKEDITOR.plugins.add("clipboard",{requires:"dialog",init:function(a){var d,f=c();a.config.forcePasteAsPlainText?
d="plain-text":a.config.pasteFilter?d=a.config.pasteFilter:CKEDITOR.env.webkit&&!("pasteFilter"in a.config)&&(d="semantic-content");a.pasteFilter=f.get(d);e(a);k(a);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js"));a.on("paste",function(b){if(!b.data.dataTransfer)b.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer;if(!b.data.dataValue){var d=b.data.dataTransfer,c=d.getData("text/html");if(c){b.data.dataValue=c;b.data.type="html"}else if(c=d.getData("text/plain")){b.data.dataValue=
a.editable().transformPlainTextToHtml(c);b.data.type="text"}}},null,null,1);a.on("paste",function(a){var b=a.data.dataValue,d=CKEDITOR.dtd.$block;if(b.indexOf("Apple-")>-1){b=b.replace(/<span class="Apple-converted-space">&nbsp;<\/span>/gi," ");a.data.type!="html"&&(b=b.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(a,b){return b.replace(/\t/g,"&nbsp;&nbsp; &nbsp;")}));if(b.indexOf('<br class="Apple-interchange-newline">')>-1){a.data.startsWithEOL=1;a.data.preSniffing="html";
b=b.replace(/<br class="Apple-interchange-newline">/,"")}b=b.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1")}if(b.match(/^<[^<]+cke_(editable|contents)/i)){var c,e,f=new CKEDITOR.dom.element("div");for(f.setHtml(b);f.getChildCount()==1&&(c=f.getFirst())&&c.type==CKEDITOR.NODE_ELEMENT&&(c.hasClass("cke_editable")||c.hasClass("cke_contents"));)f=e=c;e&&(b=e.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?b=b.replace(/^&nbsp;(?: |\r\n)?<(\w+)/g,function(b,c){if(c.toLowerCase()in d){a.data.preSniffing=
"html";return"<"+c}return b}):CKEDITOR.env.webkit?b=b.replace(/<\/(\w+)><div><br><\/div>$/,function(b,c){if(c in d){a.data.endsWithEOL=1;return"</"+c+">"}return b}):CKEDITOR.env.gecko&&(b=b.replace(/(\s)<br>$/,"$1"));a.data.dataValue=b},null,null,3);a.on("paste",function(d){var d=d.data,c=d.type,e=d.dataValue,i,k=a.config.clipboard_defaultContentType||"html",l=d.dataTransfer.getTransferType(a);i=c=="html"||d.preSniffing=="html"?"html":b(e);i=="htmlifiedtext"&&(e=g(a.config,e));c=="text"&&i=="html"?
e=j(a,e,f.get("plain-text")):l==CKEDITOR.DATA_TRANSFER_EXTERNAL&&(a.pasteFilter&&!d.dontFilter)&&(e=j(a,e,a.pasteFilter));d.startsWithEOL&&(e='<br data-cke-eol="1">'+e);d.endsWithEOL&&(e=e+'<br data-cke-eol="1">');c=="auto"&&(c=i=="html"||k=="html"?"html":"text");d.type=c;d.dataValue=e;delete d.preSniffing;delete d.startsWithEOL;delete d.endsWithEOL},null,null,6);a.on("paste",function(b){b=b.data;if(b.dataValue){a.insertHtml(b.dataValue,b.type,b.range);setTimeout(function(){a.fire("afterPaste")},
0)}},null,null,1E3);a.on("pasteDialog",function(b){setTimeout(function(){a.openDialog("paste",b.data)},0)})}});CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:!CKEDITOR.env.ie&&!CKEDITOR.env.iOS,isCustomDataTypesSupported:!CKEDITOR.env.ie,isFileApiSupported:!CKEDITOR.env.ie||CKEDITOR.env.version>9,mainPasteEvent:CKEDITOR.env.ie&&!CKEDITOR.env.edge?"beforepaste":"paste",canClipboardApiBeTrusted:function(a,b){return a.getTransferType(b)!=CKEDITOR.DATA_TRANSFER_EXTERNAL||CKEDITOR.env.chrome&&!a.isEmpty()||
CKEDITOR.env.gecko&&(a.getData("text/html")||a.getFilesCount())?true:false},getDropTarget:function(a){var b=a.editable();return CKEDITOR.env.ie&&CKEDITOR.env.version<9||b.isInline()?b:a.document},fixSplitNodesAfterDrop:function(a,b,d,c){function e(a,d,c){var f=a;f.type==CKEDITOR.NODE_TEXT&&(f=a.getParent());if(f.equals(d)&&c!=d.getChildCount()){a=b;d=a.startContainer.getChild(a.startOffset-1);c=a.startContainer.getChild(a.startOffset);if(d&&d.type==CKEDITOR.NODE_TEXT&&c&&c.type==CKEDITOR.NODE_TEXT){f=
d.getLength();d.setText(d.getText()+c.getText());c.remove();a.setStart(d,f);a.collapse(true)}return true}}var f=b.startContainer;!(typeof c!="number"||typeof d!="number")&&(f.type==CKEDITOR.NODE_ELEMENT&&!e(a.startContainer,f,d))&&e(a.endContainer,f,c)},isDropRangeAffectedByDragRange:function(a,b){var d=b.startContainer,c=b.endOffset;return a.endContainer.equals(d)&&a.endOffset<=c||a.startContainer.getParent().equals(d)&&a.startContainer.getIndex()<c||a.endContainer.getParent().equals(d)&&a.endContainer.getIndex()<
c?true:false},internalDrop:function(b,d,c,e){var f=CKEDITOR.plugins.clipboard,g=e.editable(),i,j;e.fire("saveSnapshot");e.fire("lockSnapshot",{dontUpdate:1});CKEDITOR.env.ie&&CKEDITOR.env.version<10&&this.fixSplitNodesAfterDrop(b,d,f.dragStartContainerChildCount,f.dragEndContainerChildCount);(j=this.isDropRangeAffectedByDragRange(b,d))||(i=b.createBookmark(false));f=d.clone().createBookmark(false);j&&(i=b.createBookmark(false));b=i.startNode;j=i.endNode;var k=f.startNode;if(j&&b.getPosition(k)==CKEDITOR.POSITION_PRECEDING&&
j.getPosition(k)==CKEDITOR.POSITION_FOLLOWING){e.getSelection().selectRanges([d]);b.remove();j.remove();k.remove()}else{b=e.createRange();b.moveToBookmark(i);g.extractHtmlFromRange(b,1);d=e.createRange();d.moveToBookmark(f);a(e,{dataTransfer:c,method:"drop",range:d},1)}e.fire("unlockSnapshot")},getRangeAtDropPosition:function(a,b){var d=a.data.$,c=d.clientX,e=d.clientY,f=b.getSelection(true).getRanges()[0],g=b.createRange();if(a.data.testRange)return a.data.testRange;if(document.caretRangeFromPoint){d=
b.document.$.caretRangeFromPoint(c,e);g.setStart(CKEDITOR.dom.node(d.startContainer),d.startOffset);g.collapse(true)}else if(d.rangeParent){g.setStart(CKEDITOR.dom.node(d.rangeParent),d.rangeOffset);g.collapse(true)}else{if(CKEDITOR.env.ie&&CKEDITOR.env.version>8&&f&&b.editable().hasFocus)return f;if(document.body.createTextRange){b.focus();d=b.document.getBody().$.createTextRange();try{for(var i=false,j=0;j<20&&!i;j++){if(!i)try{d.moveToPoint(c,e-j);i=true}catch(k){}if(!i)try{d.moveToPoint(c,e+j);
i=true}catch(u){}}if(i){var x="cke-temp-"+(new Date).getTime();d.pasteHTML('<span id="'+x+'">​</span>');var v=b.document.getById(x);g.moveToPosition(v,CKEDITOR.POSITION_BEFORE_START);v.remove()}else{var r=b.document.$.elementFromPoint(c,e),y=new CKEDITOR.dom.element(r),z;if(!y.equals(b.editable())&&y.getName()!="html"){z=y.getClientRect();c<z.left?g.setStartAt(y,CKEDITOR.POSITION_AFTER_START):g.setStartAt(y,CKEDITOR.POSITION_BEFORE_END);g.collapse(true)}else return f&&f.startContainer&&!f.startContainer.equals(b.editable())?
f:null}}catch(B){return null}}else return null}return g},initDragDataTransfer:function(a,b){var d=a.data.$?a.data.$.dataTransfer:null,c=new this.dataTransfer(d,b);d?this.dragData&&c.id==this.dragData.id?c=this.dragData:this.dragData=c:this.dragData?c=this.dragData:this.dragData=c;a.data.dataTransfer=c},resetDragDataTransfer:function(){this.dragData=null},initPasteDataTransfer:function(a,b){if(this.isCustomCopyCutSupported&&a&&a.data&&a.data.$){var d=new this.dataTransfer(a.data.$.clipboardData,b);
if(this.copyCutData&&d.id==this.copyCutData.id){d=this.copyCutData;d.$=a.data.$.clipboardData}else this.copyCutData=d;return d}return new this.dataTransfer(null,b)},preventDefaultDropOnElement:function(a){a&&a.on("dragover",f)}};var d=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?"cke/id":"Text";CKEDITOR.plugins.clipboard.dataTransfer=function(a,b){if(a)this.$=a;this._={metaRegExp:/^<meta.*?>/,bodyRegExp:/<body(?:[\s\S]*?)>([\s\S]*)<\/body>/,fragmentRegExp:/<\!--(?:Start|End)Fragment--\>/g,
data:{},files:[],normalizeType:function(a){a=a.toLowerCase();return a=="text"||a=="text/plain"?"Text":a=="url"?"URL":a}};this.id=this.getData(d);if(!this.id)this.id=d=="Text"?"":"cke-"+CKEDITOR.tools.getUniqueId();if(d!="Text")try{this.$.setData(d,this.id)}catch(c){}if(b){this.sourceEditor=b;this.setData("text/html",b.getSelectedHtml(1));d!="Text"&&!this.getData("text/plain")&&this.setData("text/plain",b.getSelection().getSelectedText())}};CKEDITOR.DATA_TRANSFER_INTERNAL=1;CKEDITOR.DATA_TRANSFER_CROSS_EDITORS=
2;CKEDITOR.DATA_TRANSFER_EXTERNAL=3;CKEDITOR.plugins.clipboard.dataTransfer.prototype={getData:function(a){var a=this._.normalizeType(a),b=this._.data[a];if(b===void 0||b===null||b==="")try{b=this.$.getData(a)}catch(d){}if(b===void 0||b===null||b==="")b="";if(a=="text/html"){b=b.replace(this._.metaRegExp,"");if((a=this._.bodyRegExp.exec(b))&&a.length){b=a[1];b=b.replace(this._.fragmentRegExp,"")}}else a=="Text"&&(CKEDITOR.env.gecko&&this.getFilesCount()&&b.substring(0,7)=="file://")&&(b="");return b},
setData:function(a,b){a=this._.normalizeType(a);this._.data[a]=b;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||!(a!="URL"&&a!="Text")){if(d=="Text"&&a=="Text")this.id=b;try{this.$.setData(a,b)}catch(c){}}},getTransferType:function(a){return this.sourceEditor?this.sourceEditor==a?CKEDITOR.DATA_TRANSFER_INTERNAL:CKEDITOR.DATA_TRANSFER_CROSS_EDITORS:CKEDITOR.DATA_TRANSFER_EXTERNAL},cacheData:function(){function a(d){var d=b._.normalizeType(d),c=b.getData(d);c&&(b._.data[d]=c)}if(this.$){var b=
this,d,c;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(d=0;d<this.$.types.length;d++)a(this.$.types[d])}else{a("Text");a("URL")}c=this._getImageFromClipboard();if(this.$&&this.$.files||c){this._.files=[];for(d=0;d<this.$.files.length;d++)this._.files.push(this.$.files[d]);this._.files.length===0&&c&&this._.files.push(c)}}},getFilesCount:function(){return this._.files.length?this._.files.length:this.$&&this.$.files&&this.$.files.length?this.$.files.length:this._getImageFromClipboard()?
1:0},getFile:function(a){return this._.files.length?this._.files[a]:this.$&&this.$.files&&this.$.files.length?this.$.files[a]:a===0?this._getImageFromClipboard():void 0},isEmpty:function(){var a={},b;if(this.getFilesCount())return false;for(b in this._.data)a[b]=1;if(this.$)if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(var c=0;c<this.$.types.length;c++)a[this.$.types[c]]=1}else{a.Text=1;a.URL=1}d!="Text"&&(a[d]=0);for(b in a)if(a[b]&&this.getData(b)!=="")return false;
return true},_getImageFromClipboard:function(){var a;if(this.$&&this.$.items&&this.$.items[0])try{if((a=this.$.items[0].getAsFile())&&a.type)return a}catch(b){}}}}(),function(){var a='<a id="{id}" class="cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' title="{title}" tabindex="-1" hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="{hasArrow}" aria-disabled="{ariaDisabled}"';CKEDITOR.env.gecko&&
CKEDITOR.env.mac&&(a=a+' onkeypress="return false;"');CKEDITOR.env.gecko&&(a=a+' onblur="this.style.cssText = this.style.cssText;"');var a=a+(' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span class="cke_button_icon cke_button__{iconName}_icon" style="{style}"'),a=a+'>&nbsp;</span><span id="{id}_label" class="cke_button_label cke_button__{name}_label" aria-hidden="false">{label}</span>{arrowHtml}</a>',
e=CKEDITOR.addTemplate("buttonArrow",'<span class="cke_button_arrow">'+(CKEDITOR.env.hc?"&#9660;":"")+"</span>"),b=CKEDITOR.addTemplate("button",a);CKEDITOR.plugins.add("button",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}});CKEDITOR.UI_BUTTON="button";CKEDITOR.ui.button=function(a){CKEDITOR.tools.extend(this,a,{title:a.label,click:a.click||function(b){b.execCommand(a.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a)}};
CKEDITOR.ui.button.prototype={render:function(a,c){function j(){var b=a.mode;if(b){b=this.modes[b]?n[b]!==void 0?n[b]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;b=a.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:b;this.setState(b);this.refresh&&this.refresh()}}var i=CKEDITOR.env,f=this._.id=CKEDITOR.tools.getNextId(),k="",d=this.command,h;this._.editor=a;var l={id:f,button:this,editor:a,focus:function(){CKEDITOR.document.getById(f).focus()},execute:function(){this.button.click(a)},attach:function(a){this.button.attach(a)}},
q=CKEDITOR.tools.addFunction(function(a){if(l.onkey){a=new CKEDITOR.dom.event(a);return l.onkey(l,a.getKeystroke())!==false}}),p=CKEDITOR.tools.addFunction(function(a){var b;l.onfocus&&(b=l.onfocus(l,new CKEDITOR.dom.event(a))!==false);return b}),m=0;l.clickFn=h=CKEDITOR.tools.addFunction(function(){if(m){a.unlockSelection(1);m=0}l.execute();i.iOS&&a.focus()});if(this.modes){var n={};a.on("beforeModeUnload",function(){if(a.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED)n[a.mode]=this._.state},this);
a.on("activeFilterChange",j,this);a.on("mode",j,this);!this.readOnly&&a.on("readOnly",j,this)}else if(d)if(d=a.getCommand(d)){d.on("state",function(){this.setState(d.state)},this);k=k+(d.state==CKEDITOR.TRISTATE_ON?"on":d.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off")}if(this.directional)a.on("contentDirChanged",function(b){var d=CKEDITOR.document.getById(this._.id),c=d.getFirst(),b=b.data;b!=a.lang.dir?d.addClass("cke_"+b):d.removeClass("cke_ltr").removeClass("cke_rtl");c.setAttribute("style",
CKEDITOR.skin.getIconStyle(s,b=="rtl",this.icon,this.iconOffset))},this);d||(k=k+"off");var o=this.name||this.command,s=o;if(this.icon&&!/\./.test(this.icon)){s=this.icon;this.icon=null}k={id:f,name:o,iconName:s,label:this.label,cls:this.className||"",state:k,ariaDisabled:k=="disabled"?"true":"false",title:this.title,titleJs:i.gecko&&!i.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:q,focusFn:p,clickFn:h,style:CKEDITOR.skin.getIconStyle(s,a.lang.dir=="rtl",
this.icon,this.iconOffset),arrowHtml:this.hasArrow?e.output():""};b.output(k,c);if(this.onRender)this.onRender();return l},setState:function(a){if(this._.state==a)return false;this._.state=a;var b=CKEDITOR.document.getById(this._.id);if(b){b.setState(a,"cke_button");a==CKEDITOR.TRISTATE_DISABLED?b.setAttribute("aria-disabled",true):b.removeAttribute("aria-disabled");if(this.hasArrow){a=a==CKEDITOR.TRISTATE_ON?this._.editor.lang.button.selectedLabel.replace(/%1/g,this.label):this.label;CKEDITOR.document.getById(this._.id+
"_label").setText(a)}else a==CKEDITOR.TRISTATE_ON?b.setAttribute("aria-pressed",true):b.removeAttribute("aria-pressed");return true}return false},getState:function(){return this._.state},toFeature:function(a){if(this._.feature)return this._.feature;var b=this;!this.allowedContent&&(!this.requiredContent&&this.command)&&(b=a.getCommand(this.command)||b);return this._.feature=b}};CKEDITOR.ui.prototype.addButton=function(a,b){this.add(a,CKEDITOR.UI_BUTTON,b)}}(),CKEDITOR.plugins.add("panelbutton",{requires:"button",
onLoad:function(){function a(a){var b=this._;if(b.state!=CKEDITOR.TRISTATE_DISABLED){this.createPanel(a);b.on?b.panel.hide():b.panel.showBlock(this._.id,this.document.getById(this._.id),4)}}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(e){var b=e.panel||{};delete e.panel;this.base(e);this.document=b.parent&&b.parent.getDocument()||CKEDITOR.document;b.block={attributes:b.attributes};this.hasArrow=b.toolbarRelated=true;this.click=a;this._={panelDefinition:b}},
statics:{handler:{create:function(a){return new CKEDITOR.ui.panelButton(a)}}},proto:{createPanel:function(a){var b=this._;if(!b.panel){var g=this._.panelDefinition,c=this._.panelDefinition.block,j=g.parent||CKEDITOR.document.getBody(),i=this._.panel=new CKEDITOR.ui.floatPanel(a,j,g),g=i.addBlock(b.id,c),f=this;i.onShow=function(){f.className&&this.element.addClass(f.className+"_panel");f.setState(CKEDITOR.TRISTATE_ON);b.on=1;f.editorFocus&&a.focus();if(f.onOpen)f.onOpen()};i.onHide=function(c){f.className&&
this.element.getFirst().removeClass(f.className+"_panel");f.setState(f.modes&&f.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);b.on=0;if(!c&&f.onClose)f.onClose()};i.onEscape=function(){i.hide(1);f.document.getById(b.id).focus()};if(this.onBlock)this.onBlock(i,g);g.onHide=function(){b.on=0;f.setState(CKEDITOR.TRISTATE_OFF)}}}}})},beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_PANELBUTTON,CKEDITOR.ui.panelButton.handler)}}),CKEDITOR.UI_PANELBUTTON="panelbutton",function(){CKEDITOR.plugins.add("panel",
{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}});CKEDITOR.UI_PANEL="panel";CKEDITOR.ui.panel=function(a,b){b&&CKEDITOR.tools.extend(this,b);CKEDITOR.tools.extend(this,{className:"",css:[]});this.id=CKEDITOR.tools.getNextId();this.document=a;this.isFramed=this.forceIFrame||this.css.length;this._={blocks:{}}};CKEDITOR.ui.panel.handler={create:function(a){return new CKEDITOR.ui.panel(a)}};var a=CKEDITOR.addTemplate("panel",'<div lang="{langCode}" id="{id}" dir={dir} class="cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style="z-index:{z-index}" role="presentation">{frame}</div>'),
e=CKEDITOR.addTemplate("panel-frame",'<iframe id="{id}" class="cke_panel_frame" role="presentation" frameborder="0" src="{src}"></iframe>'),b=CKEDITOR.addTemplate("panel-frame-inner",'<!DOCTYPE html><html class="cke_panel_container {env}" dir="{dir}" lang="{langCode}"><head>{css}</head><body class="cke_{dir}" style="margin:0;padding:0" onload="{onload}"></body></html>');CKEDITOR.ui.panel.prototype={render:function(g,c){this.getHolderElement=function(){var a=this._.holder;if(!a){if(this.isFramed){var a=
this.document.getById(this.id+"_frame"),c=a.getParent(),a=a.getFrameDocument();CKEDITOR.env.iOS&&c.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"});c=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=true;if(this.onLoad)this.onLoad()},this));a.write(b.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+c+");"},j)));a.getWindow().$.CKEDITOR=CKEDITOR;a.on("keydown",function(a){var b=a.data.getKeystroke(),
c=this.document.getById(this.id).getAttribute("dir");this._.onKeyDown&&this._.onKeyDown(b)===false?a.data.preventDefault():(b==27||b==(c=="rtl"?39:37))&&this.onEscape&&this.onEscape(b)===false&&a.data.preventDefault()},this);a=a.getBody();a.unselectable();CKEDITOR.env.air&&CKEDITOR.tools.callFunction(c)}else a=this.document.getById(this.id);this._.holder=a}return a};var j={editorId:g.id,id:this.id,langCode:g.langCode,dir:g.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":g.config.baseFloatZIndex+
1};if(this.isFramed){var i=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";j.frame=e.output({id:this.id+"_frame",src:i})}i=a.output(j);c&&c.push(i);return i},addBlock:function(a,b){b=this._.blocks[a]=b instanceof CKEDITOR.ui.panel.block?b:new CKEDITOR.ui.panel.block(this.getHolderElement(),b);this._.currentBlock||this.showBlock(a);return b},getBlock:function(a){return this._.blocks[a]},
showBlock:function(a){var a=this._.blocks[a],b=this._.currentBlock,e=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");b&&b.hide();this._.currentBlock=a;CKEDITOR.fire("ariaWidget",e);a._.focusIndex=-1;this._.onKeyDown=a.onKeyDown&&CKEDITOR.tools.bind(a.onKeyDown,a);a.show();return a},destroy:function(){this.element&&this.element.remove()}};CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(a,b){this.element=a.append(a.getDocument().createElement("div",
{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));b&&CKEDITOR.tools.extend(this,b);this.element.setAttributes({role:this.attributes.role||"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]});this.keys={};this._.focusIndex=-1;this.element.disableContextMenu()},_:{markItem:function(a){if(a!=-1){a=this.element.getElementsByTag("a").getItem(this._.focusIndex=a);CKEDITOR.env.webkit&&a.getDocument().getWindow().focus();
a.focus();this.onMark&&this.onMark(a)}}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){(!this.onHide||this.onHide.call(this)!==true)&&this.element.setStyle("display","none")},onKeyDown:function(a,b){var e=this.keys[a];switch(e){case "next":for(var i=this._.focusIndex,e=this.element.getElementsByTag("a"),f;f=e.getItem(++i);)if(f.getAttribute("_cke_focus")&&f.$.offsetWidth){this._.focusIndex=i;f.focus();break}if(!f&&!b){this._.focusIndex=-1;return this.onKeyDown(a,1)}return false;
case "prev":i=this._.focusIndex;for(e=this.element.getElementsByTag("a");i>0&&(f=e.getItem(--i));){if(f.getAttribute("_cke_focus")&&f.$.offsetWidth){this._.focusIndex=i;f.focus();break}f=null}if(!f&&!b){this._.focusIndex=e.count();return this.onKeyDown(a,1)}return false;case "click":case "mouseup":i=this._.focusIndex;(f=i>=0&&this.element.getElementsByTag("a").getItem(i))&&(f.$[e]?f.$[e]():f.$["on"+e]());return false}return true}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function a(a,
g,c,j,i){var i=CKEDITOR.tools.genKey(g.getUniqueId(),c.getUniqueId(),a.lang.dir,a.uiColor||"",j.css||"",i||""),f=e[i];if(!f){f=e[i]=new CKEDITOR.ui.panel(g,j);f.element=c.append(CKEDITOR.dom.element.createFromHtml(f.render(a),g));f.element.setStyles({display:"none",position:"absolute"})}return f}var e={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(b,e,c,j){function i(){h.hide()}c.forceIFrame=1;c.toolbarRelated&&b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(e=CKEDITOR.document.getById("cke_"+
b.name));var f=e.getDocument(),j=a(b,f,e,c,j||0),k=j.element,d=k.getFirst(),h=this;k.disableContextMenu();this.element=k;this._={editor:b,panel:j,parentElement:e,definition:c,document:f,iframe:d,children:[],dir:b.lang.dir};b.on("mode",i);b.on("resize",i);if(!CKEDITOR.env.iOS)f.getWindow().on("resize",i)},proto:{addBlock:function(a,e){return this._.panel.addBlock(a,e)},addListBlock:function(a,e){return this._.panel.addListBlock(a,e)},getBlock:function(a){return this._.panel.getBlock(a)},showBlock:function(a,
e,c,j,i,f){var k=this._.panel,d=k.showBlock(a);this.allowBlur(false);a=this._.editor.editable();this._.returnFocus=a.hasFocus?a:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);this._.hideTimeout=0;var h=this.element,a=this._.iframe,a=CKEDITOR.env.ie&&!CKEDITOR.env.edge?a:new CKEDITOR.dom.window(a.$.contentWindow),l=h.getDocument(),q=this._.parentElement.getPositionedAncestor(),p=e.getDocumentPosition(l),l=q?q.getDocumentPosition(l):{x:0,y:0},m=this._.dir=="rtl",n=p.x+(j||0)-l.x,o=p.y+
(i||0)-l.y;if(m&&(c==1||c==4))n=n+e.$.offsetWidth;else if(!m&&(c==2||c==3))n=n+(e.$.offsetWidth-1);if(c==3||c==4)o=o+(e.$.offsetHeight-1);this._.panel._.offsetParentId=e.getId();h.setStyles({top:o+"px",left:0,display:""});h.setOpacity(0);h.getFirst().removeStyle("width");this._.editor.focusManager.add(a);if(!this._.blurSet){CKEDITOR.event.useCapture=true;a.on("blur",function(a){function b(){delete this._.returnFocus;this.hide()}if(this.allowBlur()&&a.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&
this.visible&&!this._.activeChild)if(CKEDITOR.env.iOS){if(!this._.hideTimeout)this._.hideTimeout=CKEDITOR.tools.setTimeout(b,0,this)}else b.call(this)},this);a.on("focus",function(){this._.focused=true;this.hideChild();this.allowBlur(true)},this);if(CKEDITOR.env.iOS){a.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this);a.on("touchend",function(){this._.hideTimeout=0;this.focus()},this)}CKEDITOR.event.useCapture=false;this._.blurSet=1}k.onEscape=CKEDITOR.tools.bind(function(a){if(this.onEscape&&
this.onEscape(a)===false)return false},this);CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.tools.bind(function(){h.removeStyle("width");if(d.autoSize){var a=d.element.getDocument(),a=(CKEDITOR.env.webkit?d.element:a.getBody()).$.scrollWidth;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+((h.$.offsetWidth||0)-(h.$.clientWidth||0)+3));h.setStyle("width",a+10+"px");a=d.element.$.scrollHeight;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+((h.$.offsetHeight||0)-(h.$.clientHeight||0)+3));h.setStyle("height",
a+"px");k._.currentBlock.element.setStyle("display","none").removeStyle("display")}else h.removeStyle("height");m&&(n=n-h.$.offsetWidth);h.setStyle("left",n+"px");var b=k.element.getWindow(),a=h.$.getBoundingClientRect(),b=b.getViewPaneSize(),c=a.width||a.right-a.left,e=a.height||a.bottom-a.top,g=m?a.right:b.width-a.left,i=m?b.width-a.right:a.left;m?g<c&&(n=i>c?n+c:b.width>c?n-a.left:n-a.right+b.width):g<c&&(n=i>c?n-c:b.width>c?n-a.right+b.width:n-a.left);c=a.top;b.height-a.top<e&&(o=c>e?o-e:b.height>
e?o-a.bottom+b.height:o-a.top);if(CKEDITOR.env.ie){b=a=new CKEDITOR.dom.element(h.$.offsetParent);b.getName()=="html"&&(b=b.getDocument().getBody());b.getComputedStyle("direction")=="rtl"&&(n=CKEDITOR.env.ie8Compat?n-h.getDocument().getDocumentElement().$.scrollLeft*2:n-(a.$.scrollWidth-a.$.clientWidth))}var a=h.getFirst(),j;(j=a.getCustomData("activePanel"))&&j.onHide&&j.onHide.call(this,1);a.setCustomData("activePanel",this);h.setStyles({top:o+"px",left:n+"px"});h.setOpacity(1);f&&f()},this);k.isLoaded?
a():k.onLoad=a;CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus();d.element.focus();if(CKEDITOR.env.webkit)CKEDITOR.document.getBody().$.scrollTop=a;this.allowBlur(true);this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:0,this);this.visible=1;this.onShow&&this.onShow.call(this)},focus:function(){if(CKEDITOR.env.webkit){var a=CKEDITOR.document.getActive();a&&!a.equals(this._.iframe)&&a.$.blur()}(this._.lastFocused||
this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var a=this._.iframe.getFrameDocument().getActive();a&&a.is("a")&&(this._.lastFocused=a)},hide:function(a){if(this.visible&&(!this.onHide||this.onHide.call(this)!==true)){this.hideChild();CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur();this.element.setStyle("display","none");this.visible=0;this.element.getFirst().removeCustomData("activePanel");if(a=a&&this._.returnFocus){CKEDITOR.env.webkit&&a.type&&
a.getWindow().$.focus();a.focus()}delete this._.lastFocused;this._.editor.fire("panelHide",this)}},allowBlur:function(a){var e=this._.panel;if(a!==void 0)e.allowBlur=a;return e.allowBlur},showAsChild:function(a,e,c,j,i,f){if(!(this._.activeChild==a&&a._.panel._.offsetParentId==c.getId())){this.hideChild();a.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this);this._.activeChild=a;this._.focused=false;a.showBlock(e,c,j,i,f);this.blur();
(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){a.element.getChild(0).$.style.cssText+=""},100)}},hideChild:function(a){var e=this._.activeChild;if(e){delete e.onHide;delete this._.activeChild;e.hide();a&&this.focus()}}}});CKEDITOR.on("instanceDestroyed",function(){var a=CKEDITOR.tools.isEmpty(CKEDITOR.instances),g;for(g in e){var c=e[g];a?c.destroy():c.element.hide()}a&&(e={})})}(),CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",init:function(a){function e(e,
f,g,d){var h=new CKEDITOR.style(c["colorButton_"+f+"Style"]),l=CKEDITOR.tools.getNextId()+"_colorBox";a.ui.add(e,CKEDITOR.UI_PANELBUTTON,{label:g,title:g,modes:{wysiwyg:1},editorFocus:0,toolbar:"colors,"+d,allowedContent:h,requiredContent:h,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":j.panelTitle}},onBlock:function(d,c){c.autoSize=true;c.element.addClass("cke_colorblock");c.element.setHtml(b(d,f,l));c.element.getDocument().getBody().setStyle("overflow","hidden");
CKEDITOR.ui.fire("ready",this);var e=c.keys,h=a.lang.dir=="rtl";e[h?37:39]="next";e[40]="next";e[9]="next";e[h?39:37]="prev";e[38]="prev";e[CKEDITOR.SHIFT+9]="prev";e[32]="click"},refresh:function(){a.activeFilter.check(h)||this.setState(CKEDITOR.TRISTATE_DISABLED)},onOpen:function(){var b=a.getSelection(),b=b&&b.getStartElement(),b=a.elementPath(b),d;if(b){b=b.block||b.blockLimit||a.document.getBody();do d=b&&b.getComputedStyle(f=="back"?"background-color":"color")||"transparent";while(f=="back"&&
d=="transparent"&&b&&(b=b.getParent()));if(!d||d=="transparent")d="#ffffff";this._.panel._.iframe.getFrameDocument().getById(l).setStyle("background-color",d);return d}}})}function b(b,e,k){var d=[],h=c.colorButton_colors.split(","),l=a.plugins.colordialog&&c.colorButton_enableMore!==false,q=h.length+(l?2:1),p=CKEDITOR.tools.addFunction(function(d,e){function f(a){this.removeListener("ok",f);this.removeListener("cancel",f);a.name=="ok"&&h(this.getContentElement("picker","selectedColor").getValue(),
e)}var h=arguments.callee;if(d=="?")a.openDialog("colordialog",function(){this.on("ok",f);this.on("cancel",f)});else{a.focus();b.hide();a.fire("saveSnapshot");a.removeStyle(new CKEDITOR.style(c["colorButton_"+e+"Style"],{color:"inherit"}));if(d){var j=c["colorButton_"+e+"Style"];j.childRule=e=="back"?function(a){return g(a)}:function(a){return!(a.is("a")||a.getElementsByTag("a").count())||g(a)};a.applyStyle(new CKEDITOR.style(j,{color:d}))}a.fire("saveSnapshot")}});d.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',
j.auto,'" onclick="CKEDITOR.tools.callFunction(',p,",null,'",e,"');return false;\" href=\"javascript:void('",j.auto,'\')" role="option" aria-posinset="1" aria-setsize="',q,'"><table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tr><td><span class="cke_colorbox" id="',k,'"></span></td><td colspan=7 align=center>',j.auto,'</td></tr></table></a><table role="presentation" cellspacing=0 cellpadding=0 width="100%">');for(k=0;k<h.length;k++){k%8===0&&d.push("</tr><tr>");var m=h[k].split("/"),
n=m[0],o=m[1]||n;m[1]||(n="#"+n.replace(/^(.)(.)(.)$/,"$1$1$2$2$3$3"));m=a.lang.colorbutton.colors[o]||o;d.push('<td><a class="cke_colorbox" _cke_focus=1 hidefocus=true title="',m,'" onclick="CKEDITOR.tools.callFunction(',p,",'",n,"','",e,"'); return false;\" href=\"javascript:void('",m,'\')" role="option" aria-posinset="',k+2,'" aria-setsize="',q,'"><span class="cke_colorbox" style="background-color:#',o,'"></span></a></td>')}l&&d.push('</tr><tr><td colspan=8 align=center><a class="cke_colormore" _cke_focus=1 hidefocus=true title="',
j.more,'" onclick="CKEDITOR.tools.callFunction(',p,",'?','",e,"');return false;\" href=\"javascript:void('",j.more,"')\"",' role="option" aria-posinset="',q,'" aria-setsize="',q,'">',j.more,"</a></td>");d.push("</tr></table>");return d.join("")}function g(a){return a.getAttribute("contentEditable")=="false"||a.getAttribute("data-nostyle")}var c=a.config,j=a.lang.colorbutton;if(!CKEDITOR.env.hc){e("TextColor","fore",j.textColorTitle,10);e("BGColor","back",j.bgColorTitle,20)}}}),CKEDITOR.config.colorButton_colors=
"000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF",CKEDITOR.config.colorButton_foreStyle={element:"span",styles:{color:"#(color)"},overrides:[{element:"font",attributes:{color:null}}]},CKEDITOR.config.colorButton_backStyle={element:"span",styles:{"background-color":"#(color)"}},CKEDITOR.plugins.colordialog=
{requires:"dialog",init:function(a){var e=new CKEDITOR.dialogCommand("colordialog");e.editorFocus=false;a.addCommand("colordialog",e);CKEDITOR.dialog.add("colordialog",this.path+"dialogs/colordialog.js");a.getColorFromDialog=function(b,e){var c=function(a){this.removeListener("ok",c);this.removeListener("cancel",c);a=a.name=="ok"?this.getValueOf("picker","selectedColor"):null;b.call(e,a)},j=function(a){a.on("ok",c);a.on("cancel",c)};a.execCommand("colordialog");if(a._.storedDialogs&&a._.storedDialogs.colordialog)j(a._.storedDialogs.colordialog);
else CKEDITOR.on("dialogDefinition",function(a){if(a.data.name=="colordialog"){var b=a.data.definition;a.removeListener();b.onLoad=CKEDITOR.tools.override(b.onLoad,function(a){return function(){j(this);b.onLoad=a;typeof a=="function"&&a.call(this)}})}})}}},CKEDITOR.plugins.add("colordialog",CKEDITOR.plugins.colordialog),CKEDITOR.plugins.add("menu",{requires:"floatpanel",beforeInit:function(a){for(var e=a.config.menu_groups.split(","),b=a._.menuGroups={},g=a._.menuItems={},c=0;c<e.length;c++)b[e[c]]=
c+1;a.addMenuGroup=function(a,c){b[a]=c||100};a.addMenuItem=function(a,c){b[c.group]&&(g[a]=new CKEDITOR.menuItem(this,a,c))};a.addMenuItems=function(a){for(var b in a)this.addMenuItem(b,a[b])};a.getMenuItem=function(a){return g[a]};a.removeMenuItem=function(a){delete g[a]}}}),function(){function a(a){a.sort(function(a,b){return a.group<b.group?-1:a.group>b.group?1:a.order<b.order?-1:a.order>b.order?1:0})}var e='<span class="cke_menuitem"><a id="{id}" class="cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href="{href}" title="{title}" tabindex="-1"_cke_focus=1 hidefocus="true" role="{role}" aria-haspopup="{hasPopup}" aria-disabled="{disabled}" {ariaChecked}';
CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e=e+' onkeypress="return false;"');CKEDITOR.env.gecko&&(e=e+' onblur="this.style.cssText = this.style.cssText;"');var e=e+(' onmouseover="CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout="CKEDITOR.tools.callFunction({moveOutFn},{index});" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},{index}); return false;">'),b=CKEDITOR.addTemplate("menuItem",e+'<span class="cke_menubutton_inner"><span class="cke_menubutton_icon"><span class="cke_button_icon cke_button__{iconName}_icon" style="{iconStyle}"></span></span><span class="cke_menubutton_label">{label}</span>{arrowHtml}</span></a></span>'),
g=CKEDITOR.addTemplate("menuArrow",'<span class="cke_menuarrow"><span>{label}</span></span>');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(a,b){b=this._.definition=b||{};this.id=CKEDITOR.tools.getNextId();this.editor=a;this.items=[];this._.listeners=[];this._.level=b.level||1;var e=CKEDITOR.tools.extend({},b.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),f=e.block.attributes=e.attributes||{};!f.role&&(f.role="menu");this._.panelDefinition=e},_:{onShow:function(){var a=
this.editor.getSelection(),b=a&&a.getStartElement(),e=this.editor.elementPath(),f=this._.listeners;this.removeAll();for(var g=0;g<f.length;g++){var d=f[g](b,a,e);if(d)for(var h in d){var l=this.editor.getMenuItem(h);if(l&&(!l.command||this.editor.getCommand(l.command).state)){l.state=d[h];this.add(l)}}}},onClick:function(a){this.hide();if(a.onClick)a.onClick();else a.command&&this.editor.execCommand(a.command)},onEscape:function(a){var b=this.parent;b?b._.panel.hideChild(1):a==27&&this.hide(1);return false},
onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(a){var b=this._.subMenu,e=this.items[a];if(e=e.getItems&&e.getItems()){if(b)b.removeAll();else{b=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({},this._.definition,{level:this._.level+1},true));b.parent=this;b._.onClick=CKEDITOR.tools.bind(this._.onClick,this)}for(var f in e){var g=this.editor.getMenuItem(f);if(g){g.state=e[f];b.add(g)}}var d=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+
(""+a));setTimeout(function(){b.show(d,2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(a){if(!a.order)a.order=this.items.length;this.items.push(a)},removeAll:function(){this.items=[]},show:function(b,e,g,f){if(!this.parent){this._.onShow();if(!this.items.length)return}var e=e||(this.editor.lang.dir=="rtl"?2:1),k=this.items,d=this.editor,h=this._.panel,l=this._.element;if(!h){h=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level);
h.onEscape=CKEDITOR.tools.bind(function(a){if(this._.onEscape(a)===false)return false},this);h.onShow=function(){h._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")};h.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this);l=h.addBlock(this.id,this._.panelDefinition.block);l.autoSize=true;var q=l.keys;q[40]="next";q[9]="next";q[38]="prev";q[CKEDITOR.SHIFT+9]="prev";q[d.lang.dir=="rtl"?37:39]=CKEDITOR.env.ie?"mouseup":"click";q[32]=CKEDITOR.env.ie?
"mouseup":"click";CKEDITOR.env.ie&&(q[13]="mouseup");l=this._.element=l.element;q=l.getDocument();q.getBody().setStyle("overflow","hidden");q.getElementsByTag("html").getItem(0).setStyle("overflow","hidden");this._.itemOverFn=CKEDITOR.tools.addFunction(function(a){clearTimeout(this._.showSubTimeout);this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,d.config.menu_subMenuDelay||400,this,[a])},this);this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)},
this);this._.itemClickFn=CKEDITOR.tools.addFunction(function(a){var b=this.items[a];if(b.state==CKEDITOR.TRISTATE_DISABLED)this.hide(1);else if(b.getItems)this._.showSubMenu(a);else this._.onClick(b)},this)}a(k);for(var q=d.elementPath(),q=['<div class="cke_menu'+(q&&q.direction()!=d.lang.dir?" cke_mixed_dir_content":"")+'" role="presentation">'],p=k.length,m=p&&k[0].group,n=0;n<p;n++){var o=k[n];if(m!=o.group){q.push('<div class="cke_menuseparator" role="separator"></div>');m=o.group}o.render(this,
n,q)}q.push("</div>");l.setHtml(q.join(""));CKEDITOR.ui.fire("ready",this);this.parent?this.parent._.panel.showAsChild(h,this.id,b,e,g,f):h.showBlock(this.id,b,e,g,f);d.fire("menuShow",[h])},addListener:function(a){this._.listeners.push(a)},hide:function(a){this._.onHide&&this._.onHide();this._.panel&&this._.panel.hide(a)}}});CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(a,b,e){CKEDITOR.tools.extend(this,e,{order:0,className:"cke_menubutton__"+b});this.group=a._.menuGroups[this.group];
this.editor=a;this.name=b},proto:{render:function(a,e,i){var f=a.id+(""+e),k=typeof this.state=="undefined"?CKEDITOR.TRISTATE_OFF:this.state,d="",h=k==CKEDITOR.TRISTATE_ON?"on":k==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";this.role in{menuitemcheckbox:1,menuitemradio:1}&&(d=' aria-checked="'+(k==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var l=this.getItems,q="&#"+(this.editor.lang.dir=="rtl"?"9668":"9658")+";",p=this.name;if(this.icon&&!/\./.test(this.icon))p=this.icon;a={id:f,name:this.name,iconName:p,
label:this.label,cls:this.className||"",state:h,hasPopup:l?"true":"false",disabled:k==CKEDITOR.TRISTATE_DISABLED,title:this.label,href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:a._.itemOverFn,moveOutFn:a._.itemOutFn,clickFn:a._.itemClickFn,index:e,iconStyle:CKEDITOR.skin.getIconStyle(p,this.editor.lang.dir=="rtl",p==this.icon?null:this.icon,this.iconOffset),arrowHtml:l?g.output({label:q}):"",role:this.role?this.role:"menuitem",ariaChecked:d};b.output(a,i)}}})}(),CKEDITOR.config.menu_groups=
"clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div",CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(a){this.base.call(this,a,{panel:{className:"cke_menu_panel",attributes:{"aria-label":a.lang.contextmenu.options}}})},proto:{addTarget:function(a,e){a.on("contextmenu",function(a){var a=
a.data,g=CKEDITOR.env.webkit?b:CKEDITOR.env.mac?a.$.metaKey:a.$.ctrlKey;if(!e||!g){a.preventDefault();if(CKEDITOR.env.mac&&CKEDITOR.env.webkit){var g=this.editor,i=(new CKEDITOR.dom.elementPath(a.getTarget(),g.editable())).contains(function(a){return a.hasAttribute("contenteditable")},true);i&&i.getAttribute("contenteditable")=="false"&&g.getSelection().fake(i)}var i=a.getTarget().getDocument(),f=a.getTarget().getDocument().getDocumentElement(),g=!i.equals(CKEDITOR.document),i=i.getWindow().getScrollPosition(),
k=g?a.$.clientX:a.$.pageX||i.x+a.$.clientX,d=g?a.$.clientY:a.$.pageY||i.y+a.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(f,null,k,d)},CKEDITOR.env.ie?200:0,this)}},this);if(CKEDITOR.env.webkit){var b,g=function(){b=0};a.on("keydown",function(a){b=CKEDITOR.env.mac?a.data.$.metaKey:a.data.$.ctrlKey});a.on("keyup",g);a.on("contextmenu",g)}},open:function(a,e,b,g){this.editor.focus();a=a||CKEDITOR.document.getDocumentElement();this.editor.selectionChange(1);this.show(a,e,b,g)}}})},beforeInit:function(a){var e=
a.contextMenu=new CKEDITOR.plugins.contextMenu(a);a.on("contentDom",function(){e.addTarget(a.editable(),a.config.browserContextMenuOnCtrl!==false)});a.addCommand("contextMenu",{exec:function(){a.contextMenu.open(a.document.getBody())}});a.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu");a.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}}),function(){function a(a){var b=this.att,a=a&&a.hasAttribute(b)&&a.getAttribute(b)||"";a!==void 0&&this.setValue(a)}function e(){for(var a,b=0;b<arguments.length;b++)if(arguments[b]instanceof
CKEDITOR.dom.element){a=arguments[b];break}if(a){var b=this.att,e=this.getValue();e?a.setAttribute(b,e):a.removeAttribute(b,e)}}var b={id:1,dir:1,classes:1,styles:1};CKEDITOR.plugins.add("dialogadvtab",{requires:"dialog",allowedContent:function(a){a||(a=b);var c=[];a.id&&c.push("id");a.dir&&c.push("dir");var e="";c.length&&(e=e+("["+c.join(",")+"]"));a.classes&&(e=e+"(*)");a.styles&&(e=e+"{*}");return e},createAdvancedTab:function(g,c,j){c||(c=b);var i=g.lang.common,f={id:"advanced",label:i.advancedTab,
title:i.advancedTab,elements:[{type:"vbox",padding:1,children:[]}]},k=[];if(c.id||c.dir){c.id&&k.push({id:"advId",att:"id",type:"text",requiredContent:j?j+"[id]":null,label:i.id,setup:a,commit:e});c.dir&&k.push({id:"advLangDir",att:"dir",type:"select",requiredContent:j?j+"[dir]":null,label:i.langDir,"default":"",style:"width:100%",items:[[i.notSet,""],[i.langDirLTR,"ltr"],[i.langDirRTL,"rtl"]],setup:a,commit:e});f.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(k)})}if(c.styles||
c.classes){k=[];c.styles&&k.push({id:"advStyles",att:"style",type:"text",requiredContent:j?j+"{cke-xyz}":null,label:i.styles,"default":"",validate:CKEDITOR.dialog.validate.inlineStyle(i.invalidInlineStyle),onChange:function(){},getStyle:function(a,b){var c=this.getValue().match(RegExp("(?:^|;)\\s*"+a+"\\s*:\\s*([^;]*)","i"));return c?c[1]:b},updateStyle:function(a,b){var c=this.getValue(),e=g.document.createElement("span");e.setAttribute("style",c);e.setStyle(a,b);c=CKEDITOR.tools.normalizeCssText(e.getAttribute("style"));
this.setValue(c,1)},setup:a,commit:e});c.classes&&k.push({type:"hbox",widths:["45%","55%"],children:[{id:"advCSSClasses",att:"class",type:"text",requiredContent:j?j+"(cke-xyz)":null,label:i.cssClasses,"default":"",setup:a,commit:e}]});f.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(k)})}return f}})}(),function(){CKEDITOR.plugins.add("div",{requires:"dialog",init:function(a){if(!a.blockless){var e=a.lang.div,b="div(*)";CKEDITOR.dialog.isTabEnabled(a,"editdiv","advanced")&&
(b=b+";div[dir,id,lang,title]{*}");a.addCommand("creatediv",new CKEDITOR.dialogCommand("creatediv",{allowedContent:b,requiredContent:"div",contextSensitive:true,refresh:function(a,b){this.setState("div"in(a.config.div_wrapTable?b.root:b.blockLimit).getDtd()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}}));a.addCommand("editdiv",new CKEDITOR.dialogCommand("editdiv",{requiredContent:"div"}));a.addCommand("removediv",{requiredContent:"div",exec:function(a){function b(c){if((c=CKEDITOR.plugins.div.getSurroundDiv(a,
c))&&!c.data("cke-div-added")){d.push(c);c.data("cke-div-added")}}for(var e=a.getSelection(),i=e&&e.getRanges(),f,k=e.createBookmarks(),d=[],h=0;h<i.length;h++){f=i[h];if(f.collapsed)b(e.getStartElement());else{f=new CKEDITOR.dom.walker(f);f.evaluator=b;f.lastForward()}}for(h=0;h<d.length;h++)d[h].remove(true);e.selectBookmarks(k)}});a.ui.addButton&&a.ui.addButton("CreateDiv",{label:e.toolbar,command:"creatediv",toolbar:"blocks,50"});if(a.addMenuItems){a.addMenuItems({editdiv:{label:e.edit,command:"editdiv",
group:"div",order:1},removediv:{label:e.remove,command:"removediv",group:"div",order:5}});a.contextMenu&&a.contextMenu.addListener(function(b){return!b||b.isReadOnly()?null:CKEDITOR.plugins.div.getSurroundDiv(a)?{editdiv:CKEDITOR.TRISTATE_OFF,removediv:CKEDITOR.TRISTATE_OFF}:null})}CKEDITOR.dialog.add("creatediv",this.path+"dialogs/div.js");CKEDITOR.dialog.add("editdiv",this.path+"dialogs/div.js")}}});CKEDITOR.plugins.div={getSurroundDiv:function(a,e){var b=a.elementPath(e);return a.elementPath(b.blockLimit).contains(function(a){return a.is("div")&&
!a.isReadOnly()},1)}}}(),function(){function a(a,b,c){c=a.config.forceEnterMode||c;if(a.mode=="wysiwyg"){if(!b)b=a.activeEnterMode;if(!a.elementPath().isContextFor("p")){b=CKEDITOR.ENTER_BR;c=1}a.fire("saveSnapshot");b==CKEDITOR.ENTER_BR?i(a,b,null,c):f(a,b,null,c);a.fire("saveSnapshot")}}function e(a){for(var a=a.getSelection().getRanges(true),b=a.length-1;b>0;b--)a[b].deleteContents();return a[0]}function b(a){var b=a.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&
a.getAttribute("contenteditable")=="true"},true);if(a.root.equals(b))return a;b=new CKEDITOR.dom.range(b);b.moveToRange(a);return b}CKEDITOR.plugins.add("enterkey",{init:function(b){b.addCommand("enter",{modes:{wysiwyg:1},editorFocus:false,exec:function(b){a(b)}});b.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:false,exec:function(b){a(b,b.activeShiftEnterMode,1)}});b.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var g=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark();
CKEDITOR.plugins.enterkey={enterBlock:function(a,f,j,q){if(j=j||e(a)){var j=b(j),p=j.document,m=j.checkStartOfBlock(),n=j.checkEndOfBlock(),o=a.elementPath(j.startContainer),s=o.block,t=f==CKEDITOR.ENTER_DIV?"div":"p",w;if(m&&n){if(s&&(s.is("li")||s.getParent().is("li"))){s.is("li")||(s=s.getParent());j=s.getParent();w=j.getParent();var q=!s.hasPrevious(),u=!s.hasNext(),t=a.getSelection(),x=t.createBookmarks(),m=s.getDirection(1),n=s.getAttribute("class"),v=s.getAttribute("style"),r=w.getDirection(1)!=
m,a=a.enterMode!=CKEDITOR.ENTER_BR||r||v||n;if(w.is("li"))if(q||u){q&&u&&j.remove();s[u?"insertAfter":"insertBefore"](w)}else s.breakParent(w);else{if(a){if(o.block.is("li")){w=p.createElement(f==CKEDITOR.ENTER_P?"p":"div");r&&w.setAttribute("dir",m);v&&w.setAttribute("style",v);n&&w.setAttribute("class",n);s.moveChildren(w)}else w=o.block;if(q||u)w[q?"insertBefore":"insertAfter"](j);else{s.breakParent(j);w.insertAfter(j)}}else{s.appendBogus(true);if(q||u)for(;p=s[q?"getFirst":"getLast"]();)p[q?"insertBefore":
"insertAfter"](j);else for(s.breakParent(j);p=s.getLast();)p.insertAfter(j)}s.remove()}t.selectBookmarks(x);return}if(s&&s.getParent().is("blockquote")){s.breakParent(s.getParent());s.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||s.getPrevious().remove();s.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||s.getNext().remove();j.moveToElementEditStart(s);j.select();return}}else if(s&&s.is("pre")&&!n){i(a,f,j,q);return}if(m=j.splitBlock(t)){f=m.previousBlock;s=m.nextBlock;o=m.wasStartOfBlock;
a=m.wasEndOfBlock;if(s){x=s.getParent();if(x.is("li")){s.breakParent(x);s.move(s.getNext(),1)}}else if(f&&(x=f.getParent())&&x.is("li")){f.breakParent(x);x=f.getNext();j.moveToElementEditStart(x);f.move(f.getPrevious())}if(!o&&!a){if(s.is("li")){w=j.clone();w.selectNodeContents(s);w=new CKEDITOR.dom.walker(w);w.evaluator=function(a){return!(c(a)||g(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in CKEDITOR.dtd.$inline&&!(a.getName()in CKEDITOR.dtd.$empty))};(x=w.next())&&(x.type==CKEDITOR.NODE_ELEMENT&&
x.is("ul","ol"))&&(CKEDITOR.env.needsBrFiller?p.createElement("br"):p.createText(" ")).insertBefore(x)}s&&j.moveToElementEditStart(s)}else{if(f){if(f.is("li")||!k.test(f.getName())&&!f.is("pre"))w=f.clone()}else s&&(w=s.clone());if(w)q&&!w.is("li")&&w.renameNode(t);else if(x&&x.is("li"))w=x;else{w=p.createElement(t);f&&(u=f.getDirection())&&w.setAttribute("dir",u)}if(p=m.elementPath){q=0;for(t=p.elements.length;q<t;q++){x=p.elements[q];if(x.equals(p.block)||x.equals(p.blockLimit))break;if(CKEDITOR.dtd.$removeEmpty[x.getName()]){x=
x.clone();w.moveChildren(x);w.append(x)}}}w.appendBogus();w.getParent()||j.insertNode(w);w.is("li")&&w.removeAttribute("value");if(CKEDITOR.env.ie&&o&&(!a||!f.getChildCount())){j.moveToElementEditStart(a?f:w);j.select()}j.moveToElementEditStart(o&&!a?s:w)}j.select();j.scrollIntoView()}}},enterBr:function(a,b,c,g){if(c=c||e(a)){var i=c.document,j=c.checkEndOfBlock(),n=new CKEDITOR.dom.elementPath(a.getSelection().getStartElement()),o=n.block,s=o&&n.block.getName();if(!g&&s=="li")f(a,b,c,g);else{if(!g&&
j&&k.test(s))if(j=o.getDirection()){i=i.createElement("div");i.setAttribute("dir",j);i.insertAfter(o);c.setStart(i,0)}else{i.createElement("br").insertAfter(o);CKEDITOR.env.gecko&&i.createText("").insertAfter(o);c.setStartAt(o.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)}else{a=s=="pre"&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?i.createText("\r"):i.createElement("br");c.deleteContents();c.insertNode(a);if(CKEDITOR.env.needsBrFiller){i.createText("﻿").insertAfter(a);
j&&(o||n.blockLimit).appendBogus();a.getNext().$.nodeValue="";c.setStartAt(a.getNext(),CKEDITOR.POSITION_AFTER_START)}else c.setStartAt(a,CKEDITOR.POSITION_AFTER_END)}c.collapse(true);c.select();c.scrollIntoView()}}}};var j=CKEDITOR.plugins.enterkey,i=j.enterBr,f=j.enterBlock,k=/^h[1-6]$/}(),function(){function a(a,b){var g={},c=[],j={nbsp:" ",shy:"­",gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},a=a.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(a,e){var f=b?"&"+e+";":j[e];g[f]=b?j[e]:"&"+
e+";";c.push(f);return""});if(!b&&a){var a=a.split(","),i=document.createElement("div"),f;i.innerHTML="&"+a.join(";&")+";";f=i.innerHTML;i=null;for(i=0;i<f.length;i++){var k=f.charAt(i);g[k]="&"+a[i]+";";c.push(k)}}g.regex=c.join(b?"|":"");return g}CKEDITOR.plugins.add("entities",{afterInit:function(e){function b(a){return k[a]}function g(a){return c.entities_processNumerical=="force"||!i[a]?"&#"+a.charCodeAt(0)+";":i[a]}var c=e.config;if(e=(e=e.dataProcessor)&&e.htmlFilter){var j=[];c.basicEntities!==
false&&j.push("nbsp,gt,lt,amp");if(c.entities){j.length&&j.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro");
c.entities_latin&&j.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml");c.entities_greek&&j.push("Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv");
c.entities_additional&&j.push(c.entities_additional)}var i=a(j.join(",")),f=i.regex?"["+i.regex+"]":"a^";delete i.regex;c.entities&&c.entities_processNumerical&&(f="[^ -~]|"+f);var f=RegExp(f,"g"),k=a("nbsp,gt,lt,amp,shy",true),d=RegExp(k.regex,"g");e.addRules({text:function(a){return a.replace(d,b).replace(f,g)}},{applyToAll:true,excludeNestedEditable:true})}}})}(),CKEDITOR.config.basicEntities=!0,CKEDITOR.config.entities=!0,CKEDITOR.config.entities_latin=!0,CKEDITOR.config.entities_greek=!0,CKEDITOR.config.entities_additional=
"#39",CKEDITOR.plugins.add("popup"),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(a,e,b,g){e=e||"80%";b=b||"70%";typeof e=="string"&&(e.length>1&&e.substr(e.length-1,1)=="%")&&(e=parseInt(window.screen.width*parseInt(e,10)/100,10));typeof b=="string"&&(b.length>1&&b.substr(b.length-1,1)=="%")&&(b=parseInt(window.screen.height*parseInt(b,10)/100,10));e<640&&(e=640);b<420&&(b=420);var c=parseInt((window.screen.height-b)/2,10),j=parseInt((window.screen.width-e)/2,10),g=(g||"location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes")+
",width="+e+",height="+b+",top="+c+",left="+j,i=window.open("",null,g,true);if(!i)return false;try{if(navigator.userAgent.toLowerCase().indexOf(" chrome/")==-1){i.moveTo(j,c);i.resizeTo(e,b)}i.focus();i.location.href=a}catch(f){window.open(a,null,g,true)}return true}}),function(){function a(a,b){var c=[];if(b)for(var e in b)c.push(e+"="+encodeURIComponent(b[e]));else return a;return a+(a.indexOf("?")!=-1?"&":"?")+c.join("&")}function e(a){a=a+"";return a.charAt(0).toUpperCase()+a.substr(1)}function b(){var b=
this.getDialog(),d=b.getParentEditor();d._.filebrowserSe=this;var c=d.config["filebrowser"+e(b.getName())+"WindowWidth"]||d.config.filebrowserWindowWidth||"80%",b=d.config["filebrowser"+e(b.getName())+"WindowHeight"]||d.config.filebrowserWindowHeight||"70%",f=this.filebrowser.params||{};f.CKEditor=d.name;f.CKEditorFuncNum=d._.filebrowserFn;if(!f.langCode)f.langCode=d.langCode;f=a(this.filebrowser.url,f);d.popup(f,c,b,d.config.filebrowserWindowFeatures||d.config.fileBrowserWindowFeatures)}function g(){var a=
this.getDialog();a.getParentEditor()._.filebrowserSe=this;return!a.getContentElement(this["for"][0],this["for"][1]).getInputElement().$.value||!a.getContentElement(this["for"][0],this["for"][1]).getAction()?false:true}function c(b,d,c){var e=c.params||{};e.CKEditor=b.name;e.CKEditorFuncNum=b._.filebrowserFn;if(!e.langCode)e.langCode=b.langCode;d.action=a(c.url,e);d.filebrowser=c}function j(a,d,f,i){if(i&&i.length)for(var q,p=i.length;p--;){q=i[p];(q.type=="hbox"||q.type=="vbox"||q.type=="fieldset")&&
j(a,d,f,q.children);if(q.filebrowser){if(typeof q.filebrowser=="string")q.filebrowser={action:q.type=="fileButton"?"QuickUpload":"Browse",target:q.filebrowser};if(q.filebrowser.action=="Browse"){var m=q.filebrowser.url;if(m===void 0){m=a.config["filebrowser"+e(d)+"BrowseUrl"];if(m===void 0)m=a.config.filebrowserBrowseUrl}if(m){q.onClick=b;q.filebrowser.url=m;q.hidden=false}}else if(q.filebrowser.action=="QuickUpload"&&q["for"]){m=q.filebrowser.url;if(m===void 0){m=a.config["filebrowser"+e(d)+"UploadUrl"];
if(m===void 0)m=a.config.filebrowserUploadUrl}if(m){var n=q.onClick;q.onClick=function(a){var b=a.sender;return n&&n.call(b,a)===false?false:g.call(b,a)};q.filebrowser.url=m;q.hidden=false;c(a,f.getContents(q["for"][0]).get(q["for"][1]),q.filebrowser)}}}}}function i(a,b,c){if(c.indexOf(";")!==-1){for(var c=c.split(";"),e=0;e<c.length;e++)if(i(a,b,c[e]))return true;return false}return(a=a.getContents(b).get(c).filebrowser)&&a.url}function f(a,b){var c=this._.filebrowserSe.getDialog(),e=this._.filebrowserSe["for"],
f=this._.filebrowserSe.filebrowser.onSelect;e&&c.getContentElement(e[0],e[1]).reset();if(!(typeof b=="function"&&b.call(this._.filebrowserSe)===false)&&!(f&&f.call(this._.filebrowserSe,a,b)===false)){typeof b=="string"&&b&&alert(b);if(a){e=this._.filebrowserSe;c=e.getDialog();if(e=e.filebrowser.target||null){e=e.split(":");if(f=c.getContentElement(e[0],e[1])){f.setValue(a);c.selectPage(e[0])}}}}}CKEDITOR.plugins.add("filebrowser",{requires:"popup",init:function(a){a._.filebrowserFn=CKEDITOR.tools.addFunction(f,
a);a.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}});CKEDITOR.on("dialogDefinition",function(a){if(a.editor.plugins.filebrowser)for(var b=a.data.definition,c,e=0;e<b.contents.length;++e)if(c=b.contents[e]){j(a.editor,a.data.name,b,c.elements);if(c.hidden&&c.filebrowser)c.hidden=!i(b,c.id,c.filebrowser)}})}(),CKEDITOR.plugins.add("find",{requires:"dialog",init:function(a){var e=a.addCommand("find",new CKEDITOR.dialogCommand("find"));e.canUndo=false;e.readOnly=1;a.addCommand("replace",
new CKEDITOR.dialogCommand("replace")).canUndo=false;if(a.ui.addButton){a.ui.addButton("Find",{label:a.lang.find.find,command:"find",toolbar:"find,10"});a.ui.addButton("Replace",{label:a.lang.find.replace,command:"replace",toolbar:"find,20"})}CKEDITOR.dialog.add("find",this.path+"dialogs/find.js");CKEDITOR.dialog.add("replace",this.path+"dialogs/find.js")}}),CKEDITOR.config.find_highlight={element:"span",styles:{"background-color":"#004",color:"#fff"}},function(){function a(a,b){var c=g.exec(a),e=
g.exec(b);if(c){if(!c[2]&&e[2]=="px")return e[1];if(c[2]=="px"&&!e[2])return e[1]+"px"}return b}var e=CKEDITOR.htmlParser.cssStyle,b=CKEDITOR.tools.cssLength,g=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i,c={elements:{$:function(b){var c=b.attributes;if((c=(c=(c=c&&c["data-cke-realelement"])&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(c)))&&c.children[0])&&b.attributes["data-cke-resizable"]){var f=(new e(b)).rules,b=c.attributes,g=f.width,f=f.height;g&&(b.width=a(b.width,g));f&&(b.height=
a(b.height,f))}return c}}};CKEDITOR.plugins.add("fakeobjects",{init:function(a){a.filter.allow("img[!data-cke-realelement,src,alt,title](*){*}","fakeobjects")},afterInit:function(a){(a=(a=a.dataProcessor)&&a.htmlFilter)&&a.addRules(c,{applyToAll:true})}});CKEDITOR.editor.prototype.createFakeElement=function(a,c,f,g){var d=this.lang.fakeobjects,d=d[f]||d.unknown,c={"class":c,"data-cke-realelement":encodeURIComponent(a.getOuterHtml()),"data-cke-real-node-type":a.type,alt:d,title:d,align:a.getAttribute("align")||
""};if(!CKEDITOR.env.hc)c.src=CKEDITOR.tools.transparentImageData;f&&(c["data-cke-real-element-type"]=f);if(g){c["data-cke-resizable"]=g;f=new e;g=a.getAttribute("width");a=a.getAttribute("height");g&&(f.rules.width=b(g));a&&(f.rules.height=b(a));f.populate(c)}return this.document.createElement("img",{attributes:c})};CKEDITOR.editor.prototype.createFakeParserElement=function(a,c,f,g){var d=this.lang.fakeobjects,d=d[f]||d.unknown,h;h=new CKEDITOR.htmlParser.basicWriter;a.writeHtml(h);h=h.getHtml();
c={"class":c,"data-cke-realelement":encodeURIComponent(h),"data-cke-real-node-type":a.type,alt:d,title:d,align:a.attributes.align||""};if(!CKEDITOR.env.hc)c.src=CKEDITOR.tools.transparentImageData;f&&(c["data-cke-real-element-type"]=f);if(g){c["data-cke-resizable"]=g;g=a.attributes;a=new e;f=g.width;g=g.height;f!==void 0&&(a.rules.width=b(f));g!==void 0&&(a.rules.height=b(g));a.populate(c)}return new CKEDITOR.htmlParser.element("img",c)};CKEDITOR.editor.prototype.restoreRealElement=function(b){if(b.data("cke-real-node-type")!=
CKEDITOR.NODE_ELEMENT)return null;var c=CKEDITOR.dom.element.createFromHtml(decodeURIComponent(b.data("cke-realelement")),this.document);if(b.data("cke-resizable")){var e=b.getStyle("width"),b=b.getStyle("height");e&&c.setAttribute("width",a(c.getAttribute("width"),e));b&&c.setAttribute("height",a(c.getAttribute("height"),b))}return c}}(),function(){function a(a){a=a.attributes;return a.type=="application/x-shockwave-flash"||b.test(a.src||"")}function e(a,b){return a.createFakeParserElement(b,"cke_flash",
"flash",true)}var b=/\.swf(?:$|\?)/i;CKEDITOR.plugins.add("flash",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_flash{background-image: url("+CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(a){var b="object[classid,codebase,height,hspace,vspace,width];param[name,value];embed[height,hspace,pluginspage,src,type,vspace,width]";CKEDITOR.dialog.isTabEnabled(a,
"flash","properties")&&(b=b+";object[align]; embed[allowscriptaccess,quality,scale,wmode]");CKEDITOR.dialog.isTabEnabled(a,"flash","advanced")&&(b=b+";object[id]{*}; embed[bgcolor]{*}(*)");a.addCommand("flash",new CKEDITOR.dialogCommand("flash",{allowedContent:b,requiredContent:"embed"}));a.ui.addButton&&a.ui.addButton("Flash",{label:a.lang.common.flash,command:"flash",toolbar:"insert,20"});CKEDITOR.dialog.add("flash",this.path+"dialogs/flash.js");a.addMenuItems&&a.addMenuItems({flash:{label:a.lang.flash.properties,
command:"flash",group:"flash"}});a.on("doubleclick",function(a){var b=a.data.element;if(b.is("img")&&b.data("cke-real-element-type")=="flash")a.data.dialog="flash"});a.contextMenu&&a.contextMenu.addListener(function(a){if(a&&a.is("img")&&!a.isReadOnly()&&a.data("cke-real-element-type")=="flash")return{flash:CKEDITOR.TRISTATE_OFF}})},afterInit:function(b){var c=b.dataProcessor;(c=c&&c.dataFilter)&&c.addRules({elements:{"cke:object":function(c){var i=c.attributes;if((!i.classid||!(""+i.classid).toLowerCase())&&
!a(c)){for(i=0;i<c.children.length;i++)if(c.children[i].name=="cke:embed"){if(!a(c.children[i]))break;return e(b,c)}return null}return e(b,c)},"cke:embed":function(c){return!a(c)?null:e(b,c)}}},5)}})}(),CKEDITOR.tools.extend(CKEDITOR.config,{flashEmbedTagOnly:!1,flashAddEmbedTag:!0,flashConvertOnEdit:!1}),function(){function a(a){var c=a.config,j=a.fire("uiSpace",{space:"top",html:""}).html,i=function(){function d(a,c,e){k.setStyle(c,b(e));k.setStyle("position",a)}function f(a){var b=j.getDocumentPosition();
switch(a){case "top":d("absolute","top",b.y-t-x);break;case "pin":d("fixed","top",r);break;case "bottom":d("absolute","top",b.y+(o.height||o.bottom-o.top)+x)}h=a}var h,j,n,o,s,t,w,u=c.floatSpaceDockedOffsetX||0,x=c.floatSpaceDockedOffsetY||0,v=c.floatSpacePinnedOffsetX||0,r=c.floatSpacePinnedOffsetY||0;return function(d){if(j=a.editable()){var l=d&&d.name=="focus";l&&k.show();a.fire("floatingSpaceLayout",{show:l});k.removeStyle("left");k.removeStyle("right");n=k.getClientRect();o=j.getClientRect();
s=e.getViewPaneSize();t=n.height;w="pageXOffset"in e.$?e.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft;if(h){t+x<=o.top?f("top"):t+x>s.height-o.bottom?f("pin"):f("bottom");d=s.width/2;d=c.floatSpacePreferRight?"right":o.left>0&&o.right<s.width&&o.width>n.width?c.contentsLangDirection=="rtl"?"right":"left":d-o.left>o.right-d?"left":"right";if(n.width>s.width){d="left";l=0}else{l=d=="left"?o.left>0?o.left:0:o.right<s.width?s.width-o.right:0;if(l+n.width>s.width){d=d=="left"?"right":"left";
l=0}}k.setStyle(d,b((h=="pin"?v:u)+l+(h=="pin"?0:d=="left"?w:-w)))}else{h="pin";f("pin");i(d)}}}}();if(j){var f=new CKEDITOR.template('<div id="cke_{name}" class="cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" title="'+(CKEDITOR.env.gecko?" ":"")+'" lang="{langCode}" role="application" style="{style}"'+(a.title?' aria-labelledby="cke_{name}_arialbl"':" ")+">"+(a.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':
" ")+'<div class="cke_inner"><div id="{topId}" class="cke_top" role="presentation">{content}</div></div></div>'),k=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(f.output({content:j,id:a.id,langDir:a.lang.dir,langCode:a.langCode,name:a.name,style:"display:none;z-index:"+(c.baseFloatZIndex-1),topId:a.ui.spaceId("top"),voiceLabel:a.title}))),d=CKEDITOR.tools.eventsBuffer(500,i),h=CKEDITOR.tools.eventsBuffer(100,i);k.unselectable();k.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",
1)||a.preventDefault()});a.on("focus",function(b){i(b);a.on("change",d.input);e.on("scroll",h.input);e.on("resize",h.input)});a.on("blur",function(){k.hide();a.removeListener("change",d.input);e.removeListener("scroll",h.input);e.removeListener("resize",h.input)});a.on("destroy",function(){e.removeListener("scroll",h.input);e.removeListener("resize",h.input);k.clearCustomData();k.remove()});a.focusManager.hasFocus&&k.show();a.focusManager.add(k,1)}}var e=CKEDITOR.document.getWindow(),b=CKEDITOR.tools.cssLength;
CKEDITOR.plugins.add("floatingspace",{init:function(b){b.on("loaded",function(){a(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var a=CKEDITOR.addTemplate("panel-list",'<ul role="presentation" class="cke_panel_list">{items}</ul>'),e=CKEDITOR.addTemplate("panel-list-item",'<li id="{id}" class="cke_panel_listItem" role=presentation><a id="{id}_option" _cke_focus=1 hidefocus=true title="{title}" href="javascript:void(\'{val}\')"  {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role="option">{text}</a></li>'),
b=CKEDITOR.addTemplate("panel-list-group",'<h1 id="{id}" class="cke_panel_grouptitle" role="presentation" >{label}</h1>'),g=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(a,b){return this.addBlock(a,new CKEDITOR.ui.listBlock(this.getHolderElement(),b))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(a,b){var b=b||{},e=b.attributes||(b.attributes={});(this.multiSelect=!!b.multiSelect)&&(e["aria-multiselectable"]=true);!e.role&&(e.role="listbox");
this.base.apply(this,arguments);this.element.setAttribute("role",e.role);e=this.keys;e[40]="next";e[9]="next";e[38]="prev";e[CKEDITOR.SHIFT+9]="prev";e[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(e[13]="mouseup");this._.pendingHtml=[];this._.pendingList=[];this._.items={};this._.groups={}},_:{close:function(){if(this._.started){var b=a.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(b);delete this._.started}},getClick:function(){if(!this._.click)this._.click=
CKEDITOR.tools.addFunction(function(a){var b=this.toggle(a);if(this.onClick)this.onClick(a,b)},this);return this._.click}},proto:{add:function(a,b,i){var f=CKEDITOR.tools.getNextId();if(!this._.started){this._.started=1;this._.size=this._.size||0}this._.items[a]=f;var k;k=CKEDITOR.tools.htmlEncodeAttr(a).replace(g,"\\'");a={id:f,val:k,onclick:CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(i||a),text:b||a};this._.pendingList.push(e.output(a))},
startGroup:function(a){this._.close();var e=CKEDITOR.tools.getNextId();this._.groups[a]=e;this._.pendingHtml.push(b.output({id:e,label:a}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(a){var b=this.isMarked(a);b?this.unmark(a):this.mark(a);return!b},hideGroup:function(a){var b=(a=this.element.getDocument().getById(this._.groups[a]))&&a.getNext();if(a){a.setStyle("display","none");b&&b.getName()=="ul"&&
b.setStyle("display","none")}},hideItem:function(a){this.element.getDocument().getById(this._.items[a]).setStyle("display","none")},showAll:function(){var a=this._.items,b=this._.groups,e=this.element.getDocument(),f;for(f in a)e.getById(a[f]).setStyle("display","");for(var g in b){a=e.getById(b[g]);f=a.getNext();a.setStyle("display","");f&&f.getName()=="ul"&&f.setStyle("display","")}},mark:function(a){this.multiSelect||this.unmarkAll();var a=this._.items[a],b=this.element.getDocument().getById(a);
b.addClass("cke_selected");this.element.getDocument().getById(a+"_option").setAttribute("aria-selected",true);this.onMark&&this.onMark(b)},unmark:function(a){var b=this.element.getDocument(),a=this._.items[a],e=b.getById(a);e.removeClass("cke_selected");b.getById(a+"_option").removeAttribute("aria-selected");this.onUnmark&&this.onUnmark(e)},unmarkAll:function(){var a=this._.items,b=this.element.getDocument(),e;for(e in a){var f=a[e];b.getById(f).removeClass("cke_selected");b.getById(f+"_option").removeAttribute("aria-selected")}this.onUnmark&&
this.onUnmark()},isMarked:function(a){return this.element.getDocument().getById(this._.items[a]).hasClass("cke_selected")},focus:function(a){this._.focusIndex=-1;var b=this.element.getElementsByTag("a"),e,f=-1;if(a)for(e=this.element.getDocument().getById(this._.items[a]).getFirst();a=b.getItem(++f);){if(a.equals(e)){this._.focusIndex=f;break}}else this.element.focus();e&&setTimeout(function(){e.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_RICHCOMBO,
CKEDITOR.ui.richCombo.handler)}}),function(){var a='<span id="{id}" class="cke_combo cke_combo__{name} {cls}" role="presentation"><span id="{id}_label" class="cke_combo_label">{label}</span><a class="cke_combo_button" title="{title}" tabindex="-1"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="true"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(a=a+' onkeypress="return false;"');CKEDITOR.env.gecko&&
(a=a+' onblur="this.style.cssText = this.style.cssText;"');var a=a+(' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span id="{id}_text" class="cke_combo_text cke_combo_inlinelabel">{label}</span><span class="cke_combo_open"><span class="cke_combo_arrow">'+(CKEDITOR.env.hc?"&#9660;":
CKEDITOR.env.air?"&nbsp;":"")+"</span></span></a></span>"),e=CKEDITOR.addTemplate("combo",a);CKEDITOR.UI_RICHCOMBO="richcombo";CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(a){CKEDITOR.tools.extend(this,a,{canGroup:false,title:a.label,modes:{wysiwyg:1},editorFocus:1});a=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=a.parent&&a.parent.getDocument()||CKEDITOR.document;a.className="cke_combopanel";a.block={multiSelect:a.multiSelect,attributes:a.attributes};
a.toolbarRelated=true;this._={panelDefinition:a,items:{}}},proto:{renderHtml:function(a){var e=[];this.render(a,e);return e.join("")},render:function(a,g){function c(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var d=this.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;if(a.readOnly&&!this.readOnly)d=CKEDITOR.TRISTATE_DISABLED;this.setState(d);this.setValue("");d!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var j=CKEDITOR.env,i="cke_"+this.id,f=CKEDITOR.tools.addFunction(function(c){if(q){a.unlockSelection(1);
q=0}d.execute(c)},this),k=this,d={id:i,combo:this,focus:function(){CKEDITOR.document.getById(i).getChild(1).focus()},execute:function(d){var c=k._;if(c.state!=CKEDITOR.TRISTATE_DISABLED){k.createPanel(a);if(c.on)c.panel.hide();else{k.commit();var e=k.getValue();e?c.list.mark(e):c.list.unmarkAll();c.panel.showBlock(k.id,new CKEDITOR.dom.element(d),4)}}},clickFn:f};a.on("activeFilterChange",c,this);a.on("mode",c,this);a.on("selectionChange",c,this);!this.readOnly&&a.on("readOnly",c,this);var h=CKEDITOR.tools.addFunction(function(c,
e){var c=new CKEDITOR.dom.event(c),h=c.getKeystroke();if(h==40)a.once("panelShow",function(a){a.data._.panel._.currentBlock.onKeyDown(40)});switch(h){case 13:case 32:case 40:CKEDITOR.tools.callFunction(f,e);break;default:d.onkey(d,h)}c.preventDefault()}),l=CKEDITOR.tools.addFunction(function(){d.onfocus&&d.onfocus()}),q=0;d.keyDownFn=h;j={id:i,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:j.gecko&&!j.hc?"":(this.title||"").replace("'",""),keydownFn:h,
focusFn:l,clickFn:f};e.output(j,g);if(this.onRender)this.onRender();return d},createPanel:function(a){if(!this._.panel){var e=this._.panelDefinition,c=this._.panelDefinition.block,j=e.parent||CKEDITOR.document.getBody(),i="cke_combopanel__"+this.name,f=new CKEDITOR.ui.floatPanel(a,j,e),k=f.addListBlock(this.id,c),d=this;f.onShow=function(){this.element.addClass(i);d.setState(CKEDITOR.TRISTATE_ON);d._.on=1;d.editorFocus&&!a.focusManager.hasFocus&&a.focus();if(d.onOpen)d.onOpen();a.once("panelShow",
function(){k.focus(!k.multiSelect&&d.getValue())})};f.onHide=function(c){this.element.removeClass(i);d.setState(d.modes&&d.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);d._.on=0;if(!c&&d.onClose)d.onClose()};f.onEscape=function(){f.hide(1)};k.onClick=function(a,b){d.onClick&&d.onClick.call(d,a,b);f.hide()};this._.panel=f;this._.list=k;f.getBlock(this.id).onHide=function(){d._.on=0;d.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,e){this._.value=a;var c=
this.document.getById("cke_"+this.id+"_text");if(c){if(!a&&!e){e=this.label;c.addClass("cke_combo_inlinelabel")}else c.removeClass("cke_combo_inlinelabel");c.setText(typeof e!="undefined"?e:a)}},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(a){this._.list.mark(a)},hideItem:function(a){this._.list.hideItem(a)},hideGroup:function(a){this._.list.hideGroup(a)},showAll:function(){this._.list.showAll()},add:function(a,e,c){this._.items[a]=c||a;
this._.list.add(a,e,c)},startGroup:function(a){this._.list.startGroup(a)},commit:function(){if(!this._.committed){this._.list.commit();this._.committed=1;CKEDITOR.ui.fire("ready",this)}this._.committed=1},setState:function(a){if(this._.state!=a){var e=this.document.getById("cke_"+this.id);e.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED?e.setAttribute("aria-disabled",true):e.removeAttribute("aria-disabled");this._.state=a}},getState:function(){return this._.state},enable:function(){this._.state==
CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){if(this._.state!=CKEDITOR.TRISTATE_DISABLED){this._.lastState=this._.state;this.setState(CKEDITOR.TRISTATE_DISABLED)}}},statics:{handler:{create:function(a){return new CKEDITOR.ui.richCombo(a)}}}});CKEDITOR.ui.prototype.addRichCombo=function(a,e){this.add(a,CKEDITOR.UI_RICHCOMBO,e)}}(),function(){function a(a,g,c,j,i,f,k,d){for(var h=a.config,l=new CKEDITOR.style(k),q=i.split(";"),i=[],p={},m=0;m<q.length;m++){var n=q[m];
if(n){var n=n.split("/"),o={},s=q[m]=n[0];o[c]=i[m]=n[1]||s;p[s]=new CKEDITOR.style(k,o);p[s]._.definition.name=s}else q.splice(m--,1)}a.ui.addRichCombo(g,{label:j.label,title:j.panelTitle,toolbar:"styles,"+d,allowedContent:l,requiredContent:l,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(h.contentsCss),multiSelect:false,attributes:{"aria-label":j.panelTitle}},init:function(){this.startGroup(j.panelTitle);for(var a=0;a<q.length;a++){var b=q[a];this.add(b,p[b].buildPreview(),b)}},onClick:function(d){a.focus();
a.fire("saveSnapshot");var c=this.getValue(),f=p[d];if(c&&d!=c){var h=p[c],g=a.getSelection().getRanges()[0];if(g.collapsed){var i=a.elementPath(),j=i.contains(function(a){return h.checkElementRemovable(a)});if(j){var k=g.checkBoundaryOfElement(j,CKEDITOR.START),o=g.checkBoundaryOfElement(j,CKEDITOR.END);if(k&&o){for(k=g.createBookmark();i=j.getFirst();)i.insertBefore(j);j.remove();g.moveToBookmark(k)}else if(k)g.moveToPosition(j,CKEDITOR.POSITION_BEFORE_START);else if(o)g.moveToPosition(j,CKEDITOR.POSITION_AFTER_END);
else{g.splitElement(j);g.moveToPosition(j,CKEDITOR.POSITION_AFTER_END);e(g,i.elements.slice(),j)}a.getSelection().selectRanges([g])}}else a.removeStyle(h)}a[c==d?"removeStyle":"applyStyle"](f);a.fire("saveSnapshot")},onRender:function(){a.on("selectionChange",function(d){for(var c=this.getValue(),d=d.data.path.elements,e=0,h;e<d.length;e++){h=d[e];for(var g in p)if(p[g].checkElementMatch(h,true,a)){g!=c&&this.setValue(g);return}}this.setValue("",f)},this)},refresh:function(){a.activeFilter.check(l)||
this.setState(CKEDITOR.TRISTATE_DISABLED)}})}function e(a,g,c){var j=g.pop();if(j){if(c)return e(a,g,j.equals(c)?null:c);c=j.clone();a.insertNode(c);a.moveToPosition(c,CKEDITOR.POSITION_AFTER_START);e(a,g)}}CKEDITOR.plugins.add("font",{requires:"richcombo",init:function(b){var e=b.config;a(b,"Font","family",b.lang.font,e.font_names,e.font_defaultLabel,e.font_style,30);a(b,"FontSize","size",b.lang.font.fontSize,e.fontSize_sizes,e.fontSize_defaultLabel,e.fontSize_style,40)}})}(),CKEDITOR.config.font_names=
"Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif",CKEDITOR.config.font_defaultLabel="",CKEDITOR.config.font_style={element:"span",styles:{"font-family":"#(family)"},overrides:[{element:"font",
attributes:{face:null}}]},CKEDITOR.config.fontSize_sizes="8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px",CKEDITOR.config.fontSize_defaultLabel="",CKEDITOR.config.fontSize_style={element:"span",styles:{"font-size":"#(size)"},overrides:[{element:"font",attributes:{size:null}}]},CKEDITOR.plugins.add("format",{requires:"richcombo",init:function(a){if(!a.blockless){for(var e=a.config,b=a.lang.format,g=e.format_tags.split(";"),
c={},j=0,i=[],f=0;f<g.length;f++){var k=g[f],d=new CKEDITOR.style(e["format_"+k]);if(!a.filter.customConfig||a.filter.check(d)){j++;c[k]=d;c[k]._.enterMode=a.config.enterMode;i.push(d)}}j!==0&&a.ui.addRichCombo("Format",{label:b.label,title:b.panelTitle,toolbar:"styles,20",allowedContent:i,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(e.contentsCss),multiSelect:false,attributes:{"aria-label":b.panelTitle}},init:function(){this.startGroup(b.panelTitle);for(var a in c){var d=b["tag_"+a];this.add(a,
c[a].buildPreview(d),d)}},onClick:function(b){a.focus();a.fire("saveSnapshot");var b=c[b],d=a.elementPath();a[b.checkActive(d,a)?"removeStyle":"applyStyle"](b);setTimeout(function(){a.fire("saveSnapshot")},0)},onRender:function(){a.on("selectionChange",function(b){var d=this.getValue(),b=b.data.path;this.refresh();for(var e in c)if(c[e].checkActive(b,a)){e!=d&&this.setValue(e,a.lang.format["tag_"+e]);return}this.setValue("")},this)},onOpen:function(){this.showAll();for(var b in c)a.activeFilter.check(c[b])||
this.hideItem(b)},refresh:function(){var b=a.elementPath();if(b){if(b.isContextFor("p"))for(var d in c)if(a.activeFilter.check(c[d]))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}}})}}}),CKEDITOR.config.format_tags="p;h1;h2;h3;h4;h5;h6;pre;address;div",CKEDITOR.config.format_p={element:"p"},CKEDITOR.config.format_div={element:"div"},CKEDITOR.config.format_pre={element:"pre"},CKEDITOR.config.format_address={element:"address"},CKEDITOR.config.format_h1={element:"h1"},CKEDITOR.config.format_h2={element:"h2"},
CKEDITOR.config.format_h3={element:"h3"},CKEDITOR.config.format_h4={element:"h4"},CKEDITOR.config.format_h5={element:"h5"},CKEDITOR.config.format_h6={element:"h6"},CKEDITOR.plugins.add("forms",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss(".cke_editable form{border: 1px dotted #FF0000;padding: 2px;}\n");CKEDITOR.addCss("img.cke_hidden{background-image: url("+CKEDITOR.getUrl(this.path+"images/hiddenfield.gif")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 16px !important;height: 16px !important;}")},
init:function(a){var e=a.lang,b=0,g={email:1,password:1,search:1,tel:1,text:1,url:1},c={checkbox:"input[type,name,checked,required]",radio:"input[type,name,checked,required]",textfield:"input[type,name,value,size,maxlength,required]",textarea:"textarea[cols,rows,name,required]",select:"select[name,size,multiple,required]; option[value,selected]",button:"input[type,name,value]",form:"form[action,name,id,enctype,target,method]",hiddenfield:"input[type,name,value]",imagebutton:"input[type,alt,src]{width,height,border,border-width,border-style,margin,float}"},
j={checkbox:"input",radio:"input",textfield:"input",textarea:"textarea",select:"select",button:"input",form:"form",hiddenfield:"input",imagebutton:"input"},i=function(d,f,g){var i={allowedContent:c[f],requiredContent:j[f]};f=="form"&&(i.context="form");a.addCommand(f,new CKEDITOR.dialogCommand(f,i));a.ui.addButton&&a.ui.addButton(d,{label:e.common[d.charAt(0).toLowerCase()+d.slice(1)],command:f,toolbar:"forms,"+(b=b+10)});CKEDITOR.dialog.add(f,g)},f=this.path+"dialogs/";!a.blockless&&i("Form","form",
f+"form.js");i("Checkbox","checkbox",f+"checkbox.js");i("Radio","radio",f+"radio.js");i("TextField","textfield",f+"textfield.js");i("Textarea","textarea",f+"textarea.js");i("Select","select",f+"select.js");i("Button","button",f+"button.js");var k=a.plugins.image;k&&!a.plugins.image2&&i("ImageButton","imagebutton",CKEDITOR.plugins.getPath("image")+"dialogs/image.js");i("HiddenField","hiddenfield",f+"hiddenfield.js");if(a.addMenuItems){i={checkbox:{label:e.forms.checkboxAndRadio.checkboxTitle,command:"checkbox",
group:"checkbox"},radio:{label:e.forms.checkboxAndRadio.radioTitle,command:"radio",group:"radio"},textfield:{label:e.forms.textfield.title,command:"textfield",group:"textfield"},hiddenfield:{label:e.forms.hidden.title,command:"hiddenfield",group:"hiddenfield"},button:{label:e.forms.button.title,command:"button",group:"button"},select:{label:e.forms.select.title,command:"select",group:"select"},textarea:{label:e.forms.textarea.title,command:"textarea",group:"textarea"}};if(k)i.imagebutton={label:e.image.titleButton,
command:"imagebutton",group:"imagebutton"};!a.blockless&&(i.form={label:e.forms.form.menu,command:"form",group:"form"});a.addMenuItems(i)}if(a.contextMenu){!a.blockless&&a.contextMenu.addListener(function(a,b,c){if((a=c.contains("form",1))&&!a.isReadOnly())return{form:CKEDITOR.TRISTATE_OFF}});a.contextMenu.addListener(function(a){if(a&&!a.isReadOnly()){var b=a.getName();if(b=="select")return{select:CKEDITOR.TRISTATE_OFF};if(b=="textarea")return{textarea:CKEDITOR.TRISTATE_OFF};if(b=="input"){var c=
a.getAttribute("type")||"text";switch(c){case "button":case "submit":case "reset":return{button:CKEDITOR.TRISTATE_OFF};case "checkbox":return{checkbox:CKEDITOR.TRISTATE_OFF};case "radio":return{radio:CKEDITOR.TRISTATE_OFF};case "image":return k?{imagebutton:CKEDITOR.TRISTATE_OFF}:null}if(g[c])return{textfield:CKEDITOR.TRISTATE_OFF}}if(b=="img"&&a.data("cke-real-element-type")=="hiddenfield")return{hiddenfield:CKEDITOR.TRISTATE_OFF}}})}a.on("doubleclick",function(b){var c=b.data.element;if(!a.blockless&&
c.is("form"))b.data.dialog="form";else if(c.is("select"))b.data.dialog="select";else if(c.is("textarea"))b.data.dialog="textarea";else if(c.is("img")&&c.data("cke-real-element-type")=="hiddenfield")b.data.dialog="hiddenfield";else if(c.is("input")){c=c.getAttribute("type")||"text";switch(c){case "button":case "submit":case "reset":b.data.dialog="button";break;case "checkbox":b.data.dialog="checkbox";break;case "radio":b.data.dialog="radio";break;case "image":b.data.dialog="imagebutton"}if(g[c])b.data.dialog=
"textfield"}})},afterInit:function(a){var e=a.dataProcessor,b=e&&e.htmlFilter,e=e&&e.dataFilter;CKEDITOR.env.ie&&b&&b.addRules({elements:{input:function(a){var a=a.attributes,b=a.type;if(!b)a.type="text";(b=="checkbox"||b=="radio")&&a.value=="on"&&delete a.value}}},{applyToAll:true});e&&e.addRules({elements:{input:function(b){if(b.attributes.type=="hidden")return a.createFakeParserElement(b,"cke_hidden","hiddenfield")}}},{applyToAll:true})}}),function(){var a={canUndo:false,exec:function(a){var b=
a.document.createElement("hr");a.insertElement(b)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",{init:function(e){if(!e.blockless){e.addCommand("horizontalrule",a);e.ui.addButton&&e.ui.addButton("HorizontalRule",{label:e.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"})}}})}(),CKEDITOR.plugins.add("htmlwriter",{init:function(a){var e=new CKEDITOR.htmlWriter;e.forceSimpleAmpersand=a.config.forceSimpleAmpersand;e.indentationChars=a.config.dataIndentationChars||
"\t";a.dataProcessor.writer=e}}),CKEDITOR.htmlWriter=CKEDITOR.tools.createClass({base:CKEDITOR.htmlParser.basicWriter,$:function(){this.base();this.indentationChars="\t";this.selfClosingEnd=" />";this.lineBreakChars="\n";this.sortAttributes=1;this._.indent=0;this._.indentation="";this._.inPre=0;this._.rules={};var a=CKEDITOR.dtd,e;for(e in CKEDITOR.tools.extend({},a.$nonBodyContent,a.$block,a.$listItem,a.$tableContent))this.setRules(e,{indent:!a[e]["#"],breakBeforeOpen:1,breakBeforeClose:!a[e]["#"],
breakAfterClose:1,needsSpace:e in a.$block&&!(e in{li:1,dt:1,dd:1})});this.setRules("br",{breakAfterOpen:1});this.setRules("title",{indent:0,breakAfterOpen:0});this.setRules("style",{indent:0,breakBeforeClose:1});this.setRules("pre",{breakAfterOpen:1,indent:0})},proto:{openTag:function(a){var e=this._.rules[a];this._.afterCloser&&(e&&e.needsSpace&&this._.needsSpace)&&this._.output.push("\n");if(this._.indent)this.indentation();else if(e&&e.breakBeforeOpen){this.lineBreak();this.indentation()}this._.output.push("<",
a);this._.afterCloser=0},openTagClose:function(a,e){var b=this._.rules[a];if(e){this._.output.push(this.selfClosingEnd);if(b&&b.breakAfterClose)this._.needsSpace=b.needsSpace}else{this._.output.push(">");if(b&&b.indent)this._.indentation=this._.indentation+this.indentationChars}b&&b.breakAfterOpen&&this.lineBreak();a=="pre"&&(this._.inPre=1)},attribute:function(a,e){if(typeof e=="string"){this.forceSimpleAmpersand&&(e=e.replace(/&amp;/g,"&"));e=CKEDITOR.tools.htmlEncodeAttr(e)}this._.output.push(" ",
a,'="',e,'"')},closeTag:function(a){var e=this._.rules[a];if(e&&e.indent)this._.indentation=this._.indentation.substr(this.indentationChars.length);if(this._.indent)this.indentation();else if(e&&e.breakBeforeClose){this.lineBreak();this.indentation()}this._.output.push("</",a,">");a=="pre"&&(this._.inPre=0);if(e&&e.breakAfterClose){this.lineBreak();this._.needsSpace=e.needsSpace}this._.afterCloser=1},text:function(a){if(this._.indent){this.indentation();!this._.inPre&&(a=CKEDITOR.tools.ltrim(a))}this._.output.push(a)},
comment:function(a){this._.indent&&this.indentation();this._.output.push("<\!--",a,"--\>")},lineBreak:function(){!this._.inPre&&this._.output.length>0&&this._.output.push(this.lineBreakChars);this._.indent=1},indentation:function(){!this._.inPre&&this._.indentation&&this._.output.push(this._.indentation);this._.indent=0},reset:function(){this._.output=[];this._.indent=0;this._.indentation="";this._.afterCloser=0;this._.inPre=0},setRules:function(a,e){var b=this._.rules[a];b?CKEDITOR.tools.extend(b,
e,true):this._.rules[a]=e}}}),function(){CKEDITOR.plugins.add("iframe",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_iframe{background-image: url("+CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(a){var e=a.lang.iframe,b="iframe[align,longdesc,frameborder,height,name,scrolling,src,title,width]";a.plugins.dialogadvtab&&(b=b+(";iframe"+
a.plugins.dialogadvtab.allowedContent({id:1,classes:1,styles:1})));CKEDITOR.dialog.add("iframe",this.path+"dialogs/iframe.js");a.addCommand("iframe",new CKEDITOR.dialogCommand("iframe",{allowedContent:b,requiredContent:"iframe"}));a.ui.addButton&&a.ui.addButton("Iframe",{label:e.toolbar,command:"iframe",toolbar:"insert,80"});a.on("doubleclick",function(a){var b=a.data.element;if(b.is("img")&&b.data("cke-real-element-type")=="iframe")a.data.dialog="iframe"});a.addMenuItems&&a.addMenuItems({iframe:{label:e.title,
command:"iframe",group:"image"}});a.contextMenu&&a.contextMenu.addListener(function(a){if(a&&a.is("img")&&a.data("cke-real-element-type")=="iframe")return{iframe:CKEDITOR.TRISTATE_OFF}})},afterInit:function(a){var e=a.dataProcessor;(e=e&&e.dataFilter)&&e.addRules({elements:{iframe:function(b){return a.createFakeParserElement(b,"cke_iframe","iframe",true)}}})}})}(),"use strict",function(){function a(a,b){CKEDITOR.tools.extend(this,{editor:a,editable:a.editable(),doc:a.document,win:a.window},b,true);
this.inline=this.editable.isInline();if(!this.inline)this.frame=this.win.getFrame();this.target=this[this.inline?"editable":"doc"]}function e(a,b){CKEDITOR.tools.extend(this,b,{editor:a},true)}function b(a,b){var e=a.editable();CKEDITOR.tools.extend(this,{editor:a,editable:e,inline:e.isInline(),doc:a.document,win:a.window,container:CKEDITOR.document.getBody(),winTop:CKEDITOR.document.getWindow()},b,true);this.hidden={};this.visible={};if(!this.inline)this.frame=this.win.getFrame();this.queryViewport();
var f=CKEDITOR.tools.bind(this.queryViewport,this),g=CKEDITOR.tools.bind(this.hideVisible,this),k=CKEDITOR.tools.bind(this.removeAll,this);e.attachListener(this.winTop,"resize",f);e.attachListener(this.winTop,"scroll",f);e.attachListener(this.winTop,"resize",g);e.attachListener(this.win,"scroll",g);e.attachListener(this.inline?e:this.frame,"mouseout",function(a){var b=a.data.$.clientX,a=a.data.$.clientY;this.queryViewport();(b<=this.rect.left||b>=this.rect.right||a<=this.rect.top||a>=this.rect.bottom)&&
this.hideVisible();(b<=0||b>=this.winTopPane.width||a<=0||a>=this.winTopPane.height)&&this.hideVisible()},this);e.attachListener(a,"resize",f);e.attachListener(a,"mode",k);a.on("destroy",k);this.lineTpl=(new CKEDITOR.template(i)).output({lineStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},j,this.lineStyle,true)),tipLeftStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},c,{left:"0px","border-left-color":"red","border-width":"6px 0 6px 6px"},this.tipCss,this.tipLeftStyle,true)),tipRightStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},
c,{right:"0px","border-right-color":"red","border-width":"6px 6px 6px 0"},this.tipCss,this.tipRightStyle,true))})}function g(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&!(f[a.getComputedStyle("float")]||f[a.getAttribute("align")])&&!k[a.getComputedStyle("position")]}CKEDITOR.plugins.add("lineutils");CKEDITOR.LINEUTILS_BEFORE=1;CKEDITOR.LINEUTILS_AFTER=2;CKEDITOR.LINEUTILS_INSIDE=4;a.prototype={start:function(a){var b=this,c=this.editor,e=this.doc,f,g,i,j,k=CKEDITOR.tools.eventsBuffer(50,function(){if(!(c.readOnly||
c.mode!="wysiwyg")){b.relations={};if((g=e.$.elementFromPoint(i,j))&&g.nodeType){f=new CKEDITOR.dom.element(g);b.traverseSearch(f);isNaN(i+j)||b.pixelSearch(f,i,j);a&&a(b.relations,i,j)}}});this.listener=this.editable.attachListener(this.target,"mousemove",function(a){i=a.data.$.clientX;j=a.data.$.clientY;k.input()});this.editable.attachListener(this.inline?this.editable:this.frame,"mouseout",function(){k.reset()})},stop:function(){this.listener&&this.listener.removeListener()},getRange:function(){var a=
{};a[CKEDITOR.LINEUTILS_BEFORE]=CKEDITOR.POSITION_BEFORE_START;a[CKEDITOR.LINEUTILS_AFTER]=CKEDITOR.POSITION_AFTER_END;a[CKEDITOR.LINEUTILS_INSIDE]=CKEDITOR.POSITION_AFTER_START;return function(b){var c=this.editor.createRange();c.moveToPosition(this.relations[b.uid].element,a[b.type]);return c}}(),store:function(){function a(b,d,c){var e=b.getUniqueId();e in c?c[e].type=c[e].type|d:c[e]={element:b,type:d}}return function(b,c){var e;if(c&CKEDITOR.LINEUTILS_AFTER&&g(e=b.getNext())&&e.isVisible()){a(e,
CKEDITOR.LINEUTILS_BEFORE,this.relations);c=c^CKEDITOR.LINEUTILS_AFTER}if(c&CKEDITOR.LINEUTILS_INSIDE&&g(e=b.getFirst())&&e.isVisible()){a(e,CKEDITOR.LINEUTILS_BEFORE,this.relations);c=c^CKEDITOR.LINEUTILS_INSIDE}a(b,c,this.relations)}}(),traverseSearch:function(a){var b,c,e;do{e=a.$["data-cke-expando"];if(!(e&&e in this.relations)){if(a.equals(this.editable))break;if(g(a))for(b in this.lookups)(c=this.lookups[b](a))&&this.store(a,c)}}while(!(a&&a.type==CKEDITOR.NODE_ELEMENT&&a.getAttribute("contenteditable")==
"true")&&(a=a.getParent()))},pixelSearch:function(){function a(c,d,e,f,i){for(var j=0,k;i(e);){e=e+f;if(++j==25)break;if(k=this.doc.$.elementFromPoint(d,e))if(k==c)j=0;else if(b(c,k)){j=0;if(g(k=new CKEDITOR.dom.element(k)))return k}}}var b=CKEDITOR.env.ie||CKEDITOR.env.webkit?function(a,b){return a.contains(b)}:function(a,b){return!!(a.compareDocumentPosition(b)&16)};return function(b,c,e){var f=this.win.getViewPaneSize().height,h=a.call(this,b.$,c,e,-1,function(a){return a>0}),c=a.call(this,b.$,
c,e,1,function(a){return a<f});if(h)for(this.traverseSearch(h);!h.getParent().equals(b);)h=h.getParent();if(c)for(this.traverseSearch(c);!c.getParent().equals(b);)c=c.getParent();for(;h||c;){h&&(h=h.getNext(g));if(!h||h.equals(c))break;this.traverseSearch(h);c&&(c=c.getPrevious(g));if(!c||c.equals(h))break;this.traverseSearch(c)}}}(),greedySearch:function(){this.relations={};for(var a=this.editable.getElementsByTag("*"),b=0,c,e,f;c=a.getItem(b++);)if(!c.equals(this.editable)&&c.type==CKEDITOR.NODE_ELEMENT&&
(c.hasAttribute("contenteditable")||!c.isReadOnly())&&g(c)&&c.isVisible())for(f in this.lookups)(e=this.lookups[f](c))&&this.store(c,e);return this.relations}};e.prototype={locate:function(){function a(b,c){var d=b.element[c===CKEDITOR.LINEUTILS_BEFORE?"getPrevious":"getNext"]();if(d&&g(d)){b.siblingRect=d.getClientRect();return c==CKEDITOR.LINEUTILS_BEFORE?(b.siblingRect.bottom+b.elementRect.top)/2:(b.elementRect.bottom+b.siblingRect.top)/2}return c==CKEDITOR.LINEUTILS_BEFORE?b.elementRect.top:b.elementRect.bottom}
return function(b){var c;this.locations={};for(var e in b){c=b[e];c.elementRect=c.element.getClientRect();c.type&CKEDITOR.LINEUTILS_BEFORE&&this.store(e,CKEDITOR.LINEUTILS_BEFORE,a(c,CKEDITOR.LINEUTILS_BEFORE));c.type&CKEDITOR.LINEUTILS_AFTER&&this.store(e,CKEDITOR.LINEUTILS_AFTER,a(c,CKEDITOR.LINEUTILS_AFTER));c.type&CKEDITOR.LINEUTILS_INSIDE&&this.store(e,CKEDITOR.LINEUTILS_INSIDE,(c.elementRect.top+c.elementRect.bottom)/2)}return this.locations}}(),sort:function(){var a,b,c,e;return function(f,
g){a=this.locations;b=[];for(var i in a)for(var j in a[i]){c=Math.abs(f-a[i][j]);if(b.length){for(e=0;e<b.length;e++)if(c<b[e].dist){b.splice(e,0,{uid:+i,type:j,dist:c});break}e==b.length&&b.push({uid:+i,type:j,dist:c})}else b.push({uid:+i,type:j,dist:c})}return typeof g!="undefined"?b.slice(0,g):b}}(),store:function(a,b,c){this.locations[a]||(this.locations[a]={});this.locations[a][b]=c}};var c={display:"block",width:"0px",height:"0px","border-color":"transparent","border-style":"solid",position:"absolute",
top:"-6px"},j={height:"0px","border-top":"1px dashed red",position:"absolute","z-index":9999},i='<div data-cke-lineutils-line="1" class="cke_reset_all" style="{lineStyle}"><span style="{tipLeftStyle}">&nbsp;</span><span style="{tipRightStyle}">&nbsp;</span></div>';b.prototype={removeAll:function(){for(var a in this.hidden){this.hidden[a].remove();delete this.hidden[a]}for(a in this.visible){this.visible[a].remove();delete this.visible[a]}},hideLine:function(a){var b=a.getUniqueId();a.hide();this.hidden[b]=
a;delete this.visible[b]},showLine:function(a){var b=a.getUniqueId();a.show();this.visible[b]=a;delete this.hidden[b]},hideVisible:function(){for(var a in this.visible)this.hideLine(this.visible[a])},placeLine:function(a,b){var c,e,f;if(c=this.getStyle(a.uid,a.type)){for(f in this.visible)if(this.visible[f].getCustomData("hash")!==this.hash){e=this.visible[f];break}if(!e)for(f in this.hidden)if(this.hidden[f].getCustomData("hash")!==this.hash){this.showLine(e=this.hidden[f]);break}e||this.showLine(e=
this.addLine());e.setCustomData("hash",this.hash);this.visible[e.getUniqueId()]=e;e.setStyles(c);b&&b(e)}},getStyle:function(a,b){var c=this.relations[a],e=this.locations[a][b],f={};f.width=c.siblingRect?Math.max(c.siblingRect.width,c.elementRect.width):c.elementRect.width;f.top=this.inline?e+this.winTopScroll.y-this.rect.relativeY:this.rect.top+this.winTopScroll.y+e;if(f.top-this.winTopScroll.y<this.rect.top||f.top-this.winTopScroll.y>this.rect.bottom)return false;if(this.inline)f.left=c.elementRect.left-
this.rect.relativeX;else{if(c.elementRect.left>0)f.left=this.rect.left+c.elementRect.left;else{f.width=f.width+c.elementRect.left;f.left=this.rect.left}if((c=f.left+f.width-(this.rect.left+this.winPane.width))>0)f.width=f.width-c}f.left=f.left+this.winTopScroll.x;for(var g in f)f[g]=CKEDITOR.tools.cssLength(f[g]);return f},addLine:function(){var a=CKEDITOR.dom.element.createFromHtml(this.lineTpl);a.appendTo(this.container);return a},prepare:function(a,b){this.relations=a;this.locations=b;this.hash=
Math.random()},cleanup:function(){var a,b;for(b in this.visible){a=this.visible[b];a.getCustomData("hash")!==this.hash&&this.hideLine(a)}},queryViewport:function(){this.winPane=this.win.getViewPaneSize();this.winTopScroll=this.winTop.getScrollPosition();this.winTopPane=this.winTop.getViewPaneSize();this.rect=this.getClientRect(this.inline?this.editable:this.frame)},getClientRect:function(a){var a=a.getClientRect(),b=this.container.getDocumentPosition(),c=this.container.getComputedStyle("position");
a.relativeX=a.relativeY=0;if(c!="static"){a.relativeY=b.y;a.relativeX=b.x;a.top=a.top-a.relativeY;a.bottom=a.bottom-a.relativeY;a.left=a.left-a.relativeX;a.right=a.right-a.relativeX}return a}};var f={left:1,right:1,center:1},k={absolute:1,fixed:1};CKEDITOR.plugins.lineutils={finder:a,locator:e,liner:b}}(),"use strict",function(){function a(a){this.editor=a;this.registered={};this.instances={};this.selected=[];this.widgetHoldingFocusedEditable=this.focused=null;this._={nextId:0,upcasts:[],upcastCallbacks:[],
filters:{}};v(this);x(this);this.on("checkWidgets",i);this.editor.on("contentDomInvalidated",this.checkWidgets,this);u(this);s(this);t(this);o(this);w(this)}function e(a,b,c,d,f){var g=a.editor;CKEDITOR.tools.extend(this,d,{editor:g,id:b,inline:c.getParent().getName()=="span",element:c,data:CKEDITOR.tools.extend({},typeof d.defaults=="function"?d.defaults():d.defaults),dataReady:false,inited:false,ready:false,edit:e.prototype.edit,focusedEditable:null,definition:d,repository:a,draggable:d.draggable!==
false,_:{downcastFn:d.downcast&&typeof d.downcast=="string"?d.downcasts[d.downcast]:d.downcast}},true);a.fire("instanceCreated",this);I(this,d);this.init&&this.init();this.inited=true;(a=this.element.data("cke-widget-data"))&&this.setData(JSON.parse(decodeURIComponent(a)));f&&this.setData(f);this.data.classes||this.setData("classes",this.getClasses());this.dataReady=true;R(this);this.fire("data",this.data);if(this.isInited()&&g.editable().contains(this.wrapper)){this.ready=true;this.fire("ready")}}
function b(a,b,c){CKEDITOR.dom.element.call(this,b.$);this.editor=a;this._={};b=this.filter=c.filter;if(CKEDITOR.dtd[this.getName()].p){this.enterMode=b?b.getAllowedEnterMode(a.enterMode):a.enterMode;this.shiftEnterMode=b?b.getAllowedEnterMode(a.shiftEnterMode,true):a.shiftEnterMode}else this.enterMode=this.shiftEnterMode=CKEDITOR.ENTER_BR}function g(a,b){a.addCommand(b.name,{exec:function(a,c){function d(){a.widgets.finalizeCreation(h)}var e=a.widgets.focused;if(e&&e.name==b.name)e.edit();else if(b.insert)b.insert();
else if(b.template){var e=typeof b.defaults=="function"?b.defaults():b.defaults,e=CKEDITOR.dom.element.createFromHtml(b.template.output(e)),f,g=a.widgets.wrapElement(e,b.name),h=new CKEDITOR.dom.documentFragment(g.getDocument());h.append(g);if(f=a.widgets.initOn(e,b,c&&c.startupData)){e=f.once("edit",function(b){if(b.data.dialog)f.once("dialog",function(b){var b=b.data,c,e;c=b.once("ok",d,null,null,20);e=b.once("cancel",function(b){b.data&&b.data.hide===false||a.widgets.destroy(f,true)});b.once("hide",
function(){c.removeListener();e.removeListener()})});else d()},null,null,999);f.edit();e.removeListener()}else d()}},allowedContent:b.allowedContent,requiredContent:b.requiredContent,contentForms:b.contentForms,contentTransformations:b.contentTransformations})}function c(a,b){function c(b,d,e){var f=CKEDITOR.tools.getIndex(a._.upcasts,function(a){return a[2]>e});if(f<0)f=a._.upcasts.length;a._.upcasts.splice(f,0,[b,d,e])}var d=b.upcast,e=b.upcastPriority||10;if(d)if(typeof d=="string")for(d=d.split(",");d.length;)c(b.upcasts[d.pop()],
b.name,e);else c(d,b.name,e)}function j(a,b){a.focused=null;if(b.isInited()){var c=b.editor.checkDirty();a.fire("widgetBlurred",{widget:b});b.setFocused(false);!c&&b.editor.resetDirty()}}function i(a){a=a.data;if(this.editor.mode=="wysiwyg"){var b=this.editor.editable(),c=this.instances,d,f,g,h;if(b){for(d in c)c[d].isReady()&&!b.contains(c[d].wrapper)&&this.destroy(c[d],true);if(a&&a.initOnlyNew)c=this.initOnAll();else{var i=b.find(".cke_widget_wrapper"),c=[];d=0;for(f=i.count();d<f;d++){g=i.getItem(d);
if(h=!this.getByElement(g,true)){a:{h=q;for(var j=g;j=j.getParent();)if(h(j)){h=true;break a}h=false}h=!h&&b.contains(g)}if(h){g.addClass("cke_widget_new");c.push(this.initOn(g.getFirst(e.isDomWidgetElement)))}}}a&&(a.focusInited&&c.length==1)&&c[0].focus()}}}function f(a,b,c){if(!c.allowedContent)return null;var d=this._.filters[a];d||(this._.filters[a]=d={});(a=d[b])||(d[b]=a=new CKEDITOR.filter(c.allowedContent));return a}function k(a){var b=[],c=a._.upcasts,d=a._.upcastCallbacks;return{toBeWrapped:b,
iterator:function(a){var f,g,h,i,j;if("data-cke-widget-wrapper"in a.attributes){(a=a.getFirst(e.isParserWidgetElement))&&b.push([a]);return false}if("data-widget"in a.attributes){b.push([a]);return false}if(j=c.length){if(a.attributes["data-cke-widget-upcasted"])return false;i=0;for(f=d.length;i<f;++i)if(d[i](a)===false)return;for(i=0;i<j;++i){f=c[i];h={};if(g=f[0](a,h)){g instanceof CKEDITOR.htmlParser.element&&(a=g);a.attributes["data-cke-widget-data"]=encodeURIComponent(JSON.stringify(h));a.attributes["data-cke-widget-upcasted"]=
1;b.push([a,f[1]]);return false}}}}}}function d(a){return{tabindex:-1,contenteditable:"false","data-cke-widget-wrapper":1,"data-cke-filter":"off","class":"cke_widget_wrapper cke_widget_new cke_widget_"+(a?"inline":"block")}}function h(a,b,c){if(a.type==CKEDITOR.NODE_ELEMENT){var d=CKEDITOR.dtd[a.name];if(d&&!d[c.name]){var d=a.split(b),e=a.parent,b=d.getIndex();if(!a.children.length){b=b-1;a.remove()}d.children.length||d.remove();return h(e,b,c)}}a.add(c,b)}function l(a,b){return typeof a.inline==
"boolean"?a.inline:!!CKEDITOR.dtd.$inline[b]}function q(a){return a.hasAttribute("data-cke-temp")}function p(a,b,c,d){var e=a.editor;e.fire("lockSnapshot");if(c){d=c.data("cke-widget-editable");d=b.editables[d];a.widgetHoldingFocusedEditable=b;b.focusedEditable=d;c.addClass("cke_widget_editable_focused");d.filter&&e.setActiveFilter(d.filter);e.setActiveEnterMode(d.enterMode,d.shiftEnterMode)}else{d||b.focusedEditable.removeClass("cke_widget_editable_focused");b.focusedEditable=null;a.widgetHoldingFocusedEditable=
null;e.setActiveFilter(null);e.setActiveEnterMode(null,null)}e.fire("unlockSnapshot")}function m(a){a.contextMenu&&a.contextMenu.addListener(function(b){if(b=a.widgets.getByElement(b,true))return b.fire("contextMenu",{})})}function n(a,b){return CKEDITOR.tools.trim(b)}function o(a){var b=a.editor,c=CKEDITOR.plugins.lineutils;b.on("dragstart",function(c){var d=c.data.target;if(e.isDomDragHandler(d)){d=a.getByElement(d);c.data.dataTransfer.setData("cke/widget-id",d.id);b.focus();d.focus()}});b.on("drop",
function(c){var d=c.data.dataTransfer,e=d.getData("cke/widget-id"),f=b.createRange();if(!(e===""||d.getTransferType(b)!=CKEDITOR.DATA_TRANSFER_INTERNAL))if(d=a.instances[e]){f.setStartBefore(d.wrapper);f.setEndAfter(d.wrapper);c.data.dragRange=f;delete CKEDITOR.plugins.clipboard.dragStartContainerChildCount;delete CKEDITOR.plugins.clipboard.dragEndContainerChildCount;c.data.dataTransfer.setData("text/html",b.editable().getHtmlFromRange(f).getHtml());b.widgets.destroy(d,true)}});b.on("contentDom",
function(){var d=b.editable();CKEDITOR.tools.extend(a,{finder:new c.finder(b,{lookups:{"default":function(b){if(!b.is(CKEDITOR.dtd.$listItem)&&b.is(CKEDITOR.dtd.$block)&&!e.isDomNestedEditable(b)&&!a._.draggedWidget.wrapper.contains(b)){var c=e.getNestedEditable(d,b);if(c){b=a._.draggedWidget;if(a.getByElement(c)==b)return;c=CKEDITOR.filter.instances[c.data("cke-filter")];b=b.requiredContent;if(c&&b&&!c.check(b))return}return CKEDITOR.LINEUTILS_BEFORE|CKEDITOR.LINEUTILS_AFTER}}}}),locator:new c.locator(b),
liner:new c.liner(b,{lineStyle:{cursor:"move !important","border-top-color":"#666"},tipLeftStyle:{"border-left-color":"#666"},tipRightStyle:{"border-right-color":"#666"}})},true)})}function s(a){var b=a.editor;b.on("contentDom",function(){var c=b.editable(),d=c.isInline()?c:b.document,f,g;c.attachListener(d,"mousedown",function(b){var c=b.data.getTarget();if(!c.type)return false;f=a.getByElement(c);g=0;if(f)if(f.inline&&c.type==CKEDITOR.NODE_ELEMENT&&c.hasAttribute("data-cke-widget-drag-handler"))g=
1;else if(e.getNestedEditable(f.wrapper,c))f=null;else{b.data.preventDefault();CKEDITOR.env.ie||f.focus()}});c.attachListener(d,"mouseup",function(){if(g&&f&&f.wrapper){g=0;f.focus()}});CKEDITOR.env.ie&&c.attachListener(d,"mouseup",function(){setTimeout(function(){if(f&&f.wrapper&&c.contains(f.wrapper)){f.focus();f=null}})})});b.on("doubleclick",function(b){var c=a.getByElement(b.data.element);if(c&&!e.getNestedEditable(c.wrapper,b.data.element))return c.fire("doubleclick",{element:b.data.element})},
null,null,1)}function t(a){a.editor.on("key",function(b){var c=a.focused,d=a.widgetHoldingFocusedEditable,e;if(c)e=c.fire("key",{keyCode:b.data.keyCode});else if(d){c=b.data.keyCode;b=d.focusedEditable;if(c==CKEDITOR.CTRL+65){c=b.getBogus();d=d.editor.createRange();d.selectNodeContents(b);c&&d.setEndAt(c,CKEDITOR.POSITION_BEFORE_START);d.select();e=false}else if(c==8||c==46){e=d.editor.getSelection().getRanges();d=e[0];e=!(e.length==1&&d.collapsed&&d.checkBoundaryOfElement(b,CKEDITOR[c==8?"START":
"END"]))}else e=void 0}return e},null,null,1)}function w(a){function b(c){a.focused&&B(a.focused,c.name=="cut")}var c=a.editor;c.on("contentDom",function(){var a=c.editable();a.attachListener(a,"copy",b);a.attachListener(a,"cut",b)})}function u(a){var b=a.editor;b.on("selectionCheck",function(){a.fire("checkSelection")});a.on("checkSelection",a.checkSelection,a);b.on("selectionChange",function(c){var d=(c=e.getNestedEditable(b.editable(),c.data.selection.getStartElement()))&&a.getByElement(c),f=a.widgetHoldingFocusedEditable;
if(f){if(f!==d||!f.focusedEditable.equals(c)){p(a,f,null);d&&c&&p(a,d,c)}}else d&&c&&p(a,d,c)});b.on("dataReady",function(){r(a).commit()});b.on("blur",function(){var b;(b=a.focused)&&j(a,b);(b=a.widgetHoldingFocusedEditable)&&p(a,b,null)})}function x(a){var b=a.editor,c={};b.on("toDataFormat",function(b){var d=CKEDITOR.tools.getNextNumber(),f=[];b.data.downcastingSessionId=d;c[d]=f;b.data.dataValue.forEach(function(b){var c=b.attributes,d;if("data-cke-widget-id"in c){if(c=a.instances[c["data-cke-widget-id"]]){d=
b.getFirst(e.isParserWidgetElement);f.push({wrapper:b,element:d,widget:c,editables:{}});d.attributes["data-cke-widget-keep-attr"]!="1"&&delete d.attributes["data-widget"]}}else if("data-cke-widget-editable"in c){f[f.length-1].editables[c["data-cke-widget-editable"]]=b;return false}},CKEDITOR.NODE_ELEMENT,true)},null,null,8);b.on("toDataFormat",function(a){if(a.data.downcastingSessionId)for(var a=c[a.data.downcastingSessionId],b,d,e,f,g,h;b=a.shift();){d=b.widget;e=b.element;f=d._.downcastFn&&d._.downcastFn.call(d,
e);for(h in b.editables){g=b.editables[h];delete g.attributes.contenteditable;g.setHtml(d.editables[h].getData())}f||(f=e);b.wrapper.replaceWith(f)}},null,null,13);b.on("contentDomUnload",function(){a.destroyAll(true)})}function v(a){var b=a.editor,c,d;b.on("toHtml",function(b){var d=k(a),f;for(b.data.dataValue.forEach(d.iterator,CKEDITOR.NODE_ELEMENT,true);f=d.toBeWrapped.pop();){var g=f[0],h=g.parent;h.type==CKEDITOR.NODE_ELEMENT&&h.attributes["data-cke-widget-wrapper"]&&h.replaceWith(g);a.wrapElement(f[0],
f[1])}c=b.data.protectedWhitespaces?b.data.dataValue.children.length==3&&e.isParserWidgetWrapper(b.data.dataValue.children[1]):b.data.dataValue.children.length==1&&e.isParserWidgetWrapper(b.data.dataValue.children[0])},null,null,8);b.on("dataReady",function(){if(d)for(var c=b.editable().find(".cke_widget_wrapper"),f,g,h=0,i=c.count();h<i;++h){f=c.getItem(h);g=f.getFirst(e.isDomWidgetElement);if(g.type==CKEDITOR.NODE_ELEMENT&&g.data("widget")){g.replace(f);a.wrapElement(g)}else f.remove()}d=0;a.destroyAll(true);
a.initOnAll()});b.on("loadSnapshot",function(b){/data-cke-widget/.test(b.data)&&(d=1);a.destroyAll(true)},null,null,9);b.on("paste",function(a){a=a.data;a.dataValue=a.dataValue.replace(Z,n);if(a.range)if(a=e.getNestedEditable(b.editable(),a.range.startContainer))(a=CKEDITOR.filter.instances[a.data("cke-filter")])&&b.setActiveFilter(a)});b.on("afterInsertHtml",function(d){if(d.data.intoRange)a.checkWidgets({initOnlyNew:true});else{b.fire("lockSnapshot");a.checkWidgets({initOnlyNew:true,focusInited:c});
b.fire("unlockSnapshot")}})}function r(a){var b=a.selected,c=[],d=b.slice(0),e=null;return{select:function(a){CKEDITOR.tools.indexOf(b,a)<0&&c.push(a);a=CKEDITOR.tools.indexOf(d,a);a>=0&&d.splice(a,1);return this},focus:function(a){e=a;return this},commit:function(){var f=a.focused!==e,g,h;a.editor.fire("lockSnapshot");for(f&&(g=a.focused)&&j(a,g);g=d.pop();){b.splice(CKEDITOR.tools.indexOf(b,g),1);if(g.isInited()){h=g.editor.checkDirty();g.setSelected(false);!h&&g.editor.resetDirty()}}if(f&&e){h=
a.editor.checkDirty();a.focused=e;a.fire("widgetFocused",{widget:e});e.setFocused(true);!h&&a.editor.resetDirty()}for(;g=c.pop();){b.push(g);g.setSelected(true)}a.editor.fire("unlockSnapshot")}}}function y(a,b,c){var d=0,b=A(b),e=a.data.classes||{},f;if(b){for(e=CKEDITOR.tools.clone(e);f=b.pop();)if(c)e[f]||(d=e[f]=1);else if(e[f]){delete e[f];d=1}d&&a.setData("classes",e)}}function z(a){a.cancel()}function B(a,b){var c=a.editor,d=c.document;if(!d.getById("cke_copybin")){var e=c.blockless||CKEDITOR.env.ie?
"span":"div",f=d.createElement(e),g=d.createElement(e),e=CKEDITOR.env.ie&&CKEDITOR.env.version<9;g.setAttributes({id:"cke_copybin","data-cke-temp":"1"});f.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"});f.setStyle(c.config.contentsLangDirection=="ltr"?"left":"right","-5000px");var h=c.createRange();h.setStartBefore(a.wrapper);h.setEndAfter(a.wrapper);f.setHtml('<span data-cke-copybin-start="1">​</span>'+c.editable().getHtmlFromRange(h).getHtml()+'<span data-cke-copybin-end="1">​</span>');
c.fire("saveSnapshot");c.fire("lockSnapshot");g.append(f);c.editable().append(g);var i=c.on("selectionChange",z,null,null,0),j=a.repository.on("checkSelection",z,null,null,0);if(e)var k=d.getDocumentElement().$,o=k.scrollTop;h=c.createRange();h.selectNodeContents(f);h.select();if(e)k.scrollTop=o;setTimeout(function(){b||a.focus();g.remove();i.removeListener();j.removeListener();c.fire("unlockSnapshot");if(b){a.repository.del(a);c.fire("saveSnapshot")}},100)}}function A(a){return(a=(a=a.getDefinition().attributes)&&
a["class"])?a.split(/\s+/):null}function D(){var a=CKEDITOR.document.getActive(),b=this.editor,c=b.editable();(c.isInline()?c:b.document.getWindow().getFrame()).equals(a)&&b.focusManager.focus(c)}function C(){CKEDITOR.env.gecko&&this.editor.unlockSelection();if(!CKEDITOR.env.webkit){this.editor.forceNextSelectionCheck();this.editor.selectionChange(1)}}function F(a){var b=null;a.on("data",function(){var a=this.data.classes,c;if(b!=a){for(c in b)(!a||!a[c])&&this.removeClass(c);for(c in a)this.addClass(c);
b=a}})}function E(a){if(a.draggable){var b=a.editor,c=a.wrapper.getLast(e.isDomDragHandlerContainer),d;if(c)d=c.findOne("img");else{c=new CKEDITOR.dom.element("span",b.document);c.setAttributes({"class":"cke_reset cke_widget_drag_handler_container",style:"background:rgba(220,220,220,0.5);background-image:url("+b.plugins.widget.path+"images/handle.png)"});d=new CKEDITOR.dom.element("img",b.document);d.setAttributes({"class":"cke_reset cke_widget_drag_handler","data-cke-widget-drag-handler":"1",src:CKEDITOR.tools.transparentImageData,
width:M,title:b.lang.widget.move,height:M});a.inline&&d.setAttribute("draggable","true");c.append(d);a.wrapper.append(c)}a.wrapper.on("dragover",function(a){a.data.preventDefault()});a.wrapper.on("mouseenter",a.updateDragHandlerPosition,a);setTimeout(function(){a.on("data",a.updateDragHandlerPosition,a)},50);if(!a.inline){d.on("mousedown",H,a);if(CKEDITOR.env.ie&&CKEDITOR.env.version<9)d.on("dragstart",function(a){a.data.preventDefault(true)})}a.dragHandlerContainer=c}}function H(a){function b(){var c;
for(k.reset();c=h.pop();)c.removeListener();var d=i;c=a.sender;var e=this.repository.finder,f=this.repository.liner,g=this.editor,j=this.editor.editable();if(!CKEDITOR.tools.isEmpty(f.visible)){d=e.getRange(d[0]);this.focus();g.fire("drop",{dropRange:d,target:d.startContainer})}j.removeClass("cke_widget_dragging");f.hideVisible();g.fire("dragend",{target:c})}var c=this.repository.finder,d=this.repository.locator,e=this.repository.liner,f=this.editor,g=f.editable(),h=[],i=[];this.repository._.draggedWidget=
this;var j=c.greedySearch(),k=CKEDITOR.tools.eventsBuffer(50,function(){o=d.locate(j);i=d.sort(s,1);if(i.length){e.prepare(j,o);e.placeLine(i[0]);e.cleanup()}}),o,s;g.addClass("cke_widget_dragging");h.push(g.on("mousemove",function(a){s=a.data.$.clientY;k.input()}));f.fire("dragstart",{target:a.sender});h.push(f.document.once("mouseup",b,this));g.isInline()||h.push(CKEDITOR.document.once("mouseup",b,this))}function L(a){var b,c,d=a.editables;a.editables={};if(a.editables)for(b in d){c=d[b];a.initEditable(b,
typeof c=="string"?{selector:c}:c)}}function K(a){if(a.mask){var b=a.wrapper.findOne(".cke_widget_mask");if(!b){b=new CKEDITOR.dom.element("img",a.editor.document);b.setAttributes({src:CKEDITOR.tools.transparentImageData,"class":"cke_reset cke_widget_mask"});a.wrapper.append(b)}a.mask=b}}function S(a){if(a.parts){var b={},c,d;for(d in a.parts){c=a.wrapper.findOne(a.parts[d]);b[d]=c}a.parts=b}}function I(a,b){U(a);S(a);L(a);K(a);E(a);F(a);if(CKEDITOR.env.ie&&CKEDITOR.env.version<9)a.wrapper.on("dragstart",
function(b){var c=b.data.getTarget();!e.getNestedEditable(a,c)&&(!a.inline||!e.isDomDragHandler(c))&&b.data.preventDefault()});a.wrapper.removeClass("cke_widget_new");a.element.addClass("cke_widget_element");a.on("key",function(b){b=b.data.keyCode;if(b==13)a.edit();else{if(b==CKEDITOR.CTRL+67||b==CKEDITOR.CTRL+88){B(a,b==CKEDITOR.CTRL+88);return}if(b in N||CKEDITOR.CTRL&b||CKEDITOR.ALT&b)return}return false},null,null,999);a.on("doubleclick",function(b){a.edit()&&b.cancel()});if(b.data)a.on("data",
b.data);if(b.edit)a.on("edit",b.edit)}function U(a){(a.wrapper=a.element.getParent()).setAttribute("data-cke-widget-id",a.id)}function R(a){a.element.data("cke-widget-data",encodeURIComponent(JSON.stringify(a.data)))}var M=15;CKEDITOR.plugins.add("widget",{requires:"lineutils,clipboard",onLoad:function(){CKEDITOR.addCss(".cke_widget_wrapper{position:relative;outline:none}.cke_widget_inline{display:inline-block}.cke_widget_wrapper:hover>.cke_widget_element{outline:2px solid yellow;cursor:default}.cke_widget_wrapper:hover .cke_widget_editable{outline:2px solid yellow}.cke_widget_wrapper.cke_widget_focused>.cke_widget_element,.cke_widget_wrapper .cke_widget_editable.cke_widget_editable_focused{outline:2px solid #ace}.cke_widget_editable{cursor:text}.cke_widget_drag_handler_container{position:absolute;width:"+
M+"px;height:0;display:none;opacity:0.75;transition:height 0s 0.2s;line-height:0}.cke_widget_wrapper:hover>.cke_widget_drag_handler_container{height:"+M+"px;transition:none}.cke_widget_drag_handler_container:hover{opacity:1}img.cke_widget_drag_handler{cursor:move;width:"+M+"px;height:"+M+"px;display:inline-block}.cke_widget_mask{position:absolute;top:0;left:0;width:100%;height:100%;display:block}.cke_editable.cke_widget_dragging, .cke_editable.cke_widget_dragging *{cursor:move !important}")},beforeInit:function(b){b.widgets=
new a(b)},afterInit:function(a){var b=a.widgets.registered,c,d,e;for(d in b){c=b[d];(e=c.button)&&a.ui.addButton&&a.ui.addButton(CKEDITOR.tools.capitalize(c.name,true),{label:e,command:c.name,toolbar:"insert,10"})}m(a)}});a.prototype={MIN_SELECTION_CHECK_INTERVAL:500,add:function(a,b){b=CKEDITOR.tools.prototypedCopy(b);b.name=a;b._=b._||{};this.editor.fire("widgetDefinition",b);if(b.template)b.template=new CKEDITOR.template(b.template);g(this.editor,b);c(this,b);return this.registered[a]=b},addUpcastCallback:function(a){this._.upcastCallbacks.push(a)},
checkSelection:function(){var a=this.editor.getSelection(),b=a.getSelectedElement(),c=r(this),d;if(b&&(d=this.getByElement(b,true)))return c.focus(d).select(d).commit();a=a.getRanges()[0];if(!a||a.collapsed)return c.commit();a=new CKEDITOR.dom.walker(a);for(a.evaluator=e.isDomWidgetWrapper;b=a.next();)c.select(this.getByElement(b));c.commit()},checkWidgets:function(a){this.fire("checkWidgets",CKEDITOR.tools.copy(a||{}))},del:function(a){if(this.focused===a){var b=a.editor,c=b.createRange(),d;if(!(d=
c.moveToClosestEditablePosition(a.wrapper,true)))d=c.moveToClosestEditablePosition(a.wrapper,false);d&&b.getSelection().selectRanges([c])}a.wrapper.remove();this.destroy(a,true)},destroy:function(a,b){this.widgetHoldingFocusedEditable===a&&p(this,a,null,b);a.destroy(b);delete this.instances[a.id];this.fire("instanceDestroyed",a)},destroyAll:function(a,b){var c,d,e=this.instances;if(b&&!a){d=b.find(".cke_widget_wrapper");for(var e=d.count(),f=0;f<e;++f)(c=this.getByElement(d.getItem(f),true))&&this.destroy(c)}else for(d in e){c=
e[d];this.destroy(c,a)}},finalizeCreation:function(a){if((a=a.getFirst())&&e.isDomWidgetWrapper(a)){this.editor.insertElement(a);a=this.getByElement(a);a.ready=true;a.fire("ready");a.focus()}},getByElement:function(){var a={div:1,span:1};return function(b,c){if(!b)return null;var d=b.is(a)&&b.data("cke-widget-id");if(!c&&!d){var e=this.editor.editable();do b=b.getParent();while(b&&!b.equals(e)&&!(d=b.is(a)&&b.data("cke-widget-id")))}return this.instances[d]||null}}(),initOn:function(a,b,c){b?typeof b==
"string"&&(b=this.registered[b]):b=this.registered[a.data("widget")];if(!b)return null;var d=this.wrapElement(a,b.name);if(d){if(d.hasClass("cke_widget_new")){a=new e(this,this._.nextId++,a,b,c);if(a.isInited())return this.instances[a.id]=a;return null}return this.getByElement(a)}return null},initOnAll:function(a){for(var a=(a||this.editor.editable()).find(".cke_widget_new"),b=[],c,d=a.count();d--;)(c=this.initOn(a.getItem(d).getFirst(e.isDomWidgetElement)))&&b.push(c);return b},onWidget:function(a){var b=
Array.prototype.slice.call(arguments);b.shift();for(var c in this.instances){var d=this.instances[c];d.name==a&&d.on.apply(d,b)}this.on("instanceCreated",function(c){c=c.data;c.name==a&&c.on.apply(c,b)})},parseElementClasses:function(a){if(!a)return null;for(var a=CKEDITOR.tools.trim(a).split(/\s+/),b,c={},d=0;b=a.pop();)b.indexOf("cke_")==-1&&(c[b]=d=1);return d?c:null},wrapElement:function(a,b){var c=null,e,f;if(a instanceof CKEDITOR.dom.element){e=this.registered[b||a.data("widget")];if(!e)return null;
if((c=a.getParent())&&c.type==CKEDITOR.NODE_ELEMENT&&c.data("cke-widget-wrapper"))return c;a.hasAttribute("data-cke-widget-keep-attr")||a.data("cke-widget-keep-attr",a.data("widget")?1:0);b&&a.data("widget",b);f=l(e,a.getName());c=new CKEDITOR.dom.element(f?"span":"div");c.setAttributes(d(f));c.data("cke-display-name",e.pathName?e.pathName:a.getName());a.getParent(true)&&c.replace(a);a.appendTo(c)}else if(a instanceof CKEDITOR.htmlParser.element){e=this.registered[b||a.attributes["data-widget"]];
if(!e)return null;if((c=a.parent)&&c.type==CKEDITOR.NODE_ELEMENT&&c.attributes["data-cke-widget-wrapper"])return c;"data-cke-widget-keep-attr"in a.attributes||(a.attributes["data-cke-widget-keep-attr"]=a.attributes["data-widget"]?1:0);b&&(a.attributes["data-widget"]=b);f=l(e,a.name);c=new CKEDITOR.htmlParser.element(f?"span":"div",d(f));c.attributes["data-cke-display-name"]=e.pathName?e.pathName:a.name;e=a.parent;var g;if(e){g=a.getIndex();a.remove()}c.add(a);e&&h(e,g,c)}return c},_tests_createEditableFilter:f};
CKEDITOR.event.implementOn(a.prototype);e.prototype={addClass:function(a){this.element.addClass(a)},applyStyle:function(a){y(this,a,1)},checkStyleActive:function(a){var a=A(a),b;if(!a)return false;for(;b=a.pop();)if(!this.hasClass(b))return false;return true},destroy:function(a){this.fire("destroy");if(this.editables)for(var b in this.editables)this.destroyEditable(b,a);if(!a){this.element.data("cke-widget-keep-attr")=="0"&&this.element.removeAttribute("data-widget");this.element.removeAttributes(["data-cke-widget-data",
"data-cke-widget-keep-attr"]);this.element.removeClass("cke_widget_element");this.element.replace(this.wrapper)}this.wrapper=null},destroyEditable:function(a,b){var c=this.editables[a];c.removeListener("focus",C);c.removeListener("blur",D);this.editor.focusManager.remove(c);if(!b){this.repository.destroyAll(false,c);c.removeClass("cke_widget_editable");c.removeClass("cke_widget_editable_focused");c.removeAttributes(["contenteditable","data-cke-widget-editable","data-cke-enter-mode"])}delete this.editables[a]},
edit:function(){var a={dialog:this.dialog},b=this;if(this.fire("edit",a)===false||!a.dialog)return false;this.editor.openDialog(a.dialog,function(a){var c,d;if(b.fire("dialog",a)!==false){c=a.on("show",function(){a.setupContent(b)});d=a.on("ok",function(){var c,d=b.on("data",function(a){c=1;a.cancel()},null,null,0);b.editor.fire("saveSnapshot");a.commitContent(b);d.removeListener();if(c){b.fire("data",b.data);b.editor.fire("saveSnapshot")}});a.once("hide",function(){c.removeListener();d.removeListener()})}});
return true},getClasses:function(){return this.repository.parseElementClasses(this.element.getAttribute("class"))},hasClass:function(a){return this.element.hasClass(a)},initEditable:function(a,c){var d=this._findOneNotNested(c.selector);if(d&&d.is(CKEDITOR.dtd.$editable)){d=new b(this.editor,d,{filter:f.call(this.repository,this.name,a,c)});this.editables[a]=d;d.setAttributes({contenteditable:"true","data-cke-widget-editable":a,"data-cke-enter-mode":d.enterMode});d.filter&&d.data("cke-filter",d.filter.id);
d.addClass("cke_widget_editable");d.removeClass("cke_widget_editable_focused");c.pathName&&d.data("cke-display-name",c.pathName);this.editor.focusManager.add(d);d.on("focus",C,this);CKEDITOR.env.ie&&d.on("blur",D,this);d._.initialSetData=true;d.setData(d.getHtml());return true}return false},_findOneNotNested:function(a){for(var a=this.wrapper.find(a),b,c,d=0;d<a.count();d++){b=a.getItem(d);c=b.getAscendant(e.isDomWidgetWrapper);if(this.wrapper.equals(c))return b}return null},isInited:function(){return!(!this.wrapper||
!this.inited)},isReady:function(){return this.isInited()&&this.ready},focus:function(){var a=this.editor.getSelection();if(a){var b=this.editor.checkDirty();a.fake(this.wrapper);!b&&this.editor.resetDirty()}this.editor.focus()},removeClass:function(a){this.element.removeClass(a)},removeStyle:function(a){y(this,a,0)},setData:function(a,b){var c=this.data,d=0;if(typeof a=="string"){if(c[a]!==b){c[a]=b;d=1}}else{var e=a;for(a in e)if(c[a]!==e[a]){d=1;c[a]=e[a]}}if(d&&this.dataReady){R(this);this.fire("data",
c)}return this},setFocused:function(a){this.wrapper[a?"addClass":"removeClass"]("cke_widget_focused");this.fire(a?"focus":"blur");return this},setSelected:function(a){this.wrapper[a?"addClass":"removeClass"]("cke_widget_selected");this.fire(a?"select":"deselect");return this},updateDragHandlerPosition:function(){var a=this.editor,b=this.element.$,c=this._.dragHandlerOffset,b={x:b.offsetLeft,y:b.offsetTop-M};if(!c||!(b.x==c.x&&b.y==c.y)){c=a.checkDirty();a.fire("lockSnapshot");this.dragHandlerContainer.setStyles({top:b.y+
"px",left:b.x+"px",display:"block"});a.fire("unlockSnapshot");!c&&a.resetDirty();this._.dragHandlerOffset=b}}};CKEDITOR.event.implementOn(e.prototype);e.getNestedEditable=function(a,b){return!b||b.equals(a)?null:e.isDomNestedEditable(b)?b:e.getNestedEditable(a,b.getParent())};e.isDomDragHandler=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-drag-handler")};e.isDomDragHandlerContainer=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_widget_drag_handler_container")};
e.isDomNestedEditable=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-editable")};e.isDomWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-widget")};e.isDomWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-wrapper")};e.isParserWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&!!a.attributes["data-widget"]};e.isParserWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&
!!a.attributes["data-cke-widget-wrapper"]};b.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.dom.element.prototype),{setData:function(a){this._.initialSetData||this.editor.widgets.destroyAll(false,this);this._.initialSetData=false;a=this.editor.dataProcessor.toHtml(a,{context:this.getName(),filter:this.filter,enterMode:this.enterMode});this.setHtml(a);this.editor.widgets.initOnAll(this)},getData:function(){return this.editor.dataProcessor.toDataFormat(this.getHtml(),{context:this.getName(),
filter:this.filter,enterMode:this.enterMode})}});var Z=RegExp('^(?:<(?:div|span)(?: data-cke-temp="1")?(?: id="cke_copybin")?(?: data-cke-temp="1")?>)?(?:<(?:div|span)(?: style="[^"]+")?>)?<span [^>]*data-cke-copybin-start="1"[^>]*>.?</span>([\\s\\S]+)<span [^>]*data-cke-copybin-end="1"[^>]*>.?</span>(?:</(?:div|span)>)?(?:</(?:div|span)>)?$',"i"),N={37:1,38:1,39:1,40:1,8:1,46:1};(function(){function a(){}function b(a,c,d){if(!d||!this.checkElement(a))return false;return(a=d.widgets.getByElement(a,
true))&&a.checkStyleActive(this)}CKEDITOR.style.addCustomHandler({type:"widget",setup:function(a){this.widget=a.widget},apply:function(a){a instanceof CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&a.widgets.focused.applyStyle(this)},remove:function(a){a instanceof CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&a.widgets.focused.removeStyle(this)},checkActive:function(a,b){return this.checkElementMatch(a.lastElement,0,b)},checkApplicable:function(a,b){return!(b instanceof CKEDITOR.editor)?
false:this.checkElement(a.lastElement)},checkElementMatch:b,checkElementRemovable:b,checkElement:function(a){if(!e.isDomWidgetWrapper(a))return false;return(a=a.getFirst(e.isDomWidgetElement))&&a.data("widget")==this.widget},buildPreview:function(a){return a||this._.definition.name},toAllowedContentRules:function(a){if(!a)return null;var a=a.widgets.registered[this.widget],b,c={};if(!a)return null;if(a.styleableElements){b=this.getClassesArray();if(!b)return null;c[a.styleableElements]={classes:b,
propertiesOnly:true};return c}return a.styleToAllowedContentRules?a.styleToAllowedContentRules(this):null},getClassesArray:function(){var a=this._.definition.attributes&&this._.definition.attributes["class"];return a?CKEDITOR.tools.trim(a).split(/\s+/):null},applyToRange:a,removeFromRange:a,applyToObject:a})})();CKEDITOR.plugins.widget=e;e.repository=a;e.nestedEditable=b}(),"use strict",function(){function a(a){function c(){if(!this.deflated){if(a.widgets.focused==this.widget)this.focused=true;a.widgets.destroy(this.widget);
this.deflated=true}}function f(){var b=a.editable(),c=a.document;if(this.deflated){this.widget=a.widgets.initOn(this.element,"image",this.widget.data);if(this.widget.inline&&!(new CKEDITOR.dom.elementPath(this.widget.wrapper,b)).block){b=c.createElement(a.activeEnterMode==CKEDITOR.ENTER_P?"p":"div");b.replace(this.widget.wrapper);this.widget.wrapper.move(b)}if(this.focused){this.widget.focus();delete this.focused}delete this.deflated}else{var d=this.widget,b=g,c=d.wrapper,e=d.data.align,d=d.data.hasCaption;
if(b){for(var h=3;h--;)c.removeClass(b[h]);e=="center"?d&&c.addClass(b[1]):e!="none"&&c.addClass(b[m[e]])}else if(e=="center"){d?c.setStyle("text-align","center"):c.removeStyle("text-align");c.removeStyle("float")}else{e=="none"?c.removeStyle("float"):c.setStyle("float",e);c.removeStyle("text-align")}}}var g=a.config.image2_alignClasses,i=a.config.image2_captionedClass;return{allowedContent:d(a),requiredContent:"img[src,alt]",features:h(a),styleableElements:"img figure",contentTransformations:[["img[width]: sizeToAttribute"]],
editables:{caption:{selector:"figcaption",allowedContent:"br em strong sub sup u s; a[!href]"}},parts:{image:"img",caption:"figcaption"},dialog:"image2",template:q,data:function(){var b=this.features;if(this.data.hasCaption&&!a.filter.checkFeature(b.caption))this.data.hasCaption=false;if(this.data.align!="none"&&!a.filter.checkFeature(b.align))this.data.align="none";this.shiftState({widget:this,element:this.element,oldData:this.oldData,newData:this.data,deflate:c,inflate:f});if(this.data.link){if(!this.parts.link)this.parts.link=
this.parts.image.getParent()}else this.parts.link&&delete this.parts.link;this.parts.image.setAttributes({src:this.data.src,"data-cke-saved-src":this.data.src,alt:this.data.alt});if(this.oldData&&!this.oldData.hasCaption&&this.data.hasCaption)for(var d in this.data.classes)this.parts.image.removeClass(d);if(a.filter.checkFeature(b.dimension)){b=this.data;b={width:b.width,height:b.height};d=this.parts.image;for(var e in b)b[e]?d.setAttribute(e,b[e]):d.removeAttribute(e)}this.oldData=CKEDITOR.tools.extend({},
this.data)},init:function(){var b=CKEDITOR.plugins.image2,c=this.parts.image,d={hasCaption:!!this.parts.caption,src:c.getAttribute("src"),alt:c.getAttribute("alt")||"",width:c.getAttribute("width")||"",height:c.getAttribute("height")||"",lock:this.ready?b.checkHasNaturalRatio(c):true},e=c.getAscendant("a");if(e&&this.wrapper.contains(e))this.parts.link=e;if(!d.align){c=d.hasCaption?this.element:c;if(g){if(c.hasClass(g[0]))d.align="left";else if(c.hasClass(g[2]))d.align="right";d.align?c.removeClass(g[m[d.align]]):
d.align="none"}else{d.align=c.getStyle("float")||"none";c.removeStyle("float")}}if(a.plugins.link&&this.parts.link){d.link=CKEDITOR.plugins.link.parseLinkAttributes(a,this.parts.link);if((c=d.link.advanced)&&c.advCSSClasses)c.advCSSClasses=CKEDITOR.tools.trim(c.advCSSClasses.replace(/cke_\S+/,""))}this.wrapper[(d.hasCaption?"remove":"add")+"Class"]("cke_image_nocaption");this.setData(d);a.filter.checkFeature(this.features.dimension)&&a.config.image2_disableResizer!==true&&j(this);this.shiftState=
b.stateShifter(this.editor);this.on("contextMenu",function(a){a.data.image=CKEDITOR.TRISTATE_OFF;if(this.parts.link||this.wrapper.getAscendant("a"))a.data.link=a.data.unlink=CKEDITOR.TRISTATE_OFF});this.on("dialog",function(a){a.data.widget=this},this)},addClass:function(a){l(this).addClass(a)},hasClass:function(a){return l(this).hasClass(a)},removeClass:function(a){l(this).removeClass(a)},getClasses:function(){var a=RegExp("^("+[].concat(i,g).join("|")+")$");return function(){var b=this.repository.parseElementClasses(l(this).getAttribute("class")),
c;for(c in b)a.test(c)&&delete b[c];return b}}(),upcast:e(a),downcast:b(a)}}function e(a){var b=g(a),d=a.config.image2_captionedClass;return function(a,e){var f={width:1,height:1},g=a.name,h;if(!a.attributes["data-cke-realelement"]){if(b(a)){if(g=="div")if(h=a.getFirst("figure")){a.replaceWith(h);a=h}e.align="center";h=a.getFirst("img")||a.getFirst("a").getFirst("img")}else g=="figure"&&a.hasClass(d)?h=a.getFirst("img")||a.getFirst("a").getFirst("img"):c(a)&&(h=a.name=="a"?a.children[0]:a);if(h){for(var i in f)(g=
h.attributes[i])&&g.match(n)&&delete h.attributes[i];return a}}}}function b(a){var b=a.config.image2_alignClasses;return function(a){var c=a.name=="a"?a.getFirst():a,d=c.attributes,e=this.data.align;if(!this.inline){var f=a.getFirst("span");f&&f.replaceWith(f.getFirst({img:1,a:1}))}if(e&&e!="none"){f=CKEDITOR.tools.parseCssText(d.style||"");e=="center"&&a.name=="figure"?a=a.wrapWith(new CKEDITOR.htmlParser.element("div",b?{"class":b[1]}:{style:"text-align:center"})):e in{left:1,right:1}&&(b?c.addClass(b[m[e]]):
f["float"]=e);if(!b&&!CKEDITOR.tools.isEmpty(f))d.style=CKEDITOR.tools.writeCssText(f)}return a}}function g(a){var b=a.config.image2_captionedClass,d=a.config.image2_alignClasses,e={figure:1,a:1,img:1};return function(f){if(!(f.name in{div:1,p:1}))return false;var g=f.children;if(g.length!==1)return false;g=g[0];if(!(g.name in e))return false;if(f.name=="p"){if(!c(g))return false}else if(g.name=="figure"){if(!g.hasClass(b))return false}else if(a.enterMode==CKEDITOR.ENTER_P||!c(g))return false;return(d?
f.hasClass(d[1]):CKEDITOR.tools.parseCssText(f.attributes.style||"",true)["text-align"]=="center")?true:false}}function c(a){return a.name=="img"?true:a.name=="a"?a.children.length==1&&a.getFirst("img"):false}function j(a){var b=a.editor,c=b.editable(),d=b.document,e=a.resizer=d.createElement("span");e.addClass("cke_image_resizer");e.setAttribute("title",b.lang.image2.resizer);e.append(new CKEDITOR.dom.text("​",d));if(a.inline)a.wrapper.append(e);else{var f=a.parts.link||a.parts.image,g=f.getParent(),
h=d.createElement("span");h.addClass("cke_image_resizer_wrapper");h.append(f);h.append(e);a.element.append(h,true);g.is("span")&&g.remove()}e.on("mousedown",function(f){function g(a,b,c){var e=CKEDITOR.document,f=[];d.equals(e)||f.push(e.on(a,b));f.push(d.on(a,b));if(c)for(a=f.length;a--;)c.push(f.pop())}function h(){R=l+k*N;M=Math.round(R/q)}function i(){M=p-O;R=Math.round(M*q)}var j=a.parts.image,k=a.data.align=="right"?-1:1,m=f.data.$.screenX,n=f.data.$.screenY,l=j.$.clientWidth,p=j.$.clientHeight,
q=l/p,x=[],v="cke_image_s"+(!~k?"w":"e"),r,R,M,Z,N,O,J;b.fire("saveSnapshot");g("mousemove",function(a){r=a.data.$;N=r.screenX-m;O=n-r.screenY;J=Math.abs(N/O);k==1?N<=0?O<=0?h():J>=q?h():i():O<=0?J>=q?i():h():i():N<=0?O<=0?J>=q?i():h():i():O<=0?h():J>=q?h():i();if(R>=15&&M>=15){j.setAttributes({width:R,height:M});Z=true}else Z=false},x);g("mouseup",function(){for(var d;d=x.pop();)d.removeListener();c.removeClass(v);e.removeClass("cke_image_resizing");if(Z){a.setData({width:R,height:M});b.fire("saveSnapshot")}Z=
false},x);c.addClass(v);e.addClass("cke_image_resizing")});a.on("data",function(){e[a.data.align=="right"?"addClass":"removeClass"]("cke_image_resizer_left")})}function i(a){var b=[],c;return function(d){var e=a.getCommand("justify"+d);if(e){b.push(function(){e.refresh(a,a.elementPath())});if(d in{right:1,left:1,center:1})e.on("exec",function(c){var e=k(a);if(e){e.setData("align",d);for(e=b.length;e--;)b[e]();c.cancel()}});e.on("refresh",function(b){var e=k(a),f={right:1,left:1,center:1};if(e){c===
void 0&&(c=a.filter.checkFeature(a.widgets.registered.image.features.align));c?this.setState(e.data.align==d?CKEDITOR.TRISTATE_ON:d in f?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED):this.setState(CKEDITOR.TRISTATE_DISABLED);b.cancel()}})}}}function f(a){if(a.plugins.link){CKEDITOR.on("dialogDefinition",function(b){b=b.data;if(b.name=="link"){var b=b.definition,c=b.onShow,d=b.onOk;b.onShow=function(){var b=k(a);b&&(b.inline?!b.wrapper.getAscendant("a"):1)?this.setupContent(b.data.link||{}):c.apply(this,
arguments)};b.onOk=function(){var b=k(a);if(b&&(b.inline?!b.wrapper.getAscendant("a"):1)){var c={};this.commitContent(c);b.setData("link",c)}else d.apply(this,arguments)}}});a.getCommand("unlink").on("exec",function(b){var c=k(a);if(c&&c.parts.link){c.setData("link",null);this.refresh(a,a.elementPath());b.cancel()}});a.getCommand("unlink").on("refresh",function(b){var c=k(a);if(c){this.setState(c.data.link||c.wrapper.getAscendant("a")?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);b.cancel()}})}}
function k(a){return(a=a.widgets.focused)&&a.name=="image"?a:null}function d(a){var b=a.config.image2_alignClasses,a={div:{match:g(a)},p:{match:g(a)},img:{attributes:"!src,alt,width,height"},figure:{classes:"!"+a.config.image2_captionedClass},figcaption:true};if(b){a.div.classes=b[1];a.p.classes=a.div.classes;a.img.classes=b[0]+","+b[2];a.figure.classes=a.figure.classes+(","+a.img.classes)}else{a.div.styles="text-align";a.p.styles="text-align";a.img.styles="float";a.figure.styles="float,display"}return a}
function h(a){a=a.config.image2_alignClasses;return{dimension:{requiredContent:"img[width,height]"},align:{requiredContent:"img"+(a?"("+a[0]+")":"{float}")},caption:{requiredContent:"figcaption"}}}function l(a){return a.data.hasCaption?a.element:a.parts.image}var q='<img alt="" src="" />',p=new CKEDITOR.template('<figure class="{captionedClass}">'+q+"<figcaption>{captionPlaceholder}</figcaption></figure>"),m={left:0,center:1,right:2},n=/^\s*(\d+\%)\s*$/i;CKEDITOR.plugins.add("image2",{requires:"widget,dialog",
icons:"image",hidpi:true,onLoad:function(){CKEDITOR.addCss(".cke_image_nocaption{line-height:0}.cke_editable.cke_image_sw, .cke_editable.cke_image_sw *{cursor:sw-resize !important}.cke_editable.cke_image_se, .cke_editable.cke_image_se *{cursor:se-resize !important}.cke_image_resizer{display:none;position:absolute;width:10px;height:10px;bottom:-5px;right:-5px;background:#000;outline:1px solid #fff;line-height:0;cursor:se-resize;}.cke_image_resizer_wrapper{position:relative;display:inline-block;line-height:0;}.cke_image_resizer.cke_image_resizer_left{right:auto;left:-5px;cursor:sw-resize;}.cke_widget_wrapper:hover .cke_image_resizer,.cke_image_resizer.cke_image_resizing{display:block}.cke_widget_wrapper>a{display:inline-block}")},
init:function(b){var c=b.config,d=b.lang.image2,e=a(b);c.filebrowserImage2BrowseUrl=c.filebrowserImageBrowseUrl;c.filebrowserImage2UploadUrl=c.filebrowserImageUploadUrl;e.pathName=d.pathName;e.editables.caption.pathName=d.pathNameCaption;b.widgets.add("image",e);b.ui.addButton&&b.ui.addButton("Image",{label:b.lang.common.image,command:"image",toolbar:"insert,10"});if(b.contextMenu){b.addMenuGroup("image",10);b.addMenuItem("image",{label:d.menu,command:"image",group:"image"})}CKEDITOR.dialog.add("image2",
this.path+"dialogs/image2.js")},afterInit:function(a){var b={left:1,right:1,center:1,block:1},c=i(a),d;for(d in b)c(d);f(a)}});CKEDITOR.plugins.image2={stateShifter:function(a){function b(a,f){var g={};e?g.attributes={"class":e[1]}:g.styles={"text-align":"center"};g=d.createElement(a.activeEnterMode==CKEDITOR.ENTER_P?"p":"div",g);c(g,f);f.move(g);return g}function c(b,d){if(d.getParent()){var e=a.createRange();e.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START);d.remove();g.insertElementIntoRange(b,
e)}else b.replace(d)}var d=a.document,e=a.config.image2_alignClasses,f=a.config.image2_captionedClass,g=a.editable(),h=["hasCaption","align","link"],i={align:function(c,d,f){var g=c.element;if(c.changed.align){if(!c.newData.hasCaption){if(f=="center"){c.deflate();c.element=b(a,g)}if(!c.changed.hasCaption&&d=="center"&&f!="center"){c.deflate();d=g.findOne("a,img");d.replace(g);c.element=d}}}else if(f=="center"&&c.changed.hasCaption&&!c.newData.hasCaption){c.deflate();c.element=b(a,g)}!e&&g.is("figure")&&
(f=="center"?g.setStyle("display","inline-block"):g.removeStyle("display"))},hasCaption:function(b,e,g){if(b.changed.hasCaption){e=b.element.is({img:1,a:1})?b.element:b.element.findOne("a,img");b.deflate();if(g){g=CKEDITOR.dom.element.createFromHtml(p.output({captionedClass:f,captionPlaceholder:a.lang.image2.captionPlaceholder}),d);c(g,b.element);e.replace(g.findOne("img"));b.element=g}else{e.replace(b.element);b.element=e}}},link:function(b,c,e){if(b.changed.link){var f=b.element.is("img")?b.element:
b.element.findOne("img"),g=b.element.is("a")?b.element:b.element.findOne("a"),h=b.element.is("a")&&!e||b.element.is("img")&&e,i;h&&b.deflate();if(e){if(!c){i=d.createElement("a",{attributes:{href:b.newData.link.url}});i.replace(f);f.move(i)}e=CKEDITOR.plugins.link.getLinkAttributes(a,e);CKEDITOR.tools.isEmpty(e.set)||(i||g).setAttributes(e.set);e.removed.length&&(i||g).removeAttributes(e.removed)}else{e=g.findOne("img");e.replace(g);i=e}if(h)b.element=i}}};return function(a){var b,c;a.changed={};
for(c=0;c<h.length;c++){b=h[c];a.changed[b]=a.oldData?a.oldData[b]!==a.newData[b]:false}for(c=0;c<h.length;c++){b=h[c];i[b](a,a.oldData?a.oldData[b]:null,a.newData[b])}a.inflate()}},checkHasNaturalRatio:function(a){var b=a.$,a=this.getNatural(a);return Math.round(b.clientWidth/a.width*a.height)==b.clientHeight||Math.round(b.clientHeight/a.height*a.width)==b.clientWidth},getNatural:function(a){if(a.$.naturalWidth)a={width:a.$.naturalWidth,height:a.$.naturalHeight};else{var b=new Image;b.src=a.getAttribute("src");
a={width:b.width,height:b.height}}return a}}}(),CKEDITOR.config.image2_captionedClass="image",function(){function a(a,c){var j,i;c.on("refresh",function(a){var c=[e],d;for(d in a.data.states)c.push(a.data.states[d]);this.setState(CKEDITOR.tools.search(c,b)?b:e)},c,null,100);c.on("exec",function(b){j=a.getSelection();i=j.createBookmarks(1);if(!b.data)b.data={};b.data.done=false},c,null,0);c.on("exec",function(){a.forceNextSelectionCheck();j.selectBookmarks(i)},c,null,100)}var e=CKEDITOR.TRISTATE_DISABLED,
b=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(b){var c=CKEDITOR.plugins.indent.genericDefinition;a(b,b.addCommand("indent",new c(true)));a(b,b.addCommand("outdent",new c));if(b.ui.addButton){b.ui.addButton("Indent",{label:b.lang.indent.indent,command:"indent",directional:true,toolbar:"indent,20"});b.ui.addButton("Outdent",{label:b.lang.indent.outdent,command:"outdent",directional:true,toolbar:"indent,10"})}b.on("dirChanged",function(a){var c=b.createRange(),e=a.data.node;c.setStartBefore(e);
c.setEndAfter(e);for(var k=new CKEDITOR.dom.walker(c),d;d=k.next();)if(d.type==CKEDITOR.NODE_ELEMENT)if(!d.equals(e)&&d.getDirection()){c.setStartAfter(d);k=new CKEDITOR.dom.walker(c)}else{var h=b.config.indentClasses;if(h)for(var l=a.data.dir=="ltr"?["_rtl",""]:["","_rtl"],q=0;q<h.length;q++)if(d.hasClass(h[q]+l[0])){d.removeClass(h[q]+l[0]);d.addClass(h[q]+l[1])}h=d.getStyle("margin-right");l=d.getStyle("margin-left");h?d.setStyle("margin-left",h):d.removeStyle("margin-left");l?d.setStyle("margin-right",
l):d.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent={genericDefinition:function(a){this.isIndent=!!a;this.startDisabled=!this.isIndent},specificDefinition:function(a,b,e){this.name=b;this.editor=a;this.jobs={};this.enterBr=a.config.enterMode==CKEDITOR.ENTER_BR;this.isIndent=!!e;this.relatedGlobal=e?"indent":"outdent";this.indentKey=e?9:CKEDITOR.SHIFT+9;this.database={}},registerCommands:function(a,b){a.on("pluginsLoaded",function(){for(var a in b)(function(a,b){var c=a.getCommand(b.relatedGlobal),
d;for(d in b.jobs){c.on("exec",function(c){if(!c.data.done){a.fire("lockSnapshot");if(b.execJob(a,d))c.data.done=true;a.fire("unlockSnapshot");CKEDITOR.dom.element.clearAllMarkers(b.database)}},this,null,d);c.on("refresh",function(c){if(!c.data.states)c.data.states={};c.data.states[b.name+"@"+d]=b.refreshJob(a,d,c.data.path)},this,null,d)}a.addFeature(b)})(this,b[a])})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype=
{execJob:function(a,b){var j=this.jobs[b];if(j.state!=e)return j.exec.call(this,a)},refreshJob:function(a,b,j){b=this.jobs[b];b.state=a.activeFilter.checkFeature(this)?b.refresh.call(this,a,j):e;return b.state},getContext:function(a){return a.contains(this.context)}}}(),function(){function a(a){function c(e){for(var j=p.startContainer,k=p.endContainer;j&&!j.getParent().equals(e);)j=j.getParent();for(;k&&!k.getParent().equals(e);)k=k.getParent();if(!j||!k)return false;for(var m=j,j=[],n=false;!n;){m.equals(k)&&
(n=true);j.push(m);m=m.getNext()}if(j.length<1)return false;m=e.getParents(true);for(k=0;k<m.length;k++)if(m[k].getName&&i[m[k].getName()]){e=m[k];break}for(var m=d.isIndent?1:-1,k=j[0],j=j[j.length-1],n=CKEDITOR.plugins.list.listToArray(e,g),q=n[j.getCustomData("listarray_index")].indent,k=k.getCustomData("listarray_index");k<=j.getCustomData("listarray_index");k++){n[k].indent=n[k].indent+m;if(m>0){var v=n[k].parent;n[k].parent=new CKEDITOR.dom.element(v.getName(),v.getDocument())}}for(k=j.getCustomData("listarray_index")+
1;k<n.length&&n[k].indent>q;k++)n[k].indent=n[k].indent+m;j=CKEDITOR.plugins.list.arrayToList(n,g,null,a.config.enterMode,e.getDirection());if(!d.isIndent){var r;if((r=e.getParent())&&r.is("li"))for(var m=j.listNode.getChildren(),y=[],z,k=m.count()-1;k>=0;k--)(z=m.getItem(k))&&(z.is&&z.is("li"))&&y.push(z)}j&&j.listNode.replace(e);if(y&&y.length)for(k=0;k<y.length;k++){for(z=e=y[k];(z=z.getNext())&&z.is&&z.getName()in i;){CKEDITOR.env.needsNbspFiller&&!e.getFirst(b)&&e.append(p.document.createText(" "));
e.append(z)}e.insertAfter(r)}j&&a.fire("contentDomInvalidated");return true}for(var d=this,g=this.database,i=this.context,j=a.getSelection(),j=(j&&j.getRanges()).createIterator(),p;p=j.getNextRange();){for(var m=p.getCommonAncestor();m&&!(m.type==CKEDITOR.NODE_ELEMENT&&i[m.getName()]);){if(a.editable().equals(m)){m=false;break}m=m.getParent()}m||(m=p.startPath().contains(i))&&p.setEndAt(m,CKEDITOR.POSITION_BEFORE_END);if(!m){var n=p.getEnclosedNode();if(n&&n.type==CKEDITOR.NODE_ELEMENT&&n.getName()in
i){p.setStartAt(n,CKEDITOR.POSITION_AFTER_START);p.setEndAt(n,CKEDITOR.POSITION_BEFORE_END);m=n}}if(m&&p.startContainer.type==CKEDITOR.NODE_ELEMENT&&p.startContainer.getName()in i){n=new CKEDITOR.dom.walker(p);n.evaluator=e;p.startContainer=n.next()}if(m&&p.endContainer.type==CKEDITOR.NODE_ELEMENT&&p.endContainer.getName()in i){n=new CKEDITOR.dom.walker(p);n.evaluator=e;p.endContainer=n.previous()}if(m)return c(m)}return 0}function e(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}function b(a){return g(a)&&
c(a)}var g=CKEDITOR.dom.walker.whitespaces(true),c=CKEDITOR.dom.walker.bookmark(false,true),j=CKEDITOR.TRISTATE_DISABLED,i=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(b){function c(b){d.specificDefinition.apply(this,arguments);this.requiredContent=["ul","ol"];b.on("key",function(a){if(b.mode=="wysiwyg"&&a.data.keyCode==this.indentKey){var c=this.getContext(b.elementPath());if(c&&(!this.isIndent||!CKEDITOR.plugins.indentList.firstItemInPath(this.context,
b.elementPath(),c))){b.execCommand(this.relatedGlobal);a.cancel()}}},this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(a,b){var c=this.getContext(b),d=CKEDITOR.plugins.indentList.firstItemInPath(this.context,b,c);return!c||!this.isIndent||d?j:i}:function(a,b){return!this.getContext(b)||this.isIndent?j:i},exec:CKEDITOR.tools.bind(a,this)}}var d=CKEDITOR.plugins.indent;d.registerCommands(b,{indentlist:new c(b,"indentlist",true),outdentlist:new c(b,"outdentlist")});CKEDITOR.tools.extend(c.prototype,
d.specificDefinition.prototype,{context:{ol:1,ul:1}})}});CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(a,b,c){var g=b.contains(e);c||(c=b.contains(a));return c&&g&&g.equals(c.getFirst(e))}}(),function(){function a(a,b,c){if(!a.getCustomData("indent_processed")){var d=this.editor,g=this.isIndent;if(b){d=a.$.className.match(this.classNameRegex);c=0;if(d){d=d[1];c=CKEDITOR.tools.indexOf(b,d)+1}if((c=c+(g?1:-1))<0)return;c=Math.min(c,b.length);c=Math.max(c,0);a.$.className=
CKEDITOR.tools.ltrim(a.$.className.replace(this.classNameRegex,""));c>0&&a.addClass(b[c-1])}else{var b=e(a,c),c=parseInt(a.getStyle(b),10),j=d.config.indentOffset||40;isNaN(c)&&(c=0);c=c+(g?1:-1)*j;if(c<0)return;c=Math.max(c,0);c=Math.ceil(c/j)*j;a.setStyle(b,c?c+(d.config.indentUnit||"px"):"");a.getAttribute("style")===""&&a.removeAttribute("style")}CKEDITOR.dom.element.setMarker(this.database,a,"indent_processed",1)}}function e(a,b){return(b||a.getComputedStyle("direction"))=="ltr"?"margin-left":
"margin-right"}var b=CKEDITOR.dtd.$listItem,g=CKEDITOR.dtd.$list,c=CKEDITOR.TRISTATE_DISABLED,j=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(i){function f(){k.specificDefinition.apply(this,arguments);this.allowedContent={"div h1 h2 h3 h4 h5 h6 ol p pre ul":{propertiesOnly:true,styles:!d?"margin-left,margin-right":null,classes:d||null}};if(this.enterBr)this.allowedContent.div=true;this.requiredContent=(this.enterBr?"div":"p")+(d?"("+d.join(",")+")":"{margin-left}");
this.jobs={20:{refresh:function(a,f){var g=f.block||f.blockLimit;if(!g.is(b))var i=g.getAscendant(b),g=i&&f.contains(i)||g;g.is(b)&&(g=g.getParent());if(!this.enterBr&&!this.getContext(f))return c;if(d){var i=d,g=g.$.className.match(this.classNameRegex),k=this.isIndent,i=g?k?g[1]!=i.slice(-1):true:k;return i?j:c}return this.isIndent?j:g?CKEDITOR[(parseInt(g.getStyle(e(g)),10)||0)<=0?"TRISTATE_DISABLED":"TRISTATE_OFF"]:c},exec:function(b){var c=b.getSelection(),c=c&&c.getRanges()[0],e;if(e=b.elementPath().contains(g))a.call(this,
e,d);else{c=c.createIterator();b=b.config.enterMode;c.enforceRealBlocks=true;for(c.enlargeBr=b!=CKEDITOR.ENTER_BR;e=c.getNextParagraph(b==CKEDITOR.ENTER_P?"p":"div");)e.isReadOnly()||a.call(this,e,d)}return true}}}}var k=CKEDITOR.plugins.indent,d=i.config.indentClasses;k.registerCommands(i,{indentblock:new f(i,"indentblock",true),outdentblock:new f(i,"outdentblock")});CKEDITOR.tools.extend(f.prototype,k.specificDefinition.prototype,{context:{div:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,p:1,
pre:1,table:1},classNameRegex:d?RegExp("(?:^|\\s+)("+d.join("|")+")(?=$|\\s)"):null})}})}(),function(){function a(a,b){var b=b===void 0||b,e;if(b)e=a.getComputedStyle("text-align");else{for(;!a.hasAttribute||!a.hasAttribute("align")&&!a.getStyle("text-align");){e=a.getParent();if(!e)break;a=e}e=a.getStyle("text-align")||a.getAttribute("align")||""}e&&(e=e.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!e&&b&&(e=a.getComputedStyle("direction")=="rtl"?"right":"left");return e}function e(a,b,e){this.editor=
a;this.name=b;this.value=e;this.context="p";var b=a.config.justifyClasses,i=a.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(b){switch(e){case "left":this.cssClassName=b[0];break;case "center":this.cssClassName=b[1];break;case "right":this.cssClassName=b[2];break;case "justify":this.cssClassName=b[3]}this.cssClassRegex=RegExp("(?:^|\\s+)(?:"+b.join("|")+")(?=$|\\s)");this.requiredContent=i+"("+this.cssClassName+")"}else this.requiredContent=i+"{text-align}";this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:true,
styles:this.cssClassName?null:"text-align",classes:this.cssClassName||null}};if(a.config.enterMode==CKEDITOR.ENTER_BR)this.allowedContent.div=true}function b(a){var b=a.editor,e=b.createRange();e.setStartBefore(a.data.node);e.setEndAfter(a.data.node);for(var i=new CKEDITOR.dom.walker(e),f;f=i.next();)if(f.type==CKEDITOR.NODE_ELEMENT)if(!f.equals(a.data.node)&&f.getDirection()){e.setStartAfter(f);i=new CKEDITOR.dom.walker(e)}else{var k=b.config.justifyClasses;if(k)if(f.hasClass(k[0])){f.removeClass(k[0]);
f.addClass(k[2])}else if(f.hasClass(k[2])){f.removeClass(k[2]);f.addClass(k[0])}k=f.getStyle("text-align");k=="left"?f.setStyle("text-align","right"):k=="right"&&f.setStyle("text-align","left")}}e.prototype={exec:function(b){var c=b.getSelection(),e=b.config.enterMode;if(c){for(var i=c.createBookmarks(),f=c.getRanges(),k=this.cssClassName,d,h,l=b.config.useComputedState,l=l===void 0||l,q=f.length-1;q>=0;q--){d=f[q].createIterator();for(d.enlargeBr=e!=CKEDITOR.ENTER_BR;h=d.getNextParagraph(e==CKEDITOR.ENTER_P?
"p":"div");)if(!h.isReadOnly()){h.removeAttribute("align");h.removeStyle("text-align");var p=k&&(h.$.className=CKEDITOR.tools.ltrim(h.$.className.replace(this.cssClassRegex,""))),m=this.state==CKEDITOR.TRISTATE_OFF&&(!l||a(h,true)!=this.value);k?m?h.addClass(k):p||h.removeAttribute("class"):m&&h.setStyle("text-align",this.value)}}b.focus();b.forceNextSelectionCheck();c.selectBookmarks(i)}},refresh:function(b,c){var e=c.block||c.blockLimit;this.setState(e.getName()!="body"&&a(e,this.editor.config.useComputedState)==
this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("justify",{init:function(a){if(!a.blockless){var c=new e(a,"justifyleft","left"),j=new e(a,"justifycenter","center"),i=new e(a,"justifyright","right"),f=new e(a,"justifyblock","justify");a.addCommand("justifyleft",c);a.addCommand("justifycenter",j);a.addCommand("justifyright",i);a.addCommand("justifyblock",f);if(a.ui.addButton){a.ui.addButton("JustifyLeft",{label:a.lang.justify.left,command:"justifyleft",toolbar:"align,10"});
a.ui.addButton("JustifyCenter",{label:a.lang.justify.center,command:"justifycenter",toolbar:"align,20"});a.ui.addButton("JustifyRight",{label:a.lang.justify.right,command:"justifyright",toolbar:"align,30"});a.ui.addButton("JustifyBlock",{label:a.lang.justify.block,command:"justifyblock",toolbar:"align,40"})}a.on("dirChanged",b)}}})}(),"use strict",function(){function a(a){return a.replace(/'/g,"\\$&")}function e(a){for(var b,c=a.length,d=[],e=0;e<c;e++){b=a.charCodeAt(e);d.push(b)}return"String.fromCharCode("+
d.join(",")+")"}function b(b,c){var d=b.plugins.link,e=d.compiledProtectionFunction.params,f,g;g=[d.compiledProtectionFunction.name,"("];for(var h=0;h<e.length;h++){d=e[h].toLowerCase();f=c[d];h>0&&g.push(",");g.push("'",f?a(encodeURIComponent(c[d])):"","'")}g.push(")");return g.join("")}function g(a){var a=a.config.emailProtection||"",b;if(a&&a!="encode"){b={};a.replace(/^([^(]+)\(([^)]+)\)$/,function(a,c,d){b.name=c;b.params=[];d.replace(/[^,\s]+/g,function(a){b.params.push(a)})})}return b}CKEDITOR.plugins.add("link",
{requires:"dialog,fakeobjects",onLoad:function(){function a(b){return c.replace(/%1/g,b=="rtl"?"right":"left").replace(/%2/g,"cke_contents_"+b)}var b="background:url("+CKEDITOR.getUrl(this.path+"images"+(CKEDITOR.env.hidpi?"/hidpi":"")+"/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;background-size:16px;",c=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+b+"padding-%1:18px;cursor:auto;}.%2 img.cke_anchor{"+b+"width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;}";
CKEDITOR.addCss(a("ltr")+a("rtl"))},init:function(a){var b="a[!href]";CKEDITOR.dialog.isTabEnabled(a,"link","advanced")&&(b=b.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type]{*}(*)"));CKEDITOR.dialog.isTabEnabled(a,"link","target")&&(b=b.replace("]",",target,onclick]"));a.addCommand("link",new CKEDITOR.dialogCommand("link",{allowedContent:b,requiredContent:"a[href]"}));a.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",{allowedContent:"a[!name,id]",requiredContent:"a[name]"}));
a.addCommand("unlink",new CKEDITOR.unlinkCommand);a.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand);a.setKeystroke(CKEDITOR.CTRL+76,"link");if(a.ui.addButton){a.ui.addButton("Link",{label:a.lang.link.toolbar,command:"link",toolbar:"links,10"});a.ui.addButton("Unlink",{label:a.lang.link.unlink,command:"unlink",toolbar:"links,20"});a.ui.addButton("Anchor",{label:a.lang.link.anchor.toolbar,command:"anchor",toolbar:"links,30"})}CKEDITOR.dialog.add("link",this.path+"dialogs/link.js");CKEDITOR.dialog.add("anchor",
this.path+"dialogs/anchor.js");a.on("doubleclick",function(b){var c=CKEDITOR.plugins.link.getSelectedLink(a)||b.data.element;if(!c.isReadOnly())if(c.is("a")){b.data.dialog=c.getAttribute("name")&&(!c.getAttribute("href")||!c.getChildCount())?"anchor":"link";b.data.link=c}else if(CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,c))b.data.dialog="anchor"},null,null,0);a.on("doubleclick",function(b){b.data.dialog in{link:1,anchor:1}&&b.data.link&&a.getSelection().selectElement(b.data.link)},null,null,20);
a.addMenuItems&&a.addMenuItems({anchor:{label:a.lang.link.anchor.menu,command:"anchor",group:"anchor",order:1},removeAnchor:{label:a.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:a.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:a.lang.link.unlink,command:"unlink",group:"link",order:5}});a.contextMenu&&a.contextMenu.addListener(function(b){if(!b||b.isReadOnly())return null;b=CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,b);if(!b&&!(b=CKEDITOR.plugins.link.getSelectedLink(a)))return null;
var c={};b.getAttribute("href")&&b.getChildCount()&&(c={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF});if(b&&b.hasAttribute("name"))c.anchor=c.removeAnchor=CKEDITOR.TRISTATE_OFF;return c});this.compiledProtectionFunction=g(a)},afterInit:function(a){a.dataProcessor.dataFilter.addRules({elements:{a:function(b){return!b.attributes.name?null:!b.children.length?a.createFakeParserElement(b,"cke_anchor","anchor"):null}}});var b=a._.elementsPath&&a._.elementsPath.filters;b&&b.push(function(b,c){if(c==
"a"&&(CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,b)||b.getAttribute("name")&&(!b.getAttribute("href")||!b.getChildCount())))return"anchor"})}});var c=/^javascript:/,j=/^mailto:([^?]+)(?:\?(.+))?$/,i=/subject=([^;?:@&=$,\/]*)/,f=/body=([^;?:@&=$,\/]*)/,k=/^#(.*)$/,d=/^((?:http|https|ftp|news):\/\/)?(.*)$/,h=/^(_(?:self|top|parent|blank))$/,l=/^javascript:void\(location\.href='mailto:'\+String\.fromCharCode\(([^)]+)\)(?:\+'(.*)')?\)$/,q=/^javascript:([^(]+)\(([^)]+)\)$/,p=/\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/,
m=/(?:^|,)([^=]+)=(\d+|yes|no)/gi,n={id:"advId",dir:"advLangDir",accessKey:"advAccessKey",name:"advName",lang:"advLangCode",tabindex:"advTabIndex",title:"advTitle",type:"advContentType","class":"advCSSClasses",charset:"advCharset",style:"advStyles",rel:"advRel"};CKEDITOR.plugins.link={getSelectedLink:function(a){var b=a.getSelection(),c=b.getSelectedElement();if(c&&c.is("a"))return c;if(b=b.getRanges()[0]){b.shrink(CKEDITOR.SHRINK_TEXT);return a.elementPath(b.getCommonAncestor()).contains("a",1)}return null},
getEditorAnchors:function(a){for(var b=a.editable(),c=b.isInline()&&!a.plugins.divarea?a.document:b,b=c.getElementsByTag("a"),c=c.getElementsByTag("img"),d=[],e=0,f;f=b.getItem(e++);)if(f.data("cke-saved-name")||f.hasAttribute("name"))d.push({name:f.data("cke-saved-name")||f.getAttribute("name"),id:f.getAttribute("id")});for(e=0;f=c.getItem(e++);)(f=this.tryRestoreFakeAnchor(a,f))&&d.push({name:f.getAttribute("name"),id:f.getAttribute("id")});return d},fakeAnchor:true,tryRestoreFakeAnchor:function(a,
b){if(b&&b.data("cke-real-element-type")&&b.data("cke-real-element-type")=="anchor"){var c=a.restoreRealElement(b);if(c.data("cke-saved-name"))return c}},parseLinkAttributes:function(a,b){var e=b&&(b.data("cke-saved-href")||b.getAttribute("href"))||"",g=a.plugins.link.compiledProtectionFunction,u=a.config.emailProtection,x,v={};e.match(c)&&(u=="encode"?e=e.replace(l,function(a,b,c){return"mailto:"+String.fromCharCode.apply(String,b.split(","))+(c&&c.replace(/\\'/g,"'"))}):u&&e.replace(q,function(a,
b,c){if(b==g.name){v.type="email";for(var a=v.email={},b=/(^')|('$)/g,c=c.match(/[^,\s]+/g),d=c.length,e,f,h=0;h<d;h++){e=decodeURIComponent;f=c[h].replace(b,"").replace(/\\'/g,"'");f=e(f);e=g.params[h].toLowerCase();a[e]=f}a.address=[a.name,a.domain].join("@")}}));if(!v.type)if(u=e.match(k)){v.type="anchor";v.anchor={};v.anchor.name=v.anchor.id=u[1]}else if(u=e.match(j)){x=e.match(i);e=e.match(f);v.type="email";var r=v.email={};r.address=u[1];x&&(r.subject=decodeURIComponent(x[1]));e&&(r.body=decodeURIComponent(e[1]))}else if(e&&
(x=e.match(d))){v.type="url";v.url={};v.url.protocol=x[1];v.url.url=x[2]}if(b){if(e=b.getAttribute("target"))v.target={type:e.match(h)?e:"frame",name:e};else if(e=(e=b.data("cke-pa-onclick")||b.getAttribute("onclick"))&&e.match(p))for(v.target={type:"popup",name:e[1]};u=m.exec(e[2]);)(u[2]=="yes"||u[2]=="1")&&!(u[1]in{height:1,width:1,top:1,left:1})?v.target[u[1]]=true:isFinite(u[2])&&(v.target[u[1]]=u[2]);var e={},y;for(y in n)(u=b.getAttribute(y))&&(e[n[y]]=u);if(y=b.data("cke-saved-name")||e.advName)e.advName=
y;if(!CKEDITOR.tools.isEmpty(e))v.advanced=e}return v},getLinkAttributes:function(c,d){var f=c.config.emailProtection||"",g={};switch(d.type){case "url":var f=d.url&&d.url.protocol!==void 0?d.url.protocol:"http://",h=d.url&&CKEDITOR.tools.trim(d.url.url)||"";g["data-cke-saved-href"]=h.indexOf("/")===0?h:f+h;break;case "anchor":f=d.anchor&&d.anchor.id;g["data-cke-saved-href"]="#"+(d.anchor&&d.anchor.name||f||"");break;case "email":var i=d.email,h=i.address;switch(f){case "":case "encode":var j=encodeURIComponent(i.subject||
""),k=encodeURIComponent(i.body||""),i=[];j&&i.push("subject="+j);k&&i.push("body="+k);i=i.length?"?"+i.join("&"):"";if(f=="encode"){f=["javascript:void(location.href='mailto:'+",e(h)];i&&f.push("+'",a(i),"'");f.push(")")}else f=["mailto:",h,i];break;default:f=h.split("@",2);i.name=f[0];i.domain=f[1];f=["javascript:",b(c,i)]}g["data-cke-saved-href"]=f.join("")}if(d.target)if(d.target.type=="popup"){for(var f=["window.open(this.href, '",d.target.name||"","', '"],m=["resizable","status","location",
"toolbar","menubar","fullscreen","scrollbars","dependent"],h=m.length,j=function(a){d.target[a]&&m.push(a+"="+d.target[a])},i=0;i<h;i++)m[i]=m[i]+(d.target[m[i]]?"=yes":"=no");j("width");j("left");j("height");j("top");f.push(m.join(","),"'); return false;");g["data-cke-pa-onclick"]=f.join("")}else if(d.target.type!="notSet"&&d.target.name)g.target=d.target.name;if(d.advanced){for(var l in n)(f=d.advanced[n[l]])&&(g[l]=f);if(g.name)g["data-cke-saved-name"]=g.name}if(g["data-cke-saved-href"])g.href=
g["data-cke-saved-href"];l={target:1,onclick:1,"data-cke-pa-onclick":1,"data-cke-saved-name":1};d.advanced&&CKEDITOR.tools.extend(l,n);for(var p in g)delete l[p];return{set:g,removed:CKEDITOR.tools.objectKeys(l)}}};CKEDITOR.unlinkCommand=function(){};CKEDITOR.unlinkCommand.prototype={exec:function(a){var b=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1});a.removeStyle(b)},refresh:function(a,b){var c=b.lastElement&&b.lastElement.getAscendant("a",true);c&&c.getName()==
"a"&&c.getAttribute("href")&&c.getChildCount()?this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)},contextSensitive:1,startDisabled:1,requiredContent:"a[href]"};CKEDITOR.removeAnchorCommand=function(){};CKEDITOR.removeAnchorCommand.prototype={exec:function(a){var b=a.getSelection(),c=b.createBookmarks(),d;if(b&&(d=b.getSelectedElement())&&(!d.getChildCount()?CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,d):d.is("a")))d.remove(1);else if(d=CKEDITOR.plugins.link.getSelectedLink(a))if(d.hasAttribute("href")){d.removeAttributes({name:1,
"data-cke-saved-name":1});d.removeClass("cke_anchor")}else d.remove(1);b.selectBookmarks(c)},requiredContent:"a[name]"};CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:true,linkShowTargetTab:true})}(),function(){function a(a,b,c){function d(c){if((j=i[c?"getFirst":"getLast"]())&&(!j.is||!j.isBlockBoundary())&&(k=b.root[c?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(true)))&&(!k.is||!k.isBlockBoundary({br:1})))a.document.createElement("br")[c?"insertBefore":"insertAfter"](j)}for(var e=
CKEDITOR.plugins.list.listToArray(b.root,c),f=[],g=0;g<b.contents.length;g++){var h=b.contents[g];if((h=h.getAscendant("li",true))&&!h.getCustomData("list_item_processed")){f.push(h);CKEDITOR.dom.element.setMarker(c,h,"list_item_processed",true)}}h=null;for(g=0;g<f.length;g++){h=f[g].getCustomData("listarray_index");e[h].indent=-1}for(g=h+1;g<e.length;g++)if(e[g].indent>e[g-1].indent+1){f=e[g-1].indent+1-e[g].indent;for(h=e[g].indent;e[g]&&e[g].indent>=h;){e[g].indent=e[g].indent+f;g++}g--}var i=
CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,j,k;d(true);d();i.replace(b.root);a.fire("contentDomInvalidated")}function e(a,b){this.name=a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function b(a,b,c,d){for(var e,f;e=a[d?"getLast":"getFirst"](p);){(f=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",f);e.remove();c?e[d?"insertBefore":"insertAfter"](c):b.append(e,d)}}function g(a){function c(d){var e=a[d?
"getPrevious":"getNext"](h);if(e&&e.type==CKEDITOR.NODE_ELEMENT&&e.is(a.getName())){b(a,e,null,!d);a.remove();a=e}}c();c(1)}function c(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function j(a,c,d){a.fire("saveSnapshot");d.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var e=d.extractContents();c.trim(false,true);var f=c.createBookmark(),j=new CKEDITOR.dom.elementPath(c.startContainer),k=j.block,j=
j.lastElement.getAscendant("li",1)||k,p=new CKEDITOR.dom.elementPath(d.startContainer),q=p.contains(CKEDITOR.dtd.$listItem),p=p.contains(CKEDITOR.dtd.$list);if(k)(k=k.getBogus())&&k.remove();else if(p)(k=p.getPrevious(h))&&l(k)&&k.remove();(k=e.getLast())&&(k.type==CKEDITOR.NODE_ELEMENT&&k.is("br"))&&k.remove();(k=c.startContainer.getChild(c.startOffset))?e.insertBefore(k):c.startContainer.append(e);if(q)if(e=i(q))if(j.contains(q)){b(e,q.getParent(),q);e.remove()}else j.append(e);for(;d.checkStartOfBlock()&&
d.checkEndOfBlock();){p=d.startPath();e=p.block;if(!e)break;if(e.is("li")){j=e.getParent();e.equals(j.getLast(h))&&e.equals(j.getFirst(h))&&(e=j)}d.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);e.remove()}d=d.clone();e=a.editable();d.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=function(a){return h(a)&&!l(a)};(d=d.next())&&(d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in CKEDITOR.dtd.$list)&&g(d);c.moveToBookmark(f);c.select();a.fire("saveSnapshot")}function i(a){return(a=
a.getLast(h))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in f?a:null}var f={ol:1,ul:1},k=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(),h=function(a){return!(k(a)||d(a))},l=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,b,c,d,e){if(!f[a.getName()])return[];d||(d=0);c||(c=[]);for(var g=0,h=a.getChildCount();g<h;g++){var i=a.getChild(g);i.type==CKEDITOR.NODE_ELEMENT&&i.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(i,b,c,d+1);if(i.$.nodeName.toLowerCase()==
"li"){var j={parent:a,indent:d,element:i,contents:[]};if(e)j.grandparent=e;else{j.grandparent=a.getParent();if(j.grandparent&&j.grandparent.$.nodeName.toLowerCase()=="li")j.grandparent=j.grandparent.getParent()}b&&CKEDITOR.dom.element.setMarker(b,i,"listarray_index",c.length);c.push(j);for(var k=0,l=i.getChildCount(),p;k<l;k++){p=i.getChild(k);p.type==CKEDITOR.NODE_ELEMENT&&f[p.getName()]?CKEDITOR.plugins.list.listToArray(p,b,c,d+1,j.grandparent):j.contents.push(p)}}}return c},arrayToList:function(a,
b,c,e,g){c||(c=0);if(!a||a.length<c+1)return null;for(var i,j=a[c].parent.getDocument(),k=new CKEDITOR.dom.documentFragment(j),l=null,p=c,q=Math.max(a[c].indent,0),z=null,B,A,D=e==CKEDITOR.ENTER_P?"p":"div";;){var C=a[p];i=C.grandparent;B=C.element.getDirection(1);if(C.indent==q){if(!l||a[p].parent.getName()!=l.getName()){l=a[p].parent.clone(false,1);g&&l.setAttribute("dir",g);k.append(l)}z=l.append(C.element.clone(0,1));B!=l.getDirection(1)&&z.setAttribute("dir",B);for(i=0;i<C.contents.length;i++)z.append(C.contents[i].clone(1,
1));p++}else if(C.indent==Math.max(q,0)+1){C=a[p-1].element.getDirection(1);p=CKEDITOR.plugins.list.arrayToList(a,null,p,e,C!=B?B:null);!z.getChildCount()&&(CKEDITOR.env.needsNbspFiller&&j.$.documentMode<=7)&&z.append(j.createText(" "));z.append(p.listNode);p=p.nextIndex}else if(C.indent==-1&&!c&&i){if(f[i.getName()]){z=C.element.clone(false,true);B!=i.getDirection(1)&&z.setAttribute("dir",B)}else z=new CKEDITOR.dom.documentFragment(j);var l=i.getDirection(1)!=B,F=C.element,E=F.getAttribute("class"),
H=F.getAttribute("style"),L=z.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(e!=CKEDITOR.ENTER_BR||l||H||E),K,S=C.contents.length,I;for(i=0;i<S;i++){K=C.contents[i];if(d(K)&&S>1)L?I=K.clone(1,1):z.append(K.clone(1,1));else if(K.type==CKEDITOR.NODE_ELEMENT&&K.isBlockBoundary()){l&&!K.getDirection()&&K.setAttribute("dir",B);A=K;var U=F.getAttribute("style");U&&A.setAttribute("style",U.replace(/([^;])$/,"$1;")+(A.getAttribute("style")||""));E&&K.addClass(E);A=null;if(I){z.append(I);I=null}z.append(K.clone(1,
1))}else if(L){if(!A){A=j.createElement(D);z.append(A);l&&A.setAttribute("dir",B)}H&&A.setAttribute("style",H);E&&A.setAttribute("class",E);if(I){A.append(I);I=null}A.append(K.clone(1,1))}else z.append(K.clone(1,1))}if(I){(A||z).append(I);I=null}if(z.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&p!=a.length-1){if(CKEDITOR.env.needsBrFiller)(B=z.getLast())&&(B.type==CKEDITOR.NODE_ELEMENT&&B.is("br"))&&B.remove();B=z.getLast(h);(!B||!(B.type==CKEDITOR.NODE_ELEMENT&&B.is(CKEDITOR.dtd.$block)))&&z.append(j.createElement("br"))}B=
z.$.nodeName.toLowerCase();(B=="div"||B=="p")&&z.appendBogus();k.append(z);l=null;p++}else return null;A=null;if(a.length<=p||Math.max(a[p].indent,0)<q)break}if(b)for(a=k.getFirst();a;){if(a.type==CKEDITOR.NODE_ELEMENT){CKEDITOR.dom.element.clearMarkers(b,a);if(a.getName()in CKEDITOR.dtd.$listItem){c=a;j=g=e=void 0;if(e=c.getDirection()){for(g=c.getParent();g&&!(j=g.getDirection());)g=g.getParent();e==j&&c.removeAttribute("dir")}}}a=a.getNextSourceNode()}return{listNode:k,nextIndex:p}}};var q=/^h[1-6]$/,
p=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);e.prototype={exec:function(b){this.refresh(b,b.elementPath());var c=b.config,d=b.getSelection(),e=d&&d.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var i=b.editable();if(i.getFirst(h)){var j=e.length==1&&e[0];(c=j&&j.getEnclosedNode())&&(c.is&&this.type==c.getName())&&this.setState(CKEDITOR.TRISTATE_ON)}else{c.enterMode==CKEDITOR.ENTER_BR?i.appendBogus():e[0].fixBlock(1,c.enterMode==CKEDITOR.ENTER_P?"p":"div");d.selectRanges(e)}}for(var c=
d.createBookmarks(true),i=[],k={},e=e.createIterator(),l=0;(j=e.getNextRange())&&++l;){var p=j.getBoundaryNodes(),r=p.startNode,y=p.endNode;r.type==CKEDITOR.NODE_ELEMENT&&r.getName()=="td"&&j.setStartAt(p.startNode,CKEDITOR.POSITION_AFTER_START);y.type==CKEDITOR.NODE_ELEMENT&&y.getName()=="td"&&j.setEndAt(p.endNode,CKEDITOR.POSITION_BEFORE_END);j=j.createIterator();for(j.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;p=j.getNextParagraph();)if(!p.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(k,
p,"list_block",1);for(var z=b.elementPath(p),r=z.elements,y=0,z=z.blockLimit,B,A=r.length-1;A>=0&&(B=r[A]);A--)if(f[B.getName()]&&z.contains(B)){z.removeCustomData("list_group_object_"+l);if(r=B.getCustomData("list_group_object"))r.contents.push(p);else{r={root:B,contents:[p]};i.push(r);CKEDITOR.dom.element.setMarker(k,B,"list_group_object",r)}y=1;break}if(!y){y=z;if(y.getCustomData("list_group_object_"+l))y.getCustomData("list_group_object_"+l).contents.push(p);else{r={root:y,contents:[p]};CKEDITOR.dom.element.setMarker(k,
y,"list_group_object_"+l,r);i.push(r)}}}}for(B=[];i.length>0;){r=i.shift();if(this.state==CKEDITOR.TRISTATE_OFF)if(f[r.root.getName()]){e=b;l=r;r=k;j=B;y=CKEDITOR.plugins.list.listToArray(l.root,r);z=[];for(p=0;p<l.contents.length;p++){A=l.contents[p];if((A=A.getAscendant("li",true))&&!A.getCustomData("list_item_processed")){z.push(A);CKEDITOR.dom.element.setMarker(r,A,"list_item_processed",true)}}for(var A=l.root.getDocument(),D=void 0,C=void 0,p=0;p<z.length;p++){var F=z[p].getCustomData("listarray_index"),
D=y[F].parent;if(!D.is(this.type)){C=A.createElement(this.type);D.copyAttributes(C,{start:1,type:1});C.removeStyle("list-style-type");y[F].parent=C}}r=CKEDITOR.plugins.list.arrayToList(y,r,null,e.config.enterMode);y=void 0;z=r.listNode.getChildCount();for(p=0;p<z&&(y=r.listNode.getChild(p));p++)y.getName()==this.type&&j.push(y);r.listNode.replace(l.root);e.fire("contentDomInvalidated")}else{y=b;p=r;j=B;z=p.contents;e=p.root.getDocument();l=[];if(z.length==1&&z[0].equals(p.root)){r=e.createElement("div");
z[0].moveChildren&&z[0].moveChildren(r);z[0].append(r);z[0]=r}p=p.contents[0].getParent();for(A=0;A<z.length;A++)p=p.getCommonAncestor(z[A].getParent());D=y.config.useComputedState;y=r=void 0;D=D===void 0||D;for(A=0;A<z.length;A++)for(C=z[A];F=C.getParent();){if(F.equals(p)){l.push(C);!y&&C.getDirection()&&(y=1);C=C.getDirection(D);r!==null&&(r=r&&r!=C?null:C);break}C=F}if(!(l.length<1)){z=l[l.length-1].getNext();A=e.createElement(this.type);j.push(A);for(D=j=void 0;l.length;){j=l.shift();D=e.createElement("li");
if(j.is("pre")||q.test(j.getName())||j.getAttribute("contenteditable")=="false")j.appendTo(D);else{j.copyAttributes(D);if(r&&j.getDirection()){D.removeStyle("direction");D.removeAttribute("dir")}j.moveChildren(D);j.remove()}D.appendTo(A)}r&&y&&A.setAttribute("dir",r);z?A.insertBefore(z):A.appendTo(p)}}else this.state==CKEDITOR.TRISTATE_ON&&f[r.root.getName()]&&a.call(this,b,r,k)}for(A=0;A<B.length;A++)g(B[A]);CKEDITOR.dom.element.clearAllMarkers(k);d.selectBookmarks(c);b.focus()},refresh:function(a,
b){var c=b.contains(f,1),d=b.blockLimit||b.root;c&&d.contains(c)?this.setState(c.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(a){if(!a.blockless){a.addCommand("numberedlist",new e("numberedlist","ol"));a.addCommand("bulletedlist",new e("bulletedlist","ul"));if(a.ui.addButton){a.ui.addButton("NumberedList",{label:a.lang.list.numberedlist,command:"numberedlist",directional:true,toolbar:"list,10"});
a.ui.addButton("BulletedList",{label:a.lang.list.bulletedlist,command:"bulletedlist",directional:true,toolbar:"list,20"})}a.on("key",function(b){var d=b.data.domEvent.getKey(),e;if(a.mode=="wysiwyg"&&d in{8:1,46:1}){var g=a.getSelection().getRanges()[0],k=g&&g.startPath();if(g&&g.collapsed){var p=d==8,q=a.editable(),v=new CKEDITOR.dom.walker(g.clone());v.evaluator=function(a){return h(a)&&!l(a)};v.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};d=g.clone();if(p){var r;
if((r=k.contains(f))&&g.checkBoundaryOfElement(r,CKEDITOR.START)&&(r=r.getParent())&&r.is("li")&&(r=i(r))){e=r;r=r.getPrevious(h);d.moveToPosition(r&&l(r)?r:e,CKEDITOR.POSITION_BEFORE_START)}else{v.range.setStartAt(q,CKEDITOR.POSITION_AFTER_START);v.range.setEnd(g.startContainer,g.startOffset);if((r=v.previous())&&r.type==CKEDITOR.NODE_ELEMENT&&(r.getName()in f||r.is("li"))){if(!r.is("li")){v.range.selectNodeContents(r);v.reset();v.evaluator=c;r=v.previous()}e=r;d.moveToElementEditEnd(e);d.moveToPosition(d.endPath().block,
CKEDITOR.POSITION_BEFORE_END)}}if(e){j(a,d,g);b.cancel()}else{var y=k.contains(f);if(y&&g.checkBoundaryOfElement(y,CKEDITOR.START)){e=y.getFirst(h);if(g.checkBoundaryOfElement(e,CKEDITOR.START)){r=y.getPrevious(h);if(i(e)){if(r){g.moveToElementEditEnd(r);g.select()}}else a.execCommand("outdent");b.cancel()}}}}else if(e=k.contains("li")){v.range.setEndAt(q,CKEDITOR.POSITION_BEFORE_END);p=(q=e.getLast(h))&&c(q)?q:e;k=0;if((r=v.next())&&r.type==CKEDITOR.NODE_ELEMENT&&r.getName()in f&&r.equals(q)){k=
1;r=v.next()}else g.checkBoundaryOfElement(p,CKEDITOR.END)&&(k=2);if(k&&r){g=g.clone();g.moveToElementEditStart(r);if(k==1){d.optimize();if(!d.startContainer.equals(e)){for(e=d.startContainer;e.is(CKEDITOR.dtd.$inline);){y=e;e=e.getParent()}y&&d.moveToPosition(y,CKEDITOR.POSITION_AFTER_END)}}if(k==2){d.moveToPosition(d.endPath().block,CKEDITOR.POSITION_BEFORE_END);g.endPath().block&&g.moveToPosition(g.endPath().block,CKEDITOR.POSITION_AFTER_START)}j(a,d,g);b.cancel()}}else{v.range.setEndAt(q,CKEDITOR.POSITION_BEFORE_END);
if((r=v.next())&&r.type==CKEDITOR.NODE_ELEMENT&&r.is(f)){r=r.getFirst(h);if(k.block&&g.checkStartOfBlock()&&g.checkEndOfBlock()){k.block.remove();g.moveToElementEditStart(r);g.select()}else if(i(r)){g.moveToElementEditStart(r);g.select()}else{g=g.clone();g.moveToElementEditStart(r);j(a,d,g)}b.cancel()}}setTimeout(function(){a.selectionChange(1)})}}})}}})}(),function(){CKEDITOR.plugins.liststyle={requires:"dialog,contextmenu",init:function(a){if(!a.blockless){var e;e=new CKEDITOR.dialogCommand("numberedListStyle",
{requiredContent:"ol",allowedContent:"ol{list-style-type}[start]"});e=a.addCommand("numberedListStyle",e);a.addFeature(e);CKEDITOR.dialog.add("numberedListStyle",this.path+"dialogs/liststyle.js");e=new CKEDITOR.dialogCommand("bulletedListStyle",{requiredContent:"ul",allowedContent:"ul{list-style-type}"});e=a.addCommand("bulletedListStyle",e);a.addFeature(e);CKEDITOR.dialog.add("bulletedListStyle",this.path+"dialogs/liststyle.js");a.addMenuGroup("list",108);a.addMenuItems({numberedlist:{label:a.lang.liststyle.numberedTitle,
group:"list",command:"numberedListStyle"},bulletedlist:{label:a.lang.liststyle.bulletedTitle,group:"list",command:"bulletedListStyle"}});a.contextMenu.addListener(function(a){if(!a||a.isReadOnly())return null;for(;a;){var e=a.getName();if(e=="ol")return{numberedlist:CKEDITOR.TRISTATE_OFF};if(e=="ul")return{bulletedlist:CKEDITOR.TRISTATE_OFF};a=a.getParent()}return null})}}};CKEDITOR.plugins.add("liststyle",CKEDITOR.plugins.liststyle)}(),"use strict",function(){function a(a,b,c){return h(b)&&h(c)&&
c.equals(b.getNext(function(a){return!(V(a)||W(a)||l(a))}))}function e(a){this.upper=a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}function b(a){var b=a.element;if(b&&h(b))if((b=b.getAscendant(a.triggers,true))&&a.editable.contains(b)){var c=j(b);if(c.getAttribute("contenteditable")=="true")return b;if(c.is(a.triggers))return c}return null}function g(a,b,c){w(a,b);w(a,c);a=b.size.bottom;c=c.size.top;return a&&c?0|(a+c)/2:a||c}function c(a,b,c){return b=b[c?"getPrevious":"getNext"](function(b){return b&&
b.type==CKEDITOR.NODE_TEXT&&!V(b)||h(b)&&!l(b)&&!d(a,b)})}function j(a,b){if(a.data("cke-editable"))return null;for(b||(a=a.getParent());a;){if(a.data("cke-editable"))break;if(a.hasAttribute("contenteditable"))return a;a=a.getParent()}return null}function i(a){var b=a.doc,c=z('<span contenteditable="false" style="'+G+"position:absolute;border-top:1px dashed "+a.boxColor+'"></span>',b),d=CKEDITOR.getUrl(this.path+"images/"+(B.hidpi?"hidpi/":"")+"icon"+(a.rtl?"-rtl":"")+".png");r(c,{attach:function(){this.wrap.getParent()||
this.wrap.appendTo(a.editable,true);return this},lineChildren:[r(z('<span title="'+a.editor.lang.magicline.title+'" contenteditable="false">&#8629;</span>',b),{base:G+"height:17px;width:17px;"+(a.rtl?"left":"right")+":17px;background:url("+d+") center no-repeat "+a.boxColor+";cursor:pointer;"+(B.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(B.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px; border-radius: 2px;","top:-17px; border-radius: 2px 2px 0px 0px;",
"top:-1px; border-radius: 0px 0px 2px 2px;"]}),r(z(Q,b),{base:P+"left:0px;border-left-color:"+a.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),r(z(Q,b),{base:P+"right:0px;border-right-color:"+a.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px","border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],detach:function(){this.wrap.getParent()&&this.wrap.remove();return this},mouseNear:function(){w(a,
this);var b=a.holdDistance,c=this.size;return c&&a.mouse.y>c.top-b&&a.mouse.y<c.bottom+b&&a.mouse.x>c.left-b&&a.mouse.x<c.right+b?true:false},place:function(){var b=a.view,c=a.editable,d=a.trigger,e=d.upper,f=d.lower,g=e||f,h=g.getParent(),i={};this.trigger=d;e&&w(a,e,true);f&&w(a,f,true);w(a,h,true);a.inInlineMode&&u(a,true);if(h.equals(c)){i.left=b.scroll.x;i.right=-b.scroll.x;i.width=""}else{i.left=g.size.left-g.size.margin.left+b.scroll.x-(a.inInlineMode?b.editable.left+b.editable.border.left:
0);i.width=g.size.outerWidth+g.size.margin.left+g.size.margin.right+b.scroll.x;i.right=""}if(e&&f)i.top=e.size.margin.bottom===f.size.margin.top?0|e.size.bottom+e.size.margin.bottom/2:e.size.margin.bottom<f.size.margin.top?e.size.bottom+e.size.margin.bottom:e.size.bottom+e.size.margin.bottom-f.size.margin.top;else if(e){if(!f)i.top=e.size.bottom+e.size.margin.bottom}else i.top=f.size.top-f.size.margin.top;if(d.is(S)||i.top>b.scroll.y-15&&i.top<b.scroll.y+5){i.top=a.inInlineMode?0:b.scroll.y;this.look(S)}else if(d.is(I)||
i.top>b.pane.bottom-5&&i.top<b.pane.bottom+15){i.top=a.inInlineMode?b.editable.height+b.editable.padding.top+b.editable.padding.bottom:b.pane.bottom-1;this.look(I)}else{if(a.inInlineMode)i.top=i.top-(b.editable.top+b.editable.border.top);this.look(U)}if(a.inInlineMode){i.top--;i.top=i.top+b.editable.scroll.top;i.left=i.left+b.editable.scroll.left}for(var j in i)i[j]=CKEDITOR.tools.cssLength(i[j]);this.setStyles(i)},look:function(a){if(this.oldLook!=a){for(var b=this.lineChildren.length,c;b--;)(c=
this.lineChildren[b]).setAttribute("style",c.base+c.looks[0|a/2]);this.oldLook=a}},wrap:new y("span",a.doc)});for(b=c.lineChildren.length;b--;)c.lineChildren[b].appendTo(c);c.look(U);c.appendTo(c.wrap);c.unselectable();c.lineChildren[0].on("mouseup",function(b){c.detach();f(a,function(b){var c=a.line.trigger;b[c.is(F)?"insertBefore":"insertAfter"](c.is(F)?c.lower:c.upper)},true);a.editor.focus();!B.ie&&a.enterMode!=CKEDITOR.ENTER_BR&&a.hotNode.scrollIntoView();b.data.preventDefault(true)});c.on("mousedown",
function(a){a.data.preventDefault(true)});a.line=c}function f(a,b,c){var d=new CKEDITOR.dom.range(a.doc),e=a.editor,f;if(B.ie&&a.enterMode==CKEDITOR.ENTER_BR)f=a.doc.createText(R);else{f=(f=j(a.element,true))&&f.data("cke-enter-mode")||a.enterMode;f=new y(C[f],a.doc);f.is("br")||a.doc.createText(R).appendTo(f)}c&&e.fire("saveSnapshot");b(f);d.moveToPosition(f,CKEDITOR.POSITION_AFTER_START);e.getSelection().selectRanges([d]);a.hotNode=f;c&&e.fire("saveSnapshot")}function k(a,d){return{canUndo:true,
modes:{wysiwyg:1},exec:function(){function e(b){var c=B.ie&&B.version<9?" ":R,g=a.hotNode&&a.hotNode.getText()==c&&a.element.equals(a.hotNode)&&a.lastCmdDirection===!!d;f(a,function(c){g&&a.hotNode&&a.hotNode.remove();c[d?"insertAfter":"insertBefore"](b);c.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!d});a.lastCmdDirection=!!d});!B.ie&&a.enterMode!=CKEDITOR.ENTER_BR&&a.hotNode.scrollIntoView();a.line.detach()}return function(f){var f=f.getSelection().getStartElement(),g,f=
f.getAscendant(O,1);if(!m(a,f)&&f&&!f.equals(a.editable)&&!f.contains(a.editable)){if((g=j(f))&&g.getAttribute("contenteditable")=="false")f=g;a.element=f;g=c(a,f,!d);var i;if(h(g)&&g.is(a.triggers)&&g.is(N)&&(!c(a,g,!d)||(i=c(a,g,!d))&&h(i)&&i.is(a.triggers)))e(g);else{i=b(a,f);if(h(i))if(c(a,i,!d))(f=c(a,i,!d))&&(h(f)&&f.is(a.triggers))&&e(i);else e(i)}}}}()}}function d(a,b){if(!b||!(b.type==CKEDITOR.NODE_ELEMENT&&b.$))return false;var c=a.line;return c.wrap.equals(b)||c.wrap.contains(b)}function h(a){return a&&
a.type==CKEDITOR.NODE_ELEMENT&&a.$}function l(a){if(!h(a))return false;var b;if(!(b=q(a)))if(h(a)){b={left:1,right:1,center:1};b=!(!b[a.getComputedStyle("float")]&&!b[a.getAttribute("align")])}else b=false;return b}function q(a){return!!{absolute:1,fixed:1}[a.getComputedStyle("position")]}function p(a,b){return h(b)?b.is(a.triggers):null}function m(a,b){if(!b)return false;for(var c=b.getParents(1),d=c.length;d--;)for(var e=a.tabuList.length;e--;)if(c[d].hasAttribute(a.tabuList[e]))return true;return false}
function n(a,b,c){b=b[c?"getLast":"getFirst"](function(b){return a.isRelevant(b)&&!b.is(Z)});if(!b)return false;w(a,b);return c?b.size.top>a.mouse.y:b.size.bottom<a.mouse.y}function o(a){var b=a.editable,c=a.mouse,f=a.view,g=a.triggerOffset;u(a);var i=c.y>(a.inInlineMode?f.editable.top+f.editable.height/2:Math.min(f.editable.height,f.pane.height)/2),b=b[i?"getLast":"getFirst"](function(a){return!(V(a)||W(a))});if(!b)return null;d(a,b)&&(b=a.line.wrap[i?"getPrevious":"getNext"](function(a){return!(V(a)||
W(a))}));if(!h(b)||l(b)||!p(a,b))return null;w(a,b);if(!i&&b.size.top>=0&&c.y>0&&c.y<b.size.top+g){a=a.inInlineMode||f.scroll.y===0?S:U;return new e([null,b,F,L,a])}if(i&&b.size.bottom<=f.pane.height&&c.y>b.size.bottom-g&&c.y<f.pane.height){a=a.inInlineMode||b.size.bottom>f.pane.height-g&&b.size.bottom<f.pane.height?I:U;return new e([b,null,E,L,a])}return null}function s(a){var d=a.mouse,f=a.view,g=a.triggerOffset,i=b(a);if(!i)return null;w(a,i);var g=Math.min(g,0|i.size.outerHeight/2),j=[],k,m;if(d.y>
i.size.top-1&&d.y<i.size.top+g)m=false;else if(d.y>i.size.bottom-g&&d.y<i.size.bottom+1)m=true;else return null;if(l(i)||n(a,i,m)||i.getParent().is(M))return null;var o=c(a,i,!m);if(o){if(o&&o.type==CKEDITOR.NODE_TEXT)return null;if(h(o)){if(l(o)||!p(a,o)||o.getParent().is(M))return null;j=[o,i][m?"reverse":"concat"]().concat([H,L])}}else{if(i.equals(a.editable[m?"getLast":"getFirst"](a.isRelevant))){u(a);m&&d.y>i.size.bottom-g&&d.y<f.pane.height&&i.size.bottom>f.pane.height-g&&i.size.bottom<f.pane.height?
k=I:d.y>0&&d.y<i.size.top+g&&(k=S)}else k=U;j=[null,i][m?"reverse":"concat"]().concat([m?E:F,L,k,i.equals(a.editable[m?"getLast":"getFirst"](a.isRelevant))?m?I:S:U])}return 0 in j?new e(j):null}function t(a,b,c,d){for(var e=b.getDocumentPosition(),f={},g={},h={},i={},j=T.length;j--;){f[T[j]]=parseInt(b.getComputedStyle.call(b,"border-"+T[j]+"-width"),10)||0;h[T[j]]=parseInt(b.getComputedStyle.call(b,"padding-"+T[j]),10)||0;g[T[j]]=parseInt(b.getComputedStyle.call(b,"margin-"+T[j]),10)||0}(!c||d)&&
x(a,d);i.top=e.y-(c?0:a.view.scroll.y);i.left=e.x-(c?0:a.view.scroll.x);i.outerWidth=b.$.offsetWidth;i.outerHeight=b.$.offsetHeight;i.height=i.outerHeight-(h.top+h.bottom+f.top+f.bottom);i.width=i.outerWidth-(h.left+h.right+f.left+f.right);i.bottom=i.top+i.outerHeight;i.right=i.left+i.outerWidth;if(a.inInlineMode)i.scroll={top:b.$.scrollTop,left:b.$.scrollLeft};return r({border:f,padding:h,margin:g,ignoreScroll:c},i,true)}function w(a,b,c){if(!h(b))return b.size=null;if(b.size){if(b.size.ignoreScroll==
c&&b.size.date>new Date-J)return null}else b.size={};return r(b.size,t(a,b,c),{date:+new Date},true)}function u(a,b){a.view.editable=t(a,a.editable,b,true)}function x(a,b){if(!a.view)a.view={};var c=a.view;if(b||!(c&&c.date>new Date-J)){var d=a.win,c=d.getScrollPosition(),d=d.getViewPaneSize();r(a.view,{scroll:{x:c.x,y:c.y,width:a.doc.$.documentElement.scrollWidth-d.width,height:a.doc.$.documentElement.scrollHeight-d.height},pane:{width:d.width,height:d.height,bottom:d.height+c.y},date:+new Date},
true)}}function v(a,b,c,d){for(var f=d,g=d,h=0,i=false,j=false,k=a.view.pane.height,m=a.mouse;m.y+h<k&&m.y-h>0;){i||(i=b(f,d));j||(j=b(g,d));!i&&m.y-h>0&&(f=c(a,{x:m.x,y:m.y-h}));!j&&m.y+h<k&&(g=c(a,{x:m.x,y:m.y+h}));if(i&&j)break;h=h+2}return new e([f,g,null,null])}CKEDITOR.plugins.add("magicline",{init:function(a){var g=a.config,j=g.magicline_triggerOffset||30,n={editor:a,enterMode:g.enterMode,triggerOffset:j,holdDistance:0|j*(g.magicline_holdDistance||0.5),boxColor:g.magicline_color||"#ff0000",
rtl:g.contentsLangDirection=="rtl",tabuList:["data-cke-hidden-sel"].concat(g.magicline_tabuList||[]),triggers:g.magicline_everywhere?O:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},p,w,v;n.isRelevant=function(a){return h(a)&&!d(n,a)&&!l(a)};a.on("contentDom",function(){var h=a.editable(),j=a.document,l=a.window;r(n,{editable:h,inInlineMode:h.isInline(),doc:j,win:l,hotNode:null},true);n.boundary=n.inInlineMode?n.editable:n.doc.getDocumentElement();if(!h.is(D.$inline)){n.inInlineMode&&!q(h)&&
h.setStyles({position:"relative",top:null,left:null});i.call(this,n);x(n);h.attachListener(a,"beforeUndoImage",function(){n.line.detach()});h.attachListener(a,"beforeGetData",function(){if(n.line.wrap.getParent()){n.line.detach();a.once("getData",function(){n.line.attach()},null,null,1E3)}},null,null,0);h.attachListener(n.inInlineMode?j:j.getWindow().getFrame(),"mouseout",function(b){if(a.mode=="wysiwyg")if(n.inInlineMode){var c=b.data.$.clientX,b=b.data.$.clientY;x(n);u(n,true);var d=n.view.editable,
e=n.view.scroll;if(!(c>d.left-e.x&&c<d.right-e.x)||!(b>d.top-e.y&&b<d.bottom-e.y)){clearTimeout(v);v=null;n.line.detach()}}else{clearTimeout(v);v=null;n.line.detach()}});h.attachListener(h,"keyup",function(){n.hiddenMode=0});h.attachListener(h,"keydown",function(b){if(a.mode=="wysiwyg")switch(b.data.getKeystroke()){case 2228240:case 16:n.hiddenMode=1;n.line.detach()}});h.attachListener(n.inInlineMode?h:j,"mousemove",function(b){w=true;if(!(a.mode!="wysiwyg"||a.readOnly||v)){var c={x:b.data.$.clientX,
y:b.data.$.clientY};v=setTimeout(function(){n.mouse=c;v=n.trigger=null;x(n);if(w&&!n.hiddenMode&&a.focusManager.hasFocus&&!n.line.mouseNear()&&(n.element=ca(n,true))){if((n.trigger=o(n)||s(n)||$(n))&&!m(n,n.trigger.upper||n.trigger.lower))n.line.attach().place();else{n.trigger=null;n.line.detach()}w=false}},30)}});h.attachListener(l,"scroll",function(){if(a.mode=="wysiwyg"){n.line.detach();if(B.webkit){n.hiddenMode=1;clearTimeout(p);p=setTimeout(function(){if(!n.mouseDown)n.hiddenMode=0},50)}}});
h.attachListener(A?j:l,"mousedown",function(){if(a.mode=="wysiwyg"){n.line.detach();n.hiddenMode=1;n.mouseDown=1}});h.attachListener(A?j:l,"mouseup",function(){n.hiddenMode=0;n.mouseDown=0});a.addCommand("accessPreviousSpace",k(n));a.addCommand("accessNextSpace",k(n,true));a.setKeystroke([[g.magicline_keystrokePrevious,"accessPreviousSpace"],[g.magicline_keystrokeNext,"accessNextSpace"]]);a.on("loadSnapshot",function(){var b,c,d,e;for(e in{p:1,br:1,div:1}){b=a.document.getElementsByTag(e);for(d=b.count();d--;)if((c=
b.getItem(d)).data("cke-magicline-hot")){n.hotNode=c;n.lastCmdDirection=c.data("cke-magicline-dir")==="true"?true:false;return}}});this.backdoor={accessFocusSpace:f,boxTrigger:e,isLine:d,getAscendantTrigger:b,getNonEmptyNeighbour:c,getSize:t,that:n,triggerEdge:s,triggerEditable:o,triggerExpand:$}}},this)}});var r=CKEDITOR.tools.extend,y=CKEDITOR.dom.element,z=y.createFromHtml,B=CKEDITOR.env,A=CKEDITOR.env.ie&&CKEDITOR.env.version<9,D=CKEDITOR.dtd,C={},F=128,E=64,H=32,L=16,K=8,S=4,I=2,U=1,R=" ",M=
D.$listItem,Z=D.$tableContent,N=r({},D.$nonEditable,D.$empty),O=D.$block,J=100,G="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",P=G+"border-color:transparent;display:block;border-style:solid;",Q="<span>"+R+"</span>";C[CKEDITOR.ENTER_BR]="br";C[CKEDITOR.ENTER_P]="p";C[CKEDITOR.ENTER_DIV]="div";e.prototype={set:function(a,b,c){this.properties=a+b+(c||U);return this},is:function(a){return(this.properties&a)==a}};var ca=
function(){function a(b,c){var d=b.$.elementFromPoint(c.x,c.y);return d&&d.nodeType?new CKEDITOR.dom.element(d):null}return function(b,c,e){if(!b.mouse)return null;var f=b.doc,g=b.line.wrap,e=e||b.mouse,h=a(f,e);if(c&&d(b,h)){g.hide();h=a(f,e);g.show()}return!h||!(h.type==CKEDITOR.NODE_ELEMENT&&h.$)||B.ie&&B.version<9&&!b.boundary.equals(h)&&!b.boundary.contains(h)?null:h}}(),V=CKEDITOR.dom.walker.whitespaces(),W=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),$=function(){function b(d){var e=
d.element,f,i,j;if(!h(e)||e.contains(d.editable)||e.isReadOnly())return null;j=v(d,function(a,b){return!b.equals(a)},function(a,b){return ca(a,true,b)},e);f=j.upper;i=j.lower;if(a(d,f,i))return j.set(H,K);if(f&&e.contains(f))for(;!f.getParent().equals(e);)f=f.getParent();else f=e.getFirst(function(a){return c(d,a)});if(i&&e.contains(i))for(;!i.getParent().equals(e);)i=i.getParent();else i=e.getLast(function(a){return c(d,a)});if(!f||!i)return null;w(d,f);w(d,i);if(!(d.mouse.y>f.size.top&&d.mouse.y<
i.size.bottom))return null;for(var e=Number.MAX_VALUE,k,m,n,o;i&&!i.equals(f);){if(!(m=f.getNext(d.isRelevant)))break;k=Math.abs(g(d,f,m)-d.mouse.y);if(k<e){e=k;n=f;o=m}f=m;w(d,f)}if(!n||!o||!(d.mouse.y>n.size.top&&d.mouse.y<o.size.bottom))return null;j.upper=n;j.lower=o;return j.set(H,K)}function c(a,b){return!(b&&b.type==CKEDITOR.NODE_TEXT||W(b)||l(b)||d(a,b)||b.type==CKEDITOR.NODE_ELEMENT&&b.$&&b.is("br"))}return function(c){var d=b(c),e;if(e=d){e=d.upper;var f=d.lower;e=!e||!f||l(f)||l(e)||f.equals(e)||
e.equals(f)||f.contains(e)||e.contains(f)?false:p(c,e)&&p(c,f)&&a(c,e,f)?true:false}return e?d:null}}(),T=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52,function(){function a(a){if(!a||a.type!=CKEDITOR.NODE_ELEMENT||a.getName()!="form")return[];for(var b=[],c=["style","className"],e=0;e<c.length;e++){var d=a.$.elements.namedItem(c[e]);if(d){d=new CKEDITOR.dom.element(d);
b.push([d,d.nextSibling]);d.remove()}}return b}function e(a,b){if(a&&!(a.type!=CKEDITOR.NODE_ELEMENT||a.getName()!="form")&&b.length>0)for(var c=b.length-1;c>=0;c--){var e=b[c][0],d=b[c][1];d?e.insertBefore(d):e.appendTo(a)}}function b(b,c){var f=a(b),g={},d=b.$;if(!c){g["class"]=d.className||"";d.className=""}g.inline=d.style.cssText||"";if(!c)d.style.cssText="position: static; overflow: visible";e(f);return g}function g(b,c){var f=a(b),g=b.$;if("class"in c)g.className=c["class"];if("inline"in c)g.style.cssText=
c.inline;e(f)}function c(a){if(!a.editable().isInline()){var b=CKEDITOR.instances,c;for(c in b){var e=b[c];if(e.mode=="wysiwyg"&&!e.readOnly){e=e.document.getBody();e.setAttribute("contentEditable",false);e.setAttribute("contentEditable",true)}}if(a.editable().hasFocus){a.toolbox.focus();a.focus()}}}CKEDITOR.plugins.add("maximize",{init:function(a){function e(){var b=d.getViewPaneSize();a.resize(b.width,b.height,null,true)}if(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var f=a.lang,k=CKEDITOR.document,
d=k.getWindow(),h,l,q,p=CKEDITOR.TRISTATE_OFF;a.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:false,exec:function(){var m=a.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}),n=a.ui.space("contents");if(a.mode=="wysiwyg"){var o=a.getSelection();h=o&&o.getRanges();l=d.getScrollPosition()}else{var s=a.editable().$;h=!CKEDITOR.env.ie&&[s.selectionStart,s.selectionEnd];l=[s.scrollLeft,s.scrollTop]}if(this.state==
CKEDITOR.TRISTATE_OFF){d.on("resize",e);q=d.getScrollPosition();for(o=a.container;o=o.getParent();){o.setCustomData("maximize_saved_styles",b(o));o.setStyle("z-index",a.config.baseFloatZIndex-5)}n.setCustomData("maximize_saved_styles",b(n,true));m.setCustomData("maximize_saved_styles",b(m,true));n={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};k.getDocumentElement().setStyles(n);!CKEDITOR.env.gecko&&k.getDocumentElement().setStyle("position","fixed");(!CKEDITOR.env.gecko||!CKEDITOR.env.quirks)&&
k.getBody().setStyles(n);CKEDITOR.env.ie?setTimeout(function(){d.$.scrollTo(0,0)},0):d.$.scrollTo(0,0);m.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute");m.$.offsetLeft;m.setStyles({"z-index":a.config.baseFloatZIndex-5,left:"0px",top:"0px"});m.addClass("cke_maximized");e();n=m.getDocumentPosition();m.setStyles({left:-1*n.x+"px",top:-1*n.y+"px"});CKEDITOR.env.gecko&&c(a)}else if(this.state==CKEDITOR.TRISTATE_ON){d.removeListener("resize",e);for(var o=[n,m],t=0;t<o.length;t++){g(o[t],
o[t].getCustomData("maximize_saved_styles"));o[t].removeCustomData("maximize_saved_styles")}for(o=a.container;o=o.getParent();){g(o,o.getCustomData("maximize_saved_styles"));o.removeCustomData("maximize_saved_styles")}CKEDITOR.env.ie?setTimeout(function(){d.$.scrollTo(q.x,q.y)},0):d.$.scrollTo(q.x,q.y);m.removeClass("cke_maximized");if(CKEDITOR.env.webkit){m.setStyle("display","inline");setTimeout(function(){m.setStyle("display","block")},0)}a.fire("resize",{outerHeight:a.container.$.offsetHeight,
contentsHeight:n.$.offsetHeight,outerWidth:a.container.$.offsetWidth})}this.toggleState();if(o=this.uiItems[0]){n=this.state==CKEDITOR.TRISTATE_OFF?f.maximize.maximize:f.maximize.minimize;o=CKEDITOR.document.getById(o._.id);o.getChild(1).setHtml(n);o.setAttribute("title",n);o.setAttribute("href",'javascript:void("'+n+'");')}if(a.mode=="wysiwyg")if(h){CKEDITOR.env.gecko&&c(a);a.getSelection().selectRanges(h);(s=a.getSelection().getStartElement())&&s.scrollIntoView(true)}else d.$.scrollTo(l.x,l.y);
else{if(h){s.selectionStart=h[0];s.selectionEnd=h[1]}s.scrollLeft=l[0];s.scrollTop=l[1]}h=l=null;p=this.state;a.fire("maximize",this.state)},canUndo:false});a.ui.addButton&&a.ui.addButton("Maximize",{label:f.maximize.maximize,command:"maximize",toolbar:"tools,10"});a.on("mode",function(){var b=a.getCommand("maximize");b.setState(b.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:p)},null,null,100)}}})}(),CKEDITOR.plugins.add("newpage",{init:function(a){a.addCommand("newpage",{modes:{wysiwyg:1,
source:1},exec:function(a){var b=this;a.setData(a.config.newpage_html||"",function(){a.focus();setTimeout(function(){a.fire("afterCommandExec",{name:"newpage",command:b});a.selectionChange()},200)})},async:true});a.ui.addButton&&a.ui.addButton("NewPage",{label:a.lang.newpage.toolbar,command:"newpage",toolbar:"document,20"})}}),"use strict",function(){function a(a){return{"aria-label":a,"class":"cke_pagebreak",contenteditable:"false","data-cke-display-name":"pagebreak","data-cke-pagebreak":1,style:"page-break-after: always",
title:a}}CKEDITOR.plugins.add("pagebreak",{requires:"fakeobjects",onLoad:function(){var a=("background:url("+CKEDITOR.getUrl(this.path+"images/pagebreak.gif")+") no-repeat center center;clear:both;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;padding:0;height:7px;cursor:default;").replace(/;/g," !important;");CKEDITOR.addCss("div.cke_pagebreak{"+a+"}")},init:function(a){if(!a.blockless){a.addCommand("pagebreak",CKEDITOR.plugins.pagebreakCmd);a.ui.addButton&&a.ui.addButton("PageBreak",
{label:a.lang.pagebreak.toolbar,command:"pagebreak",toolbar:"insert,70"});CKEDITOR.env.webkit&&a.on("contentDom",function(){a.document.on("click",function(b){b=b.data.getTarget();b.is("div")&&b.hasClass("cke_pagebreak")&&a.getSelection().selectElement(b)})})}},afterInit:function(e){function b(b){CKEDITOR.tools.extend(b.attributes,a(e.lang.pagebreak.alt),true);b.children.length=0}var g=e.dataProcessor,c=g&&g.dataFilter,g=g&&g.htmlFilter,j=/page-break-after\s*:\s*always/i,i=/display\s*:\s*none/i;g&&
g.addRules({attributes:{"class":function(a,b){var c=a.replace("cke_pagebreak","");if(c!=a){var e=CKEDITOR.htmlParser.fragment.fromHtml('<span style="display: none;">&nbsp;</span>').children[0];b.children.length=0;b.add(e);e=b.attributes;delete e["aria-label"];delete e.contenteditable;delete e.title}return c}}},{applyToAll:true,priority:5});c&&c.addRules({elements:{div:function(a){if(a.attributes["data-cke-pagebreak"])b(a);else if(j.test(a.attributes.style)){var c=a.children[0];c&&(c.name=="span"&&
i.test(c.attributes.style))&&b(a)}}}})}});CKEDITOR.plugins.pagebreakCmd={exec:function(e){var b=e.document.createElement("div",{attributes:a(e.lang.pagebreak.alt)});e.insertElement(b)},context:"div",allowedContent:{div:{styles:"!page-break-after"},span:{match:function(a){return(a=a.parent)&&a.name=="div"&&a.styles&&a.styles["page-break-after"]},styles:"display"}},requiredContent:"div{page-break-after}"}}(),function(){function a(a,e,c){var j=CKEDITOR.cleanWord;if(j)c();else{a=CKEDITOR.getUrl(a.config.pasteFromWordCleanupFile||
e+"filter/default.js");CKEDITOR.scriptLoader.load(a,c,null,true)}return!j}function e(a){a.data.type="html"}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(b){var g=0,c=this.path;b.addCommand("pastefromword",{canUndo:false,async:true,exec:function(a){var b=this;g=1;a.once("beforePaste",e);a.getClipboardData({title:a.lang.pastefromword.title},function(c){c&&a.fire("paste",{type:"html",dataValue:c.dataValue,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()});
a.fire("afterCommandExec",{name:"pastefromword",command:b,returnValue:!!c})})}});b.ui.addButton&&b.ui.addButton("PasteFromWord",{label:b.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});b.on("pasteState",function(a){b.getCommand("pastefromword").setState(a.data)});b.on("paste",function(e){var i=e.data,f=i.dataValue;if(f&&(g||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(f))){i.dontFilter=true;var k=a(b,c,function(){if(k)b.fire("paste",i);else if(!b.config.pasteFromWordPromptCleanup||
g||confirm(b.lang.pastefromword.confirmCleanup))i.dataValue=CKEDITOR.cleanWord(f,b);g=0});k&&e.cancel()}},null,null,3)}})}(),function(){var a={canUndo:false,async:true,exec:function(e){e.getClipboardData({title:e.lang.pastetext.title},function(b){b&&e.fire("paste",{type:"text",dataValue:b.dataValue,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()});e.fire("afterCommandExec",{name:"pastetext",command:a,returnValue:!!b})})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",
init:function(e){e.addCommand("pastetext",a);e.ui.addButton&&e.ui.addButton("PasteText",{label:e.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(e.config.forcePasteAsPlainText)e.on("beforePaste",function(a){if(a.data.type!="html")a.data.type="text"});e.on("pasteState",function(a){e.getCommand("pastetext").setState(a.data)})}})}(),function(){var a,e={modes:{wysiwyg:1,source:1},canUndo:false,readOnly:1,exec:function(b){var e,c=b.config,j=c.baseHref?'<base href="'+c.baseHref+'"/>':
"";if(c.fullPage)e=b.getData().replace(/<head>/,"$&"+j).replace(/[^>]*(?=<\/title>)/,"$& &mdash; "+b.lang.preview.preview);else{var c="<body ",i=b.document&&b.document.getBody();if(i){i.getAttribute("id")&&(c=c+('id="'+i.getAttribute("id")+'" '));i.getAttribute("class")&&(c=c+('class="'+i.getAttribute("class")+'" '))}e=b.config.docType+'<html dir="'+b.config.contentsLangDirection+'"><head>'+j+"<title>"+b.lang.preview.preview+"</title>"+CKEDITOR.tools.buildStyleHtml(b.config.contentsCss)+"</head>"+
(c+">")+b.getData()+"</body></html>"}j=640;c=420;i=80;try{var f=window.screen,j=Math.round(f.width*0.8),c=Math.round(f.height*0.7),i=Math.round(f.width*0.1)}catch(k){}if(b.fire("contentPreview",b={dataValue:e})===false)return false;var f="",d;if(CKEDITOR.env.ie){window._cke_htmlToLoad=b.dataValue;d="javascript:void( (function(){document.open();"+("("+CKEDITOR.tools.fixDomain+")();").replace(/\/\/.*?\n/g,"").replace(/parent\./g,"window.opener.")+"document.write( window.opener._cke_htmlToLoad );document.close();window.opener._cke_htmlToLoad = null;})() )";
f=""}if(CKEDITOR.env.gecko){window._cke_htmlToLoad=b.dataValue;f=CKEDITOR.getUrl(a+"preview.html")}f=window.open(f,null,"toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+j+",height="+c+",left="+i);if(CKEDITOR.env.ie&&f)f.location=d;if(!CKEDITOR.env.ie&&!CKEDITOR.env.gecko){d=f.document;d.open();d.write(b.dataValue);d.close()}return true}};CKEDITOR.plugins.add("preview",{init:function(b){if(b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){a=this.path;b.addCommand("preview",
e);b.ui.addButton&&b.ui.addButton("Preview",{label:b.lang.preview.preview,command:"preview",toolbar:"document,40"})}}})}(),CKEDITOR.plugins.add("print",{init:function(a){if(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){a.addCommand("print",CKEDITOR.plugins.print);a.ui.addButton&&a.ui.addButton("Print",{label:a.lang.print.toolbar,command:"print",toolbar:"document,50"})}}}),CKEDITOR.plugins.print={exec:function(a){CKEDITOR.env.gecko?a.window.$.print():a.document.$.execCommand("Print")},canUndo:!1,readOnly:1,
modes:{wysiwyg:1}},CKEDITOR.plugins.add("removeformat",{init:function(a){a.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);a.ui.addButton&&a.ui.addButton("RemoveFormat",{label:a.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(a){for(var e=a._.removeFormatRegex||(a._.removeFormatRegex=RegExp("^(?:"+a.config.removeFormatTags.replace(/,/g,"|")+")$","i")),b=a._.removeAttributes||
(a._.removeAttributes=a.config.removeFormatAttributes.split(",")),g=CKEDITOR.plugins.removeformat.filter,c=a.getSelection().getRanges(),j=c.createIterator(),i=function(a){return a.type==CKEDITOR.NODE_ELEMENT},f;f=j.getNextRange();){f.collapsed||f.enlarge(CKEDITOR.ENLARGE_ELEMENT);var k=f.createBookmark(),d=k.startNode,h=k.endNode,l=function(b){for(var c=a.elementPath(b),d=c.elements,f=1,h;h=d[f];f++){if(h.equals(c.block)||h.equals(c.blockLimit))break;e.test(h.getName())&&g(a,h)&&b.breakParent(h)}};
l(d);if(h){l(h);for(d=d.getNextSourceNode(true,CKEDITOR.NODE_ELEMENT);d;){if(d.equals(h))break;if(d.isReadOnly()){if(d.getPosition(h)&CKEDITOR.POSITION_CONTAINS)break;d=d.getNext(i)}else{l=d.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT);if(!(d.getName()=="img"&&d.data("cke-realelement"))&&g(a,d))if(e.test(d.getName()))d.remove(1);else{d.removeAttributes(b);a.fire("removeFormatCleanup",d)}d=l}}}f.moveToBookmark(k)}a.forceNextSelectionCheck();a.getSelection().selectRanges(c)}}},filter:function(a,e){for(var b=
a._.removeFormatFilters||[],g=0;g<b.length;g++)if(b[g](e)===false)return false;return true}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(a){if(!this._.removeFormatFilters)this._.removeFormatFilters=[];this._.removeFormatFilters.push(a)},CKEDITOR.config.removeFormatTags="b,big,cite,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var",CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign",CKEDITOR.plugins.add("resize",{init:function(a){var e,
b,g,c;function j(h){var i=e,j=b,k=i+(h.data.$.screenX-g)*(d=="rtl"?-1:1),h=j+(h.data.$.screenY-c);l&&(i=Math.max(f.resize_minWidth,Math.min(k,f.resize_maxWidth)));q&&(j=Math.max(f.resize_minHeight,Math.min(h,f.resize_maxHeight)));a.resize(l?i:null,j)}function i(){CKEDITOR.document.removeListener("mousemove",j);CKEDITOR.document.removeListener("mouseup",i);if(a.document){a.document.removeListener("mousemove",j);a.document.removeListener("mouseup",i)}}var f=a.config,k=a.ui.spaceId("resizer"),d=a.element?
a.element.getDirection(1):"ltr";!f.resize_dir&&(f.resize_dir="vertical");f.resize_maxWidth===void 0&&(f.resize_maxWidth=3E3);f.resize_maxHeight===void 0&&(f.resize_maxHeight=3E3);f.resize_minWidth===void 0&&(f.resize_minWidth=750);f.resize_minHeight===void 0&&(f.resize_minHeight=250);if(f.resize_enabled!==false){var h=null,l=(f.resize_dir=="both"||f.resize_dir=="horizontal")&&f.resize_minWidth!=f.resize_maxWidth,q=(f.resize_dir=="both"||f.resize_dir=="vertical")&&f.resize_minHeight!=f.resize_maxHeight,
p=CKEDITOR.tools.addFunction(function(d){h||(h=a.getResizable());e=h.$.offsetWidth||0;b=h.$.offsetHeight||0;g=d.screenX;c=d.screenY;f.resize_minWidth>e&&(f.resize_minWidth=e);f.resize_minHeight>b&&(f.resize_minHeight=b);CKEDITOR.document.on("mousemove",j);CKEDITOR.document.on("mouseup",i);if(a.document){a.document.on("mousemove",j);a.document.on("mouseup",i)}d.preventDefault&&d.preventDefault()});a.on("destroy",function(){CKEDITOR.tools.removeFunction(p)});a.on("uiSpace",function(b){if(b.data.space==
"bottom"){var c="";l&&!q&&(c=" cke_resizer_horizontal");!l&&q&&(c=" cke_resizer_vertical");var e='<span id="'+k+'" class="cke_resizer'+c+" cke_resizer_"+d+'" title="'+CKEDITOR.tools.htmlEncode(a.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+p+', event)">'+(d=="ltr"?"◢":"◣")+"</span>";d=="ltr"&&c=="ltr"?b.data.html=b.data.html+e:b.data.html=e+b.data.html}},a,null,100);a.on("maximize",function(b){a.ui.space("resizer")[b.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}}),function(){var a=
{readOnly:1,exec:function(a){if(a.fire("save"))if(a=a.element.$.form)try{a.submit()}catch(b){a.submit.click&&a.submit.click()}}};CKEDITOR.plugins.add("save",{init:function(e){if(e.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE){e.addCommand("save",a).modes={wysiwyg:!!e.element.$.form};e.ui.addButton&&e.ui.addButton("Save",{label:e.lang.save.toolbar,command:"save",toolbar:"document,10"})}}})}(),function(){CKEDITOR.plugins.add("selectall",{init:function(a){a.addCommand("selectAll",{modes:{wysiwyg:1,source:1},
exec:function(a){var b=a.editable();if(b.is("textarea")){a=b.$;if(CKEDITOR.env.ie)a.createTextRange().execCommand("SelectAll");else{a.selectionStart=0;a.selectionEnd=a.value.length}a.focus()}else{if(b.is("body"))a.document.$.execCommand("SelectAll",false,null);else{var g=a.createRange();g.selectNodeContents(b);g.select()}a.forceNextSelectionCheck();a.selectionChange()}},canUndo:false});a.ui.addButton&&a.ui.addButton("SelectAll",{label:a.lang.selectall.toolbar,command:"selectAll",toolbar:"selection,10"})}})}(),
function(){var a={readOnly:1,preserveState:true,editorFocus:false,exec:function(a){this.toggleState();this.refresh(a)},refresh:function(a){if(a.document){var b=this.state==CKEDITOR.TRISTATE_ON&&(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE||a.focusManager.hasFocus)?"attachClass":"removeClass";a.editable()[b]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",{onLoad:function(){var a=["p","div","pre","address","blockquote","h1","h2","h3","h4","h5","h6"],b,g,c,j,i=CKEDITOR.getUrl(this.path),f=!(CKEDITOR.env.ie&&
CKEDITOR.env.version<9),k=f?":not([contenteditable=false]):not(.cke_show_blocks_off)":"",d,h;for(b=g=c=j="";d=a.pop();){h=a.length?",":"";b=b+(".cke_show_blocks "+d+k+h);c=c+(".cke_show_blocks.cke_contents_ltr "+d+k+h);j=j+(".cke_show_blocks.cke_contents_rtl "+d+k+h);g=g+(".cke_show_blocks "+d+k+"{background-image:url("+CKEDITOR.getUrl(i+"images/block_"+d+".png")+")}")}CKEDITOR.addCss((b+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(g,c+"{background-position:top left;padding-left:8px}",
j+"{background-position:top right;padding-right:8px}"));f||CKEDITOR.addCss(".cke_show_blocks [contenteditable=false],.cke_show_blocks .cke_show_blocks_off{border:none;padding-top:0;background-image:none}.cke_show_blocks.cke_contents_rtl [contenteditable=false],.cke_show_blocks.cke_contents_rtl .cke_show_blocks_off{padding-right:0}.cke_show_blocks.cke_contents_ltr [contenteditable=false],.cke_show_blocks.cke_contents_ltr .cke_show_blocks_off{padding-left:0}")},init:function(e){function b(){g.refresh(e)}
if(!e.blockless){var g=e.addCommand("showblocks",a);g.canUndo=false;e.config.startupOutlineBlocks&&g.setState(CKEDITOR.TRISTATE_ON);e.ui.addButton&&e.ui.addButton("ShowBlocks",{label:e.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"});e.on("mode",function(){g.state!=CKEDITOR.TRISTATE_DISABLED&&g.refresh(e)});if(e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE){e.on("focus",b);e.on("blur",b)}e.on("contentDom",function(){g.state!=CKEDITOR.TRISTATE_DISABLED&&g.refresh(e)})}}})}(),function(){var a=
{preserveState:true,editorFocus:false,readOnly:1,exec:function(a){this.toggleState();this.refresh(a)},refresh:function(a){if(a.document){var b=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";a.editable()[b]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var a;a=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted","}"]:[".%1 table.%2,",".%1 table.%2 > tr > td, .%1 table.%2 > tr > th,",
".%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,",".%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,",".%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th","{","border : #d3d3d3 1px dotted","}"]).join("").replace(/%2/g,"cke_show_border").replace(/%1/g,"cke_show_borders ");CKEDITOR.addCss(a)},init:function(e){var b=e.addCommand("showborders",a);b.canUndo=false;e.config.startupShowBorders!==false&&b.setState(CKEDITOR.TRISTATE_ON);e.on("mode",function(){b.state!=
CKEDITOR.TRISTATE_DISABLED&&b.refresh(e)},null,null,100);e.on("contentDom",function(){b.state!=CKEDITOR.TRISTATE_DISABLED&&b.refresh(e)});e.on("removeFormatCleanup",function(a){a=a.data;e.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&(a.is("table")&&(!a.hasAttribute("border")||parseInt(a.getAttribute("border"),10)<=0))&&a.addClass("cke_show_border")})},afterInit:function(a){var b=a.dataProcessor,a=b&&b.dataFilter,b=b&&b.htmlFilter;a&&a.addRules({elements:{table:function(a){var a=a.attributes,
b=a["class"],e=parseInt(a.border,10);if((!e||e<=0)&&(!b||b.indexOf("cke_show_border")==-1))a["class"]=(b||"")+" cke_show_border"}}});b&&b.addRules({elements:{table:function(a){var a=a.attributes,b=a["class"];b&&(a["class"]=b.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,""))}}})}});CKEDITOR.on("dialogDefinition",function(a){var b=a.data.name;if(b=="table"||b=="tableProperties"){a=a.data.definition;b=a.getContents("info").get("txtBorder");b.commit=CKEDITOR.tools.override(b.commit,
function(a){return function(b,e){a.apply(this,arguments);var i=parseInt(this.getValue(),10);e[!i||i<=0?"addClass":"removeClass"]("cke_show_border")}});if(a=(a=a.getContents("advanced"))&&a.get("advCSSClasses")){a.setup=CKEDITOR.tools.override(a.setup,function(a){return function(){a.apply(this,arguments);this.setValue(this.getValue().replace(/cke_show_border/,""))}});a.commit=CKEDITOR.tools.override(a.commit,function(a){return function(b,e){a.apply(this,arguments);parseInt(e.getAttribute("border"),
10)||e.addClass("cke_show_border")}})}}})}(),CKEDITOR.plugins.add("smiley",{requires:"dialog",init:function(a){a.config.smiley_path=a.config.smiley_path||this.path+"images/";a.addCommand("smiley",new CKEDITOR.dialogCommand("smiley",{allowedContent:"img[alt,height,!src,title,width]",requiredContent:"img"}));a.ui.addButton&&a.ui.addButton("Smiley",{label:a.lang.smiley.toolbar,command:"smiley",toolbar:"insert,50"});CKEDITOR.dialog.add("smiley",this.path+"dialogs/smiley.js")}}),CKEDITOR.config.smiley_images=
"regular_smile.png sad_smile.png wink_smile.png teeth_smile.png confused_smile.png tongue_smile.png embarrassed_smile.png omg_smile.png whatchutalkingabout_smile.png angry_smile.png angel_smile.png shades_smile.png devil_smile.png cry_smile.png lightbulb.png thumbs_down.png thumbs_up.png heart.png broken_heart.png kiss.png envelope.png".split(" "),CKEDITOR.config.smiley_descriptions="smiley;sad;wink;laugh;frown;cheeky;blush;surprise;indecision;angry;angel;cool;devil;crying;enlightened;no;yes;heart;broken heart;kiss;mail".split(";"),
function(){CKEDITOR.plugins.add("sourcearea",{init:function(e){function b(){var a=c&&this.equals(CKEDITOR.document.getActive());this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+"px");this.show();a&&this.focus()}if(e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var g=CKEDITOR.plugins.sourcearea;e.addMode("source",function(c){var g=e.ui.space("contents").getDocument().createElement("textarea");g.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?
"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",e.config.sourceAreaTabSize||4)));g.setAttribute("dir","ltr");g.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu");e.ui.space("contents").append(g);g=e.editable(new a(e,g));g.setData(e.getData(1));if(CKEDITOR.env.ie){g.attachListener(e,"resize",b,g);g.attachListener(CKEDITOR.document.getWindow(),"resize",b,g);CKEDITOR.tools.setTimeout(b,0,g)}e.fire("ariaWidget",
this);c()});e.addCommand("source",g.commands.source);e.ui.addButton&&e.ui.addButton("Source",{label:e.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});e.on("mode",function(){e.getCommand("source").setState(e.mode=="source"?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var c=CKEDITOR.env.ie&&CKEDITOR.env.version==9}}});var a=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(a){this.setValue(a);this.status="ready";this.editor.fire("dataReady")},getData:function(){return this.getValue()},
insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(a){this[(a?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){a.baseProto.detach.call(this);this.clearCustomData();this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(a){a.mode=="wysiwyg"&&a.fire("saveSnapshot");a.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);a.setMode(a.mode=="source"?"wysiwyg":
"source")},canUndo:!1}}},CKEDITOR.plugins.add("specialchar",{availableLangs:{af:1,ar:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,en:1,"en-gb":1,eo:1,es:1,et:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,nb:1,nl:1,no:1,pl:1,pt:1,"pt-br":1,ru:1,si:1,sk:1,sl:1,sq:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},requires:"dialog",init:function(a){var e=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");a.addCommand("specialchar",{exec:function(){var b=
a.langCode,b=e.availableLangs[b]?b:e.availableLangs[b.replace(/-.*/,"")]?b.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e.path+"dialogs/lang/"+b+".js"),function(){CKEDITOR.tools.extend(a.lang.specialchar,e.langEntries[b]);a.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:false});a.ui.addButton&&a.ui.addButton("SpecialChar",{label:a.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! &quot; # $ % &amp; ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; &lt; = &gt; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ &euro; &lsquo; &rsquo; &ldquo; &rdquo; &ndash; &mdash; &iexcl; &cent; &pound; &curren; &yen; &brvbar; &sect; &uml; &copy; &ordf; &laquo; &not; &reg; &macr; &deg; &sup2; &sup3; &acute; &micro; &para; &middot; &cedil; &sup1; &ordm; &raquo; &frac14; &frac12; &frac34; &iquest; &Agrave; &Aacute; &Acirc; &Atilde; &Auml; &Aring; &AElig; &Ccedil; &Egrave; &Eacute; &Ecirc; &Euml; &Igrave; &Iacute; &Icirc; &Iuml; &ETH; &Ntilde; &Ograve; &Oacute; &Ocirc; &Otilde; &Ouml; &times; &Oslash; &Ugrave; &Uacute; &Ucirc; &Uuml; &Yacute; &THORN; &szlig; &agrave; &aacute; &acirc; &atilde; &auml; &aring; &aelig; &ccedil; &egrave; &eacute; &ecirc; &euml; &igrave; &iacute; &icirc; &iuml; &eth; &ntilde; &ograve; &oacute; &ocirc; &otilde; &ouml; &divide; &oslash; &ugrave; &uacute; &ucirc; &uuml; &yacute; &thorn; &yuml; &OElig; &oelig; &#372; &#374 &#373 &#375; &sbquo; &#8219; &bdquo; &hellip; &trade; &#9658; &bull; &rarr; &rArr; &hArr; &diams; &asymp;".split(" "),
function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(a){var e=a.config,b=a.lang.stylescombo,g={},c=[],j=[];a.on("stylesSet",function(b){if(b=b.data.styles){for(var f,k,d,h=0,l=b.length;h<l;h++){f=b[h];if(!(a.blockless&&f.element in CKEDITOR.dtd.$block)){k=f.name;f=new CKEDITOR.style(f);if(!a.filter.customConfig||a.filter.check(f)){f._name=k;f._.enterMode=e.enterMode;f._.type=d=f.assignedTo||f.type;f._.weight=h+(d==CKEDITOR.STYLE_OBJECT?1:d==CKEDITOR.STYLE_BLOCK?2:3)*1E3;
g[k]=f;c.push(f);j.push(f)}}}c.sort(function(a,b){return a._.weight-b._.weight})}});a.ui.addRichCombo("Styles",{label:b.label,title:b.panelTitle,toolbar:"styles,10",allowedContent:j,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(e.contentsCss),multiSelect:true,attributes:{"aria-label":b.panelTitle}},init:function(){var a,e,g,d,h,j;h=0;for(j=c.length;h<j;h++){a=c[h];e=a._name;d=a._.type;if(d!=g){this.startGroup(b["panelTitle"+d]);g=d}this.add(e,a.type==CKEDITOR.STYLE_OBJECT?e:a.buildPreview(),
e)}this.commit()},onClick:function(b){a.focus();a.fire("saveSnapshot");var b=g[b],c=a.elementPath();a[b.checkActive(c,a)?"removeStyle":"applyStyle"](b);a.fire("saveSnapshot")},onRender:function(){a.on("selectionChange",function(b){for(var c=this.getValue(),b=b.data.path.elements,e=0,d=b.length,h;e<d;e++){h=b[e];for(var j in g)if(g[j].checkElementRemovable(h,true,a)){j!=c&&this.setValue(j);return}}this.setValue("")},this)},onOpen:function(){var c=a.getSelection().getSelectedElement(),c=a.elementPath(c),
e=[0,0,0,0];this.showAll();this.unmarkAll();for(var j in g){var d=g[j],h=d._.type;d.checkApplicable(c,a,a.activeFilter)?e[h]++:this.hideItem(j);d.checkActive(c,a)&&this.mark(j)}e[CKEDITOR.STYLE_BLOCK]||this.hideGroup(b["panelTitle"+CKEDITOR.STYLE_BLOCK]);e[CKEDITOR.STYLE_INLINE]||this.hideGroup(b["panelTitle"+CKEDITOR.STYLE_INLINE]);e[CKEDITOR.STYLE_OBJECT]||this.hideGroup(b["panelTitle"+CKEDITOR.STYLE_OBJECT])},refresh:function(){var b=a.elementPath();if(b){for(var c in g)if(g[c].checkApplicable(b,
a,a.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){g={};c=[]}})}})}(),function(){function a(a){return{editorFocus:false,canUndo:false,modes:{wysiwyg:1},exec:function(b){if(b.editable().hasFocus){var e=b.getSelection(),f;if(f=(new CKEDITOR.dom.elementPath(e.getCommonAncestor(),e.root)).contains({td:1,th:1},1)){var e=b.createRange(),g=CKEDITOR.tools.tryThese(function(){var b=f.getParent().$.cells[f.$.cellIndex+(a?-1:1)];b.parentNode.parentNode;return b},function(){var b=
f.getParent(),b=b.getAscendant("table").$.rows[b.$.rowIndex+(a?-1:1)];return b.cells[a?b.cells.length-1:0]});if(!g&&!a){for(var d=f.getAscendant("table").$,g=f.getParent().$.cells,d=new CKEDITOR.dom.element(d.insertRow(-1),b.document),h=0,l=g.length;h<l;h++)d.append((new CKEDITOR.dom.element(g[h],b.document)).clone(false,false)).appendBogus();e.moveToElementEditStart(d)}else if(g){g=new CKEDITOR.dom.element(g);e.moveToElementEditStart(g);(!e.checkStartOfBlock()||!e.checkEndOfBlock())&&e.selectNodeContents(g)}else return true;
e.select(true);return true}}return false}}}var e={editorFocus:false,modes:{wysiwyg:1,source:1}},b={exec:function(a){a.container.focusNext(true,a.tabIndex)}},g={exec:function(a){a.container.focusPrevious(true,a.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(c){for(var j=c.config.enableTabKeyTools!==false,i=c.config.tabSpaces||0,f="";i--;)f=f+" ";if(f)c.on("key",function(a){if(a.data.keyCode==9){c.insertText(f);a.cancel()}});if(j)c.on("key",function(a){(a.data.keyCode==9&&c.execCommand("selectNextCell")||
a.data.keyCode==CKEDITOR.SHIFT+9&&c.execCommand("selectPreviousCell"))&&a.cancel()});c.addCommand("blur",CKEDITOR.tools.extend(b,e));c.addCommand("blurBack",CKEDITOR.tools.extend(g,e));c.addCommand("selectNextCell",a());c.addCommand("selectPreviousCell",a(true))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(a,e){var b=e===void 0?this.getTabIndex():e,g,c,j,i,f,k;if(b<=0)for(f=this.getNextSourceNode(a,CKEDITOR.NODE_ELEMENT);f;){if(f.isVisible()&&f.getTabIndex()===0){j=f;break}f=f.getNextSourceNode(false,
CKEDITOR.NODE_ELEMENT)}else for(f=this.getDocument().getBody().getFirst();f=f.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT);){if(!g)if(!c&&f.equals(this)){c=true;if(a){if(!(f=f.getNextSourceNode(true,CKEDITOR.NODE_ELEMENT)))break;g=1}}else c&&!this.contains(f)&&(g=1);if(f.isVisible()&&!((k=f.getTabIndex())<0)){if(g&&k==b){j=f;break}if(k>b&&(!j||!i||k<i)){j=f;i=k}else if(!j&&k===0){j=f;i=k}}}j&&j.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(a,e){for(var b=e===void 0?this.getTabIndex():
e,g,c,j,i=0,f,k=this.getDocument().getBody().getLast();k=k.getPreviousSourceNode(false,CKEDITOR.NODE_ELEMENT);){if(!g)if(!c&&k.equals(this)){c=true;if(a){if(!(k=k.getPreviousSourceNode(true,CKEDITOR.NODE_ELEMENT)))break;g=1}}else c&&!this.contains(k)&&(g=1);if(k.isVisible()&&!((f=k.getTabIndex())<0))if(b<=0){if(g&&f===0){j=k;break}if(f>i){j=k;i=f}}else{if(g&&f==b){j=k;break}if(f<b&&(!j||f>i)){j=k;i=f}}}j&&j.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(a){function e(a){return CKEDITOR.tools.extend(a||
{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!a.blockless){var b=a.lang.table;a.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];"+(a.plugins.dialogadvtab?"table"+a.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle",
"table[width]: sizeToAttribute"]]}));a.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",e()));a.addCommand("tableDelete",e({exec:function(a){var b=a.elementPath().contains("table",1);if(b){var e=b.getParent(),i=a.editable();e.getChildCount()==1&&(!e.is("td","th")&&!e.equals(i))&&(b=e);a=a.createRange();a.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START);b.remove();a.select()}}}));a.ui.addButton&&a.ui.addButton("Table",{label:b.toolbar,command:"table",toolbar:"insert,30"});
CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");a.addMenuItems&&a.addMenuItems({table:{label:b.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:b.deleteTable,command:"tableDelete",group:"table",order:1}});a.on("doubleclick",function(a){if(a.data.element.is("table"))a.data.dialog="tableProperties"});a.contextMenu&&a.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),
function(){function a(a){function b(a){if(!(c.length>0)&&a.type==CKEDITOR.NODE_ELEMENT&&q.test(a.getName())&&!a.getCustomData("selected_cell")){CKEDITOR.dom.element.setMarker(d,a,"selected_cell",true);c.push(a)}}for(var a=a.getRanges(),c=[],d={},e=0;e<a.length;e++){var f=a[e];if(f.collapsed){f=f.getCommonAncestor();(f=f.getAscendant("td",true)||f.getAscendant("th",true))&&c.push(f)}else{var f=new CKEDITOR.dom.walker(f),g;for(f.guard=b;g=f.next();)if(g.type!=CKEDITOR.NODE_ELEMENT||!g.is(CKEDITOR.dtd.table))if((g=
g.getAscendant("td",true)||g.getAscendant("th",true))&&!g.getCustomData("selected_cell")){CKEDITOR.dom.element.setMarker(d,g,"selected_cell",true);c.push(g)}}}CKEDITOR.dom.element.clearAllMarkers(d);return c}function e(b,c){for(var d=a(b),e=d[0],f=e.getAscendant("table"),e=e.getDocument(),g=d[0].getParent(),h=g.$.rowIndex,d=d[d.length-1],i=d.getParent().$.rowIndex+d.$.rowSpan-1,d=new CKEDITOR.dom.element(f.$.rows[i]),h=c?h:i,g=c?g:d,d=CKEDITOR.tools.buildTableMap(f),f=d[h],h=c?d[h-1]:d[h+1],d=d[0].length,
e=e.createElement("tr"),i=0;f[i]&&i<d;i++){var j;if(f[i].rowSpan>1&&h&&f[i]==h[i]){j=f[i];j.rowSpan=j.rowSpan+1}else{j=(new CKEDITOR.dom.element(f[i])).clone();j.removeAttribute("rowSpan");j.appendBogus();e.append(j);j=j.$}i=i+(j.colSpan-1)}c?e.insertBefore(g):e.insertAfter(g)}function b(c){if(c instanceof CKEDITOR.dom.selection){for(var d=a(c),e=d[0].getAscendant("table"),f=CKEDITOR.tools.buildTableMap(e),c=d[0].getParent().$.rowIndex,d=d[d.length-1],g=d.getParent().$.rowIndex+d.$.rowSpan-1,d=[],
h=c;h<=g;h++){for(var i=f[h],j=new CKEDITOR.dom.element(e.$.rows[h]),k=0;k<i.length;k++){var l=new CKEDITOR.dom.element(i[k]),q=l.getParent().$.rowIndex;if(l.$.rowSpan==1)l.remove();else{l.$.rowSpan=l.$.rowSpan-1;if(q==h){q=f[h+1];q[k-1]?l.insertAfter(new CKEDITOR.dom.element(q[k-1])):(new CKEDITOR.dom.element(e.$.rows[h+1])).append(l,1)}}k=k+(l.$.colSpan-1)}d.push(j)}f=e.$.rows;e=new CKEDITOR.dom.element(f[g+1]||(c>0?f[c-1]:null)||e.$.parentNode);for(h=d.length;h>=0;h--)b(d[h]);return e}if(c instanceof
CKEDITOR.dom.element){e=c.getAscendant("table");e.$.rows.length==1?e.remove():c.remove()}return null}function g(a,b){for(var c=b?Infinity:0,d=0;d<a.length;d++){var e;e=a[d];for(var f=b,g=e.getParent().$.cells,h=0,i=0;i<g.length;i++){var j=g[i],h=h+(f?1:j.colSpan);if(j==e.$)break}e=h-1;if(b?e<c:e>c)c=e}return c}function c(b,c){for(var d=a(b),e=d[0].getAscendant("table"),f=g(d,1),d=g(d),f=c?f:d,h=CKEDITOR.tools.buildTableMap(e),e=[],d=[],i=h.length,j=0;j<i;j++){e.push(h[j][f]);d.push(c?h[j][f-1]:h[j][f+
1])}for(j=0;j<i;j++)if(e[j]){if(e[j].colSpan>1&&d[j]==e[j]){f=e[j];f.colSpan=f.colSpan+1}else{f=(new CKEDITOR.dom.element(e[j])).clone();f.removeAttribute("colSpan");f.appendBogus();f[c?"insertBefore":"insertAfter"].call(f,new CKEDITOR.dom.element(e[j]));f=f.$}j=j+(f.rowSpan-1)}}function j(a,b){var c=a.getStartElement();if(c=c.getAscendant("td",1)||c.getAscendant("th",1)){var d=c.clone();d.appendBogus();b?d.insertBefore(c):d.insertAfter(c)}}function i(b){if(b instanceof CKEDITOR.dom.selection){var b=
a(b),c=b[0]&&b[0].getAscendant("table"),d;a:{var e=0;d=b.length-1;for(var g={},h,j;h=b[e++];)CKEDITOR.dom.element.setMarker(g,h,"delete_cell",true);for(e=0;h=b[e++];)if((j=h.getPrevious())&&!j.getCustomData("delete_cell")||(j=h.getNext())&&!j.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(g);d=j;break a}CKEDITOR.dom.element.clearAllMarkers(g);j=b[0].getParent();if(j=j.getPrevious())d=j.getLast();else{j=b[d].getParent();d=(j=j.getNext())?j.getChild(0):null}}for(j=b.length-1;j>=
0;j--)i(b[j]);d?f(d,true):c&&c.remove()}else if(b instanceof CKEDITOR.dom.element){c=b.getParent();c.getChildCount()==1?c.remove():b.remove()}}function f(a,b){var c=a.getDocument(),d=CKEDITOR.document;if(CKEDITOR.env.ie&&CKEDITOR.env.version==10){d.focus();c.focus()}c=new CKEDITOR.dom.range(c);if(!c["moveToElementEdit"+(b?"End":"Start")](a)){c.selectNodeContents(a);c.collapse(b?false:true)}c.select(true)}function k(a,b,c){a=a[b];if(typeof c=="undefined")return a;for(b=0;a&&b<a.length;b++){if(c.is&&
a[b]==c.$)return b;if(b==c)return new CKEDITOR.dom.element(a[b])}return c.is?-1:null}function d(b,c,d){var e=a(b),f;if((c?e.length!=1:e.length<2)||(f=b.getCommonAncestor())&&f.type==CKEDITOR.NODE_ELEMENT&&f.is("table"))return false;var g,b=e[0];f=b.getAscendant("table");var h=CKEDITOR.tools.buildTableMap(f),i=h.length,j=h[0].length,l=b.getParent().$.rowIndex,q=k(h,l,b);if(c){var y;try{var z=parseInt(b.getAttribute("rowspan"),10)||1;g=parseInt(b.getAttribute("colspan"),10)||1;y=h[c=="up"?l-z:c=="down"?
l+z:l][c=="left"?q-g:c=="right"?q+g:q]}catch(B){return false}if(!y||b.$==y)return false;e[c=="up"||c=="left"?"unshift":"push"](new CKEDITOR.dom.element(y))}for(var c=b.getDocument(),A=l,z=y=0,D=!d&&new CKEDITOR.dom.documentFragment(c),C=0,c=0;c<e.length;c++){g=e[c];var F=g.getParent(),E=g.getFirst(),H=g.$.colSpan,L=g.$.rowSpan,F=F.$.rowIndex,K=k(h,F,g),C=C+H*L,z=Math.max(z,K-q+H);y=Math.max(y,F-l+L);if(!d){H=g;(L=H.getBogus())&&L.remove();H.trim();if(g.getChildren().count()){if(F!=A&&E&&(!E.isBlockBoundary||
!E.isBlockBoundary({br:1})))(A=D.getLast(CKEDITOR.dom.walker.whitespaces(true)))&&(!A.is||!A.is("br"))&&D.append("br");g.moveChildren(D)}c?g.remove():g.setHtml("")}A=F}if(d)return y*z==C;D.moveChildren(b);b.appendBogus();z>=j?b.removeAttribute("rowSpan"):b.$.rowSpan=y;y>=i?b.removeAttribute("colSpan"):b.$.colSpan=z;d=new CKEDITOR.dom.nodeList(f.$.rows);e=d.count();for(c=e-1;c>=0;c--){f=d.getItem(c);if(!f.$.cells.length){f.remove();e++}}return b}function h(b,c){var d=a(b);if(d.length>1)return false;
if(c)return true;var d=d[0],e=d.getParent(),f=e.getAscendant("table"),g=CKEDITOR.tools.buildTableMap(f),h=e.$.rowIndex,i=k(g,h,d),j=d.$.rowSpan,l;if(j>1){l=Math.ceil(j/2);for(var j=Math.floor(j/2),e=h+l,f=new CKEDITOR.dom.element(f.$.rows[e]),g=k(g,e),q,e=d.clone(),h=0;h<g.length;h++){q=g[h];if(q.parentNode==f.$&&h>i){e.insertBefore(new CKEDITOR.dom.element(q));break}else q=null}q||f.append(e)}else{j=l=1;f=e.clone();f.insertAfter(e);f.append(e=d.clone());q=k(g,h);for(i=0;i<q.length;i++)q[i].rowSpan++}e.appendBogus();
d.$.rowSpan=l;e.$.rowSpan=j;l==1&&d.removeAttribute("rowSpan");j==1&&e.removeAttribute("rowSpan");return e}function l(b,c){var d=a(b);if(d.length>1)return false;if(c)return true;var d=d[0],e=d.getParent(),f=e.getAscendant("table"),f=CKEDITOR.tools.buildTableMap(f),g=k(f,e.$.rowIndex,d),h=d.$.colSpan;if(h>1){e=Math.ceil(h/2);h=Math.floor(h/2)}else{for(var h=e=1,i=[],j=0;j<f.length;j++){var l=f[j];i.push(l[g]);l[g].rowSpan>1&&(j=j+(l[g].rowSpan-1))}for(f=0;f<i.length;f++)i[f].colSpan++}f=d.clone();
f.insertAfter(d);f.appendBogus();d.$.colSpan=e;f.$.colSpan=h;e==1&&d.removeAttribute("colSpan");h==1&&f.removeAttribute("colSpan");return f}var q=/^(?:td|th)$/;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(g){function k(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function n(a,b){var c=g.addCommand(a,b);g.addFeature(c)}var o=g.lang.table;
n("cellProperties",new CKEDITOR.dialogCommand("cellProperties",k({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",requiredContent:"table"})));CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js");n("rowDelete",k({requiredContent:"table",exec:function(a){a=a.getSelection();f(b(a))}}));n("rowInsertBefore",k({requiredContent:"table",exec:function(a){a=a.getSelection();e(a,true)}}));n("rowInsertAfter",k({requiredContent:"table",
exec:function(a){a=a.getSelection();e(a)}}));n("columnDelete",k({requiredContent:"table",exec:function(b){for(var b=b.getSelection(),b=a(b),c=b[0],d=b[b.length-1],b=c.getAscendant("table"),e=CKEDITOR.tools.buildTableMap(b),g,h,i=[],j=0,k=e.length;j<k;j++)for(var l=0,m=e[j].length;l<m;l++){e[j][l]==c.$&&(g=l);e[j][l]==d.$&&(h=l)}for(j=g;j<=h;j++)for(l=0;l<e.length;l++){d=e[l];c=new CKEDITOR.dom.element(b.$.rows[l]);d=new CKEDITOR.dom.element(d[j]);if(d.$){d.$.colSpan==1?d.remove():d.$.colSpan=d.$.colSpan-
1;l=l+(d.$.rowSpan-1);c.$.cells.length||i.push(c)}}h=b.$.rows[0]&&b.$.rows[0].cells;g=new CKEDITOR.dom.element(h[g]||(g?h[g-1]:b.$.parentNode));i.length==k&&b.remove();g&&f(g,true)}}));n("columnInsertBefore",k({requiredContent:"table",exec:function(a){a=a.getSelection();c(a,true)}}));n("columnInsertAfter",k({requiredContent:"table",exec:function(a){a=a.getSelection();c(a)}}));n("cellDelete",k({requiredContent:"table",exec:function(a){a=a.getSelection();i(a)}}));n("cellMerge",k({allowedContent:"td[colspan,rowspan]",
requiredContent:"td[colspan,rowspan]",exec:function(a){f(d(a.getSelection()),true)}}));n("cellMergeRight",k({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){f(d(a.getSelection(),"right"),true)}}));n("cellMergeDown",k({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){f(d(a.getSelection(),"down"),true)}}));n("cellVerticalSplit",k({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){f(l(a.getSelection()))}}));n("cellHorizontalSplit",
k({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){f(h(a.getSelection()))}}));n("cellInsertBefore",k({requiredContent:"table",exec:function(a){a=a.getSelection();j(a,true)}}));n("cellInsertAfter",k({requiredContent:"table",exec:function(a){a=a.getSelection();j(a)}}));g.addMenuItems&&g.addMenuItems({tablecell:{label:o.cell.menu,group:"tablecell",order:1,getItems:function(){var b=g.getSelection(),c=a(b);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,
tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:d(b,null,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:d(b,"right",true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:d(b,"down",true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:l(b,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:h(b,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:c.length>0?CKEDITOR.TRISTATE_OFF:
CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:o.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:o.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:o.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:o.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:o.cell.mergeRight,group:"tablecell",command:"cellMergeRight",
order:17},tablecell_merge_down:{label:o.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:o.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:o.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:o.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:o.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,
tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:o.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:o.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:o.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:o.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,
tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:o.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:o.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:o.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}});g.contextMenu&&g.contextMenu.addListener(function(a,b,c){return(a=c.contains({td:1,th:1},
1))&&!a.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getSelectedCells:a};CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(a){for(var a=a.$.rows,e=-1,b=[],g=0;g<a.length;g++){e++;!b[e]&&(b[e]=[]);for(var c=-1,j=0;j<a[g].cells.length;j++){var i=a[g].cells[j];for(c++;b[e][c];)c++;for(var f=isNaN(i.colSpan)?1:i.colSpan,i=isNaN(i.rowSpan)?1:i.rowSpan,k=0;k<i;k++){b[e+k]||(b[e+
k]=[]);for(var d=0;d<f;d++)b[e+k][c+d]=a[g].cells[j]}c=c+(f-1)}}return b},function(){CKEDITOR.plugins.add("templates",{requires:"dialog",init:function(a){CKEDITOR.dialog.add("templates",CKEDITOR.getUrl(this.path+"dialogs/templates.js"));a.addCommand("templates",new CKEDITOR.dialogCommand("templates"));a.ui.addButton&&a.ui.addButton("Templates",{label:a.lang.templates.button,command:"templates",toolbar:"doctools,10"})}});var a={},e={};CKEDITOR.addTemplates=function(b,e){a[b]=e};CKEDITOR.getTemplates=
function(b){return a[b]};CKEDITOR.loadTemplates=function(a,g){for(var c=[],j=0,i=a.length;j<i;j++)if(!e[a[j]]){c.push(a[j]);e[a[j]]=1}c.length?CKEDITOR.scriptLoader.load(c,g):setTimeout(g,0)}}(),CKEDITOR.config.templates_files=[CKEDITOR.getUrl("plugins/templates/templates/default.js")],CKEDITOR.config.templates_replaceContent=!0,function(){function a(a){function b(){for(var d=g(),h=CKEDITOR.tools.clone(a.config.toolbarGroups)||e(a),j=0;j<h.length;j++){var k=h[j];if(k!="/"){typeof k=="string"&&(k=
h[j]={name:k});var n,o=k.groups;if(o)for(var s=0;s<o.length;s++){n=o[s];(n=d[n])&&f(k,n)}(n=d[k.name])&&f(k,n)}}return h}function g(){var b={},d,e,f;for(d in a.ui.items){e=a.ui.items[d];f=e.toolbar||"others";f=f.split(",");e=f[0];f=parseInt(f[1]||-1,10);b[e]||(b[e]=[]);b[e].push({name:d,order:f})}for(e in b)b[e]=b[e].sort(function(a,b){return a.order==b.order?0:b.order<0?-1:a.order<0?1:a.order<b.order?-1:1});return b}function f(b,e){if(e.length){b.items?b.items.push(a.ui.create("-")):b.items=[];for(var f;f=
e.shift();){f=typeof f=="string"?f:f.name;if(!d||CKEDITOR.tools.indexOf(d,f)==-1)(f=a.ui.create(f))&&a.addFeature(f)&&b.items.push(f)}}}function k(a){var b=[],c,d,e;for(c=0;c<a.length;++c){d=a[c];e={};if(d=="/")b.push(d);else if(CKEDITOR.tools.isArray(d)){f(e,CKEDITOR.tools.clone(d));b.push(e)}else if(d.items){f(e,CKEDITOR.tools.clone(d.items));e.name=d.name;b.push(e)}}return b}var d=a.config.removeButtons,d=d&&d.split(","),h=a.config.toolbar;typeof h=="string"&&(h=a.config["toolbar_"+h]);return a.toolbar=
h?k(h):b()}function e(a){return a._.toolbarGroups||(a._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}])}var b=function(){this.toolbars=
[];this.focusCommandExecuted=false};b.prototype.focus=function(){for(var a=0,b;b=this.toolbars[a++];)for(var e=0,f;f=b.items[e++];)if(f.focus){f.focus();return}};var g={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(a){if(a.toolbox){a.toolbox.focusCommandExecuted=true;CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){a.toolbox.focus()},100):a.toolbox.focus()}}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(c){var e,i=function(a,b){var d,g=c.lang.dir=="rtl",l=c.config.toolbarGroupCycling,
q=g?37:39,g=g?39:37,l=l===void 0||l;switch(b){case 9:case CKEDITOR.SHIFT+9:for(;!d||!d.items.length;){d=b==9?(d?d.next:a.toolbar.next)||c.toolbox.toolbars[0]:(d?d.previous:a.toolbar.previous)||c.toolbox.toolbars[c.toolbox.toolbars.length-1];if(d.items.length)for(a=d.items[e?d.items.length-1:0];a&&!a.focus;)(a=e?a.previous:a.next)||(d=0)}a&&a.focus();return false;case q:d=a;do{d=d.next;!d&&l&&(d=a.toolbar.items[0])}while(d&&!d.focus);d?d.focus():i(a,9);return false;case 40:if(a.button&&a.button.hasArrow){c.once("panelShow",
function(a){a.data._.panel._.currentBlock.onKeyDown(40)});a.execute()}else i(a,b==40?q:g);return false;case g:case 38:d=a;do{d=d.previous;!d&&l&&(d=a.toolbar.items[a.toolbar.items.length-1])}while(d&&!d.focus);if(d)d.focus();else{e=1;i(a,CKEDITOR.SHIFT+9);e=0}return false;case 27:c.focus();return false;case 13:case 32:a.execute();return false}return true};c.on("uiSpace",function(e){if(e.data.space==c.config.toolbarLocation){e.removeListener();c.toolbox=new b;var g=CKEDITOR.tools.getNextId(),d=['<span id="',
g,'" class="cke_voice_label">',c.lang.toolbar.toolbars,"</span>",'<span id="'+c.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',g,'" onmousedown="return false;">'],g=c.config.toolbarStartupExpanded!==false,h,j;c.config.toolbarCanCollapse&&c.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&d.push('<span class="cke_toolbox_main"'+(g?">":' style="display:none">'));for(var q=c.toolbox.toolbars,p=a(c),m=0;m<p.length;m++){var n,o=0,s,t=p[m],w;if(t){if(h){d.push("</span>");j=h=0}if(t===
"/")d.push('<span class="cke_toolbar_break"></span>');else{w=t.items||t;for(var u=0;u<w.length;u++){var x=w[u],v;if(x)if(x.type==CKEDITOR.UI_SEPARATOR)j=h&&x;else{v=x.canGroup!==false;if(!o){n=CKEDITOR.tools.getNextId();o={id:n,items:[]};s=t.name&&(c.lang.toolbar.toolbarGroups[t.name]||t.name);d.push('<span id="',n,'" class="cke_toolbar"',s?' aria-labelledby="'+n+'_label"':"",' role="toolbar">');s&&d.push('<span id="',n,'_label" class="cke_voice_label">',s,"</span>");d.push('<span class="cke_toolbar_start"></span>');
var r=q.push(o)-1;if(r>0){o.previous=q[r-1];o.previous.next=o}}if(v){if(!h){d.push('<span class="cke_toolgroup" role="presentation">');h=1}}else if(h){d.push("</span>");h=0}n=function(a){a=a.render(c,d);r=o.items.push(a)-1;if(r>0){a.previous=o.items[r-1];a.previous.next=a}a.toolbar=o;a.onkey=i;a.onfocus=function(){c.toolbox.focusCommandExecuted||c.focus()}};if(j){n(j);j=0}n(x)}}if(h){d.push("</span>");j=h=0}o&&d.push('<span class="cke_toolbar_end"></span></span>')}}}c.config.toolbarCanCollapse&&d.push("</span>");
if(c.config.toolbarCanCollapse&&c.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var y=CKEDITOR.tools.addFunction(function(){c.execCommand("toolbarCollapse")});c.on("destroy",function(){CKEDITOR.tools.removeFunction(y)});c.addCommand("toolbarCollapse",{readOnly:1,exec:function(a){var b=a.ui.space("toolbar_collapser"),c=b.getPrevious(),d=a.ui.space("contents"),e=c.getParent(),f=parseInt(d.$.style.height,10),g=e.$.offsetHeight,h=b.hasClass("cke_toolbox_collapser_min");if(h){c.show();b.removeClass("cke_toolbox_collapser_min");
b.setAttribute("title",a.lang.toolbar.toolbarCollapse)}else{c.hide();b.addClass("cke_toolbox_collapser_min");b.setAttribute("title",a.lang.toolbar.toolbarExpand)}b.getFirst().setText(h?"▲":"◀");d.setStyle("height",f-(e.$.offsetHeight-g)+"px");a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:d.$.offsetHeight,outerWidth:a.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}});c.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse");d.push('<a title="'+
(g?c.lang.toolbar.toolbarCollapse:c.lang.toolbar.toolbarExpand)+'" id="'+c.ui.spaceId("toolbar_collapser")+'" tabIndex="-1" class="cke_toolbox_collapser');g||d.push(" cke_toolbox_collapser_min");d.push('" onclick="CKEDITOR.tools.callFunction('+y+')">','<span class="cke_arrow">&#9650;</span>',"</a>")}d.push("</span>");e.data.html=e.data.html+d.join("")}});c.on("destroy",function(){if(this.toolbox){var a,b=0,c,e,g;for(a=this.toolbox.toolbars;b<a.length;b++){e=a[b].items;for(c=0;c<e.length;c++){g=e[c];
g.clickFn&&CKEDITOR.tools.removeFunction(g.clickFn);g.keyDownFn&&CKEDITOR.tools.removeFunction(g.keyDownFn)}}}});c.on("uiReady",function(){var a=c.ui.space("toolbox");a&&c.focusManager.add(a,1)});c.addCommand("toolbarFocus",g);c.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");c.ui.add("-",CKEDITOR.UI_SEPARATOR,{});c.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(a,b){b.push('<span class="cke_toolbar_separator" role="separator"></span>');return{}}}}})}});CKEDITOR.ui.prototype.addToolbarGroup=
function(a,b,g){var f=e(this.editor),k=b===0,d={name:a};if(g){if(g=CKEDITOR.tools.search(f,function(a){return a.name==g})){!g.groups&&(g.groups=[]);if(b){b=CKEDITOR.tools.indexOf(g.groups,b);if(b>=0){g.groups.splice(b+1,0,a);return}}k?g.groups.splice(0,0,a):g.groups.push(a);return}b=null}b&&(b=CKEDITOR.tools.indexOf(f,function(a){return a.name==b}));k?f.splice(0,0,a):typeof b=="number"?f.splice(b+1,0,d):f.push(a)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top","use strict",
function(){var a=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SHIFT+90],e={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(c){function e(a){g.enabled&&a.data.command.canUndo!==false&&g.save()}function d(){g.enabled=c.readOnly?false:c.mode=="wysiwyg";g.onChange()}var g=c.undoManager=new b(c),i=g.editingHandler=new j(g),q=c.addCommand("undo",{exec:function(){if(g.undo()){c.selectionChange();this.fire("afterUndo")}},startDisabled:true,canUndo:false}),p=c.addCommand("redo",{exec:function(){if(g.redo()){c.selectionChange();
this.fire("afterRedo")}},startDisabled:true,canUndo:false});c.setKeystroke([[a[0],"undo"],[a[1],"redo"],[a[2],"redo"]]);g.onChange=function(){q.setState(g.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);p.setState(g.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};c.on("beforeCommandExec",e);c.on("afterCommandExec",e);c.on("saveSnapshot",function(a){g.save(a.data&&a.data.contentOnly)});c.on("contentDom",i.attachListeners,i);c.on("instanceReady",function(){c.fire("saveSnapshot")});
c.on("beforeModeUnload",function(){c.mode=="wysiwyg"&&g.save(true)});c.on("mode",d);c.on("readOnly",d);if(c.ui.addButton){c.ui.addButton("Undo",{label:c.lang.undo.undo,command:"undo",toolbar:"undo,10"});c.ui.addButton("Redo",{label:c.lang.undo.redo,command:"redo",toolbar:"undo,20"})}c.resetUndo=function(){g.reset();c.fire("saveSnapshot")};c.on("updateSnapshot",function(){g.currentImage&&g.update()});c.on("lockSnapshot",function(a){a=a.data;g.lock(a&&a.dontUpdate,a&&a.forceUpdate)});c.on("unlockSnapshot",
g.unlock,g)}});CKEDITOR.plugins.undo={};var b=CKEDITOR.plugins.undo.UndoManager=function(a){this.strokesRecorded=[0,0];this.locked=null;this.previousKeyGroup=-1;this.limit=a.config.undoStackSize||20;this.strokesLimit=25;this.editor=a;this.reset()};b.prototype={type:function(a,c){var d=b.getKeyGroup(a),e=this.strokesRecorded[d]+1,c=c||e>=this.strokesLimit;if(!this.typing){this.hasUndo=this.typing=true;this.hasRedo=false;this.onChange()}if(c){e=0;this.editor.fire("saveSnapshot")}else this.editor.fire("change");
this.strokesRecorded[d]=e;this.previousKeyGroup=d},keyGroupChanged:function(a){return b.getKeyGroup(a)!=this.previousKeyGroup},reset:function(){this.snapshots=[];this.index=-1;this.currentImage=null;this.hasRedo=this.hasUndo=false;this.locked=null;this.resetType()},resetType:function(){this.strokesRecorded=[0,0];this.typing=false;this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(true);this.hasRedo=!!this.getNextImage(false);this.resetType();this.onChange()},save:function(a,
b,c){var e=this.editor;if(this.locked||e.status!="ready"||e.mode!="wysiwyg")return false;var i=e.editable();if(!i||i.status!="ready")return false;i=this.snapshots;b||(b=new g(e));if(b.contents===false)return false;if(this.currentImage)if(b.equalsContent(this.currentImage)){if(a||b.equalsSelection(this.currentImage))return false}else c!==false&&e.fire("change");i.splice(this.index+1,i.length-this.index-1);i.length==this.limit&&i.shift();this.index=i.push(b)-1;this.currentImage=b;c!==false&&this.refreshState();
return true},restoreImage:function(a){var b=this.editor,c;if(a.bookmarks){b.focus();c=b.getSelection()}this.locked={level:999};this.editor.loadSnapshot(a.contents);if(a.bookmarks)c.selectBookmarks(a.bookmarks);else if(CKEDITOR.env.ie){c=this.editor.document.getBody().$.createTextRange();c.collapse(true);c.select()}this.locked=null;this.index=a.index;this.currentImage=this.snapshots[this.index];this.update();this.refreshState();b.fire("change")},getNextImage:function(a){var b=this.snapshots,c=this.currentImage,
e;if(c)if(a)for(e=this.index-1;e>=0;e--){a=b[e];if(!c.equalsContent(a)){a.index=e;return a}}else for(e=this.index+1;e<b.length;e++){a=b[e];if(!c.equalsContent(a)){a.index=e;return a}}return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(true);var a=this.getNextImage(true);if(a)return this.restoreImage(a),true}return false},redo:function(){if(this.redoable()){this.save(true);if(this.redoable()){var a=
this.getNextImage(false);if(a)return this.restoreImage(a),true}}return false},update:function(a){if(!this.locked){a||(a=new g(this.editor));for(var b=this.index,c=this.snapshots;b>0&&this.currentImage.equalsContent(c[b-1]);)b=b-1;c.splice(b,this.index-b+1,a);this.index=b;this.currentImage=a}},updateSelection:function(a){if(!this.snapshots.length)return false;var b=this.snapshots,c=b[b.length-1];if(c.equalsContent(a)&&!c.equalsSelection(a)){this.currentImage=b[b.length-1]=a;return true}return false},
lock:function(a,b){if(this.locked)this.locked.level++;else if(a)this.locked={level:1};else{var c=null;if(b)c=true;else{var e=new g(this.editor,true);this.currentImage&&this.currentImage.equalsContent(e)&&(c=e)}this.locked={update:c,level:1}}},unlock:function(){if(this.locked&&!--this.locked.level){var a=this.locked.update;this.locked=null;if(a===true)this.update();else if(a){var b=new g(this.editor,true);a.equalsContent(b)||this.update()}}}};b.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,
34:1};b.keyGroups={PRINTABLE:0,FUNCTIONAL:1};b.isNavigationKey=function(a){return!!b.navigationKeyCodes[a]};b.getKeyGroup=function(a){var c=b.keyGroups;return e[a]?c.FUNCTIONAL:c.PRINTABLE};b.getOppositeKeyGroup=function(a){var c=b.keyGroups;return a==c.FUNCTIONAL?c.PRINTABLE:c.FUNCTIONAL};b.ieFunctionalKeysBug=function(a){return CKEDITOR.env.ie&&b.getKeyGroup(a)==b.keyGroups.FUNCTIONAL};var g=CKEDITOR.plugins.undo.Image=function(a,b){this.editor=a;a.fire("beforeUndoImage");var c=a.getSnapshot();
CKEDITOR.env.ie&&c&&(c=c.replace(/\s+data-cke-expando=".*?"/g,""));this.contents=c;if(!b)this.bookmarks=(c=c&&a.getSelection())&&c.createBookmarks2(true);a.fire("afterUndoImage")},c=/\b(?:href|src|name)="[^"]*?"/gi;g.prototype={equalsContent:function(a){var b=this.contents,a=a.contents;if(CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)){b=b.replace(c,"");a=a.replace(c,"")}return b!=a?false:true},equalsSelection:function(a){var b=this.bookmarks,a=a.bookmarks;if(b||a){if(!b||!a||b.length!=
a.length)return false;for(var c=0;c<b.length;c++){var e=b[c],g=a[c];if(e.startOffset!=g.startOffset||e.endOffset!=g.endOffset||!CKEDITOR.tools.arrayCompare(e.start,g.start)||!CKEDITOR.tools.arrayCompare(e.end,g.end))return false}}return true}};var j=CKEDITOR.plugins.undo.NativeEditingHandler=function(a){this.undoManager=a;this.ignoreInputEvent=false;this.keyEventsStack=new i;this.lastKeydownImage=null};j.prototype={onKeydown:function(c){var e=c.data.getKey();if(e!==229)if(CKEDITOR.tools.indexOf(a,
c.data.getKeystroke())>-1)c.data.preventDefault();else{this.keyEventsStack.cleanUp(c);c=this.undoManager;this.keyEventsStack.getLast(e)||this.keyEventsStack.push(e);this.lastKeydownImage=new g(c.editor);if(b.isNavigationKey(e)||this.undoManager.keyGroupChanged(e))if(c.strokesRecorded[0]||c.strokesRecorded[1]){c.save(false,this.lastKeydownImage,false);c.resetType()}}},onInput:function(){if(this.ignoreInputEvent)this.ignoreInputEvent=false;else{var a=this.keyEventsStack.getLast();a||(a=this.keyEventsStack.push(0));
this.keyEventsStack.increment(a.keyCode);if(this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit){this.undoManager.type(a.keyCode,true);this.keyEventsStack.resetInputs()}}},onKeyup:function(a){var c=this.undoManager,a=a.data.getKey(),d=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(a);if(!b.ieFunctionalKeysBug(a)||!this.lastKeydownImage||!this.lastKeydownImage.equalsContent(new g(c.editor,true)))if(d>0)c.type(a);else if(b.isNavigationKey(a))this.onNavigationKey(true)},
onNavigationKey:function(a){var b=this.undoManager;(a||!b.save(true,null,false))&&b.updateSelection(new g(b.editor));b.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=true},attachListeners:function(){var a=this.undoManager.editor,c=a.editable(),d=this;c.attachListener(c,"keydown",function(a){d.onKeydown(a);if(b.ieFunctionalKeysBug(a.data.getKey()))d.onInput()},null,null,999);c.attachListener(c,CKEDITOR.env.ie?"keypress":"input",d.onInput,d,null,999);c.attachListener(c,"keyup",
d.onKeyup,d,null,999);c.attachListener(c,"paste",d.ignoreInputEventListener,d,null,999);c.attachListener(c,"drop",d.ignoreInputEventListener,d,null,999);c.attachListener(c.isInline()?c:a.document.getDocumentElement(),"click",function(){d.onNavigationKey()},null,null,999);c.attachListener(this.undoManager.editor,"blur",function(){d.keyEventsStack.remove(9)},null,null,999)}};var i=CKEDITOR.plugins.undo.KeyEventsStack=function(){this.stack=[]};i.prototype={push:function(a){return this.stack[this.stack.push({keyCode:a,
inputs:0})-1]},getLastIndex:function(a){if(typeof a!="number")return this.stack.length-1;for(var b=this.stack.length;b--;)if(this.stack[b].keyCode==a)return b;return-1},getLast:function(a){a=this.getLastIndex(a);return a!=-1?this.stack[a]:null},increment:function(a){this.getLast(a).inputs++},remove:function(a){a=this.getLastIndex(a);a!=-1&&this.stack.splice(a,1)},resetInputs:function(a){if(typeof a=="number")this.getLast(a).inputs=0;else for(a=this.stack.length;a--;)this.stack[a].inputs=0},getTotalInputs:function(){for(var a=
this.stack.length,b=0;a--;)b=b+this.stack[a].inputs;return b},cleanUp:function(a){a=a.data.$;!a.ctrlKey&&!a.metaKey&&this.remove(17);a.shiftKey||this.remove(16);a.altKey||this.remove(18)}}}(),"use strict",function(){function a(a){this.editor=a;this.loaders=[]}function e(a,e,g){var f=a.config.fileTools_defaultFileName;this.editor=a;this.lang=a.lang;if(typeof e==="string"){this.data=e;this.file=b(this.data);this.loaded=this.total=this.file.size}else{this.data=null;this.file=e;this.total=this.file.size;
this.loaded=0}if(g)this.fileName=g;else if(this.file.name)this.fileName=this.file.name;else{a=this.file.type.split("/");f&&(a[0]=f);this.fileName=a.join(".")}this.uploaded=0;this.status="created";this.abort=function(){this.changeStatus("abort")}}function b(a){var b=a.match(g)[1],a=a.replace(g,""),a=atob(a),e=[],f,k,d,h;for(f=0;f<a.length;f=f+512){k=a.slice(f,f+512);d=Array(k.length);for(h=0;h<k.length;h++)d[h]=k.charCodeAt(h);k=new Uint8Array(d);e.push(k)}return new Blob(e,{type:b})}CKEDITOR.plugins.add("filetools",
{beforeInit:function(b){b.uploadRepository=new a(b);b.on("fileUploadRequest",function(a){a=a.data.fileLoader;a.xhr.open("POST",a.uploadUrl,true)},null,null,5);b.on("fileUploadRequest",function(a){var a=a.data.fileLoader,b=new FormData;b.append("upload",a.file,a.fileName);a.xhr.send(b)},null,null,999);b.on("fileUploadResponse",function(a){var b=a.data.fileLoader,c=b.xhr,e=a.data;try{var d=JSON.parse(c.responseText);if(d.error&&d.error.message)e.message=d.error.message;if(d.uploaded){e.fileName=d.fileName;
e.url=d.url}else a.cancel()}catch(g){e.message=b.lang.filetools.responseError;window.console&&window.console.log(c.responseText);a.cancel()}},null,null,999)}});a.prototype={create:function(a,b){var g=this.loaders.length,f=new e(this.editor,a,b);f.id=g;this.loaders[g]=f;this.fire("instanceCreated",f);return f},isFinished:function(){for(var a=0;a<this.loaders.length;++a)if(!this.loaders[a].isFinished())return false;return true}};e.prototype={loadAndUpload:function(a){var b=this;this.once("loaded",function(e){e.cancel();
b.once("update",function(a){a.cancel()},null,null,0);b.upload(a)},null,null,0);this.load()},load:function(){var a=this,b=this.reader=new FileReader;a.changeStatus("loading");this.abort=function(){a.reader.abort()};b.onabort=function(){a.changeStatus("abort")};b.onerror=function(){a.message=a.lang.filetools.loadError;a.changeStatus("error")};b.onprogress=function(b){a.loaded=b.loaded;a.update()};b.onload=function(){a.loaded=a.total;a.data=b.result;a.changeStatus("loaded")};b.readAsDataURL(this.file)},
upload:function(a){if(a){this.uploadUrl=a;this.xhr=new XMLHttpRequest;this.attachRequestListeners();this.editor.fire("fileUploadRequest",{fileLoader:this})&&this.changeStatus("uploading")}else{this.message=this.lang.filetools.noUrlError;this.changeStatus("error")}},attachRequestListeners:function(){var a=this,b=this.xhr;a.abort=function(){b.abort()};b.onabort=function(){a.changeStatus("abort")};b.onerror=function(){a.message=a.lang.filetools.networkError;a.changeStatus("error")};b.onprogress=function(b){a.uploaded=
b.loaded;a.update()};b.onload=function(){a.uploaded=a.total;if(b.status<200||b.status>299){a.message=a.lang.filetools["httpError"+b.status];if(!a.message)a.message=a.lang.filetools.httpError.replace("%1",b.status);a.changeStatus("error")}else{for(var e={fileLoader:a},f=["message","fileName","url"],g=a.editor.fire("fileUploadResponse",e),d=0;d<f.length;d++){var h=f[d];typeof e[h]==="string"&&(a[h]=e[h])}g===false?a.changeStatus("error"):a.changeStatus("uploaded")}}},changeStatus:function(a){this.status=
a;if(a=="error"||a=="abort"||a=="loaded"||a=="uploaded")this.abort=function(){};this.fire(a);this.update()},update:function(){this.fire("update")},isFinished:function(){return!!this.status.match(/^(?:loaded|uploaded|error|abort)$/)}};CKEDITOR.event.implementOn(a.prototype);CKEDITOR.event.implementOn(e.prototype);var g=/^data:(\S*?);base64,/;if(!CKEDITOR.fileTools)CKEDITOR.fileTools={};CKEDITOR.tools.extend(CKEDITOR.fileTools,{uploadRepository:a,fileLoader:e,getUploadUrl:function(a,b){var e=CKEDITOR.tools.capitalize;
return b&&a[b+"UploadUrl"]?a[b+"UploadUrl"]:a.uploadUrl?a.uploadUrl:b&&a["filebrowser"+e(b,1)+"UploadUrl"]?a["filebrowser"+e(b,1)+"UploadUrl"]+"&responseType=json":a.filebrowserUploadUrl?a.filebrowserUploadUrl+"&responseType=json":null},isTypeSupported:function(a,b){return!!a.type.match(b)}})}(),"use strict",CKEDITOR.plugins.add("notification",{requires:"toolbar",init:function(a){function e(a){var e=new CKEDITOR.dom.element("div");e.setStyles({position:"fixed","margin-left":"-9999px"});e.setAttributes({"aria-live":"assertive",
"aria-atomic":"true"});e.setText(a);CKEDITOR.document.getBody().append(e);setTimeout(function(){e.remove()},100)}a._.notificationArea=new ea(a);a.showNotification=function(b,e,c){var j,i;e=="progress"?j=c:i=c;b=new CKEDITOR.plugins.notification(a,{message:b,type:e,progress:j,duration:i});b.show();return b};a.on("key",function(b){if(b.data.keyCode==27){var g=a._.notificationArea.notifications;if(g.length){e(a.lang.notification.closed);g[g.length-1].hide();b.cancel()}}})}}),ca.prototype={show:function(){if(this.editor.fire("notificationShow",
{notification:this})!==false){this.area.add(this);this._hideAfterTimeout()}},update:function(a){var e=true;this.editor.fire("notificationUpdate",{notification:this,options:a})===false&&(e=false);var b=this.element,g=b.findOne(".cke_notification_message"),c=b.findOne(".cke_notification_progress"),j=a.type;b.removeAttribute("role");a.progress&&this.type!="progress"&&(j="progress");if(j){b.removeClass(this._getClass());b.removeAttribute("aria-label");this.type=j;b.addClass(this._getClass());b.setAttribute("aria-label",
this.type);if(this.type=="progress"&&!c){c=this._createProgressElement();c.insertBefore(g)}else this.type!="progress"&&c&&c.remove()}if(a.message!==void 0){this.message=a.message;g.setHtml(this.message)}if(a.progress!==void 0){this.progress=a.progress;c&&c.setStyle("width",this._getPercentageProgress())}if(e&&a.important){b.setAttribute("role","alert");this.isVisible()||this.area.add(this)}this.duration=a.duration;this._hideAfterTimeout()},hide:function(){this.editor.fire("notificationHide",{notification:this})!==
false&&this.area.remove(this)},isVisible:function(){return CKEDITOR.tools.indexOf(this.area.notifications,this)>=0},_createElement:function(){var a=this,e,b,g=this.editor.lang.common.close;e=new CKEDITOR.dom.element("div");e.addClass("cke_notification");e.addClass(this._getClass());e.setAttributes({id:this.id,role:"alert","aria-label":this.type});this.type=="progress"&&e.append(this._createProgressElement());b=new CKEDITOR.dom.element("p");b.addClass("cke_notification_message");b.setHtml(this.message);
e.append(b);b=CKEDITOR.dom.element.createFromHtml('<a class="cke_notification_close" href="javascript:void(0)" title="'+g+'" role="button" tabindex="-1"><span class="cke_label">X</span></a>');e.append(b);b.on("click",function(){a.editor.focus();a.hide()});return e},_getClass:function(){return this.type=="progress"?"cke_notification_info":"cke_notification_"+this.type},_createProgressElement:function(){var a=new CKEDITOR.dom.element("span");a.addClass("cke_notification_progress");a.setStyle("width",
this._getPercentageProgress());return a},_getPercentageProgress:function(){return Math.round((this.progress||0)*100)+"%"},_hideAfterTimeout:function(){var a=this,e;this._hideTimeoutId&&clearTimeout(this._hideTimeoutId);if(typeof this.duration=="number")e=this.duration;else if(this.type=="info"||this.type=="success")e=typeof this.editor.config.notification_duration=="number"?this.editor.config.notification_duration:5E3;if(e)a._hideTimeoutId=setTimeout(function(){a.hide()},e)}},ea.prototype={add:function(a){this.notifications.push(a);
this.element.append(a.element);if(this.element.getChildCount()==1){CKEDITOR.document.getBody().append(this.element);this._attachListeners()}this._layout()},remove:function(a){var e=CKEDITOR.tools.indexOf(this.notifications,a);if(!(e<0)){this.notifications.splice(e,1);a.element.remove();if(!this.element.getChildCount()){this._removeListeners();this.element.remove()}}},_createElement:function(){var a=this.editor,e=a.config,b=new CKEDITOR.dom.element("div");b.addClass("cke_notifications_area");b.setAttribute("id",
"cke_notifications_area_"+a.name);b.setStyle("z-index",e.baseFloatZIndex-2);return b},_attachListeners:function(){var a=CKEDITOR.document.getWindow(),e=this.editor;a.on("scroll",this._uiBuffer.input);a.on("resize",this._uiBuffer.input);e.on("change",this._changeBuffer.input);e.on("floatingSpaceLayout",this._layout,this,null,20);e.on("blur",this._layout,this,null,20)},_removeListeners:function(){var a=CKEDITOR.document.getWindow(),e=this.editor;a.removeListener("scroll",this._uiBuffer.input);a.removeListener("resize",
this._uiBuffer.input);e.removeListener("change",this._changeBuffer.input);e.removeListener("floatingSpaceLayout",this._layout);e.removeListener("blur",this._layout)},_layout:function(){function a(){e.setStyle("left",m(n+g.width-k-d))}var e=this.element,b=this.editor,g=b.ui.contentsElement.getClientRect(),c=b.ui.contentsElement.getDocumentPosition(),b=b.ui.space("top"),j=b.getClientRect(),i=e.getClientRect(),f,k=this._notificationWidth,d=this._notificationMargin;f=CKEDITOR.document.getWindow();var h=
f.getScrollPosition(),l=f.getViewPaneSize(),q=CKEDITOR.document.getBody(),p=q.getDocumentPosition(),m=CKEDITOR.tools.cssLength;if(!k||!d){f=this.element.getChild(0);k=this._notificationWidth=f.getClientRect().width;d=this._notificationMargin=parseInt(f.getComputedStyle("margin-left"),10)+parseInt(f.getComputedStyle("margin-right"),10)}b.isVisible()&&j.bottom>g.top&&j.bottom<g.bottom-i.height?e.setStyles({position:"fixed",top:m(j.bottom)}):g.top>0?e.setStyles({position:"absolute",top:m(c.y)}):c.y+
g.height-i.height>h.y?e.setStyles({position:"fixed",top:0}):e.setStyles({position:"absolute",top:m(c.y+g.height-i.height)});var n=e.getStyle("position")=="fixed"?g.left:q.getComputedStyle("position")!="static"?c.x-p.x:c.x;g.width<k+d?c.x+k+d>h.x+l.width?a():e.setStyle("left",m(n)):c.x+k+d>h.x+l.width?e.setStyle("left",m(n)):c.x+g.width/2+k/2+d>h.x+l.width?e.setStyle("left",m(n-c.x+h.x+l.width-k-d)):g.left+g.width-k-d<0?a():g.left+g.width/2-k/2<0?e.setStyle("left",m(n-c.x+h.x)):e.setStyle("left",m(n+
g.width/2-k/2-d/2))}},CKEDITOR.plugins.notification=ca,function(){function a(a,e,c){this.editor=a;this.notification=null;this._message=new CKEDITOR.template(e);this._singularMessage=c?new CKEDITOR.template(c):null;this._tasks=[];this._doneTasks=this._doneWeights=this._totalWeights=0}function e(a){this._weight=a||1;this._doneWeight=0;this._isCanceled=false}CKEDITOR.plugins.add("notificationaggregator",{requires:"notification"});a.prototype={createTask:function(a){var a=a||{},e=!this.notification,c;
if(e)this.notification=this._createNotification();c=this._addTask(a);c.on("updated",this._onTaskUpdate,this);c.on("done",this._onTaskDone,this);c.on("canceled",function(){this._removeTask(c)},this);this.update();e&&this.notification.show();return c},update:function(){this._updateNotification();this.isFinished()&&this.fire("finished")},getPercentage:function(){return this.getTaskCount()===0?1:this._doneWeights/this._totalWeights},isFinished:function(){return this.getDoneTaskCount()===this.getTaskCount()},
getTaskCount:function(){return this._tasks.length},getDoneTaskCount:function(){return this._doneTasks},_updateNotification:function(){this.notification.update({message:this._getNotificationMessage(),progress:this.getPercentage()})},_getNotificationMessage:function(){var a=this.getTaskCount(),e={current:this.getDoneTaskCount(),max:a,percentage:Math.round(this.getPercentage()*100)};return(a==1&&this._singularMessage?this._singularMessage:this._message).output(e)},_createNotification:function(){return new CKEDITOR.plugins.notification(this.editor,
{type:"progress"})},_addTask:function(a){a=new e(a.weight);this._tasks.push(a);this._totalWeights=this._totalWeights+a._weight;return a},_removeTask:function(a){var e=CKEDITOR.tools.indexOf(this._tasks,a);if(e!==-1){if(a._doneWeight)this._doneWeights=this._doneWeights-a._doneWeight;this._totalWeights=this._totalWeights-a._weight;this._tasks.splice(e,1);this.update()}},_onTaskUpdate:function(a){this._doneWeights=this._doneWeights+a.data;this.update()},_onTaskDone:function(){this._doneTasks=this._doneTasks+
1;this.update()}};CKEDITOR.event.implementOn(a.prototype);e.prototype={done:function(){this.update(this._weight)},update:function(a){if(!this.isDone()&&!this.isCanceled()){var a=Math.min(this._weight,a),e=a-this._doneWeight;this._doneWeight=a;this.fire("updated",e);this.isDone()&&this.fire("done")}},cancel:function(){if(!this.isDone()&&!this.isCanceled()){this._isCanceled=true;this.fire("canceled")}},isDone:function(){return this._weight===this._doneWeight},isCanceled:function(){return this._isCanceled}};
CKEDITOR.event.implementOn(e.prototype);CKEDITOR.plugins.notificationAggregator=a;CKEDITOR.plugins.notificationAggregator.task=e}(),"use strict",function(){CKEDITOR.plugins.add("uploadwidget",{requires:"widget,clipboard,filetools,notificationaggregator",init:function(a){a.filter.allow("*[!data-widget,!data-cke-upload-id]")}});if(!CKEDITOR.fileTools)CKEDITOR.fileTools={};CKEDITOR.tools.extend(CKEDITOR.fileTools,{addUploadWidget:function(a,e,b){var g=CKEDITOR.fileTools,c=a.uploadRepository,j=b.supportedTypes?
10:20;if(b.fileToElement)a.on("paste",function(i){var i=i.data,f=i.dataTransfer,j=f.getFilesCount(),d=b.loadMethod||"loadAndUpload",h,l;if(!i.dataValue&&j)for(l=0;l<j;l++){h=f.getFile(l);if(!b.supportedTypes||g.isTypeSupported(h,b.supportedTypes)){var q=b.fileToElement(h);h=c.create(h);if(q){h[d](b.uploadUrl);CKEDITOR.fileTools.markElement(q,e,h.id);(d=="loadAndUpload"||d=="upload")&&CKEDITOR.fileTools.bindNotifications(a,h);i.dataValue=i.dataValue+q.getOuterHtml()}}}},null,null,j);CKEDITOR.tools.extend(b,
{downcast:function(){return new CKEDITOR.htmlParser.text("")},init:function(){var b=this,e=this.wrapper.findOne("[data-cke-upload-id]").data("cke-upload-id"),g=c.loaders[e],d=CKEDITOR.tools.capitalize,h,j;g.on("update",function(c){if(!b.wrapper||!b.wrapper.getParent()){a.editable().find('[data-cke-upload-id="'+e+'"]').count()||g.abort();c.removeListener()}else{a.fire("lockSnapshot");c="on"+d(g.status);if(!(typeof b[c]==="function"&&b[c](g)===false)){j="cke_upload_"+g.status;if(b.wrapper&&j!=h){h&&
b.wrapper.removeClass(h);b.wrapper.addClass(j);h=j}(g.status=="error"||g.status=="abort")&&a.widgets.del(b)}a.fire("unlockSnapshot")}});g.update()},replaceWith:function(b,c){if(b.trim()==="")a.widgets.del(this);else{var e=this==a.widgets.focused,d=a.editable(),g=a.createRange(),j,q;e||(q=a.getSelection().createBookmarks());g.setStartBefore(this.wrapper);g.setEndAfter(this.wrapper);e&&(j=g.createBookmark());d.insertHtmlIntoRange(b,g,c);a.widgets.checkWidgets({initOnlyNew:true});a.widgets.destroy(this,
true);if(e){g.moveToBookmark(j);g.select()}else a.getSelection().selectBookmarks(q)}}});a.widgets.add(e,b)},markElement:function(a,e,b){a.setAttributes({"data-cke-upload-id":b,"data-widget":e})},bindNotifications:function(a,e){var b=a._.uploadWidgetNotificaionAggregator;if(!b||b.isFinished()){b=a._.uploadWidgetNotificaionAggregator=new CKEDITOR.plugins.notificationAggregator(a,a.lang.uploadwidget.uploadMany,a.lang.uploadwidget.uploadOne);b.once("finished",function(){var c=b.getTaskCount();c===0?b.notification.hide():
b.notification.update({message:c==1?a.lang.uploadwidget.doneOne:a.lang.uploadwidget.doneMany.replace("%1",c),type:"success",important:1})})}var g=b.createTask({weight:e.total});e.on("update",function(){g&&e.status=="uploading"&&g.update(e.uploaded)});e.on("uploaded",function(){g&&g.done()});e.on("error",function(){g&&g.cancel();a.showNotification(e.message,"warning")});e.on("abort",function(){g&&g.cancel();a.showNotification(a.lang.uploadwidget.abort,"info")})}})}(),"use strict",function(){CKEDITOR.plugins.add("uploadimage",
{requires:"uploadwidget",onLoad:function(){CKEDITOR.addCss(".cke_upload_uploading img{opacity: 0.3}")},init:function(e){if(CKEDITOR.plugins.clipboard.isFileApiSupported){var b=CKEDITOR.fileTools,g=b.getUploadUrl(e.config,"image");if(g){b.addUploadWidget(e,"uploadimage",{supportedTypes:/image\/(jpeg|png|gif|bmp)/,uploadUrl:g,fileToElement:function(){var b=new CKEDITOR.dom.element("img");b.setAttribute("src",a);return b},parts:{img:"img"},onUploading:function(a){this.parts.img.setAttribute("src",a.data)},
onUploaded:function(a){this.replaceWith('<img src="'+a.url+'" width="'+this.parts.img.$.naturalWidth+'" height="'+this.parts.img.$.naturalHeight+'">')}});e.on("paste",function(a){if(a.data.dataValue.match(/<img[\s\S]+data:/i)){var a=a.data,j=document.implementation.createHTMLDocument(""),j=new CKEDITOR.dom.element(j.body),i,f,k;j.data("cke-editable",1);j.appendHtml(a.dataValue);i=j.find("img");for(k=0;k<i.count();k++){f=i.getItem(k);var d=f.getAttribute("src")&&f.getAttribute("src").substring(0,5)==
"data:",h=f.data("cke-realelement")===null;if(d&&h&&!f.data("cke-upload-id")&&!f.isReadOnly(1)){d=e.uploadRepository.create(f.getAttribute("src"));d.upload(g);b.markElement(f,"uploadimage",d.id);b.bindNotifications(e,d)}}a.dataValue=j.getHtml()}})}else window.console&&window.console.log("Error: Upload URL for the Upload Image feature was not defined. For more information see: http://docs.ckeditor.com/#!/guide/dev_file_upload")}}});var a="data:image/gif;base64,R0lGODlhDgAOAIAAAAAAAP///yH5BAAAAAAALAAAAAAOAA4AAAIMhI+py+0Po5y02qsKADs="}(),
function(){function a(a){var b=this.editor,g=a.document,f=g.body,k=g.getElementById("cke_actscrpt");k&&k.parentNode.removeChild(k);(k=g.getElementById("cke_shimscrpt"))&&k.parentNode.removeChild(k);(k=g.getElementById("cke_basetagscrpt"))&&k.parentNode.removeChild(k);f.contentEditable=true;if(CKEDITOR.env.ie){f.hideFocus=true;f.disabled=true;f.removeAttribute("disabled")}delete this._.isLoadingData;this.$=f;g=new CKEDITOR.dom.document(g);this.setup();this.fixInitialSelection();if(CKEDITOR.env.ie){g.getDocumentElement().addClass(g.$.compatMode);
b.config.enterMode!=CKEDITOR.ENTER_P&&this.attachListener(g,"selectionchange",function(){var a=g.getBody(),c=b.getSelection(),d=c&&c.getRanges()[0];d&&(a.getHtml().match(/^<p>(?:&nbsp;|<br>)<\/p>$/i)&&d.startContainer.equals(a))&&setTimeout(function(){d=b.getSelection().getRanges()[0];if(!d.startContainer.equals("body")){a.getFirst().remove(1);d.moveToElementEditEnd(a);d.select()}},0)})}if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&CKEDITOR.env.version>10)g.getDocumentElement().on("mousedown",function(a){a.data.getTarget().is("html")&&
setTimeout(function(){b.editable().focus()})});e(b);try{b.document.$.execCommand("2D-position",false,true)}catch(d){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&b.document.$.compatMode=="CSS1Compat")&&this.attachListener(this,"keydown",function(a){var c=a.data.getKeystroke();if(c==33||c==34)if(CKEDITOR.env.ie)setTimeout(function(){b.getSelection().scrollIntoView()},0);else if(b.window.$.innerHeight>this.$.offsetHeight){var d=b.createRange();d[c==33?"moveToElementEditStart":"moveToElementEditEnd"](this);
d.select();a.data.preventDefault()}});CKEDITOR.env.ie&&this.attachListener(g,"blur",function(){try{g.$.selection.empty()}catch(a){}});CKEDITOR.env.iOS&&this.attachListener(g,"touchend",function(){a.focus()});f=b.document.getElementsByTag("title").getItem(0);f.data("cke-title",f.getText());if(CKEDITOR.env.ie)b.document.$.title=this._.docTitle;CKEDITOR.tools.setTimeout(function(){if(this.status=="unloaded")this.status="ready";b.fire("contentDom");if(this._.isPendingFocus){b.focus();this._.isPendingFocus=
false}setTimeout(function(){b.fire("dataReady")},0)},0,this)}function e(a){function b(){var d;a.editable().attachListener(a,"selectionChange",function(){var b=a.getSelection().getSelectedElement();if(b){if(d){d.detachEvent("onresizestart",e);d=null}b.$.attachEvent("onresizestart",e);d=b.$}})}function e(a){a.returnValue=false}if(CKEDITOR.env.gecko)try{var f=a.document.$;f.execCommand("enableObjectResizing",false,!a.config.disableObjectResizing);f.execCommand("enableInlineTableEditing",false,!a.config.disableNativeTableHandles)}catch(g){}else CKEDITOR.env.ie&&
(CKEDITOR.env.version<11&&a.config.disableObjectResizing)&&b(a)}function b(){var a=[];if(CKEDITOR.document.$.documentMode>=8){a.push("html.CSS1Compat [contenteditable=false]{min-height:0 !important}");var b=[],e;for(e in CKEDITOR.dtd.$removeEmpty)b.push("html.CSS1Compat "+e+"[contenteditable=false]");a.push(b.join(",")+"{display:inline-block}")}else if(CKEDITOR.env.gecko){a.push("html{height:100% !important}");a.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")}a.push("html{cursor:text;*cursor:auto}");
a.push("img,input,textarea{cursor:default}");return a.join("\n")}CKEDITOR.plugins.add("wysiwygarea",{init:function(a){a.config.fullPage&&a.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"});a.addMode("wysiwyg",function(b){function e(d){d&&d.removeListener();a.editable(new g(a,k.$.contentWindow.document.body));a.setData(a.getData(1),b)}var f="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",
f=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(f)+"}())":"",k=CKEDITOR.dom.element.createFromHtml('<iframe src="'+f+'" frameBorder="0"></iframe>');k.setStyles({width:"100%",height:"100%"});k.addClass("cke_wysiwyg_frame").addClass("cke_reset");f=a.ui.space("contents");f.append(k);var d=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;if(d)k.on("load",e);var h=a.title,l=a.fire("ariaEditorHelpLabel",{}).label;if(h){CKEDITOR.env.ie&&
l&&(h=h+(", "+l));k.setAttribute("title",h)}if(l){var h=CKEDITOR.tools.getNextId(),q=CKEDITOR.dom.element.createFromHtml('<span id="'+h+'" class="cke_voice_label">'+l+"</span>");f.append(q,1);k.setAttribute("aria-describedby",h)}a.on("beforeModeUnload",function(a){a.removeListener();q&&q.remove()});k.setAttributes({tabIndex:a.tabIndex,allowTransparency:"true"});!d&&e();a.fire("ariaWidget",k)})}});CKEDITOR.editor.prototype.addContentsCss=function(a){var b=this.config,e=b.contentsCss;if(!CKEDITOR.tools.isArray(e))b.contentsCss=
e?[e]:[];b.contentsCss.push(a)};var g=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(b){CKEDITOR.tools.setTimeout(a,0,this,b)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(a,e){var g=this.editor;if(e){this.setHtml(a);this.fixInitialSelection();g.fire("dataReady")}else{this._.isLoadingData=true;g._.dataStore={id:1};var f=g.config,k=f.fullPage,
d=f.docType,h=CKEDITOR.tools.buildStyleHtml(b()).replace(/<style>/,'<style data-cke-temp="1">');k||(h=h+CKEDITOR.tools.buildStyleHtml(g.config.contentsCss));var l=f.baseHref?'<base href="'+f.baseHref+'" data-cke-temp="1" />':"";k&&(a=a.replace(/<!DOCTYPE[^>]*>/i,function(a){g.docType=d=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){g.xmlDeclaration=a;return""}));a=g.dataProcessor.toHtml(a);if(k){/<body[\s|>]/.test(a)||(a="<body>"+a);/<html[\s|>]/.test(a)||(a="<html>"+a+"</html>");/<head[\s|>]/.test(a)?
/<title[\s|>]/.test(a)||(a=a.replace(/<head[^>]*>/,"$&<title></title>")):a=a.replace(/<html[^>]*>/,"$&<head><title></title></head>");l&&(a=a.replace(/<head[^>]*?>/,"$&"+l));a=a.replace(/<\/head\s*>/,h+"$&");a=d+a}else a=f.docType+'<html dir="'+f.contentsLangDirection+'" lang="'+(f.contentsLanguage||g.langCode)+'"><head><title>'+this._.docTitle+"</title>"+l+h+"</head><body"+(f.bodyId?' id="'+f.bodyId+'"':"")+(f.bodyClass?' class="'+f.bodyClass+'"':"")+">"+a+"</body></html>";if(CKEDITOR.env.gecko){a=
a.replace(/<body/,'<body contenteditable="true" ');CKEDITOR.env.version<2E4&&(a=a.replace(/<body[^>]*>/,"$&<\!-- cke-content-start --\>"))}f='<script id="cke_actscrpt" type="text/javascript"'+(CKEDITOR.env.ie?' defer="defer" ':"")+">var wasLoaded=0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+this._.frameLoadedHandler+",window);wasLoaded=1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"<\/script>";CKEDITOR.env.ie&&
CKEDITOR.env.version<9&&(f=f+'<script id="cke_shimscrpt">window.parent.CKEDITOR.tools.enableHtml5Elements(document)<\/script>');l&&(CKEDITOR.env.ie&&CKEDITOR.env.version<10)&&(f=f+'<script id="cke_basetagscrpt">var baseTag = document.querySelector( "base" );baseTag.href = baseTag.href;<\/script>');a=a.replace(/(?=\s*<\/(:?head)>)/,f);this.clearCustomData();this.clearListeners();g.fire("contentDomUnload");var q=this.getDocument();try{q.write(a)}catch(p){setTimeout(function(){q.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();
var a=this.editor,b=a.config,e=b.fullPage,f=e&&a.docType,g=e&&a.xmlDeclaration,d=this.getDocument(),e=e?d.getDocumentElement().getOuterHtml():d.getBody().getHtml();CKEDITOR.env.gecko&&b.enterMode!=CKEDITOR.ENTER_BR&&(e=e.replace(/<br>(?=\s*(:?$|<\/body>))/,""));e=a.dataProcessor.toDataFormat(e);g&&(e=g+"\n"+e);f&&(e=f+"\n"+e);return e},focus:function(){this._.isLoadingData?this._.isPendingFocus=true:g.baseProto.focus.call(this)},detach:function(){var a=this.editor,b=a.document,a=a.window.getFrame();
g.baseProto.detach.call(this);this.clearCustomData();b.getDocumentElement().clearCustomData();a.clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);(b=a.removeCustomData("onResize"))&&b.removeListener();a.remove()}}})}(),CKEDITOR.config.disableObjectResizing=!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,CKEDITOR.config.contentsCss=CKEDITOR.getUrl("contents.css"),CKEDITOR.config.plugins="dialogui,dialog,a11yhelp,about,basicstyles,bidi,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,menu,contextmenu,dialogadvtab,div,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,format,forms,horizontalrule,htmlwriter,iframe,lineutils,widget,image2,indent,indentlist,indentblock,justify,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastefromword,pastetext,preview,print,removeformat,resize,save,selectall,showblocks,showborders,smiley,sourcearea,specialchar,stylescombo,tab,table,tabletools,templates,toolbar,undo,filetools,notification,notificationaggregator,uploadwidget,uploadimage,wysiwygarea",
CKEDITOR.config.skin="moono",function(){var a=function(a,b){for(var g=CKEDITOR.getUrl("plugins/"+b),a=a.split(","),c=0;c<a.length;c++)CKEDITOR.skin.icons[a[c]]={path:g,offset:-a[++c],bgsize:a[++c]}};CKEDITOR.env.hidpi?a("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,bidiltr,168,,bidirtl,192,,blockquote,216,,copy-rtl,240,,copy,264,,cut-rtl,288,,cut,312,,paste-rtl,336,,paste,360,,codesnippet,384,,bgcolor,408,,textcolor,432,,creatediv,456,,docprops-rtl,480,,docprops,504,,embed,528,,embedsemantic,552,,find-rtl,576,,find,600,,replace,624,,flash,648,,button,672,,checkbox,696,,form,720,,hiddenfield,744,,imagebutton,768,,radio,792,,select-rtl,816,,select,840,,textarea-rtl,864,,textarea,888,,textfield-rtl,912,,textfield,936,,horizontalrule,960,,iframe,984,,image,1008,,indent-rtl,1032,,indent,1056,,outdent-rtl,1080,,outdent,1104,,justifyblock,1128,,justifycenter,1152,,justifyleft,1176,,justifyright,1200,,language,1224,,anchor-rtl,1248,,anchor,1272,,link,1296,,unlink,1320,,bulletedlist-rtl,1344,,bulletedlist,1368,,numberedlist-rtl,1392,,numberedlist,1416,,mathjax,1440,,maximize,1464,,newpage-rtl,1488,,newpage,1512,,pagebreak-rtl,1536,,pagebreak,1560,,pastefromword-rtl,1584,,pastefromword,1608,,pastetext-rtl,1632,,pastetext,1656,,placeholder,1680,,preview-rtl,1704,,preview,1728,,print,1752,,removeformat,1776,,save,1800,,selectall,1824,,showblocks-rtl,1848,,showblocks,1872,,smiley,1896,,source-rtl,1920,,source,1944,,sourcedialog-rtl,1968,,sourcedialog,1992,,specialchar,2016,,table,2040,,templates-rtl,2064,,templates,2088,,uicolor,2112,,redo-rtl,2136,,redo,2160,,undo-rtl,2184,,undo,2208,,simplebox,4464,auto",
"icons_hidpi.png"):a("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,bidiltr,168,auto,bidirtl,192,auto,blockquote,216,auto,copy-rtl,240,auto,copy,264,auto,cut-rtl,288,auto,cut,312,auto,paste-rtl,336,auto,paste,360,auto,codesnippet,384,auto,bgcolor,408,auto,textcolor,432,auto,creatediv,456,auto,docprops-rtl,480,auto,docprops,504,auto,embed,528,auto,embedsemantic,552,auto,find-rtl,576,auto,find,600,auto,replace,624,auto,flash,648,auto,button,672,auto,checkbox,696,auto,form,720,auto,hiddenfield,744,auto,imagebutton,768,auto,radio,792,auto,select-rtl,816,auto,select,840,auto,textarea-rtl,864,auto,textarea,888,auto,textfield-rtl,912,auto,textfield,936,auto,horizontalrule,960,auto,iframe,984,auto,image,1008,auto,indent-rtl,1032,auto,indent,1056,auto,outdent-rtl,1080,auto,outdent,1104,auto,justifyblock,1128,auto,justifycenter,1152,auto,justifyleft,1176,auto,justifyright,1200,auto,language,1224,auto,anchor-rtl,1248,auto,anchor,1272,auto,link,1296,auto,unlink,1320,auto,bulletedlist-rtl,1344,auto,bulletedlist,1368,auto,numberedlist-rtl,1392,auto,numberedlist,1416,auto,mathjax,1440,auto,maximize,1464,auto,newpage-rtl,1488,auto,newpage,1512,auto,pagebreak-rtl,1536,auto,pagebreak,1560,auto,pastefromword-rtl,1584,auto,pastefromword,1608,auto,pastetext-rtl,1632,auto,pastetext,1656,auto,placeholder,1680,auto,preview-rtl,1704,auto,preview,1728,auto,print,1752,auto,removeformat,1776,auto,save,1800,auto,selectall,1824,auto,showblocks-rtl,1848,auto,showblocks,1872,auto,smiley,1896,auto,source-rtl,1920,auto,source,1944,auto,sourcedialog-rtl,1968,auto,sourcedialog,1992,auto,specialchar,2016,auto,table,2040,auto,templates-rtl,2064,auto,templates,2088,auto,uicolor,2112,auto,redo-rtl,2136,auto,redo,2160,auto,undo-rtl,2184,auto,undo,2208,auto,simplebox,2232,auto",
"icons.png")}()})();