Seditio Source
Root |
./othercms/ips_4.3.4/applications/core/interface/ckeditor/ckeditor/ckeditor.js
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){window.CKEDITOR&&window.CKEDITOR.dom||(window.CKEDITOR||(window.CKEDITOR=function(){var c=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,f={timestamp:"I5IC",version:"DEV",revision:"0",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:c},status:"unloaded",basePath:function(){var a=window.CKEDITOR_BASEPATH||"";if(!a)for(var b=document.getElementsByTagName("script"),f=0;f<b.length;f++){var k=b[f].src.match(c);if(k){a=k[1];break}}-1==a.indexOf(":/")&&"//"!=a.slice(0,2)&&(a=
0===a.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+a:location.href.match(/^[^\?]*\/(?:)/)[0]+a);if(!a)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return a}(),getUrl:function(a){-1==a.indexOf(":/")&&0!==a.indexOf("/")&&(a=this.basePath+a);this.timestamp&&"/"!=a.charAt(a.length-1)&&!/[&?]t=/.test(a)&&(a+=(0<=a.indexOf("?")?"\x26":"?")+"t\x3d"+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(k){}}function b(){for(var a;a=c.shift();)a()}var c=[];return function(k){function g(){try{document.documentElement.doScroll("left")}catch(d){setTimeout(g,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(e){}document.documentElement.doScroll&&k&&g()}}}()},b=window.CKEDITOR_GETURL;if(b){var a=f.getUrl;f.getUrl=function(c){return b.call(f,c)||a.call(f,c)}}return f}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(c){var f=CKEDITOR.event.prototype,b;for(b in f)null==c[b]&&(c[b]=f[b])},CKEDITOR.event.prototype=function(){function c(a){var c=
f(this);return c[a]||(c[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,c=this.listeners;b<c.length;b++)if(c[b].fn==a)return b;return-1}};return{define:function(a,b){var f=c.call(this,a);CKEDITOR.tools.extend(f,b,!0)},on:function(a,b,f,m,k){function g(d,l,g,k){d={name:a,sender:this,editor:d,data:l,listenerData:m,stop:g,cancel:k,removeListener:e};
return!1===b.call(f,d)?!1:d.data}function e(){l.removeListener(a,b)}var d=c.call(this,a);if(0>d.getListenerIndex(b)){d=d.listeners;f||(f=this);isNaN(k)&&(k=10);var l=this;g.fn=b;g.priority=k;for(var p=d.length-1;0<=p;p--)if(d[p].priority<=k)return d.splice(p+1,0,g),{removeListener:e};d.unshift(g)}return{removeListener:e}},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},c=0,m=function(){c=1};return function(k,g,e){var d=f(this)[k];k=a;var l=c;a=c=0;if(d){var p=d.listeners;if(p.length)for(var p=p.slice(0),q,u=0;u<p.length;u++){if(d.errorProof)try{q=p[u].call(this,e,g,b,m)}catch(t){}else q=p[u].call(this,e,g,b,m);!1===q?c=1:"undefined"!=typeof q&&(g=q);if(a||c)break}}g=c?!1:"undefined"==typeof g?!0:g;a=k;c=l;return g}}(),fireOnce:function(a,b,c){b=
this.fire(a,b,c);delete f(this)[a];return b},removeListener:function(a,b){var c=f(this)[a];if(c){var m=c.getListenerIndex(b);0<=m&&c.listeners.splice(m,1)}},removeAllListeners:function(){var a=f(this),b;for(b in a)delete a[b]},hasListeners:function(a){return(a=f(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(c,f){c in{instanceReady:1,loaded:1}&&(this[c]=
!0);return CKEDITOR.event.prototype.fire.call(this,c,f,this)},CKEDITOR.editor.prototype.fireOnce=function(c,f){c in{instanceReady:1,loaded:1}&&(this[c]=!0);return CKEDITOR.event.prototype.fireOnce.call(this,c,f,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var c=navigator.userAgent.toLowerCase(),f=c.match(/edge[ \/](\d+.?\d*)/),b=-1<c.indexOf("trident/"),b=!(!f&&!b),b={ie:b,edge:!!f,webkit:!b&&-1<c.indexOf(" applewebkit/"),air:-1<c.indexOf(" adobeair/"),
mac:-1<c.indexOf("macintosh"),quirks:"BackCompat"==document.compatMode&&(!document.documentMode||10>document.documentMode),mobile:-1<c.indexOf("mobile"),iOS:/(ipad|iphone|ipod)/.test(c),isCustomDomain:function(){if(!this.ie)return!1;var a=document.domain,b=window.location.hostname;return a!=b&&a!="["+b+"]"},secure:"https:"==location.protocol};b.gecko="Gecko"==navigator.product&&!b.webkit&&!b.ie;b.webkit&&(-1<c.indexOf("chrome")?b.chrome=!0:b.safari=!0);var a=0;b.ie&&(a=f?parseFloat(f[1]):b.quirks||
!document.documentMode?parseFloat(c.match(/msie (\d+)/)[1]):document.documentMode,b.ie9Compat=9==a,b.ie8Compat=8==a,b.ie7Compat=7==a,b.ie6Compat=7>a||b.quirks);b.gecko&&(f=c.match(/rv:([\d\.]+)/))&&(f=f[1].split("."),a=1E4*f[0]+100*(f[1]||0)+1*(f[2]||0));b.air&&(a=parseFloat(c.match(/ adobeair\/(\d+)/)[1]));b.webkit&&(a=parseFloat(c.match(/ applewebkit\/(\d+)/)[1]));b.version=a;b.isCompatible=!(b.ie&&7>a)&&!(b.gecko&&4E4>a)&&!(b.webkit&&534>a);b.hidpi=2<=window.devicePixelRatio;b.needsBrFiller=b.gecko||
b.webkit||b.ie&&10<a;b.needsNbspFiller=b.ie&&11>a;b.cssClass="cke_browser_"+(b.ie?"ie":b.gecko?"gecko":b.webkit?"webkit":"unknown");b.quirks&&(b.cssClass+=" cke_browser_quirks");b.ie&&(b.cssClass+=" cke_browser_ie"+(b.quirks?"6 cke_browser_iequirks":b.version));b.air&&(b.cssClass+=" cke_browser_air");b.iOS&&(b.cssClass+=" cke_browser_ios");b.hidpi&&(b.cssClass+=" cke_hidpi");return b}()),"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 c=document.createElement("script");c.type="text/javascript";c.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(c)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(c){(this._.pending||(this._.pending=[])).push(c)};(function(){CKEDITOR.domReady(function(){var c=CKEDITOR.loadFullCore,f=CKEDITOR.loadFullCoreTimeout;c&&(CKEDITOR.status="basic_ready",c&&c._load?c():f&&setTimeout(function(){CKEDITOR.loadFullCore&&
CKEDITOR.loadFullCore()},1E3*f))})})();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(c,f){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:c,additionalData:f})},CKEDITOR.error=function(c,f){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",{type:"error",errorCode:c,additionalData:f})},CKEDITOR.on("log",
function(c){if(window.console&&window.console.log){var f=console[c.data.type]?c.data.type:"log",b=c.data.errorCode;if(c=c.data.additionalData)console[f]("[CKEDITOR] Error code: "+b+".",c);else console[f]("[CKEDITOR] Error code: "+b+".");console[f]("[CKEDITOR] For more information about this error go to https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_errors-section-"+b)}},null,null,999),CKEDITOR.dom={},function(){var c=[],f=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?
"-ms-":"",b=/&/g,a=/>/g,h=/</g,n=/"/g,m=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,k={lt:"\x3c",gt:"\x3e",amp:"\x26",quot:'"',nbsp:" ",shy:"­"},g=function(e,d){return"#"==d[0]?String.fromCharCode(parseInt(d.slice(1),10)):k[d]};CKEDITOR.on("reset",function(){c=[]});CKEDITOR.tools={arrayCompare:function(e,d){if(!e&&!d)return!0;if(!e||!d||e.length!=d.length)return!1;for(var l=0;l<e.length;l++)if(e[l]!=d[l])return!1;return!0},getIndex:function(e,d){for(var l=0;l<e.length;++l)if(d(e[l]))return l;return-1},
clone:function(e){var d;if(e&&e instanceof Array){d=[];for(var l=0;l<e.length;l++)d[l]=CKEDITOR.tools.clone(e[l]);return d}if(null===e||"object"!=typeof e||e instanceof String||e instanceof Number||e instanceof Boolean||e instanceof Date||e instanceof RegExp||e.nodeType||e.window===e)return e;d=new e.constructor;for(l in e)d[l]=CKEDITOR.tools.clone(e[l]);return d},capitalize:function(e,d){return e.charAt(0).toUpperCase()+(d?e.slice(1):e.slice(1).toLowerCase())},extend:function(e){var d=arguments.length,
l,a;"boolean"==typeof(l=arguments[d-1])?d--:"boolean"==typeof(l=arguments[d-2])&&(a=arguments[d-1],d-=2);for(var g=1;g<d;g++){var b=arguments[g],k;for(k in b)if(!0===l||null==e[k])if(!a||k in a)e[k]=b[k]}return e},prototypedCopy:function(e){var d=function(){};d.prototype=e;return new d},copy:function(e){var d={},l;for(l in e)d[l]=e[l];return d},isArray:function(e){return"[object Array]"==Object.prototype.toString.call(e)},isEmpty:function(e){for(var d in e)if(e.hasOwnProperty(d))return!1;return!0},
cssVendorPrefix:function(e,d,l){if(l)return f+e+":"+d+";"+e+":"+d;l={};l[e]=d;l[f+e]=d;return l},cssStyleToDomStyle:function(){var e=document.createElement("div").style,d="undefined"!=typeof e.cssFloat?"cssFloat":"undefined"!=typeof e.styleFloat?"styleFloat":"float";return function(e){return"float"==e?d:e.replace(/-./g,function(d){return d.substr(1).toUpperCase()})}}(),buildStyleHtml:function(e){e=[].concat(e);for(var d,l=[],a=0;a<e.length;a++)if(d=e[a])/@import|[{}]/.test(d)?l.push("\x3cstyle\x3e"+
d+"\x3c/style\x3e"):l.push('\x3clink type\x3d"text/css" rel\x3dstylesheet href\x3d"'+d+'"\x3e');return l.join("")},htmlEncode:function(e){return void 0===e||null===e?"":String(e).replace(b,"\x26amp;").replace(a,"\x26gt;").replace(h,"\x26lt;")},htmlDecode:function(e){return e.replace(m,g)},htmlEncodeAttr:function(e){return CKEDITOR.tools.htmlEncode(e).replace(n,"\x26quot;")},htmlDecodeAttr:function(e){return CKEDITOR.tools.htmlDecode(e)},transformPlainTextToHtml:function(e,d){var l=d==CKEDITOR.ENTER_BR,
a=this.htmlEncode(e.replace(/\r\n/g,"\n")),a=a.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;"),g=d==CKEDITOR.ENTER_P?"p":"div";if(!l){var b=/\n{2}/g;if(b.test(a))var k="\x3c"+g+"\x3e",c="\x3c/"+g+"\x3e",a=k+a.replace(b,function(){return c+k})+c}a=a.replace(/\n/g,"\x3cbr\x3e");l||(a=a.replace(new RegExp("\x3cbr\x3e(?\x3d\x3c/"+g+"\x3e)"),function(d){return CKEDITOR.tools.repeat(d,2)}));a=a.replace(/^ | $/g,"\x26nbsp;");return a=a.replace(/(>|\s) /g,function(d,e){return e+"\x26nbsp;"}).replace(/ (?=<)/g,
"\x26nbsp;")},getNextNumber:function(){var e=0;return function(){return++e}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var e="e",d=0;8>d;d++)e+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return e},override:function(e,d){var l=d(e);l.prototype=e.prototype;return l},setTimeout:function(e,d,l,a,g){g||(g=window);l||(l=g);return g.setTimeout(function(){a?e.apply(l,[].concat(a)):e.apply(l)},d||0)},trim:function(){var e=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;
return function(d){return d.replace(e,"")}}(),ltrim:function(){var e=/^[ \t\n\r]+/g;return function(d){return d.replace(e,"")}}(),rtrim:function(){var e=/[ \t\n\r]+$/g;return function(d){return d.replace(e,"")}}(),indexOf:function(e,d){if("function"==typeof d)for(var l=0,a=e.length;l<a;l++){if(d(e[l]))return l}else{if(e.indexOf)return e.indexOf(d);l=0;for(a=e.length;l<a;l++)if(e[l]===d)return l}return-1},search:function(e,d){var l=CKEDITOR.tools.indexOf(e,d);return 0<=l?e[l]:null},bind:function(e,
d){return function(){return e.apply(d,arguments)}},createClass:function(e){var d=e.$,l=e.base,a=e.privates||e._,g=e.proto;e=e.statics;!d&&(d=function(){l&&this.base.apply(this,arguments)});if(a)var b=d,d=function(){var d=this._||(this._={}),e;for(e in a){var l=a[e];d[e]="function"==typeof l?CKEDITOR.tools.bind(l,this):l}b.apply(this,arguments)};l&&(d.prototype=this.prototypedCopy(l.prototype),d.prototype.constructor=d,d.base=l,d.baseProto=l.prototype,d.prototype.base=function(){this.base=l.prototype.base;
l.apply(this,arguments);this.base=arguments.callee});g&&this.extend(d.prototype,g,!0);e&&this.extend(d,e,!0);return d},addFunction:function(e,d){return c.push(function(){return e.apply(d||this,arguments)})-1},removeFunction:function(e){c[e]=null},callFunction:function(e){var d=c[e];return d&&d.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var e=/^-?\d+\.?\d*px$/,d;return function(l){d=CKEDITOR.tools.trim(l+"")+"px";return e.test(d)?d:l||""}}(),convertToPx:function(){var e;
return function(d){e||(e=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(e));return/%$/.test(d)?d:(e.setStyle("width",d),e.$.clientWidth)}}(),repeat:function(e,d){return Array(d+1).join(e)},tryThese:function(){for(var e,d=0,l=arguments.length;d<l;d++){var a=arguments[d];try{e=a();break}catch(g){}}return e},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},
defer:function(e){return function(){var d=arguments,l=this;window.setTimeout(function(){e.apply(l,d)},0)}},normalizeCssText:function(e,d){var l=[],a,g=CKEDITOR.tools.parseCssText(e,!0,d);for(a in g)l.push(a+":"+g[a]);l.sort();return l.length?l.join(";")+";":""},convertRgbToHex:function(e){return e.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(d,e,a,g){d=[e,a,g];for(e=0;3>e;e++)d[e]=("0"+parseInt(d[e],10).toString(16)).slice(-2);return"#"+d.join("")})},normalizeHex:function(e){return e.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,
function(d,e,a,g){d=e.toLowerCase();3==d.length&&(d=d.split(""),d=[d[0],d[0],d[1],d[1],d[2],d[2]].join(""));return"#"+d+g})},parseCssText:function(e,d,l){var a={};l&&(e=(new CKEDITOR.dom.element("span")).setAttribute("style",e).getAttribute("style")||"");e&&(e=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(e)));if(!e||";"==e)return a;e.replace(/&quot;/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(e,l,g){d&&(l=l.toLowerCase(),"font-family"==l&&(g=g.replace(/\s*,\s*/g,
",")),g=CKEDITOR.tools.trim(g));a[l]=g});return a},writeCssText:function(e,d){var l,a=[];for(l in e)a.push(l+":"+e[l]);d&&a.sort();return a.join("; ")},objectCompare:function(e,d,l){var a;if(!e&&!d)return!0;if(!e||!d)return!1;for(a in e)if(e[a]!=d[a])return!1;if(!l)for(a in d)if(e[a]!=d[a])return!1;return!0},objectKeys:function(e){var d=[],l;for(l in e)d.push(l);return d},convertArrayToObject:function(e,d){var l={};1==arguments.length&&(d=!0);for(var a=0,g=e.length;a<g;++a)l[e[a]]=d;return l},fixDomain:function(){for(var e;;)try{e=
window.parent.document.domain;break}catch(d){e=e?e.replace(/.+?(?:\.|$)/,""):document.domain;if(!e)break;document.domain=e}return!!e},eventsBuffer:function(e,d,l){function a(){b=(new Date).getTime();g=!1;l?d.call(l):d()}var g,b=0;return{input:function(){if(!g){var d=(new Date).getTime()-b;d<e?g=setTimeout(a,e-d):a()}},reset:function(){g&&clearTimeout(g);g=b=0}}},enableHtml5Elements:function(e,d){for(var l="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(" "),
a=l.length,g;a--;)g=e.createElement(l[a]),d&&e.appendChild(g)},checkIfAnyArrayItemMatches:function(e,d){for(var l=0,a=e.length;l<a;++l)if(e[l].match(d))return!0;return!1},checkIfAnyObjectPropertyMatches:function(e,d){for(var l in e)if(l.match(d))return!0;return!1},keystrokeToString:function(e,d){var l=this.keystrokeToArray(e,d);l.display=l.display.join("+");l.aria=l.aria.join("+");return l},keystrokeToArray:function(e,d){var l=d&16711680,a=d&65535,g=CKEDITOR.env.mac,b=[],k=[];l&CKEDITOR.CTRL&&(b.push(g?
"⌘":e[17]),k.push(g?e[224]:e[17]));l&CKEDITOR.ALT&&(b.push(g?"⌥":e[18]),k.push(e[18]));l&CKEDITOR.SHIFT&&(b.push(g?"⇧":e[16]),k.push(e[16]));a&&(e[a]?(b.push(e[a]),k.push(e[a])):(b.push(String.fromCharCode(a)),k.push(String.fromCharCode(a))));return{display:b,aria:k}},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw\x3d\x3d",getCookie:function(e){e=e.toLowerCase();for(var d=document.cookie.split(";"),a,g,b=0;b<d.length;b++)if(a=d[b].split("\x3d"),
g=decodeURIComponent(CKEDITOR.tools.trim(a[0]).toLowerCase()),g===e)return decodeURIComponent(1<a.length?a[1]:"");return null},setCookie:function(e,d){document.cookie=encodeURIComponent(e)+"\x3d"+encodeURIComponent(d)+";path\x3d/"},getCsrfToken:function(){var e=CKEDITOR.tools.getCookie("ckCsrfToken");if(!e||40!=e.length){var e=[],d="";if(window.crypto&&window.crypto.getRandomValues)e=new Uint8Array(40),window.crypto.getRandomValues(e);else for(var a=0;40>a;a++)e.push(Math.floor(256*Math.random()));
for(a=0;a<e.length;a++)var g="abcdefghijklmnopqrstuvwxyz0123456789".charAt(e[a]%36),d=d+(.5<Math.random()?g.toUpperCase():g);e=d;CKEDITOR.tools.setCookie("ckCsrfToken",e)}return e},escapeCss:function(e){return e?window.CSS&&CSS.escape?CSS.escape(e):isNaN(parseInt(e.charAt(0),10))?e:"\\3"+e.charAt(0)+" "+e.substring(1,e.length):""},getMouseButton:function(e){var d=(e=e.data)&&e.$;return e&&d?CKEDITOR.env.ie&&9>CKEDITOR.env.version?4===d.button?CKEDITOR.MOUSE_BUTTON_MIDDLE:1===d.button?CKEDITOR.MOUSE_BUTTON_LEFT:
CKEDITOR.MOUSE_BUTTON_RIGHT:d.button:!1},convertHexStringToBytes:function(e){var d=[],a=e.length/2,g;for(g=0;g<a;g++)d.push(parseInt(e.substr(2*g,2),16));return d},convertBytesToBase64:function(e){var d="",a=e.length,g;for(g=0;g<a;g+=3){var b=e.slice(g,g+3),k=b.length,c=[],h;if(3>k)for(h=k;3>h;h++)b[h]=0;c[0]=(b[0]&252)>>2;c[1]=(b[0]&3)<<4|b[1]>>4;c[2]=(b[1]&15)<<2|(b[2]&192)>>6;c[3]=b[2]&63;for(h=0;4>h;h++)d=h<=k?d+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(c[h]):d+
"\x3d"}return d},style:{parse:{_colors:{aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",
darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",
gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",
lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",
mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",
sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},_borderStyle:"none hidden dotted dashed solid double groove ridge inset outset".split(" "),
_widthRegExp:/^(thin|medium|thick|[\+-]?\d+(\.\d+)?[a-z%]+|[\+-]?0+(\.0+)?|\.\d+[a-z%]+)$/,_rgbaRegExp:/rgba?\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*(?:,\s*[0-9.]+\s*)?\)/gi,_hslaRegExp:/hsla?\(\s*[0-9.]+\s*,\s*\d+%\s*,\s*\d+%\s*(?:,\s*[0-9.]+\s*)?\)/gi,background:function(e){var d={},a=this._findColor(e);a.length&&(d.color=a[0],CKEDITOR.tools.array.forEach(a,function(d){e=e.replace(d,"")}));if(e=CKEDITOR.tools.trim(e))d.unprocessed=e;return d},margin:function(e){function d(d){a.top=g[d[0]];a.right=
g[d[1]];a.bottom=g[d[2]];a.left=g[d[3]]}var a={},g=e.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset)/g)||["0px"];switch(g.length){case 1:d([0,0,0,0]);break;case 2:d([0,1,0,1]);break;case 3:d([0,1,2,1]);break;case 4:d([0,1,2,3])}return a},border:function(e){var d={},a=e.split(/\s+/g);e=CKEDITOR.tools.style.parse._findColor(e);e.length&&(d.color=e[0]);CKEDITOR.tools.array.forEach(a,function(e){d.style||-1===CKEDITOR.tools.indexOf(CKEDITOR.tools.style.parse._borderStyle,e)?!d.width&&CKEDITOR.tools.style.parse._widthRegExp.test(e)&&
(d.width=e):d.style=e});return d},_findColor:function(e){var d=[],a=CKEDITOR.tools.array,d=d.concat(e.match(this._rgbaRegExp)||[]),d=d.concat(e.match(this._hslaRegExp)||[]);return d=d.concat(a.filter(e.split(/\s+/),function(d){return d.match(/^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi)?!0:d.toLowerCase()in CKEDITOR.tools.style.parse._colors}))}}},array:{filter:function(e,d,a){var g=[];this.forEach(e,function(b,k){d.call(a,b,k,e)&&g.push(b)});return g},forEach:function(e,d,a){var g=e.length,b;for(b=0;b<g;b++)d.call(a,
e[b],b,e)},map:function(e,d,a){for(var g=[],b=0;b<e.length;b++)g.push(d.call(a,e[b],b,e));return g},reduce:function(e,d,a,g){for(var b=0;b<e.length;b++)a=d.call(g,a,e[b],b,e);return a},every:function(e,d,a){if(!e.length)return!0;d=this.filter(e,d,a);return e.length===d.length}},object:{findKey:function(e,d){if("object"!==typeof e)return null;for(var a in e)if(e[a]===d)return a;return null},merge:function(e,d){var a=CKEDITOR.tools,g=a.clone(e),b=a.clone(d);a.array.forEach(a.objectKeys(b),function(d){g[d]=
"object"===typeof b[d]&&"object"===typeof g[d]?a.object.merge(g[d],b[d]):b[d]});return g}}};CKEDITOR.tools.array.indexOf=CKEDITOR.tools.indexOf;CKEDITOR.tools.array.isArray=CKEDITOR.tools.isArray;CKEDITOR.MOUSE_BUTTON_LEFT=0;CKEDITOR.MOUSE_BUTTON_MIDDLE=1;CKEDITOR.MOUSE_BUTTON_RIGHT=2}(),CKEDITOR.dtd=function(){var c=CKEDITOR.tools.extend,f=function(e,d){for(var a=CKEDITOR.tools.clone(e),g=1;g<arguments.length;g++){d=arguments[g];for(var b in d)delete a[b]}return a},b={},a={},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},n={command:1,link:1,meta:1,noscript:1,script:1,style:1},m={},k={"#":1},g={center:1,dir:1,noframes:1};c(b,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,
object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"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});c(a,h,b,g);f={a:f(b,{a:1,button:1}),abbr:b,address:a,area:m,article:a,aside:a,audio:c({source:1,track:1},a),b:b,base:m,bdi:b,bdo:b,blockquote:a,body:a,br:m,button:f(b,{a:1,button:1}),canvas:b,caption:a,cite:b,code:b,col:m,colgroup:{col:1},command:m,datalist:c({option:1},
b),dd:a,del:b,details:c({summary:1},a),dfn:b,div:a,dl:{dt:1,dd:1},dt:a,em:b,embed:m,fieldset:c({legend:1},a),figcaption:a,figure:c({figcaption:1},a),footer:a,form:a,h1:b,h2:b,h3:b,h4:b,h5:b,h6:b,head:c({title:1,base:1},n),header:a,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:m,html:c({head:1,body:1},a,n),i:b,iframe:k,img:m,input:m,ins:b,kbd:b,keygen:m,label:b,legend:b,li:a,link:m,main:a,map:a,mark:b,menu:c({li:1},a),meta:m,meter:f(b,{meter:1}),nav:a,noscript:c({link:1,meta:1,style:1},b),object:c({param:1},
b),ol:{li:1},optgroup:{option:1},option:k,output:b,p:b,param:m,pre:b,progress:f(b,{progress:1}),q:b,rp:b,rt:b,ruby:c({rp:1,rt:1},b),s:b,samp:b,script:k,section:a,select:{optgroup:1,option:1},small:b,source:m,span:b,strong:b,style:k,sub:b,summary:c({h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},b),sup:b,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:a,textarea:k,tfoot:{tr:1},th:a,thead:{tr:1},time:f(b,{time:1}),title:k,tr:{th:1,td:1},track:m,u:b,ul:{li:1},"var":b,video:c({source:1,track:1},
a),wbr:m,acronym:b,applet:c({param:1},a),basefont:m,big:b,center:a,dialog:m,dir:{li:1},font:b,isindex:m,noframes:a,strike:b,tt:b};c(f,{$block:c({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},h,g),$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:c({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(c){this.$=c},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var c=this.getKey();if(this.$.ctrlKey||this.$.metaKey)c+=CKEDITOR.CTRL;this.$.shiftKey&&(c+=CKEDITOR.SHIFT);this.$.altKey&&
(c+=CKEDITOR.ALT);return c},preventDefault:function(c){var f=this.$;f.preventDefault?f.preventDefault():f.returnValue=!1;c&&this.stopPropagation()},stopPropagation:function(){var c=this.$;c.stopPropagation?c.stopPropagation():c.cancelBubble=!0},getTarget:function(){var c=this.$.target||this.$.srcElement;return c?new CKEDITOR.dom.node(c):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var c=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(c.documentElement.scrollLeft||
c.body.scrollLeft),y:this.$.pageY||this.$.clientY+(c.documentElement.scrollTop||c.body.scrollTop)}}},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(c){c&&(this.$=c)},CKEDITOR.dom.domObject.prototype=function(){var c=function(c,b){return function(a){"undefined"!=typeof CKEDITOR&&c.fire(b,new CKEDITOR.dom.event(a))}};return{getPrivate:function(){var c;
(c=this.getCustomData("_"))||this.setCustomData("_",c={});return c},on:function(f){var b=this.getCustomData("_cke_nativeListeners");b||(b={},this.setCustomData("_cke_nativeListeners",b));b[f]||(b=b[f]=c(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(c){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(c)){var b=
this.getCustomData("_cke_nativeListeners"),a=b&&b[c];a&&(this.$.removeEventListener?this.$.removeEventListener(c,a,!1):this.$.detachEvent&&this.$.detachEvent("on"+c,a),delete b[c])}},removeAllListeners:function(){var c=this.getCustomData("_cke_nativeListeners"),b;for(b in c){var a=c[b];this.$.detachEvent?this.$.detachEvent("on"+b,a):this.$.removeEventListener&&this.$.removeEventListener(b,a,!1);delete c[b]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}(),function(c){var f={};CKEDITOR.on("reset",
function(){f={}});c.equals=function(b){try{return b&&b.$===this.$}catch(a){return!1}};c.setCustomData=function(b,a){var c=this.getUniqueId();(f[c]||(f[c]={}))[b]=a;return this};c.getCustomData=function(b){var a=this.$["data-cke-expando"];return(a=a&&f[a])&&b in a?a[b]:null};c.removeCustomData=function(b){var a=this.$["data-cke-expando"],a=a&&f[a],c,n;a&&(c=a[b],n=b in a,delete a[b]);return n?c:null};c.clearCustomData=function(){this.removeAllListeners();var b=this.$["data-cke-expando"];b&&delete f[b]};
c.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(c)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(c){return c?new CKEDITOR.dom[c.nodeType==CKEDITOR.NODE_DOCUMENT?"document":c.nodeType==CKEDITOR.NODE_ELEMENT?"element":c.nodeType==CKEDITOR.NODE_TEXT?"text":c.nodeType==CKEDITOR.NODE_COMMENT?"comment":c.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](c):this},CKEDITOR.dom.node.prototype=
new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT=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(c,f){c.append(this,f);return c},clone:function(c,f){function b(a){a["data-cke-expando"]&&(a["data-cke-expando"]=
!1);if(a.nodeType==CKEDITOR.NODE_ELEMENT||a.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)if(f||a.nodeType!=CKEDITOR.NODE_ELEMENT||a.removeAttribute("id",!1),c){a=a.childNodes;for(var h=0;h<a.length;h++)b(a[h])}}function a(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(c)for(h=0;h<b.getChildCount();h++)a(b.getChild(h))}}var h=this.$.cloneNode(c);b(h);h=new CKEDITOR.dom.node(h);
CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&a(h);return h},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(c){c.$.parentNode.insertBefore(this.$,c.$.nextSibling);return c},insertBefore:function(c){c.$.parentNode.insertBefore(this.$,c.$);return c},insertBeforeMe:function(c){this.$.parentNode.insertBefore(c.$,this.$);return c},getAddress:function(c){for(var f=
[],b=this.getDocument().$.documentElement,a=this.$;a&&a!=b;){var h=a.parentNode;h&&f.unshift(this.getIndex.call({$:a},c));a=h}return f},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(c){function f(a,k){var g=k?a.nextSibling:a.previousSibling;return g&&g.nodeType==CKEDITOR.NODE_TEXT?b(g)?f(g,k):g:null}function b(a){return!a.nodeValue||a.nodeValue==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE}var a=this.$,h=-1,n;if(!this.$.parentNode||
c&&a.nodeType==CKEDITOR.NODE_TEXT&&b(a)&&!f(a)&&!f(a,!0))return-1;do c&&a!=this.$&&a.nodeType==CKEDITOR.NODE_TEXT&&(n||b(a))||(h++,n=a.nodeType==CKEDITOR.NODE_TEXT);while(a=a.previousSibling);return h},getNextSourceNode:function(c,f,b){if(b&&!b.call){var a=b;b=function(b){return!b.equals(a)}}c=!c&&this.getFirst&&this.getFirst();var h;if(!c){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&!1===b(this,!0))return null;c=this.getNext()}for(;!c&&(h=(h||this).getParent());){if(b&&!1===b(h,!0))return null;c=h.getNext()}return!c||
b&&!1===b(c)?null:f&&f!=c.type?c.getNextSourceNode(!1,f,b):c},getPreviousSourceNode:function(c,f,b){if(b&&!b.call){var a=b;b=function(b){return!b.equals(a)}}c=!c&&this.getLast&&this.getLast();var h;if(!c){if(this.type==CKEDITOR.NODE_ELEMENT&&b&&!1===b(this,!0))return null;c=this.getPrevious()}for(;!c&&(h=(h||this).getParent());){if(b&&!1===b(h,!0))return null;c=h.getPrevious()}return!c||b&&!1===b(c)?null:f&&c.type!=f?c.getPreviousSourceNode(!1,f,b):c},getPrevious:function(c){var f=this.$,b;do b=(f=
f.previousSibling)&&10!=f.nodeType&&new CKEDITOR.dom.node(f);while(b&&c&&!c(b));return b},getNext:function(c){var f=this.$,b;do b=(f=f.nextSibling)&&new CKEDITOR.dom.node(f);while(b&&c&&!c(b));return b},getParent:function(c){var f=this.$.parentNode;return f&&(f.nodeType==CKEDITOR.NODE_ELEMENT||c&&f.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(f):null},getParents:function(c){var f=this,b=[];do b[c?"push":"unshift"](f);while(f=f.getParent());return b},getCommonAncestor:function(c){if(c.equals(this))return this;
if(c.contains&&c.contains(this))return c;var f=this.contains?this:this.getParent();do if(f.contains(c))return f;while(f=f.getParent());return null},getPosition:function(c){var f=this.$,b=c.$;if(f.compareDocumentPosition)return f.compareDocumentPosition(b);if(f==b)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&c.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 0>f.sourceIndex||0>b.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:f.sourceIndex<b.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}f=this.getAddress();c=c.getAddress();for(var b=Math.min(f.length,c.length),a=0;a<b;a++)if(f[a]!=c[a])return f[a]<c[a]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return f.length<c.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},
getAscendant:function(c,f){var b=this.$,a,h;f||(b=b.parentNode);"function"==typeof c?(h=!0,a=c):(h=!1,a=function(a){a="string"==typeof a.nodeName?a.nodeName.toLowerCase():"";return"string"==typeof c?a==c:a in c});for(;b;){if(a(h?new CKEDITOR.dom.node(b):b))return new CKEDITOR.dom.node(b);try{b=b.parentNode}catch(n){b=null}}return null},hasAscendant:function(c,f){var b=this.$;f||(b=b.parentNode);for(;b;){if(b.nodeName&&b.nodeName.toLowerCase()==c)return!0;b=b.parentNode}return!1},move:function(c,f){c.append(this.remove(),
f)},remove:function(c){var f=this.$,b=f.parentNode;if(b){if(c)for(;c=f.firstChild;)b.insertBefore(f.removeChild(c),f);b.removeChild(f)}return this},replace:function(c){this.insertBefore(c);c.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var c;this.getFirst&&(c=this.getFirst());){if(c.type==CKEDITOR.NODE_TEXT){var f=CKEDITOR.tools.ltrim(c.getText()),b=c.getLength();if(f)f.length<b&&(c.split(b-f.length),this.$.removeChild(this.$.firstChild));else{c.remove();continue}}break}},
rtrim:function(){for(var c;this.getLast&&(c=this.getLast());){if(c.type==CKEDITOR.NODE_TEXT){var f=CKEDITOR.tools.rtrim(c.getText()),b=c.getLength();if(f)f.length<b&&(c.split(f.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild));else{c.remove();continue}}break}CKEDITOR.env.needsBrFiller&&(c=this.$.lastChild)&&1==c.type&&"br"==c.nodeName.toLowerCase()&&c.parentNode.removeChild(c)},isReadOnly:function(c){var f=this;this.type!=CKEDITOR.NODE_ELEMENT&&(f=this.getParent());CKEDITOR.env.edge&&
f&&f.is("textarea","input")&&(c=!0);if(!c&&f&&"undefined"!=typeof f.$.isContentEditable)return!(f.$.isContentEditable||f.data("cke-editable"));for(;f;){if(f.data("cke-editable"))return!1;if(f.hasAttribute("contenteditable"))return"false"==f.getAttribute("contenteditable");f=f.getParent()}return!0}}),CKEDITOR.dom.window=function(c){CKEDITOR.dom.domObject.call(this,c)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},
getViewPaneSize:function(){var c=this.$.document,f="CSS1Compat"==c.compatMode;return{width:(f?c.documentElement.clientWidth:c.body.clientWidth)||0,height:(f?c.documentElement.clientHeight:c.body.clientHeight)||0}},getScrollPosition:function(){var c=this.$;if("pageXOffset"in c)return{x:c.pageXOffset||0,y:c.pageYOffset||0};c=c.document;return{x:c.documentElement.scrollLeft||c.body.scrollLeft||0,y:c.documentElement.scrollTop||c.body.scrollTop||0}},getFrame:function(){var c=this.$.frameElement;return c?
new CKEDITOR.dom.element.get(c):null}}),CKEDITOR.dom.document=function(c){CKEDITOR.dom.domObject.call(this,c)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(c){if(this.$.createStyleSheet)this.$.createStyleSheet(c);else{var f=new CKEDITOR.dom.element("link");f.setAttributes({rel:"stylesheet",type:"text/css",href:c});this.getHead().append(f)}},appendStyleText:function(c){if(this.$.createStyleSheet){var f=
this.$.createStyleSheet("");f.cssText=c}else{var b=new CKEDITOR.dom.element("style",this);b.append(new CKEDITOR.dom.text(c,this));this.getHead().append(b)}return f||b.$.sheet},createElement:function(c,f){var b=new CKEDITOR.dom.element(c,this);f&&(f.attributes&&b.setAttributes(f.attributes),f.styles&&b.setStyles(f.styles));return b},createText:function(c){return new CKEDITOR.dom.text(c,this)},focus:function(){this.getWindow().focus()},getActive:function(){var c;try{c=this.$.activeElement}catch(f){return null}return new CKEDITOR.dom.element(c)},
getById:function(c){return(c=this.$.getElementById(c))?new CKEDITOR.dom.element(c):null},getByAddress:function(c,f){for(var b=this.$.documentElement,a=0;b&&a<c.length;a++){var h=c[a];if(f)for(var n=-1,m=0;m<b.childNodes.length;m++){var k=b.childNodes[m];if(!0!==f||3!=k.nodeType||!k.previousSibling||3!=k.previousSibling.nodeType)if(n++,n==h){b=k;break}}else b=b.childNodes[h]}return b?new CKEDITOR.dom.node(b):null},getElementsByTag:function(c,f){CKEDITOR.env.ie&&8>=document.documentMode||!f||(c=f+":"+
c);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(c))},getHead:function(){var c=this.$.getElementsByTagName("head")[0];return c=c?new CKEDITOR.dom.element(c):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!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(c){this.$.open("text/html",
"replace");CKEDITOR.env.ie&&(c=c.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$\x26\n\x3cscript data-cke-temp\x3d"1"\x3e('+CKEDITOR.tools.fixDomain+")();\x3c/script\x3e"));this.$.write(c);this.$.close()},find:function(c){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(c))},findOne:function(c){return(c=this.$.querySelector(c))?new CKEDITOR.dom.element(c):null},_getHtml5ShivFrag:function(){var c=this.getCustomData("html5ShivFrag");c||(c=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(c,
!0),this.setCustomData("html5ShivFrag",c));return c}}),CKEDITOR.dom.nodeList=function(c){this.$=c},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(c){return 0>c||c>=this.$.length?null:(c=this.$[c])?new CKEDITOR.dom.node(c):null},toArray:function(){return CKEDITOR.tools.array.map(this.$,function(c){return new CKEDITOR.dom.node(c)})}},CKEDITOR.dom.element=function(c,f){"string"==typeof c&&(c=(f?f.$:document).createElement(c));CKEDITOR.dom.domObject.call(this,
c)},CKEDITOR.dom.element.get=function(c){return(c="string"==typeof c?document.getElementById(c)||document.getElementsByName(c)[0]:c)&&(c.$?c:new CKEDITOR.dom.element(c))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(c,f){var b=new CKEDITOR.dom.element("div",f);b.setHtml(c);return b.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(c,f,b,a){var h=f.getCustomData("list_marker_id")||f.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),
n=f.getCustomData("list_marker_names")||f.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");c[h]=f;n[b]=1;return f.setCustomData(b,a)},CKEDITOR.dom.element.clearAllMarkers=function(c){for(var f in c)CKEDITOR.dom.element.clearMarkers(c,c[f],1)},CKEDITOR.dom.element.clearMarkers=function(c,f,b){var a=f.getCustomData("list_marker_names"),h=f.getCustomData("list_marker_id"),n;for(n in a)f.removeCustomData(n);f.removeCustomData("list_marker_names");b&&(f.removeCustomData("list_marker_id"),
delete c[h])},function(){function c(a,g){return-1<(" "+a+" ").replace(n," ").indexOf(" "+g+" ")}function f(a){var g=!0;a.$.id||(a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),g=!1);return function(){g||a.removeAttribute("id")}}function b(a,g){var e=CKEDITOR.tools.escapeCss(a.$.id);return"#"+e+" "+g.split(/,\s*/).join(", #"+e+" ")}function a(a){for(var g=0,e=0,d=m[a].length;e<d;e++)g+=parseFloat(this.getComputedStyle(m[a][e])||0,10)||0;return g}var h=document.createElement("_").classList,h="undefined"!==
typeof h&&null!==String(h.add).match(/\[Native code\]/gi),n=/[\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(a){var g=this.$.className;g&&(c(g,a)||(g+=" "+a));this.$.className=g||a;return this},removeClass:h?function(a){var g=this.$;g.classList.remove(a);g.className||g.removeAttribute("class");return this}:function(a){var g=this.getAttribute("class");g&&c(g,a)&&((g=g.replace(new RegExp("(?:^|\\s+)"+
a+"(?\x3d\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",g):this.removeAttribute("class"));return this},hasClass:function(a){return c(this.$.className,a)},append:function(a,g){"string"==typeof a&&(a=this.getDocument().createElement(a));g?this.$.insertBefore(a.$,this.$.firstChild):this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var g=new CKEDITOR.dom.element("div",this.getDocument());g.setHtml(a);g.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,g){var e=new CKEDITOR.dom.range(this.getDocument());e.setStartAfter(this);e.setEndAfter(a);
var d=e.extractContents(!1,g||!1),b;e.insertNode(this.remove());if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(e=new CKEDITOR.dom.element("div");b=d.getFirst();)b.$.style.backgroundColor&&(b.$.style.backgroundColor=b.$.style.backgroundColor),e.append(b);e.insertAfter(this);e.remove(!0)}else d.insertAfterNode(this)},contains:document.compareDocumentPosition?function(a){return!!(this.$.compareDocumentPosition(a.$)&16)}:function(a){var g=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?g.contains(a.getParent().$):
g!=a.$&&g.contains(a.$)},focus:function(){function a(){try{this.$.focus()}catch(g){}}return function(g){g?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 g=this.$;if(this.getParent())return g.innerHTML=a;var e=this.getDocument()._getHtml5ShivFrag();e.appendChild(g);g.innerHTML=a;e.removeChild(g);return a}catch(d){this.$.innerHTML="";g=new CKEDITOR.dom.element("body",this.getDocument());g.$.innerHTML=a;for(g=g.getChildren();g.count();)this.append(g.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(g){this.$[a?"textContent":"innerText"]=g}}(),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}(),getAttributes:function(a){var g={},e=this.$.attributes,d;a=CKEDITOR.tools.isArray(a)?
a:[];for(d=0;d<e.length;d++)-1===CKEDITOR.tools.indexOf(a,e[d].name)&&(g[e[d].name]=e[d].value);return g},getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(a){var g=this.getWindow().$.getComputedStyle(this.$,null);return g?g.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 g=this.$.scopeName;"HTML"!=g&&(a=g.toLowerCase()+":"+a)}this.getName=function(){return a};return this.getName()},getValue:function(){return this.$.value},getFirst:function(a){var g=this.$.firstChild;(g=g&&new CKEDITOR.dom.node(g))&&a&&!a(g)&&(g=g.getNext(a));return g},getLast:function(a){var g=this.$.lastChild;(g=g&&new CKEDITOR.dom.node(g))&&a&&!a(g)&&(g=g.getPrevious(a));return g},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 g=0;g<arguments.length;g++)if(arguments[g]==a)return!0;return!1},isEditable:function(a){var g=this.getName();return this.isReadOnly()||"none"==this.getComputedStyle("display")||"hidden"==this.getComputedStyle("visibility")||CKEDITOR.dtd.$nonEditable[g]||CKEDITOR.dtd.$empty[g]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount()?!1:!1!==a?(a=CKEDITOR.dtd[g]||
CKEDITOR.dtd.span,!(!a||!a["#"])):!0},isIdentical:function(a){var g=this.clone(0,1);a=a.clone(0,1);g.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(g.$.isEqualNode)return g.$.style.cssText=CKEDITOR.tools.normalizeCssText(g.$.style.cssText),a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText),g.$.isEqualNode(a.$);g=g.getOuterHtml();a=
a.getOuterHtml();if(CKEDITOR.env.ie&&9>CKEDITOR.env.version&&this.is("a")){var e=this.getParent();e.type==CKEDITOR.NODE_ELEMENT&&(e=e.clone(),e.setHtml(g),g=e.getHtml(),e.setHtml(a),a=e.getHtml())}return g==a},isVisible:function(){var a=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"!=this.getComputedStyle("visibility"),g,e;a&&CKEDITOR.env.webkit&&(g=this.getWindow(),!g.equals(CKEDITOR.document.getWindow())&&(e=g.$.frameElement)&&(a=(new CKEDITOR.dom.element(e)).isVisible()));return!!a},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return!1;
for(var a=this.getChildren(),g=0,e=a.count();g<e;g++){var d=a.getItem(g);if(d.type!=CKEDITOR.NODE_ELEMENT||!d.data("cke-bookmark"))if(d.type==CKEDITOR.NODE_ELEMENT&&!d.isEmptyInlineRemoveable()||d.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(d.getText()))return!1}return!0},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var a=this.$.attributes,g=0;g<a.length;g++){var e=a[g];switch(e.nodeName){case "class":if(this.getAttribute("class"))return!0;case "data-cke-expando":continue;
default:if(e.specified)return!0}}return!1}:function(){var a=this.$.attributes,g=a.length,e={"data-cke-expando":1,_moz_dirty:1};return 0<g&&(2<g||!e[a[0].nodeName]||2==g&&!e[a[1].nodeName])},hasAttribute:function(){function a(g){var e=this.$.attributes.getNamedItem(g);if("input"==this.getName())switch(g){case "class":return 0<this.$.className.length;case "checked":return!!this.$.checked;case "value":return g=this.getAttribute("type"),"checkbox"==g||"radio"==g?"on"!=this.$.value:!!this.$.value}return e?
e.specified:!1}return CKEDITOR.env.ie?8>CKEDITOR.env.version?function(g){return"name"==g?!!this.$.name:a.call(this,g)}:a:function(a){return!!this.$.attributes.getNamedItem(a)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(a,g){var e=this.$;a=a.$;if(e!=a){var d;if(g)for(;d=e.lastChild;)a.insertBefore(e.removeChild(d),a.firstChild);else for(;d=e.firstChild;)a.appendChild(e.removeChild(d))}},mergeSiblings:function(){function a(g,e,d){if(e&&e.type==CKEDITOR.NODE_ELEMENT){for(var b=
[];e.data("cke-bookmark")||e.isEmptyInlineRemoveable();)if(b.push(e),e=d?e.getNext():e.getPrevious(),!e||e.type!=CKEDITOR.NODE_ELEMENT)return;if(g.isIdentical(e)){for(var c=d?g.getLast():g.getFirst();b.length;)b.shift().move(g,!d);e.moveChildren(g,!d);e.remove();c&&c.type==CKEDITOR.NODE_ELEMENT&&c.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,e){this.$.setAttribute(a,e);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(b,e){"class"==b?this.$.className=e:"style"==b?this.$.style.cssText=e:"tabindex"==b?this.$.tabIndex=e:"checked"==b?this.$.checked=e:"contenteditable"==b?a.call(this,"contentEditable",e):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(b,e){if("src"==b&&e.match(/^http:\/\//))try{a.apply(this,
arguments)}catch(d){}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||this.getAttributes(),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 e=["top","left","right","bottom"],d;"border"==a&&(d=["color","style","width"]);for(var b=[],l=0;l<e.length;l++)if(d)for(var c=
0;c<d.length;c++)b.push([a,e[l],d[c]].join("-"));else b.push([a,e[l]].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("*"),e=0,d=b.count();e<d;e++)a=b.getItem(e),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,e=0,d=this.getDocument(),l=d.getBody(),c="BackCompat"==d.$.compatMode;if(document.documentElement.getBoundingClientRect&&(CKEDITOR.env.ie?
8!==CKEDITOR.env.version:1)){var h=this.$.getBoundingClientRect(),f=d.$.documentElement,t=f.clientTop||l.$.clientTop||0,r=f.clientLeft||l.$.clientLeft||0,n=!0;CKEDITOR.env.ie&&(n=d.getDocumentElement().contains(this),d=d.getBody().contains(this),n=c&&d||!c&&n);n&&(CKEDITOR.env.webkit||CKEDITOR.env.ie&&12<=CKEDITOR.env.version?(b=l.$.scrollLeft||f.scrollLeft,e=l.$.scrollTop||f.scrollTop):(e=c?l.$:f,b=e.scrollLeft,e=e.scrollTop),b=h.left+b-r,e=h.top+e-t)}else for(t=this,r=null;t&&"body"!=t.getName()&&
"html"!=t.getName();){b+=t.$.offsetLeft-t.$.scrollLeft;e+=t.$.offsetTop-t.$.scrollTop;t.equals(this)||(b+=t.$.clientLeft||0,e+=t.$.clientTop||0);for(;r&&!r.equals(t);)b-=r.$.scrollLeft,e-=r.$.scrollTop,r=r.getParent();r=t;t=(h=t.$.offsetParent)?new CKEDITOR.dom.element(h):null}a&&(h=this.getWindow(),t=a.getWindow(),!h.equals(t)&&h.$.frameElement&&(a=(new CKEDITOR.dom.element(h.$.frameElement)).getDocumentPosition(a),b+=a.x,e+=a.y));document.documentElement.getBoundingClientRect||!CKEDITOR.env.gecko||
c||(b+=this.$.clientLeft?1:0,e+=this.$.clientTop?1:0);return{x:b,y:e}},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 e=b.getWindow();try{var d=e.$.frameElement;d&&(b=new CKEDITOR.dom.element(d))}catch(l){}}while(b=b.getParent())}},scrollIntoParent:function(a,b,e){var d,l,c,h;function f(d,e){/body|html/.test(a.getName())?
a.getWindow().$.scrollBy(d,e):(a.$.scrollLeft+=d,a.$.scrollTop+=e)}function t(d,a){var e={x:0,y:0};if(!d.is(n?"body":"html")){var b=d.$.getBoundingClientRect();e.x=b.left;e.y=b.top}b=d.getWindow();b.equals(a)||(b=t(CKEDITOR.dom.element.get(b.$.frameElement),a),e.x+=b.x,e.y+=b.y);return e}function r(d,a){return parseInt(d.getComputedStyle("margin-"+a)||0,10)||0}!a&&(a=this.getWindow());c=a.getDocument();var n="BackCompat"==c.$.compatMode;a instanceof CKEDITOR.dom.window&&(a=n?c.getBody():c.getDocumentElement());
CKEDITOR.env.webkit&&(c=this.getEditor(!1))&&(c._.previousScrollTop=null);c=a.getWindow();l=t(this,c);var m=t(a,c),B=this.$.offsetHeight;d=this.$.offsetWidth;var w=a.$.clientHeight,A=a.$.clientWidth;c=l.x-r(this,"left")-m.x||0;h=l.y-r(this,"top")-m.y||0;d=l.x+d+r(this,"right")-(m.x+A)||0;l=l.y+B+r(this,"bottom")-(m.y+w)||0;(0>h||0<l)&&f(0,!0===b?h:!1===b?l:0>h?h:l);e&&(0>c||0<d)&&f(0>c?c:d,0)},setState:function(a,b,e){b=b||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(b+"_on");this.removeClass(b+
"_off");this.removeClass(b+"_disabled");e&&this.setAttribute("aria-pressed",!0);e&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(b+"_disabled");this.removeClass(b+"_off");this.removeClass(b+"_on");e&&this.setAttribute("aria-disabled",!0);e&&this.removeAttribute("aria-pressed");break;default:this.addClass(b+"_off"),this.removeClass(b+"_on"),this.removeClass(b+"_disabled"),e&&this.removeAttribute("aria-pressed"),e&&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 e=this.$.attributes;b=b||{};for(var d=0;d<e.length;d++){var l=e[d],c=l.nodeName.toLowerCase(),h;if(!(c in b))if("checked"==c&&(h=this.getAttribute(c)))a.setAttribute(c,h);else if(!CKEDITOR.env.ie||this.hasAttribute(c))h=this.getAttribute(c),null===h&&(h=l.nodeValue),a.setAttribute(c,h)}""!==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,e){var d=b.childNodes;if(0<=e&&e<d.length)return d[e]}return function(b){var e=this.$;if(b.slice)for(b=b.slice();0<b.length&&e;)e=a(e,
b.shift());else e=a(e,b);return e?new CKEDITOR.dom.node(e):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(a){var b=CKEDITOR.instances,e,d,l;a=a||void 0===a;for(e in b)if(d=b[e],d.element.equals(this)&&d.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||!a&&(l=d.editable())&&(l.equals(this)||l.contains(this)))return d;return null},find:function(a){var c=f(this);a=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(b(this,
a)));c();return a},findOne:function(a){var c=f(this);a=this.$.querySelector(b(this,a));c();return a?new CKEDITOR.dom.element(a):null},forEach:function(a,b,e){if(!(e||b&&this.type!=b))var d=a(this);if(!1!==d){e=this.getChildren();for(var l=0;l<e.count();l++)d=e.getItem(l),d.type==CKEDITOR.NODE_ELEMENT?d.forEach(a,b):b&&d.type!=b||a(d)}}});var m={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(b,c,e){"number"==typeof c&&(!e||CKEDITOR.env.ie&&CKEDITOR.env.quirks||(c-=a.call(this,b)),this.setStyle(b,c+"px"))};CKEDITOR.dom.element.prototype.getSize=function(b,c){var e=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(b)],this.$["client"+CKEDITOR.tools.capitalize(b)])||0;c&&(e-=a.call(this,b));return e}}(),CKEDITOR.dom.documentFragment=function(c){c=c||CKEDITOR.document;this.$=c.type==CKEDITOR.NODE_DOCUMENT?c.$.createDocumentFragment():c},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,
CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(c){c=c.$;c.parentNode.insertBefore(this.$,c.nextSibling)},getHtml:function(){var c=new CKEDITOR.dom.element("div");this.clone(1,1).appendTo(c);return c.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 c(d,a){var e=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(e.collapsed)return this.end(),null;e.optimize()}var b,c=e.startContainer;b=e.endContainer;var l=e.startOffset,g=e.endOffset,h,f=this.guard,k=this.type,n=d?"getPreviousSourceNode":"getNextSourceNode";if(!d&&!this._.guardLTR){var m=b.type==CKEDITOR.NODE_ELEMENT?b:b.getParent(),C=b.type==CKEDITOR.NODE_ELEMENT?b.getChild(g):b.getNext();this._.guardLTR=function(d,
a){return(!a||!m.equals(d))&&(!C||!d.equals(C))&&(d.type!=CKEDITOR.NODE_ELEMENT||!a||!d.equals(e.root))}}if(d&&!this._.guardRTL){var D=c.type==CKEDITOR.NODE_ELEMENT?c:c.getParent(),G=c.type==CKEDITOR.NODE_ELEMENT?l?c.getChild(l-1):null:c.getPrevious();this._.guardRTL=function(d,a){return(!a||!D.equals(d))&&(!G||!d.equals(G))&&(d.type!=CKEDITOR.NODE_ELEMENT||!a||!d.equals(e.root))}}var H=d?this._.guardRTL:this._.guardLTR;h=f?function(d,a){return!1===H(d,a)?!1:f(d,a)}:H;this.current?b=this.current[n](!1,
k,h):(d?b.type==CKEDITOR.NODE_ELEMENT&&(b=0<g?b.getChild(g-1):!1===h(b,!0)?null:b.getPreviousSourceNode(!0,k,h)):(b=c,b.type==CKEDITOR.NODE_ELEMENT&&((b=b.getChild(l))||(b=!1===h(c,!0)?null:c.getNextSourceNode(!0,k,h)))),b&&!1===h(b)&&(b=null));for(;b&&!this._.end;){this.current=b;if(!this.evaluator||!1!==this.evaluator(b)){if(!a)return b}else if(a&&this.evaluator)return!1;b=b[n](!1,k,h)}this.end();return this.current=null}function f(d){for(var a,e=null;a=c.call(this,d);)e=a;return e}CKEDITOR.dom.walker=
CKEDITOR.tools.createClass({$:function(d){this.range=d;this._={}},proto:{end:function(){this._.end=1},next:function(){return c.call(this)},previous:function(){return c.call(this,1)},checkForward:function(){return!1!==c.call(this,0,1)},checkBackward:function(){return!1!==c.call(this,1,1)},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},a={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(d){return"none"!=this.getComputedStyle("float")||this.getComputedStyle("position")in a||!b[this.getComputedStyle("display")]?!!(this.is(CKEDITOR.dtd.$block)||d&&this.is(d)):!0};CKEDITOR.dom.walker.blockBoundary=function(d){return function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary(d))}};CKEDITOR.dom.walker.listItemBoundary=
function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(d,a){function e(d){return d&&d.getName&&"span"==d.getName()&&d.data("cke-bookmark")}return function(b){var c,l;c=b&&b.type!=CKEDITOR.NODE_ELEMENT&&(l=b.getParent())&&e(l);c=d?c:c||e(b);return!!(a^c)}};CKEDITOR.dom.walker.whitespaces=function(d){return function(a){var e;a&&a.type==CKEDITOR.NODE_TEXT&&(e=!CKEDITOR.tools.trim(a.getText())||CKEDITOR.env.webkit&&a.getText()==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE);
return!!(d^e)}};CKEDITOR.dom.walker.invisible=function(d){var a=CKEDITOR.dom.walker.whitespaces(),e=CKEDITOR.env.webkit?1:0;return function(b){a(b)?b=1:(b.type==CKEDITOR.NODE_TEXT&&(b=b.getParent()),b=b.$.offsetWidth<=e);return!!(d^b)}};CKEDITOR.dom.walker.nodeType=function(d,a){return function(e){return!!(a^e.type==d)}};CKEDITOR.dom.walker.bogus=function(d){function a(d){return!n(d)&&!m(d)}return function(e){var b=CKEDITOR.env.needsBrFiller?e.is&&e.is("br"):e.getText&&h.test(e.getText());b&&(b=e.getParent(),
e=e.getNext(a),b=b.isBlockBoundary()&&(!e||e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary()));return!!(d^b)}};CKEDITOR.dom.walker.temp=function(d){return function(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());a=a&&a.hasAttribute("data-cke-temp");return!!(d^a)}};var h=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,n=CKEDITOR.dom.walker.whitespaces(),m=CKEDITOR.dom.walker.bookmark(),k=CKEDITOR.dom.walker.temp(),g=function(d){return m(d)||n(d)||d.type==CKEDITOR.NODE_ELEMENT&&d.is(CKEDITOR.dtd.$inline)&&!d.is(CKEDITOR.dtd.$empty)};
CKEDITOR.dom.walker.ignored=function(d){return function(a){a=n(a)||m(a)||k(a);return!!(d^a)}};var e=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(d){return function(a){for(var b=0,c=a.getChildCount();b<c;++b)if(!e(a.getChild(b)))return!!d;return!d}};var d=CKEDITOR.dom.walker.empty(),l=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(d){var a={},e;for(e in d)CKEDITOR.dtd[e]["#"]&&(a[e]=1);return a}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=
function(a){return function(b){b=e(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(l)&&d(b))?!0:!1;return!!(a^b)}};CKEDITOR.dom.element.prototype.getBogus=function(){var d=this;do d=d.getPreviousSourceNode();while(g(d));return d&&(CKEDITOR.env.needsBrFiller?d.is&&d.is("br"):d.getText&&h.test(d.getText()))?d:!1}}(),CKEDITOR.dom.range=function(c){this.endOffset=this.endContainer=
this.startOffset=this.startContainer=null;this.collapsed=!0;var f=c instanceof CKEDITOR.dom.document;this.document=f?c:c.getDocument();this.root=f?c.getBody():c},function(){function c(d){d.collapsed=d.startContainer&&d.endContainer&&d.startContainer.equals(d.endContainer)&&d.startOffset==d.endOffset}function f(d,a,e,b,c){function g(d,a,e,b){var l=e?d.getPrevious():d.getNext();if(b&&k)return l;w||b?a.append(d.clone(!0,c),e):(d.remove(),n&&a.append(d,e));return l}function h(){var d,a,e,b=Math.min(E.length,
z.length);for(d=0;d<b;d++)if(a=E[d],e=z[d],!a.equals(e))return d;return d-1}function f(){var a=V-1,e=H&&J&&!A.equals(m);a<K-1||a<T-1||e?(e?d.moveToPosition(m,CKEDITOR.POSITION_BEFORE_START):T==a+1&&G?d.moveToPosition(z[a],CKEDITOR.POSITION_BEFORE_END):d.moveToPosition(z[a+1],CKEDITOR.POSITION_BEFORE_START),b&&(a=E[a+1])&&a.type==CKEDITOR.NODE_ELEMENT&&(e=CKEDITOR.dom.element.createFromHtml('\x3cspan data-cke-bookmark\x3d"1" style\x3d"display:none"\x3e\x26nbsp;\x3c/span\x3e',d.document),e.insertAfter(a),
a.mergeSiblings(!1),d.moveToBookmark({startNode:e}))):d.collapse(!0)}d.optimizeBookmark();var k=0===a,n=1==a,w=2==a;a=w||n;var A=d.startContainer,m=d.endContainer,y=d.startOffset,C=d.endOffset,D,G,H,J,I,N;if(w&&m.type==CKEDITOR.NODE_TEXT&&(A.equals(m)||A.type===CKEDITOR.NODE_ELEMENT&&A.getFirst().equals(m)))e.append(d.document.createText(m.substring(y,C)));else{m.type==CKEDITOR.NODE_TEXT?w?N=!0:m=m.split(C):0<m.getChildCount()?C>=m.getChildCount()?(m=m.getChild(C-1),G=!0):m=m.getChild(C):J=G=!0;A.type==
CKEDITOR.NODE_TEXT?w?I=!0:A.split(y):0<A.getChildCount()?0===y?(A=A.getChild(y),D=!0):A=A.getChild(y-1):H=D=!0;for(var E=A.getParents(),z=m.getParents(),V=h(),K=E.length-1,T=z.length-1,P=e,aa,ba,Y,ea=-1,W=V;W<=K;W++){ba=E[W];Y=ba.getNext();for(W!=K||ba.equals(z[W])&&K<T?a&&(aa=P.append(ba.clone(0,c))):D?g(ba,P,!1,H):I&&P.append(d.document.createText(ba.substring(y)));Y;){if(Y.equals(z[W])){ea=W;break}Y=g(Y,P)}P=aa}P=e;for(W=V;W<=T;W++)if(e=z[W],Y=e.getPrevious(),e.equals(E[W]))a&&(P=P.getChild(0));
else{W!=T||e.equals(E[W])&&T<K?a&&(aa=P.append(e.clone(0,c))):G?g(e,P,!1,J):N&&P.append(d.document.createText(e.substring(0,C)));if(W>ea)for(;Y;)Y=g(Y,P,!0);P=aa}w||f()}}function b(){var d=!1,a=CKEDITOR.dom.walker.whitespaces(),e=CKEDITOR.dom.walker.bookmark(!0),b=CKEDITOR.dom.walker.bogus();return function(c){return e(c)||a(c)?!0:b(c)&&!d?d=!0:c.type==CKEDITOR.NODE_TEXT&&(c.hasAscendant("pre")||CKEDITOR.tools.trim(c.getText()).length)||c.type==CKEDITOR.NODE_ELEMENT&&!c.is(n)?!1:!0}}function a(d){var a=
CKEDITOR.dom.walker.whitespaces(),e=CKEDITOR.dom.walker.bookmark(1);return function(b){return e(b)||a(b)?!0:!d&&m(b)||b.type==CKEDITOR.NODE_ELEMENT&&b.is(CKEDITOR.dtd.$removeEmpty)}}function h(d){return function(){var a;return this[d?"getPreviousNode":"getNextNode"](function(d){!a&&e(d)&&(a=d);return g(d)&&!(m(d)&&d.equals(a))})}}var n={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},
m=CKEDITOR.dom.walker.bogus(),k=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,g=CKEDITOR.dom.walker.editable(),e=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var d=new CKEDITOR.dom.range(this.root);d._setStartContainer(this.startContainer);d.startOffset=this.startOffset;d._setEndContainer(this.endContainer);d.endOffset=this.endOffset;d.collapsed=this.collapsed;return d},collapse:function(d){d?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),
this.startOffset=this.endOffset);this.collapsed=!0},cloneContents:function(d){var a=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||f(this,2,a,!1,"undefined"==typeof d?!0:d);return a},deleteContents:function(d){this.collapsed||f(this,0,null,d)},extractContents:function(d,a){var e=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||f(this,1,e,d,"undefined"==typeof a?!0:a);return e},createBookmark:function(d){var a,e,b,c,g=this.collapsed;a=this.document.createElement("span");
a.data("cke-bookmark",1);a.setStyle("display","none");a.setHtml("\x26nbsp;");d&&(b="cke_bm_"+CKEDITOR.tools.getNextNumber(),a.setAttribute("id",b+(g?"C":"S")));g||(e=a.clone(),e.setHtml("\x26nbsp;"),d&&e.setAttribute("id",b+"E"),c=this.clone(),c.collapse(),c.insertNode(e));c=this.clone();c.collapse(!0);c.insertNode(a);e?(this.setStartAfter(a),this.setEndBefore(e)):this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return{startNode:d?b+(g?"C":"S"):a,endNode:d?b+"E":e,serializable:d,collapsed:g}},createBookmark2:function(){function d(d){var a=
d.container,b=d.offset,c;c=a;var l=b;c=c.type!=CKEDITOR.NODE_ELEMENT||0===l||l==c.getChildCount()?0:c.getChild(l-1).type==CKEDITOR.NODE_TEXT&&c.getChild(l).type==CKEDITOR.NODE_TEXT;c&&(a=a.getChild(b-1),b=a.getLength());if(a.type==CKEDITOR.NODE_ELEMENT&&0<b){a:{for(c=a;b--;)if(l=c.getChild(b).getIndex(!0),0<=l){b=l;break a}b=-1}b+=1}if(a.type==CKEDITOR.NODE_TEXT){c=a;for(l=0;(c=c.getPrevious())&&c.type==CKEDITOR.NODE_TEXT;)l+=c.getText().replace(CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE,"").length;
c=l;a.getText()?b+=c:(l=a.getPrevious(e),c?(b=c,a=l?l.getNext():a.getParent().getFirst()):(a=a.getParent(),b=l?l.getIndex(!0)+1:0))}d.container=a;d.offset=b}function a(d,e){var b=e.getCustomData("cke-fillingChar");if(b){var c=d.container;b.equals(c)&&(d.offset-=CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE.length,0>=d.offset&&(d.offset=c.getIndex(),d.container=c.getParent()))}}var e=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,!0);return function(e){var b=this.collapsed,c={container:this.startContainer,
offset:this.startOffset},g={container:this.endContainer,offset:this.endOffset};e&&(d(c),a(c,this.root),b||(d(g),a(g,this.root)));return{start:c.container.getAddress(e),end:b?null:g.container.getAddress(e),startOffset:c.offset,endOffset:g.offset,normalized:e,collapsed:b,is2:!0}}}(),moveToBookmark:function(d){if(d.is2){var a=this.document.getByAddress(d.start,d.normalized),e=d.startOffset,b=d.end&&this.document.getByAddress(d.end,d.normalized);d=d.endOffset;this.setStart(a,e);b?this.setEnd(b,d):this.collapse(!0)}else a=
(e=d.serializable)?this.document.getById(d.startNode):d.startNode,d=e?this.document.getById(d.endNode):d.endNode,this.setStartBefore(a),a.remove(),d?(this.setEndBefore(d),d.remove()):this.collapse(!0)},getBoundaryNodes:function(){var d=this.startContainer,a=this.endContainer,e=this.startOffset,b=this.endOffset,c;if(d.type==CKEDITOR.NODE_ELEMENT)if(c=d.getChildCount(),c>e)d=d.getChild(e);else if(1>c)d=d.getPreviousSourceNode();else{for(d=d.$;d.lastChild;)d=d.lastChild;d=new CKEDITOR.dom.node(d);d=
d.getNextSourceNode()||d}if(a.type==CKEDITOR.NODE_ELEMENT)if(c=a.getChildCount(),c>b)a=a.getChild(b).getPreviousSourceNode(!0);else if(1>c)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a)}d.getPosition(a)&CKEDITOR.POSITION_FOLLOWING&&(d=a);return{startNode:d,endNode:a}},getCommonAncestor:function(a,e){var b=this.startContainer,c=this.endContainer,b=b.equals(c)?a&&b.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?b.getChild(this.startOffset):
b:b.getCommonAncestor(c);return e&&!b.is?b.getParent():b},optimize:function(){var a=this.startContainer,e=this.startOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(e?e>=a.getLength()&&this.setStartAfter(a):this.setStartBefore(a));a=this.endContainer;e=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(e?e>=a.getLength()&&this.setEndAfter(a):this.setEndBefore(a))},optimizeBookmark:function(){var a=this.startContainer,e=this.endContainer;a.is&&a.is("span")&&a.data("cke-bookmark")&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);
e&&e.is&&e.is("span")&&e.data("cke-bookmark")&&this.setEndAt(e,CKEDITOR.POSITION_AFTER_END)},trim:function(a,e){var b=this.startContainer,c=this.startOffset,g=this.collapsed;if((!a||g)&&b&&b.type==CKEDITOR.NODE_TEXT){if(c)if(c>=b.getLength())c=b.getIndex()+1,b=b.getParent();else{var h=b.split(c),c=b.getIndex()+1,b=b.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(h,this.endOffset-this.startOffset):b.equals(this.endContainer)&&(this.endOffset+=1)}else c=b.getIndex(),b=b.getParent();
this.setStart(b,c);if(g){this.collapse(!0);return}}b=this.endContainer;c=this.endOffset;e||g||!b||b.type!=CKEDITOR.NODE_TEXT||(c?(c>=b.getLength()||b.split(c),c=b.getIndex()+1):c=b.getIndex(),b=b.getParent(),this.setEnd(b,c))},enlarge:function(a,e){function b(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 g=1;case CKEDITOR.ENLARGE_ELEMENT:var h=function(a,d){var e=new CKEDITOR.dom.range(k);
e.setStart(a,d);e.setEndAt(k,CKEDITOR.POSITION_BEFORE_END);var e=new CKEDITOR.dom.walker(e),b;for(e.guard=function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())};b=e.next();){if(b.type!=CKEDITOR.NODE_TEXT)return!1;D=b!=a?b.getText():b.substring(d);if(c.test(D))return!1}return!0};if(this.collapsed)break;var f=this.getCommonAncestor(),k=this.root,n,m,w,A,F,y=!1,C,D;C=this.startContainer;var G=this.startOffset;C.type==CKEDITOR.NODE_TEXT?(G&&(C=!CKEDITOR.tools.trim(C.substring(0,G)).length&&
C,y=!!C),C&&((A=C.getPrevious())||(w=C.getParent()))):(G&&(A=C.getChild(G-1)||C.getLast()),A||(w=C));for(w=b(w);w||A;){if(w&&!A){!F&&w.equals(f)&&(F=!0);if(g?w.isBlockBoundary():!k.contains(w))break;y&&"inline"==w.getComputedStyle("display")||(y=!1,F?n=w:this.setStartBefore(w));A=w.getPrevious()}for(;A;)if(C=!1,A.type==CKEDITOR.NODE_COMMENT)A=A.getPrevious();else{if(A.type==CKEDITOR.NODE_TEXT)D=A.getText(),c.test(D)&&(A=null),C=/[\s\ufeff]$/.test(D);else if((A.$.offsetWidth>(CKEDITOR.env.webkit?1:
0)||e&&A.is("br"))&&!A.data("cke-bookmark"))if(y&&CKEDITOR.dtd.$removeEmpty[A.getName()]){D=A.getText();if(c.test(D))A=null;else for(var G=A.$.getElementsByTagName("*"),H=0,J;J=G[H++];)if(!CKEDITOR.dtd.$removeEmpty[J.nodeName.toLowerCase()]){A=null;break}A&&(C=!!D.length)}else A=null;C&&(y?F?n=w:w&&this.setStartBefore(w):y=!0);if(A){C=A.getPrevious();if(!w&&!C){w=A;A=null;break}A=C}else w=null}w&&(w=b(w.getParent()))}C=this.endContainer;G=this.endOffset;w=A=null;F=y=!1;C.type==CKEDITOR.NODE_TEXT?
CKEDITOR.tools.trim(C.substring(G)).length?y=!0:(y=!C.getLength(),G==C.getLength()?(A=C.getNext())||(w=C.getParent()):h(C,G)&&(w=C.getParent())):(A=C.getChild(G))||(w=C);for(;w||A;){if(w&&!A){!F&&w.equals(f)&&(F=!0);if(g?w.isBlockBoundary():!k.contains(w))break;y&&"inline"==w.getComputedStyle("display")||(y=!1,F?m=w:w&&this.setEndAfter(w));A=w.getNext()}for(;A;){C=!1;if(A.type==CKEDITOR.NODE_TEXT)D=A.getText(),h(A,0)||(A=null),C=/^[\s\ufeff]/.test(D);else if(A.type==CKEDITOR.NODE_ELEMENT){if((0<A.$.offsetWidth||
e&&A.is("br"))&&!A.data("cke-bookmark"))if(y&&CKEDITOR.dtd.$removeEmpty[A.getName()]){D=A.getText();if(c.test(D))A=null;else for(G=A.$.getElementsByTagName("*"),H=0;J=G[H++];)if(!CKEDITOR.dtd.$removeEmpty[J.nodeName.toLowerCase()]){A=null;break}A&&(C=!!D.length)}else A=null}else C=1;C&&y&&(F?m=w:this.setEndAfter(w));if(A){C=A.getNext();if(!w&&!C){w=A;A=null;break}A=C}else w=null}w&&(w=b(w.getParent()))}n&&m&&(f=n.contains(m)?m:n,this.setStartBefore(f),this.setEndAfter(f));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:w=
new CKEDITOR.dom.range(this.root);k=this.root;w.setStartAt(k,CKEDITOR.POSITION_AFTER_START);w.setEnd(this.startContainer,this.startOffset);w=new CKEDITOR.dom.walker(w);var I,N,E=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),z=null,V=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&"false"==a.getAttribute("contenteditable"))if(z){if(z.equals(a)){z=null;return}}else z=a;else if(z)return;var d=E(a);d||(I=a);return d},g=function(a){var d=V(a);!d&&a.is&&a.is("br")&&
(N=a);return d};w.guard=V;w=w.lastBackward();I=I||k;this.setStartAt(I,!I.is("br")&&(!w&&this.checkStartOfBlock()||w&&I.contains(w))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){w=this.clone();w=new CKEDITOR.dom.walker(w);var K=CKEDITOR.dom.walker.whitespaces(),T=CKEDITOR.dom.walker.bookmark();w.evaluator=function(a){return!K(a)&&!T(a)};if((w=w.previous())&&w.type==CKEDITOR.NODE_ELEMENT&&w.is("br"))break}w=this.clone();w.collapse();w.setEndAt(k,
CKEDITOR.POSITION_BEFORE_END);w=new CKEDITOR.dom.walker(w);w.guard=a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?g:V;I=z=N=null;w=w.lastForward();I=I||k;this.setEndAt(I,!w&&this.checkEndOfBlock()||w&&I.contains(w)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);N&&this.setEndAfter(N)}},shrink:function(a,e,b){var c="boolean"===typeof b?b:b&&"boolean"===typeof b.shrinkOnBlockBoundary?b.shrinkOnBlockBoundary:!0,g=b&&b.skipBogus;if(!this.collapsed){a=a||CKEDITOR.SHRINK_TEXT;var h=this.clone(),f=
this.startContainer,k=this.endContainer,n=this.startOffset,m=this.endOffset,w=b=1;f&&f.type==CKEDITOR.NODE_TEXT&&(n?n>=f.getLength()?h.setStartAfter(f):(h.setStartBefore(f),b=0):h.setStartBefore(f));k&&k.type==CKEDITOR.NODE_TEXT&&(m?m>=k.getLength()?h.setEndAfter(k):(h.setEndAfter(k),w=0):h.setEndBefore(k));var h=new CKEDITOR.dom.walker(h),A=CKEDITOR.dom.walker.bookmark(),F=CKEDITOR.dom.walker.bogus();h.evaluator=function(e){return e.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};
var y;h.guard=function(e,b){if(g&&F(e)||A(e))return!0;if(a==CKEDITOR.SHRINK_ELEMENT&&e.type==CKEDITOR.NODE_TEXT||b&&e.equals(y)||!1===c&&e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary()||e.type==CKEDITOR.NODE_ELEMENT&&e.hasAttribute("contenteditable"))return!1;b||e.type!=CKEDITOR.NODE_ELEMENT||(y=e);return!0};b&&(f=h[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(f,e?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);w&&(h.reset(),(h=h[a==CKEDITOR.SHRINK_ELEMENT?
"lastBackward":"previous"]())&&this.setEndAt(h,e?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END));return!(!b&&!w)}},insertNode:function(a){this.optimizeBookmark();this.trim(!1,!0);var e=this.startContainer,b=e.getChild(this.startOffset);b?a.insertBefore(b):e.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a,e){this.setStartAt(a,e);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(a,e){a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]&&(e=a.getIndex(),a=a.getParent());this._setStartContainer(a);this.startOffset=e;this.endContainer||(this._setEndContainer(a),this.endOffset=e);c(this)},setEnd:function(a,e){a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]&&(e=a.getIndex()+
1,a=a.getParent());this._setEndContainer(a);this.endOffset=e;this.startContainer||(this._setStartContainer(a),this.startOffset=e);c(this)},setStartAfter:function(a){this.setStart(a.getParent(),a.getIndex()+1)},setStartBefore:function(a){this.setStart(a.getParent(),a.getIndex())},setEndAfter:function(a){this.setEnd(a.getParent(),a.getIndex()+1)},setEndBefore:function(a){this.setEnd(a.getParent(),a.getIndex())},setStartAt:function(a,e){switch(e){case CKEDITOR.POSITION_AFTER_START:this.setStart(a,0);
break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setStart(a,a.getLength()):this.setStart(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(a);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(a)}c(this)},setEndAt:function(a,e){switch(e){case CKEDITOR.POSITION_AFTER_START:this.setEnd(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setEnd(a,a.getLength()):this.setEnd(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(a);
break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(a)}c(this)},fixBlock:function(a,e){var b=this.createBookmark(),c=this.document.createElement(e);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(c);c.trim();this.insertNode(c);var g=c.getBogus();g&&g.remove();c.appendBogus();this.moveToBookmark(b);return c},splitBlock:function(a,e){var b=new CKEDITOR.dom.elementPath(this.startContainer,this.root),c=new CKEDITOR.dom.elementPath(this.endContainer,this.root),
g=b.block,h=c.block,f=null;if(!b.blockLimit.equals(c.blockLimit))return null;"br"!=a&&(g||(g=this.fixBlock(!0,a),h=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block),h||(h=this.fixBlock(!1,a)));b=g&&this.checkStartOfBlock();c=h&&this.checkEndOfBlock();this.deleteContents();g&&g.equals(h)&&(c?(f=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(h,CKEDITOR.POSITION_AFTER_END),h=null):b?(f=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(g,
CKEDITOR.POSITION_BEFORE_START),g=null):(h=this.splitElement(g,e||!1),g.is("ul","ol")||g.appendBogus()));return{previousBlock:g,nextBlock:h,wasStartOfBlock:b,wasEndOfBlock:c,elementPath:f}},splitElement:function(a,e){if(!this.collapsed)return null;this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var b=this.extractContents(!1,e||!1),c=a.clone(!1,e||!1);b.appendTo(c);c.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return c},removeEmptyBlocksAtEnd:function(){function a(d){return function(a){return e(a)||
b(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isEmptyInlineRemoveable()||d.is("table")&&a.is("caption")?!1:!0}}var e=CKEDITOR.dom.walker.whitespaces(),b=CKEDITOR.dom.walker.bookmark(!1);return function(e){for(var b=this.createBookmark(),c=this[e?"endPath":"startPath"](),g=c.block||c.blockLimit,l;g&&!g.equals(c.root)&&!g.getFirst(a(g));)l=g.getParent(),this[e?"setEndAt":"setStartAt"](g,CKEDITOR.POSITION_AFTER_END),g.remove(1),g=l;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(d,e){var b=e==CKEDITOR.START,c=this.clone();c.collapse(b);c[b?"setStartAt":"setEndAt"](d,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(c);c.evaluator=a(b);return c[b?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var a=this.startContainer,e=this.startOffset;CKEDITOR.env.ie&&e&&a.type==CKEDITOR.NODE_TEXT&&(a=CKEDITOR.tools.ltrim(a.substring(0,
e)),k.test(a)&&this.trim(0,1));this.trim();a=new CKEDITOR.dom.elementPath(this.startContainer,this.root);e=this.clone();e.collapse(!0);e.setStartAt(a.block||a.blockLimit,CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(e);a.evaluator=b();return a.checkBackward()},checkEndOfBlock:function(){var a=this.endContainer,e=this.endOffset;CKEDITOR.env.ie&&a.type==CKEDITOR.NODE_TEXT&&(a=CKEDITOR.tools.rtrim(a.substring(e)),k.test(a)&&this.trim(1,0));this.trim();a=new CKEDITOR.dom.elementPath(this.endContainer,
this.root);e=this.clone();e.collapse(!1);e.setEndAt(a.block||a.blockLimit,CKEDITOR.POSITION_BEFORE_END);a=new CKEDITOR.dom.walker(e);a.evaluator=b();return a.checkForward()},getPreviousNode:function(a,e,b){var c=this.clone();c.collapse(1);c.setStartAt(b||this.root,CKEDITOR.POSITION_AFTER_START);b=new CKEDITOR.dom.walker(c);b.evaluator=a;b.guard=e;return b.previous()},getNextNode:function(a,e,b){var c=this.clone();c.collapse();c.setEndAt(b||this.root,CKEDITOR.POSITION_BEFORE_END);b=new CKEDITOR.dom.walker(c);
b.evaluator=a;b.guard=e;return b.next()},checkReadOnly:function(){function a(d,e){for(;d;){if(d.type==CKEDITOR.NODE_ELEMENT){if("false"==d.getAttribute("contentEditable")&&!d.data("cke-editable"))return 0;if(d.is("html")||"true"==d.getAttribute("contentEditable")&&(d.contains(e)||d.equals(e)))break}d=d.getParent()}return 1}return function(){var e=this.startContainer,b=this.endContainer;return!(a(e,b)&&a(b,e))}}(),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 g=a,h=c,f=void 0;g.type==CKEDITOR.NODE_ELEMENT&&g.isEditable(!1)&&(f=g[b?"getLast":"getFirst"](e));h||f||(f=g[b?"getPrevious":"getNext"](e));a=f}return!!c},moveToClosestEditablePosition:function(a,e){var b,c=0,g,h,f=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];a?(b=new CKEDITOR.dom.range(this.root),
b.moveToPosition(a,f[e?0:1])):b=this.clone();if(a&&!a.is(CKEDITOR.dtd.$block))c=1;else if(g=b[e?"getNextEditableNode":"getPreviousEditableNode"]())c=1,(h=g.type==CKEDITOR.NODE_ELEMENT)&&g.is(CKEDITOR.dtd.$block)&&"false"==g.getAttribute("contenteditable")?(b.setStartAt(g,CKEDITOR.POSITION_BEFORE_START),b.setEndAt(g,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&h&&g.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(b.setEnd(g,0),b.collapse()):b.moveToPosition(g,f[e?1:0]);c&&this.moveToRange(b);
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),e=CKEDITOR.dom.walker.bookmark(!1,!0),b=CKEDITOR.dom.walker.whitespaces(!0);a.evaluator=function(a){return b(a)&&e(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:h(),getPreviousEditableNode:h(1),_getTableElement:function(a){a=a||{td:1,th:1,tr:1,tbody:1,thead:1,tfoot:1,table:1};var e=this.startContainer,b=
this.endContainer,c=e.getAscendant("table",!0),g=b.getAscendant("table",!0);return CKEDITOR.env.safari&&c&&b.equals(this.root)?e.getAscendant(a,!0):this.getEnclosedNode()?this.getEnclosedNode().getAscendant(a,!0):c&&g&&(c.equals(g)||c.contains(g)||g.contains(c))?e.getAscendant(a,!0):null},scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",this.document),e,b,c,g=this.clone();g.optimize();(c=g.startContainer.type==CKEDITOR.NODE_TEXT)?(b=g.startContainer.getText(),
e=g.startContainer.split(g.startOffset),a.insertAfter(g.startContainer)):g.insertNode(a);a.scrollIntoView();c&&(g.startContainer.setText(b),e.remove());a.remove()},_setStartContainer:function(a){this.startContainer=a},_setEndContainer:function(a){this.endContainer=a},_find:function(a,e){var b=this.getCommonAncestor(),c=this.getBoundaryNodes(),g=[],h,f,k,n;if(b&&b.find)for(f=b.find(a),h=0;h<f.count();h++)if(b=f.getItem(h),e||!b.isReadOnly())k=b.getPosition(c.startNode)&CKEDITOR.POSITION_FOLLOWING||
c.startNode.equals(b),n=b.getPosition(c.endNode)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IS_CONTAINED||c.endNode.equals(b),k&&n&&g.push(b);return g}};CKEDITOR.dom.range.mergeRanges=function(a){return CKEDITOR.tools.array.reduce(a,function(a,d){var e=a[a.length-1],b=!1;d=d.clone();d.enlarge(CKEDITOR.ENLARGE_ELEMENT);if(e){var c=new CKEDITOR.dom.range(d.root),b=new CKEDITOR.dom.walker(c),g=CKEDITOR.dom.walker.whitespaces();c.setStart(e.endContainer,e.endOffset);c.setEnd(d.startContainer,d.startOffset);
for(c=b.next();g(c)||d.endContainer.equals(c);)c=b.next();b=!c}b?e.setEnd(d.endContainer,d.endOffset):a.push(d);return 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 c(a){1>
arguments.length||(this.range=a,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function f(a){var d=[];a.forEach(function(a){if("true"==a.getAttribute("contenteditable"))return d.push(a),!1},CKEDITOR.NODE_ELEMENT,!0);return d}function b(a,d,c,g){a:{null==g&&(g=f(c));for(var h;h=g.shift();)if(h.getDtd().p){g={element:h,remaining:g};break a}g=null}if(!g)return 0;if((h=CKEDITOR.filter.instances[g.element.data("cke-filter")])&&!h.check(d))return b(a,d,c,g.remaining);
d=new CKEDITOR.dom.range(g.element);d.selectNodeContents(g.element);d=d.createIterator();d.enlargeBr=a.enlargeBr;d.enforceRealBlocks=a.enforceRealBlocks;d.activeFilter=d.filter=h;a._.nestedEditable={element:g.element,container:c,remaining:g.remaining,iterator:d};return 1}function a(a,d,b){if(!d)return!1;a=a.clone();a.collapse(!b);return a.checkBoundaryOfElement(d,b?CKEDITOR.START:CKEDITOR.END)}var h=/^[\r\n\t ]+$/,n=CKEDITOR.dom.walker.bookmark(!1,!0),m=CKEDITOR.dom.walker.whitespaces(!0),k=function(a){return n(a)&&
m(a)},g={dd:1,dt:1,li:1};c.prototype={getNextParagraph:function(e){var d,c,f,m,u;e=e||"p";if(this._.nestedEditable){if(d=this._.nestedEditable.iterator.getNextParagraph(e))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,d;this.activeFilter=this.filter;if(b(this,e,this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(e);this._.nestedEditable=null}if(!this.range.root.getDtd()[e])return null;
if(!this._.started){var t=this.range.clone();c=t.startPath();var r=t.endPath(),v=!t.collapsed&&a(t,c.block),x=!t.collapsed&&a(t,r.block,1);t.shrink(CKEDITOR.SHRINK_ELEMENT,!0);v&&t.setStartAt(c.block,CKEDITOR.POSITION_BEFORE_END);x&&t.setEndAt(r.block,CKEDITOR.POSITION_AFTER_START);c=t.endContainer.hasAscendant("pre",!0)||t.startContainer.hasAscendant("pre",!0);t.enlarge(this.forceBrBreak&&!c||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);t.collapsed||(c=new CKEDITOR.dom.walker(t.clone()),
r=CKEDITOR.dom.walker.bookmark(!0,!0),c.evaluator=r,this._.nextNode=c.next(),c=new CKEDITOR.dom.walker(t.clone()),c.evaluator=r,c=c.previous(),this._.lastNode=c.getNextSourceNode(!0,null,t.root),this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&(r=this.range.clone(),r.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),r.checkEndOfBlock()&&(r=new CKEDITOR.dom.elementPath(r.endContainer,
r.root),this._.lastNode=(r.block||r.blockLimit).getNextSourceNode(!0))),this._.lastNode&&t.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=t.document.createText(""),this._.lastNode.insertAfter(c)),t=null);this._.started=1;c=t}r=this._.nextNode;t=this._.lastNode;for(this._.nextNode=null;r;){var v=0,x=r.hasAscendant("pre"),B=r.type!=CKEDITOR.NODE_ELEMENT,w=0;if(B)r.type==CKEDITOR.NODE_TEXT&&h.test(r.getText())&&(B=0);else{var A=r.getName();if(CKEDITOR.dtd.$block[A]&&"false"==r.getAttribute("contenteditable")){d=
r;b(this,e,d);break}else if(r.isBlockBoundary(this.forceBrBreak&&!x&&{br:1})){if("br"==A)B=1;else if(!c&&!r.getChildCount()&&"hr"!=A){d=r;f=r.equals(t);break}c&&(c.setEndAt(r,CKEDITOR.POSITION_BEFORE_START),"br"!=A&&(this._.nextNode=r));v=1}else{if(r.getFirst()){c||(c=this.range.clone(),c.setStartAt(r,CKEDITOR.POSITION_BEFORE_START));r=r.getFirst();continue}B=1}}B&&!c&&(c=this.range.clone(),c.setStartAt(r,CKEDITOR.POSITION_BEFORE_START));f=(!v||B)&&r.equals(t);if(c&&!v)for(;!r.getNext(k)&&!f;){A=
r.getParent();if(A.isBlockBoundary(this.forceBrBreak&&!x&&{br:1})){v=1;B=0;f||A.equals(t);c.setEndAt(A,CKEDITOR.POSITION_BEFORE_END);break}r=A;B=1;f=r.equals(t);w=1}B&&c.setEndAt(r,CKEDITOR.POSITION_AFTER_END);r=this._getNextSourceNode(r,w,t);if((f=!r)||v&&c)break}if(!d){if(!c)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;d=new CKEDITOR.dom.elementPath(c.startContainer,c.root);r=d.blockLimit;v={div:1,th:1,td:1};d=d.block;!d&&r&&!this.enforceRealBlocks&&v[r.getName()]&&
c.checkStartOfBlock()&&c.checkEndOfBlock()&&!r.equals(c.root)?d=r:!d||this.enforceRealBlocks&&d.is(g)?(d=this.range.document.createElement(e),c.extractContents().appendTo(d),d.trim(),c.insertNode(d),m=u=!0):"li"!=d.getName()?c.checkStartOfBlock()&&c.checkEndOfBlock()||(d=d.clone(!1),c.extractContents().appendTo(d),d.trim(),u=c.splitBlock(),m=!u.wasStartOfBlock,u=!u.wasEndOfBlock,c.insertNode(d)):f||(this._.nextNode=d.equals(t)?null:this._getNextSourceNode(c.getBoundaryNodes().endNode,1,t))}m&&(m=
d.getPrevious())&&m.type==CKEDITOR.NODE_ELEMENT&&("br"==m.getName()?m.remove():m.getLast()&&"br"==m.getLast().$.nodeName.toLowerCase()&&m.getLast().remove());u&&(m=d.getLast())&&m.type==CKEDITOR.NODE_ELEMENT&&"br"==m.getName()&&(!CKEDITOR.env.needsBrFiller||m.getPrevious(n)||m.getNext(n))&&m.remove();this._.nextNode||(this._.nextNode=f||d.equals(t)||!t?null:this._getNextSourceNode(d,1,t));return d},_getNextSourceNode:function(a,d,b){function c(a){return!(a.equals(b)||a.equals(g))}var g=this.range.root;
for(a=a.getNextSourceNode(d,null,c);!n(a);)a=a.getNextSourceNode(d,null,c);return a}};CKEDITOR.dom.range.prototype.createIterator=function(){return new c(this)}}(),CKEDITOR.command=function(c,f){this.uiItems=[];this.exec=function(a){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return!1;this.editorFocus&&c.focus();return!1===this.fire("exec")?!0:!1!==f.exec.call(this,c,a)};this.refresh=function(a,b){if(!this.readOnly&&a.readOnly)return!0;if(this.context&&!b.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:b})?!0:f.refresh&&!1!==f.refresh.apply(this,arguments)};var b;this.checkAllowed=function(a){return a||"boolean"!=typeof b?b=c.activeFilter.checkFeature(this):b};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&&"undefined"!=typeof this.previousState?this.previousState:CKEDITOR.TRISTATE_OFF)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(c){if(this.state==c||c!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())return!1;this.previousState=this.state;this.state=c;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,contentsCss:CKEDITOR.getUrl("contents.css"),
extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1E4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function c(a,d,b,e,c){var g,h;a=[];for(g in d){h=d[g];h="boolean"==typeof h?{}:"function"==typeof h?{match:h}:H(h);"$"!=g.charAt(0)&&(h.elements=g);b&&(h.featureName=b.toLowerCase());var l=h;l.elements=m(l.elements,/\s+/)||null;l.propertiesOnly=l.propertiesOnly||!0===l.elements;var f=/\s*,\s*/,k=void 0;for(k in N){l[k]=m(l[k],
f)||null;var z=l,w=E[k],r=m(l[E[k]],f),K=l[k],n=[],A=!0,p=void 0;r?A=!1:r={};for(p in K)"!"==p.charAt(0)&&(p=p.slice(1),n.push(p),r[p]=!0,A=!1);for(;p=n.pop();)K[p]=K["!"+p],delete K["!"+p];z[w]=(A?!1:r)||null}l.match=l.match||null;e.push(h);a.push(h)}d=c.elements;c=c.generic;var T;b=0;for(e=a.length;b<e;++b){g=H(a[b]);h=!0===g.classes||!0===g.styles||!0===g.attributes;l=g;k=w=f=void 0;for(f in N)l[f]=v(l[f]);z=!0;for(k in E){f=E[k];w=l[f];r=[];K=void 0;for(K in w)-1<K.indexOf("*")?r.push(new RegExp("^"+
K.replace(/\*/g,".*")+"$")):r.push(K);w=r;w.length&&(l[f]=w,z=!1)}l.nothingRequired=z;l.noProperties=!(l.attributes||l.classes||l.styles);if(!0===g.elements||null===g.elements)c[h?"unshift":"push"](g);else for(T in l=g.elements,delete g.elements,l)if(d[T])d[T][h?"unshift":"push"](g);else d[T]=[g]}}function f(a,d,e,c){if(!a.match||a.match(d))if(c||k(a,d))if(a.propertiesOnly||(e.valid=!0),e.allAttributes||(e.allAttributes=b(a.attributes,d.attributes,e.validAttributes)),e.allStyles||(e.allStyles=b(a.styles,
d.styles,e.validStyles)),!e.allClasses){a=a.classes;d=d.classes;c=e.validClasses;if(a)if(!0===a)a=!0;else{for(var g=0,l=d.length,h;g<l;++g)h=d[g],c[h]||(c[h]=a(h));a=!1}else a=!1;e.allClasses=a}}function b(a,d,b){if(!a)return!1;if(!0===a)return!0;for(var e in d)b[e]||(b[e]=a(e));return!1}function a(a,d,b){if(!a.match||a.match(d)){if(a.noProperties)return!1;b.hadInvalidAttribute=h(a.attributes,d.attributes)||b.hadInvalidAttribute;b.hadInvalidStyle=h(a.styles,d.styles)||b.hadInvalidStyle;a=a.classes;
d=d.classes;if(a){for(var e=!1,c=!0===a,g=d.length;g--;)if(c||a(d[g]))d.splice(g,1),e=!0;a=e}else a=!1;b.hadInvalidClass=a||b.hadInvalidClass}}function h(a,d){if(!a)return!1;var b=!1,e=!0===a,c;for(c in d)if(e||a(c))delete d[c],b=!0;return b}function n(a,d,b){if(a.disabled||a.customConfig&&!b||!d)return!1;a._.cachedChecks={};return!0}function m(a,d){if(!a)return!1;if(!0===a)return a;if("string"==typeof a)return a=J(a),"*"==a?!0:CKEDITOR.tools.convertArrayToObject(a.split(d));if(CKEDITOR.tools.isArray(a))return a.length?
CKEDITOR.tools.convertArrayToObject(a):!1;var b={},e=0,c;for(c in a)b[c]=a[c],e++;return e?b:!1}function k(a,d){if(a.nothingRequired)return!0;var b,e,c,h;if(c=a.requiredClasses)for(h=d.classes,b=0;b<c.length;++b)if(e=c[b],"string"==typeof e){if(-1==CKEDITOR.tools.indexOf(h,e))return!1}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(h,e))return!1;return g(d.styles,a.requiredStyles)&&g(d.attributes,a.requiredAttributes)}function g(a,d){if(!d)return!0;for(var b=0,e;b<d.length;++b)if(e=d[b],"string"==
typeof e){if(!(e in a))return!1}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(a,e))return!1;return!0}function e(a){if(!a)return{};a=a.split(/\s*,\s*/).sort();for(var d={};a.length;)d[a.shift()]="cke-test";return d}function d(a){var d,b,e,c,g={},h=1;for(a=J(a);d=a.match(z);)(b=d[2])?(e=l(b,"styles"),c=l(b,"attrs"),b=l(b,"classes")):e=c=b=null,g["$"+h++]={elements:d[1],classes:b,styles:e,attributes:c},a=a.slice(d[0].length);return g}function l(a,d){var b=a.match(V[d]);return b?J(b[1]):null}
function p(a){var d=a.styleBackup=a.attributes.style,b=a.classBackup=a.attributes["class"];a.styles||(a.styles=CKEDITOR.tools.parseCssText(d||"",1));a.classes||(a.classes=b?b.split(/\s+/):[])}function q(d,b,e,c){var g=0,h;c.toHtml&&(b.name=b.name.replace(K,"$1"));if(c.doCallbacks&&d.elementCallbacks){a:{h=d.elementCallbacks;for(var l=0,k=h.length,z;l<k;++l)if(z=h[l](b)){h=z;break a}h=void 0}if(h)return h}if(c.doTransform&&(h=d._.transformations[b.name])){p(b);for(l=0;l<h.length;++l)A(d,b,h[l]);t(b)}if(c.doFilter){a:{l=
b.name;k=d._;d=k.allowedRules.elements[l];h=k.allowedRules.generic;l=k.disallowedRules.elements[l];k=k.disallowedRules.generic;z=c.skipRequired;var w={valid:!1,validAttributes:{},validClasses:{},validStyles:{},allAttributes:!1,allClasses:!1,allStyles:!1,hadInvalidAttribute:!1,hadInvalidClass:!1,hadInvalidStyle:!1},E,n;if(d||h){p(b);if(l)for(E=0,n=l.length;E<n;++E)if(!1===a(l[E],b,w)){d=null;break a}if(k)for(E=0,n=k.length;E<n;++E)a(k[E],b,w);if(d)for(E=0,n=d.length;E<n;++E)f(d[E],b,w,z);if(h)for(E=
0,n=h.length;E<n;++E)f(h[E],b,w,z);d=w}else d=null}if(!d||!d.valid)return e.push(b),1;n=d.validAttributes;var m=d.validStyles;h=d.validClasses;var l=b.attributes,v=b.styles,k=b.classes;z=b.classBackup;var J=b.styleBackup,u,y,x=[],w=[],V=/^data-cke-/;E=!1;delete l.style;delete l["class"];delete b.classBackup;delete b.styleBackup;if(!d.allAttributes)for(u in l)n[u]||(V.test(u)?u==(y=u.replace(/^data-cke-saved-/,""))||n[y]||(delete l[u],E=!0):(delete l[u],E=!0));if(!d.allStyles||d.hadInvalidStyle){for(u in v)d.allStyles||
m[u]?x.push(u+":"+v[u]):E=!0;x.length&&(l.style=x.sort().join("; "))}else J&&(l.style=J);if(!d.allClasses||d.hadInvalidClass){for(u=0;u<k.length;++u)(d.allClasses||h[k[u]])&&w.push(k[u]);w.length&&(l["class"]=w.sort().join(" "));z&&w.length<z.split(/\s+/).length&&(E=!0)}else z&&(l["class"]=z);E&&(g=1);if(!c.skipFinalValidation&&!r(b))return e.push(b),1}c.toHtml&&(b.name=b.name.replace(T,"cke:$1"));return g}function u(a){var d=[],b;for(b in a)-1<b.indexOf("*")&&d.push(b.replace(/\*/g,".*"));return d.length?
new RegExp("^(?:"+d.join("|")+")$"):null}function t(a){var d=a.attributes,b;delete d.style;delete d["class"];if(b=CKEDITOR.tools.writeCssText(a.styles,!0))d.style=b;a.classes.length&&(d["class"]=a.classes.sort().join(" "))}function r(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 v(a){if(!a)return!1;if(!0===a)return!0;var d=u(a);return function(b){return b in a||d&&b.match(d)}}function x(){return new CKEDITOR.htmlParser.element("br")}
function B(a){return a.type==CKEDITOR.NODE_ELEMENT&&("br"==a.name||G.$block[a.name])}function w(a,d,b){var e=a.name;if(G.$empty[e]||!a.children.length)"hr"==e&&"br"==d?a.replaceWith(x()):(a.parent&&b.push({check:"it",el:a.parent}),a.remove());else if(G.$block[e]||"tr"==e)if("br"==d)a.previous&&!B(a.previous)&&(d=x(),d.insertBefore(a)),a.next&&!B(a.next)&&(d=x(),d.insertAfter(a)),a.replaceWithChildren();else{var e=a.children,c;b:{c=G[d];for(var g=0,h=e.length,l;g<h;++g)if(l=e[g],l.type==CKEDITOR.NODE_ELEMENT&&
!c[l.name]){c=!1;break b}c=!0}if(c)a.name=d,a.attributes={},b.push({check:"parent-down",el:a});else{c=a.parent;for(var g=c.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||"body"==c.name,f,k,h=e.length;0<h;)l=e[--h],g&&(l.type==CKEDITOR.NODE_TEXT||l.type==CKEDITOR.NODE_ELEMENT&&G.$inline[l.name])?(f||(f=new CKEDITOR.htmlParser.element(d),f.insertAfter(a),b.push({check:"parent-down",el:f})),f.add(l,0)):(f=null,k=G[c.name]||G.span,l.insertAfter(a),c.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||l.type!=CKEDITOR.NODE_ELEMENT||
k[l.name]||b.push({check:"el-up",el:l}));a.remove()}}else e in{style:1,script:1}?a.remove():(a.parent&&b.push({check:"it",el:a.parent}),a.replaceWithChildren())}function A(a,d,b){var e,c;for(e=0;e<b.length;++e)if(c=b[e],!(c.check&&!a.check(c.check,!1)||c.left&&!c.left(d))){c.right(d,P);break}}function F(a,d){var b=d.getDefinition(),e=b.attributes,c=b.styles,g,l,h,f;if(a.name!=b.element)return!1;for(g in e)if("class"==g)for(b=e[g].split(/\s+/),h=a.classes.join("|");f=b.pop();){if(-1==h.indexOf(f))return!1}else if(a.attributes[g]!=
e[g])return!1;for(l in c)if(a.styles[l]!=c[l])return!1;return!0}function y(a,d){var b,e;"string"==typeof a?b=a:a instanceof CKEDITOR.style?e=a:(b=a[0],e=a[1]);return[{element:b,left:e,right:function(a,b){b.transform(a,d)}}]}function C(a){return function(d){return F(d,a)}}function D(a){return function(d,b){b[a](d)}}var G=CKEDITOR.dtd,H=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:{},cachedChecks:{}};CKEDITOR.filter.instances[this.id]=this;if(a instanceof CKEDITOR.editor){a=this.editor=a;this.customConfig=!0;var d=a.config.allowedContent;!0===d?this.disabled=!0:(d||(this.customConfig=!1),this.allow(d,"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(a,b,e){if(!n(this,a,e))return!1;var g,l;if("string"==typeof a)a=d(a);else if(a instanceof CKEDITOR.style){if(a.toAllowedContentRules)return this.allow(a.toAllowedContentRules(this.editor),b,e);g=a.getDefinition();a={};e=g.attributes;a[g.element]=g={styles:g.styles,requiredStyles:g.styles&&
CKEDITOR.tools.objectKeys(g.styles)};e&&(e=H(e),g.classes=e["class"]?e["class"].split(/\s+/):null,g.requiredClasses=g.classes,delete e["class"],g.attributes=e,g.requiredAttributes=e&&CKEDITOR.tools.objectKeys(e))}else if(CKEDITOR.tools.isArray(a)){for(g=0;g<a.length;++g)l=this.allow(a[g],b,e);return l}c(this,a,b,this.allowedContent,this._.allowedRules);return!0},applyTo:function(a,d,b,e){if(this.disabled)return!1;var c=this,g=[],l=this.editor&&this.editor.config.protectedSource,h,f=!1,k={doFilter:!b,
doTransform:!0,doCallbacks:!0,toHtml:d};a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if("off"==a.attributes["data-cke-filter"])return!1;if(!d||"span"!=a.name||!~CKEDITOR.tools.objectKeys(a.attributes).join("|").indexOf("data-cke-"))if(h=q(c,a,g,k),h&1)f=!0;else if(h&2)return!1}else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var b;a:{var e=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));b=[];var z,w,E;if(l)for(w=0;w<l.length;++w)if((E=e.match(l[w]))&&
E[0].length==e.length){b=!0;break a}e=CKEDITOR.htmlParser.fragment.fromHtml(e);1==e.children.length&&(z=e.children[0]).type==CKEDITOR.NODE_ELEMENT&&q(c,z,b,k);b=!b.length}b||g.push(a)}},null,!0);g.length&&(f=!0);var z;a=[];e=I[e||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];for(var E;b=g.pop();)b.type==CKEDITOR.NODE_ELEMENT?w(b,e,a):b.remove();for(;z=a.pop();)if(b=z.el,b.parent)switch(E=G[b.parent.name]||G.span,z.check){case "it":G.$removeEmpty[b.name]&&!b.children.length?w(b,e,a):r(b)||
w(b,e,a);break;case "el-up":b.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||E[b.name]||w(b,e,a);break;case "parent-down":b.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||E[b.name]||w(b.parent,e,a)}return f},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(a){if(!n(this,a,!0))return!1;"string"==typeof a&&(a=d(a));c(this,a,null,this.disallowedContent,
this._.disallowedRules);return!0},addContentForms:function(a){if(!this.disabled&&a){var d,b,e=[],c;for(d=0;d<a.length&&!c;++d)b=a[d],("string"==typeof b||b instanceof CKEDITOR.style)&&this.check(b)&&(c=b);if(c){for(d=0;d<a.length;++d)e.push(y(a[d],c));this.addTransformations(e)}}},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 d,b;if(!this.disabled&&a){var e=this._.transformations,c;for(c=0;c<a.length;++c){d=a[c];var g=void 0,l=void 0,h=void 0,f=void 0,k=void 0,z=void 0;b=[];for(l=0;l<d.length;++l)h=d[l],"string"==typeof h?(h=h.split(/\s*:\s*/),f=h[0],k=null,z=h[1]):(f=h.check,k=h.left,
z=h.right),g||(g=h,g=g.element?g.element:f?f.match(/^([a-z0-9]+)/i)[0]:g.left.getDefinition().element),k instanceof CKEDITOR.style&&(k=C(k)),b.push({check:f==g?null:f,left:k,right:"string"==typeof z?D(z):z});d=g;e[d]||(e[d]=[]);e[d].push(b)}}},check:function(a,b,c){if(this.disabled)return!0;if(CKEDITOR.tools.isArray(a)){for(var g=a.length;g--;)if(this.check(a[g],b,c))return!0;return!1}var l,h;if("string"==typeof a){h=a+"\x3c"+(!1===b?"0":"1")+(c?"1":"0")+"\x3e";if(h in this._.cachedChecks)return this._.cachedChecks[h];
g=d(a).$1;l=g.styles;var f=g.classes;g.name=g.elements;g.classes=f=f?f.split(/\s*,\s*/):[];g.styles=e(l);g.attributes=e(g.attributes);g.children=[];f.length&&(g.attributes["class"]=f.join(" "));l&&(g.attributes.style=CKEDITOR.tools.writeCssText(g.styles));l=g}else g=a.getDefinition(),l=g.styles,f=g.attributes||{},l&&!CKEDITOR.tools.isEmpty(l)?(l=H(l),f.style=CKEDITOR.tools.writeCssText(l,!0)):l={},l={name:g.element,attributes:f,classes:f["class"]?f["class"].split(/\s+/):[],styles:l,children:[]};var f=
CKEDITOR.tools.clone(l),k=[],z;if(!1!==b&&(z=this._.transformations[l.name])){for(g=0;g<z.length;++g)A(this,l,z[g]);t(l)}q(this,f,k,{doFilter:!0,doTransform:!1!==b,skipRequired:!c,skipFinalValidation:!c});b=0<k.length?!1:CKEDITOR.tools.objectCompare(l.attributes,f.attributes,!0)?!0:!1;"string"==typeof a&&(this._.cachedChecks[h]=b);return b},getAllowedEnterMode:function(){var a=["p","div","br"],d={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(b,e){var c=a.slice(),
g;if(this.check(I[b]))return b;for(e||(c=c.reverse());g=c.pop();)if(this.check(g))return d[g];return CKEDITOR.ENTER_BR}}(),clone:function(){var a=new CKEDITOR.filter,b=CKEDITOR.tools.clone;a.allowedContent=b(this.allowedContent);a._.allowedRules=b(this._.allowedRules);a.disallowedContent=b(this.disallowedContent);a._.disallowedRules=b(this._.disallowedRules);a._.transformations=b(this._.transformations);a.disabled=this.disabled;a.editor=this.editor;return a},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"},z=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,V={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},K=/^cke:(object|embed|param)$/,T=/^(object|embed|param)$/,P;P=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 e=a.attributes[b];e&&(/^\d+$/.test(e)&&(e+="px"),a.styles[d]=e)}delete a.attributes[b]},lengthToAttribute:function(a,b,d){d=d||b;if(!(d in a.attributes)){var e=a.styles[b],c=e&&e.match(/^(\d+)(?:\.\d*)?px$/);c?a.attributes[d]=c[1]:"cke-test"==e&&(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"]},splitBorderShorthand:function(a){if(a.styles.border){var b=CKEDITOR.tools.style.parse.border(a.styles.border);b.color&&(a.styles["border-color"]=b.color);b.style&&(a.styles["border-style"]=b.style);b.width&&(a.styles["border-width"]=b.width);
delete a.styles.border}},listTypeToStyle:function(a){if(a.attributes.type)switch(a.attributes.type){case "a":a.styles["list-style-type"]="lower-alpha";break;case "A":a.styles["list-style-type"]="upper-alpha";break;case "i":a.styles["list-style-type"]="lower-roman";break;case "I":a.styles["list-style-type"]="upper-roman";break;case "1":a.styles["list-style-type"]="decimal";break;default:a.styles["list-style-type"]=a.attributes.type}},splitMarginShorthand:function(a){function b(e){a.styles["margin-top"]=
d[e[0]];a.styles["margin-right"]=d[e[1]];a.styles["margin-bottom"]=d[e[2]];a.styles["margin-left"]=d[e[3]]}if(a.styles.margin){var d=a.styles.margin.match(/(\-?[\.\d]+\w+)/g)||["0px"];switch(d.length){case 1:b([0,0,0,0]);break;case 2:b([0,1,0,1]);break;case 3:b([0,1,2,1]);break;case 4:b([0,1,2,3])}delete a.styles.margin}},matchesStyle:F,transform:function(a,b){if("string"==typeof b)a.name=b;else{var d=b.getDefinition(),e=d.styles,c=d.attributes,g,l,h,f;a.name=d.element;for(g in c)if("class"==g)for(d=
a.classes.join("|"),h=c[g].split(/\s+/);f=h.pop();)-1==d.indexOf(f)&&a.classes.push(f);else a.attributes[g]=c[g];for(l in e)a.styles[l]=e[l]}}}}(),function(){CKEDITOR.focusManager=function(c){if(c.focusManager)return c.focusManager;this.hasFocus=!1;this.currentActive=null;this._={editor:c};return this};CKEDITOR.focusManager._={blurDelay:200};CKEDITOR.focusManager.prototype={focus:function(c){this._.timer&&clearTimeout(this._.timer);c&&(this.currentActive=c);this.hasFocus||this._.locked||((c=CKEDITOR.currentInstance)&&
c.focusManager.blur(1),this.hasFocus=!0,(c=this._.editor.container)&&c.addClass("cke_focus"),this._.editor.fire("focus"))},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(c){function f(){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 b=CKEDITOR.focusManager._.blurDelay;c||!b?f.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;
f.call(this)},b,this)}},add:function(c,f){var b=c.getCustomData("focusmanager");if(!b||b!=this){b&&b.remove(c);var b="focus",a="blur";f&&(CKEDITOR.env.ie?(b="focusin",a="focusout"):CKEDITOR.event.useCapture=1);var h={blur:function(){c.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(c)}};c.on(b,h.focus,this);c.on(a,h.blur,this);f&&(CKEDITOR.event.useCapture=0);c.setCustomData("focusmanager",this);c.setCustomData("focusmanager_handlers",h)}},remove:function(c){c.removeCustomData("focusmanager");
var f=c.removeCustomData("focusmanager_handlers");c.removeListener("blur",f.blur);c.removeListener("focus",f.focus)}}}(),CKEDITOR.keystrokeHandler=function(c){if(c.keystrokeHandler)return c.keystrokeHandler;this.keystrokes={};this.blockedKeystrokes={};this._={editor:c};return this},function(){var c,f=function(a){a=a.data;var b=a.getKeystroke(),f=this.keystrokes[b],m=this._.editor;c=!1===m.fire("key",{keyCode:b,domEvent:a});c||(f&&(c=!1!==m.execCommand(f,{from:"keystrokeHandler"})),c||(c=!!this.blockedKeystrokes[b]));
c&&a.preventDefault(!0);return!c},b=function(a){c&&(c=!1,a.data.preventDefault(!0))};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,az:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,"es-mx":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,oc: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(c,f,b){c&&CKEDITOR.lang.languages[c]||(c=this.detect(f,c));var a=this;f=function(){a[c].dir=a.rtl[c]?"rtl":"ltr";b(c,a[c])};this[c]?f():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+c+".js"),f,this)},detect:function(c,f){var b=this.languages;f=f||navigator.userLanguage||navigator.language||
c;var a=f.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),h=a[1],a=a[2];b[h+"-"+a]?h=h+"-"+a:b[h]||(h=null);CKEDITOR.lang.detect=h?function(){return h}:function(a){return a};return h||c}}}(),CKEDITOR.scriptLoader=function(){var c={},f={};return{load:function(b,a,h,n){var m="string"==typeof b;m&&(b=[b]);h||(h=CKEDITOR);var k=b.length,g=[],e=[],d=function(b){a&&(m?a.call(h,b):a.call(h,g,e))};if(0===k)d(!0);else{var l=function(a,b){(b?g:e).push(a);0>=--k&&(n&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),
d(b))},p=function(a,b){c[a]=1;var d=f[a];delete f[a];for(var e=0;e<d.length;e++)d[e](a,b)},q=function(b){if(c[b])l(b,!0);else{var d=f[b]||(f[b]=[]);d.push(l);if(!(1<d.length)){var e=new CKEDITOR.dom.element("script");e.setAttributes({type:"text/javascript",src:b});a&&(CKEDITOR.env.ie&&(8>=CKEDITOR.env.version||CKEDITOR.env.ie9Compat)?e.$.onreadystatechange=function(){if("loaded"==e.$.readyState||"complete"==e.$.readyState)e.$.onreadystatechange=null,p(b,!0)}:(e.$.onload=function(){setTimeout(function(){p(b,
!0)},0)},e.$.onerror=function(){p(b,!1)}));e.appendTo(CKEDITOR.document.getHead())}}};n&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var u=0;u<k;u++)q(b[u])}},queue:function(){function b(){var b;(b=a[0])&&this.load(b.scriptUrl,b.callback,CKEDITOR,0)}var a=[];return function(c,f){var m=this;a.push({scriptUrl:c,callback:function(){f&&f.apply(this,arguments);a.shift();b.call(m)}});1==a.length&&b.call(this)}}()}}(),CKEDITOR.resourceManager=function(c,f){this.basePath=c;this.fileName=
f;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(c,f){if(this.registered[c])throw Error('[CKEDITOR.resourceManager.add] The resource name "'+c+'" is already registered.');var b=this.registered[c]=f||{};b.name=c;b.path=this.getPath(c);CKEDITOR.fire(c+CKEDITOR.tools.capitalize(this.fileName)+"Ready",b);return this.get(c)},get:function(c){return this.registered[c]||null},getPath:function(c){var f=this.externals[c];return CKEDITOR.getUrl(f&&
f.dir||this.basePath+c+"/")},getFilePath:function(c){var f=this.externals[c];return CKEDITOR.getUrl(this.getPath(c)+(f?f.file:this.fileName+".js"))},addExternal:function(c,f,b){c=c.split(",");for(var a=0;a<c.length;a++){var h=c[a];b||(f=f.replace(/[^\/]+$/,function(a){b=a;return""}));this.externals[h]={dir:f,file:b||this.fileName+".js"}}},load:function(c,f,b){CKEDITOR.tools.isArray(c)||(c=c?[c]:[]);for(var a=this.loaded,h=this.registered,n=[],m={},k={},g=0;g<c.length;g++){var e=c[g];if(e)if(a[e]||
h[e])k[e]=this.get(e);else{var d=this.getFilePath(e);n.push(d);d in m||(m[d]=[]);m[d].push(e)}}CKEDITOR.scriptLoader.load(n,function(d,e){if(e.length)throw Error('[CKEDITOR.resourceManager.load] Resource name "'+m[e[0]].join(",")+'" was not found at "'+e[0]+'".');for(var c=0;c<d.length;c++)for(var g=m[d[c]],h=0;h<g.length;h++){var r=g[h];k[r]=this.get(r);a[r]=1}f.call(b,k)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,
function(c){var f={};return function(b,a,h){var n={},m=function(b){c.call(this,b,function(b){CKEDITOR.tools.extend(n,b);var e=[],d;for(d in b){var c=b[d],k=c&&c.requires;if(!f[d]){if(c.icons)for(var q=c.icons.split(","),u=q.length;u--;)CKEDITOR.skin.addIcon(q[u],c.path+"icons/"+(CKEDITOR.env.hidpi&&c.hidpi?"hidpi/":"")+q[u]+".png");f[d]=1}if(k)for(k.split&&(k=k.split(",")),c=0;c<k.length;c++)n[k[c]]||e.push(k[c])}if(e.length)m.call(this,e);else{for(d in n)c=n[d],c.onLoad&&!c.onLoad._called&&(!1===
c.onLoad()&&delete n[d],c.onLoad._called=1);a&&a.call(h||window,n)}},this)};m.call(this,b)}}),CKEDITOR.plugins.setLang=function(c,f,b){var a=this.get(c);c=a.langEntries||(a.langEntries={});a=a.lang||(a.lang=[]);a.split&&(a=a.split(","));-1==CKEDITOR.tools.indexOf(a,f)&&a.push(f);c[f]=b},CKEDITOR.ui=function(c){if(c.ui)return c.ui;this.items={};this.instances={};this.editor=c;this._={handlers:{}};return this},CKEDITOR.ui.prototype={add:function(c,f,b){b.name=c.toLowerCase();var a=this.items[c]={type:f,
command:b.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(a,b)},get:function(c){return this.instances[c]},create:function(c){var f=this.items[c],b=f&&this._.handlers[f.type],a=f&&f.command&&this.editor.getCommand(f.command),b=b&&b.create.apply(this,f.args);this.instances[c]=b;a&&a.uiItems.push(b);b&&!b.type&&(b.type=f.type);return b},addHandler:function(c,f){this._.handlers[c]=f},space:function(c){return CKEDITOR.document.getById(this.spaceId(c))},spaceId:function(c){return this.editor.id+
"_"+c}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function c(d,e,c){CKEDITOR.event.call(this);d=d&&CKEDITOR.tools.clone(d);if(void 0!==e){if(!(e instanceof CKEDITOR.dom.element))throw Error("Expect element of type CKEDITOR.dom.element.");if(!c)throw Error("One of the element modes must be specified.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&c==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!b(e,c))throw Error('The specified element mode is not supported on element: "'+
e.getName()+'".');this.element=e;this.elementMode=c;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(e.getId()||e.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",a);this.on("selectionChange",function(a){n(this,a.data.path)});this.on("activeFilterChange",function(){n(this,this.elementPath(),!0)});this.on("mode",a);this.on("instanceReady",function(){if(this.config.startupFocus){if("end"===this.config.startupFocus){var a=this.createRange();a.selectNodeContents(this.editable());a.shrink(CKEDITOR.SHRINK_ELEMENT,!0);a.collapse();this.getSelection().selectRanges([a])}this.focus()}});CKEDITOR.fire("instanceCreated",null,this);CKEDITOR.add(this);
CKEDITOR.tools.setTimeout(function(){"destroyed"!==this.status?k(this,d):CKEDITOR.warn("editor-incorrect-destroy")},0,this)}function f(){do var a="editor"+ ++u;while(CKEDITOR.instances[a]);return a}function b(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 a(){var a=this.commands,b;for(b in a)h(this,a[b])}function h(a,b){b[b.startDisabled?"disable":a.readOnly&&!b.readOnly?"disable":
b.modes[a.mode]?"enable":"disable"]()}function n(a,b,d){if(b){var e,c,g=a.commands;for(c in g)e=g[c],(d||e.contextSensitive)&&e.refresh(a,b)}}function m(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&&m(a)||a.fireOnce("customConfigLoaded")):CKEDITOR.scriptLoader.queue(b,function(){d.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};m(a)});return!0}function k(a,b){a.on("customConfigLoaded",
function(){if(b){if(b.on)for(var d in b.on)a.on(d,b.on[d]);CKEDITOR.tools.extend(a.config,b,!0);delete a.config.on}d=a.config;a.readOnly=d.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=d.tabIndex||a.element&&a.element.getAttribute("tabindex")||0;a.activeEnterMode=a.enterMode=a.blockless?CKEDITOR.ENTER_BR:d.enterMode;a.activeShiftEnterMode=a.shiftEnterMode=a.blockless?CKEDITOR.ENTER_BR:d.shiftEnterMode;d.skin&&(CKEDITOR.skinName=d.skin);a.fireOnce("configLoaded");a.dataProcessor=new CKEDITOR.htmlDataProcessor(a);a.filter=a.activeFilter=new CKEDITOR.filter(a);g(a)});b&&null!=b.customConfig&&(a.config.customConfig=b.customConfig);
m(a)||a.fireOnce("customConfigLoaded")}function g(a){CKEDITOR.skin.loadPart("editor",function(){e(a)})}function e(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(b,e){var c=a.config.title;a.langCode=b;a.lang=CKEDITOR.tools.prototypedCopy(e);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");
d(a)})}function d(a){a.getStylesSet(function(b){a.once("loaded",function(){a.fire("stylesSet",{styles:b})},null,null,1);l(a)})}function l(a){var b=a.config,d=b.plugins,e=b.extraPlugins,c=b.removePlugins;if(e)var g=new RegExp("(?:^|,)(?:"+e.replace(/\s*,\s*/g,"|")+")(?\x3d,|$)","g"),d=d.replace(g,""),d=d+(","+e);if(c)var l=new RegExp("(?:^|,)(?:"+c.replace(/\s*,\s*/g,"|")+")(?\x3d,|$)","g"),d=d.replace(l,"");CKEDITOR.env.air&&(d+=",adobeair");CKEDITOR.plugins.load(d.split(","),function(d){var e=[],
c=[],g=[];a.plugins=d;for(var h in d){var f=d[h],k=f.lang,w=null,E=f.requires,z;CKEDITOR.tools.isArray(E)&&(E=E.join(","));if(E&&(z=E.match(l)))for(;E=z.pop();)CKEDITOR.error("editor-plugin-required",{plugin:E.replace(",",""),requiredBy:h});k&&!a.lang[h]&&(k.split&&(k=k.split(",")),0<=CKEDITOR.tools.indexOf(k,a.langCode)?w=a.langCode:(w=a.langCode.replace(/-.*/,""),w=w!=a.langCode&&0<=CKEDITOR.tools.indexOf(k,w)?w:0<=CKEDITOR.tools.indexOf(k,"en")?"en":k[0]),f.langEntries&&f.langEntries[w]?(a.lang[h]=
f.langEntries[w],w=null):g.push(CKEDITOR.getUrl(f.path+"lang/"+w+".js")));c.push(w);e.push(f)}CKEDITOR.scriptLoader.load(g,function(){for(var d=["beforeInit","init","afterInit"],g=0;g<d.length;g++)for(var l=0;l<e.length;l++){var h=e[l];0===g&&c[l]&&h.lang&&h.langEntries&&(a.lang[h.name]=h.langEntries[c[l]]);if(h[d[g]])h[d[g]](a)}a.fireOnce("pluginsLoaded");b.keystrokes&&a.setKeystroke(a.config.keystrokes);for(l=0;l<a.config.blockedKeystrokes.length;l++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[l]]=
1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)})})}function p(){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}function q(a,b){function d(a){var b=a.startContainer,e=a.endContainer;return b.is&&(b.is("tr")||b.is("td")&&b.equals(e)&&a.endOffset===b.getChildCount())?!0:!1}function e(a){var b=a.startContainer;
return b.is("tr")?a.cloneContents():b.clone(!0)}for(var c=new CKEDITOR.dom.documentFragment,g,l,h,f=0;f<a.length;f++){var k=a[f],n=k.startContainer.getAscendant("tr",!0);d(k)?(g||(g=n.getAscendant("table").clone(),g.append(n.getAscendant({thead:1,tbody:1,tfoot:1}).clone()),c.append(g),g=g.findOne("thead, tbody, tfoot")),l&&l.equals(n)||(l=n,h=n.clone(),g.append(h)),h.append(e(k))):c.append(k.cloneContents())}return g?c:b.getHtmlFromRange(a[0])}c.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=
c;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&&h(this,d);return this.commands[a]=d},_attachToForm:function(){function a(b){d.updateElement();d._.required&&!e.getValue()&&!1===d.fire("required")&&b.data.preventDefault()}function b(a){return!!(a&&a.call&&a.apply)}var d=this,e=d.element,c=new CKEDITOR.dom.element(e.$.form);e.is("textarea")&&c&&(c.on("submit",a),b(c.$.submit)&&(c.$.submit=CKEDITOR.tools.override(c.$.submit,
function(b){return function(){a();b.apply?b.apply(this):b()}})),d.on("destroy",function(){c.removeListener("submit",a)}))},destroy:function(a){this.fire("beforeDestroy");!a&&p.call(this);this.editable(null);this.filter&&(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),e={name:a,commandData:b||{},command:d};return d&&d.state!=CKEDITOR.TRISTATE_DISABLED&&!1!==this.fire("beforeCommandExec",e)&&(e.returnValue=d.exec(e.commandData),!d.async&&!1!==this.fire("afterCommandExec",e))?e.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 e=!0,
c=b;b&&"object"==typeof b&&(d=b.internal,c=b.callback,e=!b.noSnapshot);!d&&e&&this.fire("saveSnapshot");if(c||!d)this.once("dataReady",function(a){!d&&e&&this.fire("saveSnapshot");c&&c.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=q(d,b);return a?b.getHtml():b},extractSelectedHtml:function(a,b){var d=this.editable(),e=this.getSelection().getRanges(),c=new CKEDITOR.dom.documentFragment,g;if(!d||0===e.length)return null;for(g=0;g<e.length;g++)c.append(d.extractHtmlFromRange(e[g],
b));b||this.getSelection().selectRanges([e[0]]);return a?c.getHtml():c},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return"ready"==this.status&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return p.call(this)},setKeystroke:function(){for(var a=this.keystrokeHandler.keystrokes,b=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],d,e,c=b.length;c--;)d=b[c],e=0,CKEDITOR.tools.isArray(d)&&
(e=d[1],d=d[0]),e?a[d]=e:delete a[d]},getCommandKeystroke:function(a){if(a="string"===typeof a?this.getCommand(a):a){var b=CKEDITOR.tools.object.findKey(this.commands,a),d=this.keystrokeHandler.keystrokes,e;if(a.fakeKeystroke)return a.fakeKeystroke;for(e in d)if(d.hasOwnProperty(e)&&d[e]==b)return e}return null},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 c=/([\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 a,h,n=0,m;a=this._.htmlPartsRegex.exec(b);){h=a.index;if(h>n)if(n=b.substring(n,h),m)m.push(n);else this.onText(n);n=this._.htmlPartsRegex.lastIndex;if(h=a[1])if(h=h.toLowerCase(),m&&CKEDITOR.dtd.$cdata[h]&&(this.onCDATA(m.join("")),m=null),!m){this.onTagClose(h);continue}if(m)m.push(a[0]);else if(h=
a[3]){if(h=h.toLowerCase(),!/="/.test(h)){var k={},g,e=a[4];a=!!a[5];if(e)for(;g=c.exec(e);){var d=g[1].toLowerCase();g=g[2]||g[3]||g[4]||"";k[d]=!g&&f[d]?d:CKEDITOR.tools.htmlDecodeAttr(g)}this.onTagOpen(h,k,a);!m&&CKEDITOR.dtd.$cdata[h]&&(m=[])}}else if(h=a[2])this.onComment(h)}if(b.length>n)this.onText(b.substring(n,b.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(c){this._.output.push("\x3c",c)},openTagClose:function(c,
f){f?this._.output.push(" /\x3e"):this._.output.push("\x3e")},attribute:function(c,f){"string"==typeof f&&(f=CKEDITOR.tools.htmlEncodeAttr(f));this._.output.push(" ",c,'\x3d"',f,'"')},closeTag:function(c){this._.output.push("\x3c/",c,"\x3e")},text:function(c){this._.output.push(c)},comment:function(c){this._.output.push("\x3c!--",c,"--\x3e")},write:function(c){this._.output.push(c)},reset:function(){this._.output=[];this._.indent=!1},getHtml:function(c){var f=this._.output.join("");c&&this.reset();
return f}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var c=this.parent.children,f=CKEDITOR.tools.indexOf(c,this),b=this.previous,a=this.next;b&&(b.next=a);a&&(a.previous=b);c.splice(f,1);this.parent=null},replaceWith:function(c){var f=this.parent.children,b=CKEDITOR.tools.indexOf(f,this),a=c.previous=this.previous,h=c.next=this.next;a&&(a.next=c);h&&(h.previous=c);f[b]=c;c.parent=this.parent;this.parent=null},insertAfter:function(c){var f=
c.parent.children,b=CKEDITOR.tools.indexOf(f,c),a=c.next;f.splice(b+1,0,this);this.next=c.next;this.previous=c;c.next=this;a&&(a.previous=this);this.parent=c.parent},insertBefore:function(c){var f=c.parent.children,b=CKEDITOR.tools.indexOf(f,c);f.splice(b,0,this);this.next=c;(this.previous=c.previous)&&(c.previous.next=this);c.previous=this;this.parent=c.parent},getAscendant:function(c){var f="function"==typeof c?c:"string"==typeof c?function(a){return a.name==c}:function(a){return a.name in c},b=
this.parent;for(;b&&b.type==CKEDITOR.NODE_ELEMENT;){if(f(b))return b;b=b.parent}return null},wrapWith:function(c){this.replaceWith(c);c.add(this);return c},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(c){return c||{}}}}(),"use strict",CKEDITOR.htmlParser.comment=function(c){this.value=c;this._={isBlockLike:!1}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(c,
f){var b=this.value;if(!(b=c.onComment(f,b,this)))return this.remove(),!1;if("string"!=typeof b)return this.replaceWith(b),!1;this.value=b;return!0},writeHtml:function(c,f){f&&this.filter(f);c.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(c){this.value=c;this._={isBlockLike:!1}};CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(c,f){if(!(this.value=c.onText(f,this.value,this)))return this.remove(),
!1},writeHtml:function(c,f){f&&this.filter(f);c.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(c){this.value=c};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(c){c.write(this.value)}})}(),"use strict",CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:!0,hasInlineStarted:!1}},function(){function c(a){return a.attributes["data-cke-survive"]?
!1:"a"==a.name&&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},a=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(n,m,k){function g(a){var b;if(0<r.length)for(var d=0;d<r.length;d++){var c=
r[d],g=c.name,h=CKEDITOR.dtd[g],f=x.name&&CKEDITOR.dtd[x.name];f&&!f[g]||a&&h&&!h[a]&&CKEDITOR.dtd[a]?g==x.name&&(l(x,x.parent,1),d--):(b||(e(),b=1),c=c.clone(),c.parent=x,x=c,r.splice(d,1),d--)}}function e(){for(;v.length;)l(v.shift(),x)}function d(a){if(a._.isBlockLike&&"pre"!=a.name&&"textarea"!=a.name){var b=a.children.length,d=a.children[b-1],e;d&&d.type==CKEDITOR.NODE_TEXT&&((e=CKEDITOR.tools.rtrim(d.value))?d.value=e:a.children.length=b-1)}}function l(a,b,e){b=b||x||t;var g=x;void 0===a.previous&&
(p(b,a)&&(x=b,u.onTagOpen(k,{}),a.returnPoint=b=x),d(a),c(a)&&!a.children.length||b.add(a),"pre"==a.name&&(w=!1),"textarea"==a.name&&(B=!1));a.returnPoint?(x=a.returnPoint,delete a.returnPoint):x=e?b:g}function p(a,b){if((a==t||"body"==a.name)&&k&&(!a.name||CKEDITOR.dtd[a.name][k])){var d,e;return(d=b.attributes&&(e=b.attributes["data-cke-real-element-type"])?e:b.name)&&d in CKEDITOR.dtd.$inline&&!(d in CKEDITOR.dtd.head)&&!b.isOrphan||b.type==CKEDITOR.NODE_TEXT}}function q(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 u=new CKEDITOR.htmlParser,t=m instanceof CKEDITOR.htmlParser.element?m:"string"==typeof m?new CKEDITOR.htmlParser.element(m):new CKEDITOR.htmlParser.fragment,r=[],v=[],x=t,B="textarea"==t.name,w="pre"==t.name;u.onTagOpen=function(d,h,k,n){h=new CKEDITOR.htmlParser.element(d,h);h.isUnknown&&k&&(h.isEmpty=!0);h.isOptionalClose=n;if(c(h))r.push(h);else{if("pre"==d)w=!0;else{if("br"==d&&w){x.add(new CKEDITOR.htmlParser.text("\n"));
return}"textarea"==d&&(B=!0)}if("br"==d)v.push(h);else{for(;!(n=(k=x.name)?CKEDITOR.dtd[k]||(x._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):a,h.isUnknown||x.isUnknown||n[d]);)if(x.isOptionalClose)u.onTagClose(k);else if(d in b&&k in b)k=x.children,(k=k[k.length-1])&&"li"==k.name||l(k=new CKEDITOR.htmlParser.element("li"),x),!h.returnPoint&&(h.returnPoint=x),x=k;else if(d in CKEDITOR.dtd.$listItem&&!q(d,k))u.onTagOpen("li"==d?"ul":"dl",{},0,1);else if(k in f&&!q(d,k))!h.returnPoint&&(h.returnPoint=
x),x=x.parent;else if(k in CKEDITOR.dtd.$inline&&r.unshift(x),x.parent)l(x,x.parent,1);else{h.isOrphan=1;break}g(d);e();h.parent=x;h.isEmpty?l(h):x=h}}};u.onTagClose=function(a){for(var b=r.length-1;0<=b;b--)if(a==r[b].name){r.splice(b,1);return}for(var d=[],c=[],g=x;g!=t&&g.name!=a;)g._.isBlockLike||c.unshift(g),d.push(g),g=g.returnPoint||g.parent;if(g!=t){for(b=0;b<d.length;b++){var h=d[b];l(h,h.parent)}x=g;g._.isBlockLike&&e();l(g,g.parent);g==x&&(x=x.parent);r=r.concat(c)}"body"==a&&(k=!1)};u.onText=
function(b){if(!(x._.hasInlineStarted&&!v.length||w||B)&&(b=CKEDITOR.tools.ltrim(b),0===b.length))return;var d=x.name,c=d?CKEDITOR.dtd[d]||(x._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):a;if(!B&&!c["#"]&&d in f)u.onTagOpen(h[d]||""),u.onText(b);else{e();g();w||B||(b=b.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));b=new CKEDITOR.htmlParser.text(b);if(p(x,b))this.onTagOpen(k,{},0,1);x.add(b)}};u.onCDATA=function(a){x.add(new CKEDITOR.htmlParser.cdata(a))};u.onComment=function(a){e();g();x.add(new CKEDITOR.htmlParser.comment(a))};
u.parse(n);for(e();x!=t;)l(x,x.parent,1);d(t);return t};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(a,b){isNaN(b)&&(b=this.children.length);var c=0<b?this.children[b-1]:null;if(c){if(a._.isBlockLike&&c.type==CKEDITOR.NODE_TEXT&&(c.value=CKEDITOR.tools.rtrim(c.value),0===c.value.length)){this.children.pop();this.add(a);return}c.next=a}a.previous=c;a.parent=this;this.children.splice(b,0,a);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,!1,b)},filterChildren:function(a,b,c){if(this.childrenFilteredBy!=a.id){c=this.getFilterContext(c);if(b&&!this.parent)a.onRoot(c,this);this.childrenFilteredBy=a.id;for(b=0;b<this.children.length;b++)!1===this.children[b].filter(a,c)&&b--}},writeHtml:function(a,b){b&&this.filter(b);this.writeChildrenHtml(a)},writeChildrenHtml:function(a,b,c){var g=this.getFilterContext();
if(c&&!this.parent&&b)b.onRoot(g,this);b&&this.filterChildren(b,!1,g);b=0;c=this.children;for(g=c.length;b<g;b++)c[b].writeHtml(a)},forEach:function(a,b,c){if(!(c||b&&this.type!=b))var g=a(this);if(!1!==g){c=this.children;for(var e=0;e<c.length;e++)g=c[e],g.type==CKEDITOR.NODE_ELEMENT?g.forEach(a,b):b&&g.type!=b||a(g)}},getFilterContext:function(a){return a||{}}}}(),"use strict",function(){function c(){this.rules=[]}function f(b,a,h,f){var m,k;for(m in a)(k=b[m])||(k=b[m]=new c),k.add(a[m],h,f)}CKEDITOR.htmlParser.filter=
CKEDITOR.tools.createClass({$:function(b){this.id=CKEDITOR.tools.getNextNumber();this.elementNameRules=new c;this.attributeNameRules=new c;this.elementsRules={};this.attributesRules={};this.textRules=new c;this.commentRules=new c;this.rootRules=new c;b&&this.addRules(b,10)},proto:{addRules:function(b,a){var c;"number"==typeof a?c=a:a&&"priority"in a&&(c=a.priority);"number"!=typeof c&&(c=10);"object"!=typeof a&&(a={});b.elementNames&&this.elementNameRules.addMany(b.elementNames,c,a);b.attributeNames&&
this.attributeNameRules.addMany(b.attributeNames,c,a);b.elements&&f(this.elementsRules,b.elements,c,a);b.attributes&&f(this.attributesRules,b.attributes,c,a);b.text&&this.textRules.add(b.text,c,a);b.comment&&this.commentRules.add(b.comment,c,a);b.root&&this.rootRules.add(b.root,c,a)},applyTo:function(b){b.filter(this)},onElementName:function(b,a){return this.elementNameRules.execOnName(b,a)},onAttributeName:function(b,a){return this.attributeNameRules.execOnName(b,a)},onText:function(b,a,c){return this.textRules.exec(b,
a,c)},onComment:function(b,a,c){return this.commentRules.exec(b,a,c)},onRoot:function(b,a){return this.rootRules.exec(b,a)},onElement:function(b,a){for(var c=[this.elementsRules["^"],this.elementsRules[a.name],this.elementsRules.$],f,m=0;3>m;m++)if(f=c[m]){f=f.exec(b,a,this);if(!1===f)return null;if(f&&f!=a)return this.onNode(b,f);if(a.parent&&!a.name)break}return a},onNode:function(b,a){var c=a.type;return c==CKEDITOR.NODE_ELEMENT?this.onElement(b,a):c==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(b,
a.value)):c==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(b,a.value)):null},onAttribute:function(b,a,c,f){return(c=this.attributesRules[c])?c.exec(b,f,a,this):f}}});CKEDITOR.htmlParser.filterRulesGroup=c;c.prototype={add:function(b,a,c){this.rules.splice(this.findIndex(a),0,{value:b,priority:a,options:c})},addMany:function(b,a,c){for(var f=[this.findIndex(a),0],m=0,k=b.length;m<k;m++)f.push({value:b[m],priority:a,options:c});this.rules.splice.apply(this.rules,f)},findIndex:function(b){for(var a=
this.rules,c=a.length-1;0<=c&&b<a[c].priority;)c--;return c+1},exec:function(b,a){var c=a instanceof CKEDITOR.htmlParser.node||a instanceof CKEDITOR.htmlParser.fragment,f=Array.prototype.slice.call(arguments,1),m=this.rules,k=m.length,g,e,d,l;for(l=0;l<k;l++)if(c&&(g=a.type,e=a.name),d=m[l],!(b.nonEditable&&!d.options.applyToAll||b.nestedEditable&&d.options.excludeNestedEditable)){d=d.value.apply(null,f);if(!1===d||c&&d&&(d.name!=e||d.type!=g))return d;null!=d&&(f[0]=a=d)}return a},execOnName:function(b,
a){for(var c=0,f=this.rules,m=f.length,k;a&&c<m;c++)k=f[c],b.nonEditable&&!k.options.applyToAll||b.nestedEditable&&k.options.excludeNestedEditable||(a=a.replace(k.value[0],k.value[1]));return a}}}(),function(){function c(d,e){function c(a){return a||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function g(d,e){return function(g){if(g.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var h=[],f=b(g),z,E;if(f)for(l(f,1)&&h.push(f);f;)n(f)&&
(z=a(f))&&l(z)&&((E=a(z))&&!n(E)?h.push(z):(c(k).insertAfter(z),z.remove())),f=f.previous;for(f=0;f<h.length;f++)h[f].remove();if(h=!d||!1!==("function"==typeof e?e(g):e))k||CKEDITOR.env.needsBrFiller||g.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT?k||CKEDITOR.env.needsBrFiller||!(7<document.documentMode||g.name in CKEDITOR.dtd.tr||g.name in CKEDITOR.dtd.$listItem)?(h=b(g),h=!h||"form"==g.name&&"input"==h.name):h=!1:h=!1;h&&g.add(c(d))}}}function l(a,b){if((!k||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(r))&&(d.index&&((new CKEDITOR.htmlParser.text(a.value.substring(0,d.index))).insertBefore(a),a.value=d[0]),!CKEDITOR.env.needsBrFiller&&k&&(!b||a.parent.name in z)||!k&&((d=a.previous)&&"br"==d.name||!d||n(d)))?!0:!1}var f={elements:{}},k="html"==e,z=CKEDITOR.tools.extend({},w),E;for(E in z)"#"in x[E]||delete z[E];for(E in z)f.elements[E]=g(k,d.config.fillEmptyBlocks);f.root=g(k,!1);f.elements.br=
function(b){return function(d){if(d.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var e=d.attributes;if("data-cke-bogus"in e||"data-cke-eol"in e)delete e["data-cke-bogus"];else{for(e=d.next;e&&h(e);)e=e.next;var g=a(d);!e&&n(d.parent)?m(d.parent,c(b)):n(e)&&g&&!n(g)&&c(b).insertBefore(e)}}}}(k);return f}function f(a,b){return a!=CKEDITOR.ENTER_BR&&!1!==b?a==CKEDITOR.ENTER_DIV?"div":"p":!1}function b(a){for(a=a.children[a.children.length-1];a&&h(a);)a=a.previous;return a}function a(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 n(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in w||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function m(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 g(a){a=a.attributes;switch(a["data-cke-editable"]){case "true":a.contenteditable="true";break;case "1":delete a.contenteditable}}function e(a){return a.replace(D,function(a,b,d){return"\x3c"+b+d.replace(G,function(a,b){return H.test(b)&&-1==d.indexOf("data-cke-saved-"+b)?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a:a})+"\x3e"})}function d(a,b){return a.replace(b,function(a,b,d){0===a.indexOf("\x3ctextarea")&&(a=b+q(d).replace(/</g,"\x26lt;").replace(/>/g,
"\x26gt;")+"\x3c/textarea\x3e");return"\x3ccke:encoded\x3e"+encodeURIComponent(a)+"\x3c/cke:encoded\x3e"})}function l(a){return a.replace(N,function(a,b){return decodeURIComponent(b)})}function p(a){return a.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,function(a){return"\x3c!--"+v+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\x3e"})}function q(a){return a.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(a,b){return decodeURIComponent(b)})}function u(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 t(a,b){var d=[],e=b.config.protectedSource,c=b._.dataStore||(b._.dataStore={id:1}),g=/<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g,e=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(e);a=a.replace(/\x3c!--[\s\S]*?--\x3e/g,function(a){return"\x3c!--{cke_tempcomment}"+(d.push(a)-
1)+"--\x3e"});for(var l=0;l<e.length;l++)a=a.replace(e[l],function(a){a=a.replace(g,function(a,b,e){return d[e]});return/cke_temp(comment)?/.test(a)?a:"\x3c!--{cke_temp}"+(d.push(a)-1)+"--\x3e"});a=a.replace(g,function(a,b,e){return"\x3c!--"+v+(b?"{C}":"")+encodeURIComponent(d[e]).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){c[c.id]=
decodeURIComponent(b);return"{cke_protected_"+c.id++ +"}"})});return a=a.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(a,d,e,c){return"\x3c"+d+e+"\x3e"+u(q(c),b)+"\x3c/"+d+"\x3e"})}CKEDITOR.htmlDataProcessor=function(a){var b,g,h=this;this.editor=a;this.dataFilter=b=new CKEDITOR.htmlParser.filter;this.htmlFilter=g=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;b.addRules(A);b.addRules(F,{applyToAll:!0});b.addRules(c(a,"data"),{applyToAll:!0});
g.addRules(y);g.addRules(C,{applyToAll:!0});g.addRules(c(a,"html"),{applyToAll:!0});a.on("toHtml",function(b){b=b.data;var c=b.dataValue,g,c=t(c,a),c=d(c,I),c=e(c),c=d(c,J),c=c.replace(E,"$1cke:$2"),c=c.replace(V,"\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");g=b.context||a.editable().getName();var h;CKEDITOR.env.ie&&9>CKEDITOR.env.version&&"pre"==g&&(g="div",c="\x3cpre\x3e"+c+"\x3c/pre\x3e",
h=1);g=a.document.createElement(g);g.setHtml("a"+c);c=g.getHtml().substr(1);c=c.replace(new RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");h&&(c=c.replace(/^<pre>|<\/pre>$/gi,""));c=c.replace(z,"$1$2");c=l(c);c=q(c);g=!1===b.fixForBody?!1:f(b.enterMode,a.config.autoParagraph);c=CKEDITOR.htmlParser.fragment.fromHtml(c,b.context,g);g&&(h=c,!h.children.length&&CKEDITOR.dtd[h.name][g]&&(g=new CKEDITOR.htmlParser.element(g),h.add(g)));b.dataValue=c},null,null,5);a.on("toHtml",function(b){b.data.filter.applyTo(b.data.dataValue,
!0,b.data.dontFilter,b.data.enterMode)&&a.fire("dataFiltered")},null,null,6);a.on("toHtml",function(a){a.data.dataValue.filterChildren(h.dataFilter,!0)},null,null,10);a.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=p(b)},null,null,15);a.on("toDataFormat",function(b){var d=b.data.dataValue;b.data.enterMode!=CKEDITOR.ENTER_BR&&(d=d.replace(/^<br *\/?>/i,""));b.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(d,
b.data.context,f(b.data.enterMode,a.config.autoParagraph))},null,null,5);a.on("toDataFormat",function(a){a.data.dataValue.filterChildren(h.htmlFilter,!0)},null,null,10);a.on("toDataFormat",function(a){a.data.filter.applyTo(a.data.dataValue,!1,!0)},null,null,11);a.on("toDataFormat",function(b){var d=b.data.dataValue,e=h.writer;e.reset();d.writeChildrenHtml(e);d=e.getHtml(!0);d=q(d);d=u(d,a);b.data.dataValue=d},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,b,d,e){var c=this.editor,
g,l,h,f;b&&"object"==typeof b?(g=b.context,d=b.fixForBody,e=b.dontFilter,l=b.filter,h=b.enterMode,f=b.protectedWhitespaces):g=b;g||null===g||(g=c.editable().getName());return c.fire("toHtml",{dataValue:a,context:g,fixForBody:d,dontFilter:e,filter:l||c.filter,enterMode:h||c.enterMode,protectedWhitespaces:f}).dataValue},toDataFormat:function(a,b){var d,e,c;b&&(d=b.context,e=b.filter,c=b.enterMode);d||null===d||(d=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:a,
filter:e||this.editor.filter,context:d,enterMode:c||this.editor.enterMode}).dataValue}};var r=/(?:&nbsp;|\xa0)$/,v="{cke_protected}",x=CKEDITOR.dtd,B="caption colgroup col thead tfoot tbody".split(" "),w=CKEDITOR.tools.extend({},x.$blockLimit,x.$block),A={elements:{input:k,textarea:k}},F={attributeNames:[[/^on/,"data-cke-pa-on"],[/^srcdoc/,"data-cke-pa-srcdoc"],[/^data-cke-expando$/,""]],elements:{iframe:function(a){if(a.attributes&&a.attributes.src){var b=a.attributes.src.toLowerCase().replace(/[^a-z]/gi,
"");if(0===b.indexOf("javascript")||0===b.indexOf("data"))a.attributes["data-cke-pa-src"]=a.attributes.src,delete a.attributes.src}}}},y={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}}},C={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"],e,c=0;c<d.length;c++)e="data-cke-saved-"+d[c],e in b&&delete b[d[c]]}return a},table:function(a){a.children.slice(0).sort(function(a,b){var d,e;a.type==CKEDITOR.NODE_ELEMENT&&b.type==a.type&&(d=CKEDITOR.tools.indexOf(B,a.name),e=CKEDITOR.tools.indexOf(B,b.name));-1<d&&-1<e&&d!=e||(d=a.parent?a.getIndex():-1,e=b.parent?b.getIndex():-1);return d>e?
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&&m(a,b=new CKEDITOR.htmlParser.text);
b.value=a.attributes["data-cke-title"]||""},input:g,textarea:g},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,""))||!1}}};CKEDITOR.env.ie&&(C.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,H=/^(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,z=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,V=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),"use strict",CKEDITOR.htmlParser.element=function(c,f){this.name=c;this.attributes=f||{};this.children=[];var b=c||"",a=b.match(/^cke:(.*)/);a&&(b=a[1]);b=!!(CKEDITOR.dtd.$nonBodyContent[b]||CKEDITOR.dtd.$block[b]||CKEDITOR.dtd.$listItem[b]||
CKEDITOR.dtd.$tableContent[b]||CKEDITOR.dtd.$nonEditable[b]||"br"==b);this.isEmpty=!!CKEDITOR.dtd.$empty[c];this.isUnknown=!CKEDITOR.dtd[c];this._={isBlockLike:b,hasInlineStarted:this.isEmpty||!b}},CKEDITOR.htmlParser.cssStyle=function(c){var f={};((c instanceof CKEDITOR.htmlParser.element?c.attributes.style:c)||"").replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(b,a,c){"font-family"==a&&(c=c.replace(/["']/g,""));f[a.toLowerCase()]=c});return{rules:f,populate:function(b){var a=
this.toString();a&&(b instanceof CKEDITOR.dom.element?b.setAttribute("style",a):b instanceof CKEDITOR.htmlParser.element?b.attributes.style=a:b.style=a)},toString:function(){var b=[],a;for(a in f)f[a]&&b.push(a,":",f[a],";");return b.join("")}}},function(){function c(a){return function(b){return b.type==CKEDITOR.NODE_ELEMENT&&("string"==typeof a?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 c=this,f,k;b=c.getFilterContext(b);if(b.off)return!0;if(!c.parent)a.onRoot(b,c);for(;;){f=c.name;if(!(k=a.onElementName(b,f)))return this.remove(),!1;c.name=k;if(!(c=a.onElement(b,c)))return this.remove(),!1;if(c!==this)return this.replaceWith(c),!1;if(c.name==f)break;if(c.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(c),
!1;if(!c.name)return this.replaceWithChildren(),!1}f=c.attributes;var g,e;for(g in f){for(k=f[g];;)if(e=a.onAttributeName(b,g))if(e!=g)delete f[g],g=e;else break;else{delete f[g];break}e&&(!1===(k=a.onAttribute(b,c,e,k))?delete f[e]:f[e]=k)}c.isEmpty||this.filterChildren(a,!1,b);return!0},filterChildren:b.filterChildren,writeHtml:function(a,b){b&&this.filter(b);var c=this.name,m=[],k=this.attributes,g,e;a.openTag(c,k);for(g in k)m.push([g,k[g]]);a.sortAttributes&&m.sort(f);g=0;for(e=m.length;g<e;g++)k=
m[g],a.attribute(k[0],k[1]);a.openTagClose(c,this.isEmpty);this.writeChildrenHtml(a);this.isEmpty||a.closeTag(c)},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(a){if(!a)return this.children.length?this.children[0]:null;"function"!=typeof a&&(a=c(a));for(var b=0,f=this.children.length;b<f;++b)if(a(this.children[b]))return this.children[b];return null},getHtml:function(){var a=
new CKEDITOR.htmlParser.basicWriter;this.writeChildrenHtml(a);return a.getHtml()},setHtml:function(a){a=this.children=CKEDITOR.htmlParser.fragment.fromHtml(a).children;for(var b=0,c=a.length;b<c;++b)a[b].parent=this},getOuterHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeHtml(a);return a.getHtml()},split:function(a){for(var b=this.children.splice(a,this.children.length-a),c=this.clone(),f=0;f<b.length;++f)b[f].parent=c;c.children=b;b[0]&&(b[0].previous=null);0<a&&(this.children[a-
1].next=null);this.parent.add(c,this.getIndex()+1);return c},find:function(a,b){void 0===b&&(b=!1);var c=[],f;for(f=0;f<this.children.length;f++){var k=this.children[f];"function"==typeof a&&a(k)?c.push(k):"string"==typeof a&&k.name===a&&c.push(k);b&&k.find&&(c=c.concat(k.find(a,b)))}return c},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"];b&&((b=CKEDITOR.tools.trim(b.replace(new RegExp("(?:\\s+|^)"+
a+"(?:\\s+|$)")," ")))?this.attributes["class"]=b:delete this.attributes["class"])},hasClass:function(a){var b=this.attributes["class"];return b?(new RegExp("(?:^|\\s)"+a+"(?\x3d\\s|$)")).test(b):!1},getFilterContext:function(a){var b=[];a||(a={off:!1,nonEditable:!1,nestedEditable:!1});a.off||"off"!=this.attributes["data-cke-processor"]||b.push("off",!0);a.nonEditable||"false"!=this.attributes.contenteditable?a.nonEditable&&!a.nestedEditable&&"true"==this.attributes.contenteditable&&b.push("nestedEditable",
!0):b.push("nonEditable",!0);if(b.length){a=CKEDITOR.tools.copy(a);for(var c=0;c<b.length;c+=2)a[b[c]]=b[c+1]}return a}},!0)}(),function(){var c=/{([^}]+)}/g;CKEDITOR.template=function(c){this.source=String(c)};CKEDITOR.template.prototype.output=function(f,b){var a=this.source.replace(c,function(a,b){return void 0!==f[b]?f[b]:a});return b?b.push(a):a}}(),delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(c){CKEDITOR.instances[c.name]=
c;c.on("focus",function(){CKEDITOR.currentInstance!=c&&(CKEDITOR.currentInstance=c,CKEDITOR.fire("currentInstance"))});c.on("blur",function(){CKEDITOR.currentInstance==c&&(CKEDITOR.currentInstance=null,CKEDITOR.fire("currentInstance"))});CKEDITOR.fire("instance",null,c)},CKEDITOR.remove=function(c){delete CKEDITOR.instances[c.name]},function(){var c={};CKEDITOR.addTemplate=function(f,b){var a=c[f];if(a)return a;a={name:f,source:b};CKEDITOR.fire("template",a);return c[f]=new CKEDITOR.template(a.source)};
CKEDITOR.getTemplate=function(f){return c[f]}}(),function(){var c=[];CKEDITOR.addCss=function(f){c.push(f)};CKEDITOR.getCss=function(){return c.join("\n")}}(),CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&&CKEDITOR.fire("reset")}),CKEDITOR.TRISTATE_ON=1,CKEDITOR.TRISTATE_OFF=2,CKEDITOR.TRISTATE_DISABLED=0,function(){CKEDITOR.inline=function(c,f){if(!CKEDITOR.env.isCompatible)return null;c=CKEDITOR.dom.element.get(c);if(c.getEditor())throw'The editor instance "'+
c.getEditor().name+'" is already attached to the provided element.';var b=new CKEDITOR.editor(f,c,CKEDITOR.ELEMENT_MODE_INLINE),a=c.is("textarea")?c:null;a?(b.setData(a.getValue(),null,!0),c=CKEDITOR.dom.element.createFromHtml('\x3cdiv contenteditable\x3d"'+!!b.readOnly+'" class\x3d"cke_textarea_inline"\x3e'+a.getValue()+"\x3c/div\x3e",CKEDITOR.document),c.insertAfter(a),a.hide(),a.$.form&&b._attachToForm()):b.setData(c.getHtml(),null,!0);b.on("loaded",function(){b.fire("uiReady");b.editable(c);b.container=
c;b.ui.contentsElement=c;b.setData(b.getData(1));b.resetDirty();b.fire("contentDom");b.mode="wysiwyg";b.fire("mode");b.status="ready";b.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,b)},null,null,1E4);b.on("destroy",function(){a&&(b.container.clearCustomData(),b.container.remove(),a.show());b.element.clearCustomData();delete b.element});return b};CKEDITOR.inlineAll=function(){var c,f,b;for(b in CKEDITOR.dtd.$editable)for(var a=CKEDITOR.document.getElementsByTag(b),h=0,n=a.count();h<
n;h++)c=a.getItem(h),"true"==c.getAttribute("contenteditable")&&(f={element:c,config:{}},!1!==CKEDITOR.fire("inline",f)&&CKEDITOR.inline(c,f.config))};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})}(),CKEDITOR.replaceClass="ckeditor",function(){function c(a,c,n,m){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(c,
a,m);m==CKEDITOR.ELEMENT_MODE_REPLACE&&(a.setStyle("visibility","hidden"),k._.required=a.hasAttribute("required"),a.removeAttribute("required"));n&&k.setData(n,null,!0);k.on("loaded",function(){b(k);m==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",f);return k}function f(){var a=this.container,b=this.element;
a&&(a.clearCustomData(),a.remove());b&&(b.clearCustomData(),this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(b.show(),this._.required&&b.setAttribute("required","required")),delete this.element)}function b(a){var b=a.name,c=a.element,f=a.elementMode,k=a.fire("uiSpace",{space:"top",html:""}).html,g=a.fire("uiSpace",{space:"bottom",html:""}).html,e=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'),b=CKEDITOR.dom.element.createFromHtml(e.output({id:a.id,
name:b,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:g?'\x3cspan id\x3d"'+a.ui.spaceId("bottom")+'" class\x3d"cke_bottom cke_reset_all" role\x3d"presentation"\x3e'+g+"\x3c/span\x3e":"",outerEl:CKEDITOR.env.ie?"span":"div"}));f==CKEDITOR.ELEMENT_MODE_REPLACE?(c.hide(),b.insertAfter(c)):
c.append(b);a.container=b;a.ui.contentsElement=a.ui.space("contents");k&&a.ui.space("top").unselectable();g&&a.ui.space("bottom").unselectable();c=a.config.width;f=a.config.height;c&&b.setStyle("width",CKEDITOR.tools.cssLength(c));f&&a.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(f));b.disableContextMenu();CKEDITOR.env.webkit&&b.on("focus",function(){a.focus()});a.fireOnce("uiReady")}CKEDITOR.replace=function(a,b){return c(a,b,null,CKEDITOR.ELEMENT_MODE_REPLACE)};CKEDITOR.appendTo=
function(a,b,f){return c(a,b,f,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=document.getElementsByTagName("textarea"),b=0;b<a.length;b++){var c=null,f=a[b];if(f.name||f.id){if("string"==typeof arguments[0]){if(!(new RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)")).test(f.className))continue}else if("function"==typeof arguments[0]&&(c={},!1===arguments[0](f,c)))continue;this.replace(f,c)}}};CKEDITOR.editor.prototype.addMode=function(a,b){(this._.modes||(this._.modes={}))[a]=
b};CKEDITOR.editor.prototype.setMode=function(a,b){var c=this,f=this._.modes;if(a!=c.mode&&f&&f[a]){c.fire("beforeSetMode",a);if(c.mode){var k=c.checkDirty(),f=c._.previousModeData,g,e=0;c.fire("beforeModeUnload");c.editable(0);c._.previousMode=c.mode;c._.previousModeData=g=c.getData(1);"source"==c.mode&&f==g&&(c.fire("lockSnapshot",{forceUpdate:!0}),e=1);c.ui.space("contents").setHtml("");c.mode=""}else c._.previousModeData=c.getData(1);this._.modes[a](function(){c.mode=a;void 0!==k&&!k&&c.resetDirty();
e?c.fire("unlockSnapshot"):"wysiwyg"==a&&c.fire("saveSnapshot");setTimeout(function(){c.fire("mode");b&&b.call(c)},0)})}};CKEDITOR.editor.prototype.resize=function(a,b,c,f){var k=this.container,g=this.ui.space("contents"),e=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement;f=f?this.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}):k;f.setSize("width",a,!0);e&&(e.style.width="1%");var d=(f.$.offsetHeight||0)-(g.$.clientHeight||
0),k=Math.max(b-(c?0:d),0);b=c?b+d:b;g.setStyle("height",k+"px");e&&(e.style.width="100%");this.fire("resize",{outerHeight:b,contentsHeight:k,outerWidth:a||f.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 c(b){var d=b.editor,e=b.data.path,c=e.blockLimit,g=b.data.selection,
l=g.getRanges()[0],h;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)if(g=f(g,e))g.appendBogus(),h=CKEDITOR.env.ie;m(d,e.block,c)&&l.collapsed&&!l.getCommonAncestor().isReadOnly()&&(e=l.clone(),e.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),c=new CKEDITOR.dom.walker(e),c.guard=function(b){return!a(b)||b.type==CKEDITOR.NODE_COMMENT||b.isReadOnly()},!c.checkForward()||e.checkStartOfBlock()&&e.checkEndOfBlock())&&(d=l.fixBlock(!0,d.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p"),CKEDITOR.env.needsBrFiller||
(d=d.getFirst(a))&&d.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(d.getText()).match(/^(?:&nbsp;|\xa0)$/)&&d.remove(),h=1,b.cancel());h&&l.select()}function f(b,d){if(b.isFake)return 0;var e=d.block||d.blockLimit,c=e&&e.getLast(a);if(!(!e||!e.isBlockBoundary()||c&&c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()||e.is("pre")||e.getBogus()))return e}function b(a){var b=a.data.getTarget();b.is("input")&&(b=b.getAttribute("type"),"submit"!=b&&"reset"!=b||a.data.preventDefault())}function a(a){return d(a)&&
l(a)}function h(a,b){return function(d){var e=d.data.$.toElement||d.data.$.fromElement||d.data.$.relatedTarget;(e=e&&e.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(e):null)&&(b.equals(e)||b.contains(e))||a.call(this,d)}}function n(b){function d(b){return function(d,c){c&&d.type==CKEDITOR.NODE_ELEMENT&&d.is(g)&&(e=d);if(!(c||!a(d)||b&&q(d)))return!1}}var e,c=b.getRanges()[0];b=b.root;var g={table:1,ul:1,ol:1,dl:1};if(c.startPath().contains(g)){var l=c.clone();l.collapse(1);l.setStartAt(b,
CKEDITOR.POSITION_AFTER_START);b=new CKEDITOR.dom.walker(l);b.guard=d();b.checkBackward();if(e)return l=c.clone(),l.collapse(),l.setEndAt(e,CKEDITOR.POSITION_AFTER_END),b=new CKEDITOR.dom.walker(l),b.guard=d(!0),e=!1,b.checkForward(),e}return null}function m(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 g(a){var b=a.editor;b.getSelection().scrollIntoView();setTimeout(function(){b.fire("saveSnapshot")},0)}function e(a,b,d){var e=a.getCommonAncestor(b);for(b=a=d?b:a;(a=a.getParent())&&!e.equals(a)&&1==a.getChildCount();)b=a;b.remove()}var d,l,p,q,u,t,r,v,x,B;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}CKEDITOR.env.edge&&14<CKEDITOR.env.version&&!this.hasFocus&&this.getDocument().equals(CKEDITOR.document)&&(this.editor._.previousScrollTop=this.$.scrollTop);try{if(!CKEDITOR.env.ie||CKEDITOR.env.edge&&14<CKEDITOR.env.version||!this.getDocument().equals(CKEDITOR.document))if(CKEDITOR.env.chrome){var b=this.$.scrollTop;this.$.focus();this.$.scrollTop=b}else this.$.focus();
else this.$.setActive()}catch(d){if(!CKEDITOR.env.ie)throw d;}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=h(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,b,d){var e=this.editor;e.focus();e.fire("saveSnapshot");
d||(d=e.getSelection().getRanges()[0]);t(this,b||"html",a,d);d.select();g(this);this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(a,b,d){t(this,d||"html",a,b);this.editor.fire("afterInsertHtml",{intoRange:b})},insertElement:function(b,d){var e=this.editor;e.focus();e.fire("saveSnapshot");var c=e.activeEnterMode,e=e.getSelection(),l=b.getName(),l=CKEDITOR.dtd.$block[l];d||(d=e.getRanges()[0]);this.insertElementIntoRange(b,d)&&(d.moveToPosition(b,CKEDITOR.POSITION_AFTER_END),l&&((l=
b.getNext(function(b){return a(b)&&!q(b)}))&&l.type==CKEDITOR.NODE_ELEMENT&&l.is(CKEDITOR.dtd.$block)?l.getDtd()["#"]?d.moveToElementEditStart(l):d.moveToElementEditEnd(b):l||c==CKEDITOR.ENTER_BR||(l=d.fixBlock(!0,c==CKEDITOR.ENTER_DIV?"div":"p"),d.moveToElementEditStart(l))));e.selectRanges([d]);g(this)},insertElementIntoSelection:function(a){this.insertElement(a)},insertElementIntoRange:function(a,b){var d=this.editor,e=d.config.enterMode,c=a.getName(),g=CKEDITOR.dtd.$block[c];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})?r(b):b.startContainer.is(CKEDITOR.dtd.$list)&&v(b));var l,f;if(g)for(;(l=b.getCommonAncestor(0,1))&&(f=CKEDITOR.dtd[l.getName()])&&(!f||!f[c]);)l.getName()in CKEDITOR.dtd.span?b.splitElement(l):b.checkStartOfBlock()&&b.checkEndOfBlock()?(b.setStartBefore(l),b.collapse(!0),l.remove()):b.splitBlock(e==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().$,e=b.getSelection(),c;a:if(e.anchorNode&&e.anchorNode==d.$)c=!0;else{if(CKEDITOR.env.webkit&&(c=d.getDocument().getActive())&&c.equals(d)&&!e.anchorNode){c=!0;break a}c=void 0}c&&(c=new CKEDITOR.dom.range(d),c.moveToElementEditStart(d),b=b.createRange(),b.setStart(c.startContainer.$,c.startOffset),b.collapse(!0),e.removeAllRanges(),e.addRange(b))}function b(){var a=d.getDocument().$,e=a.selection,c=d.getDocument().getActive();"None"==
e.type&&c.equals(d)&&(e=new CKEDITOR.dom.range(d),a=a.body.createTextRange(),e.moveToElementEditStart(d),e=e.startContainer,e.type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent()),a.moveToElementText(e.$),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()};x.eol.detect(a,this);x.bogus.exclude(a);x.cell.shrink(a);a.fragment=a.range.cloneContents();x.tree.rebuild(a,this);x.eol.fix(a,this);return new CKEDITOR.dom.documentFragment(a.fragment.$)},extractHtmlFromRange:function(a,b){var d=B,e={range:a,doc:a.document},c=this.getHtmlFromRange(a);if(a.collapsed)return a.optimize(),c;a.enlarge(CKEDITOR.ENLARGE_INLINE,1);d.table.detectPurge(e);e.bookmark=a.createBookmark();delete e.range;var g=this.editor.createRange();
g.moveToPosition(e.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START);e.targetBookmark=g.createBookmark();d.list.detectMerge(e,this);d.table.detectRanges(e,this);d.block.detectMerge(e,this);e.tableContentsRanges?(d.table.deleteRanges(e),a.moveToBookmark(e.bookmark),e.range=a):(a.moveToBookmark(e.bookmark),e.range=a,a.extractContents(d.detectExtractMerge(e)));a.moveToBookmark(e.targetBookmark);a.optimize();d.fixUneditableRangePosition(a);d.list.merge(e,this);d.table.purge(e,this);d.block.merge(e,this);
if(b){d=a.startPath();if(e=a.checkStartOfBlock()&&a.checkEndOfBlock()&&d.block&&!a.root.equals(d.block)){a:{var e=d.block.getElementsByTag("span"),g=0,f;if(e)for(;f=e.getItem(g++);)if(!l(f)){e=!0;break a}e=!1}e=!e}e&&(a.moveToPosition(d.block,CKEDITOR.POSITION_BEFORE_START),d.block.remove())}else d.autoParagraph(this.editor,a),p(a.startContainer)&&a.startContainer.appendBogus();a.startContainer.mergeSiblings();return c},setup:function(){var c=this.editor;this.attachListener(c,"beforeGetData",function(){var a=
this.getData();this.is("textarea")||!1!==c.config.ignoreEmptyParagraph&&(a=a.replace(u,function(a,b){return b}));c.setData(a,null,1)},this);this.attachListener(c,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(c,"afterSetData",function(){this.setData(c.getData(1))},this);this.attachListener(c,"loadSnapshot",function(a){this.setData(a.data,1)},this);this.attachListener(c,"beforeFocus",function(){var a=c.getSelection();(a=a&&a.getNative())&&"Control"==a.type||this.focus()},
this);this.attachListener(c,"insertHtml",function(a){this.insertHtml(a.data.dataValue,a.data.mode,a.data.range)},this);this.attachListener(c,"insertElement",function(a){this.insertElement(a.data)},this);this.attachListener(c,"insertText",function(a){this.insertText(a.data)},this);this.setReadOnly(c.readOnly);this.attachClass("cke_editable");c.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):c.elementMode!=CKEDITOR.ELEMENT_MODE_REPLACE&&c.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||
this.attachClass("cke_editable_themed");this.attachClass("cke_contents_"+c.config.contentsLangDirection);c.keystrokeHandler.blockedKeystrokes[8]=+c.readOnly;c.keystrokeHandler.attach(this);this.on("blur",function(){this.hasFocus=!1},null,null,-1);this.on("focus",function(){this.hasFocus=!0},null,null,-1);if(CKEDITOR.env.webkit)this.on("scroll",function(){c._.previousScrollTop=c.editable().$.scrollTop},null,null,-1);if(CKEDITOR.env.edge&&14<CKEDITOR.env.version){var g=function(){var a=c.editable();
null!=c._.previousScrollTop&&a.getDocument().equals(CKEDITOR.document)&&(a.$.scrollTop=c._.previousScrollTop,c._.previousScrollTop=null,this.removeListener("scroll",g))};this.on("scroll",g)}c.focusManager.add(this);this.equals(CKEDITOR.document.getActive())&&(this.hasFocus=!0,c.once("contentDom",function(){c.focusManager.focus(this)},this));this.isInline()&&this.changeAttr("tabindex",c.tabIndex);if(!this.is("textarea")){c.document=this.getDocument();c.window=this.getWindow();var l=c.document;this.changeAttr("spellcheck",
!c.config.disableNativeSpellChecker);var f=c.config.contentsLangDirection;this.getDirection(1)!=f&&this.changeAttr("dir",f);var h=CKEDITOR.getCss();if(h){var f=l.getHead(),k=f.getCustomData("stylesheet");k?h!=k.getText()&&(CKEDITOR.env.ie&&9>CKEDITOR.env.version?k.$.styleSheet.cssText=h:k.setText(h)):(h=l.appendStyleText(h),h=new CKEDITOR.dom.element(h.ownerNode||h.owningElement),f.setCustomData("stylesheet",h),h.data("cke-temp",1))}f=l.getCustomData("stylesheet_ref")||0;l.setCustomData("stylesheet_ref",
f+1);this.setCustomData("cke_includeReadonly",!c.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 p={8:1,46:1};this.attachListener(c,"key",function(a){if(c.readOnly)return!0;var b=a.data.domEvent.getKey(),e;a=c.getSelection();if(0!==a.getRanges().length){if(b in p){var g,l=a.getRanges()[0],f=l.startPath(),h,k,m,b=8==b;CKEDITOR.env.ie&&
11>CKEDITOR.env.version&&(g=a.getSelectedElement())||(g=n(a))?(c.fire("saveSnapshot"),l.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START),g.remove(),l.select(),c.fire("saveSnapshot"),e=1):l.collapsed&&((h=f.block)&&(m=h[b?"getPrevious":"getNext"](d))&&m.type==CKEDITOR.NODE_ELEMENT&&m.is("table")&&l[b?"checkStartOfBlock":"checkEndOfBlock"]()?(c.fire("saveSnapshot"),l[b?"checkEndOfBlock":"checkStartOfBlock"]()&&h.remove(),l["moveToElementEdit"+(b?"End":"Start")](m),l.select(),c.fire("saveSnapshot"),
e=1):f.blockLimit&&f.blockLimit.is("td")&&(k=f.blockLimit.getAscendant("table"))&&l.checkBoundaryOfElement(k,b?CKEDITOR.START:CKEDITOR.END)&&(m=k[b?"getPrevious":"getNext"](d))?(c.fire("saveSnapshot"),l["moveToElementEdit"+(b?"End":"Start")](m),l.checkStartOfBlock()&&l.checkEndOfBlock()?m.remove():l.select(),c.fire("saveSnapshot"),e=1):(k=f.contains(["td","th","caption"]))&&l.checkBoundaryOfElement(k,b?CKEDITOR.START:CKEDITOR.END)&&(e=1))}return!e}});c.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&&
this.attachListener(this,"keyup",function(b){b.data.getKeystroke()in p&&!this.getFirst(a)&&(this.appendBogus(),b=c.createRange(),b.moveToPosition(this,CKEDITOR.POSITION_AFTER_START),b.select())});this.attachListener(this,"dblclick",function(a){if(c.readOnly)return!1;a={element:a.data.getTarget()};c.fire("doubleclick",a)});CKEDITOR.env.ie&&this.attachListener(this,"click",b);CKEDITOR.env.ie&&!CKEDITOR.env.edge||this.attachListener(this,"mousedown",function(a){var b=a.data.getTarget();b.is("img","hr",
"input","textarea","select")&&!b.isReadOnly()&&(c.getSelection().selectElement(b),b.is("input","textarea","select")&&a.data.preventDefault())});CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(a){(a=a.data.getTarget())&&a.is("img")&&c.getSelection().selectElement(a)});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(a){if(2==a.data.$.button&&(a=a.data.getTarget(),!a.getOuterHtml().replace(u,""))){var b=c.createRange();b.moveToElementEditStart(a);b.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(c,"key",function(a){if(c.readOnly)return!0;var b=a.data.domEvent.getKey();if(b in p&&(a=c.getSelection(),0!==a.getRanges().length)){var b=8==b,d=a.getRanges()[0];a=d.startPath();if(d.collapsed)a:{var g=a.block;if(g&&d[b?"checkStartOfBlock":
"checkEndOfBlock"]()&&d.moveToClosestEditablePosition(g,!b)&&d.collapsed){if(d.startContainer.type==CKEDITOR.NODE_ELEMENT){var l=d.startContainer.getChild(d.startOffset-(b?1:0));if(l&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("hr")){c.fire("saveSnapshot");l.remove();a=!0;break a}}d=d.startPath().block;if(!d||d&&d.contains(g))a=void 0;else{c.fire("saveSnapshot");var f;(f=(b?d:g).getBogus())&&f.remove();f=c.getSelection();l=f.createBookmarks();(b?g:d).moveChildren(b?d:g,!1);a.lastElement.mergeSiblings();
e(g,d,!b);f.selectBookmarks(l);a=!0}}else a=!1}else b=d,f=a.block,d=b.endPath().block,f&&d&&!f.equals(d)?(c.fire("saveSnapshot"),(g=f.getBogus())&&g.remove(),b.enlarge(CKEDITOR.ENLARGE_INLINE),b.deleteContents(),d.getParent()&&(d.moveChildren(f,!1),a.lastElement.mergeSiblings(),e(f,d,!0)),b=c.getSelection().getRanges()[0],b.collapse(1),b.optimize(),""===b.startContainer.getHtml()&&b.startContainer.appendBogus(),b.select(),a=!0):a=!1;if(!a)return;c.getSelection().scrollIntoView();c.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(a){var b=a.editor;b.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))});b.on("selectionChange",function(a){if(!b.readOnly){var d=b.getSelection();d&&!d.isLocked&&(d=b.checkDirty(),b.fire("lockSnapshot"),c(a),b.fire("unlockSnapshot"),!d&&b.resetDirty())}})});CKEDITOR.on("instanceCreated",function(a){var b=a.editor;b.on("mode",function(){var a=b.editable();if(a&&a.isInline()){var d=b.title;a.changeAttr("role","textbox");a.changeAttr("aria-label",d);d&&a.changeAttr("title",d);var e=b.fire("ariaEditorHelpLabel",{}).label;
if(e&&(d=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var c=CKEDITOR.tools.getNextId(),e=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+c+'" class\x3d"cke_voice_label"\x3e'+e+"\x3c/span\x3e");d.append(e);a.changeAttr("aria-describedby",c)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");d=CKEDITOR.dom.walker.whitespaces(!0);l=CKEDITOR.dom.walker.bookmark(!1,!0);p=CKEDITOR.dom.walker.empty();
q=CKEDITOR.dom.walker.bogus();u=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi;t=function(){function b(a){return a.type==CKEDITOR.NODE_ELEMENT}function d(a,e){var c,g,l,f,k=[],p=e.range.startContainer;c=e.range.startPath();for(var p=h[p.getName()],m=0,n=a.getChildren(),u=n.count(),t=-1,J=-1,r=0,G=c.contains(h.$list);m<u;++m)c=n.getItem(m),b(c)?(l=c.getName(),G&&l in CKEDITOR.dtd.$list?k=k.concat(d(c,e)):(f=!!p[l],
"br"!=l||!c.data("cke-eol")||m&&m!=u-1||(r=(g=m?k[m-1].node:n.getItem(m+1))&&(!b(g)||!g.is("br")),g=g&&b(g)&&h.$block[g.getName()]),-1!=t||f||(t=m),f||(J=m),k.push({isElement:1,isLineBreak:r,isBlock:c.isBlockBoundary(),hasBlockSibling:g,node:c,name:l,allowed:f}),g=r=0)):k.push({isElement:0,node:c,allowed:1});-1<t&&(k[t].firstNotAllowed=1);-1<J&&(k[J].lastNotAllowed=1);return k}function e(a,d){var c=[],g=a.getChildren(),l=g.count(),f,k=0,m=h[d],p=!a.is(h.$inline)||a.is("br");for(p&&c.push(" ");k<l;k++)f=
g.getItem(k),b(f)&&!f.is(m)?c=c.concat(e(f,d)):c.push(f);p&&c.push(" ");return c}function c(a){return b(a.startContainer)&&a.startContainer.getChild(a.startOffset-1)}function g(a){return a&&b(a)&&(a.is(h.$removeEmpty)||a.is("a")&&!a.isBlockBoundary())}function l(a,d,e,c){var g=a.clone(),f,h;g.setEndAt(d,CKEDITOR.POSITION_BEFORE_END);(f=(new CKEDITOR.dom.walker(g)).next())&&b(f)&&p[f.getName()]&&(h=f.getPrevious())&&b(h)&&!h.getParent().equals(a.startContainer)&&e.contains(h)&&c.contains(f)&&f.isIdentical(h)&&
(f.moveChildren(h),f.remove(),l(a,d,e,c))}function f(a,d){function e(a,d){if(d.isBlock&&d.isElement&&!d.node.is("br")&&b(a)&&a.is("br"))return a.remove(),1}var c=d.endContainer.getChild(d.endOffset),g=d.endContainer.getChild(d.endOffset-1);c&&e(c,a[a.length-1]);g&&e(g,a[0])&&(d.setEnd(d.endContainer,d.endOffset-1),d.collapse())}var h=CKEDITOR.dtd,p={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},n={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},u=CKEDITOR.tools.extend({},
h.$inline);delete u.br;return function(E,z,p,K){var t=E.editor,J=!1;"unfiltered_html"==z&&(z="html",J=!0);if(!K.checkReadOnly()){var r=(new CKEDITOR.dom.elementPath(K.startContainer,K.root)).blockLimit||K.root;E={type:z,dontFilter:J,editable:E,editor:t,range:K,blockLimit:r,mergeCandidates:[],zombies:[]};z=E.range;K=E.mergeCandidates;var q,v;"text"==E.type&&z.shrink(CKEDITOR.SHRINK_ELEMENT,!0,!1)&&(q=CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",z.document),z.insertNode(q),
z.setStartAfter(q));J=new CKEDITOR.dom.elementPath(z.startContainer);E.endPath=r=new CKEDITOR.dom.elementPath(z.endContainer);if(!z.collapsed){var t=r.block||r.blockLimit,x=z.getCommonAncestor();t&&!t.equals(x)&&!t.contains(x)&&z.checkEndOfBlock()&&E.zombies.push(t);z.deleteContents()}for(;(v=c(z))&&b(v)&&v.isBlockBoundary()&&J.contains(v);)z.moveToPosition(v,CKEDITOR.POSITION_BEFORE_END);l(z,E.blockLimit,J,r);q&&(z.setEndBefore(q),z.collapse(),q.remove());q=z.startPath();if(t=q.contains(g,!1,1))z.splitElement(t),
E.inlineStylesRoot=t,E.inlineStylesPeak=q.lastElement;q=z.createBookmark();(t=q.startNode.getPrevious(a))&&b(t)&&g(t)&&K.push(t);(t=q.startNode.getNext(a))&&b(t)&&g(t)&&K.push(t);for(t=q.startNode;(t=t.getParent())&&g(t);)K.push(t);z.moveToBookmark(q);if(q=p){q=E.range;if("text"==E.type&&E.inlineStylesRoot){v=E.inlineStylesPeak;z=v.getDocument().createText("{cke-peak}");for(K=E.inlineStylesRoot.getParent();!v.equals(K);)z=z.appendTo(v.clone()),v=v.getParent();p=z.getOuterHtml().split("{cke-peak}").join(p)}v=
E.blockLimit.getName();if(/^\s+|\s+$/.test(p)&&"span"in CKEDITOR.dtd[v]){var B='\x3cspan data-cke-marker\x3d"1"\x3e\x26nbsp;\x3c/span\x3e';p=B+p+B}p=E.editor.dataProcessor.toHtml(p,{context:null,fixForBody:!1,protectedWhitespaces:!!B,dontFilter:E.dontFilter,filter:E.editor.activeFilter,enterMode:E.editor.activeEnterMode});v=q.document.createElement("body");v.setHtml(p);B&&(v.getFirst().remove(),v.getLast().remove());if((B=q.startPath().block)&&(1!=B.getChildCount()||!B.getBogus()))a:{var Q;if(1==
v.getChildCount()&&b(Q=v.getFirst())&&Q.is(n)&&!Q.hasAttribute("contenteditable")){B=Q.getElementsByTag("*");q=0;for(K=B.count();q<K;q++)if(z=B.getItem(q),!z.is(u))break a;Q.moveChildren(Q.getParent(1));Q.remove()}}E.dataWrapper=v;q=p}if(q){Q=E.range;q=Q.document;var M;v=E.blockLimit;K=0;var S,B=[],R,L;p=t=0;var O,X;z=Q.startContainer;var J=E.endPath.elements[0],U,r=J.getPosition(z),x=!!J.getCommonAncestor(z)&&r!=CKEDITOR.POSITION_IDENTICAL&&!(r&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED);
z=d(E.dataWrapper,E);for(f(z,Q);K<z.length;K++){r=z[K];if(M=r.isLineBreak){M=Q;O=v;var Z=void 0,ca=void 0;r.hasBlockSibling?M=1:(Z=M.startContainer.getAscendant(h.$block,1))&&Z.is({div:1,p:1})?(ca=Z.getPosition(O),ca==CKEDITOR.POSITION_IDENTICAL||ca==CKEDITOR.POSITION_CONTAINS?M=0:(O=M.splitElement(Z),M.moveToPosition(O,CKEDITOR.POSITION_AFTER_START),M=1)):M=0}if(M)p=0<K;else{M=Q.startPath();!r.isBlock&&m(E.editor,M.block,M.blockLimit)&&(L=k(E.editor))&&(L=q.createElement(L),L.appendBogus(),Q.insertNode(L),
CKEDITOR.env.needsBrFiller&&(S=L.getBogus())&&S.remove(),Q.moveToPosition(L,CKEDITOR.POSITION_BEFORE_END));if((M=Q.startPath().block)&&!M.equals(R)){if(S=M.getBogus())S.remove(),B.push(M);R=M}r.firstNotAllowed&&(t=1);if(t&&r.isElement){M=Q.startContainer;for(O=null;M&&!h[M.getName()][r.name];){if(M.equals(v)){M=null;break}O=M;M=M.getParent()}if(M)O&&(X=Q.splitElement(O),E.zombies.push(X),E.zombies.push(O));else{O=v.getName();U=!K;M=K==z.length-1;O=e(r.node,O);for(var Z=[],ca=O.length,fa=0,ga=void 0,
ha=0,ia=-1;fa<ca;fa++)ga=O[fa]," "==ga?(ha||U&&!fa||(Z.push(new CKEDITOR.dom.text(" ")),ia=Z.length),ha=1):(Z.push(ga),ha=0);M&&ia==Z.length&&Z.pop();U=Z}}if(U){for(;M=U.pop();)Q.insertNode(M);U=0}else Q.insertNode(r.node);r.lastNotAllowed&&K<z.length-1&&((X=x?J:X)&&Q.setEndAt(X,CKEDITOR.POSITION_AFTER_START),t=0);Q.collapse()}}1!=z.length?S=!1:(S=z[0],S=S.isElement&&"false"==S.node.getAttribute("contenteditable"));S&&(p=!0,M=z[0].node,Q.setStartAt(M,CKEDITOR.POSITION_BEFORE_START),Q.setEndAt(M,CKEDITOR.POSITION_AFTER_END));
E.dontMoveCaret=p;E.bogusNeededBlocks=B}S=E.range;var da;X=E.bogusNeededBlocks;for(U=S.createBookmark();R=E.zombies.pop();)R.getParent()&&(L=S.clone(),L.moveToElementEditStart(R),L.removeEmptyBlocksAtEnd());if(X)for(;R=X.pop();)CKEDITOR.env.needsBrFiller?R.appendBogus():R.append(S.document.createText(" "));for(;R=E.mergeCandidates.pop();)R.mergeSiblings();S.moveToBookmark(U);if(!E.dontMoveCaret){for(R=c(S);R&&b(R)&&!R.is(h.$empty);){if(R.isBlockBoundary())S.moveToPosition(R,CKEDITOR.POSITION_BEFORE_END);
else{if(g(R)&&R.getHtml().match(/(\s|&nbsp;)$/g)){da=null;break}da=S.clone();da.moveToPosition(R,CKEDITOR.POSITION_BEFORE_END)}R=R.getLast(a)}da&&S.moveToRange(da)}}}}();r=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,e){d=a.getDocument().createElement(d);a.append(d,e);return d}function d(a){var b=
a.count(),e;for(b;0<b--;)e=a.getItem(b),CKEDITOR.tools.trim(e.getHtml())||(e.appendBogus(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&e.getChildCount()&&e.getFirst().remove())}return function(e){var c=e.startContainer,g=c.getAscendant("table",1),l=!1;d(g.getElementsByTag("td"));d(g.getElementsByTag("th"));g=e.clone();g.setStart(c,0);g=a(g).lastBackward();g||(g=e.clone(),g.setEndAt(c,CKEDITOR.POSITION_BEFORE_END),g=a(g).lastForward(),l=!0);g||(g=c);g.is("table")?(e.setStartAt(g,CKEDITOR.POSITION_BEFORE_START),
e.collapse(!0),g.remove()):(g.is({tbody:1,thead:1,tfoot:1})&&(g=b(g,"tr",l)),g.is("tr")&&(g=b(g,g.getParent().is("thead")?"th":"td",l)),(c=g.getBogus())&&c.remove(),e.moveToPosition(g,l?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}();v=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.$list)||a.is(CKEDITOR.dtd.$listItem)};b.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&
a.is(CKEDITOR.dtd.$listItem)};return b}return function(b){var d=b.startContainer,e=!1,c;c=b.clone();c.setStart(d,0);c=a(c).lastBackward();c||(c=b.clone(),c.setEndAt(d,CKEDITOR.POSITION_BEFORE_END),c=a(c).lastForward(),e=!0);c||(c=d);c.is(CKEDITOR.dtd.$list)?(b.setStartAt(c,CKEDITOR.POSITION_BEFORE_START),b.collapse(!0),c.remove()):((d=c.getBogus())&&d.remove(),b.moveToPosition(c,e?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),b.select())}}();x={eol:{detect:function(a,b){var d=a.range,
e=d.clone(),c=d.clone(),g=new CKEDITOR.dom.elementPath(d.startContainer,b),l=new CKEDITOR.dom.elementPath(d.endContainer,b);e.collapse(1);c.collapse();g.block&&e.checkBoundaryOfElement(g.block,CKEDITOR.END)&&(d.setStartAfter(g.block),a.prependEolBr=1);l.block&&c.checkBoundaryOfElement(l.block,CKEDITOR.START)&&(d.setEndBefore(l.block),a.appendEolBr=1)},fix:function(a,b){var d=b.getDocument(),e;a.appendEolBr&&(e=this.createEolBr(d),a.fragment.append(e));!a.prependEolBr||e&&!e.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||!q(b)||d&&d.equals(b)||a.range.setEndBefore(b)}},tree:{rebuild:function(a,b){var d=a.range,e=d.getCommonAncestor(),c=new CKEDITOR.dom.elementPath(e,b),g=new CKEDITOR.dom.elementPath(d.startContainer,b),d=new CKEDITOR.dom.elementPath(d.endContainer,b),l;e.type==CKEDITOR.NODE_TEXT&&(e=e.getParent());if(c.blockLimit.is({tr:1,
table:1})){var f=c.contains("table").getParent();l=function(a){return!a.equals(f)}}else if(c.block&&c.block.is(CKEDITOR.dtd.$listItem)&&(g=g.contains(CKEDITOR.dtd.$list),d=d.contains(CKEDITOR.dtd.$list),!g.equals(d))){var h=c.contains(CKEDITOR.dtd.$list).getParent();l=function(a){return!a.equals(h)}}l||(l=function(a){return!a.equals(c.block)&&!a.equals(c.blockLimit)});this.rebuildFragment(a,b,e,l)},rebuildFragment:function(a,b,d,e){for(var c;d&&!d.equals(b)&&e(d);)c=d.clone(0,1),a.fragment.appendTo(c),
a.fragment=c,d=d.getParent()}},cell:{shrink:function(a){a=a.range;var b=a.startContainer,d=a.endContainer,e=a.startOffset,c=a.endOffset;b.type==CKEDITOR.NODE_ELEMENT&&b.equals(d)&&b.is("tr")&&++e==c&&a.shrink(CKEDITOR.SHRINK_TEXT)}}};B=function(){function a(b,d){var e=b.getParent();if(e.is(CKEDITOR.dtd.$inline))b[d?"insertBefore":"insertAfter"](e)}function b(d,e,c){a(e);a(c,1);for(var g;g=c.getNext();)g.insertAfter(e),e=g;p(d)&&d.remove()}function d(a,b){var e=new CKEDITOR.dom.range(a);e.setStartAfter(b.startNode);
e.setEndBefore(b.endNode);return e}return{list:{detectMerge:function(a,b){var e=d(b,a.bookmark),c=e.startPath(),g=e.endPath(),l=c.contains(CKEDITOR.dtd.$list),f=g.contains(CKEDITOR.dtd.$list);a.mergeList=l&&f&&l.getParent().equals(f.getParent())&&!l.equals(f);a.mergeListItems=c.block&&g.block&&c.block.is(CKEDITOR.dtd.$listItem)&&g.block.is(CKEDITOR.dtd.$listItem);if(a.mergeList||a.mergeListItems)e=e.clone(),e.setStartBefore(a.bookmark.startNode),e.setEndAfter(a.bookmark.endNode),a.mergeListBookmark=
e.createBookmark()},merge:function(a,d){if(a.mergeListBookmark){var e=a.mergeListBookmark.startNode,c=a.mergeListBookmark.endNode,g=new CKEDITOR.dom.elementPath(e,d),l=new CKEDITOR.dom.elementPath(c,d);if(a.mergeList){var f=g.contains(CKEDITOR.dtd.$list),h=l.contains(CKEDITOR.dtd.$list);f.equals(h)||(h.moveChildren(f),h.remove())}a.mergeListItems&&(g=g.contains(CKEDITOR.dtd.$listItem),l=l.contains(CKEDITOR.dtd.$listItem),g.equals(l)||b(l,e,c));e.remove();c.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 e=a.mergeBlockBookmark.startNode,c=a.mergeBlockBookmark.endNode,g=new CKEDITOR.dom.elementPath(e,d),l=new CKEDITOR.dom.elementPath(c,d),g=g.block,l=l.block;g&&l&&!g.equals(l)&&b(l,e,c);e.remove();c.remove()}}},table:function(){function a(d){var c=
[],g,l=new CKEDITOR.dom.walker(d),f=d.startPath().contains(e),h=d.endPath().contains(e),k={};l.guard=function(a,l){if(a.type==CKEDITOR.NODE_ELEMENT){var p="visited_"+(l?"out":"in");if(a.getCustomData(p))return;CKEDITOR.dom.element.setMarker(k,a,p,1)}if(l&&f&&a.equals(f))g=d.clone(),g.setEndAt(f,CKEDITOR.POSITION_BEFORE_END),c.push(g);else if(!l&&h&&a.equals(h))g=d.clone(),g.setStartAt(h,CKEDITOR.POSITION_AFTER_START),c.push(g);else{if(p=!l)p=a.type==CKEDITOR.NODE_ELEMENT&&a.is(e)&&(!f||b(a,f))&&(!h||
b(a,h));if(!p&&(p=l))if(a.is(e))var p=f&&f.getAscendant("table",!0),m=h&&h.getAscendant("table",!0),n=a.getAscendant("table",!0),p=p&&p.contains(n)||m&&m.contains(n);else p=void 0;p&&(g=d.clone(),g.selectNodeContents(a),c.push(g))}};l.lastForward();CKEDITOR.dom.element.clearAllMarkers(k);return c}function b(a,d){var e=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,c=a.getPosition(d);return c===CKEDITOR.POSITION_IDENTICAL?!1:0===(c&e)}var e={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),c=0;d.evaluator=function(a){a.type==CKEDITOR.NODE_ELEMENT&&a.is(e)&&++c};d.checkForward();if(1<c){var d=b.startPath().contains("table"),g=b.endPath().contains("table");d&&g&&b.checkBoundaryOfElement(d,CKEDITOR.START)&&b.checkBoundaryOfElement(g,CKEDITOR.END)&&(b=a.range.clone(),b.setStartBefore(d),b.setEndAfter(g),a.purgeTableBookmark=b.createBookmark())}},detectRanges:function(c,g){var l=d(g,c.bookmark),f=l.clone(),
h,k,z=l.getCommonAncestor();z.is(CKEDITOR.dtd.$tableContent)&&!z.is(e)&&(z=z.getAscendant("table",!0));k=z;z=new CKEDITOR.dom.elementPath(l.startContainer,k);k=new CKEDITOR.dom.elementPath(l.endContainer,k);z=z.contains("table");k=k.contains("table");if(z||k)z&&k&&b(z,k)?(c.tableSurroundingRange=f,f.setStartAt(z,CKEDITOR.POSITION_AFTER_END),f.setEndAt(k,CKEDITOR.POSITION_BEFORE_START),f=l.clone(),f.setEndAt(z,CKEDITOR.POSITION_AFTER_END),h=l.clone(),h.setStartAt(k,CKEDITOR.POSITION_BEFORE_START),
h=a(f).concat(a(h))):z?k||(c.tableSurroundingRange=f,f.setStartAt(z,CKEDITOR.POSITION_AFTER_END),l.setEndAt(z,CKEDITOR.POSITION_AFTER_END)):(c.tableSurroundingRange=f,f.setEndAt(k,CKEDITOR.POSITION_BEFORE_START),l.setStartAt(k,CKEDITOR.POSITION_AFTER_START)),c.tableContentsRanges=h?h:a(l)},deleteRanges:function(a){for(var b;b=a.tableContentsRanges.pop();)b.extractContents(),p(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(),e;m(a,d.block,d.blockLimit)&&(e=k(a))&&(e=b.document.createElement(e),e.appendBogus(),b.insertNode(e),b.moveToPosition(e,CKEDITOR.POSITION_AFTER_START))}}}()}(),function(){function c(a){return CKEDITOR.plugins.widget&&CKEDITOR.plugins.widget.isDomWidget(a)}function f(a,b){if(0===a.length||c(a[0].getEnclosedNode()))return!1;var d,e;if((d=!b&&1===a.length)&&!(d=a[0].collapsed)){var g=a[0];d=g.startContainer.getAscendant({td:1,th:1},!0);var l=g.endContainer.getAscendant({td:1,th:1},!0);
e=CKEDITOR.tools.trim;d&&d.equals(l)&&!d.findOne("td, th, tr, tbody, table")?(g=g.cloneContents(),d=g.getFirst()?e(g.getFirst().getText())!==e(d.getText()):!0):d=!1}if(d)return!1;for(e=0;e<a.length;e++)if(d=a[e]._getTableElement(),!d)return!1;return!0}function b(a){function b(a){a=a.find("td, th");var d=[],e;for(e=0;e<a.count();e++)d.push(a.getItem(e));return d}var d=[],e,c;for(c=0;c<a.length;c++)e=a[c]._getTableElement(),e.is&&e.is({td:1,th:1})?d.push(e):d=d.concat(b(e));return d}function a(a){a=
b(a);var d="",e=[],c,g;for(g=0;g<a.length;g++)c&&!c.equals(a[g].getAscendant("tr"))?(d+=e.join("\t")+"\n",c=a[g].getAscendant("tr"),e=[]):0===g&&(c=a[g].getAscendant("tr")),e.push(a[g].getText());return d+=e.join("\t")}function h(b){var d=this.root.editor,e=d.getSelection(1);this.reset();w=!0;e.root.once("selectionchange",function(a){a.cancel()},null,null,0);e.selectRanges([b[0]]);e=this._.cache;e.ranges=new CKEDITOR.dom.rangeList(b);e.type=CKEDITOR.SELECTION_TEXT;e.selectedElement=b[0]._getTableElement();
e.selectedText=a(b);e.nativeSel=null;this.isFake=1;this.rev=v++;d._.fakeSelection=this;w=!1;this.root.fire("selectionchange")}function n(){var a=this._.fakeSelection,b;if(a){b=this.getSelection(1);var d;if(!(d=!b)&&(d=!b.isHidden())){d=a;var e=b.getRanges(),g=d.getRanges(),l=e.length&&e[0]._getTableElement()&&e[0]._getTableElement().getAscendant("table",!0),h=g.length&&g[0]._getTableElement()&&g[0]._getTableElement().getAscendant("table",!0),k=1===e.length&&e[0]._getTableElement()&&e[0]._getTableElement().is("table"),
p=1===g.length&&g[0]._getTableElement()&&g[0]._getTableElement().is("table");if(c(d.getSelectedElement()))d=!1;else{var m=1===e.length&&e[0].collapsed,g=f(e,!!CKEDITOR.env.webkit)&&f(g);l=l&&h?l.equals(h)||h.contains(l):!1;l&&(m||g)?(k&&!p&&d.selectRanges(e),d=!0):d=!1}d=!d}d&&(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)||(d=this._.selectionPreviousPath&&
this._.selectionPreviousPath.blockLimit.equals(b.blockLimit),CKEDITOR.env.webkit&&!d&&(this._.previousActive=this.document.getActive()),this._.selectionPreviousPath=b,this.fire("selectionChange",{selection:a,path:b}))}function m(){F=!0;A||(k.call(this),A=CKEDITOR.tools.setTimeout(k,200,this))}function k(){A=null;F&&(CKEDITOR.tools.setTimeout(n,0,this),F=!1)}function g(a){return y(a)||a.type==CKEDITOR.NODE_ELEMENT&&!a.is(CKEDITOR.dtd.$empty)?!0:!1}function e(a){function b(d,e){return d&&d.type!=CKEDITOR.NODE_TEXT?
a.clone()["moveToElementEdit"+(e?"End":"Start")](d):!1}if(!(a.root instanceof CKEDITOR.editable))return!1;var d=a.startContainer,e=a.getPreviousNode(g,null,d),c=a.getNextNode(g,null,d);return b(e)||b(c,1)||!(e||c||d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary()&&d.getBogus())?!0:!1}function d(a){l(a,!1);var b=a.getDocument().createText(x);a.setCustomData("cke-fillingChar",b);return b}function l(a,b){var d=a&&a.removeCustomData("cke-fillingChar");if(d){if(!1!==b){var e=a.getDocument().getSelection().getNative(),
c=e&&"None"!=e.type&&e.getRangeAt(0),g=x.length;if(d.getLength()>g&&c&&c.intersectsNode(d.$)){var l=[{node:e.anchorNode,offset:e.anchorOffset},{node:e.focusNode,offset:e.focusOffset}];e.anchorNode==d.$&&e.anchorOffset>g&&(l[0].offset-=g);e.focusNode==d.$&&e.focusOffset>g&&(l[1].offset-=g)}}d.setText(p(d.getText(),1));l&&(d=a.getDocument().$,e=d.getSelection(),d=d.createRange(),d.setStart(l[0].node,l[0].offset),d.collapse(!0),e.removeAllRanges(),e.addRange(d),e.extend(l[1].node,l[1].offset))}}function p(a,
b){return b?a.replace(B,function(a,b){return b?" ":""}):a.replace(x,"")}function q(a,b){var d=CKEDITOR.dom.element.createFromHtml('\x3cdiv data-cke-hidden-sel\x3d"1" data-cke-temp\x3d"1" style\x3d"'+(CKEDITOR.env.ie&&14>CKEDITOR.env.version?"display:none":"position:fixed;top:0;left:-1000px")+'"\x3e'+(b||"\x26nbsp;")+"\x3c/div\x3e",a.document);a.fire("lockSnapshot");a.editable().append(d);var e=a.getSelection(1),c=a.createRange(),g=e.root.on("selectionchange",function(a){a.cancel()},null,null,0);c.setStartAt(d,
CKEDITOR.POSITION_AFTER_START);c.setEndAt(d,CKEDITOR.POSITION_BEFORE_END);e.selectRanges([c]);g.removeListener();a.fire("unlockSnapshot");a._.hiddenSelectionContainer=d}function u(a){var b={37:1,39:1,8:1,46:1};return function(d){var e=d.data.getKeystroke();if(b[e]){var c=a.getSelection().getRanges(),g=c[0];1==c.length&&g.collapsed&&(e=g[38>e?"getPreviousEditableNode":"getNextEditableNode"]())&&e.type==CKEDITOR.NODE_ELEMENT&&"false"==e.getAttribute("contenteditable")&&(a.getSelection().fake(e),d.data.preventDefault(),
d.cancel())}}}function t(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 e=d.startContainer,c;e&&!((c=e.type==CKEDITOR.NODE_ELEMENT)&&e.is("body")||!e.isReadOnly());)c&&"false"==e.getAttribute("contentEditable")&&d.setStartAfter(e),e=e.getParent();e=d.startContainer;c=d.endContainer;var g=d.startOffset,l=d.endOffset,f=d.clone();e&&e.type==CKEDITOR.NODE_TEXT&&(g>=e.getLength()?f.setStartAfter(e):f.setStartBefore(e));
c&&c.type==CKEDITOR.NODE_TEXT&&(l?f.setEndAfter(c):f.setEndBefore(c));e=new CKEDITOR.dom.walker(f);e.evaluator=function(e){if(e.type==CKEDITOR.NODE_ELEMENT&&e.isReadOnly()){var c=d.clone();d.setEndBefore(e);d.collapsed&&a.splice(b--,1);e.getPosition(f.endContainer)&CKEDITOR.POSITION_CONTAINS||(c.setStartAfter(e),c.collapsed||a.splice(b+1,0,c));return!0}return!1};e.next()}}return a}var r="function"!=typeof window.getSelection,v=1,x=CKEDITOR.tools.repeat("​",7),B=new RegExp(x+"( )?","g"),w,A,F,y=CKEDITOR.dom.walker.invisible(1),
C=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,e=d.createRange(),c;if(!d.readOnly)return(c=e.moveToClosestEditablePosition(b.selected,a))||(c=e.moveToClosestEditablePosition(b.selected,!a)),c&&d.getSelection().selectRanges([e]),d.fire("saveSnapshot"),b.selected.remove(),c||(e.moveToElementEditablePosition(d.editable()),d.getSelection().selectRanges([e])),
d.fire("saveSnapshot"),!1}}var d=a(),e=a(1);return{37:d,38:d,39:e,40:e,8:b(),46:b(1)}}();CKEDITOR.on("instanceCreated",function(a){function b(){var a=d.getSelection();a&&a.removeAllRanges()}var d=a.editor;d.on("contentDom",function(){function a(){q=new CKEDITOR.dom.selection(d.getSelection());q.lock()}function b(){g.removeListener("mouseup",b);k.removeListener("mouseup",b);var a=CKEDITOR.document.$.selection,d=a.createRange();"None"!=a.type&&d.parentElement()&&d.parentElement().ownerDocument==c.$&&
d.select()}function e(a){if(CKEDITOR.env.ie){var b=(a=a.getRanges()[0])?a.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&("false"==a.getAttribute("contenteditable")||"true"==a.getAttribute("contenteditable"))},!0):null;return a&&"false"==b.getAttribute("contenteditable")&&b}}var c=d.document,g=CKEDITOR.document,f=d.editable(),h=c.getBody(),k=c.getDocumentElement(),p=f.isInline(),t,q;CKEDITOR.env.gecko&&f.attachListener(f,"focus",function(a){a.removeListener();0!==t&&
(a=d.getSelection().getNative())&&a.isCollapsed&&a.anchorNode==f.$&&(a=d.createRange(),a.moveToElementEditStart(f),a.select())},null,null,-2);f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){t&&CKEDITOR.env.webkit&&(t=d._.previousActive&&d._.previousActive.equals(c.getActive()))&&null!=d._.previousScrollTop&&d._.previousScrollTop!=f.$.scrollTop&&(f.$.scrollTop=d._.previousScrollTop);d.unlockSelection(t);t=0},null,null,-1);f.attachListener(f,"mousedown",function(){t=0});if(CKEDITOR.env.ie||
p)r?f.attachListener(f,"beforedeactivate",a,null,null,-1):f.attachListener(d,"selectionCheck",a,null,null,-1),f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){d.lockSelection(q);t=1},null,null,-1),f.attachListener(f,"mousedown",function(){t=0});if(CKEDITOR.env.ie&&!p){var v;f.attachListener(f,"mousedown",function(a){2==a.data.$.button&&((a=d.document.getSelection())&&a.getType()!=CKEDITOR.SELECTION_NONE||(v=d.window.getScrollPosition()))});f.attachListener(f,"mouseup",function(a){2==
a.data.$.button&&v&&(d.document.$.documentElement.scrollLeft=v.x,d.document.$.documentElement.scrollTop=v.y);v=null});if("BackCompat"!=c.$.compatMode){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat){var w,x;k.on("mousedown",function(a){function b(a){a=a.data.$;if(w){var d=h.$.createTextRange();try{d.moveToPoint(a.clientX,a.clientY)}catch(e){}w.setEndPoint(0>x.compareEndPoints("StartToStart",d)?"EndToEnd":"StartToStart",d);w.select()}}function d(){k.removeListener("mousemove",b);g.removeListener("mouseup",
d);k.removeListener("mouseup",d);w.select()}a=a.data;if(a.getTarget().is("html")&&a.$.y<k.$.clientHeight&&a.$.x<k.$.clientWidth){w=h.$.createTextRange();try{w.moveToPoint(a.$.clientX,a.$.clientY)}catch(e){}x=w.duplicate();k.on("mousemove",b);g.on("mouseup",d);k.on("mouseup",d)}})}if(7<CKEDITOR.env.version&&11>CKEDITOR.env.version)k.on("mousedown",function(a){a.data.getTarget().is("html")&&(g.on("mouseup",b),k.on("mouseup",b))})}}f.attachListener(f,"selectionchange",n,d);f.attachListener(f,"keyup",
m,d);f.attachListener(f,"keydown",function(a){var b=this.getSelection(1);e(b)&&(b.selectElement(e(b)),a.data.preventDefault())},d);f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){d.forceNextSelectionCheck();d.selectionChange(1)});if(p&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var B;f.attachListener(f,"mousedown",function(){B=1});f.attachListener(c.getDocumentElement(),"mouseup",function(){B&&m.call(d);B=0})}else f.attachListener(CKEDITOR.env.ie?f:c.getDocumentElement(),"mouseup",
m,d);CKEDITOR.env.webkit&&f.attachListener(c,"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:f.hasFocus&&l(f)}},null,null,-1);f.attachListener(f,"keydown",u(d),null,null,-1)});d.on("setData",function(){d.unlockSelection();CKEDITOR.env.webkit&&b()});d.on("contentDomUnload",function(){d.unlockSelection()});if(CKEDITOR.env.ie9Compat)d.on("beforeDestroy",b,null,null,9);d.on("dataReady",function(){delete d._.fakeSelection;delete d._.hiddenSelectionContainer;
d.selectionChange(1)});d.on("loadSnapshot",function(){var a=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),b=d.editable().getLast(a);b&&b.hasAttribute("data-cke-hidden-sel")&&(b.remove(),CKEDITOR.env.gecko&&(a=d.editable().getFirst(a))&&a.is("br")&&a.getAttribute("_moz_editor_bogus_node")&&a.remove())},null,null,100);d.on("key",function(a){if("wysiwyg"==d.mode){var b=d.getSelection();if(b.isFake){var e=C[a.data.keyCode];if(e)return e({editor:d,selected:b.getSelectedElement(),selection:b,keyEvent:a})}}})});
if(CKEDITOR.env.webkit)CKEDITOR.on("instanceReady",function(a){var b=a.editor;b.on("selectionChange",function(){var a=b.editable(),d=a.getCustomData("cke-fillingChar");d&&(d.getCustomData("ready")?(l(a),a.editor.fire("selectionCheck")):d.setCustomData("ready",1))},null,null,-1);b.on("beforeSetMode",function(){l(b.editable())},null,null,-1);b.on("getSnapshot",function(a){a.data&&(a.data=p(a.data))},b,null,20);b.on("toDataFormat",function(a){a.data.dataValue=p(a.data.dataValue)},null,null,0)});CKEDITOR.editor.prototype.selectionChange=
function(a){(a?n:m).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;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:v++;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 e,c;if(a)if(a.getRangeAt)e=(c=a.rangeCount&&a.getRangeAt(0))&&
new CKEDITOR.dom.node(c.commonAncestorContainer);else{try{c=a.createRange()}catch(g){}e=c&&CKEDITOR.dom.element.get(c.item&&c.item(0)||c.parentElement())}if(!e||e.type!=CKEDITOR.NODE_ELEMENT&&e.type!=CKEDITOR.NODE_TEXT||!this.root.equals(e)&&!this.root.contains(e))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 D={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.tools.extend(CKEDITOR.dom.selection,{_removeFillingCharSequenceString:p,_createFillingCharSequenceNode:d,FILLING_CHAR_SEQUENCE:x});CKEDITOR.dom.selection.prototype={getNative:function(){return void 0!==this._.cache.nativeSel?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 b=CKEDITOR.SELECTION_NONE;try{var d=this.getNative(),e=d.type;"Text"==e&&(b=CKEDITOR.SELECTION_TEXT);"Control"==e&&(b=CKEDITOR.SELECTION_ELEMENT);d.createRange().parentElement()&&(b=CKEDITOR.SELECTION_TEXT)}catch(c){}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),e=d.startContainer;e==d.endContainer&&1==e.nodeType&&1==d.endOffset-
d.startOffset&&D[e.childNodes[d.startOffset].nodeName.toLowerCase()]&&(b=CKEDITOR.SELECTION_ELEMENT)}return a.type=b},getRanges:function(){var a=r?function(){function a(b){return(new CKEDITOR.dom.node(b)).getIndex()}var b=function(b,d){b=b.duplicate();b.collapse(d);var e=b.parentElement();if(!e.hasChildNodes())return{container:e,offset:0};for(var c=e.children,g,l,f=b.duplicate(),h=0,k=c.length-1,p=-1,m,n;h<=k;)if(p=Math.floor((h+k)/2),g=c[p],f.moveToElementText(g),m=f.compareEndPoints("StartToStart",
b),0<m)k=p-1;else if(0>m)h=p+1;else return{container:e,offset:a(g)};if(-1==p||p==c.length-1&&0>m){f.moveToElementText(e);f.setEndPoint("StartToStart",b);f=f.text.replace(/(\r\n|\r)/g,"\n").length;c=e.childNodes;if(!f)return g=c[c.length-1],g.nodeType!=CKEDITOR.NODE_TEXT?{container:e,offset:c.length}:{container:g,offset:g.nodeValue.length};for(e=c.length;0<f&&0<e;)l=c[--e],l.nodeType==CKEDITOR.NODE_TEXT&&(n=l,f-=l.nodeValue.length);return{container:n,offset:-f}}f.collapse(0<m?!0:!1);f.setEndPoint(0<
m?"StartToStart":"EndToStart",b);f=f.text.replace(/(\r\n|\r)/g,"\n").length;if(!f)return{container:e,offset:a(g)+(0<m?0:1)};for(;0<f;)try{l=g[0<m?"previousSibling":"nextSibling"],l.nodeType==CKEDITOR.NODE_TEXT&&(f-=l.nodeValue.length,n=l),g=l}catch(u){return{container:e,offset:a(g)}}return{container:n,offset:0<m?-f:n.nodeValue.length+f}};return function(){var a=this.getNative(),d=a&&a.createRange(),e=this.getType();if(!a)return[];if(e==CKEDITOR.SELECTION_TEXT)return a=new CKEDITOR.dom.range(this.root),
e=b(d,!0),a.setStart(new CKEDITOR.dom.node(e.container),e.offset),e=b(d),a.setEnd(new CKEDITOR.dom.node(e.container),e.offset),a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse(),[a];if(e==CKEDITOR.SELECTION_ELEMENT){for(var e=[],c=0;c<d.length;c++){for(var g=d.item(c),l=g.parentNode,f=0,a=new CKEDITOR.dom.range(this.root);f<l.childNodes.length&&l.childNodes[f]!=g;f++);a.setStart(new CKEDITOR.dom.node(l),f);a.setEnd(new CKEDITOR.dom.node(l),
f+1);e.push(a)}return e}return[]}}():function(){var a=[],b,d=this.getNative();if(!d)return a;for(var e=0;e<d.rangeCount;e++){var c=d.getRangeAt(e);b=new CKEDITOR.dom.range(this.root);b.setStart(new CKEDITOR.dom.node(c.startContainer),c.startOffset);b.setEnd(new CKEDITOR.dom.node(c.endContainer),c.endOffset);a.push(b)}return a};return function(b){var d=this._.cache,e=d.ranges;e||(d.ranges=e=new CKEDITOR.dom.rangeList(a.call(this)));return b?t(new CKEDITOR.dom.rangeList(e.slice())):e}}(),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,e,c=2;c&&!((d=a.getEnclosedNode())&&
d.type==CKEDITOR.NODE_ELEMENT&&D[d.getName()]&&(e=d));c--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return e&&e.$});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=r?"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=this.getRanges(),e=this.isFake;this.isLocked=0;this.reset();a&&(a=b||d[0]&&d[0].getCommonAncestor())&&a.getAscendant("body",1)&&(f(d)?h.call(this,d):e?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=v++},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,c=b&&b._.hiddenSelectionContainer;this.reset();if(c)for(var c=this.root,g,k=0;k<a.length;++k)g=a[k],g.endContainer.equals(c)&&(g.endOffset=Math.min(g.endOffset,
c.getChildCount()));if(a.length)if(this.isLocked){var p=CKEDITOR.document.getActive();this.unlock();this.selectRanges(a);this.lock();p&&!p.equals(this.root)&&p.focus()}else{var z;a:{var m,n;if(1==a.length&&!(n=a[0]).collapsed&&(z=n.getEnclosedNode())&&z.type==CKEDITOR.NODE_ELEMENT&&(n=n.clone(),n.shrink(CKEDITOR.SHRINK_ELEMENT,!0),(m=n.getEnclosedNode())&&m.type==CKEDITOR.NODE_ELEMENT&&(z=m),"false"==z.getAttribute("contenteditable")))break a;z=void 0}if(z)this.fake(z);else if(b&&b.plugins.tableselection&&
CKEDITOR.plugins.tableselection.isSupportedEnvironment&&f(a)&&!w)h.call(this,a);else{if(r){m=CKEDITOR.dom.walker.whitespaces(!0);z=/\ufeff|\u00a0/;n={table:1,tbody:1,tr:1};1<a.length&&(b=a[a.length-1],a[0].setEnd(b.endContainer,b.endOffset));b=a[0];a=b.collapsed;var u,t,q;if((c=b.getEnclosedNode())&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in D&&(!c.is("a")||!c.getText()))try{q=c.$.createControlRange();q.addElement(c.$);q.select();return}catch(v){}if(b.startContainer.type==CKEDITOR.NODE_ELEMENT&&
b.startContainer.getName()in n||b.endContainer.type==CKEDITOR.NODE_ELEMENT&&b.endContainer.getName()in n)b.shrink(CKEDITOR.NODE_ELEMENT,!0),a=b.collapsed;q=b.createBookmark();n=q.startNode;a||(p=q.endNode);q=b.document.$.body.createTextRange();q.moveToElementText(n.$);q.moveStart("character",1);p?(z=b.document.$.body.createTextRange(),z.moveToElementText(p.$),q.setEndPoint("EndToEnd",z),q.moveEnd("character",-1)):(u=n.getNext(m),t=n.hasAscendant("pre"),u=!(u&&u.getText&&u.getText().match(z))&&(t||
!n.hasPrevious()||n.getPrevious().is&&n.getPrevious().is("br")),t=b.document.createElement("span"),t.setHtml("\x26#65279;"),t.insertBefore(n),u&&b.document.createText("").insertBefore(n));b.setStartBefore(n);n.remove();a?(u?(q.moveStart("character",-1),q.select(),b.document.$.selection.clear()):q.select(),b.moveToPosition(t,CKEDITOR.POSITION_BEFORE_START),t.remove()):(b.setEndBefore(p),p.remove(),q.select())}else{p=this.getNative();if(!p)return;this.removeAllRanges();for(q=0;q<a.length;q++){if(q<
a.length-1&&(u=a[q],t=a[q+1],z=u.clone(),z.setStart(u.endContainer,u.endOffset),z.setEnd(t.startContainer,t.startOffset),!z.collapsed&&(z.shrink(CKEDITOR.NODE_ELEMENT,!0),b=z.getCommonAncestor(),z=z.getEnclosedNode(),b.isReadOnly()||z&&z.isReadOnly()))){t.setStart(u.startContainer,u.startOffset);a.splice(q--,1);continue}b=a[q];t=this.document.$.createRange();b.collapsed&&CKEDITOR.env.webkit&&e(b)&&(z=d(this.root),b.insertNode(z),(u=z.getNext())&&!z.getPrevious()&&u.type==CKEDITOR.NODE_ELEMENT&&"br"==
u.getName()?(l(this.root),b.moveToPosition(u,CKEDITOR.POSITION_BEFORE_START)):b.moveToPosition(z,CKEDITOR.POSITION_AFTER_END));t.setStart(b.startContainer.$,b.startOffset);try{t.setEnd(b.endContainer.$,b.endOffset)}catch(x){if(0<=x.toString().indexOf("NS_ERROR_ILLEGAL_VALUE"))b.collapse(1),t.setEnd(b.endContainer.$,b.endOffset);else throw x;}p.addRange(t)}}this.reset();this.root.fire("selectionchange")}}},fake:function(a,b){var d=this.root.editor;void 0===b&&a.hasAttribute("aria-label")&&(b=a.getAttribute("aria-label"));
this.reset();q(d,b);var e=this._.cache,c=new CKEDITOR.dom.range(this.root);c.setStartBefore(a);c.setEndAfter(a);e.ranges=new CKEDITOR.dom.rangeList(c);e.selectedElement=e.startElement=a;e.type=CKEDITOR.SELECTION_ELEMENT;e.selectedText=e.nativeSel=null;this.isFake=1;this.rev=v++;d._.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"))},isInTable:function(a){return f(this.getRanges(),
a)},isCollapsed:function(){var a=this.getRanges();return 1===a.length&&a[0].collapsed},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,e=0;e<a.length;e++){var c=new CKEDITOR.dom.range(this.root);c.moveToBookmark(a[e]);b.push(c)}a.isFake&&(d=f(b)?b[0]._getTableElement():b[0].getEnclosedNode(),d&&d.type==
CKEDITOR.NODE_ELEMENT||(CKEDITOR.warn("selection-not-fake"),a.isFake=0));a.isFake&&!f(b)?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[r?"empty":"removeAllRanges"]()}catch(b){}this.reset()}}}}(),
"use strict",CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function c(a,b){for(var d,e;(a=a.getParent())&&!a.equals(b);)if(a.getAttribute("data-nostyle"))d=a;else if(!e){var c=a.getAttribute("contentEditable");"false"==c?d=a:"true"==c&&(e=1)}return d}function f(a,b,d,e){return(a.getPosition(b)|e)==e&&(!d.childRule||d.childRule(a))}function b(a){var d=a.document;if(a.collapsed)d=v(this,d),a.insertNode(d),a.moveToPosition(d,CKEDITOR.POSITION_BEFORE_END);else{var e=
this.element,g=this._.definition,l,k=g.ignoreReadonly,p=k||g.includeReadonly;null==p&&(p=a.root.getCustomData("cke_includeReadonly"));var m=CKEDITOR.dtd[e];m||(l=!0,m=CKEDITOR.dtd.span);a.enlarge(CKEDITOR.ENLARGE_INLINE,1);a.trim();var n=a.createBookmark(),t=n.startNode,r=n.endNode,q=t,w;if(!k){var x=a.getCommonAncestor(),k=c(t,x),x=c(r,x);k&&(q=k.getNextSourceNode(!0));x&&(r=x)}for(q.getPosition(r)==CKEDITOR.POSITION_FOLLOWING&&(q=0);q;){k=!1;if(q.equals(r))q=null,k=!0;else{var L=q.type==CKEDITOR.NODE_ELEMENT?
q.getName():null,x=L&&"false"==q.getAttribute("contentEditable"),O=L&&q.getAttribute("data-nostyle");if(L&&q.data("cke-bookmark")){q=q.getNextSourceNode(!0);continue}if(x&&p&&CKEDITOR.dtd.$block[L])for(var X=q,U=h(X),B=void 0,A=U.length,y=0,X=A&&new CKEDITOR.dom.range(X.getDocument());y<A;++y){var B=U[y],F=CKEDITOR.filter.instances[B.data("cke-filter")];if(F?F.check(this):1)X.selectNodeContents(B),b.call(this,X)}U=L?!m[L]||O?0:x&&!p?0:f(q,r,g,N):1;if(U)if(B=q.getParent(),U=g,A=e,y=l,!B||!(B.getDtd()||
CKEDITOR.dtd.span)[A]&&!y||U.parentRule&&!U.parentRule(B))k=!0;else{if(w||L&&CKEDITOR.dtd.$removeEmpty[L]&&(q.getPosition(r)|N)!=N||(w=a.clone(),w.setStartBefore(q)),L=q.type,L==CKEDITOR.NODE_TEXT||x||L==CKEDITOR.NODE_ELEMENT&&!q.getChildCount()){for(var L=q,C;(k=!L.getNext(J))&&(C=L.getParent(),m[C.getName()])&&f(C,t,g,E);)L=C;w.setEndAfter(L)}}else k=!0;q=q.getNextSourceNode(O||x)}if(k&&w&&!w.collapsed){for(var k=v(this,d),x=k.hasAttributes(),O=w.getCommonAncestor(),L={},U={},B={},A={},D,I,G;k&&
O;){if(O.getName()==e){for(D in g.attributes)!A[D]&&(G=O.getAttribute(I))&&(k.getAttribute(D)==G?U[D]=1:A[D]=1);for(I in g.styles)!B[I]&&(G=O.getStyle(I))&&(k.getStyle(I)==G?L[I]=1:B[I]=1)}O=O.getParent()}for(D in U)k.removeAttribute(D);for(I in L)k.removeStyle(I);x&&!k.hasAttributes()&&(k=null);k?(w.extractContents().appendTo(k),w.insertNode(k),u.call(this,k),k.mergeSiblings(),CKEDITOR.env.ie||k.$.normalize()):(k=new CKEDITOR.dom.element("span"),w.extractContents().appendTo(k),w.insertNode(k),u.call(this,
k),k.remove(!0));w=null}}a.moveToBookmark(n);a.shrink(CKEDITOR.SHRINK_TEXT);a.shrink(CKEDITOR.NODE_ELEMENT,!0)}}function a(a){function b(){for(var a=new CKEDITOR.dom.elementPath(e.getParent()),d=new CKEDITOR.dom.elementPath(p.getParent()),c=null,g=null,l=0;l<a.elements.length;l++){var f=a.elements[l];if(f==a.block||f==a.blockLimit)break;m.checkElementRemovable(f,!0)&&(c=f)}for(l=0;l<d.elements.length;l++){f=d.elements[l];if(f==d.block||f==d.blockLimit)break;m.checkElementRemovable(f,!0)&&(g=f)}g&&
p.breakParent(g);c&&e.breakParent(c)}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var d=a.createBookmark(),e=d.startNode,c=this._.definition.alwaysRemoveElement;if(a.collapsed){for(var g=new CKEDITOR.dom.elementPath(e.getParent(),a.root),l,f=0,h;f<g.elements.length&&(h=g.elements[f])&&h!=g.block&&h!=g.blockLimit;f++)if(this.checkElementRemovable(h)){var k;!c&&a.collapsed&&(a.checkBoundaryOfElement(h,CKEDITOR.END)||(k=a.checkBoundaryOfElement(h,CKEDITOR.START)))?(l=h,l.match=k?"start":"end"):(h.mergeSiblings(),
h.is(this.element)?q.call(this,h):t(h,w(this)[h.getName()]))}if(l){c=e;for(f=0;;f++){h=g.elements[f];if(h.equals(l))break;else if(h.match)continue;else h=h.clone();h.append(c);c=h}c["start"==l.match?"insertBefore":"insertAfter"](l)}}else{var p=d.endNode,m=this;b();for(g=e;!g.equals(p);)l=g.getNextSourceNode(),g.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(g)&&(g.getName()==this.element?q.call(this,g):t(g,w(this)[g.getName()]),l.type==CKEDITOR.NODE_ELEMENT&&l.contains(e)&&(b(),l=e.getNext())),
g=l}a.moveToBookmark(d);a.shrink(CKEDITOR.NODE_ELEMENT,!0)}function h(a){var b=[];a.forEach(function(a){if("true"==a.getAttribute("contenteditable"))return b.push(a),!1},CKEDITOR.NODE_ELEMENT,!0);return b}function n(a){var b=a.getEnclosedNode()||a.getCommonAncestor(!1,!0);(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1))&&!a.isReadOnly()&&x(a,this)}function m(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 e in d)a.removeAttribute(e,d[e]);if(b.styles)for(var c in b.styles)b.styles.hasOwnProperty(c)&&a.removeStyle(c)}}function k(a){var b=a.createBookmark(!0),d=a.createIterator();d.enforceRealBlocks=!0;this._.enterMode&&(d.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR);for(var c,g=a.document,l;c=d.getNextParagraph();)!c.isReadOnly()&&(d.activeFilter?d.activeFilter.check(this):1)&&(l=v(this,g,c),e(c,l));a.moveToBookmark(b)}function g(a){var b=a.createBookmark(1),d=a.createIterator();
d.enforceRealBlocks=!0;d.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var c,g;c=d.getNextParagraph();)this.checkElementRemovable(c)&&(c.is("pre")?((g=this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&c.copyAttributes(g),e(c,g)):q.call(this,c));a.moveToBookmark(b)}function e(a,b){var e=!b;e&&(b=a.getDocument().createElement("div"),a.copyAttributes(b));var c=b&&b.is("pre"),g=a.is("pre"),f=!c&&g;if(c&&!g){g=b;(f=a.getBogus())&&f.remove();
f=a.getHtml();f=l(f,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");f=f.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");f=f.replace(/([ \t\n\r]+|&nbsp;)/g," ");f=f.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var h=a.getDocument().createElement("div");h.append(g);g.$.outerHTML="\x3cpre\x3e"+f+"\x3c/pre\x3e";g.copyAttributes(h.getFirst());g=h.getFirst().remove()}else g.setHtml(f);b=g}else f?b=p(e?[a.getHtml()]:d(a),b):a.moveChildren(b);b.replace(a);if(c){var e=b,k;(k=e.getPrevious(I))&&k.type==CKEDITOR.NODE_ELEMENT&&
k.is("pre")&&(c=l(k.getHtml(),/\n$/,"")+"\n\n"+l(e.getHtml(),/^\n/,""),CKEDITOR.env.ie?e.$.outerHTML="\x3cpre\x3e"+c+"\x3c/pre\x3e":e.setHtml(c),k.remove())}else e&&r(b)}function d(a){var b=[];l(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 l(a,b,d){var e="",c="";a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,
function(a,b,d){b&&(e=b);d&&(c=d);return""});return e+a.replace(b,d)+c}function p(a,b){var d;1<a.length&&(d=new CKEDITOR.dom.documentFragment(b.getDocument()));for(var e=0;e<a.length;e++){var c=a[e],c=c.replace(/(\r\n|\r)/g,"\n"),c=l(c,/^[ \t]*\n/,""),c=l(c,/\n$/,""),c=l(c,/^[ \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)+" "}),c=c.replace(/\n/g,"\x3cbr\x3e"),c=c.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat("\x26nbsp;",
a.length-1)+" "});if(d){var g=b.clone();g.setHtml(c);d.append(g)}else b.setHtml(c)}return d||b}function q(a,b){var d=this._.definition,e=d.attributes,d=d.styles,c=w(this)[a.getName()],g=CKEDITOR.tools.isEmpty(e)&&CKEDITOR.tools.isEmpty(d),l;for(l in e)if("class"!=l&&!this._.definition.fullMatch||a.getAttribute(l)==A(l,e[l]))b&&"data-"==l.slice(0,5)||(g=a.hasAttribute(l),a.removeAttribute(l));for(var f in d)this._.definition.fullMatch&&a.getStyle(f)!=A(f,d[f],!0)||(g=g||!!a.getStyle(f),a.removeStyle(f));
t(a,c,C[a.getName()]);g&&(this._.definition.alwaysRemoveElement?r(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!a.hasAttributes()?r(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function u(a){for(var b=w(this),d=a.getElementsByTag(this.element),e,c=d.count();0<=--c;)e=d.getItem(c),e.isReadOnly()||q.call(this,e,!0);for(var g in b)if(g!=this.element)for(d=a.getElementsByTag(g),c=d.count()-1;0<=c;c--)e=d.getItem(c),e.isReadOnly()||t(e,b[g])}function t(a,
b,d){if(b=b&&b.attributes)for(var e=0;e<b.length;e++){var c=b[e][0],g;if(g=a.getAttribute(c)){var l=b[e][1];(null===l||l.test&&l.test(g)||"string"==typeof l&&g==l)&&a.removeAttribute(c)}}d||r(a)}function r(a,b){if(!a.hasAttributes()||b)if(CKEDITOR.dtd.$block[a.getName()]){var d=a.getPrevious(I),e=a.getNext(I);!d||d.type!=CKEDITOR.NODE_TEXT&&d.isBlockBoundary({br:1})||a.append("br",1);!e||e.type!=CKEDITOR.NODE_TEXT&&e.isBlockBoundary({br:1})||a.append("br");a.remove(!0)}else d=a.getFirst(),e=a.getLast(),
a.remove(!0),d&&(d.type==CKEDITOR.NODE_ELEMENT&&d.mergeSiblings(),e&&!d.equals(e)&&e.type==CKEDITOR.NODE_ELEMENT&&e.mergeSiblings())}function v(a,b,d){var e;e=a.element;"*"==e&&(e="span");e=new CKEDITOR.dom.element(e,b);d&&d.copyAttributes(e);e=x(e,a);b.getCustomData("doc_processing_style")&&e.hasAttribute("id")?e.removeAttribute("id"):b.setCustomData("doc_processing_style",1);return e}function x(a,b){var d=b._.definition,e=d.attributes,d=CKEDITOR.style.getStyleText(d);if(e)for(var c in e)a.setAttribute(c,
e[c]);d&&a.setAttribute("style",d);return a}function B(a,b){for(var d in a)a[d]=a[d].replace(H,function(a,d){return b[d]})}function w(a){if(a._.overrides)return a._.overrides;var b=a._.overrides={},d=a._.definition.overrides;if(d){CKEDITOR.tools.isArray(d)||(d=[d]);for(var e=0;e<d.length;e++){var c=d[e],g,l;"string"==typeof c?g=c.toLowerCase():(g=c.element?c.element.toLowerCase():a.element,l=c.attributes);c=b[g]||(b[g]={});if(l){var c=c.attributes=c.attributes||[],f;for(f in l)c.push([f.toLowerCase(),
l[f]])}}}return b}function A(a,b,d){var e=new CKEDITOR.dom.element("span");e[d?"setStyle":"setAttribute"](a,b);return e[d?"getStyle":"getAttribute"](a)}function F(a,b){function d(a,b){return"font-family"==b.toLowerCase()?a.replace(/["']/g,""):a}"string"==typeof a&&(a=CKEDITOR.tools.parseCssText(a));"string"==typeof b&&(b=CKEDITOR.tools.parseCssText(b,!0));for(var e in a)if(!(e in b)||d(b[e],e)!=d(a[e],e)&&"inherit"!=a[e]&&"inherit"!=b[e])return!1;return!0}function y(a,b,d){var e=a.document,c=a.getRanges();
b=b?this.removeFromRange:this.applyToRange;var g,l;if(a.isFake&&a.isInTable())for(g=[],l=0;l<c.length;l++)g.push(c[l].clone());for(var f=c.createIterator();l=f.getNextRange();)b.call(this,l,d);a.selectRanges(g||c);e.removeCustomData("doc_processing_style")}var C={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},D={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},G=/\s*(?:;\s*|$)/,H=/#\((.+?)\)/g,J=CKEDITOR.dom.walker.bookmark(0,1),I=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),B(a.attributes,b),B(a.styles,
b));d=this.element=a.element?"string"==typeof a.element?a.element.toLowerCase():a.element:"*";this.type=a.type||(C[d]?CKEDITOR.STYLE_BLOCK:D[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 y.call(this,a.getSelection());if(this.checkApplicable(a.elementPath(),a)){var b=this._.enterMode;b||(this._.enterMode=a.activeEnterMode);
y.call(this,a.getSelection(),0,a);this._.enterMode=b}},remove:function(a){if(a instanceof CKEDITOR.dom.document)return y.call(this,a.getSelection(),1);if(this.checkApplicable(a.elementPath(),a)){var b=this._.enterMode;b||(this._.enterMode=a.activeEnterMode);y.call(this,a.getSelection(),1,a);this._.enterMode=b}},applyToRange:function(a){this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?b:this.type==CKEDITOR.STYLE_BLOCK?k:this.type==CKEDITOR.STYLE_OBJECT?n:null;return this.applyToRange(a)},removeFromRange:function(b){this.removeFromRange=
this.type==CKEDITOR.STYLE_INLINE?a:this.type==CKEDITOR.STYLE_BLOCK?g:this.type==CKEDITOR.STYLE_OBJECT?m:null;return this.removeFromRange(b)},applyToObject:function(a){x(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,e=0,c;e<d.length;e++)if(c=d[e],this.type!=CKEDITOR.STYLE_INLINE||c!=a.block&&c!=a.blockLimit){if(this.type==CKEDITOR.STYLE_OBJECT){var g=
c.getName();if(!("string"==typeof this.element?g==this.element:g in this.element))continue}if(this.checkElementRemovable(c,!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 e=a.getName();if("string"==typeof this.element?e==this.element:e in this.element){if(!b&&!a.hasAttributes())return!0;if(e=d._AC)d=e;else{var e={},c=0,g=d.attributes;if(g)for(var l in g)c++,e[l]=g[l];if(l=CKEDITOR.style.getStyleText(d))e.style||c++,e.style=l;e._length=c;d=d._AC=e}if(d._length){for(var f in d)if("_length"!=f)if(e=a.getAttribute(f)||"","style"==f?F(d[f],e):d[f]==e){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=w(this)[a.getName()]){var e;if(!(b=b.attributes))return!0;for(d=0;d<b.length;d++)if(e=b[d][0],e=a.getAttribute(e)){var c=b[d][1];if(null===c)return!0;if("string"==typeof c){if(e==c)return!0}else if(c.test(e))return!0}}return!1},buildPreview:function(a){var b=this._.definition,d=[],e=b.element;"bdo"==e&&(e="span");var d=["\x3c",e],c=b.attributes;if(c)for(var g in c)d.push(" ",g,'\x3d"',c[g],'"');(c=CKEDITOR.style.getStyleText(b))&&d.push(' style\x3d"',c,'"');d.push("\x3e",a||b.name,
"\x3c/",e,"\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||"",e="";d.length&&(d=d.replace(G,";"));for(var c in b){var g=b[c],l=(c+":"+g).replace(G,";");"inherit"==g?e+=l:d+=l}d.length&&(d=CKEDITOR.tools.normalizeCssText(d,!0));return a._ST=d+e};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 N=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,E=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(c,f){this.requiredContent=this.allowedContent=this.style=c;CKEDITOR.tools.extend(this,f,!0)},
CKEDITOR.styleCommand.prototype.exec=function(c){c.focus();this.state==CKEDITOR.TRISTATE_OFF?c.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&c.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(c,f,b){CKEDITOR.stylesSet.addExternal(c,f,"");CKEDITOR.stylesSet.load(c,b)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(c,
f){var b=this._.styleStateChangeCallbacks;b||(b=this._.styleStateChangeCallbacks=[],this.on("selectionChange",function(a){for(var c=0;c<b.length;c++){var f=b[c],m=f.style.checkActive(a.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;f.fn.call(this,m)}}));b.push({style:c,fn:f})},applyStyle:function(c){c.apply(this)},removeStyle:function(c){c.remove(this)},getStylesSet:function(c){if(this._.stylesDefinitions)c(this._.stylesDefinitions);else{var f=this,b=f.config.stylesCombo_stylesSet||f.config.stylesSet;
if(!1===b)c(null);else if(b instanceof Array)f._.stylesDefinitions=b,c(b);else{b||(b="default");var b=b.split(":"),a=b[0];CKEDITOR.stylesSet.addExternal(a,b[1]?b.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(a,function(b){f._.stylesDefinitions=b[a];c(f._.stylesDefinitions)})}}}}),CKEDITOR.dom.comment=function(c,f){"string"==typeof c&&(c=(f?f.$:document).createComment(c));CKEDITOR.dom.domObject.call(this,c)},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 c={},f={},b;for(b in CKEDITOR.dtd.$blockLimit)b in CKEDITOR.dtd.$list||(c[b]=1);for(b in CKEDITOR.dtd.$block)b in CKEDITOR.dtd.$blockLimit||b in CKEDITOR.dtd.$empty||(f[b]=1);CKEDITOR.dom.elementPath=function(a,b){var n=null,m=null,k=[],g=a,e;b=b||a.getDocument().getBody();g||(g=b);do if(g.type==CKEDITOR.NODE_ELEMENT){k.push(g);if(!this.lastElement&&(this.lastElement=g,g.is(CKEDITOR.dtd.$object)||
"false"==g.getAttribute("contenteditable")))continue;if(g.equals(b))break;if(!m&&(e=g.getName(),"true"==g.getAttribute("contenteditable")?m=g:!n&&f[e]&&(n=g),c[e])){if(e=!n&&"div"==e){a:{e=g.getChildren();for(var d=0,l=e.count();d<l;d++){var p=e.getItem(d);if(p.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[p.getName()]){e=!0;break a}}e=!1}e=!e}e?n=g:m=g}}while(g=g.getParent());m||(m=b);this.block=n;this.blockLimit=m;this.root=b;this.elements=k}}(),CKEDITOR.dom.elementPath.prototype={compare:function(c){var f=
this.elements;c=c&&c.elements;if(!c||f.length!=c.length)return!1;for(var b=0;b<f.length;b++)if(!f[b].equals(c[b]))return!1;return!0},contains:function(c,f,b){var a=0,h;"string"==typeof c&&(h=function(a){return a.getName()==c});c instanceof CKEDITOR.dom.element?h=function(a){return a.equals(c)}:CKEDITOR.tools.isArray(c)?h=function(a){return-1<CKEDITOR.tools.indexOf(c,a.getName())}:"function"==typeof c?h=c:"object"==typeof c&&(h=function(a){return a.getName()in c});var n=this.elements,m=n.length;f&&
(b?a+=1:--m);b&&(n=Array.prototype.slice.call(n,0),n.reverse());for(;a<m;a++)if(h(n[a]))return n[a];return null},isContextFor:function(c){var f;return c in CKEDITOR.dtd.$block?(f=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit,!!f.getDtd()[c]):!0},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},CKEDITOR.dom.text=function(c,f){"string"==typeof c&&(c=(f?f.$:document).createTextNode(c));this.$=c},CKEDITOR.dom.text.prototype=
new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(c){this.$.nodeValue=c},split:function(c){var f=this.$.parentNode,b=f.childNodes.length,a=this.getLength(),h=this.getDocument(),n=new CKEDITOR.dom.text(this.$.splitText(c),h);f.childNodes.length==b&&(c>=a?(n=h.createText(""),n.insertAfter(this)):(c=h.createText(""),c.insertAfter(n),c.remove()));
return n},substring:function(c,f){return"number"!=typeof f?this.$.nodeValue.substr(c):this.$.nodeValue.substring(c,f)}}),function(){function c(b,a,c){var f=b.serializable,m=a[c?"endContainer":"startContainer"],k=c?"endOffset":"startOffset",g=f?a.document.getById(b.startNode):b.startNode;b=f?a.document.getById(b.endNode):b.endNode;m.equals(g.getPrevious())?(a.startOffset=a.startOffset-m.getLength()-b.getPrevious().getLength(),m=b.getNext()):m.equals(b.getPrevious())&&(a.startOffset-=m.getLength(),
m=b.getNext());m.equals(g.getParent())&&a[k]++;m.equals(b.getParent())&&a[k]++;a[c?"endContainer":"startContainer"]=m;return a}CKEDITOR.dom.rangeList=function(b){if(b instanceof CKEDITOR.dom.rangeList)return b;b?b instanceof CKEDITOR.dom.range&&(b=[b]):b=[];return CKEDITOR.tools.extend(b,f)};var f={createIterator:function(){var b=this,a=CKEDITOR.dom.walker.bookmark(),c=[],f;return{getNextRange:function(m){f=void 0===f?0:f+1;var k=b[f];if(k&&1<b.length){if(!f)for(var g=b.length-1;0<=g;g--)c.unshift(b[g].createBookmark(!0));
if(m)for(var e=0;b[f+e+1];){var d=k.document;m=0;g=d.getById(c[e].endNode);for(d=d.getById(c[e+1].startNode);;){g=g.getNextSourceNode(!1);if(d.equals(g))m=1;else if(a(g)||g.type==CKEDITOR.NODE_ELEMENT&&g.isBlockBoundary())continue;break}if(!m)break;e++}for(k.moveToBookmark(c.shift());e--;)g=b[++f],g.moveToBookmark(c.shift()),k.setEnd(g.endContainer,g.endOffset)}return k}}},createBookmarks:function(b){for(var a=[],f,n=0;n<this.length;n++){a.push(f=this[n].createBookmark(b,!0));for(var m=n+1;m<this.length;m++)this[m]=
c(f,this[m]),this[m]=c(f,this[m],!0)}return a},createBookmarks2:function(b){for(var a=[],c=0;c<this.length;c++)a.push(this[c].createBookmark2(b));return a},moveToBookmarks:function(b){for(var a=0;a<this.length;a++)this[a].moveToBookmark(b[a])}}}(),function(){function c(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function f(a){var b=CKEDITOR.skin["ua_"+a],g=CKEDITOR.env;if(b)for(var b=b.split(",").sort(function(a,b){return a>b?-1:1}),f=0,
h;f<b.length;f++)if(h=b[f],g.ie&&(h.replace(/^ie/,"")==g.version||g.quirks&&"iequirks"==h)&&(h="ie"),g[h]){a+="_"+b[f];break}return CKEDITOR.getUrl(c()+a+".css")}function b(a,b){n[a]||(CKEDITOR.document.appendStyleSheet(f(a)),n[a]=1);b&&b()}function a(a){var b=a.getById(m);b||(b=a.getHead().append("style"),b.setAttribute("id",m),b.setAttribute("type","text/css"));return b}function h(a,b,c){var g,f,h;if(CKEDITOR.env.webkit)for(b=b.split("}").slice(0,-1),f=0;f<b.length;f++)b[f]=b[f].split("{");for(var k=
0;k<a.length;k++)if(CKEDITOR.env.webkit)for(f=0;f<b.length;f++){h=b[f][1];for(g=0;g<c.length;g++)h=h.replace(c[g][0],c[g][1]);a[k].$.sheet.addRule(b[f][0],h)}else{h=b;for(g=0;g<c.length;g++)h=h.replace(c[g][0],c[g][1]);CKEDITOR.env.ie&&11>CKEDITOR.env.version?a[k].$.styleSheet.cssText+=h:a[k].$.innerHTML+=h}}var n={};CKEDITOR.skin={path:c,loadPart:function(a,d){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(c()+"skin.js"),function(){b(a,d)}):b(a,d)},
getPath:function(a){return CKEDITOR.getUrl(f(a))},icons:{},addIcon:function(a,b,c,g){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:b,offset:c||0,bgsize:g||"16px"})},getIconStyle:function(a,b,c,g,f){var h;a&&(a=a.toLowerCase(),b&&(h=this.icons[a+"-rtl"]),h||(h=this.icons[a]));a=c||h&&h.path||"";g=g||h&&h.offset;f=f||h&&h.bgsize||"16px";a&&(a=a.replace(/'/g,"\\'"));return a&&"background-image:url('"+CKEDITOR.getUrl(a)+"');background-position:0 "+g+"px;background-size:"+f+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,
{getUiColor:function(){return this.uiColor},setUiColor:function(b){var d=a(CKEDITOR.document);return(this.setUiColor=function(a){this.uiColor=a;var b=CKEDITOR.skin.chameleon,e="",c="";"function"==typeof b&&(e=b(this,"editor"),c=b(this,"panel"));a=[[g,a]];h([d],e,a);h(k,c,a)}).call(this,b)}});var m="cke_ui_color",k=[],g=/\$color/g;CKEDITOR.on("instanceLoaded",function(b){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var d=b.editor;b=function(b){b=(b.data[0]||b.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument();
if(!b.getById("cke_ui_color")){b=a(b);k.push(b);var e=d.getUiColor();e&&h([b],CKEDITOR.skin.chameleon(d,"panel"),[[g,e]])}};d.on("panelShow",b);d.on("menuShow",b);d.config.uiColor&&d.setUiColor(d.config.uiColor)}})}(),function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=!1;else{var c=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);c.appendTo(CKEDITOR.document.getHead());
try{var f=c.getComputedStyle("border-top-color"),b=c.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!f||f!=b)}catch(a){CKEDITOR.env.hc=!1}c.remove()}CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc");CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}");CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(c=CKEDITOR._.pending)for(delete CKEDITOR._.pending,f=0;f<c.length;f++)CKEDITOR.editor.prototype.constructor.apply(c[f][0],c[f][1]),CKEDITOR.add(c[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 c=function(){return function(a,b){for(var c=a.match(/[^#]./g),f=0;3>f;f++){var k=f,g;g=parseInt(c[f],16);g=("0"+(0>b?0|g*(1+b):0|g+(255-g)*b).toString(16)).slice(-2);c[k]=g}return"#"+c.join("")}}(),f=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(b,c){return a.output({from:b,to:c})}}(),b={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ {defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_bottom [{defaultGradient}border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [{defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [{defaultGradient}outline-color:{defaultBorder};border-top-color:{defaultBorder};] {id} .cke_dialog_tab [{lightGradient}border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [{mediumGradient}] {id} .cke_dialog_contents [border-top-color:{defaultBorder};] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [background:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};] {id} .cke_toolgroup [{lightGradient}border-color:{defaultBorder};] {id} a.cke_button_off:hover, {id} a.cke_button_off:focus, {id} a.cke_button_off:active [{mediumGradient}] {id} .cke_button_on [{ckeButtonOn}] {id} .cke_toolbar_separator [background-color: {ckeToolbarSeparator};] {id} .cke_combo_button [border-color:{defaultBorder};{lightGradient}] {id} a.cke_combo_button:hover, {id} a.cke_combo_button:focus, {id} .cke_combo_on a.cke_combo_button [border-color:{defaultBorder};{mediumGradient}] {id} .cke_path_item [color:{elementsPathColor};] {id} a.cke_path_item:hover, {id} a.cke_path_item:focus, {id} a.cke_path_item:active [background-color:{elementsPathBg};] {id}.cke_panel [border-color:{defaultBorder};] "),
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(a,h){var n=a.uiColor,n={id:"."+a.id,defaultBorder:c(n,-.1),defaultGradient:f(c(n,.9),n),lightGradient:f(c(n,1),c(n,.7)),mediumGradient:f(c(n,.8),c(n,.5)),ckeButtonOn:f(c(n,.6),c(n,.7)),ckeResizer:c(n,-.4),ckeToolbarSeparator:c(n,.5),ckeColorauto:c(n,.8),dialogBody:c(n,.7),dialogTabSelected:f("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:c(n,-.6),elementsPathBg:n,menubuttonIcon:c(n,.5),menubuttonIconHover:c(n,.3)};return b[h].output(n).replace(/\[/g,"{").replace(/\]/g,
"}")}}(),CKEDITOR.plugins.add("basicstyles",{init:function(c){var f=0,b=function(b,h,g,e){if(e){e=new CKEDITOR.style(e);var d=a[g];d.unshift(e);c.attachStyleStateChange(e,function(a){!c.readOnly&&c.getCommand(g).setState(a)});c.addCommand(g,new CKEDITOR.styleCommand(e,{contentForms:d}));c.ui.addButton&&c.ui.addButton(b,{label:h,command:g,toolbar:"basicstyles,"+(f+=10)})}},a={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"]},h=c.config,n=c.lang.basicstyles;b("Bold",n.bold,"bold",h.coreStyles_bold);b("Italic",n.italic,"italic",h.coreStyles_italic);b("Underline",n.underline,"underline",h.coreStyles_underline);b("Strike",n.strike,"strike",h.coreStyles_strike);b("Subscript",n.subscript,
"subscript",h.coreStyles_subscript);b("Superscript",n.superscript,"superscript",h.coreStyles_superscript);c.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}}),CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"},CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"},CKEDITOR.config.coreStyles_underline={element:"u"},CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"},CKEDITOR.config.coreStyles_subscript={element:"sub"},
CKEDITOR.config.coreStyles_superscript={element:"sup"},CKEDITOR.plugins.add("dialogui",{onLoad:function(){var c=function(a){this._||(this._={});this._["default"]=this._.initValue=a["default"]||"";this._.required=a.required||!1;for(var b=[this._],d=1;d<arguments.length;d++)b.push(arguments[d]);b.push(!0);CKEDITOR.tools.extend.apply(CKEDITOR.tools,b);return this._},f={build:function(a,b,d){return new CKEDITOR.ui.dialog.textInput(a,b,d)}},b={build:function(a,b,d){return new CKEDITOR.ui.dialog[b.type](a,
b,d)}},a={isChanged:function(){return this.getValue()!=this.getInitValue()},reset:function(a){this.setValue(this.getInitValue(),a)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._["default"]},getInitValue:function(){return this._.initValue}},h=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(a,b){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",b)}},!0),n=/^on([A-Z]\w+)/,m=function(a){for(var b in a)(n.test(b)||"title"==b||"type"==b)&&delete a[b];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(a,b,d,f){if(!(4>arguments.length)){var h=c.call(this,
b);h.labelId=CKEDITOR.tools.getNextId()+"_label";this._.children=[];var k={role:b.role||"presentation"};b.includeLabel&&(k["aria-labelledby"]=h.labelId);CKEDITOR.ui.dialog.uiElement.call(this,a,b,d,"div",null,k,function(){var d=[],c=b.required?" cke_required":"";"horizontal"!=b.labelLayout?d.push('\x3clabel class\x3d"cke_dialog_ui_labeled_label'+c+'" ',' id\x3d"'+h.labelId+'"',h.inputId?' for\x3d"'+h.inputId+'"':"",(b.labelStyle?' style\x3d"'+b.labelStyle+'"':"")+"\x3e",b.label,"\x3c/label\x3e",'\x3cdiv class\x3d"cke_dialog_ui_labeled_content"',
b.controlStyle?' style\x3d"'+b.controlStyle+'"':"",' role\x3d"presentation"\x3e',f.call(this,a,b),"\x3c/div\x3e"):(c={type:"hbox",widths:b.widths,padding:0,children:[{type:"html",html:'\x3clabel class\x3d"cke_dialog_ui_labeled_label'+c+'" id\x3d"'+h.labelId+'" for\x3d"'+h.inputId+'"'+(b.labelStyle?' style\x3d"'+b.labelStyle+'"':"")+"\x3e"+CKEDITOR.tools.htmlEncode(b.label)+"\x3c/label\x3e"},{type:"html",html:'\x3cspan class\x3d"cke_dialog_ui_labeled_content"'+(b.controlStyle?' style\x3d"'+b.controlStyle+
'"':"")+"\x3e"+f.call(this,a,b)+"\x3c/span\x3e"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(a,c,d));return d.join("")})}},textInput:function(a,b,d){if(!(3>arguments.length)){c.call(this,b);var f=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",h={"class":"cke_dialog_ui_input_"+b.type,id:f,type:b.type};b.validate&&(this.validate=b.validate);b.maxLength&&(h.maxlength=b.maxLength);b.size&&(h.size=b.size);b.inputStyle&&(h.style=b.inputStyle);var m=this,n=!1;a.on("load",function(){m.getInputElement().on("keydown",
function(a){13==a.data.getKeystroke()&&(n=!0)});m.getInputElement().on("keyup",function(b){13==b.data.getKeystroke()&&n&&(a.getButton("ok")&&setTimeout(function(){a.getButton("ok").click()},0),n=!1);m.bidi&&k.call(m,b)},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,a,b,d,function(){var a=['\x3cdiv class\x3d"cke_dialog_ui_input_',b.type,'" role\x3d"presentation"'];b.width&&a.push('style\x3d"width:'+b.width+'" ');a.push("\x3e\x3cinput ");h["aria-labelledby"]=this._.labelId;this._.required&&
(h["aria-required"]=this._.required);for(var d in h)a.push(d+'\x3d"'+h[d]+'" ');a.push(" /\x3e\x3c/div\x3e");return a.join("")})}},textarea:function(a,b,d){if(!(3>arguments.length)){c.call(this,b);var f=this,h=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",m={};b.validate&&(this.validate=b.validate);m.rows=b.rows||5;m.cols=b.cols||20;m["class"]="cke_dialog_ui_input_textarea "+(b["class"]||"");"undefined"!=typeof b.inputStyle&&(m.style=b.inputStyle);b.dir&&(m.dir=b.dir);if(f.bidi)a.on("load",
function(){f.getInputElement().on("keyup",k)},f);CKEDITOR.ui.dialog.labeledElement.call(this,a,b,d,function(){m["aria-labelledby"]=this._.labelId;this._.required&&(m["aria-required"]=this._.required);var a=['\x3cdiv class\x3d"cke_dialog_ui_input_textarea" role\x3d"presentation"\x3e\x3ctextarea id\x3d"',h,'" '],b;for(b in m)a.push(b+'\x3d"'+CKEDITOR.tools.htmlEncode(m[b])+'" ');a.push("\x3e",CKEDITOR.tools.htmlEncode(f._["default"]),"\x3c/textarea\x3e\x3c/div\x3e");return a.join("")})}},checkbox:function(a,
b,d){if(!(3>arguments.length)){var f=c.call(this,b,{"default":!!b["default"]});b.validate&&(this.validate=b.validate);CKEDITOR.ui.dialog.uiElement.call(this,a,b,d,"span",null,null,function(){var d=CKEDITOR.tools.extend({},b,{id:b.id?b.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),c=[],h=CKEDITOR.tools.getNextId()+"_label",k={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":h};m(d);b["default"]&&(k.checked="checked");"undefined"!=typeof d.inputStyle&&(d.style=d.inputStyle);
f.checkbox=new CKEDITOR.ui.dialog.uiElement(a,d,c,"input",null,k);c.push(' \x3clabel id\x3d"',h,'" for\x3d"',k.id,'"'+(b.labelStyle?' style\x3d"'+b.labelStyle+'"':"")+"\x3e",CKEDITOR.tools.htmlEncode(b.label),"\x3c/label\x3e");return c.join("")})}},radio:function(a,b,d){if(!(3>arguments.length)){c.call(this,b);this._["default"]||(this._["default"]=this._.initValue=b.items[0][1]);b.validate&&(this.validate=b.validate);var f=[],h=this;b.role="radiogroup";b.includeLabel=!0;CKEDITOR.ui.dialog.labeledElement.call(this,
a,b,d,function(){for(var d=[],c=[],k=(b.id?b.id:CKEDITOR.tools.getNextId())+"_radio",n=0;n<b.items.length;n++){var v=b.items[n],x=void 0!==v[2]?v[2]:v[0],B=void 0!==v[1]?v[1]:v[0],w=CKEDITOR.tools.getNextId()+"_radio_input",A=w+"_label",w=CKEDITOR.tools.extend({},b,{id:w,title:null,type:null},!0),x=CKEDITOR.tools.extend({},w,{title:x},!0),F={type:"radio","class":"cke_dialog_ui_radio_input",name:k,value:B,"aria-labelledby":A},y=[];h._["default"]==B&&(F.checked="checked");m(w);m(x);"undefined"!=typeof w.inputStyle&&
(w.style=w.inputStyle);w.keyboardFocusable=!0;f.push(new CKEDITOR.ui.dialog.uiElement(a,w,y,"input",null,F));y.push(" ");new CKEDITOR.ui.dialog.uiElement(a,x,y,"label",null,{id:A,"for":F.id},v[0]);d.push(y.join(""))}new CKEDITOR.ui.dialog.hbox(a,f,d,c);return c.join("")});this._.children=f}},button:function(a,b,d){if(arguments.length){"function"==typeof b&&(b=b(a.getParentEditor()));c.call(this,b,{disabled:b.disabled||!1});CKEDITOR.event.implementOn(this);var f=this;a.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 h=CKEDITOR.tools.extend({},b);delete h.style;var k=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,a,h,d,"a",null,{style:b.style,href:"javascript:void(0)",title:b.label,hidefocus:"true","class":b["class"],role:"button","aria-labelledby":k},'\x3cspan id\x3d"'+k+'" class\x3d"cke_dialog_ui_button"\x3e'+
CKEDITOR.tools.htmlEncode(b.label)+"\x3c/span\x3e")}},select:function(a,b,d){if(!(3>arguments.length)){var f=c.call(this,b);b.validate&&(this.validate=b.validate);f.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,a,b,d,function(){var d=CKEDITOR.tools.extend({},b,{id:b.id?b.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),c=[],h=[],k={id:f.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};c.push('\x3cdiv class\x3d"cke_dialog_ui_input_',
b.type,'" role\x3d"presentation"');b.width&&c.push('style\x3d"width:'+b.width+'" ');c.push("\x3e");void 0!==b.size&&(k.size=b.size);void 0!==b.multiple&&(k.multiple=b.multiple);m(d);for(var n=0,v;n<b.items.length&&(v=b.items[n]);n++)h.push('\x3coption value\x3d"',CKEDITOR.tools.htmlEncode(void 0!==v[1]?v[1]:v[0]).replace(/"/g,"\x26quot;"),'" /\x3e ',CKEDITOR.tools.htmlEncode(v[0]));"undefined"!=typeof d.inputStyle&&(d.style=d.inputStyle);f.select=new CKEDITOR.ui.dialog.uiElement(a,d,c,"select",null,
k,h.join(""));c.push("\x3c/div\x3e");return c.join("")})}},file:function(a,b,d){if(!(3>arguments.length)){void 0===b["default"]&&(b["default"]="");var f=CKEDITOR.tools.extend(c.call(this,b),{definition:b,buttons:[]});b.validate&&(this.validate=b.validate);a.on("load",function(){CKEDITOR.document.getById(f.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,a,b,d,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"',b.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(a,b,d){var f=this;if(!(3>arguments.length)){c.call(this,b);b.validate&&(this.validate=b.validate);var h=CKEDITOR.tools.extend({},b),k=h.onClick;h.className=(h.className?h.className+" ":"")+"cke_dialog_ui_button";h.onClick=function(d){var c=
b["for"];d=k?k.call(this,d):!1;!1!==d&&("xhr"!==d&&a.getContentElement(c[0],c[1]).submit(),this.disable())};a.on("load",function(){a.getContentElement(b["for"][0],b["for"][1])._.buttons.push(f)});CKEDITOR.ui.dialog.button.call(this,a,h,d)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,b=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,d=/\/$/;return function(c,f,h){if(!(3>arguments.length)){var k=[],m=f.html;"\x3c"!=m.charAt(0)&&(m="\x3cspan\x3e"+m+"\x3c/span\x3e");var n=f.focus;if(n){var v=this.focus;
this.focus=function(){("function"==typeof n?n:v).call(this);this.fire("focus")};f.isFocusable&&(this.isFocusable=this.isFocusable);this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,c,f,k,"span",null,null,"");k=k.join("").match(a);m=m.match(b)||["","",""];d.test(m[1])&&(m[1]=m[1].slice(0,-1),m[2]="/"+m[2]);h.push([m[1]," ",k[1]||"",m[2]].join(""))}}}(),fieldset:function(a,b,d,c,f){var h=f.label;this._={children:b};CKEDITOR.ui.dialog.uiElement.call(this,a,f,c,"fieldset",null,null,function(){var a=
[];h&&a.push("\x3clegend"+(f.labelStyle?' style\x3d"'+f.labelStyle+'"':"")+"\x3e"+h+"\x3c/legend\x3e");for(var b=0;b<d.length;b++)a.push(d[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 b=CKEDITOR.document.getById(this._.labelId);1>b.getChildCount()?(new CKEDITOR.dom.text(a,CKEDITOR.document)).appendTo(b):b.getChild(0).$.nodeValue=
a;return this},getLabel:function(){var a=CKEDITOR.document.getById(this._.labelId);return!a||1>a.getChildCount()?"":a.getChild(0).getText()},eventProcessors:h},!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,b){this.on("click",function(){b.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 b=a.getInputElement();b&&b.$.focus()},0)},select:function(){var a=this.selectParentTab();setTimeout(function(){var b=a.getInputElement();b&&(b.$.focus(),b.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(a){if(this.bidi){var b=a&&a.charAt(0);(b="‪"==b?"ltr":"‫"==b?"rtl":null)&&(a=a.slice(1));this.setDirectionMarker(b)}a||(a="");return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},
getValue:function(){var a=CKEDITOR.ui.dialog.uiElement.prototype.getValue.call(this);if(this.bidi&&a){var b=this.getDirectionMarker();b&&(a=("ltr"==b?"‪":"‫")+a)}return a},setDirectionMarker:function(a){var b=this.getInputElement();a?b.setAttributes({dir:a,"data-cke-dir-marker":a}):this.getDirectionMarker()&&b.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:!0},a,!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,b,d){var c=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),f=this.getInputElement().$;c.$.text=a;c.$.value=void 0===b||null===b?a:b;void 0===d||null===d?CKEDITOR.env.ie?f.add(c.$):f.add(c.$,null):f.add(c.$,d);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},a,!0);CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(a,b){this.getInputElement().$.checked=a;!b&&this.fire("change",{value:a})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(a,
b){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version)return h.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",b);return null}},keyboardFocusable:!0},a,!0);CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(a,b){for(var d=this._.children,c,f=0;f<d.length&&(c=d[f]);f++)c.getElement().$.checked=
c.getValue()==a;!b&&this.fire("change",{value:a})},getValue:function(){for(var a=this._.children,b=0;b<a.length;b++)if(a[b].getElement().$.checked)return a[b].getValue();return null},accessKeyUp:function(){var a=this._.children,b;for(b=0;b<a.length;b++)if(a[b].getElement().$.checked){a[b].getElement().focus();return}a[0].getElement().focus()},eventProcessors:{onChange:function(a,b){if(!CKEDITOR.env.ie||8<CKEDITOR.env.version)return h.onChange.apply(this,arguments);a.on("load",function(){for(var a=
this._.children,b=this,c=0;c<a.length;c++)a[c].getElement().on("propertychange",function(a){a=a.data.$;"checked"==a.propertyName&&this.$.checked&&b.fire("change",{value:this.getAttribute("value")})})},this);this.on("change",b);return null}}},a,!0);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,a,{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 b=/^on([A-Z]\w+)/,d,c=function(a,b,d,c){a.on("formLoaded",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},reset:function(){function a(){d.$.open();
var g="";c.size&&(g=c.size-(CKEDITOR.env.ie?7:0));var x=b.frameId+"_input";d.$.write(['\x3chtml dir\x3d"'+m+'" lang\x3d"'+n+'"\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"'+m+'" lang\x3d"'+n+'" action\x3d"',CKEDITOR.tools.htmlEncode(c.action),'"\x3e\x3clabel id\x3d"',b.labelId,'" for\x3d"',x,'" style\x3d"display:none"\x3e',CKEDITOR.tools.htmlEncode(c.label),
'\x3c/label\x3e\x3cinput style\x3d"width:100%" id\x3d"',x,'" aria-labelledby\x3d"',b.labelId,'" type\x3d"file" name\x3d"',CKEDITOR.tools.htmlEncode(c.id||"cke_upload"),'" size\x3d"',CKEDITOR.tools.htmlEncode(0<g?g:""),'" /\x3e\x3c/form\x3e\x3c/body\x3e\x3c/html\x3e\x3cscript\x3e',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+h+");","window.onbeforeunload \x3d function() {window.parent.CKEDITOR.tools.callFunction("+k+")}","\x3c/script\x3e"].join(""));
d.$.close();for(g=0;g<f.length;g++)f[g].enable()}var b=this._,d=CKEDITOR.document.getById(b.frameId).getFrameDocument(),c=b.definition,f=b.buttons,h=this.formLoadedNumber,k=this.formUnloadNumber,m=b.dialog._.editor.lang.dir,n=b.dialog._.editor.langCode;h||(h=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(h);
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,b){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",b)}},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",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,b,d){for(var c=b.children,f,h=[],k=[],m=0;m<c.length&&(f=c[m]);m++){var n=[];h.push(n);k.push(CKEDITOR.dialog._.uiElementBuilders[f.type].build(a,f,n))}return new CKEDITOR.ui.dialog[b.type](a,k,h,d,b)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,CKEDITOR.DIALOG_STATE_IDLE=1,CKEDITOR.DIALOG_STATE_BUSY=2,function(){function c(){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 f(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),d=b+1;d<b+a;d++)if(this._.tabs[this._.tabIdList[d%a]][0].$.offsetHeight)return this._.tabIdList[d%a];return null}function b(a,b){for(var d=a.$.getElementsByTagName("input"),c=0,e=d.length;c<e;c++){var g=new CKEDITOR.dom.element(d[c]);
"text"==g.getAttribute("type").toLowerCase()&&(b?(g.setAttribute("value",g.getCustomData("fake_value")||""),g.removeCustomData("fake_value")):(g.setCustomData("fake_value",g.getAttribute("value")),g.setAttribute("value","")))}}function a(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 h(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")}
function n(a){var b=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",t).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),e=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();e.unselectable();return{element:b,parts:{dialog:b.getChild(0),title:c,close:e,tabs:d.getChild(2),contents:d.getChild([3,0,0,0]),footer:d.getChild([3,0,1,0])}}}function m(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 g(a,b){this._={dialog:a};CKEDITOR.tools.extend(this,b)}function e(a){function b(d){var h=a.getSize(),k=CKEDITOR.document.getWindow().getViewPaneSize(),m=d.data.$.screenX,n=d.data.$.screenY,p=m-c.x,u=n-c.y;c={x:m,y:n};e.x+=p;e.y+=u;a.move(e.x+l[3]<f?-l[3]:e.x-l[1]>k.width-h.width-f?k.width-h.width+("rtl"==g.lang.dir?0:l[1]):e.x,e.y+l[0]<f?-l[0]:e.y-l[2]>k.height-h.height-f?k.height-h.height+l[2]:e.y,1);d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mousemove",
b);CKEDITOR.document.removeListener("mouseup",d);if(CKEDITOR.env.ie6Compat){var a=y.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",d)}}var c=null,e=null,g=a.getParentEditor(),f=g.config.dialog_magnetDistance,l=CKEDITOR.skin.margins||[0,0,0,0];"undefined"==typeof f&&(f=20);a.parts.title.on("mousedown",function(g){c={x:g.data.$.screenX,y:g.data.$.screenY};CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",d);e=a.getPosition();if(CKEDITOR.env.ie6Compat){var f=
y.getChild(0).getFrameDocument();f.on("mousemove",b);f.on("mouseup",d)}g.data.preventDefault()},a)}function d(a){function b(d){var n="rtl"==g.lang.dir,p=m.width,u=m.height,r=p+(d.data.$.screenX-k.x)*(n?-1:1)*(a._.moved?1:2),t=u+(d.data.$.screenY-k.y)*(a._.moved?1:2),z=a._.element.getFirst(),z=n&&z.getComputedStyle("right"),v=a.getPosition();v.y+t>h.height&&(t=h.height-v.y);(n?z:v.x)+r>h.width&&(r=h.width-(n?z:v.x));if(e==CKEDITOR.DIALOG_RESIZE_WIDTH||e==CKEDITOR.DIALOG_RESIZE_BOTH)p=Math.max(c.minWidth||
0,r-f);if(e==CKEDITOR.DIALOG_RESIZE_HEIGHT||e==CKEDITOR.DIALOG_RESIZE_BOTH)u=Math.max(c.minHeight||0,t-l);a.resize(p,u);a._.moved||a.layout();d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mouseup",d);CKEDITOR.document.removeListener("mousemove",b);n&&(n.remove(),n=null);if(CKEDITOR.env.ie6Compat){var a=y.getChild(0).getFrameDocument();a.removeListener("mouseup",d);a.removeListener("mousemove",b)}}var c=a.definition,e=c.resizable;if(e!=CKEDITOR.DIALOG_RESIZE_NONE){var g=a.getParentEditor(),
f,l,h,k,m,n,p=CKEDITOR.tools.addFunction(function(c){m=a.getSize();var e=a.parts.contents;e.$.getElementsByTagName("iframe").length&&(n=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_dialog_resize_cover" style\x3d"height: 100%; position: absolute; width: 100%;"\x3e\x3c/div\x3e'),e.append(n));l=m.height-a.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks));f=m.width-a.parts.contents.getSize("width",1);k={x:c.screenX,y:c.screenY};h=CKEDITOR.document.getWindow().getViewPaneSize();
CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",d);CKEDITOR.env.ie6Compat&&(e=y.getChild(0).getFrameDocument(),e.on("mousemove",b),e.on("mouseup",d));c.preventDefault&&c.preventDefault()});a.on("load",function(){var b="";e==CKEDITOR.DIALOG_RESIZE_WIDTH?b=" cke_resizer_horizontal":e==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(b=" cke_resizer_vertical");b=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_resizer'+b+" cke_resizer_"+g.lang.dir+'" title\x3d"'+CKEDITOR.tools.htmlEncode(g.lang.common.resize)+
'" onmousedown\x3d"CKEDITOR.tools.callFunction('+p+', event )"\x3e'+("ltr"==g.lang.dir?"◢":"◣")+"\x3c/div\x3e");a.parts.footer.append(b,1)});g.on("destroy",function(){CKEDITOR.tools.removeFunction(p)})}}function l(a){a.data.preventDefault(1)}function p(a){var b=CKEDITOR.document.getWindow(),d=a.config,c=CKEDITOR.skinName||a.config.skin,e=d.dialog_backgroundCoverColor||("moono-lisa"==c?"black":"white"),c=d.dialog_backgroundCoverOpacity,g=d.baseFloatZIndex,d=CKEDITOR.tools.genKey(e,c,g),f=F[d];f?f.show():
(g=['\x3cdiv tabIndex\x3d"-1" style\x3d"position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",g,"; top: 0px; left: 0px; ",CKEDITOR.env.ie6Compat?"":"background-color: "+e,'" class\x3d"cke_dialog_background_cover"\x3e'],CKEDITOR.env.ie6Compat&&(e="\x3chtml\x3e\x3cbody style\x3d\\'background-color:"+e+";\\'\x3e\x3c/body\x3e\x3c/html\x3e",g.push('\x3ciframe hidefocus\x3d"true" frameborder\x3d"0" id\x3d"cke_dialog_background_iframe" src\x3d"javascript:'),g.push("void((function(){"+encodeURIComponent("document.open();("+
CKEDITOR.tools.fixDomain+")();document.write( '"+e+"' );document.close();")+"})())"),g.push('" style\x3d"position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity\x3d0)"\x3e\x3c/iframe\x3e')),g.push("\x3c/div\x3e"),f=CKEDITOR.dom.element.createFromHtml(g.join("")),f.setOpacity(void 0!==c?c:.5),f.on("keydown",l),f.on("keypress",l),f.on("keyup",l),f.appendTo(CKEDITOR.document.getBody()),F[d]=f);a.focusManager.add(f);y=f;a=function(){var a=b.getViewPaneSize();
f.setStyles({width:a.width+"px",height:a.height+"px"})};var h=function(){var a=b.getScrollPosition(),d=CKEDITOR.dialog._.currentTop;f.setStyles({left:a.x+"px",top:a.y+"px"});if(d){do a=d.getPosition(),d.move(a.x,a.y);while(d=d._.parentDialog)}};A=a;b.on("resize",a);a();CKEDITOR.env.mac&&CKEDITOR.env.webkit||f.focus();if(CKEDITOR.env.ie6Compat){var k=function(){h();arguments.callee.prevScrollHandler.apply(this,arguments)};b.$.setTimeout(function(){k.prevScrollHandler=window.onscroll||function(){};
window.onscroll=k},0);h()}}function q(a){y&&(a.focusManager.remove(y),a=CKEDITOR.document.getWindow(),y.hide(),a.removeListener("resize",A),CKEDITOR.env.ie6Compat&&a.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0),A=null)}var u=CKEDITOR.tools.cssLength,t='\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,g){function l(){var a=F._.focusList;a.sort(function(a,b){return a.tabIndex!=b.tabIndex?b.tabIndex-a.tabIndex:a.focusIndex-b.focusIndex});for(var b=a.length,d=0;d<b;d++)a[d].focusIndex=d}function k(a){var b=F._.focusList;a=a||0;if(!(1>b.length)){var d=F._.currentFocusIndex;F._.tabBarMode&&0>a&&(d=0);try{b[d].getInputElement().$.blur()}catch(c){}var e=d,g=1<F._.pageCount;do{e+=a;if(g&&!F._.tabBarMode&&(e==b.length||-1==e)){F._.tabBarMode=!0;F._.tabs[F._.currentTabId][0].focus();
F._.currentFocusIndex=-1;return}e=(e+b.length)%b.length;if(e==d)break}while(a&&!b[e].isFocusable());b[e].focus();"text"==b[e].type&&b[e].select()}}function m(a){if(F==CKEDITOR.dialog._.currentTop){var d=a.data.getKeystroke(),e="rtl"==b.lang.dir,g=[37,38,39,40];B=A=0;if(9==d||d==CKEDITOR.SHIFT+9)k(d==CKEDITOR.SHIFT+9?-1:1),B=1;else if(d==CKEDITOR.ALT+121&&!F._.tabBarMode&&1<F.getPageCount())F._.tabBarMode=!0,F._.tabs[F._.currentTabId][0].focus(),F._.currentFocusIndex=-1,B=1;else if(-1!=CKEDITOR.tools.indexOf(g,
d)&&F._.tabBarMode)d=-1!=CKEDITOR.tools.indexOf([e?39:37,38],d)?c.call(F):f.call(F),F.selectPage(d),F._.tabs[d][0].focus(),B=1;else if(13!=d&&32!=d||!F._.tabBarMode)if(13==d)d=a.data.getTarget(),d.is("a","button","select","textarea")||d.is("input")&&"button"==d.$.type||((d=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(d.click,0,d),B=1),A=1;else if(27==d)(d=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(d.click,0,d):!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),A=1;else return;else this.selectPage(this._.currentTabId),
this._.tabBarMode=!1,this._.currentFocusIndex=-1,k(1),B=1;p(a)}}function p(a){B?a.data.preventDefault(1):A&&a.data.stopPropagation()}var u=CKEDITOR.dialog._.dialogDefinitions[g],t=CKEDITOR.tools.clone(r),v=b.config.dialog_buttonsOrder||"OS",x=b.lang.dir,q={},B,A;("OS"==v&&CKEDITOR.env.mac||"rtl"==v&&"ltr"==x||"ltr"==v&&"rtl"==x)&&t.buttons.reverse();u=CKEDITOR.tools.extend(u(b),t);u=CKEDITOR.tools.clone(u);u=new w(this,u);t=n(b);this._={editor:b,element:t.element,name:g,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=t.parts;CKEDITOR.tools.setTimeout(function(){b.fire("ariaWidget",this.parts.contents)},0,this);t={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};t["rtl"==x?"right":"left"]=0;this.parts.dialog.setStyles(t);CKEDITOR.event.call(this);this.definition=u=CKEDITOR.fire("dialogDefinition",
{name:g,definition:u},b).definition;if(!("removeDialogTabs"in b._)&&b.config.removeDialogTabs){t=b.config.removeDialogTabs.split(";");for(x=0;x<t.length;x++)if(v=t[x].split(":"),2==v.length){var y=v[0];q[y]||(q[y]=[]);q[y].push(v[1])}b._.removeDialogTabs=q}if(b._.removeDialogTabs&&(q=b._.removeDialogTabs[g]))for(x=0;x<q.length;x++)u.removeContents(q[x]);if(u.onLoad)this.on("load",u.onLoad);if(u.onShow)this.on("show",u.onShow);if(u.onHide)this.on("hide",u.onHide);if(u.onOk)this.on("ok",function(a){b.fire("saveSnapshot");
setTimeout(function(){b.fire("saveSnapshot")},0);!1===u.onOk.call(this,a)&&(a.data.hide=!1)});this.state=CKEDITOR.DIALOG_STATE_IDLE;if(u.onCancel)this.on("cancel",function(a){!1===u.onCancel.call(this,a)&&(a.data.hide=!1)});var F=this,L=function(a){var b=F._.contents,d=!1,c;for(c in b)for(var e in b[c])if(d=a.call(this,b[c][e]))return};this.on("ok",function(b){L(function(d){if(d.validate){var c=d.validate(this),e="string"==typeof c||!1===c;e&&(b.data.hide=!1,b.stop());a.call(d,!e,"string"==typeof c?
c:void 0);return e}})},this,null,0);this.on("cancel",function(a){L(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=k;var O=this._.element;b.focusManager.add(O,1);this.on("show",function(){O.on("keydown",m,this);if(CKEDITOR.env.gecko)O.on("keypress",p,this)});this.on("hide",
function(){O.removeListener("keydown",m);CKEDITOR.env.gecko&&O.removeListener("keypress",p);L(function(a){h.apply(a)})});this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",m,this,null,0)});this.on("show",function(){l();var a=1<F._.pageCount;b.config.dialog_startupFocusTab&&a?(F._.tabBarMode=!0,F._.tabs[F._.currentTabId][0].focus(),F._.currentFocusIndex=-1):this._.hasFocus||(this._.currentFocusIndex=a?-1:this._.focusList.length-1,u.onFocus?
(a=u.onFocus.call(this))&&a.focus():k(1))},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on("load",function(){var a=this.getElement(),b=a.getFirst();b.remove();b.appendTo(a)},this);e(this);d(this);(new CKEDITOR.dom.text(u.title,CKEDITOR.document)).appendTo(this.parts.title);for(x=0;x<u.contents.length;x++)(q=u.contents[x])&&this.addPage(q);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,k(1)),a.data.preventDefault())},this);x=[];q=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:u.buttons},x).getChild();this.parts.footer.setHtml(x.join(""));for(x=0;x<q.length;x++)this._.buttons[q[x].id]=q[x]};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(),e="rtl"==this._.editor.lang.dir,g="fixed"==c.getComputedStyle("position");CKEDITOR.env.ie&&c.setStyle("zoom","100%");g&&this._.position&&this._.position.x==a&&this._.position.y==b||(this._.position={x:a,y:b},g||(g=CKEDITOR.document.getWindow().getScrollPosition(),a+=g.x,b+=g.y),e&&(g=this.getSize(),a=CKEDITOR.document.getWindow().getViewPaneSize().width-g.width-a),b={top:(0<b?b:0)+"px"},
b[e?"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();null===
this._.currentTabId&&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,p(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],e=a.requiredContent,g=0;if(c){for(var f in this._.contents[a.id]){var l=this._.contents[a.id][f];"hbox"!=l.type&&"vbox"!=l.type&&l.getInputElement()&&(l.requiredContent&&!this._.editor.activeFilter.check(l.requiredContent)?l.disable():(l.enable(),g++))}!g||e&&!this._.editor.activeFilter.check(e)?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,e=(d.height-b.height)/2;CKEDITOR.env.ie6Compat||(b.height+(0<e?e: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:e)},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 q(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),e=this._.contents[a.id]={},g=c.getChild(),f=0;c=g.shift();)c.notAllowed||"hbox"==c.type||"vbox"==c.type||f++,e[c.id]=c,"function"==typeof c.getChild&&g.push.apply(g,c.getChild());f||(a.hidden=!0);b=CKEDITOR.dom.element.createFromHtml(b.join(""));b.setAttribute("role","tabpanel");c=CKEDITOR.env;e="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"',e,'"',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",e);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&&
(H(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 d in this._.tabs){var c=this._.tabs[d][0],e=this._.tabs[d][1];d!=a&&(c.removeClass("cke_dialog_tab_selected"),e.hide());e.setAttribute("aria-hidden",d!=a)}var g=this._.tabs[a];g[0].addClass("cke_dialog_tab_selected");CKEDITOR.env.ie6Compat||
CKEDITOR.env.ie7Compat?(b(g[1]),g[1].show(),setTimeout(function(){b(g[1],1)},0)):g[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(a){var b=this._.tabs[a]&&this._.tabs[a][0];b&&1!=this._.pageCount&&b.isVisible()&&(a==this._.currentTabId&&this.selectPage(c.call(this)),b.hide(),this._.pageCount--,this.updateStyle())},showPage:function(a){if(a=
this._.tabs[a]&&this._.tabs[a][0])a.show(),this._.pageCount++,this.updateStyle()},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(a,b){var 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 m(this,a,b));else{this._.focusList.splice(b,0,new m(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 r={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},v=function(a,b,d){for(var c=0,e;e=a[c];c++)if(e.id==b||d&&e[d]&&(e=v(e[d],b,d)))return e;return null},x=function(a,b,d,c,e){if(d){for(var g=0,f;f=a[g];g++){if(f.id==d)return a.splice(g,0,b),b;if(c&&f[c]&&(f=x(f[c],b,d,c,!0)))return f}if(e)return null}a.push(b);return b},B=function(a,b,d){for(var c=0,e;e=a[c];c++){if(e.id==b)return a.splice(c,1);if(d&&e[d]&&(e=B(e[d],
b,d)))return e}return null},w=function(a,b){this.dialog=a;for(var d=b.contents,c=0,e;e=d[c];c++)d[c]=e&&new g(a,e);CKEDITOR.tools.extend(this,b)};w.prototype={getContents:function(a){return v(this.contents,a)},getButton:function(a){return v(this.buttons,a)},addContents:function(a,b){return x(this.contents,a,b)},addButton:function(a,b){return x(this.buttons,a,b)},removeContents:function(a){B(this.contents,a)},removeButton:function(a){B(this.buttons,a)}};g.prototype={get:function(a){return v(this.elements,
a,"children")},add:function(a,b){return x(this.elements,a,b,"children")},remove:function(a){B(this.elements,a,"children")}};var A,F={},y,C={},D=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,d=a.data.$.altKey,c=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode);(b=C[(b?"CTRL+":"")+(d?"ALT+":"")+(c?"SHIFT+":"")+e])&&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,e=String.fromCharCode(a.data.$.keyCode);(b=C[(b?"CTRL+":"")+(d?"ALT+":"")+(c?"SHIFT+":"")+e])&&b.length&&(b=b[b.length-1],b.keyup&&(b.keyup.call(b.uiElement,b.dialog,b.key),a.data.preventDefault()))},H=function(a,b,d,c,e){(C[d]||(C[d]=[])).push({uiElement:a,dialog:b,key:d,keyup:e||a.accessKeyUp,keydown:c||a.accessKeyDown})},J=function(a){for(var b in C){for(var d=C[b],c=d.length-1;0<=c;c--)d[c].dialog!=a&&d[c].uiElement!=a||d.splice(c,1);0===d.length&&delete C[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,e,g,f){if(!(4>arguments.length)){var l=(c.call?c(b):c)||"div",h=["\x3c",l," "],k=(e&&e.call?e(b):e)||{},m=(g&&g.call?g(b):g)||{},n=(f&&f.call?f.call(this,a,b):f)||"",p=this.domId=m.id||CKEDITOR.tools.getNextId()+"_uiElement";b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)&&(k.display="none",this.notAllowed=!0);m.id=p;var u={};b.type&&(u["cke_dialog_ui_"+
b.type]=1);b.className&&(u[b.className]=1);b.disabled&&(u.cke_disabled=1);for(var r=m["class"]&&m["class"].split?m["class"].split(" "):[],p=0;p<r.length;p++)r[p]&&(u[r[p]]=1);r=[];for(p in u)r.push(p);m["class"]=r.join(" ");b.title&&(m.title=b.title);u=(b.style||"").split(";");b.align&&(r=b.align,k["margin-left"]="left"==r?0:"auto",k["margin-right"]="right"==r?0:"auto");for(p in k)u.push(p+":"+k[p]);b.hidden&&u.push("display:none");for(p=u.length-1;0<=p;p--)""===u[p]&&u.splice(p,1);0<u.length&&(m.style=
(m.style?m.style+"; ":"")+u.join("; "));for(p in m)h.push(p+'\x3d"'+CKEDITOR.tools.htmlEncode(m[p])+'" ');h.push("\x3e",n,"\x3c/",l,"\x3e");d.push(h.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&&H(this,a,"CTRL+"+b.accessKey);var L=this;a.on("load",function(){var b=L.getInputElement();if(b){var d=L.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;L.fire("focus");
d&&this.addClass(d)});b.on("blur",function(){L.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=L.focusIndex}))}},hbox:function(a,b,d,c,e){if(!(4>arguments.length)){this._||(this._={});var g=this._.children=b,f=e&&e.widths||null,l=e&&e.height||null,h,k={role:"presentation"};e&&e.align&&(k.align=e.align);CKEDITOR.ui.dialog.uiElement.call(this,
a,e||{type:"hbox"},c,"table",{},k,function(){var a=['\x3ctbody\x3e\x3ctr class\x3d"cke_dialog_ui_hbox"\x3e'];for(h=0;h<d.length;h++){var b="cke_dialog_ui_hbox_child",c=[];0===h&&(b="cke_dialog_ui_hbox_first");h==d.length-1&&(b="cke_dialog_ui_hbox_last");a.push('\x3ctd class\x3d"',b,'" role\x3d"presentation" ');f?f[h]&&c.push("width:"+u(f[h])):c.push("width:"+Math.floor(100/d.length)+"%");l&&c.push("height:"+u(l));e&&void 0!==e.padding&&c.push("padding:"+u(e.padding));CKEDITOR.env.ie&&CKEDITOR.env.quirks&&
g[h].align&&c.push("text-align:"+g[h].align);0<c.length&&a.push('style\x3d"'+c.join("; ")+'" ');a.push("\x3e",d[h],"\x3c/td\x3e")}a.push("\x3c/tr\x3e\x3c/tbody\x3e");return a.join("")})}},vbox:function(a,b,d,c,e){if(!(3>arguments.length)){this._||(this._={});var g=this._.children=b,f=e&&e.width||null,l=e&&e.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"vbox"},c,"div",null,{role:"presentation"},function(){var b=['\x3ctable role\x3d"presentation" cellspacing\x3d"0" border\x3d"0" '];
b.push('style\x3d"');e&&e.expand&&b.push("height:100%;");b.push("width:"+u(f||"100%"),";");CKEDITOR.env.webkit&&b.push("float:none;");b.push('"');b.push('align\x3d"',CKEDITOR.tools.htmlEncode(e&&e.align||("ltr"==a.getParentEditor().lang.dir?"left":"right")),'" ');b.push("\x3e\x3ctbody\x3e");for(var c=0;c<d.length;c++){var h=[];b.push('\x3ctr\x3e\x3ctd role\x3d"presentation" ');f&&h.push("width:"+u(f||"100%"));l?h.push("height:"+u(l[c])):e&&e.expand&&h.push("height:"+Math.floor(100/d.length)+"%");
e&&void 0!==e.padding&&h.push("padding:"+u(e.padding));CKEDITOR.env.ie&&CKEDITOR.env.quirks&&g[c].align&&h.push("text-align:"+g[c].align);0<h.length&&b.push('style\x3d"',h.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)})},e;for(e in a)if(d=e.match(b))this.eventProcessors[e]?this.eventProcessors[e].call(this,this._.dialog,a[e]):c(this,this._.dialog,d[1].toLowerCase(),a[e]);return this},eventProcessors:{onLoad:function(a,b){a.on("load",b,this)},onShow:function(a,b){a.on("show",b,this)},onHide:function(a,b){a.on("hide",b,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},
disable:function(){var a=this.getElement();this.getInputElement().setAttribute("disabled","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,e,g=[],f=[],l=0;l<c.length&&(e=c[l]);l++){var h=[];g.push(h);f.push(CKEDITOR.dialog._.uiElementBuilders[e.type].build(a,e,h))}return new CKEDITOR.ui.dialog[b.type](a,
f,g,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){var b=this.tabId;a.openDialog(this.dialogName,function(a){b&&a.selectPage(b)})},canUndo:!1,editorFocus:1};(function(){var a=/^([a]|[^a])+$/,b=/^\d*$/,d=/^\d*(?:\.\d+)?$/,c=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,e=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,
g=/^(\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,e=[],g;for(g=0;g<a.length;g++)if("function"==typeof a[g])e.push(a[g]);else break;g<a.length&&"string"==typeof a[g]&&(d=a[g],g++);g<a.length&&"number"==typeof a[g]&&(c=a[g]);var f=c==CKEDITOR.VALIDATE_AND?!0:!1;for(g=0;g<e.length;g++)f=c==CKEDITOR.VALIDATE_AND?f&&
e[g](b):f||e[g](b);return f?!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 e.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 g.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 F)F[d].remove();F={}}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&&p(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 q(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(c){c.on("doubleclick",function(f){f.data.dialog&&c.openDialog(f.data.dialog)},null,null,999)}}),"use strict",function(){function c(b,a){CKEDITOR.tools.extend(this,a,{editor:b,id:"cke-"+CKEDITOR.tools.getUniqueId(),area:b._.notificationArea});a.type||(this.type="info");this.element=this._createElement();b.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(this.element)}
function f(b){var a=this;this.editor=b;this.notifications=[];this.element=this._createElement();this._uiBuffer=CKEDITOR.tools.eventsBuffer(10,this._layout,this);this._changeBuffer=CKEDITOR.tools.eventsBuffer(500,this._layout,this);b.on("destroy",function(){a._removeListeners();a.element.remove()})}CKEDITOR.plugins.add("notification",{init:function(b){function a(a){var b=new CKEDITOR.dom.element("div");b.setStyles({position:"fixed","margin-left":"-9999px"});b.setAttributes({"aria-live":"assertive",
"aria-atomic":"true"});b.setText(a);CKEDITOR.document.getBody().append(b);setTimeout(function(){b.remove()},100)}b._.notificationArea=new f(b);b.showNotification=function(a,c,f){var k,g;"progress"==c?k=f:g=f;a=new CKEDITOR.plugins.notification(b,{message:a,type:c,progress:k,duration:g});a.show();return a};b.on("key",function(c){if(27==c.data.keyCode){var f=b._.notificationArea.notifications;f.length&&(a(b.lang.notification.closed),f[f.length-1].hide(),c.cancel())}})}});c.prototype={show:function(){!1!==
this.editor.fire("notificationShow",{notification:this})&&(this.area.add(this),this._hideAfterTimeout())},update:function(b){var a=!0;!1===this.editor.fire("notificationUpdate",{notification:this,options:b})&&(a=!1);var c=this.element,f=c.findOne(".cke_notification_message"),m=c.findOne(".cke_notification_progress"),k=b.type;c.removeAttribute("role");b.progress&&"progress"!=this.type&&(k="progress");k&&(c.removeClass(this._getClass()),c.removeAttribute("aria-label"),this.type=k,c.addClass(this._getClass()),
c.setAttribute("aria-label",this.type),"progress"!=this.type||m?"progress"!=this.type&&m&&m.remove():(m=this._createProgressElement(),m.insertBefore(f)));void 0!==b.message&&(this.message=b.message,f.setHtml(this.message));void 0!==b.progress&&(this.progress=b.progress,m&&m.setStyle("width",this._getPercentageProgress()));a&&b.important&&(c.setAttribute("role","alert"),this.isVisible()||this.area.add(this));this.duration=b.duration;this._hideAfterTimeout()},hide:function(){!1!==this.editor.fire("notificationHide",
{notification:this})&&this.area.remove(this)},isVisible:function(){return 0<=CKEDITOR.tools.indexOf(this.area.notifications,this)},_createElement:function(){var b=this,a,c,f=this.editor.lang.common.close;a=new CKEDITOR.dom.element("div");a.addClass("cke_notification");a.addClass(this._getClass());a.setAttributes({id:this.id,role:"alert","aria-label":this.type});"progress"==this.type&&a.append(this._createProgressElement());c=new CKEDITOR.dom.element("p");c.addClass("cke_notification_message");c.setHtml(this.message);
a.append(c);c=CKEDITOR.dom.element.createFromHtml('\x3ca class\x3d"cke_notification_close" href\x3d"javascript:void(0)" title\x3d"'+f+'" role\x3d"button" tabindex\x3d"-1"\x3e\x3cspan class\x3d"cke_label"\x3eX\x3c/span\x3e\x3c/a\x3e');a.append(c);c.on("click",function(){b.editor.focus();b.hide()});return a},_getClass:function(){return"progress"==this.type?"cke_notification_info":"cke_notification_"+this.type},_createProgressElement:function(){var b=new CKEDITOR.dom.element("span");b.addClass("cke_notification_progress");
b.setStyle("width",this._getPercentageProgress());return b},_getPercentageProgress:function(){return Math.round(100*(this.progress||0))+"%"},_hideAfterTimeout:function(){var b=this,a;this._hideTimeoutId&&clearTimeout(this._hideTimeoutId);if("number"==typeof this.duration)a=this.duration;else if("info"==this.type||"success"==this.type)a="number"==typeof this.editor.config.notification_duration?this.editor.config.notification_duration:5E3;a&&(b._hideTimeoutId=setTimeout(function(){b.hide()},a))}};f.prototype=
{add:function(b){this.notifications.push(b);this.element.append(b.element);1==this.element.getChildCount()&&(CKEDITOR.document.getBody().append(this.element),this._attachListeners());this._layout()},remove:function(b){var a=CKEDITOR.tools.indexOf(this.notifications,b);0>a||(this.notifications.splice(a,1),b.element.remove(),this.element.getChildCount()||(this._removeListeners(),this.element.remove()))},_createElement:function(){var b=this.editor,a=b.config,c=new CKEDITOR.dom.element("div");c.addClass("cke_notifications_area");
c.setAttribute("id","cke_notifications_area_"+b.name);c.setStyle("z-index",a.baseFloatZIndex-2);return c},_attachListeners:function(){var b=CKEDITOR.document.getWindow(),a=this.editor;b.on("scroll",this._uiBuffer.input);b.on("resize",this._uiBuffer.input);a.on("change",this._changeBuffer.input);a.on("floatingSpaceLayout",this._layout,this,null,20);a.on("blur",this._layout,this,null,20)},_removeListeners:function(){var b=CKEDITOR.document.getWindow(),a=this.editor;b.removeListener("scroll",this._uiBuffer.input);
b.removeListener("resize",this._uiBuffer.input);a.removeListener("change",this._changeBuffer.input);a.removeListener("floatingSpaceLayout",this._layout);a.removeListener("blur",this._layout)},_layout:function(){function b(){a.setStyle("left",v(x+f.width-l-p))}var a=this.element,c=this.editor,f=c.ui.contentsElement.getClientRect(),m=c.ui.contentsElement.getDocumentPosition(),k,g,e=a.getClientRect(),d,l=this._notificationWidth,p=this._notificationMargin;d=CKEDITOR.document.getWindow();var q=d.getScrollPosition(),
u=d.getViewPaneSize(),t=CKEDITOR.document.getBody(),r=t.getDocumentPosition(),v=CKEDITOR.tools.cssLength;l&&p||(d=this.element.getChild(0),l=this._notificationWidth=d.getClientRect().width,p=this._notificationMargin=parseInt(d.getComputedStyle("margin-left"),10)+parseInt(d.getComputedStyle("margin-right"),10));c.toolbar&&(k=c.ui.space("top"),g=k.getClientRect());k&&k.isVisible()&&g.bottom>f.top&&g.bottom<f.bottom-e.height?a.setStyles({position:"fixed",top:v(g.bottom)}):0<f.top?a.setStyles({position:"absolute",
top:v(m.y)}):m.y+f.height-e.height>q.y?a.setStyles({position:"fixed",top:0}):a.setStyles({position:"absolute",top:v(m.y+f.height-e.height)});var x="fixed"==a.getStyle("position")?f.left:"static"!=t.getComputedStyle("position")?m.x-r.x:m.x;f.width<l+p?m.x+l+p>q.x+u.width?b():a.setStyle("left",v(x)):m.x+l+p>q.x+u.width?a.setStyle("left",v(x)):m.x+f.width/2+l/2+p>q.x+u.width?a.setStyle("left",v(x-m.x+q.x+u.width-l-p)):0>f.left+f.width-l-p?b():0>f.left+f.width/2-l/2?a.setStyle("left",v(x-m.x+q.x)):a.setStyle("left",
v(x+f.width/2-l/2-p/2))}};CKEDITOR.plugins.notification=c}(),function(){var c='\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-describedby\x3d"{id}_description" aria-haspopup\x3d"{hasArrow}" aria-disabled\x3d"{ariaDisabled}"';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 c=c+(' 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}"'),c=c+'\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\x3cspan id\x3d"{id}_description" class\x3d"cke_button_label" aria-hidden\x3d"false"\x3e{ariaShortcut}\x3c/span\x3e{arrowHtml}\x3c/a\x3e',
f=CKEDITOR.addTemplate("buttonArrow",'\x3cspan class\x3d"cke_button_arrow"\x3e'+(CKEDITOR.env.hc?"\x26#9660;":"")+"\x3c/span\x3e"),b=CKEDITOR.addTemplate("button",c);CKEDITOR.plugins.add("button",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}});CKEDITOR.UI_BUTTON="button";CKEDITOR.ui.button=function(a){CKEDITOR.tools.extend(this,a,{title:a.label,click:a.click||function(b){b.execCommand(a.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a)}};
CKEDITOR.ui.button.prototype={render:function(a,c){function n(){var b=a.mode;b&&(b=this.modes[b]?void 0!==m[b]?m[b]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,b=a.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:b,this.setState(b),this.refresh&&this.refresh())}var m=null,k=CKEDITOR.env,g=this._.id=CKEDITOR.tools.getNextId(),e="",d=this.command,l,p,q;this._.editor=a;var u={id:g,button:this,editor:a,focus:function(){CKEDITOR.document.getById(g).focus()},execute:function(){this.button.click(a)},
attach:function(a){this.button.attach(a)}},t=CKEDITOR.tools.addFunction(function(a){if(u.onkey)return a=new CKEDITOR.dom.event(a),!1!==u.onkey(u,a.getKeystroke())}),r=CKEDITOR.tools.addFunction(function(a){var b;u.onfocus&&(b=!1!==u.onfocus(u,new CKEDITOR.dom.event(a)));return b}),v=0;u.clickFn=l=CKEDITOR.tools.addFunction(function(){v&&(a.unlockSelection(1),v=0);u.execute();k.iOS&&a.focus()});this.modes?(m={},a.on("beforeModeUnload",function(){a.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(m[a.mode]=
this._.state)},this),a.on("activeFilterChange",n,this),a.on("mode",n,this),!this.readOnly&&a.on("readOnly",n,this)):d&&(d=a.getCommand(d))&&(d.on("state",function(){this.setState(d.state)},this),e+=d.state==CKEDITOR.TRISTATE_ON?"on":d.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off");var x;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(x,"rtl"==b,this.icon,this.iconOffset))},this);d?(p=a.getCommandKeystroke(d))&&(q=CKEDITOR.tools.keystrokeToString(a.lang.common.keyboard,p)):e+="off";p=this.name||this.command;var B=null,w=this.icon;x=p;this.icon&&!/\./.test(this.icon)?(x=this.icon,w=null):(this.icon&&(B=this.icon),CKEDITOR.env.hidpi&&this.iconHiDpi&&(B=this.iconHiDpi));B?(CKEDITOR.skin.addIcon(B,B),w=null):B=x;e={id:g,name:p,iconName:x,label:this.label,cls:this.className||"",state:e,ariaDisabled:"disabled"==
e?"true":"false",title:this.title+(q?" ("+q.display+")":""),ariaShortcut:q?a.lang.common.keyboardShortcut+" "+q.aria:"",titleJs:k.gecko&&!k.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:t,focusFn:r,clickFn:l,style:CKEDITOR.skin.getIconStyle(B,"rtl"==a.lang.dir,w,this.iconOffset),arrowHtml:this.hasArrow?f.output():""};b.output(e,c);if(this.onRender)this.onRender();return u},setState:function(a){if(this._.state==a)return!1;this._.state=a;var b=CKEDITOR.document.getById(this._.id);
return b?(b.setState(a,"cke_button"),a==CKEDITOR.TRISTATE_DISABLED?b.setAttribute("aria-disabled",!0):b.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?b.setAttribute("aria-pressed",!0):b.removeAttribute("aria-pressed"),!0):!1},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 c(a){function b(){for(var d=c(),e=CKEDITOR.tools.clone(a.config.toolbarGroups)||f(a),g=0;g<e.length;g++){var n=e[g];if("/"!=n){"string"==typeof n&&(n=e[g]={name:n});var t,r=n.groups;if(r)for(var v=0;v<r.length;v++)t=r[v],(t=d[t])&&k(n,t);(t=d[n.name])&&k(n,t)}}return e}
function c(){var b={},d,e,g;for(d in a.ui.items)e=a.ui.items[d],g=e.toolbar||"others",g=g.split(","),e=g[0],g=parseInt(g[1]||-1,10),b[e]||(b[e]=[]),b[e].push({name:d,order:g});for(e in b)b[e]=b[e].sort(function(a,b){return a.order==b.order?0:0>b.order?-1:0>a.order?1:a.order<b.order?-1:1});return b}function k(b,d){if(d.length){b.items?b.items.push(a.ui.create("-")):b.items=[];for(var c;c=d.shift();)c="string"==typeof c?c:c.name,e&&-1!=CKEDITOR.tools.indexOf(e,c)||(c=a.ui.create(c))&&a.addFeature(c)&&
b.items.push(c)}}function g(a){var b=[],d,c,e;for(d=0;d<a.length;++d)c=a[d],e={},"/"==c?b.push(c):CKEDITOR.tools.isArray(c)?(k(e,CKEDITOR.tools.clone(c)),b.push(e)):c.items&&(k(e,CKEDITOR.tools.clone(c.items)),e.name=c.name,b.push(e));return b}var e=a.config.removeButtons,e=e&&e.split(","),d=a.config.toolbar;"string"==typeof d&&(d=a.config["toolbar_"+d]);return a.toolbar=d?g(d):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=!1};b.prototype.focus=function(){for(var a=0,b;b=this.toolbars[a++];)for(var c=
0,f;f=b.items[c++];)if(f.focus){f.focus();return}};var a={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 n,m=function(a,b){var c,d="rtl"==f.lang.dir,l=f.config.toolbarGroupCycling,p=d?37:39,d=d?39:37,l=void 0===l||l;switch(b){case 9:case CKEDITOR.SHIFT+9:for(;!c||!c.items.length;)if(c=
9==b?(c?c.next:a.toolbar.next)||f.toolbox.toolbars[0]:(c?c.previous:a.toolbar.previous)||f.toolbox.toolbars[f.toolbox.toolbars.length-1],c.items.length)for(a=c.items[n?c.items.length-1:0];a&&!a.focus;)(a=n?a.previous:a.next)||(c=0);a&&a.focus();return!1;case p:c=a;do c=c.next,!c&&l&&(c=a.toolbar.items[0]);while(c&&!c.focus);c?c.focus():m(a,9);return!1;case 40:return a.button&&a.button.hasArrow?a.execute():m(a,40==b?p:d),!1;case d:case 38:c=a;do c=c.previous,!c&&l&&(c=a.toolbar.items[a.toolbar.items.length-
1]);while(c&&!c.focus);c?c.focus():(n=1,m(a,CKEDITOR.SHIFT+9),n=0);return!1;case 27:return f.focus(),!1;case 13:case 32:return a.execute(),!1}return!0};f.on("uiSpace",function(a){if(a.data.space==f.config.toolbarLocation){a.removeListener();f.toolbox=new b;var g=CKEDITOR.tools.getNextId(),e=['\x3cspan id\x3d"',g,'" 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"',g,'" onmousedown\x3d"return false;"\x3e'],
g=!1!==f.config.toolbarStartupExpanded,d,l;f.config.toolbarCanCollapse&&f.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&e.push('\x3cspan class\x3d"cke_toolbox_main"'+(g?"\x3e":' style\x3d"display:none"\x3e'));for(var n=f.toolbox.toolbars,q=c(f),u=q.length,t=0;t<u;t++){var r,v=0,x,B=q[t],w="/"!==B&&("/"===q[t+1]||t==u-1),A;if(B)if(d&&(e.push("\x3c/span\x3e"),l=d=0),"/"===B)e.push('\x3cspan class\x3d"cke_toolbar_break"\x3e\x3c/span\x3e');else{A=B.items||B;for(var F=0;F<A.length;F++){var y=A[F],C;if(y){var D=
function(a){a=a.render(f,e);G=v.items.push(a)-1;0<G&&(a.previous=v.items[G-1],a.previous.next=a);a.toolbar=v;a.onkey=m;a.onfocus=function(){f.toolbox.focusCommandExecuted||f.focus()}};if(y.type==CKEDITOR.UI_SEPARATOR)l=d&&y;else{C=!1!==y.canGroup;if(!v){r=CKEDITOR.tools.getNextId();v={id:r,items:[]};x=B.name&&(f.lang.toolbar.toolbarGroups[B.name]||B.name);e.push('\x3cspan id\x3d"',r,'" class\x3d"cke_toolbar'+(w?' cke_toolbar_last"':'"'),x?' aria-labelledby\x3d"'+r+'_label"':"",' role\x3d"toolbar"\x3e');
x&&e.push('\x3cspan id\x3d"',r,'_label" class\x3d"cke_voice_label"\x3e',x,"\x3c/span\x3e");e.push('\x3cspan class\x3d"cke_toolbar_start"\x3e\x3c/span\x3e');var G=n.push(v)-1;0<G&&(v.previous=n[G-1],v.previous.next=v)}C?d||(e.push('\x3cspan class\x3d"cke_toolgroup" role\x3d"presentation"\x3e'),d=1):d&&(e.push("\x3c/span\x3e"),d=0);l&&(D(l),l=0);D(y)}}}d&&(e.push("\x3c/span\x3e"),l=d=0);v&&e.push('\x3cspan class\x3d"cke_toolbar_end"\x3e\x3c/span\x3e\x3c/span\x3e')}}f.config.toolbarCanCollapse&&e.push("\x3c/span\x3e");
if(f.config.toolbarCanCollapse&&f.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var H=CKEDITOR.tools.addFunction(function(){f.execCommand("toolbarCollapse")});f.on("destroy",function(){CKEDITOR.tools.removeFunction(H)});f.addCommand("toolbarCollapse",{readOnly:1,exec:function(a){var b=a.ui.space("toolbar_collapser"),d=b.getPrevious(),c=a.ui.space("contents"),e=d.getParent(),g=parseInt(c.$.style.height,10),f=e.$.offsetHeight,l=b.hasClass("cke_toolbox_collapser_min");l?(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(l?"▲":"◀");c.setStyle("height",g-(e.$.offsetHeight-f)+"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");e.push('\x3ca title\x3d"'+
(g?f.lang.toolbar.toolbarCollapse:f.lang.toolbar.toolbarExpand)+'" id\x3d"'+f.ui.spaceId("toolbar_collapser")+'" tabIndex\x3d"-1" class\x3d"cke_toolbox_collapser');g||e.push(" cke_toolbox_collapser_min");e.push('" onclick\x3d"CKEDITOR.tools.callFunction('+H+')"\x3e','\x3cspan class\x3d"cke_arrow"\x3e\x26#9650;\x3c/span\x3e',"\x3c/a\x3e")}e.push("\x3c/span\x3e");a.data.html+=e.join("")}});f.on("destroy",function(){if(this.toolbox){var a,b=0,c,d,f;for(a=this.toolbox.toolbars;b<a.length;b++)for(d=a[b].items,
c=0;c<d.length;c++)f=d[c],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",a);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,b,c){var k=f(this.editor),g=0===b,e={name:a};if(c){if(c=CKEDITOR.tools.search(k,function(a){return a.name==c})){!c.groups&&(c.groups=[]);if(b&&(b=CKEDITOR.tools.indexOf(c.groups,b),0<=b)){c.groups.splice(b+1,0,a);return}g?c.groups.splice(0,0,a):c.groups.push(a);return}b=null}b&&(b=CKEDITOR.tools.indexOf(k,function(a){return a.name==b}));g?k.splice(0,0,a):"number"==typeof b?k.splice(b+1,0,e):k.push(a)}}(),CKEDITOR.UI_SEPARATOR="separator",
CKEDITOR.config.toolbarLocation="top","use strict",function(){function c(a,b,c){b.type||(b.type="auto");if(c&&!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 f(a){function b(){var c=a.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var e=function(b){a.getSelection().isCollapsed()||(a.readOnly&&
"cut"==b.name||C.initPasteDataTransfer(b,a),b.data.preventDefault())};c.on("copy",e);c.on("cut",e);c.on("cut",function(){a.readOnly||a.extractSelectedHtml()},null,null,999)}c.on(C.mainPasteEvent,function(a){"beforepaste"==C.mainPasteEvent&&D||A(a)});"beforepaste"==C.mainPasteEvent&&(c.on("paste",function(a){G||(f(),a.data.preventDefault(),A(a),h("paste"))}),c.on("contextmenu",k,null,null,0),c.on("beforepaste",function(a){!a.data||a.data.$.ctrlKey||a.data.$.shiftKey||k()},null,null,0));c.on("beforecut",
function(){!D&&m(a)});var g;c.attachListener(CKEDITOR.env.ie?c:a.document.getDocumentElement(),"mouseup",function(){g=setTimeout(function(){F()},0)});a.on("destroy",function(){clearTimeout(g)});c.on("keyup",F)}function e(b){return{type:b,canUndo:"cut"==b,startDisabled:!0,fakeKeystroke:"cut"==b?CKEDITOR.CTRL+88:CKEDITOR.CTRL+67,exec:function(){"cut"==this.type&&m();var b;var c=this.type;if(CKEDITOR.env.ie)b=h(c);else try{b=a.document.$.execCommand(c,!1,null)}catch(e){b=!1}b||a.showNotification(a.lang.clipboard[this.type+
"Error"]);return b}}}function g(){return{canUndo:!1,async:!0,fakeKeystroke:CKEDITOR.CTRL+86,exec:function(a,b){function d(b,f){f="undefined"!==typeof f?f:!0;b?(b.method="paste",b.dataTransfer||(b.dataTransfer=C.initPasteDataTransfer()),c(a,b,f)):g&&!a._.forcePasteDialog&&a.showNotification(k,"info",a.config.clipboard_notificationDuration);a._.forcePasteDialog=!1;a.fire("afterCommandExec",{name:"paste",command:e,returnValue:!!b})}b="undefined"!==typeof b&&null!==b?b:{};var e=this,g="undefined"!==typeof b.notification?
b.notification:!0,f=b.type,l=CKEDITOR.tools.keystrokeToString(a.lang.common.keyboard,a.getCommandKeystroke(this)),k="string"===typeof g?g:a.lang.clipboard.pasteNotification.replace(/%1/,'\x3ckbd aria-label\x3d"'+l.aria+'"\x3e'+l.display+"\x3c/kbd\x3e"),l="string"===typeof b?b:b.dataValue;f&&!0!==a.config.forcePasteAsPlainText&&"allow-word"!==a.config.forcePasteAsPlainText?a._.nextPasteType=f:delete a._.nextPasteType;"string"===typeof l?d({dataValue:l}):a.getClipboardData(d)}}}function f(){G=1;setTimeout(function(){G=
0},100)}function k(){D=1;setTimeout(function(){D=0},10)}function h(b){var c=a.document,e=c.getBody(),g=!1,f=function(){g=!0};e.on(b,f);7<CKEDITOR.env.version?c.$.execCommand(b):c.$.selection.createRange().execCommand(b);e.removeListener(b,f);return g}function m(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var b=a.getSelection(),c,e,g;b.getType()==CKEDITOR.SELECTION_ELEMENT&&(c=b.getSelectedElement())&&(e=b.getRanges()[0],g=a.document.createText(""),g.insertBefore(c),e.setStartBefore(g),e.setEndAfter(c),
b.selectRanges([e]),setTimeout(function(){c.getParent()&&(g.remove(),b.selectElement(c))},0))}}function n(b,c){var e=a.document,g=a.editable(),f=function(a){a.cancel()},l;if(!e.getById("cke_pastebin")){var k=a.getSelection(),h=k.createBookmarks();CKEDITOR.env.ie&&k.root.fire("selectionchange");var m=new CKEDITOR.dom.element(!CKEDITOR.env.webkit&&!g.is("body")||CKEDITOR.env.ie?"div":"body",e);m.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var p=0,e=e.getWindow();CKEDITOR.env.webkit?(g.append(m),
m.addClass("cke_editable"),g.is("body")||(p="static"!=g.getComputedStyle("position")?g:CKEDITOR.dom.element.get(g.$.offsetParent),p=p.getDocumentPosition().y)):g.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(m);m.setStyles({position:"absolute",top:e.getScrollPosition().y-p+10+"px",width:"1px",height:Math.max(1,e.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0});CKEDITOR.env.safari&&m.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text"));(p=m.getParent().isReadOnly())?
(m.setOpacity(0),m.setAttribute("contenteditable",!0)):m.setStyle("ltr"==a.config.contentsLangDirection?"left":"right","-10000px");a.on("selectionChange",f,null,null,0);if(CKEDITOR.env.webkit||CKEDITOR.env.gecko)l=g.once("blur",f,null,null,-100);p&&m.focus();p=new CKEDITOR.dom.range(m);p.selectNodeContents(m);var u=p.select();CKEDITOR.env.ie&&(l=g.once("blur",function(){a.lockSelection(u)}));var r=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=
r);l&&l.removeListener();CKEDITOR.env.ie&&g.focus();k.selectBookmarks(h);m.remove();var b;CKEDITOR.env.webkit&&(b=m.getFirst())&&b.is&&b.hasClass("Apple-style-span")&&(m=b);a.removeListener("selectionChange",f);c(m.getHtml())},0)}}function B(){if("paste"==C.mainPasteEvent)return a.fire("beforePaste",{type:"auto",method:"paste"}),!1;a.focus();f();var b=a.focusManager;b.lock();if(a.editable().fire(C.mainPasteEvent)&&!h("paste"))return b.unlock(),!1;b.unlock();return!0}function w(b){if("wysiwyg"==a.mode)switch(b.data.keyCode){case CKEDITOR.CTRL+
86:case CKEDITOR.SHIFT+45:b=a.editable();f();"paste"==C.mainPasteEvent&&b.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:a.fire("saveSnapshot"),setTimeout(function(){a.fire("saveSnapshot")},50)}}function A(b){var e={type:"auto",method:"paste",dataTransfer:C.initPasteDataTransfer(b)};e.dataTransfer.cacheData();var g=!1!==a.fire("beforePaste",e);g&&C.canClipboardApiBeTrusted(e.dataTransfer,a)?(b.data.preventDefault(),setTimeout(function(){c(a,e)},0)):n(b,function(b){e.dataValue=
b.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,"");g&&c(a,e)})}function F(){if("wysiwyg"==a.mode){var b=y("paste");a.getCommand("cut").setState(y("cut"));a.getCommand("copy").setState(y("copy"));a.getCommand("paste").setState(b);a.fire("pasteState",b)}}function y(b){if(H&&b in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==b)return CKEDITOR.TRISTATE_OFF;b=a.getSelection();var c=b.getRanges();return b.getType()==CKEDITOR.SELECTION_NONE||1==c.length&&c[0].collapsed?CKEDITOR.TRISTATE_DISABLED:
CKEDITOR.TRISTATE_OFF}var C=CKEDITOR.plugins.clipboard,D=0,G=0,H=0;(function(){a.on("key",w);a.on("contentDom",b);a.on("selectionChange",function(a){H=a.data.selection.getRanges()[0].checkReadOnly();F()});if(a.contextMenu){a.contextMenu.addListener(function(a,b){H=b.getRanges()[0].checkReadOnly();return{cut:y("cut"),copy:y("copy"),paste:y("paste")}});var c=null;a.on("menuShow",function(){c&&(c.removeListener(),c=null);var b=a.contextMenu.findItemByCommandName("paste");b&&b.element&&(c=b.element.on("touchend",
function(){a._.forcePasteDialog=!0}))})}if(a.ui.addButton)a.once("instanceReady",function(){a._.pasteButtons&&CKEDITOR.tools.array.forEach(a._.pasteButtons,function(b){if(b=a.ui.get(b))CKEDITOR.document.getById(b._.id).on("touchend",function(){a._.forcePasteDialog=!0})})})})();(function(){function b(c,e,g,f,l){var k=a.lang.clipboard[e];a.addCommand(e,g);a.ui.addButton&&a.ui.addButton(c,{label:k,command:e,toolbar:"clipboard,"+f});a.addMenuItems&&a.addMenuItem(e,{label:k,command:e,group:"clipboard",
order:l})}b("Cut","cut",e("cut"),10,1);b("Copy","copy",e("copy"),20,4);b("Paste","paste",g(),30,8);a._.pasteButtons||(a._.pasteButtons=[]);a._.pasteButtons.push("Paste")})();a.getClipboardData=function(b,c){function e(a){a.removeListener();a.cancel();c(a.data)}function g(a){a.removeListener();a.cancel();c({type:l,dataValue:a.data.dataValue,dataTransfer:a.data.dataTransfer,method:"paste"})}var f=!1,l="auto";c||(c=b,b=null);a.on("beforePaste",function(a){a.removeListener();f=!0;l=a.data.type},null,
null,1E3);a.on("paste",e,null,null,0);!1===B()&&(a.removeListener("paste",e),a._.forcePasteDialog&&f&&a.fire("pasteDialog")?(a.on("pasteDialogCommit",g),a.on("dialogHide",function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",g);a.data._.committed||c(null)})):c(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 a(a,b){function c(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 c(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 c(a.length/4)})+"\x3c/p\x3e"));return m(a,b)}function h(){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(c){return"plain-text"==c?b.plainText||(b.plainText=new CKEDITOR.filter("br")):"semantic-content"==c?((c=b.semanticContent)||(c=new CKEDITOR.filter,c.allow({$1:{elements:a(),attributes:!0,styles:!1,classes:!1}}),c=b.semanticContent=c),c):c?new CKEDITOR.filter(c):null}}}function n(a,b,c){b=CKEDITOR.htmlParser.fragment.fromHtml(b);var e=new CKEDITOR.htmlParser.basicWriter;c.applyTo(b,!0,!1,
a.activeEnterMode);b.writeHtml(e);return e.getHtml()}function m(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 g(a){var b=CKEDITOR.plugins.clipboard;a.on("contentDom",function(){function e(b,g,f){g.select();c(a,{dataTransfer:f,
method:"drop"},1);f.sourceEditor.fire("saveSnapshot");f.sourceEditor.editable().extractHtmlFromRange(b);f.sourceEditor.getSelection().selectRanges([b]);f.sourceEditor.fire("saveSnapshot")}function g(e,f){e.select();c(a,{dataTransfer:f,method:"drop"},1);b.resetDragDataTransfer()}function f(b,c,e){var g={$:b.data.$,target:b.data.getTarget()};c&&(g.dragRange=c);e&&(g.dropRange=e);!1===a.fire(b.name,g)&&b.data.preventDefault()}function k(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());return a.getChildCount()}
var h=a.editable(),m=CKEDITOR.plugins.clipboard.getDropTarget(a),n=a.ui.space("top"),B=a.ui.space("bottom");b.preventDefaultDropOnElement(n);b.preventDefaultDropOnElement(B);h.attachListener(m,"dragstart",f);h.attachListener(a,"dragstart",b.resetDragDataTransfer,b,null,1);h.attachListener(a,"dragstart",function(c){b.initDragDataTransfer(c,a)},null,null,2);h.attachListener(a,"dragstart",function(){var c=b.dragRange=a.getSelection().getRanges()[0];CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(b.dragStartContainerChildCount=
c?k(c.startContainer):null,b.dragEndContainerChildCount=c?k(c.endContainer):null)},null,null,100);h.attachListener(m,"dragend",f);h.attachListener(a,"dragend",b.initDragDataTransfer,b,null,1);h.attachListener(a,"dragend",b.resetDragDataTransfer,b,null,100);h.attachListener(m,"dragover",function(a){if(CKEDITOR.env.edge)a.data.preventDefault();else{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()}});h.attachListener(m,"drop",function(c){if(!c.data.$.defaultPrevented){c.data.preventDefault();var e=c.data.getTarget();if(!e.isReadOnly()||e.type==CKEDITOR.NODE_ELEMENT&&e.is("html")){var e=b.getRangeAtDropPosition(c,a),g=b.dragRange;e&&f(c,g,e)}}},null,null,9999);h.attachListener(a,"drop",b.initDragDataTransfer,b,null,1);h.attachListener(a,"drop",function(c){if(c=c.data){var f=c.dropRange,k=c.dragRange,h=c.dataTransfer;h.getTransferType(a)==CKEDITOR.DATA_TRANSFER_INTERNAL?
setTimeout(function(){b.internalDrop(k,f,h,a)},0):h.getTransferType(a)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?e(k,f,h):g(f,h)}},null,null,9999)})}var e;CKEDITOR.plugins.add("clipboard",{requires:"dialog,notification,toolbar",init:function(d){var c,e=h();d.config.forcePasteAsPlainText?c="plain-text":d.config.pasteFilter?c=d.config.pasteFilter:!CKEDITOR.env.webkit||"pasteFilter"in d.config||(c="semantic-content");d.pasteFilter=e.get(c);f(d);g(d);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+
"dialogs/paste.js"));if(CKEDITOR.env.gecko){var k=["image/png","image/jpeg","image/gif"],m;d.on("paste",function(a){var b=a.data,c=b.dataTransfer;if(!b.dataValue&&"paste"==b.method&&c&&1==c.getFilesCount()&&m!=c.id&&(c=c.getFile(0),-1!=CKEDITOR.tools.indexOf(k,c.type))){var e=new FileReader;e.addEventListener("load",function(){a.data.dataValue='\x3cimg src\x3d"'+e.result+'" /\x3e';d.fire("paste",a.data)},!1);e.addEventListener("abort",function(){d.fire("paste",a.data)},!1);e.addEventListener("error",
function(){d.fire("paste",a.data)},!1);e.readAsDataURL(c);m=b.dataTransfer.id;a.stop()}},null,null,1)}d.on("paste",function(a){a.data.dataTransfer||(a.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer);if(!a.data.dataValue){var b=a.data.dataTransfer,c=b.getData("text/html");if(c)a.data.dataValue=c,a.data.type="html";else if(c=b.getData("text/plain"))a.data.dataValue=d.editable().transformPlainTextToHtml(c),a.data.type="text"}},null,null,1);d.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">&nbsp;<\/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,e,g=new CKEDITOR.dom.element("div");for(g.setHtml(b);1==g.getChildCount()&&(c=g.getFirst())&&c.type==CKEDITOR.NODE_ELEMENT&&(c.hasClass("cke_editable")||c.hasClass("cke_contents"));)g=e=c;e&&(b=e.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?b=b.replace(/^&nbsp;(?: |\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);d.on("paste",function(c){c=c.data;var g=d._.nextPasteType||c.type,f=c.dataValue,l,k=d.config.clipboard_defaultContentType||"html",h=c.dataTransfer.getTransferType(d);l="html"==g||"html"==c.preSniffing?"html":b(f);delete d._.nextPasteType;"htmlifiedtext"==l&&(f=a(d.config,f));"text"==g&&"html"==l?f=n(d,f,e.get("plain-text")):h==CKEDITOR.DATA_TRANSFER_EXTERNAL&&d.pasteFilter&&
!c.dontFilter&&(f=n(d,f,d.pasteFilter));c.startsWithEOL&&(f='\x3cbr data-cke-eol\x3d"1"\x3e'+f);c.endsWithEOL&&(f+='\x3cbr data-cke-eol\x3d"1"\x3e');"auto"==g&&(g="html"==l||"html"==k?"html":"text");c.type=g;c.dataValue=f;delete c.preSniffing;delete c.startsWithEOL;delete c.endsWithEOL},null,null,6);d.on("paste",function(a){a=a.data;a.dataValue&&(d.insertHtml(a.dataValue,a.type,a.range),setTimeout(function(){d.fire("afterPaste")},0))},null,null,1E3);d.on("pasteDialog",function(a){setTimeout(function(){d.openDialog("paste",
a.data)},0)})}});CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:(!CKEDITOR.env.ie||16<=CKEDITOR.env.version)&&!CKEDITOR.env.iOS,isCustomDataTypesSupported:!CKEDITOR.env.ie||16<=CKEDITOR.env.version,isFileApiSupported:!CKEDITOR.env.ie||9<CKEDITOR.env.version,mainPasteEvent:CKEDITOR.env.ie&&!CKEDITOR.env.edge?"beforepaste":"paste",addPasteButton:function(a,b,c){a.ui.addButton&&(a.ui.addButton(b,c),a._.pasteButtons||(a._.pasteButtons=[]),a._.pasteButtons.push(b))},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())||CKEDITOR.env.safari&&603<=CKEDITOR.env.version&&!CKEDITOR.env.iOS||CKEDITOR.env.edge&&16<=CKEDITOR.env.version?!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,c,e){function g(a,d,c){var e=a;e.type==CKEDITOR.NODE_TEXT&&(e=
a.getParent());if(e.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 f=b.startContainer;"number"==typeof e&&"number"==typeof c&&f.type==CKEDITOR.NODE_ELEMENT&&(g(a.startContainer,f,c)||g(a.endContainer,f,e))},isDropRangeAffectedByDragRange:function(a,b){var c=
b.startContainer,e=b.endOffset;return a.endContainer.equals(c)&&a.endOffset<=e||a.startContainer.getParent().equals(c)&&a.startContainer.getIndex()<e||a.endContainer.getParent().equals(c)&&a.endContainer.getIndex()<e?!0:!1},internalDrop:function(a,b,e,g){var f=CKEDITOR.plugins.clipboard,k=g.editable(),h,m;g.fire("saveSnapshot");g.fire("lockSnapshot",{dontUpdate:1});CKEDITOR.env.ie&&10>CKEDITOR.env.version&&this.fixSplitNodesAfterDrop(a,b,f.dragStartContainerChildCount,f.dragEndContainerChildCount);
(m=this.isDropRangeAffectedByDragRange(a,b))||(h=a.createBookmark(!1));f=b.clone().createBookmark(!1);m&&(h=a.createBookmark(!1));a=h.startNode;b=h.endNode;m=f.startNode;b&&a.getPosition(m)&CKEDITOR.POSITION_PRECEDING&&b.getPosition(m)&CKEDITOR.POSITION_FOLLOWING&&m.insertBefore(a);a=g.createRange();a.moveToBookmark(h);k.extractHtmlFromRange(a,1);b=g.createRange();b.moveToBookmark(f);c(g,{dataTransfer:e,method:"drop",range:b},1);g.fire("unlockSnapshot")},getRangeAtDropPosition:function(a,b){var c=
a.data.$,e=c.clientX,g=c.clientY,f=b.getSelection(!0).getRanges()[0],h=b.createRange();if(a.data.testRange)return a.data.testRange;if(document.caretRangeFromPoint&&b.document.$.caretRangeFromPoint(e,g))c=b.document.$.caretRangeFromPoint(e,g),h.setStart(CKEDITOR.dom.node(c.startContainer),c.startOffset),h.collapse(!0);else if(c.rangeParent)h.setStart(CKEDITOR.dom.node(c.rangeParent),c.rangeOffset),h.collapse(!0);else{if(CKEDITOR.env.ie&&8<CKEDITOR.env.version&&f&&b.editable().hasFocus)return f;if(document.body.createTextRange){b.focus();
c=b.document.getBody().$.createTextRange();try{for(var k=!1,m=0;20>m&&!k;m++){if(!k)try{c.moveToPoint(e,g-m),k=!0}catch(n){}if(!k)try{c.moveToPoint(e,g+m),k=!0}catch(w){}}if(k){var A="cke-temp-"+(new Date).getTime();c.pasteHTML('\x3cspan id\x3d"'+A+'"\x3e​\x3c/span\x3e');var F=b.document.getById(A);h.moveToPosition(F,CKEDITOR.POSITION_BEFORE_START);F.remove()}else{var y=b.document.$.elementFromPoint(e,g),C=new CKEDITOR.dom.element(y),D;if(C.equals(b.editable())||"html"==C.getName())return f&&f.startContainer&&
!f.startContainer.equals(b.editable())?f:null;D=C.getClientRect();e<D.left?h.setStartAt(C,CKEDITOR.POSITION_AFTER_START):h.setStartAt(C,CKEDITOR.POSITION_BEFORE_END);h.collapse(!0)}}catch(G){return null}}else return null}return h},initDragDataTransfer:function(a,b){var c=a.data.$?a.data.$.dataTransfer:null,e=new this.dataTransfer(c,b);"dragstart"===a.name&&e.storeId();c?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,b){if(this.isCustomCopyCutSupported){if(a&&a.data&&a.data.$){var c=a.data.$.clipboardData,e=new this.dataTransfer(c,b);"copy"!==a.name&&"cut"!==a.name||e.storeId();this.copyCutData&&e.id==this.copyCutData.id?(e=this.copyCutData,e.$=c):this.copyCutData=e;return e}return new this.dataTransfer(null,b)}return new this.dataTransfer(CKEDITOR.env.edge&&a&&a.data.$&&a.data.$.clipboardData||null,b)},preventDefaultDropOnElement:function(a){a&&
a.on("dragover",k)}};e=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:[],nativeHtmlCache:"",normalizeType:function(a){a=a.toLowerCase();return"text"==a||"text/plain"==a?"Text":"url"==a?"URL":a}};this._.fallbackDataTransfer=new CKEDITOR.plugins.clipboard.fallbackDataTransfer(this);
this.id=this.getData(e);this.id||(this.id="Text"==e?"":"cke-"+CKEDITOR.tools.getUniqueId());b&&(this.sourceEditor=b,this.setData("text/html",b.getSelectedHtml(1)),"Text"==e||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,b){a=this._.normalizeType(a);var c="text/html"==a&&b?this._.nativeHtmlCache:
this._.data[a];if(void 0===c||null===c||""===c){if(this._.fallbackDataTransfer.isRequired())c=this._.fallbackDataTransfer.getData(a,b);else try{c=this.$.getData(a)||""}catch(e){c=""}"text/html"!=a||b||(c=this._stripHtml(c))}"Text"==a&&CKEDITOR.env.gecko&&this.getFilesCount()&&"file://"==c.substring(0,7)&&(c="");if("string"===typeof c)var g=c.indexOf("\x3c/html\x3e"),c=-1!==g?c.substring(0,g+7):c;return c},setData:function(a,b){a=this._.normalizeType(a);"text/html"==a?(this._.data[a]=this._stripHtml(b),
this._.nativeHtmlCache=b):this._.data[a]=b;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||"URL"==a||"Text"==a)if("Text"==e&&"Text"==a&&(this.id=b),this._.fallbackDataTransfer.isRequired())this._.fallbackDataTransfer.setData(a,b);else try{this.$.setData(a,b)}catch(c){}},storeId:function(){"Text"!==e&&this.setData(e,this.id)},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(c){c=b._.normalizeType(c);var d=b.getData(c);"text/html"==c&&(b._.nativeHtmlCache=b.getData(c,!0),d=b._stripHtml(d));d&&(b._.data[c]=d)}if(this.$){var b=this,c,e;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(c=0;c<this.$.types.length;c++)a(this.$.types[c])}else a("Text"),a("URL");e=this._getImageFromClipboard();if(this.$&&this.$.files||e){this._.files=[];if(this.$.files&&this.$.files.length)for(c=0;c<this.$.files.length;c++)this._.files.push(this.$.files[c]);
0===this._.files.length&&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]:0===a?this._getImageFromClipboard():void 0},isEmpty:function(){var a={},b;if(this.getFilesCount())return!1;CKEDITOR.tools.array.forEach(CKEDITOR.tools.objectKeys(this._.data),
function(b){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"!=e&&(a[e]=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){}},_stripHtml:function(a){if(a&&a.length){a=a.replace(this._.metaRegExp,"");var b=this._.bodyRegExp.exec(a);
b&&b.length&&(a=b[1],a=a.replace(this._.fragmentRegExp,""))}return a}};CKEDITOR.plugins.clipboard.fallbackDataTransfer=function(a){this._dataTransfer=a;this._customDataFallbackType="text/html"};CKEDITOR.plugins.clipboard.fallbackDataTransfer._isCustomMimeTypeSupported=null;CKEDITOR.plugins.clipboard.fallbackDataTransfer._customTypes=[];CKEDITOR.plugins.clipboard.fallbackDataTransfer.prototype={isRequired:function(){var a=CKEDITOR.plugins.clipboard.fallbackDataTransfer,b=this._dataTransfer.$;if(null===
a._isCustomMimeTypeSupported)if(b){a._isCustomMimeTypeSupported=!1;try{b.setData("cke/mimetypetest","cke test value"),a._isCustomMimeTypeSupported="cke test value"===b.getData("cke/mimetypetest"),b.clearData("cke/mimetypetest")}catch(c){}}else return!1;return!a._isCustomMimeTypeSupported},getData:function(a,b){var c=this._getData(this._customDataFallbackType,!0);if(b)return c;var c=this._extractDataComment(c),e=null,e=a===this._customDataFallbackType?c.content:c.data&&c.data[a]?c.data[a]:this._getData(a,
!0);return null!==e?e:""},setData:function(a,b){var c=a===this._customDataFallbackType;c&&(b=this._applyDataComment(b,this._getFallbackTypeData()));var e=b,g=this._dataTransfer.$;try{g.setData(a,e),c&&(this._dataTransfer._.nativeHtmlCache=e)}catch(f){if(this._isUnsupportedMimeTypeError(f)){c=CKEDITOR.plugins.clipboard.fallbackDataTransfer;-1===CKEDITOR.tools.indexOf(c._customTypes,a)&&c._customTypes.push(a);var c=this._getFallbackTypeContent(),h=this._getFallbackTypeData();h[a]=e;try{e=this._applyDataComment(c,
h),g.setData(this._customDataFallbackType,e),this._dataTransfer._.nativeHtmlCache=e}catch(k){e=""}}}return e},_getData:function(a,b){var c=this._dataTransfer._.data;if(!b&&c[a])return c[a];try{return this._dataTransfer.$.getData(a)}catch(e){return null}},_getFallbackTypeContent:function(){var a=this._dataTransfer._.data[this._customDataFallbackType];a||(a=this._extractDataComment(this._getData(this._customDataFallbackType,!0)).content);return a},_getFallbackTypeData:function(){var a=CKEDITOR.plugins.clipboard.fallbackDataTransfer._customTypes,
b=this._extractDataComment(this._getData(this._customDataFallbackType,!0)).data||{},c=this._dataTransfer._.data;CKEDITOR.tools.array.forEach(a,function(a){void 0!==c[a]?b[a]=c[a]:void 0!==b[a]&&(b[a]=b[a])},this);return b},_isUnsupportedMimeTypeError:function(a){return a.message&&-1!==a.message.search(/element not found/gi)},_extractDataComment:function(a){var b={data:null,content:a||""};if(a&&16<a.length){var c;(c=/\x3c!--cke-data:(.*?)--\x3e/g.exec(a))&&c[1]&&(b.data=JSON.parse(decodeURIComponent(c[1])),
b.content=a.replace(c[0],""))}return b},_applyDataComment:function(a,b){var c="";b&&CKEDITOR.tools.objectKeys(b).length&&(c="\x3c!--cke-data:"+encodeURIComponent(JSON.stringify(b))+"--\x3e");return c+(a&&a.length?a:"")}}}(),CKEDITOR.config.clipboard_notificationDuration=1E4,CKEDITOR.plugins.add("panelbutton",{requires:"button",onLoad:function(){function c(c){var b=this._;b.state!=CKEDITOR.TRISTATE_DISABLED&&(this.createPanel(c),b.on?b.panel.hide():b.panel.showBlock(this._.id,this.document.getById(this._.id),
4))}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(f){var b=f.panel||{};delete f.panel;this.base(f);this.document=b.parent&&b.parent.getDocument()||CKEDITOR.document;b.block={attributes:b.attributes};this.hasArrow=b.toolbarRelated=!0;this.click=c;this._={panelDefinition:b}},statics:{handler:{create:function(c){return new CKEDITOR.ui.panelButton(c)}}},proto:{createPanel:function(c){var b=this._;if(!b.panel){var a=this._.panelDefinition,h=this._.panelDefinition.block,
n=a.parent||CKEDITOR.document.getBody(),m=this._.panel=new CKEDITOR.ui.floatPanel(c,n,a),a=m.addBlock(b.id,h),k=this;m.onShow=function(){k.className&&this.element.addClass(k.className+"_panel");k.setState(CKEDITOR.TRISTATE_ON);b.on=1;k.editorFocus&&c.focus();if(k.onOpen)k.onOpen()};m.onHide=function(a){k.className&&this.element.getFirst().removeClass(k.className+"_panel");k.setState(k.modes&&k.modes[c.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);b.on=0;if(!a&&k.onClose)k.onClose()};m.onEscape=
function(){m.hide(1);k.document.getById(b.id).focus()};if(this.onBlock)this.onBlock(m,a);a.onHide=function(){b.on=0;k.setState(CKEDITOR.TRISTATE_OFF)}}}}})},beforeInit:function(c){c.ui.addHandler(CKEDITOR.UI_PANELBUTTON,CKEDITOR.ui.panelButton.handler)}}),CKEDITOR.UI_PANELBUTTON="panelbutton",function(){CKEDITOR.plugins.add("panel",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}});CKEDITOR.UI_PANEL="panel";CKEDITOR.ui.panel=function(a,b){b&&CKEDITOR.tools.extend(this,
b);CKEDITOR.tools.extend(this,{className:"",css:[]});this.id=CKEDITOR.tools.getNextId();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 c=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'),f=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'),b=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(a,h){this.getHolderElement=function(){var a=
this._.holder;if(!a){if(this.isFramed){var a=this.document.getById(this.id+"_frame"),c=a.getParent(),a=a.getFrameDocument();CKEDITOR.env.iOS&&c.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"});c=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=!0;if(this.onLoad)this.onLoad()},this));a.write(b.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+c+");"},n)));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(c)}else a=this.document.getById(this.id);this._.holder=a}return a};var n={editorId:a.id,id:this.id,langCode:a.langCode,dir:a.lang.dir,cls:this.className,
frame:"",env:CKEDITOR.env.cssClass,"z-index":a.config.baseFloatZIndex+1};if(this.isFramed){var m=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";n.frame=f.output({id:this.id+"_frame",src:m})}m=c.output(n);h&&h.push(m);return m},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){a=this._.blocks[a];var b=this._.currentBlock,c=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");b&&b.hide();this._.currentBlock=a;CKEDITOR.fire("ariaWidget",c);a._.focusIndex=-1;this._.onKeyDown=a.onKeyDown&&CKEDITOR.tools.bind(a.onKeyDown,a);a.show();return a},destroy:function(){this.element&&this.element.remove()}};CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(a,
b){this.element=a.append(a.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));b&&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){-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))},markFirstDisplayed:function(a){for(var b=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&"none"==a.getStyle("display")},c=this._.getItems(),f,k,g=c.count()-1;0<=g;g--)if(f=c.getItem(g),f.getAscendant(b)||(k=f,this._.focusIndex=g),"true"==f.getAttribute("aria-selected")){k=f;this._.focusIndex=g;break}k&&(a&&a(),CKEDITOR.env.webkit&&k.getDocument().getWindow().focus(),k.focus(),this.onMark&&this.onMark(k))},
getItems:function(){return this.element.getElementsByTag("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,b){var c=this.keys[a];switch(c){case "next":for(var f=this._.focusIndex,c=this.element.getElementsByTag("a"),k;k=c.getItem(++f);)if(k.getAttribute("_cke_focus")&&k.$.offsetWidth){this._.focusIndex=f;k.focus();break}return k||b?!1:(this._.focusIndex=-1,this.onKeyDown(a,
1));case "prev":f=this._.focusIndex;for(c=this.element.getElementsByTag("a");0<f&&(k=c.getItem(--f));){if(k.getAttribute("_cke_focus")&&k.$.offsetWidth){this._.focusIndex=f;k.focus();break}k=null}return k||b?!1:(this._.focusIndex=c.count(),this.onKeyDown(a,1));case "click":case "mouseup":return f=this._.focusIndex,(k=0<=f&&this.element.getElementsByTag("a").getItem(f))&&(k.$[c]?k.$[c]():k.$["on"+c]()),!1}return!0}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function c(b,
a,c,n,m){m=CKEDITOR.tools.genKey(a.getUniqueId(),c.getUniqueId(),b.lang.dir,b.uiColor||"",n.css||"",m||"");var k=f[m];k||(k=f[m]=new CKEDITOR.ui.panel(a,n),k.element=c.append(CKEDITOR.dom.element.createFromHtml(k.render(b),a)),k.element.setStyles({display:"none",position:"absolute"}));return k}var f={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(b,a,f,n){function m(){d.hide()}f.forceIFrame=1;f.toolbarRelated&&b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(a=CKEDITOR.document.getById("cke_"+
b.name));var k=a.getDocument();n=c(b,k,a,f,n||0);var g=n.element,e=g.getFirst(),d=this;g.disableContextMenu();this.element=g;this._={editor:b,panel:n,parentElement:a,definition:f,document:k,iframe:e,children:[],dir:b.lang.dir,showBlockParams:null};b.on("mode",m);b.on("resize",m);k.getWindow().on("resize",function(){this.reposition()},this)},proto:{addBlock:function(b,a){return this._.panel.addBlock(b,a)},addListBlock:function(b,a){return this._.panel.addListBlock(b,a)},getBlock:function(b){return this._.panel.getBlock(b)},
showBlock:function(b,a,c,f,m,k){var g=this._.panel,e=g.showBlock(b);this._.showBlockParams=[].slice.call(arguments);this.allowBlur(!1);var d=this._.editor.editable();this._.returnFocus=d.hasFocus?d:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);this._.hideTimeout=0;var l=this.element,d=this._.iframe,d=CKEDITOR.env.ie&&!CKEDITOR.env.edge?d:new CKEDITOR.dom.window(d.$.contentWindow),p=l.getDocument(),q=this._.parentElement.getPositionedAncestor(),u=a.getDocumentPosition(p),p=q?q.getDocumentPosition(p):
{x:0,y:0},t="rtl"==this._.dir,r=u.x+(f||0)-p.x,v=u.y+(m||0)-p.y;!t||1!=c&&4!=c?t||2!=c&&3!=c||(r+=a.$.offsetWidth-1):r+=a.$.offsetWidth;if(3==c||4==c)v+=a.$.offsetHeight-1;this._.panel._.offsetParentId=a.getId();l.setStyles({top:v+"px",left:0,display:""});l.setOpacity(0);l.getFirst().removeStyle("width");this._.editor.focusManager.add(d);this._.blurSet||(CKEDITOR.event.useCapture=!0,d.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),d.on("focus",function(){this._.focused=!0;this.hideChild();this.allowBlur(!0)},this),CKEDITOR.env.iOS&&(d.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this),d.on("touchend",function(){this._.hideTimeout=0;this.focus()},this)),CKEDITOR.event.useCapture=!1,this._.blurSet=1);g.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=l;a.removeStyle("width");if(e.autoSize){var b=e.element.getDocument(),b=(CKEDITOR.env.webkit||CKEDITOR.env.edge?e.element:b.getBody()).$.scrollWidth;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<b&&(b+=(a.$.offsetWidth||0)-(a.$.clientWidth||0)+3);a.setStyle("width",b+10+"px");b=e.element.$.scrollHeight;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<b&&(b+=(a.$.offsetHeight||0)-(a.$.clientHeight||
0)+3);a.setStyle("height",b+"px");g._.currentBlock.element.setStyle("display","none").removeStyle("display")}else a.removeStyle("height");t&&(r-=l.$.offsetWidth);l.setStyle("left",r+"px");var b=g.element.getWindow(),a=l.$.getBoundingClientRect(),b=b.getViewPaneSize(),c=a.width||a.right-a.left,d=a.height||a.bottom-a.top,f=t?a.right:b.width-a.left,h=t?b.width-a.right:a.left;t?f<c&&(r=h>c?r+c:b.width>c?r-a.left:r-a.right+b.width):f<c&&(r=h>c?r-c:b.width>c?r-a.right+b.width:r-a.left);c=a.top;b.height-
a.top<d&&(v=c>d?v-d:b.height>d?v-a.bottom+b.height:v-a.top);CKEDITOR.env.ie&&(b=a=new CKEDITOR.dom.element(l.$.offsetParent),"html"==b.getName()&&(b=b.getDocument().getBody()),"rtl"==b.getComputedStyle("direction")&&(r=CKEDITOR.env.ie8Compat?r-2*l.getDocument().getDocumentElement().$.scrollLeft:r-(a.$.scrollWidth-a.$.clientWidth)));var a=l.getFirst(),m;(m=a.getCustomData("activePanel"))&&m.onHide&&m.onHide.call(this,1);a.setCustomData("activePanel",this);l.setStyles({top:v+"px",left:r+"px"});l.setOpacity(1);
k&&k()},this);g.isLoaded?a():g.onLoad=a;CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus();e.element.focus();CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=a);this.allowBlur(!0);CKEDITOR.env.ie?CKEDITOR.tools.setTimeout(function(){e.markFirstDisplayed?e.markFirstDisplayed():e._.markFirstDisplayed()},0):e.markFirstDisplayed?e.markFirstDisplayed():e._.markFirstDisplayed();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 b=this._.showBlockParams;this.visible&&this._.showBlockParams&&(this.hide(),this.showBlock.apply(this,b))},focus:function(){if(CKEDITOR.env.webkit){var b=CKEDITOR.document.getActive();b&&!b.equals(this._.iframe)&&b.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var b=this._.iframe.getFrameDocument().getActive();b&&b.is("a")&&(this._.lastFocused=
b)},hide:function(b){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(b=b&&this._.returnFocus)CKEDITOR.env.webkit&&b.type&&b.getWindow().$.focus(),b.focus();delete this._.lastFocused;this._.showBlockParams=null;this._.editor.fire("panelHide",this)}},allowBlur:function(b){var a=this._.panel;
void 0!==b&&(a.allowBlur=b);return a.allowBlur},showAsChild:function(b,a,c,f,m,k){if(this._.activeChild!=b||b._.panel._.offsetParentId!=c.getId())this.hideChild(),b.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this),this._.activeChild=b,this._.focused=!1,b.showBlock(a,c,f,m,k),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){b.element.getChild(0).$.style.cssText+=""},100)},hideChild:function(b){var a=
this._.activeChild;a&&(delete a.onHide,delete this._.activeChild,a.hide(),b&&this.focus())}}});CKEDITOR.on("instanceDestroyed",function(){var b=CKEDITOR.tools.isEmpty(CKEDITOR.instances),a;for(a in f){var c=f[a];b?c.destroy():c.element.hide()}b&&(f={})})}(),CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",init:function(c){function f(a,d,g,f,k){var u=new CKEDITOR.style(n["colorButton_"+d+"Style"]),t=CKEDITOR.tools.getNextId()+"_colorBox",r;k=k||{};c.ui.add(a,CKEDITOR.UI_PANELBUTTON,
{label:g,title:g,modes:{wysiwyg:1},editorFocus:0,toolbar:"colors,"+f,allowedContent:u,requiredContent:u,contentTransformations:k.contentTransformations,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":m.panelTitle}},onBlock:function(a,e){r=e;e.autoSize=!0;e.element.addClass("cke_colorblock");e.element.setHtml(b(a,d,t));e.element.getDocument().getBody().setStyle("overflow","hidden");CKEDITOR.ui.fire("ready",this);var g=e.keys,f="rtl"==c.lang.dir;g[f?37:39]="next";
g[40]="next";g[9]="next";g[f?39:37]="prev";g[38]="prev";g[CKEDITOR.SHIFT+9]="prev";g[32]="click"},refresh:function(){c.activeFilter.check(u)||this.setState(CKEDITOR.TRISTATE_DISABLED)},onOpen:function(){var a=c.getSelection(),b=a&&a.getStartElement(),e=c.elementPath(b);if(e){b=e.block||e.blockLimit||c.document.getBody();do e=b&&b.getComputedStyle("back"==d?"background-color":"color")||"transparent";while("back"==d&&"transparent"==e&&b&&(b=b.getParent()));e&&"transparent"!=e||(e="#ffffff");!1!==n.colorButton_enableAutomatic&&
this._.panel._.iframe.getFrameDocument().getById(t).setStyle("background-color",e);if(b=a&&a.getRanges()[0]){for(var a=new CKEDITOR.dom.walker(b),g=b.collapsed?b.startContainer:a.next(),b="";g;){g.type===CKEDITOR.NODE_TEXT&&(g=g.getParent());g=h(g.getComputedStyle("back"==d?"background-color":"color"));b=b||g;if(b!==g){b="";break}g=a.next()}a=b;b=r._.getItems();for(g=0;g<b.count();g++){var f=b.getItem(g);f.removeAttribute("aria-selected");a&&a==h(f.getAttribute("data-value"))&&f.setAttribute("aria-selected",
!0)}}return e}}})}function b(b,d,g){b=[];var f=n.colorButton_colors.split(","),k=n.colorButton_colorsPerRow||6,h=c.plugins.colordialog&&!1!==n.colorButton_enableMore,t=f.length+(h?2:1),r=CKEDITOR.tools.addFunction(function(b,d){function e(b){c.removeStyle(new CKEDITOR.style(n["colorButton_"+d+"Style"],{color:"inherit"}));var g=n["colorButton_"+d+"Style"];g.childRule="back"==d?function(b){return a(b)}:function(b){return!(b.is("a")||b.getElementsByTag("a").count())||a(b)};c.focus();c.applyStyle(new CKEDITOR.style(g,
{color:b}));c.fire("saveSnapshot")}c.focus();c.fire("saveSnapshot");if("?"==b)c.getColorFromDialog(function(a){if(a)return e(a)});else return e(b)});!1!==n.colorButton_enableAutomatic&&b.push('\x3ca class\x3d"cke_colorauto" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"',m.auto,'" onclick\x3d"CKEDITOR.tools.callFunction(',r,",null,'",d,"');return false;\" href\x3d\"javascript:void('",m.auto,'\')" role\x3d"option" aria-posinset\x3d"1" aria-setsize\x3d"',t,'"\x3e\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e\x3ctr\x3e\x3ctd colspan\x3d"'+
k+'" align\x3d"center"\x3e\x3cspan class\x3d"cke_colorbox" id\x3d"',g,'"\x3e\x3c/span\x3e',m.auto,"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/a\x3e");b.push('\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e');for(g=0;g<f.length;g++){0===g%k&&b.push("\x3c/tr\x3e\x3ctr\x3e");var v=f[g].split("/"),x=v[0],B=v[1]||x;v[1]||(x="#"+x.replace(/^(.)(.)(.)$/,"$1$1$2$2$3$3"));v=c.lang.colorbutton.colors[B]||B;b.push('\x3ctd\x3e\x3ca class\x3d"cke_colorbox" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"',
v,'" onclick\x3d"CKEDITOR.tools.callFunction(',r,",'",x,"','",d,"'); return false;\" href\x3d\"javascript:void('",v,'\')" data-value\x3d"'+B+'" role\x3d"option" aria-posinset\x3d"',g+2,'" aria-setsize\x3d"',t,'"\x3e\x3cspan class\x3d"cke_colorbox" style\x3d"background-color:#',B,'"\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e')}h&&b.push('\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"'+k+'" align\x3d"center"\x3e\x3ca class\x3d"cke_colormore" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"',m.more,'" onclick\x3d"CKEDITOR.tools.callFunction(',
r,",'?','",d,"');return false;\" href\x3d\"javascript:void('",m.more,"')\"",' role\x3d"option" aria-posinset\x3d"',t,'" aria-setsize\x3d"',t,'"\x3e',m.more,"\x3c/a\x3e\x3c/td\x3e");b.push("\x3c/tr\x3e\x3c/table\x3e");return b.join("")}function a(a){return"false"==a.getAttribute("contentEditable")||a.getAttribute("data-nostyle")}function h(a){return CKEDITOR.tools.normalizeHex("#"+CKEDITOR.tools.convertRgbToHex(a||"")).replace(/#/g,"")}var n=c.config,m=c.lang.colorbutton;if(!CKEDITOR.env.hc){f("TextColor",
"fore",m.textColorTitle,10,{contentTransformations:[[{element:"font",check:"span{color}",left:function(a){return!!a.attributes.color},right:function(a){a.name="span";a.attributes.color&&(a.styles.color=a.attributes.color);delete a.attributes.color}}]]});var k={},g=c.config.colorButton_normalizeBackground;if(void 0===g||g)k.contentTransformations=[[{element:"span",left:function(a){var b=CKEDITOR.tools;if("span"!=a.name||!a.styles||!a.styles.background)return!1;a=b.style.parse.background(a.styles.background);
return a.color&&1===b.objectKeys(a).length},right:function(a){var b=(new CKEDITOR.style(c.config.colorButton_backStyle,{color:a.styles.background})).getDefinition();a.name=b.element;a.styles=b.styles;a.attributes=b.attributes||{};return a}}]];f("BGColor","back",m.bgColorTitle,20,k)}}}),CKEDITOR.config.colorButton_colors="1ABC9C,2ECC71,3498DB,9B59B6,4E5F70,F1C40F,16A085,27AE60,2980B9,8E44AD,2C3E50,F39C12,E67E22,E74C3C,ECF0F1,95A5A6,DDD,FFF,D35400,C0392B,BDC3C7,7F8C8D,999,000",CKEDITOR.config.colorButton_foreStyle=
{element:"span",styles:{color:"#(color)"},overrides:[{element:"font",attributes:{color:null}}]},CKEDITOR.config.colorButton_backStyle={element:"span",styles:{"background-color":"#(color)"}},CKEDITOR.plugins.colordialog={requires:"dialog",init:function(c){var f=new CKEDITOR.dialogCommand("colordialog");f.editorFocus=!1;c.addCommand("colordialog",f);CKEDITOR.dialog.add("colordialog",this.path+"dialogs/colordialog.js");c.getColorFromDialog=function(b,a){var f,n,m;f=function(c){n(this);c="ok"==c.name?
this.getValueOf("picker","selectedColor"):null;/^[0-9a-f]{3}([0-9a-f]{3})?$/i.test(c)&&(c="#"+c);b.call(a,c)};n=function(a){a.removeListener("ok",f);a.removeListener("cancel",f)};m=function(a){a.on("ok",f);a.on("cancel",f)};c.execCommand("colordialog");if(c._.storedDialogs&&c._.storedDialogs.colordialog)m(c._.storedDialogs.colordialog);else CKEDITOR.on("dialogDefinition",function(a){if("colordialog"==a.data.name){var b=a.data.definition;a.removeListener();b.onLoad=CKEDITOR.tools.override(b.onLoad,
function(a){return function(){m(this);b.onLoad=a;"function"==typeof a&&a.call(this)}})}})}}},CKEDITOR.plugins.add("colordialog",CKEDITOR.plugins.colordialog),CKEDITOR.plugins.add("divarea",{afterInit:function(c){c.addMode("wysiwyg",function(f){var b=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_wysiwyg_div cke_reset cke_enable_context_menu" hidefocus\x3d"true"\x3e\x3c/div\x3e');c.ui.space("contents").append(b);b=c.editable(b);b.detach=CKEDITOR.tools.override(b.detach,function(a){return function(){a.apply(this,
arguments);this.remove()}});c.setData(c.getData(1),f);c.fire("contentDom")})}}),function(){function c(b,c){function m(a){a=d.list[a];var c;a.equals(b.editable())||"true"==a.getAttribute("contenteditable")?(c=b.createRange(),c.selectNodeContents(a),c=c.select()):(c=b.getSelection(),c.selectElement(a));CKEDITOR.env.ie&&b.fire("selectionChange",{selection:c,path:new CKEDITOR.dom.elementPath(a)});b.focus()}function k(){e&&e.setHtml('\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e');delete d.list}
var g=b.ui.spaceId("path"),e,d=b._.elementsPath,l=d.idBase;c.html+='\x3cspan id\x3d"'+g+'_label" class\x3d"cke_voice_label"\x3e'+b.lang.elementspath.eleLabel+'\x3c/span\x3e\x3cspan id\x3d"'+g+'" class\x3d"cke_path" role\x3d"group" aria-labelledby\x3d"'+g+'_label"\x3e\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e\x3c/span\x3e';b.on("uiReady",function(){var a=b.ui.space("path");a&&b.focusManager.add(a,1)});d.onClick=m;var p=CKEDITOR.tools.addFunction(m),q=CKEDITOR.tools.addFunction(function(a,
c){var e=d.idBase,g;c=new CKEDITOR.dom.event(c);g="rtl"==b.lang.dir;switch(c.getKeystroke()){case g?39:37:case 9:return(g=CKEDITOR.document.getById(e+(a+1)))||(g=CKEDITOR.document.getById(e+"0")),g.focus(),!1;case g?37:39:case CKEDITOR.SHIFT+9:return(g=CKEDITOR.document.getById(e+(a-1)))||(g=CKEDITOR.document.getById(e+(d.list.length-1))),g.focus(),!1;case 27:return b.focus(),!1;case 13:case 32:return m(a),!1}return!0});b.on("selectionChange",function(c){for(var f=[],k=d.list=[],m=[],n=d.filters,
B=!0,w=c.data.path.elements,A=w.length;A--;){var F=w[A],y=0;c=F.data("cke-display-name")?F.data("cke-display-name"):F.data("cke-real-element-type")?F.data("cke-real-element-type"):F.getName();(B=F.hasAttribute("contenteditable")?"true"==F.getAttribute("contenteditable"):B)||F.hasAttribute("contenteditable")||(y=1);for(var C=0;C<n.length;C++){var D=n[C](F,c);if(!1===D){y=1;break}c=D||c}y||(k.unshift(F),m.unshift(c))}k=k.length;for(n=0;n<k;n++)c=m[n],B=b.lang.elementspath.eleTitle.replace(/%1/,c),c=
a.output({id:l+n,label:B,text:c,jsTitle:"javascript:void('"+c+"')",index:n,keyDownFn:q,clickFn:p}),f.unshift(c);e||(e=CKEDITOR.document.getById(g));m=e;m.setHtml(f.join("")+'\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e');b.fire("elementsPathUpdate",{space:m})});b.on("readOnly",k);b.on("contentDomUnload",k);b.addCommand("elementsPathFocus",f.toolbarFocus);b.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}var f={toolbarFocus:{editorFocus:!1,readOnly:1,exec:function(a){(a=CKEDITOR.document.getById(a._.elementsPath.idBase+
"0"))&&a.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}}},b="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(b+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(b+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var a=CKEDITOR.addTemplate("pathItem",'\x3ca id\x3d"{id}" href\x3d"{jsTitle}" tabindex\x3d"-1" class\x3d"cke_path_item" title\x3d"{label}"'+b+' 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(a){a._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_",filters:[]};a.on("uiSpace",function(b){"bottom"==b.data.space&&c(a,b.data)})}})}(),function(){function c(a,b,c){c=a.config.forceEnterMode||c;if("wysiwyg"==a.mode){b||(b=a.activeEnterMode);var g=a.elementPath();g&&!g.isContextFor("p")&&(b=CKEDITOR.ENTER_BR,c=1);a.fire("saveSnapshot");b==CKEDITOR.ENTER_BR?m(a,b,null,c):k(a,b,null,c);a.fire("saveSnapshot")}}function f(a){a=
a.getSelection().getRanges(!0);for(var b=a.length-1;0<b;b--)a[b].deleteContents();return a[0]}function b(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(a){a.addCommand("enter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(a){c(a)}});a.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,
exec:function(a){c(a,a.activeShiftEnterMode,1)}});a.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var a=CKEDITOR.dom.walker.whitespaces(),h=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(c,d,k,n){if(k=k||f(c)){k=b(k);var q=k.document,u=k.checkStartOfBlock(),t=k.checkEndOfBlock(),r=c.elementPath(k.startContainer),v=r.block,x=d==CKEDITOR.ENTER_DIV?"div":"p",B;if(u&&t){if(v&&(v.is("li")||v.getParent().is("li"))){v.is("li")||(v=v.getParent());k=v.getParent();
B=k.getParent();n=!v.hasPrevious();var w=!v.hasNext(),x=c.getSelection(),A=x.createBookmarks(),u=v.getDirection(1),t=v.getAttribute("class"),F=v.getAttribute("style"),y=B.getDirection(1)!=u;c=c.enterMode!=CKEDITOR.ENTER_BR||y||F||t;if(B.is("li"))n||w?(n&&w&&k.remove(),v[w?"insertAfter":"insertBefore"](B)):v.breakParent(B);else{if(c)if(r.block.is("li")?(B=q.createElement(d==CKEDITOR.ENTER_P?"p":"div"),y&&B.setAttribute("dir",u),F&&B.setAttribute("style",F),t&&B.setAttribute("class",t),v.moveChildren(B)):
B=r.block,n||w)B[n?"insertBefore":"insertAfter"](k);else v.breakParent(k),B.insertAfter(k);else if(v.appendBogus(!0),n||w)for(;q=v[n?"getFirst":"getLast"]();)q[n?"insertBefore":"insertAfter"](k);else for(v.breakParent(k);q=v.getLast();)q.insertAfter(k);v.remove()}x.selectBookmarks(A);return}if(v&&v.getParent().is("blockquote")){v.breakParent(v.getParent());v.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||v.getPrevious().remove();v.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||v.getNext().remove();
k.moveToElementEditStart(v);k.select();return}}else if(v&&v.is("pre")&&!t){m(c,d,k,n);return}if(u=k.splitBlock(x)){d=u.previousBlock;v=u.nextBlock;r=u.wasStartOfBlock;c=u.wasEndOfBlock;v?(A=v.getParent(),A.is("li")&&(v.breakParent(A),v.move(v.getNext(),1))):d&&(A=d.getParent())&&A.is("li")&&(d.breakParent(A),A=d.getNext(),k.moveToElementEditStart(A),d.move(d.getPrevious()));if(r||c){if(d){if(d.is("li")||!g.test(d.getName())&&!d.is("pre"))B=d.clone()}else v&&(B=v.clone());B?n&&!B.is("li")&&B.renameNode(x):
A&&A.is("li")?B=A:(B=q.createElement(x),d&&(w=d.getDirection())&&B.setAttribute("dir",w));if(q=u.elementPath)for(n=0,x=q.elements.length;n<x;n++){A=q.elements[n];if(A.equals(q.block)||A.equals(q.blockLimit))break;CKEDITOR.dtd.$removeEmpty[A.getName()]&&(A=A.clone(),B.moveChildren(A),B.append(A))}B.appendBogus();B.getParent()||k.insertNode(B);B.is("li")&&B.removeAttribute("value");!CKEDITOR.env.ie||!r||c&&d.getChildCount()||(k.moveToElementEditStart(c?d:B),k.select());k.moveToElementEditStart(r&&!c?
v:B)}else v.is("li")&&(B=k.clone(),B.selectNodeContents(v),B=new CKEDITOR.dom.walker(B),B.evaluator=function(b){return!(h(b)||a(b)||b.type==CKEDITOR.NODE_ELEMENT&&b.getName()in CKEDITOR.dtd.$inline&&!(b.getName()in CKEDITOR.dtd.$empty))},(A=B.next())&&A.type==CKEDITOR.NODE_ELEMENT&&A.is("ul","ol")&&(CKEDITOR.env.needsBrFiller?q.createElement("br"):q.createText(" ")).insertBefore(A)),v&&k.moveToElementEditStart(v);k.select();k.scrollIntoView()}}},enterBr:function(a,b,c,h){if(c=c||f(a)){var m=c.document,
n=c.checkEndOfBlock(),t=new CKEDITOR.dom.elementPath(a.getSelection().getStartElement()),r=t.block,v=r&&t.block.getName();h||"li"!=v?(!h&&n&&g.test(v)?(n=r.getDirection())?(m=m.createElement("div"),m.setAttribute("dir",n),m.insertAfter(r),c.setStart(m,0)):(m.createElement("br").insertAfter(r),CKEDITOR.env.gecko&&m.createText("").insertAfter(r),c.setStartAt(r.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(a="pre"==v&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?
m.createText("\r"):m.createElement("br"),c.deleteContents(),c.insertNode(a),CKEDITOR.env.needsBrFiller?(m.createText("").insertAfter(a),n&&(r||t.blockLimit).appendBogus(),a.getNext().$.nodeValue="",c.setStartAt(a.getNext(),CKEDITOR.POSITION_AFTER_START)):c.setStartAt(a,CKEDITOR.POSITION_AFTER_END)),c.collapse(!0),c.select(),c.scrollIntoView()):k(a,b,c,h)}}};var n=CKEDITOR.plugins.enterkey,m=n.enterBr,k=n.enterBlock,g=/^h[1-6]$/}(),function(){function c(c,b){var a={},h=[],n={nbsp:" ",shy:"­",gt:"\x3e",
lt:"\x3c",amp:"\x26",apos:"'",quot:'"'};c=c.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(c,d){var g=b?"\x26"+d+";":n[d];a[g]=b?n[d]:"\x26"+d+";";h.push(g);return""});if(!b&&c){c=c.split(",");var m=document.createElement("div"),k;m.innerHTML="\x26"+c.join(";\x26")+";";k=m.innerHTML;m=null;for(m=0;m<k.length;m++){var g=k.charAt(m);a[g]="\x26"+c[m]+";";h.push(g)}}a.regex=h.join(b?"|":"");return a}CKEDITOR.plugins.add("entities",{afterInit:function(f){function b(a){return g[a]}function a(a){return"force"!=
h.entities_processNumerical&&m[a]?m[a]:"\x26#"+a.charCodeAt(0)+";"}var h=f.config;if(f=(f=f.dataProcessor)&&f.htmlFilter){var n=[];!1!==h.basicEntities&&n.push("nbsp,gt,lt,amp");h.entities&&(n.length&&n.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&&n.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&&n.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&&n.push(h.entities_additional));var m=c(n.join(",")),k=m.regex?"["+m.regex+"]":"a^";delete m.regex;h.entities&&h.entities_processNumerical&&(k="[^ -~]|"+k);var k=new RegExp(k,"g"),g=c("nbsp,gt,lt,amp,shy",!0),e=new RegExp(g.regex,"g");f.addRules({text:function(c){return c.replace(e,b).replace(k,a)}},{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",function(){function c(a){var c=a.config,n=a.fire("uiSpace",{space:"top",html:""}).html,m=function(){function d(a,c,e){g.setStyle(c,b(e));g.setStyle("position",a)}function e(a){var b=n.getDocumentPosition();switch(a){case "top":d("absolute","top",b.y-x-A);break;case "pin":d("fixed","top",y);break;case "bottom":d("absolute","top",b.y+(r.height||r.bottom-r.top)+A)}k=a}var k,n,t,r,v,x,B,w=c.floatSpaceDockedOffsetX||0,A=c.floatSpaceDockedOffsetY||0,F=c.floatSpacePinnedOffsetX||
0,y=c.floatSpacePinnedOffsetY||0;return function(d){if(n=a.editable()){var l=d&&"focus"==d.name;l&&g.show();a.fire("floatingSpaceLayout",{show:l});g.removeStyle("left");g.removeStyle("right");t=g.getClientRect();r=n.getClientRect();v=f.getViewPaneSize();x=t.height;B="pageXOffset"in f.$?f.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft;k?(x+A<=r.top?e("top"):x+A>v.height-r.bottom?e("pin"):e("bottom"),d=v.width/2,d=c.floatSpacePreferRight?"right":0<r.left&&r.right<v.width&&r.width>t.width?
"rtl"==c.contentsLangDirection?"right":"left":d-r.left>r.right-d?"left":"right",t.width>v.width?(d="left",l=0):(l="left"==d?0<r.left?r.left:0:r.right<v.width?v.width-r.right:0,l+t.width>v.width&&(d="left"==d?"right":"left",l=0)),g.setStyle(d,b(("pin"==k?F:w)+l+("pin"==k?0:"left"==d?B:-B)))):(k="pin",e("pin"),m(d))}}}();if(n){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'),g=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(k.output({content:n,
id:a.id,langDir:a.lang.dir,langCode:a.langCode,name:a.name,style:"display:none;z-index:"+(c.baseFloatZIndex-1),topId:a.ui.spaceId("top"),voiceLabel:a.title}))),e=CKEDITOR.tools.eventsBuffer(500,m),d=CKEDITOR.tools.eventsBuffer(100,m);g.unselectable();g.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});a.on("focus",function(b){m(b);a.on("change",e.input);f.on("scroll",d.input);f.on("resize",d.input)});a.on("blur",function(){g.hide();a.removeListener("change",
e.input);f.removeListener("scroll",d.input);f.removeListener("resize",d.input)});a.on("destroy",function(){f.removeListener("scroll",d.input);f.removeListener("resize",d.input);g.clearCustomData();g.remove()});a.focusManager.hasFocus&&g.show();a.focusManager.add(g,1)}}var f=CKEDITOR.document.getWindow(),b=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(a){a.on("loaded",function(){c(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var c=
CKEDITOR.addTemplate("panel-list",'\x3cul role\x3d"presentation" class\x3d"cke_panel_list"\x3e{items}\x3c/ul\x3e'),f=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'),b=CKEDITOR.addTemplate("panel-list-group",
'\x3ch1 id\x3d"{id}" class\x3d"cke_panel_grouptitle" role\x3d"presentation" \x3e{label}\x3c/h1\x3e'),a=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(a,b){return this.addBlock(a,new CKEDITOR.ui.listBlock(this.getHolderElement(),b))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(a,b){b=b||{};var c=b.attributes||(b.attributes={});(this.multiSelect=!!b.multiSelect)&&(c["aria-multiselectable"]=!0);!c.role&&(c.role="listbox");this.base.apply(this,arguments);
this.element.setAttribute("role",c.role);c=this.keys;c[40]="next";c[9]="next";c[38]="prev";c[CKEDITOR.SHIFT+9]="prev";c[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(c[13]="mouseup");this._.pendingHtml=[];this._.pendingList=[];this._.items={};this._.groups={}},_:{close:function(){if(this._.started){var a=c.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(a);delete this._.started}},getClick:function(){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(b,c,m){var k=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0);this._.items[b]=k;var g;g=CKEDITOR.tools.htmlEncodeAttr(b).replace(a,"\\'");b={id:k,val:g,onclick:CKEDITOR.env.ie?'onclick\x3d"return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(m||b),text:c||b};this._.pendingList.push(f.output(b))},startGroup:function(a){this._.close();
var c=CKEDITOR.tools.getNextId();this._.groups[a]=c;this._.pendingHtml.push(b.output({id:c,label:a}))},commit:function(){this._.close();this.element.appendHtml(this._.pendingHtml.join(""));delete this._.size;this._.pendingHtml=[]},toggle:function(a){var b=this.isMarked(a);b?this.unmark(a):this.mark(a);return!b},hideGroup:function(a){var b=(a=this.element.getDocument().getById(this._.groups[a]))&&a.getNext();a&&(a.setStyle("display","none"),b&&"ul"==b.getName()&&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,c=this.element.getDocument(),f;for(f in a)c.getById(a[f]).setStyle("display","");for(var g in b)a=c.getById(b[g]),f=a.getNext(),a.setStyle("display",""),f&&"ul"==f.getName()&&f.setStyle("display","")},mark:function(a){this.multiSelect||this.unmarkAll();a=this._.items[a];var b=this.element.getDocument().getById(a);b.addClass("cke_selected");this.element.getDocument().getById(a+"_option").setAttribute("aria-selected",!0);this.onMark&&this.onMark(b)},
markFirstDisplayed:function(){var a=this;this._.markFirstDisplayed(function(){a.multiSelect||a.unmarkAll()})},unmark:function(a){var b=this.element.getDocument();a=this._.items[a];var c=b.getById(a);c.removeClass("cke_selected");b.getById(a+"_option").removeAttribute("aria-selected");this.onUnmark&&this.onUnmark(c)},unmarkAll:function(){var a=this._.items,b=this.element.getDocument(),c;for(c in a){var f=a[c];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"),c,f=-1;if(a)for(c=this.element.getDocument().getById(this._.items[a]).getFirst();a=b.getItem(++f);){if(a.equals(c)){this._.focusIndex=f;break}}else this.element.focus();c&&setTimeout(function(){c.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(c){c.ui.addHandler(CKEDITOR.UI_RICHCOMBO,
CKEDITOR.ui.richCombo.handler)}}),function(){var c='\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&&
(c+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(c+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var c=c+(' 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"),f=CKEDITOR.addTemplate("combo",c);CKEDITOR.UI_RICHCOMBO="richcombo";CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(b){CKEDITOR.tools.extend(this,b,{canGroup:!1,title:b.label,modes:{wysiwyg:1},editorFocus:1});b=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=b.parent&&b.parent.getDocument()||CKEDITOR.document;b.className="cke_combopanel";
b.block={multiSelect:b.multiSelect,attributes:b.attributes};b.toolbarRelated=!0;this._={panelDefinition:b,items:{}}},proto:{renderHtml:function(b){var a=[];this.render(b,a);return a.join("")},render:function(b,a){function c(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var a=this.modes[b.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;b.readOnly&&!this.readOnly&&(a=CKEDITOR.TRISTATE_DISABLED);this.setState(a);this.setValue("");a!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var n=
CKEDITOR.env,m="cke_"+this.id,k=CKEDITOR.tools.addFunction(function(a){p&&(b.unlockSelection(1),p=0);e.execute(a)},this),g=this,e={id:m,combo:this,focus:function(){CKEDITOR.document.getById(m).getChild(1).focus()},execute:function(a){var c=g._;if(c.state!=CKEDITOR.TRISTATE_DISABLED)if(g.createPanel(b),c.on)c.panel.hide();else{g.commit();var d=g.getValue();d?c.list.mark(d):c.list.unmarkAll();c.panel.showBlock(g.id,new CKEDITOR.dom.element(a),4)}},clickFn:k};b.on("activeFilterChange",c,this);b.on("mode",
c,this);b.on("selectionChange",c,this);!this.readOnly&&b.on("readOnly",c,this);var d=CKEDITOR.tools.addFunction(function(a,b){a=new CKEDITOR.dom.event(a);var c=a.getKeystroke();switch(c){case 13:case 32:case 40:CKEDITOR.tools.callFunction(k,b);break;default:e.onkey(e,c)}a.preventDefault()}),l=CKEDITOR.tools.addFunction(function(){e.onfocus&&e.onfocus()}),p=0;e.keyDownFn=d;n={id:m,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:n.gecko&&!n.hc?"":(this.title||
"").replace("'",""),keydownFn:d,focusFn:l,clickFn:k};f.output(n,a);if(this.onRender)this.onRender();return e},createPanel:function(b){if(!this._.panel){var a=this._.panelDefinition,c=this._.panelDefinition.block,f=a.parent||CKEDITOR.document.getBody(),m="cke_combopanel__"+this.name,k=new CKEDITOR.ui.floatPanel(b,f,a),a=k.addListBlock(this.id,c),g=this;k.onShow=function(){this.element.addClass(m);g.setState(CKEDITOR.TRISTATE_ON);g._.on=1;g.editorFocus&&!b.focusManager.hasFocus&&b.focus();if(g.onOpen)g.onOpen()};
k.onHide=function(a){this.element.removeClass(m);g.setState(g.modes&&g.modes[b.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);g._.on=0;if(!a&&g.onClose)g.onClose()};k.onEscape=function(){k.hide(1)};a.onClick=function(a,b){g.onClick&&g.onClick.call(g,a,b);k.hide()};this._.panel=k;this._.list=a;k.getBlock(this.id).onHide=function(){g._.on=0;g.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(b,a){this._.value=b;var c=this.document.getById("cke_"+this.id+"_text");c&&
(b||a?c.removeClass("cke_combo_inlinelabel"):(a=this.label,c.addClass("cke_combo_inlinelabel")),c.setText("undefined"!=typeof a?a:b))},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(b){this._.list.mark(b)},hideItem:function(b){this._.list.hideItem(b)},hideGroup:function(b){this._.list.hideGroup(b)},showAll:function(){this._.list.showAll()},add:function(b,a,c){this._.items[b]=c||b;this._.list.add(b,a,c)},startGroup:function(b){this._.list.startGroup(b)},
commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this));this._.committed=1},setState:function(b){if(this._.state!=b){var a=this.document.getById("cke_"+this.id);a.setState(b,"cke_combo");b==CKEDITOR.TRISTATE_DISABLED?a.setAttribute("aria-disabled",!0):a.removeAttribute("aria-disabled");this._.state=b}},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(b){return new CKEDITOR.ui.richCombo(b)}}}});CKEDITOR.ui.prototype.addRichCombo=function(b,a){this.add(b,CKEDITOR.UI_RICHCOMBO,a)}}(),function(){function c(b,a,c,n,m,k,g,e){var d=b.config,l=new CKEDITOR.style(g),p=m.split(";");m=[];for(var q={},u=0;u<p.length;u++){var t=p[u];if(t){var t=t.split("/"),r={},v=p[u]=t[0];r[c]=m[u]=t[1]||v;q[v]=new CKEDITOR.style(g,r);
q[v]._.definition.name=v}else p.splice(u--,1)}b.ui.addRichCombo(a,{label:n.label,title:n.panelTitle,toolbar:"styles,"+e,defaultValue:"cke-default",allowedContent:l,requiredContent:l,contentTransformations:[[{element:"font",check:"span",left:function(a){return!!a.attributes.size||!!a.attributes.align||!!a.attributes.face},right:function(a){var b=" x-small small medium large x-large xx-large 48px".split(" ");a.name="span";a.attributes.size&&(a.styles["font-size"]=b[a.attributes.size],delete a.attributes.size);
a.attributes.align&&(a.styles["text-align"]=a.attributes.align,delete a.attributes.align);a.attributes.face&&(a.styles["font-family"]=a.attributes.face,delete a.attributes.face)}}]],panel:{css:[CKEDITOR.skin.getPath("editor")].concat(d.contentsCss),multiSelect:!1,attributes:{"aria-label":n.panelTitle}},init:function(){var a;a="("+b.lang.common.optionDefault+")";this.startGroup(n.panelTitle);this.add(this.defaultValue,a,a);for(var c=0;c<p.length;c++)a=p[c],this.add(a,q[a].buildPreview(),a)},onClick:function(a){b.focus();
b.fire("saveSnapshot");var c=this.getValue(),d=q[a],e,g,k,l,h;if(c&&a!=c)if(e=q[c],c=b.getSelection().getRanges()[0],c.collapsed){if(g=b.elementPath(),k=g.contains(function(a){return e.checkElementRemovable(a)})){l=c.checkBoundaryOfElement(k,CKEDITOR.START);h=c.checkBoundaryOfElement(k,CKEDITOR.END);if(l&&h){for(l=c.createBookmark();g=k.getFirst();)g.insertBefore(k);k.remove();c.moveToBookmark(l)}else l||h?c.moveToPosition(k,l?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_END):(c.splitElement(k),
c.moveToPosition(k,CKEDITOR.POSITION_AFTER_END)),f(c,g.elements.slice(),k);b.getSelection().selectRanges([c])}}else b.removeStyle(e);a===this.defaultValue?e&&b.removeStyle(e):b.applyStyle(d);b.fire("saveSnapshot")},onRender:function(){b.on("selectionChange",function(a){var c=this.getValue();a=a.data.path.elements;for(var d=0,e;d<a.length;d++){e=a[d];for(var g in q)if(q[g].checkElementMatch(e,!0,b)){g!=c&&this.setValue(g);return}}this.setValue("",k)},this)},refresh:function(){b.activeFilter.check(l)||
this.setState(CKEDITOR.TRISTATE_DISABLED)}})}function f(b,a,c){var n=a.pop();if(n){if(c)return f(b,a,n.equals(c)?null:c);c=n.clone();b.insertNode(c);b.moveToPosition(c,CKEDITOR.POSITION_AFTER_START);f(b,a)}}CKEDITOR.plugins.add("font",{requires:"richcombo",init:function(b){var a=b.config;c(b,"Font","family",b.lang.font,a.font_names,a.font_defaultLabel,a.font_style,30);c(b,"FontSize","size",b.lang.font.fontSize,a.fontSize_sizes,a.fontSize_defaultLabel,a.fontSize_style,40)}})}(),CKEDITOR.config.font_names=
"Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif",CKEDITOR.config.font_defaultLabel="",CKEDITOR.config.font_style={element:"span",styles:{"font-family":"#(family)"},overrides:[{element:"font",
attributes:{face:null}}]},CKEDITOR.config.fontSize_sizes="8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px",CKEDITOR.config.fontSize_defaultLabel="",CKEDITOR.config.fontSize_style={element:"span",styles:{"font-size":"#(size)"},overrides:[{element:"font",attributes:{size:null}}]},CKEDITOR.plugins.add("htmlwriter",{init:function(c){var f=new CKEDITOR.htmlWriter;f.forceSimpleAmpersand=c.config.forceSimpleAmpersand;f.indentationChars=
c.config.dataIndentationChars||"\t";c.dataProcessor.writer=f}}),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 c=CKEDITOR.dtd,f;for(f in CKEDITOR.tools.extend({},c.$nonBodyContent,c.$block,c.$listItem,c.$tableContent))this.setRules(f,{indent:!c[f]["#"],breakBeforeOpen:1,
breakBeforeClose:!c[f]["#"],breakAfterClose:1,needsSpace:f in c.$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(c){var f=this._.rules[c];this._.afterCloser&&f&&f.needsSpace&&this._.needsSpace&&this._.output.push("\n");this._.indent?this.indentation():f&&f.breakBeforeOpen&&(this.lineBreak(),this.indentation());
this._.output.push("\x3c",c);this._.afterCloser=0},openTagClose:function(c,f){var b=this._.rules[c];f?(this._.output.push(this.selfClosingEnd),b&&b.breakAfterClose&&(this._.needsSpace=b.needsSpace)):(this._.output.push("\x3e"),b&&b.indent&&(this._.indentation+=this.indentationChars));b&&b.breakAfterOpen&&this.lineBreak();"pre"==c&&(this._.inPre=1)},attribute:function(c,f){"string"==typeof f&&(this.forceSimpleAmpersand&&(f=f.replace(/&amp;/g,"\x26")),f=CKEDITOR.tools.htmlEncodeAttr(f));this._.output.push(" ",
c,'\x3d"',f,'"')},closeTag:function(c){var f=this._.rules[c];f&&f.indent&&(this._.indentation=this._.indentation.substr(this.indentationChars.length));this._.indent?this.indentation():f&&f.breakBeforeClose&&(this.lineBreak(),this.indentation());this._.output.push("\x3c/",c,"\x3e");"pre"==c&&(this._.inPre=0);f&&f.breakAfterClose&&(this.lineBreak(),this._.needsSpace=f.needsSpace);this._.afterCloser=1},text:function(c){this._.indent&&(this.indentation(),!this._.inPre&&(c=CKEDITOR.tools.ltrim(c)));this._.output.push(c)},
comment:function(c){this._.indent&&this.indentation();this._.output.push("\x3c!--",c,"--\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;this._.needsSpace=0},setRules:function(c,f){var b=this._.rules[c];
b?CKEDITOR.tools.extend(b,f,!0):this._.rules[c]=f}}}),function(){function c(a,c){var n,m;c.on("refresh",function(a){var c=[f],e;for(e in a.data.states)c.push(a.data.states[e]);this.setState(CKEDITOR.tools.search(c,b)?b:f)},c,null,100);c.on("exec",function(b){n=a.getSelection();m=n.createBookmarks(1);b.data||(b.data={});b.data.done=!1},c,null,0);c.on("exec",function(){a.forceNextSelectionCheck();n.selectBookmarks(m)},c,null,100)}var f=CKEDITOR.TRISTATE_DISABLED,b=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",
{init:function(a){var b=CKEDITOR.plugins.indent.genericDefinition;c(a,a.addCommand("indent",new b(!0)));c(a,a.addCommand("outdent",new b));a.ui.addButton&&(a.ui.addButton("Indent",{label:a.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),a.ui.addButton("Outdent",{label:a.lang.indent.outdent,command:"outdent",directional:!0,toolbar:"indent,10"}));a.on("dirChanged",function(b){var c=a.createRange(),f=b.data.node;c.setStartBefore(f);c.setEndAfter(f);for(var g=new CKEDITOR.dom.walker(c),
e;e=g.next();)if(e.type==CKEDITOR.NODE_ELEMENT)if(!e.equals(f)&&e.getDirection())c.setStartAfter(e),g=new CKEDITOR.dom.walker(c);else{var d=a.config.indentClasses;if(d)for(var l="ltr"==b.data.dir?["_rtl",""]:["","_rtl"],h=0;h<d.length;h++)e.hasClass(d[h]+l[0])&&(e.removeClass(d[h]+l[0]),e.addClass(d[h]+l[1]));d=e.getStyle("margin-right");l=e.getStyle("margin-left");d?e.setStyle("margin-left",d):e.removeStyle("margin-left");l?e.setStyle("margin-right",l):e.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent=
{genericDefinition:function(a){this.isIndent=!!a;this.startDisabled=!this.isIndent},specificDefinition:function(a,b,c){this.name=b;this.editor=a;this.jobs={};this.enterBr=a.config.enterMode==CKEDITOR.ENTER_BR;this.isIndent=!!c;this.relatedGlobal=c?"indent":"outdent";this.indentKey=c?9:CKEDITOR.SHIFT+9;this.database={}},registerCommands:function(a,b){a.on("pluginsLoaded",function(){for(var a in b)(function(a,b){var c=a.getCommand(b.relatedGlobal),e;for(e in b.jobs)c.on("exec",function(c){c.data.done||
(a.fire("lockSnapshot"),b.execJob(a,e)&&(c.data.done=!0),a.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(b.database))},this,null,e),c.on("refresh",function(c){c.data.states||(c.data.states={});c.data.states[b.name+"@"+e]=b.refreshJob(a,e,c.data.path)},this,null,e);a.addFeature(b)})(this,b[a])})}};CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}};CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(a,b){var c=this.jobs[b];if(c.state!=
f)return c.exec.call(this,a)},refreshJob:function(a,b,c){b=this.jobs[b];a.activeFilter.checkFeature(this)?b.state=b.refresh.call(this,a,c):b.state=f;return b.state},getContext:function(a){return a.contains(this.context)}}}(),function(){function c(a,b,c){if(!a.getCustomData("indent_processed")){var e=this.editor,d=this.isIndent;if(b){e=a.$.className.match(this.classNameRegex);c=0;e&&(e=e[1],c=CKEDITOR.tools.indexOf(b,e)+1);if(0>(c+=d?1:-1))return;c=Math.min(c,b.length);c=Math.max(c,0);a.$.className=
CKEDITOR.tools.ltrim(a.$.className.replace(this.classNameRegex,""));0<c&&a.addClass(b[c-1])}else{b=f(a,c);c=parseInt(a.getStyle(b),10);var l=e.config.indentOffset||40;isNaN(c)&&(c=0);c+=(d?1:-1)*l;if(0>c)return;c=Math.max(c,0);c=Math.ceil(c/l)*l;a.setStyle(b,c?c+(e.config.indentUnit||"px"):"");""===a.getAttribute("style")&&a.removeAttribute("style")}CKEDITOR.dom.element.setMarker(this.database,a,"indent_processed",1)}}function f(a,b){return"ltr"==(b||a.getComputedStyle("direction"))?"margin-left":
"margin-right"}var b=CKEDITOR.dtd.$listItem,a=CKEDITOR.dtd.$list,h=CKEDITOR.TRISTATE_DISABLED,n=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(m){function k(){g.specificDefinition.apply(this,arguments);this.allowedContent={"div h1 h2 h3 h4 h5 h6 ol p pre ul":{propertiesOnly:!0,styles:e?null:"margin-left,margin-right",classes:e||null}};this.contentTransformations=[["div: splitMarginShorthand"],["h1: splitMarginShorthand"],["h2: splitMarginShorthand"],["h3: splitMarginShorthand"],
["h4: splitMarginShorthand"],["h5: splitMarginShorthand"],["h6: splitMarginShorthand"],["ol: splitMarginShorthand"],["p: splitMarginShorthand"],["pre: splitMarginShorthand"],["ul: splitMarginShorthand"]];this.enterBr&&(this.allowedContent.div=!0);this.requiredContent=(this.enterBr?"div":"p")+(e?"("+e.join(",")+")":"{margin-left}");this.jobs={20:{refresh:function(a,c){var g=c.block||c.blockLimit;if(!g.is(b))var k=g.getAscendant(b),g=k&&c.contains(k)||g;g.is(b)&&(g=g.getParent());if(this.enterBr||this.getContext(c)){if(e){var k=
e,g=g.$.className.match(this.classNameRegex),m=this.isIndent,k=g?m?g[1]!=k.slice(-1):!0:m;return k?n:h}return this.isIndent?n:g?CKEDITOR[0>=(parseInt(g.getStyle(f(g)),10)||0)?"TRISTATE_DISABLED":"TRISTATE_OFF"]:h}return h},exec:function(b){var g=b.getSelection(),g=g&&g.getRanges()[0],f;if(f=b.elementPath().contains(a))c.call(this,f,e);else for(g=g.createIterator(),b=b.config.enterMode,g.enforceRealBlocks=!0,g.enlargeBr=b!=CKEDITOR.ENTER_BR;f=g.getNextParagraph(b==CKEDITOR.ENTER_P?"p":"div");)f.isReadOnly()||
c.call(this,f,e);return!0}}}}var g=CKEDITOR.plugins.indent,e=m.config.indentClasses;g.registerCommands(m,{indentblock:new k(m,"indentblock",!0),outdentblock:new k(m,"outdentblock")});CKEDITOR.tools.extend(k.prototype,g.specificDefinition.prototype,{context:{div:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,p:1,pre:1,table:1},classNameRegex:e?new RegExp("(?:^|\\s+)("+e.join("|")+")(?\x3d$|\\s)"):null})}})}(),function(){function c(a){function c(g){for(var f=h.startContainer,m=h.endContainer;f&&!f.getParent().equals(g);)f=
f.getParent();for(;m&&!m.getParent().equals(g);)m=m.getParent();if(!f||!m)return!1;for(var n=[],u=!1;!u;)f.equals(m)&&(u=!0),n.push(f),f=f.getNext();if(1>n.length)return!1;f=g.getParents(!0);for(m=0;m<f.length;m++)if(f[m].getName&&l[f[m].getName()]){g=f[m];break}for(var f=e.isIndent?1:-1,m=n[0],n=n[n.length-1],u=CKEDITOR.plugins.list.listToArray(g,d),t=u[n.getCustomData("listarray_index")].indent,m=m.getCustomData("listarray_index");m<=n.getCustomData("listarray_index");m++)if(u[m].indent+=f,0<f){for(var q=
u[m].parent,y=m-1;0<=y;y--)if(u[y].indent===f){q=u[y].parent;break}u[m].parent=new CKEDITOR.dom.element(q.getName(),q.getDocument())}for(m=n.getCustomData("listarray_index")+1;m<u.length&&u[m].indent>t;m++)u[m].indent+=f;f=CKEDITOR.plugins.list.arrayToList(u,d,null,a.config.enterMode,g.getDirection());if(!e.isIndent){var C;if((C=g.getParent())&&C.is("li"))for(var n=f.listNode.getChildren(),D=[],G,m=n.count()-1;0<=m;m--)(G=n.getItem(m))&&G.is&&G.is("li")&&D.push(G)}f&&f.listNode.replace(g);if(D&&D.length)for(m=
0;m<D.length;m++){for(G=g=D[m];(G=G.getNext())&&G.is&&G.getName()in l;)CKEDITOR.env.needsNbspFiller&&!g.getFirst(b)&&g.append(h.document.createText(" ")),g.append(G);g.insertAfter(C)}f&&a.fire("contentDomInvalidated");return!0}for(var e=this,d=this.database,l=this.context,h,m=a.getSelection(),m=(m&&m.getRanges()).createIterator();h=m.getNextRange();){for(var n=h.getCommonAncestor();n&&(n.type!=CKEDITOR.NODE_ELEMENT||!l[n.getName()]);){if(a.editable().equals(n)){n=!1;break}n=n.getParent()}n||(n=h.startPath().contains(l))&&
h.setEndAt(n,CKEDITOR.POSITION_BEFORE_END);if(!n){var t=h.getEnclosedNode();t&&t.type==CKEDITOR.NODE_ELEMENT&&t.getName()in l&&(h.setStartAt(t,CKEDITOR.POSITION_AFTER_START),h.setEndAt(t,CKEDITOR.POSITION_BEFORE_END),n=t)}n&&h.startContainer.type==CKEDITOR.NODE_ELEMENT&&h.startContainer.getName()in l&&(t=new CKEDITOR.dom.walker(h),t.evaluator=f,h.startContainer=t.next());n&&h.endContainer.type==CKEDITOR.NODE_ELEMENT&&h.endContainer.getName()in l&&(t=new CKEDITOR.dom.walker(h),t.evaluator=f,h.endContainer=
t.previous());if(n)return c(n)}return 0}function f(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}function b(b){return a(b)&&h(b)}var a=CKEDITOR.dom.walker.whitespaces(!0),h=CKEDITOR.dom.walker.bookmark(!1,!0),n=CKEDITOR.TRISTATE_DISABLED,m=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(a){function b(a){e.specificDefinition.apply(this,arguments);this.requiredContent=["ul","ol"];a.on("key",function(b){var c=a.elementPath();if("wysiwyg"==a.mode&&b.data.keyCode==
this.indentKey&&c){var e=this.getContext(c);!e||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,c,e)||(a.execCommand(this.relatedGlobal),b.cancel())}},this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(a,b){var c=this.getContext(b),d=CKEDITOR.plugins.indentList.firstItemInPath(this.context,b,c);return c&&this.isIndent&&!d?m:n}:function(a,b){return!this.getContext(b)||this.isIndent?n:m},exec:CKEDITOR.tools.bind(c,this)}}var e=CKEDITOR.plugins.indent;e.registerCommands(a,
{indentlist:new b(a,"indentlist",!0),outdentlist:new b(a,"outdentlist")});CKEDITOR.tools.extend(b.prototype,e.specificDefinition.prototype,{context:{ol:1,ul:1}})}});CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(a,b,c){var d=b.contains(f);c||(c=b.contains(a));return c&&d&&d.equals(c.getFirst(f))}}(),function(){function c(a,b){b=void 0===b||b;var c;if(b)c=a.getComputedStyle("text-align");else{for(;!a.hasAttribute||!a.hasAttribute("align")&&!a.getStyle("text-align");){c=
a.getParent();if(!c)break;a=c}c=a.getStyle("text-align")||a.getAttribute("align")||""}c&&(c=c.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!c&&b&&(c="rtl"==a.getComputedStyle("direction")?"right":"left");return c}function f(a,b,c){this.editor=a;this.name=b;this.value=c;this.context="p";b=a.config.justifyClasses;var f=a.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(b){switch(c){case "left":this.cssClassName=b[0];break;case "center":this.cssClassName=b[1];break;case "right":this.cssClassName=
b[2];break;case "justify":this.cssClassName=b[3]}this.cssClassRegex=new RegExp("(?:^|\\s+)(?:"+b.join("|")+")(?\x3d$|\\s)");this.requiredContent=f+"("+this.cssClassName+")"}else this.requiredContent=f+"{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 b(a){var b=a.editor,c=b.createRange();c.setStartBefore(a.data.node);
c.setEndAfter(a.data.node);for(var f=new CKEDITOR.dom.walker(c),k;k=f.next();)if(k.type==CKEDITOR.NODE_ELEMENT)if(!k.equals(a.data.node)&&k.getDirection())c.setStartAfter(k),f=new CKEDITOR.dom.walker(c);else{var g=b.config.justifyClasses;g&&(k.hasClass(g[0])?(k.removeClass(g[0]),k.addClass(g[2])):k.hasClass(g[2])&&(k.removeClass(g[2]),k.addClass(g[0])));g=k.getStyle("text-align");"left"==g?k.setStyle("text-align","right"):"right"==g&&k.setStyle("text-align","left")}}f.prototype={exec:function(a){var b=
a.getSelection(),f=a.config.enterMode;if(b){for(var m=b.createBookmarks(),k=b.getRanges(),g=this.cssClassName,e,d,l=a.config.useComputedState,l=void 0===l||l,p=k.length-1;0<=p;p--)for(e=k[p].createIterator(),e.enlargeBr=f!=CKEDITOR.ENTER_BR;d=e.getNextParagraph(f==CKEDITOR.ENTER_P?"p":"div");)if(!d.isReadOnly()){var q=d.getName(),u;u=a.activeFilter.check(q+"{text-align}");if((q=a.activeFilter.check(q+"("+g+")"))||u){d.removeAttribute("align");d.removeStyle("text-align");var t=g&&(d.$.className=CKEDITOR.tools.ltrim(d.$.className.replace(this.cssClassRegex,
""))),r=this.state==CKEDITOR.TRISTATE_OFF&&(!l||c(d,!0)!=this.value);g&&q?r?d.addClass(g):t||d.removeAttribute("class"):r&&u&&d.setStyle("text-align",this.value)}}a.focus();a.forceNextSelectionCheck();b.selectBookmarks(m)}},refresh:function(a,b){var f=b.block||b.blockLimit,m=f.getName(),k=f.equals(a.editable()),m=this.cssClassName?a.activeFilter.check(m+"("+this.cssClassName+")"):a.activeFilter.check(m+"{text-align}");k&&1===b.elements.length?this.setState(CKEDITOR.TRISTATE_OFF):!k&&m?this.setState(c(f,
this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)}};CKEDITOR.plugins.add("justify",{init:function(a){if(!a.blockless){var c=new f(a,"justifyleft","left"),n=new f(a,"justifycenter","center"),m=new f(a,"justifyright","right"),k=new f(a,"justifyblock","justify");a.addCommand("justifyleft",c);a.addCommand("justifycenter",n);a.addCommand("justifyright",m);a.addCommand("justifyblock",k);a.ui.addButton&&(a.ui.addButton("JustifyLeft",
{label:a.lang.common.alignLeft,command:"justifyleft",toolbar:"align,10"}),a.ui.addButton("JustifyCenter",{label:a.lang.common.center,command:"justifycenter",toolbar:"align,20"}),a.ui.addButton("JustifyRight",{label:a.lang.common.alignRight,command:"justifyright",toolbar:"align,30"}),a.ui.addButton("JustifyBlock",{label:a.lang.common.justify,command:"justifyblock",toolbar:"align,40"}));a.on("dirChanged",b)}}})}(),function(){function c(a,b,c){function d(c){if(!(!(h=l[c?"getFirst":"getLast"]())||h.is&&
h.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"](h)}for(var e=CKEDITOR.plugins.list.listToArray(b.root,c),g=[],f=0;f<b.contents.length;f++){var k=b.contents[f];(k=k.getAscendant("li",!0))&&!k.getCustomData("list_item_processed")&&(g.push(k),CKEDITOR.dom.element.setMarker(c,k,"list_item_processed",!0))}k=null;for(f=0;f<g.length;f++)k=g[f].getCustomData("listarray_index"),
e[k].indent=-1;for(f=k+1;f<e.length;f++)if(e[f].indent>e[f-1].indent+1){g=e[f-1].indent+1-e[f].indent;for(k=e[f].indent;e[f]&&e[f].indent>=k;)e[f].indent+=g,f++;f--}var l=CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,h,m;d(!0);d();l.replace(b.root);a.fire("contentDomInvalidated")}function f(a,b){this.name=a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function b(a,b,c,d){for(var e,g;e=a[d?"getLast":"getFirst"](q);)(g=
e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",g),e.remove(),c?e[d?"insertBefore":"insertAfter"](c):b.append(e,d)}function a(a){function c(e){var g=a[e?"getPrevious":"getNext"](d);g&&g.type==CKEDITOR.NODE_ELEMENT&&g.is(a.getName())&&(b(a,g,null,!e),a.remove(),a=g)}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 n(c,e,g){c.fire("saveSnapshot");g.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);
var f=g.extractContents();e.trim(!1,!0);var k=e.createBookmark(),h=new CKEDITOR.dom.elementPath(e.startContainer),n=h.block,h=h.lastElement.getAscendant("li",1)||n,p=new CKEDITOR.dom.elementPath(g.startContainer),q=p.contains(CKEDITOR.dtd.$listItem),p=p.contains(CKEDITOR.dtd.$list);n?(n=n.getBogus())&&n.remove():p&&(n=p.getPrevious(d))&&l(n)&&n.remove();(n=f.getLast())&&n.type==CKEDITOR.NODE_ELEMENT&&n.is("br")&&n.remove();(n=e.startContainer.getChild(e.startOffset))?f.insertBefore(n):e.startContainer.append(f);
q&&(f=m(q))&&(h.contains(q)?(b(f,q.getParent(),q),f.remove()):h.append(f));for(;g.checkStartOfBlock()&&g.checkEndOfBlock();){p=g.startPath();f=p.block;if(!f)break;f.is("li")&&(h=f.getParent(),f.equals(h.getLast(d))&&f.equals(h.getFirst(d))&&(f=h));g.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START);f.remove()}g=g.clone();f=c.editable();g.setEndAt(f,CKEDITOR.POSITION_BEFORE_END);g=new CKEDITOR.dom.walker(g);g.evaluator=function(a){return d(a)&&!l(a)};(g=g.next())&&g.type==CKEDITOR.NODE_ELEMENT&&g.getName()in
CKEDITOR.dtd.$list&&a(g);e.moveToBookmark(k);e.select();c.fire("saveSnapshot")}function m(a){return(a=a.getLast(d))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in k?a:null}var k={ol:1,ul:1},g=CKEDITOR.dom.walker.whitespaces(),e=CKEDITOR.dom.walker.bookmark(),d=function(a){return!(g(a)||e(a))},l=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 g=0,f=a.getChildCount();g<f;g++){var l=a.getChild(g);l.type==CKEDITOR.NODE_ELEMENT&&
l.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(l,b,c,d+1);if("li"==l.$.nodeName.toLowerCase()){var h={parent:a,indent:d,element:l,contents:[]};e?h.grandparent=e:(h.grandparent=a.getParent(),h.grandparent&&"li"==h.grandparent.$.nodeName.toLowerCase()&&(h.grandparent=h.grandparent.getParent()));b&&CKEDITOR.dom.element.setMarker(b,l,"listarray_index",c.length);c.push(h);for(var m=0,n=l.getChildCount(),p;m<n;m++)p=l.getChild(m),p.type==CKEDITOR.NODE_ELEMENT&&k[p.getName()]?CKEDITOR.plugins.list.listToArray(p,
b,c,d+1,h.grandparent):h.contents.push(p)}}return c},arrayToList:function(a,b,c,g,f){c||(c=0);if(!a||a.length<c+1)return null;for(var l,h=a[c].parent.getDocument(),m=new CKEDITOR.dom.documentFragment(h),n=null,p=c,q=Math.max(a[c].indent,0),D=null,G,H,J=g==CKEDITOR.ENTER_P?"p":"div";;){var I=a[p];l=I.grandparent;G=I.element.getDirection(1);if(I.indent==q){n&&a[p].parent.getName()==n.getName()||(n=a[p].parent.clone(!1,1),f&&n.setAttribute("dir",f),m.append(n));D=n.append(I.element.clone(0,1));G!=n.getDirection(1)&&
D.setAttribute("dir",G);for(l=0;l<I.contents.length;l++)D.append(I.contents[l].clone(1,1));p++}else if(I.indent==Math.max(q,0)+1)I=a[p-1].element.getDirection(1),p=CKEDITOR.plugins.list.arrayToList(a,null,p,g,I!=G?G:null),!D.getChildCount()&&CKEDITOR.env.needsNbspFiller&&7>=h.$.documentMode&&D.append(h.createText(" ")),D.append(p.listNode),p=p.nextIndex;else if(-1==I.indent&&!c&&l){k[l.getName()]?(D=I.element.clone(!1,!0),G!=l.getDirection(1)&&D.setAttribute("dir",G)):D=new CKEDITOR.dom.documentFragment(h);
var n=l.getDirection(1)!=G,N=I.element,E=N.getAttribute("class"),z=N.getAttribute("style"),V=D.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(g!=CKEDITOR.ENTER_BR||n||z||E),K,T=I.contents.length,P;for(l=0;l<T;l++)if(K=I.contents[l],e(K)&&1<T)V?P=K.clone(1,1):D.append(K.clone(1,1));else if(K.type==CKEDITOR.NODE_ELEMENT&&K.isBlockBoundary()){n&&!K.getDirection()&&K.setAttribute("dir",G);H=K;var aa=N.getAttribute("style");aa&&H.setAttribute("style",aa.replace(/([^;])$/,"$1;")+(H.getAttribute("style")||""));
E&&K.addClass(E);H=null;P&&(D.append(P),P=null);D.append(K.clone(1,1))}else V?(H||(H=h.createElement(J),D.append(H),n&&H.setAttribute("dir",G)),z&&H.setAttribute("style",z),E&&H.setAttribute("class",E),P&&(H.append(P),P=null),H.append(K.clone(1,1))):D.append(K.clone(1,1));P&&((H||D).append(P),P=null);D.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&p!=a.length-1&&(CKEDITOR.env.needsBrFiller&&(G=D.getLast())&&G.type==CKEDITOR.NODE_ELEMENT&&G.is("br")&&G.remove(),(G=D.getLast(d))&&G.type==CKEDITOR.NODE_ELEMENT&&
G.is(CKEDITOR.dtd.$block)||D.append(h.createElement("br")));G=D.$.nodeName.toLowerCase();"div"!=G&&"p"!=G||D.appendBogus();m.append(D);n=null;p++}else return null;H=null;if(a.length<=p||Math.max(a[p].indent,0)<q)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,h=f=g=void 0,g=c.getDirection()))){for(f=c.getParent();f&&!(h=f.getDirection());)f=f.getParent();g==h&&c.removeAttribute("dir")}a=a.getNextSourceNode()}return{listNode:m,
nextIndex:p}}};var p=/^h[1-6]$/,q=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);f.prototype={exec:function(b){this.refresh(b,b.elementPath());var e=b.config,g=b.getSelection(),f=g&&g.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var l=b.editable();if(l.getFirst(d)){var h=1==f.length&&f[0];(e=h&&h.getEnclosedNode())&&e.is&&this.type==e.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else e.enterMode==CKEDITOR.ENTER_BR?l.appendBogus():f[0].fixBlock(1,e.enterMode==CKEDITOR.ENTER_P?"p":"div"),
g.selectRanges(f)}for(var e=g.createBookmarks(!0),l=[],m={},f=f.createIterator(),n=0;(h=f.getNextRange())&&++n;){var q=h.getBoundaryNodes(),y=q.startNode,C=q.endNode;y.type==CKEDITOR.NODE_ELEMENT&&"td"==y.getName()&&h.setStartAt(q.startNode,CKEDITOR.POSITION_AFTER_START);C.type==CKEDITOR.NODE_ELEMENT&&"td"==C.getName()&&h.setEndAt(q.endNode,CKEDITOR.POSITION_BEFORE_END);h=h.createIterator();for(h.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;q=h.getNextParagraph();)if(!q.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(m,
q,"list_block",1);for(var D=b.elementPath(q),y=D.elements,C=0,D=D.blockLimit,G,H=y.length-1;0<=H&&(G=y[H]);H--)if(k[G.getName()]&&D.contains(G)){D.removeCustomData("list_group_object_"+n);(y=G.getCustomData("list_group_object"))?y.contents.push(q):(y={root:G,contents:[q]},l.push(y),CKEDITOR.dom.element.setMarker(m,G,"list_group_object",y));C=1;break}C||(C=D,C.getCustomData("list_group_object_"+n)?C.getCustomData("list_group_object_"+n).contents.push(q):(y={root:C,contents:[q]},CKEDITOR.dom.element.setMarker(m,
C,"list_group_object_"+n,y),l.push(y)))}}for(G=[];0<l.length;)if(y=l.shift(),this.state==CKEDITOR.TRISTATE_OFF)if(k[y.root.getName()]){f=b;n=y;y=m;h=G;C=CKEDITOR.plugins.list.listToArray(n.root,y);D=[];for(q=0;q<n.contents.length;q++)H=n.contents[q],(H=H.getAscendant("li",!0))&&!H.getCustomData("list_item_processed")&&(D.push(H),CKEDITOR.dom.element.setMarker(y,H,"list_item_processed",!0));for(var H=n.root.getDocument(),J=void 0,I=void 0,q=0;q<D.length;q++){var N=D[q].getCustomData("listarray_index"),
J=C[N].parent;J.is(this.type)||(I=H.createElement(this.type),J.copyAttributes(I,{start:1,type:1}),I.removeStyle("list-style-type"),C[N].parent=I)}y=CKEDITOR.plugins.list.arrayToList(C,y,null,f.config.enterMode);C=void 0;D=y.listNode.getChildCount();for(q=0;q<D&&(C=y.listNode.getChild(q));q++)C.getName()==this.type&&h.push(C);y.listNode.replace(n.root);f.fire("contentDomInvalidated")}else{C=b;h=y;q=G;D=h.contents;f=h.root.getDocument();n=[];1==D.length&&D[0].equals(h.root)&&(y=f.createElement("div"),
D[0].moveChildren&&D[0].moveChildren(y),D[0].append(y),D[0]=y);h=h.contents[0].getParent();for(H=0;H<D.length;H++)h=h.getCommonAncestor(D[H].getParent());J=C.config.useComputedState;C=y=void 0;J=void 0===J||J;for(H=0;H<D.length;H++)for(I=D[H];N=I.getParent();){if(N.equals(h)){n.push(I);!C&&I.getDirection()&&(C=1);I=I.getDirection(J);null!==y&&(y=y&&y!=I?null:I);break}I=N}if(!(1>n.length)){D=n[n.length-1].getNext();H=f.createElement(this.type);q.push(H);for(J=q=void 0;n.length;)q=n.shift(),J=f.createElement("li"),
I=q,I.is("pre")||p.test(I.getName())||"false"==I.getAttribute("contenteditable")?q.appendTo(J):(q.copyAttributes(J),y&&q.getDirection()&&(J.removeStyle("direction"),J.removeAttribute("dir")),q.moveChildren(J),q.remove()),J.appendTo(H);y&&C&&H.setAttribute("dir",y);D?H.insertBefore(D):H.appendTo(h)}}else this.state==CKEDITOR.TRISTATE_ON&&k[y.root.getName()]&&c.call(this,b,y,m);for(H=0;H<G.length;H++)a(G[H]);CKEDITOR.dom.element.clearAllMarkers(m);g.selectBookmarks(e);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 f("numberedlist","ol")),a.addCommand("bulletedlist",new f("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(),e;if("wysiwyg"==a.mode&&c in{8:1,46:1}){var g=a.getSelection().getRanges()[0],f=g&&g.startPath();if(g&&g.collapsed){var p=8==c,q=a.editable(),F=new CKEDITOR.dom.walker(g.clone());F.evaluator=function(a){return d(a)&&!l(a)};F.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};c=g.clone();if(p){var y;
(y=f.contains(k))&&g.checkBoundaryOfElement(y,CKEDITOR.START)&&(y=y.getParent())&&y.is("li")&&(y=m(y))?(e=y,y=y.getPrevious(d),c.moveToPosition(y&&l(y)?y:e,CKEDITOR.POSITION_BEFORE_START)):(F.range.setStartAt(q,CKEDITOR.POSITION_AFTER_START),F.range.setEnd(g.startContainer,g.startOffset),(y=F.previous())&&y.type==CKEDITOR.NODE_ELEMENT&&(y.getName()in k||y.is("li"))&&(y.is("li")||(F.range.selectNodeContents(y),F.reset(),F.evaluator=h,y=F.previous()),e=y,c.moveToElementEditEnd(e),c.moveToPosition(c.endPath().block,
CKEDITOR.POSITION_BEFORE_END)));if(e)n(a,c,g),b.cancel();else{var C=f.contains(k);C&&g.checkBoundaryOfElement(C,CKEDITOR.START)&&(e=C.getFirst(d),g.checkBoundaryOfElement(e,CKEDITOR.START)&&(y=C.getPrevious(d),m(e)?y&&(g.moveToElementEditEnd(y),g.select()):a.execCommand("outdent"),b.cancel()))}}else if(e=f.contains("li")){if(F.range.setEndAt(q,CKEDITOR.POSITION_BEFORE_END),p=(q=e.getLast(d))&&h(q)?q:e,f=0,(y=F.next())&&y.type==CKEDITOR.NODE_ELEMENT&&y.getName()in k&&y.equals(q)?(f=1,y=F.next()):g.checkBoundaryOfElement(p,
CKEDITOR.END)&&(f=2),f&&y){g=g.clone();g.moveToElementEditStart(y);if(1==f&&(c.optimize(),!c.startContainer.equals(e))){for(e=c.startContainer;e.is(CKEDITOR.dtd.$inline);)C=e,e=e.getParent();C&&c.moveToPosition(C,CKEDITOR.POSITION_AFTER_END)}2==f&&(c.moveToPosition(c.endPath().block,CKEDITOR.POSITION_BEFORE_END),g.endPath().block&&g.moveToPosition(g.endPath().block,CKEDITOR.POSITION_AFTER_START));n(a,c,g);b.cancel()}}else F.range.setEndAt(q,CKEDITOR.POSITION_BEFORE_END),(y=F.next())&&y.type==CKEDITOR.NODE_ELEMENT&&
y.is(k)&&(y=y.getFirst(d),f.block&&g.checkStartOfBlock()&&g.checkEndOfBlock()?(f.block.remove(),g.moveToElementEditStart(y),g.select()):m(y)?(g.moveToElementEditStart(y),g.select()):(g=g.clone(),g.moveToElementEditStart(y),n(a,c,g)),b.cancel());setTimeout(function(){a.selectionChange(1)})}}}))}})}(),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 a=CKEDITOR.plugins.sourcearea;f.addMode("source",function(a){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 c(f,h));h.setData(f.getData(1));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);a()});f.addCommand("source",a.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("source"==f.mode?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var h=CKEDITOR.env.ie&&9==CKEDITOR.env.version}}});var c=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(c){this.setValue(c);this.status="ready";this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(c){this[(c?"set":"remove")+"Attribute"]("readOnly",
"readonly")},detach:function(){c.baseProto.detach.call(this);this.clearCustomData();this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(c){"wysiwyg"==c.mode&&c.fire("saveSnapshot");c.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);c.setMode("source"==c.mode?"wysiwyg":"source")},canUndo:!1}}},"use strict",function(){var c=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SHIFT+90],f={8:1,46:1};CKEDITOR.plugins.add("undo",
{init:function(a){function g(a){d.enabled&&!1!==a.data.command.canUndo&&d.save()}function e(){d.enabled=a.readOnly?!1:"wysiwyg"==a.mode;d.onChange()}var d=a.undoManager=new b(a),f=d.editingHandler=new n(d),h=a.addCommand("undo",{exec:function(){d.undo()&&(a.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),m=a.addCommand("redo",{exec:function(){d.redo()&&(a.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});a.setKeystroke([[c[0],"undo"],[c[1],"redo"],[c[2],
"redo"]]);d.onChange=function(){h.setState(d.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);m.setState(d.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};a.on("beforeCommandExec",g);a.on("afterCommandExec",g);a.on("saveSnapshot",function(a){d.save(a.data&&a.data.contentOnly)});a.on("contentDom",f.attachListeners,f);a.on("instanceReady",function(){a.fire("saveSnapshot")});a.on("beforeModeUnload",function(){"wysiwyg"==a.mode&&d.save(!0)});a.on("mode",e);a.on("readOnly",e);
a.ui.addButton&&(a.ui.addButton("Undo",{label:a.lang.undo.undo,command:"undo",toolbar:"undo,10"}),a.ui.addButton("Redo",{label:a.lang.undo.redo,command:"redo",toolbar:"undo,20"}));a.resetUndo=function(){d.reset();a.fire("saveSnapshot")};a.on("updateSnapshot",function(){d.currentImage&&d.update()});a.on("lockSnapshot",function(a){a=a.data;d.lock(a&&a.dontUpdate,a&&a.forceUpdate)});a.on("unlockSnapshot",d.unlock,d)}});CKEDITOR.plugins.undo={};var b=CKEDITOR.plugins.undo.UndoManager=function(a){this.strokesRecorded=
[0,0];this.locked=null;this.previousKeyGroup=-1;this.limit=a.config.undoStackSize||20;this.strokesLimit=25;this.editor=a;this.reset()};b.prototype={type:function(a,c){var e=b.getKeyGroup(a),d=this.strokesRecorded[e]+1;c=c||d>=this.strokesLimit;this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange());c?(d=0,this.editor.fire("saveSnapshot")):this.editor.fire("change");this.strokesRecorded[e]=d;this.previousKeyGroup=e},keyGroupChanged:function(a){return b.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(b,c,e){var d=this.editor;if(this.locked||"ready"!=d.status||"wysiwyg"!=d.mode)return!1;var f=d.editable();if(!f||"ready"!=f.status)return!1;
f=this.snapshots;c||(c=new a(d));if(!1===c.contents)return!1;if(this.currentImage)if(c.equalsContent(this.currentImage)){if(b||c.equalsSelection(this.currentImage))return!1}else!1!==e&&d.fire("change");f.splice(this.index+1,f.length-this.index-1);f.length==this.limit&&f.shift();this.index=f.push(c)-1;this.currentImage=c;!1!==e&&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,d;if(c)if(a)for(d=this.index-1;0<=d;d--){if(a=b[d],!c.equalsContent(a))return a.index=d,a}else for(d=this.index+1;d<b.length;d++)if(a=b[d],!c.equalsContent(a))return a.index=
d,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(b){if(!this.locked){b||(b=new a(this.editor));for(var c=this.index,e=this.snapshots;0<c&&this.currentImage.equalsContent(e[c-
1]);)--c;e.splice(c,this.index-c+1,b);this.index=c;this.currentImage=b}},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(b,c){if(this.locked)this.locked.level++;else if(b)this.locked={level:1};else{var e=null;if(c)e=!0;else{var d=new a(this.editor,!0);this.currentImage&&this.currentImage.equalsContent(d)&&(e=d)}this.locked={update:e,level:1}}},
unlock:function(){if(this.locked&&!--this.locked.level){var b=this.locked.update;this.locked=null;if(!0===b)this.update();else if(b){var c=new a(this.editor,!0);b.equalsContent(c)||this.update()}}}};b.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1};b.keyGroups={PRINTABLE:0,FUNCTIONAL:1};b.isNavigationKey=function(a){return!!b.navigationKeyCodes[a]};b.getKeyGroup=function(a){var c=b.keyGroups;return f[a]?c.FUNCTIONAL:c.PRINTABLE};b.getOppositeKeyGroup=function(a){var c=b.keyGroups;return a==
c.FUNCTIONAL?c.PRINTABLE:c.FUNCTIONAL};b.ieFunctionalKeysBug=function(a){return CKEDITOR.env.ie&&b.getKeyGroup(a)==b.keyGroups.FUNCTIONAL};var a=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")},h=/\b(?:href|src|name)="[^"]*?"/gi;a.prototype={equalsContent:function(a){var b=
this.contents;a=a.contents;CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(b=b.replace(h,""),a=a.replace(h,""));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 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!1}}return!0}};var n=CKEDITOR.plugins.undo.NativeEditingHandler=
function(a){this.undoManager=a;this.ignoreInputEvent=!1;this.keyEventsStack=new m;this.lastKeydownImage=null};n.prototype={onKeydown:function(f){var g=f.data.getKey();if(229!==g)if(-1<CKEDITOR.tools.indexOf(c,f.data.getKeystroke()))f.data.preventDefault();else if(this.keyEventsStack.cleanUp(f),f=this.undoManager,this.keyEventsStack.getLast(g)||this.keyEventsStack.push(g),this.lastKeydownImage=new a(f.editor),b.isNavigationKey(g)||this.undoManager.keyGroupChanged(g))if(f.strokesRecorded[0]||f.strokesRecorded[1])f.save(!1,
this.lastKeydownImage,!1),f.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(c){var g=this.undoManager;c=c.data.getKey();var e=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(c);
if(!(b.ieFunctionalKeysBug(c)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new a(g.editor,!0))))if(0<e)g.type(c);else if(b.isNavigationKey(c))this.onNavigationKey(!0)},onNavigationKey:function(b){var c=this.undoManager;!b&&c.save(!0,null,!1)||c.updateSelection(new a(c.editor));c.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=!0},activateInputEventListener:function(){this.ignoreInputEvent=!1},attachListeners:function(){var a=this.undoManager.editor,c=a.editable(),
e=this;c.attachListener(c,"keydown",function(a){e.onKeydown(a);if(b.ieFunctionalKeysBug(a.data.getKey()))e.onInput()},null,null,999);c.attachListener(c,CKEDITOR.env.ie?"keypress":"input",e.onInput,e,null,999);c.attachListener(c,"keyup",e.onKeyup,e,null,999);c.attachListener(c,"paste",e.ignoreInputEventListener,e,null,999);c.attachListener(c,"drop",e.ignoreInputEventListener,e,null,999);a.on("afterPaste",e.activateInputEventListener,e,null,999);c.attachListener(c.isInline()?c:a.document.getDocumentElement(),
"click",function(){e.onNavigationKey()},null,null,999);c.attachListener(this.undoManager.editor,"blur",function(){e.keyEventsStack.remove(9)},null,null,999)}};var m=CKEDITOR.plugins.undo.KeyEventsStack=function(){this.stack=[]};m.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)}}}(),
"use strict",function(){function c(a,b){CKEDITOR.tools.extend(this,{editor:a,editable:a.editable(),doc:a.document,win:a.window},b,!0);this.inline=this.editable.isInline();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},!0)}function b(a,b){var c=a.editable();CKEDITOR.tools.extend(this,{editor:a,editable:c,inline:c.isInline(),doc:a.document,win:a.window,container:CKEDITOR.document.getBody(),winTop:CKEDITOR.document.getWindow()},
b,!0);this.hidden={};this.visible={};this.inline||(this.frame=this.win.getFrame());this.queryViewport();var f=CKEDITOR.tools.bind(this.queryViewport,this),k=CKEDITOR.tools.bind(this.hideVisible,this),m=CKEDITOR.tools.bind(this.removeAll,this);c.attachListener(this.winTop,"resize",f);c.attachListener(this.winTop,"scroll",f);c.attachListener(this.winTop,"resize",k);c.attachListener(this.win,"scroll",k);c.attachListener(this.inline?c: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);c.attachListener(a,"resize",f);c.attachListener(a,"mode",m);a.on("destroy",m);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({},
n,this.lineStyle,!0)),tipLeftStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},h,{left:"0px","border-left-color":"red","border-width":"6px 0 6px 6px"},this.tipCss,this.tipLeftStyle,!0)),tipRightStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},h,{right:"0px","border-right-color":"red","border-width":"6px 6px 6px 0"},this.tipCss,this.tipRightStyle,!0))})}function a(a){var b;if(b=a&&a.type==CKEDITOR.NODE_ELEMENT)b=!(m[a.getComputedStyle("float")]||m[a.getAttribute("align")]);return b&&
!k[a.getComputedStyle("position")]}CKEDITOR.plugins.add("lineutils");CKEDITOR.LINEUTILS_BEFORE=1;CKEDITOR.LINEUTILS_AFTER=2;CKEDITOR.LINEUTILS_INSIDE=4;c.prototype={start:function(a){var b=this,c=this.editor,f=this.doc,h,k,m,n,r=CKEDITOR.tools.eventsBuffer(50,function(){c.readOnly||"wysiwyg"!=c.mode||(b.relations={},(k=f.$.elementFromPoint(m,n))&&k.nodeType&&(h=new CKEDITOR.dom.element(k),b.traverseSearch(h),isNaN(m+n)||b.pixelSearch(h,m,n),a&&a(b.relations,m,n)))});this.listener=this.editable.attachListener(this.target,
"mousemove",function(a){m=a.data.$.clientX;n=a.data.$.clientY;r.input()});this.editable.attachListener(this.inline?this.editable:this.frame,"mouseout",function(){r.reset()})},stop:function(){this.listener&&this.listener.removeListener()},getRange:function(){var a={};a[CKEDITOR.LINEUTILS_BEFORE]=CKEDITOR.POSITION_BEFORE_START;a[CKEDITOR.LINEUTILS_AFTER]=CKEDITOR.POSITION_AFTER_END;a[CKEDITOR.LINEUTILS_INSIDE]=CKEDITOR.POSITION_AFTER_START;return function(b){var c=this.editor.createRange();c.moveToPosition(this.relations[b.uid].element,
a[b.type]);return c}}(),store:function(){function b(a,c,f){var g=a.getUniqueId();g in f?f[g].type|=c:f[g]={element:a,type:c}}return function(c,d){var f;d&CKEDITOR.LINEUTILS_AFTER&&a(f=c.getNext())&&f.isVisible()&&(b(f,CKEDITOR.LINEUTILS_BEFORE,this.relations),d^=CKEDITOR.LINEUTILS_AFTER);d&CKEDITOR.LINEUTILS_INSIDE&&a(f=c.getFirst())&&f.isVisible()&&(b(f,CKEDITOR.LINEUTILS_BEFORE,this.relations),d^=CKEDITOR.LINEUTILS_INSIDE);b(c,d,this.relations)}}(),traverseSearch:function(b){var c,d,f;do if(f=b.$["data-cke-expando"],
!(f&&f in this.relations)){if(b.equals(this.editable))break;if(a(b))for(c in this.lookups)(d=this.lookups[c](b))&&this.store(b,d)}while((!b||b.type!=CKEDITOR.NODE_ELEMENT||"true"!=b.getAttribute("contenteditable"))&&(b=b.getParent()))},pixelSearch:function(){function b(d,f,g,h,k){for(var m=0,n;k(g);){g+=h;if(25==++m)break;if(n=this.doc.$.elementFromPoint(f,g))if(n==d)m=0;else if(c(d,n)&&(m=0,a(n=new CKEDITOR.dom.element(n))))return n}}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,e,f){var h=this.win.getViewPaneSize().height,k=b.call(this,c.$,e,f,-1,function(a){return 0<a});e=b.call(this,c.$,e,f,1,function(a){return a<h});if(k)for(this.traverseSearch(k);!k.getParent().equals(c);)k=k.getParent();if(e)for(this.traverseSearch(e);!e.getParent().equals(c);)e=e.getParent();for(;k||e;){k&&(k=k.getNext(a));if(!k||k.equals(e))break;this.traverseSearch(k);e&&(e=e.getPrevious(a));if(!e||e.equals(k))break;this.traverseSearch(e)}}}(),
greedySearch:function(){this.relations={};for(var b=this.editable.getElementsByTag("*"),c=0,d,f,h;d=b.getItem(c++);)if(!d.equals(this.editable)&&d.type==CKEDITOR.NODE_ELEMENT&&(d.hasAttribute("contenteditable")||!d.isReadOnly())&&a(d)&&d.isVisible())for(h in this.lookups)(f=this.lookups[h](d))&&this.store(d,f);return this.relations}};f.prototype={locate:function(){function b(c,d){var f=c.element[d===CKEDITOR.LINEUTILS_BEFORE?"getPrevious":"getNext"]();return f&&a(f)?(c.siblingRect=f.getClientRect(),
d==CKEDITOR.LINEUTILS_BEFORE?(c.siblingRect.bottom+c.elementRect.top)/2:(c.elementRect.bottom+c.siblingRect.top)/2):d==CKEDITOR.LINEUTILS_BEFORE?c.elementRect.top:c.elementRect.bottom}return function(a){var c;this.locations={};for(var f in a)c=a[f],c.elementRect=c.element.getClientRect(),c.type&CKEDITOR.LINEUTILS_BEFORE&&this.store(f,CKEDITOR.LINEUTILS_BEFORE,b(c,CKEDITOR.LINEUTILS_BEFORE)),c.type&CKEDITOR.LINEUTILS_AFTER&&this.store(f,CKEDITOR.LINEUTILS_AFTER,b(c,CKEDITOR.LINEUTILS_AFTER)),c.type&
CKEDITOR.LINEUTILS_INSIDE&&this.store(f,CKEDITOR.LINEUTILS_INSIDE,(c.elementRect.top+c.elementRect.bottom)/2);return this.locations}}(),sort:function(){var a,b,c,f;return function(h,k){a=this.locations;b=[];for(var m in a)for(var n in a[m])if(c=Math.abs(h-a[m][n]),b.length){for(f=0;f<b.length;f++)if(c<b[f].dist){b.splice(f,0,{uid:+m,type:n,dist:c});break}f==b.length&&b.push({uid:+m,type:n,dist:c})}else b.push({uid:+m,type:n,dist:c});return"undefined"!=typeof k?b.slice(0,k):b}}(),store:function(a,
b,c){this.locations[a]||(this.locations[a]={});this.locations[a][b]=c}};var h={display:"block",width:"0px",height:"0px","border-color":"transparent","border-style":"solid",position:"absolute",top:"-6px"},n={height:"0px","border-top":"1px dashed red",position:"absolute","z-index":9999};b.prototype={removeAll:function(){for(var a in this.hidden)this.hidden[a].remove(),delete this.hidden[a];for(a in this.visible)this.visible[a].remove(),delete this.visible[a]},hideLine:function(a){var b=a.getUniqueId();
a.hide();this.hidden[b]=a;delete this.visible[b]},showLine:function(a){var b=a.getUniqueId();a.show();this.visible[b]=a;delete this.hidden[b]},hideVisible:function(){for(var a in this.visible)this.hideLine(this.visible[a])},placeLine:function(a,b){var c,f,h;if(c=this.getStyle(a.uid,a.type)){for(h in this.visible)if(this.visible[h].getCustomData("hash")!==this.hash){f=this.visible[h];break}if(!f)for(h in this.hidden)if(this.hidden[h].getCustomData("hash")!==this.hash){this.showLine(f=this.hidden[h]);
break}f||this.showLine(f=this.addLine());f.setCustomData("hash",this.hash);this.visible[f.getUniqueId()]=f;f.setStyles(c);b&&b(f)}},getStyle:function(a,b){var c=this.relations[a],f=this.locations[a][b],h={};h.width=c.siblingRect?Math.max(c.siblingRect.width,c.elementRect.width):c.elementRect.width;h.top=this.inline?f+this.winTopScroll.y-this.rect.relativeY:this.rect.top+this.winTopScroll.y+f;if(h.top-this.winTopScroll.y<this.rect.top||h.top-this.winTopScroll.y>this.rect.bottom)return!1;this.inline?
h.left=c.elementRect.left-this.rect.relativeX:(0<c.elementRect.left?h.left=this.rect.left+c.elementRect.left:(h.width+=c.elementRect.left,h.left=this.rect.left),0<(c=h.left+h.width-(this.rect.left+this.winPane.width))&&(h.width-=c));h.left+=this.winTopScroll.x;for(var k in h)h[k]=CKEDITOR.tools.cssLength(h[k]);return h},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){a=a.getClientRect();var b=this.container.getDocumentPosition(),c=this.container.getComputedStyle("position");a.relativeX=a.relativeY=
0;"static"!=c&&(a.relativeY=b.y,a.relativeX=b.x,a.top-=a.relativeY,a.bottom-=a.relativeY,a.left-=a.relativeX,a.right-=a.relativeX);return a}};var m={left:1,right:1,center:1},k={absolute:1,fixed:1};CKEDITOR.plugins.lineutils={finder:c,locator:f,liner:b}}(),function(){function c(c){return c.getName&&!c.hasAttribute("data-cke-temp")}CKEDITOR.plugins.add("widgetselection",{init:function(c){if(CKEDITOR.env.webkit){var b=CKEDITOR.plugins.widgetselection;c.on("contentDom",function(a){a=a.editor;var c=a.document,
f=a.editable();f.attachListener(c,"keydown",function(a){a.data.getKeystroke()==CKEDITOR.CTRL+65&&CKEDITOR.tools.setTimeout(function(){b.addFillers(f)||b.removeFillers(f)},0)},null,null,-1);a.on("selectionCheck",function(a){b.removeFillers(a.editor.editable())});a.on("paste",function(a){a.data.dataValue=b.cleanPasteData(a.data.dataValue)});"selectall"in a.plugins&&b.addSelectAllIntegration(a)})}}});CKEDITOR.plugins.widgetselection={startFiller:null,endFiller:null,fillerAttribute:"data-cke-filler-webkit",
fillerContent:"\x26nbsp;",fillerTagName:"div",addFillers:function(f){var b=f.editor;if(!this.isWholeContentSelected(f)&&0<f.getChildCount()){var a=f.getFirst(c),h=f.getLast(c);a&&a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable()&&(this.startFiller=this.createFiller(),f.append(this.startFiller,1));h&&h.type==CKEDITOR.NODE_ELEMENT&&!h.isEditable()&&(this.endFiller=this.createFiller(!0),f.append(this.endFiller,0));if(this.hasFiller(f))return b=b.createRange(),b.selectNodeContents(f),b.select(),!0}return!1},
removeFillers:function(c){if(this.hasFiller(c)&&!this.isWholeContentSelected(c)){var b=c.findOne(this.fillerTagName+"["+this.fillerAttribute+"\x3dstart]"),a=c.findOne(this.fillerTagName+"["+this.fillerAttribute+"\x3dend]");this.startFiller&&b&&this.startFiller.equals(b)?this.removeFiller(this.startFiller,c):this.startFiller=b;this.endFiller&&a&&this.endFiller.equals(a)?this.removeFiller(this.endFiller,c):this.endFiller=a}},cleanPasteData:function(c){c&&c.length&&(c=c.replace(this.createFillerRegex(),
"").replace(this.createFillerRegex(!0),""));return c},isWholeContentSelected:function(c){var b=c.editor.getSelection().getRanges()[0];return!b||b&&b.collapsed?!1:(b=b.clone(),b.enlarge(CKEDITOR.ENLARGE_ELEMENT),!!(b&&c&&b.startContainer&&b.endContainer&&0===b.startOffset&&b.endOffset===c.getChildCount()&&b.startContainer.equals(c)&&b.endContainer.equals(c)))},hasFiller:function(c){return 0<c.find(this.fillerTagName+"["+this.fillerAttribute+"]").count()},createFiller:function(c){var b=new CKEDITOR.dom.element(this.fillerTagName);
b.setHtml(this.fillerContent);b.setAttribute(this.fillerAttribute,c?"end":"start");b.setAttribute("data-cke-temp",1);b.setStyles({display:"block",width:0,height:0,padding:0,border:0,margin:0,position:"absolute",top:0,left:"-9999px",opacity:0,overflow:"hidden"});return b},removeFiller:function(c,b){if(c){var a=b.editor,h=b.editor.getSelection().getRanges()[0].startPath(),n=a.createRange(),m,k;h.contains(c)&&(m=c.getHtml(),k=!0);h="start"==c.getAttribute(this.fillerAttribute);c.remove();m&&0<m.length&&
m!=this.fillerContent?(b.insertHtmlIntoRange(m,a.getSelection().getRanges()[0]),n.setStartAt(b.getChild(b.getChildCount()-1),CKEDITOR.POSITION_BEFORE_END),a.getSelection().selectRanges([n])):k&&(h?n.setStartAt(b.getFirst().getNext(),CKEDITOR.POSITION_AFTER_START):n.setEndAt(b.getLast().getPrevious(),CKEDITOR.POSITION_BEFORE_END),b.editor.getSelection().selectRanges([n]))}},createFillerRegex:function(c){var b=this.createFiller(c).getOuterHtml().replace(/style="[^"]*"/gi,'style\x3d"[^"]*"').replace(/>[^<]*</gi,
"\x3e[^\x3c]*\x3c");return new RegExp((c?"":"^")+b+(c?"$":""))},addSelectAllIntegration:function(c){var b=this;c.editable().attachListener(c,"beforeCommandExec",function(a){var h=c.editable();"selectAll"==a.data.name&&h&&b.addFillers(h)},null,null,9999)}}}(),"use strict",function(){function c(a){this.editor=a;this.registered={};this.instances={};this.selected=[];this.widgetHoldingFocusedEditable=this.focused=null;this._={nextId:0,upcasts:[],upcastCallbacks:[],filters:{}};D(this);C(this);this.on("checkWidgets",
m);this.editor.on("contentDomInvalidated",this.checkWidgets,this);y(this);w(this);A(this);B(this);F(this)}function f(a,b,c,d,e){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:f.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);ea(this,d);this.init&&this.init();this.inited=!0;(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=!0;Q(this);this.fire("data",this.data);this.isInited()&&g.editable().contains(this.wrapper)&&(this.ready=!0,this.fire("ready"))}function b(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 a(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 h(a,b){function c(a,d){var e=b.upcast.split(","),f,g;for(g=0;g<e.length;g++)if(f=e[g],f===a.name)return b.upcasts[f].call(this,a,d);return!1}function d(b,c,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,[CKEDITOR.tools.bind(b,
c),c.name,e])}var e=b.upcast,f=b.upcastPriority||10;e&&("string"==typeof e?d(c,b,f):d(e,b,f))}function n(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 m(a){a=a.data;if("wysiwyg"==this.editor.mode){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],!0);if(a&&a.initOnlyNew)c=this.initOnAll();else{var k=b.find(".cke_widget_wrapper"),
c=[];d=0;for(e=k.count();d<e;d++){g=k.getItem(d);if(h=!this.getByElement(g,!0)){a:{h=t;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(f.isDomWidgetElement))))}}a&&a.focusInited&&1==c.length&&c[0].focus()}}}function k(a){if("undefined"!=typeof a.attributes&&a.attributes["data-widget"]){var b=g(a),c=e(a),d=!1;b&&b.value&&b.value.match(/^\s/g)&&(b.parent.attributes["data-cke-white-space-first"]=1,b.value=b.value.replace(/^\s/g,
"\x26nbsp;"),d=!0);c&&c.value&&c.value.match(/\s$/g)&&(c.parent.attributes["data-cke-white-space-last"]=1,c.value=c.value.replace(/\s$/g,"\x26nbsp;"),d=!0);d&&(a.attributes["data-cke-widget-white-space"]=1)}}function g(a){return a.find(function(a){return 3===a.type},!0).shift()}function e(a){return a.find(function(a){return 3===a.type},!0).pop()}function d(a,b,c){if(!c.allowedContent&&!c.disallowedContent)return null;var d=this._.filters[a];d||(this._.filters[a]=d={});a=d[b];a||(a=c.allowedContent?
new CKEDITOR.filter(c.allowedContent):this.editor.filter.clone(),d[b]=a,c.disallowedContent&&a.disallow(c.disallowedContent));return a}function l(a){var b=[],c=a._.upcasts,d=a._.upcastCallbacks;return{toBeWrapped:b,iterator:function(a){var e,g,h,k,l;if("data-cke-widget-wrapper"in a.attributes)return(a=a.getFirst(f.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(e=d.length;k<e;++k)if(!1===
d[k](a))return;for(k=0;k<l;++k)if(e=c[k],h={},g=e[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,e[1]]),!1}}}}function p(a,b){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")+(b?" cke_widget_"+b:"")}}function q(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 q(e,b,c)}}a.add(c,b)}function u(a,b){return"boolean"==typeof a.inline?a.inline:!!CKEDITOR.dtd.$inline[b]}function t(a){return a.hasAttribute("data-cke-temp")}function r(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 v(a){a.contextMenu&&a.contextMenu.addListener(function(b){if(b=a.widgets.getByElement(b,!0))return b.fire("contextMenu",{})})}function x(a,b){return CKEDITOR.tools.trim(b)}function B(a){var b=a.editor,
c=CKEDITOR.plugins.lineutils;b.on("dragstart",function(c){var d=c.data.target;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=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)&&!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"}})},!0)})}function w(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(c){var d=c.data.getTarget();e=d instanceof CKEDITOR.dom.element?a.getByElement(d):null;g=0;e&&(e.inline&&d.type==CKEDITOR.NODE_ELEMENT&&d.hasAttribute("data-cke-widget-drag-handler")?(g=1,a.focused!=e&&b.getSelection().removeAllRanges()):f.getNestedEditable(e.wrapper,d)?e=null:(c.data.preventDefault(),CKEDITOR.env.ie||e.focus()))});c.attachListener(d,"mouseup",function(){g&&e&&e.wrapper&&(g=0,e.focus())});CKEDITOR.env.ie&&c.attachListener(d,
"mouseup",function(){setTimeout(function(){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 A(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 F(a){function b(c){a.focused&&I(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 y(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;e?e===d&&e.focusedEditable.equals(c)||(r(a,e,null),d&&c&&r(a,d,c)):d&&c&&r(a,d,c)});b.on("dataReady",function(){G(a).commit()});b.on("blur",function(){var b;(b=a.focused)&&n(a,b);(b=a.widgetHoldingFocusedEditable)&&r(a,b,null)})}
function C(a){var b=a.editor,c={};b.on("toDataFormat",function(b){var d=CKEDITOR.tools.getNextNumber(),h=[];b.data.downcastingSessionId=d;c[d]=h;b.data.dataValue.forEach(function(b){var c=b.attributes,d;if("data-cke-widget-white-space"in c){d=g(b);var k=e(b);d.parent.attributes["data-cke-white-space-first"]&&(d.value=d.value.replace(/^&nbsp;/g," "));k.parent.attributes["data-cke-white-space-last"]&&(k.value=k.value.replace(/&nbsp;$/g," "))}if("data-cke-widget-id"in c){if(c=a.instances[c["data-cke-widget-id"]])d=
b.getFirst(f.isParserWidgetElement),h.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 h[h.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 D(a){var b=a.editor,c,d;b.on("toHtml",function(b){var d=l(a),e;for(b.data.dataValue.forEach(d.iterator,CKEDITOR.NODE_ELEMENT,!0);e=d.toBeWrapped.pop();){var g=e[0],h=g.parent;h.type==CKEDITOR.NODE_ELEMENT&&h.attributes["data-cke-widget-wrapper"]&&h.replaceWith(g);a.wrapElement(e[0],
e[1])}c=b.data.protectedWhitespaces?3==b.data.dataValue.children.length&&f.isParserWidgetWrapper(b.data.dataValue.children[1]):1==b.data.dataValue.children.length&&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,k=c.count();h<k;++h)e=c.getItem(h),g=e.getFirst(f.isDomWidgetElement),g.type==CKEDITOR.NODE_ELEMENT&&g.data("widget")?(g.replace(e),a.wrapElement(g)):e.remove();d=0;a.destroyAll(!0);
a.initOnAll()});b.on("loadSnapshot",function(b){/data-cke-widget/.test(b.data)&&(d=1);a.destroyAll(!0)},null,null,9);b.on("paste",function(a){a=a.data;a.dataValue=a.dataValue.replace(S,x);a.range&&(a=f.getNestedEditable(b.editable(),a.range.startContainer))&&(a=CKEDITOR.filter.instances[a.data("cke-filter")])&&b.setActiveFilter(a)});b.on("afterInsertHtml",function(d){d.data.intoRange?a.checkWidgets({initOnlyNew:!0}):(b.fire("lockSnapshot"),a.checkWidgets({initOnlyNew:!0,focusInited:c}),b.fire("unlockSnapshot"))})}
function G(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)&&n(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 H(a,b,c){var d=0;b=N(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 J(a){a.cancel()}function I(a,b){var c=a.editor,d=c.document,e=CKEDITOR.env.edge&&16<=CKEDITOR.env.version;if(!d.getById("cke_copybin")){var f=!c.blockless&&!CKEDITOR.env.ie||e?"div":
"span",e=d.createElement(f),g=d.createElement(f),f=CKEDITOR.env.ie&&9>CKEDITOR.env.version;g.setAttributes({id:"cke_copybin","data-cke-temp":"1"});e.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"});e.setStyle("ltr"==c.config.contentsLangDirection?"left":"right","-5000px");var h=c.createRange();h.setStartBefore(a.wrapper);h.setEndAfter(a.wrapper);e.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(e);c.editable().append(g);var k=c.on("selectionChange",J,null,null,0),l=a.repository.on("checkSelection",J,null,null,0);if(f)var m=d.getDocumentElement().$,n=m.scrollTop;h=c.createRange();h.selectNodeContents(e);h.select();f&&(m.scrollTop=n);setTimeout(function(){b||a.focus();g.remove();k.removeListener();l.removeListener();c.fire("unlockSnapshot");b&&!c.readOnly&&(a.repository.del(a),c.fire("saveSnapshot"))},100)}}function N(a){return(a=(a=a.getDefinition().attributes)&&
a["class"])?a.split(/\s+/):null}function E(){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 z(){CKEDITOR.env.gecko&&this.editor.unlockSelection();CKEDITOR.env.webkit||(this.editor.forceNextSelectionCheck(),this.editor.selectionChange(1))}function V(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 K(a){a.on("data",function(){if(a.wrapper){var b=this.getLabel?this.getLabel():this.editor.lang.widget.label.replace(/%1/,this.pathName||this.element.getName());a.wrapper.setAttribute("role","region");a.wrapper.setAttribute("aria-label",b)}},null,null,9999)}function T(a){if(a.draggable){var b=a.editor,c=a.wrapper.getLast(f.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,role:"presentation"}),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(p.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})}if(CKEDITOR.tools.getMouseButton(a)===CKEDITOR.MOUSE_BUTTON_LEFT){var c=this.repository.finder,d=this.repository.locator,e=this.repository.liner,f=this.editor,g=f.editable(),h=[],k=[],l,m;this.repository._.draggedWidget=this;var n=c.greedySearch(),p=CKEDITOR.tools.eventsBuffer(50,function(){l=d.locate(n);k=d.sort(m,1);k.length&&(e.prepare(n,l),e.placeLine(k[0]),
e.cleanup())});g.addClass("cke_widget_dragging");h.push(g.on("mousemove",function(a){m=a.data.$.clientY;p.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 aa(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 ba(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 Y(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 ea(a,b){W(a);Y(a);aa(a);ba(a);T(a);V(a);K(a);if(CKEDITOR.env.ie&&9>CKEDITOR.env.version)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(13==b)a.edit();else{if(b==CKEDITOR.CTRL+67||b==CKEDITOR.CTRL+88){I(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 W(a){(a.wrapper=a.element.getParent()).setAttribute("data-cke-widget-id",a.id)}function Q(a){a.element.data("cke-widget-data",
encodeURIComponent(JSON.stringify(a.data)))}function M(){function a(){}function b(a,c,d){return d&&this.checkElement(a)?(a=d.widgets.getByElement(a,!0))&&a.checkStyleActive(this):!1}var c={};CKEDITOR.style.addCustomHandler({type:"widget",setup:function(a){this.widget=a.widget;if(this.group="string"==typeof a.group?[a.group]:a.group){a=this.widget;var b;c[a]||(c[a]={});for(var d=0,e=this.group.length;d<e;d++)b=this.group[d],c[a][b]||(c[a][b]=[]),c[a][b].push(this)}},apply:function(a){var b;a instanceof
CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&(b=a.widgets.focused,this.group&&this.removeStylesFromSameGroup(a),b.applyStyle(this))},remove:function(a){a instanceof CKEDITOR.editor&&this.checkApplicable(a.elementPath(),a)&&a.widgets.focused.removeStyle(this)},removeStylesFromSameGroup:function(a){var b,d,e=!1;if(!(a instanceof CKEDITOR.editor))return!1;d=a.elementPath();if(this.checkApplicable(d,a))for(var f=0,g=this.group.length;f<g;f++){b=c[this.widget][this.group[f]];for(var h=0;h<
b.length;h++)b[h]!==this&&b[h].checkActive(d,a)&&(a.widgets.focused.removeStyle(b[h]),e=!0)}return e},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 f.isDomWidgetWrapper(a)?(a=a.getFirst(f.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.add("widget",{requires:"lineutils,clipboard,widgetselection",onLoad:function(){void 0!==CKEDITOR.document.$.querySelectorAll&&(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 #ffd25c;cursor:default}.cke_widget_wrapper:hover .cke_widget_editable{outline:2px solid #ffd25c}.cke_widget_wrapper.cke_widget_focused\x3e.cke_widget_element,.cke_widget_wrapper .cke_widget_editable.cke_widget_editable_focused{outline:2px solid #47a4f5}.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}"),
M())},beforeInit:function(a){void 0!==CKEDITOR.document.$.querySelectorAll&&(a.widgets=new c(a))},afterInit:function(a){if(void 0!==CKEDITOR.document.$.querySelectorAll){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"});v(a)}}});c.prototype={MIN_SELECTION_CHECK_INTERVAL:500,add:function(b,c){c=CKEDITOR.tools.prototypedCopy(c);c.name=b;c._=c._||{};this.editor.fire("widgetDefinition",
c);c.template&&(c.template=new CKEDITOR.template(c.template));a(this.editor,c);h(this,c);return this.registered[b]=c},addUpcastCallback:function(a){this._.upcastCallbacks.push(a)},checkSelection:function(){var a=this.editor.getSelection(),b=a.getSelectedElement(),c=G(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=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;(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&&r(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())&&f.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 f(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(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;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,d,e;if(a instanceof CKEDITOR.dom.element){b=b||a.data("widget");d=this.registered[b];if(!d)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);a.data("widget",b);(e=u(d,a.getName()))&&k(a);c=new CKEDITOR.dom.element(e?"span":"div");c.setAttributes(p(e,b));c.data("cke-display-name",d.pathName?d.pathName:a.getName());
a.getParent(!0)&&c.replace(a);a.appendTo(c)}else if(a instanceof CKEDITOR.htmlParser.element){b=b||a.attributes["data-widget"];d=this.registered[b];if(!d)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);(e=u(d,a.name))&&k(a);c=new CKEDITOR.htmlParser.element(e?"span":"div",p(e,b));c.attributes["data-cke-display-name"]=
d.pathName?d.pathName:a.name;d=a.parent;var f;d&&(f=a.getIndex(),a.remove());c.add(a);d&&q(d,f,c)}return c},_tests_createEditableFilter:d};CKEDITOR.event.implementOn(c.prototype);f.prototype={addClass:function(a){this.element.addClass(a);this.wrapper.addClass(f.WRAPPER_CLASS_PREFIX+a)},applyStyle:function(a){H(this,a,1)},checkStyleActive:function(a){a=N(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",z);c.removeListener("blur",E);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,c){var e=this._findOneNotNested(c.selector);return e&&e.is(CKEDITOR.dtd.$editable)?(e=new b(this.editor,e,{filter:d.call(this.repository,this.name,a,c)}),this.editables[a]=
e,e.setAttributes({contenteditable:"true","data-cke-widget-editable":a,"data-cke-enter-mode":e.enterMode}),e.filter&&e.data("cke-filter",e.filter.id),e.addClass("cke_widget_editable"),e.removeClass("cke_widget_editable_focused"),c.pathName&&e.data("cke-display-name",c.pathName),this.editor.focusManager.add(e),e.on("focus",z,this),CKEDITOR.env.ie&&e.on("blur",E,this),e._.initialSetData=!0,e.setData(e.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(f.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);this.wrapper.removeClass(f.WRAPPER_CLASS_PREFIX+a)},removeStyle:function(a){H(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&&(Q(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(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.isDomWidget=function(a){return a?this.isDomWidgetWrapper(a)||this.isDomWidgetElement(a):!1};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"]};f.WRAPPER_CLASS_PREFIX="cke_widget_wrapper_";b.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 S=/^(?:<(?: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};CKEDITOR.plugins.widget=f;f.repository=c;f.nestedEditable=b}(),CKEDITOR.config.plugins="basicstyles,dialogui,dialog,notification,button,toolbar,clipboard,panelbutton,panel,floatpanel,colorbutton,colordialog,divarea,elementspath,enterkey,entities,floatingspace,listblock,richcombo,font,htmlwriter,indent,indentblock,indentlist,justify,list,sourcearea,undo,lineutils,widgetselection,widget",CKEDITOR.config.skin="moono",function(){var c=function(c,b){var a=CKEDITOR.getUrl("plugins/"+
b);c=c.split(",");for(var h=0;h<c.length;h++)CKEDITOR.skin.icons[c[h]]={path:a,offset:-c[++h],bgsize:c[++h]}};CKEDITOR.env.hidpi?c("bold,0,,italic,24,,strike,48,,subscript,72,,superscript,96,,underline,120,,copy-rtl,144,,copy,168,,cut-rtl,192,,cut,216,,paste-rtl,240,,paste,264,,bgcolor,288,,textcolor,312,,indent-rtl,336,,indent,360,,outdent-rtl,384,,outdent,408,,ipscode,432,,ipsemoticon,456,,ipsimage,480,,ipslink,504,,unlink,528,,ipspage,1104,auto,pastetext,576,,ipspreview-rtl,600,,ipspreview,624,,ipsquote,648,,ipsspoiler,672,,justifyblock,696,,justifycenter,720,,justifyleft,744,,justifyright,768,,bulletedlist-rtl,792,,bulletedlist,816,,numberedlist-rtl,840,,numberedlist,864,,removeformat,888,,source-rtl,912,,source,936,,redo-rtl,960,,redo,984,,undo-rtl,1008,,undo,1032,,simplebox,2112,auto",
"icons_hidpi.png"):c("bold,0,auto,italic,24,auto,strike,48,auto,subscript,72,auto,superscript,96,auto,underline,120,auto,copy-rtl,144,auto,copy,168,auto,cut-rtl,192,auto,cut,216,auto,paste-rtl,240,auto,paste,264,auto,bgcolor,288,auto,textcolor,312,auto,indent-rtl,336,auto,indent,360,auto,outdent-rtl,384,auto,outdent,408,auto,ipscode,432,auto,ipsemoticon,456,auto,ipsimage,480,auto,ipslink,504,auto,unlink,528,auto,ipspage,552,auto,pastetext,576,auto,ipspreview-rtl,600,auto,ipspreview,624,auto,ipsquote,648,auto,ipsspoiler,672,auto,justifyblock,696,auto,justifycenter,720,auto,justifyleft,744,auto,justifyright,768,auto,bulletedlist-rtl,792,auto,bulletedlist,816,auto,numberedlist-rtl,840,auto,numberedlist,864,auto,removeformat,888,auto,source-rtl,912,auto,source,936,auto,redo-rtl,960,auto,redo,984,auto,undo-rtl,1008,auto,undo,1032,auto,simplebox,1056,auto",
"icons.png")}(),CKEDITOR.lang.languages={af:1,ar:1,az:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-au":1,"en-ca":1,"en-gb":1,eo:1,es:1,"es-mx":1,et:1,eu: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,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,oc: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})})();