/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function(){if(!window.CKEDITOR||!window.CKEDITOR.dom)window.CKEDITOR||(window.CKEDITOR=function(){var b={timestamp:"D72B",version:"4.2 DEV",revision:"0",rnd:Math.floor(900*Math.random())+100,_:{pending:[]},status:"unloaded",basePath:function(){var c=window.CKEDITOR_BASEPATH||"";if(!c)for(var a=document.getElementsByTagName("script"),b=0;b<a.length;b++){var h=a[b].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(h){c=h[1];break}}-1==c.indexOf(":/")&&(c=0===c.indexOf("/")?
location.href.match(/^.*?:\/\/[^\/]*/)[0]+c:location.href.match(/^[^\?]*\/(?:)/)[0]+c);if(!c)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return c}(),getUrl:function(c){-1==c.indexOf(":/")&&0!==c.indexOf("/")&&(c=this.basePath+c);this.timestamp&&("/"!=c.charAt(c.length-1)&&!/[&?]t=/.test(c))&&(c+=(0<=c.indexOf("?")?"&":"?")+"t="+this.timestamp);return c},domReady:function(){function c(){try{document.addEventListener?
(document.removeEventListener("DOMContentLoaded",c,!1),a()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",c),a())}catch(b){}}function a(){for(var c;c=b.shift();)c()}var b=[];return function(a){b.push(a);"complete"===document.readyState&&setTimeout(c,1);if(1==b.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",c,!1),window.addEventListener("load",c,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",
c);window.attachEvent("onload",c);a=!1;try{a=!window.frameElement}catch(f){}if(document.documentElement.doScroll&&a){var g=function(){try{document.documentElement.doScroll("left")}catch(a){setTimeout(g,1);return}c()};g()}}}}()},d=window.CKEDITOR_GETURL;if(d){var a=b.getUrl;b.getUrl=function(c){return d.call(b,c)||a.call(b,c)}}return b}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(b){var d=CKEDITOR.event.prototype,a;for(a in d)b[a]==void 0&&(b[a]=d[a])},CKEDITOR.event.prototype=
function(){function b(c){var b=d(this);return b[c]||(b[c]=new a(c))}var d=function(c){c=c.getPrivate&&c.getPrivate()||c._||(c._={});return c.events||(c.events={})},a=function(c){this.name=c;this.listeners=[]};a.prototype={getListenerIndex:function(c){for(var a=0,b=this.listeners;a<b.length;a++)if(b[a].fn==c)return a;return-1}};return{define:function(c,a){var e=b.call(this,c);CKEDITOR.tools.extend(e,a,true)},on:function(c,a,e,h,d){function g(b,k,l,g){b={name:c,sender:this,editor:b,data:k,listenerData:h,
stop:l,cancel:g,removeListener:j};return a.call(e,b)===false?false:b.data}function j(){n.removeListener(c,a)}var l=b.call(this,c);if(l.getListenerIndex(a)<0){l=l.listeners;e||(e=this);isNaN(d)&&(d=10);var n=this;g.fn=a;g.priority=d;for(var o=l.length-1;o>=0;o--)if(l[o].priority<=d){l.splice(o+1,0,g);return{removeListener:j}}l.unshift(g)}return{removeListener:j}},once:function(){var c=arguments[1];arguments[1]=function(a){a.removeListener();return c.apply(this,arguments)};return this.on.apply(this,
arguments)},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},e=0,h=function(){e=1};return function(i,g,j){var l=d(this)[i],i=a,n=e;a=e=0;if(l){var o=l.listeners;if(o.length)for(var o=o.slice(0),m,k=0;k<o.length;k++){if(l.errorProof)try{m=o[k].call(this,j,g,b,h)}catch(p){}else m=o[k].call(this,j,g,b,h);m===false?e=1:typeof m!="undefined"&&(g=m);if(a||e)break}}g=e?false:typeof g=="undefined"?
true:g;a=i;e=n;return g}}(),fireOnce:function(a,b,e){b=this.fire(a,b,e);delete d(this)[a];return b},removeListener:function(a,b){var e=d(this)[a];if(e){var h=e.getListenerIndex(b);h>=0&&e.listeners.splice(h,1)}},removeAllListeners:function(){var a=d(this),b;for(b in a)delete a[b]},hasListeners:function(a){return(a=d(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(b,d){b in{instanceReady:1,loaded:1}&&(this[b]=true);return CKEDITOR.event.prototype.fire.call(this,b,d,this)},CKEDITOR.editor.prototype.fireOnce=function(b,d){b in{instanceReady:1,loaded:1}&&(this[b]=true);return CKEDITOR.event.prototype.fireOnce.call(this,b,d,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var b=navigator.userAgent.toLowerCase(),d=window.opera,a={ie:eval("/*@cc_on!@*/false"),opera:!!d&&d.version,webkit:b.indexOf(" applewebkit/")>
-1,air:b.indexOf(" adobeair/")>-1,mac:b.indexOf("macintosh")>-1,quirks:document.compatMode=="BackCompat",mobile:b.indexOf("mobile")>-1,iOS:/(ipad|iphone|ipod)/.test(b),isCustomDomain:function(){if(!this.ie)return false;var a=document.domain,c=window.location.hostname;return a!=c&&a!="["+c+"]"},secure:location.protocol=="https:"};a.gecko=navigator.product=="Gecko"&&!a.webkit&&!a.opera;if(a.webkit)b.indexOf("chrome")>-1?a.chrome=true:a.safari=true;var c=0;if(a.ie){c=a.quirks||!document.documentMode?
parseFloat(b.match(/msie (\d+)/)[1]):document.documentMode;a.ie9Compat=c==9;a.ie8Compat=c==8;a.ie7Compat=c==7;a.ie6Compat=c<7||a.quirks}if(a.gecko){var f=b.match(/rv:([\d\.]+)/);if(f){f=f[1].split(".");c=f[0]*1E4+(f[1]||0)*100+(f[2]||0)*1}}a.opera&&(c=parseFloat(d.version()));a.air&&(c=parseFloat(b.match(/ adobeair\/(\d+)/)[1]));a.webkit&&(c=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]));a.version=c;a.isCompatible=a.iOS&&c>=534||!a.mobile&&(a.ie&&c>6||a.gecko&&c>=10801||a.opera&&c>=9.5||a.air&&c>=
1||a.webkit&&c>=522||false);a.hidpi=window.devicePixelRatio>=2;a.cssClass="cke_browser_"+(a.ie?"ie":a.gecko?"gecko":a.opera?"opera":a.webkit?"webkit":"unknown");if(a.quirks)a.cssClass=a.cssClass+" cke_browser_quirks";if(a.ie){a.cssClass=a.cssClass+(" cke_browser_ie"+(a.quirks||a.version<7?"6":a.version));if(a.quirks)a.cssClass=a.cssClass+" cke_browser_iequirks"}if(a.gecko)if(c<10900)a.cssClass=a.cssClass+" cke_browser_gecko18";else if(c<=11E3)a.cssClass=a.cssClass+" cke_browser_gecko19";if(a.air)a.cssClass=
a.cssClass+" cke_browser_air";if(a.iOS)a.cssClass=a.cssClass+" cke_browser_ios";if(a.hidpi)a.cssClass=a.cssClass+" cke_hidpi";return a}()),"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 b=document.createElement("script");b.type="text/javascript";b.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(b)}};
CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(b){(this._.pending||(this._.pending=[])).push(b)};(function(){CKEDITOR.domReady(function(){var b=CKEDITOR.loadFullCore,d=CKEDITOR.loadFullCoreTimeout;if(b){CKEDITOR.status="basic_ready";b&&b._load?b():d&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},d*1E3)}})})();CKEDITOR.status="basic_loaded"}(),CKEDITOR.dom={},function(){var b=[],d=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.opera?"-o-":CKEDITOR.env.ie?
"-ms-":"";CKEDITOR.on("reset",function(){b=[]});CKEDITOR.tools={arrayCompare:function(a,c){if(!a&&!c)return true;if(!a||!c||a.length!=c.length)return false;for(var b=0;b<a.length;b++)if(a[b]!=c[b])return false;return true},clone:function(a){var c;if(a&&a instanceof Array){c=[];for(var b=0;b<a.length;b++)c[b]=CKEDITOR.tools.clone(a[b]);return c}if(a===null||typeof a!="object"||a instanceof String||a instanceof Number||a instanceof Boolean||a instanceof Date||a instanceof RegExp)return a;c=new a.constructor;
for(b in a)c[b]=CKEDITOR.tools.clone(a[b]);return c},capitalize:function(a){return a.charAt(0).toUpperCase()+a.substring(1).toLowerCase()},extend:function(a){var c=arguments.length,b,e;if(typeof(b=arguments[c-1])=="boolean")c--;else if(typeof(b=arguments[c-2])=="boolean"){e=arguments[c-1];c=c-2}for(var h=1;h<c;h++){var d=arguments[h],g;for(g in d)if(b===true||a[g]==void 0)if(!e||g in e)a[g]=d[g]}return a},prototypedCopy:function(a){var c=function(){};c.prototype=a;return new c},copy:function(a){var c=
{},b;for(b in a)c[b]=a[b];return c},isArray:function(a){return!!a&&a instanceof Array},isEmpty:function(a){for(var c in a)if(a.hasOwnProperty(c))return false;return true},cssVendorPrefix:function(a,c,b){if(b)return d+a+":"+c+";"+a+":"+c;b={};b[a]=c;b[d+a]=c;return b},cssStyleToDomStyle:function(){var a=document.createElement("div").style,c=typeof a.cssFloat!="undefined"?"cssFloat":typeof a.styleFloat!="undefined"?"styleFloat":"float";return function(a){return a=="float"?c:a.replace(/-./g,function(a){return a.substr(1).toUpperCase()})}}(),
buildStyleHtml:function(a){for(var a=[].concat(a),c,b=[],e=0;e<a.length;e++)if(c=a[e])/@import|[{}]/.test(c)?b.push("<style>"+c+"</style>"):b.push('<link type="text/css" rel=stylesheet href="'+c+'">');return b.join("")},htmlEncode:function(a){return(""+a).replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;")},htmlEncodeAttr:function(a){return a.replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},getNextNumber:function(){var a=0;return function(){return++a}}(),getNextId:function(){return"cke_"+
this.getNextNumber()},override:function(a,c){var b=c(a);b.prototype=a.prototype;return b},setTimeout:function(a,c,b,e,h){h||(h=window);b||(b=h);return h.setTimeout(function(){e?a.apply(b,[].concat(e)):a.apply(b)},c||0)},trim:function(){var a=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(c){return c.replace(a,"")}}(),ltrim:function(){var a=/^[ \t\n\r]+/g;return function(c){return c.replace(a,"")}}(),rtrim:function(){var a=/[ \t\n\r]+$/g;return function(c){return c.replace(a,"")}}(),indexOf:function(a,
c){if(typeof c=="function")for(var b=0,e=a.length;b<e;b++){if(c(a[b]))return b}else{if(a.indexOf)return a.indexOf(c);b=0;for(e=a.length;b<e;b++)if(a[b]===c)return b}return-1},search:function(a,c){var b=CKEDITOR.tools.indexOf(a,c);return b>=0?a[b]:null},bind:function(a,c){return function(){return a.apply(c,arguments)}},createClass:function(a){var c=a.$,b=a.base,e=a.privates||a._,h=a.proto,a=a.statics;!c&&(c=function(){b&&this.base.apply(this,arguments)});if(e)var d=c,c=function(){var a=this._||(this._=
{}),c;for(c in e){var b=e[c];a[c]=typeof b=="function"?CKEDITOR.tools.bind(b,this):b}d.apply(this,arguments)};if(b){c.prototype=this.prototypedCopy(b.prototype);c.prototype.constructor=c;c.base=b;c.baseProto=b.prototype;c.prototype.base=function(){this.base=b.prototype.base;b.apply(this,arguments);this.base=arguments.callee}}h&&this.extend(c.prototype,h,true);a&&this.extend(c,a,true);return c},addFunction:function(a,c){return b.push(function(){return a.apply(c||this,arguments)})-1},removeFunction:function(a){b[a]=
null},callFunction:function(a){var c=b[a];return c&&c.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var a=/^-?\d+\.?\d*px$/,c;return function(b){c=CKEDITOR.tools.trim(b+"")+"px";return a.test(c)?c:b||""}}(),convertToPx:function(){var a;return function(c){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(c)){a.setStyle("width",
c);return a.$.clientWidth}return c}}(),repeat:function(a,c){return Array(c+1).join(a)},tryThese:function(){for(var a,c=0,b=arguments.length;c<b;c++){var e=arguments[c];try{a=e();break}catch(h){}}return a},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(a){return function(){var c=arguments,b=this;window.setTimeout(function(){a.apply(b,c)},0)}},normalizeCssText:function(a,c){var b=[],e,h=CKEDITOR.tools.parseCssText(a,true,c);for(e in h)b.push(e+":"+h[e]);b.sort();
return b.length?b.join(";")+";":""},convertRgbToHex:function(a){return a.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(a,b,e,h){a=[b,e,h];for(b=0;b<3;b++)a[b]=("0"+parseInt(a[b],10).toString(16)).slice(-2);return"#"+a.join("")})},parseCssText:function(a,c,b){var e={};if(b){b=new CKEDITOR.dom.element("span");b.setAttribute("style",a);a=CKEDITOR.tools.convertRgbToHex(b.getAttribute("style")||"")}if(!a||a==";")return e;a.replace(/&quot;/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,
function(a,b,f){if(c){b=b.toLowerCase();b=="font-family"&&(f=f.toLowerCase().replace(/["']/g,"").replace(/\s*,\s*/g,","));f=CKEDITOR.tools.trim(f)}e[b]=f});return e},writeCssText:function(a,c){var b,e=[];for(b in a)e.push(b+":"+a[b]);c&&e.sort();return e.join("; ")},objectCompare:function(a,c,b){var e;if(!a&&!c)return true;if(!a||!c)return false;for(e in a)if(a[e]!=c[e])return false;if(!b)for(e in c)if(a[e]!=c[e])return false;return true},objectKeys:function(a){var c=[],b;for(b in a)c.push(b);return c},
convertArrayToObject:function(a,c){var b={};arguments.length==1&&(c=true);for(var e=0,h=a.length;e<h;++e)b[a[e]]=c;return b},fixDomain:function(){for(var a;;)try{a=window.parent.document.domain;break}catch(c){a=a?a.replace(/.+?(?:\.|$)/,""):document.domain;if(!a)break;document.domain=a}return!!a}}}(),CKEDITOR.dtd=function(){var b=CKEDITOR.tools.extend,d=function(a,c){for(var b=CKEDITOR.tools.clone(a),e=1;e<arguments.length;e++){var c=arguments[e],f;for(f in c)delete b[f]}return b},a={},c={},f={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,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},e={command:1,link:1,meta:1,noscript:1,script:1,style:1},h={},i={"#":1},g={center:1,dir:1,noframes:1};b(a,{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},i,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});b(c,f,a,g);d={a:d(a,{a:1,button:1}),abbr:a,address:c,area:h,article:b({style:1},c),aside:b({style:1},c),audio:b({source:1,track:1},c),b:a,base:h,bdi:a,bdo:a,blockquote:c,body:c,br:h,button:d(a,{a:1,button:1}),canvas:a,caption:c,cite:a,code:a,col:h,colgroup:{col:1},
command:h,datalist:b({option:1},a),dd:c,del:a,details:b({summary:1},c),dfn:a,div:b({style:1},c),dl:{dt:1,dd:1},dt:c,em:a,embed:h,fieldset:b({legend:1},c),figcaption:c,figure:b({figcaption:1},c),footer:c,form:c,h1:a,h2:a,h3:a,h4:a,h5:a,h6:a,head:b({title:1,base:1},e),header:c,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:h,html:b({head:1,body:1},c,e),i:a,iframe:i,img:h,input:h,ins:a,kbd:a,keygen:h,label:a,legend:a,li:c,link:h,map:c,mark:a,menu:b({li:1},c),meta:h,meter:d(a,{meter:1}),nav:c,noscript:b({link:1,
meta:1,style:1},a),object:b({param:1},a),ol:{li:1},optgroup:{option:1},option:i,output:a,p:a,param:h,pre:a,progress:d(a,{progress:1}),q:a,rp:a,rt:a,ruby:b({rp:1,rt:1},a),s:a,samp:a,script:i,section:b({style:1},c),select:{optgroup:1,option:1},small:a,source:h,span:a,strong:a,style:i,sub:a,summary:a,sup:a,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:c,textarea:i,tfoot:{tr:1},th:c,thead:{tr:1},time:d(a,{time:1}),title:i,tr:{th:1,td:1},track:h,u:a,ul:{li:1},"var":a,video:b({source:1,
track:1},c),wbr:h,acronym:a,applet:b({param:1},c),basefont:h,big:a,center:c,dialog:h,dir:{li:1},font:a,isindex:h,noframes:c,strike:a,tt:a};b(d,{$block:b({audio:1,dd:1,dt:1,li:1,video:1},f,g),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figure:1,footer:1,form:1,header:1,hgroup: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,
footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup: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:a,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:b({body:1,head:1,html:1},d.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 d}(),CKEDITOR.dom.event=function(b){this.$=b},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var b=this.getKey();if(this.$.ctrlKey||this.$.metaKey)b=b+CKEDITOR.CTRL;this.$.shiftKey&&(b=b+CKEDITOR.SHIFT);this.$.altKey&&(b=b+CKEDITOR.ALT);return b},
preventDefault:function(b){var d=this.$;d.preventDefault?d.preventDefault():d.returnValue=false;b&&this.stopPropagation()},stopPropagation:function(){var b=this.$;b.stopPropagation?b.stopPropagation():b.cancelBubble=true},getTarget:function(){var b=this.$.target||this.$.srcElement;return b?new CKEDITOR.dom.node(b):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var b=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(b.documentElement.scrollLeft||
b.body.scrollLeft),y:this.$.pageY||this.$.clientY+(b.documentElement.scrollTop||b.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(b){if(b)this.$=b},CKEDITOR.dom.domObject.prototype=function(){var b=function(b,a){return function(c){typeof CKEDITOR!="undefined"&&b.fire(a,new CKEDITOR.dom.event(c))}};return{getPrivate:function(){var b;
if(!(b=this.getCustomData("_")))this.setCustomData("_",b={});return b},on:function(d){var a=this.getCustomData("_cke_nativeListeners");if(!a){a={};this.setCustomData("_cke_nativeListeners",a)}if(!a[d]){a=a[d]=b(this,d);this.$.addEventListener?this.$.addEventListener(d,a,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+d,a)}return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(b){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(b)){var a=
this.getCustomData("_cke_nativeListeners"),c=a&&a[b];if(c){this.$.removeEventListener?this.$.removeEventListener(b,c,false):this.$.detachEvent&&this.$.detachEvent("on"+b,c);delete a[b]}}},removeAllListeners:function(){var b=this.getCustomData("_cke_nativeListeners"),a;for(a in b){var c=b[a];this.$.detachEvent?this.$.detachEvent("on"+a,c):this.$.removeEventListener&&this.$.removeEventListener(a,c,false);delete b[a]}}}}(),function(b){var d={};CKEDITOR.on("reset",function(){d={}});b.equals=function(a){try{return a&&
a.$===this.$}catch(c){return false}};b.setCustomData=function(a,c){var b=this.getUniqueId();(d[b]||(d[b]={}))[a]=c;return this};b.getCustomData=function(a){var c=this.$["data-cke-expando"];return(c=c&&d[c])&&a in c?c[a]:null};b.removeCustomData=function(a){var c=this.$["data-cke-expando"],c=c&&d[c],b,e;if(c){b=c[a];e=a in c;delete c[a]}return e?b:null};b.clearCustomData=function(){this.removeAllListeners();var a=this.$["data-cke-expando"];a&&delete d[a]};b.getUniqueId=function(){return this.$["data-cke-expando"]||
(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(b)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(b){return b?new CKEDITOR.dom[b.nodeType==CKEDITOR.NODE_DOCUMENT?"document":b.nodeType==CKEDITOR.NODE_ELEMENT?"element":b.nodeType==CKEDITOR.NODE_TEXT?"text":b.nodeType==CKEDITOR.NODE_COMMENT?"comment":b.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](b):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(b,d){b.append(this,d);return b},clone:function(b,d){var a=this.$.cloneNode(b),c=function(a){a["data-cke-expando"]&&(a["data-cke-expando"]=false);
if(a.nodeType==CKEDITOR.NODE_ELEMENT){d||a.removeAttribute("id",false);if(b)for(var a=a.childNodes,e=0;e<a.length;e++)c(a[e])}};c(a);return new CKEDITOR.dom.node(a)},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(b){b.$.parentNode.insertBefore(this.$,b.$.nextSibling);return b},insertBefore:function(b){b.$.parentNode.insertBefore(this.$,b.$);return b},insertBeforeMe:function(b){this.$.parentNode.insertBefore(b.$,this.$);return b},
getAddress:function(b){for(var d=[],a=this.getDocument().$.documentElement,c=this.$;c&&c!=a;){var f=c.parentNode;f&&d.unshift(this.getIndex.call({$:c},b));c=f}return d},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(b){var d=this.$,a=-1,c;if(!this.$.parentNode)return a;do if(!b||!(d!=this.$&&d.nodeType==CKEDITOR.NODE_TEXT&&(c||!d.nodeValue))){a++;c=d.nodeType==CKEDITOR.NODE_TEXT}while(d=d.previousSibling);return a},
getNextSourceNode:function(b,d,a){if(a&&!a.call)var c=a,a=function(a){return!a.equals(c)};var b=!b&&this.getFirst&&this.getFirst(),f;if(!b){if(this.type==CKEDITOR.NODE_ELEMENT&&a&&a(this,true)===false)return null;b=this.getNext()}for(;!b&&(f=(f||this).getParent());){if(a&&a(f,true)===false)return null;b=f.getNext()}return!b||a&&a(b)===false?null:d&&d!=b.type?b.getNextSourceNode(false,d,a):b},getPreviousSourceNode:function(b,d,a){if(a&&!a.call)var c=a,a=function(a){return!a.equals(c)};var b=!b&&this.getLast&&
this.getLast(),f;if(!b){if(this.type==CKEDITOR.NODE_ELEMENT&&a&&a(this,true)===false)return null;b=this.getPrevious()}for(;!b&&(f=(f||this).getParent());){if(a&&a(f,true)===false)return null;b=f.getPrevious()}return!b||a&&a(b)===false?null:d&&b.type!=d?b.getPreviousSourceNode(false,d,a):b},getPrevious:function(b){var d=this.$,a;do a=(d=d.previousSibling)&&d.nodeType!=10&&new CKEDITOR.dom.node(d);while(a&&b&&!b(a));return a},getNext:function(b){var d=this.$,a;do a=(d=d.nextSibling)&&new CKEDITOR.dom.node(d);
while(a&&b&&!b(a));return a},getParent:function(b){var d=this.$.parentNode;return d&&(d.nodeType==CKEDITOR.NODE_ELEMENT||b&&d.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(d):null},getParents:function(b){var d=this,a=[];do a[b?"push":"unshift"](d);while(d=d.getParent());return a},getCommonAncestor:function(b){if(b.equals(this))return this;if(b.contains&&b.contains(this))return b;var d=this.contains?this:this.getParent();do if(d.contains(b))return d;while(d=d.getParent());return null},
getPosition:function(b){var d=this.$,a=b.$;if(d.compareDocumentPosition)return d.compareDocumentPosition(a);if(d==a)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&b.type==CKEDITOR.NODE_ELEMENT){if(d.contains){if(d.contains(a))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(a.contains(d))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in d)return d.sourceIndex<0||a.sourceIndex<0?CKEDITOR.POSITION_DISCONNECTED:d.sourceIndex<
a.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}for(var d=this.getAddress(),b=b.getAddress(),a=Math.min(d.length,b.length),c=0;c<=a-1;c++)if(d[c]!=b[c]){if(c<a)return d[c]<b[c]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;break}return d.length<b.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(b,d){var a=this.$,c;if(!d)a=a.parentNode;for(;a;){if(a.nodeName&&(c=a.nodeName.toLowerCase(),
typeof b=="string"?c==b:c in b))return new CKEDITOR.dom.node(a);try{a=a.parentNode}catch(f){a=null}}return null},hasAscendant:function(b,d){var a=this.$;if(!d)a=a.parentNode;for(;a;){if(a.nodeName&&a.nodeName.toLowerCase()==b)return true;a=a.parentNode}return false},move:function(b,d){b.append(this.remove(),d)},remove:function(b){var d=this.$,a=d.parentNode;if(a){if(b)for(;b=d.firstChild;)a.insertBefore(d.removeChild(b),d);a.removeChild(d)}return this},replace:function(b){this.insertBefore(b);b.remove()},
trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var b;this.getFirst&&(b=this.getFirst());){if(b.type==CKEDITOR.NODE_TEXT){var d=CKEDITOR.tools.ltrim(b.getText()),a=b.getLength();if(d){if(d.length<a){b.split(a-d.length);this.$.removeChild(this.$.firstChild)}}else{b.remove();continue}}break}},rtrim:function(){for(var b;this.getLast&&(b=this.getLast());){if(b.type==CKEDITOR.NODE_TEXT){var d=CKEDITOR.tools.rtrim(b.getText()),a=b.getLength();if(d){if(d.length<a){b.split(d.length);this.$.lastChild.parentNode.removeChild(this.$.lastChild)}}else{b.remove();
continue}}break}if(!CKEDITOR.env.ie&&!CKEDITOR.env.opera)(b=this.$.lastChild)&&(b.type==1&&b.nodeName.toLowerCase()=="br")&&b.parentNode.removeChild(b)},isReadOnly:function(){var b=this;this.type!=CKEDITOR.NODE_ELEMENT&&(b=this.getParent());if(b&&typeof b.$.isContentEditable!="undefined")return!(b.$.isContentEditable||b.data("cke-editable"));for(;b;){if(b.data("cke-editable"))break;if(b.getAttribute("contentEditable")=="false")return true;if(b.getAttribute("contentEditable")=="true")break;b=b.getParent()}return!b}}),
CKEDITOR.dom.window=function(b){CKEDITOR.dom.domObject.call(this,b)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},getViewPaneSize:function(){var b=this.$.document,d=b.compatMode=="CSS1Compat";return{width:(d?b.documentElement.clientWidth:b.body.clientWidth)||0,height:(d?b.documentElement.clientHeight:b.body.clientHeight)||0}},getScrollPosition:function(){var b=this.$;if("pageXOffset"in b)return{x:b.pageXOffset||
0,y:b.pageYOffset||0};b=b.document;return{x:b.documentElement.scrollLeft||b.body.scrollLeft||0,y:b.documentElement.scrollTop||b.body.scrollTop||0}},getFrame:function(){var b=this.$.frameElement;return b?new CKEDITOR.dom.element.get(b):null}}),CKEDITOR.dom.document=function(b){CKEDITOR.dom.domObject.call(this,b)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(b){if(this.$.createStyleSheet)this.$.createStyleSheet(b);
else{var d=new CKEDITOR.dom.element("link");d.setAttributes({rel:"stylesheet",type:"text/css",href:b});this.getHead().append(d)}},appendStyleText:function(b){if(this.$.createStyleSheet){var d=this.$.createStyleSheet("");d.cssText=b}else{var a=new CKEDITOR.dom.element("style",this);a.append(new CKEDITOR.dom.text(b,this));this.getHead().append(a)}return d||a.$.sheet},createElement:function(b,d){var a=new CKEDITOR.dom.element(b,this);if(d){d.attributes&&a.setAttributes(d.attributes);d.styles&&a.setStyles(d.styles)}return a},
createText:function(b){return new CKEDITOR.dom.text(b,this)},focus:function(){this.getWindow().focus()},getActive:function(){return new CKEDITOR.dom.element(this.$.activeElement)},getById:function(b){return(b=this.$.getElementById(b))?new CKEDITOR.dom.element(b):null},getByAddress:function(b,d){for(var a=this.$.documentElement,c=0;a&&c<b.length;c++){var f=b[c];if(d)for(var e=-1,h=0;h<a.childNodes.length;h++){var i=a.childNodes[h];if(!(d===true&&i.nodeType==3&&i.previousSibling&&i.previousSibling.nodeType==
3)){e++;if(e==f){a=i;break}}}else a=a.childNodes[f]}return a?new CKEDITOR.dom.node(a):null},getElementsByTag:function(b,d){if((!CKEDITOR.env.ie||document.documentMode>8)&&d)b=d+":"+b;return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(b))},getHead:function(){var b=this.$.getElementsByTagName("head")[0];return b=b?new CKEDITOR.dom.element(b):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(b){this.$.open("text/html","replace");CKEDITOR.env.ie&&(b=b.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$&\n<script data-cke-temp="1">('+CKEDITOR.tools.fixDomain+")();<\/script>"));this.$.write(b);this.$.close()}}),CKEDITOR.dom.nodeList=function(b){this.$=b},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(b){if(b<0||b>=this.$.length)return null;return(b=
this.$[b])?new CKEDITOR.dom.node(b):null}},CKEDITOR.dom.element=function(b,d){typeof b=="string"&&(b=(d?d.$:document).createElement(b));CKEDITOR.dom.domObject.call(this,b)},CKEDITOR.dom.element.get=function(b){return(b=typeof b=="string"?document.getElementById(b)||document.getElementsByName(b)[0]:b)&&(b.$?b:new CKEDITOR.dom.element(b))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(b,d){var a=new CKEDITOR.dom.element("div",d);a.setHtml(b);return a.getFirst().remove()},
CKEDITOR.dom.element.setMarker=function(b,d,a,c){var f=d.getCustomData("list_marker_id")||d.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),e=d.getCustomData("list_marker_names")||d.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");b[f]=d;e[a]=1;return d.setCustomData(a,c)},CKEDITOR.dom.element.clearAllMarkers=function(b){for(var d in b)CKEDITOR.dom.element.clearMarkers(b,b[d],1)},CKEDITOR.dom.element.clearMarkers=function(b,d,
a){var c=d.getCustomData("list_marker_names"),f=d.getCustomData("list_marker_id"),e;for(e in c)d.removeCustomData(e);d.removeCustomData("list_marker_names");if(a){d.removeCustomData("list_marker_id");delete b[f]}},function(){function b(a){for(var c=0,b=0,e=d[a].length;b<e;b++)c=c+(parseInt(this.getComputedStyle(d[a][b])||0,10)||0);return c}CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:function(a){var c=this.$.className;c&&(RegExp("(?:^|\\s)"+a+"(?:\\s|$)",
"").test(c)||(c=c+(" "+a)));this.$.className=c||a},removeClass:function(a){var c=this.getAttribute("class");if(c){a=RegExp("(?:^|\\s+)"+a+"(?=\\s|$)","i");if(a.test(c))(c=c.replace(a,"").replace(/^\s+/,""))?this.setAttribute("class",c):this.removeAttribute("class")}return this},hasClass:function(a){return RegExp("(?:^|\\s+)"+a+"(?=\\s|$)","").test(this.getAttribute("class"))},append:function(a,c){typeof a=="string"&&(a=this.getDocument().createElement(a));c?this.$.insertBefore(a.$,this.$.firstChild):
this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var c=new CKEDITOR.dom.element("div",this.getDocument());c.setHtml(a);c.moveChildren(this)}else this.setHtml(a)},appendText:function(a){this.$.text!=void 0?this.$.text=this.$.text+a:this.append(new CKEDITOR.dom.text(a))},appendBogus:function(){for(var 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=CKEDITOR.env.opera?this.getDocument().createText(""):
this.getDocument().createElement("br");CKEDITOR.env.gecko&&a.setAttribute("type","_moz");this.append(a)}},breakParent:function(a){var c=new CKEDITOR.dom.range(this.getDocument());c.setStartAfter(this);c.setEndAfter(a);a=c.extractContents();c.insertNode(this.remove());a.insertAfterNode(this)},contains:CKEDITOR.env.ie||CKEDITOR.env.webkit?function(a){var c=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?c.contains(a.getParent().$):c!=a.$&&c.contains(a.$)}:function(a){return!!(this.$.compareDocumentPosition(a.$)&
16)},focus:function(){function a(){try{this.$.focus()}catch(a){}}return function(c){c?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:function(){var a=function(a){return this.$.innerHTML=a};return CKEDITOR.env.ie&&CKEDITOR.env.version<9?function(a){try{return this.$.innerHTML=a}catch(b){this.$.innerHTML="";var e=new CKEDITOR.dom.element("body",this.getDocument());e.$.innerHTML=a;for(e=e.getChildren();e.count();)this.append(e.getItem(0));return a}}:a}(),setText:function(a){CKEDITOR.dom.element.prototype.setText=this.$.innerText!=void 0?function(a){return this.$.innerText=
a}:function(a){return this.$.textContent=a};return this.setText(a)},getAttribute:function(){var a=function(a){return this.$.getAttribute(a,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?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:CKEDITOR.env.ie?function(a){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(a)]}:function(a){var c=
this.getWindow().$.getComputedStyle(this.$,null);return c?c.getPropertyValue(a):""},getDtd:function(){var a=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return a};return a},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:CKEDITOR.env.ie?function(){var a=this.$.tabIndex;a===0&&(!CKEDITOR.dtd.$tabIndex[this.getName()]&&parseInt(this.getAttribute("tabindex"),10)!==0)&&(a=-1);return a}:CKEDITOR.env.webkit?function(){var a=this.$.tabIndex;if(a==void 0){a=parseInt(this.getAttribute("tabindex"),
10);isNaN(a)&&(a=-1)}return a}:function(){return this.$.tabIndex},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 c=this.$.scopeName;c!="HTML"&&(a=c.toLowerCase()+":"+a)}return(this.getName=function(){return a})()},getValue:function(){return this.$.value},
getFirst:function(a){var c=this.$.firstChild;(c=c&&new CKEDITOR.dom.node(c))&&(a&&!a(c))&&(c=c.getNext(a));return c},getLast:function(a){var c=this.$.lastChild;(c=c&&new CKEDITOR.dom.node(c))&&(a&&!a(c))&&(c=c.getPrevious(a));return c},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 c=0;c<arguments.length;c++)if(arguments[c]==a)return true;return false},isEditable:function(a){var c=
this.getName();if(this.isReadOnly()||this.getComputedStyle("display")=="none"||this.getComputedStyle("visibility")=="hidden"||CKEDITOR.dtd.$nonEditable[c]||CKEDITOR.dtd.$empty[c]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())return false;if(a!==false){a=CKEDITOR.dtd[c]||CKEDITOR.dtd.span;return!(!a||!a["#"])}return true},isIdentical:function(a){var c=this.clone(0,1),a=a.clone(0,1);c.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(c.$.isEqualNode){c.$.style.cssText=CKEDITOR.tools.normalizeCssText(c.$.style.cssText);a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText);return c.$.isEqualNode(a.$)}c=c.getOuterHtml();a=a.getOuterHtml();if(CKEDITOR.env.ie&&CKEDITOR.env.version<9&&this.is("a")){var b=this.getParent();if(b.type==CKEDITOR.NODE_ELEMENT){b=b.clone();b.setHtml(c);c=b.getHtml();b.setHtml(a);
a=b.getHtml()}}return c==a},isVisible:function(){var a=(this.$.offsetHeight||this.$.offsetWidth)&&this.getComputedStyle("visibility")!="hidden",c,b;if(a&&(CKEDITOR.env.webkit||CKEDITOR.env.opera)){c=this.getWindow();if(!c.equals(CKEDITOR.document.getWindow())&&(b=c.$.frameElement))a=(new CKEDITOR.dom.element(b)).isVisible()}return!!a},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return false;for(var a=this.getChildren(),c=0,b=a.count();c<b;c++){var e=a.getItem(c);
if(!(e.type==CKEDITOR.NODE_ELEMENT&&e.data("cke-bookmark"))&&(e.type==CKEDITOR.NODE_ELEMENT&&!e.isEmptyInlineRemoveable()||e.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(e.getText())))return false}return true},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(){for(var a=this.$.attributes,c=0;c<a.length;c++){var b=a[c];switch(b.nodeName){case "class":if(this.getAttribute("class"))return true;case "data-cke-expando":continue;default:if(b.specified)return true}}return false}:
function(){var a=this.$.attributes,c=a.length,b={"data-cke-expando":1,_moz_dirty:1};return c>0&&(c>2||!b[a[0].nodeName]||c==2&&!b[a[1].nodeName])},hasAttribute:function(){function a(a){a=this.$.attributes.getNamedItem(a);return!(!a||!a.specified)}return CKEDITOR.env.ie&&CKEDITOR.env.version<8?function(c){return c=="name"?!!this.$.name:a.call(this,c)}:a}(),hide:function(){this.setStyle("display","none")},moveChildren:function(a,c){var b=this.$,a=a.$;if(b!=a){var e;if(c)for(;e=b.lastChild;)a.insertBefore(b.removeChild(e),
a.firstChild);else for(;e=b.firstChild;)a.appendChild(b.removeChild(e))}},mergeSiblings:function(){function a(a,b,e){if(b&&b.type==CKEDITOR.NODE_ELEMENT){for(var h=[];b.data("cke-bookmark")||b.isEmptyInlineRemoveable();){h.push(b);b=e?b.getNext():b.getPrevious();if(!b||b.type!=CKEDITOR.NODE_ELEMENT)return}if(a.isIdentical(b)){for(var d=e?a.getLast():a.getFirst();h.length;)h.shift().move(a,!e);b.moveChildren(a,!e);b.remove();d&&d.type==CKEDITOR.NODE_ELEMENT&&d.mergeSiblings()}}}return function(c){if(c===
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.ie6Compat)?function(c,b){c=="class"?this.$.className=b:c=="style"?this.$.style.cssText=b:c=="tabindex"?this.$.tabIndex=b:c=="checked"?this.$.checked=b:c=="contenteditable"?a.call(this,
"contentEditable",b):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(c,b){if(c=="src"&&b.match(/^http:\/\//))try{a.apply(this,arguments)}catch(e){}else a.apply(this,arguments);return this}:a}(),setAttributes:function(a){for(var c in a)this.setAttribute(c,a[c]);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.ie6Compat)?
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 c=0;c<a.length;c++)this.removeAttribute(a[c]);else for(c in a)a.hasOwnProperty(c)&&this.removeAttribute(c)},removeStyle:function(a){var c=this.$.style;if(!c.removeProperty&&(a=="border"||a=="margin"||a=="padding")){var b=["top","left","right","bottom"],e;a=="border"&&(e=["color","style","width"]);
for(var c=[],h=0;h<b.length;h++)if(e)for(var d=0;d<e.length;d++)c.push([a,b[h],e[d]].join("-"));else c.push([a,b[h]].join("-"));for(a=0;a<c.length;a++)this.removeStyle(c[a])}else{c.removeProperty?c.removeProperty(a):c.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(a));this.$.style.cssText||this.removeAttribute("style")}},setStyle:function(a,c){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]=c;return this},setStyles:function(a){for(var c in a)this.setStyle(c,a[c]);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||CKEDITOR.env.opera){this.setAttribute("unselectable","on");for(var a,c=this.getElementsByTag("*"),b=0,e=c.count();b<e;b++){a=c.getItem(b);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 c=0,b=0,e=this.getDocument(),h=e.getBody(),d=e.$.compatMode=="BackCompat";if(document.documentElement.getBoundingClientRect){var g=this.$.getBoundingClientRect(),j=e.$.documentElement,l=j.clientTop||h.$.clientTop||0,n=j.clientLeft||h.$.clientLeft||0,o=true;if(CKEDITOR.env.ie){o=e.getDocumentElement().contains(this);e=e.getBody().contains(this);o=d&&e||!d&&
o}if(o){c=g.left+(!d&&j.scrollLeft||h.$.scrollLeft);c=c-n;b=g.top+(!d&&j.scrollTop||h.$.scrollTop);b=b-l}}else{h=this;for(e=null;h&&!(h.getName()=="body"||h.getName()=="html");){c=c+(h.$.offsetLeft-h.$.scrollLeft);b=b+(h.$.offsetTop-h.$.scrollTop);if(!h.equals(this)){c=c+(h.$.clientLeft||0);b=b+(h.$.clientTop||0)}for(;e&&!e.equals(h);){c=c-e.$.scrollLeft;b=b-e.$.scrollTop;e=e.getParent()}e=h;h=(g=h.$.offsetParent)?new CKEDITOR.dom.element(g):null}}if(a){h=this.getWindow();e=a.getWindow();if(!h.equals(e)&&
h.$.frameElement){a=(new CKEDITOR.dom.element(h.$.frameElement)).getDocumentPosition(a);c=c+a.x;b=b+a.y}}if(!document.documentElement.getBoundingClientRect&&CKEDITOR.env.gecko&&!d){c=c+(this.$.clientLeft?1:0);b=b+(this.$.clientTop?1:0)}return{x:c,y:b}},scrollIntoView:function(a){var c=this.getParent();if(c){do{(c.$.clientWidth&&c.$.clientWidth<c.$.scrollWidth||c.$.clientHeight&&c.$.clientHeight<c.$.scrollHeight)&&!c.is("body")&&this.scrollIntoParent(c,a,1);if(c.is("html")){var b=c.getWindow();try{var e=
b.$.frameElement;e&&(c=new CKEDITOR.dom.element(e))}catch(h){}}}while(c=c.getParent())}},scrollIntoParent:function(a,c,b){var e,h,d,g;function j(c,b){if(/body|html/.test(a.getName()))a.getWindow().$.scrollBy(c,b);else{a.$.scrollLeft=a.$.scrollLeft+c;a.$.scrollTop=a.$.scrollTop+b}}function l(a,c){var b={x:0,y:0};if(!a.is(o?"body":"html")){var e=a.$.getBoundingClientRect();b.x=e.left;b.y=e.top}e=a.getWindow();if(!e.equals(c)){e=l(CKEDITOR.dom.element.get(e.$.frameElement),c);b.x=b.x+e.x;b.y=b.y+e.y}return b}
function n(a,c){return parseInt(a.getComputedStyle("margin-"+c)||0,10)||0}!a&&(a=this.getWindow());d=a.getDocument();var o=d.$.compatMode=="BackCompat";a instanceof CKEDITOR.dom.window&&(a=o?d.getBody():d.getDocumentElement());d=a.getWindow();h=l(this,d);var m=l(a,d),k=this.$.offsetHeight;e=this.$.offsetWidth;var p=a.$.clientHeight,s=a.$.clientWidth;d=h.x-n(this,"left")-m.x||0;g=h.y-n(this,"top")-m.y||0;e=h.x+e+n(this,"right")-(m.x+s)||0;h=h.y+k+n(this,"bottom")-(m.y+p)||0;if(g<0||h>0)j(0,c===true?
g:c===false?h:g<0?g:h);if(b&&(d<0||e>0))j(d<0?d:e,0)},setState:function(a,c,b){c=c||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(c+"_on");this.removeClass(c+"_off");this.removeClass(c+"_disabled");b&&this.setAttribute("aria-pressed",true);b&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(c+"_disabled");this.removeClass(c+"_off");this.removeClass(c+"_on");b&&this.setAttribute("aria-disabled",true);b&&this.removeAttribute("aria-pressed");break;default:this.addClass(c+
"_off");this.removeClass(c+"_on");this.removeClass(c+"_disabled");b&&this.removeAttribute("aria-pressed");b&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(c){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a,c){for(var b=this.$.attributes,c=c||{},e=0;e<b.length;e++){var h=b[e],d=h.nodeName.toLowerCase(),g;if(!(d in c))if(d=="checked"&&(g=this.getAttribute(d)))a.setAttribute(d,g);
else if(h.specified||CKEDITOR.env.ie&&h.nodeValue&&d=="value"){g=this.getAttribute(d);if(g===null)g=h.nodeValue;a.setAttribute(d,g)}}if(this.$.style.cssText!=="")a.$.style.cssText=this.$.style.cssText},renameNode:function(a){if(this.getName()!=a){var c=this.getDocument(),a=new CKEDITOR.dom.element(a,c);this.copyAttributes(a);this.moveChildren(a);this.getParent()&&this.$.parentNode.replaceChild(a.$,this.$);a.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=a.$}},getChild:function(){function a(a,
b){var e=a.childNodes;if(b>=0&&b<e.length)return e[b]}return function(b){var d=this.$;if(b.slice)for(;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}});var d={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,c,d){if(typeof c=="number"){if(d&&(!CKEDITOR.env.ie||!CKEDITOR.env.quirks))c=c-b.call(this,a);this.setStyle(a,c+"px")}};CKEDITOR.dom.element.prototype.getSize=function(a,c){var d=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(a)],this.$["client"+CKEDITOR.tools.capitalize(a)])||0;c&&(d=d-b.call(this,a));return d}}(),CKEDITOR.dom.documentFragment=function(b){b=b||CKEDITOR.document;
this.$=b.type==CKEDITOR.NODE_DOCUMENT?b.$.createDocumentFragment():b},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(b){b=b.$;b.parentNode.insertBefore(this.$,b.nextSibling)}},!0,{append:1,appendBogus:1,getFirst: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 b(a,b){var c=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(c.collapsed){this.end();return null}c.optimize()}var e,d=c.startContainer;e=c.endContainer;var f=c.startOffset,o=c.endOffset,m,k=this.guard,p=this.type,s=a?"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var r=e.type==CKEDITOR.NODE_ELEMENT?e:e.getParent(),t=e.type==CKEDITOR.NODE_ELEMENT?e.getChild(o):e.getNext();this._.guardLTR=function(a,b){return(!b||!r.equals(a))&&
(!t||!a.equals(t))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(c.root))}}if(a&&!this._.guardRTL){var y=d.type==CKEDITOR.NODE_ELEMENT?d:d.getParent(),A=d.type==CKEDITOR.NODE_ELEMENT?f?d.getChild(f-1):null:d.getPrevious();this._.guardRTL=function(a,b){return(!b||!y.equals(a))&&(!A||!a.equals(A))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(c.root))}}var v=a?this._.guardRTL:this._.guardLTR;m=k?function(a,b){return v(a,b)===false?false:k(a,b)}:v;if(this.current)e=this.current[s](false,p,m);else{if(a)e.type==
CKEDITOR.NODE_ELEMENT&&(e=o>0?e.getChild(o-1):m(e,true)===false?null:e.getPreviousSourceNode(true,p,m));else{e=d;if(e.type==CKEDITOR.NODE_ELEMENT&&!(e=e.getChild(f)))e=m(d,true)===false?null:d.getNextSourceNode(true,p,m)}e&&m(e)===false&&(e=null)}for(;e&&!this._.end;){this.current=e;if(!this.evaluator||this.evaluator(e)!==false){if(!b)return e}else if(b&&this.evaluator)return false;e=e[s](false,p,m)}this.end();return this.current=null}function d(a){for(var c,e=null;c=b.call(this,a);)e=c;return e}
CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(a){this.range=a;this._={}},proto:{end:function(){this._.end=1},next:function(){return b.call(this)},previous:function(){return b.call(this,1)},checkForward:function(){return b.call(this,0,1)!==false},checkBackward:function(){return b.call(this,1,1)!==false},lastForward:function(){return d.call(this)},lastBackward:function(){return d.call(this,1)},reset:function(){delete this.current;this._={}}}});var a={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};CKEDITOR.dom.element.prototype.isBlockBoundary=function(b){b=b?CKEDITOR.tools.extend({},CKEDITOR.dtd.$block,b||{}):CKEDITOR.dtd.$block;return this.getComputedStyle("float")=="none"&&a[this.getComputedStyle("display")]||b[this.getName()]};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 c(a){return a&&a.getName&&a.getName()=="span"&&a.data("cke-bookmark")}return function(e){var d,f;d=e&&e.type!=CKEDITOR.NODE_ELEMENT&&(f=e.getParent())&&c(f);d=a?d:d||c(e);return!!(b^d)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(b){var c;b&&b.type==CKEDITOR.NODE_TEXT&&(c=!CKEDITOR.tools.trim(b.getText())||CKEDITOR.env.webkit&&b.getText()=="​");return!!(a^c)}};CKEDITOR.dom.walker.invisible=
function(a){var b=CKEDITOR.dom.walker.whitespaces();return function(c){if(b(c))c=1;else{c.type==CKEDITOR.NODE_TEXT&&(c=c.getParent());c=!c.$.offsetHeight}return!!(a^c)}};CKEDITOR.dom.walker.nodeType=function(a,b){return function(c){return!!(b^c.type==a)}};CKEDITOR.dom.walker.bogus=function(a){function b(a){return!f(a)&&!e(a)}return function(e){var d=!CKEDITOR.env.ie?e.is&&e.is("br"):e.getText&&c.test(e.getText());if(d){d=e.getParent();e=e.getNext(b);d=d.isBlockBoundary()&&(!e||e.type==CKEDITOR.NODE_ELEMENT&&
e.isBlockBoundary())}return!!(a^d)}};var c=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,f=CKEDITOR.dom.walker.whitespaces(),e=CKEDITOR.dom.walker.bookmark();CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(e(a)||f(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in CKEDITOR.dtd.$inline&&!(a.getName()in CKEDITOR.dtd.$empty));return a&&(!CKEDITOR.env.ie?a.is&&a.is("br"):a.getText&&c.test(a.getText()))?a:false}}(),CKEDITOR.dom.range=function(b){this.endOffset=this.endContainer=
this.startOffset=this.startContainer=null;this.collapsed=true;var d=b instanceof CKEDITOR.dom.document;this.document=d?b:b.getDocument();this.root=d?b.getBody():b},function(){function b(){var a=false,b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(true),d=CKEDITOR.dom.walker.bogus();return function(k){if(c(k)||b(k))return true;if(d(k)&&!a)return a=true;return k.type==CKEDITOR.NODE_TEXT&&(k.hasAscendant("pre")||CKEDITOR.tools.trim(k.getText()).length)||k.type==CKEDITOR.NODE_ELEMENT&&
!k.is(e)?false:true}}function d(a){var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(1);return function(e){return c(e)||b(e)?true:!a&&h(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$removeEmpty)}}function a(a){return!i(a)&&!g(a)}var c=function(a){a.collapsed=a.startContainer&&a.endContainer&&a.startContainer.equals(a.endContainer)&&a.startOffset==a.endOffset},f=function(a,b,c,e){a.optimizeBookmark();var k=a.startContainer,d=a.endContainer,h=a.startOffset,f=a.endOffset,
g,i;if(d.type==CKEDITOR.NODE_TEXT)d=d.split(f);else if(d.getChildCount()>0)if(f>=d.getChildCount()){d=d.append(a.document.createText(""));i=true}else d=d.getChild(f);if(k.type==CKEDITOR.NODE_TEXT){k.split(h);k.equals(d)&&(d=k.getNext())}else if(h)if(h>=k.getChildCount()){k=k.append(a.document.createText(""));g=true}else k=k.getChild(h).getPrevious();else{k=k.append(a.document.createText(""),1);g=true}var h=k.getParents(),f=d.getParents(),j,v,w;for(j=0;j<h.length;j++){v=h[j];w=f[j];if(!v.equals(w))break}for(var q=
c,u,z,B,x=j;x<h.length;x++){u=h[x];q&&!u.equals(k)&&(z=q.append(u.clone()));for(u=u.getNext();u;){if(u.equals(f[x])||u.equals(d))break;B=u.getNext();if(b==2)q.append(u.clone(true));else{u.remove();b==1&&q.append(u)}u=B}q&&(q=z)}q=c;for(c=j;c<f.length;c++){u=f[c];b>0&&!u.equals(d)&&(z=q.append(u.clone()));if(!h[c]||u.$.parentNode!=h[c].$.parentNode)for(u=u.getPrevious();u;){if(u.equals(h[c])||u.equals(k))break;B=u.getPrevious();if(b==2)q.$.insertBefore(u.$.cloneNode(true),q.$.firstChild);else{u.remove();
b==1&&q.$.insertBefore(u.$,q.$.firstChild)}u=B}q&&(q=z)}if(b==2){v=a.startContainer;if(v.type==CKEDITOR.NODE_TEXT){v.$.data=v.$.data+v.$.nextSibling.data;v.$.parentNode.removeChild(v.$.nextSibling)}a=a.endContainer;if(a.type==CKEDITOR.NODE_TEXT&&a.$.nextSibling){a.$.data=a.$.data+a.$.nextSibling.data;a.$.parentNode.removeChild(a.$.nextSibling)}}else{if(v&&w&&(k.$.parentNode!=v.$.parentNode||d.$.parentNode!=w.$.parentNode)){b=w.getIndex();g&&w.$.parentNode==k.$.parentNode&&b--;if(e&&v.type==CKEDITOR.NODE_ELEMENT){e=
CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none">&nbsp;</span>',a.document);e.insertAfter(v);v.mergeSiblings(false);a.moveToBookmark({startNode:e})}else a.setStart(w.getParent(),b)}a.collapse(true)}g&&k.remove();i&&d.$.parentNode&&d.remove()},e={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},h=CKEDITOR.dom.walker.bogus(),i=new CKEDITOR.dom.walker.whitespaces,
g=new CKEDITOR.dom.walker.bookmark,j=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/;CKEDITOR.dom.range.prototype={clone:function(){var a=new CKEDITOR.dom.range(this.root);a.startContainer=this.startContainer;a.startOffset=this.startOffset;a.endContainer=this.endContainer;a.endOffset=this.endOffset;a.collapsed=this.collapsed;return a},collapse:function(a){if(a){this.endContainer=this.startContainer;this.endOffset=this.startOffset}else{this.startContainer=this.endContainer;this.startOffset=this.endOffset}this.collapsed=
true},cloneContents:function(){var a=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||f(this,2,a);return a},deleteContents:function(a){this.collapsed||f(this,0,null,a)},extractContents:function(a){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||f(this,1,b,a);return b},createBookmark:function(a){var b,c,e,k,d=this.collapsed;b=this.document.createElement("span");b.data("cke-bookmark",1);b.setStyle("display","none");b.setHtml("&nbsp;");if(a){e="cke_bm_"+CKEDITOR.tools.getNextNumber();
b.setAttribute("id",e+(d?"C":"S"))}if(!d){c=b.clone();c.setHtml("&nbsp;");a&&c.setAttribute("id",e+"E");k=this.clone();k.collapse();k.insertNode(c)}k=this.clone();k.collapse(true);k.insertNode(b);if(c){this.setStartAfter(b);this.setEndBefore(c)}else this.moveToPosition(b,CKEDITOR.POSITION_AFTER_END);return{startNode:a?e+(d?"C":"S"):b,endNode:a?e+"E":c,serializable:a,collapsed:d}},createBookmark2:function(a){var b=this.startContainer,c=this.endContainer,e=this.startOffset,k=this.endOffset,d=this.collapsed,
h,f;if(!b||!c)return{start:0,end:0};if(a){if(b.type==CKEDITOR.NODE_ELEMENT){if((h=b.getChild(e))&&h.type==CKEDITOR.NODE_TEXT&&e>0&&h.getPrevious().type==CKEDITOR.NODE_TEXT){b=h;e=0}h&&h.type==CKEDITOR.NODE_ELEMENT&&(e=h.getIndex(1))}for(;b.type==CKEDITOR.NODE_TEXT&&(f=b.getPrevious())&&f.type==CKEDITOR.NODE_TEXT;){b=f;e=e+f.getLength()}if(!d){if(c.type==CKEDITOR.NODE_ELEMENT){if((h=c.getChild(k))&&h.type==CKEDITOR.NODE_TEXT&&k>0&&h.getPrevious().type==CKEDITOR.NODE_TEXT){c=h;k=0}h&&h.type==CKEDITOR.NODE_ELEMENT&&
(k=h.getIndex(1))}for(;c.type==CKEDITOR.NODE_TEXT&&(f=c.getPrevious())&&f.type==CKEDITOR.NODE_TEXT;){c=f;k=k+f.getLength()}}}return{start:b.getAddress(a),end:d?null:c.getAddress(a),startOffset:e,endOffset:k,normalized:a,collapsed:d,is2:true}},moveToBookmark:function(a){if(a.is2){var b=this.document.getByAddress(a.start,a.normalized),c=a.startOffset,e=a.end&&this.document.getByAddress(a.end,a.normalized),a=a.endOffset;this.setStart(b,c);e?this.setEnd(e,a):this.collapse(true)}else{b=(c=a.serializable)?
this.document.getById(a.startNode):a.startNode;a=c?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,c=this.startOffset,e=this.endOffset,k;if(a.type==CKEDITOR.NODE_ELEMENT){k=a.getChildCount();if(k>c)a=a.getChild(c);else if(k<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){k=b.getChildCount();if(k>e)b=b.getChild(e).getPreviousSourceNode(true);else if(k<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 c=this.startContainer,e=this.endContainer,c=c.equals(e)?a&&c.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?c.getChild(this.startOffset):c:c.getCommonAncestor(e);
return b&&!c.is?c.getParent():c},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 c=this.startContainer,e=this.startOffset,k=this.collapsed;if((!a||k)&&c&&c.type==CKEDITOR.NODE_TEXT){if(e)if(e>=c.getLength()){e=c.getIndex()+1;c=c.getParent()}else{var d=c.split(e),e=c.getIndex()+1,c=c.getParent();if(this.startContainer.equals(this.endContainer))this.setEnd(d,this.endOffset-this.startOffset);else if(c.equals(this.endContainer))this.endOffset=this.endOffset+1}else{e=
c.getIndex();c=c.getParent()}this.setStart(c,e);if(k){this.collapse(true);return}}c=this.endContainer;e=this.endOffset;if(!b&&!k&&c&&c.type==CKEDITOR.NODE_TEXT){if(e){e>=c.getLength()||c.split(e);e=c.getIndex()+1}else e=c.getIndex();c=c.getParent();this.setEnd(c,e)}},enlarge:function(a,b){switch(a){case CKEDITOR.ENLARGE_INLINE:var c=1;case CKEDITOR.ENLARGE_ELEMENT:if(this.collapsed)break;var e=this.getCommonAncestor(),k=this.root,d,h,f,g,i,j=false,v,w;v=this.startContainer;w=this.startOffset;if(v.type==
CKEDITOR.NODE_TEXT){if(w){v=!CKEDITOR.tools.trim(v.substring(0,w)).length&&v;j=!!v}if(v&&!(g=v.getPrevious()))f=v.getParent()}else{w&&(g=v.getChild(w-1)||v.getLast());g||(f=v)}for(;f||g;){if(f&&!g){!i&&f.equals(e)&&(i=true);if(c?f.isBlockBoundary():!k.contains(f))break;if(!j||f.getComputedStyle("display")!="inline"){j=false;i?d=f:this.setStartBefore(f)}g=f.getPrevious()}for(;g;){v=false;if(g.type==CKEDITOR.NODE_COMMENT)g=g.getPrevious();else{if(g.type==CKEDITOR.NODE_TEXT){w=g.getText();/[^\s\ufeff]/.test(w)&&
(g=null);v=/[\s\ufeff]$/.test(w)}else if((g.$.offsetWidth>0||b&&g.is("br"))&&!g.data("cke-bookmark"))if(j&&CKEDITOR.dtd.$removeEmpty[g.getName()]){w=g.getText();if(/[^\s\ufeff]/.test(w))g=null;else for(var q=g.$.getElementsByTagName("*"),u=0,z;z=q[u++];)if(!CKEDITOR.dtd.$removeEmpty[z.nodeName.toLowerCase()]){g=null;break}g&&(v=!!w.length)}else g=null;v&&(j?i?d=f:f&&this.setStartBefore(f):j=true);if(g){v=g.getPrevious();if(!f&&!v){f=g;g=null;break}g=v}else f=null}}f&&(f=f.getParent())}v=this.endContainer;
w=this.endOffset;f=g=null;i=j=false;if(v.type==CKEDITOR.NODE_TEXT){v=!CKEDITOR.tools.trim(v.substring(w)).length&&v;j=!(v&&v.getLength());if(v&&!(g=v.getNext()))f=v.getParent()}else(g=v.getChild(w))||(f=v);for(;f||g;){if(f&&!g){!i&&f.equals(e)&&(i=true);if(c?f.isBlockBoundary():!k.contains(f))break;if(!j||f.getComputedStyle("display")!="inline"){j=false;i?h=f:f&&this.setEndAfter(f)}g=f.getNext()}for(;g;){v=false;if(g.type==CKEDITOR.NODE_TEXT){w=g.getText();/[^\s\ufeff]/.test(w)&&(g=null);v=/^[\s\ufeff]/.test(w)}else if(g.type==
CKEDITOR.NODE_ELEMENT){if((g.$.offsetWidth>0||b&&g.is("br"))&&!g.data("cke-bookmark"))if(j&&CKEDITOR.dtd.$removeEmpty[g.getName()]){w=g.getText();if(/[^\s\ufeff]/.test(w))g=null;else{q=g.$.getElementsByTagName("*");for(u=0;z=q[u++];)if(!CKEDITOR.dtd.$removeEmpty[z.nodeName.toLowerCase()]){g=null;break}}g&&(v=!!w.length)}else g=null}else v=1;v&&j&&(i?h=f:this.setEndAfter(f));if(g){v=g.getNext();if(!f&&!v){f=g;g=null;break}g=v}else f=null}f&&(f=f.getParent())}if(d&&h){e=d.contains(h)?h:d;this.setStartBefore(e);
this.setEndAfter(e)}break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:f=new CKEDITOR.dom.range(this.root);k=this.root;f.setStartAt(k,CKEDITOR.POSITION_AFTER_START);f.setEnd(this.startContainer,this.startOffset);f=new CKEDITOR.dom.walker(f);var B,x,C=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),D=function(a){var b=C(a);b||(B=a);return b},c=function(a){var b=D(a);!b&&(a.is&&a.is("br"))&&(x=a);return b};f.guard=D;f=f.lastBackward();
B=B||k;this.setStartAt(B,!B.is("br")&&(!f&&this.checkStartOfBlock()||f&&B.contains(f))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){f=this.clone();f=new CKEDITOR.dom.walker(f);var F=CKEDITOR.dom.walker.whitespaces(),E=CKEDITOR.dom.walker.bookmark();f.evaluator=function(a){return!F(a)&&!E(a)};if((f=f.previous())&&f.type==CKEDITOR.NODE_ELEMENT&&f.is("br"))break}f=this.clone();f.collapse();f.setEndAt(k,CKEDITOR.POSITION_BEFORE_END);f=new CKEDITOR.dom.walker(f);
f.guard=a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?c:D;B=null;f=f.lastForward();B=B||k;this.setEndAt(B,!f&&this.checkEndOfBlock()||f&&B.contains(f)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);x&&this.setEndAfter(x)}},shrink:function(a,b,c){if(!this.collapsed){var a=a||CKEDITOR.SHRINK_TEXT,e=this.clone(),k=this.startContainer,d=this.endContainer,f=this.startOffset,h=this.endOffset,g=1,i=1;if(k&&k.type==CKEDITOR.NODE_TEXT)if(f)if(f>=k.getLength())e.setStartAfter(k);else{e.setStartBefore(k);
g=0}else e.setStartBefore(k);if(d&&d.type==CKEDITOR.NODE_TEXT)if(h)if(h>=d.getLength())e.setEndAfter(d);else{e.setEndAfter(d);i=0}else e.setEndBefore(d);var e=new CKEDITOR.dom.walker(e),j=CKEDITOR.dom.walker.bookmark();e.evaluator=function(b){return b.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var v;e.guard=function(b,e){if(j(b))return true;if(a==CKEDITOR.SHRINK_ELEMENT&&b.type==CKEDITOR.NODE_TEXT||e&&b.equals(v)||c===false&&b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary())return false;
!e&&b.type==CKEDITOR.NODE_ELEMENT&&(v=b);return true};if(g)(k=e[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(k,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);if(i){e.reset();(e=e[a==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(e,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)}return!(!g&&!i)}},insertNode:function(a){this.optimizeBookmark();this.trim(false,true);var b=this.startContainer,c=b.getChild(this.startOffset);c?a.insertBefore(c):
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(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]){b=
a.getIndex();a=a.getParent()}this.startContainer=a;this.startOffset=b;if(!this.endContainer){this.endContainer=a;this.endOffset=b}c(this)},setEnd:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]){b=a.getIndex()+1;a=a.getParent()}this.endContainer=a;this.endOffset=b;if(!this.startContainer){this.startContainer=a;this.startOffset=b}c(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(a,b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setStart(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setStart(a,a.getLength()):this.setStart(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(a);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(a)}c(this)},setEndAt:function(a,
b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setEnd(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setEnd(a,a.getLength()):this.setEnd(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(a);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(a)}c(this)},fixBlock:function(a,b){var c=this.createBookmark(),e=this.document.createElement(b);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(e);
e.trim();CKEDITOR.env.ie||e.appendBogus();this.insertNode(e);this.moveToBookmark(c);return e},splitBlock:function(a){var b=new CKEDITOR.dom.elementPath(this.startContainer,this.root),c=new CKEDITOR.dom.elementPath(this.endContainer,this.root),e=b.block,k=c.block,d=null;if(!b.blockLimit.equals(c.blockLimit))return null;if(a!="br"){if(!e){e=this.fixBlock(true,a);k=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block}k||(k=this.fixBlock(false,a))}a=e&&this.checkStartOfBlock();b=k&&this.checkEndOfBlock();
this.deleteContents();if(e&&e.equals(k))if(b){d=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(k,CKEDITOR.POSITION_AFTER_END);k=null}else if(a){d=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);e=null}else{k=this.splitElement(e);!CKEDITOR.env.ie&&!e.is("ul","ol")&&e.appendBogus()}return{previousBlock:e,nextBlock:k,wasStartOfBlock:a,wasEndOfBlock:b,elementPath:d}},splitElement:function(a){if(!this.collapsed)return null;
this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var b=this.extractContents(),c=a.clone(false);b.appendTo(c);c.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return c},removeEmptyBlocksAtEnd:function(){function a(e){return function(a){return b(a)||(c(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isEmptyInlineRemoveable())||e.is("table")&&a.is("caption")?false:true}}var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(false);return function(b){for(var c=this.createBookmark(),
e=this[b?"endPath":"startPath"](),d=e.block||e.blockLimit,f;d&&!d.equals(e.root)&&!d.getFirst(a(d));){f=d.getParent();this[b?"setEndAt":"setStartAt"](d,CKEDITOR.POSITION_AFTER_END);d.remove(1);d=f}this.moveToBookmark(c)}}(),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 c=b==CKEDITOR.START,e=this.clone();e.collapse(c);e[c?"setStartAt":
"setEndAt"](a,c?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);e=new CKEDITOR.dom.walker(e);e.evaluator=d(c);return e[c?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var a=this.startContainer,c=this.startOffset;if(CKEDITOR.env.ie&&c&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.ltrim(a.substring(0,c));j.test(a)&&this.trim(0,1)}this.trim();a=new CKEDITOR.dom.elementPath(this.startContainer,this.root);c=this.clone();c.collapse(true);c.setStartAt(a.block||a.blockLimit,
CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(c);a.evaluator=b();return a.checkBackward()},checkEndOfBlock:function(){var a=this.endContainer,c=this.endOffset;if(CKEDITOR.env.ie&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.rtrim(a.substring(c));j.test(a)&&this.trim(1,0)}this.trim();a=new CKEDITOR.dom.elementPath(this.endContainer,this.root);c=this.clone();c.collapse(false);c.setEndAt(a.block||a.blockLimit,CKEDITOR.POSITION_BEFORE_END);a=new CKEDITOR.dom.walker(c);a.evaluator=b();return a.checkForward()},
getPreviousNode:function(a,b,c){var e=this.clone();e.collapse(1);e.setStartAt(c||this.root,CKEDITOR.POSITION_AFTER_START);c=new CKEDITOR.dom.walker(e);c.evaluator=a;c.guard=b;return c.previous()},getNextNode:function(a,b,c){var e=this.clone();e.collapse();e.setEndAt(c||this.root,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(e);c.evaluator=a;c.guard=b;return c.next()},checkReadOnly:function(){function a(b,c){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(c)||b.equals(c)))break}b=b.getParent()}return 1}return function(){var b=this.startContainer,c=this.endContainer;return!(a(b,c)&&a(c,b))}}(),moveToElementEditablePosition:function(b,c){if(b.type==CKEDITOR.NODE_ELEMENT&&!b.isEditable(false)){this.moveToPosition(b,c?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);return true}for(var e=0;b;){if(b.type==CKEDITOR.NODE_TEXT){c&&this.checkEndOfBlock()&&
j.test(b.getText())?this.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(b,c?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);e=1;break}if(b.type==CKEDITOR.NODE_ELEMENT)if(b.isEditable()){this.moveToPosition(b,c?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START);e=1}else c&&(b.is("br")&&this.checkEndOfBlock())&&this.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START);var d=b,k=e,f=void 0;d.type==CKEDITOR.NODE_ELEMENT&&d.isEditable(false)&&(f=d[c?"getLast":"getFirst"](a));
!k&&!f&&(f=d[c?"getPrevious":"getNext"](a));b=f}return!!e},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),c=CKEDITOR.dom.walker.whitespaces(true);
a.evaluator=function(a){return c(a)&&b(a)};var e=a.next();a.reset();return e&&e.equals(a.previous())?e: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},scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("<span>&nbsp;</span>",this.document),
b,c,e,d=this.clone();d.optimize();if(e=d.startContainer.type==CKEDITOR.NODE_TEXT){c=d.startContainer.getText();b=d.startContainer.split(d.startOffset);a.insertAfter(d.startContainer)}else d.insertNode(a);a.scrollIntoView();if(e){d.startContainer.setText(c);b.remove()}a.remove()}}}(),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,function(){function b(a){if(!(arguments.length<1)){this.range=a;this.forceBrBreak=0;this.enlargeBr=1;this.enforceRealBlocks=0;this._||(this._={})}}function d(a,b,e){for(a=a.getNextSourceNode(b,null,e);!c(a);)a=a.getNextSourceNode(b,null,e);return a}var a=/^[\r\n\t ]+$/,c=CKEDITOR.dom.walker.bookmark(false,true),f=CKEDITOR.dom.walker.whitespaces(true),e=function(a){return c(a)&&f(a)};b.prototype=
{getNextParagraph:function(b){b=b||"p";if(!CKEDITOR.dtd[this.range.root.getName()][b])return null;var f,g,j,l,n,o;if(!this._.started){g=this.range.clone();g.shrink(CKEDITOR.NODE_ELEMENT,true);l=g.endContainer.hasAscendant("pre",true)||g.startContainer.hasAscendant("pre",true);g.enlarge(this.forceBrBreak&&!l||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(!g.collapsed){l=new CKEDITOR.dom.walker(g.clone());var m=CKEDITOR.dom.walker.bookmark(true,true);l.evaluator=
m;this._.nextNode=l.next();l=new CKEDITOR.dom.walker(g.clone());l.evaluator=m;l=l.previous();this._.lastNode=l.getNextSourceNode(true);if(this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()){m=this.range.clone();m.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END);if(m.checkEndOfBlock()){m=new CKEDITOR.dom.elementPath(m.endContainer,m.root);this._.lastNode=(m.block||m.blockLimit).getNextSourceNode(true)}}if(!this._.lastNode){this._.lastNode=
this._.docEndMarker=g.document.createText("");this._.lastNode.insertAfter(l)}g=null}this._.started=1}m=this._.nextNode;l=this._.lastNode;for(this._.nextNode=null;m;){var k=0,p=m.hasAscendant("pre"),s=m.type!=CKEDITOR.NODE_ELEMENT,r=0;if(s)m.type==CKEDITOR.NODE_TEXT&&a.test(m.getText())&&(s=0);else{var t=m.getName();if(m.isBlockBoundary(this.forceBrBreak&&!p&&{br:1})){if(t=="br")s=1;else if(!g&&!m.getChildCount()&&t!="hr"){f=m;j=m.equals(l);break}if(g){g.setEndAt(m,CKEDITOR.POSITION_BEFORE_START);
if(t!="br")this._.nextNode=m}k=1}else{if(m.getFirst()){if(!g){g=this.range.clone();g.setStartAt(m,CKEDITOR.POSITION_BEFORE_START)}m=m.getFirst();continue}s=1}}if(s&&!g){g=this.range.clone();g.setStartAt(m,CKEDITOR.POSITION_BEFORE_START)}j=(!k||s)&&m.equals(l);if(g&&!k)for(;!m.getNext(e)&&!j;){t=m.getParent();if(t.isBlockBoundary(this.forceBrBreak&&!p&&{br:1})){k=1;s=0;j||t.equals(l);g.setEndAt(t,CKEDITOR.POSITION_BEFORE_END);break}m=t;s=1;j=m.equals(l);r=1}s&&g.setEndAt(m,CKEDITOR.POSITION_AFTER_END);
m=d(m,r,l);if((j=!m)||k&&g)break}if(!f){if(!g){this._.docEndMarker&&this._.docEndMarker.remove();return this._.nextNode=null}f=new CKEDITOR.dom.elementPath(g.startContainer,g.root);m=f.blockLimit;k={div:1,th:1,td:1};f=f.block;if(!f&&m&&!this.enforceRealBlocks&&k[m.getName()]&&g.checkStartOfBlock()&&g.checkEndOfBlock()&&!m.equals(g.root))f=m;else if(!f||this.enforceRealBlocks&&f.getName()=="li"){f=this.range.document.createElement(b);g.extractContents().appendTo(f);f.trim();g.insertNode(f);n=o=true}else if(f.getName()!=
"li"){if(!g.checkStartOfBlock()||!g.checkEndOfBlock()){f=f.clone(false);g.extractContents().appendTo(f);f.trim();o=g.splitBlock();n=!o.wasStartOfBlock;o=!o.wasEndOfBlock;g.insertNode(f)}}else if(!j)this._.nextNode=f.equals(l)?null:d(g.getBoundaryNodes().endNode,1,l)}if(n)(g=f.getPrevious())&&g.type==CKEDITOR.NODE_ELEMENT&&(g.getName()=="br"?g.remove():g.getLast()&&g.getLast().$.nodeName.toLowerCase()=="br"&&g.getLast().remove());if(o)(g=f.getLast())&&g.type==CKEDITOR.NODE_ELEMENT&&g.getName()=="br"&&
(CKEDITOR.env.ie||g.getPrevious(c)||g.getNext(c))&&g.remove();if(!this._.nextNode)this._.nextNode=j||f.equals(l)||!l?null:d(f,1,l);return f}};CKEDITOR.dom.range.prototype.createIterator=function(){return new b(this)}}(),CKEDITOR.command=function(b,d){this.uiItems=[];this.exec=function(a){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return false;this.editorFocus&&b.focus();return this.fire("exec")===false?true:d.exec.call(this,b,a)!==false};this.refresh=function(a,b){if(!this.readOnly&&
a.readOnly)return true;if(this.context&&!b.isContextFor(this.context)){this.disable();return true}this.enable();return this.fire("refresh",{editor:a,path:b})===false?true:d.refresh&&d.refresh.apply(this,arguments)!==false};var a;this.checkAllowed=function(){return typeof a=="boolean"?a:a=b.filter.checkFeature(this)};CKEDITOR.tools.extend(this,d,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!d.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(b){if(this.state==b||!this.checkAllowed())return false;this.previousState=this.state;this.state=b;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 b(a,b,c,e,k){var h=b.name;if((e||typeof a.elements!="function"||a.elements(h))&&(!a.match||a.match(b))){if(e=!k){a:if(a.nothingRequired)e=true;else{if(k=a.requiredClasses){h=b.classes;for(e=0;e<k.length;++e)if(CKEDITOR.tools.indexOf(h,k[e])==-1){e=false;break a}}e=f(b.styles,a.requiredStyles)&&f(b.attributes,a.requiredAttributes)}e=!e}if(!e){if(!a.propertiesOnly)c.valid=true;if(!c.allAttributes)c.allAttributes=
d(a.attributes,b.attributes,c.validAttributes);if(!c.allStyles)c.allStyles=d(a.styles,b.styles,c.validStyles);if(!c.allClasses){a=a.classes;b=b.classes;e=c.validClasses;if(a)if(a===true)b=true;else{for(var k=0,h=b.length,g;k<h;++k){g=b[k];e[g]||(e[g]=a(g))}b=false}else b=false;c.allClasses=b}}}}function d(a,b,c){if(!a)return false;if(a===true)return true;for(var e in b)c[e]||(c[e]=a(e,b[e]));return false}function a(a,b){if(!a)return false;if(a===true)return a;if(typeof a=="string"){a=w(a);return a==
"*"?true:CKEDITOR.tools.convertArrayToObject(a.split(b))}if(CKEDITOR.tools.isArray(a))return a.length?CKEDITOR.tools.convertArrayToObject(a):false;var c={},e=0,d;for(d in a){c[d]=a[d];e++}return e?c:false}function c(a){if(a._.filterFunction)return a._.filterFunction;var c=/^cke:(object|embed|param)$/,e=/^(object|embed|param)$/;return a._.filterFunction=function(d,f,k,h,i,m,r){var n=d.name,s,o=false;if(i)d.name=n=n.replace(c,"$1");if(k=k&&k[n]){g(d);for(n=0;n<k.length;++n)p(a,d,k[n]);j(d)}if(f){var n=
d.name,k=f.elements[n],t=f.generic,f={valid:false,validAttributes:{},validClasses:{},validStyles:{},allAttributes:false,allClasses:false,allStyles:false};if(!k&&!t){h.push(d);return true}g(d);if(k){n=0;for(s=k.length;n<s;++n)b(k[n],d,f,true,m)}if(t){n=0;for(s=t.length;n<s;++n)b(t[n],d,f,false,m)}if(!f.valid){h.push(d);return true}m=f.validAttributes;n=f.validStyles;k=f.validClasses;s=d.attributes;var t=d.styles,y=s["class"],v=s.style,x,A,w=[],M=[],q=/^data-cke-/,C=false;delete s.style;delete s["class"];
if(!f.allAttributes)for(x in s)if(!m[x])if(q.test(x)){if(x!=(A=x.replace(/^data-cke-saved-/,""))&&!m[A]){delete s[x];C=true}}else{delete s[x];C=true}if(f.allStyles){if(v)s.style=v}else{for(x in t)n[x]?w.push(x+":"+t[x]):C=true;if(w.length)s.style=w.sort().join("; ")}if(f.allClasses)y&&(s["class"]=y);else{for(x in k)k[x]&&M.push(x);M.length&&(s["class"]=M.sort().join(" "));y&&M.length<y.split(/\s+/).length&&(C=true)}C&&(o=true);if(!r&&!l(d)){h.push(d);return true}}if(i)d.name=d.name.replace(e,"cke:$1");
return o}}function f(a,b){if(!b)return true;for(var c=0;c<b.length;++c)if(!(b[c]in a))return false;return true}function e(a){if(!a)return{};for(var a=a.split(/\s*,\s*/).sort(),b={};a.length;)b[a.shift()]=q;return b}function h(a){for(var b,c,e,d,f={},k=1,a=w(a);b=a.match(B);){if(c=b[2]){e=i(c,"styles");d=i(c,"attrs");c=i(c,"classes")}else e=d=c=null;f["$"+k++]={elements:b[1],classes:c,styles:e,attributes:d};a=a.slice(b[0].length)}return f}function i(a,b){var c=a.match(x[b]);return c?w(c[1]):null}function g(a){if(!a.styles)a.styles=
CKEDITOR.tools.parseCssText(a.attributes.style||"",1);if(!a.classes)a.classes=a.attributes["class"]?a.attributes["class"].split(/\s+/):[]}function j(a){var b=a.attributes,c;delete b.style;delete b["class"];if(c=CKEDITOR.tools.writeCssText(a.styles,true))b.style=c;a.classes.length&&(b["class"]=a.classes.sort().join(" "))}function l(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 n(a){return!a?
false:a===true?true:function(b){return b in a}}function o(){return new CKEDITOR.htmlParser.element("br")}function m(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.name=="br"||A.$block[a.name])}function k(a,b,c){var e=a.name;if(A.$empty[e]||!a.children.length)if(e=="hr"&&b=="br")a.replaceWith(o());else{a.parent&&c.push({check:"it",el:a.parent});a.remove()}else if(A.$block[e]||e=="tr")if(b=="br"){if(a.previous&&!m(a.previous)){b=o();b.insertBefore(a)}if(a.next&&!m(a.next)){b=o();b.insertAfter(a)}a.replaceWithChildren()}else{var e=
a.children,d;b:{d=A[b];for(var f=0,k=e.length,h;f<k;++f){h=e[f];if(h.type==CKEDITOR.NODE_ELEMENT&&!d[h.name]){d=false;break b}}d=true}if(d){a.name=b;a.attributes={};c.push({check:"parent-down",el:a})}else{d=a.parent;for(var f=d.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||d.name=="body",g,k=e.length;k>0;){h=e[--k];if(f&&(h.type==CKEDITOR.NODE_TEXT||h.type==CKEDITOR.NODE_ELEMENT&&A.$inline[h.name])){if(!g){g=new CKEDITOR.htmlParser.element(b);g.insertAfter(a);c.push({check:"parent-down",el:g})}g.add(h,0)}else{g=
null;h.insertAfter(a);d.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(h.type==CKEDITOR.NODE_ELEMENT&&!A[d.name][h.name])&&c.push({check:"el-up",el:h})}}a.remove()}}else if(e=="style")a.remove();else{a.parent&&c.push({check:"it",el:a.parent});a.replaceWithChildren()}}function p(a,b,c){var e,d;for(e=0;e<c.length;++e){d=c[e];if((!d.check||a.check(d.check,false))&&(!d.left||d.left(b))){d.right(b,C);break}}}function s(a,b){var c=b.getDefinition(),e=c.attributes,d=c.styles,f,k,h,g;if(a.name!=c.element)return false;
for(f in e)if(f=="class"){c=e[f].split(/\s+/);for(h=a.classes.join("|");g=c.pop();)if(h.indexOf(g)==-1)return false}else if(a.attributes[f]!=e[f])return false;for(k in d)if(a.styles[k]!=d[k])return false;return true}function r(a,b){var c,e;if(typeof a=="string")c=a;else if(a instanceof CKEDITOR.style)e=a;else{c=a[0];e=a[1]}return[{element:c,left:e,right:function(a,c){c.transform(a,b)}}]}function t(a){return function(b){return s(b,a)}}function y(a){return function(b,c){c[a](b)}}var A=CKEDITOR.dtd,
v=CKEDITOR.tools.copy,w=CKEDITOR.tools.trim,q="cke-test";CKEDITOR.filter=function(a){this.allowedContent=[];this.disabled=false;this.editor=null;this.enterMode=CKEDITOR.ENTER_P;this._={rules:{},transformations:{},cachedTests:{}};if(a instanceof CKEDITOR.editor){var b=this.editor=a;this.customConfig=true;var a=b.config.allowedContent,c;if(a===true)this.disabled=true;else{if(!a)this.customConfig=false;this.enterMode=c=b.blockless?CKEDITOR.ENTER_BR:b.config.enterMode;var e=["br"],d=b.blockless?CKEDITOR.ENTER_BR:
b.config.shiftEnterMode;(c==CKEDITOR.ENTER_P||d==CKEDITOR.ENTER_P)&&e.push("p");(c==CKEDITOR.ENTER_DIV||d==CKEDITOR.ENTER_DIV)&&e.push("div");this.allow(e.join(" "),"default",1);this.allow(a,"config",1);this.allow(b.config.extraAllowedContent,"extra",1);this._.toHtmlListener=b.on("toHtml",function(a){this.applyTo(a.data.dataValue,true,a.data.dontFilter)&&b.fire("dataFiltered")},this,null,6);this._.toDataFormatListener=b.on("toDataFormat",function(a){this.applyTo(a.data.dataValue,false,true)},this,
null,11)}}else{this.customConfig=false;this.allow(a,"default",1)}};CKEDITOR.filter.prototype={allow:function(b,c,e){if(this.disabled||this.customConfig&&!e||!b)return false;this._.cachedChecks={};var d,f;if(typeof b=="string")b=h(b);else if(b instanceof CKEDITOR.style){f=b.getDefinition();e={};b=f.attributes;e[f.element]=f={styles:f.styles,requiredStyles:f.styles&&CKEDITOR.tools.objectKeys(f.styles)};if(b){b=v(b);f.classes=b["class"]?b["class"].split(/\s+/):null;f.requiredClasses=f.classes;delete b["class"];
f.attributes=b;f.requiredAttributes=b&&CKEDITOR.tools.objectKeys(b)}b=e}else if(CKEDITOR.tools.isArray(b)){for(d=0;d<b.length;++d)f=this.allow(b[d],c,e);return f}var k,e=[];for(k in b){f=b[k];f=typeof f=="boolean"?{}:typeof f=="function"?{match:f}:v(f);if(k.charAt(0)!="$")f.elements=k;if(c)f.featureName=c.toLowerCase();var g=f;g.elements=a(g.elements,/\s+/)||null;g.propertiesOnly=g.propertiesOnly||g.elements===true;var i=/\s*,\s*/,p=void 0;for(p in u){g[p]=a(g[p],i)||null;var j=g,m=z[p],l=a(g[z[p]],
i),r=g[p],s=[],o=true,t=void 0;l?o=false:l={};for(t in r)if(t.charAt(0)=="!"){t=t.slice(1);s.push(t);l[t]=true;o=false}for(;t=s.pop();){r[t]=r["!"+t];delete r["!"+t]}j[m]=(o?false:l)||null}g.match=g.match||null;this.allowedContent.push(f);e.push(f)}c=this._.rules;k=c.elements||{};b=c.generic||[];f=0;for(g=e.length;f<g;++f){i=v(e[f]);p=i.classes===true||i.styles===true||i.attributes===true;j=i;m=void 0;for(m in u)j[m]=n(j[m]);l=true;for(m in z){m=z[m];j[m]=CKEDITOR.tools.objectKeys(j[m]);j[m]&&(l=
false)}j.nothingRequired=l;if(i.elements===true||i.elements===null){i.elements=n(i.elements);b[p?"unshift":"push"](i)}else{j=i.elements;delete i.elements;for(d in j)if(k[d])k[d][p?"unshift":"push"](i);else k[d]=[i]}}c.elements=k;c.generic=b.length?b:null;return true},applyTo:function(a,b,e){var d=[],f=!e&&this._.rules,h=this._.transformations,g=c(this),i=this.editor&&this.editor.config.protectedSource,p=false;a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if(!b||!(a.name=="span"&&~CKEDITOR.tools.objectKeys(a.attributes).join("|").indexOf("data-cke-")))g(a,
f,h,d,b)&&(p=true)}else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var c;a:{var e=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));c=[];var k,j,m;if(i)for(j=0;j<i.length;++j)if((m=e.match(i[j]))&&m[0].length==e.length){c=true;break a}e=CKEDITOR.htmlParser.fragment.fromHtml(e);e.children.length==1&&(k=e.children[0]).type==CKEDITOR.NODE_ELEMENT&&g(k,f,h,c,b);c=!c.length}c||d.push(a)}},null,true);d.length&&(p=true);for(var j,m,a=[],e=["p","br","div"][this.enterMode-
1];j=d.pop();)j.type==CKEDITOR.NODE_ELEMENT?k(j,e,a):j.remove();for(;m=a.pop();){j=m.el;if(j.parent)switch(m.check){case "it":A.$removeEmpty[j.name]&&!j.children.length?k(j,e,a):l(j)||k(j,e,a);break;case "el-up":j.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!A[j.parent.name][j.name]&&k(j,e,a);break;case "parent-down":j.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!A[j.parent.name][j.name]&&k(j.parent,e,a)}}return p},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;this._.toHtmlListener&&this._.toHtmlListener.removeListener();this._.toDataFormatListener&&this._.toDataFormatListener.removeListener()},addContentForms:function(a){if(!this.disabled&&a){var b,c,e=[],d;for(b=0;b<a.length&&!d;++b){c=a[b];if((typeof c=="string"||c instanceof CKEDITOR.style)&&this.check(c))d=c}if(d){for(b=0;b<a.length;++b)e.push(r(a[b],d));this.addTransformations(e)}}},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 this.customConfig&&a.requiredContent?this.check(a.requiredContent):true},addTransformations:function(a){var b,c;if(!this.disabled&&a){var e=this._.transformations,d;for(d=0;d<a.length;++d){b=a[d];var f=void 0,k=void 0,h=void 0,g=void 0,i=void 0,p=void 0;c=[];for(k=0;k<b.length;++k){h=b[k];if(typeof h=="string"){h=
h.split(/\s*:\s*/);g=h[0];i=null;p=h[1]}else{g=h.check;i=h.left;p=h.right}if(!f){f=h;f=f.element?f.element:g?g.match(/^([a-z0-9]+)/i)[0]:f.left.getDefinition().element}i instanceof CKEDITOR.style&&(i=t(i));c.push({check:g==f?null:g,left:i,right:typeof p=="string"?y(p):p})}b=f;e[b]||(e[b]=[]);e[b].push(c)}}},check:function(a,b,d){if(this.disabled)return true;if(CKEDITOR.tools.isArray(a)){for(var f=a.length;f--;)if(this.check(a[f],b,d))return true;return false}var k,g;if(typeof a=="string"){g=a+"<"+
(b===false?"0":"1")+(d?"1":"0")+">";if(g in this._.cachedChecks)return this._.cachedChecks[g];f=h(a).$1;k=f.styles;var i=f.classes;f.name=f.elements;f.classes=i=i?i.split(/\s*,\s*/):[];f.styles=e(k);f.attributes=e(f.attributes);f.children=[];i.length&&(f.attributes["class"]=i.join(" "));if(k)f.attributes.style=CKEDITOR.tools.writeCssText(f.styles);k=f}else{f=a.getDefinition();k=f.styles;i=f.attributes||{};if(k){k=v(k);i.style=CKEDITOR.tools.writeCssText(k,true)}else k={};k={name:f.element,attributes:i,
classes:i["class"]?i["class"].split(/\s+/):[],styles:k,children:[]}}var i=CKEDITOR.tools.clone(k),m=[],l;if(b!==false&&(l=this._.transformations[k.name])){for(f=0;f<l.length;++f)p(this,k,l[f]);j(k)}c(this)(i,this._.rules,b===false?false:this._.transformations,m,false,!d,!d);b=m.length>0?false:CKEDITOR.tools.objectCompare(k.attributes,i.attributes,true)?true:false;typeof a=="string"&&(this._.cachedChecks[g]=b);return b}};var u={styles:1,attributes:1,classes:1},z={styles:"requiredStyles",attributes:"requiredAttributes",
classes:"requiredClasses"},B=/^([a-z0-9*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,x={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},C=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,c){c=c||b;if(!(c in a.styles)){var e=a.attributes[b];
if(e){/^\d+$/.test(e)&&(e=e+"px");a.styles[c]=e}}delete a.attributes[b]},lengthToAttribute:function(a,b,c){c=c||b;if(!(c in a.attributes)){var e=a.styles[b],f=e&&e.match(/^(\d+)(?:\.\d*)?px$/);f?a.attributes[c]=f[1]:e==q&&(a.attributes[c]=q)}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:s,transform:function(a,b){if(typeof b=="string")a.name=b;else{var c=b.getDefinition(),e=c.styles,f=c.attributes,d,k,h,g;a.name=c.element;for(d in f)if(d=="class"){c=a.classes.join("|");for(h=f[d].split(/\s+/);g=h.pop();)c.indexOf(g)==-1&&a.classes.push(g)}else a.attributes[d]=f[d];for(k in e)a.styles[k]=e[k]}}}}(),function(){CKEDITOR.focusManager=function(b){if(b.focusManager)return b.focusManager;this.hasFocus=false;
this.currentActive=null;this._={editor:b};return this};CKEDITOR.focusManager._={blurDelay:200};CKEDITOR.focusManager.prototype={focus:function(){this._.timer&&clearTimeout(this._.timer);if(!this.hasFocus&&!this._.locked){var b=CKEDITOR.currentInstance;b&&b.focusManager.blur(1);this.hasFocus=true;(b=this._.editor.container)&&b.addClass("cke_focus");this._.editor.fire("focus")}},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(b){function d(){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 a=CKEDITOR.focusManager._.blurDelay;b||!a?d.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;d.call(this)},a,this)}},add:function(b,d){var a=b.getCustomData("focusmanager");if(!a||a!=this){a&&a.remove(b);var a="focus",c="blur";if(d)if(CKEDITOR.env.ie){a="focusin";c="focusout"}else CKEDITOR.event.useCapture=1;var f=
{blur:function(){b.equals(this.currentActive)&&this.blur()},focus:function(){this.currentActive=b;this.focus()}};b.on(a,f.focus,this);b.on(c,f.blur,this);if(d)CKEDITOR.event.useCapture=0;b.setCustomData("focusmanager",this);b.setCustomData("focusmanager_handlers",f)}},remove:function(b){b.removeCustomData("focusmanager");var d=b.removeCustomData("focusmanager_handlers");b.removeListener("blur",d.blur);b.removeListener("focus",d.focus)}}}(),CKEDITOR.keystrokeHandler=function(b){if(b.keystrokeHandler)return b.keystrokeHandler;
this.keystrokes={};this.blockedKeystrokes={};this._={editor:b};return this},function(){var b,d=function(a){var a=a.data,f=a.getKeystroke(),e=this.keystrokes[f],d=this._.editor;b=d.fire("key",{keyCode:f})===false;if(!b){e&&(b=d.execCommand(e,{from:"keystrokeHandler"})!==false);b||(b=!!this.blockedKeystrokes[f])}b&&a.preventDefault(true);return!b},a=function(a){if(b){b=false;a.data.preventDefault(true)}};CKEDITOR.keystrokeHandler.prototype={attach:function(b){b.on("keydown",d,this);if(CKEDITOR.env.opera||
CKEDITOR.env.gecko&&CKEDITOR.env.mac)b.on("keypress",a,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,ug:1,uk:1,vi:1,"zh-cn":1,zh:1},load:function(b,d,a){if(!b||!CKEDITOR.lang.languages[b])b=
this.detect(d,b);this[b]?a(b,this[b]):CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+b+".js"),function(){a(b,this[b])},this)},detect:function(b,d){var a=this.languages,d=d||navigator.userLanguage||navigator.language||b,c=d.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),f=c[1],c=c[2];a[f+"-"+c]?f=f+"-"+c:a[f]||(f=null);CKEDITOR.lang.detect=f?function(){return f}:function(a){return a};return f||b}}}(),CKEDITOR.scriptLoader=function(){var b={},d={};return{load:function(a,c,f,e){var h=typeof a=="string";
h&&(a=[a]);f||(f=CKEDITOR);var i=a.length,g=[],j=[],l=function(a){c&&(h?c.call(f,a):c.call(f,g,j))};if(i===0)l(true);else{var n=function(a,b){(b?g:j).push(a);if(--i<=0){e&&CKEDITOR.document.getDocumentElement().removeStyle("cursor");l(b)}},o=function(a,c){b[a]=1;var e=d[a];delete d[a];for(var f=0;f<e.length;f++)e[f](a,c)},m=function(a){if(b[a])n(a,true);else{var e=d[a]||(d[a]=[]);e.push(n);if(!(e.length>1)){var f=new CKEDITOR.dom.element("script");f.setAttributes({type:"text/javascript",src:a});if(c)if(CKEDITOR.env.ie)f.$.onreadystatechange=
function(){if(f.$.readyState=="loaded"||f.$.readyState=="complete"){f.$.onreadystatechange=null;o(a,true)}};else{f.$.onload=function(){setTimeout(function(){o(a,true)},0)};f.$.onerror=function(){o(a,false)}}f.appendTo(CKEDITOR.document.getHead())}}};e&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var k=0;k<i;k++)m(a[k])}},queue:function(){function a(){var a;(a=b[0])&&this.load(a.scriptUrl,a.callback,CKEDITOR,0)}var b=[];return function(f,e){var d=this;b.push({scriptUrl:f,callback:function(){e&&
e.apply(this,arguments);b.shift();a.call(d)}});b.length==1&&a.call(this)}}()}}(),CKEDITOR.resourceManager=function(b,d){this.basePath=b;this.fileName=d;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(b,d){if(this.registered[b])throw'[CKEDITOR.resourceManager.add] The resource name "'+b+'" is already registered.';var a=this.registered[b]=d||{};a.name=b;a.path=this.getPath(b);CKEDITOR.fire(b+CKEDITOR.tools.capitalize(this.fileName)+
"Ready",a);return this.get(b)},get:function(b){return this.registered[b]||null},getPath:function(b){var d=this.externals[b];return CKEDITOR.getUrl(d&&d.dir||this.basePath+b+"/")},getFilePath:function(b){var d=this.externals[b];return CKEDITOR.getUrl(this.getPath(b)+(d&&typeof d.file=="string"?d.file:this.fileName+".js"))},addExternal:function(b,d,a){for(var b=b.split(","),c=0;c<b.length;c++)this.externals[b[c]]={dir:d,file:a}},load:function(b,d,a){CKEDITOR.tools.isArray(b)||(b=b?[b]:[]);for(var c=
this.loaded,f=this.registered,e=[],h={},i={},g=0;g<b.length;g++){var j=b[g];if(j)if(!c[j]&&!f[j]){var l=this.getFilePath(j);e.push(l);l in h||(h[l]=[]);h[l].push(j)}else i[j]=this.get(j)}CKEDITOR.scriptLoader.load(e,function(b,e){if(e.length)throw'[CKEDITOR.resourceManager.load] Resource name "'+h[e[0]].join(",")+'" was not found at "'+e[0]+'".';for(var f=0;f<b.length;f++)for(var k=h[b[f]],g=0;g<k.length;g++){var j=k[g];i[j]=this.get(j);c[j]=1}d.call(a,i)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/",
"plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(b){var d={};return function(a,c,f){var e={},h=function(a){b.call(this,a,function(a){CKEDITOR.tools.extend(e,a);var b=[],i;for(i in a){var n=a[i],o=n&&n.requires;if(!d[i]){if(n.icons)for(var m=n.icons.split(","),k=m.length;k--;)CKEDITOR.skin.addIcon(m[k],n.path+"icons/"+(CKEDITOR.env.hidpi&&n.hidpi?"hidpi/":"")+m[k]+".png");d[i]=1}if(o){o.split&&(o=o.split(","));for(n=0;n<o.length;n++)e[o[n]]||b.push(o[n])}}if(b.length)h.call(this,
b);else{for(i in e){n=e[i];if(n.onLoad&&!n.onLoad._called){n.onLoad()===false&&delete e[i];n.onLoad._called=1}}c&&c.call(f||window,e)}},this)};h.call(this,a)}}),CKEDITOR.plugins.setLang=function(b,d,a){var c=this.get(b),b=c.langEntries||(c.langEntries={}),c=c.lang||(c.lang=[]);c.split&&(c=c.split(","));CKEDITOR.tools.indexOf(c,d)==-1&&c.push(d);b[d]=a},CKEDITOR.ui=function(b){if(b.ui)return b.ui;this.items={};this.instances={};this.editor=b;this._={handlers:{}};return this},CKEDITOR.ui.prototype=
{add:function(b,d,a){a.name=b.toLowerCase();var c=this.items[b]={type:d,command:a.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(c,a)},get:function(b){return this.instances[b]},create:function(b){var d=this.items[b],a=d&&this._.handlers[d.type],c=d&&d.command&&this.editor.getCommand(d.command),a=a&&a.create.apply(this,d.args);this.instances[b]=a;c&&c.uiItems.push(a);if(a&&!a.type)a.type=d.type;return a},addHandler:function(b,d){this._.handlers[b]=d},space:function(b){return CKEDITOR.document.getById(this.spaceId(b))},
spaceId:function(b){return this.editor.id+"_"+b}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function b(b,c,e){CKEDITOR.event.call(this);b=b&&CKEDITOR.tools.clone(b);if(c!==void 0){if(c instanceof CKEDITOR.dom.element){if(!e)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&&e==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!(e==
CKEDITOR.ELEMENT_MODE_INLINE?c.is(CKEDITOR.dtd.$editable)||c.is("textarea"):e==CKEDITOR.ELEMENT_MODE_REPLACE?!c.is(CKEDITOR.dtd.$nonBodyContent):1))throw Error('The specified element mode is not supported on element: "'+c.getName()+'".');this.element=c;this.elementMode=e;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(c.getId()||c.getNameAtt())}else this.elementMode=CKEDITOR.ELEMENT_MODE_NONE;this._={};this.commands={};this.templates={};this.name=this.name||d();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",a);this.on("selectionChange",f);this.on("mode",a);this.on("instanceReady",function(){this.config.startupFocus&&this.focus()});CKEDITOR.fire("instanceCreated",null,this);CKEDITOR.add(this);CKEDITOR.tools.setTimeout(function(){h(this,b)},0,this)}function d(){do var a=
"editor"+ ++o;while(CKEDITOR.instances[a]);return a}function a(){var a=this.commands,b;for(b in a)c(this,a[b])}function c(a,b){b[b.startDisabled?"disable":a.readOnly&&!b.readOnly?"disable":b.modes[a.mode]?"enable":"disable"]()}function f(a){var b=this.commands,c=a.editor,e=a.data.path,f;for(f in b){a=b[f];a.contextSensitive&&a.refresh(c,e)}}function e(a){var b=a.config.customConfig;if(!b)return false;var b=CKEDITOR.getUrl(b),c=m[b]||(m[b]={});if(c.fn){c.fn.call(a,a.config);(CKEDITOR.getUrl(a.config.customConfig)==
b||!e(a))&&a.fireOnce("customConfigLoaded")}else CKEDITOR.scriptLoader.queue(b,function(){c.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};e(a)});return true}function h(a,b){a.on("customConfigLoaded",function(){if(b){if(b.on)for(var c in b.on)a.on(c,b.on[c]);CKEDITOR.tools.extend(a.config,b,true);delete a.config.on}a.readOnly=!(!a.config.readOnly&&!(a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.is("textarea")?a.element.hasAttribute("disabled"):a.element.isReadOnly():a.elementMode==
CKEDITOR.ELEMENT_MODE_REPLACE&&a.element.hasAttribute("disabled")));a.blockless=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?!(a.element.is("textarea")||CKEDITOR.dtd[a.element.getName()].p):false;a.tabIndex=a.config.tabIndex||a.element&&a.element.getAttribute("tabindex")||0;if(a.config.skin)CKEDITOR.skinName=a.config.skin;a.fireOnce("configLoaded");a.dataProcessor=new CKEDITOR.htmlDataProcessor(a);a.filter=new CKEDITOR.filter(a);i(a)});if(b&&b.customConfig!=void 0)a.config.customConfig=b.customConfig;
e(a)||a.fireOnce("customConfigLoaded")}function i(a){CKEDITOR.skin.loadPart("editor",function(){g(a)})}function g(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(b,c){var e=a.config.title;a.langCode=b;a.lang=CKEDITOR.tools.prototypedCopy(c);a.title=typeof e=="string"||e===false?e:[a.lang.editor,a.name].join(", ");if(CKEDITOR.env.gecko&&CKEDITOR.env.version<10900&&a.lang.dir=="rtl")a.lang.dir="ltr";if(!a.config.contentsLangDirection)a.config.contentsLangDirection=a.elementMode==
CKEDITOR.ELEMENT_MODE_INLINE?a.element.getDirection(1):a.lang.dir;a.fire("langLoaded");j(a)})}function j(a){a.getStylesSet(function(b){a.once("loaded",function(){a.fire("stylesSet",{styles:b})},null,null,1);l(a)})}function l(a){var b=a.config,c=b.plugins,e=b.extraPlugins,f=b.removePlugins;if(e)var d=RegExp("(?:^|,)(?:"+e.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),c=c.replace(d,""),c=c+(","+e);if(f)var h=RegExp("(?:^|,)(?:"+f.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),c=c.replace(h,"");CKEDITOR.env.air&&
(c=c+",adobeair");CKEDITOR.plugins.load(c.split(","),function(c){var e=[],f=[],d=[];a.plugins=c;for(var g in c){var i=c[g],j=i.lang,m=null,n=i.requires,l;CKEDITOR.tools.isArray(n)&&(n=n.join(","));if(n&&(l=n.match(h)))for(;n=l.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,[n,g]);if(j&&!a.lang[g]){j.split&&(j=j.split(","));if(CKEDITOR.tools.indexOf(j,a.langCode)>=
0)m=a.langCode;else{m=a.langCode.replace(/-.*/,"");m=m!=a.langCode&&CKEDITOR.tools.indexOf(j,m)>=0?m:CKEDITOR.tools.indexOf(j,"en")>=0?"en":j[0]}if(!i.langEntries||!i.langEntries[m])d.push(CKEDITOR.getUrl(i.path+"lang/"+m+".js"));else{a.lang[g]=i.langEntries[m];m=null}}f.push(m);e.push(i)}CKEDITOR.scriptLoader.load(d,function(){for(var c=["beforeInit","init","afterInit"],d=0;d<c.length;d++)for(var h=0;h<e.length;h++){var g=e[h];d===0&&(f[h]&&g.lang&&g.langEntries)&&(a.lang[g.name]=g.langEntries[f[h]]);
if(g[c[d]])g[c[d]](a)}a.fireOnce("pluginsLoaded");b.keystrokes&&a.setKeystroke(a.config.keystrokes);for(h=0;h<a.config.blockedKeystrokes.length;h++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[h]]=1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)})})}function n(){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}b.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=b;var o=0,m={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(a,b){b.name=a.toLowerCase();var e=new CKEDITOR.command(this,b);this.mode&&c(this,e);return this.commands[a]=e},_attachToForm:function(){var a=this,b=a.element,c=new CKEDITOR.dom.element(b.$.form);if(b.is("textarea")&&c){var e=function(c){a.updateElement();a._.required&&(!b.getValue()&&a.fire("required")===false)&&c.data.preventDefault()};
c.on("submit",e);if(!c.$.submit.nodeName&&!c.$.submit.length)c.$.submit=CKEDITOR.tools.override(c.$.submit,function(a){return function(b){e(new CKEDITOR.dom.event(b));a.apply?a.apply(this,arguments):a()}});a.on("destroy",function(){c.removeListener("submit",e)})}},destroy:function(a){this.fire("beforeDestroy");!a&&n.call(this);this.editable(null);this.status="destroyed";this.fire("destroy");this.removeAllListeners();CKEDITOR.remove(this);CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(a){return(a=
a||this.getSelection().getStartElement())?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 c=this.getCommand(a),e={name:a,commandData:b,command:c};if(c&&c.state!=CKEDITOR.TRISTATE_DISABLED&&this.fire("beforeCommandExec",e)!==true){e.returnValue=c.exec(e.commandData);if(!c.async&&this.fire("afterCommandExec",e)!==true)return e.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"){var b=this.element;b&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(a=b.is("textarea")?b.getValue():b.getHtml())}return a},loadSnapshot:function(a){this.fire("loadSnapshot",
a)},setData:function(a,b,c){if(b)this.on("dataReady",function(a){a.removeListener();b.call(a.editor)});a={dataValue:a};!c&&this.fire("setData",a);this._.data=a.dataValue;!c&&this.fire("afterSetData",a)},setReadOnly:function(a){a=a==void 0||a;if(this.readOnly!=a){this.readOnly=a;this.keystrokeHandler.blockedKeystrokes[8]=+a;this.editable().setReadOnly(a);this.fire("readOnly")}},insertHtml:function(a,b){this.fire("insertHtml",{dataValue:a,mode:b})},insertText:function(a){this.fire("insertText",a)},
insertElement:function(a){this.fire("insertElement",a)},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return this.status=="ready"&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return n.call(this)},setKeystroke:function(){for(var a=this.keystrokeHandler.keystrokes,b=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],c,e,f=b.length;f--;){c=b[f];e=0;if(CKEDITOR.tools.isArray(c)){e=
c[1];c=c[0]}e?a[c]=e:delete a[c]}},addFeature:function(a){return this.filter.addFeature(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:RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)--\>)|(?:([^\\s>]+)\\s*((?:(?:\"[^\"]*\")|(?:'[^']*')|[^\"'>])*)\\/?>))","g")}},function(){var b=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,d=
{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(a){for(var c,f,e=0,h;c=this._.htmlPartsRegex.exec(a);){f=c.index;if(f>e){e=a.substring(e,f);if(h)h.push(e);else this.onText(e)}e=this._.htmlPartsRegex.lastIndex;if(f=c[1]){f=f.toLowerCase();if(h&&CKEDITOR.dtd.$cdata[f]){this.onCDATA(h.join(""));
h=null}if(!h){this.onTagClose(f);continue}}if(h)h.push(c[0]);else if(f=c[3]){f=f.toLowerCase();if(!/="/.test(f)){var i={},g;c=c[4];var j=!!(c&&c.charAt(c.length-1)=="/");if(c)for(;g=b.exec(c);){var l=g[1].toLowerCase();g=g[2]||g[3]||g[4]||"";i[l]=!g&&d[l]?l:g}this.onTagOpen(f,i,j);!h&&CKEDITOR.dtd.$cdata[f]&&(h=[])}}else if(f=c[2])this.onComment(f)}if(a.length>e)this.onText(a.substring(e,a.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(b){this._.output.push("<",
b)},openTagClose:function(b,d){d?this._.output.push(" />"):this._.output.push(">")},attribute:function(b,d){typeof d=="string"&&(d=CKEDITOR.tools.htmlEncodeAttr(d));this._.output.push(" ",b,'="',d,'"')},closeTag:function(b){this._.output.push("</",b,">")},text:function(b){this._.output.push(b)},comment:function(b){this._.output.push("<\!--",b,"--\>")},write:function(b){this._.output.push(b)},reset:function(){this._.output=[];this._.indent=false},getHtml:function(b){var d=this._.output.join("");b&&
this.reset();return d}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var b=this.parent.children,d=CKEDITOR.tools.indexOf(b,this),a=this.previous,c=this.next;a&&(a.next=c);c&&(c.previous=a);b.splice(d,1);this.parent=null},replaceWith:function(b){var d=this.parent.children,a=CKEDITOR.tools.indexOf(d,this),c=b.previous=this.previous,f=b.next=this.next;c&&(c.next=b);f&&(f.previous=b);d[a]=b;b.parent=this.parent;this.parent=null},
insertAfter:function(b){var d=b.parent.children,a=CKEDITOR.tools.indexOf(d,b),c=b.next;d.splice(a+1,0,this);this.next=b.next;this.previous=b;b.next=this;c&&(c.previous=this);this.parent=b.parent},insertBefore:function(b){var d=b.parent.children,a=CKEDITOR.tools.indexOf(d,b);d.splice(a,0,this);this.next=b;(this.previous=b.previous)&&(b.previous.next=this);b.previous=this;this.parent=b.parent}}}(),"use strict",CKEDITOR.htmlParser.comment=function(b){this.value=b;this._={isBlockLike:false}},CKEDITOR.htmlParser.comment.prototype=
CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(b){var d=this.value;if(!(d=b.onComment(d,this))){this.remove();return false}if(typeof d!="string"){this.replaceWith(d);return false}this.value=d;return true},writeHtml:function(b,d){d&&this.filter(d);b.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(b){this.value=b;this._={isBlockLike:false}};CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,
{type:CKEDITOR.NODE_TEXT,filter:function(b){if(!(this.value=b.onText(this.value,this))){this.remove();return false}},writeHtml:function(b,d){d&&this.filter(d);b.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(b){this.value=b};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(b){b.write(this.value)}})}(),"use strict",CKEDITOR.htmlParser.fragment=function(){this.children=
[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false}},function(){function b(a){return a.name=="a"&&a.attributes.href||CKEDITOR.dtd.$removeEmpty[a.name]}var d=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),a={ol:1,ul:1},c=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1});CKEDITOR.htmlParser.fragment.fromHtml=function(f,e,h){function i(a){var b;if(p.length>0)for(var c=
0;c<p.length;c++){var e=p[c],f=e.name,d=CKEDITOR.dtd[f],h=r.name&&CKEDITOR.dtd[r.name];if((!h||h[f])&&(!a||!d||d[a]||!CKEDITOR.dtd[a])){if(!b){g();b=1}e=e.clone();e.parent=r;r=e;p.splice(c,1);c--}else if(f==r.name){l(r,r.parent,1);c--}}}function g(){for(;s.length;)l(s.shift(),r)}function j(a){if(a._.isBlockLike&&a.name!="pre"&&a.name!="textarea"){var b=a.children.length,c=a.children[b-1],e;if(c&&c.type==CKEDITOR.NODE_TEXT)(e=CKEDITOR.tools.rtrim(c.value))?c.value=e:a.children.length=b-1}}function l(a,
c,e){var c=c||r||k,f=r;if(a.previous===void 0){if(n(c,a)){r=c;m.onTagOpen(h,{});a.returnPoint=c=r}j(a);(!b(a)||a.children.length)&&c.add(a);a.name=="pre"&&(y=false);a.name=="textarea"&&(t=false)}if(a.returnPoint){r=a.returnPoint;delete a.returnPoint}else r=e?c:f}function n(a,b){if((a==k||a.name=="body")&&h&&(!a.name||CKEDITOR.dtd[a.name][h])){var c,e;return(c=b.attributes&&(e=b.attributes["data-cke-real-element-type"])?e:b.name)&&c in CKEDITOR.dtd.$inline&&!(c in CKEDITOR.dtd.head)&&!b.isOrphan||
b.type==CKEDITOR.NODE_TEXT}}function o(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,k=e instanceof CKEDITOR.htmlParser.element?e:typeof e=="string"?new CKEDITOR.htmlParser.element(e):new CKEDITOR.htmlParser.fragment,p=[],s=[],r=k,t=k.name=="textarea",y=k.name=="pre";m.onTagOpen=function(e,f,h,k){f=new CKEDITOR.htmlParser.element(e,f);if(f.isUnknown&&h)f.isEmpty=true;f.isOptionalClose=k;if(b(f))p.push(f);
else{if(e=="pre")y=true;else{if(e=="br"&&y){r.add(new CKEDITOR.htmlParser.text("\n"));return}e=="textarea"&&(t=true)}if(e=="br")s.push(f);else{for(;;){k=(h=r.name)?CKEDITOR.dtd[h]||(r._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):c;if(!f.isUnknown&&!r.isUnknown&&!k[e])if(r.isOptionalClose)m.onTagClose(h);else if(e in a&&h in a){h=r.children;(h=h[h.length-1])&&h.name=="li"||l(h=new CKEDITOR.htmlParser.element("li"),r);!f.returnPoint&&(f.returnPoint=r);r=h}else if(e in CKEDITOR.dtd.$listItem&&!o(e,
h))m.onTagOpen(e=="li"?"ul":"dl",{},0,1);else if(h in d&&!o(e,h)){!f.returnPoint&&(f.returnPoint=r);r=r.parent}else{h in CKEDITOR.dtd.$inline&&p.unshift(r);if(r.parent)l(r,r.parent,1);else{f.isOrphan=1;break}}else break}i(e);g();f.parent=r;f.isEmpty?l(f):r=f}}};m.onTagClose=function(a){for(var b=p.length-1;b>=0;b--)if(a==p[b].name){p.splice(b,1);return}for(var c=[],e=[],f=r;f!=k&&f.name!=a;){f._.isBlockLike||e.unshift(f);c.push(f);f=f.returnPoint||f.parent}if(f!=k){for(b=0;b<c.length;b++){var d=c[b];
l(d,d.parent)}r=f;f._.isBlockLike&&g();l(f,f.parent);if(f==r)r=r.parent;p=p.concat(e)}a=="body"&&(h=false)};m.onText=function(b){if((!r._.hasInlineStarted||s.length)&&!y&&!t){b=CKEDITOR.tools.ltrim(b);if(b.length===0)return}var e=r.name,f=e?CKEDITOR.dtd[e]||(r._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):c;if(!t&&!f["#"]&&e in d){m.onTagOpen(e in a?"li":e=="dl"?"dd":e=="table"?"tr":e=="tr"?"td":"");m.onText(b)}else{g();i();!y&&!t&&(b=b.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));b=new CKEDITOR.htmlParser.text(b);
if(n(r,b))this.onTagOpen(h,{},0,1);r.add(b)}};m.onCDATA=function(a){r.add(new CKEDITOR.htmlParser.cdata(a))};m.onComment=function(a){g();i();r.add(new CKEDITOR.htmlParser.comment(a))};m.parse(f);for(g(!CKEDITOR.env.ie&&1);r!=k;)l(r,r.parent,1);j(k);return k};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){a.onRoot(this);this.filterChildren(a)},filterChildren:function(a,b){if(this.childrenFilteredBy!=a.id){if(b&&!this.parent)a.onRoot(this);this.childrenFilteredBy=a.id;for(var c=0;c<this.children.length;c++)this.children[c].filter(a)===
false&&c--}},writeHtml:function(a,b){b&&this.filter(b);this.writeChildrenHtml(a)},writeChildrenHtml:function(a,b,c){if(c&&!this.parent&&b)b.onRoot(this);b&&this.filterChildren(b);for(var b=0,c=this.children,d=c.length;b<d;b++)c[b].writeHtml(a)},forEach:function(a,b,c){!c&&(!b||this.type==b)&&a(this);for(var c=this.children,d,g=0,j=c.length;g<j;g++){d=c[g];d.type==CKEDITOR.NODE_ELEMENT?d.forEach(a,b):(!b||d.type==b)&&a(d)}}}}(),function(){function b(a,b){for(var c=0;a&&c<b.length;c++)var f=b[c],a=
a.replace(f[0],f[1]);return a}function d(a,b,c){typeof b=="function"&&(b=[b]);var f,d;d=a.length;var l=b&&b.length;if(l){for(f=0;f<d&&a[f].pri<=c;f++);for(d=l-1;d>=0;d--)if(l=b[d]){l.pri=c;a.splice(f,0,l)}}}function a(a,b,f){if(b)for(var d in b){var j=a[d];a[d]=c(j,b[d],f);j||a.$length++}}function c(a,b,c){if(b){b.pri=c;if(a){if(a.splice)d(a,b,c);else{a=a.pri>c?[b,a]:[a,b];a.filter=f}return a}return b.filter=b}}function f(a){for(var b=a.type||a instanceof CKEDITOR.htmlParser.fragment,c=0;c<this.length;c++){if(b)var f=
a.type,d=a.name;var l=this[c].apply(window,arguments);if(l===false)return l;if(b){if(l&&(l.name!=d||l.type!=f))return l}else if(typeof l!="string")return l;l!=void 0&&(a=l)}return a}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(a){this.id=CKEDITOR.tools.getNextNumber();this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};a&&this.addRules(a,10)},proto:{addRules:function(b,f){typeof f!="number"&&(f=10);d(this._.elementNames,b.elementNames,f);d(this._.attributeNames,
b.attributeNames,f);a(this._.elements,b.elements,f);a(this._.attributes,b.attributes,f);this._.text=c(this._.text,b.text,f)||this._.text;this._.comment=c(this._.comment,b.comment,f)||this._.comment;this._.root=c(this._.root,b.root,f)||this._.root},applyTo:function(a){a.filter(this)},onElementName:function(a){return b(a,this._.elementNames)},onAttributeName:function(a){return b(a,this._.attributeNames)},onText:function(a){var b=this._.text;return b?b.filter(a):a},onComment:function(a,b){var c=this._.comment;
return c?c.filter(a,b):a},onRoot:function(a){var b=this._.root;return b?b.filter(a):a},onElement:function(a){for(var b=[this._.elements["^"],this._.elements[a.name],this._.elements.$],c,f=0;f<3;f++)if(c=b[f]){c=c.filter(a,this);if(c===false)return null;if(c&&c!=a)return this.onNode(c);if(a.parent&&!a.name)break}return a},onNode:function(a){var b=a.type;return b==CKEDITOR.NODE_ELEMENT?this.onElement(a):b==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(a.value)):b==CKEDITOR.NODE_COMMENT?
new CKEDITOR.htmlParser.comment(this.onComment(a.value)):null},onAttribute:function(a,b,c){if(b=this._.attributes[b]){a=b.filter(c,a,this);if(a===false)return false;if(typeof a!="undefined")return a}return c}}})}(),function(){function b(b,d){function k(a){return a||CKEDITOR.env.ie?new CKEDITOR.htmlParser.text(" "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function j(b,f){return function(d){if(d.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var h=[],i=a(d),j,p;if(i)for(m(i,1)&&h.push(i);i;){if(e(i)&&
(j=c(i))&&m(j))if((p=c(j))&&!e(p))h.push(j);else{var l=j,r=k(n),s=l.parent.children,E=CKEDITOR.tools.indexOf(s,l);s.splice(E+1,0,r);s=l.next;l.next=r;r.previous=l;r.parent=l.parent;r.next=s;g(j)}i=i.previous}for(i=0;i<h.length;i++)g(h[i]);if(h=CKEDITOR.env.opera&&!b||(typeof f=="function"?f(d)!==false:f))if(!n&&CKEDITOR.env.ie&&d.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)h=false;else if(!n&&CKEDITOR.env.ie&&(document.documentMode>7||d.name in CKEDITOR.dtd.tr||d.name in CKEDITOR.dtd.$listItem))h=false;
else{h=a(d);h=!h||d.name=="form"&&h.name=="input"}h&&d.add(k(b))}}}function m(a,b){if((!n||!CKEDITOR.env.ie)&&a.type==CKEDITOR.NODE_ELEMENT&&a.name=="br"&&!a.attributes["data-cke-eol"])return true;var c;if(a.type==CKEDITOR.NODE_TEXT&&(c=a.value.match(y))){if(c.index){h(a,new CKEDITOR.htmlParser.text(a.value.substring(0,c.index)));a.value=c[0]}if(CKEDITOR.env.ie&&n&&(!b||a.parent.name in l))return true;if(!n)if((c=a.previous)&&c.name=="br"||!c||e(c))return true}return false}var p={elements:{}},n=d==
"html",l=CKEDITOR.tools.extend({},q),r;for(r in l)"#"in v[r]||delete l[r];for(r in l)p.elements[r]=j(n,b.config.fillEmptyBlocks!==false);p.root=j(n);p.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&&f(d);)d=d.next;var g=c(b);!d&&e(b.parent)?i(b.parent,k(a)):e(d)&&(g&&!e(g))&&h(d,k(a))}}}}(n);return p}function d(a){return a.enterMode!=CKEDITOR.ENTER_BR&&
a.autoParagraph!==false?a.enterMode==CKEDITOR.ENTER_DIV?"div":"p":false}function a(a){for(a=a.children[a.children.length-1];a&&f(a);)a=a.previous;return a}function c(a){for(a=a.previous;a&&f(a);)a=a.previous;return a}function f(a){return a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(a.value)||a.type==CKEDITOR.NODE_ELEMENT&&a.attributes["data-cke-bookmark"]}function e(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in q||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function h(a,b){var c=a.parent.children,
e=CKEDITOR.tools.indexOf(c,a);c.splice(e,0,b);c=a.previous;a.previous=b;b.next=a;b.parent=a.parent;if(c){b.previous=c;c.next=b}}function i(a,b){var c=a.children[a.children.length-1];a.children.push(b);b.parent=a;if(c){c.next=b;b.previous=c}}function g(a){var b=a.parent.children,c=CKEDITOR.tools.indexOf(b,a),e=a.previous,a=a.next;e&&(e.next=a);a&&(a.previous=e);b.splice(c,1)}function j(a){var b=a.parent;return b?CKEDITOR.tools.indexOf(b.children,a):-1}function l(a){a=a.attributes;a.contenteditable!=
"false"&&(a["data-cke-editable"]=a.contenteditable?"true":1);a.contenteditable="false"}function n(a){a=a.attributes;switch(a["data-cke-editable"]){case "true":a.contenteditable="true";break;case "1":delete a.contenteditable}}function o(a){return a.replace(x,function(a,b,c){return"<"+b+c.replace(C,function(a,b){if(!/^on/.test(b)&&c.indexOf("data-cke-saved-"+b)==-1){a=a.slice(1);return" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a}return a})+">"})}function m(a,b){return a.replace(b,function(a,
b,c){a.indexOf("<textarea")===0&&(a=b+s(c).replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</textarea>");return"<cke:encoded>"+encodeURIComponent(a)+"</cke:encoded>"})}function k(a){return a.replace(E,function(a,b){return decodeURIComponent(b)})}function p(a){return a.replace(/<\!--(?!{cke_protected})[\s\S]+?--\>/g,function(a){return"<\!--"+A+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\>"})}function s(a){return a.replace(/<\!--\{cke_protected\}\{C\}([\s\S]+?)--\>/g,function(a,b){return decodeURIComponent(b)})}
function r(a,b){var c=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 c&&c[b]||""})}function t(a,b){for(var c=[],e=b.config.protectedSource,f=b._.dataStore||(b._.dataStore={id:1}),d=/<\!--\{cke_temp(comment)?\}(\d*?)--\>/g,e=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(e),a=a.replace(/<\!--[\s\S]*?--\>/g,function(a){return"<\!--{cke_tempcomment}"+
(c.push(a)-1)+"--\>"}),g=0;g<e.length;g++)a=a.replace(e[g],function(a){a=a.replace(d,function(a,b,e){return c[e]});return/cke_temp(comment)?/.test(a)?a:"<\!--{cke_temp}"+(c.push(a)-1)+"--\>"});a=a.replace(d,function(a,b,e){return"<\!--"+A+(b?"{C}":"")+encodeURIComponent(c[e]).replace(/--/g,"%2D%2D")+"--\>"});return a.replace(/(['"]).*?\1/g,function(a){return a.replace(/<\!--\{cke_protected\}([\s\S]+?)--\>/g,function(a,b){f[f.id]=decodeURIComponent(b);return"{cke_protected_"+f.id++ +"}"})})}CKEDITOR.htmlDataProcessor=
function(a){var c,e,f=this;this.editor=a;this.dataFilter=c=new CKEDITOR.htmlParser.filter;this.htmlFilter=e=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;c.addRules(u);c.addRules(b(a,"data"));e.addRules(z);e.addRules(b(a,"html"));a.on("toHtml",function(b){var b=b.data,c=b.dataValue,c=t(c,a),c=m(c,F),c=o(c),c=m(c,D),c=c.replace(K,"$1cke:$2"),c=c.replace(G,"<cke:$1$2></cke:$1>"),c=CKEDITOR.env.opera?c:c.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),e=b.context||a.editable().getName(),
f;if(CKEDITOR.env.ie&&CKEDITOR.env.version<9&&e=="pre"){e="div";c="<pre>"+c+"</pre>";f=1}e=a.document.createElement(e);e.setHtml("a"+c);c=e.getHtml().substr(1);c=c.replace(RegExp(" data-cke-"+CKEDITOR.rnd+"-","ig")," ");f&&(c=c.replace(/^<pre>|<\/pre>$/gi,""));c=c.replace(I,"$1$2");c=k(c);c=s(c);b.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(c,b.context,b.fixForBody===false?false:d(a.config))},null,null,5);a.on("toHtml",function(a){a.data.dataValue.filterChildren(f.dataFilter,true)},null,null,
10);a.on("toHtml",function(a){var a=a.data,b=a.dataValue,c=new CKEDITOR.htmlParser.basicWriter;b.writeChildrenHtml(c);b=c.getHtml(true);a.dataValue=p(b)},null,null,15);a.on("toDataFormat",function(b){b.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(b.data.dataValue,a.editable().getName(),d(a.config))},null,null,5);a.on("toDataFormat",function(a){a.data.dataValue.filterChildren(f.htmlFilter,true)},null,null,10);a.on("toDataFormat",function(b){var c=b.data.dataValue,e=f.writer;e.reset();c.writeChildrenHtml(e);
c=e.getHtml(true);c=s(c);c=r(c,a);b.data.dataValue=c},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,b,c,e){var f=this.editor;!b&&b!==null&&(b=f.editable().getName());return f.fire("toHtml",{dataValue:a,context:b,fixForBody:c,dontFilter:!!e}).dataValue},toDataFormat:function(a){return this.editor.fire("toDataFormat",{dataValue:a}).dataValue}};var y=/(?:&nbsp;|\xa0)$/,A="{cke_protected}",v=CKEDITOR.dtd,w=["caption","colgroup","col","thead","tfoot","tbody"],q=CKEDITOR.tools.extend({},
v.$blockLimit,v.$block),u={elements:{},attributeNames:[[/^on/,"data-cke-pa-on"]]},z={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 c=["name","href","src"],e,f=0;f<c.length;f++){e="data-cke-saved-"+c[f];e in b&&delete b[c[f]]}}return a},table:function(a){a.children.slice(0).sort(function(a,b){var c,e;if(a.type==CKEDITOR.NODE_ELEMENT&&
b.type==a.type){c=CKEDITOR.tools.indexOf(w,a.name);e=CKEDITOR.tools.indexOf(w,b.name)}if(!(c>-1&&e>-1&&c!=e)){c=j(a);e=j(b)}return c>e?1:-1})},embed:function(a){var b=a.parent;if(b&&b.name=="object"){var c=b.attributes.width,b=b.attributes.height;c&&(a.attributes.width=c);b&&(a.attributes.height=b)}},param:function(a){a.children=[];a.isEmpty=true;return a},a:function(a){if(!a.children.length&&!a.attributes.name&&!a.attributes["data-cke-saved-name"])return false},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];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"]||""}},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,
""))||false}}};if(CKEDITOR.env.ie)z.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,function(a){return a.toLowerCase()})};for(var B in{input:1,textarea:1}){u.elements[B]=l;z.elements[B]=n}var x=/<(a|area|img|input|source)\b([^>]*)>/gi,C=/\s(on\w+|href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,D=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,F=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,E=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,
K=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,I=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,G=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),"use strict",CKEDITOR.htmlParser.element=function(b,d){this.name=b;this.attributes=d||{};this.children=[];var a=b||"",c=a.match(/^cke:(.*)/);c&&(a=c[1]);a=!(!CKEDITOR.dtd.$nonBodyContent[a]&&!CKEDITOR.dtd.$block[a]&&!CKEDITOR.dtd.$listItem[a]&&!CKEDITOR.dtd.$tableContent[a]&&!(CKEDITOR.dtd.$nonEditable[a]||a=="br"));this.isEmpty=!!CKEDITOR.dtd.$empty[b];
this.isUnknown=!CKEDITOR.dtd[b];this._={isBlockLike:a,hasInlineStarted:this.isEmpty||!a}},CKEDITOR.htmlParser.cssStyle=function(b){var d={};((b instanceof CKEDITOR.htmlParser.element?b.attributes.style:b)||"").replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,b,f){b=="font-family"&&(f=f.replace(/["']/g,""));d[b.toLowerCase()]=f});return{rules:d,populate:function(a){var b=this.toString();if(b)a instanceof CKEDITOR.dom.element?a.setAttribute("style",b):a instanceof CKEDITOR.htmlParser.element?
a.attributes.style=b:a.style=b},toString:function(){var a=[],b;for(b in d)d[b]&&a.push(b,":",d[b],";");return a.join("")}}},function(){var b=function(a,b){a=a[0];b=b[0];return a<b?-1:a>b?1:0},d=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:d.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(a){var b=this,f,e;if(!b.parent)a.onRoot(b);
for(;;){f=b.name;if(!(e=a.onElementName(f))){this.remove();return false}b.name=e;if(!(b=a.onElement(b))){this.remove();return false}if(b!==this){this.replaceWith(b);return false}if(b.name==f)break;if(b.type!=CKEDITOR.NODE_ELEMENT){this.replaceWith(b);return false}if(!b.name){this.replaceWithChildren();return false}}f=b.attributes;var d,i;for(d in f){i=d;for(e=f[d];;)if(i=a.onAttributeName(d))if(i!=d){delete f[d];d=i}else break;else{delete f[d];break}i&&((e=a.onAttribute(b,i,e))===false?delete f[i]:
f[i]=e)}b.isEmpty||this.filterChildren(a);return true},filterChildren:d.filterChildren,writeHtml:function(a,c){c&&this.filter(c);var f=this.name,e=[],d=this.attributes,i,g;a.openTag(f,d);for(i in d)e.push([i,d[i]]);a.sortAttributes&&e.sort(b);i=0;for(g=e.length;i<g;i++){d=e[i];a.attribute(d[0],d[1])}a.openTagClose(f,this.isEmpty);this.writeChildrenHtml(a);this.isEmpty||a.closeTag(f)},writeChildrenHtml:d.writeChildrenHtml,replaceWithChildren:function(){for(var a=this.children,b=a.length;b;)a[--b].insertAfter(this);
this.remove()},forEach:d.forEach})}(),function(){var b={};CKEDITOR.template=function(d){if(b[d])this.output=b[d];else{var a=d.replace(/'/g,"\\'").replace(/{([^}]+)}/g,function(a,b){return"',data['"+b+"']==undefined?'{"+b+"}':data['"+b+"'],'"});this.output=b[d]=Function("data","buffer","return buffer?buffer.push('"+a+"'):['"+a+"'].join('');")}}}(),delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(b){CKEDITOR.instances[b.name]=
b;b.on("focus",function(){if(CKEDITOR.currentInstance!=b){CKEDITOR.currentInstance=b;CKEDITOR.fire("currentInstance")}});b.on("blur",function(){if(CKEDITOR.currentInstance==b){CKEDITOR.currentInstance=null;CKEDITOR.fire("currentInstance")}});CKEDITOR.fire("instance",null,b)},CKEDITOR.remove=function(b){delete CKEDITOR.instances[b.name]},function(){var b={};CKEDITOR.addTemplate=function(d,a){var c=b[d];if(c)return c;c={name:d,source:a};CKEDITOR.fire("template",c);return b[d]=new CKEDITOR.template(c.source)};
CKEDITOR.getTemplate=function(d){return b[d]}}(),function(){var b=[];CKEDITOR.addCss=function(d){b.push(d)};CKEDITOR.getCss=function(){return b.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(b,d){if(!CKEDITOR.env.isCompatible)return null;b=CKEDITOR.dom.element.get(b);if(b.getEditor())throw'The editor instance "'+
b.getEditor().name+'" is already attached to the provided element.';var a=new CKEDITOR.editor(d,b,CKEDITOR.ELEMENT_MODE_INLINE),c=b.is("textarea")?b:null;if(c){a.setData(c.getValue(),null,true);b=CKEDITOR.dom.element.createFromHtml('<div contenteditable="'+!!a.readOnly+'" class="cke_textarea_inline">'+c.getValue()+"</div>",CKEDITOR.document);b.insertAfter(c);c.hide();c.$.form&&a._attachToForm()}else a.setData(b.getHtml(),null,true);a.on("loaded",function(){a.fire("uiReady");a.editable(b);a.container=
b;a.setData(a.getData(1));a.resetDirty();a.fire("contentDom");a.mode="wysiwyg";a.fire("mode");a.status="ready";a.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,a)},null,null,1E4);a.on("destroy",function(){if(c){a.container.clearCustomData();a.container.remove();c.show()}a.element.clearCustomData();delete a.element});return a};CKEDITOR.inlineAll=function(){var b,d,a;for(a in CKEDITOR.dtd.$editable)for(var c=CKEDITOR.document.getElementsByTag(a),f=0,e=c.count();f<e;f++){b=c.getItem(f);
if(b.getAttribute("contenteditable")=="true"){d={element:b,config:{}};CKEDITOR.fire("inline",d)!==false&&CKEDITOR.inline(b,d.config)}}};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})}(),CKEDITOR.replaceClass="ckeditor",function(){function b(b,c,h,i){if(!CKEDITOR.env.isCompatible)return null;b=CKEDITOR.dom.element.get(b);if(b.getEditor())throw'The editor instance "'+b.getEditor().name+'" is already attached to the provided element.';var g=new CKEDITOR.editor(c,b,i);
if(i==CKEDITOR.ELEMENT_MODE_REPLACE){b.setStyle("visibility","hidden");g._.required=b.hasAttribute("required");b.removeAttribute("required")}h&&g.setData(h,null,true);g.on("loaded",function(){a(g);i==CKEDITOR.ELEMENT_MODE_REPLACE&&(g.config.autoUpdateElement&&b.$.form)&&g._attachToForm();g.setMode(g.config.startupMode,function(){g.resetDirty();g.status="ready";g.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,g)})});g.on("destroy",d);return g}function d(){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 a(a){var b=a.name,d=a.element,i=a.elementMode,g=a.fire("uiSpace",{space:"top",html:""}).html,j=a.fire("uiSpace",{space:"bottom",html:""}).html;c||(c=CKEDITOR.addTemplate("maincontainer",'<{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" aria-labelledby="cke_{name}_arialbl"><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(c.output({id:a.id,name:b,langDir:a.lang.dir,langCode:a.langCode,voiceLabel:[a.lang.editor,a.name].join(", "),
topHtml:g?'<span id="'+a.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+g+"</span>":"",contentId:a.ui.spaceId("contents"),bottomHtml:j?'<span id="'+a.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+j+"</span>":"",outerEl:CKEDITOR.env.ie?"span":"div"}));if(i==CKEDITOR.ELEMENT_MODE_REPLACE){d.hide();b.insertAfter(d)}else d.append(b);a.container=b;g&&a.ui.space("top").unselectable();j&&a.ui.space("bottom").unselectable();d=
a.config.width;i=a.config.height;d&&b.setStyle("width",CKEDITOR.tools.cssLength(d));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(a,c){return b(a,c,null,CKEDITOR.ELEMENT_MODE_REPLACE)};CKEDITOR.appendTo=function(a,c,d){return b(a,c,d,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=document.getElementsByTagName("textarea"),
b=0;b<a.length;b++){var c=null,d=a[b];if(d.name||d.id){if(typeof arguments[0]=="string"){if(!RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)").test(d.className))continue}else if(typeof arguments[0]=="function"){c={};if(arguments[0](d,c)===false)continue}this.replace(d,c)}}};CKEDITOR.editor.prototype.addMode=function(a,b){(this._.modes||(this._.modes={}))[a]=b};CKEDITOR.editor.prototype.setMode=function(a,b){var c=this,d=this._.modes;if(!(a==c.mode||!d||!d[a])){c.fire("beforeSetMode",a);if(c.mode){var g=
c.checkDirty();c._.previousMode=c.mode;c.fire("beforeModeUnload");c.editable(0);c.ui.space("contents").setHtml("");c.mode=""}this._.modes[a](function(){c.mode=a;g!==void 0&&!g&&c.resetDirty();setTimeout(function(){c.fire("mode");b&&b.call(c)},0)})}};CKEDITOR.editor.prototype.resize=function(a,b,c,d){var g=this.container,j=this.ui.space("contents"),l=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement,d=d?g.getChild(1):g;d.setSize("width",a,true);l&&(l.style.width="1%");j.setStyle("height",
Math.max(b-(c?0:(d.$.offsetHeight||0)-(j.$.clientHeight||0)),0)+"px");l&&(l.style.width="100%");this.fire("resize")};CKEDITOR.editor.prototype.getResizable=function(a){return a?this.ui.space("contents"):this.container};var c;CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){function b(b){var c=b.editor,e=c.editable(),d=b.data.path,f=d.blockLimit,g=b.data.selection.getRanges()[0],h=c.config.enterMode;
if(CKEDITOR.env.gecko){var i=d.block||d.blockLimit||d.root,j=i&&i.getLast(a);i&&(i.isBlockBoundary()&&(!j||!(j.type==CKEDITOR.NODE_ELEMENT&&j.isBlockBoundary()))&&!i.is("pre")&&!i.getBogus())&&i.appendBogus()}if(c.config.autoParagraph!==false&&h!=CKEDITOR.ENTER_BR&&g.collapsed&&e.equals(f)&&!d.block){e=g.clone();e.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);d=new CKEDITOR.dom.walker(e);d.guard=function(b){return!a(b)||b.type==CKEDITOR.NODE_COMMENT||b.isReadOnly()};if(!d.checkForward()||e.checkStartOfBlock()&&
e.checkEndOfBlock()){c=g.fixBlock(true,c.config.enterMode==CKEDITOR.ENTER_DIV?"div":"p");if(CKEDITOR.env.ie)(c=c.getFirst(a))&&(c.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(c.getText()).match(/^(?:&nbsp;|\xa0)$/))&&c.remove();g.select();b.cancel()}}}function d(a){var b=a.data.getTarget();if(b.is("input")){b=b.getAttribute("type");(b=="submit"||b=="reset")&&a.data.preventDefault()}}function a(a){return g(a)&&j(a)}function c(a,b){return function(c){var e=CKEDITOR.dom.element.get(c.data.$.toElement||
c.data.$.fromElement||c.data.$.relatedTarget);(!e||!b.equals(e)&&!b.contains(e))&&a.call(this,c)}}function f(b){var c,e=b.getRanges()[0],b=b.root,d=e.startPath(),f={table:1,ul:1,ol:1,dl:1},g=CKEDITOR.dom.walker.bogus();if(d.contains(f)){var h=e.clone();h.collapse(1);h.setStartAt(b,CKEDITOR.POSITION_AFTER_START);h=new CKEDITOR.dom.walker(h);d=function(b,e){return function(b,d){d&&(b.type==CKEDITOR.NODE_ELEMENT&&b.is(f))&&(c=b);if(a(b)&&!d&&(!e||!g(b)))return false}};h.guard=d(h);h.checkBackward();
if(c){h=e.clone();h.collapse();h.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);h=new CKEDITOR.dom.walker(h);h.guard=d(h,1);c=0;h.checkForward();return c}}return null}function e(a){a.editor.focus();a.editor.fire("saveSnapshot")}function h(a,b){var c=a.editor;!b&&c.getSelection().scrollIntoView();setTimeout(function(){c.fire("saveSnapshot")},0)}CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(a,b){this.base(b.$||b);this.editor=a;this.hasFocus=false;this.setup()},proto:{focus:function(){this.$[CKEDITOR.env.ie&&
this.getDocument().equals(CKEDITOR.document)?"setActive":"focus"]();CKEDITOR.env.safari&&!this.isInline()&&(CKEDITOR.document.getActive().equals(this.getWindow().getFrame())||this.getWindow().focus())},on:function(a,b){var e=Array.prototype.slice.call(arguments,0);if(CKEDITOR.env.ie&&/^focus|blur$/.exec(a)){a=a=="focus"?"focusin":"focusout";b=c(b,this);e[0]=a;e[1]=b}return CKEDITOR.dom.element.prototype.on.apply(this,e)},attachListener:function(a,b,c,e,d,f){!this._.listeners&&(this._.listeners=[]);
var g=Array.prototype.slice.call(arguments,1);this._.listeners.push(a.on.apply(a,g))},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(b){}},restoreAttrs:function(){var a=this._.attrChanges,b,c;for(c in a)if(a.hasOwnProperty(c)){b=a[c];b!==null?this.setAttribute(c,b):this.removeAttribute(c)}},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 c=this.getAttribute(a);if(b!==c){!this._.attrChanges&&(this._.attrChanges={});a in this._.attrChanges||(this._.attrChanges[a]=c);this.setAttribute(a,b)}},insertHtml:function(a,b){e(this);l(this,b||"html",a)},insertText:function(a){e(this);var b=this.editor,c=b.getSelection().getStartElement().hasAscendant("pre",true)?CKEDITOR.ENTER_BR:b.config.enterMode,b=c==CKEDITOR.ENTER_BR,d=CKEDITOR.tools,a=d.htmlEncode(a.replace(/\r\n/g,"\n")),a=a.replace(/\t/g,"&nbsp;&nbsp; &nbsp;"),c=c==CKEDITOR.ENTER_P?
"p":"div";if(!b){var f=/\n{2}/g;if(f.test(a))var g="<"+c+">",h="</"+c+">",a=g+a.replace(f,function(){return h+g})+h}a=a.replace(/\n/g,"<br>");b||(a=a.replace(RegExp("<br>(?=</"+c+">)"),function(a){return d.repeat(a,2)}));a=a.replace(/^ | $/g,"&nbsp;");a=a.replace(/(>|\s) /g,function(a,b){return b+"&nbsp;"}).replace(/ (?=<)/g,"&nbsp;");l(this,"text",a)},insertElement:function(b){e(this);for(var c=this.editor,d=c.config.enterMode,f=c.getSelection(),g=f.getRanges(),i=b.getName(),j=CKEDITOR.dtd.$block[i],
l,y,A,v=g.length-1;v>=0;v--){l=g[v];if(!l.checkReadOnly()){l.deleteContents(1);y=!v&&b||b.clone(1);var w,q;if(j)for(;(w=l.getCommonAncestor(0,1))&&(q=CKEDITOR.dtd[w.getName()])&&(!q||!q[i]);)if(w.getName()in CKEDITOR.dtd.span)l.splitElement(w);else if(l.checkStartOfBlock()&&l.checkEndOfBlock()){l.setStartBefore(w);l.collapse(true);w.remove()}else l.splitBlock(d==CKEDITOR.ENTER_DIV?"div":"p",c.editable());l.insertNode(y);A||(A=y)}}if(A){l.moveToPosition(A,CKEDITOR.POSITION_AFTER_END);if(j)if((b=A.getNext(a))&&
b.type==CKEDITOR.NODE_ELEMENT&&b.is(CKEDITOR.dtd.$block))b.getDtd()["#"]?l.moveToElementEditStart(b):l.moveToElementEditEnd(A);else if(!b&&d!=CKEDITOR.ENTER_BR){b=l.fixBlock(true,d==CKEDITOR.ENTER_DIV?"div":"p");l.moveToElementEditStart(b)}}f.selectRanges([l]);h(this,CKEDITOR.env.opera)},setData:function(a,b){!b&&this.editor.dataProcessor&&(a=this.editor.dataProcessor.toHtml(a));this.setHtml(a);this.editor.fire("dataReady")},getData:function(a){var b=this.getHtml();!a&&this.editor.dataProcessor&&
(b=this.editor.dataProcessor.toDataFormat(b));return b},setReadOnly:function(a){this.setAttribute("contenteditable",!a)},detach:function(){this.removeClass("cke_editable");var a=this.editor;this._.detach();delete a.document;delete a.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},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(i,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)},
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");this.attachClass(a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"cke_editable_inline":a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE||a.elementMode==CKEDITOR.ELEMENT_MODE_APPENDTO?"cke_editable_themed":"");this.attachClass("cke_contents_"+a.config.contentsLangDirection);a.keystrokeHandler.blockedKeystrokes[8]=
+a.readOnly;a.keystrokeHandler.attach(this);this.on("blur",function(a){CKEDITOR.env.opera&&CKEDITOR.document.getActive().equals(this.isInline()?this:this.getWindow().getFrame())?a.cancel():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.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 e=CKEDITOR.getCss();if(e){c=b.getHead();if(!c.getCustomData("stylesheet")){e=b.appendStyleText(e);e=new CKEDITOR.dom.element(e.ownerNode||e.owningElement);c.setCustomData("stylesheet",e);e.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=a.getTarget();b.is("a")&&(a.$.button!=2&&b.isReadOnly())&&a.preventDefault()});this.attachListener(a,"key",function(b){if(a.readOnly)return true;var c=b.data.keyCode,e;if(c in{8:1,46:1}){var d=a.getSelection(),b=d.getRanges()[0],h=b.startPath(),k,i,j,c=c==8;if(d=f(d)){a.fire("saveSnapshot");b.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START);d.remove();b.select();
a.fire("saveSnapshot");e=1}else if(b.collapsed)if((k=h.block)&&b[c?"checkStartOfBlock":"checkEndOfBlock"]()&&(j=k[c?"getPrevious":"getNext"](g))&&j.is("table")){a.fire("saveSnapshot");b[c?"checkEndOfBlock":"checkStartOfBlock"]()&&k.remove();b["moveToElementEdit"+(c?"End":"Start")](j);b.select();a.fire("saveSnapshot");e=1}else if(h.blockLimit&&h.blockLimit.is("td")&&(i=h.blockLimit.getAscendant("table"))&&b.checkBoundaryOfElement(i,c?CKEDITOR.START:CKEDITOR.END)&&(j=i[c?"getPrevious":"getNext"](g))){a.fire("saveSnapshot");
b["moveToElementEdit"+(c?"End":"Start")](j);b.checkStartOfBlock()&&b.checkEndOfBlock()?j.remove():b.select();a.fire("saveSnapshot");e=1}else if((i=h.contains(["td","th","caption"]))&&b.checkBoundaryOfElement(i,c?CKEDITOR.START:CKEDITOR.END))e=1}return!e});CKEDITOR.env.ie&&this.attachListener(this,"click",d);!CKEDITOR.env.ie&&!CKEDITOR.env.opera&&this.attachListener(this,"mousedown",function(b){var c=b.data.getTarget();if(c.is("img","hr","input","textarea","select")){a.getSelection().selectElement(c);
c.is("input","textarea","select")&&b.data.preventDefault()}});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(b){if(b.data.$.button==2){b=b.data.getTarget();if(!b.getOuterHtml().replace(i,"")){var c=a.createRange();c.moveToElementEditStart(b);c.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()})}}}},_:{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());a=this.getDocument();var b=a.getHead();if(b.getCustomData("stylesheet")){var c=a.getCustomData("stylesheet_ref");if(--c)a.setCustomData("stylesheet_ref",c);else{a.removeCustomData("stylesheet_ref");b.removeCustomData("stylesheet").remove()}}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};var i=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,g=CKEDITOR.dom.walker.whitespaces(true),j=CKEDITOR.dom.walker.bookmark(false,true);CKEDITOR.on("instanceLoaded",function(a){var c=a.editor;c.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)}});c.on("selectionChange",function(a){if(!c.readOnly){var e=c.getSelection();if(e&&!e.isLocked){e=c.checkDirty();c.fire("lockSnapshot");b(a);c.fire("unlockSnapshot");!e&&c.resetDirty()}}})});CKEDITOR.on("instanceCreated",function(a){var b=a.editor;b.on("mode",function(){var a=b.editable();
if(a&&a.isInline()){var c=b.title;a.changeAttr("role","textbox");a.changeAttr("aria-label",c);c&&a.changeAttr("title",c);if(c=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents")){var e=CKEDITOR.tools.getNextId(),d=CKEDITOR.dom.element.createFromHtml('<span id="'+e+'" class="cke_voice_label">'+this.lang.common.editorHelp+"</span>");c.append(d);a.changeAttr("aria-describedby",e)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");
var l=function(){function b(a){return a.type==CKEDITOR.NODE_ELEMENT}function c(a,e){var d,f,g,h,k=[],j=e.range.startContainer;d=e.range.startPath();for(var j=i[j.getName()],l=0,m=a.getChildren(),p=m.count(),s=-1,t=-1,y=0,A=d.contains(i.$list);l<p;++l){d=m.getItem(l);if(b(d)){g=d.getName();if(A&&g in CKEDITOR.dtd.$list)k=k.concat(c(d,e));else{h=!!j[g];if(g=="br"&&d.data("cke-eol")&&(!l||l==p-1)){y=(f=l?k[l-1].node:m.getItem(l+1))&&(!b(f)||!f.is("br"));f=f&&b(f)&&i.$block[f.getName()]}s==-1&&!h&&(s=
l);h||(t=l);k.push({isElement:1,isLineBreak:y,isBlock:d.isBlockBoundary(),hasBlockSibling:f,node:d,name:g,allowed:h});f=y=0}}else k.push({isElement:0,node:d,allowed:1})}if(s>-1)k[s].firstNotAllowed=1;if(t>-1)k[t].lastNotAllowed=1;return k}function e(a,c){var d=[],f=a.getChildren(),g=f.count(),h,k=0,j=i[c],l=!a.is(i.$inline)||a.is("br");for(l&&d.push(" ");k<g;k++){h=f.getItem(k);b(h)&&!h.is(j)?d=d.concat(e(h,c)):d.push(h)}l&&d.push(" ");return d}function d(a){return a&&b(a)&&(a.is(i.$removeEmpty)||
a.is("a")&&!a.isBlockBoundary())}function f(a,c,e,d){var g=a.clone(),h,k;g.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);if((h=(new CKEDITOR.dom.walker(g)).next())&&b(h)&&j[h.getName()]&&(k=h.getPrevious())&&b(k)&&!k.getParent().equals(a.startContainer)&&e.contains(k)&&d.contains(h)&&h.isIdentical(k)){h.moveChildren(k);h.remove();f(a,c,e,d)}}function g(a,c){function e(a,c){if(c.isBlock&&c.isElement&&!c.node.is("br")&&b(a)&&a.is("br")){a.remove();return 1}}var d=c.endContainer.getChild(c.endOffset),f=c.endContainer.getChild(c.endOffset-
1);d&&e(d,a[a.length-1]);if(f&&e(f,a[0])){c.setEnd(c.endContainer,c.endOffset-1);c.collapse()}}var i=CKEDITOR.dtd,j={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},l={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},A=CKEDITOR.tools.extend({},i.$inline);delete A.br;return function(j,t,q){var u=j.editor;j.getDocument();var z=u.getSelection().getRanges()[0],B=false;if(t=="unfiltered_html"){t="html";B=true}if(!z.checkReadOnly()){var x=(new CKEDITOR.dom.elementPath(z.startContainer,
z.root)).blockLimit||z.root,t={type:t,dontFilter:B,editable:j,editor:u,range:z,blockLimit:x,mergeCandidates:[],zombies:[]},u=t.range,B=t.mergeCandidates,C,D,F,E;if(t.type=="text"&&u.shrink(CKEDITOR.SHRINK_ELEMENT,true,false)){C=CKEDITOR.dom.element.createFromHtml("<span>&nbsp;</span>",u.document);u.insertNode(C);u.setStartAfter(C)}D=new CKEDITOR.dom.elementPath(u.startContainer);t.endPath=F=new CKEDITOR.dom.elementPath(u.endContainer);if(!u.collapsed){var x=F.block||F.blockLimit,K=u.getCommonAncestor();
x&&(!x.equals(K)&&!x.contains(K)&&u.checkEndOfBlock())&&t.zombies.push(x);u.deleteContents()}for(;(E=b(u.startContainer)&&u.startContainer.getChild(u.startOffset-1))&&b(E)&&E.isBlockBoundary()&&D.contains(E);)u.moveToPosition(E,CKEDITOR.POSITION_BEFORE_END);f(u,t.blockLimit,D,F);if(C){u.setEndBefore(C);u.collapse();C.remove()}C=u.startPath();if(x=C.contains(d,false,1)){u.splitElement(x);t.inlineStylesRoot=x;t.inlineStylesPeak=C.lastElement}C=u.createBookmark();(x=C.startNode.getPrevious(a))&&b(x)&&
d(x)&&B.push(x);(x=C.startNode.getNext(a))&&b(x)&&d(x)&&B.push(x);for(x=C.startNode;(x=x.getParent())&&d(x);)B.push(x);u.moveToBookmark(C);if(C=q){C=t.range;if(t.type=="text"&&t.inlineStylesRoot){E=t.inlineStylesPeak;u=E.getDocument().createText("{cke-peak}");for(B=t.inlineStylesRoot.getParent();!E.equals(B);){u=u.appendTo(E.clone());E=E.getParent()}q=u.getOuterHtml().split("{cke-peak}").join(q)}E=t.blockLimit.getName();if(/^\s+|\s+$/.test(q)&&"span"in CKEDITOR.dtd[E])var I='<span data-cke-marker="1">&nbsp;</span>',
q=I+q+I;q=t.editor.dataProcessor.toHtml(q,null,false,t.dontFilter);E=C.document.createElement("body");E.setHtml(q);if(I){E.getFirst().remove();E.getLast().remove()}if((I=C.startPath().block)&&!(I.getChildCount()==1&&I.getBogus()))a:{var G;if(E.getChildCount()==1&&b(G=E.getFirst())&&G.is(l)){I=G.getElementsByTag("*");C=0;for(B=I.count();C<B;C++){u=I.getItem(C);if(!u.is(A))break a}G.moveChildren(G.getParent(1));G.remove()}}t.dataWrapper=E;C=q}if(C){G=t.range;var I=G.document,H,q=t.blockLimit;C=0;var L;
E=[];var J,P,B=u=0,N,Q;D=G.startContainer;var x=t.endPath.elements[0],R;F=x.getPosition(D);K=!!x.getCommonAncestor(D)&&F!=CKEDITOR.POSITION_IDENTICAL&&!(F&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED);D=c(t.dataWrapper,t);for(g(D,G);C<D.length;C++){F=D[C];if(H=F.isLineBreak){H=G;N=q;var O=void 0,U=void 0;if(F.hasBlockSibling)H=1;else{O=H.startContainer.getAscendant(i.$block,1);if(!O||!O.is({div:1,p:1}))H=0;else{U=O.getPosition(N);if(U==CKEDITOR.POSITION_IDENTICAL||U==CKEDITOR.POSITION_CONTAINS)H=
0;else{N=H.splitElement(O);H.moveToPosition(N,CKEDITOR.POSITION_AFTER_START);H=1}}}}if(H)B=C>0;else{H=G.startPath();if(!F.isBlock&&(P=t.editor.config.enterMode!=CKEDITOR.ENTER_BR&&t.editor.config.autoParagraph!==false?t.editor.config.enterMode==CKEDITOR.ENTER_DIV?"div":"p":false)&&!H.block&&H.blockLimit&&H.blockLimit.equals(G.root)){P=I.createElement(P);!CKEDITOR.env.ie&&P.appendBogus();G.insertNode(P);!CKEDITOR.env.ie&&(L=P.getBogus())&&L.remove();G.moveToPosition(P,CKEDITOR.POSITION_BEFORE_END)}if((H=
G.startPath().block)&&!H.equals(J)){if(L=H.getBogus()){L.remove();E.push(H)}J=H}F.firstNotAllowed&&(u=1);if(u&&F.isElement){H=G.startContainer;for(N=null;H&&!i[H.getName()][F.name];){if(H.equals(q)){H=null;break}N=H;H=H.getParent()}if(H){if(N){Q=G.splitElement(N);t.zombies.push(Q);t.zombies.push(N)}}else{N=q.getName();R=!C;H=C==D.length-1;N=e(F.node,N);for(var O=[],U=N.length,T=0,V=void 0,W=0,S=-1;T<U;T++){V=N[T];if(V==" "){if(!W&&(!R||T)){O.push(new CKEDITOR.dom.text(" "));S=O.length}W=1}else{O.push(V);
W=0}}H&&S==O.length&&O.pop();R=O}}if(R){for(;H=R.pop();)G.insertNode(H);R=0}else G.insertNode(F.node);if(F.lastNotAllowed&&C<D.length-1){(Q=K?x:Q)&&G.setEndAt(Q,CKEDITOR.POSITION_AFTER_START);u=0}G.collapse()}}t.dontMoveCaret=B;t.bogusNeededBlocks=E}L=t.range;var M;Q=t.bogusNeededBlocks;for(R=L.createBookmark();J=t.zombies.pop();)if(J.getParent()){P=L.clone();P.moveToElementEditStart(J);P.removeEmptyBlocksAtEnd()}if(Q)for(;J=Q.pop();)J.append(CKEDITOR.env.ie?L.document.createText(" "):L.document.createElement("br"));
for(;J=t.mergeCandidates.pop();)J.mergeSiblings();L.moveToBookmark(R);if(!t.dontMoveCaret){for(J=b(L.startContainer)&&L.startContainer.getChild(L.startOffset-1);J&&b(J)&&!J.is(i.$empty);){if(J.isBlockBoundary())L.moveToPosition(J,CKEDITOR.POSITION_BEFORE_END);else{if(d(J)&&J.getHtml().match(/(\s|&nbsp;)$/g)){M=null;break}M=L.clone();M.moveToPosition(J,CKEDITOR.POSITION_BEFORE_END)}J=J.getLast(a)}M&&L.moveToRange(M)}z.select();h(j)}}}()}(),function(){function b(){var a=this.getSelection(1);if(a.getType()!=
CKEDITOR.SELECTION_NONE){this.fire("selectionCheck",a);var b=this.elementPath();if(!b.compare(this._.selectionPreviousPath)){this._.selectionPreviousPath=b;this.fire("selectionChange",{selection:a,path:b})}}}function d(){j=true;if(!g){a.call(this);g=CKEDITOR.tools.setTimeout(a,200,this)}}function a(){g=null;if(j){CKEDITOR.tools.setTimeout(b,0,this);j=false}}function c(a){function b(c,e){return!c||c.type==CKEDITOR.NODE_TEXT?false:a.clone()["moveToElementEdit"+(e?"End":"Start")](c)}if(!(a.root instanceof
CKEDITOR.editable))return false;var c=a.startContainer,e=a.getPreviousNode(l,null,c),d=a.getNextNode(l,null,c);return b(e)||b(d,1)||!e&&!d&&!(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()&&c.getBogus())?true:false}function f(a){return a.getCustomData("cke-fillingChar")}function e(a,b){var c=a&&a.removeCustomData("cke-fillingChar");if(c){if(b!==false){var e,d=a.getDocument().getSelection().getNative(),f=d&&d.type!="None"&&d.getRangeAt(0);if(c.getLength()>1&&f&&f.intersectsNode(c.$)){e=[d.anchorOffset,
d.focusOffset];f=d.focusNode==c.$&&d.focusOffset>0;d.anchorNode==c.$&&d.anchorOffset>0&&e[0]--;f&&e[1]--;var g;f=d;if(!f.isCollapsed){g=f.getRangeAt(0);g.setStart(f.anchorNode,f.anchorOffset);g.setEnd(f.focusNode,f.focusOffset);g=g.collapsed}g&&e.unshift(e.pop())}}c.setText(h(c.getText()));if(e){c=d.getRangeAt(0);c.setStart(c.startContainer,e[0]);c.setEnd(c.startContainer,e[1]);d.removeAllRanges();d.addRange(c)}}}function h(a){return a.replace(/\u200B( )?/g,function(a){return a[1]?" ":""})}function i(a,
b,c){var e=a.on("focus",function(a){a.cancel()},null,null,-100);if(CKEDITOR.env.ie)var d=a.getDocument().on("selectionchange",function(a){a.cancel()},null,null,-100);else{var f=new CKEDITOR.dom.range(a);f.moveToElementEditStart(a);var g=a.getDocument().$.createRange();g.setStart(f.startContainer.$,f.startOffset);g.collapse(1);b.removeAllRanges();b.addRange(g)}c&&a.focus();e.removeListener();d&&d.removeListener()}var g,j,l=CKEDITOR.dom.walker.invisible(1);CKEDITOR.on("instanceCreated",function(a){function c(){var a=
f.getSelection();a&&a.removeAllRanges()}var f=a.editor;f.define("selectionChange",{errorProof:1});f.on("contentDom",function(){var a=f.document,c=CKEDITOR.document,g=f.editable(),h=a.getBody(),k=a.getDocumentElement(),i=g.isInline(),j;CKEDITOR.env.gecko&&g.attachListener(g,"focus",function(a){a.removeListener();if(j!==0){a=f.getSelection().getNative();if(a.isCollapsed&&a.anchorNode==g.$){a=f.createRange();a.moveToElementEditStart(g);a.select()}}},null,null,-2);g.attachListener(g,"focus",function(){f.unlockSelection(j);
j=0},null,null,-1);g.attachListener(g,"mousedown",function(){j=0});if(CKEDITOR.env.ie||CKEDITOR.env.opera||i){var l,m=function(){l=f.getSelection(1);l.lock()};n?g.attachListener(g,"beforedeactivate",m,null,null,-1):g.attachListener(f,"selectionCheck",m,null,null,-1);g.attachListener(g,"blur",function(){f.lockSelection(l);j=1},null,null,-1)}if(CKEDITOR.env.ie&&!i){var o;g.attachListener(g,"mousedown",function(a){a.data.$.button==2&&f.document.$.selection.type=="None"&&(o=f.window.getScrollPosition())});
g.attachListener(g,"mouseup",function(a){if(a.data.$.button==2&&o){f.document.$.documentElement.scrollLeft=o.x;f.document.$.documentElement.scrollTop=o.y}o=null});if(a.$.compatMode!="BackCompat"){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)k.on("mousedown",function(a){function b(a){a=a.data.$;if(d){var c=h.$.createTextRange();try{c.moveToPoint(a.x,a.y)}catch(e){}d.setEndPoint(g.compareEndPoints("StartToStart",c)<0?"EndToEnd":"StartToStart",c);d.select()}}function e(){k.removeListener("mousemove",
b);c.removeListener("mouseup",e);k.removeListener("mouseup",e);d.select()}a=a.data;if(a.getTarget().is("html")&&a.$.y<k.$.clientHeight&&a.$.x<k.$.clientWidth){var d=h.$.createTextRange();try{d.moveToPoint(a.$.x,a.$.y)}catch(f){}var g=d.duplicate();k.on("mousemove",b);c.on("mouseup",e);k.on("mouseup",e)}});if(CKEDITOR.env.version>7){k.on("mousedown",function(a){if(a.data.getTarget().is("html")){c.on("mouseup",B);k.on("mouseup",B)}});var B=function(){c.removeListener("mouseup",B);k.removeListener("mouseup",
B);var b=CKEDITOR.document.$.selection,e=b.createRange();b.type!="None"&&e.parentElement().ownerDocument==a.$&&e.select()}}}}g.attachListener(g,"selectionchange",b,f);g.attachListener(g,"keyup",d,f);g.attachListener(g,"focus",function(){f.forceNextSelectionCheck();f.selectionChange(1)});if(i?CKEDITOR.env.webkit||CKEDITOR.env.gecko:CKEDITOR.env.opera){var x;g.attachListener(g,"mousedown",function(){x=1});g.attachListener(a.getDocumentElement(),"mouseup",function(){x&&d.call(f);x=0})}else g.attachListener(CKEDITOR.env.ie?
g:a.getDocumentElement(),"mouseup",d,f);CKEDITOR.env.webkit&&g.attachListener(a,"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:e(g)}},null,null,-1)});f.on("contentDomUnload",f.forceNextSelectionCheck,f);f.on("dataReady",function(){f.selectionChange(1)});CKEDITOR.env.ie9Compat&&f.on("beforeDestroy",c,null,null,9);CKEDITOR.env.webkit&&f.on("setData",c);f.on("contentDomUnload",function(){f.unlockSelection()})});CKEDITOR.on("instanceReady",
function(a){var b=a.editor;if(CKEDITOR.env.webkit){b.on("selectionChange",function(){var a=b.editable(),c=f(a);c&&(c.getCustomData("ready")?e(a):c.setCustomData("ready",1))},null,null,-1);b.on("beforeSetMode",function(){e(b.editable())},null,null,-1);var c,d,a=function(){var a=b.editable();if(a)if(a=f(a)){var e=b.document.$.defaultView.getSelection();e.type=="Caret"&&e.anchorNode==a.$&&(d=1);c=a.getText();a.setText(h(c))}},g=function(){var a=b.editable();if(a)if(a=f(a)){a.setText(c);if(d){b.document.$.defaultView.getSelection().setPosition(a.$,
a.getLength());d=0}}};b.on("beforeUndoImage",a);b.on("afterUndoImage",g);b.on("beforeGetData",a,null,null,0);b.on("getData",g)}});CKEDITOR.editor.prototype.selectionChange=function(a){(a?b:d).call(this)};CKEDITOR.editor.prototype.getSelection=function(a){if(this._.savedSelection&&!a)return this._.savedSelection;return(a=this.editable())?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 n=typeof window.getSelection!="function";CKEDITOR.dom.selection=function(a){var b=a instanceof CKEDITOR.dom.element;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root=a=b?a:this.document.getBody();this.isLocked=0;this._={cache:{}};b=n?this.document.$.selection:this.document.getWindow().$.getSelection();
if(CKEDITOR.env.webkit)(b.type=="None"&&this.document.getActive().equals(a)||b.type=="Caret"&&b.anchorNode.nodeType==CKEDITOR.NODE_DOCUMENT)&&i(a,b);else if(CKEDITOR.env.gecko)b&&(this.document.getActive().equals(a)&&b.anchorNode&&b.anchorNode.nodeType==CKEDITOR.NODE_DOCUMENT)&&i(a,b,true);else if(CKEDITOR.env.ie){var c;try{c=this.document.getActive()}catch(e){}if(n)b.type=="None"&&(c&&c.equals(this.document.getDocumentElement()))&&i(a,null,true);else{(b=b&&b.anchorNode)&&(b=new CKEDITOR.dom.node(b));
c&&(c.equals(this.document.getDocumentElement())&&b&&(a.equals(b)||a.contains(b)))&&i(a,null,true)}}c=this.getNative();var d,f;if(c)if(c.getRangeAt)d=(f=c.rangeCount&&c.getRangeAt(0))&&new CKEDITOR.dom.node(f.commonAncestorContainer);else{try{f=c.createRange()}catch(g){}d=f&&CKEDITOR.dom.element.get(f.item&&f.item(0)||f.parentElement())}if(!d||!a.equals(d)&&!a.contains(d)){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 o={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=n?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:n?function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_NONE;
try{var c=this.getNative(),e=c.type;if(e=="Text")b=CKEDITOR.SELECTION_TEXT;if(e=="Control")b=CKEDITOR.SELECTION_ELEMENT;if(c.createRange().parentElement())b=CKEDITOR.SELECTION_TEXT}catch(d){}return a.type=b}:function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_TEXT,c=this.getNative();if(!c||!c.rangeCount)b=CKEDITOR.SELECTION_NONE;else if(c.rangeCount==1){var c=c.getRangeAt(0),e=c.startContainer;if(e==c.endContainer&&e.nodeType==1&&c.endOffset-c.startOffset==1&&o[e.childNodes[c.startOffset].nodeName.toLowerCase()])b=
CKEDITOR.SELECTION_ELEMENT}return a.type=b},getRanges:function(){var a=n?function(){function a(b){return(new CKEDITOR.dom.node(b)).getIndex()}var b=function(b,c){b=b.duplicate();b.collapse(c);var e=b.parentElement(),d=e.ownerDocument;if(!e.hasChildNodes())return{container:e,offset:0};for(var f=e.children,g,h,i=b.duplicate(),j=0,l=f.length-1,m=-1,p,n;j<=l;){m=Math.floor((j+l)/2);g=f[m];i.moveToElementText(g);p=i.compareEndPoints("StartToStart",b);if(p>0)l=m-1;else if(p<0)j=m+1;else{if(CKEDITOR.env.ie9Compat&&
g.tagName=="BR"){f=d.defaultView.getSelection();return{container:f[c?"anchorNode":"focusNode"],offset:f[c?"anchorOffset":"focusOffset"]}}return{container:e,offset:a(g)}}}if(m==-1||m==f.length-1&&p<0){i.moveToElementText(e);i.setEndPoint("StartToStart",b);d=i.text.replace(/(\r\n|\r)/g,"\n").length;f=e.childNodes;if(!d){g=f[f.length-1];return g.nodeType!=CKEDITOR.NODE_TEXT?{container:e,offset:f.length}:{container:g,offset:g.nodeValue.length}}for(e=f.length;d>0&&e>0;){h=f[--e];if(h.nodeType==CKEDITOR.NODE_TEXT){n=
h;d=d-h.nodeValue.length}}return{container:n,offset:-d}}i.collapse(p>0?true:false);i.setEndPoint(p>0?"StartToStart":"EndToStart",b);d=i.text.replace(/(\r\n|\r)/g,"\n").length;if(!d)return{container:e,offset:a(g)+(p>0?0:1)};for(;d>0;)try{h=g[p>0?"previousSibling":"nextSibling"];if(h.nodeType==CKEDITOR.NODE_TEXT){d=d-h.nodeValue.length;n=h}g=h}catch(o){return{container:e,offset:a(g)}}return{container:n,offset:p>0?-d:n.nodeValue.length+d}};return function(){var a=this.getNative(),c=a&&a.createRange(),
e=this.getType();if(!a)return[];if(e==CKEDITOR.SELECTION_TEXT){a=new CKEDITOR.dom.range(this.root);e=b(c,true);a.setStart(new CKEDITOR.dom.node(e.container),e.offset);e=b(c);a.setEnd(new CKEDITOR.dom.node(e.container),e.offset);a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse();return[a]}if(e==CKEDITOR.SELECTION_ELEMENT){for(var e=[],d=0;d<c.length;d++){for(var f=c.item(d),g=f.parentNode,h=0,a=new CKEDITOR.dom.range(this.root);h<
g.childNodes.length&&g.childNodes[h]!=f;h++);a.setStart(new CKEDITOR.dom.node(g),h);a.setEnd(new CKEDITOR.dom.node(g),h+1);e.push(a)}return e}return[]}}():function(){var a=[],b,c=this.getNative();if(!c)return a;for(var e=0;e<c.rangeCount;e++){var d=c.getRangeAt(e);b=new CKEDITOR.dom.range(this.root);b.setStart(new CKEDITOR.dom.node(d.startContainer),d.startOffset);b.setEnd(new CKEDITOR.dom.node(d.endContainer),d.endOffset);a.push(b)}return a};return function(b){var c=this._.cache;if(c.ranges&&!b)return c.ranges;
if(!c.ranges)c.ranges=new CKEDITOR.dom.rangeList(a.call(this));if(b)for(var e=c.ranges,d=0;d<e.length;d++){var f=e[d];f.getCommonAncestor().isReadOnly()&&e.splice(d,1);if(!f.collapsed){if(f.startContainer.isReadOnly())for(var b=f.startContainer,g;b;){if((g=b.type==CKEDITOR.NODE_ELEMENT)&&b.is("body")||!b.isReadOnly())break;g&&b.getAttribute("contentEditable")=="false"&&f.setStartAfter(b);b=b.getParent()}b=f.startContainer;g=f.endContainer;var h=f.startOffset,i=f.endOffset,j=f.clone();b&&b.type==CKEDITOR.NODE_TEXT&&
(h>=b.getLength()?j.setStartAfter(b):j.setStartBefore(b));g&&g.type==CKEDITOR.NODE_TEXT&&(i?j.setEndAfter(g):j.setEndBefore(g));b=new CKEDITOR.dom.walker(j);b.evaluator=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&a.isReadOnly()){var b=f.clone();f.setEndBefore(a);f.collapsed&&e.splice(d--,1);if(!(a.getPosition(j.endContainer)&CKEDITOR.POSITION_CONTAINS)){b.setStartAfter(a);b.collapsed||e.splice(d+1,0,b)}return true}return false};b.next()}}return c.ranges}}(),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 c=this.getRanges()[0];if(c){if(c.collapsed){b=c.startContainer;b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent())}else{for(c.optimize();;){b=c.startContainer;if(c.startOffset==(b.getChildCount?b.getChildCount():b.getLength())&&!b.isBlockBoundary())c.setStartAfter(b);else break}b=c.startContainer;if(b.type!=CKEDITOR.NODE_ELEMENT)return b.getParent();
b=b.getChild(c.startOffset);if(!b||b.type!=CKEDITOR.NODE_ELEMENT)b=c.startContainer;else for(c=b.getFirst();c&&c.type==CKEDITOR.NODE_ELEMENT;){b=c;c=c.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,c=CKEDITOR.tools.tryThese(function(){return b.getNative().createRange().item(0)},function(){for(var a=b.getRanges()[0],c,e,d=2;d&&(!(c=a.getEnclosedNode())||!(c.type==
CKEDITOR.NODE_ELEMENT&&o[c.getName()]&&(e=c)));d--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return e.$});return a.selectedElement=c?new CKEDITOR.dom.element(c):null},getSelectedText:function(){var a=this._.cache;if(a.selectedText!==void 0)return a.selectedText;var b=this.getNative(),b=n?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(),c=!b&&this.getRanges();this.isLocked=0;this.reset();if(a)(a=b||c[0]&&c[0].getCommonAncestor())&&a.getAscendant("body",1)&&(b?this.selectElement(b):this.selectRanges(c))}},reset:function(){this._.cache={}},selectElement:function(a){var b=new CKEDITOR.dom.range(this.root);b.setStartBefore(a);b.setEndAfter(a);this.selectRanges([b])},selectRanges:function(a){if(a.length)if(this.isLocked){var b=CKEDITOR.document.getActive();this.unlock();
this.selectRanges(a);this.lock();!b.equals(this.root)&&b.focus()}else{if(n){var d=CKEDITOR.dom.walker.whitespaces(true),f=/\ufeff|\u00a0/,g={table:1,tbody:1,tr:1};if(a.length>1){b=a[a.length-1];a[0].setEnd(b.endContainer,b.endOffset)}var b=a[0],a=b.collapsed,h,i,j,l=b.getEnclosedNode();if(l&&l.type==CKEDITOR.NODE_ELEMENT&&l.getName()in o&&(!l.is("a")||!l.getText()))try{j=l.$.createControlRange();j.addElement(l.$);j.select();return}catch(w){}(b.startContainer.type==CKEDITOR.NODE_ELEMENT&&b.startContainer.getName()in
g||b.endContainer.type==CKEDITOR.NODE_ELEMENT&&b.endContainer.getName()in g)&&b.shrink(CKEDITOR.NODE_ELEMENT,true);j=b.createBookmark();var g=j.startNode,q;if(!a)q=j.endNode;j=b.document.$.body.createTextRange();j.moveToElementText(g.$);j.moveStart("character",1);if(q){f=b.document.$.body.createTextRange();f.moveToElementText(q.$);j.setEndPoint("EndToEnd",f);j.moveEnd("character",-1)}else{h=g.getNext(d);i=g.hasAscendant("pre");h=!(h&&h.getText&&h.getText().match(f))&&(i||!g.hasPrevious()||g.getPrevious().is&&
g.getPrevious().is("br"));i=b.document.createElement("span");i.setHtml("&#65279;");i.insertBefore(g);h&&b.document.createText("﻿").insertBefore(g)}b.setStartBefore(g);g.remove();if(a){if(h){j.moveStart("character",-1);j.select();b.document.$.selection.clear()}else j.select();b.moveToPosition(i,CKEDITOR.POSITION_BEFORE_START);i.remove()}else{b.setEndBefore(q);q.remove();j.select()}}else{q=this.getNative();if(!q)return;if(CKEDITOR.env.opera){b=this.document.$.createRange();b.selectNodeContents(this.root.$);
q.addRange(b)}this.removeAllRanges();for(f=0;f<a.length;f++){if(f<a.length-1){b=a[f];j=a[f+1];i=b.clone();i.setStart(b.endContainer,b.endOffset);i.setEnd(j.startContainer,j.startOffset);if(!i.collapsed){i.shrink(CKEDITOR.NODE_ELEMENT,true);h=i.getCommonAncestor();i=i.getEnclosedNode();if(h.isReadOnly()||i&&i.isReadOnly()){j.setStart(b.startContainer,b.startOffset);a.splice(f--,1);continue}}}b=a[f];j=this.document.$.createRange();h=b.startContainer;if(CKEDITOR.env.opera&&b.collapsed&&h.type==CKEDITOR.NODE_ELEMENT){i=
h.getChild(b.startOffset-1);d=h.getChild(b.startOffset);if(!i&&!d&&h.is(CKEDITOR.dtd.$removeEmpty)||i&&i.type==CKEDITOR.NODE_ELEMENT||d&&d.type==CKEDITOR.NODE_ELEMENT){b.insertNode(this.document.createText(""));b.collapse(1)}}if(b.collapsed&&CKEDITOR.env.webkit&&c(b)){h=this.root;e(h,false);i=h.getDocument().createText("​");h.setCustomData("cke-fillingChar",i);b.insertNode(i);if((h=i.getNext())&&!i.getPrevious()&&h.type==CKEDITOR.NODE_ELEMENT&&h.getName()=="br"){e(this.root);b.moveToPosition(h,CKEDITOR.POSITION_BEFORE_START)}else b.moveToPosition(i,
CKEDITOR.POSITION_AFTER_END)}j.setStart(b.startContainer.$,b.startOffset);try{j.setEnd(b.endContainer.$,b.endOffset)}catch(u){if(u.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")>=0){b.collapse(1);j.setEnd(b.endContainer.$,b.endOffset)}else throw u;}q.addRange(j)}}this.reset();this.root.fire("selectionchange")}},createBookmarks:function(a){return this.getRanges().createBookmarks(a)},createBookmarks2:function(a){return this.getRanges().createBookmarks2(a)},selectBookmarks:function(a){for(var b=[],c=0;c<
a.length;c++){var e=new CKEDITOR.dom.range(this.root);e.moveToBookmark(a[c]);b.push(e)}this.selectRanges(b);return this},getCommonAncestor:function(){var a=this.getRanges();return a[0].startContainer.getCommonAncestor(a[a.length-1].endContainer)},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){var a=this.getNative();try{a&&a[n?"empty":"removeAllRanges"]()}catch(b){}this.reset()}}}(),CKEDITOR.editor.prototype.attachStyleStateChange=
function(b,d){var a=this._.styleStateChangeCallbacks;if(!a){a=this._.styleStateChangeCallbacks=[];this.on("selectionChange",function(b){for(var d=0;d<a.length;d++){var e=a[d],h=e.style.checkActive(b.data.path)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;e.fn.call(this,h)}})}a.push({style:b,fn:d})},CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function b(a,b){for(var c,e;a=a.getParent();){if(a.equals(b))break;if(a.getAttribute("data-nostyle"))c=a;else if(!e){var d=
a.getAttribute("contentEditable");d=="false"?c=a:d=="true"&&(e=1)}}return c}function d(a){var c=a.document;if(a.collapsed){c=p(this,c);a.insertNode(c);a.moveToPosition(c,CKEDITOR.POSITION_BEFORE_END)}else{var e=this.element,d=this._.definition,f,g=d.ignoreReadonly,h=g||d.includeReadonly;h==void 0&&(h=a.root.getCustomData("cke_includeReadonly"));var i=CKEDITOR.dtd[e]||(f=true,CKEDITOR.dtd.span);a.enlarge(CKEDITOR.ENLARGE_INLINE,1);a.trim();var j=a.createBookmark(),k=j.startNode,l=j.endNode,n=k,m;if(!g){var r=
a.getCommonAncestor(),g=b(k,r),r=b(l,r);g&&(n=g.getNextSourceNode(true));r&&(l=r)}for(n.getPosition(l)==CKEDITOR.POSITION_FOLLOWING&&(n=0);n;){g=false;if(n.equals(l)){n=null;g=true}else{var s=n.type,t=s==CKEDITOR.NODE_ELEMENT?n.getName():null,r=t&&n.getAttribute("contentEditable")=="false",y=t&&n.getAttribute("data-nostyle");if(t&&n.data("cke-bookmark")){n=n.getNextSourceNode(true);continue}if(!t||i[t]&&!y&&(!r||h)&&(n.getPosition(l)|CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED)==
CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IDENTICAL+CKEDITOR.POSITION_IS_CONTAINED&&(!d.childRule||d.childRule(n))){var v=n.getParent();if(v&&((v.getDtd()||CKEDITOR.dtd.span)[e]||f)&&(!d.parentRule||d.parentRule(v))){if(!m&&(!t||!CKEDITOR.dtd.$removeEmpty[t]||(n.getPosition(l)|CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED)==CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IDENTICAL+CKEDITOR.POSITION_IS_CONTAINED)){m=a.clone();m.setStartBefore(n)}if(s==CKEDITOR.NODE_TEXT||
r||s==CKEDITOR.NODE_ELEMENT&&!n.getChildCount()){for(var s=n,A;(g=!s.getNext(z))&&(A=s.getParent(),i[A.getName()])&&(A.getPosition(k)|CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED)==CKEDITOR.POSITION_FOLLOWING+CKEDITOR.POSITION_IDENTICAL+CKEDITOR.POSITION_IS_CONTAINED&&(!d.childRule||d.childRule(A));)s=A;m.setEndAfter(s)}}else g=true}else g=true;n=n.getNextSourceNode(y||r&&!h)}if(g&&m&&!m.collapsed){for(var g=p(this,c),r=g.hasAttributes(),y=m.getCommonAncestor(),
s={},t={},v={},w={},q,M,X;g&&y;){if(y.getName()==e){for(q in d.attributes)if(!w[q]&&(X=y.getAttribute(M)))g.getAttribute(q)==X?t[q]=1:w[q]=1;for(M in d.styles)if(!v[M]&&(X=y.getStyle(M)))g.getStyle(M)==X?s[M]=1:v[M]=1}y=y.getParent()}for(q in t)g.removeAttribute(q);for(M in s)g.removeStyle(M);r&&!g.hasAttributes()&&(g=null);if(g){m.extractContents().appendTo(g);o.call(this,g);m.insertNode(g);g.mergeSiblings();CKEDITOR.env.ie||g.$.normalize()}else{g=new CKEDITOR.dom.element("span");m.extractContents().appendTo(g);
m.insertNode(g);o.call(this,g);g.remove(true)}m=null}}a.moveToBookmark(j);a.shrink(CKEDITOR.SHRINK_TEXT)}}function a(a){a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var b=a.createBookmark(),c=b.startNode;if(a.collapsed){for(var e=new CKEDITOR.dom.elementPath(c.getParent(),a.root),d,f=0,g;f<e.elements.length&&(g=e.elements[f]);f++){if(g==e.block||g==e.blockLimit)break;if(this.checkElementRemovable(g)){var h;if(a.collapsed&&(a.checkBoundaryOfElement(g,CKEDITOR.END)||(h=a.checkBoundaryOfElement(g,CKEDITOR.START)))){d=
g;d.match=h?"start":"end"}else{g.mergeSiblings();g.getName()==this.element?n.call(this,g):m(g,t(this)[g.getName()])}}}if(d){g=c;for(f=0;;f++){h=e.elements[f];if(h.equals(d))break;else if(h.match)continue;else h=h.clone();h.append(g);g=h}g[d.match=="start"?"insertBefore":"insertAfter"](d)}}else{var i=b.endNode,j=this,e=function(){for(var a=new CKEDITOR.dom.elementPath(c.getParent()),b=new CKEDITOR.dom.elementPath(i.getParent()),e=null,d=null,f=0;f<a.elements.length;f++){var g=a.elements[f];if(g==a.block||
g==a.blockLimit)break;j.checkElementRemovable(g)&&(e=g)}for(f=0;f<b.elements.length;f++){g=b.elements[f];if(g==b.block||g==b.blockLimit)break;j.checkElementRemovable(g)&&(d=g)}d&&i.breakParent(d);e&&c.breakParent(e)};e();for(d=c;!d.equals(i);){f=d.getNextSourceNode();if(d.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(d)){d.getName()==this.element?n.call(this,d):m(d,t(this)[d.getName()]);if(f.type==CKEDITOR.NODE_ELEMENT&&f.contains(c)){e();f=c.getNext()}}d=f}}a.moveToBookmark(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 f(a){var b=a.getCommonAncestor(true,true);if(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1)){var b=this._.definition,c=b.attributes;if(c)for(var e in c)a.removeAttribute(e,c[e]);if(b.styles)for(var d in b.styles)b.styles.hasOwnProperty(d)&&a.removeStyle(d)}}function e(a){var b=a.createBookmark(true),c=a.createIterator();
c.enforceRealBlocks=true;if(this._.enterMode)c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var e,d=a.document;e=c.getNextParagraph();)if(!e.isReadOnly()){var f=p(this,d,e);i(e,f)}a.moveToBookmark(b)}function h(a){var b=a.createBookmark(1),c=a.createIterator();c.enforceRealBlocks=true;c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var e;e=c.getNextParagraph();)if(this.checkElementRemovable(e))if(e.is("pre")){var d=this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode==
CKEDITOR.ENTER_P?"p":"div");d&&e.copyAttributes(d);i(e,d)}else n.call(this,e);a.moveToBookmark(b)}function i(a,b){var c=!b;if(c){b=a.getDocument().createElement("div");a.copyAttributes(b)}var e=b&&b.is("pre"),d=a.is("pre"),f=!e&&d;if(e&&!d){d=b;(f=a.getBogus())&&f.remove();f=a.getHtml();f=j(f,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");f=f.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");f=f.replace(/([ \t\n\r]+|&nbsp;)/g," ");f=f.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var h=a.getDocument().createElement("div");
h.append(d);d.$.outerHTML="<pre>"+f+"</pre>";d.copyAttributes(h.getFirst());d=h.getFirst().remove()}else d.setHtml(f);b=d}else f?b=l(c?[a.getHtml()]:g(a),b):a.moveChildren(b);b.replace(a);if(e){var c=b,i;if((i=c.getPrevious(B))&&i.is&&i.is("pre")){e=j(i.getHtml(),/\n$/,"")+"\n\n"+j(c.getHtml(),/^\n/,"");CKEDITOR.env.ie?c.$.outerHTML="<pre>"+e+"</pre>":c.setHtml(e);i.remove()}}else c&&k(b)}function g(a){a.getName();var b=[];j(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,
function(a,b,c){return b+"</pre>"+c+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(a,c){b.push(c)});return b}function j(a,b,c){var e="",d="",a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(a,b,c){b&&(e=b);c&&(d=c);return""});return e+a.replace(b,c)+d}function l(a,b){var c;a.length>1&&(c=new CKEDITOR.dom.documentFragment(b.getDocument()));for(var e=0;e<a.length;e++){var d=a[e],d=d.replace(/(\r\n|\r)/g,"\n"),d=j(d,/^[ \t]*\n/,""),
d=j(d,/\n$/,""),d=j(d,/^[ \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)+" "}),d=d.replace(/\n/g,"<br>"),d=d.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat("&nbsp;",a.length-1)+" "});if(c){var f=b.clone();f.setHtml(d);c.append(f)}else b.setHtml(d)}return c||b}function n(a){var b=this._.definition,c=b.attributes,b=b.styles,e=t(this)[a.getName()],d=CKEDITOR.tools.isEmpty(c)&&CKEDITOR.tools.isEmpty(b),
f;for(f in c)if(!((f=="class"||this._.definition.fullMatch)&&a.getAttribute(f)!=y(f,c[f]))){d=a.hasAttribute(f);a.removeAttribute(f)}for(var g in b)if(!(this._.definition.fullMatch&&a.getStyle(g)!=y(g,b[g],true))){d=d||!!a.getStyle(g);a.removeStyle(g)}m(a,e,v[a.getName()]);d&&(this._.definition.alwaysRemoveElement?k(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!a.hasAttributes()?k(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function o(a){for(var b=
t(this),c=a.getElementsByTag(this.element),e=c.count();--e>=0;)n.call(this,c.getItem(e));for(var d in b)if(d!=this.element){c=a.getElementsByTag(d);for(e=c.count()-1;e>=0;e--){var f=c.getItem(e);m(f,b[d])}}}function m(a,b,c){if(b=b&&b.attributes)for(var e=0;e<b.length;e++){var d=b[e][0],f;if(f=a.getAttribute(d)){var g=b[e][1];(g===null||g.test&&g.test(f)||typeof g=="string"&&f==g)&&a.removeAttribute(d)}}c||k(a)}function k(a,b){if(!a.hasAttributes()||b)if(CKEDITOR.dtd.$block[a.getName()]){var c=a.getPrevious(B),
e=a.getNext(B);c&&(c.type==CKEDITOR.NODE_TEXT||!c.isBlockBoundary({br:1}))&&a.append("br",1);e&&(e.type==CKEDITOR.NODE_TEXT||!e.isBlockBoundary({br:1}))&&a.append("br");a.remove(true)}else{c=a.getFirst();e=a.getLast();a.remove(true);if(c){c.type==CKEDITOR.NODE_ELEMENT&&c.mergeSiblings();e&&(!c.equals(e)&&e.type==CKEDITOR.NODE_ELEMENT)&&e.mergeSiblings()}}}function p(a,b,c){var e;e=a.element;e=="*"&&(e="span");e=new CKEDITOR.dom.element(e,b);c&&c.copyAttributes(e);e=s(e,a);b.getCustomData("doc_processing_style")&&
e.hasAttribute("id")?e.removeAttribute("id"):b.setCustomData("doc_processing_style",1);return e}function s(a,b){var c=b._.definition,e=c.attributes,c=CKEDITOR.style.getStyleText(c);if(e)for(var d in e)a.setAttribute(d,e[d]);c&&a.setAttribute("style",c);return a}function r(a,b){for(var c in a)a[c]=a[c].replace(u,function(a,c){return b[c]})}function t(a){if(a._.overrides)return a._.overrides;var b=a._.overrides={},c=a._.definition.overrides;if(c){CKEDITOR.tools.isArray(c)||(c=[c]);for(var e=0;e<c.length;e++){var d=
c[e],f,g;if(typeof d=="string")f=d.toLowerCase();else{f=d.element?d.element.toLowerCase():a.element;g=d.attributes}d=b[f]||(b[f]={});if(g){var d=d.attributes=d.attributes||[],h;for(h in g)d.push([h.toLowerCase(),g[h]])}}}return b}function y(a,b,c){var e=new CKEDITOR.dom.element("span");e[c?"setStyle":"setAttribute"](a,b);return e[c?"getStyle":"getAttribute"](a)}function A(a,b){for(var c=a.document,e=a.getRanges(),d=b?this.removeFromRange:this.applyToRange,f,g=e.createIterator();f=g.getNextRange();)d.call(this,
f);a.selectRanges(e);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},w={a: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},q=/\s*(?:;\s*|$)/,u=/#\((.+?)\)/g,z=CKEDITOR.dom.walker.bookmark(0,1),B=CKEDITOR.dom.walker.whitespaces(1);
CKEDITOR.style=function(a,b){var c=a.attributes;if(c&&c.style){a.styles=CKEDITOR.tools.extend({},a.styles,CKEDITOR.tools.parseCssText(c.style));delete c.style}if(b){a=CKEDITOR.tools.clone(a);r(a.attributes,b);r(a.styles,b)}c=this.element=a.element?typeof a.element=="string"?a.element.toLowerCase():a.element:"*";this.type=a.type||(v[c]?CKEDITOR.STYLE_BLOCK:w[c]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE);if(typeof this.element=="object")this.type=CKEDITOR.STYLE_OBJECT;this._={definition:a}};CKEDITOR.editor.prototype.applyStyle=
function(a){A.call(a,this.getSelection())};CKEDITOR.editor.prototype.removeStyle=function(a){A.call(a,this.getSelection(),1)};CKEDITOR.style.prototype={apply:function(a){A.call(this,a.getSelection())},remove:function(a){A.call(this,a.getSelection(),1)},applyToRange:function(a){return(this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?d:this.type==CKEDITOR.STYLE_BLOCK?e:this.type==CKEDITOR.STYLE_OBJECT?c:null).call(this,a)},removeFromRange:function(b){return(this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?
a:this.type==CKEDITOR.STYLE_BLOCK?h:this.type==CKEDITOR.STYLE_OBJECT?f:null).call(this,b)},applyToObject:function(a){s(a,this)},checkActive:function(a){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(a.block||a.blockLimit,true);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var b=a.elements,c=0,e;c<b.length;c++){e=b[c];if(!(this.type==CKEDITOR.STYLE_INLINE&&(e==a.block||e==a.blockLimit))){if(this.type==CKEDITOR.STYLE_OBJECT){var d=e.getName();if(!(typeof this.element==
"string"?d==this.element:d in this.element))continue}if(this.checkElementRemovable(e,true))return true}}}return false},checkApplicable:function(a){switch(this.type){case CKEDITOR.STYLE_OBJECT:return a.contains(this.element)}return true},checkElementMatch:function(a,b){var c=this._.definition;if(!a||!c.ignoreReadonly&&a.isReadOnly())return false;var e=a.getName();if(typeof this.element=="string"?e==this.element:e in this.element){if(!b&&!a.hasAttributes())return true;if(e=c._AC)c=e;else{var e={},d=
0,f=c.attributes;if(f)for(var g in f){d++;e[g]=f[g]}if(g=CKEDITOR.style.getStyleText(c)){e.style||d++;e.style=g}e._length=d;c=c._AC=e}if(c._length){for(var h in c)if(h!="_length"){d=a.getAttribute(h)||"";if(h=="style")a:{e=c[h];typeof e=="string"&&(e=CKEDITOR.tools.parseCssText(e));typeof d=="string"&&(d=CKEDITOR.tools.parseCssText(d,true));g=void 0;for(g in e)if(!(g in d&&(d[g]==e[g]||e[g]=="inherit"||d[g]=="inherit"))){e=false;break a}e=true}else e=c[h]==d;if(e){if(!b)return true}else if(b)return false}if(b)return true}else return true}return false},
checkElementRemovable:function(a,b){if(this.checkElementMatch(a,b))return true;var c=t(this)[a.getName()];if(c){var e;if(!(c=c.attributes))return true;for(var d=0;d<c.length;d++){e=c[d][0];if(e=a.getAttribute(e)){var f=c[d][1];if(f===null||typeof f=="string"&&e==f||f.test(e))return true}}}return false},buildPreview:function(a){var b=this._.definition,c=[],e=b.element;e=="bdo"&&(e="span");var c=["<",e],d=b.attributes;if(d)for(var f in d)c.push(" ",f,'="',d[f],'"');(d=CKEDITOR.style.getStyleText(b))&&
c.push(' style="',d,'"');c.push(">",a||b.name,"</",e,">");return c.join("")},getDefinition:function(){return this._.definition}};CKEDITOR.style.getStyleText=function(a){var b=a._ST;if(b)return b;var b=a.styles,c=a.attributes&&a.attributes.style||"",e="";c.length&&(c=c.replace(q,";"));for(var d in b){var f=b[d],g=(d+":"+f).replace(q,";");f=="inherit"?e=e+g:c=c+g}c.length&&(c=CKEDITOR.tools.normalizeCssText(c,true));return a._ST=c+e}}(),CKEDITOR.styleCommand=function(b,d){this.requiredContent=this.allowedContent=
this.style=b;CKEDITOR.tools.extend(this,d,true)},CKEDITOR.styleCommand.prototype.exec=function(b){b.focus();this.state==CKEDITOR.TRISTATE_OFF?b.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&b.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(b,d,a){CKEDITOR.stylesSet.addExternal(b,d,"");CKEDITOR.stylesSet.load(b,a)},CKEDITOR.editor.prototype.getStylesSet=
function(b){if(this._.stylesDefinitions)b(this._.stylesDefinitions);else{var d=this,a=d.config.stylesCombo_stylesSet||d.config.stylesSet;if(a===false)b(null);else if(a instanceof Array){d._.stylesDefinitions=a;b(a)}else{a||(a="default");var a=a.split(":"),c=a[0];CKEDITOR.stylesSet.addExternal(c,a[1]?a.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(c,function(a){d._.stylesDefinitions=a[c];b(d._.stylesDefinitions)})}}},CKEDITOR.dom.comment=function(b,d){typeof b=="string"&&
(b=(d?d.$:document).createComment(b));CKEDITOR.dom.domObject.call(this,b)},CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"<\!--"+this.$.nodeValue+"--\>"}}),function(){var b={},d;for(d in CKEDITOR.dtd.$blockLimit)d in CKEDITOR.dtd.$list||(b[d]=1);var a={};for(d in CKEDITOR.dtd.$block)d in CKEDITOR.dtd.$blockLimit||d in CKEDITOR.dtd.$empty||(a[d]=1);CKEDITOR.dom.elementPath=function(c,
d){var e=null,h=null,i=[],d=d||c.getDocument().getBody(),g=c;do if(g.type==CKEDITOR.NODE_ELEMENT){i.push(g);if(!this.lastElement){this.lastElement=g;if(g.is(CKEDITOR.dtd.$object))continue}var j=g.getName();if(!h){!e&&a[j]&&(e=g);if(b[j]){var l;if(l=!e){if(j=j=="div"){a:{j=g.getChildren();l=0;for(var n=j.count();l<n;l++){var o=j.getItem(l);if(o.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[o.getName()]){j=true;break a}}j=false}j=!j&&!g.equals(d)}l=j}l?e=g:h=g}}if(g.equals(d))break}while(g=g.getParent());
this.block=e;this.blockLimit=h;this.root=d;this.elements=i}}(),CKEDITOR.dom.elementPath.prototype={compare:function(b){var d=this.elements,b=b&&b.elements;if(!b||d.length!=b.length)return false;for(var a=0;a<d.length;a++)if(!d[a].equals(b[a]))return false;return true},contains:function(b,d,a){var c;typeof b=="string"&&(c=function(a){return a.getName()==b});b instanceof CKEDITOR.dom.element?c=function(a){return a.equals(b)}:CKEDITOR.tools.isArray(b)?c=function(a){return CKEDITOR.tools.indexOf(b,a.getName())>
-1}:typeof b=="function"?c=b:typeof b=="object"&&(c=function(a){return a.getName()in b});var f=this.elements,e=f.length;d&&e--;if(a){f=Array.prototype.slice.call(f,0);f.reverse()}for(d=0;d<e;d++)if(c(f[d]))return f[d];return null},isContextFor:function(b){var d;if(b in CKEDITOR.dtd.$block){d=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit;return!!d.getDtd()[b]}return true},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},
CKEDITOR.dom.text=function(b,d){typeof b=="string"&&(b=(d?d.$:document).createTextNode(b));this.$=b},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(b){this.$.nodeValue=b},split:function(b){var d=this.$.parentNode,a=d.childNodes.length,c=this.getLength(),f=this.getDocument(),e=new CKEDITOR.dom.text(this.$.splitText(b),
f);if(d.childNodes.length==a)if(b>=c){e=f.createText("");e.insertAfter(this)}else{b=f.createText("");b.insertAfter(e);b.remove()}return e},substring:function(b,d){return typeof d!="number"?this.$.nodeValue.substr(b):this.$.nodeValue.substring(b,d)}}),function(){function b(a,b,d){var e=a.serializable,h=b[d?"endContainer":"startContainer"],i=d?"endOffset":"startOffset",g=e?b.document.getById(a.startNode):a.startNode,a=e?b.document.getById(a.endNode):a.endNode;if(h.equals(g.getPrevious())){b.startOffset=
b.startOffset-h.getLength()-a.getPrevious().getLength();h=a.getNext()}else if(h.equals(a.getPrevious())){b.startOffset=b.startOffset-h.getLength();h=a.getNext()}h.equals(g.getParent())&&b[i]++;h.equals(a.getParent())&&b[i]++;b[d?"endContainer":"startContainer"]=h;return b}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,d)};var d={createIterator:function(){var a=this,b=CKEDITOR.dom.walker.bookmark(),
d=[],e;return{getNextRange:function(h){e=e==void 0?0:e+1;var i=a[e];if(i&&a.length>1){if(!e)for(var g=a.length-1;g>=0;g--)d.unshift(a[g].createBookmark(true));if(h)for(var j=0;a[e+j+1];){for(var l=i.document,h=0,g=l.getById(d[j].endNode),l=l.getById(d[j+1].startNode);;){g=g.getNextSourceNode(false);if(l.equals(g))h=1;else if(b(g)||g.type==CKEDITOR.NODE_ELEMENT&&g.isBlockBoundary())continue;break}if(!h)break;j++}for(i.moveToBookmark(d.shift());j--;){g=a[++e];g.moveToBookmark(d.shift());i.setEnd(g.endContainer,
g.endOffset)}}return i}}},createBookmarks:function(a){for(var c=[],d,e=0;e<this.length;e++){c.push(d=this[e].createBookmark(a,true));for(var h=e+1;h<this.length;h++){this[h]=b(d,this[h]);this[h]=b(d,this[h],true)}}return c},createBookmarks2:function(a){for(var b=[],d=0;d<this.length;d++)b.push(this[d].createBookmark2(a));return b},moveToBookmarks:function(a){for(var b=0;b<this.length;b++)this[b].moveToBookmark(a[b])}}}(),function(){function b(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||
"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function d(a){var c=CKEDITOR.skin["ua_"+a],e=CKEDITOR.env;if(c)for(var c=c.split(",").sort(function(a,b){return a>b?-1:1}),d=0,f;d<c.length;d++){f=c[d];if(e.ie&&(f.replace(/^ie/,"")==e.version||e.quirks&&f=="iequirks"))f="ie";if(e[f]){a=a+("_"+c[d]);break}}return CKEDITOR.getUrl(b()+a+".css")}function a(a,b){if(!e[a]){CKEDITOR.document.appendStyleSheet(d(a));e[a]=1}b&&b()}function c(a){var b=a.getById(h);if(!b){b=a.getHead().append("style");b.setAttribute("id",
h);b.setAttribute("type","text/css")}return b}function f(a,b,c){var e,d,f;if(CKEDITOR.env.webkit){b=b.split("}").slice(0,-1);for(d=0;d<b.length;d++)b[d]=b[d].split("{")}for(var g=0;g<a.length;g++)if(CKEDITOR.env.webkit)for(d=0;d<b.length;d++){f=b[d][1];for(e=0;e<c.length;e++)f=f.replace(c[e][0],c[e][1]);a[g].$.sheet.addRule(b[d][0],f)}else{f=b;for(e=0;e<c.length;e++)f=f.replace(c[e][0],c[e][1]);CKEDITOR.env.ie?a[g].$.styleSheet.cssText=a[g].$.styleSheet.cssText+f:a[g].$.innerHTML=a[g].$.innerHTML+
f}}var e={};CKEDITOR.skin={path:b,loadPart:function(c,e){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(b()+"skin.js"),function(){a(c,e)}):a(c,e)},getPath:function(a){return CKEDITOR.getUrl(d(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,d){var f;if(a){a=a.toLowerCase();b&&(f=this.icons[a+"-rtl"]);f||(f=this.icons[a])}a=c||f&&f.path||"";e=
e||f&&f.offset;d=d||f&&f.bgsize||"16px";return a&&"background-image:url("+CKEDITOR.getUrl(a)+");background-position:0 "+e+"px;background-size:"+d+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(a){var b=c(CKEDITOR.document);return(this.setUiColor=function(a){var c=CKEDITOR.skin.chameleon,e=[[g,a]];this.uiColor=a;f([b],c(this,"editor"),e);f(i,c(this,"panel"),e)}).call(this,a)}});var h="cke_ui_color",i=[],g=/\$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=c(a);i.push(a);var e=b.getUiColor();e&&f([a],CKEDITOR.skin.chameleon(b,"panel"),[[g,e]])}};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 b=CKEDITOR.dom.element.createFromHtml('<div style="width:0px;height:0px;position:absolute;left:-10000px;border: 1px solid;border-color: red blue;"></div>',
CKEDITOR.document);b.appendTo(CKEDITOR.document.getHead());try{CKEDITOR.env.hc=b.getComputedStyle("border-top-color")==b.getComputedStyle("border-right-color")}catch(d){CKEDITOR.env.hc=false}b.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(b=CKEDITOR._.pending){delete CKEDITOR._.pending;for(var a=0;a<b.length;a++){CKEDITOR.editor.prototype.constructor.apply(b[a][0],
b[a][1]);CKEDITOR.add(b[a][0])}}}(),CKEDITOR.skin.name="moono",CKEDITOR.skin.ua_editor="ie,iequirks,ie7,ie8,gecko",CKEDITOR.skin.ua_dialog="ie,iequirks,ie7,ie8,opera",CKEDITOR.skin.chameleon=function(){var b=function(){return function(a,b){for(var e=a.match(/[^#]./g),d=0;d<3;d++){var i=e,g=d,j;j=parseInt(e[d],16);j=("0"+(b<0?0|j*(1+b):0|j+(255-j)*b).toString(16)).slice(-2);i[g]=j}return"#"+e.join("")}}(),d=function(){var a=new CKEDITOR.template("background:#{to};background-image:-webkit-gradient(linear,lefttop,leftbottom,from({from}),to({to}));background-image:-moz-linear-gradient(top,{from},{to});background-image:-webkit-linear-gradient(top,{from},{to});background-image:-o-linear-gradient(top,{from},{to});background-image:-ms-linear-gradient(top,{from},{to});background-image:linear-gradient(top,{from},{to});filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='{from}',endColorstr='{to}');");
return function(b,e){return a.output({from:b,to:e})}}(),a={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(c,f){var e=c.uiColor,e={id:"."+c.id,defaultBorder:b(e,-0.1),defaultGradient:d(b(e,0.9),e),lightGradient:d(b(e,1),b(e,0.7)),mediumGradient:d(b(e,0.8),b(e,0.5)),ckeButtonOn:d(b(e,0.6),b(e,0.7)),ckeResizer:b(e,-0.4),ckeToolbarSeparator:b(e,0.5),ckeColorauto:b(e,0.8),dialogBody:b(e,0.7),dialogTabSelected:d("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:b(e,-0.6),elementsPathBg:e,menubuttonIcon:b(e,0.5),menubuttonIconHover:b(e,0.3)};return a[f].output(e).replace(/\[/g,
"{").replace(/\]/g,"}")}}(),CKEDITOR.plugins.add("dialogui",{onLoad:function(){var b=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._},d={build:function(a,b,c){return new CKEDITOR.ui.dialog.textInput(a,b,c)}},a={build:function(a,b,c){return new CKEDITOR.ui.dialog[b.type](a,b,c)}},c={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}},f=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),e=/^on([A-Z]\w+)/,h=function(a){for(var b in a)(e.test(b)||b=="title"||b=="type")&&delete a[b];return a};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(a,c,e,d){if(!(arguments.length<4)){var f=b.call(this,c);f.labelId=CKEDITOR.tools.getNextId()+"_label";this._.children=[];CKEDITOR.ui.dialog.uiElement.call(this,a,c,e,"div",null,{role:"presentation"},function(){var b=[],e=c.required?
" cke_required":"";if(c.labelLayout!="horizontal")b.push('<label class="cke_dialog_ui_labeled_label'+e+'" ',' id="'+f.labelId+'"',f.inputId?' for="'+f.inputId+'"':"",(c.labelStyle?' style="'+c.labelStyle+'"':"")+">",c.label,"</label>",'<div class="cke_dialog_ui_labeled_content"'+(c.controlStyle?' style="'+c.controlStyle+'"':"")+' role="presentation">',d.call(this,a,c),"</div>");else{e={type:"hbox",widths:c.widths,padding:0,children:[{type:"html",html:'<label class="cke_dialog_ui_labeled_label'+e+
'" id="'+f.labelId+'" for="'+f.inputId+'"'+(c.labelStyle?' style="'+c.labelStyle+'"':"")+">"+CKEDITOR.tools.htmlEncode(c.label)+"</span>"},{type:"html",html:'<span class="cke_dialog_ui_labeled_content"'+(c.controlStyle?' style="'+c.controlStyle+'"':"")+">"+d.call(this,a,c)+"</span>"}]};CKEDITOR.dialog._.uiElementBuilders.hbox.build(a,e,b)}return b.join("")})}},textInput:function(a,c,e){if(!(arguments.length<3)){b.call(this,c);var d=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",f={"class":"cke_dialog_ui_input_"+
c.type,id:d,type:c.type};if(c.validate)this.validate=c.validate;if(c.maxLength)f.maxlength=c.maxLength;if(c.size)f.size=c.size;if(c.inputStyle)f.style=c.inputStyle;var h=this,m=false;a.on("load",function(){h.getInputElement().on("keydown",function(a){a.data.getKeystroke()==13&&(m=true)});h.getInputElement().on("keyup",function(b){if(b.data.getKeystroke()==13&&m){a.getButton("ok")&&setTimeout(function(){a.getButton("ok").click()},0);m=false}},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,
a,c,e,function(){var a=['<div class="cke_dialog_ui_input_',c.type,'" role="presentation"'];c.width&&a.push('style="width:'+c.width+'" ');a.push("><input ");f["aria-labelledby"]=this._.labelId;this._.required&&(f["aria-required"]=this._.required);for(var b in f)a.push(b+'="'+f[b]+'" ');a.push(" /></div>");return a.join("")})}},textarea:function(a,c,e){if(!(arguments.length<3)){b.call(this,c);var d=this,f=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",h={};if(c.validate)this.validate=c.validate;
h.rows=c.rows||5;h.cols=c.cols||20;h["class"]="cke_dialog_ui_input_textarea "+(c["class"]||"");if(typeof c.inputStyle!="undefined")h.style=c.inputStyle;if(c.dir)h.dir=c.dir;CKEDITOR.ui.dialog.labeledElement.call(this,a,c,e,function(){h["aria-labelledby"]=this._.labelId;this._.required&&(h["aria-required"]=this._.required);var a=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',f,'" '],b;for(b in h)a.push(b+'="'+CKEDITOR.tools.htmlEncode(h[b])+'" ');a.push(">",CKEDITOR.tools.htmlEncode(d._["default"]),
"</textarea></div>");return a.join("")})}},checkbox:function(a,c,e){if(!(arguments.length<3)){var d=b.call(this,c,{"default":!!c["default"]});if(c.validate)this.validate=c.validate;CKEDITOR.ui.dialog.uiElement.call(this,a,c,e,"span",null,null,function(){var b=CKEDITOR.tools.extend({},c,{id:c.id?c.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},true),e=[],f=CKEDITOR.tools.getNextId()+"_label",j={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":f};h(b);if(c["default"])j.checked=
"checked";if(typeof b.inputStyle!="undefined")b.style=b.inputStyle;d.checkbox=new CKEDITOR.ui.dialog.uiElement(a,b,e,"input",null,j);e.push(' <label id="',f,'" for="',j.id,'"'+(c.labelStyle?' style="'+c.labelStyle+'"':"")+">",CKEDITOR.tools.htmlEncode(c.label),"</label>");return e.join("")})}},radio:function(a,c,e){if(!(arguments.length<3)){b.call(this,c);if(!this._["default"])this._["default"]=this._.initValue=c.items[0][1];if(c.validate)this.validate=c.valdiate;var d=[],f=this;CKEDITOR.ui.dialog.labeledElement.call(this,
a,c,e,function(){for(var b=[],e=[],j=c.id?c.id+"_radio":CKEDITOR.tools.getNextId()+"_radio",p=0;p<c.items.length;p++){var s=c.items[p],r=s[2]!==void 0?s[2]:s[0],t=s[1]!==void 0?s[1]:s[0],y=CKEDITOR.tools.getNextId()+"_radio_input",A=y+"_label",y=CKEDITOR.tools.extend({},c,{id:y,title:null,type:null},true),r=CKEDITOR.tools.extend({},y,{title:r},true),v={type:"radio","class":"cke_dialog_ui_radio_input",name:j,value:t,"aria-labelledby":A},w=[];if(f._["default"]==t)v.checked="checked";h(y);h(r);if(typeof y.inputStyle!=
"undefined")y.style=y.inputStyle;d.push(new CKEDITOR.ui.dialog.uiElement(a,y,w,"input",null,v));w.push(" ");new CKEDITOR.ui.dialog.uiElement(a,r,w,"label",null,{id:A,"for":v.id},s[0]);b.push(w.join(""))}new CKEDITOR.ui.dialog.hbox(a,d,b,e);return e.join("")});this._.children=d}},button:function(a,c,e){if(arguments.length){typeof c=="function"&&(c=c(a.getParentEditor()));b.call(this,c,{disabled:c.disabled||false});CKEDITOR.event.implementOn(this);var d=this;a.on("load",function(){var a=this.getElement();
(function(){a.on("click",d.click,d);a.on("keydown",function(a){if(a.data.getKeystroke()in{32:1}){d.click();a.data.preventDefault()}})})();a.unselectable()},this);var f=CKEDITOR.tools.extend({},c);delete f.style;var h=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,a,f,e,"a",null,{style:c.style,href:"javascript:void(0)",title:c.label,hidefocus:"true","class":c["class"],role:"button","aria-labelledby":h},'<span id="'+h+'" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(c.label)+
"</span>")}},select:function(a,c,e){if(!(arguments.length<3)){var d=b.call(this,c);if(c.validate)this.validate=c.validate;d.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,a,c,e,function(){var b=CKEDITOR.tools.extend({},c,{id:c.id?c.id+"_select":CKEDITOR.tools.getNextId()+"_select"},true),e=[],f=[],j={id:d.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};e.push('<div class="cke_dialog_ui_input_',c.type,'" role="presentation"');
c.width&&e.push('style="width:'+c.width+'" ');e.push(">");if(c.size!=void 0)j.size=c.size;if(c.multiple!=void 0)j.multiple=c.multiple;h(b);for(var p=0,s;p<c.items.length&&(s=c.items[p]);p++)f.push('<option value="',CKEDITOR.tools.htmlEncode(s[1]!==void 0?s[1]:s[0]).replace(/"/g,"&quot;"),'" /> ',CKEDITOR.tools.htmlEncode(s[0]));if(typeof b.inputStyle!="undefined")b.style=b.inputStyle;d.select=new CKEDITOR.ui.dialog.uiElement(a,b,e,"select",null,j,f.join(""));e.push("</div>");return e.join("")})}},
file:function(a,c,e){if(!(arguments.length<3)){c["default"]===void 0&&(c["default"]="");var d=CKEDITOR.tools.extend(b.call(this,c),{definition:c,buttons:[]});if(c.validate)this.validate=c.validate;a.on("load",function(){CKEDITOR.document.getById(d.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,a,c,e,function(){d.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var a=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="',
d.frameId,'" title="',c.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(a,c,e){if(!(arguments.length<3)){b.call(this,c);var d=this;if(c.validate)this.validate=c.validate;var f=CKEDITOR.tools.extend({},c),h=f.onClick;f.className=(f.className?f.className+" ":"")+"cke_dialog_ui_button";f.onClick=function(b){var e=
c["for"];if(!h||h.call(this,b)!==false){a.getContentElement(e[0],e[1]).submit();this.disable()}};a.on("load",function(){a.getContentElement(c["for"][0],c["for"][1])._.buttons.push(d)});CKEDITOR.ui.dialog.button.call(this,a,f,e)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,b=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,c=/\/$/;return function(e,d,f){if(!(arguments.length<3)){var h=[],k=d.html;k.charAt(0)!="<"&&(k="<span>"+k+"</span>");var p=d.focus;if(p){var s=this.focus;this.focus=function(){(typeof p==
"function"?p:s).call(this);this.fire("focus")};if(d.isFocusable)this.isFocusable=this.isFocusable;this.keyboardFocusable=true}CKEDITOR.ui.dialog.uiElement.call(this,e,d,h,"span",null,null,"");h=h.join("").match(a);k=k.match(b)||["","",""];if(c.test(k[1])){k[1]=k[1].slice(0,-1);k[2]="/"+k[2]}f.push([k[1]," ",h[1]||"",k[2]].join(""))}}}(),fieldset:function(a,b,c,e,d){var f=d.label;this._={children:b};CKEDITOR.ui.dialog.uiElement.call(this,a,d,e,"fieldset",null,null,function(){var a=[];f&&a.push("<legend"+
(d.labelStyle?' style="'+d.labelStyle+'"':"")+">"+f+"</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:f},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){!a&&(a="");return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},keyboardFocusable:true},c,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),d=this.getInputElement().$;e.$.text=a;e.$.value=b===void 0||b===null?a:b;c===void 0||c===null?CKEDITOR.env.ie?d.add(e.$):d.add(e.$,null):d.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},c,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 f.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},c,true);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(a,b){for(var c=this._.children,e,d=0;d<c.length&&(e=c[d]);d++)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,c=0;c<a.length;c++)a[c].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 f.onChange.apply(this,arguments);return null}},keyboardFocusable:true},c,true);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,c,{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,c,e){a.on("formLoaded",function(){a.getInputElement().on(c,e,a)})},d;for(d in a)if(c=d.match(b))this.eventProcessors[d]?this.eventProcessors[d].call(this,this._.dialog,a[d]):e(this,this._.dialog,c[1].toLowerCase(),a[d]);return this},reset:function(){function a(){c.$.open();
var i="";e.size&&(i=e.size-(CKEDITOR.env.ie?7:0));var r=b.frameId+"_input";c.$.write(['<html dir="'+k+'" lang="'+p+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+k+'" lang="'+p+'" action="',CKEDITOR.tools.htmlEncode(e.action),'"><input type="hidden" name="Action" value="',CKEDITOR.config.action,'" /><input type="hidden" name="FormID" value="',CKEDITOR.config.formID,'"/><input type="hidden" name="CKEditorFuncNum" value="',
b.dialog._.editor._.filebrowserFn,'" /><input type="hidden" name="',Core.Config.Get("SessionName"),'" value="',Core.Config.Get("SessionID"),'" /><label id="',b.labelId,'" for="',r,'" style="display:none">',CKEDITOR.tools.htmlEncode(e.label),'</label><input id="',r,'" aria-labelledby="',b.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(e.id||"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(i>0?i:""),'" /></form></body></html><script>',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":
"","window.parent.CKEDITOR.tools.callFunction("+f+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+h+")}","<\/script>"].join(""));c.$.close();for(i=0;i<d.length;i++)d[i].enable()}var b=this._,c=CKEDITOR.document.getById(b.frameId).getFrameDocument(),e=b.definition,d=b.buttons,f=this.formLoadedNumber,h=this.formUnloadNumber,k=b.dialog._.editor.lang.dir,p=b.dialog._.editor.langCode;if(!f){f=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},
this);h=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this);this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(f);CKEDITOR.tools.removeFunction(h)})}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",d);CKEDITOR.dialog.addUIElement("password",d);CKEDITOR.dialog.addUIElement("textarea",a);CKEDITOR.dialog.addUIElement("checkbox",a);CKEDITOR.dialog.addUIElement("radio",
a);CKEDITOR.dialog.addUIElement("button",a);CKEDITOR.dialog.addUIElement("select",a);CKEDITOR.dialog.addUIElement("file",a);CKEDITOR.dialog.addUIElement("fileButton",a);CKEDITOR.dialog.addUIElement("html",a);CKEDITOR.dialog.addUIElement("fieldset",{build:function(a,b,c){for(var e=b.children,d,f=[],h=[],k=0;k<e.length&&(d=e[k]);k++){var p=[];f.push(p);h.push(CKEDITOR.dialog._.uiElementBuilders[d.type].build(a,d,p))}return new CKEDITOR.ui.dialog[b.type](a,h,f,c,b)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=
0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,function(){function b(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+a,c=b-1;c>b-a;c--)if(this._.tabs[this._.tabIdList[c%a]][0].$.offsetHeight)return this._.tabIdList[c%a];return null}function d(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),c=b+1;c<b+a;c++)if(this._.tabs[this._.tabIdList[c%a]][0].$.offsetHeight)return this._.tabIdList[c%
a];return null}function a(a,b){for(var c=a.$.getElementsByTagName("input"),e=0,d=c.length;e<d;e++){var f=new CKEDITOR.dom.element(c[e]);if(f.getAttribute("type").toLowerCase()=="text")if(b){f.setAttribute("value",f.getCustomData("fake_value")||"");f.removeCustomData("fake_value")}else{f.setCustomData("fake_value",f.getAttribute("value"));f.setAttribute("value","")}}}function c(a,b){var c=this.getInputElement();c&&(a?c.removeAttribute("aria-invalid"):c.setAttribute("aria-invalid",true));a||(this.select?
this.select():this.focus());b&&alert(b);this.fire("validated",{valid:a,msg:b})}function f(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")}function e(a){var a=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",p).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":""})),b=a.getChild([0,
0,0,0,0]),c=b.getChild(0),e=b.getChild(1);if(CKEDITOR.env.ie&&!CKEDITOR.env.ie6Compat){var d="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())";CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+d+'" tabIndex="-1"></iframe>').appendTo(b.getParent())}c.unselectable();e.unselectable();return{element:a,parts:{dialog:a.getChild(0),title:c,close:e,tabs:b.getChild(2),contents:b.getChild([3,
0,0,0]),footer:b.getChild([3,0,1,0])}}}function h(a,b,c){this.element=b;this.focusIndex=c;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 i(a){function b(){a.layout()}var c=CKEDITOR.document.getWindow();
c.on("resize",b);a.on("hide",function(){c.removeListener("resize",b)})}function g(a,b){this._={dialog:a};CKEDITOR.tools.extend(this,b)}function j(a){function b(c){var i=a.getSize(),j=CKEDITOR.document.getWindow().getViewPaneSize(),k=c.data.$.screenX,l=c.data.$.screenY,r=k-e.x,p=l-e.y;e={x:k,y:l};d.x=d.x+r;d.y=d.y+p;a.move(d.x+g[3]<h?-g[3]:d.x-g[1]>j.width-i.width-h?j.width-i.width+(f.lang.dir=="rtl"?0:g[1]):d.x,d.y+g[0]<h?-g[0]:d.y-g[2]>j.height-i.height-h?j.height-i.height+g[2]:d.y,1);c.data.preventDefault()}
function c(){CKEDITOR.document.removeListener("mousemove",b);CKEDITOR.document.removeListener("mouseup",c);if(CKEDITOR.env.ie6Compat){var a=q.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",c)}}var e=null,d=null;a.getElement().getFirst();var f=a.getParentEditor(),h=f.config.dialog_magnetDistance,g=CKEDITOR.skin.margins||[0,0,0,0];typeof h=="undefined"&&(h=20);a.parts.title.on("mousedown",function(f){e={x:f.data.$.screenX,y:f.data.$.screenY};CKEDITOR.document.on("mousemove",
b);CKEDITOR.document.on("mouseup",c);d=a.getPosition();if(CKEDITOR.env.ie6Compat){var h=q.getChild(0).getFrameDocument();h.on("mousemove",b);h.on("mouseup",c)}f.data.preventDefault()},a)}function l(a){var b,c;function e(d){var r=g.lang.dir=="rtl",p=l.width,m=l.height,n=p+(d.data.$.screenX-b)*(r?-1:1)*(a._.moved?1:2),s=m+(d.data.$.screenY-c)*(a._.moved?1:2),t=a._.element.getFirst(),t=r&&t.getComputedStyle("right"),o=a.getPosition();o.y+s>k.height&&(s=k.height-o.y);if((r?t:o.x)+n>k.width)n=k.width-
(r?t:o.x);if(h==CKEDITOR.DIALOG_RESIZE_WIDTH||h==CKEDITOR.DIALOG_RESIZE_BOTH)p=Math.max(f.minWidth||0,n-i);if(h==CKEDITOR.DIALOG_RESIZE_HEIGHT||h==CKEDITOR.DIALOG_RESIZE_BOTH)m=Math.max(f.minHeight||0,s-j);a.resize(p,m);a._.moved||a.layout();d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mouseup",d);CKEDITOR.document.removeListener("mousemove",e);if(r){r.remove();r=null}if(CKEDITOR.env.ie6Compat){var a=q.getChild(0).getFrameDocument();a.removeListener("mouseup",d);a.removeListener("mousemove",
e)}}var f=a.definition,h=f.resizable;if(h!=CKEDITOR.DIALOG_RESIZE_NONE){var g=a.getParentEditor(),i,j,k,l,r,p=CKEDITOR.tools.addFunction(function(f){l=a.getSize();var h=a.parts.contents;if(h.$.getElementsByTagName("iframe").length){r=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>');h.append(r)}j=l.height-a.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.opera||CKEDITOR.env.ie&&CKEDITOR.env.quirks));
i=l.width-a.parts.contents.getSize("width",1);b=f.screenX;c=f.screenY;k=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",e);CKEDITOR.document.on("mouseup",d);if(CKEDITOR.env.ie6Compat){h=q.getChild(0).getFrameDocument();h.on("mousemove",e);h.on("mouseup",d)}f.preventDefault&&f.preventDefault()});a.on("load",function(){var b="";h==CKEDITOR.DIALOG_RESIZE_WIDTH?b=" cke_resizer_horizontal":h==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('+p+', event )">'+(g.lang.dir=="ltr"?"◢":"◣")+"</div>");a.parts.footer.append(b,1)});g.on("destroy",function(){CKEDITOR.tools.removeFunction(p)})}}function n(a){a.data.preventDefault(1)}function o(a){var b=CKEDITOR.document.getWindow(),c=a.config,e=c.dialog_backgroundCoverColor||"white",d=c.dialog_backgroundCoverOpacity,f=c.baseFloatZIndex,c=CKEDITOR.tools.genKey(e,
d,f),h=w[c];if(h)h.show();else{f=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",f,"; top: 0px; left: 0px; ",!CKEDITOR.env.ie6Compat?"background-color: "+e:"",'" class="cke_dialog_background_cover">'];if(CKEDITOR.env.ie6Compat){e="<html><body style=\\'background-color:"+e+";\\'></body></html>";f.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:');f.push("void((function(){"+encodeURIComponent("document.open();("+
CKEDITOR.tools.fixDomain+")();document.write( '"+e+"' );document.close();")+"})())");f.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')}f.push("</div>");h=CKEDITOR.dom.element.createFromHtml(f.join(""));h.setOpacity(d!=void 0?d:0.5);h.on("keydown",n);h.on("keypress",n);h.on("keyup",n);h.appendTo(CKEDITOR.document.getBody());w[c]=h}a.focusManager.add(h);q=h;var a=function(){var a=b.getViewPaneSize();h.setStyles({width:a.width+
"px",height:a.height+"px"})},g=function(){var a=b.getScrollPosition(),c=CKEDITOR.dialog._.currentTop;h.setStyles({left:a.x+"px",top:a.y+"px"});if(c){do{a=c.getPosition();c.move(a.x,a.y)}while(c=c._.parentDialog)}};v=a;b.on("resize",a);a();(!CKEDITOR.env.mac||!CKEDITOR.env.webkit)&&h.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 m(a){if(q){a.focusManager.remove(q);a=CKEDITOR.document.getWindow();q.hide();a.removeListener("resize",v);CKEDITOR.env.ie6Compat&&a.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0);v=null}}var k=CKEDITOR.tools.cssLength,p='<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(a,h){function g(){var a=q._.focusList;a.sort(function(a,b){return a.tabIndex!=b.tabIndex?b.tabIndex-a.tabIndex:a.focusIndex-b.focusIndex});for(var b=a.length,c=0;c<b;c++)a[c].focusIndex=c}function i(a){var b=q._.focusList,a=a||0;if(!(b.length<1)){var c=q._.currentFocusIndex;try{b[c].getInputElement().$.blur()}catch(e){}for(var d=c=(c+a+b.length)%b.length;a&&!b[d].isFocusable();){d=(d+a+b.length)%b.length;if(d==c)break}b[d].focus();b[d].type=="text"&&b[d].select()}}function k(c){if(q==
CKEDITOR.dialog._.currentTop){var e=c.data.getKeystroke(),f=a.lang.dir=="rtl";y=v=0;if(e==9||e==CKEDITOR.SHIFT+9){e=e==CKEDITOR.SHIFT+9;if(q._.tabBarMode){e=e?b.call(q):d.call(q);q.selectPage(e);q._.tabs[e][0].focus()}else i(e?-1:1);y=1}else if(e==CKEDITOR.ALT+121&&!q._.tabBarMode&&q.getPageCount()>1){q._.tabBarMode=true;q._.tabs[q._.currentTabId][0].focus();y=1}else if((e==37||e==39)&&q._.tabBarMode){e=e==(f?39:37)?b.call(q):d.call(q);q.selectPage(e);q._.tabs[e][0].focus();y=1}else if((e==13||e==
32)&&q._.tabBarMode){this.selectPage(this._.currentTabId);this._.tabBarMode=false;this._.currentFocusIndex=-1;i(1);y=1}else if(e==13){e=c.data.getTarget();if(!e.is("a","button","select","textarea")&&(!e.is("input")||e.$.type!="button")){(e=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(e.click,0,e);y=1}v=1}else if(e==27){(e=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(e.click,0,e):this.fire("cancel",{hide:true}).hide!==false&&this.hide();v=1}else return;r(c)}}function r(a){y?a.data.preventDefault(1):
v&&a.data.stopPropagation()}var p=CKEDITOR.dialog._.dialogDefinitions[h],m=CKEDITOR.tools.clone(s),n=a.config.dialog_buttonsOrder||"OS",t=a.lang.dir,o={},y,v;(n=="OS"&&CKEDITOR.env.mac||n=="rtl"&&t=="ltr"||n=="ltr"&&t=="rtl")&&m.buttons.reverse();p=CKEDITOR.tools.extend(p(a),m);p=CKEDITOR.tools.clone(p);p=new A(this,p);m=e(a);this._={editor:a,element:m.element,name:h,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=m.parts;CKEDITOR.tools.setTimeout(function(){a.fire("ariaWidget",this.parts.contents)},0,this);m={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};m[t=="rtl"?"right":"left"]=0;this.parts.dialog.setStyles(m);CKEDITOR.event.call(this);this.definition=p=CKEDITOR.fire("dialogDefinition",{name:h,definition:p},a).definition;if(!("removeDialogTabs"in a._)&&
a.config.removeDialogTabs){m=a.config.removeDialogTabs.split(";");for(t=0;t<m.length;t++){n=m[t].split(":");if(n.length==2){var w=n[0];o[w]||(o[w]=[]);o[w].push(n[1])}}a._.removeDialogTabs=o}if(a._.removeDialogTabs&&(o=a._.removeDialogTabs[h]))for(t=0;t<o.length;t++)p.removeContents(o[t]);if(p.onLoad)this.on("load",p.onLoad);if(p.onShow)this.on("show",p.onShow);if(p.onHide)this.on("hide",p.onHide);if(p.onOk)this.on("ok",function(b){a.fire("saveSnapshot");setTimeout(function(){a.fire("saveSnapshot")},
0);if(p.onOk.call(this,b)===false)b.data.hide=false});if(p.onCancel)this.on("cancel",function(a){if(p.onCancel.call(this,a)===false)a.data.hide=false});var q=this,z=function(a){var b=q._.contents,c=false,e;for(e in b)for(var d in b[e])if(c=a.call(this,b[e][d]))return};this.on("ok",function(a){z(function(b){if(b.validate){var e=b.validate(this),d=typeof e=="string"||e===false;if(d){a.data.hide=false;a.stop()}c.call(b,!d,typeof e=="string"?e:void 0);return d}})},this,null,0);this.on("cancel",function(b){z(function(c){if(c.isChanged()){if(!confirm(a.lang.common.confirmCancel))b.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=i;var u=this._.element;a.focusManager.add(u,1);this.on("show",function(){u.on("keydown",k,this);if(CKEDITOR.env.opera||CKEDITOR.env.gecko)u.on("keypress",r,this)});this.on("hide",function(){u.removeListener("keydown",k);(CKEDITOR.env.opera||CKEDITOR.env.gecko)&&u.removeListener("keypress",r);z(function(a){f.apply(a)})});
this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",k,this,null,0)});this.on("show",function(){g();if(a.config.dialog_startupFocusTab&&q._.pageCount>1){q._.tabBarMode=true;q._.tabs[q._.currentTabId][0].focus()}else if(!this._.hasFocus){this._.currentFocusIndex=-1;if(p.onFocus){var b=p.onFocus.call(this);b&&b.focus()}else i(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);j(this);l(this);(new CKEDITOR.dom.text(p.title,CKEDITOR.document)).appendTo(this.parts.title);for(t=0;t<p.contents.length;t++)(o=p.contents[t])&&this.addPage(o);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;i(1)}a.data.preventDefault()}},this);t=[];o=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,
{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:p.buttons},t).getChild();this.parts.footer.setHtml(t.join(""));for(t=0;t<o.length;t++)this._.buttons[o[t].id]=o[t]};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,c){var e=this._.element.getFirst(),d=this._.editor.lang.dir==
"rtl",f=e.getComputedStyle("position")=="fixed";CKEDITOR.env.ie&&e.setStyle("zoom","100%");if(!f||!this._.position||!(this._.position.x==a&&this._.position.y==b)){this._.position={x:a,y:b};if(!f){f=CKEDITOR.document.getWindow().getScrollPosition();a=a+f.x;b=b+f.y}if(d){f=this.getSize();a=CKEDITOR.document.getWindow().getViewPaneSize().width-f.width-a}b={top:(b>0?b:0)+"px"};b[d?"right":"left"]=(a>0?a:0)+"px";e.setStyles(b);c&&(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");if(CKEDITOR.env.gecko&&CKEDITOR.env.version<10900){var c=this.parts.dialog;c.setStyle("position","absolute");setTimeout(function(){c.setStyle("position","fixed")},0)}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;o(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(CKEDITOR.env.opera?"keypress":"keyup",B);this._.hasFocus=false;CKEDITOR.tools.setTimeout(function(){this.layout();i(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(),c=CKEDITOR.document.getWindow().getViewPaneSize(),e=(c.width-b.width)/2,d=(c.height-b.height)/2;CKEDITOR.env.ie6Compat||(b.height+(d>0?d:0)>c.height||b.width+(e>0?e:0)>c.width?a.setStyle("position","absolute"):a.setStyle("position","fixed"));this.move(this._.moved?this._.position.x:e,this._.moved?this._.position.y:d)},foreach:function(a){for(var b in this._.contents)for(var c in this._.contents[b])a.call(this,this._.contents[b][c]);
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(C(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 m(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(CKEDITOR.env.opera?"keypress":"keyup",B);var c=this._.editor;c.focus();setTimeout(function(){c.focusManager.unlock()},0)}delete this._.parentDialog;this.foreach(function(a){a.resetInitValue&&a.resetInitValue()})}},addPage:function(a){if(!a.requiredContent||this._.editor.filter.check(a.requiredContent)){for(var b=[],c=a.label?' title="'+CKEDITOR.tools.htmlEncode(a.label)+'"':
"",e=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),d=this._.contents[a.id]={},f=e.getChild(),h=0;e=f.shift();){!e.notAllowed&&(e.type!="hbox"&&e.type!="vbox")&&h++;d[e.id]=e;typeof e.getChild=="function"&&f.push.apply(f,e.getChild())}if(!h)a.hidden=true;b=CKEDITOR.dom.element.createFromHtml(b.join(""));b.setAttribute("role","tabpanel");e=CKEDITOR.env;d=
"cke_"+a.id+"_"+CKEDITOR.tools.getNextNumber();c=CKEDITOR.dom.element.createFromHtml(['<a class="cke_dialog_tab"',this._.pageCount>0?" cke_last":"cke_first",c,a.hidden?' style="display:none"':"",' id="',d,'"',e.gecko&&e.version>=10900&&!e.hc?"":' href="javascript:void(0)"',' tabIndex="-1" hidefocus="true" role="tab">',a.label,"</a>"].join(""));b.setAttribute("aria-labelledby",d);this._.tabs[a.id]=[c,b];this._.tabIdList.push(a.id);!a.hidden&&this._.pageCount++;this._.lastTab=c;this.updateStyle();b.setAttribute("name",
a.id);b.appendTo(this.parts.contents);c.unselectable();this.parts.tabs.append(c);if(a.accessKey){x(this,this,"CTRL+"+a.accessKey,F,D);this._.accessKeyMap["CTRL+"+a.accessKey]=a.id}}},selectPage:function(b){if(this._.currentTabId!=b&&this.fire("selectPage",{page:b,currentPage:this._.currentTabId})!==true){for(var c in this._.tabs){var e=this._.tabs[c][0],d=this._.tabs[c][1];if(c!=b){e.removeClass("cke_dialog_tab_selected");d.hide()}d.setAttribute("aria-hidden",c!=b)}var f=this._.tabs[b];f[0].addClass("cke_dialog_tab_selected");
if(CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat){a(f[1]);f[1].show();setTimeout(function(){a(f[1],1)},0)}else f[1].show();this._.currentTabId=b;this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,b)}},updateStyle:function(){this.parts.dialog[(this._.pageCount===1?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(a){var c=this._.tabs[a]&&this._.tabs[a][0];if(c&&this._.pageCount!=1&&c.isVisible()){a==this._.currentTabId&&this.selectPage(b.call(this));c.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 c=this._.contents[a];return c&&c[b]},getValueOf:function(a,b){return this.getContentElement(a,b).getValue()},setValueOf:function(a,b,c){return this.getContentElement(a,b).setValue(c)},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 h(this,a,b))}else{this._.focusList.splice(b,0,new h(this,a,b));for(var c=b+1;c<
this._.focusList.length;c++)this._.focusList[c].focusIndex++}}};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,c){a=a.config.removeDialogTabs;return!(a&&a.match(RegExp("(?:^|;)"+b+":"+c+"(?:$|;)","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(c){return a(c,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(c){return a(c,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 s={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,
minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},r=function(a,b,c){for(var e=0,d;d=a[e];e++){if(d.id==b)return d;if(c&&d[c])if(d=r(d[c],b,c))return d}return null},t=function(a,b,c,e,d){if(c){for(var f=0,h;h=a[f];f++){if(h.id==c){a.splice(f,0,b);return b}if(e&&h[e])if(h=t(h[e],b,c,e,true))return h}if(d)return null}a.push(b);return b},y=function(a,b,c){for(var e=0,d;d=a[e];e++){if(d.id==b)return a.splice(e,1);if(c&&d[c])if(d=y(d[c],b,c))return d}return null},A=function(a,
b){this.dialog=a;for(var c=b.contents,e=0,d;d=c[e];e++)c[e]=d&&new g(a,d);CKEDITOR.tools.extend(this,b)};A.prototype={getContents:function(a){return r(this.contents,a)},getButton:function(a){return r(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){y(this.contents,a)},removeButton:function(a){y(this.buttons,a)}};g.prototype={get:function(a){return r(this.elements,a,"children")},add:function(a,b){return t(this.elements,
a,b,"children")},remove:function(a){y(this.elements,a,"children")}};var v,w={},q,u={},z=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,e=a.data.$.shiftKey,d=String.fromCharCode(a.data.$.keyCode);if((b=u[(b?"CTRL+":"")+(c?"ALT+":"")+(e?"SHIFT+":"")+d])&&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,c=a.data.$.altKey,e=a.data.$.shiftKey,d=String.fromCharCode(a.data.$.keyCode);
if((b=u[(b?"CTRL+":"")+(c?"ALT+":"")+(e?"SHIFT+":"")+d])&&b.length){b=b[b.length-1];if(b.keyup){b.keyup.call(b.uiElement,b.dialog,b.key);a.data.preventDefault()}}},x=function(a,b,c,e,d){(u[c]||(u[c]=[])).push({uiElement:a,dialog:b,key:c,keyup:d||a.accessKeyUp,keydown:e||a.accessKeyDown})},C=function(a){for(var b in u){for(var c=u[b],e=c.length-1;e>=0;e--)(c[e].dialog==a||c[e].uiElement==a)&&c.splice(e,1);c.length===0&&delete u[b]}},D=function(a,b){a._.accessKeyMap[b]&&a.selectPage(a._.accessKeyMap[b])},
F=function(){};(function(){CKEDITOR.ui.dialog={uiElement:function(a,b,c,e,d,f,h){if(!(arguments.length<4)){var g=(e.call?e(b):e)||"div",i=["<",g," "],j=(d&&d.call?d(b):d)||{},k=(f&&f.call?f(b):f)||{},l=(h&&h.call?h.call(this,a,b):h)||"",r=this.domId=k.id||CKEDITOR.tools.getNextId()+"_uiElement";this.id=b.id;if(b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)){j.display="none";this.notAllowed=true}k.id=r;var p={};b.type&&(p["cke_dialog_ui_"+b.type]=1);b.className&&(p[b.className]=
1);b.disabled&&(p.cke_disabled=1);for(var m=k["class"]&&k["class"].split?k["class"].split(" "):[],r=0;r<m.length;r++)m[r]&&(p[m[r]]=1);m=[];for(r in p)m.push(r);k["class"]=m.join(" ");if(b.title)k.title=b.title;p=(b.style||"").split(";");if(b.align){m=b.align;j["margin-left"]=m=="left"?0:"auto";j["margin-right"]=m=="right"?0:"auto"}for(r in j)p.push(r+":"+j[r]);b.hidden&&p.push("display:none");for(r=p.length-1;r>=0;r--)p[r]===""&&p.splice(r,1);if(p.length>0)k.style=(k.style?k.style+"; ":"")+p.join("; ");
for(r in k)i.push(r+'="'+CKEDITOR.tools.htmlEncode(k[r])+'" ');i.push(">",l,"</",g,">");c.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(c){a.call(this,b.setValue.call(this,c))}});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)&&x(this,a,"CTRL+"+b.accessKey);var n=this;a.on("load",function(){var b=n.getInputElement();if(b){var c=n.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;n.fire("focus");c&&this.addClass(c)});b.on("blur",function(){n.fire("blur");
c&&this.removeClass(c)})}});if(this.keyboardFocusable){this.tabIndex=b.tabIndex||0;this.focusIndex=a._.focusList.push(this)-1;this.on("focus",function(){a._.currentFocusIndex=n.focusIndex})}CKEDITOR.tools.extend(this,b)}},hbox:function(a,b,c,e,d){if(!(arguments.length<4)){this._||(this._={});var f=this._.children=b,h=d&&d.widths||null,g=d&&d.height||null,i,j={role:"presentation"};d&&d.align&&(j.align=d.align);CKEDITOR.ui.dialog.uiElement.call(this,a,d||{type:"hbox"},e,"table",{},j,function(){var a=
['<tbody><tr class="cke_dialog_ui_hbox">'];for(i=0;i<c.length;i++){var b="cke_dialog_ui_hbox_child",e=[];i===0&&(b="cke_dialog_ui_hbox_first");i==c.length-1&&(b="cke_dialog_ui_hbox_last");a.push('<td class="',b,'" role="presentation" ');h?h[i]&&e.push("width:"+k(h[i])):e.push("width:"+Math.floor(100/c.length)+"%");g&&e.push("height:"+k(g));d&&d.padding!=void 0&&e.push("padding:"+k(d.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&f[i].align)&&e.push("text-align:"+f[i].align);e.length>0&&a.push('style="'+
e.join("; ")+'" ');a.push(">",c[i],"</td>")}a.push("</tr></tbody>");return a.join("")})}},vbox:function(a,b,c,e,d){if(!(arguments.length<3)){this._||(this._={});var f=this._.children=b,h=d&&d.width||null,g=d&&d.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,d||{type:"vbox"},e,"div",null,{role:"presentation"},function(){var b=['<table role="presentation" cellspacing="0" border="0" '];b.push('style="');d&&d.expand&&b.push("height:100%;");b.push("width:"+k(h||"100%"),";");CKEDITOR.env.webkit&&
b.push("float:none;");b.push('"');b.push('align="',CKEDITOR.tools.htmlEncode(d&&d.align||(a.getParentEditor().lang.dir=="ltr"?"left":"right")),'" ');b.push("><tbody>");for(var e=0;e<c.length;e++){var i=[];b.push('<tr><td role="presentation" ');h&&i.push("width:"+k(h||"100%"));g?i.push("height:"+k(g[e])):d&&d.expand&&i.push("height:"+Math.floor(100/c.length)+"%");d&&d.padding!=void 0&&i.push("padding:"+k(d.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&f[e].align)&&i.push("text-align:"+f[e].align);
i.length>0&&b.push('style="',i.join("; "),'" ');b.push(' class="cke_dialog_ui_vbox_child">',c[e],"</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+)/,c,e=function(a,b,c,e){b.on("load",function(){a.getInputElement().on(c,e,a)})},d;for(d in a)if(c=
d.match(b))this.eventProcessors[d]?this.eventProcessors[d].call(this,this._.dialog,a[d]):e(this,this._.dialog,c[1].toLowerCase(),a[d]);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,c){for(var e=b.children,d,f=[],h=[],g=0;g<e.length&&(d=e[g]);g++){var i=[];f.push(i);h.push(CKEDITOR.dialog._.uiElementBuilders[d.type].build(a,d,i))}return new CKEDITOR.ui.dialog[b.type](a,h,f,c,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){CKEDITOR.env.opera?CKEDITOR.tools.setTimeout(function(){a.openDialog(this.dialogName)},0,this):a.openDialog(this.dialogName)},canUndo:false,editorFocus:1};(function(){var a=/^([a]|[^a])+$/,b=/^\d*$/,c=/^\d*(?:\.\d+)?$/,e=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,d=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,f=/^(\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],c=void 0,e=CKEDITOR.VALIDATE_AND,d=[],f;for(f=0;f<a.length;f++)if(typeof a[f]=="function")d.push(a[f]);else break;if(f<a.length&&typeof a[f]=="string"){c=a[f];f++}f<a.length&&typeof a[f]=="number"&&(e=a[f]);var h=e==CKEDITOR.VALIDATE_AND?true:false;for(f=0;f<d.length;f++)h=e==CKEDITOR.VALIDATE_AND?h&&d[f](b):h||d[f](b);return!h?
c:true}},regex:function(a,b){return function(c){c=this&&this.getValue?this.getValue():c;return!a.test(c)?b:true}},notEmpty:function(b){return this.regex(a,b)},integer:function(a){return this.regex(b,a)},number:function(a){return this.regex(c,a)},cssLength:function(a){return this.functions(function(a){return d.test(CKEDITOR.tools.trim(a))},a)},htmlLength:function(a){return this.functions(function(a){return e.test(CKEDITOR.tools.trim(a))},a)},inlineStyle:function(a){return this.functions(function(a){return f.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 c in w)w[c].remove();w={}}var a=a.editor._.storedDialogs,e;for(e in a)a[e].destroy()})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(a,b){var c=null,e=CKEDITOR.dialog._.dialogDefinitions[a];
CKEDITOR.dialog._.currentTop===null&&o(this);if(typeof e=="function"){c=this._.storedDialogs||(this._.storedDialogs={});c=c[a]||(c[a]=new CKEDITOR.dialog(this,a));b&&b.call(c,c);c.show()}else{if(e=="failed"){m(this);throw Error('[CKEDITOR.dialog.openDialog] Dialog "'+a+'" failed when loading definition.');}typeof e=="string"&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e),function(){typeof CKEDITOR.dialog._.dialogDefinitions[a]!="function"&&(CKEDITOR.dialog._.dialogDefinitions[a]="failed");this.openDialog(a,
b)},this,0,1)}CKEDITOR.skin.loadPart("dialog");return c}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(b){b.on("contentDom",function(){var d=b.editable();d.attachListener(d,"dblclick",function(a){if(b.readOnly)return false;a={element:a.data.getTarget()};b.fire("doubleclick",a);a.dialog&&b.openDialog(a.dialog);return 1})})}}),function(){CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{ar:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,en:1,eo:1,es:1,et:1,fa:1,fi: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,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,ug:1,uk:1,vi:1,"zh-cn":1},init:function(b){var d=this;b.addCommand("a11yHelp",{exec:function(){var a=b.langCode,a=d.availableLangs[a]?a:d.availableLangs[a.replace(/-.*/,"")]?a.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(d.path+"dialogs/lang/"+a+".js"),function(){b.lang.a11yhelp=d.langEntries[a];b.openDialog("a11yHelp")})},
modes:{wysiwyg:1,source:1},readOnly:1,canUndo:false});b.setKeystroke(CKEDITOR.ALT+48,"a11yHelp");CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js")}})}(),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(b){var d=b.addCommand("about",new CKEDITOR.dialogCommand("about"));d.modes={wysiwyg:1,source:1};d.canUndo=false;d.readOnly=1;b.ui.addButton&&b.ui.addButton("About",{label:b.lang.about.title,command:"about",toolbar:"about"});CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),
CKEDITOR.plugins.add("basicstyles",{init:function(b){var d=0,a=function(a,e,f,j){if(j){var j=new CKEDITOR.style(j),l=c[f];l.unshift(j);b.attachStyleStateChange(j,function(a){!b.readOnly&&b.getCommand(f).setState(a)});b.addCommand(f,new CKEDITOR.styleCommand(j,{contentForms:l}));b.ui.addButton&&b.ui.addButton(a,{label:e,command:f,toolbar:"basicstyles,"+(d=d+10)})}},c={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"]},f=b.config,e=b.lang.basicstyles;a("Bold",e.bold,"bold",f.coreStyles_bold);a("Italic",e.italic,"italic",f.coreStyles_italic);a("Underline",e.underline,"underline",f.coreStyles_underline);a("Strike",e.strike,"strike",f.coreStyles_strike);a("Subscript",e.subscript,"subscript",
f.coreStyles_subscript);a("Superscript",e.superscript,"superscript",f.coreStyles_superscript);b.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 b(a,b,c,e){if(!a.isReadOnly()&&!a.equals(c.editable())){CKEDITOR.dom.element.setMarker(e,a,"bidi_processed",1);for(var e=a,d=c.editable();(e=e.getParent())&&!e.equals(d);)if(e.getCustomData("bidi_processed")){a.removeStyle("direction");a.removeAttribute("dir");return}e="useComputedState"in c.config?c.config.useComputedState:1;if((e?a.getComputedStyle("direction"):a.getStyle("direction")||a.hasAttribute("dir"))!=b){a.removeStyle("direction");if(e){a.removeAttribute("dir");
b!=a.getComputedStyle("direction")&&a.setAttribute("dir",b)}else a.setAttribute("dir",b);c.forceNextSelectionCheck()}}}function d(a,b,c){var e=a.getCommonAncestor(false,true),a=a.clone();a.enlarge(c==CKEDITOR.ENTER_BR?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(a.checkBoundaryOfElement(e,CKEDITOR.START)&&a.checkBoundaryOfElement(e,CKEDITOR.END)){for(var d;e&&e.type==CKEDITOR.NODE_ELEMENT&&(d=e.getParent())&&d.getChildCount()==1&&!(e.getName()in b);)e=d;return e.type==CKEDITOR.NODE_ELEMENT&&
e.getName()in b&&e}}function a(a){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 c=a.config.useComputedState,e,c=c===void 0||c;if(!c){e=b.lastElement;for(var d=a.editable();e&&!(e.getName()in h||e.equals(d));){var f=e.getParent();if(!f)break;e=f}}e=e||b.block||b.blockLimit;if(e.equals(a.editable()))(d=a.getSelection().getRanges()[0].getEnclosedNode())&&d.type==
CKEDITOR.NODE_ELEMENT&&(e=d);if(e){c=c?e.getComputedStyle("direction"):e.getStyle("direction")||e.getAttribute("dir");a.getCommand("bidirtl").setState(c=="rtl"?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF);a.getCommand("bidiltr").setState(c=="ltr"?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}c=(b.block||b.blockLimit||a.editable()).getDirection(1);if(c!=(a._.selDir||a.lang.dir)){a._.selDir=c;a.fire("contentDirChanged",c)}},exec:function(c){var h=c.getSelection(),g=c.config.enterMode,i=h.getRanges();if(i&&
i.length){for(var j={},s=h.createBookmarks(),i=i.createIterator(),r,t=0;r=i.getNextRange(1);){var y=r.getEnclosedNode();if(!y||y&&!(y.type==CKEDITOR.NODE_ELEMENT&&y.getName()in e))y=d(r,f,g);y&&b(y,a,c,j);var A=new CKEDITOR.dom.walker(r),v=s[t].startNode,w=s[t++].endNode;A.evaluator=function(a){return!!(a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in f&&!(a.getName()==(g==CKEDITOR.ENTER_P?"p":"div")&&a.getParent().type==CKEDITOR.NODE_ELEMENT&&a.getParent().getName()=="blockquote")&&a.getPosition(v)&
CKEDITOR.POSITION_FOLLOWING&&(a.getPosition(w)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_CONTAINS)==CKEDITOR.POSITION_PRECEDING)};for(;y=A.next();)b(y,a,c,j);r=r.createIterator();for(r.enlargeBr=g!=CKEDITOR.ENTER_BR;y=r.getNextParagraph(g==CKEDITOR.ENTER_P?"p":"div");)b(y,a,c,j)}CKEDITOR.dom.element.clearAllMarkers(j);c.forceNextSelectionCheck();h.selectBookmarks(s);c.focus()}}}}function c(a){var b=a==i.setAttribute,c=a==i.removeAttribute,e=/\bdirection\s*:\s*(.*?)\s*(:?$|;)/;return function(d,
f){if(!this.isReadOnly()){var h;if(h=d==(b||c?"dir":"direction")||d=="style"&&(c||e.test(f))){a:{h=this;for(var g=h.getDocument().getBody().getParent();h;){if(h.equals(g)){h=false;break a}h=h.getParent()}h=true}h=!h}if(h){h=this.getDirection(1);g=a.apply(this,arguments);if(h!=this.getDirection(1)){this.getDocument().fire("dirChanged",this);return g}}}return a.apply(this,arguments)}}var f={table:1,ul:1,ol:1,blockquote:1,div:1},e={},h={};CKEDITOR.tools.extend(e,f,{tr:1,p:1,div:1,li:1});CKEDITOR.tools.extend(h,
e,{td:1});CKEDITOR.plugins.add("bidi",{init:function(b){function c(a,e,d,f,h){b.addCommand(d,new CKEDITOR.command(b,f));b.ui.addButton&&b.ui.addButton(a,{label:e,command:d,toolbar:"bidi,"+h})}if(!b.blockless){var e=b.lang.bidi;b.ui.addToolbarGroup&&b.ui.addToolbarGroup("bidi","align","paragraph");c("BidiLtr",e.ltr,"bidiltr",a("ltr"),10);c("BidiRtl",e.rtl,"bidirtl",a("rtl"),20);b.on("contentDom",function(){b.document.on("dirChanged",function(a){b.fire("dirChanged",{node:a.data,dir:a.data.getDirection(1)})})});
b.on("contentDirChanged",function(a){var a=(b.lang.dir!=a.data?"add":"remove")+"Class",c=b.ui.space(b.config.toolbarLocation);if(c)c[a]("cke_mixed_dir_content")})}}});for(var i=CKEDITOR.dom.element.prototype,g=["setStyle","removeStyle","setAttribute","removeAttribute"],j=0;j<g.length;j++)i[g[j]]=CKEDITOR.tools.override(i[g[j]],c)}(),function(){var b={exec:function(b){var a=b.getCommand("blockquote").state,c=b.getSelection(),f=c&&c.getRanges(true)[0];if(f){var e=c.createBookmarks();if(CKEDITOR.env.ie){var h=
e[0].startNode,i=e[0].endNode,g;if(h&&h.getParent().getName()=="blockquote")for(g=h;g=g.getNext();)if(g.type==CKEDITOR.NODE_ELEMENT&&g.isBlockBoundary()){h.move(g,true);break}if(i&&i.getParent().getName()=="blockquote")for(g=i;g=g.getPrevious();)if(g.type==CKEDITOR.NODE_ELEMENT&&g.isBlockBoundary()){i.move(g);break}}var j=f.createIterator();j.enlargeBr=b.config.enterMode!=CKEDITOR.ENTER_BR;if(a==CKEDITOR.TRISTATE_OFF){for(h=[];a=j.getNextParagraph();)h.push(a);if(h.length<1){a=b.document.createElement(b.config.enterMode==
CKEDITOR.ENTER_P?"p":"div");i=e.shift();f.insertNode(a);a.append(new CKEDITOR.dom.text("﻿",b.document));f.moveToBookmark(i);f.selectNodeContents(a);f.collapse(true);i=f.createBookmark();h.push(a);e.unshift(i)}g=h[0].getParent();f=[];for(i=0;i<h.length;i++){a=h[i];g=g.getCommonAncestor(a.getParent())}for(a={table:1,tbody:1,tr:1,ol:1,ul:1};a[g.getName()];)g=g.getParent();for(i=null;h.length>0;){for(a=h.shift();!a.getParent().equals(g);)a=a.getParent();a.equals(i)||f.push(a);i=a}for(;f.length>0;){a=
f.shift();if(a.getName()=="blockquote"){for(i=new CKEDITOR.dom.documentFragment(b.document);a.getFirst();){i.append(a.getFirst().remove());h.push(i.getLast())}i.replace(a)}else h.push(a)}f=b.document.createElement("blockquote");for(f.insertBefore(h[0]);h.length>0;){a=h.shift();f.append(a)}}else if(a==CKEDITOR.TRISTATE_ON){i=[];for(g={};a=j.getNextParagraph();){for(h=f=null;a.getParent();){if(a.getParent().getName()=="blockquote"){f=a.getParent();h=a;break}a=a.getParent()}if(f&&h&&!h.getCustomData("blockquote_moveout")){i.push(h);
CKEDITOR.dom.element.setMarker(g,h,"blockquote_moveout",true)}}CKEDITOR.dom.element.clearAllMarkers(g);a=[];h=[];for(g={};i.length>0;){j=i.shift();f=j.getParent();if(j.getPrevious())if(j.getNext()){j.breakParent(j.getParent());h.push(j.getNext())}else j.remove().insertAfter(f);else j.remove().insertBefore(f);if(!f.getCustomData("blockquote_processed")){h.push(f);CKEDITOR.dom.element.setMarker(g,f,"blockquote_processed",true)}a.push(j)}CKEDITOR.dom.element.clearAllMarkers(g);for(i=h.length-1;i>=0;i--){f=
h[i];a:{g=f;for(var j=0,l=g.getChildCount(),n=void 0;j<l&&(n=g.getChild(j));j++)if(n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary()){g=false;break a}g=true}g&&f.remove()}if(b.config.enterMode==CKEDITOR.ENTER_BR)for(f=true;a.length;){j=a.shift();if(j.getName()=="div"){i=new CKEDITOR.dom.documentFragment(b.document);f&&(j.getPrevious()&&!(j.getPrevious().type==CKEDITOR.NODE_ELEMENT&&j.getPrevious().isBlockBoundary()))&&i.append(b.document.createElement("br"));for(f=j.getNext()&&!(j.getNext().type==
CKEDITOR.NODE_ELEMENT&&j.getNext().isBlockBoundary());j.getFirst();)j.getFirst().remove().appendTo(i);f&&i.append(b.document.createElement("br"));i.replace(j);f=false}}}c.selectBookmarks(e);b.focus()}},refresh:function(b,a){this.setState(b.elementPath(a.block||a.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"};CKEDITOR.plugins.add("blockquote",{init:function(d){if(!d.blockless){d.addCommand("blockquote",
b);d.ui.addButton&&d.ui.addButton("Blockquote",{label:d.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"})}}})}(),"use strict",function(){function b(a){function b(){var c=a.editable();c.on(u,function(a){(!CKEDITOR.env.ie||!v)&&t(a)});CKEDITOR.env.ie&&c.on("paste",function(b){if(!w){d();b.data.preventDefault();t(b);o("paste")||a.openDialog("paste")}});if(CKEDITOR.env.ie){c.on("contextmenu",f,null,null,0);c.on("beforepaste",function(a){a.data&&!a.data.$.ctrlKey&&f()},null,null,0)}c.on("beforecut",
function(){!v&&k(a)});var e;c.attachListener(CKEDITOR.env.ie?c:a.document.getDocumentElement(),"mouseup",function(){e=setTimeout(function(){y()},0)});a.on("destroy",function(){clearTimeout(e)});c.on("keyup",y)}function c(b){return{type:b,canUndo:b=="cut",startDisabled:true,exec:function(){this.type=="cut"&&k();var b;var c=this.type;if(CKEDITOR.env.ie)b=o(c);else try{b=a.document.$.execCommand(c,false,null)}catch(e){b=false}b||alert(a.lang.clipboard[this.type+"Error"]);return b}}}function e(){return{canUndo:false,
async:true,exec:function(a,b){var c=function(b,c){b&&m(b.type,b.dataValue,!!c);a.fire("afterCommandExec",{name:"paste",command:e,returnValue:!!b})},e=this;typeof b=="string"?c({type:"auto",dataValue:b},1):a.getClipboardData(c)}}}function d(){w=1;setTimeout(function(){w=0},100)}function f(){v=1;setTimeout(function(){v=0},10)}function o(b){var c=a.document,e=c.getBody(),d=false,f=function(){d=true};e.on(b,f);(CKEDITOR.env.version>7?c.$:c.$.selection.createRange()).execCommand(b);e.removeListener(b,
f);return d}function m(b,c,e){b={type:b};if(e&&!a.fire("beforePaste",b)||!c)return false;b.dataValue=c;return a.fire("paste",b)}function k(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var b=a.getSelection(),c,e,d;if(b.getType()==CKEDITOR.SELECTION_ELEMENT&&(c=b.getSelectedElement())){e=b.getRanges()[0];d=a.document.createText("");d.insertBefore(c);e.setStartBefore(d);e.setEndAfter(c);b.selectRanges([e]);setTimeout(function(){if(c.getParent()){d.remove();b.selectElement(c)}},0)}}}function p(b,c){var e=
a.document,d=a.editable(),f=function(a){a.cancel()},g=CKEDITOR.env.gecko&&CKEDITOR.env.version<=10902,i;if(!e.getById("cke_pastebin")){var j=a.getSelection(),k=j.createBookmarks(),l=new CKEDITOR.dom.element((CKEDITOR.env.webkit||d.is("body"))&&!CKEDITOR.env.ie&&!CKEDITOR.env.opera?"body":"div",e);l.setAttribute("id","cke_pastebin");CKEDITOR.env.opera&&l.appendBogus();var r=0,e=e.getWindow();if(g){l.insertAfter(k[0].startNode);l.setStyle("display","inline")}else{if(CKEDITOR.env.webkit){d.append(l);
l.addClass("cke_editable");if(!d.is("body")){g=d.getComputedStyle("position")!="static"?d:CKEDITOR.dom.element.get(d.$.offsetParent);r=g.getDocumentPosition().y}}else d.getAscendant(CKEDITOR.env.ie||CKEDITOR.env.opera?"body":"html",1).append(l);l.setStyles({position:"absolute",top:e.getScrollPosition().y-r+10+"px",width:"1px",height:Math.max(1,e.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0})}if(g=l.getParent().isReadOnly()){l.setOpacity(0);l.setAttribute("contenteditable",
true)}else l.setStyle(a.config.contentsLangDirection=="ltr"?"left":"right","-1000px");a.on("selectionChange",f,null,null,0);CKEDITOR.env.webkit&&(i=d.once("blur",f,null,null,-100));g&&l.focus();g=new CKEDITOR.dom.range(l);g.selectNodeContents(l);var p=g.select();CKEDITOR.env.ie&&(i=d.once("blur",function(){a.lockSelection(p)}));var m=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){if(CKEDITOR.env.webkit||CKEDITOR.env.opera)CKEDITOR.document[CKEDITOR.env.webkit?"getBody":
"getDocumentElement"]().$.scrollTop=m;i&&i.removeListener();CKEDITOR.env.ie&&d.focus();j.selectBookmarks(k);l.remove();var b;if(CKEDITOR.env.webkit&&(b=l.getFirst())&&b.is&&b.hasClass("Apple-style-span"))l=b;a.removeListener("selectionChange",f);c(l.getHtml())},0)}}function s(){if(CKEDITOR.env.ie){a.focus();d();var b=a.focusManager;b.lock();if(a.editable().fire(u)&&!o("paste")){b.unlock();return false}b.unlock()}else try{if(a.editable().fire(u)&&!a.document.$.execCommand("Paste",false,null))throw 0;
}catch(c){return false}return true}function r(b){if(a.mode=="wysiwyg")switch(b.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:b=a.editable();d();!CKEDITOR.env.ie&&b.fire("beforepaste");(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.version<10900)&&b.fire("paste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:a.fire("saveSnapshot");setTimeout(function(){a.fire("saveSnapshot")},0)}}function t(b){var c={type:"auto"},e=a.fire("beforePaste",c);p(b,function(a){a=a.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,
"");e&&m(c.type,a,0,1)})}function y(){if(a.mode=="wysiwyg"){var b=A("Paste");a.getCommand("cut").setState(A("Cut"));a.getCommand("copy").setState(A("Copy"));a.getCommand("paste").setState(b);a.fire("pasteState",b)}}function A(b){var c;if(q&&b in{Paste:1,Cut:1})return CKEDITOR.TRISTATE_DISABLED;if(b=="Paste"){CKEDITOR.env.ie&&(v=1);try{c=a.document.$.queryCommandEnabled(b)||CKEDITOR.env.webkit}catch(e){}v=0}else{b=a.getSelection();c=b.getRanges();c=b.getType()!=CKEDITOR.SELECTION_NONE&&!(c.length==
1&&c[0].collapsed)}return c?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}var v=0,w=0,q=0,u=CKEDITOR.env.ie?"beforepaste":"paste";(function(){a.on("key",r);a.on("contentDom",b);a.on("selectionChange",function(a){q=a.data.selection.getRanges()[0].checkReadOnly();y()});a.contextMenu&&a.contextMenu.addListener(function(a,b){q=b.getRanges()[0].checkReadOnly();return{cut:A("Cut"),copy:A("Copy"),paste:A("Paste")}})})();(function(){function b(c,e,d,f,g){var i=a.lang.clipboard[e];a.addCommand(e,d);a.ui.addButton&&
a.ui.addButton(c,{label:i,command:e,toolbar:"clipboard,"+f});a.addMenuItems&&a.addMenuItem(e,{label:i,command:e,group:"clipboard",order:g})}b("Cut","cut",c("cut"),10,1);b("Copy","copy",c("copy"),20,4);b("Paste","paste",e(),30,8)})();a.getClipboardData=function(b,c){function e(a){a.removeListener();a.cancel();c(a.data)}function d(a){a.removeListener();a.cancel();j=true;c({type:i,dataValue:a.data})}function f(){this.customTitle=b&&b.title}var g=false,i="auto",j=false;if(!c){c=b;b=null}a.on("paste",
e,null,null,0);a.on("beforePaste",function(a){a.removeListener();g=true;i=a.data.type},null,null,1E3);if(s()===false){a.removeListener("paste",e);if(g&&a.fire("pasteDialog",f)){a.on("pasteDialogCommit",d);a.on("dialogHide",function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",d);setTimeout(function(){j||c(null)},10)})}else c(null)}}}function d(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||CKEDITOR.env.opera){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}else return"html";return"htmlifiedtext"}function a(a,b){function c(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 c(a.split("</div><div>").length+1)})+"</p>");b=b.replace(/<\/div><div>/g,"<br>");b=b.replace(/<\/?div>/g,"")}if((CKEDITOR.env.gecko||CKEDITOR.env.opera)&&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 c(a.length/4)})+"</p>")}return e(a,b)}function c(){var a=new CKEDITOR.htmlParser.filter,b={blockquote:1,dl:1,fieldset:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ol:1,p:1,table:1,ul:1},c=CKEDITOR.tools.extend({br:0},CKEDITOR.dtd.$inline),e={p:1,br:1,"cke:br":1},d=CKEDITOR.dtd,f=CKEDITOR.tools.extend({area:1,basefont:1,embed:1,iframe:1,map:1,object:1,param:1},CKEDITOR.dtd.$nonBodyContent,CKEDITOR.dtd.$cdata),o=function(a){delete a.name;a.add(new CKEDITOR.htmlParser.text(" "))},
m=function(a){for(var b=a,c;(b=b.next)&&b.name&&b.name.match(/^h\d$/);){c=new CKEDITOR.htmlParser.element("cke:br");c.isEmpty=true;for(a.add(c);c=b.children.shift();)a.add(c)}};a.addRules({elements:{h1:m,h2:m,h3:m,h4:m,h5:m,h6:m,img:function(a){var a=CKEDITOR.tools.trim(a.attributes.alt||""),b=" ";a&&!a.match(/(^http|\.(jpe?g|gif|png))/i)&&(b=" ["+a+"] ");return new CKEDITOR.htmlParser.text(b)},td:o,th:o,$:function(a){var h=a.name,m;if(f[h])return false;delete a.attributes;if(h=="br")return a;if(b[h])a.name=
"p";else if(c[h])delete a.name;else if(d[h]){m=new CKEDITOR.htmlParser.element("cke:br");m.isEmpty=true;if(CKEDITOR.dtd.$empty[h])return m;a.add(m,0);m=m.clone();m.isEmpty=true;a.add(m);delete a.name}e[a.name]||delete a.name;return a}}});return a}function f(a,b,c){var b=new CKEDITOR.htmlParser.fragment.fromHtml(b),d=new CKEDITOR.htmlParser.basicWriter;b.writeHtml(d,c);var b=d.getHtml(),b=b.replace(/\s*(<\/?[a-z:]+ ?\/?>)\s*/g,"$1").replace(/(<cke:br \/>){2,}/g,"<cke:br />").replace(/(<cke:br \/>)(<\/?p>|<br \/>)/g,
"$2").replace(/(<\/?p>|<br \/>)(<cke:br \/>)/g,"$1").replace(/<(cke:)?br( \/)?>/g,"<br>").replace(/<p><\/p>/g,""),f=0,b=b.replace(/<\/?p>/g,function(a){if(a=="<p>"){if(++f>1)return"</p><p>"}else if(--f>0)return"</p><p>";return a}).replace(/<p><\/p>/g,"");return e(a,b)}function e(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}
CKEDITOR.plugins.add("clipboard",{requires:"dialog",init:function(e){var i;b(e);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js"));e.on("paste",function(a){var b=a.data.dataValue,c=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 e,d,f=new CKEDITOR.dom.element("div");for(f.setHtml(b);f.getChildCount()==1&&(e=f.getFirst())&&e.type==CKEDITOR.NODE_ELEMENT&&(e.hasClass("cke_editable")||e.hasClass("cke_contents"));)f=d=e;d&&(b=d.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?b=b.replace(/^&nbsp;(?: |\r\n)?<(\w+)/g,function(b,
e){if(e.toLowerCase()in c){a.data.preSniffing="html";return"<"+e}return b}):CKEDITOR.env.webkit?b=b.replace(/<\/(\w+)><div><br><\/div>$/,function(b,e){if(e in c){a.data.endsWithEOL=1;return"</"+e+">"}return b}):CKEDITOR.env.gecko&&(b=b.replace(/(\s)<br>$/,"$1"));a.data.dataValue=b},null,null,3);e.on("paste",function(b){var b=b.data,j=b.type,l=b.dataValue,n,o=e.config.clipboard_defaultContentType||"html";n=j=="html"||b.preSniffing=="html"?"html":d(l);n=="htmlifiedtext"?l=a(e.config,l):j=="text"&&n==
"html"&&(l=f(e.config,l,i||(i=c(e))));b.startsWithEOL&&(l='<br data-cke-eol="1">'+l);b.endsWithEOL&&(l=l+'<br data-cke-eol="1">');j=="auto"&&(j=n=="html"||o=="html"?"html":"text");b.type=j;b.dataValue=l;delete b.preSniffing;delete b.startsWithEOL;delete b.endsWithEOL},null,null,6);e.on("paste",function(a){a=a.data;e.insertHtml(a.dataValue,a.type);setTimeout(function(){e.fire("afterPaste")},0)},null,null,1E3);e.on("pasteDialog",function(a){setTimeout(function(){e.openDialog("paste",a.data)},0)})}})}(),
function(){var b='<a id="{id}" class="cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&CKEDITOR.env.version>=10900&&!CKEDITOR.env.hc?"":'" href="javascript:void(\'{titleJs}\')"')+' title="{title}" tabindex="-1" hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="{hasArrow}"';if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)b=b+' onkeypress="return false;"';CKEDITOR.env.gecko&&(b=b+' onblur="this.style.cssText = this.style.cssText;"');
var b=b+(' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);"  onmousedown="return CKEDITOR.tools.callFunction({mousedownFn},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}"'),b=b+'>&nbsp;</span><span id="{id}_label" class="cke_button_label cke_button__{name}_label">{label}</span>{arrowHtml}</a>',
d=CKEDITOR.addTemplate("buttonArrow",'<span class="cke_button_arrow">'+(CKEDITOR.env.hc?"&#9660;":"")+"</span>"),a=CKEDITOR.addTemplate("button",b);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(b,f){var e=CKEDITOR.env,h=this._.id=CKEDITOR.tools.getNextId(),i="",g=this.command,j;this._.editor=b;var l={id:h,button:this,editor:b,focus:function(){CKEDITOR.document.getById(h).focus()},execute:function(){this.button.click(b)},attach:function(a){this.button.attach(a)}},n=CKEDITOR.tools.addFunction(function(a){if(l.onkey){a=new CKEDITOR.dom.event(a);return l.onkey(l,a.getKeystroke())!==false}}),o=CKEDITOR.tools.addFunction(function(a){var b;l.onfocus&&
(b=l.onfocus(l,new CKEDITOR.dom.event(a))!==false);CKEDITOR.env.gecko&&CKEDITOR.env.version<10900&&a.preventBubble();return b}),m=0,k=CKEDITOR.tools.addFunction(function(){if(CKEDITOR.env.opera){var a=b.editable();if(a.isInline()&&a.hasFocus){b.lockSelection();m=1}}});l.clickFn=j=CKEDITOR.tools.addFunction(function(){if(m){b.unlockSelection(1);m=0}l.execute()});if(this.modes){var p={},s=function(){var a=b.mode;if(a){a=this.modes[a]?p[a]!=void 0?p[a]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;
this.setState(b.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:a)}};b.on("beforeModeUnload",function(){if(b.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED)p[b.mode]=this._.state},this);b.on("mode",s,this);!this.readOnly&&b.on("readOnly",s,this)}else if(g)if(g=b.getCommand(g)){g.on("state",function(){this.setState(g.state)},this);i=i+(g.state==CKEDITOR.TRISTATE_ON?"on":g.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off")}if(this.directional)b.on("contentDirChanged",function(a){var e=CKEDITOR.document.getById(this._.id),
d=e.getFirst(),a=a.data;a!=b.lang.dir?e.addClass("cke_"+a):e.removeClass("cke_ltr").removeClass("cke_rtl");d.setAttribute("style",CKEDITOR.skin.getIconStyle(r,a=="rtl",this.icon,this.iconOffset))},this);g||(i=i+"off");var r=s=this.name||this.command;if(this.icon&&!/\./.test(this.icon)){r=this.icon;this.icon=null}e={id:h,name:s,iconName:r,label:this.label,cls:this.className||"",state:i,title:this.title,titleJs:e.gecko&&e.version>=10900&&!e.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?
"true":"false",keydownFn:n,mousedownFn:k,focusFn:o,clickFn:j,style:CKEDITOR.skin.getIconStyle(r,b.lang.dir=="rtl",this.icon,this.iconOffset),arrowHtml:this.hasArrow?d.output():""};a.output(e,f);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");a==CKEDITOR.TRISTATE_ON?
b.setAttribute("aria-pressed",true):b.removeAttribute("aria-pressed");return true}return false},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 b(b){var a=this._;if(a.state!=CKEDITOR.TRISTATE_DISABLED){this.createPanel(b);
a.on?a.panel.hide():a.panel.showBlock(this._.id,this.document.getById(this._.id),4)}}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(d){var a=d.panel||{};delete d.panel;this.base(d);this.document=a.parent&&a.parent.getDocument()||CKEDITOR.document;a.block={attributes:a.attributes};this.hasArrow=a.toolbarRelated=true;this.click=b;this._={panelDefinition:a}},statics:{handler:{create:function(b){return new CKEDITOR.ui.panelButton(b)}}},proto:{createPanel:function(b){var a=
this._;if(!a.panel){var c=this._.panelDefinition,f=this._.panelDefinition.block,e=c.parent||CKEDITOR.document.getBody(),h=this._.panel=new CKEDITOR.ui.floatPanel(b,e,c),c=h.addBlock(a.id,f),i=this;h.onShow=function(){i.className&&this.element.addClass(i.className+"_panel");i.setState(CKEDITOR.TRISTATE_ON);a.on=1;i.editorFocus&&b.focus();if(i.onOpen)i.onOpen()};h.onHide=function(c){i.className&&this.element.getFirst().removeClass(i.className+"_panel");i.setState(i.modes&&i.modes[b.mode]?CKEDITOR.TRISTATE_OFF:
CKEDITOR.TRISTATE_DISABLED);a.on=0;if(!c&&i.onClose)i.onClose()};h.onEscape=function(){h.hide(1);i.document.getById(a.id).focus()};if(this.onBlock)this.onBlock(h,c);c.onHide=function(){a.on=0;i.setState(CKEDITOR.TRISTATE_OFF)}}}}})},beforeInit:function(b){b.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 b=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>'),
d=CKEDITOR.addTemplate("panel-frame",'<iframe id="{id}" class="cke_panel_frame" role="presentation" frameborder="0" src="{src}"></iframe>'),a=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(c,f){this.getHolderElement=function(){var b=this._.holder;if(!b){if(this.isFramed){var b=
this.document.getById(this.id+"_frame"),c=b.getParent(),b=b.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));b.write(a.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+c+");"},e)));b.getWindow().$.CKEDITOR=CKEDITOR;b.on("key"+(CKEDITOR.env.opera?"press":
"down"),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);b=b.getBody();b.unselectable();CKEDITOR.env.air&&CKEDITOR.tools.callFunction(c)}else b=this.document.getById(this.id);this._.holder=b}return b};var e={editorId:c.id,id:this.id,langCode:c.langCode,dir:c.lang.dir,cls:this.className,
frame:"",env:CKEDITOR.env.cssClass,"z-index":c.config.baseFloatZIndex+1};if(this.isFramed){var h=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";e.frame=d.output({id:this.id+"_frame",src:h})}h=b.output(e);f&&f.push(h);return h},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");if(b){e.removeAttributes(b.attributes);b.hide()}this._.currentBlock=a;e.setAttributes(a.attributes);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",role:"presentation",tabindex:0},styles:{display:"none"}}));b&&CKEDITOR.tools.extend(this,b);this.element.setAttributes({"aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]});delete this.attributes["aria-label"];delete this.attributes.title;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||CKEDITOR.env.opera)&&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){var b=this.keys[a];switch(b){case "next":for(var a=this._.focusIndex,
b=this.element.getElementsByTag("a"),e;e=b.getItem(++a);)if(e.getAttribute("_cke_focus")&&e.$.offsetWidth){this._.focusIndex=a;e.focus();break}return false;case "prev":a=this._.focusIndex;for(b=this.element.getElementsByTag("a");a>0&&(e=b.getItem(--a));)if(e.getAttribute("_cke_focus")&&e.$.offsetWidth){this._.focusIndex=a;e.focus();break}return false;case "click":case "mouseup":a=this._.focusIndex;(e=a>=0&&this.element.getElementsByTag("a").getItem(a))&&(e.$[b]?e.$[b]():e.$["on"+b]());return false}return true}}})}(),
CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function b(a,b,f,e,h){var h=CKEDITOR.tools.genKey(b.getUniqueId(),f.getUniqueId(),a.lang.dir,a.uiColor||"",e.css||"",h||""),i=d[h];if(!i){i=d[h]=new CKEDITOR.ui.panel(b,e);i.element=f.append(CKEDITOR.dom.element.createFromHtml(i.render(a),b));i.element.setStyles({display:"none",position:"absolute"})}return i}var d={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(a,c,d,e){function h(){l.hide()}d.forceIFrame=1;d.toolbarRelated&&
a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(c=CKEDITOR.document.getById("cke_"+a.name));var i=c.getDocument(),e=b(a,i,c,d,e||0),g=e.element,j=g.getFirst(),l=this;g.disableContextMenu();this.element=g;this._={editor:a,panel:e,parentElement:c,definition:d,document:i,iframe:j,children:[],dir:a.lang.dir};a.on("mode",h);a.on("resize",h);i.getWindow().on("resize",h)},proto:{addBlock:function(a,b){return this._.panel.addBlock(a,b)},addListBlock:function(a,b){return this._.panel.addListBlock(a,b)},getBlock:function(a){return this._.panel.getBlock(a)},
showBlock:function(a,b,d,e,h){var i=this._.panel,g=i.showBlock(a);this.allowBlur(false);a=this._.editor.editable();this._.returnFocus=a.hasFocus?a:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);var j=this.element,a=this._.iframe,a=CKEDITOR.env.ie?a:new CKEDITOR.dom.window(a.$.contentWindow),l=j.getDocument(),n=this._.parentElement.getPositionedAncestor(),o=b.getDocumentPosition(l),l=n?n.getDocumentPosition(l):{x:0,y:0},m=this._.dir=="rtl",k=o.x+(e||0)-l.x,p=o.y+(h||0)-l.y;if(m&&(d==1||
d==4))k=k+b.$.offsetWidth;else if(!m&&(d==2||d==3))k=k+(b.$.offsetWidth-1);if(d==3||d==4)p=p+(b.$.offsetHeight-1);this._.panel._.offsetParentId=b.getId();j.setStyles({top:p+"px",left:0,display:""});j.setOpacity(0);j.getFirst().removeStyle("width");this._.editor.focusManager.add(a);if(!this._.blurSet){CKEDITOR.event.useCapture=true;a.on("blur",function(a){if(this.allowBlur()&&a.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&this.visible&&!this._.activeChild){delete this._.returnFocus;this.hide()}},
this);a.on("focus",function(){this._.focused=true;this.hideChild();this.allowBlur(true)},this);CKEDITOR.event.useCapture=false;this._.blurSet=1}i.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(){j.removeStyle("width");if(g.autoSize){var a=g.element.getDocument(),a=(CKEDITOR.env.webkit?g.element:a.getBody()).$.scrollWidth;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+
((j.$.offsetWidth||0)-(j.$.clientWidth||0)+3));j.setStyle("width",a+10+"px");a=g.element.$.scrollHeight;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+((j.$.offsetHeight||0)-(j.$.clientHeight||0)+3));j.setStyle("height",a+"px");i._.currentBlock.element.setStyle("display","none").removeStyle("display")}else j.removeStyle("height");m&&(k=k-j.$.offsetWidth);j.setStyle("left",k+"px");var b=i.element.getWindow(),a=j.$.getBoundingClientRect(),b=b.getViewPaneSize(),c=a.width||a.right-a.left,e=a.height||
a.bottom-a.top,d=m?a.right:b.width-a.left,f=m?b.width-a.right:a.left;m?d<c&&(k=f>c?k+c:b.width>c?k-a.left:k-a.right+b.width):d<c&&(k=f>c?k-c:b.width>c?k-a.right+b.width:k-a.left);c=a.top;b.height-a.top<e&&(p=c>e?p-e:b.height>e?p-a.bottom+b.height:p-a.top);if(CKEDITOR.env.ie){b=a=new CKEDITOR.dom.element(j.$.offsetParent);b.getName()=="html"&&(b=b.getDocument().getBody());b.getComputedStyle("direction")=="rtl"&&(k=CKEDITOR.env.ie8Compat?k-j.getDocument().getDocumentElement().$.scrollLeft*2:k-(a.$.scrollWidth-
a.$.clientWidth))}var a=j.getFirst(),h;(h=a.getCustomData("activePanel"))&&h.onHide&&h.onHide.call(this,1);a.setCustomData("activePanel",this);j.setStyles({top:p+"px",left:k+"px"});j.setOpacity(1)},this);i.isLoaded?a():i.onLoad=a;CKEDITOR.tools.setTimeout(function(){this.focus();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.equals(this._.iframe)&&a.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var a=this._.iframe.getFrameDocument().getActive();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 b=this._.panel;if(a!=void 0)b.allowBlur=a;return b.allowBlur},showAsChild:function(a,b,d,e,h,i){if(!(this._.activeChild==a&&a._.panel._.offsetParentId==d.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(b,d,e,h,i);this.blur();(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){a.element.getChild(0).$.style.cssText+=""},100)}},hideChild:function(a){var b=this._.activeChild;if(b){delete b.onHide;delete this._.activeChild;b.hide();a&&this.focus()}}}});CKEDITOR.on("instanceDestroyed",function(){var a=CKEDITOR.tools.isEmpty(CKEDITOR.instances),b;for(b in d){var f=d[b];a?f.destroy():f.element.hide()}a&&(d={})})}(),CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",
init:function(b){function d(c,d,g,j){var l=new CKEDITOR.style(f["colorButton_"+d+"Style"]),n=CKEDITOR.tools.getNextId()+"_colorBox";b.ui.add(c,CKEDITOR.UI_PANELBUTTON,{label:g,title:g,modes:{wysiwyg:1},editorFocus:1,toolbar:"colors,"+j,allowedContent:l,requiredContent:l,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":e.panelTitle}},onBlock:function(c,e){e.autoSize=true;e.element.addClass("cke_colorblock");e.element.setHtml(a(c,d,n));e.element.getDocument().getBody().setStyle("overflow",
"hidden");CKEDITOR.ui.fire("ready",this);var f=e.keys,h=b.lang.dir=="rtl";f[h?37:39]="next";f[40]="next";f[9]="next";f[h?39:37]="prev";f[38]="prev";f[CKEDITOR.SHIFT+9]="prev";f[32]="click"},onOpen:function(){var a=b.getSelection(),a=a&&a.getStartElement(),a=b.elementPath(a),c,a=a.block||a.blockLimit||b.document.getBody();do c=a&&a.getComputedStyle(d=="back"?"background-color":"color")||"transparent";while(d=="back"&&c=="transparent"&&a&&(a=a.getParent()));if(!c||c=="transparent")c="#ffffff";this._.panel._.iframe.getFrameDocument().getById(n).setStyle("background-color",
c);return c}})}function a(a,d,g){var j=[],l=f.colorButton_colors.split(","),n=CKEDITOR.tools.addFunction(function(e,d){if(e=="?"){var g=arguments.callee,i=function(a){this.removeListener("ok",i);this.removeListener("cancel",i);a.name=="ok"&&g(this.getContentElement("picker","selectedColor").getValue(),d)};b.openDialog("colordialog",function(){this.on("ok",i);this.on("cancel",i)})}else{b.focus();a.hide();b.fire("saveSnapshot");b.removeStyle(new CKEDITOR.style(f["colorButton_"+d+"Style"],{color:"inherit"}));
if(e){var j=f["colorButton_"+d+"Style"];j.childRule=d=="back"?function(a){return c(a)}:function(a){return!(a.is("a")||a.getElementsByTag("a").count())||c(a)};b.applyStyle(new CKEDITOR.style(j,{color:e}))}b.fire("saveSnapshot")}});j.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',e.auto,'" onclick="CKEDITOR.tools.callFunction(',n,",null,'",d,"');return false;\" href=\"javascript:void('",e.auto,'\')" role="option"><table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tr><td><span class="cke_colorbox" id="',
g,'"></span></td><td colspan=7 align=center>',e.auto,'</td></tr></table></a><table role="presentation" cellspacing=0 cellpadding=0 width="100%">');for(g=0;g<l.length;g++){g%8===0&&j.push("</tr><tr>");var o=l[g].split("/"),m=o[0],k=o[1]||m;o[1]||(m="#"+m.replace(/^(.)(.)(.)$/,"$1$1$2$2$3$3"));o=b.lang.colorbutton.colors[k]||k;j.push('<td><a class="cke_colorbox" _cke_focus=1 hidefocus=true title="',o,'" onclick="CKEDITOR.tools.callFunction(',n,",'",m,"','",d,"'); return false;\" href=\"javascript:void('",
o,'\')" role="option"><span class="cke_colorbox" style="background-color:#',k,'"></span></a></td>')}(b.plugins.colordialog&&f.colorButton_enableMore===void 0||f.colorButton_enableMore)&&j.push('</tr><tr><td colspan=8 align=center><a class="cke_colormore" _cke_focus=1 hidefocus=true title="',e.more,'" onclick="CKEDITOR.tools.callFunction(',n,",'?','",d,"');return false;\" href=\"javascript:void('",e.more,"')\"",' role="option">',e.more,"</a></td>");j.push("</tr></table>");return j.join("")}function c(a){return a.getAttribute("contentEditable")==
"false"||a.getAttribute("data-nostyle")}var f=b.config,e=b.lang.colorbutton;if(!CKEDITOR.env.hc){d("TextColor","fore",e.textColorTitle,10);d("BGColor","back",e.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(b){b.addCommand("colordialog",new CKEDITOR.dialogCommand("colordialog"));CKEDITOR.dialog.add("colordialog",this.path+"dialogs/colordialog.js");b.getColorFromDialog=function(d,a){var c=function(b){this.removeListener("ok",c);this.removeListener("cancel",
c);b=b.name=="ok"?this.getValueOf("picker","selectedColor"):null;d.call(a,b)},f=function(a){a.on("ok",c);a.on("cancel",c)};b.execCommand("colordialog");if(b._.storedDialogs&&b._.storedDialogs.colordialog)f(b._.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(){f(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(b){for(var d=b.config.menu_groups.split(","),a=b._.menuGroups={},c=b._.menuItems={},f=0;f<d.length;f++)a[d[f]]=f+1;b.addMenuGroup=function(b,c){a[b]=c||100};b.addMenuItem=function(b,d){a[d.group]&&(c[b]=new CKEDITOR.menuItem(this,b,d))};b.addMenuItems=function(a){for(var b in a)this.addMenuItem(b,a[b])};b.getMenuItem=function(a){return c[a]};b.removeMenuItem=function(a){delete c[a]}}}),function(){function b(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 d='<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="menuitem" aria-haspopup="{hasPopup}" aria-disabled="{disabled}"';if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)d=d+' onkeypress="return false;"';CKEDITOR.env.gecko&&(d=d+' onblur="this.style.cssText = this.style.cssText;"');
var d=d+(' 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;">'),a=CKEDITOR.addTemplate("menuItem",d+'<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>'),
c=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 c=CKEDITOR.tools.extend({},b.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),d=c.block.attributes=c.attributes||{};!d.role&&(d.role="menu");this._.panelDefinition=c},_:{onShow:function(){var a=
this.editor.getSelection(),b=a&&a.getStartElement(),c=this.editor.elementPath(),d=this._.listeners;this.removeAll();for(var g=0;g<d.length;g++){var j=d[g](b,a,c);if(j)for(var l in j){var n=this.editor.getMenuItem(l);if(n&&(!n.command||this.editor.getCommand(n.command).state)){n.state=j[l];this.add(n)}}}},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,c=this.items[a];if(c=c.getItems&&c.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 d in c){var g=this.editor.getMenuItem(d);if(g){g.state=c[d];b.add(g)}}var j=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+
(""+a));setTimeout(function(){b.show(j,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(a,c,d,i){if(!this.parent){this._.onShow();if(!this.items.length)return}var c=c||(this.editor.lang.dir=="rtl"?2:1),g=this.items,j=this.editor,l=this._.panel,n=this._.element;if(!l){l=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level);
l.onEscape=CKEDITOR.tools.bind(function(a){if(this._.onEscape(a)===false)return false},this);l.onShow=function(){l._.panel.getHolderElement().getParent().addClass("cke cke_reset_all")};l.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this);n=l.addBlock(this.id,this._.panelDefinition.block);n.autoSize=true;var o=n.keys;o[40]="next";o[9]="next";o[38]="prev";o[CKEDITOR.SHIFT+9]="prev";o[j.lang.dir=="rtl"?37:39]=CKEDITOR.env.ie?"mouseup":"click";o[32]=CKEDITOR.env.ie?"mouseup":
"click";CKEDITOR.env.ie&&(o[13]="mouseup");n=this._.element=n.element;o=n.getDocument();o.getBody().setStyle("overflow","hidden");o.getElementsByTag("html").getItem(0).setStyle("overflow","hidden");this._.itemOverFn=CKEDITOR.tools.addFunction(function(a){clearTimeout(this._.showSubTimeout);this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,j.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)}b(g);for(var o=j.elementPath(),o=['<div class="cke_menu'+(o&&o.direction()!=j.lang.dir?" cke_mixed_dir_content":"")+'" role="presentation">'],m=g.length,k=m&&g[0].group,p=0;p<m;p++){var s=g[p];if(k!=s.group){o.push('<div class="cke_menuseparator" role="separator"></div>');k=s.group}s.render(this,p,o)}o.push("</div>");
n.setHtml(o.join(""));CKEDITOR.ui.fire("ready",this);this.parent?this.parent._.panel.showAsChild(l,this.id,a,c,d,i):l.showBlock(this.id,a,c,d,i);j.fire("menuShow",[l])},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,c){CKEDITOR.tools.extend(this,c,{order:0,className:"cke_menubutton__"+b});this.group=a._.menuGroups[this.group];this.editor=a;this.name=
b},proto:{render:function(b,e,d){var i=b.id+(""+e),g=typeof this.state=="undefined"?CKEDITOR.TRISTATE_OFF:this.state,j=g==CKEDITOR.TRISTATE_ON?"on":g==CKEDITOR.TRISTATE_DISABLED?"disabled":"off",l=this.getItems,n="&#"+(this.editor.lang.dir=="rtl"?"9668":"9658")+";",o=this.name;if(this.icon&&!/\./.test(this.icon))o=this.icon;b={id:i,name:this.name,iconName:o,label:this.label,cls:this.className||"",state:j,hasPopup:l?"true":"false",disabled:g==CKEDITOR.TRISTATE_DISABLED,title:this.label,href:"javascript:void('"+
(this.label||"").replace("'")+"')",hoverFn:b._.itemOverFn,moveOutFn:b._.itemOutFn,clickFn:b._.itemClickFn,index:e,iconStyle:CKEDITOR.skin.getIconStyle(o,this.editor.lang.dir=="rtl",o==this.icon?null:this.icon,this.iconOffset),arrowHtml:l?c.output({label:n}):""};a.output(b,d)}}})}(),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(b){this.base.call(this,b,{panel:{className:"cke_menu_panel",attributes:{"aria-label":b.lang.contextmenu.options}}})},proto:{addTarget:function(b,d){if(CKEDITOR.env.opera&&!("oncontextmenu"in document.body)){var a;b.on("mousedown",function(c){c=c.data;if(c.$.button!=2)c.getKeystroke()==CKEDITOR.CTRL+1&&b.fire("contextmenu",c);else if(!d||!(CKEDITOR.env.mac?c.$.metaKey:c.$.ctrlKey)){var f=
c.getTarget();if(!a){f=f.getDocument();a=f.createElement("input");a.$.type="button";f.getBody().append(a)}a.setAttribute("style","position:absolute;top:"+(c.$.clientY-2)+"px;left:"+(c.$.clientX-2)+"px;width:5px;height:5px;opacity:0.01")}});b.on("mouseup",function(c){if(a){a.remove();a=void 0;b.fire("contextmenu",c.data)}})}b.on("contextmenu",function(a){a=a.data;if(!d||!(CKEDITOR.env.webkit?c:CKEDITOR.env.mac?a.$.metaKey:a.$.ctrlKey)){a.preventDefault();var b=a.getTarget().getDocument(),f=a.getTarget().getDocument().getDocumentElement(),
g=!b.equals(CKEDITOR.document),b=b.getWindow().getScrollPosition(),j=g?a.$.clientX:a.$.pageX||b.x+a.$.clientX,l=g?a.$.clientY:a.$.pageY||b.y+a.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(f,null,j,l)},CKEDITOR.env.ie?200:0,this)}},this);if(CKEDITOR.env.opera)b.on("keypress",function(a){a=a.data;a.$.keyCode===0&&a.preventDefault()});if(CKEDITOR.env.webkit){var c,f=function(){c=0};b.on("keydown",function(a){c=CKEDITOR.env.mac?a.data.$.metaKey:a.data.$.ctrlKey});b.on("keyup",f);b.on("contextmenu",
f)}},open:function(b,d,a,c){this.editor.focus();b=b||CKEDITOR.document.getDocumentElement();this.editor.selectionChange(1);this.show(b,d,a,c)}}})},beforeInit:function(b){var d=b.contextMenu=new CKEDITOR.plugins.contextMenu(b);b.on("contentDom",function(){d.addTarget(b.editable(),b.config.browserContextMenuOnCtrl!==false)});b.addCommand("contextMenu",{exec:function(){b.contextMenu.open(b.document.getBody())}});b.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu");b.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+
121,"contextMenu")}}),function(){function b(a){var b=this.att,a=a&&a.hasAttribute(b)&&a.getAttribute(b)||"";a!==void 0&&this.setValue(a)}function d(){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 a={id:1,dir:1,classes:1,styles:1};CKEDITOR.plugins.add("dialogadvtab",{requires:"dialog",allowedContent:function(b){b||(b=a);var d=[];b.id&&d.push("id");b.dir&&
d.push("dir");var e="";d.length&&(e=e+("["+d.join(",")+"]"));b.classes&&(e=e+"(*)");b.styles&&(e=e+"{*}");return e},createAdvancedTab:function(c,f,e){f||(f=a);var h=c.lang.common,i={id:"advanced",label:h.advancedTab,title:h.advancedTab,elements:[{type:"vbox",padding:1,children:[]}]},g=[];if(f.id||f.dir){f.id&&g.push({id:"advId",att:"id",type:"text",requiredContent:e?e+"[id]":null,label:h.id,setup:b,commit:d});f.dir&&g.push({id:"advLangDir",att:"dir",type:"select",requiredContent:e?e+"[dir]":null,
label:h.langDir,"default":"",style:"width:100%",items:[[h.notSet,""],[h.langDirLTR,"ltr"],[h.langDirRTL,"rtl"]],setup:b,commit:d});i.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(g)})}if(f.styles||f.classes){g=[];f.styles&&g.push({id:"advStyles",att:"style",type:"text",requiredContent:e?e+"{cke-xyz}":null,label:h.styles,"default":"",validate:CKEDITOR.dialog.validate.inlineStyle(h.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 e=this.getValue(),d=c.document.createElement("span");d.setAttribute("style",e);d.setStyle(a,b);e=CKEDITOR.tools.normalizeCssText(d.getAttribute("style"));this.setValue(e,1)},setup:b,commit:d});f.classes&&g.push({type:"hbox",widths:["45%","55%"],children:[{id:"advCSSClasses",att:"class",type:"text",requiredContent:e?e+"(cke-xyz)":null,label:h.cssClasses,"default":"",setup:b,commit:d}]});i.elements[0].children.push({type:"hbox",
widths:["50%","50%"],children:[].concat(g)})}return i}})}(),function(){CKEDITOR.plugins.add("div",{requires:"dialog",init:function(b){if(!b.blockless){var d=b.lang.div,a="div(*)";CKEDITOR.dialog.isTabEnabled(b,"editdiv","advanced")&&(a=a+";div[dir,id,lang,title]{*}");b.addCommand("creatediv",new CKEDITOR.dialogCommand("creatediv",{allowedContent:a,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)}}));b.addCommand("editdiv",new CKEDITOR.dialogCommand("editdiv",{requiredContent:"div"}));b.addCommand("removediv",{requiredContent:"div",exec:function(a){function b(e){if((e=CKEDITOR.plugins.div.getSurroundDiv(a,e))&&!e.data("cke-div-added")){j.push(e);e.data("cke-div-added")}}for(var e=a.getSelection(),d=e&&e.getRanges(),i,g=e.createBookmarks(),j=[],l=0;l<d.length;l++){i=d[l];if(i.collapsed)b(e.getStartElement());else{i=new CKEDITOR.dom.walker(i);i.evaluator=b;i.lastForward()}}for(l=
0;l<j.length;l++)j[l].remove(true);e.selectBookmarks(g)}});b.ui.addButton&&b.ui.addButton("CreateDiv",{label:d.toolbar,command:"creatediv",toolbar:"blocks,50"});if(b.addMenuItems){b.addMenuItems({editdiv:{label:d.edit,command:"editdiv",group:"div",order:1},removediv:{label:d.remove,command:"removediv",group:"div",order:5}});b.contextMenu&&b.contextMenu.addListener(function(a){return!a||a.isReadOnly()?null:CKEDITOR.plugins.div.getSurroundDiv(b)?{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(b,d){var a=b.elementPath(d);return b.elementPath(a.blockLimit).contains("div",1)}}}(),function(){var b;function d(c,d){function i(a){a=c._.elementsPath.list[a];if(a.equals(c.editable())){var b=c.createRange();b.selectNodeContents(a);b.select()}else c.getSelection().selectElement(a);c.focus()}function g(){l&&l.setHtml(a);delete c._.elementsPath.list}
var j=c.ui.spaceId("path"),l,n="cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_";c._.elementsPath={idBase:n,filters:[]};d.html=d.html+('<span id="'+j+'_label" class="cke_voice_label">'+c.lang.elementspath.eleLabel+'</span><span id="'+j+'" class="cke_path" role="group" aria-labelledby="'+j+'_label">'+a+"</span>");c.on("uiReady",function(){var a=c.ui.space("path");a&&c.focusManager.add(a,1)});var o=CKEDITOR.tools.addFunction(i),m=CKEDITOR.tools.addFunction(function(a,b){var d=c._.elementsPath.idBase,
f,b=new CKEDITOR.dom.event(b);f=c.lang.dir=="rtl";switch(b.getKeystroke()){case f?39:37:case 9:(f=CKEDITOR.document.getById(d+(a+1)))||(f=CKEDITOR.document.getById(d+"0"));f.focus();return false;case f?37:39:case CKEDITOR.SHIFT+9:(f=CKEDITOR.document.getById(d+(a-1)))||(f=CKEDITOR.document.getById(d+(c._.elementsPath.list.length-1)));f.focus();return false;case 27:c.focus();return false;case 13:case 32:i(a);return false}return true});c.on("selectionChange",function(b){for(var d=c.editable(),h=b.data.selection.getStartElement(),
b=[],g=c._.elementsPath.list=[],i=c._.elementsPath.filters;h;){var y=0,A;A=h.data("cke-display-name")?h.data("cke-display-name"):h.data("cke-real-element-type")?h.data("cke-real-element-type"):h.getName();for(var v=0;v<i.length;v++){var w=i[v](h,A);if(w===false){y=1;break}A=w||A}if(!y){y=g.push(h)-1;v=c.lang.elementspath.eleTitle.replace(/%1/,A);A=f.output({id:n+y,label:v,text:A,jsTitle:"javascript:void('"+A+"')",index:y,keyDownFn:m,clickFn:o});b.unshift(A)}if(h.equals(d))break;h=h.getParent()}l||
(l=CKEDITOR.document.getById(j));d=l;d.setHtml(b.join("")+a);c.fire("elementsPathUpdate",{space:d})});c.on("readOnly",g);c.on("contentDomUnload",g);c.addCommand("elementsPathFocus",b);c.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}b={editorFocus:false,readOnly:1,exec:function(a){(a=CKEDITOR.document.getById(a._.elementsPath.idBase+"0"))&&a.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}};var a='<span class="cke_path_empty">&nbsp;</span>',c="";if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)c=
c+' onkeypress="return false;"';CKEDITOR.env.gecko&&(c=c+' onblur="this.style.cssText = this.style.cssText;"');var f=CKEDITOR.addTemplate("pathItem",'<a id="{id}" href="{jsTitle}" tabindex="-1" class="cke_path_item" title="{label}"'+(CKEDITOR.env.gecko&&CKEDITOR.env.version<10900?' onfocus="event.preventBubble();"':"")+c+' hidefocus="true"  onkeydown="return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );" onclick="CKEDITOR.tools.callFunction({clickFn},{index}); return false;" role="button" aria-label="{label}">{text}</a>');
CKEDITOR.plugins.add("elementspath",{init:function(a){a.on("uiSpace",function(b){b.data.space=="bottom"&&d(a,b.data)})}})}(),function(){function b(a,b,c){c=a.config.forceEnterMode||c;if(a.mode!="wysiwyg")return false;if(!b)b=a.config.enterMode;if(!a.elementPath().isContextFor("p")){b=CKEDITOR.ENTER_BR;c=1}a.fire("saveSnapshot");b==CKEDITOR.ENTER_BR?e(a,b,null,c):h(a,b,null,c);a.fire("saveSnapshot");return true}function d(a){for(var a=a.getSelection().getRanges(true),b=a.length-1;b>0;b--)a[b].deleteContents();
return a[0]}CKEDITOR.plugins.add("enterkey",{init:function(a){a.addCommand("enter",{modes:{wysiwyg:1},editorFocus:false,exec:function(a){b(a)}});a.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:false,exec:function(a){a.mode=="wysiwyg"&&b(a,a.config.shiftEnterMode,1)}});a.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var a=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(b,f,h,n){if(h=h||d(b)){var o=h.document,
m=h.checkStartOfBlock(),k=h.checkEndOfBlock(),p=b.elementPath(h.startContainer).block,s=f==CKEDITOR.ENTER_DIV?"div":"p",r;if(m&&k){if(p&&(p.is("li")||p.getParent().is("li"))){h=p.getParent();r=h.getParent();var n=!p.hasPrevious(),t=!p.hasNext(),s=b.getSelection(),y=s.createBookmarks(),m=p.getDirection(1),k=p.getAttribute("class"),A=p.getAttribute("style"),v=r.getDirection(1)!=m,b=b.config.enterMode!=CKEDITOR.ENTER_BR||v||A||k;if(r.is("li"))if(n||t)p[n?"insertBefore":"insertAfter"](r);else p.breakParent(r);
else{if(b){r=o.createElement(f==CKEDITOR.ENTER_P?"p":"div");v&&r.setAttribute("dir",m);A&&r.setAttribute("style",A);k&&r.setAttribute("class",k);p.moveChildren(r);if(n||t)r[n?"insertBefore":"insertAfter"](h);else{p.breakParent(h);r.insertAfter(h)}}else{p.appendBogus();if(n||t)for(;o=p[n?"getFirst":"getLast"]();)o[n?"insertBefore":"insertAfter"](h);else for(p.breakParent(h);o=p.getLast();)o.insertAfter(h)}p.remove()}s.selectBookmarks(y);return}if(p&&p.getParent().is("blockquote")){p.breakParent(p.getParent());
p.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||p.getPrevious().remove();p.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||p.getNext().remove();h.moveToElementEditStart(p);h.select();return}}else if(p&&p.is("pre")&&!k){e(b,f,h,n);return}if(k=h.splitBlock(s)){f=k.previousBlock;p=k.nextBlock;b=k.wasStartOfBlock;m=k.wasEndOfBlock;if(p){y=p.getParent();if(y.is("li")){p.breakParent(y);p.move(p.getNext(),1)}}else if(f&&(y=f.getParent())&&y.is("li")){f.breakParent(y);y=f.getNext();h.moveToElementEditStart(y);
f.move(f.getPrevious())}if(!b&&!m){if(p.is("li")){r=h.clone();r.selectNodeContents(p);r=new CKEDITOR.dom.walker(r);r.evaluator=function(b){return!(c(b)||a(b)||b.type==CKEDITOR.NODE_ELEMENT&&b.getName()in CKEDITOR.dtd.$inline&&!(b.getName()in CKEDITOR.dtd.$empty))};(y=r.next())&&(y.type==CKEDITOR.NODE_ELEMENT&&y.is("ul","ol"))&&(CKEDITOR.env.ie?o.createText(" "):o.createElement("br")).insertBefore(y)}p&&h.moveToElementEditStart(p)}else{if(f){if(f.is("li")||!i.test(f.getName())&&!f.is("pre"))r=f.clone()}else p&&
(r=p.clone());if(r)n&&!r.is("li")&&r.renameNode(s);else if(y&&y.is("li"))r=y;else{r=o.createElement(s);f&&(t=f.getDirection())&&r.setAttribute("dir",t)}if(o=k.elementPath){n=0;for(s=o.elements.length;n<s;n++){y=o.elements[n];if(y.equals(o.block)||y.equals(o.blockLimit))break;if(CKEDITOR.dtd.$removeEmpty[y.getName()]){y=y.clone();r.moveChildren(y);r.append(y)}}}CKEDITOR.env.ie||r.appendBogus();r.getParent()||h.insertNode(r);r.is("li")&&r.removeAttribute("value");if(CKEDITOR.env.ie&&b&&(!m||!f.getChildCount())){h.moveToElementEditStart(m?
f:r);h.select()}h.moveToElementEditStart(b&&!m?p:r)}h.select();h.scrollIntoView()}}},enterBr:function(a,b,c,e){if(c=c||d(a)){var f=c.document,m=c.checkEndOfBlock(),k=new CKEDITOR.dom.elementPath(a.getSelection().getStartElement()),p=k.block,k=p&&k.block.getName();if(!e&&k=="li")h(a,b,c,e);else{if(!e&&m&&i.test(k))if(m=p.getDirection()){f=f.createElement("div");f.setAttribute("dir",m);f.insertAfter(p);c.setStart(f,0)}else{f.createElement("br").insertAfter(p);CKEDITOR.env.gecko&&f.createText("").insertAfter(p);
c.setStartAt(p.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)}else{p=k=="pre"&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?f.createText("\r"):f.createElement("br");c.deleteContents();c.insertNode(p);if(CKEDITOR.env.ie)c.setStartAt(p,CKEDITOR.POSITION_AFTER_END);else{f.createText("﻿").insertAfter(p);m&&p.getParent().appendBogus();p.getNext().$.nodeValue="";c.setStartAt(p.getNext(),CKEDITOR.POSITION_AFTER_START)}}c.collapse(true);c.select();c.scrollIntoView()}}}};
var f=CKEDITOR.plugins.enterkey,e=f.enterBr,h=f.enterBlock,i=/^h[1-6]$/}(),function(){function b(b,a){var c={},f=[],e={nbsp:" ",shy:"­",gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},b=b.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(b,d){var h=a?"&"+d+";":e[d];c[h]=a?e[d]:"&"+d+";";f.push(h);return""});if(!a&&b){var b=b.split(","),h=document.createElement("div"),i;h.innerHTML="&"+b.join(";&")+";";i=h.innerHTML;h=null;for(h=0;h<i.length;h++){var g=i.charAt(h);c[g]="&"+b[h]+";";f.push(g)}}c.regex=
f.join(a?"|":"");return c}CKEDITOR.plugins.add("entities",{afterInit:function(d){var a=d.config;if(d=(d=d.dataProcessor)&&d.htmlFilter){var c=[];a.basicEntities!==false&&c.push("nbsp,gt,lt,amp");if(a.entities){c.length&&c.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");
a.entities_latin&&c.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");a.entities_greek&&c.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");
a.entities_additional&&c.push(a.entities_additional)}var f=b(c.join(",")),e=f.regex?"["+f.regex+"]":"a^";delete f.regex;a.entities&&a.entities_processNumerical&&(e="[^ -~]|"+e);var e=RegExp(e,"g"),h=function(b){return a.entities_processNumerical=="force"||!f[b]?"&#"+b.charCodeAt(0)+";":f[b]},i=b("nbsp,gt,lt,amp,shy",true),g=RegExp(i.regex,"g"),j=function(a){return i[a]};d.addRules({text:function(a){return a.replace(g,j).replace(e,h)}})}}})}(),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(b,d,a,c){d=d||"80%";a=a||"70%";typeof d=="string"&&(d.length>1&&d.substr(d.length-1,1)=="%")&&(d=parseInt(window.screen.width*parseInt(d,10)/100,10));typeof a=="string"&&(a.length>1&&a.substr(a.length-1,1)=="%")&&(a=parseInt(window.screen.height*parseInt(a,10)/100,10));d<640&&(d=640);a<420&&(a=
420);var f=parseInt((window.screen.height-a)/2,10),e=parseInt((window.screen.width-d)/2,10),c=(c||"location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes")+",width="+d+",height="+a+",top="+f+",left="+e,h=window.open("",null,c,true);if(!h)return false;try{if(navigator.userAgent.toLowerCase().indexOf(" chrome/")==-1){h.moveTo(e,f);h.resizeTo(d,a)}h.focus();h.location.href=b}catch(i){window.open(b,null,c,true)}return true}}),function(){function b(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 d(a){a=a+"";return a.charAt(0).toUpperCase()+a.substr(1)}function a(){var a=this.getDialog(),c=a.getParentEditor();c._.filebrowserSe=this;var e=c.config["filebrowser"+d(a.getName())+"WindowWidth"]||c.config.filebrowserWindowWidth||"80%",a=c.config["filebrowser"+d(a.getName())+"WindowHeight"]||c.config.filebrowserWindowHeight||"70%",f=this.filebrowser.params||
{};f.CKEditor=c.name;f.CKEditorFuncNum=c._.filebrowserFn;if(!f.langCode)f.langCode=c.langCode;f=b(this.filebrowser.url,f);c.popup(f,e,a,c.config.filebrowserWindowFeatures||c.config.fileBrowserWindowFeatures)}function c(){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 f(a,c,e){var d=e.params||{};d.CKEditor=a.name;d.CKEditorFuncNum=
a._.filebrowserFn;if(!d.langCode)d.langCode=a.langCode;c.action=b(e.url,d);c.filebrowser=e}function e(b,h,i,n){if(n&&n.length)for(var o,m=n.length;m--;){o=n[m];(o.type=="hbox"||o.type=="vbox"||o.type=="fieldset")&&e(b,h,i,o.children);if(o.filebrowser){if(typeof o.filebrowser=="string")o.filebrowser={action:o.type=="fileButton"?"QuickUpload":"Browse",target:o.filebrowser};if(o.filebrowser.action=="Browse"){var k=o.filebrowser.url;if(k===void 0){k=b.config["filebrowser"+d(h)+"BrowseUrl"];if(k===void 0)k=
b.config.filebrowserBrowseUrl}if(k){o.onClick=a;o.filebrowser.url=k;o.hidden=false}}else if(o.filebrowser.action=="QuickUpload"&&o["for"]){k=o.filebrowser.url;if(k===void 0){k=b.config["filebrowser"+d(h)+"UploadUrl"];if(k===void 0)k=b.config.filebrowserUploadUrl}if(k){var p=o.onClick;o.onClick=function(a){var b=a.sender;return p&&p.call(b,a)===false?false:c.call(b,a)};o.filebrowser.url=k;o.hidden=false;f(b,i.getContents(o["for"][0]).get(o["for"][1]),o.filebrowser)}}}}}function h(a,b,c){if(c.indexOf(";")!==
-1){for(var c=c.split(";"),e=0;e<c.length;e++)if(h(a,b,c[e]))return true;return false}return(a=a.getContents(b).get(c).filebrowser)&&a.url}function i(a,b){var c=this._.filebrowserSe.getDialog(),e=this._.filebrowserSe["for"],d=this._.filebrowserSe.filebrowser.onSelect;e&&c.getContentElement(e[0],e[1]).reset();if(!(typeof b=="function"&&b.call(this._.filebrowserSe)===false)&&!(d&&d.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(d=c.getContentElement(e[0],e[1])){d.setValue(a);c.selectPage(e[0])}}}}}CKEDITOR.plugins.add("filebrowser",{requires:"popup",init:function(a){a._.filebrowserFn=CKEDITOR.tools.addFunction(i,a);a.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}});CKEDITOR.on("dialogDefinition",function(a){for(var b=a.data.definition,c,d=0;d<b.contents.length;++d)if(c=b.contents[d]){e(a.editor,a.data.name,b,c.elements);if(c.hidden&&c.filebrowser)c.hidden=
!h(b,c.id,c.filebrowser)}})}(),CKEDITOR.plugins.add("find",{requires:"dialog",init:function(b){var d=b.addCommand("find",new CKEDITOR.dialogCommand("find"));d.canUndo=false;d.readOnly=1;b.addCommand("replace",new CKEDITOR.dialogCommand("replace")).canUndo=false;if(b.ui.addButton){b.ui.addButton("Find",{label:b.lang.find.find,command:"find",toolbar:"find,10"});b.ui.addButton("Replace",{label:b.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 b(a,b){var e=c.exec(a),d=c.exec(b);if(e){if(!e[2]&&d[2]=="px")return d[1];if(e[2]=="px"&&!d[2])return d[1]+"px"}return b}var d=CKEDITOR.htmlParser.cssStyle,a=CKEDITOR.tools.cssLength,c=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i,f={elements:{$:function(a){var c=a.attributes;if((c=(c=(c=c&&c["data-cke-realelement"])&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(c)))&&
c.children[0])&&a.attributes["data-cke-resizable"]){var e=(new d(a)).rules,a=c.attributes,f=e.width,e=e.height;f&&(a.width=b(a.width,f));e&&(a.height=b(a.height,e))}return c}}},e=CKEDITOR.plugins.add("fakeobjects",{afterInit:function(a){(a=(a=a.dataProcessor)&&a.htmlFilter)&&a.addRules(f)}});CKEDITOR.editor.prototype.createFakeElement=function(b,c,f,j){var l=this.lang.fakeobjects,l=l[f]||l.unknown,c={"class":c,"data-cke-realelement":encodeURIComponent(b.getOuterHtml()),"data-cke-real-node-type":b.type,
alt:l,title:l,align:b.getAttribute("align")||""};if(!CKEDITOR.env.hc)c.src=CKEDITOR.getUrl(e.path+"images/spacer.gif");f&&(c["data-cke-real-element-type"]=f);if(j){c["data-cke-resizable"]=j;f=new d;j=b.getAttribute("width");b=b.getAttribute("height");j&&(f.rules.width=a(j));b&&(f.rules.height=a(b));f.populate(c)}return this.document.createElement("img",{attributes:c})};CKEDITOR.editor.prototype.createFakeParserElement=function(b,c,f,j){var l=this.lang.fakeobjects,l=l[f]||l.unknown,n;n=new CKEDITOR.htmlParser.basicWriter;
b.writeHtml(n);n=n.getHtml();c={"class":c,"data-cke-realelement":encodeURIComponent(n),"data-cke-real-node-type":b.type,alt:l,title:l,align:b.attributes.align||""};if(!CKEDITOR.env.hc)c.src=CKEDITOR.getUrl(e.path+"images/spacer.gif");f&&(c["data-cke-real-element-type"]=f);if(j){c["data-cke-resizable"]=j;j=b.attributes;b=new d;f=j.width;j=j.height;f!=void 0&&(b.rules.width=a(f));j!=void 0&&(b.rules.height=a(j));b.populate(c)}return new CKEDITOR.htmlParser.element("img",c)};CKEDITOR.editor.prototype.restoreRealElement=
function(a){if(a.data("cke-real-node-type")!=CKEDITOR.NODE_ELEMENT)return null;var c=CKEDITOR.dom.element.createFromHtml(decodeURIComponent(a.data("cke-realelement")),this.document);if(a.data("cke-resizable")){var e=a.getStyle("width"),a=a.getStyle("height");e&&c.setAttribute("width",b(c.getAttribute("width"),e));a&&c.setAttribute("height",b(c.getAttribute("height"),a))}return c}}(),function(){function b(b){b=b.attributes;return b.type=="application/x-shockwave-flash"||a.test(b.src||"")}function d(a,
b){return a.createFakeParserElement(b,"cke_flash","flash",true)}var a=/\.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(a){var f=a.dataProcessor;(f=f&&f.dataFilter)&&f.addRules({elements:{"cke:object":function(e){var f=e.attributes;if((!f.classid||!(""+f.classid).toLowerCase())&&
!b(e)){for(f=0;f<e.children.length;f++)if(e.children[f].name=="cke:embed"){if(!b(e.children[f]))break;return d(a,e)}return null}return d(a,e)},"cke:embed":function(e){return!b(e)?null:d(a,e)}}},5)}})}(),CKEDITOR.tools.extend(CKEDITOR.config,{flashEmbedTagOnly:!1,flashAddEmbedTag:!0,flashConvertOnEdit:!1}),function(){function b(a){var b=a=="left"?"pageXOffset":"pageYOffset";return b in c.$?c.$[b]:CKEDITOR.document.$.documentElement[a=="left"?"scrollLeft":"scrollTop"]}function d(e){var d,i=e.config,
g=i.floatSpaceDockedOffsetX||0,j=i.floatSpaceDockedOffsetY||0,l=i.floatSpacePinnedOffsetX||0,n=i.floatSpacePinnedOffsetY||0,o=function(a){function i(a,b,c){p.setStyle(b,f(c));p.setStyle("position",a)}function k(a){var b=m.getDocumentPosition();switch(a){case "top":i("absolute","top",b.y-w-j);break;case "pin":i("fixed","top",n);break;case "bottom":i("absolute","top",b.y+(v.height||v.bottom-v.top)+j)}d=a}var m=e.editable();if(m){a.name=="focus"&&p.show();p.removeStyle("left");p.removeStyle("right");
var A=p.getClientRect(),v=m.getClientRect(),w=A.height,q=b("left");if(d){d=="top"&&A.top<n?k("pin"):d=="pin"?v.top>j+w?k("top"):v.bottom-A.bottom<w&&k("bottom"):d=="bottom"&&(v.top>j+w?k("top"):v.bottom>2*w+n&&k("pin"));var a=c.getViewPaneSize(),u=a.width/2,u=v.left>0&&v.right<a.width&&v.width>A.width?e.config.contentsLangDirection=="rtl"?"right":"left":u-v.left>v.right-u?"left":"right",z;if(A.width>a.width){u="left";z=0}else{z=u=="left"?v.left>0?v.left:0:v.right<a.width?a.width-v.right:0;if(z+A.width>
a.width){u=u=="left"?"right":"left";z=0}}p.setStyle(u,f((d=="pin"?l:g)+z+(d=="pin"?0:u=="left"?q:-q)))}else{d="pin";k("pin");o(a)}}},i=CKEDITOR.document.getBody(),m={id:e.id,name:e.name,langDir:e.lang.dir,langCode:e.langCode},k=e.fire("uiSpace",{space:"top",html:""}).html;if(k){var p=i.append(CKEDITOR.dom.element.createFromHtml(a.output(CKEDITOR.tools.extend({topId:e.ui.spaceId("top"),content:k,style:"display:none;z-index:"+(e.config.baseFloatZIndex-1)},m))));p.unselectable();p.on("mousedown",function(a){a=
a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});e.on("focus",function(a){o(a);c.on("scroll",o);c.on("resize",o)});e.on("blur",function(){p.hide();c.removeListener("scroll",o);c.removeListener("resize",o)});e.on("destroy",function(){c.removeListener("scroll",o);c.removeListener("resize",o);p.clearCustomData();p.remove()});e.focusManager.hasFocus&&p.show();e.focusManager.add(p,1)}}var a=CKEDITOR.addTemplate("floatcontainer",'<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}"><div class="cke_inner"><div id="{topId}" class="cke_top" role="presentation">{content}</div></div></div>');CKEDITOR.plugins.add("floatingspace",{init:function(a){a.on("loaded",function(){d(a)},null,null,20)}});var c=CKEDITOR.document.getWindow(),f=CKEDITOR.tools.cssLength}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var b=CKEDITOR.addTemplate("panel-list",
'<ul role="presentation" class="cke_panel_list">{items}</ul>'),d=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>'),a=CKEDITOR.addTemplate("panel-list-group",'<h1 id="{id}" class="cke_panel_grouptitle" role="presentation" >{label}</h1>');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 a=b.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(a);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,e){var h=
CKEDITOR.tools.getNextId();if(!this._.started){this._.started=1;this._.size=this._.size||0}this._.items[a]=h;a={id:h,val:a,onclick:CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:e||a,text:b||a};this._.pendingList.push(d.output(a))},startGroup:function(b){this._.close();var d=CKEDITOR.tools.getNextId();this._.groups[b]=d;this._.pendingHtml.push(a.output({id:d,label:b}))},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(),d;for(d in a)e.getById(a[d]).setStyle("display",
"");for(var i in b){a=e.getById(b[i]);d=a.getNext();a.setStyle("display","");d&&d.getName()=="ul"&&d.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 d=a[e];b.getById(d).removeClass("cke_selected");b.getById(d+"_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,d=-1;if(a)for(e=
this.element.getDocument().getById(this._.items[a]).getFirst();a=b.getItem(++d);){if(a.equals(e)){this._.focusIndex=d;break}}else this.element.focus();e&&setTimeout(function(){e.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(b){b.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}}),function(){var b='<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" hidefocus=true title="{title}" tabindex="-1"'+
(CKEDITOR.env.gecko&&CKEDITOR.env.version>=10900&&!CKEDITOR.env.hc?"":'" href="javascript:void(\'{titleJs}\')"')+' hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="true"';if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)b=b+' onkeypress="return false;"';CKEDITOR.env.gecko&&(b=b+' onblur="this.style.cssText = this.style.cssText;"');var b=b+(' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event,this);" onmousedown="return CKEDITOR.tools.callFunction({mousedownFn},event);"  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>"),d=CKEDITOR.addTemplate("combo",b);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 b=[];this.render(a,b);return b.join("")},render:function(a,b){function f(){var b=this.modes[a.mode]?CKEDITOR.TRISTATE_OFF:
CKEDITOR.TRISTATE_DISABLED;this.setState(a.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:b);this.setValue("")}var e=CKEDITOR.env,h="cke_"+this.id,i=CKEDITOR.tools.addFunction(function(b){if(o){a.unlockSelection(1);o=0}j.execute(b)},this),g=this,j={id:h,combo:this,focus:function(){CKEDITOR.document.getById(h).getChild(1).focus()},execute:function(b){var c=g._;if(c.state!=CKEDITOR.TRISTATE_DISABLED){g.createPanel(a);if(c.on)c.panel.hide();else{g.commit();var e=g.getValue();e?c.list.mark(e):c.list.unmarkAll();
c.panel.showBlock(g.id,new CKEDITOR.dom.element(b),4)}}},clickFn:i};a.on("mode",f,this);!this.readOnly&&a.on("readOnly",f,this);var l=CKEDITOR.tools.addFunction(function(a,b){var a=new CKEDITOR.dom.event(a),c=a.getKeystroke();switch(c){case 13:case 32:case 40:CKEDITOR.tools.callFunction(i,b);break;default:j.onkey(j,c)}a.preventDefault()}),n=CKEDITOR.tools.addFunction(function(){j.onfocus&&j.onfocus()}),o=0,m=CKEDITOR.tools.addFunction(function(){if(CKEDITOR.env.opera){var b=a.editable();if(b.isInline()&&
b.hasFocus){a.lockSelection();o=1}}});j.keyDownFn=l;e={id:h,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:e.gecko&&e.version>=10900&&!e.hc?"":(this.title||"").replace("'",""),keydownFn:l,mousedownFn:m,focusFn:n,clickFn:i};d.output(e,b);if(this.onRender)this.onRender();return j},createPanel:function(a){if(!this._.panel){var b=this._.panelDefinition,d=this._.panelDefinition.block,e=b.parent||CKEDITOR.document.getBody(),h="cke_combopanel__"+this.name,i=
new CKEDITOR.ui.floatPanel(a,e,b),g=i.addListBlock(this.id,d),j=this;i.onShow=function(){this.element.addClass(h);j.setState(CKEDITOR.TRISTATE_ON);j._.on=1;j.editorFocus&&a.focus();if(j.onOpen)j.onOpen();g.focus(!g.multiSelect&&j.getValue())};i.onHide=function(b){this.element.removeClass(h);j.setState(j.modes&&j.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);j._.on=0;if(!b&&j.onClose)j.onClose()};i.onEscape=function(){i.hide(1)};g.onClick=function(a,b){j.onClick&&j.onClick.call(j,
a,b);i.hide()};this._.panel=i;this._.list=g;i.getBlock(this.id).onHide=function(){j._.on=0;j.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,b){this._.value=a;var d=this.document.getById("cke_"+this.id+"_text");if(d){if(!a&&!b){b=this.label;d.addClass("cke_combo_inlinelabel")}else d.removeClass("cke_combo_inlinelabel");d.setText(typeof b!="undefined"?b: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,b,d){this._.items[a]=d||a;this._.list.add(a,b,d)},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 b=this.document.getById("cke_"+this.id);b.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED?
b.setAttribute("aria-disabled",true):b.removeAttribute("aria-disabled");this._.state=a}},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,b){this.add(a,CKEDITOR.UI_RICHCOMBO,b)}}(),function(){function b(b,
a,c,f,e,h,i,g){for(var j=b.config,l=new CKEDITOR.style(i),n=e.split(";"),e=[],o={},m=0;m<n.length;m++){var k=n[m];if(k){var k=k.split("/"),p={},s=n[m]=k[0];p[c]=e[m]=k[1]||s;o[s]=new CKEDITOR.style(i,p);o[s]._.definition.name=s}else n.splice(m--,1)}b.ui.addRichCombo(a,{label:f.label,title:f.panelTitle,toolbar:"styles,"+g,allowedContent:l,requiredContent:l,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(j.contentsCss),multiSelect:false,attributes:{"aria-label":f.panelTitle}},init:function(){this.startGroup(f.panelTitle);
for(var a=0;a<n.length;a++){var b=n[a];this.add(b,o[b].buildPreview(),b)}},onClick:function(a){b.focus();b.fire("saveSnapshot");var c=o[a];b[this.getValue()==a?"removeStyle":"applyStyle"](c);b.fire("saveSnapshot")},onRender:function(){b.on("selectionChange",function(a){for(var b=this.getValue(),a=a.data.path.elements,c=0,e;c<a.length;c++){e=a[c];for(var d in o)if(o[d].checkElementMatch(e,true)){d!=b&&this.setValue(d);return}}this.setValue("",h)},this)}})}CKEDITOR.plugins.add("font",{requires:"richcombo",
init:function(d){var a=d.config;b(d,"Font","family",d.lang.font,a.font_names,a.font_defaultLabel,a.font_style,30);b(d,"FontSize","size",d.lang.font.fontSize,a.fontSize_sizes,a.fontSize_defaultLabel,a.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(b){if(!b.blockless){for(var d=b.config,a=b.lang.format,c=d.format_tags.split(";"),f={},e=0,h=[],i=0;i<c.length;i++){var g=c[i],j=new CKEDITOR.style(d["format_"+g]);if(!b.filter.customConfig||b.filter.check(j)){e++;f[g]=j;f[g]._.enterMode=b.config.enterMode;h.push(j)}}e!==0&&b.ui.addRichCombo("Format",{label:a.label,title:a.panelTitle,toolbar:"styles,20",allowedContent:h,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(d.contentsCss),multiSelect:false,attributes:{"aria-label":a.panelTitle}},
init:function(){this.startGroup(a.panelTitle);for(var b in f){var c=a["tag_"+b];this.add(b,f[b].buildPreview(c),c)}},onClick:function(a){b.focus();b.fire("saveSnapshot");var a=f[a],c=b.elementPath();b[a.checkActive(c)?"removeStyle":"applyStyle"](a);setTimeout(function(){b.fire("saveSnapshot")},0)},onRender:function(){b.on("selectionChange",function(a){var c=this.getValue(),a=a.data.path,e=!b.readOnly&&a.isContextFor("p");this[e?"enable":"disable"]();if(e){for(var d in f)if(f[d].checkActive(a)){d!=
c&&this.setValue(d,b.lang.format["tag_"+d]);return}this.setValue("")}},this)}})}}}),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(b){var d=b.lang,a=
0,c={email:1,password:1,search:1,tel:1,text:1,url:1},f={checkbox:"input[type,name,checked]",radio:"input[type,name,checked]",textfield:"input[type,name,value,size,maxlength]",textarea:"textarea[cols,rows,name]",select:"select[name,size,multiple]; 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}"},e={checkbox:"input",
radio:"input",textfield:"input",textarea:"textarea",select:"select",button:"input",form:"form",hiddenfield:"input",imagebutton:"input"},h=function(c,h,g){var i={allowedContent:f[h],requiredContent:e[h]};h=="form"&&(i.context="form");b.addCommand(h,new CKEDITOR.dialogCommand(h,i));b.ui.addButton&&b.ui.addButton(c,{label:d.common[c.charAt(0).toLowerCase()+c.slice(1)],command:h,toolbar:"forms,"+(a=a+10)});CKEDITOR.dialog.add(h,g)},i=this.path+"dialogs/";!b.blockless&&h("Form","form",i+"form.js");h("Checkbox",
"checkbox",i+"checkbox.js");h("Radio","radio",i+"radio.js");h("TextField","textfield",i+"textfield.js");h("Textarea","textarea",i+"textarea.js");h("Select","select",i+"select.js");h("Button","button",i+"button.js");var g=CKEDITOR.plugins.get("image");g&&h("ImageButton","imagebutton",CKEDITOR.plugins.getPath("image")+"dialogs/image.js");h("HiddenField","hiddenfield",i+"hiddenfield.js");if(b.addMenuItems){h={checkbox:{label:d.forms.checkboxAndRadio.checkboxTitle,command:"checkbox",group:"checkbox"},
radio:{label:d.forms.checkboxAndRadio.radioTitle,command:"radio",group:"radio"},textfield:{label:d.forms.textfield.title,command:"textfield",group:"textfield"},hiddenfield:{label:d.forms.hidden.title,command:"hiddenfield",group:"hiddenfield"},imagebutton:{label:d.image.titleButton,command:"imagebutton",group:"imagebutton"},button:{label:d.forms.button.title,command:"button",group:"button"},select:{label:d.forms.select.title,command:"select",group:"select"},textarea:{label:d.forms.textarea.title,command:"textarea",
group:"textarea"}};!b.blockless&&(h.form={label:d.forms.form.menu,command:"form",group:"form"});b.addMenuItems(h)}if(b.contextMenu){!b.blockless&&b.contextMenu.addListener(function(a,b,c){if((a=c.contains("form",1))&&!a.isReadOnly())return{form:CKEDITOR.TRISTATE_OFF}});b.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 e=a.getAttribute("type")||
"text";switch(e){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 g?{imagebutton:CKEDITOR.TRISTATE_OFF}:null}if(c[e])return{textfield:CKEDITOR.TRISTATE_OFF}}if(b=="img"&&a.data("cke-real-element-type")=="hiddenfield")return{hiddenfield:CKEDITOR.TRISTATE_OFF}}})}b.on("doubleclick",function(a){var e=a.data.element;if(!b.blockless&&e.is("form"))a.data.dialog=
"form";else if(e.is("select"))a.data.dialog="select";else if(e.is("textarea"))a.data.dialog="textarea";else if(e.is("img")&&e.data("cke-real-element-type")=="hiddenfield")a.data.dialog="hiddenfield";else if(e.is("input")){e=e.getAttribute("type")||"text";switch(e){case "button":case "submit":case "reset":a.data.dialog="button";break;case "checkbox":a.data.dialog="checkbox";break;case "radio":a.data.dialog="radio";break;case "image":a.data.dialog="imagebutton"}if(c[e])a.data.dialog="textfield"}})},
afterInit:function(b){var d=b.dataProcessor,a=d&&d.htmlFilter,d=d&&d.dataFilter;CKEDITOR.env.ie&&a&&a.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}}});d&&d.addRules({elements:{input:function(a){if(a.attributes.type=="hidden")return b.createFakeParserElement(a,"cke_hidden","hiddenfield")}}})}}),CKEDITOR.env.ie&&(CKEDITOR.dom.element.prototype.hasAttribute=CKEDITOR.tools.override(CKEDITOR.dom.element.prototype.hasAttribute,
function(b){return function(d){this.$.attributes.getNamedItem(d);if(this.getName()=="input")switch(d){case "class":return this.$.className.length>0;case "checked":return!!this.$.checked;case "value":var a=this.getAttribute("type");return a=="checkbox"||a=="radio"?this.$.value!="on":this.$.value}return b.apply(this,arguments)}})),function(){var b={canUndo:false,exec:function(b){var a=b.document.createElement("hr");b.insertElement(a)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",
{init:function(d){if(!d.blockless){d.addCommand("horizontalrule",b);d.ui.addButton&&d.ui.addButton("HorizontalRule",{label:d.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"})}}})}(),CKEDITOR.plugins.add("htmlwriter",{init:function(b){var d=new CKEDITOR.htmlWriter;d.forceSimpleAmpersand=b.config.forceSimpleAmpersand;d.indentationChars=b.config.dataIndentationChars||"\t";b.dataProcessor.writer=d}}),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 b=CKEDITOR.dtd,d;for(d in CKEDITOR.tools.extend({},b.$nonBodyContent,b.$block,b.$listItem,b.$tableContent))this.setRules(d,{indent:!b[d]["#"],breakBeforeOpen:1,breakBeforeClose:!b[d]["#"],breakAfterClose:1,needsSpace:d in b.$block&&!(d 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(b){var d=this._.rules[b];this._.afterCloser&&(d&&d.needsSpace&&this._.needsSpace)&&this._.output.push("\n");if(this._.indent)this.indentation();else if(d&&d.breakBeforeOpen){this.lineBreak();this.indentation()}this._.output.push("<",b);this._.afterCloser=0},openTagClose:function(b,d){var a=this._.rules[b];if(d){this._.output.push(this.selfClosingEnd);
if(a&&a.breakAfterClose)this._.needsSpace=a.needsSpace}else{this._.output.push(">");if(a&&a.indent)this._.indentation=this._.indentation+this.indentationChars}a&&a.breakAfterOpen&&this.lineBreak();b=="pre"&&(this._.inPre=1)},attribute:function(b,d){if(typeof d=="string"){this.forceSimpleAmpersand&&(d=d.replace(/&amp;/g,"&"));d=CKEDITOR.tools.htmlEncodeAttr(d)}this._.output.push(" ",b,'="',d,'"')},closeTag:function(b){var d=this._.rules[b];if(d&&d.indent)this._.indentation=this._.indentation.substr(this.indentationChars.length);
if(this._.indent)this.indentation();else if(d&&d.breakBeforeClose){this.lineBreak();this.indentation()}this._.output.push("</",b,">");b=="pre"&&(this._.inPre=0);if(d&&d.breakAfterClose){this.lineBreak();this._.needsSpace=d.needsSpace}this._.afterCloser=1},text:function(b){if(this._.indent){this.indentation();!this._.inPre&&(b=CKEDITOR.tools.ltrim(b))}this._.output.push(b)},comment:function(b){this._.indent&&this.indentation();this._.output.push("<\!--",b,"--\>")},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(b,d){var a=this._.rules[b];a?CKEDITOR.tools.extend(a,d,true):this._.rules[b]=d}}}),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(b){var d=b.lang.iframe,a="iframe[align,longdesc,frameborder,height,name,scrolling,src,title,width]";b.plugins.dialogadvtab&&(a=a+(";iframe"+b.plugins.dialogadvtab.allowedContent({id:1,classes:1,styles:1})));CKEDITOR.dialog.add("iframe",this.path+"dialogs/iframe.js");b.addCommand("iframe",new CKEDITOR.dialogCommand("iframe",
{allowedContent:a,requiredContent:"iframe"}));b.ui.addButton&&b.ui.addButton("Iframe",{label:d.toolbar,command:"iframe",toolbar:"insert,80"});b.on("doubleclick",function(a){var b=a.data.element;if(b.is("img")&&b.data("cke-real-element-type")=="iframe")a.data.dialog="iframe"});b.addMenuItems&&b.addMenuItems({iframe:{label:d.title,command:"iframe",group:"image"}});b.contextMenu&&b.contextMenu.addListener(function(a){if(a&&a.is("img")&&a.data("cke-real-element-type")=="iframe")return{iframe:CKEDITOR.TRISTATE_OFF}})},
afterInit:function(b){var d=b.dataProcessor;(d=d&&d.dataFilter)&&d.addRules({elements:{iframe:function(a){return b.createFakeParserElement(a,"cke_iframe","iframe",true)}}})}})}(),function(){function b(a,b){b||(b=a.getSelection().getSelectedElement());if(b&&b.is("img")&&!b.data("cke-realelement")&&!b.isReadOnly())return b}function d(a){var b=a.getStyle("float");if(b=="inherit"||b=="none")b=0;b||(b=a.getAttribute("align"));return b}CKEDITOR.plugins.add("image",{requires:"dialog",init:function(a){CKEDITOR.dialog.add("image",
this.path+"dialogs/image.js");var c="img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}";CKEDITOR.dialog.isTabEnabled(a,"image","advanced")&&(c="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)");a.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:c,requiredContent:"img[alt,src]",contentTransformations:[["img{width}: sizeToStyle","img[width]: sizeToAttribute"],["img{float}: alignmentToStyle","img[align]: alignmentToAttribute"]]}));
a.ui.addButton&&a.ui.addButton("Image",{label:a.lang.common.image,command:"image",toolbar:"insert,10"});a.on("doubleclick",function(a){var b=a.data.element;if(b.is("img")&&!b.data("cke-realelement")&&!b.isReadOnly())a.data.dialog="image"});a.addMenuItems&&a.addMenuItems({image:{label:a.lang.image.menu,command:"image",group:"image"}});a.contextMenu&&a.contextMenu.addListener(function(c){if(b(a,c))return{image:CKEDITOR.TRISTATE_OFF}})},afterInit:function(a){function c(c){var e=a.getCommand("justify"+
c);if(e){if(c=="left"||c=="right")e.on("exec",function(e){var i=b(a),g;if(i){g=d(i);if(g==c){i.removeStyle("float");c==d(i)&&i.removeAttribute("align")}else i.setStyle("float",c);e.cancel()}});e.on("refresh",function(e){var i=b(a);if(i){i=d(i);this.setState(i==c?CKEDITOR.TRISTATE_ON:c=="right"||c=="left"?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);e.cancel()}})}}c("left");c("right");c("center");c("block")}})}(),CKEDITOR.config.image_removeLinkByEmptyURL=!0,function(){function b(b,f){var e,h;
f.on("refresh",function(b){var c=[d],e;for(e in b.data.states)c.push(b.data.states[e]);this.setState(CKEDITOR.tools.search(c,a)?a:d)},f,null,100);f.on("exec",function(a){e=b.getSelection();h=e.createBookmarks(1);if(!a.data)a.data={};a.data.done=false},f,null,0);f.on("exec",function(){b.forceNextSelectionCheck();e.selectBookmarks(h)},f,null,100)}var d=CKEDITOR.TRISTATE_DISABLED,a=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(a){var d=CKEDITOR.plugins.indent.genericDefinition;b(a,
a.addCommand("indent",new d(true)));b(a,a.addCommand("outdent",new d));if(a.ui.addButton){a.ui.addButton("Indent",{label:a.lang.indent.indent,command:"indent",directional:true,toolbar:"indent,20"});a.ui.addButton("Outdent",{label:a.lang.indent.outdent,command:"outdent",directional:true,toolbar:"indent,10"})}a.on("dirChanged",function(b){var d=a.createRange(),f=b.data.node;d.setStartBefore(f);d.setEndAfter(f);for(var g=new CKEDITOR.dom.walker(d),j;j=g.next();)if(j.type==CKEDITOR.NODE_ELEMENT)if(!j.equals(f)&&
j.getDirection()){d.setStartAfter(j);g=new CKEDITOR.dom.walker(d)}else{var l=a.config.indentClasses;if(l)for(var n=b.data.dir=="ltr"?["_rtl",""]:["","_rtl"],o=0;o<l.length;o++)if(j.hasClass(l[o]+n[0])){j.removeClass(l[o]+n[0]);j.addClass(l[o]+n[1])}l=j.getStyle("margin-right");n=j.getStyle("margin-left");l?j.setStyle("margin-left",l):j.removeStyle("margin-left");n?j.setStyle("margin-right",n):j.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),e;for(e in b.jobs){c.on("exec",function(c){if(!c.data.done){a.fire("lockSnapshot");if(b.execJob(a,
e))c.data.done=true;a.fire("unlockSnapshot");CKEDITOR.dom.element.clearAllMarkers(b.database)}},this,null,e);c.on("refresh",function(c){if(!c.data.states)c.data.states={};c.data.states[b.name+"@"+e]=b.refreshJob(a,e,c.data.path)},this,null,e)}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 e=this.jobs[b];if(e.state!=d)return e.exec.call(this,a)},refreshJob:function(a,
b,e){b=this.jobs[b];b.state=b.refresh.call(this,a,e);return b.state},getContext:function(a){return a.contains(this.context)}}}(),function(){function b(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 d(a,b,e){this.editor=a;this.name=b;this.value=e;this.context="p";var b=a.config.justifyClasses,d=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=d+"("+this.cssClassName+")"}else this.requiredContent=d+"{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 a(a){var b=a.editor,e=b.createRange();e.setStartBefore(a.data.node);e.setEndAfter(a.data.node);for(var d=new CKEDITOR.dom.walker(e),i;i=d.next();)if(i.type==CKEDITOR.NODE_ELEMENT)if(!i.equals(a.data.node)&&i.getDirection()){e.setStartAfter(i);d=new CKEDITOR.dom.walker(e)}else{var g=
b.config.justifyClasses;if(g)if(i.hasClass(g[0])){i.removeClass(g[0]);i.addClass(g[2])}else if(i.hasClass(g[2])){i.removeClass(g[2]);i.addClass(g[0])}g=i.getStyle("text-align");g=="left"?i.setStyle("text-align","right"):g=="right"&&i.setStyle("text-align","left")}}d.prototype={exec:function(a){var d=a.getSelection(),e=a.config.enterMode;if(d){for(var h=d.createBookmarks(),i=d.getRanges(true),g=this.cssClassName,j,l,n=a.config.useComputedState,n=n===void 0||n,o=i.length-1;o>=0;o--){j=i[o].createIterator();
for(j.enlargeBr=e!=CKEDITOR.ENTER_BR;l=j.getNextParagraph(e==CKEDITOR.ENTER_P?"p":"div");){l.removeAttribute("align");l.removeStyle("text-align");var m=g&&(l.$.className=CKEDITOR.tools.ltrim(l.$.className.replace(this.cssClassRegex,""))),k=this.state==CKEDITOR.TRISTATE_OFF&&(!n||b(l,true)!=this.value);g?k?l.addClass(g):m||l.removeAttribute("class"):k&&l.setStyle("text-align",this.value)}}a.focus();a.forceNextSelectionCheck();d.selectBookmarks(h)}},refresh:function(a,d){var e=d.block||d.blockLimit;
this.setState(e.getName()!="body"&&b(e,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("justify",{init:function(b){if(!b.blockless){var f=new d(b,"justifyleft","left"),e=new d(b,"justifycenter","center"),h=new d(b,"justifyright","right"),i=new d(b,"justifyblock","justify");b.addCommand("justifyleft",f);b.addCommand("justifycenter",e);b.addCommand("justifyright",h);b.addCommand("justifyblock",i);if(b.ui.addButton){b.ui.addButton("JustifyLeft",
{label:b.lang.justify.left,command:"justifyleft",toolbar:"align,10"});b.ui.addButton("JustifyCenter",{label:b.lang.justify.center,command:"justifycenter",toolbar:"align,20"});b.ui.addButton("JustifyRight",{label:b.lang.justify.right,command:"justifyright",toolbar:"align,30"});b.ui.addButton("JustifyBlock",{label:b.lang.justify.block,command:"justifyblock",toolbar:"align,40"})}b.on("dirChanged",a)}}})}(),CKEDITOR.plugins.add("link",{requires:"dialog,fakeobjects",onLoad:function(){function b(b){return a.replace(/%1/g,
b=="rtl"?"right":"left").replace(/%2/g,"cke_contents_"+b)}var d="background:url("+CKEDITOR.getUrl(this.path+"images"+(CKEDITOR.env.hidpi?"/hidpi":"")+"/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;background-size:16px;",a=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+d+"padding-%1:18px;cursor:auto;}"+(CKEDITOR.env.ie?"a.cke_anchor_empty{display:inline-block;}":"")+".%2 img.cke_anchor{"+d+"width:16px;min-height:15px;height:1.15em;vertical-align:"+
(CKEDITOR.env.opera?"middle":"text-bottom")+";}";CKEDITOR.addCss(b("ltr")+b("rtl"))},init:function(b){var d="a[!href]";CKEDITOR.dialog.isTabEnabled(b,"link","advanced")&&(d=d.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type]{*}(*)"));CKEDITOR.dialog.isTabEnabled(b,"link","target")&&(d=d.replace("]",",target,onclick]"));b.addCommand("link",new CKEDITOR.dialogCommand("link",{allowedContent:d,requiredContent:"a[href]"}));b.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",
{allowedContent:"a[!name,id]",requiredContent:"a[name]"}));b.addCommand("unlink",new CKEDITOR.unlinkCommand);b.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand);b.setKeystroke(CKEDITOR.CTRL+76,"link");if(b.ui.addButton){b.ui.addButton("Link",{label:b.lang.link.toolbar,command:"link",toolbar:"links,10"});b.ui.addButton("Unlink",{label:b.lang.link.unlink,command:"unlink",toolbar:"links,20"});b.ui.addButton("Anchor",{label:b.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");b.on("doubleclick",function(a){var c=CKEDITOR.plugins.link.getSelectedLink(b)||a.data.element;if(!c.isReadOnly())if(c.is("a")){a.data.dialog=c.getAttribute("name")&&(!c.getAttribute("href")||!c.getChildCount())?"anchor":"link";b.getSelection().selectElement(c)}else if(CKEDITOR.plugins.link.tryRestoreFakeAnchor(b,c))a.data.dialog="anchor"});b.addMenuItems&&b.addMenuItems({anchor:{label:b.lang.link.anchor.menu,
command:"anchor",group:"anchor",order:1},removeAnchor:{label:b.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:b.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:b.lang.link.unlink,command:"unlink",group:"link",order:5}});b.contextMenu&&b.contextMenu.addListener(function(a){if(!a||a.isReadOnly())return null;a=CKEDITOR.plugins.link.tryRestoreFakeAnchor(b,a);if(!a&&!(a=CKEDITOR.plugins.link.getSelectedLink(b)))return null;var c={};a.getAttribute("href")&&
a.getChildCount()&&(c={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF});if(a&&a.hasAttribute("name"))c.anchor=c.removeAnchor=CKEDITOR.TRISTATE_OFF;return c})},afterInit:function(b){var d=b.dataProcessor,a=d&&d.dataFilter,d=d&&d.htmlFilter,c=b._.elementsPath&&b._.elementsPath.filters;a&&a.addRules({elements:{a:function(a){var c=a.attributes;if(!c.name)return null;var d=!a.children.length;if(CKEDITOR.plugins.link.synAnchorSelector){var a=d?"cke_anchor_empty":"cke_anchor",i=c["class"];if(c.name&&
(!i||i.indexOf(a)<0))c["class"]=(i||"")+" "+a;if(d&&CKEDITOR.plugins.link.emptyAnchorFix){c.contenteditable="false";c["data-cke-editable"]=1}}else if(CKEDITOR.plugins.link.fakeAnchor&&d)return b.createFakeParserElement(a,"cke_anchor","anchor");return null}}});CKEDITOR.plugins.link.emptyAnchorFix&&d&&d.addRules({elements:{a:function(a){delete a.attributes.contenteditable}}});c&&c.push(function(a,c){if(c=="a"&&(CKEDITOR.plugins.link.tryRestoreFakeAnchor(b,a)||a.getAttribute("name")&&(!a.getAttribute("href")||
!a.getChildCount())))return"anchor"})}}),CKEDITOR.plugins.link={getSelectedLink:function(b){var d=b.getSelection(),a=d.getSelectedElement();if(a&&a.is("a"))return a;if(d=d.getRanges(true)[0]){d.shrink(CKEDITOR.SHRINK_TEXT);return b.elementPath(d.getCommonAncestor()).contains("a",1)}return null},fakeAnchor:CKEDITOR.env.opera||CKEDITOR.env.webkit,synAnchorSelector:CKEDITOR.env.ie,emptyAnchorFix:CKEDITOR.env.ie&&8>CKEDITOR.env.version,tryRestoreFakeAnchor:function(b,d){if(d&&d.data("cke-real-element-type")&&
d.data("cke-real-element-type")=="anchor"){var a=b.restoreRealElement(d);if(a.data("cke-saved-name"))return a}}},CKEDITOR.unlinkCommand=function(){},CKEDITOR.unlinkCommand.prototype={exec:function(b){var d=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1});b.removeStyle(d)},refresh:function(b,d){var a=d.lastElement&&d.lastElement.getAscendant("a",true);a&&a.getName()=="a"&&a.getAttribute("href")&&a.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(b){var d=b.getSelection(),a=d.createBookmarks(),c;if(d&&(c=d.getSelectedElement())&&(CKEDITOR.plugins.link.fakeAnchor&&!c.getChildCount()?CKEDITOR.plugins.link.tryRestoreFakeAnchor(b,c):c.is("a")))c.remove(1);else if(c=CKEDITOR.plugins.link.getSelectedLink(b))if(c.hasAttribute("href")){c.removeAttributes({name:1,"data-cke-saved-name":1});c.removeClass("cke_anchor")}else c.remove(1);
d.selectBookmarks(a)},requiredContent:"a[name]"},CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:!0,linkShowTargetTab:!0}),function(){function b(b){function d(a){for(var g=m.startContainer,k=m.endContainer;g&&!g.getParent().equals(a);)g=g.getParent();for(;k&&!k.getParent().equals(a);)k=k.getParent();if(!g||!k)return false;for(var p=g,g=[],o=false;!o;){p.equals(k)&&(o=true);g.push(p);p=p.getNext()}if(g.length<1)return false;p=a.getParents(true);for(k=0;k<p.length;k++)if(p[k].getName&&n[p[k].getName()]){a=
p[k];break}for(var p=e.isIndent?1:-1,k=g[0],g=g[g.length-1],o=CKEDITOR.plugins.list.listToArray(a,h),v=o[g.getCustomData("listarray_index")].indent,k=k.getCustomData("listarray_index");k<=g.getCustomData("listarray_index");k++){o[k].indent=o[k].indent+p;if(p>0){var w=o[k].parent;o[k].parent=new CKEDITOR.dom.element(w.getName(),w.getDocument())}}for(k=g.getCustomData("listarray_index")+1;k<o.length&&o[k].indent>v;k++)o[k].indent=o[k].indent+p;g=CKEDITOR.plugins.list.arrayToList(o,h,null,b.config.enterMode,
a.getDirection());if(!e.isIndent){var q;if((q=a.getParent())&&q.is("li"))for(var p=g.listNode.getChildren(),u=[],z,k=p.count()-1;k>=0;k--)(z=p.getItem(k))&&(z.is&&z.is("li"))&&u.push(z)}g&&g.listNode.replace(a);if(u&&u.length)for(k=0;k<u.length;k++){for(z=a=u[k];(z=z.getNext())&&z.is&&z.getName()in n;){CKEDITOR.env.ie&&!a.getFirst(function(a){return c(a)&&f(a)})&&a.append(m.document.createText(" "));a.append(z)}a.insertAfter(q)}return true}for(var e=this,h=this.database,n=this.context,o=b.getSelection(),
o=(o&&o.getRanges(1)).createIterator(),m;m=o.getNextRange();){for(var k=m.getCommonAncestor();k&&!(k.type==CKEDITOR.NODE_ELEMENT&&n[k.getName()]);)k=k.getParent();k||(k=m.startPath().contains(n))&&m.setEndAt(k,CKEDITOR.POSITION_BEFORE_END);if(!k){var p=m.getEnclosedNode();if(p&&p.type==CKEDITOR.NODE_ELEMENT&&p.getName()in n){m.setStartAt(p,CKEDITOR.POSITION_AFTER_START);m.setEndAt(p,CKEDITOR.POSITION_BEFORE_END);k=p}}if(k&&m.startContainer.type==CKEDITOR.NODE_ELEMENT&&m.startContainer.getName()in
n){p=new CKEDITOR.dom.walker(m);p.evaluator=a;m.startContainer=p.next()}if(k&&m.endContainer.type==CKEDITOR.NODE_ELEMENT&&m.endContainer.getName()in n){p=new CKEDITOR.dom.walker(m);p.evaluator=a;m.endContainer=p.previous()}if(k)return d(k)}return 0}function d(b,c){c||(c=b.contains(this.context));return c&&b.block&&b.block.equals(c.getFirst(a))}function a(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}var c=CKEDITOR.dom.walker.whitespaces(true),f=CKEDITOR.dom.walker.bookmark(false,true),e=CKEDITOR.TRISTATE_DISABLED,
h=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(a){function c(a,g){f.specificDefinition.apply(this,arguments);this.requiredContent=["ul","ol"];a.on("key",function(b){if(a.mode=="wysiwyg"&&b.data.keyCode==this.indentKey){var c=this.getContext(a.elementPath());if(c&&(!this.isIndent||!d.call(this,a.elementPath(),c))){a.execCommand(this.relatedGlobal);b.cancel()}}},this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(a,b){var c=this.getContext(b),
f=d.call(this,b,c);return!c||!this.isIndent||f?e:h}:function(a,b){return!this.getContext(b)||this.isIndent?e:h},exec:CKEDITOR.tools.bind(b,this)}}var f=CKEDITOR.plugins.indent;f.registerCommands(a,{indentlist:new c(a,"indentlist",true),outdentlist:new c(a,"outdentlist")});CKEDITOR.tools.extend(c.prototype,f.specificDefinition.prototype,{context:{ol:1,ul:1}})}})}(),function(){function b(a,b,c){function d(c){if((j=i[c?"getFirst":"getLast"]())&&(!j.is||!j.isBlockBoundary())&&(l=b.root[c?"getPrevious":
"getNext"](CKEDITOR.dom.walker.invisible(true)))&&(!l.is||!l.isBlockBoundary({br:1})))a.document.createElement("br")[c?"insertBefore":"insertAfter"](j)}for(var e=CKEDITOR.plugins.list.listToArray(b.root,c),f=[],h=0;h<b.contents.length;h++){var g=b.contents[h];if((g=g.getAscendant("li",true))&&!g.getCustomData("list_item_processed")){f.push(g);CKEDITOR.dom.element.setMarker(c,g,"list_item_processed",true)}}g=null;for(h=0;h<f.length;h++){g=f[h].getCustomData("listarray_index");e[g].indent=-1}for(h=
g+1;h<e.length;h++)if(e[h].indent>e[h-1].indent+1){f=e[h-1].indent+1-e[h].indent;for(g=e[h].indent;e[h]&&e[h].indent>=g;){e[h].indent=e[h].indent+f;h++}h--}var i=CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,j,l;d(true);d();i.replace(b.root)}function d(a,b){this.name=a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function a(a,b,c,e){for(var d,f;d=a[e?"getLast":"getFirst"](m);){(f=d.getDirection(1))!==b.getDirection(1)&&
d.setAttribute("dir",f);d.remove();c?d[e?"insertBefore":"insertAfter"](c):b.append(d,e)}}function c(b){var c;(c=function(c){var e=b[c?"getPrevious":"getNext"](l);if(e&&e.type==CKEDITOR.NODE_ELEMENT&&e.is(b.getName())){a(b,e,null,!c);b.remove();b=e}})();c(1)}function f(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function e(b,e,d){b.fire("saveSnapshot");d.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);
var f=d.extractContents();e.trim(false,true);var g=e.createBookmark(),i=new CKEDITOR.dom.elementPath(e.startContainer),j=i.block,i=i.lastElement.getAscendant("li",1)||j,m=new CKEDITOR.dom.elementPath(d.startContainer),o=m.contains(CKEDITOR.dtd.$listItem),m=m.contains(CKEDITOR.dtd.$list);if(j)(j=j.getBogus())&&j.remove();else if(m)(j=m.getPrevious(l))&&n(j)&&j.remove();(j=f.getLast())&&(j.type==CKEDITOR.NODE_ELEMENT&&j.is("br"))&&j.remove();(j=e.startContainer.getChild(e.startOffset))?f.insertBefore(j):
e.startContainer.append(f);if(o)if(f=h(o))if(i.contains(o)){a(f,o.getParent(),o);f.remove()}else i.append(f);for(;d.checkStartOfBlock()&&d.checkEndOfBlock();){m=d.startPath();f=m.block;if(f.is("li")){i=f.getParent();f.equals(i.getLast(l))&&f.equals(i.getFirst(l))&&(f=i)}d.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START);f.remove()}d=d.clone();f=b.editable();d.setEndAt(f,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=function(a){return l(a)&&!n(a)};(d=d.next())&&(d.type==CKEDITOR.NODE_ELEMENT&&
d.getName()in CKEDITOR.dtd.$list)&&c(d);e.moveToBookmark(g);e.select();b.fire("saveSnapshot")}function h(a){return(a=a.getLast(l))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in i?a:null}var i={ol:1,ul:1},g=CKEDITOR.dom.walker.whitespaces(),j=CKEDITOR.dom.walker.bookmark(),l=function(a){return!(g(a)||j(a))},n=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,b,c,d,e){if(!i[a.getName()])return[];d||(d=0);c||(c=[]);for(var f=0,h=a.getChildCount();f<h;f++){var g=a.getChild(f);
g.type==CKEDITOR.NODE_ELEMENT&&g.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(g,b,c,d+1);if(g.$.nodeName.toLowerCase()=="li"){var j={parent:a,indent:d,element:g,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,g,"listarray_index",c.length);c.push(j);for(var l=0,m=g.getChildCount(),n;l<m;l++){n=g.getChild(l);n.type==CKEDITOR.NODE_ELEMENT&&
i[n.getName()]?CKEDITOR.plugins.list.listToArray(n,b,c,d+1,j.grandparent):j.contents.push(n)}}}return c},arrayToList:function(a,b,c,d,e){c||(c=0);if(!a||a.length<c+1)return null;for(var f,h=a[c].parent.getDocument(),g=new CKEDITOR.dom.documentFragment(h),j=null,m=c,n=Math.max(a[c].indent,0),o=null,B,x,C=d==CKEDITOR.ENTER_P?"p":"div";;){var D=a[m];f=D.grandparent;B=D.element.getDirection(1);if(D.indent==n){if(!j||a[m].parent.getName()!=j.getName()){j=a[m].parent.clone(false,1);e&&j.setAttribute("dir",
e);g.append(j)}o=j.append(D.element.clone(0,1));B!=j.getDirection(1)&&o.setAttribute("dir",B);for(f=0;f<D.contents.length;f++)o.append(D.contents[f].clone(1,1));m++}else if(D.indent==Math.max(n,0)+1){x=a[m-1].element.getDirection(1);m=CKEDITOR.plugins.list.arrayToList(a,null,m,d,x!=B?B:null);!o.getChildCount()&&(CKEDITOR.env.ie&&!(h.$.documentMode>7))&&o.append(h.createText(" "));o.append(m.listNode);m=m.nextIndex}else if(D.indent==-1&&!c&&f){if(i[f.getName()]){o=D.element.clone(false,true);B!=f.getDirection(1)&&
o.setAttribute("dir",B)}else o=new CKEDITOR.dom.documentFragment(h);var j=f.getDirection(1)!=B,F=D.element,E=F.getAttribute("class"),K=F.getAttribute("style"),I=o.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(d!=CKEDITOR.ENTER_BR||j||K||E),G,H=D.contents.length;for(f=0;f<H;f++){G=D.contents[f];if(G.type==CKEDITOR.NODE_ELEMENT&&G.isBlockBoundary()){j&&!G.getDirection()&&G.setAttribute("dir",B);var L=G,J=F.getAttribute("style");J&&L.setAttribute("style",J.replace(/([^;])$/,"$1;")+(L.getAttribute("style")||
""));E&&G.addClass(E)}else if(I){if(!x){x=h.createElement(C);j&&x.setAttribute("dir",B)}K&&x.setAttribute("style",K);E&&x.setAttribute("class",E);x.append(G.clone(1,1))}o.append(x||G.clone(1,1))}if(o.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&m!=a.length-1){(B=o.getLast())&&(B.type==CKEDITOR.NODE_ELEMENT&&B.getAttribute("type")=="_moz")&&B.remove();(!o.getLast(l)||!(B.type==CKEDITOR.NODE_ELEMENT&&B.getName()in CKEDITOR.dtd.$block))&&o.append(h.createElement("br"))}B=o.$.nodeName.toLowerCase();!CKEDITOR.env.ie&&
(B=="div"||B=="p")&&o.appendBogus();g.append(o);j=null;m++}else return null;x=null;if(a.length<=m||Math.max(a[m].indent,0)<n)break}if(b)for(a=g.getFirst();a;){if(a.type==CKEDITOR.NODE_ELEMENT){CKEDITOR.dom.element.clearMarkers(b,a);if(a.getName()in CKEDITOR.dtd.$listItem){c=a;h=e=d=void 0;if(d=c.getDirection()){for(e=c.getParent();e&&!(h=e.getDirection());)e=e.getParent();d==h&&c.removeAttribute("dir")}}}a=a.getNextSourceNode()}return{listNode:g,nextIndex:m}}};var o=/^h[1-6]$/,m=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);
d.prototype={exec:function(a){this.refresh(a,a.elementPath());var d=a.config,e=a.getSelection(),f=e&&e.getRanges(true);if(this.state==CKEDITOR.TRISTATE_OFF){var h=a.editable();if(h.getFirst(l)){var g=f.length==1&&f[0];(d=g&&g.getEnclosedNode())&&(d.is&&this.type==d.getName())&&this.setState(CKEDITOR.TRISTATE_ON)}else{d.enterMode==CKEDITOR.ENTER_BR?h.appendBogus():f[0].fixBlock(1,d.enterMode==CKEDITOR.ENTER_P?"p":"div");e.selectRanges(f)}}for(var d=e.createBookmarks(true),h=[],j={},f=f.createIterator(),
m=0;(g=f.getNextRange())&&++m;){var n=g.getBoundaryNodes(),q=n.startNode,u=n.endNode;q.type==CKEDITOR.NODE_ELEMENT&&q.getName()=="td"&&g.setStartAt(n.startNode,CKEDITOR.POSITION_AFTER_START);u.type==CKEDITOR.NODE_ELEMENT&&u.getName()=="td"&&g.setEndAt(n.endNode,CKEDITOR.POSITION_BEFORE_END);g=g.createIterator();for(g.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;n=g.getNextParagraph();)if(!n.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(j,n,"list_block",1);for(var z=a.elementPath(n),
q=z.elements,u=0,z=z.blockLimit,B,x=q.length-1;x>=0&&(B=q[x]);x--)if(i[B.getName()]&&z.contains(B)){z.removeCustomData("list_group_object_"+m);if(q=B.getCustomData("list_group_object"))q.contents.push(n);else{q={root:B,contents:[n]};h.push(q);CKEDITOR.dom.element.setMarker(j,B,"list_group_object",q)}u=1;break}if(!u){u=z;if(u.getCustomData("list_group_object_"+m))u.getCustomData("list_group_object_"+m).contents.push(n);else{q={root:u,contents:[n]};CKEDITOR.dom.element.setMarker(j,u,"list_group_object_"+
m,q);h.push(q)}}}}for(B=[];h.length>0;){q=h.shift();if(this.state==CKEDITOR.TRISTATE_OFF)if(i[q.root.getName()]){n=a;f=q;q=j;m=B;u=CKEDITOR.plugins.list.listToArray(f.root,q);z=[];for(g=0;g<f.contents.length;g++){x=f.contents[g];if((x=x.getAscendant("li",true))&&!x.getCustomData("list_item_processed")){z.push(x);CKEDITOR.dom.element.setMarker(q,x,"list_item_processed",true)}}for(var x=f.root.getDocument(),C=void 0,D=void 0,g=0;g<z.length;g++){var F=z[g].getCustomData("listarray_index"),C=u[F].parent;
if(!C.is(this.type)){D=x.createElement(this.type);C.copyAttributes(D,{start:1,type:1});D.removeStyle("list-style-type");u[F].parent=D}}n=CKEDITOR.plugins.list.arrayToList(u,q,null,n.config.enterMode);q=void 0;u=n.listNode.getChildCount();for(g=0;g<u&&(q=n.listNode.getChild(g));g++)q.getName()==this.type&&m.push(q);n.listNode.replace(f.root)}else{u=a;n=q;g=B;z=n.contents;f=n.root.getDocument();m=[];if(z.length==1&&z[0].equals(n.root)){q=f.createElement("div");z[0].moveChildren&&z[0].moveChildren(q);
z[0].append(q);z[0]=q}n=n.contents[0].getParent();for(x=0;x<z.length;x++)n=n.getCommonAncestor(z[x].getParent());C=u.config.useComputedState;u=q=void 0;C=C===void 0||C;for(x=0;x<z.length;x++)for(D=z[x];F=D.getParent();){if(F.equals(n)){m.push(D);!u&&D.getDirection()&&(u=1);D=D.getDirection(C);q!==null&&(q=q&&q!=D?null:D);break}D=F}if(!(m.length<1)){z=m[m.length-1].getNext();x=f.createElement(this.type);g.push(x);for(C=g=void 0;m.length;){g=m.shift();C=f.createElement("li");if(g.is("pre")||o.test(g.getName()))g.appendTo(C);
else{g.copyAttributes(C);if(q&&g.getDirection()){C.removeStyle("direction");C.removeAttribute("dir")}g.moveChildren(C);g.remove()}C.appendTo(x)}q&&u&&x.setAttribute("dir",q);z?x.insertBefore(z):x.appendTo(n)}}else this.state==CKEDITOR.TRISTATE_ON&&i[q.root.getName()]&&b.call(this,a,q,j)}for(x=0;x<B.length;x++)c(B[x]);CKEDITOR.dom.element.clearAllMarkers(j);e.selectBookmarks(d);a.focus()},refresh:function(a,b){var c=b.contains(i,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 d("numberedlist","ol"));a.addCommand("bulletedlist",new d("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 c=b.data.keyCode;if(a.mode=="wysiwyg"&&c in{8:1,46:1}){var d=a.getSelection().getRanges()[0],g=d.startPath();if(d.collapsed){var g=new CKEDITOR.dom.elementPath(d.startContainer),j=c==8,m=a.editable(),o=new CKEDITOR.dom.walker(d.clone());o.evaluator=function(a){return l(a)&&!n(a)};o.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};c=d.clone();if(j){var w,q;if((w=g.contains(i))&&d.checkBoundaryOfElement(w,CKEDITOR.START)&&
(w=w.getParent())&&w.is("li")&&(w=h(w))){q=w;w=w.getPrevious(l);c.moveToPosition(w&&n(w)?w:q,CKEDITOR.POSITION_BEFORE_START)}else{o.range.setStartAt(m,CKEDITOR.POSITION_AFTER_START);o.range.setEnd(d.startContainer,d.startOffset);if((w=o.previous())&&w.type==CKEDITOR.NODE_ELEMENT&&(w.getName()in i||w.is("li"))){if(!w.is("li")){o.range.selectNodeContents(w);o.reset();o.evaluator=f;w=o.previous()}q=w;c.moveToElementEditEnd(q)}}if(q){e(a,c,d);b.cancel()}else if((c=g.contains(i))&&d.checkBoundaryOfElement(c,
CKEDITOR.START)){q=c.getFirst(l);if(d.checkBoundaryOfElement(q,CKEDITOR.START)){w=c.getPrevious(l);if(h(q)){if(w){d.moveToElementEditEnd(w);d.select()}}else a.execCommand("outdent");b.cancel()}}}else if(q=g.contains("li")){o.range.setEndAt(m,CKEDITOR.POSITION_BEFORE_END);m=(g=q.getLast(l))&&f(g)?g:q;q=0;if((w=o.next())&&w.type==CKEDITOR.NODE_ELEMENT&&w.getName()in i&&w.equals(g)){q=1;w=o.next()}else d.checkBoundaryOfElement(m,CKEDITOR.END)&&(q=1);if(q&&w){d=d.clone();d.moveToElementEditStart(w);e(a,
c,d);b.cancel()}}else{o.range.setEndAt(m,CKEDITOR.POSITION_BEFORE_END);if((w=o.next())&&w.type==CKEDITOR.NODE_ELEMENT&&w.is(i)){w=w.getFirst(l);if(g.block&&d.checkStartOfBlock()&&d.checkEndOfBlock()){g.block.remove();d.moveToElementEditStart(w);d.select()}else if(h(w)){d.moveToElementEditStart(w);d.select()}else{d=d.clone();d.moveToElementEditStart(w);e(a,c,d)}b.cancel()}}setTimeout(function(){a.selectionChange(1)})}}})}}})}(),function(){CKEDITOR.plugins.liststyle={requires:"dialog,contextmenu",init:function(b){if(!b.blockless){var d;
d=new CKEDITOR.dialogCommand("numberedListStyle",{requiredContent:"ol",allowedContent:"ol{list-style-type}[start]"});d=b.addCommand("numberedListStyle",d);b.addFeature(d);CKEDITOR.dialog.add("numberedListStyle",this.path+"dialogs/liststyle.js");d=new CKEDITOR.dialogCommand("bulletedListStyle",{requiredContent:"ul",allowedContent:"ul{list-style-type}"});d=b.addCommand("bulletedListStyle",d);b.addFeature(d);CKEDITOR.dialog.add("bulletedListStyle",this.path+"dialogs/liststyle.js");b.addMenuGroup("list",
108);b.addMenuItems({numberedlist:{label:b.lang.liststyle.numberedTitle,group:"list",command:"numberedListStyle"},bulletedlist:{label:b.lang.liststyle.bulletedTitle,group:"list",command:"bulletedListStyle"}});b.contextMenu.addListener(function(a){if(!a||a.isReadOnly())return null;for(;a;){var b=a.getName();if(b=="ol")return{numberedlist:CKEDITOR.TRISTATE_OFF};if(b=="ul")return{bulletedlist:CKEDITOR.TRISTATE_OFF};a=a.getParent()}return null})}}};CKEDITOR.plugins.add("liststyle",CKEDITOR.plugins.liststyle)}(),
"use strict",function(){function b(a,b,c){return j(b)&&j(c)&&c.equals(b.getNext(function(a){return!(T(a)||V(a)||l(a))}))}function d(a){this.upper=a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}function a(a){var b=a.element,c;return b&&j(b)?(c=b.getAscendant(a.triggers,true))&&!c.contains(a.editable)&&!c.equals(a.editable)?c:null:null}function c(a,b,c){r(a,b);r(a,c);a=b.size.bottom;c=c.size.top;return a&&c?0|(a+c)/2:a||c}function f(a,b,c){return b=b[c?"getPrevious":"getNext"](function(b){return b&&
b.type==CKEDITOR.NODE_TEXT&&!T(b)||j(b)&&!l(b)&&!g(a,b)})}function e(a){var b=a.doc,c=q('<span contenteditable="false" style="'+Q+"position:absolute;border-top:1px dashed "+a.boxColor+'"></span>',b),d=this.path+"images/"+(u.hidpi?"hidpi/":"")+"icon.png";v(c,{attach:function(){this.wrap.getParent()||this.wrap.appendTo(a.editable,true);return this},lineChildren:[v(q('<span title="'+a.editor.lang.magicline.title+'" contenteditable="false">&#8629;</span>',b),{base:Q+"height:17px;width:17px;"+(a.rtl?"left":
"right")+":17px;background:url("+d+") center no-repeat "+a.boxColor+";cursor:pointer;"+(u.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(u.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","2px",1),"top:-17px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","2px 2px 0px 0px",1),"top:-1px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","0px 0px 2px 2px",1)]}),v(q(O,b),{base:R+"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"]}),v(q(O,b),{base:R+"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(){r(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,h=e||f,g=h.getParent(),i={};this.trigger=d;e&&r(a,e,true);f&&r(a,f,true);r(a,g,true);a.inInlineMode&&t(a,true);if(g.equals(c)){i.left=b.scroll.x;i.right=-b.scroll.x;i.width=""}else{i.left=h.size.left-h.size.margin.left+b.scroll.x-(a.inInlineMode?b.editable.left+b.editable.border.left:0);i.width=h.size.outerWidth+h.size.margin.left+h.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(E)||i.top>b.scroll.y-15&&i.top<b.scroll.y+5){i.top=a.inInlineMode?0:b.scroll.y;this.look(E)}else if(d.is(K)||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(K)}else{if(a.inInlineMode)i.top=i.top-(b.editable.top+b.editable.border.top);this.look(I)}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 w("span",a.doc)});for(b=c.lineChildren.length;b--;)c.lineChildren[b].appendTo(c);c.look(I);c.appendTo(c.wrap);c.unselectable();c.lineChildren[0].on("mouseup",function(b){c.detach();h(a,function(b){var c=a.line.trigger;b[c.is(B)?"insertBefore":"insertAfter"](c.is(B)?c.lower:c.upper)},true);a.editor.focus();!u.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 h(a,b,c){var d=
new CKEDITOR.dom.range(a.doc),e=a.editor,f;if(u.ie&&a.enterMode==CKEDITOR.ENTER_BR)f=a.doc.createText(G);else{f=new w(a.enterBehavior,a.doc);a.enterMode!=CKEDITOR.ENTER_BR&&a.doc.createText(G).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 i(b,c){return{canUndo:true,modes:{wysiwyg:1},exec:function(){function d(a){var e=u.ie&&u.version<9?" ":G,f=b.hotNode&&b.hotNode.getText()==
e&&b.element.equals(b.hotNode)&&b.lastCmdDirection===!!c;h(b,function(d){f&&b.hotNode&&b.hotNode.remove();d[c?"insertAfter":"insertBefore"](a);d.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!c});b.lastCmdDirection=!!c});!u.ie&&b.enterMode!=CKEDITOR.ENTER_BR&&b.hotNode.scrollIntoView();b.line.detach()}return function(e){e=e.getSelection().getStartElement();if((e=e.getAscendant(P,1))&&!e.equals(b.editable)&&!e.contains(b.editable)){b.element=e;var h=f(b,e,!c),g;if(j(h)&&h.is(b.triggers)&&
h.is(J)&&(!f(b,h,!c)||(g=f(b,h,!c))&&j(g)&&g.is(b.triggers)))d(h);else{g=a(b,e);if(j(g))if(f(b,g,!c))(e=f(b,g,!c))&&(j(e)&&e.is(b.triggers))&&d(g);else d(g)}}}}()}}function g(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 j(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.$}function l(a){if(!j(a))return false;var b;if(!(b=n(a)))if(j(a)){b={left:1,right:1,center:1};b=!(!b[a.getComputedStyle("float")]&&!b[a.getAttribute("align")])}else b=
false;return b}function n(a){return!!{absolute:1,fixed:1,relative:1}[a.getComputedStyle("position")]}function o(a,b){return j(b)?b.is(a.triggers):null}function m(a,b,c){b=b[c?"getLast":"getFirst"](function(b){return a.isRelevant(b)&&!b.is(L)});if(!b)return false;r(a,b);return c?b.size.top>a.mouse.y:b.size.bottom<a.mouse.y}function k(a){var b=a.editable,c=a.mouse,e=a.view,f=a.triggerOffset;t(a);var h=c.y>(a.inInlineMode?e.editable.top+e.editable.height/2:Math.min(e.editable.height,e.pane.height)/2),
b=b[h?"getLast":"getFirst"](function(a){return!(T(a)||V(a))});if(!b)return null;g(a,b)&&(b=a.line.wrap[h?"getPrevious":"getNext"](function(a){return!(T(a)||V(a))}));if(!j(b)||l(b)||!o(a,b))return null;r(a,b);if(!h&&b.size.top>=0&&c.y>0&&c.y<b.size.top+f){a=a.inInlineMode||e.scroll.y===0?E:I;return new d([null,b,B,D,a])}if(h&&b.size.bottom<=e.pane.height&&c.y>b.size.bottom-f&&c.y<e.pane.height){a=a.inInlineMode||b.size.bottom>e.pane.height-f&&b.size.bottom<e.pane.height?K:I;return new d([b,null,x,
D,a])}return null}function p(b){var c=b.mouse,e=b.view,h=b.triggerOffset,g=a(b);if(!g)return null;r(b,g);var h=Math.min(h,0|g.size.outerHeight/2),i=[],k,p;if(c.y>g.size.top-1&&c.y<g.size.top+h)p=false;else if(c.y>g.size.bottom-h&&c.y<g.size.bottom+1)p=true;else return null;if(l(g)||m(b,g,p)||g.getParent().is(H))return null;var n=f(b,g,!p);if(n){if(n&&n.type==CKEDITOR.NODE_TEXT)return null;if(j(n)){if(l(n)||!o(b,n)||n.getParent().is(H))return null;i=[n,g][p?"reverse":"concat"]().concat([C,D])}}else{if(g.equals(b.editable[p?
"getLast":"getFirst"](b.isRelevant))){t(b);p&&c.y>g.size.bottom-h&&c.y<e.pane.height&&g.size.bottom>e.pane.height-h&&g.size.bottom<e.pane.height?k=K:c.y>0&&c.y<g.size.top+h&&(k=E)}else k=I;i=[null,g][p?"reverse":"concat"]().concat([p?x:B,D,k,g.equals(b.editable[p?"getLast":"getFirst"](b.isRelevant))?p?K:E:I])}return 0 in i?new d(i):null}function s(a,b,c,d){for(var e=function(){var c=u.ie?b.$.currentStyle:a.win.$.getComputedStyle(b.$,"");return u.ie?function(a){return c[CKEDITOR.tools.cssStyleToDomStyle(a)]}:
function(a){return c.getPropertyValue(a)}}(),f=b.getDocumentPosition(),h={},g={},i={},j={},k=S.length;k--;){h[S[k]]=parseInt(e("border-"+S[k]+"-width"),10)||0;i[S[k]]=parseInt(e("padding-"+S[k]),10)||0;g[S[k]]=parseInt(e("margin-"+S[k]),10)||0}(!c||d)&&y(a,d);j.top=f.y-(c?0:a.view.scroll.y);j.left=f.x-(c?0:a.view.scroll.x);j.outerWidth=b.$.offsetWidth;j.outerHeight=b.$.offsetHeight;j.height=j.outerHeight-(i.top+i.bottom+h.top+h.bottom);j.width=j.outerWidth-(i.left+i.right+h.left+h.right);j.bottom=
j.top+j.outerHeight;j.right=j.left+j.outerWidth;if(a.inInlineMode)j.scroll={top:b.$.scrollTop,left:b.$.scrollLeft};return v({border:h,padding:i,margin:g,ignoreScroll:c},j,true)}function r(a,b,c){if(!j(b))return b.size=null;if(b.size){if(b.size.ignoreScroll==c&&b.size.date>new Date-N)return null}else b.size={};return v(b.size,s(a,b,c),{date:+new Date},true)}function t(a,b){a.view.editable=s(a,a.editable,b,true)}function y(a,b){if(!a.view)a.view={};var c=a.view;if(b||!(c&&c.date>new Date-N)){var d=
a.win,c=d.getScrollPosition(),d=d.getViewPaneSize();v(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 A(a,b,c,e){for(var f=e,h=e,g=0,i=false,j=false,k=a.view.pane.height,m=a.mouse;m.y+g<k&&m.y-g>0;){i||(i=b(f,e));j||(j=b(h,e));!i&&m.y-g>0&&(f=c(a,{x:m.x,y:m.y-g}));!j&&m.y+g<k&&(h=c(a,{x:m.x,y:m.y+g}));if(i&&j)break;g=g+2}return new d([f,
h,null,null])}CKEDITOR.plugins.add("magicline",{init:function(b){var c={};c[CKEDITOR.ENTER_BR]="br";c[CKEDITOR.ENTER_P]="p";c[CKEDITOR.ENTER_DIV]="div";var m=b.config,r=m.magicline_triggerOffset||30,o=m.enterMode,q={editor:b,enterBehavior:c[o],enterMode:o,triggerOffset:r,holdDistance:0|r*(m.magicline_holdDistance||0.5),boxColor:m.magicline_color||"#ff0000",rtl:m.contentsLangDirection=="rtl",triggers:m.magicline_everywhere?P:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},w,A,x;q.isRelevant=
function(a){return j(a)&&!g(q,a)&&!l(a)};b.on("contentDom",function(){var c=b.editable(),j=b.document,l=b.window;v(q,{editable:c,inInlineMode:c.isInline(),doc:j,win:l},true);q.boundary=q.inInlineMode?q.editable:q.doc.getDocumentElement();if(!c.is(z.$inline)){q.inInlineMode&&!n(c)&&c.setStyles({position:"relative",top:null,left:null});e.call(this,q);y(q);c.attachListener(b,"beforeUndoImage",function(){q.line.detach()});c.attachListener(b,"beforeGetData",function(){if(q.line.wrap.getParent()){q.line.detach();
b.once("getData",function(){q.line.attach()},null,null,1E3)}},null,null,0);c.attachListener(q.inInlineMode?j:j.getWindow().getFrame(),"mouseout",function(a){if(b.mode=="wysiwyg")if(q.inInlineMode){var c=a.data.$.clientX,a=a.data.$.clientY;y(q);t(q,true);var d=q.view.editable,e=q.view.scroll;if(!(c>d.left-e.x&&c<d.right-e.x)||!(a>d.top-e.y&&a<d.bottom-e.y)){clearTimeout(x);x=null;q.line.detach()}}else{clearTimeout(x);x=null;q.line.detach()}});c.attachListener(c,"keyup",function(){q.hiddenMode=0});
c.attachListener(c,"keydown",function(a){if(b.mode=="wysiwyg"){a=a.data.getKeystroke();b.getSelection().getStartElement();switch(a){case 2228240:case 16:q.hiddenMode=1;q.line.detach()}}});c.attachListener(q.inInlineMode?c:j,"mousemove",function(a){A=true;if(!(b.mode!="wysiwyg"||b.readOnly||x)){var c={x:a.data.$.clientX,y:a.data.$.clientY};x=setTimeout(function(){q.mouse=c;x=q.trigger=null;y(q);if(A&&!q.hiddenMode&&b.focusManager.hasFocus&&!q.line.mouseNear()&&(q.element=U(q,true))){if(q.trigger=k(q)||
p(q)||W(q))q.line.attach().place();else{q.trigger=null;q.line.detach()}A=false}},30)}});c.attachListener(l,"scroll",function(){if(b.mode=="wysiwyg"){q.line.detach();if(u.webkit){q.hiddenMode=1;clearTimeout(w);w=setTimeout(function(){q.hiddenMode=0},50)}}});c.attachListener(l,"mousedown",function(){if(b.mode=="wysiwyg"){q.line.detach();q.hiddenMode=1}});c.attachListener(l,"mouseup",function(){q.hiddenMode=0});b.addCommand("accessPreviousSpace",i(q));b.addCommand("accessNextSpace",i(q,true));b.setKeystroke([[m.magicline_keystrokePrevious,
"accessPreviousSpace"],[m.magicline_keystrokeNext,"accessNextSpace"]]);b.on("loadSnapshot",function(){for(var a=b.document.getElementsByTag(q.enterBehavior),c,d=a.count();d--;)if((c=a.getItem(d)).hasAttribute("data-cke-magicline-hot")){q.hotNode=c;q.lastCmdDirection=c.getAttribute("data-cke-magicline-dir")==="true"?true:false;break}});this.backdoor={accessFocusSpace:h,boxTrigger:d,isLine:g,getAscendantTrigger:a,getNonEmptyNeighbour:f,getSize:s,that:q,triggerEdge:p,triggerEditable:k,triggerExpand:W}}},
this)}});var v=CKEDITOR.tools.extend,w=CKEDITOR.dom.element,q=w.createFromHtml,u=CKEDITOR.env,z=CKEDITOR.dtd,B=128,x=64,C=32,D=16,F=8,E=4,K=2,I=1,G=" ",H=z.$listItem,L=z.$tableContent,J=v({},z.$nonEditable,z.$empty),P=z.$block,N=100,Q="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",R=Q+"border-color:transparent;display:block;border-style:solid;",O="<span>"+G+"</span>";d.prototype={set:function(a,b,c){this.properties=
a+b+(c||I);return this},is:function(a){return(this.properties&a)==a}};var U=function(){return function(a,b,c){if(!a.mouse)return null;var d=a.doc,e=a.line.wrap,c=c||a.mouse,f=new CKEDITOR.dom.element(d.$.elementFromPoint(c.x,c.y));if(b&&g(a,f)){e.hide();f=new CKEDITOR.dom.element(d.$.elementFromPoint(c.x,c.y));e.show()}return!f||!(f.type==CKEDITOR.NODE_ELEMENT&&f.$)||u.ie&&u.version<9&&!a.boundary.equals(f)&&!a.boundary.contains(f)?null:f}}(),T=CKEDITOR.dom.walker.whitespaces(),V=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),
W=function(){function a(e){var f=e.element,h,g,i;if(!j(f)||f.contains(e.editable))return null;i=A(e,function(a,b){return!b.equals(a)},function(a,b){return U(a,true,b)},f);h=i.upper;g=i.lower;if(b(e,h,g))return i.set(C,F);if(h&&f.contains(h))for(;!h.getParent().equals(f);)h=h.getParent();else h=f.getFirst(function(a){return d(e,a)});if(g&&f.contains(g))for(;!g.getParent().equals(f);)g=g.getParent();else g=f.getLast(function(a){return d(e,a)});if(!h||!g)return null;r(e,h);r(e,g);if(!(e.mouse.y>h.size.top&&
e.mouse.y<g.size.bottom))return null;for(var f=Number.MAX_VALUE,k,m,l,p;g&&!g.equals(h);){if(!(m=h.getNext(e.isRelevant)))break;k=Math.abs(c(e,h,m)-e.mouse.y);if(k<f){f=k;l=h;p=m}h=m;r(e,h)}if(!l||!p||!(e.mouse.y>l.size.top&&e.mouse.y<p.size.bottom))return null;i.upper=l;i.lower=p;return i.set(C,F)}function d(a,b){return!(b&&b.type==CKEDITOR.NODE_TEXT||V(b)||l(b)||g(a,b)||b.type==CKEDITOR.NODE_ELEMENT&&b.$&&b.is("br"))}return function(c){var e=a(c),d;if(d=e){d=e.upper;var f=e.lower;d=!d||!f||l(f)||
l(d)||f.equals(d)||d.equals(f)||f.contains(d)||d.contains(f)?false:o(c,d)&&o(c,f)&&b(c,d,f)?true:false}return d?e:null}}(),S=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+219,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+221,function(){function b(a){if(!a||a.type!=CKEDITOR.NODE_ELEMENT||a.getName()!="form")return[];for(var b=[],c=["style","className"],d=0;d<c.length;d++){var f=a.$.elements.namedItem(c[d]);if(f){f=
new CKEDITOR.dom.element(f);b.push([f,f.nextSibling]);f.remove()}}return b}function d(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 d=b[c][0],f=b[c][1];f?d.insertBefore(f):d.appendTo(a)}}function a(a,c){var f=b(a),g={},j=a.$;if(!c){g["class"]=j.className||"";j.className=""}g.inline=j.style.cssText||"";if(!c)j.style.cssText="position: static; overflow: visible";d(f);return g}function c(a,c){var f=b(a),g=a.$;if("class"in c)g.className=
c["class"];if("inline"in c)g.style.cssText=c.inline;d(f)}function f(a){if(!a.editable().isInline()){var b=CKEDITOR.instances,c;for(c in b){var d=b[c];if(d.mode=="wysiwyg"&&!d.readOnly){d=d.document.getBody();d.setAttribute("contentEditable",false);d.setAttribute("contentEditable",true)}}if(a.editable().hasFocus){a.toolbox.focus();a.focus()}}}CKEDITOR.plugins.add("maximize",{init:function(b){function d(){var a=j.getViewPaneSize();b.resize(a.width,a.height,null,true)}if(b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var i=
b.lang,g=CKEDITOR.document,j=g.getWindow(),l,n,o,m=CKEDITOR.TRISTATE_OFF;b.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:false,exec:function(){var k=b.container.getChild(1),p=b.ui.space("contents");if(b.mode=="wysiwyg"){var s=b.getSelection();l=s&&s.getRanges();n=j.getScrollPosition()}else{var r=b.editable().$;l=!CKEDITOR.env.ie&&[r.selectionStart,r.selectionEnd];n=[r.scrollLeft,r.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){j.on("resize",
d);o=j.getScrollPosition();for(s=b.container;s=s.getParent();){s.setCustomData("maximize_saved_styles",a(s));s.setStyle("z-index",b.config.baseFloatZIndex-5)}p.setCustomData("maximize_saved_styles",a(p,true));k.setCustomData("maximize_saved_styles",a(k,true));p={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};g.getDocumentElement().setStyles(p);!CKEDITOR.env.gecko&&g.getDocumentElement().setStyle("position","fixed");(!CKEDITOR.env.gecko||!CKEDITOR.env.quirks)&&g.getBody().setStyles(p);
CKEDITOR.env.ie?setTimeout(function(){j.$.scrollTo(0,0)},0):j.$.scrollTo(0,0);k.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute");k.$.offsetLeft;k.setStyles({"z-index":b.config.baseFloatZIndex-5,left:"0px",top:"0px"});k.addClass("cke_maximized");d();p=k.getDocumentPosition();k.setStyles({left:-1*p.x+"px",top:-1*p.y+"px"});CKEDITOR.env.gecko&&f(b)}else if(this.state==CKEDITOR.TRISTATE_ON){j.removeListener("resize",d);p=[p,k];for(s=0;s<p.length;s++){c(p[s],p[s].getCustomData("maximize_saved_styles"));
p[s].removeCustomData("maximize_saved_styles")}for(s=b.container;s=s.getParent();){c(s,s.getCustomData("maximize_saved_styles"));s.removeCustomData("maximize_saved_styles")}CKEDITOR.env.ie?setTimeout(function(){j.$.scrollTo(o.x,o.y)},0):j.$.scrollTo(o.x,o.y);k.removeClass("cke_maximized");if(CKEDITOR.env.webkit){k.setStyle("display","inline");setTimeout(function(){k.setStyle("display","block")},0)}b.fire("resize")}this.toggleState();if(s=this.uiItems[0]){p=this.state==CKEDITOR.TRISTATE_OFF?i.maximize.maximize:
i.maximize.minimize;s=CKEDITOR.document.getById(s._.id);s.getChild(1).setHtml(p);s.setAttribute("title",p);s.setAttribute("href",'javascript:void("'+p+'");')}if(b.mode=="wysiwyg")if(l){CKEDITOR.env.gecko&&f(b);b.getSelection().selectRanges(l);(r=b.getSelection().getStartElement())&&r.scrollIntoView(true)}else j.$.scrollTo(n.x,n.y);else{if(l){r.selectionStart=l[0];r.selectionEnd=l[1]}r.scrollLeft=n[0];r.scrollTop=n[1]}l=n=null;m=this.state;b.fire("maximize",this.state)},canUndo:false});b.ui.addButton&&
b.ui.addButton("Maximize",{label:i.maximize.maximize,command:"maximize",toolbar:"tools,10"});b.on("mode",function(){var a=b.getCommand("maximize");a.setState(a.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:m)},null,null,100)}}})}(),CKEDITOR.plugins.add("newpage",{init:function(b){b.addCommand("newpage",{modes:{wysiwyg:1,source:1},exec:function(b){var a=this;b.setData(b.config.newpage_html||"",function(){b.focus();setTimeout(function(){b.fire("afterCommandExec",{name:"newpage",command:a});
b.selectionChange()},200)})},async:true});b.ui.addButton&&b.ui.addButton("NewPage",{label:b.lang.newpage.toolbar,command:"newpage",toolbar:"document,20"})}}),CKEDITOR.plugins.add("pagebreak",{requires:"fakeobjects",onLoad:function(){var b=["{","background: url("+CKEDITOR.getUrl(this.path+"images/pagebreak.gif")+") no-repeat center center;","clear: both;width:100%; _width:99.9%;border-top: #999999 1px dotted;border-bottom: #999999 1px dotted;padding:0;height: 5px;cursor: default;}"].join("").replace(/;/g,
" !important;");CKEDITOR.addCss("div.cke_pagebreak"+b)},init:function(b){if(!b.blockless){b.addCommand("pagebreak",CKEDITOR.plugins.pagebreakCmd);b.ui.addButton&&b.ui.addButton("PageBreak",{label:b.lang.pagebreak.toolbar,command:"pagebreak",toolbar:"insert,70"});CKEDITOR.env.opera&&b.on("contentDom",function(){b.document.on("click",function(d){d=d.data.getTarget();d.is("div")&&d.hasClass("cke_pagebreak")&&b.getSelection().selectElement(d)})})}},afterInit:function(b){var d=b.lang.pagebreak.alt,a=b.dataProcessor,
b=a&&a.dataFilter;(a=a&&a.htmlFilter)&&a.addRules({attributes:{"class":function(a,b){var d=a.replace("cke_pagebreak","");if(d!=a){var h=CKEDITOR.htmlParser.fragment.fromHtml('<span style="display: none;">&nbsp;</span>').children[0];b.children.length=0;b.add(h);h=b.attributes;delete h["aria-label"];delete h.contenteditable;delete h.title}return d}}},5);b&&b.addRules({elements:{div:function(a){var b=a.attributes,e=b&&b.style,h=e&&a.children.length==1&&a.children[0];if((h=h&&h.name=="span"&&h.attributes.style)&&
/page-break-after\s*:\s*always/i.test(e)&&/display\s*:\s*none/i.test(h)){b.contenteditable="false";b["class"]="cke_pagebreak";b["data-cke-display-name"]="pagebreak";b["aria-label"]=d;b.title=d;a.children.length=0}}}})}}),CKEDITOR.plugins.pagebreakCmd={exec:function(b){var d=b.lang.pagebreak.alt,d=CKEDITOR.dom.element.createFromHtml('<div style="page-break-after: always;"contenteditable="false" title="'+d+'" aria-label="'+d+'" data-cke-display-name="pagebreak" class="cke_pagebreak"></div>',b.document);
b.insertElement(d)},context:"div",allowedContent:{div:{styles:"!page-break-after"},span:{match:function(b){return(b=b.parent)&&b.name=="div"&&b.styles["page-break-after"]},styles:"display"}},requiredContent:"div{page-break-after}"},function(){function b(a,b,d){var e=CKEDITOR.cleanWord;if(e)d();else{a=CKEDITOR.getUrl(a.config.pasteFromWordCleanupFile||b+"filter/default.js");CKEDITOR.scriptLoader.load(a,d,null,true)}return!e}function d(a){a.data.type="html"}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",
init:function(a){var c=0,f=this.path;a.addCommand("pastefromword",{canUndo:false,async:true,exec:function(a){var b=this;c=1;a.once("beforePaste",d);a.getClipboardData({title:a.lang.pastefromword.title},function(c){c&&a.fire("paste",{type:"html",dataValue:c.dataValue});a.fire("afterCommandExec",{name:"pastefromword",command:b,returnValue:!!c})})}});a.ui.addButton&&a.ui.addButton("PasteFromWord",{label:a.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});a.on("pasteState",function(b){a.getCommand("pastefromword").setState(b.data)});
a.on("paste",function(d){var h=d.data,i=h.dataValue;if(i&&(c||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(i))){var g=b(a,f,function(){if(g)a.fire("paste",h);else if(!a.config.pasteFromWordPromptCleanup||c||confirm(a.lang.pastefromword.confirmCleanup))h.dataValue=CKEDITOR.cleanWord(i,a)});g&&d.cancel()}},null,null,3)}})}(),function(){var b={canUndo:false,async:true,exec:function(d){d.getClipboardData({title:d.lang.pastetext.title},function(a){a&&d.fire("paste",{type:"text",dataValue:a.dataValue});
d.fire("afterCommandExec",{name:"pastetext",command:b,returnValue:!!a})})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(d){d.addCommand("pastetext",b);d.ui.addButton&&d.ui.addButton("PasteText",{label:d.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(d.config.forcePasteAsPlainText)d.on("beforePaste",function(a){if(a.data.type!="html")a.data.type="text"});d.on("pasteState",function(a){d.getCommand("pastetext").setState(a.data)})}})}(),function(){var b,
d={modes:{wysiwyg:1,source:1},canUndo:false,readOnly:1,exec:function(a){var c,d=a.config,e=d.baseHref?'<base href="'+d.baseHref+'"/>':"";if(d.fullPage)c=a.getData().replace(/<head>/,"$&"+e).replace(/[^>]*(?=<\/title>)/,"$& &mdash; "+a.lang.preview.preview);else{var d="<body ",h=a.document&&a.document.getBody();if(h){h.getAttribute("id")&&(d=d+('id="'+h.getAttribute("id")+'" '));h.getAttribute("class")&&(d=d+('class="'+h.getAttribute("class")+'" '))}c=a.config.docType+'<html dir="'+a.config.contentsLangDirection+
'"><head>'+e+"<title>"+a.lang.preview.preview+"</title>"+CKEDITOR.tools.buildStyleHtml(a.config.contentsCss)+"</head>"+(d+">")+a.getData()+"</body></html>"}e=640;d=420;h=80;try{var i=window.screen,e=Math.round(i.width*0.8),d=Math.round(i.height*0.7),h=Math.round(i.width*0.1)}catch(g){}if(!a.fire("contentPreview",a={dataValue:c}))return false;i="";if(CKEDITOR.env.ie){window._cke_htmlToLoad=a.dataValue;i="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;})() )"}if(CKEDITOR.env.gecko){window._cke_htmlToLoad=a.dataValue;i=b+"preview.html"}i=window.open(i,null,"toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+e+",height="+d+",left="+h);if(!CKEDITOR.env.ie&&!CKEDITOR.env.gecko){var j=i.document;j.open();j.write(a.dataValue);j.close();CKEDITOR.env.webkit&&setTimeout(function(){j.body.innerHTML=
j.body.innerHTML+""},0)}return true}};CKEDITOR.plugins.add("preview",{init:function(a){if(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){b=this.path;a.addCommand("preview",d);a.ui.addButton&&a.ui.addButton("Preview",{label:a.lang.preview.preview,command:"preview",toolbar:"document,40"})}}})}(),CKEDITOR.plugins.add("print",{init:function(b){if(b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){b.addCommand("print",CKEDITOR.plugins.print);b.ui.addButton&&b.ui.addButton("Print",{label:b.lang.print.toolbar,command:"print",
toolbar:"document,50"})}}}),CKEDITOR.plugins.print={exec:function(b){CKEDITOR.env.opera||(CKEDITOR.env.gecko?b.window.$.print():b.document.$.execCommand("Print"))},canUndo:!1,readOnly:1,modes:{wysiwyg:!CKEDITOR.env.opera}},CKEDITOR.plugins.add("removeformat",{init:function(b){b.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);b.ui.addButton&&b.ui.addButton("RemoveFormat",{label:b.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat=
{commands:{removeformat:{exec:function(b){for(var d=b._.removeFormatRegex||(b._.removeFormatRegex=RegExp("^(?:"+b.config.removeFormatTags.replace(/,/g,"|")+")$","i")),a=b._.removeAttributes||(b._.removeAttributes=b.config.removeFormatAttributes.split(",")),c=CKEDITOR.plugins.removeformat.filter,f=b.getSelection().getRanges(1),e=f.createIterator(),h;h=e.getNextRange();){h.collapsed||h.enlarge(CKEDITOR.ENLARGE_ELEMENT);var i=h.createBookmark(),g=i.startNode,j=i.endNode,l=function(a){for(var e=b.elementPath(a),
f=e.elements,h=1,g;g=f[h];h++){if(g.equals(e.block)||g.equals(e.blockLimit))break;d.test(g.getName())&&c(b,g)&&a.breakParent(g)}};l(g);if(j){l(j);for(g=g.getNextSourceNode(true,CKEDITOR.NODE_ELEMENT);g;){if(g.equals(j))break;l=g.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT);if(!(g.getName()=="img"&&g.data("cke-realelement"))&&c(b,g))if(d.test(g.getName()))g.remove(1);else{g.removeAttributes(a);b.fire("removeFormatCleanup",g)}g=l}}h.moveToBookmark(i)}b.forceNextSelectionCheck();b.getSelection().selectRanges(f)}}},
filter:function(b,d){for(var a=b._.removeFormatFilters||[],c=0;c<a.length;c++)if(a[c](d)===false)return false;return true}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(b){if(!this._.removeFormatFilters)this._.removeFormatFilters=[];this._.removeFormatFilters.push(b)},CKEDITOR.config.removeFormatTags="b,big,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(b){var d,a,c,f,e=b.config,h=b.ui.spaceId("resizer"),i=b.element?b.element.getDirection(1):"ltr";!e.resize_dir&&(e.resize_dir="vertical");e.resize_maxWidth==void 0&&(e.resize_maxWidth=3E3);e.resize_maxHeight==void 0&&(e.resize_maxHeight=3E3);e.resize_minWidth==void 0&&(e.resize_minWidth=750);e.resize_minHeight==void 0&&(e.resize_minHeight=250);if(e.resize_enabled!==false){var g=null,j=(e.resize_dir=="both"||e.resize_dir=="horizontal")&&e.resize_minWidth!=e.resize_maxWidth,l=(e.resize_dir==
"both"||e.resize_dir=="vertical")&&e.resize_minHeight!=e.resize_maxHeight,n=function(h){var g=d,m=a,n=g+(h.data.$.screenX-c)*(i=="rtl"?-1:1),h=m+(h.data.$.screenY-f);j&&(g=Math.max(e.resize_minWidth,Math.min(n,e.resize_maxWidth)));l&&(m=Math.max(e.resize_minHeight,Math.min(h,e.resize_maxHeight)));b.resize(j?g:null,m)},o=function(){CKEDITOR.document.removeListener("mousemove",n);CKEDITOR.document.removeListener("mouseup",o);if(b.document){b.document.removeListener("mousemove",n);b.document.removeListener("mouseup",
o)}},m=CKEDITOR.tools.addFunction(function(h){g||(g=b.getResizable());d=g.$.offsetWidth||0;a=g.$.offsetHeight||0;c=h.screenX;f=h.screenY;e.resize_minWidth>d&&(e.resize_minWidth=d);e.resize_minHeight>a&&(e.resize_minHeight=a);CKEDITOR.document.on("mousemove",n);CKEDITOR.document.on("mouseup",o);if(b.document){b.document.on("mousemove",n);b.document.on("mouseup",o)}h.preventDefault&&h.preventDefault()});b.on("destroy",function(){CKEDITOR.tools.removeFunction(m)});b.on("uiSpace",function(a){if(a.data.space==
"bottom"){var c="";j&&!l&&(c=" cke_resizer_horizontal");!j&&l&&(c=" cke_resizer_vertical");var d='<span id="'+h+'" class="cke_resizer'+c+" cke_resizer_"+i+'" title="'+CKEDITOR.tools.htmlEncode(b.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+m+', event)">'+(i=="ltr"?"◢":"◣")+"</span>";i=="ltr"&&c=="ltr"?a.data.html=a.data.html+d:a.data.html=d+a.data.html}},b,null,100);b.on("maximize",function(a){b.ui.space("resizer")[a.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}}),function(){var b=
{readOnly:1,exec:function(b){if(b.fire("save"))if(b=b.element.$.form)try{b.submit()}catch(a){b.submit.click&&b.submit.click()}}};CKEDITOR.plugins.add("save",{init:function(d){if(d.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE){d.addCommand("save",b).modes={wysiwyg:!!d.element.$.form};d.ui.addButton&&d.ui.addButton("Save",{label:d.lang.save.toolbar,command:"save",toolbar:"document,10"})}}})}(),function(){CKEDITOR.plugins.add("selectall",{init:function(b){b.addCommand("selectAll",{modes:{wysiwyg:1,source:1},
exec:function(b){var a=b.editable();if(a.is("textarea")){b=a.$;if(CKEDITOR.env.ie)b.createTextRange().execCommand("SelectAll");else{b.selectionStart=0;b.selectionEnd=b.value.length}b.focus()}else{if(a.is("body"))b.document.$.execCommand("SelectAll",false,null);else{var c=b.createRange();c.selectNodeContents(a);c.select()}b.forceNextSelectionCheck();b.selectionChange()}},canUndo:false});b.ui.addButton&&b.ui.addButton("SelectAll",{label:b.lang.selectall.toolbar,command:"selectAll",toolbar:"selection,10"})}})}(),
function(){var b={readOnly:1,preserveState:true,editorFocus:false,exec:function(b){this.toggleState();this.refresh(b)},refresh:function(b){if(b.document){var a=this.state==CKEDITOR.TRISTATE_ON&&(b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE||b.focusManager.hasFocus)?"attachClass":"removeClass";b.editable()[a]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",{onLoad:function(){function b(a){return".%1.%2 p,.%1.%2 div,.%1.%2 pre,.%1.%2 address,.%1.%2 blockquote,.%1.%2 h1,.%1.%2 h2,.%1.%2 h3,.%1.%2 h4,.%1.%2 h5,.%1.%2 h6{background-position: top %3;padding-%3: 8px;}".replace(/%1/g,
"cke_show_blocks").replace(/%2/g,"cke_contents_"+a).replace(/%3/g,a=="rtl"?"right":"left")}CKEDITOR.addCss(".%2 p,.%2 div,.%2 pre,.%2 address,.%2 blockquote,.%2 h1,.%2 h2,.%2 h3,.%2 h4,.%2 h5,.%2 h6{background-repeat: no-repeat;border: 1px dotted gray;padding-top: 8px;}.%2 p{%1p.png);}.%2 div{%1div.png);}.%2 pre{%1pre.png);}.%2 address{%1address.png);}.%2 blockquote{%1blockquote.png);}.%2 h1{%1h1.png);}.%2 h2{%1h2.png);}.%2 h3{%1h3.png);}.%2 h4{%1h4.png);}.%2 h5{%1h5.png);}.%2 h6{%1h6.png);}".replace(/%1/g,
"background-image: url("+CKEDITOR.getUrl(this.path)+"images/block_").replace(/%2/g,"cke_show_blocks ")+b("ltr")+b("rtl"))},init:function(d){if(!d.blockless){var a=d.addCommand("showblocks",b);a.canUndo=false;d.config.startupOutlineBlocks&&a.setState(CKEDITOR.TRISTATE_ON);d.ui.addButton&&d.ui.addButton("ShowBlocks",{label:d.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"});d.on("mode",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(d)});if(d.elementMode==CKEDITOR.ELEMENT_MODE_INLINE){var c=
function(){a.refresh(d)};d.on("focus",c);d.on("blur",c)}d.on("contentDom",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(d)})}}})}(),function(){var b={preserveState:true,editorFocus:false,readOnly:1,exec:function(b){this.toggleState();this.refresh(b)},refresh:function(b){if(b.document){var a=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";b.editable()[a]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var b;b=(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(b)},init:function(d){var a=
d.addCommand("showborders",b);a.canUndo=false;d.config.startupShowBorders!==false&&a.setState(CKEDITOR.TRISTATE_ON);d.on("mode",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(d)},null,null,100);d.on("contentDom",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(d)});d.on("removeFormatCleanup",function(a){a=a.data;d.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(b){var a=b.dataProcessor,b=a&&a.dataFilter,a=a&&a.htmlFilter;b&&b.addRules({elements:{table:function(a){var a=a.attributes,b=a["class"],d=parseInt(a.border,10);if((!d||d<=0)&&(!b||b.indexOf("cke_show_border")==-1))a["class"]=(b||"")+" cke_show_border"}}});a&&a.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(b){var a=b.data.name;
if(a=="table"||a=="tableProperties"){b=b.data.definition;a=b.getContents("info").get("txtBorder");a.commit=CKEDITOR.tools.override(a.commit,function(a){return function(b,d){a.apply(this,arguments);var h=parseInt(this.getValue(),10);d[!h||h<=0?"addClass":"removeClass"]("cke_show_border")}});if(b=(b=b.getContents("advanced"))&&b.get("advCSSClasses")){b.setup=CKEDITOR.tools.override(b.setup,function(a){return function(){a.apply(this,arguments);this.setValue(this.getValue().replace(/cke_show_border/,
""))}});b.commit=CKEDITOR.tools.override(b.commit,function(a){return function(b,d){a.apply(this,arguments);parseInt(d.getAttribute("border"),10)||d.addClass("cke_show_border")}})}}})}(),CKEDITOR.plugins.add("smiley",{requires:"dialog",init:function(b){b.config.smiley_path=b.config.smiley_path||this.path+"images/";b.addCommand("smiley",new CKEDITOR.dialogCommand("smiley",{allowedContent:"img[alt,height,!src,title,width]",requiredContent:"img"}));b.ui.addButton&&b.ui.addButton("Smiley",{label:b.lang.smiley.toolbar,
command:"smiley",toolbar:"insert,50"});CKEDITOR.dialog.add("smiley",this.path+"dialogs/smiley.js")}}),CKEDITOR.config.smiley_images="regular_smile.gif sad_smile.gif wink_smile.gif teeth_smile.gif confused_smile.gif tongue_smile.gif embarrassed_smile.gif omg_smile.gif whatchutalkingabout_smile.gif angry_smile.gif angel_smile.gif shades_smile.gif devil_smile.gif cry_smile.gif lightbulb.gif thumbs_down.gif thumbs_up.gif heart.gif broken_heart.gif kiss.gif envelope.gif".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(d){function a(){this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+"px");this.show()}if(d.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var c=CKEDITOR.plugins.sourcearea;d.addMode("source",function(c){var e=d.ui.space("contents").getDocument().createElement("textarea");
e.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",d.config.sourceAreaTabSize||4)));e.setAttribute("dir","ltr");e.addClass("cke_source cke_reset cke_enable_context_menu");d.ui.space("contents").append(e);e=d.editable(new b(d,e));e.setData(d.getData(1));if(CKEDITOR.env.ie){e.attachListener(d,"resize",a,e);e.attachListener(CKEDITOR.document.getWindow(),"resize",a,e);CKEDITOR.tools.setTimeout(a,
0,e)}d.fire("ariaWidget",this);c()});d.addCommand("source",c.commands.source);d.ui.addButton&&d.ui.addButton("Source",{label:d.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});d.on("mode",function(){d.getCommand("source").setState(d.mode=="source"?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)})}}});var b=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(b){this.setValue(b);this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},
insertElement:function(){},insertText:function(){},setReadOnly:function(b){this[(b?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){b.baseProto.detach.call(this);this.clearCustomData();this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(b){b.mode=="wysiwyg"&&b.fire("saveSnapshot");b.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);b.setMode(b.mode=="source"?"wysiwyg":"source")},canUndo:!1}}},
CKEDITOR.plugins.add("specialchar",{availableLangs:{ar:1,bg:1,ca:1,cs:1,cy:1,de:1,el:1,en: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,ku: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,ug:1,uk:1,vi:1,"zh-cn":1},requires:"dialog",init:function(b){var d=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");b.addCommand("specialchar",{exec:function(){var a=b.langCode,a=d.availableLangs[a]?a:d.availableLangs[a.replace(/-.*/,
"")]?a.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(d.path+"dialogs/lang/"+a+".js"),function(){CKEDITOR.tools.extend(b.lang.specialchar,d.langEntries[a]);b.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:false});b.ui.addButton&&b.ui.addButton("SpecialChar",{label:b.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(b){var d=b.config,a=b.lang.stylescombo,c={},f=[],e=[];b.on("stylesSet",function(a){if(a=a.data.styles){for(var i,g,j=0,l=a.length;j<l;j++){i=a[j];if(!(b.blockless&&i.element in CKEDITOR.dtd.$block)){g=i.name;i=new CKEDITOR.style(i);if(!b.filter.customConfig||b.filter.check(i)){i._name=g;i._.enterMode=d.enterMode;i._.weight=j+(i.type==CKEDITOR.STYLE_OBJECT?1:i.type==CKEDITOR.STYLE_BLOCK?2:3)*1E3;c[g]=i;f.push(i);e.push(i)}}}f.sort(function(a,
b){return a._.weight-b._.weight})}});b.ui.addRichCombo("Styles",{label:a.label,title:a.panelTitle,toolbar:"styles,10",allowedContent:e,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(d.contentsCss),multiSelect:true,attributes:{"aria-label":a.panelTitle}},init:function(){var b,c,d,e,l,n;l=0;for(n=f.length;l<n;l++){b=f[l];c=b._name;e=b.type;if(e!=d){this.startGroup(a["panelTitle"+e]);d=e}this.add(c,b.type==CKEDITOR.STYLE_OBJECT?c:b.buildPreview(),c)}this.commit()},onClick:function(a){b.focus();
b.fire("saveSnapshot");var a=c[a],d=b.elementPath();b[a.checkActive(d)?"removeStyle":"applyStyle"](a);b.fire("saveSnapshot")},onRender:function(){b.on("selectionChange",function(a){for(var b=this.getValue(),a=a.data.path.elements,d=0,e=a.length,f;d<e;d++){f=a[d];for(var n in c)if(c[n].checkElementRemovable(f,true)){n!=b&&this.setValue(n);return}}this.setValue("")},this)},onOpen:function(){var d=b.getSelection().getSelectedElement(),d=b.elementPath(d),e=[0,0,0,0];this.showAll();this.unmarkAll();for(var f in c){var j=
c[f],l=j.type;if(l==CKEDITOR.STYLE_BLOCK&&!d.isContextFor(j.element))this.hideItem(f);else{if(j.checkActive(d))this.mark(f);else if(l==CKEDITOR.STYLE_OBJECT&&!j.checkApplicable(d)){this.hideItem(f);e[l]--}e[l]++}}e[CKEDITOR.STYLE_BLOCK]||this.hideGroup(a["panelTitle"+CKEDITOR.STYLE_BLOCK]);e[CKEDITOR.STYLE_INLINE]||this.hideGroup(a["panelTitle"+CKEDITOR.STYLE_INLINE]);e[CKEDITOR.STYLE_OBJECT]||this.hideGroup(a["panelTitle"+CKEDITOR.STYLE_OBJECT])},reset:function(){c={};f=[]}})}})}(),function(){function b(a){return{editorFocus:false,
canUndo:false,modes:{wysiwyg:1},exec:function(b){if(b.editable().hasFocus){var c=b.getSelection(),d;if(d=(new CKEDITOR.dom.elementPath(c.getCommonAncestor(),c.root)).contains({td:1,th:1},1)){var c=b.createRange(),g=CKEDITOR.tools.tryThese(function(){var b=d.getParent().$.cells[d.$.cellIndex+(a?-1:1)];b.parentNode.parentNode;return b},function(){var b=d.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 j=d.getAscendant("table").$,
g=d.getParent().$.cells,j=new CKEDITOR.dom.element(j.insertRow(-1),b.document),l=0,n=g.length;l<n;l++){var o=j.append((new CKEDITOR.dom.element(g[l],b.document)).clone(false,false));!CKEDITOR.env.ie&&o.appendBogus()}c.moveToElementEditStart(j)}else if(g){g=new CKEDITOR.dom.element(g);c.moveToElementEditStart(g);(!c.checkStartOfBlock()||!c.checkEndOfBlock())&&c.selectNodeContents(g)}else return true;c.select(true);return true}}return false}}}var d={editorFocus:false,modes:{wysiwyg:1,source:1}},a={exec:function(a){a.container.focusNext(true,
a.tabIndex)}},c={exec:function(a){a.container.focusPrevious(true,a.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(f){for(var e=f.config.enableTabKeyTools!==false,h=f.config.tabSpaces||0,i="";h--;)i=i+" ";if(i)f.on("key",function(a){if(a.data.keyCode==9){f.insertHtml(i);a.cancel()}});if(e)f.on("key",function(a){(a.data.keyCode==9&&f.execCommand("selectNextCell")||a.data.keyCode==CKEDITOR.SHIFT+9&&f.execCommand("selectPreviousCell"))&&a.cancel()});f.addCommand("blur",CKEDITOR.tools.extend(a,
d));f.addCommand("blurBack",CKEDITOR.tools.extend(c,d));f.addCommand("selectNextCell",b());f.addCommand("selectPreviousCell",b(true))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(b,d){var a=d===void 0?this.getTabIndex():d,c,f,e,h,i,g;if(a<=0)for(i=this.getNextSourceNode(b,CKEDITOR.NODE_ELEMENT);i;){if(i.isVisible()&&i.getTabIndex()===0){e=i;break}i=i.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT)}else for(i=this.getDocument().getBody().getFirst();i=i.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT);){if(!c)if(!f&&
i.equals(this)){f=true;if(b){if(!(i=i.getNextSourceNode(true,CKEDITOR.NODE_ELEMENT)))break;c=1}}else f&&!this.contains(i)&&(c=1);if(i.isVisible()&&!((g=i.getTabIndex())<0)){if(c&&g==a){e=i;break}if(g>a&&(!e||!h||g<h)){e=i;h=g}else if(!e&&g===0){e=i;h=g}}}e&&e.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(b,d){for(var a=d===void 0?this.getTabIndex():d,c,f,e,h=0,i,g=this.getDocument().getBody().getLast();g=g.getPreviousSourceNode(false,CKEDITOR.NODE_ELEMENT);){if(!c)if(!f&&g.equals(this)){f=
true;if(b){if(!(g=g.getPreviousSourceNode(true,CKEDITOR.NODE_ELEMENT)))break;c=1}}else f&&!this.contains(g)&&(c=1);if(g.isVisible()&&!((i=g.getTabIndex())<0))if(a<=0){if(c&&i===0){e=g;break}if(i>h){e=g;h=i}}else{if(c&&i==a){e=g;break}if(i<a&&(!e||i>h)){e=g;h=i}}}e&&e.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(b){function d(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(!b.blockless){var a=b.lang.table;b.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];"+(b.plugins.dialogadvtab?"table"+b.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"]]}));b.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",
d()));b.addCommand("tableDelete",d({exec:function(a){var b=a.elementPath().contains("table",1);if(b){var d=b.getParent();d.getChildCount()==1&&!d.is("body","td","th")&&(b=d);a=a.createRange();a.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START);b.remove();a.select()}}}));b.ui.addButton&&b.ui.addButton("Table",{label:a.toolbar,command:"table",toolbar:"insert,30"});CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");b.addMenuItems&&
b.addMenuItems({table:{label:a.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:a.deleteTable,command:"tableDelete",group:"table",order:1}});b.on("doubleclick",function(a){if(a.data.element.is("table"))a.data.dialog="tableProperties"});b.contextMenu&&b.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function b(a){function b(a){if(!(c.length>0)&&a.type==CKEDITOR.NODE_ELEMENT&&o.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 d(a,c){for(var d=b(a),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");!CKEDITOR.env.ie&&
j.appendBogus();e.append(j);j=j.$}i=i+(j.colSpan-1)}c?e.insertBefore(g):e.insertAfter(g)}function a(c){if(c instanceof CKEDITOR.dom.selection){for(var d=b(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]),l=0;l<i.length;l++){var n=new CKEDITOR.dom.element(i[l]),o=n.getParent().$.rowIndex;if(n.$.rowSpan==1)n.remove();else{n.$.rowSpan=
n.$.rowSpan-1;if(o==h){o=f[h+1];o[l-1]?n.insertAfter(new CKEDITOR.dom.element(o[l-1])):(new CKEDITOR.dom.element(e.$.rows[h+1])).append(n,1)}}l=l+(n.$.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--)a(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 c(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 f(a,d){for(var e=b(a),f=e[0].getAscendant("table"),g=c(e,1),e=c(e),g=d?g:e,h=CKEDITOR.tools.buildTableMap(f),f=[],e=[],i=h.length,j=0;j<i;j++){f.push(h[j][g]);e.push(d?h[j][g-1]:h[j][g+1])}for(j=0;j<i;j++)if(f[j]){if(f[j].colSpan>1&&e[j]==f[j]){g=f[j];g.colSpan=g.colSpan+1}else{g=(new CKEDITOR.dom.element(f[j])).clone();g.removeAttribute("colSpan");!CKEDITOR.env.ie&&g.appendBogus();g[d?
"insertBefore":"insertAfter"].call(g,new CKEDITOR.dom.element(f[j]));g=g.$}j=j+(g.rowSpan-1)}}function e(a,b){var c=a.getStartElement();if(c=c.getAscendant("td",1)||c.getAscendant("th",1)){var d=c.clone();CKEDITOR.env.ie||d.appendBogus();b?d.insertBefore(c):d.insertAfter(c)}}function h(a){if(a instanceof CKEDITOR.dom.selection){var a=b(a),c=a[0]&&a[0].getAscendant("table"),d;a:{var e=0;d=a.length-1;for(var f={},g,j;g=a[e++];)CKEDITOR.dom.element.setMarker(f,g,"delete_cell",true);for(e=0;g=a[e++];)if((j=
g.getPrevious())&&!j.getCustomData("delete_cell")||(j=g.getNext())&&!j.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(f);d=j;break a}CKEDITOR.dom.element.clearAllMarkers(f);j=a[0].getParent();if(j=j.getPrevious())d=j.getLast();else{j=a[d].getParent();d=(j=j.getNext())?j.getChild(0):null}}for(j=a.length-1;j>=0;j--)h(a[j]);d?i(d,true):c&&c.remove()}else if(a instanceof CKEDITOR.dom.element){c=a.getParent();c.getChildCount()==1?c.remove():a.remove()}}function i(a,b){var c=new CKEDITOR.dom.range(a.getDocument());
if(!c["moveToElementEdit"+(b?"End":"Start")](a)){c.selectNodeContents(a);c.collapse(b?false:true)}c.select(true)}function g(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 j(a,c,d){var e=b(a),f;if((c?e.length!=1:e.length<2)||(f=a.getCommonAncestor())&&f.type==CKEDITOR.NODE_ELEMENT&&f.is("table"))return false;var h,a=e[0];f=a.getAscendant("table");var i=CKEDITOR.tools.buildTableMap(f),
j=i.length,l=i[0].length,n=a.getParent().$.rowIndex,o=g(i,n,a);if(c){var u;try{var z=parseInt(a.getAttribute("rowspan"),10)||1;h=parseInt(a.getAttribute("colspan"),10)||1;u=i[c=="up"?n-z:c=="down"?n+z:n][c=="left"?o-h:c=="right"?o+h:o]}catch(B){return false}if(!u||a.$==u)return false;e[c=="up"||c=="left"?"unshift":"push"](new CKEDITOR.dom.element(u))}for(var c=a.getDocument(),x=n,z=u=0,C=!d&&new CKEDITOR.dom.documentFragment(c),D=0,c=0;c<e.length;c++){h=e[c];var F=h.getParent(),E=h.getFirst(),K=h.$.colSpan,
I=h.$.rowSpan,F=F.$.rowIndex,G=g(i,F,h),D=D+K*I,z=Math.max(z,G-o+K);u=Math.max(u,F-n+I);if(!d){K=h;(I=K.getBogus())&&I.remove();K.trim();if(h.getChildren().count()){if(F!=x&&E&&(!E.isBlockBoundary||!E.isBlockBoundary({br:1})))(x=C.getLast(CKEDITOR.dom.walker.whitespaces(true)))&&(!x.is||!x.is("br"))&&C.append("br");h.moveChildren(C)}c?h.remove():h.setHtml("")}x=F}if(d)return u*z==D;C.moveChildren(a);CKEDITOR.env.ie||a.appendBogus();z>=l?a.removeAttribute("rowSpan"):a.$.rowSpan=u;u>=j?a.removeAttribute("colSpan"):
a.$.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 a}function l(a,c){var d=b(a);if(d.length>1)return false;if(c)return true;var d=d[0],e=d.getParent(),f=e.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(f),i=e.$.rowIndex,j=g(h,i,d),l=d.$.rowSpan,n;if(l>1){n=Math.ceil(l/2);for(var l=Math.floor(l/2),e=i+n,f=new CKEDITOR.dom.element(f.$.rows[e]),h=g(h,e),o,e=d.clone(),i=0;i<h.length;i++){o=h[i];if(o.parentNode==
f.$&&i>j){e.insertBefore(new CKEDITOR.dom.element(o));break}else o=null}o||f.append(e,true)}else{l=n=1;f=e.clone();f.insertAfter(e);f.append(e=d.clone());o=g(h,i);for(j=0;j<o.length;j++)o[j].rowSpan++}CKEDITOR.env.ie||e.appendBogus();d.$.rowSpan=n;e.$.rowSpan=l;n==1&&d.removeAttribute("rowSpan");l==1&&e.removeAttribute("rowSpan");return e}function n(a,c){var d=b(a);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),h=
g(f,e.$.rowIndex,d),i=d.$.colSpan;if(i>1){e=Math.ceil(i/2);i=Math.floor(i/2)}else{for(var i=e=1,j=[],l=0;l<f.length;l++){var n=f[l];j.push(n[h]);n[h].rowSpan>1&&(l=l+(n[h].rowSpan-1))}for(f=0;f<j.length;f++)j[f].colSpan++}f=d.clone();f.insertAfter(d);CKEDITOR.env.ie||f.appendBogus();d.$.colSpan=e;f.$.colSpan=i;e==1&&d.removeAttribute("colSpan");i==1&&f.removeAttribute("colSpan");return f}var o=/^(?:td|th)$/;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(c){function g(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 o(a,b){var d=c.addCommand(a,b);c.addFeature(d)}var s=c.lang.table;o("cellProperties",new CKEDITOR.dialogCommand("cellProperties",g({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");o("rowDelete",
g({requiredContent:"table",exec:function(b){b=b.getSelection();i(a(b))}}));o("rowInsertBefore",g({requiredContent:"table",exec:function(a){a=a.getSelection();d(a,true)}}));o("rowInsertAfter",g({requiredContent:"table",exec:function(a){a=a.getSelection();d(a)}}));o("columnDelete",g({requiredContent:"table",exec:function(a){for(var a=a.getSelection(),a=b(a),c=a[0],d=a[a.length-1],a=c.getAscendant("table"),e=CKEDITOR.tools.buildTableMap(a),f,g,h=[],j=0,k=e.length;j<k;j++)for(var l=0,m=e[j].length;l<
m;l++){e[j][l]==c.$&&(f=l);e[j][l]==d.$&&(g=l)}for(j=f;j<=g;j++)for(l=0;l<e.length;l++){d=e[l];c=new CKEDITOR.dom.element(a.$.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||h.push(c)}}g=a.$.rows[0]&&a.$.rows[0].cells;f=new CKEDITOR.dom.element(g[f]||(f?g[f-1]:a.$.parentNode));h.length==k&&a.remove();f&&i(f,true)}}));o("columnInsertBefore",g({requiredContent:"table",exec:function(a){a=a.getSelection();f(a,
true)}}));o("columnInsertAfter",g({requiredContent:"table",exec:function(a){a=a.getSelection();f(a)}}));o("cellDelete",g({requiredContent:"table",exec:function(a){a=a.getSelection();h(a)}}));o("cellMerge",g({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(a){i(j(a.getSelection()),true)}}));o("cellMergeRight",g({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){i(j(a.getSelection(),"right"),true)}}));o("cellMergeDown",g({allowedContent:"td[rowspan]",
requiredContent:"td[rowspan]",exec:function(a){i(j(a.getSelection(),"down"),true)}}));o("cellVerticalSplit",g({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){i(l(a.getSelection()))}}));o("cellHorizontalSplit",g({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){i(n(a.getSelection()))}}));o("cellInsertBefore",g({requiredContent:"table",exec:function(a){a=a.getSelection();e(a,true)}}));o("cellInsertAfter",g({requiredContent:"table",exec:function(a){a=
a.getSelection();e(a)}}));c.addMenuItems&&c.addMenuItems({tablecell:{label:s.cell.menu,group:"tablecell",order:1,getItems:function(){var a=c.getSelection(),d=b(a);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:j(a,null,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:j(a,"right",true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:j(a,"down",true)?
CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:l(a,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:n(a,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:d.length>0?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:s.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:s.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},
tablecell_delete:{label:s.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:s.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:s.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:s.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:s.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:s.cell.splitVertical,
group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:s.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:s.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:s.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:s.row.insertAfter,
group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:s.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:s.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:s.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:s.column.insertAfter,
group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:s.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}});c.contextMenu&&c.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:b};CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(b){for(var b=
b.$.rows,d=-1,a=[],c=0;c<b.length;c++){d++;!a[d]&&(a[d]=[]);for(var f=-1,e=0;e<b[c].cells.length;e++){var h=b[c].cells[e];for(f++;a[d][f];)f++;for(var i=isNaN(h.colSpan)?1:h.colSpan,h=isNaN(h.rowSpan)?1:h.rowSpan,g=0;g<h;g++){a[d+g]||(a[d+g]=[]);for(var j=0;j<i;j++)a[d+g][f+j]=b[c].cells[e]}f=f+(i-1)}}return a},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 b={},d={};CKEDITOR.addTemplates=function(a,c){b[a]=c};CKEDITOR.getTemplates=function(a){return b[a]};CKEDITOR.loadTemplates=function(a,b){for(var f=[],e=0,h=a.length;e<h;e++)if(!d[a[e]]){f.push(a[e]);d[a[e]]=1}f.length?CKEDITOR.scriptLoader.load(f,b):setTimeout(b,0)}}(),CKEDITOR.config.templates_files=[CKEDITOR.getUrl("plugins/templates/templates/default.js")],
CKEDITOR.config.templates_replaceContent=!0,function(){function b(a){function b(){for(var e=c(),g=CKEDITOR.tools.clone(a.config.toolbarGroups)||d(a),j=0;j<g.length;j++){var k=g[j];if(k!="/"){typeof k=="string"&&(k=g[j]={name:k});var l,s=k.groups;if(s)for(var r=0;r<s.length;r++){l=s[r];(l=e[l])&&i(k,l)}(l=e[k.name])&&i(k,l)}}return g}function c(){var b={},d,e,g;for(d in a.ui.items){e=a.ui.items[d];g=e.toolbar||"others";g=g.split(",");e=g[0];g=parseInt(g[1]||-1,10);b[e]||(b[e]=[]);b[e].push({name:d,
order:g})}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 i(b,c){if(c.length){b.items?b.items.push(a.ui.create("-")):b.items=[];for(var d;d=c.shift();){d=typeof d=="string"?d:d.name;if(!j||CKEDITOR.tools.indexOf(j,d)==-1)(d=a.ui.create(d))&&a.addFeature(d)&&b.items.push(d)}}}function g(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)){i(e,CKEDITOR.tools.clone(d));
b.push(e)}else if(d.items){i(e,CKEDITOR.tools.clone(d.items));e.name=d.name;b.push(e)}}return b}var j=a.config.removeButtons,j=j&&j.split(","),l=a.config.toolbar;typeof l=="string"&&(l=a.config["toolbar_"+l]);return a.toolbar=l?g(l):b()}function d(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"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}])}var a=function(){this.toolbars=[];this.focusCommandExecuted=false};a.prototype.focus=function(){for(var a=0,b;b=this.toolbars[a++];)for(var c=0,d;d=b.items[c++];)if(d.focus){d.focus();return}};var c={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(d){var e,h=function(a,b){var c,l=d.lang.dir=="rtl",n=d.config.toolbarGroupCycling,n=n===void 0||n;switch(b){case 9:case CKEDITOR.SHIFT+9:for(;!c||!c.items.length;){c=b==9?(c?c.next:a.toolbar.next)||d.toolbox.toolbars[0]:(c?c.previous:a.toolbar.previous)||d.toolbox.toolbars[d.toolbox.toolbars.length-1];if(c.items.length)for(a=c.items[e?c.items.length-1:
0];a&&!a.focus;)(a=e?a.previous:a.next)||(c=0)}a&&a.focus();return false;case l?37:39:case 40:c=a;do{c=c.next;!c&&n&&(c=a.toolbar.items[0])}while(c&&!c.focus);c?c.focus():h(a,9);return false;case l?39:37:case 38:c=a;do{c=c.previous;!c&&n&&(c=a.toolbar.items[a.toolbar.items.length-1])}while(c&&!c.focus);if(c)c.focus();else{e=1;h(a,CKEDITOR.SHIFT+9);e=0}return false;case 27:d.focus();return false;case 13:case 32:a.execute();return false}return true};d.on("uiSpace",function(c){if(c.data.space==d.config.toolbarLocation){c.removeListener();
d.toolbox=new a;var e=CKEDITOR.tools.getNextId(),j=['<span id="',e,'" class="cke_voice_label">',d.lang.toolbar.toolbars,"</span>",'<span id="'+d.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',e,'" onmousedown="return false;">'],e=d.config.toolbarStartupExpanded!==false,l,n;d.config.toolbarCanCollapse&&d.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&j.push('<span class="cke_toolbox_main"'+(e?">":' style="display:none">'));for(var o=d.toolbox.toolbars,m=b(d),k=0;k<m.length;k++){var p,
s=0,r,t=m[k],y;if(t){if(l){j.push("</span>");n=l=0}if(t==="/")j.push('<span class="cke_toolbar_break"></span>');else{y=t.items||t;for(var A=0;A<y.length;A++){var v=y[A],w;if(v)if(v.type==CKEDITOR.UI_SEPARATOR)n=l&&v;else{w=v.canGroup!==false;if(!s){p=CKEDITOR.tools.getNextId();s={id:p,items:[]};r=t.name&&(d.lang.toolbar.toolbarGroups[t.name]||t.name);j.push('<span id="',p,'" class="cke_toolbar"',r?' aria-labelledby="'+p+'_label"':"",' role="toolbar">');r&&j.push('<span id="',p,'_label" class="cke_voice_label">',
r,"</span>");j.push('<span class="cke_toolbar_start"></span>');var q=o.push(s)-1;if(q>0){s.previous=o[q-1];s.previous.next=s}}if(w){if(!l){j.push('<span class="cke_toolgroup" role="presentation">');l=1}}else if(l){j.push("</span>");l=0}p=function(a){a=a.render(d,j);q=s.items.push(a)-1;if(q>0){a.previous=s.items[q-1];a.previous.next=a}a.toolbar=s;a.onkey=h;a.onfocus=function(){d.toolbox.focusCommandExecuted||d.focus()}};if(n){p(n);n=0}p(v)}}if(l){j.push("</span>");n=l=0}s&&j.push('<span class="cke_toolbar_end"></span></span>')}}}d.config.toolbarCanCollapse&&
j.push("</span>");if(d.config.toolbarCanCollapse&&d.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var u=CKEDITOR.tools.addFunction(function(){d.execCommand("toolbarCollapse")});d.on("destroy",function(){CKEDITOR.tools.removeFunction(u)});d.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")},modes:{wysiwyg:1,source:1}});d.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse");j.push('<a title="'+(e?d.lang.toolbar.toolbarCollapse:d.lang.toolbar.toolbarExpand)+'" id="'+d.ui.spaceId("toolbar_collapser")+
'" tabIndex="-1" class="cke_toolbox_collapser');e||j.push(" cke_toolbox_collapser_min");j.push('" onclick="CKEDITOR.tools.callFunction('+u+')">','<span class="cke_arrow">&#9650;</span>',"</a>")}j.push("</span>");c.data.html=c.data.html+j.join("")}});d.on("destroy",function(){if(this.toolbox){var a,b=0,c,d,e;for(a=this.toolbox.toolbars;b<a.length;b++){d=a[b].items;for(c=0;c<d.length;c++){e=d[c];e.clickFn&&CKEDITOR.tools.removeFunction(e.clickFn);e.keyDownFn&&CKEDITOR.tools.removeFunction(e.keyDownFn)}}}});
d.on("uiReady",function(){var a=d.ui.space("toolbox");a&&d.focusManager.add(a,1)});d.addCommand("toolbarFocus",c);d.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");d.ui.add("-",CKEDITOR.UI_SEPARATOR,{});d.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,c){var i=d(this.editor),g=b===0,j={name:a};if(c){if(c=CKEDITOR.tools.search(i,
function(a){return a.name==c})){!c.groups&&(c.groups=[]);if(b){b=CKEDITOR.tools.indexOf(c.groups,b);if(b>=0){c.groups.splice(b+1,0,a);return}}g?c.groups.splice(0,0,a):c.groups.push(a);return}b=null}b&&(b=CKEDITOR.tools.indexOf(i,function(a){return a.name==b}));g?i.splice(0,0,a):typeof b=="number"?i.splice(b+1,0,j):i.push(a)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top",function(){function b(a){this.editor=a;this.reset()}CKEDITOR.plugins.add("undo",{init:function(a){function d(a){h.enabled&&
a.data.command.canUndo!==false&&h.save()}function e(){h.enabled=a.readOnly?false:a.mode=="wysiwyg";h.onChange()}var h=new b(a),i=a.addCommand("undo",{exec:function(){if(h.undo()){a.selectionChange();this.fire("afterUndo")}},state:CKEDITOR.TRISTATE_DISABLED,canUndo:false}),g=a.addCommand("redo",{exec:function(){if(h.redo()){a.selectionChange();this.fire("afterRedo")}},state:CKEDITOR.TRISTATE_DISABLED,canUndo:false});a.setKeystroke([[CKEDITOR.CTRL+90,"undo"],[CKEDITOR.CTRL+89,"redo"],[CKEDITOR.CTRL+
CKEDITOR.SHIFT+90,"redo"]]);h.onChange=function(){i.setState(h.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);g.setState(h.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};a.on("beforeCommandExec",d);a.on("afterCommandExec",d);a.on("saveSnapshot",function(a){h.save(a.data&&a.data.contentOnly)});a.on("contentDom",function(){a.editable().on("keydown",function(a){a=a.data.getKey();(a==8||a==46)&&h.type(a,0)});a.editable().on("keypress",function(a){h.type(a.data.getKey(),1)})});
a.on("beforeModeUnload",function(){a.mode=="wysiwyg"&&h.save(true)});a.on("mode",e);a.on("readOnly",e);if(a.ui.addButton){a.ui.addButton("Undo",{label:a.lang.undo.undo,command:"undo",toolbar:"undo,10"});a.ui.addButton("Redo",{label:a.lang.undo.redo,command:"redo",toolbar:"undo,20"})}a.resetUndo=function(){h.reset();a.fire("saveSnapshot")};a.on("updateSnapshot",function(){h.currentImage&&h.update()});a.on("lockSnapshot",h.lock,h);a.on("unlockSnapshot",h.unlock,h)}});CKEDITOR.plugins.undo={};var d=
CKEDITOR.plugins.undo.Image=function(a){this.editor=a;a.fire("beforeUndoImage");var b=a.getSnapshot(),d=b&&a.getSelection();CKEDITOR.env.ie&&b&&(b=b.replace(/\s+data-cke-expando=".*?"/g,""));this.contents=b;this.bookmarks=d&&d.createBookmarks2(true);a.fire("afterUndoImage")},a=/\b(?:href|src|name)="[^"]*?"/gi;d.prototype={equalsContent:function(b){var d=this.contents,b=b.contents;if(CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)){d=d.replace(a,"");b=b.replace(a,"")}return d!=b?
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 d=0;d<b.length;d++){var h=b[d],i=a[d];if(h.startOffset!=i.startOffset||h.endOffset!=i.endOffset||!CKEDITOR.tools.arrayCompare(h.start,i.start)||!CKEDITOR.tools.arrayCompare(h.end,i.end))return false}}return true}};b.prototype={type:function(a,b){var e=!b&&a!=this.lastKeystroke,h=this.editor;if(!this.typing||b&&!this.wasCharacter||e){var i=new d(h),g=this.snapshots.length;
CKEDITOR.tools.setTimeout(function(){var a=h.getSnapshot();CKEDITOR.env.ie&&(a=a.replace(/\s+data-cke-expando=".*?"/g,""));if(i.contents!=a&&g==this.snapshots.length){this.typing=true;this.save(false,i,false)||this.snapshots.splice(this.index+1,this.snapshots.length-this.index-1);this.hasUndo=true;this.hasRedo=false;this.modifiersCount=this.typesCount=1;this.onChange()}},0,this)}this.lastKeystroke=a;if(this.wasCharacter=b){this.modifiersCount=0;this.typesCount++;if(this.typesCount>25){this.save(false,
null,false);this.typesCount=1}else setTimeout(function(){h.fire("change")},0)}else{this.typesCount=0;this.modifiersCount++;if(this.modifiersCount>25){this.save(false,null,false);this.modifiersCount=1}else setTimeout(function(){h.fire("change")},0)}},reset:function(){this.lastKeystroke=0;this.snapshots=[];this.index=-1;this.limit=this.editor.config.undoStackSize||20;this.currentImage=null;this.hasRedo=this.hasUndo=false;this.locked=null;this.resetType()},resetType:function(){this.typing=false;delete this.lastKeystroke;
this.modifiersCount=this.typesCount=0},fireChange:function(){this.hasUndo=!!this.getNextImage(true);this.hasRedo=!!this.getNextImage(false);this.resetType();this.onChange()},save:function(a,b,e){if(this.locked)return false;var h=this.snapshots;b||(b=new d(this.editor));if(b.contents===false)return false;if(this.currentImage)if(b.equalsContent(this.currentImage)){if(a||b.equalsSelection(this.currentImage))return false}else this.editor.fire("change");h.splice(this.index+1,h.length-this.index-1);h.length==
this.limit&&h.shift();this.index=h.push(b)-1;this.currentImage=b;e!==false&&this.fireChange();return true},restoreImage:function(a){var b=this.editor,d;if(a.bookmarks){b.focus();d=b.getSelection()}this.locked=1;this.editor.loadSnapshot(a.contents);if(a.bookmarks)d.selectBookmarks(a.bookmarks);else if(CKEDITOR.env.ie){d=this.editor.document.getBody().$.createTextRange();d.collapse(true);d.select()}this.locked=0;this.index=a.index;this.update();this.fireChange();b.fire("change")},getNextImage:function(a){var b=
this.snapshots,d=this.currentImage,h;if(d)if(a)for(h=this.index-1;h>=0;h--){a=b[h];if(!d.equalsContent(a)){a.index=h;return a}}else for(h=this.index+1;h<b.length;h++){a=b[h];if(!d.equalsContent(a)){a.index=h;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(){if(!this.locked)this.snapshots.splice(this.index,1,this.currentImage=new d(this.editor))},lock:function(){if(this.locked)this.locked.level++;else{var a=new d(this.editor);this.locked={update:this.currentImage&&this.currentImage.equalsContent(a)?a:null,level:1}}},unlock:function(){if(this.locked&&!--this.locked.level){var a=this.locked.update;this.locked=null;a&&!a.equalsContent(new d(this.editor))&&
this.update()}}}}(),function(){function b(a){var b=this.editor,d=a.document,h=d.body;(a=d.getElementById("cke_actscrpt"))&&a.parentNode.removeChild(a);(a=d.getElementById("cke_shimscrpt"))&&a.parentNode.removeChild(a);if(CKEDITOR.env.gecko){h.contentEditable=false;if(CKEDITOR.env.version<2E4){h.innerHTML=h.innerHTML.replace(/^.*<\!-- cke-content-start --\>/,"");setTimeout(function(){var a=new CKEDITOR.dom.range(new CKEDITOR.dom.document(d));a.setStart(new CKEDITOR.dom.node(h),0);b.getSelection().selectRanges([a])},
0)}}h.contentEditable=true;if(CKEDITOR.env.ie){h.hideFocus=true;h.disabled=true;h.removeAttribute("disabled")}delete this._.isLoadingData;this.$=h;d=new CKEDITOR.dom.document(d);this.setup();if(CKEDITOR.env.ie){d.getDocumentElement().addClass(d.$.compatMode);b.config.enterMode!=CKEDITOR.ENTER_P&&d.on("selectionchange",function(){var a=d.getBody(),c=b.getSelection(),g=c&&c.getRanges()[0];g&&(a.getHtml().match(/^<p>&nbsp;<\/p>$/i)&&g.startContainer.equals(a))&&setTimeout(function(){g=b.getSelection().getRanges()[0];
if(!g.startContainer.equals("body")){a.getFirst().remove(1);g.moveToElementEditEnd(a);g.select()}},0)})}try{b.document.$.execCommand("2D-position",false,true)}catch(i){}try{b.document.$.execCommand("enableInlineTableEditing",false,!b.config.disableNativeTableHandles)}catch(g){}if(b.config.disableObjectResizing)try{this.getDocument().$.execCommand("enableObjectResizing",false,false)}catch(j){this.attachListener(this,CKEDITOR.env.ie?"resizestart":"resize",function(a){a.data.preventDefault()})}(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(d,"blur",function(){try{d.$.selection.empty()}catch(a){}});b.document.getElementsByTag("title").getItem(0).data("cke-title",
b.document.$.title);if(CKEDITOR.env.ie)b.document.$.title=this._.docTitle;CKEDITOR.tools.setTimeout(function(){b.fire("contentDom");if(this._.isPendingFocus){b.focus();this._.isPendingFocus=false}setTimeout(function(){b.fire("dataReady")},0);CKEDITOR.env.ie&&setTimeout(function(){if(b.document){var a=b.document.$.body;a.runtimeStyle.marginBottom="0px";a.runtimeStyle.marginBottom=""}},1E3)},0,this)}function d(){var a=[];if(CKEDITOR.document.$.documentMode>=8){a.push("html.CSS1Compat [contenteditable=false]{min-height:0 !important}");
var b=[],d;for(d in CKEDITOR.dtd.$removeEmpty)b.push("html.CSS1Compat "+d+"[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(b){b.config.fullPage&&b.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",
requiredContent:"body"});b.addMode("wysiwyg",function(d){function e(e){e&&e.removeListener();b.editable(new a(b,i.$.contentWindow.document.body));b.setData(b.getData(1),d)}var h="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",h=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent(h)+"}())":"",i=CKEDITOR.dom.element.createFromHtml('<iframe src="'+h+'" frameBorder="0"></iframe>');i.setStyles({width:"100%",
height:"100%"});i.addClass("cke_wysiwyg_frame cke_reset");var g=b.ui.space("contents");g.append(i);if(h=CKEDITOR.env.ie||CKEDITOR.env.gecko)i.on("load",e);var j=b.title,l=b.lang.common.editorHelp;if(j){CKEDITOR.env.ie&&(j=j+(", "+l));i.setAttribute("title",j)}var j=CKEDITOR.tools.getNextId(),n=CKEDITOR.dom.element.createFromHtml('<span id="'+j+'" class="cke_voice_label">'+l+"</span>");g.append(n,1);b.on("beforeModeUnload",function(a){a.removeListener();n.remove()});i.setAttributes({"aria-describedby":j,
tabIndex:b.tabIndex,allowTransparency:"true"});!h&&e();if(CKEDITOR.env.webkit){h=function(){g.setStyle("width","100%");i.hide();i.setSize("width",g.getSize("width"));g.removeStyle("width");i.show()};i.setCustomData("onResize",h);CKEDITOR.document.getWindow().on("resize",h)}b.fire("ariaWidget",i)})}});var a=CKEDITOR.tools.createClass({$:function(a){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(a){CKEDITOR.tools.setTimeout(b,0,this,a)},this);this._.docTitle=
this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(a,b){var e=this.editor;if(b){this.setHtml(a);e.fire("dataReady")}else{this._.isLoadingData=true;e._.dataStore={id:1};var h=e.config,i=h.fullPage,g=h.docType,j=CKEDITOR.tools.buildStyleHtml(d()).replace(/<style>/,'<style data-cke-temp="1">');i||(j=j+CKEDITOR.tools.buildStyleHtml(e.config.contentsCss));var l=h.baseHref?'<base href="'+h.baseHref+'" data-cke-temp="1" />':"";i&&(a=a.replace(/<!DOCTYPE[^>]*>/i,
function(a){e.docType=g=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){e.xmlDeclaration=a;return""}));e.dataProcessor&&(a=e.dataProcessor.toHtml(a));if(i){/<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*>/,j+"$&");a=g+a}else a=h.docType+'<html dir="'+
h.contentsLangDirection+'" lang="'+(h.contentsLanguage||e.langCode)+'"><head><title>'+this._.docTitle+"</title>"+l+j+"</head><body"+(h.bodyId?' id="'+h.bodyId+'"':"")+(h.bodyClass?' class="'+h.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 --\>"))}h='<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&&(h=h+'<script id="cke_shimscrpt">(function(){var e="abbr,article,aside,audio,bdi,canvas,data,datalist,details,figcaption,figure,footer,header,hgroup,mark,meter,nav,output,progress,section,summary,time,video".split(","),i=e.length;while(i--){document.createElement(e[i])}})()<\/script>');a=a.replace(/(?=\s*<\/(:?head)>)/,
h);this.clearCustomData();this.clearListeners();e.fire("contentDomUnload");var n=this.getDocument();try{n.write(a)}catch(o){setTimeout(function(){n.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();var a=this.editor,b=a.config,d=b.fullPage,h=d&&a.docType,i=d&&a.xmlDeclaration,g=this.getDocument(),d=d?g.getDocumentElement().getOuterHtml():g.getBody().getHtml();CKEDITOR.env.gecko&&b.enterMode!=CKEDITOR.ENTER_BR&&(d=d.replace(/<br>(?=\s*(:?$|<\/body>))/,""));a.dataProcessor&&(d=a.dataProcessor.toDataFormat(d));
i&&(d=i+"\n"+d);h&&(d=h+"\n"+d);return d},focus:function(){this._.isLoadingData?this._.isPendingFocus=true:a.baseProto.focus.call(this)},detach:function(){var b=this.editor,d=b.document,e=b.window.getFrame();a.baseProto.detach.call(this);this.clearCustomData();d.getDocumentElement().clearCustomData();e.clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);(d=e.removeCustomData("onResize"))&&d.removeListener();b.fire("contentDomUnload");e.remove()}}})}(),CKEDITOR.config.disableObjectResizing=
!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,CKEDITOR.config.contentsCss=CKEDITOR.basePath+"contents.css",CKEDITOR.config.plugins="dialogui,dialog,a11yhelp,about,basicstyles,bidi,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,menu,contextmenu,dialogadvtab,div,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,format,forms,horizontalrule,htmlwriter,iframe,image,indent,justify,link,indentlist,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,wysiwygarea",
CKEDITOR.config.skin="moono",function(){var b=function(b,a){for(var c=CKEDITOR.getUrl("plugins/"+a),b=b.split(","),f=0;f<b.length;f++)CKEDITOR.skin.icons[b[f]]={path:c,offset:-b[++f],bgsize:b[++f]}};CKEDITOR.env.hidpi?b("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,,bgcolor,384,,textcolor,408,,creatediv,432,,docprops-rtl,456,,docprops,480,,find-rtl,504,,find,528,,replace,552,,flash,576,,button,600,,checkbox,624,,form,648,,hiddenfield,672,,imagebutton,696,,radio,720,,select-rtl,744,,select,768,,textarea-rtl,792,,textarea,816,,textfield-rtl,840,,textfield,864,,horizontalrule,888,,iframe,912,,image,936,,indent-rtl,960,,indent,984,,outdent-rtl,1008,,outdent,1032,,justifyblock,1056,,justifycenter,1080,,justifyleft,1104,,justifyright,1128,,anchor-rtl,1152,,anchor,1176,,link,1200,,unlink,1224,,bulletedlist-rtl,1248,,bulletedlist,1272,,numberedlist-rtl,1296,,numberedlist,1320,,maximize,1344,,newpage-rtl,1368,,newpage,1392,,pagebreak-rtl,1416,,pagebreak,1440,,pastefromword-rtl,1464,,pastefromword,1488,,pastetext-rtl,1512,,pastetext,1536,,placeholder,1560,,preview-rtl,1584,,preview,1608,,print,1632,,removeformat,1656,,save,1680,,selectall,1704,,showblocks-rtl,1728,,showblocks,1752,,smiley,1776,,source-rtl,1800,,source,1824,,sourcedialog-rtl,1848,,sourcedialog,1872,,specialchar,1896,,table,1920,,templates-rtl,1944,,templates,1968,,uicolor,1992,,redo-rtl,2016,,redo,2040,,undo-rtl,2064,,undo,2088,",
"icons_hidpi.png"):b("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,bgcolor,384,auto,textcolor,408,auto,creatediv,432,auto,docprops-rtl,456,auto,docprops,480,auto,find-rtl,504,auto,find,528,auto,replace,552,auto,flash,576,auto,button,600,auto,checkbox,624,auto,form,648,auto,hiddenfield,672,auto,imagebutton,696,auto,radio,720,auto,select-rtl,744,auto,select,768,auto,textarea-rtl,792,auto,textarea,816,auto,textfield-rtl,840,auto,textfield,864,auto,horizontalrule,888,auto,iframe,912,auto,image,936,auto,indent-rtl,960,auto,indent,984,auto,outdent-rtl,1008,auto,outdent,1032,auto,justifyblock,1056,auto,justifycenter,1080,auto,justifyleft,1104,auto,justifyright,1128,auto,anchor-rtl,1152,auto,anchor,1176,auto,link,1200,auto,unlink,1224,auto,bulletedlist-rtl,1248,auto,bulletedlist,1272,auto,numberedlist-rtl,1296,auto,numberedlist,1320,auto,maximize,1344,auto,newpage-rtl,1368,auto,newpage,1392,auto,pagebreak-rtl,1416,auto,pagebreak,1440,auto,pastefromword-rtl,1464,auto,pastefromword,1488,auto,pastetext-rtl,1512,auto,pastetext,1536,auto,placeholder,1560,auto,preview-rtl,1584,auto,preview,1608,auto,print,1632,auto,removeformat,1656,auto,save,1680,auto,selectall,1704,auto,showblocks-rtl,1728,auto,showblocks,1752,auto,smiley,1776,auto,source-rtl,1800,auto,source,1824,auto,sourcedialog-rtl,1848,auto,sourcedialog,1872,auto,specialchar,1896,auto,table,1920,auto,templates-rtl,1944,auto,templates,1968,auto,uicolor,1992,auto,redo-rtl,2016,auto,redo,2040,auto,undo-rtl,2064,auto,undo,2088,auto",
"icons.png")}()})();