1/* 2Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. 3For licensing, see LICENSE.html or http://ckeditor.com/license 4*/ 5(function(){if(!window.CKEDITOR||!window.CKEDITOR.dom)window.CKEDITOR||(window.CKEDITOR=function(){var c={timestamp:"E99F",version:"4.3.4",revision:"0",rnd:Math.floor(900*Math.random())+100,_:{pending:[]},status:"unloaded",basePath:function(){var a=window.CKEDITOR_BASEPATH||"";if(!a)for(var d=document.getElementsByTagName("script"),b=0;b<d.length;b++){var c=d[b].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(c){a=c[1];break}}-1==a.indexOf(":/")&&"//"!=a.slice(0,2)&&(a=0=== 6a.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+a:location.href.match(/^[^\?]*\/(?:)/)[0]+a);if(!a)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return a}(),getUrl:function(a){-1==a.indexOf(":/")&&0!==a.indexOf("/")&&(a=this.basePath+a);this.timestamp&&("/"!=a.charAt(a.length-1)&&!/[&?]t=/.test(a))&&(a+=(0<=a.indexOf("?")?"&":"?")+"t="+this.timestamp);return a},domReady:function(){function a(){try{document.addEventListener? 7(document.removeEventListener("DOMContentLoaded",a,!1),d()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),d())}catch(b){}}function d(){for(var d;d=b.shift();)d()}var b=[];return function(d){b.push(d);"complete"===document.readyState&&setTimeout(a,1);if(1==b.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",a,!1),window.addEventListener("load",a,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange", 8a);window.attachEvent("onload",a);d=!1;try{d=!window.frameElement}catch(c){}if(document.documentElement.doScroll&&d){var h=function(){try{document.documentElement.doScroll("left")}catch(d){setTimeout(h,1);return}a()};h()}}}}()},e=window.CKEDITOR_GETURL;if(e){var b=c.getUrl;c.getUrl=function(a){return e.call(c,a)||b.call(c,a)}}return c}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(c){var e=CKEDITOR.event.prototype,b;for(b in e)c[b]==void 0&&(c[b]=e[b])},CKEDITOR.event.prototype= 9function(){function c(a){var d=e(this);return d[a]||(d[a]=new b(a))}var e=function(a){a=a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={})},b=function(a){this.name=a;this.listeners=[]};b.prototype={getListenerIndex:function(a){for(var d=0,b=this.listeners;d<b.length;d++)if(b[d].fn==a)return d;return-1}};return{define:function(a,d){var b=c.call(this,a);CKEDITOR.tools.extend(b,d,true)},on:function(a,d,b,g,f){function h(c,j,l,f){c={name:a,sender:this,editor:c,data:j,listenerData:g, 10stop:l,cancel:f,removeListener:e};return d.call(b,c)===false?false:c.data}function e(){m.removeListener(a,d)}var l=c.call(this,a);if(l.getListenerIndex(d)<0){l=l.listeners;b||(b=this);isNaN(f)&&(f=10);var m=this;h.fn=d;h.priority=f;for(var n=l.length-1;n>=0;n--)if(l[n].priority<=f){l.splice(n+1,0,h);return{removeListener:e}}l.unshift(h)}return{removeListener:e}},once:function(){var a=arguments[1];arguments[1]=function(d){d.removeListener();return a.apply(this,arguments)};return this.on.apply(this, 11arguments)},capture:function(){CKEDITOR.event.useCapture=1;var a=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return a},fire:function(){var a=0,d=function(){a=1},b=0,c=function(){b=1};return function(f,h,k){var l=e(this)[f],f=a,m=b;a=b=0;if(l){var n=l.listeners;if(n.length)for(var n=n.slice(0),s,j=0;j<n.length;j++){if(l.errorProof)try{s=n[j].call(this,k,h,d,c)}catch(o){}else s=n[j].call(this,k,h,d,c);s===false?b=1:typeof s!="undefined"&&(h=s);if(a||b)break}}h=b?false:typeof h=="undefined"? 12true:h;a=f;b=m;return h}}(),fireOnce:function(a,d,b){d=this.fire(a,d,b);delete e(this)[a];return d},removeListener:function(a,d){var b=e(this)[a];if(b){var c=b.getListenerIndex(d);c>=0&&b.listeners.splice(c,1)}},removeAllListeners:function(){var a=e(this),d;for(d in a)delete a[d]},hasListeners:function(a){return(a=e(this)[a])&&a.listeners.length>0}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire= 13function(c,e){c in{instanceReady:1,loaded:1}&&(this[c]=true);return CKEDITOR.event.prototype.fire.call(this,c,e,this)},CKEDITOR.editor.prototype.fireOnce=function(c,e){c in{instanceReady:1,loaded:1}&&(this[c]=true);return CKEDITOR.event.prototype.fireOnce.call(this,c,e,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var c=navigator.userAgent.toLowerCase(),e=window.opera,b={ie:c.indexOf("trident/")>
13-1,opera:!!e&&e.version,webkit:c.indexOf(" applewebkit/")> 14-1,air:c.indexOf(" adobeair/")>-1,mac:c.indexOf("macintosh")>-1,quirks:document.compatMode=="BackCompat"&&(!document.documentMode||document.documentMode<10),mobile:c.indexOf("mobile")>-1,iOS:/(ipad|iphone|ipod)/.test(c),isCustomDomain:function(){if(!this.ie)return false;var d=document.domain,a=window.location.hostname;return d!=a&&d!="["+a+"]"},secure:location.protocol=="https:"};b.gecko=navigator.product=="Gecko"&&!b.webkit&&!b.opera&&!b.ie;if(b.webkit)c.indexOf("chrome")>-1?b.chrome=true:b.safari= 15true;var a=0;if(b.ie){a=b.quirks||!document.documentMode?parseFloat(c.match(/msie (\d+)/)[1]):document.documentMode;b.ie9Compat=a==9;b.ie8Compat=a==8;b.ie7Compat=a==7;b.ie6Compat=a<7||b.quirks}if(b.gecko){var d=c.match(/rv:([\d\.]+)/);if(d){d=d[1].split(".");a=d[0]*1E4+(d[1]||0)*100+(d[2]||0)*1}}b.opera&&(a=parseFloat(e.version()));b.air&&(a=parseFloat(c.match(/ adobeair\/(\d+)/)[1]));b.webkit&&(a=parseFloat(c.match(/ applewebkit\/(\d+)/)[1]));b.version=a;b.isCompatible=b.iOS&&a>=534||!b.mobile&& 16(b.ie&&a>6||b.gecko&&a>=10801||b.opera&&a>=9.5||b.air&&a>=1||b.webkit&&a>=522||false);b.hidpi=window.devicePixelRatio>=2;b.needsBrFiller=b.gecko||b.webkit||b.ie&&a>10;b.needsNbspFiller=b.ie&&a<11;b.cssClass="cke_browser_"+(b.ie?"ie":b.gecko?"gecko":b.opera?"opera":b.webkit?"webkit":"unknown");if(b.quirks)b.cssClass=b.cssClass+" cke_browser_quirks";if(b.ie){b.cssClass=b.cssClass+(" cke_browser_ie"+(b.quirks||b.version<7?"6":b.version));if(b.quirks)b.cssClass=b.cssClass+" cke_browser_iequirks"}if(b.gecko)if(a< 1710900)b.cssClass=b.cssClass+" cke_browser_gecko18";else if(a<=11E3)b.cssClass=b.cssClass+" cke_browser_gecko19";if(b.air)b.cssClass=b.cssClass+" cke_browser_air";if(b.iOS)b.cssClass=b.cssClass+" cke_browser_ios";if(b.hidpi)b.cssClass=b.cssClass+" cke_hidpi";return b}()),"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if(CKEDITOR.status!="basic_ready")CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var c=document.createElement("script"); 18c.type="text/javascript";
18c.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(c)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(c){(this._.pending||(this._.pending=[])).push(c)};(function(){CKEDITOR.domReady(function(){var c=CKEDITOR.loadFullCore,e=CKEDITOR.loadFullCoreTimeout;if(c){CKEDITOR.status="basic_ready";c&&c._load?c():e&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},e*1E3)}})})();CKEDITOR.status="basic_loaded"}(),CKEDITOR.dom= 19{},function(){var c=[],e=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.opera?"-o-":CKEDITOR.env.ie?"-ms-":"";CKEDITOR.on("reset",function(){c=[]});CKEDITOR.tools={arrayCompare:function(b,a){if(!b&&!a)return true;if(!b||!a||b.length!=a.length)return false;for(var d=0;d<b.length;d++)if(b[d]!=a[d])return false;return true},clone:function(b){var a;if(b&&b instanceof Array){a=[];for(var d=0;d<b.length;d++)a[d]=CKEDITOR.tools.clone(b[d]);return a}if(b===null||typeof b!="object"|| 20b instanceof String||b instanceof Number||b instanceof Boolean||b instanceof Date||b instanceof RegExp)return b;a=new b.constructor;for(d in b)a[d]=CKEDITOR.tools.clone(b[d]);return a},capitalize:function(b,a){return b.charAt(0).toUpperCase()+(a?b.slice(1):b.slice(1).toLowerCase())},extend:function(b){var a=arguments.length,d,c;if(typeof(d=arguments[a-1])=="boolean")a--;else if(typeof(d=arguments[a-2])=="boolean"){c=arguments[a-1];a=a-2}for(var g=1;g<a;g++){var f=arguments[g],h;for(h in f)if(d=== 21true||b[h]==void 0)if(!c||h in c)b[h]=f[h]}return b},prototypedCopy:function(b){var a=function(){};a.prototype=b;return new a},copy:function(b){var a={},d;for(d in b)a[d]=b[d];return a},isArray:function(b){return Object.prototype.toString.call(b)=="[object Array]"},isEmpty:function(b){for(var a in b)if(b.hasOwnProperty(a))return false;return true},cssVendorPrefix:function(b,a,d){if(d)return e+b+":"+a+";"+b+":"+a;d={};d[b]=a;d[e+b]=a;return d},cssStyleToDomStyle:function(){var b=document.createElement("div").style, 22a=typeof b.cssFloat!="undefined"?"cssFloat":typeof b.styleFloat!="undefined"?"styleFloat":"float";return function(d){return d=="float"?a:d.replace(/-./g,function(d){return d.substr(1).toUpperCase()})}}(),buildStyleHtml:function(b){for(var b=[].concat(b),a,d=[],c=0;c<b.length;c++)if(a=b[c])/@import|[{}]/.test(a)?d.push("<style>"+a+"</style>"):d.push('<link type="text/css" rel=stylesheet href="'+a+'">');return d.join("")},htmlEncode:function(b){return(""+b).replace(/&/g,"&").replace(/>/g,">").replace(/</g, 23"<")},htmlEncodeAttr:function(b){return b.replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")},htmlDecodeAttr:function(b){return b.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">")},getNextNumber:function(){var b=0;return function(){return++b}}(),getNextId:function(){return"cke_"+this.getNextNumber()},override:function(b,a){var d=a(b);d.prototype=b.prototype;return d},setTimeout:function(b,a,d,c,g){g||(g=window);d||(d=g);return g.setTimeout(function(){c?b.apply(d,[].concat(c)): 24b.apply(d)},a||0)},trim:function(){var b=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(a){return a.replace(b,"")}}(),ltrim:function(){var b=/^[ \t\n\r]+/g;return function(a){return a.replace(b,"")}}(),rtrim:function(){var b=/[ \t\n\r]+$/g;return function(a){return a.replace(b,"")}}(),indexOf:function(b,a){if(typeof a=="function")for(var d=0,c=b.length;d<c;d++){if(a(b[d]))return d}else{if(b.indexOf)return b.indexOf(a);d=0;for(c=b.length;d<c;d++)if(b[d]===a)return d}return-1},search:function(b, 25a){var d=CKEDITOR.tools.indexOf(b,a);return d>=0?b[d]:null},bind:function(b,a){return function(){return b.apply(a,arguments)}},createClass:function(b){var a=b.$,d=b.base,c=b.privates||b._,g=b.proto,b=b.statics;!a&&(a=function(){d&&this.base.apply(this,arguments)});if(c)var f=a,a=function(){var d=this._||(this._={}),a;for(a in c){var b=c[a];d[a]=typeof b=="function"?CKEDITOR.tools.bind(b,this):b}f.apply(this,arguments)};if(d){a.prototype=this.prototypedCopy(d.prototype);a.prototype.constructor=a;a.base= 26d;a.baseProto=d.prototype;a.prototype.base=function(){this.base=d.prototype.base;d.apply(this,arguments);this.base=arguments.callee}}g&&this.extend(a.prototype,g,true);b&&this.extend(a,b,true);return a},addFunction:function(b,a){return c.push(function(){return b.apply(a||this,arguments)})-1},removeFunction:function(b){c[b]=null},callFunction:function(b){var a=c[b];
26return a&&a.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var b=/^-?\d+\.?\d*px$/,a;return function(d){a= 27CKEDITOR.tools.trim(d+"")+"px";return b.test(a)?a:d||""}}(),convertToPx:function(){var b;return function(a){if(!b){b=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(b)}if(!/%$/.test(a)){b.setStyle("width",a);return b.$.clientWidth}return a}}(),repeat:function(b,a){return Array(a+1).join(b)},tryThese:function(){for(var b,a=0,d=arguments.length;a<d;a++){var c= 28arguments[a];try{b=c();break}catch(g){}}return b},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(b){return function(){var a=arguments,d=this;window.setTimeout(function(){b.apply(d,a)},0)}},normalizeCssText:function(b,a){var d=[],c,g=CKEDITOR.tools.parseCssText(b,true,a);for(c in g)d.push(c+":"+g[c]);d.sort();return d.length?d.join(";")+";":""},convertRgbToHex:function(b){return b.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(a,d,b,c){a= 29[d,b,c];for(d=0;d<3;d++)a[d]=("0"+parseInt(a[d],10).toString(16)).slice(-2);return"#"+a.join("")})},parseCssText:function(b,a,d){var c={};if(d){d=new CKEDITOR.dom.element("span");d.setAttribute("style",b);b=CKEDITOR.tools.convertRgbToHex(d.getAttribute("style")||"")}if(!b||b==";")return c;b.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(d,b,h){if(a){b=b.toLowerCase();b=="font-family"&&(h=h.toLowerCase().replace(/["']/g,"").replace(/\s*,\s*/g,","));h=CKEDITOR.tools.trim(h)}c[b]= 30h});return c},writeCssText:function(b,a){var d,c=[];for(d in b)c.push(d+":"+b[d]);a&&c.sort();return c.join("; ")},objectCompare:function(b,a,d){var c;if(!b&&!a)return true;if(!b||!a)return false;for(c in b)if(b[c]!=a[c])return false;if(!d)for(c in a)if(b[c]!=a[c])return false;return true},objectKeys:function(b){var a=[],d;for(d in b)a.push(d);return a},convertArrayToObject:function(b,a){var d={};arguments.length==1&&(a=true);for(var c=0,g=b.length;c<g;++c)d[b[c]]=a;return d},fixDomain:function(){for(var b;;)try{b= 31window.parent.document.domain;break}catch(a){b=b?b.replace(/.+?(?:\.|$)/,""):document.domain;if(!b)break;document.domain=b}return!!b},eventsBuffer:function(b,a){function d(){g=(new Date).getTime();c=false;a()}var c,g=0;return{input:function(){if(!c){var a=(new Date).getTime()-g;a<b?c=setTimeout(d,b-a):d()}},reset:function(){c&&clearTimeout(c);c=g=0}}},enableHtml5Elements:function(b,a){for(var d=["abbr","article","aside","audio","bdi","canvas","data","datalist","details","figcaption","figure","footer", 32"header","hgroup","mark","meter","nav","output","progress","section","summary","time","video"],c=d.length,g;c--;){g=b.createElement(d[c]);a&&b.appendChild(g)}}}}(),CKEDITOR.dtd=function(){var c=CKEDITOR.tools.extend,e=function(d,a){for(var b=CKEDITOR.tools.clone(d),c=1;c<arguments.length;c++){var a=arguments[c],i;for(i in a)delete b[i]}return b},b={},a={},d={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, 33hr:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},i={command:1,link:1,meta:1,noscript:1,script:1,style:1},g={},f={"#":1},h={center:1,dir:1,noframes:1};c(b,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1, 34"var":1,video:1,wbr:1},f,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});c(a,d,b,h);e={a:e(b,{a:1,button:1}),abbr:b,address:a,area:g,article:c({style:1},a),aside:c({style:1},a),audio:c({source:1,track:1},a),b:b,base:g,bdi:b,bdo:b,blockquote:a,body:a,br:g,button:e(b,{a:1,button:1}),canvas:b,caption:a,cite:b,code:b,col:g,colgroup:{col:1},command:g,datalist:c({option:1},b),dd:a,del:b,details:c({summary:1}
vendor: 3,628 bytes, lines 34-41
34,a),dfn:b,div:c({style:1},a),dl:{dt:1,dd:1},dt:a,em:b,embed:g,fieldset:c({legend:1}, 35a),figcaption:a,figure:c({figcaption:1},a),footer:a,form:a,h1:b,h2:b,h3:b,h4:b,h5:b,h6:b,head:c({title:1,base:1},i),header:a,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:g,html:c({head:1,body:1},a,i),i:b,iframe:f,img:g,input:g,ins:b,kbd:b,keygen:g,label:b,legend:b,li:a,link:g,map:a,mark:b,menu:c({li:1},a),meta:g,meter:e(b,{meter:1}),nav:a,noscript:c({link:1,meta:1,style:1},b),object:c({param:1},b),ol:{li:1},optgroup:{option:1},option:f,output:b,p:b,param:g,pre:b,progress:e(b,{progress:1}),q:b,rp:b,rt:b, 36ruby:c({rp:1,rt:1},b),s:b,samp:b,script:f,section:c({style:1},a),select:{optgroup:1,option:1},small:b,source:g,span:b,strong:b,style:f,sub:b,summary:b,sup:b,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:a,textarea:f,tfoot:{tr:1},th:a,thead:{tr:1},time:e(b,{time:1}),title:f,tr:{th:1,td:1},track:g,u:b,ul:{li:1},"var":b,video:c({source:1,track:1},a),wbr:g,acronym:b,applet:c({param:1},a),basefont:g,big:b,center:a,dialog:g,dir:{li:1},font:b,isindex:g,noframes:a,strike:b,tt:b}; 37c(e,{$block:c({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},d,h),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,nav:1,p:1,pre:1,section:1},$empty:{area:1, 38base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1},$inline:b,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:c({body:1,head:1,html:1},e.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1, 39b: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, 40li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}});return e}(),CKEDITOR.dom.event=function(c){this.$=c},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var c=this.getKey();if(this.$.ctrlKey||this.$.metaKey)c=c+CKEDITOR.CTRL;this.$.shiftKey&&(c=c+CKEDITOR.SHIFT);this.$.altKey&&(c=c+CKEDITOR.ALT);return c},preventDefault:function(c){var e=this.$;e.preventDefault?e.preventDefault():e.returnValue=false;c&& 41this.stopPropagation()},stopPropagation:function(){var c=this.$;c.stopPropagation?c.stopPropagation():c.cancelBubble=true},getTarget:function(){var c=this.$.target||this.$.srcElement;return c?new CKEDITOR.dom.node(c):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var c=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(c.documentElement.scrollLeft||c.body.scrollLeft),y:this.$.pageY||this.$.clientY+(c.documentElement.scrollTop||c.body.scrollTop)}}},
42CKEDITOR.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(c){if(c)this.$=c},CKEDITOR.dom.domObject.prototype=function(){var c=function(c,b){return function(a){typeof CKEDITOR!="undefined"&&c.fire(b,new CKEDITOR.dom.event(a))}};return{getPrivate:function(){var c;if(!(c=this.getCustomData("_")))this.setCustomData("_",c={});return c},on:function(e){var b=this.getCustomData("_cke_nativeListeners"); 43if(!b){b={};this.setCustomData("_cke_nativeListeners",b)}if(!b[e]){b=b[e]=c(this,e);this.$.addEventListener?this.$.addEventListener(e,b,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+e,b)}return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(c){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(c)){var b=this.getCustomData("_cke_nativeListeners"),a=b&&b[c];if(a){this.$.removeEventListener?this.$.removeEventListener(c, 44a,false):this.$.detachEvent&&this.$.detachEvent("on"+c,a);delete b[c]}}},removeAllListeners:function(){var c=this.getCustomData("_cke_nativeListeners"),b;for(b in c){var a=c[b];this.$.detachEvent?this.$.detachEvent("on"+b,a):this.$.removeEventListener&&this.$.removeEventListener(b,a,false);delete c[b]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}(),function(c){var e={};CKEDITOR.on("reset",function(){e={}});c.equals=function(b){try{return b&&b.$===this.$}catch(a){return false}};c.setCustomData= 45function(b,a){var d=this.getUniqueId();(e[d]||(e[d]={}))[b]=a;return this};c.getCustomData=function(b){var a=this.$["data-cke-expando"];return(a=a&&e[a])&&b in a?a[b]:null};c.removeCustomData=function(b){var a=this.$["data-cke-expando"],a=a&&e[a],d,c;if(a){d=a[b];c=b in a;delete a[b]}return c?d:null};c.clearCustomData=function(){this.removeAllListeners();var b=this.$["data-cke-expando"];b&&delete e[b]};c.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())}; 46CKEDITOR.event.implementOn(c)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(c){return c?new CKEDITOR.dom[c.nodeType==CKEDITOR.NODE_DOCUMENT?"document":c.nodeType==CKEDITOR.NODE_ELEMENT?"element":c.nodeType==CKEDITOR.NODE_TEXT?"text":c.nodeType==CKEDITOR.NODE_COMMENT?"comment":c.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](c):this},CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT= 473,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(c,e){c.append(this,e);return c},clone:function(c,e){var b=this.$.cloneNode(c),a=function(d){d["data-cke-expando"]&&(d["data-cke-expando"]=false);if(d.nodeType==CKEDITOR.NODE_ELEMENT){e|| 48d.removeAttribute("id",false);if(c)for(var d=d.childNodes,b=0;b<d.length;b++)a(d[b])}};a(b);return new CKEDITOR.dom.node(b)},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(c){c.$.parentNode.insertBefore(this.$,c.$.nextSibling);return c},insertBefore:function(c){c.$.parentNode.insertBefore(this.$,c.$);return c},insertBeforeMe:function(c){this.$.parentNode.insertBefore(c.$,this.$);return c},getAddress:function(c){for(var e= 49[],b=this.getDocument().$.documentElement,a=this.$;a&&a!=b;){var d=a.parentNode;d&&e.unshift(this.getIndex.call({$:a},c));a=d}return e},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(c){var e=this.$,b=-1,a;if(!this.$.parentNode)return b;do if(!c||!(e!=this.$&&e.nodeType==CKEDITOR.NODE_TEXT&&(a||!e.nodeValue))){b++;a=e.nodeType==CKEDITOR.NODE_TEXT}while(e=e.previousSibling);return b},getNextSourceNode:function(c,e,b){if(b&& 50!b.call)var a=b,b=function(d){return!d.equals(a)};var c=!c&&this.getFirst&&this.getFirst(),d;
50if(!c){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;c=this.getNext()}for(;!c&&(d=(d||this).getParent());){if(b&&b(d,true)===false)return null;c=d.getNext()}return!c||b&&b(c)===false?null:e&&e!=c.type?c.getNextSourceNode(false,e,b):c},getPreviousSourceNode:function(c,e,b){if(b&&!b.call)var a=b,b=function(d){return!d.equals(a)};var c=!c&&this.getLast&&this.getLast(),d;if(!c){if(this.type== 51CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;c=this.getPrevious()}for(;!c&&(d=(d||this).getParent());){if(b&&b(d,true)===false)return null;c=d.getPrevious()}return!c||b&&b(c)===false?null:e&&c.type!=e?c.getPreviousSourceNode(false,e,b):c},getPrevious:function(c){var e=this.$,b;do b=(e=e.previousSibling)&&e.nodeType!=10&&new CKEDITOR.dom.node(e);while(b&&c&&!c(b));return b},getNext:function(c){var e=this.$,b;do b=(e=e.nextSibling)&&new CKEDITOR.dom.node(e);while(b&&c&&!c(b));return b}, 52getParent:function(c){var e=this.$.parentNode;return e&&(e.nodeType==CKEDITOR.NODE_ELEMENT||c&&e.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(e):null},getParents:function(c){var e=this,b=[];do b[c?"push":"unshift"](e);while(e=e.getParent());return b},getCommonAncestor:function(c){if(c.equals(this))return this;if(c.contains&&c.contains(this))return c;var e=this.contains?this:this.getParent();do if(e.contains(c))return e;while(e=e.getParent());return null},getPosition:function(c){var e= 53this.$,b=c.$;if(e.compareDocumentPosition)return e.compareDocumentPosition(b);if(e==b)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&c.type==CKEDITOR.NODE_ELEMENT){if(e.contains){if(e.contains(b))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(b.contains(e))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in e)return e.sourceIndex<0||b.sourceIndex<0?CKEDITOR.POSITION_DISCONNECTED:e.sourceIndex<b.sourceIndex?CKEDITOR.POSITION_PRECEDING: 54CKEDITOR.POSITION_FOLLOWING}for(var e=this.getAddress(),c=c.getAddress(),b=Math.min(e.length,c.length),a=0;a<=b-1;a++)if(e[a]!=c[a]){if(a<b)return e[a]<c[a]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;break}return e.length<c.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(c,e){var b=this.$,a;if(!e)b=b.parentNode;for(;b;){if(b.nodeName&&(a=b.nodeName.toLowerCase(),typeof c=="string"?a==c:a in 55c))return new CKEDITOR.dom.node(b);try{b=b.parentNode}catch(d){b=null}}return null},hasAscendant:function(c,e){var b=this.$;if(!e)b=b.parentNode;for(;b;){if(b.nodeName&&b.nodeName.toLowerCase()==c)return true;b=b.parentNode}return false},move:function(c,e){c.append(this.remove(),e)},remove:function(c){var e=this.$,b=e.parentNode;if(b){if(c)for(;c=e.firstChild;)b.insertBefore(e.removeChild(c),e);b.removeChild(e)}return this},replace:function(c){this.insertBefore(c);c.remove()},trim:function(){this.ltrim(); 56this.rtrim()},ltrim:function(){for(var c;this.getFirst&&(c=this.getFirst());){if(c.type==CKEDITOR.NODE_TEXT){var e=CKEDITOR.tools.ltrim(c.getText()),b=c.getLength();if(e){if(e.length<b){c.split(b-e.length);this.$.removeChild(this.$.firstChild)}}else{c.remove();continue}}break}},rtrim:function(){for(var c;this.getLast&&(c=this.getLast());){if(c.type==CKEDITOR.NODE_TEXT){var e=CKEDITOR.tools.rtrim(c.getText()),b=c.getLength();if(e){if(e.length<b){c.split(e.length);this.$.lastChild.parentNode.removeChild(this.$.lastChild)}}else{c.remove(); 57continue}}break}if(CKEDITOR.env.needsBrFiller)(c=this.$.lastChild)&&(c.type==1&&c.nodeName.toLowerCase()=="br")&&c.parentNode.removeChild(c)},isReadOnly:function(){var c=this;this.type!=CKEDITOR.NODE_ELEMENT&&(c=this.getParent());if(c&&typeof c.$.isContentEditable!="undefined")return!(c.$.isContentEditable||c.data("cke-editable"));for(;c;){if(c.data("cke-editable"))break;if(c.getAttribute("contentEditable")=="false")return true;if(c.getAttribute("contentEditable")=="true")break;c=c.getParent()}return!c}}), 58CKEDITOR.dom.window=function(c){CKEDITOR.dom.domObject.call(this,c)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focu
58s()},getViewPaneSize:function(){var c=this.$.document,e=c.compatMode=="CSS1Compat";return{width:(e?c.documentElement.clientWidth:c.body.clientWidth)||0,height:(e?c.documentElement.clientHeight:c.body.clientHeight)||0}},getScrollPosition:function(){var c=this.$;if("pageXOffset"in c)return{x:c.pageXOffset|| 590,y:c.pageYOffset||0};c=c.document;return{x:c.documentElement.scrollLeft||c.body.scrollLeft||0,y:c.documentElement.scrollTop||c.body.scrollTop||0}},getFrame:function(){var c=this.$.frameElement;return c?new CKEDITOR.dom.element.get(c):null}}),CKEDITOR.dom.document=function(c){CKEDITOR.dom.domObject.call(this,c)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(c){if(this.$.createStyleSheet)this.$.createStyleSheet(c); 60else{var e=new CKEDITOR.dom.element("link");e.setAttributes({rel:"stylesheet",type:"text/css",href:c});this.getHead().append(e)}},appendStyleText:function(c){if(this.$.createStyleSheet){var e=this.$.createStyleSheet("");e.cssText=c}else{var b=new CKEDITOR.dom.element("style",this);b.append(new CKEDITOR.dom.text(c,this));this.getHead().append(b)}return e||b.$.sheet},createElement:function(c,e){var b=new CKEDITOR.dom.element(c,this);if(e){e.attributes&&b.setAttributes(e.attributes);e.styles&&b.setStyles(e.styles)}return b}, 61createText:function(c){return new CKEDITOR.dom.text(c,this)},focus:function(){this.getWindow().focus()},getActive:function(){return new CKEDITOR.dom.element(this.$.activeElement)},getById:function(c){return(c=this.$.getElementById(c))?new CKEDITOR.dom.element(c):null},getByAddress:function(c,e){for(var b=this.$.documentElement,a=0;b&&a<c.length;a++){var d=c[a];if(e)for(var i=-1,g=0;g<b.childNodes.length;g++){var f=b.childNodes[g];if(!(e===true&&f.nodeType==3&&f.previousSibling&&f.previousSibling.nodeType== 623)){i++;if(i==d){b=f;break}}}else b=b.childNodes[d]}return b?new CKEDITOR.dom.node(b):null},getElementsByTag:function(c,e){if((!CKEDITOR.env.ie||document.documentMode>8)&&e)c=e+":"+c;return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(c))},getHead:function(){var c=this.$.getElementsByTagName("head")[0];return c=c?new CKEDITOR.dom.element(c):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)}, 63getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(c){this.$.open("text/html","replace");CKEDITOR.env.ie&&(c=c.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$&\n<script data-cke-temp="1">('+CKEDITOR.tools.fixDomain+")();<\/script>"));this.$.write(c);this.$.close()},find:function(c){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(c))},findOne:function(c){return(c=this.$.querySelector(c))?new CKEDITOR.dom.element(c):null},_getHtml5ShivFrag:function(){var c= 64this.getCustomData("html5ShivFrag");if(!c){c=this.$.createDocumentFragment();CKEDITOR.tools.enableHtml5Elements(c,true);this.setCustomData("html5ShivFrag",c)}return c}}),CKEDITOR.dom.nodeList=function(c){this.$=c},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(c){if(c<0||c>=this.$.length)return null;return(c=this.$[c])?new CKEDITOR.dom.node(c):null}},CKEDITOR.dom.element=function(c,e){typeof c=="string"&&(c=(e?e.$:document).createElement(c));CKEDITOR.dom.domObject.call(this, 65c)},CKEDITOR.dom.element.get=function(c){return(c=typeof c=="string"?document.getElementById(c)||document.getElementsByName(c)[0]:c)&&(c.$?c:new CKEDITOR.dom.element(c))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(c,e){var b=new CKEDITOR.dom.element("div",e);b.setHtml(c);return b.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(c,e,b,a){var d=e.getCustomData("list_marker_id")||e.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"), 66i=e.getCustomData("list_marker_names")||e.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");c[d]=e;i[b]=1;return e.setCustomData(b,a)},CKEDITOR.dom.element.clearAllMarkers=function(c){for(var e in c)CKEDITOR.dom.element.clearMarkers(c,c[e],1)},CKEDITOR.dom.element.clearMarkers=function(c,e,b){var a=e.getCustomData("list_marker_names"),d=e.getCustomData("list_marker_id"),i;for(i in a)e.removeCustomData(i);e.removeCustomData("list_marker_names");if(b){e.removeCustomData("list_marker_id"); 67delete c[d]}},function(){function c(d){var a=true;if(!d.$.id){d.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber();a=false}return function(){a||d.removeAttribute("id")}}function e(d,a){return"#"+d.$.id+" "+a.split(/,\s*/).join(", #"+d.$.id+" ")}
67function b(d){for(var b=0,c=0,f=a[d].length;c<f;c++)b=b+(parseInt(this.getComputedStyle(a[d][c])||0,10)||0);return b}CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:function(d){var a=this.$.className;a&&(RegExp("(?:^|\\s)"+ 68d+"(?:\\s|$)","").test(a)||(a=a+(" "+d)));this.$.className=a||d},removeClass:function(d){var a=this.getAttribute("class");if(a){d=RegExp("(?:^|\\s+)"+d+"(?=\\s|$)","i");if(d.test(a))(a=a.replace(d,"").replace(/^\s+/,""))?this.setAttribute("class",a):this.removeAttribute("class")}return this},hasClass:function(d){return RegExp("(?:^|\\s+)"+d+"(?=\\s|$)","").test(this.getAttribute("class"))},append:function(d,a){typeof d=="string"&&(d=this.getDocument().createElement(d));a?this.$.insertBefore(d.$,this.$.firstChild): 69this.$.appendChild(d.$);return d},appendHtml:function(d){if(this.$.childNodes.length){var a=new CKEDITOR.dom.element("div",this.getDocument());a.setHtml(d);a.moveChildren(this)}else this.setHtml(d)},appendText:function(d){this.$.text!=void 0?this.$.text=this.$.text+d:this.append(new CKEDITOR.dom.text(d))},appendBogus:function(d){if(d||CKEDITOR.env.needsBrFiller||CKEDITOR.env.opera){for(d=this.getLast();d&&d.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(d.getText());)d=d.getPrevious();if(!d||!d.is|| 70!d.is("br")){d=CKEDITOR.env.opera?this.getDocument().createText(""):this.getDocument().createElement("br");CKEDITOR.env.gecko&&d.setAttribute("type","_moz");this.append(d)}}},breakParent:function(d){var a=new CKEDITOR.dom.range(this.getDocument());a.setStartAfter(this);a.setEndAfter(d);d=a.extractContents();a.insertNode(this.remove());d.insertAfterNode(this)},contains:CKEDITOR.env.ie||CKEDITOR.env.webkit?function(d){var a=this.$;return d.type!=CKEDITOR.NODE_ELEMENT?a.contains(d.getParent().$):a!= 71d.$&&a.contains(d.$)}:function(d){return!!(this.$.compareDocumentPosition(d.$)&16)},focus:function(){function d(){try{this.$.focus()}catch(d){}}return function(a){a?CKEDITOR.tools.setTimeout(d,100,this):d.call(this)}}(),getHtml:function(){var d=this.$.innerHTML;return CKEDITOR.env.ie?d.replace(/<\?[^>]*>/g,""):d},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var d=this.$.ownerDocument.createElement("div");d.appendChild(this.$.cloneNode(true));return d.innerHTML}, 72getClientRect:function(){var d=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!d.width&&(d.width=d.right-d.left);!d.height&&(d.height=d.bottom-d.top);return d},setHtml:CKEDITOR.env.ie&&CKEDITOR.env.version<9?function(d){try{var a=this.$;if(this.getParent())return a.innerHTML=d;var b=this.getDocument()._getHtml5ShivFrag();b.appendChild(a);a.innerHTML=d;b.removeChild(a);return d}catch(c){this.$.innerHTML="";a=new CKEDITOR.dom.element("body",this.getDocument());a.$.innerHTML=d;for(a=a.getChildren();a.count();)this.append(a.getItem(0)); 73return d}}:function(d){return this.$.innerHTML=d},setText:function(d){CKEDITOR.dom.element.prototype.setText=this.$.innerText!=void 0?function(d){return this.$.innerText=d}:function(d){return this.$.textContent=d};return this.setText(d)},getAttribute:function(){var d=function(d){return this.$.getAttribute(d,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(d){switch(d){case "class":d="className";break;case "http-equiv":d="httpEquiv";break;case "name":return this.$.name; 74case "tabindex":d=this.$.getAttribute(d,2);d!==0&&this.$.tabIndex===0&&(d=null);return d;case "checked":d=this.$.attributes.getNamedItem(d);return(d.specified?d.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[d];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(d,2)}:d}(),getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)}, 75getComputedStyle:CKEDITOR.env.ie?function(d){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(d)]}:function(d){var a=this.getWindow().$.getComputedStyle(this.$,null);return a?a.getPropertyValue(d):""},getDtd:function(){var d=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return d};return d},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:CKEDITOR.env.ie?function(){var d=this.$.tabIndex;d===0&&(!CKEDITOR.dtd.$tabIndex[this.getName()]&&parseInt(this.getAttribute("tabindex"), 7610)!==0)&&(d=-1);return d}:CKEDITOR.env.webkit?function(){var d=this.$.tabIndex;if(d==void 0){d=parseInt(this.getAttribute("tabindex"),10);isNaN(d)&&(d=-1)}return d}: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 d=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&!(document.documentMode> 778)){var a=this.$.scopeName;a!="HTML"&&(d=a.toLowerCase()+":"+d)}return(this.getName=function(){return d})()},getValue:function(){return this.$.value},getFirst:function(d){var a=this.$.firstChild;(a=a&&new CKEDITOR.dom.node(a))&&(d&&!d(a))&&(a=a.getNext(d));return a},getLast:function(d){var a=this.$.lastChild;(a=a&&new CKEDITOR.dom.node(a))&&(d&&!d(a))&&(a=a.getPrevious(d));return a},getStyle:function(d){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(d)]},is:function(){var d=this.getName(); 78if(typeof arguments[0]=="object")return!!arguments[0][d];for(var a=0;a<arguments.length;a++)if(arguments[a]==d)return true;return false},isEditable:function(d){var a=this.getName();if(this.isReadOnly()||this.getComputedStyle("display")=="none"||this.getComputedStyle("visibility")=="hidden"||CKEDITOR.dtd.$nonEditable[a]||CKEDITOR.dtd.$empty[a]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())return false;
78if(d!==false){d=CKEDITOR.dtd[a]||CKEDITOR.dtd.span; 79return!(!d||!d["#"])}return true},isIdentical:function(d){var a=this.clone(0,1),d=d.clone(0,1);a.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);d.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);if(a.$.isEqualNode){a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText);d.$.style.cssText=CKEDITOR.tools.normalizeCssText(d.$.style.cssText);return a.$.isEqualNode(d.$)}a=a.getOuterHtml();d=d.getOuterHtml(); 80if(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(a);a=b.getHtml();b.setHtml(d);d=b.getHtml()}}return a==d},isVisible:function(){var d=(this.$.offsetHeight||this.$.offsetWidth)&&this.getComputedStyle("visibility")!="hidden",a,b;if(d&&(CKEDITOR.env.webkit||CKEDITOR.env.opera)){a=this.getWindow();if(!a.equals(CKEDITOR.document.getWindow())&&(b=a.$.frameElement))d=(new CKEDITOR.dom.element(b)).isVisible()}return!!d}, 81isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return false;for(var d=this.getChildren(),a=0,b=d.count();a<b;a++){var c=d.getItem(a);if(!(c.type==CKEDITOR.NODE_ELEMENT&&c.data("cke-bookmark"))&&(c.type==CKEDITOR.NODE_ELEMENT&&!c.isEmptyInlineRemoveable()||c.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(c.getText())))return false}return true},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(){for(var d=this.$.attributes,a=0;a< 82d.length;a++){var b=d[a];switch(b.nodeName){case "class":if(this.getAttribute("class"))return true;case "data-cke-expando":continue;
82default:if(b.specified)return true}}return false}:function(){var d=this.$.attributes,a=d.length,b={"data-cke-expando":1,_moz_dirty:1};return a>0&&(a>2||!b[d[0].nodeName]||a==2&&!b[d[1].nodeName])},hasAttribute:function(){function d(d){d=this.$.attributes.getNamedItem(d);return!(!d||!d.specified)}return CKEDITOR.env.ie&&CKEDITOR.env.version<8?function(a){return a=="name"? 83!!this.$.name:d.call(this,a)}:d}(),hide:function(){this.setStyle("display","none")},moveChildren:function(d,a){var b=this.$,d=d.$;if(b!=d){var c;if(a)for(;c=b.lastChild;)d.insertBefore(b.removeChild(c),d.firstChild);else for(;c=b.firstChild;)d.appendChild(b.removeChild(c))}},mergeSiblings:function(){function d(d,a,b){if(a&&a.type==CKEDITOR.NODE_ELEMENT){for(var c=[];a.data("cke-bookmark")||a.isEmptyInlineRemoveable();){c.push(a);a=b?a.getNext():a.getPrevious();if(!a||a.type!=CKEDITOR.NODE_ELEMENT)return}if(d.isIdentical(a)){for(var e= 84b?d.getLast():d.getFirst();c.length;)c.shift().move(d,!b);a.moveChildren(d,!b);a.remove();e&&e.type==CKEDITOR.NODE_ELEMENT&&e.mergeSiblings()}}}return function(a){if(a===false||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a")){d(this,this.getNext(),true);d(this,this.getPrevious())}}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var d=function(d,a){this.$.setAttribute(d,a);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)? 85function(a,b){a=="class"?this.$.className=b:a=="style"?this.$.style.cssText=b:a=="tabindex"?this.$.tabIndex=b:a=="checked"?this.$.checked=b:a=="contenteditable"?d.call(this,"contentEditable",b):d.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(a,b){if(a=="src"&&b.match(/^http:\/\//))try{d.apply(this,arguments)}catch(c){}else d.apply(this,arguments);return this}:d}(),setAttributes:function(d){for(var a in d)this.setAttribute(a,d[a]);return this},setValue:function(d){this.$.value= 86d;return this},removeAttribute:function(){var d=function(d){this.$.removeAttribute(d)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(d){d=="class"?d="className":d=="tabindex"?d="tabIndex":d=="contenteditable"&&(d="contentEditable");this.$.removeAttribute(d)}:d}(),removeAttributes:function(d){if(CKEDITOR.tools.isArray(d))for(var a=0;a<d.length;a++)this.removeAttribute(d[a]);else for(a in d)d.hasOwnProperty(a)&&this.removeAttribute(a)},removeStyle:function(d){var a= 87this.$.style;if(!a.removeProperty&&(d=="border"||d=="margin"||d=="padding")){var b=["top","left","right","bottom"],c;d=="border"&&(c=["color","style","width"]);for(var a=[],h=0;h<b.length;h++)if(c)for(var e=0;e<c.length;e++)a.push([d,b[h],c[e]].join("-"));else a.push([d,b[h]].join("-"));for(d=0;d<a.length;d++)this.removeStyle(a[d])}else{a.removeProperty?a.removeProperty(d):a.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(d));this.$.style.cssText||this.removeAttribute("style")}},setStyle:function(d, 88a){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(d)]=a;return this},setStyles:function(d){for(var a in d)this.setStyle(a,d[a]);return this},setOpacity:function(d){if(CKEDITOR.env.ie&&CKEDITOR.env.version<9){d=Math.round(d*100);this.setStyle("filter",d>=100?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+d+")")}else this.setStyle("opacity",d)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none"));if(CKEDITOR.env.ie||CKEDITOR.env.opera){this.setAttribute("unselectable", 89"on");for(var d,a=this.getElementsByTag("*"),b=0,c=a.count();b<c;b++){d=a.getItem(b);d.setAttribute("unselectable","on")}}},getPositionedAncestor:function(){for(var a=this;a.getName()!="html";){if(a.getComputedStyle("position")!="static")return a;a=a.getParent()}return null},getDocumentPosition:function(a){var b=0,c=0,f=this.getDocument(),h=f.getBody(),e=f.$.compatMode=="BackCompat";if(document.documentElement.getBoundingClientRect){var l=this.$.getBoundingClientRect(),m=f.$.documentElement,n=m.clientTop|| 90h.$.clientTop||0,s=m.clientLeft||h.$.clientLeft||0,j=true;if(CKEDITOR.env.ie){j=f.getDocumentElement().contains(this);f=f.getBody().contains(this);j=e&&f||!e&&j}if(j){b=l.left+(!e&&m.scrollLeft||h.$.scrollLeft);b=b-s;c=l.top+(!e&&m.scrollTop||h.$.scrollTop);c=c-n}}else{h=this;for(f=null;h&&!(h.getName()=="body"||h.getName()=="html");){b=b+(h.$.offsetLeft-h.$.scrollLeft);c=c+(h.$.offsetTop-h.$.scrollTop);
90if(!h.equals(this)){b=b+(h.$.clientLeft||0);c=c+(h.$.clientTop||0)}for(;f&&!f.equals(h);){b=b- 91f.$.scrollLeft;c=c-f.$.scrollTop;f=f.getParent()}f=h;h=(l=h.$.offsetParent)?new CKEDITOR.dom.element(l):null}}if(a){h=this.getWindow();f=a.getWindow();if(!h.equals(f)&&h.$.frameElement){a=(new CKEDITOR.dom.element(h.$.frameElement)).getDocumentPosition(a);b=b+a.x;c=c+a.y}}if(!document.documentElement.getBoundingClientRect&&CKEDITOR.env.gecko&&!e){b=b+(this.$.clientLeft?1:0);c=c+(this.$.clientTop?1:0)}return{x:b,y:c}},scrollIntoView:function(a){var b=this.getParent();if(b){do{(b.$.clientWidth&&b.$.clientWidth< 92b.$.scrollWidth||b.$.clientHeight&&b.$.clientHeight<b.$.scrollHeight)&&!b.is("body")&&this.scrollIntoParent(b,a,1);if(b.is("html")){var c=b.getWindow();try{var f=c.$.frameElement;f&&(b=new CKEDITOR.dom.element(f))}catch(h){}}}while(b=b.getParent())}},scrollIntoParent:function(a,b,c){var f,h,e,l;function m(b,c){if(/body|html/.test(a.getName()))a.getWindow().$.scrollBy(b,c);else{a.$.scrollLeft=a.$.scrollLeft+b;a.$.scrollTop=a.$.scrollTop+c}}function n(a,d){var b={x:0,y:0};if(!a.is(j?"body":"html")){var c= 93a.$.getBoundingClientRect();b.x=c.left;b.y=c.top}c=a.getWindow();if(!c.equals(d)){c=n(CKEDITOR.dom.element.get(c.$.frameElement),d);b.x=b.x+c.x;b.y=b.y+c.y}return b}function s(a,d){return parseInt(a.getComputedStyle("margin-"+d)||0,10)||0}!a&&(a=this.getWindow());e=a.getDocument();var j=e.$.compatMode=="BackCompat";a instanceof CKEDITOR.dom.window&&(a=j?e.getBody():e.getDocumentElement());e=a.getWindow();h=n(this,e);var o=n(a,e),t=this.$.offsetHeight;f=this.$.offsetWidth;var C=a.$.clientHeight,q= 94a.$.clientWidth;e=h.x-s(this,"left")-o.x||0;l=h.y-s(this,"top")-o.y||0;f=h.x+f+s(this,"right")-(o.x+q)||0;h=h.y+t+s(this,"bottom")-(o.y+C)||0;if(l<0||h>0)m(0,b===true?l:b===false?h:l<0?l:h);if(c&&(e<0||f>0))m(e<0?e:f,0)},setState:function(a,b,c){b=b||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(b+"_on");this.removeClass(b+"_off");this.removeClass(b+"_disabled");c&&this.setAttribute("aria-pressed",true);c&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(b+ 95"_disabled");this.removeClass(b+"_off");this.removeClass(b+"_on");c&&this.setAttribute("aria-disabled",true);c&&this.removeAttribute("aria-pressed");break;default:this.addClass(b+"_off");this.removeClass(b+"_on");this.removeClass(b+"_disabled");c&&this.removeAttribute("aria-pressed");c&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(b){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a, 96b){for(var c=this.$.attributes,b=b||{},f=0;f<c.length;f++){var h=c[f],e=h.nodeName.toLowerCase(),l;if(!(e in b))if(e=="checked"&&(l=this.getAttribute(e)))a.setAttribute(e,l);else if(h.specified||CKEDITOR.env.ie&&h.nodeValue&&e=="value"){l=this.getAttribute(e);if(l===null)l=h.nodeValue;a.setAttribute(e,l)}}if(this.$.style.cssText!=="")a.$.style.cssText=this.$.style.cssText},renameNode:function(a){if(this.getName()!=a){var b=this.getDocument(),a=new CKEDITOR.dom.element(a,b);this.copyAttributes(a); 97this.moveChildren(a);this.getParent()&&this.$.parentNode.replaceChild(a.$,this.$);a.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=a.$;delete this.getName}},getChild:function(){function a(b,d){var c=b.childNodes;if(d>=0&&d<c.length)return c[d]}return function(b){var c=this.$;if(b.slice)for(;b.length>0&&c;)c=a(c,b.shift());else c=a(c,b);return c?new CKEDITOR.dom.node(c):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){this.on("contextmenu",function(a){a.data.getTarget().hasClass("cke_enable_context_menu")|| 98a.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,c;for(b in a){c=a[b];if(c.element.equals(this)&&c.elementMode!= 99CKEDITOR.ELEMENT_MODE_APPENDTO)return c}return null},find:function(a){var b=c(this),a=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(e(this,a)));b();return a},findOne:function(a){var b=c(this),a=this.$.querySelector(e(this,a));b();return a?new CKEDITOR.dom.element(a):null},forEach:function(a,b,c){if(!c&&(!b||this.type==b))var f=a(this);if(f!==false)for(var c=this.getChildren(),h=0;h<c.count();h++){f=c.getItem(h);f.type==CKEDITOR.NODE_ELEMENT?f.forEach(a,b):(!b||f.type==b)&&a(f)}}});var a={width:["border-left-width", 100"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,e){if(typeof c=="number"){if(e&&(!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 e=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(a)],this.$["client"+CKEDITOR.tools.capitalize(a)])||0;c&&(e=e-b.call(this,a));return e}}(), 101CKEDITOR.dom.documentFragment=function(c){c=c||CKEDITOR.document;this.$=c.type==CKEDITOR.NODE_DOCUMENT?c.$.createDocumentFragment():c},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(c){c=c.$;c.parentNode.insertBefore(this.$,c.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, 102trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1}),function(){function c(a,b){var d=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(d.collapsed){this.end();return null}d.optimize()}var c,l=d.startContainer;c=d.endContainer;var h=d.startOffset,f=d.endOffset,e,g=this.guard,i=this.type,k=a?"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var r=c.type==CKEDITOR.NODE_ELEMENT?c:c.getParent(),p=c.type==CKEDITOR.NODE_ELEMENT? 103c.getChild(f):c.getNext();this._.guardLTR=function(a,b){return(!b||!r.equals(a))&&(!p||!a.equals(p))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(d.root))}}if(a&&!this._.guardRTL){var x=l.type==CKEDITOR.NODE_ELEMENT?l:l.getParent(),v=l.type==CKEDITOR.NODE_ELEMENT?h?l.getChild(h-1):null:l.getPrevious();this._.guardRTL=function(a,b){return(!b||!x.equals(a))&&(!v||!a.equals(v))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(d.root))}}var y=a?this._.guardRTL:this._.guardLTR;e=g?function(a,b){return y(a, 104b)===false?false:g(a,b)}:y;if(this.current)c=this.current[k](false,i,e);else{if(a)c.type==CKEDITOR.NODE_ELEMENT&&(c=f>0?c.getChild(f-1):e(c,true)===false?null:c.getPreviousSourceNode(true,i,e));else{c=l;if(c.type==CKEDITOR.NODE_ELEMENT&&!(c=c.getChild(h)))c=e(l,true)===false?null:l.getNextSourceNode(true,i,e)}c&&e(c)===false&&(c=null)}for(;c&&!this._.end;){this.current=c;
104if(!this.evaluator||this.evaluator(c)!==false){if(!b)return c}else if(b&&this.evaluator)return false;c=c[k](false,i,e)}this.end(); 105return this.current=null}function e(a){for(var b,d=null;b=c.call(this,a);)d=b;return d}function b(a){if(k(a))return false;if(a.type==CKEDITOR.NODE_TEXT)return true;if(a.type==CKEDITOR.NODE_ELEMENT){if(a.is(CKEDITOR.dtd.$inline)||a.getAttribute("contenteditable")=="false")return true;var b;if(b=!CKEDITOR.env.needsBrFiller)if(b=a.is(l))a:{b=0;for(var c=a.getChildCount();b<c;++b)if(!k(a.getChild(b))){b=false;break a}b=true}if(b)return true}return false}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(a){this.range= 106a;this._={}},proto:{end:function(){this._.end=1},next:function(){return c.call(this)},previous:function(){return c.call(this,1)},checkForward:function(){return c.call(this,0,1)!==false},checkBackward:function(){return c.call(this,1,1)!==false},lastForward:function(){return e.call(this)},lastBackward:function(){return e.call(this,1)},reset:function(){delete this.current;this._={}}}});var a={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1, 107"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},d={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(b){return this.getComputedStyle("float")=="none"&&!(this.getComputedStyle("position")in d)&&a[this.getComputedStyle("display")]?true:!!(this.is(CKEDITOR.dtd.$block)||b&&this.is(b))};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})}; 108CKEDITOR.dom.walker.bookmark=function(a,b){function c(a){return a&&a.getName&&a.getName()=="span"&&a.data("cke-bookmark")}return function(d){var l,h;l=d&&d.type!=CKEDITOR.NODE_ELEMENT&&(h=d.getParent())&&c(h);l=a?l:l||c(d);return!!(b^l)}};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(); 109return 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!g(a)&&!f(a)}return function(c){var d=CKEDITOR.env.needsBrFiller?c.is&&c.is("br"):c.getText&&i.test(c.getText());if(d){d=c.getParent();c=c.getNext(b);d=d.isBlockBoundary()&&(!c||c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary())}return!!(a^ 110d)}};CKEDITOR.dom.walker.temp=function(a){return function(b){b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent());b=b&&b.hasAttribute("data-cke-temp");return!!(a^b)}};var i=/^[\t\r\n ]*(?: |\xa0)$/,g=CKEDITOR.dom.walker.whitespaces(),f=CKEDITOR.dom.walker.bookmark(),h=CKEDITOR.dom.walker.temp();CKEDITOR.dom.walker.ignored=function(a){return function(b){b=g(b)||f(b)||h(b);return!!(a^b)}};var k=CKEDITOR.dom.walker.ignored(),l=function(a){var b={},c;for(c in a)CKEDITOR.dtd[c]["#"]&&(b[c]=1);return b}(CKEDITOR.dtd.$block); 111CKEDITOR.dom.walker.editable=function(a){return function(c){return!!(a^b(c))}};CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(f(a)||g(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$inline)&&!a.is(CKEDITOR.dtd.$empty));return a&&(CKEDITOR.env.needsBrFiller?a.is&&a.is("br"):a.getText&&i.test(a.getText()))?a:false}}(),CKEDITOR.dom.range=function(c){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null;this.collapsed=true; 112var e=c instanceof CKEDITOR.dom.document;this.document=e?c:c.getDocument();this.root=e?c.getBody():c},function(){function c(){var a=false,b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(true),d=CKEDITOR.dom.walker.bogus();return function(j){if(c(j)||b(j))return true;if(d(j)&&!a)return a=true;return j.type==CKEDITOR.NODE_TEXT&&(j.hasAscendant("pre")||CKEDITOR.tools.trim(j.getText()).length)||j.type==CKEDITOR.NODE_ELEMENT&&!j.is(i)?false:true}}
112function e(a){var b=CKEDITOR.dom.walker.whitespaces(), 113c=CKEDITOR.dom.walker.bookmark(1);return function(d){return c(d)||b(d)?true:!a&&g(d)||d.type==CKEDITOR.NODE_ELEMENT&&d.is(CKEDITOR.dtd.$removeEmpty)}}function b(a){return function(){var b;return this[a?"getPreviousNode":"getNextNode"](function(a){!b&&k(a)&&(b=a);return h(a)&&!(g(a)&&a.equals(b))})}}var a=function(a){a.collapsed=a.startContainer&&a.endContainer&&a.startContainer.equals(a.endContainer)&&a.startOffset==a.endOffset},d=function(a,b,c,d){a.optimizeBookmark();var j=a.startContainer,h=a.endContainer, 114f=a.startOffset,e=a.endOffset,g,u;if(h.type==CKEDITOR.NODE_TEXT)h=h.split(e);else if(h.getChildCount()>0)if(e>=h.getChildCount()){h=h.append(a.document.createText(""));u=true}else h=h.getChild(e);if(j.type==CKEDITOR.NODE_TEXT){j.split(f);j.equals(h)&&(h=j.getNext())}else if(f)if(f>=j.getChildCount()){j=j.append(a.document.createText(""));g=true}else j=j.getChild(f).getPrevious();else{j=j.append(a.document.createText(""),1);g=true}var f=j.getParents(),e=h.getParents(),i,k,r;for(i=0;i<f.length;i++){k= 115f[i];r=e[i];if(!k.equals(r))break}for(var p=c,x,v,y,A=i;A<f.length;A++){x=f[A];p&&!x.equals(j)&&(v=p.append(x.clone()));for(x=x.getNext();x;){if(x.equals(e[A])||x.equals(h))break;y=x.getNext();if(b==2)p.append(x.clone(true));else{x.remove();b==1&&p.append(x)}x=y}p&&(p=v)}p=c;for(c=i;c<e.length;c++){x=e[c];b>0&&!x.equals(h)&&(v=p.append(x.clone()));if(!f[c]||x.$.parentNode!=f[c].$.parentNode)for(x=x.getPrevious();x;){if(x.equals(f[c])||x.equals(j))break;y=x.getPrevious();if(b==2)p.$.insertBefore(x.$.cloneNode(true), 116p.$.firstChild);else{x.remove();b==1&&p.$.insertBefore(x.$,p.$.firstChild)}x=y}p&&(p=v)}if(b==2){k=a.startContainer;if(k.type==CKEDITOR.NODE_TEXT){k.$.data=k.$.data+k.$.nextSibling.data;k.$.parentNode.removeChild(k.$.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(k&&r&&(j.$.parentNode!=k.$.parentNode||h.$.parentNode!=r.$.parentNode)){b=r.getIndex();g&&r.$.parentNode==j.$.parentNode&& 117b--;if(d&&k.type==CKEDITOR.NODE_ELEMENT){d=CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none"> </span>',a.document);d.insertAfter(k);k.mergeSiblings(false);a.moveToBookmark({startNode:d})}else a.setStart(r.getParent(),b)}a.collapse(true)}g&&j.remove();u&&h.$.parentNode&&h.remove()},i={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},g=CKEDITOR.dom.walker.bogus(), 118f=/^[\t\r\n ]*(?: |\xa0)$/,h=CKEDITOR.dom.walker.editable(),k=CKEDITOR.dom.walker.ignored(true);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= 119this.endOffset}this.collapsed=true},cloneContents:function(){var a=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||d(this,2,a);return a},deleteContents:function(a){this.collapsed||d(this,0,null,a)},extractContents:function(a){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||d(this,1,b,a);return b},createBookmark:function(a){var b,c,d,j,h=this.collapsed;b=this.document.createElement("span");b.data("cke-bookmark",1);b.setStyle("display","none");b.setHtml(" "); 120if(a){d="cke_bm_"+CKEDITOR.tools.getNextNumber();b.setAttribute("id",d+(h?"C":"S"))}if(!h){c=b.clone();c.setHtml(" ");a&&c.setAttribute("id",d+"E");j=this.clone();j.collapse();j.insertNode(c)}j=this.clone();j.collapse(true);j.insertNode(b);if(c){this.setStartAfter(b);this.setEndBefore(c)}else this.moveToPosition(b,CKEDITOR.POSITION_AFTER_END);
120return{startNode:a?d+(h?"C":"S"):b,endNode:a?d+"E":c,serializable:a,collapsed:h}},createBookmark2:function(){function a(b){var c=b.container,d=b.offset, 121j;j=c;var l=d;j=j.type!=CKEDITOR.NODE_ELEMENT||l===0||l==j.getChildCount()?0:j.getChild(l-1).type==CKEDITOR.NODE_TEXT&&j.getChild(l).type==CKEDITOR.NODE_TEXT;if(j){c=c.getChild(d-1);d=c.getLength()}c.type==CKEDITOR.NODE_ELEMENT&&d>1&&(d=c.getChild(d-1).getIndex(true)+1);if(c.type==CKEDITOR.NODE_TEXT){j=c;for(l=0;(j=j.getPrevious())&&j.type==CKEDITOR.NODE_TEXT;)l=l+j.getLength();d=d+l}b.container=c;b.offset=d}return function(b){var c=this.collapsed,d={container:this.startContainer,offset:this.startOffset}, 122j={container:this.endContainer,offset:this.endOffset};if(b){a(d);c||a(j)}return{start:d.container.getAddress(b),end:c?null:j.container.getAddress(b),startOffset:d.offset,endOffset:j.offset,normalized:b,collapsed:c,is2:true}}}(),moveToBookmark:function(a){if(a.is2){var b=this.document.getByAddress(a.start,a.normalized),c=a.startOffset,d=a.end&&this.document.getByAddress(a.end,a.normalized),a=a.endOffset;this.setStart(b,c);d?this.setEnd(d,a):this.collapse(true)}else{b=(c=a.serializable)?this.document.getById(a.startNode): 123a.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,d=this.endOffset,j;if(a.type==CKEDITOR.NODE_ELEMENT){j=a.getChildCount();if(j>c)a=a.getChild(c);else if(j<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){j= 124b.getChildCount();if(j>d)b=b.getChild(d).getPreviousSourceNode(true);else if(j<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,d=this.endContainer,c=c.equals(d)?a&&c.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?c.getChild(this.startOffset):c:c.getCommonAncestor(d);return b&&!c.is?c.getParent(): 125c},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"))&& 126this.setEndAt(b,CKEDITOR.POSITION_AFTER_END)},trim:function(a,b){var c=this.startContainer,d=this.startOffset,j=this.collapsed;if((!a||j)&&c&&c.type==CKEDITOR.NODE_TEXT){if(d)if(d>=c.getLength()){d=c.getIndex()+1;c=c.getParent()}else{var h=c.split(d),d=c.getIndex()+1,c=c.getParent();if(this.startContainer.equals(this.endContainer))this.setEnd(h,this.endOffset-this.startOffset);else if(c.equals(this.endContainer))this.endOffset=this.endOffset+1}else{d=c.getIndex();c=c.getParent()}this.setStart(c,d); 127if(j){this.collapse(true);return}}c=this.endContainer;d=this.endOffset;if(!b&&!j&&c&&c.type==CKEDITOR.NODE_TEXT){if(d){d>=c.getLength()||c.split(d);d=c.getIndex()+1}else d=c.getIndex();c=c.getParent();this.setEnd(c,d)}},enlarge:function(a,b){function c(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")?null:a}var d=RegExp(/[^\s\ufeff]/);switch(a){case CKEDITOR.ENLARGE_INLINE:var j=1;case CKEDITOR.ENLARGE_ELEMENT:if(this.collapsed)break;var h=this.getCommonAncestor(),f=this.root, 128e,g,i,k,w,r=false,p,x;p=this.startContainer;var v=this.startOffset;if(p.type==CKEDITOR.NODE_TEXT){if(v){p=!CKEDITOR.tools.trim(p.substring(0,v)).length&&p;r=!!p}if(p&&!(k=p.getPrevious()))i=p.getParent()}else{v&&(k=p.getChild(v-1)||p.getLast());k||(i=p)}for(i=c(i);i||k;){if(i&&!k){!w&&i.equals(h)&&(w=true);if(j?i.isBlockBoundary():!f.contains(i))break;if(!r||i.getComputedStyle("display")!="inline"){r=false;w?e=i:this.setStartBefore(i)}k=i.getPrevious()}for(;k;){p=false;if(k.type==CKEDITOR.NODE_COMMENT)k= 129k.getPrevious();else{if(k.type==CKEDITOR.NODE_TEXT){x=k.getText();d.test(x)&&(k=null);p=/[\s\ufeff]$/.test(x)}else if((k.$.offsetWidth>0||b&&k.is("br"))&&!k.data("cke-bookmark"))if(r&&CKEDITOR.dtd.$removeEmpty[k.getName()]){x=k.getText();if(d.test(x))k=null;else for(var v=k.$.getElementsByTagName("*"),y=0,A;A=v[y++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){k=null;break}k&&(p=!!x.length)}else k=null;p&&(r?w?e=i:i&&this.setStartBefore(i):r=true);if(k){p=k.getPrevious();if(!i&&!p){i= 130k;k=null;break}k=p}else i=null}}i&&(i=c(i.getParent()))}p=this.endContainer;v=this.endOffset;i=k=null;w=r=false;var H=function(a,b){var c=new CKEDITOR.dom.range(f);c.setStart(a,b);c.setEndAt(f,CKEDITOR.POSITION_BEFORE_END);var c=new CKEDITOR.dom.walker(c),j;for(c.guard=function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())};j=c.next();){if(j.type!=CKEDITOR.NODE_TEXT)return false;x=j!=a?j.getText():j.substring(b);if(d.test(x))return false}return true};if(p.type==CKEDITOR.NODE_TEXT)if(CKEDITOR.tools.trim(p.substring(v)).length)r= 131true;else{r=!p.getLength();
131if(v==p.getLength()){if(!(k=p.getNext()))i=p.getParent()}else H(p,v)&&(i=p.getParent())}else(k=p.getChild(v))||(i=p);for(;i||k;){if(i&&!k){!w&&i.equals(h)&&(w=true);if(j?i.isBlockBoundary():!f.contains(i))break;if(!r||i.getComputedStyle("display")!="inline"){r=false;w?g=i:i&&this.setEndAfter(i)}k=i.getNext()}for(;k;){p=false;if(k.type==CKEDITOR.NODE_TEXT){x=k.getText();H(k,0)||(k=null);p=/^[\s\ufeff]/.test(x)}else if(k.type==CKEDITOR.NODE_ELEMENT){if((k.$.offsetWidth>0|| 132b&&k.is("br"))&&!k.data("cke-bookmark"))if(r&&CKEDITOR.dtd.$removeEmpty[k.getName()]){x=k.getText();if(d.test(x))k=null;else{v=k.$.getElementsByTagName("*");for(y=0;A=v[y++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){k=null;break}}k&&(p=!!x.length)}else k=null}else p=1;p&&r&&(w?g=i:this.setEndAfter(i));if(k){p=k.getNext();if(!i&&!p){i=k;k=null;break}k=p}else i=null}i&&(i=c(i.getParent()))}if(e&&g){h=e.contains(g)?g:e;this.setStartBefore(h);this.setEndAfter(h)}break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:i= 133new CKEDITOR.dom.range(this.root);f=this.root;i.setStartAt(f,CKEDITOR.POSITION_AFTER_START);i.setEnd(this.startContainer,this.startOffset);i=new CKEDITOR.dom.walker(i);var D,E,z=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),G=null,J=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&a.getAttribute("contenteditable")=="false")if(G){if(G.equals(a)){G=null;return}}else G=a;else if(G)return;var b=z(a);b||(D=a);return b},j=function(a){var b=J(a);!b&&(a.is&&a.is("br"))&& 134(E=a);return b};i.guard=J;i=i.lastBackward();D=D||f;this.setStartAt(D,!D.is("br")&&(!i&&this.checkStartOfBlock()||i&&D.contains(i))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){i=this.clone();i=new CKEDITOR.dom.walker(i);var F=CKEDITOR.dom.walker.whitespaces(),R=CKEDITOR.dom.walker.bookmark();i.evaluator=function(a){return!F(a)&&!R(a)};if((i=i.previous())&&i.type==CKEDITOR.NODE_ELEMENT&&i.is("br"))break}i=this.clone();i.collapse();i.setEndAt(f, 135CKEDITOR.POSITION_BEFORE_END);i=new CKEDITOR.dom.walker(i);i.guard=a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?j:J;D=null;i=i.lastForward();D=D||f;this.setEndAt(D,!i&&this.checkEndOfBlock()||i&&D.contains(i)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);E&&this.setEndAfter(E)}},shrink:function(a,b,c){if(!this.collapsed){var a=a||CKEDITOR.SHRINK_TEXT,d=this.clone(),j=this.startContainer,h=this.endContainer,f=this.startOffset,e=this.endOffset,i=1,g=1;if(j&&j.type==CKEDITOR.NODE_TEXT)if(f)if(f>= 136j.getLength())d.setStartAfter(j);else{d.setStartBefore(j);i=0}else d.setStartBefore(j);if(h&&h.type==CKEDITOR.NODE_TEXT)if(e)if(e>=h.getLength())d.setEndAfter(h);else{d.setEndAfter(h);g=0}else d.setEndBefore(h);var d=new CKEDITOR.dom.walker(d),k=CKEDITOR.dom.walker.bookmark();d.evaluator=function(b){return b.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var w;d.guard=function(b,d){if(k(b))return true;if(a==CKEDITOR.SHRINK_ELEMENT&&b.type==CKEDITOR.NODE_TEXT||d&&b.equals(w)|| 137c===false&&b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()||b.type==CKEDITOR.NODE_ELEMENT&&b.hasAttribute("contenteditable"))return false;!d&&b.type==CKEDITOR.NODE_ELEMENT&&(w=b);return true};if(i)(j=d[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(j,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);if(g){d.reset();(d=d[a==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(d,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)}return!(!i&& 138!g)}},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, 139a.type==CKEDITOR.NODE_TEXT?a.getLength():a.getChildCount())},setStart:function(b,c){if(b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]){c=b.getIndex();b=b.getParent()}this.startContainer=b;this.startOffset=c;if(!this.endContainer){this.endContainer=b;this.endOffset=c}a(this)},setEnd:function(b,c){if(b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]){c=b.getIndex()+1;b=b.getParent()}this.endContainer=b;this.endOffset=c;if(!this.startContainer){this.startContainer=b;this.startOffset= 140c}a(this)},setStartAfter:function(a){this.setStart(a.getParent(),a.getIndex()+1)},setStartBefore:function(a){this.setStart(a.getParent(),a.getIndex())},setEndAfter:function(a){this.setEnd(a.getParent(),a.getIndex()+1)},setEndBefore:function(a){this.setEnd(a.getParent(),a.getIndex())},setStartAt:function(b,c){switch(c){case CKEDITOR.POSITION_AFTER_START:this.setStart(b,0);break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setStart(b,b.getLength()):this.setStart(b,b.getChildCount()); 141break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(b);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(b)}a(this)},setEndAt:function(b,c){switch(c){case CKEDITOR.POSITION_AFTER_START:this.setEnd(b,0);break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setEnd(b,b.getLength()):this.setEnd(b,b.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(b);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(b)}a(this)},fixBlock:function(a,b){var c= 142this.createBookmark(),d=this.document.createElement(b);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(d);d.trim();d.appendBogus();this.insertNode(d);this.moveToBookmark(c);return d},splitBlock:function(a){var b=new CKEDITOR.dom.elementPath(this.startContainer,this.root),c=new CKEDITOR.dom.elementPath(this.endContainer,this.root),d=b.block,j=c.block,h=null;if(!b.blockLimit.equals(c.blockLimit))return null;if(a!="br"){if(!d){d=this.fixBlock(true,a);j= 143(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block}j||(j=this.fixBlock(false,a))}a=d&&this.checkStartOfBlock();b=j&&this.checkEndOfBlock();this.deleteContents();if(d&&d.equals(j))if(b){h=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(j,CKEDITOR.POSITION_AFTER_END);j=null}else if(a){h=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START);d=null}else{j=this.splitElement(d);d.is("ul","ol")||d.appendBogus()}return{previousBlock:d, 144nextBlock:j,wasStartOfBlock:a,wasEndOfBlock:b,elementPath:h}}
144,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(d){return function(a){return b(a)||(c(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isEmptyInlineRemoveable())||d.is("table")&&a.is("caption")?false:true}}var b=CKEDITOR.dom.walker.whitespaces(), 145c=CKEDITOR.dom.walker.bookmark(false);return function(b){for(var c=this.createBookmark(),d=this[b?"endPath":"startPath"](),h=d.block||d.blockLimit,f;h&&!h.equals(d.root)&&!h.getFirst(a(h));){f=h.getParent();this[b?"setEndAt":"setStartAt"](h,CKEDITOR.POSITION_AFTER_END);h.remove(1);h=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, 146b){var c=b==CKEDITOR.START,d=this.clone();d.collapse(c);d[c?"setStartAt":"setEndAt"](a,c?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=e(c);return d[c?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var a=this.startContainer,b=this.startOffset;if(CKEDITOR.env.ie&&b&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.ltrim(a.substring(0,b));f.test(a)&&this.trim(0,1)}this.trim();a=new CKEDITOR.dom.elementPath(this.startContainer,this.root); 147b=this.clone();b.collapse(true);b.setStartAt(a.block||a.blockLimit,CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(b);a.evaluator=c();return a.checkBackward()},checkEndOfBlock:function(){var a=this.endContainer,b=this.endOffset;if(CKEDITOR.env.ie&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.rtrim(a.substring(b));f.test(a)&&this.trim(1,0)}this.trim();a=new CKEDITOR.dom.elementPath(this.endContainer,this.root);b=this.clone();b.collapse(false);b.setEndAt(a.block||a.blockLimit,CKEDITOR.POSITION_BEFORE_END); 148a=new CKEDITOR.dom.walker(b);a.evaluator=c();return a.checkForward()},getPreviousNode:function(a,b,c){var d=this.clone();d.collapse(1);d.setStartAt(c||this.root,CKEDITOR.POSITION_AFTER_START);c=new CKEDITOR.dom.walker(d);c.evaluator=a;c.guard=b;return c.previous()},getNextNode:function(a,b,c){var d=this.clone();d.collapse();d.setEndAt(c||this.root,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(d);c.evaluator=a;c.guard=b;return c.next()},checkReadOnly:function(){function a(b,c){for(;b;){if(b.type== 149CKEDITOR.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(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable(false)){this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);return true}for(var c= 1500;a;){if(a.type==CKEDITOR.NODE_TEXT){b&&this.endContainer&&this.checkEndOfBlock()&&f.test(a.getText())?this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);c=1;break}if(a.type==CKEDITOR.NODE_ELEMENT)if(a.isEditable()){this.moveToPosition(a,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START);c=1}else if(b&&a.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START); 151else if(a.getAttribute("contenteditable")=="false"&&a.is(CKEDITOR.dtd.$block)){this.setStartBefore(a);this.setEndAfter(a);return true}var d=a,j=c,h=void 0;d.type==CKEDITOR.NODE_ELEMENT&&d.isEditable(false)&&(h=d[b?"getLast":"getFirst"](k));!j&&!h&&(h=d[b?"getPrevious":"getNext"](k));a=h}return!!c},moveToClosestEditablePosition:function(a,b){var c=new CKEDITOR.dom.range(this.root),d=0,j,h=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];c.moveToPosition(a,h[b?0:1]);if(a.is(CKEDITOR.dtd.$block)){if(j= 152c[b?"getNextEditableNode":"getPreviousEditableNode"]()){d=1;if(j.type==CKEDITOR.NODE_ELEMENT&&j.is(CKEDITOR.dtd.$block)&&j.getAttribute("contenteditable")=="false"){c.setStartAt(j,CKEDITOR.POSITION_BEFORE_START);c.setEndAt(j,CKEDITOR.POSITION_AFTER_END)}else c.moveToPosition(j,h[b?1:0])}}else d=1;d&&this.moveToRange(c);return!!d},moveToElementEditStart:function(a){return this.moveToElementEditablePosition(a)},moveToElementEditEnd:function(a){return this.moveToElementEditablePosition(a,true)},getEnclosedNode:function(){var a= 153this.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.whitespace
153s(true);a.evaluator=function(a){return c(a)&&b(a)};var d=a.next();a.reset();return d&&d.equals(a.previous())?d: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= 154this.endContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.endOffset-1)||a},getNextEditableNode:b(),getPreviousEditableNode:b(1),scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("<span> </span>",this.document),b,c,d,j=this.clone();j.optimize();if(d=j.startContainer.type==CKEDITOR.NODE_TEXT){c=j.startContainer.getText();b=j.startContainer.split(j.startOffset);a.insertAfter(j.startContainer)}else j.insertNode(a);a.scrollIntoView();if(d){j.startContainer.setText(c); 155b.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,"use strict",function(){function c(a){if(!(arguments.length<1)){this.range=a;this.forceBrBreak=0;this.enlargeBr=1;this.enforceRealBlocks=0;this._|| 156(this._={})}}function e(a,b,c){for(a=a.getNextSourceNode(b,null,c);!i(a);)a=a.getNextSourceNode(b,null,c);return a}function b(a){var b=[];a.forEach(function(a){if(a.getAttribute("contenteditable")=="true"){b.push(a);return false}},CKEDITOR.NODE_ELEMENT,true);return b}function a(c,d,f,e){a:{e==void 0&&(e=b(f));for(var i;i=e.shift();)if(i.getDtd().p){e={element:i,remaining:e};break a}e=null}if(!e)return 0;if((i=CKEDITOR.filter.instances[e.element.data("cke-filter")])&&!i.check(d))return a(c,d,f,e.remaining); 157d=new CKEDITOR.dom.range(e.element);d.selectNodeContents(e.element);d=d.createIterator();d.enlargeBr=c.enlargeBr;d.enforceRealBlocks=c.enforceRealBlocks;d.activeFilter=d.filter=i;c._.nestedEditable={element:e.element,container:f,remaining:e.remaining,iterator:d};return 1}var d=/^[\r\n\t ]+$/,i=CKEDITOR.dom.walker.bookmark(false,true),g=CKEDITOR.dom.walker.whitespaces(true),f=function(a){return i(a)&&g(a)};c.prototype={getNextParagraph:function(b){var c,g,m,n,s,b=b||"p";if(this._.nestedEditable){if(c= 158this._.nestedEditable.iterator.getNextParagraph(b)){this.activeFilter=this._.nestedEditable.iterator.activeFilter;return c}this.activeFilter=this.filter;if(a(this,b,this._.nestedEditable.container,this._.nestedEditable.remaining)){this.activeFilter=this._.nestedEditable.iterator.activeFilter;return this._.nestedEditable.iterator.getNextParagraph(b)}this._.nestedEditable=null}if(!this.range.root.getDtd()[b])return null;if(!this._.started){var j=this.range.clone();j.shrink(CKEDITOR.SHRINK_ELEMENT,true); 159g=j.endContainer.hasAscendant("pre",true)||j.startContainer.hasAscendant("pre",true);j.enlarge(this.forceBrBreak&&!g||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(!j.collapsed){g=new CKEDITOR.dom.walker(j.clone());var o=CKEDITOR.dom.walker.bookmark(true,true);g.evaluator=o;this._.nextNode=g.next();g=new CKEDITOR.dom.walker(j.clone());g.evaluator=o;g=g.previous();this._.lastNode=g.getNextSourceNode(true);if(this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&& 160!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()){o=this.range.clone();o.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END);if(o.checkEndOfBlock()){o=new CKEDITOR.dom.elementPath(o.endContainer,o.root);this._.lastNode=(o.block||o.blockLimit).getNextSourceNode(true)}}if(!this._.lastNode||!j.root.contains(this._.lastNode)){this._.lastNode=this._.docEndMarker=j.document.createText("");this._.lastNode.insertAfter(g)}j=null}this._.started=1;g=j}o= 161this._.nextNode;j=this._.lastNode;for(this._.nextNode=null;o;){var t=0,C=o.hasAscendant("pre"),q=o.type!=CKEDITOR.NODE_ELEMENT,u=0;if(q)o.type==CKEDITOR.NODE_TEXT&&d.test(o.getText())&&(q=0);else{var B=o.getName();if(CKEDITOR.dtd.$block[B]&&o.getAttribute("contenteditable")=="false"){c=o;a(this,b,c);break}else if(o.isBlockBoundary(this.forceBrBreak&&!C&&{br:1})){if(B=="br")q=1;else if(!g&&!o.getChildCount()&&B!="hr"){c=o;m=o.equals(j);break}if(g){g.setEndAt(o,CKEDITOR.POSITION_BEFORE_START);if(B!= 162"br")this._.nextNode=o}t=1}else{if(o.getFirst()){if(!g){g=this.range.clone();g.setStartAt(o,CKEDITOR.POSITION_BEFORE_START)}o=o.getFirst();continue}q=1}}if(q&&!g){g=this.range.clone();g.setStartAt(o,CKEDITOR.POSITION_BEFORE_START)}m=(!t||q)&&o.equals(j);if(g&&!t)for(;!o.getNext(f)&&!m;){B=o.getParent();if(B.isBlockBoundary(this.forceBrBreak&&!C&&{br:1})){t=1;q=0;m||B.equals(j);g.setEndAt(B,CKEDITOR.POSITION_BEFORE_END);break}o=B;q=1;m=o.equals(j);u=1}q&&g.setEndAt(o,CKEDITOR.POSITION_AFTER_END);o=
163e(o,u,j);if((m=!o)||t&&g)break}if(!c){if(!g){this._.docEndMarker&&this._.docEndMarker.remove();return this._.nextNode=null}c=new CKEDITOR.dom.elementPath(g.startContainer,g.root);o=c.blockLimit;t={div:1,th:1,td:1};c=c.block;if(!c&&o&&!this.enforceRealBlocks&&t[o.getName()]&&g.checkStartOfBlock()&&g.checkEndOfBlock()&&!o.equals(g.root))c=o;else if(!c||this.enforceRealBlocks&&c.getName()=="li"){c=this.range.document.createElement(b);g.extractContents().appendTo(c);c.trim();g.insertNode(c);n=s=true}else if(c.getName()!= 164"li"){if(!g.checkStartOfBlock()||!g.checkEndOfBlock()){c=c.clone(false);g.extractContents().appendTo(c);c.trim();s=g.splitBlock();n=!s.wasStartOfBlock;s=!s.wasEndOfBlock;g.insertNode(c)}}else if(!m)this._.nextNode=c.equals(j)?null:e(g.getBoundaryNodes().endNode,1,j)}if(n)(n=c.getPrevious())&&n.type==CKEDITOR.NODE_ELEMENT&&(n.getName()=="br"?n.remove():n.getLast()&&n.getLast().$.nodeName.toLowerCase()=="br"&&n.getLast().remove());if(s)(n=c.getLast())&&n.type==CKEDITOR.NODE_ELEMENT&&n.getName()=="br"&& 165(!CKEDITOR.env.needsBrFiller||n.getPrevious(i)||n.getNext(i))&&n.remove();if(!this._.nextNode)this._.nextNode=m||c.equals(j)||!j?null:e(c,1,j);return c}};CKEDITOR.dom.range.prototype.createIterator=function(){return new c(this)}}(),CKEDITOR.command=function(c,e){this.uiItems=[];this.exec=function(a){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return false;this.editorFocus&&c.focus();return this.fire("exec")===false?true:e.exec.call(this,c,a)!==false};this.refresh=function(a,b){if(!this.readOnly&& 166a.readOnly)return true;if(this.context&&!b.isContextFor(this.context)){this.disable();return true}if(!this.checkAllowed(true)){this.disable();return true}this.startDisabled||this.enable();this.modes&&!this.modes[a.mode]&&this.disable();return this.fire("refresh",{editor:a,path:b})===false?true:e.refresh&&e.refresh.apply(this,arguments)!==false};var b;this.checkAllowed=function(a){return!a&&typeof b=="boolean"?b:b=c.activeFilter.checkFeature(this)};CKEDITOR.tools.extend(this,e,{modes:{wysiwyg:1},editorFocus:1, 167contextSensitive:!!e.context,state:CKEDITOR.TRISTATE_DISABLED});CKEDITOR.event.call(this)},CKEDITOR.command.prototype={enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(!this.preserveState||typeof this.previousState=="undefined"?CKEDITOR.TRISTATE_OFF:this.previousState)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(c){if(this.state==c||c!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())return false;this.previousState=this.state; 168this.state=c;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, 169docType:"<!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,CKEDITOR.CTRL+89,CKEDITOR.CTRL+90,CKEDITOR.CTRL+CKEDITOR.SHIFT+90]},function(){function c(a,b,c,j,h){var f=b.name;if((j||typeof a.elements!="function"||a.elements(f))&&(!a.match||a.match(b))){if(j=!h){a:if(a.nothingRequired)j=true;else{if(h=a.requiredClasses){f=b.classes; 170for(j=0;j<h.length;++j)if(CKEDITOR.tools.indexOf(f,h[j])==-1){j=false;break a}}j=d(b.styles,a.requiredStyles)&&d(b.attributes,a.requiredAttributes)}j=!j}if(!j){if(!a.propertiesOnly)c.valid=true;if(!c.allAttributes)c.allAttributes=e(a.attributes,b.attributes,c.validAttributes);if(!c.allStyles)c.allStyles=e(a.styles,b.styles,c.validStyles);if(!c.allClasses){a=a.classes;b=b.classes;j=c.validClasses;if(a)if(a===true)b=true;else{for(var h=0,f=b.length,g;h<f;++h){g=b[h];j[g]||(j[g]=a(g))}b=false}else b= 171false;c.allClasses=b}}}}function e(a,b,c){if(!a)return false;if(a===true)return true;for(var d in b)c[d]||(c[d]=a(d,b[d]));return false}function b(a,b){if(!a)return false;if(a===true)return a;
171if(typeof a=="string"){a=r(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={},d=0,j;for(j in a){c[j]=a[j];d++}return d?c:false}function a(a){if(a._.filterFunction)return a._.filterFunction;var b= 172/^cke:(object|embed|param)$/,d=/^(object|embed|param)$/;return a._.filterFunction=function(j,f,g,e,i,q,u){var p=j.name,t,B=false;if(i)j.name=p=p.replace(b,"$1");if(g=g&&g[p]){h(j);for(p=0;p<g.length;++p)o(a,j,g[p]);k(j)}if(f){var p=j.name,g=f.elements[p],w=f.generic,f={valid:false,validAttributes:{},validClasses:{},validStyles:{},allAttributes:false,allClasses:false,allStyles:false};if(!g&&!w){e.push(j);return true}h(j);if(g){p=0;for(t=g.length;p<t;++p)c(g[p],j,f,true,q)}if(w){p=0;for(t=w.length;p< 173t;++p)c(w[p],j,f,false,q)}if(!f.valid){e.push(j);return true}q=f.validAttributes;p=f.validStyles;g=f.validClasses;t=j.attributes;var w=j.styles,v=t["class"],m=t.style,r,C,n=[],x=[],A=/^data-cke-/,y=false;delete t.style;delete t["class"];if(!f.allAttributes)for(r in t)if(!q[r])if(A.test(r)){if(r!=(C=r.replace(/^data-cke-saved-/,""))&&!q[C]){delete t[r];y=true}}else{delete t[r];y=true}
173if(f.allStyles){if(m)t.style=m}else{for(r in w)p[r]?n.push(r+":"+w[r]):y=true;if(n.length)t.style=n.sort().join("; ")}if(f.allClasses)v&& 174(t["class"]=v);else{for(r in g)g[r]&&x.push(r);x.length&&(t["class"]=x.sort().join(" "));v&&x.length<v.split(/\s+/).length&&(y=true)}y&&(B=true);if(!u&&!l(j)){e.push(j);return true}}if(i)j.name=j.name.replace(d,"cke:$1");return B}}function d(a,b){if(!b)return true;for(var c=0;c<b.length;++c)if(!(b[c]in a))return false;return true}function i(a){if(!a)return{};for(var a=a.split(/\s*,\s*/).sort(),b={};a.length;)b[a.shift()]=p;return b}function g(a){for(var b,c,d,j,h={},g=1,a=r(a);b=a.match(A);){if(c= 175b[2]){d=f(c,"styles");j=f(c,"attrs");c=f(c,"classes")}else d=j=c=null;h["$"+g++]={elements:b[1],classes:c,styles:d,attributes:j};a=a.slice(b[0].length)}return h}function f(a,b){var c=a.match(H[b]);return c?r(c[1]):null}function h(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 k(a){var b=a.attributes,c;delete b.style;delete b["class"];if(c=CKEDITOR.tools.writeCssText(a.styles, 176true))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 m(a){return!a?false:a===true?true:function(b){return b in a}}function n(){return new CKEDITOR.htmlParser.element("br")}function s(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.name=="br"||B.$block[a.name])}function j(a,b,c){var d=a.name;if(B.$empty[d]||!a.children.length)if(d== 177"hr"&&b=="br")a.replaceWith(n());else{a.parent&&c.push({check:"it",el:a.parent});a.remove()}else if(B.$block[d]||d=="tr")if(b=="br"){if(a.previous&&!s(a.previous)){b=n();b.insertBefore(a)}if(a.next&&!s(a.next)){b=n();b.insertAfter(a)}a.replaceWithChildren()}else{var d=a.children,j;b:{j=B[b];for(var f=0,h=d.length,g;f<h;++f){g=d[f];if(g.type==CKEDITOR.NODE_ELEMENT&&!j[g.name]){j=false;break b}}j=true}if(j){a.name=b;a.attributes={};c.push({check:"parent-down",el:a})}else{j=a.parent;for(var f=j.type== 178CKEDITOR.NODE_DOCUMENT_FRAGMENT||j.name=="body",e,h=d.length;h>0;){g=d[--h];if(f&&(g.type==CKEDITOR.NODE_TEXT||g.type==CKEDITOR.NODE_ELEMENT&&B.$inline[g.name])){if(!e){e=new CKEDITOR.htmlParser.element(b);e.insertAfter(a);c.push({check:"parent-down",el:e})}e.add(g,0)}else{e=null;g.insertAfter(a);j.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(g.type==CKEDITOR.NODE_ELEMENT&&!B[j.name][g.name])&&c.push({check:"el-up",el:g})}}a.remove()}}else if(d=="style")a.remove();else{a.parent&&c.push({check:"it",el:a.parent}); 179a.replaceWithChildren()}}function o(a,b,c){var d,j;for(d=0;d<c.length;++d){j=c[d];if((!j.check||a.check(j.check,false))&&(!j.left||j.left(b))){j.right(b,D);break}}}function t(a,b){var c=b.getDefinition(),d=c.attributes,j=c.styles,f,h,g,e;if(a.name!=c.element)return false;for(f in d)if(f=="class"){c=d[f].split(/\s+/);for(g=a.classes.join("|");e=c.pop();)if(g.indexOf(e)==-1)return false}else if(a.attributes[f]!=d[f])return false;for(h in j)if(a.styles[h]!=j[h])return false;return true}function C(a, 180b){var c,d;if(typeof a=="string")c=a;else if(a instanceof CKEDITOR.style)d=a;else{c=a[0];d=a[1]}return[{element:c,left:d,right:function(a,c){c.transform(a,b)}}]}function q(a){return function(b){return t(b,a)}}function u(a){return function(b,c){c[a](b)}}var B=CKEDITOR.dtd,w=CKEDITOR.tools.copy,r=CKEDITOR.tools.trim,p="cke-test",x=["","p","br","div"];CKEDITOR.filter=function(a){this.allowedContent=[];this.disabled=false;this.editor=null;this.id=CKEDITOR.tools.getNextNumber();this._={rules:{},transformations:{}, 181cachedTests:{}};CKEDITOR.filter.instances[this.id]=this;if(a instanceof CKEDITOR.editor){a=this.editor=a;this.customConfig=true;var b=a.config.allowedContent;if(b===true)this.disabled=true;else{if(!b)this.customConfig=false;this.allow(b,"config",1);this.allow(a.config.extraAllowedContent,"extra",1);this.allow(x[a.enterMode]+" "+x[a.shiftEnterMode],"default",1)}}else{this.customConfig=false;this.allow(a,"default",1)}};CKEDITOR.filter.instances={};CKEDITOR.filter.prototype={allow:function(a,c,d){if(this.disabled|| 182this.customConfig&&!d||!a)return false;this._.cachedChecks={};var j,f;
182if(typeof a=="string")a=g(a);else if(a instanceof CKEDITOR.style){f=a.getDefinition();d={};a=f.attributes;d[f.element]=f={styles:f.styles,requiredStyles:f.styles&&CKEDITOR.tools.objectKeys(f.styles)};if(a){a=w(a);f.classes=a["class"]?a["class"].split(/\s+/):null;f.requiredClasses=f.classes;delete a["class"];f.attributes=a;f.requiredAttributes=a&&CKEDITOR.tools.objectKeys(a)}a=d}else if(CKEDITOR.tools.isArray(a)){for(j=0;j<a.length;++j)f= 183this.allow(a[j],c,d);return f}var h,d=[];for(h in a){f=a[h];f=typeof f=="boolean"?{}:typeof f=="function"?{match:f}:w(f);if(h.charAt(0)!="$")f.elements=h;if(c)f.featureName=c.toLowerCase();var e=f;e.elements=b(e.elements,/\s+/)||null;e.propertiesOnly=e.propertiesOnly||e.elements===true;var i=/\s*,\s*/,k=void 0;for(k in v){e[k]=b(e[k],i)||null;var o=e,q=y[k],u=b(e[y[k]],i),p=e[k],l=[],t=true,B=void 0;u?t=false:u={};for(B in p)if(B.charAt(0)=="!"){B=B.slice(1);l.push(B);u[B]=true;t=false}for(;B=l.pop();){p[B]= 184p["!"+B];delete p["!"+B]}o[q]=(t?false:u)||null}e.match=e.match||null;this.allowedContent.push(f);d.push(f)}c=this._.rules;h=c.elements||{};a=c.generic||[];f=0;for(e=d.length;f<e;++f){i=w(d[f]);k=i.classes===true||i.styles===true||i.attributes===true;o=i;q=void 0;for(q in v)o[q]=m(o[q]);u=true;for(q in y){q=y[q];o[q]=CKEDITOR.tools.objectKeys(o[q]);o[q]&&(u=false)}o.nothingRequired=u;if(i.elements===true||i.elements===null){i.elements=m(i.elements);a[k?"unshift":"push"](i)}else{o=i.elements;delete i.elements; 185for(j in o)if(h[j])h[j][k?"unshift":"push"](i);else h[j]=[i]}}c.elements=h;c.generic=a.length?a:null;return true},applyTo:function(b,c,d,f){if(this.disabled)return false;var h=[],g=!d&&this._.rules,e=this._.transformations,i=a(this),k=this.editor&&this.editor.config.protectedSource,o=false;b.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if(a.attributes["data-cke-filter"]=="off")return false;if(!c||!(a.name=="span"&&~CKEDITOR.tools.objectKeys(a.attributes).join("|").indexOf("data-cke-")))i(a, 186g,e,h,c)&&(o=true)}else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var b;a:{var d=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));b=[];var j,f,q;if(k)for(f=0;f<k.length;++f)if((q=d.match(k[f]))&&q[0].length==d.length){b=true;break a}d=CKEDITOR.htmlParser.fragment.fromHtml(d);d.children.length==1&&(j=d.children[0]).type==CKEDITOR.NODE_ELEMENT&&i(j,g,e,b,c);b=!b.length}b||h.push(a)}},null,true);h.length&&(o=true);for(var q,b=[],f=x[f||(this.editor?this.editor.enterMode: 187CKEDITOR.ENTER_P)];d=h.pop();)d.type==CKEDITOR.NODE_ELEMENT?j(d,f,b):d.remove();for(;q=b.pop();){d=q.el;if(d.parent)switch(q.check){case "it":B.$removeEmpty[d.name]&&!d.children.length?j(d,f,b):l(d)||j(d,f,b);break;case "el-up":d.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!B[d.parent.name][d.name]&&j(d,f,b);break;case "parent-down":d.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!B[d.parent.name][d.name]&&j(d.parent,f,b)}}return o},checkFeature:function(a){if(this.disabled||!a)return true;a.toFeature&& 188(a=a.toFeature(this.editor));return!a.requiredContent||this.check(a.requiredContent)},disable:function(){this.disabled=true},addContentForms:function(a){if(!this.disabled&&a){var b,c,d=[],j;for(b=0;b<a.length&&!j;++b){c=a[b];if((typeof c=="string"||c instanceof CKEDITOR.style)&&this.check(c))j=c}if(j){for(b=0;b<a.length;++b)d.push(C(a[b],j));this.addTransformations(d)}}},addFeature:function(a){if(this.disabled||!a)return true;a.toFeature&&(a=a.toFeature(this.editor));this.allow(a.allowedContent,a.name); 189this.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 d=this._.transformations,j;for(j=0;j<a.length;++j){b=a[j];var f=void 0,h=void 0,g=void 0,e=void 0,i=void 0,k=void 0;c=[];for(h=0;h<b.length;++h){g=b[h];if(typeof g=="string"){g=g.split(/\s*:\s*/);e=g[0];i=null;k=g[1]}else{e=g.check;i=g.left;k=g.right}if(!f){f=g;f=f.element? 190f.element:e?e.match(/^([a-z0-9]+)/i)[0]:f.left.getDefinition().element}i instanceof CKEDITOR.style&&(i=q(i));c.push({check:e==f?null:e,left:i,right:typeof k=="string"?u(k):k})}b=f;d[b]||(d[b]=[]);d[b].push(c)}}},check:function(b,c,d){if(this.disabled)return true;if(CKEDITOR.tools.isArray(b)){for(var j=b.length;j--;)if(this.check(b[j],c,d))return true;return false}var f,h;if(typeof b=="string"){h=b+"<"+(c===false?"0":"1")+(d?"1":"0")+">";if(h in this._.cachedChecks)return this._.cachedChecks[h];j= 191g(b).$1;f=j.styles;var e=j.classes;j.name=j.elements;j.classes=e=e?e.split(/\s*,\s*/):[];j.styles=i(f);j.attributes=i(j.attributes);j.children=[];e.length&&(j.attributes["class"]=e.join(" "));if(f)j.attributes.style=CKEDITOR.tools.writeCssText(j.styles);f=j}else{j=b.getDefinition();f=j.styles;e=j.attributes||{};if(f){f=w(f);e.style=CKEDITOR.tools.writeCssText(f,true)}else f={};f={name:j.element,attributes:e,classes:e["class"]?e["class"].split(/\s+/):[],styles:f,children:[]}}var e=CKEDITOR.tools.clone(f), 192q=[],u;if(c!==false&&(u=this._.transformations[f.name])){for(j=0;j<u.length;++j)o(this,f,u[j]);k(f)}a(this)(e,this._.rules,c===false?false:this._.transformations,q,false,!d,!d);c=q.length>0?false:CKEDITOR.tools.objectCompare(f.attributes,e.attributes,true)?true:false;typeof b=="string"&&(this._.cachedChecks[h]=c);return c},getAllowedEnterMode:function(){var a=["p","div","br"],b={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(c,d){var j=a.slice(),f;if(this.check(x[c]))return c; 193for(d||(j=j.reverse());f=j.pop();)if(this.check(f))return b[f];return CKEDITOR.ENTER_BR}}()};var v={styles:1,attributes:1,classes:1},y={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},A=/^([a-z0-9*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,H={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},D=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a, 194"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 d=a.attributes[b];if(d){/^\d+$/.test(d)&&(d=d+"px");a.styles[c]=d}}delete a.attributes[b]},lengthToAttribute:function(a,b,c){c=c||b;if(!(c in a.attributes)){var d=a.styles[b],j=d&&d.match(/^(\d+)(?:\.\d*)?px$/);
194j?a.attributes[c]=j[1]:d==p&&(a.attributes[c]=p)}delete a.styles[b]},alignmentToStyle:function(a){if(!("float"in a.styles)){var b= 195a.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:t,transform:function(a,b){if(typeof b=="string")a.name=b;else{var c=b.getDefinition(),d=c.styles,j=c.attributes,f,h,e,g;a.name=c.element;for(f in j)if(f=="class"){c=a.classes.join("|");for(e=j[f].split(/\s+/);g=e.pop();)c.indexOf(g)==-1&& 196a.classes.push(g)}else a.attributes[f]=j[f];for(h in d)a.styles[h]=d[h]}}}}(),function(){CKEDITOR.focusManager=function(c){if(c.focusManager)return c.focusManager;this.hasFocus=false;this.currentActive=null;this._={editor:c};return this};CKEDITOR.focusManager._={blurDelay:200};CKEDITOR.focusManager.prototype={focus:function(c){this._.timer&&clearTimeout(this._.timer);if(c)this.currentActive=c;if(!this.hasFocus&&!this._.locked){(c=CKEDITOR.currentInstance)&&c.focusManager.blur(1);this.hasFocus=true; 197(c=this._.editor.container)&&c.addClass("cke_focus");this._.editor.fire("focus")}},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(c){function e(){if(this.hasFocus){this.hasFocus=false;var a=this._.editor.container;a&&a.removeClass("cke_focus");this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var b=CKEDITOR.focusManager._.blurDelay;c||!b?e.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer; 198e.call(this)},b,this)}},add:function(c,e){var b=c.getCustomData("focusmanager");if(!b||b!=this){b&&b.remove(c);var b="focus",a="blur";if(e)if(CKEDITOR.env.ie){b="focusin";a="focusout"}else CKEDITOR.event.useCapture=1;var d={blur:function(){c.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(c)}};c.on(b,d.focus,this);c.on(a,d.blur,this);if(e)CKEDITOR.event.useCapture=0;c.setCustomData("focusmanager",this);c.setCustomData("focusmanager_handlers",d)}},remove:function(c){c.removeCustomData("focusmanager"); 199var e=c.removeCustomData("focusmanager_handlers");c.removeListener("blur",e.blur);c.removeListener("focus",e.focus)}}}(),CKEDITOR.keystrokeHandler=function(c){if(c.keystrokeHandler)return c.keystrokeHandler;this.keystrokes={};this.blockedKeystrokes={};this._={editor:c};return this},function(){var c,e=function(a){var a=a.data,b=a.getKeystroke(),e=this.keystrokes[b],g=this._.editor;c=g.fire("key",{keyCode:b})===false;if(!c){e&&(c=g.execCommand(e,{from:"keystrokeHandler"})!==false);c||(c=!!this.blockedKeystrokes[b])}c&& 200a.preventDefault(true);return!c},b=function(a){if(c){c=false;a.data.preventDefault(true)}};CKEDITOR.keystrokeHandler.prototype={attach:function(a){a.on("keydown",e,this);if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)a.on("keypress",b,this)}}}(),function(){CKEDITOR.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,ja:1,ka:1,km:1,ko:1, 201ku: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},rtl:{ar:1,fa:1,he:1,ku:1,ug:1},load:function(c,e,b){if(!c||!CKEDITOR.lang.languages[c])c=this.detect(e,c);this[c]?b(c,this[c]):CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+c+".js"),function(){this[c].dir=this.rtl[c]?"rtl":"ltr";b(c,this[c])},this)},detect:function(c,e){var b=this.languages,e=e||navigator.userLanguage||navigator.language|| 202c,a=e.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),d=a[1],a=a[2];b[d+"-"+a]?d=d+"-"+a:b[d]||(d=null);CKEDITOR.lang.detect=d?function(){return d}:function(a){return a};return d||c}}}(),CKEDITOR.scriptLoader=function(){var c={},e={};return{load:function(b,a,d,i){var g=typeof b=="string";g&&(b=[b]);d||(d=CKEDITOR);
202var f=b.length,h=[],k=[],l=function(b){a&&(g?a.call(d,b):a.call(d,h,k))};if(f===0)l(true);else{var m=function(a,b){(b?h:k).push(a);if(--f<=0){i&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"); 203l(b)}},n=function(a,b){c[a]=1;var d=e[a];delete e[a];for(var j=0;j<d.length;j++)d[j](a,b)},s=function(b){if(c[b])m(b,true);else{var d=e[b]||(e[b]=[]);d.push(m);if(!(d.length>1)){var j=new CKEDITOR.dom.element("script");j.setAttributes({type:"text/javascript",src:b});if(a)if(CKEDITOR.env.ie&&CKEDITOR.env.version<11)j.$.onreadystatechange=function(){if(j.$.readyState=="loaded"||j.$.readyState=="complete"){j.$.onreadystatechange=null;n(b,true)}};else{j.$.onload=function(){setTimeout(function(){n(b,true)}, 2040)};j.$.onerror=function(){n(b,false)}}j.appendTo(CKEDITOR.document.getHead())}}};i&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var j=0;j<f;j++)s(b[j])}},queue:function(){function b(){var b;(b=a[0])&&this.load(b.scriptUrl,b.callback,CKEDITOR,0)}var a=[];return function(c,e){var g=this;a.push({scriptUrl:c,callback:function(){e&&e.apply(this,arguments);a.shift();b.call(g)}});a.length==1&&b.call(this)}}()}}(),CKEDITOR.resourceManager=function(c,e){this.basePath=c;this.fileName= 205e;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(c,e){if(this.registered[c])throw'[CKEDITOR.resourceManager.add] The resource name "'+c+'" is already registered.';var b=this.registered[c]=e||{};b.name=c;b.path=this.getPath(c);CKEDITOR.fire(c+CKEDITOR.tools.capitalize(this.fileName)+"Ready",b);return this.get(c)},get:function(c){return this.registered[c]||null},getPath:function(c){var e=this.externals[c];return CKEDITOR.getUrl(e&& 206e.dir||this.basePath+c+"/")},getFilePath:function(c){var e=this.externals[c];return CKEDITOR.getUrl(this.getPath(c)+(e?e.file:this.fileName+".js"))},addExternal:function(c,e,b){for(var c=c.split(","),a=0;a<c.length;a++){var d=c[a];b||(e=e.replace(/[^\/]+$/,function(a){b=a;return""}));this.externals[d]={dir:e,file:b||this.fileName+".js"}}},load:function(c,e,b){CKEDITOR.tools.isArray(c)||(c=c?[c]:[]);for(var a=this.loaded,d=this.registered,i=[],g={},f={},h=0;h<c.length;h++){var k=c[h];if(k)if(!a[k]&& 207!d[k]){var l=this.getFilePath(k);i.push(l);l in g||(g[l]=[]);g[l].push(k)}else f[k]=this.get(k)}CKEDITOR.scriptLoader.load(i,function(c,d){if(d.length)throw'[CKEDITOR.resourceManager.load] Resource name "'+g[d[0]].join(",")+'" was not found at "'+d[0]+'".';for(var h=0;h<c.length;h++)for(var j=g[c[h]],i=0;i<j.length;i++){var k=j[i];f[k]=this.get(k);a[k]=1}e.call(b,f)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load, 208function(c){var e={};return function(b,a,d){var i={},g=function(b){c.call(this,b,function(b){CKEDITOR.tools.extend(i,b);var c=[],f;for(f in b){var m=b[f],n=m&&m.requires;if(!e[f]){if(m.icons)for(var s=m.icons.split(","),j=s.length;j--;)CKEDITOR.skin.addIcon(s[j],m.path+"icons/"+(CKEDITOR.env.hidpi&&m.hidpi?"hidpi/":"")+s[j]+".png");e[f]=1}if(n){n.split&&(n=n.split(","));for(m=0;m<n.length;m++)i[n[m]]||c.push(n[m])}}if(c.length)g.call(this,c);else{for(f in i){m=i[f];if(m.onLoad&&!m.onLoad._called){m.onLoad()=== 209false&&delete i[f];m.onLoad._called=1}}a&&a.call(d||window,i)}},this)};g.call(this,b)}}),CKEDITOR.plugins.setLang=function(c,e,b){var a=this.get(c),c=a.langEntries||(a.langEntries={}),a=a.lang||(a.lang=[]);a.split&&(a=a.split(","));CKEDITOR.tools.indexOf(a,e)==-1&&a.push(e);c[e]=b},CKEDITOR.ui=function(c){if(c.ui)return c.ui;this.items={};this.instances={};this.editor=c;this._={handlers:{}};return this},CKEDITOR.ui.prototype={add:function(c,e,b){b.name=c.toLowerCase();var a=this.items[c]={type:e, 210command:b.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(a,b)},get:function(c){return this.instances[c]},create:function(c){var e=this.items[c],b=e&&this._.handlers[e.type],a=e&&e.command&&this.editor.getCommand(e.command),b=b&&b.create.apply(this,e.args);this.instances[c]=b;a&&a.uiItems.push(b);if(b&&!b.type)b.type=e.type;return b},addHandler:function(c,e){this._.handlers[c]=e},space:function(c){return CKEDITOR.document.getById(this.spaceId(c))},spaceId:function(c){return this.editor.id+ 211"_"+c}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function c(a,c,f){CKEDITOR.event.call(this);a=a&&CKEDITOR.tools.clone(a);if(c!==void 0){if(c instanceof CKEDITOR.dom.element){if(!f)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&&f==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");
211if(!(f==CKEDITOR.ELEMENT_MODE_INLINE?c.is(CKEDITOR.dtd.$editable)|| 212c.is("textarea"):f==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=f;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||e();this.id=CKEDITOR.tools.getNextId();this.status="unloaded";this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config); 213this.ui=new CKEDITOR.ui(this);this.focusManager=new CKEDITOR.focusManager(this);this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this);this.on("readOnly",b);this.on("selectionChange",function(a){d(this,a.data.path)});this.on("activeFilterChange",function(){d(this,this.elementPath(),true)});this.on("mode",b);this.on("instanceReady",function(){this.config.startupFocus&&this.focus()});CKEDITOR.fire("instanceCreated",null,this);CKEDITOR.add(this);CKEDITOR.tools.setTimeout(function(){g(this,a)},0,this)} 214function e(){do var a="editor"+ ++n;while(CKEDITOR.instances[a]);return a}function b(){var b=this.commands,c;for(c in b)a(this,b[c])}function a(a,b){b[b.startDisabled?"disable":a.readOnly&&!b.readOnly?"disable":b.modes[a.mode]?"enable":"disable"]()}function d(a,b,c){if(b){var d,f,h=a.commands;for(f in h){d=h[f];(c||d.contextSensitive)&&d.refresh(a,b)}}}function i(a){var b=a.config.customConfig;if(!b)return false;var b=CKEDITOR.getUrl(b),c=s[b]||(s[b]={});if(c.fn){c.fn.call(a,a.config);(CKEDITOR.getUrl(a.config.customConfig)== 215b||!i(a))&&a.fireOnce("customConfigLoaded")}else CKEDITOR.scriptLoader.queue(b,function(){c.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};i(a)});return true}function g(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}c=a.config;a.readOnly=!(!c.readOnly&&!(a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.is("textarea")?a.element.hasAttribute("disabled"):a.element.isReadOnly():a.elementMode== 216CKEDITOR.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=c.tabIndex||a.element&&a.element.getAttribute("tabindex")||0;a.activeEnterMode=a.enterMode=a.blockless?CKEDITOR.ENTER_BR:c.enterMode;a.activeShiftEnterMode=a.shiftEnterMode=a.blockless?CKEDITOR.ENTER_BR:c.shiftEnterMode;if(c.skin)CKEDITOR.skinName=c.skin;a.fireOnce("configLoaded");a.dataProcessor= 217new CKEDITOR.htmlDataProcessor(a);a.filter=a.activeFilter=new CKEDITOR.filter(a);f(a)});if(b&&b.customConfig!=void 0)a.config.customConfig=b.customConfig;i(a)||a.fireOnce("customConfigLoaded")}function f(a){CKEDITOR.skin.loadPart("editor",function(){h(a)})}function h(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(b,c){var d=a.config.title;a.langCode=b;a.lang=CKEDITOR.tools.prototypedCopy(c);a.title=typeof d=="string"||d===false?d:[a.lang.editor,a.name].join(", ");if(CKEDITOR.env.gecko&& 218CKEDITOR.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");k(a)})}function k(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,d=b.extraPlugins,f=b.removePlugins;if(d)var h=RegExp("(?:^|,)(?:"+d.replace(/\s*,\s*/g,"|")+")(?=,|$)", 219"g"),c=c.replace(h,""),c=c+(","+d);if(f)var e=RegExp("(?:^|,)(?:"+f.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),c=c.replace(e,"");CKEDITOR.env.air&&(c=c+",adobeair");CKEDITOR.plugins.load(c.split(","),function(c){var d=[],f=[],h=[];a.plugins=c;for(var g in c){var i=c[g],k=i.lang,q=null,u=i.requires,l;CKEDITOR.tools.isArray(u)&&(u=u.join(","));if(u&&(l=u.match(e)))for(;u=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 "'+ 220b+'" plugin.');},0,null,[u,g]);if(k&&!a.lang[g]){k.split&&(k=k.split(","));if(CKEDITOR.tools.indexOf(k,a.langCode)>=0)q=a.langCode;else{q=a.langCode.replace(/-.*/,"");q=q!=a.langCode&&CKEDITOR.tools.indexOf(k,q)>=0?q:CKEDITOR.tools.indexOf(k,"en")>=0?"en":k[0]}if(!i.langEntries||!i.langEntries[q])h.push(CKEDITOR.getUrl(i.path+"lang/"+q+".js"));else{a.lang[g]=i.langEntries[q];q=null}}f.push(q);d.push(i)}CKEDITOR.scriptLoader.load(h,function(){for(var c=["beforeInit","init","afterInit"],h=0;h<c.length;h++)for(var e= 2210;e<d.length;e++){var g=d[e];h===0&&(f[e]&&g.lang&&g.langEntries)&&(a.lang[g.name]=g.langEntries[f[e]]);if(g[c[h]])g[c[h]](a)}
221a.fireOnce("pluginsLoaded");b.keystrokes&&a.setKeystroke(a.config.keystrokes);for(e=0;e<a.config.blockedKeystrokes.length;e++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[e]]=1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)})})}function m(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var b=this.getData(); 222this.config.htmlEncodeOutput&&(b=CKEDITOR.tools.htmlEncode(b));a.is("textarea")?a.setValue(b):a.setHtml(b);return true}return false}c.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=c;var n=0,s={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(b,c){c.name=b.toLowerCase();var d=new CKEDITOR.command(this,c);this.mode&&a(this,d);return this.commands[b]=d},_attachToForm:function(){var a=this,b=a.element,c=new CKEDITOR.dom.element(b.$.form);if(b.is("textarea")&&c){var d=function(c){a.updateElement(); 223a._.required&&(!b.getValue()&&a.fire("required")===false)&&c.data.preventDefault()};c.on("submit",d);if(c.$.submit&&c.$.submit.call&&c.$.submit.apply)c.$.submit=CKEDITOR.tools.override(c.$.submit,function(a){return function(){d();a.apply?a.apply(this):a()}});a.on("destroy",function(){c.removeListener("submit",d)})}},destroy:function(a){this.fire("beforeDestroy");!a&&m.call(this);this.editable(null);this.status="destroyed";this.fire("destroy");this.removeAllListeners();CKEDITOR.remove(this);CKEDITOR.fire("instanceDestroyed", 224null,this)},elementPath:function(a){if(!a){a=this.getSelection();if(!a)return null;a=a.getStartElement()}return a?new CKEDITOR.dom.elementPath(a,this.editable()):null},createRange:function(){var a=this.editable();return a?new CKEDITOR.dom.range(a):null},execCommand:function(a,b){var c=this.getCommand(a),d={name:a,commandData:b,command:c};if(c&&c.state!=CKEDITOR.TRISTATE_DISABLED&&this.fire("beforeCommandExec",d)!==false){d.returnValue=c.exec(d.commandData);if(!c.async&&this.fire("afterCommandExec", 225d)!==false)return d.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&& 226(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, 227b){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 m.call(this)},setKeystroke:function(){for(var a=this.keystrokeHandler.keystrokes,b=CKEDITOR.tools.isArray(arguments[0])? 228arguments[0]:[[].slice.call(arguments,0)],c,d,f=b.length;f--;){c=b[f];d=0;if(CKEDITOR.tools.isArray(c)){d=c[1];c=c[0]}d?a[c]=d:delete a[c]}},addFeature:function(a){return this.filter.addFeature(a)},setActiveFilter:function(a){if(!a)a=this.filter;if(this.activeFilter!==a){this.activeFilter=a;this.fire("activeFilterChange");a===this.filter?this.setActiveEnterMode(null,null):this.setActiveEnterMode(a.getAllowedEnterMode(this.enterMode),a.getAllowedEnterMode(this.shiftEnterMode,true))}},setActiveEnterMode:function(a, 229b){a=a?this.blockless?CKEDITOR.ENTER_BR:a:this.enterMode;b=b?this.blockless?CKEDITOR.ENTER_BR:b:this.shiftEnterMode;if(this.activeEnterMode!=a||this.activeShiftEnterMode!=b){this.activeEnterMode=a;this.activeShiftEnterMode=b;this.fire("activeEnterModeChange")}}})}(),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("<(?:(?
229:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)--\>)|(?:([^\\s>]+)\\s*((?:(?:\"[^\"]*\")|(?:'[^']*')|[^\"'>])*)\\/?>))", 230"g")}},function(){var c=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,e={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(b){for(var a,d,i=0,g;a=this._.htmlPartsRegex.exec(b);){d=a.index;if(d>i){i=b.substring(i,d);if(g)g.push(i); 231else this.onText(i)}i=this._.htmlPartsRegex.lastIndex;if(d=a[1]){d=d.toLowerCase();if(g&&CKEDITOR.dtd.$cdata[d]){this.onCDATA(g.join(""));g=null}if(!g){this.onTagClose(d);continue}}if(g)g.push(a[0]);else if(d=a[3]){d=d.toLowerCase();if(!/="/.test(d)){var f={},h;a=a[4];var k=!!(a&&a.charAt(a.length-1)=="/");if(a)for(;h=c.exec(a);){var l=h[1].toLowerCase();h=h[2]||h[3]||h[4]||"";f[l]=!h&&e[l]?l:CKEDITOR.tools.htmlDecodeAttr(h)}this.onTagOpen(d,f,k);!g&&CKEDITOR.dtd.$cdata[d]&&(g=[])}}else if(d=a[2])this.onComment(d)}if(b.length> 232i)this.onText(b.substring(i,b.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(c){this._.output.push("<",c)},openTagClose:function(c,e){e?this._.output.push(" />"):this._.output.push(">")},attribute:function(c,e){typeof e=="string"&&(e=CKEDITOR.tools.htmlEncodeAttr(e));this._.output.push(" ",c,'="',e,'"')},closeTag:function(c){this._.output.push("</",c,">")},text:function(c){this._.output.push(c)},comment:function(c){this._.output.push("<\!--", 233c,"--\>")},write:function(c){this._.output.push(c)},reset:function(){this._.output=[];this._.indent=false},getHtml:function(c){var e=this._.output.join("");c&&this.reset();return e}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var c=this.parent.children,e=CKEDITOR.tools.indexOf(c,this),b=this.previous,a=this.next;b&&(b.next=a);a&&(a.previous=b);c.splice(e,1);this.parent=null},replaceWith:function(c){var e=this.parent.children, 234b=CKEDITOR.tools.indexOf(e,this),a=c.previous=this.previous,d=c.next=this.next;a&&(a.next=c);d&&(d.previous=c);e[b]=c;c.parent=this.parent;this.parent=null},insertAfter:function(c){var e=c.parent.children,b=CKEDITOR.tools.indexOf(e,c),a=c.next;e.splice(b+1,0,this);this.next=c.next;this.previous=c;c.next=this;a&&(a.previous=this);this.parent=c.parent},insertBefore:function(c){var e=c.parent.children,b=CKEDITOR.tools.indexOf(e,c);e.splice(b,0,this);this.next=c;(this.previous=c.previous)&&(c.previous.next= 235this);c.previous=this;this.parent=c.parent},getAscendant:function(c){var e=typeof c=="function"?c:typeof c=="string"?function(a){return a.name==c}:function(a){return a.name in c},b=this.parent;for(;b&&b.type==CKEDITOR.NODE_ELEMENT;){if(e(b))return b;b=b.parent}return null},wrapWith:function(c){this.replaceWith(c);c.add(this);return c},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(c){return c||{}}}}(),"use strict",CKEDITOR.htmlParser.comment= 236function(c){this.value=c;this._={isBlockLike:false}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(c,e){var b=this.value;if(!(b=c.onComment(e,b,this))){this.remove();return false}if(typeof b!="string"){this.replaceWith(b);return false}this.value=b;return true},writeHtml:function(c,e){e&&this.filter(e);c.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(c){this.value=c;this._={isBlockLike:false}}; 237CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(c,e){if(!(this.value=c.onText(e,this.value,this))){this.remove();return false}},writeHtml:function(c,e){e&&this.filter(e);c.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(c){this.value=c};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(c){c.write(this.value)}})}(), 238"use strict",CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false}},function(){function c(a){return a.attributes["data-cke-survive"]?false:a.name=="a"&&a.attributes.href||CKEDITOR.dtd.$removeEmpty[a.name]}var e=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),b={ol:1,ul:1},a=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1, 239script:1}),d={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(i,g,f){function h(a){var b;if(t.length>0)for(var c=0;c<t.length;c++){var d=t[c],f=d.name,j=CKEDITOR.dtd[f],h=q.name&&CKEDITOR.dtd[q.name];if((!h||h[f])&&(!a||!j||j[a]||!CKEDITOR.dtd[a])){if(!b){k();b=1}d=d.clone();d.parent=q;q=d;t.splice(c,1);c--}else if(f==q.name){m(q,q.parent,1);c--}}}function k(){for(;C.length;)m(C.shift(),q)}function l(a){if(a._.isBlockLike&& 240a.name!="pre"&&a.name!="textarea"){var b=a.children.length,c=a.children[b-1],d;if(c&&c.type==CKEDITOR.NODE_TEXT)(d=CKEDITOR.tools.rtrim(c.value))?c.value=d:a.children.length=b-1}}function m(a,b,d){var b=b||q||o,h=q;if(a.previous===void 0){if(n(b,a)){q=b;j.onTagOpen(f,{});a.returnPoint=b=q}l(a);(!c(a)||a.children.length)&&b.add(a);a.name=="pre"&&(B=false);a.name=="textarea"&&(u=false)}if(a.returnPoint){q=a.returnPoint;delete a.returnPoint}else q=d?b:h}function n(a,b){if((a==o||a.name=="body")&&f&& 241(!a.name||CKEDITOR.dtd[a.name][f])){var c,d;return(c=b.attributes&&(d=b.attributes["data-cke-real-element-type"])?d:b.name)&&c in CKEDITOR.dtd.$inline&&!(c in CKEDITOR.dtd.head)&&!b.isOrphan||b.type==CKEDITOR.NODE_TEXT}}function s(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 j=new CKEDITOR.htmlParser,o=g instanceof CKEDITOR.htmlParser.element?g:typeof g=="string"?new CKEDITOR.htmlParser.element(g):new CKEDITOR.htmlParser.fragment, 242t=[],C=[],q=o,u=o.name=="textarea",B=o.name=="pre";j.onTagOpen=function(d,f,g,i){f=new CKEDITOR.htmlParser.element(d,f);if(f.isUnknown&&g)f.isEmpty=true;f.isOptionalClose=i;if(c(f))t.push(f);else{if(d=="pre")B=true;else{if(d=="br"&&B){q.add(new CKEDITOR.htmlParser.text("\n"));return}d=="textarea"&&(u=true)}if(d=="br")C.push(f);else{for(;;){i=(g=q.name)?CKEDITOR.dtd[g]||(q._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):a;if(!f.isUnknown&&!q.isUnknown&&!i[d])if(q.isOptionalClose)j.onTagClose(g); 243else if(d in b&&g in b){g=q.children;(g=g[g.length-1])&&g.name=="li"||m(g=new CKEDITOR.htmlParser.element("li"),q);!f.returnPoint&&(f.returnPoint=q);q=g}else if(d in CKEDITOR.dtd.$listItem&&!s(d,g))j.onTagOpen(d=="li"?"ul":"dl",{},0,1);else if(g in e&&!s(d,g)){!f.returnPoint&&(f.returnPoint=q);q=q.parent}else{g in CKEDITOR.dtd.$inline&&t.unshift(q);if(q.parent)m(q,q.parent,1);else{f.isOrphan=1;break}}else break}h(d);k();f.parent=q;f.isEmpty?m(f):q=f}}};j.onTagClose=function(a){for(var b=t.length- 2441;b>=0;b--)if(a==t[b].name){t.splice(b,1);return}for(var c=[],d=[],j=q;j!=o&&j.name!=a;){j._.isBlockLike||d.unshift(j);c.push(j);j=j.returnPoint||j.parent}if(j!=o){for(b=0;b<c.length;b++){var h=c[b];m(h,h.parent)}q=j;j._.isBlockLike&&k();m(j,j.parent);if(j==q)q=q.parent;t=t.concat(d)}a=="body"&&(f=false)};j.onText=function(b){if((!q._.hasInlineStarted||C.length)&&!B&&!u){b=CKEDITOR.tools.ltrim(b);if(b.length===0)return}var c=q.name,g=c?CKEDITOR.dtd[c]||(q._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span): 245a;if(!u&&!g["#"]&&c in e){j.onTagOpen(d[c]||"");j.onText(b)}else{k();h();!B&&!u&&(b=b.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));b=new CKEDITOR.htmlParser.text(b);if(n(q,b))this.onTagOpen(f,{},0,1);q.add(b)}};j.onCDATA=function(a){q.add(new CKEDITOR.htmlParser.cdata(a))};j.onComment=function(a){k();h();q.add(new CKEDITOR.htmlParser.comment(a))};j.parse(i);for(k();q!=o;)m(q,q.parent,1);l(o);return o};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(a,b){isNaN(b)&& 246(b=this.children.length);var c=b>0?this.children[b-1]:null;if(c){if(a._.isBlockLike&&c.type==CKEDITOR.NODE_TEXT){c.value=CKEDITOR.tools.rtrim(c.value);if(c.value.length===0){this.children.pop();this.add(a);return}}c.next=a}a.previous=c;a.parent=this;this.children.splice(b,0,a);if(!this._.hasInlineStarted)this._.hasInlineStarted=a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&!a._.isBlockLike},filter:function(a,b){b=this.getFilterContext(b);a.onRoot(b,this);this.filterChildren(a,false,b)}, 247filterChildren:function(a,b,c){if(this.childrenFilteredBy!=a.id){c=this.getFilterContext(c);if(b&&!this.parent)a.onRoot(c,this);this.childrenFilteredBy=a.id;for(b=0;b<this.children.length;b++)this.children[b].filter(a,c)===false&&b--}},writeHtml:function(a,b){b&&this.filter(b);this.writeChildrenHtml(a)},writeChildrenHtml:function(a,b,c){var d=this.getFilterContext();if(c&&!this.parent&&b)b.onRoot(d,this);b&&this.filterChildren(b,false,d);b=0;c=this.children;for(d=c.length;b<d;b++)c[b].writeHtml(a)}, 248forEach:function(a,b,c){if(!c&&(!b||this.type==b))var d=a(this);if(d!==false)for(var c=this.children,e=0;e<c.length;e++){d=c[e];d.type==CKEDITOR.NODE_ELEMENT?d.forEach(a,b):(!b||d.type==b)&&a(d)}},getFilterContext:function(a){return a||{}}}}(),"use strict",function(){function c(){this.rules=[]}function e(b,a,d,e){var g,f;for(g in a){(f=b[g])||(f=b[g]=new c);f.add(a[g],d,e)}}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(b){this.id=CKEDITOR.tools.getNextNumber();this.elementNameRules= 249new c;this.attributeNameRules=new c;this.elementsRules={};this.attributesRules={};this.textRules=new c;this.commentRules=new c;this.rootRules=new c;b&&this.addRules(b,10)},proto:{addRules:function(b,a){var c;if(typeof a=="number")c=a;else if(a&&"priority"in a)c=a.priority;typeof c!="number"&&(c=10);typeof a!="object"&&(a={});b.elementNames&&this.elementNameRules.addMany(b.elementNames,c,a);b.attributeNames&&this.attributeNameRules.addMany(b.attributeNames,c,a);b.elements&&e(this.elementsRules,b.elements, 250c,a);b.attributes&&e(this.attributesRules,b.attributes,c,a);b.text&&this.textRules.add(b.text,c,a);b.comment&&this.commentRules.add(b.comment,c,a);b.root&&this.rootRules.add(b.root,c,a)},applyTo:function(b){b.filter(this)},onElementName:function(b,a){return this.elementNameRules.execOnName(b,a)},onAttributeName:function(b,a){return this.attributeNameRules.execOnName(b,a)},onText:function(b,a,c){return this.textRules.exec(b,a,c)},onComment:function(b,a,c){return this.commentRules.exec(b,a,c)},onRoot:function(b, 251a){return this.rootRules.exec(b,a)},onElement:function(b,a){for(var c=[this.elementsRules["^"],this.elementsRules[a.name],this.elementsRules.$],e,g
251=0;g<3;g++)if(e=c[g]){e=e.exec(b,a,this);if(e===false)return null;if(e&&e!=a)return this.onNode(b,e);if(a.parent&&!a.name)break}return a},onNode:function(b,a){var c=a.type;return c==CKEDITOR.NODE_ELEMENT?this.onElement(b,a):c==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(b,a.value)):c==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(b, 252a.value)):null},onAttribute:function(b,a,c,e){return(c=this.attributesRules[c])?c.exec(b,e,a,this):e}}});CKEDITOR.htmlParser.filterRulesGroup=c;c.prototype={add:function(b,a,c){this.rules.splice(this.findIndex(a),0,{value:b,priority:a,options:c})},addMany:function(b,a,c){for(var e=[this.findIndex(a),0],g=0,f=b.length;g<f;g++)e.push({value:b[g],priority:a,options:c});this.rules.splice.apply(this.rules,e)},findIndex:function(b){for(var a=this.rules,c=a.length-1;c>=0&&b<a[c].priority;)c--;return c+1}, 253exec:function(b,a){var c=a instanceof CKEDITOR.htmlParser.node||a instanceof CKEDITOR.htmlParser.fragment,e=Array.prototype.slice.call(arguments,1),g=this.rules,f=g.length,h,k,l,m;for(m=0;m<f;m++){if(c){h=a.type;k=a.name}l=g[m];if(!(b.nonEditable&&!l.options.applyToAll||b.nestedEditable&&l.options.excludeNestedEditable)){l=l.value.apply(null,e);if(l===false||c&&l&&(l.name!=k||l.type!=h))return l;l!=void 0&&(e[0]=a=l)}}return a},execOnName:function(b,a){for(var c=0,e=this.rules,g=e.length,f;a&&c<g;c++){f= 254e[c];!(b.nonEditable&&!f.options.applyToAll||b.nestedEditable&&f.options.excludeNestedEditable)&&(a=a.replace(f.value[0],f.value[1]))}return a}}}(),function(){function c(c,j){function f(a){return a||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text("Â "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function e(c,d){return function(j){if(j.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var e=[],g=b(j),k,q;if(g)for(h(g,1)&&e.push(g);g;){if(i(g)&&(k=a(g))&&h(k))if((q=a(k))&&!i(q))e.push(k); 255else{f(z).insertAfter(k);k.remove()}g=g.previous}for(g=0;g<e.length;g++)e[g].remove();if(e=CKEDITOR.env.opera&&!c||(typeof d=="function"?d(j)!==false:d))if(!z&&!CKEDITOR.env.needsBrFiller&&j.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)e=false;else if(!z&&!CKEDITOR.env.needsBrFiller&&(document.documentMode>7||j.name in CKEDITOR.dtd.tr||j.name in CKEDITOR.dtd.$listItem))e=false;else{e=b(j);e=!e||j.name=="form"&&e.name=="input"}e&&j.add(f(c))}}}function h(a,b){if((!z||CKEDITOR.env.needsBrFiller)&&a.type== 256CKEDITOR.NODE_ELEMENT&&a.name=="br"&&!a.attributes["data-cke-eol"])return true;var c;if(a.type==CKEDITOR.NODE_TEXT&&(c=a.value.match(t))){if(c.index){(new CKEDITOR.htmlParser.text(a.value.substring(0,c.index))).insertBefore(a);a.value=c[0]}if(!CKEDITOR.env.needsBrFiller&&z&&(!b||a.parent.name in u))return true;if(!z)if((c=a.previous)&&c.name=="br"||!c||i(c))return true}return false}var k={elements:{}},z=j=="html",u=CKEDITOR.tools.extend({},B),G;for(G in u)"#"in q[G]||delete u[G];for(G in u)k.elements[G]= 257e(z,c.config.fillEmptyBlocks!==false);k.root=e(z);k.elements.br=function(b){return function(c){if(c.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var j=c.attributes;if("data-cke-bogus"in j||"data-cke-eol"in j)delete j["data-cke-bogus"];else{for(j=c.next;j&&d(j);)j=j.next;var e=a(c);!j&&i(c.parent)?g(c.parent,f(b)):i(j)&&(e&&!i(e))&&f(b).insertBefore(j)}}}}(z);return k}function e(a,b){return a!=CKEDITOR.ENTER_BR&&b!==false?a==CKEDITOR.ENTER_DIV?"div":"p":false}function b(a){for(a=a.children[a.children.length- 2581];a&&d(a);)a=a.previous;return a}function a(a){for(a=a.previous;a&&d(a);)a=a.previous;return a}function d(a){return a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(a.value)||a.type==CKEDITOR.NODE_ELEMENT&&a.attributes["data-cke-bookmark"]}function i(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in B||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function g(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 f(a){a=a.attributes;a.contenteditable!= 259"false"&&(a["data-cke-editable"]=a.contenteditable?"true":1);a.contenteditable="false"}function h(a){a=a.attributes;switch(a["data-cke-editable"]){case "true":a.contenteditable="true";break;case "1":delete a.contenteditable}}function k(a){return a.replace(v,function(a,b,c){return"<"+b+c.replace(y,function(a,b){return A.test(b)&&c.indexOf("data-cke-saved-"+b)==-1?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rn
259d+"-"+a:a})+">"})}function l(a,b){return a.replace(b,function(a,b,c){a.indexOf("<textarea")=== 2600&&(a=b+s(c).replace(/</g,"<").replace(/>/g,">")+"</textarea>");return"<cke:encoded>"+encodeURIComponent(a)+"</cke:encoded>"})}function m(a){return a.replace(E,function(a,b){return decodeURIComponent(b)})}function n(a){return a.replace(/<\!--(?!{cke_protected})[\s\S]+?--\>/g,function(a){return"<\!--"+C+"{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 j(a, 261b){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 o(a,b){for(var c=[],d=b.config.protectedSource,j=b._.dataStore||(b._.dataStore={id:1}),f=/<\!--\{cke_temp(comment)?\}(\d*?)--\>/g,d=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(d),a=a.replace(/<\!--[\s\S]*?--\>/g,function(a){return"<\!--{cke_tempcomment}"+(c.push(a)-1)+ 262"--\>"}),e=0;e<d.length;e++)a=a.replace(d[e],function(a){a=a.replace(f,function(a,b,d){return c[d]});return/cke_temp(comment)?/.test(a)?a:"<\!--{cke_temp}"+(c.push(a)-1)+"--\>"});a=a.replace(f,function(a,b,d){return"<\!--"+C+(b?"{C}":"")+encodeURIComponent(c[d]).replace(/--/g,"%2D%2D")+"--\>"});return a.replace(/<\w([^'">]+|'[^']*'|"[^"]*")+>/g,function(a){return a.replace(/<\!--\{cke_protected\}([^>]*)--\>/g,function(a,b){j[j.id]=decodeURIComponent(b);return"{cke_protected_"+j.id++ +"}"})})}CKEDITOR.htmlDataProcessor= 263function(a){var b,d,f=this;this.editor=a;this.dataFilter=b=new CKEDITOR.htmlParser.filter;this.htmlFilter=d=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;b.addRules(w);b.addRules(r,{applyToAll:true});b.addRules(c(a,"data"),{applyToAll:true});d.addRules(p);d.addRules(x,{applyToAll:true});d.addRules(c(a,"html"),{applyToAll:true});a.on("toHtml",function(b){var b=b.data,c=b.dataValue,c=o(c,a),c=l(c,D),c=k(c),c=l(c,H),c=c.replace(z,"$1cke:$2"),c=c.replace(J,"<cke:$1$2></cke:$1>"), 264c=CKEDITOR.env.opera?c:c.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),c=c.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2"),d=b.context||a.editable().getName(),j;if(CKEDITOR.env.ie&&CKEDITOR.env.version<9&&d=="pre"){d="div";c="<pre>"+c+"</pre>";j=1}d=a.document.createElement(d);d.setHtml("a"+c);c=d.getHtml().substr(1);c=c.replace(RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");j&&(c=c.replace(/^<pre>|<\/pre>$/gi,""));c=c.replace(G,"$1$2");c=m(c);c=s(c);b.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(c, 265b.context,b.fixForBody===false?false:e(b.enterMode,a.config.autoParagraph))},null,null,5);a.on("toHtml",function(b){b.data.filter.applyTo(b.data.dataValue,true,b.data.dontFilter,b.data.enterMode)&&a.fire("dataFiltered")},null,null,6);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=n(b)},null,null,15);a.on("toDataFormat", 266function(b){var c=b.data.dataValue;b.data.enterMode!=CKEDITOR.ENTER_BR&&(c=c.replace(/^<br *\/?>/i,""));b.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(c,b.data.context,e(b.data.enterMode,a.config.autoParagraph))},null,null,5);a.on("toDataFormat",function(a){a.data.dataValue.filterChildren(f.htmlFilter,true)},null,null,10);a.on("toDataFormat",function(a){a.data.filter.applyTo(a.data.dataValue,false,true)},null,null,11);a.on("toDataFormat",function(b){var c=b.data.dataValue,d=f.writer;d.reset(); 267c.writeChildrenHtml(d);c=d.getHtml(true);c=s(c);c=j(c,a);b.data.dataValue=c},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,b,c,d){var j=this.editor,f,e,h;if(b&&typeof b=="object"){f=b.context;c=b.fixForBody;d=b.dontFilter;e=b.filter;h=b.enterMode}else f=b;!f&&f!==null&&(f=j.editable().getName());return j.fire("toHtml",{dataValue:a,context:f,fixForBody:c,dontFilter:d,filter:e||j.filter,enterMode:h||j.enterMode}).dataValue}
267,toDataFormat:function(a,b){var c,d,j;if(b){c=b.context; 268d=b.filter;j=b.enterMode}!c&&c!==null&&(c=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:a,filter:d||this.editor.filter,context:c,enterMode:j||this.editor.enterMode}).dataValue}};var t=/(?: |\xa0)$/,C="{cke_protected}",q=CKEDITOR.dtd,u=["caption","colgroup","col","thead","tfoot","tbody"],B=CKEDITOR.tools.extend({},q.$blockLimit,q.$block),w={elements:{input:f,textarea:f}},r={attributeNames:[[/^on/,"data-cke-pa-on"],[/^data-cke-expando$/,""]]},p={elements:{embed:function(a){var b= 269a.parent;if(b&&b.name=="object"){var c=b.attributes.width,b=b.attributes.height;if(c)a.attributes.width=c;if(b)a.attributes.height=b}},a:function(a){if(!a.children.length&&!a.attributes.name&&!a.attributes["data-cke-saved-name"])return false}}},x={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"],d, 270j=0;j<c.length;j++){d="data-cke-saved-"+c[j];d in b&&delete b[c[j]]}}return a},table:function(a){a.children.slice(0).sort(function(a,b){var c,d;if(a.type==CKEDITOR.NODE_ELEMENT&&b.type==a.type){c=CKEDITOR.tools.indexOf(u,a.name);d=CKEDITOR.tools.indexOf(u,b.name)}if(!(c>-1&&d>-1&&c!=d)){c=a.parent?a.getIndex():-1;d=b.parent?b.getIndex():-1}return c>d?1:-1})},param:function(a){a.children=[];a.isEmpty=true;return a},span:function(a){a.attributes["class"]=="Apple-style-span"&&delete a.name},html:function(a){delete a.attributes.contenteditable; 271delete a.attributes["class"]},body:function(a){delete a.attributes.spellcheck;delete a.attributes.contenteditable},style:function(a){var b=a.children[0];if(b&&b.value)b.value=CKEDITOR.tools.trim(b.value);if(!a.attributes.type)a.attributes.type="text/css"},title:function(a){var b=a.children[0];!b&&g(a,b=new CKEDITOR.htmlParser.text);b.value=a.attributes["data-cke-title"]||""},input:h,textarea:h},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,""))||false}}}; 272if(CKEDITOR.env.ie)x.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,function(a){return a.toLowerCase()})};var v=/<(a|area|img|input|source)\b([^>]*)>/gi,y=/([\w-]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,A=/^(href|src|name)$/i,H=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,D=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,E=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,z=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,G=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi, 273J=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),"use strict",CKEDITOR.htmlParser.element=function(c,e){this.name=c;this.attributes=e||{};this.children=[];var b=c||"",a=b.match(/^cke:(.*)/);a&&(b=a[1]);b=!(!CKEDITOR.dtd.$nonBodyContent[b]&&!CKEDITOR.dtd.$block[b]&&!CKEDITOR.dtd.$listItem[b]&&!CKEDITOR.dtd.$tableContent[b]&&!(CKEDITOR.dtd.$nonEditable[b]||b=="br"));this.isEmpty=!!CKEDITOR.dtd.$empty[c];this.isUnknown=!CKEDITOR.dtd[c];this._={isBlockLike:b,hasInlineStarted:this.isEmpty||!b}}, 274CKEDITOR.htmlParser.cssStyle=function(c){var e={};((c instanceof CKEDITOR.htmlParser.element?c.attributes.style:c)||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(b,a,c){a=="font-family"&&(c=c.replace(/["']/g,""));e[a.toLowerCase()]=c});return{rules:e,populate:function(b){var a=this.toString();if(a)b instanceof CKEDITOR.dom.element?b.setAttribute("style",a):b instanceof CKEDITOR.htmlParser.element?b.attributes.style=a:b.style=a},toString:function(){var b=[],a; 275for(a in e)e[a]&&b.push(a,":",e[a],";");return b.join("")}}},function(){function c(a){return function(b){return b.type==CKEDITOR.NODE_ELEMENT&&(typeof a=="string"?b.name==a:b.name in a)}}var e=function(a,b){a=a[0];b=b[0];return a<b?-1:a>b?1:0},b=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:b.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(a, 276b){var c=this,e,f,b=c.getFilterContext(b);if(b.off)return true;if(!c.parent)a.onRoot(b,c);for(;;){e=c.name;if(!(f=a.onElementName(b,e))){this.remove();return false}c.name=f;if(!(c=a.onElement(b,c))){this.remove();return false}if(c!==this){this.replaceWith(c);return false}if(c.name==e)break;if(c.type!=CKEDITOR.NODE_ELEMENT){this.replaceWith(c);return false}if(!c.name){this.replaceWithChildren();return false}}e=c.attributes;var h,k;for(h in e){k=h;for(f=e[h];;)if(k=a.onAttributeName(b,h))if(k!=h){delete e[h]; 277h=k}else break;else{delete e[h];break}k&&((f=a.onAttribute(b,c,k,f))===false?delete e[k]:e[k]=f)}c.isEmpty||this.filterChildren(a,false,b);return true},filterChildren:b.filterChildren,writeHtml:function(a,b){b&&this.filter(b);var c=this.name,g=[],f=this.attributes,h,k;a.openTag(c,f);for(h in f)g.push([h,f[h]]);a.sortAttributes&&g.sort(e);h=0;for(k=g.length;h<k;h++){f=g[h];a.attribute(f[0],f[1])}a.openTagClose(c,this.isEmpty);this.writeChildrenHtml(a);this.isEmpty||a.closeTag(c)},writeChildrenHtml:b.writeChildrenHtml, 278replaceWithChildren:function(){for(var a=this.children,b=a.length;b;)a[--b].insertAfter(this);this.remove()}
278,forEach:b.forEach,getFirst:function(a){if(!a)return this.children.length?this.children[0]:null;typeof a!="function"&&(a=c(a));for(var b=0,e=this.children.length;b<e;++b)if(a(this.children[b]))return this.children[b];return null},getHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeChildrenHtml(a);return a.getHtml()},setHtml:function(a){for(var a=this.children=CKEDITOR.htmlParser.fragment.fromHtml(a).children, 279b=0,c=a.length;b<c;++b)a[b].parent=this},getOuterHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeHtml(a);return a.getHtml()},split:function(a){for(var b=this.children.splice(a,this.children.length-a),c=this.clone(),e=0;e<b.length;++e)b[e].parent=c;c.children=b;if(b[0])b[0].previous=null;if(a>0)this.children[a-1].next=null;this.parent.add(c,this.getIndex()+1);return c},removeClass:function(a){var b=this.attributes["class"];if(b)(b=CKEDITOR.tools.trim(b.replace(RegExp("(?:\\s+|^)"+ 280a+"(?:\\s+|$)")," ")))?this.attributes["class"]=b:delete this.attributes["class"]},hasClass:function(a){var b=this.attributes["class"];return!b?false:RegExp("(?:^|\\s)"+a+"(?=\\s|$)").test(b)},getFilterContext:function(a){var b=[];a||(a={off:false,nonEditable:false,nestedEditable:false});!a.off&&this.attributes["data-cke-processor"]=="off"&&b.push("off",true);!a.nonEditable&&this.attributes.contenteditable=="false"?b.push("nonEditable",true):this.name!="body"&&(!a.nestedEditable&&this.attributes.contenteditable== 281"true")&&b.push("nestedEditable",true);if(b.length)for(var a=CKEDITOR.tools.copy(a),c=0;c<b.length;c=c+2)a[b[c]]=b[c+1];return a}},true)}(),function(){var c={},e=/{([^}]+)}/g,b=/([\\'])/g,a=/\n/g,d=/\r/g;CKEDITOR.template=function(i){if(c[i])this.output=c[i];else{var g=i.replace(b,"\\$1").replace(a,"\\n").replace(d,"\\r").replace(e,function(a,b){return"',data['"+b+"']==undefined?'{"+b+"}':data['"+b+"'],'"});this.output=c[i]=Function("data","buffer","return buffer?buffer.push('"+g+"'):['"+g+"'].join('');")}}}(), 282delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(c){CKEDITOR.instances[c.name]=c;c.on("focus",function(){if(CKEDITOR.currentInstance!=c){CKEDITOR.currentInstance=c;CKEDITOR.fire("currentInstance")}});c.on("blur",function(){if(CKEDITOR.currentInstance==c){CKEDITOR.currentInstance=null;CKEDITOR.fire("currentInstance")}});CKEDITOR.fire("instance",null,c)},CKEDITOR.remove=function(c){delete CKEDITOR.instances[c.name]},function(){var c= 283{};CKEDITOR.addTemplate=function(e,b){var a=c[e];if(a)return a;a={name:e,source:b};CKEDITOR.fire("template",a);return c[e]=new CKEDITOR.template(a.source)};CKEDITOR.getTemplate=function(e){return c[e]}}(),function(){var c=[];CKEDITOR.addCss=function(e){c.push(e)};CKEDITOR.getCss=function(){return c.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= 284function(c,e){if(!CKEDITOR.env.isCompatible)return null;c=CKEDITOR.dom.element.get(c);if(c.getEditor())throw'The editor instance "'+c.getEditor().name+'" is already attached to the provided element.';var b=new CKEDITOR.editor(e,c,CKEDITOR.ELEMENT_MODE_INLINE),a=c.is("textarea")?c:null;if(a){b.setData(a.getValue(),null,true);c=CKEDITOR.dom.element.createFromHtml('<div contenteditable="'+!!b.readOnly+'" class="cke_textarea_inline">'+a.getValue()+"</div>",CKEDITOR.document);c.insertAfter(a);a.hide(); 285a.$.form&&b._attachToForm()}else b.setData(c.getHtml(),null,true);b.on("loaded",function(){b.fire("uiReady");b.editable(c);b.container=c;b.setData(b.getData(1));b.resetDirty();b.fire("contentDom");b.mode="wysiwyg";b.fire("mode");b.status="ready";b.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,b)},null,null,1E4);b.on("destroy",function(){if(a){b.container.clearCustomData();b.container.remove();a.show()}b.element.clearCustomData();delete b.element});return b};CKEDITOR.inlineAll=function(){var c, 286e,b;for(b in CKEDITOR.dtd.$editable)for(var a=CKEDITOR.document.getElementsByTag(b),d=0,i=a.count();d<i;d++){c=a.getItem(d);if(c.getAttribute("contenteditable")=="true"){e={element:c,config:{}};CKEDITOR.fire("inline",e)!==false&&CKEDITOR.inline(c,e.config)}}};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})}(),CKEDITOR.replaceClass="ckeditor",function(){function c(a,c,g,f){if(!CKEDITOR.env.isCompatible)return null;a=CKEDITOR.dom.element.get(a);if(a.getEditor())throw'The editor instance "'+ 287a.getEditor().name+'" is already attached to the provided element.';var h=new CKEDITOR.editor(c,a,f);if(f==CKEDITOR.ELEMENT_MODE_REPLACE){a.setStyle("visibility","hidden");h._.required=a.hasAttribute("required");a.removeAttribute("required")}g&&h.setData(g,null,true);h.on("loaded",function(){b(h);f==CKEDITOR.ELEMENT_MODE_REPLACE&&(h.config.autoUpdateElement&&a.$.form)&&h._attachToForm();h.setMode(h.config.startupMode,function(){h.resetDirty();h.status="ready";h.fireOnce("instanceReady");CKEDITOR.fire("instanceReady", 288null,h)})});h.on("destroy",e);return h}function e(){var a=this.container,b=this.element;if(a){a.clearCustomData();a.remove()}if(b){b.clearCustomData();if(this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE){b.show();this._.required&&b.setAttribute("required","required")}delete this.element}}function b(b){var c=b.name,e=b.element,f=b.elementMode,h=b.fire("uiSpace",{space:"top",html:""}).html,k=b.fire("uiSpace",{space:"bottom",html:""}).html;a||(a=CKEDITOR.addTemplate("maincontainer",'<{outerEl} id="cke_{name}" class="{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+ 289CKEDITOR.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}>'));c=CKEDITOR.dom.element.createFromHtml(a.output({id:b.id,name:c,langDir:b.lang.dir,langCode:b.langCode,voiceLabel:[b.lang.editor, 290b.name].join(", "),topHtml:h?'<span id="'+b.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+h+"</span>":"",contentId:b.ui.spaceId("contents"),bottomHtml:k?'<span id="'+b.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+k+"</span>":"",outerEl:CKEDITOR.env.ie?"span":"div"}));if(f==CKEDITOR.ELEMENT_MODE_REPLACE){e.hide();c.insertAfter(e)}
290else e.append(c);b.container=c;h&&b.ui.space("top").unselectable();k&&b.ui.space("bottom").unselectable(); 291e=b.config.width;f=b.config.height;e&&c.setStyle("width",CKEDITOR.tools.cssLength(e));f&&b.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(f));c.disableContextMenu();CKEDITOR.env.webkit&&c.on("focus",function(){b.focus()});b.fireOnce("uiReady")}CKEDITOR.replace=function(a,b){return c(a,b,null,CKEDITOR.ELEMENT_MODE_REPLACE)};CKEDITOR.appendTo=function(a,b,e){return c(a,b,e,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=document.getElementsByTagName("textarea"), 292b=0;b<a.length;b++){var c=null,f=a[b];if(f.name||f.id){if(typeof arguments[0]=="string"){if(!RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)").test(f.className))continue}else if(typeof arguments[0]=="function"){c={};if(arguments[0](f,c)===false)continue}this.replace(f,c)}}};CKEDITOR.editor.prototype.addMode=function(a,b){(this._.modes||(this._.modes={}))[a]=b};CKEDITOR.editor.prototype.setMode=function(a,b){var c=this,f=this._.modes;if(!(a==c.mode||!f||!f[a])){c.fire("beforeSetMode",a);if(c.mode){var e= 293c.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;e!==void 0&&!e&&c.resetDirty();setTimeout(function(){c.fire("mode");b&&b.call(c)},0)})}};CKEDITOR.editor.prototype.resize=function(a,b,c,f){var e=this.container,k=this.ui.space("contents"),l=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement,f=f?e.getChild(1):e;f.setSize("width",a,true);l&&(l.style.width="1%");k.setStyle("height", 294Math.max(b-(c?0:(f.$.offsetHeight||0)-(k.$.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 a;CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){function c(b){var c=b.editor,d=b.data.path,f=d.blockLimit,h=b.data.selection,g=h.getRanges()[0],k;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&& 295CKEDITOR.env.needsBrFiller)if(h=e(h,d)){h.appendBogus();k=CKEDITOR.env.ie}if(c.config.autoParagraph!==false&&c.activeEnterMode!=CKEDITOR.ENTER_BR&&c.editable().equals(f)&&!d.block&&g.collapsed&&!g.getCommonAncestor().isReadOnly()){d=g.clone();d.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);f=new CKEDITOR.dom.walker(d);f.guard=function(b){return!a(b)||b.type==CKEDITOR.NODE_COMMENT||b.isReadOnly()};if(!f.checkForward()||d.checkStartOfBlock()&&d.checkEndOfBlock()){c=g.fixBlock(true,c.activeEnterMode==CKEDITOR.ENTER_DIV? 296"div":"p");if(!CKEDITOR.env.needsBrFiller)(c=c.getFirst(a))&&(c.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(c.getText()).match(/^(?: |\xa0)$/))&&c.remove();k=1;b.cancel()}}k&&g.select()}function e(b,c){if(b.isFake)return 0;var d=c.block||c.blockLimit,f=d&&d.getLast(a);if(d&&d.isBlockBoundary()&&(!f||!(f.type==CKEDITOR.NODE_ELEMENT&&f.isBlockBoundary()))&&!d.is("pre")&&!d.getBogus())return d}function b(a){var b=a.data.getTarget();if(b.is("input")){b=b.getAttribute("type");(b=="submit"||b=="reset")&& 297a.data.preventDefault()}}function a(a){return l(a)&&m(a)}function d(a,b){return function(c){var d=CKEDITOR.dom.element.get(c.data.$.toElement||c.data.$.fromElement||c.data.$.relatedTarget);(!d||!b.equals(d)&&!b.contains(d))&&a.call(this,c)}}function i(b){var c,d=b.getRanges()[0],f=b.root,e={table:1,ul:1,ol:1,dl:1};if(d.startPath().contains(e)){var b=function(b){return function(d,f){f&&(d.type==CKEDITOR.NODE_ELEMENT&&d.is(e))&&(c=d);if(!f&&a(d)&&(!b||!h(d)))return false}},g=d.clone();g.collapse(1); 298g.setStartAt(f,CKEDITOR.POSITION_AFTER_START);f=new CKEDITOR.dom.walker(g);f.guard=b();f.checkBackward();if(c){g=d.clone();g.collapse();g.setEndAt(c,CKEDITOR.POSITION_AFTER_END);f=new CKEDITOR.dom.walker(g);f.guard=b(true);c=false;f.checkForward();return c}}return null}function g(a){a.editor.focus();a.editor.fire("saveSnapshot")}function f(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, 299$:function(a,b){this.base(b.$||b);this.editor=a;this.hasFocus=false;this.setup()},proto:{focus:function(){var a;if(CKEDITOR.env.webkit&&!this.hasFocus){a=this.editor._.previousActive||this.getDocument().getActive();if(this.contains(a)){a.focus();return}}try{this.$[CKEDITOR.env.ie&&this.getDocument().equals(CKEDITOR.document)?"setActive":"focus"]()}catch(b){if(!CKEDITOR.env.ie)throw b;}if(CKEDITOR.env.safari&&!this.isInline()){a=CKEDITOR.document.getActive();a.equals(this.getWindow().getFrame())|| 300this.getWindow().focus()}},on:function(a,b){var c=Array.prototype.slice.call(arguments,0);
300if(CKEDITOR.env.ie&&/^focus|blur$/.exec(a)){a=a=="focus"?"focusin":"focusout";b=d(b,this);c[0]=a;c[1]=b}return CKEDITOR.dom.element.prototype.on.apply(this,c)},attachListener:function(a,b,c,d,f,e){!this._.listeners&&(this._.listeners=[]);var h=Array.prototype.slice.call(arguments,1),h=a.on.apply(a,h);this._.listeners.push(h);return h},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(b){}}, 301restoreAttrs: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, 302b){g(this);n(this,b||"html",a)},insertText:function(a){g(this);var b=this.editor,c=b.getSelection().getStartElement().hasAscendant("pre",true)?CKEDITOR.ENTER_BR:b.activeEnterMode,b=c==CKEDITOR.ENTER_BR,d=CKEDITOR.tools,a=d.htmlEncode(a.replace(/\r\n/g,"\n")),a=a.replace(/\t/g," "),c=c==CKEDITOR.ENTER_P?"p":"div";if(!b){var f=/\n{2}/g;if(f.test(a))var e="<"+c+">",h="</"+c+">",a=e+a.replace(f,function(){return h+e})+h}a=a.replace(/\n/g,"<br>");b||(a=a.replace(RegExp("<br>(?=</"+c+ 303">)"),function(a){return d.repeat(a,2)}));a=a.replace(/^ | $/g," ");a=a.replace(/(>|\s) /g,function(a,b){return b+" "}).replace(/ (?=<)/g," ");n(this,"text",a)},insertElement:function(a,b){b?this.insertElementIntoRange(a,b):this.insertElementIntoSelection(a)},insertElementIntoRange:function(a,b){var c=this.editor,d=c.config.enterMode,f=a.getName(),e=CKEDITOR.dtd.$block[f];if(b.checkReadOnly())return false;b.deleteContents(1);b.startContainer.type==CKEDITOR.NODE_ELEMENT&&b.startContainer.is({tr:1, 304table:1,tbody:1,thead:1,tfoot:1})&&s(b);var h,g;if(e)for(;(h=b.getCommonAncestor(0,1))&&(g=CKEDITOR.dtd[h.getName()])&&(!g||!g[f]);)if(h.getName()in CKEDITOR.dtd.span)b.splitElement(h);else if(b.checkStartOfBlock()&&b.checkEndOfBlock()){b.setStartBefore(h);b.collapse(true);h.remove()}else b.splitBlock(d==CKEDITOR.ENTER_DIV?"div":"p",c.editable());b.insertNode(a);return true},insertElementIntoSelection:function(b){var c=this.editor,d=c.activeEnterMode,c=c.getSelection(),e=c.getRanges()[0],k=b.getName(), 305k=CKEDITOR.dtd.$block[k];g(this);if(this.insertElementIntoRange(b,e)){e.moveToPosition(b,CKEDITOR.POSITION_AFTER_END);if(k)if((k=b.getNext(function(b){return a(b)&&!h(b)}))&&k.type==CKEDITOR.NODE_ELEMENT&&k.is(CKEDITOR.dtd.$block))k.getDtd()["#"]?e.moveToElementEditStart(k):e.moveToElementEditEnd(b);else if(!k&&d!=CKEDITOR.ENTER_BR){k=e.fixBlock(true,d==CKEDITOR.ENTER_DIV?"div":"p");e.moveToElementEditStart(k)}}c.selectRanges([e]);f(this,CKEDITOR.env.opera)},setData:function(a,b){b||(a=this.editor.dataProcessor.toHtml(a)); 306this.setHtml(a);this.editor.fire("dataReady")},getData:function(a){var b=this.getHtml();a||(b=this.editor.dataProcessor.toDataFormat(b));return b},setReadOnly:function(a){this.setAttribute("contenteditable",!a)},detach:function(){this.removeClass("cke_editable");var a=this.editor;this._.detach();delete a.document;delete a.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},setup:function(){var c=this.editor;this.attachListener(c,"beforeGetData",function(){var a=this.getData(); 307this.is("textarea")||c.config.ignoreEmptyParagraph!==false&&(a=a.replace(k,function(a,b){return b}));c.setData(a,null,1)},this);this.attachListener(c,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(c,"afterSetData",function(){this.setData(c.getData(1))},this);this.attachListener(c,"loadSnapshot",function(a){this.setData(a.data,1)},this);this.attachListener(c,"beforeFocus",function(){var a=c.getSelection();(a=a&&a.getNative())&&a.type=="Control"||this.focus()},this);this.attachListener(c, 308"insertHtml",function(a){this.insertHtml(a.data.dataValue,a.data.mode)},this);this.attachListener(c,"insertElement",function(a){this.insertElement(a.data)},this);this.attachListener(c,"insertText",function(a){this.insertText(a.data)},this);this.setReadOnly(c.readOnly);this.attachClass("cke_editable");this.attachClass(c.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"cke_editable_inline":c.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE||c.elementMode==CKEDITOR.ELEMENT_MODE_APPENDTO?"cke_editable_themed":""); 309this.attachClass("cke_contents_"+c.config.contentsLangDirection);c.keystrokeHandler.blockedKeystrokes[8]=+c.readOnly;c.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}
309,null,null,-1);this.on("focus",function(){this.hasFocus=true},null,null,-1);c.focusManager.add(this);if(this.equals(CKEDITOR.document.getActive())){this.hasFocus=true;c.once("contentDom", 310function(){c.focusManager.focus()})}this.isInline()&&this.changeAttr("tabindex",c.tabIndex);if(!this.is("textarea")){c.document=this.getDocument();c.window=this.getWindow();var d=c.document;this.changeAttr("spellcheck",!c.config.disableNativeSpellChecker);var f=c.config.contentsLangDirection;this.getDirection(1)!=f&&this.changeAttr("dir",f);var e=CKEDITOR.getCss();if(e){f=d.getHead();if(!f.getCustomData("stylesheet")){e=d.appendStyleText(e);e=new CKEDITOR.dom.element(e.ownerNode||e.owningElement); 311f.setCustomData("stylesheet",e);e.data("cke-temp",1)}}f=d.getCustomData("stylesheet_ref")||0;d.setCustomData("stylesheet_ref",f+1);this.setCustomData("cke_includeReadonly",!c.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){var a=a.data,b=(new CKEDITOR.dom.elementPath(a.getTarget(),this)).contains("a");b&&(a.$.button!=2&&b.isReadOnly())&&a.preventDefault()});var h={8:1,46:1};this.attachListener(c,"key",function(a){if(c.readOnly)return true;var b=a.data.keyCode,d;if(b in 312h){var a=c.getSelection(),f,e=a.getRanges()[0],g=e.startPath(),k,o,m,b=b==8;if(CKEDITOR.env.ie&&CKEDITOR.env.version<11&&(f=a.getSelectedElement())||(f=i(a))){c.fire("saveSnapshot");e.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START);f.remove();e.select();c.fire("saveSnapshot");d=1}else if(e.collapsed)if((k=g.block)&&(m=k[b?"getPrevious":"getNext"](l))&&m.type==CKEDITOR.NODE_ELEMENT&&m.is("table")&&e[b?"checkStartOfBlock":"checkEndOfBlock"]()){c.fire("saveSnapshot");e[b?"checkEndOfBlock":"checkStartOfBlock"]()&& 313k.remove();e["moveToElementEdit"+(b?"End":"Start")](m);e.select();c.fire("saveSnapshot");d=1}else if(g.blockLimit&&g.blockLimit.is("td")&&(o=g.blockLimit.getAscendant("table"))&&e.checkBoundaryOfElement(o,b?CKEDITOR.START:CKEDITOR.END)&&(m=o[b?"getPrevious":"getNext"](l))){c.fire("saveSnapshot");e["moveToElementEdit"+(b?"End":"Start")](m);e.checkStartOfBlock()&&e.checkEndOfBlock()?m.remove():e.select();c.fire("saveSnapshot");d=1}else if((o=g.contains(["td","th","caption"]))&&e.checkBoundaryOfElement(o, 314b?CKEDITOR.START:CKEDITOR.END))d=1}return!d});c.blockless&&(CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)&&this.attachListener(this,"keyup",function(b){if(b.data.getKeystroke()in h&&!this.getFirst(a)){this.appendBogus();b=c.createRange();b.moveToPosition(this,CKEDITOR.POSITION_AFTER_START);b.select()}});this.attachListener(this,"dblclick",function(a){if(c.readOnly)return false;a={element:a.data.getTarget()};c.fire("doubleclick",a)});CKEDITOR.env.ie&&this.attachListener(this,"click",b);!CKEDITOR.env.ie&& 315!CKEDITOR.env.opera&&this.attachListener(this,"mousedown",function(a){var b=a.data.getTarget();if(b.is("img","hr","input","textarea","select")){c.getSelection().selectElement(b);b.is("input","textarea","select")&&a.data.preventDefault()}});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(a){if(a.data.$.button==2){a=a.data.getTarget();if(!a.getOuterHtml().replace(k,"")){var b=c.createRange();b.moveToElementEditStart(a);b.select(true)}}});if(CKEDITOR.env.webkit){this.attachListener(this, 316"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());if(!this.is("textarea")){a=this.getDocument();var b=a.getHead();if(b.getCustomData("stylesheet")){var c= 317a.getCustomData("stylesheet_ref");if(--c)a.setCustomData("stylesheet_ref",c);else{a.removeCustomData("stylesheet_ref");b.removeCustomData("stylesheet").remove()}}}this.editor.fire("contentDomUnload");delete this.editor}}});CKEDITOR.editor.prototype.editable=function(a){var b=this._.editable;if(b&&a)return 0;if(arguments.length)b=this._.editable=a?a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this,a):(b&&b.detach(),null);return b};var h=CKEDITOR.dom.walker.bogus(),k=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,
318l=CKEDITOR.dom.walker.whitespaces(true),m=CKEDITOR.dom.walker.bookmark(false,true);CKEDITOR.on("instanceLoaded",function(a){var b=a.editor;b.on("insertElement",function(a){a=a.data;if(a.type==CKEDITOR.NODE_ELEMENT&&(a.is("input")||a.is("textarea"))){a.getAttribute("contentEditable")!="false"&&a.data("cke-editable",a.hasAttribute("contenteditable")?"true":"1");a.setAttribute("contentEditable",false)}});b.on("selectionChange",function(a){if(!b.readOnly){var d=b.getSelection();if(d&&!d.isLocked){d=b.checkDirty(); 319b.fire("lockSnapshot");c(a);b.fire("unlockSnapshot");!d&&b.resetDirty()}}})});CKEDITOR.on("instanceCreated",function(a){var b=a.editor;b.on("mode",function(){var a=b.editable();if(a&&a.isInline()){var 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 d=CKEDITOR.tools.getNextId(),f=CKEDITOR.dom.element.createFromHtml('<span id="'+d+'" class="cke_voice_label">'+this.lang.common.editorHelp+ 320"</span>");c.append(f);a.changeAttr("aria-describedby",d)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");var n=function(){function b(a){return a.type==CKEDITOR.NODE_ELEMENT}function c(a,d){var f,e,h,g,i=[],z=d.range.startContainer;f=d.range.startPath();for(var z=k[z.getName()],q=0,l=a.getChildren(),u=l.count(),p=-1,m=-1,w=0,n=f.contains(k.$list);q<u;++q){f=l.getItem(q);if(b(f)){h=f.getName();if(n&&h in CKEDITOR.dtd.$list)i= 321i.concat(c(f,d));else{g=!!z[h];if(h=="br"&&f.data("cke-eol")&&(!q||q==u-1)){w=(e=q?i[q-1].node:l.getItem(q+1))&&(!b(e)||!e.is("br"));e=e&&b(e)&&k.$block[e.getName()]}p==-1&&!g&&(p=q);g||(m=q);i.push({isElement:1,isLineBreak:w,isBlock:f.isBlockBoundary(),hasBlockSibling:e,node:f,name:h,allowed:g});e=w=0}}else i.push({isElement:0,node:f,allowed:1})}if(p>-1)i[p].firstNotAllowed=1;if(m>-1)i[m].lastNotAllowed=1;return i}function d(a,c){var f=[],e=a.getChildren(),h=e.count(),g,i=0,z=k[c],q=!a.is(k.$inline)|| 322a.is("br");for(q&&f.push(" ");i<h;i++){g=e.getItem(i);b(g)&&!g.is(z)?f=f.concat(d(g,c)):f.push(g)}q&&f.push(" ");return f}function e(a){return a&&b(a)&&(a.is(k.$removeEmpty)||a.is("a")&&!a.isBlockBoundary())}function h(a,c,d,f){var e=a.clone(),g,k;e.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);if((g=(new CKEDITOR.dom.walker(e)).next())&&b(g)&&i[g.getName()]&&(k=g.getPrevious())&&b(k)&&!k.getParent().equals(a.startContainer)&&d.contains(k)&&f.contains(g)&&g.isIdentical(k)){g.moveChildren(k);g.remove(); 323h(a,c,d,f)}}function g(a,c){function d(a,c){if(c.isBlock&&c.isElement&&!c.node.is("br")&&b(a)&&a.is("br")){a.remove();return 1}}var f=c.endContainer.getChild(c.endOffset),e=c.endContainer.getChild(c.endOffset-1);f&&d(f,a[a.length-1]);if(e&&d(e,a[0])){c.setEnd(c.endContainer,c.endOffset-1);c.collapse()}}var k=CKEDITOR.dtd,i={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,li:1,pre:1,dl:1,blockquote:1},l={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},p=CKEDITOR.tools.extend({},k.$inline);delete p.br;return function(i, 324m,w){var n=i.editor;i.getDocument();var s=n.getSelection().getRanges()[0],D=false;if(m=="unfiltered_html"){m="html";D=true}if(!s.checkReadOnly()){var E=(new CKEDITOR.dom.elementPath(s.startContainer,s.root)).blockLimit||s.root,m={type:m,dontFilter:D,editable:i,editor:n,range:s,blockLimit:E,mergeCandidates:[],zombies:[]},n=m.range,D=m.mergeCandidates,z,G,J,F;if(m.type=="text"&&n.shrink(CKEDITOR.SHRINK_ELEMENT,true,false)){z=CKEDITOR.dom.element.createFromHtml("<span> </span>",n.document);n.insertNode(z); 325n.setStartAfter(z)}G=new CKEDITOR.dom.elementPath(n.startContainer);m.endPath=J=new CKEDITOR.dom.elementPath(n.endContainer);if(!n.collapsed){var E=J.block||J.blockLimit,R=n.getCommonAncestor();E&&(!E.equals(R)&&!E.contains(R)&&n.checkEndOfBlock())&&m.zombies.push(E);n.deleteContents()}for(;(F=b(n.startContainer)&&n.startContainer.getChild(n.startOffset-1))&&b(F)&&F.isBlockBoundary()&&G.contains(F);)n.moveToPosition(F,CKEDITOR.POSITION_BEFORE_END);h(n,m.blockLimit,G,J);if(z){n.setEndBefore(z);n.collapse(); 326z.remove()}z=n.startPath();if(E=z.contains(e,false,1)){n.splitElement(E);m.inlineStylesRoot=E;m.inlineStylesPeak=z.lastElement}z=n.createBookmark();(E=z.startNode.getPrevious(a))&&b(E)&&e(E)&&D.push(E);(E=z.startNode.getNext(a))&&b(E)&&e(E)&&D.push(E);for(E=z.startNode;(E=E.getParent())&&e(E);)D.push(E);n.moveToBookmark(z);if(z=w){z=m.range;if(m.type=="text"&&m.inlineStylesRoot){F=m.inlineStylesPeak;n=F.getDocument().createText("{cke-peak}");for(D=m.inlineStylesRoot.getParent();!F.equals(D);){n=n.appendTo(F.clone()); 327F=F.getParent()}w=n.getOuterHtml().split("{cke-peak}").join(w)}F=m.blockLimit.getName();if(/^\s+|\s+$/.test(w)&&"span"in CKEDITOR.dtd[F])var L='<span data-cke-marker="1"> </span>',w=L+w+L;w=m.editor.dataProcessor.toHtml(w,{context:null,fixForBody:false,dontFilter:m.dontFilter,filter:m.editor.activeFilter,enterMode:m.editor.activeEnterMode});F=z.document.createElement("body");F.setHtml(w);if(L){F.getFirst().remove();F.getLast().remove()}if((L=z.startPath().block)&&!(L.getChildCount()==1&&L.getBogus()))a:{var K; 328if(F.getChildCount()==1&&b(K=F.getFirst())&&K.is(l)){L=K.getElementsByTag("*");z=0;for(D=L.count();z<D;z++){n=L.getItem(z);if(!n.is(p))break a}K.moveChildren(K.getParent(1));K.remove()}}m.dataWrapper=F;z=w}if(z){K=m.range;var L=K.document,I,w=m.blockLimit;z=0;var N;F=[];var M,Q,D=n=0,O,T;G=K.startContainer;var E=m.endPath.elements[0],U;J=E.getPosition(G);R=!!E.getCommonAncestor(G)&&J!=CKEDITOR.POSITION_IDENTICAL&&!(J&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED);G=c(m.dataWrapper,m); 329for(g(G,K);z<G.length;z++){J=G[z];if(I=J.isLineBreak){I=K;O=w;var P=void 0,W=void 0;if(J.hasBlockSibling)I=1;else{P=I.startContainer.getAscendant(k.$block,1);if(!P||!P.is({div:1,p:1}))I=0;else{W=P.getPosition(O);if(W==CKEDITOR.POSITION_IDENTICAL||W==CKEDITOR.POSITION_CONTAINS)I=0;else{O=I.splitElement(P);I.moveToPosition(O,CKEDITOR.POSITION_AFTER_START);I=1}}}}if(I)D=z>0;else{I=K.startPath();if(!J.isBlock&&m.editor.config.autoParagraph!==false&&(m.editor.activeEnterMode!=CKEDITOR.ENTER_BR&&m.editor.editable().equals(I.blockLimit)&& 330!I.block)&&(Q=m.editor.activeEnterMode!=CKEDITOR.ENTER_BR&&m.editor.config.autoParagraph!==false?m.editor.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p":false)){Q=L.createElement(Q);Q.appendBogus();K.insertNode(Q);CKEDITOR.env.needsBrFiller&&(N=Q.getBogus())&&N.remove();K.moveToPosition(Q,CKEDITOR.POSITION_BEFORE_END)}if((I=K.startPath().block)&&!I.equals(M)){if(N=I.getBogus()){N.remove();F.push(I)}M=I}J.firstNotAllowed&&(n=1);if(n&&J.isElement){I=K.startContainer;for(O=null;I&&!k[I.getName()][J.name];){if(I.equals(w)){I= 331null;break}O=I;I=I.getParent()}if(I){if(O){T=K.splitElement(O);m.zombies.push(T);m.zombies.push(O)}}else{O=w.getName();U=!z;I=z==G.length-1;O=d(J.node,O);for(var P=[],W=O.length,Z=0,aa=void 0,ba=0,ca=-1;Z<W;Z++){aa=O[Z];if(aa==" "){if(!ba&&(!U||Z)){P.push(new CKEDITOR.dom.text(" "));ca=P.length}ba=1}else{P.push(aa);ba=0}}I&&ca==P.length&&P.pop();U=P}}if(U){for(;I=U.pop();)K.insertNode(I);U=0}else K.insertNode(J.node);
331if(J.lastNotAllowed&&z<G.length-1){(T=R?E:T)&&K.setEndAt(T,CKEDITOR.POSITION_AFTER_START); 332n=0}K.collapse()}}m.dontMoveCaret=D;m.bogusNeededBlocks=F}N=m.range;var X;T=m.bogusNeededBlocks;for(U=N.createBookmark();M=m.zombies.pop();)if(M.getParent()){Q=N.clone();Q.moveToElementEditStart(M);Q.removeEmptyBlocksAtEnd()}if(T)for(;M=T.pop();)CKEDITOR.env.needsBrFiller?M.appendBogus():M.append(N.document.createText("Â "));for(;M=m.mergeCandidates.pop();)M.mergeSiblings();N.moveToBookmark(U);if(!m.dontMoveCaret){for(M=b(N.startContainer)&&N.startContainer.getChild(N.startOffset-1);M&&b(M)&&!M.is(k.$empty);){if(M.isBlockBoundary())N.moveToPosition(M, 333CKEDITOR.POSITION_BEFORE_END);else{if(e(M)&&M.getHtml().match(/(\s| )$/g)){X=null;break}X=N.clone();X.moveToPosition(M,CKEDITOR.POSITION_BEFORE_END)}M=M.getLast(a)}X&&N.moveToRange(X)}s.select();f(i)}}}(),s=function(){function a(b){b=new CKEDITOR.dom.walker(b);b.guard=function(a,b){if(b)return false;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$tableContent)};b.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT};return b}function b(a,c,d){c=a.getDocument().createElement(c); 334a.append(c,d);return c}function c(a){var b=a.count(),d;for(b;b-- >0;){d=a.getItem(b);if(!CKEDITOR.tools.trim(d.getHtml())){d.appendBogus();CKEDITOR.env.ie&&(CKEDITOR.env.version<9&&d.getChildCount())&&d.getFirst().remove()}}}return function(d){var f=d.startContainer,e=f.getAscendant("table",1),h=false;c(e.getElementsByTag("td"));c(e.getElementsByTag("th"));e=d.clone();e.setStart(f,0);e=a(e).lastBackward();if(!e){e=d.clone();e.setEndAt(f,CKEDITOR.POSITION_BEFORE_END);e=a(e).lastForward();h=true}e|| 335(e=f);if(e.is("table")){d.setStartAt(e,CKEDITOR.POSITION_BEFORE_START);d.collapse(true);e.remove()}else{e.is({tbody:1,thead:1,tfoot:1})&&(e=b(e,"tr",h));e.is("tr")&&(e=b(e,e.getParent().is("thead")?"th":"td",h));(f=e.getBogus())&&f.remove();d.moveToPosition(e,h?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END)}}}()}(),function(){function c(){var a=this._.fakeSelection,b;if(a){b=this.getSelection(1);if(!b||!b.isHidden()){a.reset();a=0}}if(!a){a=b||this.getSelection(1);if(!a||a.getType()== 336CKEDITOR.SELECTION_NONE)return}this.fire("selectionCheck",a);b=this.elementPath();if(!b.compare(this._.selectionPreviousPath)){if(CKEDITOR.env.webkit)this._.previousActive=this.document.getActive();this._.selectionPreviousPath=b;this.fire("selectionChange",{selection:a,path:b})}}function e(){n=true;if(!m){b.call(this);m=CKEDITOR.tools.setTimeout(b,200,this)}}function b(){m=null;if(n){CKEDITOR.tools.setTimeout(c,0,this);n=false}}function a(a){function b(c,d){return!c||c.type==CKEDITOR.NODE_TEXT?false: 337a.clone()["moveToElementEdit"+(d?"End":"Start")](c)}if(!(a.root instanceof CKEDITOR.editable))return false;var c=a.startContainer,d=a.getPreviousNode(s,null,c),e=a.getNextNode(s,null,c);return b(d)||b(e,1)||!d&&!e&&!(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()&&c.getBogus())?true:false}function d(a){return a.getCustomData("cke-fillingChar")}function i(a,b){var c=a&&a.removeCustomData("cke-fillingChar");if(c){if(b!==false){var d,e=a.getDocument().getSelection().getNative(),f=e&&e.type!="None"&& 338e.getRangeAt(0);if(c.getLength()>1&&f&&f.intersectsNode(c.$)){d=[e.anchorOffset,e.focusOffset];f=e.focusNode==c.$&&e.focusOffset>0;e.anchorNode==c.$&&e.anchorOffset>0&&d[0]--;f&&d[1]--;var h;f=e;if(!f.isCollapsed){h=f.getRangeAt(0);h.setStart(f.anchorNode,f.anchorOffset);h.setEnd(f.focusNode,f.focusOffset);h=h.collapsed}h&&d.unshift(d.pop())}}c.setText(g(c.getText()));if(d){c=e.getRangeAt(0);c.setStart(c.startContainer,d[0]);c.setEnd(c.startContainer,d[1]);e.removeAllRanges();e.addRange(c)}}}function g(a){return a.replace(/\u200B( )?/g, 339function(a){return a[1]?"Â ":""})}function f(a,b,c){var d=a.on("focus",function(a){a.cancel()},null,null,-100);if(CKEDITOR.env.ie)var e=a.getDocument().on("selectionchange",function(a){a.cancel()},null,null,-100);else{var f=new CKEDITOR.dom.range(a);f.moveToElementEditStart(a);var h=a.getDocument().$.createRange();h.setStart(f.startContainer.$,f.startOffset);h.collapse(1);b.removeAllRanges();b.addRange(h)}c&&a.focus();d.removeListener();e&&e.removeListener()}function h(a){var b=CKEDITOR.dom.element.createFromHtml('<div data-cke-hidden-sel="1" data-cke-temp="1" style="'+ 340(CKEDITOR.env.ie?"display:none":"position:fixed;top:0;left:-1000px")+'"> </div>',a.document);a.fire("lockSnapshot");a.editable().append(b);var c=a.getSelection(1),d=a.createRange(),e=c.root.on("selectionchange",function(a){a.cancel()},null,null,0);d.setStartAt(b,CKEDITOR.POSITION_AFTER_START);d.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);
340c.selectRanges([d]);e.removeListener();a.fire("unlockSnapshot");a._.hiddenSelectionContainer=b}function k(a){var b={37:1,39:1,8:1,46:1};return function(c){var d= 341c.data.getKeystroke();if(b[d]){var e=a.getSelection().getRanges(),f=e[0];if(e.length==1&&f.collapsed)if((d=f[d<38?"getPreviousEditableNode":"getNextEditableNode"]())&&d.type==CKEDITOR.NODE_ELEMENT&&d.getAttribute("contenteditable")=="false"){a.getSelection().fake(d);c.data.preventDefault();c.cancel()}}}}function l(a){for(var b=0;b<a.length;b++){var c=a[b];c.getCommonAncestor().isReadOnly()&&a.splice(b,1);if(!c.collapsed){if(c.startContainer.isReadOnly())for(var d=c.startContainer,e;d;){if((e=d.type== 342CKEDITOR.NODE_ELEMENT)&&d.is("body")||!d.isReadOnly())break;e&&d.getAttribute("contentEditable")=="false"&&c.setStartAfter(d);d=d.getParent()}d=c.startContainer;e=c.endContainer;var f=c.startOffset,h=c.endOffset,g=c.clone();d&&d.type==CKEDITOR.NODE_TEXT&&(f>=d.getLength()?g.setStartAfter(d):g.setStartBefore(d));e&&e.type==CKEDITOR.NODE_TEXT&&(h?g.setEndAfter(e):g.setEndBefore(e));d=new CKEDITOR.dom.walker(g);d.evaluator=function(d){if(d.type==CKEDITOR.NODE_ELEMENT&&d.isReadOnly()){var e=c.clone(); 343c.setEndBefore(d);c.collapsed&&a.splice(b--,1);if(!(d.getPosition(g.endContainer)&CKEDITOR.POSITION_CONTAINS)){e.setStartAfter(d);e.collapsed||a.splice(b+1,0,e)}return true}return false};d.next()}}return a}var m,n,s=CKEDITOR.dom.walker.invisible(1),j=function(){function a(b){return function(a){var c=a.editor.createRange();c.moveToClosestEditablePosition(a.selected,b)&&a.editor.getSelection().selectRanges([c]);return false}}function b(a){return function(b){var c=b.editor,d=c.createRange(),e;if(!(e= 344d.moveToClosestEditablePosition(b.selected,a)))e=d.moveToClosestEditablePosition(b.selected,!a);e&&c.getSelection().selectRanges([d]);c.fire("saveSnapshot");b.selected.remove();if(!e){d.moveToElementEditablePosition(c.editable());c.getSelection().selectRanges([d])}c.fire("saveSnapshot");return false}}var c=a(),d=a(1);return{37:c,38:c,39:d,40:d,8:b(),46:b(1)}}();CKEDITOR.on("instanceCreated",function(a){function b(){var a=d.getSelection();a&&a.removeAllRanges()}var d=a.editor;d.on("contentDom",function(){var a= 345d.document,b=CKEDITOR.document,f=d.editable(),h=a.getBody(),g=a.getDocumentElement(),j=f.isInline(),l,q;CKEDITOR.env.gecko&&f.attachListener(f,"focus",function(a){a.removeListener();if(l!==0)if((a=d.getSelection().getNative())&&a.isCollapsed&&a.anchorNode==f.$){a=d.createRange();a.moveToElementEditStart(f);a.select()}},null,null,-2);f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){l&&CKEDITOR.env.webkit&&(l=d._.previousActive&&d._.previousActive.equals(a.getActive()));d.unlockSelection(l); 346l=0},null,null,-1);f.attachListener(f,"mousedown",function(){l=0});if(CKEDITOR.env.ie||CKEDITOR.env.opera||j){var m=function(){q=new CKEDITOR.dom.selection(d.getSelection());q.lock()};o?f.attachListener(f,"beforedeactivate",m,null,null,-1):f.attachListener(d,"selectionCheck",m,null,null,-1);f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){d.lockSelection(q);l=1},null,null,-1);f.attachListener(f,"mousedown",function(){l=0})}if(CKEDITOR.env.ie&&!j){var u;f.attachListener(f,"mousedown", 347function(a){if(a.data.$.button==2){a=d.document.getSelection();if(!a||a.getType()==CKEDITOR.SELECTION_NONE)u=d.window.getScrollPosition()}});f.attachListener(f,"mouseup",function(a){if(a.data.$.button==2&&u){d.document.$.documentElement.scrollLeft=u.x;d.document.$.documentElement.scrollTop=u.y}u=null});if(a.$.compatMode!="BackCompat"){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)g.on("mousedown",function(a){function c(a){a=a.data.$;if(f){var b=h.$.createTextRange();try{b.moveToPoint(a.x,a.y)}catch(d){}f.setEndPoint(j.compareEndPoints("StartToStart", 348b)<0?"EndToEnd":"StartToStart",b);f.select()}}function d(){g.removeListener("mousemove",c);b.removeListener("mouseup",d);g.removeListener("mouseup",d);f.select()}a=a.data;if(a.getTarget().is("html")&&a.$.y<g.$.clientHeight&&a.$.x<g.$.clientWidth){var f=h.$.createTextRange();try{f.moveToPoint(a.$.x,a.$.y)}catch(e){}var j=f.duplicate();g.on("mousemove",c);b.on("mouseup",d);g.on("mouseup",d)}});if(CKEDITOR.env.version>
3487&&CKEDITOR.env.version<11){g.on("mousedown",function(a){if(a.data.getTarget().is("html")){b.on("mouseup", 349z);g.on("mouseup",z)}});var z=function(){b.removeListener("mouseup",z);g.removeListener("mouseup",z);var c=CKEDITOR.document.$.selection,d=c.createRange();c.type!="None"&&d.parentElement().ownerDocument==a.$&&d.select()}}}}f.attachListener(f,"selectionchange",c,d);f.attachListener(f,"keyup",e,d);f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){d.forceNextSelectionCheck();d.selectionChange(1)});if(j?CKEDITOR.env.webkit||CKEDITOR.env.gecko:CKEDITOR.env.opera){var G;f.attachListener(f, 350"mousedown",function(){G=1});f.attachListener(a.getDocumentElement(),"mouseup",function(){G&&e.call(d);G=0})}else f.attachListener(CKEDITOR.env.ie?f:a.getDocumentElement(),"mouseup",e,d);CKEDITOR.env.webkit&&f.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:i(f)}},null,null,-1);f.attachListener(f,"keydown",k(d),null,null,-1)});d.on("contentDomUnload",d.forceNextSelectionCheck,d);d.on("dataReady",function(){delete d._.fakeSelection; 351delete d._.hiddenSelectionContainer;d.selectionChange(1)});d.on("loadSnapshot",function(){var a=d.editable().getLast(function(a){return a.type==CKEDITOR.NODE_ELEMENT});a&&a.hasAttribute("data-cke-hidden-sel")&&a.remove()},null,null,100);CKEDITOR.env.ie9Compat&&d.on("beforeDestroy",b,null,null,9);CKEDITOR.env.webkit&&d.on("setData",b);d.on("contentDomUnload",function(){d.unlockSelection()});d.on("key",function(a){if(d.mode=="wysiwyg"){var b=d.getSelection();if(b.isFake){var c=j[a.data.keyCode];if(c)return c({editor:d, 352selected:b.getSelectedElement(),selection:b,keyEvent:a})}}})});CKEDITOR.on("instanceReady",function(a){var b=a.editor;if(CKEDITOR.env.webkit){b.on("selectionChange",function(){var a=b.editable(),c=d(a);c&&(c.getCustomData("ready")?i(a):c.setCustomData("ready",1))},null,null,-1);b.on("beforeSetMode",function(){i(b.editable())},null,null,-1);var c,f,a=function(){var a=b.editable();if(a)if(a=d(a)){var e=b.document.$.defaultView.getSelection();e.type=="Caret"&&e.anchorNode==a.$&&(f=1);c=a.getText();a.setText(g(c))}}, 353e=function(){var a=b.editable();if(a)if(a=d(a)){a.setText(c);if(f){b.document.$.defaultView.getSelection().setPosition(a.$,a.getLength());f=0}}};b.on("beforeUndoImage",a);b.on("afterUndoImage",e);b.on("beforeGetData",a,null,null,0);b.on("getData",e)}});CKEDITOR.editor.prototype.selectionChange=function(a){(a?c:e).call(this)};CKEDITOR.editor.prototype.getSelection=function(a){if((this._.savedSelection||this._.fakeSelection)&&!a)return this._.savedSelection||this._.fakeSelection;return(a=this.editable())&& 354this.mode=="wysiwyg"?new CKEDITOR.dom.selection(a):null};CKEDITOR.editor.prototype.lockSelection=function(a){a=a||this.getSelection(1);if(a.getType()!=CKEDITOR.SELECTION_NONE){!a.isLocked&&a.lock();this._.savedSelection=a;return true}return false};CKEDITOR.editor.prototype.unlockSelection=function(a){var b=this._.savedSelection;if(b){b.unlock(a);delete this._.savedSelection;return true}return false};CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath}; 355CKEDITOR.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 o=typeof window.getSelection!="function",t=1;CKEDITOR.dom.selection=function(a){if(a instanceof CKEDITOR.dom.selection)var b= 356a,a=a.root;var c=a instanceof CKEDITOR.dom.element;this.rev=b?b.rev:t++;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root=a=c?a:this.document.getBody();this.isLocked=0;this._={cache:{}};if(b){CKEDITOR.tools.extend(this._.cache,b._.cache);this.isFake=b.isFake;this.isLocked=b.isLocked;return this}b=o?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== 357CKEDITOR.NODE_DOCUMENT)&&f(a,b);else if(CKEDITOR.env.gecko)b&&(this.document.getActive().equals(a)&&b.anchorNode&&b.anchorNode.nodeType==CKEDITOR.NODE_DOCUMENT)&&f(a,b,true);else if(CKEDITOR.env.ie){var d;try{d=this.document.getActive()}catch(e){}if(o)b.type=="None"&&(d&&d.equals(this.document.getDocumentElement()))&&f(a,null,true);else{(b=b&&b.anchorNode)&&(b=new CKEDITOR.dom.node(b));d&&(d.equals(this.document.getDocumentElement())&&b&&(a.equals(b)||a.contains(b)))&&f(a,null,true)}}d=this.getNative(); 358var h,g;
358if(d)if(d.getRangeAt)h=(g=d.rangeCount&&d.getRangeAt(0))&&new CKEDITOR.dom.node(g.commonAncestorContainer);else{try{g=d.createRange()}catch(j){}h=g&&CKEDITOR.dom.element.get(g.item&&g.item(0)||g.parentElement())}if(!h||!(h.type==CKEDITOR.NODE_ELEMENT||h.type==CKEDITOR.NODE_TEXT)||!this.root.equals(h)&&!this.root.contains(h)){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}; 359var C={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=o?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:o?function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_NONE;try{var c=this.getNative(),d=c.type;if(d=="Text")b= 360CKEDITOR.SELECTION_TEXT;if(d=="Control")b=CKEDITOR.SELECTION_ELEMENT;if(c.createRange().parentElement())b=CKEDITOR.SELECTION_TEXT}catch(f){}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),d=c.startContainer;if(d==c.endContainer&&d.nodeType==1&&c.endOffset-c.startOffset==1&&C[d.childNodes[c.startOffset].nodeName.toLowerCase()])b=CKEDITOR.SELECTION_ELEMENT}return a.type= 361b},getRanges:function(){var a=o?function(){function a(b){return(new CKEDITOR.dom.node(b)).getIndex()}var b=function(b,c){b=b.duplicate();b.collapse(c);var d=b.parentElement();if(!d.hasChildNodes())return{container:d,offset:0};for(var f=d.children,e,h,g=b.duplicate(),j=0,k=f.length-1,i=-1,z,l;j<=k;){i=Math.floor((j+k)/2);e=f[i];g.moveToElementText(e);z=g.compareEndPoints("StartToStart",b);if(z>0)k=i-1;else if(z<0)j=i+1;else return{container:d,offset:a(e)}}if(i==-1||i==f.length-1&&z<0){g.moveToElementText(d); 362g.setEndPoint("StartToStart",b);g=g.text.replace(/(\r\n|\r)/g,"\n").length;f=d.childNodes;if(!g){e=f[f.length-1];return e.nodeType!=CKEDITOR.NODE_TEXT?{container:d,offset:f.length}:{container:e,offset:e.nodeValue.length}}for(d=f.length;g>0&&d>0;){h=f[--d];if(h.nodeType==CKEDITOR.NODE_TEXT){l=h;g=g-h.nodeValue.length}}return{container:l,offset:-g}}g.collapse(z>0?true:false);g.setEndPoint(z>0?"StartToStart":"EndToStart",b);g=g.text.replace(/(\r\n|\r)/g,"\n").length;if(!g)return{container:d,offset:a(e)+ 363(z>0?0:1)};for(;g>0;)try{h=e[z>0?"previousSibling":"nextSibling"];if(h.nodeType==CKEDITOR.NODE_TEXT){g=g-h.nodeValue.length;l=h}e=h}catch(q){return{container:d,offset:a(e)}}return{container:l,offset:z>0?-g:l.nodeValue.length+g}};return function(){var a=this.getNative(),c=a&&a.createRange(),d=this.getType();if(!a)return[];if(d==CKEDITOR.SELECTION_TEXT){a=new CKEDITOR.dom.range(this.root);d=b(c,true);a.setStart(new CKEDITOR.dom.node(d.container),d.offset);d=b(c);a.setEnd(new CKEDITOR.dom.node(d.container), 364d.offset);a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse();return[a]}if(d==CKEDITOR.SELECTION_ELEMENT){for(var d=[],f=0;f<c.length;f++){for(var e=c.item(f),h=e.parentNode,g=0,a=new CKEDITOR.dom.range(this.root);g<h.childNodes.length&&h.childNodes[g]!=e;g++);a.setStart(new CKEDITOR.dom.node(h),g);a.setEnd(new CKEDITOR.dom.node(h),g+1);d.push(a)}return d}return[]}}():function(){var a=[],b,c=this.getNative();if(!c)return a; 365for(var d=0;d<c.rangeCount;d++){var f=c.getRangeAt(d);b=new CKEDITOR.dom.range(this.root);b.setStart(new CKEDITOR.dom.node(f.startContainer),f.startOffset);b.setEnd(new CKEDITOR.dom.node(f.endContainer),f.endOffset);a.push(b)}return a};return function(b){var c=this._.cache,d=c.ranges;if(!d)c.ranges=d=new CKEDITOR.dom.rangeList(a.call(this));return!b?d:l(new CKEDITOR.dom.rangeList(d.slice()))}}(),getStartElement:function(){var a=this._.cache;if(a.startElement!==void 0)return a.startElement;var b;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.get
365SelectedElement(); 366case 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== 367CKEDITOR.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].clone(),c,d,f=2;f&&(!(c=a.getEnclosedNode())||!(c.type==CKEDITOR.NODE_ELEMENT&&C[c.getName()]&&(d=c)));f--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return d&&d.$});return a.selectedElement= 368c?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=o?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(),d=this.isFake;this.isLocked= 3690;this.reset();if(a)(a=b||c[0]&&c[0].getCommonAncestor())&&a.getAscendant("body",1)&&(d?this.fake(b):b?this.selectElement(b):this.selectRanges(c))}},reset:function(){this._.cache={};this.isFake=0;var a=this.root.editor;if(a&&a._.fakeSelection&&this.rev==a._.fakeSelection.rev){delete a._.fakeSelection;var b=a._.hiddenSelectionContainer;if(b){a.fire("lockSnapshot");b.remove();a.fire("unlockSnapshot")}delete a._.hiddenSelectionContainer}this.rev=t++},selectElement:function(a){var b=new CKEDITOR.dom.range(this.root); 370b.setStartBefore(a);b.setEndAfter(a);this.selectRanges([b])},selectRanges:function(b){var c=this.root.editor,c=c&&c._.hiddenSelectionContainer;this.reset();if(c)for(var c=this.root,d,f=0;f<b.length;++f){d=b[f];if(d.endContainer.equals(c))d.endOffset=Math.min(d.endOffset,c.getChildCount())}if(b.length)if(this.isLocked){var e=CKEDITOR.document.getActive();this.unlock();this.selectRanges(b);this.lock();!e.equals(this.root)&&e.focus()}else{var h;a:{var g,j;if(b.length==1&&!(j=b[0]).collapsed&&(h=j.getEnclosedNode())&& 371h.type==CKEDITOR.NODE_ELEMENT){j=j.clone();j.shrink(CKEDITOR.SHRINK_ELEMENT,true);if((g=j.getEnclosedNode())&&g.type==CKEDITOR.NODE_ELEMENT)h=g;if(h.getAttribute("contenteditable")=="false")break a}h=void 0}if(h)this.fake(h);else{if(o){j=CKEDITOR.dom.walker.whitespaces(true);g=/\ufeff|\u00a0/;c={table:1,tbody:1,tr:1};if(b.length>1){h=b[b.length-1];b[0].setEnd(h.endContainer,h.endOffset)}h=b[0];var b=h.collapsed,k,l,m;if((d=h.getEnclosedNode())&&d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in C&&(!d.is("a")|| 372!d.getText()))try{m=d.$.createControlRange();m.addElement(d.$);m.select();return}catch(n){}(h.startContainer.type==CKEDITOR.NODE_ELEMENT&&h.startContainer.getName()in c||h.endContainer.type==CKEDITOR.NODE_ELEMENT&&h.endContainer.getName()in c)&&h.shrink(CKEDITOR.NODE_ELEMENT,true);m=h.createBookmark();c=m.startNode;if(!b)e=m.endNode;m=h.document.$.body.createTextRange();m.moveToElementText(c.$);m.moveStart("character",1);if(e){g=h.document.$.body.createTextRange();g.moveToElementText(e.$);m.setEndPoint("EndToEnd", 373g);m.moveEnd("character",-1)}else{k=c.getNext(j);l=c.hasAscendant("pre");k=!(k&&k.getText&&k.getText().match(g))&&(l||!c.hasPrevious()||c.getPrevious().is&&c.getPrevious().is("br"));l=h.document.createElement("span");l.setHtml("");l.insertBefore(c);k&&h.document.createText("").insertBefore(c)}h.setStartBefore(c);c.remove();if(b){if(k){m.moveStart("character",-1);m.select();h.document.$.selection.clear()}else m.select();h.moveToPosition(l,CKEDITOR.POSITION_BEFORE_START);l.remove()}else{h.setEndBefore(e); 374e.remove();m.select()}}else{e=this.getNative();if(!e)return;if(CKEDITOR.env.opera){m=this.document.$.createRange();m.selectNodeContents(this.root.$);e.addRange(m)}this.removeAllRanges();for(m=0;m<b.length;m++){if(m<b.length-1){h=b[m];k=b[m+1];g=h.clone();g.setStart(h.endContainer,h.endOffset);g.setEnd(k.startContainer,k.startOffset);if(!g.collapsed){g.shrink(CKEDITOR.NODE_ELEMENT,true);l=g.getCommonAncestor();g=g.getEnclosedNode();if(l.isReadOnly()||g&&g.isReadOnly()){k.setStart(h.startContainer, 375h.startOffset);b.splice(m--,1);continue}}}h=b[m];l=this.document.$.createRange();k=h.startContainer;if(CKEDITOR.env.opera&&h.collapsed&&k.type==CKEDITOR.NODE_ELEMENT){g=k.getChild(h.startOffset-1);j=k.getChild(h.startOffset);if(!g&&!j&&k.is(CKEDITOR.dtd.$removeEmpty)||g&&g.type==CKEDITOR.NODE_ELEMENT||j&&j.type==CKEDITOR.NODE_ELEMENT){h.insertNode(this.document.createText(""));h.collapse(1)}}if(h.collapsed&&CKEDITOR.env.webkit&&a(h)){k=this.root;i(k,false);g=k.getDocument().createText("â");k.setCustomData("cke-fillingChar", 376g);h.insertNode(g);if((k=g.getNext())&&!g.getPrevious()&&k.type==CKEDITOR.NODE_ELEMENT&&k.getName()=="br"){i(this.root);h.moveToPosition(k,CKEDITOR.POSITION_BEFORE_START)}else h.moveToPosition(g,CKEDITOR.POSITION_AFTER_END)}l.setStart(h.startContainer.$,h.startOffset);try{l.setEnd(h.endContainer.$,h.endOffset)}
376catch(E){if(E.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")>=0){h.collapse(1);l.setEnd(h.endContainer.$,h.endOffset)}else throw E;}e.addRange(l)}}this.reset();this.root.fire("selectionchange")}}}, 377fake:function(a){var b=this.root.editor;this.reset();h(b);var c=this._.cache,d=new CKEDITOR.dom.range(this.root);d.setStartBefore(a);d.setEndAfter(a);c.ranges=new CKEDITOR.dom.rangeList(d);c.selectedElement=c.startElement=a;c.type=CKEDITOR.SELECTION_ELEMENT;c.selectedText=c.nativeSel=null;this.isFake=1;this.rev=t++;b._.fakeSelection=this;this.root.fire("selectionchange")},isHidden:function(){var a=this.getCommonAncestor();a&&a.type==CKEDITOR.NODE_TEXT&&(a=a.getParent());return!(!a||!a.data("cke-hidden-sel"))}, 378createBookmarks:function(a){a=this.getRanges().createBookmarks(a);this.isFake&&(a.isFake=1);return a},createBookmarks2:function(a){a=this.getRanges().createBookmarks2(a);this.isFake&&(a.isFake=1);return a},selectBookmarks:function(a){for(var b=[],c=0;c<a.length;c++){var d=new CKEDITOR.dom.range(this.root);d.moveToBookmark(a[c]);b.push(d)}a.isFake?this.fake(b[0].getEnclosedNode()):this.selectRanges(b);return this},getCommonAncestor:function(){var a=this.getRanges();return!a.length?null:a[0].startContainer.getCommonAncestor(a[a.length- 3791].endContainer)},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=CKEDITOR.SELECTION_NONE){var a=this.getNative();try{a&&a[o?"empty":"removeAllRanges"]()}catch(b){}this.reset()}}}}(),"use strict",CKEDITOR.editor.prototype.attachStyleStateChange=function(c,e){var b=this._.styleStateChangeCallbacks;if(!b){b=this._.styleStateChangeCallbacks=[];this.on("selectionChange",function(a){for(var c=0;c<b.length;c++){var e= 380b[c],g=e.style.checkActive(a.data.path)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;e.fn.call(this,g)}})}b.push({style:c,fn:e})},CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function c(a,b){for(var c,d;a=a.getParent();){if(a.equals(b))break;if(a.getAttribute("data-nostyle"))c=a;else if(!d){var f=a.getAttribute("contentEditable");f=="false"?c=a:f=="true"&&(d=1)}}return c}function e(b){var d=b.document;if(b.collapsed){d=t(this,d);b.insertNode(d);b.moveToPosition(d, 381CKEDITOR.POSITION_BEFORE_END)}else{var f=this.element,h=this._.definition,g,j=h.ignoreReadonly,k=j||h.includeReadonly;k==void 0&&(k=b.root.getCustomData("cke_includeReadonly"));var i=CKEDITOR.dtd[f];if(!i){g=true;i=CKEDITOR.dtd.span}b.enlarge(CKEDITOR.ENLARGE_INLINE,1);b.trim();var l=b.createBookmark(),m=l.startNode,o=l.endNode,n=m,q;if(!j){var u=b.getCommonAncestor(),j=c(m,u),u=c(o,u);j&&(n=j.getNextSourceNode(true));u&&(o=u)}for(n.getPosition(o)==CKEDITOR.POSITION_FOLLOWING&&(n=0);n;){j=false;if(n.equals(o)){n= 382null;j=true}else{var p=n.type==CKEDITOR.NODE_ELEMENT?n.getName():null,u=p&&n.getAttribute("contentEditable")=="false",v=p&&n.getAttribute("data-nostyle");if(p&&n.data("cke-bookmark")){n=n.getNextSourceNode(true);continue}if(u&&k&&CKEDITOR.dtd.$block[p])for(var C=n,r=a(C),B=void 0,w=r.length,x=0,C=w&&new CKEDITOR.dom.range(C.getDocument());x<w;++x){var B=r[x],A=CKEDITOR.filter.instances[B.data("cke-filter")];if(A?A.check(this):1){C.selectNodeContents(B);e.call(this,C)}}r=p?!i[p]||v?0:u&&!k?0:(n.getPosition(o)| 383H)==H&&(!h.childRule||h.childRule(n)):1;if(r)if((r=n.getParent())&&((r.getDtd()||CKEDITOR.dtd.span)[f]||g)&&(!h.parentRule||h.parentRule(r))){if(!q&&(!p||!CKEDITOR.dtd.$removeEmpty[p]||(n.getPosition(o)|H)==H)){q=b.clone();q.setStartBefore(n)}p=n.type;if(p==CKEDITOR.NODE_TEXT||u||p==CKEDITOR.NODE_ELEMENT&&!n.getChildCount()){for(var p=n,Y;(j=!p.getNext(y))&&(Y=p.getParent(),i[Y.getName()])&&(Y.getPosition(m)|D)==D&&(!h.childRule||h.childRule(Y));)p=Y;q.setEndAfter(p)}}else j=true;else j=true;n=n.getNextSourceNode(v|| 384u)}if(j&&q&&!q.collapsed){for(var j=t(this,d),u=j.hasAttributes(),v=q.getCommonAncestor(),p={},r={},B={},w={},V,S,$;j&&v;){if(v.getName()==f){for(V in h.attributes)if(!w[V]&&($=v.getAttribute(S)))j.getAttribute(V)==$?r[V]=1:w[V]=1;for(S in h.styles)if(!B[S]&&($=v.getStyle(S)))j.getStyle(S)==$?p[S]=1:B[S]=1}v=v.getParent()}for(V in r)j.removeAttribute(V);for(S in p)j.removeStyle(S);u&&!j.hasAttributes()&&(j=null);if(j){q.extractContents().appendTo(j);
384q.insertNode(j);s.call(this,j);j.mergeSiblings(); 385CKEDITOR.env.ie||j.$.normalize()}else{j=new CKEDITOR.dom.element("span");q.extractContents().appendTo(j);q.insertNode(j);s.call(this,j);j.remove(true)}q=null}}b.moveToBookmark(l);b.shrink(CKEDITOR.SHRINK_TEXT);b.shrink(CKEDITOR.NODE_ELEMENT,true)}}function b(a){function b(){for(var a=new CKEDITOR.dom.elementPath(d.getParent()),c=new CKEDITOR.dom.elementPath(i.getParent()),f=null,e=null,h=0;h<a.elements.length;h++){var g=a.elements[h];if(g==a.block||g==a.blockLimit)break;l.checkElementRemovable(g)&& 386(f=g)}for(h=0;h<c.elements.length;h++){g=c.elements[h];if(g==c.block||g==c.blockLimit)break;l.checkElementRemovable(g)&&(e=g)}e&&i.breakParent(e);f&&d.breakParent(f)}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var c=a.createBookmark(),d=c.startNode;if(a.collapsed){for(var f=new CKEDITOR.dom.elementPath(d.getParent(),a.root),e,h=0,g;h<f.elements.length&&(g=f.elements[h]);h++){if(g==f.block||g==f.blockLimit)break;if(this.checkElementRemovable(g)){var k;if(a.collapsed&&(a.checkBoundaryOfElement(g,CKEDITOR.END)|| 387(k=a.checkBoundaryOfElement(g,CKEDITOR.START)))){e=g;e.match=k?"start":"end"}else{g.mergeSiblings();g.is(this.element)?n.call(this,g):j(g,u(this)[g.getName()])}}}if(e){g=d;for(h=0;;h++){k=f.elements[h];if(k.equals(e))break;else if(k.match)continue;else k=k.clone();k.append(g);g=k}g[e.match=="start"?"insertBefore":"insertAfter"](e)}}else{var i=c.endNode,l=this;b();for(f=d;!f.equals(i);){e=f.getNextSourceNode();if(f.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(f)){f.getName()==this.element? 388n.call(this,f):j(f,u(this)[f.getName()]);if(e.type==CKEDITOR.NODE_ELEMENT&&e.contains(d)){b();e=d.getNext()}}f=e}}a.moveToBookmark(c);a.shrink(CKEDITOR.NODE_ELEMENT,true)}function a(a){var b=[];a.forEach(function(a){if(a.getAttribute("contenteditable")=="true"){b.push(a);return false}},CKEDITOR.NODE_ELEMENT,true);return b}function d(a){var b=a.getEnclosedNode()||a.getCommonAncestor(false,true);(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1))&&!a.isReadOnly()&&C(a,this)}function i(a){var b= 389a.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 d in c)a.removeAttribute(d,c[d]);if(b.styles)for(var f in b.styles)b.styles.hasOwnProperty(f)&&a.removeStyle(f)}}function g(a){var b=a.createBookmark(true),c=a.createIterator();c.enforceRealBlocks=true;if(this._.enterMode)c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var d,f=a.document,e;d=c.getNextParagraph();)if(!d.isReadOnly()&&(c.activeFilter? 390c.activeFilter.check(this):1)){e=t(this,f,d);h(d,e)}a.moveToBookmark(b)}function f(a){var b=a.createBookmark(1),c=a.createIterator();c.enforceRealBlocks=true;c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var d,f;d=c.getNextParagraph();)if(this.checkElementRemovable(d))if(d.is("pre")){(f=this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&d.copyAttributes(f);h(d,f)}else n.call(this,d);a.moveToBookmark(b)}function h(a,b){var c=!b;if(c){b= 391a.getDocument().createElement("div");a.copyAttributes(b)}var d=b&&b.is("pre"),f=a.is("pre"),e=!d&&f;if(d&&!f){f=b;(e=a.getBogus())&&e.remove();e=a.getHtml();e=l(e,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");e=e.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");e=e.replace(/([ \t\n\r]+| )/g," ");e=e.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var h=a.getDocument().createElement("div");h.append(f);f.$.outerHTML="<pre>"+e+"</pre>";f.copyAttributes(h.getFirst());f=h.getFirst().remove()}else f.setHtml(e); 392b=f}else e?b=m(c?[a.getHtml()]:k(a),b):a.moveChildren(b);b.replace(a);if(d){var c=b,g;if((g=c.getPrevious(A))&&g.type==CKEDITOR.NODE_ELEMENT&&g.is("pre")){d=l(g.getHtml(),/\n$/,"")+"\n\n"+l(c.getHtml(),/^\n/,"");CKEDITOR.env.ie?c.$.outerHTML="<pre>"+d+"</pre>":c.setHtml(d);g.remove()}}else c&&o(b)}function k(a){a.getName();var b=[];l(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, 393function(a,c){b.push(c)});return b}function l(a,b,c){var d="",f="",a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(a,b,c){b&&(d=b);c&&(f=c);return""});return d+a.replace(b,c)+f}function m(a,b){var c;a.length>1&&(c=new CKEDITOR.dom.documentFragment(b.getDocument()));for(var d=0;d<a.length;d++){var f=a[d],f=f.replace(/(\r\n|\r)/g,"\n"),f=l(f,/^[ \t]*\n/,""),f=l(f,/\n$/,""),f=l(f,/^[ \t]+|[ \t]+$/g,function(a,b){return a.length==1?" ":b? 394" "+CKEDITOR.tools.repeat(" ",a.length-1):CKEDITOR.tools.repeat(" ",a.length-1)+" "}),f=f.replace(/\n/g,"<br>"),f=f.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat(" ",a.length-1)+" "});if(c){var e=b.clone();e.setHtml(f);c.append(e)}else b.setHtml(f)}return c||b}function n(a,b){var c=this._.definition,d=c.attributes,c=c.styles,f=u(this)[a.getName()],e=CKEDITOR.tools.isEmpty(d)&&CKEDITOR.tools.isEmpty(c),h;for(h in d)if(!((h=="class"||this._.definition.fullMatch)&&a.getAttribute(h)!= 395B(h,d[h]))&&!(b&&h.slice(0,5)=="data-")){e=a.hasAttribute(h);a.removeAttribute(h)}for(var g in c)if(!(this._.definition.fullMatch&&a.getStyle(g)!=B(g,c[g],true))){e=e||!!a.getStyle(g);a.removeStyle(g)}j(a,f,r[a.getName()]);e&&(this._.definition.alwaysRemoveElement?o(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!a.hasAttributes()?o(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function s(a){for(var b=u(this),c=a.getElementsByTag(this.element),d,f=c.count();--f>= 3960;){d=c.getItem(f);d.isReadOnly()||n.call(this,d,true)}for(var e in b)if(e!=this.element){c=a.getElementsByTag(e);for(f=c.count()-1;f>=0;f--){d=c.getItem(f);d.isReadOnly()||j(d,b[e])}}}function j(a,b,c){if(b=b&&b.attributes)for(var d=0;d<b.length;d++){var f=b[d][0],e;if(e=a.getAttribute(f)){var h=b[d][1];(h===null||h.test&&h.test(e)||typeof h=="string"&&e==h)&&a.removeAttribute(f)}}c||o(a)}function o(a,b){if(!a.hasAttributes()||b)if(CKEDITOR.dtd.$block[a.getName()]){var c=a.getPrevious(A),d=a.getNext(A); 397c&&(c.type==CKEDITOR.NODE_TEXT||!c.isBlockBoundary({br:1}))&&a.append("br",1);d&&(d.type==CKEDITOR.NODE_TEXT||!d.isBlockBoundary({br:1}))&&a.append("br");a.remove(true)}else{c=a.getFirst();d=a.getLast();a.remove(true);if(c){c.type==CKEDITOR.NODE_ELEMENT&&c.mergeSiblings();d&&(!c.equals(d)&&d.type==CKEDITOR.NODE_ELEMENT)&&d.mergeSiblings()}}}function t(a,b,c){var d;d=a.element;d=="*"&&(d="span");d=new CKEDITOR.dom.element(d,b);c&&c.copyAttributes(d);d=C(d,a);b.getCustomData("doc_processing_style")&& 398d.hasAttribute("id")?d.removeAttribute("id"):b.setCustomData("doc_processing_style",1);return d}function C(a,b){var c=b._.definition,d=c.attributes,c=CKEDITOR.style.getStyleText(c);if(d)for(var f in d)a.setAttribute(f,d[f]);c&&a.setAttribute("style",c);return a}function q(a,b){for(var c in a)a[c]=a[c].replace(v,function(a,c){return b[c]})}function u(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 d=0;d<c.length;d++){var f= 399c[d],e,h;if(typeof f=="string")e=f.toLowerCase();else{e=f.element?f.element.toLowerCase():a.element;h=f.attributes}f=b[e]||(b[e]={});if(h){var f=f.attributes=f.attributes||[],g;for(g in h)f.push([g.toLowerCase(),h[g]])}}}return b}function B(a,b,c){var d=new CKEDITOR.dom.element("span");d[c?"setStyle":"setAttribute"](a,b);return d[c?"getStyle":"getAttribute"](a)}function w(a,b){for(var c=a.document,d=a.getRanges(),f=b?this.removeFromRange:this.applyToRange,e,h=d.createIterator();e=h.getNextRange();)f.call(this, 400e);a.selectRanges(d);c.removeCustomData("doc_processing_style")}var r={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},p={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},x=/\s*(?:;\s*|$)/,v=/#\((.+?)\)/g,y=CKEDITOR.dom.walker.bookmark(0,1),A=CKEDITOR.dom.walker.whitespace
400s(1); 401CKEDITOR.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);q(a.attributes,b);q(a.styles,b)}c=this.element=a.element?typeof a.element=="string"?a.element.toLowerCase():a.element:"*";this.type=a.type||(r[c]?CKEDITOR.STYLE_BLOCK:p[c]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE);if(typeof this.element=="object")this.type=CKEDITOR.STYLE_OBJECT;this._={definition:a}};CKEDITOR.editor.prototype.applyStyle= 402function(a){a.checkApplicable(this.elementPath())&&w.call(a,this.getSelection())};CKEDITOR.editor.prototype.removeStyle=function(a){a.checkApplicable(this.elementPath())&&w.call(a,this.getSelection(),1)};CKEDITOR.style.prototype={apply:function(a){w.call(this,a.getSelection())},remove:function(a){w.call(this,a.getSelection(),1)},applyToRange:function(a){return(this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?e:this.type==CKEDITOR.STYLE_BLOCK?g:this.type==CKEDITOR.STYLE_OBJECT?d:null).call(this, 403a)},removeFromRange:function(a){return(this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?b:this.type==CKEDITOR.STYLE_BLOCK?f:this.type==CKEDITOR.STYLE_OBJECT?i:null).call(this,a)},applyToObject:function(a){C(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,d;c<b.length;c++){d=b[c];if(!(this.type==CKEDITOR.STYLE_INLINE&&(d==a.block|| 404d==a.blockLimit))){if(this.type==CKEDITOR.STYLE_OBJECT){var f=d.getName();if(!(typeof this.element=="string"?f==this.element:f in this.element))continue}if(this.checkElementRemovable(d,true))return true}}}return false},checkApplicable:function(a,b){if(b&&!b.check(this))return false;switch(this.type){case CKEDITOR.STYLE_OBJECT:return!!a.contains(this.element);case CKEDITOR.STYLE_BLOCK:return!!a.blockLimit.getDtd()[this.element]}return true},checkElementMatch:function(a,b){var c=this._.definition;if(!a|| 405!c.ignoreReadonly&&a.isReadOnly())return false;var d=a.getName();if(typeof this.element=="string"?d==this.element:d in this.element){if(!b&&!a.hasAttributes())return true;if(d=c._AC)c=d;else{var d={},f=0,e=c.attributes;if(e)for(var h in e){f++;d[h]=e[h]}if(h=CKEDITOR.style.getStyleText(c)){d.style||f++;d.style=h}d._length=f;c=c._AC=d}if(c._length){for(var g in c)if(g!="_length"){f=a.getAttribute(g)||"";if(g=="style")a:{d=c[g];typeof d=="string"&&(d=CKEDITOR.tools.parseCssText(d));typeof f=="string"&& 406(f=CKEDITOR.tools.parseCssText(f,true));h=void 0;for(h in d)if(!(h in f&&(f[h]==d[h]||d[h]=="inherit"||f[h]=="inherit"))){d=false;break a}d=true}else d=c[g]==f;if(d){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=u(this)[a.getName()];if(c){var d;if(!(c=c.attributes))return true;for(var f=0;f<c.length;f++){d=c[f][0];if(d=a.getAttribute(d)){var e=c[f][1];if(e===null||typeof e== 407"string"&&d==e||e.test(d))return true}}}return false},buildPreview:function(a){var b=this._.definition,c=[],d=b.element;d=="bdo"&&(d="span");var c=["<",d],f=b.attributes;if(f)for(var e in f)c.push(" ",e,'="',f[e],'"');(f=CKEDITOR.style.getStyleText(b))&&c.push(' style="',f,'"');c.push(">",a||b.name,"</",d,">");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||"", 408d="";c.length&&(c=c.replace(x,";"));for(var f in b){var e=b[f],h=(f+":"+e).replace(x,";");e=="inherit"?d=d+h:c=c+h}c.length&&(c=CKEDITOR.tools.normalizeCssText(c,true));return a._ST=c+d};var H=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,D=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(c,e){this.requiredContent=this.allowedContent=this.style=c;CKEDITOR.tools.extend(this,e,true)},CKEDITOR.styleCommand.prototype.exec= 409function(c){c.focus();this.state==CKEDITOR.TRISTATE_OFF?c.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&c.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(c,e,b){CKEDITOR.stylesSet.addExternal(c,e,"");CKEDITOR.stylesSet.load(c,b)},CKEDITOR.editor.prototype.getStylesSet=function(c){if(this._.stylesDefinitions)c(this._.stylesDefinitions);
410else{var e=this,b=e.config.stylesCombo_stylesSet||e.config.stylesSet;if(b===false)c(null);else if(b instanceof Array){e._.stylesDefinitions=b;c(b)}else{b||(b="default");var b=b.split(":"),a=b[0];CKEDITOR.stylesSet.addExternal(a,b[1]?b.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(a,function(b){e._.stylesDefinitions=b[a];c(e._.stylesDefinitions)})}}},CKEDITOR.dom.comment=function(c,e){typeof c=="string"&&(c=(e?e.$:document).createComment(c));CKEDITOR.dom.domObject.call(this, 411c)},CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"<\!--"+this.$.nodeValue+"--\>"}}),"use strict",function(){var c={},e={},b;for(b in CKEDITOR.dtd.$blockLimit)b in CKEDITOR.dtd.$list||(c[b]=1);for(b in CKEDITOR.dtd.$block)b in CKEDITOR.dtd.$blockLimit||b in CKEDITOR.dtd.$empty||(e[b]=1);CKEDITOR.dom.elementPath=function(a,b){var i=null,g=null,f=[],h=a,k,b=b||a.getDocument().getBody(); 412do if(h.type==CKEDITOR.NODE_ELEMENT){f.push(h);if(!this.lastElement){this.lastElement=h;if(h.is(CKEDITOR.dtd.$object)||h.getAttribute("contenteditable")=="false")continue}if(h.equals(b))break;if(!g){k=h.getName();h.getAttribute("contenteditable")=="true"?g=h:!i&&e[k]&&(i=h);if(c[k]){var l;if(l=!i){if(k=k=="div"){a:{k=h.getChildren();l=0;for(var m=k.count();l<m;l++){var n=k.getItem(l);if(n.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[n.getName()]){k=true;break a}}k=false}k=!k}l=k}l?i=h:g=h}}}while(h= 413h.getParent());g||(g=b);this.block=i;this.blockLimit=g;this.root=b;this.elements=f}}(),CKEDITOR.dom.elementPath.prototype={compare:function(c){var e=this.elements,c=c&&c.elements;if(!c||e.length!=c.length)return false;for(var b=0;b<e.length;b++)if(!e[b].equals(c[b]))return false;return true},contains:function(c,e,b){var a;typeof c=="string"&&(a=function(a){return a.getName()==c});c instanceof CKEDITOR.dom.element?a=function(a){return a.equals(c)}:CKEDITOR.tools.isArray(c)?a=function(a){return CKEDITOR.tools.indexOf(c, 414a.getName())>-1}:typeof c=="function"?a=c:typeof c=="object"&&(a=function(a){return a.getName()in c});var d=this.elements,i=d.length;e&&i--;if(b){d=Array.prototype.slice.call(d,0);d.reverse()}for(e=0;e<i;e++)if(a(d[e]))return d[e];return null},isContextFor:function(c){var e;if(c in CKEDITOR.dtd.$block){e=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit;return!!e.getDtd()[c]}return true},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}}, 415CKEDITOR.dom.text=function(c,e){typeof c=="string"&&(c=(e?e.$:document).createTextNode(c));this.$=c},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(c){this.$.nodeValue=c},split:function(c){var e=this.$.parentNode,b=e.childNodes.length,a=this.getLength(),d=this.getDocument(),i=new CKEDITOR.dom.text(this.$.splitText(c), 416d);if(e.childNodes.length==b)if(c>=a){i=d.createText("");i.insertAfter(this)}else{c=d.createText("");c.insertAfter(i);c.remove()}return i},substring:function(c,e){return typeof e!="number"?this.$.nodeValue.substr(c):this.$.nodeValue.substring(c,e)}}),function(){function c(b,a,c){var e=b.serializable,g=a[c?"endContainer":"startContainer"],f=c?"endOffset":"startOffset",h=e?a.document.getById(b.startNode):b.startNode,b=e?a.document.getById(b.endNode):b.endNode;if(g.equals(h.getPrevious())){a.startOffset= 417a.startOffset-g.getLength()-b.getPrevious().getLength();g=b.getNext()}else if(g.equals(b.getPrevious())){a.startOffset=a.startOffset-g.getLength();g=b.getNext()}g.equals(h.getParent())&&a[f]++;g.equals(b.getParent())&&a[f]++;a[c?"endContainer":"startContainer"]=g;return a}CKEDITOR.dom.rangeList=function(b){if(b instanceof CKEDITOR.dom.rangeList)return b;b?b instanceof CKEDITOR.dom.range&&(b=[b]):b=[];return CKEDITOR.tools.extend(b,e)};var e={createIterator:function(){var b=this,a=CKEDITOR.dom.walker.bookmark(), 418c=[],e;return{getNextRange:function(g){e=e==void 0?0:e+1;var f=b[e];if(f&&b.length>1){if(!e)for(var h=b.length-1;h>=0;h--)c.unshift(b[h].createBookmark(true));if(g)for(var k=0;b[e+k+1];){for(var l=f.document,g=0,h=l.getById(c[k].endNode),l=l.getById(c[k+1].startNode);;){h=h.getNextSourceNode(false);
418if(l.equals(h))g=1;else if(a(h)||h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary())continue;break}if(!g)break;k++}for(f.moveToBookmark(c.shift());k--;){h=b[++e];h.moveToBookmark(c.shift());f.setEnd(h.endContainer, 419h.endOffset)}}return f}}},createBookmarks:function(b){for(var a=[],d,e=0;e<this.length;e++){a.push(d=this[e].createBookmark(b,true));for(var g=e+1;g<this.length;g++){this[g]=c(d,this[g]);this[g]=c(d,this[g],true)}}return a},createBookmarks2:function(b){for(var a=[],c=0;c<this.length;c++)a.push(this[c].createBookmark2(b));return a},moveToBookmarks:function(b){for(var a=0;a<this.length;a++)this[a].moveToBookmark(b[a])}}}(),function(){function c(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]|| 420"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function e(a){var b=CKEDITOR.skin["ua_"+a],d=CKEDITOR.env;if(b)for(var b=b.split(",").sort(function(a,b){return a>b?-1:1}),f=0,e;f<b.length;f++){e=b[f];if(d.ie&&(e.replace(/^ie/,"")==d.version||d.quirks&&e=="iequirks"))e="ie";if(d[e]){a=a+("_"+b[f]);break}}return CKEDITOR.getUrl(c()+a+".css")}function b(a,b){if(!i[a]){CKEDITOR.document.appendStyleSheet(e(a));i[a]=1}b&&b()}function a(a){var b=a.getById(g);if(!b){b=a.getHead().append("style");b.setAttribute("id", 421g);b.setAttribute("type","text/css")}return b}function d(a,b,c){var d,f,e;if(CKEDITOR.env.webkit){b=b.split("}").slice(0,-1);for(f=0;f<b.length;f++)b[f]=b[f].split("{")}for(var h=0;h<a.length;h++)if(CKEDITOR.env.webkit)for(f=0;f<b.length;f++){e=b[f][1];for(d=0;d<c.length;d++)e=e.replace(c[d][0],c[d][1]);a[h].$.sheet.addRule(b[f][0],e)}else{e=b;for(d=0;d<c.length;d++)e=e.replace(c[d][0],c[d][1]);CKEDITOR.env.ie&&CKEDITOR.env.version<11?a[h].$.styleSheet.cssText=a[h].$.styleSheet.cssText+e:a[h].$.innerHTML= 422a[h].$.innerHTML+e}}var i={};CKEDITOR.skin={path:c,loadPart:function(a,d){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(c()+"skin.js"),function(){b(a,d)}):b(a,d)},getPath:function(a){return CKEDITOR.getUrl(e(a))},icons:{},addIcon:function(a,b,c,d){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:b,offset:c||0,bgsize:d||"16px"})},getIconStyle:function(a,b,c,d,f){var e;if(a){a=a.toLowerCase();b&&(e=this.icons[a+"-rtl"]);e||(e=this.icons[a])}a=c|| 423e&&e.path||"";d=d||e&&e.offset;f=f||e&&e.bgsize||"16px";return a&&"background-image:url("+CKEDITOR.getUrl(a)+");background-position:0 "+d+"px;background-size:"+f+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(b){var c=a(CKEDITOR.document);return(this.setUiColor=function(a){var b=CKEDITOR.skin.chameleon,e=[[h,a]];this.uiColor=a;d([c],b(this,"editor"),e);d(f,b(this,"panel"),e)}).call(this,b)}});var g="cke_ui_color",f=[],h=/\$color/g; 424CKEDITOR.on("instanceLoaded",function(b){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var c=b.editor,b=function(b){b=(b.data[0]||b.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument();if(!b.getById("cke_ui_color")){b=a(b);f.push(b);var e=c.getUiColor();e&&d([b],CKEDITOR.skin.chameleon(c,"panel"),[[h,e]])}};c.on("panelShow",b);c.on("menuShow",b);c.config.uiColor&&c.setUiColor(c.config.uiColor)}})}(),function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=false;else{var c=CKEDITOR.dom.element.createFromHtml('<div style="width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"></div>', 425CKEDITOR.document);c.appendTo(CKEDITOR.document.getHead());try{var e=c.getComputedStyle("border-top-color"),b=c.getComputedStyle("border-right-color");CKEDITOR.env.hc=!!(e&&e==b)}catch(a){CKEDITOR.env.hc=false}c.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(c=CKEDITOR._.pending){delete CKEDITOR._.pending;
425for(e=0;e<c.length;e++){CKEDITOR.editor.prototype.constructor.apply(c[e][0], 426c[e][1]);CKEDITOR.add(c[e][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 c=function(){return function(a,b){for(var c=a.match(/[^#]./g),e=0;e<3;e++){var f=c,h=e,k;k=parseInt(c[e],16);k=("0"+(b<0?0|k*(1+b):0|k+(255-k)*b).toString(16)).slice(-2);f[h]=k}return"#"+c.join("")}}(),e=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}');"); 427return function(b,c){return a.output({from:b,to:c})}}(),b={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ {defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_bottom [{defaultGradient}border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [{defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [{defaultGradient}outline-color:{defaultBorder};border-top-color:{defaultBorder};] {id} .cke_dialog_tab [{lightGradient}border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [{mediumGradient}] {id} .cke_dialog_contents [border-top-color:{defaultBorder};] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [background:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};] {id} .cke_toolgroup [{lightGradient}border-color:{defaultBorder};] {id} a.cke_button_off:hover, {id} a.cke_button_off:focus, {id} a.cke_button_off:active [{mediumGradient}] {id} .cke_button_on [{ckeButtonOn}] {id} .cke_toolbar_separator [background-color: {ckeToolbarSeparator};] {id} .cke_combo_button [border-color:{defaultBorder};{lightGradient}] {id} a.cke_combo_button:hover, {id} a.cke_combo_button:focus, {id} .cke_combo_on a.cke_combo_button [border-color:{defaultBorder};{mediumGradient}] {id} .cke_path_item [color:{elementsPathColor};] {id} a.cke_path_item:hover, {id} a.cke_path_item:focus, {id} a.cke_path_item:active [background-color:{elementsPathBg};] {id}.cke_panel [border-color:{defaultBorder};] "), 428panel: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};] ")}; 429return function(a,d){var i=a.uiColor,i={id:"."+a.id,defaultBorder:c(i,-0.1),defaultGradient:e(c(i,0.9),i),lightGradient:e(c(i,1),c(i,0.7)),mediumGradient:e(c(i,0.8),c(i,0.5)),ckeButtonOn:e(c(i,0.6),c(i,0.7)),ckeResizer:c(i,-0.4),ckeToolbarSeparator:c(i,0.5),ckeColorauto:c(i,0.8),dialogBody:c(i,0.7),dialogTabSelected:e("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:c(i,-0.6),elementsPathBg:i,menubuttonIcon:c(i,0.5),menubuttonIconHover:c(i,0.3)};return b[d].output(i).replace(/\[/g, 430"{").replace(/\]/g,"}")}}(),CKEDITOR.plugins.add("basicstyles",{init:function(c){var e=0,b=function(b,d,h,k){if(k){var k=new CKEDITOR.style(k),i=a[h];i.unshift(k);c.attachStyleStateChange(k,function(a){!c.readOnly&&c.getCommand(h).setState(a)});c.addCommand(h,new CKEDITOR.styleCommand(k,{contentForms:i}));c.ui.addButton&&c.ui.addButton(b,{label:d,command:h,toolbar:"basicstyles,"+(e=e+10)})}},a={bold:["strong","b",["span",function(a){a=a.styles["font-weight"];return a=="bold"||+a>=700}]],italic:["em", 431"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"]},d=c.config,i=c.lang.basicstyles;b("Bold",i.bold,"bold",d.coreStyles_bold);b("Italic",i.italic,"italic",d.coreStyles_italic);
431b("Underline",i.underline,"underline",d.coreStyles_underline);b("Strike",i.strike,"strike", 432d.coreStyles_strike);b("Subscript",i.subscript,"subscript",d.coreStyles_subscript);b("Superscript",i.superscript,"superscript",d.coreStyles_superscript);c.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"}, 433CKEDITOR.config.coreStyles_subscript={element:"sub"},CKEDITOR.config.coreStyles_superscript={element:"sup"},CKEDITOR.plugins.add("dialogui",{onLoad:function(){var c=function(a){this._||(this._={});this._["default"]=this._.initValue=a["default"]||"";this._.required=a.required||false;for(var b=[this._],c=1;c<arguments.length;c++)b.push(arguments[c]);b.push(true);CKEDITOR.tools.extend.apply(CKEDITOR.tools,b);return this._},e={build:function(a,b,c){return new CKEDITOR.ui.dialog.textInput(a,b,c)}},b={build:function(a, 434b,c){return new CKEDITOR.ui.dialog[b.type](a,b,c)}},a={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}},d=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(a,b){if(!this._.domOnChangeRegistered){a.on("load",function(){this.getInputElement().on("change", 435function(){a.parts.dialog.isVisible()&&this.fire("change",{value:this.getValue()})},this)},this);this._.domOnChangeRegistered=true}this.on("change",b)}},true),i=/^on([A-Z]\w+)/,g=function(a){for(var b in a)(i.test(b)||b=="title"||b=="type")&&delete a[b];return a};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(a,b,d,e){if(!(arguments.length<4)){var g=c.call(this,b);g.labelId=CKEDITOR.tools.getNextId()+"_label";this._.children=[];CKEDITOR.ui.dialog.uiElement.call(this,a,b,d,"div", 436null,{role:"presentation"},function(){var c=[],d=b.required?" cke_required":"";if(b.labelLayout!="horizontal")c.push('<label class="cke_dialog_ui_labeled_label'+d+'" ',' id="'+g.labelId+'"',g.inputId?' for="'+g.inputId+'"':"",(b.labelStyle?' style="'+b.labelStyle+'"':"")+">",b.label,"</label>",'<div class="cke_dialog_ui_labeled_content"',b.controlStyle?' style="'+b.controlStyle+'"':"",' role="radiogroup" aria-labelledby="'+g.labelId+'">',e.call(this,a,b),"</div>");else{d={type:"hbox",widths:b.widths, 437padding:0,children:[{type:"html",html:'<label class="cke_dialog_ui_labeled_label'+d+'" id="'+g.labelId+'" for="'+g.inputId+'"'+(b.labelStyle?' style="'+b.labelStyle+'"':"")+">"+CKEDITOR.tools.htmlEncode(b.label)+"</span>"},{type:"html",html:'<span class="cke_dialog_ui_labeled_content"'+(b.controlStyle?' style="'+b.controlStyle+'"':"")+">"+e.call(this,a,b)+"</span>"}]};CKEDITOR.dialog._.uiElementBuilders.hbox.build(a,d,c)}return c.join("")})}},textInput:function(a,b,d){if(!(arguments.length<3)){c.call(this, 438b);var e=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",g={"class":"cke_dialog_ui_input_"+b.type,id:e,type:b.type};if(b.validate)this.validate=b.validate;if(b.maxLength)g.maxlength=b.maxLength;if(b.size)g.size=b.size;if(b.inputStyle)g.style=b.inputStyle;var i=this,s=false;a.on("load",function(){i.getInputElement().on("keydown",function(a){a.data.getKeystroke()==13&&(s=true)});i.getInputElement().on("keyup",function(b){if(b.data.getKeystroke()==13&&s){a.getButton("ok")&&setTimeout(function(){a.getButton("ok").click()}, 4390);s=false}},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,a,b,d,function(){var a=['<div class="cke_dialog_ui_input_',b.type,'" role="presentation"'];b.width&&a.push('style="width:'+b.width+'" ');a.push("><input ");g["aria-labelledby"]=this._.labelId;this._.required&&(g["aria-required"]=this._.required);for(var c in g)a.push(c+'="'+g[c]+'" ');a.push(" /></div>");return a.join("")})}},textarea:function(a,b,d){if(!(arguments.length<3)){c.call(this,b);var e=this,g=this._.inputId=CKEDITOR.tools.getNextId()+ 440"_textarea",i={};if(b.validate)this.validate=b.validate;i.rows=b.rows||5;i.cols=b.cols||20;i["class"]="cke_dialog_ui_input_textarea "+(b["class"]||"");if(typeof b.inputStyle!="undefined")i.style=b.inputStyle;if(b.dir)i.dir=b.dir;CKEDITOR.ui.dialog.labeledElement.call(this,a,b,d,function(){i["aria-labelledby"]=this._.labelId;this._.required&&(i["aria-required"]=this._.required);var a=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',g,'" '],b;for(b in i)a.push(b+'="'+ 441CKEDITOR.tools.htmlEncode(i[b])+'" ');a.push(">",CKEDITOR.tools.htmlEncode(e._["default"]),"</textarea></div>");return a.join("")})}},checkbox:function(a,b,d){if(!(arguments.length<3)){var e=c.call(this,b,{"default":!!b["default"]});if(b.validate)this.validate=b.validate;CKEDITOR.ui.dialog.uiElement.call(this,a,b,d,"span",null,null,function(){var c=CKEDITOR.tools.extend({},b,{id:b.id?b.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},true),d=[],i=CKEDITOR.tools.getNextId()+"_label",j={"class":"cke_dialog_ui_checkbox_input", 442type:"checkbox","aria-labelledby":i};g(c);if(b["default"])j.checked="checked";if(typeof c.inputStyle!="undefined")c.style=c.inputStyle;e.checkbox=new CKEDITOR.ui.dialog.uiElement(a,c,d,"input",null,j);d.push(' <label id="',i,'" for="',j.id,'"'+(b.labelStyle?' style="'+b.labelStyle+'"':"")+">",CKEDITOR.tools.htmlEncode(b.label),"</label>");return d.join("")})}},radio:function(a,b,d){if(!(arguments.length<3)){c.call(this,b);
442if(!this._["default"])this._["default"]=this._.initValue=b.items[0][1];if(b.validate)this.validate= 443b.valdiate;var e=[],i=this;CKEDITOR.ui.dialog.labeledElement.call(this,a,b,d,function(){for(var c=[],d=[],j=(b.id?b.id:CKEDITOR.tools.getNextId())+"_radio",k=0;k<b.items.length;k++){var t=b.items[k],C=t[2]!==void 0?t[2]:t[0],q=t[1]!==void 0?t[1]:t[0],u=CKEDITOR.tools.getNextId()+"_radio_input",B=u+"_label",u=CKEDITOR.tools.extend({},b,{id:u,title:null,type:null},true),C=CKEDITOR.tools.extend({},u,{title:C},true),w={type:"radio","class":"cke_dialog_ui_radio_input",name:j,value:q,"aria-labelledby":B}, 444r=[];if(i._["default"]==q)w.checked="checked";g(u);g(C);if(typeof u.inputStyle!="undefined")u.style=u.inputStyle;u.keyboardFocusable=true;e.push(new CKEDITOR.ui.dialog.uiElement(a,u,r,"input",null,w));r.push(" ");new CKEDITOR.ui.dialog.uiElement(a,C,r,"label",null,{id:B,"for":w.id},t[0]);c.push(r.join(""))}new CKEDITOR.ui.dialog.hbox(a,e,c,d);return d.join("")});this._.children=e}},button:function(a,b,d){if(arguments.length){typeof b=="function"&&(b=b(a.getParentEditor()));c.call(this,b,{disabled:b.disabled|| 445false});CKEDITOR.event.implementOn(this);var e=this;a.on("load",function(){var a=this.getElement();(function(){a.on("click",function(a){e.click();a.data.preventDefault()});a.on("keydown",function(a){if(a.data.getKeystroke()in{32:1}){e.click();a.data.preventDefault()}})})();a.unselectable()},this);var g=CKEDITOR.tools.extend({},b);delete g.style;var i=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,a,g,d,"a",null,{style:b.style,href:"javascript:void(0)",title:b.label,hidefocus:"true", 446"class":b["class"],role:"button","aria-labelledby":i},'<span id="'+i+'" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(b.label)+"</span>")}},select:function(a,b,d){if(!(arguments.length<3)){var e=c.call(this,b);if(b.validate)this.validate=b.validate;e.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,a,b,d,function(){var c=CKEDITOR.tools.extend({},b,{id:b.id?b.id+"_select":CKEDITOR.tools.getNextId()+"_select"},true),d=[],i=[],j={id:e.inputId,"class":"cke_dialog_ui_input_select", 447"aria-labelledby":this._.labelId};d.push('<div class="cke_dialog_ui_input_',b.type,'" role="presentation"');b.width&&d.push('style="width:'+b.width+'" ');d.push(">");if(b.size!=void 0)j.size=b.size;if(b.multiple!=void 0)j.multiple=b.multiple;g(c);for(var k=0,t;k<b.items.length&&(t=b.items[k]);k++)i.push('<option value="',CKEDITOR.tools.htmlEncode(t[1]!==void 0?t[1]:t[0]).replace(/"/g,"""),'" /> ',CKEDITOR.tools.htmlEncode(t[0]));if(typeof c.inputStyle!="undefined")c.style=c.inputStyle;e.select= 448new CKEDITOR.ui.dialog.uiElement(a,c,d,"select",null,j,i.join(""));d.push("</div>");return d.join("")})}},file:function(a,b,d){if(!(arguments.length<3)){b["default"]===void 0&&(b["default"]="");var e=CKEDITOR.tools.extend(c.call(this,b),{definition:b,buttons:[]});if(b.validate)this.validate=b.validate;a.on("load",function(){CKEDITOR.document.getById(e.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,a,b,d,function(){e.frameId=CKEDITOR.tools.getNextId()+ 449"_fileInput";var a=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="',e.frameId,'" title="',b.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,b,d){if(!(arguments.length<3)){c.call(this,b);var e=this;if(b.validate)this.validate=b.validate;var g=CKEDITOR.tools.extend({}, 450b),i=g.onClick;g.className=(g.className?g.className+" ":"")+"cke_dialog_ui_button";g.onClick=function(c){var d=b["for"];if(!i||i.call(this,c)!==false){a.getContentElement(d[0],d[1]).submit();this.disable()}};a.on("load",function(){a.getContentElement(b["for"][0],b["for"][1])._.buttons.push(e)});CKEDITOR.ui.dialog.button.call(this,a,g,d)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,b=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,c=/\/$/;return function(d,e,g){if(!(arguments.length<3)){var i=[], 451j=e.html;j.charAt(0)!="<"&&(j="<span>"+j+"</span>");var o=e.focus;if(o){var t=this.focus;this.focus=function(){(typeof o=="function"?o:t).call(this);this.fire("focus")};if(e.isFocusable)this.isFocusable=this.isFocusable;this.keyboardFocusable=true}CKEDITOR.ui.dialog.uiElement.call(this,d,e,i,"span",null,null,"");i=i.join("").match(a);j=j.match(b)||["","",""];if(c.test(j[1])){j[1]=j[1].slice(0,-1);j[2]="/"+j[2]}g.push([j[1]," ",i[1]||"",j[2]].join(""))}}}(),fieldset:function(a,b,c,d,e){var g=e.label; 452this._={children:b};CKEDITOR.ui.dialog.uiElement.call(this,a,e,d,"fieldset",null,null,function(){var a=[];g&&a.push("<legend"+(e.labelStyle?' style="'+e.labelStyle+'"':"")+">"+g+"</legend>");for(var b=0;b<c.length;b++)a.push(c[b]);return a.join("")})}},true);CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement;CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{set
452Label:function(a){var b=CKEDITOR.document.getById(this._.labelId);b.getChildCount()< 4531?(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:d},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")}, 454disable: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= 455CKEDITOR.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, 456arguments)},keyboardFocusable:true},a,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 d=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),e=this.getInputElement().$;d.$.text=a;d.$.value=b===void 0||b===null?a:b;c===void 0||c===null?CKEDITOR.env.ie?e.add(d.$):e.add(d.$, 457null):e.add(d.$,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},a,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}, 458accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(a,b){if(!CKEDITOR.env.ie||CKEDITOR.env.version>8)return d.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},a,true);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement, 459{setValue:function(a,b){for(var c=this._.children,d,e=0;e<c.length&&(d=c[e]);e++)d.getElement().$.checked=d.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", 460function(){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 d.onChange.apply(this,arguments);return null}}},a,true);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,a,{getInputElement:function(){var a=CKEDITOR.document.getById(this._.frameId).getFrameDocument(); 461return 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,d=function(a,b,c,d){a.on("formLoaded",function(){a.getInputElement().on(c,d,a)})},e;for(e in a)if(c=e.match(b))this.eventProcessors[e]?this.eventProcessors[e].call(this,this._.dialog,a[e]):d(this,this._.dialog, 462c[1].toLowerCase(),a[e]);return this},reset:function(){function a(){c.$.open();var f="";d.size&&(f=d.size-(CKEDITOR.env.ie?7:0));var C=b.frameId+"_input";c.$.write(['<html dir="'+j+'" lang="'+o+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+j+'" lang="'+o+'" action="',CKEDITOR.tools.htmlEncode(d.action),'"><label id="',b.labelId,'" for="',C,'" style="display:none">',CKEDITOR.tools.htmlEncode(d.label), 463'</label><input style="width:100%" id="',C,'" aria-labelledby="',b.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(d.id||"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(f>0?f:""),'" /></form></body></html><script>',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+g+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+i+")}","<\/script>"].join(""));c.$.close();for(f=0;f<e.length;f++)e[f].enable()}var b= 464this._,c=CKEDITOR.document.getById(b.frameId).getFrameDocument(),d=b.definition,e=b.buttons,g=this.formLoadedNumber,i=this.formUnloadNumber,j=b.dialog._.editor.lang.dir,o=b.dialog._.editor.langCode;if(!g){g=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this);i=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this);this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(g);CKEDITOR.tools.removeFunction(i)})}CKEDITOR.env.gecko? 465setTimeout(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)}}
465,keyboardFocusable:true},true);CKEDITOR.ui.dialog.fileButton.prototype=new CKEDITOR.ui.dialog.button;CKEDITOR.ui.dialog.fieldset.prototype= 466CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype);CKEDITOR.dialog.addUIElement("text",e);CKEDITOR.dialog.addUIElement("password",e);CKEDITOR.dialog.addUIElement("textarea",b);CKEDITOR.dialog.addUIElement("checkbox",b);CKEDITOR.dialog.addUIElement("radio",b);CKEDITOR.dialog.addUIElement("button",b);CKEDITOR.dialog.addUIElement("select",b);CKEDITOR.dialog.addUIElement("file",b);CKEDITOR.dialog.addUIElement("fileButton",b);CKEDITOR.dialog.addUIElement("html",b);CKEDITOR.dialog.addUIElement("fieldset", 467{build:function(a,b,c){for(var d=b.children,e,g=[],i=[],j=0;j<d.length&&(e=d[j]);j++){var o=[];g.push(o);i.push(CKEDITOR.dialog._.uiElementBuilders[e.type].build(a,e,o))}return new CKEDITOR.ui.dialog[b.type](a,i,g,c,b)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,function(){function c(){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% 468a]][0].$.offsetHeight)return this._.tabIdList[c%a];return null}function e(){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 b(a,b){for(var c=a.$.getElementsByTagName("input"),d=0,e=c.length;d<e;d++){var f=new CKEDITOR.dom.element(c[d]);if(f.getAttribute("type").toLowerCase()=="text")if(b){f.setAttribute("value",f.getCustomData("fake_value")|| 469"");f.removeCustomData("fake_value")}else{f.setCustomData("fake_value",f.getAttribute("value"));f.setAttribute("value","")}}}function a(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 d(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")}function i(a){var a=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog", 470o).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),d=b.getChild(1);if(CKEDITOR.env.ie&&!CKEDITOR.env.ie6Compat){var e="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())";CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+ 471e+'" tabIndex="-1"></iframe>').appendTo(b.getParent())}c.unselectable();d.unselectable();return{element:a,parts:{dialog:a.getChild(0),title:c,close:d,tabs:b.getChild(2),contents:b.getChild([3,0,0,0]),footer:b.getChild([3,0,1,0])}}}function g(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 472{32:1,13:1}&&this.fire("click")});b.on("focus",function(){this.fire("mouseover")});b.on("blur",function(){this.fire("mouseout")})}function f(a){function b(){a.layout()}var c=CKEDITOR.document.getWindow();c.on("resize",b);a.on("hide",function(){c.removeListener("resize",b)})}function h(a,b){this._={dialog:a};CKEDITOR.tools.extend(this,b)}function k(a){function b(c){var j=a.getSize(),i=CKEDITOR.document.getWindow().getViewPaneSize(),k=c.data.$.screenX,l=c.data.$.screenY,q=k-d.x,m=l-d.y;d={x:k,y:l}; 473e.x=e.x+q;e.y=e.y+m;a.move(e.x+h[3]<g?-h[3]:e.x-h[1]>i.width-j.width-g?i.width-j.width+(f.lang.dir=="rtl"?0:h[1]):e.x,e.y+h[0]<g?-h[0]:e.y-h[2]>i.height-j.height-g?i.height-j.height+h[2]:e.y,1);c.data.preventDefault()}function c(){CKEDITOR.document.removeListener("mousemove",b);CKEDITOR.document.removeListener("mouseup",c);if(CKEDITOR.env.ie6Compat){var a=p.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",c)}}var d=null,e=null;a.getElement().getFirst();var f= 474a.getParentEditor(),g=f.config.dialog_magnetDistance,h=CKEDITOR.skin.margins||[0,0,0,0];typeof g=="undefined"&&(g=20);a.parts.title.on("mousedown",function(f){d={x:f.data.$.screenX,y:f.data.$.screenY};CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",c);e=a.getPosition();if(CKEDITOR.env.ie6Compat){var g=p.getChild(0).getFrameDocument();g.on("mousemove",b);g.on("mouseup",c)}f.data.preventDefault()},a)}function l(a){var b,c;function d(e){var q=h.lang.dir=="rtl",m=l.width,o=l.height, 475n=m+(e.data.$.screenX-b)*(q?-1:1)*(a._.moved?1:2),t=o+(e.data.$.screenY-c)*(a._.moved?1:2),u=a._.element.getFirst(),u=q&&u.getComputedStyle("right"),p=a.getPosition();p.y+t>k.height&&(t=k.height-p.y);if((q?u:p.x)+n>
475k.width)n=k.width-(q?u:p.x);if(g==CKEDITOR.DIALOG_RESIZE_WIDTH||g==CKEDITOR.DIALOG_RESIZE_BOTH)m=Math.max(f.minWidth||0,n-j);if(g==CKEDITOR.DIALOG_RESIZE_HEIGHT||g==CKEDITOR.DIALOG_RESIZE_BOTH)o=Math.max(f.minHeight||0,t-i);a.resize(m,o);a._.moved||a.layout();e.data.preventDefault()}function e(){CKEDITOR.document.removeListener("mouseup", 476e);CKEDITOR.document.removeListener("mousemove",d);if(q){q.remove();q=null}if(CKEDITOR.env.ie6Compat){var a=p.getChild(0).getFrameDocument();a.removeListener("mouseup",e);a.removeListener("mousemove",d)}}var f=a.definition,g=f.resizable;if(g!=CKEDITOR.DIALOG_RESIZE_NONE){var h=a.getParentEditor(),j,i,k,l,q,m=CKEDITOR.tools.addFunction(function(f){l=a.getSize();var g=a.parts.contents;if(g.$.getElementsByTagName("iframe").length){q=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>'); 477g.append(q)}i=l.height-a.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.opera||CKEDITOR.env.ie&&CKEDITOR.env.quirks));j=l.width-a.parts.contents.getSize("width",1);b=f.screenX;c=f.screenY;k=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",d);CKEDITOR.document.on("mouseup",e);if(CKEDITOR.env.ie6Compat){g=p.getChild(0).getFrameDocument();g.on("mousemove",d);g.on("mouseup",e)}f.preventDefault&&f.preventDefault()});a.on("load",function(){var b="";g== 478CKEDITOR.DIALOG_RESIZE_WIDTH?b=" cke_resizer_horizontal":g==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(b=" cke_resizer_vertical");b=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+b+" cke_resizer_"+h.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(h.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+m+', event )">'+(h.lang.dir=="ltr"?"â¢":"â£")+"</div>");a.parts.footer.append(b,1)});h.on("destroy",function(){CKEDITOR.tools.removeFunction(m)})}}function m(a){a.data.preventDefault(1)} 479function n(a){var b=CKEDITOR.document.getWindow(),c=a.config,d=c.dialog_backgroundCoverColor||"white",e=c.dialog_backgroundCoverOpacity,f=c.baseFloatZIndex,c=CKEDITOR.tools.genKey(d,e,f),g=r[c];if(g)g.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: "+d:"",'" class="cke_dialog_background_cover">'];if(CKEDITOR.env.ie6Compat){d="<html><body style=\\'background-color:"+ 480d+";\\'></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( '"+d+"' );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>");g=CKEDITOR.dom.element.createFromHtml(f.join(""));g.setOpacity(e!= 481void 0?e:0.5);g.on("keydown",m);g.on("keypress",m);g.on("keyup",m);g.appendTo(CKEDITOR.document.getBody());r[c]=g}a.focusManager.add(g);p=g;var a=function(){var a=b.getViewPaneSize();g.setStyles({width:a.width+"px",height:a.height+"px"})},h=function(){var a=b.getScrollPosition(),c=CKEDITOR.dialog._.currentTop;g.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)}};w=a;b.on("resize",a);a();(!CKEDITOR.env.mac||!CKEDITOR.env.webkit)&&g.focus(); 482if(CKEDITOR.env.ie6Compat){var j=function(){h();arguments.callee.prevScrollHandler.apply(this,arguments)};b.$.setTimeout(function(){j.prevScrollHandler=window.onscroll||function(){};window.onscroll=j},0);h()}}function s(a){if(p){a.focusManager.remove(p);a=CKEDITOR.document.getWindow();p.hide();a.removeListener("resize",w);CKEDITOR.env.ie6Compat&&a.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0);w=null}}var j=CKEDITOR.tools.cssLength,o='<div class="cke_reset_all {editorId} {editorDialogClass} {hidpi}" dir="{langDir}" lang="{langCode}" role="dialog" aria-labelledby="cke_dialog_title_{id}"><table class="cke_dialog '+ 483CKEDITOR.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>'; 484CKEDITOR.dialog=function(b,f){function g(){var a=w._.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 h(a){var b=w._.focusList,a=a||0;if(!(b.length<1)){var c=w._.currentFocusIndex;try{b[c].getInputElement().$.blur()}catch(d){}for(var e=c=(c+a+b.length)%b.length;a&&!b[e].isFocusable();){e=(e+a+b.length)%b.length;if(e==c)break}b[e].focus();b[e].type=="text"&&b[e].select()}}function j(a){if(w== 485CKEDITOR.dialog._.currentTop){var d=a.data.getKeystroke(),f=b.lang.dir=="rtl";v=r=0;
485if(d==9||d==CKEDITOR.SHIFT+9){d=d==CKEDITOR.SHIFT+9;if(w._.tabBarMode){d=d?c.call(w):e.call(w);w.selectPage(d);w._.tabs[d][0].focus()}else h(d?-1:1);v=1}else if(d==CKEDITOR.ALT+121&&!w._.tabBarMode&&w.getPageCount()>1){w._.tabBarMode=true;w._.tabs[w._.currentTabId][0].focus();v=1}else if((d==37||d==39)&&w._.tabBarMode){d=d==(f?39:37)?c.call(w):e.call(w);w.selectPage(d);w._.tabs[d][0].focus();v=1}else if((d==13||d== 48632)&&w._.tabBarMode){this.selectPage(this._.currentTabId);this._.tabBarMode=false;this._.currentFocusIndex=-1;h(1);v=1}else if(d==13){d=a.data.getTarget();if(!d.is("a","button","select","textarea")&&(!d.is("input")||d.$.type!="button")){(d=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(d.click,0,d);v=1}r=1}else if(d==27){(d=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(d.click,0,d):this.fire("cancel",{hide:true}).hide!==false&&this.hide();r=1}else return;q(a)}}function q(a){v?a.data.preventDefault(1): 487r&&a.data.stopPropagation()}var m=CKEDITOR.dialog._.dialogDefinitions[f],o=CKEDITOR.tools.clone(t),n=b.config.dialog_buttonsOrder||"OS",u=b.lang.dir,p={},v,r;(n=="OS"&&CKEDITOR.env.mac||n=="rtl"&&u=="ltr"||n=="ltr"&&u=="rtl")&&o.buttons.reverse();m=CKEDITOR.tools.extend(m(b),o);m=CKEDITOR.tools.clone(m);m=new B(this,m);o=i(b);this._={editor:b,element:o.element,name:f,contentSize:{width:0,height:0}
487,size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null, 488currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:false,focusList:[],currentFocusIndex:0,hasFocus:false};this.parts=o.parts;CKEDITOR.tools.setTimeout(function(){b.fire("ariaWidget",this.parts.contents)},0,this);o={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};o[u=="rtl"?"right":"left"]=0;this.parts.dialog.setStyles(o);CKEDITOR.event.call(this);this.definition=m=CKEDITOR.fire("dialogDefinition",{name:f,definition:m},b).definition;if(!("removeDialogTabs"in b._)&& 489b.config.removeDialogTabs){o=b.config.removeDialogTabs.split(";");for(u=0;u<o.length;u++){n=o[u].split(":");if(n.length==2){var C=n[0];p[C]||(p[C]=[]);p[C].push(n[1])}}b._.removeDialogTabs=p}if(b._.removeDialogTabs&&(p=b._.removeDialogTabs[f]))for(u=0;u<p.length;u++)m.removeContents(p[u]);if(m.onLoad)this.on("load",m.onLoad);if(m.onShow)this.on("show",m.onShow);if(m.onHide)this.on("hide",m.onHide);if(m.onOk)this.on("ok",function(a){b.fire("saveSnapshot");setTimeout(function(){b.fire("saveSnapshot")}, 4900);if(m.onOk.call(this,a)===false)a.data.hide=false});if(m.onCancel)this.on("cancel",function(a){if(m.onCancel.call(this,a)===false)a.data.hide=false});var w=this,s=function(a){var b=w._.contents,c=false,d;for(d in b)for(var e in b[d])if(c=a.call(this,b[d][e]))return};this.on("ok",function(b){s(function(c){if(c.validate){var d=c.validate(this),e=typeof d=="string"||d===false;if(e){b.data.hide=false;b.stop()}a.call(c,!e,typeof d=="string"?d:void 0);return e}})},this,null,0);this.on("cancel",function(a){s(function(c){if(c.isChanged()){if(!b.config.dialog_noConfirmCancel&& 491!confirm(b.lang.common.confirmCancel))a.data.hide=false;return true}})},this,null,0);this.parts.close.on("click",function(a){this.fire("cancel",{hide:true}).hide!==false&&this.hide();a.data.preventDefault()},this);this.changeFocus=h;var x=this._.element;b.focusManager.add(x,1);this.on("show",function(){x.on("keydown",j,this);if(CKEDITOR.env.opera||CKEDITOR.env.gecko)x.on("keypress",q,this)});this.on("hide",function(){x.removeListener("keydown",j);(CKEDITOR.env.opera||CKEDITOR.env.gecko)&&x.removeListener("keypress", 492q);s(function(a){d.apply(a)})});this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",j,this,null,0)});this.on("show",function(){g();if(b.config.dialog_startupFocusTab&&w._.pageCount>1){w._.tabBarMode=true;w._.tabs[w._.currentTabId][0].focus()}else if(!this._.hasFocus){this._.currentFocusIndex=-1;
492if(m.onFocus){var a=m.onFocus.call(this);a&&a.focus()}else h(1)}},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on("load",function(){var a= 493this.getElement(),b=a.getFirst();b.remove();b.appendTo(a)},this);k(this);l(this);(new CKEDITOR.dom.text(m.title,CKEDITOR.document)).appendTo(this.parts.title);for(u=0;u<m.contents.length;u++)(p=m.contents[u])&&this.addPage(p);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;h(1)}a.data.preventDefault()}},this);u=[];p= 494CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:m.buttons},u).getChild();this.parts.footer.setHtml(u.join(""));for(u=0;u<p.length;u++)this._.buttons[p[u].id]=p[u]};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}, 495this._.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, 496b,c){var d=this._.element.getFirst(),e=this._.editor.lang.dir=="rtl",f=d.getComputedStyle("position")=="fixed";CKEDITOR.env.ie&&d.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(e){f=this.getSize();a=CKEDITOR.document.getWindow().getViewPaneSize().width-f.width-a}b={top:(b>0?b:0)+"px"};b[e?"right":"left"]=(a>0?a:0)+"px";d.setStyles(b);c&&(this._.moved= 4971)}},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|| 498b.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;n(this._.editor)}else{this._.parentDialog= 499CKEDITOR.dialog._.currentTop;this._.parentDialog.getElement().getFirst().$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2);CKEDITOR.dialog._.currentTop=this}a.on("keydown",v);a.on(CKEDITOR.env.opera?"keypress":"keyup",y);this._.hasFocus=false;for(var d in b.contents)if(b.contents[d]){var a=b.contents[d],e=this._.tabs[a.id],g=a.requiredContent,h=0;if(e){for(var j in this._.contents[a.id]){var i=this._.contents[a.id][j];if(!(i.type=="hbox"||i.type=="vbox"||!i.getInputElement()))if(i.requiredContent&& 500!this._.editor.activeFilter.check(i.requiredContent))i.disable();else{i.enable();h++}}!h||g&&!this._.editor.activeFilter.check(g)?e[0].addClass("cke_dialog_tab_disabled"):e[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout();f(this);this.parts.dialog.setStyle("visibility","");this.fireOnce("load",{});CKEDITOR.ui.fire("ready",this);this.fire("show",{});this._.editor.fire("dialogShow",this);this._.parentDialog||this._.editor.focusManager.lock();this.foreach(function(a){a.setInitValue&& 501a.setInitValue()})},100,this)},layout:function(){var a=this.parts.dialog,b=this.getSize(),c=CKEDITOR.document.getWindow().getViewPaneSize(),d=(c.width-b.width)/2,e=(c.height-b.height)/2;CKEDITOR.env.ie6Compat||(b.height+(e>0?e:0)>c.height||b.width+(d>0?d:0)>c.width?a.setStyle("position","absolute"):a.setStyle("position","fixed"));this.move(this._.moved?this._.position.x:d,this._.moved?this._.position.y:e)},foreach:function(a){for(var b in this._.contents)for(var c in this._.contents[b])a.call(this, 502this._.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", 503this);this.selectPage(this._.tabIdList[0]);var a=this._.element;a.setStyle("display","none");this.parts.dialog.setStyle("visibility","hidden");for(H(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 s(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex= 504CKEDITOR.dialog._.currentZIndex-10;
504else{CKEDITOR.dialog._.currentZIndex=null;a.removeListener("keydown",v);a.removeListener(CKEDITOR.env.opera?"keypress":"keyup",y);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)+'"': 505"",d=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),e=this._.contents[a.id]={},f=d.getChild(),g=0;d=f.shift();){!d.notAllowed&&(d.type!="hbox"&&d.type!="vbox")&&g++;e[d.id]=d;typeof d.getChild=="function"&&f.push.apply(f,d.getChild())}if(!g)a.hidden=true;b=CKEDITOR.dom.element.createFromHtml(b.join(""));b.setAttribute("role","tabpanel");d=CKEDITOR.env;e= 506"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="',e,'"',d.gecko&&d.version>=10900&&!d.hc?"":' href="javascript:void(0)"',' tabIndex="-1" hidefocus="true" role="tab">',a.label,"</a>"].join(""));b.setAttribute("aria-labelledby",e);this._.tabs[a.id]=[c,b];this._.tabIdList.push(a.id);!a.hidden&&this._.pageCount++;this._.lastTab=c;this.updateStyle();b.setAttribute("name", 507a.id);b.appendTo(this.parts.contents);c.unselectable();this.parts.tabs.append(c);if(a.accessKey){A(this,this,"CTRL+"+a.accessKey,E,D);this._.accessKeyMap["CTRL+"+a.accessKey]=a.id}}},selectPage:function(a){if(this._.currentTabId!=a&&!this._.tabs[a][0].hasClass("cke_dialog_tab_disabled")&&this.fire("selectPage",{page:a,currentPage:this._.currentTabId})!==false){for(var c in this._.tabs){var d=this._.tabs[c][0],e=this._.tabs[c][1];if(c!=a){d.removeClass("cke_dialog_tab_selected");e.hide()}e.setAttribute("aria-hidden", 508c!=a)}var f=this._.tabs[a];f[0].addClass("cke_dialog_tab_selected");if(CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat){b(f[1]);f[1].show();setTimeout(function(){b(f[1],1)},0)}else f[1].show();this._.currentTabId=a;this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,a)}},updateStyle:function(){this.parts.dialog[(this._.pageCount===1?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(a){var b=this._.tabs[a]&&this._.tabs[a][0];if(b&&this._.pageCount!=1&&b.isVisible()){a==this._.currentTabId&& 509this.selectPage(c.call(this));b.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]}, 510click: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 g(this,a,b))}else{this._.focusList.splice(b, 5110,new g(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= 512function(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", 513onClick: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 t={resizable:CKEDITOR.DIALOG_RESIZE_BOTH, 514minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},C=function(a,b,c){for(var d=0,e;e=a[d];d++){if(e.id==b)return e;if(c&&e[c])if(e=C(e[c],b,c))return e}return null},q=function(a,b,c,d,e){if(c){for(var f=0,g;g=a[f];
514f++){if(g.id==c){a.splice(f,0,b);return b}if(d&&g[d])if(g=q(g[d],b,c,d,true))return g}if(e)return null}a.push(b);return b},u=function(a,b,c){for(var d=0,e;e=a[d];d++){if(e.id==b)return a.splice(d,1);if(c&&e[c])if(e=u(e[c],b,c))return e}return null}, 515B=function(a,b){this.dialog=a;for(var c=b.contents,d=0,e;e=c[d];d++)c[d]=e&&new h(a,e);CKEDITOR.tools.extend(this,b)};B.prototype={getContents:function(a){return C(this.contents,a)},getButton:function(a){return C(this.buttons,a)},addContents:function(a,b){return q(this.contents,a,b)},addButton:function(a,b){return q(this.buttons,a,b)},removeContents:function(a){u(this.contents,a)},removeButton:function(a){u(this.buttons,a)}};h.prototype={get:function(a){return C(this.elements,a,"children")},add:function(a, 516b){return q(this.elements,a,b,"children")},remove:function(a){u(this.elements,a,"children")}};var w,r={},p,x={},v=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,d=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode);if((b=x[(b?"CTRL+":"")+(c?"ALT+":"")+(d?"SHIFT+":"")+e])&&b.length){b=b[b.length-1];b.keydown&&b.keydown.call(b.uiElement,b.dialog,b.key);a.data.preventDefault()}},y=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,d=a.data.$.shiftKey, 517e=String.fromCharCode(a.data.$.keyCode);if((b=x[(b?"CTRL+":"")+(c?"ALT+":"")+(d?"SHIFT+":"")+e])&&b.length){b=b[b.length-1];if(b.keyup){b.keyup.call(b.uiElement,b.dialog,b.key);a.data.preventDefault()}}},A=function(a,b,c,d,e){(x[c]||(x[c]=[])).push({uiElement:a,dialog:b,key:c,keyup:e||a.accessKeyUp,keydown:d||a.accessKeyDown})},H=function(a){for(var b in x){for(var c=x[b],d=c.length-1;d>=0;d--)(c[d].dialog==a||c[d].uiElement==a)&&c.splice(d,1);c.length===0&&delete x[b]}},D=function(a,b){a._.accessKeyMap[b]&& 518a.selectPage(a._.accessKeyMap[b])},E=function(){};(function(){CKEDITOR.ui.dialog={uiElement:function(a,b,c,d,e,f,g){if(!(arguments.length<4)){var h=(d.call?d(b):d)||"div",j=["<",h," "],i=(e&&e.call?e(b):e)||{},k=(f&&f.call?f(b):f)||{},l=(g&&g.call?g.call(this,a,b):g)||"",m=this.domId=k.id||CKEDITOR.tools.getNextId()+"_uiElement";this.id=b.id;if(b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)){i.display="none";this.notAllowed=true}k.id=m;var q={};b.type&&(q["cke_dialog_ui_"+ 519b.type]=1);b.className&&(q[b.className]=1);b.disabled&&(q.cke_disabled=1);for(var o=k["class"]&&k["class"].split?k["class"].split(" "):[],m=0;m<o.length;m++)o[m]&&(q[o[m]]=1);o=[];for(m in q)o.push(m);k["class"]=o.join(" ");if(b.title)k.title=b.title;q=(b.style||"").split(";");if(b.align){o=b.align;i["margin-left"]=o=="left"?0:"auto";i["margin-right"]=o=="right"?0:"auto"}for(m in i)q.push(m+":"+i[m]);b.hidden&&q.push("display:none");for(m=q.length-1;m>=0;m--)q[m]===""&&q.splice(m,1);if(q.length>0)k.style= 520(k.style?k.style+"; ":"")+q.join("; ");for(m in k)j.push(m+'="'+CKEDITOR.tools.htmlEncode(k[m])+'" ');j.push(">",l,"</",h,">");c.push(j.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= 521CKEDITOR.tools.override(this.getValue,function(a){return function(){return b.getValue.call(this,a.call(this))}});CKEDITOR.event.implementOn(this);this.registerEvents(b);this.accessKeyUp&&(this.accessKeyDown&&b.accessKey)&&A(this,a,"CTRL+"+b.accessKey);var 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"); 522c&&this.addClass(c)});b.on("blur",function(){n.fire("blur");c&&this.removeClass(c)})}});CKEDITOR.tools.extend(this,b);if(this.keyboardFocusable){this.tabIndex=b.tabIndex||0;this.focusIndex=a._.focusList.push(this)-1;this.on("focus",function(){a._.currentFocusIndex=n.focusIndex})}}},hbox:function(a,b,c,d,e){if(!(arguments.length<4)){this._||(this._={});
522var f=this._.children=b,g=e&&e.widths||null,h=e&&e.height||null,i,k={role:"presentation"};e&&e.align&&(k.align=e.align);CKEDITOR.ui.dialog.uiElement.call(this, 523a,e||{type:"hbox"},d,"table",{},k,function(){var a=['<tbody><tr class="cke_dialog_ui_hbox">'];for(i=0;i<c.length;i++){var b="cke_dialog_ui_hbox_child",d=[];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" ');g?g[i]&&d.push("width:"+j(g[i])):d.push("width:"+Math.floor(100/c.length)+"%");h&&d.push("height:"+j(h));e&&e.padding!=void 0&&d.push("padding:"+j(e.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&f[i].align)&&d.push("text-align:"+ 524f[i].align);d.length>0&&a.push('style="'+d.join("; ")+'" ');a.push(">",c[i],"</td>")}a.push("</tr></tbody>");return a.join("")})}},vbox:function(a,b,c,d,e){if(!(arguments.length<3)){this._||(this._={});var f=this._.children=b,g=e&&e.width||null,h=e&&e.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"vbox"},d,"div",null,{role:"presentation"},function(){var b=['<table role="presentation" cellspacing="0" border="0" '];b.push('style="');e&&e.expand&&b.push("height:100%;");b.push("width:"+ 525j(g||"100%"),";");CKEDITOR.env.webkit&&b.push("float:none;");b.push('"');b.push('align="',CKEDITOR.tools.htmlEncode(e&&e.align||(a.getParentEditor().lang.dir=="ltr"?"left":"right")),'" ');b.push("><tbody>");for(var d=0;d<c.length;d++){var i=[];b.push('<tr><td role="presentation" ');g&&i.push("width:"+j(g||"100%"));h?i.push("height:"+j(h[d])):e&&e.expand&&i.push("height:"+Math.floor(100/c.length)+"%");e&&e.padding!=void 0&&i.push("padding:"+j(e.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&f[d].align)&& 526i.push("text-align:"+f[d].align);i.length>0&&b.push('style="',i.join("; "),'" ');b.push(' class="cke_dialog_ui_vbox_child">',c[d],"</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}, 527getValue: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,d=function(a,b,c,d){b.on("load", 528function(){a.getInputElement().on(c,d,a)})},e;for(e in a)if(c=e.match(b))this.eventProcessors[e]?this.eventProcessors[e].call(this,this._.dialog,a[e]):d(this,this._.dialog,c[1].toLowerCase(),a[e]);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", 529"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< 5301)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 d=b.children,e,f=[],g=[],h=0;h<d.length&&(e=d[h]);h++){var j=[];f.push(j);g.push(CKEDITOR.dialog._.uiElementBuilders[e.type].build(a,e,j))}return new CKEDITOR.ui.dialog[b.type](a, 531g,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+)?$/,d=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,e=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i, 532f=/^(\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,d=CKEDITOR.VALIDATE_AND,e=[],f;for(f=0;f<a.length;f++)if(typeof a[f]=="function")e.push(a[f]);else break;
532if(f<a.length&&typeof a[f]=="string"){c=a[f];f++}f<a.length&&typeof a[f]=="number"&&(d=a[f]);var g=d==CKEDITOR.VALIDATE_AND?true:false;for(f=0;f<e.length;f++)g=d==CKEDITOR.VALIDATE_AND? 533g&&e[f](b):g||e[f](b);return!g?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 e.test(CKEDITOR.tools.trim(a))},a)},htmlLength:function(a){return this.functions(function(a){return d.test(CKEDITOR.tools.trim(a))},a)},inlineStyle:function(a){return this.functions(function(a){return f.test(CKEDITOR.tools.trim(a))}, 534a)},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 r)r[c].remove();r={}}var a=a.editor._.storedDialogs,d;for(d in a)a[d].destroy()})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(a,b){var c=null,d=CKEDITOR.dialog._.dialogDefinitions[a]; 535CKEDITOR.dialog._.currentTop===null&&n(this);if(typeof d=="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(d=="failed"){s(this);throw Error('[CKEDITOR.dialog.openDialog] Dialog "'+a+'" failed when loading definition.');}typeof d=="string"&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(d),function(){typeof CKEDITOR.dialog._.dialogDefinitions[a]!="function"&&(CKEDITOR.dialog._.dialogDefinitions[a]="failed");this.openDialog(a, 536b)},this,0,1)}CKEDITOR.skin.loadPart("dialog");return c}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(c){c.on("doubleclick",function(e){e.data.dialog&&c.openDialog(e.data.dialog)},null,null,999)}}),"use strict",function(){function c(a){function b(){var c=a.editable();c.on(x,function(a){(!CKEDITOR.env.ie||!w)&&q(a)});CKEDITOR.env.ie&&c.on("paste",function(b){if(!r){e();b.data.preventDefault();q(b);n("paste")||a.openDialog("paste")}});if(CKEDITOR.env.ie){c.on("contextmenu", 537i,null,null,0);c.on("beforepaste",function(a){a.data&&!a.data.$.ctrlKey&&i()},null,null,0)}c.on("beforecut",function(){!w&&j(a)});var d;c.attachListener(CKEDITOR.env.ie?c:a.document.getDocumentElement(),"mouseup",function(){d=setTimeout(function(){u()},0)});a.on("destroy",function(){clearTimeout(d)});c.on("keyup",u)}function c(b){return{type:b,canUndo:b=="cut",startDisabled:true,exec:function(){this.type=="cut"&&j();var b;var c=this.type;if(CKEDITOR.env.ie)b=n(c);else try{b=a.document.$.execCommand(c, 538false,null)}catch(d){b=false}b||alert(a.lang.clipboard[this.type+"Error"]);return b}}}function d(){return{canUndo:false,async:true,exec:function(a,b){var c=function(b,c){b&&s(b.type,b.dataValue,!!c);a.fire("afterCommandExec",{name:"paste",command:d,returnValue:!!b})},d=this;typeof b=="string"?c({type:"auto",dataValue:b},1):a.getClipboardData(c)}}}function e(){r=1;setTimeout(function(){r=0},100)}function i(){w=1;setTimeout(function(){w=0},10)}function n(b){var c=a.document,d=c.getBody(),e=false,f= 539function(){e=true};d.on(b,f);(CKEDITOR.env.version>7?c.$:c.$.selection.createRange()).execCommand(b);d.removeListener(b,f);return e}function s(b,c,d){b={type:b};if(d&&a.fire("beforePaste",b)===false||!c)return false;b.dataValue=c;return a.fire("paste",b)}function j(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var b=a.getSelection(),c,d,e;if(b.getType()==CKEDITOR.SELECTION_ELEMENT&&(c=b.getSelectedElement())){d=b.getRanges()[0];e=a.document.createText("");e.insertBefore(c);d.setStartBefore(e);d.setEndAfter(c); 540b.selectRanges([d]);setTimeout(function(){if(c.getParent()){e.remove();b.selectElement(c)}},0)}}}function o(b,c){var d=a.document,e=a.editable(),f=function(a){a.cancel()},h=CKEDITOR.env.gecko&&CKEDITOR.env.version<=10902,j;if(!d.getById("cke_pastebin")){var i=a.getSelection(),k=i.createBookmarks(),l=new CKEDITOR.dom.element((CKEDITOR.env.webkit||e.is("body"))&&!CKEDITOR.env.ie&&!CKEDITOR.env.opera?"body":"div",d);l.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});CKEDITOR.env.opera&&l.appendBogus(); 541var m=0,d=d.getWindow();if(h){l.insertAfter(k[0].startNode);l.setStyle("display","inline")}else{if(CKEDITOR.env.webkit){e.append(l);l.addClass("cke_editable");if(!e.is("body")){h=e.getComputedStyle("position")!="static"?e:CKEDITOR.dom.element.get(e.$.offsetParent);m=h.getDocumentPosition().y}}else e.getAscendant(CKEDITOR.env.ie||CKEDITOR.env.opera?"body":"html",1).append(l);l.setStyles({position:"absolute",top:d.getScrollPosition().y-m+10+"px",width:"1px",height:Math.max(1,d.getViewPaneSize().height- 54220)+"px",overflow:"hidden",margin:0,padding:0})}if(h=l.getParent().isReadOnly()){l.setOpacity(0);l.setAttribute("contenteditable",true)}
542else l.setStyle(a.config.contentsLangDirection=="ltr"?"left":"right","-1000px");a.on("selectionChange",f,null,null,0);if(CKEDITOR.env.webkit||CKEDITOR.env.gecko)j=e.once("blur",f,null,null,-100);h&&l.focus();h=new CKEDITOR.dom.range(l);h.selectNodeContents(l);var q=h.select();CKEDITOR.env.ie&&(j=e.once("blur",function(){a.lockSelection(q)}));var o=CKEDITOR.document.getWindow().getScrollPosition().y; 543setTimeout(function(){if(CKEDITOR.env.webkit||CKEDITOR.env.opera)CKEDITOR.document[CKEDITOR.env.webkit?"getBody":"getDocumentElement"]().$.scrollTop=o;j&&j.removeListener();CKEDITOR.env.ie&&e.focus();i.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 t(){if(CKEDITOR.env.ie){a.focus();e();var b=a.focusManager;b.lock();if(a.editable().fire(x)&&!n("paste")){b.unlock(); 544return false}b.unlock()}else try{if(a.editable().fire(x)&&!a.document.$.execCommand("Paste",false,null))throw 0;}catch(c){return false}return true}function C(b){if(a.mode=="wysiwyg")switch(b.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:b=a.editable();e();!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")}, 54550)}}function q(b){var c={type:"auto"},d=a.fire("beforePaste",c);o(b,function(a){a=a.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,"");d&&s(c.type,a,0,1)})}function u(){if(a.mode=="wysiwyg"){var b=B("paste");a.getCommand("cut").setState(B("cut"));a.getCommand("copy").setState(B("copy"));a.getCommand("paste").setState(b);a.fire("pasteState",b)}}function B(b){if(p&&b in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if(b=="paste")return CKEDITOR.TRISTATE_OFF;var b=a.getSelection(),c=b.getRanges(); 546return b.getType()==CKEDITOR.SELECTION_NONE||c.length==1&&c[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var w=0,r=0,p=0,x=CKEDITOR.env.ie?"beforepaste":"paste";(function(){a.on("key",C);a.on("contentDom",b);a.on("selectionChange",function(a){p=a.data.selection.getRanges()[0].checkReadOnly();u()});a.contextMenu&&a.contextMenu.addListener(function(a,b){p=b.getRanges()[0].checkReadOnly();return{cut:B("cut"),copy:B("copy"),paste:B("paste")}})})();(function(){function b(c,d,e,f,h){var j= 547a.lang.clipboard[d];a.addCommand(d,e);a.ui.addButton&&a.ui.addButton(c,{label:j,command:d,toolbar:"clipboard,"+f});a.addMenuItems&&a.addMenuItem(d,{label:j,command:d,group:"clipboard",order:h})}b("Cut","cut",c("cut"),10,1);b("Copy","copy",c("copy"),20,4);b("Paste","paste",d(),30,8)})();a.getClipboardData=function(b,c){function d(a){a.removeListener();a.cancel();c(a.data)}function e(a){a.removeListener();a.cancel();i=true;c({type:j,dataValue:a.data})}function f(){this.customTitle=b&&b.title}var h= 548false,j="auto",i=false;if(!c){c=b;b=null}a.on("paste",d,null,null,0);a.on("beforePaste",function(a){a.removeListener();h=true;j=a.data.type},null,null,1E3);if(t()===false){a.removeListener("paste",d);if(h&&a.fire("pasteDialog",f)){a.on("pasteDialogCommit",e);a.on("dialogHide",function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",e);setTimeout(function(){i||c(null)},10)})}else c(null)}}}function e(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)&& 549!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 b(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>")> 550-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>"+ 551b.replace(/(<br>){2,}/g,function(a){return c(a.length/4)})+"</p>")}return i(a,b)}function a(){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),d={p:1,br:1,"cke:br":1},e=CKEDITOR.dtd,i=CKEDITOR.tools.extend({area:1,basefont:1,embed:1,iframe:1,map:1,object:1,param:1},CKEDITOR.dtd.$nonBodyContent,CKEDITOR.dtd.$cdata),n=function(a){delete a.name;a.add(new CKEDITOR.htmlParser.text(" "))}, 552s=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:s,h2:s,h3:s,h4:s,h5:s,h6:s,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:n,th:n,$:function(a){var g=a.name,n;if(i[g])return false;a.attributes={};if(g=="br")return a;
552if(b[g])a.name= 553"p";else if(c[g])delete a.name;else if(e[g]){n=new CKEDITOR.htmlParser.element("cke:br");n.isEmpty=true;if(CKEDITOR.dtd.$empty[g])return n;a.add(n,0);n=n.clone();n.isEmpty=true;a.add(n);delete a.name}d[a.name]||delete a.name;return a}}},{applyToAll:true});return a}function d(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, 554"$2").replace(/(<\/?p>|<br \/>)(<cke:br \/>)/g,"$1").replace(/<(cke:)?br( \/)?>/g,"<br>").replace(/<p><\/p>/g,""),e=0,b=b.replace(/<\/?p>/g,function(a){if(a=="<p>"){if(++e>1)return"</p><p>"}else if(--e>0)return"</p><p>";return a}).replace(/<p><\/p>/g,"");return i(a,b)}function i(a,b){a.enterMode==CKEDITOR.ENTER_BR?b=b.replace(/(<\/p><p>)+/g,function(a){return CKEDITOR.tools.repeat("<br>",a.length/7*2)}).replace(/<\/?p>/g,""):a.enterMode==CKEDITOR.ENTER_DIV&&(b=b.replace(/<(\/)?p>/g,"<$1div>"));return b} 555CKEDITOR.plugins.add("clipboard",{requires:"dialog",init:function(g){var f;c(g);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js"));g.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"> <\/span>/gi," ");a.data.type!="html"&&(b=b.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(a,b){return b.replace(/\t/g," ")}));if(b.indexOf('<br class="Apple-interchange-newline">')> 556-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 d,e,f=new CKEDITOR.dom.element("div");for(f.setHtml(b);f.getChildCount()==1&&(d=f.getFirst())&&d.type==CKEDITOR.NODE_ELEMENT&&(d.hasClass("cke_editable")||d.hasClass("cke_contents"));)f=e=d;e&&(b=e.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?b=b.replace(/^ (?: |\r\n)?<(\w+)/g,function(b, 557d){if(d.toLowerCase()in c){a.data.preSniffing="html";return"<"+d}return b}):CKEDITOR.env.webkit?b=b.replace(/<\/(\w+)><div><br><\/div>$/,function(b,d){if(d in c){a.data.endsWithEOL=1;return"</"+d+">"}return b}):CKEDITOR.env.gecko&&(b=b.replace(/(\s)<br>$/,"$1"));a.data.dataValue=b},null,null,3);g.on("paste",function(c){var c=c.data,i=c.type,l=c.dataValue,m,n=g.config.clipboard_defaultContentType||"html";m=i=="html"||c.preSniffing=="html"?"html":e(l);m=="htmlifiedtext"?l=b(g.config,l):i=="text"&&m== 558"html"&&(l=d(g.config,l,f||(f=a(g))));c.startsWithEOL&&(l='<br data-cke-eol="1">'+l);c.endsWithEOL&&(l=l+'<br data-cke-eol="1">');i=="auto"&&(i=m=="html"||n=="html"?"html":"text");c.type=i;c.dataValue=l;delete c.preSniffing;delete c.startsWithEOL;delete c.endsWithEOL},null,null,6);g.on("paste",function(a){a=a.data;g.insertHtml(a.dataValue,a.type);setTimeout(function(){g.fire("afterPaste")},0)},null,null,1E3);g.on("pasteDialog",function(a){setTimeout(function(){g.openDialog("paste",a.data)},0)})}})}(), 559function(){var c='<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}" aria-disabled="{ariaDisabled}"';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;"'); 560var c=c+(' 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}"'),c=c+'> </span><span id="{id}_label" class="cke_button_label cke_button__{name}_label" aria-hidden="false">{label}</span>{arrowHtml}</a>', 561e=CKEDITOR.addTemplate("buttonArrow",'<span class="cke_button_arrow">'+(CKEDITOR.env.hc?"▼":"")+"</span>"),b=CKEDITOR.addTemplate("button",c);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)}}; 562CKEDITOR.ui.button.prototype={render:function(a,c){var i=CKEDITOR.env,g=this._.id=CKEDITOR.tools.getNextId(),f="",h=this.command,k;this._.editor=a;var l={id:g,button:this,editor:a,focus:function(){CKEDITOR.document.getById(g).focus()},execute:function(){this.button.click(a)},attach:function(a){this.button.attach(a)}}
562,m=CKEDITOR.tools.addFunction(function(a){if(l.onkey){a=new CKEDITOR.dom.event(a);return l.onkey(l,a.getKeystroke())!==false}}),n=CKEDITOR.tools.addFunction(function(a){var b;l.onfocus&& 563(b=l.onfocus(l,new CKEDITOR.dom.event(a))!==false);CKEDITOR.env.gecko&&CKEDITOR.env.version<10900&&a.preventBubble();return b}),s=0,j=CKEDITOR.tools.addFunction(function(){if(CKEDITOR.env.opera){var b=a.editable();if(b.isInline()&&b.hasFocus){a.lockSelection();s=1}}});l.clickFn=k=CKEDITOR.tools.addFunction(function(){if(s){a.unlockSelection(1);s=0}l.execute()});if(this.modes){var o={},t=function(){var b=a.mode;if(b){b=this.modes[b]?o[b]!=void 0?o[b]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED; 564b=a.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:b;this.setState(b);this.refresh&&this.refresh()}};a.on("beforeModeUnload",function(){if(a.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED)o[a.mode]=this._.state},this);a.on("activeFilterChange",t,this);a.on("mode",t,this);!this.readOnly&&a.on("readOnly",t,this)}else if(h)if(h=a.getCommand(h)){h.on("state",function(){this.setState(h.state)},this);f=f+(h.state==CKEDITOR.TRISTATE_ON?"on":h.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off")}if(this.directional)a.on("contentDirChanged", 565function(b){var c=CKEDITOR.document.getById(this._.id),d=c.getFirst(),b=b.data;b!=a.lang.dir?c.addClass("cke_"+b):c.removeClass("cke_ltr").removeClass("cke_rtl");d.setAttribute("style",CKEDITOR.skin.getIconStyle(C,b=="rtl",this.icon,this.iconOffset))},this);h||(f=f+"off");var C=t=this.name||this.command;if(this.icon&&!/\./.test(this.icon)){C=this.icon;this.icon=null}i={id:g,name:t,iconName:C,label:this.label,cls:this.className||"",state:f,ariaDisabled:f=="disabled"?"true":"false",title:this.title, 566titleJs:i.gecko&&i.version>=10900&&!i.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:m,mousedownFn:j,focusFn:n,clickFn:k,style:CKEDITOR.skin.getIconStyle(C,a.lang.dir=="rtl",this.icon,this.iconOffset),arrowHtml:this.hasArrow?e.output():""};b.output(i,c);if(this.onRender)this.onRender();return l},setState:function(a){if(this._.state==a)return false;this._.state=a;var b=CKEDITOR.document.getById(this._.id);if(b){b.setState(a,"cke_button");a==CKEDITOR.TRISTATE_DISABLED? 567b.setAttribute("aria-disabled",true):b.removeAttribute("aria-disabled");if(this.hasArrow){a=a==CKEDITOR.TRISTATE_ON?this._.editor.lang.button.selectedLabel.replace(/%1/g,this.label):this.label;CKEDITOR.document.getById(this._.id+"_label").setText(a)}else a==CKEDITOR.TRISTATE_ON?b.setAttribute("aria-pressed",true):b.removeAttribute("aria-pressed");return true}return false},getState:function(){return this._.state},toFeature:function(a){if(this._.feature)return this._.feature;var b=this;!this.allowedContent&& 568(!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 c(c){var b=this._;if(b.state!=CKEDITOR.TRISTATE_DISABLED){this.createPanel(c);b.on?b.panel.hide():b.panel.showBlock(this._.id,this.document.getById(this._.id),4)}}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button, 569$:function(e){var b=e.panel||{};delete e.panel;this.base(e);this.document=b.parent&&b.parent.getDocument()||CKEDITOR.document;b.block={attributes:b.attributes};this.hasArrow=b.toolbarRelated=true;this.click=c;this._={panelDefinition:b}},statics:{handler:{create:function(c){return new CKEDITOR.ui.panelButton(c)}}},proto:{createPanel:function(c){var b=this._;if(!b.panel){var a=this._.panelDefinition,d=this._.panelDefinition.block,i=a.parent||CKEDITOR.document.getBody(),g=this._.panel=new CKEDITOR.ui.floatPanel(c, 570i,a),a=g.addBlock(b.id,d),f=this;g.onShow=function(){f.className&&this.element.addClass(f.className+"_panel");f.setState(CKEDITOR.TRISTATE_ON);b.on=1;f.editorFocus&&c.focus();if(f.onOpen)f.onOpen()};g.onHide=function(a){f.className&&this.element.getFirst().removeClass(f.className+"_panel");f.setState(f.modes&&f.modes[c.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);b.on=0;if(!a&&f.onClose)f.onClose()};g.onEscape=function(){g.hide(1);f.document.getById(b.id).focus()};if(this.onBlock)this.onBlock(g, 571a);a.onHide=function(){b.on=0;f.setState(CKEDITOR.TRISTATE_OFF)}}}}})},beforeInit:function(c){c.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(); 572this.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 c=CKEDITOR.addTemplate("panel",'<div lang="{langCode}" id="{id}" dir={dir} class="cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style="z-index:{z-index}" role="presentation">{frame}</div>'),e=CKEDITOR.addTemplate("panel-frame",'<iframe id="{id}" class="cke_panel_frame" role="presentation" frameborder="0" src="{src}"></iframe>'), 573b=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(a,d){this.getHolderElement=function(){var a=this._.holder;if(!a){if(this.isFramed){var a=this.document.getById(this.id+"_frame"),c=a.getParent(),a=a.getFrameDocument();CKEDITOR.env.iOS&&c.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"}); 574c=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=true;if(this.onLoad)this.onLoad()},this));a.write(b.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+c+");"},i)));a.getWindow().$.CKEDITOR=CKEDITOR;a.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(): 575(b==27||b==(c=="rtl"?39:37))&&this.onEscape&&this.onEscape(b)===false&&a.data.preventDefault()},this);a=a.getBody();a.unselectable();CKEDITOR.env.air&&CKEDITOR.tools.callFunction(c)}else a=this.document.getById(this.id);this._.holder=a}return a};var i={editorId:a.id,id:this.id,langCode:a.langCode,dir:a.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":a.config.baseFloatZIndex+1};if(this.isFramed){var g=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+ 576encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";i.frame=e.output({id:this.id+"_frame",src:g})}g=c.output(i);d&&d.push(g);return g},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,c=!this.forceIFrame|| 577CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");b&&b.hide();this._.currentBlock=a;CKEDITOR.fire("ariaWidget",c);a._.focusIndex=-1;this._.onKeyDown=a.onKeyDown&&CKEDITOR.tools.bind(a.onKeyDown,a);a.show();return a},destroy:function(){this.element&&this.element.remove()}};CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(a,b){this.element=a.append(a.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));b&& 578CKEDITOR.tools.extend(this,b);this.element.setAttributes({role:this.attributes.role||"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]});this.keys={};this._.focusIndex=-1;this.element.disableContextMenu()}
578,_:{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", 579"")},hide:function(){(!this.onHide||this.onHide.call(this)!==true)&&this.element.setStyle("display","none")},onKeyDown:function(a,b){var c=this.keys[a];switch(c){case "next":for(var e=this._.focusIndex,c=this.element.getElementsByTag("a"),f;f=c.getItem(++e);)if(f.getAttribute("_cke_focus")&&f.$.offsetWidth){this._.focusIndex=e;f.focus();break}if(!f&&!b){this._.focusIndex=-1;return this.onKeyDown(a,1)}return false;case "prev":e=this._.focusIndex;for(c=this.element.getElementsByTag("a");e>0&&(f=c.getItem(--e));){if(f.getAttribute("_cke_focus")&& 580f.$.offsetWidth){this._.focusIndex=e;f.focus();break}f=null}if(!f&&!b){this._.focusIndex=c.count();return this.onKeyDown(a,1)}return false;case "click":case "mouseup":e=this._.focusIndex;(f=e>=0&&this.element.getElementsByTag("a").getItem(e))&&(f.$[c]?f.$[c]():f.$["on"+c]());return false}return true}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function c(b,a,c,i,g){var g=CKEDITOR.tools.genKey(a.getUniqueId(),c.getUniqueId(),b.lang.dir,b.uiColor||"",i.css||"",g||""),f=e[g]; 581if(!f){f=e[g]=new CKEDITOR.ui.panel(a,i);f.element=c.append(CKEDITOR.dom.element.createFromHtml(f.render(b),a));f.element.setStyles({display:"none",position:"absolute"})}return f}var e={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(b,a,d,e){function g(){l.hide()}d.forceIFrame=1;d.toolbarRelated&&b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(a=CKEDITOR.document.getById("cke_"+b.name));var f=a.getDocument(),e=c(b,f,a,d,e||0),h=e.element,k=h.getFirst(),l=this;h.disableContextMenu(); 582this.element=h;this._={editor:b,panel:e,parentElement:a,definition:d,document:f,iframe:k,children:[],dir:b.lang.dir};b.on("mode",g);b.on("resize",g);f.getWindow().on("resize",g)},proto:{addBlock:function(b,a){return this._.panel.addBlock(b,a)},addListBlock:function(b,a){return this._.panel.addListBlock(b,a)},getBlock:function(b){return this._.panel.getBlock(b)},showBlock:function(b,a,c,e,g,f){var h=this._.panel,k=h.showBlock(b);this.allowBlur(false);b=this._.editor.editable();this._.returnFocus=b.hasFocus? 583b:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);var l=this.element,b=this._.iframe,b=CKEDITOR.env.ie?b:new CKEDITOR.dom.window(b.$.contentWindow),m=l.getDocument(),n=this._.parentElement.getPositionedAncestor(),s=a.getDocumentPosition(m),m=n?n.getDocumentPosition(m):{x:0,y:0},j=this._.dir=="rtl",o=s.x+(e||0)-m.x,t=s.y+(g||0)-m.y;if(j&&(c==1||c==4))o=o+a.$.offsetWidth;else if(!j&&(c==2||c==3))o=o+(a.$.offsetWidth-1);if(c==3||c==4)t=t+(a.$.offsetHeight-1);this._.panel._.offsetParentId= 584a.getId();l.setStyles({top:t+"px",left:0,display:""});l.setOpacity(0);l.getFirst().removeStyle("width");this._.editor.focusManager.add(b);if(!this._.blurSet){CKEDITOR.event.useCapture=true;b.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);b.on("focus",function(){this._.focused=true;this.hideChild();this.allowBlur(true)},this);CKEDITOR.event.useCapture=false;this._.blurSet= 5851}h.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(){l.removeStyle("width");if(k.autoSize){var a=k.element.getDocument(),a=(CKEDITOR.env.webkit?k.element:a.getBody()).$.scrollWidth;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+((l.$.offsetWidth||0)-(l.$.clientWidth||0)+3));l.setStyle("width",a+10+"px");a=k.element.$.scrollHeight;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&& 586a>0)&&(a=a+((l.$.offsetHeight||0)-(l.$.clientHeight||0)+3));l.setStyle("height",a+"px");h._.currentBlock.element.setStyle("display","none").removeStyle("display")}else l.removeStyle("height");j&&(o=o-l.$.offsetWidth);l.setStyle("left",o+"px");var b=h.element.getWindow(),a=l.$.getBoundingClientRect(),b=b.getViewPaneSize(),c=a.width||a.right-a.left,d=a.height||a.bottom-a.top,e=j?a.right:b.width-a.left,g=j?b.width-a.right:a.left;j?e<c&&(o=g>c?o+c:b.width>
586c?o-a.left:o-a.right+b.width):e<c&&(o=g>c?o-c: 587b.width>c?o-a.right+b.width:o-a.left);c=a.top;b.height-a.top<d&&(t=c>d?t-d:b.height>d?t-a.bottom+b.height:t-a.top);if(CKEDITOR.env.ie){b=a=new CKEDITOR.dom.element(l.$.offsetParent);b.getName()=="html"&&(b=b.getDocument().getBody());b.getComputedStyle("direction")=="rtl"&&(o=CKEDITOR.env.ie8Compat?o-l.getDocument().getDocumentElement().$.scrollLeft*2:o-(a.$.scrollWidth-a.$.clientWidth))}var a=l.getFirst(),i;(i=a.getCustomData("activePanel"))&&i.onHide&&i.onHide.call(this,1);a.setCustomData("activePanel", 588this);l.setStyles({top:t+"px",left:o+"px"});l.setOpacity(1);f&&f()},this);h.isLoaded?a():h.onLoad=a;CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus();k.element.focus();if(CKEDITOR.env.webkit)CKEDITOR.document.getBody().$.scrollTop=a;this.allowBlur(true);this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:0,this);this.visible=1;this.onShow&&this.onShow.call(this)},focus:function(){if(CKEDITOR.env.webkit){var b= 589CKEDITOR.document.getActive();!b.equals(this._.iframe)&&b.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var b=this._.iframe.getFrameDocument().getActive();b.is("a")&&(this._.lastFocused=b)},hide:function(b){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"); 590if(b=b&&this._.returnFocus){CKEDITOR.env.webkit&&b.type&&b.getWindow().$.focus();b.focus()}delete this._.lastFocused;this._.editor.fire("panelHide",this)}},allowBlur:function(b){var a=this._.panel;if(b!=void 0)a.allowBlur=b;return a.allowBlur},showAsChild:function(b,a,c,e,g,f){if(!(this._.activeChild==b&&b._.panel._.offsetParentId==c.getId())){this.hideChild();b.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this);this._.activeChild= 591b;this._.focused=false;b.showBlock(a,c,e,g,f);this.blur();(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){b.element.getChild(0).$.style.cssText+=""},100)}},hideChild:function(b){var a=this._.activeChild;if(a){delete a.onHide;delete this._.activeChild;a.hide();b&&this.focus()}}}});CKEDITOR.on("instanceDestroyed",function(){var b=CKEDITOR.tools.isEmpty(CKEDITOR.instances),a;for(a in e){var c=e[a];b?c.destroy():c.element.hide()}b&&(e={})})}(),CKEDITOR.plugins.add("colorbutton", 592{requires:"panelbutton,floatpanel",init:function(c){function e(a,e,h,k){var l=new CKEDITOR.style(d["colorButton_"+e+"Style"]),m=CKEDITOR.tools.getNextId()+"_colorBox";c.ui.add(a,CKEDITOR.UI_PANELBUTTON,{label:h,title:h,modes:{wysiwyg:1},editorFocus:0,toolbar:"colors,"+k,allowedContent:l,requiredContent:l,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":i.panelTitle}},onBlock:function(a,d){d.autoSize=true;d.element.addClass("cke_colorblock");d.element.setHtml(b(a, 593e,m));d.element.getDocument().getBody().setStyle("overflow","hidden");CKEDITOR.ui.fire("ready",this);var g=d.keys,h=c.lang.dir=="rtl";g[h?37:39]="next";g[40]="next";g[9]="next";g[h?39:37]="prev";g[38]="prev";
593g[CKEDITOR.SHIFT+9]="prev";g[32]="click"},refresh:function(){c.activeFilter.check(l)||this.setState(CKEDITOR.TRISTATE_DISABLED)},onOpen:function(){var a=c.getSelection(),a=a&&a.getStartElement(),a=c.elementPath(a),b;if(a){a=a.block||a.blockLimit||c.document.getBody();do b=a&&a.getComputedStyle(e== 594"back"?"background-color":"color")||"transparent";while(e=="back"&&b=="transparent"&&a&&(a=a.getParent()));if(!b||b=="transparent")b="#ffffff";this._.panel._.iframe.getFrameDocument().getById(m).setStyle("background-color",b);return b}}})}function b(b,e,h){var k=[],l=d.colorButton_colors.split(","),m=CKEDITOR.tools.addFunction(function(e,f){if(e=="?"){var h=arguments.callee,j=function(a){this.removeListener("ok",j);this.removeListener("cancel",j);a.name=="ok"&&h(this.getContentElement("picker","selectedColor").getValue(), 595f)};c.openDialog("colordialog",function(){this.on("ok",j);this.on("cancel",j)})}else{c.focus();b.hide();c.fire("saveSnapshot");c.removeStyle(new CKEDITOR.style(d["colorButton_"+f+"Style"],{color:"inherit"}));if(e){var i=d["colorButton_"+f+"Style"];i.childRule=f=="back"?function(b){return a(b)}:function(b){return!(b.is("a")||b.getElementsByTag("a").count())||a(b)};c.applyStyle(new CKEDITOR.style(i,{color:e}))}c.fire("saveSnapshot")}});k.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="', 596i.auto,'" onclick="CKEDITOR.tools.callFunction(',m,",null,'",e,"');return false;\" href=\"javascript:void('",i.auto,'\')" role="option"><table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tr><td><span class="cke_colorbox" id="',h,'"></span></td><td colspan=7 align=center>',i.auto,'</td></tr></table></a><table role="presentation" cellspacing=0 cellpadding=0 width="100%">');for(h=0;h<l.length;h++){h%8===0&&k.push("</tr><tr>");var n=l[h].split("/"),s=n[0],j=n[1]||s;n[1]||(s="#"+s.replace(/^(.)(.)(.)$/, 597"$1$1$2$2$3$3"));n=c.lang.colorbutton.colors[j]||j;k.push('<td><a class="cke_colorbox" _cke_focus=1 hidefocus=true title="',n,'" onclick="CKEDITOR.tools.callFunction(',m,",'",s,"','",e,"'); return false;\" href=\"javascript:void('",n,'\')" role="option"><span class="cke_colorbox" style="background-color:#',j,'"></span></a></td>')}(c.plugins.colordialog&&d.colorButton_enableMore===void 0||d.colorButton_enableMore)&&k.push('</tr><tr><td colspan=8 align=center><a class="cke_colormore" _cke_focus=1 hidefocus=true title="', 598i.more,'" onclick="CKEDITOR.tools.callFunction(',m,",'?','",e,"');return false;\" href=\"javascript:void('",i.more,"')\"",' role="option">',i.more,"</a></td>");k.push("</tr></table>");return k.join("")}function a(a){return a.getAttribute("contentEditable")=="false"||a.getAttribute("data-nostyle")}var d=c.config,i=c.lang.colorbutton;if(!CKEDITOR.env.hc){e("TextColor","fore",i.textColorTitle,10);e("BGColor","back",i.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", 599CKEDITOR.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.add("divarea",{afterInit:function(c){c.addMode("wysiwyg",function(e){var b=CKEDITOR.dom.element.createFromHtml('<div class="cke_wysiwyg_div cke_reset" hidefocus="true"></div>');c.ui.space("contents").append(b);b=c.editable(b);b.detach=CKEDITOR.tools.override(b.detach, 600function(a){return function(){a.apply(this,arguments);this.remove()}});c.setData(c.getData(1),e);c.fire("contentDom")})}}),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var c=CKEDITOR.addTemplate("panel-list",'<ul role="presentation" class="cke_panel_list">{items}</ul>'),e=CKEDITOR.addTemplate("panel-list-item",'<li id="{id}" class="cke_panel_listItem" role=presentation><a id="{id}_option" _cke_focus=1 hidefocus=true title="{title}" href="javascript:void(\'{val}\')" {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role="option">{text}</a></li>'), 601b=CKEDITOR.addTemplate("panel-list-group",'<h1 id="{id}" class="cke_panel_grouptitle" role="presentation" >{label}</h1>'),a=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(a,b){return this.addBlock(a,new CKEDITOR.ui.listBlock(this.getHolderElement(),b))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(a,b){var b=b||{},c=b.attributes||(b.attributes={});(this.multiSelect=!!b.multiSelect)&&(c["aria-multiselectable"]=true);!c.role&&(c.role="listbox"); 602this.base.apply(this,arguments);this.element.setAttribute("role",c.role);c=this.keys;c[40]="next";c[9]="next";c[38]="prev";
602c[CKEDITOR.SHIFT+9]="prev";c[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(c[13]="mouseup");this._.pendingHtml=[];this._.pendingList=[];this._.items={};this._.groups={}},_:{close:function(){if(this._.started){var a=c.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(a);delete this._.started}},getClick:function(){if(!this._.click)this._.click= 603CKEDITOR.tools.addFunction(function(a){var b=this.toggle(a);if(this.onClick)this.onClick(a,b)},this);return this._.click}},proto:{add:function(b,c,g){var f=CKEDITOR.tools.getNextId();if(!this._.started){this._.started=1;this._.size=this._.size||0}this._.items[b]=f;var h;h=CKEDITOR.tools.htmlEncodeAttr(b).replace(a,"\\'");b={id:f,val:h,onclick:CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(g||b),text:c||b};this._.pendingList.push(e.output(b))}, 604startGroup:function(a){this._.close();var c=CKEDITOR.tools.getNextId();this._.groups[a]=c;this._.pendingHtml.push(b.output({id:c,label:a}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(a){var b=this.isMarked(a);b?this.unmark(a):this.mark(a);return!b},hideGroup:function(a){var b=(a=this.element.getDocument().getById(this._.groups[a]))&&a.getNext();if(a){a.setStyle("display","none");b&&b.getName()=="ul"&& 605b.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,c=this.element.getDocument(),e;for(e in a)c.getById(a[e]).setStyle("display","");for(var h in b){a=c.getById(b[h]);e=a.getNext();a.setStyle("display","");e&&e.getName()=="ul"&&e.setStyle("display","")}},mark:function(a){this.multiSelect||this.unmarkAll();var a=this._.items[a],b=this.element.getDocument().getById(a); 606b.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],c=b.getById(a);c.removeClass("cke_selected");b.getById(a+"_option").removeAttribute("aria-selected");this.onUnmark&&this.onUnmark(c)},unmarkAll:function(){var a=this._.items,b=this.element.getDocument(),c;for(c in a){var e=a[c];b.getById(e).removeClass("cke_selected");b.getById(e+"_option").removeAttribute("aria-selected")}this.onUnmark&& 607this.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"),c,e=-1;if(a)for(c=this.element.getDocument().getById(this._.items[a]).getFirst();a=b.getItem(++e);){if(a.equals(c)){this._.focusIndex=e;break}}else this.element.focus();c&&setTimeout(function(){c.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(c){c.ui.addHandler(CKEDITOR.UI_RICHCOMBO, 608CKEDITOR.ui.richCombo.handler)}}),function(){var c='<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&& 609CKEDITOR.env.mac)c=c+' onkeypress="return false;"';CKEDITOR.env.gecko&&(c=c+' onblur="this.style.cssText = this.style.cssText;"');var c=c+(' 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">'+ 610(CKEDITOR.env.hc?"▼":CKEDITOR.env.air?" ":"")+"</span></span></a></span>"),e=CKEDITOR.addTemplate("combo",c);CKEDITOR.UI_RICHCOMBO="richcombo";CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(b){CKEDITOR.tools.extend(this,b,{canGroup:false,title:b.label,modes:{wysiwyg:1},editorFocus:1});b=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=b.parent&&b.parent.getDocument()||CKEDITOR.document;
610b.className="cke_combopanel";b.block={multiSelect:b.multiSelect, 611attributes:b.attributes};b.toolbarRelated=true;this._={panelDefinition:b,items:{}}},proto:{renderHtml:function(b){var a=[];this.render(b,a);return a.join("")},render:function(b,a){function c(){var a=this.modes[b.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;if(b.readOnly&&!this.readOnly)a=CKEDITOR.TRISTATE_DISABLED;this.setState(a);this.setValue("");a!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}var i=CKEDITOR.env,g="cke_"+this.id,f=CKEDITOR.tools.addFunction(function(a){if(n){b.unlockSelection(1); 612n=0}k.execute(a)},this),h=this,k={id:g,combo:this,focus:function(){CKEDITOR.document.getById(g).getChild(1).focus()},execute:function(a){var c=h._;if(c.state!=CKEDITOR.TRISTATE_DISABLED){h.createPanel(b);if(c.on)c.panel.hide();else{h.commit();var d=h.getValue();d?c.list.mark(d):c.list.unmarkAll();c.panel.showBlock(h.id,new CKEDITOR.dom.element(a),4)}}},clickFn:f};b.on("activeFilterChange",c,this);b.on("mode",c,this);b.on("selectionChange",c,this);!this.readOnly&&b.on("readOnly",c,this);var l=CKEDITOR.tools.addFunction(function(a, 613c){var a=new CKEDITOR.dom.event(a),d=a.getKeystroke();if(d==40)b.once("panelShow",function(a){a.data._.panel._.currentBlock.onKeyDown(40)});switch(d){case 13:case 32:case 40:CKEDITOR.tools.callFunction(f,c);break;default:k.onkey(k,d)}a.preventDefault()}),m=CKEDITOR.tools.addFunction(function(){k.onfocus&&k.onfocus()}),n=0,s=CKEDITOR.tools.addFunction(function(){if(CKEDITOR.env.opera){var a=b.editable();if(a.isInline()&&a.hasFocus){b.lockSelection();n=1}}});k.keyDownFn=l;i={id:g,name:this.name||this.command, 614label:this.label,title:this.title,cls:this.className||"",titleJs:i.gecko&&i.version>=10900&&!i.hc?"":(this.title||"").replace("'",""),keydownFn:l,mousedownFn:s,focusFn:m,clickFn:f};e.output(i,a);if(this.onRender)this.onRender();return k},createPanel:function(b){if(!this._.panel){var a=this._.panelDefinition,c=this._.panelDefinition.block,e=a.parent||CKEDITOR.document.getBody(),g="cke_combopanel__"+this.name,f=new CKEDITOR.ui.floatPanel(b,e,a),h=f.addListBlock(this.id,c),k=this;f.onShow=function(){this.element.addClass(g); 615k.setState(CKEDITOR.TRISTATE_ON);k._.on=1;k.editorFocus&&!b.focusManager.hasFocus&&b.focus();if(k.onOpen)k.onOpen();b.once("panelShow",function(){h.focus(!h.multiSelect&&k.getValue())})};f.onHide=function(a){this.element.removeClass(g);k.setState(k.modes&&k.modes[b.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);k._.on=0;if(!a&&k.onClose)k.onClose()};f.onEscape=function(){f.hide(1)};h.onClick=function(a,b){k.onClick&&k.onClick.call(k,a,b);f.hide()};this._.panel=f;this._.list=h;f.getBlock(this.id).onHide= 616function(){k._.on=0;k.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(b,a){this._.value=b;var c=this.document.getById("cke_"+this.id+"_text");if(c){if(!b&&!a){a=this.label;c.addClass("cke_combo_inlinelabel")}else c.removeClass("cke_combo_inlinelabel");c.setText(typeof a!="undefined"?a:b)}},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(b){this._.list.mark(b)},hideItem:function(b){this._.list.hideItem(b)},hideGroup:function(b){this._.list.hideGroup(b)}, 617showAll:function(){this._.list.showAll()},add:function(b,a,c){this._.items[b]=c||b;this._.list.add(b,a,c)},startGroup:function(b){this._.list.startGroup(b)},commit:function(){if(!this._.committed){this._.list.commit();this._.committed=1;CKEDITOR.ui.fire("ready",this)}this._.committed=1},setState:function(b){if(this._.state!=b){var a=this.document.getById("cke_"+this.id);a.setState(b,"cke_combo");b==CKEDITOR.TRISTATE_DISABLED?a.setAttribute("aria-disabled",true):a.removeAttribute("aria-disabled"); 618this._.state=b}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){if(this._.state!=CKEDITOR.TRISTATE_DISABLED){this._.lastState=this._.state;this.setState(CKEDITOR.TRISTATE_DISABLED)}}},statics:{handler:{create:function(b){return new CKEDITOR.ui.richCombo(b)}}}});CKEDITOR.ui.prototype.addRichCombo=function(b,a){this.add(b,CKEDITOR.UI_RICHCOMBO,a)}}(),function(){function c(c,b,a,d,i,g,f,h){for(var k=
619c.config,l=new CKEDITOR.style(f),m=i.split(";"),i=[],n={},s=0;s<m.length;s++){var j=m[s];if(j){var j=j.split("/"),o={},t=m[s]=j[0];o[a]=i[s]=j[1]||t;n[t]=new CKEDITOR.style(f,o);n[t]._.definition.name=t}else m.splice(s--,1)}c.ui.addRichCombo(b,{label:d.label,title:d.panelTitle,toolbar:"styles,"+h,allowedContent:l,requiredContent:l,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(k.contentsCss),multiSelect:false,attributes:{"aria-label":d.panelTitle}},init:function(){this.startGroup(d.panelTitle); 620for(var a=0;a<m.length;a++){var b=m[a];this.add(b,n[b].buildPreview(),b)}},onClick:function(a){c.focus();c.fire("saveSnapshot");var b=n[a];c[this.getValue()==a?"removeStyle":"applyStyle"](b);c.fire("saveSnapshot")},onRender:function(){c.on("selectionChange",function(a){for(var b=this.getValue(),a=a.data.path.elements,c=0,d;c<a.length;c++){d=a[c];for(var e in n)if(n[e].checkElementMatch(d,true)){e!=b&&this.setValue(e);return}}this.setValue("",g)},this)},refresh:function(){c.activeFilter.check(l)|| 621this.setState(CKEDITOR.TRISTATE_DISABLED)}})}CKEDITOR.plugins.add("font",{requires:"richcombo",init:function(e){var b=e.config;c(e,"Font","family",e.lang.font,b.font_names,b.font_defaultLabel,b.font_style,30);c(e,"FontSize","size",e.lang.font.fontSize,b.fontSize_sizes,b.fontSize_defaultLabel,b.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", 622CKEDITOR.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", 623{requires:"richcombo",init:function(c){if(!c.blockless){for(var e=c.config,b=c.lang.format,a=e.format_tags.split(";"),d={},i=0,g=[],f=0;f<a.length;f++){var h=a[f],k=new CKEDITOR.style(e["format_"+h]);if(!c.filter.customConfig||c.filter.check(k)){i++;d[h]=k;d[h]._.enterMode=c.config.enterMode;g.push(k)}}i!==0&&c.ui.addRichCombo("Format",{label:b.label,title:b.panelTitle,toolbar:"styles,20",allowedContent:g,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(e.contentsCss),multiSelect:false,attributes:{"aria-label":b.panelTitle}}, 624init:function(){this.startGroup(b.panelTitle);for(var a in d){var c=b["tag_"+a];this.add(a,d[a].buildPreview(c),c)}},onClick:function(a){c.focus();c.fire("saveSnapshot");var a=d[a],b=c.elementPath();c[a.checkActive(b)?"removeStyle":"applyStyle"](a);setTimeout(function(){c.fire("saveSnapshot")},0)},onRender:function(){c.on("selectionChange",function(a){var b=this.getValue(),a=a.data.path;this.refresh();for(var e in d)if(d[e].checkActive(a)){e!=b&&this.setValue(e,c.lang.format["tag_"+e]);return}this.setValue("")}, 625this)},onOpen:function(){this.showAll();for(var a in d)c.activeFilter.check(d[a])||this.hideItem(a)},refresh:function(){var a=c.elementPath();if(a){if(a.isContextFor("p"))for(var b in d)if(c.activeFilter.check(d[b]))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}}})}}}),CKEDITOR.config.format_tags="p;h1;h2;h3;h4;h5;h6;pre;address;div",CKEDITOR.config.format_p={element:"p"},CKEDITOR.config.format_div={element:"div"},CKEDITOR.config.format_pre={element:"pre"},CKEDITOR.config.format_address={element:"address"}, 626CKEDITOR.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"},function(){function c(a,b){var b=b===void 0||b,c;if(b)c=a.getComputedStyle("text-align");else{for(;!a.hasAttribute||!a.hasAttribute("align")&&!a.getStyle("text-align");){c=a.getParent();if(!c)break;a=c}c=a.getStyle("text-align")||a.getAttribute("align")|| 627""}c&&(c=c.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!c&&b&&(c=a.getComputedStyle("direction")=="rtl"?"right":"left");return c}function e(a,b,c){this.editor=a;this.name=b;this.value=c;this.context="p";var b=a.config.justifyClasses,e=a.config.enterMode==CKEDITOR.ENTER_P?"p":"div";
627if(b){switch(c){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+)(?:"+ 628b.join("|")+")(?=$|\\s)");this.requiredContent=e+"("+this.cssClassName+")"}else this.requiredContent=e+"{text-align}";this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:true,styles:this.cssClassName?null:"text-align",classes:this.cssClassName||null}};if(a.config.enterMode==CKEDITOR.ENTER_BR)this.allowedContent.div=true}function b(a){var b=a.editor,c=b.createRange();c.setStartBefore(a.data.node);c.setEndAfter(a.data.node);for(var e=new CKEDITOR.dom.walker(c),f;f=e.next();)if(f.type== 629CKEDITOR.NODE_ELEMENT)if(!f.equals(a.data.node)&&f.getDirection()){c.setStartAfter(f);e=new CKEDITOR.dom.walker(c)}else{var h=b.config.justifyClasses;if(h)if(f.hasClass(h[0])){f.removeClass(h[0]);f.addClass(h[2])}else if(f.hasClass(h[2])){f.removeClass(h[2]);f.addClass(h[0])}h=f.getStyle("text-align");h=="left"?f.setStyle("text-align","right"):h=="right"&&f.setStyle("text-align","left")}}e.prototype={exec:function(a){var b=a.getSelection(),e=a.config.enterMode;if(b){for(var g=b.createBookmarks(), 630f=b.getRanges(),h=this.cssClassName,k,l,m=a.config.useComputedState,m=m===void 0||m,n=f.length-1;n>=0;n--){k=f[n].createIterator();for(k.enlargeBr=e!=CKEDITOR.ENTER_BR;l=k.getNextParagraph(e==CKEDITOR.ENTER_P?"p":"div");)if(!l.isReadOnly()){l.removeAttribute("align");l.removeStyle("text-align");var s=h&&(l.$.className=CKEDITOR.tools.ltrim(l.$.className.replace(this.cssClassRegex,""))),j=this.state==CKEDITOR.TRISTATE_OFF&&(!m||c(l,true)!=this.value);h?j?l.addClass(h):s||l.removeAttribute("class"): 631j&&l.setStyle("text-align",this.value)}}a.focus();a.forceNextSelectionCheck();b.selectBookmarks(g)}},refresh:function(a,b){var e=b.block||b.blockLimit;this.setState(e.getName()!="body"&&c(e,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("justify",{init:function(a){if(!a.blockless){var c=new e(a,"justifyleft","left"),i=new e(a,"justifycenter","center"),g=new e(a,"justifyright","right"),f=new e(a,"justifyblock","justify");a.addCommand("justifyleft", 632c);a.addCommand("justifycenter",i);a.addCommand("justifyright",g);a.addCommand("justifyblock",f);if(a.ui.addButton){a.ui.addButton("JustifyLeft",{label:a.lang.justify.left,command:"justifyleft",toolbar:"align,10"});a.ui.addButton("JustifyCenter",{label:a.lang.justify.center,command:"justifycenter",toolbar:"align,20"});a.ui.addButton("JustifyRight",{label:a.lang.justify.right,command:"justifyright",toolbar:"align,30"});a.ui.addButton("JustifyBlock",{label:a.lang.justify.block,command:"justifyblock", 633toolbar:"align,40"})}a.on("dirChanged",b)}}})}(),function(){function c(b,c){var d=a.exec(b),e=a.exec(c);if(d){if(!d[2]&&e[2]=="px")return e[1];if(d[2]=="px"&&!e[2])return e[1]+"px"}return c}var e=CKEDITOR.htmlParser.cssStyle,b=CKEDITOR.tools.cssLength,a=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i,d={elements:{$:function(a){var b=a.attributes;if((b=(b=(b=b&&b["data-cke-realelement"])&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(b)))&&b.children[0])&&a.attributes["data-cke-resizable"]){var d= 634(new e(a)).rules,a=b.attributes,i=d.width,d=d.height;i&&(a.width=c(a.width,i));d&&(a.height=c(a.height,d))}return b}}},i=CKEDITOR.plugins.add("fakeobjects",{init:function(a){a.filter.allow("img[!data-cke-realelement,src,alt,title](*){*}","fakeobjects")},afterInit:function(a){(a=(a=a.dataProcessor)&&a.htmlFilter)&&a.addRules(d)}});CKEDITOR.editor.prototype.createFakeElement=function(a,c,d,k){var l=this.lang.fakeobjects,l=l[d]||l.unknown,c={"class":c,"data-cke-realelement":encodeURIComponent(a.getOuterHtml()), 635"data-cke-real-node-type":a.type,alt:l,title:l,align:a.getAttribute("align")||""};if(!CKEDITOR.env.hc)c.src=CKEDITOR.getUrl(i.path+"images/spacer.gif");d&&(c["data-cke-real-element-type"]=d);if(k){c["data-cke-resizable"]=k;d=new e;k=a.getAttribute("width");a=a.getAttribute("height");k&&(d.rules.width=b(k));a&&(d.rules.height=b(a));d.populate(c)}return this.document.createElement("img",{attributes:c})};CKEDITOR.editor.prototype.createFakeParserElement=function(a,c,d,k){var l=this.lang.fakeobjects, 636l=l[d]||l.unknown,m;m=new CKEDITOR.htmlParser.basicWriter;a.writeHtml(m);m=m.getHtml();c={"class":c,"data-cke-realelement":encodeURIComponent(m),"data-cke-real-node-type":a.type,alt:l,title:l,align:a.attributes.align||""};if(!CKEDITOR.env.hc)c.src=CKEDITOR.getUrl(i.path+"images/spacer.gif");d&&(c["data-cke-real-element-type"]=d);if(k){c["data-cke-resizable"]=k;k=a.attributes;a=new e;d=k.width;k=k.height;d!=void 0&&(a.rules.width=b(d));k!=void 0&&(a.rules.height=b(k));a.populate(c)}return new CKEDITOR.htmlParser.element("img", 637c)};
637CKEDITOR.editor.prototype.restoreRealElement=function(a){if(a.data("cke-real-node-type")!=CKEDITOR.NODE_ELEMENT)return null;var b=CKEDITOR.dom.element.createFromHtml(decodeURIComponent(a.data("cke-realelement")),this.document);if(a.data("cke-resizable")){var d=a.getStyle("width"),a=a.getStyle("height");d&&b.setAttribute("width",c(b.getAttribute("width"),d));a&&b.setAttribute("height",c(b.getAttribute("height"),a))}return b}}(),CKEDITOR.plugins.add("link",{requires:"dialog,fakeobjects",onLoad:function(){function c(a){return b.replace(/%1/g, 638a=="rtl"?"right":"left").replace(/%2/g,"cke_contents_"+a)}var e="background:url("+CKEDITOR.getUrl(this.path+"images"+(CKEDITOR.env.hidpi?"/hidpi":"")+"/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;background-size:16px;",b=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+e+"padding-%1:18px;cursor:auto;}"+(CKEDITOR.plugins.link.synAnchorSelector?"a.cke_anchor_empty{display:inline-block;"+(CKEDITOR.env.ie&&CKEDITOR.env.version> 63910?"min-height:16px;vertical-align:middle":"")+"}":"")+".%2 img.cke_anchor{"+e+"width:16px;min-height:15px;height:1.15em;vertical-align:"+(CKEDITOR.env.opera?"middle":"text-bottom")+";}";CKEDITOR.addCss(c("ltr")+c("rtl"))},init:function(c){var e="a[!href]";CKEDITOR.dialog.isTabEnabled(c,"link","advanced")&&(e=e.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type]{*}(*)"));CKEDITOR.dialog.isTabEnabled(c,"link","target")&&(e=e.replace("]",",target,onclick]"));c.addCommand("link", 640new CKEDITOR.dialogCommand("link",{allowedContent:e,requiredContent:"a[href]"}));c.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",{allowedContent:"a[!name,id]",requiredContent:"a[name]"}));c.addCommand("unlink",new CKEDITOR.unlinkCommand);c.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand);c.setKeystroke(CKEDITOR.CTRL+76,"link");if(c.ui.addButton){c.ui.addButton("Link",{label:c.lang.link.toolbar,command:"link",toolbar:"links,10"});c.ui.addButton("Unlink",{label:c.lang.link.unlink, 641command:"unlink",toolbar:"links,20"});c.ui.addButton("Anchor",{label:c.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");c.on("doubleclick",function(b){var a=CKEDITOR.plugins.link.getSelectedLink(c)||b.data.element;if(!a.isReadOnly())if(a.is("a")){b.data.dialog=a.getAttribute("name")&&(!a.getAttribute("href")||!a.getChildCount())?"anchor":"link";c.getSelection().selectElement(a)}else if(CKEDITOR.plugins.link.tryRestoreFakeAnchor(c, 642a))b.data.dialog="anchor"});c.addMenuItems&&c.addMenuItems({anchor:{label:c.lang.link.anchor.menu,command:"anchor",group:"anchor",order:1},removeAnchor:{label:c.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:c.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:c.lang.link.unlink,command:"unlink",group:"link",order:5}});c.contextMenu&&c.contextMenu.addListener(function(b){if(!b||b.isReadOnly())return null;b=CKEDITOR.plugins.link.tryRestoreFakeAnchor(c, 643b);if(!b&&!(b=CKEDITOR.plugins.link.getSelectedLink(c)))return null;var a={};b.getAttribute("href")&&b.getChildCount()&&(a={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF});if(b&&b.hasAttribute("name"))a.anchor=a.removeAnchor=CKEDITOR.TRISTATE_OFF;return a})},afterInit:function(c){var e=c.dataProcessor,b=e&&e.dataFilter,e=e&&e.htmlFilter,a=c._.elementsPath&&c._.elementsPath.filters;b&&b.addRules({elements:{a:function(a){var b=a.attributes;if(!b.name)return null;var e=!a.children.length;if(CKEDITOR.plugins.link.synAnchorSelector){var a= 644e?"cke_anchor_empty":"cke_anchor",f=b["class"];if(b.name&&(!f||f.indexOf(a)<0))b["class"]=(f||"")+" "+a;if(e&&CKEDITOR.plugins.link.emptyAnchorFix){b.contenteditable="false";b["data-cke-editable"]=1}}else if(CKEDITOR.plugins.link.fakeAnchor&&e)return c.createFakeParserElement(a,"cke_anchor","anchor");return null}}});CKEDITOR.plugins.link.emptyAnchorFix&&e&&e.addRules({elements:{a:function(a){delete a.attributes.contenteditable}}});a&&a.push(function(a,b){if(b=="a"&&(CKEDITOR.plugins.link.tryRestoreFakeAnchor(c, 645a)||a.getAttribute("name")&&(!a.getAttribute("href")||!a.getChildCount())))return"anchor"})}}),CKEDITOR.plugins.link={getSelectedLink:function(c){var e=c.getSelection(),b=e.getSelectedElement();if(b&&b.is("a"))return b;if(e=e.getRanges()[0]){e.shrink(CKEDITOR.SHRINK_TEXT);return c.elementPath(e.getCommonAncestor()).contains("a",1)}return null},getEditorAnchors:function(c){for(var e=c.editable(),b=e.isInline()&&!c.plugins.divarea?c.document:e,a=b.getElementsByTag("a"),e=[],d=0,i;i=a.getItem(d++);)if(i.data("cke-saved-name")|| 646i.hasAttribute("name"))e.push({name:i.data("cke-saved-name")||i.getAttribute("name"),id:i.getAttribute("id")});if(this.fakeAnchor){b=b.getElementsByTag("img");for(d=0;i=b.getItem(d++);)(i=this.tryRestoreFakeAnchor(c,i))&&e.push({name:i.getAttribute("name"),id:i.getAttribute("id")})}return e},fakeAnchor:CKEDITOR.env.opera||CKEDITOR.env.webkit,synAnchorSelector:CKEDITOR.env.ie,emptyAnchorFix:CKEDITOR.env.ie&&8>CKEDITOR.env.version,tryRestoreFakeAnchor:function(c,e){if(e&&e.data("cke-real-element-type")&& 647e.data("cke-real-element-type")=="anchor"){var b=c.restoreRealElement(e);
647if(b.data("cke-saved-name"))return b}}},CKEDITOR.unlinkCommand=function(){},CKEDITOR.unlinkCommand.prototype={exec:function(c){var e=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1});c.removeStyle(e)},refresh:function(c,e){var b=e.lastElement&&e.lastElement.getAscendant("a",true);b&&b.getName()=="a"&&b.getAttribute("href")&&b.getChildCount()?this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)}, 648contextSensitive:1,startDisabled:1,requiredContent:"a[href]"},CKEDITOR.removeAnchorCommand=function(){},CKEDITOR.removeAnchorCommand.prototype={exec:function(c){var e=c.getSelection(),b=e.createBookmarks(),a;if(e&&(a=e.getSelectedElement())&&(CKEDITOR.plugins.link.fakeAnchor&&!a.getChildCount()?CKEDITOR.plugins.link.tryRestoreFakeAnchor(c,a):a.is("a")))a.remove(1);else if(a=CKEDITOR.plugins.link.getSelectedLink(c))if(a.hasAttribute("href")){a.removeAttributes({name:1,"data-cke-saved-name":1});a.removeClass("cke_anchor")}else a.remove(1); 649e.selectBookmarks(b)},requiredContent:"a[name]"},CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:!0,linkShowTargetTab:!0}),function(){function c(a,c){var i,g;c.on("refresh",function(a){var c=[e],d;for(d in a.data.states)c.push(a.data.states[d]);this.setState(CKEDITOR.tools.search(c,b)?b:e)},c,null,100);c.on("exec",function(b){i=a.getSelection();g=i.createBookmarks(1);if(!b.data)b.data={};b.data.done=false},c,null,0);c.on("exec",function(){a.forceNextSelectionCheck();i.selectBookmarks(g)}, 650c,null,100)}var e=CKEDITOR.TRISTATE_DISABLED,b=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(a){var b=CKEDITOR.plugins.indent.genericDefinition;c(a,a.addCommand("indent",new b(true)));c(a,a.addCommand("outdent",new b));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 c= 651a.createRange(),d=b.data.node;c.setStartBefore(d);c.setEndAfter(d);for(var e=new CKEDITOR.dom.walker(c),k;k=e.next();)if(k.type==CKEDITOR.NODE_ELEMENT)if(!k.equals(d)&&k.getDirection()){c.setStartAfter(k);e=new CKEDITOR.dom.walker(c)}else{var l=a.config.indentClasses;if(l)for(var m=b.data.dir=="ltr"?["_rtl",""]:["","_rtl"],n=0;n<l.length;n++)if(k.hasClass(l[n]+m[0])){k.removeClass(l[n]+m[0]);k.addClass(l[n]+m[1])}l=k.getStyle("margin-right");
651m=k.getStyle("margin-left");l?k.setStyle("margin-left", 652l):k.removeStyle("margin-left");m?k.setStyle("margin-right",m):k.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent={genericDefinition:function(a){this.isIndent=!!a;this.startDisabled=!this.isIndent},specificDefinition:function(a,b,c){this.name=b;this.editor=a;this.jobs={};this.enterBr=a.config.enterMode==CKEDITOR.ENTER_BR;this.isIndent=!!c;this.relatedGlobal=c?"indent":"outdent";this.indentKey=c?9:CKEDITOR.SHIFT+9;this.database={}},registerCommands:function(a,b){a.on("pluginsLoaded",function(){for(var a in b)(function(a, 653b){var c=a.getCommand(b.relatedGlobal),d;for(d in b.jobs){c.on("exec",function(c){if(!c.data.done){a.fire("lockSnapshot");if(b.execJob(a,d))c.data.done=true;a.fire("unlockSnapshot");CKEDITOR.dom.element.clearAllMarkers(b.database)}},this,null,d);c.on("refresh",function(c){if(!c.data.states)c.data.states={};c.data.states[b.name+"@"+d]=b.refreshJob(a,d,c.data.path)},this,null,d)}a.addFeature(b)})(this,b[a])})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype= 654{execJob:function(a,b){var c=this.jobs[b];if(c.state!=e)return c.exec.call(this,a)},refreshJob:function(a,b,c){b=this.jobs[b];b.state=a.activeFilter.checkFeature(this)?b.refresh.call(this,a,c):e;return b.state},getContext:function(a){return a.contains(this.context)}}}(),function(){function c(c){function d(b){for(var i=j.startContainer,k=j.endContainer;i&&!i.getParent().equals(b);)i=i.getParent();for(;k&&!k.getParent().equals(b);)k=k.getParent();if(!i||!k)return false;for(var o=i,i=[],t=false;!t;){o.equals(k)&& 655(t=true);i.push(o);o=o.getNext()}if(i.length<1)return false;o=b.getParents(true);for(k=0;k<o.length;k++)if(o[k].getName&&g[o[k].getName()]){b=o[k];break}for(var o=e.isIndent?1:-1,k=i[0],i=i[i.length-1],t=CKEDITOR.plugins.list.listToArray(b,f),r=t[i.getCustomData("listarray_index")].indent,k=k.getCustomData("listarray_index");k<=i.getCustomData("listarray_index");k++){t[k].indent=t[k].indent+o;if(o>0){var p=t[k].parent;t[k].parent=new CKEDITOR.dom.element(p.getName(),p.getDocument())}}for(k=i.getCustomData("listarray_index")+ 6561;k<t.length&&t[k].indent>r;k++)t[k].indent=t[k].indent+o;i=CKEDITOR.plugins.list.arrayToList(t,f,null,c.config.enterMode,b.getDirection());if(!e.isIndent){var s;if((s=b.getParent())&&s.is("li"))for(var o=i.listNode.getChildren(),v=[],y,k=o.count()-1;k>=0;k--)(y=o.getItem(k))&&(y.is&&y.is("li"))&&v.push(y)}i&&i.listNode.replace(b);if(v&&v.length)for(k=0;k<v.length;k++){for(y=b=v[k];(y=y.getNext())&&y.is&&y.getName()in g;){CKEDITOR.env.needsNbspFiller&&!b.getFirst(a)&&b.append(j.document.createText("Â ")); 657b.append(y)}b.insertAfter(s)}i&&c.fire("contentDomInvalidated");return true}for(var e=this,f=this.database,g=this.context,i=c.getSelection(),i=(i&&i.getRanges()).createIterator(),j;j=i.getNextRange();){for(var o=j.getCommonAncestor();o&&!(o.type==CKEDITOR.NODE_ELEMENT&&g[o.getName()]);)o=o.getParent();o||(o=j.startPath().contains(g))&&j.setEndAt(o,CKEDITOR.POSITION_BEFORE_END);if(!o){var t=j.getEnclosedNode();if(t&&t.type==CKEDITOR.NODE_ELEMENT&&t.getName()in g){j.setStartAt(t,CKEDITOR.POSITION_AFTER_START); 658j.setEndAt(t,CKEDITOR.POSITION_BEFORE_END);o=t}}if(o&&j.startContainer.type==CKEDITOR.NODE_ELEMENT&&j.startContainer.getName()in g){t=new CKEDITOR.dom.walker(j);t.evaluator=b;j.startContainer=t.next()}if(o&&j.endContainer.type==CKEDITOR.NODE_ELEMENT&&j.endContainer.getName()in g){t=new CKEDITOR.dom.walker(j);t.evaluator=b;j.endContainer=t.previous()}if(o)return d(o)}return 0}function e(a,c){c||(c=a.contains(this.context));return c&&a.block&&a.block.equals(c.getFirst(b))}function b(a){return a.type== 659CKEDITOR.NODE_ELEMENT&&a.is("li")}function a(a){return d(a)&&i(a)}var d=CKEDITOR.dom.walker.whitespaces(true),i=CKEDITOR.dom.walker.bookmark(false,true),g=CKEDITOR.TRISTATE_DISABLED,f=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(a){function b(a,h){d.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|| 660!e.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),d=e.call(this,b,c);return!c||!this.isIndent||d?g:f}:function(a,b){return!this.getContext(b)||this.isIndent?g:f},exec:CKEDITOR.tools.bind(c,this)}}var d=CKEDITOR.plugins.indent;d.registerCommands(a,{indentlist:new b(a,"indentlist",true),outdentlist:new b(a,"outdentlist")});CKEDITOR.tools.extend(b.prototype,d.specificDefinition.prototype, 661{context:{ol:1,ul:1}})}})}(),function(){function c(a,b,c){function d(c){if((k=i[c?"getFirst":"getLast"]())&&(!k.is||!k.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"](k)}for(var e=CKEDITOR.plugins.list.listToArray(b.root,c),f=[],g=0;g<b.contents.length;g++){var h=b.contents[g];if((h=h.getAscendant("li",true))&&!h.getCustomData("list_item_processed")){f.push(h); 662CKEDITOR.dom.element.setMarker(c,h,"list_item_processed",true)}}h=null;for(g=0;g<f.length;g++){h=f[g].getCustomData("listarray_index");e[h].indent=-1}for(g=h+1;g<e.length;g++)if(e[g].indent>e[g-1].indent+1){f=e[g-1].indent+1-e[g].indent;for(h=e[g].indent;e[g]&&e[g].indent>=h;){e[g].indent=e[g].indent+f;g++}g--}var i=CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,k,l;d(true);d();i.replace(b.root);a.fire("contentDomInvalidated")}function e(a,b){this.name= 663a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function b(a,b,c,d){for(var e,f;e=a[d?"getLast":"getFirst"](s);){(f=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",f);e.remove();
663c?e[d?"insertBefore":"insertAfter"](c):b.append(e,d)}}function a(a){var c;(c=function(c){var d=a[c?"getPrevious":"getNext"](l);if(d&&d.type==CKEDITOR.NODE_ELEMENT&&d.is(a.getName())){b(a,d,null,!c);a.remove();a=d}})();c(1)}function d(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in 664CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function i(c,d,e){c.fire("saveSnapshot");e.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var f=e.extractContents();d.trim(false,true);var h=d.createBookmark(),i=new CKEDITOR.dom.elementPath(d.startContainer),k=i.block,i=i.lastElement.getAscendant("li",1)||k,n=new CKEDITOR.dom.elementPath(e.startContainer),r=n.contains(CKEDITOR.dtd.$listItem),n=n.contains(CKEDITOR.dtd.$list);if(k)(k=k.getBogus())&&k.remove(); 665else if(n)(k=n.getPrevious(l))&&m(k)&&k.remove();(k=f.getLast())&&(k.type==CKEDITOR.NODE_ELEMENT&&k.is("br"))&&k.remove();(k=d.startContainer.getChild(d.startOffset))?f.insertBefore(k):d.startContainer.append(f);if(r)if(f=g(r))if(i.contains(r)){b(f,r.getParent(),r);f.remove()}else i.append(f);for(;e.checkStartOfBlock()&&e.checkEndOfBlock();){n=e.startPath();f=n.block;if(!f)break;if(f.is("li")){i=f.getParent();f.equals(i.getLast(l))&&f.equals(i.getFirst(l))&&(f=i)}e.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START); 666f.remove()}e=e.clone();f=c.editable();e.setEndAt(f,CKEDITOR.POSITION_BEFORE_END);e=new CKEDITOR.dom.walker(e);e.evaluator=function(a){return l(a)&&!m(a)};(e=e.next())&&(e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in CKEDITOR.dtd.$list)&&a(e);d.moveToBookmark(h);d.select();c.fire("saveSnapshot")}function g(a){return(a=a.getLast(l))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in f?a:null}var f={ol:1,ul:1},h=CKEDITOR.dom.walker.whitespaces(),k=CKEDITOR.dom.walker.bookmark(),l=function(a){return!(h(a)|| 667k(a))},m=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,b,c,d,e){if(!f[a.getName()])return[];d||(d=0);c||(c=[]);for(var g=0,h=a.getChildCount();g<h;g++){var i=a.getChild(g);i.type==CKEDITOR.NODE_ELEMENT&&i.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(i,b,c,d+1);if(i.$.nodeName.toLowerCase()=="li"){var k={parent:a,indent:d,element:i,contents:[]};if(e)k.grandparent=e;else{k.grandparent=a.getParent();if(k.grandparent&&k.grandparent.$.nodeName.toLowerCase()== 668"li")k.grandparent=k.grandparent.getParent()}b&&CKEDITOR.dom.element.setMarker(b,i,"listarray_index",c.length);c.push(k);for(var l=0,m=i.getChildCount(),n;l<m;l++){n=i.getChild(l);n.type==CKEDITOR.NODE_ELEMENT&&f[n.getName()]?CKEDITOR.plugins.list.listToArray(n,b,c,d+1,k.grandparent):k.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 g,h=a[c].parent.getDocument(),i=new CKEDITOR.dom.documentFragment(h),m=null,n=c,s=Math.max(a[c].indent,0), 669v=null,y,A,H=d==CKEDITOR.ENTER_P?"p":"div";;){var D=a[n];g=D.grandparent;y=D.element.getDirection(1);if(D.indent==s){if(!m||a[n].parent.getName()!=m.getName()){m=a[n].parent.clone(false,1);e&&m.setAttribute("dir",e);i.append(m)}v=m.append(D.element.clone(0,1));y!=m.getDirection(1)&&v.setAttribute("dir",y);for(g=0;g<D.contents.length;g++)v.append(D.contents[g].clone(1,1));n++}else if(D.indent==Math.max(s,0)+1){D=a[n-1].element.getDirection(1);n=CKEDITOR.plugins.list.arrayToList(a,null,n,d,D!=y?y:null); 670!v.getChildCount()&&(CKEDITOR.env.needsNbspFiller&&!(h.$.documentMode>7))&&v.append(h.createText("Â "));v.append(n.listNode);n=n.nextIndex}else if(D.indent==-1&&!c&&g){if(f[g.getName()]){v=D.element.clone(false,true);y!=g.getDirection(1)&&v.setAttribute("dir",y)}else v=new CKEDITOR.dom.documentFragment(h);var m=g.getDirection(1)!=y,E=D.element,z=E.getAttribute("class"),G=E.getAttribute("style"),J=v.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(d!=CKEDITOR.ENTER_BR||m||G||z),F,R=D.contents.length,L;for(g= 6710;g<R;g++){F=D.contents[g];if(k(F)&&R>1)J?L=F.clone(1,1):v.append(F.clone(1,1));else if(F.type==CKEDITOR.NODE_ELEMENT&&F.isBlockBoundary()){m&&!F.getDirection()&&F.setAttribute("dir",y);A=F;var K=E.getAttribute("style");K&&A.setAttribute("style",K.replace(/([^;])$/,"$1;")+(A.getAttribute("style")||""));z&&F.addClass(z);A=null;if(L){v.append(L);L=null}v.append(F.clone(1,1))}else if(J){if(!A){A=h.createElement(H);v.append(A);m&&A.setAttribute("dir",y)}G&&A.setAttribute("style",G);z&&A.setAttribute("class", 672z);if(L){A.append(L);L=null}A.append(F.clone(1,1))}else v.append(F.clone(1,1))}if(L){(A||v).append(L);L=null}if(v.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&n!=a.length-1){if(CKEDITOR.env.needsBrFiller)(y=v.getLast())&&(y.type==CKEDITOR.NODE_ELEMENT&&y.is("br"))&&y.remove();y=v.getLast(l);(!y||!(y.type==CKEDITOR.NODE_ELEMENT&&y.is(CKEDITOR.dtd.$block)))&&v.append(h.createElement("br"))}y=v.$.nodeName.toLowerCase();
672(y=="div"||y=="p")&&v.appendBogus();i.append(v);m=null;n++}else return null;A=null;if(a.length<= 673n||Math.max(a[n].indent,0)<s)break}if(b)for(a=i.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:i,nextIndex:n}}};var n=/^h[1-6]$/,s=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);e.prototype={exec:function(b){this.refresh(b,b.elementPath()); 674var d=b.config,e=b.getSelection(),g=e&&e.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var h=b.editable();if(h.getFirst(l)){var i=g.length==1&&g[0];(d=i&&i.getEnclosedNode())&&(d.is&&this.type==d.getName())&&this.setState(CKEDITOR.TRISTATE_ON)}else{d.enterMode==CKEDITOR.ENTER_BR?h.appendBogus():g[0].fixBlock(1,d.enterMode==CKEDITOR.ENTER_P?"p":"div");e.selectRanges(g)}}for(var d=e.createBookmarks(true),h=[],k={},g=g.createIterator(),m=0;(i=g.getNextRange())&&++m;){var r=i.getBoundaryNodes(),p= 675r.startNode,s=r.endNode;p.type==CKEDITOR.NODE_ELEMENT&&p.getName()=="td"&&i.setStartAt(r.startNode,CKEDITOR.POSITION_AFTER_START);s.type==CKEDITOR.NODE_ELEMENT&&s.getName()=="td"&&i.setEndAt(r.endNode,CKEDITOR.POSITION_BEFORE_END);i=i.createIterator();for(i.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;r=i.getNextParagraph();)if(!r.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(k,r,"list_block",1);for(var v=b.elementPath(r),p=v.elements,s=0,v=v.blockLimit,y,A=p.length-1;A>=0&&(y=p[A]);A--)if(f[y.getName()]&& 676v.contains(y)){v.removeCustomData("list_group_object_"+m);if(p=y.getCustomData("list_group_object"))p.contents.push(r);else{p={root:y,contents:[r]};h.push(p);CKEDITOR.dom.element.setMarker(k,y,"list_group_object",p)}s=1;break}if(!s){s=v;if(s.getCustomData("list_group_object_"+m))s.getCustomData("list_group_object_"+m).contents.push(r);else{p={root:s,contents:[r]};CKEDITOR.dom.element.setMarker(k,s,"list_group_object_"+m,p);h.push(p)}}}}for(y=[];h.length>0;){p=h.shift();if(this.state==CKEDITOR.TRISTATE_OFF)if(f[p.root.getName()]){g= 677b;m=p;p=k;i=y;s=CKEDITOR.plugins.list.listToArray(m.root,p);v=[];for(r=0;r<m.contents.length;r++){A=m.contents[r];if((A=A.getAscendant("li",true))&&!A.getCustomData("list_item_processed")){v.push(A);CKEDITOR.dom.element.setMarker(p,A,"list_item_processed",true)}}for(var A=m.root.getDocument(),H=void 0,D=void 0,r=0;r<v.length;r++){var E=v[r].getCustomData("listarray_index"),H=s[E].parent;if(!H.is(this.type)){D=A.createElement(this.type);H.copyAttributes(D,{start:1,type:1});D.removeStyle("list-style-type"); 678s[E].parent=D}}p=CKEDITOR.plugins.list.arrayToList(s,p,null,g.config.enterMode);s=void 0;v=p.listNode.getChildCount();for(r=0;r<v&&(s=p.listNode.getChild(r));r++)s.getName()==this.type&&i.push(s);p.listNode.replace(m.root);g.fire("contentDomInvalidated")}else{s=b;r=p;i=y;v=r.contents;g=r.root.getDocument();m=[];if(v.length==1&&v[0].equals(r.root)){p=g.createElement("div");v[0].moveChildren&&v[0].moveChildren(p);v[0].append(p);v[0]=p}r=r.contents[0].getParent();for(A=0;A<v.length;A++)r=r.getCommonAncestor(v[A].getParent()); 679H=s.config.useComputedState;s=p=void 0;H=H===void 0||H;for(A=0;A<v.length;A++)for(D=v[A];E=D.getParent();){if(E.equals(r)){m.push(D);!s&&D.getDirection()&&(s=1);D=D.getDirection(H);p!==null&&(p=p&&p!=D?null:D);break}D=E}if(!(m.length<1)){v=m[m.length-1].getNext();A=g.createElement(this.type);i.push(A);for(H=i=void 0;m.length;){i=m.shift();H=g.createElement("li");if(i.is("pre")||n.test(i.getName())||i.getAttribute("contenteditable")=="false")i.appendTo(H);else{i.copyAttributes(H);if(p&&i.getDirection()){H.removeStyle("direction"); 680H.removeAttribute("dir")}i.moveChildren(H);i.remove()}H.appendTo(A)}p&&s&&A.setAttribute("dir",p);v?A.insertBefore(v):A.appendTo(r)}}else this.state==CKEDITOR.TRISTATE_ON&&f[p.root.getName()]&&c.call(this,b,p,k)}for(A=0;A<y.length;A++)a(y[A]);CKEDITOR.dom.element.clearAllMarkers(k);e.selectBookmarks(d);b.focus()},refresh:function(a,b){var c=b.contains(f,1),d=b.blockLimit||b.root;c&&d.contains(c)?this.setState(c.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}}; 681CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(a){if
681(!a.blockless){a.addCommand("numberedlist",new e("numberedlist","ol"));a.addCommand("bulletedlist",new e("bulletedlist","ul"));if(a.ui.addButton){a.ui.addButton("NumberedList",{label:a.lang.list.numberedlist,command:"numberedlist",directional:true,toolbar:"list,10"});a.ui.addButton("BulletedList",{label:a.lang.list.bulletedlist,command:"bulletedlist",directional:true,toolbar:"list,20"})}a.on("key",function(b){var c=b.data.keyCode; 682if(a.mode=="wysiwyg"&&c in{8:1,46:1}){var e=a.getSelection().getRanges()[0],h=e&&e.startPath();if(e&&e.collapsed){var k=c==8,n=a.editable(),s=new CKEDITOR.dom.walker(e.clone());s.evaluator=function(a){return l(a)&&!m(a)};s.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};c=e.clone();if(k){var r,p;if((r=h.contains(f))&&e.checkBoundaryOfElement(r,CKEDITOR.START)&&(r=r.getParent())&&r.is("li")&&(r=g(r))){p=r;r=r.getPrevious(l);c.moveToPosition(r&&m(r)?r:p,CKEDITOR.POSITION_BEFORE_START)}else{s.range.setStartAt(n, 683CKEDITOR.POSITION_AFTER_START);s.range.setEnd(e.startContainer,e.startOffset);if((r=s.previous())&&r.type==CKEDITOR.NODE_ELEMENT&&(r.getName()in f||r.is("li"))){if(!r.is("li")){s.range.selectNodeContents(r);s.reset();s.evaluator=d;r=s.previous()}p=r;c.moveToElementEditEnd(p)}}if(p){i(a,c,e);b.cancel()}else if((c=h.contains(f))&&e.checkBoundaryOfElement(c,CKEDITOR.START)){p=c.getFirst(l);if(e.checkBoundaryOfElement(p,CKEDITOR.START)){r=c.getPrevious(l);if(g(p)){if(r){e.moveToElementEditEnd(r);e.select()}}else a.execCommand("outdent"); 684b.cancel()}}}else if(p=h.contains("li")){s.range.setEndAt(n,CKEDITOR.POSITION_BEFORE_END);n=(h=p.getLast(l))&&d(h)?h:p;p=0;if((r=s.next())&&r.type==CKEDITOR.NODE_ELEMENT&&r.getName()in f&&r.equals(h)){p=1;r=s.next()}else e.checkBoundaryOfElement(n,CKEDITOR.END)&&(p=1);if(p&&r){e=e.clone();e.moveToElementEditStart(r);i(a,c,e);b.cancel()}}else{s.range.setEndAt(n,CKEDITOR.POSITION_BEFORE_END);if((r=s.next())&&r.type==CKEDITOR.NODE_ELEMENT&&r.is(f)){r=r.getFirst(l);if(h.block&&e.checkStartOfBlock()&& 685e.checkEndOfBlock()){h.block.remove();e.moveToElementEditStart(r);e.select()}else if(g(r)){e.moveToElementEditStart(r);e.select()}else{e=e.clone();e.moveToElementEditStart(r);i(a,c,e)}b.cancel()}}setTimeout(function(){a.selectionChange(1)})}}})}}})}(),function(){function c(b,a,c){var e=CKEDITOR.cleanWord;if(e)c();else{b=CKEDITOR.getUrl(b.config.pasteFromWordCleanupFile||a+"filter/default.js");CKEDITOR.scriptLoader.load(b,c,null,true)}return!e}function e(b){b.data.type="html"}CKEDITOR.plugins.add("pastefromword", 686{requires:"clipboard",init:function(b){var a=0,d=this.path;b.addCommand("pastefromword",{canUndo:false,async:true,exec:function(b){var c=this;a=1;b.once("beforePaste",e);b.getClipboardData({title:b.lang.pastefromword.title},function(a){a&&b.fire("paste",{type:"html",dataValue:a.dataValue});b.fire("afterCommandExec",{name:"pastefromword",command:c,returnValue:!!a})})}});b.ui.addButton&&b.ui.addButton("PasteFromWord",{label:b.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"}); 687b.on("pasteState",function(a){b.getCommand("pastefromword").setState(a.data)});b.on("paste",function(e){var g=e.data,f=g.dataValue;if(f&&(a||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(f))){var h=c(b,d,function(){if(h)b.fire("paste",g);else if(!b.config.pasteFromWordPromptCleanup||a||confirm(b.lang.pastefromword.confirmCleanup))g.dataValue=CKEDITOR.cleanWord(f,b)});h&&e.cancel()}},null,null,3)}})}(),function(){var c={canUndo:false,async:true,exec:function(e){e.getClipboardData({title:e.lang.pastetext.title}, 688function(b){b&&e.fire("paste",{type:"text",dataValue:b.dataValue});e.fire("afterCommandExec",{name:"pastetext",command:c,returnValue:!!b})})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(e){e.addCommand("pastetext",c);e.ui.addButton&&e.ui.addButton("PasteText",{label:e.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(e.config.forcePasteAsPlainText)e.on("beforePaste",function(b){if(b.data.type!="html")b.data.type="text"});e.on("pasteState",function(b){e.getCommand("pastetext").setState(b.data)})}})}(), 689CKEDITOR.plugins.add("removeformat",{init:function(c){c.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);c.ui.addButton&&c.ui.addButton("RemoveFormat",{label:c.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(c){for(var e=c._.removeFormatRegex||(c._.removeFormatRegex=RegExp("^(?:"+c.config.removeFormatTags.replace(/,/g,"|")+")$","i")),b=c._.removeAttributes||(c._.removeAttributes= 690c.config.removeFormatAttributes.split(",")),a=CKEDITOR.plugins.removeformat.filter,d=c.getSelection().getRanges(1),i=d.createIterator(),g;g=i.getNextRange();){g.collapsed||g.enlarge(CKEDITOR.ENLARGE_ELEMENT);var f=g.createBookmark(),h=f.startNode,k=f.endNode,l=function(b){for(var d=c.elementPath(b),f=d.elements,g=1,h;h=f[g];g++){if(h.equals(d.block)||h.equals(d.blockLimit))break;e.test(h.getName())&&a(c,h)&&b.breakParent(h)}};l(h);if(k){l(k);for(h=h.getNextSourceNode(true,CKEDITOR.NODE_ELEMENT);h;){if(h.equals(k))break; 691l=h.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT);if(!(h.getName()=="img"&&h.data("cke-realelement"))&&a(c,h))if(e.test(h.getName()))h.remove(1);else{h.removeAttributes(b);c.fire("removeFormatCleanup",h)}h=l}}g.moveToBookmark(f)}c.forceNextSelectionCheck();c.getSelection().selectRanges(d)}}},filter:function(c,e){for(var b=c._.removeFormatFilters||[],a=0;a<b.length;a++)if(b[a](e)===false)return false;return true}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(c){if(!this._.removeFormatFilters)this._.removeFormatFilters= 692[];this._.removeFormatFilters.push(c)},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",function(){CKEDITOR.plugins.add("sourcearea",{init:function(e){function b(){this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+"px");this.show()}if(e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var a= 693CKEDITOR.plugins.sourcearea;e.addMode("source",function(a){var i=e.ui.space("contents").getDocument().createElement("textarea");i.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",e.config.sourceAreaTabSize||4)));i.setAttribute("dir","ltr");i.addClass("cke_source cke_reset cke_enable_context_menu");e.ui.space("contents").append(i);i=e.editable(new c(e,i));i.setData(e.getData(1)); 694if(CKEDITOR.env.ie){i.attachListener(e,"resize",b,i);i.attachListener(CKEDITOR.document.getWindow(),"resize",b,i);CKEDITOR.tools.setTimeout(b,0,i)}e.fire("ariaWidget",this);a()});e.addCommand("source",a.commands.source);e.ui.addButton&&e.ui.addButton("Source",{label:e.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});e.on("mode",function(){e.getCommand("source").setState(e.mode=="source"?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)})}}});var c=CKEDITOR.tools.createClass({base:CKEDITOR.editable, 695proto:{setData:function(c){this.setValue(c);this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(c){this[(c?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){c.baseProto.detach.call(this);this.clearCustomData();this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(c){c.mode=="wysiwyg"&& 696c.fire("saveSnapshot");c.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);c.setMode(c.mode=="source"?"wysiwyg":"source")},canUndo:!1}}},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(c){function e(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!c.blockless){var b=c.lang.table;c.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];"+ 697(c.plugins.dialogadvtab?"table"+c.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"]]}));c.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",e()));c.addCommand("tableDelete",e({exec:function(a){var b=a.elementPath().contains("table",1);if(b){var c=b.getParent();c.getChildCount()==1&&!c.is("body","td","th")&&(b=c);a=a.createRange();a.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START); 698b.remove();a.select()}}}));c.ui.addButton&&c.ui.addButton("Table",{label:b.toolbar,command:"table",toolbar:"insert,30"});CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");c.addMenuItems&&c.addMenuItems({table:{label:b.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:b.deleteTable,command:"tableDelete",group:"table",order:1}});
698c.on("doubleclick",function(a){if(a.data.element.is("table"))a.data.dialog= 699"tableProperties"});c.contextMenu&&c.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function c(a){function b(){for(var h=c(),i=CKEDITOR.tools.clone(a.config.toolbarGroups)||e(a),k=0;k<i.length;k++){var j=i[k];if(j!="/"){typeof j=="string"&&(j=i[k]={name:j});var l,t=j.groups;if(t)for(var C=0;C<t.length;C++){l=t[C];(l=h[l])&&f(j,l)}(l=h[j.name])&&f(j,l)}}return i}function c(){var b={},e,f,g;for(e in a.ui.items){f=a.ui.items[e]; 700g=f.toolbar||"others";g=g.split(",");f=g[0];g=parseInt(g[1]||-1,10);b[f]||(b[f]=[]);b[f].push({name:e,order:g})}for(f in b)b[f]=b[f].sort(function(a,b){return a.order==b.order?0:b.order<0?-1:a.order<0?1:a.order<b.order?-1:1});return b}function f(b,c){if(c.length){b.items?b.items.push(a.ui.create("-")):b.items=[];for(var e;e=c.shift();){e=typeof e=="string"?e:e.name;if(!k||CKEDITOR.tools.indexOf(k,e)==-1)(e=a.ui.create(e))&&a.addFeature(e)&&b.items.push(e)}}}function h(a){var b=[],c,d,e;for(c=0;c< 701a.length;++c){d=a[c];e={};if(d=="/")b.push(d);else if(CKEDITOR.tools.isArray(d)){f(e,CKEDITOR.tools.clone(d));b.push(e)}else if(d.items){f(e,CKEDITOR.tools.clone(d.items));e.name=d.name;b.push(e)}}return b}var k=a.config.removeButtons,k=k&&k.split(","),l=a.config.toolbar;typeof l=="string"&&(l=a.config["toolbar_"+l]);return a.toolbar=l?h(l):b()}function e(a){return a._.toolbarGroups||(a._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard", 702"undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}])}var b=function(){this.toolbars=[];this.focusCommandExecuted=false};b.prototype.focus=function(){for(var a=0,b;b=this.toolbars[a++];)for(var c=0,e;e=b.items[c++];)if(e.focus){e.focus(); 703return}};var a={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,g=function(a,b){var c,l=d.lang.dir=="rtl",m=d.config.toolbarGroupCycling,n=l?37:39,l=l?39:37,m=m===void 0||m;switch(b){case 9:case CKEDITOR.SHIFT+9:for(;!c||!c.items.length;){c=b==9?(c?c.next:a.toolbar.next)|| 704d.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 n:c=a;do{c=c.next;!c&&m&&(c=a.toolbar.items[0])}while(c&&!c.focus);c?c.focus():g(a,9);return false;case 40:if(a.button&&a.button.hasArrow){d.once("panelShow",function(a){a.data._.panel._.currentBlock.onKeyDown(40)});a.execute()}else g(a,b==40?n:l);return false;case l:case 38:c= 705a;do{c=c.previous;!c&&m&&(c=a.toolbar.items[a.toolbar.items.length-1])}while(c&&!c.focus);if(c)c.focus();else{e=1;g(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(a){if(a.data.space==d.config.toolbarLocation){a.removeListener();d.toolbox=new b;var e=CKEDITOR.tools.getNextId(),i=['<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="', 706e,'" onmousedown="return false;">'],e=d.config.toolbarStartupExpanded!==false,l,m;d.config.toolbarCanCollapse&&d.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&i.push('<span class="cke_toolbox_main"'+(e?">":' style="display:none">'));for(var n=d.toolbox.toolbars,s=c(d),j=0;j<s.length;j++){var o,t=0,C,q=s[j],u;if(q){if(l){i.push("</span>");m=l=0}if(q==="/")i.push('<span class="cke_toolbar_break"></span>');else{u=q.items||q;for(var B=0;B<u.length;B++){var w=u[B],r;if(w)if(w.type==CKEDITOR.UI_SEPARATOR)m= 707l&&w;else{r=w.canGroup!==false;if(!t){o=CKEDITOR.tools.getNextId();t={id:o,items:[]};C=q.name&&(d.lang.toolbar.toolbarGroups[q.name]||q.name);i.push('<span id="',o,'" class="cke_toolbar"',C?' aria-labelledby="'+o+'_label"':"",' role="toolbar">');C&&i.push('<span id="',o,'_label" class="cke_voice_label">',C,"</span>");i.push('<span class="cke_toolbar_start"></span>');var p=n.push(t)-1;if(p>0){t.previous=n[p-1];t.previous.next=t}}if(r){if(!l){i.push('<span class="cke_toolgroup" role="presentation">'); 708l=1}}else if(l){i.push("</span>");l=0}o=function(a){a=a.render(d,i);p=t.items.push(a)-1;if(p>0){a.previous=t.items[p-1];a.previous.next=a}a.toolbar=t;a.onkey=g;a.onfocus=function(){d.toolbox.focusCommandExecuted||d.focus()}};if(m){o(m);m=0}o(w)}}if(l){i.push("</span>");m=l=0}t&&i.push('<span class="cke_toolbar_end"></span></span>')}}}d.config.toolbarCanCollapse&&i.push("</span>");if(d.config.toolbarCanCollapse&&d.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var x=CKEDITOR.tools.addFunction(function(){d.execCommand("toolbarCollapse")}); 709d.on("destroy",function(){CKEDITOR.tools.removeFunction(x)});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", 710a.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");i.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||i.push(" cke_toolbox_collapser_min");i.push('" onclick="CKEDITOR.tools.callFunction('+ 711x+')">','<span class="cke_arrow">▲</span>',"</a>")}i.push("</span>");a.data.html=a.data.html+i.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",a);d.setKeystroke(CKEDITOR.ALT+ 712121,"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 f=e(this.editor),h=b===0,k={name:a};if(c){if(c=CKEDITOR.tools.search(f,function(a){return a.name==c})){!c.groups&&(c.groups=[]);if(b){b=CKEDITOR.tools.indexOf(c.groups,b);
712if(b>=0){c.groups.splice(b+1,0,a);return}}h? 713c.groups.splice(0,0,a):c.groups.push(a);return}b=null}b&&(b=CKEDITOR.tools.indexOf(f,function(a){return a.name==b}));h?f.splice(0,0,a):typeof b=="number"?f.splice(b+1,0,k):f.push(a)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top",function(){function c(a){this.editor=a;this.reset()}CKEDITOR.plugins.add("undo",{init:function(a){function b(a){g.enabled&&a.data.command.canUndo!==false&&g.save()}function e(){g.enabled=a.readOnly?false:a.mode=="wysiwyg";g.onChange()}var g=a.undoManager= 714new c(a),f=a.addCommand("undo",{exec:function(){if(g.undo()){a.selectionChange();this.fire("afterUndo")}},startDisabled:true,canUndo:false}),h=a.addCommand("redo",{exec:function(){if(g.redo()){a.selectionChange();this.fire("afterRedo")}},startDisabled:true,canUndo:false});a.setKeystroke([[CKEDITOR.CTRL+90,"undo"],[CKEDITOR.CTRL+89,"redo"],[CKEDITOR.CTRL+CKEDITOR.SHIFT+90,"redo"]]);g.onChange=function(){f.setState(g.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);h.setState(g.redoable()? 715CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};a.on("beforeCommandExec",b);a.on("afterCommandExec",b);a.on("saveSnapshot",function(a){g.save(a.data&&a.data.contentOnly)});a.on("contentDom",function(){a.editable().on("keydown",function(a){a=a.data.getKey();(a==8||a==46)&&g.type(a,0)});a.editable().on("keypress",function(a){g.type(a.data.getKey(),1)})});a.on("beforeModeUnload",function(){a.mode=="wysiwyg"&&g.save(true)});a.on("mode",e);a.on("readOnly",e);if(a.ui.addButton){a.ui.addButton("Undo",
716{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(){g.reset();a.fire("saveSnapshot")};a.on("updateSnapshot",function(){g.currentImage&&g.update()});a.on("lockSnapshot",function(a){g.lock(a.data&&a.data.dontUpdate)});a.on("unlockSnapshot",g.unlock,g)}});CKEDITOR.plugins.undo={};var e=CKEDITOR.plugins.undo.Image=function(a,b){this.editor=a;a.fire("beforeUndoImage");var c=a.getSnapshot();CKEDITOR.env.ie&& 717c&&(c=c.replace(/\s+data-cke-expando=".*?"/g,""));this.contents=c;if(!b)this.bookmarks=(c=c&&a.getSelection())&&c.createBookmarks2(true);a.fire("afterUndoImage")},b=/\b(?:href|src|name)="[^"]*?"/gi;e.prototype={equalsContent:function(a){var c=this.contents,a=a.contents;if(CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)){c=c.replace(b,"");a=a.replace(b,"")}return c!=a?false:true},equalsSelection:function(a){var b=this.bookmarks,a=a.bookmarks;if(b||a){if(!b||!a||b.length!=a.length)return false; 718for(var c=0;c<b.length;c++){var e=b[c],f=a[c];if(e.startOffset!=f.startOffset||e.endOffset!=f.endOffset||!CKEDITOR.tools.arrayCompare(e.start,f.start)||!CKEDITOR.tools.arrayCompare(e.end,f.end))return false}}return true}};c.prototype={type:function(a,b){var c=!b&&a!=this.lastKeystroke,g=this.editor;if(!this.typing||b&&!this.wasCharacter||c){var f=new e(g),h=this.snapshots.length;CKEDITOR.tools.setTimeout(function(){var a=g.getSnapshot();CKEDITOR.env.ie&&(a=a.replace(/\s+data-cke-expando=".*?"/g,"")); 719if(f.contents!=a&&h==this.snapshots.length){this.typing=true;this.save(false,f,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(){g.fire("change")},0)}else{this.typesCount=0;this.modifiersCount++; 720if(this.modifiersCount>25){this.save(false,null,false);this.modifiersCount=1}else setTimeout(function(){g.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= 721!!this.getNextImage(false);this.resetType();this.onChange()},save:function(a,b,c){if(this.locked)return false;var g=this.snapshots;b||(b=new e(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");g.splice(this.index+1,g.length-this.index-1);g.length==this.limit&&g.shift();this.index=g.push(b)-1;this.currentImage=b;c!==false&&this.fireChange();return true}, 722restoreImage:function(a){var b=this.editor,c;if(a.bookmarks){b.focus();c=b.getSelection()}this.locked=1;this.editor.loadSnapshot(a.contents);if(a.bookmarks)c.selectBookmarks(a.bookmarks);else if(CKEDITOR.env.ie){c=this.editor.document.getBody().$.createTextRange();c.collapse(true);c.select()}this.locked=0;this.index=a.index;this.currentImage=this.snapshots[this.index];this.update();this.fireChange();b.fire("change")},getNextImage:function(a){var b=this.snapshots,c=this.currentImage,e;if(c)if(a)for(e= 723this.index-1;e>=0;e--){a=b[e];if(!c.equalsContent(a)){a.index=e;return a}}else for(e=this.index+1;e<b.length;e++){a=b[e];if(!c.equalsContent(a)){a.index=e;return a}}return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(true);var a=this.getNextImage(true);if(a)return this.restoreImage(a),true}return false},redo:function(){if(this.redoable()){this.save(true);if(this.redoable()){var a=this.getNextImage(false); 724if(a)return this.restoreImage(a),true}}return false}
724,update:function(a){if(!this.locked){a||(a=new e(this.editor));for(var b=this.index,c=this.snapshots;b>0&&this.currentImage.equalsContent(c[b-1]);)b=b-1;c.splice(b,this.index-b+1,a);this.index=b;this.currentImage=a}},lock:function(a){if(this.locked)this.locked.level++;else if(a)this.locked={level:1};else{a=new e(this.editor,true);this.locked={update:this.currentImage&&this.currentImage.equalsContent(a)?a:null,level:1}}},unlock:function(){if(this.locked&& 725!--this.locked.level){var a=this.locked.update,b=a&&new e(this.editor,true);this.locked=null;a&&!a.equalsContent(b)&&this.update()}}}}(),CKEDITOR.config.plugins="basicstyles,dialogui,dialog,clipboard,button,panelbutton,panel,floatpanel,colorbutton,divarea,listblock,richcombo,font,format,justify,fakeobjects,link,indent,indentlist,list,pastefromword,pastetext,removeformat,sourcearea,table,toolbar,undo",CKEDITOR.config.skin="moono",function(){var c=function(c,b){for(var a=CKEDITOR.getUrl("plugins/"+ 726b),c=c.split(","),d=0;d<c.length;d++)CKEDITOR.skin.icons[c[d]]={path:a,offset:-c[++d],bgsize:c[++d]}};CKEDITOR.env.hidpi?c("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,,language,1152,,anchor-rtl,1176,,anchor,1200,,link,1224,,unlink,1248,,bulletedlist-rtl,1272,,bulletedlist,1296,,numberedlist-rtl,1320,,numberedlist,1344,,mathjax,1368,,maximize,1392,,newpage-rtl,1416,,newpage,1440,,pagebreak-rtl,1464,,pagebreak,1488,,pastefromword-rtl,1512,,pastefromword,1536,,pastetext-rtl,1560,,pastetext,1584,,placeholder,1608,,preview-rtl,1632,,preview,1656,,print,1680,,removeformat,1704,,save,1728,,selectall,1752,,showblocks-rtl,1776,,showblocks,1800,,smiley,1824,,source-rtl,1848,,source,1872,,sourcedialog-rtl,1896,,sourcedialog,1920,,specialchar,1944,,table,1968,,templates-rtl,1992,,templates,2016,,uicolor,2040,,redo-rtl,2064,,redo,2088,,undo-rtl,2112,,undo,2136,", 727"icons_hidpi.png"):c("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,language,1152,auto,anchor-rtl,1176,auto,anchor,1200,auto,link,1224,auto,unlink,1248,auto,bulletedlist-rtl,1272,auto,bulletedlist,1296,auto,numberedlist-rtl,1320,auto,numberedlist,1344,auto,mathjax,1368,auto,maximize,1392,auto,newpage-rtl,1416,auto,newpage,1440,auto,pagebreak-rtl,1464,auto,pagebreak,1488,auto,pastefromword-rtl,1512,auto,pastefromword,1536,auto,pastetext-rtl,1560,auto,pastetext,1584,auto,placeholder,1608,auto,preview-rtl,1632,auto,preview,1656,auto,print,1680,auto,removeformat,1704,auto,save,1728,auto,selectall,1752,auto,showblocks-rtl,1776,auto,showblocks,1800,auto,smiley,1824,auto,source-rtl,1848,auto,source,1872,auto,sourcedialog-rtl,1896,auto,sourcedialog,1920,auto,specialchar,1944,auto,table,1968,auto,templates-rtl,1992,auto,templates,2016,auto,uicolor,2040,auto,redo-rtl,2064,auto,redo,2088,auto,undo-rtl,2112,auto,undo,2136,auto", 728"icons.png")}(),CKEDITOR.lang.languages={en:1,it:1}})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.