From c7a9c9ae10cb0ba69f032dd507e37cc4f0c0d452 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org> Date: Tue, 3 Nov 2015 12:44:28 +0000 Subject: [PATCH] Issue #2581291 by Wim Leers: Update CKEditor library to 4.5.4 --- core/assets/vendor/ckeditor/CHANGES.md | 27 + core/assets/vendor/ckeditor/build-config.js | 2 +- core/assets/vendor/ckeditor/ckeditor.js | 2066 ++++++++--------- core/assets/vendor/ckeditor/lang/eu.js | 2 +- core/assets/vendor/ckeditor/lang/ug.js | 2 +- .../plugins/a11yhelp/dialogs/a11yhelp.js | 8 +- .../plugins/a11yhelp/dialogs/lang/ko.js | 2 +- .../plugins/a11yhelp/dialogs/lang/ku.js | 2 +- .../plugins/a11yhelp/dialogs/lang/ug.js | 7 +- .../ckeditor/plugins/about/dialogs/about.js | 6 +- .../plugins/clipboard/dialogs/paste.js | 12 +- .../ckeditor/plugins/image2/dialogs/image2.js | 20 +- .../plugins/pastefromword/filter/default.js | 56 +- .../plugins/specialchar/dialogs/lang/fr.js | 2 +- .../specialchar/dialogs/specialchar.js | 18 +- .../ckeditor/plugins/table/dialogs/table.js | 32 +- .../plugins/tabletools/dialogs/tableCell.js | 22 +- core/core.libraries.yml | 4 +- 18 files changed, 1157 insertions(+), 1133 deletions(-) diff --git a/core/assets/vendor/ckeditor/CHANGES.md b/core/assets/vendor/ckeditor/CHANGES.md index db594dc6bf35..3f5c45eca61d 100644 --- a/core/assets/vendor/ckeditor/CHANGES.md +++ b/core/assets/vendor/ckeditor/CHANGES.md @@ -1,6 +1,33 @@ CKEditor 4 Changelog ==================== +## CKEditor 4.5.4 + +New Features: + +* [#13632](http://dev.ckeditor.com/ticket/13632): Introduce error logging mechanism. +* [#13730](http://dev.ckeditor.com/ticket/13730): Switch to the new error logging mechanism. + +Fixed Issues: + +* [#9856](http://dev.ckeditor.com/ticket/9856): Fixed: Cannot use the native context menu together with the [Div Editing Area](http://ckeditor.com/addon/divarea) plugin. Thanks to [Mark Wade](https://github.com/mark-wade)! +* [#12733](http://dev.ckeditor.com/ticket/12733): [IE9+] Fixed: Radio button `onChange` does not work. Thanks to [Iliya Kostadinov](https://github.com/iliyakostadinov)! +* [#13142](http://dev.ckeditor.com/ticket/13142): [Edge] Fixed: *Ctrl+A* and then *Backspace* result in an empty `<div>` element. +* [#13599](http://dev.ckeditor.com/ticket/13599): Fixed: Cross-editor drag and drop of an inline widget results in error/artifacts. +* [#13640](http://dev.ckeditor.com/ticket/13640): [IE] Fixed: Dropping a widget outside the `<body>` element is not handled correctly. +* [#13533](http://dev.ckeditor.com/ticket/13533): Fixed: No progress during upload. +* [#13680](http://dev.ckeditor.com/ticket/13680): Fixed: The parser should allow the `<h1-6>` element to be a child of the `<summary>` element. +* [#11724](http://dev.ckeditor.com/ticket/11724): [Touch devices] Fixed: Drop-downs often hide right after opening them. +* [#13690](http://dev.ckeditor.com/ticket/13690): Fixed: Copying content from IE to Chrome adds an extra paragraph. +* [#13284](http://dev.ckeditor.com/ticket/13284): Fixed: Cannot drag and drop a widget if the text caret is placed just after the widget instance. +* [#13516](http://dev.ckeditor.com/ticket/13516): Fixed: CKEditor removes empty HTML5 anchors without the `name` attribute. +* [#13765](http://dev.ckeditor.com/ticket/13765): [Safari 9] Fixed: Problems with rendering samples. + +Other Changes: + +* [#11725](http://dev.ckeditor.com/ticket/11725): Marked [`CKEDITOR.env.mobile`](http://docs.ckeditor.com/#!/api/CKEDITOR.env-property-mobile) as deprecated. The reason is that it is no longer clear what "mobile" means. +* [#13737](http://dev.ckeditor.com/ticket/13737): Upgraded [Bender.js](https://github.com/benderjs/benderjs) to 0.4.1. + ## CKEditor 4.5.3 New Features: diff --git a/core/assets/vendor/ckeditor/build-config.js b/core/assets/vendor/ckeditor/build-config.js index 1b0fc30ab82c..b44b24544175 100644 --- a/core/assets/vendor/ckeditor/build-config.js +++ b/core/assets/vendor/ckeditor/build-config.js @@ -44,7 +44,7 @@ var CKBUILDER_CONFIG = { 'adapters', 'config.js', 'contents.css', - 'Gruntfile.js', + 'gruntfile.js', 'styles.js', 'samples', 'skins/moono/readme.md' diff --git a/core/assets/vendor/ckeditor/ckeditor.js b/core/assets/vendor/ckeditor/ckeditor.js index 54986a8d00eb..41a5ec7e8b1e 100644 --- a/core/assets/vendor/ckeditor/ckeditor.js +++ b/core/assets/vendor/ckeditor/ckeditor.js @@ -2,1040 +2,1036 @@ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ -(function(){if(!window.CKEDITOR||!window.CKEDITOR.dom)window.CKEDITOR||(window.CKEDITOR=function(){var a=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,f={timestamp:"F7VE",version:"4.5.3",revision:"6c70c82",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:a},status:"unloaded",basePath:function(){var b=window.CKEDITOR_BASEPATH||"";if(!b)for(var d=document.getElementsByTagName("script"),f=0;f<d.length;f++){var i=d[f].src.match(a);if(i){b=i[1];break}}-1==b.indexOf(":/")&&"//"!=b.slice(0, -2)&&(b=0===b.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+b:location.href.match(/^[^\?]*\/(?:)/)[0]+b);if(!b)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return b}(),getUrl:function(a){-1==a.indexOf(":/")&&0!==a.indexOf("/")&&(a=this.basePath+a);this.timestamp&&("/"!=a.charAt(a.length-1)&&!/[&?]t=/.test(a))&&(a+=(0<=a.indexOf("?")?"&":"?")+"t="+this.timestamp);return a},domReady:function(){function a(){try{document.addEventListener? -(document.removeEventListener("DOMContentLoaded",a,!1),b()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),b())}catch(i){}}function b(){for(var i;i=d.shift();)i()}var d=[];return function(i){function e(){try{document.documentElement.doScroll("left")}catch(g){setTimeout(e,1);return}a()}d.push(i);"complete"===document.readyState&&setTimeout(a,1);if(1==d.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",a,!1),window.addEventListener("load", -a,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",a);window.attachEvent("onload",a);i=!1;try{i=!window.frameElement}catch(c){}document.documentElement.doScroll&&i&&e()}}}()},b=window.CKEDITOR_GETURL;if(b){var d=f.getUrl;f.getUrl=function(a){return b.call(f,a)||d.call(f,a)}}return f}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(a){var f=CKEDITOR.event.prototype,b;for(b in f)a[b]==null&&(a[b]=f[b])},CKEDITOR.event.prototype=function(){function a(a){var h= -f(this);return h[a]||(h[a]=new b(a))}var f=function(a){a=a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={})},b=function(a){this.name=a;this.listeners=[]};b.prototype={getListenerIndex:function(a){for(var b=0,f=this.listeners;b<f.length;b++)if(f[b].fn==a)return b;return-1}};return{define:function(b,h){var f=a.call(this,b);CKEDITOR.tools.extend(f,h,true)},on:function(b,h,f,j,i){function e(g,l,i,a){g={name:b,sender:this,editor:g,data:l,listenerData:j,stop:i,cancel:a,removeListener:c}; -return h.call(f,g)===false?false:g.data}function c(){l.removeListener(b,h)}var g=a.call(this,b);if(g.getListenerIndex(h)<0){g=g.listeners;f||(f=this);isNaN(i)&&(i=10);var l=this;e.fn=h;e.priority=i;for(var q=g.length-1;q>=0;q--)if(g[q].priority<=i){g.splice(q+1,0,e);return{removeListener:c}}g.unshift(e)}return{removeListener:c}},once:function(){var a=Array.prototype.slice.call(arguments),b=a[1];a[1]=function(a){a.removeListener();return b.apply(this,arguments)};return this.on.apply(this,a)},capture:function(){CKEDITOR.event.useCapture= -1;var a=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return a},fire:function(){var a=0,b=function(){a=1},k=0,j=function(){k=1};return function(i,e,c){var g=f(this)[i],i=a,l=k;a=k=0;if(g){var q=g.listeners;if(q.length)for(var q=q.slice(0),n,o=0;o<q.length;o++){if(g.errorProof)try{n=q[o].call(this,c,e,b,j)}catch(p){}else n=q[o].call(this,c,e,b,j);n===false?k=1:typeof n!="undefined"&&(e=n);if(a||k)break}}e=k?false:typeof e=="undefined"?true:e;a=i;k=l;return e}}(),fireOnce:function(a,b,k){b= -this.fire(a,b,k);delete f(this)[a];return b},removeListener:function(a,b){var k=f(this)[a];if(k){var j=k.getListenerIndex(b);j>=0&&k.listeners.splice(j,1)}},removeAllListeners:function(){var a=f(this),b;for(b in a)delete a[b]},hasListeners:function(a){return(a=f(this)[a])&&a.listeners.length>0}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(a,f){a in{instanceReady:1,loaded:1}&&(this[a]= -true);return CKEDITOR.event.prototype.fire.call(this,a,f,this)},CKEDITOR.editor.prototype.fireOnce=function(a,f){a in{instanceReady:1,loaded:1}&&(this[a]=true);return CKEDITOR.event.prototype.fireOnce.call(this,a,f,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var a=navigator.userAgent.toLowerCase(),f=a.match(/edge[ \/](\d+.?\d*)/),b=a.indexOf("trident/")>-1,b=!(!f&&!b),b={ie:b,edge:!!f,webkit:!b&&a.indexOf(" applewebkit/")>-1,air:a.indexOf(" adobeair/")> --1,mac:a.indexOf("macintosh")>-1,quirks:document.compatMode=="BackCompat"&&(!document.documentMode||document.documentMode<10),mobile:a.indexOf("mobile")>-1,iOS:/(ipad|iphone|ipod)/.test(a),isCustomDomain:function(){if(!this.ie)return false;var a=document.domain,b=window.location.hostname;return a!=b&&a!="["+b+"]"},secure:location.protocol=="https:"};b.gecko=navigator.product=="Gecko"&&!b.webkit&&!b.ie;if(b.webkit)a.indexOf("chrome")>-1?b.chrome=true:b.safari=true;var d=0;if(b.ie){d=f?parseFloat(f[1]): -b.quirks||!document.documentMode?parseFloat(a.match(/msie (\d+)/)[1]):document.documentMode;b.ie9Compat=d==9;b.ie8Compat=d==8;b.ie7Compat=d==7;b.ie6Compat=d<7||b.quirks}if(b.gecko)if(f=a.match(/rv:([\d\.]+)/)){f=f[1].split(".");d=f[0]*1E4+(f[1]||0)*100+(f[2]||0)*1}b.air&&(d=parseFloat(a.match(/ adobeair\/(\d+)/)[1]));b.webkit&&(d=parseFloat(a.match(/ applewebkit\/(\d+)/)[1]));b.version=d;b.isCompatible=!(b.ie&&d<7)&&!(b.gecko&&d<4E4)&&!(b.webkit&&d<534);b.hidpi=window.devicePixelRatio>=2;b.needsBrFiller= -b.gecko||b.webkit||b.ie&&d>10;b.needsNbspFiller=b.ie&&d<11;b.cssClass="cke_browser_"+(b.ie?"ie":b.gecko?"gecko":b.webkit?"webkit":"unknown");if(b.quirks)b.cssClass=b.cssClass+" cke_browser_quirks";if(b.ie)b.cssClass=b.cssClass+(" cke_browser_ie"+(b.quirks?"6 cke_browser_iequirks":b.version));if(b.air)b.cssClass=b.cssClass+" cke_browser_air";if(b.iOS)b.cssClass=b.cssClass+" cke_browser_ios";if(b.hidpi)b.cssClass=b.cssClass+" cke_hidpi";return b}()),"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR); -CKEDITOR.loadFullCore=function(){if(CKEDITOR.status!="basic_ready")CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var a=document.createElement("script");a.type="text/javascript";a.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(a)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(a){(this._.pending||(this._.pending=[])).push(a)};(function(){CKEDITOR.domReady(function(){var a=CKEDITOR.loadFullCore,f=CKEDITOR.loadFullCoreTimeout;if(a){CKEDITOR.status= -"basic_ready";a&&a._load?a():f&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},f*1E3)}})})();CKEDITOR.status="basic_loaded"}(),CKEDITOR.dom={},function(){var a=[],f=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",b=/&/g,d=/>/g,h=/</g,k=/"/g,j=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,i={lt:"<",gt:">",amp:"&",quot:'"',nbsp:" ",shy:"Â"},e=function(c,g){return g[0]=="#"?String.fromCharCode(parseInt(g.slice(1),10)):i[g]};CKEDITOR.on("reset",function(){a= -[]});CKEDITOR.tools={arrayCompare:function(c,g){if(!c&&!g)return true;if(!c||!g||c.length!=g.length)return false;for(var a=0;a<c.length;a++)if(c[a]!=g[a])return false;return true},getIndex:function(c,g){for(var a=0;a<c.length;++a)if(g(c[a]))return a;return-1},clone:function(c){var g;if(c&&c instanceof Array){g=[];for(var a=0;a<c.length;a++)g[a]=CKEDITOR.tools.clone(c[a]);return g}if(c===null||typeof c!="object"||c instanceof String||c instanceof Number||c instanceof Boolean||c instanceof Date||c instanceof -RegExp||c.nodeType||c.window===c)return c;g=new c.constructor;for(a in c)g[a]=CKEDITOR.tools.clone(c[a]);return g},capitalize:function(c,g){return c.charAt(0).toUpperCase()+(g?c.slice(1):c.slice(1).toLowerCase())},extend:function(c){var g=arguments.length,a,i;if(typeof(a=arguments[g-1])=="boolean")g--;else if(typeof(a=arguments[g-2])=="boolean"){i=arguments[g-1];g=g-2}for(var e=1;e<g;e++){var b=arguments[e],d;for(d in b)if(a===true||c[d]==null)if(!i||d in i)c[d]=b[d]}return c},prototypedCopy:function(c){var g= -function(){};g.prototype=c;return new g},copy:function(c){var g={},a;for(a in c)g[a]=c[a];return g},isArray:function(c){return Object.prototype.toString.call(c)=="[object Array]"},isEmpty:function(c){for(var g in c)if(c.hasOwnProperty(g))return false;return true},cssVendorPrefix:function(c,g,a){if(a)return f+c+":"+g+";"+c+":"+g;a={};a[c]=g;a[f+c]=g;return a},cssStyleToDomStyle:function(){var c=document.createElement("div").style,g=typeof c.cssFloat!="undefined"?"cssFloat":typeof c.styleFloat!="undefined"? -"styleFloat":"float";return function(c){return c=="float"?g:c.replace(/-./g,function(g){return g.substr(1).toUpperCase()})}}(),buildStyleHtml:function(c){for(var c=[].concat(c),g,a=[],i=0;i<c.length;i++)if(g=c[i])/@import|[{}]/.test(g)?a.push("<style>"+g+"</style>"):a.push('<link type="text/css" rel=stylesheet href="'+g+'">');return a.join("")},htmlEncode:function(c){return c===void 0||c===null?"":(""+c).replace(b,"&").replace(d,">").replace(h,"<")},htmlDecode:function(c){return c.replace(j, -e)},htmlEncodeAttr:function(c){return CKEDITOR.tools.htmlEncode(c).replace(k,""")},htmlDecodeAttr:function(c){return CKEDITOR.tools.htmlDecode(c)},transformPlainTextToHtml:function(c,g){var a=g==CKEDITOR.ENTER_BR,i=this.htmlEncode(c.replace(/\r\n/g,"\n")),i=i.replace(/\t/g," "),e=g==CKEDITOR.ENTER_P?"p":"div";if(!a){var b=/\n{2}/g;if(b.test(i))var d="<"+e+">",h="</"+e+">",i=d+i.replace(b,function(){return h+d})+h}i=i.replace(/\n/g,"<br>");a||(i=i.replace(RegExp("<br>(?=</"+ -e+">)"),function(g){return CKEDITOR.tools.repeat(g,2)}));i=i.replace(/^ | $/g," ");return i=i.replace(/(>|\s) /g,function(g,c){return c+" "}).replace(/ (?=<)/g," ")},getNextNumber:function(){var c=0;return function(){return++c}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var c="e",g=0;g<8;g++)c=c+Math.floor((1+Math.random())*65536).toString(16).substring(1);return c},override:function(c,g){var a=g(c);a.prototype=c.prototype;return a},setTimeout:function(c, -g,a,i,e){e||(e=window);a||(a=e);return e.setTimeout(function(){i?c.apply(a,[].concat(i)):c.apply(a)},g||0)},trim:function(){var c=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(g){return g.replace(c,"")}}(),ltrim:function(){var c=/^[ \t\n\r]+/g;return function(g){return g.replace(c,"")}}(),rtrim:function(){var c=/[ \t\n\r]+$/g;return function(g){return g.replace(c,"")}}(),indexOf:function(c,g){if(typeof g=="function")for(var a=0,i=c.length;a<i;a++){if(g(c[a]))return a}else{if(c.indexOf)return c.indexOf(g); -a=0;for(i=c.length;a<i;a++)if(c[a]===g)return a}return-1},search:function(c,g){var a=CKEDITOR.tools.indexOf(c,g);return a>=0?c[a]:null},bind:function(c,g){return function(){return c.apply(g,arguments)}},createClass:function(c){var g=c.$,a=c.base,i=c.privates||c._,e=c.proto,c=c.statics;!g&&(g=function(){a&&this.base.apply(this,arguments)});if(i)var b=g,g=function(){var g=this._||(this._={}),c;for(c in i){var a=i[c];g[c]=typeof a=="function"?CKEDITOR.tools.bind(a,this):a}b.apply(this,arguments)};if(a){g.prototype= -this.prototypedCopy(a.prototype);g.prototype.constructor=g;g.base=a;g.baseProto=a.prototype;g.prototype.base=function(){this.base=a.prototype.base;a.apply(this,arguments);this.base=arguments.callee}}e&&this.extend(g.prototype,e,true);c&&this.extend(g,c,true);return g},addFunction:function(c,g){return a.push(function(){return c.apply(g||this,arguments)})-1},removeFunction:function(c){a[c]=null},callFunction:function(c){var g=a[c];return g&&g.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var c= -/^-?\d+\.?\d*px$/,g;return function(a){g=CKEDITOR.tools.trim(a+"")+"px";return c.test(g)?g:a||""}}(),convertToPx:function(){var c;return function(g){if(!c){c=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(c)}if(!/%$/.test(g)){c.setStyle("width",g);return c.$.clientWidth}return g}}(),repeat:function(c,g){return Array(g+1).join(c)},tryThese:function(){for(var c, -g=0,a=arguments.length;g<a;g++){var i=arguments[g];try{c=i();break}catch(e){}}return c},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(c){return function(){var g=arguments,a=this;window.setTimeout(function(){c.apply(a,g)},0)}},normalizeCssText:function(c,g){var a=[],i,e=CKEDITOR.tools.parseCssText(c,true,g);for(i in e)a.push(i+":"+e[i]);a.sort();return a.length?a.join(";")+";":""},convertRgbToHex:function(c){return c.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi, -function(g,c,a,i){g=[c,a,i];for(c=0;c<3;c++)g[c]=("0"+parseInt(g[c],10).toString(16)).slice(-2);return"#"+g.join("")})},parseCssText:function(c,g,a){var i={};if(a){a=new CKEDITOR.dom.element("span");a.setAttribute("style",c);c=CKEDITOR.tools.convertRgbToHex(a.getAttribute("style")||"")}if(!c||c==";")return i;c.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(c,a,e){if(g){a=a.toLowerCase();a=="font-family"&&(e=e.toLowerCase().replace(/["']/g,"").replace(/\s*,\s*/g,",")); -e=CKEDITOR.tools.trim(e)}i[a]=e});return i},writeCssText:function(c,g){var a,i=[];for(a in c)i.push(a+":"+c[a]);g&&i.sort();return i.join("; ")},objectCompare:function(c,g,a){var i;if(!c&&!g)return true;if(!c||!g)return false;for(i in c)if(c[i]!=g[i])return false;if(!a)for(i in g)if(c[i]!=g[i])return false;return true},objectKeys:function(c){var g=[],a;for(a in c)g.push(a);return g},convertArrayToObject:function(c,g){var a={};arguments.length==1&&(g=true);for(var i=0,e=c.length;i<e;++i)a[c[i]]=g; -return a},fixDomain:function(){for(var c;;)try{c=window.parent.document.domain;break}catch(g){c=c?c.replace(/.+?(?:\.|$)/,""):document.domain;if(!c)break;document.domain=c}return!!c},eventsBuffer:function(c,g,a){function i(){b=(new Date).getTime();e=false;a?g.call(a):g()}var e,b=0;return{input:function(){if(!e){var g=(new Date).getTime()-b;g<c?e=setTimeout(i,c-g):i()}},reset:function(){e&&clearTimeout(e);e=b=0}}},enableHtml5Elements:function(c,g){for(var a=["abbr","article","aside","audio","bdi", -"canvas","data","datalist","details","figcaption","figure","footer","header","hgroup","main","mark","meter","nav","output","progress","section","summary","time","video"],i=a.length,e;i--;){e=c.createElement(a[i]);g&&c.appendChild(e)}},checkIfAnyArrayItemMatches:function(c,g){for(var a=0,i=c.length;a<i;++a)if(c[a].match(g))return true;return false},checkIfAnyObjectPropertyMatches:function(c,g){for(var a in c)if(a.match(g))return true;return false},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw=="}}(), -CKEDITOR.dtd=function(){var a=CKEDITOR.tools.extend,f=function(c,g){for(var a=CKEDITOR.tools.clone(c),i=1;i<arguments.length;i++){var g=arguments[i],e;for(e in g)delete a[e]}return a},b={},d={},h={address:1,article:1,aside:1,blockquote:1,details:1,div:1,dl:1,fieldset:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,main:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},k={command:1,link:1,meta:1,noscript:1,script:1,style:1},j={},i={"#":1},e={center:1,dir:1,noframes:1}; -a(b,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},i,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});a(d,h,b,e);f={a:f(b,{a:1,button:1}),abbr:b,address:d, -area:j,article:d,aside:d,audio:a({source:1,track:1},d),b:b,base:j,bdi:b,bdo:b,blockquote:d,body:d,br:j,button:f(b,{a:1,button:1}),canvas:b,caption:d,cite:b,code:b,col:j,colgroup:{col:1},command:j,datalist:a({option:1},b),dd:d,del:b,details:a({summary:1},d),dfn:b,div:d,dl:{dt:1,dd:1},dt:d,em:b,embed:j,fieldset:a({legend:1},d),figcaption:d,figure:a({figcaption:1},d),footer:d,form:d,h1:b,h2:b,h3:b,h4:b,h5:b,h6:b,head:a({title:1,base:1},k),header:d,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:j,html:a({head:1, -body:1},d,k),i:b,iframe:i,img:j,input:j,ins:b,kbd:b,keygen:j,label:b,legend:b,li:d,link:j,main:d,map:d,mark:b,menu:a({li:1},d),meta:j,meter:f(b,{meter:1}),nav:d,noscript:a({link:1,meta:1,style:1},b),object:a({param:1},b),ol:{li:1},optgroup:{option:1},option:i,output:b,p:b,param:j,pre:b,progress:f(b,{progress:1}),q:b,rp:b,rt:b,ruby:a({rp:1,rt:1},b),s:b,samp:b,script:i,section:d,select:{optgroup:1,option:1},small:b,source:j,span:b,strong:b,style:i,sub:b,summary:b,sup:b,table:{caption:1,colgroup:1,thead:1, -tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:d,textarea:i,tfoot:{tr:1},th:d,thead:{tr:1},time:f(b,{time:1}),title:i,tr:{th:1,td:1},track:j,u:b,ul:{li:1},"var":b,video:a({source:1,track:1},d),wbr:j,acronym:b,applet:a({param:1},d),basefont:j,big:b,center:d,dialog:j,dir:{li:1},font:b,isindex:j,noframes:d,strike:b,tt:b};a(f,{$block:a({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},h,e),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1, -form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,main:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1},$inline:b,$list:{dl:1,ol:1, -ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:a({body:1,head:1,html:1},f.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,samp:1,small:1,span:1,strike:1,strong:1, -sub:1,sup:1,time:1,tt:1,u:1,"var":1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1,ins:1,map:1,noscript:1,object:1,video:1},$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}});return f}(),CKEDITOR.dom.event=function(a){this.$=a},CKEDITOR.dom.event.prototype= -{getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var a=this.getKey();if(this.$.ctrlKey||this.$.metaKey)a=a+CKEDITOR.CTRL;this.$.shiftKey&&(a=a+CKEDITOR.SHIFT);this.$.altKey&&(a=a+CKEDITOR.ALT);return a},preventDefault:function(a){var f=this.$;f.preventDefault?f.preventDefault():f.returnValue=false;a&&this.stopPropagation()},stopPropagation:function(){var a=this.$;a.stopPropagation?a.stopPropagation():a.cancelBubble=true},getTarget:function(){var a=this.$.target||this.$.srcElement; -return a?new CKEDITOR.dom.node(a):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var a=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(a.documentElement.scrollLeft||a.body.scrollLeft),y:this.$.pageY||this.$.clientY+(a.documentElement.scrollTop||a.body.scrollTop)}}},CKEDITOR.CTRL=1114112,CKEDITOR.SHIFT=2228224,CKEDITOR.ALT=4456448,CKEDITOR.EVENT_PHASE_CAPTURING=1,CKEDITOR.EVENT_PHASE_AT_TARGET=2,CKEDITOR.EVENT_PHASE_BUBBLING=3,CKEDITOR.dom.domObject= -function(a){if(a)this.$=a},CKEDITOR.dom.domObject.prototype=function(){var a=function(a,b){return function(d){typeof CKEDITOR!="undefined"&&a.fire(b,new CKEDITOR.dom.event(d))}};return{getPrivate:function(){var a;if(!(a=this.getCustomData("_")))this.setCustomData("_",a={});return a},on:function(f){var b=this.getCustomData("_cke_nativeListeners");if(!b){b={};this.setCustomData("_cke_nativeListeners",b)}if(!b[f]){b=b[f]=a(this,f);this.$.addEventListener?this.$.addEventListener(f,b,!!CKEDITOR.event.useCapture): -this.$.attachEvent&&this.$.attachEvent("on"+f,b)}return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(a){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(a)){var b=this.getCustomData("_cke_nativeListeners"),d=b&&b[a];if(d){this.$.removeEventListener?this.$.removeEventListener(a,d,false):this.$.detachEvent&&this.$.detachEvent("on"+a,d);delete b[a]}}},removeAllListeners:function(){var a=this.getCustomData("_cke_nativeListeners"),b;for(b in a){var d= -a[b];this.$.detachEvent?this.$.detachEvent("on"+b,d):this.$.removeEventListener&&this.$.removeEventListener(b,d,false);delete a[b]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}(),function(a){var f={};CKEDITOR.on("reset",function(){f={}});a.equals=function(a){try{return a&&a.$===this.$}catch(d){return false}};a.setCustomData=function(a,d){var h=this.getUniqueId();(f[h]||(f[h]={}))[a]=d;return this};a.getCustomData=function(a){var d=this.$["data-cke-expando"];return(d=d&&f[d])&&a in d?d[a]: -null};a.removeCustomData=function(a){var d=this.$["data-cke-expando"],d=d&&f[d],h,k;if(d){h=d[a];k=a in d;delete d[a]}return k?h:null};a.clearCustomData=function(){this.removeAllListeners();var a=this.$["data-cke-expando"];a&&delete f[a]};a.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(a)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(a){return a?new CKEDITOR.dom[a.nodeType==CKEDITOR.NODE_DOCUMENT? -"document":a.nodeType==CKEDITOR.NODE_ELEMENT?"element":a.nodeType==CKEDITOR.NODE_TEXT?"text":a.nodeType==CKEDITOR.NODE_COMMENT?"comment":a.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](a):this},CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT=3,CKEDITOR.NODE_COMMENT=8,CKEDITOR.NODE_DOCUMENT_FRAGMENT=11,CKEDITOR.POSITION_IDENTICAL=0,CKEDITOR.POSITION_DISCONNECTED=1,CKEDITOR.POSITION_FOLLOWING=2,CKEDITOR.POSITION_PRECEDING= -4,CKEDITOR.POSITION_IS_CONTAINED=8,CKEDITOR.POSITION_CONTAINS=16,CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(a,f){a.append(this,f);return a},clone:function(a,f){function b(d){d["data-cke-expando"]&&(d["data-cke-expando"]=false);if(!(d.nodeType!=CKEDITOR.NODE_ELEMENT&&d.nodeType!=CKEDITOR.NODE_DOCUMENT_FRAGMENT)){!f&&d.nodeType==CKEDITOR.NODE_ELEMENT&&d.removeAttribute("id",false);if(a)for(var d=d.childNodes,h=0;h<d.length;h++)b(d[h])}}function d(b){if(!(b.type!=CKEDITOR.NODE_ELEMENT&& -b.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT)){if(b.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var h=b.getName();h[0]==":"&&b.renameNode(h.substring(1))}if(a)for(h=0;h<b.getChildCount();h++)d(b.getChild(h))}}var h=this.$.cloneNode(a);b(h);h=new CKEDITOR.dom.node(h);CKEDITOR.env.ie&&(CKEDITOR.env.version<9&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT))&&d(h);return h},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(a){a.$.parentNode.insertBefore(this.$, -a.$.nextSibling);return a},insertBefore:function(a){a.$.parentNode.insertBefore(this.$,a.$);return a},insertBeforeMe:function(a){this.$.parentNode.insertBefore(a.$,this.$);return a},getAddress:function(a){for(var f=[],b=this.getDocument().$.documentElement,d=this.$;d&&d!=b;){var h=d.parentNode;h&&f.unshift(this.getIndex.call({$:d},a));d=h}return f},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(a){function f(a,b){var i= -b?a.nextSibling:a.previousSibling;return!i||i.nodeType!=CKEDITOR.NODE_TEXT?null:i.nodeValue?i:f(i,b)}var b=this.$,d=-1,h;if(!this.$.parentNode||a&&b.nodeType==CKEDITOR.NODE_TEXT&&!b.nodeValue&&!f(b)&&!f(b,true))return-1;do if(!a||!(b!=this.$&&b.nodeType==CKEDITOR.NODE_TEXT&&(h||!b.nodeValue))){d++;h=b.nodeType==CKEDITOR.NODE_TEXT}while(b=b.previousSibling);return d},getNextSourceNode:function(a,f,b){if(b&&!b.call)var d=b,b=function(a){return!a.equals(d)};var a=!a&&this.getFirst&&this.getFirst(),h; -if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;a=this.getNext()}for(;!a&&(h=(h||this).getParent());){if(b&&b(h,true)===false)return null;a=h.getNext()}return!a||b&&b(a)===false?null:f&&f!=a.type?a.getNextSourceNode(false,f,b):a},getPreviousSourceNode:function(a,f,b){if(b&&!b.call)var d=b,b=function(a){return!a.equals(d)};var a=!a&&this.getLast&&this.getLast(),h;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&b(this,true)===false)return null;a=this.getPrevious()}for(;!a&& -(h=(h||this).getParent());){if(b&&b(h,true)===false)return null;a=h.getPrevious()}return!a||b&&b(a)===false?null:f&&a.type!=f?a.getPreviousSourceNode(false,f,b):a},getPrevious:function(a){var f=this.$,b;do b=(f=f.previousSibling)&&f.nodeType!=10&&new CKEDITOR.dom.node(f);while(b&&a&&!a(b));return b},getNext:function(a){var f=this.$,b;do b=(f=f.nextSibling)&&new CKEDITOR.dom.node(f);while(b&&a&&!a(b));return b},getParent:function(a){var f=this.$.parentNode;return f&&(f.nodeType==CKEDITOR.NODE_ELEMENT|| -a&&f.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(f):null},getParents:function(a){var f=this,b=[];do b[a?"push":"unshift"](f);while(f=f.getParent());return b},getCommonAncestor:function(a){if(a.equals(this))return this;if(a.contains&&a.contains(this))return a;var f=this.contains?this:this.getParent();do if(f.contains(a))return f;while(f=f.getParent());return null},getPosition:function(a){var f=this.$,b=a.$;if(f.compareDocumentPosition)return f.compareDocumentPosition(b);if(f== -b)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&a.type==CKEDITOR.NODE_ELEMENT){if(f.contains){if(f.contains(b))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(b.contains(f))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in f)return f.sourceIndex<0||b.sourceIndex<0?CKEDITOR.POSITION_DISCONNECTED:f.sourceIndex<b.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}for(var f=this.getAddress(),a=a.getAddress(), -b=Math.min(f.length,a.length),d=0;d<b;d++)if(f[d]!=a[d])return f[d]<a[d]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return f.length<a.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(a,f){var b=this.$,d,h;if(!f)b=b.parentNode;if(typeof a=="function"){h=true;d=a}else{h=false;d=function(b){b=typeof b.nodeName=="string"?b.nodeName.toLowerCase():"";return typeof a=="string"?b==a:b in a}}for(;b;){if(d(h? -new CKEDITOR.dom.node(b):b))return new CKEDITOR.dom.node(b);try{b=b.parentNode}catch(k){b=null}}return null},hasAscendant:function(a,f){var b=this.$;if(!f)b=b.parentNode;for(;b;){if(b.nodeName&&b.nodeName.toLowerCase()==a)return true;b=b.parentNode}return false},move:function(a,f){a.append(this.remove(),f)},remove:function(a){var f=this.$,b=f.parentNode;if(b){if(a)for(;a=f.firstChild;)b.insertBefore(f.removeChild(a),f);b.removeChild(f)}return this},replace:function(a){this.insertBefore(a);a.remove()}, -trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var a;this.getFirst&&(a=this.getFirst());){if(a.type==CKEDITOR.NODE_TEXT){var f=CKEDITOR.tools.ltrim(a.getText()),b=a.getLength();if(f){if(f.length<b){a.split(b-f.length);this.$.removeChild(this.$.firstChild)}}else{a.remove();continue}}break}},rtrim:function(){for(var a;this.getLast&&(a=this.getLast());){if(a.type==CKEDITOR.NODE_TEXT){var f=CKEDITOR.tools.rtrim(a.getText()),b=a.getLength();if(f){if(f.length<b){a.split(f.length);this.$.lastChild.parentNode.removeChild(this.$.lastChild)}}else{a.remove(); -continue}}break}if(CKEDITOR.env.needsBrFiller)(a=this.$.lastChild)&&(a.type==1&&a.nodeName.toLowerCase()=="br")&&a.parentNode.removeChild(a)},isReadOnly:function(a){var f=this;this.type!=CKEDITOR.NODE_ELEMENT&&(f=this.getParent());CKEDITOR.env.edge&&(f&&f.is("textarea"))&&(a=true);if(!a&&f&&typeof f.$.isContentEditable!="undefined")return!(f.$.isContentEditable||f.data("cke-editable"));for(;f;){if(f.data("cke-editable"))return false;if(f.hasAttribute("contenteditable"))return f.getAttribute("contenteditable")== -"false";f=f.getParent()}return true}}),CKEDITOR.dom.window=function(a){CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},getViewPaneSize:function(){var a=this.$.document,f=a.compatMode=="CSS1Compat";return{width:(f?a.documentElement.clientWidth:a.body.clientWidth)||0,height:(f?a.documentElement.clientHeight:a.body.clientHeight)||0}},getScrollPosition:function(){var a=this.$; -if("pageXOffset"in a)return{x:a.pageXOffset||0,y:a.pageYOffset||0};a=a.document;return{x:a.documentElement.scrollLeft||a.body.scrollLeft||0,y:a.documentElement.scrollTop||a.body.scrollTop||0}},getFrame:function(){var a=this.$.frameElement;return a?new CKEDITOR.dom.element.get(a):null}}),CKEDITOR.dom.document=function(a){CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT, -appendStyleSheet:function(a){if(this.$.createStyleSheet)this.$.createStyleSheet(a);else{var f=new CKEDITOR.dom.element("link");f.setAttributes({rel:"stylesheet",type:"text/css",href:a});this.getHead().append(f)}},appendStyleText:function(a){if(this.$.createStyleSheet){var f=this.$.createStyleSheet("");f.cssText=a}else{var b=new CKEDITOR.dom.element("style",this);b.append(new CKEDITOR.dom.text(a,this));this.getHead().append(b)}return f||b.$.sheet},createElement:function(a,f){var b=new CKEDITOR.dom.element(a, -this);if(f){f.attributes&&b.setAttributes(f.attributes);f.styles&&b.setStyles(f.styles)}return b},createText:function(a){return new CKEDITOR.dom.text(a,this)},focus:function(){this.getWindow().focus()},getActive:function(){var a;try{a=this.$.activeElement}catch(f){return null}return new CKEDITOR.dom.element(a)},getById:function(a){return(a=this.$.getElementById(a))?new CKEDITOR.dom.element(a):null},getByAddress:function(a,f){for(var b=this.$.documentElement,d=0;b&&d<a.length;d++){var h=a[d];if(f)for(var k= --1,j=0;j<b.childNodes.length;j++){var i=b.childNodes[j];if(!(f===true&&i.nodeType==3&&i.previousSibling&&i.previousSibling.nodeType==3)){k++;if(k==h){b=i;break}}}else b=b.childNodes[h]}return b?new CKEDITOR.dom.node(b):null},getElementsByTag:function(a,f){!(CKEDITOR.env.ie&&document.documentMode<=8)&&f&&(a=f+":"+a);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(a))},getHead:function(){var a=this.$.getElementsByTagName("head")[0];return a=a?new CKEDITOR.dom.element(a):this.getDocumentElement().append(new CKEDITOR.dom.element("head"), -true)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(a){this.$.open("text/html","replace");CKEDITOR.env.ie&&(a=a.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$&\n<script data-cke-temp="1">('+CKEDITOR.tools.fixDomain+")();<\/script>"));this.$.write(a);this.$.close()},find:function(a){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(a))}, -findOne:function(a){return(a=this.$.querySelector(a))?new CKEDITOR.dom.element(a):null},_getHtml5ShivFrag:function(){var a=this.getCustomData("html5ShivFrag");if(!a){a=this.$.createDocumentFragment();CKEDITOR.tools.enableHtml5Elements(a,true);this.setCustomData("html5ShivFrag",a)}return a}}),CKEDITOR.dom.nodeList=function(a){this.$=a},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(a){if(a<0||a>=this.$.length)return null;return(a=this.$[a])?new CKEDITOR.dom.node(a): -null}},CKEDITOR.dom.element=function(a,f){typeof a=="string"&&(a=(f?f.$:document).createElement(a));CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.element.get=function(a){return(a=typeof a=="string"?document.getElementById(a)||document.getElementsByName(a)[0]:a)&&(a.$?a:new CKEDITOR.dom.element(a))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(a,f){var b=new CKEDITOR.dom.element("div",f);b.setHtml(a);return b.getFirst().remove()},CKEDITOR.dom.element.setMarker= -function(a,f,b,d){var h=f.getCustomData("list_marker_id")||f.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),k=f.getCustomData("list_marker_names")||f.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");a[h]=f;k[b]=1;return f.setCustomData(b,d)},CKEDITOR.dom.element.clearAllMarkers=function(a){for(var f in a)CKEDITOR.dom.element.clearMarkers(a,a[f],1)},CKEDITOR.dom.element.clearMarkers=function(a,f,b){var d=f.getCustomData("list_marker_names"), -h=f.getCustomData("list_marker_id"),k;for(k in d)f.removeCustomData(k);f.removeCustomData("list_marker_names");if(b){f.removeCustomData("list_marker_id");delete a[h]}},function(){function a(a,e){return(" "+a+" ").replace(k," ").indexOf(" "+e+" ")>-1}function f(a){var e=true;if(!a.$.id){a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber();e=false}return function(){e||a.removeAttribute("id")}}function b(a,e){return"#"+a.$.id+" "+e.split(/,\s*/).join(", #"+a.$.id+" ")}function d(a){for(var e=0,c=0,g=j[a].length;c< -g;c++)e=e+(parseInt(this.getComputedStyle(j[a][c])||0,10)||0);return e}var h=!!document.createElement("span").classList,k=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:h?function(a){this.$.classList.add(a);return this}:function(i){var e=this.$.className;e&&(a(e,i)||(e=e+(" "+i)));this.$.className=e||i;return this},removeClass:h?function(a){var e=this.$;e.classList.remove(a);e.className||e.removeAttribute("class");return this}:function(i){var e= -this.getAttribute("class");if(e&&a(e,i))(e=e.replace(RegExp("(?:^|\\s+)"+i+"(?=\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",e):this.removeAttribute("class");return this},hasClass:function(i){return a(this.$.className,i)},append:function(a,e){typeof a=="string"&&(a=this.getDocument().createElement(a));e?this.$.insertBefore(a.$,this.$.firstChild):this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var e=new CKEDITOR.dom.element("div",this.getDocument()); -e.setHtml(a);e.moveChildren(this)}else this.setHtml(a)},appendText:function(a){this.$.text!=null&&CKEDITOR.env.ie&&CKEDITOR.env.version<9?this.$.text=this.$.text+a:this.append(new CKEDITOR.dom.text(a))},appendBogus:function(a){if(a||CKEDITOR.env.needsBrFiller){for(a=this.getLast();a&&a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(a.getText());)a=a.getPrevious();if(!a||!a.is||!a.is("br")){a=this.getDocument().createElement("br");CKEDITOR.env.gecko&&a.setAttribute("type","_moz");this.append(a)}}}, -breakParent:function(a,e){var c=new CKEDITOR.dom.range(this.getDocument());c.setStartAfter(this);c.setEndAfter(a);var g=c.extractContents(false,e||false);c.insertNode(this.remove());g.insertAfterNode(this)},contains:!document.compareDocumentPosition?function(a){var e=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?e.contains(a.getParent().$):e!=a.$&&e.contains(a.$)}:function(a){return!!(this.$.compareDocumentPosition(a.$)&16)},focus:function(){function a(){try{this.$.focus()}catch(i){}}return function(e){e? -CKEDITOR.tools.setTimeout(a,100,this):a.call(this)}}(),getHtml:function(){var a=this.$.innerHTML;return CKEDITOR.env.ie?a.replace(/<\?[^>]*>/g,""):a},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var a=this.$.ownerDocument.createElement("div");a.appendChild(this.$.cloneNode(true));return a.innerHTML},getClientRect:function(){var a=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!a.width&&(a.width=a.right-a.left);!a.height&&(a.height=a.bottom- -a.top);return a},setHtml:CKEDITOR.env.ie&&CKEDITOR.env.version<9?function(a){try{var e=this.$;if(this.getParent())return e.innerHTML=a;var c=this.getDocument()._getHtml5ShivFrag();c.appendChild(e);e.innerHTML=a;c.removeChild(e);return a}catch(g){this.$.innerHTML="";e=new CKEDITOR.dom.element("body",this.getDocument());e.$.innerHTML=a;for(e=e.getChildren();e.count();)this.append(e.getItem(0));return a}}:function(a){return this.$.innerHTML=a},setText:function(){var a=document.createElement("p");a.innerHTML= -"x";a=a.textContent;return function(e){this.$[a?"textContent":"innerText"]=e}}(),getAttribute:function(){var a=function(a){return this.$.getAttribute(a,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){switch(a){case "class":a="className";break;case "http-equiv":a="httpEquiv";break;case "name":return this.$.name;case "tabindex":a=this.$.getAttribute(a,2);a!==0&&this.$.tabIndex===0&&(a=null);return a;case "checked":a=this.$.attributes.getNamedItem(a);return(a.specified? -a.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[a];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(a,2)}:a}(),getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(a){var e=this.getWindow().$.getComputedStyle(this.$, -null);return e?e.getPropertyValue(a):""}:function(a){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(a)]},getDtd:function(){var a=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return a};return a},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:function(){var a=this.$.tabIndex;return a===0&&!CKEDITOR.dtd.$tabIndex[this.getName()]&&parseInt(this.getAttribute("tabindex"),10)!==0?-1:a},getText:function(){return this.$.textContent||this.$.innerText||""}, -getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var a=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&document.documentMode<=8){var e=this.$.scopeName;e!="HTML"&&(a=e.toLowerCase()+":"+a)}this.getName=function(){return a};return this.getName()},getValue:function(){return this.$.value},getFirst:function(a){var e=this.$.firstChild;(e=e&&new CKEDITOR.dom.node(e))&&(a&&!a(e))&&(e= -e.getNext(a));return e},getLast:function(a){var e=this.$.lastChild;(e=e&&new CKEDITOR.dom.node(e))&&(a&&!a(e))&&(e=e.getPrevious(a));return e},getStyle:function(a){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]},is:function(){var a=this.getName();if(typeof arguments[0]=="object")return!!arguments[0][a];for(var e=0;e<arguments.length;e++)if(arguments[e]==a)return true;return false},isEditable:function(a){var e=this.getName();if(this.isReadOnly()||this.getComputedStyle("display")=="none"|| -this.getComputedStyle("visibility")=="hidden"||CKEDITOR.dtd.$nonEditable[e]||CKEDITOR.dtd.$empty[e]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())return false;if(a!==false){a=CKEDITOR.dtd[e]||CKEDITOR.dtd.span;return!(!a||!a["#"])}return true},isIdentical:function(a){var e=this.clone(0,1),a=a.clone(0,1);e.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);a.removeAttributes(["_moz_dirty","data-cke-expando", -"data-cke-saved-href","data-cke-saved-name"]);if(e.$.isEqualNode){e.$.style.cssText=CKEDITOR.tools.normalizeCssText(e.$.style.cssText);a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText);return e.$.isEqualNode(a.$)}e=e.getOuterHtml();a=a.getOuterHtml();if(CKEDITOR.env.ie&&CKEDITOR.env.version<9&&this.is("a")){var c=this.getParent();if(c.type==CKEDITOR.NODE_ELEMENT){c=c.clone();c.setHtml(e);e=c.getHtml();c.setHtml(a);a=c.getHtml()}}return e==a},isVisible:function(){var a=(this.$.offsetHeight|| -this.$.offsetWidth)&&this.getComputedStyle("visibility")!="hidden",e,c;if(a&&CKEDITOR.env.webkit){e=this.getWindow();if(!e.equals(CKEDITOR.document.getWindow())&&(c=e.$.frameElement))a=(new CKEDITOR.dom.element(c)).isVisible()}return!!a},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return false;for(var a=this.getChildren(),e=0,c=a.count();e<c;e++){var g=a.getItem(e);if(!(g.type==CKEDITOR.NODE_ELEMENT&&g.data("cke-bookmark"))&&(g.type==CKEDITOR.NODE_ELEMENT&&!g.isEmptyInlineRemoveable()|| -g.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(g.getText())))return false}return true},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var a=this.$.attributes,e=0;e<a.length;e++){var c=a[e];switch(c.nodeName){case "class":if(this.getAttribute("class"))return true;case "data-cke-expando":continue;default:if(c.specified)return true}}return false}:function(){var a=this.$.attributes,e=a.length,c={"data-cke-expando":1,_moz_dirty:1};return e>0&&(e>2||!c[a[0].nodeName]|| -e==2&&!c[a[1].nodeName])},hasAttribute:function(){function a(e){var c=this.$.attributes.getNamedItem(e);if(this.getName()=="input")switch(e){case "class":return this.$.className.length>0;case "checked":return!!this.$.checked;case "value":e=this.getAttribute("type");return e=="checkbox"||e=="radio"?this.$.value!="on":!!this.$.value}return!c?false:c.specified}return CKEDITOR.env.ie?CKEDITOR.env.version<8?function(e){return e=="name"?!!this.$.name:a.call(this,e)}:a:function(a){return!!this.$.attributes.getNamedItem(a)}}(), -hide:function(){this.setStyle("display","none")},moveChildren:function(a,e){var c=this.$,a=a.$;if(c!=a){var g;if(e)for(;g=c.lastChild;)a.insertBefore(c.removeChild(g),a.firstChild);else for(;g=c.firstChild;)a.appendChild(c.removeChild(g))}},mergeSiblings:function(){function a(e,c,g){if(c&&c.type==CKEDITOR.NODE_ELEMENT){for(var b=[];c.data("cke-bookmark")||c.isEmptyInlineRemoveable();){b.push(c);c=g?c.getNext():c.getPrevious();if(!c||c.type!=CKEDITOR.NODE_ELEMENT)return}if(e.isIdentical(c)){for(var i= -g?e.getLast():e.getFirst();b.length;)b.shift().move(e,!g);c.moveChildren(e,!g);c.remove();i&&i.type==CKEDITOR.NODE_ELEMENT&&i.mergeSiblings()}}}return function(e){if(e===false||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a")){a(this,this.getNext(),true);a(this,this.getPrevious())}}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var a=function(a,c){this.$.setAttribute(a,c);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)? -function(e,c){e=="class"?this.$.className=c:e=="style"?this.$.style.cssText=c:e=="tabindex"?this.$.tabIndex=c:e=="checked"?this.$.checked=c:e=="contenteditable"?a.call(this,"contentEditable",c):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(e,c){if(e=="src"&&c.match(/^http:\/\//))try{a.apply(this,arguments)}catch(g){}else a.apply(this,arguments);return this}:a}(),setAttributes:function(a){for(var e in a)this.setAttribute(e,a[e]);return this},setValue:function(a){this.$.value= -a;return this},removeAttribute:function(){var a=function(a){this.$.removeAttribute(a)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){a=="class"?a="className":a=="tabindex"?a="tabIndex":a=="contenteditable"&&(a="contentEditable");this.$.removeAttribute(a)}:a}(),removeAttributes:function(a){if(CKEDITOR.tools.isArray(a))for(var e=0;e<a.length;e++)this.removeAttribute(a[e]);else for(e in a)a.hasOwnProperty(e)&&this.removeAttribute(e)},removeStyle:function(a){var e= -this.$.style;if(!e.removeProperty&&(a=="border"||a=="margin"||a=="padding")){var c=["top","left","right","bottom"],g;a=="border"&&(g=["color","style","width"]);for(var e=[],b=0;b<c.length;b++)if(g)for(var d=0;d<g.length;d++)e.push([a,c[b],g[d]].join("-"));else e.push([a,c[b]].join("-"));for(a=0;a<e.length;a++)this.removeStyle(e[a])}else{e.removeProperty?e.removeProperty(a):e.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(a));this.$.style.cssText||this.removeAttribute("style")}},setStyle:function(a, -b){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]=b;return this},setStyles:function(a){for(var b in a)this.setStyle(b,a[b]);return this},setOpacity:function(a){if(CKEDITOR.env.ie&&CKEDITOR.env.version<9){a=Math.round(a*100);this.setStyle("filter",a>=100?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+a+")")}else this.setStyle("opacity",a)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none"));if(CKEDITOR.env.ie){this.setAttribute("unselectable","on"); -for(var a,b=this.getElementsByTag("*"),c=0,g=b.count();c<g;c++){a=b.getItem(c);a.setAttribute("unselectable","on")}}},getPositionedAncestor:function(){for(var a=this;a.getName()!="html";){if(a.getComputedStyle("position")!="static")return a;a=a.getParent()}return null},getDocumentPosition:function(a){var b=0,c=0,g=this.getDocument(),l=g.getBody(),d=g.$.compatMode=="BackCompat";if(document.documentElement.getBoundingClientRect){var h=this.$.getBoundingClientRect(),o=g.$.documentElement,f=o.clientTop|| -l.$.clientTop||0,m=o.clientLeft||l.$.clientLeft||0,k=true;if(CKEDITOR.env.ie){k=g.getDocumentElement().contains(this);g=g.getBody().contains(this);k=d&&g||!d&&k}if(k){if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&CKEDITOR.env.version>=12){b=l.$.scrollLeft||o.scrollLeft;c=l.$.scrollTop||o.scrollTop}else{c=d?l.$:o;b=c.scrollLeft;c=c.scrollTop}b=h.left+b-m;c=h.top+c-f}}else{f=this;for(m=null;f&&!(f.getName()=="body"||f.getName()=="html");){b=b+(f.$.offsetLeft-f.$.scrollLeft);c=c+(f.$.offsetTop-f.$.scrollTop); -if(!f.equals(this)){b=b+(f.$.clientLeft||0);c=c+(f.$.clientTop||0)}for(;m&&!m.equals(f);){b=b-m.$.scrollLeft;c=c-m.$.scrollTop;m=m.getParent()}m=f;f=(h=f.$.offsetParent)?new CKEDITOR.dom.element(h):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&&!d){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<b.$.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 g=c.$.frameElement;g&&(b=new CKEDITOR.dom.element(g))}catch(l){}}}while(b=b.getParent())}},scrollIntoParent:function(a,b,c){var g,l,d,h;function o(g,c){if(/body|html/.test(a.getName()))a.getWindow().$.scrollBy(g,c);else{a.$.scrollLeft=a.$.scrollLeft+ -g;a.$.scrollTop=a.$.scrollTop+c}}function f(a,g){var c={x:0,y:0};if(!a.is(k?"body":"html")){var b=a.$.getBoundingClientRect();c.x=b.left;c.y=b.top}b=a.getWindow();if(!b.equals(g)){b=f(CKEDITOR.dom.element.get(b.$.frameElement),g);c.x=c.x+b.x;c.y=c.y+b.y}return c}function m(a,g){return parseInt(a.getComputedStyle("margin-"+g)||0,10)||0}!a&&(a=this.getWindow());d=a.getDocument();var k=d.$.compatMode=="BackCompat";a instanceof CKEDITOR.dom.window&&(a=k?d.getBody():d.getDocumentElement());d=a.getWindow(); -l=f(this,d);var j=f(a,d),y=this.$.offsetHeight;g=this.$.offsetWidth;var v=a.$.clientHeight,w=a.$.clientWidth;d=l.x-m(this,"left")-j.x||0;h=l.y-m(this,"top")-j.y||0;g=l.x+g+m(this,"right")-(j.x+w)||0;l=l.y+y+m(this,"bottom")-(j.y+v)||0;if(h<0||l>0)o(0,b===true?h:b===false?l:h<0?h:l);if(c&&(d<0||g>0))o(d<0?d:g,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+"_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,b){for(var c=this.$.attributes,b=b||{},g=0;g<c.length;g++){var l=c[g],d=l.nodeName.toLowerCase(),h;if(!(d in b))if(d=="checked"&&(h=this.getAttribute(d)))a.setAttribute(d,h);else if(!CKEDITOR.env.ie||this.hasAttribute(d)){h=this.getAttribute(d);if(h===null)h=l.nodeValue;a.setAttribute(d,h)}}if(this.$.style.cssText!=="")a.$.style.cssText=this.$.style.cssText},renameNode:function(a){if(this.getName()!=a){var b= -this.getDocument(),a=new CKEDITOR.dom.element(a,b);this.copyAttributes(a);this.moveChildren(a);this.getParent(true)&&this.$.parentNode.replaceChild(a.$,this.$);a.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=a.$;delete this.getName}},getChild:function(){function a(b,c){var g=b.childNodes;if(c>=0&&c<g.length)return g[c]}return function(b){var c=this.$;if(b.slice)for(b=b.slice();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")||a.data.preventDefault()})},getDirection:function(a){return a?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(a,b){a="data-"+a;if(b===void 0)return this.getAttribute(a);b===false?this.removeAttribute(a):this.setAttribute(a, -b);return null},getEditor:function(){var a=CKEDITOR.instances,b,c;for(b in a){c=a[b];if(c.element.equals(this)&&c.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO)return c}return null},find:function(a){var e=f(this),a=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(b(this,a)));e();return a},findOne:function(a){var e=f(this),a=this.$.querySelector(b(this,a));e();return a?new CKEDITOR.dom.element(a):null},forEach:function(a,b,c){if(!c&&(!b||this.type==b))var g=a(this);if(g!==false)for(var c=this.getChildren(), -l=0;l<c.count();l++){g=c.getItem(l);g.type==CKEDITOR.NODE_ELEMENT?g.forEach(a,b):(!b||g.type==b)&&a(g)}}});var j={width:["border-left-width","border-right-width","padding-left","padding-right"],height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};CKEDITOR.dom.element.prototype.setSize=function(a,b,c){if(typeof b=="number"){if(c&&(!CKEDITOR.env.ie||!CKEDITOR.env.quirks))b=b-d.call(this,a);this.setStyle(a,b+"px")}};CKEDITOR.dom.element.prototype.getSize=function(a,b){var c= -Math.max(this.$["offset"+CKEDITOR.tools.capitalize(a)],this.$["client"+CKEDITOR.tools.capitalize(a)])||0;b&&(c=c-d.call(this,a));return c}}(),CKEDITOR.dom.documentFragment=function(a){a=a||CKEDITOR.document;this.$=a.type==CKEDITOR.NODE_DOCUMENT?a.$.createDocumentFragment():a},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(a){a=a.$;a.parentNode.insertBefore(this.$,a.nextSibling)},getHtml:function(){var a= -new CKEDITOR.dom.element("div");this.clone(1,1).appendTo(a);return a.getHtml().replace(/\s*data-cke-expando=".*?"/g,"")}},!0,{append:1,appendBogus:1,clone:1,getFirst:1,getHtml:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1}),function(){function a(a,g){var c=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(c.collapsed){this.end(); -return null}c.optimize()}var b,d=c.startContainer;b=c.endContainer;var e=c.startOffset,h=c.endOffset,i,f=this.guard,k=this.type,j=a?"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var t=b.type==CKEDITOR.NODE_ELEMENT?b:b.getParent(),s=b.type==CKEDITOR.NODE_ELEMENT?b.getChild(h):b.getNext();this._.guardLTR=function(a,g){return(!g||!t.equals(a))&&(!s||!a.equals(s))&&(a.type!=CKEDITOR.NODE_ELEMENT||!g||!a.equals(c.root))}}if(a&&!this._.guardRTL){var z=d.type==CKEDITOR.NODE_ELEMENT? -d:d.getParent(),x=d.type==CKEDITOR.NODE_ELEMENT?e?d.getChild(e-1):null:d.getPrevious();this._.guardRTL=function(a,g){return(!g||!z.equals(a))&&(!x||!a.equals(x))&&(a.type!=CKEDITOR.NODE_ELEMENT||!g||!a.equals(c.root))}}var B=a?this._.guardRTL:this._.guardLTR;i=f?function(a,g){return B(a,g)===false?false:f(a,g)}:B;if(this.current)b=this.current[j](false,k,i);else{if(a)b.type==CKEDITOR.NODE_ELEMENT&&(b=h>0?b.getChild(h-1):i(b,true)===false?null:b.getPreviousSourceNode(true,k,i));else{b=d;if(b.type== -CKEDITOR.NODE_ELEMENT&&!(b=b.getChild(e)))b=i(d,true)===false?null:d.getNextSourceNode(true,k,i)}b&&i(b)===false&&(b=null)}for(;b&&!this._.end;){this.current=b;if(!this.evaluator||this.evaluator(b)!==false){if(!g)return b}else if(g&&this.evaluator)return false;b=b[j](false,k,i)}this.end();return this.current=null}function f(g){for(var c,b=null;c=a.call(this,g);)b=c;return b}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(a){this.range=a;this._={}},proto:{end:function(){this._.end=1},next:function(){return a.call(this)}, -previous:function(){return a.call(this,1)},checkForward:function(){return a.call(this,0,1)!==false},checkBackward:function(){return a.call(this,1,1)!==false},lastForward:function(){return f.call(this)},lastBackward:function(){return f.call(this,1)},reset:function(){delete this.current;this._={}}}});var b={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},d={absolute:1, -fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(a){return this.getComputedStyle("float")=="none"&&!(this.getComputedStyle("position")in d)&&b[this.getComputedStyle("display")]?true:!!(this.is(CKEDITOR.dtd.$block)||a&&this.is(a))};CKEDITOR.dom.walker.blockBoundary=function(a){return function(g){return!(g.type==CKEDITOR.NODE_ELEMENT&&g.isBlockBoundary(a))}};CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(a,g){function c(a){return a&& -a.getName&&a.getName()=="span"&&a.data("cke-bookmark")}return function(b){var d,e;d=b&&b.type!=CKEDITOR.NODE_ELEMENT&&(e=b.getParent())&&c(e);d=a?d:d||c(b);return!!(g^d)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(g){var c;g&&g.type==CKEDITOR.NODE_TEXT&&(c=!CKEDITOR.tools.trim(g.getText())||CKEDITOR.env.webkit&&g.getText()=="​");return!!(a^c)}};CKEDITOR.dom.walker.invisible=function(a){var g=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.env.webkit?1:0;return function(b){if(g(b))b= -1;else{b.type==CKEDITOR.NODE_TEXT&&(b=b.getParent());b=b.$.offsetWidth<=c}return!!(a^b)}};CKEDITOR.dom.walker.nodeType=function(a,g){return function(c){return!!(g^c.type==a)}};CKEDITOR.dom.walker.bogus=function(a){function g(a){return!k(a)&&!j(a)}return function(c){var b=CKEDITOR.env.needsBrFiller?c.is&&c.is("br"):c.getText&&h.test(c.getText());if(b){b=c.getParent();c=c.getNext(g);b=b.isBlockBoundary()&&(!c||c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary())}return!!(a^b)}};CKEDITOR.dom.walker.temp= -function(a){return function(g){g.type!=CKEDITOR.NODE_ELEMENT&&(g=g.getParent());g=g&&g.hasAttribute("data-cke-temp");return!!(a^g)}};var h=/^[\t\r\n ]*(?: |\xa0)$/,k=CKEDITOR.dom.walker.whitespaces(),j=CKEDITOR.dom.walker.bookmark(),i=CKEDITOR.dom.walker.temp();CKEDITOR.dom.walker.ignored=function(a){return function(g){g=k(g)||j(g)||i(g);return!!(a^g)}};var e=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(a){return function(g){for(var c=0,b=g.getChildCount();c<b;++c)if(!e(g.getChild(c)))return!!a; -return!a}};var c=CKEDITOR.dom.walker.empty(),g=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(a){var g={},c;for(c in a)CKEDITOR.dtd[c]["#"]&&(g[c]=1);return g}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=function(a){return function(b){return!!(a^(e(b)?0:b.type==CKEDITOR.NODE_TEXT||b.type==CKEDITOR.NODE_ELEMENT&&(b.is(CKEDITOR.dtd.$inline)||(b.is("hr")||b.getAttribute("contenteditable")=="false")||!CKEDITOR.env.needsBrFiller&&b.is(g)&&c(b))? -1:0))}};CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(j(a)||k(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&&h.test(a.getText()))?a:false}}(),CKEDITOR.dom.range=function(a){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null;this.collapsed=true;var f=a instanceof CKEDITOR.dom.document;this.document=f?a:a.getDocument(); -this.root=f?a.getBody():a},function(){function a(a){a.collapsed=a.startContainer&&a.endContainer&&a.startContainer.equals(a.endContainer)&&a.startOffset==a.endOffset}function f(a,c,b,d,e){function h(a,g,c,b){var d=c?a.getPrevious():a.getNext();if(b&&k)return d;if(v||b)g.append(a.clone(true,e),c);else{a.remove();j&&g.append(a)}return d}function i(){var a,g,c,b=Math.min(E.length,F.length);for(a=0;a<b;a++){g=E[a];c=F[a];if(!g.equals(c))return a}return a-1}function f(){var c=M-1,b=A&&D&&!w.equals(t); -if(c<H-1||c<N-1||b){b?a.moveToPosition(t,CKEDITOR.POSITION_BEFORE_START):N==c+1&&B?a.moveToPosition(F[c],CKEDITOR.POSITION_BEFORE_END):a.moveToPosition(F[c+1],CKEDITOR.POSITION_BEFORE_START);if(d)if((c=E[c+1])&&c.type==CKEDITOR.NODE_ELEMENT){b=CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none"> </span>',a.document);b.insertAfter(c);c.mergeSiblings(false);a.moveToBookmark({startNode:b})}}else a.collapse(true)}a.optimizeBookmark();var k=c===0,j=c==1,v=c==2,c= -v||j,w=a.startContainer,t=a.endContainer,s=a.startOffset,z=a.endOffset,x,B,A,D,C,J;if(v&&t.type==CKEDITOR.NODE_TEXT&&w.equals(t)){w=a.document.createText(w.substring(s,z));b.append(w)}else{if(t.type==CKEDITOR.NODE_TEXT)v?J=true:t=t.split(z);else if(t.getChildCount()>0)if(z>=t.getChildCount()){t=t.getChild(z-1);B=true}else t=t.getChild(z);else D=B=true;if(w.type==CKEDITOR.NODE_TEXT)v?C=true:w.split(s);else if(w.getChildCount()>0)if(s===0){w=w.getChild(s);x=true}else w=w.getChild(s-1);else A=x=true; -for(var E=w.getParents(),F=t.getParents(),M=i(),H=E.length-1,N=F.length-1,K=b,U,S,O,Z=-1,P=M;P<=H;P++){S=E[P];O=S.getNext();for(P==H&&!(S.equals(F[P])&&H<N)?x?h(S,K,false,A):C&&K.append(a.document.createText(S.substring(s))):c&&(U=K.append(S.clone(0,e)));O;){if(O.equals(F[P])){Z=P;break}O=h(O,K)}K=U}K=b;for(P=M;P<=N;P++){b=F[P];O=b.getPrevious();if(b.equals(E[P]))c&&(K=K.getChild(0));else{P==N&&!(b.equals(E[P])&&N<H)?B?h(b,K,false,D):J&&K.append(a.document.createText(b.substring(0,z))):c&&(U=K.append(b.clone(0, -e)));if(P>Z)for(;O;)O=h(O,K,true);K=U}}v||f()}}function b(){var a=false,c=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.dom.walker.bookmark(true),d=CKEDITOR.dom.walker.bogus();return function(e){if(b(e)||c(e))return true;if(d(e)&&!a)return a=true;return e.type==CKEDITOR.NODE_TEXT&&(e.hasAscendant("pre")||CKEDITOR.tools.trim(e.getText()).length)||e.type==CKEDITOR.NODE_ELEMENT&&!e.is(k)?false:true}}function d(a){var c=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.dom.walker.bookmark(1);return function(d){return b(d)|| -c(d)?true:!a&&j(d)||d.type==CKEDITOR.NODE_ELEMENT&&d.is(CKEDITOR.dtd.$removeEmpty)}}function h(a){return function(){var b;return this[a?"getPreviousNode":"getNextNode"](function(a){!b&&c(a)&&(b=a);return e(a)&&!(j(a)&&a.equals(b))})}}var k={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},j=CKEDITOR.dom.walker.bogus(),i=/^[\t\r\n ]*(?: |\xa0)$/,e=CKEDITOR.dom.walker.editable(), -c=CKEDITOR.dom.walker.ignored(true);CKEDITOR.dom.range.prototype={clone:function(){var a=new CKEDITOR.dom.range(this.root);a._setStartContainer(this.startContainer);a.startOffset=this.startOffset;a._setEndContainer(this.endContainer);a.endOffset=this.endOffset;a.collapsed=this.collapsed;return a},collapse:function(a){if(a){this._setEndContainer(this.startContainer);this.endOffset=this.startOffset}else{this._setStartContainer(this.endContainer);this.startOffset=this.endOffset}this.collapsed=true}, -cloneContents:function(a){var c=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||f(this,2,c,false,typeof a=="undefined"?true:a);return c},deleteContents:function(a){this.collapsed||f(this,0,null,a)},extractContents:function(a,c){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||f(this,1,b,a,typeof c=="undefined"?true:c);return b},createBookmark:function(a){var c,b,d,e,h=this.collapsed;c=this.document.createElement("span");c.data("cke-bookmark",1);c.setStyle("display", -"none");c.setHtml(" ");if(a){d="cke_bm_"+CKEDITOR.tools.getNextNumber();c.setAttribute("id",d+(h?"C":"S"))}if(!h){b=c.clone();b.setHtml(" ");a&&b.setAttribute("id",d+"E");e=this.clone();e.collapse();e.insertNode(b)}e=this.clone();e.collapse(true);e.insertNode(c);if(b){this.setStartAfter(c);this.setEndBefore(b)}else this.moveToPosition(c,CKEDITOR.POSITION_AFTER_END);return{startNode:a?d+(h?"C":"S"):c,endNode:a?d+"E":b,serializable:a,collapsed:h}},createBookmark2:function(){function a(g){var b= -g.container,d=g.offset,e;e=b;var h=d;e=e.type!=CKEDITOR.NODE_ELEMENT||h===0||h==e.getChildCount()?0:e.getChild(h-1).type==CKEDITOR.NODE_TEXT&&e.getChild(h).type==CKEDITOR.NODE_TEXT;if(e){b=b.getChild(d-1);d=b.getLength()}b.type==CKEDITOR.NODE_ELEMENT&&d>1&&(d=b.getChild(d-1).getIndex(true)+1);if(b.type==CKEDITOR.NODE_TEXT){e=b;for(h=0;(e=e.getPrevious())&&e.type==CKEDITOR.NODE_TEXT;)h=h+e.getLength();e=h;if(b.getText())d=d+e;else{h=b.getPrevious(c);if(e){d=e;b=h?h.getNext():b.getParent().getFirst()}else{b= -b.getParent();d=h?h.getIndex(true)+1:0}}}g.container=b;g.offset=d}var c=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,true);return function(c){var b=this.collapsed,d={container:this.startContainer,offset:this.startOffset},e={container:this.endContainer,offset:this.endOffset};if(c){a(d);b||a(e)}return{start:d.container.getAddress(c),end:b?null:e.container.getAddress(c),startOffset:d.offset,endOffset:e.offset,normalized:c,collapsed:b,is2:true}}}(),moveToBookmark:function(a){if(a.is2){var c=this.document.getByAddress(a.start, -a.normalized),b=a.startOffset,d=a.end&&this.document.getByAddress(a.end,a.normalized),a=a.endOffset;this.setStart(c,b);d?this.setEnd(d,a):this.collapse(true)}else{c=(b=a.serializable)?this.document.getById(a.startNode):a.startNode;a=b?this.document.getById(a.endNode):a.endNode;this.setStartBefore(c);c.remove();if(a){this.setEndBefore(a);a.remove()}else this.collapse(true)}},getBoundaryNodes:function(){var a=this.startContainer,c=this.endContainer,b=this.startOffset,d=this.endOffset,e;if(a.type==CKEDITOR.NODE_ELEMENT){e= -a.getChildCount();if(e>b)a=a.getChild(b);else if(e<1)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a);a=a.getNextSourceNode()||a}}if(c.type==CKEDITOR.NODE_ELEMENT){e=c.getChildCount();if(e>d)c=c.getChild(d).getPreviousSourceNode(true);else if(e<1)c=c.getPreviousSourceNode();else{for(c=c.$;c.lastChild;)c=c.lastChild;c=new CKEDITOR.dom.node(c)}}a.getPosition(c)&CKEDITOR.POSITION_FOLLOWING&&(a=c);return{startNode:a,endNode:c}},getCommonAncestor:function(a, -c){var b=this.startContainer,d=this.endContainer,b=b.equals(d)?a&&b.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?b.getChild(this.startOffset):b:b.getCommonAncestor(d);return c&&!b.is?b.getParent():b},optimize:function(){var a=this.startContainer,c=this.startOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(c?c>=a.getLength()&&this.setStartAfter(a):this.setStartBefore(a));a=this.endContainer;c=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(c?c>=a.getLength()&&this.setEndAfter(a):this.setEndBefore(a))}, -optimizeBookmark:function(){var a=this.startContainer,c=this.endContainer;a.is&&(a.is("span")&&a.data("cke-bookmark"))&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);c&&(c.is&&c.is("span")&&c.data("cke-bookmark"))&&this.setEndAt(c,CKEDITOR.POSITION_AFTER_END)},trim:function(a,c){var b=this.startContainer,d=this.startOffset,e=this.collapsed;if((!a||e)&&b&&b.type==CKEDITOR.NODE_TEXT){if(d)if(d>=b.getLength()){d=b.getIndex()+1;b=b.getParent()}else{var h=b.split(d),d=b.getIndex()+1,b=b.getParent(); -if(this.startContainer.equals(this.endContainer))this.setEnd(h,this.endOffset-this.startOffset);else if(b.equals(this.endContainer))this.endOffset=this.endOffset+1}else{d=b.getIndex();b=b.getParent()}this.setStart(b,d);if(e){this.collapse(true);return}}b=this.endContainer;d=this.endOffset;if(!c&&!e&&b&&b.type==CKEDITOR.NODE_TEXT){if(d){d>=b.getLength()||b.split(d);d=b.getIndex()+1}else d=b.getIndex();b=b.getParent();this.setEnd(b,d)}},enlarge:function(a,c){function b(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 e=1;case CKEDITOR.ENLARGE_ELEMENT:if(this.collapsed)break;var h=this.getCommonAncestor(),i=this.root,f,k,j,v,w,t=false,s,z;s=this.startContainer;var x=this.startOffset;if(s.type==CKEDITOR.NODE_TEXT){if(x){s=!CKEDITOR.tools.trim(s.substring(0,x)).length&&s;t=!!s}if(s&&!(v=s.getPrevious()))j=s.getParent()}else{x&&(v=s.getChild(x-1)||s.getLast());v||(j=s)}for(j=b(j);j||v;){if(j&&!v){!w&&j.equals(h)&& -(w=true);if(e?j.isBlockBoundary():!i.contains(j))break;if(!t||j.getComputedStyle("display")!="inline"){t=false;w?f=j:this.setStartBefore(j)}v=j.getPrevious()}for(;v;){s=false;if(v.type==CKEDITOR.NODE_COMMENT)v=v.getPrevious();else{if(v.type==CKEDITOR.NODE_TEXT){z=v.getText();d.test(z)&&(v=null);s=/[\s\ufeff]$/.test(z)}else if((v.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||c&&v.is("br"))&&!v.data("cke-bookmark"))if(t&&CKEDITOR.dtd.$removeEmpty[v.getName()]){z=v.getText();if(d.test(z))v=null;else for(var x= -v.$.getElementsByTagName("*"),B=0,A;A=x[B++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){v=null;break}v&&(s=!!z.length)}else v=null;s&&(t?w?f=j:j&&this.setStartBefore(j):t=true);if(v){s=v.getPrevious();if(!j&&!s){j=v;v=null;break}v=s}else j=null}}j&&(j=b(j.getParent()))}s=this.endContainer;x=this.endOffset;j=v=null;w=t=false;var D=function(a,c){var g=new CKEDITOR.dom.range(i);g.setStart(a,c);g.setEndAt(i,CKEDITOR.POSITION_BEFORE_END);var g=new CKEDITOR.dom.walker(g),b;for(g.guard=function(a){return!(a.type== -CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())};b=g.next();){if(b.type!=CKEDITOR.NODE_TEXT)return false;z=b!=a?b.getText():b.substring(c);if(d.test(z))return false}return true};if(s.type==CKEDITOR.NODE_TEXT)if(CKEDITOR.tools.trim(s.substring(x)).length)t=true;else{t=!s.getLength();if(x==s.getLength()){if(!(v=s.getNext()))j=s.getParent()}else D(s,x)&&(j=s.getParent())}else(v=s.getChild(x))||(j=s);for(;j||v;){if(j&&!v){!w&&j.equals(h)&&(w=true);if(e?j.isBlockBoundary():!i.contains(j))break;if(!t||j.getComputedStyle("display")!= -"inline"){t=false;w?k=j:j&&this.setEndAfter(j)}v=j.getNext()}for(;v;){s=false;if(v.type==CKEDITOR.NODE_TEXT){z=v.getText();D(v,0)||(v=null);s=/^[\s\ufeff]/.test(z)}else if(v.type==CKEDITOR.NODE_ELEMENT){if((v.$.offsetWidth>0||c&&v.is("br"))&&!v.data("cke-bookmark"))if(t&&CKEDITOR.dtd.$removeEmpty[v.getName()]){z=v.getText();if(d.test(z))v=null;else{x=v.$.getElementsByTagName("*");for(B=0;A=x[B++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){v=null;break}}v&&(s=!!z.length)}else v=null}else s= -1;s&&t&&(w?k=j:this.setEndAfter(j));if(v){s=v.getNext();if(!j&&!s){j=v;v=null;break}v=s}else j=null}j&&(j=b(j.getParent()))}if(f&&k){h=f.contains(k)?k:f;this.setStartBefore(h);this.setEndAfter(h)}break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:j=new CKEDITOR.dom.range(this.root);i=this.root;j.setStartAt(i,CKEDITOR.POSITION_AFTER_START);j.setEnd(this.startContainer,this.startOffset);j=new CKEDITOR.dom.walker(j);var C,J,E=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS? -{br:1}:null),F=null,M=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&a.getAttribute("contenteditable")=="false")if(F){if(F.equals(a)){F=null;return}}else F=a;else if(F)return;var c=E(a);c||(C=a);return c},e=function(a){var c=M(a);!c&&(a.is&&a.is("br"))&&(J=a);return c};j.guard=M;j=j.lastBackward();C=C||i;this.setStartAt(C,!C.is("br")&&(!j&&this.checkStartOfBlock()||j&&C.contains(j))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){j=this.clone(); -j=new CKEDITOR.dom.walker(j);var H=CKEDITOR.dom.walker.whitespaces(),N=CKEDITOR.dom.walker.bookmark();j.evaluator=function(a){return!H(a)&&!N(a)};if((j=j.previous())&&j.type==CKEDITOR.NODE_ELEMENT&&j.is("br"))break}j=this.clone();j.collapse();j.setEndAt(i,CKEDITOR.POSITION_BEFORE_END);j=new CKEDITOR.dom.walker(j);j.guard=a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?e:M;C=F=J=null;j=j.lastForward();C=C||i;this.setEndAt(C,!j&&this.checkEndOfBlock()||j&&C.contains(j)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START); -J&&this.setEndAfter(J)}},shrink:function(a,c,b){if(!this.collapsed){var a=a||CKEDITOR.SHRINK_TEXT,d=this.clone(),e=this.startContainer,h=this.endContainer,i=this.startOffset,f=this.endOffset,k=1,j=1;if(e&&e.type==CKEDITOR.NODE_TEXT)if(i)if(i>=e.getLength())d.setStartAfter(e);else{d.setStartBefore(e);k=0}else d.setStartBefore(e);if(h&&h.type==CKEDITOR.NODE_TEXT)if(f)if(f>=h.getLength())d.setEndAfter(h);else{d.setEndAfter(h);j=0}else d.setEndBefore(h);var d=new CKEDITOR.dom.walker(d),v=CKEDITOR.dom.walker.bookmark(); -d.evaluator=function(c){return c.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var w;d.guard=function(c,d){if(v(c))return true;if(a==CKEDITOR.SHRINK_ELEMENT&&c.type==CKEDITOR.NODE_TEXT||d&&c.equals(w)||b===false&&c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()||c.type==CKEDITOR.NODE_ELEMENT&&c.hasAttribute("contenteditable"))return false;!d&&c.type==CKEDITOR.NODE_ELEMENT&&(w=c);return true};if(k)(e=d[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(e, -c?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);if(j){d.reset();(d=d[a==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(d,c?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)}return!(!k&&!j)}},insertNode:function(a){this.optimizeBookmark();this.trim(false,true);var c=this.startContainer,b=c.getChild(this.startOffset);b?a.insertBefore(b):c.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a, -c){this.setStartAt(a,c);this.collapse(true)},moveToRange:function(a){this.setStart(a.startContainer,a.startOffset);this.setEnd(a.endContainer,a.endOffset)},selectNodeContents:function(a){this.setStart(a,0);this.setEnd(a,a.type==CKEDITOR.NODE_TEXT?a.getLength():a.getChildCount())},setStart:function(c,b){if(c.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[c.getName()]){b=c.getIndex();c=c.getParent()}this._setStartContainer(c);this.startOffset=b;if(!this.endContainer){this._setEndContainer(c);this.endOffset= -b}a(this)},setEnd:function(c,b){if(c.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[c.getName()]){b=c.getIndex()+1;c=c.getParent()}this._setEndContainer(c);this.endOffset=b;if(!this.startContainer){this._setStartContainer(c);this.startOffset=b}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(c,b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setStart(c,0);break;case CKEDITOR.POSITION_BEFORE_END:c.type==CKEDITOR.NODE_TEXT?this.setStart(c,c.getLength()):this.setStart(c,c.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(c);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(c)}a(this)},setEndAt:function(c,b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setEnd(c,0);break;case CKEDITOR.POSITION_BEFORE_END:c.type== -CKEDITOR.NODE_TEXT?this.setEnd(c,c.getLength()):this.setEnd(c,c.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(c);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(c)}a(this)},fixBlock:function(a,c){var b=this.createBookmark(),d=this.document.createElement(c);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(d);d.trim();this.insertNode(d);var e=d.getBogus();e&&e.remove();d.appendBogus();this.moveToBookmark(b);return d}, -splitBlock:function(a,c){var b=new CKEDITOR.dom.elementPath(this.startContainer,this.root),d=new CKEDITOR.dom.elementPath(this.endContainer,this.root),e=b.block,h=d.block,i=null;if(!b.blockLimit.equals(d.blockLimit))return null;if(a!="br"){if(!e){e=this.fixBlock(true,a);h=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block}h||(h=this.fixBlock(false,a))}b=e&&this.checkStartOfBlock();d=h&&this.checkEndOfBlock();this.deleteContents();if(e&&e.equals(h))if(d){i=new CKEDITOR.dom.elementPath(this.startContainer, -this.root);this.moveToPosition(h,CKEDITOR.POSITION_AFTER_END);h=null}else if(b){i=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);e=null}else{h=this.splitElement(e,c||false);e.is("ul","ol")||e.appendBogus()}return{previousBlock:e,nextBlock:h,wasStartOfBlock:b,wasEndOfBlock:d,elementPath:i}},splitElement:function(a,c){if(!this.collapsed)return null;this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var b=this.extractContents(false,c||false), -d=a.clone(false,c||false);b.appendTo(d);d.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return d},removeEmptyBlocksAtEnd:function(){function a(g){return function(a){return c(a)||(b(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isEmptyInlineRemoveable())||g.is("table")&&a.is("caption")?false:true}}var c=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.dom.walker.bookmark(false);return function(c){for(var b=this.createBookmark(),d=this[c?"endPath":"startPath"](),e=d.block||d.blockLimit,h;e&& -!e.equals(d.root)&&!e.getFirst(a(e));){h=e.getParent();this[c?"setEndAt":"setStartAt"](e,CKEDITOR.POSITION_AFTER_END);e.remove(1);e=h}this.moveToBookmark(b)}}(),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,c){var b=c==CKEDITOR.START,e=this.clone();e.collapse(b);e[b?"setStartAt":"setEndAt"](a,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END); -e=new CKEDITOR.dom.walker(e);e.evaluator=d(b);return e[b?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var a=this.startContainer,c=this.startOffset;if(CKEDITOR.env.ie&&c&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.ltrim(a.substring(0,c));i.test(a)&&this.trim(0,1)}this.trim();a=new CKEDITOR.dom.elementPath(this.startContainer,this.root);c=this.clone();c.collapse(true);c.setStartAt(a.block||a.blockLimit,CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(c);a.evaluator=b(); -return a.checkBackward()},checkEndOfBlock:function(){var a=this.endContainer,c=this.endOffset;if(CKEDITOR.env.ie&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.rtrim(a.substring(c));i.test(a)&&this.trim(1,0)}this.trim();a=new CKEDITOR.dom.elementPath(this.endContainer,this.root);c=this.clone();c.collapse(false);c.setEndAt(a.block||a.blockLimit,CKEDITOR.POSITION_BEFORE_END);a=new CKEDITOR.dom.walker(c);a.evaluator=b();return a.checkForward()},getPreviousNode:function(a,c,b){var d=this.clone();d.collapse(1); -d.setStartAt(b||this.root,CKEDITOR.POSITION_AFTER_START);b=new CKEDITOR.dom.walker(d);b.evaluator=a;b.guard=c;return b.previous()},getNextNode:function(a,c,b){var d=this.clone();d.collapse();d.setEndAt(b||this.root,CKEDITOR.POSITION_BEFORE_END);b=new CKEDITOR.dom.walker(d);b.evaluator=a;b.guard=c;return b.next()},checkReadOnly:function(){function a(c,b){for(;c;){if(c.type==CKEDITOR.NODE_ELEMENT){if(c.getAttribute("contentEditable")=="false"&&!c.data("cke-editable"))return 0;if(c.is("html")||c.getAttribute("contentEditable")== -"true"&&(c.contains(b)||c.equals(b)))break}c=c.getParent()}return 1}return function(){var c=this.startContainer,b=this.endContainer;return!(a(c,b)&&a(b,c))}}(),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 d=0;a;){if(a.type==CKEDITOR.NODE_TEXT){b&&this.endContainer&&this.checkEndOfBlock()&&i.test(a.getText())?this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START): -this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);d=1;break}if(a.type==CKEDITOR.NODE_ELEMENT)if(a.isEditable()){this.moveToPosition(a,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START);d=1}else if(b&&a.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START);else if(a.getAttribute("contenteditable")=="false"&&a.is(CKEDITOR.dtd.$block)){this.setStartBefore(a);this.setEndAfter(a);return true}var e=a,h=d,f= -void 0;e.type==CKEDITOR.NODE_ELEMENT&&e.isEditable(false)&&(f=e[b?"getLast":"getFirst"](c));!h&&!f&&(f=e[b?"getPrevious":"getNext"](c));a=f}return!!d},moveToClosestEditablePosition:function(a,c){var b,d=0,e,h,i=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];if(a){b=new CKEDITOR.dom.range(this.root);b.moveToPosition(a,i[c?0:1])}else b=this.clone();if(a&&!a.is(CKEDITOR.dtd.$block))d=1;else if(e=b[c?"getNextEditableNode":"getPreviousEditableNode"]()){d=1;if((h=e.type==CKEDITOR.NODE_ELEMENT)&& -e.is(CKEDITOR.dtd.$block)&&e.getAttribute("contenteditable")=="false"){b.setStartAt(e,CKEDITOR.POSITION_BEFORE_START);b.setEndAt(e,CKEDITOR.POSITION_AFTER_END)}else if(!CKEDITOR.env.needsBrFiller&&h&&e.is(CKEDITOR.dom.walker.validEmptyBlockContainers)){b.setEnd(e,0);b.collapse()}else b.moveToPosition(e,i[c?1:0])}d&&this.moveToRange(b);return!!d},moveToElementEditStart:function(a){return this.moveToElementEditablePosition(a)},moveToElementEditEnd:function(a){return this.moveToElementEditablePosition(a, -true)},getEnclosedNode:function(){var a=this.clone();a.optimize();if(a.startContainer.type!=CKEDITOR.NODE_ELEMENT||a.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var a=new CKEDITOR.dom.walker(a),c=CKEDITOR.dom.walker.bookmark(false,true),b=CKEDITOR.dom.walker.whitespaces(true);a.evaluator=function(a){return b(a)&&c(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=this.endContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.endOffset-1)||a},getNextEditableNode:h(),getPreviousEditableNode:h(1),scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("<span> </span>",this.document),c,b,d,e=this.clone();e.optimize();if(d=e.startContainer.type==CKEDITOR.NODE_TEXT){b=e.startContainer.getText();c=e.startContainer.split(e.startOffset);a.insertAfter(e.startContainer)}else e.insertNode(a); -a.scrollIntoView();if(d){e.startContainer.setText(b);c.remove()}a.remove()},_setStartContainer:function(a){this.startContainer=a},_setEndContainer:function(a){this.endContainer=a}}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START=3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3,CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT=1,CKEDITOR.SHRINK_TEXT= -2,"use strict",function(){function a(a){if(!(arguments.length<1)){this.range=a;this.forceBrBreak=0;this.enlargeBr=1;this.enforceRealBlocks=0;this._||(this._={})}}function f(a){var b=[];a.forEach(function(a){if(a.getAttribute("contenteditable")=="true"){b.push(a);return false}},CKEDITOR.NODE_ELEMENT,true);return b}function b(a,g,d,e){a:{e==null&&(e=f(d));for(var h;h=e.shift();)if(h.getDtd().p){e={element:h,remaining:e};break a}e=null}if(!e)return 0;if((h=CKEDITOR.filter.instances[e.element.data("cke-filter")])&& -!h.check(g))return b(a,g,d,e.remaining);g=new CKEDITOR.dom.range(e.element);g.selectNodeContents(e.element);g=g.createIterator();g.enlargeBr=a.enlargeBr;g.enforceRealBlocks=a.enforceRealBlocks;g.activeFilter=g.filter=h;a._.nestedEditable={element:e.element,container:d,remaining:e.remaining,iterator:g};return 1}function d(a,b,d){if(!b)return false;a=a.clone();a.collapse(!d);return a.checkBoundaryOfElement(b,d?CKEDITOR.START:CKEDITOR.END)}var h=/^[\r\n\t ]+$/,k=CKEDITOR.dom.walker.bookmark(false,true), -j=CKEDITOR.dom.walker.whitespaces(true),i=function(a){return k(a)&&j(a)},e={dd:1,dt:1,li:1};a.prototype={getNextParagraph:function(a){var g,f,j,n,o,a=a||"p";if(this._.nestedEditable){if(g=this._.nestedEditable.iterator.getNextParagraph(a)){this.activeFilter=this._.nestedEditable.iterator.activeFilter;return g}this.activeFilter=this.filter;if(b(this,a,this._.nestedEditable.container,this._.nestedEditable.remaining)){this.activeFilter=this._.nestedEditable.iterator.activeFilter;return this._.nestedEditable.iterator.getNextParagraph(a)}this._.nestedEditable= -null}if(!this.range.root.getDtd()[a])return null;if(!this._.started){var p=this.range.clone();f=p.startPath();var m=p.endPath(),r=!p.collapsed&&d(p,f.block),u=!p.collapsed&&d(p,m.block,1);p.shrink(CKEDITOR.SHRINK_ELEMENT,true);r&&p.setStartAt(f.block,CKEDITOR.POSITION_BEFORE_END);u&&p.setEndAt(m.block,CKEDITOR.POSITION_AFTER_START);f=p.endContainer.hasAscendant("pre",true)||p.startContainer.hasAscendant("pre",true);p.enlarge(this.forceBrBreak&&!f||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS: -CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(!p.collapsed){f=new CKEDITOR.dom.walker(p.clone());m=CKEDITOR.dom.walker.bookmark(true,true);f.evaluator=m;this._.nextNode=f.next();f=new CKEDITOR.dom.walker(p.clone());f.evaluator=m;f=f.previous();this._.lastNode=f.getNextSourceNode(true,null,p.root);if(this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()){m=this.range.clone();m.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END); -if(m.checkEndOfBlock()){m=new CKEDITOR.dom.elementPath(m.endContainer,m.root);this._.lastNode=(m.block||m.blockLimit).getNextSourceNode(true)}}if(!this._.lastNode||!p.root.contains(this._.lastNode)){this._.lastNode=this._.docEndMarker=p.document.createText("");this._.lastNode.insertAfter(f)}p=null}this._.started=1;f=p}m=this._.nextNode;p=this._.lastNode;for(this._.nextNode=null;m;){var r=0,u=m.hasAscendant("pre"),y=m.type!=CKEDITOR.NODE_ELEMENT,v=0;if(y)m.type==CKEDITOR.NODE_TEXT&&h.test(m.getText())&& -(y=0);else{var w=m.getName();if(CKEDITOR.dtd.$block[w]&&m.getAttribute("contenteditable")=="false"){g=m;b(this,a,g);break}else if(m.isBlockBoundary(this.forceBrBreak&&!u&&{br:1})){if(w=="br")y=1;else if(!f&&!m.getChildCount()&&w!="hr"){g=m;j=m.equals(p);break}if(f){f.setEndAt(m,CKEDITOR.POSITION_BEFORE_START);if(w!="br")this._.nextNode=m}r=1}else{if(m.getFirst()){if(!f){f=this.range.clone();f.setStartAt(m,CKEDITOR.POSITION_BEFORE_START)}m=m.getFirst();continue}y=1}}if(y&&!f){f=this.range.clone(); -f.setStartAt(m,CKEDITOR.POSITION_BEFORE_START)}j=(!r||y)&&m.equals(p);if(f&&!r)for(;!m.getNext(i)&&!j;){w=m.getParent();if(w.isBlockBoundary(this.forceBrBreak&&!u&&{br:1})){r=1;y=0;j||w.equals(p);f.setEndAt(w,CKEDITOR.POSITION_BEFORE_END);break}m=w;y=1;j=m.equals(p);v=1}y&&f.setEndAt(m,CKEDITOR.POSITION_AFTER_END);m=this._getNextSourceNode(m,v,p);if((j=!m)||r&&f)break}if(!g){if(!f){this._.docEndMarker&&this._.docEndMarker.remove();return this._.nextNode=null}g=new CKEDITOR.dom.elementPath(f.startContainer, -f.root);m=g.blockLimit;r={div:1,th:1,td:1};g=g.block;if(!g&&m&&!this.enforceRealBlocks&&r[m.getName()]&&f.checkStartOfBlock()&&f.checkEndOfBlock()&&!m.equals(f.root))g=m;else if(!g||this.enforceRealBlocks&&g.is(e)){g=this.range.document.createElement(a);f.extractContents().appendTo(g);g.trim();f.insertNode(g);n=o=true}else if(g.getName()!="li"){if(!f.checkStartOfBlock()||!f.checkEndOfBlock()){g=g.clone(false);f.extractContents().appendTo(g);g.trim();o=f.splitBlock();n=!o.wasStartOfBlock;o=!o.wasEndOfBlock; -f.insertNode(g)}}else if(!j)this._.nextNode=g.equals(p)?null:this._getNextSourceNode(f.getBoundaryNodes().endNode,1,p)}if(n)(n=g.getPrevious())&&n.type==CKEDITOR.NODE_ELEMENT&&(n.getName()=="br"?n.remove():n.getLast()&&n.getLast().$.nodeName.toLowerCase()=="br"&&n.getLast().remove());if(o)(n=g.getLast())&&n.type==CKEDITOR.NODE_ELEMENT&&n.getName()=="br"&&(!CKEDITOR.env.needsBrFiller||n.getPrevious(k)||n.getNext(k))&&n.remove();if(!this._.nextNode)this._.nextNode=j||g.equals(p)||!p?null:this._getNextSourceNode(g, -1,p);return g},_getNextSourceNode:function(a,b,d){function e(a){return!(a.equals(d)||a.equals(h))}for(var h=this.range.root,a=a.getNextSourceNode(b,null,e);!k(a);)a=a.getNextSourceNode(b,null,e);return a}};CKEDITOR.dom.range.prototype.createIterator=function(){return new a(this)}}(),CKEDITOR.command=function(a,f){this.uiItems=[];this.exec=function(b){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return false;this.editorFocus&&a.focus();return this.fire("exec")===false?true:f.exec.call(this, -a,b)!==false};this.refresh=function(a,b){if(!this.readOnly&&a.readOnly)return true;if(this.context&&!b.isContextFor(this.context)){this.disable();return true}if(!this.checkAllowed(true)){this.disable();return true}this.startDisabled||this.enable();this.modes&&!this.modes[a.mode]&&this.disable();return this.fire("refresh",{editor:a,path:b})===false?true:f.refresh&&f.refresh.apply(this,arguments)!==false};var b;this.checkAllowed=function(d){return!d&&typeof b=="boolean"?b:b=a.activeFilter.checkFeature(this)}; -CKEDITOR.tools.extend(this,f,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!f.context,state:CKEDITOR.TRISTATE_DISABLED});CKEDITOR.event.call(this)},CKEDITOR.command.prototype={enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(!this.preserveState||typeof this.previousState=="undefined"?CKEDITOR.TRISTATE_OFF:this.previousState)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(a){if(this.state==a||a!=CKEDITOR.TRISTATE_DISABLED&& -!this.checkAllowed())return false;this.previousState=this.state;this.state=a;this.fire("state");return true},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"", -enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"<!DOCTYPE html>",bodyId:"",bodyClass:"",fullPage:!1,height:200,extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1E4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function a(a,c,b,g,d){var e,h,a=[];for(e in c){h=c[e];h=typeof h=="boolean"?{}:typeof h=="function"?{match:h}:D(h);if(e.charAt(0)!="$")h.elements=e;if(b)h.featureName=b.toLowerCase(); -var i=h;i.elements=j(i.elements,/\s+/)||null;i.propertiesOnly=i.propertiesOnly||i.elements===true;var f=/\s*,\s*/,k=void 0;for(k in F){i[k]=j(i[k],f)||null;var o=i,t=M[k],l=j(i[M[k]],f),m=i[k],p=[],s=true,E=void 0;l?s=false:l={};for(E in m)if(E.charAt(0)=="!"){E=E.slice(1);p.push(E);l[E]=true;s=false}for(;E=p.pop();){m[E]=m["!"+E];delete m["!"+E]}o[t]=(s?false:l)||null}i.match=i.match||null;g.push(h);a.push(h)}for(var c=d.elements,d=d.generic,x,b=0,g=a.length;b<g;++b){e=D(a[b]);h=e.classes===true|| -e.styles===true||e.attributes===true;i=e;k=t=f=void 0;for(f in F)i[f]=r(i[f]);o=true;for(k in M){f=M[k];t=i[f];l=[];m=void 0;for(m in t)m.indexOf("*")>-1?l.push(RegExp("^"+m.replace(/\*/g,".*")+"$")):l.push(m);t=l;if(t.length){i[f]=t;o=false}}i.nothingRequired=o;i.noProperties=!(i.attributes||i.classes||i.styles);if(e.elements===true||e.elements===null)d[h?"unshift":"push"](e);else{i=e.elements;delete e.elements;for(x in i)if(c[x])c[x][h?"unshift":"push"](e);else c[x]=[e]}}}function f(a,c,g,e){if(!a.match|| -a.match(c))if(e||i(a,c)){if(!a.propertiesOnly)g.valid=true;if(!g.allAttributes)g.allAttributes=b(a.attributes,c.attributes,g.validAttributes);if(!g.allStyles)g.allStyles=b(a.styles,c.styles,g.validStyles);if(!g.allClasses){a=a.classes;c=c.classes;e=g.validClasses;if(a)if(a===true)a=true;else{for(var d=0,h=c.length,f;d<h;++d){f=c[d];e[f]||(e[f]=a(f))}a=false}else a=false;g.allClasses=a}}}function b(a,c,b){if(!a)return false;if(a===true)return true;for(var g in c)b[g]||(b[g]=a(g));return false}function d(a, -c,b){if(!a.match||a.match(c)){if(a.noProperties)return false;b.hadInvalidAttribute=h(a.attributes,c.attributes)||b.hadInvalidAttribute;b.hadInvalidStyle=h(a.styles,c.styles)||b.hadInvalidStyle;a=a.classes;c=c.classes;if(a){for(var g=false,e=a===true,d=c.length;d--;)if(e||a(c[d])){c.splice(d,1);g=true}a=g}else a=false;b.hadInvalidClass=a||b.hadInvalidClass}}function h(a,c){if(!a)return false;var b=false,g=a===true,e;for(e in c)if(g||a(e)){delete c[e];b=true}return b}function k(a,c,b){if(a.disabled|| -a.customConfig&&!b||!c)return false;a._.cachedChecks={};return true}function j(a,c){if(!a)return false;if(a===true)return a;if(typeof a=="string"){a=C(a);return a=="*"?true:CKEDITOR.tools.convertArrayToObject(a.split(c))}if(CKEDITOR.tools.isArray(a))return a.length?CKEDITOR.tools.convertArrayToObject(a):false;var b={},g=0,e;for(e in a){b[e]=a[e];g++}return g?b:false}function i(a,c){if(a.nothingRequired)return true;var b,g,d,h;if(d=a.requiredClasses){h=c.classes;for(b=0;b<d.length;++b){g=d[b];if(typeof g== -"string"){if(CKEDITOR.tools.indexOf(h,g)==-1)return false}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(h,g))return false}}return e(c.styles,a.requiredStyles)&&e(c.attributes,a.requiredAttributes)}function e(a,c){if(!c)return true;for(var b=0,g;b<c.length;++b){g=c[b];if(typeof g=="string"){if(!(g in a))return false}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(a,g))return false}return true}function c(a){if(!a)return{};for(var a=a.split(/\s*,\s*/).sort(),c={};a.length;)c[a.shift()]= -J;return c}function g(a){for(var c,b,g,e,d={},h=1,a=C(a);c=a.match(H);){if(b=c[2]){g=l(b,"styles");e=l(b,"attrs");b=l(b,"classes")}else g=e=b=null;d["$"+h++]={elements:c[1],classes:b,styles:g,attributes:e};a=a.slice(c[0].length)}return d}function l(a,c){var b=a.match(N[c]);return b?C(b[1]):null}function q(a){var c=a.styleBackup=a.attributes.style,b=a.classBackup=a.attributes["class"];if(!a.styles)a.styles=CKEDITOR.tools.parseCssText(c||"",1);if(!a.classes)a.classes=b?b.split(/\s+/):[]}function n(a, -c,b,g){var e=0,h;if(g.toHtml)c.name=c.name.replace(K,"$1");if(g.doCallbacks&&a.elementCallbacks){a:for(var i=a.elementCallbacks,k=0,j=i.length,o;k<j;++k)if(o=i[k](c)){h=o;break a}if(h)return h}if(g.doTransform)if(h=a._.transformations[c.name]){q(c);for(i=0;i<h.length;++i)w(a,c,h[i]);p(c)}if(g.doFilter){a:{i=c.name;k=a._;a=k.allowedRules.elements[i];h=k.allowedRules.generic;i=k.disallowedRules.elements[i];k=k.disallowedRules.generic;j=g.skipRequired;o={valid:false,validAttributes:{},validClasses:{}, -validStyles:{},allAttributes:false,allClasses:false,allStyles:false,hadInvalidAttribute:false,hadInvalidClass:false,hadInvalidStyle:false};var t,l;if(!a&&!h)a=null;else{q(c);if(i){t=0;for(l=i.length;t<l;++t)if(d(i[t],c,o)===false){a=null;break a}}if(k){t=0;for(l=k.length;t<l;++t)d(k[t],c,o)}if(a){t=0;for(l=a.length;t<l;++t)f(a[t],c,o,j)}if(h){t=0;for(l=h.length;t<l;++t)f(h[t],c,o,j)}a=o}}if(!a){b.push(c);return A}if(!a.valid){b.push(c);return A}l=a.validAttributes;var s=a.validStyles;h=a.validClasses; -var i=c.attributes,E=c.styles,k=c.classes,j=c.classBackup,r=c.styleBackup,x,F,v=[];o=[];var n=/^data-cke-/;t=false;delete i.style;delete i["class"];delete c.classBackup;delete c.styleBackup;if(!a.allAttributes)for(x in i)if(!l[x])if(n.test(x)){if(x!=(F=x.replace(/^data-cke-saved-/,""))&&!l[F]){delete i[x];t=true}}else{delete i[x];t=true}if(!a.allStyles||a.hadInvalidStyle){for(x in E)a.allStyles||s[x]?v.push(x+":"+E[x]):t=true;if(v.length)i.style=v.sort().join("; ")}else if(r)i.style=r;if(!a.allClasses|| -a.hadInvalidClass){for(x=0;x<k.length;++x)(a.allClasses||h[k[x]])&&o.push(k[x]);o.length&&(i["class"]=o.sort().join(" "));j&&o.length<j.split(/\s+/).length&&(t=true)}else j&&(i["class"]=j);t&&(e=A);if(!g.skipFinalValidation&&!m(c)){b.push(c);return A}}if(g.toHtml)c.name=c.name.replace(U,"cke:$1");return e}function o(a){var c=[],b;for(b in a)b.indexOf("*")>-1&&c.push(b.replace(/\*/g,".*"));return c.length?RegExp("^(?:"+c.join("|")+")$"):null}function p(a){var c=a.attributes,b;delete c.style;delete c["class"]; -if(b=CKEDITOR.tools.writeCssText(a.styles,true))c.style=b;a.classes.length&&(c["class"]=a.classes.sort().join(" "))}function m(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 r(a){if(!a)return false;if(a===true)return true;var c=o(a);return function(b){return b in a||c&&b.match(c)}}function u(){return new CKEDITOR.htmlParser.element("br")}function y(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.name== -"br"||B.$block[a.name])}function v(a,c,b){var g=a.name;if(B.$empty[g]||!a.children.length)if(g=="hr"&&c=="br")a.replaceWith(u());else{a.parent&&b.push({check:"it",el:a.parent});a.remove()}else if(B.$block[g]||g=="tr")if(c=="br"){if(a.previous&&!y(a.previous)){c=u();c.insertBefore(a)}if(a.next&&!y(a.next)){c=u();c.insertAfter(a)}a.replaceWithChildren()}else{var g=a.children,e;b:{e=B[c];for(var d=0,h=g.length,i;d<h;++d){i=g[d];if(i.type==CKEDITOR.NODE_ELEMENT&&!e[i.name]){e=false;break b}}e=true}if(e){a.name= -c;a.attributes={};b.push({check:"parent-down",el:a})}else{e=a.parent;for(var d=e.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||e.name=="body",f,k,h=g.length;h>0;){i=g[--h];if(d&&(i.type==CKEDITOR.NODE_TEXT||i.type==CKEDITOR.NODE_ELEMENT&&B.$inline[i.name])){if(!f){f=new CKEDITOR.htmlParser.element(c);f.insertAfter(a);b.push({check:"parent-down",el:f})}f.add(i,0)}else{f=null;k=B[e.name]||B.span;i.insertAfter(a);e.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(i.type==CKEDITOR.NODE_ELEMENT&&!k[i.name])&&b.push({check:"el-up", -el:i})}}a.remove()}}else if(g in{style:1,script:1})a.remove();else{a.parent&&b.push({check:"it",el:a.parent});a.replaceWithChildren()}}function w(a,c,b){var g,e;for(g=0;g<b.length;++g){e=b[g];if((!e.check||a.check(e.check,false))&&(!e.left||e.left(c))){e.right(c,S);break}}}function t(a,c){var b=c.getDefinition(),g=b.attributes,e=b.styles,d,h,i,f;if(a.name!=b.element)return false;for(d in g)if(d=="class"){b=g[d].split(/\s+/);for(i=a.classes.join("|");f=b.pop();)if(i.indexOf(f)==-1)return false}else if(a.attributes[d]!= -g[d])return false;for(h in e)if(a.styles[h]!=e[h])return false;return true}function s(a,c){var b,g;if(typeof a=="string")b=a;else if(a instanceof CKEDITOR.style)g=a;else{b=a[0];g=a[1]}return[{element:b,left:g,right:function(a,b){b.transform(a,c)}}]}function z(a){return function(c){return t(c,a)}}function x(a){return function(c,b){b[a](c)}}var B=CKEDITOR.dtd,A=1,D=CKEDITOR.tools.copy,C=CKEDITOR.tools.trim,J="cke-test",E=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2;CKEDITOR.filter=function(a){this.allowedContent= -[];this.disallowedContent=[];this.elementCallbacks=null;this.disabled=false;this.editor=null;this.id=CKEDITOR.tools.getNextNumber();this._={allowedRules:{elements:{},generic:[]},disallowedRules:{elements:{},generic:[]},transformations:{},cachedTests:{}};CKEDITOR.filter.instances[this.id]=this;if(a instanceof CKEDITOR.editor){a=this.editor=a;this.customConfig=true;var c=a.config.allowedContent;if(c===true)this.disabled=true;else{if(!c)this.customConfig=false;this.allow(c,"config",1);this.allow(a.config.extraAllowedContent, -"extra",1);this.allow(E[a.enterMode]+" "+E[a.shiftEnterMode],"default",1);this.disallow(a.config.disallowedContent)}}else{this.customConfig=false;this.allow(a,"default",1)}};CKEDITOR.filter.instances={};CKEDITOR.filter.prototype={allow:function(c,b,e){if(!k(this,c,e))return false;var d,h;if(typeof c=="string")c=g(c);else if(c instanceof CKEDITOR.style){if(c.toAllowedContentRules)return this.allow(c.toAllowedContentRules(this.editor),b,e);d=c.getDefinition();c={};e=d.attributes;c[d.element]=d={styles:d.styles, -requiredStyles:d.styles&&CKEDITOR.tools.objectKeys(d.styles)};if(e){e=D(e);d.classes=e["class"]?e["class"].split(/\s+/):null;d.requiredClasses=d.classes;delete e["class"];d.attributes=e;d.requiredAttributes=e&&CKEDITOR.tools.objectKeys(e)}}else if(CKEDITOR.tools.isArray(c)){for(d=0;d<c.length;++d)h=this.allow(c[d],b,e);return h}a(this,c,b,this.allowedContent,this._.allowedRules);return true},applyTo:function(a,c,b,g){if(this.disabled)return false;var e=this,d=[],h=this.editor&&this.editor.config.protectedSource, -i,f=false,k={doFilter:!b,doTransform:true,doCallbacks:true,toHtml:c};a.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=n(e,a,d,k);if(i&A)f=true;else if(i&2)return false}}else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var b;a:{var g=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));b=[];var j, -t,o;if(h)for(t=0;t<h.length;++t)if((o=g.match(h[t]))&&o[0].length==g.length){b=true;break a}g=CKEDITOR.htmlParser.fragment.fromHtml(g);g.children.length==1&&(j=g.children[0]).type==CKEDITOR.NODE_ELEMENT&&n(e,j,b,k);b=!b.length}b||d.push(a)}},null,true);d.length&&(f=true);for(var j,a=[],g=E[g||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)],t;b=d.pop();)b.type==CKEDITOR.NODE_ELEMENT?v(b,g,a):b.remove();for(;j=a.pop();){b=j.el;if(b.parent){t=B[b.parent.name]||B.span;switch(j.check){case "it":B.$removeEmpty[b.name]&& -!b.children.length?v(b,g,a):m(b)||v(b,g,a);break;case "el-up":b.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!t[b.name]&&v(b,g,a);break;case "parent-down":b.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!t[b.name]&&v(b.parent,g,a)}}}return f},checkFeature:function(a){if(this.disabled||!a)return true;a.toFeature&&(a=a.toFeature(this.editor));return!a.requiredContent||this.check(a.requiredContent)},disable:function(){this.disabled=true},disallow:function(c){if(!k(this,c,true))return false;typeof c== -"string"&&(c=g(c));a(this,c,null,this.disallowedContent,this._.disallowedRules);return true},addContentForms:function(a){if(!this.disabled&&a){var c,b,g=[],e;for(c=0;c<a.length&&!e;++c){b=a[c];if((typeof b=="string"||b instanceof CKEDITOR.style)&&this.check(b))e=b}if(e){for(c=0;c<a.length;++c)g.push(s(a[c],e));this.addTransformations(g)}}},addElementCallback:function(a){if(!this.elementCallbacks)this.elementCallbacks=[];this.elementCallbacks.push(a)},addFeature:function(a){if(this.disabled||!a)return true; -a.toFeature&&(a=a.toFeature(this.editor));this.allow(a.allowedContent,a.name);this.addTransformations(a.contentTransformations);this.addContentForms(a.contentForms);return a.requiredContent&&(this.customConfig||this.disallowedContent.length)?this.check(a.requiredContent):true},addTransformations:function(a){var c,b;if(!this.disabled&&a){var g=this._.transformations,e;for(e=0;e<a.length;++e){c=a[e];var d=void 0,h=void 0,i=void 0,f=void 0,k=void 0,j=void 0;b=[];for(h=0;h<c.length;++h){i=c[h];if(typeof i== -"string"){i=i.split(/\s*:\s*/);f=i[0];k=null;j=i[1]}else{f=i.check;k=i.left;j=i.right}if(!d){d=i;d=d.element?d.element:f?f.match(/^([a-z0-9]+)/i)[0]:d.left.getDefinition().element}k instanceof CKEDITOR.style&&(k=z(k));b.push({check:f==d?null:f,left:k,right:typeof j=="string"?x(j):j})}c=d;g[c]||(g[c]=[]);g[c].push(b)}}},check:function(a,b,e){if(this.disabled)return true;if(CKEDITOR.tools.isArray(a)){for(var d=a.length;d--;)if(this.check(a[d],b,e))return true;return false}var h,i;if(typeof a=="string"){i= -a+"<"+(b===false?"0":"1")+(e?"1":"0")+">";if(i in this._.cachedChecks)return this._.cachedChecks[i];d=g(a).$1;h=d.styles;var f=d.classes;d.name=d.elements;d.classes=f=f?f.split(/\s*,\s*/):[];d.styles=c(h);d.attributes=c(d.attributes);d.children=[];f.length&&(d.attributes["class"]=f.join(" "));if(h)d.attributes.style=CKEDITOR.tools.writeCssText(d.styles);h=d}else{d=a.getDefinition();h=d.styles;f=d.attributes||{};if(h){h=D(h);f.style=CKEDITOR.tools.writeCssText(h,true)}else h={};h={name:d.element,attributes:f, -classes:f["class"]?f["class"].split(/\s+/):[],styles:h,children:[]}}var f=CKEDITOR.tools.clone(h),k=[],j;if(b!==false&&(j=this._.transformations[h.name])){for(d=0;d<j.length;++d)w(this,h,j[d]);p(h)}n(this,f,k,{doFilter:true,doTransform:b!==false,skipRequired:!e,skipFinalValidation:!e});b=k.length>0?false:CKEDITOR.tools.objectCompare(h.attributes,f.attributes,true)?true:false;typeof a=="string"&&(this._.cachedChecks[i]=b);return b},getAllowedEnterMode:function(){var a=["p","div","br"],c={p:CKEDITOR.ENTER_P, -div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(b,g){var d=a.slice(),e;if(this.check(E[b]))return b;for(g||(d=d.reverse());e=d.pop();)if(this.check(e))return c[e];return CKEDITOR.ENTER_BR}}(),destroy:function(){delete CKEDITOR.filter.instances[this.id];delete this._;delete this.allowedContent;delete this.disallowedContent}};var F={styles:1,attributes:1,classes:1},M={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},H=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i, -N={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},K=/^cke:(object|embed|param)$/,U=/^(object|embed|param)$/,S=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a,"height")},sizeToAttribute:function(a){this.lengthToAttribute(a,"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,c,b){b=b||c;if(!(b in a.styles)){var g=a.attributes[c];if(g){/^\d+$/.test(g)&&(g=g+"px");a.styles[b]=g}}delete a.attributes[c]}, -lengthToAttribute:function(a,c,b){b=b||c;if(!(b in a.attributes)){var g=a.styles[c],d=g&&g.match(/^(\d+)(?:\.\d*)?px$/);d?a.attributes[b]=d[1]:g==J&&(a.attributes[b]=J)}delete a.styles[c]},alignmentToStyle:function(a){if(!("float"in a.styles)){var c=a.attributes.align;if(c=="left"||c=="right")a.styles["float"]=c}delete a.attributes.align},alignmentToAttribute:function(a){if(!("align"in a.attributes)){var c=a.styles["float"];if(c=="left"||c=="right")a.attributes.align=c}delete a.styles["float"]},matchesStyle:t, -transform:function(a,c){if(typeof c=="string")a.name=c;else{var b=c.getDefinition(),g=b.styles,d=b.attributes,e,h,i,f;a.name=b.element;for(e in d)if(e=="class"){b=a.classes.join("|");for(i=d[e].split(/\s+/);f=i.pop();)b.indexOf(f)==-1&&a.classes.push(f)}else a.attributes[e]=d[e];for(h in g)a.styles[h]=g[h]}}}}(),function(){CKEDITOR.focusManager=function(a){if(a.focusManager)return a.focusManager;this.hasFocus=false;this.currentActive=null;this._={editor:a};return this};CKEDITOR.focusManager._={blurDelay:200}; -CKEDITOR.focusManager.prototype={focus:function(a){this._.timer&&clearTimeout(this._.timer);if(a)this.currentActive=a;if(!this.hasFocus&&!this._.locked){(a=CKEDITOR.currentInstance)&&a.focusManager.blur(1);this.hasFocus=true;(a=this._.editor.container)&&a.addClass("cke_focus");this._.editor.fire("focus")}},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(a){function f(){if(this.hasFocus){this.hasFocus=false;var a=this._.editor.container;a&&a.removeClass("cke_focus"); -this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var b=CKEDITOR.focusManager._.blurDelay;a||!b?f.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;f.call(this)},b,this)}},add:function(a,f){var b=a.getCustomData("focusmanager");if(!b||b!=this){b&&b.remove(a);var b="focus",d="blur";if(f)if(CKEDITOR.env.ie){b="focusin";d="focusout"}else CKEDITOR.event.useCapture=1;var h={blur:function(){a.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(a)}}; -a.on(b,h.focus,this);a.on(d,h.blur,this);if(f)CKEDITOR.event.useCapture=0;a.setCustomData("focusmanager",this);a.setCustomData("focusmanager_handlers",h)}},remove:function(a){a.removeCustomData("focusmanager");var f=a.removeCustomData("focusmanager_handlers");a.removeListener("blur",f.blur);a.removeListener("focus",f.focus)}}}(),CKEDITOR.keystrokeHandler=function(a){if(a.keystrokeHandler)return a.keystrokeHandler;this.keystrokes={};this.blockedKeystrokes={};this._={editor:a};return this},function(){var a, -f=function(b){var b=b.data,h=b.getKeystroke(),f=this.keystrokes[h],j=this._.editor;a=j.fire("key",{keyCode:h,domEvent:b})===false;if(!a){f&&(a=j.execCommand(f,{from:"keystrokeHandler"})!==false);a||(a=!!this.blockedKeystrokes[h])}a&&b.preventDefault(true);return!a},b=function(b){if(a){a=false;b.data.preventDefault(true)}};CKEDITOR.keystrokeHandler.prototype={attach:function(a){a.on("keydown",f,this);if(CKEDITOR.env.gecko&&CKEDITOR.env.mac)a.on("keypress",b,this)}}}(),function(){CKEDITOR.lang={languages:{af:1, -ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,"zh-cn":1,zh:1},rtl:{ar:1,fa:1,he:1,ku:1,ug:1},load:function(a,f,b){if(!a||!CKEDITOR.lang.languages[a])a=this.detect(f,a);var d=this,f=function(){d[a].dir= -d.rtl[a]?"rtl":"ltr";b(a,d[a])};this[a]?f():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+a+".js"),f,this)},detect:function(a,f){var b=this.languages,f=f||navigator.userLanguage||navigator.language||a,d=f.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),h=d[1],d=d[2];b[h+"-"+d]?h=h+"-"+d:b[h]||(h=null);CKEDITOR.lang.detect=h?function(){return h}:function(a){return a};return h||a}}}(),CKEDITOR.scriptLoader=function(){var a={},f={};return{load:function(b,d,h,k){var j=typeof b=="string";j&&(b=[b]); -h||(h=CKEDITOR);var i=b.length,e=[],c=[],g=function(a){d&&(j?d.call(h,a):d.call(h,e,c))};if(i===0)g(true);else{var l=function(a,b){(b?e:c).push(a);if(--i<=0){k&&CKEDITOR.document.getDocumentElement().removeStyle("cursor");g(b)}},q=function(c,b){a[c]=1;var g=f[c];delete f[c];for(var e=0;e<g.length;e++)g[e](c,b)},n=function(c){if(a[c])l(c,true);else{var b=f[c]||(f[c]=[]);b.push(l);if(!(b.length>1)){var g=new CKEDITOR.dom.element("script");g.setAttributes({type:"text/javascript",src:c});if(d)if(CKEDITOR.env.ie&& -CKEDITOR.env.version<11)g.$.onreadystatechange=function(){if(g.$.readyState=="loaded"||g.$.readyState=="complete"){g.$.onreadystatechange=null;q(c,true)}};else{g.$.onload=function(){setTimeout(function(){q(c,true)},0)};g.$.onerror=function(){q(c,false)}}g.appendTo(CKEDITOR.document.getHead())}}};k&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var o=0;o<i;o++)n(b[o])}},queue:function(){function a(){var b;(b=d[0])&&this.load(b.scriptUrl,b.callback,CKEDITOR,0)}var d=[];return function(h, -f){var j=this;d.push({scriptUrl:h,callback:function(){f&&f.apply(this,arguments);d.shift();a.call(j)}});d.length==1&&a.call(this)}}()}}(),CKEDITOR.resourceManager=function(a,f){this.basePath=a;this.fileName=f;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(a,f){if(this.registered[a])throw'[CKEDITOR.resourceManager.add] The resource name "'+a+'" is already registered.';var b=this.registered[a]=f||{};b.name=a;b.path=this.getPath(a); -CKEDITOR.fire(a+CKEDITOR.tools.capitalize(this.fileName)+"Ready",b);return this.get(a)},get:function(a){return this.registered[a]||null},getPath:function(a){var f=this.externals[a];return CKEDITOR.getUrl(f&&f.dir||this.basePath+a+"/")},getFilePath:function(a){var f=this.externals[a];return CKEDITOR.getUrl(this.getPath(a)+(f?f.file:this.fileName+".js"))},addExternal:function(a,f,b){for(var a=a.split(","),d=0;d<a.length;d++){var h=a[d];b||(f=f.replace(/[^\/]+$/,function(a){b=a;return""}));this.externals[h]= -{dir:f,file:b||this.fileName+".js"}}},load:function(a,f,b){CKEDITOR.tools.isArray(a)||(a=a?[a]:[]);for(var d=this.loaded,h=this.registered,k=[],j={},i={},e=0;e<a.length;e++){var c=a[e];if(c)if(!d[c]&&!h[c]){var g=this.getFilePath(c);k.push(g);g in j||(j[g]=[]);j[g].push(c)}else i[c]=this.get(c)}CKEDITOR.scriptLoader.load(k,function(a,c){if(c.length)throw'[CKEDITOR.resourceManager.load] Resource name "'+j[c[0]].join(",")+'" was not found at "'+c[0]+'".';for(var g=0;g<a.length;g++)for(var e=j[a[g]], -h=0;h<e.length;h++){var k=e[h];i[k]=this.get(k);d[k]=1}f.call(b,i)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(a){var f={};return function(b,d,h){var k={},j=function(b){a.call(this,b,function(a){CKEDITOR.tools.extend(k,a);var c=[],b;for(b in a){var i=a[b],q=i&&i.requires;if(!f[b]){if(i.icons)for(var n=i.icons.split(","),o=n.length;o--;)CKEDITOR.skin.addIcon(n[o],i.path+"icons/"+(CKEDITOR.env.hidpi&& -i.hidpi?"hidpi/":"")+n[o]+".png");f[b]=1}if(q){q.split&&(q=q.split(","));for(i=0;i<q.length;i++)k[q[i]]||c.push(q[i])}}if(c.length)j.call(this,c);else{for(b in k){i=k[b];if(i.onLoad&&!i.onLoad._called){i.onLoad()===false&&delete k[b];i.onLoad._called=1}}d&&d.call(h||window,k)}},this)};j.call(this,b)}}),CKEDITOR.plugins.setLang=function(a,f,b){var d=this.get(a),a=d.langEntries||(d.langEntries={}),d=d.lang||(d.lang=[]);d.split&&(d=d.split(","));CKEDITOR.tools.indexOf(d,f)==-1&&d.push(f);a[f]=b},CKEDITOR.ui= -function(a){if(a.ui)return a.ui;this.items={};this.instances={};this.editor=a;this._={handlers:{}};return this},CKEDITOR.ui.prototype={add:function(a,f,b){b.name=a.toLowerCase();var d=this.items[a]={type:f,command:b.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(d,b)},get:function(a){return this.instances[a]},create:function(a){var f=this.items[a],b=f&&this._.handlers[f.type],d=f&&f.command&&this.editor.getCommand(f.command),b=b&&b.create.apply(this,f.args);this.instances[a]= -b;d&&d.uiItems.push(b);if(b&&!b.type)b.type=f.type;return b},addHandler:function(a,f){this._.handlers[a]=f},space:function(a){return CKEDITOR.document.getById(this.spaceId(a))},spaceId:function(a){return this.editor.id+"_"+a}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function a(a,c,g){CKEDITOR.event.call(this);a=a&&CKEDITOR.tools.clone(a);if(c!==void 0){if(c instanceof CKEDITOR.dom.element){if(!g)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&&g==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!(g==CKEDITOR.ELEMENT_MODE_INLINE?c.is(CKEDITOR.dtd.$editable)||c.is("textarea"):g==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=g;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||f();this.id=CKEDITOR.tools.getNextId();this.status="unloaded";this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config);this.ui=new CKEDITOR.ui(this);this.focusManager=new CKEDITOR.focusManager(this);this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this);this.on("readOnly",b);this.on("selectionChange",function(a){h(this,a.data.path)});this.on("activeFilterChange",function(){h(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(){j(this,a)},0,this)}function f(){do var a="editor"+ ++q;while(CKEDITOR.instances[a]);return a}function b(){var a=this.commands,c;for(c in a)d(this,a[c])}function d(a,c){c[c.startDisabled?"disable":a.readOnly&&!c.readOnly?"disable":c.modes[a.mode]?"enable":"disable"]()}function h(a,c,b){if(c){var g,e,d=a.commands; -for(e in d){g=d[e];(b||g.contextSensitive)&&g.refresh(a,c)}}}function k(a){var c=a.config.customConfig;if(!c)return false;var c=CKEDITOR.getUrl(c),b=n[c]||(n[c]={});if(b.fn){b.fn.call(a,a.config);(CKEDITOR.getUrl(a.config.customConfig)==c||!k(a))&&a.fireOnce("customConfigLoaded")}else CKEDITOR.scriptLoader.queue(c,function(){b.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};k(a)});return true}function j(a,c){a.on("customConfigLoaded",function(){if(c){if(c.on)for(var b in c.on)a.on(b,c.on[b]); -CKEDITOR.tools.extend(a.config,c,true);delete a.config.on}b=a.config;a.readOnly=b.readOnly?true:a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.is("textarea")?a.element.hasAttribute("disabled")||a.element.hasAttribute("readonly"):a.element.isReadOnly():a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?a.element.hasAttribute("disabled")||a.element.hasAttribute("readonly"):false;a.blockless=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?!(a.element.is("textarea")||CKEDITOR.dtd[a.element.getName()].p): -false;a.tabIndex=b.tabIndex||a.element&&a.element.getAttribute("tabindex")||0;a.activeEnterMode=a.enterMode=a.blockless?CKEDITOR.ENTER_BR:b.enterMode;a.activeShiftEnterMode=a.shiftEnterMode=a.blockless?CKEDITOR.ENTER_BR:b.shiftEnterMode;if(b.skin)CKEDITOR.skinName=b.skin;a.fireOnce("configLoaded");a.dataProcessor=new CKEDITOR.htmlDataProcessor(a);a.filter=a.activeFilter=new CKEDITOR.filter(a);i(a)});if(c&&c.customConfig!=null)a.config.customConfig=c.customConfig;k(a)||a.fireOnce("customConfigLoaded")} -function i(a){CKEDITOR.skin.loadPart("editor",function(){e(a)})}function e(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(b,g){var e=a.config.title;a.langCode=b;a.lang=CKEDITOR.tools.prototypedCopy(g);a.title=typeof e=="string"||e===false?e:[a.lang.editor,a.name].join(", ");if(!a.config.contentsLangDirection)a.config.contentsLangDirection=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.getDirection(1):a.lang.dir;a.fire("langLoaded");c(a)})}function c(a){a.getStylesSet(function(c){a.once("loaded", -function(){a.fire("stylesSet",{styles:c})},null,null,1);g(a)})}function g(a){var c=a.config,b=c.plugins,g=c.extraPlugins,e=c.removePlugins;if(g)var d=RegExp("(?:^|,)(?:"+g.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),b=b.replace(d,""),b=b+(","+g);if(e)var h=RegExp("(?:^|,)(?:"+e.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),b=b.replace(h,"");CKEDITOR.env.air&&(b=b+",adobeair");CKEDITOR.plugins.load(b.split(","),function(b){var g=[],e=[],d=[];a.plugins=b;for(var i in b){var f=b[i],k=f.lang,j=null,l=f.requires, -m;CKEDITOR.tools.isArray(l)&&(l=l.join(","));if(l&&(m=l.match(h)))for(;l=m.pop();)CKEDITOR.tools.setTimeout(function(a,c){throw Error('Plugin "'+a.replace(",","")+'" cannot be removed from the plugins list, because it\'s required by "'+c+'" plugin.');},0,null,[l,i]);if(k&&!a.lang[i]){k.split&&(k=k.split(","));if(CKEDITOR.tools.indexOf(k,a.langCode)>=0)j=a.langCode;else{j=a.langCode.replace(/-.*/,"");j=j!=a.langCode&&CKEDITOR.tools.indexOf(k,j)>=0?j:CKEDITOR.tools.indexOf(k,"en")>=0?"en":k[0]}if(!f.langEntries|| -!f.langEntries[j])d.push(CKEDITOR.getUrl(f.path+"lang/"+j+".js"));else{a.lang[i]=f.langEntries[j];j=null}}e.push(j);g.push(f)}CKEDITOR.scriptLoader.load(d,function(){for(var b=["beforeInit","init","afterInit"],d=0;d<b.length;d++)for(var h=0;h<g.length;h++){var i=g[h];d===0&&(e[h]&&i.lang&&i.langEntries)&&(a.lang[i.name]=i.langEntries[e[h]]);if(i[b[d]])i[b[d]](a)}a.fireOnce("pluginsLoaded");c.keystrokes&&a.setKeystroke(a.config.keystrokes);for(h=0;h<a.config.blockedKeystrokes.length;h++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[h]]= -1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)})})}function l(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var c=this.getData();this.config.htmlEncodeOutput&&(c=CKEDITOR.tools.htmlEncode(c));a.is("textarea")?a.setValue(c):a.setHtml(c);return true}return false}a.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=a;var q=0,n={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(a,c){c.name=a.toLowerCase();var b=new CKEDITOR.command(this, -c);this.mode&&d(this,b);return this.commands[a]=b},_attachToForm:function(){function a(g){c.updateElement();c._.required&&(!b.getValue()&&c.fire("required")===false)&&g.data.preventDefault()}var c=this,b=c.element,g=new CKEDITOR.dom.element(b.$.form);if(b.is("textarea")&&g){g.on("submit",a);if(g.$.submit&&g.$.submit.call&&g.$.submit.apply)g.$.submit=CKEDITOR.tools.override(g.$.submit,function(c){return function(){a();c.apply?c.apply(this):c()}});c.on("destroy",function(){g.removeListener("submit", -a)})}},destroy:function(a){this.fire("beforeDestroy");!a&&l.call(this);this.editable(null);this.filter.destroy();delete this.filter;delete this.activeFilter;this.status="destroyed";this.fire("destroy");this.removeAllListeners();CKEDITOR.remove(this);CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(a){if(!a){a=this.getSelection();if(!a)return null;a=a.getStartElement()}return a?new CKEDITOR.dom.elementPath(a,this.editable()):null},createRange:function(){var a=this.editable();return a? -new CKEDITOR.dom.range(a):null},execCommand:function(a,c){var b=this.getCommand(a),g={name:a,commandData:c,command:b};if(b&&b.state!=CKEDITOR.TRISTATE_DISABLED&&this.fire("beforeCommandExec",g)!==false){g.returnValue=b.exec(g.commandData);if(!b.async&&this.fire("afterCommandExec",g)!==false)return g.returnValue}return false},getCommand:function(a){return this.commands[a]},getData:function(a){!a&&this.fire("beforeGetData");var c=this._.data;if(typeof c!="string")c=(c=this.element)&&this.elementMode== -CKEDITOR.ELEMENT_MODE_REPLACE?c.is("textarea")?c.getValue():c.getHtml():"";c={dataValue:c};!a&&this.fire("getData",c);return c.dataValue},getSnapshot:function(){var a=this.fire("getSnapshot");if(typeof a!="string")a=(a=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?a.is("textarea")?a.getValue():a.getHtml():"";return a},loadSnapshot:function(a){this.fire("loadSnapshot",a)},setData:function(a,c,b){var g=true,e=c;if(c&&typeof c=="object"){b=c.internal;e=c.callback;g=!c.noSnapshot}!b&& -g&&this.fire("saveSnapshot");if(e||!b)this.once("dataReady",function(a){!b&&g&&this.fire("saveSnapshot");e&&e.call(a.editor)});a={dataValue:a};!b&&this.fire("setData",a);this._.data=a.dataValue;!b&&this.fire("afterSetData",a)},setReadOnly:function(a){a=a==null||a;if(this.readOnly!=a){this.readOnly=a;this.keystrokeHandler.blockedKeystrokes[8]=+a;this.editable().setReadOnly(a);this.fire("readOnly")}},insertHtml:function(a,c,b){this.fire("insertHtml",{dataValue:a,mode:c,range:b})},insertText:function(a){this.fire("insertText", -a)},insertElement:function(a){this.fire("insertElement",a)},getSelectedHtml:function(a){var c=this.editable(),b=this.getSelection(),b=b&&b.getRanges();if(!c||!b||b.length===0)return null;c=c.getHtmlFromRange(b[0]);return a?c.getHtml():c},extractSelectedHtml:function(a,c){var b=this.editable(),g=this.getSelection().getRanges();if(!b||g.length===0)return null;g=g[0];b=b.extractHtmlFromRange(g,c);c||this.getSelection().selectRanges([g]);return a?b.getHtml():b},focus:function(){this.fire("beforeFocus")}, -checkDirty:function(){return this.status=="ready"&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return l.call(this)},setKeystroke:function(){for(var a=this.keystrokeHandler.keystrokes,c=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],b,g,e=c.length;e--;){b=c[e];g=0;if(CKEDITOR.tools.isArray(b)){g=b[1];b=b[0]}g?a[b]=g:delete a[b]}},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,c){a=a?this.blockless?CKEDITOR.ENTER_BR:a:this.enterMode;c=c?this.blockless?CKEDITOR.ENTER_BR:c:this.shiftEnterMode;if(this.activeEnterMode!=a||this.activeShiftEnterMode!=c){this.activeEnterMode= -a;this.activeShiftEnterMode=c;this.fire("activeEnterModeChange")}},showNotification:function(a){alert(a)}})}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:/<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--\>)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},function(){var a=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g, -f={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 d,h,k=0,j;d=this._.htmlPartsRegex.exec(b);){h=d.index;if(h>k){k=b.substring(k,h);if(j)j.push(k);else this.onText(k)}k=this._.htmlPartsRegex.lastIndex;if(h=d[1]){h=h.toLowerCase();if(j&&CKEDITOR.dtd.$cdata[h]){this.onCDATA(j.join("")); -j=null}if(!j){this.onTagClose(h);continue}}if(j)j.push(d[0]);else if(h=d[3]){h=h.toLowerCase();if(!/="/.test(h)){var i={},e,c=d[4];d=!!d[5];if(c)for(;e=a.exec(c);){var g=e[1].toLowerCase();e=e[2]||e[3]||e[4]||"";i[g]=!e&&f[g]?g:CKEDITOR.tools.htmlDecodeAttr(e)}this.onTagOpen(h,i,d);!j&&CKEDITOR.dtd.$cdata[h]&&(j=[])}}else if(h=d[2])this.onComment(h)}if(b.length>k)this.onText(b.substring(k,b.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}}, -proto:{openTag:function(a){this._.output.push("<",a)},openTagClose:function(a,f){f?this._.output.push(" />"):this._.output.push(">")},attribute:function(a,f){typeof f=="string"&&(f=CKEDITOR.tools.htmlEncodeAttr(f));this._.output.push(" ",a,'="',f,'"')},closeTag:function(a){this._.output.push("</",a,">")},text:function(a){this._.output.push(a)},comment:function(a){this._.output.push("<\!--",a,"--\>")},write:function(a){this._.output.push(a)},reset:function(){this._.output=[];this._.indent=false},getHtml:function(a){var f= -this._.output.join("");a&&this.reset();return f}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var a=this.parent.children,f=CKEDITOR.tools.indexOf(a,this),b=this.previous,d=this.next;b&&(b.next=d);d&&(d.previous=b);a.splice(f,1);this.parent=null},replaceWith:function(a){var f=this.parent.children,b=CKEDITOR.tools.indexOf(f,this),d=a.previous=this.previous,h=a.next=this.next;d&&(d.next=a);h&&(h.previous=a);f[b]=a;a.parent=this.parent; -this.parent=null},insertAfter:function(a){var f=a.parent.children,b=CKEDITOR.tools.indexOf(f,a),d=a.next;f.splice(b+1,0,this);this.next=a.next;this.previous=a;a.next=this;d&&(d.previous=this);this.parent=a.parent},insertBefore:function(a){var f=a.parent.children,b=CKEDITOR.tools.indexOf(f,a);f.splice(b,0,this);this.next=a;(this.previous=a.previous)&&(a.previous.next=this);a.previous=this;this.parent=a.parent},getAscendant:function(a){var f=typeof a=="function"?a:typeof a=="string"?function(b){return b.name== -a}:function(b){return b.name in a},b=this.parent;for(;b&&b.type==CKEDITOR.NODE_ELEMENT;){if(f(b))return b;b=b.parent}return null},wrapWith:function(a){this.replaceWith(a);a.add(this);return a},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(a){return a||{}}}}(),"use strict",CKEDITOR.htmlParser.comment=function(a){this.value=a;this._={isBlockLike:false}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node, -{type:CKEDITOR.NODE_COMMENT,filter:function(a,f){var b=this.value;if(!(b=a.onComment(f,b,this))){this.remove();return false}if(typeof b!="string"){this.replaceWith(b);return false}this.value=b;return true},writeHtml:function(a,f){f&&this.filter(f);a.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(a){this.value=a;this._={isBlockLike:false}};CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(a, -f){if(!(this.value=a.onText(f,this.value,this))){this.remove();return false}},writeHtml:function(a,f){f&&this.filter(f);a.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(a){this.value=a};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(a){a.write(this.value)}})}(),"use strict",CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true, -hasInlineStarted:false}},function(){function a(a){return a.attributes["data-cke-survive"]?false:a.name=="a"&&a.attributes.href||CKEDITOR.dtd.$removeEmpty[a.name]}var f=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},d=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),h={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml= -function(k,j,i){function e(a){var b;if(m.length>0)for(var g=0;g<m.length;g++){var e=m[g],d=e.name,h=CKEDITOR.dtd[d],i=u.name&&CKEDITOR.dtd[u.name];if((!i||i[d])&&(!a||!h||h[a]||!CKEDITOR.dtd[a])){if(!b){c();b=1}e=e.clone();e.parent=u;u=e;m.splice(g,1);g--}else if(d==u.name){l(u,u.parent,1);g--}}}function c(){for(;r.length;)l(r.shift(),u)}function g(a){if(a._.isBlockLike&&a.name!="pre"&&a.name!="textarea"){var c=a.children.length,b=a.children[c-1],g;if(b&&b.type==CKEDITOR.NODE_TEXT)(g=CKEDITOR.tools.rtrim(b.value))? -b.value=g:a.children.length=c-1}}function l(c,b,e){var b=b||u||p,d=u;if(c.previous===void 0){if(q(b,c)){u=b;o.onTagOpen(i,{});c.returnPoint=b=u}g(c);(!a(c)||c.children.length)&&b.add(c);c.name=="pre"&&(v=false);c.name=="textarea"&&(y=false)}if(c.returnPoint){u=c.returnPoint;delete c.returnPoint}else u=e?b:d}function q(a,c){if((a==p||a.name=="body")&&i&&(!a.name||CKEDITOR.dtd[a.name][i])){var b,g;return(b=c.attributes&&(g=c.attributes["data-cke-real-element-type"])?g:c.name)&&b in CKEDITOR.dtd.$inline&& -!(b in CKEDITOR.dtd.head)&&!c.isOrphan||c.type==CKEDITOR.NODE_TEXT}}function n(a,c){return a in CKEDITOR.dtd.$listItem||a in CKEDITOR.dtd.$tableContent?a==c||a=="dt"&&c=="dd"||a=="dd"&&c=="dt":false}var o=new CKEDITOR.htmlParser,p=j instanceof CKEDITOR.htmlParser.element?j:typeof j=="string"?new CKEDITOR.htmlParser.element(j):new CKEDITOR.htmlParser.fragment,m=[],r=[],u=p,y=p.name=="textarea",v=p.name=="pre";o.onTagOpen=function(g,h,i,j){h=new CKEDITOR.htmlParser.element(g,h);if(h.isUnknown&&i)h.isEmpty= -true;h.isOptionalClose=j;if(a(h))m.push(h);else{if(g=="pre")v=true;else{if(g=="br"&&v){u.add(new CKEDITOR.htmlParser.text("\n"));return}g=="textarea"&&(y=true)}if(g=="br")r.push(h);else{for(;;){j=(i=u.name)?CKEDITOR.dtd[i]||(u._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):d;if(!h.isUnknown&&!u.isUnknown&&!j[g])if(u.isOptionalClose)o.onTagClose(i);else if(g in b&&i in b){i=u.children;(i=i[i.length-1])&&i.name=="li"||l(i=new CKEDITOR.htmlParser.element("li"),u);!h.returnPoint&&(h.returnPoint=u); -u=i}else if(g in CKEDITOR.dtd.$listItem&&!n(g,i))o.onTagOpen(g=="li"?"ul":"dl",{},0,1);else if(i in f&&!n(g,i)){!h.returnPoint&&(h.returnPoint=u);u=u.parent}else{i in CKEDITOR.dtd.$inline&&m.unshift(u);if(u.parent)l(u,u.parent,1);else{h.isOrphan=1;break}}else break}e(g);c();h.parent=u;h.isEmpty?l(h):u=h}}};o.onTagClose=function(a){for(var b=m.length-1;b>=0;b--)if(a==m[b].name){m.splice(b,1);return}for(var g=[],e=[],d=u;d!=p&&d.name!=a;){d._.isBlockLike||e.unshift(d);g.push(d);d=d.returnPoint||d.parent}if(d!= -p){for(b=0;b<g.length;b++){var h=g[b];l(h,h.parent)}u=d;d._.isBlockLike&&c();l(d,d.parent);if(d==u)u=u.parent;m=m.concat(e)}a=="body"&&(i=false)};o.onText=function(a){if((!u._.hasInlineStarted||r.length)&&!v&&!y){a=CKEDITOR.tools.ltrim(a);if(a.length===0)return}var b=u.name,g=b?CKEDITOR.dtd[b]||(u._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):d;if(!y&&!g["#"]&&b in f){o.onTagOpen(h[b]||"");o.onText(a)}else{c();e();!v&&!y&&(a=a.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));a=new CKEDITOR.htmlParser.text(a); -if(q(u,a))this.onTagOpen(i,{},0,1);u.add(a)}};o.onCDATA=function(a){u.add(new CKEDITOR.htmlParser.cdata(a))};o.onComment=function(a){c();e();u.add(new CKEDITOR.htmlParser.comment(a))};o.parse(k);for(c();u!=p;)l(u,u.parent,1);g(p);return p};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(a,b){isNaN(b)&&(b=this.children.length);var d=b>0?this.children[b-1]:null;if(d){if(a._.isBlockLike&&d.type==CKEDITOR.NODE_TEXT){d.value=CKEDITOR.tools.rtrim(d.value);if(d.value.length=== -0){this.children.pop();this.add(a);return}}d.next=a}a.previous=d;a.parent=this;this.children.splice(b,0,a);if(!this._.hasInlineStarted)this._.hasInlineStarted=a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&!a._.isBlockLike},filter:function(a,b){b=this.getFilterContext(b);a.onRoot(b,this);this.filterChildren(a,false,b)},filterChildren:function(a,b,d){if(this.childrenFilteredBy!=a.id){d=this.getFilterContext(d);if(b&&!this.parent)a.onRoot(d,this);this.childrenFilteredBy=a.id;for(b=0;b<this.children.length;b++)this.children[b].filter(a, -d)===false&&b--}},writeHtml:function(a,b){b&&this.filter(b);this.writeChildrenHtml(a)},writeChildrenHtml:function(a,b,d){var e=this.getFilterContext();if(d&&!this.parent&&b)b.onRoot(e,this);b&&this.filterChildren(b,false,e);b=0;d=this.children;for(e=d.length;b<e;b++)d[b].writeHtml(a)},forEach:function(a,b,d){if(!d&&(!b||this.type==b))var e=a(this);if(e!==false)for(var d=this.children,c=0;c<d.length;c++){e=d[c];e.type==CKEDITOR.NODE_ELEMENT?e.forEach(a,b):(!b||e.type==b)&&a(e)}},getFilterContext:function(a){return a|| -{}}}}(),"use strict",function(){function a(){this.rules=[]}function f(b,d,h,f){var j,i;for(j in d){(i=b[j])||(i=b[j]=new a);i.add(d[j],h,f)}}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(b){this.id=CKEDITOR.tools.getNextNumber();this.elementNameRules=new a;this.attributeNameRules=new a;this.elementsRules={};this.attributesRules={};this.textRules=new a;this.commentRules=new a;this.rootRules=new a;b&&this.addRules(b,10)},proto:{addRules:function(a,d){var h;if(typeof d=="number")h= -d;else if(d&&"priority"in d)h=d.priority;typeof h!="number"&&(h=10);typeof d!="object"&&(d={});a.elementNames&&this.elementNameRules.addMany(a.elementNames,h,d);a.attributeNames&&this.attributeNameRules.addMany(a.attributeNames,h,d);a.elements&&f(this.elementsRules,a.elements,h,d);a.attributes&&f(this.attributesRules,a.attributes,h,d);a.text&&this.textRules.add(a.text,h,d);a.comment&&this.commentRules.add(a.comment,h,d);a.root&&this.rootRules.add(a.root,h,d)},applyTo:function(a){a.filter(this)},onElementName:function(a, -d){return this.elementNameRules.execOnName(a,d)},onAttributeName:function(a,d){return this.attributeNameRules.execOnName(a,d)},onText:function(a,d,h){return this.textRules.exec(a,d,h)},onComment:function(a,d,h){return this.commentRules.exec(a,d,h)},onRoot:function(a,d){return this.rootRules.exec(a,d)},onElement:function(a,d){for(var h=[this.elementsRules["^"],this.elementsRules[d.name],this.elementsRules.$],f,j=0;j<3;j++)if(f=h[j]){f=f.exec(a,d,this);if(f===false)return null;if(f&&f!=d)return this.onNode(a, -f);if(d.parent&&!d.name)break}return d},onNode:function(a,d){var h=d.type;return h==CKEDITOR.NODE_ELEMENT?this.onElement(a,d):h==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(a,d.value)):h==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(a,d.value)):null},onAttribute:function(a,d,h,f){return(h=this.attributesRules[h])?h.exec(a,f,d,this):f}}});CKEDITOR.htmlParser.filterRulesGroup=a;a.prototype={add:function(a,d,h){this.rules.splice(this.findIndex(d),0,{value:a,priority:d, -options:h})},addMany:function(a,d,h){for(var f=[this.findIndex(d),0],j=0,i=a.length;j<i;j++)f.push({value:a[j],priority:d,options:h});this.rules.splice.apply(this.rules,f)},findIndex:function(a){for(var d=this.rules,h=d.length-1;h>=0&&a<d[h].priority;)h--;return h+1},exec:function(a,d){var h=d instanceof CKEDITOR.htmlParser.node||d instanceof CKEDITOR.htmlParser.fragment,f=Array.prototype.slice.call(arguments,1),j=this.rules,i=j.length,e,c,g,l;for(l=0;l<i;l++){if(h){e=d.type;c=d.name}g=j[l];if(!(a.nonEditable&& -!g.options.applyToAll||a.nestedEditable&&g.options.excludeNestedEditable)){g=g.value.apply(null,f);if(g===false||h&&g&&(g.name!=c||g.type!=e))return g;g!=null&&(f[0]=d=g)}}return d},execOnName:function(a,d){for(var h=0,f=this.rules,j=f.length,i;d&&h<j;h++){i=f[h];!(a.nonEditable&&!i.options.applyToAll||a.nestedEditable&&i.options.excludeNestedEditable)&&(d=d.replace(i.value[0],i.value[1]))}return d}}}(),function(){function a(a,c){function g(a){return a||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "): -new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function e(a,c){return function(e){if(e.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var h=[],f=b(e),j,t;if(f)for(i(f,1)&&h.push(f);f;){if(k(f)&&(j=d(f))&&i(j))if((t=d(j))&&!k(t))h.push(j);else{g(l).insertAfter(j);j.remove()}f=f.previous}for(f=0;f<h.length;f++)h[f].remove();if(h=!a||(typeof c=="function"?c(e):c)!==false)if(!l&&!CKEDITOR.env.needsBrFiller&&e.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)h=false;else if(!l&&!CKEDITOR.env.needsBrFiller&&(document.documentMode> -7||e.name in CKEDITOR.dtd.tr||e.name in CKEDITOR.dtd.$listItem))h=false;else{h=b(e);h=!h||e.name=="form"&&h.name=="input"}h&&e.add(g(a))}}}function i(a,c){if((!l||CKEDITOR.env.needsBrFiller)&&a.type==CKEDITOR.NODE_ELEMENT&&a.name=="br"&&!a.attributes["data-cke-eol"])return true;var b;if(a.type==CKEDITOR.NODE_TEXT&&(b=a.value.match(m))){if(b.index){(new CKEDITOR.htmlParser.text(a.value.substring(0,b.index))).insertBefore(a);a.value=b[0]}if(!CKEDITOR.env.needsBrFiller&&l&&(!c||a.parent.name in t))return true; -if(!l)if((b=a.previous)&&b.name=="br"||!b||k(b))return true}return false}var f={elements:{}},l=c=="html",t=CKEDITOR.tools.extend({},v),E;for(E in t)"#"in u[E]||delete t[E];for(E in t)f.elements[E]=e(l,a.config.fillEmptyBlocks);f.root=e(l,false);f.elements.br=function(a){return function(c){if(c.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var b=c.attributes;if("data-cke-bogus"in b||"data-cke-eol"in b)delete b["data-cke-bogus"];else{for(b=c.next;b&&h(b);)b=b.next;var e=d(c);!b&&k(c.parent)?j(c.parent, -g(a)):k(b)&&(e&&!k(e))&&g(a).insertBefore(b)}}}}(l);return f}function f(a,c){return a!=CKEDITOR.ENTER_BR&&c!==false?a==CKEDITOR.ENTER_DIV?"div":"p":false}function b(a){for(a=a.children[a.children.length-1];a&&h(a);)a=a.previous;return a}function d(a){for(a=a.previous;a&&h(a);)a=a.previous;return a}function h(a){return a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(a.value)||a.type==CKEDITOR.NODE_ELEMENT&&a.attributes["data-cke-bookmark"]}function k(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in -v||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function j(a,c){var b=a.children[a.children.length-1];a.children.push(c);c.parent=a;if(b){b.next=c;c.previous=b}}function i(a){a=a.attributes;a.contenteditable!="false"&&(a["data-cke-editable"]=a.contenteditable?"true":1);a.contenteditable="false"}function e(a){a=a.attributes;switch(a["data-cke-editable"]){case "true":a.contenteditable="true";break;case "1":delete a.contenteditable}}function c(a){return a.replace(x,function(a,c,b){return"<"+c+b.replace(B, -function(a,c){return A.test(c)&&b.indexOf("data-cke-saved-"+c)==-1?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a:a})+">"})}function g(a,c){return a.replace(c,function(a,c,b){a.indexOf("<textarea")===0&&(a=c+n(b).replace(/</g,"<").replace(/>/g,">")+"</textarea>");return"<cke:encoded>"+encodeURIComponent(a)+"</cke:encoded>"})}function l(a){return a.replace(J,function(a,c){return decodeURIComponent(c)})}function q(a){return a.replace(/<\!--(?!{cke_protected})[\s\S]+?--\>/g,function(a){return"<\!--"+ -r+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\>"})}function n(a){return a.replace(/<\!--\{cke_protected\}\{C\}([\s\S]+?)--\>/g,function(a,c){return decodeURIComponent(c)})}function o(a,c){var b=c._.dataStore;return a.replace(/<\!--\{cke_protected\}([\s\S]+?)--\>/g,function(a,c){return decodeURIComponent(c)}).replace(/\{cke_protected_(\d+)\}/g,function(a,c){return b&&b[c]||""})}function p(a,c){for(var b=[],g=c.config.protectedSource,e=c._.dataStore||(c._.dataStore={id:1}),d=/<\!--\{cke_temp(comment)?\}(\d*?)--\>/g, -g=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(g),a=a.replace(/<\!--[\s\S]*?--\>/g,function(a){return"<\!--{cke_tempcomment}"+(b.push(a)-1)+"--\>"}),h=0;h<g.length;h++)a=a.replace(g[h],function(a){a=a.replace(d,function(a,c,g){return b[g]});return/cke_temp(comment)?/.test(a)?a:"<\!--{cke_temp}"+(b.push(a)-1)+"--\>"});a=a.replace(d,function(a,c,g){return"<\!--"+r+(c?"{C}":"")+encodeURIComponent(b[g]).replace(/--/g,"%2D%2D")+"--\>"});a=a.replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g, -function(a){return a.replace(/<\!--\{cke_protected\}([^>]*)--\>/g,function(a,c){e[e.id]=decodeURIComponent(c);return"{cke_protected_"+e.id++ +"}"})});return a=a.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(a,b,g,e){return"<"+b+g+">"+o(n(e),c)+"</"+b+">"})}CKEDITOR.htmlDataProcessor=function(b){var e,d,h=this;this.editor=b;this.dataFilter=e=new CKEDITOR.htmlParser.filter;this.htmlFilter=d=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;e.addRules(w); -e.addRules(t,{applyToAll:true});e.addRules(a(b,"data"),{applyToAll:true});d.addRules(s);d.addRules(z,{applyToAll:true});d.addRules(a(b,"html"),{applyToAll:true});b.on("toHtml",function(a){var a=a.data,e=a.dataValue,d,e=p(e,b),e=g(e,C),e=c(e),e=g(e,D),e=e.replace(E,"$1cke:$2"),e=e.replace(M,"<cke:$1$2></cke:$1>"),e=e.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),e=e.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");d=a.context||b.editable().getName();var h;if(CKEDITOR.env.ie&& -CKEDITOR.env.version<9&&d=="pre"){d="div";e="<pre>"+e+"</pre>";h=1}d=b.document.createElement(d);d.setHtml("a"+e);e=d.getHtml().substr(1);e=e.replace(RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");h&&(e=e.replace(/^<pre>|<\/pre>$/gi,""));e=e.replace(F,"$1$2");e=l(e);e=n(e);d=a.fixForBody===false?false:f(a.enterMode,b.config.autoParagraph);e=CKEDITOR.htmlParser.fragment.fromHtml(e,a.context,d);if(d){h=e;if(!h.children.length&&CKEDITOR.dtd[h.name][d]){d=new CKEDITOR.htmlParser.element(d);h.add(d)}}a.dataValue= -e},null,null,5);b.on("toHtml",function(a){a.data.filter.applyTo(a.data.dataValue,true,a.data.dontFilter,a.data.enterMode)&&b.fire("dataFiltered")},null,null,6);b.on("toHtml",function(a){a.data.dataValue.filterChildren(h.dataFilter,true)},null,null,10);b.on("toHtml",function(a){var a=a.data,c=a.dataValue,b=new CKEDITOR.htmlParser.basicWriter;c.writeChildrenHtml(b);c=b.getHtml(true);a.dataValue=q(c)},null,null,15);b.on("toDataFormat",function(a){var c=a.data.dataValue;a.data.enterMode!=CKEDITOR.ENTER_BR&& -(c=c.replace(/^<br *\/?>/i,""));a.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(c,a.data.context,f(a.data.enterMode,b.config.autoParagraph))},null,null,5);b.on("toDataFormat",function(a){a.data.dataValue.filterChildren(h.htmlFilter,true)},null,null,10);b.on("toDataFormat",function(a){a.data.filter.applyTo(a.data.dataValue,false,true)},null,null,11);b.on("toDataFormat",function(a){var c=a.data.dataValue,g=h.writer;g.reset();c.writeChildrenHtml(g);c=g.getHtml(true);c=n(c);c=o(c,b);a.data.dataValue= -c},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,c,b,g){var e=this.editor,d,h,i,f;if(c&&typeof c=="object"){d=c.context;b=c.fixForBody;g=c.dontFilter;h=c.filter;i=c.enterMode;f=c.protectedWhitespaces}else d=c;!d&&d!==null&&(d=e.editable().getName());return e.fire("toHtml",{dataValue:a,context:d,fixForBody:b,dontFilter:g,filter:h||e.filter,enterMode:i||e.enterMode,protectedWhitespaces:f}).dataValue},toDataFormat:function(a,c){var b,g,e;if(c){b=c.context;g=c.filter;e=c.enterMode}!b&& -b!==null&&(b=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:a,filter:g||this.editor.filter,context:b,enterMode:e||this.editor.enterMode}).dataValue}};var m=/(?: |\xa0)$/,r="{cke_protected}",u=CKEDITOR.dtd,y=["caption","colgroup","col","thead","tfoot","tbody"],v=CKEDITOR.tools.extend({},u.$blockLimit,u.$block),w={elements:{input:i,textarea:i}},t={attributeNames:[[/^on/,"data-cke-pa-on"],[/^data-cke-expando$/,""]]},s={elements:{embed:function(a){var c=a.parent; -if(c&&c.name=="object"){var b=c.attributes.width,c=c.attributes.height;if(b)a.attributes.width=b;if(c)a.attributes.height=c}},a:function(a){if(!a.children.length&&!a.attributes.name&&!a.attributes["data-cke-saved-name"])return false}}},z={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(a){var c=a.attributes;if(c){if(c["data-cke-temp"])return false;for(var b=["name","href","src"],g,e=0;e<b.length;e++){g= -"data-cke-saved-"+b[e];g in c&&delete c[b[e]]}}return a},table:function(a){a.children.slice(0).sort(function(a,c){var b,g;if(a.type==CKEDITOR.NODE_ELEMENT&&c.type==a.type){b=CKEDITOR.tools.indexOf(y,a.name);g=CKEDITOR.tools.indexOf(y,c.name)}if(!(b>-1&&g>-1&&b!=g)){b=a.parent?a.getIndex():-1;g=c.parent?c.getIndex():-1}return b>g?1:-1})},param:function(a){a.children=[];a.isEmpty=true;return a},span:function(a){a.attributes["class"]=="Apple-style-span"&&delete a.name},html:function(a){delete a.attributes.contenteditable; -delete a.attributes["class"]},body:function(a){delete a.attributes.spellcheck;delete a.attributes.contenteditable},style:function(a){var c=a.children[0];if(c&&c.value)c.value=CKEDITOR.tools.trim(c.value);if(!a.attributes.type)a.attributes.type="text/css"},title:function(a){var c=a.children[0];!c&&j(a,c=new CKEDITOR.htmlParser.text);c.value=a.attributes["data-cke-title"]||""},input:e,textarea:e},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,""))||false}}}; -if(CKEDITOR.env.ie)z.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,function(a){return a.toLowerCase()})};var x=/<(a|area|img|input|source)\b([^>]*)>/gi,B=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,A=/^(href|src|name)$/i,D=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,C=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,J=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,E=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,F=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi, -M=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),"use strict",CKEDITOR.htmlParser.element=function(a,f){this.name=a;this.attributes=f||{};this.children=[];var b=a||"",d=b.match(/^cke:(.*)/);d&&(b=d[1]);b=!(!CKEDITOR.dtd.$nonBodyContent[b]&&!CKEDITOR.dtd.$block[b]&&!CKEDITOR.dtd.$listItem[b]&&!CKEDITOR.dtd.$tableContent[b]&&!(CKEDITOR.dtd.$nonEditable[b]||b=="br"));this.isEmpty=!!CKEDITOR.dtd.$empty[a];this.isUnknown=!CKEDITOR.dtd[a];this._={isBlockLike:b,hasInlineStarted:this.isEmpty||!b}}, -CKEDITOR.htmlParser.cssStyle=function(a){var f={};((a instanceof CKEDITOR.htmlParser.element?a.attributes.style:a)||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,d,h){d=="font-family"&&(h=h.replace(/["']/g,""));f[d.toLowerCase()]=h});return{rules:f,populate:function(a){var d=this.toString();if(d)a instanceof CKEDITOR.dom.element?a.setAttribute("style",d):a instanceof CKEDITOR.htmlParser.element?a.attributes.style=d:a.style=d},toString:function(){var a=[],d; -for(d in f)f[d]&&a.push(d,":",f[d],";");return a.join("")}}},function(){function a(a){return function(b){return b.type==CKEDITOR.NODE_ELEMENT&&(typeof a=="string"?b.name==a:b.name in a)}}var f=function(a,b){a=a[0];b=b[0];return a<b?-1:a>b?1:0},b=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:b.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(a, -b){var f=this,j,i,b=f.getFilterContext(b);if(b.off)return true;if(!f.parent)a.onRoot(b,f);for(;;){j=f.name;if(!(i=a.onElementName(b,j))){this.remove();return false}f.name=i;if(!(f=a.onElement(b,f))){this.remove();return false}if(f!==this){this.replaceWith(f);return false}if(f.name==j)break;if(f.type!=CKEDITOR.NODE_ELEMENT){this.replaceWith(f);return false}if(!f.name){this.replaceWithChildren();return false}}j=f.attributes;var e,c;for(e in j){c=e;for(i=j[e];;)if(c=a.onAttributeName(b,e))if(c!=e){delete j[e]; -e=c}else break;else{delete j[e];break}c&&((i=a.onAttribute(b,f,c,i))===false?delete j[c]:j[c]=i)}f.isEmpty||this.filterChildren(a,false,b);return true},filterChildren:b.filterChildren,writeHtml:function(a,b){b&&this.filter(b);var k=this.name,j=[],i=this.attributes,e,c;a.openTag(k,i);for(e in i)j.push([e,i[e]]);a.sortAttributes&&j.sort(f);e=0;for(c=j.length;e<c;e++){i=j[e];a.attribute(i[0],i[1])}a.openTagClose(k,this.isEmpty);this.writeChildrenHtml(a);this.isEmpty||a.closeTag(k)},writeChildrenHtml:b.writeChildrenHtml, -replaceWithChildren:function(){for(var a=this.children,b=a.length;b;)a[--b].insertAfter(this);this.remove()},forEach:b.forEach,getFirst:function(b){if(!b)return this.children.length?this.children[0]:null;typeof b!="function"&&(b=a(b));for(var h=0,f=this.children.length;h<f;++h)if(b(this.children[h]))return this.children[h];return null},getHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeChildrenHtml(a);return a.getHtml()},setHtml:function(a){for(var a=this.children=CKEDITOR.htmlParser.fragment.fromHtml(a).children, -b=0,f=a.length;b<f;++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),f=this.clone(),j=0;j<b.length;++j)b[j].parent=f;f.children=b;if(b[0])b[0].previous=null;if(a>0)this.children[a-1].next=null;this.parent.add(f,this.getIndex()+1);return f},addClass:function(a){if(!this.hasClass(a)){var b=this.attributes["class"]||"";this.attributes["class"]=b+(b?" ": -"")+a}},removeClass:function(a){var b=this.attributes["class"];if(b)(b=CKEDITOR.tools.trim(b.replace(RegExp("(?:\\s+|^)"+a+"(?:\\s+|$)")," ")))?this.attributes["class"]=b:delete this.attributes["class"]},hasClass:function(a){var b=this.attributes["class"];return!b?false:RegExp("(?:^|\\s)"+a+"(?=\\s|$)").test(b)},getFilterContext:function(a){var b=[];a||(a={off:false,nonEditable:false,nestedEditable:false});!a.off&&this.attributes["data-cke-processor"]=="off"&&b.push("off",true);!a.nonEditable&&this.attributes.contenteditable== -"false"?b.push("nonEditable",true):a.nonEditable&&(!a.nestedEditable&&this.attributes.contenteditable=="true")&&b.push("nestedEditable",true);if(b.length)for(var a=CKEDITOR.tools.copy(a),f=0;f<b.length;f=f+2)a[b[f]]=b[f+1];return a}},true)}(),function(){var a={},f=/{([^}]+)}/g,b=/([\\'])/g,d=/\n/g,h=/\r/g;CKEDITOR.template=function(k){if(a[k])this.output=a[k];else{var j=k.replace(b,"\\$1").replace(d,"\\n").replace(h,"\\r").replace(f,function(a,b){return"',data['"+b+"']==undefined?'{"+b+"}':data['"+ -b+"'],'"});this.output=a[k]=Function("data","buffer","return buffer?buffer.push('"+j+"'):['"+j+"'].join('');")}}}(),delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(a){CKEDITOR.instances[a.name]=a;a.on("focus",function(){if(CKEDITOR.currentInstance!=a){CKEDITOR.currentInstance=a;CKEDITOR.fire("currentInstance")}});a.on("blur",function(){if(CKEDITOR.currentInstance==a){CKEDITOR.currentInstance=null;CKEDITOR.fire("currentInstance")}}); -CKEDITOR.fire("instance",null,a)},CKEDITOR.remove=function(a){delete CKEDITOR.instances[a.name]},function(){var a={};CKEDITOR.addTemplate=function(f,b){var d=a[f];if(d)return d;d={name:f,source:b};CKEDITOR.fire("template",d);return a[f]=new CKEDITOR.template(d.source)};CKEDITOR.getTemplate=function(f){return a[f]}}(),function(){var a=[];CKEDITOR.addCss=function(f){a.push(f)};CKEDITOR.getCss=function(){return a.join("\n")}}(),CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&& -CKEDITOR.fire("reset")}),CKEDITOR.TRISTATE_ON=1,CKEDITOR.TRISTATE_OFF=2,CKEDITOR.TRISTATE_DISABLED=0,function(){CKEDITOR.inline=function(a,f){if(!CKEDITOR.env.isCompatible)return null;a=CKEDITOR.dom.element.get(a);if(a.getEditor())throw'The editor instance "'+a.getEditor().name+'" is already attached to the provided element.';var b=new CKEDITOR.editor(f,a,CKEDITOR.ELEMENT_MODE_INLINE),d=a.is("textarea")?a:null;if(d){b.setData(d.getValue(),null,true);a=CKEDITOR.dom.element.createFromHtml('<div contenteditable="'+ -!!b.readOnly+'" class="cke_textarea_inline">'+d.getValue()+"</div>",CKEDITOR.document);a.insertAfter(d);d.hide();d.$.form&&b._attachToForm()}else b.setData(a.getHtml(),null,true);b.on("loaded",function(){b.fire("uiReady");b.editable(a);b.container=a;b.ui.contentsElement=a;b.setData(b.getData(1));b.resetDirty();b.fire("contentDom");b.mode="wysiwyg";b.fire("mode");b.status="ready";b.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,b)},null,null,1E4);b.on("destroy",function(){if(d){b.container.clearCustomData(); -b.container.remove();d.show()}b.element.clearCustomData();delete b.element});return b};CKEDITOR.inlineAll=function(){var a,f,b;for(b in CKEDITOR.dtd.$editable)for(var d=CKEDITOR.document.getElementsByTag(b),h=0,k=d.count();h<k;h++){a=d.getItem(h);if(a.getAttribute("contenteditable")=="true"){f={element:a,config:{}};CKEDITOR.fire("inline",f)!==false&&CKEDITOR.inline(a,f.config)}}};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})}(),CKEDITOR.replaceClass="ckeditor",function(){function a(a, -h,k,j){if(!CKEDITOR.env.isCompatible)return null;a=CKEDITOR.dom.element.get(a);if(a.getEditor())throw'The editor instance "'+a.getEditor().name+'" is already attached to the provided element.';var i=new CKEDITOR.editor(h,a,j);if(j==CKEDITOR.ELEMENT_MODE_REPLACE){a.setStyle("visibility","hidden");i._.required=a.hasAttribute("required");a.removeAttribute("required")}k&&i.setData(k,null,true);i.on("loaded",function(){b(i);j==CKEDITOR.ELEMENT_MODE_REPLACE&&(i.config.autoUpdateElement&&a.$.form)&&i._attachToForm(); -i.setMode(i.config.startupMode,function(){i.resetDirty();i.status="ready";i.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,i)})});i.on("destroy",f);return i}function f(){var a=this.container,b=this.element;if(a){a.clearCustomData();a.remove()}if(b){b.clearCustomData();if(this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE){b.show();this._.required&&b.setAttribute("required","required")}delete this.element}}function b(a){var b=a.name,f=a.element,j=a.elementMode,i=a.fire("uiSpace",{space:"top", -html:""}).html,e=a.fire("uiSpace",{space:"bottom",html:""}).html,c=new CKEDITOR.template('<{outerEl} id="cke_{name}" class="{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" lang="{langCode}" role="application"'+(a.title?' aria-labelledby="cke_{name}_arialbl"':"")+">"+(a.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':"")+'<{outerEl} class="cke_inner cke_reset" role="presentation">{topHtml}<{outerEl} id="{contentId}" class="cke_contents cke_reset" role="presentation"></{outerEl}>{bottomHtml}</{outerEl}></{outerEl}>'), -b=CKEDITOR.dom.element.createFromHtml(c.output({id:a.id,name:b,langDir:a.lang.dir,langCode:a.langCode,voiceLabel:a.title,topHtml:i?'<span id="'+a.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+i+"</span>":"",contentId:a.ui.spaceId("contents"),bottomHtml:e?'<span id="'+a.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+e+"</span>":"",outerEl:CKEDITOR.env.ie?"span":"div"}));if(j==CKEDITOR.ELEMENT_MODE_REPLACE){f.hide();b.insertAfter(f)}else f.append(b); -a.container=b;a.ui.contentsElement=a.ui.space("contents");i&&a.ui.space("top").unselectable();e&&a.ui.space("bottom").unselectable();f=a.config.width;j=a.config.height;f&&b.setStyle("width",CKEDITOR.tools.cssLength(f));j&&a.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(j));b.disableContextMenu();CKEDITOR.env.webkit&&b.on("focus",function(){a.focus()});a.fireOnce("uiReady")}CKEDITOR.replace=function(b,h){return a(b,h,null,CKEDITOR.ELEMENT_MODE_REPLACE)};CKEDITOR.appendTo=function(b, -h,f){return a(b,h,f,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=document.getElementsByTagName("textarea"),b=0;b<a.length;b++){var f=null,j=a[b];if(j.name||j.id){if(typeof arguments[0]=="string"){if(!RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)").test(j.className))continue}else if(typeof arguments[0]=="function"){f={};if(arguments[0](j,f)===false)continue}this.replace(j,f)}}};CKEDITOR.editor.prototype.addMode=function(a,b){(this._.modes||(this._.modes={}))[a]=b};CKEDITOR.editor.prototype.setMode= -function(a,b){var f=this,j=this._.modes;if(!(a==f.mode||!j||!j[a])){f.fire("beforeSetMode",a);if(f.mode){var i=f.checkDirty(),j=f._.previousModeData,e,c=0;f.fire("beforeModeUnload");f.editable(0);f._.previousMode=f.mode;f._.previousModeData=e=f.getData(1);if(f.mode=="source"&&j==e){f.fire("lockSnapshot",{forceUpdate:true});c=1}f.ui.space("contents").setHtml("");f.mode=""}else f._.previousModeData=f.getData(1);this._.modes[a](function(){f.mode=a;i!==void 0&&!i&&f.resetDirty();c?f.fire("unlockSnapshot"): -a=="wysiwyg"&&f.fire("saveSnapshot");setTimeout(function(){f.fire("mode");b&&b.call(f)},0)})}};CKEDITOR.editor.prototype.resize=function(a,b,f,j){var i=this.container,e=this.ui.space("contents"),c=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement,j=j?this.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}):i;j.setSize("width",a,true);c&&(c.style.width="1%");var g=(j.$.offsetHeight||0)-(e.$.clientHeight||0),i=Math.max(b-(f?0:g), -0),b=f?b+g:b;e.setStyle("height",i+"px");c&&(c.style.width="100%");this.fire("resize",{outerHeight:b,contentsHeight:i,outerWidth:a||j.getSize("width")})};CKEDITOR.editor.prototype.getResizable=function(a){return a?this.ui.space("contents"):this.container};CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){var a,f,b,d;function h(a){var c=a.editor,b=a.data.path,e=b.blockLimit,d=a.data.selection,h=d.getRanges()[0], -f;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)if(d=k(d,b)){d.appendBogus();f=CKEDITOR.env.ie}if(g(c,b.block,e)&&h.collapsed&&!h.getCommonAncestor().isReadOnly()){b=h.clone();b.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);e=new CKEDITOR.dom.walker(b);e.guard=function(a){return!i(a)||a.type==CKEDITOR.NODE_COMMENT||a.isReadOnly()};if(!e.checkForward()||b.checkStartOfBlock()&&b.checkEndOfBlock()){c=h.fixBlock(true,c.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p");if(!CKEDITOR.env.needsBrFiller)(c= -c.getFirst(i))&&(c.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(c.getText()).match(/^(?: |\xa0)$/))&&c.remove();f=1;a.cancel()}}f&&h.select()}function k(a,c){if(a.isFake)return 0;var b=c.block||c.blockLimit,g=b&&b.getLast(i);if(b&&b.isBlockBoundary()&&(!g||!(g.type==CKEDITOR.NODE_ELEMENT&&g.isBlockBoundary()))&&!b.is("pre")&&!b.getBogus())return b}function j(a){var c=a.data.getTarget();if(c.is("input")){c=c.getAttribute("type");(c=="submit"||c=="reset")&&a.data.preventDefault()}}function i(a){return o(a)&& -p(a)}function e(a,c){return function(b){var g=b.data.$.toElement||b.data.$.fromElement||b.data.$.relatedTarget,g=g&&g.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(g):null;(!g||!c.equals(g)&&!c.contains(g))&&a.call(this,b)}}function c(a){function c(a){return function(c,g){g&&(c.type==CKEDITOR.NODE_ELEMENT&&c.is(e))&&(b=c);if(!g&&i(c)&&(!a||!r(c)))return false}}var b,g=a.getRanges()[0],a=a.root,e={table:1,ul:1,ol:1,dl:1};if(g.startPath().contains(e)){var d=g.clone();d.collapse(1);d.setStartAt(a, -CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(d);a.guard=c();a.checkBackward();if(b){d=g.clone();d.collapse();d.setEndAt(b,CKEDITOR.POSITION_AFTER_END);a=new CKEDITOR.dom.walker(d);a.guard=c(true);b=false;a.checkForward();return b}}return null}function g(a,c,b){return a.config.autoParagraph!==false&&a.activeEnterMode!=CKEDITOR.ENTER_BR&&(a.editable().equals(b)&&!c||c&&c.getAttribute("contenteditable")=="true")}function l(a){return a.activeEnterMode!=CKEDITOR.ENTER_BR&&a.config.autoParagraph!== -false?a.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p":false}function q(a){var c=a.editor;c.getSelection().scrollIntoView();setTimeout(function(){c.fire("saveSnapshot")},0)}function n(a,c,b){for(var g=a.getCommonAncestor(c),c=a=b?c:a;(a=a.getParent())&&!g.equals(a)&&a.getChildCount()==1;)c=a;c.remove()}CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(a,c){this.base(c.$||c);this.editor=a;this.status="unloaded";this.hasFocus=false;this.setup()},proto:{focus:function(){var a; -if(CKEDITOR.env.webkit&&!this.hasFocus){a=this.editor._.previousActive||this.getDocument().getActive();if(this.contains(a)){a.focus();return}}try{this.$[CKEDITOR.env.ie&&this.getDocument().equals(CKEDITOR.document)?"setActive":"focus"]()}catch(c){if(!CKEDITOR.env.ie)throw c;}if(CKEDITOR.env.safari&&!this.isInline()){a=CKEDITOR.document.getActive();a.equals(this.getWindow().getFrame())||this.getWindow().focus()}},on:function(a,c){var b=Array.prototype.slice.call(arguments,0);if(CKEDITOR.env.ie&&/^focus|blur$/.exec(a)){a= -a=="focus"?"focusin":"focusout";c=e(c,this);b[0]=a;b[1]=c}return CKEDITOR.dom.element.prototype.on.apply(this,b)},attachListener:function(a){!this._.listeners&&(this._.listeners=[]);var c=Array.prototype.slice.call(arguments,1),c=a.on.apply(a,c);this._.listeners.push(c);return c},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(c){}},restoreAttrs:function(){var a=this._.attrChanges,c,b;for(b in a)if(a.hasOwnProperty(b)){c=a[b];c!==null?this.setAttribute(b, -c):this.removeAttribute(b)}},attachClass:function(a){var c=this.getCustomData("classes");if(!this.hasClass(a)){!c&&(c=[]);c.push(a);this.setCustomData("classes",c);this.addClass(a)}},changeAttr:function(a,c){var b=this.getAttribute(a);if(c!==b){!this._.attrChanges&&(this._.attrChanges={});a in this._.attrChanges||(this._.attrChanges[a]=b);this.setAttribute(a,c)}},insertText:function(a){this.editor.focus();this.insertHtml(this.transformPlainTextToHtml(a),"text")},transformPlainTextToHtml:function(a){var c= -this.editor.getSelection().getStartElement().hasAscendant("pre",true)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(a,c)},insertHtml:function(a,c,b){var g=this.editor;g.focus();g.fire("saveSnapshot");b||(b=g.getSelection().getRanges()[0]);y(this,c||"html",a,b);b.select();q(this);this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(a,c,b){y(this,b||"html",a,c);this.editor.fire("afterInsertHtml",{intoRange:c})},insertElement:function(a, -c){var b=this.editor;b.focus();b.fire("saveSnapshot");var g=b.activeEnterMode,b=b.getSelection(),e=a.getName(),e=CKEDITOR.dtd.$block[e];c||(c=b.getRanges()[0]);if(this.insertElementIntoRange(a,c)){c.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);if(e)if((e=a.getNext(function(a){return i(a)&&!r(a)}))&&e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$block))e.getDtd()["#"]?c.moveToElementEditStart(e):c.moveToElementEditEnd(a);else if(!e&&g!=CKEDITOR.ENTER_BR){e=c.fixBlock(true,g==CKEDITOR.ENTER_DIV? -"div":"p");c.moveToElementEditStart(e)}}b.selectRanges([c]);q(this)},insertElementIntoSelection:function(a){this.insertElement(a)},insertElementIntoRange:function(a,c){var b=this.editor,g=b.config.enterMode,e=a.getName(),d=CKEDITOR.dtd.$block[e];if(c.checkReadOnly())return false;c.deleteContents(1);c.startContainer.type==CKEDITOR.NODE_ELEMENT&&c.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})&&v(c);var h,f;if(d)for(;(h=c.getCommonAncestor(0,1))&&(f=CKEDITOR.dtd[h.getName()])&&(!f||!f[e]);)if(h.getName()in -CKEDITOR.dtd.span)c.splitElement(h);else if(c.checkStartOfBlock()&&c.checkEndOfBlock()){c.setStartBefore(h);c.collapse(true);h.remove()}else c.splitBlock(g==CKEDITOR.ENTER_DIV?"div":"p",b.editable());c.insertNode(a);return true},setData:function(a,c){c||(a=this.editor.dataProcessor.toHtml(a));this.setHtml(a);this.fixInitialSelection();if(this.status=="unloaded")this.status="ready";this.editor.fire("dataReady")},getData:function(a){var c=this.getHtml();a||(c=this.editor.dataProcessor.toDataFormat(c)); -return c},setReadOnly:function(a){this.setAttribute("contenteditable",!a)},detach:function(){this.removeClass("cke_editable");this.status="detached";var a=this.editor;this._.detach();delete a.document;delete a.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},fixInitialSelection:function(){function a(){var c=b.getDocument().$,g=c.getSelection(),e;if(g.anchorNode&&g.anchorNode==b.$)e=true;else if(CKEDITOR.env.webkit){var d=b.getDocument().getActive();d&&(d.equals(b)&& -!g.anchorNode)&&(e=true)}if(e){e=new CKEDITOR.dom.range(b);e.moveToElementEditStart(b);c=c.createRange();c.setStart(e.startContainer.$,e.startOffset);c.collapse(true);g.removeAllRanges();g.addRange(c)}}function c(){var a=b.getDocument().$,g=a.selection,e=b.getDocument().getActive();if(g.type=="None"&&e.equals(b)){g=new CKEDITOR.dom.range(b);a=a.body.createTextRange();g.moveToElementEditStart(b);g=g.startContainer;g.type!=CKEDITOR.NODE_ELEMENT&&(g=g.getParent());a.moveToElementText(g.$);a.collapse(true); -a.select()}}var b=this;if(CKEDITOR.env.ie&&(CKEDITOR.env.version<9||CKEDITOR.env.quirks)){if(this.hasFocus){this.focus();c()}}else if(this.hasFocus){this.focus();a()}else this.once("focus",function(){a()},null,null,-999)},getHtmlFromRange:function(c){if(c.collapsed)return new CKEDITOR.dom.documentFragment(c.document);c={doc:this.getDocument(),range:c.clone()};a.detect(c,this);f.exclude(c);b.shrink(c);c.fragment=c.range.cloneContents();d.rebuild(c,this);a.fix(c,this);return new CKEDITOR.dom.documentFragment(c.fragment.$)}, -extractHtmlFromRange:function(a,c){var b=w,g={range:a,doc:a.document},e=this.getHtmlFromRange(a);if(a.collapsed){a.optimize();return e}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);b.table.detectPurge(g);g.bookmark=a.createBookmark();delete g.range;var d=this.editor.createRange();d.moveToPosition(g.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START);g.targetBookmark=d.createBookmark();b.list.detectMerge(g,this);b.table.detectRanges(g,this);b.block.detectMerge(g,this);if(g.tableContentsRanges){b.table.deleteRanges(g); -a.moveToBookmark(g.bookmark);g.range=a}else{a.moveToBookmark(g.bookmark);g.range=a;a.extractContents(b.detectExtractMerge(g))}a.moveToBookmark(g.targetBookmark);a.optimize();b.fixUneditableRangePosition(a);b.list.merge(g,this);b.table.purge(g,this);b.block.merge(g,this);if(c){b=a.startPath();if(g=a.checkStartOfBlock())if(g=a.checkEndOfBlock())if(g=b.block)if(g=!a.root.equals(b.block)){a:{var g=b.block.getElementsByTag("span"),d=0,h;if(g)for(;h=g.getItem(d++);)if(!p(h)){g=true;break a}g=false}g=!g}if(g){a.moveToPosition(b.block, -CKEDITOR.POSITION_BEFORE_START);b.block.remove()}}else{b.autoParagraph(this.editor,a);m(a.startContainer)&&a.startContainer.appendBogus()}a.startContainer.mergeSiblings();return e},setup:function(){var a=this.editor;this.attachListener(a,"beforeGetData",function(){var c=this.getData();this.is("textarea")||a.config.ignoreEmptyParagraph!==false&&(c=c.replace(u,function(a,c){return c}));a.setData(c,null,1)},this);this.attachListener(a,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(a, -"afterSetData",function(){this.setData(a.getData(1))},this);this.attachListener(a,"loadSnapshot",function(a){this.setData(a.data,1)},this);this.attachListener(a,"beforeFocus",function(){var c=a.getSelection();(c=c&&c.getNative())&&c.type=="Control"||this.focus()},this);this.attachListener(a,"insertHtml",function(a){this.insertHtml(a.data.dataValue,a.data.mode,a.data.range)},this);this.attachListener(a,"insertElement",function(a){this.insertElement(a.data)},this);this.attachListener(a,"insertText", -function(a){this.insertText(a.data)},this);this.setReadOnly(a.readOnly);this.attachClass("cke_editable");a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):(a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE||a.elementMode==CKEDITOR.ELEMENT_MODE_APPENDTO)&&this.attachClass("cke_editable_themed");this.attachClass("cke_contents_"+a.config.contentsLangDirection);a.keystrokeHandler.blockedKeystrokes[8]=+a.readOnly;a.keystrokeHandler.attach(this);this.on("blur",function(){this.hasFocus= -false},null,null,-1);this.on("focus",function(){this.hasFocus=true},null,null,-1);a.focusManager.add(this);if(this.equals(CKEDITOR.document.getActive())){this.hasFocus=true;a.once("contentDom",function(){a.focusManager.focus(this)},this)}this.isInline()&&this.changeAttr("tabindex",a.tabIndex);if(!this.is("textarea")){a.document=this.getDocument();a.window=this.getWindow();var b=a.document;this.changeAttr("spellcheck",!a.config.disableNativeSpellChecker);var g=a.config.contentsLangDirection;this.getDirection(1)!= -g&&this.changeAttr("dir",g);var e=CKEDITOR.getCss();if(e){g=b.getHead();if(!g.getCustomData("stylesheet")){e=b.appendStyleText(e);e=new CKEDITOR.dom.element(e.ownerNode||e.owningElement);g.setCustomData("stylesheet",e);e.data("cke-temp",1)}}g=b.getCustomData("stylesheet_ref")||0;b.setCustomData("stylesheet_ref",g+1);this.setCustomData("cke_includeReadonly",!a.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){var a=a.data,c=(new CKEDITOR.dom.elementPath(a.getTarget(),this)).contains("a"); -c&&(a.$.button!=2&&c.isReadOnly())&&a.preventDefault()});var d={8:1,46:1};this.attachListener(a,"key",function(b){if(a.readOnly)return true;var g=b.data.domEvent.getKey(),e;if(g in d){var b=a.getSelection(),h,f=b.getRanges()[0],i=f.startPath(),j,l,k,g=g==8;if(CKEDITOR.env.ie&&CKEDITOR.env.version<11&&(h=b.getSelectedElement())||(h=c(b))){a.fire("saveSnapshot");f.moveToPosition(h,CKEDITOR.POSITION_BEFORE_START);h.remove();f.select();a.fire("saveSnapshot");e=1}else if(f.collapsed)if((j=i.block)&&(k= -j[g?"getPrevious":"getNext"](o))&&k.type==CKEDITOR.NODE_ELEMENT&&k.is("table")&&f[g?"checkStartOfBlock":"checkEndOfBlock"]()){a.fire("saveSnapshot");f[g?"checkEndOfBlock":"checkStartOfBlock"]()&&j.remove();f["moveToElementEdit"+(g?"End":"Start")](k);f.select();a.fire("saveSnapshot");e=1}else if(i.blockLimit&&i.blockLimit.is("td")&&(l=i.blockLimit.getAscendant("table"))&&f.checkBoundaryOfElement(l,g?CKEDITOR.START:CKEDITOR.END)&&(k=l[g?"getPrevious":"getNext"](o))){a.fire("saveSnapshot");f["moveToElementEdit"+ -(g?"End":"Start")](k);f.checkStartOfBlock()&&f.checkEndOfBlock()?k.remove():f.select();a.fire("saveSnapshot");e=1}else if((l=i.contains(["td","th","caption"]))&&f.checkBoundaryOfElement(l,g?CKEDITOR.START:CKEDITOR.END))e=1}return!e});a.blockless&&(CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)&&this.attachListener(this,"keyup",function(c){if(c.data.getKeystroke()in d&&!this.getFirst(i)){this.appendBogus();c=a.createRange();c.moveToPosition(this,CKEDITOR.POSITION_AFTER_START);c.select()}});this.attachListener(this, -"dblclick",function(c){if(a.readOnly)return false;c={element:c.data.getTarget()};a.fire("doubleclick",c)});CKEDITOR.env.ie&&this.attachListener(this,"click",j);(!CKEDITOR.env.ie||CKEDITOR.env.edge)&&this.attachListener(this,"mousedown",function(c){var b=c.data.getTarget();if(b.is("img","hr","input","textarea","select")&&!b.isReadOnly()){a.getSelection().selectElement(b);b.is("input","textarea","select")&&c.data.preventDefault()}});CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(c){(c= -c.data.getTarget())&&c.is("img")&&a.getSelection().selectElement(c)});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(c){if(c.data.$.button==2){c=c.data.getTarget();if(!c.getOuterHtml().replace(u,"")){var b=a.createRange();b.moveToElementEditStart(c);b.select(true)}}});if(CKEDITOR.env.webkit){this.attachListener(this,"click",function(a){a.data.getTarget().is("input","select")&&a.data.preventDefault()});this.attachListener(this,"mouseup",function(a){a.data.getTarget().is("input","textarea")&& -a.data.preventDefault()})}CKEDITOR.env.webkit&&this.attachListener(a,"key",function(c){if(a.readOnly)return true;c=c.data.domEvent.getKey();if(c in d){var b=c==8,g=a.getSelection().getRanges()[0],c=g.startPath();if(g.collapsed){var e;a:{var h=c.block;if(h)if(g[b?"checkStartOfBlock":"checkEndOfBlock"]())if(!g.moveToClosestEditablePosition(h,!b)||!g.collapsed)e=false;else{if(g.startContainer.type==CKEDITOR.NODE_ELEMENT){var f=g.startContainer.getChild(g.startOffset-(b?1:0));if(f&&f.type==CKEDITOR.NODE_ELEMENT&& -f.is("hr")){a.fire("saveSnapshot");f.remove();e=true;break a}}if((g=g.startPath().block)&&(!g||!g.contains(h))){a.fire("saveSnapshot");var i;(i=(b?g:h).getBogus())&&i.remove();e=a.getSelection();i=e.createBookmarks();(b?h:g).moveChildren(b?g:h,false);c.lastElement.mergeSiblings();n(h,g,!b);e.selectBookmarks(i);e=true}}else e=false;else e=false}if(!e)return}else{b=g;e=c.block;i=b.endPath().block;if(!e||!i||e.equals(i))c=false;else{a.fire("saveSnapshot");(h=e.getBogus())&&h.remove();b.enlarge(CKEDITOR.ENLARGE_INLINE); -b.deleteContents();if(i.getParent()){i.moveChildren(e,false);c.lastElement.mergeSiblings();n(e,i,true)}b=a.getSelection().getRanges()[0];b.collapse(1);b.optimize();b.startContainer.getHtml()===""&&b.startContainer.appendBogus();b.select();c=true}if(!c)return}a.getSelection().scrollIntoView();a.fire("saveSnapshot");return false}},this,null,100)}}},_:{detach:function(){this.editor.setData(this.editor.getData(),0,1);this.clearListeners();this.restoreAttrs();var a;if(a=this.removeCustomData("classes"))for(;a.length;)this.removeClass(a.pop()); -if(!this.is("textarea")){a=this.getDocument();var c=a.getHead();if(c.getCustomData("stylesheet")){var b=a.getCustomData("stylesheet_ref");if(--b)a.setCustomData("stylesheet_ref",b);else{a.removeCustomData("stylesheet_ref");c.removeCustomData("stylesheet").remove()}}}this.editor.fire("contentDomUnload");delete this.editor}}});CKEDITOR.editor.prototype.editable=function(a){var c=this._.editable;if(c&&a)return 0;if(arguments.length)c=this._.editable=a?a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this, -a):(c&&c.detach(),null);return c};CKEDITOR.on("instanceLoaded",function(a){var c=a.editor;c.on("insertElement",function(a){a=a.data;if(a.type==CKEDITOR.NODE_ELEMENT&&(a.is("input")||a.is("textarea"))){a.getAttribute("contentEditable")!="false"&&a.data("cke-editable",a.hasAttribute("contenteditable")?"true":"1");a.setAttribute("contentEditable",false)}});c.on("selectionChange",function(a){if(!c.readOnly){var b=c.getSelection();if(b&&!b.isLocked){b=c.checkDirty();c.fire("lockSnapshot");h(a);c.fire("unlockSnapshot"); -!b&&c.resetDirty()}}})});CKEDITOR.on("instanceCreated",function(a){var c=a.editor;c.on("mode",function(){var a=c.editable();if(a&&a.isInline()){var b=c.title;a.changeAttr("role","textbox");a.changeAttr("aria-label",b);b&&a.changeAttr("title",b);var g=c.fire("ariaEditorHelpLabel",{}).label;if(g)if(b=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents")){var e=CKEDITOR.tools.getNextId(),g=CKEDITOR.dom.element.createFromHtml('<span id="'+e+'" class="cke_voice_label">'+g+"</span>"); -b.append(g);a.changeAttr("aria-describedby",e)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");var o=CKEDITOR.dom.walker.whitespaces(true),p=CKEDITOR.dom.walker.bookmark(false,true),m=CKEDITOR.dom.walker.empty(),r=CKEDITOR.dom.walker.bogus(),u=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,y=function(){function a(c){return c.type==CKEDITOR.NODE_ELEMENT} -function c(b,g){var e,d,h,i,j=[],l=g.range.startContainer;e=g.range.startPath();for(var l=f[l.getName()],k=0,m=b.getChildren(),E=m.count(),o=-1,v=-1,r=0,n=e.contains(f.$list);k<E;++k){e=m.getItem(k);if(a(e)){h=e.getName();if(n&&h in CKEDITOR.dtd.$list)j=j.concat(c(e,g));else{i=!!l[h];if(h=="br"&&e.data("cke-eol")&&(!k||k==E-1)){r=(d=k?j[k-1].node:m.getItem(k+1))&&(!a(d)||!d.is("br"));d=d&&a(d)&&f.$block[d.getName()]}o==-1&&!i&&(o=k);i||(v=k);j.push({isElement:1,isLineBreak:r,isBlock:e.isBlockBoundary(), -hasBlockSibling:d,node:e,name:h,allowed:i});d=r=0}}else j.push({isElement:0,node:e,allowed:1})}if(o>-1)j[o].firstNotAllowed=1;if(v>-1)j[v].lastNotAllowed=1;return j}function b(c,g){var e=[],d=c.getChildren(),h=d.count(),i,j=0,l=f[g],k=!c.is(f.$inline)||c.is("br");for(k&&e.push(" ");j<h;j++){i=d.getItem(j);a(i)&&!i.is(l)?e=e.concat(b(i,g)):e.push(i)}k&&e.push(" ");return e}function e(c){return c&&a(c)&&(c.is(f.$removeEmpty)||c.is("a")&&!c.isBlockBoundary())}function d(c,b,g,e){var h=c.clone(),f,i; -h.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);if((f=(new CKEDITOR.dom.walker(h)).next())&&a(f)&&j[f.getName()]&&(i=f.getPrevious())&&a(i)&&!i.getParent().equals(c.startContainer)&&g.contains(i)&&e.contains(f)&&f.isIdentical(i)){f.moveChildren(i);f.remove();d(c,b,g,e)}}function h(c,b){function g(c,b){if(b.isBlock&&b.isElement&&!b.node.is("br")&&a(c)&&c.is("br")){c.remove();return 1}}var e=b.endContainer.getChild(b.endOffset),d=b.endContainer.getChild(b.endOffset-1);e&&g(e,c[c.length-1]);if(d&&g(d,c[0])){b.setEnd(b.endContainer, -b.endOffset-1);b.collapse()}}var f=CKEDITOR.dtd,j={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,li:1,pre:1,dl:1,blockquote:1},k={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},m=CKEDITOR.tools.extend({},f.$inline);delete m.br;return function(j,o,v,r){var n=j.editor,p=false;if(o=="unfiltered_html"){o="html";p=true}if(!r.checkReadOnly()){var q=(new CKEDITOR.dom.elementPath(r.startContainer,r.root)).blockLimit||r.root,j={type:o,dontFilter:p,editable:j,editor:n,range:r,blockLimit:q,mergeCandidates:[], -zombies:[]},o=j.range,r=j.mergeCandidates,w,u;if(j.type=="text"&&o.shrink(CKEDITOR.SHRINK_ELEMENT,true,false)){w=CKEDITOR.dom.element.createFromHtml("<span> </span>",o.document);o.insertNode(w);o.setStartAfter(w)}p=new CKEDITOR.dom.elementPath(o.startContainer);j.endPath=q=new CKEDITOR.dom.elementPath(o.endContainer);if(!o.collapsed){var n=q.block||q.blockLimit,y=o.getCommonAncestor();n&&(!n.equals(y)&&!n.contains(y)&&o.checkEndOfBlock())&&j.zombies.push(n);o.deleteContents()}for(;(u=a(o.startContainer)&& -o.startContainer.getChild(o.startOffset-1))&&a(u)&&u.isBlockBoundary()&&p.contains(u);)o.moveToPosition(u,CKEDITOR.POSITION_BEFORE_END);d(o,j.blockLimit,p,q);if(w){o.setEndBefore(w);o.collapse();w.remove()}w=o.startPath();if(n=w.contains(e,false,1)){o.splitElement(n);j.inlineStylesRoot=n;j.inlineStylesPeak=w.lastElement}w=o.createBookmark();(n=w.startNode.getPrevious(i))&&a(n)&&e(n)&&r.push(n);(n=w.startNode.getNext(i))&&a(n)&&e(n)&&r.push(n);for(n=w.startNode;(n=n.getParent())&&e(n);)r.push(n);o.moveToBookmark(w); -if(w=v){w=j.range;if(j.type=="text"&&j.inlineStylesRoot){u=j.inlineStylesPeak;o=u.getDocument().createText("{cke-peak}");for(r=j.inlineStylesRoot.getParent();!u.equals(r);){o=o.appendTo(u.clone());u=u.getParent()}v=o.getOuterHtml().split("{cke-peak}").join(v)}u=j.blockLimit.getName();if(/^\s+|\s+$/.test(v)&&"span"in CKEDITOR.dtd[u])var L='<span data-cke-marker="1"> </span>',v=L+v+L;v=j.editor.dataProcessor.toHtml(v,{context:null,fixForBody:false,protectedWhitespaces:!!L,dontFilter:j.dontFilter, -filter:j.editor.activeFilter,enterMode:j.editor.activeEnterMode});u=w.document.createElement("body");u.setHtml(v);if(L){u.getFirst().remove();u.getLast().remove()}if((L=w.startPath().block)&&!(L.getChildCount()==1&&L.getBogus()))a:{var I;if(u.getChildCount()==1&&a(I=u.getFirst())&&I.is(k)&&!I.hasAttribute("contenteditable")){L=I.getElementsByTag("*");w=0;for(r=L.count();w<r;w++){o=L.getItem(w);if(!o.is(m))break a}I.moveChildren(I.getParent(1));I.remove()}}j.dataWrapper=u;w=v}if(w){I=j.range;w=I.document; -var G;u=j.blockLimit;var r=0,Q,L=[],R,C,v=n=0,V,W,o=I.startContainer,p=j.endPath.elements[0],$,q=p.getPosition(o),y=!!p.getCommonAncestor(o)&&q!=CKEDITOR.POSITION_IDENTICAL&&!(q&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED),o=c(j.dataWrapper,j);for(h(o,I);r<o.length;r++){q=o[r];if(G=q.isLineBreak){G=I;V=u;var T=void 0,aa=void 0;if(q.hasBlockSibling)G=1;else{T=G.startContainer.getAscendant(f.$block,1);if(!T||!T.is({div:1,p:1}))G=0;else{aa=T.getPosition(V);if(aa==CKEDITOR.POSITION_IDENTICAL|| -aa==CKEDITOR.POSITION_CONTAINS)G=0;else{V=G.splitElement(T);G.moveToPosition(V,CKEDITOR.POSITION_AFTER_START);G=1}}}}if(G)v=r>0;else{G=I.startPath();if(!q.isBlock&&g(j.editor,G.block,G.blockLimit)&&(C=l(j.editor))){C=w.createElement(C);C.appendBogus();I.insertNode(C);CKEDITOR.env.needsBrFiller&&(Q=C.getBogus())&&Q.remove();I.moveToPosition(C,CKEDITOR.POSITION_BEFORE_END)}if((G=I.startPath().block)&&!G.equals(R)){if(Q=G.getBogus()){Q.remove();L.push(G)}R=G}q.firstNotAllowed&&(n=1);if(n&&q.isElement){G= -I.startContainer;for(V=null;G&&!f[G.getName()][q.name];){if(G.equals(u)){G=null;break}V=G;G=G.getParent()}if(G){if(V){W=I.splitElement(V);j.zombies.push(W);j.zombies.push(V)}}else{V=u.getName();$=!r;G=r==o.length-1;V=b(q.node,V);for(var T=[],aa=V.length,Y=0,X=void 0,ba=0,ea=-1;Y<aa;Y++){X=V[Y];if(X==" "){if(!ba&&(!$||Y)){T.push(new CKEDITOR.dom.text(" "));ea=T.length}ba=1}else{T.push(X);ba=0}}G&&ea==T.length&&T.pop();$=T}}if($){for(;G=$.pop();)I.insertNode(G);$=0}else I.insertNode(q.node);if(q.lastNotAllowed&& -r<o.length-1){(W=y?p:W)&&I.setEndAt(W,CKEDITOR.POSITION_AFTER_START);n=0}I.collapse()}}if(o.length!=1)Q=false;else{Q=o[0];Q=Q.isElement&&Q.node.getAttribute("contenteditable")=="false"}if(Q){v=true;G=o[0].node;I.setStartAt(G,CKEDITOR.POSITION_BEFORE_START);I.setEndAt(G,CKEDITOR.POSITION_AFTER_END)}j.dontMoveCaret=v;j.bogusNeededBlocks=L}Q=j.range;var ca;W=j.bogusNeededBlocks;for($=Q.createBookmark();R=j.zombies.pop();)if(R.getParent()){C=Q.clone();C.moveToElementEditStart(R);C.removeEmptyBlocksAtEnd()}if(W)for(;R= -W.pop();)CKEDITOR.env.needsBrFiller?R.appendBogus():R.append(Q.document.createText(" "));for(;R=j.mergeCandidates.pop();)R.mergeSiblings();Q.moveToBookmark($);if(!j.dontMoveCaret){for(R=a(Q.startContainer)&&Q.startContainer.getChild(Q.startOffset-1);R&&a(R)&&!R.is(f.$empty);){if(R.isBlockBoundary())Q.moveToPosition(R,CKEDITOR.POSITION_BEFORE_END);else{if(e(R)&&R.getHtml().match(/(\s| )$/g)){ca=null;break}ca=Q.clone();ca.moveToPosition(R,CKEDITOR.POSITION_BEFORE_END)}R=R.getLast(i)}ca&&Q.moveToRange(ca)}}}}(), -v=function(){function a(c){c=new CKEDITOR.dom.walker(c);c.guard=function(a,c){if(c)return false;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$tableContent)};c.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT};return c}function c(a,b,g){b=a.getDocument().createElement(b);a.append(b,g);return b}function b(a){var c=a.count(),g;for(c;c-- >0;){g=a.getItem(c);if(!CKEDITOR.tools.trim(g.getHtml())){g.appendBogus();CKEDITOR.env.ie&&(CKEDITOR.env.version<9&&g.getChildCount())&&g.getFirst().remove()}}} -return function(g){var e=g.startContainer,d=e.getAscendant("table",1),h=false;b(d.getElementsByTag("td"));b(d.getElementsByTag("th"));d=g.clone();d.setStart(e,0);d=a(d).lastBackward();if(!d){d=g.clone();d.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);d=a(d).lastForward();h=true}d||(d=e);if(d.is("table")){g.setStartAt(d,CKEDITOR.POSITION_BEFORE_START);g.collapse(true);d.remove()}else{d.is({tbody:1,thead:1,tfoot:1})&&(d=c(d,"tr",h));d.is("tr")&&(d=c(d,d.getParent().is("thead")?"th":"td",h));(e=d.getBogus())&& -e.remove();g.moveToPosition(d,h?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END)}}}();a={detect:function(a,c){var b=a.range,g=b.clone(),e=b.clone(),d=new CKEDITOR.dom.elementPath(b.startContainer,c),h=new CKEDITOR.dom.elementPath(b.endContainer,c);g.collapse(1);e.collapse();if(d.block&&g.checkBoundaryOfElement(d.block,CKEDITOR.END)){b.setStartAfter(d.block);a.prependEolBr=1}if(h.block&&e.checkBoundaryOfElement(h.block,CKEDITOR.START)){b.setEndBefore(h.block);a.appendEolBr=1}},fix:function(a, -c){var b=c.getDocument(),g;if(a.appendEolBr){g=this.createEolBr(b);a.fragment.append(g)}a.prependEolBr&&(!g||g.getPrevious())&&a.fragment.append(this.createEolBr(b),1)},createEolBr:function(a){return a.createElement("br",{attributes:{"data-cke-eol":1}})}};f={exclude:function(a){var c=a.range.getBoundaryNodes(),b=c.startNode;(c=c.endNode)&&(r(c)&&(!b||!b.equals(c)))&&a.range.setEndBefore(c)}};d={rebuild:function(a,c){var b=a.range,g=b.getCommonAncestor(),e=new CKEDITOR.dom.elementPath(g,c),d=new CKEDITOR.dom.elementPath(b.startContainer, -c),b=new CKEDITOR.dom.elementPath(b.endContainer,c),h;g.type==CKEDITOR.NODE_TEXT&&(g=g.getParent());if(e.blockLimit.is({tr:1,table:1})){var f=e.contains("table").getParent();h=function(a){return!a.equals(f)}}else if(e.block&&e.block.is(CKEDITOR.dtd.$listItem)){d=d.contains(CKEDITOR.dtd.$list);b=b.contains(CKEDITOR.dtd.$list);if(!d.equals(b)){var i=e.contains(CKEDITOR.dtd.$list).getParent();h=function(a){return!a.equals(i)}}}h||(h=function(a){return!a.equals(e.block)&&!a.equals(e.blockLimit)});this.rebuildFragment(a, -c,g,h)},rebuildFragment:function(a,c,b,g){for(var e;b&&!b.equals(c)&&g(b);){e=b.clone(0,1);a.fragment.appendTo(e);a.fragment=e;b=b.getParent()}}};b={shrink:function(a){var a=a.range,c=a.startContainer,b=a.endContainer,g=a.startOffset,e=a.endOffset;c.type==CKEDITOR.NODE_ELEMENT&&(c.equals(b)&&c.is("tr")&&++g==e)&&a.shrink(CKEDITOR.SHRINK_TEXT)}};var w=function(){function a(c,b){var g=c.getParent();if(g.is(CKEDITOR.dtd.$inline))c[b?"insertBefore":"insertAfter"](g)}function c(b,g,e){a(g);a(e,1);for(var d;d= -e.getNext();){d.insertAfter(g);g=d}m(b)&&b.remove()}function b(a,c){var g=new CKEDITOR.dom.range(a);g.setStartAfter(c.startNode);g.setEndBefore(c.endNode);return g}return{list:{detectMerge:function(a,c){var g=b(c,a.bookmark),e=g.startPath(),d=g.endPath(),h=e.contains(CKEDITOR.dtd.$list),f=d.contains(CKEDITOR.dtd.$list);a.mergeList=h&&f&&h.getParent().equals(f.getParent())&&!h.equals(f);a.mergeListItems=e.block&&d.block&&e.block.is(CKEDITOR.dtd.$listItem)&&d.block.is(CKEDITOR.dtd.$listItem);if(a.mergeList|| -a.mergeListItems){g=g.clone();g.setStartBefore(a.bookmark.startNode);g.setEndAfter(a.bookmark.endNode);a.mergeListBookmark=g.createBookmark()}},merge:function(a,b){if(a.mergeListBookmark){var g=a.mergeListBookmark.startNode,e=a.mergeListBookmark.endNode,d=new CKEDITOR.dom.elementPath(g,b),h=new CKEDITOR.dom.elementPath(e,b);if(a.mergeList){var f=d.contains(CKEDITOR.dtd.$list),i=h.contains(CKEDITOR.dtd.$list);if(!f.equals(i)){i.moveChildren(f);i.remove()}}if(a.mergeListItems){d=d.contains(CKEDITOR.dtd.$listItem); -h=h.contains(CKEDITOR.dtd.$listItem);d.equals(h)||c(h,g,e)}g.remove();e.remove()}}},block:{detectMerge:function(a,c){if(!a.tableContentsRanges&&!a.mergeListBookmark){var b=new CKEDITOR.dom.range(c);b.setStartBefore(a.bookmark.startNode);b.setEndAfter(a.bookmark.endNode);a.mergeBlockBookmark=b.createBookmark()}},merge:function(a,b){if(a.mergeBlockBookmark&&!a.purgeTableBookmark){var g=a.mergeBlockBookmark.startNode,e=a.mergeBlockBookmark.endNode,d=new CKEDITOR.dom.elementPath(g,b),h=new CKEDITOR.dom.elementPath(e, -b),d=d.block,h=h.block;d&&(h&&!d.equals(h))&&c(h,g,e);g.remove();e.remove()}}},table:function(){function a(b){var e=[],d,h=new CKEDITOR.dom.walker(b),f=b.startPath().contains(g),i=b.endPath().contains(g),j={};h.guard=function(a,h){if(a.type==CKEDITOR.NODE_ELEMENT){var l="visited_"+(h?"out":"in");if(a.getCustomData(l))return;CKEDITOR.dom.element.setMarker(j,a,l,1)}if(h&&f&&a.equals(f)){d=b.clone();d.setEndAt(f,CKEDITOR.POSITION_BEFORE_END);e.push(d)}else if(!h&&i&&a.equals(i)){d=b.clone();d.setStartAt(i, -CKEDITOR.POSITION_AFTER_START);e.push(d)}else if(!h&&a.type==CKEDITOR.NODE_ELEMENT&&a.is(g)&&(!f||c(a,f))&&(!i||c(a,i))){d=b.clone();d.selectNodeContents(a);e.push(d)}};h.lastForward();CKEDITOR.dom.element.clearAllMarkers(j);return e}function c(a,b){var g=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,e=a.getPosition(b);return e===CKEDITOR.POSITION_IDENTICAL?false:(e&g)===0}var g={td:1,th:1,caption:1};return{detectPurge:function(a){var c=a.range,b=c.clone();b.enlarge(CKEDITOR.ENLARGE_ELEMENT); -var b=new CKEDITOR.dom.walker(b),e=0;b.evaluator=function(a){a.type==CKEDITOR.NODE_ELEMENT&&a.is(g)&&++e};b.checkForward();if(e>1){var b=c.startPath().contains("table"),d=c.endPath().contains("table");if(b&&d&&c.checkBoundaryOfElement(b,CKEDITOR.START)&&c.checkBoundaryOfElement(d,CKEDITOR.END)){c=a.range.clone();c.setStartBefore(b);c.setEndAfter(d);a.purgeTableBookmark=c.createBookmark()}}},detectRanges:function(e,d){var h=b(d,e.bookmark),f=h.clone(),i,j,l=h.getCommonAncestor();l.is(CKEDITOR.dtd.$tableContent)&& -!l.is(g)&&(l=l.getAscendant("table",true));j=l;l=new CKEDITOR.dom.elementPath(h.startContainer,j);j=new CKEDITOR.dom.elementPath(h.endContainer,j);l=l.contains("table");j=j.contains("table");if(l||j){if(l&&j&&c(l,j)){e.tableSurroundingRange=f;f.setStartAt(l,CKEDITOR.POSITION_AFTER_END);f.setEndAt(j,CKEDITOR.POSITION_BEFORE_START);f=h.clone();f.setEndAt(l,CKEDITOR.POSITION_AFTER_END);i=h.clone();i.setStartAt(j,CKEDITOR.POSITION_BEFORE_START);i=a(f).concat(a(i))}else if(l){if(!j){e.tableSurroundingRange= -f;f.setStartAt(l,CKEDITOR.POSITION_AFTER_END);h.setEndAt(l,CKEDITOR.POSITION_AFTER_END)}}else{e.tableSurroundingRange=f;f.setEndAt(j,CKEDITOR.POSITION_BEFORE_START);h.setStartAt(j,CKEDITOR.POSITION_AFTER_START)}e.tableContentsRanges=i?i:a(h)}},deleteRanges:function(a){for(var c;c=a.tableContentsRanges.pop();){c.extractContents();m(c.startContainer)&&c.startContainer.appendBogus()}a.tableSurroundingRange&&a.tableSurroundingRange.extractContents()},purge:function(a){if(a.purgeTableBookmark){var c=a.doc, -b=a.range.clone(),c=c.createElement("p");c.insertBefore(a.purgeTableBookmark.startNode);b.moveToBookmark(a.purgeTableBookmark);b.deleteContents();a.range.moveToPosition(c,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(a){return!(a.range.startPath().contains(CKEDITOR.dtd.$listItem)&&a.range.endPath().contains(CKEDITOR.dtd.$listItem))},fixUneditableRangePosition:function(a){a.startContainer.getDtd()["#"]||a.moveToClosestEditablePosition(null,true)},autoParagraph:function(a,c){var b= -c.startPath(),e;if(g(a,b.block,b.blockLimit)&&(e=l(a))){e=c.document.createElement(e);e.appendBogus();c.insertNode(e);c.moveToPosition(e,CKEDITOR.POSITION_AFTER_START)}}}}()}(),function(){function a(){var a=this._.fakeSelection,c;if(a){c=this.getSelection(1);if(!c||!c.isHidden()){a.reset();a=0}}if(!a){a=c||this.getSelection(1);if(!a||a.getType()==CKEDITOR.SELECTION_NONE)return}this.fire("selectionCheck",a);c=this.elementPath();if(!c.compare(this._.selectionPreviousPath)){if(CKEDITOR.env.webkit)this._.previousActive= -this.document.getActive();this._.selectionPreviousPath=c;this.fire("selectionChange",{selection:a,path:c})}}function f(){o=true;if(!n){b.call(this);n=CKEDITOR.tools.setTimeout(b,200,this)}}function b(){n=null;if(o){CKEDITOR.tools.setTimeout(a,0,this);o=false}}function d(a){return p(a)||a.type==CKEDITOR.NODE_ELEMENT&&!a.is(CKEDITOR.dtd.$empty)?true:false}function h(a){function c(b,g){return!b||b.type==CKEDITOR.NODE_TEXT?false:a.clone()["moveToElementEdit"+(g?"End":"Start")](b)}if(!(a.root instanceof -CKEDITOR.editable))return false;var b=a.startContainer,g=a.getPreviousNode(d,null,b),e=a.getNextNode(d,null,b);return c(g)||c(e,1)||!g&&!e&&!(b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()&&b.getBogus())?true:false}function k(a){return a.getCustomData("cke-fillingChar")}function j(a,b){var g=a&&a.removeCustomData("cke-fillingChar");if(g){if(b!==false){var d,h=a.getDocument().getSelection().getNative(),f=h&&h.type!="None"&&h.getRangeAt(0);if(g.getLength()>1&&f&&f.intersectsNode(g.$)){d=e(h);f= -h.focusNode==g.$&&h.focusOffset>0;h.anchorNode==g.$&&h.anchorOffset>0&&d[0].offset--;f&&d[1].offset--}}g.setText(i(g.getText()));d&&c(a.getDocument().$,d)}}function i(a){return a.replace(/\u200B( )?/g,function(a){return a[1]?" ":""})}function e(a){return[{node:a.anchorNode,offset:a.anchorOffset},{node:a.focusNode,offset:a.focusOffset}]}function c(a,c){var b=a.getSelection(),g=a.createRange();g.setStart(c[0].node,c[0].offset);g.collapse(true);b.removeAllRanges();b.addRange(g);b.extend(c[1].node,c[1].offset)} -function g(a){var c=CKEDITOR.dom.element.createFromHtml('<div data-cke-hidden-sel="1" data-cke-temp="1" style="'+(CKEDITOR.env.ie?"display:none":"position:fixed;top:0;left:-1000px")+'"> </div>',a.document);a.fire("lockSnapshot");a.editable().append(c);var b=a.getSelection(1),g=a.createRange(),e=b.root.on("selectionchange",function(a){a.cancel()},null,null,0);g.setStartAt(c,CKEDITOR.POSITION_AFTER_START);g.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);b.selectRanges([g]);e.removeListener();a.fire("unlockSnapshot"); -a._.hiddenSelectionContainer=c}function l(a){var c={37:1,39:1,8:1,46:1};return function(b){var g=b.data.getKeystroke();if(c[g]){var e=a.getSelection().getRanges(),d=e[0];if(e.length==1&&d.collapsed)if((g=d[g<38?"getPreviousEditableNode":"getNextEditableNode"]())&&g.type==CKEDITOR.NODE_ELEMENT&&g.getAttribute("contenteditable")=="false"){a.getSelection().fake(g);b.data.preventDefault();b.cancel()}}}}function q(a){for(var c=0;c<a.length;c++){var b=a[c];b.getCommonAncestor().isReadOnly()&&a.splice(c, -1);if(!b.collapsed){if(b.startContainer.isReadOnly())for(var g=b.startContainer,e;g;){if((e=g.type==CKEDITOR.NODE_ELEMENT)&&g.is("body")||!g.isReadOnly())break;e&&g.getAttribute("contentEditable")=="false"&&b.setStartAfter(g);g=g.getParent()}g=b.startContainer;e=b.endContainer;var d=b.startOffset,h=b.endOffset,f=b.clone();g&&g.type==CKEDITOR.NODE_TEXT&&(d>=g.getLength()?f.setStartAfter(g):f.setStartBefore(g));e&&e.type==CKEDITOR.NODE_TEXT&&(h?f.setEndAfter(e):f.setEndBefore(e));g=new CKEDITOR.dom.walker(f); -g.evaluator=function(g){if(g.type==CKEDITOR.NODE_ELEMENT&&g.isReadOnly()){var e=b.clone();b.setEndBefore(g);b.collapsed&&a.splice(c--,1);if(!(g.getPosition(f.endContainer)&CKEDITOR.POSITION_CONTAINS)){e.setStartAfter(g);e.collapsed||a.splice(c+1,0,e)}return true}return false};g.next()}}return a}var n,o,p=CKEDITOR.dom.walker.invisible(1),m=function(){function a(c){return function(a){var b=a.editor.createRange();b.moveToClosestEditablePosition(a.selected,c)&&a.editor.getSelection().selectRanges([b]); -return false}}function c(a){return function(c){var b=c.editor,g=b.createRange(),e;if(!(e=g.moveToClosestEditablePosition(c.selected,a)))e=g.moveToClosestEditablePosition(c.selected,!a);e&&b.getSelection().selectRanges([g]);b.fire("saveSnapshot");c.selected.remove();if(!e){g.moveToElementEditablePosition(b.editable());b.getSelection().selectRanges([g])}b.fire("saveSnapshot");return false}}var b=a(),g=a(1);return{37:b,38:b,39:g,40:g,8:c(),46:c(1)}}();CKEDITOR.on("instanceCreated",function(c){function b(){var a= -g.getSelection();a&&a.removeAllRanges()}var g=c.editor;g.on("contentDom",function(){function c(){n=new CKEDITOR.dom.selection(g.getSelection());n.lock()}function b(){d.removeListener("mouseup",b);k.removeListener("mouseup",b);var a=CKEDITOR.document.$.selection,c=a.createRange();a.type!="None"&&c.parentElement().ownerDocument==e.$&&c.select()}var e=g.document,d=CKEDITOR.document,h=g.editable(),i=e.getBody(),k=e.getDocumentElement(),m=h.isInline(),o,n;CKEDITOR.env.gecko&&h.attachListener(h,"focus", -function(a){a.removeListener();if(o!==0)if((a=g.getSelection().getNative())&&a.isCollapsed&&a.anchorNode==h.$){a=g.createRange();a.moveToElementEditStart(h);a.select()}},null,null,-2);h.attachListener(h,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){o&&CKEDITOR.env.webkit&&(o=g._.previousActive&&g._.previousActive.equals(e.getActive()));g.unlockSelection(o);o=0},null,null,-1);h.attachListener(h,"mousedown",function(){o=0});if(CKEDITOR.env.ie||m){r?h.attachListener(h,"beforedeactivate",c,null, -null,-1):h.attachListener(g,"selectionCheck",c,null,null,-1);h.attachListener(h,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){g.lockSelection(n);o=1},null,null,-1);h.attachListener(h,"mousedown",function(){o=0})}if(CKEDITOR.env.ie&&!m){var p;h.attachListener(h,"mousedown",function(a){if(a.data.$.button==2){a=g.document.getSelection();if(!a||a.getType()==CKEDITOR.SELECTION_NONE)p=g.window.getScrollPosition()}});h.attachListener(h,"mouseup",function(a){if(a.data.$.button==2&&p){g.document.$.documentElement.scrollLeft= -p.x;g.document.$.documentElement.scrollTop=p.y}p=null});if(e.$.compatMode!="BackCompat"){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)k.on("mousedown",function(a){function c(a){a=a.data.$;if(g){var b=i.$.createTextRange();try{b.moveToPoint(a.clientX,a.clientY)}catch(e){}g.setEndPoint(h.compareEndPoints("StartToStart",b)<0?"EndToEnd":"StartToStart",b);g.select()}}function b(){k.removeListener("mousemove",c);d.removeListener("mouseup",b);k.removeListener("mouseup",b);g.select()}a=a.data;if(a.getTarget().is("html")&& -a.$.y<k.$.clientHeight&&a.$.x<k.$.clientWidth){var g=i.$.createTextRange();try{g.moveToPoint(a.$.clientX,a.$.clientY)}catch(e){}var h=g.duplicate();k.on("mousemove",c);d.on("mouseup",b);k.on("mouseup",b)}});if(CKEDITOR.env.version>7&&CKEDITOR.env.version<11)k.on("mousedown",function(a){if(a.data.getTarget().is("html")){d.on("mouseup",b);k.on("mouseup",b)}})}}h.attachListener(h,"selectionchange",a,g);h.attachListener(h,"keyup",f,g);h.attachListener(h,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){g.forceNextSelectionCheck(); -g.selectionChange(1)});if(m&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var q;h.attachListener(h,"mousedown",function(){q=1});h.attachListener(e.getDocumentElement(),"mouseup",function(){q&&f.call(g);q=0})}else h.attachListener(CKEDITOR.env.ie?h:e.getDocumentElement(),"mouseup",f,g);CKEDITOR.env.webkit&&h.attachListener(e,"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:j(h)}},null,null,-1);h.attachListener(h,"keydown",l(g), -null,null,-1)});g.on("setData",function(){g.unlockSelection();CKEDITOR.env.webkit&&b()});g.on("contentDomUnload",function(){g.unlockSelection()});if(CKEDITOR.env.ie9Compat)g.on("beforeDestroy",b,null,null,9);g.on("dataReady",function(){delete g._.fakeSelection;delete g._.hiddenSelectionContainer;g.selectionChange(1)});g.on("loadSnapshot",function(){var a=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),c=g.editable().getLast(a);if(c&&c.hasAttribute("data-cke-hidden-sel")){c.remove();if(CKEDITOR.env.gecko)(a= -g.editable().getFirst(a))&&(a.is("br")&&a.getAttribute("_moz_editor_bogus_node"))&&a.remove()}},null,null,100);g.on("key",function(a){if(g.mode=="wysiwyg"){var c=g.getSelection();if(c.isFake){var b=m[a.data.keyCode];if(b)return b({editor:g,selected:c.getSelectedElement(),selection:c,keyEvent:a})}}})});CKEDITOR.on("instanceReady",function(a){function b(){var a=d.editable();if(a)if(a=k(a)){var c=d.document.$.getSelection();if(c.type!="None"&&(c.anchorNode==a.$||c.focusNode==a.$))f=e(c);h=a.getText(); -a.setText(i(h))}}function g(){var a=d.editable();if(a)if(a=k(a)){a.setText(h);if(f){c(d.document.$,f);f=null}}}var d=a.editor,h,f;if(CKEDITOR.env.webkit){d.on("selectionChange",function(){var a=d.editable(),c=k(a);c&&(c.getCustomData("ready")?j(a):c.setCustomData("ready",1))},null,null,-1);d.on("beforeSetMode",function(){j(d.editable())},null,null,-1);d.on("beforeUndoImage",b);d.on("afterUndoImage",g);d.on("beforeGetData",b,null,null,0);d.on("getData",g)}});CKEDITOR.editor.prototype.selectionChange= -function(c){(c?a:f).call(this)};CKEDITOR.editor.prototype.getSelection=function(a){if((this._.savedSelection||this._.fakeSelection)&&!a)return this._.savedSelection||this._.fakeSelection;return(a=this.editable())&&this.mode=="wysiwyg"?new CKEDITOR.dom.selection(a):null};CKEDITOR.editor.prototype.lockSelection=function(a){a=a||this.getSelection(1);if(a.getType()!=CKEDITOR.SELECTION_NONE){!a.isLocked&&a.lock();this._.savedSelection=a;return true}return false};CKEDITOR.editor.prototype.unlockSelection= -function(a){var c=this._.savedSelection;if(c){c.unlock(a);delete this._.savedSelection;return true}return false};CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath};CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)};CKEDITOR.dom.range.prototype.select=function(){var a=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);a.selectRanges([this]);return a}; -CKEDITOR.SELECTION_NONE=1;CKEDITOR.SELECTION_TEXT=2;CKEDITOR.SELECTION_ELEMENT=3;var r=typeof window.getSelection!="function",u=1;CKEDITOR.dom.selection=function(a){if(a instanceof CKEDITOR.dom.selection)var c=a,a=a.root;var b=a instanceof CKEDITOR.dom.element;this.rev=c?c.rev:u++;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root=b?a:this.document.getBody();this.isLocked=0;this._={cache:{}};if(c){CKEDITOR.tools.extend(this._.cache,c._.cache);this.isFake=c.isFake;this.isLocked= -c.isLocked;return this}var a=this.getNative(),g,e;if(a)if(a.getRangeAt)g=(e=a.rangeCount&&a.getRangeAt(0))&&new CKEDITOR.dom.node(e.commonAncestorContainer);else{try{e=a.createRange()}catch(d){}g=e&&CKEDITOR.dom.element.get(e.item&&e.item(0)||e.parentElement())}if(!g||!(g.type==CKEDITOR.NODE_ELEMENT||g.type==CKEDITOR.NODE_TEXT)||!this.root.equals(g)&&!this.root.contains(g)){this._.cache.type=CKEDITOR.SELECTION_NONE;this._.cache.startElement=null;this._.cache.selectedElement=null;this._.cache.selectedText= -"";this._.cache.ranges=new CKEDITOR.dom.rangeList}return this};var y={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=r?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:r?function(){var a=this._.cache;if(a.type)return a.type;var c=CKEDITOR.SELECTION_NONE; -try{var b=this.getNative(),g=b.type;if(g=="Text")c=CKEDITOR.SELECTION_TEXT;if(g=="Control")c=CKEDITOR.SELECTION_ELEMENT;if(b.createRange().parentElement())c=CKEDITOR.SELECTION_TEXT}catch(e){}return a.type=c}:function(){var a=this._.cache;if(a.type)return a.type;var c=CKEDITOR.SELECTION_TEXT,b=this.getNative();if(!b||!b.rangeCount)c=CKEDITOR.SELECTION_NONE;else if(b.rangeCount==1){var b=b.getRangeAt(0),g=b.startContainer;if(g==b.endContainer&&g.nodeType==1&&b.endOffset-b.startOffset==1&&y[g.childNodes[b.startOffset].nodeName.toLowerCase()])c= -CKEDITOR.SELECTION_ELEMENT}return a.type=c},getRanges:function(){var a=r?function(){function a(c){return(new CKEDITOR.dom.node(c)).getIndex()}var c=function(c,b){c=c.duplicate();c.collapse(b);var g=c.parentElement();if(!g.hasChildNodes())return{container:g,offset:0};for(var e=g.children,d,h,f=c.duplicate(),i=0,j=e.length-1,l=-1,k,m;i<=j;){l=Math.floor((i+j)/2);d=e[l];f.moveToElementText(d);k=f.compareEndPoints("StartToStart",c);if(k>0)j=l-1;else if(k<0)i=l+1;else return{container:g,offset:a(d)}}if(l== --1||l==e.length-1&&k<0){f.moveToElementText(g);f.setEndPoint("StartToStart",c);f=f.text.replace(/(\r\n|\r)/g,"\n").length;e=g.childNodes;if(!f){d=e[e.length-1];return d.nodeType!=CKEDITOR.NODE_TEXT?{container:g,offset:e.length}:{container:d,offset:d.nodeValue.length}}for(g=e.length;f>0&&g>0;){h=e[--g];if(h.nodeType==CKEDITOR.NODE_TEXT){m=h;f=f-h.nodeValue.length}}return{container:m,offset:-f}}f.collapse(k>0?true:false);f.setEndPoint(k>0?"StartToStart":"EndToStart",c);f=f.text.replace(/(\r\n|\r)/g, -"\n").length;if(!f)return{container:g,offset:a(d)+(k>0?0:1)};for(;f>0;)try{h=d[k>0?"previousSibling":"nextSibling"];if(h.nodeType==CKEDITOR.NODE_TEXT){f=f-h.nodeValue.length;m=h}d=h}catch(o){return{container:g,offset:a(d)}}return{container:m,offset:k>0?-f:m.nodeValue.length+f}};return function(){var a=this.getNative(),b=a&&a.createRange(),g=this.getType();if(!a)return[];if(g==CKEDITOR.SELECTION_TEXT){a=new CKEDITOR.dom.range(this.root);g=c(b,true);a.setStart(new CKEDITOR.dom.node(g.container),g.offset); -g=c(b);a.setEnd(new CKEDITOR.dom.node(g.container),g.offset);a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse();return[a]}if(g==CKEDITOR.SELECTION_ELEMENT){for(var g=[],e=0;e<b.length;e++){for(var d=b.item(e),h=d.parentNode,f=0,a=new CKEDITOR.dom.range(this.root);f<h.childNodes.length&&h.childNodes[f]!=d;f++);a.setStart(new CKEDITOR.dom.node(h),f);a.setEnd(new CKEDITOR.dom.node(h),f+1);g.push(a)}return g}return[]}}():function(){var a= -[],c,b=this.getNative();if(!b)return a;for(var g=0;g<b.rangeCount;g++){var e=b.getRangeAt(g);c=new CKEDITOR.dom.range(this.root);c.setStart(new CKEDITOR.dom.node(e.startContainer),e.startOffset);c.setEnd(new CKEDITOR.dom.node(e.endContainer),e.endOffset);a.push(c)}return a};return function(c){var b=this._.cache,g=b.ranges;if(!g)b.ranges=g=new CKEDITOR.dom.rangeList(a.call(this));return!c?g:q(new CKEDITOR.dom.rangeList(g.slice()))}}(),getStartElement:function(){var a=this._.cache;if(a.startElement!== -void 0)return a.startElement;var c;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var b=this.getRanges()[0];if(b){if(b.collapsed){c=b.startContainer;c.type!=CKEDITOR.NODE_ELEMENT&&(c=c.getParent())}else{for(b.optimize();;){c=b.startContainer;if(b.startOffset==(c.getChildCount?c.getChildCount():c.getLength())&&!c.isBlockBoundary())b.setStartAfter(c);else break}c=b.startContainer;if(c.type!=CKEDITOR.NODE_ELEMENT)return c.getParent(); -c=c.getChild(b.startOffset);if(!c||c.type!=CKEDITOR.NODE_ELEMENT)c=b.startContainer;else for(b=c.getFirst();b&&b.type==CKEDITOR.NODE_ELEMENT;){c=b;b=b.getFirst()}}c=c.$}}return a.startElement=c?new CKEDITOR.dom.element(c):null},getSelectedElement:function(){var a=this._.cache;if(a.selectedElement!==void 0)return a.selectedElement;var c=this,b=CKEDITOR.tools.tryThese(function(){return c.getNative().createRange().item(0)},function(){for(var a=c.getRanges()[0].clone(),b,g,e=2;e&&(!(b=a.getEnclosedNode())|| -!(b.type==CKEDITOR.NODE_ELEMENT&&y[b.getName()]&&(g=b)));e--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return g&&g.$});return a.selectedElement=b?new CKEDITOR.dom.element(b):null},getSelectedText:function(){var a=this._.cache;if(a.selectedText!==void 0)return a.selectedText;var c=this.getNative(),c=r?c.type=="Control"?"":c.createRange().text:c.toString();return a.selectedText=c},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 c=this.getSelectedElement(),b=!c&&this.getRanges(),g=this.isFake;this.isLocked=0;this.reset();if(a)(a=c||b[0]&&b[0].getCommonAncestor())&&a.getAscendant("body",1)&&(g?this.fake(c):c?this.selectElement(c):this.selectRanges(b))}},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 c=a._.hiddenSelectionContainer;if(c){var b=a.checkDirty(); -a.fire("lockSnapshot");c.remove();a.fire("unlockSnapshot");!b&&a.resetDirty()}delete a._.hiddenSelectionContainer}this.rev=u++},selectElement:function(a){var c=new CKEDITOR.dom.range(this.root);c.setStartBefore(a);c.setEndAfter(a);this.selectRanges([c])},selectRanges:function(a){var c=this.root.editor,c=c&&c._.hiddenSelectionContainer;this.reset();if(c)for(var c=this.root,b,g=0;g<a.length;++g){b=a[g];if(b.endContainer.equals(c))b.endOffset=Math.min(b.endOffset,c.getChildCount())}if(a.length)if(this.isLocked){var e= -CKEDITOR.document.getActive();this.unlock();this.selectRanges(a);this.lock();e&&!e.equals(this.root)&&e.focus()}else{var d;a:{var f,i;if(a.length==1&&!(i=a[0]).collapsed&&(d=i.getEnclosedNode())&&d.type==CKEDITOR.NODE_ELEMENT){i=i.clone();i.shrink(CKEDITOR.SHRINK_ELEMENT,true);if((f=i.getEnclosedNode())&&f.type==CKEDITOR.NODE_ELEMENT)d=f;if(d.getAttribute("contenteditable")=="false")break a}d=void 0}if(d)this.fake(d);else{if(r){i=CKEDITOR.dom.walker.whitespaces(true);f=/\ufeff|\u00a0/;c={table:1, -tbody:1,tr:1};if(a.length>1){d=a[a.length-1];a[0].setEnd(d.endContainer,d.endOffset)}d=a[0];var a=d.collapsed,l,k,m;if((b=d.getEnclosedNode())&&b.type==CKEDITOR.NODE_ELEMENT&&b.getName()in y&&(!b.is("a")||!b.getText()))try{m=b.$.createControlRange();m.addElement(b.$);m.select();return}catch(o){}if(d.startContainer.type==CKEDITOR.NODE_ELEMENT&&d.startContainer.getName()in c||d.endContainer.type==CKEDITOR.NODE_ELEMENT&&d.endContainer.getName()in c){d.shrink(CKEDITOR.NODE_ELEMENT,true);a=d.collapsed}m= -d.createBookmark();c=m.startNode;if(!a)e=m.endNode;m=d.document.$.body.createTextRange();m.moveToElementText(c.$);m.moveStart("character",1);if(e){f=d.document.$.body.createTextRange();f.moveToElementText(e.$);m.setEndPoint("EndToEnd",f);m.moveEnd("character",-1)}else{l=c.getNext(i);k=c.hasAscendant("pre");l=!(l&&l.getText&&l.getText().match(f))&&(k||!c.hasPrevious()||c.getPrevious().is&&c.getPrevious().is("br"));k=d.document.createElement("span");k.setHtml("");k.insertBefore(c);l&&d.document.createText("").insertBefore(c)}d.setStartBefore(c); -c.remove();if(a){if(l){m.moveStart("character",-1);m.select();d.document.$.selection.clear()}else m.select();d.moveToPosition(k,CKEDITOR.POSITION_BEFORE_START);k.remove()}else{d.setEndBefore(e);e.remove();m.select()}}else{e=this.getNative();if(!e)return;this.removeAllRanges();for(m=0;m<a.length;m++){if(m<a.length-1){l=a[m];k=a[m+1];f=l.clone();f.setStart(l.endContainer,l.endOffset);f.setEnd(k.startContainer,k.startOffset);if(!f.collapsed){f.shrink(CKEDITOR.NODE_ELEMENT,true);d=f.getCommonAncestor(); -f=f.getEnclosedNode();if(d.isReadOnly()||f&&f.isReadOnly()){k.setStart(l.startContainer,l.startOffset);a.splice(m--,1);continue}}}d=a[m];k=this.document.$.createRange();if(d.collapsed&&CKEDITOR.env.webkit&&h(d)){l=this.root;j(l,false);f=l.getDocument().createText("​");l.setCustomData("cke-fillingChar",f);d.insertNode(f);if((l=f.getNext())&&!f.getPrevious()&&l.type==CKEDITOR.NODE_ELEMENT&&l.getName()=="br"){j(this.root);d.moveToPosition(l,CKEDITOR.POSITION_BEFORE_START)}else d.moveToPosition(f,CKEDITOR.POSITION_AFTER_END)}k.setStart(d.startContainer.$, -d.startOffset);try{k.setEnd(d.endContainer.$,d.endOffset)}catch(n){if(n.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")>=0){d.collapse(1);k.setEnd(d.endContainer.$,d.endOffset)}else throw n;}e.addRange(k)}}this.reset();this.root.fire("selectionchange")}}},fake:function(a){var c=this.root.editor;this.reset();g(c);var b=this._.cache,e=new CKEDITOR.dom.range(this.root);e.setStartBefore(a);e.setEndAfter(a);b.ranges=new CKEDITOR.dom.rangeList(e);b.selectedElement=b.startElement=a;b.type=CKEDITOR.SELECTION_ELEMENT; -b.selectedText=b.nativeSel=null;this.isFake=1;this.rev=u++;c._.fakeSelection=this;this.root.fire("selectionchange")},isHidden:function(){var a=this.getCommonAncestor();a&&a.type==CKEDITOR.NODE_TEXT&&(a=a.getParent());return!(!a||!a.data("cke-hidden-sel"))},createBookmarks:function(a){a=this.getRanges().createBookmarks(a);this.isFake&&(a.isFake=1);return a},createBookmarks2:function(a){a=this.getRanges().createBookmarks2(a);this.isFake&&(a.isFake=1);return a},selectBookmarks:function(a){for(var c= -[],b,g=0;g<a.length;g++){var e=new CKEDITOR.dom.range(this.root);e.moveToBookmark(a[g]);c.push(e)}if(a.isFake){b=c[0].getEnclosedNode();if(!b||b.type!=CKEDITOR.NODE_ELEMENT)a.isFake=0}a.isFake?this.fake(b):this.selectRanges(c);return this},getCommonAncestor:function(){var a=this.getRanges();return!a.length?null:a[0].startContainer.getCommonAncestor(a[a.length-1].endContainer)},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!= -CKEDITOR.SELECTION_NONE){var a=this.getNative();try{a&&a[r?"empty":"removeAllRanges"]()}catch(c){}this.reset()}}}}(),"use strict",CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function a(a,c){for(var b,g;a=a.getParent();){if(a.equals(c))break;if(a.getAttribute("data-nostyle"))b=a;else if(!g){var e=a.getAttribute("contentEditable");e=="false"?b=a:e=="true"&&(g=1)}}return b}function f(c){var b=c.document;if(c.collapsed){b=m(this,b);c.insertNode(b);c.moveToPosition(b, -CKEDITOR.POSITION_BEFORE_END)}else{var g=this.element,e=this._.definition,h,i=e.ignoreReadonly,j=i||e.includeReadonly;j==null&&(j=c.root.getCustomData("cke_includeReadonly"));var l=CKEDITOR.dtd[g];if(!l){h=true;l=CKEDITOR.dtd.span}c.enlarge(CKEDITOR.ENLARGE_INLINE,1);c.trim();var k=c.createBookmark(),o=k.startNode,r=k.endNode,p=o,q;if(!i){var u=c.getCommonAncestor(),i=a(o,u),u=a(r,u);i&&(p=i.getNextSourceNode(true));u&&(r=u)}for(p.getPosition(r)==CKEDITOR.POSITION_FOLLOWING&&(p=0);p;){i=false;if(p.equals(r)){p= -null;i=true}else{var y=p.type==CKEDITOR.NODE_ELEMENT?p.getName():null,u=y&&p.getAttribute("contentEditable")=="false",v=y&&p.getAttribute("data-nostyle");if(y&&p.data("cke-bookmark")){p=p.getNextSourceNode(true);continue}if(u&&j&&CKEDITOR.dtd.$block[y])for(var w=p,t=d(w),s=void 0,x=t.length,z=0,w=x&&new CKEDITOR.dom.range(w.getDocument());z<x;++z){var s=t[z],A=CKEDITOR.filter.instances[s.data("cke-filter")];if(A?A.check(this):1){w.selectNodeContents(s);f.call(this,w)}}t=y?!l[y]||v?0:u&&!j?0:(p.getPosition(r)| -D)==D&&(!e.childRule||e.childRule(p)):1;if(t)if((t=p.getParent())&&((t.getDtd()||CKEDITOR.dtd.span)[g]||h)&&(!e.parentRule||e.parentRule(t))){if(!q&&(!y||!CKEDITOR.dtd.$removeEmpty[y]||(p.getPosition(r)|D)==D)){q=c.clone();q.setStartBefore(p)}y=p.type;if(y==CKEDITOR.NODE_TEXT||u||y==CKEDITOR.NODE_ELEMENT&&!p.getChildCount()){for(var y=p,aa;(i=!y.getNext(B))&&(aa=y.getParent(),l[aa.getName()])&&(aa.getPosition(o)|C)==C&&(!e.childRule||e.childRule(aa));)y=aa;q.setEndAfter(y)}}else i=true;else i=true; -p=p.getNextSourceNode(v||u)}if(i&&q&&!q.collapsed){for(var i=m(this,b),u=i.hasAttributes(),v=q.getCommonAncestor(),y={},t={},s={},x={},Y,X,ba;i&&v;){if(v.getName()==g){for(Y in e.attributes)if(!x[Y]&&(ba=v.getAttribute(X)))i.getAttribute(Y)==ba?t[Y]=1:x[Y]=1;for(X in e.styles)if(!s[X]&&(ba=v.getStyle(X)))i.getStyle(X)==ba?y[X]=1:s[X]=1}v=v.getParent()}for(Y in t)i.removeAttribute(Y);for(X in y)i.removeStyle(X);u&&!i.hasAttributes()&&(i=null);if(i){q.extractContents().appendTo(i);q.insertNode(i);n.call(this, -i);i.mergeSiblings();CKEDITOR.env.ie||i.$.normalize()}else{i=new CKEDITOR.dom.element("span");q.extractContents().appendTo(i);q.insertNode(i);n.call(this,i);i.remove(true)}q=null}}c.moveToBookmark(k);c.shrink(CKEDITOR.SHRINK_TEXT);c.shrink(CKEDITOR.NODE_ELEMENT,true)}}function b(a){function c(){for(var a=new CKEDITOR.dom.elementPath(g.getParent()),b=new CKEDITOR.dom.elementPath(j.getParent()),e=null,d=null,h=0;h<a.elements.length;h++){var f=a.elements[h];if(f==a.block||f==a.blockLimit)break;l.checkElementRemovable(f, -true)&&(e=f)}for(h=0;h<b.elements.length;h++){f=b.elements[h];if(f==b.block||f==b.blockLimit)break;l.checkElementRemovable(f,true)&&(d=f)}d&&j.breakParent(d);e&&g.breakParent(e)}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var b=a.createBookmark(),g=b.startNode;if(a.collapsed){for(var e=new CKEDITOR.dom.elementPath(g.getParent(),a.root),d,h=0,f;h<e.elements.length&&(f=e.elements[h]);h++){if(f==e.block||f==e.blockLimit)break;if(this.checkElementRemovable(f)){var i;if(a.collapsed&&(a.checkBoundaryOfElement(f, -CKEDITOR.END)||(i=a.checkBoundaryOfElement(f,CKEDITOR.START)))){d=f;d.match=i?"start":"end"}else{f.mergeSiblings();f.is(this.element)?q.call(this,f):o(f,y(this)[f.getName()])}}}if(d){f=g;for(h=0;;h++){i=e.elements[h];if(i.equals(d))break;else if(i.match)continue;else i=i.clone();i.append(f);f=i}f[d.match=="start"?"insertBefore":"insertAfter"](d)}}else{var j=b.endNode,l=this;c();for(e=g;!e.equals(j);){d=e.getNextSourceNode();if(e.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(e)){e.getName()== -this.element?q.call(this,e):o(e,y(this)[e.getName()]);if(d.type==CKEDITOR.NODE_ELEMENT&&d.contains(g)){c();d=g.getNext()}}e=d}}a.moveToBookmark(b);a.shrink(CKEDITOR.NODE_ELEMENT,true)}function d(a){var c=[];a.forEach(function(a){if(a.getAttribute("contenteditable")=="true"){c.push(a);return false}},CKEDITOR.NODE_ELEMENT,true);return c}function h(a){var c=a.getEnclosedNode()||a.getCommonAncestor(false,true);(a=(new CKEDITOR.dom.elementPath(c,a.root)).contains(this.element,1))&&!a.isReadOnly()&&r(a, -this)}function k(a){var c=a.getCommonAncestor(true,true);if(a=(new CKEDITOR.dom.elementPath(c,a.root)).contains(this.element,1)){var c=this._.definition,b=c.attributes;if(b)for(var g in b)a.removeAttribute(g,b[g]);if(c.styles)for(var e in c.styles)c.styles.hasOwnProperty(e)&&a.removeStyle(e)}}function j(a){var c=a.createBookmark(true),b=a.createIterator();b.enforceRealBlocks=true;if(this._.enterMode)b.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var g,d=a.document,h;g=b.getNextParagraph();)if(!g.isReadOnly()&& -(b.activeFilter?b.activeFilter.check(this):1)){h=m(this,d,g);e(g,h)}a.moveToBookmark(c)}function i(a){var c=a.createBookmark(1),b=a.createIterator();b.enforceRealBlocks=true;b.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var g,d;g=b.getNextParagraph();)if(this.checkElementRemovable(g))if(g.is("pre")){(d=this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&g.copyAttributes(d);e(g,d)}else q.call(this,g);a.moveToBookmark(c)}function e(a, -b){var e=!b;if(e){b=a.getDocument().createElement("div");a.copyAttributes(b)}var d=b&&b.is("pre"),h=a.is("pre"),f=!d&&h;if(d&&!h){h=b;(f=a.getBogus())&&f.remove();f=a.getHtml();f=g(f,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");f=f.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");f=f.replace(/([ \t\n\r]+| )/g," ");f=f.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var i=a.getDocument().createElement("div");i.append(h);h.$.outerHTML="<pre>"+f+"</pre>";h.copyAttributes(i.getFirst());h=i.getFirst().remove()}else h.setHtml(f); -b=h}else f?b=l(e?[a.getHtml()]:c(a),b):a.moveChildren(b);b.replace(a);if(d){var e=b,j;if((j=e.getPrevious(A))&&j.type==CKEDITOR.NODE_ELEMENT&&j.is("pre")){d=g(j.getHtml(),/\n$/,"")+"\n\n"+g(e.getHtml(),/^\n/,"");CKEDITOR.env.ie?e.$.outerHTML="<pre>"+d+"</pre>":e.setHtml(d);j.remove()}}else e&&p(b)}function c(a){var c=[];g(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(a,c,b){return c+"</pre>"+b+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(a, -b){c.push(b)});return c}function g(a,c,b){var g="",e="",a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(a,c,b){c&&(g=c);b&&(e=b);return""});return g+a.replace(c,b)+e}function l(a,c){var b;a.length>1&&(b=new CKEDITOR.dom.documentFragment(c.getDocument()));for(var e=0;e<a.length;e++){var d=a[e],d=d.replace(/(\r\n|\r)/g,"\n"),d=g(d,/^[ \t]*\n/,""),d=g(d,/\n$/,""),d=g(d,/^[ \t]+|[ \t]+$/g,function(a,c){return a.length==1?" ":c?" "+CKEDITOR.tools.repeat(" ", -a.length-1):CKEDITOR.tools.repeat(" ",a.length-1)+" "}),d=d.replace(/\n/g,"<br>"),d=d.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat(" ",a.length-1)+" "});if(b){var h=c.clone();h.setHtml(d);b.append(h)}else c.setHtml(d)}return b||c}function q(a,c){var b=this._.definition,g=b.attributes,b=b.styles,e=y(this)[a.getName()],d=CKEDITOR.tools.isEmpty(g)&&CKEDITOR.tools.isEmpty(b),h;for(h in g)if(!((h=="class"||this._.definition.fullMatch)&&a.getAttribute(h)!=v(h,g[h]))&&!(c&&h.slice(0, -5)=="data-")){d=a.hasAttribute(h);a.removeAttribute(h)}for(var f in b)if(!(this._.definition.fullMatch&&a.getStyle(f)!=v(f,b[f],true))){d=d||!!a.getStyle(f);a.removeStyle(f)}o(a,e,t[a.getName()]);d&&(this._.definition.alwaysRemoveElement?p(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!a.hasAttributes()?p(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function n(a){for(var c=y(this),b=a.getElementsByTag(this.element),g,e=b.count();--e>=0;){g=b.getItem(e); -g.isReadOnly()||q.call(this,g,true)}for(var d in c)if(d!=this.element){b=a.getElementsByTag(d);for(e=b.count()-1;e>=0;e--){g=b.getItem(e);g.isReadOnly()||o(g,c[d])}}}function o(a,c,b){if(c=c&&c.attributes)for(var g=0;g<c.length;g++){var e=c[g][0],d;if(d=a.getAttribute(e)){var h=c[g][1];(h===null||h.test&&h.test(d)||typeof h=="string"&&d==h)&&a.removeAttribute(e)}}b||p(a)}function p(a,c){if(!a.hasAttributes()||c)if(CKEDITOR.dtd.$block[a.getName()]){var b=a.getPrevious(A),g=a.getNext(A);b&&(b.type== -CKEDITOR.NODE_TEXT||!b.isBlockBoundary({br:1}))&&a.append("br",1);g&&(g.type==CKEDITOR.NODE_TEXT||!g.isBlockBoundary({br:1}))&&a.append("br");a.remove(true)}else{b=a.getFirst();g=a.getLast();a.remove(true);if(b){b.type==CKEDITOR.NODE_ELEMENT&&b.mergeSiblings();g&&(!b.equals(g)&&g.type==CKEDITOR.NODE_ELEMENT)&&g.mergeSiblings()}}}function m(a,c,b){var g;g=a.element;g=="*"&&(g="span");g=new CKEDITOR.dom.element(g,c);b&&b.copyAttributes(g);g=r(g,a);c.getCustomData("doc_processing_style")&&g.hasAttribute("id")? -g.removeAttribute("id"):c.setCustomData("doc_processing_style",1);return g}function r(a,c){var b=c._.definition,g=b.attributes,b=CKEDITOR.style.getStyleText(b);if(g)for(var e in g)a.setAttribute(e,g[e]);b&&a.setAttribute("style",b);return a}function u(a,c){for(var b in a)a[b]=a[b].replace(x,function(a,b){return c[b]})}function y(a){if(a._.overrides)return a._.overrides;var c=a._.overrides={},b=a._.definition.overrides;if(b){CKEDITOR.tools.isArray(b)||(b=[b]);for(var g=0;g<b.length;g++){var e=b[g], -d,h;if(typeof e=="string")d=e.toLowerCase();else{d=e.element?e.element.toLowerCase():a.element;h=e.attributes}e=c[d]||(c[d]={});if(h){var e=e.attributes=e.attributes||[],f;for(f in h)e.push([f.toLowerCase(),h[f]])}}}return c}function v(a,c,b){var g=new CKEDITOR.dom.element("span");g[b?"setStyle":"setAttribute"](a,c);return g[b?"getStyle":"getAttribute"](a)}function w(a,c,b){for(var g=a.document,e=a.getRanges(),c=c?this.removeFromRange:this.applyToRange,d,h=e.createIterator();d=h.getNextRange();)c.call(this, -d,b);a.selectRanges(e);g.removeCustomData("doc_processing_style")}var t={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},s={a:1,blockquote:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1},z=/\s*(?:;\s*|$)/,x=/#\((.+?)\)/g,B=CKEDITOR.dom.walker.bookmark(0,1),A=CKEDITOR.dom.walker.whitespaces(1); -CKEDITOR.style=function(a,c){if(typeof a.type=="string")return new CKEDITOR.style.customHandlers[a.type](a);var b=a.attributes;if(b&&b.style){a.styles=CKEDITOR.tools.extend({},a.styles,CKEDITOR.tools.parseCssText(b.style));delete b.style}if(c){a=CKEDITOR.tools.clone(a);u(a.attributes,c);u(a.styles,c)}b=this.element=a.element?typeof a.element=="string"?a.element.toLowerCase():a.element:"*";this.type=a.type||(t[b]?CKEDITOR.STYLE_BLOCK:s[b]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE);if(typeof this.element== -"object")this.type=CKEDITOR.STYLE_OBJECT;this._={definition:a}};CKEDITOR.style.prototype={apply:function(a){if(a instanceof CKEDITOR.dom.document)return w.call(this,a.getSelection());if(this.checkApplicable(a.elementPath(),a)){var c=this._.enterMode;if(!c)this._.enterMode=a.activeEnterMode;w.call(this,a.getSelection(),0,a);this._.enterMode=c}},remove:function(a){if(a instanceof CKEDITOR.dom.document)return w.call(this,a.getSelection(),1);if(this.checkApplicable(a.elementPath(),a)){var c=this._.enterMode; -if(!c)this._.enterMode=a.activeEnterMode;w.call(this,a.getSelection(),1,a);this._.enterMode=c}},applyToRange:function(a){this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?f:this.type==CKEDITOR.STYLE_BLOCK?j:this.type==CKEDITOR.STYLE_OBJECT?h:null;return this.applyToRange(a)},removeFromRange:function(a){this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?b:this.type==CKEDITOR.STYLE_BLOCK?i:this.type==CKEDITOR.STYLE_OBJECT?k:null;return this.removeFromRange(a)},applyToObject:function(a){r(a,this)}, -checkActive:function(a,c){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(a.block||a.blockLimit,true,c);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var b=a.elements,g=0,e;g<b.length;g++){e=b[g];if(!(this.type==CKEDITOR.STYLE_INLINE&&(e==a.block||e==a.blockLimit))){if(this.type==CKEDITOR.STYLE_OBJECT){var d=e.getName();if(!(typeof this.element=="string"?d==this.element:d in this.element))continue}if(this.checkElementRemovable(e,true,c))return true}}}return false}, -checkApplicable:function(a,c,b){c&&c instanceof CKEDITOR.filter&&(b=c);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,c){var b=this._.definition;if(!a||!b.ignoreReadonly&&a.isReadOnly())return false;var g=a.getName();if(typeof this.element=="string"?g==this.element:g in this.element){if(!c&&!a.hasAttributes())return true;if(g= -b._AC)b=g;else{var g={},e=0,d=b.attributes;if(d)for(var h in d){e++;g[h]=d[h]}if(h=CKEDITOR.style.getStyleText(b)){g.style||e++;g.style=h}g._length=e;b=b._AC=g}if(b._length){for(var f in b)if(f!="_length"){e=a.getAttribute(f)||"";if(f=="style")a:{g=b[f];typeof g=="string"&&(g=CKEDITOR.tools.parseCssText(g));typeof e=="string"&&(e=CKEDITOR.tools.parseCssText(e,true));h=void 0;for(h in g)if(!(h in e&&(e[h]==g[h]||g[h]=="inherit"||e[h]=="inherit"))){g=false;break a}g=true}else g=b[f]==e;if(g){if(!c)return true}else if(c)return false}if(c)return true}else return true}return false}, -checkElementRemovable:function(a,c,b){if(this.checkElementMatch(a,c,b))return true;if(c=y(this)[a.getName()]){var g;if(!(c=c.attributes))return true;for(b=0;b<c.length;b++){g=c[b][0];if(g=a.getAttribute(g)){var e=c[b][1];if(e===null)return true;if(typeof e=="string"){if(g==e)return true}else if(e.test(g))return true}}}return false},buildPreview:function(a){var c=this._.definition,b=[],g=c.element;g=="bdo"&&(g="span");var b=["<",g],e=c.attributes;if(e)for(var d in e)b.push(" ",d,'="',e[d],'"');(e= -CKEDITOR.style.getStyleText(c))&&b.push(' style="',e,'"');b.push(">",a||c.name,"</",g,">");return b.join("")},getDefinition:function(){return this._.definition}};CKEDITOR.style.getStyleText=function(a){var c=a._ST;if(c)return c;var c=a.styles,b=a.attributes&&a.attributes.style||"",g="";b.length&&(b=b.replace(z,";"));for(var e in c){var d=c[e],h=(e+":"+d).replace(z,";");d=="inherit"?g=g+h:b=b+h}b.length&&(b=CKEDITOR.tools.normalizeCssText(b,true));return a._ST=b+g};CKEDITOR.style.customHandlers={}; -CKEDITOR.style.addCustomHandler=function(a){var c=function(a){this._={definition:a};this.setup&&this.setup(a)};c.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},a,true);return this.customHandlers[a.type]=c};var D=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,C=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(a,f){this.requiredContent= -this.allowedContent=this.style=a;CKEDITOR.tools.extend(this,f,true)},CKEDITOR.styleCommand.prototype.exec=function(a){a.focus();this.state==CKEDITOR.TRISTATE_OFF?a.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&a.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(a,f,b){CKEDITOR.stylesSet.addExternal(a,f,"");CKEDITOR.stylesSet.load(a, -b)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(a,f){var b=this._.styleStateChangeCallbacks;if(!b){b=this._.styleStateChangeCallbacks=[];this.on("selectionChange",function(a){for(var h=0;h<b.length;h++){var f=b[h],j=f.style.checkActive(a.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;f.fn.call(this,j)}})}b.push({style:a,fn:f})},applyStyle:function(a){a.apply(this)},removeStyle:function(a){a.remove(this)},getStylesSet:function(a){if(this._.stylesDefinitions)a(this._.stylesDefinitions); -else{var f=this,b=f.config.stylesCombo_stylesSet||f.config.stylesSet;if(b===false)a(null);else if(b instanceof Array){f._.stylesDefinitions=b;a(b)}else{b||(b="default");var b=b.split(":"),d=b[0];CKEDITOR.stylesSet.addExternal(d,b[1]?b.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(d,function(b){f._.stylesDefinitions=b[d];a(f._.stylesDefinitions)})}}}}),CKEDITOR.dom.comment=function(a,f){typeof a=="string"&&(a=(f?f.$:document).createComment(a));CKEDITOR.dom.domObject.call(this, -a)},CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"<\!--"+this.$.nodeValue+"--\>"}}),"use strict",function(){var a={},f={},b;for(b in CKEDITOR.dtd.$blockLimit)b in CKEDITOR.dtd.$list||(a[b]=1);for(b in CKEDITOR.dtd.$block)b in CKEDITOR.dtd.$blockLimit||b in CKEDITOR.dtd.$empty||(f[b]=1);CKEDITOR.dom.elementPath=function(b,h){var k=null,j=null,i=[],e=b,c,h=h||b.getDocument().getBody(); -do if(e.type==CKEDITOR.NODE_ELEMENT){i.push(e);if(!this.lastElement){this.lastElement=e;if(e.is(CKEDITOR.dtd.$object)||e.getAttribute("contenteditable")=="false")continue}if(e.equals(h))break;if(!j){c=e.getName();e.getAttribute("contenteditable")=="true"?j=e:!k&&f[c]&&(k=e);if(a[c]){var g;if(g=!k){if(c=c=="div"){a:{c=e.getChildren();g=0;for(var l=c.count();g<l;g++){var q=c.getItem(g);if(q.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[q.getName()]){c=true;break a}}c=false}c=!c}g=c}g?k=e:j=e}}}while(e= -e.getParent());j||(j=h);this.block=k;this.blockLimit=j;this.root=h;this.elements=i}}(),CKEDITOR.dom.elementPath.prototype={compare:function(a){var f=this.elements,a=a&&a.elements;if(!a||f.length!=a.length)return false;for(var b=0;b<f.length;b++)if(!f[b].equals(a[b]))return false;return true},contains:function(a,f,b){var d;typeof a=="string"&&(d=function(b){return b.getName()==a});a instanceof CKEDITOR.dom.element?d=function(b){return b.equals(a)}:CKEDITOR.tools.isArray(a)?d=function(b){return CKEDITOR.tools.indexOf(a, -b.getName())>-1}:typeof a=="function"?d=a:typeof a=="object"&&(d=function(b){return b.getName()in a});var h=this.elements,k=h.length;f&&k--;if(b){h=Array.prototype.slice.call(h,0);h.reverse()}for(f=0;f<k;f++)if(d(h[f]))return h[f];return null},isContextFor:function(a){var f;if(a in CKEDITOR.dtd.$block){f=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit;return!!f.getDtd()[a]}return true},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}}, -CKEDITOR.dom.text=function(a,f){typeof a=="string"&&(a=(f?f.$:document).createTextNode(a));this.$=a},CKEDITOR.dom.text.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(a){this.$.nodeValue=a},split:function(a){var f=this.$.parentNode,b=f.childNodes.length,d=this.getLength(),h=this.getDocument(),k=new CKEDITOR.dom.text(this.$.splitText(a), -h);if(f.childNodes.length==b)if(a>=d){k=h.createText("");k.insertAfter(this)}else{a=h.createText("");a.insertAfter(k);a.remove()}return k},substring:function(a,f){return typeof f!="number"?this.$.nodeValue.substr(a):this.$.nodeValue.substring(a,f)}}),function(){function a(a,d,h){var f=a.serializable,j=d[h?"endContainer":"startContainer"],i=h?"endOffset":"startOffset",e=f?d.document.getById(a.startNode):a.startNode,a=f?d.document.getById(a.endNode):a.endNode;if(j.equals(e.getPrevious())){d.startOffset= -d.startOffset-j.getLength()-a.getPrevious().getLength();j=a.getNext()}else if(j.equals(a.getPrevious())){d.startOffset=d.startOffset-j.getLength();j=a.getNext()}j.equals(e.getParent())&&d[i]++;j.equals(a.getParent())&&d[i]++;d[h?"endContainer":"startContainer"]=j;return d}CKEDITOR.dom.rangeList=function(a){if(a instanceof CKEDITOR.dom.rangeList)return a;a?a instanceof CKEDITOR.dom.range&&(a=[a]):a=[];return CKEDITOR.tools.extend(a,f)};var f={createIterator:function(){var a=this,d=CKEDITOR.dom.walker.bookmark(), -h=[],f;return{getNextRange:function(j){f=f===void 0?0:f+1;var i=a[f];if(i&&a.length>1){if(!f)for(var e=a.length-1;e>=0;e--)h.unshift(a[e].createBookmark(true));if(j)for(var c=0;a[f+c+1];){for(var g=i.document,j=0,e=g.getById(h[c].endNode),g=g.getById(h[c+1].startNode);;){e=e.getNextSourceNode(false);if(g.equals(e))j=1;else if(d(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary())continue;break}if(!j)break;c++}for(i.moveToBookmark(h.shift());c--;){e=a[++f];e.moveToBookmark(h.shift());i.setEnd(e.endContainer, -e.endOffset)}}return i}}},createBookmarks:function(b){for(var d=[],h,f=0;f<this.length;f++){d.push(h=this[f].createBookmark(b,true));for(var j=f+1;j<this.length;j++){this[j]=a(h,this[j]);this[j]=a(h,this[j],true)}}return d},createBookmarks2:function(a){for(var d=[],h=0;h<this.length;h++)d.push(this[h].createBookmark2(a));return d},moveToBookmarks:function(a){for(var d=0;d<this.length;d++)this[d].moveToBookmark(a[d])}}}(),function(){function a(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]|| -"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function f(c){var b=CKEDITOR.skin["ua_"+c],e=CKEDITOR.env;if(b)for(var b=b.split(",").sort(function(a,c){return a>c?-1:1}),d=0,h;d<b.length;d++){h=b[d];if(e.ie&&(h.replace(/^ie/,"")==e.version||e.quirks&&h=="iequirks"))h="ie";if(e[h]){c=c+("_"+b[d]);break}}return CKEDITOR.getUrl(a()+c+".css")}function b(a,b){if(!k[a]){CKEDITOR.document.appendStyleSheet(f(a));k[a]=1}b&&b()}function d(a){var b=a.getById(j);if(!b){b=a.getHead().append("style");b.setAttribute("id", -j);b.setAttribute("type","text/css")}return b}function h(a,b,e){var d,h,f;if(CKEDITOR.env.webkit){b=b.split("}").slice(0,-1);for(h=0;h<b.length;h++)b[h]=b[h].split("{")}for(var i=0;i<a.length;i++)if(CKEDITOR.env.webkit)for(h=0;h<b.length;h++){f=b[h][1];for(d=0;d<e.length;d++)f=f.replace(e[d][0],e[d][1]);a[i].$.sheet.addRule(b[h][0],f)}else{f=b;for(d=0;d<e.length;d++)f=f.replace(e[d][0],e[d][1]);CKEDITOR.env.ie&&CKEDITOR.env.version<11?a[i].$.styleSheet.cssText=a[i].$.styleSheet.cssText+f:a[i].$.innerHTML= -a[i].$.innerHTML+f}}var k={};CKEDITOR.skin={path:a,loadPart:function(c,g){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(a()+"skin.js"),function(){b(c,g)}):b(c,g)},getPath:function(a){return CKEDITOR.getUrl(f(a))},icons:{},addIcon:function(a,b,e,d){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:b,offset:e||0,bgsize:d||"16px"})},getIconStyle:function(a,b,e,d,h){var f;if(a){a=a.toLowerCase();b&&(f=this.icons[a+"-rtl"]);f||(f=this.icons[a])}a=e|| -f&&f.path||"";d=d||f&&f.offset;h=h||f&&f.bgsize||"16px";return a&&"background-image:url("+CKEDITOR.getUrl(a)+");background-position:0 "+d+"px;background-size:"+h+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(a){var b=d(CKEDITOR.document);return(this.setUiColor=function(a){this.uiColor=a;var c=CKEDITOR.skin.chameleon,d="",f="";if(typeof c=="function"){d=c(this,"editor");f=c(this,"panel")}a=[[e,a]];h([b],d,a);h(i,f,a)}).call(this, -a)}});var j="cke_ui_color",i=[],e=/\$color/g;CKEDITOR.on("instanceLoaded",function(a){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var b=a.editor,a=function(a){a=(a.data[0]||a.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument();if(!a.getById("cke_ui_color")){a=d(a);i.push(a);var c=b.getUiColor();c&&h([a],CKEDITOR.skin.chameleon(b,"panel"),[[e,c]])}};b.on("panelShow",a);b.on("menuShow",a);b.config.uiColor&&b.setUiColor(b.config.uiColor)}})}(),function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc= -false;else{var a=CKEDITOR.dom.element.createFromHtml('<div style="width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"></div>',CKEDITOR.document);a.appendTo(CKEDITOR.document.getHead());try{var f=a.getComputedStyle("border-top-color"),b=a.getComputedStyle("border-right-color");CKEDITOR.env.hc=!!(f&&f==b)}catch(d){CKEDITOR.env.hc=false}a.remove()}if(CKEDITOR.env.hc)CKEDITOR.env.cssClass=CKEDITOR.env.cssClass+" cke_hc";CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}"); -CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(a=CKEDITOR._.pending){delete CKEDITOR._.pending;for(f=0;f<a.length;f++){CKEDITOR.editor.prototype.constructor.apply(a[f][0],a[f][1]);CKEDITOR.add(a[f][0])}}}(),CKEDITOR.skin.name="moono",CKEDITOR.skin.ua_editor="ie,iequirks,ie7,ie8,gecko",CKEDITOR.skin.ua_dialog="ie,iequirks,ie7,ie8",CKEDITOR.skin.chameleon=function(){var a=function(){return function(a,b){for(var f=a.match(/[^#]./g),j=0;j<3;j++){var i=f,e=j,c;c=parseInt(f[j],16);c=("0"+(b<0? -0|c*(1+b):0|c+(255-c)*b).toString(16)).slice(-2);i[e]=c}return"#"+f.join("")}}(),f=function(){var a=new CKEDITOR.template("background:#{to};background-image:linear-gradient(to bottom,{from},{to});filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='{from}',endColorstr='{to}');");return function(b,f){return a.output({from:b,to:f})}}(),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};] "), +(function(){window.CKEDITOR&&window.CKEDITOR.dom||(window.CKEDITOR||(window.CKEDITOR=function(){var a=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,e={timestamp:"FA3A",version:"4.5.4",revision:"d4677a3",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:a},status:"unloaded",basePath:function(){var f=window.CKEDITOR_BASEPATH||"";if(!f)for(var g=document.getElementsByTagName("script"),c=0;c<g.length;c++){var k=g[c].src.match(a);if(k){f=k[1];break}}-1==f.indexOf(":/")&&"//"!=f.slice(0, +2)&&(f=0===f.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+f:location.href.match(/^[^\?]*\/(?:)/)[0]+f);if(!f)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return f}(),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("?")?"\x26":"?")+"t\x3d"+this.timestamp);return a}, +domReady:function(){function a(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",a,!1),g()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),g())}catch(k){}}function g(){for(var a;a=c.shift();)a()}var c=[];return function(k){function b(){try{document.documentElement.doScroll("left")}catch(h){setTimeout(b,1);return}a()}c.push(k);"complete"===document.readyState&&setTimeout(a,1);if(1==c.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded", +a,!1),window.addEventListener("load",a,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",a);window.attachEvent("onload",a);k=!1;try{k=!window.frameElement}catch(d){}document.documentElement.doScroll&&k&&b()}}}()},c=window.CKEDITOR_GETURL;if(c){var g=e.getUrl;e.getUrl=function(a){return c.call(e,a)||g.call(e,a)}}return e}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(a){var e=CKEDITOR.event.prototype,c;for(c in e)null==a[c]&&(a[c]=e[c])}, +CKEDITOR.event.prototype=function(){function a(a){var f=e(this);return f[a]||(f[a]=new c(a))}var e=function(a){a=a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={})},c=function(a){this.name=a;this.listeners=[]};c.prototype={getListenerIndex:function(a){for(var c=0,e=this.listeners;c<e.length;c++)if(e[c].fn==a)return c;return-1}};return{define:function(c,f){var e=a.call(this,c);CKEDITOR.tools.extend(e,f,!0)},on:function(c,f,e,l,k){function b(h,b,a,k){h={name:c,sender:this,editor:h, +data:b,listenerData:l,stop:a,cancel:k,removeListener:d};return!1===f.call(e,h)?!1:h.data}function d(){p.removeListener(c,f)}var h=a.call(this,c);if(0>h.getListenerIndex(f)){h=h.listeners;e||(e=this);isNaN(k)&&(k=10);var p=this;b.fn=f;b.priority=k;for(var v=h.length-1;0<=v;v--)if(h[v].priority<=k)return h.splice(v+1,0,b),{removeListener:d};h.unshift(b)}return{removeListener:d}},once:function(){var a=Array.prototype.slice.call(arguments),c=a[1];a[1]=function(a){a.removeListener();return c.apply(this, +arguments)};return this.on.apply(this,a)},capture:function(){CKEDITOR.event.useCapture=1;var a=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return a},fire:function(){var a=0,c=function(){a=1},m=0,l=function(){m=1};return function(k,b,d){var h=e(this)[k];k=a;var p=m;a=m=0;if(h){var v=h.listeners;if(v.length)for(var v=v.slice(0),u,t=0;t<v.length;t++){if(h.errorProof)try{u=v[t].call(this,d,b,c,l)}catch(n){}else u=v[t].call(this,d,b,c,l);!1===u?m=1:"undefined"!=typeof u&&(b=u);if(a||m)break}}b= +m?!1:"undefined"==typeof b?!0:b;a=k;m=p;return b}}(),fireOnce:function(a,c,m){c=this.fire(a,c,m);delete e(this)[a];return c},removeListener:function(a,c){var m=e(this)[a];if(m){var l=m.getListenerIndex(c);0<=l&&m.listeners.splice(l,1)}},removeAllListeners:function(){var a=e(this),c;for(c in a)delete a[c]},hasListeners:function(a){return(a=e(this)[a])&&0<a.listeners.length}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire= +function(a,e){a in{instanceReady:1,loaded:1}&&(this[a]=!0);return CKEDITOR.event.prototype.fire.call(this,a,e,this)},CKEDITOR.editor.prototype.fireOnce=function(a,e){a in{instanceReady:1,loaded:1}&&(this[a]=!0);return CKEDITOR.event.prototype.fireOnce.call(this,a,e,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var a=navigator.userAgent.toLowerCase(),e=a.match(/edge[ \/](\d+.?\d*)/),c=-1<a.indexOf("trident/"),c=!(!e&&!c),c={ie:c,edge:!!e,webkit:!c&& +-1<a.indexOf(" applewebkit/"),air:-1<a.indexOf(" adobeair/"),mac:-1<a.indexOf("macintosh"),quirks:"BackCompat"==document.compatMode&&(!document.documentMode||10>document.documentMode),mobile:-1<a.indexOf("mobile"),iOS:/(ipad|iphone|ipod)/.test(a),isCustomDomain:function(){if(!this.ie)return!1;var a=document.domain,c=window.location.hostname;return a!=c&&a!="["+c+"]"},secure:"https:"==location.protocol};c.gecko="Gecko"==navigator.product&&!c.webkit&&!c.ie;c.webkit&&(-1<a.indexOf("chrome")?c.chrome= +!0:c.safari=!0);var g=0;c.ie&&(g=e?parseFloat(e[1]):c.quirks||!document.documentMode?parseFloat(a.match(/msie (\d+)/)[1]):document.documentMode,c.ie9Compat=9==g,c.ie8Compat=8==g,c.ie7Compat=7==g,c.ie6Compat=7>g||c.quirks);c.gecko&&(e=a.match(/rv:([\d\.]+)/))&&(e=e[1].split("."),g=1E4*e[0]+100*(e[1]||0)+1*(e[2]||0));c.air&&(g=parseFloat(a.match(/ adobeair\/(\d+)/)[1]));c.webkit&&(g=parseFloat(a.match(/ applewebkit\/(\d+)/)[1]));c.version=g;c.isCompatible=!(c.ie&&7>g)&&!(c.gecko&&4E4>g)&&!(c.webkit&& +534>g);c.hidpi=2<=window.devicePixelRatio;c.needsBrFiller=c.gecko||c.webkit||c.ie&&10<g;c.needsNbspFiller=c.ie&&11>g;c.cssClass="cke_browser_"+(c.ie?"ie":c.gecko?"gecko":c.webkit?"webkit":"unknown");c.quirks&&(c.cssClass+=" cke_browser_quirks");c.ie&&(c.cssClass+=" cke_browser_ie"+(c.quirks?"6 cke_browser_iequirks":c.version));c.air&&(c.cssClass+=" cke_browser_air");c.iOS&&(c.cssClass+=" cke_browser_ios");c.hidpi&&(c.cssClass+=" cke_hidpi");return c}()),"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR); +CKEDITOR.loadFullCore=function(){if("basic_ready"!=CKEDITOR.status)CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var a=document.createElement("script");a.type="text/javascript";a.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(a)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(a){(this._.pending||(this._.pending=[])).push(a)};(function(){CKEDITOR.domReady(function(){var a=CKEDITOR.loadFullCore,e=CKEDITOR.loadFullCoreTimeout;a&&(CKEDITOR.status= +"basic_ready",a&&a._load?a():e&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},1E3*e))})})();CKEDITOR.status="basic_loaded"}(),"use strict",CKEDITOR.VERBOSITY_WARN=1,CKEDITOR.VERBOSITY_ERROR=2,CKEDITOR.verbosity=CKEDITOR.VERBOSITY_WARN|CKEDITOR.VERBOSITY_ERROR,CKEDITOR.warn=function(a,e){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:a,additionalData:e})},CKEDITOR.error=function(a,e){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log", +{type:"error",errorCode:a,additionalData:e})},CKEDITOR.on("log",function(a){if(window.console&&window.console.log){var e=console[a.data.type]?a.data.type:"log",c=a.data.errorCode;if(a=a.data.additionalData)console[e]("[CKEDITOR] "+c,a);else console[e]("[CKEDITOR] "+c);console[e]("[CKEDITOR] For more information go to http://docs.ckeditor.com/#!/guide/dev_errors-section-"+c)}},null,null,999),CKEDITOR.dom={},function(){var a=[],e=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie? +"-ms-":"",c=/&/g,g=/>/g,f=/</g,m=/"/g,l=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,k={lt:"\x3c",gt:"\x3e",amp:"\x26",quot:'"',nbsp:" ",shy:"Â"},b=function(d,h){return"#"==h[0]?String.fromCharCode(parseInt(h.slice(1),10)):k[h]};CKEDITOR.on("reset",function(){a=[]});CKEDITOR.tools={arrayCompare:function(d,h){if(!d&&!h)return!0;if(!d||!h||d.length!=h.length)return!1;for(var b=0;b<d.length;b++)if(d[b]!=h[b])return!1;return!0},getIndex:function(d,h){for(var b=0;b<d.length;++b)if(h(d[b]))return b;return-1}, +clone:function(d){var h;if(d&&d instanceof Array){h=[];for(var b=0;b<d.length;b++)h[b]=CKEDITOR.tools.clone(d[b]);return h}if(null===d||"object"!=typeof d||d instanceof String||d instanceof Number||d instanceof Boolean||d instanceof Date||d instanceof RegExp||d.nodeType||d.window===d)return d;h=new d.constructor;for(b in d)h[b]=CKEDITOR.tools.clone(d[b]);return h},capitalize:function(d,h){return d.charAt(0).toUpperCase()+(h?d.slice(1):d.slice(1).toLowerCase())},extend:function(d){var h=arguments.length, +b,a;"boolean"==typeof(b=arguments[h-1])?h--:"boolean"==typeof(b=arguments[h-2])&&(a=arguments[h-1],h-=2);for(var k=1;k<h;k++){var c=arguments[k],n;for(n in c)if(!0===b||null==d[n])if(!a||n in a)d[n]=c[n]}return d},prototypedCopy:function(d){var h=function(){};h.prototype=d;return new h},copy:function(d){var h={},b;for(b in d)h[b]=d[b];return h},isArray:function(d){return"[object Array]"==Object.prototype.toString.call(d)},isEmpty:function(d){for(var h in d)if(d.hasOwnProperty(h))return!1;return!0}, +cssVendorPrefix:function(d,h,b){if(b)return e+d+":"+h+";"+d+":"+h;b={};b[d]=h;b[e+d]=h;return b},cssStyleToDomStyle:function(){var d=document.createElement("div").style,h="undefined"!=typeof d.cssFloat?"cssFloat":"undefined"!=typeof d.styleFloat?"styleFloat":"float";return function(d){return"float"==d?h:d.replace(/-./g,function(h){return h.substr(1).toUpperCase()})}}(),buildStyleHtml:function(d){d=[].concat(d);for(var h,b=[],a=0;a<d.length;a++)if(h=d[a])/@import|[{}]/.test(h)?b.push("\x3cstyle\x3e"+ +h+"\x3c/style\x3e"):b.push('\x3clink type\x3d"text/css" rel\x3dstylesheet href\x3d"'+h+'"\x3e');return b.join("")},htmlEncode:function(d){return void 0===d||null===d?"":String(d).replace(c,"\x26amp;").replace(g,"\x26gt;").replace(f,"\x26lt;")},htmlDecode:function(d){return d.replace(l,b)},htmlEncodeAttr:function(d){return CKEDITOR.tools.htmlEncode(d).replace(m,"\x26quot;")},htmlDecodeAttr:function(d){return CKEDITOR.tools.htmlDecode(d)},transformPlainTextToHtml:function(d,h){var b=h==CKEDITOR.ENTER_BR, +a=this.htmlEncode(d.replace(/\r\n/g,"\n")),a=a.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;"),k=h==CKEDITOR.ENTER_P?"p":"div";if(!b){var c=/\n{2}/g;if(c.test(a))var n="\x3c"+k+"\x3e",f="\x3c/"+k+"\x3e",a=n+a.replace(c,function(){return f+n})+f}a=a.replace(/\n/g,"\x3cbr\x3e");b||(a=a.replace(new RegExp("\x3cbr\x3e(?\x3d\x3c/"+k+"\x3e)"),function(h){return CKEDITOR.tools.repeat(h,2)}));a=a.replace(/^ | $/g,"\x26nbsp;");return a=a.replace(/(>|\s) /g,function(h,d){return d+"\x26nbsp;"}).replace(/ (?=<)/g, +"\x26nbsp;")},getNextNumber:function(){var d=0;return function(){return++d}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var d="e",h=0;8>h;h++)d+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return d},override:function(d,h){var b=h(d);b.prototype=d.prototype;return b},setTimeout:function(d,h,b,a,k){k||(k=window);b||(b=k);return k.setTimeout(function(){a?d.apply(b,[].concat(a)):d.apply(b)},h||0)},trim:function(){var d=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g; +return function(h){return h.replace(d,"")}}(),ltrim:function(){var d=/^[ \t\n\r]+/g;return function(h){return h.replace(d,"")}}(),rtrim:function(){var d=/[ \t\n\r]+$/g;return function(h){return h.replace(d,"")}}(),indexOf:function(d,h){if("function"==typeof h)for(var b=0,a=d.length;b<a;b++){if(h(d[b]))return b}else{if(d.indexOf)return d.indexOf(h);b=0;for(a=d.length;b<a;b++)if(d[b]===h)return b}return-1},search:function(d,h){var b=CKEDITOR.tools.indexOf(d,h);return 0<=b?d[b]:null},bind:function(d, +h){return function(){return d.apply(h,arguments)}},createClass:function(d){var h=d.$,b=d.base,a=d.privates||d._,k=d.proto;d=d.statics;!h&&(h=function(){b&&this.base.apply(this,arguments)});if(a)var c=h,h=function(){var h=this._||(this._={}),d;for(d in a){var b=a[d];h[d]="function"==typeof b?CKEDITOR.tools.bind(b,this):b}c.apply(this,arguments)};b&&(h.prototype=this.prototypedCopy(b.prototype),h.prototype.constructor=h,h.base=b,h.baseProto=b.prototype,h.prototype.base=function(){this.base=b.prototype.base; +b.apply(this,arguments);this.base=arguments.callee});k&&this.extend(h.prototype,k,!0);d&&this.extend(h,d,!0);return h},addFunction:function(d,h){return a.push(function(){return d.apply(h||this,arguments)})-1},removeFunction:function(d){a[d]=null},callFunction:function(d){var h=a[d];return h&&h.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var d=/^-?\d+\.?\d*px$/,h;return function(b){h=CKEDITOR.tools.trim(b+"")+"px";return d.test(h)?h:b||""}}(),convertToPx:function(){var d; +return function(h){d||(d=CKEDITOR.dom.element.createFromHtml('\x3cdiv style\x3d"position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"\x3e\x3c/div\x3e',CKEDITOR.document),CKEDITOR.document.getBody().append(d));return/%$/.test(h)?h:(d.setStyle("width",h),d.$.clientWidth)}}(),repeat:function(d,h){return Array(h+1).join(d)},tryThese:function(){for(var d,h=0,b=arguments.length;h<b;h++){var a=arguments[h];try{d=a();break}catch(k){}}return d},genKey:function(){return Array.prototype.slice.call(arguments).join("-")}, +defer:function(d){return function(){var h=arguments,b=this;window.setTimeout(function(){d.apply(b,h)},0)}},normalizeCssText:function(b,h){var a=[],k,c=CKEDITOR.tools.parseCssText(b,!0,h);for(k in c)a.push(k+":"+c[k]);a.sort();return a.length?a.join(";")+";":""},convertRgbToHex:function(b){return b.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(h,b,d,a){h=[b,d,a];for(b=0;3>b;b++)h[b]=("0"+parseInt(h[b],10).toString(16)).slice(-2);return"#"+h.join("")})},parseCssText:function(b, +h,a){var k={};a&&(a=new CKEDITOR.dom.element("span"),a.setAttribute("style",b),b=CKEDITOR.tools.convertRgbToHex(a.getAttribute("style")||""));if(!b||";"==b)return k;b.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(b,d,a){h&&(d=d.toLowerCase(),"font-family"==d&&(a=a.toLowerCase().replace(/["']/g,"").replace(/\s*,\s*/g,",")),a=CKEDITOR.tools.trim(a));k[d]=a});return k},writeCssText:function(b,h){var a,k=[];for(a in b)k.push(a+":"+b[a]);h&&k.sort();return k.join("; ")}, +objectCompare:function(b,h,a){var k;if(!b&&!h)return!0;if(!b||!h)return!1;for(k in b)if(b[k]!=h[k])return!1;if(!a)for(k in h)if(b[k]!=h[k])return!1;return!0},objectKeys:function(b){var h=[],a;for(a in b)h.push(a);return h},convertArrayToObject:function(b,h){var a={};1==arguments.length&&(h=!0);for(var k=0,c=b.length;k<c;++k)a[b[k]]=h;return a},fixDomain:function(){for(var b;;)try{b=window.parent.document.domain;break}catch(h){b=b?b.replace(/.+?(?:\.|$)/,""):document.domain;if(!b)break;document.domain= +b}return!!b},eventsBuffer:function(b,h,a){function k(){f=(new Date).getTime();c=!1;a?h.call(a):h()}var c,f=0;return{input:function(){if(!c){var h=(new Date).getTime()-f;h<b?c=setTimeout(k,b-h):k()}},reset:function(){c&&clearTimeout(c);c=f=0}}},enableHtml5Elements:function(b,h){for(var a="abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video".split(" "),k=a.length,c;k--;)c=b.createElement(a[k]), +h&&b.appendChild(c)},checkIfAnyArrayItemMatches:function(b,h){for(var a=0,k=b.length;a<k;++a)if(b[a].match(h))return!0;return!1},checkIfAnyObjectPropertyMatches:function(b,h){for(var a in b)if(a.match(h))return!0;return!1},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw\x3d\x3d"}}(),CKEDITOR.dtd=function(){var a=CKEDITOR.tools.extend,e=function(b,h){for(var a=CKEDITOR.tools.clone(b),k=1;k<arguments.length;k++){h=arguments[k];for(var c in h)delete a[c]}return a}, +c={},g={},f={address:1,article:1,aside:1,blockquote:1,details:1,div:1,dl:1,fieldset:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,main:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},m={command:1,link:1,meta:1,noscript:1,script:1,style:1},l={},k={"#":1},b={center:1,dir:1,noframes:1};a(c,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1, +label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},k,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});a(g,f,c,b);e={a:e(c,{a:1,button:1}),abbr:c,address:g,area:l,article:g,aside:g,audio:a({source:1,track:1},g),b:c,base:l,bdi:c,bdo:c,blockquote:g,body:g,br:l,button:e(c,{a:1,button:1}),canvas:c,caption:g,cite:c,code:c,col:l,colgroup:{col:1}, +command:l,datalist:a({option:1},c),dd:g,del:c,details:a({summary:1},g),dfn:c,div:g,dl:{dt:1,dd:1},dt:g,em:c,embed:l,fieldset:a({legend:1},g),figcaption:g,figure:a({figcaption:1},g),footer:g,form:g,h1:c,h2:c,h3:c,h4:c,h5:c,h6:c,head:a({title:1,base:1},m),header:g,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:l,html:a({head:1,body:1},g,m),i:c,iframe:k,img:l,input:l,ins:c,kbd:c,keygen:l,label:c,legend:c,li:g,link:l,main:g,map:g,mark:c,menu:a({li:1},g),meta:l,meter:e(c,{meter:1}),nav:g,noscript:a({link:1, +meta:1,style:1},c),object:a({param:1},c),ol:{li:1},optgroup:{option:1},option:k,output:c,p:c,param:l,pre:c,progress:e(c,{progress:1}),q:c,rp:c,rt:c,ruby:a({rp:1,rt:1},c),s:c,samp:c,script:k,section:g,select:{optgroup:1,option:1},small:c,source:l,span:c,strong:c,style:k,sub:c,summary:a({h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},c),sup:c,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:g,textarea:k,tfoot:{tr:1},th:g,thead:{tr:1},time:e(c,{time:1}),title:k,tr:{th:1,td:1},track:l,u:c,ul:{li:1}, +"var":c,video:a({source:1,track:1},g),wbr:l,acronym:c,applet:a({param:1},g),basefont:l,big:c,center:g,dialog:l,dir:{li:1},font:c,isindex:l,noframes:g,strike:c,tt:c};a(e,{$block:a({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},f,b),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1, +aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,main:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1},$inline:c,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:a({body:1,head:1,html:1},e.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1, +option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,time:1,tt:1,u:1,"var":1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1, +td:1,tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1,ins:1,map:1,noscript:1,object:1,video:1},$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}});return e}(),CKEDITOR.dom.event=function(a){this.$=a},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var a=this.getKey();if(this.$.ctrlKey||this.$.metaKey)a+=CKEDITOR.CTRL; +this.$.shiftKey&&(a+=CKEDITOR.SHIFT);this.$.altKey&&(a+=CKEDITOR.ALT);return a},preventDefault:function(a){var e=this.$;e.preventDefault?e.preventDefault():e.returnValue=!1;a&&this.stopPropagation()},stopPropagation:function(){var a=this.$;a.stopPropagation?a.stopPropagation():a.cancelBubble=!0},getTarget:function(){var a=this.$.target||this.$.srcElement;return a?new CKEDITOR.dom.node(a):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var a=this.getTarget().getDocument().$; +return{x:this.$.pageX||this.$.clientX+(a.documentElement.scrollLeft||a.body.scrollLeft),y:this.$.pageY||this.$.clientY+(a.documentElement.scrollTop||a.body.scrollTop)}}},CKEDITOR.CTRL=1114112,CKEDITOR.SHIFT=2228224,CKEDITOR.ALT=4456448,CKEDITOR.EVENT_PHASE_CAPTURING=1,CKEDITOR.EVENT_PHASE_AT_TARGET=2,CKEDITOR.EVENT_PHASE_BUBBLING=3,CKEDITOR.dom.domObject=function(a){a&&(this.$=a)},CKEDITOR.dom.domObject.prototype=function(){var a=function(a,c){return function(g){"undefined"!=typeof CKEDITOR&&a.fire(c, +new CKEDITOR.dom.event(g))}};return{getPrivate:function(){var a;(a=this.getCustomData("_"))||this.setCustomData("_",a={});return a},on:function(e){var c=this.getCustomData("_cke_nativeListeners");c||(c={},this.setCustomData("_cke_nativeListeners",c));c[e]||(c=c[e]=a(this,e),this.$.addEventListener?this.$.addEventListener(e,c,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+e,c));return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(a){CKEDITOR.event.prototype.removeListener.apply(this, +arguments);if(!this.hasListeners(a)){var c=this.getCustomData("_cke_nativeListeners"),g=c&&c[a];g&&(this.$.removeEventListener?this.$.removeEventListener(a,g,!1):this.$.detachEvent&&this.$.detachEvent("on"+a,g),delete c[a])}},removeAllListeners:function(){var a=this.getCustomData("_cke_nativeListeners"),c;for(c in a){var g=a[c];this.$.detachEvent?this.$.detachEvent("on"+c,g):this.$.removeEventListener&&this.$.removeEventListener(c,g,!1);delete a[c]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}(), +function(a){var e={};CKEDITOR.on("reset",function(){e={}});a.equals=function(a){try{return a&&a.$===this.$}catch(g){return!1}};a.setCustomData=function(a,g){var f=this.getUniqueId();(e[f]||(e[f]={}))[a]=g;return this};a.getCustomData=function(a){var g=this.$["data-cke-expando"];return(g=g&&e[g])&&a in g?g[a]:null};a.removeCustomData=function(a){var g=this.$["data-cke-expando"],g=g&&e[g],f,m;g&&(f=g[a],m=a in g,delete g[a]);return m?f:null};a.clearCustomData=function(){this.removeAllListeners();var a= +this.$["data-cke-expando"];a&&delete e[a]};a.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(a)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(a){return a?new CKEDITOR.dom[a.nodeType==CKEDITOR.NODE_DOCUMENT?"document":a.nodeType==CKEDITOR.NODE_ELEMENT?"element":a.nodeType==CKEDITOR.NODE_TEXT?"text":a.nodeType==CKEDITOR.NODE_COMMENT?"comment":a.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT? +"documentFragment":"domObject"](a):this},CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT=3,CKEDITOR.NODE_COMMENT=8,CKEDITOR.NODE_DOCUMENT_FRAGMENT=11,CKEDITOR.POSITION_IDENTICAL=0,CKEDITOR.POSITION_DISCONNECTED=1,CKEDITOR.POSITION_FOLLOWING=2,CKEDITOR.POSITION_PRECEDING=4,CKEDITOR.POSITION_IS_CONTAINED=8,CKEDITOR.POSITION_CONTAINS=16,CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(a,e){a.append(this,e); +return a},clone:function(a,e){function c(f){f["data-cke-expando"]&&(f["data-cke-expando"]=!1);if(f.nodeType==CKEDITOR.NODE_ELEMENT||f.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)if(e||f.nodeType!=CKEDITOR.NODE_ELEMENT||f.removeAttribute("id",!1),a){f=f.childNodes;for(var g=0;g<f.length;g++)c(f[g])}}function g(c){if(c.type==CKEDITOR.NODE_ELEMENT||c.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT){if(c.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var f=c.getName();":"==f[0]&&c.renameNode(f.substring(1))}if(a)for(f=0;f< +c.getChildCount();f++)g(c.getChild(f))}}var f=this.$.cloneNode(a);c(f);f=new CKEDITOR.dom.node(f);CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&g(f);return f},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(a){a.$.parentNode.insertBefore(this.$,a.$.nextSibling);return a},insertBefore:function(a){a.$.parentNode.insertBefore(this.$,a.$);return a},insertBeforeMe:function(a){this.$.parentNode.insertBefore(a.$, +this.$);return a},getAddress:function(a){for(var e=[],c=this.getDocument().$.documentElement,g=this.$;g&&g!=c;){var f=g.parentNode;f&&e.unshift(this.getIndex.call({$:g},a));g=f}return e},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(a){function e(a,c){var k=c?a.nextSibling:a.previousSibling;return k&&k.nodeType==CKEDITOR.NODE_TEXT?k.nodeValue?k:e(k,c):null}var c=this.$,g=-1,f;if(!this.$.parentNode||a&&c.nodeType== +CKEDITOR.NODE_TEXT&&!c.nodeValue&&!e(c)&&!e(c,!0))return-1;do if(!a||c==this.$||c.nodeType!=CKEDITOR.NODE_TEXT||!f&&c.nodeValue)g++,f=c.nodeType==CKEDITOR.NODE_TEXT;while(c=c.previousSibling);return g},getNextSourceNode:function(a,e,c){if(c&&!c.call){var g=c;c=function(a){return!a.equals(g)}}a=!a&&this.getFirst&&this.getFirst();var f;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&c&&!1===c(this,!0))return null;a=this.getNext()}for(;!a&&(f=(f||this).getParent());){if(c&&!1===c(f,!0))return null;a=f.getNext()}return!a|| +c&&!1===c(a)?null:e&&e!=a.type?a.getNextSourceNode(!1,e,c):a},getPreviousSourceNode:function(a,e,c){if(c&&!c.call){var g=c;c=function(a){return!a.equals(g)}}a=!a&&this.getLast&&this.getLast();var f;if(!a){if(this.type==CKEDITOR.NODE_ELEMENT&&c&&!1===c(this,!0))return null;a=this.getPrevious()}for(;!a&&(f=(f||this).getParent());){if(c&&!1===c(f,!0))return null;a=f.getPrevious()}return!a||c&&!1===c(a)?null:e&&a.type!=e?a.getPreviousSourceNode(!1,e,c):a},getPrevious:function(a){var e=this.$,c;do c=(e= +e.previousSibling)&&10!=e.nodeType&&new CKEDITOR.dom.node(e);while(c&&a&&!a(c));return c},getNext:function(a){var e=this.$,c;do c=(e=e.nextSibling)&&new CKEDITOR.dom.node(e);while(c&&a&&!a(c));return c},getParent:function(a){var e=this.$.parentNode;return e&&(e.nodeType==CKEDITOR.NODE_ELEMENT||a&&e.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(e):null},getParents:function(a){var e=this,c=[];do c[a?"push":"unshift"](e);while(e=e.getParent());return c},getCommonAncestor:function(a){if(a.equals(this))return this; +if(a.contains&&a.contains(this))return a;var e=this.contains?this:this.getParent();do if(e.contains(a))return e;while(e=e.getParent());return null},getPosition:function(a){var e=this.$,c=a.$;if(e.compareDocumentPosition)return e.compareDocumentPosition(c);if(e==c)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&a.type==CKEDITOR.NODE_ELEMENT){if(e.contains){if(e.contains(c))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(c.contains(e))return CKEDITOR.POSITION_IS_CONTAINED+ +CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in e)return 0>e.sourceIndex||0>c.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:e.sourceIndex<c.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}e=this.getAddress();a=a.getAddress();for(var c=Math.min(e.length,a.length),g=0;g<c;g++)if(e[g]!=a[g])return e[g]<a[g]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return e.length<a.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}, +getAscendant:function(a,e){var c=this.$,g,f;e||(c=c.parentNode);"function"==typeof a?(f=!0,g=a):(f=!1,g=function(c){c="string"==typeof c.nodeName?c.nodeName.toLowerCase():"";return"string"==typeof a?c==a:c in a});for(;c;){if(g(f?new CKEDITOR.dom.node(c):c))return new CKEDITOR.dom.node(c);try{c=c.parentNode}catch(m){c=null}}return null},hasAscendant:function(a,e){var c=this.$;e||(c=c.parentNode);for(;c;){if(c.nodeName&&c.nodeName.toLowerCase()==a)return!0;c=c.parentNode}return!1},move:function(a,e){a.append(this.remove(), +e)},remove:function(a){var e=this.$,c=e.parentNode;if(c){if(a)for(;a=e.firstChild;)c.insertBefore(e.removeChild(a),e);c.removeChild(e)}return this},replace:function(a){this.insertBefore(a);a.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var a;this.getFirst&&(a=this.getFirst());){if(a.type==CKEDITOR.NODE_TEXT){var e=CKEDITOR.tools.ltrim(a.getText()),c=a.getLength();if(e)e.length<c&&(a.split(c-e.length),this.$.removeChild(this.$.firstChild));else{a.remove();continue}}break}}, +rtrim:function(){for(var a;this.getLast&&(a=this.getLast());){if(a.type==CKEDITOR.NODE_TEXT){var e=CKEDITOR.tools.rtrim(a.getText()),c=a.getLength();if(e)e.length<c&&(a.split(e.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild));else{a.remove();continue}}break}CKEDITOR.env.needsBrFiller&&(a=this.$.lastChild)&&1==a.type&&"br"==a.nodeName.toLowerCase()&&a.parentNode.removeChild(a)},isReadOnly:function(a){var e=this;this.type!=CKEDITOR.NODE_ELEMENT&&(e=this.getParent());CKEDITOR.env.edge&& +e&&e.is("textarea")&&(a=!0);if(!a&&e&&"undefined"!=typeof e.$.isContentEditable)return!(e.$.isContentEditable||e.data("cke-editable"));for(;e;){if(e.data("cke-editable"))return!1;if(e.hasAttribute("contenteditable"))return"false"==e.getAttribute("contenteditable");e=e.getParent()}return!0}}),CKEDITOR.dom.window=function(a){CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()}, +getViewPaneSize:function(){var a=this.$.document,e="CSS1Compat"==a.compatMode;return{width:(e?a.documentElement.clientWidth:a.body.clientWidth)||0,height:(e?a.documentElement.clientHeight:a.body.clientHeight)||0}},getScrollPosition:function(){var a=this.$;if("pageXOffset"in a)return{x:a.pageXOffset||0,y:a.pageYOffset||0};a=a.document;return{x:a.documentElement.scrollLeft||a.body.scrollLeft||0,y:a.documentElement.scrollTop||a.body.scrollTop||0}},getFrame:function(){var a=this.$.frameElement;return a? +new CKEDITOR.dom.element.get(a):null}}),CKEDITOR.dom.document=function(a){CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(a){if(this.$.createStyleSheet)this.$.createStyleSheet(a);else{var e=new CKEDITOR.dom.element("link");e.setAttributes({rel:"stylesheet",type:"text/css",href:a});this.getHead().append(e)}},appendStyleText:function(a){if(this.$.createStyleSheet){var e= +this.$.createStyleSheet("");e.cssText=a}else{var c=new CKEDITOR.dom.element("style",this);c.append(new CKEDITOR.dom.text(a,this));this.getHead().append(c)}return e||c.$.sheet},createElement:function(a,e){var c=new CKEDITOR.dom.element(a,this);e&&(e.attributes&&c.setAttributes(e.attributes),e.styles&&c.setStyles(e.styles));return c},createText:function(a){return new CKEDITOR.dom.text(a,this)},focus:function(){this.getWindow().focus()},getActive:function(){var a;try{a=this.$.activeElement}catch(e){return null}return new CKEDITOR.dom.element(a)}, +getById:function(a){return(a=this.$.getElementById(a))?new CKEDITOR.dom.element(a):null},getByAddress:function(a,e){for(var c=this.$.documentElement,g=0;c&&g<a.length;g++){var f=a[g];if(e)for(var m=-1,l=0;l<c.childNodes.length;l++){var k=c.childNodes[l];if(!0!==e||3!=k.nodeType||!k.previousSibling||3!=k.previousSibling.nodeType)if(m++,m==f){c=k;break}}else c=c.childNodes[f]}return c?new CKEDITOR.dom.node(c):null},getElementsByTag:function(a,e){CKEDITOR.env.ie&&8>=document.documentMode||!e||(a=e+":"+ +a);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(a))},getHead:function(){var a=this.$.getElementsByTagName("head")[0];return a=a?new CKEDITOR.dom.element(a):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(a){this.$.open("text/html", +"replace");CKEDITOR.env.ie&&(a=a.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$\x26\n\x3cscript data-cke-temp\x3d"1"\x3e('+CKEDITOR.tools.fixDomain+")();\x3c/script\x3e"));this.$.write(a);this.$.close()},find:function(a){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(a))},findOne:function(a){return(a=this.$.querySelector(a))?new CKEDITOR.dom.element(a):null},_getHtml5ShivFrag:function(){var a=this.getCustomData("html5ShivFrag");a||(a=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(a, +!0),this.setCustomData("html5ShivFrag",a));return a}}),CKEDITOR.dom.nodeList=function(a){this.$=a},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(a){return 0>a||a>=this.$.length?null:(a=this.$[a])?new CKEDITOR.dom.node(a):null}},CKEDITOR.dom.element=function(a,e){"string"==typeof a&&(a=(e?e.$:document).createElement(a));CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.element.get=function(a){return(a="string"==typeof a?document.getElementById(a)||document.getElementsByName(a)[0]: +a)&&(a.$?a:new CKEDITOR.dom.element(a))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(a,e){var c=new CKEDITOR.dom.element("div",e);c.setHtml(a);return c.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(a,e,c,g){var f=e.getCustomData("list_marker_id")||e.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),m=e.getCustomData("list_marker_names")||e.setCustomData("list_marker_names",{}).getCustomData("list_marker_names"); +a[f]=e;m[c]=1;return e.setCustomData(c,g)},CKEDITOR.dom.element.clearAllMarkers=function(a){for(var e in a)CKEDITOR.dom.element.clearMarkers(a,a[e],1)},CKEDITOR.dom.element.clearMarkers=function(a,e,c){var g=e.getCustomData("list_marker_names"),f=e.getCustomData("list_marker_id"),m;for(m in g)e.removeCustomData(m);e.removeCustomData("list_marker_names");c&&(e.removeCustomData("list_marker_id"),delete a[f])},function(){function a(a,b){return-1<(" "+a+" ").replace(m," ").indexOf(" "+b+" ")}function e(a){var b= +!0;a.$.id||(a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),b=!1);return function(){b||a.removeAttribute("id")}}function c(a,b){return"#"+a.$.id+" "+b.split(/,\s*/).join(", #"+a.$.id+" ")}function g(a){for(var b=0,d=0,h=l[a].length;d<h;d++)b+=parseInt(this.getComputedStyle(l[a][d])||0,10)||0;return b}var f=!!document.createElement("span").classList,m=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:f?function(a){this.$.classList.add(a);return this}: +function(k){var b=this.$.className;b&&(a(b,k)||(b+=" "+k));this.$.className=b||k;return this},removeClass:f?function(a){var b=this.$;b.classList.remove(a);b.className||b.removeAttribute("class");return this}:function(k){var b=this.getAttribute("class");b&&a(b,k)&&((b=b.replace(new RegExp("(?:^|\\s+)"+k+"(?\x3d\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",b):this.removeAttribute("class"));return this},hasClass:function(k){return a(this.$.className,k)},append:function(a,b){"string"==typeof a&& +(a=this.getDocument().createElement(a));b?this.$.insertBefore(a.$,this.$.firstChild):this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var b=new CKEDITOR.dom.element("div",this.getDocument());b.setHtml(a);b.moveChildren(this)}else this.setHtml(a)},appendText:function(a){null!=this.$.text&&CKEDITOR.env.ie&&9>CKEDITOR.env.version?this.$.text+=a:this.append(new CKEDITOR.dom.text(a))},appendBogus:function(a){if(a||CKEDITOR.env.needsBrFiller){for(a=this.getLast();a&& +a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(a.getText());)a=a.getPrevious();a&&a.is&&a.is("br")||(a=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&a.setAttribute("type","_moz"),this.append(a))}},breakParent:function(a,b){var d=new CKEDITOR.dom.range(this.getDocument());d.setStartAfter(this);d.setEndAfter(a);var h=d.extractContents(!1,b||!1);d.insertNode(this.remove());h.insertAfterNode(this)},contains:document.compareDocumentPosition?function(a){return!!(this.$.compareDocumentPosition(a.$)& +16)}:function(a){var b=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?b.contains(a.getParent().$):b!=a.$&&b.contains(a.$)},focus:function(){function a(){try{this.$.focus()}catch(b){}}return function(b){b?CKEDITOR.tools.setTimeout(a,100,this):a.call(this)}}(),getHtml:function(){var a=this.$.innerHTML;return CKEDITOR.env.ie?a.replace(/<\?[^>]*>/g,""):a},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var a=this.$.ownerDocument.createElement("div");a.appendChild(this.$.cloneNode(!0)); +return a.innerHTML},getClientRect:function(){var a=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!a.width&&(a.width=a.right-a.left);!a.height&&(a.height=a.bottom-a.top);return a},setHtml:CKEDITOR.env.ie&&9>CKEDITOR.env.version?function(a){try{var b=this.$;if(this.getParent())return b.innerHTML=a;var d=this.getDocument()._getHtml5ShivFrag();d.appendChild(b);b.innerHTML=a;d.removeChild(b);return a}catch(h){this.$.innerHTML="";b=new CKEDITOR.dom.element("body",this.getDocument());b.$.innerHTML= +a;for(b=b.getChildren();b.count();)this.append(b.getItem(0));return a}}:function(a){return this.$.innerHTML=a},setText:function(){var a=document.createElement("p");a.innerHTML="x";a=a.textContent;return function(b){this.$[a?"textContent":"innerText"]=b}}(),getAttribute:function(){var a=function(a){return this.$.getAttribute(a,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){switch(a){case "class":a="className";break;case "http-equiv":a="httpEquiv";break;case "name":return this.$.name; +case "tabindex":return a=this.$.getAttribute(a,2),0!==a&&0===this.$.tabIndex&&(a=null),a;case "checked":return a=this.$.attributes.getNamedItem(a),(a.specified?a.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[a];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(a,2)}:a}(),getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)}, +getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(a){var b=this.getWindow().$.getComputedStyle(this.$,null);return b?b.getPropertyValue(a):""}:function(a){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(a)]},getDtd:function(){var a=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return a};return a},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:function(){var a=this.$.tabIndex;return 0!==a||CKEDITOR.dtd.$tabIndex[this.getName()]|| +0===parseInt(this.getAttribute("tabindex"),10)?a:-1},getText:function(){return this.$.textContent||this.$.innerText||""},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var a=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&8>=document.documentMode){var b=this.$.scopeName;"HTML"!=b&&(a=b.toLowerCase()+":"+a)}this.getName=function(){return a};return this.getName()},getValue:function(){return this.$.value}, +getFirst:function(a){var b=this.$.firstChild;(b=b&&new CKEDITOR.dom.node(b))&&a&&!a(b)&&(b=b.getNext(a));return b},getLast:function(a){var b=this.$.lastChild;(b=b&&new CKEDITOR.dom.node(b))&&a&&!a(b)&&(b=b.getPrevious(a));return b},getStyle:function(a){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]},is:function(){var a=this.getName();if("object"==typeof arguments[0])return!!arguments[0][a];for(var b=0;b<arguments.length;b++)if(arguments[b]==a)return!0;return!1},isEditable:function(a){var b= +this.getName();return this.isReadOnly()||"none"==this.getComputedStyle("display")||"hidden"==this.getComputedStyle("visibility")||CKEDITOR.dtd.$nonEditable[b]||CKEDITOR.dtd.$empty[b]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount()?!1:!1!==a?(a=CKEDITOR.dtd[b]||CKEDITOR.dtd.span,!(!a||!a["#"])):!0},isIdentical:function(a){var b=this.clone(0,1);a=a.clone(0,1);b.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]); +a.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);if(b.$.isEqualNode)return b.$.style.cssText=CKEDITOR.tools.normalizeCssText(b.$.style.cssText),a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText),b.$.isEqualNode(a.$);b=b.getOuterHtml();a=a.getOuterHtml();if(CKEDITOR.env.ie&&9>CKEDITOR.env.version&&this.is("a")){var d=this.getParent();d.type==CKEDITOR.NODE_ELEMENT&&(d=d.clone(),d.setHtml(b),b=d.getHtml(),d.setHtml(a),a=d.getHtml())}return b== +a},isVisible:function(){var a=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"!=this.getComputedStyle("visibility"),b,d;a&&CKEDITOR.env.webkit&&(b=this.getWindow(),!b.equals(CKEDITOR.document.getWindow())&&(d=b.$.frameElement)&&(a=(new CKEDITOR.dom.element(d)).isVisible()));return!!a},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return!1;for(var a=this.getChildren(),b=0,d=a.count();b<d;b++){var h=a.getItem(b);if(h.type!=CKEDITOR.NODE_ELEMENT||!h.data("cke-bookmark"))if(h.type== +CKEDITOR.NODE_ELEMENT&&!h.isEmptyInlineRemoveable()||h.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(h.getText()))return!1}return!0},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var a=this.$.attributes,b=0;b<a.length;b++){var d=a[b];switch(d.nodeName){case "class":if(this.getAttribute("class"))return!0;case "data-cke-expando":continue;default:if(d.specified)return!0}}return!1}:function(){var a=this.$.attributes,b=a.length,d={"data-cke-expando":1,_moz_dirty:1}; +return 0<b&&(2<b||!d[a[0].nodeName]||2==b&&!d[a[1].nodeName])},hasAttribute:function(){function a(b){var d=this.$.attributes.getNamedItem(b);if("input"==this.getName())switch(b){case "class":return 0<this.$.className.length;case "checked":return!!this.$.checked;case "value":return b=this.getAttribute("type"),"checkbox"==b||"radio"==b?"on"!=this.$.value:!!this.$.value}return d?d.specified:!1}return CKEDITOR.env.ie?8>CKEDITOR.env.version?function(b){return"name"==b?!!this.$.name:a.call(this,b)}:a:function(a){return!!this.$.attributes.getNamedItem(a)}}(), +hide:function(){this.setStyle("display","none")},moveChildren:function(a,b){var d=this.$;a=a.$;if(d!=a){var h;if(b)for(;h=d.lastChild;)a.insertBefore(d.removeChild(h),a.firstChild);else for(;h=d.firstChild;)a.appendChild(d.removeChild(h))}},mergeSiblings:function(){function a(b,d,h){if(d&&d.type==CKEDITOR.NODE_ELEMENT){for(var c=[];d.data("cke-bookmark")||d.isEmptyInlineRemoveable();)if(c.push(d),d=h?d.getNext():d.getPrevious(),!d||d.type!=CKEDITOR.NODE_ELEMENT)return;if(b.isIdentical(d)){for(var f= +h?b.getLast():b.getFirst();c.length;)c.shift().move(b,!h);d.moveChildren(b,!h);d.remove();f&&f.type==CKEDITOR.NODE_ELEMENT&&f.mergeSiblings()}}}return function(b){if(!1===b||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a"))a(this,this.getNext(),!0),a(this,this.getPrevious())}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var a=function(a,d){this.$.setAttribute(a,d);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(b, +d){"class"==b?this.$.className=d:"style"==b?this.$.style.cssText=d:"tabindex"==b?this.$.tabIndex=d:"checked"==b?this.$.checked=d:"contenteditable"==b?a.call(this,"contentEditable",d):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(b,d){if("src"==b&&d.match(/^http:\/\//))try{a.apply(this,arguments)}catch(h){}else a.apply(this,arguments);return this}:a}(),setAttributes:function(a){for(var b in a)this.setAttribute(b,a[b]);return this},setValue:function(a){this.$.value= +a;return this},removeAttribute:function(){var a=function(a){this.$.removeAttribute(a)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(a){"class"==a?a="className":"tabindex"==a?a="tabIndex":"contenteditable"==a&&(a="contentEditable");this.$.removeAttribute(a)}:a}(),removeAttributes:function(a){if(CKEDITOR.tools.isArray(a))for(var b=0;b<a.length;b++)this.removeAttribute(a[b]);else for(b in a)a.hasOwnProperty(b)&&this.removeAttribute(b)},removeStyle:function(a){var b= +this.$.style;if(b.removeProperty||"border"!=a&&"margin"!=a&&"padding"!=a)b.removeProperty?b.removeProperty(a):b.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(a)),this.$.style.cssText||this.removeAttribute("style");else{var d=["top","left","right","bottom"],h;"border"==a&&(h=["color","style","width"]);for(var b=[],c=0;c<d.length;c++)if(h)for(var f=0;f<h.length;f++)b.push([a,d[c],h[f]].join("-"));else b.push([a,d[c]].join("-"));for(a=0;a<b.length;a++)this.removeStyle(b[a])}},setStyle:function(a, +b){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]=b;return this},setStyles:function(a){for(var b in a)this.setStyle(b,a[b]);return this},setOpacity:function(a){CKEDITOR.env.ie&&9>CKEDITOR.env.version?(a=Math.round(100*a),this.setStyle("filter",100<=a?"":"progid:DXImageTransform.Microsoft.Alpha(opacity\x3d"+a+")")):this.setStyle("opacity",a)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none"));if(CKEDITOR.env.ie){this.setAttribute("unselectable","on");for(var a, +b=this.getElementsByTag("*"),d=0,h=b.count();d<h;d++)a=b.getItem(d),a.setAttribute("unselectable","on")}},getPositionedAncestor:function(){for(var a=this;"html"!=a.getName();){if("static"!=a.getComputedStyle("position"))return a;a=a.getParent()}return null},getDocumentPosition:function(a){var b=0,d=0,h=this.getDocument(),c=h.getBody(),f="BackCompat"==h.$.compatMode;if(document.documentElement.getBoundingClientRect){var g=this.$.getBoundingClientRect(),e=h.$.documentElement,n=e.clientTop||c.$.clientTop|| +0,q=e.clientLeft||c.$.clientLeft||0,m=!0;CKEDITOR.env.ie&&(m=h.getDocumentElement().contains(this),h=h.getBody().contains(this),m=f&&h||!f&&m);m&&(CKEDITOR.env.webkit||CKEDITOR.env.ie&&12<=CKEDITOR.env.version?(b=c.$.scrollLeft||e.scrollLeft,d=c.$.scrollTop||e.scrollTop):(d=f?c.$:e,b=d.scrollLeft,d=d.scrollTop),b=g.left+b-q,d=g.top+d-n)}else for(n=this,q=null;n&&"body"!=n.getName()&&"html"!=n.getName();){b+=n.$.offsetLeft-n.$.scrollLeft;d+=n.$.offsetTop-n.$.scrollTop;n.equals(this)||(b+=n.$.clientLeft|| +0,d+=n.$.clientTop||0);for(;q&&!q.equals(n);)b-=q.$.scrollLeft,d-=q.$.scrollTop,q=q.getParent();q=n;n=(g=n.$.offsetParent)?new CKEDITOR.dom.element(g):null}a&&(g=this.getWindow(),n=a.getWindow(),!g.equals(n)&&g.$.frameElement&&(a=(new CKEDITOR.dom.element(g.$.frameElement)).getDocumentPosition(a),b+=a.x,d+=a.y));document.documentElement.getBoundingClientRect||!CKEDITOR.env.gecko||f||(b+=this.$.clientLeft?1:0,d+=this.$.clientTop?1:0);return{x:b,y:d}},scrollIntoView:function(a){var b=this.getParent(); +if(b){do if((b.$.clientWidth&&b.$.clientWidth<b.$.scrollWidth||b.$.clientHeight&&b.$.clientHeight<b.$.scrollHeight)&&!b.is("body")&&this.scrollIntoParent(b,a,1),b.is("html")){var d=b.getWindow();try{var h=d.$.frameElement;h&&(b=new CKEDITOR.dom.element(h))}catch(c){}}while(b=b.getParent())}},scrollIntoParent:function(a,b,d){var h,c,f,g;function e(h,b){/body|html/.test(a.getName())?a.getWindow().$.scrollBy(h,b):(a.$.scrollLeft+=h,a.$.scrollTop+=b)}function n(a,h){var b={x:0,y:0};if(!a.is(l?"body": +"html")){var d=a.$.getBoundingClientRect();b.x=d.left;b.y=d.top}d=a.getWindow();d.equals(h)||(d=n(CKEDITOR.dom.element.get(d.$.frameElement),h),b.x+=d.x,b.y+=d.y);return b}function m(a,h){return parseInt(a.getComputedStyle("margin-"+h)||0,10)||0}!a&&(a=this.getWindow());f=a.getDocument();var l="BackCompat"==f.$.compatMode;a instanceof CKEDITOR.dom.window&&(a=l?f.getBody():f.getDocumentElement());f=a.getWindow();c=n(this,f);var y=n(a,f),C=this.$.offsetHeight;h=this.$.offsetWidth;var r=a.$.clientHeight, +x=a.$.clientWidth;f=c.x-m(this,"left")-y.x||0;g=c.y-m(this,"top")-y.y||0;h=c.x+h+m(this,"right")-(y.x+x)||0;c=c.y+C+m(this,"bottom")-(y.y+r)||0;(0>g||0<c)&&e(0,!0===b?g:!1===b?c:0>g?g:c);d&&(0>f||0<h)&&e(0>f?f:h,0)},setState:function(a,b,d){b=b||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(b+"_on");this.removeClass(b+"_off");this.removeClass(b+"_disabled");d&&this.setAttribute("aria-pressed",!0);d&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(b+ +"_disabled");this.removeClass(b+"_off");this.removeClass(b+"_on");d&&this.setAttribute("aria-disabled",!0);d&&this.removeAttribute("aria-pressed");break;default:this.addClass(b+"_off"),this.removeClass(b+"_on"),this.removeClass(b+"_disabled"),d&&this.removeAttribute("aria-pressed"),d&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(b){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a, +b){var d=this.$.attributes;b=b||{};for(var h=0;h<d.length;h++){var c=d[h],f=c.nodeName.toLowerCase(),g;if(!(f in b))if("checked"==f&&(g=this.getAttribute(f)))a.setAttribute(f,g);else if(!CKEDITOR.env.ie||this.hasAttribute(f))g=this.getAttribute(f),null===g&&(g=c.nodeValue),a.setAttribute(f,g)}""!==this.$.style.cssText&&(a.$.style.cssText=this.$.style.cssText)},renameNode:function(a){if(this.getName()!=a){var b=this.getDocument();a=new CKEDITOR.dom.element(a,b);this.copyAttributes(a);this.moveChildren(a); +this.getParent(!0)&&this.$.parentNode.replaceChild(a.$,this.$);a.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=a.$;delete this.getName}},getChild:function(){function a(b,d){var h=b.childNodes;if(0<=d&&d<h.length)return h[d]}return function(b){var d=this.$;if(b.slice)for(b=b.slice();0<b.length&&d;)d=a(d,b.shift());else d=a(d,b);return d?new CKEDITOR.dom.node(d):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){function a(b){return b.type==CKEDITOR.NODE_ELEMENT&& +b.hasClass("cke_enable_context_menu")}this.on("contextmenu",function(b){b.data.getTarget().getAscendant(a,!0)||b.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(void 0===b)return this.getAttribute(a);!1===b?this.removeAttribute(a):this.setAttribute(a,b);return null}, +getEditor:function(){var a=CKEDITOR.instances,b,d;for(b in a)if(d=a[b],d.element.equals(this)&&d.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO)return d;return null},find:function(a){var b=e(this);a=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(c(this,a)));b();return a},findOne:function(a){var b=e(this);a=this.$.querySelector(c(this,a));b();return a?new CKEDITOR.dom.element(a):null},forEach:function(a,b,d){if(!(d||b&&this.type!=b))var h=a(this);if(!1!==h){d=this.getChildren();for(var c=0;c<d.count();c++)h= +d.getItem(c),h.type==CKEDITOR.NODE_ELEMENT?h.forEach(a,b):b&&h.type!=b||a(h)}}});var l={width:["border-left-width","border-right-width","padding-left","padding-right"],height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};CKEDITOR.dom.element.prototype.setSize=function(a,b,d){"number"==typeof b&&(!d||CKEDITOR.env.ie&&CKEDITOR.env.quirks||(b-=g.call(this,a)),this.setStyle(a,b+"px"))};CKEDITOR.dom.element.prototype.getSize=function(a,b){var d=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(a)], +this.$["client"+CKEDITOR.tools.capitalize(a)])||0;b&&(d-=g.call(this,a));return d}}(),CKEDITOR.dom.documentFragment=function(a){a=a||CKEDITOR.document;this.$=a.type==CKEDITOR.NODE_DOCUMENT?a.$.createDocumentFragment():a},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(a){a=a.$;a.parentNode.insertBefore(this.$,a.nextSibling)},getHtml:function(){var a=new CKEDITOR.dom.element("div");this.clone(1, +1).appendTo(a);return a.getHtml().replace(/\s*data-cke-expando=".*?"/g,"")}},!0,{append:1,appendBogus:1,clone:1,getFirst:1,getHtml:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1}),function(){function a(a,h){var b=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(b.collapsed)return this.end(),null;b.optimize()}var d,c=b.startContainer; +d=b.endContainer;var f=b.startOffset,g=b.endOffset,p,k=this.guard,e=this.type,m=a?"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var l=d.type==CKEDITOR.NODE_ELEMENT?d:d.getParent(),z=d.type==CKEDITOR.NODE_ELEMENT?d.getChild(g):d.getNext();this._.guardLTR=function(a,h){return(!h||!l.equals(a))&&(!z||!a.equals(z))&&(a.type!=CKEDITOR.NODE_ELEMENT||!h||!a.equals(b.root))}}if(a&&!this._.guardRTL){var D=c.type==CKEDITOR.NODE_ELEMENT?c:c.getParent(),G=c.type==CKEDITOR.NODE_ELEMENT? +f?c.getChild(f-1):null:c.getPrevious();this._.guardRTL=function(a,h){return(!h||!D.equals(a))&&(!G||!a.equals(G))&&(a.type!=CKEDITOR.NODE_ELEMENT||!h||!a.equals(b.root))}}var F=a?this._.guardRTL:this._.guardLTR;p=k?function(a,h){return!1===F(a,h)?!1:k(a,h)}:F;this.current?d=this.current[m](!1,e,p):(a?d.type==CKEDITOR.NODE_ELEMENT&&(d=0<g?d.getChild(g-1):!1===p(d,!0)?null:d.getPreviousSourceNode(!0,e,p)):(d=c,d.type==CKEDITOR.NODE_ELEMENT&&((d=d.getChild(f))||(d=!1===p(c,!0)?null:c.getNextSourceNode(!0, +e,p)))),d&&!1===p(d)&&(d=null));for(;d&&!this._.end;){this.current=d;if(!this.evaluator||!1!==this.evaluator(d)){if(!h)return d}else if(h&&this.evaluator)return!1;d=d[m](!1,e,p)}this.end();return this.current=null}function e(h){for(var b,d=null;b=a.call(this,h);)d=b;return d}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(a){this.range=a;this._={}},proto:{end:function(){this._.end=1},next:function(){return a.call(this)},previous:function(){return a.call(this,1)},checkForward:function(){return!1!== +a.call(this,0,1)},checkBackward:function(){return!1!==a.call(this,1,1)},lastForward:function(){return e.call(this)},lastBackward:function(){return e.call(this,1)},reset:function(){delete this.current;this._={}}}});var c={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},g={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(a){return"none"!= +this.getComputedStyle("float")||this.getComputedStyle("position")in g||!c[this.getComputedStyle("display")]?!!(this.is(CKEDITOR.dtd.$block)||a&&this.is(a)):!0};CKEDITOR.dom.walker.blockBoundary=function(a){return function(h){return!(h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary(a))}};CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(a,h){function b(a){return a&&a.getName&&"span"==a.getName()&&a.data("cke-bookmark")}return function(d){var c, +f;c=d&&d.type!=CKEDITOR.NODE_ELEMENT&&(f=d.getParent())&&b(f);c=a?c:c||b(d);return!!(h^c)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(h){var b;h&&h.type==CKEDITOR.NODE_TEXT&&(b=!CKEDITOR.tools.trim(h.getText())||CKEDITOR.env.webkit&&"​"==h.getText());return!!(a^b)}};CKEDITOR.dom.walker.invisible=function(a){var h=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.env.webkit?1:0;return function(d){h(d)?d=1:(d.type==CKEDITOR.NODE_TEXT&&(d=d.getParent()),d=d.$.offsetWidth<=b);return!!(a^ +d)}};CKEDITOR.dom.walker.nodeType=function(a,h){return function(b){return!!(h^b.type==a)}};CKEDITOR.dom.walker.bogus=function(a){function h(a){return!m(a)&&!l(a)}return function(b){var d=CKEDITOR.env.needsBrFiller?b.is&&b.is("br"):b.getText&&f.test(b.getText());d&&(d=b.getParent(),b=b.getNext(h),d=d.isBlockBoundary()&&(!b||b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()));return!!(a^d)}};CKEDITOR.dom.walker.temp=function(a){return function(h){h.type!=CKEDITOR.NODE_ELEMENT&&(h=h.getParent());h= +h&&h.hasAttribute("data-cke-temp");return!!(a^h)}};var f=/^[\t\r\n ]*(?: |\xa0)$/,m=CKEDITOR.dom.walker.whitespaces(),l=CKEDITOR.dom.walker.bookmark(),k=CKEDITOR.dom.walker.temp(),b=function(a){return l(a)||m(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$inline)&&!a.is(CKEDITOR.dtd.$empty)};CKEDITOR.dom.walker.ignored=function(a){return function(h){h=m(h)||l(h)||k(h);return!!(a^h)}};var d=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(a){return function(h){for(var b= +0,c=h.getChildCount();b<c;++b)if(!d(h.getChild(b)))return!!a;return!a}};var h=CKEDITOR.dom.walker.empty(),p=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(a){var h={},b;for(b in a)CKEDITOR.dtd[b]["#"]&&(h[b]=1);return h}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=function(a){return function(b){b=d(b)?!1:b.type==CKEDITOR.NODE_TEXT||b.type==CKEDITOR.NODE_ELEMENT&&(b.is(CKEDITOR.dtd.$inline)||b.is("hr")||"false"==b.getAttribute("contenteditable")|| +!CKEDITOR.env.needsBrFiller&&b.is(p)&&h(b))?!0:!1;return!!(a^b)}};CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(b(a));return a&&(CKEDITOR.env.needsBrFiller?a.is&&a.is("br"):a.getText&&f.test(a.getText()))?a:!1}}(),CKEDITOR.dom.range=function(a){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null;this.collapsed=!0;var e=a instanceof CKEDITOR.dom.document;this.document=e?a:a.getDocument();this.root=e?a.getBody():a},function(){function a(a){a.collapsed= +a.startContainer&&a.endContainer&&a.startContainer.equals(a.endContainer)&&a.startOffset==a.endOffset}function e(a,b,d,c,f){function g(a,h,b,d){var c=b?a.getPrevious():a.getNext();if(d&&m)return c;r||d?h.append(a.clone(!0,f),b):(a.remove(),l&&h.append(a));return c}function k(){var a,h,b,d=Math.min(E.length,P.length);for(a=0;a<d;a++)if(h=E[a],b=P[a],!h.equals(b))return a;return a-1}function e(){var b=T-1,d=F&&J&&!x.equals(B);b<L-1||b<Q-1||d?(d?a.moveToPosition(B,CKEDITOR.POSITION_BEFORE_START):Q== +b+1&&G?a.moveToPosition(P[b],CKEDITOR.POSITION_BEFORE_END):a.moveToPosition(P[b+1],CKEDITOR.POSITION_BEFORE_START),c&&(b=E[b+1])&&b.type==CKEDITOR.NODE_ELEMENT&&(d=CKEDITOR.dom.element.createFromHtml('\x3cspan data-cke-bookmark\x3d"1" style\x3d"display:none"\x3e\x26nbsp;\x3c/span\x3e',a.document),d.insertAfter(b),b.mergeSiblings(!1),a.moveToBookmark({startNode:d}))):a.collapse(!0)}a.optimizeBookmark();var m=0===b,l=1==b,r=2==b;b=r||l;var x=a.startContainer,B=a.endContainer,A=a.startOffset,z=a.endOffset, +D,G,F,J,I,N;if(r&&B.type==CKEDITOR.NODE_TEXT&&x.equals(B))x=a.document.createText(x.substring(A,z)),d.append(x);else{B.type==CKEDITOR.NODE_TEXT?r?N=!0:B=B.split(z):0<B.getChildCount()?z>=B.getChildCount()?(B=B.getChild(z-1),G=!0):B=B.getChild(z):J=G=!0;x.type==CKEDITOR.NODE_TEXT?r?I=!0:x.split(A):0<x.getChildCount()?0===A?(x=x.getChild(A),D=!0):x=x.getChild(A-1):F=D=!0;for(var E=x.getParents(),P=B.getParents(),T=k(),L=E.length-1,Q=P.length-1,O=d,U,K,V,R=-1,H=T;H<=L;H++){K=E[H];V=K.getNext();for(H!= +L||K.equals(P[H])&&L<Q?b&&(U=O.append(K.clone(0,f))):D?g(K,O,!1,F):I&&O.append(a.document.createText(K.substring(A)));V;){if(V.equals(P[H])){R=H;break}V=g(V,O)}O=U}O=d;for(H=T;H<=Q;H++)if(d=P[H],V=d.getPrevious(),d.equals(E[H]))b&&(O=O.getChild(0));else{H!=Q||d.equals(E[H])&&Q<L?b&&(U=O.append(d.clone(0,f))):G?g(d,O,!1,J):N&&O.append(a.document.createText(d.substring(0,z)));if(H>R)for(;V;)V=g(V,O,!0);O=U}r||e()}}function c(){var a=!1,b=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(!0), +c=CKEDITOR.dom.walker.bogus();return function(f){return d(f)||b(f)?!0:c(f)&&!a?a=!0:f.type==CKEDITOR.NODE_TEXT&&(f.hasAscendant("pre")||CKEDITOR.tools.trim(f.getText()).length)||f.type==CKEDITOR.NODE_ELEMENT&&!f.is(m)?!1:!0}}function g(a){var b=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(1);return function(c){return d(c)||b(c)?!0:!a&&l(c)||c.type==CKEDITOR.NODE_ELEMENT&&c.is(CKEDITOR.dtd.$removeEmpty)}}function f(a){return function(){var c;return this[a?"getPreviousNode":"getNextNode"](function(a){!c&& +d(a)&&(c=a);return b(a)&&!(l(a)&&a.equals(c))})}}var m={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},l=CKEDITOR.dom.walker.bogus(),k=/^[\t\r\n ]*(?: |\xa0)$/,b=CKEDITOR.dom.walker.editable(),d=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var a=new CKEDITOR.dom.range(this.root);a._setStartContainer(this.startContainer);a.startOffset=this.startOffset; +a._setEndContainer(this.endContainer);a.endOffset=this.endOffset;a.collapsed=this.collapsed;return a},collapse:function(a){a?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),this.startOffset=this.endOffset);this.collapsed=!0},cloneContents:function(a){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||e(this,2,b,!1,"undefined"==typeof a?!0:a);return b},deleteContents:function(a){this.collapsed||e(this,0,null, +a)},extractContents:function(a,b){var d=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||e(this,1,d,a,"undefined"==typeof b?!0:b);return d},createBookmark:function(a){var b,d,c,f,g=this.collapsed;b=this.document.createElement("span");b.data("cke-bookmark",1);b.setStyle("display","none");b.setHtml("\x26nbsp;");a&&(c="cke_bm_"+CKEDITOR.tools.getNextNumber(),b.setAttribute("id",c+(g?"C":"S")));g||(d=b.clone(),d.setHtml("\x26nbsp;"),a&&d.setAttribute("id",c+"E"),f=this.clone(),f.collapse(), +f.insertNode(d));f=this.clone();f.collapse(!0);f.insertNode(b);d?(this.setStartAfter(b),this.setEndBefore(d)):this.moveToPosition(b,CKEDITOR.POSITION_AFTER_END);return{startNode:a?c+(g?"C":"S"):b,endNode:a?c+"E":d,serializable:a,collapsed:g}},createBookmark2:function(){function a(h){var d=h.container,c=h.offset,f;f=d;var g=c;f=f.type!=CKEDITOR.NODE_ELEMENT||0===g||g==f.getChildCount()?0:f.getChild(g-1).type==CKEDITOR.NODE_TEXT&&f.getChild(g).type==CKEDITOR.NODE_TEXT;f&&(d=d.getChild(c-1),c=d.getLength()); +d.type==CKEDITOR.NODE_ELEMENT&&1<c&&(c=d.getChild(c-1).getIndex(!0)+1);if(d.type==CKEDITOR.NODE_TEXT){f=d;for(g=0;(f=f.getPrevious())&&f.type==CKEDITOR.NODE_TEXT;)g+=f.getLength();f=g;d.getText()?c+=f:(g=d.getPrevious(b),f?(c=f,d=g?g.getNext():d.getParent().getFirst()):(d=d.getParent(),c=g?g.getIndex(!0)+1:0))}h.container=d;h.offset=c}var b=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,!0);return function(b){var d=this.collapsed,c={container:this.startContainer,offset:this.startOffset},f={container:this.endContainer, +offset:this.endOffset};b&&(a(c),d||a(f));return{start:c.container.getAddress(b),end:d?null:f.container.getAddress(b),startOffset:c.offset,endOffset:f.offset,normalized:b,collapsed:d,is2:!0}}}(),moveToBookmark:function(a){if(a.is2){var b=this.document.getByAddress(a.start,a.normalized),d=a.startOffset,c=a.end&&this.document.getByAddress(a.end,a.normalized);a=a.endOffset;this.setStart(b,d);c?this.setEnd(c,a):this.collapse(!0)}else b=(d=a.serializable)?this.document.getById(a.startNode):a.startNode, +a=d?this.document.getById(a.endNode):a.endNode,this.setStartBefore(b),b.remove(),a?(this.setEndBefore(a),a.remove()):this.collapse(!0)},getBoundaryNodes:function(){var a=this.startContainer,b=this.endContainer,d=this.startOffset,c=this.endOffset,f;if(a.type==CKEDITOR.NODE_ELEMENT)if(f=a.getChildCount(),f>d)a=a.getChild(d);else if(1>f)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)if(f=b.getChildCount(), +f>c)b=b.getChild(c).getPreviousSourceNode(!0);else if(1>f)b=b.getPreviousSourceNode();else{for(b=b.$;b.lastChild;)b=b.lastChild;b=new CKEDITOR.dom.node(b)}a.getPosition(b)&CKEDITOR.POSITION_FOLLOWING&&(a=b);return{startNode:a,endNode:b}},getCommonAncestor:function(a,b){var d=this.startContainer,c=this.endContainer,d=d.equals(c)?a&&d.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?d.getChild(this.startOffset):d:d.getCommonAncestor(c);return b&&!d.is?d.getParent():d},optimize:function(){var a= +this.startContainer,b=this.startOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setStartAfter(a):this.setStartBefore(a));a=this.endContainer;b=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setEndAfter(a):this.setEndBefore(a))},optimizeBookmark:function(){var a=this.startContainer,b=this.endContainer;a.is&&a.is("span")&&a.data("cke-bookmark")&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);b&&b.is&&b.is("span")&&b.data("cke-bookmark")&&this.setEndAt(b,CKEDITOR.POSITION_AFTER_END)}, +trim:function(a,b){var d=this.startContainer,c=this.startOffset,f=this.collapsed;if((!a||f)&&d&&d.type==CKEDITOR.NODE_TEXT){if(c)if(c>=d.getLength())c=d.getIndex()+1,d=d.getParent();else{var g=d.split(c),c=d.getIndex()+1,d=d.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(g,this.endOffset-this.startOffset):d.equals(this.endContainer)&&(this.endOffset+=1)}else c=d.getIndex(),d=d.getParent();this.setStart(d,c);if(f){this.collapse(!0);return}}d=this.endContainer;c=this.endOffset; +b||f||!d||d.type!=CKEDITOR.NODE_TEXT||(c?(c>=d.getLength()||d.split(c),c=d.getIndex()+1):c=d.getIndex(),d=d.getParent(),this.setEnd(d,c))},enlarge:function(a,b){function d(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")?null:a}var c=new RegExp(/[^\s\ufeff]/);switch(a){case CKEDITOR.ENLARGE_INLINE:var f=1;case CKEDITOR.ENLARGE_ELEMENT:var g=function(a,b){var d=new CKEDITOR.dom.range(e);d.setStart(a,b);d.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);var d=new CKEDITOR.dom.walker(d), +h;for(d.guard=function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())};h=d.next();){if(h.type!=CKEDITOR.NODE_TEXT)return!1;D=h!=a?h.getText():h.substring(b);if(c.test(D))return!1}return!0};if(this.collapsed)break;var k=this.getCommonAncestor(),e=this.root,m,l,r,x,B,A=!1,z,D;z=this.startContainer;var G=this.startOffset;z.type==CKEDITOR.NODE_TEXT?(G&&(z=!CKEDITOR.tools.trim(z.substring(0,G)).length&&z,A=!!z),z&&((x=z.getPrevious())||(r=z.getParent()))):(G&&(x=z.getChild(G-1)||z.getLast()), +x||(r=z));for(r=d(r);r||x;){if(r&&!x){!B&&r.equals(k)&&(B=!0);if(f?r.isBlockBoundary():!e.contains(r))break;A&&"inline"==r.getComputedStyle("display")||(A=!1,B?m=r:this.setStartBefore(r));x=r.getPrevious()}for(;x;)if(z=!1,x.type==CKEDITOR.NODE_COMMENT)x=x.getPrevious();else{if(x.type==CKEDITOR.NODE_TEXT)D=x.getText(),c.test(D)&&(x=null),z=/[\s\ufeff]$/.test(D);else if((x.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||b&&x.is("br"))&&!x.data("cke-bookmark"))if(A&&CKEDITOR.dtd.$removeEmpty[x.getName()]){D= +x.getText();if(c.test(D))x=null;else for(var G=x.$.getElementsByTagName("*"),F=0,J;J=G[F++];)if(!CKEDITOR.dtd.$removeEmpty[J.nodeName.toLowerCase()]){x=null;break}x&&(z=!!D.length)}else x=null;z&&(A?B?m=r:r&&this.setStartBefore(r):A=!0);if(x){z=x.getPrevious();if(!r&&!z){r=x;x=null;break}x=z}else r=null}r&&(r=d(r.getParent()))}z=this.endContainer;G=this.endOffset;r=x=null;B=A=!1;z.type==CKEDITOR.NODE_TEXT?CKEDITOR.tools.trim(z.substring(G)).length?A=!0:(A=!z.getLength(),G==z.getLength()?(x=z.getNext())|| +(r=z.getParent()):g(z,G)&&(r=z.getParent())):(x=z.getChild(G))||(r=z);for(;r||x;){if(r&&!x){!B&&r.equals(k)&&(B=!0);if(f?r.isBlockBoundary():!e.contains(r))break;A&&"inline"==r.getComputedStyle("display")||(A=!1,B?l=r:r&&this.setEndAfter(r));x=r.getNext()}for(;x;){z=!1;if(x.type==CKEDITOR.NODE_TEXT)D=x.getText(),g(x,0)||(x=null),z=/^[\s\ufeff]/.test(D);else if(x.type==CKEDITOR.NODE_ELEMENT){if((0<x.$.offsetWidth||b&&x.is("br"))&&!x.data("cke-bookmark"))if(A&&CKEDITOR.dtd.$removeEmpty[x.getName()]){D= +x.getText();if(c.test(D))x=null;else for(G=x.$.getElementsByTagName("*"),F=0;J=G[F++];)if(!CKEDITOR.dtd.$removeEmpty[J.nodeName.toLowerCase()]){x=null;break}x&&(z=!!D.length)}else x=null}else z=1;z&&A&&(B?l=r:this.setEndAfter(r));if(x){z=x.getNext();if(!r&&!z){r=x;x=null;break}x=z}else r=null}r&&(r=d(r.getParent()))}m&&l&&(k=m.contains(l)?l:m,this.setStartBefore(k),this.setEndAfter(k));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:r=new CKEDITOR.dom.range(this.root); +e=this.root;r.setStartAt(e,CKEDITOR.POSITION_AFTER_START);r.setEnd(this.startContainer,this.startOffset);r=new CKEDITOR.dom.walker(r);var I,N,E=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),P=null,T=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&"false"==a.getAttribute("contenteditable"))if(P){if(P.equals(a)){P=null;return}}else P=a;else if(P)return;var b=E(a);b||(I=a);return b},f=function(a){var b=T(a);!b&&a.is&&a.is("br")&&(N=a);return b};r.guard=T;r=r.lastBackward(); +I=I||e;this.setStartAt(I,!I.is("br")&&(!r&&this.checkStartOfBlock()||r&&I.contains(r))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){r=this.clone();r=new CKEDITOR.dom.walker(r);var L=CKEDITOR.dom.walker.whitespaces(),Q=CKEDITOR.dom.walker.bookmark();r.evaluator=function(a){return!L(a)&&!Q(a)};if((r=r.previous())&&r.type==CKEDITOR.NODE_ELEMENT&&r.is("br"))break}r=this.clone();r.collapse();r.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);r=new CKEDITOR.dom.walker(r); +r.guard=a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?f:T;I=P=N=null;r=r.lastForward();I=I||e;this.setEndAt(I,!r&&this.checkEndOfBlock()||r&&I.contains(r)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);N&&this.setEndAfter(N)}},shrink:function(a,b,d){if(!this.collapsed){a=a||CKEDITOR.SHRINK_TEXT;var c=this.clone(),f=this.startContainer,g=this.endContainer,k=this.startOffset,e=this.endOffset,m=1,l=1;f&&f.type==CKEDITOR.NODE_TEXT&&(k?k>=f.getLength()?c.setStartAfter(f):(c.setStartBefore(f),m= +0):c.setStartBefore(f));g&&g.type==CKEDITOR.NODE_TEXT&&(e?e>=g.getLength()?c.setEndAfter(g):(c.setEndAfter(g),l=0):c.setEndBefore(g));var c=new CKEDITOR.dom.walker(c),r=CKEDITOR.dom.walker.bookmark();c.evaluator=function(b){return b.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var x;c.guard=function(b,c){if(r(b))return!0;if(a==CKEDITOR.SHRINK_ELEMENT&&b.type==CKEDITOR.NODE_TEXT||c&&b.equals(x)||!1===d&&b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()||b.type==CKEDITOR.NODE_ELEMENT&& +b.hasAttribute("contenteditable"))return!1;c||b.type!=CKEDITOR.NODE_ELEMENT||(x=b);return!0};m&&(f=c[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(f,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);l&&(c.reset(),(c=c[a==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(c,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END));return!(!m&&!l)}},insertNode:function(a){this.optimizeBookmark();this.trim(!1,!0);var b=this.startContainer,d=b.getChild(this.startOffset); +d?a.insertBefore(d):b.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a,b){this.setStartAt(a,b);this.collapse(!0)},moveToRange:function(a){this.setStart(a.startContainer,a.startOffset);this.setEnd(a.endContainer,a.endOffset)},selectNodeContents:function(a){this.setStart(a,0);this.setEnd(a,a.type==CKEDITOR.NODE_TEXT?a.getLength():a.getChildCount())},setStart:function(b,d){b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]&& +(d=b.getIndex(),b=b.getParent());this._setStartContainer(b);this.startOffset=d;this.endContainer||(this._setEndContainer(b),this.endOffset=d);a(this)},setEnd:function(b,d){b.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[b.getName()]&&(d=b.getIndex()+1,b=b.getParent());this._setEndContainer(b);this.endOffset=d;this.startContainer||(this._setStartContainer(b),this.startOffset=d);a(this)},setStartAfter:function(a){this.setStart(a.getParent(),a.getIndex()+1)},setStartBefore:function(a){this.setStart(a.getParent(), +a.getIndex())},setEndAfter:function(a){this.setEnd(a.getParent(),a.getIndex()+1)},setEndBefore:function(a){this.setEnd(a.getParent(),a.getIndex())},setStartAt:function(b,d){switch(d){case CKEDITOR.POSITION_AFTER_START:this.setStart(b,0);break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setStart(b,b.getLength()):this.setStart(b,b.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(b);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(b)}a(this)}, +setEndAt:function(b,d){switch(d){case CKEDITOR.POSITION_AFTER_START:this.setEnd(b,0);break;case CKEDITOR.POSITION_BEFORE_END:b.type==CKEDITOR.NODE_TEXT?this.setEnd(b,b.getLength()):this.setEnd(b,b.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(b);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(b)}a(this)},fixBlock:function(a,b){var d=this.createBookmark(),c=this.document.createElement(b);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(c); +c.trim();this.insertNode(c);var f=c.getBogus();f&&f.remove();c.appendBogus();this.moveToBookmark(d);return c},splitBlock:function(a,b){var d=new CKEDITOR.dom.elementPath(this.startContainer,this.root),c=new CKEDITOR.dom.elementPath(this.endContainer,this.root),f=d.block,g=c.block,k=null;if(!d.blockLimit.equals(c.blockLimit))return null;"br"!=a&&(f||(f=this.fixBlock(!0,a),g=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block),g||(g=this.fixBlock(!1,a)));d=f&&this.checkStartOfBlock(); +c=g&&this.checkEndOfBlock();this.deleteContents();f&&f.equals(g)&&(c?(k=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(g,CKEDITOR.POSITION_AFTER_END),g=null):d?(k=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START),f=null):(g=this.splitElement(f,b||!1),f.is("ul","ol")||f.appendBogus()));return{previousBlock:f,nextBlock:g,wasStartOfBlock:d,wasEndOfBlock:c,elementPath:k}},splitElement:function(a,b){if(!this.collapsed)return null; +this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var d=this.extractContents(!1,b||!1),c=a.clone(!1,b||!1);d.appendTo(c);c.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return c},removeEmptyBlocksAtEnd:function(){function a(h){return function(a){return b(a)||d(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isEmptyInlineRemoveable()||h.is("table")&&a.is("caption")?!1:!0}}var b=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(!1);return function(b){for(var d=this.createBookmark(), +c=this[b?"endPath":"startPath"](),f=c.block||c.blockLimit,g;f&&!f.equals(c.root)&&!f.getFirst(a(f));)g=f.getParent(),this[b?"setEndAt":"setStartAt"](f,CKEDITOR.POSITION_AFTER_END),f.remove(1),f=g;this.moveToBookmark(d)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(a,b){var d=b==CKEDITOR.START,c=this.clone();c.collapse(d);c[d?"setStartAt": +"setEndAt"](a,d?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(c);c.evaluator=g(d);return c[d?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var a=this.startContainer,b=this.startOffset;CKEDITOR.env.ie&&b&&a.type==CKEDITOR.NODE_TEXT&&(a=CKEDITOR.tools.ltrim(a.substring(0,b)),k.test(a)&&this.trim(0,1));this.trim();a=new CKEDITOR.dom.elementPath(this.startContainer,this.root);b=this.clone();b.collapse(!0);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;CKEDITOR.env.ie&&a.type==CKEDITOR.NODE_TEXT&&(a=CKEDITOR.tools.rtrim(a.substring(b)),k.test(a)&&this.trim(1,0));this.trim();a=new CKEDITOR.dom.elementPath(this.endContainer,this.root);b=this.clone();b.collapse(!1);b.setEndAt(a.block||a.blockLimit,CKEDITOR.POSITION_BEFORE_END);a=new CKEDITOR.dom.walker(b);a.evaluator=c();return a.checkForward()},getPreviousNode:function(a, +b,d){var c=this.clone();c.collapse(1);c.setStartAt(d||this.root,CKEDITOR.POSITION_AFTER_START);d=new CKEDITOR.dom.walker(c);d.evaluator=a;d.guard=b;return d.previous()},getNextNode:function(a,b,d){var c=this.clone();c.collapse();c.setEndAt(d||this.root,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(c);d.evaluator=a;d.guard=b;return d.next()},checkReadOnly:function(){function a(b,d){for(;b;){if(b.type==CKEDITOR.NODE_ELEMENT){if("false"==b.getAttribute("contentEditable")&&!b.data("cke-editable"))return 0; +if(b.is("html")||"true"==b.getAttribute("contentEditable")&&(b.contains(d)||b.equals(d)))break}b=b.getParent()}return 1}return function(){var b=this.startContainer,d=this.endContainer;return!(a(b,d)&&a(d,b))}}(),moveToElementEditablePosition:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable(!1))return this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0;for(var c=0;a;){if(a.type==CKEDITOR.NODE_TEXT){b&&this.endContainer&&this.checkEndOfBlock()&&k.test(a.getText())? +this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(a,b?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);c=1;break}if(a.type==CKEDITOR.NODE_ELEMENT)if(a.isEditable())this.moveToPosition(a,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),c=1;else if(b&&a.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START);else if("false"==a.getAttribute("contenteditable")&&a.is(CKEDITOR.dtd.$block))return this.setStartBefore(a), +this.setEndAfter(a),!0;var f=a,g=c,n=void 0;f.type==CKEDITOR.NODE_ELEMENT&&f.isEditable(!1)&&(n=f[b?"getLast":"getFirst"](d));g||n||(n=f[b?"getPrevious":"getNext"](d));a=n}return!!c},moveToClosestEditablePosition:function(a,b){var d,c=0,f,g,k=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];a?(d=new CKEDITOR.dom.range(this.root),d.moveToPosition(a,k[b?0:1])):d=this.clone();if(a&&!a.is(CKEDITOR.dtd.$block))c=1;else if(f=d[b?"getNextEditableNode":"getPreviousEditableNode"]())c=1,(g=f.type== +CKEDITOR.NODE_ELEMENT)&&f.is(CKEDITOR.dtd.$block)&&"false"==f.getAttribute("contenteditable")?(d.setStartAt(f,CKEDITOR.POSITION_BEFORE_START),d.setEndAt(f,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&g&&f.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(d.setEnd(f,0),d.collapse()):d.moveToPosition(f,k[b?1:0]);c&&this.moveToRange(d);return!!c},moveToElementEditStart:function(a){return this.moveToElementEditablePosition(a)},moveToElementEditEnd:function(a){return this.moveToElementEditablePosition(a, +!0)},getEnclosedNode:function(){var a=this.clone();a.optimize();if(a.startContainer.type!=CKEDITOR.NODE_ELEMENT||a.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var a=new CKEDITOR.dom.walker(a),b=CKEDITOR.dom.walker.bookmark(!1,!0),d=CKEDITOR.dom.walker.whitespaces(!0);a.evaluator=function(a){return d(a)&&b(a)};var c=a.next();a.reset();return c&&c.equals(a.previous())?c:null},getTouchedStartNode:function(){var a=this.startContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.startOffset)|| +a},getTouchedEndNode:function(){var a=this.endContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.endOffset-1)||a},getNextEditableNode:f(),getPreviousEditableNode:f(1),scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",this.document),b,d,c,f=this.clone();f.optimize();(c=f.startContainer.type==CKEDITOR.NODE_TEXT)?(d=f.startContainer.getText(),b=f.startContainer.split(f.startOffset),a.insertAfter(f.startContainer)): +f.insertNode(a);a.scrollIntoView();c&&(f.startContainer.setText(d),b.remove());a.remove()},_setStartContainer:function(a){this.startContainer=a},_setEndContainer:function(a){this.endContainer=a}}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START=3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3,CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT= +1,CKEDITOR.SHRINK_TEXT=2,"use strict",function(){function a(a){1>arguments.length||(this.range=a,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function e(a){var b=[];a.forEach(function(a){if("true"==a.getAttribute("contenteditable"))return b.push(a),!1},CKEDITOR.NODE_ELEMENT,!0);return b}function c(a,b,f,g){a:{null==g&&(g=e(f));for(var k;k=g.shift();)if(k.getDtd().p){g={element:k,remaining:g};break a}g=null}if(!g)return 0;if((k=CKEDITOR.filter.instances[g.element.data("cke-filter")])&& +!k.check(b))return c(a,b,f,g.remaining);b=new CKEDITOR.dom.range(g.element);b.selectNodeContents(g.element);b=b.createIterator();b.enlargeBr=a.enlargeBr;b.enforceRealBlocks=a.enforceRealBlocks;b.activeFilter=b.filter=k;a._.nestedEditable={element:g.element,container:f,remaining:g.remaining,iterator:b};return 1}function g(a,b,c){if(!b)return!1;a=a.clone();a.collapse(!c);return a.checkBoundaryOfElement(b,c?CKEDITOR.START:CKEDITOR.END)}var f=/^[\r\n\t ]+$/,m=CKEDITOR.dom.walker.bookmark(!1,!0),l=CKEDITOR.dom.walker.whitespaces(!0), +k=function(a){return m(a)&&l(a)},b={dd:1,dt:1,li:1};a.prototype={getNextParagraph:function(a){var h,e,l,u,t;a=a||"p";if(this._.nestedEditable){if(h=this._.nestedEditable.iterator.getNextParagraph(a))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,h;this.activeFilter=this.filter;if(c(this,a,this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(a);this._.nestedEditable= +null}if(!this.range.root.getDtd()[a])return null;if(!this._.started){var n=this.range.clone();e=n.startPath();var q=n.endPath(),w=!n.collapsed&&g(n,e.block),y=!n.collapsed&&g(n,q.block,1);n.shrink(CKEDITOR.SHRINK_ELEMENT,!0);w&&n.setStartAt(e.block,CKEDITOR.POSITION_BEFORE_END);y&&n.setEndAt(q.block,CKEDITOR.POSITION_AFTER_START);e=n.endContainer.hasAscendant("pre",!0)||n.startContainer.hasAscendant("pre",!0);n.enlarge(this.forceBrBreak&&!e||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS); +n.collapsed||(e=new CKEDITOR.dom.walker(n.clone()),q=CKEDITOR.dom.walker.bookmark(!0,!0),e.evaluator=q,this._.nextNode=e.next(),e=new CKEDITOR.dom.walker(n.clone()),e.evaluator=q,e=e.previous(),this._.lastNode=e.getNextSourceNode(!0,null,n.root),this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&(q=this.range.clone(),q.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),q.checkEndOfBlock()&& +(q=new CKEDITOR.dom.elementPath(q.endContainer,q.root),this._.lastNode=(q.block||q.blockLimit).getNextSourceNode(!0))),this._.lastNode&&n.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=n.document.createText(""),this._.lastNode.insertAfter(e)),n=null);this._.started=1;e=n}q=this._.nextNode;n=this._.lastNode;for(this._.nextNode=null;q;){var w=0,y=q.hasAscendant("pre"),C=q.type!=CKEDITOR.NODE_ELEMENT,r=0;if(C)q.type==CKEDITOR.NODE_TEXT&&f.test(q.getText())&&(C=0);else{var x=q.getName(); +if(CKEDITOR.dtd.$block[x]&&"false"==q.getAttribute("contenteditable")){h=q;c(this,a,h);break}else if(q.isBlockBoundary(this.forceBrBreak&&!y&&{br:1})){if("br"==x)C=1;else if(!e&&!q.getChildCount()&&"hr"!=x){h=q;l=q.equals(n);break}e&&(e.setEndAt(q,CKEDITOR.POSITION_BEFORE_START),"br"!=x&&(this._.nextNode=q));w=1}else{if(q.getFirst()){e||(e=this.range.clone(),e.setStartAt(q,CKEDITOR.POSITION_BEFORE_START));q=q.getFirst();continue}C=1}}C&&!e&&(e=this.range.clone(),e.setStartAt(q,CKEDITOR.POSITION_BEFORE_START)); +l=(!w||C)&&q.equals(n);if(e&&!w)for(;!q.getNext(k)&&!l;){x=q.getParent();if(x.isBlockBoundary(this.forceBrBreak&&!y&&{br:1})){w=1;C=0;l||x.equals(n);e.setEndAt(x,CKEDITOR.POSITION_BEFORE_END);break}q=x;C=1;l=q.equals(n);r=1}C&&e.setEndAt(q,CKEDITOR.POSITION_AFTER_END);q=this._getNextSourceNode(q,r,n);if((l=!q)||w&&e)break}if(!h){if(!e)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;h=new CKEDITOR.dom.elementPath(e.startContainer,e.root);q=h.blockLimit;w={div:1,th:1,td:1}; +h=h.block;!h&&q&&!this.enforceRealBlocks&&w[q.getName()]&&e.checkStartOfBlock()&&e.checkEndOfBlock()&&!q.equals(e.root)?h=q:!h||this.enforceRealBlocks&&h.is(b)?(h=this.range.document.createElement(a),e.extractContents().appendTo(h),h.trim(),e.insertNode(h),u=t=!0):"li"!=h.getName()?e.checkStartOfBlock()&&e.checkEndOfBlock()||(h=h.clone(!1),e.extractContents().appendTo(h),h.trim(),t=e.splitBlock(),u=!t.wasStartOfBlock,t=!t.wasEndOfBlock,e.insertNode(h)):l||(this._.nextNode=h.equals(n)?null:this._getNextSourceNode(e.getBoundaryNodes().endNode, +1,n))}u&&(u=h.getPrevious())&&u.type==CKEDITOR.NODE_ELEMENT&&("br"==u.getName()?u.remove():u.getLast()&&"br"==u.getLast().$.nodeName.toLowerCase()&&u.getLast().remove());t&&(u=h.getLast())&&u.type==CKEDITOR.NODE_ELEMENT&&"br"==u.getName()&&(!CKEDITOR.env.needsBrFiller||u.getPrevious(m)||u.getNext(m))&&u.remove();this._.nextNode||(this._.nextNode=l||h.equals(n)||!n?null:this._getNextSourceNode(h,1,n));return h},_getNextSourceNode:function(a,b,c){function f(a){return!(a.equals(c)||a.equals(g))}var g= +this.range.root;for(a=a.getNextSourceNode(b,null,f);!m(a);)a=a.getNextSourceNode(b,null,f);return a}};CKEDITOR.dom.range.prototype.createIterator=function(){return new a(this)}}(),CKEDITOR.command=function(a,e){this.uiItems=[];this.exec=function(c){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return!1;this.editorFocus&&a.focus();return!1===this.fire("exec")?!0:!1!==e.exec.call(this,a,c)};this.refresh=function(a,c){if(!this.readOnly&&a.readOnly)return!0;if(this.context&&!c.isContextFor(this.context)|| +!this.checkAllowed(!0))return this.disable(),!0;this.startDisabled||this.enable();this.modes&&!this.modes[a.mode]&&this.disable();return!1===this.fire("refresh",{editor:a,path:c})?!0:e.refresh&&!1!==e.refresh.apply(this,arguments)};var c;this.checkAllowed=function(g){return g||"boolean"!=typeof c?c=a.activeFilter.checkFeature(this):c};CKEDITOR.tools.extend(this,e,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!e.context,state:CKEDITOR.TRISTATE_DISABLED});CKEDITOR.event.call(this)},CKEDITOR.command.prototype= +{enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(this.preserveState&&"undefined"!=typeof this.previousState?this.previousState:CKEDITOR.TRISTATE_OFF)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(a){if(this.state==a||a!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())return!1;this.previousState=this.state;this.state=a;this.fire("state");return!0},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON): +this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"\x3c!DOCTYPE html\x3e",bodyId:"",bodyClass:"",fullPage:!1,height:200,extraPlugins:"",removePlugins:"",protectedSource:[], +tabIndex:0,width:"",baseFloatZIndex:1E4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function a(a,b,d,c,h){var f,g;a=[];for(f in b){g=b[f];g="boolean"==typeof g?{}:"function"==typeof g?{match:g}:F(g);"$"!=f.charAt(0)&&(g.elements=f);d&&(g.featureName=d.toLowerCase());var e=g;e.elements=l(e.elements,/\s+/)||null;e.propertiesOnly=e.propertiesOnly||!0===e.elements;var n=/\s*,\s*/,k=void 0;for(k in N){e[k]=l(e[k],n)||null;var r=e,m=E[k],p=l(e[E[k]],n),x=e[k],q=[], +C=!0,B=void 0;p?C=!1:p={};for(B in x)"!"==B.charAt(0)&&(B=B.slice(1),q.push(B),p[B]=!0,C=!1);for(;B=q.pop();)x[B]=x["!"+B],delete x["!"+B];r[m]=(C?!1:p)||null}e.match=e.match||null;c.push(g);a.push(g)}b=h.elements;h=h.generic;var t;d=0;for(c=a.length;d<c;++d){f=F(a[d]);g=!0===f.classes||!0===f.styles||!0===f.attributes;e=f;k=m=n=void 0;for(n in N)e[n]=w(e[n]);r=!0;for(k in E){n=E[k];m=e[n];p=[];x=void 0;for(x in m)-1<x.indexOf("*")?p.push(new RegExp("^"+x.replace(/\*/g,".*")+"$")):p.push(x);m=p;m.length&& +(e[n]=m,r=!1)}e.nothingRequired=r;e.noProperties=!(e.attributes||e.classes||e.styles);if(!0===f.elements||null===f.elements)h[g?"unshift":"push"](f);else for(t in e=f.elements,delete f.elements,e)if(b[t])b[t][g?"unshift":"push"](f);else b[t]=[f]}}function e(a,b,d,h){if(!a.match||a.match(b))if(h||k(a,b))if(a.propertiesOnly||(d.valid=!0),d.allAttributes||(d.allAttributes=c(a.attributes,b.attributes,d.validAttributes)),d.allStyles||(d.allStyles=c(a.styles,b.styles,d.validStyles)),!d.allClasses){a=a.classes; +b=b.classes;h=d.validClasses;if(a)if(!0===a)a=!0;else{for(var f=0,g=b.length,e;f<g;++f)e=b[f],h[e]||(h[e]=a(e));a=!1}else a=!1;d.allClasses=a}}function c(a,b,d){if(!a)return!1;if(!0===a)return!0;for(var c in b)d[c]||(d[c]=a(c));return!1}function g(a,b,d){if(!a.match||a.match(b)){if(a.noProperties)return!1;d.hadInvalidAttribute=f(a.attributes,b.attributes)||d.hadInvalidAttribute;d.hadInvalidStyle=f(a.styles,b.styles)||d.hadInvalidStyle;a=a.classes;b=b.classes;if(a){for(var c=!1,h=!0===a,g=b.length;g--;)if(h|| +a(b[g]))b.splice(g,1),c=!0;a=c}else a=!1;d.hadInvalidClass=a||d.hadInvalidClass}}function f(a,b){if(!a)return!1;var d=!1,c=!0===a,h;for(h in b)if(c||a(h))delete b[h],d=!0;return d}function m(a,b,d){if(a.disabled||a.customConfig&&!d||!b)return!1;a._.cachedChecks={};return!0}function l(a,b){if(!a)return!1;if(!0===a)return a;if("string"==typeof a)return a=J(a),"*"==a?!0:CKEDITOR.tools.convertArrayToObject(a.split(b));if(CKEDITOR.tools.isArray(a))return a.length?CKEDITOR.tools.convertArrayToObject(a): +!1;var d={},c=0,h;for(h in a)d[h]=a[h],c++;return c?d:!1}function k(a,d){if(a.nothingRequired)return!0;var c,h,f,g;if(f=a.requiredClasses)for(g=d.classes,c=0;c<f.length;++c)if(h=f[c],"string"==typeof h){if(-1==CKEDITOR.tools.indexOf(g,h))return!1}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(g,h))return!1;return b(d.styles,a.requiredStyles)&&b(d.attributes,a.requiredAttributes)}function b(a,b){if(!b)return!0;for(var d=0,c;d<b.length;++d)if(c=b[d],"string"==typeof c){if(!(c in a))return!1}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(a, +c))return!1;return!0}function d(a){if(!a)return{};a=a.split(/\s*,\s*/).sort();for(var b={};a.length;)b[a.shift()]="cke-test";return b}function h(a){var b,d,c,h,f={},g=1;for(a=J(a);b=a.match(P);)(d=b[2])?(c=p(d,"styles"),h=p(d,"attrs"),d=p(d,"classes")):c=h=d=null,f["$"+g++]={elements:b[1],classes:d,styles:c,attributes:h},a=a.slice(b[0].length);return f}function p(a,b){var d=a.match(T[b]);return d?J(d[1]):null}function v(a){var b=a.styleBackup=a.attributes.style,d=a.classBackup=a.attributes["class"]; +a.styles||(a.styles=CKEDITOR.tools.parseCssText(b||"",1));a.classes||(a.classes=d?d.split(/\s+/):[])}function u(a,b,d,c){var h=0,f;c.toHtml&&(b.name=b.name.replace(L,"$1"));if(c.doCallbacks&&a.elementCallbacks){a:{f=a.elementCallbacks;for(var k=0,r=f.length,m;k<r;++k)if(m=f[k](b)){f=m;break a}f=void 0}if(f)return f}if(c.doTransform&&(f=a._.transformations[b.name])){v(b);for(k=0;k<f.length;++k)x(a,b,f[k]);n(b)}if(c.doFilter){a:{k=b.name;r=a._;a=r.allowedRules.elements[k];f=r.allowedRules.generic;k= +r.disallowedRules.elements[k];r=r.disallowedRules.generic;m=c.skipRequired;var p={valid:!1,validAttributes:{},validClasses:{},validStyles:{},allAttributes:!1,allClasses:!1,allStyles:!1,hadInvalidAttribute:!1,hadInvalidClass:!1,hadInvalidStyle:!1},E,l;if(a||f){v(b);if(k)for(E=0,l=k.length;E<l;++E)if(!1===g(k[E],b,p)){a=null;break a}if(r)for(E=0,l=r.length;E<l;++E)g(r[E],b,p);if(a)for(E=0,l=a.length;E<l;++E)e(a[E],b,p,m);if(f)for(E=0,l=f.length;E<l;++E)e(f[E],b,p,m);a=p}else a=null}if(!a||!a.valid)return d.push(b), +1;l=a.validAttributes;var B=a.validStyles;f=a.validClasses;var k=b.attributes,C=b.styles,r=b.classes;m=b.classBackup;var w=b.styleBackup,t,z,A=[],p=[],u=/^data-cke-/;E=!1;delete k.style;delete k["class"];delete b.classBackup;delete b.styleBackup;if(!a.allAttributes)for(t in k)l[t]||(u.test(t)?t==(z=t.replace(/^data-cke-saved-/,""))||l[z]||(delete k[t],E=!0):(delete k[t],E=!0));if(!a.allStyles||a.hadInvalidStyle){for(t in C)a.allStyles||B[t]?A.push(t+":"+C[t]):E=!0;A.length&&(k.style=A.sort().join("; "))}else w&& +(k.style=w);if(!a.allClasses||a.hadInvalidClass){for(t=0;t<r.length;++t)(a.allClasses||f[r[t]])&&p.push(r[t]);p.length&&(k["class"]=p.sort().join(" "));m&&p.length<m.split(/\s+/).length&&(E=!0)}else m&&(k["class"]=m);E&&(h=1);if(!c.skipFinalValidation&&!q(b))return d.push(b),1}c.toHtml&&(b.name=b.name.replace(Q,"cke:$1"));return h}function t(a){var b=[],d;for(d in a)-1<d.indexOf("*")&&b.push(d.replace(/\*/g,".*"));return b.length?new RegExp("^(?:"+b.join("|")+")$"):null}function n(a){var b=a.attributes, +d;delete b.style;delete b["class"];if(d=CKEDITOR.tools.writeCssText(a.styles,!0))b.style=d;a.classes.length&&(b["class"]=a.classes.sort().join(" "))}function q(a){switch(a.name){case "a":if(!(a.children.length||a.attributes.name||a.attributes.id))return!1;break;case "img":if(!a.attributes.src)return!1}return!0}function w(a){if(!a)return!1;if(!0===a)return!0;var b=t(a);return function(d){return d in a||b&&d.match(b)}}function y(){return new CKEDITOR.htmlParser.element("br")}function C(a){return a.type== +CKEDITOR.NODE_ELEMENT&&("br"==a.name||G.$block[a.name])}function r(a,b,d){var c=a.name;if(G.$empty[c]||!a.children.length)"hr"==c&&"br"==b?a.replaceWith(y()):(a.parent&&d.push({check:"it",el:a.parent}),a.remove());else if(G.$block[c]||"tr"==c)if("br"==b)a.previous&&!C(a.previous)&&(b=y(),b.insertBefore(a)),a.next&&!C(a.next)&&(b=y(),b.insertAfter(a)),a.replaceWithChildren();else{var c=a.children,h;b:{h=G[b];for(var f=0,g=c.length,e;f<g;++f)if(e=c[f],e.type==CKEDITOR.NODE_ELEMENT&&!h[e.name]){h=!1; +break b}h=!0}if(h)a.name=b,a.attributes={},d.push({check:"parent-down",el:a});else{h=a.parent;for(var f=h.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||"body"==h.name,k,n,g=c.length;0<g;)e=c[--g],f&&(e.type==CKEDITOR.NODE_TEXT||e.type==CKEDITOR.NODE_ELEMENT&&G.$inline[e.name])?(k||(k=new CKEDITOR.htmlParser.element(b),k.insertAfter(a),d.push({check:"parent-down",el:k})),k.add(e,0)):(k=null,n=G[h.name]||G.span,e.insertAfter(a),h.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||e.type!=CKEDITOR.NODE_ELEMENT||n[e.name]|| +d.push({check:"el-up",el:e}));a.remove()}}else c in{style:1,script:1}?a.remove():(a.parent&&d.push({check:"it",el:a.parent}),a.replaceWithChildren())}function x(a,b,d){var c,h;for(c=0;c<d.length;++c)if(h=d[c],!(h.check&&!a.check(h.check,!1)||h.left&&!h.left(b))){h.right(b,O);break}}function B(a,b){var d=b.getDefinition(),c=d.attributes,h=d.styles,f,g,e,k;if(a.name!=d.element)return!1;for(f in c)if("class"==f)for(d=c[f].split(/\s+/),e=a.classes.join("|");k=d.pop();){if(-1==e.indexOf(k))return!1}else if(a.attributes[f]!= +c[f])return!1;for(g in h)if(a.styles[g]!=h[g])return!1;return!0}function A(a,b){var d,c;"string"==typeof a?d=a:a instanceof CKEDITOR.style?c=a:(d=a[0],c=a[1]);return[{element:d,left:c,right:function(a,d){d.transform(a,b)}}]}function z(a){return function(b){return B(b,a)}}function D(a){return function(b,d){d[a](b)}}var G=CKEDITOR.dtd,F=CKEDITOR.tools.copy,J=CKEDITOR.tools.trim,I=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2;CKEDITOR.filter=function(a){this.allowedContent=[];this.disallowedContent= +[];this.elementCallbacks=null;this.disabled=!1;this.editor=null;this.id=CKEDITOR.tools.getNextNumber();this._={allowedRules:{elements:{},generic:[]},disallowedRules:{elements:{},generic:[]},transformations:{},cachedTests:{}};CKEDITOR.filter.instances[this.id]=this;if(a instanceof CKEDITOR.editor){a=this.editor=a;this.customConfig=!0;var b=a.config.allowedContent;!0===b?this.disabled=!0:(b||(this.customConfig=!1),this.allow(b,"config",1),this.allow(a.config.extraAllowedContent,"extra",1),this.allow(I[a.enterMode]+ +" "+I[a.shiftEnterMode],"default",1),this.disallow(a.config.disallowedContent))}else this.customConfig=!1,this.allow(a,"default",1)};CKEDITOR.filter.instances={};CKEDITOR.filter.prototype={allow:function(b,d,c){if(!m(this,b,c))return!1;var f,g;if("string"==typeof b)b=h(b);else if(b instanceof CKEDITOR.style){if(b.toAllowedContentRules)return this.allow(b.toAllowedContentRules(this.editor),d,c);f=b.getDefinition();b={};c=f.attributes;b[f.element]=f={styles:f.styles,requiredStyles:f.styles&&CKEDITOR.tools.objectKeys(f.styles)}; +c&&(c=F(c),f.classes=c["class"]?c["class"].split(/\s+/):null,f.requiredClasses=f.classes,delete c["class"],f.attributes=c,f.requiredAttributes=c&&CKEDITOR.tools.objectKeys(c))}else if(CKEDITOR.tools.isArray(b)){for(f=0;f<b.length;++f)g=this.allow(b[f],d,c);return g}a(this,b,d,this.allowedContent,this._.allowedRules);return!0},applyTo:function(a,b,d,c){if(this.disabled)return!1;var h=this,f=[],g=this.editor&&this.editor.config.protectedSource,e,k=!1,n={doFilter:!d,doTransform:!0,doCallbacks:!0,toHtml:b}; +a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if("off"==a.attributes["data-cke-filter"])return!1;if(!b||"span"!=a.name||!~CKEDITOR.tools.objectKeys(a.attributes).join("|").indexOf("data-cke-"))if(e=u(h,a,f,n),e&1)k=!0;else if(e&2)return!1}else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var d;a:{var c=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));d=[];var r,m,p;if(g)for(m=0;m<g.length;++m)if((p=c.match(g[m]))&&p[0].length==c.length){d=!0; +break a}c=CKEDITOR.htmlParser.fragment.fromHtml(c);1==c.children.length&&(r=c.children[0]).type==CKEDITOR.NODE_ELEMENT&&u(h,r,d,n);d=!d.length}d||f.push(a)}},null,!0);f.length&&(k=!0);var m;a=[];c=I[c||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];for(var p;d=f.pop();)d.type==CKEDITOR.NODE_ELEMENT?r(d,c,a):d.remove();for(;m=a.pop();)if(d=m.el,d.parent)switch(p=G[d.parent.name]||G.span,m.check){case "it":G.$removeEmpty[d.name]&&!d.children.length?r(d,c,a):q(d)||r(d,c,a);break;case "el-up":d.parent.type== +CKEDITOR.NODE_DOCUMENT_FRAGMENT||p[d.name]||r(d,c,a);break;case "parent-down":d.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||p[d.name]||r(d.parent,c,a)}return k},checkFeature:function(a){if(this.disabled||!a)return!0;a.toFeature&&(a=a.toFeature(this.editor));return!a.requiredContent||this.check(a.requiredContent)},disable:function(){this.disabled=!0},disallow:function(b){if(!m(this,b,!0))return!1;"string"==typeof b&&(b=h(b));a(this,b,null,this.disallowedContent,this._.disallowedRules);return!0}, +addContentForms:function(a){if(!this.disabled&&a){var b,d,c=[],h;for(b=0;b<a.length&&!h;++b)d=a[b],("string"==typeof d||d instanceof CKEDITOR.style)&&this.check(d)&&(h=d);if(h){for(b=0;b<a.length;++b)c.push(A(a[b],h));this.addTransformations(c)}}},addElementCallback:function(a){this.elementCallbacks||(this.elementCallbacks=[]);this.elementCallbacks.push(a)},addFeature:function(a){if(this.disabled||!a)return!0;a.toFeature&&(a=a.toFeature(this.editor));this.allow(a.allowedContent,a.name);this.addTransformations(a.contentTransformations); +this.addContentForms(a.contentForms);return a.requiredContent&&(this.customConfig||this.disallowedContent.length)?this.check(a.requiredContent):!0},addTransformations:function(a){var b,d;if(!this.disabled&&a){var c=this._.transformations,h;for(h=0;h<a.length;++h){b=a[h];var f=void 0,g=void 0,e=void 0,k=void 0,n=void 0,r=void 0;d=[];for(g=0;g<b.length;++g)e=b[g],"string"==typeof e?(e=e.split(/\s*:\s*/),k=e[0],n=null,r=e[1]):(k=e.check,n=e.left,r=e.right),f||(f=e,f=f.element?f.element:k?k.match(/^([a-z0-9]+)/i)[0]: +f.left.getDefinition().element),n instanceof CKEDITOR.style&&(n=z(n)),d.push({check:k==f?null:k,left:n,right:"string"==typeof r?D(r):r});b=f;c[b]||(c[b]=[]);c[b].push(d)}}},check:function(a,b,c){if(this.disabled)return!0;if(CKEDITOR.tools.isArray(a)){for(var f=a.length;f--;)if(this.check(a[f],b,c))return!0;return!1}var g,e;if("string"==typeof a){e=a+"\x3c"+(!1===b?"0":"1")+(c?"1":"0")+"\x3e";if(e in this._.cachedChecks)return this._.cachedChecks[e];f=h(a).$1;g=f.styles;var k=f.classes;f.name=f.elements; +f.classes=k=k?k.split(/\s*,\s*/):[];f.styles=d(g);f.attributes=d(f.attributes);f.children=[];k.length&&(f.attributes["class"]=k.join(" "));g&&(f.attributes.style=CKEDITOR.tools.writeCssText(f.styles));g=f}else f=a.getDefinition(),g=f.styles,k=f.attributes||{},g?(g=F(g),k.style=CKEDITOR.tools.writeCssText(g,!0)):g={},g={name:f.element,attributes:k,classes:k["class"]?k["class"].split(/\s+/):[],styles:g,children:[]};var k=CKEDITOR.tools.clone(g),r=[],m;if(!1!==b&&(m=this._.transformations[g.name])){for(f= +0;f<m.length;++f)x(this,g,m[f]);n(g)}u(this,k,r,{doFilter:!0,doTransform:!1!==b,skipRequired:!c,skipFinalValidation:!c});b=0<r.length?!1:CKEDITOR.tools.objectCompare(g.attributes,k.attributes,!0)?!0:!1;"string"==typeof a&&(this._.cachedChecks[e]=b);return b},getAllowedEnterMode:function(){var a=["p","div","br"],b={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(d,c){var h=a.slice(),f;if(this.check(I[d]))return d;for(c||(h=h.reverse());f=h.pop();)if(this.check(f))return b[f]; +return CKEDITOR.ENTER_BR}}(),destroy:function(){delete CKEDITOR.filter.instances[this.id];delete this._;delete this.allowedContent;delete this.disallowedContent}};var N={styles:1,attributes:1,classes:1},E={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},P=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,T={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},L=/^cke:(object|embed|param)$/, +Q=/^(object|embed|param)$/,O=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a,"height")},sizeToAttribute:function(a){this.lengthToAttribute(a,"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,b,d){d=d||b;if(!(d in a.styles)){var c=a.attributes[b];c&&(/^\d+$/.test(c)&&(c+="px"),a.styles[d]=c)}delete a.attributes[b]},lengthToAttribute:function(a,b,d){d=d||b;if(!(d in a.attributes)){var c=a.styles[b],h=c&&c.match(/^(\d+)(?:\.\d*)?px$/); +h?a.attributes[d]=h[1]:"cke-test"==c&&(a.attributes[d]="cke-test")}delete a.styles[b]},alignmentToStyle:function(a){if(!("float"in a.styles)){var b=a.attributes.align;if("left"==b||"right"==b)a.styles["float"]=b}delete a.attributes.align},alignmentToAttribute:function(a){if(!("align"in a.attributes)){var b=a.styles["float"];if("left"==b||"right"==b)a.attributes.align=b}delete a.styles["float"]},matchesStyle:B,transform:function(a,b){if("string"==typeof b)a.name=b;else{var d=b.getDefinition(),c=d.styles, +h=d.attributes,f,g,e,k;a.name=d.element;for(f in h)if("class"==f)for(d=a.classes.join("|"),e=h[f].split(/\s+/);k=e.pop();)-1==d.indexOf(k)&&a.classes.push(k);else a.attributes[f]=h[f];for(g in c)a.styles[g]=c[g]}}}}(),function(){CKEDITOR.focusManager=function(a){if(a.focusManager)return a.focusManager;this.hasFocus=!1;this.currentActive=null;this._={editor:a};return this};CKEDITOR.focusManager._={blurDelay:200};CKEDITOR.focusManager.prototype={focus:function(a){this._.timer&&clearTimeout(this._.timer); +a&&(this.currentActive=a);this.hasFocus||this._.locked||((a=CKEDITOR.currentInstance)&&a.focusManager.blur(1),this.hasFocus=!0,(a=this._.editor.container)&&a.addClass("cke_focus"),this._.editor.fire("focus"))},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(a){function e(){if(this.hasFocus){this.hasFocus=!1;var a=this._.editor.container;a&&a.removeClass("cke_focus");this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var c= +CKEDITOR.focusManager._.blurDelay;a||!c?e.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;e.call(this)},c,this)}},add:function(a,e){var c=a.getCustomData("focusmanager");if(!c||c!=this){c&&c.remove(a);var c="focus",g="blur";e&&(CKEDITOR.env.ie?(c="focusin",g="focusout"):CKEDITOR.event.useCapture=1);var f={blur:function(){a.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(a)}};a.on(c,f.focus,this);a.on(g,f.blur,this);e&&(CKEDITOR.event.useCapture= +0);a.setCustomData("focusmanager",this);a.setCustomData("focusmanager_handlers",f)}},remove:function(a){a.removeCustomData("focusmanager");var e=a.removeCustomData("focusmanager_handlers");a.removeListener("blur",e.blur);a.removeListener("focus",e.focus)}}}(),CKEDITOR.keystrokeHandler=function(a){if(a.keystrokeHandler)return a.keystrokeHandler;this.keystrokes={};this.blockedKeystrokes={};this._={editor:a};return this},function(){var a,e=function(c){c=c.data;var f=c.getKeystroke(),e=this.keystrokes[f], +l=this._.editor;a=!1===l.fire("key",{keyCode:f,domEvent:c});a||(e&&(a=!1!==l.execCommand(e,{from:"keystrokeHandler"})),a||(a=!!this.blockedKeystrokes[f]));a&&c.preventDefault(!0);return!a},c=function(c){a&&(a=!1,c.data.preventDefault(!0))};CKEDITOR.keystrokeHandler.prototype={attach:function(a){a.on("keydown",e,this);if(CKEDITOR.env.gecko&&CKEDITOR.env.mac)a.on("keypress",c,this)}}}(),function(){CKEDITOR.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,"en-au":1,"en-ca":1,"en-gb":1, +en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,"zh-cn":1,zh:1},rtl:{ar:1,fa:1,he:1,ku:1,ug:1},load:function(a,e,c){a&&CKEDITOR.lang.languages[a]||(a=this.detect(e,a));var g=this;e=function(){g[a].dir=g.rtl[a]?"rtl":"ltr";c(a,g[a])};this[a]?e():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+ +a+".js"),e,this)},detect:function(a,e){var c=this.languages;e=e||navigator.userLanguage||navigator.language||a;var g=e.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),f=g[1],g=g[2];c[f+"-"+g]?f=f+"-"+g:c[f]||(f=null);CKEDITOR.lang.detect=f?function(){return f}:function(a){return a};return f||a}}}(),CKEDITOR.scriptLoader=function(){var a={},e={};return{load:function(c,g,f,m){var l="string"==typeof c;l&&(c=[c]);f||(f=CKEDITOR);var k=c.length,b=[],d=[],h=function(a){g&&(l?g.call(f,a):g.call(f,b,d))};if(0=== +k)h(!0);else{var p=function(a,c){(c?b:d).push(a);0>=--k&&(m&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),h(c))},v=function(b,d){a[b]=1;var c=e[b];delete e[b];for(var h=0;h<c.length;h++)c[h](b,d)},u=function(b){if(a[b])p(b,!0);else{var d=e[b]||(e[b]=[]);d.push(p);if(!(1<d.length)){var c=new CKEDITOR.dom.element("script");c.setAttributes({type:"text/javascript",src:b});g&&(CKEDITOR.env.ie&&11>CKEDITOR.env.version?c.$.onreadystatechange=function(){if("loaded"==c.$.readyState||"complete"== +c.$.readyState)c.$.onreadystatechange=null,v(b,!0)}:(c.$.onload=function(){setTimeout(function(){v(b,!0)},0)},c.$.onerror=function(){v(b,!1)}));c.appendTo(CKEDITOR.document.getHead())}}};m&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var t=0;t<k;t++)u(c[t])}},queue:function(){function a(){var c;(c=g[0])&&this.load(c.scriptUrl,c.callback,CKEDITOR,0)}var g=[];return function(f,e){var l=this;g.push({scriptUrl:f,callback:function(){e&&e.apply(this,arguments);g.shift();a.call(l)}}); +1==g.length&&a.call(this)}}()}}(),CKEDITOR.resourceManager=function(a,e){this.basePath=a;this.fileName=e;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(a,e){if(this.registered[a])throw Error('[CKEDITOR.resourceManager.add] The resource name "'+a+'" is already registered.');var c=this.registered[a]=e||{};c.name=a;c.path=this.getPath(a);CKEDITOR.fire(a+CKEDITOR.tools.capitalize(this.fileName)+"Ready",c);return this.get(a)}, +get:function(a){return this.registered[a]||null},getPath:function(a){var e=this.externals[a];return CKEDITOR.getUrl(e&&e.dir||this.basePath+a+"/")},getFilePath:function(a){var e=this.externals[a];return CKEDITOR.getUrl(this.getPath(a)+(e?e.file:this.fileName+".js"))},addExternal:function(a,e,c){a=a.split(",");for(var g=0;g<a.length;g++){var f=a[g];c||(e=e.replace(/[^\/]+$/,function(a){c=a;return""}));this.externals[f]={dir:e,file:c||this.fileName+".js"}}},load:function(a,e,c){CKEDITOR.tools.isArray(a)|| +(a=a?[a]:[]);for(var g=this.loaded,f=this.registered,m=[],l={},k={},b=0;b<a.length;b++){var d=a[b];if(d)if(g[d]||f[d])k[d]=this.get(d);else{var h=this.getFilePath(d);m.push(h);h in l||(l[h]=[]);l[h].push(d)}}CKEDITOR.scriptLoader.load(m,function(a,b){if(b.length)throw Error('[CKEDITOR.resourceManager.load] Resource name "'+l[b[0]].join(",")+'" was not found at "'+b[0]+'".');for(var d=0;d<a.length;d++)for(var h=l[a[d]],f=0;f<h.length;f++){var m=h[f];k[m]=this.get(m);g[m]=1}e.call(c,k)},this)}},CKEDITOR.plugins= +new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(a){var e={};return function(c,g,f){var m={},l=function(c){a.call(this,c,function(a){CKEDITOR.tools.extend(m,a);var d=[],c;for(c in a){var k=a[c],v=k&&k.requires;if(!e[c]){if(k.icons)for(var u=k.icons.split(","),t=u.length;t--;)CKEDITOR.skin.addIcon(u[t],k.path+"icons/"+(CKEDITOR.env.hidpi&&k.hidpi?"hidpi/":"")+u[t]+".png");e[c]=1}if(v)for(v.split&&(v=v.split(",")),k=0;k<v.length;k++)m[v[k]]|| +d.push(v[k])}if(d.length)l.call(this,d);else{for(c in m)k=m[c],k.onLoad&&!k.onLoad._called&&(!1===k.onLoad()&&delete m[c],k.onLoad._called=1);g&&g.call(f||window,m)}},this)};l.call(this,c)}}),CKEDITOR.plugins.setLang=function(a,e,c){var g=this.get(a);a=g.langEntries||(g.langEntries={});g=g.lang||(g.lang=[]);g.split&&(g=g.split(","));-1==CKEDITOR.tools.indexOf(g,e)&&g.push(e);a[e]=c},CKEDITOR.ui=function(a){if(a.ui)return a.ui;this.items={};this.instances={};this.editor=a;this._={handlers:{}};return this}, +CKEDITOR.ui.prototype={add:function(a,e,c){c.name=a.toLowerCase();var g=this.items[a]={type:e,command:c.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(g,c)},get:function(a){return this.instances[a]},create:function(a){var e=this.items[a],c=e&&this._.handlers[e.type],g=e&&e.command&&this.editor.getCommand(e.command),c=c&&c.create.apply(this,e.args);this.instances[a]=c;g&&g.uiItems.push(c);c&&!c.type&&(c.type=e.type);return c},addHandler:function(a,e){this._.handlers[a]= +e},space:function(a){return CKEDITOR.document.getById(this.spaceId(a))},spaceId:function(a){return this.editor.id+"_"+a}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function a(a,b,d){CKEDITOR.event.call(this);a=a&&CKEDITOR.tools.clone(a);if(void 0!==b){if(!(b instanceof CKEDITOR.dom.element))throw Error("Expect element of type CKEDITOR.dom.element.");if(!d)throw Error("One of the element modes must be specified.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&d==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks."); +if(!c(b,d))throw Error('The specified element mode is not supported on element: "'+b.getName()+'".');this.element=b;this.elementMode=d;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(b.getId()||b.getNameAtt())}else this.elementMode=CKEDITOR.ELEMENT_MODE_NONE;this._={};this.commands={};this.templates={};this.name=this.name||e();this.id=CKEDITOR.tools.getNextId();this.status="unloaded";this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config);this.ui=new CKEDITOR.ui(this);this.focusManager= +new CKEDITOR.focusManager(this);this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this);this.on("readOnly",g);this.on("selectionChange",function(a){m(this,a.data.path)});this.on("activeFilterChange",function(){m(this,this.elementPath(),!0)});this.on("mode",g);this.on("instanceReady",function(){this.config.startupFocus&&this.focus()});CKEDITOR.fire("instanceCreated",null,this);CKEDITOR.add(this);CKEDITOR.tools.setTimeout(function(){k(this,a)},0,this)}function e(){do var a="editor"+ ++u;while(CKEDITOR.instances[a]); +return a}function c(a,b){return b==CKEDITOR.ELEMENT_MODE_INLINE?a.is(CKEDITOR.dtd.$editable)||a.is("textarea"):b==CKEDITOR.ELEMENT_MODE_REPLACE?!a.is(CKEDITOR.dtd.$nonBodyContent):1}function g(){var a=this.commands,b;for(b in a)f(this,a[b])}function f(a,b){b[b.startDisabled?"disable":a.readOnly&&!b.readOnly?"disable":b.modes[a.mode]?"enable":"disable"]()}function m(a,b,d){if(b){var c,h,f=a.commands;for(h in f)c=f[h],(d||c.contextSensitive)&&c.refresh(a,b)}}function l(a){var b=a.config.customConfig; +if(!b)return!1;var b=CKEDITOR.getUrl(b),d=t[b]||(t[b]={});d.fn?(d.fn.call(a,a.config),CKEDITOR.getUrl(a.config.customConfig)!=b&&l(a)||a.fireOnce("customConfigLoaded")):CKEDITOR.scriptLoader.queue(b,function(){d.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};l(a)});return!0}function k(a,d){a.on("customConfigLoaded",function(){if(d){if(d.on)for(var c in d.on)a.on(c,d.on[c]);CKEDITOR.tools.extend(a.config,d,!0);delete a.config.on}c=a.config;a.readOnly=c.readOnly?!0:a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE? +a.element.is("textarea")?a.element.hasAttribute("disabled")||a.element.hasAttribute("readonly"):a.element.isReadOnly():a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?a.element.hasAttribute("disabled")||a.element.hasAttribute("readonly"):!1;a.blockless=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?!(a.element.is("textarea")||CKEDITOR.dtd[a.element.getName()].p):!1;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;c.skin&&(CKEDITOR.skinName=c.skin);a.fireOnce("configLoaded");a.dataProcessor=new CKEDITOR.htmlDataProcessor(a);a.filter=a.activeFilter=new CKEDITOR.filter(a);b(a)});d&&null!=d.customConfig&&(a.config.customConfig=d.customConfig);l(a)||a.fireOnce("customConfigLoaded")}function b(a){CKEDITOR.skin.loadPart("editor",function(){d(a)})}function d(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(b, +d){var c=a.config.title;a.langCode=b;a.lang=CKEDITOR.tools.prototypedCopy(d);a.title="string"==typeof c||!1===c?c:[a.lang.editor,a.name].join(", ");a.config.contentsLangDirection||(a.config.contentsLangDirection=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.getDirection(1):a.lang.dir);a.fire("langLoaded");h(a)})}function h(a){a.getStylesSet(function(b){a.once("loaded",function(){a.fire("stylesSet",{styles:b})},null,null,1);p(a)})}function p(a){var b=a.config,d=b.plugins,c=b.extraPlugins,h= +b.removePlugins;if(c)var f=new RegExp("(?:^|,)(?:"+c.replace(/\s*,\s*/g,"|")+")(?\x3d,|$)","g"),d=d.replace(f,""),d=d+(","+c);if(h)var g=new RegExp("(?:^|,)(?:"+h.replace(/\s*,\s*/g,"|")+")(?\x3d,|$)","g"),d=d.replace(g,"");CKEDITOR.env.air&&(d+=",adobeair");CKEDITOR.plugins.load(d.split(","),function(d){var c=[],h=[],f=[];a.plugins=d;for(var k in d){var e=d[k],r=e.lang,m=null,p=e.requires,E;CKEDITOR.tools.isArray(p)&&(p=p.join(","));if(p&&(E=p.match(g)))for(;p=E.pop();)CKEDITOR.error("editor-plugin-required", +{plugin:p.replace(",",""),requiredBy:k});r&&!a.lang[k]&&(r.split&&(r=r.split(",")),0<=CKEDITOR.tools.indexOf(r,a.langCode)?m=a.langCode:(m=a.langCode.replace(/-.*/,""),m=m!=a.langCode&&0<=CKEDITOR.tools.indexOf(r,m)?m:0<=CKEDITOR.tools.indexOf(r,"en")?"en":r[0]),e.langEntries&&e.langEntries[m]?(a.lang[k]=e.langEntries[m],m=null):f.push(CKEDITOR.getUrl(e.path+"lang/"+m+".js")));h.push(m);c.push(e)}CKEDITOR.scriptLoader.load(f,function(){for(var d=["beforeInit","init","afterInit"],f=0;f<d.length;f++)for(var g= +0;g<c.length;g++){var k=c[g];0===f&&h[g]&&k.lang&&k.langEntries&&(a.lang[k.name]=k.langEntries[h[g]]);if(k[d[f]])k[d[f]](a)}a.fireOnce("pluginsLoaded");b.keystrokes&&a.setKeystroke(a.config.keystrokes);for(g=0;g<a.config.blockedKeystrokes.length;g++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[g]]=1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)})})}function v(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var b=this.getData(); +this.config.htmlEncodeOutput&&(b=CKEDITOR.tools.htmlEncode(b));a.is("textarea")?a.setValue(b):a.setHtml(b);return!0}return!1}a.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=a;var u=0,t={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(a,b){b.name=a.toLowerCase();var d=new CKEDITOR.command(this,b);this.mode&&f(this,d);return this.commands[a]=d},_attachToForm:function(){function a(b){d.updateElement();d._.required&&!c.getValue()&&!1===d.fire("required")&&b.data.preventDefault()} +function b(a){return!!(a&&a.call&&a.apply)}var d=this,c=d.element,h=new CKEDITOR.dom.element(c.$.form);c.is("textarea")&&h&&(h.on("submit",a),b(h.$.submit)&&(h.$.submit=CKEDITOR.tools.override(h.$.submit,function(b){return function(){a();b.apply?b.apply(this):b()}})),d.on("destroy",function(){h.removeListener("submit",a)}))},destroy:function(a){this.fire("beforeDestroy");!a&&v.call(this);this.editable(null);this.filter.destroy();delete this.filter;delete this.activeFilter;this.status="destroyed"; +this.fire("destroy");this.removeAllListeners();CKEDITOR.remove(this);CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(a){if(!a){a=this.getSelection();if(!a)return null;a=a.getStartElement()}return a?new CKEDITOR.dom.elementPath(a,this.editable()):null},createRange:function(){var a=this.editable();return a?new CKEDITOR.dom.range(a):null},execCommand:function(a,b){var d=this.getCommand(a),c={name:a,commandData:b,command:d};return d&&d.state!=CKEDITOR.TRISTATE_DISABLED&&!1!==this.fire("beforeCommandExec", +c)&&(c.returnValue=d.exec(c.commandData),!d.async&&!1!==this.fire("afterCommandExec",c))?c.returnValue:!1},getCommand:function(a){return this.commands[a]},getData:function(a){!a&&this.fire("beforeGetData");var b=this._.data;"string"!=typeof b&&(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");"string"!=typeof a&&(a=(a= +this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?a.is("textarea")?a.getValue():a.getHtml():"");return a},loadSnapshot:function(a){this.fire("loadSnapshot",a)},setData:function(a,b,d){var c=!0,h=b;b&&"object"==typeof b&&(d=b.internal,h=b.callback,c=!b.noSnapshot);!d&&c&&this.fire("saveSnapshot");if(h||!d)this.once("dataReady",function(a){!d&&c&&this.fire("saveSnapshot");h&&h.call(a.editor)});a={dataValue:a};!d&&this.fire("setData",a);this._.data=a.dataValue;!d&&this.fire("afterSetData", +a)},setReadOnly:function(a){a=null==a||a;this.readOnly!=a&&(this.readOnly=a,this.keystrokeHandler.blockedKeystrokes[8]=+a,this.editable().setReadOnly(a),this.fire("readOnly"))},insertHtml:function(a,b,d){this.fire("insertHtml",{dataValue:a,mode:b,range:d})},insertText:function(a){this.fire("insertText",a)},insertElement:function(a){this.fire("insertElement",a)},getSelectedHtml:function(a){var b=this.editable(),d=this.getSelection(),d=d&&d.getRanges();if(!b||!d||0===d.length)return null;b=b.getHtmlFromRange(d[0]); +return a?b.getHtml():b},extractSelectedHtml:function(a,b){var d=this.editable(),c=this.getSelection().getRanges();if(!d||0===c.length)return null;c=c[0];d=d.extractHtmlFromRange(c,b);b||this.getSelection().selectRanges([c]);return a?d.getHtml():d},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return"ready"==this.status&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return v.call(this)},setKeystroke:function(){for(var a= +this.keystrokeHandler.keystrokes,b=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],d,c,h=b.length;h--;)d=b[h],c=0,CKEDITOR.tools.isArray(d)&&(c=d[1],d=d[0]),c?a[d]=c:delete a[d]},addFeature:function(a){return this.filter.addFeature(a)},setActiveFilter:function(a){a||(a=this.filter);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,!0)))},setActiveEnterMode:function(a,b){a=a?this.blockless?CKEDITOR.ENTER_BR:a:this.enterMode;b=b?this.blockless?CKEDITOR.ENTER_BR:b:this.shiftEnterMode;if(this.activeEnterMode!=a||this.activeShiftEnterMode!=b)this.activeEnterMode=a,this.activeShiftEnterMode=b,this.fire("activeEnterModeChange")},showNotification:function(a){alert(a)}})}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE= +3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:/<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--\x3e)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},function(){var a=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,e={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){}, +onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(c){for(var g,f,m=0,l;g=this._.htmlPartsRegex.exec(c);){f=g.index;if(f>m)if(m=c.substring(m,f),l)l.push(m);else this.onText(m);m=this._.htmlPartsRegex.lastIndex;if(f=g[1])if(f=f.toLowerCase(),l&&CKEDITOR.dtd.$cdata[f]&&(this.onCDATA(l.join("")),l=null),!l){this.onTagClose(f);continue}if(l)l.push(g[0]);else if(f=g[3]){if(f=f.toLowerCase(),!/="/.test(f)){var k={},b,d=g[4];g=!!g[5];if(d)for(;b=a.exec(d);){var h=b[1].toLowerCase(); +b=b[2]||b[3]||b[4]||"";k[h]=!b&&e[h]?h:CKEDITOR.tools.htmlDecodeAttr(b)}this.onTagOpen(f,k,g);!l&&CKEDITOR.dtd.$cdata[f]&&(l=[])}}else if(f=g[2])this.onComment(f)}if(c.length>m)this.onText(c.substring(m,c.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(a){this._.output.push("\x3c",a)},openTagClose:function(a,e){e?this._.output.push(" /\x3e"):this._.output.push("\x3e")},attribute:function(a,e){"string"==typeof e&&(e= +CKEDITOR.tools.htmlEncodeAttr(e));this._.output.push(" ",a,'\x3d"',e,'"')},closeTag:function(a){this._.output.push("\x3c/",a,"\x3e")},text:function(a){this._.output.push(a)},comment:function(a){this._.output.push("\x3c!--",a,"--\x3e")},write:function(a){this._.output.push(a)},reset:function(){this._.output=[];this._.indent=!1},getHtml:function(a){var e=this._.output.join("");a&&this.reset();return e}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype= +{remove:function(){var a=this.parent.children,e=CKEDITOR.tools.indexOf(a,this),c=this.previous,g=this.next;c&&(c.next=g);g&&(g.previous=c);a.splice(e,1);this.parent=null},replaceWith:function(a){var e=this.parent.children,c=CKEDITOR.tools.indexOf(e,this),g=a.previous=this.previous,f=a.next=this.next;g&&(g.next=a);f&&(f.previous=a);e[c]=a;a.parent=this.parent;this.parent=null},insertAfter:function(a){var e=a.parent.children,c=CKEDITOR.tools.indexOf(e,a),g=a.next;e.splice(c+1,0,this);this.next=a.next; +this.previous=a;a.next=this;g&&(g.previous=this);this.parent=a.parent},insertBefore:function(a){var e=a.parent.children,c=CKEDITOR.tools.indexOf(e,a);e.splice(c,0,this);this.next=a;(this.previous=a.previous)&&(a.previous.next=this);a.previous=this;this.parent=a.parent},getAscendant:function(a){var e="function"==typeof a?a:"string"==typeof a?function(c){return c.name==a}:function(c){return c.name in a},c=this.parent;for(;c&&c.type==CKEDITOR.NODE_ELEMENT;){if(e(c))return c;c=c.parent}return null},wrapWith:function(a){this.replaceWith(a); +a.add(this);return a},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(a){return a||{}}}}(),"use strict",CKEDITOR.htmlParser.comment=function(a){this.value=a;this._={isBlockLike:!1}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(a,e){var c=this.value;if(!(c=a.onComment(e,c,this)))return this.remove(),!1;if("string"!=typeof c)return this.replaceWith(c),!1;this.value= +c;return!0},writeHtml:function(a,e){e&&this.filter(e);a.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(a){this.value=a;this._={isBlockLike:!1}};CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(a,e){if(!(this.value=a.onText(e,this.value,this)))return this.remove(),!1},writeHtml:function(a,e){e&&this.filter(e);a.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(a){this.value= +a};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(a){a.write(this.value)}})}(),"use strict",CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:!0,hasInlineStarted:!1}},function(){function a(a){return a.attributes["data-cke-survive"]?!1:"a"==a.name&&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),c={ol:1,ul:1},g=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),f={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(m,l,k){function b(a){var b;if(0<q.length)for(var c=0;c<q.length;c++){var h=q[c],f=h.name,g=CKEDITOR.dtd[f],k=y.name&&CKEDITOR.dtd[y.name];k&&!k[f]||a&&g&&!g[a]&&CKEDITOR.dtd[a]?f== +y.name&&(p(y,y.parent,1),c--):(b||(d(),b=1),h=h.clone(),h.parent=y,y=h,q.splice(c,1),c--)}}function d(){for(;w.length;)p(w.shift(),y)}function h(a){if(a._.isBlockLike&&"pre"!=a.name&&"textarea"!=a.name){var b=a.children.length,d=a.children[b-1],c;d&&d.type==CKEDITOR.NODE_TEXT&&((c=CKEDITOR.tools.rtrim(d.value))?d.value=c:a.children.length=b-1)}}function p(b,d,c){d=d||y||n;var f=y;void 0===b.previous&&(v(d,b)&&(y=d,t.onTagOpen(k,{}),b.returnPoint=d=y),h(b),a(b)&&!b.children.length||d.add(b),"pre"== +b.name&&(r=!1),"textarea"==b.name&&(C=!1));b.returnPoint?(y=b.returnPoint,delete b.returnPoint):y=c?d:f}function v(a,b){if((a==n||"body"==a.name)&&k&&(!a.name||CKEDITOR.dtd[a.name][k])){var d,c;return(d=b.attributes&&(c=b.attributes["data-cke-real-element-type"])?c:b.name)&&d in CKEDITOR.dtd.$inline&&!(d in CKEDITOR.dtd.head)&&!b.isOrphan||b.type==CKEDITOR.NODE_TEXT}}function u(a,b){return a in CKEDITOR.dtd.$listItem||a in CKEDITOR.dtd.$tableContent?a==b||"dt"==a&&"dd"==b||"dd"==a&&"dt"==b:!1}var t= +new CKEDITOR.htmlParser,n=l instanceof CKEDITOR.htmlParser.element?l:"string"==typeof l?new CKEDITOR.htmlParser.element(l):new CKEDITOR.htmlParser.fragment,q=[],w=[],y=n,C="textarea"==n.name,r="pre"==n.name;t.onTagOpen=function(h,f,k,m){f=new CKEDITOR.htmlParser.element(h,f);f.isUnknown&&k&&(f.isEmpty=!0);f.isOptionalClose=m;if(a(f))q.push(f);else{if("pre"==h)r=!0;else{if("br"==h&&r){y.add(new CKEDITOR.htmlParser.text("\n"));return}"textarea"==h&&(C=!0)}if("br"==h)w.push(f);else{for(;!(m=(k=y.name)? +CKEDITOR.dtd[k]||(y._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):g,f.isUnknown||y.isUnknown||m[h]);)if(y.isOptionalClose)t.onTagClose(k);else if(h in c&&k in c)k=y.children,(k=k[k.length-1])&&"li"==k.name||p(k=new CKEDITOR.htmlParser.element("li"),y),!f.returnPoint&&(f.returnPoint=y),y=k;else if(h in CKEDITOR.dtd.$listItem&&!u(h,k))t.onTagOpen("li"==h?"ul":"dl",{},0,1);else if(k in e&&!u(h,k))!f.returnPoint&&(f.returnPoint=y),y=y.parent;else if(k in CKEDITOR.dtd.$inline&&q.unshift(y),y.parent)p(y, +y.parent,1);else{f.isOrphan=1;break}b(h);d();f.parent=y;f.isEmpty?p(f):y=f}}};t.onTagClose=function(a){for(var b=q.length-1;0<=b;b--)if(a==q[b].name){q.splice(b,1);return}for(var c=[],h=[],f=y;f!=n&&f.name!=a;)f._.isBlockLike||h.unshift(f),c.push(f),f=f.returnPoint||f.parent;if(f!=n){for(b=0;b<c.length;b++){var g=c[b];p(g,g.parent)}y=f;f._.isBlockLike&&d();p(f,f.parent);f==y&&(y=y.parent);q=q.concat(h)}"body"==a&&(k=!1)};t.onText=function(a){if(!(y._.hasInlineStarted&&!w.length||r||C)&&(a=CKEDITOR.tools.ltrim(a), +0===a.length))return;var c=y.name,h=c?CKEDITOR.dtd[c]||(y._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):g;if(!C&&!h["#"]&&c in e)t.onTagOpen(f[c]||""),t.onText(a);else{d();b();r||C||(a=a.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));a=new CKEDITOR.htmlParser.text(a);if(v(y,a))this.onTagOpen(k,{},0,1);y.add(a)}};t.onCDATA=function(a){y.add(new CKEDITOR.htmlParser.cdata(a))};t.onComment=function(a){d();b();y.add(new CKEDITOR.htmlParser.comment(a))};t.parse(m);for(d();y!=n;)p(y,y.parent,1);h(n);return n}; +CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(a,c){isNaN(c)&&(c=this.children.length);var f=0<c?this.children[c-1]:null;if(f){if(a._.isBlockLike&&f.type==CKEDITOR.NODE_TEXT&&(f.value=CKEDITOR.tools.rtrim(f.value),0===f.value.length)){this.children.pop();this.add(a);return}f.next=a}a.previous=f;a.parent=this;this.children.splice(c,0,a);this._.hasInlineStarted||(this._.hasInlineStarted=a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&!a._.isBlockLike)}, +filter:function(a,c){c=this.getFilterContext(c);a.onRoot(c,this);this.filterChildren(a,!1,c)},filterChildren:function(a,c,f){if(this.childrenFilteredBy!=a.id){f=this.getFilterContext(f);if(c&&!this.parent)a.onRoot(f,this);this.childrenFilteredBy=a.id;for(c=0;c<this.children.length;c++)!1===this.children[c].filter(a,f)&&c--}},writeHtml:function(a,c){c&&this.filter(c);this.writeChildrenHtml(a)},writeChildrenHtml:function(a,c,f){var b=this.getFilterContext();if(f&&!this.parent&&c)c.onRoot(b,this);c&& +this.filterChildren(c,!1,b);c=0;f=this.children;for(b=f.length;c<b;c++)f[c].writeHtml(a)},forEach:function(a,c,f){if(!(f||c&&this.type!=c))var b=a(this);if(!1!==b){f=this.children;for(var d=0;d<f.length;d++)b=f[d],b.type==CKEDITOR.NODE_ELEMENT?b.forEach(a,c):c&&b.type!=c||a(b)}},getFilterContext:function(a){return a||{}}}}(),"use strict",function(){function a(){this.rules=[]}function e(c,g,f,e){var l,k;for(l in g)(k=c[l])||(k=c[l]=new a),k.add(g[l],f,e)}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(c){this.id= +CKEDITOR.tools.getNextNumber();this.elementNameRules=new a;this.attributeNameRules=new a;this.elementsRules={};this.attributesRules={};this.textRules=new a;this.commentRules=new a;this.rootRules=new a;c&&this.addRules(c,10)},proto:{addRules:function(a,g){var f;"number"==typeof g?f=g:g&&"priority"in g&&(f=g.priority);"number"!=typeof f&&(f=10);"object"!=typeof g&&(g={});a.elementNames&&this.elementNameRules.addMany(a.elementNames,f,g);a.attributeNames&&this.attributeNameRules.addMany(a.attributeNames, +f,g);a.elements&&e(this.elementsRules,a.elements,f,g);a.attributes&&e(this.attributesRules,a.attributes,f,g);a.text&&this.textRules.add(a.text,f,g);a.comment&&this.commentRules.add(a.comment,f,g);a.root&&this.rootRules.add(a.root,f,g)},applyTo:function(a){a.filter(this)},onElementName:function(a,g){return this.elementNameRules.execOnName(a,g)},onAttributeName:function(a,g){return this.attributeNameRules.execOnName(a,g)},onText:function(a,g,f){return this.textRules.exec(a,g,f)},onComment:function(a, +g,f){return this.commentRules.exec(a,g,f)},onRoot:function(a,g){return this.rootRules.exec(a,g)},onElement:function(a,g){for(var f=[this.elementsRules["^"],this.elementsRules[g.name],this.elementsRules.$],e,l=0;3>l;l++)if(e=f[l]){e=e.exec(a,g,this);if(!1===e)return null;if(e&&e!=g)return this.onNode(a,e);if(g.parent&&!g.name)break}return g},onNode:function(a,g){var f=g.type;return f==CKEDITOR.NODE_ELEMENT?this.onElement(a,g):f==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(a,g.value)): +f==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(a,g.value)):null},onAttribute:function(a,g,f,e){return(f=this.attributesRules[f])?f.exec(a,e,g,this):e}}});CKEDITOR.htmlParser.filterRulesGroup=a;a.prototype={add:function(a,g,f){this.rules.splice(this.findIndex(g),0,{value:a,priority:g,options:f})},addMany:function(a,g,f){for(var e=[this.findIndex(g),0],l=0,k=a.length;l<k;l++)e.push({value:a[l],priority:g,options:f});this.rules.splice.apply(this.rules,e)},findIndex:function(a){for(var g= +this.rules,f=g.length-1;0<=f&&a<g[f].priority;)f--;return f+1},exec:function(a,g){var f=g instanceof CKEDITOR.htmlParser.node||g instanceof CKEDITOR.htmlParser.fragment,e=Array.prototype.slice.call(arguments,1),l=this.rules,k=l.length,b,d,h,p;for(p=0;p<k;p++)if(f&&(b=g.type,d=g.name),h=l[p],!(a.nonEditable&&!h.options.applyToAll||a.nestedEditable&&h.options.excludeNestedEditable)){h=h.value.apply(null,e);if(!1===h||f&&h&&(h.name!=d||h.type!=b))return h;null!=h&&(e[0]=g=h)}return g},execOnName:function(a, +g){for(var f=0,e=this.rules,l=e.length,k;g&&f<l;f++)k=e[f],a.nonEditable&&!k.options.applyToAll||a.nestedEditable&&k.options.excludeNestedEditable||(g=g.replace(k.value[0],k.value[1]));return g}}}(),function(){function a(a,b){function d(a){return a||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function h(a,b){return function(f){if(f.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var h=[],k=c(f),r,E;if(k)for(e(k,1)&&h.push(k);k;)m(k)&& +(r=g(k))&&e(r)&&((E=g(r))&&!m(E)?h.push(r):(d(p).insertAfter(r),r.remove())),k=k.previous;for(k=0;k<h.length;k++)h[k].remove();if(h=!a||!1!==("function"==typeof b?b(f):b))p||CKEDITOR.env.needsBrFiller||f.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT?p||CKEDITOR.env.needsBrFiller||!(7<document.documentMode||f.name in CKEDITOR.dtd.tr||f.name in CKEDITOR.dtd.$listItem)?(h=c(f),h=!h||"form"==f.name&&"input"==h.name):h=!1:h=!1;h&&f.add(d(a))}}}function e(a,b){if((!p||CKEDITOR.env.needsBrFiller)&&a.type==CKEDITOR.NODE_ELEMENT&& +"br"==a.name&&!a.attributes["data-cke-eol"])return!0;var d;return a.type==CKEDITOR.NODE_TEXT&&(d=a.value.match(q))&&(d.index&&((new CKEDITOR.htmlParser.text(a.value.substring(0,d.index))).insertBefore(a),a.value=d[0]),!CKEDITOR.env.needsBrFiller&&p&&(!b||a.parent.name in E)||!p&&((d=a.previous)&&"br"==d.name||!d||m(d)))?!0:!1}var k={elements:{}},p="html"==b,E=CKEDITOR.tools.extend({},r),n;for(n in E)"#"in y[n]||delete E[n];for(n in E)k.elements[n]=h(p,a.config.fillEmptyBlocks);k.root=h(p,!1);k.elements.br= +function(a){return function(b){if(b.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var c=b.attributes;if("data-cke-bogus"in c||"data-cke-eol"in c)delete c["data-cke-bogus"];else{for(c=b.next;c&&f(c);)c=c.next;var h=g(b);!c&&m(b.parent)?l(b.parent,d(a)):m(c)&&h&&!m(h)&&d(a).insertBefore(c)}}}}(p);return k}function e(a,b){return a!=CKEDITOR.ENTER_BR&&!1!==b?a==CKEDITOR.ENTER_DIV?"div":"p":!1}function c(a){for(a=a.children[a.children.length-1];a&&f(a);)a=a.previous;return a}function g(a){for(a=a.previous;a&& +f(a);)a=a.previous;return a}function f(a){return a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(a.value)||a.type==CKEDITOR.NODE_ELEMENT&&a.attributes["data-cke-bookmark"]}function m(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in r||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function l(a,b){var d=a.children[a.children.length-1];a.children.push(b);b.parent=a;d&&(d.next=b,b.previous=d)}function k(a){a=a.attributes;"false"!=a.contenteditable&&(a["data-cke-editable"]=a.contenteditable?"true":1); +a.contenteditable="false"}function b(a){a=a.attributes;switch(a["data-cke-editable"]){case "true":a.contenteditable="true";break;case "1":delete a.contenteditable}}function d(a){return a.replace(D,function(a,b,d){return"\x3c"+b+d.replace(G,function(a,b){return F.test(b)&&-1==d.indexOf("data-cke-saved-"+b)?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a:a})+"\x3e"})}function h(a,b){return a.replace(b,function(a,b,d){0===a.indexOf("\x3ctextarea")&&(a=b+u(d).replace(/</g,"\x26lt;").replace(/>/g, +"\x26gt;")+"\x3c/textarea\x3e");return"\x3ccke:encoded\x3e"+encodeURIComponent(a)+"\x3c/cke:encoded\x3e"})}function p(a){return a.replace(N,function(a,b){return decodeURIComponent(b)})}function v(a){return a.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,function(a){return"\x3c!--"+w+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\x3e"})}function u(a){return a.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(a,b){return decodeURIComponent(b)})}function t(a,b){var d=b._.dataStore; +return a.replace(/\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g,function(a,b){return decodeURIComponent(b)}).replace(/\{cke_protected_(\d+)\}/g,function(a,b){return d&&d[b]||""})}function n(a,b){var d=[],c=b.config.protectedSource,f=b._.dataStore||(b._.dataStore={id:1}),h=/<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g,c=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(c);a=a.replace(/\x3c!--[\s\S]*?--\x3e/g,function(a){return"\x3c!--{cke_tempcomment}"+(d.push(a)- +1)+"--\x3e"});for(var g=0;g<c.length;g++)a=a.replace(c[g],function(a){a=a.replace(h,function(a,b,c){return d[c]});return/cke_temp(comment)?/.test(a)?a:"\x3c!--{cke_temp}"+(d.push(a)-1)+"--\x3e"});a=a.replace(h,function(a,b,c){return"\x3c!--"+w+(b?"{C}":"")+encodeURIComponent(d[c]).replace(/--/g,"%2D%2D")+"--\x3e"});a=a.replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g,function(a){return a.replace(/\x3c!--\{cke_protected\}([^>]*)--\x3e/g,function(a,b){f[f.id]= +decodeURIComponent(b);return"{cke_protected_"+f.id++ +"}"})});return a=a.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(a,d,c,f){return"\x3c"+d+c+"\x3e"+t(u(f),b)+"\x3c/"+d+"\x3e"})}CKEDITOR.htmlDataProcessor=function(b){var c,f,g=this;this.editor=b;this.dataFilter=c=new CKEDITOR.htmlParser.filter;this.htmlFilter=f=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;c.addRules(x);c.addRules(B,{applyToAll:!0});c.addRules(a(b,"data"),{applyToAll:!0}); +f.addRules(A);f.addRules(z,{applyToAll:!0});f.addRules(a(b,"html"),{applyToAll:!0});b.on("toHtml",function(a){a=a.data;var c=a.dataValue,f,c=n(c,b),c=h(c,I),c=d(c),c=h(c,J),c=c.replace(E,"$1cke:$2"),c=c.replace(T,"\x3ccke:$1$2\x3e\x3c/cke:$1\x3e"),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");f=a.context||b.editable().getName();var g;CKEDITOR.env.ie&&9>CKEDITOR.env.version&&"pre"==f&&(f="div",c="\x3cpre\x3e"+c+"\x3c/pre\x3e", +g=1);f=b.document.createElement(f);f.setHtml("a"+c);c=f.getHtml().substr(1);c=c.replace(new RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");g&&(c=c.replace(/^<pre>|<\/pre>$/gi,""));c=c.replace(P,"$1$2");c=p(c);c=u(c);f=!1===a.fixForBody?!1:e(a.enterMode,b.config.autoParagraph);c=CKEDITOR.htmlParser.fragment.fromHtml(c,a.context,f);f&&(g=c,!g.children.length&&CKEDITOR.dtd[g.name][f]&&(f=new CKEDITOR.htmlParser.element(f),g.add(f)));a.dataValue=c},null,null,5);b.on("toHtml",function(a){a.data.filter.applyTo(a.data.dataValue, +!0,a.data.dontFilter,a.data.enterMode)&&b.fire("dataFiltered")},null,null,6);b.on("toHtml",function(a){a.data.dataValue.filterChildren(g.dataFilter,!0)},null,null,10);b.on("toHtml",function(a){a=a.data;var b=a.dataValue,d=new CKEDITOR.htmlParser.basicWriter;b.writeChildrenHtml(d);b=d.getHtml(!0);a.dataValue=v(b)},null,null,15);b.on("toDataFormat",function(a){var d=a.data.dataValue;a.data.enterMode!=CKEDITOR.ENTER_BR&&(d=d.replace(/^<br *\/?>/i,""));a.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(d, +a.data.context,e(a.data.enterMode,b.config.autoParagraph))},null,null,5);b.on("toDataFormat",function(a){a.data.dataValue.filterChildren(g.htmlFilter,!0)},null,null,10);b.on("toDataFormat",function(a){a.data.filter.applyTo(a.data.dataValue,!1,!0)},null,null,11);b.on("toDataFormat",function(a){var d=a.data.dataValue,c=g.writer;c.reset();d.writeChildrenHtml(c);d=c.getHtml(!0);d=u(d);d=t(d,b);a.data.dataValue=d},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,b,d,c){var f=this.editor, +h,g,e,k;b&&"object"==typeof b?(h=b.context,d=b.fixForBody,c=b.dontFilter,g=b.filter,e=b.enterMode,k=b.protectedWhitespaces):h=b;h||null===h||(h=f.editable().getName());return f.fire("toHtml",{dataValue:a,context:h,fixForBody:d,dontFilter:c,filter:g||f.filter,enterMode:e||f.enterMode,protectedWhitespaces:k}).dataValue},toDataFormat:function(a,b){var d,c,f;b&&(d=b.context,c=b.filter,f=b.enterMode);d||null===d||(d=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:a, +filter:c||this.editor.filter,context:d,enterMode:f||this.editor.enterMode}).dataValue}};var q=/(?: |\xa0)$/,w="{cke_protected}",y=CKEDITOR.dtd,C="caption colgroup col thead tfoot tbody".split(" "),r=CKEDITOR.tools.extend({},y.$blockLimit,y.$block),x={elements:{input:k,textarea:k}},B={attributeNames:[[/^on/,"data-cke-pa-on"],[/^data-cke-expando$/,""]]},A={elements:{embed:function(a){var b=a.parent;if(b&&"object"==b.name){var d=b.attributes.width,b=b.attributes.height;d&&(a.attributes.width=d); +b&&(a.attributes.height=b)}},a:function(a){var b=a.attributes;if(!(a.children.length||b.name||b.id||a.attributes["data-cke-saved-name"]))return!1}}},z={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(a){var b=a.attributes;if(b){if(b["data-cke-temp"])return!1;for(var d=["name","href","src"],c,f=0;f<d.length;f++)c="data-cke-saved-"+d[f],c in b&&delete b[d[f]]}return a},table:function(a){a.children.slice(0).sort(function(a, +b){var d,c;a.type==CKEDITOR.NODE_ELEMENT&&b.type==a.type&&(d=CKEDITOR.tools.indexOf(C,a.name),c=CKEDITOR.tools.indexOf(C,b.name));-1<d&&-1<c&&d!=c||(d=a.parent?a.getIndex():-1,c=b.parent?b.getIndex():-1);return d>c?1:-1})},param:function(a){a.children=[];a.isEmpty=!0;return a},span:function(a){"Apple-style-span"==a.attributes["class"]&&delete a.name},html:function(a){delete a.attributes.contenteditable;delete a.attributes["class"]},body:function(a){delete a.attributes.spellcheck;delete a.attributes.contenteditable}, +style:function(a){var b=a.children[0];b&&b.value&&(b.value=CKEDITOR.tools.trim(b.value));a.attributes.type||(a.attributes.type="text/css")},title:function(a){var b=a.children[0];!b&&l(a,b=new CKEDITOR.htmlParser.text);b.value=a.attributes["data-cke-title"]||""},input:b,textarea:b},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,""))||!1}}};CKEDITOR.env.ie&&(z.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,function(a){return a.toLowerCase()})}); +var D=/<(a|area|img|input|source)\b([^>]*)>/gi,G=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,F=/^(href|src|name)$/i,J=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,I=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,N=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,E=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,P=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,T=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),"use strict",CKEDITOR.htmlParser.element= +function(a,e){this.name=a;this.attributes=e||{};this.children=[];var c=a||"",g=c.match(/^cke:(.*)/);g&&(c=g[1]);c=!!(CKEDITOR.dtd.$nonBodyContent[c]||CKEDITOR.dtd.$block[c]||CKEDITOR.dtd.$listItem[c]||CKEDITOR.dtd.$tableContent[c]||CKEDITOR.dtd.$nonEditable[c]||"br"==c);this.isEmpty=!!CKEDITOR.dtd.$empty[a];this.isUnknown=!CKEDITOR.dtd[a];this._={isBlockLike:c,hasInlineStarted:this.isEmpty||!c}},CKEDITOR.htmlParser.cssStyle=function(a){var e={};((a instanceof CKEDITOR.htmlParser.element?a.attributes.style: +a)||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,g,f){"font-family"==g&&(f=f.replace(/["']/g,""));e[g.toLowerCase()]=f});return{rules:e,populate:function(a){var g=this.toString();g&&(a instanceof CKEDITOR.dom.element?a.setAttribute("style",g):a instanceof CKEDITOR.htmlParser.element?a.attributes.style=g:a.style=g)},toString:function(){var a=[],g;for(g in e)e[g]&&a.push(g,":",e[g],";");return a.join("")}}},function(){function a(a){return function(c){return c.type== +CKEDITOR.NODE_ELEMENT&&("string"==typeof a?c.name==a:c.name in a)}}var e=function(a,c){a=a[0];c=c[0];return a<c?-1:a>c?1:0},c=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:c.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(a,c){var e=this,l,k;c=e.getFilterContext(c);if(c.off)return!0;if(!e.parent)a.onRoot(c,e);for(;;){l=e.name;if(!(k= +a.onElementName(c,l)))return this.remove(),!1;e.name=k;if(!(e=a.onElement(c,e)))return this.remove(),!1;if(e!==this)return this.replaceWith(e),!1;if(e.name==l)break;if(e.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(e),!1;if(!e.name)return this.replaceWithChildren(),!1}l=e.attributes;var b,d;for(b in l){for(k=l[b];;)if(d=a.onAttributeName(c,b))if(d!=b)delete l[b],b=d;else break;else{delete l[b];break}d&&(!1===(k=a.onAttribute(c,e,d,k))?delete l[d]:l[d]=k)}e.isEmpty||this.filterChildren(a,!1, +c);return!0},filterChildren:c.filterChildren,writeHtml:function(a,c){c&&this.filter(c);var m=this.name,l=[],k=this.attributes,b,d;a.openTag(m,k);for(b in k)l.push([b,k[b]]);a.sortAttributes&&l.sort(e);b=0;for(d=l.length;b<d;b++)k=l[b],a.attribute(k[0],k[1]);a.openTagClose(m,this.isEmpty);this.writeChildrenHtml(a);this.isEmpty||a.closeTag(m)},writeChildrenHtml:c.writeChildrenHtml,replaceWithChildren:function(){for(var a=this.children,c=a.length;c;)a[--c].insertAfter(this);this.remove()},forEach:c.forEach, +getFirst:function(c){if(!c)return this.children.length?this.children[0]:null;"function"!=typeof c&&(c=a(c));for(var f=0,e=this.children.length;f<e;++f)if(c(this.children[f]))return this.children[f];return null},getHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeChildrenHtml(a);return a.getHtml()},setHtml:function(a){a=this.children=CKEDITOR.htmlParser.fragment.fromHtml(a).children;for(var c=0,e=a.length;c<e;++c)a[c].parent=this},getOuterHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter; +this.writeHtml(a);return a.getHtml()},split:function(a){for(var c=this.children.splice(a,this.children.length-a),e=this.clone(),l=0;l<c.length;++l)c[l].parent=e;e.children=c;c[0]&&(c[0].previous=null);0<a&&(this.children[a-1].next=null);this.parent.add(e,this.getIndex()+1);return e},addClass:function(a){if(!this.hasClass(a)){var c=this.attributes["class"]||"";this.attributes["class"]=c+(c?" ":"")+a}},removeClass:function(a){var c=this.attributes["class"];c&&((c=CKEDITOR.tools.trim(c.replace(new RegExp("(?:\\s+|^)"+ +a+"(?:\\s+|$)")," ")))?this.attributes["class"]=c:delete this.attributes["class"])},hasClass:function(a){var c=this.attributes["class"];return c?(new RegExp("(?:^|\\s)"+a+"(?\x3d\\s|$)")).test(c):!1},getFilterContext:function(a){var c=[];a||(a={off:!1,nonEditable:!1,nestedEditable:!1});a.off||"off"!=this.attributes["data-cke-processor"]||c.push("off",!0);a.nonEditable||"false"!=this.attributes.contenteditable?a.nonEditable&&!a.nestedEditable&&"true"==this.attributes.contenteditable&&c.push("nestedEditable", +!0):c.push("nonEditable",!0);if(c.length){a=CKEDITOR.tools.copy(a);for(var e=0;e<c.length;e+=2)a[c[e]]=c[e+1]}return a}},!0)}(),function(){var a={},e=/{([^}]+)}/g,c=/([\\'])/g,g=/\n/g,f=/\r/g;CKEDITOR.template=function(m){if(a[m])this.output=a[m];else{var l=m.replace(c,"\\$1").replace(g,"\\n").replace(f,"\\r").replace(e,function(a,b){return"',data['"+b+"']\x3d\x3dundefined?'{"+b+"}':data['"+b+"'],'"});this.output=a[m]=Function("data","buffer","return buffer?buffer.push('"+l+"'):['"+l+"'].join('');")}}}(), +delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(a){CKEDITOR.instances[a.name]=a;a.on("focus",function(){CKEDITOR.currentInstance!=a&&(CKEDITOR.currentInstance=a,CKEDITOR.fire("currentInstance"))});a.on("blur",function(){CKEDITOR.currentInstance==a&&(CKEDITOR.currentInstance=null,CKEDITOR.fire("currentInstance"))});CKEDITOR.fire("instance",null,a)},CKEDITOR.remove=function(a){delete CKEDITOR.instances[a.name]},function(){var a= +{};CKEDITOR.addTemplate=function(e,c){var g=a[e];if(g)return g;g={name:e,source:c};CKEDITOR.fire("template",g);return a[e]=new CKEDITOR.template(g.source)};CKEDITOR.getTemplate=function(e){return a[e]}}(),function(){var a=[];CKEDITOR.addCss=function(e){a.push(e)};CKEDITOR.getCss=function(){return a.join("\n")}}(),CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&&CKEDITOR.fire("reset")}),CKEDITOR.TRISTATE_ON=1,CKEDITOR.TRISTATE_OFF=2,CKEDITOR.TRISTATE_DISABLED=0,function(){CKEDITOR.inline= +function(a,e){if(!CKEDITOR.env.isCompatible)return null;a=CKEDITOR.dom.element.get(a);if(a.getEditor())throw'The editor instance "'+a.getEditor().name+'" is already attached to the provided element.';var c=new CKEDITOR.editor(e,a,CKEDITOR.ELEMENT_MODE_INLINE),g=a.is("textarea")?a:null;g?(c.setData(g.getValue(),null,!0),a=CKEDITOR.dom.element.createFromHtml('\x3cdiv contenteditable\x3d"'+!!c.readOnly+'" class\x3d"cke_textarea_inline"\x3e'+g.getValue()+"\x3c/div\x3e",CKEDITOR.document),a.insertAfter(g), +g.hide(),g.$.form&&c._attachToForm()):c.setData(a.getHtml(),null,!0);c.on("loaded",function(){c.fire("uiReady");c.editable(a);c.container=a;c.ui.contentsElement=a;c.setData(c.getData(1));c.resetDirty();c.fire("contentDom");c.mode="wysiwyg";c.fire("mode");c.status="ready";c.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,c)},null,null,1E4);c.on("destroy",function(){g&&(c.container.clearCustomData(),c.container.remove(),g.show());c.element.clearCustomData();delete c.element});return c}; +CKEDITOR.inlineAll=function(){var a,e,c;for(c in CKEDITOR.dtd.$editable)for(var g=CKEDITOR.document.getElementsByTag(c),f=0,m=g.count();f<m;f++)a=g.getItem(f),"true"==a.getAttribute("contenteditable")&&(e={element:a,config:{}},!1!==CKEDITOR.fire("inline",e)&&CKEDITOR.inline(a,e.config))};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})}(),CKEDITOR.replaceClass="ckeditor",function(){function a(a,f,m,l){if(!CKEDITOR.env.isCompatible)return null;a=CKEDITOR.dom.element.get(a); +if(a.getEditor())throw'The editor instance "'+a.getEditor().name+'" is already attached to the provided element.';var k=new CKEDITOR.editor(f,a,l);l==CKEDITOR.ELEMENT_MODE_REPLACE&&(a.setStyle("visibility","hidden"),k._.required=a.hasAttribute("required"),a.removeAttribute("required"));m&&k.setData(m,null,!0);k.on("loaded",function(){c(k);l==CKEDITOR.ELEMENT_MODE_REPLACE&&k.config.autoUpdateElement&&a.$.form&&k._attachToForm();k.setMode(k.config.startupMode,function(){k.resetDirty();k.status="ready"; +k.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,k)})});k.on("destroy",e);return k}function e(){var a=this.container,c=this.element;a&&(a.clearCustomData(),a.remove());c&&(c.clearCustomData(),this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(c.show(),this._.required&&c.setAttribute("required","required")),delete this.element)}function c(a){var c=a.name,e=a.element,l=a.elementMode,k=a.fire("uiSpace",{space:"top",html:""}).html,b=a.fire("uiSpace",{space:"bottom",html:""}).html,d=new CKEDITOR.template('\x3c{outerEl} id\x3d"cke_{name}" class\x3d"{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+ +CKEDITOR.env.cssClass+'" dir\x3d"{langDir}" lang\x3d"{langCode}" role\x3d"application"'+(a.title?' aria-labelledby\x3d"cke_{name}_arialbl"':"")+"\x3e"+(a.title?'\x3cspan id\x3d"cke_{name}_arialbl" class\x3d"cke_voice_label"\x3e{voiceLabel}\x3c/span\x3e':"")+'\x3c{outerEl} class\x3d"cke_inner cke_reset" role\x3d"presentation"\x3e{topHtml}\x3c{outerEl} id\x3d"{contentId}" class\x3d"cke_contents cke_reset" role\x3d"presentation"\x3e\x3c/{outerEl}\x3e{bottomHtml}\x3c/{outerEl}\x3e\x3c/{outerEl}\x3e'), +c=CKEDITOR.dom.element.createFromHtml(d.output({id:a.id,name:c,langDir:a.lang.dir,langCode:a.langCode,voiceLabel:a.title,topHtml:k?'\x3cspan id\x3d"'+a.ui.spaceId("top")+'" class\x3d"cke_top cke_reset_all" role\x3d"presentation" style\x3d"height:auto"\x3e'+k+"\x3c/span\x3e":"",contentId:a.ui.spaceId("contents"),bottomHtml:b?'\x3cspan id\x3d"'+a.ui.spaceId("bottom")+'" class\x3d"cke_bottom cke_reset_all" role\x3d"presentation"\x3e'+b+"\x3c/span\x3e":"",outerEl:CKEDITOR.env.ie?"span":"div"}));l==CKEDITOR.ELEMENT_MODE_REPLACE? +(e.hide(),c.insertAfter(e)):e.append(c);a.container=c;a.ui.contentsElement=a.ui.space("contents");k&&a.ui.space("top").unselectable();b&&a.ui.space("bottom").unselectable();e=a.config.width;l=a.config.height;e&&c.setStyle("width",CKEDITOR.tools.cssLength(e));l&&a.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(l));c.disableContextMenu();CKEDITOR.env.webkit&&c.on("focus",function(){a.focus()});a.fireOnce("uiReady")}CKEDITOR.replace=function(c,f){return a(c,f,null,CKEDITOR.ELEMENT_MODE_REPLACE)}; +CKEDITOR.appendTo=function(c,f,e){return a(c,f,e,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=document.getElementsByTagName("textarea"),c=0;c<a.length;c++){var e=null,l=a[c];if(l.name||l.id){if("string"==typeof arguments[0]){if(!(new RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)")).test(l.className))continue}else if("function"==typeof arguments[0]&&(e={},!1===arguments[0](l,e)))continue;this.replace(l,e)}}};CKEDITOR.editor.prototype.addMode=function(a,c){(this._.modes||(this._.modes= +{}))[a]=c};CKEDITOR.editor.prototype.setMode=function(a,c){var e=this,l=this._.modes;if(a!=e.mode&&l&&l[a]){e.fire("beforeSetMode",a);if(e.mode){var k=e.checkDirty(),l=e._.previousModeData,b,d=0;e.fire("beforeModeUnload");e.editable(0);e._.previousMode=e.mode;e._.previousModeData=b=e.getData(1);"source"==e.mode&&l==b&&(e.fire("lockSnapshot",{forceUpdate:!0}),d=1);e.ui.space("contents").setHtml("");e.mode=""}else e._.previousModeData=e.getData(1);this._.modes[a](function(){e.mode=a;void 0!==k&&!k&& +e.resetDirty();d?e.fire("unlockSnapshot"):"wysiwyg"==a&&e.fire("saveSnapshot");setTimeout(function(){e.fire("mode");c&&c.call(e)},0)})}};CKEDITOR.editor.prototype.resize=function(a,c,e,l){var k=this.container,b=this.ui.space("contents"),d=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement;l=l?this.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}):k;l.setSize("width",a,!0);d&&(d.style.width="1%");var h=(l.$.offsetHeight||0)-(b.$.clientHeight|| +0),k=Math.max(c-(e?0:h),0);c=e?c+h:c;b.setStyle("height",k+"px");d&&(d.style.width="100%");this.fire("resize",{outerHeight:c,contentsHeight:k,outerWidth:a||l.getSize("width")})};CKEDITOR.editor.prototype.getResizable=function(a){return a?this.ui.space("contents"):this.container};CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){function a(a){var b=a.editor,d=a.data.path,c=d.blockLimit,h=a.data.selection, +f=h.getRanges()[0],k;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)if(h=e(h,d))h.appendBogus(),k=CKEDITOR.env.ie;l(b,d.block,c)&&f.collapsed&&!f.getCommonAncestor().isReadOnly()&&(d=f.clone(),d.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),c=new CKEDITOR.dom.walker(d),c.guard=function(a){return!g(a)||a.type==CKEDITOR.NODE_COMMENT||a.isReadOnly()},!c.checkForward()||d.checkStartOfBlock()&&d.checkEndOfBlock())&&(b=f.fixBlock(!0,b.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p"),CKEDITOR.env.needsBrFiller|| +(b=b.getFirst(g))&&b.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(b.getText()).match(/^(?: |\xa0)$/)&&b.remove(),k=1,a.cancel());k&&f.select()}function e(a,b){if(a.isFake)return 0;var d=b.block||b.blockLimit,c=d&&d.getLast(g);if(!(!d||!d.isBlockBoundary()||c&&c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()||d.is("pre")||d.getBogus()))return d}function c(a){var b=a.data.getTarget();b.is("input")&&(b=b.getAttribute("type"),"submit"!=b&&"reset"!=b||a.data.preventDefault())}function g(a){return h(a)&& +p(a)}function f(a,b){return function(d){var c=d.data.$.toElement||d.data.$.fromElement||d.data.$.relatedTarget;(c=c&&c.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(c):null)&&(b.equals(c)||b.contains(c))||a.call(this,d)}}function m(a){function b(a){return function(b,c){c&&b.type==CKEDITOR.NODE_ELEMENT&&b.is(h)&&(d=b);if(!(c||!g(b)||a&&u(b)))return!1}}var d,c=a.getRanges()[0];a=a.root;var h={table:1,ul:1,ol:1,dl:1};if(c.startPath().contains(h)){var f=c.clone();f.collapse(1);f.setStartAt(a, +CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(f);a.guard=b();a.checkBackward();if(d)return f=c.clone(),f.collapse(),f.setEndAt(d,CKEDITOR.POSITION_AFTER_END),a=new CKEDITOR.dom.walker(f),a.guard=b(!0),d=!1,a.checkForward(),d}return null}function l(a,b,d){return!1!==a.config.autoParagraph&&a.activeEnterMode!=CKEDITOR.ENTER_BR&&(a.editable().equals(d)&&!b||b&&"true"==b.getAttribute("contenteditable"))}function k(a){return a.activeEnterMode!=CKEDITOR.ENTER_BR&&!1!==a.config.autoParagraph? +a.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p":!1}function b(a){var b=a.editor;b.getSelection().scrollIntoView();setTimeout(function(){b.fire("saveSnapshot")},0)}function d(a,b,d){var c=a.getCommonAncestor(b);for(b=a=d?b:a;(a=a.getParent())&&!c.equals(a)&&1==a.getChildCount();)b=a;b.remove()}CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(a,b){this.base(b.$||b);this.editor=a;this.status="unloaded";this.hasFocus=!1;this.setup()},proto:{focus:function(){var a;if(CKEDITOR.env.webkit&& +!this.hasFocus&&(a=this.editor._.previousActive||this.getDocument().getActive(),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;}CKEDITOR.env.safari&&!this.isInline()&&(a=CKEDITOR.document.getActive(),a.equals(this.getWindow().getFrame())||this.getWindow().focus())},on:function(a,b){var d=Array.prototype.slice.call(arguments,0);CKEDITOR.env.ie&&/^focus|blur$/.exec(a)&&(a="focus"== +a?"focusin":"focusout",b=f(b,this),d[0]=a,d[1]=b);return CKEDITOR.dom.element.prototype.on.apply(this,d)},attachListener:function(a){!this._.listeners&&(this._.listeners=[]);var b=Array.prototype.slice.call(arguments,1),b=a.on.apply(a,b);this._.listeners.push(b);return b},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(b){}},restoreAttrs:function(){var a=this._.attrChanges,b,d;for(d in a)a.hasOwnProperty(d)&&(b=a[d],null!==b?this.setAttribute(d,b): +this.removeAttribute(d))},attachClass:function(a){var b=this.getCustomData("classes");this.hasClass(a)||(!b&&(b=[]),b.push(a),this.setCustomData("classes",b),this.addClass(a))},changeAttr:function(a,b){var d=this.getAttribute(a);b!==d&&(!this._.attrChanges&&(this._.attrChanges={}),a in this._.attrChanges||(this._.attrChanges[a]=d),this.setAttribute(a,b))},insertText:function(a){this.editor.focus();this.insertHtml(this.transformPlainTextToHtml(a),"text")},transformPlainTextToHtml:function(a){var b= +this.editor.getSelection().getStartElement().hasAscendant("pre",!0)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(a,b)},insertHtml:function(a,d,c){var h=this.editor;h.focus();h.fire("saveSnapshot");c||(c=h.getSelection().getRanges()[0]);n(this,d||"html",a,c);c.select();b(this);this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(a,b,d){n(this,d||"html",a,b);this.editor.fire("afterInsertHtml",{intoRange:b})},insertElement:function(a,d){var c= +this.editor;c.focus();c.fire("saveSnapshot");var h=c.activeEnterMode,c=c.getSelection(),f=a.getName(),f=CKEDITOR.dtd.$block[f];d||(d=c.getRanges()[0]);this.insertElementIntoRange(a,d)&&(d.moveToPosition(a,CKEDITOR.POSITION_AFTER_END),f&&((f=a.getNext(function(a){return g(a)&&!u(a)}))&&f.type==CKEDITOR.NODE_ELEMENT&&f.is(CKEDITOR.dtd.$block)?f.getDtd()["#"]?d.moveToElementEditStart(f):d.moveToElementEditEnd(a):f||h==CKEDITOR.ENTER_BR||(f=d.fixBlock(!0,h==CKEDITOR.ENTER_DIV?"div":"p"),d.moveToElementEditStart(f)))); +c.selectRanges([d]);b(this)},insertElementIntoSelection:function(a){this.insertElement(a)},insertElementIntoRange:function(a,b){var d=this.editor,c=d.config.enterMode,h=a.getName(),f=CKEDITOR.dtd.$block[h];if(b.checkReadOnly())return!1;b.deleteContents(1);b.startContainer.type==CKEDITOR.NODE_ELEMENT&&b.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})&&q(b);var e,g;if(f)for(;(e=b.getCommonAncestor(0,1))&&(g=CKEDITOR.dtd[e.getName()])&&(!g||!g[h]);)e.getName()in CKEDITOR.dtd.span?b.splitElement(e): +b.checkStartOfBlock()&&b.checkEndOfBlock()?(b.setStartBefore(e),b.collapse(!0),e.remove()):b.splitBlock(c==CKEDITOR.ENTER_DIV?"div":"p",d.editable());b.insertNode(a);return!0},setData:function(a,b){b||(a=this.editor.dataProcessor.toHtml(a));this.setHtml(a);this.fixInitialSelection();"unloaded"==this.status&&(this.status="ready");this.editor.fire("dataReady")},getData:function(a){var b=this.getHtml();a||(b=this.editor.dataProcessor.toDataFormat(b));return b},setReadOnly:function(a){this.setAttribute("contenteditable", +!a)},detach:function(){this.removeClass("cke_editable");this.status="detached";var a=this.editor;this._.detach();delete a.document;delete a.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},fixInitialSelection:function(){function a(){var b=d.getDocument().$,c=b.getSelection(),h;a:if(c.anchorNode&&c.anchorNode==d.$)h=!0;else{if(CKEDITOR.env.webkit&&(h=d.getDocument().getActive())&&h.equals(d)&&!c.anchorNode){h=!0;break a}h=void 0}h&&(h=new CKEDITOR.dom.range(d),h.moveToElementEditStart(d), +b=b.createRange(),b.setStart(h.startContainer.$,h.startOffset),b.collapse(!0),c.removeAllRanges(),c.addRange(b))}function b(){var a=d.getDocument().$,c=a.selection,h=d.getDocument().getActive();"None"==c.type&&h.equals(d)&&(c=new CKEDITOR.dom.range(d),a=a.body.createTextRange(),c.moveToElementEditStart(d),c=c.startContainer,c.type!=CKEDITOR.NODE_ELEMENT&&(c=c.getParent()),a.moveToElementText(c.$),a.collapse(!0),a.select())}var d=this;if(CKEDITOR.env.ie&&(9>CKEDITOR.env.version||CKEDITOR.env.quirks))this.hasFocus&& +(this.focus(),b());else if(this.hasFocus)this.focus(),a();else this.once("focus",function(){a()},null,null,-999)},getHtmlFromRange:function(a){if(a.collapsed)return new CKEDITOR.dom.documentFragment(a.document);a={doc:this.getDocument(),range:a.clone()};w.eol.detect(a,this);w.bogus.exclude(a);w.cell.shrink(a);a.fragment=a.range.cloneContents();w.tree.rebuild(a,this);w.eol.fix(a,this);return new CKEDITOR.dom.documentFragment(a.fragment.$)},extractHtmlFromRange:function(a,b){var d=y,c={range:a,doc:a.document}, +h=this.getHtmlFromRange(a);if(a.collapsed)return a.optimize(),h;a.enlarge(CKEDITOR.ENLARGE_INLINE,1);d.table.detectPurge(c);c.bookmark=a.createBookmark();delete c.range;var f=this.editor.createRange();f.moveToPosition(c.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START);c.targetBookmark=f.createBookmark();d.list.detectMerge(c,this);d.table.detectRanges(c,this);d.block.detectMerge(c,this);c.tableContentsRanges?(d.table.deleteRanges(c),a.moveToBookmark(c.bookmark),c.range=a):(a.moveToBookmark(c.bookmark), +c.range=a,a.extractContents(d.detectExtractMerge(c)));a.moveToBookmark(c.targetBookmark);a.optimize();d.fixUneditableRangePosition(a);d.list.merge(c,this);d.table.purge(c,this);d.block.merge(c,this);if(b){d=a.startPath();if(c=a.checkStartOfBlock()&&a.checkEndOfBlock()&&d.block&&!a.root.equals(d.block)){a:{var c=d.block.getElementsByTag("span"),f=0,e;if(c)for(;e=c.getItem(f++);)if(!p(e)){c=!0;break a}c=!1}c=!c}c&&(a.moveToPosition(d.block,CKEDITOR.POSITION_BEFORE_START),d.block.remove())}else d.autoParagraph(this.editor, +a),v(a.startContainer)&&a.startContainer.appendBogus();a.startContainer.mergeSiblings();return h},setup:function(){var a=this.editor;this.attachListener(a,"beforeGetData",function(){var b=this.getData();this.is("textarea")||!1!==a.config.ignoreEmptyParagraph&&(b=b.replace(t,function(a,b){return b}));a.setData(b,null,1)},this);this.attachListener(a,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(a,"afterSetData",function(){this.setData(a.getData(1))},this);this.attachListener(a, +"loadSnapshot",function(a){this.setData(a.data,1)},this);this.attachListener(a,"beforeFocus",function(){var b=a.getSelection();(b=b&&b.getNative())&&"Control"==b.type||this.focus()},this);this.attachListener(a,"insertHtml",function(a){this.insertHtml(a.data.dataValue,a.data.mode,a.data.range)},this);this.attachListener(a,"insertElement",function(a){this.insertElement(a.data)},this);this.attachListener(a,"insertText",function(a){this.insertText(a.data)},this);this.setReadOnly(a.readOnly);this.attachClass("cke_editable"); +a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):a.elementMode!=CKEDITOR.ELEMENT_MODE_REPLACE&&a.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||this.attachClass("cke_editable_themed");this.attachClass("cke_contents_"+a.config.contentsLangDirection);a.keystrokeHandler.blockedKeystrokes[8]=+a.readOnly;a.keystrokeHandler.attach(this);this.on("blur",function(){this.hasFocus=!1},null,null,-1);this.on("focus",function(){this.hasFocus=!0},null,null,-1);a.focusManager.add(this); +this.equals(CKEDITOR.document.getActive())&&(this.hasFocus=!0,a.once("contentDom",function(){a.focusManager.focus(this)},this));this.isInline()&&this.changeAttr("tabindex",a.tabIndex);if(!this.is("textarea")){a.document=this.getDocument();a.window=this.getWindow();var b=a.document;this.changeAttr("spellcheck",!a.config.disableNativeSpellChecker);var f=a.config.contentsLangDirection;this.getDirection(1)!=f&&this.changeAttr("dir",f);var e=CKEDITOR.getCss();e&&(f=b.getHead(),f.getCustomData("stylesheet")|| +(e=b.appendStyleText(e),e=new CKEDITOR.dom.element(e.ownerNode||e.owningElement),f.setCustomData("stylesheet",e),e.data("cke-temp",1)));f=b.getCustomData("stylesheet_ref")||0;b.setCustomData("stylesheet_ref",f+1);this.setCustomData("cke_includeReadonly",!a.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){a=a.data;var b=(new CKEDITOR.dom.elementPath(a.getTarget(),this)).contains("a");b&&2!=a.$.button&&b.isReadOnly()&&a.preventDefault()});var k={8:1,46:1};this.attachListener(a, +"key",function(b){if(a.readOnly)return!0;var d=b.data.domEvent.getKey(),c;if(d in k){b=a.getSelection();var f,e=b.getRanges()[0],g=e.startPath(),p,E,r,d=8==d;CKEDITOR.env.ie&&11>CKEDITOR.env.version&&(f=b.getSelectedElement())||(f=m(b))?(a.fire("saveSnapshot"),e.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START),f.remove(),e.select(),a.fire("saveSnapshot"),c=1):e.collapsed&&((p=g.block)&&(r=p[d?"getPrevious":"getNext"](h))&&r.type==CKEDITOR.NODE_ELEMENT&&r.is("table")&&e[d?"checkStartOfBlock":"checkEndOfBlock"]()? +(a.fire("saveSnapshot"),e[d?"checkEndOfBlock":"checkStartOfBlock"]()&&p.remove(),e["moveToElementEdit"+(d?"End":"Start")](r),e.select(),a.fire("saveSnapshot"),c=1):g.blockLimit&&g.blockLimit.is("td")&&(E=g.blockLimit.getAscendant("table"))&&e.checkBoundaryOfElement(E,d?CKEDITOR.START:CKEDITOR.END)&&(r=E[d?"getPrevious":"getNext"](h))?(a.fire("saveSnapshot"),e["moveToElementEdit"+(d?"End":"Start")](r),e.checkStartOfBlock()&&e.checkEndOfBlock()?r.remove():e.select(),a.fire("saveSnapshot"),c=1):(E=g.contains(["td", +"th","caption"]))&&e.checkBoundaryOfElement(E,d?CKEDITOR.START:CKEDITOR.END)&&(c=1))}return!c});a.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&&this.attachListener(this,"keyup",function(b){b.data.getKeystroke()in k&&!this.getFirst(g)&&(this.appendBogus(),b=a.createRange(),b.moveToPosition(this,CKEDITOR.POSITION_AFTER_START),b.select())});this.attachListener(this,"dblclick",function(b){if(a.readOnly)return!1;b={element:b.data.getTarget()};a.fire("doubleclick",b)});CKEDITOR.env.ie&&this.attachListener(this, +"click",c);CKEDITOR.env.ie&&!CKEDITOR.env.edge||this.attachListener(this,"mousedown",function(b){var d=b.data.getTarget();d.is("img","hr","input","textarea","select")&&!d.isReadOnly()&&(a.getSelection().selectElement(d),d.is("input","textarea","select")&&b.data.preventDefault())});CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(b){(b=b.data.getTarget())&&b.is("img")&&a.getSelection().selectElement(b)});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(b){if(2==b.data.$.button&& +(b=b.data.getTarget(),!b.getOuterHtml().replace(t,""))){var d=a.createRange();d.moveToElementEditStart(b);d.select(!0)}});CKEDITOR.env.webkit&&(this.attachListener(this,"click",function(a){a.data.getTarget().is("input","select")&&a.data.preventDefault()}),this.attachListener(this,"mouseup",function(a){a.data.getTarget().is("input","textarea")&&a.data.preventDefault()}));CKEDITOR.env.webkit&&this.attachListener(a,"key",function(b){if(a.readOnly)return!0;b=b.data.domEvent.getKey();if(b in k){var c= +8==b,h=a.getSelection().getRanges()[0];b=h.startPath();if(h.collapsed)a:{var f=b.block;if(f&&h[c?"checkStartOfBlock":"checkEndOfBlock"]()&&h.moveToClosestEditablePosition(f,!c)&&h.collapsed){if(h.startContainer.type==CKEDITOR.NODE_ELEMENT){var e=h.startContainer.getChild(h.startOffset-(c?1:0));if(e&&e.type==CKEDITOR.NODE_ELEMENT&&e.is("hr")){a.fire("saveSnapshot");e.remove();b=!0;break a}}h=h.startPath().block;if(!h||h&&h.contains(f))b=void 0;else{a.fire("saveSnapshot");var g;(g=(c?h:f).getBogus())&& +g.remove();g=a.getSelection();e=g.createBookmarks();(c?f:h).moveChildren(c?h:f,!1);b.lastElement.mergeSiblings();d(f,h,!c);g.selectBookmarks(e);b=!0}}else b=!1}else c=h,g=b.block,h=c.endPath().block,g&&h&&!g.equals(h)?(a.fire("saveSnapshot"),(f=g.getBogus())&&f.remove(),c.enlarge(CKEDITOR.ENLARGE_INLINE),c.deleteContents(),h.getParent()&&(h.moveChildren(g,!1),b.lastElement.mergeSiblings(),d(g,h,!0)),c=a.getSelection().getRanges()[0],c.collapse(1),c.optimize(),""===c.startContainer.getHtml()&&c.startContainer.appendBogus(), +c.select(),b=!0):b=!1;if(!b)return;a.getSelection().scrollIntoView();a.fire("saveSnapshot");return!1}},this,null,100)}}},_:{detach:function(){this.editor.setData(this.editor.getData(),0,1);this.clearListeners();this.restoreAttrs();var a;if(a=this.removeCustomData("classes"))for(;a.length;)this.removeClass(a.pop());if(!this.is("textarea")){a=this.getDocument();var b=a.getHead();if(b.getCustomData("stylesheet")){var d=a.getCustomData("stylesheet_ref");--d?a.setCustomData("stylesheet_ref",d):(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;arguments.length&&(b=this._.editable=a?a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this,a):(b&&b.detach(),null));return b};CKEDITOR.on("instanceLoaded",function(b){var d=b.editor;d.on("insertElement",function(a){a=a.data;a.type==CKEDITOR.NODE_ELEMENT&&(a.is("input")||a.is("textarea"))&&("false"!=a.getAttribute("contentEditable")&& +a.data("cke-editable",a.hasAttribute("contenteditable")?"true":"1"),a.setAttribute("contentEditable",!1))});d.on("selectionChange",function(b){if(!d.readOnly){var c=d.getSelection();c&&!c.isLocked&&(c=d.checkDirty(),d.fire("lockSnapshot"),a(b),d.fire("unlockSnapshot"),!c&&d.resetDirty())}})});CKEDITOR.on("instanceCreated",function(a){var b=a.editor;b.on("mode",function(){var a=b.editable();if(a&&a.isInline()){var d=b.title;a.changeAttr("role","textbox");a.changeAttr("aria-label",d);d&&a.changeAttr("title", +d);var c=b.fire("ariaEditorHelpLabel",{}).label;if(c&&(d=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var h=CKEDITOR.tools.getNextId(),c=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+h+'" class\x3d"cke_voice_label"\x3e'+c+"\x3c/span\x3e");d.append(c);a.changeAttr("aria-describedby",h)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");var h=CKEDITOR.dom.walker.whitespaces(!0), +p=CKEDITOR.dom.walker.bookmark(!1,!0),v=CKEDITOR.dom.walker.empty(),u=CKEDITOR.dom.walker.bogus(),t=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,n=function(){function a(b){return b.type==CKEDITOR.NODE_ELEMENT}function b(d,c){var h,f,e,g,k=[],n=c.range.startContainer;h=c.range.startPath();for(var n=p[n.getName()],l=0,m=d.getChildren(),t=m.count(),q=-1,x=-1,w=0,u=h.contains(p.$list);l<t;++l)h=m.getItem(l),a(h)?(e= +h.getName(),u&&e in CKEDITOR.dtd.$list?k=k.concat(b(h,c)):(g=!!n[e],"br"!=e||!h.data("cke-eol")||l&&l!=t-1||(w=(f=l?k[l-1].node:m.getItem(l+1))&&(!a(f)||!f.is("br")),f=f&&a(f)&&p.$block[f.getName()]),-1!=q||g||(q=l),g||(x=l),k.push({isElement:1,isLineBreak:w,isBlock:h.isBlockBoundary(),hasBlockSibling:f,node:h,name:e,allowed:g}),f=w=0)):k.push({isElement:0,node:h,allowed:1});-1<q&&(k[q].firstNotAllowed=1);-1<x&&(k[x].lastNotAllowed=1);return k}function d(b,c){var h=[],f=b.getChildren(),e=f.count(), +g,k=0,r=p[c],n=!b.is(p.$inline)||b.is("br");for(n&&h.push(" ");k<e;k++)g=f.getItem(k),a(g)&&!g.is(r)?h=h.concat(d(g,c)):h.push(g);n&&h.push(" ");return h}function c(b){return a(b.startContainer)&&b.startContainer.getChild(b.startOffset-1)}function h(b){return b&&a(b)&&(b.is(p.$removeEmpty)||b.is("a")&&!b.isBlockBoundary())}function f(b,d,c,h){var e=b.clone(),g,k;e.setEndAt(d,CKEDITOR.POSITION_BEFORE_END);(g=(new CKEDITOR.dom.walker(e)).next())&&a(g)&&n[g.getName()]&&(k=g.getPrevious())&&a(k)&&!k.getParent().equals(b.startContainer)&& +c.contains(k)&&h.contains(g)&&g.isIdentical(k)&&(g.moveChildren(k),g.remove(),f(b,d,c,h))}function e(b,d){function c(b,d){if(d.isBlock&&d.isElement&&!d.node.is("br")&&a(b)&&b.is("br"))return b.remove(),1}var h=d.endContainer.getChild(d.endOffset),f=d.endContainer.getChild(d.endOffset-1);h&&c(h,b[b.length-1]);f&&c(f,b[0])&&(d.setEnd(d.endContainer,d.endOffset-1),d.collapse())}var p=CKEDITOR.dtd,n={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},m={p:1,div:1,h1:1,h2:1, +h3:1,h4:1,h5:1,h6:1},t=CKEDITOR.tools.extend({},p.$inline);delete t.br;return function(n,E,q,w){var u=n.editor,v=!1;"unfiltered_html"==E&&(E="html",v=!0);if(!w.checkReadOnly()){var y=(new CKEDITOR.dom.elementPath(w.startContainer,w.root)).blockLimit||w.root;n={type:E,dontFilter:v,editable:n,editor:u,range:w,blockLimit:y,mergeCandidates:[],zombies:[]};E=n.range;w=n.mergeCandidates;var F,K;"text"==n.type&&E.shrink(CKEDITOR.SHRINK_ELEMENT,!0,!1)&&(F=CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e", +E.document),E.insertNode(F),E.setStartAfter(F));v=new CKEDITOR.dom.elementPath(E.startContainer);n.endPath=y=new CKEDITOR.dom.elementPath(E.endContainer);if(!E.collapsed){var u=y.block||y.blockLimit,V=E.getCommonAncestor();u&&!u.equals(V)&&!u.contains(V)&&E.checkEndOfBlock()&&n.zombies.push(u);E.deleteContents()}for(;(K=c(E))&&a(K)&&K.isBlockBoundary()&&v.contains(K);)E.moveToPosition(K,CKEDITOR.POSITION_BEFORE_END);f(E,n.blockLimit,v,y);F&&(E.setEndBefore(F),E.collapse(),F.remove());F=E.startPath(); +if(u=F.contains(h,!1,1))E.splitElement(u),n.inlineStylesRoot=u,n.inlineStylesPeak=F.lastElement;F=E.createBookmark();(u=F.startNode.getPrevious(g))&&a(u)&&h(u)&&w.push(u);(u=F.startNode.getNext(g))&&a(u)&&h(u)&&w.push(u);for(u=F.startNode;(u=u.getParent())&&h(u);)w.push(u);E.moveToBookmark(F);if(F=q){F=n.range;if("text"==n.type&&n.inlineStylesRoot){K=n.inlineStylesPeak;E=K.getDocument().createText("{cke-peak}");for(w=n.inlineStylesRoot.getParent();!K.equals(w);)E=E.appendTo(K.clone()),K=K.getParent(); +q=E.getOuterHtml().split("{cke-peak}").join(q)}K=n.blockLimit.getName();if(/^\s+|\s+$/.test(q)&&"span"in CKEDITOR.dtd[K]){var R='\x3cspan data-cke-marker\x3d"1"\x3e\x26nbsp;\x3c/span\x3e';q=R+q+R}q=n.editor.dataProcessor.toHtml(q,{context:null,fixForBody:!1,protectedWhitespaces:!!R,dontFilter:n.dontFilter,filter:n.editor.activeFilter,enterMode:n.editor.activeEnterMode});K=F.document.createElement("body");K.setHtml(q);R&&(K.getFirst().remove(),K.getLast().remove());if((R=F.startPath().block)&&(1!= +R.getChildCount()||!R.getBogus()))a:{var H;if(1==K.getChildCount()&&a(H=K.getFirst())&&H.is(m)&&!H.hasAttribute("contenteditable")){R=H.getElementsByTag("*");F=0;for(w=R.count();F<w;F++)if(E=R.getItem(F),!E.is(t))break a;H.moveChildren(H.getParent(1));H.remove()}}n.dataWrapper=K;F=q}if(F){H=n.range;F=H.document;var M;K=n.blockLimit;w=0;var W,R=[],S,aa;q=u=0;var X,da;E=H.startContainer;var v=n.endPath.elements[0],ba,y=v.getPosition(E),V=!!v.getCommonAncestor(E)&&y!=CKEDITOR.POSITION_IDENTICAL&&!(y& +CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED);E=b(n.dataWrapper,n);for(e(E,H);w<E.length;w++){y=E[w];if(M=y.isLineBreak){M=H;X=K;var Y=void 0,ea=void 0;y.hasBlockSibling?M=1:(Y=M.startContainer.getAscendant(p.$block,1))&&Y.is({div:1,p:1})?(ea=Y.getPosition(X),ea==CKEDITOR.POSITION_IDENTICAL||ea==CKEDITOR.POSITION_CONTAINS?M=0:(X=M.splitElement(Y),M.moveToPosition(X,CKEDITOR.POSITION_AFTER_START),M=1)):M=0}if(M)q=0<w;else{M=H.startPath();!y.isBlock&&l(n.editor,M.block,M.blockLimit)&&(aa= +k(n.editor))&&(aa=F.createElement(aa),aa.appendBogus(),H.insertNode(aa),CKEDITOR.env.needsBrFiller&&(W=aa.getBogus())&&W.remove(),H.moveToPosition(aa,CKEDITOR.POSITION_BEFORE_END));if((M=H.startPath().block)&&!M.equals(S)){if(W=M.getBogus())W.remove(),R.push(M);S=M}y.firstNotAllowed&&(u=1);if(u&&y.isElement){M=H.startContainer;for(X=null;M&&!p[M.getName()][y.name];){if(M.equals(K)){M=null;break}X=M;M=M.getParent()}if(M)X&&(da=H.splitElement(X),n.zombies.push(da),n.zombies.push(X));else{X=K.getName(); +ba=!w;M=w==E.length-1;X=d(y.node,X);for(var Y=[],ea=X.length,ca=0,ga=void 0,fa=0,ia=-1;ca<ea;ca++)ga=X[ca]," "==ga?(fa||ba&&!ca||(Y.push(new CKEDITOR.dom.text(" ")),ia=Y.length),fa=1):(Y.push(ga),fa=0);M&&ia==Y.length&&Y.pop();ba=Y}}if(ba){for(;M=ba.pop();)H.insertNode(M);ba=0}else H.insertNode(y.node);y.lastNotAllowed&&w<E.length-1&&((da=V?v:da)&&H.setEndAt(da,CKEDITOR.POSITION_AFTER_START),u=0);H.collapse()}}1!=E.length?W=!1:(W=E[0],W=W.isElement&&"false"==W.node.getAttribute("contenteditable")); +W&&(q=!0,M=E[0].node,H.setStartAt(M,CKEDITOR.POSITION_BEFORE_START),H.setEndAt(M,CKEDITOR.POSITION_AFTER_END));n.dontMoveCaret=q;n.bogusNeededBlocks=R}W=n.range;var Z;da=n.bogusNeededBlocks;for(ba=W.createBookmark();S=n.zombies.pop();)S.getParent()&&(aa=W.clone(),aa.moveToElementEditStart(S),aa.removeEmptyBlocksAtEnd());if(da)for(;S=da.pop();)CKEDITOR.env.needsBrFiller?S.appendBogus():S.append(W.document.createText(" "));for(;S=n.mergeCandidates.pop();)S.mergeSiblings();W.moveToBookmark(ba);if(!n.dontMoveCaret){for(S= +c(W);S&&a(S)&&!S.is(p.$empty);){if(S.isBlockBoundary())W.moveToPosition(S,CKEDITOR.POSITION_BEFORE_END);else{if(h(S)&&S.getHtml().match(/(\s| )$/g)){Z=null;break}Z=W.clone();Z.moveToPosition(S,CKEDITOR.POSITION_BEFORE_END)}S=S.getLast(g)}Z&&W.moveToRange(Z)}}}}(),q=function(){function a(b){b=new CKEDITOR.dom.walker(b);b.guard=function(a,b){if(b)return!1;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$tableContent)};b.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT};return b} +function b(a,d,c){d=a.getDocument().createElement(d);a.append(d,c);return d}function d(a){var b=a.count(),c;for(b;0<b--;)c=a.getItem(b),CKEDITOR.tools.trim(c.getHtml())||(c.appendBogus(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&c.getChildCount()&&c.getFirst().remove())}return function(c){var h=c.startContainer,f=h.getAscendant("table",1),e=!1;d(f.getElementsByTag("td"));d(f.getElementsByTag("th"));f=c.clone();f.setStart(h,0);f=a(f).lastBackward();f||(f=c.clone(),f.setEndAt(h,CKEDITOR.POSITION_BEFORE_END), +f=a(f).lastForward(),e=!0);f||(f=h);f.is("table")?(c.setStartAt(f,CKEDITOR.POSITION_BEFORE_START),c.collapse(!0),f.remove()):(f.is({tbody:1,thead:1,tfoot:1})&&(f=b(f,"tr",e)),f.is("tr")&&(f=b(f,f.getParent().is("thead")?"th":"td",e)),(h=f.getBogus())&&h.remove(),c.moveToPosition(f,e?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}(),w={eol:{detect:function(a,b){var d=a.range,c=d.clone(),h=d.clone(),f=new CKEDITOR.dom.elementPath(d.startContainer,b),e=new CKEDITOR.dom.elementPath(d.endContainer, +b);c.collapse(1);h.collapse();f.block&&c.checkBoundaryOfElement(f.block,CKEDITOR.END)&&(d.setStartAfter(f.block),a.prependEolBr=1);e.block&&h.checkBoundaryOfElement(e.block,CKEDITOR.START)&&(d.setEndBefore(e.block),a.appendEolBr=1)},fix:function(a,b){var d=b.getDocument(),c;a.appendEolBr&&(c=this.createEolBr(d),a.fragment.append(c));!a.prependEolBr||c&&!c.getPrevious()||a.fragment.append(this.createEolBr(d),1)},createEolBr:function(a){return a.createElement("br",{attributes:{"data-cke-eol":1}})}}, +bogus:{exclude:function(a){var b=a.range.getBoundaryNodes(),d=b.startNode,b=b.endNode;!b||!u(b)||d&&d.equals(b)||a.range.setEndBefore(b)}},tree:{rebuild:function(a,b){var d=a.range,c=d.getCommonAncestor(),h=new CKEDITOR.dom.elementPath(c,b),f=new CKEDITOR.dom.elementPath(d.startContainer,b),d=new CKEDITOR.dom.elementPath(d.endContainer,b),e;c.type==CKEDITOR.NODE_TEXT&&(c=c.getParent());if(h.blockLimit.is({tr:1,table:1})){var g=h.contains("table").getParent();e=function(a){return!a.equals(g)}}else if(h.block&& +h.block.is(CKEDITOR.dtd.$listItem)&&(f=f.contains(CKEDITOR.dtd.$list),d=d.contains(CKEDITOR.dtd.$list),!f.equals(d))){var k=h.contains(CKEDITOR.dtd.$list).getParent();e=function(a){return!a.equals(k)}}e||(e=function(a){return!a.equals(h.block)&&!a.equals(h.blockLimit)});this.rebuildFragment(a,b,c,e)},rebuildFragment:function(a,b,d,c){for(var h;d&&!d.equals(b)&&c(d);)h=d.clone(0,1),a.fragment.appendTo(h),a.fragment=h,d=d.getParent()}},cell:{shrink:function(a){a=a.range;var b=a.startContainer,d=a.endContainer, +c=a.startOffset,h=a.endOffset;b.type==CKEDITOR.NODE_ELEMENT&&b.equals(d)&&b.is("tr")&&++c==h&&a.shrink(CKEDITOR.SHRINK_TEXT)}}},y=function(){function a(b,d){var c=b.getParent();if(c.is(CKEDITOR.dtd.$inline))b[d?"insertBefore":"insertAfter"](c)}function b(d,c,h){a(c);a(h,1);for(var f;f=h.getNext();)f.insertAfter(c),c=f;v(d)&&d.remove()}function d(a,b){var c=new CKEDITOR.dom.range(a);c.setStartAfter(b.startNode);c.setEndBefore(b.endNode);return c}return{list:{detectMerge:function(a,b){var c=d(b,a.bookmark), +h=c.startPath(),f=c.endPath(),e=h.contains(CKEDITOR.dtd.$list),g=f.contains(CKEDITOR.dtd.$list);a.mergeList=e&&g&&e.getParent().equals(g.getParent())&&!e.equals(g);a.mergeListItems=h.block&&f.block&&h.block.is(CKEDITOR.dtd.$listItem)&&f.block.is(CKEDITOR.dtd.$listItem);if(a.mergeList||a.mergeListItems)c=c.clone(),c.setStartBefore(a.bookmark.startNode),c.setEndAfter(a.bookmark.endNode),a.mergeListBookmark=c.createBookmark()},merge:function(a,d){if(a.mergeListBookmark){var c=a.mergeListBookmark.startNode, +h=a.mergeListBookmark.endNode,f=new CKEDITOR.dom.elementPath(c,d),e=new CKEDITOR.dom.elementPath(h,d);if(a.mergeList){var g=f.contains(CKEDITOR.dtd.$list),k=e.contains(CKEDITOR.dtd.$list);g.equals(k)||(k.moveChildren(g),k.remove())}a.mergeListItems&&(f=f.contains(CKEDITOR.dtd.$listItem),e=e.contains(CKEDITOR.dtd.$listItem),f.equals(e)||b(e,c,h));c.remove();h.remove()}}},block:{detectMerge:function(a,b){if(!a.tableContentsRanges&&!a.mergeListBookmark){var d=new CKEDITOR.dom.range(b);d.setStartBefore(a.bookmark.startNode); +d.setEndAfter(a.bookmark.endNode);a.mergeBlockBookmark=d.createBookmark()}},merge:function(a,d){if(a.mergeBlockBookmark&&!a.purgeTableBookmark){var c=a.mergeBlockBookmark.startNode,h=a.mergeBlockBookmark.endNode,f=new CKEDITOR.dom.elementPath(c,d),e=new CKEDITOR.dom.elementPath(h,d),f=f.block,e=e.block;f&&e&&!f.equals(e)&&b(e,c,h);c.remove();h.remove()}}},table:function(){function a(d){var h=[],f,e=new CKEDITOR.dom.walker(d),g=d.startPath().contains(c),k=d.endPath().contains(c),p={};e.guard=function(a, +e){if(a.type==CKEDITOR.NODE_ELEMENT){var n="visited_"+(e?"out":"in");if(a.getCustomData(n))return;CKEDITOR.dom.element.setMarker(p,a,n,1)}if(e&&g&&a.equals(g))f=d.clone(),f.setEndAt(g,CKEDITOR.POSITION_BEFORE_END),h.push(f);else if(!e&&k&&a.equals(k))f=d.clone(),f.setStartAt(k,CKEDITOR.POSITION_AFTER_START),h.push(f);else{if(n=!e)n=a.type==CKEDITOR.NODE_ELEMENT&&a.is(c)&&(!g||b(a,g))&&(!k||b(a,k));n&&(f=d.clone(),f.selectNodeContents(a),h.push(f))}};e.lastForward();CKEDITOR.dom.element.clearAllMarkers(p); +return h}function b(a,d){var c=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,h=a.getPosition(d);return h===CKEDITOR.POSITION_IDENTICAL?!1:0===(h&c)}var c={td:1,th:1,caption:1};return{detectPurge:function(a){var b=a.range,d=b.clone();d.enlarge(CKEDITOR.ENLARGE_ELEMENT);var d=new CKEDITOR.dom.walker(d),h=0;d.evaluator=function(a){a.type==CKEDITOR.NODE_ELEMENT&&a.is(c)&&++h};d.checkForward();if(1<h){var d=b.startPath().contains("table"),f=b.endPath().contains("table");d&&f&&b.checkBoundaryOfElement(d, +CKEDITOR.START)&&b.checkBoundaryOfElement(f,CKEDITOR.END)&&(b=a.range.clone(),b.setStartBefore(d),b.setEndAfter(f),a.purgeTableBookmark=b.createBookmark())}},detectRanges:function(h,f){var e=d(f,h.bookmark),g=e.clone(),k,p,n=e.getCommonAncestor();n.is(CKEDITOR.dtd.$tableContent)&&!n.is(c)&&(n=n.getAscendant("table",!0));p=n;n=new CKEDITOR.dom.elementPath(e.startContainer,p);p=new CKEDITOR.dom.elementPath(e.endContainer,p);n=n.contains("table");p=p.contains("table");if(n||p)n&&p&&b(n,p)?(h.tableSurroundingRange= +g,g.setStartAt(n,CKEDITOR.POSITION_AFTER_END),g.setEndAt(p,CKEDITOR.POSITION_BEFORE_START),g=e.clone(),g.setEndAt(n,CKEDITOR.POSITION_AFTER_END),k=e.clone(),k.setStartAt(p,CKEDITOR.POSITION_BEFORE_START),k=a(g).concat(a(k))):n?p||(h.tableSurroundingRange=g,g.setStartAt(n,CKEDITOR.POSITION_AFTER_END),e.setEndAt(n,CKEDITOR.POSITION_AFTER_END)):(h.tableSurroundingRange=g,g.setEndAt(p,CKEDITOR.POSITION_BEFORE_START),e.setStartAt(p,CKEDITOR.POSITION_AFTER_START)),h.tableContentsRanges=k?k:a(e)},deleteRanges:function(a){for(var b;b= +a.tableContentsRanges.pop();)b.extractContents(),v(b.startContainer)&&b.startContainer.appendBogus();a.tableSurroundingRange&&a.tableSurroundingRange.extractContents()},purge:function(a){if(a.purgeTableBookmark){var b=a.doc,d=a.range.clone(),b=b.createElement("p");b.insertBefore(a.purgeTableBookmark.startNode);d.moveToBookmark(a.purgeTableBookmark);d.deleteContents();a.range.moveToPosition(b,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(a){return!(a.range.startPath().contains(CKEDITOR.dtd.$listItem)&& +a.range.endPath().contains(CKEDITOR.dtd.$listItem))},fixUneditableRangePosition:function(a){a.startContainer.getDtd()["#"]||a.moveToClosestEditablePosition(null,!0)},autoParagraph:function(a,b){var d=b.startPath(),c;l(a,d.block,d.blockLimit)&&(c=k(a))&&(c=b.document.createElement(c),c.appendBogus(),b.insertNode(c),b.moveToPosition(c,CKEDITOR.POSITION_AFTER_START))}}}()}(),function(){function a(){var a=this._.fakeSelection,b;a&&(b=this.getSelection(1),b&&b.isHidden()||(a.reset(),a=0));if(!a&&(a=b|| +this.getSelection(1),!a||a.getType()==CKEDITOR.SELECTION_NONE))return;this.fire("selectionCheck",a);b=this.elementPath();b.compare(this._.selectionPreviousPath)||(CKEDITOR.env.webkit&&(this._.previousActive=this.document.getActive()),this._.selectionPreviousPath=b,this.fire("selectionChange",{selection:a,path:b}))}function e(){t=!0;u||(c.call(this),u=CKEDITOR.tools.setTimeout(c,200,this))}function c(){u=null;t&&(CKEDITOR.tools.setTimeout(a,0,this),t=!1)}function g(a){return n(a)||a.type==CKEDITOR.NODE_ELEMENT&& +!a.is(CKEDITOR.dtd.$empty)?!0:!1}function f(a){function b(d,c){return d&&d.type!=CKEDITOR.NODE_TEXT?a.clone()["moveToElementEdit"+(c?"End":"Start")](d):!1}if(!(a.root instanceof CKEDITOR.editable))return!1;var d=a.startContainer,c=a.getPreviousNode(g,null,d),h=a.getNextNode(g,null,d);return b(c)||b(h,1)||!(c||h||d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary()&&d.getBogus())?!0:!1}function m(a){return a.getCustomData("cke-fillingChar")}function l(a,c){var h=a&&a.removeCustomData("cke-fillingChar"); +if(h){if(!1!==c){var f,e=a.getDocument().getSelection().getNative(),g=e&&"None"!=e.type&&e.getRangeAt(0);1<h.getLength()&&g&&g.intersectsNode(h.$)&&(f=b(e),g=e.focusNode==h.$&&0<e.focusOffset,e.anchorNode==h.$&&0<e.anchorOffset&&f[0].offset--,g&&f[1].offset--)}h.setText(k(h.getText()));f&&d(a.getDocument().$,f)}}function k(a){return a.replace(/\u200B( )?/g,function(a){return a[1]?" ":""})}function b(a){return[{node:a.anchorNode,offset:a.anchorOffset},{node:a.focusNode,offset:a.focusOffset}]}function d(a, +b){var d=a.getSelection(),c=a.createRange();c.setStart(b[0].node,b[0].offset);c.collapse(!0);d.removeAllRanges();d.addRange(c);d.extend(b[1].node,b[1].offset)}function h(a){var b=CKEDITOR.dom.element.createFromHtml('\x3cdiv data-cke-hidden-sel\x3d"1" data-cke-temp\x3d"1" style\x3d"'+(CKEDITOR.env.ie?"display:none":"position:fixed;top:0;left:-1000px")+'"\x3e\x26nbsp;\x3c/div\x3e',a.document);a.fire("lockSnapshot");a.editable().append(b);var d=a.getSelection(1),c=a.createRange(),h=d.root.on("selectionchange", +function(a){a.cancel()},null,null,0);c.setStartAt(b,CKEDITOR.POSITION_AFTER_START);c.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);d.selectRanges([c]);h.removeListener();a.fire("unlockSnapshot");a._.hiddenSelectionContainer=b}function p(a){var b={37:1,39:1,8:1,46:1};return function(d){var c=d.data.getKeystroke();if(b[c]){var h=a.getSelection().getRanges(),f=h[0];1==h.length&&f.collapsed&&(c=f[38>c?"getPreviousEditableNode":"getNextEditableNode"]())&&c.type==CKEDITOR.NODE_ELEMENT&&"false"==c.getAttribute("contenteditable")&& +(a.getSelection().fake(c),d.data.preventDefault(),d.cancel())}}}function v(a){for(var b=0;b<a.length;b++){var d=a[b];d.getCommonAncestor().isReadOnly()&&a.splice(b,1);if(!d.collapsed){if(d.startContainer.isReadOnly())for(var c=d.startContainer,h;c&&!((h=c.type==CKEDITOR.NODE_ELEMENT)&&c.is("body")||!c.isReadOnly());)h&&"false"==c.getAttribute("contentEditable")&&d.setStartAfter(c),c=c.getParent();c=d.startContainer;h=d.endContainer;var f=d.startOffset,e=d.endOffset,g=d.clone();c&&c.type==CKEDITOR.NODE_TEXT&& +(f>=c.getLength()?g.setStartAfter(c):g.setStartBefore(c));h&&h.type==CKEDITOR.NODE_TEXT&&(e?g.setEndAfter(h):g.setEndBefore(h));c=new CKEDITOR.dom.walker(g);c.evaluator=function(c){if(c.type==CKEDITOR.NODE_ELEMENT&&c.isReadOnly()){var h=d.clone();d.setEndBefore(c);d.collapsed&&a.splice(b--,1);c.getPosition(g.endContainer)&CKEDITOR.POSITION_CONTAINS||(h.setStartAfter(c),h.collapsed||a.splice(b+1,0,h));return!0}return!1};c.next()}}return a}var u,t,n=CKEDITOR.dom.walker.invisible(1),q=function(){function a(b){return function(a){var d= +a.editor.createRange();d.moveToClosestEditablePosition(a.selected,b)&&a.editor.getSelection().selectRanges([d]);return!1}}function b(a){return function(b){var d=b.editor,c=d.createRange(),h;(h=c.moveToClosestEditablePosition(b.selected,a))||(h=c.moveToClosestEditablePosition(b.selected,!a));h&&d.getSelection().selectRanges([c]);d.fire("saveSnapshot");b.selected.remove();h||(c.moveToElementEditablePosition(d.editable()),d.getSelection().selectRanges([c]));d.fire("saveSnapshot");return!1}}var d=a(), +c=a(1);return{37:d,38:d,39:c,40:c,8:b(),46:b(1)}}();CKEDITOR.on("instanceCreated",function(b){function d(){var a=c.getSelection();a&&a.removeAllRanges()}var c=b.editor;c.on("contentDom",function(){function b(){r=new CKEDITOR.dom.selection(c.getSelection());r.lock()}function d(){f.removeListener("mouseup",d);n.removeListener("mouseup",d);var a=CKEDITOR.document.$.selection,b=a.createRange();"None"!=a.type&&b.parentElement().ownerDocument==h.$&&b.select()}var h=c.document,f=CKEDITOR.document,g=c.editable(), +k=h.getBody(),n=h.getDocumentElement(),m=g.isInline(),E,r;CKEDITOR.env.gecko&&g.attachListener(g,"focus",function(a){a.removeListener();0!==E&&(a=c.getSelection().getNative())&&a.isCollapsed&&a.anchorNode==g.$&&(a=c.createRange(),a.moveToElementEditStart(g),a.select())},null,null,-2);g.attachListener(g,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){E&&CKEDITOR.env.webkit&&(E=c._.previousActive&&c._.previousActive.equals(h.getActive()));c.unlockSelection(E);E=0},null,null,-1);g.attachListener(g, +"mousedown",function(){E=0});if(CKEDITOR.env.ie||m)w?g.attachListener(g,"beforedeactivate",b,null,null,-1):g.attachListener(c,"selectionCheck",b,null,null,-1),g.attachListener(g,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){c.lockSelection(r);E=1},null,null,-1),g.attachListener(g,"mousedown",function(){E=0});if(CKEDITOR.env.ie&&!m){var t;g.attachListener(g,"mousedown",function(a){2==a.data.$.button&&((a=c.document.getSelection())&&a.getType()!=CKEDITOR.SELECTION_NONE||(t=c.window.getScrollPosition()))}); +g.attachListener(g,"mouseup",function(a){2==a.data.$.button&&t&&(c.document.$.documentElement.scrollLeft=t.x,c.document.$.documentElement.scrollTop=t.y);t=null});if("BackCompat"!=h.$.compatMode){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)n.on("mousedown",function(a){function b(a){a=a.data.$;if(c){var d=k.$.createTextRange();try{d.moveToPoint(a.clientX,a.clientY)}catch(h){}c.setEndPoint(0>e.compareEndPoints("StartToStart",d)?"EndToEnd":"StartToStart",d);c.select()}}function d(){n.removeListener("mousemove", +b);f.removeListener("mouseup",d);n.removeListener("mouseup",d);c.select()}a=a.data;if(a.getTarget().is("html")&&a.$.y<n.$.clientHeight&&a.$.x<n.$.clientWidth){var c=k.$.createTextRange();try{c.moveToPoint(a.$.clientX,a.$.clientY)}catch(h){}var e=c.duplicate();n.on("mousemove",b);f.on("mouseup",d);n.on("mouseup",d)}});if(7<CKEDITOR.env.version&&11>CKEDITOR.env.version)n.on("mousedown",function(a){a.data.getTarget().is("html")&&(f.on("mouseup",d),n.on("mouseup",d))})}}g.attachListener(g,"selectionchange", +a,c);g.attachListener(g,"keyup",e,c);g.attachListener(g,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){c.forceNextSelectionCheck();c.selectionChange(1)});if(m&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var q;g.attachListener(g,"mousedown",function(){q=1});g.attachListener(h.getDocumentElement(),"mouseup",function(){q&&e.call(c);q=0})}else g.attachListener(CKEDITOR.env.ie?g:h.getDocumentElement(),"mouseup",e,c);CKEDITOR.env.webkit&&g.attachListener(h,"keydown",function(a){switch(a.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:l(g)}}, +null,null,-1);g.attachListener(g,"keydown",p(c),null,null,-1)});c.on("setData",function(){c.unlockSelection();CKEDITOR.env.webkit&&d()});c.on("contentDomUnload",function(){c.unlockSelection()});if(CKEDITOR.env.ie9Compat)c.on("beforeDestroy",d,null,null,9);c.on("dataReady",function(){delete c._.fakeSelection;delete c._.hiddenSelectionContainer;c.selectionChange(1)});c.on("loadSnapshot",function(){var a=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),b=c.editable().getLast(a);b&&b.hasAttribute("data-cke-hidden-sel")&& +(b.remove(),CKEDITOR.env.gecko&&(a=c.editable().getFirst(a))&&a.is("br")&&a.getAttribute("_moz_editor_bogus_node")&&a.remove())},null,null,100);c.on("key",function(a){if("wysiwyg"==c.mode){var b=c.getSelection();if(b.isFake){var d=q[a.data.keyCode];if(d)return d({editor:c,selected:b.getSelectedElement(),selection:b,keyEvent:a})}}})});CKEDITOR.on("instanceReady",function(a){function c(){var a=f.editable();if(a&&(a=m(a))){var d=f.document.$.getSelection();"None"==d.type||d.anchorNode!=a.$&&d.focusNode!= +a.$||(g=b(d));e=a.getText();a.setText(k(e))}}function h(){var a=f.editable();a&&(a=m(a))&&(a.setText(e),g&&(d(f.document.$,g),g=null))}var f=a.editor,e,g;CKEDITOR.env.webkit&&(f.on("selectionChange",function(){var a=f.editable(),b=m(a);b&&(b.getCustomData("ready")?l(a):b.setCustomData("ready",1))},null,null,-1),f.on("beforeSetMode",function(){l(f.editable())},null,null,-1),f.on("beforeUndoImage",c),f.on("afterUndoImage",h),f.on("beforeGetData",c,null,null,0),f.on("getData",h))});CKEDITOR.editor.prototype.selectionChange= +function(b){(b?a:e).call(this)};CKEDITOR.editor.prototype.getSelection=function(a){return!this._.savedSelection&&!this._.fakeSelection||a?(a=this.editable())&&"wysiwyg"==this.mode?new CKEDITOR.dom.selection(a):null:this._.savedSelection||this._.fakeSelection};CKEDITOR.editor.prototype.lockSelection=function(a){a=a||this.getSelection(1);return a.getType()!=CKEDITOR.SELECTION_NONE?(!a.isLocked&&a.lock(),this._.savedSelection=a,!0):!1};CKEDITOR.editor.prototype.unlockSelection=function(a){var b=this._.savedSelection; +return b?(b.unlock(a),delete this._.savedSelection,!0):!1};CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath};CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)};CKEDITOR.dom.range.prototype.select=function(){var a=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);a.selectRanges([this]);return a};CKEDITOR.SELECTION_NONE=1;CKEDITOR.SELECTION_TEXT=2; +CKEDITOR.SELECTION_ELEMENT=3;var w="function"!=typeof window.getSelection,y=1;CKEDITOR.dom.selection=function(a){if(a instanceof CKEDITOR.dom.selection){var b=a;a=a.root}var d=a instanceof CKEDITOR.dom.element;this.rev=b?b.rev:y++;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root=d?a:this.document.getBody();this.isLocked=0;this._={cache:{}};if(b)return CKEDITOR.tools.extend(this._.cache,b._.cache),this.isFake=b.isFake,this.isLocked=b.isLocked,this;a=this.getNative();var c, +h;if(a)if(a.getRangeAt)c=(h=a.rangeCount&&a.getRangeAt(0))&&new CKEDITOR.dom.node(h.commonAncestorContainer);else{try{h=a.createRange()}catch(f){}c=h&&CKEDITOR.dom.element.get(h.item&&h.item(0)||h.parentElement())}if(!c||c.type!=CKEDITOR.NODE_ELEMENT&&c.type!=CKEDITOR.NODE_TEXT||!this.root.equals(c)&&!this.root.contains(c))this._.cache.type=CKEDITOR.SELECTION_NONE,this._.cache.startElement=null,this._.cache.selectedElement=null,this._.cache.selectedText="",this._.cache.ranges=new CKEDITOR.dom.rangeList; +return this};var 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 void 0!==this._.cache.nativeSel?this._.cache.nativeSel:this._.cache.nativeSel=w?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:w?function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_NONE;try{var d=this.getNative(),c=d.type; +"Text"==c&&(b=CKEDITOR.SELECTION_TEXT);"Control"==c&&(b=CKEDITOR.SELECTION_ELEMENT);d.createRange().parentElement()&&(b=CKEDITOR.SELECTION_TEXT)}catch(h){}return a.type=b}:function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_TEXT,d=this.getNative();if(!d||!d.rangeCount)b=CKEDITOR.SELECTION_NONE;else if(1==d.rangeCount){var d=d.getRangeAt(0),c=d.startContainer;c==d.endContainer&&1==c.nodeType&&1==d.endOffset-d.startOffset&&C[c.childNodes[d.startOffset].nodeName.toLowerCase()]&& +(b=CKEDITOR.SELECTION_ELEMENT)}return a.type=b},getRanges:function(){var a=w?function(){function a(b){return(new CKEDITOR.dom.node(b)).getIndex()}var b=function(b,d){b=b.duplicate();b.collapse(d);var c=b.parentElement();if(!c.hasChildNodes())return{container:c,offset:0};for(var h=c.children,f,e,g=b.duplicate(),k=0,p=h.length-1,n=-1,l,m;k<=p;)if(n=Math.floor((k+p)/2),f=h[n],g.moveToElementText(f),l=g.compareEndPoints("StartToStart",b),0<l)p=n-1;else if(0>l)k=n+1;else return{container:c,offset:a(f)}; +if(-1==n||n==h.length-1&&0>l){g.moveToElementText(c);g.setEndPoint("StartToStart",b);g=g.text.replace(/(\r\n|\r)/g,"\n").length;h=c.childNodes;if(!g)return f=h[h.length-1],f.nodeType!=CKEDITOR.NODE_TEXT?{container:c,offset:h.length}:{container:f,offset:f.nodeValue.length};for(c=h.length;0<g&&0<c;)e=h[--c],e.nodeType==CKEDITOR.NODE_TEXT&&(m=e,g-=e.nodeValue.length);return{container:m,offset:-g}}g.collapse(0<l?!0:!1);g.setEndPoint(0<l?"StartToStart":"EndToStart",b);g=g.text.replace(/(\r\n|\r)/g,"\n").length; +if(!g)return{container:c,offset:a(f)+(0<l?0:1)};for(;0<g;)try{e=f[0<l?"previousSibling":"nextSibling"],e.nodeType==CKEDITOR.NODE_TEXT&&(g-=e.nodeValue.length,m=e),f=e}catch(t){return{container:c,offset:a(f)}}return{container:m,offset:0<l?-g:m.nodeValue.length+g}};return function(){var a=this.getNative(),d=a&&a.createRange(),c=this.getType();if(!a)return[];if(c==CKEDITOR.SELECTION_TEXT)return a=new CKEDITOR.dom.range(this.root),c=b(d,!0),a.setStart(new CKEDITOR.dom.node(c.container),c.offset),c=b(d), +a.setEnd(new CKEDITOR.dom.node(c.container),c.offset),a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse(),[a];if(c==CKEDITOR.SELECTION_ELEMENT){for(var c=[],h=0;h<d.length;h++){for(var f=d.item(h),e=f.parentNode,g=0,a=new CKEDITOR.dom.range(this.root);g<e.childNodes.length&&e.childNodes[g]!=f;g++);a.setStart(new CKEDITOR.dom.node(e),g);a.setEnd(new CKEDITOR.dom.node(e),g+1);c.push(a)}return c}return[]}}():function(){var a= +[],b,d=this.getNative();if(!d)return a;for(var c=0;c<d.rangeCount;c++){var h=d.getRangeAt(c);b=new CKEDITOR.dom.range(this.root);b.setStart(new CKEDITOR.dom.node(h.startContainer),h.startOffset);b.setEnd(new CKEDITOR.dom.node(h.endContainer),h.endOffset);a.push(b)}return a};return function(b){var d=this._.cache,c=d.ranges;c||(d.ranges=c=new CKEDITOR.dom.rangeList(a.call(this)));return b?v(new CKEDITOR.dom.rangeList(c.slice())):c}}(),getStartElement:function(){var a=this._.cache;if(void 0!==a.startElement)return a.startElement; +var b;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var d=this.getRanges()[0];if(d){if(d.collapsed)b=d.startContainer,b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent());else{for(d.optimize();b=d.startContainer,d.startOffset==(b.getChildCount?b.getChildCount():b.getLength())&&!b.isBlockBoundary();)d.setStartAfter(b);b=d.startContainer;if(b.type!=CKEDITOR.NODE_ELEMENT)return b.getParent();if((b=b.getChild(d.startOffset))&&b.type== +CKEDITOR.NODE_ELEMENT)for(d=b.getFirst();d&&d.type==CKEDITOR.NODE_ELEMENT;)b=d,d=d.getFirst();else b=d.startContainer}b=b.$}}return a.startElement=b?new CKEDITOR.dom.element(b):null},getSelectedElement:function(){var a=this._.cache;if(void 0!==a.selectedElement)return a.selectedElement;var b=this,d=CKEDITOR.tools.tryThese(function(){return b.getNative().createRange().item(0)},function(){for(var a=b.getRanges()[0].clone(),d,c,h=2;h&&!((d=a.getEnclosedNode())&&d.type==CKEDITOR.NODE_ELEMENT&&C[d.getName()]&& +(c=d));h--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return c&&c.$});return a.selectedElement=d?new CKEDITOR.dom.element(d):null},getSelectedText:function(){var a=this._.cache;if(void 0!==a.selectedText)return a.selectedText;var b=this.getNative(),b=w?"Control"==b.type?"":b.createRange().text:b.toString();return a.selectedText=b},lock:function(){this.getRanges();this.getStartElement();this.getSelectedElement();this.getSelectedText();this._.cache.nativeSel=null;this.isLocked=1},unlock:function(a){if(this.isLocked){if(a)var b= +this.getSelectedElement(),d=!b&&this.getRanges(),c=this.isFake;this.isLocked=0;this.reset();a&&(a=b||d[0]&&d[0].getCommonAncestor())&&a.getAscendant("body",1)&&(c?this.fake(b):b?this.selectElement(b):this.selectRanges(d))}},reset:function(){this._.cache={};this.isFake=0;var a=this.root.editor;if(a&&a._.fakeSelection)if(this.rev==a._.fakeSelection.rev){delete a._.fakeSelection;var b=a._.hiddenSelectionContainer;if(b){var d=a.checkDirty();a.fire("lockSnapshot");b.remove();a.fire("unlockSnapshot");!d&& +a.resetDirty()}delete a._.hiddenSelectionContainer}else CKEDITOR.warn("selection-fake-reset");this.rev=y++},selectElement:function(a){var b=new CKEDITOR.dom.range(this.root);b.setStartBefore(a);b.setEndAfter(a);this.selectRanges([b])},selectRanges:function(a){var b=this.root.editor,b=b&&b._.hiddenSelectionContainer;this.reset();if(b)for(var b=this.root,d,c=0;c<a.length;++c)d=a[c],d.endContainer.equals(b)&&(d.endOffset=Math.min(d.endOffset,b.getChildCount()));if(a.length)if(this.isLocked){var h=CKEDITOR.document.getActive(); +this.unlock();this.selectRanges(a);this.lock();h&&!h.equals(this.root)&&h.focus()}else{var e;a:{var g,k;if(1==a.length&&!(k=a[0]).collapsed&&(e=k.getEnclosedNode())&&e.type==CKEDITOR.NODE_ELEMENT&&(k=k.clone(),k.shrink(CKEDITOR.SHRINK_ELEMENT,!0),(g=k.getEnclosedNode())&&g.type==CKEDITOR.NODE_ELEMENT&&(e=g),"false"==e.getAttribute("contenteditable")))break a;e=void 0}if(e)this.fake(e);else{if(w){k=CKEDITOR.dom.walker.whitespaces(!0);g=/\ufeff|\u00a0/;b={table:1,tbody:1,tr:1};1<a.length&&(e=a[a.length- +1],a[0].setEnd(e.endContainer,e.endOffset));e=a[0];a=e.collapsed;var n,p,m;if((d=e.getEnclosedNode())&&d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in C&&(!d.is("a")||!d.getText()))try{m=d.$.createControlRange();m.addElement(d.$);m.select();return}catch(E){}if(e.startContainer.type==CKEDITOR.NODE_ELEMENT&&e.startContainer.getName()in b||e.endContainer.type==CKEDITOR.NODE_ELEMENT&&e.endContainer.getName()in b)e.shrink(CKEDITOR.NODE_ELEMENT,!0),a=e.collapsed;m=e.createBookmark();b=m.startNode;a||(h=m.endNode); +m=e.document.$.body.createTextRange();m.moveToElementText(b.$);m.moveStart("character",1);h?(g=e.document.$.body.createTextRange(),g.moveToElementText(h.$),m.setEndPoint("EndToEnd",g),m.moveEnd("character",-1)):(n=b.getNext(k),p=b.hasAscendant("pre"),n=!(n&&n.getText&&n.getText().match(g))&&(p||!b.hasPrevious()||b.getPrevious().is&&b.getPrevious().is("br")),p=e.document.createElement("span"),p.setHtml("\x26#65279;"),p.insertBefore(b),n&&e.document.createText("").insertBefore(b));e.setStartBefore(b); +b.remove();a?(n?(m.moveStart("character",-1),m.select(),e.document.$.selection.clear()):m.select(),e.moveToPosition(p,CKEDITOR.POSITION_BEFORE_START),p.remove()):(e.setEndBefore(h),h.remove(),m.select())}else{h=this.getNative();if(!h)return;this.removeAllRanges();for(m=0;m<a.length;m++){if(m<a.length-1&&(n=a[m],p=a[m+1],g=n.clone(),g.setStart(n.endContainer,n.endOffset),g.setEnd(p.startContainer,p.startOffset),!g.collapsed&&(g.shrink(CKEDITOR.NODE_ELEMENT,!0),e=g.getCommonAncestor(),g=g.getEnclosedNode(), +e.isReadOnly()||g&&g.isReadOnly()))){p.setStart(n.startContainer,n.startOffset);a.splice(m--,1);continue}e=a[m];p=this.document.$.createRange();e.collapsed&&CKEDITOR.env.webkit&&f(e)&&(n=this.root,l(n,!1),g=n.getDocument().createText("​"),n.setCustomData("cke-fillingChar",g),e.insertNode(g),(n=g.getNext())&&!g.getPrevious()&&n.type==CKEDITOR.NODE_ELEMENT&&"br"==n.getName()?(l(this.root),e.moveToPosition(n,CKEDITOR.POSITION_BEFORE_START)):e.moveToPosition(g,CKEDITOR.POSITION_AFTER_END));p.setStart(e.startContainer.$, +e.startOffset);try{p.setEnd(e.endContainer.$,e.endOffset)}catch(t){if(0<=t.toString().indexOf("NS_ERROR_ILLEGAL_VALUE"))e.collapse(1),p.setEnd(e.endContainer.$,e.endOffset);else throw t;}h.addRange(p)}}this.reset();this.root.fire("selectionchange")}}},fake:function(a){var b=this.root.editor;this.reset();h(b);var d=this._.cache,c=new CKEDITOR.dom.range(this.root);c.setStartBefore(a);c.setEndAfter(a);d.ranges=new CKEDITOR.dom.rangeList(c);d.selectedElement=d.startElement=a;d.type=CKEDITOR.SELECTION_ELEMENT; +d.selectedText=d.nativeSel=null;this.isFake=1;this.rev=y++;b._.fakeSelection=this;this.root.fire("selectionchange")},isHidden:function(){var a=this.getCommonAncestor();a&&a.type==CKEDITOR.NODE_TEXT&&(a=a.getParent());return!(!a||!a.data("cke-hidden-sel"))},createBookmarks:function(a){a=this.getRanges().createBookmarks(a);this.isFake&&(a.isFake=1);return a},createBookmarks2:function(a){a=this.getRanges().createBookmarks2(a);this.isFake&&(a.isFake=1);return a},selectBookmarks:function(a){for(var b= +[],d,c=0;c<a.length;c++){var h=new CKEDITOR.dom.range(this.root);h.moveToBookmark(a[c]);b.push(h)}a.isFake&&(d=b[0].getEnclosedNode(),d&&d.type==CKEDITOR.NODE_ELEMENT||(CKEDITOR.warn("selection-not-fake"),a.isFake=0));a.isFake?this.fake(d):this.selectRanges(b);return this},getCommonAncestor:function(){var a=this.getRanges();return a.length?a[0].startContainer.getCommonAncestor(a[a.length-1].endContainer):null},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[w?"empty":"removeAllRanges"]()}catch(b){}this.reset()}}}}(),"use strict",CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function a(a,b){for(var d,c;(a=a.getParent())&&!a.equals(b);)if(a.getAttribute("data-nostyle"))d=a;else if(!c){var h=a.getAttribute("contentEditable");"false"==h?d=a:"true"==h&&(c=1)}return d}function e(a,b,d,c){return(a.getPosition(b)|c)==c&& +(!d.childRule||d.childRule(a))}function c(b){var d=b.document;if(b.collapsed)d=w(this,d),b.insertNode(d),b.moveToPosition(d,CKEDITOR.POSITION_BEFORE_END);else{var h=this.element,g=this._.definition,k,n=g.ignoreReadonly,p=n||g.includeReadonly;null==p&&(p=b.root.getCustomData("cke_includeReadonly"));var l=CKEDITOR.dtd[h];l||(k=!0,l=CKEDITOR.dtd.span);b.enlarge(CKEDITOR.ENLARGE_INLINE,1);b.trim();var m=b.createBookmark(),q=m.startNode,u=m.endNode,v=q,r;if(!n){var y=b.getCommonAncestor(),n=a(q,y),y=a(u, +y);n&&(v=n.getNextSourceNode(!0));y&&(u=y)}for(v.getPosition(u)==CKEDITOR.POSITION_FOLLOWING&&(v=0);v;){n=!1;if(v.equals(u))v=null,n=!0;else{var C=v.type==CKEDITOR.NODE_ELEMENT?v.getName():null,y=C&&"false"==v.getAttribute("contentEditable"),x=C&&v.getAttribute("data-nostyle");if(C&&v.data("cke-bookmark")){v=v.getNextSourceNode(!0);continue}if(y&&p&&CKEDITOR.dtd.$block[C])for(var B=v,z=f(B),A=void 0,D=z.length,G=0,B=D&&new CKEDITOR.dom.range(B.getDocument());G<D;++G){var A=z[G],ga=CKEDITOR.filter.instances[A.data("cke-filter")]; +if(ga?ga.check(this):1)B.selectNodeContents(A),c.call(this,B)}z=C?!l[C]||x?0:y&&!p?0:e(v,u,g,I):1;if(z)if(A=v.getParent(),z=g,D=h,G=k,!A||!(A.getDtd()||CKEDITOR.dtd.span)[D]&&!G||z.parentRule&&!z.parentRule(A))n=!0;else{if(r||C&&CKEDITOR.dtd.$removeEmpty[C]&&(v.getPosition(u)|I)!=I||(r=b.clone(),r.setStartBefore(v)),C=v.type,C==CKEDITOR.NODE_TEXT||y||C==CKEDITOR.NODE_ELEMENT&&!v.getChildCount()){for(var C=v,fa;(n=!C.getNext(F))&&(fa=C.getParent(),l[fa.getName()])&&e(fa,q,g,N);)C=fa;r.setEndAfter(C)}}else n= +!0;v=v.getNextSourceNode(x||y)}if(n&&r&&!r.collapsed){for(var n=w(this,d),y=n.hasAttributes(),x=r.getCommonAncestor(),C={},z={},A={},D={},J,Z,ha;n&&x;){if(x.getName()==h){for(J in g.attributes)!D[J]&&(ha=x.getAttribute(Z))&&(n.getAttribute(J)==ha?z[J]=1:D[J]=1);for(Z in g.styles)!A[Z]&&(ha=x.getStyle(Z))&&(n.getStyle(Z)==ha?C[Z]=1:A[Z]=1)}x=x.getParent()}for(J in z)n.removeAttribute(J);for(Z in C)n.removeStyle(Z);y&&!n.hasAttributes()&&(n=null);n?(r.extractContents().appendTo(n),r.insertNode(n),t.call(this, +n),n.mergeSiblings(),CKEDITOR.env.ie||n.$.normalize()):(n=new CKEDITOR.dom.element("span"),r.extractContents().appendTo(n),r.insertNode(n),t.call(this,n),n.remove(!0));r=null}}b.moveToBookmark(m);b.shrink(CKEDITOR.SHRINK_TEXT);b.shrink(CKEDITOR.NODE_ELEMENT,!0)}}function g(a){function b(){for(var a=new CKEDITOR.dom.elementPath(c.getParent()),d=new CKEDITOR.dom.elementPath(p.getParent()),h=null,f=null,e=0;e<a.elements.length;e++){var g=a.elements[e];if(g==a.block||g==a.blockLimit)break;l.checkElementRemovable(g, +!0)&&(h=g)}for(e=0;e<d.elements.length;e++){g=d.elements[e];if(g==d.block||g==d.blockLimit)break;l.checkElementRemovable(g,!0)&&(f=g)}f&&p.breakParent(f);h&&c.breakParent(h)}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var d=a.createBookmark(),c=d.startNode;if(a.collapsed){for(var h=new CKEDITOR.dom.elementPath(c.getParent(),a.root),f,e=0,g;e<h.elements.length&&(g=h.elements[e])&&g!=h.block&&g!=h.blockLimit;e++)if(this.checkElementRemovable(g)){var k;a.collapsed&&(a.checkBoundaryOfElement(g,CKEDITOR.END)|| +(k=a.checkBoundaryOfElement(g,CKEDITOR.START)))?(f=g,f.match=k?"start":"end"):(g.mergeSiblings(),g.is(this.element)?u.call(this,g):n(g,r(this)[g.getName()]))}if(f){g=c;for(e=0;;e++){k=h.elements[e];if(k.equals(f))break;else if(k.match)continue;else k=k.clone();k.append(g);g=k}g["start"==f.match?"insertBefore":"insertAfter"](f)}}else{var p=d.endNode,l=this;b();for(h=c;!h.equals(p);)f=h.getNextSourceNode(),h.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(h)&&(h.getName()==this.element?u.call(this, +h):n(h,r(this)[h.getName()]),f.type==CKEDITOR.NODE_ELEMENT&&f.contains(c)&&(b(),f=c.getNext())),h=f}a.moveToBookmark(d);a.shrink(CKEDITOR.NODE_ELEMENT,!0)}function f(a){var b=[];a.forEach(function(a){if("true"==a.getAttribute("contenteditable"))return b.push(a),!1},CKEDITOR.NODE_ELEMENT,!0);return b}function m(a){var b=a.getEnclosedNode()||a.getCommonAncestor(!1,!0);(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1))&&!a.isReadOnly()&&y(a,this)}function l(a){var b=a.getCommonAncestor(!0, +!0);if(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1)){var b=this._.definition,d=b.attributes;if(d)for(var c in d)a.removeAttribute(c,d[c]);if(b.styles)for(var h in b.styles)b.styles.hasOwnProperty(h)&&a.removeStyle(h)}}function k(a){var b=a.createBookmark(!0),c=a.createIterator();c.enforceRealBlocks=!0;this._.enterMode&&(c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR);for(var h,f=a.document,e;h=c.getNextParagraph();)!h.isReadOnly()&&(c.activeFilter?c.activeFilter.check(this): +1)&&(e=w(this,f,h),d(h,e));a.moveToBookmark(b)}function b(a){var b=a.createBookmark(1),c=a.createIterator();c.enforceRealBlocks=!0;c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var h,f;h=c.getNextParagraph();)this.checkElementRemovable(h)&&(h.is("pre")?((f=this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&h.copyAttributes(f),d(h,f)):u.call(this,h));a.moveToBookmark(b)}function d(a,b){var d=!b;d&&(b=a.getDocument().createElement("div"), +a.copyAttributes(b));var c=b&&b.is("pre"),f=a.is("pre"),e=!c&&f;if(c&&!f){f=b;(e=a.getBogus())&&e.remove();e=a.getHtml();e=p(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 g=a.getDocument().createElement("div");g.append(f);f.$.outerHTML="\x3cpre\x3e"+e+"\x3c/pre\x3e";f.copyAttributes(g.getFirst());f=g.getFirst().remove()}else f.setHtml(e);b=f}else e?b=v(d? +[a.getHtml()]:h(a),b):a.moveChildren(b);b.replace(a);if(c){var d=b,k;(k=d.getPrevious(J))&&k.type==CKEDITOR.NODE_ELEMENT&&k.is("pre")&&(c=p(k.getHtml(),/\n$/,"")+"\n\n"+p(d.getHtml(),/^\n/,""),CKEDITOR.env.ie?d.$.outerHTML="\x3cpre\x3e"+c+"\x3c/pre\x3e":d.setHtml(c),k.remove())}else d&&q(b)}function h(a){var b=[];p(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(a,b,d){return b+"\x3c/pre\x3e"+d+"\x3cpre\x3e"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(a, +d){b.push(d)});return b}function p(a,b,d){var c="",h="";a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(a,b,d){b&&(c=b);d&&(h=d);return""});return c+a.replace(b,d)+h}function v(a,b){var d;1<a.length&&(d=new CKEDITOR.dom.documentFragment(b.getDocument()));for(var c=0;c<a.length;c++){var h=a[c],h=h.replace(/(\r\n|\r)/g,"\n"),h=p(h,/^[ \t]*\n/,""),h=p(h,/\n$/,""),h=p(h,/^[ \t]+|[ \t]+$/g,function(a,b){return 1==a.length?"\x26nbsp;":b?" "+CKEDITOR.tools.repeat("\x26nbsp;", +a.length-1):CKEDITOR.tools.repeat("\x26nbsp;",a.length-1)+" "}),h=h.replace(/\n/g,"\x3cbr\x3e"),h=h.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat("\x26nbsp;",a.length-1)+" "});if(d){var f=b.clone();f.setHtml(h);d.append(f)}else b.setHtml(h)}return d||b}function u(a,b){var d=this._.definition,c=d.attributes,d=d.styles,h=r(this)[a.getName()],f=CKEDITOR.tools.isEmpty(c)&&CKEDITOR.tools.isEmpty(d),e;for(e in c)if("class"!=e&&!this._.definition.fullMatch||a.getAttribute(e)==x(e,c[e]))b&& +"data-"==e.slice(0,5)||(f=a.hasAttribute(e),a.removeAttribute(e));for(var g in d)this._.definition.fullMatch&&a.getStyle(g)!=x(g,d[g],!0)||(f=f||!!a.getStyle(g),a.removeStyle(g));n(a,h,A[a.getName()]);f&&(this._.definition.alwaysRemoveElement?q(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!a.hasAttributes()?q(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function t(a){for(var b=r(this),d=a.getElementsByTag(this.element),c,h=d.count();0<=--h;)c=d.getItem(h), +c.isReadOnly()||u.call(this,c,!0);for(var f in b)if(f!=this.element)for(d=a.getElementsByTag(f),h=d.count()-1;0<=h;h--)c=d.getItem(h),c.isReadOnly()||n(c,b[f])}function n(a,b,d){if(b=b&&b.attributes)for(var c=0;c<b.length;c++){var h=b[c][0],f;if(f=a.getAttribute(h)){var e=b[c][1];(null===e||e.test&&e.test(f)||"string"==typeof e&&f==e)&&a.removeAttribute(h)}}d||q(a)}function q(a,b){if(!a.hasAttributes()||b)if(CKEDITOR.dtd.$block[a.getName()]){var d=a.getPrevious(J),c=a.getNext(J);!d||d.type!=CKEDITOR.NODE_TEXT&& +d.isBlockBoundary({br:1})||a.append("br",1);!c||c.type!=CKEDITOR.NODE_TEXT&&c.isBlockBoundary({br:1})||a.append("br");a.remove(!0)}else d=a.getFirst(),c=a.getLast(),a.remove(!0),d&&(d.type==CKEDITOR.NODE_ELEMENT&&d.mergeSiblings(),c&&!d.equals(c)&&c.type==CKEDITOR.NODE_ELEMENT&&c.mergeSiblings())}function w(a,b,d){var c;c=a.element;"*"==c&&(c="span");c=new CKEDITOR.dom.element(c,b);d&&d.copyAttributes(c);c=y(c,a);b.getCustomData("doc_processing_style")&&c.hasAttribute("id")?c.removeAttribute("id"): +b.setCustomData("doc_processing_style",1);return c}function y(a,b){var d=b._.definition,c=d.attributes,d=CKEDITOR.style.getStyleText(d);if(c)for(var h in c)a.setAttribute(h,c[h]);d&&a.setAttribute("style",d);return a}function C(a,b){for(var d in a)a[d]=a[d].replace(G,function(a,d){return b[d]})}function r(a){if(a._.overrides)return a._.overrides;var b=a._.overrides={},d=a._.definition.overrides;if(d){CKEDITOR.tools.isArray(d)||(d=[d]);for(var c=0;c<d.length;c++){var h=d[c],f,e;"string"==typeof h? +f=h.toLowerCase():(f=h.element?h.element.toLowerCase():a.element,e=h.attributes);h=b[f]||(b[f]={});if(e){var h=h.attributes=h.attributes||[],g;for(g in e)h.push([g.toLowerCase(),e[g]])}}}return b}function x(a,b,d){var c=new CKEDITOR.dom.element("span");c[d?"setStyle":"setAttribute"](a,b);return c[d?"getStyle":"getAttribute"](a)}function B(a,b,d){var c=a.document,h=a.getRanges();b=b?this.removeFromRange:this.applyToRange;for(var f,e=h.createIterator();f=e.getNextRange();)b.call(this,f,d);a.selectRanges(h); +c.removeCustomData("doc_processing_style")}var A={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},z={a:1,blockquote:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1},D=/\s*(?:;\s*|$)/,G=/#\((.+?)\)/g,F=CKEDITOR.dom.walker.bookmark(0,1),J=CKEDITOR.dom.walker.whitespaces(1); +CKEDITOR.style=function(a,b){if("string"==typeof a.type)return new CKEDITOR.style.customHandlers[a.type](a);var d=a.attributes;d&&d.style&&(a.styles=CKEDITOR.tools.extend({},a.styles,CKEDITOR.tools.parseCssText(d.style)),delete d.style);b&&(a=CKEDITOR.tools.clone(a),C(a.attributes,b),C(a.styles,b));d=this.element=a.element?"string"==typeof a.element?a.element.toLowerCase():a.element:"*";this.type=a.type||(A[d]?CKEDITOR.STYLE_BLOCK:z[d]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE);"object"==typeof this.element&& +(this.type=CKEDITOR.STYLE_OBJECT);this._={definition:a}};CKEDITOR.style.prototype={apply:function(a){if(a instanceof CKEDITOR.dom.document)return B.call(this,a.getSelection());if(this.checkApplicable(a.elementPath(),a)){var b=this._.enterMode;b||(this._.enterMode=a.activeEnterMode);B.call(this,a.getSelection(),0,a);this._.enterMode=b}},remove:function(a){if(a instanceof CKEDITOR.dom.document)return B.call(this,a.getSelection(),1);if(this.checkApplicable(a.elementPath(),a)){var b=this._.enterMode; +b||(this._.enterMode=a.activeEnterMode);B.call(this,a.getSelection(),1,a);this._.enterMode=b}},applyToRange:function(a){this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?c:this.type==CKEDITOR.STYLE_BLOCK?k:this.type==CKEDITOR.STYLE_OBJECT?m:null;return this.applyToRange(a)},removeFromRange:function(a){this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?g:this.type==CKEDITOR.STYLE_BLOCK?b:this.type==CKEDITOR.STYLE_OBJECT?l:null;return this.removeFromRange(a)},applyToObject:function(a){y(a,this)}, +checkActive:function(a,b){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(a.block||a.blockLimit,!0,b);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var d=a.elements,c=0,h;c<d.length;c++)if(h=d[c],this.type!=CKEDITOR.STYLE_INLINE||h!=a.block&&h!=a.blockLimit){if(this.type==CKEDITOR.STYLE_OBJECT){var f=h.getName();if(!("string"==typeof this.element?f==this.element:f in this.element))continue}if(this.checkElementRemovable(h,!0,b))return!0}}return!1},checkApplicable:function(a, +b,d){b&&b instanceof CKEDITOR.filter&&(d=b);if(d&&!d.check(this))return!1;switch(this.type){case CKEDITOR.STYLE_OBJECT:return!!a.contains(this.element);case CKEDITOR.STYLE_BLOCK:return!!a.blockLimit.getDtd()[this.element]}return!0},checkElementMatch:function(a,b){var d=this._.definition;if(!a||!d.ignoreReadonly&&a.isReadOnly())return!1;var c=a.getName();if("string"==typeof this.element?c==this.element:c in this.element){if(!b&&!a.hasAttributes())return!0;if(c=d._AC)d=c;else{var c={},h=0,f=d.attributes; +if(f)for(var e in f)h++,c[e]=f[e];if(e=CKEDITOR.style.getStyleText(d))c.style||h++,c.style=e;c._length=h;d=d._AC=c}if(d._length){for(var g in d)if("_length"!=g){h=a.getAttribute(g)||"";if("style"==g)a:{c=d[g];"string"==typeof c&&(c=CKEDITOR.tools.parseCssText(c));"string"==typeof h&&(h=CKEDITOR.tools.parseCssText(h,!0));e=void 0;for(e in c)if(!(e in h)||h[e]!=c[e]&&"inherit"!=c[e]&&"inherit"!=h[e]){c=!1;break a}c=!0}else c=d[g]==h;if(c){if(!b)return!0}else if(b)return!1}if(b)return!0}else return!0}return!1}, +checkElementRemovable:function(a,b,d){if(this.checkElementMatch(a,b,d))return!0;if(b=r(this)[a.getName()]){var c;if(!(b=b.attributes))return!0;for(d=0;d<b.length;d++)if(c=b[d][0],c=a.getAttribute(c)){var h=b[d][1];if(null===h)return!0;if("string"==typeof h){if(c==h)return!0}else if(h.test(c))return!0}}return!1},buildPreview:function(a){var b=this._.definition,d=[],c=b.element;"bdo"==c&&(c="span");var d=["\x3c",c],h=b.attributes;if(h)for(var f in h)d.push(" ",f,'\x3d"',h[f],'"');(h=CKEDITOR.style.getStyleText(b))&& +d.push(' style\x3d"',h,'"');d.push("\x3e",a||b.name,"\x3c/",c,"\x3e");return d.join("")},getDefinition:function(){return this._.definition}};CKEDITOR.style.getStyleText=function(a){var b=a._ST;if(b)return b;var b=a.styles,d=a.attributes&&a.attributes.style||"",c="";d.length&&(d=d.replace(D,";"));for(var h in b){var f=b[h],e=(h+":"+f).replace(D,";");"inherit"==f?c+=e:d+=e}d.length&&(d=CKEDITOR.tools.normalizeCssText(d,!0));return a._ST=d+c};CKEDITOR.style.customHandlers={};CKEDITOR.style.addCustomHandler= +function(a){var b=function(a){this._={definition:a};this.setup&&this.setup(a)};b.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},a,!0);return this.customHandlers[a.type]=b};var I=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,N=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(a,e){this.requiredContent=this.allowedContent= +this.style=a;CKEDITOR.tools.extend(this,e,!0)},CKEDITOR.styleCommand.prototype.exec=function(a){a.focus();this.state==CKEDITOR.TRISTATE_OFF?a.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&a.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(a,e,c){CKEDITOR.stylesSet.addExternal(a,e,"");CKEDITOR.stylesSet.load(a,c)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype, +{attachStyleStateChange:function(a,e){var c=this._.styleStateChangeCallbacks;c||(c=this._.styleStateChangeCallbacks=[],this.on("selectionChange",function(a){for(var f=0;f<c.length;f++){var e=c[f],l=e.style.checkActive(a.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;e.fn.call(this,l)}}));c.push({style:a,fn:e})},applyStyle:function(a){a.apply(this)},removeStyle:function(a){a.remove(this)},getStylesSet:function(a){if(this._.stylesDefinitions)a(this._.stylesDefinitions);else{var e=this,c= +e.config.stylesCombo_stylesSet||e.config.stylesSet;if(!1===c)a(null);else if(c instanceof Array)e._.stylesDefinitions=c,a(c);else{c||(c="default");var c=c.split(":"),g=c[0];CKEDITOR.stylesSet.addExternal(g,c[1]?c.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(g,function(c){e._.stylesDefinitions=c[g];a(e._.stylesDefinitions)})}}}}),CKEDITOR.dom.comment=function(a,e){"string"==typeof a&&(a=(e?e.$:document).createComment(a));CKEDITOR.dom.domObject.call(this,a)},CKEDITOR.dom.comment.prototype= +new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"\x3c!--"+this.$.nodeValue+"--\x3e"}}),"use strict",function(){var a={},e={},c;for(c in CKEDITOR.dtd.$blockLimit)c in CKEDITOR.dtd.$list||(a[c]=1);for(c in CKEDITOR.dtd.$block)c in CKEDITOR.dtd.$blockLimit||c in CKEDITOR.dtd.$empty||(e[c]=1);CKEDITOR.dom.elementPath=function(c,f){var m=null,l=null,k=[],b=c,d;f=f||c.getDocument().getBody();do if(b.type==CKEDITOR.NODE_ELEMENT){k.push(b); +if(!this.lastElement&&(this.lastElement=b,b.is(CKEDITOR.dtd.$object)||"false"==b.getAttribute("contenteditable")))continue;if(b.equals(f))break;if(!l&&(d=b.getName(),"true"==b.getAttribute("contenteditable")?l=b:!m&&e[d]&&(m=b),a[d])){if(d=!m&&"div"==d){a:{d=b.getChildren();for(var h=0,p=d.count();h<p;h++){var v=d.getItem(h);if(v.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[v.getName()]){d=!0;break a}}d=!1}d=!d}d?m=b:l=b}}while(b=b.getParent());l||(l=f);this.block=m;this.blockLimit=l;this.root= +f;this.elements=k}}(),CKEDITOR.dom.elementPath.prototype={compare:function(a){var e=this.elements;a=a&&a.elements;if(!a||e.length!=a.length)return!1;for(var c=0;c<e.length;c++)if(!e[c].equals(a[c]))return!1;return!0},contains:function(a,e,c){var g;"string"==typeof a&&(g=function(c){return c.getName()==a});a instanceof CKEDITOR.dom.element?g=function(c){return c.equals(a)}:CKEDITOR.tools.isArray(a)?g=function(c){return-1<CKEDITOR.tools.indexOf(a,c.getName())}:"function"==typeof a?g=a:"object"==typeof a&& +(g=function(c){return c.getName()in a});var f=this.elements,m=f.length;e&&m--;c&&(f=Array.prototype.slice.call(f,0),f.reverse());for(e=0;e<m;e++)if(g(f[e]))return f[e];return null},isContextFor:function(a){var e;return a in CKEDITOR.dtd.$block?(e=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit,!!e.getDtd()[a]):!0},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},CKEDITOR.dom.text=function(a,e){"string"==typeof a&& +(a=(e?e.$:document).createTextNode(a));this.$=a},CKEDITOR.dom.text.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(a){this.$.nodeValue=a},split:function(a){var e=this.$.parentNode,c=e.childNodes.length,g=this.getLength(),f=this.getDocument(),m=new CKEDITOR.dom.text(this.$.splitText(a),f);e.childNodes.length==c&&(a>=g?(m=f.createText(""), +m.insertAfter(this)):(a=f.createText(""),a.insertAfter(m),a.remove()));return m},substring:function(a,e){return"number"!=typeof e?this.$.nodeValue.substr(a):this.$.nodeValue.substring(a,e)}}),function(){function a(a,e,f){var m=a.serializable,l=e[f?"endContainer":"startContainer"],k=f?"endOffset":"startOffset",b=m?e.document.getById(a.startNode):a.startNode;a=m?e.document.getById(a.endNode):a.endNode;l.equals(b.getPrevious())?(e.startOffset=e.startOffset-l.getLength()-a.getPrevious().getLength(),l= +a.getNext()):l.equals(a.getPrevious())&&(e.startOffset-=l.getLength(),l=a.getNext());l.equals(b.getParent())&&e[k]++;l.equals(a.getParent())&&e[k]++;e[f?"endContainer":"startContainer"]=l;return e}CKEDITOR.dom.rangeList=function(a){if(a instanceof CKEDITOR.dom.rangeList)return a;a?a instanceof CKEDITOR.dom.range&&(a=[a]):a=[];return CKEDITOR.tools.extend(a,e)};var e={createIterator:function(){var a=this,e=CKEDITOR.dom.walker.bookmark(),f=[],m;return{getNextRange:function(l){m=void 0===m?0:m+1;var k= +a[m];if(k&&1<a.length){if(!m)for(var b=a.length-1;0<=b;b--)f.unshift(a[b].createBookmark(!0));if(l)for(var d=0;a[m+d+1];){var h=k.document;l=0;b=h.getById(f[d].endNode);for(h=h.getById(f[d+1].startNode);;){b=b.getNextSourceNode(!1);if(h.equals(b))l=1;else if(e(b)||b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary())continue;break}if(!l)break;d++}for(k.moveToBookmark(f.shift());d--;)b=a[++m],b.moveToBookmark(f.shift()),k.setEnd(b.endContainer,b.endOffset)}return k}}},createBookmarks:function(c){for(var e= +[],f,m=0;m<this.length;m++){e.push(f=this[m].createBookmark(c,!0));for(var l=m+1;l<this.length;l++)this[l]=a(f,this[l]),this[l]=a(f,this[l],!0)}return e},createBookmarks2:function(a){for(var e=[],f=0;f<this.length;f++)e.push(this[f].createBookmark2(a));return e},moveToBookmarks:function(a){for(var e=0;e<this.length;e++)this[e].moveToBookmark(a[e])}}}(),function(){function a(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function e(b){var c= +CKEDITOR.skin["ua_"+b],f=CKEDITOR.env;if(c)for(var c=c.split(",").sort(function(a,b){return a>b?-1:1}),e=0,g;e<c.length;e++)if(g=c[e],f.ie&&(g.replace(/^ie/,"")==f.version||f.quirks&&"iequirks"==g)&&(g="ie"),f[g]){b+="_"+c[e];break}return CKEDITOR.getUrl(a()+b+".css")}function c(a,b){m[a]||(CKEDITOR.document.appendStyleSheet(e(a)),m[a]=1);b&&b()}function g(a){var b=a.getById(l);b||(b=a.getHead().append("style"),b.setAttribute("id",l),b.setAttribute("type","text/css"));return b}function f(a,b,c){var f, +e,g;if(CKEDITOR.env.webkit)for(b=b.split("}").slice(0,-1),e=0;e<b.length;e++)b[e]=b[e].split("{");for(var k=0;k<a.length;k++)if(CKEDITOR.env.webkit)for(e=0;e<b.length;e++){g=b[e][1];for(f=0;f<c.length;f++)g=g.replace(c[f][0],c[f][1]);a[k].$.sheet.addRule(b[e][0],g)}else{g=b;for(f=0;f<c.length;f++)g=g.replace(c[f][0],c[f][1]);CKEDITOR.env.ie&&11>CKEDITOR.env.version?a[k].$.styleSheet.cssText+=g:a[k].$.innerHTML+=g}}var m={};CKEDITOR.skin={path:a,loadPart:function(b,h){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]? +CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(a()+"skin.js"),function(){c(b,h)}):c(b,h)},getPath:function(a){return CKEDITOR.getUrl(e(a))},icons:{},addIcon:function(a,b,c,f){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:b,offset:c||0,bgsize:f||"16px"})},getIconStyle:function(a,b,c,f,e){var g;a&&(a=a.toLowerCase(),b&&(g=this.icons[a+"-rtl"]),g||(g=this.icons[a]));a=c||g&&g.path||"";f=f||g&&g.offset;e=e||g&&g.bgsize||"16px";return a&&"background-image:url("+CKEDITOR.getUrl(a)+");background-position:0 "+ +f+"px;background-size:"+e+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(a){var c=g(CKEDITOR.document);return(this.setUiColor=function(a){this.uiColor=a;var d=CKEDITOR.skin.chameleon,e="",g="";"function"==typeof d&&(e=d(this,"editor"),g=d(this,"panel"));a=[[b,a]];f([c],e,a);f(k,g,a)}).call(this,a)}});var l="cke_ui_color",k=[],b=/\$color/g;CKEDITOR.on("instanceLoaded",function(a){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var c= +a.editor;a=function(a){a=(a.data[0]||a.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument();if(!a.getById("cke_ui_color")){a=g(a);k.push(a);var d=c.getUiColor();d&&f([a],CKEDITOR.skin.chameleon(c,"panel"),[[b,d]])}};c.on("panelShow",a);c.on("menuShow",a);c.config.uiColor&&c.setUiColor(c.config.uiColor)}})}(),function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=!1;else{var a=CKEDITOR.dom.element.createFromHtml('\x3cdiv style\x3d"width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"\x3e\x3c/div\x3e', +CKEDITOR.document);a.appendTo(CKEDITOR.document.getHead());try{var e=a.getComputedStyle("border-top-color"),c=a.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!e||e!=c)}catch(g){CKEDITOR.env.hc=!1}a.remove()}CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc");CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}");CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(a=CKEDITOR._.pending)for(delete CKEDITOR._.pending,e=0;e<a.length;e++)CKEDITOR.editor.prototype.constructor.apply(a[e][0], +a[e][1]),CKEDITOR.add(a[e][0])}(),CKEDITOR.skin.name="moono",CKEDITOR.skin.ua_editor="ie,iequirks,ie7,ie8,gecko",CKEDITOR.skin.ua_dialog="ie,iequirks,ie7,ie8",CKEDITOR.skin.chameleon=function(){var a=function(){return function(a,c){for(var e=a.match(/[^#]./g),l=0;3>l;l++){var k=l,b;b=parseInt(e[l],16);b=("0"+(0>c?0|b*(1+c):0|b+(255-b)*c).toString(16)).slice(-2);e[k]=b}return"#"+e.join("")}}(),e=function(){var a=new CKEDITOR.template("background:#{to};background-image:linear-gradient(to bottom,{from},{to});filter:progid:DXImageTransform.Microsoft.gradient(gradientType\x3d0,startColorstr\x3d'{from}',endColorstr\x3d'{to}');"); +return function(c,e){return a.output({from:c,to:e})}}(),c={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ {defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_bottom [{defaultGradient}border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [{defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [{defaultGradient}outline-color:{defaultBorder};border-top-color:{defaultBorder};] {id} .cke_dialog_tab [{lightGradient}border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [{mediumGradient}] {id} .cke_dialog_contents [border-top-color:{defaultBorder};] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [background:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};] {id} .cke_toolgroup [{lightGradient}border-color:{defaultBorder};] {id} a.cke_button_off:hover, {id} a.cke_button_off:focus, {id} a.cke_button_off:active [{mediumGradient}] {id} .cke_button_on [{ckeButtonOn}] {id} .cke_toolbar_separator [background-color: {ckeToolbarSeparator};] {id} .cke_combo_button [border-color:{defaultBorder};{lightGradient}] {id} a.cke_combo_button:hover, {id} a.cke_combo_button:focus, {id} .cke_combo_on a.cke_combo_button [border-color:{defaultBorder};{mediumGradient}] {id} .cke_path_item [color:{elementsPathColor};] {id} a.cke_path_item:hover, {id} a.cke_path_item:focus, {id} a.cke_path_item:active [background-color:{elementsPathBg};] {id}.cke_panel [border-color:{defaultBorder};] "), panel:new CKEDITOR.template(".cke_panel_grouptitle [{lightGradient}border-color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .cke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background-color:{menubuttonIconHover};] .cke_menuseparator [background-color:{menubuttonIcon};] a:hover.cke_colorbox, a:focus.cke_colorbox, a:active.cke_colorbox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_colormore, a:focus.cke_colorauto, a:focus.cke_colormore, a:active.cke_colorauto, a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defaultBorder};] ")}; -return function(d,h){var k=d.uiColor,k={id:"."+d.id,defaultBorder:a(k,-0.1),defaultGradient:f(a(k,0.9),k),lightGradient:f(a(k,1),a(k,0.7)),mediumGradient:f(a(k,0.8),a(k,0.5)),ckeButtonOn:f(a(k,0.6),a(k,0.7)),ckeResizer:a(k,-0.4),ckeToolbarSeparator:a(k,0.5),ckeColorauto:a(k,0.8),dialogBody:a(k,0.7),dialogTabSelected:f("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:a(k,-0.6),elementsPathBg:k,menubuttonIcon:a(k,0.5),menubuttonIconHover:a(k,0.3)};return b[h].output(k).replace(/\[/g, -"{").replace(/\]/g,"}")}}(),CKEDITOR.plugins.add("dialogui",{onLoad:function(){var a=function(a){this._||(this._={});this._["default"]=this._.initValue=a["default"]||"";this._.required=a.required||false;for(var c=[this._],b=1;b<arguments.length;b++)c.push(arguments[b]);c.push(true);CKEDITOR.tools.extend.apply(CKEDITOR.tools,c);return this._},f={build:function(a,c,b){return new CKEDITOR.ui.dialog.textInput(a,c,b)}},b={build:function(a,c,b){return new CKEDITOR.ui.dialog[c.type](a,c,b)}},d={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}},h=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(a,c){if(!this._.domOnChangeRegistered){a.on("load",function(){this.getInputElement().on("change",function(){a.parts.dialog.isVisible()&&this.fire("change", -{value:this.getValue()})},this)},this);this._.domOnChangeRegistered=true}this.on("change",c)}},true),k=/^on([A-Z]\w+)/,j=function(a){for(var c in a)(k.test(c)||c=="title"||c=="type")&&delete a[c];return a},i=function(a){a=a.data.getKeystroke();a==CKEDITOR.SHIFT+CKEDITOR.ALT+36?this.setDirectionMarker("ltr"):a==CKEDITOR.SHIFT+CKEDITOR.ALT+35&&this.setDirectionMarker("rtl")};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(b,c,g,d){if(!(arguments.length<4)){var h=a.call(this,c);h.labelId= -CKEDITOR.tools.getNextId()+"_label";this._.children=[];var f={role:c.role||"presentation"};if(c.includeLabel)f["aria-labelledby"]=h.labelId;CKEDITOR.ui.dialog.uiElement.call(this,b,c,g,"div",null,f,function(){var a=[],g=c.required?" cke_required":"";if(c.labelLayout!="horizontal")a.push('<label class="cke_dialog_ui_labeled_label'+g+'" ',' id="'+h.labelId+'"',h.inputId?' for="'+h.inputId+'"':"",(c.labelStyle?' style="'+c.labelStyle+'"':"")+">",c.label,"</label>",'<div class="cke_dialog_ui_labeled_content"', -c.controlStyle?' style="'+c.controlStyle+'"':"",' role="presentation">',d.call(this,b,c),"</div>");else{g={type:"hbox",widths:c.widths,padding:0,children:[{type:"html",html:'<label class="cke_dialog_ui_labeled_label'+g+'" id="'+h.labelId+'" for="'+h.inputId+'"'+(c.labelStyle?' style="'+c.labelStyle+'"':"")+">"+CKEDITOR.tools.htmlEncode(c.label)+"</label>"},{type:"html",html:'<span class="cke_dialog_ui_labeled_content"'+(c.controlStyle?' style="'+c.controlStyle+'"':"")+">"+d.call(this,b,c)+"</span>"}]}; -CKEDITOR.dialog._.uiElementBuilders.hbox.build(b,g,a)}return a.join("")})}},textInput:function(b,c,g){if(!(arguments.length<3)){a.call(this,c);var d=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",h={"class":"cke_dialog_ui_input_"+c.type,id:d,type:c.type};if(c.validate)this.validate=c.validate;if(c.maxLength)h.maxlength=c.maxLength;if(c.size)h.size=c.size;if(c.inputStyle)h.style=c.inputStyle;var f=this,j=false;b.on("load",function(){f.getInputElement().on("keydown",function(a){a.data.getKeystroke()== -13&&(j=true)});f.getInputElement().on("keyup",function(a){if(a.data.getKeystroke()==13&&j){b.getButton("ok")&&setTimeout(function(){b.getButton("ok").click()},0);j=false}f.bidi&&i.call(f,a)},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,b,c,g,function(){var a=['<div class="cke_dialog_ui_input_',c.type,'" role="presentation"'];c.width&&a.push('style="width:'+c.width+'" ');a.push("><input ");h["aria-labelledby"]=this._.labelId;this._.required&&(h["aria-required"]=this._.required);for(var b in h)a.push(b+ -'="'+h[b]+'" ');a.push(" /></div>");return a.join("")})}},textarea:function(b,c,g){if(!(arguments.length<3)){a.call(this,c);var d=this,h=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",f={};if(c.validate)this.validate=c.validate;f.rows=c.rows||5;f.cols=c.cols||20;f["class"]="cke_dialog_ui_input_textarea "+(c["class"]||"");if(typeof c.inputStyle!="undefined")f.style=c.inputStyle;if(c.dir)f.dir=c.dir;if(d.bidi)b.on("load",function(){d.getInputElement().on("keyup",i)},d);CKEDITOR.ui.dialog.labeledElement.call(this, -b,c,g,function(){f["aria-labelledby"]=this._.labelId;this._.required&&(f["aria-required"]=this._.required);var a=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',h,'" '],c;for(c in f)a.push(c+'="'+CKEDITOR.tools.htmlEncode(f[c])+'" ');a.push(">",CKEDITOR.tools.htmlEncode(d._["default"]),"</textarea></div>");return a.join("")})}},checkbox:function(b,c,g){if(!(arguments.length<3)){var d=a.call(this,c,{"default":!!c["default"]});if(c.validate)this.validate=c.validate;CKEDITOR.ui.dialog.uiElement.call(this, -b,c,g,"span",null,null,function(){var a=CKEDITOR.tools.extend({},c,{id:c.id?c.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},true),g=[],h=CKEDITOR.tools.getNextId()+"_label",f={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":h};j(a);if(c["default"])f.checked="checked";if(typeof a.inputStyle!="undefined")a.style=a.inputStyle;d.checkbox=new CKEDITOR.ui.dialog.uiElement(b,a,g,"input",null,f);g.push(' <label id="',h,'" for="',f.id,'"'+(c.labelStyle?' style="'+c.labelStyle+ -'"':"")+">",CKEDITOR.tools.htmlEncode(c.label),"</label>");return g.join("")})}},radio:function(b,c,g){if(!(arguments.length<3)){a.call(this,c);if(!this._["default"])this._["default"]=this._.initValue=c.items[0][1];if(c.validate)this.validate=c.validate;var d=[],h=this;c.role="radiogroup";c.includeLabel=true;CKEDITOR.ui.dialog.labeledElement.call(this,b,c,g,function(){for(var a=[],g=[],f=(c.id?c.id:CKEDITOR.tools.getNextId())+"_radio",i=0;i<c.items.length;i++){var k=c.items[i],u=k[2]!==void 0?k[2]: -k[0],y=k[1]!==void 0?k[1]:k[0],v=CKEDITOR.tools.getNextId()+"_radio_input",w=v+"_label",v=CKEDITOR.tools.extend({},c,{id:v,title:null,type:null},true),u=CKEDITOR.tools.extend({},v,{title:u},true),t={type:"radio","class":"cke_dialog_ui_radio_input",name:f,value:y,"aria-labelledby":w},s=[];if(h._["default"]==y)t.checked="checked";j(v);j(u);if(typeof v.inputStyle!="undefined")v.style=v.inputStyle;v.keyboardFocusable=true;d.push(new CKEDITOR.ui.dialog.uiElement(b,v,s,"input",null,t));s.push(" ");new CKEDITOR.ui.dialog.uiElement(b, -u,s,"label",null,{id:w,"for":t.id},k[0]);a.push(s.join(""))}new CKEDITOR.ui.dialog.hbox(b,d,a,g);return g.join("")});this._.children=d}},button:function(b,c,g){if(arguments.length){typeof c=="function"&&(c=c(b.getParentEditor()));a.call(this,c,{disabled:c.disabled||false});CKEDITOR.event.implementOn(this);var d=this;b.on("load",function(){var a=this.getElement();(function(){a.on("click",function(a){d.click();a.data.preventDefault()});a.on("keydown",function(a){if(a.data.getKeystroke()in{32:1}){d.click(); -a.data.preventDefault()}})})();a.unselectable()},this);var h=CKEDITOR.tools.extend({},c);delete h.style;var f=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,b,h,g,"a",null,{style:c.style,href:"javascript:void(0)",title:c.label,hidefocus:"true","class":c["class"],role:"button","aria-labelledby":f},'<span id="'+f+'" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(c.label)+"</span>")}},select:function(b,c,g){if(!(arguments.length<3)){var d=a.call(this,c);if(c.validate)this.validate= -c.validate;d.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,b,c,g,function(){var a=CKEDITOR.tools.extend({},c,{id:c.id?c.id+"_select":CKEDITOR.tools.getNextId()+"_select"},true),g=[],h=[],f={id:d.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};g.push('<div class="cke_dialog_ui_input_',c.type,'" role="presentation"');c.width&&g.push('style="width:'+c.width+'" ');g.push(">");if(c.size!==void 0)f.size=c.size;if(c.multiple!==void 0)f.multiple= -c.multiple;j(a);for(var i=0,k;i<c.items.length&&(k=c.items[i]);i++)h.push('<option value="',CKEDITOR.tools.htmlEncode(k[1]!==void 0?k[1]:k[0]).replace(/"/g,"""),'" /> ',CKEDITOR.tools.htmlEncode(k[0]));if(typeof a.inputStyle!="undefined")a.style=a.inputStyle;d.select=new CKEDITOR.ui.dialog.uiElement(b,a,g,"select",null,f,h.join(""));g.push("</div>");return g.join("")})}},file:function(b,c,g){if(!(arguments.length<3)){c["default"]===void 0&&(c["default"]="");var d=CKEDITOR.tools.extend(a.call(this, -c),{definition:c,buttons:[]});if(c.validate)this.validate=c.validate;b.on("load",function(){CKEDITOR.document.getById(d.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,b,c,g,function(){d.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var a=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="',d.frameId,'" title="',c.label,'" src="javascript:void('];a.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+ -CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0");a.push(')"></iframe>');return a.join("")})}},fileButton:function(b,c,g){var d=this;if(!(arguments.length<3)){a.call(this,c);if(c.validate)this.validate=c.validate;var h=CKEDITOR.tools.extend({},c),f=h.onClick;h.className=(h.className?h.className+" ":"")+"cke_dialog_ui_button";h.onClick=function(a){var g=c["for"];if(!f||f.call(this,a)!==false){b.getContentElement(g[0],g[1]).submit();this.disable()}};b.on("load",function(){b.getContentElement(c["for"][0], -c["for"][1])._.buttons.push(d)});CKEDITOR.ui.dialog.button.call(this,b,h,g)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,c=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,b=/\/$/;return function(d,h,f){if(!(arguments.length<3)){var i=[],j=h.html;j.charAt(0)!="<"&&(j="<span>"+j+"</span>");var k=h.focus;if(k){var r=this.focus;this.focus=function(){(typeof k=="function"?k:r).call(this);this.fire("focus")};if(h.isFocusable)this.isFocusable=this.isFocusable;this.keyboardFocusable=true}CKEDITOR.ui.dialog.uiElement.call(this, -d,h,i,"span",null,null,"");i=i.join("").match(a);j=j.match(c)||["","",""];if(b.test(j[1])){j[1]=j[1].slice(0,-1);j[2]="/"+j[2]}f.push([j[1]," ",i[1]||"",j[2]].join(""))}}}(),fieldset:function(a,c,b,d,h){var f=h.label;this._={children:c};CKEDITOR.ui.dialog.uiElement.call(this,a,h,d,"fieldset",null,null,function(){var a=[];f&&a.push("<legend"+(h.labelStyle?' style="'+h.labelStyle+'"':"")+">"+f+"</legend>");for(var c=0;c<b.length;c++)a.push(b[c]);return a.join("")})}},true);CKEDITOR.ui.dialog.html.prototype= -new CKEDITOR.ui.dialog.uiElement;CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setLabel:function(a){var c=CKEDITOR.document.getById(this._.labelId);c.getChildCount()<1?(new CKEDITOR.dom.text(a,CKEDITOR.document)).appendTo(c):c.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:h},true);CKEDITOR.ui.dialog.button.prototype= -CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return!this._.disabled?this.fire("click",{dialog:this._.dialog}):false},enable:function(){this._.disabled=false;var a=this.getElement();a&&a.removeClass("cke_disabled")},disable:function(){this._.disabled=true;this.getElement().addClass("cke_disabled")},isVisible:function(){return this.getElement().getFirst().isVisible()},isEnabled:function(){return!this._.disabled},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors, -{onClick:function(a,c){this.on("click",function(){c.apply(this,arguments)})}},true),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:true},true);CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)},focus:function(){var a=this.selectParentTab();setTimeout(function(){var c=a.getInputElement();c&&c.$.focus()},0)},select:function(){var a= -this.selectParentTab();setTimeout(function(){var c=a.getInputElement();if(c){c.$.focus();c.$.select()}},0)},accessKeyUp:function(){this.select()},setValue:function(a){if(this.bidi){var c=a&&a.charAt(0);(c=c=="‪"?"ltr":c=="‫"?"rtl":null)&&(a=a.slice(1));this.setDirectionMarker(c)}a||(a="");return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},getValue:function(){var a=CKEDITOR.ui.dialog.uiElement.prototype.getValue.call(this);if(this.bidi&&a){var c=this.getDirectionMarker(); -c&&(a=(c=="ltr"?"‪":"‫")+a)}return a},setDirectionMarker:function(a){var c=this.getInputElement();a?c.setAttributes({dir:a,"data-cke-dir-marker":a}):this.getDirectionMarker()&&c.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:true},d,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,c,b){var d=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),h=this.getInputElement().$;d.$.text=a;d.$.value=c===void 0||c===null?a:c;b===void 0||b===null?CKEDITOR.env.ie?h.add(d.$):h.add(d.$,null):h.add(d.$,b);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}, -d,true);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(a,c){this.getInputElement().$.checked=a;!c&&this.fire("change",{value:a})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(a,c){if(!CKEDITOR.env.ie||CKEDITOR.env.version>8)return h.onChange.apply(this,arguments);a.on("load", -function(){var a=this._.checkbox.getElement();a.on("propertychange",function(c){c=c.data.$;c.propertyName=="checked"&&this.fire("change",{value:a.$.checked})},this)},this);this.on("change",c);return null}},keyboardFocusable:true},d,true);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(a,c){for(var b=this._.children,d,h=0;h<b.length&&(d=b[h]);h++)d.getElement().$.checked=d.getValue()==a;!c&&this.fire("change",{value:a})},getValue:function(){for(var a= -this._.children,c=0;c<a.length;c++)if(a[c].getElement().$.checked)return a[c].getValue();return null},accessKeyUp:function(){var a=this._.children,c;for(c=0;c<a.length;c++)if(a[c].getElement().$.checked){a[c].getElement().focus();return}a[0].getElement().focus()},eventProcessors:{onChange:function(a,c){if(CKEDITOR.env.ie){a.on("load",function(){for(var a=this._.children,c=this,b=0;b<a.length;b++)a[b].getElement().on("propertychange",function(a){a=a.data.$;a.propertyName=="checked"&&this.$.checked&& -c.fire("change",{value:this.getAttribute("value")})})},this);this.on("change",c)}else return h.onChange.apply(this,arguments);return null}}},d,true);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,d,{getInputElement:function(){var a=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return a.$.forms.length>0?new CKEDITOR.dom.element(a.$.forms[0].elements[0]):this.getElement()},submit:function(){this.getInputElement().getParent().$.submit();return this}, -getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(a){var c=/^on([A-Z]\w+)/,b,d=function(a,c,b,g){a.on("formLoaded",function(){a.getInputElement().on(b,g,a)})},h;for(h in a)if(b=h.match(c))this.eventProcessors[h]?this.eventProcessors[h].call(this,this._.dialog,a[h]):d(this,this._.dialog,b[1].toLowerCase(),a[h]);return this},reset:function(){function a(){b.$.open();var e="";d.size&&(e=d.size-(CKEDITOR.env.ie?7:0));var u=c.frameId+"_input";b.$.write(['<html dir="'+ -j+'" lang="'+k+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+j+'" lang="'+k+'" action="',CKEDITOR.tools.htmlEncode(d.action),'"><label id="',c.labelId,'" for="',u,'" style="display:none">',CKEDITOR.tools.htmlEncode(d.label),'</label><input style="width:100%" id="',u,'" aria-labelledby="',c.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(d.id||"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(e> -0?e:""),'" /></form></body></html><script>',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+f+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+i+")}","<\/script>"].join(""));b.$.close();for(e=0;e<h.length;e++)h[e].enable()}var c=this._,b=CKEDITOR.document.getById(c.frameId).getFrameDocument(),d=c.definition,h=c.buttons,f=this.formLoadedNumber,i=this.formUnloadNumber,j=c.dialog._.editor.lang.dir,k=c.dialog._.editor.langCode; -if(!f){f=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(f);CKEDITOR.tools.removeFunction(i)})}CKEDITOR.env.gecko?setTimeout(a,500):a()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(a, -c){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",c)}},keyboardFocusable:true},true);CKEDITOR.ui.dialog.fileButton.prototype=new CKEDITOR.ui.dialog.button;CKEDITOR.ui.dialog.fieldset.prototype=CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype);CKEDITOR.dialog.addUIElement("text",f);CKEDITOR.dialog.addUIElement("password", -f);CKEDITOR.dialog.addUIElement("textarea",b);CKEDITOR.dialog.addUIElement("checkbox",b);CKEDITOR.dialog.addUIElement("radio",b);CKEDITOR.dialog.addUIElement("button",b);CKEDITOR.dialog.addUIElement("select",b);CKEDITOR.dialog.addUIElement("file",b);CKEDITOR.dialog.addUIElement("fileButton",b);CKEDITOR.dialog.addUIElement("html",b);CKEDITOR.dialog.addUIElement("fieldset",{build:function(a,c,b){for(var d=c.children,h,f=[],i=[],j=0;j<d.length&&(h=d[j]);j++){var k=[];f.push(k);i.push(CKEDITOR.dialog._.uiElementBuilders[h.type].build(a, -h,k))}return new CKEDITOR.ui.dialog[c.type](a,i,f,b,c)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,CKEDITOR.DIALOG_STATE_IDLE=1,CKEDITOR.DIALOG_STATE_BUSY=2,function(){function a(){for(var a=this._.tabIdList.length,c=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+a,b=c-1;b>c-a;b--)if(this._.tabs[this._.tabIdList[b%a]][0].$.offsetHeight)return this._.tabIdList[b%a];return null}function f(){for(var a= -this._.tabIdList.length,c=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),b=c+1;b<c+a;b++)if(this._.tabs[this._.tabIdList[b%a]][0].$.offsetHeight)return this._.tabIdList[b%a];return null}function b(a,c){for(var b=a.$.getElementsByTagName("input"),g=0,e=b.length;g<e;g++){var d=new CKEDITOR.dom.element(b[g]);if(d.getAttribute("type").toLowerCase()=="text")if(c){d.setAttribute("value",d.getCustomData("fake_value")||"");d.removeCustomData("fake_value")}else{d.setCustomData("fake_value",d.getAttribute("value")); -d.setAttribute("value","")}}}function d(a,c){var b=this.getInputElement();b&&(a?b.removeAttribute("aria-invalid"):b.setAttribute("aria-invalid",true));a||(this.select?this.select():this.focus());c&&alert(c);this.fire("validated",{valid:a,msg:c})}function h(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")}function k(a){var c=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",p).output({id:CKEDITOR.tools.getNextNumber(),editorId:a.id,langDir:a.lang.dir,langCode:a.langCode, -editorDialogClass:"cke_editor_"+a.name.replace(/\./g,"\\.")+"_dialog",closeTitle:a.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""})),b=c.getChild([0,0,0,0,0]),g=b.getChild(0),e=b.getChild(1);a.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(b);if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks&&!CKEDITOR.env.edge){a="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())";CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+ -a+'" tabIndex="-1"></iframe>').appendTo(b.getParent())}g.unselectable();e.unselectable();return{element:c,parts:{dialog:c.getChild(0),title:g,close:e,tabs:b.getChild(2),contents:b.getChild([3,0,0,0]),footer:b.getChild([3,0,1,0])}}}function j(a,c,b){this.element=c;this.focusIndex=b;this.tabIndex=0;this.isFocusable=function(){return!c.getAttribute("disabled")&&c.isVisible()};this.focus=function(){a._.currentFocusIndex=this.focusIndex;this.element.focus()};c.on("keydown",function(a){a.data.getKeystroke()in -{32:1,13:1}&&this.fire("click")});c.on("focus",function(){this.fire("mouseover")});c.on("blur",function(){this.fire("mouseout")})}function i(a){function c(){a.layout()}var b=CKEDITOR.document.getWindow();b.on("resize",c);a.on("hide",function(){b.removeListener("resize",c)})}function e(a,c){this._={dialog:a};CKEDITOR.tools.extend(this,c)}function c(a){function c(b){var i=a.getSize(),j=CKEDITOR.document.getWindow().getViewPaneSize(),k=b.data.$.screenX,l=b.data.$.screenY,m=k-g.x,o=l-g.y;g={x:k,y:l}; -e.x=e.x+m;e.y=e.y+o;a.move(e.x+f[3]<h?-f[3]:e.x-f[1]>j.width-i.width-h?j.width-i.width+(d.lang.dir=="rtl"?0:f[1]):e.x,e.y+f[0]<h?-f[0]:e.y-f[2]>j.height-i.height-h?j.height-i.height+f[2]:e.y,1);b.data.preventDefault()}function b(){CKEDITOR.document.removeListener("mousemove",c);CKEDITOR.document.removeListener("mouseup",b);if(CKEDITOR.env.ie6Compat){var a=s.getChild(0).getFrameDocument();a.removeListener("mousemove",c);a.removeListener("mouseup",b)}}var g=null,e=null,d=a.getParentEditor(),h=d.config.dialog_magnetDistance, -f=CKEDITOR.skin.margins||[0,0,0,0];typeof h=="undefined"&&(h=20);a.parts.title.on("mousedown",function(d){g={x:d.data.$.screenX,y:d.data.$.screenY};CKEDITOR.document.on("mousemove",c);CKEDITOR.document.on("mouseup",b);e=a.getPosition();if(CKEDITOR.env.ie6Compat){var h=s.getChild(0).getFrameDocument();h.on("mousemove",c);h.on("mouseup",b)}d.data.preventDefault()},a)}function g(a){var c,b;function g(e){var m=f.lang.dir=="rtl",o=l.width,r=l.height,p=o+(e.data.$.screenX-c)*(m?-1:1)*(a._.moved?1:2),u= -r+(e.data.$.screenY-b)*(a._.moved?1:2),n=a._.element.getFirst(),n=m&&n.getComputedStyle("right"),q=a.getPosition();q.y+u>k.height&&(u=k.height-q.y);if((m?n:q.x)+p>k.width)p=k.width-(m?n:q.x);if(h==CKEDITOR.DIALOG_RESIZE_WIDTH||h==CKEDITOR.DIALOG_RESIZE_BOTH)o=Math.max(d.minWidth||0,p-i);if(h==CKEDITOR.DIALOG_RESIZE_HEIGHT||h==CKEDITOR.DIALOG_RESIZE_BOTH)r=Math.max(d.minHeight||0,u-j);a.resize(o,r);a._.moved||a.layout();e.data.preventDefault()}function e(){CKEDITOR.document.removeListener("mouseup", -e);CKEDITOR.document.removeListener("mousemove",g);if(m){m.remove();m=null}if(CKEDITOR.env.ie6Compat){var a=s.getChild(0).getFrameDocument();a.removeListener("mouseup",e);a.removeListener("mousemove",g)}}var d=a.definition,h=d.resizable;if(h!=CKEDITOR.DIALOG_RESIZE_NONE){var f=a.getParentEditor(),i,j,k,l,m,o=CKEDITOR.tools.addFunction(function(d){l=a.getSize();var h=a.parts.contents;if(h.$.getElementsByTagName("iframe").length){m=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>'); -h.append(m)}j=l.height-a.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks));i=l.width-a.parts.contents.getSize("width",1);c=d.screenX;b=d.screenY;k=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",g);CKEDITOR.document.on("mouseup",e);if(CKEDITOR.env.ie6Compat){h=s.getChild(0).getFrameDocument();h.on("mousemove",g);h.on("mouseup",e)}d.preventDefault&&d.preventDefault()});a.on("load",function(){var c="";h==CKEDITOR.DIALOG_RESIZE_WIDTH? -c=" cke_resizer_horizontal":h==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(c=" cke_resizer_vertical");c=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+c+" cke_resizer_"+f.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(f.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+o+', event )">'+(f.lang.dir=="ltr"?"â—¢":"â—£")+"</div>");a.parts.footer.append(c,1)});f.on("destroy",function(){CKEDITOR.tools.removeFunction(o)})}}function l(a){a.data.preventDefault(1)}function q(a){var c=CKEDITOR.document.getWindow(), -b=a.config,g=b.dialog_backgroundCoverColor||"white",e=b.dialog_backgroundCoverOpacity,d=b.baseFloatZIndex,b=CKEDITOR.tools.genKey(g,e,d),h=t[b];if(h)h.show();else{d=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",d,"; top: 0px; left: 0px; ",!CKEDITOR.env.ie6Compat?"background-color: "+g:"",'" class="cke_dialog_background_cover">'];if(CKEDITOR.env.ie6Compat){g="<html><body style=\\'background-color:"+g+";\\'></body></html>";d.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:'); -d.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+g+"' );document.close();")+"})())");d.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')}d.push("</div>");h=CKEDITOR.dom.element.createFromHtml(d.join(""));h.setOpacity(e!==void 0?e:0.5);h.on("keydown",l);h.on("keypress",l);h.on("keyup",l);h.appendTo(CKEDITOR.document.getBody());t[b]=h}a.focusManager.add(h); -s=h;var a=function(){var a=c.getViewPaneSize();h.setStyles({width:a.width+"px",height:a.height+"px"})},f=function(){var a=c.getScrollPosition(),b=CKEDITOR.dialog._.currentTop;h.setStyles({left:a.x+"px",top:a.y+"px"});if(b){do{a=b.getPosition();b.move(a.x,a.y)}while(b=b._.parentDialog)}};w=a;c.on("resize",a);a();(!CKEDITOR.env.mac||!CKEDITOR.env.webkit)&&h.focus();if(CKEDITOR.env.ie6Compat){var i=function(){f();arguments.callee.prevScrollHandler.apply(this,arguments)};c.$.setTimeout(function(){i.prevScrollHandler= -window.onscroll||function(){};window.onscroll=i},0);f()}}function n(a){if(s){a.focusManager.remove(s);a=CKEDITOR.document.getWindow();s.hide();a.removeListener("resize",w);CKEDITOR.env.ie6Compat&&a.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0);w=null}}var o=CKEDITOR.tools.cssLength,p='<div class="cke_reset_all {editorId} {editorDialogClass} {hidpi}" dir="{langDir}" lang="{langCode}" role="dialog" aria-labelledby="cke_dialog_title_{id}"><table class="cke_dialog '+ -CKEDITOR.env.cssClass+' cke_{langDir}" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="cke_dialog_body" role="presentation"><div id="cke_dialog_title_{id}" class="cke_dialog_title" role="presentation"></div><a id="cke_dialog_close_button_{id}" class="cke_dialog_close_button" href="javascript:void(0)" title="{closeTitle}" role="button"><span class="cke_label">X</span></a><div id="cke_dialog_tabs_{id}" class="cke_dialog_tabs" role="tablist"></div><table class="cke_dialog_contents" role="presentation"><tr><td id="cke_dialog_contents_{id}" class="cke_dialog_contents_body" role="presentation"></td></tr><tr><td id="cke_dialog_footer_{id}" class="cke_dialog_footer" role="presentation"></td></tr></table></div></td></tr></table></div>'; -CKEDITOR.dialog=function(b,e){function i(){var a=t._.focusList;a.sort(function(a,c){return a.tabIndex!=c.tabIndex?c.tabIndex-a.tabIndex:a.focusIndex-c.focusIndex});for(var c=a.length,b=0;b<c;b++)a[b].focusIndex=b}function j(a){var c=t._.focusList,a=a||0;if(!(c.length<1)){var b=t._.currentFocusIndex;t._.tabBarMode&&a<0&&(b=0);try{c[b].getInputElement().$.blur()}catch(g){}var e=b,d=t._.pageCount>1;do{e=e+a;if(d&&!t._.tabBarMode&&(e==c.length||e==-1)){t._.tabBarMode=true;t._.tabs[t._.currentTabId][0].focus(); -t._.currentFocusIndex=-1;return}e=(e+c.length)%c.length;if(e==b)break}while(a&&!c[e].isFocusable());c[e].focus();c[e].type=="text"&&c[e].select()}}function l(c){if(t==CKEDITOR.dialog._.currentTop){var g=c.data.getKeystroke(),e=b.lang.dir=="rtl",d=[37,38,39,40];L=y=0;if(g==9||g==CKEDITOR.SHIFT+9){j(g==CKEDITOR.SHIFT+9?-1:1);L=1}else if(g==CKEDITOR.ALT+121&&!t._.tabBarMode&&t.getPageCount()>1){t._.tabBarMode=true;t._.tabs[t._.currentTabId][0].focus();t._.currentFocusIndex=-1;L=1}else if(CKEDITOR.tools.indexOf(d, -g)!=-1&&t._.tabBarMode){g=CKEDITOR.tools.indexOf([e?39:37,38],g)!=-1?a.call(t):f.call(t);t.selectPage(g);t._.tabs[g][0].focus();L=1}else if((g==13||g==32)&&t._.tabBarMode){this.selectPage(this._.currentTabId);this._.tabBarMode=false;this._.currentFocusIndex=-1;j(1);L=1}else if(g==13){g=c.data.getTarget();if(!g.is("a","button","select","textarea")&&(!g.is("input")||g.$.type!="button")){(g=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(g.click,0,g);L=1}y=1}else if(g==27){(g=this.getButton("cancel"))? -CKEDITOR.tools.setTimeout(g.click,0,g):this.fire("cancel",{hide:true}).hide!==false&&this.hide();y=1}else return;o(c)}}function o(a){L?a.data.preventDefault(1):y&&a.data.stopPropagation()}var r=CKEDITOR.dialog._.dialogDefinitions[e],p=CKEDITOR.tools.clone(m),u=b.config.dialog_buttonsOrder||"OS",n=b.lang.dir,q={},L,y;(u=="OS"&&CKEDITOR.env.mac||u=="rtl"&&n=="ltr"||u=="ltr"&&n=="rtl")&&p.buttons.reverse();r=CKEDITOR.tools.extend(r(b),p);r=CKEDITOR.tools.clone(r);r=new v(this,r);p=k(b);this._={editor:b, -element:p.element,name:e,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:false,focusList:[],currentFocusIndex:0,hasFocus:false};this.parts=p.parts;CKEDITOR.tools.setTimeout(function(){b.fire("ariaWidget",this.parts.contents)},0,this);p={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};p[n=="rtl"?"right":"left"]=0;this.parts.dialog.setStyles(p); -CKEDITOR.event.call(this);this.definition=r=CKEDITOR.fire("dialogDefinition",{name:e,definition:r},b).definition;if(!("removeDialogTabs"in b._)&&b.config.removeDialogTabs){p=b.config.removeDialogTabs.split(";");for(n=0;n<p.length;n++){u=p[n].split(":");if(u.length==2){var w=u[0];q[w]||(q[w]=[]);q[w].push(u[1])}}b._.removeDialogTabs=q}if(b._.removeDialogTabs&&(q=b._.removeDialogTabs[e]))for(n=0;n<q.length;n++)r.removeContents(q[n]);if(r.onLoad)this.on("load",r.onLoad);if(r.onShow)this.on("show",r.onShow); -if(r.onHide)this.on("hide",r.onHide);if(r.onOk)this.on("ok",function(a){b.fire("saveSnapshot");setTimeout(function(){b.fire("saveSnapshot")},0);if(r.onOk.call(this,a)===false)a.data.hide=false});this.state=CKEDITOR.DIALOG_STATE_IDLE;if(r.onCancel)this.on("cancel",function(a){if(r.onCancel.call(this,a)===false)a.data.hide=false});var t=this,s=function(a){var c=t._.contents,b=false,g;for(g in c)for(var e in c[g])if(b=a.call(this,c[g][e]))return};this.on("ok",function(a){s(function(c){if(c.validate){var b= -c.validate(this),g=typeof b=="string"||b===false;if(g){a.data.hide=false;a.stop()}d.call(c,!g,typeof b=="string"?b:void 0);return g}})},this,null,0);this.on("cancel",function(a){s(function(c){if(c.isChanged()){if(!b.config.dialog_noConfirmCancel&&!confirm(b.lang.common.confirmCancel))a.data.hide=false;return true}})},this,null,0);this.parts.close.on("click",function(a){this.fire("cancel",{hide:true}).hide!==false&&this.hide();a.data.preventDefault()},this);this.changeFocus=j;var x=this._.element; -b.focusManager.add(x,1);this.on("show",function(){x.on("keydown",l,this);if(CKEDITOR.env.gecko)x.on("keypress",o,this)});this.on("hide",function(){x.removeListener("keydown",l);CKEDITOR.env.gecko&&x.removeListener("keypress",o);s(function(a){h.apply(a)})});this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",l,this,null,0)});this.on("show",function(){i();var a=t._.pageCount>1;if(b.config.dialog_startupFocusTab&&a){t._.tabBarMode=true;t._.tabs[t._.currentTabId][0].focus(); -t._.currentFocusIndex=-1}else if(!this._.hasFocus){this._.currentFocusIndex=a?-1:this._.focusList.length-1;if(r.onFocus)(a=r.onFocus.call(this))&&a.focus();else j(1)}},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on("load",function(){var a=this.getElement(),c=a.getFirst();c.remove();c.appendTo(a)},this);c(this);g(this);(new CKEDITOR.dom.text(r.title,CKEDITOR.document)).appendTo(this.parts.title);for(n=0;n<r.contents.length;n++)(q=r.contents[n])&&this.addPage(q);this.parts.tabs.on("click", -function(a){var c=a.data.getTarget();if(c.hasClass("cke_dialog_tab")){c=c.$.id;this.selectPage(c.substring(4,c.lastIndexOf("_")));if(this._.tabBarMode){this._.tabBarMode=false;this._.currentFocusIndex=-1;j(1)}a.data.preventDefault()}},this);n=[];q=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:r.buttons},n).getChild();this.parts.footer.setHtml(n.join(""));for(n=0;n<q.length;n++)this._.buttons[q[n].id]=q[n]};CKEDITOR.dialog.prototype= -{destroy:function(){this.hide();this._.element.remove()},resize:function(){return function(a,c){if(!this._.contentSize||!(this._.contentSize.width==a&&this._.contentSize.height==c)){CKEDITOR.dialog.fire("resize",{dialog:this,width:a,height:c},this._.editor);this.fire("resize",{width:a,height:c},this._.editor);this.parts.contents.setStyles({width:a+"px",height:c+"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:c}}}}(),getSize:function(){var a=this._.element.getFirst();return{width:a.$.offsetWidth||0,height:a.$.offsetHeight||0}},move:function(a,c,b){var g=this._.element.getFirst(),e=this._.editor.lang.dir=="rtl",d=g.getComputedStyle("position")=="fixed";CKEDITOR.env.ie&&g.setStyle("zoom","100%");if(!d||!this._.position||!(this._.position.x==a&&this._.position.y==c)){this._.position={x:a,y:c};if(!d){d=CKEDITOR.document.getWindow().getScrollPosition(); -a=a+d.x;c=c+d.y}if(e){d=this.getSize();a=CKEDITOR.document.getWindow().getViewPaneSize().width-d.width-a}c={top:(c>0?c:0)+"px"};c[e?"right":"left"]=(a>0?a:0)+"px";g.setStyles(c);b&&(this._.moved=1)}},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var a=this._.element,c=this.definition;!a.getParent()||!a.getParent().equals(CKEDITOR.document.getBody())?a.appendTo(CKEDITOR.document.getBody()):a.setStyle("display","block");this.resize(this._.contentSize&&this._.contentSize.width|| -c.width||c.minWidth,this._.contentSize&&this._.contentSize.height||c.height||c.minHeight);this.reset();this.selectPage(this.definition.contents[0].id);if(CKEDITOR.dialog._.currentZIndex===null)CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex;this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex=CKEDITOR.dialog._.currentZIndex+10);if(CKEDITOR.dialog._.currentTop===null){CKEDITOR.dialog._.currentTop=this;this._.parentDialog=null;q(this._.editor)}else{this._.parentDialog= -CKEDITOR.dialog._.currentTop;this._.parentDialog.getElement().getFirst().$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2);CKEDITOR.dialog._.currentTop=this}a.on("keydown",x);a.on("keyup",B);this._.hasFocus=false;for(var b in c.contents)if(c.contents[b]){var a=c.contents[b],g=this._.tabs[a.id],e=a.requiredContent,d=0;if(g){for(var h in this._.contents[a.id]){var f=this._.contents[a.id][h];if(!(f.type=="hbox"||f.type=="vbox"||!f.getInputElement()))if(f.requiredContent&&!this._.editor.activeFilter.check(f.requiredContent))f.disable(); -else{f.enable();d++}}!d||e&&!this._.editor.activeFilter.check(e)?g[0].addClass("cke_dialog_tab_disabled"):g[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout();i(this);this.parts.dialog.setStyle("visibility","");this.fireOnce("load",{});CKEDITOR.ui.fire("ready",this);this.fire("show",{});this._.editor.fire("dialogShow",this);this._.parentDialog||this._.editor.focusManager.lock();this.foreach(function(a){a.setInitValue&&a.setInitValue()})},100,this)},layout:function(){var a= -this.parts.dialog,c=this.getSize(),b=CKEDITOR.document.getWindow().getViewPaneSize(),g=(b.width-c.width)/2,e=(b.height-c.height)/2;CKEDITOR.env.ie6Compat||(c.height+(e>0?e:0)>b.height||c.width+(g>0?g:0)>b.width?a.setStyle("position","absolute"):a.setStyle("position","fixed"));this.move(this._.moved?this._.position.x:g,this._.moved?this._.position.y:e)},foreach:function(a){for(var c in this._.contents)for(var b in this._.contents[c])a.call(this,this._.contents[c][b]);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(c){c.setup&&c.setup.apply(c,a)})},commitContent:function(){var a=arguments;this.foreach(function(c){CKEDITOR.env.ie&&this._.currentFocusIndex==c.focusIndex&&c.getInputElement().$.blur();c.commit&&c.commit.apply(c,a)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{});this._.editor.fire("dialogHide",this);this.selectPage(this._.tabIdList[0]); -var a=this._.element;a.setStyle("display","none");this.parts.dialog.setStyle("visibility","hidden");for(D(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var c=this._.parentDialog.getElement().getFirst();c.setStyle("z-index",parseInt(c.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else n(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex=CKEDITOR.dialog._.currentZIndex-10; -else{CKEDITOR.dialog._.currentZIndex=null;a.removeListener("keydown",x);a.removeListener("keyup",B);var b=this._.editor;b.focus();setTimeout(function(){b.focusManager.unlock();CKEDITOR.env.iOS&&b.window.focus()},0)}delete this._.parentDialog;this.foreach(function(a){a.resetInitValue&&a.resetInitValue()});this.setState(CKEDITOR.DIALOG_STATE_IDLE)}},addPage:function(a){if(!a.requiredContent||this._.editor.filter.check(a.requiredContent)){for(var c=[],b=a.label?' title="'+CKEDITOR.tools.htmlEncode(a.label)+ -'"':"",g=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%;"},c),e=this._.contents[a.id]={},d=g.getChild(),h=0;g=d.shift();){!g.notAllowed&&(g.type!="hbox"&&g.type!="vbox")&&h++;e[g.id]=g;typeof g.getChild=="function"&&d.push.apply(d,g.getChild())}if(!h)a.hidden=true;c=CKEDITOR.dom.element.createFromHtml(c.join(""));c.setAttribute("role","tabpanel");g=CKEDITOR.env; -e="cke_"+a.id+"_"+CKEDITOR.tools.getNextNumber();b=CKEDITOR.dom.element.createFromHtml(['<a class="cke_dialog_tab"',this._.pageCount>0?" cke_last":"cke_first",b,a.hidden?' style="display:none"':"",' id="',e,'"',g.gecko&&!g.hc?"":' href="javascript:void(0)"',' tabIndex="-1" hidefocus="true" role="tab">',a.label,"</a>"].join(""));c.setAttribute("aria-labelledby",e);this._.tabs[a.id]=[b,c];this._.tabIdList.push(a.id);!a.hidden&&this._.pageCount++;this._.lastTab=b;this.updateStyle();c.setAttribute("name", -a.id);c.appendTo(this.parts.contents);b.unselectable();this.parts.tabs.append(b);if(a.accessKey){A(this,this,"CTRL+"+a.accessKey,J,C);this._.accessKeyMap["CTRL+"+a.accessKey]=a.id}}},selectPage:function(a){if(this._.currentTabId!=a&&!this._.tabs[a][0].hasClass("cke_dialog_tab_disabled")&&this.fire("selectPage",{page:a,currentPage:this._.currentTabId})!==false){for(var c in this._.tabs){var g=this._.tabs[c][0],e=this._.tabs[c][1];if(c!=a){g.removeClass("cke_dialog_tab_selected");e.hide()}e.setAttribute("aria-hidden", -c!=a)}var d=this._.tabs[a];d[0].addClass("cke_dialog_tab_selected");if(CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat){b(d[1]);d[1].show();setTimeout(function(){b(d[1],1)},0)}else d[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(c){var b=this._.tabs[c]&&this._.tabs[c][0];if(b&&this._.pageCount!=1&&b.isVisible()){c==this._.currentTabId&& -this.selectPage(a.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,c){var b=this._.contents[a];return b&&b[c]},getValueOf:function(a,c){return this.getContentElement(a,c).getValue()},setValueOf:function(a,c,b){return this.getContentElement(a,c).setValue(b)},getButton:function(a){return this._.buttons[a]}, -click:function(a){return this._.buttons[a].click()},disableButton:function(a){return this._.buttons[a].disable()},enableButton:function(a){return this._.buttons[a].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(a,c){if(typeof c=="undefined"){c=this._.focusList.length;this._.focusList.push(new j(this,a,c))}else{this._.focusList.splice(c, -0,new j(this,a,c));for(var b=c+1;b<this._.focusList.length;b++)this._.focusList[b].focusIndex++}},setState:function(a){if(this.state!=a){this.state=a;if(a==CKEDITOR.DIALOG_STATE_BUSY){if(!this.parts.spinner){var c=this.getParentEditor().lang.dir,b={attributes:{"class":"cke_dialog_spinner"},styles:{"float":c=="rtl"?"right":"left"}};b.styles["margin-"+(c=="rtl"?"left":"right")]="8px";this.parts.spinner=CKEDITOR.document.createElement("div",b);this.parts.spinner.setHtml("⌛");this.parts.spinner.appendTo(this.parts.title, -1)}this.parts.spinner.show();this.getButton("ok").disable()}else if(a==CKEDITOR.DIALOG_STATE_IDLE){this.parts.spinner&&this.parts.spinner.hide();this.getButton("ok").enable()}this.fire("state",a)}}};CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(a,c){if(!this._.dialogDefinitions[a]||typeof c=="function")this._.dialogDefinitions[a]=c},exists:function(a){return!!this._.dialogDefinitions[a]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(a,c,b){a=a.config.removeDialogTabs; -return!(a&&a.match(RegExp("(?:^|;)"+c+":"+b+"(?:$|;)","i")))},okButton:function(){var a=function(a,c){c=c||{};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()}},c,true)};a.type="button";a.override=function(c){return CKEDITOR.tools.extend(function(b){return a(b,c)},{type:"button"},true)};return a}(),cancelButton:function(){var a=function(a,c){c=c||{};return CKEDITOR.tools.extend({id:"cancel", -type:"button",label:a.lang.common.cancel,"class":"cke_dialog_ui_button_cancel",onClick:function(a){a=a.data.dialog;a.fire("cancel",{hide:true}).hide!==false&&a.hide()}},c,true)};a.type="button";a.override=function(c){return CKEDITOR.tools.extend(function(b){return a(b,c)},{type:"button"},true)};return a}(),addUIElement:function(a,c){this._.uiElementBuilders[a]=c}});CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};CKEDITOR.event.implementOn(CKEDITOR.dialog); -CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);var m={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},r=function(a,c,b){for(var g=0,e;e=a[g];g++){if(e.id==c)return e;if(b&&e[b])if(e=r(e[b],c,b))return e}return null},u=function(a,c,b,g,e){if(b){for(var d=0,h;h=a[d];d++){if(h.id==b){a.splice(d,0,c);return c}if(g&&h[g])if(h=u(h[g],c,b,g,true))return h}if(e)return null}a.push(c);return c},y=function(a,c,b){for(var g= -0,e;e=a[g];g++){if(e.id==c)return a.splice(g,1);if(b&&e[b])if(e=y(e[b],c,b))return e}return null},v=function(a,c){this.dialog=a;for(var b=c.contents,g=0,d;d=b[g];g++)b[g]=d&&new e(a,d);CKEDITOR.tools.extend(this,c)};v.prototype={getContents:function(a){return r(this.contents,a)},getButton:function(a){return r(this.buttons,a)},addContents:function(a,c){return u(this.contents,a,c)},addButton:function(a,c){return u(this.buttons,a,c)},removeContents:function(a){y(this.contents,a)},removeButton:function(a){y(this.buttons, -a)}};e.prototype={get:function(a){return r(this.elements,a,"children")},add:function(a,c){return u(this.elements,a,c,"children")},remove:function(a){y(this.elements,a,"children")}};var w,t={},s,z={},x=function(a){var c=a.data.$.ctrlKey||a.data.$.metaKey,b=a.data.$.altKey,g=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode);if((c=z[(c?"CTRL+":"")+(b?"ALT+":"")+(g?"SHIFT+":"")+e])&&c.length){c=c[c.length-1];c.keydown&&c.keydown.call(c.uiElement,c.dialog,c.key);a.data.preventDefault()}},B=function(a){var c= -a.data.$.ctrlKey||a.data.$.metaKey,b=a.data.$.altKey,g=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode);if((c=z[(c?"CTRL+":"")+(b?"ALT+":"")+(g?"SHIFT+":"")+e])&&c.length){c=c[c.length-1];if(c.keyup){c.keyup.call(c.uiElement,c.dialog,c.key);a.data.preventDefault()}}},A=function(a,c,b,g,e){(z[b]||(z[b]=[])).push({uiElement:a,dialog:c,key:b,keyup:e||a.accessKeyUp,keydown:g||a.accessKeyDown})},D=function(a){for(var c in z){for(var b=z[c],g=b.length-1;g>=0;g--)(b[g].dialog==a||b[g].uiElement== -a)&&b.splice(g,1);b.length===0&&delete z[c]}},C=function(a,c){a._.accessKeyMap[c]&&a.selectPage(a._.accessKeyMap[c])},J=function(){};(function(){CKEDITOR.ui.dialog={uiElement:function(a,c,b,g,e,d,h){if(!(arguments.length<4)){var f=(g.call?g(c):g)||"div",i=["<",f," "],j=(e&&e.call?e(c):e)||{},k=(d&&d.call?d(c):d)||{},l=(h&&h.call?h.call(this,a,c):h)||"",m=this.domId=k.id||CKEDITOR.tools.getNextId()+"_uiElement";if(c.requiredContent&&!a.getParentEditor().filter.check(c.requiredContent)){j.display="none"; -this.notAllowed=true}k.id=m;var o={};c.type&&(o["cke_dialog_ui_"+c.type]=1);c.className&&(o[c.className]=1);if(c.disabled)o.cke_disabled=1;for(var r=k["class"]&&k["class"].split?k["class"].split(" "):[],m=0;m<r.length;m++)r[m]&&(o[r[m]]=1);r=[];for(m in o)r.push(m);k["class"]=r.join(" ");if(c.title)k.title=c.title;o=(c.style||"").split(";");if(c.align){r=c.align;j["margin-left"]=r=="left"?0:"auto";j["margin-right"]=r=="right"?0:"auto"}for(m in j)o.push(m+":"+j[m]);c.hidden&&o.push("display:none"); -for(m=o.length-1;m>=0;m--)o[m]===""&&o.splice(m,1);if(o.length>0)k.style=(k.style?k.style+"; ":"")+o.join("; ");for(m in k)i.push(m+'="'+CKEDITOR.tools.htmlEncode(k[m])+'" ');i.push(">",l,"</",f,">");b.push(i.join(""));(this._||(this._={})).dialog=a;if(typeof c.isChanged=="boolean")this.isChanged=function(){return c.isChanged};if(typeof c.isChanged=="function")this.isChanged=c.isChanged;if(typeof c.setValue=="function")this.setValue=CKEDITOR.tools.override(this.setValue,function(a){return function(b){a.call(this, -c.setValue.call(this,b))}});if(typeof c.getValue=="function")this.getValue=CKEDITOR.tools.override(this.getValue,function(a){return function(){return c.getValue.call(this,a.call(this))}});CKEDITOR.event.implementOn(this);this.registerEvents(c);this.accessKeyUp&&(this.accessKeyDown&&c.accessKey)&&A(this,a,"CTRL+"+c.accessKey);var n=this;a.on("load",function(){var c=n.getInputElement();if(c){var b=n.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?"cke_dialog_ui_focused":"";c.on("focus", -function(){a._.tabBarMode=false;a._.hasFocus=true;n.fire("focus");b&&this.addClass(b)});c.on("blur",function(){n.fire("blur");b&&this.removeClass(b)})}});CKEDITOR.tools.extend(this,c);if(this.keyboardFocusable){this.tabIndex=c.tabIndex||0;this.focusIndex=a._.focusList.push(this)-1;this.on("focus",function(){a._.currentFocusIndex=n.focusIndex})}}},hbox:function(a,c,b,g,e){if(!(arguments.length<4)){this._||(this._={});var d=this._.children=c,h=e&&e.widths||null,f=e&&e.height||null,i,j={role:"presentation"}; -e&&e.align&&(j.align=e.align);CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"hbox"},g,"table",{},j,function(){var a=['<tbody><tr class="cke_dialog_ui_hbox">'];for(i=0;i<b.length;i++){var c="cke_dialog_ui_hbox_child",g=[];i===0&&(c="cke_dialog_ui_hbox_first");i==b.length-1&&(c="cke_dialog_ui_hbox_last");a.push('<td class="',c,'" role="presentation" ');h?h[i]&&g.push("width:"+o(h[i])):g.push("width:"+Math.floor(100/b.length)+"%");f&&g.push("height:"+o(f));e&&e.padding!==void 0&&g.push("padding:"+ -o(e.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&d[i].align)&&g.push("text-align:"+d[i].align);g.length>0&&a.push('style="'+g.join("; ")+'" ');a.push(">",b[i],"</td>")}a.push("</tr></tbody>");return a.join("")})}},vbox:function(a,c,b,g,e){if(!(arguments.length<3)){this._||(this._={});var d=this._.children=c,h=e&&e.width||null,f=e&&e.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"vbox"},g,"div",null,{role:"presentation"},function(){var c=['<table role="presentation" cellspacing="0" border="0" ']; -c.push('style="');e&&e.expand&&c.push("height:100%;");c.push("width:"+o(h||"100%"),";");CKEDITOR.env.webkit&&c.push("float:none;");c.push('"');c.push('align="',CKEDITOR.tools.htmlEncode(e&&e.align||(a.getParentEditor().lang.dir=="ltr"?"left":"right")),'" ');c.push("><tbody>");for(var g=0;g<b.length;g++){var i=[];c.push('<tr><td role="presentation" ');h&&i.push("width:"+o(h||"100%"));f?i.push("height:"+o(f[g])):e&&e.expand&&i.push("height:"+Math.floor(100/b.length)+"%");e&&e.padding!==void 0&&i.push("padding:"+ -o(e.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&d[g].align)&&i.push("text-align:"+d[g].align);i.length>0&&c.push('style="',i.join("; "),'" ');c.push(' class="cke_dialog_ui_vbox_child">',b[g],"</td></tr>")}c.push("</tbody></table>");return c.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,c){this.getInputElement().setValue(a); -!c&&this.fire("change",{value:a});return this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return false},selectParentTab:function(){for(var a=this.getInputElement();(a=a.getParent())&&a.$.className.search("cke_dialog_page_contents")==-1;);if(!a)return this;a=a.getAttribute("name");this._.dialog._.currentTabId!=a&&this._.dialog.selectPage(a);return this},focus:function(){this.selectParentTab().getInputElement().focus();return this},registerEvents:function(a){var c= -/^on([A-Z]\w+)/,b,g=function(a,c,b,g){c.on("load",function(){a.getInputElement().on(b,g,a)})},e;for(e in a)if(b=e.match(c))this.eventProcessors[e]?this.eventProcessors[e].call(this,this._.dialog,a[e]):g(this,this._.dialog,b[1].toLowerCase(),a[e]);return this},eventProcessors:{onLoad:function(a,c){a.on("load",c,this)},onShow:function(a,c){a.on("show",c,this)},onHide:function(a,c){a.on("hide",c,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var a=this.getElement(); -this.getInputElement().setAttribute("disabled","true");a.addClass("cke_disabled")},enable:function(){var a=this.getElement();this.getInputElement().removeAttribute("disabled");a.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return!this.isEnabled()||!this.isVisible()?false:true}};CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement, -{getChild:function(a){if(arguments.length<1)return this._.children.concat();a.splice||(a=[a]);return a.length<2?this._.children[a[0]]:this._.children[a[0]]&&this._.children[a[0]].getChild?this._.children[a[0]].getChild(a.slice(1,a.length)):null}},true);CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox;(function(){var a={build:function(a,c,b){for(var g=c.children,e,d=[],h=[],f=0;f<g.length&&(e=g[f]);f++){var i=[];d.push(i);h.push(CKEDITOR.dialog._.uiElementBuilders[e.type].build(a,e,i))}return new CKEDITOR.ui.dialog[c.type](a, -h,d,b,c)}};CKEDITOR.dialog.addUIElement("hbox",a);CKEDITOR.dialog.addUIElement("vbox",a)})();CKEDITOR.dialogCommand=function(a,c){this.dialogName=a;CKEDITOR.tools.extend(this,c,true)};CKEDITOR.dialogCommand.prototype={exec:function(a){a.openDialog(this.dialogName)},canUndo:false,editorFocus:1};(function(){var a=/^([a]|[^a])+$/,c=/^\d*$/,b=/^\d*(?:\.\d+)?$/,g=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,e=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,d=/^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;CKEDITOR.VALIDATE_OR= -1;CKEDITOR.VALIDATE_AND=2;CKEDITOR.dialog.validate={functions:function(){var a=arguments;return function(){var c=this&&this.getValue?this.getValue():a[0],b,g=CKEDITOR.VALIDATE_AND,e=[],d;for(d=0;d<a.length;d++)if(typeof a[d]=="function")e.push(a[d]);else break;if(d<a.length&&typeof a[d]=="string"){b=a[d];d++}d<a.length&&typeof a[d]=="number"&&(g=a[d]);var h=g==CKEDITOR.VALIDATE_AND?true:false;for(d=0;d<e.length;d++)h=g==CKEDITOR.VALIDATE_AND?h&&e[d](c):h||e[d](c);return!h?b:true}},regex:function(a, -c){return function(b){b=this&&this.getValue?this.getValue():b;return!a.test(b)?c:true}},notEmpty:function(c){return this.regex(a,c)},integer:function(a){return this.regex(c,a)},number:function(a){return this.regex(b,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 g.test(CKEDITOR.tools.trim(a))},a)},inlineStyle:function(a){return this.functions(function(a){return d.test(CKEDITOR.tools.trim(a))}, -a)},equals:function(a,c){return this.functions(function(c){return c==a},c)},notEqual:function(a,c){return this.functions(function(c){return c!=a},c)}};CKEDITOR.on("instanceDestroyed",function(a){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var c;c=CKEDITOR.dialog._.currentTop;)c.hide();for(var b in t)t[b].remove();t={}}var a=a.editor._.storedDialogs,g;for(g in a)a[g].destroy()})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(a,c){var b=null,g=CKEDITOR.dialog._.dialogDefinitions[a]; -CKEDITOR.dialog._.currentTop===null&&q(this);if(typeof g=="function"){b=this._.storedDialogs||(this._.storedDialogs={});b=b[a]||(b[a]=new CKEDITOR.dialog(this,a));c&&c.call(b,b);b.show()}else{if(g=="failed"){n(this);throw Error('[CKEDITOR.dialog.openDialog] Dialog "'+a+'" failed when loading definition.');}typeof g=="string"&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(g),function(){typeof CKEDITOR.dialog._.dialogDefinitions[a]!="function"&&(CKEDITOR.dialog._.dialogDefinitions[a]="failed");this.openDialog(a, -c)},this,0,1)}CKEDITOR.skin.loadPart("dialog");return b}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(a){a.on("doubleclick",function(f){f.data.dialog&&a.openDialog(f.data.dialog)},null,null,999)}}),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(a){var f=a.addCommand("about",new CKEDITOR.dialogCommand("about"));f.modes={wysiwyg:1,source:1};f.canUndo=false;f.readOnly=1;a.ui.addButton&&a.ui.addButton("About",{label:a.lang.about.title,command:"about",toolbar:"about"}); -CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),function(){CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{af:1,ar:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,en:1,"en-gb":1,eo:1,es:1,et:1,fa:1,fi:1,fo:1,fr:1,"fr-ca":1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,nb:1,nl:1,no:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sr:1,"sr-latn":1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},init:function(a){var f=this;a.addCommand("a11yHelp", -{exec:function(){var b=a.langCode,b=f.availableLangs[b]?b:f.availableLangs[b.replace(/-.*/,"")]?b.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(f.path+"dialogs/lang/"+b+".js"),function(){a.lang.a11yhelp=f.langEntries[b];a.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:false});a.setKeystroke(CKEDITOR.ALT+48,"a11yHelp");CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js");a.on("ariaEditorHelpLabel",function(b){b.data.label=a.lang.common.editorHelp})}})}(), -CKEDITOR.plugins.add("basicstyles",{init:function(a){var f=0,b=function(b,h,e,c){if(c){var c=new CKEDITOR.style(c),g=d[e];g.unshift(c);a.attachStyleStateChange(c,function(c){!a.readOnly&&a.getCommand(e).setState(c)});a.addCommand(e,new CKEDITOR.styleCommand(c,{contentForms:g}));a.ui.addButton&&a.ui.addButton(b,{label:h,command:e,toolbar:"basicstyles,"+(f=f+10)})}},d={bold:["strong","b",["span",function(a){a=a.styles["font-weight"];return a=="bold"||+a>=700}]],italic:["em","i",["span",function(a){return a.styles["font-style"]== -"italic"}]],underline:["u",["span",function(a){return a.styles["text-decoration"]=="underline"}]],strike:["s","strike",["span",function(a){return a.styles["text-decoration"]=="line-through"}]],subscript:["sub"],superscript:["sup"]},h=a.config,k=a.lang.basicstyles;b("Bold",k.bold,"bold",h.coreStyles_bold);b("Italic",k.italic,"italic",h.coreStyles_italic);b("Underline",k.underline,"underline",h.coreStyles_underline);b("Strike",k.strike,"strike",h.coreStyles_strike);b("Subscript",k.subscript,"subscript", -h.coreStyles_subscript);b("Superscript",k.superscript,"superscript",h.coreStyles_superscript);a.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}}),CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"},CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"},CKEDITOR.config.coreStyles_underline={element:"u"},CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"},CKEDITOR.config.coreStyles_subscript={element:"sub"},CKEDITOR.config.coreStyles_superscript= -{element:"sup"},function(){var a={exec:function(a){var b=a.getCommand("blockquote").state,d=a.getSelection(),h=d&&d.getRanges()[0];if(h){var k=d.createBookmarks();if(CKEDITOR.env.ie){var j=k[0].startNode,i=k[0].endNode,e;if(j&&j.getParent().getName()=="blockquote")for(e=j;e=e.getNext();)if(e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary()){j.move(e,true);break}if(i&&i.getParent().getName()=="blockquote")for(e=i;e=e.getPrevious();)if(e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary()){i.move(e);break}}var c= -h.createIterator();c.enlargeBr=a.config.enterMode!=CKEDITOR.ENTER_BR;if(b==CKEDITOR.TRISTATE_OFF){for(j=[];b=c.getNextParagraph();)j.push(b);if(j.length<1){b=a.document.createElement(a.config.enterMode==CKEDITOR.ENTER_P?"p":"div");i=k.shift();h.insertNode(b);b.append(new CKEDITOR.dom.text("",a.document));h.moveToBookmark(i);h.selectNodeContents(b);h.collapse(true);i=h.createBookmark();j.push(b);k.unshift(i)}e=j[0].getParent();h=[];for(i=0;i<j.length;i++){b=j[i];e=e.getCommonAncestor(b.getParent())}for(b= -{table:1,tbody:1,tr:1,ol:1,ul:1};b[e.getName()];)e=e.getParent();for(i=null;j.length>0;){for(b=j.shift();!b.getParent().equals(e);)b=b.getParent();b.equals(i)||h.push(b);i=b}for(;h.length>0;){b=h.shift();if(b.getName()=="blockquote"){for(i=new CKEDITOR.dom.documentFragment(a.document);b.getFirst();){i.append(b.getFirst().remove());j.push(i.getLast())}i.replace(b)}else j.push(b)}h=a.document.createElement("blockquote");for(h.insertBefore(j[0]);j.length>0;){b=j.shift();h.append(b)}}else if(b==CKEDITOR.TRISTATE_ON){i= -[];for(e={};b=c.getNextParagraph();){for(j=h=null;b.getParent();){if(b.getParent().getName()=="blockquote"){h=b.getParent();j=b;break}b=b.getParent()}if(h&&j&&!j.getCustomData("blockquote_moveout")){i.push(j);CKEDITOR.dom.element.setMarker(e,j,"blockquote_moveout",true)}}CKEDITOR.dom.element.clearAllMarkers(e);b=[];j=[];for(e={};i.length>0;){c=i.shift();h=c.getParent();if(c.getPrevious())if(c.getNext()){c.breakParent(c.getParent());j.push(c.getNext())}else c.remove().insertAfter(h);else c.remove().insertBefore(h); -if(!h.getCustomData("blockquote_processed")){j.push(h);CKEDITOR.dom.element.setMarker(e,h,"blockquote_processed",true)}b.push(c)}CKEDITOR.dom.element.clearAllMarkers(e);for(i=j.length-1;i>=0;i--){h=j[i];a:{e=h;for(var c=0,g=e.getChildCount(),l=void 0;c<g&&(l=e.getChild(c));c++)if(l.type==CKEDITOR.NODE_ELEMENT&&l.isBlockBoundary()){e=false;break a}e=true}e&&h.remove()}if(a.config.enterMode==CKEDITOR.ENTER_BR)for(h=true;b.length;){c=b.shift();if(c.getName()=="div"){i=new CKEDITOR.dom.documentFragment(a.document); -h&&(c.getPrevious()&&!(c.getPrevious().type==CKEDITOR.NODE_ELEMENT&&c.getPrevious().isBlockBoundary()))&&i.append(a.document.createElement("br"));for(h=c.getNext()&&!(c.getNext().type==CKEDITOR.NODE_ELEMENT&&c.getNext().isBlockBoundary());c.getFirst();)c.getFirst().remove().appendTo(i);h&&i.append(a.document.createElement("br"));i.replace(c);h=false}}}d.selectBookmarks(k);a.focus()}},refresh:function(a,b){this.setState(a.elementPath(b.block||b.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON: -CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"};CKEDITOR.plugins.add("blockquote",{init:function(f){if(!f.blockless){f.addCommand("blockquote",a);f.ui.addButton&&f.ui.addButton("Blockquote",{label:f.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"})}}})}(),"use strict",function(){function a(a,c,b){if(!c.type)c.type="auto";if(b&&a.fire("beforePaste",c)===false||!c.dataValue&&c.dataTransfer.isEmpty())return false;if(!c.dataValue)c.dataValue= -"";if(CKEDITOR.env.gecko&&c.method=="drop"&&a.toolbox)a.once("afterPaste",function(){a.toolbox.focus()});return a.fire("paste",c)}function f(c){function b(){var a=c.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var e=function(a){z.initPasteDataTransfer(a,c);a.data.preventDefault()};a.on("copy",e);a.on("cut",e);a.on("cut",function(){c.extractSelectedHtml()},null,null,999)}a.on(z.mainPasteEvent,function(a){z.mainPasteEvent=="beforepaste"&&x||w(a)});if(z.mainPasteEvent=="beforepaste"){a.on("paste", -function(a){if(!B){h();a.data.preventDefault();w(a);i("paste")||c.openDialog("paste")}});a.on("contextmenu",f,null,null,0);a.on("beforepaste",function(a){a.data&&(!a.data.$.ctrlKey&&!a.data.$.shiftKey)&&f()},null,null,0)}a.on("beforecut",function(){!x&&j(c)});var d;a.attachListener(CKEDITOR.env.ie?a:c.document.getDocumentElement(),"mouseup",function(){d=setTimeout(function(){t()},0)});c.on("destroy",function(){clearTimeout(d)});a.on("keyup",t)}function e(a){return{type:a,canUndo:a=="cut",startDisabled:true, -exec:function(){this.type=="cut"&&j();var a;var b=this.type;if(CKEDITOR.env.ie)a=i(b);else try{a=c.document.$.execCommand(b,false,null)}catch(e){a=false}a||c.showNotification(c.lang.clipboard[this.type+"Error"]);return a}}}function d(){return{canUndo:false,async:true,exec:function(c,b){var g=function(b,g){b&&a(c,b,!!g);c.fire("afterCommandExec",{name:"paste",command:e,returnValue:!!b})},e=this;typeof b=="string"?g({dataValue:b,method:"paste",dataTransfer:z.initPasteDataTransfer()},1):c.getClipboardData(g)}}} -function h(){B=1;setTimeout(function(){B=0},100)}function f(){x=1;setTimeout(function(){x=0},10)}function i(a){var b=c.document,e=b.getBody(),d=false,h=function(){d=true};e.on(a,h);CKEDITOR.env.version>7?b.$.execCommand(a):b.$.selection.createRange().execCommand(a);e.removeListener(a,h);return d}function j(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var a=c.getSelection(),b,e,d;if(a.getType()==CKEDITOR.SELECTION_ELEMENT&&(b=a.getSelectedElement())){e=a.getRanges()[0];d=c.document.createText("");d.insertBefore(b); -e.setStartBefore(d);e.setEndAfter(b);a.selectRanges([e]);setTimeout(function(){if(b.getParent()){d.remove();a.selectElement(b)}},0)}}}function k(a,b){var e=c.document,d=c.editable(),h=function(a){a.cancel()},f;if(!e.getById("cke_pastebin")){var i=c.getSelection(),j=i.createBookmarks();CKEDITOR.env.ie&&i.root.fire("selectionchange");var l=new CKEDITOR.dom.element((CKEDITOR.env.webkit||d.is("body"))&&!CKEDITOR.env.ie?"body":"div",e);l.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var m=0,e= -e.getWindow();if(CKEDITOR.env.webkit){d.append(l);l.addClass("cke_editable");if(!d.is("body")){m=d.getComputedStyle("position")!="static"?d:CKEDITOR.dom.element.get(d.$.offsetParent);m=m.getDocumentPosition().y}}else d.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(l);l.setStyles({position:"absolute",top:e.getScrollPosition().y-m+10+"px",width:"1px",height:Math.max(1,e.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0});CKEDITOR.env.safari&&l.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select", -"text"));if(m=l.getParent().isReadOnly()){l.setOpacity(0);l.setAttribute("contenteditable",true)}else l.setStyle(c.config.contentsLangDirection=="ltr"?"left":"right","-1000px");c.on("selectionChange",h,null,null,0);if(CKEDITOR.env.webkit||CKEDITOR.env.gecko)f=d.once("blur",h,null,null,-100);m&&l.focus();m=new CKEDITOR.dom.range(l);m.selectNodeContents(l);var o=m.select();CKEDITOR.env.ie&&(f=d.once("blur",function(){c.lockSelection(o)}));var r=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){if(CKEDITOR.env.webkit)CKEDITOR.document.getBody().$.scrollTop= -r;f&&f.removeListener();CKEDITOR.env.ie&&d.focus();i.selectBookmarks(j);l.remove();var a;if(CKEDITOR.env.webkit&&(a=l.getFirst())&&a.is&&a.hasClass("Apple-style-span"))l=a;c.removeListener("selectionChange",h);b(l.getHtml())},0)}}function y(){if(z.mainPasteEvent=="paste"){c.fire("beforePaste",{type:"auto",method:"paste"});return false}c.focus();h();var a=c.focusManager;a.lock();if(c.editable().fire(z.mainPasteEvent)&&!i("paste")){a.unlock();return false}a.unlock();return true}function v(a){if(c.mode== -"wysiwyg")switch(a.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:a=c.editable();h();z.mainPasteEvent=="paste"&&a.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:c.fire("saveSnapshot");setTimeout(function(){c.fire("saveSnapshot")},50)}}function w(b){var e={type:"auto",method:"paste",dataTransfer:z.initPasteDataTransfer(b)};e.dataTransfer.cacheData();var d=c.fire("beforePaste",e)!==false;if(d&&z.canClipboardApiBeTrusted(e.dataTransfer,c)){b.data.preventDefault(); -setTimeout(function(){a(c,e)},0)}else k(b,function(b){e.dataValue=b.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,"");d&&a(c,e)})}function t(){if(c.mode=="wysiwyg"){var a=s("paste");c.getCommand("cut").setState(s("cut"));c.getCommand("copy").setState(s("copy"));c.getCommand("paste").setState(a);c.fire("pasteState",a)}}function s(a){if(A&&a in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if(a=="paste")return CKEDITOR.TRISTATE_OFF;var a=c.getSelection(),b=a.getRanges();return a.getType()== -CKEDITOR.SELECTION_NONE||b.length==1&&b[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var z=CKEDITOR.plugins.clipboard,x=0,B=0,A=0;(function(){c.on("key",v);c.on("contentDom",b);c.on("selectionChange",function(a){A=a.data.selection.getRanges()[0].checkReadOnly();t()});c.contextMenu&&c.contextMenu.addListener(function(a,c){A=c.getRanges()[0].checkReadOnly();return{cut:s("cut"),copy:s("copy"),paste:s("paste")}})})();(function(){function a(b,e,d,h,f){var i=c.lang.clipboard[e];c.addCommand(e, -d);c.ui.addButton&&c.ui.addButton(b,{label:i,command:e,toolbar:"clipboard,"+h});c.addMenuItems&&c.addMenuItem(e,{label:i,command:e,group:"clipboard",order:f})}a("Cut","cut",e("cut"),10,1);a("Copy","copy",e("copy"),20,4);a("Paste","paste",d(),30,8)})();c.getClipboardData=function(a,b){function e(a){a.removeListener();a.cancel();b(a.data)}function d(a){a.removeListener();a.cancel();j=true;b({type:i,dataValue:a.data,method:"paste"})}function h(){this.customTitle=a&&a.title}var f=false,i="auto",j=false; -if(!b){b=a;a=null}c.on("paste",e,null,null,0);c.on("beforePaste",function(a){a.removeListener();f=true;i=a.data.type},null,null,1E3);if(y()===false){c.removeListener("paste",e);if(f&&c.fire("pasteDialog",h)){c.on("pasteDialogCommit",d);c.on("dialogHide",function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",d);setTimeout(function(){j||b(null)},10)})}else b(null)}}}function b(a){if(CKEDITOR.env.webkit){if(!a.match(/^[^<]*$/g)&&!a.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi)&& -!a.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi))return"html"}else if(CKEDITOR.env.gecko){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}else return"html";return"htmlifiedtext"}function d(a,c){function b(a){return CKEDITOR.tools.repeat("</p><p>",~~(a/2))+(a%2==1?"<br>":"")}c=c.replace(/\s+/g," ").replace(/> +</g,"><").replace(/<br ?\/>/gi,"<br>");c=c.replace(/<\/?[A-Z]+>/g,function(a){return a.toLowerCase()});if(c.match(/^[^<]$/))return c;if(CKEDITOR.env.webkit&&c.indexOf("<div>")>-1){c= -c.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"<br>").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"<div></div>");c.match(/<div>(<br>|)<\/div>/)&&(c="<p>"+c.replace(/(<div>(<br>|)<\/div>)+/g,function(a){return b(a.split("</div><div>").length+1)})+"</p>");c=c.replace(/<\/div><div>/g,"<br>");c=c.replace(/<\/?div>/g,"")}if(CKEDITOR.env.gecko&&a.enterMode!=CKEDITOR.ENTER_BR){CKEDITOR.env.gecko&&(c=c.replace(/^<br><br>$/,"<br>"));c.indexOf("<br><br>")>-1&&(c="<p>"+c.replace(/(<br>){2,}/g, -function(a){return b(a.length/4)})+"</p>")}return j(a,c)}function h(){function a(){var c={},b;for(b in CKEDITOR.dtd)b.charAt(0)!="$"&&(b!="div"&&b!="span")&&(c[b]=1);return c}var c,b;return{get:function(e){if(e=="plain-text")return c||(c=new CKEDITOR.filter("br"));if(e=="semantic-content"){if(!(e=b)){e=new CKEDITOR.filter;e.allow({$1:{elements:a(),attributes:true,styles:false,classes:false}});e=b=e}return e}return e?new CKEDITOR.filter(e):null}}}function k(a,c,b){var c=CKEDITOR.htmlParser.fragment.fromHtml(c), -e=new CKEDITOR.htmlParser.basicWriter;b.applyTo(c,true,false,a.activeEnterMode);c.writeHtml(e);return e.getHtml()}function j(a,c){a.enterMode==CKEDITOR.ENTER_BR?c=c.replace(/(<\/p><p>)+/g,function(a){return CKEDITOR.tools.repeat("<br>",a.length/7*2)}).replace(/<\/?p>/g,""):a.enterMode==CKEDITOR.ENTER_DIV&&(c=c.replace(/<(\/)?p>/g,"<$1div>"));return c}function i(a){a.data.preventDefault();a.data.$.dataTransfer.dropEffect="none"}function e(c){var b=CKEDITOR.plugins.clipboard;c.on("contentDom",function(){function e(b, -d,h){d.select();a(c,{dataTransfer:h,method:"drop"},1);h.sourceEditor.fire("saveSnapshot");h.sourceEditor.editable().extractHtmlFromRange(b);h.sourceEditor.getSelection().selectRanges([b]);h.sourceEditor.fire("saveSnapshot")}function d(e,h){e.select();a(c,{dataTransfer:h,method:"drop"},1);b.resetDragDataTransfer()}function h(a,b,e){var d={$:a.data.$,target:a.data.getTarget()};if(b)d.dragRange=b;if(e)d.dropRange=e;c.fire(a.name,d)===false&&a.data.preventDefault()}function f(a){a.type!=CKEDITOR.NODE_ELEMENT&& -(a=a.getParent());return a.getChildCount()}var i=c.editable(),j=CKEDITOR.plugins.clipboard.getDropTarget(c),k=c.ui.space("top"),y=c.ui.space("bottom");b.preventDefaultDropOnElement(k);b.preventDefaultDropOnElement(y);i.attachListener(j,"dragstart",h);i.attachListener(c,"dragstart",b.resetDragDataTransfer,b,null,1);i.attachListener(c,"dragstart",function(a){b.initDragDataTransfer(a,c);a=b.dragRange=c.getSelection().getRanges()[0];if(CKEDITOR.env.ie&&CKEDITOR.env.version<10){b.dragStartContainerChildCount= -a?f(a.startContainer):null;b.dragEndContainerChildCount=a?f(a.endContainer):null}},null,null,2);i.attachListener(j,"dragend",h);i.attachListener(c,"dragend",b.initDragDataTransfer,b,null,1);i.attachListener(c,"dragend",b.resetDragDataTransfer,b,null,100);i.attachListener(j,"dragover",function(a){var c=a.data.getTarget();c&&c.is&&c.is("html")?a.data.preventDefault():CKEDITOR.env.ie&&(CKEDITOR.plugins.clipboard.isFileApiSupported&&a.data.$.dataTransfer.types.contains("Files"))&&a.data.preventDefault()}); -i.attachListener(j,"drop",function(a){a.data.preventDefault();var e=a.data.getTarget();if(!e.isReadOnly()||e.type==CKEDITOR.NODE_ELEMENT&&e.is("html")){var e=b.getRangeAtDropPosition(a,c),d=b.dragRange;e&&h(a,d,e)}});i.attachListener(c,"drop",b.initDragDataTransfer,b,null,1);i.attachListener(c,"drop",function(a){if(a=a.data){var h=a.dropRange,f=a.dragRange,i=a.dataTransfer;i.getTransferType(c)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){b.internalDrop(f,h,i,c)},0):i.getTransferType(c)== -CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?e(f,h,i):d(h,i)}},null,null,9999)})}CKEDITOR.plugins.add("clipboard",{requires:"dialog",init:function(a){var c,i=h();a.config.forcePasteAsPlainText?c="plain-text":a.config.pasteFilter?c=a.config.pasteFilter:CKEDITOR.env.webkit&&!("pasteFilter"in a.config)&&(c="semantic-content");a.pasteFilter=i.get(c);f(a);e(a);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js"));a.on("paste",function(c){if(!c.data.dataTransfer)c.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer; -if(!c.data.dataValue){var b=c.data.dataTransfer,e=b.getData("text/html");if(e){c.data.dataValue=e;c.data.type="html"}else if(e=b.getData("text/plain")){c.data.dataValue=a.editable().transformPlainTextToHtml(e);c.data.type="text"}}},null,null,1);a.on("paste",function(a){var c=a.data.dataValue,b=CKEDITOR.dtd.$block;if(c.indexOf("Apple-")>-1){c=c.replace(/<span class="Apple-converted-space"> <\/span>/gi," ");a.data.type!="html"&&(c=c.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi, -function(a,c){return c.replace(/\t/g," ")}));if(c.indexOf('<br class="Apple-interchange-newline">')>-1){a.data.startsWithEOL=1;a.data.preSniffing="html";c=c.replace(/<br class="Apple-interchange-newline">/,"")}c=c.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1")}if(c.match(/^<[^<]+cke_(editable|contents)/i)){var g,e,d=new CKEDITOR.dom.element("div");for(d.setHtml(c);d.getChildCount()==1&&(g=d.getFirst())&&g.type==CKEDITOR.NODE_ELEMENT&&(g.hasClass("cke_editable")||g.hasClass("cke_contents"));)d= -e=g;e&&(c=e.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?c=c.replace(/^ (?: |\r\n)?<(\w+)/g,function(c,g){if(g.toLowerCase()in b){a.data.preSniffing="html";return"<"+g}return c}):CKEDITOR.env.webkit?c=c.replace(/<\/(\w+)><div><br><\/div>$/,function(c,g){if(g in b){a.data.endsWithEOL=1;return"</"+g+">"}return c}):CKEDITOR.env.gecko&&(c=c.replace(/(\s)<br>$/,"$1"));a.data.dataValue=c},null,null,3);a.on("paste",function(c){var c=c.data,e=c.type,h=c.dataValue,f,j=a.config.clipboard_defaultContentType|| -"html",l=c.dataTransfer.getTransferType(a);f=e=="html"||c.preSniffing=="html"?"html":b(h);f=="htmlifiedtext"&&(h=d(a.config,h));e=="text"&&f=="html"?h=k(a,h,i.get("plain-text")):l==CKEDITOR.DATA_TRANSFER_EXTERNAL&&(a.pasteFilter&&!c.dontFilter)&&(h=k(a,h,a.pasteFilter));c.startsWithEOL&&(h='<br data-cke-eol="1">'+h);c.endsWithEOL&&(h=h+'<br data-cke-eol="1">');e=="auto"&&(e=f=="html"||j=="html"?"html":"text");c.type=e;c.dataValue=h;delete c.preSniffing;delete c.startsWithEOL;delete c.endsWithEOL}, -null,null,6);a.on("paste",function(c){c=c.data;if(c.dataValue){a.insertHtml(c.dataValue,c.type,c.range);setTimeout(function(){a.fire("afterPaste")},0)}},null,null,1E3);a.on("pasteDialog",function(c){setTimeout(function(){a.openDialog("paste",c.data)},0)})}});CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:!CKEDITOR.env.ie&&!CKEDITOR.env.iOS,isCustomDataTypesSupported:!CKEDITOR.env.ie,isFileApiSupported:!CKEDITOR.env.ie||CKEDITOR.env.version>9,mainPasteEvent:CKEDITOR.env.ie&&!CKEDITOR.env.edge? -"beforepaste":"paste",canClipboardApiBeTrusted:function(a,c){return a.getTransferType(c)!=CKEDITOR.DATA_TRANSFER_EXTERNAL||CKEDITOR.env.chrome&&!a.isEmpty()||CKEDITOR.env.gecko&&(a.getData("text/html")||a.getFilesCount())?true:false},getDropTarget:function(a){var c=a.editable();return CKEDITOR.env.ie&&CKEDITOR.env.version<9||c.isInline()?c:a.document},fixSplitNodesAfterDrop:function(a,c,b,e){function d(a,b,g){var e=a;e.type==CKEDITOR.NODE_TEXT&&(e=a.getParent());if(e.equals(b)&&g!=b.getChildCount()){a= -c;b=a.startContainer.getChild(a.startOffset-1);g=a.startContainer.getChild(a.startOffset);if(b&&b.type==CKEDITOR.NODE_TEXT&&g&&g.type==CKEDITOR.NODE_TEXT){e=b.getLength();b.setText(b.getText()+g.getText());g.remove();a.setStart(b,e);a.collapse(true)}return true}}var h=c.startContainer;!(typeof e!="number"||typeof b!="number")&&(h.type==CKEDITOR.NODE_ELEMENT&&!d(a.startContainer,h,b))&&d(a.endContainer,h,e)},isDropRangeAffectedByDragRange:function(a,c){var b=c.startContainer,e=c.endOffset;return a.endContainer.equals(b)&& -a.endOffset<=e||a.startContainer.getParent().equals(b)&&a.startContainer.getIndex()<e||a.endContainer.getParent().equals(b)&&a.endContainer.getIndex()<e?true:false},internalDrop:function(c,b,e,d){var h=CKEDITOR.plugins.clipboard,f=d.editable(),i,j;d.fire("saveSnapshot");d.fire("lockSnapshot",{dontUpdate:1});CKEDITOR.env.ie&&CKEDITOR.env.version<10&&this.fixSplitNodesAfterDrop(c,b,h.dragStartContainerChildCount,h.dragEndContainerChildCount);(j=this.isDropRangeAffectedByDragRange(c,b))||(i=c.createBookmark(false)); -h=b.clone().createBookmark(false);j&&(i=c.createBookmark(false));c=i.startNode;j=i.endNode;var k=h.startNode;if(j&&c.getPosition(k)==CKEDITOR.POSITION_PRECEDING&&j.getPosition(k)==CKEDITOR.POSITION_FOLLOWING){d.getSelection().selectRanges([b]);c.remove();j.remove();k.remove()}else{c=d.createRange();c.moveToBookmark(i);f.extractHtmlFromRange(c,1);b=d.createRange();b.moveToBookmark(h);a(d,{dataTransfer:e,method:"drop",range:b},1)}d.fire("unlockSnapshot")},getRangeAtDropPosition:function(a,c){var b= -a.data.$,e=b.clientX,d=b.clientY,h=c.getSelection(true).getRanges()[0],f=c.createRange();if(a.data.testRange)return a.data.testRange;if(document.caretRangeFromPoint){b=c.document.$.caretRangeFromPoint(e,d);f.setStart(CKEDITOR.dom.node(b.startContainer),b.startOffset);f.collapse(true)}else if(b.rangeParent){f.setStart(CKEDITOR.dom.node(b.rangeParent),b.rangeOffset);f.collapse(true)}else{if(CKEDITOR.env.ie&&CKEDITOR.env.version>8&&h&&c.editable().hasFocus)return h;if(document.body.createTextRange){c.focus(); -b=c.document.getBody().$.createTextRange();try{for(var i=false,j=0;j<20&&!i;j++){if(!i)try{b.moveToPoint(e,d-j);i=true}catch(k){}if(!i)try{b.moveToPoint(e,d+j);i=true}catch(v){}}if(i){var w="cke-temp-"+(new Date).getTime();b.pasteHTML('<span id="'+w+'">​</span>');var t=c.document.getById(w);f.moveToPosition(t,CKEDITOR.POSITION_BEFORE_START);t.remove()}else{var s=c.document.$.elementFromPoint(e,d),z=new CKEDITOR.dom.element(s),x;if(!z.equals(c.editable())&&z.getName()!="html"){x=z.getClientRect(); -e<x.left?f.setStartAt(z,CKEDITOR.POSITION_AFTER_START):f.setStartAt(z,CKEDITOR.POSITION_BEFORE_END);f.collapse(true)}else return h&&h.startContainer&&!h.startContainer.equals(c.editable())?h:null}}catch(B){return null}}else return null}return f},initDragDataTransfer:function(a,c){var b=a.data.$?a.data.$.dataTransfer:null,e=new this.dataTransfer(b,c);b?this.dragData&&e.id==this.dragData.id?e=this.dragData:this.dragData=e:this.dragData?e=this.dragData:this.dragData=e;a.data.dataTransfer=e},resetDragDataTransfer:function(){this.dragData= -null},initPasteDataTransfer:function(a,c){if(this.isCustomCopyCutSupported&&a&&a.data&&a.data.$){var b=new this.dataTransfer(a.data.$.clipboardData,c);if(this.copyCutData&&b.id==this.copyCutData.id){b=this.copyCutData;b.$=a.data.$.clipboardData}else this.copyCutData=b;return b}return new this.dataTransfer(null,c)},preventDefaultDropOnElement:function(a){a&&a.on("dragover",i)}};var c=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?"cke/id":"Text";CKEDITOR.plugins.clipboard.dataTransfer=function(a, -b){if(a)this.$=a;this._={metaRegExp:/^<meta.*?>/,bodyRegExp:/<body(?:[\s\S]*?)>([\s\S]*)<\/body>/,fragmentRegExp:/<\!--(?:Start|End)Fragment--\>/g,data:{},files:[],normalizeType:function(a){a=a.toLowerCase();return a=="text"||a=="text/plain"?"Text":a=="url"?"URL":a}};this.id=this.getData(c);if(!this.id)this.id=c=="Text"?"":"cke-"+CKEDITOR.tools.getUniqueId();if(c!="Text")try{this.$.setData(c,this.id)}catch(e){}if(b){this.sourceEditor=b;this.setData("text/html",b.getSelectedHtml(1));c!="Text"&&!this.getData("text/plain")&& -this.setData("text/plain",b.getSelection().getSelectedText())}};CKEDITOR.DATA_TRANSFER_INTERNAL=1;CKEDITOR.DATA_TRANSFER_CROSS_EDITORS=2;CKEDITOR.DATA_TRANSFER_EXTERNAL=3;CKEDITOR.plugins.clipboard.dataTransfer.prototype={getData:function(a){var a=this._.normalizeType(a),c=this._.data[a];if(c===void 0||c===null||c==="")try{c=this.$.getData(a)}catch(b){}if(c===void 0||c===null||c==="")c="";if(a=="text/html"){c=c.replace(this._.metaRegExp,"");if((a=this._.bodyRegExp.exec(c))&&a.length){c=a[1];c=c.replace(this._.fragmentRegExp, -"")}}else a=="Text"&&(CKEDITOR.env.gecko&&this.getFilesCount()&&c.substring(0,7)=="file://")&&(c="");return c},setData:function(a,b){a=this._.normalizeType(a);this._.data[a]=b;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||!(a!="URL"&&a!="Text")){if(c=="Text"&&a=="Text")this.id=b;try{this.$.setData(a,b)}catch(e){}}},getTransferType:function(a){return this.sourceEditor?this.sourceEditor==a?CKEDITOR.DATA_TRANSFER_INTERNAL:CKEDITOR.DATA_TRANSFER_CROSS_EDITORS:CKEDITOR.DATA_TRANSFER_EXTERNAL}, -cacheData:function(){function a(b){var b=c._.normalizeType(b),g=c.getData(b);g&&(c._.data[b]=g)}if(this.$){var c=this,b,e;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(b=0;b<this.$.types.length;b++)a(this.$.types[b])}else{a("Text");a("URL")}e=this._getImageFromClipboard();if(this.$&&this.$.files||e){this._.files=[];for(b=0;b<this.$.files.length;b++)this._.files.push(this.$.files[b]);this._.files.length===0&&e&&this._.files.push(e)}}},getFilesCount:function(){return this._.files.length? -this._.files.length:this.$&&this.$.files&&this.$.files.length?this.$.files.length:this._getImageFromClipboard()?1:0},getFile:function(a){return this._.files.length?this._.files[a]:this.$&&this.$.files&&this.$.files.length?this.$.files[a]:a===0?this._getImageFromClipboard():void 0},isEmpty:function(){var a={},b;if(this.getFilesCount())return false;for(b in this._.data)a[b]=1;if(this.$)if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(var e=0;e<this.$.types.length;e++)a[this.$.types[e]]= -1}else{a.Text=1;a.URL=1}c!="Text"&&(a[c]=0);for(b in a)if(a[b]&&this.getData(b)!=="")return false;return true},_getImageFromClipboard:function(){var a;if(this.$&&this.$.items&&this.$.items[0])try{if((a=this.$.items[0].getAsFile())&&a.type)return a}catch(c){}}}}(),function(){CKEDITOR.plugins.add("panel",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}});CKEDITOR.UI_PANEL="panel";CKEDITOR.ui.panel=function(a,b){b&&CKEDITOR.tools.extend(this,b);CKEDITOR.tools.extend(this, -{className:"",css:[]});this.id=CKEDITOR.tools.getNextId();this.document=a;this.isFramed=this.forceIFrame||this.css.length;this._={blocks:{}}};CKEDITOR.ui.panel.handler={create:function(a){return new CKEDITOR.ui.panel(a)}};var a=CKEDITOR.addTemplate("panel",'<div lang="{langCode}" id="{id}" dir={dir} class="cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style="z-index:{z-index}" role="presentation">{frame}</div>'),f=CKEDITOR.addTemplate("panel-frame",'<iframe id="{id}" class="cke_panel_frame" role="presentation" frameborder="0" src="{src}"></iframe>'), -b=CKEDITOR.addTemplate("panel-frame-inner",'<!DOCTYPE html><html class="cke_panel_container {env}" dir="{dir}" lang="{langCode}"><head>{css}</head><body class="cke_{dir}" style="margin:0;padding:0" onload="{onload}"></body></html>');CKEDITOR.ui.panel.prototype={render:function(d,h){this.getHolderElement=function(){var a=this._.holder;if(!a){if(this.isFramed){var a=this.document.getById(this.id+"_frame"),e=a.getParent(),a=a.getFrameDocument();CKEDITOR.env.iOS&&e.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"}); -e=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("+e+");"},k)));a.getWindow().$.CKEDITOR=CKEDITOR;a.on("keydown",function(a){var b=a.data.getKeystroke(),e=this.document.getById(this.id).getAttribute("dir");this._.onKeyDown&&this._.onKeyDown(b)===false?a.data.preventDefault():(b==27||b==(e=="rtl"?39: -37))&&this.onEscape&&this.onEscape(b)===false&&a.data.preventDefault()},this);a=a.getBody();a.unselectable();CKEDITOR.env.air&&CKEDITOR.tools.callFunction(e)}else a=this.document.getById(this.id);this._.holder=a}return a};var k={editorId:d.id,id:this.id,langCode:d.langCode,dir:d.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":d.config.baseFloatZIndex+1};if(this.isFramed){var j=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent("document.open();("+ -CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";k.frame=f.output({id:this.id+"_frame",src:j})}j=a.output(k);h&&h.push(j);return j},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,f=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+ -"_frame");b&&b.hide();this._.currentBlock=a;CKEDITOR.fire("ariaWidget",f);a._.focusIndex=-1;this._.onKeyDown=a.onKeyDown&&CKEDITOR.tools.bind(a.onKeyDown,a);a.show();return a},destroy:function(){this.element&&this.element.remove()}};CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(a,b){this.element=a.append(a.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));b&&CKEDITOR.tools.extend(this,b);this.element.setAttributes({role:this.attributes.role|| -"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]});this.keys={};this._.focusIndex=-1;this.element.disableContextMenu()},_:{markItem:function(a){if(a!=-1){a=this.element.getElementsByTag("a").getItem(this._.focusIndex=a);CKEDITOR.env.webkit&&a.getDocument().getWindow().focus();a.focus();this.onMark&&this.onMark(a)}}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){(!this.onHide||this.onHide.call(this)!== -true)&&this.element.setStyle("display","none")},onKeyDown:function(a,b){var f=this.keys[a];switch(f){case "next":for(var j=this._.focusIndex,f=this.element.getElementsByTag("a"),i;i=f.getItem(++j);)if(i.getAttribute("_cke_focus")&&i.$.offsetWidth){this._.focusIndex=j;i.focus();break}if(!i&&!b){this._.focusIndex=-1;return this.onKeyDown(a,1)}return false;case "prev":j=this._.focusIndex;for(f=this.element.getElementsByTag("a");j>0&&(i=f.getItem(--j));){if(i.getAttribute("_cke_focus")&&i.$.offsetWidth){this._.focusIndex= -j;i.focus();break}i=null}if(!i&&!b){this._.focusIndex=f.count();return this.onKeyDown(a,1)}return false;case "click":case "mouseup":j=this._.focusIndex;(i=j>=0&&this.element.getElementsByTag("a").getItem(j))&&(i.$[f]?i.$[f]():i.$["on"+f]());return false}return true}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function a(a,d,h,k,j){var j=CKEDITOR.tools.genKey(d.getUniqueId(),h.getUniqueId(),a.lang.dir,a.uiColor||"",k.css||"",j||""),i=f[j];if(!i){i=f[j]=new CKEDITOR.ui.panel(d, -k);i.element=h.append(CKEDITOR.dom.element.createFromHtml(i.render(a),d));i.element.setStyles({display:"none",position:"absolute"})}return i}var f={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(b,d,h,f){function j(){g.hide()}h.forceIFrame=1;h.toolbarRelated&&b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(d=CKEDITOR.document.getById("cke_"+b.name));var i=d.getDocument(),f=a(b,i,d,h,f||0),e=f.element,c=e.getFirst(),g=this;e.disableContextMenu();this.element=e;this._={editor:b,panel:f, -parentElement:d,definition:h,document:i,iframe:c,children:[],dir:b.lang.dir};b.on("mode",j);b.on("resize",j);if(!CKEDITOR.env.iOS)i.getWindow().on("resize",j)},proto:{addBlock:function(a,d){return this._.panel.addBlock(a,d)},addListBlock:function(a,d){return this._.panel.addListBlock(a,d)},getBlock:function(a){return this._.panel.getBlock(a)},showBlock:function(a,d,h,f,j,i){var e=this._.panel,c=e.showBlock(a);this.allowBlur(false);a=this._.editor.editable();this._.returnFocus=a.hasFocus?a:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement); -this._.hideTimeout=0;var g=this.element,a=this._.iframe,a=CKEDITOR.env.ie&&!CKEDITOR.env.edge?a:new CKEDITOR.dom.window(a.$.contentWindow),l=g.getDocument(),q=this._.parentElement.getPositionedAncestor(),n=d.getDocumentPosition(l),l=q?q.getDocumentPosition(l):{x:0,y:0},o=this._.dir=="rtl",p=n.x+(f||0)-l.x,m=n.y+(j||0)-l.y;if(o&&(h==1||h==4))p=p+d.$.offsetWidth;else if(!o&&(h==2||h==3))p=p+(d.$.offsetWidth-1);if(h==3||h==4)m=m+(d.$.offsetHeight-1);this._.panel._.offsetParentId=d.getId();g.setStyles({top:m+ -"px",left:0,display:""});g.setOpacity(0);g.getFirst().removeStyle("width");this._.editor.focusManager.add(a);if(!this._.blurSet){CKEDITOR.event.useCapture=true;a.on("blur",function(a){function c(){delete this._.returnFocus;this.hide()}if(this.allowBlur()&&a.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&this.visible&&!this._.activeChild)if(CKEDITOR.env.iOS){if(!this._.hideTimeout)this._.hideTimeout=CKEDITOR.tools.setTimeout(c,0,this)}else c.call(this)},this);a.on("focus",function(){this._.focused= -true;this.hideChild();this.allowBlur(true)},this);if(CKEDITOR.env.iOS){a.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this);a.on("touchend",function(){this._.hideTimeout=0;this.focus()},this)}CKEDITOR.event.useCapture=false;this._.blurSet=1}e.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(){g.removeStyle("width");if(c.autoSize){var a=c.element.getDocument(), -a=(CKEDITOR.env.webkit?c.element:a.getBody()).$.scrollWidth;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+((g.$.offsetWidth||0)-(g.$.clientWidth||0)+3));g.setStyle("width",a+10+"px");a=c.element.$.scrollHeight;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+((g.$.offsetHeight||0)-(g.$.clientHeight||0)+3));g.setStyle("height",a+"px");e._.currentBlock.element.setStyle("display","none").removeStyle("display")}else g.removeStyle("height");o&&(p=p-g.$.offsetWidth);g.setStyle("left",p+"px");var b= -e.element.getWindow(),a=g.$.getBoundingClientRect(),b=b.getViewPaneSize(),d=a.width||a.right-a.left,h=a.height||a.bottom-a.top,f=o?a.right:b.width-a.left,j=o?b.width-a.right:a.left;o?f<d&&(p=j>d?p+d:b.width>d?p-a.left:p-a.right+b.width):f<d&&(p=j>d?p-d:b.width>d?p-a.right+b.width:p-a.left);d=a.top;b.height-a.top<h&&(m=d>h?m-h:b.height>h?m-a.bottom+b.height:m-a.top);if(CKEDITOR.env.ie){b=a=new CKEDITOR.dom.element(g.$.offsetParent);b.getName()=="html"&&(b=b.getDocument().getBody());b.getComputedStyle("direction")== -"rtl"&&(p=CKEDITOR.env.ie8Compat?p-g.getDocument().getDocumentElement().$.scrollLeft*2:p-(a.$.scrollWidth-a.$.clientWidth))}var a=g.getFirst(),k;(k=a.getCustomData("activePanel"))&&k.onHide&&k.onHide.call(this,1);a.setCustomData("activePanel",this);g.setStyles({top:m+"px",left:p+"px"});g.setOpacity(1);i&&i()},this);e.isLoaded?a():e.onLoad=a;CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus();c.element.focus();if(CKEDITOR.env.webkit)CKEDITOR.document.getBody().$.scrollTop= -a;this.allowBlur(true);this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:0,this);this.visible=1;this.onShow&&this.onShow.call(this)},focus:function(){if(CKEDITOR.env.webkit){var a=CKEDITOR.document.getActive();a&&!a.equals(this._.iframe)&&a.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var a=this._.iframe.getFrameDocument().getActive();a&&a.is("a")&&(this._.lastFocused=a)},hide:function(a){if(this.visible&&(!this.onHide||this.onHide.call(this)!== -true)){this.hideChild();CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur();this.element.setStyle("display","none");this.visible=0;this.element.getFirst().removeCustomData("activePanel");if(a=a&&this._.returnFocus){CKEDITOR.env.webkit&&a.type&&a.getWindow().$.focus();a.focus()}delete this._.lastFocused;this._.editor.fire("panelHide",this)}},allowBlur:function(a){var d=this._.panel;if(a!==void 0)d.allowBlur=a;return d.allowBlur},showAsChild:function(a,d,h,f,j,i){if(!(this._.activeChild== -a&&a._.panel._.offsetParentId==h.getId())){this.hideChild();a.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this);this._.activeChild=a;this._.focused=false;a.showBlock(d,h,f,j,i);this.blur();(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){a.element.getChild(0).$.style.cssText+=""},100)}},hideChild:function(a){var d=this._.activeChild;if(d){delete d.onHide;delete this._.activeChild;d.hide();a&&this.focus()}}}}); -CKEDITOR.on("instanceDestroyed",function(){var a=CKEDITOR.tools.isEmpty(CKEDITOR.instances),d;for(d in f){var h=f[d];a?h.destroy():h.element.hide()}a&&(f={})})}(),CKEDITOR.plugins.add("menu",{requires:"floatpanel",beforeInit:function(a){for(var f=a.config.menu_groups.split(","),b=a._.menuGroups={},d=a._.menuItems={},h=0;h<f.length;h++)b[f[h]]=h+1;a.addMenuGroup=function(a,d){b[a]=d||100};a.addMenuItem=function(a,h){b[h.group]&&(d[a]=new CKEDITOR.menuItem(this,a,h))};a.addMenuItems=function(a){for(var b in a)this.addMenuItem(b, -a[b])};a.getMenuItem=function(a){return d[a]};a.removeMenuItem=function(a){delete d[a]}}}),function(){function a(a){a.sort(function(a,b){return a.group<b.group?-1:a.group>b.group?1:a.order<b.order?-1:a.order>b.order?1:0})}var f='<span class="cke_menuitem"><a id="{id}" class="cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href="{href}" title="{title}" tabindex="-1"_cke_focus=1 hidefocus="true" role="{role}" aria-haspopup="{hasPopup}" aria-disabled="{disabled}" {ariaChecked}';CKEDITOR.env.gecko&& -CKEDITOR.env.mac&&(f=f+' onkeypress="return false;"');CKEDITOR.env.gecko&&(f=f+' onblur="this.style.cssText = this.style.cssText;"');var f=f+(' onmouseover="CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout="CKEDITOR.tools.callFunction({moveOutFn},{index});" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},{index}); return false;">'),b=CKEDITOR.addTemplate("menuItem",f+'<span class="cke_menubutton_inner"><span class="cke_menubutton_icon"><span class="cke_button_icon cke_button__{iconName}_icon" style="{iconStyle}"></span></span><span class="cke_menubutton_label">{label}</span>{arrowHtml}</span></a></span>'), -d=CKEDITOR.addTemplate("menuArrow",'<span class="cke_menuarrow"><span>{label}</span></span>');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(a,b){b=this._.definition=b||{};this.id=CKEDITOR.tools.getNextId();this.editor=a;this.items=[];this._.listeners=[];this._.level=b.level||1;var d=CKEDITOR.tools.extend({},b.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),f=d.block.attributes=d.attributes||{};!f.role&&(f.role="menu");this._.panelDefinition=d},_:{onShow:function(){var a= -this.editor.getSelection(),b=a&&a.getStartElement(),d=this.editor.elementPath(),f=this._.listeners;this.removeAll();for(var e=0;e<f.length;e++){var c=f[e](b,a,d);if(c)for(var g in c){var l=this.editor.getMenuItem(g);if(l&&(!l.command||this.editor.getCommand(l.command).state)){l.state=c[g];this.add(l)}}}},onClick:function(a){this.hide();if(a.onClick)a.onClick();else a.command&&this.editor.execCommand(a.command)},onEscape:function(a){var b=this.parent;b?b._.panel.hideChild(1):a==27&&this.hide(1);return false}, -onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(a){var b=this._.subMenu,d=this.items[a];if(d=d.getItems&&d.getItems()){if(b)b.removeAll();else{b=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({},this._.definition,{level:this._.level+1},true));b.parent=this;b._.onClick=CKEDITOR.tools.bind(this._.onClick,this)}for(var f in d){var e=this.editor.getMenuItem(f);if(e){e.state=d[f];b.add(e)}}var c=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+ -(""+a));setTimeout(function(){b.show(c,2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(a){if(!a.order)a.order=this.items.length;this.items.push(a)},removeAll:function(){this.items=[]},show:function(b,d,f,i){if(!this.parent){this._.onShow();if(!this.items.length)return}var d=d||(this.editor.lang.dir=="rtl"?2:1),e=this.items,c=this.editor,g=this._.panel,l=this._.element;if(!g){g=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level); -g.onEscape=CKEDITOR.tools.bind(function(a){if(this._.onEscape(a)===false)return false},this);g.onShow=function(){g._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")};g.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this);l=g.addBlock(this.id,this._.panelDefinition.block);l.autoSize=true;var q=l.keys;q[40]="next";q[9]="next";q[38]="prev";q[CKEDITOR.SHIFT+9]="prev";q[c.lang.dir=="rtl"?37:39]=CKEDITOR.env.ie?"mouseup":"click";q[32]=CKEDITOR.env.ie? -"mouseup":"click";CKEDITOR.env.ie&&(q[13]="mouseup");l=this._.element=l.element;q=l.getDocument();q.getBody().setStyle("overflow","hidden");q.getElementsByTag("html").getItem(0).setStyle("overflow","hidden");this._.itemOverFn=CKEDITOR.tools.addFunction(function(a){clearTimeout(this._.showSubTimeout);this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,c.config.menu_subMenuDelay||400,this,[a])},this);this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)}, -this);this._.itemClickFn=CKEDITOR.tools.addFunction(function(a){var c=this.items[a];if(c.state==CKEDITOR.TRISTATE_DISABLED)this.hide(1);else if(c.getItems)this._.showSubMenu(a);else this._.onClick(c)},this)}a(e);for(var q=c.elementPath(),q=['<div class="cke_menu'+(q&&q.direction()!=c.lang.dir?" cke_mixed_dir_content":"")+'" role="presentation">'],n=e.length,o=n&&e[0].group,p=0;p<n;p++){var m=e[p];if(o!=m.group){q.push('<div class="cke_menuseparator" role="separator"></div>');o=m.group}m.render(this, -p,q)}q.push("</div>");l.setHtml(q.join(""));CKEDITOR.ui.fire("ready",this);this.parent?this.parent._.panel.showAsChild(g,this.id,b,d,f,i):g.showBlock(this.id,b,d,f,i);c.fire("menuShow",[g])},addListener:function(a){this._.listeners.push(a)},hide:function(a){this._.onHide&&this._.onHide();this._.panel&&this._.panel.hide(a)}}});CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(a,b,d){CKEDITOR.tools.extend(this,d,{order:0,className:"cke_menubutton__"+b});this.group=a._.menuGroups[this.group]; -this.editor=a;this.name=b},proto:{render:function(a,f,j){var i=a.id+(""+f),e=typeof this.state=="undefined"?CKEDITOR.TRISTATE_OFF:this.state,c="",g=e==CKEDITOR.TRISTATE_ON?"on":e==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";this.role in{menuitemcheckbox:1,menuitemradio:1}&&(c=' aria-checked="'+(e==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var l=this.getItems,q="&#"+(this.editor.lang.dir=="rtl"?"9668":"9658")+";",n=this.name;if(this.icon&&!/\./.test(this.icon))n=this.icon;a={id:i,name:this.name,iconName:n, -label:this.label,cls:this.className||"",state:g,hasPopup:l?"true":"false",disabled:e==CKEDITOR.TRISTATE_DISABLED,title:this.label,href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:a._.itemOverFn,moveOutFn:a._.itemOutFn,clickFn:a._.itemClickFn,index:f,iconStyle:CKEDITOR.skin.getIconStyle(n,this.editor.lang.dir=="rtl",n==this.icon?null:this.icon,this.iconOffset),arrowHtml:l?d.output({label:q}):"",role:this.role?this.role:"menuitem",ariaChecked:c};b.output(a,j)}}})}(),CKEDITOR.config.menu_groups= -"clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div",CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(a){this.base.call(this,a,{panel:{className:"cke_menu_panel",attributes:{"aria-label":a.lang.contextmenu.options}}})},proto:{addTarget:function(a,f){a.on("contextmenu",function(a){var a= -a.data,d=CKEDITOR.env.webkit?b:CKEDITOR.env.mac?a.$.metaKey:a.$.ctrlKey;if(!f||!d){a.preventDefault();if(CKEDITOR.env.mac&&CKEDITOR.env.webkit){var d=this.editor,j=(new CKEDITOR.dom.elementPath(a.getTarget(),d.editable())).contains(function(a){return a.hasAttribute("contenteditable")},true);j&&j.getAttribute("contenteditable")=="false"&&d.getSelection().fake(j)}var j=a.getTarget().getDocument(),i=a.getTarget().getDocument().getDocumentElement(),d=!j.equals(CKEDITOR.document),j=j.getWindow().getScrollPosition(), -e=d?a.$.clientX:a.$.pageX||j.x+a.$.clientX,c=d?a.$.clientY:a.$.pageY||j.y+a.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(i,null,e,c)},CKEDITOR.env.ie?200:0,this)}},this);if(CKEDITOR.env.webkit){var b,d=function(){b=0};a.on("keydown",function(a){b=CKEDITOR.env.mac?a.data.$.metaKey:a.data.$.ctrlKey});a.on("keyup",d);a.on("contextmenu",d)}},open:function(a,f,b,d){this.editor.focus();a=a||CKEDITOR.document.getDocumentElement();this.editor.selectionChange(1);this.show(a,f,b,d)}}})},beforeInit:function(a){var f= -a.contextMenu=new CKEDITOR.plugins.contextMenu(a);a.on("contentDom",function(){f.addTarget(a.editable(),a.config.browserContextMenuOnCtrl!==false)});a.addCommand("contextMenu",{exec:function(){a.contextMenu.open(a.document.getBody())}});a.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu");a.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}}),CKEDITOR.plugins.add("resize",{init:function(a){var f,b,d,h;function k(g){var e=f,j=b,k=e+(g.data.$.screenX-d)*(c=="rtl"?-1:1),g=j+(g.data.$.screenY- -h);l&&(e=Math.max(i.resize_minWidth,Math.min(k,i.resize_maxWidth)));q&&(j=Math.max(i.resize_minHeight,Math.min(g,i.resize_maxHeight)));a.resize(l?e:null,j)}function j(){CKEDITOR.document.removeListener("mousemove",k);CKEDITOR.document.removeListener("mouseup",j);if(a.document){a.document.removeListener("mousemove",k);a.document.removeListener("mouseup",j)}}var i=a.config,e=a.ui.spaceId("resizer"),c=a.element?a.element.getDirection(1):"ltr";!i.resize_dir&&(i.resize_dir="vertical");i.resize_maxWidth=== -void 0&&(i.resize_maxWidth=3E3);i.resize_maxHeight===void 0&&(i.resize_maxHeight=3E3);i.resize_minWidth===void 0&&(i.resize_minWidth=750);i.resize_minHeight===void 0&&(i.resize_minHeight=250);if(i.resize_enabled!==false){var g=null,l=(i.resize_dir=="both"||i.resize_dir=="horizontal")&&i.resize_minWidth!=i.resize_maxWidth,q=(i.resize_dir=="both"||i.resize_dir=="vertical")&&i.resize_minHeight!=i.resize_maxHeight,n=CKEDITOR.tools.addFunction(function(c){g||(g=a.getResizable());f=g.$.offsetWidth||0;b= -g.$.offsetHeight||0;d=c.screenX;h=c.screenY;i.resize_minWidth>f&&(i.resize_minWidth=f);i.resize_minHeight>b&&(i.resize_minHeight=b);CKEDITOR.document.on("mousemove",k);CKEDITOR.document.on("mouseup",j);if(a.document){a.document.on("mousemove",k);a.document.on("mouseup",j)}c.preventDefault&&c.preventDefault()});a.on("destroy",function(){CKEDITOR.tools.removeFunction(n)});a.on("uiSpace",function(b){if(b.data.space=="bottom"){var g="";l&&!q&&(g=" cke_resizer_horizontal");!l&&q&&(g=" cke_resizer_vertical"); -var d='<span id="'+e+'" class="cke_resizer'+g+" cke_resizer_"+c+'" title="'+CKEDITOR.tools.htmlEncode(a.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+n+', event)">'+(c=="ltr"?"â—¢":"â—£")+"</span>";c=="ltr"&&g=="ltr"?b.data.html=b.data.html+d:b.data.html=d+b.data.html}},a,null,100);a.on("maximize",function(c){a.ui.space("resizer")[c.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}}),function(){var a='<a id="{id}" class="cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&& -!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' title="{title}" tabindex="-1" hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="{hasArrow}" aria-disabled="{ariaDisabled}"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(a=a+' onkeypress="return false;"');CKEDITOR.env.gecko&&(a=a+' onblur="this.style.cssText = this.style.cssText;"');var a=a+(' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+ -(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span class="cke_button_icon cke_button__{iconName}_icon" style="{style}"'),a=a+'> </span><span id="{id}_label" class="cke_button_label cke_button__{name}_label" aria-hidden="false">{label}</span>{arrowHtml}</a>',f=CKEDITOR.addTemplate("buttonArrow",'<span class="cke_button_arrow">'+(CKEDITOR.env.hc?"▼":"")+"</span>"),b=CKEDITOR.addTemplate("button",a);CKEDITOR.plugins.add("button", -{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}});CKEDITOR.UI_BUTTON="button";CKEDITOR.ui.button=function(a){CKEDITOR.tools.extend(this,a,{title:a.label,click:a.click||function(b){b.execCommand(a.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a)}};CKEDITOR.ui.button.prototype={render:function(a,h){function k(){var c=a.mode;if(c){c=this.modes[c]?p[c]!==void 0?p[c]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED; -c=a.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:c;this.setState(c);this.refresh&&this.refresh()}}var j=CKEDITOR.env,i=this._.id=CKEDITOR.tools.getNextId(),e="",c=this.command,g;this._.editor=a;var l={id:i,button:this,editor:a,focus:function(){CKEDITOR.document.getById(i).focus()},execute:function(){this.button.click(a)},attach:function(a){this.button.attach(a)}},q=CKEDITOR.tools.addFunction(function(a){if(l.onkey){a=new CKEDITOR.dom.event(a);return l.onkey(l,a.getKeystroke())!==false}}),n= -CKEDITOR.tools.addFunction(function(a){var c;l.onfocus&&(c=l.onfocus(l,new CKEDITOR.dom.event(a))!==false);return c}),o=0;l.clickFn=g=CKEDITOR.tools.addFunction(function(){if(o){a.unlockSelection(1);o=0}l.execute();j.iOS&&a.focus()});if(this.modes){var p={};a.on("beforeModeUnload",function(){if(a.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED)p[a.mode]=this._.state},this);a.on("activeFilterChange",k,this);a.on("mode",k,this);!this.readOnly&&a.on("readOnly",k,this)}else if(c)if(c=a.getCommand(c)){c.on("state", -function(){this.setState(c.state)},this);e=e+(c.state==CKEDITOR.TRISTATE_ON?"on":c.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off")}if(this.directional)a.on("contentDirChanged",function(c){var b=CKEDITOR.document.getById(this._.id),g=b.getFirst(),c=c.data;c!=a.lang.dir?b.addClass("cke_"+c):b.removeClass("cke_ltr").removeClass("cke_rtl");g.setAttribute("style",CKEDITOR.skin.getIconStyle(r,c=="rtl",this.icon,this.iconOffset))},this);c||(e=e+"off");var m=this.name||this.command,r=m;if(this.icon&& -!/\./.test(this.icon)){r=this.icon;this.icon=null}e={id:i,name:m,iconName:r,label:this.label,cls:this.className||"",state:e,ariaDisabled:e=="disabled"?"true":"false",title:this.title,titleJs:j.gecko&&!j.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:q,focusFn:n,clickFn:g,style:CKEDITOR.skin.getIconStyle(r,a.lang.dir=="rtl",this.icon,this.iconOffset),arrowHtml:this.hasArrow?f.output():""};b.output(e,h);if(this.onRender)this.onRender();return l},setState:function(a){if(this._.state== -a)return false;this._.state=a;var b=CKEDITOR.document.getById(this._.id);if(b){b.setState(a,"cke_button");a==CKEDITOR.TRISTATE_DISABLED?b.setAttribute("aria-disabled",true):b.removeAttribute("aria-disabled");if(this.hasArrow){a=a==CKEDITOR.TRISTATE_ON?this._.editor.lang.button.selectedLabel.replace(/%1/g,this.label):this.label;CKEDITOR.document.getById(this._.id+"_label").setText(a)}else a==CKEDITOR.TRISTATE_ON?b.setAttribute("aria-pressed",true):b.removeAttribute("aria-pressed");return true}return false}, -getState:function(){return this._.state},toFeature:function(a){if(this._.feature)return this._.feature;var b=this;!this.allowedContent&&(!this.requiredContent&&this.command)&&(b=a.getCommand(this.command)||b);return this._.feature=b}};CKEDITOR.ui.prototype.addButton=function(a,b){this.add(a,CKEDITOR.UI_BUTTON,b)}}(),function(){function a(a){function b(){for(var c=d(),g=CKEDITOR.tools.clone(a.config.toolbarGroups)||f(a),e=0;e<g.length;e++){var k=g[e];if(k!="/"){typeof k=="string"&&(k=g[e]={name:k}); -var p,m=k.groups;if(m)for(var r=0;r<m.length;r++){p=m[r];(p=c[p])&&i(k,p)}(p=c[k.name])&&i(k,p)}}return g}function d(){var c={},b,g,e;for(b in a.ui.items){g=a.ui.items[b];e=g.toolbar||"others";e=e.split(",");g=e[0];e=parseInt(e[1]||-1,10);c[g]||(c[g]=[]);c[g].push({name:b,order:e})}for(g in c)c[g]=c[g].sort(function(a,c){return a.order==c.order?0:c.order<0?-1:a.order<0?1:a.order<c.order?-1:1});return c}function i(b,g){if(g.length){b.items?b.items.push(a.ui.create("-")):b.items=[];for(var e;e=g.shift();){e= -typeof e=="string"?e:e.name;if(!c||CKEDITOR.tools.indexOf(c,e)==-1)(e=a.ui.create(e))&&a.addFeature(e)&&b.items.push(e)}}}function e(a){var c=[],b,g,e;for(b=0;b<a.length;++b){g=a[b];e={};if(g=="/")c.push(g);else if(CKEDITOR.tools.isArray(g)){i(e,CKEDITOR.tools.clone(g));c.push(e)}else if(g.items){i(e,CKEDITOR.tools.clone(g.items));e.name=g.name;c.push(e)}}return c}var c=a.config.removeButtons,c=c&&c.split(","),g=a.config.toolbar;typeof g=="string"&&(g=a.config["toolbar_"+g]);return a.toolbar=g?e(g): -b()}function f(a){return a._.toolbarGroups||(a._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}])}var b=function(){this.toolbars= -[];this.focusCommandExecuted=false};b.prototype.focus=function(){for(var a=0,b;b=this.toolbars[a++];)for(var d=0,f;f=b.items[d++];)if(f.focus){f.focus();return}};var d={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(f){var k,j=function(a,b){var c,g=f.lang.dir=="rtl",d=f.config.toolbarGroupCycling, -q=g?37:39,g=g?39:37,d=d===void 0||d;switch(b){case 9:case CKEDITOR.SHIFT+9:for(;!c||!c.items.length;){c=b==9?(c?c.next:a.toolbar.next)||f.toolbox.toolbars[0]:(c?c.previous:a.toolbar.previous)||f.toolbox.toolbars[f.toolbox.toolbars.length-1];if(c.items.length)for(a=c.items[k?c.items.length-1:0];a&&!a.focus;)(a=k?a.previous:a.next)||(c=0)}a&&a.focus();return false;case q:c=a;do{c=c.next;!c&&d&&(c=a.toolbar.items[0])}while(c&&!c.focus);c?c.focus():j(a,9);return false;case 40:if(a.button&&a.button.hasArrow){f.once("panelShow", -function(a){a.data._.panel._.currentBlock.onKeyDown(40)});a.execute()}else j(a,b==40?q:g);return false;case g:case 38:c=a;do{c=c.previous;!c&&d&&(c=a.toolbar.items[a.toolbar.items.length-1])}while(c&&!c.focus);if(c)c.focus();else{k=1;j(a,CKEDITOR.SHIFT+9);k=0}return false;case 27:f.focus();return false;case 13:case 32:a.execute();return false}return true};f.on("uiSpace",function(d){if(d.data.space==f.config.toolbarLocation){d.removeListener();f.toolbox=new b;var e=CKEDITOR.tools.getNextId(),c=['<span id="', -e,'" class="cke_voice_label">',f.lang.toolbar.toolbars,"</span>",'<span id="'+f.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',e,'" onmousedown="return false;">'],e=f.config.toolbarStartupExpanded!==false,g,k;f.config.toolbarCanCollapse&&f.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&c.push('<span class="cke_toolbox_main"'+(e?">":' style="display:none">'));for(var q=f.toolbox.toolbars,n=a(f),o=0;o<n.length;o++){var p,m=0,r,u=n[o],y;if(u){if(g){c.push("</span>");k=g=0}if(u=== -"/")c.push('<span class="cke_toolbar_break"></span>');else{y=u.items||u;for(var v=0;v<y.length;v++){var w=y[v],t;if(w)if(w.type==CKEDITOR.UI_SEPARATOR)k=g&&w;else{t=w.canGroup!==false;if(!m){p=CKEDITOR.tools.getNextId();m={id:p,items:[]};r=u.name&&(f.lang.toolbar.toolbarGroups[u.name]||u.name);c.push('<span id="',p,'" class="cke_toolbar"',r?' aria-labelledby="'+p+'_label"':"",' role="toolbar">');r&&c.push('<span id="',p,'_label" class="cke_voice_label">',r,"</span>");c.push('<span class="cke_toolbar_start"></span>'); -var s=q.push(m)-1;if(s>0){m.previous=q[s-1];m.previous.next=m}}if(t){if(!g){c.push('<span class="cke_toolgroup" role="presentation">');g=1}}else if(g){c.push("</span>");g=0}p=function(a){a=a.render(f,c);s=m.items.push(a)-1;if(s>0){a.previous=m.items[s-1];a.previous.next=a}a.toolbar=m;a.onkey=j;a.onfocus=function(){f.toolbox.focusCommandExecuted||f.focus()}};if(k){p(k);k=0}p(w)}}if(g){c.push("</span>");k=g=0}m&&c.push('<span class="cke_toolbar_end"></span></span>')}}}f.config.toolbarCanCollapse&&c.push("</span>"); -if(f.config.toolbarCanCollapse&&f.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var z=CKEDITOR.tools.addFunction(function(){f.execCommand("toolbarCollapse")});f.on("destroy",function(){CKEDITOR.tools.removeFunction(z)});f.addCommand("toolbarCollapse",{readOnly:1,exec:function(a){var c=a.ui.space("toolbar_collapser"),b=c.getPrevious(),g=a.ui.space("contents"),e=b.getParent(),d=parseInt(g.$.style.height,10),f=e.$.offsetHeight,h=c.hasClass("cke_toolbox_collapser_min");if(h){b.show();c.removeClass("cke_toolbox_collapser_min"); -c.setAttribute("title",a.lang.toolbar.toolbarCollapse)}else{b.hide();c.addClass("cke_toolbox_collapser_min");c.setAttribute("title",a.lang.toolbar.toolbarExpand)}c.getFirst().setText(h?"â–²":"â—€");g.setStyle("height",d-(e.$.offsetHeight-f)+"px");a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:g.$.offsetHeight,outerWidth:a.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}});f.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse");c.push('<a title="'+ -(e?f.lang.toolbar.toolbarCollapse:f.lang.toolbar.toolbarExpand)+'" id="'+f.ui.spaceId("toolbar_collapser")+'" tabIndex="-1" class="cke_toolbox_collapser');e||c.push(" cke_toolbox_collapser_min");c.push('" onclick="CKEDITOR.tools.callFunction('+z+')">','<span class="cke_arrow">▲</span>',"</a>")}c.push("</span>");d.data.html=d.data.html+c.join("")}});f.on("destroy",function(){if(this.toolbox){var a,b=0,c,g,d;for(a=this.toolbox.toolbars;b<a.length;b++){g=a[b].items;for(c=0;c<g.length;c++){d=g[c]; -d.clickFn&&CKEDITOR.tools.removeFunction(d.clickFn);d.keyDownFn&&CKEDITOR.tools.removeFunction(d.keyDownFn)}}}});f.on("uiReady",function(){var a=f.ui.space("toolbox");a&&f.focusManager.add(a,1)});f.addCommand("toolbarFocus",d);f.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");f.ui.add("-",CKEDITOR.UI_SEPARATOR,{});f.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,d){var i=f(this.editor),e=b===0,c={name:a};if(d){if(d=CKEDITOR.tools.search(i,function(a){return a.name==d})){!d.groups&&(d.groups=[]);if(b){b=CKEDITOR.tools.indexOf(d.groups,b);if(b>=0){d.groups.splice(b+1,0,a);return}}e?d.groups.splice(0,0,a):d.groups.push(a);return}b=null}b&&(b=CKEDITOR.tools.indexOf(i,function(a){return a.name==b}));e?i.splice(0,0,a):typeof b=="number"?i.splice(b+1,0,c):i.push(a)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top",function(){var a; -function f(d,f){function i(a){a=l.list[a];if(a.equals(d.editable())||a.getAttribute("contenteditable")=="true"){var c=d.createRange();c.selectNodeContents(a);c.select()}else d.getSelection().selectElement(a);d.focus()}function e(){g&&g.setHtml(b);delete l.list}var c=d.ui.spaceId("path"),g,l=d._.elementsPath,q=l.idBase;f.html=f.html+('<span id="'+c+'_label" class="cke_voice_label">'+d.lang.elementspath.eleLabel+'</span><span id="'+c+'" class="cke_path" role="group" aria-labelledby="'+c+'_label">'+ -b+"</span>");d.on("uiReady",function(){var a=d.ui.space("path");a&&d.focusManager.add(a,1)});l.onClick=i;var n=CKEDITOR.tools.addFunction(i),o=CKEDITOR.tools.addFunction(function(a,c){var b=l.idBase,g,c=new CKEDITOR.dom.event(c);g=d.lang.dir=="rtl";switch(c.getKeystroke()){case g?39:37:case 9:(g=CKEDITOR.document.getById(b+(a+1)))||(g=CKEDITOR.document.getById(b+"0"));g.focus();return false;case g?37:39:case CKEDITOR.SHIFT+9:(g=CKEDITOR.document.getById(b+(a-1)))||(g=CKEDITOR.document.getById(b+(l.list.length- -1)));g.focus();return false;case 27:d.focus();return false;case 13:case 32:i(a);return false}return true});d.on("selectionChange",function(){for(var a=[],e=l.list=[],f=[],i=l.filters,j=true,v=d.elementPath().elements,w,t=v.length;t--;){var s=v[t],z=0;w=s.data("cke-display-name")?s.data("cke-display-name"):s.data("cke-real-element-type")?s.data("cke-real-element-type"):s.getName();j=s.hasAttribute("contenteditable")?s.getAttribute("contenteditable")=="true":j;!j&&!s.hasAttribute("contenteditable")&& -(z=1);for(var x=0;x<i.length;x++){var B=i[x](s,w);if(B===false){z=1;break}w=B||w}if(!z){e.unshift(s);f.unshift(w)}}e=e.length;for(i=0;i<e;i++){w=f[i];j=d.lang.elementspath.eleTitle.replace(/%1/,w);w=h.output({id:q+i,label:j,text:w,jsTitle:"javascript:void('"+w+"')",index:i,keyDownFn:o,clickFn:n});a.unshift(w)}g||(g=CKEDITOR.document.getById(c));f=g;f.setHtml(a.join("")+b);d.fire("elementsPathUpdate",{space:f})});d.on("readOnly",e);d.on("contentDomUnload",e);d.addCommand("elementsPathFocus",a);d.setKeystroke(CKEDITOR.ALT+ -122,"elementsPathFocus")}a={editorFocus:false,readOnly:1,exec:function(a){(a=CKEDITOR.document.getById(a._.elementsPath.idBase+"0"))&&a.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}};var b='<span class="cke_path_empty"> </span>',d="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(d=d+' onkeypress="return false;"');CKEDITOR.env.gecko&&(d=d+' onblur="this.style.cssText = this.style.cssText;"');var h=CKEDITOR.addTemplate("pathItem",'<a id="{id}" href="{jsTitle}" tabindex="-1" class="cke_path_item" title="{label}"'+ -d+' hidefocus="true" onkeydown="return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );" onclick="CKEDITOR.tools.callFunction({clickFn},{index}); return false;" role="button" aria-label="{label}">{text}</a>');CKEDITOR.plugins.add("elementspath",{init:function(a){a._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_",filters:[]};a.on("uiSpace",function(b){b.data.space=="bottom"&&f(a,b.data)})}})}(),function(){function a(a,b,e){e=a.config.forceEnterMode||e;if(a.mode== -"wysiwyg"){if(!b)b=a.activeEnterMode;if(!a.elementPath().isContextFor("p")){b=CKEDITOR.ENTER_BR;e=1}a.fire("saveSnapshot");b==CKEDITOR.ENTER_BR?j(a,b,null,e):i(a,b,null,e);a.fire("saveSnapshot")}}function f(a){for(var a=a.getSelection().getRanges(true),b=a.length-1;b>0;b--)a[b].deleteContents();return a[0]}function b(a){var b=a.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.getAttribute("contenteditable")=="true"},true);if(a.root.equals(b))return a;b=new CKEDITOR.dom.range(b); -b.moveToRange(a);return b}CKEDITOR.plugins.add("enterkey",{init:function(c){c.addCommand("enter",{modes:{wysiwyg:1},editorFocus:false,exec:function(c){a(c)}});c.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:false,exec:function(c){a(c,c.activeShiftEnterMode,1)}});c.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var d=CKEDITOR.dom.walker.whitespaces(),h=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(a,g,i,k){if(i=i||f(a)){var i=b(i),n=i.document, -o=i.checkStartOfBlock(),p=i.checkEndOfBlock(),m=a.elementPath(i.startContainer),r=m.block,u=g==CKEDITOR.ENTER_DIV?"div":"p",y;if(o&&p){if(r&&(r.is("li")||r.getParent().is("li"))){r.is("li")||(r=r.getParent());i=r.getParent();y=i.getParent();var k=!r.hasPrevious(),v=!r.hasNext(),u=a.getSelection(),w=u.createBookmarks(),o=r.getDirection(1),p=r.getAttribute("class"),t=r.getAttribute("style"),s=y.getDirection(1)!=o,a=a.enterMode!=CKEDITOR.ENTER_BR||s||t||p;if(y.is("li"))if(k||v){k&&v&&i.remove();r[v? -"insertAfter":"insertBefore"](y)}else r.breakParent(y);else{if(a){if(m.block.is("li")){y=n.createElement(g==CKEDITOR.ENTER_P?"p":"div");s&&y.setAttribute("dir",o);t&&y.setAttribute("style",t);p&&y.setAttribute("class",p);r.moveChildren(y)}else y=m.block;if(k||v)y[k?"insertBefore":"insertAfter"](i);else{r.breakParent(i);y.insertAfter(i)}}else{r.appendBogus(true);if(k||v)for(;n=r[k?"getFirst":"getLast"]();)n[k?"insertBefore":"insertAfter"](i);else for(r.breakParent(i);n=r.getLast();)n.insertAfter(i)}r.remove()}u.selectBookmarks(w); -return}if(r&&r.getParent().is("blockquote")){r.breakParent(r.getParent());r.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||r.getPrevious().remove();r.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||r.getNext().remove();i.moveToElementEditStart(r);i.select();return}}else if(r&&r.is("pre")&&!p){j(a,g,i,k);return}if(o=i.splitBlock(u)){g=o.previousBlock;r=o.nextBlock;m=o.wasStartOfBlock;a=o.wasEndOfBlock;if(r){w=r.getParent();if(w.is("li")){r.breakParent(w);r.move(r.getNext(),1)}}else if(g&& -(w=g.getParent())&&w.is("li")){g.breakParent(w);w=g.getNext();i.moveToElementEditStart(w);g.move(g.getPrevious())}if(!m&&!a){if(r.is("li")){y=i.clone();y.selectNodeContents(r);y=new CKEDITOR.dom.walker(y);y.evaluator=function(a){return!(h(a)||d(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in CKEDITOR.dtd.$inline&&!(a.getName()in CKEDITOR.dtd.$empty))};(w=y.next())&&(w.type==CKEDITOR.NODE_ELEMENT&&w.is("ul","ol"))&&(CKEDITOR.env.needsBrFiller?n.createElement("br"):n.createText(" ")).insertBefore(w)}r&& -i.moveToElementEditStart(r)}else{if(g){if(g.is("li")||!e.test(g.getName())&&!g.is("pre"))y=g.clone()}else r&&(y=r.clone());if(y)k&&!y.is("li")&&y.renameNode(u);else if(w&&w.is("li"))y=w;else{y=n.createElement(u);g&&(v=g.getDirection())&&y.setAttribute("dir",v)}if(n=o.elementPath){k=0;for(u=n.elements.length;k<u;k++){w=n.elements[k];if(w.equals(n.block)||w.equals(n.blockLimit))break;if(CKEDITOR.dtd.$removeEmpty[w.getName()]){w=w.clone();y.moveChildren(w);y.append(w)}}}y.appendBogus();y.getParent()|| -i.insertNode(y);y.is("li")&&y.removeAttribute("value");if(CKEDITOR.env.ie&&m&&(!a||!g.getChildCount())){i.moveToElementEditStart(a?g:y);i.select()}i.moveToElementEditStart(m&&!a?r:y)}i.select();i.scrollIntoView()}}},enterBr:function(a,b,d,h){if(d=d||f(a)){var j=d.document,k=d.checkEndOfBlock(),p=new CKEDITOR.dom.elementPath(a.getSelection().getStartElement()),m=p.block,r=m&&p.block.getName();if(!h&&r=="li")i(a,b,d,h);else{if(!h&&k&&e.test(r))if(k=m.getDirection()){j=j.createElement("div");j.setAttribute("dir", -k);j.insertAfter(m);d.setStart(j,0)}else{j.createElement("br").insertAfter(m);CKEDITOR.env.gecko&&j.createText("").insertAfter(m);d.setStartAt(m.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)}else{a=r=="pre"&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?j.createText("\r"):j.createElement("br");d.deleteContents();d.insertNode(a);if(CKEDITOR.env.needsBrFiller){j.createText("").insertAfter(a);k&&(m||p.blockLimit).appendBogus();a.getNext().$.nodeValue="";d.setStartAt(a.getNext(), -CKEDITOR.POSITION_AFTER_START)}else d.setStartAt(a,CKEDITOR.POSITION_AFTER_END)}d.collapse(true);d.select();d.scrollIntoView()}}}};var k=CKEDITOR.plugins.enterkey,j=k.enterBr,i=k.enterBlock,e=/^h[1-6]$/}(),function(){function a(a,b){var d={},h=[],k={nbsp:" ",shy:"Â",gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},a=a.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(a,g){var e=b?"&"+g+";":k[g];d[e]=b?k[g]:"&"+g+";";h.push(e);return""});if(!b&&a){var a=a.split(","),j=document.createElement("div"), -i;j.innerHTML="&"+a.join(";&")+";";i=j.innerHTML;j=null;for(j=0;j<i.length;j++){var e=i.charAt(j);d[e]="&"+a[j]+";";h.push(e)}}d.regex=h.join(b?"|":"");return d}CKEDITOR.plugins.add("entities",{afterInit:function(f){function b(a){return e[a]}function d(a){return h.entities_processNumerical=="force"||!j[a]?"&#"+a.charCodeAt(0)+";":j[a]}var h=f.config;if(f=(f=f.dataProcessor)&&f.htmlFilter){var k=[];h.basicEntities!==false&&k.push("nbsp,gt,lt,amp");if(h.entities){k.length&&k.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro"); -h.entities_latin&&k.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml");h.entities_greek&&k.push("Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv"); -h.entities_additional&&k.push(h.entities_additional)}var j=a(k.join(",")),i=j.regex?"["+j.regex+"]":"a^";delete j.regex;h.entities&&h.entities_processNumerical&&(i="[^ -~]|"+i);var i=RegExp(i,"g"),e=a("nbsp,gt,lt,amp,shy",true),c=RegExp(e.regex,"g");f.addRules({text:function(a){return a.replace(c,b).replace(i,d)}},{applyToAll:true,excludeNestedEditable:true})}}})}(),CKEDITOR.config.basicEntities=!0,CKEDITOR.config.entities=!0,CKEDITOR.config.entities_latin=!0,CKEDITOR.config.entities_greek=!0,CKEDITOR.config.entities_additional= -"#39",CKEDITOR.plugins.add("popup"),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(a,f,b,d){f=f||"80%";b=b||"70%";typeof f=="string"&&(f.length>1&&f.substr(f.length-1,1)=="%")&&(f=parseInt(window.screen.width*parseInt(f,10)/100,10));typeof b=="string"&&(b.length>1&&b.substr(b.length-1,1)=="%")&&(b=parseInt(window.screen.height*parseInt(b,10)/100,10));f<640&&(f=640);b<420&&(b=420);var h=parseInt((window.screen.height-b)/2,10),k=parseInt((window.screen.width-f)/2,10),d=(d||"location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes")+ -",width="+f+",height="+b+",top="+h+",left="+k,j=window.open("",null,d,true);if(!j)return false;try{if(navigator.userAgent.toLowerCase().indexOf(" chrome/")==-1){j.moveTo(k,h);j.resizeTo(f,b)}j.focus();j.location.href=a}catch(i){window.open(a,null,d,true)}return true}}),function(){function a(a,c){var b=[];if(c)for(var d in c)b.push(d+"="+encodeURIComponent(c[d]));else return a;return a+(a.indexOf("?")!=-1?"&":"?")+b.join("&")}function f(a){a=a+"";return a.charAt(0).toUpperCase()+a.substr(1)}function b(){var b= -this.getDialog(),c=b.getParentEditor();c._.filebrowserSe=this;var g=c.config["filebrowser"+f(b.getName())+"WindowWidth"]||c.config.filebrowserWindowWidth||"80%",b=c.config["filebrowser"+f(b.getName())+"WindowHeight"]||c.config.filebrowserWindowHeight||"70%",d=this.filebrowser.params||{};d.CKEditor=c.name;d.CKEditorFuncNum=c._.filebrowserFn;if(!d.langCode)d.langCode=c.langCode;d=a(this.filebrowser.url,d);c.popup(d,g,b,c.config.filebrowserWindowFeatures||c.config.fileBrowserWindowFeatures)}function d(){var a= -this.getDialog();a.getParentEditor()._.filebrowserSe=this;return!a.getContentElement(this["for"][0],this["for"][1]).getInputElement().$.value||!a.getContentElement(this["for"][0],this["for"][1]).getAction()?false:true}function h(b,c,g){var d=g.params||{};d.CKEditor=b.name;d.CKEditorFuncNum=b._.filebrowserFn;if(!d.langCode)d.langCode=b.langCode;c.action=a(g.url,d);c.filebrowser=g}function k(a,c,g,i){if(i&&i.length)for(var j,n=i.length;n--;){j=i[n];(j.type=="hbox"||j.type=="vbox"||j.type=="fieldset")&& -k(a,c,g,j.children);if(j.filebrowser){if(typeof j.filebrowser=="string")j.filebrowser={action:j.type=="fileButton"?"QuickUpload":"Browse",target:j.filebrowser};if(j.filebrowser.action=="Browse"){var o=j.filebrowser.url;if(o===void 0){o=a.config["filebrowser"+f(c)+"BrowseUrl"];if(o===void 0)o=a.config.filebrowserBrowseUrl}if(o){j.onClick=b;j.filebrowser.url=o;j.hidden=false}}else if(j.filebrowser.action=="QuickUpload"&&j["for"]){o=j.filebrowser.url;if(o===void 0){o=a.config["filebrowser"+f(c)+"UploadUrl"]; -if(o===void 0)o=a.config.filebrowserUploadUrl}if(o){var p=j.onClick;j.onClick=function(a){var c=a.sender;return p&&p.call(c,a)===false?false:d.call(c,a)};j.filebrowser.url=o;j.hidden=false;h(a,g.getContents(j["for"][0]).get(j["for"][1]),j.filebrowser)}}}}}function j(a,c,b){if(b.indexOf(";")!==-1){for(var b=b.split(";"),d=0;d<b.length;d++)if(j(a,c,b[d]))return true;return false}return(a=a.getContents(c).get(b).filebrowser)&&a.url}function i(a,c){var b=this._.filebrowserSe.getDialog(),d=this._.filebrowserSe["for"], -f=this._.filebrowserSe.filebrowser.onSelect;d&&b.getContentElement(d[0],d[1]).reset();if(!(typeof c=="function"&&c.call(this._.filebrowserSe)===false)&&!(f&&f.call(this._.filebrowserSe,a,c)===false)){typeof c=="string"&&c&&alert(c);if(a){d=this._.filebrowserSe;b=d.getDialog();if(d=d.filebrowser.target||null){d=d.split(":");if(f=b.getContentElement(d[0],d[1])){f.setValue(a);b.selectPage(d[0])}}}}}CKEDITOR.plugins.add("filebrowser",{requires:"popup",init:function(a){a._.filebrowserFn=CKEDITOR.tools.addFunction(i, -a);a.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}});CKEDITOR.on("dialogDefinition",function(a){if(a.editor.plugins.filebrowser)for(var c=a.data.definition,b,d=0;d<c.contents.length;++d)if(b=c.contents[d]){k(a.editor,a.data.name,c,b.elements);if(b.hidden&&b.filebrowser)b.hidden=!j(c,b.id,b.filebrowser)}})}(),function(){function a(a){var h=a.config,k=a.fire("uiSpace",{space:"top",html:""}).html,j=function(){function c(a,g,d){e.setStyle(g,b(d));e.setStyle("position", -a)}function g(a){var b=k.getDocumentPosition();switch(a){case "top":c("absolute","top",b.y-u-w);break;case "pin":c("fixed","top",s);break;case "bottom":c("absolute","top",b.y+(m.height||m.bottom-m.top)+w)}i=a}var i,k,p,m,r,u,y,v=h.floatSpaceDockedOffsetX||0,w=h.floatSpaceDockedOffsetY||0,t=h.floatSpacePinnedOffsetX||0,s=h.floatSpacePinnedOffsetY||0;return function(c){if(k=a.editable()){var l=c&&c.name=="focus";l&&e.show();a.fire("floatingSpaceLayout",{show:l});e.removeStyle("left");e.removeStyle("right"); -p=e.getClientRect();m=k.getClientRect();r=f.getViewPaneSize();u=p.height;y="pageXOffset"in f.$?f.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft;if(i){u+w<=m.top?g("top"):u+w>r.height-m.bottom?g("pin"):g("bottom");c=r.width/2;c=h.floatSpacePreferRight?"right":m.left>0&&m.right<r.width&&m.width>p.width?h.contentsLangDirection=="rtl"?"right":"left":c-m.left>m.right-c?"left":"right";if(p.width>r.width){c="left";l=0}else{l=c=="left"?m.left>0?m.left:0:m.right<r.width?r.width-m.right:0;if(l+ -p.width>r.width){c=c=="left"?"right":"left";l=0}}e.setStyle(c,b((i=="pin"?t:v)+l+(i=="pin"?0:c=="left"?y:-y)))}else{i="pin";g("pin");j(c)}}}}();if(k){var i=new CKEDITOR.template('<div id="cke_{name}" class="cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" title="'+(CKEDITOR.env.gecko?" ":"")+'" lang="{langCode}" role="application" style="{style}"'+(a.title?' aria-labelledby="cke_{name}_arialbl"':" ")+">"+(a.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>': -" ")+'<div class="cke_inner"><div id="{topId}" class="cke_top" role="presentation">{content}</div></div></div>'),e=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(i.output({content:k,id:a.id,langDir:a.lang.dir,langCode:a.langCode,name:a.name,style:"display:none;z-index:"+(h.baseFloatZIndex-1),topId:a.ui.spaceId("top"),voiceLabel:a.title}))),c=CKEDITOR.tools.eventsBuffer(500,j),g=CKEDITOR.tools.eventsBuffer(100,j);e.unselectable();e.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a", -1)||a.preventDefault()});a.on("focus",function(b){j(b);a.on("change",c.input);f.on("scroll",g.input);f.on("resize",g.input)});a.on("blur",function(){e.hide();a.removeListener("change",c.input);f.removeListener("scroll",g.input);f.removeListener("resize",g.input)});a.on("destroy",function(){f.removeListener("scroll",g.input);f.removeListener("resize",g.input);e.clearCustomData();e.remove()});a.focusManager.hasFocus&&e.show();a.focusManager.add(e,1)}}var f=CKEDITOR.document.getWindow(),b=CKEDITOR.tools.cssLength; -CKEDITOR.plugins.add("floatingspace",{init:function(b){b.on("loaded",function(){a(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var a=CKEDITOR.addTemplate("panel-list",'<ul role="presentation" class="cke_panel_list">{items}</ul>'),f=CKEDITOR.addTemplate("panel-list-item",'<li id="{id}" class="cke_panel_listItem" role=presentation><a id="{id}_option" _cke_focus=1 hidefocus=true title="{title}" href="javascript:void(\'{val}\')" {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role="option">{text}</a></li>'), -b=CKEDITOR.addTemplate("panel-list-group",'<h1 id="{id}" class="cke_panel_grouptitle" role="presentation" >{label}</h1>'),d=/\'/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||{},d=b.attributes||(b.attributes={});(this.multiSelect=!!b.multiSelect)&&(d["aria-multiselectable"]=true);!d.role&&(d.role="listbox"); -this.base.apply(this,arguments);this.element.setAttribute("role",d.role);d=this.keys;d[40]="next";d[9]="next";d[38]="prev";d[CKEDITOR.SHIFT+9]="prev";d[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(d[13]="mouseup");this._.pendingHtml=[];this._.pendingList=[];this._.items={};this._.groups={}},_:{close:function(){if(this._.started){var b=a.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(b);delete this._.started}},getClick:function(){if(!this._.click)this._.click= -CKEDITOR.tools.addFunction(function(a){var b=this.toggle(a);if(this.onClick)this.onClick(a,b)},this);return this._.click}},proto:{add:function(a,b,j){var i=CKEDITOR.tools.getNextId();if(!this._.started){this._.started=1;this._.size=this._.size||0}this._.items[a]=i;var e;e=CKEDITOR.tools.htmlEncodeAttr(a).replace(d,"\\'");a={id:i,val:e,onclick:CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(j||a),text:b||a};this._.pendingList.push(f.output(a))}, -startGroup:function(a){this._.close();var d=CKEDITOR.tools.getNextId();this._.groups[a]=d;this._.pendingHtml.push(b.output({id:d,label:a}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(a){var b=this.isMarked(a);b?this.unmark(a):this.mark(a);return!b},hideGroup:function(a){var b=(a=this.element.getDocument().getById(this._.groups[a]))&&a.getNext();if(a){a.setStyle("display","none");b&&b.getName()=="ul"&& -b.setStyle("display","none")}},hideItem:function(a){this.element.getDocument().getById(this._.items[a]).setStyle("display","none")},showAll:function(){var a=this._.items,b=this._.groups,d=this.element.getDocument(),f;for(f in a)d.getById(a[f]).setStyle("display","");for(var e in b){a=d.getById(b[e]);f=a.getNext();a.setStyle("display","");f&&f.getName()=="ul"&&f.setStyle("display","")}},mark:function(a){this.multiSelect||this.unmarkAll();var a=this._.items[a],b=this.element.getDocument().getById(a); -b.addClass("cke_selected");this.element.getDocument().getById(a+"_option").setAttribute("aria-selected",true);this.onMark&&this.onMark(b)},unmark:function(a){var b=this.element.getDocument(),a=this._.items[a],d=b.getById(a);d.removeClass("cke_selected");b.getById(a+"_option").removeAttribute("aria-selected");this.onUnmark&&this.onUnmark(d)},unmarkAll:function(){var a=this._.items,b=this.element.getDocument(),d;for(d in a){var f=a[d];b.getById(f).removeClass("cke_selected");b.getById(f+"_option").removeAttribute("aria-selected")}this.onUnmark&& -this.onUnmark()},isMarked:function(a){return this.element.getDocument().getById(this._.items[a]).hasClass("cke_selected")},focus:function(a){this._.focusIndex=-1;var b=this.element.getElementsByTag("a"),d,f=-1;if(a)for(d=this.element.getDocument().getById(this._.items[a]).getFirst();a=b.getItem(++f);){if(a.equals(d)){this._.focusIndex=f;break}}else this.element.focus();d&&setTimeout(function(){d.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_RICHCOMBO, -CKEDITOR.ui.richCombo.handler)}}),function(){var a='<span id="{id}" class="cke_combo cke_combo__{name} {cls}" role="presentation"><span id="{id}_label" class="cke_combo_label">{label}</span><a class="cke_combo_button" title="{title}" tabindex="-1"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="true"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(a=a+' onkeypress="return false;"');CKEDITOR.env.gecko&& -(a=a+' onblur="this.style.cssText = this.style.cssText;"');var a=a+(' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span id="{id}_text" class="cke_combo_text cke_combo_inlinelabel">{label}</span><span class="cke_combo_open"><span class="cke_combo_arrow">'+(CKEDITOR.env.hc?"▼": -CKEDITOR.env.air?" ":"")+"</span></span></a></span>"),f=CKEDITOR.addTemplate("combo",a);CKEDITOR.UI_RICHCOMBO="richcombo";CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(a){CKEDITOR.tools.extend(this,a,{canGroup:false,title:a.label,modes:{wysiwyg:1},editorFocus:1});a=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=a.parent&&a.parent.getDocument()||CKEDITOR.document;a.className="cke_combopanel";a.block={multiSelect:a.multiSelect,attributes:a.attributes}; -a.toolbarRelated=true;this._={panelDefinition:a,items:{}}},proto:{renderHtml:function(a){var d=[];this.render(a,d);return d.join("")},render:function(a,d){function h(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var c=this.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;if(a.readOnly&&!this.readOnly)c=CKEDITOR.TRISTATE_DISABLED;this.setState(c);this.setValue("");c!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var k=CKEDITOR.env,j="cke_"+this.id,i=CKEDITOR.tools.addFunction(function(g){if(q){a.unlockSelection(1); -q=0}c.execute(g)},this),e=this,c={id:j,combo:this,focus:function(){CKEDITOR.document.getById(j).getChild(1).focus()},execute:function(c){var g=e._;if(g.state!=CKEDITOR.TRISTATE_DISABLED){e.createPanel(a);if(g.on)g.panel.hide();else{e.commit();var d=e.getValue();d?g.list.mark(d):g.list.unmarkAll();g.panel.showBlock(e.id,new CKEDITOR.dom.element(c),4)}}},clickFn:i};a.on("activeFilterChange",h,this);a.on("mode",h,this);a.on("selectionChange",h,this);!this.readOnly&&a.on("readOnly",h,this);var g=CKEDITOR.tools.addFunction(function(g, -e){var g=new CKEDITOR.dom.event(g),d=g.getKeystroke();if(d==40)a.once("panelShow",function(a){a.data._.panel._.currentBlock.onKeyDown(40)});switch(d){case 13:case 32:case 40:CKEDITOR.tools.callFunction(i,e);break;default:c.onkey(c,d)}g.preventDefault()}),l=CKEDITOR.tools.addFunction(function(){c.onfocus&&c.onfocus()}),q=0;c.keyDownFn=g;k={id:j,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:k.gecko&&!k.hc?"":(this.title||"").replace("'",""),keydownFn:g, -focusFn:l,clickFn:i};f.output(k,d);if(this.onRender)this.onRender();return c},createPanel:function(a){if(!this._.panel){var d=this._.panelDefinition,f=this._.panelDefinition.block,k=d.parent||CKEDITOR.document.getBody(),j="cke_combopanel__"+this.name,i=new CKEDITOR.ui.floatPanel(a,k,d),e=i.addListBlock(this.id,f),c=this;i.onShow=function(){this.element.addClass(j);c.setState(CKEDITOR.TRISTATE_ON);c._.on=1;c.editorFocus&&!a.focusManager.hasFocus&&a.focus();if(c.onOpen)c.onOpen();a.once("panelShow", -function(){e.focus(!e.multiSelect&&c.getValue())})};i.onHide=function(g){this.element.removeClass(j);c.setState(c.modes&&c.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);c._.on=0;if(!g&&c.onClose)c.onClose()};i.onEscape=function(){i.hide(1)};e.onClick=function(a,b){c.onClick&&c.onClick.call(c,a,b);i.hide()};this._.panel=i;this._.list=e;i.getBlock(this.id).onHide=function(){c._.on=0;c.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,d){this._.value=a;var f= -this.document.getById("cke_"+this.id+"_text");if(f){if(!a&&!d){d=this.label;f.addClass("cke_combo_inlinelabel")}else f.removeClass("cke_combo_inlinelabel");f.setText(typeof d!="undefined"?d:a)}},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(a){this._.list.mark(a)},hideItem:function(a){this._.list.hideItem(a)},hideGroup:function(a){this._.list.hideGroup(a)},showAll:function(){this._.list.showAll()},add:function(a,d,f){this._.items[a]=f||a; -this._.list.add(a,d,f)},startGroup:function(a){this._.list.startGroup(a)},commit:function(){if(!this._.committed){this._.list.commit();this._.committed=1;CKEDITOR.ui.fire("ready",this)}this._.committed=1},setState:function(a){if(this._.state!=a){var d=this.document.getById("cke_"+this.id);d.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED?d.setAttribute("aria-disabled",true):d.removeAttribute("aria-disabled");this._.state=a}},getState:function(){return this._.state},enable:function(){this._.state== -CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){if(this._.state!=CKEDITOR.TRISTATE_DISABLED){this._.lastState=this._.state;this.setState(CKEDITOR.TRISTATE_DISABLED)}}},statics:{handler:{create:function(a){return new CKEDITOR.ui.richCombo(a)}}}});CKEDITOR.ui.prototype.addRichCombo=function(a,d){this.add(a,CKEDITOR.UI_RICHCOMBO,d)}}(),CKEDITOR.plugins.add("format",{requires:"richcombo",init:function(a){if(!a.blockless){for(var f=a.config,b=a.lang.format,d=f.format_tags.split(";"), -h={},k=0,j=[],i=0;i<d.length;i++){var e=d[i],c=new CKEDITOR.style(f["format_"+e]);if(!a.filter.customConfig||a.filter.check(c)){k++;h[e]=c;h[e]._.enterMode=a.config.enterMode;j.push(c)}}k!==0&&a.ui.addRichCombo("Format",{label:b.label,title:b.panelTitle,toolbar:"styles,20",allowedContent:j,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(f.contentsCss),multiSelect:false,attributes:{"aria-label":b.panelTitle}},init:function(){this.startGroup(b.panelTitle);for(var a in h){var c=b["tag_"+a];this.add(a, -h[a].buildPreview(c),c)}},onClick:function(c){a.focus();a.fire("saveSnapshot");var c=h[c],b=a.elementPath();a[c.checkActive(b,a)?"removeStyle":"applyStyle"](c);setTimeout(function(){a.fire("saveSnapshot")},0)},onRender:function(){a.on("selectionChange",function(c){var b=this.getValue(),c=c.data.path;this.refresh();for(var e in h)if(h[e].checkActive(c,a)){e!=b&&this.setValue(e,a.lang.format["tag_"+e]);return}this.setValue("")},this)},onOpen:function(){this.showAll();for(var c in h)a.activeFilter.check(h[c])|| -this.hideItem(c)},refresh:function(){var c=a.elementPath();if(c){if(c.isContextFor("p"))for(var b in h)if(a.activeFilter.check(h[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"},CKEDITOR.config.format_h1={element:"h1"},CKEDITOR.config.format_h2={element:"h2"}, -CKEDITOR.config.format_h3={element:"h3"},CKEDITOR.config.format_h4={element:"h4"},CKEDITOR.config.format_h5={element:"h5"},CKEDITOR.config.format_h6={element:"h6"},CKEDITOR.plugins.add("htmlwriter",{init:function(a){var f=new CKEDITOR.htmlWriter;f.forceSimpleAmpersand=a.config.forceSimpleAmpersand;f.indentationChars=a.config.dataIndentationChars||"\t";a.dataProcessor.writer=f}}),CKEDITOR.htmlWriter=CKEDITOR.tools.createClass({base:CKEDITOR.htmlParser.basicWriter,$:function(){this.base();this.indentationChars= -"\t";this.selfClosingEnd=" />";this.lineBreakChars="\n";this.sortAttributes=1;this._.indent=0;this._.indentation="";this._.inPre=0;this._.rules={};var a=CKEDITOR.dtd,f;for(f in CKEDITOR.tools.extend({},a.$nonBodyContent,a.$block,a.$listItem,a.$tableContent))this.setRules(f,{indent:!a[f]["#"],breakBeforeOpen:1,breakBeforeClose:!a[f]["#"],breakAfterClose:1,needsSpace:f in a.$block&&!(f in{li:1,dt:1,dd:1})});this.setRules("br",{breakAfterOpen:1});this.setRules("title",{indent:0,breakAfterOpen:0});this.setRules("style", -{indent:0,breakBeforeClose:1});this.setRules("pre",{breakAfterOpen:1,indent:0})},proto:{openTag:function(a){var f=this._.rules[a];this._.afterCloser&&(f&&f.needsSpace&&this._.needsSpace)&&this._.output.push("\n");if(this._.indent)this.indentation();else if(f&&f.breakBeforeOpen){this.lineBreak();this.indentation()}this._.output.push("<",a);this._.afterCloser=0},openTagClose:function(a,f){var b=this._.rules[a];if(f){this._.output.push(this.selfClosingEnd);if(b&&b.breakAfterClose)this._.needsSpace=b.needsSpace}else{this._.output.push(">"); -if(b&&b.indent)this._.indentation=this._.indentation+this.indentationChars}b&&b.breakAfterOpen&&this.lineBreak();a=="pre"&&(this._.inPre=1)},attribute:function(a,f){if(typeof f=="string"){this.forceSimpleAmpersand&&(f=f.replace(/&/g,"&"));f=CKEDITOR.tools.htmlEncodeAttr(f)}this._.output.push(" ",a,'="',f,'"')},closeTag:function(a){var f=this._.rules[a];if(f&&f.indent)this._.indentation=this._.indentation.substr(this.indentationChars.length);if(this._.indent)this.indentation();else if(f&&f.breakBeforeClose){this.lineBreak(); -this.indentation()}this._.output.push("</",a,">");a=="pre"&&(this._.inPre=0);if(f&&f.breakAfterClose){this.lineBreak();this._.needsSpace=f.needsSpace}this._.afterCloser=1},text:function(a){if(this._.indent){this.indentation();!this._.inPre&&(a=CKEDITOR.tools.ltrim(a))}this._.output.push(a)},comment:function(a){this._.indent&&this.indentation();this._.output.push("<\!--",a,"--\>")},lineBreak:function(){!this._.inPre&&this._.output.length>0&&this._.output.push(this.lineBreakChars);this._.indent=1}, -indentation:function(){!this._.inPre&&this._.indentation&&this._.output.push(this._.indentation);this._.indent=0},reset:function(){this._.output=[];this._.indent=0;this._.indentation="";this._.afterCloser=0;this._.inPre=0},setRules:function(a,f){var b=this._.rules[a];b?CKEDITOR.tools.extend(b,f,true):this._.rules[a]=f}}}),function(){var a={canUndo:false,exec:function(a){var b=a.document.createElement("hr");a.insertElement(b)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule", -{init:function(f){if(!f.blockless){f.addCommand("horizontalrule",a);f.ui.addButton&&f.ui.addButton("HorizontalRule",{label:f.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"})}}})}(),function(){function a(a){var b=this.editor,d=a.document,i=d.body,e=d.getElementById("cke_actscrpt");e&&e.parentNode.removeChild(e);(e=d.getElementById("cke_shimscrpt"))&&e.parentNode.removeChild(e);(e=d.getElementById("cke_basetagscrpt"))&&e.parentNode.removeChild(e);i.contentEditable=true;if(CKEDITOR.env.ie){i.hideFocus= -true;i.disabled=true;i.removeAttribute("disabled")}delete this._.isLoadingData;this.$=i;d=new CKEDITOR.dom.document(d);this.setup();this.fixInitialSelection();if(CKEDITOR.env.ie){d.getDocumentElement().addClass(d.$.compatMode);b.config.enterMode!=CKEDITOR.ENTER_P&&this.attachListener(d,"selectionchange",function(){var a=d.getBody(),c=b.getSelection(),e=c&&c.getRanges()[0];e&&(a.getHtml().match(/^<p>(?: |<br>)<\/p>$/i)&&e.startContainer.equals(a))&&setTimeout(function(){e=b.getSelection().getRanges()[0]; -if(!e.startContainer.equals("body")){a.getFirst().remove(1);e.moveToElementEditEnd(a);e.select()}},0)})}if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&CKEDITOR.env.version>10)d.getDocumentElement().on("mousedown",function(a){a.data.getTarget().is("html")&&setTimeout(function(){b.editable().focus()})});f(b);try{b.document.$.execCommand("2D-position",false,true)}catch(c){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&b.document.$.compatMode=="CSS1Compat")&&this.attachListener(this,"keydown",function(a){var c=a.data.getKeystroke(); -if(c==33||c==34)if(CKEDITOR.env.ie)setTimeout(function(){b.getSelection().scrollIntoView()},0);else if(b.window.$.innerHeight>this.$.offsetHeight){var e=b.createRange();e[c==33?"moveToElementEditStart":"moveToElementEditEnd"](this);e.select();a.data.preventDefault()}});CKEDITOR.env.ie&&this.attachListener(d,"blur",function(){try{d.$.selection.empty()}catch(a){}});CKEDITOR.env.iOS&&this.attachListener(d,"touchend",function(){a.focus()});i=b.document.getElementsByTag("title").getItem(0);i.data("cke-title", -i.getText());if(CKEDITOR.env.ie)b.document.$.title=this._.docTitle;CKEDITOR.tools.setTimeout(function(){if(this.status=="unloaded")this.status="ready";b.fire("contentDom");if(this._.isPendingFocus){b.focus();this._.isPendingFocus=false}setTimeout(function(){b.fire("dataReady")},0)},0,this)}function f(a){function b(){var c;a.editable().attachListener(a,"selectionChange",function(){var b=a.getSelection().getSelectedElement();if(b){if(c){c.detachEvent("onresizestart",d);c=null}b.$.attachEvent("onresizestart", -d);c=b.$}})}function d(a){a.returnValue=false}if(CKEDITOR.env.gecko)try{var f=a.document.$;f.execCommand("enableObjectResizing",false,!a.config.disableObjectResizing);f.execCommand("enableInlineTableEditing",false,!a.config.disableNativeTableHandles)}catch(e){}else CKEDITOR.env.ie&&(CKEDITOR.env.version<11&&a.config.disableObjectResizing)&&b(a)}function b(){var a=[];if(CKEDITOR.document.$.documentMode>=8){a.push("html.CSS1Compat [contenteditable=false]{min-height:0 !important}");var b=[],d;for(d in CKEDITOR.dtd.$removeEmpty)b.push("html.CSS1Compat "+ -d+"[contenteditable=false]");a.push(b.join(",")+"{display:inline-block}")}else if(CKEDITOR.env.gecko){a.push("html{height:100% !important}");a.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")}a.push("html{cursor:text;*cursor:auto}");a.push("img,input,textarea{cursor:default}");return a.join("\n")}CKEDITOR.plugins.add("wysiwygarea",{init:function(a){a.config.fullPage&&a.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]", -requiredContent:"body"});a.addMode("wysiwyg",function(b){function f(c){c&&c.removeListener();a.editable(new d(a,e.$.contentWindow.document.body));a.setData(a.getData(1),b)}var i="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",i=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(i)+"}())":"",e=CKEDITOR.dom.element.createFromHtml('<iframe src="'+i+'" frameBorder="0"></iframe>');e.setStyles({width:"100%", -height:"100%"});e.addClass("cke_wysiwyg_frame").addClass("cke_reset");i=a.ui.space("contents");i.append(e);var c=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;if(c)e.on("load",f);var g=a.title,l=a.fire("ariaEditorHelpLabel",{}).label;if(g){CKEDITOR.env.ie&&l&&(g=g+(", "+l));e.setAttribute("title",g)}if(l){var g=CKEDITOR.tools.getNextId(),q=CKEDITOR.dom.element.createFromHtml('<span id="'+g+'" class="cke_voice_label">'+l+"</span>");i.append(q,1);e.setAttribute("aria-describedby",g)}a.on("beforeModeUnload", -function(a){a.removeListener();q&&q.remove()});e.setAttributes({tabIndex:a.tabIndex,allowTransparency:"true"});!c&&f();a.fire("ariaWidget",e)})}});CKEDITOR.editor.prototype.addContentsCss=function(a){var b=this.config,d=b.contentsCss;if(!CKEDITOR.tools.isArray(d))b.contentsCss=d?[d]:[];b.contentsCss.push(a)};var d=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(b){CKEDITOR.tools.setTimeout(a,0,this,b)},this);this._.docTitle= -this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(a,d){var f=this.editor;if(d){this.setHtml(a);this.fixInitialSelection();f.fire("dataReady")}else{this._.isLoadingData=true;f._.dataStore={id:1};var i=f.config,e=i.fullPage,c=i.docType,g=CKEDITOR.tools.buildStyleHtml(b()).replace(/<style>/,'<style data-cke-temp="1">');e||(g=g+CKEDITOR.tools.buildStyleHtml(f.config.contentsCss));var l=i.baseHref?'<base href="'+i.baseHref+'" data-cke-temp="1" />':"";e&& -(a=a.replace(/<!DOCTYPE[^>]*>/i,function(a){f.docType=c=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){f.xmlDeclaration=a;return""}));a=f.dataProcessor.toHtml(a);if(e){/<body[\s|>]/.test(a)||(a="<body>"+a);/<html[\s|>]/.test(a)||(a="<html>"+a+"</html>");/<head[\s|>]/.test(a)?/<title[\s|>]/.test(a)||(a=a.replace(/<head[^>]*>/,"$&<title></title>")):a=a.replace(/<html[^>]*>/,"$&<head><title></title></head>");l&&(a=a.replace(/<head[^>]*?>/,"$&"+l));a=a.replace(/<\/head\s*>/,g+"$&");a=c+a}else a= -i.docType+'<html dir="'+i.contentsLangDirection+'" lang="'+(i.contentsLanguage||f.langCode)+'"><head><title>'+this._.docTitle+"</title>"+l+g+"</head><body"+(i.bodyId?' id="'+i.bodyId+'"':"")+(i.bodyClass?' class="'+i.bodyClass+'"':"")+">"+a+"</body></html>";if(CKEDITOR.env.gecko){a=a.replace(/<body/,'<body contenteditable="true" ');CKEDITOR.env.version<2E4&&(a=a.replace(/<body[^>]*>/,"$&<\!-- cke-content-start --\>"))}i='<script id="cke_actscrpt" type="text/javascript"'+(CKEDITOR.env.ie?' defer="defer" ': -"")+">var wasLoaded=0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+this._.frameLoadedHandler+",window);wasLoaded=1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"<\/script>";CKEDITOR.env.ie&&CKEDITOR.env.version<9&&(i=i+'<script id="cke_shimscrpt">window.parent.CKEDITOR.tools.enableHtml5Elements(document)<\/script>');l&&(CKEDITOR.env.ie&&CKEDITOR.env.version<10)&&(i=i+'<script id="cke_basetagscrpt">var baseTag = document.querySelector( "base" );baseTag.href = baseTag.href;<\/script>'); -a=a.replace(/(?=\s*<\/(:?head)>)/,i);this.clearCustomData();this.clearListeners();f.fire("contentDomUnload");var q=this.getDocument();try{q.write(a)}catch(n){setTimeout(function(){q.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();var a=this.editor,b=a.config,d=b.fullPage,f=d&&a.docType,e=d&&a.xmlDeclaration,c=this.getDocument(),d=d?c.getDocumentElement().getOuterHtml():c.getBody().getHtml();CKEDITOR.env.gecko&&b.enterMode!=CKEDITOR.ENTER_BR&&(d=d.replace(/<br>(?=\s*(:?$|<\/body>))/, -""));d=a.dataProcessor.toDataFormat(d);e&&(d=e+"\n"+d);f&&(d=f+"\n"+d);return d},focus:function(){this._.isLoadingData?this._.isPendingFocus=true:d.baseProto.focus.call(this)},detach:function(){var a=this.editor,b=a.document,a=a.window.getFrame();d.baseProto.detach.call(this);this.clearCustomData();b.getDocumentElement().clearCustomData();a.clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);(b=a.removeCustomData("onResize"))&&b.removeListener();a.remove()}}})}(),CKEDITOR.config.disableObjectResizing= -!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,CKEDITOR.config.contentsCss=CKEDITOR.getUrl("contents.css"),function(){function a(a,h){var k,j;h.on("refresh",function(a){var e=[f],c;for(c in a.data.states)e.push(a.data.states[c]);this.setState(CKEDITOR.tools.search(e,b)?b:f)},h,null,100);h.on("exec",function(b){k=a.getSelection();j=k.createBookmarks(1);if(!b.data)b.data={};b.data.done=false},h,null,0);h.on("exec",function(){a.forceNextSelectionCheck(); -k.selectBookmarks(j)},h,null,100)}var f=CKEDITOR.TRISTATE_DISABLED,b=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(b){var f=CKEDITOR.plugins.indent.genericDefinition;a(b,b.addCommand("indent",new f(true)));a(b,b.addCommand("outdent",new f));if(b.ui.addButton){b.ui.addButton("Indent",{label:b.lang.indent.indent,command:"indent",directional:true,toolbar:"indent,20"});b.ui.addButton("Outdent",{label:b.lang.indent.outdent,command:"outdent",directional:true,toolbar:"indent,10"})}b.on("dirChanged", -function(a){var f=b.createRange(),i=a.data.node;f.setStartBefore(i);f.setEndAfter(i);for(var e=new CKEDITOR.dom.walker(f),c;c=e.next();)if(c.type==CKEDITOR.NODE_ELEMENT)if(!c.equals(i)&&c.getDirection()){f.setStartAfter(c);e=new CKEDITOR.dom.walker(f)}else{var g=b.config.indentClasses;if(g)for(var h=a.data.dir=="ltr"?["_rtl",""]:["","_rtl"],q=0;q<g.length;q++)if(c.hasClass(g[q]+h[0])){c.removeClass(g[q]+h[0]);c.addClass(g[q]+h[1])}g=c.getStyle("margin-right");h=c.getStyle("margin-left");g?c.setStyle("margin-left", -g):c.removeStyle("margin-left");h?c.setStyle("margin-right",h):c.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent={genericDefinition:function(a){this.isIndent=!!a;this.startDisabled=!this.isIndent},specificDefinition:function(a,b,f){this.name=b;this.editor=a;this.jobs={};this.enterBr=a.config.enterMode==CKEDITOR.ENTER_BR;this.isIndent=!!f;this.relatedGlobal=f?"indent":"outdent";this.indentKey=f?9:CKEDITOR.SHIFT+9;this.database={}},registerCommands:function(a,b){a.on("pluginsLoaded",function(){for(var a in b)(function(a, -b){var e=a.getCommand(b.relatedGlobal),c;for(c in b.jobs){e.on("exec",function(e){if(!e.data.done){a.fire("lockSnapshot");if(b.execJob(a,c))e.data.done=true;a.fire("unlockSnapshot");CKEDITOR.dom.element.clearAllMarkers(b.database)}},this,null,c);e.on("refresh",function(e){if(!e.data.states)e.data.states={};e.data.states[b.name+"@"+c]=b.refreshJob(a,c,e.data.path)},this,null,c)}a.addFeature(b)})(this,b[a])})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype= -{execJob:function(a,b){var k=this.jobs[b];if(k.state!=f)return k.exec.call(this,a)},refreshJob:function(a,b,k){b=this.jobs[b];b.state=a.activeFilter.checkFeature(this)?b.refresh.call(this,a,k):f;return b.state},getContext:function(a){return a.contains(this.context)}}}(),function(){function a(a){function e(e){for(var f=j.startContainer,h=j.endContainer;f&&!f.getParent().equals(e);)f=f.getParent();for(;h&&!h.getParent().equals(e);)h=h.getParent();if(!f||!h)return false;for(var k=f,f=[],o=false;!o;){k.equals(h)&& -(o=true);f.push(k);k=k.getNext()}if(f.length<1)return false;k=e.getParents(true);for(h=0;h<k.length;h++)if(k[h].getName&&d[k[h].getName()]){e=k[h];break}for(var k=c.isIndent?1:-1,h=f[0],f=f[f.length-1],o=CKEDITOR.plugins.list.listToArray(e,g),p=o[f.getCustomData("listarray_index")].indent,h=h.getCustomData("listarray_index");h<=f.getCustomData("listarray_index");h++){o[h].indent=o[h].indent+k;if(k>0){var t=o[h].parent;o[h].parent=new CKEDITOR.dom.element(t.getName(),t.getDocument())}}for(h=f.getCustomData("listarray_index")+ -1;h<o.length&&o[h].indent>p;h++)o[h].indent=o[h].indent+k;f=CKEDITOR.plugins.list.arrayToList(o,g,null,a.config.enterMode,e.getDirection());if(!c.isIndent){var s;if((s=e.getParent())&&s.is("li"))for(var k=f.listNode.getChildren(),q=[],x,h=k.count()-1;h>=0;h--)(x=k.getItem(h))&&(x.is&&x.is("li"))&&q.push(x)}f&&f.listNode.replace(e);if(q&&q.length)for(h=0;h<q.length;h++){for(x=e=q[h];(x=x.getNext())&&x.is&&x.getName()in d;){CKEDITOR.env.needsNbspFiller&&!e.getFirst(b)&&e.append(j.document.createText(" ")); -e.append(x)}e.insertAfter(s)}f&&a.fire("contentDomInvalidated");return true}for(var c=this,g=this.database,d=this.context,h=a.getSelection(),h=(h&&h.getRanges()).createIterator(),j;j=h.getNextRange();){for(var k=j.getCommonAncestor();k&&!(k.type==CKEDITOR.NODE_ELEMENT&&d[k.getName()]);){if(a.editable().equals(k)){k=false;break}k=k.getParent()}k||(k=j.startPath().contains(d))&&j.setEndAt(k,CKEDITOR.POSITION_BEFORE_END);if(!k){var p=j.getEnclosedNode();if(p&&p.type==CKEDITOR.NODE_ELEMENT&&p.getName()in -d){j.setStartAt(p,CKEDITOR.POSITION_AFTER_START);j.setEndAt(p,CKEDITOR.POSITION_BEFORE_END);k=p}}if(k&&j.startContainer.type==CKEDITOR.NODE_ELEMENT&&j.startContainer.getName()in d){p=new CKEDITOR.dom.walker(j);p.evaluator=f;j.startContainer=p.next()}if(k&&j.endContainer.type==CKEDITOR.NODE_ELEMENT&&j.endContainer.getName()in d){p=new CKEDITOR.dom.walker(j);p.evaluator=f;j.endContainer=p.previous()}if(k)return e(k)}return 0}function f(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}function b(a){return d(a)&& -h(a)}var d=CKEDITOR.dom.walker.whitespaces(true),h=CKEDITOR.dom.walker.bookmark(false,true),k=CKEDITOR.TRISTATE_DISABLED,j=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(b){function e(b){c.specificDefinition.apply(this,arguments);this.requiredContent=["ul","ol"];b.on("key",function(a){if(b.mode=="wysiwyg"&&a.data.keyCode==this.indentKey){var c=this.getContext(b.elementPath());if(c&&(!this.isIndent||!CKEDITOR.plugins.indentList.firstItemInPath(this.context, -b.elementPath(),c))){b.execCommand(this.relatedGlobal);a.cancel()}}},this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(a,c){var b=this.getContext(c),e=CKEDITOR.plugins.indentList.firstItemInPath(this.context,c,b);return!b||!this.isIndent||e?k:j}:function(a,c){return!this.getContext(c)||this.isIndent?k:j},exec:CKEDITOR.tools.bind(a,this)}}var c=CKEDITOR.plugins.indent;c.registerCommands(b,{indentlist:new e(b,"indentlist",true),outdentlist:new e(b,"outdentlist")});CKEDITOR.tools.extend(e.prototype, -c.specificDefinition.prototype,{context:{ol:1,ul:1}})}});CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(a,b,c){var g=b.contains(f);c||(c=b.contains(a));return c&&g&&g.equals(c.getFirst(f))}}(),function(){function a(a,c,b){function e(b){if((j=i[b?"getFirst":"getLast"]())&&(!j.is||!j.isBlockBoundary())&&(k=c.root[b?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(true)))&&(!k.is||!k.isBlockBoundary({br:1})))a.document.createElement("br")[b?"insertBefore":"insertAfter"](j)} -for(var g=CKEDITOR.plugins.list.listToArray(c.root,b),d=[],f=0;f<c.contents.length;f++){var h=c.contents[f];if((h=h.getAscendant("li",true))&&!h.getCustomData("list_item_processed")){d.push(h);CKEDITOR.dom.element.setMarker(b,h,"list_item_processed",true)}}h=null;for(f=0;f<d.length;f++){h=d[f].getCustomData("listarray_index");g[h].indent=-1}for(f=h+1;f<g.length;f++)if(g[f].indent>g[f-1].indent+1){d=g[f-1].indent+1-g[f].indent;for(h=g[f].indent;g[f]&&g[f].indent>=h;){g[f].indent=g[f].indent+d;f++}f--}var i= -CKEDITOR.plugins.list.arrayToList(g,b,null,a.config.enterMode,c.root.getAttribute("dir")).listNode,j,k;e(true);e();i.replace(c.root);a.fire("contentDomInvalidated")}function f(a,c){this.name=a;this.context=this.type=c;this.allowedContent=c+" li";this.requiredContent=c}function b(a,c,b,e){for(var g,d;g=a[e?"getLast":"getFirst"](n);){(d=g.getDirection(1))!==c.getDirection(1)&&g.setAttribute("dir",d);g.remove();b?g[e?"insertBefore":"insertAfter"](b):c.append(g,e)}}function d(a){function c(e){var d=a[e? -"getPrevious":"getNext"](g);if(d&&d.type==CKEDITOR.NODE_ELEMENT&&d.is(a.getName())){b(a,d,null,!e);a.remove();a=d}}c();c(1)}function h(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function k(a,c,e){a.fire("saveSnapshot");e.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var f=e.extractContents();c.trim(false,true);var h=c.createBookmark(),i=new CKEDITOR.dom.elementPath(c.startContainer),k=i.block,i= -i.lastElement.getAscendant("li",1)||k,n=new CKEDITOR.dom.elementPath(e.startContainer),t=n.contains(CKEDITOR.dtd.$listItem),n=n.contains(CKEDITOR.dtd.$list);if(k)(k=k.getBogus())&&k.remove();else if(n)(k=n.getPrevious(g))&&l(k)&&k.remove();(k=f.getLast())&&(k.type==CKEDITOR.NODE_ELEMENT&&k.is("br"))&&k.remove();(k=c.startContainer.getChild(c.startOffset))?f.insertBefore(k):c.startContainer.append(f);if(t)if(f=j(t))if(i.contains(t)){b(f,t.getParent(),t);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(g))&&f.equals(i.getFirst(g))&&(f=i)}e.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START);f.remove()}e=e.clone();f=a.editable();e.setEndAt(f,CKEDITOR.POSITION_BEFORE_END);e=new CKEDITOR.dom.walker(e);e.evaluator=function(a){return g(a)&&!l(a)};(e=e.next())&&(e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in CKEDITOR.dtd.$list)&&d(e);c.moveToBookmark(h);c.select();a.fire("saveSnapshot")}function j(a){return(a= -a.getLast(g))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in i?a:null}var i={ol:1,ul:1},e=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(),g=function(a){return!(e(a)||c(a))},l=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,c,b,e,g){if(!i[a.getName()])return[];e||(e=0);b||(b=[]);for(var d=0,f=a.getChildCount();d<f;d++){var h=a.getChild(d);h.type==CKEDITOR.NODE_ELEMENT&&h.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(h,c,b,e+1);if(h.$.nodeName.toLowerCase()== -"li"){var j={parent:a,indent:e,element:h,contents:[]};if(g)j.grandparent=g;else{j.grandparent=a.getParent();if(j.grandparent&&j.grandparent.$.nodeName.toLowerCase()=="li")j.grandparent=j.grandparent.getParent()}c&&CKEDITOR.dom.element.setMarker(c,h,"listarray_index",b.length);b.push(j);for(var k=0,l=h.getChildCount(),n;k<l;k++){n=h.getChild(k);n.type==CKEDITOR.NODE_ELEMENT&&i[n.getName()]?CKEDITOR.plugins.list.listToArray(n,c,b,e+1,j.grandparent):j.contents.push(n)}}}return b},arrayToList:function(a, -b,e,d,f){e||(e=0);if(!a||a.length<e+1)return null;for(var h,j=a[e].parent.getDocument(),k=new CKEDITOR.dom.documentFragment(j),l=null,n=e,q=Math.max(a[e].indent,0),x=null,B,A,D=d==CKEDITOR.ENTER_P?"p":"div";;){var C=a[n];h=C.grandparent;B=C.element.getDirection(1);if(C.indent==q){if(!l||a[n].parent.getName()!=l.getName()){l=a[n].parent.clone(false,1);f&&l.setAttribute("dir",f);k.append(l)}x=l.append(C.element.clone(0,1));B!=l.getDirection(1)&&x.setAttribute("dir",B);for(h=0;h<C.contents.length;h++)x.append(C.contents[h].clone(1, -1));n++}else if(C.indent==Math.max(q,0)+1){C=a[n-1].element.getDirection(1);n=CKEDITOR.plugins.list.arrayToList(a,null,n,d,C!=B?B:null);!x.getChildCount()&&(CKEDITOR.env.needsNbspFiller&&j.$.documentMode<=7)&&x.append(j.createText(" "));x.append(n.listNode);n=n.nextIndex}else if(C.indent==-1&&!e&&h){if(i[h.getName()]){x=C.element.clone(false,true);B!=h.getDirection(1)&&x.setAttribute("dir",B)}else x=new CKEDITOR.dom.documentFragment(j);var l=h.getDirection(1)!=B,J=C.element,E=J.getAttribute("class"), -F=J.getAttribute("style"),M=x.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(d!=CKEDITOR.ENTER_BR||l||F||E),H,N=C.contents.length,K;for(h=0;h<N;h++){H=C.contents[h];if(c(H)&&N>1)M?K=H.clone(1,1):x.append(H.clone(1,1));else if(H.type==CKEDITOR.NODE_ELEMENT&&H.isBlockBoundary()){l&&!H.getDirection()&&H.setAttribute("dir",B);A=H;var U=J.getAttribute("style");U&&A.setAttribute("style",U.replace(/([^;])$/,"$1;")+(A.getAttribute("style")||""));E&&H.addClass(E);A=null;if(K){x.append(K);K=null}x.append(H.clone(1, -1))}else if(M){if(!A){A=j.createElement(D);x.append(A);l&&A.setAttribute("dir",B)}F&&A.setAttribute("style",F);E&&A.setAttribute("class",E);if(K){A.append(K);K=null}A.append(H.clone(1,1))}else x.append(H.clone(1,1))}if(K){(A||x).append(K);K=null}if(x.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&n!=a.length-1){if(CKEDITOR.env.needsBrFiller)(B=x.getLast())&&(B.type==CKEDITOR.NODE_ELEMENT&&B.is("br"))&&B.remove();B=x.getLast(g);(!B||!(B.type==CKEDITOR.NODE_ELEMENT&&B.is(CKEDITOR.dtd.$block)))&&x.append(j.createElement("br"))}B= -x.$.nodeName.toLowerCase();(B=="div"||B=="p")&&x.appendBogus();k.append(x);l=null;n++}else return null;A=null;if(a.length<=n||Math.max(a[n].indent,0)<q)break}if(b)for(a=k.getFirst();a;){if(a.type==CKEDITOR.NODE_ELEMENT){CKEDITOR.dom.element.clearMarkers(b,a);if(a.getName()in CKEDITOR.dtd.$listItem){e=a;j=f=d=void 0;if(d=e.getDirection()){for(f=e.getParent();f&&!(j=f.getDirection());)f=f.getParent();d==j&&e.removeAttribute("dir")}}}a=a.getNextSourceNode()}return{listNode:k,nextIndex:n}}};var q=/^h[1-6]$/, -n=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);f.prototype={exec:function(c){this.refresh(c,c.elementPath());var b=c.config,e=c.getSelection(),f=e&&e.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var h=c.editable();if(h.getFirst(g)){var j=f.length==1&&f[0];(b=j&&j.getEnclosedNode())&&(b.is&&this.type==b.getName())&&this.setState(CKEDITOR.TRISTATE_ON)}else{b.enterMode==CKEDITOR.ENTER_BR?h.appendBogus():f[0].fixBlock(1,b.enterMode==CKEDITOR.ENTER_P?"p":"div");e.selectRanges(f)}}for(var b= -e.createBookmarks(true),h=[],k={},f=f.createIterator(),l=0;(j=f.getNextRange())&&++l;){var n=j.getBoundaryNodes(),s=n.startNode,z=n.endNode;s.type==CKEDITOR.NODE_ELEMENT&&s.getName()=="td"&&j.setStartAt(n.startNode,CKEDITOR.POSITION_AFTER_START);z.type==CKEDITOR.NODE_ELEMENT&&z.getName()=="td"&&j.setEndAt(n.endNode,CKEDITOR.POSITION_BEFORE_END);j=j.createIterator();for(j.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;n=j.getNextParagraph();)if(!n.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(k, -n,"list_block",1);for(var x=c.elementPath(n),s=x.elements,z=0,x=x.blockLimit,B,A=s.length-1;A>=0&&(B=s[A]);A--)if(i[B.getName()]&&x.contains(B)){x.removeCustomData("list_group_object_"+l);if(s=B.getCustomData("list_group_object"))s.contents.push(n);else{s={root:B,contents:[n]};h.push(s);CKEDITOR.dom.element.setMarker(k,B,"list_group_object",s)}z=1;break}if(!z){z=x;if(z.getCustomData("list_group_object_"+l))z.getCustomData("list_group_object_"+l).contents.push(n);else{s={root:z,contents:[n]};CKEDITOR.dom.element.setMarker(k, -z,"list_group_object_"+l,s);h.push(s)}}}}for(B=[];h.length>0;){s=h.shift();if(this.state==CKEDITOR.TRISTATE_OFF)if(i[s.root.getName()]){f=c;l=s;s=k;j=B;z=CKEDITOR.plugins.list.listToArray(l.root,s);x=[];for(n=0;n<l.contents.length;n++){A=l.contents[n];if((A=A.getAscendant("li",true))&&!A.getCustomData("list_item_processed")){x.push(A);CKEDITOR.dom.element.setMarker(s,A,"list_item_processed",true)}}for(var A=l.root.getDocument(),D=void 0,C=void 0,n=0;n<x.length;n++){var J=x[n].getCustomData("listarray_index"), -D=z[J].parent;if(!D.is(this.type)){C=A.createElement(this.type);D.copyAttributes(C,{start:1,type:1});C.removeStyle("list-style-type");z[J].parent=C}}s=CKEDITOR.plugins.list.arrayToList(z,s,null,f.config.enterMode);z=void 0;x=s.listNode.getChildCount();for(n=0;n<x&&(z=s.listNode.getChild(n));n++)z.getName()==this.type&&j.push(z);s.listNode.replace(l.root);f.fire("contentDomInvalidated")}else{z=c;n=s;j=B;x=n.contents;f=n.root.getDocument();l=[];if(x.length==1&&x[0].equals(n.root)){s=f.createElement("div"); -x[0].moveChildren&&x[0].moveChildren(s);x[0].append(s);x[0]=s}n=n.contents[0].getParent();for(A=0;A<x.length;A++)n=n.getCommonAncestor(x[A].getParent());D=z.config.useComputedState;z=s=void 0;D=D===void 0||D;for(A=0;A<x.length;A++)for(C=x[A];J=C.getParent();){if(J.equals(n)){l.push(C);!z&&C.getDirection()&&(z=1);C=C.getDirection(D);s!==null&&(s=s&&s!=C?null:C);break}C=J}if(!(l.length<1)){x=l[l.length-1].getNext();A=f.createElement(this.type);j.push(A);for(D=j=void 0;l.length;){j=l.shift();D=f.createElement("li"); -if(j.is("pre")||q.test(j.getName())||j.getAttribute("contenteditable")=="false")j.appendTo(D);else{j.copyAttributes(D);if(s&&j.getDirection()){D.removeStyle("direction");D.removeAttribute("dir")}j.moveChildren(D);j.remove()}D.appendTo(A)}s&&z&&A.setAttribute("dir",s);x?A.insertBefore(x):A.appendTo(n)}}else this.state==CKEDITOR.TRISTATE_ON&&i[s.root.getName()]&&a.call(this,c,s,k)}for(A=0;A<B.length;A++)d(B[A]);CKEDITOR.dom.element.clearAllMarkers(k);e.selectBookmarks(b);c.focus()},refresh:function(a, -c){var b=c.contains(i,1),e=c.blockLimit||c.root;b&&e.contains(b)?this.setState(b.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(a){if(!a.blockless){a.addCommand("numberedlist",new f("numberedlist","ol"));a.addCommand("bulletedlist",new f("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(c){var b=c.data.domEvent.getKey(),e;if(a.mode=="wysiwyg"&&b in{8:1,46:1}){var d=a.getSelection().getRanges()[0],f=d&&d.startPath();if(d&&d.collapsed){var n=b==8,q=a.editable(),t=new CKEDITOR.dom.walker(d.clone());t.evaluator=function(a){return g(a)&&!l(a)};t.guard=function(a,c){return!(c&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};b=d.clone();if(n){var s; -if((s=f.contains(i))&&d.checkBoundaryOfElement(s,CKEDITOR.START)&&(s=s.getParent())&&s.is("li")&&(s=j(s))){e=s;s=s.getPrevious(g);b.moveToPosition(s&&l(s)?s:e,CKEDITOR.POSITION_BEFORE_START)}else{t.range.setStartAt(q,CKEDITOR.POSITION_AFTER_START);t.range.setEnd(d.startContainer,d.startOffset);if((s=t.previous())&&s.type==CKEDITOR.NODE_ELEMENT&&(s.getName()in i||s.is("li"))){if(!s.is("li")){t.range.selectNodeContents(s);t.reset();t.evaluator=h;s=t.previous()}e=s;b.moveToElementEditEnd(e);b.moveToPosition(b.endPath().block, -CKEDITOR.POSITION_BEFORE_END)}}if(e){k(a,b,d);c.cancel()}else{var z=f.contains(i);if(z&&d.checkBoundaryOfElement(z,CKEDITOR.START)){e=z.getFirst(g);if(d.checkBoundaryOfElement(e,CKEDITOR.START)){s=z.getPrevious(g);if(j(e)){if(s){d.moveToElementEditEnd(s);d.select()}}else a.execCommand("outdent");c.cancel()}}}}else if(e=f.contains("li")){t.range.setEndAt(q,CKEDITOR.POSITION_BEFORE_END);n=(q=e.getLast(g))&&h(q)?q:e;f=0;if((s=t.next())&&s.type==CKEDITOR.NODE_ELEMENT&&s.getName()in i&&s.equals(q)){f= -1;s=t.next()}else d.checkBoundaryOfElement(n,CKEDITOR.END)&&(f=2);if(f&&s){d=d.clone();d.moveToElementEditStart(s);if(f==1){b.optimize();if(!b.startContainer.equals(e)){for(e=b.startContainer;e.is(CKEDITOR.dtd.$inline);){z=e;e=e.getParent()}z&&b.moveToPosition(z,CKEDITOR.POSITION_AFTER_END)}}if(f==2){b.moveToPosition(b.endPath().block,CKEDITOR.POSITION_BEFORE_END);d.endPath().block&&d.moveToPosition(d.endPath().block,CKEDITOR.POSITION_AFTER_START)}k(a,b,d);c.cancel()}}else{t.range.setEndAt(q,CKEDITOR.POSITION_BEFORE_END); -if((s=t.next())&&s.type==CKEDITOR.NODE_ELEMENT&&s.is(i)){s=s.getFirst(g);if(f.block&&d.checkStartOfBlock()&&d.checkEndOfBlock()){f.block.remove();d.moveToElementEditStart(s);d.select()}else if(j(s)){d.moveToElementEditStart(s);d.select()}else{d=d.clone();d.moveToElementEditStart(s);k(a,b,d)}c.cancel()}}setTimeout(function(){a.selectionChange(1)})}}})}}})}(),"use strict",function(){function a(a,c,b){return g(c)&&g(b)&&b.equals(c.getNext(function(a){return!(V(a)||W(a)||l(a))}))}function f(a){this.upper= -a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}function b(a){var c=a.element;if(c&&g(c))if((c=c.getAscendant(a.triggers,true))&&a.editable.contains(c)){var b=k(c);if(b.getAttribute("contenteditable")=="true")return c;if(b.is(a.triggers))return b}return null}function d(a,c,b){y(a,c);y(a,b);a=c.size.bottom;b=b.size.top;return a&&b?0|(a+b)/2:a||b}function h(a,b,e){return b=b[e?"getPrevious":"getNext"](function(b){return b&&b.type==CKEDITOR.NODE_TEXT&&!V(b)||g(b)&&!l(b)&&!c(a,b)})}function k(a, -c){if(a.data("cke-editable"))return null;for(c||(a=a.getParent());a;){if(a.data("cke-editable"))break;if(a.hasAttribute("contenteditable"))return a;a=a.getParent()}return null}function j(a){var c=a.doc,b=x('<span contenteditable="false" style="'+G+"position:absolute;border-top:1px dashed "+a.boxColor+'"></span>',c),e=CKEDITOR.getUrl(this.path+"images/"+(B.hidpi?"hidpi/":"")+"icon"+(a.rtl?"-rtl":"")+".png");s(b,{attach:function(){this.wrap.getParent()||this.wrap.appendTo(a.editable,true);return this}, -lineChildren:[s(x('<span title="'+a.editor.lang.magicline.title+'" contenteditable="false">↵</span>',c),{base:G+"height:17px;width:17px;"+(a.rtl?"left":"right")+":17px;background:url("+e+") center no-repeat "+a.boxColor+";cursor:pointer;"+(B.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(B.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px; border-radius: 2px;","top:-17px; border-radius: 2px 2px 0px 0px;","top:-1px; border-radius: 0px 0px 2px 2px;"]}), -s(x(R,c),{base:Q+"left:0px;border-left-color:"+a.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),s(x(R,c),{base:Q+"right:0px;border-right-color:"+a.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px","border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],detach:function(){this.wrap.getParent()&&this.wrap.remove();return this},mouseNear:function(){y(a,this);var c=a.holdDistance,b=this.size; -return b&&a.mouse.y>b.top-c&&a.mouse.y<b.bottom+c&&a.mouse.x>b.left-c&&a.mouse.x<b.right+c?true:false},place:function(){var c=a.view,b=a.editable,e=a.trigger,d=e.upper,g=e.lower,f=d||g,h=f.getParent(),i={};this.trigger=e;d&&y(a,d,true);g&&y(a,g,true);y(a,h,true);a.inInlineMode&&v(a,true);if(h.equals(b)){i.left=c.scroll.x;i.right=-c.scroll.x;i.width=""}else{i.left=f.size.left-f.size.margin.left+c.scroll.x-(a.inInlineMode?c.editable.left+c.editable.border.left:0);i.width=f.size.outerWidth+f.size.margin.left+ -f.size.margin.right+c.scroll.x;i.right=""}if(d&&g)i.top=d.size.margin.bottom===g.size.margin.top?0|d.size.bottom+d.size.margin.bottom/2:d.size.margin.bottom<g.size.margin.top?d.size.bottom+d.size.margin.bottom:d.size.bottom+d.size.margin.bottom-g.size.margin.top;else if(d){if(!g)i.top=d.size.bottom+d.size.margin.bottom}else i.top=g.size.top-g.size.margin.top;if(e.is(N)||i.top>c.scroll.y-15&&i.top<c.scroll.y+5){i.top=a.inInlineMode?0:c.scroll.y;this.look(N)}else if(e.is(K)||i.top>c.pane.bottom-5&& -i.top<c.pane.bottom+15){i.top=a.inInlineMode?c.editable.height+c.editable.padding.top+c.editable.padding.bottom:c.pane.bottom-1;this.look(K)}else{if(a.inInlineMode)i.top=i.top-(c.editable.top+c.editable.border.top);this.look(U)}if(a.inInlineMode){i.top--;i.top=i.top+c.editable.scroll.top;i.left=i.left+c.editable.scroll.left}for(var j in i)i[j]=CKEDITOR.tools.cssLength(i[j]);this.setStyles(i)},look:function(a){if(this.oldLook!=a){for(var c=this.lineChildren.length,b;c--;)(b=this.lineChildren[c]).setAttribute("style", -b.base+b.looks[0|a/2]);this.oldLook=a}},wrap:new z("span",a.doc)});for(c=b.lineChildren.length;c--;)b.lineChildren[c].appendTo(b);b.look(U);b.appendTo(b.wrap);b.unselectable();b.lineChildren[0].on("mouseup",function(c){b.detach();i(a,function(c){var b=a.line.trigger;c[b.is(J)?"insertBefore":"insertAfter"](b.is(J)?b.lower:b.upper)},true);a.editor.focus();!B.ie&&a.enterMode!=CKEDITOR.ENTER_BR&&a.hotNode.scrollIntoView();c.data.preventDefault(true)});b.on("mousedown",function(a){a.data.preventDefault(true)}); -a.line=b}function i(a,c,b){var e=new CKEDITOR.dom.range(a.doc),d=a.editor,g;if(B.ie&&a.enterMode==CKEDITOR.ENTER_BR)g=a.doc.createText(S);else{g=(g=k(a.element,true))&&g.data("cke-enter-mode")||a.enterMode;g=new z(C[g],a.doc);g.is("br")||a.doc.createText(S).appendTo(g)}b&&d.fire("saveSnapshot");c(g);e.moveToPosition(g,CKEDITOR.POSITION_AFTER_START);d.getSelection().selectRanges([e]);a.hotNode=g;b&&d.fire("saveSnapshot")}function e(a,c){return{canUndo:true,modes:{wysiwyg:1},exec:function(){function e(b){var g= -B.ie&&B.version<9?" ":S,d=a.hotNode&&a.hotNode.getText()==g&&a.element.equals(a.hotNode)&&a.lastCmdDirection===!!c;i(a,function(e){d&&a.hotNode&&a.hotNode.remove();e[c?"insertAfter":"insertBefore"](b);e.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!c});a.lastCmdDirection=!!c});!B.ie&&a.enterMode!=CKEDITOR.ENTER_BR&&a.hotNode.scrollIntoView();a.line.detach()}return function(d){var d=d.getSelection().getStartElement(),f,d=d.getAscendant(L,1);if(!o(a,d)&&d&&!d.equals(a.editable)&& -!d.contains(a.editable)){if((f=k(d))&&f.getAttribute("contenteditable")=="false")d=f;a.element=d;f=h(a,d,!c);var i;if(g(f)&&f.is(a.triggers)&&f.is(P)&&(!h(a,f,!c)||(i=h(a,f,!c))&&g(i)&&i.is(a.triggers)))e(f);else{i=b(a,d);if(g(i))if(h(a,i,!c))(d=h(a,i,!c))&&(g(d)&&d.is(a.triggers))&&e(i);else e(i)}}}}()}}function c(a,c){if(!c||!(c.type==CKEDITOR.NODE_ELEMENT&&c.$))return false;var b=a.line;return b.wrap.equals(c)||b.wrap.contains(c)}function g(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.$}function l(a){if(!g(a))return false; -var c;if(!(c=q(a)))if(g(a)){c={left:1,right:1,center:1};c=!(!c[a.getComputedStyle("float")]&&!c[a.getAttribute("align")])}else c=false;return c}function q(a){return!!{absolute:1,fixed:1}[a.getComputedStyle("position")]}function n(a,c){return g(c)?c.is(a.triggers):null}function o(a,c){if(!c)return false;for(var b=c.getParents(1),e=b.length;e--;)for(var d=a.tabuList.length;d--;)if(b[e].hasAttribute(a.tabuList[d]))return true;return false}function p(a,c,b){c=c[b?"getLast":"getFirst"](function(c){return a.isRelevant(c)&& -!c.is(Z)});if(!c)return false;y(a,c);return b?c.size.top>a.mouse.y:c.size.bottom<a.mouse.y}function m(a){var b=a.editable,e=a.mouse,d=a.view,h=a.triggerOffset;v(a);var i=e.y>(a.inInlineMode?d.editable.top+d.editable.height/2:Math.min(d.editable.height,d.pane.height)/2),b=b[i?"getLast":"getFirst"](function(a){return!(V(a)||W(a))});if(!b)return null;c(a,b)&&(b=a.line.wrap[i?"getPrevious":"getNext"](function(a){return!(V(a)||W(a))}));if(!g(b)||l(b)||!n(a,b))return null;y(a,b);if(!i&&b.size.top>=0&&e.y> -0&&e.y<b.size.top+h){a=a.inInlineMode||d.scroll.y===0?N:U;return new f([null,b,J,M,a])}if(i&&b.size.bottom<=d.pane.height&&e.y>b.size.bottom-h&&e.y<d.pane.height){a=a.inInlineMode||b.size.bottom>d.pane.height-h&&b.size.bottom<d.pane.height?K:U;return new f([b,null,E,M,a])}return null}function r(a){var c=a.mouse,e=a.view,d=a.triggerOffset,i=b(a);if(!i)return null;y(a,i);var d=Math.min(d,0|i.size.outerHeight/2),j=[],k,m;if(c.y>i.size.top-1&&c.y<i.size.top+d)m=false;else if(c.y>i.size.bottom-d&&c.y< -i.size.bottom+1)m=true;else return null;if(l(i)||p(a,i,m)||i.getParent().is(O))return null;var r=h(a,i,!m);if(r){if(r&&r.type==CKEDITOR.NODE_TEXT)return null;if(g(r)){if(l(r)||!n(a,r)||r.getParent().is(O))return null;j=[r,i][m?"reverse":"concat"]().concat([F,M])}}else{if(i.equals(a.editable[m?"getLast":"getFirst"](a.isRelevant))){v(a);m&&c.y>i.size.bottom-d&&c.y<e.pane.height&&i.size.bottom>e.pane.height-d&&i.size.bottom<e.pane.height?k=K:c.y>0&&c.y<i.size.top+d&&(k=N)}else k=U;j=[null,i][m?"reverse": -"concat"]().concat([m?E:J,M,k,i.equals(a.editable[m?"getLast":"getFirst"](a.isRelevant))?m?K:N:U])}return 0 in j?new f(j):null}function u(a,c,b,e){for(var d=c.getDocumentPosition(),g={},f={},h={},i={},j=T.length;j--;){g[T[j]]=parseInt(c.getComputedStyle.call(c,"border-"+T[j]+"-width"),10)||0;h[T[j]]=parseInt(c.getComputedStyle.call(c,"padding-"+T[j]),10)||0;f[T[j]]=parseInt(c.getComputedStyle.call(c,"margin-"+T[j]),10)||0}(!b||e)&&w(a,e);i.top=d.y-(b?0:a.view.scroll.y);i.left=d.x-(b?0:a.view.scroll.x); -i.outerWidth=c.$.offsetWidth;i.outerHeight=c.$.offsetHeight;i.height=i.outerHeight-(h.top+h.bottom+g.top+g.bottom);i.width=i.outerWidth-(h.left+h.right+g.left+g.right);i.bottom=i.top+i.outerHeight;i.right=i.left+i.outerWidth;if(a.inInlineMode)i.scroll={top:c.$.scrollTop,left:c.$.scrollLeft};return s({border:g,padding:h,margin:f,ignoreScroll:b},i,true)}function y(a,c,b){if(!g(c))return c.size=null;if(c.size){if(c.size.ignoreScroll==b&&c.size.date>new Date-I)return null}else c.size={};return s(c.size, -u(a,c,b),{date:+new Date},true)}function v(a,c){a.view.editable=u(a,a.editable,c,true)}function w(a,c){if(!a.view)a.view={};var b=a.view;if(c||!(b&&b.date>new Date-I)){var e=a.win,b=e.getScrollPosition(),e=e.getViewPaneSize();s(a.view,{scroll:{x:b.x,y:b.y,width:a.doc.$.documentElement.scrollWidth-e.width,height:a.doc.$.documentElement.scrollHeight-e.height},pane:{width:e.width,height:e.height,bottom:e.height+b.y},date:+new Date},true)}}function t(a,c,b,e){for(var d=e,g=e,h=0,i=false,j=false,k=a.view.pane.height, -m=a.mouse;m.y+h<k&&m.y-h>0;){i||(i=c(d,e));j||(j=c(g,e));!i&&m.y-h>0&&(d=b(a,{x:m.x,y:m.y-h}));!j&&m.y+h<k&&(g=b(a,{x:m.x,y:m.y+h}));if(i&&j)break;h=h+2}return new f([d,g,null,null])}CKEDITOR.plugins.add("magicline",{init:function(a){var d=a.config,k=d.magicline_triggerOffset||30,n={editor:a,enterMode:d.enterMode,triggerOffset:k,holdDistance:0|k*(d.magicline_holdDistance||0.5),boxColor:d.magicline_color||"#ff0000",rtl:d.contentsLangDirection=="rtl",tabuList:["data-cke-hidden-sel"].concat(d.magicline_tabuList|| -[]),triggers:d.magicline_everywhere?L:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},p,G,I;n.isRelevant=function(a){return g(a)&&!c(n,a)&&!l(a)};a.on("contentDom",function(){var g=a.editable(),k=a.document,l=a.window;s(n,{editable:g,inInlineMode:g.isInline(),doc:k,win:l,hotNode:null},true);n.boundary=n.inInlineMode?n.editable:n.doc.getDocumentElement();if(!g.is(D.$inline)){n.inInlineMode&&!q(g)&&g.setStyles({position:"relative",top:null,left:null});j.call(this,n);w(n);g.attachListener(a, -"beforeUndoImage",function(){n.line.detach()});g.attachListener(a,"beforeGetData",function(){if(n.line.wrap.getParent()){n.line.detach();a.once("getData",function(){n.line.attach()},null,null,1E3)}},null,null,0);g.attachListener(n.inInlineMode?k:k.getWindow().getFrame(),"mouseout",function(c){if(a.mode=="wysiwyg")if(n.inInlineMode){var b=c.data.$.clientX,c=c.data.$.clientY;w(n);v(n,true);var e=n.view.editable,d=n.view.scroll;if(!(b>e.left-d.x&&b<e.right-d.x)||!(c>e.top-d.y&&c<e.bottom-d.y)){clearTimeout(I); -I=null;n.line.detach()}}else{clearTimeout(I);I=null;n.line.detach()}});g.attachListener(g,"keyup",function(){n.hiddenMode=0});g.attachListener(g,"keydown",function(c){if(a.mode=="wysiwyg")switch(c.data.getKeystroke()){case 2228240:case 16:n.hiddenMode=1;n.line.detach()}});g.attachListener(n.inInlineMode?g:k,"mousemove",function(c){G=true;if(!(a.mode!="wysiwyg"||a.readOnly||I)){var b={x:c.data.$.clientX,y:c.data.$.clientY};I=setTimeout(function(){n.mouse=b;I=n.trigger=null;w(n);if(G&&!n.hiddenMode&& -a.focusManager.hasFocus&&!n.line.mouseNear()&&(n.element=da(n,true))){if((n.trigger=m(n)||r(n)||$(n))&&!o(n,n.trigger.upper||n.trigger.lower))n.line.attach().place();else{n.trigger=null;n.line.detach()}G=false}},30)}});g.attachListener(l,"scroll",function(){if(a.mode=="wysiwyg"){n.line.detach();if(B.webkit){n.hiddenMode=1;clearTimeout(p);p=setTimeout(function(){if(!n.mouseDown)n.hiddenMode=0},50)}}});g.attachListener(A?k:l,"mousedown",function(){if(a.mode=="wysiwyg"){n.line.detach();n.hiddenMode= -1;n.mouseDown=1}});g.attachListener(A?k:l,"mouseup",function(){n.hiddenMode=0;n.mouseDown=0});a.addCommand("accessPreviousSpace",e(n));a.addCommand("accessNextSpace",e(n,true));a.setKeystroke([[d.magicline_keystrokePrevious,"accessPreviousSpace"],[d.magicline_keystrokeNext,"accessNextSpace"]]);a.on("loadSnapshot",function(){var c,b,e,d;for(d in{p:1,br:1,div:1}){c=a.document.getElementsByTag(d);for(e=c.count();e--;)if((b=c.getItem(e)).data("cke-magicline-hot")){n.hotNode=b;n.lastCmdDirection=b.data("cke-magicline-dir")=== -"true"?true:false;return}}});this.backdoor={accessFocusSpace:i,boxTrigger:f,isLine:c,getAscendantTrigger:b,getNonEmptyNeighbour:h,getSize:u,that:n,triggerEdge:r,triggerEditable:m,triggerExpand:$}}},this)}});var s=CKEDITOR.tools.extend,z=CKEDITOR.dom.element,x=z.createFromHtml,B=CKEDITOR.env,A=CKEDITOR.env.ie&&CKEDITOR.env.version<9,D=CKEDITOR.dtd,C={},J=128,E=64,F=32,M=16,H=8,N=4,K=2,U=1,S=" ",O=D.$listItem,Z=D.$tableContent,P=s({},D.$nonEditable,D.$empty),L=D.$block,I=100,G="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;", -Q=G+"border-color:transparent;display:block;border-style:solid;",R="<span>"+S+"</span>";C[CKEDITOR.ENTER_BR]="br";C[CKEDITOR.ENTER_P]="p";C[CKEDITOR.ENTER_DIV]="div";f.prototype={set:function(a,c,b){this.properties=a+c+(b||U);return this},is:function(a){return(this.properties&a)==a}};var da=function(){function a(c,b){var e=c.$.elementFromPoint(b.x,b.y);return e&&e.nodeType?new CKEDITOR.dom.element(e):null}return function(b,e,d){if(!b.mouse)return null;var g=b.doc,f=b.line.wrap,d=d||b.mouse,h=a(g, -d);if(e&&c(b,h)){f.hide();h=a(g,d);f.show()}return!h||!(h.type==CKEDITOR.NODE_ELEMENT&&h.$)||B.ie&&B.version<9&&!b.boundary.equals(h)&&!b.boundary.contains(h)?null:h}}(),V=CKEDITOR.dom.walker.whitespaces(),W=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),$=function(){function b(c){var f=c.element,h,i,j;if(!g(f)||f.contains(c.editable)||f.isReadOnly())return null;j=t(c,function(a,c){return!c.equals(a)},function(a,c){return da(a,true,c)},f);h=j.upper;i=j.lower;if(a(c,h,i))return j.set(F,H);if(h&& -f.contains(h))for(;!h.getParent().equals(f);)h=h.getParent();else h=f.getFirst(function(a){return e(c,a)});if(i&&f.contains(i))for(;!i.getParent().equals(f);)i=i.getParent();else i=f.getLast(function(a){return e(c,a)});if(!h||!i)return null;y(c,h);y(c,i);if(!(c.mouse.y>h.size.top&&c.mouse.y<i.size.bottom))return null;for(var f=Number.MAX_VALUE,k,m,l,n;i&&!i.equals(h);){if(!(m=h.getNext(c.isRelevant)))break;k=Math.abs(d(c,h,m)-c.mouse.y);if(k<f){f=k;l=h;n=m}h=m;y(c,h)}if(!l||!n||!(c.mouse.y>l.size.top&& -c.mouse.y<n.size.bottom))return null;j.upper=l;j.lower=n;return j.set(F,H)}function e(a,b){return!(b&&b.type==CKEDITOR.NODE_TEXT||W(b)||l(b)||c(a,b)||b.type==CKEDITOR.NODE_ELEMENT&&b.$&&b.is("br"))}return function(c){var e=b(c),d;if(d=e){d=e.upper;var g=e.lower;d=!d||!g||l(g)||l(d)||g.equals(d)||d.equals(g)||g.contains(d)||d.contains(g)?false:n(c,d)&&n(c,g)&&a(c,d,g)?true:false}return d?e:null}}(),T=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+ -51,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52,function(){function a(a){if(!a||a.type!=CKEDITOR.NODE_ELEMENT||a.getName()!="form")return[];for(var b=[],d=["style","className"],e=0;e<d.length;e++){var c=a.$.elements.namedItem(d[e]);if(c){c=new CKEDITOR.dom.element(c);b.push([c,c.nextSibling]);c.remove()}}return b}function f(a,b){if(a&&!(a.type!=CKEDITOR.NODE_ELEMENT||a.getName()!="form")&&b.length>0)for(var d=b.length-1;d>=0;d--){var e=b[d][0],c=b[d][1];c?e.insertBefore(c): -e.appendTo(a)}}function b(b,d){var h=a(b),e={},c=b.$;if(!d){e["class"]=c.className||"";c.className=""}e.inline=c.style.cssText||"";if(!d)c.style.cssText="position: static; overflow: visible";f(h);return e}function d(b,d){var h=a(b),e=b.$;if("class"in d)e.className=d["class"];if("inline"in d)e.style.cssText=d.inline;f(h)}function h(a){if(!a.editable().isInline()){var b=CKEDITOR.instances,d;for(d in b){var e=b[d];if(e.mode=="wysiwyg"&&!e.readOnly){e=e.document.getBody();e.setAttribute("contentEditable", -false);e.setAttribute("contentEditable",true)}}if(a.editable().hasFocus){a.toolbox.focus();a.focus()}}}CKEDITOR.plugins.add("maximize",{init:function(a){function f(){var b=c.getViewPaneSize();a.resize(b.width,b.height,null,true)}if(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var i=a.lang,e=CKEDITOR.document,c=e.getWindow(),g,l,q,n=CKEDITOR.TRISTATE_OFF;a.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:false,exec:function(){var o=a.container.getFirst(function(a){return a.type== -CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}),p=a.ui.space("contents");if(a.mode=="wysiwyg"){var m=a.getSelection();g=m&&m.getRanges();l=c.getScrollPosition()}else{var r=a.editable().$;g=!CKEDITOR.env.ie&&[r.selectionStart,r.selectionEnd];l=[r.scrollLeft,r.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){c.on("resize",f);q=c.getScrollPosition();for(m=a.container;m=m.getParent();){m.setCustomData("maximize_saved_styles",b(m));m.setStyle("z-index",a.config.baseFloatZIndex-5)}p.setCustomData("maximize_saved_styles", -b(p,true));o.setCustomData("maximize_saved_styles",b(o,true));p={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};e.getDocumentElement().setStyles(p);!CKEDITOR.env.gecko&&e.getDocumentElement().setStyle("position","fixed");(!CKEDITOR.env.gecko||!CKEDITOR.env.quirks)&&e.getBody().setStyles(p);CKEDITOR.env.ie?setTimeout(function(){c.$.scrollTo(0,0)},0):c.$.scrollTo(0,0);o.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute");o.$.offsetLeft;o.setStyles({"z-index":a.config.baseFloatZIndex- -5,left:"0px",top:"0px"});o.addClass("cke_maximized");f();p=o.getDocumentPosition();o.setStyles({left:-1*p.x+"px",top:-1*p.y+"px"});CKEDITOR.env.gecko&&h(a)}else if(this.state==CKEDITOR.TRISTATE_ON){c.removeListener("resize",f);for(var m=[p,o],u=0;u<m.length;u++){d(m[u],m[u].getCustomData("maximize_saved_styles"));m[u].removeCustomData("maximize_saved_styles")}for(m=a.container;m=m.getParent();){d(m,m.getCustomData("maximize_saved_styles"));m.removeCustomData("maximize_saved_styles")}CKEDITOR.env.ie? -setTimeout(function(){c.$.scrollTo(q.x,q.y)},0):c.$.scrollTo(q.x,q.y);o.removeClass("cke_maximized");if(CKEDITOR.env.webkit){o.setStyle("display","inline");setTimeout(function(){o.setStyle("display","block")},0)}a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:p.$.offsetHeight,outerWidth:a.container.$.offsetWidth})}this.toggleState();if(m=this.uiItems[0]){p=this.state==CKEDITOR.TRISTATE_OFF?i.maximize.maximize:i.maximize.minimize;m=CKEDITOR.document.getById(m._.id);m.getChild(1).setHtml(p); -m.setAttribute("title",p);m.setAttribute("href",'javascript:void("'+p+'");')}if(a.mode=="wysiwyg")if(g){CKEDITOR.env.gecko&&h(a);a.getSelection().selectRanges(g);(r=a.getSelection().getStartElement())&&r.scrollIntoView(true)}else c.$.scrollTo(l.x,l.y);else{if(g){r.selectionStart=g[0];r.selectionEnd=g[1]}r.scrollLeft=l[0];r.scrollTop=l[1]}g=l=null;n=this.state;a.fire("maximize",this.state)},canUndo:false});a.ui.addButton&&a.ui.addButton("Maximize",{label:i.maximize.maximize,command:"maximize",toolbar:"tools,10"}); -a.on("mode",function(){var c=a.getCommand("maximize");c.setState(c.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:n)},null,null,100)}}})}(),function(){var a={canUndo:false,async:true,exec:function(f){f.getClipboardData({title:f.lang.pastetext.title},function(b){b&&f.fire("paste",{type:"text",dataValue:b.dataValue,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()});f.fire("afterCommandExec",{name:"pastetext",command:a,returnValue:!!b})})}};CKEDITOR.plugins.add("pastetext", -{requires:"clipboard",init:function(f){f.addCommand("pastetext",a);f.ui.addButton&&f.ui.addButton("PasteText",{label:f.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(f.config.forcePasteAsPlainText)f.on("beforePaste",function(a){if(a.data.type!="html")a.data.type="text"});f.on("pasteState",function(a){f.getCommand("pastetext").setState(a.data)})}})}(),function(){function a(a,d,f){var k=CKEDITOR.cleanWord;if(k)f();else{a=CKEDITOR.getUrl(a.config.pasteFromWordCleanupFile||d+"filter/default.js"); -CKEDITOR.scriptLoader.load(a,f,null,true)}return!k}function f(a){a.data.type="html"}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(b){var d=0,h=this.path;b.addCommand("pastefromword",{canUndo:false,async:true,exec:function(a){var b=this;d=1;a.once("beforePaste",f);a.getClipboardData({title:a.lang.pastefromword.title},function(d){d&&a.fire("paste",{type:"html",dataValue:d.dataValue,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()});a.fire("afterCommandExec", -{name:"pastefromword",command:b,returnValue:!!d})})}});b.ui.addButton&&b.ui.addButton("PasteFromWord",{label:b.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});b.on("pasteState",function(a){b.getCommand("pastefromword").setState(a.data)});b.on("paste",function(f){var j=f.data,i=j.dataValue;if(i&&(d||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(i))){j.dontFilter=true;var e=a(b,h,function(){if(e)b.fire("paste",j);else if(!b.config.pasteFromWordPromptCleanup|| -d||confirm(b.lang.pastefromword.confirmCleanup))j.dataValue=CKEDITOR.cleanWord(i,b);d=0});e&&f.cancel()}},null,null,3)}})}(),CKEDITOR.plugins.add("removeformat",{init:function(a){a.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);a.ui.addButton&&a.ui.addButton("RemoveFormat",{label:a.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(a){for(var f=a._.removeFormatRegex||(a._.removeFormatRegex= -RegExp("^(?:"+a.config.removeFormatTags.replace(/,/g,"|")+")$","i")),b=a._.removeAttributes||(a._.removeAttributes=a.config.removeFormatAttributes.split(",")),d=CKEDITOR.plugins.removeformat.filter,h=a.getSelection().getRanges(),k=h.createIterator(),j=function(a){return a.type==CKEDITOR.NODE_ELEMENT},i;i=k.getNextRange();){i.collapsed||i.enlarge(CKEDITOR.ENLARGE_ELEMENT);var e=i.createBookmark(),c=e.startNode,g=e.endNode,l=function(c){for(var b=a.elementPath(c),e=b.elements,g=1,h;h=e[g];g++){if(h.equals(b.block)|| -h.equals(b.blockLimit))break;f.test(h.getName())&&d(a,h)&&c.breakParent(h)}};l(c);if(g){l(g);for(c=c.getNextSourceNode(true,CKEDITOR.NODE_ELEMENT);c;){if(c.equals(g))break;if(c.isReadOnly()){if(c.getPosition(g)&CKEDITOR.POSITION_CONTAINS)break;c=c.getNext(j)}else{l=c.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT);if(!(c.getName()=="img"&&c.data("cke-realelement"))&&d(a,c))if(f.test(c.getName()))c.remove(1);else{c.removeAttributes(b);a.fire("removeFormatCleanup",c)}c=l}}}i.moveToBookmark(e)}a.forceNextSelectionCheck(); -a.getSelection().selectRanges(h)}}},filter:function(a,f){for(var b=a._.removeFormatFilters||[],d=0;d<b.length;d++)if(b[d](f)===false)return false;return true}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(a){if(!this._.removeFormatFilters)this._.removeFormatFilters=[];this._.removeFormatFilters.push(a)},CKEDITOR.config.removeFormatTags="b,big,cite,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var",CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign", -function(){CKEDITOR.plugins.add("sourcearea",{init:function(f){function b(){var a=h&&this.equals(CKEDITOR.document.getActive());this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+"px");this.show();a&&this.focus()}if(f.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var d=CKEDITOR.plugins.sourcearea;f.addMode("source",function(d){var h=f.ui.space("contents").getDocument().createElement("textarea");h.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat? -"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",f.config.sourceAreaTabSize||4)));h.setAttribute("dir","ltr");h.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu");f.ui.space("contents").append(h);h=f.editable(new a(f,h));h.setData(f.getData(1));if(CKEDITOR.env.ie){h.attachListener(f,"resize",b,h);h.attachListener(CKEDITOR.document.getWindow(),"resize",b,h);CKEDITOR.tools.setTimeout(b,0,h)}f.fire("ariaWidget", -this);d()});f.addCommand("source",d.commands.source);f.ui.addButton&&f.ui.addButton("Source",{label:f.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});f.on("mode",function(){f.getCommand("source").setState(f.mode=="source"?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var h=CKEDITOR.env.ie&&CKEDITOR.env.version==9}}});var a=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(a){this.setValue(a);this.status="ready";this.editor.fire("dataReady")},getData:function(){return this.getValue()}, -insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(a){this[(a?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){a.baseProto.detach.call(this);this.clearCustomData();this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(a){a.mode=="wysiwyg"&&a.fire("saveSnapshot");a.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);a.setMode(a.mode=="source"?"wysiwyg": -"source")},canUndo:!1}}},CKEDITOR.plugins.add("specialchar",{availableLangs:{af:1,ar:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,en:1,"en-gb":1,eo:1,es:1,et:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,nb:1,nl:1,no:1,pl:1,pt:1,"pt-br":1,ru:1,si:1,sk:1,sl:1,sq:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},requires:"dialog",init:function(a){var f=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");a.addCommand("specialchar",{exec:function(){var b= -a.langCode,b=f.availableLangs[b]?b:f.availableLangs[b.replace(/-.*/,"")]?b.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(f.path+"dialogs/lang/"+b+".js"),function(){CKEDITOR.tools.extend(a.lang.specialchar,f.langEntries[b]);a.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:false});a.ui.addButton&&a.ui.addButton("SpecialChar",{label:a.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! " # $ % & ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ € ‘ ’ “ ” – — ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ Œ œ Ŵ Ŷ ŵ ŷ ‚ ‛ „ … ™ ► • → ⇒ ⇔ ♦ ≈".split(" "), -function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(a){var f=a.config,b=a.lang.stylescombo,d={},h=[],k=[];a.on("stylesSet",function(b){if(b=b.data.styles){for(var i,e,c,g=0,l=b.length;g<l;g++){i=b[g];if(!(a.blockless&&i.element in CKEDITOR.dtd.$block)){e=i.name;i=new CKEDITOR.style(i);if(!a.filter.customConfig||a.filter.check(i)){i._name=e;i._.enterMode=f.enterMode;i._.type=c=i.assignedTo||i.type;i._.weight=g+(c==CKEDITOR.STYLE_OBJECT?1:c==CKEDITOR.STYLE_BLOCK?2:3)*1E3; -d[e]=i;h.push(i);k.push(i)}}}h.sort(function(a,c){return a._.weight-c._.weight})}});a.ui.addRichCombo("Styles",{label:b.label,title:b.panelTitle,toolbar:"styles,10",allowedContent:k,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(f.contentsCss),multiSelect:true,attributes:{"aria-label":b.panelTitle}},init:function(){var a,d,e,c,g,f;g=0;for(f=h.length;g<f;g++){a=h[g];d=a._name;c=a._.type;if(c!=e){this.startGroup(b["panelTitle"+c]);e=c}this.add(d,a.type==CKEDITOR.STYLE_OBJECT?d:a.buildPreview(), -d)}this.commit()},onClick:function(b){a.focus();a.fire("saveSnapshot");var b=d[b],f=a.elementPath();a[b.checkActive(f,a)?"removeStyle":"applyStyle"](b);a.fire("saveSnapshot")},onRender:function(){a.on("selectionChange",function(b){for(var f=this.getValue(),b=b.data.path.elements,e=0,c=b.length,g;e<c;e++){g=b[e];for(var h in d)if(d[h].checkElementRemovable(g,true,a)){h!=f&&this.setValue(h);return}}this.setValue("")},this)},onOpen:function(){var f=a.getSelection().getSelectedElement(),f=a.elementPath(f), -h=[0,0,0,0];this.showAll();this.unmarkAll();for(var e in d){var c=d[e],g=c._.type;c.checkApplicable(f,a,a.activeFilter)?h[g]++:this.hideItem(e);c.checkActive(f,a)&&this.mark(e)}h[CKEDITOR.STYLE_BLOCK]||this.hideGroup(b["panelTitle"+CKEDITOR.STYLE_BLOCK]);h[CKEDITOR.STYLE_INLINE]||this.hideGroup(b["panelTitle"+CKEDITOR.STYLE_INLINE]);h[CKEDITOR.STYLE_OBJECT]||this.hideGroup(b["panelTitle"+CKEDITOR.STYLE_OBJECT])},refresh:function(){var b=a.elementPath();if(b){for(var f in d)if(d[f].checkApplicable(b, -a,a.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){d={};h=[]}})}})}(),function(){function a(a){return{editorFocus:false,canUndo:false,modes:{wysiwyg:1},exec:function(b){if(b.editable().hasFocus){var d=b.getSelection(),f;if(f=(new CKEDITOR.dom.elementPath(d.getCommonAncestor(),d.root)).contains({td:1,th:1},1)){var d=b.createRange(),e=CKEDITOR.tools.tryThese(function(){var c=f.getParent().$.cells[f.$.cellIndex+(a?-1:1)];c.parentNode.parentNode;return c},function(){var c= -f.getParent(),c=c.getAscendant("table").$.rows[c.$.rowIndex+(a?-1:1)];return c.cells[a?c.cells.length-1:0]});if(!e&&!a){for(var c=f.getAscendant("table").$,e=f.getParent().$.cells,c=new CKEDITOR.dom.element(c.insertRow(-1),b.document),g=0,l=e.length;g<l;g++)c.append((new CKEDITOR.dom.element(e[g],b.document)).clone(false,false)).appendBogus();d.moveToElementEditStart(c)}else if(e){e=new CKEDITOR.dom.element(e);d.moveToElementEditStart(e);(!d.checkStartOfBlock()||!d.checkEndOfBlock())&&d.selectNodeContents(e)}else return true; -d.select(true);return true}}return false}}}var f={editorFocus:false,modes:{wysiwyg:1,source:1}},b={exec:function(a){a.container.focusNext(true,a.tabIndex)}},d={exec:function(a){a.container.focusPrevious(true,a.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(h){for(var k=h.config.enableTabKeyTools!==false,j=h.config.tabSpaces||0,i="";j--;)i=i+" ";if(i)h.on("key",function(a){if(a.data.keyCode==9){h.insertText(i);a.cancel()}});if(k)h.on("key",function(a){(a.data.keyCode==9&&h.execCommand("selectNextCell")|| -a.data.keyCode==CKEDITOR.SHIFT+9&&h.execCommand("selectPreviousCell"))&&a.cancel()});h.addCommand("blur",CKEDITOR.tools.extend(b,f));h.addCommand("blurBack",CKEDITOR.tools.extend(d,f));h.addCommand("selectNextCell",a());h.addCommand("selectPreviousCell",a(true))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(a,f){var b=f===void 0?this.getTabIndex():f,d,h,k,j,i,e;if(b<=0)for(i=this.getNextSourceNode(a,CKEDITOR.NODE_ELEMENT);i;){if(i.isVisible()&&i.getTabIndex()===0){k=i;break}i=i.getNextSourceNode(false, -CKEDITOR.NODE_ELEMENT)}else for(i=this.getDocument().getBody().getFirst();i=i.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT);){if(!d)if(!h&&i.equals(this)){h=true;if(a){if(!(i=i.getNextSourceNode(true,CKEDITOR.NODE_ELEMENT)))break;d=1}}else h&&!this.contains(i)&&(d=1);if(i.isVisible()&&!((e=i.getTabIndex())<0)){if(d&&e==b){k=i;break}if(e>b&&(!k||!j||e<j)){k=i;j=e}else if(!k&&e===0){k=i;j=e}}}k&&k.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(a,f){for(var b=f===void 0?this.getTabIndex(): -f,d,h,k,j=0,i,e=this.getDocument().getBody().getLast();e=e.getPreviousSourceNode(false,CKEDITOR.NODE_ELEMENT);){if(!d)if(!h&&e.equals(this)){h=true;if(a){if(!(e=e.getPreviousSourceNode(true,CKEDITOR.NODE_ELEMENT)))break;d=1}}else h&&!this.contains(e)&&(d=1);if(e.isVisible()&&!((i=e.getTabIndex())<0))if(b<=0){if(d&&i===0){k=e;break}if(i>j){k=e;j=i}}else{if(d&&i==b){k=e;break}if(i<b&&(!k||i>j)){k=e;j=i}}}k&&k.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(a){function f(a){return CKEDITOR.tools.extend(a|| -{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!a.blockless){var b=a.lang.table;a.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];"+(a.plugins.dialogadvtab?"table"+a.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle", -"table[width]: sizeToAttribute"]]}));a.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",f()));a.addCommand("tableDelete",f({exec:function(a){var b=a.elementPath().contains("table",1);if(b){var f=b.getParent(),j=a.editable();f.getChildCount()==1&&(!f.is("td","th")&&!f.equals(j))&&(b=f);a=a.createRange();a.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START);b.remove();a.select()}}}));a.ui.addButton&&a.ui.addButton("Table",{label:b.toolbar,command:"table",toolbar:"insert,30"}); -CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");a.addMenuItems&&a.addMenuItems({table:{label:b.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:b.deleteTable,command:"tableDelete",group:"table",order:1}});a.on("doubleclick",function(a){if(a.data.element.is("table"))a.data.dialog="tableProperties"});a.contextMenu&&a.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}), -function(){function a(a){function c(a){if(!(b.length>0)&&a.type==CKEDITOR.NODE_ELEMENT&&q.test(a.getName())&&!a.getCustomData("selected_cell")){CKEDITOR.dom.element.setMarker(e,a,"selected_cell",true);b.push(a)}}for(var a=a.getRanges(),b=[],e={},d=0;d<a.length;d++){var g=a[d];if(g.collapsed){g=g.getCommonAncestor();(g=g.getAscendant("td",true)||g.getAscendant("th",true))&&b.push(g)}else{var g=new CKEDITOR.dom.walker(g),f;for(g.guard=c;f=g.next();)if(f.type!=CKEDITOR.NODE_ELEMENT||!f.is(CKEDITOR.dtd.table))if((f= -f.getAscendant("td",true)||f.getAscendant("th",true))&&!f.getCustomData("selected_cell")){CKEDITOR.dom.element.setMarker(e,f,"selected_cell",true);b.push(f)}}}CKEDITOR.dom.element.clearAllMarkers(e);return b}function f(c,b){for(var e=a(c),d=e[0],g=d.getAscendant("table"),d=d.getDocument(),f=e[0].getParent(),h=f.$.rowIndex,e=e[e.length-1],i=e.getParent().$.rowIndex+e.$.rowSpan-1,e=new CKEDITOR.dom.element(g.$.rows[i]),h=b?h:i,f=b?f:e,e=CKEDITOR.tools.buildTableMap(g),g=e[h],h=b?e[h-1]:e[h+1],e=e[0].length, -d=d.createElement("tr"),i=0;g[i]&&i<e;i++){var j;if(g[i].rowSpan>1&&h&&g[i]==h[i]){j=g[i];j.rowSpan=j.rowSpan+1}else{j=(new CKEDITOR.dom.element(g[i])).clone();j.removeAttribute("rowSpan");j.appendBogus();d.append(j);j=j.$}i=i+(j.colSpan-1)}b?d.insertBefore(f):d.insertAfter(f)}function b(c){if(c instanceof CKEDITOR.dom.selection){for(var e=a(c),d=e[0].getAscendant("table"),g=CKEDITOR.tools.buildTableMap(d),c=e[0].getParent().$.rowIndex,e=e[e.length-1],f=e.getParent().$.rowIndex+e.$.rowSpan-1,e=[], -h=c;h<=f;h++){for(var i=g[h],j=new CKEDITOR.dom.element(d.$.rows[h]),k=0;k<i.length;k++){var l=new CKEDITOR.dom.element(i[k]),q=l.getParent().$.rowIndex;if(l.$.rowSpan==1)l.remove();else{l.$.rowSpan=l.$.rowSpan-1;if(q==h){q=g[h+1];q[k-1]?l.insertAfter(new CKEDITOR.dom.element(q[k-1])):(new CKEDITOR.dom.element(d.$.rows[h+1])).append(l,1)}}k=k+(l.$.colSpan-1)}e.push(j)}g=d.$.rows;d=new CKEDITOR.dom.element(g[f+1]||(c>0?g[c-1]:null)||d.$.parentNode);for(h=e.length;h>=0;h--)b(e[h]);return d}if(c instanceof -CKEDITOR.dom.element){d=c.getAscendant("table");d.$.rows.length==1?d.remove():c.remove()}return null}function d(a,c){for(var b=c?Infinity:0,e=0;e<a.length;e++){var d;d=a[e];for(var g=c,f=d.getParent().$.cells,h=0,i=0;i<f.length;i++){var j=f[i],h=h+(g?1:j.colSpan);if(j==d.$)break}d=h-1;if(c?d<b:d>b)b=d}return b}function h(c,b){for(var e=a(c),g=e[0].getAscendant("table"),f=d(e,1),e=d(e),f=b?f:e,h=CKEDITOR.tools.buildTableMap(g),g=[],e=[],i=h.length,j=0;j<i;j++){g.push(h[j][f]);e.push(b?h[j][f-1]:h[j][f+ -1])}for(j=0;j<i;j++)if(g[j]){if(g[j].colSpan>1&&e[j]==g[j]){f=g[j];f.colSpan=f.colSpan+1}else{f=(new CKEDITOR.dom.element(g[j])).clone();f.removeAttribute("colSpan");f.appendBogus();f[b?"insertBefore":"insertAfter"].call(f,new CKEDITOR.dom.element(g[j]));f=f.$}j=j+(f.rowSpan-1)}}function k(a,c){var b=a.getStartElement();if(b=b.getAscendant("td",1)||b.getAscendant("th",1)){var e=b.clone();e.appendBogus();c?e.insertBefore(b):e.insertAfter(b)}}function j(c){if(c instanceof CKEDITOR.dom.selection){var c= -a(c),b=c[0]&&c[0].getAscendant("table"),e;a:{var d=0;e=c.length-1;for(var g={},f,h;f=c[d++];)CKEDITOR.dom.element.setMarker(g,f,"delete_cell",true);for(d=0;f=c[d++];)if((h=f.getPrevious())&&!h.getCustomData("delete_cell")||(h=f.getNext())&&!h.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(g);e=h;break a}CKEDITOR.dom.element.clearAllMarkers(g);h=c[0].getParent();if(h=h.getPrevious())e=h.getLast();else{h=c[e].getParent();e=(h=h.getNext())?h.getChild(0):null}}for(h=c.length-1;h>= -0;h--)j(c[h]);e?i(e,true):b&&b.remove()}else if(c instanceof CKEDITOR.dom.element){b=c.getParent();b.getChildCount()==1?b.remove():c.remove()}}function i(a,c){var b=a.getDocument(),e=CKEDITOR.document;if(CKEDITOR.env.ie&&CKEDITOR.env.version==10){e.focus();b.focus()}b=new CKEDITOR.dom.range(b);if(!b["moveToElementEdit"+(c?"End":"Start")](a)){b.selectNodeContents(a);b.collapse(c?false:true)}b.select(true)}function e(a,c,b){a=a[c];if(typeof b=="undefined")return a;for(c=0;a&&c<a.length;c++){if(b.is&& -a[c]==b.$)return c;if(c==b)return new CKEDITOR.dom.element(a[c])}return b.is?-1:null}function c(c,b,d){var g=a(c),f;if((b?g.length!=1:g.length<2)||(f=c.getCommonAncestor())&&f.type==CKEDITOR.NODE_ELEMENT&&f.is("table"))return false;var h,c=g[0];f=c.getAscendant("table");var i=CKEDITOR.tools.buildTableMap(f),j=i.length,k=i[0].length,l=c.getParent().$.rowIndex,q=e(i,l,c);if(b){var z;try{var x=parseInt(c.getAttribute("rowspan"),10)||1;h=parseInt(c.getAttribute("colspan"),10)||1;z=i[b=="up"?l-x:b=="down"? -l+x:l][b=="left"?q-h:b=="right"?q+h:q]}catch(B){return false}if(!z||c.$==z)return false;g[b=="up"||b=="left"?"unshift":"push"](new CKEDITOR.dom.element(z))}for(var b=c.getDocument(),A=l,x=z=0,D=!d&&new CKEDITOR.dom.documentFragment(b),C=0,b=0;b<g.length;b++){h=g[b];var J=h.getParent(),E=h.getFirst(),F=h.$.colSpan,M=h.$.rowSpan,J=J.$.rowIndex,H=e(i,J,h),C=C+F*M,x=Math.max(x,H-q+F);z=Math.max(z,J-l+M);if(!d){F=h;(M=F.getBogus())&&M.remove();F.trim();if(h.getChildren().count()){if(J!=A&&E&&(!E.isBlockBoundary|| -!E.isBlockBoundary({br:1})))(A=D.getLast(CKEDITOR.dom.walker.whitespaces(true)))&&(!A.is||!A.is("br"))&&D.append("br");h.moveChildren(D)}b?h.remove():h.setHtml("")}A=J}if(d)return z*x==C;D.moveChildren(c);c.appendBogus();x>=k?c.removeAttribute("rowSpan"):c.$.rowSpan=z;z>=j?c.removeAttribute("colSpan"):c.$.colSpan=x;d=new CKEDITOR.dom.nodeList(f.$.rows);g=d.count();for(b=g-1;b>=0;b--){f=d.getItem(b);if(!f.$.cells.length){f.remove();g++}}return c}function g(c,b){var d=a(c);if(d.length>1)return false; -if(b)return true;var d=d[0],g=d.getParent(),f=g.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(f),i=g.$.rowIndex,j=e(h,i,d),k=d.$.rowSpan,l;if(k>1){l=Math.ceil(k/2);for(var k=Math.floor(k/2),g=i+l,f=new CKEDITOR.dom.element(f.$.rows[g]),h=e(h,g),q,g=d.clone(),i=0;i<h.length;i++){q=h[i];if(q.parentNode==f.$&&i>j){g.insertBefore(new CKEDITOR.dom.element(q));break}else q=null}q||f.append(g)}else{k=l=1;f=g.clone();f.insertAfter(g);f.append(g=d.clone());q=e(h,i);for(j=0;j<q.length;j++)q[j].rowSpan++}g.appendBogus(); -d.$.rowSpan=l;g.$.rowSpan=k;l==1&&d.removeAttribute("rowSpan");k==1&&g.removeAttribute("rowSpan");return g}function l(c,b){var d=a(c);if(d.length>1)return false;if(b)return true;var d=d[0],g=d.getParent(),f=g.getAscendant("table"),f=CKEDITOR.tools.buildTableMap(f),h=e(f,g.$.rowIndex,d),i=d.$.colSpan;if(i>1){g=Math.ceil(i/2);i=Math.floor(i/2)}else{for(var i=g=1,j=[],k=0;k<f.length;k++){var l=f[k];j.push(l[h]);l[h].rowSpan>1&&(k=k+(l[h].rowSpan-1))}for(f=0;f<j.length;f++)j[f].colSpan++}f=d.clone(); -f.insertAfter(d);f.appendBogus();d.$.colSpan=g;f.$.colSpan=i;g==1&&d.removeAttribute("colSpan");i==1&&f.removeAttribute("colSpan");return f}var q=/^(?:td|th)$/;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(e){function d(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,c){this.setState(c.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function q(a,c){var b=e.addCommand(a,c);e.addFeature(b)}var m=e.lang.table; -q("cellProperties",new CKEDITOR.dialogCommand("cellProperties",d({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",requiredContent:"table"})));CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js");q("rowDelete",d({requiredContent:"table",exec:function(a){a=a.getSelection();i(b(a))}}));q("rowInsertBefore",d({requiredContent:"table",exec:function(a){a=a.getSelection();f(a,true)}}));q("rowInsertAfter",d({requiredContent:"table", -exec:function(a){a=a.getSelection();f(a)}}));q("columnDelete",d({requiredContent:"table",exec:function(c){for(var c=c.getSelection(),c=a(c),b=c[0],e=c[c.length-1],c=b.getAscendant("table"),d=CKEDITOR.tools.buildTableMap(c),g,f,h=[],j=0,k=d.length;j<k;j++)for(var l=0,m=d[j].length;l<m;l++){d[j][l]==b.$&&(g=l);d[j][l]==e.$&&(f=l)}for(j=g;j<=f;j++)for(l=0;l<d.length;l++){e=d[l];b=new CKEDITOR.dom.element(c.$.rows[l]);e=new CKEDITOR.dom.element(e[j]);if(e.$){e.$.colSpan==1?e.remove():e.$.colSpan=e.$.colSpan- -1;l=l+(e.$.rowSpan-1);b.$.cells.length||h.push(b)}}f=c.$.rows[0]&&c.$.rows[0].cells;g=new CKEDITOR.dom.element(f[g]||(g?f[g-1]:c.$.parentNode));h.length==k&&c.remove();g&&i(g,true)}}));q("columnInsertBefore",d({requiredContent:"table",exec:function(a){a=a.getSelection();h(a,true)}}));q("columnInsertAfter",d({requiredContent:"table",exec:function(a){a=a.getSelection();h(a)}}));q("cellDelete",d({requiredContent:"table",exec:function(a){a=a.getSelection();j(a)}}));q("cellMerge",d({allowedContent:"td[colspan,rowspan]", -requiredContent:"td[colspan,rowspan]",exec:function(a){i(c(a.getSelection()),true)}}));q("cellMergeRight",d({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){i(c(a.getSelection(),"right"),true)}}));q("cellMergeDown",d({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){i(c(a.getSelection(),"down"),true)}}));q("cellVerticalSplit",d({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){i(l(a.getSelection()))}}));q("cellHorizontalSplit", -d({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){i(g(a.getSelection()))}}));q("cellInsertBefore",d({requiredContent:"table",exec:function(a){a=a.getSelection();k(a,true)}}));q("cellInsertAfter",d({requiredContent:"table",exec:function(a){a=a.getSelection();k(a)}}));e.addMenuItems&&e.addMenuItems({tablecell:{label:m.cell.menu,group:"tablecell",order:1,getItems:function(){var b=e.getSelection(),d=a(b);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF, -tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:c(b,null,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:c(b,"right",true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:c(b,"down",true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:l(b,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:g(b,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:d.length>0?CKEDITOR.TRISTATE_OFF: -CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:m.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:m.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:m.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:m.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:m.cell.mergeRight,group:"tablecell",command:"cellMergeRight", -order:17},tablecell_merge_down:{label:m.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:m.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:m.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:m.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:m.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF, -tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:m.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:m.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:m.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:m.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF, -tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:m.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:m.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:m.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}});e.contextMenu&&e.contextMenu.addListener(function(a,c,b){return(a=b.contains({td:1,th:1}, -1))&&!a.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getSelectedCells:a};CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(a){for(var a=a.$.rows,f=-1,b=[],d=0;d<a.length;d++){f++;!b[f]&&(b[f]=[]);for(var h=-1,k=0;k<a[d].cells.length;k++){var j=a[d].cells[k];for(h++;b[f][h];)h++;for(var i=isNaN(j.colSpan)?1:j.colSpan,j=isNaN(j.rowSpan)?1:j.rowSpan,e=0;e<j;e++){b[f+e]||(b[f+ -e]=[]);for(var c=0;c<i;c++)b[f+e][h+c]=a[d].cells[k]}h=h+(i-1)}}return b},"use strict",function(){var a=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SHIFT+90],f={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(d){function e(a){g.enabled&&a.data.command.canUndo!==false&&g.save()}function c(){g.enabled=d.readOnly?false:d.mode=="wysiwyg";g.onChange()}var g=d.undoManager=new b(d),f=g.editingHandler=new k(g),h=d.addCommand("undo",{exec:function(){if(g.undo()){d.selectionChange();this.fire("afterUndo")}}, -startDisabled:true,canUndo:false}),j=d.addCommand("redo",{exec:function(){if(g.redo()){d.selectionChange();this.fire("afterRedo")}},startDisabled:true,canUndo:false});d.setKeystroke([[a[0],"undo"],[a[1],"redo"],[a[2],"redo"]]);g.onChange=function(){h.setState(g.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);j.setState(g.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};d.on("beforeCommandExec",e);d.on("afterCommandExec",e);d.on("saveSnapshot",function(a){g.save(a.data&&a.data.contentOnly)}); -d.on("contentDom",f.attachListeners,f);d.on("instanceReady",function(){d.fire("saveSnapshot")});d.on("beforeModeUnload",function(){d.mode=="wysiwyg"&&g.save(true)});d.on("mode",c);d.on("readOnly",c);if(d.ui.addButton){d.ui.addButton("Undo",{label:d.lang.undo.undo,command:"undo",toolbar:"undo,10"});d.ui.addButton("Redo",{label:d.lang.undo.redo,command:"redo",toolbar:"undo,20"})}d.resetUndo=function(){g.reset();d.fire("saveSnapshot")};d.on("updateSnapshot",function(){g.currentImage&&g.update()});d.on("lockSnapshot", -function(a){a=a.data;g.lock(a&&a.dontUpdate,a&&a.forceUpdate)});d.on("unlockSnapshot",g.unlock,g)}});CKEDITOR.plugins.undo={};var b=CKEDITOR.plugins.undo.UndoManager=function(a){this.strokesRecorded=[0,0];this.locked=null;this.previousKeyGroup=-1;this.limit=a.config.undoStackSize||20;this.strokesLimit=25;this.editor=a;this.reset()};b.prototype={type:function(a,d){var c=b.getKeyGroup(a),g=this.strokesRecorded[c]+1,d=d||g>=this.strokesLimit;if(!this.typing){this.hasUndo=this.typing=true;this.hasRedo= -false;this.onChange()}if(d){g=0;this.editor.fire("saveSnapshot")}else this.editor.fire("change");this.strokesRecorded[c]=g;this.previousKeyGroup=c},keyGroupChanged:function(a){return b.getKeyGroup(a)!=this.previousKeyGroup},reset:function(){this.snapshots=[];this.index=-1;this.currentImage=null;this.hasRedo=this.hasUndo=false;this.locked=null;this.resetType()},resetType:function(){this.strokesRecorded=[0,0];this.typing=false;this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(true); -this.hasRedo=!!this.getNextImage(false);this.resetType();this.onChange()},save:function(a,b,c){var g=this.editor;if(this.locked||g.status!="ready"||g.mode!="wysiwyg")return false;var f=g.editable();if(!f||f.status!="ready")return false;f=this.snapshots;b||(b=new d(g));if(b.contents===false)return false;if(this.currentImage)if(b.equalsContent(this.currentImage)){if(a||b.equalsSelection(this.currentImage))return false}else c!==false&&g.fire("change");f.splice(this.index+1,f.length-this.index-1);f.length== -this.limit&&f.shift();this.index=f.push(b)-1;this.currentImage=b;c!==false&&this.refreshState();return true},restoreImage:function(a){var b=this.editor,c;if(a.bookmarks){b.focus();c=b.getSelection()}this.locked={level:999};this.editor.loadSnapshot(a.contents);if(a.bookmarks)c.selectBookmarks(a.bookmarks);else if(CKEDITOR.env.ie){c=this.editor.document.getBody().$.createTextRange();c.collapse(true);c.select()}this.locked=null;this.index=a.index;this.currentImage=this.snapshots[this.index];this.update(); -this.refreshState();b.fire("change")},getNextImage:function(a){var b=this.snapshots,c=this.currentImage,d;if(c)if(a)for(d=this.index-1;d>=0;d--){a=b[d];if(!c.equalsContent(a)){a.index=d;return a}}else for(d=this.index+1;d<b.length;d++){a=b[d];if(!c.equalsContent(a)){a.index=d;return a}}return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(true);var a=this.getNextImage(true);if(a)return this.restoreImage(a), -true}return false},redo:function(){if(this.redoable()){this.save(true);if(this.redoable()){var a=this.getNextImage(false);if(a)return this.restoreImage(a),true}}return false},update:function(a){if(!this.locked){a||(a=new d(this.editor));for(var b=this.index,c=this.snapshots;b>0&&this.currentImage.equalsContent(c[b-1]);)b=b-1;c.splice(b,this.index-b+1,a);this.index=b;this.currentImage=a}},updateSelection:function(a){if(!this.snapshots.length)return false;var b=this.snapshots,c=b[b.length-1];if(c.equalsContent(a)&& -!c.equalsSelection(a)){this.currentImage=b[b.length-1]=a;return true}return false},lock:function(a,b){if(this.locked)this.locked.level++;else if(a)this.locked={level:1};else{var c=null;if(b)c=true;else{var g=new d(this.editor,true);this.currentImage&&this.currentImage.equalsContent(g)&&(c=g)}this.locked={update:c,level:1}}},unlock:function(){if(this.locked&&!--this.locked.level){var a=this.locked.update;this.locked=null;if(a===true)this.update();else if(a){var b=new d(this.editor,true);a.equalsContent(b)|| -this.update()}}}};b.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1};b.keyGroups={PRINTABLE:0,FUNCTIONAL:1};b.isNavigationKey=function(a){return!!b.navigationKeyCodes[a]};b.getKeyGroup=function(a){var d=b.keyGroups;return f[a]?d.FUNCTIONAL:d.PRINTABLE};b.getOppositeKeyGroup=function(a){var d=b.keyGroups;return a==d.FUNCTIONAL?d.PRINTABLE:d.FUNCTIONAL};b.ieFunctionalKeysBug=function(a){return CKEDITOR.env.ie&&b.getKeyGroup(a)==b.keyGroups.FUNCTIONAL};var d=CKEDITOR.plugins.undo.Image=function(a, -b){this.editor=a;a.fire("beforeUndoImage");var c=a.getSnapshot();CKEDITOR.env.ie&&c&&(c=c.replace(/\s+data-cke-expando=".*?"/g,""));this.contents=c;if(!b)this.bookmarks=(c=c&&a.getSelection())&&c.createBookmarks2(true);a.fire("afterUndoImage")},h=/\b(?:href|src|name)="[^"]*?"/gi;d.prototype={equalsContent:function(a){var b=this.contents,a=a.contents;if(CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)){b=b.replace(h,"");a=a.replace(h,"")}return b!=a?false:true},equalsSelection:function(a){var b= -this.bookmarks,a=a.bookmarks;if(b||a){if(!b||!a||b.length!=a.length)return false;for(var c=0;c<b.length;c++){var d=b[c],f=a[c];if(d.startOffset!=f.startOffset||d.endOffset!=f.endOffset||!CKEDITOR.tools.arrayCompare(d.start,f.start)||!CKEDITOR.tools.arrayCompare(d.end,f.end))return false}}return true}};var k=CKEDITOR.plugins.undo.NativeEditingHandler=function(a){this.undoManager=a;this.ignoreInputEvent=false;this.keyEventsStack=new j;this.lastKeydownImage=null};k.prototype={onKeydown:function(f){var e= -f.data.getKey();if(e!==229)if(CKEDITOR.tools.indexOf(a,f.data.getKeystroke())>-1)f.data.preventDefault();else{this.keyEventsStack.cleanUp(f);f=this.undoManager;this.keyEventsStack.getLast(e)||this.keyEventsStack.push(e);this.lastKeydownImage=new d(f.editor);if(b.isNavigationKey(e)||this.undoManager.keyGroupChanged(e))if(f.strokesRecorded[0]||f.strokesRecorded[1]){f.save(false,this.lastKeydownImage,false);f.resetType()}}},onInput:function(){if(this.ignoreInputEvent)this.ignoreInputEvent=false;else{var a= -this.keyEventsStack.getLast();a||(a=this.keyEventsStack.push(0));this.keyEventsStack.increment(a.keyCode);if(this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit){this.undoManager.type(a.keyCode,true);this.keyEventsStack.resetInputs()}}},onKeyup:function(a){var e=this.undoManager,a=a.data.getKey(),c=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(a);if(!b.ieFunctionalKeysBug(a)||!this.lastKeydownImage||!this.lastKeydownImage.equalsContent(new d(e.editor,true)))if(c> -0)e.type(a);else if(b.isNavigationKey(a))this.onNavigationKey(true)},onNavigationKey:function(a){var b=this.undoManager;(a||!b.save(true,null,false))&&b.updateSelection(new d(b.editor));b.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=true},attachListeners:function(){var a=this.undoManager.editor,d=a.editable(),c=this;d.attachListener(d,"keydown",function(a){c.onKeydown(a);if(b.ieFunctionalKeysBug(a.data.getKey()))c.onInput()},null,null,999);d.attachListener(d,CKEDITOR.env.ie? -"keypress":"input",c.onInput,c,null,999);d.attachListener(d,"keyup",c.onKeyup,c,null,999);d.attachListener(d,"paste",c.ignoreInputEventListener,c,null,999);d.attachListener(d,"drop",c.ignoreInputEventListener,c,null,999);d.attachListener(d.isInline()?d:a.document.getDocumentElement(),"click",function(){c.onNavigationKey()},null,null,999);d.attachListener(this.undoManager.editor,"blur",function(){c.keyEventsStack.remove(9)},null,null,999)}};var j=CKEDITOR.plugins.undo.KeyEventsStack=function(){this.stack= -[]};j.prototype={push:function(a){return this.stack[this.stack.push({keyCode:a,inputs:0})-1]},getLastIndex:function(a){if(typeof a!="number")return this.stack.length-1;for(var b=this.stack.length;b--;)if(this.stack[b].keyCode==a)return b;return-1},getLast:function(a){a=this.getLastIndex(a);return a!=-1?this.stack[a]:null},increment:function(a){this.getLast(a).inputs++},remove:function(a){a=this.getLastIndex(a);a!=-1&&this.stack.splice(a,1)},resetInputs:function(a){if(typeof a=="number")this.getLast(a).inputs= -0;else for(a=this.stack.length;a--;)this.stack[a].inputs=0},getTotalInputs:function(){for(var a=this.stack.length,b=0;a--;)b=b+this.stack[a].inputs;return b},cleanUp:function(a){a=a.data.$;!a.ctrlKey&&!a.metaKey&&this.remove(17);a.shiftKey||this.remove(16);a.altKey||this.remove(18)}}}(),function(){function a(a,b){var b=b===void 0||b,f;if(b)f=a.getComputedStyle("text-align");else{for(;!a.hasAttribute||!a.hasAttribute("align")&&!a.getStyle("text-align");){f=a.getParent();if(!f)break;a=f}f=a.getStyle("text-align")|| -a.getAttribute("align")||""}f&&(f=f.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!f&&b&&(f=a.getComputedStyle("direction")=="rtl"?"right":"left");return f}function f(a,b,f){this.editor=a;this.name=b;this.value=f;this.context="p";var b=a.config.justifyClasses,j=a.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(b){switch(f){case "left":this.cssClassName=b[0];break;case "center":this.cssClassName=b[1];break;case "right":this.cssClassName=b[2];break;case "justify":this.cssClassName=b[3]}this.cssClassRegex= -RegExp("(?:^|\\s+)(?:"+b.join("|")+")(?=$|\\s)");this.requiredContent=j+"("+this.cssClassName+")"}else this.requiredContent=j+"{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,f=b.createRange();f.setStartBefore(a.data.node);f.setEndAfter(a.data.node);for(var j=new CKEDITOR.dom.walker(f), -i;i=j.next();)if(i.type==CKEDITOR.NODE_ELEMENT)if(!i.equals(a.data.node)&&i.getDirection()){f.setStartAfter(i);j=new CKEDITOR.dom.walker(f)}else{var e=b.config.justifyClasses;if(e)if(i.hasClass(e[0])){i.removeClass(e[0]);i.addClass(e[2])}else if(i.hasClass(e[2])){i.removeClass(e[2]);i.addClass(e[0])}e=i.getStyle("text-align");e=="left"?i.setStyle("text-align","right"):e=="right"&&i.setStyle("text-align","left")}}f.prototype={exec:function(b){var f=b.getSelection(),k=b.config.enterMode;if(f){for(var j= -f.createBookmarks(),i=f.getRanges(),e=this.cssClassName,c,g,l=b.config.useComputedState,l=l===void 0||l,q=i.length-1;q>=0;q--){c=i[q].createIterator();for(c.enlargeBr=k!=CKEDITOR.ENTER_BR;g=c.getNextParagraph(k==CKEDITOR.ENTER_P?"p":"div");)if(!g.isReadOnly()){g.removeAttribute("align");g.removeStyle("text-align");var n=e&&(g.$.className=CKEDITOR.tools.ltrim(g.$.className.replace(this.cssClassRegex,""))),o=this.state==CKEDITOR.TRISTATE_OFF&&(!l||a(g,true)!=this.value);e?o?g.addClass(e):n||g.removeAttribute("class"): -o&&g.setStyle("text-align",this.value)}}b.focus();b.forceNextSelectionCheck();f.selectBookmarks(j)}},refresh:function(b,f){var k=f.block||f.blockLimit;this.setState(k.getName()!="body"&&a(k,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("justify",{init:function(a){if(!a.blockless){var h=new f(a,"justifyleft","left"),k=new f(a,"justifycenter","center"),j=new f(a,"justifyright","right"),i=new f(a,"justifyblock","justify");a.addCommand("justifyleft", -h);a.addCommand("justifycenter",k);a.addCommand("justifyright",j);a.addCommand("justifyblock",i);if(a.ui.addButton){a.ui.addButton("JustifyLeft",{label:a.lang.justify.left,command:"justifyleft",toolbar:"align,10"});a.ui.addButton("JustifyCenter",{label:a.lang.justify.center,command:"justifycenter",toolbar:"align,20"});a.ui.addButton("JustifyRight",{label:a.lang.justify.right,command:"justifyright",toolbar:"align,30"});a.ui.addButton("JustifyBlock",{label:a.lang.justify.block,command:"justifyblock", -toolbar:"align,40"})}a.on("dirChanged",b)}}})}(),function(){var a={readOnly:1,preserveState:true,editorFocus:false,exec:function(a){this.toggleState();this.refresh(a)},refresh:function(a){if(a.document){var b=this.state==CKEDITOR.TRISTATE_ON&&(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE||a.focusManager.hasFocus)?"attachClass":"removeClass";a.editable()[b]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",{onLoad:function(){var a=["p","div","pre","address","blockquote","h1","h2","h3","h4","h5", -"h6"],b,d,h,k,j=CKEDITOR.getUrl(this.path),i=!(CKEDITOR.env.ie&&CKEDITOR.env.version<9),e=i?":not([contenteditable=false]):not(.cke_show_blocks_off)":"",c,g;for(b=d=h=k="";c=a.pop();){g=a.length?",":"";b=b+(".cke_show_blocks "+c+e+g);h=h+(".cke_show_blocks.cke_contents_ltr "+c+e+g);k=k+(".cke_show_blocks.cke_contents_rtl "+c+e+g);d=d+(".cke_show_blocks "+c+e+"{background-image:url("+CKEDITOR.getUrl(j+"images/block_"+c+".png")+")}")}CKEDITOR.addCss((b+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(d, -h+"{background-position:top left;padding-left:8px}",k+"{background-position:top right;padding-right:8px}"));i||CKEDITOR.addCss(".cke_show_blocks [contenteditable=false],.cke_show_blocks .cke_show_blocks_off{border:none;padding-top:0;background-image:none}.cke_show_blocks.cke_contents_rtl [contenteditable=false],.cke_show_blocks.cke_contents_rtl .cke_show_blocks_off{padding-right:0}.cke_show_blocks.cke_contents_ltr [contenteditable=false],.cke_show_blocks.cke_contents_ltr .cke_show_blocks_off{padding-left:0}")}, -init:function(f){function b(){d.refresh(f)}if(!f.blockless){var d=f.addCommand("showblocks",a);d.canUndo=false;f.config.startupOutlineBlocks&&d.setState(CKEDITOR.TRISTATE_ON);f.ui.addButton&&f.ui.addButton("ShowBlocks",{label:f.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"});f.on("mode",function(){d.state!=CKEDITOR.TRISTATE_DISABLED&&d.refresh(f)});if(f.elementMode==CKEDITOR.ELEMENT_MODE_INLINE){f.on("focus",b);f.on("blur",b)}f.on("contentDom",function(){d.state!=CKEDITOR.TRISTATE_DISABLED&& -d.refresh(f)})}}})}(),function(){var a={preserveState:true,editorFocus:false,readOnly:1,exec:function(a){this.toggleState();this.refresh(a)},refresh:function(a){if(a.document){var b=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";a.editable()[b]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var a;a=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted","}"]:[".%1 table.%2,",".%1 table.%2 > tr > td, .%1 table.%2 > tr > th,", -".%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,",".%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,",".%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th","{","border : #d3d3d3 1px dotted","}"]).join("").replace(/%2/g,"cke_show_border").replace(/%1/g,"cke_show_borders ");CKEDITOR.addCss(a)},init:function(f){var b=f.addCommand("showborders",a);b.canUndo=false;f.config.startupShowBorders!==false&&b.setState(CKEDITOR.TRISTATE_ON);f.on("mode",function(){b.state!= -CKEDITOR.TRISTATE_DISABLED&&b.refresh(f)},null,null,100);f.on("contentDom",function(){b.state!=CKEDITOR.TRISTATE_DISABLED&&b.refresh(f)});f.on("removeFormatCleanup",function(a){a=a.data;f.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&(a.is("table")&&(!a.hasAttribute("border")||parseInt(a.getAttribute("border"),10)<=0))&&a.addClass("cke_show_border")})},afterInit:function(a){var b=a.dataProcessor,a=b&&b.dataFilter,b=b&&b.htmlFilter;a&&a.addRules({elements:{table:function(a){var a=a.attributes, -b=a["class"],f=parseInt(a.border,10);if((!f||f<=0)&&(!b||b.indexOf("cke_show_border")==-1))a["class"]=(b||"")+" cke_show_border"}}});b&&b.addRules({elements:{table:function(a){var a=a.attributes,b=a["class"];b&&(a["class"]=b.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,""))}}})}});CKEDITOR.on("dialogDefinition",function(a){var b=a.data.name;if(b=="table"||b=="tableProperties"){a=a.data.definition;b=a.getContents("info").get("txtBorder");b.commit=CKEDITOR.tools.override(b.commit, -function(a){return function(b,f){a.apply(this,arguments);var j=parseInt(this.getValue(),10);f[!j||j<=0?"addClass":"removeClass"]("cke_show_border")}});if(a=(a=a.getContents("advanced"))&&a.get("advCSSClasses")){a.setup=CKEDITOR.tools.override(a.setup,function(a){return function(){a.apply(this,arguments);this.setValue(this.getValue().replace(/cke_show_border/,""))}});a.commit=CKEDITOR.tools.override(a.commit,function(a){return function(b,f){a.apply(this,arguments);parseInt(f.getAttribute("border"), -10)||f.addClass("cke_show_border")}})}}})}(),function(){function a(a){return CKEDITOR.env.ie?a.$.clientWidth:parseInt(a.getComputedStyle("width"),10)}function f(a,c){var b=a.getComputedStyle("border-"+c+"-width"),d={thin:"0px",medium:"1px",thick:"2px"};b.indexOf("px")<0&&(b=b in d&&a.getComputedStyle("border-style")!="none"?d[b]:0);return parseInt(b,10)}function b(a){var c=[],b=-1,d=a.getComputedStyle("direction")=="rtl",h;h=a.$.rows;for(var i=0,j,k,m,r=0,u=h.length;r<u;r++){m=h[r];j=m.cells.length; -if(j>i){i=j;k=m}}h=k;i=new CKEDITOR.dom.element(a.$.tBodies[0]);j=i.getDocumentPosition();k=0;for(m=h.cells.length;k<m;k++){var r=new CKEDITOR.dom.element(h.cells[k]),u=h.cells[k+1]&&new CKEDITOR.dom.element(h.cells[k+1]),b=b+(r.$.colSpan||1),y,v,w=r.getDocumentPosition().x;d?v=w+f(r,"left"):y=w+r.$.offsetWidth-f(r,"right");if(u){w=u.getDocumentPosition().x;d?y=w+u.$.offsetWidth-f(u,"right"):v=w+f(u,"left")}else{w=a.getDocumentPosition().x;d?y=w:v=w+a.$.offsetWidth}r=Math.max(v-y,3);c.push({table:a, -index:b,x:y,y:j.y,width:r,height:i.$.offsetHeight,rtl:d})}return c}function d(a){(a.data||a).preventDefault()}function h(b){function c(){r=0;m.setOpacity(0);y&&g();var a=o.table;setTimeout(function(){a.removeCustomData("_cke_table_pillars")},0);p.removeListener("dragstart",d)}function g(){for(var c=o.rtl,d=c?w.length:v.length,g=0,h=0;h<d;h++){var i=v[h],k=w[h],l=o.table;CKEDITOR.tools.setTimeout(function(a,f,h,i,k,m){a&&a.setStyle("width",j(Math.max(f+m,1)));h&&h.setStyle("width",j(Math.max(i-m,1))); -k&&l.setStyle("width",j(k+m*(c?-1:1)));++g==d&&b.fire("saveSnapshot")},0,this,[i,i&&a(i),k,k&&a(k),(!i||!k)&&a(l)+f(l,"left")+f(l,"right"),y])}}function h(c){d(c);b.fire("saveSnapshot");for(var c=o.index,g=CKEDITOR.tools.buildTableMap(o.table),f=[],i=[],j=Number.MAX_VALUE,l=j,z=o.rtl,F=0,M=g.length;F<M;F++){var H=g[F],N=H[c+(z?1:0)],H=H[c+(z?0:1)],N=N&&new CKEDITOR.dom.element(N),H=H&&new CKEDITOR.dom.element(H);if(!N||!H||!N.equals(H)){N&&(j=Math.min(j,a(N)));H&&(l=Math.min(l,a(H)));f.push(N);i.push(H)}}v= -f;w=i;t=o.x-j;s=o.x+l;m.setOpacity(0.5);u=parseInt(m.getStyle("left"),10);y=0;r=1;m.on("mousemove",n);p.on("dragstart",d);p.on("mouseup",k,this)}function k(a){a.removeListener();c()}function n(a){z(a.data.getPageOffset().x)}var o,p,m,r,u,y,v,w,t,s;p=b.document;m=CKEDITOR.dom.element.createFromHtml('<div data-cke-temp=1 contenteditable=false unselectable=on style="position:absolute;cursor:col-resize;filter:alpha(opacity=0);opacity:0;padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"></div>', -p);b.on("destroy",function(){m.remove()});i||p.getDocumentElement().append(m);this.attachTo=function(a){if(!r){if(i){p.getBody().append(m);y=0}o=a;m.setStyles({width:j(a.width),height:j(a.height),left:j(a.x),top:j(a.y)});i&&m.setOpacity(0.25);m.on("mousedown",h,this);p.getBody().setStyle("cursor","col-resize");m.show()}};var z=this.move=function(a){if(!o)return 0;if(!r&&(a<o.x||a>o.x+o.width)){o=null;r=y=0;p.removeListener("mouseup",k);m.removeListener("mousedown",h);m.removeListener("mousemove", -n);p.getBody().setStyle("cursor","auto");i?m.remove():m.hide();return 0}a=a-Math.round(m.$.offsetWidth/2);if(r){if(a==t||a==s)return 1;a=Math.max(a,t);a=Math.min(a,s);y=a-u}m.setStyle("left",j(a));return 1}}function k(a){var c=a.data.getTarget();if(a.name=="mouseout"){if(!c.is("table"))return;for(var b=new CKEDITOR.dom.element(a.data.$.relatedTarget||a.data.$.toElement);b&&b.$&&!b.equals(c)&&!b.is("body");)b=b.getParent();if(!b||b.equals(c))return}c.getAscendant("table",1).removeCustomData("_cke_table_pillars"); -a.removeListener()}var j=CKEDITOR.tools.cssLength,i=CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks);CKEDITOR.plugins.add("tableresize",{requires:"tabletools",init:function(a){a.on("contentDom",function(){var c,g=a.editable();g.attachListener(g.isInline()?g:a.document,"mousemove",function(g){var g=g.data,f=g.getTarget();if(f.type==CKEDITOR.NODE_ELEMENT){var i=g.getPageOffset().x;if(c&&c.move(i))d(g);else if(f.is("table")||f.getAscendant("tbody",1)){f=f.getAscendant("table",1);if(a.editable().contains(f)){if(!(g= -f.getCustomData("_cke_table_pillars"))){f.setCustomData("_cke_table_pillars",g=b(f));f.on("mouseout",k);f.on("mousedown",k)}a:{for(var f=0,j=g.length;f<j;f++){var p=g[f];if(i>=p.x&&i<=p.x+p.width){i=p;break a}}i=null}if(i){!c&&(c=new h(a));c.attachTo(i)}}}}})})}})}(),function(){function a(a,d,h){var k,j;if(h=typeof h=="string"?CKEDITOR.document.getById(h):new CKEDITOR.dom.element(h))if(k=a.fire("uiSpace",{space:d,html:""}).html){a.on("uiSpace",function(a){a.data.space==d&&a.cancel()},null,null,1); -j=h.append(CKEDITOR.dom.element.createFromHtml(f.output({id:a.id,name:a.name,langDir:a.lang.dir,langCode:a.langCode,space:d,spaceId:a.ui.spaceId(d),content:k})));h.getCustomData("cke_hasshared")?j.hide():h.setCustomData("cke_hasshared",1);j.unselectable();j.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});a.focusManager.add(j,1);a.on("focus",function(){for(var a=0,b,c=h.getChildren();b=c.getItem(a);a++)b.type==CKEDITOR.NODE_ELEMENT&&(!b.equals(j)&&b.hasClass("cke_shared"))&& -b.hide();j.show()});a.on("destroy",function(){j.remove()})}}var f=CKEDITOR.addTemplate("sharedcontainer",'<div id="cke_{name}" class="cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_shared cke_detached cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" title="'+(CKEDITOR.env.gecko?" ":"")+'" lang="{langCode}" role="presentation"><div class="cke_inner"><div id="{spaceId}" class="cke_{space}" role="presentation">{content}</div></div></div>');CKEDITOR.plugins.add("sharedspace",{init:function(b){b.on("loaded", -function(){var d=b.config.sharedSpaces;if(d)for(var f in d)a(b,f,d[f])},null,null,9)}})}(),CKEDITOR.plugins.add("sourcedialog",{init:function(a){a.addCommand("sourcedialog",new CKEDITOR.dialogCommand("sourcedialog"));CKEDITOR.dialog.add("sourcedialog",this.path+"dialogs/sourcedialog.js");a.ui.addButton&&a.ui.addButton("Sourcedialog",{label:a.lang.sourcedialog.toolbar,command:"sourcedialog",toolbar:"mode,10"})}}),"use strict",function(){function a(a,b){CKEDITOR.tools.extend(this,{editor:a,editable:a.editable(), -doc:a.document,win:a.window},b,true);this.inline=this.editable.isInline();if(!this.inline)this.frame=this.win.getFrame();this.target=this[this.inline?"editable":"doc"]}function f(a,b){CKEDITOR.tools.extend(this,b,{editor:a},true)}function b(a,b){var d=a.editable();CKEDITOR.tools.extend(this,{editor:a,editable:d,inline:d.isInline(),doc:a.document,win:a.window,container:CKEDITOR.document.getBody(),winTop:CKEDITOR.document.getWindow()},b,true);this.hidden={};this.visible={};if(!this.inline)this.frame= -this.win.getFrame();this.queryViewport();var e=CKEDITOR.tools.bind(this.queryViewport,this),f=CKEDITOR.tools.bind(this.hideVisible,this),i=CKEDITOR.tools.bind(this.removeAll,this);d.attachListener(this.winTop,"resize",e);d.attachListener(this.winTop,"scroll",e);d.attachListener(this.winTop,"resize",f);d.attachListener(this.win,"scroll",f);d.attachListener(this.inline?d:this.frame,"mouseout",function(a){var b=a.data.$.clientX,a=a.data.$.clientY;this.queryViewport();(b<=this.rect.left||b>=this.rect.right|| -a<=this.rect.top||a>=this.rect.bottom)&&this.hideVisible();(b<=0||b>=this.winTopPane.width||a<=0||a>=this.winTopPane.height)&&this.hideVisible()},this);d.attachListener(a,"resize",e);d.attachListener(a,"mode",i);a.on("destroy",i);this.lineTpl=(new CKEDITOR.template(j)).output({lineStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},k,this.lineStyle,true)),tipLeftStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},h,{left:"0px","border-left-color":"red","border-width":"6px 0 6px 6px"}, -this.tipCss,this.tipLeftStyle,true)),tipRightStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},h,{right:"0px","border-right-color":"red","border-width":"6px 6px 6px 0"},this.tipCss,this.tipRightStyle,true))})}function d(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&!(i[a.getComputedStyle("float")]||i[a.getAttribute("align")])&&!e[a.getComputedStyle("position")]}CKEDITOR.plugins.add("lineutils");CKEDITOR.LINEUTILS_BEFORE=1;CKEDITOR.LINEUTILS_AFTER=2;CKEDITOR.LINEUTILS_INSIDE=4;a.prototype={start:function(a){var b= -this,d=this.editor,e=this.doc,f,h,i,j,k=CKEDITOR.tools.eventsBuffer(50,function(){if(!(d.readOnly||d.mode!="wysiwyg")){b.relations={};if((h=e.$.elementFromPoint(i,j))&&h.nodeType){f=new CKEDITOR.dom.element(h);b.traverseSearch(f);isNaN(i+j)||b.pixelSearch(f,i,j);a&&a(b.relations,i,j)}}});this.listener=this.editable.attachListener(this.target,"mousemove",function(a){i=a.data.$.clientX;j=a.data.$.clientY;k.input()});this.editable.attachListener(this.inline?this.editable:this.frame,"mouseout",function(){k.reset()})}, -stop:function(){this.listener&&this.listener.removeListener()},getRange:function(){var a={};a[CKEDITOR.LINEUTILS_BEFORE]=CKEDITOR.POSITION_BEFORE_START;a[CKEDITOR.LINEUTILS_AFTER]=CKEDITOR.POSITION_AFTER_END;a[CKEDITOR.LINEUTILS_INSIDE]=CKEDITOR.POSITION_AFTER_START;return function(b){var d=this.editor.createRange();d.moveToPosition(this.relations[b.uid].element,a[b.type]);return d}}(),store:function(){function a(b,c,d){var e=b.getUniqueId();e in d?d[e].type=d[e].type|c:d[e]={element:b,type:c}}return function(b, -e){var f;if(e&CKEDITOR.LINEUTILS_AFTER&&d(f=b.getNext())&&f.isVisible()){a(f,CKEDITOR.LINEUTILS_BEFORE,this.relations);e=e^CKEDITOR.LINEUTILS_AFTER}if(e&CKEDITOR.LINEUTILS_INSIDE&&d(f=b.getFirst())&&f.isVisible()){a(f,CKEDITOR.LINEUTILS_BEFORE,this.relations);e=e^CKEDITOR.LINEUTILS_INSIDE}a(b,e,this.relations)}}(),traverseSearch:function(a){var b,e,f;do{f=a.$["data-cke-expando"];if(!(f&&f in this.relations)){if(a.equals(this.editable))break;if(d(a))for(b in this.lookups)(e=this.lookups[b](a))&&this.store(a, -e)}}while(!(a&&a.type==CKEDITOR.NODE_ELEMENT&&a.getAttribute("contenteditable")=="true")&&(a=a.getParent()))},pixelSearch:function(){function a(c,e,f,h,i){for(var j=0,k;i(f);){f=f+h;if(++j==25)break;if(k=this.doc.$.elementFromPoint(e,f))if(k==c)j=0;else if(b(c,k)){j=0;if(d(k=new CKEDITOR.dom.element(k)))return k}}}var b=CKEDITOR.env.ie||CKEDITOR.env.webkit?function(a,b){return a.contains(b)}:function(a,b){return!!(a.compareDocumentPosition(b)&16)};return function(b,e,g){var f=this.win.getViewPaneSize().height, -h=a.call(this,b.$,e,g,-1,function(a){return a>0}),e=a.call(this,b.$,e,g,1,function(a){return a<f});if(h)for(this.traverseSearch(h);!h.getParent().equals(b);)h=h.getParent();if(e)for(this.traverseSearch(e);!e.getParent().equals(b);)e=e.getParent();for(;h||e;){h&&(h=h.getNext(d));if(!h||h.equals(e))break;this.traverseSearch(h);e&&(e=e.getPrevious(d));if(!e||e.equals(h))break;this.traverseSearch(e)}}}(),greedySearch:function(){this.relations={};for(var a=this.editable.getElementsByTag("*"),b=0,e,f,h;e= -a.getItem(b++);)if(!e.equals(this.editable)&&e.type==CKEDITOR.NODE_ELEMENT&&(e.hasAttribute("contenteditable")||!e.isReadOnly())&&d(e)&&e.isVisible())for(h in this.lookups)(f=this.lookups[h](e))&&this.store(e,f);return this.relations}};f.prototype={locate:function(){function a(b,c){var e=b.element[c===CKEDITOR.LINEUTILS_BEFORE?"getPrevious":"getNext"]();if(e&&d(e)){b.siblingRect=e.getClientRect();return c==CKEDITOR.LINEUTILS_BEFORE?(b.siblingRect.bottom+b.elementRect.top)/2:(b.elementRect.bottom+ -b.siblingRect.top)/2}return c==CKEDITOR.LINEUTILS_BEFORE?b.elementRect.top:b.elementRect.bottom}return function(b){var d;this.locations={};for(var e in b){d=b[e];d.elementRect=d.element.getClientRect();d.type&CKEDITOR.LINEUTILS_BEFORE&&this.store(e,CKEDITOR.LINEUTILS_BEFORE,a(d,CKEDITOR.LINEUTILS_BEFORE));d.type&CKEDITOR.LINEUTILS_AFTER&&this.store(e,CKEDITOR.LINEUTILS_AFTER,a(d,CKEDITOR.LINEUTILS_AFTER));d.type&CKEDITOR.LINEUTILS_INSIDE&&this.store(e,CKEDITOR.LINEUTILS_INSIDE,(d.elementRect.top+ -d.elementRect.bottom)/2)}return this.locations}}(),sort:function(){var a,b,d,e;return function(f,h){a=this.locations;b=[];for(var i in a)for(var j in a[i]){d=Math.abs(f-a[i][j]);if(b.length){for(e=0;e<b.length;e++)if(d<b[e].dist){b.splice(e,0,{uid:+i,type:j,dist:d});break}e==b.length&&b.push({uid:+i,type:j,dist:d})}else b.push({uid:+i,type:j,dist:d})}return typeof h!="undefined"?b.slice(0,h):b}}(),store:function(a,b,d){this.locations[a]||(this.locations[a]={});this.locations[a][b]=d}};var h={display:"block", -width:"0px",height:"0px","border-color":"transparent","border-style":"solid",position:"absolute",top:"-6px"},k={height:"0px","border-top":"1px dashed red",position:"absolute","z-index":9999},j='<div data-cke-lineutils-line="1" class="cke_reset_all" style="{lineStyle}"><span style="{tipLeftStyle}"> </span><span style="{tipRightStyle}"> </span></div>';b.prototype={removeAll:function(){for(var a in this.hidden){this.hidden[a].remove();delete this.hidden[a]}for(a in this.visible){this.visible[a].remove(); -delete this.visible[a]}},hideLine:function(a){var b=a.getUniqueId();a.hide();this.hidden[b]=a;delete this.visible[b]},showLine:function(a){var b=a.getUniqueId();a.show();this.visible[b]=a;delete this.hidden[b]},hideVisible:function(){for(var a in this.visible)this.hideLine(this.visible[a])},placeLine:function(a,b){var d,e,f;if(d=this.getStyle(a.uid,a.type)){for(f in this.visible)if(this.visible[f].getCustomData("hash")!==this.hash){e=this.visible[f];break}if(!e)for(f in this.hidden)if(this.hidden[f].getCustomData("hash")!== -this.hash){this.showLine(e=this.hidden[f]);break}e||this.showLine(e=this.addLine());e.setCustomData("hash",this.hash);this.visible[e.getUniqueId()]=e;e.setStyles(d);b&&b(e)}},getStyle:function(a,b){var d=this.relations[a],e=this.locations[a][b],f={};f.width=d.siblingRect?Math.max(d.siblingRect.width,d.elementRect.width):d.elementRect.width;f.top=this.inline?e+this.winTopScroll.y-this.rect.relativeY:this.rect.top+this.winTopScroll.y+e;if(f.top-this.winTopScroll.y<this.rect.top||f.top-this.winTopScroll.y> -this.rect.bottom)return false;if(this.inline)f.left=d.elementRect.left-this.rect.relativeX;else{if(d.elementRect.left>0)f.left=this.rect.left+d.elementRect.left;else{f.width=f.width+d.elementRect.left;f.left=this.rect.left}if((d=f.left+f.width-(this.rect.left+this.winPane.width))>0)f.width=f.width-d}f.left=f.left+this.winTopScroll.x;for(var h in f)f[h]=CKEDITOR.tools.cssLength(f[h]);return f},addLine:function(){var a=CKEDITOR.dom.element.createFromHtml(this.lineTpl);a.appendTo(this.container);return a}, -prepare:function(a,b){this.relations=a;this.locations=b;this.hash=Math.random()},cleanup:function(){var a,b;for(b in this.visible){a=this.visible[b];a.getCustomData("hash")!==this.hash&&this.hideLine(a)}},queryViewport:function(){this.winPane=this.win.getViewPaneSize();this.winTopScroll=this.winTop.getScrollPosition();this.winTopPane=this.winTop.getViewPaneSize();this.rect=this.getClientRect(this.inline?this.editable:this.frame)},getClientRect:function(a){var a=a.getClientRect(),b=this.container.getDocumentPosition(), -d=this.container.getComputedStyle("position");a.relativeX=a.relativeY=0;if(d!="static"){a.relativeY=b.y;a.relativeX=b.x;a.top=a.top-a.relativeY;a.bottom=a.bottom-a.relativeY;a.left=a.left-a.relativeX;a.right=a.right-a.relativeX}return a}};var i={left:1,right:1,center:1},e={absolute:1,fixed:1};CKEDITOR.plugins.lineutils={finder:a,locator:f,liner:b}}(),"use strict",function(){function a(a){this.editor=a;this.registered={};this.instances={};this.selected=[];this.widgetHoldingFocusedEditable=this.focused= -null;this._={nextId:0,upcasts:[],upcastCallbacks:[],filters:{}};t(this);w(this);this.on("checkWidgets",j);this.editor.on("contentDomInvalidated",this.checkWidgets,this);v(this);r(this);u(this);m(this);y(this)}function f(a,b,c,d,e){var g=a.editor;CKEDITOR.tools.extend(this,d,{editor:g,id:b,inline:c.getParent().getName()=="span",element:c,data:CKEDITOR.tools.extend({},typeof d.defaults=="function"?d.defaults():d.defaults),dataReady:false,inited:false,ready:false,edit:f.prototype.edit,focusedEditable:null, -definition:d,repository:a,draggable:d.draggable!==false,_:{downcastFn:d.downcast&&typeof d.downcast=="string"?d.downcasts[d.downcast]:d.downcast}},true);a.fire("instanceCreated",this);K(this,d);this.init&&this.init();this.inited=true;(a=this.element.data("cke-widget-data"))&&this.setData(JSON.parse(decodeURIComponent(a)));e&&this.setData(e);this.data.classes||this.setData("classes",this.getClasses());this.dataReady=true;S(this);this.fire("data",this.data);if(this.isInited()&&g.editable().contains(this.wrapper)){this.ready= -true;this.fire("ready")}}function b(a,b,c){CKEDITOR.dom.element.call(this,b.$);this.editor=a;this._={};b=this.filter=c.filter;if(CKEDITOR.dtd[this.getName()].p){this.enterMode=b?b.getAllowedEnterMode(a.enterMode):a.enterMode;this.shiftEnterMode=b?b.getAllowedEnterMode(a.shiftEnterMode,true):a.shiftEnterMode}else this.enterMode=this.shiftEnterMode=CKEDITOR.ENTER_BR}function d(a,b){a.addCommand(b.name,{exec:function(a,c){function d(){a.widgets.finalizeCreation(h)}var e=a.widgets.focused;if(e&&e.name== -b.name)e.edit();else if(b.insert)b.insert();else if(b.template){var e=typeof b.defaults=="function"?b.defaults():b.defaults,e=CKEDITOR.dom.element.createFromHtml(b.template.output(e)),f,g=a.widgets.wrapElement(e,b.name),h=new CKEDITOR.dom.documentFragment(g.getDocument());h.append(g);if(f=a.widgets.initOn(e,b,c&&c.startupData)){e=f.once("edit",function(b){if(b.data.dialog)f.once("dialog",function(b){var b=b.data,c,e;c=b.once("ok",d,null,null,20);e=b.once("cancel",function(b){b.data&&b.data.hide=== -false||a.widgets.destroy(f,true)});b.once("hide",function(){c.removeListener();e.removeListener()})});else d()},null,null,999);f.edit();e.removeListener()}else d()}},allowedContent:b.allowedContent,requiredContent:b.requiredContent,contentForms:b.contentForms,contentTransformations:b.contentTransformations})}function h(a,b){function c(b,d,e){var f=CKEDITOR.tools.getIndex(a._.upcasts,function(a){return a[2]>e});if(f<0)f=a._.upcasts.length;a._.upcasts.splice(f,0,[b,d,e])}var d=b.upcast,e=b.upcastPriority|| -10;if(d)if(typeof d=="string")for(d=d.split(",");d.length;)c(b.upcasts[d.pop()],b.name,e);else c(d,b.name,e)}function k(a,b){a.focused=null;if(b.isInited()){var c=b.editor.checkDirty();a.fire("widgetBlurred",{widget:b});b.setFocused(false);!c&&b.editor.resetDirty()}}function j(a){a=a.data;if(this.editor.mode=="wysiwyg"){var b=this.editor.editable(),c=this.instances,d,e,g,h;if(b){for(d in c)c[d].isReady()&&!b.contains(c[d].wrapper)&&this.destroy(c[d],true);if(a&&a.initOnlyNew)c=this.initOnAll();else{var i= -b.find(".cke_widget_wrapper"),c=[];d=0;for(e=i.count();d<e;d++){g=i.getItem(d);if(h=!this.getByElement(g,true)){a:{h=q;for(var j=g;j=j.getParent();)if(h(j)){h=true;break a}h=false}h=!h&&b.contains(g)}if(h){g.addClass("cke_widget_new");c.push(this.initOn(g.getFirst(f.isDomWidgetElement)))}}}a&&(a.focusInited&&c.length==1)&&c[0].focus()}}}function i(a,b,c){if(!c.allowedContent)return null;var d=this._.filters[a];d||(this._.filters[a]=d={});(a=d[b])||(d[b]=a=new CKEDITOR.filter(c.allowedContent));return a} -function e(a){var b=[],c=a._.upcasts,d=a._.upcastCallbacks;return{toBeWrapped:b,iterator:function(a){var e,g,h,i,j;if("data-cke-widget-wrapper"in a.attributes){(a=a.getFirst(f.isParserWidgetElement))&&b.push([a]);return false}if("data-widget"in a.attributes){b.push([a]);return false}if(j=c.length){if(a.attributes["data-cke-widget-upcasted"])return false;i=0;for(e=d.length;i<e;++i)if(d[i](a)===false)return;for(i=0;i<j;++i){e=c[i];h={};if(g=e[0](a,h)){g instanceof CKEDITOR.htmlParser.element&&(a=g); -a.attributes["data-cke-widget-data"]=encodeURIComponent(JSON.stringify(h));a.attributes["data-cke-widget-upcasted"]=1;b.push([a,e[1]]);return false}}}}}}function c(a){return{tabindex:-1,contenteditable:"false","data-cke-widget-wrapper":1,"data-cke-filter":"off","class":"cke_widget_wrapper cke_widget_new cke_widget_"+(a?"inline":"block")}}function g(a,b,c){if(a.type==CKEDITOR.NODE_ELEMENT){var d=CKEDITOR.dtd[a.name];if(d&&!d[c.name]){var d=a.split(b),e=a.parent,b=d.getIndex();if(!a.children.length){b= -b-1;a.remove()}d.children.length||d.remove();return g(e,b,c)}}a.add(c,b)}function l(a,b){return typeof a.inline=="boolean"?a.inline:!!CKEDITOR.dtd.$inline[b]}function q(a){return a.hasAttribute("data-cke-temp")}function n(a,b,c,d){var e=a.editor;e.fire("lockSnapshot");if(c){d=c.data("cke-widget-editable");d=b.editables[d];a.widgetHoldingFocusedEditable=b;b.focusedEditable=d;c.addClass("cke_widget_editable_focused");d.filter&&e.setActiveFilter(d.filter);e.setActiveEnterMode(d.enterMode,d.shiftEnterMode)}else{d|| -b.focusedEditable.removeClass("cke_widget_editable_focused");b.focusedEditable=null;a.widgetHoldingFocusedEditable=null;e.setActiveFilter(null);e.setActiveEnterMode(null,null)}e.fire("unlockSnapshot")}function o(a){a.contextMenu&&a.contextMenu.addListener(function(b){if(b=a.widgets.getByElement(b,true))return b.fire("contextMenu",{})})}function p(a,b){return CKEDITOR.tools.trim(b)}function m(a){var b=a.editor,c=CKEDITOR.plugins.lineutils;b.on("dragstart",function(c){var d=c.data.target;if(f.isDomDragHandler(d)){d= -a.getByElement(d);c.data.dataTransfer.setData("cke/widget-id",d.id);b.focus();d.focus()}});b.on("drop",function(c){var d=c.data.dataTransfer,e=d.getData("cke/widget-id"),f=b.createRange();if(!(e===""||d.getTransferType(b)!=CKEDITOR.DATA_TRANSFER_INTERNAL))if(d=a.instances[e]){f.setStartBefore(d.wrapper);f.setEndAfter(d.wrapper);c.data.dragRange=f;delete CKEDITOR.plugins.clipboard.dragStartContainerChildCount;delete CKEDITOR.plugins.clipboard.dragEndContainerChildCount;c.data.dataTransfer.setData("text/html", -b.editable().getHtmlFromRange(f).getHtml());b.widgets.destroy(d,true)}});b.on("contentDom",function(){var d=b.editable();CKEDITOR.tools.extend(a,{finder:new c.finder(b,{lookups:{"default":function(b){if(!b.is(CKEDITOR.dtd.$listItem)&&b.is(CKEDITOR.dtd.$block)&&!f.isDomNestedEditable(b)&&!a._.draggedWidget.wrapper.contains(b)){var c=f.getNestedEditable(d,b);if(c){b=a._.draggedWidget;if(a.getByElement(c)==b)return;c=CKEDITOR.filter.instances[c.data("cke-filter")];b=b.requiredContent;if(c&&b&&!c.check(b))return}return CKEDITOR.LINEUTILS_BEFORE| -CKEDITOR.LINEUTILS_AFTER}}}}),locator:new c.locator(b),liner:new c.liner(b,{lineStyle:{cursor:"move !important","border-top-color":"#666"},tipLeftStyle:{"border-left-color":"#666"},tipRightStyle:{"border-right-color":"#666"}})},true)})}function r(a){var b=a.editor;b.on("contentDom",function(){var c=b.editable(),d=c.isInline()?c:b.document,e,g;c.attachListener(d,"mousedown",function(b){var c=b.data.getTarget();if(!c.type)return false;e=a.getByElement(c);g=0;if(e)if(e.inline&&c.type==CKEDITOR.NODE_ELEMENT&& -c.hasAttribute("data-cke-widget-drag-handler"))g=1;else if(f.getNestedEditable(e.wrapper,c))e=null;else{b.data.preventDefault();CKEDITOR.env.ie||e.focus()}});c.attachListener(d,"mouseup",function(){if(g&&e&&e.wrapper){g=0;e.focus()}});CKEDITOR.env.ie&&c.attachListener(d,"mouseup",function(){setTimeout(function(){if(e&&e.wrapper&&c.contains(e.wrapper)){e.focus();e=null}})})});b.on("doubleclick",function(b){var c=a.getByElement(b.data.element);if(c&&!f.getNestedEditable(c.wrapper,b.data.element))return c.fire("doubleclick", -{element:b.data.element})},null,null,1)}function u(a){a.editor.on("key",function(b){var c=a.focused,d=a.widgetHoldingFocusedEditable,e;if(c)e=c.fire("key",{keyCode:b.data.keyCode});else if(d){c=b.data.keyCode;b=d.focusedEditable;if(c==CKEDITOR.CTRL+65){c=b.getBogus();d=d.editor.createRange();d.selectNodeContents(b);c&&d.setEndAt(c,CKEDITOR.POSITION_BEFORE_START);d.select();e=false}else if(c==8||c==46){e=d.editor.getSelection().getRanges();d=e[0];e=!(e.length==1&&d.collapsed&&d.checkBoundaryOfElement(b, -CKEDITOR[c==8?"START":"END"]))}else e=void 0}return e},null,null,1)}function y(a){function b(c){a.focused&&B(a.focused,c.name=="cut")}var c=a.editor;c.on("contentDom",function(){var a=c.editable();a.attachListener(a,"copy",b);a.attachListener(a,"cut",b)})}function v(a){var b=a.editor;b.on("selectionCheck",function(){a.fire("checkSelection")});a.on("checkSelection",a.checkSelection,a);b.on("selectionChange",function(c){var d=(c=f.getNestedEditable(b.editable(),c.data.selection.getStartElement()))&& -a.getByElement(c),e=a.widgetHoldingFocusedEditable;if(e){if(e!==d||!e.focusedEditable.equals(c)){n(a,e,null);d&&c&&n(a,d,c)}}else d&&c&&n(a,d,c)});b.on("dataReady",function(){s(a).commit()});b.on("blur",function(){var b;(b=a.focused)&&k(a,b);(b=a.widgetHoldingFocusedEditable)&&n(a,b,null)})}function w(a){var b=a.editor,c={};b.on("toDataFormat",function(b){var d=CKEDITOR.tools.getNextNumber(),e=[];b.data.downcastingSessionId=d;c[d]=e;b.data.dataValue.forEach(function(b){var c=b.attributes,d;if("data-cke-widget-id"in -c){if(c=a.instances[c["data-cke-widget-id"]]){d=b.getFirst(f.isParserWidgetElement);e.push({wrapper:b,element:d,widget:c,editables:{}});d.attributes["data-cke-widget-keep-attr"]!="1"&&delete d.attributes["data-widget"]}}else if("data-cke-widget-editable"in c){e[e.length-1].editables[c["data-cke-widget-editable"]]=b;return false}},CKEDITOR.NODE_ELEMENT,true)},null,null,8);b.on("toDataFormat",function(a){if(a.data.downcastingSessionId)for(var a=c[a.data.downcastingSessionId],b,d,e,f,g,h;b=a.shift();){d= -b.widget;e=b.element;f=d._.downcastFn&&d._.downcastFn.call(d,e);for(h in b.editables){g=b.editables[h];delete g.attributes.contenteditable;g.setHtml(d.editables[h].getData())}f||(f=e);b.wrapper.replaceWith(f)}},null,null,13);b.on("contentDomUnload",function(){a.destroyAll(true)})}function t(a){var b=a.editor,c,d;b.on("toHtml",function(b){var d=e(a),g;for(b.data.dataValue.forEach(d.iterator,CKEDITOR.NODE_ELEMENT,true);g=d.toBeWrapped.pop();){var h=g[0],i=h.parent;i.type==CKEDITOR.NODE_ELEMENT&&i.attributes["data-cke-widget-wrapper"]&& -i.replaceWith(h);a.wrapElement(g[0],g[1])}c=b.data.protectedWhitespaces?b.data.dataValue.children.length==3&&f.isParserWidgetWrapper(b.data.dataValue.children[1]):b.data.dataValue.children.length==1&&f.isParserWidgetWrapper(b.data.dataValue.children[0])},null,null,8);b.on("dataReady",function(){if(d)for(var c=b.editable().find(".cke_widget_wrapper"),e,g,h=0,i=c.count();h<i;++h){e=c.getItem(h);g=e.getFirst(f.isDomWidgetElement);if(g.type==CKEDITOR.NODE_ELEMENT&&g.data("widget")){g.replace(e);a.wrapElement(g)}else e.remove()}d= -0;a.destroyAll(true);a.initOnAll()});b.on("loadSnapshot",function(b){/data-cke-widget/.test(b.data)&&(d=1);a.destroyAll(true)},null,null,9);b.on("paste",function(a){a=a.data;a.dataValue=a.dataValue.replace(Z,p);if(a.range)if(a=f.getNestedEditable(b.editable(),a.range.startContainer))(a=CKEDITOR.filter.instances[a.data("cke-filter")])&&b.setActiveFilter(a)});b.on("afterInsertHtml",function(d){if(d.data.intoRange)a.checkWidgets({initOnlyNew:true});else{b.fire("lockSnapshot");a.checkWidgets({initOnlyNew:true, -focusInited:c});b.fire("unlockSnapshot")}})}function s(a){var b=a.selected,c=[],d=b.slice(0),e=null;return{select:function(a){CKEDITOR.tools.indexOf(b,a)<0&&c.push(a);a=CKEDITOR.tools.indexOf(d,a);a>=0&&d.splice(a,1);return this},focus:function(a){e=a;return this},commit:function(){var f=a.focused!==e,g,h;a.editor.fire("lockSnapshot");for(f&&(g=a.focused)&&k(a,g);g=d.pop();){b.splice(CKEDITOR.tools.indexOf(b,g),1);if(g.isInited()){h=g.editor.checkDirty();g.setSelected(false);!h&&g.editor.resetDirty()}}if(f&& -e){h=a.editor.checkDirty();a.focused=e;a.fire("widgetFocused",{widget:e});e.setFocused(true);!h&&a.editor.resetDirty()}for(;g=c.pop();){b.push(g);g.setSelected(true)}a.editor.fire("unlockSnapshot")}}}function z(a,b,c){var d=0,b=A(b),e=a.data.classes||{},f;if(b){for(e=CKEDITOR.tools.clone(e);f=b.pop();)if(c)e[f]||(d=e[f]=1);else if(e[f]){delete e[f];d=1}d&&a.setData("classes",e)}}function x(a){a.cancel()}function B(a,b){var c=a.editor,d=c.document;if(!d.getById("cke_copybin")){var e=c.blockless||CKEDITOR.env.ie? -"span":"div",f=d.createElement(e),g=d.createElement(e),e=CKEDITOR.env.ie&&CKEDITOR.env.version<9;g.setAttributes({id:"cke_copybin","data-cke-temp":"1"});f.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"});f.setStyle(c.config.contentsLangDirection=="ltr"?"left":"right","-5000px");var h=c.createRange();h.setStartBefore(a.wrapper);h.setEndAfter(a.wrapper);f.setHtml('<span data-cke-copybin-start="1">​</span>'+c.editable().getHtmlFromRange(h).getHtml()+'<span data-cke-copybin-end="1">​</span>'); -c.fire("saveSnapshot");c.fire("lockSnapshot");g.append(f);c.editable().append(g);var i=c.on("selectionChange",x,null,null,0),j=a.repository.on("checkSelection",x,null,null,0);if(e)var k=d.getDocumentElement().$,m=k.scrollTop;h=c.createRange();h.selectNodeContents(f);h.select();if(e)k.scrollTop=m;setTimeout(function(){b||a.focus();g.remove();i.removeListener();j.removeListener();c.fire("unlockSnapshot");if(b){a.repository.del(a);c.fire("saveSnapshot")}},100)}}function A(a){return(a=(a=a.getDefinition().attributes)&& -a["class"])?a.split(/\s+/):null}function D(){var a=CKEDITOR.document.getActive(),b=this.editor,c=b.editable();(c.isInline()?c:b.document.getWindow().getFrame()).equals(a)&&b.focusManager.focus(c)}function C(){CKEDITOR.env.gecko&&this.editor.unlockSelection();if(!CKEDITOR.env.webkit){this.editor.forceNextSelectionCheck();this.editor.selectionChange(1)}}function J(a){var b=null;a.on("data",function(){var a=this.data.classes,c;if(b!=a){for(c in b)(!a||!a[c])&&this.removeClass(c);for(c in a)this.addClass(c); -b=a}})}function E(a){if(a.draggable){var b=a.editor,c=a.wrapper.getLast(f.isDomDragHandlerContainer),d;if(c)d=c.findOne("img");else{c=new CKEDITOR.dom.element("span",b.document);c.setAttributes({"class":"cke_reset cke_widget_drag_handler_container",style:"background:rgba(220,220,220,0.5);background-image:url("+b.plugins.widget.path+"images/handle.png)"});d=new CKEDITOR.dom.element("img",b.document);d.setAttributes({"class":"cke_reset cke_widget_drag_handler","data-cke-widget-drag-handler":"1",src:CKEDITOR.tools.transparentImageData, -width:O,title:b.lang.widget.move,height:O});a.inline&&d.setAttribute("draggable","true");c.append(d);a.wrapper.append(c)}a.wrapper.on("dragover",function(a){a.data.preventDefault()});a.wrapper.on("mouseenter",a.updateDragHandlerPosition,a);setTimeout(function(){a.on("data",a.updateDragHandlerPosition,a)},50);if(!a.inline){d.on("mousedown",F,a);if(CKEDITOR.env.ie&&CKEDITOR.env.version<9)d.on("dragstart",function(a){a.data.preventDefault(true)})}a.dragHandlerContainer=c}}function F(a){function b(){var c; -for(k.reset();c=h.pop();)c.removeListener();var d=i;c=a.sender;var e=this.repository.finder,f=this.repository.liner,g=this.editor,j=this.editor.editable();if(!CKEDITOR.tools.isEmpty(f.visible)){d=e.getRange(d[0]);this.focus();g.fire("drop",{dropRange:d,target:d.startContainer})}j.removeClass("cke_widget_dragging");f.hideVisible();g.fire("dragend",{target:c})}var c=this.repository.finder,d=this.repository.locator,e=this.repository.liner,f=this.editor,g=f.editable(),h=[],i=[];this.repository._.draggedWidget= -this;var j=c.greedySearch(),k=CKEDITOR.tools.eventsBuffer(50,function(){m=d.locate(j);i=d.sort(l,1);if(i.length){e.prepare(j,m);e.placeLine(i[0]);e.cleanup()}}),m,l;g.addClass("cke_widget_dragging");h.push(g.on("mousemove",function(a){l=a.data.$.clientY;k.input()}));f.fire("dragstart",{target:a.sender});h.push(f.document.once("mouseup",b,this));g.isInline()||h.push(CKEDITOR.document.once("mouseup",b,this))}function M(a){var b,c,d=a.editables;a.editables={};if(a.editables)for(b in d){c=d[b];a.initEditable(b, -typeof c=="string"?{selector:c}:c)}}function H(a){if(a.mask){var b=a.wrapper.findOne(".cke_widget_mask");if(!b){b=new CKEDITOR.dom.element("img",a.editor.document);b.setAttributes({src:CKEDITOR.tools.transparentImageData,"class":"cke_reset cke_widget_mask"});a.wrapper.append(b)}a.mask=b}}function N(a){if(a.parts){var b={},c,d;for(d in a.parts){c=a.wrapper.findOne(a.parts[d]);b[d]=c}a.parts=b}}function K(a,b){U(a);N(a);M(a);H(a);E(a);J(a);if(CKEDITOR.env.ie&&CKEDITOR.env.version<9)a.wrapper.on("dragstart", -function(b){var c=b.data.getTarget();!f.getNestedEditable(a,c)&&(!a.inline||!f.isDomDragHandler(c))&&b.data.preventDefault()});a.wrapper.removeClass("cke_widget_new");a.element.addClass("cke_widget_element");a.on("key",function(b){b=b.data.keyCode;if(b==13)a.edit();else{if(b==CKEDITOR.CTRL+67||b==CKEDITOR.CTRL+88){B(a,b==CKEDITOR.CTRL+88);return}if(b in P||CKEDITOR.CTRL&b||CKEDITOR.ALT&b)return}return false},null,null,999);a.on("doubleclick",function(b){a.edit()&&b.cancel()});if(b.data)a.on("data", -b.data);if(b.edit)a.on("edit",b.edit)}function U(a){(a.wrapper=a.element.getParent()).setAttribute("data-cke-widget-id",a.id)}function S(a){a.element.data("cke-widget-data",encodeURIComponent(JSON.stringify(a.data)))}var O=15;CKEDITOR.plugins.add("widget",{requires:"lineutils,clipboard",onLoad:function(){CKEDITOR.addCss(".cke_widget_wrapper{position:relative;outline:none}.cke_widget_inline{display:inline-block}.cke_widget_wrapper:hover>.cke_widget_element{outline:2px solid yellow;cursor:default}.cke_widget_wrapper:hover .cke_widget_editable{outline:2px solid yellow}.cke_widget_wrapper.cke_widget_focused>.cke_widget_element,.cke_widget_wrapper .cke_widget_editable.cke_widget_editable_focused{outline:2px solid #ace}.cke_widget_editable{cursor:text}.cke_widget_drag_handler_container{position:absolute;width:"+ -O+"px;height:0;display:none;opacity:0.75;transition:height 0s 0.2s;line-height:0}.cke_widget_wrapper:hover>.cke_widget_drag_handler_container{height:"+O+"px;transition:none}.cke_widget_drag_handler_container:hover{opacity:1}img.cke_widget_drag_handler{cursor:move;width:"+O+"px;height:"+O+"px;display:inline-block}.cke_widget_mask{position:absolute;top:0;left:0;width:100%;height:100%;display:block}.cke_editable.cke_widget_dragging, .cke_editable.cke_widget_dragging *{cursor:move !important}")},beforeInit:function(b){b.widgets= -new a(b)},afterInit:function(a){var b=a.widgets.registered,c,d,e;for(d in b){c=b[d];(e=c.button)&&a.ui.addButton&&a.ui.addButton(CKEDITOR.tools.capitalize(c.name,true),{label:e,command:c.name,toolbar:"insert,10"})}o(a)}});a.prototype={MIN_SELECTION_CHECK_INTERVAL:500,add:function(a,b){b=CKEDITOR.tools.prototypedCopy(b);b.name=a;b._=b._||{};this.editor.fire("widgetDefinition",b);if(b.template)b.template=new CKEDITOR.template(b.template);d(this.editor,b);h(this,b);return this.registered[a]=b},addUpcastCallback:function(a){this._.upcastCallbacks.push(a)}, -checkSelection:function(){var a=this.editor.getSelection(),b=a.getSelectedElement(),c=s(this),d;if(b&&(d=this.getByElement(b,true)))return c.focus(d).select(d).commit();a=a.getRanges()[0];if(!a||a.collapsed)return c.commit();a=new CKEDITOR.dom.walker(a);for(a.evaluator=f.isDomWidgetWrapper;b=a.next();)c.select(this.getByElement(b));c.commit()},checkWidgets:function(a){this.fire("checkWidgets",CKEDITOR.tools.copy(a||{}))},del:function(a){if(this.focused===a){var b=a.editor,c=b.createRange(),d;if(!(d= -c.moveToClosestEditablePosition(a.wrapper,true)))d=c.moveToClosestEditablePosition(a.wrapper,false);d&&b.getSelection().selectRanges([c])}a.wrapper.remove();this.destroy(a,true)},destroy:function(a,b){this.widgetHoldingFocusedEditable===a&&n(this,a,null,b);a.destroy(b);delete this.instances[a.id];this.fire("instanceDestroyed",a)},destroyAll:function(a,b){var c,d,e=this.instances;if(b&&!a){d=b.find(".cke_widget_wrapper");for(var e=d.count(),f=0;f<e;++f)(c=this.getByElement(d.getItem(f),true))&&this.destroy(c)}else for(d in e){c= -e[d];this.destroy(c,a)}},finalizeCreation:function(a){if((a=a.getFirst())&&f.isDomWidgetWrapper(a)){this.editor.insertElement(a);a=this.getByElement(a);a.ready=true;a.fire("ready");a.focus()}},getByElement:function(){var a={div:1,span:1};return function(b,c){if(!b)return null;var d=b.is(a)&&b.data("cke-widget-id");if(!c&&!d){var e=this.editor.editable();do b=b.getParent();while(b&&!b.equals(e)&&!(d=b.is(a)&&b.data("cke-widget-id")))}return this.instances[d]||null}}(),initOn:function(a,b,c){b?typeof b== -"string"&&(b=this.registered[b]):b=this.registered[a.data("widget")];if(!b)return null;var d=this.wrapElement(a,b.name);if(d){if(d.hasClass("cke_widget_new")){a=new f(this,this._.nextId++,a,b,c);if(a.isInited())return this.instances[a.id]=a;return null}return this.getByElement(a)}return null},initOnAll:function(a){for(var a=(a||this.editor.editable()).find(".cke_widget_new"),b=[],c,d=a.count();d--;)(c=this.initOn(a.getItem(d).getFirst(f.isDomWidgetElement)))&&b.push(c);return b},onWidget:function(a){var b= -Array.prototype.slice.call(arguments);b.shift();for(var c in this.instances){var d=this.instances[c];d.name==a&&d.on.apply(d,b)}this.on("instanceCreated",function(c){c=c.data;c.name==a&&c.on.apply(c,b)})},parseElementClasses:function(a){if(!a)return null;for(var a=CKEDITOR.tools.trim(a).split(/\s+/),b,c={},d=0;b=a.pop();)b.indexOf("cke_")==-1&&(c[b]=d=1);return d?c:null},wrapElement:function(a,b){var d=null,e,f;if(a instanceof CKEDITOR.dom.element){e=this.registered[b||a.data("widget")];if(!e)return null; -if((d=a.getParent())&&d.type==CKEDITOR.NODE_ELEMENT&&d.data("cke-widget-wrapper"))return d;a.hasAttribute("data-cke-widget-keep-attr")||a.data("cke-widget-keep-attr",a.data("widget")?1:0);b&&a.data("widget",b);f=l(e,a.getName());d=new CKEDITOR.dom.element(f?"span":"div");d.setAttributes(c(f));d.data("cke-display-name",e.pathName?e.pathName:a.getName());a.getParent(true)&&d.replace(a);a.appendTo(d)}else if(a instanceof CKEDITOR.htmlParser.element){e=this.registered[b||a.attributes["data-widget"]]; -if(!e)return null;if((d=a.parent)&&d.type==CKEDITOR.NODE_ELEMENT&&d.attributes["data-cke-widget-wrapper"])return d;"data-cke-widget-keep-attr"in a.attributes||(a.attributes["data-cke-widget-keep-attr"]=a.attributes["data-widget"]?1:0);b&&(a.attributes["data-widget"]=b);f=l(e,a.name);d=new CKEDITOR.htmlParser.element(f?"span":"div",c(f));d.attributes["data-cke-display-name"]=e.pathName?e.pathName:a.name;e=a.parent;var h;if(e){h=a.getIndex();a.remove()}d.add(a);e&&g(e,h,d)}return d},_tests_createEditableFilter:i}; -CKEDITOR.event.implementOn(a.prototype);f.prototype={addClass:function(a){this.element.addClass(a)},applyStyle:function(a){z(this,a,1)},checkStyleActive:function(a){var a=A(a),b;if(!a)return false;for(;b=a.pop();)if(!this.hasClass(b))return false;return true},destroy:function(a){this.fire("destroy");if(this.editables)for(var b in this.editables)this.destroyEditable(b,a);if(!a){this.element.data("cke-widget-keep-attr")=="0"&&this.element.removeAttribute("data-widget");this.element.removeAttributes(["data-cke-widget-data", -"data-cke-widget-keep-attr"]);this.element.removeClass("cke_widget_element");this.element.replace(this.wrapper)}this.wrapper=null},destroyEditable:function(a,b){var c=this.editables[a];c.removeListener("focus",C);c.removeListener("blur",D);this.editor.focusManager.remove(c);if(!b){this.repository.destroyAll(false,c);c.removeClass("cke_widget_editable");c.removeClass("cke_widget_editable_focused");c.removeAttributes(["contenteditable","data-cke-widget-editable","data-cke-enter-mode"])}delete this.editables[a]}, -edit:function(){var a={dialog:this.dialog},b=this;if(this.fire("edit",a)===false||!a.dialog)return false;this.editor.openDialog(a.dialog,function(a){var c,d;if(b.fire("dialog",a)!==false){c=a.on("show",function(){a.setupContent(b)});d=a.on("ok",function(){var c,d=b.on("data",function(a){c=1;a.cancel()},null,null,0);b.editor.fire("saveSnapshot");a.commitContent(b);d.removeListener();if(c){b.fire("data",b.data);b.editor.fire("saveSnapshot")}});a.once("hide",function(){c.removeListener();d.removeListener()})}}); -return true},getClasses:function(){return this.repository.parseElementClasses(this.element.getAttribute("class"))},hasClass:function(a){return this.element.hasClass(a)},initEditable:function(a,c){var d=this._findOneNotNested(c.selector);if(d&&d.is(CKEDITOR.dtd.$editable)){d=new b(this.editor,d,{filter:i.call(this.repository,this.name,a,c)});this.editables[a]=d;d.setAttributes({contenteditable:"true","data-cke-widget-editable":a,"data-cke-enter-mode":d.enterMode});d.filter&&d.data("cke-filter",d.filter.id); -d.addClass("cke_widget_editable");d.removeClass("cke_widget_editable_focused");c.pathName&&d.data("cke-display-name",c.pathName);this.editor.focusManager.add(d);d.on("focus",C,this);CKEDITOR.env.ie&&d.on("blur",D,this);d._.initialSetData=true;d.setData(d.getHtml());return true}return false},_findOneNotNested:function(a){for(var a=this.wrapper.find(a),b,c,d=0;d<a.count();d++){b=a.getItem(d);c=b.getAscendant(f.isDomWidgetWrapper);if(this.wrapper.equals(c))return b}return null},isInited:function(){return!(!this.wrapper|| -!this.inited)},isReady:function(){return this.isInited()&&this.ready},focus:function(){var a=this.editor.getSelection();if(a){var b=this.editor.checkDirty();a.fake(this.wrapper);!b&&this.editor.resetDirty()}this.editor.focus()},removeClass:function(a){this.element.removeClass(a)},removeStyle:function(a){z(this,a,0)},setData:function(a,b){var c=this.data,d=0;if(typeof a=="string"){if(c[a]!==b){c[a]=b;d=1}}else{var e=a;for(a in e)if(c[a]!==e[a]){d=1;c[a]=e[a]}}if(d&&this.dataReady){S(this);this.fire("data", -c)}return this},setFocused:function(a){this.wrapper[a?"addClass":"removeClass"]("cke_widget_focused");this.fire(a?"focus":"blur");return this},setSelected:function(a){this.wrapper[a?"addClass":"removeClass"]("cke_widget_selected");this.fire(a?"select":"deselect");return this},updateDragHandlerPosition:function(){var a=this.editor,b=this.element.$,c=this._.dragHandlerOffset,b={x:b.offsetLeft,y:b.offsetTop-O};if(!c||!(b.x==c.x&&b.y==c.y)){c=a.checkDirty();a.fire("lockSnapshot");this.dragHandlerContainer.setStyles({top:b.y+ -"px",left:b.x+"px",display:"block"});a.fire("unlockSnapshot");!c&&a.resetDirty();this._.dragHandlerOffset=b}}};CKEDITOR.event.implementOn(f.prototype);f.getNestedEditable=function(a,b){return!b||b.equals(a)?null:f.isDomNestedEditable(b)?b:f.getNestedEditable(a,b.getParent())};f.isDomDragHandler=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-drag-handler")};f.isDomDragHandlerContainer=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_widget_drag_handler_container")}; -f.isDomNestedEditable=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-editable")};f.isDomWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-widget")};f.isDomWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-wrapper")};f.isParserWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&!!a.attributes["data-widget"]};f.isParserWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&& -!!a.attributes["data-cke-widget-wrapper"]};b.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.dom.element.prototype),{setData:function(a){this._.initialSetData||this.editor.widgets.destroyAll(false,this);this._.initialSetData=false;a=this.editor.dataProcessor.toHtml(a,{context:this.getName(),filter:this.filter,enterMode:this.enterMode});this.setHtml(a);this.editor.widgets.initOnAll(this)},getData:function(){return this.editor.dataProcessor.toDataFormat(this.getHtml(),{context:this.getName(), -filter:this.filter,enterMode:this.enterMode})}});var Z=RegExp('^(?:<(?:div|span)(?: data-cke-temp="1")?(?: id="cke_copybin")?(?: data-cke-temp="1")?>)?(?:<(?:div|span)(?: style="[^"]+")?>)?<span [^>]*data-cke-copybin-start="1"[^>]*>.?</span>([\\s\\S]+)<span [^>]*data-cke-copybin-end="1"[^>]*>.?</span>(?:</(?:div|span)>)?(?:</(?:div|span)>)?$',"i"),P={37:1,38:1,39:1,40:1,8:1,46:1};(function(){function a(){}function b(a,c,d){if(!d||!this.checkElement(a))return false;return(a=d.widgets.getByElement(a, -true))&&a.checkStyleActive(this)}CKEDITOR.style.addCustomHandler({type:"widget",setup:function(a){this.widget=a.widget},apply:function(a){a instanceof CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&a.widgets.focused.applyStyle(this)},remove:function(a){a instanceof CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&a.widgets.focused.removeStyle(this)},checkActive:function(a,b){return this.checkElementMatch(a.lastElement,0,b)},checkApplicable:function(a,b){return!(b instanceof CKEDITOR.editor)? -false:this.checkElement(a.lastElement)},checkElementMatch:b,checkElementRemovable:b,checkElement:function(a){if(!f.isDomWidgetWrapper(a))return false;return(a=a.getFirst(f.isDomWidgetElement))&&a.data("widget")==this.widget},buildPreview:function(a){return a||this._.definition.name},toAllowedContentRules:function(a){if(!a)return null;var a=a.widgets.registered[this.widget],b,c={};if(!a)return null;if(a.styleableElements){b=this.getClassesArray();if(!b)return null;c[a.styleableElements]={classes:b, -propertiesOnly:true};return c}return a.styleToAllowedContentRules?a.styleToAllowedContentRules(this):null},getClassesArray:function(){var a=this._.definition.attributes&&this._.definition.attributes["class"];return a?CKEDITOR.tools.trim(a).split(/\s+/):null},applyToRange:a,removeFromRange:a,applyToObject:a})})();CKEDITOR.plugins.widget=f;f.repository=a;f.nestedEditable=b}(),"use strict",function(){function a(a){function d(){if(!this.deflated){if(a.widgets.focused==this.widget)this.focused=true;a.widgets.destroy(this.widget); -this.deflated=true}}function e(){var b=a.editable(),c=a.document;if(this.deflated){this.widget=a.widgets.initOn(this.element,"image",this.widget.data);if(this.widget.inline&&!(new CKEDITOR.dom.elementPath(this.widget.wrapper,b)).block){b=c.createElement(a.activeEnterMode==CKEDITOR.ENTER_P?"p":"div");b.replace(this.widget.wrapper);this.widget.wrapper.move(b)}if(this.focused){this.widget.focus();delete this.focused}delete this.deflated}else{var d=this.widget,b=h,c=d.wrapper,f=d.data.align,d=d.data.hasCaption; -if(b){for(var g=3;g--;)c.removeClass(b[g]);f=="center"?d&&c.addClass(b[1]):f!="none"&&c.addClass(b[o[f]])}else if(f=="center"){d?c.setStyle("text-align","center"):c.removeStyle("text-align");c.removeStyle("float")}else{f=="none"?c.removeStyle("float"):c.setStyle("float",f);c.removeStyle("text-align")}}}var h=a.config.image2_alignClasses,i=a.config.image2_captionedClass;return{allowedContent:c(a),requiredContent:"img[src,alt]",features:g(a),styleableElements:"img figure",contentTransformations:[["img[width]: sizeToAttribute"]], -editables:{caption:{selector:"figcaption",allowedContent:"br em strong sub sup u s; a[!href]"}},parts:{image:"img",caption:"figcaption"},dialog:"image2",template:q,data:function(){var b=this.features;if(this.data.hasCaption&&!a.filter.checkFeature(b.caption))this.data.hasCaption=false;if(this.data.align!="none"&&!a.filter.checkFeature(b.align))this.data.align="none";this.shiftState({widget:this,element:this.element,oldData:this.oldData,newData:this.data,deflate:d,inflate:e});if(this.data.link){if(!this.parts.link)this.parts.link= -this.parts.image.getParent()}else this.parts.link&&delete this.parts.link;this.parts.image.setAttributes({src:this.data.src,"data-cke-saved-src":this.data.src,alt:this.data.alt});if(this.oldData&&!this.oldData.hasCaption&&this.data.hasCaption)for(var c in this.data.classes)this.parts.image.removeClass(c);if(a.filter.checkFeature(b.dimension)){b=this.data;b={width:b.width,height:b.height};c=this.parts.image;for(var f in b)b[f]?c.setAttribute(f,b[f]):c.removeAttribute(f)}this.oldData=CKEDITOR.tools.extend({}, -this.data)},init:function(){var b=CKEDITOR.plugins.image2,c=this.parts.image,d={hasCaption:!!this.parts.caption,src:c.getAttribute("src"),alt:c.getAttribute("alt")||"",width:c.getAttribute("width")||"",height:c.getAttribute("height")||"",lock:this.ready?b.checkHasNaturalRatio(c):true},e=c.getAscendant("a");if(e&&this.wrapper.contains(e))this.parts.link=e;if(!d.align){c=d.hasCaption?this.element:c;if(h){if(c.hasClass(h[0]))d.align="left";else if(c.hasClass(h[2]))d.align="right";d.align?c.removeClass(h[o[d.align]]): -d.align="none"}else{d.align=c.getStyle("float")||"none";c.removeStyle("float")}}if(a.plugins.link&&this.parts.link){d.link=CKEDITOR.plugins.link.parseLinkAttributes(a,this.parts.link);if((c=d.link.advanced)&&c.advCSSClasses)c.advCSSClasses=CKEDITOR.tools.trim(c.advCSSClasses.replace(/cke_\S+/,""))}this.wrapper[(d.hasCaption?"remove":"add")+"Class"]("cke_image_nocaption");this.setData(d);a.filter.checkFeature(this.features.dimension)&&a.config.image2_disableResizer!==true&&k(this);this.shiftState= -b.stateShifter(this.editor);this.on("contextMenu",function(a){a.data.image=CKEDITOR.TRISTATE_OFF;if(this.parts.link||this.wrapper.getAscendant("a"))a.data.link=a.data.unlink=CKEDITOR.TRISTATE_OFF});this.on("dialog",function(a){a.data.widget=this},this)},addClass:function(a){l(this).addClass(a)},hasClass:function(a){return l(this).hasClass(a)},removeClass:function(a){l(this).removeClass(a)},getClasses:function(){var a=RegExp("^("+[].concat(i,h).join("|")+")$");return function(){var b=this.repository.parseElementClasses(l(this).getAttribute("class")), -c;for(c in b)a.test(c)&&delete b[c];return b}}(),upcast:f(a),downcast:b(a)}}function f(a){var b=d(a),c=a.config.image2_captionedClass;return function(a,d){var e={width:1,height:1},f=a.name,g;if(!a.attributes["data-cke-realelement"]){if(b(a)){if(f=="div")if(g=a.getFirst("figure")){a.replaceWith(g);a=g}d.align="center";g=a.getFirst("img")||a.getFirst("a").getFirst("img")}else f=="figure"&&a.hasClass(c)?g=a.getFirst("img")||a.getFirst("a").getFirst("img"):h(a)&&(g=a.name=="a"?a.children[0]:a);if(g){for(var i in e)(f= -g.attributes[i])&&f.match(p)&&delete g.attributes[i];return a}}}}function b(a){var b=a.config.image2_alignClasses;return function(a){var c=a.name=="a"?a.getFirst():a,d=c.attributes,e=this.data.align;if(!this.inline){var f=a.getFirst("span");f&&f.replaceWith(f.getFirst({img:1,a:1}))}if(e&&e!="none"){f=CKEDITOR.tools.parseCssText(d.style||"");e=="center"&&a.name=="figure"?a=a.wrapWith(new CKEDITOR.htmlParser.element("div",b?{"class":b[1]}:{style:"text-align:center"})):e in{left:1,right:1}&&(b?c.addClass(b[o[e]]): -f["float"]=e);if(!b&&!CKEDITOR.tools.isEmpty(f))d.style=CKEDITOR.tools.writeCssText(f)}return a}}function d(a){var b=a.config.image2_captionedClass,c=a.config.image2_alignClasses,d={figure:1,a:1,img:1};return function(e){if(!(e.name in{div:1,p:1}))return false;var f=e.children;if(f.length!==1)return false;f=f[0];if(!(f.name in d))return false;if(e.name=="p"){if(!h(f))return false}else if(f.name=="figure"){if(!f.hasClass(b))return false}else if(a.enterMode==CKEDITOR.ENTER_P||!h(f))return false;return(c? -e.hasClass(c[1]):CKEDITOR.tools.parseCssText(e.attributes.style||"",true)["text-align"]=="center")?true:false}}function h(a){return a.name=="img"?true:a.name=="a"?a.children.length==1&&a.getFirst("img"):false}function k(a){var b=a.editor,c=b.editable(),d=b.document,e=a.resizer=d.createElement("span");e.addClass("cke_image_resizer");e.setAttribute("title",b.lang.image2.resizer);e.append(new CKEDITOR.dom.text("​",d));if(a.inline)a.wrapper.append(e);else{var f=a.parts.link||a.parts.image,g=f.getParent(), -h=d.createElement("span");h.addClass("cke_image_resizer_wrapper");h.append(f);h.append(e);a.element.append(h,true);g.is("span")&&g.remove()}e.on("mousedown",function(f){function g(a,b,c){var e=CKEDITOR.document,f=[];d.equals(e)||f.push(e.on(a,b));f.push(d.on(a,b));if(c)for(a=f.length;a--;)c.push(f.pop())}function h(){S=o+k*P;O=Math.round(S/q)}function i(){O=p-L;S=Math.round(O*q)}var j=a.parts.image,k=a.data.align=="right"?-1:1,l=f.data.$.screenX,n=f.data.$.screenY,o=j.$.clientWidth,p=j.$.clientHeight, -q=o/p,s=[],t="cke_image_s"+(!~k?"w":"e"),w,S,O,Z,P,L,I;b.fire("saveSnapshot");g("mousemove",function(a){w=a.data.$;P=w.screenX-l;L=n-w.screenY;I=Math.abs(P/L);k==1?P<=0?L<=0?h():I>=q?h():i():L<=0?I>=q?i():h():i():P<=0?L<=0?I>=q?i():h():i():L<=0?h():I>=q?h():i();if(S>=15&&O>=15){j.setAttributes({width:S,height:O});Z=true}else Z=false},s);g("mouseup",function(){for(var d;d=s.pop();)d.removeListener();c.removeClass(t);e.removeClass("cke_image_resizing");if(Z){a.setData({width:S,height:O});b.fire("saveSnapshot")}Z= -false},s);c.addClass(t);e.addClass("cke_image_resizing")});a.on("data",function(){e[a.data.align=="right"?"addClass":"removeClass"]("cke_image_resizer_left")})}function j(a){var b=[],c;return function(d){var f=a.getCommand("justify"+d);if(f){b.push(function(){f.refresh(a,a.elementPath())});if(d in{right:1,left:1,center:1})f.on("exec",function(c){var f=e(a);if(f){f.setData("align",d);for(f=b.length;f--;)b[f]();c.cancel()}});f.on("refresh",function(b){var f=e(a),g={right:1,left:1,center:1};if(f){c=== -void 0&&(c=a.filter.checkFeature(a.widgets.registered.image.features.align));c?this.setState(f.data.align==d?CKEDITOR.TRISTATE_ON:d in g?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED):this.setState(CKEDITOR.TRISTATE_DISABLED);b.cancel()}})}}}function i(a){if(a.plugins.link){CKEDITOR.on("dialogDefinition",function(b){b=b.data;if(b.name=="link"){var b=b.definition,c=b.onShow,d=b.onOk;b.onShow=function(){var b=e(a);b&&(b.inline?!b.wrapper.getAscendant("a"):1)?this.setupContent(b.data.link||{}):c.apply(this, -arguments)};b.onOk=function(){var b=e(a);if(b&&(b.inline?!b.wrapper.getAscendant("a"):1)){var c={};this.commitContent(c);b.setData("link",c)}else d.apply(this,arguments)}}});a.getCommand("unlink").on("exec",function(b){var c=e(a);if(c&&c.parts.link){c.setData("link",null);this.refresh(a,a.elementPath());b.cancel()}});a.getCommand("unlink").on("refresh",function(b){var c=e(a);if(c){this.setState(c.data.link||c.wrapper.getAscendant("a")?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);b.cancel()}})}} -function e(a){return(a=a.widgets.focused)&&a.name=="image"?a:null}function c(a){var b=a.config.image2_alignClasses,a={div:{match:d(a)},p:{match:d(a)},img:{attributes:"!src,alt,width,height"},figure:{classes:"!"+a.config.image2_captionedClass},figcaption:true};if(b){a.div.classes=b[1];a.p.classes=a.div.classes;a.img.classes=b[0]+","+b[2];a.figure.classes=a.figure.classes+(","+a.img.classes)}else{a.div.styles="text-align";a.p.styles="text-align";a.img.styles="float";a.figure.styles="float,display"}return a} -function g(a){a=a.config.image2_alignClasses;return{dimension:{requiredContent:"img[width,height]"},align:{requiredContent:"img"+(a?"("+a[0]+")":"{float}")},caption:{requiredContent:"figcaption"}}}function l(a){return a.data.hasCaption?a.element:a.parts.image}var q='<img alt="" src="" />',n=new CKEDITOR.template('<figure class="{captionedClass}">'+q+"<figcaption>{captionPlaceholder}</figcaption></figure>"),o={left:0,center:1,right:2},p=/^\s*(\d+\%)\s*$/i;CKEDITOR.plugins.add("image2",{requires:"widget,dialog", -icons:"image",hidpi:true,onLoad:function(){CKEDITOR.addCss(".cke_image_nocaption{line-height:0}.cke_editable.cke_image_sw, .cke_editable.cke_image_sw *{cursor:sw-resize !important}.cke_editable.cke_image_se, .cke_editable.cke_image_se *{cursor:se-resize !important}.cke_image_resizer{display:none;position:absolute;width:10px;height:10px;bottom:-5px;right:-5px;background:#000;outline:1px solid #fff;line-height:0;cursor:se-resize;}.cke_image_resizer_wrapper{position:relative;display:inline-block;line-height:0;}.cke_image_resizer.cke_image_resizer_left{right:auto;left:-5px;cursor:sw-resize;}.cke_widget_wrapper:hover .cke_image_resizer,.cke_image_resizer.cke_image_resizing{display:block}.cke_widget_wrapper>a{display:inline-block}")}, -init:function(b){var c=b.config,d=b.lang.image2,e=a(b);c.filebrowserImage2BrowseUrl=c.filebrowserImageBrowseUrl;c.filebrowserImage2UploadUrl=c.filebrowserImageUploadUrl;e.pathName=d.pathName;e.editables.caption.pathName=d.pathNameCaption;b.widgets.add("image",e);b.ui.addButton&&b.ui.addButton("Image",{label:b.lang.common.image,command:"image",toolbar:"insert,10"});if(b.contextMenu){b.addMenuGroup("image",10);b.addMenuItem("image",{label:d.menu,command:"image",group:"image"})}CKEDITOR.dialog.add("image2", -this.path+"dialogs/image2.js")},afterInit:function(a){var b={left:1,right:1,center:1,block:1},c=j(a),d;for(d in b)c(d);i(a)}});CKEDITOR.plugins.image2={stateShifter:function(a){function b(a,f){var g={};e?g.attributes={"class":e[1]}:g.styles={"text-align":"center"};g=d.createElement(a.activeEnterMode==CKEDITOR.ENTER_P?"p":"div",g);c(g,f);f.move(g);return g}function c(b,d){if(d.getParent()){var e=a.createRange();e.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START);d.remove();g.insertElementIntoRange(b, -e)}else b.replace(d)}var d=a.document,e=a.config.image2_alignClasses,f=a.config.image2_captionedClass,g=a.editable(),h=["hasCaption","align","link"],i={align:function(c,d,f){var g=c.element;if(c.changed.align){if(!c.newData.hasCaption){if(f=="center"){c.deflate();c.element=b(a,g)}if(!c.changed.hasCaption&&d=="center"&&f!="center"){c.deflate();d=g.findOne("a,img");d.replace(g);c.element=d}}}else if(f=="center"&&c.changed.hasCaption&&!c.newData.hasCaption){c.deflate();c.element=b(a,g)}!e&&g.is("figure")&& -(f=="center"?g.setStyle("display","inline-block"):g.removeStyle("display"))},hasCaption:function(b,e,g){if(b.changed.hasCaption){e=b.element.is({img:1,a:1})?b.element:b.element.findOne("a,img");b.deflate();if(g){g=CKEDITOR.dom.element.createFromHtml(n.output({captionedClass:f,captionPlaceholder:a.lang.image2.captionPlaceholder}),d);c(g,b.element);e.replace(g.findOne("img"));b.element=g}else{e.replace(b.element);b.element=e}}},link:function(b,c,e){if(b.changed.link){var f=b.element.is("img")?b.element: -b.element.findOne("img"),g=b.element.is("a")?b.element:b.element.findOne("a"),h=b.element.is("a")&&!e||b.element.is("img")&&e,i;h&&b.deflate();if(e){if(!c){i=d.createElement("a",{attributes:{href:b.newData.link.url}});i.replace(f);f.move(i)}e=CKEDITOR.plugins.link.getLinkAttributes(a,e);CKEDITOR.tools.isEmpty(e.set)||(i||g).setAttributes(e.set);e.removed.length&&(i||g).removeAttributes(e.removed)}else{e=g.findOne("img");e.replace(g);i=e}if(h)b.element=i}}};return function(a){var b,c;a.changed={}; -for(c=0;c<h.length;c++){b=h[c];a.changed[b]=a.oldData?a.oldData[b]!==a.newData[b]:false}for(c=0;c<h.length;c++){b=h[c];i[b](a,a.oldData?a.oldData[b]:null,a.newData[b])}a.inflate()}},checkHasNaturalRatio:function(a){var b=a.$,a=this.getNatural(a);return Math.round(b.clientWidth/a.width*a.height)==b.clientHeight||Math.round(b.clientHeight/a.height*a.width)==b.clientWidth},getNatural:function(a){if(a.$.naturalWidth)a={width:a.$.naturalWidth,height:a.$.naturalHeight};else{var b=new Image;b.src=a.getAttribute("src"); -a={width:b.width,height:b.height}}return a}}}(),CKEDITOR.config.image2_captionedClass="image",CKEDITOR.config.plugins="dialogui,dialog,about,a11yhelp,basicstyles,blockquote,clipboard,panel,floatpanel,menu,contextmenu,resize,button,toolbar,elementspath,enterkey,entities,popup,filebrowser,floatingspace,listblock,richcombo,format,htmlwriter,horizontalrule,wysiwygarea,indent,indentlist,list,magicline,maximize,pastetext,pastefromword,removeformat,sourcearea,specialchar,stylescombo,tab,table,tabletools,undo,justify,showblocks,showborders,tableresize,sharedspace,sourcedialog,lineutils,widget,image2", -CKEDITOR.config.skin="moono",function(){var a=function(a,b){for(var d=CKEDITOR.getUrl("plugins/"+b),a=a.split(","),h=0;h<a.length;h++)CKEDITOR.skin.icons[a[h]]={path:d,offset:-a[++h],bgsize:a[++h]}};CKEDITOR.env.hidpi?a("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,blockquote,168,,copy-rtl,192,,copy,216,,cut-rtl,240,,cut,264,,paste-rtl,288,,paste,312,,horizontalrule,336,,image,360,,indent-rtl,384,,indent,408,,outdent-rtl,432,,outdent,456,,justifyblock,480,,justifycenter,504,,justifyleft,528,,justifyright,552,,bulletedlist-rtl,576,,bulletedlist,600,,numberedlist-rtl,624,,numberedlist,648,,maximize,672,,pastefromword-rtl,696,,pastefromword,720,,pastetext-rtl,744,,pastetext,768,,removeformat,792,,showblocks-rtl,816,,showblocks,840,,source-rtl,864,,source,888,,sourcedialog-rtl,912,,sourcedialog,936,,specialchar,960,,table,984,,redo-rtl,1008,,redo,1032,,undo-rtl,1056,,undo,1080,,simplebox,2208,auto", +return function(g,f){var m=g.uiColor,m={id:"."+g.id,defaultBorder:a(m,-.1),defaultGradient:e(a(m,.9),m),lightGradient:e(a(m,1),a(m,.7)),mediumGradient:e(a(m,.8),a(m,.5)),ckeButtonOn:e(a(m,.6),a(m,.7)),ckeResizer:a(m,-.4),ckeToolbarSeparator:a(m,.5),ckeColorauto:a(m,.8),dialogBody:a(m,.7),dialogTabSelected:e("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:a(m,-.6),elementsPathBg:m,menubuttonIcon:a(m,.5),menubuttonIconHover:a(m,.3)};return c[f].output(m).replace(/\[/g,"{").replace(/\]/g, +"}")}}(),CKEDITOR.plugins.add("dialogui",{onLoad:function(){var a=function(a){this._||(this._={});this._["default"]=this._.initValue=a["default"]||"";this._.required=a.required||!1;for(var d=[this._],c=1;c<arguments.length;c++)d.push(arguments[c]);d.push(!0);CKEDITOR.tools.extend.apply(CKEDITOR.tools,d);return this._},e={build:function(a,d,c){return new CKEDITOR.ui.dialog.textInput(a,d,c)}},c={build:function(a,d,c){return new CKEDITOR.ui.dialog[d.type](a,d,c)}},g={isChanged:function(){return this.getValue()!= +this.getInitValue()},reset:function(a){this.setValue(this.getInitValue(),a)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._["default"]},getInitValue:function(){return this._.initValue}},f=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(a,d){this._.domOnChangeRegistered||(a.on("load",function(){this.getInputElement().on("change",function(){a.parts.dialog.isVisible()&&this.fire("change",{value:this.getValue()})}, +this)},this),this._.domOnChangeRegistered=!0);this.on("change",d)}},!0),m=/^on([A-Z]\w+)/,l=function(a){for(var d in a)(m.test(d)||"title"==d||"type"==d)&&delete a[d];return a},k=function(a){a=a.data.getKeystroke();a==CKEDITOR.SHIFT+CKEDITOR.ALT+36?this.setDirectionMarker("ltr"):a==CKEDITOR.SHIFT+CKEDITOR.ALT+35&&this.setDirectionMarker("rtl")};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(b,d,c,f){if(!(4>arguments.length)){var e=a.call(this,d);e.labelId=CKEDITOR.tools.getNextId()+ +"_label";this._.children=[];var g={role:d.role||"presentation"};d.includeLabel&&(g["aria-labelledby"]=e.labelId);CKEDITOR.ui.dialog.uiElement.call(this,b,d,c,"div",null,g,function(){var a=[],c=d.required?" cke_required":"";"horizontal"!=d.labelLayout?a.push('\x3clabel class\x3d"cke_dialog_ui_labeled_label'+c+'" ',' id\x3d"'+e.labelId+'"',e.inputId?' for\x3d"'+e.inputId+'"':"",(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e",d.label,"\x3c/label\x3e",'\x3cdiv class\x3d"cke_dialog_ui_labeled_content"', +d.controlStyle?' style\x3d"'+d.controlStyle+'"':"",' role\x3d"presentation"\x3e',f.call(this,b,d),"\x3c/div\x3e"):(c={type:"hbox",widths:d.widths,padding:0,children:[{type:"html",html:'\x3clabel class\x3d"cke_dialog_ui_labeled_label'+c+'" id\x3d"'+e.labelId+'" for\x3d"'+e.inputId+'"'+(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e"+CKEDITOR.tools.htmlEncode(d.label)+"\x3c/label\x3e"},{type:"html",html:'\x3cspan class\x3d"cke_dialog_ui_labeled_content"'+(d.controlStyle?' style\x3d"'+d.controlStyle+ +'"':"")+"\x3e"+f.call(this,b,d)+"\x3c/span\x3e"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(b,c,a));return a.join("")})}},textInput:function(b,d,c){if(!(3>arguments.length)){a.call(this,d);var f=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",e={"class":"cke_dialog_ui_input_"+d.type,id:f,type:d.type};d.validate&&(this.validate=d.validate);d.maxLength&&(e.maxlength=d.maxLength);d.size&&(e.size=d.size);d.inputStyle&&(e.style=d.inputStyle);var g=this,l=!1;b.on("load",function(){g.getInputElement().on("keydown", +function(a){13==a.data.getKeystroke()&&(l=!0)});g.getInputElement().on("keyup",function(a){13==a.data.getKeystroke()&&l&&(b.getButton("ok")&&setTimeout(function(){b.getButton("ok").click()},0),l=!1);g.bidi&&k.call(g,a)},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,b,d,c,function(){var a=['\x3cdiv class\x3d"cke_dialog_ui_input_',d.type,'" role\x3d"presentation"'];d.width&&a.push('style\x3d"width:'+d.width+'" ');a.push("\x3e\x3cinput ");e["aria-labelledby"]=this._.labelId;this._.required&& +(e["aria-required"]=this._.required);for(var b in e)a.push(b+'\x3d"'+e[b]+'" ');a.push(" /\x3e\x3c/div\x3e");return a.join("")})}},textarea:function(b,d,c){if(!(3>arguments.length)){a.call(this,d);var f=this,e=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",g={};d.validate&&(this.validate=d.validate);g.rows=d.rows||5;g.cols=d.cols||20;g["class"]="cke_dialog_ui_input_textarea "+(d["class"]||"");"undefined"!=typeof d.inputStyle&&(g.style=d.inputStyle);d.dir&&(g.dir=d.dir);if(f.bidi)b.on("load", +function(){f.getInputElement().on("keyup",k)},f);CKEDITOR.ui.dialog.labeledElement.call(this,b,d,c,function(){g["aria-labelledby"]=this._.labelId;this._.required&&(g["aria-required"]=this._.required);var a=['\x3cdiv class\x3d"cke_dialog_ui_input_textarea" role\x3d"presentation"\x3e\x3ctextarea id\x3d"',e,'" '],b;for(b in g)a.push(b+'\x3d"'+CKEDITOR.tools.htmlEncode(g[b])+'" ');a.push("\x3e",CKEDITOR.tools.htmlEncode(f._["default"]),"\x3c/textarea\x3e\x3c/div\x3e");return a.join("")})}},checkbox:function(b, +d,c){if(!(3>arguments.length)){var f=a.call(this,d,{"default":!!d["default"]});d.validate&&(this.validate=d.validate);CKEDITOR.ui.dialog.uiElement.call(this,b,d,c,"span",null,null,function(){var a=CKEDITOR.tools.extend({},d,{id:d.id?d.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),c=[],h=CKEDITOR.tools.getNextId()+"_label",e={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":h};l(a);d["default"]&&(e.checked="checked");"undefined"!=typeof a.inputStyle&&(a.style=a.inputStyle); +f.checkbox=new CKEDITOR.ui.dialog.uiElement(b,a,c,"input",null,e);c.push(' \x3clabel id\x3d"',h,'" for\x3d"',e.id,'"'+(d.labelStyle?' style\x3d"'+d.labelStyle+'"':"")+"\x3e",CKEDITOR.tools.htmlEncode(d.label),"\x3c/label\x3e");return c.join("")})}},radio:function(b,d,c){if(!(3>arguments.length)){a.call(this,d);this._["default"]||(this._["default"]=this._.initValue=d.items[0][1]);d.validate&&(this.validate=d.validate);var f=[],e=this;d.role="radiogroup";d.includeLabel=!0;CKEDITOR.ui.dialog.labeledElement.call(this, +b,d,c,function(){for(var a=[],c=[],h=(d.id?d.id:CKEDITOR.tools.getNextId())+"_radio",g=0;g<d.items.length;g++){var k=d.items[g],m=void 0!==k[2]?k[2]:k[0],C=void 0!==k[1]?k[1]:k[0],r=CKEDITOR.tools.getNextId()+"_radio_input",x=r+"_label",r=CKEDITOR.tools.extend({},d,{id:r,title:null,type:null},!0),m=CKEDITOR.tools.extend({},r,{title:m},!0),B={type:"radio","class":"cke_dialog_ui_radio_input",name:h,value:C,"aria-labelledby":x},A=[];e._["default"]==C&&(B.checked="checked");l(r);l(m);"undefined"!=typeof r.inputStyle&& +(r.style=r.inputStyle);r.keyboardFocusable=!0;f.push(new CKEDITOR.ui.dialog.uiElement(b,r,A,"input",null,B));A.push(" ");new CKEDITOR.ui.dialog.uiElement(b,m,A,"label",null,{id:x,"for":B.id},k[0]);a.push(A.join(""))}new CKEDITOR.ui.dialog.hbox(b,f,a,c);return c.join("")});this._.children=f}},button:function(b,d,c){if(arguments.length){"function"==typeof d&&(d=d(b.getParentEditor()));a.call(this,d,{disabled:d.disabled||!1});CKEDITOR.event.implementOn(this);var f=this;b.on("load",function(){var a=this.getElement(); +(function(){a.on("click",function(a){f.click();a.data.preventDefault()});a.on("keydown",function(a){a.data.getKeystroke()in{32:1}&&(f.click(),a.data.preventDefault())})})();a.unselectable()},this);var e=CKEDITOR.tools.extend({},d);delete e.style;var g=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,b,e,c,"a",null,{style:d.style,href:"javascript:void(0)",title:d.label,hidefocus:"true","class":d["class"],role:"button","aria-labelledby":g},'\x3cspan id\x3d"'+g+'" class\x3d"cke_dialog_ui_button"\x3e'+ +CKEDITOR.tools.htmlEncode(d.label)+"\x3c/span\x3e")}},select:function(b,d,c){if(!(3>arguments.length)){var f=a.call(this,d);d.validate&&(this.validate=d.validate);f.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,b,d,c,function(){var a=CKEDITOR.tools.extend({},d,{id:d.id?d.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),c=[],h=[],e={id:f.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};c.push('\x3cdiv class\x3d"cke_dialog_ui_input_', +d.type,'" role\x3d"presentation"');d.width&&c.push('style\x3d"width:'+d.width+'" ');c.push("\x3e");void 0!==d.size&&(e.size=d.size);void 0!==d.multiple&&(e.multiple=d.multiple);l(a);for(var g=0,k;g<d.items.length&&(k=d.items[g]);g++)h.push('\x3coption value\x3d"',CKEDITOR.tools.htmlEncode(void 0!==k[1]?k[1]:k[0]).replace(/"/g,"\x26quot;"),'" /\x3e ',CKEDITOR.tools.htmlEncode(k[0]));"undefined"!=typeof a.inputStyle&&(a.style=a.inputStyle);f.select=new CKEDITOR.ui.dialog.uiElement(b,a,c,"select",null, +e,h.join(""));c.push("\x3c/div\x3e");return c.join("")})}},file:function(b,d,c){if(!(3>arguments.length)){void 0===d["default"]&&(d["default"]="");var f=CKEDITOR.tools.extend(a.call(this,d),{definition:d,buttons:[]});d.validate&&(this.validate=d.validate);b.on("load",function(){CKEDITOR.document.getById(f.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,b,d,c,function(){f.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var a=['\x3ciframe frameborder\x3d"0" allowtransparency\x3d"0" class\x3d"cke_dialog_ui_input_file" role\x3d"presentation" id\x3d"', +f.frameId,'" title\x3d"',d.label,'" src\x3d"javascript:void('];a.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0");a.push(')"\x3e\x3c/iframe\x3e');return a.join("")})}},fileButton:function(b,d,c){var f=this;if(!(3>arguments.length)){a.call(this,d);d.validate&&(this.validate=d.validate);var e=CKEDITOR.tools.extend({},d),g=e.onClick;e.className=(e.className?e.className+" ":"")+"cke_dialog_ui_button";e.onClick=function(a){var c= +d["for"];g&&!1===g.call(this,a)||(b.getContentElement(c[0],c[1]).submit(),this.disable())};b.on("load",function(){b.getContentElement(d["for"][0],d["for"][1])._.buttons.push(f)});CKEDITOR.ui.dialog.button.call(this,b,e,c)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,d=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,c=/\/$/;return function(f,e,g){if(!(3>arguments.length)){var k=[],n=e.html;"\x3c"!=n.charAt(0)&&(n="\x3cspan\x3e"+n+"\x3c/span\x3e");var l=e.focus;if(l){var m=this.focus;this.focus=function(){("function"== +typeof l?l:m).call(this);this.fire("focus")};e.isFocusable&&(this.isFocusable=this.isFocusable);this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,f,e,k,"span",null,null,"");k=k.join("").match(a);n=n.match(d)||["","",""];c.test(n[1])&&(n[1]=n[1].slice(0,-1),n[2]="/"+n[2]);g.push([n[1]," ",k[1]||"",n[2]].join(""))}}}(),fieldset:function(a,d,c,f,e){var g=e.label;this._={children:d};CKEDITOR.ui.dialog.uiElement.call(this,a,e,f,"fieldset",null,null,function(){var a=[];g&&a.push("\x3clegend"+ +(e.labelStyle?' style\x3d"'+e.labelStyle+'"':"")+"\x3e"+g+"\x3c/legend\x3e");for(var b=0;b<c.length;b++)a.push(c[b]);return a.join("")})}},!0);CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement;CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setLabel:function(a){var d=CKEDITOR.document.getById(this._.labelId);1>d.getChildCount()?(new CKEDITOR.dom.text(a,CKEDITOR.document)).appendTo(d):d.getChild(0).$.nodeValue=a;return this},getLabel:function(){var a= +CKEDITOR.document.getById(this._.labelId);return!a||1>a.getChildCount()?"":a.getChild(0).getText()},eventProcessors:f},!0);CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return this._.disabled?!1:this.fire("click",{dialog:this._.dialog})},enable:function(){this._.disabled=!1;var a=this.getElement();a&&a.removeClass("cke_disabled")},disable:function(){this._.disabled=!0;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,d){this.on("click",function(){d.apply(this,arguments)})}},!0),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:!0},!0);CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)}, +focus:function(){var a=this.selectParentTab();setTimeout(function(){var d=a.getInputElement();d&&d.$.focus()},0)},select:function(){var a=this.selectParentTab();setTimeout(function(){var d=a.getInputElement();d&&(d.$.focus(),d.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(a){if(this.bidi){var d=a&&a.charAt(0);(d="‪"==d?"ltr":"‫"==d?"rtl":null)&&(a=a.slice(1));this.setDirectionMarker(d)}a||(a="");return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)}, +getValue:function(){var a=CKEDITOR.ui.dialog.uiElement.prototype.getValue.call(this);if(this.bidi&&a){var d=this.getDirectionMarker();d&&(a=("ltr"==d?"‪":"‫")+a)}return a},setDirectionMarker:function(a){var d=this.getInputElement();a?d.setAttributes({dir:a,"data-cke-dir-marker":a}):this.getDirectionMarker()&&d.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:!0},g,!0);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,d,c){var f=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),e=this.getInputElement().$;f.$.text=a;f.$.value=void 0===d||null===d?a:d;void 0===c||null===c?CKEDITOR.env.ie?e.add(f.$):e.add(f.$,null):e.add(f.$,c);return this},remove:function(a){this.getInputElement().$.remove(a); +return this},clear:function(){for(var a=this.getInputElement().$;0<a.length;)a.remove(0);return this},keyboardFocusable:!0},g,!0);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(a,d){this.getInputElement().$.checked=a;!d&&this.fire("change",{value:a})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(a, +d){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version)return f.onChange.apply(this,arguments);a.on("load",function(){var a=this._.checkbox.getElement();a.on("propertychange",function(b){b=b.data.$;"checked"==b.propertyName&&this.fire("change",{value:a.$.checked})},this)},this);this.on("change",d);return null}},keyboardFocusable:!0},g,!0);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(a,d){for(var c=this._.children,f,e=0;e<c.length&&(f=c[e]);e++)f.getElement().$.checked= +f.getValue()==a;!d&&this.fire("change",{value:a})},getValue:function(){for(var a=this._.children,d=0;d<a.length;d++)if(a[d].getElement().$.checked)return a[d].getValue();return null},accessKeyUp:function(){var a=this._.children,d;for(d=0;d<a.length;d++)if(a[d].getElement().$.checked){a[d].getElement().focus();return}a[0].getElement().focus()},eventProcessors:{onChange:function(a,d){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version)return f.onChange.apply(this,arguments);a.on("load",function(){for(var a= +this._.children,b=this,d=0;d<a.length;d++)a[d].getElement().on("propertychange",function(a){a=a.data.$;"checked"==a.propertyName&&this.$.checked&&b.fire("change",{value:this.getAttribute("value")})})},this);this.on("change",d);return null}}},g,!0);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,g,{getInputElement:function(){var a=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return 0<a.$.forms.length?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 d=/^on([A-Z]\w+)/,c,f=function(a,b,d,c){a.on("formLoaded",function(){a.getInputElement().on(d,c,a)})},e;for(e in a)if(c=e.match(d))this.eventProcessors[e]?this.eventProcessors[e].call(this,this._.dialog,a[e]):f(this,this._.dialog,c[1].toLowerCase(),a[e]);return this},reset:function(){function a(){c.$.open(); +var b="";f.size&&(b=f.size-(CKEDITOR.env.ie?7:0));var m=d.frameId+"_input";c.$.write(['\x3chtml dir\x3d"'+n+'" lang\x3d"'+l+'"\x3e\x3chead\x3e\x3ctitle\x3e\x3c/title\x3e\x3c/head\x3e\x3cbody style\x3d"margin: 0; overflow: hidden; background: transparent;"\x3e','\x3cform enctype\x3d"multipart/form-data" method\x3d"POST" dir\x3d"'+n+'" lang\x3d"'+l+'" action\x3d"',CKEDITOR.tools.htmlEncode(f.action),'"\x3e\x3clabel id\x3d"',d.labelId,'" for\x3d"',m,'" style\x3d"display:none"\x3e',CKEDITOR.tools.htmlEncode(f.label), +'\x3c/label\x3e\x3cinput style\x3d"width:100%" id\x3d"',m,'" aria-labelledby\x3d"',d.labelId,'" type\x3d"file" name\x3d"',CKEDITOR.tools.htmlEncode(f.id||"cke_upload"),'" size\x3d"',CKEDITOR.tools.htmlEncode(0<b?b:""),'" /\x3e\x3c/form\x3e\x3c/body\x3e\x3c/html\x3e\x3cscript\x3e',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+g+");","window.onbeforeunload \x3d function() {window.parent.CKEDITOR.tools.callFunction("+k+")}","\x3c/script\x3e"].join("")); +c.$.close();for(b=0;b<e.length;b++)e[b].enable()}var d=this._,c=CKEDITOR.document.getById(d.frameId).getFrameDocument(),f=d.definition,e=d.buttons,g=this.formLoadedNumber,k=this.formUnloadNumber,n=d.dialog._.editor.lang.dir,l=d.dialog._.editor.langCode;g||(g=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this),k=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this),this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(g); +CKEDITOR.tools.removeFunction(k)}));CKEDITOR.env.gecko?setTimeout(a,500):a()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(a,d){this._.domOnChangeRegistered||(this.on("formLoaded",function(){this.getInputElement().on("change",function(){this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0);this.on("change",d)}},keyboardFocusable:!0},!0);CKEDITOR.ui.dialog.fileButton.prototype= +new CKEDITOR.ui.dialog.button;CKEDITOR.ui.dialog.fieldset.prototype=CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype);CKEDITOR.dialog.addUIElement("text",e);CKEDITOR.dialog.addUIElement("password",e);CKEDITOR.dialog.addUIElement("textarea",c);CKEDITOR.dialog.addUIElement("checkbox",c);CKEDITOR.dialog.addUIElement("radio",c);CKEDITOR.dialog.addUIElement("button",c);CKEDITOR.dialog.addUIElement("select",c);CKEDITOR.dialog.addUIElement("file",c);CKEDITOR.dialog.addUIElement("fileButton",c);CKEDITOR.dialog.addUIElement("html", +c);CKEDITOR.dialog.addUIElement("fieldset",{build:function(a,d,c){for(var f=d.children,e,g=[],k=[],n=0;n<f.length&&(e=f[n]);n++){var l=[];g.push(l);k.push(CKEDITOR.dialog._.uiElementBuilders[e.type].build(a,e,l))}return new CKEDITOR.ui.dialog[d.type](a,k,g,c,d)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,CKEDITOR.DIALOG_STATE_IDLE=1,CKEDITOR.DIALOG_STATE_BUSY=2,function(){function a(){for(var a=this._.tabIdList.length, +b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+a,d=b-1;d>b-a;d--)if(this._.tabs[this._.tabIdList[d%a]][0].$.offsetHeight)return this._.tabIdList[d%a];return null}function e(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),d=b+1;d<b+a;d++)if(this._.tabs[this._.tabIdList[d%a]][0].$.offsetHeight)return this._.tabIdList[d%a];return null}function c(a,b){for(var d=a.$.getElementsByTagName("input"),c=0,f=d.length;c<f;c++){var h=new CKEDITOR.dom.element(d[c]); +"text"==h.getAttribute("type").toLowerCase()&&(b?(h.setAttribute("value",h.getCustomData("fake_value")||""),h.removeCustomData("fake_value")):(h.setCustomData("fake_value",h.getAttribute("value")),h.setAttribute("value","")))}}function g(a,b){var d=this.getInputElement();d&&(a?d.removeAttribute("aria-invalid"):d.setAttribute("aria-invalid",!0));a||(this.select?this.select():this.focus());b&&alert(b);this.fire("validated",{valid:a,msg:b})}function f(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")} +function m(a){var b=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",n).output({id:CKEDITOR.tools.getNextNumber(),editorId:a.id,langDir:a.lang.dir,langCode:a.langCode,editorDialogClass:"cke_editor_"+a.name.replace(/\./g,"\\.")+"_dialog",closeTitle:a.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""})),d=b.getChild([0,0,0,0,0]),c=d.getChild(0),f=d.getChild(1);a.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(d);!CKEDITOR.env.ie||CKEDITOR.env.quirks|| +CKEDITOR.env.edge||(a="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())",CKEDITOR.dom.element.createFromHtml('\x3ciframe frameBorder\x3d"0" class\x3d"cke_iframe_shim" src\x3d"'+a+'" tabIndex\x3d"-1"\x3e\x3c/iframe\x3e').appendTo(d.getParent()));c.unselectable();f.unselectable();return{element:b,parts:{dialog:b.getChild(0),title:c,close:f,tabs:d.getChild(2),contents:d.getChild([3,0,0,0]),footer:d.getChild([3,0,1,0])}}}function l(a, +b,d){this.element=b;this.focusIndex=d;this.tabIndex=0;this.isFocusable=function(){return!b.getAttribute("disabled")&&b.isVisible()};this.focus=function(){a._.currentFocusIndex=this.focusIndex;this.element.focus()};b.on("keydown",function(a){a.data.getKeystroke()in{32:1,13:1}&&this.fire("click")});b.on("focus",function(){this.fire("mouseover")});b.on("blur",function(){this.fire("mouseout")})}function k(a){function b(){a.layout()}var d=CKEDITOR.document.getWindow();d.on("resize",b);a.on("hide",function(){d.removeListener("resize", +b)})}function b(a,b){this._={dialog:a};CKEDITOR.tools.extend(this,b)}function d(a){function b(d){var k=a.getSize(),n=CKEDITOR.document.getWindow().getViewPaneSize(),p=d.data.$.screenX,l=d.data.$.screenY,m=p-c.x,q=l-c.y;c={x:p,y:l};f.x+=m;f.y+=q;a.move(f.x+g[3]<e?-g[3]:f.x-g[1]>n.width-k.width-e?n.width-k.width+("rtl"==h.lang.dir?0:g[1]):f.x,f.y+g[0]<e?-g[0]:f.y-g[2]>n.height-k.height-e?n.height-k.height+g[2]:f.y,1);d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mousemove", +b);CKEDITOR.document.removeListener("mouseup",d);if(CKEDITOR.env.ie6Compat){var a=A.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",d)}}var c=null,f=null,h=a.getParentEditor(),e=h.config.dialog_magnetDistance,g=CKEDITOR.skin.margins||[0,0,0,0];"undefined"==typeof e&&(e=20);a.parts.title.on("mousedown",function(h){c={x:h.data.$.screenX,y:h.data.$.screenY};CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",d);f=a.getPosition();if(CKEDITOR.env.ie6Compat){var e= +A.getChild(0).getFrameDocument();e.on("mousemove",b);e.on("mouseup",d)}h.data.preventDefault()},a)}function h(a){function b(d){var l="rtl"==h.lang.dir,m=p.width,q=p.height,t=m+(d.data.$.screenX-n.x)*(l?-1:1)*(a._.moved?1:2),w=q+(d.data.$.screenY-n.y)*(a._.moved?1:2),r=a._.element.getFirst(),r=l&&r.getComputedStyle("right"),u=a.getPosition();u.y+w>k.height&&(w=k.height-u.y);(l?r:u.x)+t>k.width&&(t=k.width-(l?r:u.x));if(f==CKEDITOR.DIALOG_RESIZE_WIDTH||f==CKEDITOR.DIALOG_RESIZE_BOTH)m=Math.max(c.minWidth|| +0,t-e);if(f==CKEDITOR.DIALOG_RESIZE_HEIGHT||f==CKEDITOR.DIALOG_RESIZE_BOTH)q=Math.max(c.minHeight||0,w-g);a.resize(m,q);a._.moved||a.layout();d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mouseup",d);CKEDITOR.document.removeListener("mousemove",b);l&&(l.remove(),l=null);if(CKEDITOR.env.ie6Compat){var a=A.getChild(0).getFrameDocument();a.removeListener("mouseup",d);a.removeListener("mousemove",b)}}var c=a.definition,f=c.resizable;if(f!=CKEDITOR.DIALOG_RESIZE_NONE){var h=a.getParentEditor(), +e,g,k,n,p,l,m=CKEDITOR.tools.addFunction(function(c){p=a.getSize();var f=a.parts.contents;f.$.getElementsByTagName("iframe").length&&(l=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_dialog_resize_cover" style\x3d"height: 100%; position: absolute; width: 100%;"\x3e\x3c/div\x3e'),f.append(l));g=p.height-a.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks));e=p.width-a.parts.contents.getSize("width",1);n={x:c.screenX,y:c.screenY};k=CKEDITOR.document.getWindow().getViewPaneSize(); +CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",d);CKEDITOR.env.ie6Compat&&(f=A.getChild(0).getFrameDocument(),f.on("mousemove",b),f.on("mouseup",d));c.preventDefault&&c.preventDefault()});a.on("load",function(){var b="";f==CKEDITOR.DIALOG_RESIZE_WIDTH?b=" cke_resizer_horizontal":f==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(b=" cke_resizer_vertical");b=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_resizer'+b+" cke_resizer_"+h.lang.dir+'" title\x3d"'+CKEDITOR.tools.htmlEncode(h.lang.common.resize)+ +'" onmousedown\x3d"CKEDITOR.tools.callFunction('+m+', event )"\x3e'+("ltr"==h.lang.dir?"â—¢":"â—£")+"\x3c/div\x3e");a.parts.footer.append(b,1)});h.on("destroy",function(){CKEDITOR.tools.removeFunction(m)})}}function p(a){a.data.preventDefault(1)}function v(a){var b=CKEDITOR.document.getWindow(),d=a.config,c=d.dialog_backgroundCoverColor||"white",f=d.dialog_backgroundCoverOpacity,h=d.baseFloatZIndex,d=CKEDITOR.tools.genKey(c,f,h),e=B[d];e?e.show():(h=['\x3cdiv tabIndex\x3d"-1" style\x3d"position: ',CKEDITOR.env.ie6Compat? +"absolute":"fixed","; z-index: ",h,"; top: 0px; left: 0px; ",CKEDITOR.env.ie6Compat?"":"background-color: "+c,'" class\x3d"cke_dialog_background_cover"\x3e'],CKEDITOR.env.ie6Compat&&(c="\x3chtml\x3e\x3cbody style\x3d\\'background-color:"+c+";\\'\x3e\x3c/body\x3e\x3c/html\x3e",h.push('\x3ciframe hidefocus\x3d"true" frameborder\x3d"0" id\x3d"cke_dialog_background_iframe" src\x3d"javascript:'),h.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+ +c+"' );document.close();")+"})())"),h.push('" style\x3d"position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity\x3d0)"\x3e\x3c/iframe\x3e')),h.push("\x3c/div\x3e"),e=CKEDITOR.dom.element.createFromHtml(h.join("")),e.setOpacity(void 0!==f?f:.5),e.on("keydown",p),e.on("keypress",p),e.on("keyup",p),e.appendTo(CKEDITOR.document.getBody()),B[d]=e);a.focusManager.add(e);A=e;a=function(){var a=b.getViewPaneSize();e.setStyles({width:a.width+"px",height:a.height+ +"px"})};var g=function(){var a=b.getScrollPosition(),d=CKEDITOR.dialog._.currentTop;e.setStyles({left:a.x+"px",top:a.y+"px"});if(d){do a=d.getPosition(),d.move(a.x,a.y);while(d=d._.parentDialog)}};x=a;b.on("resize",a);a();CKEDITOR.env.mac&&CKEDITOR.env.webkit||e.focus();if(CKEDITOR.env.ie6Compat){var k=function(){g();arguments.callee.prevScrollHandler.apply(this,arguments)};b.$.setTimeout(function(){k.prevScrollHandler=window.onscroll||function(){};window.onscroll=k},0);g()}}function u(a){A&&(a.focusManager.remove(A), +a=CKEDITOR.document.getWindow(),A.hide(),a.removeListener("resize",x),CKEDITOR.env.ie6Compat&&a.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0),x=null)}var t=CKEDITOR.tools.cssLength,n='\x3cdiv class\x3d"cke_reset_all {editorId} {editorDialogClass} {hidpi}" dir\x3d"{langDir}" lang\x3d"{langCode}" role\x3d"dialog" aria-labelledby\x3d"cke_dialog_title_{id}"\x3e\x3ctable class\x3d"cke_dialog '+CKEDITOR.env.cssClass+' cke_{langDir}" style\x3d"position:absolute" role\x3d"presentation"\x3e\x3ctr\x3e\x3ctd role\x3d"presentation"\x3e\x3cdiv class\x3d"cke_dialog_body" role\x3d"presentation"\x3e\x3cdiv id\x3d"cke_dialog_title_{id}" class\x3d"cke_dialog_title" role\x3d"presentation"\x3e\x3c/div\x3e\x3ca id\x3d"cke_dialog_close_button_{id}" class\x3d"cke_dialog_close_button" href\x3d"javascript:void(0)" title\x3d"{closeTitle}" role\x3d"button"\x3e\x3cspan class\x3d"cke_label"\x3eX\x3c/span\x3e\x3c/a\x3e\x3cdiv id\x3d"cke_dialog_tabs_{id}" class\x3d"cke_dialog_tabs" role\x3d"tablist"\x3e\x3c/div\x3e\x3ctable class\x3d"cke_dialog_contents" role\x3d"presentation"\x3e\x3ctr\x3e\x3ctd id\x3d"cke_dialog_contents_{id}" class\x3d"cke_dialog_contents_body" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd id\x3d"cke_dialog_footer_{id}" class\x3d"cke_dialog_footer" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e'; +CKEDITOR.dialog=function(b,c){function k(){var a=B._.focusList;a.sort(function(a,b){return a.tabIndex!=b.tabIndex?b.tabIndex-a.tabIndex:a.focusIndex-b.focusIndex});for(var b=a.length,d=0;d<b;d++)a[d].focusIndex=d}function n(a){var b=B._.focusList;a=a||0;if(!(1>b.length)){var d=B._.currentFocusIndex;B._.tabBarMode&&0>a&&(d=0);try{b[d].getInputElement().$.blur()}catch(c){}var f=d,h=1<B._.pageCount;do{f+=a;if(h&&!B._.tabBarMode&&(f==b.length||-1==f)){B._.tabBarMode=!0;B._.tabs[B._.currentTabId][0].focus(); +B._.currentFocusIndex=-1;return}f=(f+b.length)%b.length;if(f==d)break}while(a&&!b[f].isFocusable());b[f].focus();"text"==b[f].type&&b[f].select()}}function l(d){if(B==CKEDITOR.dialog._.currentTop){var c=d.data.getKeystroke(),f="rtl"==b.lang.dir,h=[37,38,39,40];v=C=0;if(9==c||c==CKEDITOR.SHIFT+9)n(c==CKEDITOR.SHIFT+9?-1:1),v=1;else if(c==CKEDITOR.ALT+121&&!B._.tabBarMode&&1<B.getPageCount())B._.tabBarMode=!0,B._.tabs[B._.currentTabId][0].focus(),B._.currentFocusIndex=-1,v=1;else if(-1!=CKEDITOR.tools.indexOf(h, +c)&&B._.tabBarMode)c=-1!=CKEDITOR.tools.indexOf([f?39:37,38],c)?a.call(B):e.call(B),B.selectPage(c),B._.tabs[c][0].focus(),v=1;else if(13!=c&&32!=c||!B._.tabBarMode)if(13==c)c=d.data.getTarget(),c.is("a","button","select","textarea")||c.is("input")&&"button"==c.$.type||((c=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(c.click,0,c),v=1),C=1;else if(27==c)(c=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(c.click,0,c):!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),C=1;else return;else this.selectPage(this._.currentTabId), +this._.tabBarMode=!1,this._.currentFocusIndex=-1,n(1),v=1;p(d)}}function p(a){v?a.data.preventDefault(1):C&&a.data.stopPropagation()}var t=CKEDITOR.dialog._.dialogDefinitions[c],w=CKEDITOR.tools.clone(q),u=b.config.dialog_buttonsOrder||"OS",y=b.lang.dir,H={},v,C;("OS"==u&&CKEDITOR.env.mac||"rtl"==u&&"ltr"==y||"ltr"==u&&"rtl"==y)&&w.buttons.reverse();t=CKEDITOR.tools.extend(t(b),w);t=CKEDITOR.tools.clone(t);t=new r(this,t);w=m(b);this._={editor:b,element:w.element,name:c,contentSize:{width:0,height:0}, +size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:!1,focusList:[],currentFocusIndex:0,hasFocus:!1};this.parts=w.parts;CKEDITOR.tools.setTimeout(function(){b.fire("ariaWidget",this.parts.contents)},0,this);w={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};w["rtl"==y?"right":"left"]=0;this.parts.dialog.setStyles(w);CKEDITOR.event.call(this);this.definition=t=CKEDITOR.fire("dialogDefinition", +{name:c,definition:t},b).definition;if(!("removeDialogTabs"in b._)&&b.config.removeDialogTabs){w=b.config.removeDialogTabs.split(";");for(y=0;y<w.length;y++)if(u=w[y].split(":"),2==u.length){var x=u[0];H[x]||(H[x]=[]);H[x].push(u[1])}b._.removeDialogTabs=H}if(b._.removeDialogTabs&&(H=b._.removeDialogTabs[c]))for(y=0;y<H.length;y++)t.removeContents(H[y]);if(t.onLoad)this.on("load",t.onLoad);if(t.onShow)this.on("show",t.onShow);if(t.onHide)this.on("hide",t.onHide);if(t.onOk)this.on("ok",function(a){b.fire("saveSnapshot"); +setTimeout(function(){b.fire("saveSnapshot")},0);!1===t.onOk.call(this,a)&&(a.data.hide=!1)});this.state=CKEDITOR.DIALOG_STATE_IDLE;if(t.onCancel)this.on("cancel",function(a){!1===t.onCancel.call(this,a)&&(a.data.hide=!1)});var B=this,z=function(a){var b=B._.contents,d=!1,c;for(c in b)for(var f in b[c])if(d=a.call(this,b[c][f]))return};this.on("ok",function(a){z(function(b){if(b.validate){var d=b.validate(this),c="string"==typeof d||!1===d;c&&(a.data.hide=!1,a.stop());g.call(b,!c,"string"==typeof d? +d:void 0);return c}})},this,null,0);this.on("cancel",function(a){z(function(d){if(d.isChanged())return b.config.dialog_noConfirmCancel||confirm(b.lang.common.confirmCancel)||(a.data.hide=!1),!0})},this,null,0);this.parts.close.on("click",function(a){!1!==this.fire("cancel",{hide:!0}).hide&&this.hide();a.data.preventDefault()},this);this.changeFocus=n;var A=this._.element;b.focusManager.add(A,1);this.on("show",function(){A.on("keydown",l,this);if(CKEDITOR.env.gecko)A.on("keypress",p,this)});this.on("hide", +function(){A.removeListener("keydown",l);CKEDITOR.env.gecko&&A.removeListener("keypress",p);z(function(a){f.apply(a)})});this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",l,this,null,0)});this.on("show",function(){k();var a=1<B._.pageCount;b.config.dialog_startupFocusTab&&a?(B._.tabBarMode=!0,B._.tabs[B._.currentTabId][0].focus(),B._.currentFocusIndex=-1):this._.hasFocus||(this._.currentFocusIndex=a?-1:this._.focusList.length-1,t.onFocus? +(a=t.onFocus.call(this))&&a.focus():n(1))},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on("load",function(){var a=this.getElement(),b=a.getFirst();b.remove();b.appendTo(a)},this);d(this);h(this);(new CKEDITOR.dom.text(t.title,CKEDITOR.document)).appendTo(this.parts.title);for(y=0;y<t.contents.length;y++)(H=t.contents[y])&&this.addPage(H);this.parts.tabs.on("click",function(a){var b=a.data.getTarget();b.hasClass("cke_dialog_tab")&&(b=b.$.id,this.selectPage(b.substring(4,b.lastIndexOf("_"))), +this._.tabBarMode&&(this._.tabBarMode=!1,this._.currentFocusIndex=-1,n(1)),a.data.preventDefault())},this);y=[];H=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:t.buttons},y).getChild();this.parts.footer.setHtml(y.join(""));for(y=0;y<H.length;y++)this._.buttons[H[y].id]=H[y]};CKEDITOR.dialog.prototype={destroy:function(){this.hide();this._.element.remove()},resize:function(){return function(a,b){this._.contentSize&&this._.contentSize.width== +a&&this._.contentSize.height==b||(CKEDITOR.dialog.fire("resize",{dialog:this,width:a,height:b},this._.editor),this.fire("resize",{width:a,height:b},this._.editor),this.parts.contents.setStyles({width:a+"px",height:b+"px"}),"rtl"==this._.editor.lang.dir&&this._.position&&(this._.position.x=CKEDITOR.document.getWindow().getViewPaneSize().width-this._.contentSize.width-parseInt(this._.element.getFirst().getStyle("right"),10)),this._.contentSize={width:a,height:b})}}(),getSize:function(){var a=this._.element.getFirst(); +return{width:a.$.offsetWidth||0,height:a.$.offsetHeight||0}},move:function(a,b,d){var c=this._.element.getFirst(),f="rtl"==this._.editor.lang.dir,h="fixed"==c.getComputedStyle("position");CKEDITOR.env.ie&&c.setStyle("zoom","100%");h&&this._.position&&this._.position.x==a&&this._.position.y==b||(this._.position={x:a,y:b},h||(h=CKEDITOR.document.getWindow().getScrollPosition(),a+=h.x,b+=h.y),f&&(h=this.getSize(),a=CKEDITOR.document.getWindow().getViewPaneSize().width-h.width-a),b={top:(0<b?b:0)+"px"}, +b[f?"right":"left"]=(0<a?a:0)+"px",c.setStyles(b),d&&(this._.moved=1))},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var a=this._.element,b=this.definition;a.getParent()&&a.getParent().equals(CKEDITOR.document.getBody())?a.setStyle("display","block"):a.appendTo(CKEDITOR.document.getBody());this.resize(this._.contentSize&&this._.contentSize.width||b.width||b.minWidth,this._.contentSize&&this._.contentSize.height||b.height||b.minHeight);this.reset();this.selectPage(this.definition.contents[0].id); +null===CKEDITOR.dialog._.currentZIndex&&(CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex);this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex+=10);null===CKEDITOR.dialog._.currentTop?(CKEDITOR.dialog._.currentTop=this,this._.parentDialog=null,v(this._.editor)):(this._.parentDialog=CKEDITOR.dialog._.currentTop,this._.parentDialog.getElement().getFirst().$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2),CKEDITOR.dialog._.currentTop=this); +a.on("keydown",D);a.on("keyup",G);this._.hasFocus=!1;for(var d in b.contents)if(b.contents[d]){var a=b.contents[d],c=this._.tabs[a.id],f=a.requiredContent,h=0;if(c){for(var e in this._.contents[a.id]){var g=this._.contents[a.id][e];"hbox"!=g.type&&"vbox"!=g.type&&g.getInputElement()&&(g.requiredContent&&!this._.editor.activeFilter.check(g.requiredContent)?g.disable():(g.enable(),h++))}!h||f&&!this._.editor.activeFilter.check(f)?c[0].addClass("cke_dialog_tab_disabled"):c[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout(); +k(this);this.parts.dialog.setStyle("visibility","");this.fireOnce("load",{});CKEDITOR.ui.fire("ready",this);this.fire("show",{});this._.editor.fire("dialogShow",this);this._.parentDialog||this._.editor.focusManager.lock();this.foreach(function(a){a.setInitValue&&a.setInitValue()})},100,this)},layout:function(){var a=this.parts.dialog,b=this.getSize(),d=CKEDITOR.document.getWindow().getViewPaneSize(),c=(d.width-b.width)/2,f=(d.height-b.height)/2;CKEDITOR.env.ie6Compat||(b.height+(0<f?f:0)>d.height|| +b.width+(0<c?c:0)>d.width?a.setStyle("position","absolute"):a.setStyle("position","fixed"));this.move(this._.moved?this._.position.x:c,this._.moved?this._.position.y:f)},foreach:function(a){for(var b in this._.contents)for(var d in this._.contents[b])a.call(this,this._.contents[b][d]);return this},reset:function(){var a=function(a){a.reset&&a.reset(1)};return function(){this.foreach(a);return this}}(),setupContent:function(){var a=arguments;this.foreach(function(b){b.setup&&b.setup.apply(b,a)})}, +commitContent:function(){var a=arguments;this.foreach(function(b){CKEDITOR.env.ie&&this._.currentFocusIndex==b.focusIndex&&b.getInputElement().$.blur();b.commit&&b.commit.apply(b,a)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{});this._.editor.fire("dialogHide",this);this.selectPage(this._.tabIdList[0]);var a=this._.element;a.setStyle("display","none");this.parts.dialog.setStyle("visibility","hidden");for(J(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 u(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex-=10;else{CKEDITOR.dialog._.currentZIndex=null;a.removeListener("keydown",D);a.removeListener("keyup",G);var d=this._.editor;d.focus();setTimeout(function(){d.focusManager.unlock();CKEDITOR.env.iOS&&d.window.focus()},0)}delete this._.parentDialog; +this.foreach(function(a){a.resetInitValue&&a.resetInitValue()});this.setState(CKEDITOR.DIALOG_STATE_IDLE)}},addPage:function(a){if(!a.requiredContent||this._.editor.filter.check(a.requiredContent)){for(var b=[],d=a.label?' title\x3d"'+CKEDITOR.tools.htmlEncode(a.label)+'"':"",c=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",children:a.elements,expand:!!a.expand,padding:a.padding,style:a.style||"width: 100%;"},b),f=this._.contents[a.id]={},h=c.getChild(), +e=0;c=h.shift();)c.notAllowed||"hbox"==c.type||"vbox"==c.type||e++,f[c.id]=c,"function"==typeof c.getChild&&h.push.apply(h,c.getChild());e||(a.hidden=!0);b=CKEDITOR.dom.element.createFromHtml(b.join(""));b.setAttribute("role","tabpanel");c=CKEDITOR.env;f="cke_"+a.id+"_"+CKEDITOR.tools.getNextNumber();d=CKEDITOR.dom.element.createFromHtml(['\x3ca class\x3d"cke_dialog_tab"',0<this._.pageCount?" cke_last":"cke_first",d,a.hidden?' style\x3d"display:none"':"",' id\x3d"',f,'"',c.gecko&&!c.hc?"":' href\x3d"javascript:void(0)"', +' tabIndex\x3d"-1" hidefocus\x3d"true" role\x3d"tab"\x3e',a.label,"\x3c/a\x3e"].join(""));b.setAttribute("aria-labelledby",f);this._.tabs[a.id]=[d,b];this._.tabIdList.push(a.id);!a.hidden&&this._.pageCount++;this._.lastTab=d;this.updateStyle();b.setAttribute("name",a.id);b.appendTo(this.parts.contents);d.unselectable();this.parts.tabs.append(d);a.accessKey&&(F(this,this,"CTRL+"+a.accessKey,N,I),this._.accessKeyMap["CTRL+"+a.accessKey]=a.id)}},selectPage:function(a){if(this._.currentTabId!=a&&!this._.tabs[a][0].hasClass("cke_dialog_tab_disabled")&& +!1!==this.fire("selectPage",{page:a,currentPage:this._.currentTabId})){for(var b in this._.tabs){var d=this._.tabs[b][0],f=this._.tabs[b][1];b!=a&&(d.removeClass("cke_dialog_tab_selected"),f.hide());f.setAttribute("aria-hidden",b!=a)}var h=this._.tabs[a];h[0].addClass("cke_dialog_tab_selected");CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat?(c(h[1]),h[1].show(),setTimeout(function(){c(h[1],1)},0)):h[1].show();this._.currentTabId=a;this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,a)}}, +updateStyle:function(){this.parts.dialog[(1===this._.pageCount?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(b){var d=this._.tabs[b]&&this._.tabs[b][0];d&&1!=this._.pageCount&&d.isVisible()&&(b==this._.currentTabId&&this.selectPage(a.call(this)),d.hide(),this._.pageCount--,this.updateStyle())},showPage:function(a){if(a=this._.tabs[a]&&this._.tabs[a][0])a.show(),this._.pageCount++,this.updateStyle()},getElement:function(){return this._.element},getName:function(){return this._.name}, +getContentElement:function(a,b){var d=this._.contents[a];return d&&d[b]},getValueOf:function(a,b){return this.getContentElement(a,b).getValue()},setValueOf:function(a,b,d){return this.getContentElement(a,b).setValue(d)},getButton:function(a){return this._.buttons[a]},click:function(a){return this._.buttons[a].click()},disableButton:function(a){return this._.buttons[a].disable()},enableButton:function(a){return this._.buttons[a].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor}, +getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(a,b){if("undefined"==typeof b)b=this._.focusList.length,this._.focusList.push(new l(this,a,b));else{this._.focusList.splice(b,0,new l(this,a,b));for(var d=b+1;d<this._.focusList.length;d++)this._.focusList[d].focusIndex++}},setState:function(a){if(this.state!=a){this.state=a;if(a==CKEDITOR.DIALOG_STATE_BUSY){if(!this.parts.spinner){var b=this.getParentEditor().lang.dir,d={attributes:{"class":"cke_dialog_spinner"}, +styles:{"float":"rtl"==b?"right":"left"}};d.styles["margin-"+("rtl"==b?"left":"right")]="8px";this.parts.spinner=CKEDITOR.document.createElement("div",d);this.parts.spinner.setHtml("\x26#8987;");this.parts.spinner.appendTo(this.parts.title,1)}this.parts.spinner.show();this.getButton("ok").disable()}else a==CKEDITOR.DIALOG_STATE_IDLE&&(this.parts.spinner&&this.parts.spinner.hide(),this.getButton("ok").enable());this.fire("state",a)}}};CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(a,b){this._.dialogDefinitions[a]&& +"function"!=typeof b||(this._.dialogDefinitions[a]=b)},exists:function(a){return!!this._.dialogDefinitions[a]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(a,b,d){a=a.config.removeDialogTabs;return!(a&&a.match(new RegExp("(?:^|;)"+b+":"+d+"(?:$|;)","i")))},okButton:function(){var a=function(a,b){b=b||{};return CKEDITOR.tools.extend({id:"ok",type:"button",label:a.lang.common.ok,"class":"cke_dialog_ui_button_ok",onClick:function(a){a=a.data.dialog;!1!==a.fire("ok", +{hide:!0}).hide&&a.hide()}},b,!0)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(d){return a(d,b)},{type:"button"},!0)};return a}(),cancelButton:function(){var a=function(a,b){b=b||{};return CKEDITOR.tools.extend({id:"cancel",type:"button",label:a.lang.common.cancel,"class":"cke_dialog_ui_button_cancel",onClick:function(a){a=a.data.dialog;!1!==a.fire("cancel",{hide:!0}).hide&&a.hide()}},b,!0)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(d){return a(d, +b)},{type:"button"},!0)};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 q={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},w=function(a,b,d){for(var c=0,f;f=a[c];c++)if(f.id==b||d&&f[d]&&(f=w(f[d], +b,d)))return f;return null},y=function(a,b,d,c,f){if(d){for(var h=0,e;e=a[h];h++){if(e.id==d)return a.splice(h,0,b),b;if(c&&e[c]&&(e=y(e[c],b,d,c,!0)))return e}if(f)return null}a.push(b);return b},C=function(a,b,d){for(var c=0,f;f=a[c];c++){if(f.id==b)return a.splice(c,1);if(d&&f[d]&&(f=C(f[d],b,d)))return f}return null},r=function(a,d){this.dialog=a;for(var c=d.contents,f=0,h;h=c[f];f++)c[f]=h&&new b(a,h);CKEDITOR.tools.extend(this,d)};r.prototype={getContents:function(a){return w(this.contents, +a)},getButton:function(a){return w(this.buttons,a)},addContents:function(a,b){return y(this.contents,a,b)},addButton:function(a,b){return y(this.buttons,a,b)},removeContents:function(a){C(this.contents,a)},removeButton:function(a){C(this.buttons,a)}};b.prototype={get:function(a){return w(this.elements,a,"children")},add:function(a,b){return y(this.elements,a,b,"children")},remove:function(a){C(this.elements,a,"children")}};var x,B={},A,z={},D=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,d= +a.data.$.altKey,c=a.data.$.shiftKey,f=String.fromCharCode(a.data.$.keyCode);(b=z[(b?"CTRL+":"")+(d?"ALT+":"")+(c?"SHIFT+":"")+f])&&b.length&&(b=b[b.length-1],b.keydown&&b.keydown.call(b.uiElement,b.dialog,b.key),a.data.preventDefault())},G=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,d=a.data.$.altKey,c=a.data.$.shiftKey,f=String.fromCharCode(a.data.$.keyCode);(b=z[(b?"CTRL+":"")+(d?"ALT+":"")+(c?"SHIFT+":"")+f])&&b.length&&(b=b[b.length-1],b.keyup&&(b.keyup.call(b.uiElement,b.dialog,b.key), +a.data.preventDefault()))},F=function(a,b,d,c,f){(z[d]||(z[d]=[])).push({uiElement:a,dialog:b,key:d,keyup:f||a.accessKeyUp,keydown:c||a.accessKeyDown})},J=function(a){for(var b in z){for(var d=z[b],c=d.length-1;0<=c;c--)d[c].dialog!=a&&d[c].uiElement!=a||d.splice(c,1);0===d.length&&delete z[b]}},I=function(a,b){a._.accessKeyMap[b]&&a.selectPage(a._.accessKeyMap[b])},N=function(){};(function(){CKEDITOR.ui.dialog={uiElement:function(a,b,d,c,f,h,e){if(!(4>arguments.length)){var g=(c.call?c(b):c)||"div", +k=["\x3c",g," "],n=(f&&f.call?f(b):f)||{},l=(h&&h.call?h(b):h)||{},p=(e&&e.call?e.call(this,a,b):e)||"",m=this.domId=l.id||CKEDITOR.tools.getNextId()+"_uiElement";b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)&&(n.display="none",this.notAllowed=!0);l.id=m;var t={};b.type&&(t["cke_dialog_ui_"+b.type]=1);b.className&&(t[b.className]=1);b.disabled&&(t.cke_disabled=1);for(var q=l["class"]&&l["class"].split?l["class"].split(" "):[],m=0;m<q.length;m++)q[m]&&(t[q[m]]=1);q=[];for(m in t)q.push(m); +l["class"]=q.join(" ");b.title&&(l.title=b.title);t=(b.style||"").split(";");b.align&&(q=b.align,n["margin-left"]="left"==q?0:"auto",n["margin-right"]="right"==q?0:"auto");for(m in n)t.push(m+":"+n[m]);b.hidden&&t.push("display:none");for(m=t.length-1;0<=m;m--)""===t[m]&&t.splice(m,1);0<t.length&&(l.style=(l.style?l.style+"; ":"")+t.join("; "));for(m in l)k.push(m+'\x3d"'+CKEDITOR.tools.htmlEncode(l[m])+'" ');k.push("\x3e",p,"\x3c/",g,"\x3e");d.push(k.join(""));(this._||(this._={})).dialog=a;"boolean"== +typeof b.isChanged&&(this.isChanged=function(){return b.isChanged});"function"==typeof b.isChanged&&(this.isChanged=b.isChanged);"function"==typeof b.setValue&&(this.setValue=CKEDITOR.tools.override(this.setValue,function(a){return function(d){a.call(this,b.setValue.call(this,d))}}));"function"==typeof b.getValue&&(this.getValue=CKEDITOR.tools.override(this.getValue,function(a){return function(){return b.getValue.call(this,a.call(this))}}));CKEDITOR.event.implementOn(this);this.registerEvents(b); +this.accessKeyUp&&this.accessKeyDown&&b.accessKey&&F(this,a,"CTRL+"+b.accessKey);var w=this;a.on("load",function(){var b=w.getInputElement();if(b){var d=w.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?"cke_dialog_ui_focused":"";b.on("focus",function(){a._.tabBarMode=!1;a._.hasFocus=!0;w.fire("focus");d&&this.addClass(d)});b.on("blur",function(){w.fire("blur");d&&this.removeClass(d)})}});CKEDITOR.tools.extend(this,b);this.keyboardFocusable&&(this.tabIndex=b.tabIndex||0,this.focusIndex= +a._.focusList.push(this)-1,this.on("focus",function(){a._.currentFocusIndex=w.focusIndex}))}},hbox:function(a,b,d,c,f){if(!(4>arguments.length)){this._||(this._={});var h=this._.children=b,e=f&&f.widths||null,g=f&&f.height||null,k,n={role:"presentation"};f&&f.align&&(n.align=f.align);CKEDITOR.ui.dialog.uiElement.call(this,a,f||{type:"hbox"},c,"table",{},n,function(){var a=['\x3ctbody\x3e\x3ctr class\x3d"cke_dialog_ui_hbox"\x3e'];for(k=0;k<d.length;k++){var b="cke_dialog_ui_hbox_child",c=[];0===k&& +(b="cke_dialog_ui_hbox_first");k==d.length-1&&(b="cke_dialog_ui_hbox_last");a.push('\x3ctd class\x3d"',b,'" role\x3d"presentation" ');e?e[k]&&c.push("width:"+t(e[k])):c.push("width:"+Math.floor(100/d.length)+"%");g&&c.push("height:"+t(g));f&&void 0!==f.padding&&c.push("padding:"+t(f.padding));CKEDITOR.env.ie&&CKEDITOR.env.quirks&&h[k].align&&c.push("text-align:"+h[k].align);0<c.length&&a.push('style\x3d"'+c.join("; ")+'" ');a.push("\x3e",d[k],"\x3c/td\x3e")}a.push("\x3c/tr\x3e\x3c/tbody\x3e");return a.join("")})}}, +vbox:function(a,b,d,c,f){if(!(3>arguments.length)){this._||(this._={});var h=this._.children=b,e=f&&f.width||null,g=f&&f.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,f||{type:"vbox"},c,"div",null,{role:"presentation"},function(){var b=['\x3ctable role\x3d"presentation" cellspacing\x3d"0" border\x3d"0" '];b.push('style\x3d"');f&&f.expand&&b.push("height:100%;");b.push("width:"+t(e||"100%"),";");CKEDITOR.env.webkit&&b.push("float:none;");b.push('"');b.push('align\x3d"',CKEDITOR.tools.htmlEncode(f&& +f.align||("ltr"==a.getParentEditor().lang.dir?"left":"right")),'" ');b.push("\x3e\x3ctbody\x3e");for(var c=0;c<d.length;c++){var k=[];b.push('\x3ctr\x3e\x3ctd role\x3d"presentation" ');e&&k.push("width:"+t(e||"100%"));g?k.push("height:"+t(g[c])):f&&f.expand&&k.push("height:"+Math.floor(100/d.length)+"%");f&&void 0!==f.padding&&k.push("padding:"+t(f.padding));CKEDITOR.env.ie&&CKEDITOR.env.quirks&&h[c].align&&k.push("text-align:"+h[c].align);0<k.length&&b.push('style\x3d"',k.join("; "),'" ');b.push(' class\x3d"cke_dialog_ui_vbox_child"\x3e', +d[c],"\x3c/td\x3e\x3c/tr\x3e")}b.push("\x3c/tbody\x3e\x3c/table\x3e");return b.join("")})}}}})();CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(a,b){this.getInputElement().setValue(a);!b&&this.fire("change",{value:a});return this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return!1},selectParentTab:function(){for(var a= +this.getInputElement();(a=a.getParent())&&-1==a.$.className.search("cke_dialog_page_contents"););if(!a)return this;a=a.getAttribute("name");this._.dialog._.currentTabId!=a&&this._.dialog.selectPage(a);return this},focus:function(){this.selectParentTab().getInputElement().focus();return this},registerEvents:function(a){var b=/^on([A-Z]\w+)/,d,c=function(a,b,d,c){b.on("load",function(){a.getInputElement().on(d,c,a)})},f;for(f in a)if(d=f.match(b))this.eventProcessors[f]?this.eventProcessors[f].call(this, +this._.dialog,a[f]):c(this,this._.dialog,d[1].toLowerCase(),a[f]);return this},eventProcessors:{onLoad:function(a,b){a.on("load",b,this)},onShow:function(a,b){a.on("show",b,this)},onHide:function(a,b){a.on("hide",b,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var a=this.getElement();this.getInputElement().setAttribute("disabled","true");a.addClass("cke_disabled")},enable:function(){var a=this.getElement();this.getInputElement().removeAttribute("disabled"); +a.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return this.isEnabled()&&this.isVisible()?!0:!1}};CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getChild:function(a){if(1>arguments.length)return this._.children.concat();a.splice||(a=[a]);return 2>a.length?this._.children[a[0]]:this._.children[a[0]]&&this._.children[a[0]].getChild? +this._.children[a[0]].getChild(a.slice(1,a.length)):null}},!0);CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox;(function(){var a={build:function(a,b,d){for(var c=b.children,f,h=[],e=[],g=0;g<c.length&&(f=c[g]);g++){var k=[];h.push(k);e.push(CKEDITOR.dialog._.uiElementBuilders[f.type].build(a,f,k))}return new CKEDITOR.ui.dialog[b.type](a,e,h,d,b)}};CKEDITOR.dialog.addUIElement("hbox",a);CKEDITOR.dialog.addUIElement("vbox",a)})();CKEDITOR.dialogCommand=function(a,b){this.dialogName=a; +CKEDITOR.tools.extend(this,b,!0)};CKEDITOR.dialogCommand.prototype={exec:function(a){a.openDialog(this.dialogName)},canUndo:!1,editorFocus:1};(function(){var a=/^([a]|[^a])+$/,b=/^\d*$/,d=/^\d*(?:\.\d+)?$/,c=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,f=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,h=/^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;CKEDITOR.VALIDATE_OR=1;CKEDITOR.VALIDATE_AND=2;CKEDITOR.dialog.validate={functions:function(){var a=arguments;return function(){var b=this&&this.getValue?this.getValue(): +a[0],d,c=CKEDITOR.VALIDATE_AND,f=[],h;for(h=0;h<a.length;h++)if("function"==typeof a[h])f.push(a[h]);else break;h<a.length&&"string"==typeof a[h]&&(d=a[h],h++);h<a.length&&"number"==typeof a[h]&&(c=a[h]);var e=c==CKEDITOR.VALIDATE_AND?!0:!1;for(h=0;h<f.length;h++)e=c==CKEDITOR.VALIDATE_AND?e&&f[h](b):e||f[h](b);return e?!0:d}},regex:function(a,b){return function(d){d=this&&this.getValue?this.getValue():d;return a.test(d)?!0:b}},notEmpty:function(b){return this.regex(a,b)},integer:function(a){return this.regex(b, +a)},number:function(a){return this.regex(d,a)},cssLength:function(a){return this.functions(function(a){return f.test(CKEDITOR.tools.trim(a))},a)},htmlLength:function(a){return this.functions(function(a){return c.test(CKEDITOR.tools.trim(a))},a)},inlineStyle:function(a){return this.functions(function(a){return h.test(CKEDITOR.tools.trim(a))},a)},equals:function(a,b){return this.functions(function(b){return b==a},b)},notEqual:function(a,b){return this.functions(function(b){return b!=a},b)}};CKEDITOR.on("instanceDestroyed", +function(a){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var b;b=CKEDITOR.dialog._.currentTop;)b.hide();for(var d in B)B[d].remove();B={}}a=a.editor._.storedDialogs;for(var c in a)a[c].destroy()})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(a,b){var d=null,c=CKEDITOR.dialog._.dialogDefinitions[a];null===CKEDITOR.dialog._.currentTop&&v(this);if("function"==typeof c)d=this._.storedDialogs||(this._.storedDialogs={}),d=d[a]||(d[a]=new CKEDITOR.dialog(this,a)),b&&b.call(d, +d),d.show();else{if("failed"==c)throw u(this),Error('[CKEDITOR.dialog.openDialog] Dialog "'+a+'" failed when loading definition.');"string"==typeof c&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(c),function(){"function"!=typeof CKEDITOR.dialog._.dialogDefinitions[a]&&(CKEDITOR.dialog._.dialogDefinitions[a]="failed");this.openDialog(a,b)},this,0,1)}CKEDITOR.skin.loadPart("dialog");return d}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(a){a.on("doubleclick",function(e){e.data.dialog&& +a.openDialog(e.data.dialog)},null,null,999)}}),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(a){var e=a.addCommand("about",new CKEDITOR.dialogCommand("about"));e.modes={wysiwyg:1,source:1};e.canUndo=!1;e.readOnly=1;a.ui.addButton&&a.ui.addButton("About",{label:a.lang.about.title,command:"about",toolbar:"about"});CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),function(){CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{af:1,ar:1,bg:1,ca:1,cs:1,cy:1,da:1, +de:1,el:1,en:1,"en-gb":1,eo:1,es:1,et:1,fa:1,fi:1,fo:1,fr:1,"fr-ca":1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,nb:1,nl:1,no:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sr:1,"sr-latn":1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},init:function(a){var e=this;a.addCommand("a11yHelp",{exec:function(){var c=a.langCode,c=e.availableLangs[c]?c:e.availableLangs[c.replace(/-.*/,"")]?c.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e.path+ +"dialogs/lang/"+c+".js"),function(){a.lang.a11yhelp=e.langEntries[c];a.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:!1});a.setKeystroke(CKEDITOR.ALT+48,"a11yHelp");CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js");a.on("ariaEditorHelpLabel",function(c){c.data.label=a.lang.common.editorHelp})}})}(),CKEDITOR.plugins.add("basicstyles",{init:function(a){var e=0,c=function(c,f,b,d){if(d){d=new CKEDITOR.style(d);var h=g[b];h.unshift(d);a.attachStyleStateChange(d, +function(d){!a.readOnly&&a.getCommand(b).setState(d)});a.addCommand(b,new CKEDITOR.styleCommand(d,{contentForms:h}));a.ui.addButton&&a.ui.addButton(c,{label:f,command:b,toolbar:"basicstyles,"+(e+=10)})}},g={bold:["strong","b",["span",function(a){a=a.styles["font-weight"];return"bold"==a||700<=+a}]],italic:["em","i",["span",function(a){return"italic"==a.styles["font-style"]}]],underline:["u",["span",function(a){return"underline"==a.styles["text-decoration"]}]],strike:["s","strike",["span",function(a){return"line-through"== +a.styles["text-decoration"]}]],subscript:["sub"],superscript:["sup"]},f=a.config,m=a.lang.basicstyles;c("Bold",m.bold,"bold",f.coreStyles_bold);c("Italic",m.italic,"italic",f.coreStyles_italic);c("Underline",m.underline,"underline",f.coreStyles_underline);c("Strike",m.strike,"strike",f.coreStyles_strike);c("Subscript",m.subscript,"subscript",f.coreStyles_subscript);c("Superscript",m.superscript,"superscript",f.coreStyles_superscript);a.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"], +[CKEDITOR.CTRL+85,"underline"]])}}),CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"},CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"},CKEDITOR.config.coreStyles_underline={element:"u"},CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"},CKEDITOR.config.coreStyles_subscript={element:"sub"},CKEDITOR.config.coreStyles_superscript={element:"sup"},function(){var a={exec:function(a){var c=a.getCommand("blockquote").state,g=a.getSelection(),f=g&&g.getRanges()[0]; +if(f){var m=g.createBookmarks();if(CKEDITOR.env.ie){var l=m[0].startNode,k=m[0].endNode,b;if(l&&"blockquote"==l.getParent().getName())for(b=l;b=b.getNext();)if(b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()){l.move(b,!0);break}if(k&&"blockquote"==k.getParent().getName())for(b=k;b=b.getPrevious();)if(b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()){k.move(b);break}}var d=f.createIterator();d.enlargeBr=a.config.enterMode!=CKEDITOR.ENTER_BR;if(c==CKEDITOR.TRISTATE_OFF){for(l=[];c=d.getNextParagraph();)l.push(c); +1>l.length&&(c=a.document.createElement(a.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),k=m.shift(),f.insertNode(c),c.append(new CKEDITOR.dom.text("",a.document)),f.moveToBookmark(k),f.selectNodeContents(c),f.collapse(!0),k=f.createBookmark(),l.push(c),m.unshift(k));b=l[0].getParent();f=[];for(k=0;k<l.length;k++)c=l[k],b=b.getCommonAncestor(c.getParent());for(c={table:1,tbody:1,tr:1,ol:1,ul:1};c[b.getName()];)b=b.getParent();for(k=null;0<l.length;){for(c=l.shift();!c.getParent().equals(b);)c=c.getParent(); +c.equals(k)||f.push(c);k=c}for(;0<f.length;)if(c=f.shift(),"blockquote"==c.getName()){for(k=new CKEDITOR.dom.documentFragment(a.document);c.getFirst();)k.append(c.getFirst().remove()),l.push(k.getLast());k.replace(c)}else l.push(c);f=a.document.createElement("blockquote");for(f.insertBefore(l[0]);0<l.length;)c=l.shift(),f.append(c)}else if(c==CKEDITOR.TRISTATE_ON){k=[];for(b={};c=d.getNextParagraph();){for(l=f=null;c.getParent();){if("blockquote"==c.getParent().getName()){f=c.getParent();l=c;break}c= +c.getParent()}f&&l&&!l.getCustomData("blockquote_moveout")&&(k.push(l),CKEDITOR.dom.element.setMarker(b,l,"blockquote_moveout",!0))}CKEDITOR.dom.element.clearAllMarkers(b);c=[];l=[];for(b={};0<k.length;)d=k.shift(),f=d.getParent(),d.getPrevious()?d.getNext()?(d.breakParent(d.getParent()),l.push(d.getNext())):d.remove().insertAfter(f):d.remove().insertBefore(f),f.getCustomData("blockquote_processed")||(l.push(f),CKEDITOR.dom.element.setMarker(b,f,"blockquote_processed",!0)),c.push(d);CKEDITOR.dom.element.clearAllMarkers(b); +for(k=l.length-1;0<=k;k--){f=l[k];a:{b=f;for(var d=0,h=b.getChildCount(),p=void 0;d<h&&(p=b.getChild(d));d++)if(p.type==CKEDITOR.NODE_ELEMENT&&p.isBlockBoundary()){b=!1;break a}b=!0}b&&f.remove()}if(a.config.enterMode==CKEDITOR.ENTER_BR)for(f=!0;c.length;)if(d=c.shift(),"div"==d.getName()){k=new CKEDITOR.dom.documentFragment(a.document);!f||!d.getPrevious()||d.getPrevious().type==CKEDITOR.NODE_ELEMENT&&d.getPrevious().isBlockBoundary()||k.append(a.document.createElement("br"));for(f=d.getNext()&& +!(d.getNext().type==CKEDITOR.NODE_ELEMENT&&d.getNext().isBlockBoundary());d.getFirst();)d.getFirst().remove().appendTo(k);f&&k.append(a.document.createElement("br"));k.replace(d);f=!1}}g.selectBookmarks(m);a.focus()}},refresh:function(a,c){this.setState(a.elementPath(c.block||c.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"};CKEDITOR.plugins.add("blockquote",{init:function(e){e.blockless|| +(e.addCommand("blockquote",a),e.ui.addButton&&e.ui.addButton("Blockquote",{label:e.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"}))}})}(),"use strict",function(){function a(a,b,d){b.type||(b.type="auto");if(d&&!1===a.fire("beforePaste",b)||!b.dataValue&&b.dataTransfer.isEmpty())return!1;b.dataValue||(b.dataValue="");if(CKEDITOR.env.gecko&&"drop"==b.method&&a.toolbox)a.once("afterPaste",function(){a.toolbox.focus()});return a.fire("paste",b)}function e(b){function d(){var a=b.editable(); +if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var c=function(a){z.initPasteDataTransfer(a,b);a.data.preventDefault()};a.on("copy",c);a.on("cut",c);a.on("cut",function(){b.extractSelectedHtml()},null,null,999)}a.on(z.mainPasteEvent,function(a){"beforepaste"==z.mainPasteEvent&&D||x(a)});"beforepaste"==z.mainPasteEvent&&(a.on("paste",function(a){G||(e(),a.data.preventDefault(),x(a),k("paste")||b.openDialog("paste"))}),a.on("contextmenu",g,null,null,0),a.on("beforepaste",function(a){!a.data|| +a.data.$.ctrlKey||a.data.$.shiftKey||g()},null,null,0));a.on("beforecut",function(){!D&&l(b)});var f;a.attachListener(CKEDITOR.env.ie?a:b.document.getDocumentElement(),"mouseup",function(){f=setTimeout(function(){B()},0)});b.on("destroy",function(){clearTimeout(f)});a.on("keyup",B)}function c(a){return{type:a,canUndo:"cut"==a,startDisabled:!0,exec:function(){"cut"==this.type&&l();var a;var d=this.type;if(CKEDITOR.env.ie)a=k(d);else try{a=b.document.$.execCommand(d,!1,null)}catch(c){a=!1}a||b.showNotification(b.lang.clipboard[this.type+ +"Error"]);return a}}}function f(){return{canUndo:!1,async:!0,exec:function(b,d){var c=function(d,c){d&&a(b,d,!!c);b.fire("afterCommandExec",{name:"paste",command:f,returnValue:!!d})},f=this;"string"==typeof d?c({dataValue:d,method:"paste",dataTransfer:z.initPasteDataTransfer()},1):b.getClipboardData(c)}}}function e(){G=1;setTimeout(function(){G=0},100)}function g(){D=1;setTimeout(function(){D=0},10)}function k(a){var d=b.document,c=d.getBody(),f=!1,e=function(){f=!0};c.on(a,e);7<CKEDITOR.env.version? +d.$.execCommand(a):d.$.selection.createRange().execCommand(a);c.removeListener(a,e);return f}function l(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var a=b.getSelection(),d,c,f;a.getType()==CKEDITOR.SELECTION_ELEMENT&&(d=a.getSelectedElement())&&(c=a.getRanges()[0],f=b.document.createText(""),f.insertBefore(d),c.setStartBefore(f),c.setEndAfter(d),a.selectRanges([c]),setTimeout(function(){d.getParent()&&(f.remove(),a.selectElement(d))},0))}}function m(a,d){var c=b.document,f=b.editable(),e=function(a){a.cancel()}, +g;if(!c.getById("cke_pastebin")){var k=b.getSelection(),n=k.createBookmarks();CKEDITOR.env.ie&&k.root.fire("selectionchange");var l=new CKEDITOR.dom.element(!CKEDITOR.env.webkit&&!f.is("body")||CKEDITOR.env.ie?"div":"body",c);l.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var p=0,c=c.getWindow();CKEDITOR.env.webkit?(f.append(l),l.addClass("cke_editable"),f.is("body")||(p="static"!=f.getComputedStyle("position")?f:CKEDITOR.dom.element.get(f.$.offsetParent),p=p.getDocumentPosition().y)):f.getAscendant(CKEDITOR.env.ie? +"body":"html",1).append(l);l.setStyles({position:"absolute",top:c.getScrollPosition().y-p+10+"px",width:"1px",height:Math.max(1,c.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0});CKEDITOR.env.safari&&l.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text"));(p=l.getParent().isReadOnly())?(l.setOpacity(0),l.setAttribute("contenteditable",!0)):l.setStyle("ltr"==b.config.contentsLangDirection?"left":"right","-1000px");b.on("selectionChange",e,null,null,0);if(CKEDITOR.env.webkit|| +CKEDITOR.env.gecko)g=f.once("blur",e,null,null,-100);p&&l.focus();p=new CKEDITOR.dom.range(l);p.selectNodeContents(l);var t=p.select();CKEDITOR.env.ie&&(g=f.once("blur",function(){b.lockSelection(t)}));var q=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=q);g&&g.removeListener();CKEDITOR.env.ie&&f.focus();k.selectBookmarks(n);l.remove();var a;CKEDITOR.env.webkit&&(a=l.getFirst())&&a.is&&a.hasClass("Apple-style-span")&& +(l=a);b.removeListener("selectionChange",e);d(l.getHtml())},0)}}function C(){if("paste"==z.mainPasteEvent)return b.fire("beforePaste",{type:"auto",method:"paste"}),!1;b.focus();e();var a=b.focusManager;a.lock();if(b.editable().fire(z.mainPasteEvent)&&!k("paste"))return a.unlock(),!1;a.unlock();return!0}function r(a){if("wysiwyg"==b.mode)switch(a.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:a=b.editable();e();"paste"==z.mainPasteEvent&&a.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+ +46:b.fire("saveSnapshot"),setTimeout(function(){b.fire("saveSnapshot")},50)}}function x(d){var c={type:"auto",method:"paste",dataTransfer:z.initPasteDataTransfer(d)};c.dataTransfer.cacheData();var f=!1!==b.fire("beforePaste",c);f&&z.canClipboardApiBeTrusted(c.dataTransfer,b)?(d.data.preventDefault(),setTimeout(function(){a(b,c)},0)):m(d,function(d){c.dataValue=d.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,"");f&&a(b,c)})}function B(){if("wysiwyg"==b.mode){var a=A("paste");b.getCommand("cut").setState(A("cut")); +b.getCommand("copy").setState(A("copy"));b.getCommand("paste").setState(a);b.fire("pasteState",a)}}function A(a){if(F&&a in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==a)return CKEDITOR.TRISTATE_OFF;a=b.getSelection();var d=a.getRanges();return a.getType()==CKEDITOR.SELECTION_NONE||1==d.length&&d[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var z=CKEDITOR.plugins.clipboard,D=0,G=0,F=0;(function(){b.on("key",r);b.on("contentDom",d);b.on("selectionChange",function(a){F= +a.data.selection.getRanges()[0].checkReadOnly();B()});b.contextMenu&&b.contextMenu.addListener(function(a,b){F=b.getRanges()[0].checkReadOnly();return{cut:A("cut"),copy:A("copy"),paste:A("paste")}})})();(function(){function a(d,c,f,e,g){var k=b.lang.clipboard[c];b.addCommand(c,f);b.ui.addButton&&b.ui.addButton(d,{label:k,command:c,toolbar:"clipboard,"+e});b.addMenuItems&&b.addMenuItem(c,{label:k,command:c,group:"clipboard",order:g})}a("Cut","cut",c("cut"),10,1);a("Copy","copy",c("copy"),20,4);a("Paste", +"paste",f(),30,8)})();b.getClipboardData=function(a,d){function c(a){a.removeListener();a.cancel();d(a.data)}function f(a){a.removeListener();a.cancel();n=!0;d({type:k,dataValue:a.data,method:"paste"})}function e(){this.customTitle=a&&a.title}var g=!1,k="auto",n=!1;d||(d=a,a=null);b.on("paste",c,null,null,0);b.on("beforePaste",function(a){a.removeListener();g=!0;k=a.data.type},null,null,1E3);!1===C()&&(b.removeListener("paste",c),g&&b.fire("pasteDialog",e)?(b.on("pasteDialogCommit",f),b.on("dialogHide", +function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",f);setTimeout(function(){n||d(null)},10)})):d(null))}}function c(a){if(CKEDITOR.env.webkit){if(!a.match(/^[^<]*$/g)&&!a.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi)&&!a.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi))return"html"}else if(CKEDITOR.env.gecko){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}else return"html";return"htmlifiedtext"} +function g(a,b){function d(a){return CKEDITOR.tools.repeat("\x3c/p\x3e\x3cp\x3e",~~(a/2))+(1==a%2?"\x3cbr\x3e":"")}b=b.replace(/\s+/g," ").replace(/> +</g,"\x3e\x3c").replace(/<br ?\/>/gi,"\x3cbr\x3e");b=b.replace(/<\/?[A-Z]+>/g,function(a){return a.toLowerCase()});if(b.match(/^[^<]$/))return b;CKEDITOR.env.webkit&&-1<b.indexOf("\x3cdiv\x3e")&&(b=b.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"\x3cbr\x3e").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"\x3cdiv\x3e\x3c/div\x3e"),b.match(/<div>(<br>|)<\/div>/)&& +(b="\x3cp\x3e"+b.replace(/(<div>(<br>|)<\/div>)+/g,function(a){return d(a.split("\x3c/div\x3e\x3cdiv\x3e").length+1)})+"\x3c/p\x3e"),b=b.replace(/<\/div><div>/g,"\x3cbr\x3e"),b=b.replace(/<\/?div>/g,""));CKEDITOR.env.gecko&&a.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(b=b.replace(/^<br><br>$/,"\x3cbr\x3e")),-1<b.indexOf("\x3cbr\x3e\x3cbr\x3e")&&(b="\x3cp\x3e"+b.replace(/(<br>){2,}/g,function(a){return d(a.length/4)})+"\x3c/p\x3e"));return l(a,b)}function f(){function a(){var b={},d;for(d in CKEDITOR.dtd)"$"!= +d.charAt(0)&&"div"!=d&&"span"!=d&&(b[d]=1);return b}var b={};return{get:function(d){return"plain-text"==d?b.plainText||(b.plainText=new CKEDITOR.filter("br")):"semantic-content"==d?((d=b.semanticContent)||(d=new CKEDITOR.filter,d.allow({$1:{elements:a(),attributes:!0,styles:!1,classes:!1}}),d=b.semanticContent=d),d):d?new CKEDITOR.filter(d):null}}}function m(a,b,d){b=CKEDITOR.htmlParser.fragment.fromHtml(b);var c=new CKEDITOR.htmlParser.basicWriter;d.applyTo(b,!0,!1,a.activeEnterMode);b.writeHtml(c); +return c.getHtml()}function l(a,b){a.enterMode==CKEDITOR.ENTER_BR?b=b.replace(/(<\/p><p>)+/g,function(a){return CKEDITOR.tools.repeat("\x3cbr\x3e",a.length/7*2)}).replace(/<\/?p>/g,""):a.enterMode==CKEDITOR.ENTER_DIV&&(b=b.replace(/<(\/)?p>/g,"\x3c$1div\x3e"));return b}function k(a){a.data.preventDefault();a.data.$.dataTransfer.dropEffect="none"}function b(b){var d=CKEDITOR.plugins.clipboard;b.on("contentDom",function(){function c(d,f,e){f.select();a(b,{dataTransfer:e,method:"drop"},1);e.sourceEditor.fire("saveSnapshot"); +e.sourceEditor.editable().extractHtmlFromRange(d);e.sourceEditor.getSelection().selectRanges([d]);e.sourceEditor.fire("saveSnapshot")}function f(c,e){c.select();a(b,{dataTransfer:e,method:"drop"},1);d.resetDragDataTransfer()}function e(a,d,c){var f={$:a.data.$,target:a.data.getTarget()};d&&(f.dragRange=d);c&&(f.dropRange=c);!1===b.fire(a.name,f)&&a.data.preventDefault()}function g(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());return a.getChildCount()}var k=b.editable(),l=CKEDITOR.plugins.clipboard.getDropTarget(b), +m=b.ui.space("top"),C=b.ui.space("bottom");d.preventDefaultDropOnElement(m);d.preventDefaultDropOnElement(C);k.attachListener(l,"dragstart",e);k.attachListener(b,"dragstart",d.resetDragDataTransfer,d,null,1);k.attachListener(b,"dragstart",function(a){d.initDragDataTransfer(a,b)},null,null,2);k.attachListener(b,"dragstart",function(){var a=d.dragRange=b.getSelection().getRanges()[0];CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(d.dragStartContainerChildCount=a?g(a.startContainer):null,d.dragEndContainerChildCount= +a?g(a.endContainer):null)},null,null,100);k.attachListener(l,"dragend",e);k.attachListener(b,"dragend",d.initDragDataTransfer,d,null,1);k.attachListener(b,"dragend",d.resetDragDataTransfer,d,null,100);k.attachListener(l,"dragover",function(a){var b=a.data.getTarget();b&&b.is&&b.is("html")?a.data.preventDefault():CKEDITOR.env.ie&&CKEDITOR.plugins.clipboard.isFileApiSupported&&a.data.$.dataTransfer.types.contains("Files")&&a.data.preventDefault()});k.attachListener(l,"drop",function(a){a.data.preventDefault(); +var c=a.data.getTarget();if(!c.isReadOnly()||c.type==CKEDITOR.NODE_ELEMENT&&c.is("html")){var c=d.getRangeAtDropPosition(a,b),f=d.dragRange;c&&e(a,f,c)}});k.attachListener(b,"drop",d.initDragDataTransfer,d,null,1);k.attachListener(b,"drop",function(a){if(a=a.data){var e=a.dropRange,g=a.dragRange,k=a.dataTransfer;k.getTransferType(b)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){d.internalDrop(g,e,k,b)},0):k.getTransferType(b)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?c(g,e,k):f(e,k)}},null,null, +9999)})}CKEDITOR.plugins.add("clipboard",{requires:"dialog",init:function(a){var d,k=f();a.config.forcePasteAsPlainText?d="plain-text":a.config.pasteFilter?d=a.config.pasteFilter:!CKEDITOR.env.webkit||"pasteFilter"in a.config||(d="semantic-content");a.pasteFilter=k.get(d);e(a);b(a);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js"));a.on("paste",function(b){b.data.dataTransfer||(b.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer);if(!b.data.dataValue){var d=b.data.dataTransfer, +c=d.getData("text/html");if(c)b.data.dataValue=c,b.data.type="html";else if(c=d.getData("text/plain"))b.data.dataValue=a.editable().transformPlainTextToHtml(c),b.data.type="text"}},null,null,1);a.on("paste",function(a){var b=a.data.dataValue,d=CKEDITOR.dtd.$block;-1<b.indexOf("Apple-")&&(b=b.replace(/<span class="Apple-converted-space"> <\/span>/gi," "),"html"!=a.data.type&&(b=b.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(a,b){return b.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;")})), +-1<b.indexOf('\x3cbr class\x3d"Apple-interchange-newline"\x3e')&&(a.data.startsWithEOL=1,a.data.preSniffing="html",b=b.replace(/<br class="Apple-interchange-newline">/,"")),b=b.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1"));if(b.match(/^<[^<]+cke_(editable|contents)/i)){var c,f,h=new CKEDITOR.dom.element("div");for(h.setHtml(b);1==h.getChildCount()&&(c=h.getFirst())&&c.type==CKEDITOR.NODE_ELEMENT&&(c.hasClass("cke_editable")||c.hasClass("cke_contents"));)h=f=c;f&&(b=f.getHtml().replace(/<br>$/i, +""))}CKEDITOR.env.ie?b=b.replace(/^ (?: |\r\n)?<(\w+)/g,function(b,c){return c.toLowerCase()in d?(a.data.preSniffing="html","\x3c"+c):b}):CKEDITOR.env.webkit?b=b.replace(/<\/(\w+)><div><br><\/div>$/,function(b,c){return c in d?(a.data.endsWithEOL=1,"\x3c/"+c+"\x3e"):b}):CKEDITOR.env.gecko&&(b=b.replace(/(\s)<br>$/,"$1"));a.data.dataValue=b},null,null,3);a.on("paste",function(b){b=b.data;var d=b.type,f=b.dataValue,e,l=a.config.clipboard_defaultContentType||"html",p=b.dataTransfer.getTransferType(a); +e="html"==d||"html"==b.preSniffing?"html":c(f);"htmlifiedtext"==e&&(f=g(a.config,f));"text"==d&&"html"==e?f=m(a,f,k.get("plain-text")):p==CKEDITOR.DATA_TRANSFER_EXTERNAL&&a.pasteFilter&&!b.dontFilter&&(f=m(a,f,a.pasteFilter));b.startsWithEOL&&(f='\x3cbr data-cke-eol\x3d"1"\x3e'+f);b.endsWithEOL&&(f+='\x3cbr data-cke-eol\x3d"1"\x3e');"auto"==d&&(d="html"==e||"html"==l?"html":"text");b.type=d;b.dataValue=f;delete b.preSniffing;delete b.startsWithEOL;delete b.endsWithEOL},null,null,6);a.on("paste",function(b){b= +b.data;b.dataValue&&(a.insertHtml(b.dataValue,b.type,b.range),setTimeout(function(){a.fire("afterPaste")},0))},null,null,1E3);a.on("pasteDialog",function(b){setTimeout(function(){a.openDialog("paste",b.data)},0)})}});CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:!CKEDITOR.env.ie&&!CKEDITOR.env.iOS,isCustomDataTypesSupported:!CKEDITOR.env.ie,isFileApiSupported:!CKEDITOR.env.ie||9<CKEDITOR.env.version,mainPasteEvent:CKEDITOR.env.ie&&!CKEDITOR.env.edge?"beforepaste":"paste",canClipboardApiBeTrusted:function(a, +b){return a.getTransferType(b)!=CKEDITOR.DATA_TRANSFER_EXTERNAL||CKEDITOR.env.chrome&&!a.isEmpty()||CKEDITOR.env.gecko&&(a.getData("text/html")||a.getFilesCount())?!0:!1},getDropTarget:function(a){var b=a.editable();return CKEDITOR.env.ie&&9>CKEDITOR.env.version||b.isInline()?b:a.document},fixSplitNodesAfterDrop:function(a,b,d,c){function f(a,d,c){var h=a;h.type==CKEDITOR.NODE_TEXT&&(h=a.getParent());if(h.equals(d)&&c!=d.getChildCount())return a=b.startContainer.getChild(b.startOffset-1),d=b.startContainer.getChild(b.startOffset), +a&&a.type==CKEDITOR.NODE_TEXT&&d&&d.type==CKEDITOR.NODE_TEXT&&(c=a.getLength(),a.setText(a.getText()+d.getText()),d.remove(),b.setStart(a,c),b.collapse(!0)),!0}var e=b.startContainer;"number"==typeof c&&"number"==typeof d&&e.type==CKEDITOR.NODE_ELEMENT&&(f(a.startContainer,e,d)||f(a.endContainer,e,c))},isDropRangeAffectedByDragRange:function(a,b){var d=b.startContainer,c=b.endOffset;return a.endContainer.equals(d)&&a.endOffset<=c||a.startContainer.getParent().equals(d)&&a.startContainer.getIndex()< +c||a.endContainer.getParent().equals(d)&&a.endContainer.getIndex()<c?!0:!1},internalDrop:function(b,d,c,f){var e=CKEDITOR.plugins.clipboard,g=f.editable(),k,l;f.fire("saveSnapshot");f.fire("lockSnapshot",{dontUpdate:1});CKEDITOR.env.ie&&10>CKEDITOR.env.version&&this.fixSplitNodesAfterDrop(b,d,e.dragStartContainerChildCount,e.dragEndContainerChildCount);(l=this.isDropRangeAffectedByDragRange(b,d))||(k=b.createBookmark(!1));e=d.clone().createBookmark(!1);l&&(k=b.createBookmark(!1));b=k.startNode;d= +k.endNode;l=e.startNode;d&&b.getPosition(l)&CKEDITOR.POSITION_PRECEDING&&d.getPosition(l)&CKEDITOR.POSITION_FOLLOWING&&l.insertBefore(b);b=f.createRange();b.moveToBookmark(k);g.extractHtmlFromRange(b,1);d=f.createRange();d.moveToBookmark(e);a(f,{dataTransfer:c,method:"drop",range:d},1);f.fire("unlockSnapshot")},getRangeAtDropPosition:function(a,b){var d=a.data.$,c=d.clientX,f=d.clientY,e=b.getSelection(!0).getRanges()[0],g=b.createRange();if(a.data.testRange)return a.data.testRange;if(document.caretRangeFromPoint)d= +b.document.$.caretRangeFromPoint(c,f),g.setStart(CKEDITOR.dom.node(d.startContainer),d.startOffset),g.collapse(!0);else if(d.rangeParent)g.setStart(CKEDITOR.dom.node(d.rangeParent),d.rangeOffset),g.collapse(!0);else{if(CKEDITOR.env.ie&&8<CKEDITOR.env.version&&e&&b.editable().hasFocus)return e;if(document.body.createTextRange){b.focus();d=b.document.getBody().$.createTextRange();try{for(var k=!1,l=0;20>l&&!k;l++){if(!k)try{d.moveToPoint(c,f-l),k=!0}catch(m){}if(!k)try{d.moveToPoint(c,f+l),k=!0}catch(r){}}if(k){var x= +"cke-temp-"+(new Date).getTime();d.pasteHTML('\x3cspan id\x3d"'+x+'"\x3e​\x3c/span\x3e');var B=b.document.getById(x);g.moveToPosition(B,CKEDITOR.POSITION_BEFORE_START);B.remove()}else{var A=b.document.$.elementFromPoint(c,f),z=new CKEDITOR.dom.element(A),D;if(z.equals(b.editable())||"html"==z.getName())return e&&e.startContainer&&!e.startContainer.equals(b.editable())?e:null;D=z.getClientRect();c<D.left?g.setStartAt(z,CKEDITOR.POSITION_AFTER_START):g.setStartAt(z,CKEDITOR.POSITION_BEFORE_END);g.collapse(!0)}}catch(G){return null}}else return null}return g}, +initDragDataTransfer:function(a,b){var d=a.data.$?a.data.$.dataTransfer:null,c=new this.dataTransfer(d,b);d?this.dragData&&c.id==this.dragData.id?c=this.dragData:this.dragData=c:this.dragData?c=this.dragData:this.dragData=c;a.data.dataTransfer=c},resetDragDataTransfer:function(){this.dragData=null},initPasteDataTransfer:function(a,b){if(this.isCustomCopyCutSupported&&a&&a.data&&a.data.$){var d=new this.dataTransfer(a.data.$.clipboardData,b);this.copyCutData&&d.id==this.copyCutData.id?(d=this.copyCutData, +d.$=a.data.$.clipboardData):this.copyCutData=d;return d}return new this.dataTransfer(null,b)},preventDefaultDropOnElement:function(a){a&&a.on("dragover",k)}};var d=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?"cke/id":"Text";CKEDITOR.plugins.clipboard.dataTransfer=function(a,b){a&&(this.$=a);this._={metaRegExp:/^<meta.*?>/i,bodyRegExp:/<body(?:[\s\S]*?)>([\s\S]*)<\/body>/i,fragmentRegExp:/\x3c!--(?:Start|End)Fragment--\x3e/g,data:{},files:[],normalizeType:function(a){a=a.toLowerCase();return"text"== +a||"text/plain"==a?"Text":"url"==a?"URL":a}};this.id=this.getData(d);this.id||(this.id="Text"==d?"":"cke-"+CKEDITOR.tools.getUniqueId());if("Text"!=d)try{this.$.setData(d,this.id)}catch(c){}b&&(this.sourceEditor=b,this.setData("text/html",b.getSelectedHtml(1)),"Text"==d||this.getData("text/plain")||this.setData("text/plain",b.getSelection().getSelectedText()))};CKEDITOR.DATA_TRANSFER_INTERNAL=1;CKEDITOR.DATA_TRANSFER_CROSS_EDITORS=2;CKEDITOR.DATA_TRANSFER_EXTERNAL=3;CKEDITOR.plugins.clipboard.dataTransfer.prototype= +{getData:function(a){a=this._.normalizeType(a);var b=this._.data[a];if(void 0===b||null===b||""===b)try{b=this.$.getData(a)}catch(d){}if(void 0===b||null===b||""===b)b="";"text/html"==a?(b=b.replace(this._.metaRegExp,""),(a=this._.bodyRegExp.exec(b))&&a.length&&(b=a[1],b=b.replace(this._.fragmentRegExp,""))):"Text"==a&&CKEDITOR.env.gecko&&this.getFilesCount()&&"file://"==b.substring(0,7)&&(b="");return b},setData:function(a,b){a=this._.normalizeType(a);this._.data[a]=b;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported|| +"URL"==a||"Text"==a){"Text"==d&&"Text"==a&&(this.id=b);try{this.$.setData(a,b)}catch(c){}}},getTransferType:function(a){return this.sourceEditor?this.sourceEditor==a?CKEDITOR.DATA_TRANSFER_INTERNAL:CKEDITOR.DATA_TRANSFER_CROSS_EDITORS:CKEDITOR.DATA_TRANSFER_EXTERNAL},cacheData:function(){function a(d){d=b._.normalizeType(d);var c=b.getData(d);c&&(b._.data[d]=c)}if(this.$){var b=this,d,c;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(d=0;d<this.$.types.length;d++)a(this.$.types[d])}else a("Text"), +a("URL");c=this._getImageFromClipboard();if(this.$&&this.$.files||c){this._.files=[];for(d=0;d<this.$.files.length;d++)this._.files.push(this.$.files[d]);0===this._.files.length&&c&&this._.files.push(c)}}},getFilesCount:function(){return this._.files.length?this._.files.length:this.$&&this.$.files&&this.$.files.length?this.$.files.length:this._getImageFromClipboard()?1:0},getFile:function(a){return this._.files.length?this._.files[a]:this.$&&this.$.files&&this.$.files.length?this.$.files[a]:0===a? +this._getImageFromClipboard():void 0},isEmpty:function(){var a={},b;if(this.getFilesCount())return!1;for(b in this._.data)a[b]=1;if(this.$)if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(var c=0;c<this.$.types.length;c++)a[this.$.types[c]]=1}else a.Text=1,a.URL=1;"Text"!=d&&(a[d]=0);for(b in a)if(a[b]&&""!==this.getData(b))return!1;return!0},_getImageFromClipboard:function(){var a;if(this.$&&this.$.items&&this.$.items[0])try{if((a=this.$.items[0].getAsFile())&&a.type)return a}catch(b){}}}}(), +function(){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,c){c&&CKEDITOR.tools.extend(this,c);CKEDITOR.tools.extend(this,{className:"",css:[]});this.id=CKEDITOR.tools.getNextId();this.document=a;this.isFramed=this.forceIFrame||this.css.length;this._={blocks:{}}};CKEDITOR.ui.panel.handler={create:function(a){return new CKEDITOR.ui.panel(a)}};var a=CKEDITOR.addTemplate("panel", +'\x3cdiv lang\x3d"{langCode}" id\x3d"{id}" dir\x3d{dir} class\x3d"cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style\x3d"z-index:{z-index}" role\x3d"presentation"\x3e{frame}\x3c/div\x3e'),e=CKEDITOR.addTemplate("panel-frame",'\x3ciframe id\x3d"{id}" class\x3d"cke_panel_frame" role\x3d"presentation" frameborder\x3d"0" src\x3d"{src}"\x3e\x3c/iframe\x3e'),c=CKEDITOR.addTemplate("panel-frame-inner",'\x3c!DOCTYPE html\x3e\x3chtml class\x3d"cke_panel_container {env}" dir\x3d"{dir}" lang\x3d"{langCode}"\x3e\x3chead\x3e{css}\x3c/head\x3e\x3cbody class\x3d"cke_{dir}" style\x3d"margin:0;padding:0" onload\x3d"{onload}"\x3e\x3c/body\x3e\x3c/html\x3e'); +CKEDITOR.ui.panel.prototype={render:function(g,f){this.getHolderElement=function(){var a=this._.holder;if(!a){if(this.isFramed){var a=this.document.getById(this.id+"_frame"),b=a.getParent(),a=a.getFrameDocument();CKEDITOR.env.iOS&&b.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"});b=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=!0;if(this.onLoad)this.onLoad()},this));a.write(c.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+ +b+");"},m)));a.getWindow().$.CKEDITOR=CKEDITOR;a.on("keydown",function(a){var b=a.data.getKeystroke(),c=this.document.getById(this.id).getAttribute("dir");this._.onKeyDown&&!1===this._.onKeyDown(b)?a.data.preventDefault():(27==b||b==("rtl"==c?39:37))&&this.onEscape&&!1===this.onEscape(b)&&a.data.preventDefault()},this);a=a.getBody();a.unselectable();CKEDITOR.env.air&&CKEDITOR.tools.callFunction(b)}else a=this.document.getById(this.id);this._.holder=a}return a};var m={editorId:g.id,id:this.id,langCode:g.langCode, +dir:g.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":g.config.baseFloatZIndex+1};if(this.isFramed){var l=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";m.frame=e.output({id:this.id+"_frame",src:l})}l=a.output(m);f&&f.push(l);return l},addBlock:function(a,c){c=this._.blocks[a]=c instanceof CKEDITOR.ui.panel.block?c:new CKEDITOR.ui.panel.block(this.getHolderElement(), +c);this._.currentBlock||this.showBlock(a);return c},getBlock:function(a){return this._.blocks[a]},showBlock:function(a){a=this._.blocks[a];var c=this._.currentBlock,e=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");c&&c.hide();this._.currentBlock=a;CKEDITOR.fire("ariaWidget",e);a._.focusIndex=-1;this._.onKeyDown=a.onKeyDown&&CKEDITOR.tools.bind(a.onKeyDown,a);a.show();return a},destroy:function(){this.element&&this.element.remove()}};CKEDITOR.ui.panel.block= +CKEDITOR.tools.createClass({$:function(a,c){this.element=a.append(a.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));c&&CKEDITOR.tools.extend(this,c);this.element.setAttributes({role:this.attributes.role||"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]});this.keys={};this._.focusIndex=-1;this.element.disableContextMenu()},_:{markItem:function(a){-1!=a&&(a=this.element.getElementsByTag("a").getItem(this._.focusIndex= +a),CKEDITOR.env.webkit&&a.getDocument().getWindow().focus(),a.focus(),this.onMark&&this.onMark(a))}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){this.onHide&&!0===this.onHide.call(this)||this.element.setStyle("display","none")},onKeyDown:function(a,c){var e=this.keys[a];switch(e){case "next":for(var l=this._.focusIndex,e=this.element.getElementsByTag("a"),k;k=e.getItem(++l);)if(k.getAttribute("_cke_focus")&&k.$.offsetWidth){this._.focusIndex=l;k.focus();break}return k|| +c?!1:(this._.focusIndex=-1,this.onKeyDown(a,1));case "prev":l=this._.focusIndex;for(e=this.element.getElementsByTag("a");0<l&&(k=e.getItem(--l));){if(k.getAttribute("_cke_focus")&&k.$.offsetWidth){this._.focusIndex=l;k.focus();break}k=null}return k||c?!1:(this._.focusIndex=e.count(),this.onKeyDown(a,1));case "click":case "mouseup":return l=this._.focusIndex,(k=0<=l&&this.element.getElementsByTag("a").getItem(l))&&(k.$[e]?k.$[e]():k.$["on"+e]()),!1}return!0}}})}(),CKEDITOR.plugins.add("floatpanel", +{requires:"panel"}),function(){function a(a,g,f,m,l){l=CKEDITOR.tools.genKey(g.getUniqueId(),f.getUniqueId(),a.lang.dir,a.uiColor||"",m.css||"",l||"");var k=e[l];k||(k=e[l]=new CKEDITOR.ui.panel(g,m),k.element=f.append(CKEDITOR.dom.element.createFromHtml(k.render(a),g)),k.element.setStyles({display:"none",position:"absolute"}));return k}var e={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(c,e,f,m){function l(){h.hide()}f.forceIFrame=1;f.toolbarRelated&&c.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&& +(e=CKEDITOR.document.getById("cke_"+c.name));var k=e.getDocument();m=a(c,k,e,f,m||0);var b=m.element,d=b.getFirst(),h=this;b.disableContextMenu();this.element=b;this._={editor:c,panel:m,parentElement:e,definition:f,document:k,iframe:d,children:[],dir:c.lang.dir,showBlockParams:null};c.on("mode",l);c.on("resize",l);k.getWindow().on("resize",function(){this.reposition()},this)},proto:{addBlock:function(a,e){return this._.panel.addBlock(a,e)},addListBlock:function(a,e){return this._.panel.addListBlock(a, +e)},getBlock:function(a){return this._.panel.getBlock(a)},showBlock:function(a,e,f,m,l,k){var b=this._.panel,d=b.showBlock(a);this._.showBlockParams=[].slice.call(arguments);this.allowBlur(!1);var h=this._.editor.editable();this._.returnFocus=h.hasFocus?h:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);this._.hideTimeout=0;var p=this.element,h=this._.iframe,h=CKEDITOR.env.ie&&!CKEDITOR.env.edge?h:new CKEDITOR.dom.window(h.$.contentWindow),v=p.getDocument(),u=this._.parentElement.getPositionedAncestor(), +t=e.getDocumentPosition(v),v=u?u.getDocumentPosition(v):{x:0,y:0},n="rtl"==this._.dir,q=t.x+(m||0)-v.x,w=t.y+(l||0)-v.y;!n||1!=f&&4!=f?n||2!=f&&3!=f||(q+=e.$.offsetWidth-1):q+=e.$.offsetWidth;if(3==f||4==f)w+=e.$.offsetHeight-1;this._.panel._.offsetParentId=e.getId();p.setStyles({top:w+"px",left:0,display:""});p.setOpacity(0);p.getFirst().removeStyle("width");this._.editor.focusManager.add(h);this._.blurSet||(CKEDITOR.event.useCapture=!0,h.on("blur",function(a){function b(){delete this._.returnFocus; +this.hide()}this.allowBlur()&&a.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&this.visible&&!this._.activeChild&&(CKEDITOR.env.iOS?this._.hideTimeout||(this._.hideTimeout=CKEDITOR.tools.setTimeout(b,0,this)):b.call(this))},this),h.on("focus",function(){this._.focused=!0;this.hideChild();this.allowBlur(!0)},this),CKEDITOR.env.iOS&&(h.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this),h.on("touchend",function(){this._.hideTimeout=0;this.focus()},this)),CKEDITOR.event.useCapture=!1, +this._.blurSet=1);b.onEscape=CKEDITOR.tools.bind(function(a){if(this.onEscape&&!1===this.onEscape(a))return!1},this);CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.tools.bind(function(){var a=p;a.removeStyle("width");if(d.autoSize){var c=d.element.getDocument(),c=(CKEDITOR.env.webkit?d.element:c.getBody()).$.scrollWidth;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<c&&(c+=(a.$.offsetWidth||0)-(a.$.clientWidth||0)+3);a.setStyle("width",c+10+"px");c=d.element.$.scrollHeight;CKEDITOR.env.ie&&CKEDITOR.env.quirks&& +0<c&&(c+=(a.$.offsetHeight||0)-(a.$.clientHeight||0)+3);a.setStyle("height",c+"px");b._.currentBlock.element.setStyle("display","none").removeStyle("display")}else a.removeStyle("height");n&&(q-=p.$.offsetWidth);p.setStyle("left",q+"px");var c=b.element.getWindow(),a=p.$.getBoundingClientRect(),c=c.getViewPaneSize(),f=a.width||a.right-a.left,e=a.height||a.bottom-a.top,h=n?a.right:c.width-a.left,g=n?c.width-a.right:a.left;n?h<f&&(q=g>f?q+f:c.width>f?q-a.left:q-a.right+c.width):h<f&&(q=g>f?q-f:c.width> +f?q-a.right+c.width:q-a.left);f=a.top;c.height-a.top<e&&(w=f>e?w-e:c.height>e?w-a.bottom+c.height:w-a.top);CKEDITOR.env.ie&&(c=a=new CKEDITOR.dom.element(p.$.offsetParent),"html"==c.getName()&&(c=c.getDocument().getBody()),"rtl"==c.getComputedStyle("direction")&&(q=CKEDITOR.env.ie8Compat?q-2*p.getDocument().getDocumentElement().$.scrollLeft:q-(a.$.scrollWidth-a.$.clientWidth)));var a=p.getFirst(),l;(l=a.getCustomData("activePanel"))&&l.onHide&&l.onHide.call(this,1);a.setCustomData("activePanel",this); +p.setStyles({top:w+"px",left:q+"px"});p.setOpacity(1);k&&k()},this);b.isLoaded?a():b.onLoad=a;CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus();d.element.focus();CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=a);this.allowBlur(!0);this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:0,this);this.visible=1;this.onShow&&this.onShow.call(this)},reposition:function(){var a=this._.showBlockParams; +this.visible&&this._.showBlockParams&&(this.hide(),this.showBlock.apply(this,a))},focus:function(){if(CKEDITOR.env.webkit){var a=CKEDITOR.document.getActive();a&&!a.equals(this._.iframe)&&a.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var a=this._.iframe.getFrameDocument().getActive();a&&a.is("a")&&(this._.lastFocused=a)},hide:function(a){if(this.visible&&(!this.onHide||!0!==this.onHide.call(this))){this.hideChild();CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur(); +this.element.setStyle("display","none");this.visible=0;this.element.getFirst().removeCustomData("activePanel");if(a=a&&this._.returnFocus)CKEDITOR.env.webkit&&a.type&&a.getWindow().$.focus(),a.focus();delete this._.lastFocused;this._.showBlockParams=null;this._.editor.fire("panelHide",this)}},allowBlur:function(a){var e=this._.panel;void 0!==a&&(e.allowBlur=a);return e.allowBlur},showAsChild:function(a,e,f,m,l,k){if(this._.activeChild!=a||a._.panel._.offsetParentId!=f.getId())this.hideChild(),a.onHide= +CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this),this._.activeChild=a,this._.focused=!1,a.showBlock(e,f,m,l,k),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){a.element.getChild(0).$.style.cssText+=""},100)},hideChild:function(a){var e=this._.activeChild;e&&(delete e.onHide,delete this._.activeChild,e.hide(),a&&this.focus())}}});CKEDITOR.on("instanceDestroyed",function(){var a=CKEDITOR.tools.isEmpty(CKEDITOR.instances), +g;for(g in e){var f=e[g];a?f.destroy():f.element.hide()}a&&(e={})})}(),CKEDITOR.plugins.add("menu",{requires:"floatpanel",beforeInit:function(a){for(var e=a.config.menu_groups.split(","),c=a._.menuGroups={},g=a._.menuItems={},f=0;f<e.length;f++)c[e[f]]=f+1;a.addMenuGroup=function(a,f){c[a]=f||100};a.addMenuItem=function(a,f){c[f.group]&&(g[a]=new CKEDITOR.menuItem(this,a,f))};a.addMenuItems=function(a){for(var c in a)this.addMenuItem(c,a[c])};a.getMenuItem=function(a){return g[a]};a.removeMenuItem= +function(a){delete g[a]}}}),function(){function a(a){a.sort(function(a,c){return a.group<c.group?-1:a.group>c.group?1:a.order<c.order?-1:a.order>c.order?1:0})}var e='\x3cspan class\x3d"cke_menuitem"\x3e\x3ca id\x3d"{id}" class\x3d"cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href\x3d"{href}" title\x3d"{title}" tabindex\x3d"-1"_cke_focus\x3d1 hidefocus\x3d"true" role\x3d"{role}" aria-haspopup\x3d"{hasPopup}" aria-disabled\x3d"{disabled}" {ariaChecked}';CKEDITOR.env.gecko&&CKEDITOR.env.mac&& +(e+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(e+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var e=e+(' onmouseover\x3d"CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout\x3d"CKEDITOR.tools.callFunction({moveOutFn},{index});" '+(CKEDITOR.env.ie?'onclick\x3d"return false;" onmouseup':"onclick")+'\x3d"CKEDITOR.tools.callFunction({clickFn},{index}); return false;"\x3e'),c=CKEDITOR.addTemplate("menuItem",e+'\x3cspan class\x3d"cke_menubutton_inner"\x3e\x3cspan class\x3d"cke_menubutton_icon"\x3e\x3cspan class\x3d"cke_button_icon cke_button__{iconName}_icon" style\x3d"{iconStyle}"\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"cke_menubutton_label"\x3e{label}\x3c/span\x3e{arrowHtml}\x3c/span\x3e\x3c/a\x3e\x3c/span\x3e'), +g=CKEDITOR.addTemplate("menuArrow",'\x3cspan class\x3d"cke_menuarrow"\x3e\x3cspan\x3e{label}\x3c/span\x3e\x3c/span\x3e');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(a,c){c=this._.definition=c||{};this.id=CKEDITOR.tools.getNextId();this.editor=a;this.items=[];this._.listeners=[];this._.level=c.level||1;var e=CKEDITOR.tools.extend({},c.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),g=e.block.attributes=e.attributes||{};!g.role&&(g.role="menu");this._.panelDefinition= +e},_:{onShow:function(){var a=this.editor.getSelection(),c=a&&a.getStartElement(),e=this.editor.elementPath(),g=this._.listeners;this.removeAll();for(var b=0;b<g.length;b++){var d=g[b](c,a,e);if(d)for(var h in d){var p=this.editor.getMenuItem(h);!p||p.command&&!this.editor.getCommand(p.command).state||(p.state=d[h],this.add(p))}}},onClick:function(a){this.hide();if(a.onClick)a.onClick();else a.command&&this.editor.execCommand(a.command)},onEscape:function(a){var c=this.parent;c?c._.panel.hideChild(1): +27==a&&this.hide(1);return!1},onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(a){var c=this._.subMenu,e=this.items[a];if(e=e.getItems&&e.getItems()){c?c.removeAll():(c=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({},this._.definition,{level:this._.level+1},!0)),c.parent=this,c._.onClick=CKEDITOR.tools.bind(this._.onClick,this));for(var g in e){var b=this.editor.getMenuItem(g);b&&(b.state=e[g],c.add(b))}var d=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+ +String(a));setTimeout(function(){c.show(d,2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(a){a.order||(a.order=this.items.length);this.items.push(a)},removeAll:function(){this.items=[]},show:function(c,e,g,k){if(!this.parent&&(this._.onShow(),!this.items.length))return;e=e||("rtl"==this.editor.lang.dir?2:1);var b=this.items,d=this.editor,h=this._.panel,p=this._.element;if(!h){h=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level); +h.onEscape=CKEDITOR.tools.bind(function(a){if(!1===this._.onEscape(a))return!1},this);h.onShow=function(){h._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")};h.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this);p=h.addBlock(this.id,this._.panelDefinition.block);p.autoSize=!0;var v=p.keys;v[40]="next";v[9]="next";v[38]="prev";v[CKEDITOR.SHIFT+9]="prev";v["rtl"==d.lang.dir?37:39]=CKEDITOR.env.ie?"mouseup":"click";v[32]=CKEDITOR.env.ie?"mouseup": +"click";CKEDITOR.env.ie&&(v[13]="mouseup");p=this._.element=p.element;v=p.getDocument();v.getBody().setStyle("overflow","hidden");v.getElementsByTag("html").getItem(0).setStyle("overflow","hidden");this._.itemOverFn=CKEDITOR.tools.addFunction(function(a){clearTimeout(this._.showSubTimeout);this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,d.config.menu_subMenuDelay||400,this,[a])},this);this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)},this); +this._.itemClickFn=CKEDITOR.tools.addFunction(function(a){var b=this.items[a];if(b.state==CKEDITOR.TRISTATE_DISABLED)this.hide(1);else if(b.getItems)this._.showSubMenu(a);else this._.onClick(b)},this)}a(b);for(var v=d.elementPath(),v=['\x3cdiv class\x3d"cke_menu'+(v&&v.direction()!=d.lang.dir?" cke_mixed_dir_content":"")+'" role\x3d"presentation"\x3e'],u=b.length,t=u&&b[0].group,n=0;n<u;n++){var q=b[n];t!=q.group&&(v.push('\x3cdiv class\x3d"cke_menuseparator" role\x3d"separator"\x3e\x3c/div\x3e'), +t=q.group);q.render(this,n,v)}v.push("\x3c/div\x3e");p.setHtml(v.join(""));CKEDITOR.ui.fire("ready",this);this.parent?this.parent._.panel.showAsChild(h,this.id,c,e,g,k):h.showBlock(this.id,c,e,g,k);d.fire("menuShow",[h])},addListener:function(a){this._.listeners.push(a)},hide:function(a){this._.onHide&&this._.onHide();this._.panel&&this._.panel.hide(a)}}});CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(a,c,e){CKEDITOR.tools.extend(this,e,{order:0,className:"cke_menubutton__"+c});this.group= +a._.menuGroups[this.group];this.editor=a;this.name=c},proto:{render:function(a,e,l){var k=a.id+String(e),b="undefined"==typeof this.state?CKEDITOR.TRISTATE_OFF:this.state,d="",h=b==CKEDITOR.TRISTATE_ON?"on":b==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";this.role in{menuitemcheckbox:1,menuitemradio:1}&&(d=' aria-checked\x3d"'+(b==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var p=this.getItems,v="\x26#"+("rtl"==this.editor.lang.dir?"9668":"9658")+";",u=this.name;this.icon&&!/\./.test(this.icon)&&(u= +this.icon);a={id:k,name:this.name,iconName:u,label:this.label,cls:this.className||"",state:h,hasPopup:p?"true":"false",disabled:b==CKEDITOR.TRISTATE_DISABLED,title:this.label,href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:a._.itemOverFn,moveOutFn:a._.itemOutFn,clickFn:a._.itemClickFn,index:e,iconStyle:CKEDITOR.skin.getIconStyle(u,"rtl"==this.editor.lang.dir,u==this.icon?null:this.icon,this.iconOffset),arrowHtml:p?g.output({label:v}):"",role:this.role?this.role:"menuitem",ariaChecked:d}; +c.output(a,l)}}})}(),CKEDITOR.config.menu_groups="clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div",CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(a){this.base.call(this,a,{panel:{className:"cke_menu_panel",attributes:{"aria-label":a.lang.contextmenu.options}}})},proto:{addTarget:function(a, +e){a.on("contextmenu",function(a){a=a.data;var g=CKEDITOR.env.webkit?c:CKEDITOR.env.mac?a.$.metaKey:a.$.ctrlKey;if(!e||!g){a.preventDefault();if(CKEDITOR.env.mac&&CKEDITOR.env.webkit){var g=this.editor,l=(new CKEDITOR.dom.elementPath(a.getTarget(),g.editable())).contains(function(a){return a.hasAttribute("contenteditable")},!0);l&&"false"==l.getAttribute("contenteditable")&&g.getSelection().fake(l)}var l=a.getTarget().getDocument(),k=a.getTarget().getDocument().getDocumentElement(),g=!l.equals(CKEDITOR.document), +l=l.getWindow().getScrollPosition(),b=g?a.$.clientX:a.$.pageX||l.x+a.$.clientX,d=g?a.$.clientY:a.$.pageY||l.y+a.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(k,null,b,d)},CKEDITOR.env.ie?200:0,this)}},this);if(CKEDITOR.env.webkit){var c,g=function(){c=0};a.on("keydown",function(a){c=CKEDITOR.env.mac?a.data.$.metaKey:a.data.$.ctrlKey});a.on("keyup",g);a.on("contextmenu",g)}},open:function(a,e,c,g){this.editor.focus();a=a||CKEDITOR.document.getDocumentElement();this.editor.selectionChange(1); +this.show(a,e,c,g)}}})},beforeInit:function(a){var e=a.contextMenu=new CKEDITOR.plugins.contextMenu(a);a.on("contentDom",function(){e.addTarget(a.editable(),!1!==a.config.browserContextMenuOnCtrl)});a.addCommand("contextMenu",{exec:function(){a.contextMenu.open(a.document.getBody())}});a.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu");a.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}}),CKEDITOR.plugins.add("resize",{init:function(a){function e(c){var f=b.width,e=b.height,n=f+(c.data.$.screenX- +k.x)*("rtl"==m?-1:1);c=e+(c.data.$.screenY-k.y);d&&(f=Math.max(g.resize_minWidth,Math.min(n,g.resize_maxWidth)));h&&(e=Math.max(g.resize_minHeight,Math.min(c,g.resize_maxHeight)));a.resize(d?f:null,e)}function c(){CKEDITOR.document.removeListener("mousemove",e);CKEDITOR.document.removeListener("mouseup",c);a.document&&(a.document.removeListener("mousemove",e),a.document.removeListener("mouseup",c))}var g=a.config,f=a.ui.spaceId("resizer"),m=a.element?a.element.getDirection(1):"ltr";!g.resize_dir&& +(g.resize_dir="vertical");void 0===g.resize_maxWidth&&(g.resize_maxWidth=3E3);void 0===g.resize_maxHeight&&(g.resize_maxHeight=3E3);void 0===g.resize_minWidth&&(g.resize_minWidth=750);void 0===g.resize_minHeight&&(g.resize_minHeight=250);if(!1!==g.resize_enabled){var l=null,k,b,d=("both"==g.resize_dir||"horizontal"==g.resize_dir)&&g.resize_minWidth!=g.resize_maxWidth,h=("both"==g.resize_dir||"vertical"==g.resize_dir)&&g.resize_minHeight!=g.resize_maxHeight,p=CKEDITOR.tools.addFunction(function(d){l|| +(l=a.getResizable());b={width:l.$.offsetWidth||0,height:l.$.offsetHeight||0};k={x:d.screenX,y:d.screenY};g.resize_minWidth>b.width&&(g.resize_minWidth=b.width);g.resize_minHeight>b.height&&(g.resize_minHeight=b.height);CKEDITOR.document.on("mousemove",e);CKEDITOR.document.on("mouseup",c);a.document&&(a.document.on("mousemove",e),a.document.on("mouseup",c));d.preventDefault&&d.preventDefault()});a.on("destroy",function(){CKEDITOR.tools.removeFunction(p)});a.on("uiSpace",function(b){if("bottom"==b.data.space){var c= +"";d&&!h&&(c=" cke_resizer_horizontal");!d&&h&&(c=" cke_resizer_vertical");var e='\x3cspan id\x3d"'+f+'" class\x3d"cke_resizer'+c+" cke_resizer_"+m+'" title\x3d"'+CKEDITOR.tools.htmlEncode(a.lang.common.resize)+'" onmousedown\x3d"CKEDITOR.tools.callFunction('+p+', event)"\x3e'+("ltr"==m?"â—¢":"â—£")+"\x3c/span\x3e";"ltr"==m&&"ltr"==c?b.data.html+=e:b.data.html=e+b.data.html}},a,null,100);a.on("maximize",function(b){a.ui.space("resizer")[b.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}}),function(){var a= +'\x3ca id\x3d"{id}" class\x3d"cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href\x3d\"javascript:void('{titleJs}')\"")+' title\x3d"{title}" tabindex\x3d"-1" hidefocus\x3d"true" role\x3d"button" aria-labelledby\x3d"{id}_label" aria-haspopup\x3d"{hasArrow}" aria-disabled\x3d"{ariaDisabled}"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(a+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(a+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"'); +var a=a+(' onkeydown\x3d"return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus\x3d"return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick\x3d"return false;" onmouseup':"onclick")+'\x3d"CKEDITOR.tools.callFunction({clickFn},this);return false;"\x3e\x3cspan class\x3d"cke_button_icon cke_button__{iconName}_icon" style\x3d"{style}"'),a=a+'\x3e\x26nbsp;\x3c/span\x3e\x3cspan id\x3d"{id}_label" class\x3d"cke_button_label cke_button__{name}_label" aria-hidden\x3d"false"\x3e{label}\x3c/span\x3e{arrowHtml}\x3c/a\x3e', +e=CKEDITOR.addTemplate("buttonArrow",'\x3cspan class\x3d"cke_button_arrow"\x3e'+(CKEDITOR.env.hc?"\x26#9660;":"")+"\x3c/span\x3e"),c=CKEDITOR.addTemplate("button",a);CKEDITOR.plugins.add("button",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}});CKEDITOR.UI_BUTTON="button";CKEDITOR.ui.button=function(a){CKEDITOR.tools.extend(this,a,{title:a.label,click:a.click||function(c){c.execCommand(a.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a)}}; +CKEDITOR.ui.button.prototype={render:function(a,f){function m(){var b=a.mode;b&&(b=this.modes[b]?void 0!==n[b]?n[b]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,b=a.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:b,this.setState(b),this.refresh&&this.refresh())}var l=CKEDITOR.env,k=this._.id=CKEDITOR.tools.getNextId(),b="",d=this.command,h;this._.editor=a;var p={id:k,button:this,editor:a,focus:function(){CKEDITOR.document.getById(k).focus()},execute:function(){this.button.click(a)},attach:function(a){this.button.attach(a)}}, +v=CKEDITOR.tools.addFunction(function(a){if(p.onkey)return a=new CKEDITOR.dom.event(a),!1!==p.onkey(p,a.getKeystroke())}),u=CKEDITOR.tools.addFunction(function(a){var b;p.onfocus&&(b=!1!==p.onfocus(p,new CKEDITOR.dom.event(a)));return b}),t=0;p.clickFn=h=CKEDITOR.tools.addFunction(function(){t&&(a.unlockSelection(1),t=0);p.execute();l.iOS&&a.focus()});if(this.modes){var n={};a.on("beforeModeUnload",function(){a.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(n[a.mode]=this._.state)},this);a.on("activeFilterChange", +m,this);a.on("mode",m,this);!this.readOnly&&a.on("readOnly",m,this)}else d&&(d=a.getCommand(d))&&(d.on("state",function(){this.setState(d.state)},this),b+=d.state==CKEDITOR.TRISTATE_ON?"on":d.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off");if(this.directional)a.on("contentDirChanged",function(b){var d=CKEDITOR.document.getById(this._.id),c=d.getFirst();b=b.data;b!=a.lang.dir?d.addClass("cke_"+b):d.removeClass("cke_ltr").removeClass("cke_rtl");c.setAttribute("style",CKEDITOR.skin.getIconStyle(w, +"rtl"==b,this.icon,this.iconOffset))},this);d||(b+="off");var q=this.name||this.command,w=q;this.icon&&!/\./.test(this.icon)&&(w=this.icon,this.icon=null);b={id:k,name:q,iconName:w,label:this.label,cls:this.className||"",state:b,ariaDisabled:"disabled"==b?"true":"false",title:this.title,titleJs:l.gecko&&!l.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:v,focusFn:u,clickFn:h,style:CKEDITOR.skin.getIconStyle(w,"rtl"==a.lang.dir,this.icon,this.iconOffset),arrowHtml:this.hasArrow? +e.output():""};c.output(b,f);if(this.onRender)this.onRender();return p},setState:function(a){if(this._.state==a)return!1;this._.state=a;var c=CKEDITOR.document.getById(this._.id);return c?(c.setState(a,"cke_button"),a==CKEDITOR.TRISTATE_DISABLED?c.setAttribute("aria-disabled",!0):c.removeAttribute("aria-disabled"),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)):a==CKEDITOR.TRISTATE_ON? +c.setAttribute("aria-pressed",!0):c.removeAttribute("aria-pressed"),!0):!1},getState:function(){return this._.state},toFeature:function(a){if(this._.feature)return this._.feature;var c=this;this.allowedContent||this.requiredContent||!this.command||(c=a.getCommand(this.command)||c);return this._.feature=c}};CKEDITOR.ui.prototype.addButton=function(a,c){this.add(a,CKEDITOR.UI_BUTTON,c)}}(),function(){function a(a){function c(){for(var b=g(),d=CKEDITOR.tools.clone(a.config.toolbarGroups)||e(a),h=0;h< +d.length;h++){var m=d[h];if("/"!=m){"string"==typeof m&&(m=d[h]={name:m});var n,q=m.groups;if(q)for(var w=0;w<q.length;w++)n=q[w],(n=b[n])&&k(m,n);(n=b[m.name])&&k(m,n)}}return d}function g(){var b={},d,c,e;for(d in a.ui.items)c=a.ui.items[d],e=c.toolbar||"others",e=e.split(","),c=e[0],e=parseInt(e[1]||-1,10),b[c]||(b[c]=[]),b[c].push({name:d,order:e});for(c in b)b[c]=b[c].sort(function(a,b){return a.order==b.order?0:0>b.order?-1:0>a.order?1:a.order<b.order?-1:1});return b}function k(b,c){if(c.length){b.items? +b.items.push(a.ui.create("-")):b.items=[];for(var e;e=c.shift();)e="string"==typeof e?e:e.name,d&&-1!=CKEDITOR.tools.indexOf(d,e)||(e=a.ui.create(e))&&a.addFeature(e)&&b.items.push(e)}}function b(a){var b=[],d,c,f;for(d=0;d<a.length;++d)c=a[d],f={},"/"==c?b.push(c):CKEDITOR.tools.isArray(c)?(k(f,CKEDITOR.tools.clone(c)),b.push(f)):c.items&&(k(f,CKEDITOR.tools.clone(c.items)),f.name=c.name,b.push(f));return b}var d=a.config.removeButtons,d=d&&d.split(","),h=a.config.toolbar;"string"==typeof h&&(h= +a.config["toolbar_"+h]);return a.toolbar=h?b(h):c()}function e(a){return a._.toolbarGroups||(a._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"}, +{name:"about"}])}var c=function(){this.toolbars=[];this.focusCommandExecuted=!1};c.prototype.focus=function(){for(var a=0,c;c=this.toolbars[a++];)for(var e=0,g;g=c.items[e++];)if(g.focus){g.focus();return}};var g={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(a){a.toolbox&&(a.toolbox.focusCommandExecuted=!0,CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){a.toolbox.focus()},100):a.toolbox.focus())}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(f){var e,l=function(a, +b){var d,c="rtl"==f.lang.dir,g=f.config.toolbarGroupCycling,v=c?37:39,c=c?39:37,g=void 0===g||g;switch(b){case 9:case CKEDITOR.SHIFT+9:for(;!d||!d.items.length;)if(d=9==b?(d?d.next:a.toolbar.next)||f.toolbox.toolbars[0]:(d?d.previous:a.toolbar.previous)||f.toolbox.toolbars[f.toolbox.toolbars.length-1],d.items.length)for(a=d.items[e?d.items.length-1:0];a&&!a.focus;)(a=e?a.previous:a.next)||(d=0);a&&a.focus();return!1;case v:d=a;do d=d.next,!d&&g&&(d=a.toolbar.items[0]);while(d&&!d.focus);d?d.focus(): +l(a,9);return!1;case 40:return a.button&&a.button.hasArrow?(f.once("panelShow",function(a){a.data._.panel._.currentBlock.onKeyDown(40)}),a.execute()):l(a,40==b?v:c),!1;case c:case 38:d=a;do d=d.previous,!d&&g&&(d=a.toolbar.items[a.toolbar.items.length-1]);while(d&&!d.focus);d?d.focus():(e=1,l(a,CKEDITOR.SHIFT+9),e=0);return!1;case 27:return f.focus(),!1;case 13:case 32:return a.execute(),!1}return!0};f.on("uiSpace",function(e){if(e.data.space==f.config.toolbarLocation){e.removeListener();f.toolbox= +new c;var b=CKEDITOR.tools.getNextId(),d=['\x3cspan id\x3d"',b,'" class\x3d"cke_voice_label"\x3e',f.lang.toolbar.toolbars,"\x3c/span\x3e",'\x3cspan id\x3d"'+f.ui.spaceId("toolbox")+'" class\x3d"cke_toolbox" role\x3d"group" aria-labelledby\x3d"',b,'" onmousedown\x3d"return false;"\x3e'],b=!1!==f.config.toolbarStartupExpanded,h,g;f.config.toolbarCanCollapse&&f.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&d.push('\x3cspan class\x3d"cke_toolbox_main"'+(b?"\x3e":' style\x3d"display:none"\x3e'));for(var m= +f.toolbox.toolbars,u=a(f),t=0;t<u.length;t++){var n,q=0,w,y=u[t],C;if(y)if(h&&(d.push("\x3c/span\x3e"),g=h=0),"/"===y)d.push('\x3cspan class\x3d"cke_toolbar_break"\x3e\x3c/span\x3e');else{C=y.items||y;for(var r=0;r<C.length;r++){var x=C[r],B;if(x){var A=function(a){a=a.render(f,d);z=q.items.push(a)-1;0<z&&(a.previous=q.items[z-1],a.previous.next=a);a.toolbar=q;a.onkey=l;a.onfocus=function(){f.toolbox.focusCommandExecuted||f.focus()}};if(x.type==CKEDITOR.UI_SEPARATOR)g=h&&x;else{B=!1!==x.canGroup; +if(!q){n=CKEDITOR.tools.getNextId();q={id:n,items:[]};w=y.name&&(f.lang.toolbar.toolbarGroups[y.name]||y.name);d.push('\x3cspan id\x3d"',n,'" class\x3d"cke_toolbar"',w?' aria-labelledby\x3d"'+n+'_label"':"",' role\x3d"toolbar"\x3e');w&&d.push('\x3cspan id\x3d"',n,'_label" class\x3d"cke_voice_label"\x3e',w,"\x3c/span\x3e");d.push('\x3cspan class\x3d"cke_toolbar_start"\x3e\x3c/span\x3e');var z=m.push(q)-1;0<z&&(q.previous=m[z-1],q.previous.next=q)}B?h||(d.push('\x3cspan class\x3d"cke_toolgroup" role\x3d"presentation"\x3e'), +h=1):h&&(d.push("\x3c/span\x3e"),h=0);g&&(A(g),g=0);A(x)}}}h&&(d.push("\x3c/span\x3e"),g=h=0);q&&d.push('\x3cspan class\x3d"cke_toolbar_end"\x3e\x3c/span\x3e\x3c/span\x3e')}}f.config.toolbarCanCollapse&&d.push("\x3c/span\x3e");if(f.config.toolbarCanCollapse&&f.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var D=CKEDITOR.tools.addFunction(function(){f.execCommand("toolbarCollapse")});f.on("destroy",function(){CKEDITOR.tools.removeFunction(D)});f.addCommand("toolbarCollapse",{readOnly:1,exec:function(a){var b= +a.ui.space("toolbar_collapser"),d=b.getPrevious(),c=a.ui.space("contents"),f=d.getParent(),e=parseInt(c.$.style.height,10),h=f.$.offsetHeight,g=b.hasClass("cke_toolbox_collapser_min");g?(d.show(),b.removeClass("cke_toolbox_collapser_min"),b.setAttribute("title",a.lang.toolbar.toolbarCollapse)):(d.hide(),b.addClass("cke_toolbox_collapser_min"),b.setAttribute("title",a.lang.toolbar.toolbarExpand));b.getFirst().setText(g?"â–²":"â—€");c.setStyle("height",e-(f.$.offsetHeight-h)+"px");a.fire("resize",{outerHeight:a.container.$.offsetHeight, +contentsHeight:c.$.offsetHeight,outerWidth:a.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}});f.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse");d.push('\x3ca title\x3d"'+(b?f.lang.toolbar.toolbarCollapse:f.lang.toolbar.toolbarExpand)+'" id\x3d"'+f.ui.spaceId("toolbar_collapser")+'" tabIndex\x3d"-1" class\x3d"cke_toolbox_collapser');b||d.push(" cke_toolbox_collapser_min");d.push('" onclick\x3d"CKEDITOR.tools.callFunction('+D+')"\x3e','\x3cspan class\x3d"cke_arrow"\x3e\x26#9650;\x3c/span\x3e', +"\x3c/a\x3e")}d.push("\x3c/span\x3e");e.data.html+=d.join("")}});f.on("destroy",function(){if(this.toolbox){var a,b=0,d,c,f;for(a=this.toolbox.toolbars;b<a.length;b++)for(c=a[b].items,d=0;d<c.length;d++)f=c[d],f.clickFn&&CKEDITOR.tools.removeFunction(f.clickFn),f.keyDownFn&&CKEDITOR.tools.removeFunction(f.keyDownFn)}});f.on("uiReady",function(){var a=f.ui.space("toolbox");a&&f.focusManager.add(a,1)});f.addCommand("toolbarFocus",g);f.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");f.ui.add("-",CKEDITOR.UI_SEPARATOR, +{});f.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(a,b){b.push('\x3cspan class\x3d"cke_toolbar_separator" role\x3d"separator"\x3e\x3c/span\x3e');return{}}}}})}});CKEDITOR.ui.prototype.addToolbarGroup=function(a,c,g){var k=e(this.editor),b=0===c,d={name:a};if(g){if(g=CKEDITOR.tools.search(k,function(a){return a.name==g})){!g.groups&&(g.groups=[]);if(c&&(c=CKEDITOR.tools.indexOf(g.groups,c),0<=c)){g.groups.splice(c+1,0,a);return}b?g.groups.splice(0,0,a):g.groups.push(a); +return}c=null}c&&(c=CKEDITOR.tools.indexOf(k,function(a){return a.name==c}));b?k.splice(0,0,a):"number"==typeof c?k.splice(c+1,0,d):k.push(a)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top",function(){function a(a,c){function l(b){b=h.list[b];if(b.equals(a.editable())||"true"==b.getAttribute("contenteditable")){var d=a.createRange();d.selectNodeContents(b);d.select()}else a.getSelection().selectElement(b);a.focus()}function k(){d&&d.setHtml('\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e'); +delete h.list}var b=a.ui.spaceId("path"),d,h=a._.elementsPath,p=h.idBase;c.html+='\x3cspan id\x3d"'+b+'_label" class\x3d"cke_voice_label"\x3e'+a.lang.elementspath.eleLabel+'\x3c/span\x3e\x3cspan id\x3d"'+b+'" class\x3d"cke_path" role\x3d"group" aria-labelledby\x3d"'+b+'_label"\x3e\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e\x3c/span\x3e';a.on("uiReady",function(){var b=a.ui.space("path");b&&a.focusManager.add(b,1)});h.onClick=l;var v=CKEDITOR.tools.addFunction(l),u=CKEDITOR.tools.addFunction(function(b, +d){var c=h.idBase,e;d=new CKEDITOR.dom.event(d);e="rtl"==a.lang.dir;switch(d.getKeystroke()){case e?39:37:case 9:return(e=CKEDITOR.document.getById(c+(b+1)))||(e=CKEDITOR.document.getById(c+"0")),e.focus(),!1;case e?37:39:case CKEDITOR.SHIFT+9:return(e=CKEDITOR.document.getById(c+(b-1)))||(e=CKEDITOR.document.getById(c+(h.list.length-1))),e.focus(),!1;case 27:return a.focus(),!1;case 13:case 32:return l(b),!1}return!0});a.on("selectionChange",function(){for(var c=[],e=h.list=[],k=[],l=h.filters,m= +!0,C=a.elementPath().elements,r,x=C.length;x--;){var B=C[x],A=0;r=B.data("cke-display-name")?B.data("cke-display-name"):B.data("cke-real-element-type")?B.data("cke-real-element-type"):B.getName();(m=B.hasAttribute("contenteditable")?"true"==B.getAttribute("contenteditable"):m)||B.hasAttribute("contenteditable")||(A=1);for(var z=0;z<l.length;z++){var D=l[z](B,r);if(!1===D){A=1;break}r=D||r}A||(e.unshift(B),k.unshift(r))}e=e.length;for(l=0;l<e;l++)r=k[l],m=a.lang.elementspath.eleTitle.replace(/%1/, +r),r=g.output({id:p+l,label:m,text:r,jsTitle:"javascript:void('"+r+"')",index:l,keyDownFn:u,clickFn:v}),c.unshift(r);d||(d=CKEDITOR.document.getById(b));k=d;k.setHtml(c.join("")+'\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e');a.fire("elementsPathUpdate",{space:k})});a.on("readOnly",k);a.on("contentDomUnload",k);a.addCommand("elementsPathFocus",e.toolbarFocus);a.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}var e={toolbarFocus:{editorFocus:!1,readOnly:1,exec:function(a){(a=CKEDITOR.document.getById(a._.elementsPath.idBase+ +"0"))&&a.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}}},c="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(c+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(c+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var g=CKEDITOR.addTemplate("pathItem",'\x3ca id\x3d"{id}" href\x3d"{jsTitle}" tabindex\x3d"-1" class\x3d"cke_path_item" title\x3d"{label}"'+c+' hidefocus\x3d"true" onkeydown\x3d"return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );" onclick\x3d"CKEDITOR.tools.callFunction({clickFn},{index}); return false;" role\x3d"button" aria-label\x3d"{label}"\x3e{text}\x3c/a\x3e'); +CKEDITOR.plugins.add("elementspath",{init:function(c){c._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_",filters:[]};c.on("uiSpace",function(e){"bottom"==e.data.space&&a(c,e.data)})}})}(),function(){function a(a,b,c){c=a.config.forceEnterMode||c;"wysiwyg"==a.mode&&(b||(b=a.activeEnterMode),a.elementPath().isContextFor("p")||(b=CKEDITOR.ENTER_BR,c=1),a.fire("saveSnapshot"),b==CKEDITOR.ENTER_BR?l(a,b,null,c):k(a,b,null,c),a.fire("saveSnapshot"))}function e(a){a=a.getSelection().getRanges(!0); +for(var b=a.length-1;0<b;b--)a[b].deleteContents();return a[0]}function c(a){var b=a.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&"true"==a.getAttribute("contenteditable")},!0);if(a.root.equals(b))return a;b=new CKEDITOR.dom.range(b);b.moveToRange(a);return b}CKEDITOR.plugins.add("enterkey",{init:function(b){b.addCommand("enter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(b){a(b)}});b.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(b){a(b, +b.activeShiftEnterMode,1)}});b.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var g=CKEDITOR.dom.walker.whitespaces(),f=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(a,h,k,m){if(k=k||e(a)){k=c(k);var u=k.document,t=k.checkStartOfBlock(),n=k.checkEndOfBlock(),q=a.elementPath(k.startContainer),w=q.block,y=h==CKEDITOR.ENTER_DIV?"div":"p",C;if(t&&n){if(w&&(w.is("li")||w.getParent().is("li"))){w.is("li")||(w=w.getParent());k=w.getParent();C=k.getParent(); +m=!w.hasPrevious();var r=!w.hasNext(),y=a.getSelection(),x=y.createBookmarks(),t=w.getDirection(1),n=w.getAttribute("class"),B=w.getAttribute("style"),A=C.getDirection(1)!=t;a=a.enterMode!=CKEDITOR.ENTER_BR||A||B||n;if(C.is("li"))m||r?(m&&r&&k.remove(),w[r?"insertAfter":"insertBefore"](C)):w.breakParent(C);else{if(a)if(q.block.is("li")?(C=u.createElement(h==CKEDITOR.ENTER_P?"p":"div"),A&&C.setAttribute("dir",t),B&&C.setAttribute("style",B),n&&C.setAttribute("class",n),w.moveChildren(C)):C=q.block, +m||r)C[m?"insertBefore":"insertAfter"](k);else w.breakParent(k),C.insertAfter(k);else if(w.appendBogus(!0),m||r)for(;u=w[m?"getFirst":"getLast"]();)u[m?"insertBefore":"insertAfter"](k);else for(w.breakParent(k);u=w.getLast();)u.insertAfter(k);w.remove()}y.selectBookmarks(x);return}if(w&&w.getParent().is("blockquote")){w.breakParent(w.getParent());w.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||w.getPrevious().remove();w.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||w.getNext().remove(); +k.moveToElementEditStart(w);k.select();return}}else if(w&&w.is("pre")&&!n){l(a,h,k,m);return}if(t=k.splitBlock(y)){h=t.previousBlock;w=t.nextBlock;q=t.wasStartOfBlock;a=t.wasEndOfBlock;w?(x=w.getParent(),x.is("li")&&(w.breakParent(x),w.move(w.getNext(),1))):h&&(x=h.getParent())&&x.is("li")&&(h.breakParent(x),x=h.getNext(),k.moveToElementEditStart(x),h.move(h.getPrevious()));if(q||a){if(h){if(h.is("li")||!b.test(h.getName())&&!h.is("pre"))C=h.clone()}else w&&(C=w.clone());C?m&&!C.is("li")&&C.renameNode(y): +x&&x.is("li")?C=x:(C=u.createElement(y),h&&(r=h.getDirection())&&C.setAttribute("dir",r));if(u=t.elementPath)for(m=0,y=u.elements.length;m<y;m++){x=u.elements[m];if(x.equals(u.block)||x.equals(u.blockLimit))break;CKEDITOR.dtd.$removeEmpty[x.getName()]&&(x=x.clone(),C.moveChildren(x),C.append(x))}C.appendBogus();C.getParent()||k.insertNode(C);C.is("li")&&C.removeAttribute("value");!CKEDITOR.env.ie||!q||a&&h.getChildCount()||(k.moveToElementEditStart(a?h:C),k.select());k.moveToElementEditStart(q&&!a? +w:C)}else w.is("li")&&(C=k.clone(),C.selectNodeContents(w),C=new CKEDITOR.dom.walker(C),C.evaluator=function(a){return!(f(a)||g(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in CKEDITOR.dtd.$inline&&!(a.getName()in CKEDITOR.dtd.$empty))},(x=C.next())&&x.type==CKEDITOR.NODE_ELEMENT&&x.is("ul","ol")&&(CKEDITOR.env.needsBrFiller?u.createElement("br"):u.createText(" ")).insertBefore(x)),w&&k.moveToElementEditStart(w);k.select();k.scrollIntoView()}}},enterBr:function(a,c,f,g){if(f=f||e(a)){var l=f.document, +m=f.checkEndOfBlock(),n=new CKEDITOR.dom.elementPath(a.getSelection().getStartElement()),q=n.block,w=q&&n.block.getName();g||"li"!=w?(!g&&m&&b.test(w)?(m=q.getDirection())?(l=l.createElement("div"),l.setAttribute("dir",m),l.insertAfter(q),f.setStart(l,0)):(l.createElement("br").insertAfter(q),CKEDITOR.env.gecko&&l.createText("").insertAfter(q),f.setStartAt(q.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(a="pre"==w&&CKEDITOR.env.ie&&8>CKEDITOR.env.version? +l.createText("\r"):l.createElement("br"),f.deleteContents(),f.insertNode(a),CKEDITOR.env.needsBrFiller?(l.createText("").insertAfter(a),m&&(q||n.blockLimit).appendBogus(),a.getNext().$.nodeValue="",f.setStartAt(a.getNext(),CKEDITOR.POSITION_AFTER_START)):f.setStartAt(a,CKEDITOR.POSITION_AFTER_END)),f.collapse(!0),f.select(),f.scrollIntoView()):k(a,c,f,g)}}};var m=CKEDITOR.plugins.enterkey,l=m.enterBr,k=m.enterBlock,b=/^h[1-6]$/}(),function(){function a(a,c){var g={},f=[],m={nbsp:" ",shy:"Â",gt:"\x3e", +lt:"\x3c",amp:"\x26",apos:"'",quot:'"'};a=a.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(a,b){var e=c?"\x26"+b+";":m[b];g[e]=c?m[b]:"\x26"+b+";";f.push(e);return""});if(!c&&a){a=a.split(",");var l=document.createElement("div"),k;l.innerHTML="\x26"+a.join(";\x26")+";";k=l.innerHTML;l=null;for(l=0;l<k.length;l++){var b=k.charAt(l);g[b]="\x26"+a[l]+";";f.push(b)}}g.regex=f.join(c?"|":"");return g}CKEDITOR.plugins.add("entities",{afterInit:function(e){function c(a){return b[a]}function g(a){return"force"!= +f.entities_processNumerical&&l[a]?l[a]:"\x26#"+a.charCodeAt(0)+";"}var f=e.config;if(e=(e=e.dataProcessor)&&e.htmlFilter){var m=[];!1!==f.basicEntities&&m.push("nbsp,gt,lt,amp");f.entities&&(m.length&&m.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro"), +f.entities_latin&&m.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml"),f.entities_greek&&m.push("Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv"), +f.entities_additional&&m.push(f.entities_additional));var l=a(m.join(",")),k=l.regex?"["+l.regex+"]":"a^";delete l.regex;f.entities&&f.entities_processNumerical&&(k="[^ -~]|"+k);var k=new RegExp(k,"g"),b=a("nbsp,gt,lt,amp,shy",!0),d=new RegExp(b.regex,"g");e.addRules({text:function(a){return a.replace(d,c).replace(k,g)}},{applyToAll:!0,excludeNestedEditable:!0})}}})}(),CKEDITOR.config.basicEntities=!0,CKEDITOR.config.entities=!0,CKEDITOR.config.entities_latin=!0,CKEDITOR.config.entities_greek=!0, +CKEDITOR.config.entities_additional="#39",CKEDITOR.plugins.add("popup"),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(a,e,c,g){e=e||"80%";c=c||"70%";"string"==typeof e&&1<e.length&&"%"==e.substr(e.length-1,1)&&(e=parseInt(window.screen.width*parseInt(e,10)/100,10));"string"==typeof c&&1<c.length&&"%"==c.substr(c.length-1,1)&&(c=parseInt(window.screen.height*parseInt(c,10)/100,10));640>e&&(e=640);420>c&&(c=420);var f=parseInt((window.screen.height-c)/2,10),m=parseInt((window.screen.width- +e)/2,10);g=(g||"location\x3dno,menubar\x3dno,toolbar\x3dno,dependent\x3dyes,minimizable\x3dno,modal\x3dyes,alwaysRaised\x3dyes,resizable\x3dyes,scrollbars\x3dyes")+",width\x3d"+e+",height\x3d"+c+",top\x3d"+f+",left\x3d"+m;var l=window.open("",null,g,!0);if(!l)return!1;try{-1==navigator.userAgent.toLowerCase().indexOf(" chrome/")&&(l.moveTo(m,f),l.resizeTo(e,c)),l.focus(),l.location.href=a}catch(k){window.open(a,null,g,!0)}return!0}}),function(){function a(a,c){var f=[];if(c)for(var e in c)f.push(e+ +"\x3d"+encodeURIComponent(c[e]));else return a;return a+(-1!=a.indexOf("?")?"\x26":"?")+f.join("\x26")}function e(a){a+="";return a.charAt(0).toUpperCase()+a.substr(1)}function c(){var b=this.getDialog(),c=b.getParentEditor();c._.filebrowserSe=this;var f=c.config["filebrowser"+e(b.getName())+"WindowWidth"]||c.config.filebrowserWindowWidth||"80%",b=c.config["filebrowser"+e(b.getName())+"WindowHeight"]||c.config.filebrowserWindowHeight||"70%",g=this.filebrowser.params||{};g.CKEditor=c.name;g.CKEditorFuncNum= +c._.filebrowserFn;g.langCode||(g.langCode=c.langCode);g=a(this.filebrowser.url,g);c.popup(g,f,b,c.config.filebrowserWindowFeatures||c.config.fileBrowserWindowFeatures)}function g(){var a=this.getDialog();a.getParentEditor()._.filebrowserSe=this;return a.getContentElement(this["for"][0],this["for"][1]).getInputElement().$.value&&a.getContentElement(this["for"][0],this["for"][1]).getAction()?!0:!1}function f(b,c,f){var e=f.params||{};e.CKEditor=b.name;e.CKEditorFuncNum=b._.filebrowserFn;e.langCode|| +(e.langCode=b.langCode);c.action=a(f.url,e);c.filebrowser=f}function m(a,d,h,k){if(k&&k.length)for(var l,u=k.length;u--;)if(l=k[u],"hbox"!=l.type&&"vbox"!=l.type&&"fieldset"!=l.type||m(a,d,h,l.children),l.filebrowser)if("string"==typeof l.filebrowser&&(l.filebrowser={action:"fileButton"==l.type?"QuickUpload":"Browse",target:l.filebrowser}),"Browse"==l.filebrowser.action){var t=l.filebrowser.url;void 0===t&&(t=a.config["filebrowser"+e(d)+"BrowseUrl"],void 0===t&&(t=a.config.filebrowserBrowseUrl)); +t&&(l.onClick=c,l.filebrowser.url=t,l.hidden=!1)}else if("QuickUpload"==l.filebrowser.action&&l["for"]&&(t=l.filebrowser.url,void 0===t&&(t=a.config["filebrowser"+e(d)+"UploadUrl"],void 0===t&&(t=a.config.filebrowserUploadUrl)),t)){var n=l.onClick;l.onClick=function(a){var b=a.sender;return n&&!1===n.call(b,a)?!1:g.call(b,a)};l.filebrowser.url=t;l.hidden=!1;f(a,h.getContents(l["for"][0]).get(l["for"][1]),l.filebrowser)}}function l(a,c,f){if(-1!==f.indexOf(";")){f=f.split(";");for(var e=0;e<f.length;e++)if(l(a, +c,f[e]))return!0;return!1}return(a=a.getContents(c).get(f).filebrowser)&&a.url}function k(a,c){var f=this._.filebrowserSe.getDialog(),e=this._.filebrowserSe["for"],g=this._.filebrowserSe.filebrowser.onSelect;e&&f.getContentElement(e[0],e[1]).reset();if("function"!=typeof c||!1!==c.call(this._.filebrowserSe))if(!g||!1!==g.call(this._.filebrowserSe,a,c))if("string"==typeof c&&c&&alert(c),a&&(e=this._.filebrowserSe,f=e.getDialog(),e=e.filebrowser.target||null))if(e=e.split(":"),g=f.getContentElement(e[0], +e[1]))g.setValue(a),f.selectPage(e[0])}CKEDITOR.plugins.add("filebrowser",{requires:"popup",init:function(a){a._.filebrowserFn=CKEDITOR.tools.addFunction(k,a);a.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}});CKEDITOR.on("dialogDefinition",function(a){if(a.editor.plugins.filebrowser)for(var c=a.data.definition,f,e=0;e<c.contents.length;++e)if(f=c.contents[e])m(a.editor,a.data.name,c,f.elements),f.hidden&&f.filebrowser&&(f.hidden=!l(c,f.id,f.filebrowser))})}(),function(){function a(a){var f= +a.config,m=a.fire("uiSpace",{space:"top",html:""}).html,l=function(){function d(a,f,e){b.setStyle(f,c(e));b.setStyle("position",a)}function h(a){var b=m.getDocumentPosition();switch(a){case "top":d("absolute","top",b.y-y-x);break;case "pin":d("fixed","top",A);break;case "bottom":d("absolute","top",b.y+(q.height||q.bottom-q.top)+x)}k=a}var k,m,n,q,w,y,C,r=f.floatSpaceDockedOffsetX||0,x=f.floatSpaceDockedOffsetY||0,B=f.floatSpacePinnedOffsetX||0,A=f.floatSpacePinnedOffsetY||0;return function(d){if(m= +a.editable()){var p=d&&"focus"==d.name;p&&b.show();a.fire("floatingSpaceLayout",{show:p});b.removeStyle("left");b.removeStyle("right");n=b.getClientRect();q=m.getClientRect();w=e.getViewPaneSize();y=n.height;C="pageXOffset"in e.$?e.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft;k?(y+x<=q.top?h("top"):y+x>w.height-q.bottom?h("pin"):h("bottom"),d=w.width/2,d=f.floatSpacePreferRight?"right":0<q.left&&q.right<w.width&&q.width>n.width?"rtl"==f.contentsLangDirection?"right":"left":d-q.left> +q.right-d?"left":"right",n.width>w.width?(d="left",p=0):(p="left"==d?0<q.left?q.left:0:q.right<w.width?w.width-q.right:0,p+n.width>w.width&&(d="left"==d?"right":"left",p=0)),b.setStyle(d,c(("pin"==k?B:r)+p+("pin"==k?0:"left"==d?C:-C)))):(k="pin",h("pin"),l(d))}}}();if(m){var k=new CKEDITOR.template('\x3cdiv id\x3d"cke_{name}" class\x3d"cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir\x3d"{langDir}" title\x3d"'+(CKEDITOR.env.gecko?" ":"")+'" lang\x3d"{langCode}" role\x3d"application" style\x3d"{style}"'+ +(a.title?' aria-labelledby\x3d"cke_{name}_arialbl"':" ")+"\x3e"+(a.title?'\x3cspan id\x3d"cke_{name}_arialbl" class\x3d"cke_voice_label"\x3e{voiceLabel}\x3c/span\x3e':" ")+'\x3cdiv class\x3d"cke_inner"\x3e\x3cdiv id\x3d"{topId}" class\x3d"cke_top" role\x3d"presentation"\x3e{content}\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'),b=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(k.output({content:m,id:a.id,langDir:a.lang.dir,langCode:a.langCode,name:a.name,style:"display:none;z-index:"+ +(f.baseFloatZIndex-1),topId:a.ui.spaceId("top"),voiceLabel:a.title}))),d=CKEDITOR.tools.eventsBuffer(500,l),h=CKEDITOR.tools.eventsBuffer(100,l);b.unselectable();b.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});a.on("focus",function(b){l(b);a.on("change",d.input);e.on("scroll",h.input);e.on("resize",h.input)});a.on("blur",function(){b.hide();a.removeListener("change",d.input);e.removeListener("scroll",h.input);e.removeListener("resize",h.input)});a.on("destroy", +function(){e.removeListener("scroll",h.input);e.removeListener("resize",h.input);b.clearCustomData();b.remove()});a.focusManager.hasFocus&&b.show();a.focusManager.add(b,1)}}var e=CKEDITOR.document.getWindow(),c=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(c){c.on("loaded",function(){a(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var a=CKEDITOR.addTemplate("panel-list",'\x3cul role\x3d"presentation" class\x3d"cke_panel_list"\x3e{items}\x3c/ul\x3e'), +e=CKEDITOR.addTemplate("panel-list-item",'\x3cli id\x3d"{id}" class\x3d"cke_panel_listItem" role\x3dpresentation\x3e\x3ca id\x3d"{id}_option" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"{title}" href\x3d"javascript:void(\'{val}\')" {onclick}\x3d"CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role\x3d"option"\x3e{text}\x3c/a\x3e\x3c/li\x3e'),c=CKEDITOR.addTemplate("panel-list-group",'\x3ch1 id\x3d"{id}" class\x3d"cke_panel_grouptitle" role\x3d"presentation" \x3e{label}\x3c/h1\x3e'), +g=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(a,c){return this.addBlock(a,new CKEDITOR.ui.listBlock(this.getHolderElement(),c))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(a,c){c=c||{};var e=c.attributes||(c.attributes={});(this.multiSelect=!!c.multiSelect)&&(e["aria-multiselectable"]=!0);!e.role&&(e.role="listbox");this.base.apply(this,arguments);this.element.setAttribute("role",e.role);e=this.keys;e[40]="next";e[9]="next";e[38]="prev";e[CKEDITOR.SHIFT+ +9]="prev";e[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(e[13]="mouseup");this._.pendingHtml=[];this._.pendingList=[];this._.items={};this._.groups={}},_:{close:function(){if(this._.started){var c=a.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(c);delete this._.started}},getClick:function(){this._.click||(this._.click=CKEDITOR.tools.addFunction(function(a){var c=this.toggle(a);if(this.onClick)this.onClick(a,c)},this));return this._.click}},proto:{add:function(a, +c,l){var k=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0);this._.items[a]=k;var b;b=CKEDITOR.tools.htmlEncodeAttr(a).replace(g,"\\'");a={id:k,val:b,onclick:CKEDITOR.env.ie?'onclick\x3d"return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(l||a),text:c||a};this._.pendingList.push(e.output(a))},startGroup:function(a){this._.close();var e=CKEDITOR.tools.getNextId();this._.groups[a]=e;this._.pendingHtml.push(c.output({id:e, +label:a}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(a){var c=this.isMarked(a);c?this.unmark(a):this.mark(a);return!c},hideGroup:function(a){var c=(a=this.element.getDocument().getById(this._.groups[a]))&&a.getNext();a&&(a.setStyle("display","none"),c&&"ul"==c.getName()&&c.setStyle("display","none"))},hideItem:function(a){this.element.getDocument().getById(this._.items[a]).setStyle("display","none")}, +showAll:function(){var a=this._.items,c=this._.groups,e=this.element.getDocument(),g;for(g in a)e.getById(a[g]).setStyle("display","");for(var b in c)a=e.getById(c[b]),g=a.getNext(),a.setStyle("display",""),g&&"ul"==g.getName()&&g.setStyle("display","")},mark:function(a){this.multiSelect||this.unmarkAll();a=this._.items[a];var c=this.element.getDocument().getById(a);c.addClass("cke_selected");this.element.getDocument().getById(a+"_option").setAttribute("aria-selected",!0);this.onMark&&this.onMark(c)}, +unmark:function(a){var c=this.element.getDocument();a=this._.items[a];var e=c.getById(a);e.removeClass("cke_selected");c.getById(a+"_option").removeAttribute("aria-selected");this.onUnmark&&this.onUnmark(e)},unmarkAll:function(){var a=this._.items,c=this.element.getDocument(),e;for(e in a){var g=a[e];c.getById(g).removeClass("cke_selected");c.getById(g+"_option").removeAttribute("aria-selected")}this.onUnmark&&this.onUnmark()},isMarked:function(a){return this.element.getDocument().getById(this._.items[a]).hasClass("cke_selected")}, +focus:function(a){this._.focusIndex=-1;var c=this.element.getElementsByTag("a"),e,g=-1;if(a)for(e=this.element.getDocument().getById(this._.items[a]).getFirst();a=c.getItem(++g);){if(a.equals(e)){this._.focusIndex=g;break}}else this.element.focus();e&&setTimeout(function(){e.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}}),function(){var a='\x3cspan id\x3d"{id}" class\x3d"cke_combo cke_combo__{name} {cls}" role\x3d"presentation"\x3e\x3cspan id\x3d"{id}_label" class\x3d"cke_combo_label"\x3e{label}\x3c/span\x3e\x3ca class\x3d"cke_combo_button" title\x3d"{title}" tabindex\x3d"-1"'+ +(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href\x3d\"javascript:void('{titleJs}')\"")+' hidefocus\x3d"true" role\x3d"button" aria-labelledby\x3d"{id}_label" aria-haspopup\x3d"true"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(a+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(a+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var a=a+(' onkeydown\x3d"return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus\x3d"return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie? +'onclick\x3d"return false;" onmouseup':"onclick")+'\x3d"CKEDITOR.tools.callFunction({clickFn},this);return false;"\x3e\x3cspan id\x3d"{id}_text" class\x3d"cke_combo_text cke_combo_inlinelabel"\x3e{label}\x3c/span\x3e\x3cspan class\x3d"cke_combo_open"\x3e\x3cspan class\x3d"cke_combo_arrow"\x3e'+(CKEDITOR.env.hc?"\x26#9660;":CKEDITOR.env.air?"\x26nbsp;":"")+"\x3c/span\x3e\x3c/span\x3e\x3c/a\x3e\x3c/span\x3e"),e=CKEDITOR.addTemplate("combo",a);CKEDITOR.UI_RICHCOMBO="richcombo";CKEDITOR.ui.richCombo= +CKEDITOR.tools.createClass({$:function(a){CKEDITOR.tools.extend(this,a,{canGroup:!1,title:a.label,modes:{wysiwyg:1},editorFocus:1});a=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=a.parent&&a.parent.getDocument()||CKEDITOR.document;a.className="cke_combopanel";a.block={multiSelect:a.multiSelect,attributes:a.attributes};a.toolbarRelated=!0;this._={panelDefinition:a,items:{}}},proto:{renderHtml:function(a){var e=[];this.render(a,e);return e.join("")},render:function(a, +g){function f(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var b=this.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;a.readOnly&&!this.readOnly&&(b=CKEDITOR.TRISTATE_DISABLED);this.setState(b);this.setValue("");b!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var m=CKEDITOR.env,l="cke_"+this.id,k=CKEDITOR.tools.addFunction(function(b){v&&(a.unlockSelection(1),v=0);d.execute(b)},this),b=this,d={id:l,combo:this,focus:function(){CKEDITOR.document.getById(l).getChild(1).focus()}, +execute:function(d){var f=b._;if(f.state!=CKEDITOR.TRISTATE_DISABLED)if(b.createPanel(a),f.on)f.panel.hide();else{b.commit();var e=b.getValue();e?f.list.mark(e):f.list.unmarkAll();f.panel.showBlock(b.id,new CKEDITOR.dom.element(d),4)}},clickFn:k};a.on("activeFilterChange",f,this);a.on("mode",f,this);a.on("selectionChange",f,this);!this.readOnly&&a.on("readOnly",f,this);var h=CKEDITOR.tools.addFunction(function(b,f){b=new CKEDITOR.dom.event(b);var e=b.getKeystroke();if(40==e)a.once("panelShow",function(a){a.data._.panel._.currentBlock.onKeyDown(40)}); +switch(e){case 13:case 32:case 40:CKEDITOR.tools.callFunction(k,f);break;default:d.onkey(d,e)}b.preventDefault()}),p=CKEDITOR.tools.addFunction(function(){d.onfocus&&d.onfocus()}),v=0;d.keyDownFn=h;m={id:l,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:m.gecko&&!m.hc?"":(this.title||"").replace("'",""),keydownFn:h,focusFn:p,clickFn:k};e.output(m,g);if(this.onRender)this.onRender();return d},createPanel:function(a){if(!this._.panel){var e=this._.panelDefinition, +f=this._.panelDefinition.block,m=e.parent||CKEDITOR.document.getBody(),l="cke_combopanel__"+this.name,k=new CKEDITOR.ui.floatPanel(a,m,e),b=k.addListBlock(this.id,f),d=this;k.onShow=function(){this.element.addClass(l);d.setState(CKEDITOR.TRISTATE_ON);d._.on=1;d.editorFocus&&!a.focusManager.hasFocus&&a.focus();if(d.onOpen)d.onOpen();a.once("panelShow",function(){b.focus(!b.multiSelect&&d.getValue())})};k.onHide=function(b){this.element.removeClass(l);d.setState(d.modes&&d.modes[a.mode]?CKEDITOR.TRISTATE_OFF: +CKEDITOR.TRISTATE_DISABLED);d._.on=0;if(!b&&d.onClose)d.onClose()};k.onEscape=function(){k.hide(1)};b.onClick=function(a,b){d.onClick&&d.onClick.call(d,a,b);k.hide()};this._.panel=k;this._.list=b;k.getBlock(this.id).onHide=function(){d._.on=0;d.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,e){this._.value=a;var f=this.document.getById("cke_"+this.id+"_text");f&&(a||e?f.removeClass("cke_combo_inlinelabel"):(e=this.label,f.addClass("cke_combo_inlinelabel")),f.setText("undefined"!= +typeof e?e:a))},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(a){this._.list.mark(a)},hideItem:function(a){this._.list.hideItem(a)},hideGroup:function(a){this._.list.hideGroup(a)},showAll:function(){this._.list.showAll()},add:function(a,e,f){this._.items[a]=f||a;this._.list.add(a,e,f)},startGroup:function(a){this._.list.startGroup(a)},commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this)); +this._.committed=1},setState:function(a){if(this._.state!=a){var e=this.document.getById("cke_"+this.id);e.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED?e.setAttribute("aria-disabled",!0):e.removeAttribute("aria-disabled");this._.state=a}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){this._.state!=CKEDITOR.TRISTATE_DISABLED&&(this._.lastState=this._.state,this.setState(CKEDITOR.TRISTATE_DISABLED))}}, +statics:{handler:{create:function(a){return new CKEDITOR.ui.richCombo(a)}}}});CKEDITOR.ui.prototype.addRichCombo=function(a,e){this.add(a,CKEDITOR.UI_RICHCOMBO,e)}}(),CKEDITOR.plugins.add("format",{requires:"richcombo",init:function(a){if(!a.blockless){for(var e=a.config,c=a.lang.format,g=e.format_tags.split(";"),f={},m=0,l=[],k=0;k<g.length;k++){var b=g[k],d=new CKEDITOR.style(e["format_"+b]);if(!a.filter.customConfig||a.filter.check(d))m++,f[b]=d,f[b]._.enterMode=a.config.enterMode,l.push(d)}0!== +m&&a.ui.addRichCombo("Format",{label:c.label,title:c.panelTitle,toolbar:"styles,20",allowedContent:l,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(e.contentsCss),multiSelect:!1,attributes:{"aria-label":c.panelTitle}},init:function(){this.startGroup(c.panelTitle);for(var a in f){var b=c["tag_"+a];this.add(a,f[a].buildPreview(b),b)}},onClick:function(b){a.focus();a.fire("saveSnapshot");b=f[b];var c=a.elementPath();a[b.checkActive(c,a)?"removeStyle":"applyStyle"](b);setTimeout(function(){a.fire("saveSnapshot")}, +0)},onRender:function(){a.on("selectionChange",function(b){var c=this.getValue();b=b.data.path;this.refresh();for(var d in f)if(f[d].checkActive(b,a)){d!=c&&this.setValue(d,a.lang.format["tag_"+d]);return}this.setValue("")},this)},onOpen:function(){this.showAll();for(var b in f)a.activeFilter.check(f[b])||this.hideItem(b)},refresh:function(){var b=a.elementPath();if(b){if(b.isContextFor("p"))for(var c in f)if(a.activeFilter.check(f[c]))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}}})}}}),CKEDITOR.config.format_tags= +"p;h1;h2;h3;h4;h5;h6;pre;address;div",CKEDITOR.config.format_p={element:"p"},CKEDITOR.config.format_div={element:"div"},CKEDITOR.config.format_pre={element:"pre"},CKEDITOR.config.format_address={element:"address"},CKEDITOR.config.format_h1={element:"h1"},CKEDITOR.config.format_h2={element:"h2"},CKEDITOR.config.format_h3={element:"h3"},CKEDITOR.config.format_h4={element:"h4"},CKEDITOR.config.format_h5={element:"h5"},CKEDITOR.config.format_h6={element:"h6"},CKEDITOR.plugins.add("htmlwriter",{init:function(a){var e= +new CKEDITOR.htmlWriter;e.forceSimpleAmpersand=a.config.forceSimpleAmpersand;e.indentationChars=a.config.dataIndentationChars||"\t";a.dataProcessor.writer=e}}),CKEDITOR.htmlWriter=CKEDITOR.tools.createClass({base:CKEDITOR.htmlParser.basicWriter,$:function(){this.base();this.indentationChars="\t";this.selfClosingEnd=" /\x3e";this.lineBreakChars="\n";this.sortAttributes=1;this._.indent=0;this._.indentation="";this._.inPre=0;this._.rules={};var a=CKEDITOR.dtd,e;for(e in CKEDITOR.tools.extend({},a.$nonBodyContent, +a.$block,a.$listItem,a.$tableContent))this.setRules(e,{indent:!a[e]["#"],breakBeforeOpen:1,breakBeforeClose:!a[e]["#"],breakAfterClose:1,needsSpace:e in a.$block&&!(e in{li:1,dt:1,dd:1})});this.setRules("br",{breakAfterOpen:1});this.setRules("title",{indent:0,breakAfterOpen:0});this.setRules("style",{indent:0,breakBeforeClose:1});this.setRules("pre",{breakAfterOpen:1,indent:0})},proto:{openTag:function(a){var e=this._.rules[a];this._.afterCloser&&e&&e.needsSpace&&this._.needsSpace&&this._.output.push("\n"); +this._.indent?this.indentation():e&&e.breakBeforeOpen&&(this.lineBreak(),this.indentation());this._.output.push("\x3c",a);this._.afterCloser=0},openTagClose:function(a,e){var c=this._.rules[a];e?(this._.output.push(this.selfClosingEnd),c&&c.breakAfterClose&&(this._.needsSpace=c.needsSpace)):(this._.output.push("\x3e"),c&&c.indent&&(this._.indentation+=this.indentationChars));c&&c.breakAfterOpen&&this.lineBreak();"pre"==a&&(this._.inPre=1)},attribute:function(a,e){"string"==typeof e&&(this.forceSimpleAmpersand&& +(e=e.replace(/&/g,"\x26")),e=CKEDITOR.tools.htmlEncodeAttr(e));this._.output.push(" ",a,'\x3d"',e,'"')},closeTag:function(a){var e=this._.rules[a];e&&e.indent&&(this._.indentation=this._.indentation.substr(this.indentationChars.length));this._.indent?this.indentation():e&&e.breakBeforeClose&&(this.lineBreak(),this.indentation());this._.output.push("\x3c/",a,"\x3e");"pre"==a&&(this._.inPre=0);e&&e.breakAfterClose&&(this.lineBreak(),this._.needsSpace=e.needsSpace);this._.afterCloser=1},text:function(a){this._.indent&& +(this.indentation(),!this._.inPre&&(a=CKEDITOR.tools.ltrim(a)));this._.output.push(a)},comment:function(a){this._.indent&&this.indentation();this._.output.push("\x3c!--",a,"--\x3e")},lineBreak:function(){!this._.inPre&&0<this._.output.length&&this._.output.push(this.lineBreakChars);this._.indent=1},indentation:function(){!this._.inPre&&this._.indentation&&this._.output.push(this._.indentation);this._.indent=0},reset:function(){this._.output=[];this._.indent=0;this._.indentation="";this._.afterCloser= +0;this._.inPre=0},setRules:function(a,e){var c=this._.rules[a];c?CKEDITOR.tools.extend(c,e,!0):this._.rules[a]=e}}}),function(){var a={canUndo:!1,exec:function(a){var c=a.document.createElement("hr");a.insertElement(c)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",{init:function(e){e.blockless||(e.addCommand("horizontalrule",a),e.ui.addButton&&e.ui.addButton("HorizontalRule",{label:e.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"}))}})}(), +function(){function a(a){function c(a){var b=!1;h.attachListener(h,"keydown",function(){var c=k.getBody().getElementsByTag(a);if(!b){for(var d=0;d<c.count();d++)c.getItem(d).setCustomData("retain",!0);b=!0}},null,null,1);h.attachListener(h,"keyup",function(){var c=k.getElementsByTag(a);b&&(1!=c.count()||c.getItem(0).getCustomData("retain")||c.getItem(0).remove(1),b=!1)})}var g=this.editor,k=a.document,b=k.body,d=k.getElementById("cke_actscrpt");d&&d.parentNode.removeChild(d);(d=k.getElementById("cke_shimscrpt"))&& +d.parentNode.removeChild(d);(d=k.getElementById("cke_basetagscrpt"))&&d.parentNode.removeChild(d);b.contentEditable=!0;CKEDITOR.env.ie&&(b.hideFocus=!0,b.disabled=!0,b.removeAttribute("disabled"));delete this._.isLoadingData;this.$=b;k=new CKEDITOR.dom.document(k);this.setup();this.fixInitialSelection();var h=this;CKEDITOR.env.ie&&!CKEDITOR.env.edge&&g.enterMode!=CKEDITOR.ENTER_P?c("p"):CKEDITOR.env.edge&&g.enterMode!=CKEDITOR.ENTER_DIV&&c("div");if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version)k.getDocumentElement().on("mousedown", +function(a){a.data.getTarget().is("html")&&setTimeout(function(){g.editable().focus()})});e(g);try{g.document.$.execCommand("2D-position",!1,!0)}catch(p){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==g.document.$.compatMode)&&this.attachListener(this,"keydown",function(a){var b=a.data.getKeystroke();if(33==b||34==b)if(CKEDITOR.env.ie)setTimeout(function(){g.getSelection().scrollIntoView()},0);else if(g.window.$.innerHeight>this.$.offsetHeight){var c=g.createRange();c[33==b?"moveToElementEditStart": +"moveToElementEditEnd"](this);c.select();a.data.preventDefault()}});CKEDITOR.env.ie&&this.attachListener(k,"blur",function(){try{k.$.selection.empty()}catch(a){}});CKEDITOR.env.iOS&&this.attachListener(k,"touchend",function(){a.focus()});b=g.document.getElementsByTag("title").getItem(0);b.data("cke-title",b.getText());CKEDITOR.env.ie&&(g.document.$.title=this._.docTitle);CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready");g.fire("contentDom");this._.isPendingFocus&& +(g.focus(),this._.isPendingFocus=!1);setTimeout(function(){g.fire("dataReady")},0)},0,this)}function e(a){function c(){var b;a.editable().attachListener(a,"selectionChange",function(){var c=a.getSelection().getSelectedElement();c&&(b&&(b.detachEvent("onresizestart",e),b=null),c.$.attachEvent("onresizestart",e),b=c.$)})}function e(a){a.returnValue=!1}if(CKEDITOR.env.gecko)try{var g=a.document.$;g.execCommand("enableObjectResizing",!1,!a.config.disableObjectResizing);g.execCommand("enableInlineTableEditing", +!1,!a.config.disableNativeTableHandles)}catch(b){}else CKEDITOR.env.ie&&11>CKEDITOR.env.version&&a.config.disableObjectResizing&&c(a)}function c(){var a=[];if(8<=CKEDITOR.document.$.documentMode){a.push("html.CSS1Compat [contenteditable\x3dfalse]{min-height:0 !important}");var c=[],e;for(e in CKEDITOR.dtd.$removeEmpty)c.push("html.CSS1Compat "+e+"[contenteditable\x3dfalse]");a.push(c.join(",")+"{display:inline-block}")}else CKEDITOR.env.gecko&&(a.push("html{height:100% !important}"),a.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")); +a.push("html{cursor:text;*cursor:auto}");a.push("img,input,textarea{cursor:default}");return a.join("\n")}CKEDITOR.plugins.add("wysiwygarea",{init:function(a){a.config.fullPage&&a.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"});a.addMode("wysiwyg",function(c){function e(d){d&&d.removeListener();a.editable(new g(a,b.$.contentWindow.document.body));a.setData(a.getData(1),c)}var k="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+ +")();":"")+"document.close();",k=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(k)+"}())":"",b=CKEDITOR.dom.element.createFromHtml('\x3ciframe src\x3d"'+k+'" frameBorder\x3d"0"\x3e\x3c/iframe\x3e');b.setStyles({width:"100%",height:"100%"});b.addClass("cke_wysiwyg_frame").addClass("cke_reset");k=a.ui.space("contents");k.append(b);var d=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;if(d)b.on("load",e);var h=a.title, +p=a.fire("ariaEditorHelpLabel",{}).label;h&&(CKEDITOR.env.ie&&p&&(h+=", "+p),b.setAttribute("title",h));if(p){var h=CKEDITOR.tools.getNextId(),v=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+h+'" class\x3d"cke_voice_label"\x3e'+p+"\x3c/span\x3e");k.append(v,1);b.setAttribute("aria-describedby",h)}a.on("beforeModeUnload",function(a){a.removeListener();v&&v.remove()});b.setAttributes({tabIndex:a.tabIndex,allowTransparency:"true"});!d&&e();a.fire("ariaWidget",b)})}});CKEDITOR.editor.prototype.addContentsCss= +function(a){var c=this.config,e=c.contentsCss;CKEDITOR.tools.isArray(e)||(c.contentsCss=e?[e]:[]);c.contentsCss.push(a)};var g=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(c){CKEDITOR.tools.setTimeout(a,0,this,c)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(a,e){var g=this.editor;if(e)this.setHtml(a),this.fixInitialSelection(),g.fire("dataReady"); +else{this._.isLoadingData=!0;g._.dataStore={id:1};var k=g.config,b=k.fullPage,d=k.docType,h=CKEDITOR.tools.buildStyleHtml(c()).replace(/<style>/,'\x3cstyle data-cke-temp\x3d"1"\x3e');b||(h+=CKEDITOR.tools.buildStyleHtml(g.config.contentsCss));var p=k.baseHref?'\x3cbase href\x3d"'+k.baseHref+'" data-cke-temp\x3d"1" /\x3e':"";b&&(a=a.replace(/<!DOCTYPE[^>]*>/i,function(a){g.docType=d=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){g.xmlDeclaration=a;return""}));a=g.dataProcessor.toHtml(a);b?(/<body[\s|>]/.test(a)|| +(a="\x3cbody\x3e"+a),/<html[\s|>]/.test(a)||(a="\x3chtml\x3e"+a+"\x3c/html\x3e"),/<head[\s|>]/.test(a)?/<title[\s|>]/.test(a)||(a=a.replace(/<head[^>]*>/,"$\x26\x3ctitle\x3e\x3c/title\x3e")):a=a.replace(/<html[^>]*>/,"$\x26\x3chead\x3e\x3ctitle\x3e\x3c/title\x3e\x3c/head\x3e"),p&&(a=a.replace(/<head[^>]*?>/,"$\x26"+p)),a=a.replace(/<\/head\s*>/,h+"$\x26"),a=d+a):a=k.docType+'\x3chtml dir\x3d"'+k.contentsLangDirection+'" lang\x3d"'+(k.contentsLanguage||g.langCode)+'"\x3e\x3chead\x3e\x3ctitle\x3e'+ +this._.docTitle+"\x3c/title\x3e"+p+h+"\x3c/head\x3e\x3cbody"+(k.bodyId?' id\x3d"'+k.bodyId+'"':"")+(k.bodyClass?' class\x3d"'+k.bodyClass+'"':"")+"\x3e"+a+"\x3c/body\x3e\x3c/html\x3e";CKEDITOR.env.gecko&&(a=a.replace(/<body/,'\x3cbody contenteditable\x3d"true" '),2E4>CKEDITOR.env.version&&(a=a.replace(/<body[^>]*>/,"$\x26\x3c!-- cke-content-start --\x3e")));k='\x3cscript id\x3d"cke_actscrpt" type\x3d"text/javascript"'+(CKEDITOR.env.ie?' defer\x3d"defer" ':"")+"\x3evar wasLoaded\x3d0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+ +this._.frameLoadedHandler+",window);wasLoaded\x3d1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"\x3c/script\x3e";CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(k+='\x3cscript id\x3d"cke_shimscrpt"\x3ewindow.parent.CKEDITOR.tools.enableHtml5Elements(document)\x3c/script\x3e');p&&CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(k+='\x3cscript id\x3d"cke_basetagscrpt"\x3evar baseTag \x3d document.querySelector( "base" );baseTag.href \x3d baseTag.href;\x3c/script\x3e'); +a=a.replace(/(?=\s*<\/(:?head)>)/,k);this.clearCustomData();this.clearListeners();g.fire("contentDomUnload");var v=this.getDocument();try{v.write(a)}catch(u){setTimeout(function(){v.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();a=this.editor;var c=a.config,e=c.fullPage,g=e&&a.docType,b=e&&a.xmlDeclaration,d=this.getDocument(),e=e?d.getDocumentElement().getOuterHtml():d.getBody().getHtml();CKEDITOR.env.gecko&&c.enterMode!=CKEDITOR.ENTER_BR&&(e=e.replace(/<br>(?=\s*(:?$|<\/body>))/, +""));e=a.dataProcessor.toDataFormat(e);b&&(e=b+"\n"+e);g&&(e=g+"\n"+e);return e},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:g.baseProto.focus.call(this)},detach:function(){var a=this.editor,c=a.document,a=a.window.getFrame();g.baseProto.detach.call(this);this.clearCustomData();c.getDocumentElement().clearCustomData();a.clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);(c=a.removeCustomData("onResize"))&&c.removeListener();a.remove()}}})}(),CKEDITOR.config.disableObjectResizing= +!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,CKEDITOR.config.contentsCss=CKEDITOR.getUrl("contents.css"),function(){function a(a,f){var m,l;f.on("refresh",function(a){var b=[e],d;for(d in a.data.states)b.push(a.data.states[d]);this.setState(CKEDITOR.tools.search(b,c)?c:e)},f,null,100);f.on("exec",function(c){m=a.getSelection();l=m.createBookmarks(1);c.data||(c.data={});c.data.done=!1},f,null,0);f.on("exec",function(){a.forceNextSelectionCheck();m.selectBookmarks(l)}, +f,null,100)}var e=CKEDITOR.TRISTATE_DISABLED,c=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(c){var e=CKEDITOR.plugins.indent.genericDefinition;a(c,c.addCommand("indent",new e(!0)));a(c,c.addCommand("outdent",new e));c.ui.addButton&&(c.ui.addButton("Indent",{label:c.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),c.ui.addButton("Outdent",{label:c.lang.indent.outdent,command:"outdent",directional:!0,toolbar:"indent,10"}));c.on("dirChanged",function(a){var e= +c.createRange(),f=a.data.node;e.setStartBefore(f);e.setEndAfter(f);for(var b=new CKEDITOR.dom.walker(e),d;d=b.next();)if(d.type==CKEDITOR.NODE_ELEMENT)if(!d.equals(f)&&d.getDirection())e.setStartAfter(d),b=new CKEDITOR.dom.walker(e);else{var h=c.config.indentClasses;if(h)for(var p="ltr"==a.data.dir?["_rtl",""]:["","_rtl"],v=0;v<h.length;v++)d.hasClass(h[v]+p[0])&&(d.removeClass(h[v]+p[0]),d.addClass(h[v]+p[1]));h=d.getStyle("margin-right");p=d.getStyle("margin-left");h?d.setStyle("margin-left",h): +d.removeStyle("margin-left");p?d.setStyle("margin-right",p):d.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent={genericDefinition:function(a){this.isIndent=!!a;this.startDisabled=!this.isIndent},specificDefinition:function(a,c,e){this.name=c;this.editor=a;this.jobs={};this.enterBr=a.config.enterMode==CKEDITOR.ENTER_BR;this.isIndent=!!e;this.relatedGlobal=e?"indent":"outdent";this.indentKey=e?9:CKEDITOR.SHIFT+9;this.database={}},registerCommands:function(a,c){a.on("pluginsLoaded",function(){for(var a in c)(function(a, +c){var b=a.getCommand(c.relatedGlobal),d;for(d in c.jobs)b.on("exec",function(b){b.data.done||(a.fire("lockSnapshot"),c.execJob(a,d)&&(b.data.done=!0),a.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(c.database))},this,null,d),b.on("refresh",function(b){b.data.states||(b.data.states={});b.data.states[c.name+"@"+d]=c.refreshJob(a,d,b.data.path)},this,null,d);a.addFeature(c)})(this,c[a])})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype= +{execJob:function(a,c){var m=this.jobs[c];if(m.state!=e)return m.exec.call(this,a)},refreshJob:function(a,c,m){c=this.jobs[c];a.activeFilter.checkFeature(this)?c.state=c.refresh.call(this,a,m):c.state=e;return c.state},getContext:function(a){return a.contains(this.context)}}}(),function(){function a(a){function b(b){for(var e=m.startContainer,n=m.endContainer;e&&!e.getParent().equals(b);)e=e.getParent();for(;n&&!n.getParent().equals(b);)n=n.getParent();if(!e||!n)return!1;for(var l=e,e=[],t=!1;!t;)l.equals(n)&& +(t=!0),e.push(l),l=l.getNext();if(1>e.length)return!1;l=b.getParents(!0);for(n=0;n<l.length;n++)if(l[n].getName&&g[l[n].getName()]){b=l[n];break}for(var l=d.isIndent?1:-1,n=e[0],e=e[e.length-1],t=CKEDITOR.plugins.list.listToArray(b,f),x=t[e.getCustomData("listarray_index")].indent,n=n.getCustomData("listarray_index");n<=e.getCustomData("listarray_index");n++)if(t[n].indent+=l,0<l){var B=t[n].parent;t[n].parent=new CKEDITOR.dom.element(B.getName(),B.getDocument())}for(n=e.getCustomData("listarray_index")+ +1;n<t.length&&t[n].indent>x;n++)t[n].indent+=l;e=CKEDITOR.plugins.list.arrayToList(t,f,null,a.config.enterMode,b.getDirection());if(!d.isIndent){var v;if((v=b.getParent())&&v.is("li"))for(var l=e.listNode.getChildren(),z=[],D,n=l.count()-1;0<=n;n--)(D=l.getItem(n))&&D.is&&D.is("li")&&z.push(D)}e&&e.listNode.replace(b);if(z&&z.length)for(n=0;n<z.length;n++){for(D=b=z[n];(D=D.getNext())&&D.is&&D.getName()in g;)CKEDITOR.env.needsNbspFiller&&!b.getFirst(c)&&b.append(m.document.createText(" ")),b.append(D); +b.insertAfter(v)}e&&a.fire("contentDomInvalidated");return!0}for(var d=this,f=this.database,g=this.context,l=a.getSelection(),l=(l&&l.getRanges()).createIterator(),m;m=l.getNextRange();){for(var t=m.getCommonAncestor();t&&(t.type!=CKEDITOR.NODE_ELEMENT||!g[t.getName()]);){if(a.editable().equals(t)){t=!1;break}t=t.getParent()}t||(t=m.startPath().contains(g))&&m.setEndAt(t,CKEDITOR.POSITION_BEFORE_END);if(!t){var n=m.getEnclosedNode();n&&n.type==CKEDITOR.NODE_ELEMENT&&n.getName()in g&&(m.setStartAt(n, +CKEDITOR.POSITION_AFTER_START),m.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),t=n)}t&&m.startContainer.type==CKEDITOR.NODE_ELEMENT&&m.startContainer.getName()in g&&(n=new CKEDITOR.dom.walker(m),n.evaluator=e,m.startContainer=n.next());t&&m.endContainer.type==CKEDITOR.NODE_ELEMENT&&m.endContainer.getName()in g&&(n=new CKEDITOR.dom.walker(m),n.evaluator=e,m.endContainer=n.previous());if(t)return b(t)}return 0}function e(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}function c(a){return g(a)&&f(a)} +var g=CKEDITOR.dom.walker.whitespaces(!0),f=CKEDITOR.dom.walker.bookmark(!1,!0),m=CKEDITOR.TRISTATE_DISABLED,l=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(c){function b(b){d.specificDefinition.apply(this,arguments);this.requiredContent=["ul","ol"];b.on("key",function(a){if("wysiwyg"==b.mode&&a.data.keyCode==this.indentKey){var c=this.getContext(b.elementPath());!c||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,b.elementPath(), +c)||(b.execCommand(this.relatedGlobal),a.cancel())}},this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(a,b){var c=this.getContext(b),d=CKEDITOR.plugins.indentList.firstItemInPath(this.context,b,c);return c&&this.isIndent&&!d?l:m}:function(a,b){return!this.getContext(b)||this.isIndent?m:l},exec:CKEDITOR.tools.bind(a,this)}}var d=CKEDITOR.plugins.indent;d.registerCommands(c,{indentlist:new b(c,"indentlist",!0),outdentlist:new b(c,"outdentlist")});CKEDITOR.tools.extend(b.prototype, +d.specificDefinition.prototype,{context:{ol:1,ul:1}})}});CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(a,b,c){var f=b.contains(e);c||(c=b.contains(a));return c&&f&&f.equals(c.getFirst(e))}}(),function(){function a(a,b,c){function d(c){if(!(!(l=k[c?"getFirst":"getLast"]())||l.is&&l.isBlockBoundary()||!(m=b.root[c?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))||m.is&&m.isBlockBoundary({br:1})))a.document.createElement("br")[c?"insertBefore":"insertAfter"](l)} +for(var e=CKEDITOR.plugins.list.listToArray(b.root,c),f=[],h=0;h<b.contents.length;h++){var g=b.contents[h];(g=g.getAscendant("li",!0))&&!g.getCustomData("list_item_processed")&&(f.push(g),CKEDITOR.dom.element.setMarker(c,g,"list_item_processed",!0))}g=null;for(h=0;h<f.length;h++)g=f[h].getCustomData("listarray_index"),e[g].indent=-1;for(h=g+1;h<e.length;h++)if(e[h].indent>e[h-1].indent+1){f=e[h-1].indent+1-e[h].indent;for(g=e[h].indent;e[h]&&e[h].indent>=g;)e[h].indent+=f,h++;h--}var k=CKEDITOR.plugins.list.arrayToList(e, +c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,l,m;d(!0);d();k.replace(b.root);a.fire("contentDomInvalidated")}function e(a,b){this.name=a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function c(a,b,c,d){for(var e,f;e=a[d?"getLast":"getFirst"](u);)(f=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",f),e.remove(),c?e[d?"insertBefore":"insertAfter"](c):b.append(e,d)}function g(a){function b(d){var e=a[d?"getPrevious":"getNext"](h);e&&e.type== +CKEDITOR.NODE_ELEMENT&&e.is(a.getName())&&(c(a,e,null,!d),a.remove(),a=e)}b();b(1)}function f(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function m(a,b,d){a.fire("saveSnapshot");d.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var e=d.extractContents();b.trim(!1,!0);var f=b.createBookmark(),k=new CKEDITOR.dom.elementPath(b.startContainer),m=k.block,k=k.lastElement.getAscendant("li",1)||m,x=new CKEDITOR.dom.elementPath(d.startContainer), +B=x.contains(CKEDITOR.dtd.$listItem),x=x.contains(CKEDITOR.dtd.$list);m?(m=m.getBogus())&&m.remove():x&&(m=x.getPrevious(h))&&p(m)&&m.remove();(m=e.getLast())&&m.type==CKEDITOR.NODE_ELEMENT&&m.is("br")&&m.remove();(m=b.startContainer.getChild(b.startOffset))?e.insertBefore(m):b.startContainer.append(e);B&&(e=l(B))&&(k.contains(B)?(c(e,B.getParent(),B),e.remove()):k.append(e));for(;d.checkStartOfBlock()&&d.checkEndOfBlock();){x=d.startPath();e=x.block;if(!e)break;e.is("li")&&(k=e.getParent(),e.equals(k.getLast(h))&& +e.equals(k.getFirst(h))&&(e=k));d.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);e.remove()}d=d.clone();e=a.editable();d.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=function(a){return h(a)&&!p(a)};(d=d.next())&&d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in CKEDITOR.dtd.$list&&g(d);b.moveToBookmark(f);b.select();a.fire("saveSnapshot")}function l(a){return(a=a.getLast(h))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in k?a:null}var k={ol:1,ul:1},b=CKEDITOR.dom.walker.whitespaces(), +d=CKEDITOR.dom.walker.bookmark(),h=function(a){return!(b(a)||d(a))},p=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,b,c,d,e){if(!k[a.getName()])return[];d||(d=0);c||(c=[]);for(var f=0,h=a.getChildCount();f<h;f++){var g=a.getChild(f);g.type==CKEDITOR.NODE_ELEMENT&&g.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(g,b,c,d+1);if("li"==g.$.nodeName.toLowerCase()){var l={parent:a,indent:d,element:g,contents:[]};e?l.grandparent=e:(l.grandparent=a.getParent(), +l.grandparent&&"li"==l.grandparent.$.nodeName.toLowerCase()&&(l.grandparent=l.grandparent.getParent()));b&&CKEDITOR.dom.element.setMarker(b,g,"listarray_index",c.length);c.push(l);for(var m=0,p=g.getChildCount(),u;m<p;m++)u=g.getChild(m),u.type==CKEDITOR.NODE_ELEMENT&&k[u.getName()]?CKEDITOR.plugins.list.listToArray(u,b,c,d+1,l.grandparent):l.contents.push(u)}}return c},arrayToList:function(a,b,c,e,f){c||(c=0);if(!a||a.length<c+1)return null;for(var g,l=a[c].parent.getDocument(),m=new CKEDITOR.dom.documentFragment(l), +p=null,u=c,v=Math.max(a[c].indent,0),D=null,G,F,J=e==CKEDITOR.ENTER_P?"p":"div";;){var I=a[u];g=I.grandparent;G=I.element.getDirection(1);if(I.indent==v){p&&a[u].parent.getName()==p.getName()||(p=a[u].parent.clone(!1,1),f&&p.setAttribute("dir",f),m.append(p));D=p.append(I.element.clone(0,1));G!=p.getDirection(1)&&D.setAttribute("dir",G);for(g=0;g<I.contents.length;g++)D.append(I.contents[g].clone(1,1));u++}else if(I.indent==Math.max(v,0)+1)I=a[u-1].element.getDirection(1),u=CKEDITOR.plugins.list.arrayToList(a, +null,u,e,I!=G?G:null),!D.getChildCount()&&CKEDITOR.env.needsNbspFiller&&7>=l.$.documentMode&&D.append(l.createText(" ")),D.append(u.listNode),u=u.nextIndex;else if(-1==I.indent&&!c&&g){k[g.getName()]?(D=I.element.clone(!1,!0),G!=g.getDirection(1)&&D.setAttribute("dir",G)):D=new CKEDITOR.dom.documentFragment(l);var p=g.getDirection(1)!=G,N=I.element,E=N.getAttribute("class"),P=N.getAttribute("style"),T=D.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(e!=CKEDITOR.ENTER_BR||p||P||E),L,Q=I.contents.length,O; +for(g=0;g<Q;g++)if(L=I.contents[g],d(L)&&1<Q)T?O=L.clone(1,1):D.append(L.clone(1,1));else if(L.type==CKEDITOR.NODE_ELEMENT&&L.isBlockBoundary()){p&&!L.getDirection()&&L.setAttribute("dir",G);F=L;var U=N.getAttribute("style");U&&F.setAttribute("style",U.replace(/([^;])$/,"$1;")+(F.getAttribute("style")||""));E&&L.addClass(E);F=null;O&&(D.append(O),O=null);D.append(L.clone(1,1))}else T?(F||(F=l.createElement(J),D.append(F),p&&F.setAttribute("dir",G)),P&&F.setAttribute("style",P),E&&F.setAttribute("class", +E),O&&(F.append(O),O=null),F.append(L.clone(1,1))):D.append(L.clone(1,1));O&&((F||D).append(O),O=null);D.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&u!=a.length-1&&(CKEDITOR.env.needsBrFiller&&(G=D.getLast())&&G.type==CKEDITOR.NODE_ELEMENT&&G.is("br")&&G.remove(),(G=D.getLast(h))&&G.type==CKEDITOR.NODE_ELEMENT&&G.is(CKEDITOR.dtd.$block)||D.append(l.createElement("br")));G=D.$.nodeName.toLowerCase();"div"!=G&&"p"!=G||D.appendBogus();m.append(D);p=null;u++}else return null;F=null;if(a.length<=u||Math.max(a[u].indent, +0)<v)break}if(b)for(a=m.getFirst();a;){if(a.type==CKEDITOR.NODE_ELEMENT&&(CKEDITOR.dom.element.clearMarkers(b,a),a.getName()in CKEDITOR.dtd.$listItem&&(c=a,l=f=e=void 0,e=c.getDirection()))){for(f=c.getParent();f&&!(l=f.getDirection());)f=f.getParent();e==l&&c.removeAttribute("dir")}a=a.getNextSourceNode()}return{listNode:m,nextIndex:u}}};var v=/^h[1-6]$/,u=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);e.prototype={exec:function(b){this.refresh(b,b.elementPath());var c=b.config,d=b.getSelection(), +e=d&&d.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var f=b.editable();if(f.getFirst(h)){var l=1==e.length&&e[0];(c=l&&l.getEnclosedNode())&&c.is&&this.type==c.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else c.enterMode==CKEDITOR.ENTER_BR?f.appendBogus():e[0].fixBlock(1,c.enterMode==CKEDITOR.ENTER_P?"p":"div"),d.selectRanges(e)}for(var c=d.createBookmarks(!0),f=[],m={},e=e.createIterator(),p=0;(l=e.getNextRange())&&++p;){var u=l.getBoundaryNodes(),A=u.startNode,z=u.endNode;A.type==CKEDITOR.NODE_ELEMENT&& +"td"==A.getName()&&l.setStartAt(u.startNode,CKEDITOR.POSITION_AFTER_START);z.type==CKEDITOR.NODE_ELEMENT&&"td"==z.getName()&&l.setEndAt(u.endNode,CKEDITOR.POSITION_BEFORE_END);l=l.createIterator();for(l.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;u=l.getNextParagraph();)if(!u.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(m,u,"list_block",1);for(var D=b.elementPath(u),A=D.elements,z=0,D=D.blockLimit,G,F=A.length-1;0<=F&&(G=A[F]);F--)if(k[G.getName()]&&D.contains(G)){D.removeCustomData("list_group_object_"+ +p);(A=G.getCustomData("list_group_object"))?A.contents.push(u):(A={root:G,contents:[u]},f.push(A),CKEDITOR.dom.element.setMarker(m,G,"list_group_object",A));z=1;break}z||(z=D,z.getCustomData("list_group_object_"+p)?z.getCustomData("list_group_object_"+p).contents.push(u):(A={root:z,contents:[u]},CKEDITOR.dom.element.setMarker(m,z,"list_group_object_"+p,A),f.push(A)))}}for(G=[];0<f.length;)if(A=f.shift(),this.state==CKEDITOR.TRISTATE_OFF)if(k[A.root.getName()]){e=b;p=A;A=m;l=G;z=CKEDITOR.plugins.list.listToArray(p.root, +A);D=[];for(u=0;u<p.contents.length;u++)F=p.contents[u],(F=F.getAscendant("li",!0))&&!F.getCustomData("list_item_processed")&&(D.push(F),CKEDITOR.dom.element.setMarker(A,F,"list_item_processed",!0));for(var F=p.root.getDocument(),J=void 0,I=void 0,u=0;u<D.length;u++){var N=D[u].getCustomData("listarray_index"),J=z[N].parent;J.is(this.type)||(I=F.createElement(this.type),J.copyAttributes(I,{start:1,type:1}),I.removeStyle("list-style-type"),z[N].parent=I)}A=CKEDITOR.plugins.list.arrayToList(z,A,null, +e.config.enterMode);z=void 0;D=A.listNode.getChildCount();for(u=0;u<D&&(z=A.listNode.getChild(u));u++)z.getName()==this.type&&l.push(z);A.listNode.replace(p.root);e.fire("contentDomInvalidated")}else{z=b;l=A;u=G;D=l.contents;e=l.root.getDocument();p=[];1==D.length&&D[0].equals(l.root)&&(A=e.createElement("div"),D[0].moveChildren&&D[0].moveChildren(A),D[0].append(A),D[0]=A);l=l.contents[0].getParent();for(F=0;F<D.length;F++)l=l.getCommonAncestor(D[F].getParent());J=z.config.useComputedState;z=A=void 0; +J=void 0===J||J;for(F=0;F<D.length;F++)for(I=D[F];N=I.getParent();){if(N.equals(l)){p.push(I);!z&&I.getDirection()&&(z=1);I=I.getDirection(J);null!==A&&(A=A&&A!=I?null:I);break}I=N}if(!(1>p.length)){D=p[p.length-1].getNext();F=e.createElement(this.type);u.push(F);for(J=u=void 0;p.length;)u=p.shift(),J=e.createElement("li"),I=u,I.is("pre")||v.test(I.getName())||"false"==I.getAttribute("contenteditable")?u.appendTo(J):(u.copyAttributes(J),A&&u.getDirection()&&(J.removeStyle("direction"),J.removeAttribute("dir")), +u.moveChildren(J),u.remove()),J.appendTo(F);A&&z&&F.setAttribute("dir",A);D?F.insertBefore(D):F.appendTo(l)}}else this.state==CKEDITOR.TRISTATE_ON&&k[A.root.getName()]&&a.call(this,b,A,m);for(F=0;F<G.length;F++)g(G[F]);CKEDITOR.dom.element.clearAllMarkers(m);d.selectBookmarks(c);b.focus()},refresh:function(a,b){var c=b.contains(k,1),d=b.blockLimit||b.root;c&&d.contains(c)?this.setState(c.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("list", +{requires:"indentlist",init:function(a){a.blockless||(a.addCommand("numberedlist",new e("numberedlist","ol")),a.addCommand("bulletedlist",new e("bulletedlist","ul")),a.ui.addButton&&(a.ui.addButton("NumberedList",{label:a.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),a.ui.addButton("BulletedList",{label:a.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),a.on("key",function(b){var c=b.data.domEvent.getKey(),d;if("wysiwyg"==a.mode&& +c in{8:1,46:1}){var e=a.getSelection().getRanges()[0],g=e&&e.startPath();if(e&&e.collapsed){var r=8==c,u=a.editable(),v=new CKEDITOR.dom.walker(e.clone());v.evaluator=function(a){return h(a)&&!p(a)};v.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};c=e.clone();if(r){var A;(A=g.contains(k))&&e.checkBoundaryOfElement(A,CKEDITOR.START)&&(A=A.getParent())&&A.is("li")&&(A=l(A))?(d=A,A=A.getPrevious(h),c.moveToPosition(A&&p(A)?A:d,CKEDITOR.POSITION_BEFORE_START)):(v.range.setStartAt(u, +CKEDITOR.POSITION_AFTER_START),v.range.setEnd(e.startContainer,e.startOffset),(A=v.previous())&&A.type==CKEDITOR.NODE_ELEMENT&&(A.getName()in k||A.is("li"))&&(A.is("li")||(v.range.selectNodeContents(A),v.reset(),v.evaluator=f,A=v.previous()),d=A,c.moveToElementEditEnd(d),c.moveToPosition(c.endPath().block,CKEDITOR.POSITION_BEFORE_END)));if(d)m(a,c,e),b.cancel();else{var z=g.contains(k);z&&e.checkBoundaryOfElement(z,CKEDITOR.START)&&(d=z.getFirst(h),e.checkBoundaryOfElement(d,CKEDITOR.START)&&(A=z.getPrevious(h), +l(d)?A&&(e.moveToElementEditEnd(A),e.select()):a.execCommand("outdent"),b.cancel()))}}else if(d=g.contains("li")){if(v.range.setEndAt(u,CKEDITOR.POSITION_BEFORE_END),r=(u=d.getLast(h))&&f(u)?u:d,g=0,(A=v.next())&&A.type==CKEDITOR.NODE_ELEMENT&&A.getName()in k&&A.equals(u)?(g=1,A=v.next()):e.checkBoundaryOfElement(r,CKEDITOR.END)&&(g=2),g&&A){e=e.clone();e.moveToElementEditStart(A);if(1==g&&(c.optimize(),!c.startContainer.equals(d))){for(d=c.startContainer;d.is(CKEDITOR.dtd.$inline);)z=d,d=d.getParent(); +z&&c.moveToPosition(z,CKEDITOR.POSITION_AFTER_END)}2==g&&(c.moveToPosition(c.endPath().block,CKEDITOR.POSITION_BEFORE_END),e.endPath().block&&e.moveToPosition(e.endPath().block,CKEDITOR.POSITION_AFTER_START));m(a,c,e);b.cancel()}}else v.range.setEndAt(u,CKEDITOR.POSITION_BEFORE_END),(A=v.next())&&A.type==CKEDITOR.NODE_ELEMENT&&A.is(k)&&(A=A.getFirst(h),g.block&&e.checkStartOfBlock()&&e.checkEndOfBlock()?(g.block.remove(),e.moveToElementEditStart(A),e.select()):l(A)?(e.moveToElementEditStart(A),e.select()): +(e=e.clone(),e.moveToElementEditStart(A),m(a,c,e)),b.cancel());setTimeout(function(){a.selectionChange(1)})}}}))}})}(),"use strict",function(){function a(a,b,c){return p(b)&&p(c)&&c.equals(b.getNext(function(a){return!(ba(a)||Y(a)||v(a))}))}function e(a){this.upper=a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}function c(a){var b=a.element;if(b&&p(b)&&(b=b.getAscendant(a.triggers,!0))&&a.editable.contains(b)){var c=l(b);if("true"==c.getAttribute("contenteditable"))return b;if(c.is(a.triggers))return c}return null} +function g(a,b,c){r(a,b);r(a,c);a=b.size.bottom;c=c.size.top;return a&&c?0|(a+c)/2:a||c}function f(a,b,c){return b=b[c?"getPrevious":"getNext"](function(b){return b&&b.type==CKEDITOR.NODE_TEXT&&!ba(b)||p(b)&&!v(b)&&!h(a,b)})}function m(a,b,c){return a>b&&a<c}function l(a,b){if(a.data("cke-editable"))return null;for(b||(a=a.getParent());a&&!a.data("cke-editable");){if(a.hasAttribute("contenteditable"))return a;a=a.getParent()}return null}function k(a){var c=a.doc,d=G('\x3cspan contenteditable\x3d"false" style\x3d"'+ +S+"position:absolute;border-top:1px dashed "+a.boxColor+'"\x3e\x3c/span\x3e',c),e=CKEDITOR.getUrl(this.path+"images/"+(F.hidpi?"hidpi/":"")+"icon"+(a.rtl?"-rtl":"")+".png");z(d,{attach:function(){this.wrap.getParent()||this.wrap.appendTo(a.editable,!0);return this},lineChildren:[z(G('\x3cspan title\x3d"'+a.editor.lang.magicline.title+'" contenteditable\x3d"false"\x3e\x26#8629;\x3c/span\x3e',c),{base:S+"height:17px;width:17px;"+(a.rtl?"left":"right")+":17px;background:url("+e+") center no-repeat "+ +a.boxColor+";cursor:pointer;"+(F.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(F.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px; border-radius: 2px;","top:-17px; border-radius: 2px 2px 0px 0px;","top:-1px; border-radius: 0px 0px 2px 2px;"]}),z(G(X,c),{base:aa+"left:0px;border-left-color:"+a.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),z(G(X,c),{base:aa+"right:0px;border-right-color:"+ +a.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px","border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],detach:function(){this.wrap.getParent()&&this.wrap.remove();return this},mouseNear:function(){r(a,this);var b=a.holdDistance,c=this.size;return c&&m(a.mouse.y,c.top-b,c.bottom+b)&&m(a.mouse.x,c.left-b,c.right+b)?!0:!1},place:function(){var b=a.view,c=a.editable,d=a.trigger,e=d.upper,f=d.lower,h=e||f,g=h.getParent(),k={};this.trigger=d;e&&r(a,e,!0);f&&r(a,f,!0);r(a, +g,!0);a.inInlineMode&&x(a,!0);g.equals(c)?(k.left=b.scroll.x,k.right=-b.scroll.x,k.width=""):(k.left=h.size.left-h.size.margin.left+b.scroll.x-(a.inInlineMode?b.editable.left+b.editable.border.left:0),k.width=h.size.outerWidth+h.size.margin.left+h.size.margin.right+b.scroll.x,k.right="");e&&f?k.top=e.size.margin.bottom===f.size.margin.top?0|e.size.bottom+e.size.margin.bottom/2:e.size.margin.bottom<f.size.margin.top?e.size.bottom+e.size.margin.bottom:e.size.bottom+e.size.margin.bottom-f.size.margin.top: +e?f||(k.top=e.size.bottom+e.size.margin.bottom):k.top=f.size.top-f.size.margin.top;d.is(Q)||m(k.top,b.scroll.y-15,b.scroll.y+5)?(k.top=a.inInlineMode?0:b.scroll.y,this.look(Q)):d.is(O)||m(k.top,b.pane.bottom-5,b.pane.bottom+15)?(k.top=a.inInlineMode?b.editable.height+b.editable.padding.top+b.editable.padding.bottom:b.pane.bottom-1,this.look(O)):(a.inInlineMode&&(k.top-=b.editable.top+b.editable.border.top),this.look(U));a.inInlineMode&&(k.top--,k.top+=b.editable.scroll.top,k.left+=b.editable.scroll.left); +for(var l in k)k[l]=CKEDITOR.tools.cssLength(k[l]);this.setStyles(k)},look:function(a){if(this.oldLook!=a){for(var b=this.lineChildren.length,c;b--;)(c=this.lineChildren[b]).setAttribute("style",c.base+c.looks[0|a/2]);this.oldLook=a}},wrap:new D("span",a.doc)});for(c=d.lineChildren.length;c--;)d.lineChildren[c].appendTo(d);d.look(U);d.appendTo(d.wrap);d.unselectable();d.lineChildren[0].on("mouseup",function(c){d.detach();b(a,function(b){var c=a.line.trigger;b[c.is(E)?"insertBefore":"insertAfter"](c.is(E)? +c.lower:c.upper)},!0);a.editor.focus();F.ie||a.enterMode==CKEDITOR.ENTER_BR||a.hotNode.scrollIntoView();c.data.preventDefault(!0)});d.on("mousedown",function(a){a.data.preventDefault(!0)});a.line=d}function b(a,b,c){var d=new CKEDITOR.dom.range(a.doc),e=a.editor,f;F.ie&&a.enterMode==CKEDITOR.ENTER_BR?f=a.doc.createText(K):(f=(f=l(a.element,!0))&&f.data("cke-enter-mode")||a.enterMode,f=new D(N[f],a.doc),f.is("br")||a.doc.createText(K).appendTo(f));c&&e.fire("saveSnapshot");b(f);d.moveToPosition(f, +CKEDITOR.POSITION_AFTER_START);e.getSelection().selectRanges([d]);a.hotNode=f;c&&e.fire("saveSnapshot")}function d(a,d){return{canUndo:!0,modes:{wysiwyg:1},exec:function(){function e(c){var f=F.ie&&9>F.version?" ":K,h=a.hotNode&&a.hotNode.getText()==f&&a.element.equals(a.hotNode)&&a.lastCmdDirection===!!d;b(a,function(b){h&&a.hotNode&&a.hotNode.remove();b[d?"insertAfter":"insertBefore"](c);b.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!d});a.lastCmdDirection=!!d});F.ie||a.enterMode== +CKEDITOR.ENTER_BR||a.hotNode.scrollIntoView();a.line.detach()}return function(b){b=b.getSelection().getStartElement();var h;b=b.getAscendant(M,1);if(!n(a,b)&&b&&!b.equals(a.editable)&&!b.contains(a.editable)){(h=l(b))&&"false"==h.getAttribute("contenteditable")&&(b=h);a.element=b;h=f(a,b,!d);var g;p(h)&&h.is(a.triggers)&&h.is(H)&&(!f(a,h,!d)||(g=f(a,h,!d))&&p(g)&&g.is(a.triggers))?e(h):(g=c(a,b),p(g)&&(f(a,g,!d)?(b=f(a,g,!d))&&p(b)&&b.is(a.triggers)&&e(g):e(g)))}}}()}}function h(a,b){if(!b||b.type!= +CKEDITOR.NODE_ELEMENT||!b.$)return!1;var c=a.line;return c.wrap.equals(b)||c.wrap.contains(b)}function p(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.$}function v(a){if(!p(a))return!1;var b;(b=u(a))||(p(a)?(b={left:1,right:1,center:1},b=!(!b[a.getComputedStyle("float")]&&!b[a.getAttribute("align")])):b=!1);return b}function u(a){return!!{absolute:1,fixed:1}[a.getComputedStyle("position")]}function t(a,b){return p(b)?b.is(a.triggers):null}function n(a,b){if(!b)return!1;for(var c=b.getParents(1),d= +c.length;d--;)for(var e=a.tabuList.length;e--;)if(c[d].hasAttribute(a.tabuList[e]))return!0;return!1}function q(a,b,c){b=b[c?"getLast":"getFirst"](function(b){return a.isRelevant(b)&&!b.is(R)});if(!b)return!1;r(a,b);return c?b.size.top>a.mouse.y:b.size.bottom<a.mouse.y}function w(a){var b=a.editable,c=a.mouse,d=a.view,f=a.triggerOffset;x(a);var g=c.y>(a.inInlineMode?d.editable.top+d.editable.height/2:Math.min(d.editable.height,d.pane.height)/2),b=b[g?"getLast":"getFirst"](function(a){return!(ba(a)|| +Y(a))});if(!b)return null;h(a,b)&&(b=a.line.wrap[g?"getPrevious":"getNext"](function(a){return!(ba(a)||Y(a))}));if(!p(b)||v(b)||!t(a,b))return null;r(a,b);return!g&&0<=b.size.top&&m(c.y,0,b.size.top+f)?(a=a.inInlineMode||0===d.scroll.y?Q:U,new e([null,b,E,L,a])):g&&b.size.bottom<=d.pane.height&&m(c.y,b.size.bottom-f,d.pane.height)?(a=a.inInlineMode||m(b.size.bottom,d.pane.height-f,d.pane.height)?O:U,new e([b,null,P,L,a])):null}function y(a){var b=a.mouse,d=a.view,h=a.triggerOffset,g=c(a);if(!g)return null; +r(a,g);var h=Math.min(h,0|g.size.outerHeight/2),k=[],l,n;if(m(b.y,g.size.top-1,g.size.top+h))n=!1;else if(m(b.y,g.size.bottom-h,g.size.bottom+1))n=!0;else return null;if(v(g)||q(a,g,n)||g.getParent().is(V))return null;var H=f(a,g,!n);if(H){if(H&&H.type==CKEDITOR.NODE_TEXT)return null;if(p(H)){if(v(H)||!t(a,H)||H.getParent().is(V))return null;k=[H,g][n?"reverse":"concat"]().concat([T,L])}}else g.equals(a.editable[n?"getLast":"getFirst"](a.isRelevant))?(x(a),n&&m(b.y,g.size.bottom-h,d.pane.height)&& +m(g.size.bottom,d.pane.height-h,d.pane.height)?l=O:m(b.y,0,g.size.top+h)&&(l=Q)):l=U,k=[null,g][n?"reverse":"concat"]().concat([n?P:E,L,l,g.equals(a.editable[n?"getLast":"getFirst"](a.isRelevant))?n?O:Q:U]);return 0 in k?new e(k):null}function C(a,b,c,d){for(var e=b.getDocumentPosition(),f={},h={},g={},k={},l=ca.length;l--;)f[ca[l]]=parseInt(b.getComputedStyle.call(b,"border-"+ca[l]+"-width"),10)||0,g[ca[l]]=parseInt(b.getComputedStyle.call(b,"padding-"+ca[l]),10)||0,h[ca[l]]=parseInt(b.getComputedStyle.call(b, +"margin-"+ca[l]),10)||0;c&&!d||B(a,d);k.top=e.y-(c?0:a.view.scroll.y);k.left=e.x-(c?0:a.view.scroll.x);k.outerWidth=b.$.offsetWidth;k.outerHeight=b.$.offsetHeight;k.height=k.outerHeight-(g.top+g.bottom+f.top+f.bottom);k.width=k.outerWidth-(g.left+g.right+f.left+f.right);k.bottom=k.top+k.outerHeight;k.right=k.left+k.outerWidth;a.inInlineMode&&(k.scroll={top:b.$.scrollTop,left:b.$.scrollLeft});return z({border:f,padding:g,margin:h,ignoreScroll:c},k,!0)}function r(a,b,c){if(!p(b))return b.size=null; +if(!b.size)b.size={};else if(b.size.ignoreScroll==c&&b.size.date>new Date-W)return null;return z(b.size,C(a,b,c),{date:+new Date},!0)}function x(a,b){a.view.editable=C(a,a.editable,b,!0)}function B(a,b){a.view||(a.view={});var c=a.view;if(!(!b&&c&&c.date>new Date-W)){var d=a.win,c=d.getScrollPosition(),d=d.getViewPaneSize();z(a.view,{scroll:{x:c.x,y:c.y,width:a.doc.$.documentElement.scrollWidth-d.width,height:a.doc.$.documentElement.scrollHeight-d.height},pane:{width:d.width,height:d.height,bottom:d.height+ +c.y},date:+new Date},!0)}}function A(a,b,c,d){for(var f=d,h=d,g=0,k=!1,l=!1,n=a.view.pane.height,m=a.mouse;m.y+g<n&&0<m.y-g;){k||(k=b(f,d));l||(l=b(h,d));!k&&0<m.y-g&&(f=c(a,{x:m.x,y:m.y-g}));!l&&m.y+g<n&&(h=c(a,{x:m.x,y:m.y+g}));if(k&&l)break;g+=2}return new e([f,h,null,null])}CKEDITOR.plugins.add("magicline",{init:function(a){var g=a.config,l=g.magicline_triggerOffset||30,m={editor:a,enterMode:g.enterMode,triggerOffset:l,holdDistance:0|l*(g.magicline_holdDistance||.5),boxColor:g.magicline_color|| +"#ff0000",rtl:"rtl"==g.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(g.magicline_tabuList||[]),triggers:g.magicline_everywhere?M:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},H,q,t;m.isRelevant=function(a){return p(a)&&!h(m,a)&&!v(a)};a.on("contentDom",function(){var l=a.editable(),p=a.document,r=a.window;z(m,{editable:l,inInlineMode:l.isInline(),doc:p,win:r,hotNode:null},!0);m.boundary=m.inInlineMode?m.editable:m.doc.getDocumentElement();l.is(I.$inline)||(m.inInlineMode&& +!u(l)&&l.setStyles({position:"relative",top:null,left:null}),k.call(this,m),B(m),l.attachListener(a,"beforeUndoImage",function(){m.line.detach()}),l.attachListener(a,"beforeGetData",function(){m.line.wrap.getParent()&&(m.line.detach(),a.once("getData",function(){m.line.attach()},null,null,1E3))},null,null,0),l.attachListener(m.inInlineMode?p:p.getWindow().getFrame(),"mouseout",function(b){if("wysiwyg"==a.mode)if(m.inInlineMode){var c=b.data.$.clientX;b=b.data.$.clientY;B(m);x(m,!0);var d=m.view.editable, +e=m.view.scroll;c>d.left-e.x&&c<d.right-e.x&&b>d.top-e.y&&b<d.bottom-e.y||(clearTimeout(t),t=null,m.line.detach())}else clearTimeout(t),t=null,m.line.detach()}),l.attachListener(l,"keyup",function(){m.hiddenMode=0}),l.attachListener(l,"keydown",function(b){if("wysiwyg"==a.mode)switch(b.data.getKeystroke()){case 2228240:case 16:m.hiddenMode=1,m.line.detach()}}),l.attachListener(m.inInlineMode?l:p,"mousemove",function(b){q=!0;if("wysiwyg"==a.mode&&!a.readOnly&&!t){var c={x:b.data.$.clientX,y:b.data.$.clientY}; +t=setTimeout(function(){m.mouse=c;t=m.trigger=null;B(m);q&&!m.hiddenMode&&a.focusManager.hasFocus&&!m.line.mouseNear()&&(m.element=da(m,!0))&&((m.trigger=w(m)||y(m)||ea(m))&&!n(m,m.trigger.upper||m.trigger.lower)?m.line.attach().place():(m.trigger=null,m.line.detach()),q=!1)},30)}}),l.attachListener(r,"scroll",function(){"wysiwyg"==a.mode&&(m.line.detach(),F.webkit&&(m.hiddenMode=1,clearTimeout(H),H=setTimeout(function(){m.mouseDown||(m.hiddenMode=0)},50)))}),l.attachListener(J?p:r,"mousedown",function(){"wysiwyg"== +a.mode&&(m.line.detach(),m.hiddenMode=1,m.mouseDown=1)}),l.attachListener(J?p:r,"mouseup",function(){m.hiddenMode=0;m.mouseDown=0}),a.addCommand("accessPreviousSpace",d(m)),a.addCommand("accessNextSpace",d(m,!0)),a.setKeystroke([[g.magicline_keystrokePrevious,"accessPreviousSpace"],[g.magicline_keystrokeNext,"accessNextSpace"]]),a.on("loadSnapshot",function(){var b,c,d,e;for(e in{p:1,br:1,div:1})for(b=a.document.getElementsByTag(e),d=b.count();d--;)if((c=b.getItem(d)).data("cke-magicline-hot")){m.hotNode= +c;m.lastCmdDirection="true"===c.data("cke-magicline-dir")?!0:!1;return}}),this.backdoor={accessFocusSpace:b,boxTrigger:e,isLine:h,getAscendantTrigger:c,getNonEmptyNeighbour:f,getSize:C,that:m,triggerEdge:y,triggerEditable:w,triggerExpand:ea})},this)}});var z=CKEDITOR.tools.extend,D=CKEDITOR.dom.element,G=D.createFromHtml,F=CKEDITOR.env,J=CKEDITOR.env.ie&&9>CKEDITOR.env.version,I=CKEDITOR.dtd,N={},E=128,P=64,T=32,L=16,Q=4,O=2,U=1,K=" ",V=I.$listItem,R=I.$tableContent,H=z({},I.$nonEditable,I.$empty), +M=I.$block,W=100,S="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",aa=S+"border-color:transparent;display:block;border-style:solid;",X="\x3cspan\x3e"+K+"\x3c/span\x3e";N[CKEDITOR.ENTER_BR]="br";N[CKEDITOR.ENTER_P]="p";N[CKEDITOR.ENTER_DIV]="div";e.prototype={set:function(a,b,c){this.properties=a+b+(c||U);return this},is:function(a){return(this.properties&a)==a}};var da=function(){function a(b,c){var d=b.$.elementFromPoint(c.x, +c.y);return d&&d.nodeType?new CKEDITOR.dom.element(d):null}return function(b,c,d){if(!b.mouse)return null;var e=b.doc,f=b.line.wrap;d=d||b.mouse;var g=a(e,d);c&&h(b,g)&&(f.hide(),g=a(e,d),f.show());return!g||g.type!=CKEDITOR.NODE_ELEMENT||!g.$||F.ie&&9>F.version&&!b.boundary.equals(g)&&!b.boundary.contains(g)?null:g}}(),ba=CKEDITOR.dom.walker.whitespaces(),Y=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),ea=function(){function b(d){var e=d.element,f,h,k;if(!p(e)||e.contains(d.editable)||e.isReadOnly())return null; +k=A(d,function(a,b){return!b.equals(a)},function(a,b){return da(a,!0,b)},e);f=k.upper;h=k.lower;if(a(d,f,h))return k.set(T,8);if(f&&e.contains(f))for(;!f.getParent().equals(e);)f=f.getParent();else f=e.getFirst(function(a){return c(d,a)});if(h&&e.contains(h))for(;!h.getParent().equals(e);)h=h.getParent();else h=e.getLast(function(a){return c(d,a)});if(!f||!h)return null;r(d,f);r(d,h);if(!m(d.mouse.y,f.size.top,h.size.bottom))return null;for(var e=Number.MAX_VALUE,l,n,H,q;h&&!h.equals(f)&&(n=f.getNext(d.isRelevant));)l= +Math.abs(g(d,f,n)-d.mouse.y),l<e&&(e=l,H=f,q=n),f=n,r(d,f);if(!H||!q||!m(d.mouse.y,H.size.top,q.size.bottom))return null;k.upper=H;k.lower=q;return k.set(T,8)}function c(a,b){return!(b&&b.type==CKEDITOR.NODE_TEXT||Y(b)||v(b)||h(a,b)||b.type==CKEDITOR.NODE_ELEMENT&&b.$&&b.is("br"))}return function(c){var d=b(c),e;if(e=d){e=d.upper;var f=d.lower;e=!e||!f||v(f)||v(e)||f.equals(e)||e.equals(f)||f.contains(e)||e.contains(f)?!1:t(c,e)&&t(c,f)&&a(c,e,f)?!0:!1}return e?d:null}}(),ca=["top","left","right", +"bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52,function(){function a(a){if(!a||a.type!=CKEDITOR.NODE_ELEMENT||"form"!=a.getName())return[];for(var c=[],e=["style","className"],b=0;b<e.length;b++){var d=a.$.elements.namedItem(e[b]);d&&(d=new CKEDITOR.dom.element(d),c.push([d,d.nextSibling]),d.remove())}return c}function e(a,c){if(a&&a.type==CKEDITOR.NODE_ELEMENT&&"form"==a.getName()&&0< +c.length)for(var e=c.length-1;0<=e;e--){var b=c[e][0],d=c[e][1];d?b.insertBefore(d):b.appendTo(a)}}function c(c,f){var g=a(c),b={},d=c.$;f||(b["class"]=d.className||"",d.className="");b.inline=d.style.cssText||"";f||(d.style.cssText="position: static; overflow: visible");e(g);return b}function g(c,f){var g=a(c),b=c.$;"class"in f&&(b.className=f["class"]);"inline"in f&&(b.style.cssText=f.inline);e(g)}function f(a){if(!a.editable().isInline()){var c=CKEDITOR.instances,e;for(e in c){var b=c[e];"wysiwyg"!= +b.mode||b.readOnly||(b=b.document.getBody(),b.setAttribute("contentEditable",!1),b.setAttribute("contentEditable",!0))}a.editable().hasFocus&&(a.toolbox.focus(),a.focus())}}CKEDITOR.plugins.add("maximize",{init:function(a){function e(){var b=d.getViewPaneSize();a.resize(b.width,b.height,null,!0)}if(a.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var k=a.lang,b=CKEDITOR.document,d=b.getWindow(),h,p,v,u=CKEDITOR.TRISTATE_OFF;a.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS}, +readOnly:1,editorFocus:!1,exec:function(){var t=a.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}),n=a.ui.space("contents");if("wysiwyg"==a.mode){var q=a.getSelection();h=q&&q.getRanges();p=d.getScrollPosition()}else{var w=a.editable().$;h=!CKEDITOR.env.ie&&[w.selectionStart,w.selectionEnd];p=[w.scrollLeft,w.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){d.on("resize",e);v=d.getScrollPosition();for(q=a.container;q=q.getParent();)q.setCustomData("maximize_saved_styles", +c(q)),q.setStyle("z-index",a.config.baseFloatZIndex-5);n.setCustomData("maximize_saved_styles",c(n,!0));t.setCustomData("maximize_saved_styles",c(t,!0));n={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};b.getDocumentElement().setStyles(n);!CKEDITOR.env.gecko&&b.getDocumentElement().setStyle("position","fixed");CKEDITOR.env.gecko&&CKEDITOR.env.quirks||b.getBody().setStyles(n);CKEDITOR.env.ie?setTimeout(function(){d.$.scrollTo(0,0)},0):d.$.scrollTo(0,0);t.setStyle("position",CKEDITOR.env.gecko&& +CKEDITOR.env.quirks?"fixed":"absolute");t.$.offsetLeft;t.setStyles({"z-index":a.config.baseFloatZIndex-5,left:"0px",top:"0px"});t.addClass("cke_maximized");e();n=t.getDocumentPosition();t.setStyles({left:-1*n.x+"px",top:-1*n.y+"px"});CKEDITOR.env.gecko&&f(a)}else if(this.state==CKEDITOR.TRISTATE_ON){d.removeListener("resize",e);for(var q=[n,t],y=0;y<q.length;y++)g(q[y],q[y].getCustomData("maximize_saved_styles")),q[y].removeCustomData("maximize_saved_styles");for(q=a.container;q=q.getParent();)g(q, +q.getCustomData("maximize_saved_styles")),q.removeCustomData("maximize_saved_styles");CKEDITOR.env.ie?setTimeout(function(){d.$.scrollTo(v.x,v.y)},0):d.$.scrollTo(v.x,v.y);t.removeClass("cke_maximized");CKEDITOR.env.webkit&&(t.setStyle("display","inline"),setTimeout(function(){t.setStyle("display","block")},0));a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:n.$.offsetHeight,outerWidth:a.container.$.offsetWidth})}this.toggleState();if(q=this.uiItems[0])n=this.state==CKEDITOR.TRISTATE_OFF? +k.maximize.maximize:k.maximize.minimize,q=CKEDITOR.document.getById(q._.id),q.getChild(1).setHtml(n),q.setAttribute("title",n),q.setAttribute("href",'javascript:void("'+n+'");');"wysiwyg"==a.mode?h?(CKEDITOR.env.gecko&&f(a),a.getSelection().selectRanges(h),(w=a.getSelection().getStartElement())&&w.scrollIntoView(!0)):d.$.scrollTo(p.x,p.y):(h&&(w.selectionStart=h[0],w.selectionEnd=h[1]),w.scrollLeft=p[0],w.scrollTop=p[1]);h=p=null;u=this.state;a.fire("maximize",this.state)},canUndo:!1});a.ui.addButton&& +a.ui.addButton("Maximize",{label:k.maximize.maximize,command:"maximize",toolbar:"tools,10"});a.on("mode",function(){var b=a.getCommand("maximize");b.setState(b.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:u)},null,null,100)}}})}(),function(){var a={canUndo:!1,async:!0,exec:function(e){e.getClipboardData({title:e.lang.pastetext.title},function(c){c&&e.fire("paste",{type:"text",dataValue:c.dataValue,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()});e.fire("afterCommandExec", +{name:"pastetext",command:a,returnValue:!!c})})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(e){e.addCommand("pastetext",a);e.ui.addButton&&e.ui.addButton("PasteText",{label:e.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(e.config.forcePasteAsPlainText)e.on("beforePaste",function(a){"html"!=a.data.type&&(a.data.type="text")});e.on("pasteState",function(a){e.getCommand("pastetext").setState(a.data)})}})}(),function(){function a(a,e,f){var m=CKEDITOR.cleanWord; +m?f():(a=CKEDITOR.getUrl(a.config.pasteFromWordCleanupFile||e+"filter/default.js"),CKEDITOR.scriptLoader.load(a,f,null,!0));return!m}function e(a){a.data.type="html"}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(c){var g=0,f=this.path;c.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(a){var c=this;g=1;a.once("beforePaste",e);a.getClipboardData({title:a.lang.pastefromword.title},function(e){e&&a.fire("paste",{type:"html",dataValue:e.dataValue,method:"paste", +dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()});a.fire("afterCommandExec",{name:"pastefromword",command:c,returnValue:!!e})})}});c.ui.addButton&&c.ui.addButton("PasteFromWord",{label:c.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});c.on("pasteState",function(a){c.getCommand("pastefromword").setState(a.data)});c.on("paste",function(e){var l=e.data,k=l.dataValue;if(k&&(g||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(k))){l.dontFilter=!0;var b= +a(c,f,function(){if(b)c.fire("paste",l);else if(!c.config.pasteFromWordPromptCleanup||g||confirm(c.lang.pastefromword.confirmCleanup))l.dataValue=CKEDITOR.cleanWord(k,c);g=0});b&&e.cancel()}},null,null,3)}})}(),CKEDITOR.plugins.add("removeformat",{init:function(a){a.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);a.ui.addButton&&a.ui.addButton("RemoveFormat",{label:a.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat= +{commands:{removeformat:{exec:function(a){for(var e=a._.removeFormatRegex||(a._.removeFormatRegex=new RegExp("^(?:"+a.config.removeFormatTags.replace(/,/g,"|")+")$","i")),c=a._.removeAttributes||(a._.removeAttributes=a.config.removeFormatAttributes.split(",")),g=CKEDITOR.plugins.removeformat.filter,f=a.getSelection().getRanges(),m=f.createIterator(),l=function(a){return a.type==CKEDITOR.NODE_ELEMENT},k;k=m.getNextRange();){k.collapsed||k.enlarge(CKEDITOR.ENLARGE_ELEMENT);var b=k.createBookmark(), +d=b.startNode,h=b.endNode,p=function(b){for(var c=a.elementPath(b),d=c.elements,f=1,h;(h=d[f])&&!h.equals(c.block)&&!h.equals(c.blockLimit);f++)e.test(h.getName())&&g(a,h)&&b.breakParent(h)};p(d);if(h)for(p(h),d=d.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);d&&!d.equals(h);)if(d.isReadOnly()){if(d.getPosition(h)&CKEDITOR.POSITION_CONTAINS)break;d=d.getNext(l)}else p=d.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),"img"==d.getName()&&d.data("cke-realelement")||!g(a,d)||(e.test(d.getName())?d.remove(1): +(d.removeAttributes(c),a.fire("removeFormatCleanup",d))),d=p;k.moveToBookmark(b)}a.forceNextSelectionCheck();a.getSelection().selectRanges(f)}}},filter:function(a,e){for(var c=a._.removeFormatFilters||[],g=0;g<c.length;g++)if(!1===c[g](e))return!1;return!0}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(a){this._.removeFormatFilters||(this._.removeFormatFilters=[]);this._.removeFormatFilters.push(a)},CKEDITOR.config.removeFormatTags="b,big,cite,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var", +CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign",function(){CKEDITOR.plugins.add("sourcearea",{init:function(e){function c(){var a=f&&this.equals(CKEDITOR.document.getActive());this.hide();this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+"px");this.show();a&&this.focus()}if(e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var g=CKEDITOR.plugins.sourcearea;e.addMode("source",function(f){var g=e.ui.space("contents").getDocument().createElement("textarea"); +g.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",e.config.sourceAreaTabSize||4)));g.setAttribute("dir","ltr");g.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu");e.ui.space("contents").append(g);g=e.editable(new a(e,g));g.setData(e.getData(1));CKEDITOR.env.ie&&(g.attachListener(e,"resize",c,g),g.attachListener(CKEDITOR.document.getWindow(), +"resize",c,g),CKEDITOR.tools.setTimeout(c,0,g));e.fire("ariaWidget",this);f()});e.addCommand("source",g.commands.source);e.ui.addButton&&e.ui.addButton("Source",{label:e.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});e.on("mode",function(){e.getCommand("source").setState("source"==e.mode?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var f=CKEDITOR.env.ie&&9==CKEDITOR.env.version}}});var a=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(a){this.setValue(a); +this.status="ready";this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(a){this[(a?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){a.baseProto.detach.call(this);this.clearCustomData();this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(a){"wysiwyg"==a.mode&&a.fire("saveSnapshot"); +a.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);a.setMode("source"==a.mode?"wysiwyg":"source")},canUndo:!1}}},CKEDITOR.plugins.add("specialchar",{availableLangs:{af:1,ar:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,en:1,"en-gb":1,eo:1,es:1,et:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,nb:1,nl:1,no:1,pl:1,pt:1,"pt-br":1,ru:1,si:1,sk:1,sl:1,sq:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},requires:"dialog",init:function(a){var e=this;CKEDITOR.dialog.add("specialchar", +this.path+"dialogs/specialchar.js");a.addCommand("specialchar",{exec:function(){var c=a.langCode,c=e.availableLangs[c]?c:e.availableLangs[c.replace(/-.*/,"")]?c.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e.path+"dialogs/lang/"+c+".js"),function(){CKEDITOR.tools.extend(a.lang.specialchar,e.langEntries[c]);a.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1});a.ui.addButton&&a.ui.addButton("SpecialChar",{label:a.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}), +CKEDITOR.config.specialChars="! \x26quot; # $ % \x26amp; ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; \x26lt; \x3d \x26gt; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ \x26euro; \x26lsquo; \x26rsquo; \x26ldquo; \x26rdquo; \x26ndash; \x26mdash; \x26iexcl; \x26cent; \x26pound; \x26curren; \x26yen; \x26brvbar; \x26sect; \x26uml; \x26copy; \x26ordf; \x26laquo; \x26not; \x26reg; \x26macr; \x26deg; \x26sup2; \x26sup3; \x26acute; \x26micro; \x26para; \x26middot; \x26cedil; \x26sup1; \x26ordm; \x26raquo; \x26frac14; \x26frac12; \x26frac34; \x26iquest; \x26Agrave; \x26Aacute; \x26Acirc; \x26Atilde; \x26Auml; \x26Aring; \x26AElig; \x26Ccedil; \x26Egrave; \x26Eacute; \x26Ecirc; \x26Euml; \x26Igrave; \x26Iacute; \x26Icirc; \x26Iuml; \x26ETH; \x26Ntilde; \x26Ograve; \x26Oacute; \x26Ocirc; \x26Otilde; \x26Ouml; \x26times; \x26Oslash; \x26Ugrave; \x26Uacute; \x26Ucirc; \x26Uuml; \x26Yacute; \x26THORN; \x26szlig; \x26agrave; \x26aacute; \x26acirc; \x26atilde; \x26auml; \x26aring; \x26aelig; \x26ccedil; \x26egrave; \x26eacute; \x26ecirc; \x26euml; \x26igrave; \x26iacute; \x26icirc; \x26iuml; \x26eth; \x26ntilde; \x26ograve; \x26oacute; \x26ocirc; \x26otilde; \x26ouml; \x26divide; \x26oslash; \x26ugrave; \x26uacute; \x26ucirc; \x26uuml; \x26yacute; \x26thorn; \x26yuml; \x26OElig; \x26oelig; \x26#372; \x26#374 \x26#373 \x26#375; \x26sbquo; \x26#8219; \x26bdquo; \x26hellip; \x26trade; \x26#9658; \x26bull; \x26rarr; \x26rArr; \x26hArr; \x26diams; \x26asymp;".split(" "), +function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(a){var e=a.config,c=a.lang.stylescombo,g={},f=[],m=[];a.on("stylesSet",function(c){if(c=c.data.styles){for(var k,b,d,h=0,p=c.length;h<p;h++)(k=c[h],a.blockless&&k.element in CKEDITOR.dtd.$block||(b=k.name,k=new CKEDITOR.style(k),a.filter.customConfig&&!a.filter.check(k)))||(k._name=b,k._.enterMode=e.enterMode,k._.type=d=k.assignedTo||k.type,k._.weight=h+1E3*(d==CKEDITOR.STYLE_OBJECT?1:d==CKEDITOR.STYLE_BLOCK?2:3),g[b]= +k,f.push(k),m.push(k));f.sort(function(a,b){return a._.weight-b._.weight})}});a.ui.addRichCombo("Styles",{label:c.label,title:c.panelTitle,toolbar:"styles,10",allowedContent:m,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(e.contentsCss),multiSelect:!0,attributes:{"aria-label":c.panelTitle}},init:function(){var a,e,b,d,h,g;h=0;for(g=f.length;h<g;h++)a=f[h],e=a._name,d=a._.type,d!=b&&(this.startGroup(c["panelTitle"+String(d)]),b=d),this.add(e,a.type==CKEDITOR.STYLE_OBJECT?e:a.buildPreview(),e); +this.commit()},onClick:function(c){a.focus();a.fire("saveSnapshot");c=g[c];var e=a.elementPath();a[c.checkActive(e,a)?"removeStyle":"applyStyle"](c);a.fire("saveSnapshot")},onRender:function(){a.on("selectionChange",function(c){var e=this.getValue();c=c.data.path.elements;for(var b=0,d=c.length,f;b<d;b++){f=c[b];for(var m in g)if(g[m].checkElementRemovable(f,!0,a)){m!=e&&this.setValue(m);return}}this.setValue("")},this)},onOpen:function(){var e=a.getSelection().getSelectedElement(),e=a.elementPath(e), +f=[0,0,0,0];this.showAll();this.unmarkAll();for(var b in g){var d=g[b],h=d._.type;d.checkApplicable(e,a,a.activeFilter)?f[h]++:this.hideItem(b);d.checkActive(e,a)&&this.mark(b)}f[CKEDITOR.STYLE_BLOCK]||this.hideGroup(c["panelTitle"+String(CKEDITOR.STYLE_BLOCK)]);f[CKEDITOR.STYLE_INLINE]||this.hideGroup(c["panelTitle"+String(CKEDITOR.STYLE_INLINE)]);f[CKEDITOR.STYLE_OBJECT]||this.hideGroup(c["panelTitle"+String(CKEDITOR.STYLE_OBJECT)])},refresh:function(){var c=a.elementPath();if(c){for(var e in g)if(g[e].checkApplicable(c, +a,a.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){g={};f=[]}})}})}(),function(){function a(a){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(c){if(c.editable().hasFocus){var e=c.getSelection(),g;if(g=(new CKEDITOR.dom.elementPath(e.getCommonAncestor(),e.root)).contains({td:1,th:1},1)){var e=c.createRange(),b=CKEDITOR.tools.tryThese(function(){var b=g.getParent().$.cells[g.$.cellIndex+(a?-1:1)];b.parentNode.parentNode;return b},function(){var b= +g.getParent(),b=b.getAscendant("table").$.rows[b.$.rowIndex+(a?-1:1)];return b.cells[a?b.cells.length-1:0]});if(b||a)if(b)b=new CKEDITOR.dom.element(b),e.moveToElementEditStart(b),e.checkStartOfBlock()&&e.checkEndOfBlock()||e.selectNodeContents(b);else return!0;else{for(var d=g.getAscendant("table").$,b=g.getParent().$.cells,d=new CKEDITOR.dom.element(d.insertRow(-1),c.document),h=0,p=b.length;h<p;h++)d.append((new CKEDITOR.dom.element(b[h],c.document)).clone(!1,!1)).appendBogus();e.moveToElementEditStart(d)}e.select(!0); +return!0}}return!1}}}var e={editorFocus:!1,modes:{wysiwyg:1,source:1}},c={exec:function(a){a.container.focusNext(!0,a.tabIndex)}},g={exec:function(a){a.container.focusPrevious(!0,a.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(f){for(var m=!1!==f.config.enableTabKeyTools,l=f.config.tabSpaces||0,k="";l--;)k+=" ";if(k)f.on("key",function(a){9==a.data.keyCode&&(f.insertText(k),a.cancel())});if(m)f.on("key",function(a){(9==a.data.keyCode&&f.execCommand("selectNextCell")||a.data.keyCode==CKEDITOR.SHIFT+ +9&&f.execCommand("selectPreviousCell"))&&a.cancel()});f.addCommand("blur",CKEDITOR.tools.extend(c,e));f.addCommand("blurBack",CKEDITOR.tools.extend(g,e));f.addCommand("selectNextCell",a());f.addCommand("selectPreviousCell",a(!0))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(a,e){var c=void 0===e?this.getTabIndex():e,g,f,m,l,k,b;if(0>=c)for(k=this.getNextSourceNode(a,CKEDITOR.NODE_ELEMENT);k;){if(k.isVisible()&&0===k.getTabIndex()){m=k;break}k=k.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(k= +this.getDocument().getBody().getFirst();k=k.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!g)if(!f&&k.equals(this)){if(f=!0,a){if(!(k=k.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;g=1}}else f&&!this.contains(k)&&(g=1);if(k.isVisible()&&!(0>(b=k.getTabIndex()))){if(g&&b==c){m=k;break}b>c&&(!m||!l||b<l)?(m=k,l=b):m||0!==b||(m=k,l=b)}}m&&m.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(a,e){for(var c=void 0===e?this.getTabIndex():e,g,f,m,l=0,k,b=this.getDocument().getBody().getLast();b= +b.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!g)if(!f&&b.equals(this)){if(f=!0,a){if(!(b=b.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;g=1}}else f&&!this.contains(b)&&(g=1);if(b.isVisible()&&!(0>(k=b.getTabIndex())))if(0>=c){if(g&&0===k){m=b;break}k>l&&(m=b,l=k)}else{if(g&&k==c){m=b;break}k<c&&(!m||k>l)&&(m=b,l=k)}}m&&m.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(a){function e(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a, +c){this.setState(c.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!a.blockless){var c=a.lang.table;a.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];"+(a.plugins.dialogadvtab?"table"+a.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"]]})); +a.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",e()));a.addCommand("tableDelete",e({exec:function(a){var c=a.elementPath().contains("table",1);if(c){var e=c.getParent(),l=a.editable();1!=e.getChildCount()||e.is("td","th")||e.equals(l)||(c=e);a=a.createRange();a.moveToPosition(c,CKEDITOR.POSITION_BEFORE_START);c.remove();a.select()}}}));a.ui.addButton&&a.ui.addButton("Table",{label:c.toolbar,command:"table",toolbar:"insert,30"});CKEDITOR.dialog.add("table",this.path+"dialogs/table.js"); +CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");a.addMenuItems&&a.addMenuItems({table:{label:c.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:c.deleteTable,command:"tableDelete",group:"table",order:1}});a.on("doubleclick",function(a){a.data.element.is("table")&&(a.data.dialog="tableProperties")});a.contextMenu&&a.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function a(a){function b(a){0< +c.length||a.type!=CKEDITOR.NODE_ELEMENT||!v.test(a.getName())||a.getCustomData("selected_cell")||(CKEDITOR.dom.element.setMarker(d,a,"selected_cell",!0),c.push(a))}a=a.getRanges();for(var c=[],d={},e=0;e<a.length;e++){var f=a[e];if(f.collapsed)f=f.getCommonAncestor(),(f=f.getAscendant("td",!0)||f.getAscendant("th",!0))&&c.push(f);else{var f=new CKEDITOR.dom.walker(f),h;for(f.guard=b;h=f.next();)h.type==CKEDITOR.NODE_ELEMENT&&h.is(CKEDITOR.dtd.table)||(h=h.getAscendant("td",!0)||h.getAscendant("th", +!0))&&!h.getCustomData("selected_cell")&&(CKEDITOR.dom.element.setMarker(d,h,"selected_cell",!0),c.push(h))}}CKEDITOR.dom.element.clearAllMarkers(d);return c}function e(b,c){for(var d=a(b),e=d[0],f=e.getAscendant("table"),e=e.getDocument(),h=d[0].getParent(),g=h.$.rowIndex,d=d[d.length-1],k=d.getParent().$.rowIndex+d.$.rowSpan-1,d=new CKEDITOR.dom.element(f.$.rows[k]),g=c?g:k,h=c?h:d,d=CKEDITOR.tools.buildTableMap(f),f=d[g],g=c?d[g-1]:d[g+1],d=d[0].length,e=e.createElement("tr"),k=0;f[k]&&k<d;k++){var l; +1<f[k].rowSpan&&g&&f[k]==g[k]?(l=f[k],l.rowSpan+=1):(l=(new CKEDITOR.dom.element(f[k])).clone(),l.removeAttribute("rowSpan"),l.appendBogus(),e.append(l),l=l.$);k+=l.colSpan-1}c?e.insertBefore(h):e.insertAfter(h)}function c(b){if(b instanceof CKEDITOR.dom.selection){var d=a(b),e=d[0].getAscendant("table"),f=CKEDITOR.tools.buildTableMap(e);b=d[0].getParent().$.rowIndex;for(var d=d[d.length-1],h=d.getParent().$.rowIndex+d.$.rowSpan-1,d=[],g=b;g<=h;g++){for(var k=f[g],l=new CKEDITOR.dom.element(e.$.rows[g]), +m=0;m<k.length;m++){var p=new CKEDITOR.dom.element(k[m]),v=p.getParent().$.rowIndex;1==p.$.rowSpan?p.remove():(--p.$.rowSpan,v==g&&(v=f[g+1],v[m-1]?p.insertAfter(new CKEDITOR.dom.element(v[m-1])):(new CKEDITOR.dom.element(e.$.rows[g+1])).append(p,1)));m+=p.$.colSpan-1}d.push(l)}f=e.$.rows;e=new CKEDITOR.dom.element(f[h+1]||(0<b?f[b-1]:null)||e.$.parentNode);for(g=d.length;0<=g;g--)c(d[g]);return e}b instanceof CKEDITOR.dom.element&&(e=b.getAscendant("table"),1==e.$.rows.length?e.remove():b.remove()); +return null}function g(a,b){for(var c=b?Infinity:0,d=0;d<a.length;d++){var e;e=a[d];for(var f=b,h=e.getParent().$.cells,g=0,k=0;k<h.length;k++){var l=h[k],g=g+(f?1:l.colSpan);if(l==e.$)break}e=g-1;if(b?e<c:e>c)c=e}return c}function f(b,c){for(var d=a(b),e=d[0].getAscendant("table"),f=g(d,1),d=g(d),f=c?f:d,h=CKEDITOR.tools.buildTableMap(e),e=[],d=[],k=h.length,l=0;l<k;l++)e.push(h[l][f]),d.push(c?h[l][f-1]:h[l][f+1]);for(l=0;l<k;l++)e[l]&&(1<e[l].colSpan&&d[l]==e[l]?(f=e[l],f.colSpan+=1):(f=(new CKEDITOR.dom.element(e[l])).clone(), +f.removeAttribute("colSpan"),f.appendBogus(),f[c?"insertBefore":"insertAfter"].call(f,new CKEDITOR.dom.element(e[l])),f=f.$),l+=f.rowSpan-1)}function m(a,b){var c=a.getStartElement();if(c=c.getAscendant("td",1)||c.getAscendant("th",1)){var d=c.clone();d.appendBogus();b?d.insertBefore(c):d.insertAfter(c)}}function l(b){if(b instanceof CKEDITOR.dom.selection){b=a(b);var c=b[0]&&b[0].getAscendant("table"),d;a:{var e=0;d=b.length-1;for(var f={},h,g;h=b[e++];)CKEDITOR.dom.element.setMarker(f,h,"delete_cell", +!0);for(e=0;h=b[e++];)if((g=h.getPrevious())&&!g.getCustomData("delete_cell")||(g=h.getNext())&&!g.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(f);d=g;break a}CKEDITOR.dom.element.clearAllMarkers(f);g=b[0].getParent();(g=g.getPrevious())?d=g.getLast():(g=b[d].getParent(),d=(g=g.getNext())?g.getChild(0):null)}for(g=b.length-1;0<=g;g--)l(b[g]);d?k(d,!0):c&&c.remove()}else b instanceof CKEDITOR.dom.element&&(c=b.getParent(),1==c.getChildCount()?c.remove():b.remove())}function k(a, +b){var c=a.getDocument(),d=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(d.focus(),c.focus());c=new CKEDITOR.dom.range(c);c["moveToElementEdit"+(b?"End":"Start")](a)||(c.selectNodeContents(a),c.collapse(b?!1:!0));c.select(!0)}function b(a,b,c){a=a[b];if("undefined"==typeof c)return a;for(b=0;a&&b<a.length;b++){if(c.is&&a[b]==c.$)return b;if(b==c)return new CKEDITOR.dom.element(a[b])}return c.is?-1:null}function d(c,d,e){var f=a(c),h;if((d?1!=f.length:2>f.length)||(h=c.getCommonAncestor())&& +h.type==CKEDITOR.NODE_ELEMENT&&h.is("table"))return!1;var g;c=f[0];h=c.getAscendant("table");var k=CKEDITOR.tools.buildTableMap(h),l=k.length,m=k[0].length,p=c.getParent().$.rowIndex,v=b(k,p,c);if(d){var z;try{var D=parseInt(c.getAttribute("rowspan"),10)||1;g=parseInt(c.getAttribute("colspan"),10)||1;z=k["up"==d?p-D:"down"==d?p+D:p]["left"==d?v-g:"right"==d?v+g:v]}catch(G){return!1}if(!z||c.$==z)return!1;f["up"==d||"left"==d?"unshift":"push"](new CKEDITOR.dom.element(z))}d=c.getDocument();var F=p, +D=z=0,J=!e&&new CKEDITOR.dom.documentFragment(d),I=0;for(d=0;d<f.length;d++){g=f[d];var N=g.getParent(),E=g.getFirst(),P=g.$.colSpan,T=g.$.rowSpan,N=N.$.rowIndex,L=b(k,N,g),I=I+P*T,D=Math.max(D,L-v+P);z=Math.max(z,N-p+T);e||(P=g,(T=P.getBogus())&&T.remove(),P.trim(),g.getChildren().count()&&(N==F||!E||E.isBlockBoundary&&E.isBlockBoundary({br:1})||(F=J.getLast(CKEDITOR.dom.walker.whitespaces(!0)),!F||F.is&&F.is("br")||J.append("br")),g.moveChildren(J)),d?g.remove():g.setHtml(""));F=N}if(e)return z* +D==I;J.moveChildren(c);c.appendBogus();D>=m?c.removeAttribute("rowSpan"):c.$.rowSpan=z;z>=l?c.removeAttribute("colSpan"):c.$.colSpan=D;e=new CKEDITOR.dom.nodeList(h.$.rows);f=e.count();for(d=f-1;0<=d;d--)h=e.getItem(d),h.$.cells.length||(h.remove(),f++);return c}function h(c,d){var e=a(c);if(1<e.length)return!1;if(d)return!0;var e=e[0],f=e.getParent(),h=f.getAscendant("table"),g=CKEDITOR.tools.buildTableMap(h),k=f.$.rowIndex,l=b(g,k,e),m=e.$.rowSpan,p;if(1<m){p=Math.ceil(m/2);for(var m=Math.floor(m/ +2),f=k+p,h=new CKEDITOR.dom.element(h.$.rows[f]),g=b(g,f),v,f=e.clone(),k=0;k<g.length;k++)if(v=g[k],v.parentNode==h.$&&k>l){f.insertBefore(new CKEDITOR.dom.element(v));break}else v=null;v||h.append(f)}else for(m=p=1,h=f.clone(),h.insertAfter(f),h.append(f=e.clone()),v=b(g,k),l=0;l<v.length;l++)v[l].rowSpan++;f.appendBogus();e.$.rowSpan=p;f.$.rowSpan=m;1==p&&e.removeAttribute("rowSpan");1==m&&f.removeAttribute("rowSpan");return f}function p(c,d){var e=a(c);if(1<e.length)return!1;if(d)return!0;var e= +e[0],f=e.getParent(),h=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(h),g=b(h,f.$.rowIndex,e),k=e.$.colSpan;if(1<k)f=Math.ceil(k/2),k=Math.floor(k/2);else{for(var k=f=1,l=[],m=0;m<h.length;m++){var p=h[m];l.push(p[g]);1<p[g].rowSpan&&(m+=p[g].rowSpan-1)}for(h=0;h<l.length;h++)l[h].colSpan++}h=e.clone();h.insertAfter(e);h.appendBogus();e.$.colSpan=f;h.$.colSpan=k;1==f&&e.removeAttribute("colSpan");1==k&&h.removeAttribute("colSpan");return h}var v=/^(?:td|th)$/;CKEDITOR.plugins.tabletools= +{requires:"table,dialog,contextmenu",init:function(b){function g(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function n(a,c){var d=b.addCommand(a,c);b.addFeature(d)}var q=b.lang.table;n("cellProperties",new CKEDITOR.dialogCommand("cellProperties",g({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]", +requiredContent:"table"})));CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js");n("rowDelete",g({requiredContent:"table",exec:function(a){a=a.getSelection();k(c(a))}}));n("rowInsertBefore",g({requiredContent:"table",exec:function(a){a=a.getSelection();e(a,!0)}}));n("rowInsertAfter",g({requiredContent:"table",exec:function(a){a=a.getSelection();e(a)}}));n("columnDelete",g({requiredContent:"table",exec:function(b){b=b.getSelection();b=a(b);var c=b[0],d=b[b.length-1];b=c.getAscendant("table"); +for(var e=CKEDITOR.tools.buildTableMap(b),f,h,g=[],l=0,m=e.length;l<m;l++)for(var n=0,p=e[l].length;n<p;n++)e[l][n]==c.$&&(f=n),e[l][n]==d.$&&(h=n);for(l=f;l<=h;l++)for(n=0;n<e.length;n++)d=e[n],c=new CKEDITOR.dom.element(b.$.rows[n]),d=new CKEDITOR.dom.element(d[l]),d.$&&(1==d.$.colSpan?d.remove():--d.$.colSpan,n+=d.$.rowSpan-1,c.$.cells.length||g.push(c));h=b.$.rows[0]&&b.$.rows[0].cells;f=new CKEDITOR.dom.element(h[f]||(f?h[f-1]:b.$.parentNode));g.length==m&&b.remove();f&&k(f,!0)}}));n("columnInsertBefore", +g({requiredContent:"table",exec:function(a){a=a.getSelection();f(a,!0)}}));n("columnInsertAfter",g({requiredContent:"table",exec:function(a){a=a.getSelection();f(a)}}));n("cellDelete",g({requiredContent:"table",exec:function(a){a=a.getSelection();l(a)}}));n("cellMerge",g({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(a){k(d(a.getSelection()),!0)}}));n("cellMergeRight",g({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){k(d(a.getSelection(), +"right"),!0)}}));n("cellMergeDown",g({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){k(d(a.getSelection(),"down"),!0)}}));n("cellVerticalSplit",g({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){k(p(a.getSelection()))}}));n("cellHorizontalSplit",g({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){k(h(a.getSelection()))}}));n("cellInsertBefore",g({requiredContent:"table",exec:function(a){a=a.getSelection();m(a,!0)}})); +n("cellInsertAfter",g({requiredContent:"table",exec:function(a){a=a.getSelection();m(a)}}));b.addMenuItems&&b.addMenuItems({tablecell:{label:q.cell.menu,group:"tablecell",order:1,getItems:function(){var c=b.getSelection(),e=a(c);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:d(c,null,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:d(c,"right",!0)?CKEDITOR.TRISTATE_OFF: +CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:d(c,"down",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:p(c,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:h(c,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:0<e.length?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:q.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:q.cell.insertAfter, +group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:q.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:q.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:q.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:q.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:q.cell.splitHorizontal,group:"tablecell", +command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:q.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:q.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:q.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:q.row.insertBefore, +group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:q.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:q.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:q.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:q.column.insertBefore, +group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:q.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:q.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}});b.contextMenu&&b.contextMenu.addListener(function(a,b,c){return(a=c.contains({td:1,th:1},1))&&!a.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getSelectedCells:a}; +CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(a){a=a.$.rows;for(var e=-1,c=[],g=0;g<a.length;g++){e++;!c[e]&&(c[e]=[]);for(var f=-1,m=0;m<a[g].cells.length;m++){var l=a[g].cells[m];for(f++;c[e][f];)f++;for(var k=isNaN(l.colSpan)?1:l.colSpan,l=isNaN(l.rowSpan)?1:l.rowSpan,b=0;b<l;b++){c[e+b]||(c[e+b]=[]);for(var d=0;d<k;d++)c[e+b][f+d]=a[g].cells[m]}f+=k-1}}return c},"use strict",function(){var a=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+ +CKEDITOR.SHIFT+90],e={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(e){function b(a){f.enabled&&!1!==a.data.command.canUndo&&f.save()}function d(){f.enabled=e.readOnly?!1:"wysiwyg"==e.mode;f.onChange()}var f=e.undoManager=new c(e),g=f.editingHandler=new m(f),l=e.addCommand("undo",{exec:function(){f.undo()&&(e.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),u=e.addCommand("redo",{exec:function(){f.redo()&&(e.selectionChange(),this.fire("afterRedo"))},startDisabled:!0, +canUndo:!1});e.setKeystroke([[a[0],"undo"],[a[1],"redo"],[a[2],"redo"]]);f.onChange=function(){l.setState(f.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);u.setState(f.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};e.on("beforeCommandExec",b);e.on("afterCommandExec",b);e.on("saveSnapshot",function(a){f.save(a.data&&a.data.contentOnly)});e.on("contentDom",g.attachListeners,g);e.on("instanceReady",function(){e.fire("saveSnapshot")});e.on("beforeModeUnload",function(){"wysiwyg"== +e.mode&&f.save(!0)});e.on("mode",d);e.on("readOnly",d);e.ui.addButton&&(e.ui.addButton("Undo",{label:e.lang.undo.undo,command:"undo",toolbar:"undo,10"}),e.ui.addButton("Redo",{label:e.lang.undo.redo,command:"redo",toolbar:"undo,20"}));e.resetUndo=function(){f.reset();e.fire("saveSnapshot")};e.on("updateSnapshot",function(){f.currentImage&&f.update()});e.on("lockSnapshot",function(a){a=a.data;f.lock(a&&a.dontUpdate,a&&a.forceUpdate)});e.on("unlockSnapshot",f.unlock,f)}});CKEDITOR.plugins.undo={};var c= +CKEDITOR.plugins.undo.UndoManager=function(a){this.strokesRecorded=[0,0];this.locked=null;this.previousKeyGroup=-1;this.limit=a.config.undoStackSize||20;this.strokesLimit=25;this.editor=a;this.reset()};c.prototype={type:function(a,b){var d=c.getKeyGroup(a),e=this.strokesRecorded[d]+1;b=b||e>=this.strokesLimit;this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange());b?(e=0,this.editor.fire("saveSnapshot")):this.editor.fire("change");this.strokesRecorded[d]=e;this.previousKeyGroup= +d},keyGroupChanged:function(a){return c.getKeyGroup(a)!=this.previousKeyGroup},reset:function(){this.snapshots=[];this.index=-1;this.currentImage=null;this.hasRedo=this.hasUndo=!1;this.locked=null;this.resetType()},resetType:function(){this.strokesRecorded=[0,0];this.typing=!1;this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(!0);this.hasRedo=!!this.getNextImage(!1);this.resetType();this.onChange()},save:function(a,b,c){var e=this.editor;if(this.locked||"ready"!=e.status|| +"wysiwyg"!=e.mode)return!1;var f=e.editable();if(!f||"ready"!=f.status)return!1;f=this.snapshots;b||(b=new g(e));if(!1===b.contents)return!1;if(this.currentImage)if(b.equalsContent(this.currentImage)){if(a||b.equalsSelection(this.currentImage))return!1}else!1!==c&&e.fire("change");f.splice(this.index+1,f.length-this.index-1);f.length==this.limit&&f.shift();this.index=f.push(b)-1;this.currentImage=b;!1!==c&&this.refreshState();return!0},restoreImage:function(a){var b=this.editor,c;a.bookmarks&&(b.focus(), +c=b.getSelection());this.locked={level:999};this.editor.loadSnapshot(a.contents);a.bookmarks?c.selectBookmarks(a.bookmarks):CKEDITOR.env.ie&&(c=this.editor.document.getBody().$.createTextRange(),c.collapse(!0),c.select());this.locked=null;this.index=a.index;this.currentImage=this.snapshots[this.index];this.update();this.refreshState();b.fire("change")},getNextImage:function(a){var b=this.snapshots,c=this.currentImage,e;if(c)if(a)for(e=this.index-1;0<=e;e--){if(a=b[e],!c.equalsContent(a))return a.index= +e,a}else for(e=this.index+1;e<b.length;e++)if(a=b[e],!c.equalsContent(a))return a.index=e,a;return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(!0);var a=this.getNextImage(!0);if(a)return this.restoreImage(a),!0}return!1},redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var a=this.getNextImage(!1);if(a)return this.restoreImage(a),!0}return!1},update:function(a){if(!this.locked){a|| +(a=new g(this.editor));for(var b=this.index,c=this.snapshots;0<b&&this.currentImage.equalsContent(c[b-1]);)--b;c.splice(b,this.index-b+1,a);this.index=b;this.currentImage=a}},updateSelection:function(a){if(!this.snapshots.length)return!1;var b=this.snapshots,c=b[b.length-1];return c.equalsContent(a)&&!c.equalsSelection(a)?(this.currentImage=b[b.length-1]=a,!0):!1},lock:function(a,b){if(this.locked)this.locked.level++;else if(a)this.locked={level:1};else{var c=null;if(b)c=!0;else{var e=new g(this.editor, +!0);this.currentImage&&this.currentImage.equalsContent(e)&&(c=e)}this.locked={update:c,level:1}}},unlock:function(){if(this.locked&&!--this.locked.level){var a=this.locked.update;this.locked=null;if(!0===a)this.update();else if(a){var b=new g(this.editor,!0);a.equalsContent(b)||this.update()}}}};c.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1};c.keyGroups={PRINTABLE:0,FUNCTIONAL:1};c.isNavigationKey=function(a){return!!c.navigationKeyCodes[a]};c.getKeyGroup=function(a){var b=c.keyGroups; +return e[a]?b.FUNCTIONAL:b.PRINTABLE};c.getOppositeKeyGroup=function(a){var b=c.keyGroups;return a==b.FUNCTIONAL?b.PRINTABLE:b.FUNCTIONAL};c.ieFunctionalKeysBug=function(a){return CKEDITOR.env.ie&&c.getKeyGroup(a)==c.keyGroups.FUNCTIONAL};var g=CKEDITOR.plugins.undo.Image=function(a,b){this.editor=a;a.fire("beforeUndoImage");var c=a.getSnapshot();CKEDITOR.env.ie&&c&&(c=c.replace(/\s+data-cke-expando=".*?"/g,""));this.contents=c;b||(this.bookmarks=(c=c&&a.getSelection())&&c.createBookmarks2(!0));a.fire("afterUndoImage")}, +f=/\b(?:href|src|name)="[^"]*?"/gi;g.prototype={equalsContent:function(a){var b=this.contents;a=a.contents;CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(b=b.replace(f,""),a=a.replace(f,""));return b!=a?!1:!0},equalsSelection:function(a){var b=this.bookmarks;a=a.bookmarks;if(b||a){if(!b||!a||b.length!=a.length)return!1;for(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!1}}return!0}};var m=CKEDITOR.plugins.undo.NativeEditingHandler=function(a){this.undoManager=a;this.ignoreInputEvent=!1;this.keyEventsStack=new l;this.lastKeydownImage=null};m.prototype={onKeydown:function(e){var b=e.data.getKey();if(229!==b)if(-1<CKEDITOR.tools.indexOf(a,e.data.getKeystroke()))e.data.preventDefault();else if(this.keyEventsStack.cleanUp(e),e=this.undoManager,this.keyEventsStack.getLast(b)||this.keyEventsStack.push(b),this.lastKeydownImage=new g(e.editor),c.isNavigationKey(b)|| +this.undoManager.keyGroupChanged(b))if(e.strokesRecorded[0]||e.strokesRecorded[1])e.save(!1,this.lastKeydownImage,!1),e.resetType()},onInput:function(){if(this.ignoreInputEvent)this.ignoreInputEvent=!1;else{var a=this.keyEventsStack.getLast();a||(a=this.keyEventsStack.push(0));this.keyEventsStack.increment(a.keyCode);this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit&&(this.undoManager.type(a.keyCode,!0),this.keyEventsStack.resetInputs())}},onKeyup:function(a){var b=this.undoManager; +a=a.data.getKey();var d=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(a);if(!(c.ieFunctionalKeysBug(a)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new g(b.editor,!0))))if(0<d)b.type(a);else if(c.isNavigationKey(a))this.onNavigationKey(!0)},onNavigationKey:function(a){var b=this.undoManager;!a&&b.save(!0,null,!1)||b.updateSelection(new g(b.editor));b.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=!0},attachListeners:function(){var a=this.undoManager.editor, +b=a.editable(),d=this;b.attachListener(b,"keydown",function(a){d.onKeydown(a);if(c.ieFunctionalKeysBug(a.data.getKey()))d.onInput()},null,null,999);b.attachListener(b,CKEDITOR.env.ie?"keypress":"input",d.onInput,d,null,999);b.attachListener(b,"keyup",d.onKeyup,d,null,999);b.attachListener(b,"paste",d.ignoreInputEventListener,d,null,999);b.attachListener(b,"drop",d.ignoreInputEventListener,d,null,999);b.attachListener(b.isInline()?b:a.document.getDocumentElement(),"click",function(){d.onNavigationKey()}, +null,null,999);b.attachListener(this.undoManager.editor,"blur",function(){d.keyEventsStack.remove(9)},null,null,999)}};var l=CKEDITOR.plugins.undo.KeyEventsStack=function(){this.stack=[]};l.prototype={push:function(a){a=this.stack.push({keyCode:a,inputs:0});return this.stack[a-1]},getLastIndex:function(a){if("number"!=typeof a)return this.stack.length-1;for(var b=this.stack.length;b--;)if(this.stack[b].keyCode==a)return b;return-1},getLast:function(a){a=this.getLastIndex(a);return-1!=a?this.stack[a]: +null},increment:function(a){this.getLast(a).inputs++},remove:function(a){a=this.getLastIndex(a);-1!=a&&this.stack.splice(a,1)},resetInputs:function(a){if("number"==typeof a)this.getLast(a).inputs=0;else for(a=this.stack.length;a--;)this.stack[a].inputs=0},getTotalInputs:function(){for(var a=this.stack.length,b=0;a--;)b+=this.stack[a].inputs;return b},cleanUp:function(a){a=a.data.$;a.ctrlKey||a.metaKey||this.remove(17);a.shiftKey||this.remove(16);a.altKey||this.remove(18)}}}(),function(){function a(a, +c){c=void 0===c||c;var e;if(c)e=a.getComputedStyle("text-align");else{for(;!a.hasAttribute||!a.hasAttribute("align")&&!a.getStyle("text-align");){e=a.getParent();if(!e)break;a=e}e=a.getStyle("text-align")||a.getAttribute("align")||""}e&&(e=e.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!e&&c&&(e="rtl"==a.getComputedStyle("direction")?"right":"left");return e}function e(a,c,e){this.editor=a;this.name=c;this.value=e;this.context="p";c=a.config.justifyClasses;var l=a.config.enterMode==CKEDITOR.ENTER_P? +"p":"div";if(c){switch(e){case "left":this.cssClassName=c[0];break;case "center":this.cssClassName=c[1];break;case "right":this.cssClassName=c[2];break;case "justify":this.cssClassName=c[3]}this.cssClassRegex=new RegExp("(?:^|\\s+)(?:"+c.join("|")+")(?\x3d$|\\s)");this.requiredContent=l+"("+this.cssClassName+")"}else this.requiredContent=l+"{text-align}";this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:!0,styles:this.cssClassName?null:"text-align",classes:this.cssClassName|| +null}};a.config.enterMode==CKEDITOR.ENTER_BR&&(this.allowedContent.div=!0)}function c(a){var c=a.editor,e=c.createRange();e.setStartBefore(a.data.node);e.setEndAfter(a.data.node);for(var l=new CKEDITOR.dom.walker(e),k;k=l.next();)if(k.type==CKEDITOR.NODE_ELEMENT)if(!k.equals(a.data.node)&&k.getDirection())e.setStartAfter(k),l=new CKEDITOR.dom.walker(e);else{var b=c.config.justifyClasses;b&&(k.hasClass(b[0])?(k.removeClass(b[0]),k.addClass(b[2])):k.hasClass(b[2])&&(k.removeClass(b[2]),k.addClass(b[0]))); +b=k.getStyle("text-align");"left"==b?k.setStyle("text-align","right"):"right"==b&&k.setStyle("text-align","left")}}e.prototype={exec:function(c){var e=c.getSelection(),m=c.config.enterMode;if(e){for(var l=e.createBookmarks(),k=e.getRanges(),b=this.cssClassName,d,h,p=c.config.useComputedState,p=void 0===p||p,v=k.length-1;0<=v;v--)for(d=k[v].createIterator(),d.enlargeBr=m!=CKEDITOR.ENTER_BR;h=d.getNextParagraph(m==CKEDITOR.ENTER_P?"p":"div");)if(!h.isReadOnly()){h.removeAttribute("align");h.removeStyle("text-align"); +var u=b&&(h.$.className=CKEDITOR.tools.ltrim(h.$.className.replace(this.cssClassRegex,""))),t=this.state==CKEDITOR.TRISTATE_OFF&&(!p||a(h,!0)!=this.value);b?t?h.addClass(b):u||h.removeAttribute("class"):t&&h.setStyle("text-align",this.value)}c.focus();c.forceNextSelectionCheck();e.selectBookmarks(l)}},refresh:function(c,e){var m=e.block||e.blockLimit;this.setState("body"!=m.getName()&&a(m,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("justify", +{init:function(a){if(!a.blockless){var f=new e(a,"justifyleft","left"),m=new e(a,"justifycenter","center"),l=new e(a,"justifyright","right"),k=new e(a,"justifyblock","justify");a.addCommand("justifyleft",f);a.addCommand("justifycenter",m);a.addCommand("justifyright",l);a.addCommand("justifyblock",k);a.ui.addButton&&(a.ui.addButton("JustifyLeft",{label:a.lang.justify.left,command:"justifyleft",toolbar:"align,10"}),a.ui.addButton("JustifyCenter",{label:a.lang.justify.center,command:"justifycenter", +toolbar:"align,20"}),a.ui.addButton("JustifyRight",{label:a.lang.justify.right,command:"justifyright",toolbar:"align,30"}),a.ui.addButton("JustifyBlock",{label:a.lang.justify.block,command:"justifyblock",toolbar:"align,40"}));a.on("dirChanged",c)}}})}(),function(){var a={readOnly:1,preserveState:!0,editorFocus:!1,exec:function(a){this.toggleState();this.refresh(a)},refresh:function(a){if(a.document){var c=this.state!=CKEDITOR.TRISTATE_ON||a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!a.focusManager.hasFocus? +"removeClass":"attachClass";a.editable()[c]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",{onLoad:function(){var a="p div pre address blockquote h1 h2 h3 h4 h5 h6".split(" "),c,g,f,m,l=CKEDITOR.getUrl(this.path),k=!(CKEDITOR.env.ie&&9>CKEDITOR.env.version),b=k?":not([contenteditable\x3dfalse]):not(.cke_show_blocks_off)":"",d,h;for(c=g=f=m="";d=a.pop();)h=a.length?",":"",c+=".cke_show_blocks "+d+b+h,f+=".cke_show_blocks.cke_contents_ltr "+d+b+h,m+=".cke_show_blocks.cke_contents_rtl "+d+b+ +h,g+=".cke_show_blocks "+d+b+"{background-image:url("+CKEDITOR.getUrl(l+"images/block_"+d+".png")+")}";CKEDITOR.addCss((c+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(g,f+"{background-position:top left;padding-left:8px}",m+"{background-position:top right;padding-right:8px}"));k||CKEDITOR.addCss(".cke_show_blocks [contenteditable\x3dfalse],.cke_show_blocks .cke_show_blocks_off{border:none;padding-top:0;background-image:none}.cke_show_blocks.cke_contents_rtl [contenteditable\x3dfalse],.cke_show_blocks.cke_contents_rtl .cke_show_blocks_off{padding-right:0}.cke_show_blocks.cke_contents_ltr [contenteditable\x3dfalse],.cke_show_blocks.cke_contents_ltr .cke_show_blocks_off{padding-left:0}")}, +init:function(e){function c(){g.refresh(e)}if(!e.blockless){var g=e.addCommand("showblocks",a);g.canUndo=!1;e.config.startupOutlineBlocks&&g.setState(CKEDITOR.TRISTATE_ON);e.ui.addButton&&e.ui.addButton("ShowBlocks",{label:e.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"});e.on("mode",function(){g.state!=CKEDITOR.TRISTATE_DISABLED&&g.refresh(e)});e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(e.on("focus",c),e.on("blur",c));e.on("contentDom",function(){g.state!=CKEDITOR.TRISTATE_DISABLED&& +g.refresh(e)})}}})}(),function(){var a={preserveState:!0,editorFocus:!1,readOnly:1,exec:function(a){this.toggleState();this.refresh(a)},refresh:function(a){if(a.document){var c=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";a.editable()[c]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var a;a=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted","}"]:".%1 table.%2,;.%1 table.%2 \x3e tr \x3e td, .%1 table.%2 \x3e tr \x3e th,;.%1 table.%2 \x3e tbody \x3e tr \x3e td, .%1 table.%2 \x3e tbody \x3e tr \x3e th,;.%1 table.%2 \x3e thead \x3e tr \x3e td, .%1 table.%2 \x3e thead \x3e tr \x3e th,;.%1 table.%2 \x3e tfoot \x3e tr \x3e td, .%1 table.%2 \x3e tfoot \x3e tr \x3e th;{;border : #d3d3d3 1px dotted;}".split(";")).join("").replace(/%2/g, +"cke_show_border").replace(/%1/g,"cke_show_borders ");CKEDITOR.addCss(a)},init:function(e){var c=e.addCommand("showborders",a);c.canUndo=!1;!1!==e.config.startupShowBorders&&c.setState(CKEDITOR.TRISTATE_ON);e.on("mode",function(){c.state!=CKEDITOR.TRISTATE_DISABLED&&c.refresh(e)},null,null,100);e.on("contentDom",function(){c.state!=CKEDITOR.TRISTATE_DISABLED&&c.refresh(e)});e.on("removeFormatCleanup",function(a){a=a.data;e.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&a.is("table")&&(!a.hasAttribute("border")|| +0>=parseInt(a.getAttribute("border"),10))&&a.addClass("cke_show_border")})},afterInit:function(a){var c=a.dataProcessor;a=c&&c.dataFilter;c=c&&c.htmlFilter;a&&a.addRules({elements:{table:function(a){a=a.attributes;var c=a["class"],e=parseInt(a.border,10);e&&!(0>=e)||c&&-1!=c.indexOf("cke_show_border")||(a["class"]=(c||"")+" cke_show_border")}}});c&&c.addRules({elements:{table:function(a){a=a.attributes;var c=a["class"];c&&(a["class"]=c.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/, +""))}}})}});CKEDITOR.on("dialogDefinition",function(a){var c=a.data.name;if("table"==c||"tableProperties"==c)if(a=a.data.definition,c=a.getContents("info").get("txtBorder"),c.commit=CKEDITOR.tools.override(c.commit,function(a){return function(c,e){a.apply(this,arguments);var l=parseInt(this.getValue(),10);e[!l||0>=l?"addClass":"removeClass"]("cke_show_border")}}),a=(a=a.getContents("advanced"))&&a.get("advCSSClasses"))a.setup=CKEDITOR.tools.override(a.setup,function(a){return function(){a.apply(this, +arguments);this.setValue(this.getValue().replace(/cke_show_border/,""))}}),a.commit=CKEDITOR.tools.override(a.commit,function(a){return function(c,e){a.apply(this,arguments);parseInt(e.getAttribute("border"),10)||e.addClass("cke_show_border")}})})}(),function(){function a(a){return CKEDITOR.env.ie?a.$.clientWidth:parseInt(a.getComputedStyle("width"),10)}function e(a,c){var e=a.getComputedStyle("border-"+c+"-width"),f={thin:"0px",medium:"1px",thick:"2px"};0>e.indexOf("px")&&(e=e in f&&"none"!=a.getComputedStyle("border-style")? +f[e]:0);return parseInt(e,10)}function c(a){var c=[],f=-1,g="rtl"==a.getComputedStyle("direction"),k;k=a.$.rows;for(var l=0,m,n,q,w=0,y=k.length;w<y;w++)q=k[w],m=q.cells.length,m>l&&(l=m,n=q);k=n;l=new CKEDITOR.dom.element(a.$.tBodies[0]);m=l.getDocumentPosition();n=0;for(q=k.cells.length;n<q;n++){var w=new CKEDITOR.dom.element(k.cells[n]),y=k.cells[n+1]&&new CKEDITOR.dom.element(k.cells[n+1]),f=f+(w.$.colSpan||1),C,r,x=w.getDocumentPosition().x;g?r=x+e(w,"left"):C=x+w.$.offsetWidth-e(w,"right"); +y?(x=y.getDocumentPosition().x,g?C=x+y.$.offsetWidth-e(y,"right"):r=x+e(y,"left")):(x=a.getDocumentPosition().x,g?C=x:r=x+a.$.offsetWidth);w=Math.max(r-C,3);c.push({table:a,index:f,x:C,y:m.y,width:w,height:l.$.offsetHeight,rtl:g})}return c}function g(a){(a.data||a).preventDefault()}function f(b){function c(){w=0;q.setOpacity(0);C&&f();var a=t.table;setTimeout(function(){a.removeCustomData("_cke_table_pillars")},0);n.removeListener("dragstart",g)}function f(){for(var c=t.rtl,d=c?x.length:r.length, +h=0,g=0;g<d;g++){var k=r[g],m=x[g],n=t.table;CKEDITOR.tools.setTimeout(function(a,e,f,g,k,m){a&&a.setStyle("width",l(Math.max(e+m,1)));f&&f.setStyle("width",l(Math.max(g-m,1)));k&&n.setStyle("width",l(k+m*(c?-1:1)));++h==d&&b.fire("saveSnapshot")},0,this,[k,k&&a(k),m,m&&a(m),(!k||!m)&&a(n)+e(n,"left")+e(n,"right"),C])}}function m(c){g(c);b.fire("saveSnapshot");c=t.index;for(var d=CKEDITOR.tools.buildTableMap(t.table),e=[],f=[],h=Number.MAX_VALUE,k=h,l=t.rtl,p=0,z=d.length;p<z;p++){var L=d[p],Q=L[c+ +(l?1:0)],L=L[c+(l?0:1)],Q=Q&&new CKEDITOR.dom.element(Q),L=L&&new CKEDITOR.dom.element(L);Q&&L&&Q.equals(L)||(Q&&(h=Math.min(h,a(Q))),L&&(k=Math.min(k,a(L))),e.push(Q),f.push(L))}r=e;x=f;B=t.x-h;A=t.x+k;q.setOpacity(.5);y=parseInt(q.getStyle("left"),10);C=0;w=1;q.on("mousemove",u);n.on("dragstart",g);n.on("mouseup",v,this)}function v(a){a.removeListener();c()}function u(a){z(a.data.getPageOffset().x)}var t,n,q,w,y,C,r,x,B,A;n=b.document;q=CKEDITOR.dom.element.createFromHtml('\x3cdiv data-cke-temp\x3d1 contenteditable\x3dfalse unselectable\x3don style\x3d"position:absolute;cursor:col-resize;filter:alpha(opacity\x3d0);opacity:0;padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"\x3e\x3c/div\x3e', +n);b.on("destroy",function(){q.remove()});k||n.getDocumentElement().append(q);this.attachTo=function(a){w||(k&&(n.getBody().append(q),C=0),t=a,q.setStyles({width:l(a.width),height:l(a.height),left:l(a.x),top:l(a.y)}),k&&q.setOpacity(.25),q.on("mousedown",m,this),n.getBody().setStyle("cursor","col-resize"),q.show())};var z=this.move=function(a){if(!t)return 0;if(!w&&(a<t.x||a>t.x+t.width))return t=null,w=C=0,n.removeListener("mouseup",v),q.removeListener("mousedown",m),q.removeListener("mousemove", +u),n.getBody().setStyle("cursor","auto"),k?q.remove():q.hide(),0;a-=Math.round(q.$.offsetWidth/2);if(w){if(a==B||a==A)return 1;a=Math.max(a,B);a=Math.min(a,A);C=a-y}q.setStyle("left",l(a));return 1}}function m(a){var c=a.data.getTarget();if("mouseout"==a.name){if(!c.is("table"))return;for(var e=new CKEDITOR.dom.element(a.data.$.relatedTarget||a.data.$.toElement);e&&e.$&&!e.equals(c)&&!e.is("body");)e=e.getParent();if(!e||e.equals(c))return}c.getAscendant("table",1).removeCustomData("_cke_table_pillars"); +a.removeListener()}var l=CKEDITOR.tools.cssLength,k=CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks);CKEDITOR.plugins.add("tableresize",{requires:"tabletools",init:function(a){a.on("contentDom",function(){var d,e=a.editable();e.attachListener(e.isInline()?e:a.document,"mousemove",function(e){e=e.data;var h=e.getTarget();if(h.type==CKEDITOR.NODE_ELEMENT){var k=e.getPageOffset().x;if(d&&d.move(k))g(e);else if(h.is("table")||h.getAscendant("tbody",1))if(h=h.getAscendant("table",1),a.editable().contains(h)){(e= +h.getCustomData("_cke_table_pillars"))||(h.setCustomData("_cke_table_pillars",e=c(h)),h.on("mouseout",m),h.on("mousedown",m));a:{for(var h=0,l=e.length;h<l;h++){var n=e[h];if(k>=n.x&&k<=n.x+n.width){k=n;break a}}k=null}k&&(!d&&(d=new f(a)),d.attachTo(k))}}})})}})}(),function(){function a(a,g,f){var m,l;if(f="string"==typeof f?CKEDITOR.document.getById(f):new CKEDITOR.dom.element(f))if(m=a.fire("uiSpace",{space:g,html:""}).html)a.on("uiSpace",function(a){a.data.space==g&&a.cancel()},null,null,1),l= +f.append(CKEDITOR.dom.element.createFromHtml(e.output({id:a.id,name:a.name,langDir:a.lang.dir,langCode:a.langCode,space:g,spaceId:a.ui.spaceId(g),content:m}))),f.getCustomData("cke_hasshared")?l.hide():f.setCustomData("cke_hasshared",1),l.unselectable(),l.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()}),a.focusManager.add(l,1),a.on("focus",function(){for(var a=0,b,c=f.getChildren();b=c.getItem(a);a++)b.type==CKEDITOR.NODE_ELEMENT&&!b.equals(l)&&b.hasClass("cke_shared")&& +b.hide();l.show()}),a.on("destroy",function(){l.remove()})}var e=CKEDITOR.addTemplate("sharedcontainer",'\x3cdiv id\x3d"cke_{name}" class\x3d"cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_shared cke_detached cke_{langDir} '+CKEDITOR.env.cssClass+'" dir\x3d"{langDir}" title\x3d"'+(CKEDITOR.env.gecko?" ":"")+'" lang\x3d"{langCode}" role\x3d"presentation"\x3e\x3cdiv class\x3d"cke_inner"\x3e\x3cdiv id\x3d"{spaceId}" class\x3d"cke_{space}" role\x3d"presentation"\x3e{content}\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'); +CKEDITOR.plugins.add("sharedspace",{init:function(c){c.on("loaded",function(){var e=c.config.sharedSpaces;if(e)for(var f in e)a(c,f,e[f])},null,null,9)}})}(),CKEDITOR.plugins.add("sourcedialog",{init:function(a){a.addCommand("sourcedialog",new CKEDITOR.dialogCommand("sourcedialog"));CKEDITOR.dialog.add("sourcedialog",this.path+"dialogs/sourcedialog.js");a.ui.addButton&&a.ui.addButton("Sourcedialog",{label:a.lang.sourcedialog.toolbar,command:"sourcedialog",toolbar:"mode,10"})}}),"use strict",function(){function a(a, +c){CKEDITOR.tools.extend(this,{editor:a,editable:a.editable(),doc:a.document,win:a.window},c,!0);this.inline=this.editable.isInline();this.inline||(this.frame=this.win.getFrame());this.target=this[this.inline?"editable":"doc"]}function e(a,c){CKEDITOR.tools.extend(this,c,{editor:a},!0)}function c(a,c){var e=a.editable();CKEDITOR.tools.extend(this,{editor:a,editable:e,inline:e.isInline(),doc:a.document,win:a.window,container:CKEDITOR.document.getBody(),winTop:CKEDITOR.document.getWindow()},c,!0);this.hidden= +{};this.visible={};this.inline||(this.frame=this.win.getFrame());this.queryViewport();var g=CKEDITOR.tools.bind(this.queryViewport,this),k=CKEDITOR.tools.bind(this.hideVisible,this),l=CKEDITOR.tools.bind(this.removeAll,this);e.attachListener(this.winTop,"resize",g);e.attachListener(this.winTop,"scroll",g);e.attachListener(this.winTop,"resize",k);e.attachListener(this.win,"scroll",k);e.attachListener(this.inline?e:this.frame,"mouseout",function(a){var b=a.data.$.clientX;a=a.data.$.clientY;this.queryViewport(); +(b<=this.rect.left||b>=this.rect.right||a<=this.rect.top||a>=this.rect.bottom)&&this.hideVisible();(0>=b||b>=this.winTopPane.width||0>=a||a>=this.winTopPane.height)&&this.hideVisible()},this);e.attachListener(a,"resize",g);e.attachListener(a,"mode",l);a.on("destroy",l);this.lineTpl=(new CKEDITOR.template('\x3cdiv data-cke-lineutils-line\x3d"1" class\x3d"cke_reset_all" style\x3d"{lineStyle}"\x3e\x3cspan style\x3d"{tipLeftStyle}"\x3e\x26nbsp;\x3c/span\x3e\x3cspan style\x3d"{tipRightStyle}"\x3e\x26nbsp;\x3c/span\x3e\x3c/div\x3e')).output({lineStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({}, +m,this.lineStyle,!0)),tipLeftStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},f,{left:"0px","border-left-color":"red","border-width":"6px 0 6px 6px"},this.tipCss,this.tipLeftStyle,!0)),tipRightStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},f,{right:"0px","border-right-color":"red","border-width":"6px 6px 6px 0"},this.tipCss,this.tipRightStyle,!0))})}function g(a){var c;if(c=a&&a.type==CKEDITOR.NODE_ELEMENT)c=!(l[a.getComputedStyle("float")]||l[a.getAttribute("align")]);return c&& +!k[a.getComputedStyle("position")]}CKEDITOR.plugins.add("lineutils");CKEDITOR.LINEUTILS_BEFORE=1;CKEDITOR.LINEUTILS_AFTER=2;CKEDITOR.LINEUTILS_INSIDE=4;a.prototype={start:function(a){var c=this,e=this.editor,f=this.doc,g,k,l,m,q=CKEDITOR.tools.eventsBuffer(50,function(){e.readOnly||"wysiwyg"!=e.mode||(c.relations={},(k=f.$.elementFromPoint(l,m))&&k.nodeType&&(g=new CKEDITOR.dom.element(k),c.traverseSearch(g),isNaN(l+m)||c.pixelSearch(g,l,m),a&&a(c.relations,l,m)))});this.listener=this.editable.attachListener(this.target, +"mousemove",function(a){l=a.data.$.clientX;m=a.data.$.clientY;q.input()});this.editable.attachListener(this.inline?this.editable:this.frame,"mouseout",function(){q.reset()})},stop:function(){this.listener&&this.listener.removeListener()},getRange:function(){var a={};a[CKEDITOR.LINEUTILS_BEFORE]=CKEDITOR.POSITION_BEFORE_START;a[CKEDITOR.LINEUTILS_AFTER]=CKEDITOR.POSITION_AFTER_END;a[CKEDITOR.LINEUTILS_INSIDE]=CKEDITOR.POSITION_AFTER_START;return function(c){var e=this.editor.createRange();e.moveToPosition(this.relations[c.uid].element, +a[c.type]);return e}}(),store:function(){function a(b,c,e){var f=b.getUniqueId();f in e?e[f].type|=c:e[f]={element:b,type:c}}return function(c,e){var f;e&CKEDITOR.LINEUTILS_AFTER&&g(f=c.getNext())&&f.isVisible()&&(a(f,CKEDITOR.LINEUTILS_BEFORE,this.relations),e^=CKEDITOR.LINEUTILS_AFTER);e&CKEDITOR.LINEUTILS_INSIDE&&g(f=c.getFirst())&&f.isVisible()&&(a(f,CKEDITOR.LINEUTILS_BEFORE,this.relations),e^=CKEDITOR.LINEUTILS_INSIDE);a(c,e,this.relations)}}(),traverseSearch:function(a){var c,e,f;do if(f=a.$["data-cke-expando"], +!(f&&f in this.relations)){if(a.equals(this.editable))break;if(g(a))for(c in this.lookups)(e=this.lookups[c](a))&&this.store(a,e)}while((!a||a.type!=CKEDITOR.NODE_ELEMENT||"true"!=a.getAttribute("contenteditable"))&&(a=a.getParent()))},pixelSearch:function(){function a(b,e,f,k,l){for(var m=0,q;l(f);){f+=k;if(25==++m)break;if(q=this.doc.$.elementFromPoint(e,f))if(q==b)m=0;else if(c(b,q)&&(m=0,g(q=new CKEDITOR.dom.element(q))))return q}}var c=CKEDITOR.env.ie||CKEDITOR.env.webkit?function(a,b){return a.contains(b)}: +function(a,b){return!!(a.compareDocumentPosition(b)&16)};return function(c,d,e){var f=this.win.getViewPaneSize().height,k=a.call(this,c.$,d,e,-1,function(a){return 0<a});d=a.call(this,c.$,d,e,1,function(a){return a<f});if(k)for(this.traverseSearch(k);!k.getParent().equals(c);)k=k.getParent();if(d)for(this.traverseSearch(d);!d.getParent().equals(c);)d=d.getParent();for(;k||d;){k&&(k=k.getNext(g));if(!k||k.equals(d))break;this.traverseSearch(k);d&&(d=d.getPrevious(g));if(!d||d.equals(k))break;this.traverseSearch(d)}}}(), +greedySearch:function(){this.relations={};for(var a=this.editable.getElementsByTag("*"),c=0,e,f,k;e=a.getItem(c++);)if(!e.equals(this.editable)&&e.type==CKEDITOR.NODE_ELEMENT&&(e.hasAttribute("contenteditable")||!e.isReadOnly())&&g(e)&&e.isVisible())for(k in this.lookups)(f=this.lookups[k](e))&&this.store(e,f);return this.relations}};e.prototype={locate:function(){function a(b,c){var e=b.element[c===CKEDITOR.LINEUTILS_BEFORE?"getPrevious":"getNext"]();return e&&g(e)?(b.siblingRect=e.getClientRect(), +c==CKEDITOR.LINEUTILS_BEFORE?(b.siblingRect.bottom+b.elementRect.top)/2:(b.elementRect.bottom+b.siblingRect.top)/2):c==CKEDITOR.LINEUTILS_BEFORE?b.elementRect.top:b.elementRect.bottom}return function(c){var e;this.locations={};for(var f in c)e=c[f],e.elementRect=e.element.getClientRect(),e.type&CKEDITOR.LINEUTILS_BEFORE&&this.store(f,CKEDITOR.LINEUTILS_BEFORE,a(e,CKEDITOR.LINEUTILS_BEFORE)),e.type&CKEDITOR.LINEUTILS_AFTER&&this.store(f,CKEDITOR.LINEUTILS_AFTER,a(e,CKEDITOR.LINEUTILS_AFTER)),e.type& +CKEDITOR.LINEUTILS_INSIDE&&this.store(f,CKEDITOR.LINEUTILS_INSIDE,(e.elementRect.top+e.elementRect.bottom)/2);return this.locations}}(),sort:function(){var a,c,e,f;return function(g,k){a=this.locations;c=[];for(var l in a)for(var m in a[l])if(e=Math.abs(g-a[l][m]),c.length){for(f=0;f<c.length;f++)if(e<c[f].dist){c.splice(f,0,{uid:+l,type:m,dist:e});break}f==c.length&&c.push({uid:+l,type:m,dist:e})}else c.push({uid:+l,type:m,dist:e});return"undefined"!=typeof k?c.slice(0,k):c}}(),store:function(a, +c,e){this.locations[a]||(this.locations[a]={});this.locations[a][c]=e}};var f={display:"block",width:"0px",height:"0px","border-color":"transparent","border-style":"solid",position:"absolute",top:"-6px"},m={height:"0px","border-top":"1px dashed red",position:"absolute","z-index":9999};c.prototype={removeAll:function(){for(var a in this.hidden)this.hidden[a].remove(),delete this.hidden[a];for(a in this.visible)this.visible[a].remove(),delete this.visible[a]},hideLine:function(a){var c=a.getUniqueId(); +a.hide();this.hidden[c]=a;delete this.visible[c]},showLine:function(a){var c=a.getUniqueId();a.show();this.visible[c]=a;delete this.hidden[c]},hideVisible:function(){for(var a in this.visible)this.hideLine(this.visible[a])},placeLine:function(a,c){var e,f,g;if(e=this.getStyle(a.uid,a.type)){for(g in this.visible)if(this.visible[g].getCustomData("hash")!==this.hash){f=this.visible[g];break}if(!f)for(g in this.hidden)if(this.hidden[g].getCustomData("hash")!==this.hash){this.showLine(f=this.hidden[g]); +break}f||this.showLine(f=this.addLine());f.setCustomData("hash",this.hash);this.visible[f.getUniqueId()]=f;f.setStyles(e);c&&c(f)}},getStyle:function(a,c){var e=this.relations[a],f=this.locations[a][c],g={};g.width=e.siblingRect?Math.max(e.siblingRect.width,e.elementRect.width):e.elementRect.width;g.top=this.inline?f+this.winTopScroll.y-this.rect.relativeY:this.rect.top+this.winTopScroll.y+f;if(g.top-this.winTopScroll.y<this.rect.top||g.top-this.winTopScroll.y>this.rect.bottom)return!1;this.inline? +g.left=e.elementRect.left-this.rect.relativeX:(0<e.elementRect.left?g.left=this.rect.left+e.elementRect.left:(g.width+=e.elementRect.left,g.left=this.rect.left),0<(e=g.left+g.width-(this.rect.left+this.winPane.width))&&(g.width-=e));g.left+=this.winTopScroll.x;for(var k in g)g[k]=CKEDITOR.tools.cssLength(g[k]);return g},addLine:function(){var a=CKEDITOR.dom.element.createFromHtml(this.lineTpl);a.appendTo(this.container);return a},prepare:function(a,c){this.relations=a;this.locations=c;this.hash=Math.random()}, +cleanup:function(){var a,c;for(c in this.visible)a=this.visible[c],a.getCustomData("hash")!==this.hash&&this.hideLine(a)},queryViewport:function(){this.winPane=this.win.getViewPaneSize();this.winTopScroll=this.winTop.getScrollPosition();this.winTopPane=this.winTop.getViewPaneSize();this.rect=this.getClientRect(this.inline?this.editable:this.frame)},getClientRect:function(a){a=a.getClientRect();var c=this.container.getDocumentPosition(),e=this.container.getComputedStyle("position");a.relativeX=a.relativeY= +0;"static"!=e&&(a.relativeY=c.y,a.relativeX=c.x,a.top-=a.relativeY,a.bottom-=a.relativeY,a.left-=a.relativeX,a.right-=a.relativeX);return a}};var l={left:1,right:1,center:1},k={absolute:1,fixed:1};CKEDITOR.plugins.lineutils={finder:a,locator:e,liner:c}}(),"use strict",function(){function a(a){this.editor=a;this.registered={};this.instances={};this.selected=[];this.widgetHoldingFocusedEditable=this.focused=null;this._={nextId:0,upcasts:[],upcastCallbacks:[],filters:{}};B(this);x(this);this.on("checkWidgets", +l);this.editor.on("contentDomInvalidated",this.checkWidgets,this);r(this);w(this);y(this);q(this);C(this)}function e(a,b,c,d,f){var g=a.editor;CKEDITOR.tools.extend(this,d,{editor:g,id:b,inline:"span"==c.getParent().getName(),element:c,data:CKEDITOR.tools.extend({},"function"==typeof d.defaults?d.defaults():d.defaults),dataReady:!1,inited:!1,ready:!1,edit:e.prototype.edit,focusedEditable:null,definition:d,repository:a,draggable:!1!==d.draggable,_:{downcastFn:d.downcast&&"string"==typeof d.downcast? +d.downcasts[d.downcast]:d.downcast}},!0);a.fire("instanceCreated",this);O(this,d);this.init&&this.init();this.inited=!0;(a=this.element.data("cke-widget-data"))&&this.setData(JSON.parse(decodeURIComponent(a)));f&&this.setData(f);this.data.classes||this.setData("classes",this.getClasses());this.dataReady=!0;K(this);this.fire("data",this.data);this.isInited()&&g.editable().contains(this.wrapper)&&(this.ready=!0,this.fire("ready"))}function c(a,b,c){CKEDITOR.dom.element.call(this,b.$);this.editor=a; +this._={};b=this.filter=c.filter;CKEDITOR.dtd[this.getName()].p?(this.enterMode=b?b.getAllowedEnterMode(a.enterMode):a.enterMode,this.shiftEnterMode=b?b.getAllowedEnterMode(a.shiftEnterMode,!0):a.shiftEnterMode):this.enterMode=this.shiftEnterMode=CKEDITOR.ENTER_BR}function g(a,b){a.addCommand(b.name,{exec:function(a,c){function d(){a.widgets.finalizeCreation(h)}var e=a.widgets.focused;if(e&&e.name==b.name)e.edit();else if(b.insert)b.insert();else if(b.template){var e="function"==typeof b.defaults? +b.defaults():b.defaults,e=CKEDITOR.dom.element.createFromHtml(b.template.output(e)),f,g=a.widgets.wrapElement(e,b.name),h=new CKEDITOR.dom.documentFragment(g.getDocument());h.append(g);(f=a.widgets.initOn(e,b,c&&c.startupData))?(e=f.once("edit",function(b){if(b.data.dialog)f.once("dialog",function(b){b=b.data;var c,e;c=b.once("ok",d,null,null,20);e=b.once("cancel",function(b){b.data&&!1===b.data.hide||a.widgets.destroy(f,!0)});b.once("hide",function(){c.removeListener();e.removeListener()})});else d()}, +null,null,999),f.edit(),e.removeListener()):d()}},allowedContent:b.allowedContent,requiredContent:b.requiredContent,contentForms:b.contentForms,contentTransformations:b.contentTransformations})}function f(a,b){function c(b,d,e){var f=CKEDITOR.tools.getIndex(a._.upcasts,function(a){return a[2]>e});0>f&&(f=a._.upcasts.length);a._.upcasts.splice(f,0,[b,d,e])}var d=b.upcast,e=b.upcastPriority||10;if(d)if("string"==typeof d)for(d=d.split(",");d.length;)c(b.upcasts[d.pop()],b.name,e);else c(d,b.name,e)} +function m(a,b){a.focused=null;if(b.isInited()){var c=b.editor.checkDirty();a.fire("widgetBlurred",{widget:b});b.setFocused(!1);!c&&b.editor.resetDirty()}}function l(a){a=a.data;if("wysiwyg"==this.editor.mode){var b=this.editor.editable(),c=this.instances,d,f,g,h;if(b){for(d in c)c[d].isReady()&&!b.contains(c[d].wrapper)&&this.destroy(c[d],!0);if(a&&a.initOnlyNew)c=this.initOnAll();else{var k=b.find(".cke_widget_wrapper"),c=[];d=0;for(f=k.count();d<f;d++){g=k.getItem(d);if(h=!this.getByElement(g, +!0)){a:{h=v;for(var l=g;l=l.getParent();)if(h(l)){h=!0;break a}h=!1}h=!h}h&&b.contains(g)&&(g.addClass("cke_widget_new"),c.push(this.initOn(g.getFirst(e.isDomWidgetElement))))}}a&&a.focusInited&&1==c.length&&c[0].focus()}}}function k(a,b,c){if(!c.allowedContent)return null;var d=this._.filters[a];d||(this._.filters[a]=d={});(a=d[b])||(d[b]=a=new CKEDITOR.filter(c.allowedContent));return a}function b(a){var b=[],c=a._.upcasts,d=a._.upcastCallbacks;return{toBeWrapped:b,iterator:function(a){var f,g, +h,k,l;if("data-cke-widget-wrapper"in a.attributes)return(a=a.getFirst(e.isParserWidgetElement))&&b.push([a]),!1;if("data-widget"in a.attributes)return b.push([a]),!1;if(l=c.length){if(a.attributes["data-cke-widget-upcasted"])return!1;k=0;for(f=d.length;k<f;++k)if(!1===d[k](a))return;for(k=0;k<l;++k)if(f=c[k],h={},g=f[0](a,h))return g instanceof CKEDITOR.htmlParser.element&&(a=g),a.attributes["data-cke-widget-data"]=encodeURIComponent(JSON.stringify(h)),a.attributes["data-cke-widget-upcasted"]=1,b.push([a, +f[1]]),!1}}}}function d(a){return{tabindex:-1,contenteditable:"false","data-cke-widget-wrapper":1,"data-cke-filter":"off","class":"cke_widget_wrapper cke_widget_new cke_widget_"+(a?"inline":"block")}}function h(a,b,c){if(a.type==CKEDITOR.NODE_ELEMENT){var d=CKEDITOR.dtd[a.name];if(d&&!d[c.name]){var d=a.split(b),e=a.parent;b=d.getIndex();a.children.length||(--b,a.remove());d.children.length||d.remove();return h(e,b,c)}}a.add(c,b)}function p(a,b){return"boolean"==typeof a.inline?a.inline:!!CKEDITOR.dtd.$inline[b]} +function v(a){return a.hasAttribute("data-cke-temp")}function u(a,b,c,d){var e=a.editor;e.fire("lockSnapshot");c?(d=c.data("cke-widget-editable"),d=b.editables[d],a.widgetHoldingFocusedEditable=b,b.focusedEditable=d,c.addClass("cke_widget_editable_focused"),d.filter&&e.setActiveFilter(d.filter),e.setActiveEnterMode(d.enterMode,d.shiftEnterMode)):(d||b.focusedEditable.removeClass("cke_widget_editable_focused"),b.focusedEditable=null,a.widgetHoldingFocusedEditable=null,e.setActiveFilter(null),e.setActiveEnterMode(null, +null));e.fire("unlockSnapshot")}function t(a){a.contextMenu&&a.contextMenu.addListener(function(b){if(b=a.widgets.getByElement(b,!0))return b.fire("contextMenu",{})})}function n(a,b){return CKEDITOR.tools.trim(b)}function q(a){var b=a.editor,c=CKEDITOR.plugins.lineutils;b.on("dragstart",function(c){var d=c.data.target;e.isDomDragHandler(d)&&(d=a.getByElement(d),c.data.dataTransfer.setData("cke/widget-id",d.id),b.focus(),d.focus())});b.on("drop",function(c){var d=c.data.dataTransfer,e=d.getData("cke/widget-id"), +f=d.getTransferType(b),d=b.createRange();""!==e&&f===CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?c.cancel():""!==e&&f==CKEDITOR.DATA_TRANSFER_INTERNAL&&(e=a.instances[e])&&(d.setStartBefore(e.wrapper),d.setEndAfter(e.wrapper),c.data.dragRange=d,delete CKEDITOR.plugins.clipboard.dragStartContainerChildCount,delete CKEDITOR.plugins.clipboard.dragEndContainerChildCount,c.data.dataTransfer.setData("text/html",b.editable().getHtmlFromRange(d).getHtml()),b.widgets.destroy(e,!0))});b.on("contentDom",function(){var d= +b.editable();CKEDITOR.tools.extend(a,{finder:new c.finder(b,{lookups:{"default":function(b){if(!b.is(CKEDITOR.dtd.$listItem)&&b.is(CKEDITOR.dtd.$block)&&!e.isDomNestedEditable(b)&&!a._.draggedWidget.wrapper.contains(b)){var c=e.getNestedEditable(d,b);if(c){b=a._.draggedWidget;if(a.getByElement(c)==b)return;c=CKEDITOR.filter.instances[c.data("cke-filter")];b=b.requiredContent;if(c&&b&&!c.check(b))return}return CKEDITOR.LINEUTILS_BEFORE|CKEDITOR.LINEUTILS_AFTER}}}}),locator:new c.locator(b),liner:new c.liner(b, +{lineStyle:{cursor:"move !important","border-top-color":"#666"},tipLeftStyle:{"border-left-color":"#666"},tipRightStyle:{"border-right-color":"#666"}})},!0)})}function w(a){var b=a.editor;b.on("contentDom",function(){var c=b.editable(),d=c.isInline()?c:b.document,f,g;c.attachListener(d,"mousedown",function(c){var d=c.data.getTarget();if(!d.type)return!1;f=a.getByElement(d);g=0;f&&(f.inline&&d.type==CKEDITOR.NODE_ELEMENT&&d.hasAttribute("data-cke-widget-drag-handler")?(g=1,a.focused!=f&&b.getSelection().removeAllRanges()): +e.getNestedEditable(f.wrapper,d)?f=null:(c.data.preventDefault(),CKEDITOR.env.ie||f.focus()))});c.attachListener(d,"mouseup",function(){g&&f&&f.wrapper&&(g=0,f.focus())});CKEDITOR.env.ie&&c.attachListener(d,"mouseup",function(){setTimeout(function(){f&&f.wrapper&&c.contains(f.wrapper)&&(f.focus(),f=null)})})});b.on("doubleclick",function(b){var c=a.getByElement(b.data.element);if(c&&!e.getNestedEditable(c.wrapper,b.data.element))return c.fire("doubleclick",{element:b.data.element})},null,null,1)} +function y(a){a.editor.on("key",function(b){var c=a.focused,d=a.widgetHoldingFocusedEditable,e;c?e=c.fire("key",{keyCode:b.data.keyCode}):d&&(c=b.data.keyCode,b=d.focusedEditable,c==CKEDITOR.CTRL+65?(c=b.getBogus(),d=d.editor.createRange(),d.selectNodeContents(b),c&&d.setEndAt(c,CKEDITOR.POSITION_BEFORE_START),d.select(),e=!1):8==c||46==c?(e=d.editor.getSelection().getRanges(),d=e[0],e=!(1==e.length&&d.collapsed&&d.checkBoundaryOfElement(b,CKEDITOR[8==c?"START":"END"]))):e=void 0);return e},null, +null,1)}function C(a){function b(c){a.focused&&G(a.focused,"cut"==c.name)}var c=a.editor;c.on("contentDom",function(){var a=c.editable();a.attachListener(a,"copy",b);a.attachListener(a,"cut",b)})}function r(a){var b=a.editor;b.on("selectionCheck",function(){a.fire("checkSelection")});a.on("checkSelection",a.checkSelection,a);b.on("selectionChange",function(c){var d=(c=e.getNestedEditable(b.editable(),c.data.selection.getStartElement()))&&a.getByElement(c),f=a.widgetHoldingFocusedEditable;f?f===d&& +f.focusedEditable.equals(c)||(u(a,f,null),d&&c&&u(a,d,c)):d&&c&&u(a,d,c)});b.on("dataReady",function(){A(a).commit()});b.on("blur",function(){var b;(b=a.focused)&&m(a,b);(b=a.widgetHoldingFocusedEditable)&&u(a,b,null)})}function x(a){var b=a.editor,c={};b.on("toDataFormat",function(b){var d=CKEDITOR.tools.getNextNumber(),f=[];b.data.downcastingSessionId=d;c[d]=f;b.data.dataValue.forEach(function(b){var c=b.attributes,d;if("data-cke-widget-id"in c){if(c=a.instances[c["data-cke-widget-id"]])d=b.getFirst(e.isParserWidgetElement), +f.push({wrapper:b,element:d,widget:c,editables:{}}),"1"!=d.attributes["data-cke-widget-keep-attr"]&&delete d.attributes["data-widget"]}else if("data-cke-widget-editable"in c)return f[f.length-1].editables[c["data-cke-widget-editable"]]=b,!1},CKEDITOR.NODE_ELEMENT,!0)},null,null,8);b.on("toDataFormat",function(a){if(a.data.downcastingSessionId){a=c[a.data.downcastingSessionId];for(var b,d,e,f,g,h;b=a.shift();){d=b.widget;e=b.element;f=d._.downcastFn&&d._.downcastFn.call(d,e);for(h in b.editables)g= +b.editables[h],delete g.attributes.contenteditable,g.setHtml(d.editables[h].getData());f||(f=e);b.wrapper.replaceWith(f)}}},null,null,13);b.on("contentDomUnload",function(){a.destroyAll(!0)})}function B(a){var c=a.editor,d,f;c.on("toHtml",function(c){var f=b(a),g;for(c.data.dataValue.forEach(f.iterator,CKEDITOR.NODE_ELEMENT,!0);g=f.toBeWrapped.pop();){var h=g[0],k=h.parent;k.type==CKEDITOR.NODE_ELEMENT&&k.attributes["data-cke-widget-wrapper"]&&k.replaceWith(h);a.wrapElement(g[0],g[1])}d=c.data.protectedWhitespaces? +3==c.data.dataValue.children.length&&e.isParserWidgetWrapper(c.data.dataValue.children[1]):1==c.data.dataValue.children.length&&e.isParserWidgetWrapper(c.data.dataValue.children[0])},null,null,8);c.on("dataReady",function(){if(f)for(var b=c.editable().find(".cke_widget_wrapper"),d,g,h=0,k=b.count();h<k;++h)d=b.getItem(h),g=d.getFirst(e.isDomWidgetElement),g.type==CKEDITOR.NODE_ELEMENT&&g.data("widget")?(g.replace(d),a.wrapElement(g)):d.remove();f=0;a.destroyAll(!0);a.initOnAll()});c.on("loadSnapshot", +function(b){/data-cke-widget/.test(b.data)&&(f=1);a.destroyAll(!0)},null,null,9);c.on("paste",function(a){a=a.data;a.dataValue=a.dataValue.replace(V,n);a.range&&(a=e.getNestedEditable(c.editable(),a.range.startContainer))&&(a=CKEDITOR.filter.instances[a.data("cke-filter")])&&c.setActiveFilter(a)});c.on("afterInsertHtml",function(b){b.data.intoRange?a.checkWidgets({initOnlyNew:!0}):(c.fire("lockSnapshot"),a.checkWidgets({initOnlyNew:!0,focusInited:d}),c.fire("unlockSnapshot"))})}function A(a){var b= +a.selected,c=[],d=b.slice(0),e=null;return{select:function(a){0>CKEDITOR.tools.indexOf(b,a)&&c.push(a);a=CKEDITOR.tools.indexOf(d,a);0<=a&&d.splice(a,1);return this},focus:function(a){e=a;return this},commit:function(){var f=a.focused!==e,g,h;a.editor.fire("lockSnapshot");for(f&&(g=a.focused)&&m(a,g);g=d.pop();)b.splice(CKEDITOR.tools.indexOf(b,g),1),g.isInited()&&(h=g.editor.checkDirty(),g.setSelected(!1),!h&&g.editor.resetDirty());f&&e&&(h=a.editor.checkDirty(),a.focused=e,a.fire("widgetFocused", +{widget:e}),e.setFocused(!0),!h&&a.editor.resetDirty());for(;g=c.pop();)b.push(g),g.setSelected(!0);a.editor.fire("unlockSnapshot")}}}function z(a,b,c){var d=0;b=F(b);var e=a.data.classes||{},f;if(b){for(e=CKEDITOR.tools.clone(e);f=b.pop();)c?e[f]||(d=e[f]=1):e[f]&&(delete e[f],d=1);d&&a.setData("classes",e)}}function D(a){a.cancel()}function G(a,b){var c=a.editor,d=c.document;if(!d.getById("cke_copybin")){var e=c.blockless||CKEDITOR.env.ie?"span":"div",f=d.createElement(e),g=d.createElement(e),e= +CKEDITOR.env.ie&&9>CKEDITOR.env.version;g.setAttributes({id:"cke_copybin","data-cke-temp":"1"});f.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"});f.setStyle("ltr"==c.config.contentsLangDirection?"left":"right","-5000px");var h=c.createRange();h.setStartBefore(a.wrapper);h.setEndAfter(a.wrapper);f.setHtml('\x3cspan data-cke-copybin-start\x3d"1"\x3e​\x3c/span\x3e'+c.editable().getHtmlFromRange(h).getHtml()+'\x3cspan data-cke-copybin-end\x3d"1"\x3e​\x3c/span\x3e');c.fire("saveSnapshot"); +c.fire("lockSnapshot");g.append(f);c.editable().append(g);var k=c.on("selectionChange",D,null,null,0),l=a.repository.on("checkSelection",D,null,null,0);if(e)var m=d.getDocumentElement().$,n=m.scrollTop;h=c.createRange();h.selectNodeContents(f);h.select();e&&(m.scrollTop=n);setTimeout(function(){b||a.focus();g.remove();k.removeListener();l.removeListener();c.fire("unlockSnapshot");b&&(a.repository.del(a),c.fire("saveSnapshot"))},100)}}function F(a){return(a=(a=a.getDefinition().attributes)&&a["class"])? +a.split(/\s+/):null}function J(){var a=CKEDITOR.document.getActive(),b=this.editor,c=b.editable();(c.isInline()?c:b.document.getWindow().getFrame()).equals(a)&&b.focusManager.focus(c)}function I(){CKEDITOR.env.gecko&&this.editor.unlockSelection();CKEDITOR.env.webkit||(this.editor.forceNextSelectionCheck(),this.editor.selectionChange(1))}function N(a){var b=null;a.on("data",function(){var a=this.data.classes,c;if(b!=a){for(c in b)a&&a[c]||this.removeClass(c);for(c in a)this.addClass(c);b=a}})}function E(a){if(a.draggable){var b= +a.editor,c=a.wrapper.getLast(e.isDomDragHandlerContainer),d;c?d=c.findOne("img"):(c=new CKEDITOR.dom.element("span",b.document),c.setAttributes({"class":"cke_reset cke_widget_drag_handler_container",style:"background:rgba(220,220,220,0.5);background-image:url("+b.plugins.widget.path+"images/handle.png)"}),d=new CKEDITOR.dom.element("img",b.document),d.setAttributes({"class":"cke_reset cke_widget_drag_handler","data-cke-widget-drag-handler":"1",src:CKEDITOR.tools.transparentImageData,width:15,title:b.lang.widget.move, +height:15}),a.inline&&d.setAttribute("draggable","true"),c.append(d),a.wrapper.append(c));a.wrapper.on("dragover",function(a){a.data.preventDefault()});a.wrapper.on("mouseenter",a.updateDragHandlerPosition,a);setTimeout(function(){a.on("data",a.updateDragHandlerPosition,a)},50);if(!a.inline&&(d.on("mousedown",P,a),CKEDITOR.env.ie&&9>CKEDITOR.env.version))d.on("dragstart",function(a){a.data.preventDefault(!0)});a.dragHandlerContainer=c}}function P(a){function b(){var c;for(m.reset();c=h.pop();)c.removeListener(); +var d=k;c=a.sender;var e=this.repository.finder,f=this.repository.liner,g=this.editor,l=this.editor.editable();CKEDITOR.tools.isEmpty(f.visible)||(d=e.getRange(d[0]),this.focus(),g.fire("drop",{dropRange:d,target:d.startContainer}));l.removeClass("cke_widget_dragging");f.hideVisible();g.fire("dragend",{target:c})}var c=this.repository.finder,d=this.repository.locator,e=this.repository.liner,f=this.editor,g=f.editable(),h=[],k=[];this.repository._.draggedWidget=this;var l=c.greedySearch(),m=CKEDITOR.tools.eventsBuffer(50, +function(){n=d.locate(l);k=d.sort(p,1);k.length&&(e.prepare(l,n),e.placeLine(k[0]),e.cleanup())}),n,p;g.addClass("cke_widget_dragging");h.push(g.on("mousemove",function(a){p=a.data.$.clientY;m.input()}));f.fire("dragstart",{target:a.sender});h.push(f.document.once("mouseup",b,this));g.isInline()||h.push(CKEDITOR.document.once("mouseup",b,this))}function T(a){var b,c,d=a.editables;a.editables={};if(a.editables)for(b in d)c=d[b],a.initEditable(b,"string"==typeof c?{selector:c}:c)}function L(a){if(a.mask){var b= +a.wrapper.findOne(".cke_widget_mask");b||(b=new CKEDITOR.dom.element("img",a.editor.document),b.setAttributes({src:CKEDITOR.tools.transparentImageData,"class":"cke_reset cke_widget_mask"}),a.wrapper.append(b));a.mask=b}}function Q(a){if(a.parts){var b={},c,d;for(d in a.parts)c=a.wrapper.findOne(a.parts[d]),b[d]=c;a.parts=b}}function O(a,b){U(a);Q(a);T(a);L(a);E(a);N(a);if(CKEDITOR.env.ie&&9>CKEDITOR.env.version)a.wrapper.on("dragstart",function(b){var c=b.data.getTarget();e.getNestedEditable(a,c)|| +a.inline&&e.isDomDragHandler(c)||b.data.preventDefault()});a.wrapper.removeClass("cke_widget_new");a.element.addClass("cke_widget_element");a.on("key",function(b){b=b.data.keyCode;if(13==b)a.edit();else{if(b==CKEDITOR.CTRL+67||b==CKEDITOR.CTRL+88){G(a,b==CKEDITOR.CTRL+88);return}if(b in R||CKEDITOR.CTRL&b||CKEDITOR.ALT&b)return}return!1},null,null,999);a.on("doubleclick",function(b){a.edit()&&b.cancel()});if(b.data)a.on("data",b.data);if(b.edit)a.on("edit",b.edit)}function U(a){(a.wrapper=a.element.getParent()).setAttribute("data-cke-widget-id", +a.id)}function K(a){a.element.data("cke-widget-data",encodeURIComponent(JSON.stringify(a.data)))}CKEDITOR.plugins.add("widget",{requires:"lineutils,clipboard",onLoad:function(){CKEDITOR.addCss(".cke_widget_wrapper{position:relative;outline:none}.cke_widget_inline{display:inline-block}.cke_widget_wrapper:hover\x3e.cke_widget_element{outline:2px solid yellow;cursor:default}.cke_widget_wrapper:hover .cke_widget_editable{outline:2px solid yellow}.cke_widget_wrapper.cke_widget_focused\x3e.cke_widget_element,.cke_widget_wrapper .cke_widget_editable.cke_widget_editable_focused{outline:2px solid #ace}.cke_widget_editable{cursor:text}.cke_widget_drag_handler_container{position:absolute;width:15px;height:0;display:none;opacity:0.75;transition:height 0s 0.2s;line-height:0}.cke_widget_wrapper:hover\x3e.cke_widget_drag_handler_container{height:15px;transition:none}.cke_widget_drag_handler_container:hover{opacity:1}img.cke_widget_drag_handler{cursor:move;width:15px;height:15px;display:inline-block}.cke_widget_mask{position:absolute;top:0;left:0;width:100%;height:100%;display:block}.cke_editable.cke_widget_dragging, .cke_editable.cke_widget_dragging *{cursor:move !important}")}, +beforeInit:function(b){b.widgets=new a(b)},afterInit:function(a){var b=a.widgets.registered,c,d,e;for(d in b)c=b[d],(e=c.button)&&a.ui.addButton&&a.ui.addButton(CKEDITOR.tools.capitalize(c.name,!0),{label:e,command:c.name,toolbar:"insert,10"});t(a)}});a.prototype={MIN_SELECTION_CHECK_INTERVAL:500,add:function(a,b){b=CKEDITOR.tools.prototypedCopy(b);b.name=a;b._=b._||{};this.editor.fire("widgetDefinition",b);b.template&&(b.template=new CKEDITOR.template(b.template));g(this.editor,b);f(this,b);return this.registered[a]= +b},addUpcastCallback:function(a){this._.upcastCallbacks.push(a)},checkSelection:function(){var a=this.editor.getSelection(),b=a.getSelectedElement(),c=A(this),d;if(b&&(d=this.getByElement(b,!0)))return c.focus(d).select(d).commit();a=a.getRanges()[0];if(!a||a.collapsed)return c.commit();a=new CKEDITOR.dom.walker(a);for(a.evaluator=e.isDomWidgetWrapper;b=a.next();)c.select(this.getByElement(b));c.commit()},checkWidgets:function(a){this.fire("checkWidgets",CKEDITOR.tools.copy(a||{}))},del:function(a){if(this.focused=== +a){var b=a.editor,c=b.createRange(),d;(d=c.moveToClosestEditablePosition(a.wrapper,!0))||(d=c.moveToClosestEditablePosition(a.wrapper,!1));d&&b.getSelection().selectRanges([c])}a.wrapper.remove();this.destroy(a,!0)},destroy:function(a,b){this.widgetHoldingFocusedEditable===a&&u(this,a,null,b);a.destroy(b);delete this.instances[a.id];this.fire("instanceDestroyed",a)},destroyAll:function(a,b){var c,d,e=this.instances;if(b&&!a){d=b.find(".cke_widget_wrapper");for(var e=d.count(),f=0;f<e;++f)(c=this.getByElement(d.getItem(f), +!0))&&this.destroy(c)}else for(d in e)c=e[d],this.destroy(c,a)},finalizeCreation:function(a){(a=a.getFirst())&&e.isDomWidgetWrapper(a)&&(this.editor.insertElement(a),a=this.getByElement(a),a.ready=!0,a.fire("ready"),a.focus())},getByElement:function(){function a(c){return c.is(b)&&c.data("cke-widget-id")}var b={div:1,span:1};return function(b,c){if(!b)return null;var d=a(b);if(!c&&!d){var e=this.editor.editable();do b=b.getParent();while(b&&!b.equals(e)&&!(d=a(b)))}return this.instances[d]||null}}(), +initOn:function(a,b,c){b?"string"==typeof b&&(b=this.registered[b]):b=this.registered[a.data("widget")];if(!b)return null;var d=this.wrapElement(a,b.name);return d?d.hasClass("cke_widget_new")?(a=new e(this,this._.nextId++,a,b,c),a.isInited()?this.instances[a.id]=a:null):this.getByElement(a):null},initOnAll:function(a){a=(a||this.editor.editable()).find(".cke_widget_new");for(var b=[],c,d=a.count();d--;)(c=this.initOn(a.getItem(d).getFirst(e.isDomWidgetElement)))&&b.push(c);return b},onWidget:function(a){var b= +Array.prototype.slice.call(arguments);b.shift();for(var c in this.instances){var d=this.instances[c];d.name==a&&d.on.apply(d,b)}this.on("instanceCreated",function(c){c=c.data;c.name==a&&c.on.apply(c,b)})},parseElementClasses:function(a){if(!a)return null;a=CKEDITOR.tools.trim(a).split(/\s+/);for(var b,c={},d=0;b=a.pop();)-1==b.indexOf("cke_")&&(c[b]=d=1);return d?c:null},wrapElement:function(a,b){var c=null,e,f;if(a instanceof CKEDITOR.dom.element){e=this.registered[b||a.data("widget")];if(!e)return null; +if((c=a.getParent())&&c.type==CKEDITOR.NODE_ELEMENT&&c.data("cke-widget-wrapper"))return c;a.hasAttribute("data-cke-widget-keep-attr")||a.data("cke-widget-keep-attr",a.data("widget")?1:0);b&&a.data("widget",b);f=p(e,a.getName());c=new CKEDITOR.dom.element(f?"span":"div");c.setAttributes(d(f));c.data("cke-display-name",e.pathName?e.pathName:a.getName());a.getParent(!0)&&c.replace(a);a.appendTo(c)}else if(a instanceof CKEDITOR.htmlParser.element){e=this.registered[b||a.attributes["data-widget"]];if(!e)return null; +if((c=a.parent)&&c.type==CKEDITOR.NODE_ELEMENT&&c.attributes["data-cke-widget-wrapper"])return c;"data-cke-widget-keep-attr"in a.attributes||(a.attributes["data-cke-widget-keep-attr"]=a.attributes["data-widget"]?1:0);b&&(a.attributes["data-widget"]=b);f=p(e,a.name);c=new CKEDITOR.htmlParser.element(f?"span":"div",d(f));c.attributes["data-cke-display-name"]=e.pathName?e.pathName:a.name;e=a.parent;var g;e&&(g=a.getIndex(),a.remove());c.add(a);e&&h(e,g,c)}return c},_tests_createEditableFilter:k};CKEDITOR.event.implementOn(a.prototype); +e.prototype={addClass:function(a){this.element.addClass(a)},applyStyle:function(a){z(this,a,1)},checkStyleActive:function(a){a=F(a);var b;if(!a)return!1;for(;b=a.pop();)if(!this.hasClass(b))return!1;return!0},destroy:function(a){this.fire("destroy");if(this.editables)for(var b in this.editables)this.destroyEditable(b,a);a||("0"==this.element.data("cke-widget-keep-attr")&&this.element.removeAttribute("data-widget"),this.element.removeAttributes(["data-cke-widget-data","data-cke-widget-keep-attr"]), +this.element.removeClass("cke_widget_element"),this.element.replace(this.wrapper));this.wrapper=null},destroyEditable:function(a,b){var c=this.editables[a];c.removeListener("focus",I);c.removeListener("blur",J);this.editor.focusManager.remove(c);b||(this.repository.destroyAll(!1,c),c.removeClass("cke_widget_editable"),c.removeClass("cke_widget_editable_focused"),c.removeAttributes(["contenteditable","data-cke-widget-editable","data-cke-enter-mode"]));delete this.editables[a]},edit:function(){var a= +{dialog:this.dialog},b=this;if(!1===this.fire("edit",a)||!a.dialog)return!1;this.editor.openDialog(a.dialog,function(a){var c,d;!1!==b.fire("dialog",a)&&(c=a.on("show",function(){a.setupContent(b)}),d=a.on("ok",function(){var c,d=b.on("data",function(a){c=1;a.cancel()},null,null,0);b.editor.fire("saveSnapshot");a.commitContent(b);d.removeListener();c&&(b.fire("data",b.data),b.editor.fire("saveSnapshot"))}),a.once("hide",function(){c.removeListener();d.removeListener()}))});return!0},getClasses:function(){return this.repository.parseElementClasses(this.element.getAttribute("class"))}, +hasClass:function(a){return this.element.hasClass(a)},initEditable:function(a,b){var d=this._findOneNotNested(b.selector);return d&&d.is(CKEDITOR.dtd.$editable)?(d=new c(this.editor,d,{filter:k.call(this.repository,this.name,a,b)}),this.editables[a]=d,d.setAttributes({contenteditable:"true","data-cke-widget-editable":a,"data-cke-enter-mode":d.enterMode}),d.filter&&d.data("cke-filter",d.filter.id),d.addClass("cke_widget_editable"),d.removeClass("cke_widget_editable_focused"),b.pathName&&d.data("cke-display-name", +b.pathName),this.editor.focusManager.add(d),d.on("focus",I,this),CKEDITOR.env.ie&&d.on("blur",J,this),d._.initialSetData=!0,d.setData(d.getHtml()),!0):!1},_findOneNotNested:function(a){a=this.wrapper.find(a);for(var b,c,d=0;d<a.count();d++)if(b=a.getItem(d),c=b.getAscendant(e.isDomWidgetWrapper),this.wrapper.equals(c))return b;return null},isInited:function(){return!(!this.wrapper||!this.inited)},isReady:function(){return this.isInited()&&this.ready},focus:function(){var a=this.editor.getSelection(); +if(a){var b=this.editor.checkDirty();a.fake(this.wrapper);!b&&this.editor.resetDirty()}this.editor.focus()},removeClass:function(a){this.element.removeClass(a)},removeStyle:function(a){z(this,a,0)},setData:function(a,b){var c=this.data,d=0;if("string"==typeof a)c[a]!==b&&(c[a]=b,d=1);else{var e=a;for(a in e)c[a]!==e[a]&&(d=1,c[a]=e[a])}d&&this.dataReady&&(K(this),this.fire("data",c));return this},setFocused:function(a){this.wrapper[a?"addClass":"removeClass"]("cke_widget_focused");this.fire(a?"focus": +"blur");return this},setSelected:function(a){this.wrapper[a?"addClass":"removeClass"]("cke_widget_selected");this.fire(a?"select":"deselect");return this},updateDragHandlerPosition:function(){var a=this.editor,b=this.element.$,c=this._.dragHandlerOffset,b={x:b.offsetLeft,y:b.offsetTop-15};c&&b.x==c.x&&b.y==c.y||(c=a.checkDirty(),a.fire("lockSnapshot"),this.dragHandlerContainer.setStyles({top:b.y+"px",left:b.x+"px",display:"block"}),a.fire("unlockSnapshot"),!c&&a.resetDirty(),this._.dragHandlerOffset= +b)}};CKEDITOR.event.implementOn(e.prototype);e.getNestedEditable=function(a,b){return!b||b.equals(a)?null:e.isDomNestedEditable(b)?b:e.getNestedEditable(a,b.getParent())};e.isDomDragHandler=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-drag-handler")};e.isDomDragHandlerContainer=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_widget_drag_handler_container")};e.isDomNestedEditable=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-editable")}; +e.isDomWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-widget")};e.isDomWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-wrapper")};e.isParserWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&!!a.attributes["data-widget"]};e.isParserWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&!!a.attributes["data-cke-widget-wrapper"]};c.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.dom.element.prototype), +{setData:function(a){this._.initialSetData||this.editor.widgets.destroyAll(!1,this);this._.initialSetData=!1;a=this.editor.dataProcessor.toHtml(a,{context:this.getName(),filter:this.filter,enterMode:this.enterMode});this.setHtml(a);this.editor.widgets.initOnAll(this)},getData:function(){return this.editor.dataProcessor.toDataFormat(this.getHtml(),{context:this.getName(),filter:this.filter,enterMode:this.enterMode})}});var V=/^(?:<(?:div|span)(?: data-cke-temp="1")?(?: id="cke_copybin")?(?: data-cke-temp="1")?>)?(?:<(?:div|span)(?: style="[^"]+")?>)?<span [^>]*data-cke-copybin-start="1"[^>]*>.?<\/span>([\s\S]+)<span [^>]*data-cke-copybin-end="1"[^>]*>.?<\/span>(?:<\/(?:div|span)>)?(?:<\/(?:div|span)>)?$/i, +R={37:1,38:1,39:1,40:1,8:1,46:1};(function(){function a(){}function b(a,c,d){return d&&this.checkElement(a)?(a=d.widgets.getByElement(a,!0))&&a.checkStyleActive(this):!1}CKEDITOR.style.addCustomHandler({type:"widget",setup:function(a){this.widget=a.widget},apply:function(a){a instanceof CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&a.widgets.focused.applyStyle(this)},remove:function(a){a instanceof CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&a.widgets.focused.removeStyle(this)}, +checkActive:function(a,b){return this.checkElementMatch(a.lastElement,0,b)},checkApplicable:function(a,b){return b instanceof CKEDITOR.editor?this.checkElement(a.lastElement):!1},checkElementMatch:b,checkElementRemovable:b,checkElement:function(a){return e.isDomWidgetWrapper(a)?(a=a.getFirst(e.isDomWidgetElement))&&a.data("widget")==this.widget:!1},buildPreview:function(a){return a||this._.definition.name},toAllowedContentRules:function(a){if(!a)return null;a=a.widgets.registered[this.widget];var b, +c={};if(!a)return null;if(a.styleableElements){b=this.getClassesArray();if(!b)return null;c[a.styleableElements]={classes:b,propertiesOnly:!0};return c}return a.styleToAllowedContentRules?a.styleToAllowedContentRules(this):null},getClassesArray:function(){var a=this._.definition.attributes&&this._.definition.attributes["class"];return a?CKEDITOR.tools.trim(a).split(/\s+/):null},applyToRange:a,removeFromRange:a,applyToObject:a})})();CKEDITOR.plugins.widget=e;e.repository=a;e.nestedEditable=c}(),"use strict", +function(){function a(a){function b(){this.deflated||(a.widgets.focused==this.widget&&(this.focused=!0),a.widgets.destroy(this.widget),this.deflated=!0)}function f(){var b=a.editable(),c=a.document;if(this.deflated)this.widget=a.widgets.initOn(this.element,"image",this.widget.data),this.widget.inline&&!(new CKEDITOR.dom.elementPath(this.widget.wrapper,b)).block&&(b=c.createElement(a.activeEnterMode==CKEDITOR.ENTER_P?"p":"div"),b.replace(this.widget.wrapper),this.widget.wrapper.move(b)),this.focused&& +(this.widget.focus(),delete this.focused),delete this.deflated;else{var d=this.widget,b=g,c=d.wrapper,e=d.data.align,d=d.data.hasCaption;if(b){for(var h=3;h--;)c.removeClass(b[h]);"center"==e?d&&c.addClass(b[1]):"none"!=e&&c.addClass(b[u[e]])}else"center"==e?(d?c.setStyle("text-align","center"):c.removeStyle("text-align"),c.removeStyle("float")):("none"==e?c.removeStyle("float"):c.setStyle("float",e),c.removeStyle("text-align"))}}var g=a.config.image2_alignClasses,k=a.config.image2_captionedClass; +return{allowedContent:d(a),requiredContent:"img[src,alt]",features:h(a),styleableElements:"img figure",contentTransformations:[["img[width]: sizeToAttribute"]],editables:{caption:{selector:"figcaption",allowedContent:"br em strong sub sup u s; a[!href]"}},parts:{image:"img",caption:"figcaption"},dialog:"image2",template:'\x3cimg alt\x3d"" src\x3d"" /\x3e',data:function(){var c=this.features;this.data.hasCaption&&!a.filter.checkFeature(c.caption)&&(this.data.hasCaption=!1);"none"==this.data.align|| +a.filter.checkFeature(c.align)||(this.data.align="none");this.shiftState({widget:this,element:this.element,oldData:this.oldData,newData:this.data,deflate:b,inflate:f});this.data.link?this.parts.link||(this.parts.link=this.parts.image.getParent()):this.parts.link&&delete this.parts.link;this.parts.image.setAttributes({src:this.data.src,"data-cke-saved-src":this.data.src,alt:this.data.alt});if(this.oldData&&!this.oldData.hasCaption&&this.data.hasCaption)for(var d in this.data.classes)this.parts.image.removeClass(d); +if(a.filter.checkFeature(c.dimension)){c=this.data;c={width:c.width,height:c.height};d=this.parts.image;for(var e in c)c[e]?d.setAttribute(e,c[e]):d.removeAttribute(e)}this.oldData=CKEDITOR.tools.extend({},this.data)},init:function(){var b=CKEDITOR.plugins.image2,c=this.parts.image,d={hasCaption:!!this.parts.caption,src:c.getAttribute("src"),alt:c.getAttribute("alt")||"",width:c.getAttribute("width")||"",height:c.getAttribute("height")||"",lock:this.ready?b.checkHasNaturalRatio(c):!0},e=c.getAscendant("a"); +e&&this.wrapper.contains(e)&&(this.parts.link=e);d.align||(c=d.hasCaption?this.element:c,g?(c.hasClass(g[0])?d.align="left":c.hasClass(g[2])&&(d.align="right"),d.align?c.removeClass(g[u[d.align]]):d.align="none"):(d.align=c.getStyle("float")||"none",c.removeStyle("float")));a.plugins.link&&this.parts.link&&(d.link=CKEDITOR.plugins.link.parseLinkAttributes(a,this.parts.link),(c=d.link.advanced)&&c.advCSSClasses&&(c.advCSSClasses=CKEDITOR.tools.trim(c.advCSSClasses.replace(/cke_\S+/,""))));this.wrapper[(d.hasCaption? +"remove":"add")+"Class"]("cke_image_nocaption");this.setData(d);a.filter.checkFeature(this.features.dimension)&&!0!==a.config.image2_disableResizer&&m(this);this.shiftState=b.stateShifter(this.editor);this.on("contextMenu",function(a){a.data.image=CKEDITOR.TRISTATE_OFF;if(this.parts.link||this.wrapper.getAscendant("a"))a.data.link=a.data.unlink=CKEDITOR.TRISTATE_OFF});this.on("dialog",function(a){a.data.widget=this},this)},addClass:function(a){p(this).addClass(a)},hasClass:function(a){return p(this).hasClass(a)}, +removeClass:function(a){p(this).removeClass(a)},getClasses:function(){var a=new RegExp("^("+[].concat(k,g).join("|")+")$");return function(){var b=this.repository.parseElementClasses(p(this).getAttribute("class")),c;for(c in b)a.test(c)&&delete b[c];return b}}(),upcast:e(a),downcast:c(a)}}function e(a){var b=g(a),c=a.config.image2_captionedClass;return function(a,d){var e={width:1,height:1},g=a.name,h;if(!a.attributes["data-cke-realelement"]&&(b(a)?("div"==g&&(h=a.getFirst("figure"))&&(a.replaceWith(h), +a=h),d.align="center",h=a.getFirst("img")||a.getFirst("a").getFirst("img")):"figure"==g&&a.hasClass(c)?h=a.getFirst("img")||a.getFirst("a").getFirst("img"):f(a)&&(h="a"==a.name?a.children[0]:a),h)){for(var k in e)(e=h.attributes[k])&&e.match(t)&&delete h.attributes[k];return a}}}function c(a){var b=a.config.image2_alignClasses;return function(a){var c="a"==a.name?a.getFirst():a,d=c.attributes,e=this.data.align;if(!this.inline){var f=a.getFirst("span");f&&f.replaceWith(f.getFirst({img:1,a:1}))}e&& +"none"!=e&&(f=CKEDITOR.tools.parseCssText(d.style||""),"center"==e&&"figure"==a.name?a=a.wrapWith(new CKEDITOR.htmlParser.element("div",b?{"class":b[1]}:{style:"text-align:center"})):e in{left:1,right:1}&&(b?c.addClass(b[u[e]]):f["float"]=e),b||CKEDITOR.tools.isEmpty(f)||(d.style=CKEDITOR.tools.writeCssText(f)));return a}}function g(a){var b=a.config.image2_captionedClass,c=a.config.image2_alignClasses,d={figure:1,a:1,img:1};return function(e){if(!(e.name in{div:1,p:1}))return!1;var g=e.children; +if(1!==g.length)return!1;g=g[0];if(!(g.name in d))return!1;if("p"==e.name){if(!f(g))return!1}else if("figure"==g.name){if(!g.hasClass(b))return!1}else if(a.enterMode==CKEDITOR.ENTER_P||!f(g))return!1;return(c?e.hasClass(c[1]):"center"==CKEDITOR.tools.parseCssText(e.attributes.style||"",!0)["text-align"])?!0:!1}}function f(a){return"img"==a.name?!0:"a"==a.name?1==a.children.length&&a.getFirst("img"):!1}function m(a){var b=a.editor,c=b.editable(),d=b.document,e=a.resizer=d.createElement("span");e.addClass("cke_image_resizer"); +e.setAttribute("title",b.lang.image2.resizer);e.append(new CKEDITOR.dom.text("​",d));if(a.inline)a.wrapper.append(e);else{var f=a.parts.link||a.parts.image,g=f.getParent(),h=d.createElement("span");h.addClass("cke_image_resizer_wrapper");h.append(f);h.append(e);a.element.append(h,!0);g.is("span")&&g.remove()}e.on("mousedown",function(f){function g(a,b,c){var e=CKEDITOR.document,f=[];d.equals(e)||f.push(e.on(a,b));f.push(d.on(a,b));if(c)for(a=f.length;a--;)c.push(f.pop())}function h(){U=t+m*R;K=Math.round(U/ +v)}function k(){K=u-H;U=Math.round(K*v)}var l=a.parts.image,m="right"==a.data.align?-1:1,p=f.data.$.screenX,r=f.data.$.screenY,t=l.$.clientWidth,u=l.$.clientHeight,v=t/u,x=[],B="cke_image_s"+(~m?"e":"w"),O,U,K,V,R,H,M;b.fire("saveSnapshot");g("mousemove",function(a){O=a.data.$;R=O.screenX-p;H=r-O.screenY;M=Math.abs(R/H);1==m?0>=R?0>=H?h():M>=v?h():k():0>=H?M>=v?k():h():k():0>=R?0>=H?M>=v?k():h():k():0>=H?h():M>=v?h():k();15<=U&&15<=K?(l.setAttributes({width:U,height:K}),V=!0):V=!1},x);g("mouseup", +function(){for(var d;d=x.pop();)d.removeListener();c.removeClass(B);e.removeClass("cke_image_resizing");V&&(a.setData({width:U,height:K}),b.fire("saveSnapshot"));V=!1},x);c.addClass(B);e.addClass("cke_image_resizing")});a.on("data",function(){e["right"==a.data.align?"addClass":"removeClass"]("cke_image_resizer_left")})}function l(a){var c=[],d;return function(e){var f=a.getCommand("justify"+e);if(f){c.push(function(){f.refresh(a,a.elementPath())});if(e in{right:1,left:1,center:1})f.on("exec",function(d){var f= +b(a);if(f){f.setData("align",e);for(f=c.length;f--;)c[f]();d.cancel()}});f.on("refresh",function(c){var f=b(a),g={right:1,left:1,center:1};f&&(void 0===d&&(d=a.filter.checkFeature(a.widgets.registered.image.features.align)),d?this.setState(f.data.align==e?CKEDITOR.TRISTATE_ON:e in g?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED):this.setState(CKEDITOR.TRISTATE_DISABLED),c.cancel())})}}}function k(a){a.plugins.link&&(CKEDITOR.on("dialogDefinition",function(c){c=c.data;if("link"==c.name){c=c.definition; +var d=c.onShow,e=c.onOk;c.onShow=function(){var c=b(a);c&&(c.inline?!c.wrapper.getAscendant("a"):1)?this.setupContent(c.data.link||{}):d.apply(this,arguments)};c.onOk=function(){var c=b(a);if(c&&(c.inline?!c.wrapper.getAscendant("a"):1)){var d={};this.commitContent(d);c.setData("link",d)}else e.apply(this,arguments)}}}),a.getCommand("unlink").on("exec",function(c){var d=b(a);d&&d.parts.link&&(d.setData("link",null),this.refresh(a,a.elementPath()),c.cancel())}),a.getCommand("unlink").on("refresh", +function(c){var d=b(a);d&&(this.setState(d.data.link||d.wrapper.getAscendant("a")?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),c.cancel())}))}function b(a){return(a=a.widgets.focused)&&"image"==a.name?a:null}function d(a){var b=a.config.image2_alignClasses;a={div:{match:g(a)},p:{match:g(a)},img:{attributes:"!src,alt,width,height"},figure:{classes:"!"+a.config.image2_captionedClass},figcaption:!0};b?(a.div.classes=b[1],a.p.classes=a.div.classes,a.img.classes=b[0]+","+b[2],a.figure.classes+=","+ +a.img.classes):(a.div.styles="text-align",a.p.styles="text-align",a.img.styles="float",a.figure.styles="float,display");return a}function h(a){a=a.config.image2_alignClasses;return{dimension:{requiredContent:"img[width,height]"},align:{requiredContent:"img"+(a?"("+a[0]+")":"{float}")},caption:{requiredContent:"figcaption"}}}function p(a){return a.data.hasCaption?a.element:a.parts.image}var v=new CKEDITOR.template('\x3cfigure class\x3d"{captionedClass}"\x3e\x3cimg alt\x3d"" src\x3d"" /\x3e\x3cfigcaption\x3e{captionPlaceholder}\x3c/figcaption\x3e\x3c/figure\x3e'), +u={left:0,center:1,right:2},t=/^\s*(\d+\%)\s*$/i;CKEDITOR.plugins.add("image2",{requires:"widget,dialog",icons:"image",hidpi:!0,onLoad:function(){CKEDITOR.addCss(".cke_image_nocaption{line-height:0}.cke_editable.cke_image_sw, .cke_editable.cke_image_sw *{cursor:sw-resize !important}.cke_editable.cke_image_se, .cke_editable.cke_image_se *{cursor:se-resize !important}.cke_image_resizer{display:none;position:absolute;width:10px;height:10px;bottom:-5px;right:-5px;background:#000;outline:1px solid #fff;line-height:0;cursor:se-resize;}.cke_image_resizer_wrapper{position:relative;display:inline-block;line-height:0;}.cke_image_resizer.cke_image_resizer_left{right:auto;left:-5px;cursor:sw-resize;}.cke_widget_wrapper:hover .cke_image_resizer,.cke_image_resizer.cke_image_resizing{display:block}.cke_widget_wrapper\x3ea{display:inline-block}")}, +init:function(b){var c=b.config,d=b.lang.image2,e=a(b);c.filebrowserImage2BrowseUrl=c.filebrowserImageBrowseUrl;c.filebrowserImage2UploadUrl=c.filebrowserImageUploadUrl;e.pathName=d.pathName;e.editables.caption.pathName=d.pathNameCaption;b.widgets.add("image",e);b.ui.addButton&&b.ui.addButton("Image",{label:b.lang.common.image,command:"image",toolbar:"insert,10"});b.contextMenu&&(b.addMenuGroup("image",10),b.addMenuItem("image",{label:d.menu,command:"image",group:"image"}));CKEDITOR.dialog.add("image2", +this.path+"dialogs/image2.js")},afterInit:function(a){var b={left:1,right:1,center:1,block:1},c=l(a),d;for(d in b)c(d);k(a)}});CKEDITOR.plugins.image2={stateShifter:function(a){function b(a,f){var g={};e?g.attributes={"class":e[1]}:g.styles={"text-align":"center"};g=d.createElement(a.activeEnterMode==CKEDITOR.ENTER_P?"p":"div",g);c(g,f);f.move(g);return g}function c(b,d){if(d.getParent()){var e=a.createRange();e.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START);d.remove();g.insertElementIntoRange(b, +e)}else b.replace(d)}var d=a.document,e=a.config.image2_alignClasses,f=a.config.image2_captionedClass,g=a.editable(),h=["hasCaption","align","link"],k={align:function(c,d,f){var g=c.element;c.changed.align?c.newData.hasCaption||("center"==f&&(c.deflate(),c.element=b(a,g)),c.changed.hasCaption||"center"!=d||"center"==f||(c.deflate(),d=g.findOne("a,img"),d.replace(g),c.element=d)):"center"==f&&c.changed.hasCaption&&!c.newData.hasCaption&&(c.deflate(),c.element=b(a,g));!e&&g.is("figure")&&("center"== +f?g.setStyle("display","inline-block"):g.removeStyle("display"))},hasCaption:function(b,e,g){b.changed.hasCaption&&(e=b.element.is({img:1,a:1})?b.element:b.element.findOne("a,img"),b.deflate(),g?(g=CKEDITOR.dom.element.createFromHtml(v.output({captionedClass:f,captionPlaceholder:a.lang.image2.captionPlaceholder}),d),c(g,b.element),e.replace(g.findOne("img")),b.element=g):(e.replace(b.element),b.element=e))},link:function(b,c,e){if(b.changed.link){var f=b.element.is("img")?b.element:b.element.findOne("img"), +g=b.element.is("a")?b.element:b.element.findOne("a"),h=b.element.is("a")&&!e||b.element.is("img")&&e,k;h&&b.deflate();e?(c||(k=d.createElement("a",{attributes:{href:b.newData.link.url}}),k.replace(f),f.move(k)),e=CKEDITOR.plugins.link.getLinkAttributes(a,e),CKEDITOR.tools.isEmpty(e.set)||(k||g).setAttributes(e.set),e.removed.length&&(k||g).removeAttributes(e.removed)):(e=g.findOne("img"),e.replace(g),k=e);h&&(b.element=k)}}};return function(a){var b,c;a.changed={};for(c=0;c<h.length;c++)b=h[c],a.changed[b]= +a.oldData?a.oldData[b]!==a.newData[b]:!1;for(c=0;c<h.length;c++)b=h[c],k[b](a,a.oldData?a.oldData[b]:null,a.newData[b]);a.inflate()}},checkHasNaturalRatio:function(a){var b=a.$;a=this.getNatural(a);return Math.round(b.clientWidth/a.width*a.height)==b.clientHeight||Math.round(b.clientHeight/a.height*a.width)==b.clientWidth},getNatural:function(a){if(a.$.naturalWidth)a={width:a.$.naturalWidth,height:a.$.naturalHeight};else{var b=new Image;b.src=a.getAttribute("src");a={width:b.width,height:b.height}}return a}}}(), +CKEDITOR.config.image2_captionedClass="image",CKEDITOR.config.plugins="dialogui,dialog,about,a11yhelp,basicstyles,blockquote,clipboard,panel,floatpanel,menu,contextmenu,resize,button,toolbar,elementspath,enterkey,entities,popup,filebrowser,floatingspace,listblock,richcombo,format,htmlwriter,horizontalrule,wysiwygarea,indent,indentlist,list,magicline,maximize,pastetext,pastefromword,removeformat,sourcearea,specialchar,stylescombo,tab,table,tabletools,undo,justify,showblocks,showborders,tableresize,sharedspace,sourcedialog,lineutils,widget,image2", +CKEDITOR.config.skin="moono",function(){var a=function(a,c){var g=CKEDITOR.getUrl("plugins/"+c);a=a.split(",");for(var f=0;f<a.length;f++)CKEDITOR.skin.icons[a[f]]={path:g,offset:-a[++f],bgsize:a[++f]}};CKEDITOR.env.hidpi?a("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,blockquote,168,,copy-rtl,192,,copy,216,,cut-rtl,240,,cut,264,,paste-rtl,288,,paste,312,,horizontalrule,336,,image,360,,indent-rtl,384,,indent,408,,outdent-rtl,432,,outdent,456,,justifyblock,480,,justifycenter,504,,justifyleft,528,,justifyright,552,,bulletedlist-rtl,576,,bulletedlist,600,,numberedlist-rtl,624,,numberedlist,648,,maximize,672,,pastefromword-rtl,696,,pastefromword,720,,pastetext-rtl,744,,pastetext,768,,removeformat,792,,showblocks-rtl,816,,showblocks,840,,source-rtl,864,,source,888,,sourcedialog-rtl,912,,sourcedialog,936,,specialchar,960,,table,984,,redo-rtl,1008,,redo,1032,,undo-rtl,1056,,undo,1080,,simplebox,2208,auto", "icons_hidpi.png"):a("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,blockquote,168,auto,copy-rtl,192,auto,copy,216,auto,cut-rtl,240,auto,cut,264,auto,paste-rtl,288,auto,paste,312,auto,horizontalrule,336,auto,image,360,auto,indent-rtl,384,auto,indent,408,auto,outdent-rtl,432,auto,outdent,456,auto,justifyblock,480,auto,justifycenter,504,auto,justifyleft,528,auto,justifyright,552,auto,bulletedlist-rtl,576,auto,bulletedlist,600,auto,numberedlist-rtl,624,auto,numberedlist,648,auto,maximize,672,auto,pastefromword-rtl,696,auto,pastefromword,720,auto,pastetext-rtl,744,auto,pastetext,768,auto,removeformat,792,auto,showblocks-rtl,816,auto,showblocks,840,auto,source-rtl,864,auto,source,888,auto,sourcedialog-rtl,912,auto,sourcedialog,936,auto,specialchar,960,auto,table,984,auto,redo-rtl,1008,auto,redo,1032,auto,undo-rtl,1056,auto,undo,1080,auto,simplebox,1104,auto", -"icons.png")}()})(); \ No newline at end of file +"icons.png")}())})(); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor/lang/eu.js b/core/assets/vendor/ckeditor/lang/eu.js index 65cb234d5138..1f3728236394 100644 --- a/core/assets/vendor/ckeditor/lang/eu.js +++ b/core/assets/vendor/ckeditor/lang/eu.js @@ -2,4 +2,4 @@ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ -CKEDITOR.lang['eu']={"widget":{"move":"Click and drag to move"},"undo":{"redo":"Berregin","undo":"Desegin"},"toolbar":{"toolbarCollapse":"Tresna-barra Txikitu","toolbarExpand":"Tresna-barra Luzatu","toolbarGroups":{"document":"Document","clipboard":"Clipboard/Undo","editing":"Editing","forms":"Forms","basicstyles":"Basic Styles","paragraph":"Paragraph","links":"Links","insert":"Insert","styles":"Styles","colors":"Colors","tools":"Tools"},"toolbars":"Editorearen Tresna-barra"},"table":{"border":"Ertzaren Zabalera","caption":"Epigrafea","cell":{"menu":"Gelaxka","insertBefore":"Txertatu Gelaxka Aurretik","insertAfter":"Txertatu Gelaxka Ostean","deleteCell":"Kendu Gelaxkak","merge":"Batu Gelaxkak","mergeRight":"Elkartu Eskumara","mergeDown":"Elkartu Behera","splitHorizontal":"Banatu Gelaxkak Horizontalki","splitVertical":"Banatu Gelaxkak Bertikalki","title":"Gelaxken Ezaugarriak","cellType":"Gelaxka Mota","rowSpan":"Hedatutako Lerroak","colSpan":"Hedatutako Zutabeak","wordWrap":"Itzulbira","hAlign":"Lerrokatze Horizontala","vAlign":"Lerrokatze Bertikala","alignBaseline":"Oinarri-lerroan","bgColor":"Fondoaren Kolorea","borderColor":"Ertzaren Kolorea","data":"Data","header":"Goiburua","yes":"Bai","no":"Ez","invalidWidth":"Gelaxkaren zabalera zenbaki bat izan behar da.","invalidHeight":"Gelaxkaren altuera zenbaki bat izan behar da.","invalidRowSpan":"Lerroen hedapena zenbaki osoa izan behar da.","invalidColSpan":"Zutabeen hedapena zenbaki osoa izan behar da.","chooseColor":"Choose"},"cellPad":"Gelaxken betegarria","cellSpace":"Gelaxka arteko tartea","column":{"menu":"Zutabea","insertBefore":"Txertatu Zutabea Aurretik","insertAfter":"Txertatu Zutabea Ostean","deleteColumn":"Ezabatu Zutabeak"},"columns":"Zutabeak","deleteTable":"Ezabatu Taula","headers":"Goiburuak","headersBoth":"Biak","headersColumn":"Lehen zutabea","headersNone":"Bat ere ez","headersRow":"Lehen lerroa","invalidBorder":"Ertzaren tamaina zenbaki bat izan behar da.","invalidCellPadding":"Gelaxken betegarria zenbaki bat izan behar da.","invalidCellSpacing":"Gelaxka arteko tartea zenbaki bat izan behar da.","invalidCols":"Zutabe kopurua 0 baino handiagoa den zenbakia izan behar da.","invalidHeight":"Taularen altuera zenbaki bat izan behar da.","invalidRows":"Lerro kopurua 0 baino handiagoa den zenbakia izan behar da.","invalidWidth":"Taularen zabalera zenbaki bat izan behar da.","menu":"Taularen Ezaugarriak","row":{"menu":"Lerroa","insertBefore":"Txertatu Lerroa Aurretik","insertAfter":"Txertatu Lerroa Ostean","deleteRow":"Ezabatu Lerroak"},"rows":"Lerroak","summary":"Laburpena","title":"Taularen Ezaugarriak","toolbar":"Taula","widthPc":"ehuneko","widthPx":"pixel","widthUnit":"zabalera unitatea"},"stylescombo":{"label":"Estiloa","panelTitle":"Formatu Estiloak","panelTitle1":"Bloke Estiloak","panelTitle2":"Inline Estiloak","panelTitle3":"Objektu Estiloak"},"specialchar":{"options":"Karaktere Berezien Aukerak","title":"Karaktere Berezia Aukeratu","toolbar":"Txertatu Karaktere Berezia"},"sourcedialog":{"toolbar":"HTML Iturburua","title":"HTML Iturburua"},"sourcearea":{"toolbar":"HTML Iturburua"},"showblocks":{"toolbar":"Blokeak erakutsi"},"removeformat":{"toolbar":"Kendu Formatua"},"pastetext":{"button":"Testu Arrunta bezala Itsatsi","title":"Testu Arrunta bezala Itsatsi"},"pastefromword":{"confirmCleanup":"Itsatsi nahi duzun testua Wordetik hartua dela dirudi. Itsatsi baino lehen garbitu nahi duzu?","error":"Barneko errore bat dela eta ezin izan da testua garbitu","title":"Itsatsi Word-etik","toolbar":"Itsatsi Word-etik"},"maximize":{"maximize":"Maximizatu","minimize":"Minimizatu"},"magicline":{"title":"Txertatu paragrafoa hemen"},"list":{"bulletedlist":"Buletdun Zerrenda","numberedlist":"Zenbakidun Zerrenda"},"justify":{"block":"Justifikatu","center":"Lerrokatu Erdian","left":"Lerrokatu Ezkerrean","right":"Lerrokatu Eskuman"},"indent":{"indent":"Handitu Koska","outdent":"Txikitu Koska"},"image2":{"alt":"Ordezko Testua","btnUpload":"Zerbitzarira bidalia","captioned":"Captioned image","captionPlaceholder":"Caption","infoTab":"Irudi informazioa","lockRatio":"Erlazioa Blokeatu","menu":"Irudi Ezaugarriak","pathName":"image","pathNameCaption":"caption","resetSize":"Tamaina Berrezarri","resizer":"Click and drag to resize","title":"Irudi Ezaugarriak","uploadTab":"Gora kargatu","urlMissing":"Irudiaren iturburu URL-a falta da."},"horizontalrule":{"toolbar":"Txertatu Marra Horizontala"},"format":{"label":"Formatua","panelTitle":"Formatua","tag_address":"Helbidea","tag_div":"Paragrafoa (DIV)","tag_h1":"Izenburua 1","tag_h2":"Izenburua 2","tag_h3":"Izenburua 3","tag_h4":"Izenburua 4","tag_h5":"Izenburua 5","tag_h6":"Izenburua 6","tag_p":"Arrunta","tag_pre":"Formateatua"},"elementspath":{"eleLabel":"Elementu bidea","eleTitle":"%1 elementua"},"contextmenu":{"options":"Testuingurko Menuaren Aukerak"},"clipboard":{"copy":"Kopiatu","copyError":"Zure web nabigatzailearen segurtasun ezarpenak testuak automatikoki kopiatzea ez dute baimentzen. Mesedez teklatua erabili ezazu (Ctrl/Cmd+C).","cut":"Ebaki","cutError":"Zure web nabigatzailearen segurtasun ezarpenak testuak automatikoki moztea ez dute baimentzen. Mesedez teklatua erabili ezazu (Ctrl/Cmd+X).","paste":"Itsatsi","pasteArea":"Itsasteko Area","pasteMsg":"Mesedez teklatua erabilita (<STRONG>Ctrl/Cmd+V</STRONG>) ondorego eremuan testua itsatsi eta <STRONG>OK</STRONG> sakatu.","securityMsg":"Nabigatzailearen segurtasun ezarpenak direla eta, editoreak ezin du arbela zuzenean erabili. Leiho honetan berriro itsatsi behar duzu.","title":"Itsatsi"},"button":{"selectedLabel":"%1 (Selected)"},"blockquote":{"toolbar":"Aipamen blokea"},"basicstyles":{"bold":"Lodia","italic":"Etzana","strike":"Marratua","subscript":"Azpi-indize","superscript":"Goi-indize","underline":"Azpimarratu"},"about":{"copy":"Copyright © $1. Eskubide guztiak erreserbaturik.","dlgTitle":"CKEditor(r)i buruz","help":"$1 aztertu laguntza jasotzeko.","moreInfo":"Lizentziari buruzko informazioa gure webgunean:","title":"CKEditor(r)i buruz","userGuide":"CKEditor User's Guide"},"editor":"Testu Aberastuko Editorea","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"ALT 0 sakatu laguntza jasotzeko","browseServer":"Zerbitzaria arakatu","url":"URL","protocol":"Protokoloa","upload":"Gora kargatu","uploadSubmit":"Zerbitzarira bidali","image":"Irudia","flash":"Flasha","form":"Formularioa","checkbox":"Kontrol-laukia","radio":"Aukera-botoia","textField":"Testu Eremua","textarea":"Testu-area","hiddenField":"Ezkutuko Eremua","button":"Botoia","select":"Hautespen Eremua","imageButton":"Irudi Botoia","notSet":"<Ezarri gabe>","id":"Id","name":"Izena","langDir":"Hizkuntzaren Norabidea","langDirLtr":"Ezkerretik Eskumara(LTR)","langDirRtl":"Eskumatik Ezkerrera (RTL)","langCode":"Hizkuntza Kodea","longDescr":"URL Deskribapen Luzea","cssClass":"Estilo-orriko Klaseak","advisoryTitle":"Izenburua","cssStyle":"Estiloa","ok":"Ados","cancel":"Utzi","close":"Itxi","preview":"Aurrebista","resize":"Arrastatu tamaina aldatzeko","generalTab":"Orokorra","advancedTab":"Aurreratua","validateNumberFailed":"Balio hau ez da zenbaki bat.","confirmNewPage":"Eduki honetan gorde gabe dauden aldaketak galduko dira. Ziur zaude orri berri bat kargatu nahi duzula?","confirmCancel":"Aukera batzuk aldatu egin dira. Ziur zaude elkarrizketa-koadroa itxi nahi duzula?","options":"Aukerak","target":"Target (Helburua)","targetNew":"Leiho Berria (_blank)","targetTop":"Goieneko Leihoan (_top)","targetSelf":"Leiho Berdinean (_self)","targetParent":"Leiho Gurasoan (_parent)","langDirLTR":"Ezkerretik Eskumara(LTR)","langDirRTL":"Eskumatik Ezkerrera (RTL)","styles":"Estiloa","cssClasses":"Estilo-orriko Klaseak","width":"Zabalera","height":"Altuera","align":"Lerrokatu","alignLeft":"Ezkerrera","alignRight":"Eskuman","alignCenter":"Erdian","alignJustify":"Justifikatu","alignTop":"Goian","alignMiddle":"Erdian","alignBottom":"Behean","alignNone":"None","invalidValue":"Balio ezegokia.","invalidHeight":"Altuera zenbaki bat izan behar da.","invalidWidth":"Zabalera zenbaki bat izan behar da.","invalidCssLength":"\"%1\" eremurako zehaztutako balioa zenbaki positibo bat izan behar du, aukeran CSS neurri unitate batekin (px, %, in, cm, mm, em, ex, pt edo pc).","invalidHtmlLength":"\"%1\" eremurako zehaztutako balioa zenbaki positibo bat izan behar du, aukeran HTML neurri unitate batekin (px edo %).","invalidInlineStyle":"Lerroko estiloan zehazten dena tupla \"name : value\" formatuko eta puntu eta komaz bereiztutako tupla bat edo gehiago izan behar dira.","cssLengthTooltip":"Zenbakia bakarrik zehazten bada pixeletan egongo da. CSS neurri unitatea ere zehaztu ahal da (px, %, in, cm, mm, em, ex, pt, edo pc).","unavailable":"%1<span class=\"cke_accessibility\">, erabilezina</span>"}}; \ No newline at end of file +CKEDITOR.lang['eu']={"widget":{"move":"Click and drag to move"},"undo":{"redo":"Berregin","undo":"Desegin"},"toolbar":{"toolbarCollapse":"Tresna-barra Txikitu","toolbarExpand":"Tresna-barra Luzatu","toolbarGroups":{"document":"Document","clipboard":"Clipboard/Undo","editing":"Editing","forms":"Forms","basicstyles":"Basic Styles","paragraph":"Paragraph","links":"Links","insert":"Insert","styles":"Styles","colors":"Colors","tools":"Tools"},"toolbars":"Editorearen Tresna-barra"},"table":{"border":"Ertzaren Zabalera","caption":"Epigrafea","cell":{"menu":"Gelaxka","insertBefore":"Txertatu Gelaxka Aurretik","insertAfter":"Txertatu Gelaxka Ostean","deleteCell":"Kendu Gelaxkak","merge":"Batu Gelaxkak","mergeRight":"Elkartu Eskumara","mergeDown":"Elkartu Behera","splitHorizontal":"Banatu Gelaxkak Horizontalki","splitVertical":"Banatu Gelaxkak Bertikalki","title":"Gelaxken Ezaugarriak","cellType":"Gelaxka Mota","rowSpan":"Hedatutako Lerroak","colSpan":"Hedatutako Zutabeak","wordWrap":"Itzulbira","hAlign":"Lerrokatze Horizontala","vAlign":"Lerrokatze Bertikala","alignBaseline":"Oinarri-lerroan","bgColor":"Fondoaren Kolorea","borderColor":"Ertzaren Kolorea","data":"Data","header":"Goiburua","yes":"Bai","no":"Ez","invalidWidth":"Gelaxkaren zabalera zenbaki bat izan behar da.","invalidHeight":"Gelaxkaren altuera zenbaki bat izan behar da.","invalidRowSpan":"Lerroen hedapena zenbaki osoa izan behar da.","invalidColSpan":"Zutabeen hedapena zenbaki osoa izan behar da.","chooseColor":"Choose"},"cellPad":"Gelaxken betegarria","cellSpace":"Gelaxka arteko tartea","column":{"menu":"Zutabea","insertBefore":"Txertatu Zutabea Aurretik","insertAfter":"Txertatu Zutabea Ostean","deleteColumn":"Ezabatu Zutabeak"},"columns":"Zutabeak","deleteTable":"Ezabatu Taula","headers":"Goiburuak","headersBoth":"Biak","headersColumn":"Lehen zutabea","headersNone":"Bat ere ez","headersRow":"Lehen lerroa","invalidBorder":"Ertzaren tamaina zenbaki bat izan behar da.","invalidCellPadding":"Gelaxken betegarria zenbaki bat izan behar da.","invalidCellSpacing":"Gelaxka arteko tartea zenbaki bat izan behar da.","invalidCols":"Zutabe kopurua 0 baino handiagoa den zenbakia izan behar da.","invalidHeight":"Taularen altuera zenbaki bat izan behar da.","invalidRows":"Lerro kopurua 0 baino handiagoa den zenbakia izan behar da.","invalidWidth":"Taularen zabalera zenbaki bat izan behar da.","menu":"Taularen Ezaugarriak","row":{"menu":"Lerroa","insertBefore":"Txertatu Lerroa Aurretik","insertAfter":"Txertatu Lerroa Ostean","deleteRow":"Ezabatu Lerroak"},"rows":"Lerroak","summary":"Laburpena","title":"Taularen Ezaugarriak","toolbar":"Taula","widthPc":"ehuneko","widthPx":"pixel","widthUnit":"zabalera unitatea"},"stylescombo":{"label":"Estiloa","panelTitle":"Formatu Estiloak","panelTitle1":"Bloke Estiloak","panelTitle2":"Inline Estiloak","panelTitle3":"Objektu Estiloak"},"specialchar":{"options":"Karaktere Berezien Aukerak","title":"Karaktere Berezia Aukeratu","toolbar":"Txertatu Karaktere Berezia"},"sourcedialog":{"toolbar":"HTML Iturburua","title":"HTML Iturburua"},"sourcearea":{"toolbar":"HTML Iturburua"},"showblocks":{"toolbar":"Blokeak erakutsi"},"removeformat":{"toolbar":"Kendu Formatua"},"pastetext":{"button":"Testu Arrunta bezala Itsatsi","title":"Testu Arrunta bezala Itsatsi"},"pastefromword":{"confirmCleanup":"Itsatsi nahi duzun testua Wordetik hartua dela dirudi. Itsatsi baino lehen garbitu nahi duzu?","error":"Barneko errore bat dela eta ezin izan da testua garbitu","title":"Itsatsi Word-etik","toolbar":"Itsatsi Word-etik"},"maximize":{"maximize":"Maximizatu","minimize":"Minimizatu"},"magicline":{"title":"Txertatu paragrafoa hemen"},"list":{"bulletedlist":"Buletdun Zerrenda","numberedlist":"Zenbakidun Zerrenda"},"justify":{"block":"Justifikatu","center":"Lerrokatu Erdian","left":"Lerrokatu Ezkerrean","right":"Lerrokatu Eskuman"},"indent":{"indent":"Handitu Koska","outdent":"Txikitu Koska"},"image2":{"alt":"Ordezko testua","btnUpload":"Bidali zerbitzarira","captioned":"Argazki oina","captionPlaceholder":"Argazki oina","infoTab":"Irudiaren informazioa","lockRatio":"Blokeatu erlazioa","menu":"Irudiaren propietateak","pathName":"Irudia","pathNameCaption":"Argazki oina","resetSize":"Berrezarri tamaina","resizer":"Klikatu eta arrastatu tamainaz aldatzeko","title":"Irudiaren propietateak","uploadTab":"Kargatu","urlMissing":"Irudiaren iturburuaren URLa falta da."},"horizontalrule":{"toolbar":"Txertatu Marra Horizontala"},"format":{"label":"Formatua","panelTitle":"Formatua","tag_address":"Helbidea","tag_div":"Paragrafoa (DIV)","tag_h1":"Izenburua 1","tag_h2":"Izenburua 2","tag_h3":"Izenburua 3","tag_h4":"Izenburua 4","tag_h5":"Izenburua 5","tag_h6":"Izenburua 6","tag_p":"Arrunta","tag_pre":"Formateatua"},"elementspath":{"eleLabel":"Elementu bidea","eleTitle":"%1 elementua"},"contextmenu":{"options":"Testuingurko Menuaren Aukerak"},"clipboard":{"copy":"Kopiatu","copyError":"Zure web nabigatzailearen segurtasun ezarpenak testuak automatikoki kopiatzea ez dute baimentzen. Mesedez teklatua erabili ezazu (Ctrl/Cmd+C).","cut":"Ebaki","cutError":"Zure web nabigatzailearen segurtasun ezarpenak testuak automatikoki moztea ez dute baimentzen. Mesedez teklatua erabili ezazu (Ctrl/Cmd+X).","paste":"Itsatsi","pasteArea":"Itsasteko Area","pasteMsg":"Mesedez teklatua erabilita (<STRONG>Ctrl/Cmd+V</STRONG>) ondorego eremuan testua itsatsi eta <STRONG>OK</STRONG> sakatu.","securityMsg":"Nabigatzailearen segurtasun ezarpenak direla eta, editoreak ezin du arbela zuzenean erabili. Leiho honetan berriro itsatsi behar duzu.","title":"Itsatsi"},"button":{"selectedLabel":"%1 (Selected)"},"blockquote":{"toolbar":"Aipamen blokea"},"basicstyles":{"bold":"Lodia","italic":"Etzana","strike":"Marratua","subscript":"Azpi-indize","superscript":"Goi-indize","underline":"Azpimarratu"},"about":{"copy":"Copyright © $1. Eskubide guztiak erreserbaturik.","dlgTitle":"CKEditor(r)i buruz","help":"$1 aztertu laguntza jasotzeko.","moreInfo":"Lizentziari buruzko informazioa gure webgunean:","title":"CKEditor(r)i buruz","userGuide":"CKEditor User's Guide"},"editor":"Testu Aberastuko Editorea","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"ALT 0 sakatu laguntza jasotzeko","browseServer":"Zerbitzaria arakatu","url":"URL","protocol":"Protokoloa","upload":"Gora kargatu","uploadSubmit":"Zerbitzarira bidali","image":"Irudia","flash":"Flasha","form":"Formularioa","checkbox":"Kontrol-laukia","radio":"Aukera-botoia","textField":"Testu Eremua","textarea":"Testu-area","hiddenField":"Ezkutuko Eremua","button":"Botoia","select":"Hautespen Eremua","imageButton":"Irudi Botoia","notSet":"<Ezarri gabe>","id":"Id","name":"Izena","langDir":"Hizkuntzaren Norabidea","langDirLtr":"Ezkerretik Eskumara(LTR)","langDirRtl":"Eskumatik Ezkerrera (RTL)","langCode":"Hizkuntza Kodea","longDescr":"URL Deskribapen Luzea","cssClass":"Estilo-orriko Klaseak","advisoryTitle":"Izenburua","cssStyle":"Estiloa","ok":"Ados","cancel":"Utzi","close":"Itxi","preview":"Aurrebista","resize":"Arrastatu tamaina aldatzeko","generalTab":"Orokorra","advancedTab":"Aurreratua","validateNumberFailed":"Balio hau ez da zenbaki bat.","confirmNewPage":"Eduki honetan gorde gabe dauden aldaketak galduko dira. Ziur zaude orri berri bat kargatu nahi duzula?","confirmCancel":"Aukera batzuk aldatu egin dira. Ziur zaude elkarrizketa-koadroa itxi nahi duzula?","options":"Aukerak","target":"Target (Helburua)","targetNew":"Leiho Berria (_blank)","targetTop":"Goieneko Leihoan (_top)","targetSelf":"Leiho Berdinean (_self)","targetParent":"Leiho Gurasoan (_parent)","langDirLTR":"Ezkerretik Eskumara(LTR)","langDirRTL":"Eskumatik Ezkerrera (RTL)","styles":"Estiloa","cssClasses":"Estilo-orriko Klaseak","width":"Zabalera","height":"Altuera","align":"Lerrokatu","alignLeft":"Ezkerrera","alignRight":"Eskuman","alignCenter":"Erdian","alignJustify":"Justifikatu","alignTop":"Goian","alignMiddle":"Erdian","alignBottom":"Behean","alignNone":"None","invalidValue":"Balio ezegokia.","invalidHeight":"Altuera zenbaki bat izan behar da.","invalidWidth":"Zabalera zenbaki bat izan behar da.","invalidCssLength":"\"%1\" eremurako zehaztutako balioa zenbaki positibo bat izan behar du, aukeran CSS neurri unitate batekin (px, %, in, cm, mm, em, ex, pt edo pc).","invalidHtmlLength":"\"%1\" eremurako zehaztutako balioa zenbaki positibo bat izan behar du, aukeran HTML neurri unitate batekin (px edo %).","invalidInlineStyle":"Lerroko estiloan zehazten dena tupla \"name : value\" formatuko eta puntu eta komaz bereiztutako tupla bat edo gehiago izan behar dira.","cssLengthTooltip":"Zenbakia bakarrik zehazten bada pixeletan egongo da. CSS neurri unitatea ere zehaztu ahal da (px, %, in, cm, mm, em, ex, pt, edo pc).","unavailable":"%1<span class=\"cke_accessibility\">, erabilezina</span>"}}; \ No newline at end of file diff --git a/core/assets/vendor/ckeditor/lang/ug.js b/core/assets/vendor/ckeditor/lang/ug.js index a6d86fa83114..4fc8e5b4f13d 100644 --- a/core/assets/vendor/ckeditor/lang/ug.js +++ b/core/assets/vendor/ckeditor/lang/ug.js @@ -2,4 +2,4 @@ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ -CKEDITOR.lang['ug']={"widget":{"move":"Click and drag to move"},"undo":{"redo":"قايتىلا ","undo":"ÙŠÛنىۋال"},"toolbar":{"toolbarCollapse":"قورال بالداقنى قاتلا","toolbarExpand":"قورال بالداقنى ياي","toolbarGroups":{"document":"پۈتۈك","clipboard":"چاپلاش تاختىسى/ÙŠÛنىۋال","editing":"تەھرىر","forms":"جەدۋەل","basicstyles":"ئاساسىي ئۇسلۇب","paragraph":"ئابزاس","links":"ئۇلانما","insert":"قىستۇر","styles":"ئۇسلۇب","colors":"رەÚ","tools":"قورال"},"toolbars":"قورال بالداق"},"table":{"border":"گىرۋەك","caption":"ماۋزۇ","cell":{"menu":"كاتەكچە","insertBefore":"سولغا كاتەكچە قىستۇر","insertAfter":"ئوÚغا كاتەكچە قىستۇر","deleteCell":"كەتەكچە ئۆچۈر","merge":"كاتەكچە بىرلەشتۈر","mergeRight":"كاتەكچىنى ئوÚغا بىرلەشتۈر","mergeDown":"كاتەكچىنى ئاستىغا بىرلەشتۈر","splitHorizontal":"كاتەكچىنى توغرىسىغا بىرلەشتۈر","splitVertical":"كاتەكچىنى بويىغا بىرلەشتۈر","title":"كاتەكچە خاسلىقى","cellType":"كاتەكچە تىپى","rowSpan":"بويىغا چات ئارىسى قۇر سانى","colSpan":"توغرىسىغا چات ئارىسى ئىستون سانى","wordWrap":"ئۆزلۈكىدىن قۇر قاتلا","hAlign":"توغرىسىغا توغرىلا","vAlign":"بويىغا توغرىلا","alignBaseline":"ئاساسىي سىزىق","bgColor":"تەگلىك رەÚÚ¯Ù‰","borderColor":"گىرۋەك رەÚÚ¯Ù‰","data":"سانلىق مەلۇمات","header":"جەدۋەل باشى","yes":"ھەئە","no":"ياق","invalidWidth":"كاتەكچە ÙƒÛ•Úلىكى چوقۇم سان بولىدۇ","invalidHeight":"كاتەكچە ئÛگىزلىكى چوقۇم سان بولىدۇ","invalidRowSpan":"قۇر چات ئارىسى چوقۇم پۈتۈن سان بولىدۇ ","invalidColSpan":"ئىستون چات ئارىسى چوقۇم پۈتۈن سان بولىدۇ","chooseColor":"تاللاÚ"},"cellPad":"يان ئارىلىق","cellSpace":"ئارىلىق","column":{"menu":"ئىستون","insertBefore":"سولغا ئىستون قىستۇر","insertAfter":"ئوÚغا ئىستون قىستۇر","deleteColumn":"ئىستون ئۆچۈر"},"columns":"ئىستون سانى","deleteTable":"جەدۋەل ئۆچۈر","headers":"ماۋزۇ كاتەكچە","headersBoth":"بىرىنچى ئىستون Û‹Û• بىرىنچى قۇر","headersColumn":"بىرىنچى ئىستون","headersNone":"يوق","headersRow":"بىرىنچى قۇر","invalidBorder":"گىرۋەك توملۇقى چوقۇم سان بولىدۇ","invalidCellPadding":"كاتەكچىگە چوقۇم سان تولدۇرۇلىدۇ","invalidCellSpacing":"كاتەكچە ئارىلىقى چوقۇم سان بولىدۇ","invalidCols":"بەلگىلەنگەن قۇر سانى چوقۇم نۆلدىن Ú†ÙˆÚ Ø¨ÙˆÙ„Ù‰Ø¯Û‡","invalidHeight":"جەدۋەل ئÛگىزلىكى چوقۇم سان بولىدۇ","invalidRows":"بەلگىلەنگەن ئىستون سانى چوقۇم نۆلدىن Ú†ÙˆÚ Ø¨ÙˆÙ„Ù‰Ø¯Û‡","invalidWidth":"جەدۋەل ÙƒÛ•Úلىكى چوقۇم سان بولىدۇ","menu":"جەدۋەل خاسلىقى","row":{"menu":"قۇر","insertBefore":"ئۈستىگە قۇر قىستۇر","insertAfter":"ئاستىغا قۇر قىستۇر","deleteRow":"قۇر ئۆچۈر"},"rows":"قۇر سانى","summary":"ئۈزۈندە","title":"جەدۋەل خاسلىقى","toolbar":"جەدۋەل","widthPc":"پىرسەنت","widthPx":"پىكسÛÙ„","widthUnit":"ÙƒÛ•Úلىك بىرلىكى"},"stylescombo":{"label":"ئۇسلۇب","panelTitle":"ئۇسلۇب","panelTitle1":"بۆلەك دەرىجىسىدىكى ئÛÙ„ÛÙ…Ûنت ئۇسلۇبى","panelTitle2":"ئىچكى باغلانما ئÛÙ„ÛÙ…Ûنت ئۇسلۇبى","panelTitle3":"Ù†Û•Ú (Object) ئÛÙ„ÛÙ…Ûنت ئۇسلۇبى"},"specialchar":{"options":"ئالاھىدە ھەرپ تاللانمىسى","title":"ئالاھىدە ھەرپ تاللاÚ","toolbar":"ئالاھىدە ھەرپ قىستۇر"},"sourcedialog":{"toolbar":"مەنبە","title":"مەنبە"},"sourcearea":{"toolbar":"مەنبە"},"showblocks":{"toolbar":"بۆلەكنى كۆرسەت"},"removeformat":{"toolbar":"پىچىمنى چىقىرىۋەت"},"pastetext":{"button":"پىچىمى يوق تÛكىست سۈپىتىدە چاپلا","title":"پىچىمى يوق تÛكىست سۈپىتىدە چاپلا"},"pastefromword":{"confirmCleanup":"سىز چاپلىماقچى بولغان مەزمۇن MS Word تىن كەلگەندەك قىلىدۇ، MS Word پىچىمىنى تازىلىۋەتكەندىن ÙƒÛيىن ئاندىن چاپلامدۇ؟","error":"ئىچكى خاتالىق سەۋەبىدىن چاپلايدىغان سانلىق مەلۇماتنى تازىلىيالمايدۇ","title":"MS Word تىن چاپلا","toolbar":"MS Word تىن چاپلا"},"maximize":{"maximize":"Ú†ÙˆÚايت","minimize":"كىچىكلەت"},"magicline":{"title":"بۇ جايغا ئابزاس قىستۇر"},"list":{"bulletedlist":"تۈر بەلگە تىزىمى","numberedlist":"تەرتىپ نومۇر تىزىمى"},"justify":{"block":"ئىككى تەرەپتىن توغرىلا","center":"ئوتتۇرىغا توغرىلا","left":"سولغا توغرىلا","right":"ئوÚغا توغرىلا"},"indent":{"indent":"تارايت","outdent":"ÙƒÛ•Úەيت"},"image2":{"alt":"تÛكىست ئالماشتۇر","btnUpload":"مۇلازىمÛتىرغا يۈكلە","captioned":"Captioned image","captionPlaceholder":"Caption","infoTab":"سۈرەت","lockRatio":"نىسبەتنى قۇلۇپلا","menu":"سۈرەت خاسلىقى","pathName":"image","pathNameCaption":"caption","resetSize":"ئەسلى Ú†ÙˆÚÙ„Û‡Ù‚","resizer":"Click and drag to resize","title":"سۈرەت خاسلىقى","uploadTab":"يۈكلە","urlMissing":"Ø³ÛˆØ±Û•ØªÙ†Ù‰Ú Ø¦Û•Ø³Ù„Ù‰ ھۆججەت ئادرÛسى ÙƒÛ•Ù…"},"horizontalrule":{"toolbar":"توغرا سىزىق قىستۇر"},"format":{"label":"پىچىم","panelTitle":"پىچىم","tag_address":"ئادرÛس","tag_div":"ئابزاس (DIV)","tag_h1":"ماۋزۇ 1","tag_h2":"ماۋزۇ 2","tag_h3":"ماۋزۇ 3","tag_h4":"ماۋزۇ 4","tag_h5":"ماۋزۇ 5","tag_h6":"ماۋزۇ 6","tag_p":"ئادەتتىكى","tag_pre":"تىزىلغان پىچىم"},"elementspath":{"eleLabel":"ئÛÙ„ÛÙ…Ûنت يولى","eleTitle":"%1 ئÛÙ„ÛÙ…Ûنت"},"contextmenu":{"options":"قىسقا يول تىزىملىك تاللانمىسى"},"clipboard":{"copy":"نەشر ھوقۇقىغا ئىگە بەلگىسى","copyError":"تور كۆرگۈÚÙ‰Ø²Ù†Ù‰Ú Ø¨Ù‰Ø®Û•ØªÛ•Ø±Ù„Ù‰Ùƒ تەÚشىكى ØªÛ•Ú¾Ø±Ù‰Ø±Ù„Ù‰Ú¯ÛˆÚ†Ù†Ù‰Ú ÙƒÛ†Ú†ÛˆØ± مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تÛز كۇنۇپكا (Ctrl/Cmd+C) ئارقىلىق تاماملاÚ","cut":"كەس","cutError":"تور كۆرگۈÚÙ‰Ø²Ù†Ù‰Ú Ø¨Ù‰Ø®Û•ØªÛ•Ø±Ù„Ù‰Ùƒ تەÚشىكى ØªÛ•Ú¾Ø±Ù‰Ø±Ù„Ù‰Ú¯ÛˆÚ†Ù†Ù‰Ú ÙƒÛ•Ø³ مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تÛز كۇنۇپكا (Ctrl/Cmd+X) ئارقىلىق تاماملاÚ","paste":"چاپلا","pasteArea":"چاپلاش دائىرىسى","pasteMsg":"ھەرپتاختا تÛز كۇنۇپكا (<STRONG>Ctrl/Cmd+V</STRONG>) نى ئىشلىتىپ مەزمۇننى تۆۋەندىكى رامكىغا كۆچۈرۈÚØŒ ئاندىن <STRONG>جەزملە</STRONG>نى بÛسىÚ","securityMsg":"توركۆرگۈÚÙ‰Ø²Ù†Ù‰Ú Ø¨Ù‰Ø®Û•ØªÛ•Ø±Ù„Ù‰Ùƒ تەÚشىكى سەۋەبىدىن بۇ تەھرىرلىگۈچ چاپلاش تاختىسىدىكى مەزمۇننى بىۋاستە زىيارەت قىلالمايدۇ، بۇ كۆزنەكتە قايتا بىر Ù‚Ûتىم چاپلىشىÚىز ÙƒÛرەك.","title":"چاپلا"},"button":{"selectedLabel":"%1 (Selected)"},"blockquote":{"toolbar":"بۆلەك نەقىل"},"basicstyles":{"bold":"توم","italic":"يانتۇ","strike":"ئۆچۈرۈش سىزىقى","subscript":"تۆۋەن ئىندÛكس","superscript":"يۇقىرى ئىندÛكس","underline":"ئاستى سىزىق"},"about":{"copy":"Copyright © $1. نەشر ھوقۇقىغا ئىگە","dlgTitle":"CKEditor ھەققىدە","help":"$1 نى زىيارەت قىلىپ ياردەمگە ئÛرىشىÚ","moreInfo":"تور تۇرايىمىزنى زىيارەت قىلىپ ÙƒÛلىشىمگە ئائىت تÛخىمۇ ÙƒÛ†Ù¾ ئۇچۇرغا ئÛرىشىÚ","title":"CKEditor ھەققىدە","userGuide":"CKEditor ئىشلەتكۈچى قوللانمىسى"},"editor":"تەھرىرلىگۈچ","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"ALT+0 نى بÛسىپ ياردەمنى كۆرۈÚ","browseServer":"كۆرسىتىش مۇلازىمÛتىر","url":"ئەسلى ھۆججەت","protocol":"ÙƒÛلىشىم","upload":"يۈكلە","uploadSubmit":"مۇلازىمÛتىرغا يۈكلە","image":"سۈرەت","flash":"Flash","form":"جەدۋەل","checkbox":"ÙƒÛ†Ù¾ تاللاش رامكىسى","radio":"يەككە تاللاش توپچىسى","textField":"يەككە قۇر تÛكىست","textarea":"ÙƒÛ†Ù¾ قۇر تÛكىست","hiddenField":"يوشۇرۇن دائىرە","button":"توپچا","select":"تىزىم/تىزىملىك","imageButton":"سۈرەت دائىرە","notSet":"‹تەÚشەلمىگەن›","id":"ID","name":"ئات","langDir":"تىل يۆنىلىشى","langDirLtr":"سولدىن ئوÚغا (LTR)","langDirRtl":"ئوÚدىن سولغا (RTL)","langCode":"تىل كودى","longDescr":"تەپسىلىي چۈشەندۈرۈش ئادرÛسى","cssClass":"ئۇسلۇب Ø®Ù‰Ù„Ù‰Ù†Ù‰Ú Ø¦Ø§ØªÙ‰","advisoryTitle":"ماۋزۇ","cssStyle":"قۇر ئىچىدىكى ئۇسلۇبى","ok":"جەزملە","cancel":"ۋاز ÙƒÛ•Ú†","close":"تاقا","preview":"ئالدىن كۆزەت","resize":"Ú†ÙˆÚلۇقىنى ئۆزگەرت","generalTab":"ئادەتتىكى","advancedTab":"ئالىي","validateNumberFailed":"سان پىچىمىدا كىرگۈزۈش زۆرۈر","confirmNewPage":"نۆۋەتتىكى پۈتۈك مەزمۇنى ساقلانمىدى، ÙŠÛÚÙ‰ پۈتۈك قۇرامسىز؟","confirmCancel":"قىسمەن ئۆزگەرتىش ساقلانمىدى، بۇ سۆزلەشكۈنى تاقامسىز؟","options":"تاللانما","target":"نىشان كۆزنەك","targetNew":"ÙŠÛÚÙ‰ كۆزنەك (_blank)","targetTop":"پۈتۈن بەت (_top)","targetSelf":"مەزكۇر كۆزنەك (_self)","targetParent":"ئاتا كۆزنەك (_parent)","langDirLTR":"سولدىن ئوÚغا (LTR)","langDirRTL":"ئوÚدىن سولغا (RTL)","styles":"ئۇسلۇبلار","cssClasses":"ئۇسلۇب خىللىرى","width":"ÙƒÛ•Úلىك","height":"ئÛگىزلىك","align":"توغرىلىنىشى","alignLeft":"سول","alignRight":"ئوÚ","alignCenter":"ئوتتۇرا","alignJustify":"ئىككى تەرەپتىن توغرىلا","alignTop":"ئۈستى","alignMiddle":"ئوتتۇرا","alignBottom":"ئاستى","alignNone":"None","invalidValue":"ئىناۋەتسىز قىممەت.","invalidHeight":"ئÛگىزلىك چوقۇم رەقەم پىچىمىدا بولۇشى زۆرۈر","invalidWidth":"ÙƒÛ•Úلىك چوقۇم رەقەم پىچىمىدا بولۇشى زۆرۈر","invalidCssLength":"بۇ سۆز بۆلىكى چوقۇم مۇۋاپىق بولغان CSS ئۇزۇنلۇق قىممىتى بولۇشى زۆرۈر، بىرلىكى (px, %, in, cm, mm, em, ex, pt ياكى pc)","invalidHtmlLength":"بۇ سۆز بۆلىكى چوقۇم بىرىكمە HTML ئۇزۇنلۇق قىممىتى بولۇشى ÙƒÛرەك. ئۆز ئىچىگە ئالىدىغان بىرلىك (px ياكى %)","invalidInlineStyle":"ئىچكى باغلانما ئۇسلۇبى چوقۇم Ú†Ûكىتلىك Ù¾Û•Ø´ بىلەن ئايرىلغان بىر ياكى ÙƒÛ†Ù¾ «خاسلىق ئاتى:خاسلىق قىممىتى» پىچىمىدا بولۇشى لازىم","cssLengthTooltip":"بۇ سۆز بۆلىكى بىرىكمە CSS ئۇزۇنلۇق قىممىتى بولۇشى ÙƒÛرەك. ئۆز ئىچىگە ئالىدىغان بىرلىك (px, %, in, cm, mm, em, ex, pt ياكى pc)","unavailable":"%1<span class=\\\\\"cke_accessibility\\\\\">ØŒ ئىشلەتكىلى بولمايدۇ</span>"}}; \ No newline at end of file +CKEDITOR.lang['ug']={"widget":{"move":"يۆتكەشتە Ú†Ûكىپ سۆرەÚ"},"undo":{"redo":"قايتىلا ","undo":"ÙŠÛنىۋال"},"toolbar":{"toolbarCollapse":"قورال بالداقنى قاتلا","toolbarExpand":"قورال بالداقنى ياي","toolbarGroups":{"document":"پۈتۈك","clipboard":"چاپلاش تاختىسى/ÙŠÛنىۋال","editing":"تەھرىر","forms":"جەدۋەل","basicstyles":"ئاساسىي ئۇسلۇب","paragraph":"ئابزاس","links":"ئۇلانما","insert":"قىستۇر","styles":"ئۇسلۇب","colors":"رەÚ","tools":"قورال"},"toolbars":"قورال بالداق"},"table":{"border":"گىرۋەك","caption":"ماۋزۇ","cell":{"menu":"كاتەكچە","insertBefore":"سولغا كاتەكچە قىستۇر","insertAfter":"ئوÚغا كاتەكچە قىستۇر","deleteCell":"كەتەكچە ئۆچۈر","merge":"كاتەكچە بىرلەشتۈر","mergeRight":"كاتەكچىنى ئوÚغا بىرلەشتۈر","mergeDown":"كاتەكچىنى ئاستىغا بىرلەشتۈر","splitHorizontal":"كاتەكچىنى توغرىسىغا بىرلەشتۈر","splitVertical":"كاتەكچىنى بويىغا بىرلەشتۈر","title":"كاتەكچە خاسلىقى","cellType":"كاتەكچە تىپى","rowSpan":"بويىغا چات ئارىسى قۇر سانى","colSpan":"توغرىسىغا چات ئارىسى ئىستون سانى","wordWrap":"ئۆزلۈكىدىن قۇر قاتلا","hAlign":"توغرىسىغا توغرىلا","vAlign":"بويىغا توغرىلا","alignBaseline":"ئاساسىي سىزىق","bgColor":"تەگلىك رەÚÚ¯Ù‰","borderColor":"گىرۋەك رەÚÚ¯Ù‰","data":"سانلىق مەلۇمات","header":"جەدۋەل باشى","yes":"ھەئە","no":"ياق","invalidWidth":"كاتەكچە ÙƒÛ•Úلىكى چوقۇم سان بولىدۇ","invalidHeight":"كاتەكچە ئÛگىزلىكى چوقۇم سان بولىدۇ","invalidRowSpan":"قۇر چات ئارىسى چوقۇم پۈتۈن سان بولىدۇ ","invalidColSpan":"ئىستون چات ئارىسى چوقۇم پۈتۈن سان بولىدۇ","chooseColor":"تاللاÚ"},"cellPad":"يان ئارىلىق","cellSpace":"ئارىلىق","column":{"menu":"ئىستون","insertBefore":"سولغا ئىستون قىستۇر","insertAfter":"ئوÚغا ئىستون قىستۇر","deleteColumn":"ئىستون ئۆچۈر"},"columns":"ئىستون سانى","deleteTable":"جەدۋەل ئۆچۈر","headers":"ماۋزۇ كاتەكچە","headersBoth":"بىرىنچى ئىستون Û‹Û• بىرىنچى قۇر","headersColumn":"بىرىنچى ئىستون","headersNone":"يوق","headersRow":"بىرىنچى قۇر","invalidBorder":"گىرۋەك توملۇقى چوقۇم سان بولىدۇ","invalidCellPadding":"كاتەكچىگە چوقۇم سان تولدۇرۇلىدۇ","invalidCellSpacing":"كاتەكچە ئارىلىقى چوقۇم سان بولىدۇ","invalidCols":"بەلگىلەنگەن قۇر سانى چوقۇم نۆلدىن Ú†ÙˆÚ Ø¨ÙˆÙ„Ù‰Ø¯Û‡","invalidHeight":"جەدۋەل ئÛگىزلىكى چوقۇم سان بولىدۇ","invalidRows":"بەلگىلەنگەن ئىستون سانى چوقۇم نۆلدىن Ú†ÙˆÚ Ø¨ÙˆÙ„Ù‰Ø¯Û‡","invalidWidth":"جەدۋەل ÙƒÛ•Úلىكى چوقۇم سان بولىدۇ","menu":"جەدۋەل خاسلىقى","row":{"menu":"قۇر","insertBefore":"ئۈستىگە قۇر قىستۇر","insertAfter":"ئاستىغا قۇر قىستۇر","deleteRow":"قۇر ئۆچۈر"},"rows":"قۇر سانى","summary":"ئۈزۈندە","title":"جەدۋەل خاسلىقى","toolbar":"جەدۋەل","widthPc":"پىرسەنت","widthPx":"پىكسÛÙ„","widthUnit":"ÙƒÛ•Úلىك بىرلىكى"},"stylescombo":{"label":"ئۇسلۇب","panelTitle":"ئۇسلۇب","panelTitle1":"بۆلەك دەرىجىسىدىكى ئÛÙ„ÛÙ…Ûنت ئۇسلۇبى","panelTitle2":"ئىچكى باغلانما ئÛÙ„ÛÙ…Ûنت ئۇسلۇبى","panelTitle3":"Ù†Û•Ú (Object) ئÛÙ„ÛÙ…Ûنت ئۇسلۇبى"},"specialchar":{"options":"ئالاھىدە ھەرپ تاللانمىسى","title":"ئالاھىدە ھەرپ تاللاÚ","toolbar":"ئالاھىدە ھەرپ قىستۇر"},"sourcedialog":{"toolbar":"مەنبە","title":"مەنبە"},"sourcearea":{"toolbar":"مەنبە"},"showblocks":{"toolbar":"بۆلەكنى كۆرسەت"},"removeformat":{"toolbar":"پىچىمنى چىقىرىۋەت"},"pastetext":{"button":"پىچىمى يوق تÛكىست سۈپىتىدە چاپلا","title":"پىچىمى يوق تÛكىست سۈپىتىدە چاپلا"},"pastefromword":{"confirmCleanup":"سىز چاپلىماقچى بولغان مەزمۇن MS Word تىن كەلگەندەك قىلىدۇ، MS Word پىچىمىنى تازىلىۋەتكەندىن ÙƒÛيىن ئاندىن چاپلامدۇ؟","error":"ئىچكى خاتالىق سەۋەبىدىن چاپلايدىغان سانلىق مەلۇماتنى تازىلىيالمايدۇ","title":"MS Word تىن چاپلا","toolbar":"MS Word تىن چاپلا"},"maximize":{"maximize":"Ú†ÙˆÚايت","minimize":"كىچىكلەت"},"magicline":{"title":"بۇ جايغا ئابزاس قىستۇر"},"list":{"bulletedlist":"تۈر بەلگە تىزىمى","numberedlist":"تەرتىپ نومۇر تىزىمى"},"justify":{"block":"ئىككى تەرەپتىن توغرىلا","center":"ئوتتۇرىغا توغرىلا","left":"سولغا توغرىلا","right":"ئوÚغا توغرىلا"},"indent":{"indent":"تارايت","outdent":"ÙƒÛ•Úەيت"},"image2":{"alt":"تÛكىست ئالماشتۇر","btnUpload":"مۇلازىمÛتىرغا يۈكلە","captioned":"Captioned image","captionPlaceholder":"Caption","infoTab":"سۈرەت","lockRatio":"نىسبەتنى قۇلۇپلا","menu":"سۈرەت خاسلىقى","pathName":"image","pathNameCaption":"caption","resetSize":"ئەسلى Ú†ÙˆÚÙ„Û‡Ù‚","resizer":"Click and drag to resize","title":"سۈرەت خاسلىقى","uploadTab":"يۈكلە","urlMissing":"Ø³ÛˆØ±Û•ØªÙ†Ù‰Ú Ø¦Û•Ø³Ù„Ù‰ ھۆججەت ئادرÛسى ÙƒÛ•Ù…"},"horizontalrule":{"toolbar":"توغرا سىزىق قىستۇر"},"format":{"label":"پىچىم","panelTitle":"پىچىم","tag_address":"ئادرÛس","tag_div":"ئابزاس (DIV)","tag_h1":"ماۋزۇ 1","tag_h2":"ماۋزۇ 2","tag_h3":"ماۋزۇ 3","tag_h4":"ماۋزۇ 4","tag_h5":"ماۋزۇ 5","tag_h6":"ماۋزۇ 6","tag_p":"ئادەتتىكى","tag_pre":"تىزىلغان پىچىم"},"elementspath":{"eleLabel":"ئÛÙ„ÛÙ…Ûنت يولى","eleTitle":"%1 ئÛÙ„ÛÙ…Ûنت"},"contextmenu":{"options":"قىسقا يول تىزىملىك تاللانمىسى"},"clipboard":{"copy":"نەشر ھوقۇقىغا ئىگە بەلگىسى","copyError":"تور كۆرگۈÚÙ‰Ø²Ù†Ù‰Ú Ø¨Ù‰Ø®Û•ØªÛ•Ø±Ù„Ù‰Ùƒ تەÚشىكى ØªÛ•Ú¾Ø±Ù‰Ø±Ù„Ù‰Ú¯ÛˆÚ†Ù†Ù‰Ú ÙƒÛ†Ú†ÛˆØ± مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تÛز كۇنۇپكا (Ctrl/Cmd+C) ئارقىلىق تاماملاÚ","cut":"كەس","cutError":"تور كۆرگۈÚÙ‰Ø²Ù†Ù‰Ú Ø¨Ù‰Ø®Û•ØªÛ•Ø±Ù„Ù‰Ùƒ تەÚشىكى ØªÛ•Ú¾Ø±Ù‰Ø±Ù„Ù‰Ú¯ÛˆÚ†Ù†Ù‰Ú ÙƒÛ•Ø³ مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تÛز كۇنۇپكا (Ctrl/Cmd+X) ئارقىلىق تاماملاÚ","paste":"چاپلا","pasteArea":"چاپلاش دائىرىسى","pasteMsg":"ھەرپتاختا تÛز كۇنۇپكا (<STRONG>Ctrl/Cmd+V</STRONG>) نى ئىشلىتىپ مەزمۇننى تۆۋەندىكى رامكىغا كۆچۈرۈÚØŒ ئاندىن <STRONG>جەزملە</STRONG>نى بÛسىÚ","securityMsg":"توركۆرگۈÚÙ‰Ø²Ù†Ù‰Ú Ø¨Ù‰Ø®Û•ØªÛ•Ø±Ù„Ù‰Ùƒ تەÚشىكى سەۋەبىدىن بۇ تەھرىرلىگۈچ چاپلاش تاختىسىدىكى مەزمۇننى بىۋاستە زىيارەت قىلالمايدۇ، بۇ كۆزنەكتە قايتا بىر Ù‚Ûتىم چاپلىشىÚىز ÙƒÛرەك.","title":"چاپلا"},"button":{"selectedLabel":"%1 (تاللاندى)"},"blockquote":{"toolbar":"بۆلەك نەقىل"},"basicstyles":{"bold":"توم","italic":"يانتۇ","strike":"ئۆچۈرۈش سىزىقى","subscript":"تۆۋەن ئىندÛكس","superscript":"يۇقىرى ئىندÛكس","underline":"ئاستى سىزىق"},"about":{"copy":"Copyright © $1. نەشر ھوقۇقىغا ئىگە","dlgTitle":"CKEditor ھەققىدە","help":"$1 نى زىيارەت قىلىپ ياردەمگە ئÛرىشىÚ","moreInfo":"تور تۇرايىمىزنى زىيارەت قىلىپ ÙƒÛلىشىمگە ئائىت تÛخىمۇ ÙƒÛ†Ù¾ ئۇچۇرغا ئÛرىشىÚ","title":"CKEditor ھەققىدە","userGuide":"CKEditor ئىشلەتكۈچى قوللانمىسى"},"editor":"تەھرىرلىگۈچ","editorPanel":"مول تÛكست تەھرىرلىگۈچ تاختىسى","common":{"editorHelp":"ALT+0 نى بÛسىپ ياردەمنى كۆرۈÚ","browseServer":"كۆرسىتىش مۇلازىمÛتىر","url":"ئەسلى ھۆججەت","protocol":"ÙƒÛلىشىم","upload":"يۈكلە","uploadSubmit":"مۇلازىمÛتىرغا يۈكلە","image":"سۈرەت","flash":"Flash","form":"جەدۋەل","checkbox":"ÙƒÛ†Ù¾ تاللاش رامكىسى","radio":"يەككە تاللاش توپچىسى","textField":"يەككە قۇر تÛكىست","textarea":"ÙƒÛ†Ù¾ قۇر تÛكىست","hiddenField":"يوشۇرۇن دائىرە","button":"توپچا","select":"تىزىم/تىزىملىك","imageButton":"سۈرەت دائىرە","notSet":"‹تەÚشەلمىگەن›","id":"ID","name":"ئات","langDir":"تىل يۆنىلىشى","langDirLtr":"سولدىن ئوÚغا (LTR)","langDirRtl":"ئوÚدىن سولغا (RTL)","langCode":"تىل كودى","longDescr":"تەپسىلىي چۈشەندۈرۈش ئادرÛسى","cssClass":"ئۇسلۇب Ø®Ù‰Ù„Ù‰Ù†Ù‰Ú Ø¦Ø§ØªÙ‰","advisoryTitle":"ماۋزۇ","cssStyle":"قۇر ئىچىدىكى ئۇسلۇبى","ok":"جەزملە","cancel":"ۋاز ÙƒÛ•Ú†","close":"تاقا","preview":"ئالدىن كۆزەت","resize":"Ú†ÙˆÚلۇقىنى ئۆزگەرت","generalTab":"ئادەتتىكى","advancedTab":"ئالىي","validateNumberFailed":"سان پىچىمىدا كىرگۈزۈش زۆرۈر","confirmNewPage":"نۆۋەتتىكى پۈتۈك مەزمۇنى ساقلانمىدى، ÙŠÛÚÙ‰ پۈتۈك قۇرامسىز؟","confirmCancel":"قىسمەن ئۆزگەرتىش ساقلانمىدى، بۇ سۆزلەشكۈنى تاقامسىز؟","options":"تاللانما","target":"نىشان كۆزنەك","targetNew":"ÙŠÛÚÙ‰ كۆزنەك (_blank)","targetTop":"پۈتۈن بەت (_top)","targetSelf":"مەزكۇر كۆزنەك (_self)","targetParent":"ئاتا كۆزنەك (_parent)","langDirLTR":"سولدىن ئوÚغا (LTR)","langDirRTL":"ئوÚدىن سولغا (RTL)","styles":"ئۇسلۇبلار","cssClasses":"ئۇسلۇب خىللىرى","width":"ÙƒÛ•Úلىك","height":"ئÛگىزلىك","align":"توغرىلىنىشى","alignLeft":"سول","alignRight":"ئوÚ","alignCenter":"ئوتتۇرا","alignJustify":"ئىككى تەرەپتىن توغرىلا","alignTop":"ئۈستى","alignMiddle":"ئوتتۇرا","alignBottom":"ئاستى","alignNone":"يوق","invalidValue":"ئىناۋەتسىز قىممەت.","invalidHeight":"ئÛگىزلىك چوقۇم رەقەم پىچىمىدا بولۇشى زۆرۈر","invalidWidth":"ÙƒÛ•Úلىك چوقۇم رەقەم پىچىمىدا بولۇشى زۆرۈر","invalidCssLength":"بۇ سۆز بۆلىكى چوقۇم مۇۋاپىق بولغان CSS ئۇزۇنلۇق قىممىتى بولۇشى زۆرۈر، بىرلىكى (px, %, in, cm, mm, em, ex, pt ياكى pc)","invalidHtmlLength":"بۇ سۆز بۆلىكى چوقۇم بىرىكمە HTML ئۇزۇنلۇق قىممىتى بولۇشى ÙƒÛرەك. ئۆز ئىچىگە ئالىدىغان بىرلىك (px ياكى %)","invalidInlineStyle":"ئىچكى باغلانما ئۇسلۇبى چوقۇم Ú†Ûكىتلىك Ù¾Û•Ø´ بىلەن ئايرىلغان بىر ياكى ÙƒÛ†Ù¾ «خاسلىق ئاتى:خاسلىق قىممىتى» پىچىمىدا بولۇشى لازىم","cssLengthTooltip":"بۇ سۆز بۆلىكى بىرىكمە CSS ئۇزۇنلۇق قىممىتى بولۇشى ÙƒÛرەك. ئۆز ئىچىگە ئالىدىغان بىرلىك (px, %, in, cm, mm, em, ex, pt ياكى pc)","unavailable":"%1<span class=\\\\\"cke_accessibility\\\\\">ØŒ ئىشلەتكىلى بولمايدۇ</span>"}}; \ No newline at end of file diff --git a/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js b/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js index 09e51d2bd680..bb2e0edda6a5 100644 --- a/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +++ b/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js @@ -2,9 +2,9 @@ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ -CKEDITOR.dialog.add("a11yHelp",function(j){var a=j.lang.a11yhelp,l=CKEDITOR.tools.getNextId(),e={8:a.backspace,9:a.tab,13:a.enter,16:a.shift,17:a.ctrl,18:a.alt,19:a.pause,20:a.capslock,27:a.escape,33:a.pageUp,34:a.pageDown,35:a.end,36:a.home,37:a.leftArrow,38:a.upArrow,39:a.rightArrow,40:a.downArrow,45:a.insert,46:a["delete"],91:a.leftWindowKey,92:a.rightWindowKey,93:a.selectKey,96:a.numpad0,97:a.numpad1,98:a.numpad2,99:a.numpad3,100:a.numpad4,101:a.numpad5,102:a.numpad6,103:a.numpad7,104:a.numpad8, +CKEDITOR.dialog.add("a11yHelp",function(l){var a=l.lang.a11yhelp,n=CKEDITOR.tools.getNextId(),e={8:a.backspace,9:a.tab,13:a.enter,16:a.shift,17:a.ctrl,18:a.alt,19:a.pause,20:a.capslock,27:a.escape,33:a.pageUp,34:a.pageDown,35:a.end,36:a.home,37:a.leftArrow,38:a.upArrow,39:a.rightArrow,40:a.downArrow,45:a.insert,46:a["delete"],91:a.leftWindowKey,92:a.rightWindowKey,93:a.selectKey,96:a.numpad0,97:a.numpad1,98:a.numpad2,99:a.numpad3,100:a.numpad4,101:a.numpad5,102:a.numpad6,103:a.numpad7,104:a.numpad8, 105:a.numpad9,106:a.multiply,107:a.add,109:a.subtract,110:a.decimalPoint,111:a.divide,112:a.f1,113:a.f2,114:a.f3,115:a.f4,116:a.f5,117:a.f6,118:a.f7,119:a.f8,120:a.f9,121:a.f10,122:a.f11,123:a.f12,144:a.numLock,145:a.scrollLock,186:a.semiColon,187:a.equalSign,188:a.comma,189:a.dash,190:a.period,191:a.forwardSlash,192:a.graveAccent,219:a.openBracket,220:a.backSlash,221:a.closeBracket,222:a.singleQuote};e[CKEDITOR.ALT]=a.alt;e[CKEDITOR.SHIFT]=a.shift;e[CKEDITOR.CTRL]=a.ctrl;var f=[CKEDITOR.ALT,CKEDITOR.SHIFT, -CKEDITOR.CTRL],m=/\$\{(.*?)\}/g,p=function(){var a=j.keystrokeHandler.keystrokes,g={},c;for(c in a)g[a[c]]=c;return function(a,c){var b;if(g[c]){b=g[c];for(var h,i,k=[],d=0;d<f.length;d++)i=f[d],h=b/f[d],1<h&&2>=h&&(b-=i,k.push(e[i]));k.push(e[b]||String.fromCharCode(b));b=k.join("+")}else b=a;return b}}();return{title:a.title,minWidth:600,minHeight:400,contents:[{id:"info",label:j.lang.common.generalTab,expand:!0,elements:[{type:"html",id:"legends",style:"white-space:normal;",focus:function(){this.getElement().focus()}, -html:function(){for(var e='<div class="cke_accessibility_legend" role="document" aria-labelledby="'+l+'_arialbl" tabIndex="-1">%1</div><span id="'+l+'_arialbl" class="cke_voice_label">'+a.contents+" </span>",g=[],c=a.legend,j=c.length,f=0;f<j;f++){for(var b=c[f],h=[],i=b.items,k=i.length,d=0;d<k;d++){var n=i[d],o=n.legend.replace(m,p);o.match(m)||h.push("<dt>%1</dt><dd>%2</dd>".replace("%1",n.name).replace("%2",o))}g.push("<h1>%1</h1><dl>%2</dl>".replace("%1",b.name).replace("%2",h.join("")))}return e.replace("%1", -g.join(""))}()+'<style type="text/css">.cke_accessibility_legend{width:600px;height:400px;padding-right:5px;overflow-y:auto;overflow-x:hidden;}.cke_browser_quirks .cke_accessibility_legend,{height:390px}.cke_accessibility_legend *{white-space:normal;}.cke_accessibility_legend h1{font-size: 20px;border-bottom: 1px solid #AAA;margin: 5px 0px 15px;}.cke_accessibility_legend dl{margin-left: 5px;}.cke_accessibility_legend dt{font-size: 13px;font-weight: bold;}.cke_accessibility_legend dd{margin:10px}</style>'}]}], +CKEDITOR.CTRL],p=/\$\{(.*?)\}/g,t=function(){var a=l.keystrokeHandler.keystrokes,g={},c;for(c in a)g[a[c]]=c;return function(a,c){var b;if(g[c]){b=g[c];for(var h,k,m=[],d=0;d<f.length;d++)k=f[d],h=b/f[d],1<h&&2>=h&&(b-=k,m.push(e[k]));m.push(e[b]||String.fromCharCode(b));b=m.join("+")}else b=a;return b}}();return{title:a.title,minWidth:600,minHeight:400,contents:[{id:"info",label:l.lang.common.generalTab,expand:!0,elements:[{type:"html",id:"legends",style:"white-space:normal;",focus:function(){this.getElement().focus()}, +html:function(){for(var e='\x3cdiv class\x3d"cke_accessibility_legend" role\x3d"document" aria-labelledby\x3d"'+n+'_arialbl" tabIndex\x3d"-1"\x3e%1\x3c/div\x3e\x3cspan id\x3d"'+n+'_arialbl" class\x3d"cke_voice_label"\x3e'+a.contents+" \x3c/span\x3e",g=[],c=a.legend,l=c.length,f=0;f<l;f++){for(var b=c[f],h=[],k=b.items,m=k.length,d=0;d<m;d++){var q=k[d],r=q.legend.replace(p,t);r.match(p)||h.push("\x3cdt\x3e%1\x3c/dt\x3e\x3cdd\x3e%2\x3c/dd\x3e".replace("%1",q.name).replace("%2",r))}g.push("\x3ch1\x3e%1\x3c/h1\x3e\x3cdl\x3e%2\x3c/dl\x3e".replace("%1", +b.name).replace("%2",h.join("")))}return e.replace("%1",g.join(""))}()+'\x3cstyle type\x3d"text/css"\x3e.cke_accessibility_legend{width:600px;height:400px;padding-right:5px;overflow-y:auto;overflow-x:hidden;}.cke_browser_quirks .cke_accessibility_legend,{height:390px}.cke_accessibility_legend *{white-space:normal;}.cke_accessibility_legend h1{font-size: 20px;border-bottom: 1px solid #AAA;margin: 5px 0px 15px;}.cke_accessibility_legend dl{margin-left: 5px;}.cke_accessibility_legend dt{font-size: 13px;font-weight: bold;}.cke_accessibility_legend dd{margin:10px}\x3c/style\x3e'}]}], buttons:[CKEDITOR.dialog.cancelButton]}}); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js b/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js index f3e00c8e19fa..d88d335172e3 100644 --- a/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +++ b/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js @@ -7,4 +7,4 @@ CKEDITOR.plugins.setLang("a11yhelp","ko",{title:"ì ‘ê·¼ì„± 설명",contents:"ë„ {name:"편집기 요소 경로 막대",legend:"${elementsPathFocus}를 눌러서 요소 경로 막대를 íƒìƒ‰í• 수 있습니다. ë‹¤ìŒ ìš”ì†Œë¡œ ì´ë™í•˜ë ¤ë©´ TAB 키 ë˜ëŠ” 오른쪽 화살표 키를 누릅니다. SHIFT+TAB 키 ë˜ëŠ” 왼쪽 화살표 키를 누르면 ì´ì „ 버튼으로 ì´ë™í• 수 있습니다. 스페ì´ìŠ¤ 키나 ENTER 키를 누르면 íŽ¸ì§‘ê¸°ì˜ í•´ë‹¹ í•ëª©ì„ ì„ íƒí•©ë‹ˆë‹¤."}]},{name:"ëª…ë ¹",items:[{name:" ëª…ë ¹ 실행 취소",legend:"${undo} 누르시오"},{name:" ëª…ë ¹ 다시 실행",legend:"${redo} 누르시오"},{name:" 굵게 ëª…ë ¹",legend:"${bold} 누르시오"},{name:" 기울임 ê¼´ ëª…ë ¹",legend:"${italic} 누르시오"},{name:" 밑줄 ëª…ë ¹",legend:"${underline} 누르시오"},{name:" ë§í¬ ëª…ë ¹",legend:"${link} 누르시오"},{name:" 툴바 줄ì´ê¸° ëª…ë ¹",legend:"${toolbarCollapse} 누르시오"}, {name:" ì´ì „ í¬ì»¤ìŠ¤ 공간 ì ‘ê·¼ ëª…ë ¹",legend:"íƒˆìž ê¸°í˜¸(^) ì´ì „ì— ${accessPreviousSpace} 를 누르면, ì ‘ê·¼ 불가능하면서 가장 가까운 í¬ì»¤ìŠ¤ ì˜ì—ì— ì ‘ê·¼í•©ë‹ˆë‹¤. 예를 들면, ë‘ ì¸ì ‘í•œ HR 요소가 있습니다. 키 ì¡°í•©ì„ ë°˜ë³µí•´ì„œ 멀리있는 í¬ì»¤ìŠ¤ ì˜ì—ë“¤ì— ë„ë‹¬í• ìˆ˜ 있습니다."},{name:"ë‹¤ìŒ í¬ì»¤ìŠ¤ 공간 ì ‘ê·¼ ëª…ë ¹",legend:"íƒˆìž ê¸°í˜¸(^) 다ìŒì— ${accessNextSpace} 를 누르면, ì ‘ê·¼ 불가능하면서 가장 가까운 í¬ì»¤ìŠ¤ ì˜ì—ì— ì ‘ê·¼í•©ë‹ˆë‹¤. 예를 들면, ë‘ ì¸ì ‘í•œ HR 요소가 있습니다. 키 ì¡°í•©ì„ ë°˜ë³µí•´ì„œ 멀리있는 í¬ì»¤ìŠ¤ ì˜ì—ë“¤ì— ë„ë‹¬í• ìˆ˜ 있습니다. "},{name:" ì ‘ê·¼ì„± ë„움ë§",legend:"${a11yHelp} 누르시오"}]}],backspace:"Backspace 키",tab:"íƒ í‚¤",enter:"엔터 키",shift:"시프트 키",ctrl:"컨트롤 키",alt:"알트 키",pause:"ì¼ì‹œì •ì§€ 키",capslock:"캡스 ë¡ í‚¤", escape:"ì´ìŠ¤ì¼€ì´í”„ 키",pageUp:"페ì´ì§€ ì—… 키",pageDown:"페ì´ì§€ 다운 키",end:"엔드 키",home:"홈 키",leftArrow:"왼쪽 화살표 키",upArrow:"위쪽 화살표 키",rightArrow:"오른쪽 화살표 키",downArrow:"아래쪽 화살표 키",insert:"ì¸ì„œíŠ¸ 키","delete":"ì‚ì œ 키",leftWindowKey:"왼쪽 윈ë„ìš° 키",rightWindowKey:"오른쪽 윈ë„ìš° 키",selectKey:"ì…€ë ‰íŠ¸ 키",numpad0:"ìˆ«ìž íŒ¨ë“œ 0 키",numpad1:"ìˆ«ìž íŒ¨ë“œ 1 키",numpad2:"ìˆ«ìž íŒ¨ë“œ 2 키",numpad3:"ìˆ«ìž íŒ¨ë“œ 3 키",numpad4:"ìˆ«ìž íŒ¨ë“œ 4 키",numpad5:"ìˆ«ìž íŒ¨ë“œ 5 키",numpad6:"ìˆ«ìž íŒ¨ë“œ 6 키",numpad7:"ìˆ«ìž íŒ¨ë“œ 7 키",numpad8:"ìˆ«ìž íŒ¨ë“œ 8 키",numpad9:"ìˆ«ìž íŒ¨ë“œ 9 키",multiply:"곱셈(*) 키",add:"ë§ì…ˆ(+) 키",subtract:"뺄셈(-) 키", -decimalPoint:"온ì (.) 키",divide:"나눗셈(/) 키",f1:"F1 키",f2:"F2 키",f3:"F3 키",f4:"F4 키",f5:"F5 키",f6:"F6 키",f7:"F7 키",f8:"F8 키",f9:"F9 키",f10:"F10 키",f11:"F11 키",f12:"F12 키",numLock:"Num Lock 키",scrollLock:"Scroll Lock 키",semiColon:"ì„¸ë¯¸ì½œë¡ (;) 키",equalSign:"등호(=) 키",comma:"쉼표(,) 키",dash:"대시(-) 키",period:"온ì (.) 키",forwardSlash:"슬래시(/) 키",graveAccent:"ì–µìŒ ì•…ì„¼íŠ¸(`) 키",openBracket:"브ë¼ì¼“ 열기([) 키",backSlash:"ì—슬래시(\\\\) 키",closeBracket:"브ë¼ì¼“ 닫기(]) 키",singleQuote:"외 따옴표(') 키"}); \ No newline at end of file +decimalPoint:"온ì (.) 키",divide:"나눗셈(/) 키",f1:"F1 키",f2:"F2 키",f3:"F3 키",f4:"F4 키",f5:"F5 키",f6:"F6 키",f7:"F7 키",f8:"F8 키",f9:"F9 키",f10:"F10 키",f11:"F11 키",f12:"F12 키",numLock:"Num Lock 키",scrollLock:"Scroll Lock 키",semiColon:"ì„¸ë¯¸ì½œë¡ (;) 키",equalSign:"등호(\x3d) 키",comma:"쉼표(,) 키",dash:"대시(-) 키",period:"온ì (.) 키",forwardSlash:"슬래시(/) 키",graveAccent:"ì–µìŒ ì•…ì„¼íŠ¸(`) 키",openBracket:"브ë¼ì¼“ 열기([) 키",backSlash:"ì—슬래시(\\\\) 키",closeBracket:"브ë¼ì¼“ 닫기(]) 키",singleQuote:"외 따옴표(') 키"}); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js b/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js index e664bee39526..588e12013f7e 100644 --- a/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +++ b/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js @@ -8,4 +8,4 @@ legend:"Inside a dialog, press TAB to navigate to the next dialog element, press {name:"Ùەرمانەکان",items:[{name:"پووچکردنەوەی Ùەرمان",legend:"کلیك ${undo}"},{name:"هەڵگەڕانەوەی Ùەرمان",legend:"کلیك ${redo}"},{name:"Ùەرمانی دەقی Ù‚Û•ÚµÛ•Ùˆ",legend:"کلیك ${bold}"},{name:"Ùەرمانی دەقی لار",legend:"کلیك ${italic}"},{name:"Ùەرمانی ژێرهێڵ",legend:"کلیك ${underline}"},{name:"Ùەرمانی به‌ستەر",legend:"کلیك ${link}"},{name:"شاردەنەوەی تووڵامراز",legend:"کلیك ${toolbarCollapse}"},{name:"چوونەناو سەرنجدانی پێشوی Ùەرمانی بۆشایی",legend:"کلیک ${accessPreviousSpace} to access the closest unreachable focus space before the caret, for example: two adjacent HR elements. Repeat the key combination to reach distant focus spaces."}, {name:"چوونەناو سەرنجدانی داهاتووی Ùەرمانی بۆشایی",legend:"کلیک ${accessNextSpace} to access the closest unreachable focus space after the caret, for example: two adjacent HR elements. Repeat the key combination to reach distant focus spaces."},{name:"دەستپێگەیشتنی یارمەتی",legend:"کلیك ${a11yHelp}"}]}],backspace:"Backspace",tab:"Tab",enter:"Enter",shift:"Shift",ctrl:"Ctrl",alt:"Alt",pause:"Pause",capslock:"Caps Lock",escape:"Escape",pageUp:"Page Up",pageDown:"Page Down",end:"End",home:"Home",leftArrow:"Left Arrow", upArrow:"Up Arrow",rightArrow:"Right Arrow",downArrow:"Down Arrow",insert:"Insert","delete":"Delete",leftWindowKey:"پەنجەرەی Ú†Û•Ù¾",rightWindowKey:"پەنجەرەی ڕاست",selectKey:"Select",numpad0:"Numpad 0",numpad1:"1",numpad2:"2",numpad3:"3",numpad4:"4",numpad5:"5",numpad6:"6",numpad7:"7",numpad8:"8",numpad9:"9",multiply:"*",add:"+",subtract:"-",decimalPoint:".",divide:"/",f1:"F1",f2:"F2",f3:"F3",f4:"F4",f5:"F5",f6:"F6",f7:"F7",f8:"F8",f9:"F9",f10:"F10",f11:"F11",f12:"F12",numLock:"Num Lock",scrollLock:"Scroll Lock", -semiColon:";",equalSign:"=",comma:",",dash:"-",period:".",forwardSlash:"/",graveAccent:"`",openBracket:"[",backSlash:"\\\\",closeBracket:"}",singleQuote:"'"}); \ No newline at end of file +semiColon:";",equalSign:"\x3d",comma:",",dash:"-",period:".",forwardSlash:"/",graveAccent:"`",openBracket:"[",backSlash:"\\\\",closeBracket:"}",singleQuote:"'"}); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js b/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js index 3200048e2bbd..788695cbb91b 100644 --- a/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +++ b/core/assets/vendor/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js @@ -2,10 +2,11 @@ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ -CKEDITOR.plugins.setLang("a11yhelp","ug",{title:"قوشۇمچە چۈشەندۈرۈش",contents:"ياردەم مەزمۇنى. بۇ سۆزلەشكۈنى ياپماقچى بولسىÚىز ESC نى بÛسىÚ.",legend:[{name:"ئادەتتىكى",items:[{name:"قورال بالداق تەھرىر",legend:"${toolbarFocus} بÛسىلسا قورال بالداققا ÙŠÛتەكلەيدۇ، TAB ياكى SHIFT+TAB ئارقىلىق قورال بالداق گۇرۇپپىسى تاللىنىدۇ، Ø¦ÙˆÚ Ø³ÙˆÙ„ يا ئوقتا توپچا تاللىنىدۇ، بوشلۇق ياكى Enter كۇنۇپكىسىدا تاللانغان توپچىنى قوللىنىدۇ."},{name:"تەھرىرلىگۈچ سۆزلەشكۈسى",legend:"Inside a dialog, press TAB to navigate to the next dialog element, press SHIFT+TAB to move to the previous dialog element, press ENTER to submit the dialog, press ESC to cancel the dialog. When a dialog has multiple tabs, the tab list can be reached either with ALT+F10 or with TAB as part of the dialog tabbing order. With tab list focused, move to the next and previous tab with RIGHT and LEFT ARROW, respectively."}, +CKEDITOR.plugins.setLang("a11yhelp","ug",{title:"قوشۇمچە چۈشەندۈرۈش",contents:"ياردەم مەزمۇنى. بۇ سۆزلەشكۈنى ياپماقچى بولسىÚىز ESC نى بÛسىÚ.",legend:[{name:"ئادەتتىكى",items:[{name:"قورال بالداق تەھرىر",legend:"${toolbarFocus} بÛسىلسا قورال بالداققا ÙŠÛتەكلەيدۇ، TAB ياكى SHIFT+TAB ئارقىلىق قورال بالداق گۇرۇپپىسى تاللىنىدۇ، Ø¦ÙˆÚ Ø³ÙˆÙ„ يا ئوقتا توپچا تاللىنىدۇ، بوشلۇق ياكى Enter كۇنۇپكىسىدا تاللانغان توپچىنى قوللىنىدۇ."},{name:"تەھرىرلىگۈچ سۆزلەشكۈسى",legend:"سۆزلەشكۈدە TAB كۇنۇپكىسىدا ÙƒÛيىنكى سۆز بۆلىكىگە يۆتكىلىدۇ، SHIFT+TAB بىرىكمە كۇنۇپكىسىدا ئالدىنقى سۆز بۆلىكىگە يۆتكىلىدۇ، ENTER كۇنۇپكىسىدا سۆزلەشكۈنى تاپشۇرىدۇ، ESC كۇنۇپكىسى سۆزلەشكۈدىن ۋاز ÙƒÛچىدۇ. ÙƒÛ†Ù¾ بەتكۈچلۈك سۆزلەشكۈگە نىسبەتەن، ALT+F10 دا بەتكۈچ تىزىمىغا يۆتكەيدۇ. ئاندىن TAB كۇنۇپكىسى ياكى Ø¦ÙˆÚ ÙŠØ§ ئوق كۇنۇپكىسى ÙƒÛيىنكى بەتكۈچكە يۆتكەيدۇ؛SHIFT+ TAB كۇنۇپكىسى ياكى سول يا ئوق كۇنۇپكىسى ئالدىنقى بەتكۈچكە يۆتكەيدۇ. بوشلۇق كۇنۇپكىسى ياكى ENTER كۇنۇپكىسى بەتكۈچنى تاللايدۇ."}, {name:"تەھرىرلىگۈچ تىل مۇھىت تىزىملىكى",legend:"${contextMenu} ياكى ئەپ كۇنۇپكىسىدا تىل مۇھىت تىزىملىكىنى ئاچىدۇ. ئاندىن TAB ياكى ئاستى يا ئوق كۇنۇپكىسىدا ÙƒÛيىنكى تىزىملىك تۈرىگە يۆتكەيدۇ؛ SHIFT+TAB ياكى ئۈستى يا ئوق كۇنۇپكىسىدا ئالدىنقى تىزىملىك تۈرىگە يۆتكەيدۇ. بوشلۇق ياكى ENTER كۇنۇپكىسىدا تىزىملىك تۈرىنى تاللايدۇ. بوشلۇق، ENTER ياكى Ø¦ÙˆÚ ÙŠØ§ ئوق كۇنۇپكىسىدا تارماق تىزىملىكنى ئاچىدۇ. قايتىش تىزىملىكىگە ESC ياكى سول يا ئوق كۇنۇپكىسى ئىشلىتىلىدۇ. ESC كۇنۇپكىسىدا تىل مۇھىت تىزىملىكى تاقىلىدۇ."},{name:"تەھرىرلىگۈچ تىزىمى", legend:"تىزىم قۇتىسىدا، ÙƒÛيىنكى تىزىم تۈرىگە يۆتكەشتە TAB ياكى ئاستى يا ئوق كۇنۇپكىسى ئىشلىتىلىدۇ. ئالدىنقى تىزىم تۈرىگە يۆتكەشتە SHIFT+TAB ياكى ئۈستى يا ئوق كۇنۇپكىسى ئىشلىتىلىدۇ. بوشلۇق ياكى ENTER كۇنۇپكىسىدا تىزىم تۈرىنى تاللايدۇ.ESC كۇنۇپكىسىدا تىزىم قۇتىسىنى يىغىدۇ."},{name:"تەھرىرلىگۈچ ئÛÙ„ÛÙ…Ûنت يول بالداق",legend:"${elementsPathFocus} بÛسىلسا ئÛÙ„ÛÙ…Ûنت يول بالداققا ÙŠÛتەكلەيدۇ، TAB ياكى Ø¦ÙˆÚ ÙŠØ§ ئوقتا ÙƒÛيىنكى ئÛÙ„ÛÙ…Ûنت تاللىنىدۇ، SHIFT+TAB ياكى سول يا ئوقتا ئالدىنقى ئÛÙ„ÛÙ…Ûنت تاللىنىدۇ، بوشلۇق ياكى Enter كۇنۇپكىسىدا تەھرىرلىگۈچتىكى ئÛÙ„ÛÙ…Ûنت تاللىنىدۇ."}]}, {name:"بۇيرۇق",items:[{name:"بۇيرۇقتىن ÙŠÛنىۋال",legend:"${undo} نى بÛسىÚ"},{name:"قايتىلاش بۇيرۇقى",legend:"${redo} نى بÛسىÚ"},{name:"توملىتىش بۇيرۇقى",legend:"${bold} نى بÛسىÚ"},{name:"يانتۇ بۇيرۇقى",legend:"${italic} نى بÛسىÚ"},{name:"ئاستى سىزىق بۇيرۇقى",legend:"${underline} نى بÛسىÚ"},{name:"ئۇلانما بۇيرۇقى",legend:"${link} نى بÛسىÚ"},{name:"قورال بالداق قاتلاش بۇيرۇقى",legend:"${toolbarCollapse} نى بÛسىÚ"},{name:"ئالدىنقى Ùوكۇس نۇقتىسىنى زىيارەت قىلىدىغان بۇيرۇق",legend:"${accessPreviousSpace} بÛسىپ ^ بەلگىسىگە Ø¦Û•Ú ÙŠÛقىن زىيارەت قىلغىلى بولمايدىغان Ùوكۇس نۇقتا Ø±Ø§ÙŠÙˆÙ†Ù‰Ù†Ù‰Ú Ø¦Ø§Ù„Ø¯Ù‰Ù†Ù‰ زىيارەت قىلىدۇ، مەسىلەن: ئۆز ئارا قوشنا ئىككى HR ئÛÙ„ÛÙ…Ûنت. بۇ بىرىكمە كۇنۇپكا تەكرارلانسا يىراقتىكى Ùوكۇس نۇقتا رايونىغا يەتكىلى بولىدۇ."}, {name:"ÙƒÛيىنكى Ùوكۇس نۇقتىسىنى زىيارەت قىلىدىغان بۇيرۇق",legend:"${accessNextSpace} بÛسىپ ^ بەلگىسىگە Ø¦Û•Ú ÙŠÛقىن زىيارەت قىلغىلى بولمايدىغان Ùوكۇس نۇقتا Ø±Ø§ÙŠÙˆÙ†Ù‰Ù†Ù‰Ú ÙƒÛ•ÙŠÙ†Ù‰Ù†Ù‰ زىيارەت قىلىدۇ، مەسىلەن: ئۆز ئارا قوشنا ئىككى HR ئÛÙ„ÛÙ…Ûنت. بۇ بىرىكمە كۇنۇپكا تەكرارلانسا يىراقتىكى Ùوكۇس نۇقتا رايونىغا يەتكىلى بولىدۇ."},{name:"توسالغۇسىز لايىھە چۈشەندۈرۈشى",legend:"${a11yHelp} نى بÛسىÚ"}]}],backspace:"Backspace",tab:"Tab",enter:"Enter",shift:"Shift",ctrl:"Ctrl",alt:"Alt",pause:"Pause",capslock:"Caps Lock",escape:"Escape", -pageUp:"Page Up",pageDown:"Page Down",end:"End",home:"Home",leftArrow:"Left Arrow",upArrow:"Up Arrow",rightArrow:"Right Arrow",downArrow:"Down Arrow",insert:"Insert","delete":"Delete",leftWindowKey:"Left Windows key",rightWindowKey:"Right Windows key",selectKey:"Select key",numpad0:"Numpad 0",numpad1:"Numpad 1",numpad2:"Numpad 2",numpad3:"Numpad 3",numpad4:"Numpad 4",numpad5:"Numpad 5",numpad6:"Numpad 6",numpad7:"Numpad 7",numpad8:"Numpad 8",numpad9:"Numpad 9",multiply:"Multiply",add:"Add",subtract:"Subtract", -decimalPoint:"Decimal Point",divide:"Divide",f1:"F1",f2:"F2",f3:"F3",f4:"F4",f5:"F5",f6:"F6",f7:"F7",f8:"F8",f9:"F9",f10:"F10",f11:"F11",f12:"F12",numLock:"Num Lock",scrollLock:"Scroll Lock",semiColon:"Semicolon",equalSign:"Equal Sign",comma:"Comma",dash:"Dash",period:"Period",forwardSlash:"Forward Slash",graveAccent:"Grave Accent",openBracket:"Open Bracket",backSlash:"Backslash",closeBracket:"Close Bracket",singleQuote:"Single Quote"}); \ No newline at end of file +pageUp:"Page Up",pageDown:"Page Down",end:"End",home:"Home",leftArrow:"سول يا ئوق",upArrow:"ئۈستى يا ئوق",rightArrow:"Ø¦ÙˆÚ ÙŠØ§ ئوق",downArrow:"ئاستى يا ئوق",insert:"قىستۇر","delete":"ئۆچۈر",leftWindowKey:"سول Windows كۇنۇپكىسى",rightWindowKey:"Ø¦ÙˆÚ Windows كۇنۇپكىسى",selectKey:"تاللاش كۇنۇپكىسى",numpad0:"سان تاختا 0",numpad1:"سان تاختا 1",numpad2:"سان تاختا 2",numpad3:"سان تاختا 3",numpad4:"سان تاختا 4",numpad5:"سان تاختا 5",numpad6:"سان تاختا 6",numpad7:"سان تاختا 7",numpad8:"سان تاختا 8",numpad9:"سان تاختا 9", +multiply:"يۇلتۇز كۇنۇپكىسى",add:"قوشۇش",subtract:"ئÛلىش",decimalPoint:"كەسىر Ú†Ûكىت",divide:"بۆلۈش",f1:"F1",f2:"F2",f3:"F3",f4:"F4",f5:"F5",f6:"F6",f7:"F7",f8:"F8",f9:"F9",f10:"F10",f11:"F11",f12:"F12",numLock:"سان Ù‚Û‡Ù„Û‡Ù¾ كۇنۇپكىسى",scrollLock:"سۈرگۈچ Ù‚Û‡Ù„Û‡Ù¾ كۇنۇپكىسى",semiColon:"Ú†Ûكىتلىك Ù¾Û•Ø´",equalSign:"تەÚلىك بەلگىسى",comma:"Ù¾Û•Ø´",dash:"سىزىقچە",period:"Ú†Ûكىت",forwardSlash:"سولغا يانتۇ سىزىق",graveAccent:"ئۇرغۇ بەلگىسى",openBracket:"ئÛچىلغان تىرناق",backSlash:"ئوÚغا يانتۇ سىزىق",closeBracket:"ÙŠÛپىلغان تىرناق", +singleQuote:"ÙŠØ§Ù„Ø§Ú Ù¾Û•Ø´"}); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor/plugins/about/dialogs/about.js b/core/assets/vendor/ckeditor/plugins/about/dialogs/about.js index 6e78f9c456f3..c9bcd7eb599e 100644 --- a/core/assets/vendor/ckeditor/plugins/about/dialogs/about.js +++ b/core/assets/vendor/ckeditor/plugins/about/dialogs/about.js @@ -2,6 +2,6 @@ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ -CKEDITOR.dialog.add("about",function(a){var a=a.lang.about,b=CKEDITOR.getUrl(CKEDITOR.plugins.get("about").path+"dialogs/"+(CKEDITOR.env.hidpi?"hidpi/":"")+"logo_ckeditor.png");return{title:CKEDITOR.env.ie?a.dlgTitle:a.title,minWidth:390,minHeight:230,contents:[{id:"tab1",label:"",title:"",expand:!0,padding:0,elements:[{type:"html",html:'<style type="text/css">.cke_about_container{color:#000 !important;padding:10px 10px 0;margin-top:5px}.cke_about_container p{margin: 0 0 10px;}.cke_about_container .cke_about_logo{height:81px;background-color:#fff;background-image:url('+ -b+");"+(CKEDITOR.env.hidpi?"background-size:163px 58px;":"")+'background-position:center; background-repeat:no-repeat;margin-bottom:10px;}.cke_about_container a{cursor:pointer !important;color:#00B2CE !important;text-decoration:underline !important;}</style><div class="cke_about_container"><div class="cke_about_logo"></div><p>CKEditor '+CKEDITOR.version+" (revision "+CKEDITOR.revision+')<br><a target="_blank" href="http://ckeditor.com/">http://ckeditor.com</a></p><p>'+a.help.replace("$1",'<a target="_blank" href="http://docs.ckeditor.com/user">'+ -a.userGuide+"</a>")+"</p><p>"+a.moreInfo+'<br><a target="_blank" href="http://ckeditor.com/about/license">http://ckeditor.com/about/license</a></p><p>'+a.copy.replace("$1",'<a target="_blank" href="http://cksource.com/">CKSource</a> - Frederico Knabben')+"</p></div>"}]}],buttons:[CKEDITOR.dialog.cancelButton]}}); \ No newline at end of file +CKEDITOR.dialog.add("about",function(a){a=a.lang.about;var b=CKEDITOR.getUrl(CKEDITOR.plugins.get("about").path+"dialogs/"+(CKEDITOR.env.hidpi?"hidpi/":"")+"logo_ckeditor.png");return{title:CKEDITOR.env.ie?a.dlgTitle:a.title,minWidth:390,minHeight:230,contents:[{id:"tab1",label:"",title:"",expand:!0,padding:0,elements:[{type:"html",html:'\x3cstyle type\x3d"text/css"\x3e.cke_about_container{color:#000 !important;padding:10px 10px 0;margin-top:5px}.cke_about_container p{margin: 0 0 10px;}.cke_about_container .cke_about_logo{height:81px;background-color:#fff;background-image:url('+ +b+");"+(CKEDITOR.env.hidpi?"background-size:163px 58px;":"")+'background-position:center; background-repeat:no-repeat;margin-bottom:10px;}.cke_about_container a{cursor:pointer !important;color:#00B2CE !important;text-decoration:underline !important;}\x3c/style\x3e\x3cdiv class\x3d"cke_about_container"\x3e\x3cdiv class\x3d"cke_about_logo"\x3e\x3c/div\x3e\x3cp\x3eCKEditor '+CKEDITOR.version+" (revision "+CKEDITOR.revision+')\x3cbr\x3e\x3ca target\x3d"_blank" href\x3d"http://ckeditor.com/"\x3ehttp://ckeditor.com\x3c/a\x3e\x3c/p\x3e\x3cp\x3e'+ +a.help.replace("$1",'\x3ca target\x3d"_blank" href\x3d"http://docs.ckeditor.com/user"\x3e'+a.userGuide+"\x3c/a\x3e")+"\x3c/p\x3e\x3cp\x3e"+a.moreInfo+'\x3cbr\x3e\x3ca target\x3d"_blank" href\x3d"http://ckeditor.com/about/license"\x3ehttp://ckeditor.com/about/license\x3c/a\x3e\x3c/p\x3e\x3cp\x3e'+a.copy.replace("$1",'\x3ca target\x3d"_blank" href\x3d"http://cksource.com/"\x3eCKSource\x3c/a\x3e - Frederico Knabben')+"\x3c/p\x3e\x3c/div\x3e"}]}],buttons:[CKEDITOR.dialog.cancelButton]}}); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor/plugins/clipboard/dialogs/paste.js b/core/assets/vendor/ckeditor/plugins/clipboard/dialogs/paste.js index 0b08a578fc34..1e93fafbc0b0 100644 --- a/core/assets/vendor/ckeditor/plugins/clipboard/dialogs/paste.js +++ b/core/assets/vendor/ckeditor/plugins/clipboard/dialogs/paste.js @@ -2,10 +2,10 @@ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ -CKEDITOR.dialog.add("paste",function(c){function h(a){var b=new CKEDITOR.dom.document(a.document),f=b.getBody(),d=b.getById("cke_actscrpt");d&&d.remove();f.setAttribute("contenteditable",!0);if(CKEDITOR.env.ie&&8>CKEDITOR.env.version)b.getWindow().on("blur",function(){b.$.selection.empty()});b.on("keydown",function(a){var a=a.data,b;switch(a.getKeystroke()){case 27:this.hide();b=1;break;case 9:case CKEDITOR.SHIFT+9:this.changeFocus(1),b=1}b&&a.preventDefault()},this);c.fire("ariaWidget",new CKEDITOR.dom.element(a.frameElement)); +CKEDITOR.dialog.add("paste",function(c){function h(a){var b=new CKEDITOR.dom.document(a.document),f=b.getBody(),d=b.getById("cke_actscrpt");d&&d.remove();f.setAttribute("contenteditable",!0);if(CKEDITOR.env.ie&&8>CKEDITOR.env.version)b.getWindow().on("blur",function(){b.$.selection.empty()});b.on("keydown",function(a){a=a.data;var b;switch(a.getKeystroke()){case 27:this.hide();b=1;break;case 9:case CKEDITOR.SHIFT+9:this.changeFocus(1),b=1}b&&a.preventDefault()},this);c.fire("ariaWidget",new CKEDITOR.dom.element(a.frameElement)); b.getWindow().getFrame().removeCustomData("pendingFocus")&&f.focus()}var e=c.lang.clipboard;c.on("pasteDialogCommit",function(a){a.data&&c.fire("paste",{type:"auto",dataValue:a.data,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()})},null,null,1E3);return{title:e.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?370:350,minHeight:CKEDITOR.env.quirks?250:245,onShow:function(){this.parts.dialog.$.offsetHeight;this.setupContent();this.parts.title.setHtml(this.customTitle|| -e.title);this.customTitle=null},onLoad:function(){(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&"rtl"==c.lang.dir&&this.parts.contents.setStyle("overflow","hidden")},onOk:function(){this.commitContent()},contents:[{id:"general",label:c.lang.common.generalTab,elements:[{type:"html",id:"securityMsg",html:'<div style="white-space:normal;width:340px">'+e.securityMsg+"</div>"},{type:"html",id:"pasteMsg",html:'<div style="white-space:normal;width:340px">'+e.pasteMsg+"</div>"},{type:"html",id:"editing_area", -style:"width:100%;height:100%",html:"",focus:function(){var a=this.getInputElement(),b=a.getFrameDocument().getBody();!b||b.isReadOnly()?a.setCustomData("pendingFocus",1):b.focus()},setup:function(){var a=this.getDialog(),b='<html dir="'+c.config.contentsLangDirection+'" lang="'+(c.config.contentsLanguage||c.langCode)+'"><head><style>body{margin:3px;height:95%;word-break:break-all;}</style></head><body><script id="cke_actscrpt" type="text/javascript">window.parent.CKEDITOR.tools.callFunction('+CKEDITOR.tools.addFunction(h, -a)+",this);<\/script></body></html>",f=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+'})())"':"",d=CKEDITOR.dom.element.createFromHtml('<iframe class="cke_pasteframe" frameborder="0" allowTransparency="true" src="'+f+'" aria-label="'+e.pasteArea+'" aria-describedby="'+a.getContentElement("general","pasteMsg").domId+'"></iframe>');d.on("load",function(a){a.removeListener(); -a=d.getFrameDocument();a.write(b);c.focusManager.add(a.getBody());CKEDITOR.env.air&&h.call(this,a.getWindow().$)},a);d.setCustomData("dialog",a);a=this.getElement();a.setHtml("");a.append(d);if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){var g=CKEDITOR.dom.element.createFromHtml('<span tabindex="-1" style="position:absolute" role="presentation"></span>');g.on("focus",function(){setTimeout(function(){d.$.contentWindow.focus()})});a.append(g);this.focus=function(){g.focus();this.fire("focus")}}this.getInputElement= -function(){return d};CKEDITOR.env.ie&&(a.setStyle("display","block"),a.setStyle("height",d.$.offsetHeight+2+"px"))},commit:function(){var a=this.getDialog().getParentEditor(),b=this.getInputElement().getFrameDocument().getBody(),c=b.getBogus(),d;c&&c.remove();d=b.getHtml();setTimeout(function(){a.fire("pasteDialogCommit",d)},0)}}]}]}}); \ No newline at end of file +e.title);this.customTitle=null},onLoad:function(){(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&"rtl"==c.lang.dir&&this.parts.contents.setStyle("overflow","hidden")},onOk:function(){this.commitContent()},contents:[{id:"general",label:c.lang.common.generalTab,elements:[{type:"html",id:"securityMsg",html:'\x3cdiv style\x3d"white-space:normal;width:340px"\x3e'+e.securityMsg+"\x3c/div\x3e"},{type:"html",id:"pasteMsg",html:'\x3cdiv style\x3d"white-space:normal;width:340px"\x3e'+e.pasteMsg+"\x3c/div\x3e"}, +{type:"html",id:"editing_area",style:"width:100%;height:100%",html:"",focus:function(){var a=this.getInputElement(),b=a.getFrameDocument().getBody();!b||b.isReadOnly()?a.setCustomData("pendingFocus",1):b.focus()},setup:function(){var a=this.getDialog(),b='\x3chtml dir\x3d"'+c.config.contentsLangDirection+'" lang\x3d"'+(c.config.contentsLanguage||c.langCode)+'"\x3e\x3chead\x3e\x3cstyle\x3ebody{margin:3px;height:95%;word-break:break-all;}\x3c/style\x3e\x3c/head\x3e\x3cbody\x3e\x3cscript id\x3d"cke_actscrpt" type\x3d"text/javascript"\x3ewindow.parent.CKEDITOR.tools.callFunction('+ +CKEDITOR.tools.addFunction(h,a)+",this);\x3c/script\x3e\x3c/body\x3e\x3c/html\x3e",f=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+'})())"':"",d=CKEDITOR.dom.element.createFromHtml('\x3ciframe class\x3d"cke_pasteframe" frameborder\x3d"0" allowTransparency\x3d"true" src\x3d"'+f+'" aria-label\x3d"'+e.pasteArea+'" aria-describedby\x3d"'+a.getContentElement("general", +"pasteMsg").domId+'"\x3e\x3c/iframe\x3e');d.on("load",function(a){a.removeListener();a=d.getFrameDocument();a.write(b);c.focusManager.add(a.getBody());CKEDITOR.env.air&&h.call(this,a.getWindow().$)},a);d.setCustomData("dialog",a);a=this.getElement();a.setHtml("");a.append(d);if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){var g=CKEDITOR.dom.element.createFromHtml('\x3cspan tabindex\x3d"-1" style\x3d"position:absolute" role\x3d"presentation"\x3e\x3c/span\x3e');g.on("focus",function(){setTimeout(function(){d.$.contentWindow.focus()})}); +a.append(g);this.focus=function(){g.focus();this.fire("focus")}}this.getInputElement=function(){return d};CKEDITOR.env.ie&&(a.setStyle("display","block"),a.setStyle("height",d.$.offsetHeight+2+"px"))},commit:function(){var a=this.getDialog().getParentEditor(),b=this.getInputElement().getFrameDocument().getBody(),c=b.getBogus(),d;c&&c.remove();d=b.getHtml();setTimeout(function(){a.fire("pasteDialogCommit",d)},0)}}]}]}}); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor/plugins/image2/dialogs/image2.js b/core/assets/vendor/ckeditor/plugins/image2/dialogs/image2.js index c609061a5c83..1d8be474cce1 100644 --- a/core/assets/vendor/ckeditor/plugins/image2/dialogs/image2.js +++ b/core/assets/vendor/ckeditor/plugins/image2/dialogs/image2.js @@ -2,13 +2,13 @@ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ -CKEDITOR.dialog.add("image2",function(i){function z(){var a=this.getValue().match(A);(a=!!(a&&0!==parseInt(a[1],10)))||alert(c["invalid"+CKEDITOR.tools.capitalize(this.id)]);return a}function K(){function a(a,b){d.push(j.once(a,function(a){for(var j;j=d.pop();)j.removeListener();b(a)}))}var j=p.createElement("img"),d=[];return function(d,b,c){a("load",function(){var a=B(j);b.call(c,j,a.width,a.height)});a("error",function(){b(null)});a("abort",function(){b(null)});j.setAttribute("src",(t.baseHref|| -"")+d+"?"+Math.random().toString(16).substring(2))}}function C(){var a=this.getValue();q(!1);a!==u.data.src?(D(a,function(a,d,b){q(!0);if(!a)return k(!1);g.setValue(!1===i.config.image2_prefillDimensions?0:d);h.setValue(!1===i.config.image2_prefillDimensions?0:b);r=d;s=b;k(E.checkHasNaturalRatio(a))}),l=!0):l?(q(!0),g.setValue(m),h.setValue(n),l=!1):q(!0)}function F(){if(e){var a=this.getValue();if(a&&(a.match(A)||k(!1),"0"!==a)){var b="width"==this.id,d=m||r,c=n||s,a=b?Math.round(c*(a/d)):Math.round(d* -(a/c));isNaN(a)||(b?h:g).setValue(a)}}}function k(a){if(f){if("boolean"==typeof a){if(v)return;e=a}else if(a=g.getValue(),v=!0,(e=!e)&&a)a*=n/m,isNaN(a)||h.setValue(Math.round(a));f[e?"removeClass":"addClass"]("cke_btn_unlocked");f.setAttribute("aria-checked",e);CKEDITOR.env.hc&&f.getChild(0).setHtml(e?CKEDITOR.env.ie?"â– ":"â–£":CKEDITOR.env.ie?"â–¡":"â–¢")}}function q(a){a=a?"enable":"disable";g[a]();h[a]()}var A=/(^\s*(\d+)(px)?\s*$)|^$/i,G=CKEDITOR.tools.getNextId(),H=CKEDITOR.tools.getNextId(),b=i.lang.image2, -c=i.lang.common,L=(new CKEDITOR.template('<div><a href="javascript:void(0)" tabindex="-1" title="'+b.lockRatio+'" class="cke_btn_locked" id="{lockButtonId}" role="checkbox"><span class="cke_icon"></span><span class="cke_label">'+b.lockRatio+'</span></a><a href="javascript:void(0)" tabindex="-1" title="'+b.resetSize+'" class="cke_btn_reset" id="{resetButtonId}" role="button"><span class="cke_label">'+b.resetSize+"</span></a></div>")).output({lockButtonId:G,resetButtonId:H}),E=CKEDITOR.plugins.image2, -t=i.config,w=i.widgets.registered.image.features,B=E.getNatural,p,u,I,D,m,n,r,s,l,e,v,f,o,g,h,x,y=!(!t.filebrowserImageBrowseUrl&&!t.filebrowserBrowseUrl),J=[{id:"src",type:"text",label:c.url,onKeyup:C,onChange:C,setup:function(a){this.setValue(a.data.src)},commit:function(a){a.setData("src",this.getValue())},validate:CKEDITOR.dialog.validate.notEmpty(b.urlMissing)}];y&&J.push({type:"button",id:"browse",style:"display:inline-block;margin-top:14px;",align:"center",label:i.lang.common.browseServer, -hidden:!0,filebrowser:"info:src"});return{title:b.title,minWidth:250,minHeight:100,onLoad:function(){p=this._.element.getDocument();D=K()},onShow:function(){u=this.widget;I=u.parts.image;l=v=e=!1;x=B(I);r=m=x.width;s=n=x.height},contents:[{id:"info",label:b.infoTab,elements:[{type:"vbox",padding:0,children:[{type:"hbox",widths:["100%"],children:J}]},{id:"alt",type:"text",label:b.alt,setup:function(a){this.setValue(a.data.alt)},commit:function(a){a.setData("alt",this.getValue())}},{type:"hbox",widths:["25%", -"25%","50%"],requiredContent:w.dimension.requiredContent,children:[{type:"text",width:"45px",id:"width",label:c.width,validate:z,onKeyUp:F,onLoad:function(){g=this},setup:function(a){this.setValue(a.data.width)},commit:function(a){a.setData("width",this.getValue())}},{type:"text",id:"height",width:"45px",label:c.height,validate:z,onKeyUp:F,onLoad:function(){h=this},setup:function(a){this.setValue(a.data.height)},commit:function(a){a.setData("height",this.getValue())}},{id:"lock",type:"html",style:"margin-top:18px;width:40px;height:20px;", -onLoad:function(){function a(a){a.on("mouseover",function(){this.addClass("cke_btn_over")},a);a.on("mouseout",function(){this.removeClass("cke_btn_over")},a)}var b=this.getDialog();f=p.getById(G);o=p.getById(H);f&&(b.addFocusable(f,4+y),f.on("click",function(a){k();a.data&&a.data.preventDefault()},this.getDialog()),a(f));o&&(b.addFocusable(o,5+y),o.on("click",function(a){if(l){g.setValue(r);h.setValue(s)}else{g.setValue(m);h.setValue(n)}a.data&&a.data.preventDefault()},this),a(o))},setup:function(a){k(a.data.lock)}, -commit:function(a){a.setData("lock",e)},html:L}]},{type:"hbox",id:"alignment",requiredContent:w.align.requiredContent,children:[{id:"align",type:"radio",items:[[c.alignNone,"none"],[c.alignLeft,"left"],[c.alignCenter,"center"],[c.alignRight,"right"]],label:c.align,setup:function(a){this.setValue(a.data.align)},commit:function(a){a.setData("align",this.getValue())}}]},{id:"hasCaption",type:"checkbox",label:b.captioned,requiredContent:w.caption.requiredContent,setup:function(a){this.setValue(a.data.hasCaption)}, -commit:function(a){a.setData("hasCaption",this.getValue())}}]},{id:"Upload",hidden:!0,filebrowser:"uploadButton",label:b.uploadTab,elements:[{type:"file",id:"upload",label:b.btnUpload,style:"height:40px"},{type:"fileButton",id:"uploadButton",filebrowser:"info:src",label:b.btnUpload,"for":["Upload","upload"]}]}]}}); \ No newline at end of file +CKEDITOR.dialog.add("image2",function(k){function D(){var a=this.getValue().match(E);(a=!(!a||0===parseInt(a[1],10)))||alert(c["invalid"+CKEDITOR.tools.capitalize(this.id)]);return a}function O(){function a(a,b){d.push(l.once(a,function(a){for(var l;l=d.pop();)l.removeListener();b(a)}))}var l=t.createElement("img"),d=[];return function(d,b,c){a("load",function(){var a=F(l);b.call(c,l,a.width,a.height)});a("error",function(){b(null)});a("abort",function(){b(null)});l.setAttribute("src",(x.baseHref|| +"")+d+"?"+Math.random().toString(16).substring(2))}}function G(){var a=this.getValue();u(!1);a!==y.data.src?(H(a,function(a,d,b){u(!0);if(!a)return m(!1);g.setValue(!1===k.config.image2_prefillDimensions?0:d);h.setValue(!1===k.config.image2_prefillDimensions?0:b);v=d;w=b;m(I.checkHasNaturalRatio(a))}),n=!0):n?(u(!0),g.setValue(p),h.setValue(q),n=!1):u(!0)}function J(){if(e){var a=this.getValue();if(a&&(a.match(E)||m(!1),"0"!==a)){var b="width"==this.id,d=p||v,c=q||w,a=b?Math.round(a/d*c):Math.round(a/ +c*d);isNaN(a)||(b?h:g).setValue(a)}}}function m(a){if(f){if("boolean"==typeof a){if(z)return;e=a}else a=g.getValue(),z=!0,(e=!e)&&a&&(a*=q/p,isNaN(a)||h.setValue(Math.round(a)));f[e?"removeClass":"addClass"]("cke_btn_unlocked");f.setAttribute("aria-checked",e);CKEDITOR.env.hc&&f.getChild(0).setHtml(e?CKEDITOR.env.ie?"â– ":"â–£":CKEDITOR.env.ie?"â–¡":"â–¢")}}function u(a){a=a?"enable":"disable";g[a]();h[a]()}var E=/(^\s*(\d+)(px)?\s*$)|^$/i,K=CKEDITOR.tools.getNextId(),L=CKEDITOR.tools.getNextId(),b=k.lang.image2, +c=k.lang.common,P=(new CKEDITOR.template('\x3cdiv\x3e\x3ca href\x3d"javascript:void(0)" tabindex\x3d"-1" title\x3d"'+b.lockRatio+'" class\x3d"cke_btn_locked" id\x3d"{lockButtonId}" role\x3d"checkbox"\x3e\x3cspan class\x3d"cke_icon"\x3e\x3c/span\x3e\x3cspan class\x3d"cke_label"\x3e'+b.lockRatio+'\x3c/span\x3e\x3c/a\x3e\x3ca href\x3d"javascript:void(0)" tabindex\x3d"-1" title\x3d"'+b.resetSize+'" class\x3d"cke_btn_reset" id\x3d"{resetButtonId}" role\x3d"button"\x3e\x3cspan class\x3d"cke_label"\x3e'+ +b.resetSize+"\x3c/span\x3e\x3c/a\x3e\x3c/div\x3e")).output({lockButtonId:K,resetButtonId:L}),I=CKEDITOR.plugins.image2,x=k.config,A=k.widgets.registered.image.features,F=I.getNatural,t,y,M,H,p,q,v,w,n,e,z,f,r,g,h,B,C=!(!x.filebrowserImageBrowseUrl&&!x.filebrowserBrowseUrl),N=[{id:"src",type:"text",label:c.url,onKeyup:G,onChange:G,setup:function(a){this.setValue(a.data.src)},commit:function(a){a.setData("src",this.getValue())},validate:CKEDITOR.dialog.validate.notEmpty(b.urlMissing)}];C&&N.push({type:"button", +id:"browse",style:"display:inline-block;margin-top:14px;",align:"center",label:k.lang.common.browseServer,hidden:!0,filebrowser:"info:src"});return{title:b.title,minWidth:250,minHeight:100,onLoad:function(){t=this._.element.getDocument();H=O()},onShow:function(){y=this.widget;M=y.parts.image;n=z=e=!1;B=F(M);v=p=B.width;w=q=B.height},contents:[{id:"info",label:b.infoTab,elements:[{type:"vbox",padding:0,children:[{type:"hbox",widths:["100%"],children:N}]},{id:"alt",type:"text",label:b.alt,setup:function(a){this.setValue(a.data.alt)}, +commit:function(a){a.setData("alt",this.getValue())}},{type:"hbox",widths:["25%","25%","50%"],requiredContent:A.dimension.requiredContent,children:[{type:"text",width:"45px",id:"width",label:c.width,validate:D,onKeyUp:J,onLoad:function(){g=this},setup:function(a){this.setValue(a.data.width)},commit:function(a){a.setData("width",this.getValue())}},{type:"text",id:"height",width:"45px",label:c.height,validate:D,onKeyUp:J,onLoad:function(){h=this},setup:function(a){this.setValue(a.data.height)},commit:function(a){a.setData("height", +this.getValue())}},{id:"lock",type:"html",style:"margin-top:18px;width:40px;height:20px;",onLoad:function(){function a(a){a.on("mouseover",function(){this.addClass("cke_btn_over")},a);a.on("mouseout",function(){this.removeClass("cke_btn_over")},a)}var b=this.getDialog();f=t.getById(K);r=t.getById(L);f&&(b.addFocusable(f,4+C),f.on("click",function(a){m();a.data&&a.data.preventDefault()},this.getDialog()),a(f));r&&(b.addFocusable(r,5+C),r.on("click",function(a){n?(g.setValue(v),h.setValue(w)):(g.setValue(p), +h.setValue(q));a.data&&a.data.preventDefault()},this),a(r))},setup:function(a){m(a.data.lock)},commit:function(a){a.setData("lock",e)},html:P}]},{type:"hbox",id:"alignment",requiredContent:A.align.requiredContent,children:[{id:"align",type:"radio",items:[[c.alignNone,"none"],[c.alignLeft,"left"],[c.alignCenter,"center"],[c.alignRight,"right"]],label:c.align,setup:function(a){this.setValue(a.data.align)},commit:function(a){a.setData("align",this.getValue())}}]},{id:"hasCaption",type:"checkbox",label:b.captioned, +requiredContent:A.caption.requiredContent,setup:function(a){this.setValue(a.data.hasCaption)},commit:function(a){a.setData("hasCaption",this.getValue())}}]},{id:"Upload",hidden:!0,filebrowser:"uploadButton",label:b.uploadTab,elements:[{type:"file",id:"upload",label:b.btnUpload,style:"height:40px"},{type:"fileButton",id:"uploadButton",filebrowser:"info:src",label:b.btnUpload,"for":["Upload","upload"]}]}]}}); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor/plugins/pastefromword/filter/default.js b/core/assets/vendor/ckeditor/plugins/pastefromword/filter/default.js index 368098dd1136..780b2cbbd6d0 100644 --- a/core/assets/vendor/ckeditor/plugins/pastefromword/filter/default.js +++ b/core/assets/vendor/ckeditor/plugins/pastefromword/filter/default.js @@ -2,31 +2,31 @@ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ -(function(){function y(a){for(var a=a.toUpperCase(),c=z.length,b=0,f=0;f<c;++f)for(var d=z[f],e=d[1].length;a.substr(0,e)==d[1];a=a.substr(e))b+=d[0];return b}function A(a){for(var a=a.toUpperCase(),c=B.length,b=1,f=1;0<a.length;f*=c)b+=B.indexOf(a.charAt(a.length-1))*f,a=a.substr(0,a.length-1);return b}var C=CKEDITOR.htmlParser.fragment.prototype,o=CKEDITOR.htmlParser.element.prototype;C.onlyChild=o.onlyChild=function(){var a=this.children;return 1==a.length&&a[0]||null};o.removeAnyChildWithName= -function(a){for(var c=this.children,b=[],f,d=0;d<c.length;d++)f=c[d],f.name&&(f.name==a&&(b.push(f),c.splice(d--,1)),b=b.concat(f.removeAnyChildWithName(a)));return b};o.getAncestor=function(a){for(var c=this.parent;c&&(!c.name||!c.name.match(a));)c=c.parent;return c};C.firstChild=o.firstChild=function(a){for(var c,b=0;b<this.children.length;b++)if(c=this.children[b],a(c)||c.name&&(c=c.firstChild(a)))return c;return null};o.addStyle=function(a,c,b){var f="";if("string"==typeof c)f+=a+":"+c+";";else{if("object"== -typeof a)for(var d in a)a.hasOwnProperty(d)&&(f+=d+":"+a[d]+";");else f+=a;b=c}this.attributes||(this.attributes={});a=this.attributes.style||"";a=(b?[f,a]:[a,f]).join(";");this.attributes.style=a.replace(/^;+|;(?=;)/g,"")};o.getStyle=function(a){var c=this.attributes.style;if(c)return c=CKEDITOR.tools.parseCssText(c,1),c[a]};CKEDITOR.dtd.parentOf=function(a){var c={},b;for(b in this)-1==b.indexOf("$")&&this[b][a]&&(c[b]=1);return c};var D=/^(?:\b0[^\s]*\s*){1,4}$/,x={ol:{decimal:/\d+/,"lower-roman":/^m{0,4}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3})$/, -"upper-roman":/^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$/,"lower-alpha":/^[a-z]+$/,"upper-alpha":/^[A-Z]+$/},ul:{disc:/[l\u00B7\u2002]/,circle:/[\u006F\u00D8]/,square:/[\u006E\u25C6]/}},z=[[1E3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]],B="ABCDEFGHIJKLMNOPQRSTUVWXYZ",s=0,t=null,w,E=CKEDITOR.plugins.pastefromword={utils:{createListBulletMarker:function(a,c){var b=new CKEDITOR.htmlParser.element("cke:listbullet"); -b.attributes={"cke:listsymbol":a[0]};b.add(new CKEDITOR.htmlParser.text(c));return b},isListBulletIndicator:function(a){if(/mso-list\s*:\s*Ignore/i.test(a.attributes&&a.attributes.style))return!0},isContainingOnlySpaces:function(a){var c;return(c=a.onlyChild())&&/^(:?\s| )+$/.test(c.value)},resolveList:function(a){var c=a.attributes,b;if((b=a.removeAnyChildWithName("cke:listbullet"))&&b.length&&(b=b[0]))return a.name="cke:li",c.style&&(c.style=E.filters.stylesFilter([["text-indent"],["line-height"], -[/^margin(:?-left)?$/,null,function(a){a=a.split(" ");a=CKEDITOR.tools.convertToPx(a[3]||a[1]||a[0]);!s&&(null!==t&&a>t)&&(s=a-t);t=a;c["cke:indent"]=s&&Math.ceil(a/s)+1||1}],[/^mso-list$/,null,function(a){a=a.split(" ");if(!(2>a.length)){var b=Number(a[0].match(/\d+/)),a=Number(a[1].match(/\d+/));1==a&&(b!==w&&(c["cke:reset"]=1),w=b);c["cke:indent"]=a}}]])(c.style,a)||""),c["cke:indent"]||(t=0,c["cke:indent"]=1),CKEDITOR.tools.extend(c,b.attributes),!0;w=t=s=null;return!1},getStyleComponents:function(){var a= -CKEDITOR.dom.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;"></div>',CKEDITOR.document);CKEDITOR.document.getBody().append(a);return function(c,b,f){a.setStyle(c,b);for(var c={},b=f.length,d=0;d<b;d++)c[f[d]]=a.getStyle(f[d]);return c}}(),listDtdParents:CKEDITOR.dtd.parentOf("ol")},filters:{flattenList:function(a,c){var c="number"==typeof c?c:1,b=a.attributes,f;switch(b.type){case "a":f="lower-alpha";break;case "1":f="decimal"}for(var d=a.children,e,i=0;i<d.length;i++)if(e= -d[i],e.name in CKEDITOR.dtd.$listItem){var j=e.attributes,g=e.children,l=g[0],h=g[g.length-1];l.attributes&&(l.attributes.style&&-1<l.attributes.style.indexOf("mso-list"))&&(e.attributes.style=l.attributes.style,l.replaceWithChildren());h.name in CKEDITOR.dtd.$list&&(a.add(h,i+1),--g.length||d.splice(i--,1));e.name="cke:li";b.start&&!i&&(j.value=b.start);E.filters.stylesFilter([["tab-stops",null,function(a){(a=a.match(/0$|\d+\.?\d*\w+/))&&(t=CKEDITOR.tools.convertToPx(a[0]))}],1==c?["mso-list",null, -function(a){a=a.split(" ");a=Number(a[0].match(/\d+/));a!==w&&(j["cke:reset"]=1);w=a}]:null])(j.style);j["cke:indent"]=c;j["cke:listtype"]=a.name;j["cke:list-style-type"]=f}else if(e.name in CKEDITOR.dtd.$list){arguments.callee.apply(this,[e,c+1]);d=d.slice(0,i).concat(e.children).concat(d.slice(i+1));a.children=[];e=0;for(g=d.length;e<g;e++)a.add(d[e]);d=a.children}delete a.name;b["cke:list"]=1},assembleList:function(a){for(var c=a.children,b,f,d,e,i,j,a=[],g,l,h,m,k,p,n=0;n<c.length;n++)if(b=c[n], -"cke:li"==b.name)if(b.name="li",f=b.attributes,h=(h=f["cke:listsymbol"])&&h.match(/^(?:[(]?)([^\s]+?)([.)]?)$/),m=k=p=null,f["cke:ignored"])c.splice(n--,1);else{f["cke:reset"]&&(j=e=i=null);d=Number(f["cke:indent"]);d!=e&&(l=g=null);if(h){if(l&&x[l][g].test(h[1]))m=l,k=g;else for(var q in x)for(var u in x[q])if(x[q][u].test(h[1]))if("ol"==q&&/alpha|roman/.test(u)){if(g=/roman/.test(u)?y(h[1]):A(h[1]),!p||g<p)p=g,m=q,k=u}else{m=q;k=u;break}!m&&(m=h[2]?"ol":"ul")}else m=f["cke:listtype"]||"ol",k=f["cke:list-style-type"]; -l=m;g=k||("ol"==m?"decimal":"disc");k&&k!=("ol"==m?"decimal":"disc")&&b.addStyle("list-style-type",k);if("ol"==m&&h){switch(k){case "decimal":p=Number(h[1]);break;case "lower-roman":case "upper-roman":p=y(h[1]);break;case "lower-alpha":case "upper-alpha":p=A(h[1])}b.attributes.value=p}if(j){if(d>e)a.push(j=new CKEDITOR.htmlParser.element(m)),j.add(b),i.add(j);else{if(d<e){e-=d;for(var r;e--&&(r=j.parent);)j=r.parent}j.add(b)}c.splice(n--,1)}else a.push(j=new CKEDITOR.htmlParser.element(m)),j.add(b), -c[n]=j;i=b;e=d}else j&&(j=e=i=null);for(n=0;n<a.length;n++)if(j=a[n],q=j.children,g=g=void 0,u=j.children.length,r=g=void 0,c=/list-style-type:(.*?)(?:;|$)/,e=CKEDITOR.plugins.pastefromword.filters.stylesFilter,g=j.attributes,!c.exec(g.style)){for(i=0;i<u;i++)if(g=q[i],g.attributes.value&&Number(g.attributes.value)==i+1&&delete g.attributes.value,g=c.exec(g.attributes.style))if(g[1]==r||!r)r=g[1];else{r=null;break}if(r){for(i=0;i<u;i++)g=q[i].attributes,g.style&&(g.style=e([["list-style-type"]])(g.style)|| -"");j.addStyle("list-style-type",r)}}w=t=s=null},falsyFilter:function(){return!1},stylesFilter:function(a,c){return function(b,f){var d=[];(b||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(b,e,g){e=e.toLowerCase();"font-family"==e&&(g=g.replace(/["']/g,""));for(var l,h,m,k=0;k<a.length;k++)if(a[k]&&(b=a[k][0],l=a[k][1],h=a[k][2],m=a[k][3],e.match(b)&&(!l||g.match(l)))){e=m||e;c&&(h=h||g);"function"==typeof h&&(h=h(g,f,e));h&&h.push&&(e=h[0],h=h[1]);"string"== -typeof h&&d.push([e,h]);return}!c&&d.push([e,g])});for(var e=0;e<d.length;e++)d[e]=d[e].join(":");return d.length?d.join(";")+";":!1}},elementMigrateFilter:function(a,c){return a?function(b){var f=c?(new CKEDITOR.style(a,c))._.definition:a;b.name=f.element;CKEDITOR.tools.extend(b.attributes,CKEDITOR.tools.clone(f.attributes));b.addStyle(CKEDITOR.style.getStyleText(f));f.attributes&&f.attributes["class"]&&(b.classWhiteList=" "+f.attributes["class"]+" ")}:function(){}},styleMigrateFilter:function(a, -c){var b=this.elementMigrateFilter;return a?function(f,d){var e=new CKEDITOR.htmlParser.element(null),i={};i[c]=f;b(a,i)(e);e.children=d.children;d.children=[e];e.filter=function(){};e.parent=d}:function(){}},bogusAttrFilter:function(a,c){if(-1==c.name.indexOf("cke:"))return!1},applyStyleFilter:null},getRules:function(a,c){var b=CKEDITOR.dtd,f=CKEDITOR.tools.extend({},b.$block,b.$listItem,b.$tableContent),d=a.config,e=this.filters,i=e.falsyFilter,j=e.stylesFilter,g=e.elementMigrateFilter,l=CKEDITOR.tools.bind(this.filters.styleMigrateFilter, -this.filters),h=this.utils.createListBulletMarker,m=e.flattenList,k=e.assembleList,p=this.utils.isListBulletIndicator,n=this.utils.isContainingOnlySpaces,q=this.utils.resolveList,u=function(a){a=CKEDITOR.tools.convertToPx(a);return isNaN(a)?a:a+"px"},r=this.utils.getStyleComponents,t=this.utils.listDtdParents,o=!1!==d.pasteFromWordRemoveFontStyles,s=!1!==d.pasteFromWordRemoveStyles;return{elementNames:[[/meta|link|script/,""]],root:function(a){a.filterChildren(c);k(a)},elements:{"^":function(a){var c; -CKEDITOR.env.gecko&&(c=e.applyStyleFilter)&&c(a)},$:function(a){var v=a.name||"",e=a.attributes;v in f&&e.style&&(e.style=j([[/^(:?width|height)$/,null,u]])(e.style)||"");if(v.match(/h\d/)){a.filterChildren(c);if(q(a))return;g(d["format_"+v])(a)}else if(v in b.$inline)a.filterChildren(c),n(a)&&delete a.name;else if(-1!=v.indexOf(":")&&-1==v.indexOf("cke")){a.filterChildren(c);if("v:imagedata"==v){if(v=a.attributes["o:href"])a.attributes.src=v;a.name="img";return}delete a.name}v in t&&(a.filterChildren(c), -k(a))},style:function(a){if(CKEDITOR.env.gecko){var a=(a=a.onlyChild().value.match(/\/\* Style Definitions \*\/([\s\S]*?)\/\*/))&&a[1],c={};a&&(a.replace(/[\n\r]/g,"").replace(/(.+?)\{(.+?)\}/g,function(a,b,F){for(var b=b.split(","),a=b.length,d=0;d<a;d++)CKEDITOR.tools.trim(b[d]).replace(/^(\w+)(\.[\w-]+)?$/g,function(a,b,d){b=b||"*";d=d.substring(1,d.length);d.match(/MsoNormal/)||(c[b]||(c[b]={}),d?c[b][d]=F:c[b]=F)})}),e.applyStyleFilter=function(a){var b=c["*"]?"*":a.name,d=a.attributes&&a.attributes["class"]; -b in c&&(b=c[b],"object"==typeof b&&(b=b[d]),b&&a.addStyle(b,!0))})}return!1},p:function(a){if(/MsoListParagraph/i.exec(a.attributes["class"])||a.getStyle("mso-list")&&!a.getStyle("mso-list").match(/^(none|skip)$/i)){var b=a.firstChild(function(a){return a.type==CKEDITOR.NODE_TEXT&&!n(a.parent)});(b=b&&b.parent)&&b.addStyle("mso-list","Ignore")}a.filterChildren(c);q(a)||(d.enterMode==CKEDITOR.ENTER_BR?(delete a.name,a.add(new CKEDITOR.htmlParser.element("br"))):g(d["format_"+(d.enterMode==CKEDITOR.ENTER_P? -"p":"div")])(a))},div:function(a){var c=a.onlyChild();if(c&&"table"==c.name){var b=a.attributes;c.attributes=CKEDITOR.tools.extend(c.attributes,b);b.style&&c.addStyle(b.style);c=new CKEDITOR.htmlParser.element("div");c.addStyle("clear","both");a.add(c);delete a.name}},td:function(a){a.getAncestor("thead")&&(a.name="th")},ol:m,ul:m,dl:m,font:function(a){if(p(a.parent))delete a.name;else{a.filterChildren(c);var b=a.attributes,d=b.style,e=a.parent;"font"==e.name?(CKEDITOR.tools.extend(e.attributes,a.attributes), -d&&e.addStyle(d),delete a.name):(d=(d||"").split(";"),b.color&&("#000000"!=b.color&&d.push("color:"+b.color),delete b.color),b.face&&(d.push("font-family:"+b.face),delete b.face),b.size&&(d.push("font-size:"+(3<b.size?"large":3>b.size?"small":"medium")),delete b.size),a.name="span",a.addStyle(d.join(";")))}},span:function(a){if(p(a.parent))return!1;a.filterChildren(c);if(n(a))return delete a.name,null;if(p(a)){var b=a.firstChild(function(a){return a.value||"img"==a.name}),e=(b=b&&(b.value||"l."))&& -b.match(/^(?:[(]?)([^\s]+?)([.)]?)$/);if(e)return b=h(e,b),(a=a.getAncestor("span"))&&/ mso-hide:\s*all|display:\s*none /.test(a.attributes.style)&&(b.attributes["cke:ignored"]=1),b}if(e=(b=a.attributes)&&b.style)b.style=j([["line-height"],[/^font-family$/,null,!o?l(d.font_style,"family"):null],[/^font-size$/,null,!o?l(d.fontSize_style,"size"):null],[/^color$/,null,!o?l(d.colorButton_foreStyle,"color"):null],[/^background-color$/,null,!o?l(d.colorButton_backStyle,"color"):null]])(e,a)||"";b.style|| -delete b.style;CKEDITOR.tools.isEmpty(b)&&delete a.name;return null},b:g(d.coreStyles_bold),i:g(d.coreStyles_italic),u:g(d.coreStyles_underline),s:g(d.coreStyles_strike),sup:g(d.coreStyles_superscript),sub:g(d.coreStyles_subscript),a:function(a){var b=a.attributes;b.name&&b.name.match(/ole_link\d+/i)?delete a.name:b.href&&b.href.match(/^file:\/\/\/[\S]+#/i)&&(b.href=b.href.replace(/^file:\/\/\/[^#]+/i,""))},"cke:listbullet":function(a){a.getAncestor(/h\d/)&&!d.pasteFromWordNumberedHeadingToList&& -delete a.name}},attributeNames:[[/^onmouse(:?out|over)/,""],[/^onload$/,""],[/(?:v|o):\w+/,""],[/^lang/,""]],attributes:{style:j(s?[[/^list-style-type$/,null],[/^margin$|^margin-(?!bottom|top)/,null,function(a,b,c){if(b.name in{p:1,div:1}){b="ltr"==d.contentsLangDirection?"margin-left":"margin-right";if("margin"==c)a=r(c,a,[b])[b];else if(c!=b)return null;if(a&&!D.test(a))return[b,a]}return null}],[/^clear$/],[/^border.*|margin.*|vertical-align|float$/,null,function(a,b){if("img"==b.name)return a}], -[/^width|height$/,null,function(a,b){if(b.name in{table:1,td:1,th:1,img:1})return a}]]:[[/^mso-/],[/-color$/,null,function(a){if("transparent"==a)return!1;if(CKEDITOR.env.gecko)return a.replace(/-moz-use-text-color/g,"transparent")}],[/^margin$/,D],["text-indent","0cm"],["page-break-before"],["tab-stops"],["display","none"],o?[/font-?/]:null],s),width:function(a,c){if(c.name in b.$tableContent)return!1},border:function(a,c){if(c.name in b.$tableContent)return!1},"class":function(a,b){return b.classWhiteList&& --1!=b.classWhiteList.indexOf(" "+a+" ")?a:!1},bgcolor:i,valign:s?i:function(a,b){b.addStyle("vertical-align",a);return!1}},comment:!CKEDITOR.env.ie?function(a,b){var c=a.match(/<img.*?>/),d=a.match(/^\[if !supportLists\]([\s\S]*?)\[endif\]$/);return d?(d=(c=d[1]||c&&"l.")&&c.match(/>(?:[(]?)([^\s]+?)([.)]?)</),h(d,c)):CKEDITOR.env.gecko&&c?(c=CKEDITOR.htmlParser.fragment.fromHtml(c[0]).children[0],(d=(d=(d=b.previous)&&d.value.match(/<v:imagedata[^>]*o:href=['"](.*?)['"]/))&&d[1])&&(c.attributes.src= -d),c):!1}:i}}},G=function(){this.dataFilter=new CKEDITOR.htmlParser.filter};G.prototype={toHtml:function(a){var a=CKEDITOR.htmlParser.fragment.fromHtml(a),c=new CKEDITOR.htmlParser.basicWriter;a.writeHtml(c,this.dataFilter);return c.getHtml(!0)}};CKEDITOR.cleanWord=function(a,c){a=a.replace(/<!\[([^\]]*?)\]>/g,"<\!--[$1]--\>");CKEDITOR.env.gecko&&(a=a.replace(/(<\!--\[if[^<]*?\])--\>([\S\s]*?)<\!--(\[endif\]--\>)/gi,"$1$2$3"));CKEDITOR.env.webkit&&(a=a.replace(/(class="MsoListParagraph[^>]+><\!--\[if !supportLists\]--\>)([^<]+<span[^<]+<\/span>)(<\!--\[endif\]--\>)/gi, -"$1<span>$2</span>$3"));var b=new G,f=b.dataFilter;f.addRules(CKEDITOR.plugins.pastefromword.getRules(c,f));c.fire("beforeCleanWord",{filter:f});try{a=b.toHtml(a)}catch(d){c.showNotification(c.lang.pastefromword.error)}a=a.replace(/cke:.*?".*?"/g,"");a=a.replace(/style=""/g,"");return a=a.replace(/<span>/g,"")}})(); \ No newline at end of file +(function(){function C(a){a=a.toUpperCase();for(var c=D.length,b=0,f=0;f<c;++f)for(var d=D[f],e=d[1].length;a.substr(0,e)==d[1];a=a.substr(e))b+=d[0];return b}function E(a){a=a.toUpperCase();for(var c=1,b=1;0<a.length;b*=26)c+="ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(a.charAt(a.length-1))*b,a=a.substr(0,a.length-1);return c}var F=CKEDITOR.htmlParser.fragment.prototype,r=CKEDITOR.htmlParser.element.prototype;F.onlyChild=r.onlyChild=function(){var a=this.children;return 1==a.length&&a[0]||null};r.removeAnyChildWithName= +function(a){for(var c=this.children,b=[],f,d=0;d<c.length;d++)f=c[d],f.name&&(f.name==a&&(b.push(f),c.splice(d--,1)),b=b.concat(f.removeAnyChildWithName(a)));return b};r.getAncestor=function(a){for(var c=this.parent;c&&(!c.name||!c.name.match(a));)c=c.parent;return c};F.firstChild=r.firstChild=function(a){for(var c,b=0;b<this.children.length;b++)if(c=this.children[b],a(c)||c.name&&(c=c.firstChild(a)))return c;return null};r.addStyle=function(a,c,b){var f="";if("string"==typeof c)f+=a+":"+c+";";else{if("object"== +typeof a)for(var d in a)a.hasOwnProperty(d)&&(f+=d+":"+a[d]+";");else f+=a;b=c}this.attributes||(this.attributes={});a=this.attributes.style||"";a=(b?[f,a]:[a,f]).join(";");this.attributes.style=a.replace(/^;+|;(?=;)/g,"")};r.getStyle=function(a){var c=this.attributes.style;if(c)return c=CKEDITOR.tools.parseCssText(c,1),c[a]};CKEDITOR.dtd.parentOf=function(a){var c={},b;for(b in this)-1==b.indexOf("$")&&this[b][a]&&(c[b]=1);return c};var G=/^(?:\b0[^\s]*\s*){1,4}$/,B={ol:{decimal:/\d+/,"lower-roman":/^m{0,4}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3})$/, +"upper-roman":/^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$/,"lower-alpha":/^[a-z]+$/,"upper-alpha":/^[A-Z]+$/},ul:{disc:/[l\u00B7\u2002]/,circle:/[\u006F\u00D8]/,square:/[\u006E\u25C6]/}},D=[[1E3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]],w=0,x=null,A,H=CKEDITOR.plugins.pastefromword={utils:{createListBulletMarker:function(a,c){var b=new CKEDITOR.htmlParser.element("cke:listbullet");b.attributes={"cke:listsymbol":a[0]}; +b.add(new CKEDITOR.htmlParser.text(c));return b},isListBulletIndicator:function(a){if(/mso-list\s*:\s*Ignore/i.test(a.attributes&&a.attributes.style))return!0},isContainingOnlySpaces:function(a){var c;return(c=a.onlyChild())&&/^(:?\s| )+$/.test(c.value)},resolveList:function(a){var c=a.attributes,b;if((b=a.removeAnyChildWithName("cke:listbullet"))&&b.length&&(b=b[0]))return a.name="cke:li",c.style&&(c.style=H.filters.stylesFilter([["text-indent"],["line-height"],[/^margin(:?-left)?$/,null,function(a){a= +a.split(" ");a=CKEDITOR.tools.convertToPx(a[3]||a[1]||a[0]);!w&&null!==x&&a>x&&(w=a-x);x=a;c["cke:indent"]=w&&Math.ceil(a/w)+1||1}],[/^mso-list$/,null,function(a){a=a.split(" ");if(!(2>a.length)){var b=Number(a[0].match(/\d+/));a=Number(a[1].match(/\d+/));1==a&&(b!==A&&(c["cke:reset"]=1),A=b);c["cke:indent"]=a}}]])(c.style,a)||""),c["cke:indent"]||(x=0,c["cke:indent"]=1),CKEDITOR.tools.extend(c,b.attributes),!0;A=x=w=null;return!1},getStyleComponents:function(){var a=CKEDITOR.dom.element.createFromHtml('\x3cdiv style\x3d"position:absolute;left:-9999px;top:-9999px;"\x3e\x3c/div\x3e', +CKEDITOR.document);CKEDITOR.document.getBody().append(a);return function(c,b,f){a.setStyle(c,b);c={};b=f.length;for(var d=0;d<b;d++)c[f[d]]=a.getStyle(f[d]);return c}}(),listDtdParents:CKEDITOR.dtd.parentOf("ol")},filters:{flattenList:function(a,c){c="number"==typeof c?c:1;var b=a.attributes,f;switch(b.type){case "a":f="lower-alpha";break;case "1":f="decimal"}for(var d=a.children,e,k=0;k<d.length;k++)if(e=d[k],e.name in CKEDITOR.dtd.$listItem){var l=e.attributes,g=e.children,n=g[0],h=g[g.length-1]; +n.attributes&&n.attributes.style&&-1<n.attributes.style.indexOf("mso-list")&&(e.attributes.style=n.attributes.style,n.replaceWithChildren());h.name in CKEDITOR.dtd.$list&&(a.add(h,k+1),--g.length||d.splice(k--,1));e.name="cke:li";b.start&&!k&&(l.value=b.start);H.filters.stylesFilter([["tab-stops",null,function(a){(a=a.match(/0$|\d+\.?\d*\w+/))&&(x=CKEDITOR.tools.convertToPx(a[0]))}],1==c?["mso-list",null,function(a){a=a.split(" ");a=Number(a[0].match(/\d+/));a!==A&&(l["cke:reset"]=1);A=a}]:null])(l.style); +l["cke:indent"]=c;l["cke:listtype"]=a.name;l["cke:list-style-type"]=f}else if(e.name in CKEDITOR.dtd.$list){arguments.callee.apply(this,[e,c+1]);d=d.slice(0,k).concat(e.children).concat(d.slice(k+1));a.children=[];e=0;for(g=d.length;e<g;e++)a.add(d[e]);d=a.children}delete a.name;b["cke:list"]=1},assembleList:function(a){var c=a.children,b,f,d,e,k,l;a=[];for(var g,n,h,p,m,t,q=0;q<c.length;q++)if(b=c[q],"cke:li"==b.name)if(b.name="li",f=b.attributes,h=(h=f["cke:listsymbol"])&&h.match(/^(?:[(]?)([^\s]+?)([.)]?)$/), +p=m=t=null,f["cke:ignored"])c.splice(q--,1);else{f["cke:reset"]&&(l=e=k=null);d=Number(f["cke:indent"]);d!=e&&(n=g=null);if(h){if(n&&B[n][g].test(h[1]))p=n,m=g;else for(var u in B)for(var y in B[u])if(B[u][y].test(h[1]))if("ol"==u&&/alpha|roman/.test(y)){if(g=/roman/.test(y)?C(h[1]):E(h[1]),!t||g<t)t=g,p=u,m=y}else{p=u;m=y;break}!p&&(p=h[2]?"ol":"ul")}else p=f["cke:listtype"]||"ol",m=f["cke:list-style-type"];n=p;g=m||("ol"==p?"decimal":"disc");m&&m!=("ol"==p?"decimal":"disc")&&b.addStyle("list-style-type", +m);if("ol"==p&&h){switch(m){case "decimal":t=Number(h[1]);break;case "lower-roman":case "upper-roman":t=C(h[1]);break;case "lower-alpha":case "upper-alpha":t=E(h[1])}b.attributes.value=t}if(l){if(d>e)a.push(l=new CKEDITOR.htmlParser.element(p)),l.add(b),k.add(l);else{if(d<e){e-=d;for(var v;e--&&(v=l.parent);)l=v.parent}l.add(b)}c.splice(q--,1)}else a.push(l=new CKEDITOR.htmlParser.element(p)),l.add(b),c[q]=l;k=b;e=d}else l&&(l=e=k=null);for(q=0;q<a.length;q++)if(l=a[q],u=l.children,g=g=void 0,y=l.children.length, +v=g=void 0,c=/list-style-type:(.*?)(?:;|$)/,e=CKEDITOR.plugins.pastefromword.filters.stylesFilter,g=l.attributes,!c.exec(g.style)){for(k=0;k<y;k++)if(g=u[k],g.attributes.value&&Number(g.attributes.value)==k+1&&delete g.attributes.value,g=c.exec(g.attributes.style))if(g[1]!=v&&v){v=null;break}else v=g[1];if(v){for(k=0;k<y;k++)g=u[k].attributes,g.style&&(g.style=e([["list-style-type"]])(g.style)||"");l.addStyle("list-style-type",v)}}A=x=w=null},falsyFilter:function(){return!1},stylesFilter:function(a, +c){return function(b,f){var d=[];(b||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(b,e,g){e=e.toLowerCase();"font-family"==e&&(g=g.replace(/["']/g,""));for(var n,h,p,m=0;m<a.length;m++)if(a[m]&&(b=a[m][0],n=a[m][1],h=a[m][2],p=a[m][3],e.match(b)&&(!n||g.match(n)))){e=p||e;c&&(h=h||g);"function"==typeof h&&(h=h(g,f,e));h&&h.push&&(e=h[0],h=h[1]);"string"==typeof h&&d.push([e,h]);return}!c&&d.push([e,g])});for(var e=0;e<d.length;e++)d[e]=d[e].join(":");return d.length? +d.join(";")+";":!1}},elementMigrateFilter:function(a,c){return a?function(b){var f=c?(new CKEDITOR.style(a,c))._.definition:a;b.name=f.element;CKEDITOR.tools.extend(b.attributes,CKEDITOR.tools.clone(f.attributes));b.addStyle(CKEDITOR.style.getStyleText(f));f.attributes&&f.attributes["class"]&&(b.classWhiteList=" "+f.attributes["class"]+" ")}:function(){}},styleMigrateFilter:function(a,c){var b=this.elementMigrateFilter;return a?function(f,d){var e=new CKEDITOR.htmlParser.element(null),k={};k[c]=f; +b(a,k)(e);e.children=d.children;d.children=[e];e.filter=function(){};e.parent=d}:function(){}},bogusAttrFilter:function(a,c){if(-1==c.name.indexOf("cke:"))return!1},applyStyleFilter:null},getRules:function(a,c){var b=CKEDITOR.dtd,f=CKEDITOR.tools.extend({},b.$block,b.$listItem,b.$tableContent),d=a.config,e=this.filters,k=e.falsyFilter,l=e.stylesFilter,g=e.elementMigrateFilter,n=CKEDITOR.tools.bind(this.filters.styleMigrateFilter,this.filters),h=this.utils.createListBulletMarker,p=e.flattenList,m= +e.assembleList,t=this.utils.isListBulletIndicator,q=this.utils.isContainingOnlySpaces,u=this.utils.resolveList,y=function(a){a=CKEDITOR.tools.convertToPx(a);return isNaN(a)?a:a+"px"},v=this.utils.getStyleComponents,x=this.utils.listDtdParents,r=!1!==d.pasteFromWordRemoveFontStyles,w=!1!==d.pasteFromWordRemoveStyles;return{elementNames:[[/meta|link|script/,""]],root:function(a){a.filterChildren(c);m(a)},elements:{"^":function(a){var c;CKEDITOR.env.gecko&&(c=e.applyStyleFilter)&&c(a)},$:function(a){var z= +a.name||"",e=a.attributes;z in f&&e.style&&(e.style=l([[/^(:?width|height)$/,null,y]])(e.style)||"");if(z.match(/h\d/)){a.filterChildren(c);if(u(a))return;g(d["format_"+z])(a)}else if(z in b.$inline)a.filterChildren(c),q(a)&&delete a.name;else if(-1!=z.indexOf(":")&&-1==z.indexOf("cke")){a.filterChildren(c);if("v:imagedata"==z){if(z=a.attributes["o:href"])a.attributes.src=z;a.name="img";return}delete a.name}z in x&&(a.filterChildren(c),m(a))},style:function(a){if(CKEDITOR.env.gecko){a=(a=a.onlyChild().value.match(/\/\* Style Definitions \*\/([\s\S]*?)\/\*/))&& +a[1];var c={};a&&(a.replace(/[\n\r]/g,"").replace(/(.+?)\{(.+?)\}/g,function(a,b,I){b=b.split(",");a=b.length;for(var d=0;d<a;d++)CKEDITOR.tools.trim(b[d]).replace(/^(\w+)(\.[\w-]+)?$/g,function(a,b,d){b=b||"*";d=d.substring(1,d.length);d.match(/MsoNormal/)||(c[b]||(c[b]={}),d?c[b][d]=I:c[b]=I)})}),e.applyStyleFilter=function(a){var b=c["*"]?"*":a.name,d=a.attributes&&a.attributes["class"];b in c&&(b=c[b],"object"==typeof b&&(b=b[d]),b&&a.addStyle(b,!0))})}return!1},p:function(a){if(/MsoListParagraph/i.exec(a.attributes["class"])|| +a.getStyle("mso-list")&&!a.getStyle("mso-list").match(/^(none|skip)$/i)){var b=a.firstChild(function(a){return a.type==CKEDITOR.NODE_TEXT&&!q(a.parent)});(b=b&&b.parent)&&b.addStyle("mso-list","Ignore")}a.filterChildren(c);u(a)||(d.enterMode==CKEDITOR.ENTER_BR?(delete a.name,a.add(new CKEDITOR.htmlParser.element("br"))):g(d["format_"+(d.enterMode==CKEDITOR.ENTER_P?"p":"div")])(a))},div:function(a){var c=a.onlyChild();if(c&&"table"==c.name){var b=a.attributes;c.attributes=CKEDITOR.tools.extend(c.attributes, +b);b.style&&c.addStyle(b.style);c=new CKEDITOR.htmlParser.element("div");c.addStyle("clear","both");a.add(c);delete a.name}},td:function(a){a.getAncestor("thead")&&(a.name="th")},ol:p,ul:p,dl:p,font:function(a){if(t(a.parent))delete a.name;else{a.filterChildren(c);var b=a.attributes,d=b.style,e=a.parent;"font"==e.name?(CKEDITOR.tools.extend(e.attributes,a.attributes),d&&e.addStyle(d),delete a.name):(d=(d||"").split(";"),b.color&&("#000000"!=b.color&&d.push("color:"+b.color),delete b.color),b.face&& +(d.push("font-family:"+b.face),delete b.face),b.size&&(d.push("font-size:"+(3<b.size?"large":3>b.size?"small":"medium")),delete b.size),a.name="span",a.addStyle(d.join(";")))}},span:function(a){if(t(a.parent))return!1;a.filterChildren(c);if(q(a))return delete a.name,null;if(t(a)){var b=a.firstChild(function(a){return a.value||"img"==a.name}),e=(b=b&&(b.value||"l."))&&b.match(/^(?:[(]?)([^\s]+?)([.)]?)$/);if(e)return b=h(e,b),(a=a.getAncestor("span"))&&/ mso-hide:\s*all|display:\s*none /.test(a.attributes.style)&& +(b.attributes["cke:ignored"]=1),b}if(e=(b=a.attributes)&&b.style)b.style=l([["line-height"],[/^font-family$/,null,r?null:n(d.font_style,"family")],[/^font-size$/,null,r?null:n(d.fontSize_style,"size")],[/^color$/,null,r?null:n(d.colorButton_foreStyle,"color")],[/^background-color$/,null,r?null:n(d.colorButton_backStyle,"color")]])(e,a)||"";b.style||delete b.style;CKEDITOR.tools.isEmpty(b)&&delete a.name;return null},b:g(d.coreStyles_bold),i:g(d.coreStyles_italic),u:g(d.coreStyles_underline),s:g(d.coreStyles_strike), +sup:g(d.coreStyles_superscript),sub:g(d.coreStyles_subscript),a:function(a){var b=a.attributes;b.name&&b.name.match(/ole_link\d+/i)?delete a.name:b.href&&b.href.match(/^file:\/\/\/[\S]+#/i)&&(b.href=b.href.replace(/^file:\/\/\/[^#]+/i,""))},"cke:listbullet":function(a){a.getAncestor(/h\d/)&&!d.pasteFromWordNumberedHeadingToList&&delete a.name}},attributeNames:[[/^onmouse(:?out|over)/,""],[/^onload$/,""],[/(?:v|o):\w+/,""],[/^lang/,""]],attributes:{style:l(w?[[/^list-style-type$/,null],[/^margin$|^margin-(?!bottom|top)/, +null,function(a,b,c){if(b.name in{p:1,div:1}){b="ltr"==d.contentsLangDirection?"margin-left":"margin-right";if("margin"==c)a=v(c,a,[b])[b];else if(c!=b)return null;if(a&&!G.test(a))return[b,a]}return null}],[/^clear$/],[/^border.*|margin.*|vertical-align|float$/,null,function(a,b){if("img"==b.name)return a}],[/^width|height$/,null,function(a,b){if(b.name in{table:1,td:1,th:1,img:1})return a}]]:[[/^mso-/],[/-color$/,null,function(a){if("transparent"==a)return!1;if(CKEDITOR.env.gecko)return a.replace(/-moz-use-text-color/g, +"transparent")}],[/^margin$/,G],["text-indent","0cm"],["page-break-before"],["tab-stops"],["display","none"],r?[/font-?/]:null],w),width:function(a,c){if(c.name in b.$tableContent)return!1},border:function(a,c){if(c.name in b.$tableContent)return!1},"class":function(a,b){return b.classWhiteList&&-1!=b.classWhiteList.indexOf(" "+a+" ")?a:!1},bgcolor:k,valign:w?k:function(a,b){b.addStyle("vertical-align",a);return!1}},comment:CKEDITOR.env.ie?k:function(a,b){var c=a.match(/<img.*?>/),d=a.match(/^\[if !supportLists\]([\s\S]*?)\[endif\]$/); +return d?(d=(c=d[1]||c&&"l.")&&c.match(/>(?:[(]?)([^\s]+?)([.)]?)</),h(d,c)):CKEDITOR.env.gecko&&c?(c=CKEDITOR.htmlParser.fragment.fromHtml(c[0]).children[0],(d=(d=(d=b.previous)&&d.value.match(/<v:imagedata[^>]*o:href=['"](.*?)['"]/))&&d[1])&&(c.attributes.src=d),c):!1}}}},J=function(){this.dataFilter=new CKEDITOR.htmlParser.filter};J.prototype={toHtml:function(a){a=CKEDITOR.htmlParser.fragment.fromHtml(a);var c=new CKEDITOR.htmlParser.basicWriter;a.writeHtml(c,this.dataFilter);return c.getHtml(!0)}}; +CKEDITOR.cleanWord=function(a,c){a=a.replace(/<!\[([^\]]*?)\]>/g,"\x3c!--[$1]--\x3e");CKEDITOR.env.gecko&&(a=a.replace(/(\x3c!--\[if[^<]*?\])--\x3e([\S\s]*?)\x3c!--(\[endif\]--\x3e)/gi,"$1$2$3"));CKEDITOR.env.webkit&&(a=a.replace(/(class="MsoListParagraph[^>]+>\x3c!--\[if !supportLists\]--\x3e)([^<]+<span[^<]+<\/span>)(\x3c!--\[endif\]--\x3e)/gi,"$1\x3cspan\x3e$2\x3c/span\x3e$3"));var b=new J,f=b.dataFilter;f.addRules(CKEDITOR.plugins.pastefromword.getRules(c,f));c.fire("beforeCleanWord",{filter:f}); +try{a=b.toHtml(a)}catch(d){c.showNotification(c.lang.pastefromword.error)}a=a.replace(/cke:.*?".*?"/g,"");a=a.replace(/style=""/g,"");return a=a.replace(/<span>/g,"")}})(); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor/plugins/specialchar/dialogs/lang/fr.js b/core/assets/vendor/ckeditor/plugins/specialchar/dialogs/lang/fr.js index b224b1e05dcd..a7a9fa69a482 100644 --- a/core/assets/vendor/ckeditor/plugins/specialchar/dialogs/lang/fr.js +++ b/core/assets/vendor/ckeditor/plugins/specialchar/dialogs/lang/fr.js @@ -3,7 +3,7 @@ For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("specialchar","fr",{euro:"Symbole Euro",lsquo:"Guillemet simple ouvrant",rsquo:"Guillemet simple fermant",ldquo:"Guillemet double ouvrant",rdquo:"Guillemet double fermant",ndash:"Tiret haut",mdash:"Tiret cadratin",iexcl:"Point d'exclamation inversé",cent:"Symbole Cent",pound:"Symbole Livre Sterling",curren:"Symbole monétaire",yen:"Symbole Yen",brvbar:"Barre verticale scindée",sect:"Section",uml:"Tréma",copy:"Symbole Copyright",ordf:"Indicateur ordinal féminin",laquo:"Guillemet français ouvrant", -not:"Crochet de négation",reg:"Marque déposée",macr:"Macron",deg:"Degré",sup2:"Exposant 2",sup3:"\\tExposant 3",acute:"Accent aigu",micro:"Omicron",para:"Paragraphe",middot:"Point médian",cedil:"Cédille",sup1:"\\tExposant 1",ordm:"Indicateur ordinal masculin",raquo:"Guillemet français fermant",frac14:"Un quart",frac12:"Un demi",frac34:"Trois quarts",iquest:"Point d'interrogation inversé",Agrave:"A majuscule accent grave",Aacute:"A majuscule accent aigu",Acirc:"A majuscule accent circonflexe",Atilde:"A majuscule avec caron", +not:"Crochet de négation",reg:"Marque déposée",macr:"Macron",deg:"Degré",sup2:"Exposant 2",sup3:"Exposant 3",acute:"Accent aigu",micro:"Omicron",para:"Paragraphe",middot:"Point médian",cedil:"Cédille",sup1:"Exposant 1",ordm:"Indicateur ordinal masculin",raquo:"Guillemet français fermant",frac14:"Un quart",frac12:"Un demi",frac34:"Trois quarts",iquest:"Point d'interrogation inversé",Agrave:"A majuscule accent grave",Aacute:"A majuscule accent aigu",Acirc:"A majuscule accent circonflexe",Atilde:"A majuscule avec caron", Auml:"A majuscule tréma",Aring:"A majuscule avec un rond au-dessus",AElig:"Æ majuscule ligaturés",Ccedil:"C majuscule cédille",Egrave:"E majuscule accent grave",Eacute:"E majuscule accent aigu",Ecirc:"E majuscule accent circonflexe",Euml:"E majuscule tréma",Igrave:"I majuscule accent grave",Iacute:"I majuscule accent aigu",Icirc:"I majuscule accent circonflexe",Iuml:"I majuscule tréma",ETH:"Lettre majuscule islandaise ED",Ntilde:"N majuscule avec caron",Ograve:"O majuscule accent grave",Oacute:"O majuscule accent aigu", Ocirc:"O majuscule accent circonflexe",Otilde:"O majuscule avec caron",Ouml:"O majuscule tréma",times:"Multiplication",Oslash:"O majuscule barré",Ugrave:"U majuscule accent grave",Uacute:"U majuscule accent aigu",Ucirc:"U majuscule accent circonflexe",Uuml:"U majuscule tréma",Yacute:"Y majuscule accent aigu",THORN:"Lettre islandaise Thorn majuscule",szlig:"Lettre minuscule allemande s dur",agrave:"a minuscule accent grave",aacute:"a minuscule accent aigu",acirc:"a minuscule accent circonflexe",atilde:"a minuscule avec caron", auml:"a minuscule tréma",aring:"a minuscule avec un rond au-dessus",aelig:"æ minuscule ligaturés",ccedil:"c minuscule cédille",egrave:"e minuscule accent grave",eacute:"e minuscule accent aigu",ecirc:"e minuscule accent circonflexe",euml:"e minuscule tréma",igrave:"i minuscule accent grave",iacute:"i minuscule accent aigu",icirc:"i minuscule accent circonflexe",iuml:"i minuscule tréma",eth:"Lettre minuscule islandaise ED",ntilde:"n minuscule avec caron",ograve:"o minuscule accent grave",oacute:"o minuscule accent aigu", diff --git a/core/assets/vendor/ckeditor/plugins/specialchar/dialogs/specialchar.js b/core/assets/vendor/ckeditor/plugins/specialchar/dialogs/specialchar.js index b343a831bacc..061cb450c264 100644 --- a/core/assets/vendor/ckeditor/plugins/specialchar/dialogs/specialchar.js +++ b/core/assets/vendor/ckeditor/plugins/specialchar/dialogs/specialchar.js @@ -2,13 +2,13 @@ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ -CKEDITOR.dialog.add("specialchar",function(i){var e,l=i.lang.specialchar,k=function(c){var b,c=c.data?c.data.getTarget():new CKEDITOR.dom.element(c);if("a"==c.getName()&&(b=c.getChild(0).getHtml()))c.removeClass("cke_light_background"),e.hide(),c=i.document.createElement("span"),c.setHtml(b),i.insertText(c.getText())},m=CKEDITOR.tools.addFunction(k),j,g=function(c,b){var a,b=b||c.data.getTarget();"span"==b.getName()&&(b=b.getParent());if("a"==b.getName()&&(a=b.getChild(0).getHtml())){j&&d(null,j); -var f=e.getContentElement("info","htmlPreview").getElement();e.getContentElement("info","charPreview").getElement().setHtml(a);f.setHtml(CKEDITOR.tools.htmlEncode(a));b.getParent().addClass("cke_light_background");j=b}},d=function(c,b){b=b||c.data.getTarget();"span"==b.getName()&&(b=b.getParent());"a"==b.getName()&&(e.getContentElement("info","charPreview").getElement().setHtml(" "),e.getContentElement("info","htmlPreview").getElement().setHtml(" "),b.getParent().removeClass("cke_light_background"), -j=void 0)},n=CKEDITOR.tools.addFunction(function(c){var c=new CKEDITOR.dom.event(c),b=c.getTarget(),a;a=c.getKeystroke();var f="rtl"==i.lang.dir;switch(a){case 38:if(a=b.getParent().getParent().getPrevious())a=a.getChild([b.getParent().getIndex(),0]),a.focus(),d(null,b),g(null,a);c.preventDefault();break;case 40:if(a=b.getParent().getParent().getNext())if((a=a.getChild([b.getParent().getIndex(),0]))&&1==a.type)a.focus(),d(null,b),g(null,a);c.preventDefault();break;case 32:k({data:c});c.preventDefault(); +CKEDITOR.dialog.add("specialchar",function(k){var e,n=k.lang.specialchar,m=function(c){var b;c=c.data?c.data.getTarget():new CKEDITOR.dom.element(c);"a"==c.getName()&&(b=c.getChild(0).getHtml())&&(c.removeClass("cke_light_background"),e.hide(),c=k.document.createElement("span"),c.setHtml(b),k.insertText(c.getText()))},p=CKEDITOR.tools.addFunction(m),l,g=function(c,b){var a;b=b||c.data.getTarget();"span"==b.getName()&&(b=b.getParent());if("a"==b.getName()&&(a=b.getChild(0).getHtml())){l&&d(null,l); +var f=e.getContentElement("info","htmlPreview").getElement();e.getContentElement("info","charPreview").getElement().setHtml(a);f.setHtml(CKEDITOR.tools.htmlEncode(a));b.getParent().addClass("cke_light_background");l=b}},d=function(c,b){b=b||c.data.getTarget();"span"==b.getName()&&(b=b.getParent());"a"==b.getName()&&(e.getContentElement("info","charPreview").getElement().setHtml("\x26nbsp;"),e.getContentElement("info","htmlPreview").getElement().setHtml("\x26nbsp;"),b.getParent().removeClass("cke_light_background"), +l=void 0)},q=CKEDITOR.tools.addFunction(function(c){c=new CKEDITOR.dom.event(c);var b=c.getTarget(),a;a=c.getKeystroke();var f="rtl"==k.lang.dir;switch(a){case 38:if(a=b.getParent().getParent().getPrevious())a=a.getChild([b.getParent().getIndex(),0]),a.focus(),d(null,b),g(null,a);c.preventDefault();break;case 40:(a=b.getParent().getParent().getNext())&&(a=a.getChild([b.getParent().getIndex(),0]))&&1==a.type&&(a.focus(),d(null,b),g(null,a));c.preventDefault();break;case 32:m({data:c});c.preventDefault(); break;case f?37:39:if(a=b.getParent().getNext())a=a.getChild(0),1==a.type?(a.focus(),d(null,b),g(null,a),c.preventDefault(!0)):d(null,b);else if(a=b.getParent().getParent().getNext())(a=a.getChild([0,0]))&&1==a.type?(a.focus(),d(null,b),g(null,a),c.preventDefault(!0)):d(null,b);break;case f?39:37:(a=b.getParent().getPrevious())?(a=a.getChild(0),a.focus(),d(null,b),g(null,a),c.preventDefault(!0)):(a=b.getParent().getParent().getPrevious())?(a=a.getLast().getChild(0),a.focus(),d(null,b),g(null,a),c.preventDefault(!0)): -d(null,b)}});return{title:l.title,minWidth:430,minHeight:280,buttons:[CKEDITOR.dialog.cancelButton],charColumns:17,onLoad:function(){for(var c=this.definition.charColumns,b=i.config.specialChars,a=CKEDITOR.tools.getNextId()+"_specialchar_table_label",f=['<table role="listbox" aria-labelledby="'+a+'" style="width: 320px; height: 100%; border-collapse: separate;" align="center" cellspacing="2" cellpadding="2" border="0">'],d=0,g=b.length,h,e;d<g;){f.push('<tr role="presentation">');for(var j=0;j<c;j++, -d++){if(h=b[d]){h instanceof Array?(e=h[1],h=h[0]):(e=h.replace("&","").replace(";","").replace("#",""),e=l[e]||h);var k="cke_specialchar_label_"+d+"_"+CKEDITOR.tools.getNextNumber();f.push('<td class="cke_dark_background" style="cursor: default" role="presentation"><a href="javascript: void(0);" role="option" aria-posinset="'+(d+1)+'"',' aria-setsize="'+g+'"',' aria-labelledby="'+k+'"',' class="cke_specialchar" title="',CKEDITOR.tools.htmlEncode(e),'" onkeydown="CKEDITOR.tools.callFunction( '+n+ -', event, this )" onclick="CKEDITOR.tools.callFunction('+m+', this); return false;" tabindex="-1"><span style="margin: 0 auto;cursor: inherit">'+h+'</span><span class="cke_voice_label" id="'+k+'">'+e+"</span></a>")}else f.push('<td class="cke_dark_background"> ');f.push("</td>")}f.push("</tr>")}f.push("</tbody></table>",'<span id="'+a+'" class="cke_voice_label">'+l.options+"</span>");this.getContentElement("info","charContainer").getElement().setHtml(f.join(""))},contents:[{id:"info",label:i.lang.common.generalTab, -title:i.lang.common.generalTab,padding:0,align:"top",elements:[{type:"hbox",align:"top",widths:["320px","90px"],children:[{type:"html",id:"charContainer",html:"",onMouseover:g,onMouseout:d,focus:function(){var c=this.getElement().getElementsByTag("a").getItem(0);setTimeout(function(){c.focus();g(null,c)},0)},onShow:function(){var c=this.getElement().getChild([0,0,0,0,0]);setTimeout(function(){c.focus();g(null,c)},0)},onLoad:function(c){e=c.sender}},{type:"hbox",align:"top",widths:["100%"],children:[{type:"vbox", -align:"top",children:[{type:"html",html:"<div></div>"},{type:"html",id:"charPreview",className:"cke_dark_background",style:"border:1px solid #eeeeee;font-size:28px;height:40px;width:70px;padding-top:9px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:"<div> </div>"},{type:"html",id:"htmlPreview",className:"cke_dark_background",style:"border:1px solid #eeeeee;font-size:14px;height:20px;width:70px;padding-top:2px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;", -html:"<div> </div>"}]}]}]}]}]}}); \ No newline at end of file +d(null,b)}});return{title:n.title,minWidth:430,minHeight:280,buttons:[CKEDITOR.dialog.cancelButton],charColumns:17,onLoad:function(){for(var c=this.definition.charColumns,b=k.config.specialChars,a=CKEDITOR.tools.getNextId()+"_specialchar_table_label",f=['\x3ctable role\x3d"listbox" aria-labelledby\x3d"'+a+'" style\x3d"width: 320px; height: 100%; border-collapse: separate;" align\x3d"center" cellspacing\x3d"2" cellpadding\x3d"2" border\x3d"0"\x3e'],d=0,g=b.length,h,e;d<g;){f.push('\x3ctr role\x3d"presentation"\x3e'); +for(var l=0;l<c;l++,d++){if(h=b[d]){h instanceof Array?(e=h[1],h=h[0]):(e=h.replace("\x26","").replace(";","").replace("#",""),e=n[e]||h);var m="cke_specialchar_label_"+d+"_"+CKEDITOR.tools.getNextNumber();f.push('\x3ctd class\x3d"cke_dark_background" style\x3d"cursor: default" role\x3d"presentation"\x3e\x3ca href\x3d"javascript: void(0);" role\x3d"option" aria-posinset\x3d"'+(d+1)+'"',' aria-setsize\x3d"'+g+'"',' aria-labelledby\x3d"'+m+'"',' class\x3d"cke_specialchar" title\x3d"',CKEDITOR.tools.htmlEncode(e), +'" onkeydown\x3d"CKEDITOR.tools.callFunction( '+q+', event, this )" onclick\x3d"CKEDITOR.tools.callFunction('+p+', this); return false;" tabindex\x3d"-1"\x3e\x3cspan style\x3d"margin: 0 auto;cursor: inherit"\x3e'+h+'\x3c/span\x3e\x3cspan class\x3d"cke_voice_label" id\x3d"'+m+'"\x3e'+e+"\x3c/span\x3e\x3c/a\x3e")}else f.push('\x3ctd class\x3d"cke_dark_background"\x3e\x26nbsp;');f.push("\x3c/td\x3e")}f.push("\x3c/tr\x3e")}f.push("\x3c/tbody\x3e\x3c/table\x3e",'\x3cspan id\x3d"'+a+'" class\x3d"cke_voice_label"\x3e'+ +n.options+"\x3c/span\x3e");this.getContentElement("info","charContainer").getElement().setHtml(f.join(""))},contents:[{id:"info",label:k.lang.common.generalTab,title:k.lang.common.generalTab,padding:0,align:"top",elements:[{type:"hbox",align:"top",widths:["320px","90px"],children:[{type:"html",id:"charContainer",html:"",onMouseover:g,onMouseout:d,focus:function(){var c=this.getElement().getElementsByTag("a").getItem(0);setTimeout(function(){c.focus();g(null,c)},0)},onShow:function(){var c=this.getElement().getChild([0, +0,0,0,0]);setTimeout(function(){c.focus();g(null,c)},0)},onLoad:function(c){e=c.sender}},{type:"hbox",align:"top",widths:["100%"],children:[{type:"vbox",align:"top",children:[{type:"html",html:"\x3cdiv\x3e\x3c/div\x3e"},{type:"html",id:"charPreview",className:"cke_dark_background",style:"border:1px solid #eeeeee;font-size:28px;height:40px;width:70px;padding-top:9px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:"\x3cdiv\x3e\x26nbsp;\x3c/div\x3e"},{type:"html", +id:"htmlPreview",className:"cke_dark_background",style:"border:1px solid #eeeeee;font-size:14px;height:20px;width:70px;padding-top:2px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:"\x3cdiv\x3e\x26nbsp;\x3c/div\x3e"}]}]}]}]}]}}); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor/plugins/table/dialogs/table.js b/core/assets/vendor/ckeditor/plugins/table/dialogs/table.js index 8d449cd15668..f7d190e6c7ba 100644 --- a/core/assets/vendor/ckeditor/plugins/table/dialogs/table.js +++ b/core/assets/vendor/ckeditor/plugins/table/dialogs/table.js @@ -2,20 +2,20 @@ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ -(function(){function r(a){for(var e=0,l=0,k=0,m,g=a.$.rows.length;k<g;k++){m=a.$.rows[k];for(var d=e=0,c,b=m.cells.length;d<b;d++)c=m.cells[d],e+=c.colSpan;e>l&&(l=e)}return l}function o(a){return function(){var e=this.getValue(),e=!!(CKEDITOR.dialog.validate.integer()(e)&&0<e);e||(alert(a),this.select());return e}}function n(a,e){var l=function(g){return new CKEDITOR.dom.element(g,a.document)},n=a.editable(),m=a.plugins.dialogadvtab;return{title:a.lang.table.title,minWidth:310,minHeight:CKEDITOR.env.ie? -310:280,onLoad:function(){var g=this,a=g.getContentElement("advanced","advStyles");if(a)a.on("change",function(){var a=this.getStyle("width",""),b=g.getContentElement("info","txtWidth");b&&b.setValue(a,!0);a=this.getStyle("height","");(b=g.getContentElement("info","txtHeight"))&&b.setValue(a,!0)})},onShow:function(){var g=a.getSelection(),d=g.getRanges(),c,b=this.getContentElement("info","txtRows"),h=this.getContentElement("info","txtCols"),p=this.getContentElement("info","txtWidth"),f=this.getContentElement("info", -"txtHeight");"tableProperties"==e&&((g=g.getSelectedElement())&&g.is("table")?c=g:0<d.length&&(CKEDITOR.env.webkit&&d[0].shrink(CKEDITOR.NODE_ELEMENT),c=a.elementPath(d[0].getCommonAncestor(!0)).contains("table",1)),this._.selectedElement=c);c?(this.setupContent(c),b&&b.disable(),h&&h.disable()):(b&&b.enable(),h&&h.enable());p&&p.onChange();f&&f.onChange()},onOk:function(){var g=a.getSelection(),d=this._.selectedElement&&g.createBookmarks(),c=this._.selectedElement||l("table"),b={};this.commitContent(b, -c);if(b.info){b=b.info;if(!this._.selectedElement)for(var h=c.append(l("tbody")),e=parseInt(b.txtRows,10)||0,f=parseInt(b.txtCols,10)||0,i=0;i<e;i++)for(var j=h.append(l("tr")),k=0;k<f;k++)j.append(l("td")).appendBogus();e=b.selHeaders;if(!c.$.tHead&&("row"==e||"both"==e)){j=new CKEDITOR.dom.element(c.$.createTHead());h=c.getElementsByTag("tbody").getItem(0);h=h.getElementsByTag("tr").getItem(0);for(i=0;i<h.getChildCount();i++)f=h.getChild(i),f.type==CKEDITOR.NODE_ELEMENT&&!f.data("cke-bookmark")&& -(f.renameNode("th"),f.setAttribute("scope","col"));j.append(h.remove())}if(null!==c.$.tHead&&!("row"==e||"both"==e)){j=new CKEDITOR.dom.element(c.$.tHead);h=c.getElementsByTag("tbody").getItem(0);for(k=h.getFirst();0<j.getChildCount();){h=j.getFirst();for(i=0;i<h.getChildCount();i++)f=h.getChild(i),f.type==CKEDITOR.NODE_ELEMENT&&(f.renameNode("td"),f.removeAttribute("scope"));h.insertBefore(k)}j.remove()}if(!this.hasColumnHeaders&&("col"==e||"both"==e))for(j=0;j<c.$.rows.length;j++)f=new CKEDITOR.dom.element(c.$.rows[j].cells[0]), -f.renameNode("th"),f.setAttribute("scope","row");if(this.hasColumnHeaders&&!("col"==e||"both"==e))for(i=0;i<c.$.rows.length;i++)j=new CKEDITOR.dom.element(c.$.rows[i]),"tbody"==j.getParent().getName()&&(f=new CKEDITOR.dom.element(j.$.cells[0]),f.renameNode("td"),f.removeAttribute("scope"));b.txtHeight?c.setStyle("height",b.txtHeight):c.removeStyle("height");b.txtWidth?c.setStyle("width",b.txtWidth):c.removeStyle("width");c.getAttribute("style")||c.removeAttribute("style")}if(this._.selectedElement)try{g.selectBookmarks(d)}catch(m){}else a.insertElement(c), -setTimeout(function(){var g=new CKEDITOR.dom.element(c.$.rows[0].cells[0]),b=a.createRange();b.moveToPosition(g,CKEDITOR.POSITION_AFTER_START);b.select()},0)},contents:[{id:"info",label:a.lang.table.title,elements:[{type:"hbox",widths:[null,null],styles:["vertical-align:top"],children:[{type:"vbox",padding:0,children:[{type:"text",id:"txtRows","default":3,label:a.lang.table.rows,required:!0,controlStyle:"width:5em",validate:o(a.lang.table.invalidRows),setup:function(a){this.setValue(a.$.rows.length)}, -commit:k},{type:"text",id:"txtCols","default":2,label:a.lang.table.columns,required:!0,controlStyle:"width:5em",validate:o(a.lang.table.invalidCols),setup:function(a){this.setValue(r(a))},commit:k},{type:"html",html:" "},{type:"select",id:"selHeaders",requiredContent:"th","default":"",label:a.lang.table.headers,items:[[a.lang.table.headersNone,""],[a.lang.table.headersRow,"row"],[a.lang.table.headersColumn,"col"],[a.lang.table.headersBoth,"both"]],setup:function(a){var d=this.getDialog();d.hasColumnHeaders= -!0;for(var c=0;c<a.$.rows.length;c++){var b=a.$.rows[c].cells[0];if(b&&"th"!=b.nodeName.toLowerCase()){d.hasColumnHeaders=!1;break}}null!==a.$.tHead?this.setValue(d.hasColumnHeaders?"both":"row"):this.setValue(d.hasColumnHeaders?"col":"")},commit:k},{type:"text",id:"txtBorder",requiredContent:"table[border]","default":a.filter.check("table[border]")?1:0,label:a.lang.table.border,controlStyle:"width:3em",validate:CKEDITOR.dialog.validate.number(a.lang.table.invalidBorder),setup:function(a){this.setValue(a.getAttribute("border")|| +(function(){function v(a){for(var f=0,n=0,m=0,p,e=a.$.rows.length;m<e;m++){p=a.$.rows[m];for(var d=f=0,c,b=p.cells.length;d<b;d++)c=p.cells[d],f+=c.colSpan;f>n&&(n=f)}return n}function r(a){return function(){var f=this.getValue(),f=!!(CKEDITOR.dialog.validate.integer()(f)&&0<f);f||(alert(a),this.select());return f}}function q(a,f){var n=function(e){return new CKEDITOR.dom.element(e,a.document)},q=a.editable(),p=a.plugins.dialogadvtab;return{title:a.lang.table.title,minWidth:310,minHeight:CKEDITOR.env.ie? +310:280,onLoad:function(){var e=this,a=e.getContentElement("advanced","advStyles");if(a)a.on("change",function(){var a=this.getStyle("width",""),b=e.getContentElement("info","txtWidth");b&&b.setValue(a,!0);a=this.getStyle("height","");(b=e.getContentElement("info","txtHeight"))&&b.setValue(a,!0)})},onShow:function(){var e=a.getSelection(),d=e.getRanges(),c,b=this.getContentElement("info","txtRows"),h=this.getContentElement("info","txtCols"),t=this.getContentElement("info","txtWidth"),g=this.getContentElement("info", +"txtHeight");"tableProperties"==f&&((e=e.getSelectedElement())&&e.is("table")?c=e:0<d.length&&(CKEDITOR.env.webkit&&d[0].shrink(CKEDITOR.NODE_ELEMENT),c=a.elementPath(d[0].getCommonAncestor(!0)).contains("table",1)),this._.selectedElement=c);c?(this.setupContent(c),b&&b.disable(),h&&h.disable()):(b&&b.enable(),h&&h.enable());t&&t.onChange();g&&g.onChange()},onOk:function(){var e=a.getSelection(),d=this._.selectedElement&&e.createBookmarks(),c=this._.selectedElement||n("table"),b={};this.commitContent(b, +c);if(b.info){b=b.info;if(!this._.selectedElement)for(var h=c.append(n("tbody")),f=parseInt(b.txtRows,10)||0,g=parseInt(b.txtCols,10)||0,k=0;k<f;k++)for(var l=h.append(n("tr")),m=0;m<g;m++)l.append(n("td")).appendBogus();f=b.selHeaders;if(!c.$.tHead&&("row"==f||"both"==f)){l=new CKEDITOR.dom.element(c.$.createTHead());h=c.getElementsByTag("tbody").getItem(0);h=h.getElementsByTag("tr").getItem(0);for(k=0;k<h.getChildCount();k++)g=h.getChild(k),g.type!=CKEDITOR.NODE_ELEMENT||g.data("cke-bookmark")|| +(g.renameNode("th"),g.setAttribute("scope","col"));l.append(h.remove())}if(null!==c.$.tHead&&"row"!=f&&"both"!=f){l=new CKEDITOR.dom.element(c.$.tHead);h=c.getElementsByTag("tbody").getItem(0);for(m=h.getFirst();0<l.getChildCount();){h=l.getFirst();for(k=0;k<h.getChildCount();k++)g=h.getChild(k),g.type==CKEDITOR.NODE_ELEMENT&&(g.renameNode("td"),g.removeAttribute("scope"));h.insertBefore(m)}l.remove()}if(!this.hasColumnHeaders&&("col"==f||"both"==f))for(l=0;l<c.$.rows.length;l++)g=new CKEDITOR.dom.element(c.$.rows[l].cells[0]), +g.renameNode("th"),g.setAttribute("scope","row");if(this.hasColumnHeaders&&"col"!=f&&"both"!=f)for(k=0;k<c.$.rows.length;k++)l=new CKEDITOR.dom.element(c.$.rows[k]),"tbody"==l.getParent().getName()&&(g=new CKEDITOR.dom.element(l.$.cells[0]),g.renameNode("td"),g.removeAttribute("scope"));b.txtHeight?c.setStyle("height",b.txtHeight):c.removeStyle("height");b.txtWidth?c.setStyle("width",b.txtWidth):c.removeStyle("width");c.getAttribute("style")||c.removeAttribute("style")}if(this._.selectedElement)try{e.selectBookmarks(d)}catch(p){}else a.insertElement(c), +setTimeout(function(){var e=new CKEDITOR.dom.element(c.$.rows[0].cells[0]),b=a.createRange();b.moveToPosition(e,CKEDITOR.POSITION_AFTER_START);b.select()},0)},contents:[{id:"info",label:a.lang.table.title,elements:[{type:"hbox",widths:[null,null],styles:["vertical-align:top"],children:[{type:"vbox",padding:0,children:[{type:"text",id:"txtRows","default":3,label:a.lang.table.rows,required:!0,controlStyle:"width:5em",validate:r(a.lang.table.invalidRows),setup:function(e){this.setValue(e.$.rows.length)}, +commit:m},{type:"text",id:"txtCols","default":2,label:a.lang.table.columns,required:!0,controlStyle:"width:5em",validate:r(a.lang.table.invalidCols),setup:function(e){this.setValue(v(e))},commit:m},{type:"html",html:"\x26nbsp;"},{type:"select",id:"selHeaders",requiredContent:"th","default":"",label:a.lang.table.headers,items:[[a.lang.table.headersNone,""],[a.lang.table.headersRow,"row"],[a.lang.table.headersColumn,"col"],[a.lang.table.headersBoth,"both"]],setup:function(e){var a=this.getDialog(); +a.hasColumnHeaders=!0;for(var c=0;c<e.$.rows.length;c++){var b=e.$.rows[c].cells[0];if(b&&"th"!=b.nodeName.toLowerCase()){a.hasColumnHeaders=!1;break}}null!==e.$.tHead?this.setValue(a.hasColumnHeaders?"both":"row"):this.setValue(a.hasColumnHeaders?"col":"")},commit:m},{type:"text",id:"txtBorder",requiredContent:"table[border]","default":a.filter.check("table[border]")?1:0,label:a.lang.table.border,controlStyle:"width:3em",validate:CKEDITOR.dialog.validate.number(a.lang.table.invalidBorder),setup:function(a){this.setValue(a.getAttribute("border")|| "")},commit:function(a,d){this.getValue()?d.setAttribute("border",this.getValue()):d.removeAttribute("border")}},{id:"cmbAlign",type:"select",requiredContent:"table[align]","default":"",label:a.lang.common.align,items:[[a.lang.common.notSet,""],[a.lang.common.alignLeft,"left"],[a.lang.common.alignCenter,"center"],[a.lang.common.alignRight,"right"]],setup:function(a){this.setValue(a.getAttribute("align")||"")},commit:function(a,d){this.getValue()?d.setAttribute("align",this.getValue()):d.removeAttribute("align")}}]}, -{type:"vbox",padding:0,children:[{type:"hbox",widths:["5em"],children:[{type:"text",id:"txtWidth",requiredContent:"table{width}",controlStyle:"width:5em",label:a.lang.common.width,title:a.lang.common.cssLengthTooltip,"default":a.filter.check("table{width}")?500>n.getSize("width")?"100%":500:0,getValue:q,validate:CKEDITOR.dialog.validate.cssLength(a.lang.common.invalidCssLength.replace("%1",a.lang.common.width)),onChange:function(){var a=this.getDialog().getContentElement("advanced","advStyles");a&& -a.updateStyle("width",this.getValue())},setup:function(a){this.setValue(a.getStyle("width"))},commit:k}]},{type:"hbox",widths:["5em"],children:[{type:"text",id:"txtHeight",requiredContent:"table{height}",controlStyle:"width:5em",label:a.lang.common.height,title:a.lang.common.cssLengthTooltip,"default":"",getValue:q,validate:CKEDITOR.dialog.validate.cssLength(a.lang.common.invalidCssLength.replace("%1",a.lang.common.height)),onChange:function(){var a=this.getDialog().getContentElement("advanced","advStyles"); -a&&a.updateStyle("height",this.getValue())},setup:function(a){(a=a.getStyle("height"))&&this.setValue(a)},commit:k}]},{type:"html",html:" "},{type:"text",id:"txtCellSpace",requiredContent:"table[cellspacing]",controlStyle:"width:3em",label:a.lang.table.cellSpace,"default":a.filter.check("table[cellspacing]")?1:0,validate:CKEDITOR.dialog.validate.number(a.lang.table.invalidCellSpacing),setup:function(a){this.setValue(a.getAttribute("cellSpacing")||"")},commit:function(a,d){this.getValue()?d.setAttribute("cellSpacing", -this.getValue()):d.removeAttribute("cellSpacing")}},{type:"text",id:"txtCellPad",requiredContent:"table[cellpadding]",controlStyle:"width:3em",label:a.lang.table.cellPad,"default":a.filter.check("table[cellpadding]")?1:0,validate:CKEDITOR.dialog.validate.number(a.lang.table.invalidCellPadding),setup:function(a){this.setValue(a.getAttribute("cellPadding")||"")},commit:function(a,d){this.getValue()?d.setAttribute("cellPadding",this.getValue()):d.removeAttribute("cellPadding")}}]}]},{type:"html",align:"right", -html:""},{type:"vbox",padding:0,children:[{type:"text",id:"txtCaption",requiredContent:"caption",label:a.lang.table.caption,setup:function(a){this.enable();a=a.getElementsByTag("caption");if(0<a.count()){var a=a.getItem(0),d=a.getFirst(CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT));d&&!d.equals(a.getBogus())?(this.disable(),this.setValue(a.getText())):(a=CKEDITOR.tools.trim(a.getText()),this.setValue(a))}},commit:function(e,d){if(this.isEnabled()){var c=this.getValue(),b=d.getElementsByTag("caption"); -if(c)0<b.count()?(b=b.getItem(0),b.setHtml("")):(b=new CKEDITOR.dom.element("caption",a.document),d.getChildCount()?b.insertBefore(d.getFirst()):b.appendTo(d)),b.append(new CKEDITOR.dom.text(c,a.document));else if(0<b.count())for(c=b.count()-1;0<=c;c--)b.getItem(c).remove()}}},{type:"text",id:"txtSummary",bidi:!0,requiredContent:"table[summary]",label:a.lang.table.summary,setup:function(a){this.setValue(a.getAttribute("summary")||"")},commit:function(a,d){this.getValue()?d.setAttribute("summary", -this.getValue()):d.removeAttribute("summary")}}]}]},m&&m.createAdvancedTab(a,null,"table")]}}var q=CKEDITOR.tools.cssLength,k=function(a){var e=this.id;a.info||(a.info={});a.info[e]=this.getValue()};CKEDITOR.dialog.add("table",function(a){return n(a,"table")});CKEDITOR.dialog.add("tableProperties",function(a){return n(a,"tableProperties")})})(); \ No newline at end of file +{type:"vbox",padding:0,children:[{type:"hbox",widths:["5em"],children:[{type:"text",id:"txtWidth",requiredContent:"table{width}",controlStyle:"width:5em",label:a.lang.common.width,title:a.lang.common.cssLengthTooltip,"default":a.filter.check("table{width}")?500>q.getSize("width")?"100%":500:0,getValue:u,validate:CKEDITOR.dialog.validate.cssLength(a.lang.common.invalidCssLength.replace("%1",a.lang.common.width)),onChange:function(){var a=this.getDialog().getContentElement("advanced","advStyles");a&& +a.updateStyle("width",this.getValue())},setup:function(a){a=a.getStyle("width");this.setValue(a)},commit:m}]},{type:"hbox",widths:["5em"],children:[{type:"text",id:"txtHeight",requiredContent:"table{height}",controlStyle:"width:5em",label:a.lang.common.height,title:a.lang.common.cssLengthTooltip,"default":"",getValue:u,validate:CKEDITOR.dialog.validate.cssLength(a.lang.common.invalidCssLength.replace("%1",a.lang.common.height)),onChange:function(){var a=this.getDialog().getContentElement("advanced", +"advStyles");a&&a.updateStyle("height",this.getValue())},setup:function(a){(a=a.getStyle("height"))&&this.setValue(a)},commit:m}]},{type:"html",html:"\x26nbsp;"},{type:"text",id:"txtCellSpace",requiredContent:"table[cellspacing]",controlStyle:"width:3em",label:a.lang.table.cellSpace,"default":a.filter.check("table[cellspacing]")?1:0,validate:CKEDITOR.dialog.validate.number(a.lang.table.invalidCellSpacing),setup:function(a){this.setValue(a.getAttribute("cellSpacing")||"")},commit:function(a,d){this.getValue()? +d.setAttribute("cellSpacing",this.getValue()):d.removeAttribute("cellSpacing")}},{type:"text",id:"txtCellPad",requiredContent:"table[cellpadding]",controlStyle:"width:3em",label:a.lang.table.cellPad,"default":a.filter.check("table[cellpadding]")?1:0,validate:CKEDITOR.dialog.validate.number(a.lang.table.invalidCellPadding),setup:function(a){this.setValue(a.getAttribute("cellPadding")||"")},commit:function(a,d){this.getValue()?d.setAttribute("cellPadding",this.getValue()):d.removeAttribute("cellPadding")}}]}]}, +{type:"html",align:"right",html:""},{type:"vbox",padding:0,children:[{type:"text",id:"txtCaption",requiredContent:"caption",label:a.lang.table.caption,setup:function(a){this.enable();a=a.getElementsByTag("caption");if(0<a.count()){a=a.getItem(0);var d=a.getFirst(CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT));d&&!d.equals(a.getBogus())?(this.disable(),this.setValue(a.getText())):(a=CKEDITOR.tools.trim(a.getText()),this.setValue(a))}},commit:function(e,d){if(this.isEnabled()){var c=this.getValue(), +b=d.getElementsByTag("caption");if(c)0<b.count()?(b=b.getItem(0),b.setHtml("")):(b=new CKEDITOR.dom.element("caption",a.document),d.getChildCount()?b.insertBefore(d.getFirst()):b.appendTo(d)),b.append(new CKEDITOR.dom.text(c,a.document));else if(0<b.count())for(c=b.count()-1;0<=c;c--)b.getItem(c).remove()}}},{type:"text",id:"txtSummary",bidi:!0,requiredContent:"table[summary]",label:a.lang.table.summary,setup:function(a){this.setValue(a.getAttribute("summary")||"")},commit:function(a,d){this.getValue()? +d.setAttribute("summary",this.getValue()):d.removeAttribute("summary")}}]}]},p&&p.createAdvancedTab(a,null,"table")]}}var u=CKEDITOR.tools.cssLength,m=function(a){var f=this.id;a.info||(a.info={});a.info[f]=this.getValue()};CKEDITOR.dialog.add("table",function(a){return q(a,"table")});CKEDITOR.dialog.add("tableProperties",function(a){return q(a,"tableProperties")})})(); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor/plugins/tabletools/dialogs/tableCell.js b/core/assets/vendor/ckeditor/plugins/tabletools/dialogs/tableCell.js index 6efe7650b815..c754020cf5f2 100644 --- a/core/assets/vendor/ckeditor/plugins/tabletools/dialogs/tableCell.js +++ b/core/assets/vendor/ckeditor/plugins/tabletools/dialogs/tableCell.js @@ -2,16 +2,16 @@ Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ -CKEDITOR.dialog.add("cellProperties",function(g){function d(a){return function(b){for(var c=a(b[0]),d=1;d<b.length;d++)if(a(b[d])!==c){c=null;break}"undefined"!=typeof c&&(this.setValue(c),CKEDITOR.env.gecko&&("select"==this.type&&!c)&&(this.getInputElement().$.selectedIndex=-1))}}function j(a){if(a=l.exec(a.getStyle("width")||a.getAttribute("width")))return a[2]}var h=g.lang.table,c=h.cell,e=g.lang.common,i=CKEDITOR.dialog.validate,l=/^(\d+(?:\.\d+)?)(px|%)$/,f={type:"html",html:" "},m="rtl"== -g.lang.dir,k=g.plugins.colordialog;return{title:c.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?450:410,minHeight:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?230:220,contents:[{id:"info",label:c.title,accessKey:"I",elements:[{type:"hbox",widths:["40%","5%","40%"],children:[{type:"vbox",padding:0,children:[{type:"hbox",widths:["70%","30%"],children:[{type:"text",id:"width",width:"100px",label:e.width,validate:i.number(c.invalidWidth),onLoad:function(){var a=this.getDialog().getContentElement("info", -"widthType").getElement(),b=this.getInputElement(),c=b.getAttribute("aria-labelledby");b.setAttribute("aria-labelledby",[c,a.$.id].join(" "))},setup:d(function(a){var b=parseInt(a.getAttribute("width"),10),a=parseInt(a.getStyle("width"),10);return!isNaN(a)?a:!isNaN(b)?b:""}),commit:function(a){var b=parseInt(this.getValue(),10),c=this.getDialog().getValueOf("info","widthType")||j(a);isNaN(b)?a.removeStyle("width"):a.setStyle("width",b+c);a.removeAttribute("width")},"default":""},{type:"select",id:"widthType", -label:g.lang.table.widthUnit,labelStyle:"visibility:hidden","default":"px",items:[[h.widthPx,"px"],[h.widthPc,"%"]],setup:d(j)}]},{type:"hbox",widths:["70%","30%"],children:[{type:"text",id:"height",label:e.height,width:"100px","default":"",validate:i.number(c.invalidHeight),onLoad:function(){var a=this.getDialog().getContentElement("info","htmlHeightType").getElement(),b=this.getInputElement(),c=b.getAttribute("aria-labelledby");b.setAttribute("aria-labelledby",[c,a.$.id].join(" "))},setup:d(function(a){var b= -parseInt(a.getAttribute("height"),10),a=parseInt(a.getStyle("height"),10);return!isNaN(a)?a:!isNaN(b)?b:""}),commit:function(a){var b=parseInt(this.getValue(),10);isNaN(b)?a.removeStyle("height"):a.setStyle("height",CKEDITOR.tools.cssLength(b));a.removeAttribute("height")}},{id:"htmlHeightType",type:"html",html:"<br />"+h.widthPx}]},f,{type:"select",id:"wordWrap",label:c.wordWrap,"default":"yes",items:[[c.yes,"yes"],[c.no,"no"]],setup:d(function(a){var b=a.getAttribute("noWrap");if("nowrap"==a.getStyle("white-space")|| -b)return"no"}),commit:function(a){"no"==this.getValue()?a.setStyle("white-space","nowrap"):a.removeStyle("white-space");a.removeAttribute("noWrap")}},f,{type:"select",id:"hAlign",label:c.hAlign,"default":"",items:[[e.notSet,""],[e.alignLeft,"left"],[e.alignCenter,"center"],[e.alignRight,"right"],[e.alignJustify,"justify"]],setup:d(function(a){var b=a.getAttribute("align");return a.getStyle("text-align")||b||""}),commit:function(a){var b=this.getValue();b?a.setStyle("text-align",b):a.removeStyle("text-align"); -a.removeAttribute("align")}},{type:"select",id:"vAlign",label:c.vAlign,"default":"",items:[[e.notSet,""],[e.alignTop,"top"],[e.alignMiddle,"middle"],[e.alignBottom,"bottom"],[c.alignBaseline,"baseline"]],setup:d(function(a){var b=a.getAttribute("vAlign"),a=a.getStyle("vertical-align");switch(a){case "top":case "middle":case "bottom":case "baseline":break;default:a=""}return a||b||""}),commit:function(a){var b=this.getValue();b?a.setStyle("vertical-align",b):a.removeStyle("vertical-align");a.removeAttribute("vAlign")}}]}, -f,{type:"vbox",padding:0,children:[{type:"select",id:"cellType",label:c.cellType,"default":"td",items:[[c.data,"td"],[c.header,"th"]],setup:d(function(a){return a.getName()}),commit:function(a){a.renameNode(this.getValue())}},f,{type:"text",id:"rowSpan",label:c.rowSpan,"default":"",validate:i.integer(c.invalidRowSpan),setup:d(function(a){if((a=parseInt(a.getAttribute("rowSpan"),10))&&1!=a)return a}),commit:function(a){var b=parseInt(this.getValue(),10);b&&1!=b?a.setAttribute("rowSpan",this.getValue()): -a.removeAttribute("rowSpan")}},{type:"text",id:"colSpan",label:c.colSpan,"default":"",validate:i.integer(c.invalidColSpan),setup:d(function(a){if((a=parseInt(a.getAttribute("colSpan"),10))&&1!=a)return a}),commit:function(a){var b=parseInt(this.getValue(),10);b&&1!=b?a.setAttribute("colSpan",this.getValue()):a.removeAttribute("colSpan")}},f,{type:"hbox",padding:0,widths:["60%","40%"],children:[{type:"text",id:"bgColor",label:c.bgColor,"default":"",setup:d(function(a){var b=a.getAttribute("bgColor"); -return a.getStyle("background-color")||b}),commit:function(a){this.getValue()?a.setStyle("background-color",this.getValue()):a.removeStyle("background-color");a.removeAttribute("bgColor")}},k?{type:"button",id:"bgColorChoose","class":"colorChooser",label:c.chooseColor,onLoad:function(){this.getElement().getParent().setStyle("vertical-align","bottom")},onClick:function(){g.getColorFromDialog(function(a){a&&this.getDialog().getContentElement("info","bgColor").setValue(a);this.focus()},this)}}:f]},f, -{type:"hbox",padding:0,widths:["60%","40%"],children:[{type:"text",id:"borderColor",label:c.borderColor,"default":"",setup:d(function(a){var b=a.getAttribute("borderColor");return a.getStyle("border-color")||b}),commit:function(a){this.getValue()?a.setStyle("border-color",this.getValue()):a.removeStyle("border-color");a.removeAttribute("borderColor")}},k?{type:"button",id:"borderColorChoose","class":"colorChooser",label:c.chooseColor,style:(m?"margin-right":"margin-left")+": 10px",onLoad:function(){this.getElement().getParent().setStyle("vertical-align", +CKEDITOR.dialog.add("cellProperties",function(g){function d(a){return function(b){for(var c=a(b[0]),d=1;d<b.length;d++)if(a(b[d])!==c){c=null;break}"undefined"!=typeof c&&(this.setValue(c),CKEDITOR.env.gecko&&"select"==this.type&&!c&&(this.getInputElement().$.selectedIndex=-1))}}function l(a){if(a=n.exec(a.getStyle("width")||a.getAttribute("width")))return a[2]}var h=g.lang.table,c=h.cell,e=g.lang.common,k=CKEDITOR.dialog.validate,n=/^(\d+(?:\.\d+)?)(px|%)$/,f={type:"html",html:"\x26nbsp;"},p="rtl"== +g.lang.dir,m=g.plugins.colordialog;return{title:c.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?450:410,minHeight:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?230:220,contents:[{id:"info",label:c.title,accessKey:"I",elements:[{type:"hbox",widths:["40%","5%","40%"],children:[{type:"vbox",padding:0,children:[{type:"hbox",widths:["70%","30%"],children:[{type:"text",id:"width",width:"100px",label:e.width,validate:k.number(c.invalidWidth),onLoad:function(){var a=this.getDialog().getContentElement("info", +"widthType").getElement(),b=this.getInputElement(),c=b.getAttribute("aria-labelledby");b.setAttribute("aria-labelledby",[c,a.$.id].join(" "))},setup:d(function(a){var b=parseInt(a.getAttribute("width"),10);a=parseInt(a.getStyle("width"),10);return isNaN(a)?isNaN(b)?"":b:a}),commit:function(a){var b=parseInt(this.getValue(),10),c=this.getDialog().getValueOf("info","widthType")||l(a);isNaN(b)?a.removeStyle("width"):a.setStyle("width",b+c);a.removeAttribute("width")},"default":""},{type:"select",id:"widthType", +label:g.lang.table.widthUnit,labelStyle:"visibility:hidden","default":"px",items:[[h.widthPx,"px"],[h.widthPc,"%"]],setup:d(l)}]},{type:"hbox",widths:["70%","30%"],children:[{type:"text",id:"height",label:e.height,width:"100px","default":"",validate:k.number(c.invalidHeight),onLoad:function(){var a=this.getDialog().getContentElement("info","htmlHeightType").getElement(),b=this.getInputElement(),c=b.getAttribute("aria-labelledby");b.setAttribute("aria-labelledby",[c,a.$.id].join(" "))},setup:d(function(a){var b= +parseInt(a.getAttribute("height"),10);a=parseInt(a.getStyle("height"),10);return isNaN(a)?isNaN(b)?"":b:a}),commit:function(a){var b=parseInt(this.getValue(),10);isNaN(b)?a.removeStyle("height"):a.setStyle("height",CKEDITOR.tools.cssLength(b));a.removeAttribute("height")}},{id:"htmlHeightType",type:"html",html:"\x3cbr /\x3e"+h.widthPx}]},f,{type:"select",id:"wordWrap",label:c.wordWrap,"default":"yes",items:[[c.yes,"yes"],[c.no,"no"]],setup:d(function(a){var b=a.getAttribute("noWrap");if("nowrap"== +a.getStyle("white-space")||b)return"no"}),commit:function(a){"no"==this.getValue()?a.setStyle("white-space","nowrap"):a.removeStyle("white-space");a.removeAttribute("noWrap")}},f,{type:"select",id:"hAlign",label:c.hAlign,"default":"",items:[[e.notSet,""],[e.alignLeft,"left"],[e.alignCenter,"center"],[e.alignRight,"right"],[e.alignJustify,"justify"]],setup:d(function(a){var b=a.getAttribute("align");return a.getStyle("text-align")||b||""}),commit:function(a){var b=this.getValue();b?a.setStyle("text-align", +b):a.removeStyle("text-align");a.removeAttribute("align")}},{type:"select",id:"vAlign",label:c.vAlign,"default":"",items:[[e.notSet,""],[e.alignTop,"top"],[e.alignMiddle,"middle"],[e.alignBottom,"bottom"],[c.alignBaseline,"baseline"]],setup:d(function(a){var b=a.getAttribute("vAlign");a=a.getStyle("vertical-align");switch(a){case "top":case "middle":case "bottom":case "baseline":break;default:a=""}return a||b||""}),commit:function(a){var b=this.getValue();b?a.setStyle("vertical-align",b):a.removeStyle("vertical-align"); +a.removeAttribute("vAlign")}}]},f,{type:"vbox",padding:0,children:[{type:"select",id:"cellType",label:c.cellType,"default":"td",items:[[c.data,"td"],[c.header,"th"]],setup:d(function(a){return a.getName()}),commit:function(a){a.renameNode(this.getValue())}},f,{type:"text",id:"rowSpan",label:c.rowSpan,"default":"",validate:k.integer(c.invalidRowSpan),setup:d(function(a){if((a=parseInt(a.getAttribute("rowSpan"),10))&&1!=a)return a}),commit:function(a){var b=parseInt(this.getValue(),10);b&&1!=b?a.setAttribute("rowSpan", +this.getValue()):a.removeAttribute("rowSpan")}},{type:"text",id:"colSpan",label:c.colSpan,"default":"",validate:k.integer(c.invalidColSpan),setup:d(function(a){if((a=parseInt(a.getAttribute("colSpan"),10))&&1!=a)return a}),commit:function(a){var b=parseInt(this.getValue(),10);b&&1!=b?a.setAttribute("colSpan",this.getValue()):a.removeAttribute("colSpan")}},f,{type:"hbox",padding:0,widths:["60%","40%"],children:[{type:"text",id:"bgColor",label:c.bgColor,"default":"",setup:d(function(a){var b=a.getAttribute("bgColor"); +return a.getStyle("background-color")||b}),commit:function(a){this.getValue()?a.setStyle("background-color",this.getValue()):a.removeStyle("background-color");a.removeAttribute("bgColor")}},m?{type:"button",id:"bgColorChoose","class":"colorChooser",label:c.chooseColor,onLoad:function(){this.getElement().getParent().setStyle("vertical-align","bottom")},onClick:function(){g.getColorFromDialog(function(a){a&&this.getDialog().getContentElement("info","bgColor").setValue(a);this.focus()},this)}}:f]},f, +{type:"hbox",padding:0,widths:["60%","40%"],children:[{type:"text",id:"borderColor",label:c.borderColor,"default":"",setup:d(function(a){var b=a.getAttribute("borderColor");return a.getStyle("border-color")||b}),commit:function(a){this.getValue()?a.setStyle("border-color",this.getValue()):a.removeStyle("border-color");a.removeAttribute("borderColor")}},m?{type:"button",id:"borderColorChoose","class":"colorChooser",label:c.chooseColor,style:(p?"margin-right":"margin-left")+": 10px",onLoad:function(){this.getElement().getParent().setStyle("vertical-align", "bottom")},onClick:function(){g.getColorFromDialog(function(a){a&&this.getDialog().getContentElement("info","borderColor").setValue(a);this.focus()},this)}}:f]}]}]}]}],onShow:function(){this.cells=CKEDITOR.plugins.tabletools.getSelectedCells(this._.editor.getSelection());this.setupContent(this.cells)},onOk:function(){for(var a=this._.editor.getSelection(),b=a.createBookmarks(),c=this.cells,d=0;d<c.length;d++)this.commitContent(c[d]);this._.editor.forceNextSelectionCheck();a.selectBookmarks(b);this._.editor.selectionChange()}, onLoad:function(){var a={};this.foreach(function(b){b.setup&&b.commit&&(b.setup=CKEDITOR.tools.override(b.setup,function(c){return function(){c.apply(this,arguments);a[b.id]=b.getValue()}}),b.commit=CKEDITOR.tools.override(b.commit,function(c){return function(){a[b.id]!==b.getValue()&&c.apply(this,arguments)}}))})}}}); \ No newline at end of file diff --git a/core/core.libraries.yml b/core/core.libraries.yml index 4ac68144956c..a05f094106d0 100644 --- a/core/core.libraries.yml +++ b/core/core.libraries.yml @@ -24,10 +24,10 @@ classList: ckeditor: remote: https://github.com/ckeditor/ckeditor-dev - version: "4.5.3" + version: "4.5.4" license: name: GNU-GPL-2.0-or-later - url: https://github.com/ckeditor/ckeditor-dev/blob/4.5.3/LICENSE.md + url: https://github.com/ckeditor/ckeditor-dev/blob/4.5.4/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor/ckeditor.js: { preprocess: false, minified: true } -- GitLab