/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
(function(){if(!window.CKEDITOR||!window.CKEDITOR.dom){window.CKEDITOR||(window.CKEDITOR=function(){var b=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,h={timestamp:"K3P7",version:"4.14.0 DEV",revision:"16c60f9c7",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:b},status:"unloaded",basePath:function(){var g=window.CKEDITOR_BASEPATH||"";if(!g)for(var a=document.getElementsByTagName("script"),f=0;f<a.length;f++){var l=a[f].src.match(b);if(l){g=l[1];break}}-1==g.indexOf(":/")&&"//"!=
g.slice(0,2)&&(g=0===g.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+g:location.href.match(/^[^\?]*\/(?:)/)[0]+g);if(!g)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return g}(),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(l){}}function b(){for(var a;a=f.shift();)a()}var f=[];return function(b){function d(){try{document.documentElement.doScroll("left")}catch(c){setTimeout(d,1);return}a()}f.push(b);"complete"===document.readyState&&setTimeout(a,1);if(1==f.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);b=!1;try{b=!window.frameElement}catch(e){}document.documentElement.doScroll&&b&&d()}}}()},f=window.CKEDITOR_GETURL;if(f){var a=h.getUrl;h.getUrl=function(b){return f.call(h,b)||a.call(h,b)}}return h}());CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(b){var h=CKEDITOR.event.prototype,f;for(f in h)null==b[f]&&(b[f]=h[f])},
CKEDITOR.event.prototype=function(){function b(a){var b=h(this);return b[a]||(b[a]=new f(a))}var h=function(a){a=a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={})},f=function(a){this.name=a;this.listeners=[]};f.prototype={getListenerIndex:function(a){for(var b=0,f=this.listeners;b<f.length;b++)if(f[b].fn==a)return b;return-1}};return{define:function(a,g){var f=b.call(this,a);CKEDITOR.tools.extend(f,g,!0)},on:function(a,g,f,k,l){function d(c,n,d,b){c={name:a,sender:this,editor:c,
data:n,listenerData:k,stop:d,cancel:b,removeListener:e};return!1===g.call(f,c)?!1:c.data}function e(){n.removeListener(a,g)}var c=b.call(this,a);if(0>c.getListenerIndex(g)){c=c.listeners;f||(f=this);isNaN(l)&&(l=10);var n=this;d.fn=g;d.priority=l;for(var r=c.length-1;0<=r;r--)if(c[r].priority<=l)return c.splice(r+1,0,d),{removeListener:e};c.unshift(d)}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},f=0,k=function(){f=1};return function(l,d,e){var c=h(this)[l];l=a;var n=f;a=f=0;if(c){var r=c.listeners;if(r.length)for(var r=r.slice(0),t,q=0;q<r.length;q++){if(c.errorProof)try{t=r[q].call(this,e,d,b,k)}catch(p){}else t=r[q].call(this,e,d,b,k);!1===t?f=1:"undefined"!=typeof t&&(d=t);if(a||f)break}}d=
f?!1:"undefined"==typeof d?!0:d;a=l;f=n;return d}}(),fireOnce:function(a,b,f){b=this.fire(a,b,f);delete h(this)[a];return b},removeListener:function(a,b){var f=h(this)[a];if(f){var k=f.getListenerIndex(b);0<=k&&f.listeners.splice(k,1)}},removeAllListeners:function(){var a=h(this),b;for(b in a)delete a[b]},hasListeners:function(a){return(a=h(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(b,h){b in{instanceReady:1,loaded:1}&&(this[b]=!0);return CKEDITOR.event.prototype.fire.call(this,b,h,this)},CKEDITOR.editor.prototype.fireOnce=function(b,h){b in{instanceReady:1,loaded:1}&&(this[b]=!0);return CKEDITOR.event.prototype.fireOnce.call(this,b,h,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype));CKEDITOR.env||(CKEDITOR.env=function(){var b=navigator.userAgent.toLowerCase(),h=b.match(/edge[ \/](\d+.?\d*)/),f=-1<b.indexOf("trident/"),f=!(!h&&!f),f={ie:f,edge:!!h,webkit:!f&&
-1<b.indexOf(" applewebkit/"),air:-1<b.indexOf(" adobeair/"),mac:-1<b.indexOf("macintosh"),quirks:"BackCompat"==document.compatMode&&(!document.documentMode||10>document.documentMode),mobile:-1<b.indexOf("mobile"),iOS:/(ipad|iphone|ipod)/.test(b),isCustomDomain:function(){if(!this.ie)return!1;var a=document.domain,b=window.location.hostname;return a!=b&&a!="["+b+"]"},secure:"https:"==location.protocol};f.gecko="Gecko"==navigator.product&&!f.webkit&&!f.ie;f.webkit&&(-1<b.indexOf("chrome")?f.chrome=
!0:f.safari=!0);var a=0;f.ie&&(a=h?parseFloat(h[1]):f.quirks||!document.documentMode?parseFloat(b.match(/msie (\d+)/)[1]):document.documentMode,f.ie9Compat=9==a,f.ie8Compat=8==a,f.ie7Compat=7==a,f.ie6Compat=7>a||f.quirks);f.gecko&&(h=b.match(/rv:([\d\.]+)/))&&(h=h[1].split("."),a=1E4*h[0]+100*(h[1]||0)+1*(h[2]||0));f.air&&(a=parseFloat(b.match(/ adobeair\/(\d+)/)[1]));f.webkit&&(a=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]));f.version=a;f.isCompatible=!(f.ie&&7>a)&&!(f.gecko&&4E4>a)&&!(f.webkit&&
534>a);f.hidpi=2<=window.devicePixelRatio;f.needsBrFiller=f.gecko||f.webkit||f.ie&&10<a;f.needsNbspFiller=f.ie&&11>a;f.cssClass="cke_browser_"+(f.ie?"ie":f.gecko?"gecko":f.webkit?"webkit":"unknown");f.quirks&&(f.cssClass+=" cke_browser_quirks");f.ie&&(f.cssClass+=" cke_browser_ie"+(f.quirks?"6 cke_browser_iequirks":f.version));f.air&&(f.cssClass+=" cke_browser_air");f.iOS&&(f.cssClass+=" cke_browser_ios");f.hidpi&&(f.cssClass+=" cke_hidpi");return f}());"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 b=document.createElement("script");b.type="text/javascript";b.src=CKEDITOR.basePath+"ckeditor.js";document.getElementsByTagName("head")[0].appendChild(b)}};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.add=function(b){(this._.pending||(this._.pending=[])).push(b)};(function(){CKEDITOR.domReady(function(){var b=CKEDITOR.loadFullCore,h=CKEDITOR.loadFullCoreTimeout;b&&(CKEDITOR.status=
"basic_ready",b&&b._load?b():h&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},1E3*h))})})();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(b,h){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:b,additionalData:h})};CKEDITOR.error=function(b,h){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",
{type:"error",errorCode:b,additionalData:h})};CKEDITOR.on("log",function(b){if(window.console&&window.console.log){var h=console[b.data.type]?b.data.type:"log",f=b.data.errorCode;if(b=b.data.additionalData)console[h]("[CKEDITOR] Error code: "+f+".",b);else console[h]("[CKEDITOR] Error code: "+f+".");console[h]("[CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#"+f)}},null,null,999);CKEDITOR.dom={};(function(){function b(c,d,e){this._minInterval=
c;this._context=e;this._lastOutput=this._scheduledTimer=0;this._output=CKEDITOR.tools.bind(d,e||{});var a=this;this.input=function(){function c(){a._lastOutput=(new Date).getTime();a._scheduledTimer=0;a._call()}if(!a._scheduledTimer||!1!==a._reschedule()){var n=(new Date).getTime()-a._lastOutput;n<a._minInterval?a._scheduledTimer=setTimeout(c,a._minInterval-n):c()}}}function h(c,d,e){b.call(this,c,d,e);this._args=[];var a=this;this.input=CKEDITOR.tools.override(this.input,function(c){return function(){a._args=
Array.prototype.slice.call(arguments);c.call(this)}})}var f=[],a=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",g=/&/g,m=/>/g,k=/</g,l=/"/g,d=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,e={lt:"\x3c",gt:"\x3e",amp:"\x26",quot:'"',nbsp:" ",shy:"­"},c=function(c,d){return"#"==d[0]?String.fromCharCode(parseInt(d.slice(1),10)):e[d]};CKEDITOR.on("reset",function(){f=[]});CKEDITOR.tools={arrayCompare:function(c,d){if(!c&&!d)return!0;if(!c||!d||c.length!=d.length)return!1;
for(var e=0;e<c.length;e++)if(c[e]!=d[e])return!1;return!0},getIndex:function(c,d){for(var e=0;e<c.length;++e)if(d(c[e]))return e;return-1},clone:function(c){var d;if(c&&c instanceof Array){d=[];for(var e=0;e<c.length;e++)d[e]=CKEDITOR.tools.clone(c[e]);return d}if(null===c||"object"!=typeof c||c instanceof String||c instanceof Number||c instanceof Boolean||c instanceof Date||c instanceof RegExp||c.nodeType||c.window===c)return c;d=new c.constructor;for(e in c)d[e]=CKEDITOR.tools.clone(c[e]);return d},
capitalize:function(c,d){return c.charAt(0).toUpperCase()+(d?c.slice(1):c.slice(1).toLowerCase())},extend:function(c){var d=arguments.length,e,a;"boolean"==typeof(e=arguments[d-1])?d--:"boolean"==typeof(e=arguments[d-2])&&(a=arguments[d-1],d-=2);for(var b=1;b<d;b++){var g=arguments[b]||{};CKEDITOR.tools.array.forEach(CKEDITOR.tools.object.keys(g),function(d){if(!0===e||null==c[d])if(!a||d in a)c[d]=g[d]})}return c},prototypedCopy:function(c){var d=function(){};d.prototype=c;return new d},copy:function(c){var d=
{},e;for(e in c)d[e]=c[e];return d},isArray:function(c){return"[object Array]"==Object.prototype.toString.call(c)},isEmpty:function(c){for(var d in c)if(c.hasOwnProperty(d))return!1;return!0},cssVendorPrefix:function(c,d,e){if(e)return a+c+":"+d+";"+c+":"+d;e={};e[c]=d;e[a+c]=d;return e},cssStyleToDomStyle:function(){var c=document.createElement("div").style,d="undefined"!=typeof c.cssFloat?"cssFloat":"undefined"!=typeof c.styleFloat?"styleFloat":"float";return function(c){return"float"==c?d:c.replace(/-./g,
function(c){return c.substr(1).toUpperCase()})}}(),buildStyleHtml:function(c){c=[].concat(c);for(var d,e=[],a=0;a<c.length;a++)if(d=c[a])/@import|[{}]/.test(d)?e.push("\x3cstyle\x3e"+d+"\x3c/style\x3e"):e.push('\x3clink type\x3d"text/css" rel\x3dstylesheet href\x3d"'+d+'"\x3e');return e.join("")},htmlEncode:function(c){return void 0===c||null===c?"":String(c).replace(g,"\x26amp;").replace(m,"\x26gt;").replace(k,"\x26lt;")},htmlDecode:function(n){return n.replace(d,c)},htmlEncodeAttr:function(c){return CKEDITOR.tools.htmlEncode(c).replace(l,
"\x26quot;")},htmlDecodeAttr:function(c){return CKEDITOR.tools.htmlDecode(c)},transformPlainTextToHtml:function(c,d){var e=d==CKEDITOR.ENTER_BR,a=this.htmlEncode(c.replace(/\r\n/g,"\n")),a=a.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;"),b=d==CKEDITOR.ENTER_P?"p":"div";if(!e){var g=/\n{2}/g;if(g.test(a))var l="\x3c"+b+"\x3e",f="\x3c/"+b+"\x3e",a=l+a.replace(g,function(){return f+l})+f}a=a.replace(/\n/g,"\x3cbr\x3e");e||(a=a.replace(new RegExp("\x3cbr\x3e(?\x3d\x3c/"+b+"\x3e)"),function(c){return CKEDITOR.tools.repeat(c,
2)}));a=a.replace(/^ | $/g,"\x26nbsp;");return a=a.replace(/(>|\s) /g,function(c,d){return d+"\x26nbsp;"}).replace(/ (?=<)/g,"\x26nbsp;")},getNextNumber:function(){var c=0;return function(){return++c}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var c="e",d=0;8>d;d++)c+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return c},override:function(c,d){var e=d(c);e.prototype=c.prototype;return e},setTimeout:function(c,d,e,a,b){b||(b=window);e||(e=
b);return b.setTimeout(function(){a?c.apply(e,[].concat(a)):c.apply(e)},d||0)},throttle:function(c,d,e){return new this.buffers.throttle(c,d,e)},trim:function(){var c=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(d){return d.replace(c,"")}}(),ltrim:function(){var c=/^[ \t\n\r]+/g;return function(d){return d.replace(c,"")}}(),rtrim:function(){var c=/[ \t\n\r]+$/g;return function(d){return d.replace(c,"")}}(),indexOf:function(c,d){if("function"==typeof d)for(var e=0,a=c.length;e<a;e++){if(d(c[e]))return e}else{if(c.indexOf)return c.indexOf(d);
e=0;for(a=c.length;e<a;e++)if(c[e]===d)return e}return-1},search:function(c,d){var e=CKEDITOR.tools.indexOf(c,d);return 0<=e?c[e]:null},bind:function(c,d){var e=Array.prototype.slice.call(arguments,2);return function(){return c.apply(d,e.concat(Array.prototype.slice.call(arguments)))}},createClass:function(c){var d=c.$,e=c.base,a=c.privates||c._,b=c.proto;c=c.statics;!d&&(d=function(){e&&this.base.apply(this,arguments)});if(a)var g=d,d=function(){var c=this._||(this._={}),d;for(d in a){var e=a[d];
c[d]="function"==typeof e?CKEDITOR.tools.bind(e,this):e}g.apply(this,arguments)};e&&(d.prototype=this.prototypedCopy(e.prototype),d.prototype.constructor=d,d.base=e,d.baseProto=e.prototype,d.prototype.base=function v(){this.base=e.prototype.base;e.apply(this,arguments);this.base=v});b&&this.extend(d.prototype,b,!0);c&&this.extend(d,c,!0);return d},addFunction:function(c,d){return f.push(function(){return c.apply(d||this,arguments)})-1},removeFunction:function(c){f[c]=null},callFunction:function(c){var d=
f[c];return d&&d.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var c=/^-?\d+\.?\d*px$/,d;return function(e){d=CKEDITOR.tools.trim(e+"")+"px";return c.test(d)?d:e||""}}(),convertToPx:function(){var c;return function(d){c||(c=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(c));if(!/%$/.test(d)){var e=0>parseFloat(d);
e&&(d=d.replace("-",""));c.setStyle("width",d);d=c.$.clientWidth;return e?-d:d}return d}}(),repeat:function(c,d){return Array(d+1).join(c)},tryThese:function(){for(var c,d=0,e=arguments.length;d<e;d++){var a=arguments[d];try{c=a();break}catch(b){}}return c},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(c){return function(){var d=arguments,e=this;window.setTimeout(function(){c.apply(e,d)},0)}},normalizeCssText:function(c,d){var e=[],a,b=CKEDITOR.tools.parseCssText(c,
!0,d);for(a in b)e.push(a+":"+b[a]);e.sort();return e.length?e.join(";")+";":""},convertRgbToHex:function(c){return c.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(c,d,e,a){c=[d,e,a];for(d=0;3>d;d++)c[d]=("0"+parseInt(c[d],10).toString(16)).slice(-2);return"#"+c.join("")})},normalizeHex:function(c){return c.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,function(c,d,e,a){c=d.toLowerCase();3==c.length&&(c=c.split(""),c=[c[0],c[0],c[1],c[1],c[2],c[2]].join(""));return"#"+c+a})},parseCssText:function(c,
d,e){var a={};e&&(c=(new CKEDITOR.dom.element("span")).setAttribute("style",c).getAttribute("style")||"");c&&(c=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(c)));if(!c||";"==c)return a;c.replace(/&quot;/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(c,e,n){d&&(e=e.toLowerCase(),"font-family"==e&&(n=n.replace(/\s*,\s*/g,",")),n=CKEDITOR.tools.trim(n));a[e]=n});return a},writeCssText:function(c,d){var e,a=[];for(e in c)a.push(e+":"+c[e]);d&&a.sort();return a.join("; ")},
objectCompare:function(c,d,e){var a;if(!c&&!d)return!0;if(!c||!d)return!1;for(a in c)if(c[a]!=d[a])return!1;if(!e)for(a in d)if(c[a]!=d[a])return!1;return!0},objectKeys:function(c){return CKEDITOR.tools.object.keys(c)},convertArrayToObject:function(c,d){var e={};1==arguments.length&&(d=!0);for(var a=0,b=c.length;a<b;++a)e[c[a]]=d;return e},fixDomain:function(){for(var c;;)try{c=window.parent.document.domain;break}catch(d){c=c?c.replace(/.+?(?:\.|$)/,""):document.domain;if(!c)break;document.domain=
c}return!!c},eventsBuffer:function(c,d,e){return new this.buffers.event(c,d,e)},enableHtml5Elements:function(c,d){for(var e="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=e.length,b;a--;)b=c.createElement(e[a]),d&&c.appendChild(b)},checkIfAnyArrayItemMatches:function(c,d){for(var e=0,a=c.length;e<a;++e)if(c[e].match(d))return!0;return!1},checkIfAnyObjectPropertyMatches:function(c,
d){for(var e in c)if(e.match(d))return!0;return!1},keystrokeToString:function(c,d){var e=this.keystrokeToArray(c,d);e.display=e.display.join("+");e.aria=e.aria.join("+");return e},keystrokeToArray:function(c,d){var e=d&16711680,a=d&65535,b=CKEDITOR.env.mac,g=[],l=[];e&CKEDITOR.CTRL&&(g.push(b?"⌘":c[17]),l.push(b?c[224]:c[17]));e&CKEDITOR.ALT&&(g.push(b?"⌥":c[18]),l.push(c[18]));e&CKEDITOR.SHIFT&&(g.push(b?"⇧":c[16]),l.push(c[16]));a&&(c[a]?(g.push(c[a]),l.push(c[a])):(g.push(String.fromCharCode(a)),
l.push(String.fromCharCode(a))));return{display:g,aria:l}},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw\x3d\x3d",getCookie:function(c){c=c.toLowerCase();for(var d=document.cookie.split(";"),e,a,b=0;b<d.length;b++)if(e=d[b].split("\x3d"),a=decodeURIComponent(CKEDITOR.tools.trim(e[0]).toLowerCase()),a===c)return decodeURIComponent(1<e.length?e[1]:"");return null},setCookie:function(c,d){document.cookie=encodeURIComponent(c)+"\x3d"+encodeURIComponent(d)+
";path\x3d/"},getCsrfToken:function(){var c=CKEDITOR.tools.getCookie("ckCsrfToken");if(!c||40!=c.length){var c=[],d="";if(window.crypto&&window.crypto.getRandomValues)c=new Uint8Array(40),window.crypto.getRandomValues(c);else for(var e=0;40>e;e++)c.push(Math.floor(256*Math.random()));for(e=0;e<c.length;e++)var a="abcdefghijklmnopqrstuvwxyz0123456789".charAt(c[e]%36),d=d+(.5<Math.random()?a.toUpperCase():a);c=d;CKEDITOR.tools.setCookie("ckCsrfToken",c)}return c},escapeCss:function(c){return c?window.CSS&&
CSS.escape?CSS.escape(c):isNaN(parseInt(c.charAt(0),10))?c:"\\3"+c.charAt(0)+" "+c.substring(1,c.length):""},getMouseButton:function(c){return(c=c&&c.data?c.data.$:c)?CKEDITOR.tools.normalizeMouseButton(c.button):!1},normalizeMouseButton:function(c,d){if(!CKEDITOR.env.ie||9<=CKEDITOR.env.version&&!CKEDITOR.env.ie6Compat)return c;for(var e=[[CKEDITOR.MOUSE_BUTTON_LEFT,1],[CKEDITOR.MOUSE_BUTTON_MIDDLE,4],[CKEDITOR.MOUSE_BUTTON_RIGHT,2]],a=0;a<e.length;a++){var b=e[a];if(b[0]===c&&d)return b[1];if(!d&&
b[1]===c)return b[0]}},convertHexStringToBytes:function(c){var d=[],e=c.length/2,a;for(a=0;a<e;a++)d.push(parseInt(c.substr(2*a,2),16));return d},convertBytesToBase64:function(c){var d="",e=c.length,a;for(a=0;a<e;a+=3){var b=c.slice(a,a+3),g=b.length,l=[],f;if(3>g)for(f=g;3>f;f++)b[f]=0;l[0]=(b[0]&252)>>2;l[1]=(b[0]&3)<<4|b[1]>>4;l[2]=(b[1]&15)<<2|(b[2]&192)>>6;l[3]=b[2]&63;for(f=0;4>f;f++)d=f<=g?d+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l[f]):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",windowtext:"windowtext",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(c){var d={},e=this._findColor(c);e.length&&(d.color=e[0],CKEDITOR.tools.array.forEach(e,function(d){c=c.replace(d,"")}));if(c=CKEDITOR.tools.trim(c))d.unprocessed=c;return d},margin:function(c){return CKEDITOR.tools.style.parse.sideShorthand(c,
function(c){return c.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset|revert)/g)||["0px"]})},sideShorthand:function(c,d){function e(c){a.top=b[c[0]];a.right=b[c[1]];a.bottom=b[c[2]];a.left=b[c[3]]}var a={},b=d?d(c):c.split(/\s+/);switch(b.length){case 1:e([0,0,0,0]);break;case 2:e([0,1,0,1]);break;case 3:e([0,1,2,1]);break;case 4:e([0,1,2,3])}return a},border:function(c){return CKEDITOR.tools.style.border.fromCssRule(c)},_findColor:function(c){var d=[],e=CKEDITOR.tools.array,d=d.concat(c.match(this._rgbaRegExp)||
[]),d=d.concat(c.match(this._hslaRegExp)||[]);return d=d.concat(e.filter(c.split(/\s+/),function(c){return c.match(/^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi)?!0:c.toLowerCase()in CKEDITOR.tools.style.parse._colors}))}}},array:{filter:function(c,d,e){var a=[];this.forEach(c,function(b,g){d.call(e,b,g,c)&&a.push(b)});return a},find:function(c,d,e){for(var a=c.length,b=0;b<a;){if(d.call(e,c[b],b,c))return c[b];b++}},forEach:function(c,d,e){var a=c.length,b;for(b=0;b<a;b++)d.call(e,c[b],b,c)},map:function(c,
d,e){for(var a=[],b=0;b<c.length;b++)a.push(d.call(e,c[b],b,c));return a},reduce:function(c,d,e,a){for(var b=0;b<c.length;b++)e=d.call(a,e,c[b],b,c);return e},every:function(c,d,e){if(!c.length)return!0;d=this.filter(c,d,e);return c.length===d.length},some:function(c,d,e){for(var a=0;a<c.length;a++)if(d.call(e,c[a],a,c))return!0;return!1}},object:{DONT_ENUMS:"toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),entries:function(c){return CKEDITOR.tools.array.map(CKEDITOR.tools.object.keys(c),
function(d){return[d,c[d]]})},values:function(c){return CKEDITOR.tools.array.map(CKEDITOR.tools.object.keys(c),function(d){return c[d]})},keys:function(c){var d=Object.prototype.hasOwnProperty,e=[],a=CKEDITOR.tools.object.DONT_ENUMS;if(CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(!c||"object"!==typeof c)){d=[];if("string"===typeof c)for(e=0;e<c.length;e++)d.push(String(e));return d}for(var b in c)e.push(b);if(CKEDITOR.env.ie&&9>CKEDITOR.env.version)for(b=0;b<a.length;b++)d.call(c,a[b])&&e.push(a[b]);
return e},findKey:function(c,d){if("object"!==typeof c)return null;for(var e in c)if(c[e]===d)return e;return null},merge:function(c,d){var e=CKEDITOR.tools,a=e.clone(c),b=e.clone(d);e.array.forEach(e.object.keys(b),function(c){a[c]="object"===typeof b[c]&&"object"===typeof a[c]?e.object.merge(a[c],b[c]):b[c]});return a}},getAbsoluteRectPosition:function(c,d){function e(c){if(c){var d=c.getClientRect();a.top+=d.top;a.left+=d.left;"x"in a&&"y"in a&&(a.x+=d.x,a.y+=d.y);e(c.getWindow().getFrame())}}
var a=CKEDITOR.tools.copy(d);e(c.getFrame());var b=CKEDITOR.document.getWindow().getScrollPosition();a.top+=b.y;a.left+=b.x;"x"in a&&"y"in a&&(a.y+=b.y,a.x+=b.x);a.right=a.left+a.width;a.bottom=a.top+a.height;return a}};b.prototype={reset:function(){this._lastOutput=0;this._clearTimer()},_reschedule:function(){return!1},_call:function(){this._output()},_clearTimer:function(){this._scheduledTimer&&clearTimeout(this._scheduledTimer);this._scheduledTimer=0}};h.prototype=CKEDITOR.tools.prototypedCopy(b.prototype);
h.prototype._reschedule=function(){this._scheduledTimer&&this._clearTimer()};h.prototype._call=function(){this._output.apply(this._context,this._args)};CKEDITOR.tools.buffers={};CKEDITOR.tools.buffers.event=b;CKEDITOR.tools.buffers.throttle=h;CKEDITOR.tools.style.border=CKEDITOR.tools.createClass({$:function(c){c=c||{};this.width=c.width;this.style=c.style;this.color=c.color;this._.normalize()},_:{normalizeMap:{color:[[/windowtext/g,"black"]]},normalize:function(){for(var c in this._.normalizeMap){var d=
this[c];d&&(this[c]=CKEDITOR.tools.array.reduce(this._.normalizeMap[c],function(c,d){return c.replace(d[0],d[1])},d))}}},proto:{toString:function(){return CKEDITOR.tools.array.filter([this.width,this.style,this.color],function(c){return!!c}).join(" ")}},statics:{fromCssRule:function(c){var d={},e=c.split(/\s+/g);c=CKEDITOR.tools.style.parse._findColor(c);c.length&&(d.color=c[0]);CKEDITOR.tools.array.forEach(e,function(c){d.style||-1===CKEDITOR.tools.indexOf(CKEDITOR.tools.style.parse._borderStyle,
c)?!d.width&&CKEDITOR.tools.style.parse._widthRegExp.test(c)&&(d.width=c):d.style=c});return new CKEDITOR.tools.style.border(d)},splitCssValues:function(c,d){d=d||{};var e=CKEDITOR.tools.array.reduce(["width","style","color"],function(e,a){var b=c["border-"+a]||d[a];e[a]=b?CKEDITOR.tools.style.parse.sideShorthand(b):null;return e},{});return CKEDITOR.tools.array.reduce(["top","right","bottom","left"],function(d,a){var b={},g;for(g in e){var l=c["border-"+a+"-"+g];b[g]=l?l:e[g]&&e[g][a]}d["border-"+
a]=new CKEDITOR.tools.style.border(b);return d},{})}}});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 b=CKEDITOR.tools.extend,h=function(d,c){for(var a=CKEDITOR.tools.clone(d),b=1;b<arguments.length;b++){c=arguments[b];for(var g in c)delete a[g]}return a},f={},a={},g={address:1,article:1,aside:1,blockquote:1,details:1,div:1,
dl:1,fieldset:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,main:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},m={command:1,link:1,meta:1,noscript:1,script:1,style:1},k={},l={"#":1},d={center:1,dir:1,noframes:1};b(f,{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},l,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});b(a,g,f,d);h={a:h(f,{a:1,button:1}),abbr:f,address:a,area:k,article:a,aside:a,audio:b({source:1,track:1},a),b:f,base:k,bdi:f,bdo:f,blockquote:a,body:a,br:k,button:h(f,{a:1,button:1}),canvas:f,caption:a,cite:f,code:f,col:k,colgroup:{col:1},command:k,datalist:b({option:1},f),dd:a,del:f,details:b({summary:1},
a),dfn:f,div:a,dl:{dt:1,dd:1},dt:a,em:f,embed:k,fieldset:b({legend:1},a),figcaption:a,figure:b({figcaption:1},a),footer:a,form:a,h1:f,h2:f,h3:f,h4:f,h5:f,h6:f,head:b({title:1,base:1},m),header:a,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:k,html:b({head:1,body:1},a,m),i:f,iframe:l,img:k,input:k,ins:f,kbd:f,keygen:k,label:f,legend:f,li:a,link:k,main:a,map:a,mark:f,menu:b({li:1},a),meta:k,meter:h(f,{meter:1}),nav:a,noscript:b({link:1,meta:1,style:1},f),object:b({param:1},f),ol:{li:1},optgroup:{option:1},
option:l,output:f,p:f,param:k,pre:f,progress:h(f,{progress:1}),q:f,rp:f,rt:f,ruby:b({rp:1,rt:1},f),s:f,samp:f,script:l,section:a,select:{optgroup:1,option:1},small:f,source:k,span:f,strong:f,style:l,sub:f,summary:b({h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},f),sup:f,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:a,textarea:l,tfoot:{tr:1},th:a,thead:{tr:1},time:h(f,{time:1}),title:l,tr:{th:1,td:1},track:k,u:f,ul:{li:1},"var":f,video:b({source:1,track:1},a),wbr:k,acronym:f,applet:b({param:1},
a),basefont:k,big:f,center:a,dialog:k,dir:{li:1},font:f,isindex:k,noframes:a,strike:f,tt:f};b(h,{$block:b({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},g,d),$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:f,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:b({body:1,head:1,html:1},h.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 h}();CKEDITOR.dom.event=function(b){this.$=b};CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var b=this.getKey();if(this.$.ctrlKey||this.$.metaKey)b+=CKEDITOR.CTRL;this.$.shiftKey&&(b+=CKEDITOR.SHIFT);this.$.altKey&&(b+=CKEDITOR.ALT);return b},
preventDefault:function(b){var h=this.$;h.preventDefault?h.preventDefault():h.returnValue=!1;b&&this.stopPropagation()},stopPropagation:function(){var b=this.$;b.stopPropagation?b.stopPropagation():b.cancelBubble=!0},getTarget:function(){var b=this.$.target||this.$.srcElement;return b?new CKEDITOR.dom.node(b):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var b=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(b.documentElement.scrollLeft||b.body.scrollLeft),
y:this.$.pageY||this.$.clientY+(b.documentElement.scrollTop||b.body.scrollTop)}}};CKEDITOR.CTRL=1114112;CKEDITOR.SHIFT=2228224;CKEDITOR.ALT=4456448;CKEDITOR.EVENT_PHASE_CAPTURING=1;CKEDITOR.EVENT_PHASE_AT_TARGET=2;CKEDITOR.EVENT_PHASE_BUBBLING=3;CKEDITOR.dom.domObject=function(b){b&&(this.$=b)};CKEDITOR.dom.domObject.prototype=function(){var b=function(b,f){return function(a){"undefined"!=typeof CKEDITOR&&b.fire(f,new CKEDITOR.dom.event(a))}};return{getPrivate:function(){var b;(b=this.getCustomData("_"))||
this.setCustomData("_",b={});return b},on:function(h){var f=this.getCustomData("_cke_nativeListeners");f||(f={},this.setCustomData("_cke_nativeListeners",f));f[h]||(f=f[h]=b(this,h),this.$.addEventListener?this.$.addEventListener(h,f,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+h,f));return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(b){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(b)){var f=this.getCustomData("_cke_nativeListeners"),
a=f&&f[b];a&&(this.$.removeEventListener?this.$.removeEventListener(b,a,!1):this.$.detachEvent&&this.$.detachEvent("on"+b,a),delete f[b])}},removeAllListeners:function(){try{var b=this.getCustomData("_cke_nativeListeners"),f;for(f in b){var a=b[f];this.$.detachEvent?this.$.detachEvent("on"+f,a):this.$.removeEventListener&&this.$.removeEventListener(f,a,!1);delete b[f]}}catch(g){if(!CKEDITOR.env.edge||-2146828218!==g.number)throw g;}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}();(function(b){var h=
{};CKEDITOR.on("reset",function(){h={}});b.equals=function(b){try{return b&&b.$===this.$}catch(a){return!1}};b.setCustomData=function(b,a){var g=this.getUniqueId();(h[g]||(h[g]={}))[b]=a;return this};b.getCustomData=function(b){var a=this.$["data-cke-expando"];return(a=a&&h[a])&&b in a?a[b]:null};b.removeCustomData=function(b){var a=this.$["data-cke-expando"],a=a&&h[a],g,m;a&&(g=a[b],m=b in a,delete a[b]);return m?g:null};b.clearCustomData=function(){this.removeAllListeners();var b=this.getUniqueId();
b&&delete h[b]};b.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(b)})(CKEDITOR.dom.domObject.prototype);CKEDITOR.dom.node=function(b){return b?new CKEDITOR.dom[b.nodeType==CKEDITOR.NODE_DOCUMENT?"document":b.nodeType==CKEDITOR.NODE_ELEMENT?"element":b.nodeType==CKEDITOR.NODE_TEXT?"text":b.nodeType==CKEDITOR.NODE_COMMENT?"comment":b.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](b):
this};CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject;CKEDITOR.NODE_ELEMENT=1;CKEDITOR.NODE_DOCUMENT=9;CKEDITOR.NODE_TEXT=3;CKEDITOR.NODE_COMMENT=8;CKEDITOR.NODE_DOCUMENT_FRAGMENT=11;CKEDITOR.POSITION_IDENTICAL=0;CKEDITOR.POSITION_DISCONNECTED=1;CKEDITOR.POSITION_FOLLOWING=2;CKEDITOR.POSITION_PRECEDING=4;CKEDITOR.POSITION_IS_CONTAINED=8;CKEDITOR.POSITION_CONTAINS=16;CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(b,h){b.append(this,h);return b},clone:function(b,h){function f(a){a["data-cke-expando"]&&
(a["data-cke-expando"]=!1);if(a.nodeType==CKEDITOR.NODE_ELEMENT||a.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)if(h||a.nodeType!=CKEDITOR.NODE_ELEMENT||a.removeAttribute("id",!1),b){a=a.childNodes;for(var g=0;g<a.length;g++)f(a[g])}}function a(g){if(g.type==CKEDITOR.NODE_ELEMENT||g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT){if(g.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var f=g.getName();":"==f[0]&&g.renameNode(f.substring(1))}if(b)for(f=0;f<g.getChildCount();f++)a(g.getChild(f))}}var g=this.$.cloneNode(b);
f(g);g=new CKEDITOR.dom.node(g);CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&a(g);return g},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(b){b.$.parentNode.insertBefore(this.$,b.$.nextSibling);return b},insertBefore:function(b){b.$.parentNode.insertBefore(this.$,b.$);return b},insertBeforeMe:function(b){this.$.parentNode.insertBefore(b.$,this.$);
return b},getAddress:function(b){for(var h=[],f=this.getDocument().$.documentElement,a=this;a&&a!=f;){var g=a.getParent();g&&h.unshift(this.getIndex.call(a,b));a=g}return h},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(b){function h(a,b){var g=b?a.getNext():a.getPrevious();return g&&g.type==CKEDITOR.NODE_TEXT?g.isEmpty()?h(g,b):g:null}var f=this,a=-1,g;if(!this.getParent()||b&&f.type==CKEDITOR.NODE_TEXT&&f.isEmpty()&&
!h(f)&&!h(f,!0))return-1;do if(!b||f.equals(this)||f.type!=CKEDITOR.NODE_TEXT||!g&&!f.isEmpty())a++,g=f.type==CKEDITOR.NODE_TEXT;while(f=f.getPrevious());return a},getNextSourceNode:function(b,h,f){if(f&&!f.call){var a=f;f=function(b){return!b.equals(a)}}b=!b&&this.getFirst&&this.getFirst();var g;if(!b){if(this.type==CKEDITOR.NODE_ELEMENT&&f&&!1===f(this,!0))return null;b=this.getNext()}for(;!b&&(g=(g||this).getParent());){if(f&&!1===f(g,!0))return null;b=g.getNext()}return!b||f&&!1===f(b)?null:h&&
h!=b.type?b.getNextSourceNode(!1,h,f):b},getPreviousSourceNode:function(b,h,f){if(f&&!f.call){var a=f;f=function(b){return!b.equals(a)}}b=!b&&this.getLast&&this.getLast();var g;if(!b){if(this.type==CKEDITOR.NODE_ELEMENT&&f&&!1===f(this,!0))return null;b=this.getPrevious()}for(;!b&&(g=(g||this).getParent());){if(f&&!1===f(g,!0))return null;b=g.getPrevious()}return!b||f&&!1===f(b)?null:h&&b.type!=h?b.getPreviousSourceNode(!1,h,f):b},getPrevious:function(b){var h=this.$,f;do f=(h=h.previousSibling)&&
10!=h.nodeType&&new CKEDITOR.dom.node(h);while(f&&b&&!b(f));return f},getNext:function(b){var h=this.$,f;do f=(h=h.nextSibling)&&new CKEDITOR.dom.node(h);while(f&&b&&!b(f));return f},getParent:function(b){var h=this.$.parentNode;return h&&(h.nodeType==CKEDITOR.NODE_ELEMENT||b&&h.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(h):null},getParents:function(b){var h=this,f=[];do f[b?"push":"unshift"](h);while(h=h.getParent());return f},getCommonAncestor:function(b){if(b.equals(this))return this;
if(b.contains&&b.contains(this))return b;var h=this.contains?this:this.getParent();do if(h.contains(b))return h;while(h=h.getParent());return null},getPosition:function(b){var h=this.$,f=b.$;if(h.compareDocumentPosition)return h.compareDocumentPosition(f);if(h==f)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&b.type==CKEDITOR.NODE_ELEMENT){if(h.contains){if(h.contains(f))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(f.contains(h))return CKEDITOR.POSITION_IS_CONTAINED+
CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in h)return 0>h.sourceIndex||0>f.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:h.sourceIndex<f.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}h=this.getAddress();b=b.getAddress();for(var f=Math.min(h.length,b.length),a=0;a<f;a++)if(h[a]!=b[a])return h[a]<b[a]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return h.length<b.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},
getAscendant:function(b,h){var f=this.$,a,g;h||(f=f.parentNode);"function"==typeof b?(g=!0,a=b):(g=!1,a=function(a){a="string"==typeof a.nodeName?a.nodeName.toLowerCase():"";return"string"==typeof b?a==b:a in b});for(;f;){if(a(g?new CKEDITOR.dom.node(f):f))return new CKEDITOR.dom.node(f);try{f=f.parentNode}catch(m){f=null}}return null},hasAscendant:function(b,h){var f=this.$;h||(f=f.parentNode);for(;f;){if(f.nodeName&&f.nodeName.toLowerCase()==b)return!0;f=f.parentNode}return!1},move:function(b,h){b.append(this.remove(),
h)},remove:function(b){var h=this.$,f=h.parentNode;if(f){if(b)for(;b=h.firstChild;)f.insertBefore(h.removeChild(b),h);f.removeChild(h)}return this},replace:function(b){this.insertBefore(b);b.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var b;this.getFirst&&(b=this.getFirst());){if(b.type==CKEDITOR.NODE_TEXT){var h=CKEDITOR.tools.ltrim(b.getText()),f=b.getLength();if(h)h.length<f&&(b.split(f-h.length),this.$.removeChild(this.$.firstChild));else{b.remove();continue}}break}},
rtrim:function(){for(var b;this.getLast&&(b=this.getLast());){if(b.type==CKEDITOR.NODE_TEXT){var h=CKEDITOR.tools.rtrim(b.getText()),f=b.getLength();if(h)h.length<f&&(b.split(h.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild));else{b.remove();continue}}break}CKEDITOR.env.needsBrFiller&&(b=this.$.lastChild)&&1==b.type&&"br"==b.nodeName.toLowerCase()&&b.parentNode.removeChild(b)},isReadOnly:function(b){var h=this;this.type!=CKEDITOR.NODE_ELEMENT&&(h=this.getParent());CKEDITOR.env.edge&&
h&&h.is("textarea","input")&&(b=!0);if(!b&&h&&"undefined"!=typeof h.$.isContentEditable)return!(h.$.isContentEditable||h.data("cke-editable"));for(;h;){if(h.data("cke-editable"))return!1;if(h.hasAttribute("contenteditable"))return"false"==h.getAttribute("contenteditable");h=h.getParent()}return!0}});CKEDITOR.dom.window=function(b){CKEDITOR.dom.domObject.call(this,b)};CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject;CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},
getViewPaneSize:function(){var b=this.$.document,h="CSS1Compat"==b.compatMode;return{width:(h?b.documentElement.clientWidth:b.body.clientWidth)||0,height:(h?b.documentElement.clientHeight:b.body.clientHeight)||0}},getScrollPosition:function(){var b=this.$;if("pageXOffset"in b)return{x:b.pageXOffset||0,y:b.pageYOffset||0};b=b.document;return{x:b.documentElement.scrollLeft||b.body.scrollLeft||0,y:b.documentElement.scrollTop||b.body.scrollTop||0}},getFrame:function(){var b=this.$.frameElement;return b?
new CKEDITOR.dom.element.get(b):null}});CKEDITOR.dom.document=function(b){CKEDITOR.dom.domObject.call(this,b)};CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject;CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(b){if(this.$.createStyleSheet)this.$.createStyleSheet(b);else{var h=new CKEDITOR.dom.element("link");h.setAttributes({rel:"stylesheet",type:"text/css",href:b});this.getHead().append(h)}},appendStyleText:function(b){if(this.$.createStyleSheet){var h=
this.$.createStyleSheet("");h.cssText=b}else{var f=new CKEDITOR.dom.element("style",this);f.append(new CKEDITOR.dom.text(b,this));this.getHead().append(f)}return h||f.$.sheet},createElement:function(b,h){var f=new CKEDITOR.dom.element(b,this);h&&(h.attributes&&f.setAttributes(h.attributes),h.styles&&f.setStyles(h.styles));return f},createText:function(b){return new CKEDITOR.dom.text(b,this)},focus:function(){this.getWindow().focus()},getActive:function(){var b;try{b=this.$.activeElement}catch(h){return null}return new CKEDITOR.dom.element(b)},
getById:function(b){return(b=this.$.getElementById(b))?new CKEDITOR.dom.element(b):null},getByAddress:function(b,h){for(var f=this.$.documentElement,a=0;f&&a<b.length;a++){var g=b[a];if(h)for(var m=-1,k=0;k<f.childNodes.length;k++){var l=f.childNodes[k];if(!0!==h||3!=l.nodeType||!l.previousSibling||3!=l.previousSibling.nodeType)if(m++,m==g){f=l;break}}else f=f.childNodes[g]}return f?new CKEDITOR.dom.node(f):null},getElementsByTag:function(b,h){CKEDITOR.env.ie&&8>=document.documentMode||!h||(b=h+":"+
b);return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(b))},getHead:function(){var b=this.$.getElementsByTagName("head")[0];return b=b?new CKEDITOR.dom.element(b):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!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(b){this.$.open("text/html",
"replace");CKEDITOR.env.ie&&(b=b.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$\x26\n\x3cscript data-cke-temp\x3d"1"\x3e('+CKEDITOR.tools.fixDomain+")();\x3c/script\x3e"));this.$.write(b);this.$.close()},find:function(b){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(b))},findOne:function(b){return(b=this.$.querySelector(b))?new CKEDITOR.dom.element(b):null},_getHtml5ShivFrag:function(){var b=this.getCustomData("html5ShivFrag");b||(b=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(b,
!0),this.setCustomData("html5ShivFrag",b));return b}});CKEDITOR.dom.nodeList=function(b){this.$=b};CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(b){return 0>b||b>=this.$.length?null:(b=this.$[b])?new CKEDITOR.dom.node(b):null},toArray:function(){return CKEDITOR.tools.array.map(this.$,function(b){return new CKEDITOR.dom.node(b)})}};CKEDITOR.dom.element=function(b,h){"string"==typeof b&&(b=(h?h.$:document).createElement(b));CKEDITOR.dom.domObject.call(this,
b)};CKEDITOR.dom.element.get=function(b){return(b="string"==typeof b?document.getElementById(b)||document.getElementsByName(b)[0]:b)&&(b.$?b:new CKEDITOR.dom.element(b))};CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node;CKEDITOR.dom.element.createFromHtml=function(b,h){var f=new CKEDITOR.dom.element("div",h);f.setHtml(b);return f.getFirst().remove()};CKEDITOR.dom.element.setMarker=function(b,h,f,a){var g=h.getCustomData("list_marker_id")||h.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),
m=h.getCustomData("list_marker_names")||h.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");b[g]=h;m[f]=1;return h.setCustomData(f,a)};CKEDITOR.dom.element.clearAllMarkers=function(b){for(var h in b)CKEDITOR.dom.element.clearMarkers(b,b[h],1)};CKEDITOR.dom.element.clearMarkers=function(b,h,f){var a=h.getCustomData("list_marker_names"),g=h.getCustomData("list_marker_id"),m;for(m in a)h.removeCustomData(m);h.removeCustomData("list_marker_names");f&&(h.removeCustomData("list_marker_id"),
delete b[g])};(function(){function b(a,d){return-1<(" "+a+" ").replace(m," ").indexOf(" "+d+" ")}function h(a){var d=!0;a.$.id||(a.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),d=!1);return function(){d||a.removeAttribute("id")}}function f(a,d){var e=CKEDITOR.tools.escapeCss(a.$.id);return"#"+e+" "+d.split(/,\s*/).join(", #"+e+" ")}function a(a){for(var d=0,e=0,c=k[a].length;e<c;e++)d+=parseFloat(this.getComputedStyle(k[a][e])||0,10)||0;return d}var g=document.createElement("_").classList,g="undefined"!==
typeof g&&null!==String(g.add).match(/\[Native code\]/gi),m=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:g?function(a){this.$.classList.add(a);return this}:function(a){var d=this.$.className;d&&(b(d,a)||(d+=" "+a));this.$.className=d||a;return this},removeClass:g?function(a){var d=this.$;d.classList.remove(a);d.className||d.removeAttribute("class");return this}:function(a){var d=this.getAttribute("class");d&&b(d,a)&&((d=d.replace(new RegExp("(?:^|\\s+)"+
a+"(?\x3d\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",d):this.removeAttribute("class"));return this},hasClass:function(a){return b(this.$.className,a)},append:function(a,d){"string"==typeof a&&(a=this.getDocument().createElement(a));d?this.$.insertBefore(a.$,this.$.firstChild):this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var d=new CKEDITOR.dom.element("div",this.getDocument());d.setHtml(a);d.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,d){var e=new CKEDITOR.dom.range(this.getDocument());e.setStartAfter(this);e.setEndAfter(a);
var c=e.extractContents(!1,d||!1),b;e.insertNode(this.remove());if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(e=new CKEDITOR.dom.element("div");b=c.getFirst();)b.$.style.backgroundColor&&(b.$.style.backgroundColor=b.$.style.backgroundColor),e.append(b);e.insertAfter(this);e.remove(!0)}else c.insertAfterNode(this)},contains:document.compareDocumentPosition?function(a){return!!(this.$.compareDocumentPosition(a.$)&16)}:function(a){var d=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?d.contains(a.getParent().$):
d!=a.$&&d.contains(a.$)},focus:function(){function a(){try{this.$.focus()}catch(d){}}return function(d){d?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(a){var d=CKEDITOR.tools.extend({},
this.$.getBoundingClientRect());!d.width&&(d.width=d.right-d.left);!d.height&&(d.height=d.bottom-d.top);return a?CKEDITOR.tools.getAbsoluteRectPosition(this.getWindow(),d):d},setHtml:CKEDITOR.env.ie&&9>CKEDITOR.env.version?function(a){try{var d=this.$;if(this.getParent())return d.innerHTML=a;var e=this.getDocument()._getHtml5ShivFrag();e.appendChild(d);d.innerHTML=a;e.removeChild(d);return a}catch(c){this.$.innerHTML="";d=new CKEDITOR.dom.element("body",this.getDocument());d.$.innerHTML=a;for(d=d.getChildren();d.count();)this.append(d.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(d){this.$[a?"textContent":"innerText"]=d}}(),getAttribute:function(){var a=function(d){return this.$.getAttribute(d,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(d){switch(d){case "class":d="className";break;case "http-equiv":d="httpEquiv";break;case "name":return this.$.name;case "tabindex":return d=this.$.getAttribute(d,
2),0!==d&&0===this.$.tabIndex&&(d=null),d;case "checked":return d=this.$.attributes.getNamedItem(d),(d.specified?d.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[d];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(d,2)}:a}(),getAttributes:function(a){var d={},e=this.$.attributes,c;a=CKEDITOR.tools.isArray(a)?
a:[];for(c=0;c<e.length;c++)-1===CKEDITOR.tools.indexOf(a,e[c].name)&&(d[e[c].name]=e[c].value);return d},getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getClientSize:function(){return{width:this.$.clientWidth,height:this.$.clientHeight}},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(a){var d=this.getWindow().$.getComputedStyle(this.$,null);return d?d.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 d=this.$.scopeName;"HTML"!=d&&(a=d.toLowerCase()+":"+a)}this.getName=function(){return a};return this.getName()},getValue:function(){return this.$.value},getFirst:function(a){var d=this.$.firstChild;(d=d&&new CKEDITOR.dom.node(d))&&a&&!a(d)&&(d=d.getNext(a));return d},getLast:function(a){var d=this.$.lastChild;(d=d&&new CKEDITOR.dom.node(d))&&a&&!a(d)&&(d=d.getPrevious(a));return d},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 d=0;d<arguments.length;d++)if(arguments[d]==a)return!0;return!1},isEditable:function(a){var d=this.getName();return this.isReadOnly()||"none"==this.getComputedStyle("display")||"hidden"==this.getComputedStyle("visibility")||CKEDITOR.dtd.$nonEditable[d]||CKEDITOR.dtd.$empty[d]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount()?!1:!1!==a?(a=CKEDITOR.dtd[d]||
CKEDITOR.dtd.span,!(!a||!a["#"])):!0},isIdentical:function(a){var d=this.clone(0,1);a=a.clone(0,1);d.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(d.$.isEqualNode)return d.$.style.cssText=CKEDITOR.tools.normalizeCssText(d.$.style.cssText),a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText),d.$.isEqualNode(a.$);d=d.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(d),d=e.getHtml(),e.setHtml(a),a=e.getHtml())}return d==a},isVisible:function(){var a=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"!=this.getComputedStyle("visibility"),d,e;a&&CKEDITOR.env.webkit&&(d=this.getWindow(),!d.equals(CKEDITOR.document.getWindow())&&(e=d.$.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(),d=0,e=a.count();d<e;d++){var c=a.getItem(d);if(c.type!=CKEDITOR.NODE_ELEMENT||!c.data("cke-bookmark"))if(c.type==CKEDITOR.NODE_ELEMENT&&!c.isEmptyInlineRemoveable()||c.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(c.getText()))return!1}return!0},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var a=this.$.attributes,d=0;d<a.length;d++){var e=a[d];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,d=a.length,e={"data-cke-expando":1,_moz_dirty:1};return 0<d&&(2<d||!e[a[0].nodeName]||2==d&&!e[a[1].nodeName])},hasAttribute:function(){function a(d){var e=this.$.attributes.getNamedItem(d);if("input"==this.getName())switch(d){case "class":return 0<this.$.className.length;case "checked":return!!this.$.checked;case "value":return d=this.getAttribute("type"),"checkbox"==d||"radio"==d?"on"!=this.$.value:!!this.$.value}return e?
e.specified:!1}return CKEDITOR.env.ie?8>CKEDITOR.env.version?function(d){return"name"==d?!!this.$.name:a.call(this,d)}:a:function(d){return!!this.$.attributes.getNamedItem(d)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(a,d){var e=this.$;a=a.$;if(e!=a){var c;if(d)for(;c=e.lastChild;)a.insertBefore(e.removeChild(c),a.firstChild);else for(;c=e.firstChild;)a.appendChild(e.removeChild(c))}},mergeSiblings:function(){function a(d,e,c){if(e&&e.type==CKEDITOR.NODE_ELEMENT){for(var b=
[];e.data("cke-bookmark")||e.isEmptyInlineRemoveable();)if(b.push(e),e=c?e.getNext():e.getPrevious(),!e||e.type!=CKEDITOR.NODE_ELEMENT)return;if(d.isIdentical(e)){for(var g=c?d.getLast():d.getFirst();b.length;)b.shift().move(d,!c);e.moveChildren(d,!c);e.remove();g&&g.type==CKEDITOR.NODE_ELEMENT&&g.mergeSiblings()}}}return function(d){if(!1===d||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(d,e){"class"==d?this.$.className=e:"style"==d?this.$.style.cssText=e:"tabindex"==d?this.$.tabIndex=e:"checked"==d?this.$.checked=e:"contenteditable"==d?a.call(this,"contentEditable",e):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(d,e){if("src"==d&&e.match(/^http:\/\//))try{a.apply(this,
arguments)}catch(c){}else a.apply(this,arguments);return this}:a}(),setAttributes:function(a){for(var d in a)this.setAttribute(d,a[d]);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 d=
0;d<a.length;d++)this.removeAttribute(a[d]);else for(d in a=a||this.getAttributes(),a)a.hasOwnProperty(d)&&this.removeAttribute(d)},removeStyle:function(a){var d=this.$.style;if(d.removeProperty||"border"!=a&&"margin"!=a&&"padding"!=a)d.removeProperty?d.removeProperty(a):d.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(a)),this.$.style.cssText||this.removeAttribute("style");else{var e=["top","left","right","bottom"],c;"border"==a&&(c=["color","style","width"]);for(var d=[],b=0;b<e.length;b++)if(c)for(var g=
0;g<c.length;g++)d.push([a,e[b],c[g]].join("-"));else d.push([a,e[b]].join("-"));for(a=0;a<d.length;a++)this.removeStyle(d[a])}},setStyle:function(a,d){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]=d;return this},setStyles:function(a){for(var d in a)this.setStyle(d,a[d]);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,d=this.getElementsByTag("*"),e=0,c=d.count();e<c;e++)a=d.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 d=0,e=0,c=this.getDocument(),b=c.getBody(),g="BackCompat"==c.$.compatMode;if(document.documentElement.getBoundingClientRect&&(CKEDITOR.env.ie?
8!==CKEDITOR.env.version:1)){var f=this.$.getBoundingClientRect(),k=c.$.documentElement,h=k.clientTop||b.$.clientTop||0,u=k.clientLeft||b.$.clientLeft||0,m=!0;CKEDITOR.env.ie&&(m=c.getDocumentElement().contains(this),c=c.getBody().contains(this),m=g&&c||!g&&m);m&&(CKEDITOR.env.webkit||CKEDITOR.env.ie&&12<=CKEDITOR.env.version?(d=b.$.scrollLeft||k.scrollLeft,e=b.$.scrollTop||k.scrollTop):(e=g?b.$:k,d=e.scrollLeft,e=e.scrollTop),d=f.left+d-u,e=f.top+e-h)}else for(h=this,u=null;h&&"body"!=h.getName()&&
"html"!=h.getName();){d+=h.$.offsetLeft-h.$.scrollLeft;e+=h.$.offsetTop-h.$.scrollTop;h.equals(this)||(d+=h.$.clientLeft||0,e+=h.$.clientTop||0);for(;u&&!u.equals(h);)d-=u.$.scrollLeft,e-=u.$.scrollTop,u=u.getParent();u=h;h=(f=h.$.offsetParent)?new CKEDITOR.dom.element(f):null}a&&(f=this.getWindow(),h=a.getWindow(),!f.equals(h)&&f.$.frameElement&&(a=(new CKEDITOR.dom.element(f.$.frameElement)).getDocumentPosition(a),d+=a.x,e+=a.y));document.documentElement.getBoundingClientRect||!CKEDITOR.env.gecko||
g||(d+=this.$.clientLeft?1:0,e+=this.$.clientTop?1:0);return{x:d,y:e}},scrollIntoView:function(a){var d=this.getParent();if(d){do if((d.$.clientWidth&&d.$.clientWidth<d.$.scrollWidth||d.$.clientHeight&&d.$.clientHeight<d.$.scrollHeight)&&!d.is("body")&&this.scrollIntoParent(d,a,1),d.is("html")){var e=d.getWindow();try{var c=e.$.frameElement;c&&(d=new CKEDITOR.dom.element(c))}catch(b){}}while(d=d.getParent())}},scrollIntoParent:function(a,d,e){var c,b,g,f;function k(c,d){/body|html/.test(a.getName())?
a.getWindow().$.scrollBy(c,d):(a.$.scrollLeft+=c,a.$.scrollTop+=d)}function h(c,a){var d={x:0,y:0};if(!c.is(m?"body":"html")){var e=c.$.getBoundingClientRect();d.x=e.left;d.y=e.top}e=c.getWindow();e.equals(a)||(e=h(CKEDITOR.dom.element.get(e.$.frameElement),a),d.x+=e.x,d.y+=e.y);return d}function u(c,a){return parseInt(c.getComputedStyle("margin-"+a)||0,10)||0}!a&&(a=this.getWindow());g=a.getDocument();var m="BackCompat"==g.$.compatMode;a instanceof CKEDITOR.dom.window&&(a=m?g.getBody():g.getDocumentElement());
CKEDITOR.env.webkit&&(g=this.getEditor(!1))&&(g._.previousScrollTop=null);g=a.getWindow();b=h(this,g);var v=h(a,g),A=this.$.offsetHeight;c=this.$.offsetWidth;var z=a.$.clientHeight,w=a.$.clientWidth;g=b.x-u(this,"left")-v.x||0;f=b.y-u(this,"top")-v.y||0;c=b.x+c+u(this,"right")-(v.x+w)||0;b=b.y+A+u(this,"bottom")-(v.y+z)||0;(0>f||0<b)&&k(0,!0===d?f:!1===d?b:0>f?f:b);e&&(0>g||0<c)&&k(0>g?g:c,0)},setState:function(a,d,e){d=d||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(d+"_on");this.removeClass(d+
"_off");this.removeClass(d+"_disabled");e&&this.setAttribute("aria-pressed",!0);e&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(d+"_disabled");this.removeClass(d+"_off");this.removeClass(d+"_on");e&&this.setAttribute("aria-disabled",!0);e&&this.removeAttribute("aria-pressed");break;default:this.addClass(d+"_off"),this.removeClass(d+"_on"),this.removeClass(d+"_disabled"),e&&this.removeAttribute("aria-pressed"),e&&this.removeAttribute("aria-disabled")}},
getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(d){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a,d){var e=this.$.attributes;d=d||{};for(var c=0;c<e.length;c++){var b=e[c],g=b.nodeName.toLowerCase(),f;if(!(g in d))if("checked"==g&&(f=this.getAttribute(g)))a.setAttribute(g,f);else if(!CKEDITOR.env.ie||this.hasAttribute(g))f=this.getAttribute(g),null===f&&(f=b.nodeValue),a.setAttribute(g,f)}""!==this.$.style.cssText&&
(a.$.style.cssText=this.$.style.cssText)},renameNode:function(a){if(this.getName()!=a){var d=this.getDocument();a=new CKEDITOR.dom.element(a,d);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(d,e){var c=d.childNodes;if(0<=e&&e<c.length)return c[e]}return function(d){var e=this.$;if(d.slice)for(d=d.slice();0<d.length&&e;)e=a(e,
d.shift());else e=a(e,d);return e?new CKEDITOR.dom.node(e):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){function a(d){return d.type==CKEDITOR.NODE_ELEMENT&&d.hasClass("cke_enable_context_menu")}this.on("contextmenu",function(d){d.data.getTarget().getAscendant(a,!0)||d.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,d){a="data-"+a;if(void 0===d)return this.getAttribute(a);!1===d?this.removeAttribute(a):this.setAttribute(a,d);return null},getEditor:function(a){var d=CKEDITOR.instances,e,c,b;a=a||void 0===a;for(e in d)if(c=d[e],c.element.equals(this)&&c.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||!a&&(b=c.editable())&&(b.equals(this)||b.contains(this)))return c;return null},find:function(a){var d=h(this);a=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(f(this,
a)));d();return a},findOne:function(a){var d=h(this);a=this.$.querySelector(f(this,a));d();return a?new CKEDITOR.dom.element(a):null},forEach:function(a,d,e){if(!(e||d&&this.type!=d))var c=a(this);if(!1!==c){e=this.getChildren();for(var b=0;b<e.count();b++)c=e.getItem(b),c.type==CKEDITOR.NODE_ELEMENT?c.forEach(a,d):d&&c.type!=d||a(c)}},fireEventHandler:function(a,d){var e="on"+a,c=this.$;if(CKEDITOR.env.ie&&9>CKEDITOR.env.version){var b=c.ownerDocument.createEventObject(),g;for(g in d)b[g]=d[g];c.fireEvent(e,
b)}else c[c[a]?a:e](d)},isDetached:function(){var a=this.getDocument(),d=a.getDocumentElement();return d.equals(this)||d.contains(this)?!CKEDITOR.env.ie||8<CKEDITOR.env.version&&!CKEDITOR.env.quirks?!a.$.defaultView:!1:!0}});var k={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,d,e){"number"==typeof d&&(!e||CKEDITOR.env.ie&&CKEDITOR.env.quirks||
(d-=a.call(this,b)),this.setStyle(b,d+"px"))};CKEDITOR.dom.element.prototype.getSize=function(b,d){var e=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(b)],this.$["client"+CKEDITOR.tools.capitalize(b)])||0;d&&(e-=a.call(this,b));return e}})();CKEDITOR.dom.documentFragment=function(b){b=b||CKEDITOR.document;this.$=b.type==CKEDITOR.NODE_DOCUMENT?b.$.createDocumentFragment():b};CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,
insertAfterNode:function(b){b=b.$;b.parentNode.insertBefore(this.$,b.nextSibling)},getHtml:function(){var b=new CKEDITOR.dom.element("div");this.clone(1,1).appendTo(b);return b.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});CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,
CKEDITOR.dom.document.prototype,!0,{find:1,findOne:1});(function(){function b(c,a){var d=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(d.collapsed)return this.end(),null;d.optimize()}var e,b=d.startContainer;e=d.endContainer;var g=d.startOffset,f=d.endOffset,n,k=this.guard,h=this.type,l=c?"getPreviousSourceNode":"getNextSourceNode";if(!c&&!this._.guardLTR){var m=e.type==CKEDITOR.NODE_ELEMENT?e:e.getParent(),C=e.type==CKEDITOR.NODE_ELEMENT?e.getChild(f):e.getNext();this._.guardLTR=
function(c,a){return(!a||!m.equals(c))&&(!C||!c.equals(C))&&(c.type!=CKEDITOR.NODE_ELEMENT||!a||!c.equals(d.root))}}if(c&&!this._.guardRTL){var G=b.type==CKEDITOR.NODE_ELEMENT?b:b.getParent(),E=b.type==CKEDITOR.NODE_ELEMENT?g?b.getChild(g-1):null:b.getPrevious();this._.guardRTL=function(c,a){return(!a||!G.equals(c))&&(!E||!c.equals(E))&&(c.type!=CKEDITOR.NODE_ELEMENT||!a||!c.equals(d.root))}}var J=c?this._.guardRTL:this._.guardLTR;n=k?function(c,a){return!1===J(c,a)?!1:k(c,a)}:J;this.current?e=this.current[l](!1,
h,n):(c?e.type==CKEDITOR.NODE_ELEMENT&&(e=0<f?e.getChild(f-1):!1===n(e,!0)?null:e.getPreviousSourceNode(!0,h,n)):(e=b,e.type==CKEDITOR.NODE_ELEMENT&&((e=e.getChild(g))||(e=!1===n(b,!0)?null:b.getNextSourceNode(!0,h,n)))),e&&!1===n(e)&&(e=null));for(;e&&!this._.end;){this.current=e;if(!this.evaluator||!1!==this.evaluator(e)){if(!a)return e}else if(a&&this.evaluator)return!1;e=e[l](!1,h,n)}this.end();return this.current=null}function h(c){for(var a,d=null;a=b.call(this,c);)d=a;return d}CKEDITOR.dom.walker=
CKEDITOR.tools.createClass({$:function(c){this.range=c;this._={}},proto:{end:function(){this._.end=1},next:function(){return b.call(this)},previous:function(){return b.call(this,1)},checkForward:function(){return!1!==b.call(this,0,1)},checkBackward:function(){return!1!==b.call(this,1,1)},lastForward:function(){return h.call(this)},lastBackward:function(){return h.call(this,1)},reset:function(){delete this.current;this._={}}}});var f={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(c){return"none"!=this.getComputedStyle("float")||this.getComputedStyle("position")in a||!f[this.getComputedStyle("display")]?!!(this.is(CKEDITOR.dtd.$block)||c&&this.is(c)):!0};CKEDITOR.dom.walker.blockBoundary=function(c){return function(a){return!(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary(c))}};CKEDITOR.dom.walker.listItemBoundary=
function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(c,a){function d(c){return c&&c.getName&&"span"==c.getName()&&c.data("cke-bookmark")}return function(e){var b,g;b=e&&e.type!=CKEDITOR.NODE_ELEMENT&&(g=e.getParent())&&d(g);b=c?b:b||d(e);return!!(a^b)}};CKEDITOR.dom.walker.whitespaces=function(c){return function(a){var d;a&&a.type==CKEDITOR.NODE_TEXT&&(d=!CKEDITOR.tools.trim(a.getText())||CKEDITOR.env.webkit&&a.getText()==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE);
return!!(c^d)}};CKEDITOR.dom.walker.invisible=function(c){var a=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.env.webkit?1:0;return function(e){a(e)?e=1:(e.type==CKEDITOR.NODE_TEXT&&(e=e.getParent()),e=e.$.offsetWidth<=d);return!!(c^e)}};CKEDITOR.dom.walker.nodeType=function(c,a){return function(d){return!!(a^d.type==c)}};CKEDITOR.dom.walker.bogus=function(c){function a(c){return!m(c)&&!k(c)}return function(d){var e=CKEDITOR.env.needsBrFiller?d.is&&d.is("br"):d.getText&&g.test(d.getText());e&&(e=d.getParent(),
d=d.getNext(a),e=e.isBlockBoundary()&&(!d||d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary()));return!!(c^e)}};CKEDITOR.dom.walker.temp=function(c){return function(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());a=a&&a.hasAttribute("data-cke-temp");return!!(c^a)}};var g=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,m=CKEDITOR.dom.walker.whitespaces(),k=CKEDITOR.dom.walker.bookmark(),l=CKEDITOR.dom.walker.temp(),d=function(c){return k(c)||m(c)||c.type==CKEDITOR.NODE_ELEMENT&&c.is(CKEDITOR.dtd.$inline)&&!c.is(CKEDITOR.dtd.$empty)};
CKEDITOR.dom.walker.ignored=function(c){return function(a){a=m(a)||k(a)||l(a);return!!(c^a)}};var e=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(c){return function(a){for(var d=0,b=a.getChildCount();d<b;++d)if(!e(a.getChild(d)))return!!c;return!c}};var c=CKEDITOR.dom.walker.empty(),n=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(c){var a={},d;for(d in c)CKEDITOR.dtd[d]["#"]&&(a[d]=1);return a}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=
function(a){return function(d){d=e(d)?!1:d.type==CKEDITOR.NODE_TEXT||d.type==CKEDITOR.NODE_ELEMENT&&(d.is(CKEDITOR.dtd.$inline)||d.is("hr")||"false"==d.getAttribute("contenteditable")||!CKEDITOR.env.needsBrFiller&&d.is(n)&&c(d))?!0:!1;return!!(a^d)}};CKEDITOR.dom.element.prototype.getBogus=function(){var c=this;do c=c.getPreviousSourceNode();while(d(c));return c&&(CKEDITOR.env.needsBrFiller?c.is&&c.is("br"):c.getText&&g.test(c.getText()))?c:!1}})();CKEDITOR.dom.range=function(b){this.endOffset=this.endContainer=
this.startOffset=this.startContainer=null;this.collapsed=!0;var h=b instanceof CKEDITOR.dom.document;this.document=h?b:b.getDocument();this.root=h?b.getBody():b};(function(){function b(c){c.collapsed=c.startContainer&&c.endContainer&&c.startContainer.equals(c.endContainer)&&c.startOffset==c.endOffset}function h(c,a,d,e,b){function g(c,a,d,e){var f=d?c.getPrevious():c.getNext();if(e&&k)return f;m||e?a.append(c.clone(!0,b),d):(c.remove(),l&&a.append(c,d));return f}function f(){var c,a,d,e=Math.min(I.length,
K.length);for(c=0;c<e;c++)if(a=I[c],d=K[c],!a.equals(d))return c;return c-1}function h(){var a=F-1,d=J&&H&&!w.equals(x);a<R-1||a<S-1||d?(d?c.moveToPosition(x,CKEDITOR.POSITION_BEFORE_START):S==a+1&&E?c.moveToPosition(K[a],CKEDITOR.POSITION_BEFORE_END):c.moveToPosition(K[a+1],CKEDITOR.POSITION_BEFORE_START),e&&(a=I[a+1])&&a.type==CKEDITOR.NODE_ELEMENT&&(d=CKEDITOR.dom.element.createFromHtml('\x3cspan data-cke-bookmark\x3d"1" style\x3d"display:none"\x3e\x26nbsp;\x3c/span\x3e',c.document),d.insertAfter(a),
a.mergeSiblings(!1),c.moveToBookmark({startNode:d}))):c.collapse(!0)}c.optimizeBookmark();var k=0===a,l=1==a,m=2==a;a=m||l;var w=c.startContainer,x=c.endContainer,B=c.startOffset,C=c.endOffset,G,E,J,H,D,M;if(m&&x.type==CKEDITOR.NODE_TEXT&&(w.equals(x)||w.type===CKEDITOR.NODE_ELEMENT&&w.getFirst().equals(x)))d.append(c.document.createText(x.substring(B,C)));else{x.type==CKEDITOR.NODE_TEXT?m?M=!0:x=x.split(C):0<x.getChildCount()?C>=x.getChildCount()?(x=x.getChild(C-1),E=!0):x=x.getChild(C):H=E=!0;w.type==
CKEDITOR.NODE_TEXT?m?D=!0:w.split(B):0<w.getChildCount()?0===B?(w=w.getChild(B),G=!0):w=w.getChild(B-1):J=G=!0;for(var I=w.getParents(),K=x.getParents(),F=f(),R=I.length-1,S=K.length-1,N=d,Y,U,Z,ga=-1,O=F;O<=R;O++){U=I[O];Z=U.getNext();for(O!=R||U.equals(K[O])&&R<S?a&&(Y=N.append(U.clone(0,b))):G?g(U,N,!1,J):D&&N.append(c.document.createText(U.substring(B)));Z;){if(Z.equals(K[O])){ga=O;break}Z=g(Z,N)}N=Y}N=d;for(O=F;O<=S;O++)if(d=K[O],Z=d.getPrevious(),d.equals(I[O]))a&&(N=N.getChild(0));else{O!=
S||d.equals(I[O])&&S<R?a&&(Y=N.append(d.clone(0,b))):E?g(d,N,!1,H):M&&N.append(c.document.createText(d.substring(0,C)));if(O>ga)for(;Z;)Z=g(Z,N,!0);N=Y}m||h()}}function f(){var c=!1,a=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(!0),e=CKEDITOR.dom.walker.bogus();return function(b){return d(b)||a(b)?!0:e(b)&&!c?c=!0:b.type==CKEDITOR.NODE_TEXT&&(b.hasAscendant("pre")||CKEDITOR.tools.trim(b.getText()).length)||b.type==CKEDITOR.NODE_ELEMENT&&!b.is(m)?!1:!0}}function a(c){var a=CKEDITOR.dom.walker.whitespaces(),
d=CKEDITOR.dom.walker.bookmark(1);return function(e){return d(e)||a(e)?!0:!c&&k(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$removeEmpty)}}function g(c){return function(){var a;return this[c?"getPreviousNode":"getNextNode"](function(c){!a&&e(c)&&(a=c);return d(c)&&!(k(c)&&c.equals(a))})}}var m={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},k=CKEDITOR.dom.walker.bogus(),
l=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,d=CKEDITOR.dom.walker.editable(),e=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var c=new CKEDITOR.dom.range(this.root);c._setStartContainer(this.startContainer);c.startOffset=this.startOffset;c._setEndContainer(this.endContainer);c.endOffset=this.endOffset;c.collapsed=this.collapsed;return c},collapse:function(c){c?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),
this.startOffset=this.endOffset);this.collapsed=!0},cloneContents:function(c){var a=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||h(this,2,a,!1,"undefined"==typeof c?!0:c);return a},deleteContents:function(c){this.collapsed||h(this,0,null,c)},extractContents:function(c,a){var d=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||h(this,1,d,c,"undefined"==typeof a?!0:a);return d},equals:function(c){return this.startOffset===c.startOffset&&this.endOffset===c.endOffset&&
this.startContainer.equals(c.startContainer)&&this.endContainer.equals(c.endContainer)},createBookmark:function(c){function a(c){return c.getAscendant(function(c){var a;if(a=c.data&&c.data("cke-temp"))a=-1===CKEDITOR.tools.array.indexOf(["cke_copybin","cke_pastebin"],c.getAttribute("id"));return a},!0)}var d=this.startContainer,e=this.endContainer,b=this.collapsed,g,f,h,k;g=this.document.createElement("span");g.data("cke-bookmark",1);g.setStyle("display","none");g.setHtml("\x26nbsp;");c&&(h="cke_bm_"+
CKEDITOR.tools.getNextNumber(),g.setAttribute("id",h+(b?"C":"S")));b||(f=g.clone(),f.setHtml("\x26nbsp;"),c&&f.setAttribute("id",h+"E"),k=this.clone(),a(e)&&(e=a(e),k.moveToPosition(e,CKEDITOR.POSITION_AFTER_END)),k.collapse(),k.insertNode(f));k=this.clone();a(d)&&(e=a(d),k.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START));k.collapse(!0);k.insertNode(g);f?(this.setStartAfter(g),this.setEndBefore(f)):this.moveToPosition(g,CKEDITOR.POSITION_AFTER_END);return{startNode:c?h+(b?"C":"S"):g,endNode:c?h+
"E":f,serializable:c,collapsed:b}},createBookmark2:function(){function c(c){var a=c.container,e=c.offset,b;b=a;var g=e;b=b.type!=CKEDITOR.NODE_ELEMENT||0===g||g==b.getChildCount()?0:b.getChild(g-1).type==CKEDITOR.NODE_TEXT&&b.getChild(g).type==CKEDITOR.NODE_TEXT;b&&(a=a.getChild(e-1),e=a.getLength());if(a.type==CKEDITOR.NODE_ELEMENT&&0<e){a:{for(b=a;e--;)if(g=b.getChild(e).getIndex(!0),0<=g){e=g;break a}e=-1}e+=1}if(a.type==CKEDITOR.NODE_TEXT){b=a;for(g=0;(b=b.getPrevious())&&b.type==CKEDITOR.NODE_TEXT;)g+=
b.getText().replace(CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE,"").length;b=g;a.isEmpty()?(g=a.getPrevious(d),b?(e=b,a=g?g.getNext():a.getParent().getFirst()):(a=a.getParent(),e=g?g.getIndex(!0)+1:0)):e+=b}c.container=a;c.offset=e}function a(c,d){var e=d.getCustomData("cke-fillingChar");if(e){var b=c.container;e.equals(b)&&(c.offset-=CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE.length,0>=c.offset&&(c.offset=b.getIndex(),c.container=b.getParent()))}}var d=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,
!0);return function(d){var e=this.collapsed,b={container:this.startContainer,offset:this.startOffset},g={container:this.endContainer,offset:this.endOffset};d&&(c(b),a(b,this.root),e||(c(g),a(g,this.root)));return{start:b.container.getAddress(d),end:e?null:g.container.getAddress(d),startOffset:b.offset,endOffset:g.offset,normalized:d,collapsed:e,is2:!0}}}(),moveToBookmark:function(c){if(c.is2){var a=this.document.getByAddress(c.start,c.normalized),d=c.startOffset,e=c.end&&this.document.getByAddress(c.end,
c.normalized);c=c.endOffset;this.setStart(a,d);e?this.setEnd(e,c):this.collapse(!0)}else a=(d=c.serializable)?this.document.getById(c.startNode):c.startNode,c=d?this.document.getById(c.endNode):c.endNode,this.setStartBefore(a),a.remove(),c?(this.setEndBefore(c),c.remove()):this.collapse(!0)},getBoundaryNodes:function(){var c=this.startContainer,a=this.endContainer,d=this.startOffset,e=this.endOffset,b;if(c.type==CKEDITOR.NODE_ELEMENT)if(b=c.getChildCount(),b>d)c=c.getChild(d);else if(1>b)c=c.getPreviousSourceNode();
else{for(c=c.$;c.lastChild;)c=c.lastChild;c=new CKEDITOR.dom.node(c);c=c.getNextSourceNode()||c}if(a.type==CKEDITOR.NODE_ELEMENT)if(b=a.getChildCount(),b>e)a=a.getChild(e).getPreviousSourceNode(!0);else if(1>b)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a)}c.getPosition(a)&CKEDITOR.POSITION_FOLLOWING&&(c=a);return{startNode:c,endNode:a}},getCommonAncestor:function(c,a){var d=this.startContainer,e=this.endContainer,d=d.equals(e)?c&&d.type==CKEDITOR.NODE_ELEMENT&&
this.startOffset==this.endOffset-1?d.getChild(this.startOffset):d:d.getCommonAncestor(e);return a&&!d.is?d.getParent():d},optimize:function(){var c=this.startContainer,a=this.startOffset;c.type!=CKEDITOR.NODE_ELEMENT&&(a?a>=c.getLength()&&this.setStartAfter(c):this.setStartBefore(c));c=this.endContainer;a=this.endOffset;c.type!=CKEDITOR.NODE_ELEMENT&&(a?a>=c.getLength()&&this.setEndAfter(c):this.setEndBefore(c))},optimizeBookmark:function(){var c=this.startContainer,a=this.endContainer;c.is&&c.is("span")&&
c.data("cke-bookmark")&&this.setStartAt(c,CKEDITOR.POSITION_BEFORE_START);a&&a.is&&a.is("span")&&a.data("cke-bookmark")&&this.setEndAt(a,CKEDITOR.POSITION_AFTER_END)},trim:function(c,a){var d=this.startContainer,e=this.startOffset,b=this.collapsed;if((!c||b)&&d&&d.type==CKEDITOR.NODE_TEXT){if(e)if(e>=d.getLength())e=d.getIndex()+1,d=d.getParent();else{var g=d.split(e),e=d.getIndex()+1,d=d.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(g,this.endOffset-this.startOffset):d.equals(this.endContainer)&&
(this.endOffset+=1)}else e=d.getIndex(),d=d.getParent();this.setStart(d,e);if(b){this.collapse(!0);return}}d=this.endContainer;e=this.endOffset;a||b||!d||d.type!=CKEDITOR.NODE_TEXT||(e?(e>=d.getLength()||d.split(e),e=d.getIndex()+1):e=d.getIndex(),d=d.getParent(),this.setEnd(d,e))},enlarge:function(c,a){function d(c){return c&&c.type==CKEDITOR.NODE_ELEMENT&&c.hasAttribute("contenteditable")?null:c}var e=new RegExp(/[^\s\ufeff]/);switch(c){case CKEDITOR.ENLARGE_INLINE:var b=1;case CKEDITOR.ENLARGE_ELEMENT:var g=
function(c,a){var d=new CKEDITOR.dom.range(k);d.setStart(c,a);d.setEndAt(k,CKEDITOR.POSITION_BEFORE_END);var d=new CKEDITOR.dom.walker(d),b;for(d.guard=function(c){return!(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary())};b=d.next();){if(b.type!=CKEDITOR.NODE_TEXT)return!1;G=b!=c?b.getText():b.substring(a);if(e.test(G))return!1}return!0};if(this.collapsed)break;var f=this.getCommonAncestor(),k=this.root,h,l,m,w,x,B=!1,C,G;C=this.startContainer;var E=this.startOffset;C.type==CKEDITOR.NODE_TEXT?
(E&&(C=!CKEDITOR.tools.trim(C.substring(0,E)).length&&C,B=!!C),C&&((w=C.getPrevious())||(m=C.getParent()))):(E&&(w=C.getChild(E-1)||C.getLast()),w||(m=C));for(m=d(m);m||w;){if(m&&!w){!x&&m.equals(f)&&(x=!0);if(b?m.isBlockBoundary():!k.contains(m))break;B&&"inline"==m.getComputedStyle("display")||(B=!1,x?h=m:this.setStartBefore(m));w=m.getPrevious()}for(;w;)if(C=!1,w.type==CKEDITOR.NODE_COMMENT)w=w.getPrevious();else{if(w.type==CKEDITOR.NODE_TEXT)G=w.getText(),e.test(G)&&(w=null),C=/[\s\ufeff]$/.test(G);
else if((w.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||a&&w.is("br"))&&!w.data("cke-bookmark"))if(B&&CKEDITOR.dtd.$removeEmpty[w.getName()]){G=w.getText();if(e.test(G))w=null;else for(var E=w.$.getElementsByTagName("*"),J=0,H;H=E[J++];)if(!CKEDITOR.dtd.$removeEmpty[H.nodeName.toLowerCase()]){w=null;break}w&&(C=!!G.length)}else w=null;C&&(B?x?h=m:m&&this.setStartBefore(m):B=!0);if(w){C=w.getPrevious();if(!m&&!C){m=w;w=null;break}w=C}else m=null}m&&(m=d(m.getParent()))}C=this.endContainer;E=this.endOffset;
m=w=null;x=B=!1;C.type==CKEDITOR.NODE_TEXT?CKEDITOR.tools.trim(C.substring(E)).length?B=!0:(B=!C.getLength(),E==C.getLength()?(w=C.getNext())||(m=C.getParent()):g(C,E)&&(m=C.getParent())):(w=C.getChild(E))||(m=C);for(;m||w;){if(m&&!w){!x&&m.equals(f)&&(x=!0);if(b?m.isBlockBoundary():!k.contains(m))break;B&&"inline"==m.getComputedStyle("display")||(B=!1,x?l=m:m&&this.setEndAfter(m));w=m.getNext()}for(;w;){C=!1;if(w.type==CKEDITOR.NODE_TEXT)G=w.getText(),g(w,0)||(w=null),C=/^[\s\ufeff]/.test(G);else if(w.type==
CKEDITOR.NODE_ELEMENT){if((0<w.$.offsetWidth||a&&w.is("br"))&&!w.data("cke-bookmark"))if(B&&CKEDITOR.dtd.$removeEmpty[w.getName()]){G=w.getText();if(e.test(G))w=null;else for(E=w.$.getElementsByTagName("*"),J=0;H=E[J++];)if(!CKEDITOR.dtd.$removeEmpty[H.nodeName.toLowerCase()]){w=null;break}w&&(C=!!G.length)}else w=null}else C=1;C&&B&&(x?l=m:this.setEndAfter(m));if(w){C=w.getNext();if(!m&&!C){m=w;w=null;break}w=C}else m=null}m&&(m=d(m.getParent()))}h&&l&&(f=h.contains(l)?l:h,this.setStartBefore(f),
this.setEndAfter(f));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:m=new CKEDITOR.dom.range(this.root);k=this.root;m.setStartAt(k,CKEDITOR.POSITION_AFTER_START);m.setEnd(this.startContainer,this.startOffset);m=new CKEDITOR.dom.walker(m);var D,M,I=CKEDITOR.dom.walker.blockBoundary(c==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),K=null,F=function(c){if(c.type==CKEDITOR.NODE_ELEMENT&&"false"==c.getAttribute("contenteditable"))if(K){if(K.equals(c)){K=null;return}}else K=
c;else if(K)return;var a=I(c);a||(D=c);return a},b=function(c){var a=F(c);!a&&c.is&&c.is("br")&&(M=c);return a};m.guard=F;m=m.lastBackward();D=D||k;this.setStartAt(D,!D.is("br")&&(!m&&this.checkStartOfBlock()||m&&D.contains(m))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(c==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){m=this.clone();m=new CKEDITOR.dom.walker(m);var R=CKEDITOR.dom.walker.whitespaces(),S=CKEDITOR.dom.walker.bookmark();m.evaluator=function(c){return!R(c)&&!S(c)};if((m=m.previous())&&
m.type==CKEDITOR.NODE_ELEMENT&&m.is("br"))break}m=this.clone();m.collapse();m.setEndAt(k,CKEDITOR.POSITION_BEFORE_END);m=new CKEDITOR.dom.walker(m);m.guard=c==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?b:F;D=K=M=null;m=m.lastForward();D=D||k;this.setEndAt(D,!m&&this.checkEndOfBlock()||m&&D.contains(m)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);M&&this.setEndAfter(M)}},shrink:function(c,a,d){var e="boolean"===typeof d?d:d&&"boolean"===typeof d.shrinkOnBlockBoundary?d.shrinkOnBlockBoundary:
!0,b=d&&d.skipBogus;if(!this.collapsed){c=c||CKEDITOR.SHRINK_TEXT;var g=this.clone(),f=this.startContainer,k=this.endContainer,h=this.startOffset,m=this.endOffset,l=d=1;f&&f.type==CKEDITOR.NODE_TEXT&&(h?h>=f.getLength()?g.setStartAfter(f):(g.setStartBefore(f),d=0):g.setStartBefore(f));k&&k.type==CKEDITOR.NODE_TEXT&&(m?m>=k.getLength()?g.setEndAfter(k):(g.setEndAfter(k),l=0):g.setEndBefore(k));var g=new CKEDITOR.dom.walker(g),w=CKEDITOR.dom.walker.bookmark(),x=CKEDITOR.dom.walker.bogus();g.evaluator=
function(a){return a.type==(c==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var B;g.guard=function(a,d){if(b&&x(a)||w(a))return!0;if(c==CKEDITOR.SHRINK_ELEMENT&&a.type==CKEDITOR.NODE_TEXT||d&&a.equals(B)||!1===e&&a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary()||a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable"))return!1;d||a.type!=CKEDITOR.NODE_ELEMENT||(B=a);return!0};d&&(f=g[c==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(f,a?CKEDITOR.POSITION_AFTER_START:
CKEDITOR.POSITION_BEFORE_START);l&&(g.reset(),(g=g[c==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(g,a?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END));return!(!d&&!l)}},insertNode:function(c){this.optimizeBookmark();this.trim(!1,!0);var a=this.startContainer,d=a.getChild(this.startOffset);d?c.insertBefore(d):a.append(c);c.getParent()&&c.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(c)},moveToPosition:function(c,a){this.setStartAt(c,
a);this.collapse(!0)},moveToRange:function(c){this.setStart(c.startContainer,c.startOffset);this.setEnd(c.endContainer,c.endOffset)},selectNodeContents:function(c){this.setStart(c,0);this.setEnd(c,c.type==CKEDITOR.NODE_TEXT?c.getLength():c.getChildCount())},setStart:function(c,a){c.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[c.getName()]&&(a=c.getIndex(),c=c.getParent());this._setStartContainer(c);this.startOffset=a;this.endContainer||(this._setEndContainer(c),this.endOffset=a);b(this)},setEnd:function(c,
a){c.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[c.getName()]&&(a=c.getIndex()+1,c=c.getParent());this._setEndContainer(c);this.endOffset=a;this.startContainer||(this._setStartContainer(c),this.startOffset=a);b(this)},setStartAfter:function(c){this.setStart(c.getParent(),c.getIndex()+1)},setStartBefore:function(c){this.setStart(c.getParent(),c.getIndex())},setEndAfter:function(c){this.setEnd(c.getParent(),c.getIndex()+1)},setEndBefore:function(c){this.setEnd(c.getParent(),c.getIndex())},setStartAt:function(c,
a){switch(a){case CKEDITOR.POSITION_AFTER_START:this.setStart(c,0);break;case CKEDITOR.POSITION_BEFORE_END:c.type==CKEDITOR.NODE_TEXT?this.setStart(c,c.getLength()):this.setStart(c,c.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(c);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(c)}b(this)},setEndAt:function(c,a){switch(a){case CKEDITOR.POSITION_AFTER_START:this.setEnd(c,0);break;case CKEDITOR.POSITION_BEFORE_END:c.type==CKEDITOR.NODE_TEXT?this.setEnd(c,
c.getLength()):this.setEnd(c,c.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(c);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(c)}b(this)},fixBlock:function(c,a){var d=this.createBookmark(),e=this.document.createElement(a);this.collapse(c);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(e);e.trim();this.insertNode(e);var b=e.getBogus();b&&b.remove();e.appendBogus();this.moveToBookmark(d);return e},splitBlock:function(c,a){var d=
new CKEDITOR.dom.elementPath(this.startContainer,this.root),e=new CKEDITOR.dom.elementPath(this.endContainer,this.root),b=d.block,g=e.block,f=null;if(!d.blockLimit.equals(e.blockLimit))return null;"br"!=c&&(b||(b=this.fixBlock(!0,c),g=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block),g||(g=this.fixBlock(!1,c)));d=b&&this.checkStartOfBlock();e=g&&this.checkEndOfBlock();this.deleteContents();b&&b.equals(g)&&(e?(f=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(g,
CKEDITOR.POSITION_AFTER_END),g=null):d?(f=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START),b=null):(g=this.splitElement(b,a||!1),b.is("ul","ol")||b.appendBogus()));return{previousBlock:b,nextBlock:g,wasStartOfBlock:d,wasEndOfBlock:e,elementPath:f}},splitElement:function(c,a){if(!this.collapsed)return null;this.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);var d=this.extractContents(!1,a||!1),e=c.clone(!1,a||!1);d.appendTo(e);e.insertAfter(c);
this.moveToPosition(c,CKEDITOR.POSITION_AFTER_END);return e},removeEmptyBlocksAtEnd:function(){function c(c){return function(e){return a(e)||d(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.isEmptyInlineRemoveable()||c.is("table")&&e.is("caption")?!1:!0}}var a=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(!1);return function(a){for(var d=this.createBookmark(),e=this[a?"endPath":"startPath"](),b=e.block||e.blockLimit,g;b&&!b.equals(e.root)&&!b.getFirst(c(b));)g=b.getParent(),this[a?"setEndAt":
"setStartAt"](b,CKEDITOR.POSITION_AFTER_END),b.remove(1),b=g;this.moveToBookmark(d)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(c,d){var e=d==CKEDITOR.START,b=this.clone();b.collapse(e);b[e?"setStartAt":"setEndAt"](c,e?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);b=new CKEDITOR.dom.walker(b);b.evaluator=a(e);return b[e?
"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var c=this.startContainer,a=this.startOffset;CKEDITOR.env.ie&&a&&c.type==CKEDITOR.NODE_TEXT&&(c=CKEDITOR.tools.ltrim(c.substring(0,a)),l.test(c)&&this.trim(0,1));this.trim();c=new CKEDITOR.dom.elementPath(this.startContainer,this.root);a=this.clone();a.collapse(!0);a.setStartAt(c.block||c.blockLimit,CKEDITOR.POSITION_AFTER_START);c=new CKEDITOR.dom.walker(a);c.evaluator=f();return c.checkBackward()},checkEndOfBlock:function(){var c=this.endContainer,
a=this.endOffset;CKEDITOR.env.ie&&c.type==CKEDITOR.NODE_TEXT&&(c=CKEDITOR.tools.rtrim(c.substring(a)),l.test(c)&&this.trim(1,0));this.trim();c=new CKEDITOR.dom.elementPath(this.endContainer,this.root);a=this.clone();a.collapse(!1);a.setEndAt(c.block||c.blockLimit,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(a);c.evaluator=f();return c.checkForward()},getPreviousNode:function(c,a,d){var e=this.clone();e.collapse(1);e.setStartAt(d||this.root,CKEDITOR.POSITION_AFTER_START);d=new CKEDITOR.dom.walker(e);
d.evaluator=c;d.guard=a;return d.previous()},getNextNode:function(c,a,d){var e=this.clone();e.collapse();e.setEndAt(d||this.root,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(e);d.evaluator=c;d.guard=a;return d.next()},checkReadOnly:function(){function c(c,a){for(;c;){if(c.type==CKEDITOR.NODE_ELEMENT){if("false"==c.getAttribute("contentEditable")&&!c.data("cke-editable"))return 0;if(c.is("html")||"true"==c.getAttribute("contentEditable")&&(c.contains(a)||c.equals(a)))break}c=c.getParent()}return 1}
return function(){var a=this.startContainer,d=this.endContainer;return!(c(a,d)&&c(d,a))}}(),moveToElementEditablePosition:function(c,a){if(c.type==CKEDITOR.NODE_ELEMENT&&!c.isEditable(!1))return this.moveToPosition(c,a?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0;for(var d=0;c;){if(c.type==CKEDITOR.NODE_TEXT){a&&this.endContainer&&this.checkEndOfBlock()&&l.test(c.getText())?this.moveToPosition(c,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(c,a?CKEDITOR.POSITION_AFTER_END:
CKEDITOR.POSITION_BEFORE_START);d=1;break}if(c.type==CKEDITOR.NODE_ELEMENT)if(c.isEditable())this.moveToPosition(c,a?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),d=1;else if(a&&c.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(c,CKEDITOR.POSITION_BEFORE_START);else if("false"==c.getAttribute("contenteditable")&&c.is(CKEDITOR.dtd.$block))return this.setStartBefore(c),this.setEndAfter(c),!0;var b=c,g=d,f=void 0;b.type==CKEDITOR.NODE_ELEMENT&&b.isEditable(!1)&&
(f=b[a?"getLast":"getFirst"](e));g||f||(f=b[a?"getPrevious":"getNext"](e));c=f}return!!d},moveToClosestEditablePosition:function(c,a){var d,e=0,b,g,f=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];c?(d=new CKEDITOR.dom.range(this.root),d.moveToPosition(c,f[a?0:1])):d=this.clone();if(c&&!c.is(CKEDITOR.dtd.$block))e=1;else if(b=d[a?"getNextEditableNode":"getPreviousEditableNode"]())e=1,(g=b.type==CKEDITOR.NODE_ELEMENT)&&b.is(CKEDITOR.dtd.$block)&&"false"==b.getAttribute("contenteditable")?
(d.setStartAt(b,CKEDITOR.POSITION_BEFORE_START),d.setEndAt(b,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&g&&b.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(d.setEnd(b,0),d.collapse()):d.moveToPosition(b,f[a?1:0]);e&&this.moveToRange(d);return!!e},moveToElementEditStart:function(c){return this.moveToElementEditablePosition(c)},moveToElementEditEnd:function(c){return this.moveToElementEditablePosition(c,!0)},getEnclosedNode:function(){var c=this.clone();c.optimize();if(c.startContainer.type!=
CKEDITOR.NODE_ELEMENT||c.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var c=new CKEDITOR.dom.walker(c),a=CKEDITOR.dom.walker.bookmark(!1,!0),d=CKEDITOR.dom.walker.whitespaces(!0);c.evaluator=function(c){return d(c)&&a(c)};var e=c.next();c.reset();return e&&e.equals(c.previous())?e:null},getTouchedStartNode:function(){var c=this.startContainer;return this.collapsed||c.type!=CKEDITOR.NODE_ELEMENT?c:c.getChild(this.startOffset)||c},getTouchedEndNode:function(){var c=this.endContainer;return this.collapsed||
c.type!=CKEDITOR.NODE_ELEMENT?c:c.getChild(this.endOffset-1)||c},getNextEditableNode:g(),getPreviousEditableNode:g(1),_getTableElement:function(c){c=c||{td:1,th:1,tr:1,tbody:1,thead:1,tfoot:1,table:1};var a=this.getTouchedStartNode(),d=this.getTouchedEndNode(),e=a.getAscendant("table",!0),d=d.getAscendant("table",!0);return e&&!this.root.contains(e)?null:this.getEnclosedNode()?this.getEnclosedNode().getAscendant(c,!0):e&&d&&(e.equals(d)||e.contains(d)||d.contains(e))?a.getAscendant(c,!0):null},scrollIntoView:function(){var c=
new CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",this.document),a,d,e,b=this.clone();b.optimize();(e=b.startContainer.type==CKEDITOR.NODE_TEXT)?(d=b.startContainer.getText(),a=b.startContainer.split(b.startOffset),c.insertAfter(b.startContainer)):b.insertNode(c);c.scrollIntoView();e&&(b.startContainer.setText(d),a.remove());c.remove()},getClientRects:function(){function c(c,a){var d=CKEDITOR.tools.array.map(c,function(c){return c}),e=new CKEDITOR.dom.range(a.root),b,g,
f;a.startContainer instanceof CKEDITOR.dom.element&&(g=0===a.startOffset&&a.startContainer.hasAttribute("data-widget"));a.endContainer instanceof CKEDITOR.dom.element&&(f=(f=a.endOffset===(a.endContainer.getChildCount?a.endContainer.getChildCount():a.endContainer.length))&&a.endContainer.hasAttribute("data-widget"));g&&e.setStart(a.startContainer.getParent(),a.startContainer.getIndex());f&&e.setEnd(a.endContainer.getParent(),a.endContainer.getIndex()+1);if(g||f)a=e;e=a.cloneContents().find("[data-cke-widget-id]").toArray();
if(e=CKEDITOR.tools.array.map(e,function(c){var d=a.root.editor;c=c.getAttribute("data-cke-widget-id");return d.widgets.instances[c].element}))return e=CKEDITOR.tools.array.map(e,function(c){var a;a=c.getParent().hasClass("cke_widget_wrapper")?c.getParent():c;b=this.root.getDocument().$.createRange();b.setStart(a.getParent().$,a.getIndex());b.setEnd(a.getParent().$,a.getIndex()+1);a=b.getClientRects();a.widgetRect=c.getClientRect();return a},a),CKEDITOR.tools.array.forEach(e,function(c){function a(b){CKEDITOR.tools.array.forEach(d,
function(a,g){var f=CKEDITOR.tools.objectCompare(c[b],a);f||(f=CKEDITOR.tools.objectCompare(c.widgetRect,a));f&&(Array.prototype.splice.call(d,g,c.length-b,c.widgetRect),e=!0)});e||(b<d.length-1?a(b+1):d.push(c.widgetRect))}var e;a(0)}),d}function a(c,d,b){var g;d.collapsed?b.startContainer instanceof CKEDITOR.dom.element?(c=b.checkStartOfBlock(),g=new CKEDITOR.dom.text("​"),c?b.startContainer.append(g,!0):0===b.startOffset?g.insertBefore(b.startContainer.getFirst()):(b=b.startContainer.getChildren().getItem(b.startOffset-
1),g.insertAfter(b)),d.setStart(g.$,0),d.setEnd(g.$,0),c=d.getClientRects(),g.remove()):b.startContainer instanceof CKEDITOR.dom.text&&(""===b.startContainer.getText()?(b.startContainer.setText("​"),c=d.getClientRects(),b.startContainer.setText("")):c=[e(b.createBookmark())]):c=[e(b.createBookmark())];return c}function d(c,a,e){c=CKEDITOR.tools.extend({},c);a&&(c=CKEDITOR.tools.getAbsoluteRectPosition(e.document.getWindow(),c));!c.width&&(c.width=c.right-c.left);!c.height&&(c.height=c.bottom-c.top);
return c}function e(c){var a=c.startNode;c=c.endNode;var d;a.setText("​");a.removeStyle("display");c?(c.setText("​"),c.removeStyle("display"),d=[a.getClientRect(),c.getClientRect()],c.remove()):d=[a.getClientRect(),a.getClientRect()];a.remove();return{right:Math.max(d[0].right,d[1].right),bottom:Math.max(d[0].bottom,d[1].bottom),left:Math.min(d[0].left,d[1].left),top:Math.min(d[0].top,d[1].top),width:Math.abs(d[0].left-d[1].left),height:Math.max(d[0].bottom,d[1].bottom)-Math.min(d[0].top,d[1].top)}}
return void 0!==this.document.getSelection?function(e){var b=this.root.getDocument().$.createRange(),g;b.setStart(this.startContainer.$,this.startOffset);b.setEnd(this.endContainer.$,this.endOffset);g=b.getClientRects();g=c(g,this);g.length||(g=a(g,b,this));return CKEDITOR.tools.array.map(g,function(c){return d(c,e,this)},this)}:function(c){return[d(e(this.createBookmark()),c,this)]}}(),_setStartContainer:function(c){this.startContainer=c},_setEndContainer:function(c){this.endContainer=c},_find:function(c,
a){var d=this.getCommonAncestor(),e=this.getBoundaryNodes(),b=[],g,f,k,h;if(d&&d.find)for(f=d.find(c),g=0;g<f.count();g++)if(d=f.getItem(g),a||!d.isReadOnly())k=d.getPosition(e.startNode)&CKEDITOR.POSITION_FOLLOWING||e.startNode.equals(d),h=d.getPosition(e.endNode)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IS_CONTAINED||e.endNode.equals(d),k&&h&&b.push(d);return b}};CKEDITOR.dom.range.mergeRanges=function(c){return CKEDITOR.tools.array.reduce(c,function(c,a){var d=c[c.length-1],e=!1;a=a.clone();
a.enlarge(CKEDITOR.ENLARGE_ELEMENT);if(d){var b=new CKEDITOR.dom.range(a.root),e=new CKEDITOR.dom.walker(b),g=CKEDITOR.dom.walker.whitespaces();b.setStart(d.endContainer,d.endOffset);b.setEnd(a.startContainer,a.startOffset);for(b=e.next();g(b)||a.endContainer.equals(b);)b=e.next();e=!b}e?d.setEnd(a.endContainer,a.endOffset):c.push(a);return c},[])}})();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 b(a){1>arguments.length||(this.range=a,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function h(a){var c=[];a.forEach(function(a){if("true"==a.getAttribute("contenteditable"))return c.push(a),!1},CKEDITOR.NODE_ELEMENT,!0);return c}function f(a,c,d,b){a:{null==
b&&(b=h(d));for(var g;g=b.shift();)if(g.getDtd().p){b={element:g,remaining:b};break a}b=null}if(!b)return 0;if((g=CKEDITOR.filter.instances[b.element.data("cke-filter")])&&!g.check(c))return f(a,c,d,b.remaining);c=new CKEDITOR.dom.range(b.element);c.selectNodeContents(b.element);c=c.createIterator();c.enlargeBr=a.enlargeBr;c.enforceRealBlocks=a.enforceRealBlocks;c.activeFilter=c.filter=g;a._.nestedEditable={element:b.element,container:d,remaining:b.remaining,iterator:c};return 1}function a(a,c,d){if(!c)return!1;
a=a.clone();a.collapse(!d);return a.checkBoundaryOfElement(c,d?CKEDITOR.START:CKEDITOR.END)}var g=/^[\r\n\t ]+$/,m=CKEDITOR.dom.walker.bookmark(!1,!0),k=CKEDITOR.dom.walker.whitespaces(!0),l=function(a){return m(a)&&k(a)},d={dd:1,dt:1,li:1};b.prototype={getNextParagraph:function(e){var c,b,k,h,q;e=e||"p";if(this._.nestedEditable){if(c=this._.nestedEditable.iterator.getNextParagraph(e))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,c;this.activeFilter=this.filter;if(f(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 p=this.range.clone();b=p.startPath();var u=p.endPath(),y=!p.collapsed&&a(p,b.block),v=!p.collapsed&&a(p,u.block,1);p.shrink(CKEDITOR.SHRINK_ELEMENT,!0);y&&p.setStartAt(b.block,CKEDITOR.POSITION_BEFORE_END);v&&p.setEndAt(u.block,
CKEDITOR.POSITION_AFTER_START);b=p.endContainer.hasAscendant("pre",!0)||p.startContainer.hasAscendant("pre",!0);p.enlarge(this.forceBrBreak&&!b||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);p.collapsed||(b=new CKEDITOR.dom.walker(p.clone()),u=CKEDITOR.dom.walker.bookmark(!0,!0),b.evaluator=u,this._.nextNode=b.next(),b=new CKEDITOR.dom.walker(p.clone()),b.evaluator=u,b=b.previous(),this._.lastNode=b.getNextSourceNode(!0,null,p.root),this._.lastNode&&this._.lastNode.type==
CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&(u=this.range.clone(),u.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),u.checkEndOfBlock()&&(u=new CKEDITOR.dom.elementPath(u.endContainer,u.root),this._.lastNode=(u.block||u.blockLimit).getNextSourceNode(!0))),this._.lastNode&&p.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=p.document.createText(""),this._.lastNode.insertAfter(b)),p=null);this._.started=
1;b=p}u=this._.nextNode;p=this._.lastNode;for(this._.nextNode=null;u;){var y=0,v=u.hasAscendant("pre"),A=u.type!=CKEDITOR.NODE_ELEMENT,z=0;if(A)u.type==CKEDITOR.NODE_TEXT&&g.test(u.getText())&&(A=0);else{var w=u.getName();if(CKEDITOR.dtd.$block[w]&&"false"==u.getAttribute("contenteditable")){c=u;f(this,e,c);break}else if(u.isBlockBoundary(this.forceBrBreak&&!v&&{br:1})){if("br"==w)A=1;else if(!b&&!u.getChildCount()&&"hr"!=w){c=u;k=u.equals(p);break}b&&(b.setEndAt(u,CKEDITOR.POSITION_BEFORE_START),
"br"!=w&&(this._.nextNode=u));y=1}else{if(u.getFirst()){b||(b=this.range.clone(),b.setStartAt(u,CKEDITOR.POSITION_BEFORE_START));u=u.getFirst();continue}A=1}}A&&!b&&(b=this.range.clone(),b.setStartAt(u,CKEDITOR.POSITION_BEFORE_START));k=(!y||A)&&u.equals(p);if(b&&!y)for(;!u.getNext(l)&&!k;){w=u.getParent();if(w.isBlockBoundary(this.forceBrBreak&&!v&&{br:1})){y=1;A=0;k||w.equals(p);b.setEndAt(w,CKEDITOR.POSITION_BEFORE_END);break}u=w;A=1;k=u.equals(p);z=1}A&&b.setEndAt(u,CKEDITOR.POSITION_AFTER_END);
u=this._getNextSourceNode(u,z,p);if((k=!u)||y&&b)break}if(!c){if(!b)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;c=new CKEDITOR.dom.elementPath(b.startContainer,b.root);u=c.blockLimit;y={div:1,th:1,td:1};c=c.block;!c&&u&&!this.enforceRealBlocks&&y[u.getName()]&&b.checkStartOfBlock()&&b.checkEndOfBlock()&&!u.equals(b.root)?c=u:!c||this.enforceRealBlocks&&c.is(d)?(c=this.range.document.createElement(e),b.extractContents().appendTo(c),c.trim(),b.insertNode(c),h=q=!0):
"li"!=c.getName()?b.checkStartOfBlock()&&b.checkEndOfBlock()||(c=c.clone(!1),b.extractContents().appendTo(c),c.trim(),q=b.splitBlock(),h=!q.wasStartOfBlock,q=!q.wasEndOfBlock,b.insertNode(c)):k||(this._.nextNode=c.equals(p)?null:this._getNextSourceNode(b.getBoundaryNodes().endNode,1,p))}h&&(h=c.getPrevious())&&h.type==CKEDITOR.NODE_ELEMENT&&("br"==h.getName()?h.remove():h.getLast()&&"br"==h.getLast().$.nodeName.toLowerCase()&&h.getLast().remove());q&&(h=c.getLast())&&h.type==CKEDITOR.NODE_ELEMENT&&
"br"==h.getName()&&(!CKEDITOR.env.needsBrFiller||h.getPrevious(m)||h.getNext(m))&&h.remove();this._.nextNode||(this._.nextNode=k||c.equals(p)||!p?null:this._getNextSourceNode(c,1,p));return c},_getNextSourceNode:function(a,c,d){function b(a){return!(a.equals(d)||a.equals(g))}var g=this.range.root;for(a=a.getNextSourceNode(c,null,b);!m(a);)a=a.getNextSourceNode(c,null,b);return a}};CKEDITOR.dom.range.prototype.createIterator=function(){return new b(this)}})();CKEDITOR.command=function(b,h){this.uiItems=
[];this.exec=function(a){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return!1;this.editorFocus&&b.focus();return!1===this.fire("exec")?!0:!1!==h.exec.call(this,b,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:h.refresh&&!1!==h.refresh.apply(this,
arguments)};var f;this.checkAllowed=function(a){return a||"boolean"!=typeof f?f=b.activeFilter.checkFeature(this):f};CKEDITOR.tools.extend(this,h,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!h.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(b){if(this.state==b||b!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())return!1;this.previousState=this.state;this.state=b;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 b(a,c,d,b,e){var g,f;a=[];for(g in c){f=c[g];f="boolean"==
typeof f?{}:"function"==typeof f?{match:f}:J(f);"$"!=g.charAt(0)&&(f.elements=g);d&&(f.featureName=d.toLowerCase());var h=f;h.elements=k(h.elements,/\s+/)||null;h.propertiesOnly=h.propertiesOnly||!0===h.elements;var m=/\s*,\s*/,l=void 0;for(l in M){h[l]=k(h[l],m)||null;var n=h,w=I[l],u=k(h[I[l]],m),x=h[l],F=[],r=!0,v=void 0;u?r=!1:u={};for(v in x)"!"==v.charAt(0)&&(v=v.slice(1),F.push(v),u[v]=!0,r=!1);for(;v=F.pop();)x[v]=x["!"+v],delete x["!"+v];n[w]=(r?!1:u)||null}h.match=h.match||null;b.push(f);
a.push(f)}c=e.elements;e=e.generic;var B;d=0;for(b=a.length;d<b;++d){g=J(a[d]);f=!0===g.classes||!0===g.styles||!0===g.attributes;h=g;l=w=m=void 0;for(m in M)h[m]=y(h[m]);n=!0;for(l in I){m=I[l];w=h[m];u=[];x=void 0;for(x in w)-1<x.indexOf("*")?u.push(new RegExp("^"+x.replace(/\*/g,".*")+"$")):u.push(x);w=u;w.length&&(h[m]=w,n=!1)}h.nothingRequired=n;h.noProperties=!(h.attributes||h.classes||h.styles);if(!0===g.elements||null===g.elements)e[f?"unshift":"push"](g);else for(B in h=g.elements,delete g.elements,
h)if(c[B])c[B][f?"unshift":"push"](g);else c[B]=[g]}}function h(a,c,d,b){if(!a.match||a.match(c))if(b||l(a,c))if(a.propertiesOnly||(d.valid=!0),d.allAttributes||(d.allAttributes=f(a.attributes,c.attributes,d.validAttributes)),d.allStyles||(d.allStyles=f(a.styles,c.styles,d.validStyles)),!d.allClasses){a=a.classes;c=c.classes;b=d.validClasses;if(a)if(!0===a)a=!0;else{for(var e=0,g=c.length,h;e<g;++e)h=c[e],b[h]||(b[h]=a(h));a=!1}else a=!1;d.allClasses=a}}function f(a,c,d){if(!a)return!1;if(!0===a)return!0;
for(var b in c)d[b]||(d[b]=a(b));return!1}function a(a,c,d){if(!a.match||a.match(c)){if(a.noProperties)return!1;d.hadInvalidAttribute=g(a.attributes,c.attributes)||d.hadInvalidAttribute;d.hadInvalidStyle=g(a.styles,c.styles)||d.hadInvalidStyle;a=a.classes;c=c.classes;if(a){for(var b=!1,e=!0===a,f=c.length;f--;)if(e||a(c[f]))c.splice(f,1),b=!0;a=b}else a=!1;d.hadInvalidClass=a||d.hadInvalidClass}}function g(a,c){if(!a)return!1;var d=!1,b=!0===a,e;for(e in c)if(b||a(e))delete c[e],d=!0;return d}function m(a,
c,d){if(a.disabled||a.customConfig&&!d||!c)return!1;a._.cachedChecks={};return!0}function k(a,c){if(!a)return!1;if(!0===a)return a;if("string"==typeof a)return a=H(a),"*"==a?!0:CKEDITOR.tools.convertArrayToObject(a.split(c));if(CKEDITOR.tools.isArray(a))return a.length?CKEDITOR.tools.convertArrayToObject(a):!1;var d={},b=0,e;for(e in a)d[e]=a[e],b++;return b?d:!1}function l(a,c){if(a.nothingRequired)return!0;var b,e,g,f;if(g=a.requiredClasses)for(f=c.classes,b=0;b<g.length;++b)if(e=g[b],"string"==
typeof e){if(-1==CKEDITOR.tools.indexOf(f,e))return!1}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(f,e))return!1;return d(c.styles,a.requiredStyles)&&d(c.attributes,a.requiredAttributes)}function d(a,c){if(!c)return!0;for(var d=0,b;d<c.length;++d)if(b=c[d],"string"==typeof b){if(!(b in a))return!1}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(a,b))return!1;return!0}function e(a){if(!a)return{};a=a.split(/\s*,\s*/).sort();for(var c={};a.length;)c[a.shift()]="cke-test";return c}function c(a){var c,
d,b,e,g={},f=1;for(a=H(a);c=a.match(K);)(d=c[2])?(b=n(d,"styles"),e=n(d,"attrs"),d=n(d,"classes")):b=e=d=null,g["$"+f++]={elements:c[1],classes:d,styles:b,attributes:e},a=a.slice(c[0].length);return g}function n(a,c){var d=a.match(F[c]);return d?H(d[1]):null}function r(a){var c=a.styleBackup=a.attributes.style,d=a.classBackup=a.attributes["class"];a.styles||(a.styles=CKEDITOR.tools.parseCssText(c||"",1));a.classes||(a.classes=d?d.split(/\s+/):[])}function t(c,d,b,e){var g=0,f;e.toHtml&&(d.name=d.name.replace(R,
"$1"));if(e.doCallbacks&&c.elementCallbacks){a:{f=c.elementCallbacks;for(var k=0,m=f.length,l;k<m;++k)if(l=f[k](d)){f=l;break a}f=void 0}if(f)return f}if(e.doTransform&&(f=c._.transformations[d.name])){r(d);for(k=0;k<f.length;++k)w(c,d,f[k]);p(d)}if(e.doFilter){a:{k=d.name;m=c._;c=m.allowedRules.elements[k];f=m.allowedRules.generic;k=m.disallowedRules.elements[k];m=m.disallowedRules.generic;l=e.skipRequired;var n={valid:!1,validAttributes:{},validClasses:{},validStyles:{},allAttributes:!1,allClasses:!1,
allStyles:!1,hadInvalidAttribute:!1,hadInvalidClass:!1,hadInvalidStyle:!1},x,F;if(c||f){r(d);if(k)for(x=0,F=k.length;x<F;++x)if(!1===a(k[x],d,n)){c=null;break a}if(m)for(x=0,F=m.length;x<F;++x)a(m[x],d,n);if(c)for(x=0,F=c.length;x<F;++x)h(c[x],d,n,l);if(f)for(x=0,F=f.length;x<F;++x)h(f[x],d,n,l);c=n}else c=null}if(!c||!c.valid)return b.push(d),1;F=c.validAttributes;var v=c.validStyles;f=c.validClasses;var k=d.attributes,y=d.styles,m=d.classes;l=d.classBackup;var B=d.styleBackup,H,E,C=[],n=[],A=/^data-cke-/;
x=!1;delete k.style;delete k["class"];delete d.classBackup;delete d.styleBackup;if(!c.allAttributes)for(H in k)F[H]||(A.test(H)?H==(E=H.replace(/^data-cke-saved-/,""))||F[E]||(delete k[H],x=!0):(delete k[H],x=!0));if(!c.allStyles||c.hadInvalidStyle){for(H in y)c.allStyles||v[H]?C.push(H+":"+y[H]):x=!0;C.length&&(k.style=C.sort().join("; "))}else B&&(k.style=B);if(!c.allClasses||c.hadInvalidClass){for(H=0;H<m.length;++H)(c.allClasses||f[m[H]])&&n.push(m[H]);n.length&&(k["class"]=n.sort().join(" "));
l&&n.length<l.split(/\s+/).length&&(x=!0)}else l&&(k["class"]=l);x&&(g=1);if(!e.skipFinalValidation&&!u(d))return b.push(d),1}e.toHtml&&(d.name=d.name.replace(S,"cke:$1"));return g}function q(a){var c=[],d;for(d in a)-1<d.indexOf("*")&&c.push(d.replace(/\*/g,".*"));return c.length?new RegExp("^(?:"+c.join("|")+")$"):null}function p(a){var c=a.attributes,d;delete c.style;delete c["class"];if(d=CKEDITOR.tools.writeCssText(a.styles,!0))c.style=d;a.classes.length&&(c["class"]=a.classes.sort().join(" "))}
function u(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 y(a){if(!a)return!1;if(!0===a)return!0;var c=q(a);return function(d){return d in a||c&&d.match(c)}}function v(){return new CKEDITOR.htmlParser.element("br")}function A(a){return a.type==CKEDITOR.NODE_ELEMENT&&("br"==a.name||E.$block[a.name])}function z(a,c,d){var b=a.name;if(E.$empty[b]||!a.children.length)"hr"==b&&"br"==c?a.replaceWith(v()):
(a.parent&&d.push({check:"it",el:a.parent}),a.remove());else if(E.$block[b]||"tr"==b)if("br"==c)a.previous&&!A(a.previous)&&(c=v(),c.insertBefore(a)),a.next&&!A(a.next)&&(c=v(),c.insertAfter(a)),a.replaceWithChildren();else{var b=a.children,e;b:{e=E[c];for(var g=0,f=b.length,h;g<f;++g)if(h=b[g],h.type==CKEDITOR.NODE_ELEMENT&&!e[h.name]){e=!1;break b}e=!0}if(e)a.name=c,a.attributes={},d.push({check:"parent-down",el:a});else{e=a.parent;for(var g=e.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||"body"==e.name,
k,m,f=b.length;0<f;)h=b[--f],g&&(h.type==CKEDITOR.NODE_TEXT||h.type==CKEDITOR.NODE_ELEMENT&&E.$inline[h.name])?(k||(k=new CKEDITOR.htmlParser.element(c),k.insertAfter(a),d.push({check:"parent-down",el:k})),k.add(h,0)):(k=null,m=E[e.name]||E.span,h.insertAfter(a),e.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||h.type!=CKEDITOR.NODE_ELEMENT||m[h.name]||d.push({check:"el-up",el:h}));a.remove()}}else b in{style:1,script:1}?a.remove():(a.parent&&d.push({check:"it",el:a.parent}),a.replaceWithChildren())}function w(a,
c,d){var b,e;for(b=0;b<d.length;++b)if(e=d[b],!(e.check&&!a.check(e.check,!1)||e.left&&!e.left(c))){e.right(c,N);break}}function x(a,c){var d=c.getDefinition(),b=d.attributes,e=d.styles,g,f,h,k;if(a.name!=d.element)return!1;for(g in b)if("class"==g)for(d=b[g].split(/\s+/),h=a.classes.join("|");k=d.pop();){if(-1==h.indexOf(k))return!1}else if(a.attributes[g]!=b[g])return!1;for(f in e)if(a.styles[f]!=e[f])return!1;return!0}function B(a,c){var d,b;"string"==typeof a?d=a:a instanceof CKEDITOR.style?b=
a:(d=a[0],b=a[1]);return[{element:d,left:b,right:function(a,d){d.transform(a,c)}}]}function C(a){return function(c){return x(c,a)}}function G(a){return function(c,d){d[a](c)}}var E=CKEDITOR.dtd,J=CKEDITOR.tools.copy,H=CKEDITOR.tools.trim,D=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2;CKEDITOR.filter=function(a,c){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;var d=this.editor=a instanceof CKEDITOR.editor?a:null;if(d&&!c){this.customConfig=!0;var b=d.config.allowedContent;!0===b?this.disabled=!0:(b||(this.customConfig=!1),this.allow(b,"config",1),this.allow(d.config.extraAllowedContent,"extra",1),this.allow(D[d.enterMode]+" "+D[d.shiftEnterMode],"default",1),this.disallow(d.config.disallowedContent))}else this.customConfig=
!1,this.allow(c||a,"default",1)};CKEDITOR.filter.instances={};CKEDITOR.filter.prototype={allow:function(a,d,e){if(!m(this,a,e))return!1;var g,f;if("string"==typeof a)a=c(a);else if(a instanceof CKEDITOR.style){if(a.toAllowedContentRules)return this.allow(a.toAllowedContentRules(this.editor),d,e);g=a.getDefinition();a={};e=g.attributes;a[g.element]=g={styles:g.styles,requiredStyles:g.styles&&CKEDITOR.tools.object.keys(g.styles)};e&&(e=J(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.object.keys(e))}else if(CKEDITOR.tools.isArray(a)){for(g=0;g<a.length;++g)f=this.allow(a[g],d,e);return f}b(this,a,d,this.allowedContent,this._.allowedRules);return!0},applyTo:function(a,c,d,e){if(this.disabled)return!1;var b=this,g=[],f=this.editor&&this.editor.config.protectedSource,h,k=!1,m={doFilter:!d,doTransform:!0,doCallbacks:!0,toHtml:c};a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if("off"==a.attributes["data-cke-filter"])return!1;
if(!c||"span"!=a.name||!~CKEDITOR.tools.object.keys(a.attributes).join("|").indexOf("data-cke-"))if(h=t(b,a,g,m),h&1)k=!0;else if(h&2)return!1}else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var d;a:{var e=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));d=[];var l,n,w;if(f)for(n=0;n<f.length;++n)if((w=e.match(f[n]))&&w[0].length==e.length){d=!0;break a}e=CKEDITOR.htmlParser.fragment.fromHtml(e);1==e.children.length&&(l=e.children[0]).type==CKEDITOR.NODE_ELEMENT&&
t(b,l,d,m);d=!d.length}d||g.push(a)}},null,!0);g.length&&(k=!0);var l;a=[];e=D[e||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];for(var n;d=g.pop();)d.type==CKEDITOR.NODE_ELEMENT?z(d,e,a):d.remove();for(;l=a.pop();)if(d=l.el,d.parent)switch(n=E[d.parent.name]||E.span,l.check){case "it":E.$removeEmpty[d.name]&&!d.children.length?z(d,e,a):u(d)||z(d,e,a);break;case "el-up":d.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||n[d.name]||z(d,e,a);break;case "parent-down":d.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||
n[d.name]||z(d.parent,e,a)}return k},checkFeature:function(a){if(this.disabled||!a)return!0;a.toFeature&&(a=a.toFeature(this.editor));return!a.requiredContent||this.check(a.requiredContent)},disable:function(){this.disabled=!0},disallow:function(a){if(!m(this,a,!0))return!1;"string"==typeof a&&(a=c(a));b(this,a,null,this.disallowedContent,this._.disallowedRules);return!0},addContentForms:function(a){if(!this.disabled&&a){var c,d,e=[],b;for(c=0;c<a.length&&!b;++c)d=a[c],("string"==typeof d||d instanceof
CKEDITOR.style)&&this.check(d)&&(b=d);if(b){for(c=0;c<a.length;++c)e.push(B(a[c],b));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 c,d;if(!this.disabled&&a){var e=this._.transformations,b;for(b=0;b<a.length;++b){c=a[b];var g=void 0,f=void 0,h=void 0,k=void 0,m=void 0,l=void 0;d=[];for(f=0;f<c.length;++f)h=c[f],"string"==typeof h?(h=h.split(/\s*:\s*/),k=h[0],m=null,l=h[1]):(k=h.check,m=h.left,l=h.right),g||(g=h,g=g.element?g.element:k?k.match(/^([a-z0-9]+)/i)[0]:g.left.getDefinition().element),m instanceof CKEDITOR.style&&(m=C(m)),d.push({check:k==g?null:k,left:m,
right:"string"==typeof l?G(l):l});c=g;e[c]||(e[c]=[]);e[c].push(d)}}},check:function(a,d,b){if(this.disabled)return!0;if(CKEDITOR.tools.isArray(a)){for(var g=a.length;g--;)if(this.check(a[g],d,b))return!0;return!1}var f,h;if("string"==typeof a){h=a+"\x3c"+(!1===d?"0":"1")+(b?"1":"0")+"\x3e";if(h in this._.cachedChecks)return this._.cachedChecks[h];f=c(a).$1;var k=f.styles,g=f.classes;f.name=f.elements;f.classes=g=g?g.split(/\s*,\s*/):[];f.styles=e(k);f.attributes=e(f.attributes);f.children=[];g.length&&
(f.attributes["class"]=g.join(" "));k&&(f.attributes.style=CKEDITOR.tools.writeCssText(f.styles))}else f=a.getDefinition(),k=f.styles,g=f.attributes||{},k&&!CKEDITOR.tools.isEmpty(k)?(k=J(k),g.style=CKEDITOR.tools.writeCssText(k,!0)):k={},f={name:f.element,attributes:g,classes:g["class"]?g["class"].split(/\s+/):[],styles:k,children:[]};var k=CKEDITOR.tools.clone(f),m=[],l;if(!1!==d&&(l=this._.transformations[f.name])){for(g=0;g<l.length;++g)w(this,f,l[g]);p(f)}t(this,k,m,{doFilter:!0,doTransform:!1!==
d,skipRequired:!b,skipFinalValidation:!b});0<m.length?b=!1:((d=f.attributes["class"])&&(f.attributes["class"]=f.attributes["class"].split(" ").sort().join(" ")),b=CKEDITOR.tools.objectCompare(f.attributes,k.attributes,!0),d&&(f.attributes["class"]=d));"string"==typeof a&&(this._.cachedChecks[h]=b);return b},getAllowedEnterMode:function(){var a=["p","div","br"],c={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(d,e){var b=a.slice(),g;if(this.check(D[d]))return d;for(e||
(b=b.reverse());g=b.pop();)if(this.check(g))return c[g];return CKEDITOR.ENTER_BR}}(),clone:function(){var a=new CKEDITOR.filter,c=CKEDITOR.tools.clone;a.allowedContent=c(this.allowedContent);a._.allowedRules=c(this._.allowedRules);a.disallowedContent=c(this.disallowedContent);a._.disallowedRules=c(this._.disallowedRules);a._.transformations=c(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 M={styles:1,attributes:1,classes:1},I={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},K=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,F={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},R=/^cke:(object|embed|param)$/,S=/^(object|embed|param)$/,N;N=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a,
"height")},sizeToAttribute:function(a){this.lengthToAttribute(a,"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,c,d){d=d||c;if(!(d in a.styles)){var b=a.attributes[c];b&&(/^\d+$/.test(b)&&(b+="px"),a.styles[d]=b)}delete a.attributes[c]},lengthToAttribute:function(a,c,d){d=d||c;if(!(d in a.attributes)){var b=a.styles[c],e=b&&b.match(/^(\d+)(?:\.\d*)?px$/);e?a.attributes[d]=e[1]:"cke-test"==b&&(a.attributes[d]="cke-test")}delete a.styles[c]},alignmentToStyle:function(a){if(!("float"in
a.styles)){var c=a.attributes.align;if("left"==c||"right"==c)a.styles["float"]=c}delete a.attributes.align},alignmentToAttribute:function(a){if(!("align"in a.attributes)){var c=a.styles["float"];if("left"==c||"right"==c)a.attributes.align=c}delete a.styles["float"]},splitBorderShorthand:function(a){if(a.styles.border){var c=CKEDITOR.tools.style.parse.border(a.styles.border);c.color&&(a.styles["border-color"]=c.color);c.style&&(a.styles["border-style"]=c.style);c.width&&(a.styles["border-width"]=c.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 c(b){a.styles["margin-top"]=
d[b[0]];a.styles["margin-right"]=d[b[1]];a.styles["margin-bottom"]=d[b[2]];a.styles["margin-left"]=d[b[3]]}if(a.styles.margin){var d=a.styles.margin.match(/(\-?[\.\d]+\w+)/g)||["0px"];switch(d.length){case 1:c([0,0,0,0]);break;case 2:c([0,1,0,1]);break;case 3:c([0,1,2,1]);break;case 4:c([0,1,2,3])}delete a.styles.margin}},matchesStyle:x,transform:function(a,c){if("string"==typeof c)a.name=c;else{var d=c.getDefinition(),b=d.styles,e=d.attributes,g,f,h,k;a.name=d.element;for(g in e)if("class"==g)for(d=
a.classes.join("|"),h=e[g].split(/\s+/);k=h.pop();)-1==d.indexOf(k)&&a.classes.push(k);else a.attributes[g]=e[g];for(f in b)a.styles[f]=b[f]}}}})();(function(){CKEDITOR.focusManager=function(b){if(b.focusManager)return b.focusManager;this.hasFocus=!1;this.currentActive=null;this._={editor:b};return this};CKEDITOR.focusManager._={blurDelay:200};CKEDITOR.focusManager.prototype={focus:function(b){this._.timer&&clearTimeout(this._.timer);b&&(this.currentActive=b);this.hasFocus||this._.locked||((b=CKEDITOR.currentInstance)&&
b.focusManager.blur(1),this.hasFocus=!0,(b=this._.editor.container)&&b.addClass("cke_focus"),this._.editor.fire("focus"))},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(b){function h(){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 f=CKEDITOR.focusManager._.blurDelay;b||!f?h.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;
h.call(this)},f,this)}},add:function(b,h){var f=b.getCustomData("focusmanager");if(!f||f!=this){f&&f.remove(b);var f="focus",a="blur";h&&(CKEDITOR.env.ie?(f="focusin",a="focusout"):CKEDITOR.event.useCapture=1);var g={blur:function(){b.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(b)}};b.on(f,g.focus,this);b.on(a,g.blur,this);h&&(CKEDITOR.event.useCapture=0);b.setCustomData("focusmanager",this);b.setCustomData("focusmanager_handlers",g)}},remove:function(b){b.removeCustomData("focusmanager");
var h=b.removeCustomData("focusmanager_handlers");b.removeListener("blur",h.blur);b.removeListener("focus",h.focus)}}})();CKEDITOR.keystrokeHandler=function(b){if(b.keystrokeHandler)return b.keystrokeHandler;this.keystrokes={};this.blockedKeystrokes={};this._={editor:b};return this};(function(){var b,h=function(a){a=a.data;var g=a.getKeystroke(),f=this.keystrokes[g],h=this._.editor;b=!1===h.fire("key",{keyCode:g,domEvent:a});b||(f&&(b=!1!==h.execCommand(f,{from:"keystrokeHandler"})),b||(b=!!this.blockedKeystrokes[g]));
b&&a.preventDefault(!0);return!b},f=function(a){b&&(b=!1,a.data.preventDefault(!0))};CKEDITOR.keystrokeHandler.prototype={attach:function(a){a.on("keydown",h,this);if(CKEDITOR.env.gecko&&CKEDITOR.env.mac)a.on("keypress",f,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(b,h,f){b&&CKEDITOR.lang.languages[b]||(b=this.detect(h,b));var a=this;h=function(){a[b].dir=a.rtl[b]?"rtl":"ltr";f(b,a[b])};this[b]?h():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+b+".js"),h,this)},detect:function(b,h){var f=this.languages;h=h||navigator.userLanguage||navigator.language||
b;var a=h.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),g=a[1],a=a[2];f[g+"-"+a]?g=g+"-"+a:f[g]||(g=null);CKEDITOR.lang.detect=g?function(){return g}:function(a){return a};return g||b}}})();CKEDITOR.scriptLoader=function(){var b={},h={};return{load:function(f,a,g,m){var k="string"==typeof f;k&&(f=[f]);g||(g=CKEDITOR);var l=f.length,d=[],e=[],c=function(c){a&&(k?a.call(g,c):a.call(g,d,e))};if(0===l)c(!0);else{var n=function(a,b){(b?d:e).push(a);0>=--l&&(m&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),
c(b))},r=function(a,c){b[a]=1;var d=h[a];delete h[a];for(var e=0;e<d.length;e++)d[e](a,c)},t=function(c){if(b[c])n(c,!0);else{var d=h[c]||(h[c]=[]);d.push(n);if(!(1<d.length)){var e=new CKEDITOR.dom.element("script");e.setAttributes({type:"text/javascript",src:c});a&&(CKEDITOR.env.ie&&(8>=CKEDITOR.env.version||CKEDITOR.env.ie9Compat)?e.$.onreadystatechange=function(){if("loaded"==e.$.readyState||"complete"==e.$.readyState)e.$.onreadystatechange=null,r(c,!0)}:(e.$.onload=function(){setTimeout(function(){e.$.onload=
null;e.$.onerror=null;r(c,!0)},0)},e.$.onerror=function(){e.$.onload=null;e.$.onerror=null;r(c,!1)}));e.appendTo(CKEDITOR.document.getHead())}}};m&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var q=0;q<l;q++)t(f[q])}},queue:function(){function b(){var g;(g=a[0])&&this.load(g.scriptUrl,g.callback,CKEDITOR,0)}var a=[];return function(g,h){var k=this;a.push({scriptUrl:g,callback:function(){h&&h.apply(this,arguments);a.shift();b.call(k)}});1==a.length&&b.call(this)}}()}}();CKEDITOR.resourceManager=
function(b,h){this.basePath=b;this.fileName=h;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}};CKEDITOR.resourceManager.prototype={add:function(b,h){if(this.registered[b])throw Error('[CKEDITOR.resourceManager.add] The resource name "'+b+'" is already registered.');var f=this.registered[b]=h||{};f.name=b;f.path=this.getPath(b);CKEDITOR.fire(b+CKEDITOR.tools.capitalize(this.fileName)+"Ready",f);return this.get(b)},get:function(b){return this.registered[b]||null},getPath:function(b){var h=
this.externals[b];return CKEDITOR.getUrl(h&&h.dir||this.basePath+b+"/")},getFilePath:function(b){var h=this.externals[b];return CKEDITOR.getUrl(this.getPath(b)+(h?h.file:this.fileName+".js"))},addExternal:function(b,h,f){f||(h=h.replace(/[^\/]+$/,function(a){f=a;return""}));f=f||this.fileName+".js";b=b.split(",");for(var a=0;a<b.length;a++)this.externals[b[a]]={dir:h,file:f}},load:function(b,h,f){CKEDITOR.tools.isArray(b)||(b=b?[b]:[]);for(var a=this.loaded,g=this.registered,m=[],k={},l={},d=0;d<
b.length;d++){var e=b[d];if(e)if(a[e]||g[e])l[e]=this.get(e);else{var c=this.getFilePath(e);m.push(c);c in k||(k[c]=[]);k[c].push(e)}}CKEDITOR.scriptLoader.load(m,function(c,d){if(d.length)throw Error('[CKEDITOR.resourceManager.load] Resource name "'+k[d[0]].join(",")+'" was not found at "'+d[0]+'".');for(var b=0;b<c.length;b++)for(var e=k[c[b]],g=0;g<e.length;g++){var m=e[g];l[m]=this.get(m);a[m]=1}h.call(f,l)},this)}};CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin");CKEDITOR.plugins.load=
CKEDITOR.tools.override(CKEDITOR.plugins.load,function(b){var h={};return function(f,a,g){var m={},k=function(f){b.call(this,f,function(d){CKEDITOR.tools.extend(m,d);var b=[],c;for(c in d){var f=d[c],l=f&&f.requires;if(!h[c]){if(f.icons)for(var t=f.icons.split(","),q=t.length;q--;)CKEDITOR.skin.addIcon(t[q],f.path+"icons/"+(CKEDITOR.env.hidpi&&f.hidpi?"hidpi/":"")+t[q]+".png");f.isSupportedEnvironment=f.isSupportedEnvironment||function(){return!0};h[c]=1}if(l)for(l.split&&(l=l.split(",")),f=0;f<l.length;f++)m[l[f]]||
b.push(l[f])}if(b.length)k.call(this,b);else{for(c in m)f=m[c],f.onLoad&&!f.onLoad._called&&(!1===f.onLoad()&&delete m[c],f.onLoad._called=1);a&&a.call(g||window,m)}},this)};k.call(this,f)}});CKEDITOR.plugins.setLang=function(b,h,f){var a=this.get(b);b=a.langEntries||(a.langEntries={});a=a.lang||(a.lang=[]);a.split&&(a=a.split(","));-1==CKEDITOR.tools.indexOf(a,h)&&a.push(h);b[h]=f};CKEDITOR.ui=function(b){if(b.ui)return b.ui;this.items={};this.instances={};this.editor=b;this._={handlers:{}};return this};
CKEDITOR.ui.prototype={add:function(b,h,f){f.name=b.toLowerCase();var a=this.items[b]={type:h,command:f.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(a,f)},get:function(b){return this.instances[b]},create:function(b){var h=this.items[b],f=h&&this._.handlers[h.type],a=h&&h.command&&this.editor.getCommand(h.command),f=f&&f.create.apply(this,h.args);this.instances[b]=f;a&&a.uiItems.push(f);f&&!f.type&&(f.type=h.type);return f},addHandler:function(b,h){this._.handlers[b]=
h},space:function(b){return CKEDITOR.document.getById(this.spaceId(b))},spaceId:function(b){return this.editor.id+"_"+b}};CKEDITOR.event.implementOn(CKEDITOR.ui);(function(){function b(c,d,b){CKEDITOR.event.call(this);c=c&&CKEDITOR.tools.clone(c);if(void 0!==d){if(!(d instanceof CKEDITOR.dom.element))throw Error("Expect element of type CKEDITOR.dom.element.");if(!b)throw Error("One of the element modes must be specified.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&b==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");
if(!f(d,b))throw Error('The specified element mode is not supported on element: "'+d.getName()+'".');this.element=d;this.elementMode=b;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(d.getId()||d.getNameAtt())}else this.elementMode=CKEDITOR.ELEMENT_MODE_NONE;this._={};this.commands={};this.templates={};this.name=this.name||h();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){m(this,a.data.path)});this.on("activeFilterChange",function(){m(this,this.elementPath(),!0)});this.on("mode",a);CKEDITOR.dom.selection.setupEditorOptimization(this);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(){this.isDestroyed()||this.isDetached()||l(this,c)},0,this)}function h(){do var a="editor"+ ++q;while(CKEDITOR.instances[a]);return a}function f(a,c){return c==CKEDITOR.ELEMENT_MODE_INLINE?a.is(CKEDITOR.dtd.$editable)||a.is("textarea"):c==CKEDITOR.ELEMENT_MODE_REPLACE?!a.is(CKEDITOR.dtd.$nonBodyContent):1}function a(){var a=this.commands,
c;for(c in a)g(this,a[c])}function g(a,c){c[c.startDisabled?"disable":a.readOnly&&!c.readOnly?"disable":c.modes[a.mode]?"enable":"disable"]()}function m(a,c,d){if(c){var b,e,g=a.commands;for(e in g)b=g[e],(d||b.contextSensitive)&&b.refresh(a,c)}}function k(a){var c=a.config.customConfig;if(!c)return!1;var c=CKEDITOR.getUrl(c),d=p[c]||(p[c]={});d.fn?(d.fn.call(a,a.config),CKEDITOR.getUrl(a.config.customConfig)!=c&&k(a)||a.fireOnce("customConfigLoaded")):CKEDITOR.scriptLoader.queue(c,function(){d.fn=
CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};k(a)});return!0}function l(a,c){a.on("customConfigLoaded",function(){if(c){if(c.on)for(var b in c.on)a.on(b,c.on[b]);CKEDITOR.tools.extend(a.config,c,!0);delete a.config.on}b=a.config;a.readOnly=b.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=b.tabIndex||a.element&&a.element.getAttribute("tabindex")||0;a.activeEnterMode=a.enterMode=a.blockless?CKEDITOR.ENTER_BR:b.enterMode;a.activeShiftEnterMode=a.shiftEnterMode=a.blockless?CKEDITOR.ENTER_BR:b.shiftEnterMode;b.skin&&(CKEDITOR.skinName=b.skin);a.fireOnce("configLoaded");a.dataProcessor=new CKEDITOR.htmlDataProcessor(a);
a.filter=a.activeFilter=new CKEDITOR.filter(a);d(a)});c&&null!=c.customConfig&&(a.config.customConfig=c.customConfig);k(a)||a.fireOnce("customConfigLoaded")}function d(a){CKEDITOR.skin.loadPart("editor",function(){e(a)})}function e(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(d,b){var e=a.config.title;a.langCode=d;a.lang=CKEDITOR.tools.prototypedCopy(b);a.title="string"==typeof e||!1===e?e:[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");c(a)})}function c(a){a.getStylesSet(function(c){a.once("loaded",function(){a.fire("stylesSet",{styles:c})},null,null,1);n(a)})}function n(a){function c(a){if(!a)return"";CKEDITOR.tools.isArray(a)&&(a=a.join(","));return a.replace(/\s/g,"")}var d=a.config,b=c(d.plugins),e=c(d.extraPlugins),g=c(d.removePlugins);if(e)var f=new RegExp("(?:^|,)(?:"+e.replace(/,/g,"|")+")(?\x3d,|$)","g"),b=b.replace(f,
""),b=b+(","+e);if(g)var h=new RegExp("(?:^|,)(?:"+g.replace(/,/g,"|")+")(?\x3d,|$)","g"),b=b.replace(h,"");CKEDITOR.env.air&&(b+=",adobeair");CKEDITOR.plugins.load(b.split(","),function(c){var b=[],e=[],g=[];a.plugins=CKEDITOR.tools.extend({},a.plugins,c);for(var f in c){var k=c[f],m=k.lang,l=null,n=k.requires,w;CKEDITOR.tools.isArray(n)&&(n=n.join(","));if(n&&(w=n.match(h)))for(;n=w.pop();)CKEDITOR.error("editor-plugin-required",{plugin:n.replace(",",""),requiredBy:f});m&&!a.lang[f]&&(m.split&&
(m=m.split(",")),0<=CKEDITOR.tools.indexOf(m,a.langCode)?l=a.langCode:(l=a.langCode.replace(/-.*/,""),l=l!=a.langCode&&0<=CKEDITOR.tools.indexOf(m,l)?l:0<=CKEDITOR.tools.indexOf(m,"en")?"en":m[0]),k.langEntries&&k.langEntries[l]?(a.lang[f]=k.langEntries[l],l=null):g.push(CKEDITOR.getUrl(k.path+"lang/"+l+".js")));e.push(l);b.push(k)}CKEDITOR.scriptLoader.load(g,function(){if(!a.isDestroyed()&&!a.isDetached()){for(var c=["beforeInit","init","afterInit"],g=0;g<c.length;g++)for(var f=0;f<b.length;f++){var h=
b[f];0===g&&e[f]&&h.lang&&h.langEntries&&(a.lang[h.name]=h.langEntries[e[f]]);if(h[c[g]])h[c[g]](a)}a.fireOnce("pluginsLoaded");d.keystrokes&&a.setKeystroke(a.config.keystrokes);for(f=0;f<a.config.blockedKeystrokes.length;f++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[f]]=1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)}})})}function r(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var c=this.getData();this.config.htmlEncodeOutput&&
(c=CKEDITOR.tools.htmlEncode(c));a.is("textarea")?a.setValue(c):a.setHtml(c);return!0}return!1}function t(a,c){function d(a){var c=a.startContainer,b=a.endContainer;return c.is&&(c.is("tr")||c.is("td")&&c.equals(b)&&a.endOffset===c.getChildCount())?!0:!1}function b(a){var c=a.startContainer;return c.is("tr")?a.cloneContents():c.clone(!0)}for(var e=new CKEDITOR.dom.documentFragment,g,f,h,k=0;k<a.length;k++){var m=a[k],l=m.startContainer.getAscendant("tr",!0);d(m)?(g||(g=l.getAscendant("table").clone(),
g.append(l.getAscendant({thead:1,tbody:1,tfoot:1}).clone()),e.append(g),g=g.findOne("thead, tbody, tfoot")),f&&f.equals(l)||(f=l,h=l.clone(),g.append(h)),h.append(b(m))):e.append(m.cloneContents())}return g?e:c.getHtmlFromRange(a[0])}b.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=b;var q=0,p={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{plugins:{detectConflict:function(a,c){for(var d=0;d<c.length;d++){var b=c[d];if(this[b])return CKEDITOR.warn("editor-plugin-conflict",{plugin:a,replacedWith:b}),
!0}return!1}},addCommand:function(a,c){c.name=a.toLowerCase();var d=c instanceof CKEDITOR.command?c:new CKEDITOR.command(this,c);this.mode&&g(this,d);return this.commands[a]=d},_attachToForm:function(){function a(c){d.updateElement();d._.required&&!b.getValue()&&!1===d.fire("required")&&c.data.preventDefault()}function c(a){return!!(a&&a.call&&a.apply)}var d=this,b=d.element,e=new CKEDITOR.dom.element(b.$.form);b.is("textarea")&&e&&(e.on("submit",a),c(e.$.submit)&&(e.$.submit=CKEDITOR.tools.override(e.$.submit,
function(c){return function(){a();c.apply?c.apply(this):c()}})),d.on("destroy",function(){e.removeListener("submit",a)}))},destroy:function(a){var c=CKEDITOR.filter.instances,d=this;this.fire("beforeDestroy");!a&&r.call(this);this.editable(null);this.filter&&delete this.filter;CKEDITOR.tools.array.forEach(CKEDITOR.tools.object.keys(c),function(a){a=c[a];d===a.editor&&a.destroy()});delete this.activeFilter;this.status="destroyed";this.fire("destroy");this.removeAllListeners();CKEDITOR.remove(this);
CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(a){if(!a){a=this.getSelection();if(!a)return null;a=a.getStartElement()}return a?new CKEDITOR.dom.elementPath(a,this.editable()):null},createRange:function(){var a=this.editable();return a?new CKEDITOR.dom.range(a):null},execCommand:function(a,c){var d=this.getCommand(a),b={name:a,commandData:c||{},command:d};return d&&d.state!=CKEDITOR.TRISTATE_DISABLED&&!1!==this.fire("beforeCommandExec",b)&&(b.returnValue=d.exec(b.commandData),
!d.async&&!1!==this.fire("afterCommandExec",b))?b.returnValue:!1},getCommand:function(a){return this.commands[a]},getData:function(a){!a&&this.fire("beforeGetData");var c=this._.data;"string"!=typeof c&&(c=(c=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?c.is("textarea")?c.getValue():c.getHtml():"");c={dataValue:c};!a&&this.fire("getData",c);return c.dataValue},getSnapshot:function(){var a=this.fire("getSnapshot");"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,c,d){var b=!0,e=c;c&&"object"==typeof c&&(d=c.internal,e=c.callback,b=!c.noSnapshot);!d&&b&&this.fire("saveSnapshot");if(e||!d)this.once("dataReady",function(a){!d&&b&&this.fire("saveSnapshot");e&&e.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,c,d){this.fire("insertHtml",{dataValue:a,mode:c,range:d})},insertText:function(a){this.fire("insertText",a)},insertElement:function(a){this.fire("insertElement",a)},getSelectedHtml:function(a){var c=this.editable(),d=this.getSelection(),d=d&&d.getRanges();if(!c||!d||0===d.length)return null;c=t(d,c);return a?c.getHtml():c},extractSelectedHtml:function(a,c){var d=this.editable(),
b=this.getSelection().getRanges(),e=new CKEDITOR.dom.documentFragment,g;if(!d||0===b.length)return null;for(g=0;g<b.length;g++)e.append(d.extractHtmlFromRange(b[g],c));c||this.getSelection().selectRanges([b[0]]);return a?e.getHtml():e},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return"ready"==this.status&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return r.call(this)},setKeystroke:function(){for(var a=
this.keystrokeHandler.keystrokes,c=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],d,b,e=c.length;e--;)d=c[e],b=0,CKEDITOR.tools.isArray(d)&&(b=d[1],d=d[0]),b?a[d]=b:delete a[d]},getCommandKeystroke:function(a,c){var d="string"===typeof a?this.getCommand(a):a,b=[];if(d){var e=CKEDITOR.tools.object.findKey(this.commands,d),g=this.keystrokeHandler.keystrokes;if(d.fakeKeystroke)b.push(d.fakeKeystroke);else for(var f in g)g[f]===e&&b.push(f)}return c?b:b[0]||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,c){a=a?this.blockless?CKEDITOR.ENTER_BR:a:this.enterMode;c=c?this.blockless?CKEDITOR.ENTER_BR:c:this.shiftEnterMode;if(this.activeEnterMode!=a||this.activeShiftEnterMode!=c)this.activeEnterMode=
a,this.activeShiftEnterMode=c,this.fire("activeEnterModeChange")},showNotification:function(a){alert(a)},isDetached:function(){return!!this.container&&this.container.isDetached()},isDestroyed:function(){return"destroyed"===this.status}});CKEDITOR.editor._getEditorElement=function(a){if(!CKEDITOR.env.isCompatible)return null;var c=CKEDITOR.dom.element.get(a);return c?c.getEditor()?(CKEDITOR.error("editor-element-conflict",{editorName:c.getEditor().name}),null):c:(CKEDITOR.error("editor-incorrect-element",
{element:a}),null)}})();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 b=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,h={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(f){for(var a,g,m=0,k;a=this._.htmlPartsRegex.exec(f);){g=a.index;if(g>m)if(m=f.substring(m,g),k)k.push(m);else this.onText(m);m=this._.htmlPartsRegex.lastIndex;if(g=a[1])if(g=g.toLowerCase(),k&&CKEDITOR.dtd.$cdata[g]&&(this.onCDATA(k.join("")),k=null),!k){this.onTagClose(g);
continue}if(k)k.push(a[0]);else if(g=a[3]){if(g=g.toLowerCase(),!/="/.test(g)){var l={},d,e=a[4];a=!!a[5];if(e)for(;d=b.exec(e);){var c=d[1].toLowerCase();d=d[2]||d[3]||d[4]||"";l[c]=!d&&h[c]?c:CKEDITOR.tools.htmlDecodeAttr(d)}this.onTagOpen(g,l,a);!k&&CKEDITOR.dtd.$cdata[g]&&(k=[])}}else if(g=a[2])this.onComment(g)}if(f.length>m)this.onText(f.substring(m,f.length))}}})();CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(b){this._.output.push("\x3c",
b)},openTagClose:function(b,h){h?this._.output.push(" /\x3e"):this._.output.push("\x3e")},attribute:function(b,h){"string"==typeof h&&(h=CKEDITOR.tools.htmlEncodeAttr(h));this._.output.push(" ",b,'\x3d"',h,'"')},closeTag:function(b){this._.output.push("\x3c/",b,"\x3e")},text:function(b){this._.output.push(b)},comment:function(b){this._.output.push("\x3c!--",b,"--\x3e")},write:function(b){this._.output.push(b)},reset:function(){this._.output=[];this._.indent=!1},getHtml:function(b){var h=this._.output.join("");
b&&this.reset();return h}}});"use strict";(function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var b=this.parent.children,h=CKEDITOR.tools.indexOf(b,this),f=this.previous,a=this.next;f&&(f.next=a);a&&(a.previous=f);b.splice(h,1);this.parent=null},replaceWith:function(b){var h=this.parent.children,f=CKEDITOR.tools.indexOf(h,this),a=b.previous=this.previous,g=b.next=this.next;a&&(a.next=b);g&&(g.previous=b);h[f]=b;b.parent=this.parent;this.parent=null},
insertAfter:function(b){var h=b.parent.children,f=CKEDITOR.tools.indexOf(h,b),a=b.next;h.splice(f+1,0,this);this.next=b.next;this.previous=b;b.next=this;a&&(a.previous=this);this.parent=b.parent},insertBefore:function(b){var h=b.parent.children,f=CKEDITOR.tools.indexOf(h,b);h.splice(f,0,this);this.next=b;(this.previous=b.previous)&&(b.previous.next=this);b.previous=this;this.parent=b.parent},getAscendant:function(b){var h="function"==typeof b?b:"string"==typeof b?function(a){return a.name==b}:function(a){return a.name in
b},f=this.parent;for(;f&&f.type==CKEDITOR.NODE_ELEMENT;){if(h(f))return f;f=f.parent}return null},wrapWith:function(b){this.replaceWith(b);b.add(this);return b},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(b){return b||{}}}})();"use strict";CKEDITOR.htmlParser.comment=function(b){this.value=b;this._={isBlockLike:!1}};CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(b,
h){var f=this.value;if(!(f=b.onComment(h,f,this)))return this.remove(),!1;if("string"!=typeof f)return this.replaceWith(f),!1;this.value=f;return!0},writeHtml:function(b,h){h&&this.filter(h);b.comment(this.value)}});"use strict";(function(){CKEDITOR.htmlParser.text=function(b){this.value=b;this._={isBlockLike:!1}};CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(b,h){if(!(this.value=b.onText(h,this.value,this)))return this.remove(),
!1},writeHtml:function(b,h){h&&this.filter(h);b.text(this.value)}})})();"use strict";(function(){CKEDITOR.htmlParser.cdata=function(b){this.value=b};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(b){b.write(this.value)}})})();"use strict";CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:!0,hasInlineStarted:!1}};(function(){function b(a){return a.attributes["data-cke-survive"]?
!1:"a"==a.name&&a.attributes.href||CKEDITOR.dtd.$removeEmpty[a.name]}var h=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),f={ol:1,ul:1},a=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),g={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(m,k,l){function d(a){var c;if(0<u.length)for(var d=0;d<u.length;d++){var b=
u[d],g=b.name,f=CKEDITOR.dtd[g],h=v.name&&CKEDITOR.dtd[v.name];h&&!h[g]||a&&f&&!f[a]&&CKEDITOR.dtd[a]?g==v.name&&(n(v,v.parent,1),d--):(c||(e(),c=1),b=b.clone(),b.parent=v,v=b,u.splice(d,1),d--)}}function e(){for(;y.length;)n(y.shift(),v)}function c(a){if(a._.isBlockLike&&"pre"!=a.name&&"textarea"!=a.name){var c=a.children.length,d=a.children[c-1],b;d&&d.type==CKEDITOR.NODE_TEXT&&((b=CKEDITOR.tools.rtrim(d.value))?d.value=b:a.children.length=c-1)}}function n(a,d,e){d=d||v||p;var g=v;void 0===a.previous&&
(r(d,a)&&(v=d,q.onTagOpen(l,{}),a.returnPoint=d=v),c(a),b(a)&&!a.children.length||d.add(a),"pre"==a.name&&(z=!1),"textarea"==a.name&&(A=!1));a.returnPoint?(v=a.returnPoint,delete a.returnPoint):v=e?d:g}function r(a,c){if((a==p||"body"==a.name)&&l&&(!a.name||CKEDITOR.dtd[a.name][l])){var d,b;return(d=c.attributes&&(b=c.attributes["data-cke-real-element-type"])?b:c.name)&&d in CKEDITOR.dtd.$inline&&!(d in CKEDITOR.dtd.head)&&!c.isOrphan||c.type==CKEDITOR.NODE_TEXT}}function t(a,c){return a in CKEDITOR.dtd.$listItem||
a in CKEDITOR.dtd.$tableContent?a==c||"dt"==a&&"dd"==c||"dd"==a&&"dt"==c:!1}var q=new CKEDITOR.htmlParser,p=k instanceof CKEDITOR.htmlParser.element?k:"string"==typeof k?new CKEDITOR.htmlParser.element(k):new CKEDITOR.htmlParser.fragment,u=[],y=[],v=p,A="textarea"==p.name,z="pre"==p.name;q.onTagOpen=function(c,g,k,m){g=new CKEDITOR.htmlParser.element(c,g);g.isUnknown&&k&&(g.isEmpty=!0);g.isOptionalClose=m;if(b(g))u.push(g);else{if("pre"==c)z=!0;else{if("br"==c&&z){v.add(new CKEDITOR.htmlParser.text("\n"));
return}"textarea"==c&&(A=!0)}if("br"==c)y.push(g);else{for(;!(m=(k=v.name)?CKEDITOR.dtd[k]||(v._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):a,g.isUnknown||v.isUnknown||m[c]);)if(v.isOptionalClose)q.onTagClose(k);else if(c in f&&k in f)k=v.children,(k=k[k.length-1])&&"li"==k.name||n(k=new CKEDITOR.htmlParser.element("li"),v),!g.returnPoint&&(g.returnPoint=v),v=k;else if(c in CKEDITOR.dtd.$listItem&&!t(c,k))q.onTagOpen("li"==c?"ul":"dl",{},0,1);else if(k in h&&!t(c,k))!g.returnPoint&&(g.returnPoint=
v),v=v.parent;else if(k in CKEDITOR.dtd.$inline&&u.unshift(v),v.parent)n(v,v.parent,1);else{g.isOrphan=1;break}d(c);e();g.parent=v;g.isEmpty?n(g):v=g}}};q.onTagClose=function(a){for(var c=u.length-1;0<=c;c--)if(a==u[c].name){u.splice(c,1);return}for(var d=[],b=[],g=v;g!=p&&g.name!=a;)g._.isBlockLike||b.unshift(g),d.push(g),g=g.returnPoint||g.parent;if(g!=p){for(c=0;c<d.length;c++){var f=d[c];n(f,f.parent)}v=g;g._.isBlockLike&&e();n(g,g.parent);g==v&&(v=v.parent);u=u.concat(b)}"body"==a&&(l=!1)};q.onText=
function(c){if(!(v._.hasInlineStarted&&!y.length||z||A)&&(c=CKEDITOR.tools.ltrim(c),0===c.length))return;var b=v.name,f=b?CKEDITOR.dtd[b]||(v._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):a;if(!A&&!f["#"]&&b in h)q.onTagOpen(g[b]||""),q.onText(c);else{e();d();z||A||(c=c.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));c=new CKEDITOR.htmlParser.text(c);if(r(v,c))this.onTagOpen(l,{},0,1);v.add(c)}};q.onCDATA=function(a){v.add(new CKEDITOR.htmlParser.cdata(a))};q.onComment=function(a){e();d();v.add(new CKEDITOR.htmlParser.comment(a))};
q.parse(m);for(e();v!=p;)n(v,v.parent,1);c(p);return p};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(a,b){isNaN(b)&&(b=this.children.length);var g=0<b?this.children[b-1]:null;if(g){if(a._.isBlockLike&&g.type==CKEDITOR.NODE_TEXT&&(g.value=CKEDITOR.tools.rtrim(g.value),0===g.value.length)){this.children.pop();this.add(a);return}g.next=a}a.previous=g;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,g){if(this.childrenFilteredBy!=a.id){g=this.getFilterContext(g);if(b&&!this.parent)a.onRoot(g,this);this.childrenFilteredBy=a.id;for(b=0;b<this.children.length;b++)!1===this.children[b].filter(a,g)&&b--}},writeHtml:function(a,b){b&&this.filter(b);this.writeChildrenHtml(a)},writeChildrenHtml:function(a,b,g){var d=this.getFilterContext();
if(g&&!this.parent&&b)b.onRoot(d,this);b&&this.filterChildren(b,!1,d);b=0;g=this.children;for(d=g.length;b<d;b++)g[b].writeHtml(a)},forEach:function(a,b,g){if(!(g||b&&this.type!=b))var d=a(this);if(!1!==d){g=this.children;for(var e=0;e<g.length;e++)d=g[e],d.type==CKEDITOR.NODE_ELEMENT?d.forEach(a,b):b&&d.type!=b||a(d)}},getFilterContext:function(a){return a||{}}}})();"use strict";(function(){function b(){this.rules=[]}function h(f,a,g,h){var k,l;for(k in a)(l=f[k])||(l=f[k]=new b),l.add(a[k],g,h)}
CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(f){this.id=CKEDITOR.tools.getNextNumber();this.elementNameRules=new b;this.attributeNameRules=new b;this.elementsRules={};this.attributesRules={};this.textRules=new b;this.commentRules=new b;this.rootRules=new b;f&&this.addRules(f,10)},proto:{addRules:function(b,a){var g;"number"==typeof a?g=a:a&&"priority"in a&&(g=a.priority);"number"!=typeof g&&(g=10);"object"!=typeof a&&(a={});b.elementNames&&this.elementNameRules.addMany(b.elementNames,
g,a);b.attributeNames&&this.attributeNameRules.addMany(b.attributeNames,g,a);b.elements&&h(this.elementsRules,b.elements,g,a);b.attributes&&h(this.attributesRules,b.attributes,g,a);b.text&&this.textRules.add(b.text,g,a);b.comment&&this.commentRules.add(b.comment,g,a);b.root&&this.rootRules.add(b.root,g,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,g){return this.textRules.exec(b,a,g)},onComment:function(b,a,g){return this.commentRules.exec(b,a,g)},onRoot:function(b,a){return this.rootRules.exec(b,a)},onElement:function(b,a){for(var g=[this.elementsRules["^"],this.elementsRules[a.name],this.elementsRules.$],h,k=0;3>k;k++)if(h=g[k]){h=h.exec(b,a,this);if(!1===h)return null;if(h&&h!=a)return this.onNode(b,h);if(a.parent&&!a.name)break}return a},onNode:function(b,a){var g=a.type;return g==CKEDITOR.NODE_ELEMENT?this.onElement(b,a):g==CKEDITOR.NODE_TEXT?
new CKEDITOR.htmlParser.text(this.onText(b,a.value,a)):g==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(b,a.value,a)):null},onAttribute:function(b,a,g,h){return(g=this.attributesRules[g])?g.exec(b,h,a,this):h}}});CKEDITOR.htmlParser.filterRulesGroup=b;b.prototype={add:function(b,a,g){this.rules.splice(this.findIndex(a),0,{value:b,priority:a,options:g})},addMany:function(b,a,g){for(var h=[this.findIndex(a),0],k=0,l=b.length;k<l;k++)h.push({value:b[k],priority:a,options:g});this.rules.splice.apply(this.rules,
h)},findIndex:function(b){for(var a=this.rules,g=a.length-1;0<=g&&b<a[g].priority;)g--;return g+1},exec:function(b,a){var g=a instanceof CKEDITOR.htmlParser.node||a instanceof CKEDITOR.htmlParser.fragment,h=Array.prototype.slice.call(arguments,1),k=this.rules,l=k.length,d,e,c,n;for(n=0;n<l;n++)if(g&&(d=a.type,e=a.name),c=k[n],!(b.nonEditable&&!c.options.applyToAll||b.nestedEditable&&c.options.excludeNestedEditable)){c=c.value.apply(null,h);if(!1===c||g&&c&&(c.name!=e||c.type!=d))return c;null!=c&&
(h[0]=a=c)}return a},execOnName:function(b,a){for(var g=0,h=this.rules,k=h.length,l;a&&g<k;g++)l=h[g],b.nonEditable&&!l.options.applyToAll||b.nestedEditable&&l.options.excludeNestedEditable||(a=a.replace(l.value[0],l.value[1]));return a}}})();(function(){function b(c,d){function b(a){return a||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function e(c,d){return function(e){if(e.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var g=
[],k=f(e),l,w;if(k)for(h(k,1)&&g.push(k);k;)m(k)&&(l=a(k))&&h(l)&&((w=a(l))&&!m(w)?g.push(l):(b(n).insertAfter(l),l.remove())),k=k.previous;for(k=0;k<g.length;k++)g[k].remove();if(g=!c||!1!==("function"==typeof d?d(e):d))n||CKEDITOR.env.needsBrFiller||e.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT?n||CKEDITOR.env.needsBrFiller||!(7<document.documentMode||e.name in CKEDITOR.dtd.tr||e.name in CKEDITOR.dtd.$listItem)?(g=f(e),g=!g||"form"==e.name&&"input"==g.name):g=!1:g=!1;g&&e.add(b(c))}}}function h(a,c){if((!n||
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(v))&&(d.index&&((new CKEDITOR.htmlParser.text(a.value.substring(0,d.index))).insertBefore(a),a.value=d[0]),!CKEDITOR.env.needsBrFiller&&n&&(!c||a.parent.name in w)||!n&&((d=a.previous)&&"br"==d.name||!d||m(d)))?!0:!1}var l={elements:{}},n="html"==d,w=CKEDITOR.tools.extend({},x),F;for(F in w)"#"in z[F]||delete w[F];for(F in w)l.elements[F]=
e(n,c.config.fillEmptyBlocks);l.root=e(n,!1);l.elements.br=function(c){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&&g(e);)e=e.next;var f=a(d);!e&&m(d.parent)?k(d.parent,b(c)):m(e)&&f&&!m(f)&&b(c).insertBefore(e)}}}}(n);return l}function h(a,c){return a!=CKEDITOR.ENTER_BR&&!1!==c?a==CKEDITOR.ENTER_DIV?"div":"p":!1}function f(a){for(a=a.children[a.children.length-1];a&&
g(a);)a=a.previous;return a}function a(a){for(a=a.previous;a&&g(a);)a=a.previous;return a}function g(a){return a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(a.value)||a.type==CKEDITOR.NODE_ELEMENT&&a.attributes["data-cke-bookmark"]}function m(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in x||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function k(a,c){var d=a.children[a.children.length-1];a.children.push(c);c.parent=a;d&&(d.next=c,c.previous=d)}function l(a){a=a.attributes;"false"!=a.contenteditable&&
(a["data-cke-editable"]=a.contenteditable?"true":1);a.contenteditable="false"}function d(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(J,function(a,c,d){return"\x3c"+c+d.replace(H,function(a,c){return D.test(c)&&-1==d.indexOf("data-cke-saved-"+c)?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a:a})+"\x3e"})}function c(a,c){return a.replace(c,function(a,c,d){0===a.indexOf("\x3ctextarea")&&
(a=c+p(d).replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;")+"\x3c/textarea\x3e");return"\x3ccke:encoded\x3e"+encodeURIComponent(a)+"\x3c/cke:encoded\x3e"})}function n(a){return a.replace(K,function(a,c){return decodeURIComponent(c)})}function r(a){return a.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,function(a){return"\x3c!--"+A+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\x3e"})}function t(a){return CKEDITOR.tools.array.reduce(a.split(""),function(a,c){var d=c.toLowerCase(),b=c.toUpperCase(),
e=q(d);d!==b&&(e+="|"+q(b));return a+("("+e+")")},"")}function q(a){var c;c=a.charCodeAt(0);var d=c.toString(16);c={htmlCode:"\x26#"+c+";?",hex:"\x26#x0*"+d+";?",entity:{"\x3c":"\x26lt;","\x3e":"\x26gt;",":":"\x26colon;"}[a]};for(var b in c)c[b]&&(a+="|"+c[b]);return a}function p(a){return a.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(a,c){return decodeURIComponent(c)})}function u(a,c){var d=c._.dataStore;return a.replace(/\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g,function(a,
c){return decodeURIComponent(c)}).replace(/\{cke_protected_(\d+)\}/g,function(a,c){return d&&d[c]||""})}function y(a,c){var d=[],b=c.config.protectedSource,e=c._.dataStore||(c._.dataStore={id:1}),g=/<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g,b=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(b);a=a.replace(/\x3c!--[\s\S]*?--\x3e/g,function(a){return"\x3c!--{cke_tempcomment}"+(d.push(a)-1)+"--\x3e"});for(var f=0;f<b.length;f++)a=a.replace(b[f],function(a){a=
a.replace(g,function(a,c,b){return d[b]});return/cke_temp(comment)?/.test(a)?a:"\x3c!--{cke_temp}"+(d.push(a)-1)+"--\x3e"});a=a.replace(g,function(a,c,b){return"\x3c!--"+A+(c?"{C}":"")+encodeURIComponent(d[b]).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,c){e[e.id]=decodeURIComponent(c);return"{cke_protected_"+e.id++ +"}"})});return a=
a.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(a,d,b,e){return"\x3c"+d+b+"\x3e"+u(p(e),c)+"\x3c/"+d+"\x3e"})}CKEDITOR.htmlDataProcessor=function(a){var d,g,f=this;this.editor=a;this.dataFilter=d=new CKEDITOR.htmlParser.filter;this.htmlFilter=g=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter;d.addRules(B);d.addRules(C,{applyToAll:!0});d.addRules(b(a,"data"),{applyToAll:!0});g.addRules(G);g.addRules(E,{applyToAll:!0});g.addRules(b(a,"html"),{applyToAll:!0});
a.on("toHtml",function(d){d=d.data;var b=d.dataValue,g,b=b.replace(F,""),b=y(b,a),b=c(b,I),b=e(b),b=c(b,M),b=b.replace(R,"$1cke:$2"),b=b.replace(N,"\x3ccke:$1$2\x3e\x3c/cke:$1\x3e"),b=b.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),b=b.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");g=d.context||a.editable().getName();var f;CKEDITOR.env.ie&&9>CKEDITOR.env.version&&"pre"==g&&(g="div",b="\x3cpre\x3e"+b+"\x3c/pre\x3e",f=1);g=a.document.createElement(g);g.setHtml("a"+b);b=g.getHtml().substr(1);
b=b.replace(new RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),"");f&&(b=b.replace(/^<pre>|<\/pre>$/gi,""));b=b.replace(S,"$1$2");b=n(b);b=p(b);g=!1===d.fixForBody?!1:h(d.enterMode,a.config.autoParagraph);b=CKEDITOR.htmlParser.fragment.fromHtml(b,d.context,g);g&&(f=b,!f.children.length&&CKEDITOR.dtd[f.name][g]&&(g=new CKEDITOR.htmlParser.element(g),f.add(g)));d.dataValue=b},null,null,5);a.on("toHtml",function(c){c.data.filter.applyTo(c.data.dataValue,!0,c.data.dontFilter,c.data.enterMode)&&a.fire("dataFiltered")},
null,null,6);a.on("toHtml",function(a){a.data.dataValue.filterChildren(f.dataFilter,!0)},null,null,10);a.on("toHtml",function(a){a=a.data;var c=a.dataValue,d=new CKEDITOR.htmlParser.basicWriter;c.writeChildrenHtml(d);c=d.getHtml(!0);a.dataValue=r(c)},null,null,15);a.on("toDataFormat",function(c){var d=c.data.dataValue;c.data.enterMode!=CKEDITOR.ENTER_BR&&(d=d.replace(/^<br *\/?>/i,""));c.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(d,c.data.context,h(c.data.enterMode,a.config.autoParagraph))},
null,null,5);a.on("toDataFormat",function(a){a.data.dataValue.filterChildren(f.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(c){var d=c.data.dataValue,b=f.writer;b.reset();d.writeChildrenHtml(b);d=b.getHtml(!0);d=p(d);d=u(d,a);c.data.dataValue=d},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,c,d,b){var e=this.editor,g,f,h,k;c&&"object"==typeof c?(g=c.context,d=c.fixForBody,
b=c.dontFilter,f=c.filter,h=c.enterMode,k=c.protectedWhitespaces):g=c;g||null===g||(g=e.editable().getName());return e.fire("toHtml",{dataValue:a,context:g,fixForBody:d,dontFilter:b,filter:f||e.filter,enterMode:h||e.enterMode,protectedWhitespaces:k}).dataValue},toDataFormat:function(a,c){var d,b,e;c&&(d=c.context,b=c.filter,e=c.enterMode);d||null===d||(d=this.editor.editable().getName());return this.editor.fire("toDataFormat",{dataValue:a,filter:b||this.editor.filter,context:d,enterMode:e||this.editor.enterMode}).dataValue}};
var v=/(?:&nbsp;|\xa0)$/,A="{cke_protected}",z=CKEDITOR.dtd,w="caption colgroup col thead tfoot tbody".split(" "),x=CKEDITOR.tools.extend({},z.$blockLimit,z.$block),B={elements:{input:l,textarea:l}},C={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 c=a.attributes.src.toLowerCase().replace(/[^a-z]/gi,"");if(0===c.indexOf("javascript")||0===c.indexOf("data"))a.attributes["data-cke-pa-src"]=
a.attributes.src,delete a.attributes.src}}}},G={elements:{embed:function(a){var c=a.parent;if(c&&"object"==c.name){var d=c.attributes.width,c=c.attributes.height;d&&(a.attributes.width=d);c&&(a.attributes.height=c)}},a:function(a){var c=a.attributes;if(!(a.children.length||c.name||c.id||a.attributes["data-cke-saved-name"]))return!1}}},E={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(a){var c=
a.attributes;if(c){if(c["data-cke-temp"])return!1;for(var d=["name","href","src"],b,e=0;e<d.length;e++)b="data-cke-saved-"+d[e],b in c&&delete c[d[e]]}return a},table:function(a){a.children.slice(0).sort(function(a,c){var d,b;a.type==CKEDITOR.NODE_ELEMENT&&c.type==a.type&&(d=CKEDITOR.tools.indexOf(w,a.name),b=CKEDITOR.tools.indexOf(w,c.name));-1<d&&-1<b&&d!=b||(d=a.parent?a.getIndex():-1,b=c.parent?c.getIndex():-1);return d>b?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 c=a.children[0];c&&c.value&&(c.value=CKEDITOR.tools.trim(c.value));a.attributes.type||(a.attributes.type="text/css")},title:function(a){var c=a.children[0];!c&&k(a,c=new CKEDITOR.htmlParser.text);c.value=a.attributes["data-cke-title"]||""},input:d,textarea:d},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,
""))||!1}}};CKEDITOR.env.ie&&(E.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,function(a){return a.toLowerCase()})});var J=/<(a|area|img|input|source)\b([^>]*)>/gi,H=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,D=/^(href|src|name)$/i,M=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,I=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,K=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,F=new RegExp("("+t("\x3ccke:encoded\x3e")+"(.*?)"+t("\x3c/cke:encoded\x3e")+
")|("+t("\x3c")+t("/")+"?"+t("cke:encoded\x3e")+")","gi"),R=/(<\/?)((?:object|embed|param|html|body|head|title)([\s][^>]*)?>)/gi,S=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,N=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi})();"use strict";CKEDITOR.htmlParser.element=function(b,h){this.name=b;this.attributes=h||{};this.children=[];var f=b||"",a=f.match(/^cke:(.*)/);a&&(f=a[1]);f=!!(CKEDITOR.dtd.$nonBodyContent[f]||CKEDITOR.dtd.$block[f]||CKEDITOR.dtd.$listItem[f]||CKEDITOR.dtd.$tableContent[f]||
CKEDITOR.dtd.$nonEditable[f]||"br"==f);this.isEmpty=!!CKEDITOR.dtd.$empty[b];this.isUnknown=!CKEDITOR.dtd[b];this._={isBlockLike:f,hasInlineStarted:this.isEmpty||!f}};CKEDITOR.htmlParser.cssStyle=function(b){var h={};((b instanceof CKEDITOR.htmlParser.element?b.attributes.style:b)||"").replace(/&quot;/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(b,a,g){"font-family"==a&&(g=g.replace(/["']/g,""));h[a.toLowerCase()]=g});return{rules:h,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 h)h[a]&&b.push(a,":",h[a],";");return b.join("")}}};(function(){function b(a){return function(b){return b.type==CKEDITOR.NODE_ELEMENT&&("string"==typeof a?b.name==a:b.name in a)}}var h=function(a,b){a=a[0];b=b[0];return a<b?-1:a>b?1:0},f=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,
{type:CKEDITOR.NODE_ELEMENT,add:f.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(a,b){var f=this,h,l;b=f.getFilterContext(b);if(!f.parent)a.onRoot(b,f);for(;;){h=f.name;if(!(l=a.onElementName(b,h)))return this.remove(),!1;f.name=l;if(!(f=a.onElement(b,f)))return this.remove(),!1;if(f!==this)return this.replaceWith(f),!1;if(f.name==h)break;if(f.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(f),!1;if(!f.name)return this.replaceWithChildren(),
!1}h=f.attributes;var d,e;for(d in h){for(l=h[d];;)if(e=a.onAttributeName(b,d))if(e!=d)delete h[d],d=e;else break;else{delete h[d];break}e&&(!1===(l=a.onAttribute(b,f,e,l))?delete h[e]:h[e]=l)}f.isEmpty||this.filterChildren(a,!1,b);return!0},filterChildren:f.filterChildren,writeHtml:function(a,b){b&&this.filter(b);var f=this.name,k=[],l=this.attributes,d,e;a.openTag(f,l);for(d in l)k.push([d,l[d]]);a.sortAttributes&&k.sort(h);d=0;for(e=k.length;d<e;d++)l=k[d],a.attribute(l[0],l[1]);a.openTagClose(f,
this.isEmpty);this.writeChildrenHtml(a);this.isEmpty||a.closeTag(f)},writeChildrenHtml:f.writeChildrenHtml,replaceWithChildren:function(){for(var a=this.children,b=a.length;b;)a[--b].insertAfter(this);this.remove()},forEach:f.forEach,getFirst:function(a){if(!a)return this.children.length?this.children[0]:null;"function"!=typeof a&&(a=b(a));for(var g=0,f=this.children.length;g<f;++g)if(a(this.children[g]))return this.children[g];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,f=a.length;b<f;++b)a[b].parent=this},getOuterHtml:function(){var a=new CKEDITOR.htmlParser.basicWriter;this.writeHtml(a);return a.getHtml()},split:function(a){for(var b=this.children.splice(a,this.children.length-a),f=this.clone(),h=0;h<b.length;++h)b[h].parent=f;f.children=b;b[0]&&(b[0].previous=null);0<a&&(this.children[a-1].next=null);this.parent.add(f,
this.getIndex()+1);return f},find:function(a,b){void 0===b&&(b=!1);var f=[],h;for(h=0;h<this.children.length;h++){var l=this.children[h];"function"==typeof a&&a(l)?f.push(l):"string"==typeof a&&l.name===a&&f.push(l);b&&l.find&&(f=f.concat(l.find(a,b)))}return f},findOne:function(a,b){var f=null,h=CKEDITOR.tools.array.find(this.children,function(h){var d="function"===typeof a?a(h):h.name===a;if(d||!b)return d;h.children&&h.findOne&&(f=h.findOne(a,!0));return!!f});return f||h||null},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={nonEditable:!1,nestedEditable:!1});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 f=0;f<b.length;f+=2)a[b[f]]=b[f+1]}return a}},!0)})();(function(){var b=/{([^}]+)}/g;CKEDITOR.template=function(b){this.source="function"===typeof b?b:String(b)};CKEDITOR.template.prototype.output=function(h,f){var a=("function"===typeof this.source?this.source(h):this.source).replace(b,function(a,b){return void 0!==h[b]?h[b]:
a});return f?f.push(a):a}})();delete CKEDITOR.loadFullCore;CKEDITOR.instances={};CKEDITOR.document=new CKEDITOR.dom.document(document);CKEDITOR.add=function(b){function h(){CKEDITOR.currentInstance==b&&(CKEDITOR.currentInstance=null,CKEDITOR.fire("currentInstance"))}CKEDITOR.instances[b.name]=b;b.on("focus",function(){CKEDITOR.currentInstance!=b&&(CKEDITOR.currentInstance=b,CKEDITOR.fire("currentInstance"))});b.on("blur",h);b.on("destroy",h);CKEDITOR.fire("instance",null,b)};CKEDITOR.remove=function(b){delete CKEDITOR.instances[b.name]};
(function(){var b={};CKEDITOR.addTemplate=function(h,f){var a=b[h];if(a)return a;a={name:h,source:f};CKEDITOR.fire("template",a);return b[h]=new CKEDITOR.template(a.source)};CKEDITOR.getTemplate=function(h){return b[h]}})();(function(){var b=[];CKEDITOR.addCss=function(h){b.push(h)};CKEDITOR.getCss=function(){return b.join("\n")}})();CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&&CKEDITOR.fire("reset")});CKEDITOR.TRISTATE_ON=1;CKEDITOR.TRISTATE_OFF=2;CKEDITOR.TRISTATE_DISABLED=
0;(function(){CKEDITOR.inline=function(b,h){b=CKEDITOR.editor._getEditorElement(b);if(!b)return null;var f=new CKEDITOR.editor(h,b,CKEDITOR.ELEMENT_MODE_INLINE),a=b.is("textarea")?b:null;a?(f.setData(a.getValue(),null,!0),b=CKEDITOR.dom.element.createFromHtml('\x3cdiv contenteditable\x3d"'+!!f.readOnly+'" class\x3d"cke_textarea_inline"\x3e'+a.getValue()+"\x3c/div\x3e",CKEDITOR.document),b.insertAfter(a),a.hide(),a.$.form&&f._attachToForm()):f.setData(b.getHtml(),null,!0);f.on("loaded",function(){f.fire("uiReady");
f.editable(b);f.container=b;f.ui.contentsElement=b;f.setData(f.getData(1));f.resetDirty();f.fire("contentDom");f.mode="wysiwyg";f.fire("mode");f.status="ready";f.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,f)},null,null,1E4);f.on("destroy",function(){var b=f.container;a&&b&&(b.clearCustomData(),b.remove());a&&a.show();f.element.clearCustomData();delete f.element});return f};CKEDITOR.inlineAll=function(){var b,h,f;for(f in CKEDITOR.dtd.$editable)for(var a=CKEDITOR.document.getElementsByTag(f),
g=0,m=a.count();g<m;g++)b=a.getItem(g),"true"==b.getAttribute("contenteditable")&&(h={element:b,config:{}},!1!==CKEDITOR.fire("inline",h)&&CKEDITOR.inline(b,h.config))};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})})();CKEDITOR.replaceClass="ckeditor";(function(){function b(a,b,m,k){a=CKEDITOR.editor._getEditorElement(a);if(!a)return null;var l=new CKEDITOR.editor(b,a,k);k==CKEDITOR.ELEMENT_MODE_REPLACE&&(a.setStyle("visibility","hidden"),l._.required=a.hasAttribute("required"),
a.removeAttribute("required"));m&&l.setData(m,null,!0);l.on("loaded",function(){l.isDestroyed()||l.isDetached()||(f(l),k==CKEDITOR.ELEMENT_MODE_REPLACE&&l.config.autoUpdateElement&&a.$.form&&l._attachToForm(),l.setMode(l.config.startupMode,function(){l.resetDirty();l.status="ready";l.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,l)}))});l.on("destroy",h);return l}function h(){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 f(a){var b=a.name,f=a.element,h=a.elementMode,l=a.fire("uiSpace",{space:"top",html:""}).html,d=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:l?'\x3cspan id\x3d"'+
a.ui.spaceId("top")+'" class\x3d"cke_top cke_reset_all" role\x3d"presentation" style\x3d"height:auto"\x3e'+l+"\x3c/span\x3e":"",contentId:a.ui.spaceId("contents"),bottomHtml:d?'\x3cspan id\x3d"'+a.ui.spaceId("bottom")+'" class\x3d"cke_bottom cke_reset_all" role\x3d"presentation"\x3e'+d+"\x3c/span\x3e":"",outerEl:CKEDITOR.env.ie?"span":"div"}));h==CKEDITOR.ELEMENT_MODE_REPLACE?(f.hide(),b.insertAfter(f)):f.append(b);a.container=b;a.ui.contentsElement=a.ui.space("contents");l&&a.ui.space("top").unselectable();
d&&a.ui.space("bottom").unselectable();f=a.config.width;h=a.config.height;f&&b.setStyle("width",CKEDITOR.tools.cssLength(f));h&&a.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(h));b.disableContextMenu();CKEDITOR.env.webkit&&b.on("focus",function(){a.focus()});a.fireOnce("uiReady")}CKEDITOR.replace=function(a,g){return b(a,g,null,CKEDITOR.ELEMENT_MODE_REPLACE)};CKEDITOR.appendTo=function(a,g,f){return b(a,g,f,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=
document.getElementsByTagName("textarea"),b=0;b<a.length;b++){var f=null,h=a[b];if(h.name||h.id){if("string"==typeof arguments[0]){if(!(new RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)")).test(h.className))continue}else if("function"==typeof arguments[0]&&(f={},!1===arguments[0](h,f)))continue;this.replace(h,f)}}};CKEDITOR.editor.prototype.addMode=function(a,b){(this._.modes||(this._.modes={}))[a]=b};CKEDITOR.editor.prototype.setMode=function(a,b){var f=this,h=this._.modes;if(a!=f.mode&&h&&h[a]){f.fire("beforeSetMode",
a);if(f.mode){var l=f.checkDirty(),h=f._.previousModeData,d,e=0;f.fire("beforeModeUnload");f.editable(0);f._.previousMode=f.mode;f._.previousModeData=d=f.getData(1);"source"==f.mode&&h==d&&(f.fire("lockSnapshot",{forceUpdate:!0}),e=1);f.ui.space("contents").setHtml("");f.mode=""}else f._.previousModeData=f.getData(1);this._.modes[a](function(){f.mode=a;void 0!==l&&!l&&f.resetDirty();e?f.fire("unlockSnapshot"):"wysiwyg"==a&&f.fire("saveSnapshot");setTimeout(function(){f.isDestroyed()||f.isDetached()||
(f.fire("mode"),b&&b.call(f))},0)})}};CKEDITOR.editor.prototype.resize=function(a,b,f,h){var l=this.container,d=this.ui.space("contents"),e=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement;h=h?this.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}):l;h.setSize("width",a,!0);e&&(e.style.width="1%");var c=(h.$.offsetHeight||0)-(d.$.clientHeight||0),l=Math.max(b-(f?0:c),0);b=f?b+c:b;d.setStyle("height",l+"px");e&&(e.style.width=
"100%");this.fire("resize",{outerHeight:b,contentsHeight:l,outerWidth:a||h.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 b(c){var d=c.editor,b=c.data.path,e=b.blockLimit,g=c.data.selection,f=g.getRanges()[0],l;if(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)if(g=
h(g,b))g.appendBogus(),l=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.edge&&d._.previousActive;k(d,b.block,e)&&f.collapsed&&!f.getCommonAncestor().isReadOnly()&&(b=f.clone(),b.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),e=new CKEDITOR.dom.walker(b),e.guard=function(c){return!a(c)||c.type==CKEDITOR.NODE_COMMENT||c.isReadOnly()},!e.checkForward()||b.checkStartOfBlock()&&b.checkEndOfBlock())&&(d=f.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(),l=1,c.cancel());l&&f.select()}function h(c,d){if(c.isFake)return 0;var b=d.block||d.blockLimit,e=b&&b.getLast(a);if(!(!b||!b.isBlockBoundary()||e&&e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary()||b.is("pre")||b.getBogus()))return b}function f(a){var c=a.data.getTarget();c.is("input")&&(c=c.getAttribute("type"),"submit"!=c&&"reset"!=c||a.data.preventDefault())}function a(a){return n(a)&&r(a)}function g(a,
c){return function(d){var b=d.data.$.toElement||d.data.$.fromElement||d.data.$.relatedTarget;(b=b&&b.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(b):null)&&(c.equals(b)||c.contains(b))||a.call(this,d)}}function m(c){function d(c){return function(d,e){e&&d.type==CKEDITOR.NODE_ELEMENT&&d.is(g)&&(b=d);if(!(e||!a(d)||c&&q(d)))return!1}}var b,e=c.getRanges()[0];c=c.root;var g={table:1,ul:1,ol:1,dl:1};if(e.startPath().contains(g)){var f=e.clone();f.collapse(1);f.setStartAt(c,CKEDITOR.POSITION_AFTER_START);
c=new CKEDITOR.dom.walker(f);c.guard=d();c.checkBackward();if(b)return f=e.clone(),f.collapse(),f.setEndAt(b,CKEDITOR.POSITION_AFTER_END),c=new CKEDITOR.dom.walker(f),c.guard=d(!0),b=!1,c.checkForward(),b}return null}function k(a,c,d){return!1!==a.config.autoParagraph&&a.activeEnterMode!=CKEDITOR.ENTER_BR&&(a.editable().equals(d)&&!c||c&&"true"==c.getAttribute("contenteditable"))}function l(a){return a.activeEnterMode!=CKEDITOR.ENTER_BR&&!1!==a.config.autoParagraph?a.activeEnterMode==CKEDITOR.ENTER_DIV?
"div":"p":!1}function d(a){a&&a.isEmptyInlineRemoveable()&&a.remove()}function e(a){var c=a.editor;c.getSelection().scrollIntoView();setTimeout(function(){c.fire("saveSnapshot")},0)}function c(a,c,d){var b=a.getCommonAncestor(c);for(c=a=d?c:a;(a=a.getParent())&&!b.equals(a)&&1==a.getChildCount();)c=a;c.remove()}var n,r,t,q,p,u,y,v,A,z;CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(a,c){this.base(c.$||c);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 c=this.$.scrollTop;this.$.focus();
this.$.scrollTop=c}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,c){var d=Array.prototype.slice.call(arguments,0);CKEDITOR.env.ie&&/^focus|blur$/.exec(a)&&(a="focus"==a?"focusin":"focusout",c=g(c,this),d[0]=a,d[1]=c);return CKEDITOR.dom.element.prototype.on.apply(this,d)},attachListener:function(a){!this._.listeners&&
(this._.listeners=[]);var c=Array.prototype.slice.call(arguments,1),c=a.on.apply(a,c);this._.listeners.push(c);return c},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(c){}},restoreAttrs:function(){var a=this._.attrChanges,c,d;for(d in a)a.hasOwnProperty(d)&&(c=a[d],null!==c?this.setAttribute(d,c):this.removeAttribute(d))},attachClass:function(a){var c=this.getCustomData("classes");this.hasClass(a)||(!c&&(c=[]),c.push(a),this.setCustomData("classes",
c),this.addClass(a))},changeAttr:function(a,c){var d=this.getAttribute(a);c!==d&&(!this._.attrChanges&&(this._.attrChanges={}),a in this._.attrChanges||(this._.attrChanges[a]=d),this.setAttribute(a,c))},insertText:function(a){this.editor.focus();this.insertHtml(this.transformPlainTextToHtml(a),"text")},transformPlainTextToHtml:function(a){var c=this.editor.getSelection().getStartElement().hasAscendant("pre",!0)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(a,
c)},insertHtml:function(a,c,d){var b=this.editor;b.focus();b.fire("saveSnapshot");d||(d=b.getSelection().getRanges()[0]);u(this,c||"html",a,d);d.select();e(this);this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(a,c,d){u(this,d||"html",a,c);this.editor.fire("afterInsertHtml",{intoRange:c})},insertElement:function(c,d){var b=this.editor;b.focus();b.fire("saveSnapshot");var g=b.activeEnterMode,b=b.getSelection(),f=c.getName(),f=CKEDITOR.dtd.$block[f];d||(d=b.getRanges()[0]);this.insertElementIntoRange(c,
d)&&(d.moveToPosition(c,CKEDITOR.POSITION_AFTER_END),f&&((f=c.getNext(function(c){return a(c)&&!q(c)}))&&f.type==CKEDITOR.NODE_ELEMENT&&f.is(CKEDITOR.dtd.$block)?f.getDtd()["#"]?d.moveToElementEditStart(f):d.moveToElementEditEnd(c):f||g==CKEDITOR.ENTER_BR||(f=d.fixBlock(!0,g==CKEDITOR.ENTER_DIV?"div":"p"),d.moveToElementEditStart(f))));b.selectRanges([d]);e(this)},insertElementIntoSelection:function(a){this.insertElement(a)},insertElementIntoRange:function(a,c){var b=this.editor,e=b.config.enterMode,
g=a.getName(),f=CKEDITOR.dtd.$block[g];if(c.checkReadOnly())return!1;c.deleteContents(1);c.startContainer.type==CKEDITOR.NODE_ELEMENT&&(c.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})?y(c):c.startContainer.is(CKEDITOR.dtd.$list)&&v(c));var h,k;if(f)for(;(h=c.getCommonAncestor(0,1))&&(k=CKEDITOR.dtd[h.getName()])&&(!k||!k[g]);)if(h.getName()in CKEDITOR.dtd.span){var f=c.splitElement(h),l=c.createBookmark();d(h);d(f);c.moveToBookmark(l)}else c.checkStartOfBlock()&&c.checkEndOfBlock()?(c.setStartBefore(h),
c.collapse(!0),h.remove()):c.splitBlock(e==CKEDITOR.ENTER_DIV?"div":"p",b.editable());c.insertNode(a);return!0},setData:function(a,c){c||(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 c=this.getHtml();a||(c=this.editor.dataProcessor.toDataFormat(c));return c},setReadOnly:function(a){this.setAttribute("contenteditable",!a)},detach:function(){this.status="detached";
this.editor.setData(this.editor.getData(),{internal:!0});this.clearListeners();try{this._.cleanCustomData()}catch(a){if(!CKEDITOR.env.ie||-2146828218!==a.number)throw a;}this.editor.fire("contentDomUnload");delete this.editor.document;delete this.editor.window;delete this.editor},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},fixInitialSelection:function(){function a(){var c=d.getDocument().$,b=c.getSelection(),e;a:if(b.anchorNode&&b.anchorNode==d.$)e=!0;else{if(CKEDITOR.env.webkit&&
(e=d.getDocument().getActive())&&e.equals(d)&&!b.anchorNode){e=!0;break a}e=void 0}e&&(e=new CKEDITOR.dom.range(d),e.moveToElementEditStart(d),c=c.createRange(),c.setStart(e.startContainer.$,e.startOffset),c.collapse(!0),b.removeAllRanges(),b.addRange(c))}function c(){var a=d.getDocument().$,b=a.selection,e=d.getDocument().getActive();"None"==b.type&&e.equals(d)&&(b=new CKEDITOR.dom.range(d),a=a.body.createTextRange(),b.moveToElementEditStart(d),b=b.startContainer,b.type!=CKEDITOR.NODE_ELEMENT&&(b=
b.getParent()),a.moveToElementText(b.$),a.collapse(!0),a.select())}var d=this;if(CKEDITOR.env.ie&&(9>CKEDITOR.env.version||CKEDITOR.env.quirks))this.hasFocus&&(this.focus(),c());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()};A.eol.detect(a,this);A.bogus.exclude(a);A.cell.shrink(a);a.fragment=a.range.cloneContents();
A.tree.rebuild(a,this);A.eol.fix(a,this);return new CKEDITOR.dom.documentFragment(a.fragment.$)},extractHtmlFromRange:function(a,c){var d=z,b={range:a,doc:a.document},e=this.getHtmlFromRange(a);if(a.collapsed)return a.optimize(),e;a.enlarge(CKEDITOR.ENLARGE_INLINE,1);d.table.detectPurge(b);b.bookmark=a.createBookmark();delete b.range;var g=this.editor.createRange();g.moveToPosition(b.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START);b.targetBookmark=g.createBookmark();d.list.detectMerge(b,this);
d.table.detectRanges(b,this);d.block.detectMerge(b,this);b.tableContentsRanges?(d.table.deleteRanges(b),a.moveToBookmark(b.bookmark),b.range=a):(a.moveToBookmark(b.bookmark),b.range=a,a.extractContents(d.detectExtractMerge(b)));a.moveToBookmark(b.targetBookmark);a.optimize();d.fixUneditableRangePosition(a);d.list.merge(b,this);d.table.purge(b,this);d.block.merge(b,this);if(c){d=a.startPath();if(b=a.checkStartOfBlock()&&a.checkEndOfBlock()&&d.block&&!a.root.equals(d.block)){a:{var b=d.block.getElementsByTag("span"),
g=0,f;if(b)for(;f=b.getItem(g++);)if(!r(f)){b=!0;break a}b=!1}b=!b}b&&(a.moveToPosition(d.block,CKEDITOR.POSITION_BEFORE_START),d.block.remove())}else d.autoParagraph(this.editor,a),t(a.startContainer)&&a.startContainer.appendBogus();a.startContainer.mergeSiblings();return e},setup:function(){var d=this.editor;this.attachListener(d,"beforeGetData",function(){var a=this.getData();this.is("textarea")||!1!==d.config.ignoreEmptyParagraph&&(a=a.replace(p,function(a,c){return c}));d.setData(a,null,1)},
this);this.attachListener(d,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(d,"afterSetData",function(){this.setData(d.getData(1))},this);this.attachListener(d,"loadSnapshot",function(a){this.setData(a.data,1)},this);this.attachListener(d,"beforeFocus",function(){var a=d.getSelection();(a=a&&a.getNative())&&"Control"==a.type||this.focus()},this);this.attachListener(d,"insertHtml",function(a){this.insertHtml(a.data.dataValue,a.data.mode,a.data.range)},this);this.attachListener(d,
"insertElement",function(a){this.insertElement(a.data)},this);this.attachListener(d,"insertText",function(a){this.insertText(a.data)},this);this.setReadOnly(d.readOnly);this.attachClass("cke_editable");d.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):d.elementMode!=CKEDITOR.ELEMENT_MODE_REPLACE&&d.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||this.attachClass("cke_editable_themed");this.attachClass("cke_contents_"+d.config.contentsLangDirection);d.keystrokeHandler.blockedKeystrokes[8]=
+d.readOnly;d.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(){d._.previousScrollTop=d.editable().$.scrollTop},null,null,-1);if(CKEDITOR.env.edge&&14<CKEDITOR.env.version){var b=function(){var a=d.editable();null!=d._.previousScrollTop&&a.getDocument().equals(CKEDITOR.document)&&(a.$.scrollTop=d._.previousScrollTop,d._.previousScrollTop=null,this.removeListener("scroll",
b))};this.on("scroll",b)}d.focusManager.add(this);this.equals(CKEDITOR.document.getActive())&&(this.hasFocus=!0,d.once("contentDom",function(){d.focusManager.focus(this)},this));this.isInline()&&this.changeAttr("tabindex",d.tabIndex);if(!this.is("textarea")){d.document=this.getDocument();d.window=this.getWindow();var e=d.document;this.changeAttr("spellcheck",!d.config.disableNativeSpellChecker);var g=d.config.contentsLangDirection;this.getDirection(1)!=g&&this.changeAttr("dir",g);var h=CKEDITOR.getCss();
if(h){var g=e.getHead(),k=g.getCustomData("stylesheet");k?h!=k.getText()&&(CKEDITOR.env.ie&&9>CKEDITOR.env.version?k.$.styleSheet.cssText=h:k.setText(h)):(h=e.appendStyleText(h),h=new CKEDITOR.dom.element(h.ownerNode||h.owningElement),g.setCustomData("stylesheet",h),h.data("cke-temp",1))}g=e.getCustomData("stylesheet_ref")||0;e.setCustomData("stylesheet_ref",g+1);this.setCustomData("cke_includeReadonly",!d.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){a=a.data;var c=
(new CKEDITOR.dom.elementPath(a.getTarget(),this)).contains("a");c&&2!=a.$.button&&c.isReadOnly()&&a.preventDefault()});var l={8:1,46:1};this.attachListener(d,"key",function(a){if(d.readOnly)return!0;var c=a.data.domEvent.getKey(),b;a=d.getSelection();if(0!==a.getRanges().length){if(c in l){var e,g=a.getRanges()[0],f=g.startPath(),h,k,r,c=8==c;CKEDITOR.env.ie&&11>CKEDITOR.env.version&&(e=a.getSelectedElement())||(e=m(a))?(d.fire("saveSnapshot"),g.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START),e.remove(),
g.select(),d.fire("saveSnapshot"),b=1):g.collapsed&&((h=f.block)&&(r=h[c?"getPrevious":"getNext"](n))&&r.type==CKEDITOR.NODE_ELEMENT&&r.is("table")&&g[c?"checkStartOfBlock":"checkEndOfBlock"]()?(d.fire("saveSnapshot"),g[c?"checkEndOfBlock":"checkStartOfBlock"]()&&h.remove(),g["moveToElementEdit"+(c?"End":"Start")](r),g.select(),d.fire("saveSnapshot"),b=1):f.blockLimit&&f.blockLimit.is("td")&&(k=f.blockLimit.getAscendant("table"))&&g.checkBoundaryOfElement(k,c?CKEDITOR.START:CKEDITOR.END)&&(r=k[c?
"getPrevious":"getNext"](n))?(d.fire("saveSnapshot"),g["moveToElementEdit"+(c?"End":"Start")](r),g.checkStartOfBlock()&&g.checkEndOfBlock()?r.remove():g.select(),d.fire("saveSnapshot"),b=1):(k=f.contains(["td","th","caption"]))&&g.checkBoundaryOfElement(k,c?CKEDITOR.START:CKEDITOR.END)&&(b=1))}return!b}});d.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&&this.attachListener(this,"keyup",function(c){c.data.getKeystroke()in l&&!this.getFirst(a)&&(this.appendBogus(),c=d.createRange(),c.moveToPosition(this,
CKEDITOR.POSITION_AFTER_START),c.select())});this.attachListener(this,"dblclick",function(a){if(d.readOnly)return!1;a={element:a.data.getTarget()};d.fire("doubleclick",a)});CKEDITOR.env.ie&&this.attachListener(this,"click",f);CKEDITOR.env.ie&&!CKEDITOR.env.edge||this.attachListener(this,"mousedown",function(a){var c=a.data.getTarget();c.is("img","hr","input","textarea","select")&&!c.isReadOnly()&&(d.getSelection().selectElement(c),c.is("input","textarea","select")&&a.data.preventDefault())});CKEDITOR.env.edge&&
this.attachListener(this,"mouseup",function(a){(a=a.data.getTarget())&&a.is("img")&&!a.isReadOnly()&&d.getSelection().selectElement(a)});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(a){if(2==a.data.$.button&&(a=a.data.getTarget(),!a.getAscendant("table")&&!a.getOuterHtml().replace(p,""))){var c=d.createRange();c.moveToElementEditStart(a);c.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(d,"key",function(a){if(d.readOnly)return!0;var b=a.data.domEvent.getKey();if(b in l&&(a=d.getSelection(),0!==a.getRanges().length)){var b=8==b,e=a.getRanges()[0];a=e.startPath();if(e.collapsed)a:{var g=a.block;if(g&&e[b?"checkStartOfBlock":"checkEndOfBlock"]()&&e.moveToClosestEditablePosition(g,!b)&&e.collapsed){if(e.startContainer.type==CKEDITOR.NODE_ELEMENT){var f=
e.startContainer.getChild(e.startOffset-(b?1:0));if(f&&f.type==CKEDITOR.NODE_ELEMENT&&f.is("hr")){d.fire("saveSnapshot");f.remove();a=!0;break a}}e=e.startPath().block;if(!e||e&&e.contains(g))a=void 0;else{d.fire("saveSnapshot");var h;(h=(b?e:g).getBogus())&&h.remove();h=d.getSelection();f=h.createBookmarks();(b?g:e).moveChildren(b?e:g,!1);a.lastElement.mergeSiblings();c(g,e,!b);h.selectBookmarks(f);a=!0}}else a=!1}else b=e,h=a.block,e=b.endPath().block,h&&e&&!h.equals(e)?(d.fire("saveSnapshot"),
(g=h.getBogus())&&g.remove(),b.enlarge(CKEDITOR.ENLARGE_INLINE),b.deleteContents(),e.getParent()&&(e.moveChildren(h,!1),a.lastElement.mergeSiblings(),c(h,e,!0)),b=d.getSelection().getRanges()[0],b.collapse(1),b.optimize(),""===b.startContainer.getHtml()&&b.startContainer.appendBogus(),b.select(),a=!0):a=!1;if(!a)return;d.getSelection().scrollIntoView();d.fire("saveSnapshot");return!1}},this,null,100)}},getUniqueId:function(){var a;try{this._.expandoNumber=a=CKEDITOR.dom.domObject.prototype.getUniqueId.call(this)}catch(c){a=
this._&&this._.expandoNumber}return a}},_:{cleanCustomData:function(){this.removeClass("cke_editable");this.restoreAttrs();for(var a=this.removeCustomData("classes");a&&a.length;)this.removeClass(a.pop());if(!this.is("textarea")){var a=this.getDocument(),c=a.getHead();if(c.getCustomData("stylesheet")){var d=a.getCustomData("stylesheet_ref");--d?a.setCustomData("stylesheet_ref",d):(a.removeCustomData("stylesheet_ref"),c.removeCustomData("stylesheet").remove())}}}}});CKEDITOR.editor.prototype.editable=
function(a){var c=this._.editable;if(c&&a)return 0;if(!arguments.length)return c;a?c=a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this,a):(c&&c.detach(),c=null);return this._.editable=c};CKEDITOR.on("instanceLoaded",function(a){var c=a.editor;c.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))});c.on("selectionChange",function(a){if(!c.readOnly){var d=c.getSelection();d&&!d.isLocked&&(d=c.checkDirty(),c.fire("lockSnapshot"),b(a),c.fire("unlockSnapshot"),!d&&c.resetDirty())}})});CKEDITOR.on("instanceCreated",function(a){var c=a.editor;c.on("mode",function(){var a=c.editable();if(a&&a.isInline()){var d=c.title;a.changeAttr("role","textbox");a.changeAttr("aria-multiline","true");a.changeAttr("aria-label",d);d&&a.changeAttr("title",d);var b=c.fire("ariaEditorHelpLabel",{}).label;if(b&&
(d=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var e=CKEDITOR.tools.getNextId(),b=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+e+'" class\x3d"cke_voice_label"\x3e'+b+"\x3c/span\x3e");d.append(b);a.changeAttr("aria-describedby",e)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");n=CKEDITOR.dom.walker.whitespaces(!0);r=CKEDITOR.dom.walker.bookmark(!1,!0);t=CKEDITOR.dom.walker.empty();
q=CKEDITOR.dom.walker.bogus();p=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>|&nbsp;|\u00A0|&#160;)?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi;u=function(){function c(a){return a.type==CKEDITOR.NODE_ELEMENT}function b(a,d){var e,g,f,h,k=[],l=d.range.startContainer;e=d.range.startPath();for(var l=m[l.getName()],n=0,r=a.getChildren(),v=r.count(),u=-1,y=-1,t=0,E=e.contains(m.$list);n<v;++n)e=r.getItem(n),c(e)?(f=e.getName(),E&&f in CKEDITOR.dtd.$list?k=k.concat(b(e,d)):(h=!!l[f],
"br"!=f||!e.data("cke-eol")||n&&n!=v-1||(t=(g=n?k[n-1].node:r.getItem(n+1))&&(!c(g)||!g.is("br")),g=g&&c(g)&&m.$block[g.getName()]),-1!=u||h||(u=n),h||(y=n),k.push({isElement:1,isLineBreak:t,isBlock:e.isBlockBoundary(),hasBlockSibling:g,node:e,name:f,allowed:h}),g=t=0)):k.push({isElement:0,node:e,allowed:1});-1<u&&(k[u].firstNotAllowed=1);-1<y&&(k[y].lastNotAllowed=1);return k}function e(a,d){var b=[],g=a.getChildren(),f=g.count(),h,k=0,l=m[d],n=!a.is(m.$inline)||a.is("br");for(n&&b.push(" ");k<f;k++)h=
g.getItem(k),c(h)&&!h.is(l)?b=b.concat(e(h,d)):b.push(h);n&&b.push(" ");return b}function g(a){return c(a.startContainer)&&a.startContainer.getChild(a.startOffset-1)}function f(a){return a&&c(a)&&(a.is(m.$removeEmpty)||a.is("a")&&!a.isBlockBoundary())}function h(a,d,b,e){var g=a.clone(),f,k;g.setEndAt(d,CKEDITOR.POSITION_BEFORE_END);(f=(new CKEDITOR.dom.walker(g)).next())&&c(f)&&r[f.getName()]&&(k=f.getPrevious())&&c(k)&&!k.getParent().equals(a.startContainer)&&b.contains(k)&&e.contains(f)&&f.isIdentical(k)&&
(f.moveChildren(k),f.remove(),h(a,d,b,e))}function n(a,d){function b(a,d){if(d.isBlock&&d.isElement&&!d.node.is("br")&&c(a)&&a.is("br"))return a.remove(),1}var e=d.endContainer.getChild(d.endOffset),g=d.endContainer.getChild(d.endOffset-1);e&&b(e,a[a.length-1]);g&&b(g,a[0])&&(d.setEnd(d.endContainer,d.endOffset-1),d.collapse())}var m=CKEDITOR.dtd,r={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},v={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},u=CKEDITOR.tools.extend({},
m.$inline);delete u.br;return function(r,F,y,t){var p=r.editor,q=!1;"unfiltered_html"==F&&(F="html",q=!0);if(!t.checkReadOnly()){var A=(new CKEDITOR.dom.elementPath(t.startContainer,t.root)).blockLimit||t.root;F={type:F,dontFilter:q,editable:r,editor:p,range:t,blockLimit:A,mergeCandidates:[],zombies:[]};var q=F.range,A=F.mergeCandidates,z="html"===F.type,D,O,V,aa,ba,W;"text"==F.type&&q.shrink(CKEDITOR.SHRINK_ELEMENT,!0,!1)&&(O=CKEDITOR.dom.element.createFromHtml("\x3cspan\x3e\x26nbsp;\x3c/span\x3e",
q.document),q.insertNode(O),q.setStartAfter(O));V=new CKEDITOR.dom.elementPath(q.startContainer);F.endPath=aa=new CKEDITOR.dom.elementPath(q.endContainer);if(!q.collapsed){D=aa.block||aa.blockLimit;var da=q.getCommonAncestor();D&&!D.equals(da)&&!D.contains(da)&&q.checkEndOfBlock()&&F.zombies.push(D);q.deleteContents()}for(;(ba=g(q))&&c(ba)&&ba.isBlockBoundary()&&V.contains(ba);)q.moveToPosition(ba,CKEDITOR.POSITION_BEFORE_END);h(q,F.blockLimit,V,aa);O&&(q.setEndBefore(O),q.collapse(),O.remove());
O=q.startPath();if(D=O.contains(f,!1,1))W=q.splitElement(D),F.inlineStylesRoot=D,F.inlineStylesPeak=O.lastElement;O=q.createBookmark();z&&(d(D),d(W));(D=O.startNode.getPrevious(a))&&c(D)&&f(D)&&A.push(D);(D=O.startNode.getNext(a))&&c(D)&&f(D)&&A.push(D);for(D=O.startNode;(D=D.getParent())&&f(D);)A.push(D);q.moveToBookmark(O);p.enterMode===CKEDITOR.ENTER_DIV&&""===p.getData(!0)&&((p=r.getFirst())&&p.remove(),t.setStartAt(r,CKEDITOR.POSITION_AFTER_START),t.collapse(!0));if(r=y){r=F.range;if("text"==
F.type&&F.inlineStylesRoot){t=F.inlineStylesPeak;p=t.getDocument().createText("{cke-peak}");for(W=F.inlineStylesRoot.getParent();!t.equals(W);)p=p.appendTo(t.clone()),t=t.getParent();y=p.getOuterHtml().split("{cke-peak}").join(y)}t=F.blockLimit.getName();if(/^\s+|\s+$/.test(y)&&"span"in CKEDITOR.dtd[t]){var X='\x3cspan data-cke-marker\x3d"1"\x3e\x26nbsp;\x3c/span\x3e';y=X+y+X}y=F.editor.dataProcessor.toHtml(y,{context:null,fixForBody:!1,protectedWhitespaces:!!X,dontFilter:F.dontFilter,filter:F.editor.activeFilter,
enterMode:F.editor.activeEnterMode});t=r.document.createElement("body");t.setHtml(y);X&&(t.getFirst().remove(),t.getLast().remove());if((X=r.startPath().block)&&(1!=X.getChildCount()||!X.getBogus()))a:{var Q;if(1==t.getChildCount()&&c(Q=t.getFirst())&&Q.is(v)&&!Q.hasAttribute("contenteditable")){X=Q.getElementsByTag("*");r=0;for(W=X.count();r<W;r++)if(p=X.getItem(r),!p.is(u))break a;Q.moveChildren(Q.getParent(1));Q.remove()}}F.dataWrapper=t;r=y}if(r){Q=F.range;r=Q.document;t=F.blockLimit;W=0;var T,
X=[],L,P;y=O=0;var ca,p=Q.startContainer;ba=F.endPath.elements[0];var ea,q=ba.getPosition(p),A=!!ba.getCommonAncestor(p)&&q!=CKEDITOR.POSITION_IDENTICAL&&!(q&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED),p=b(F.dataWrapper,F);for(n(p,Q);W<p.length;W++){q=p[W];if(z=q.isLineBreak)z=Q,D=t,aa=V=void 0,q.hasBlockSibling?z=1:(V=z.startContainer.getAscendant(m.$block,1))&&V.is({div:1,p:1})?(aa=V.getPosition(D),aa==CKEDITOR.POSITION_IDENTICAL||aa==CKEDITOR.POSITION_CONTAINS?z=0:(D=z.splitElement(V),
z.moveToPosition(D,CKEDITOR.POSITION_AFTER_START),z=1)):z=0;if(z)y=0<W;else{z=Q.startPath();!q.isBlock&&k(F.editor,z.block,z.blockLimit)&&(P=l(F.editor))&&(P=r.createElement(P),P.appendBogus(),Q.insertNode(P),CKEDITOR.env.needsBrFiller&&(T=P.getBogus())&&T.remove(),Q.moveToPosition(P,CKEDITOR.POSITION_BEFORE_END));if((z=Q.startPath().block)&&!z.equals(L)){if(T=z.getBogus())T.remove(),X.push(z);L=z}q.firstNotAllowed&&(O=1);if(O&&q.isElement){z=Q.startContainer;for(D=null;z&&!m[z.getName()][q.name];){if(z.equals(t)){z=
null;break}D=z;z=z.getParent()}if(z)D&&(ca=Q.splitElement(D),F.zombies.push(ca),F.zombies.push(D));else{D=t.getName();ea=!W;z=W==p.length-1;D=e(q.node,D);V=[];aa=D.length;for(var da=0,fa=void 0,ia=0,ja=-1;da<aa;da++)fa=D[da]," "==fa?(ia||ea&&!da||(V.push(new CKEDITOR.dom.text(" ")),ja=V.length),ia=1):(V.push(fa),ia=0);z&&ja==V.length&&V.pop();ea=V}}if(ea){for(;z=ea.pop();)Q.insertNode(z);ea=0}else Q.insertNode(q.node);q.lastNotAllowed&&W<p.length-1&&((ca=A?ba:ca)&&Q.setEndAt(ca,CKEDITOR.POSITION_AFTER_START),
O=0);Q.collapse()}}1!=p.length?T=!1:(T=p[0],T=T.isElement&&"false"==T.node.getAttribute("contenteditable"));T&&(y=!0,z=p[0].node,Q.setStartAt(z,CKEDITOR.POSITION_BEFORE_START),Q.setEndAt(z,CKEDITOR.POSITION_AFTER_END));F.dontMoveCaret=y;F.bogusNeededBlocks=X}T=F.range;var ha;ca=F.bogusNeededBlocks;for(ea=T.createBookmark();L=F.zombies.pop();)L.getParent()&&(P=T.clone(),P.moveToElementEditStart(L),P.removeEmptyBlocksAtEnd());if(ca)for(;L=ca.pop();)CKEDITOR.env.needsBrFiller?L.appendBogus():L.append(T.document.createText(" "));
for(;L=F.mergeCandidates.pop();)L.mergeSiblings();T.moveToBookmark(ea);if(!F.dontMoveCaret){for(L=g(T);L&&c(L)&&!L.is(m.$empty);){if(L.isBlockBoundary())T.moveToPosition(L,CKEDITOR.POSITION_BEFORE_END);else{if(f(L)&&L.getHtml().match(/(\s|&nbsp;)$/g)){ha=null;break}ha=T.clone();ha.moveToPosition(L,CKEDITOR.POSITION_BEFORE_END)}L=L.getLast(a)}ha&&T.moveToRange(ha)}}}}();y=function(){function a(c){c=new CKEDITOR.dom.walker(c);c.guard=function(a,c){if(c)return!1;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$tableContent)};
c.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT};return c}function c(a,d,b){d=a.getDocument().createElement(d);a.append(d,b);return d}function d(a){var c=a.count(),b;for(c;0<c--;)b=a.getItem(c),CKEDITOR.tools.trim(b.getHtml())||(b.appendBogus(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&b.getChildCount()&&b.getFirst().remove())}return function(b){var e=b.startContainer,g=e.getAscendant("table",1),f=!1;d(g.getElementsByTag("td"));d(g.getElementsByTag("th"));g=b.clone();g.setStart(e,0);g=
a(g).lastBackward();g||(g=b.clone(),g.setEndAt(e,CKEDITOR.POSITION_BEFORE_END),g=a(g).lastForward(),f=!0);g||(g=e);g.is("table")?(b.setStartAt(g,CKEDITOR.POSITION_BEFORE_START),b.collapse(!0),g.remove()):(g.is({tbody:1,thead:1,tfoot:1})&&(g=c(g,"tr",f)),g.is("tr")&&(g=c(g,g.getParent().is("thead")?"th":"td",f)),(e=g.getBogus())&&e.remove(),b.moveToPosition(g,f?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}();v=function(){function a(c){c=new CKEDITOR.dom.walker(c);c.guard=function(a,
c){if(c)return!1;if(a.type==CKEDITOR.NODE_ELEMENT)return a.is(CKEDITOR.dtd.$list)||a.is(CKEDITOR.dtd.$listItem)};c.evaluator=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$listItem)};return c}return function(c){var d=c.startContainer,b=!1,e;e=c.clone();e.setStart(d,0);e=a(e).lastBackward();e||(e=c.clone(),e.setEndAt(d,CKEDITOR.POSITION_BEFORE_END),e=a(e).lastForward(),b=!0);e||(e=d);e.is(CKEDITOR.dtd.$list)?(c.setStartAt(e,CKEDITOR.POSITION_BEFORE_START),c.collapse(!0),e.remove()):
((d=e.getBogus())&&d.remove(),c.moveToPosition(e,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),c.select())}}();A={eol:{detect:function(a,c){var d=a.range,b=d.clone(),e=d.clone(),g=new CKEDITOR.dom.elementPath(d.startContainer,c),f=new CKEDITOR.dom.elementPath(d.endContainer,c);b.collapse(1);e.collapse();g.block&&b.checkBoundaryOfElement(g.block,CKEDITOR.END)&&(d.setStartAfter(g.block),a.prependEolBr=1);f.block&&e.checkBoundaryOfElement(f.block,CKEDITOR.START)&&(d.setEndBefore(f.block),
a.appendEolBr=1)},fix:function(a,c){var d=c.getDocument(),b;a.appendEolBr&&(b=this.createEolBr(d),a.fragment.append(b));!a.prependEolBr||b&&!b.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 c=a.range.getBoundaryNodes(),d=c.startNode,c=c.endNode;!c||!q(c)||d&&d.equals(c)||a.range.setEndBefore(c)}},tree:{rebuild:function(a,c){var d=a.range,b=d.getCommonAncestor(),e=new CKEDITOR.dom.elementPath(b,
c),g=new CKEDITOR.dom.elementPath(d.startContainer,c),d=new CKEDITOR.dom.elementPath(d.endContainer,c),f;b.type==CKEDITOR.NODE_TEXT&&(b=b.getParent());if(e.blockLimit.is({tr:1,table:1})){var h=e.contains("table").getParent();f=function(a){return!a.equals(h)}}else if(e.block&&e.block.is(CKEDITOR.dtd.$listItem)&&(g=g.contains(CKEDITOR.dtd.$list),d=d.contains(CKEDITOR.dtd.$list),!g.equals(d))){var k=e.contains(CKEDITOR.dtd.$list).getParent();f=function(a){return!a.equals(k)}}f||(f=function(a){return!a.equals(e.block)&&
!a.equals(e.blockLimit)});this.rebuildFragment(a,c,b,f)},rebuildFragment:function(a,c,d,b){for(var e;d&&!d.equals(c)&&b(d);)e=d.clone(0,1),a.fragment.appendTo(e),a.fragment=e,d=d.getParent()}},cell:{shrink:function(a){a=a.range;var c=a.startContainer,d=a.endContainer,b=a.startOffset,e=a.endOffset;c.type==CKEDITOR.NODE_ELEMENT&&c.equals(d)&&c.is("tr")&&++b==e&&a.shrink(CKEDITOR.SHRINK_TEXT)}}};z=function(){function a(c,d){var b=c.getParent();if(b.is(CKEDITOR.dtd.$inline))c[d?"insertBefore":"insertAfter"](b)}
function c(d,b,e){a(b);a(e,1);for(var g;g=e.getNext();)g.insertAfter(b),b=g;t(d)&&d.remove()}function d(a,c){var b=new CKEDITOR.dom.range(a);b.setStartAfter(c.startNode);b.setEndBefore(c.endNode);return b}return{list:{detectMerge:function(a,c){var b=d(c,a.bookmark),e=b.startPath(),g=b.endPath(),f=e.contains(CKEDITOR.dtd.$list),h=g.contains(CKEDITOR.dtd.$list);a.mergeList=f&&h&&f.getParent().equals(h.getParent())&&!f.equals(h);a.mergeListItems=e.block&&g.block&&e.block.is(CKEDITOR.dtd.$listItem)&&
g.block.is(CKEDITOR.dtd.$listItem);if(a.mergeList||a.mergeListItems)b=b.clone(),b.setStartBefore(a.bookmark.startNode),b.setEndAfter(a.bookmark.endNode),a.mergeListBookmark=b.createBookmark()},merge:function(a,d){if(a.mergeListBookmark){var b=a.mergeListBookmark.startNode,e=a.mergeListBookmark.endNode,g=new CKEDITOR.dom.elementPath(b,d),f=new CKEDITOR.dom.elementPath(e,d);if(a.mergeList){var h=g.contains(CKEDITOR.dtd.$list),k=f.contains(CKEDITOR.dtd.$list);h.equals(k)||(k.moveChildren(h),k.remove())}a.mergeListItems&&
(g=g.contains(CKEDITOR.dtd.$listItem),f=f.contains(CKEDITOR.dtd.$listItem),g.equals(f)||c(f,b,e));b.remove();e.remove()}}},block:{detectMerge:function(a,c){if(!a.tableContentsRanges&&!a.mergeListBookmark){var d=new CKEDITOR.dom.range(c);d.setStartBefore(a.bookmark.startNode);d.setEndAfter(a.bookmark.endNode);a.mergeBlockBookmark=d.createBookmark()}},merge:function(a,d){if(a.mergeBlockBookmark&&!a.purgeTableBookmark){var b=a.mergeBlockBookmark.startNode,e=a.mergeBlockBookmark.endNode,g=new CKEDITOR.dom.elementPath(b,
d),f=new CKEDITOR.dom.elementPath(e,d),g=g.block,f=f.block;g&&f&&!g.equals(f)&&c(f,b,e);b.remove();e.remove()}}},table:function(){function a(d){var e=[],g,f=new CKEDITOR.dom.walker(d),h=d.startPath().contains(b),k=d.endPath().contains(b),l={};f.guard=function(a,f){if(a.type==CKEDITOR.NODE_ELEMENT){var n="visited_"+(f?"out":"in");if(a.getCustomData(n))return;CKEDITOR.dom.element.setMarker(l,a,n,1)}if(f&&h&&a.equals(h))g=d.clone(),g.setEndAt(h,CKEDITOR.POSITION_BEFORE_END),e.push(g);else if(!f&&k&&
a.equals(k))g=d.clone(),g.setStartAt(k,CKEDITOR.POSITION_AFTER_START),e.push(g);else{if(n=!f)n=a.type==CKEDITOR.NODE_ELEMENT&&a.is(b)&&(!h||c(a,h))&&(!k||c(a,k));if(!n&&(n=f))if(a.is(b))var n=h&&h.getAscendant("table",!0),m=k&&k.getAscendant("table",!0),r=a.getAscendant("table",!0),n=n&&n.contains(r)||m&&m.contains(r);else n=void 0;n&&(g=d.clone(),g.selectNodeContents(a),e.push(g))}};f.lastForward();CKEDITOR.dom.element.clearAllMarkers(l);return e}function c(a,d){var b=CKEDITOR.POSITION_CONTAINS+
CKEDITOR.POSITION_IS_CONTAINED,e=a.getPosition(d);return e===CKEDITOR.POSITION_IDENTICAL?!1:0===(e&b)}var b={td:1,th:1,caption:1};return{detectPurge:function(a){var c=a.range,d=c.clone();d.enlarge(CKEDITOR.ENLARGE_ELEMENT);var d=new CKEDITOR.dom.walker(d),e=0;d.evaluator=function(a){a.type==CKEDITOR.NODE_ELEMENT&&a.is(b)&&++e};d.checkForward();if(1<e){var d=c.startPath().contains("table"),g=c.endPath().contains("table");d&&g&&c.checkBoundaryOfElement(d,CKEDITOR.START)&&c.checkBoundaryOfElement(g,
CKEDITOR.END)&&(c=a.range.clone(),c.setStartBefore(d),c.setEndAfter(g),a.purgeTableBookmark=c.createBookmark())}},detectRanges:function(e,g){var f=d(g,e.bookmark),h=f.clone(),k,l,n=f.getCommonAncestor();n.is(CKEDITOR.dtd.$tableContent)&&!n.is(b)&&(n=n.getAscendant("table",!0));l=n;n=new CKEDITOR.dom.elementPath(f.startContainer,l);l=new CKEDITOR.dom.elementPath(f.endContainer,l);n=n.contains("table");l=l.contains("table");if(n||l)n&&l&&c(n,l)?(e.tableSurroundingRange=h,h.setStartAt(n,CKEDITOR.POSITION_AFTER_END),
h.setEndAt(l,CKEDITOR.POSITION_BEFORE_START),h=f.clone(),h.setEndAt(n,CKEDITOR.POSITION_AFTER_END),k=f.clone(),k.setStartAt(l,CKEDITOR.POSITION_BEFORE_START),k=a(h).concat(a(k))):n?l||(e.tableSurroundingRange=h,h.setStartAt(n,CKEDITOR.POSITION_AFTER_END),f.setEndAt(n,CKEDITOR.POSITION_AFTER_END)):(e.tableSurroundingRange=h,h.setEndAt(l,CKEDITOR.POSITION_BEFORE_START),f.setStartAt(l,CKEDITOR.POSITION_AFTER_START)),e.tableContentsRanges=k?k:a(f)},deleteRanges:function(a){for(var c;c=a.tableContentsRanges.pop();)c.extractContents(),
t(c.startContainer)&&c.startContainer.appendBogus();a.tableSurroundingRange&&a.tableSurroundingRange.extractContents()},purge:function(a){if(a.purgeTableBookmark){var c=a.doc,d=a.range.clone(),c=c.createElement("p");c.insertBefore(a.purgeTableBookmark.startNode);d.moveToBookmark(a.purgeTableBookmark);d.deleteContents();a.range.moveToPosition(c,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(a){return!(a.range.startPath().contains(CKEDITOR.dtd.$listItem)&&a.range.endPath().contains(CKEDITOR.dtd.$listItem))},
fixUneditableRangePosition:function(a){a.startContainer.getDtd()["#"]||a.moveToClosestEditablePosition(null,!0)},autoParagraph:function(a,c){var d=c.startPath(),b;k(a,d.block,d.blockLimit)&&(b=l(a))&&(b=c.document.createElement(b),b.appendBogus(),c.insertNode(b),c.moveToPosition(b,CKEDITOR.POSITION_AFTER_START))}}}()})();(function(){function b(a){return CKEDITOR.plugins.widget&&CKEDITOR.plugins.widget.isDomWidget(a)}function h(a,c){if(0===a.length||b(a[0].getEnclosedNode()))return!1;var d,e;if((d=
!c&&1===a.length)&&!(d=a[0].collapsed)){var g=a[0];d=g.startContainer.getAscendant({td:1,th:1},!0);var f=g.endContainer.getAscendant({td:1,th:1},!0);e=CKEDITOR.tools.trim;d&&d.equals(f)&&!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 f(a){function c(a){a=a.find("td, th");var d=[],b;for(b=0;b<a.count();b++)d.push(a.getItem(b));
return d}var d=[],b,e;for(e=0;e<a.length;e++)b=a[e]._getTableElement(),b.is&&b.is({td:1,th:1})?d.push(b):d=d.concat(c(b));return d}function a(a){a=f(a);var c="",d=[],b,e;for(e=0;e<a.length;e++)b&&!b.equals(a[e].getAscendant("tr"))?(c+=d.join("\t")+"\n",b=a[e].getAscendant("tr"),d=[]):0===e&&(b=a[e].getAscendant("tr")),d.push(a[e].getText());return c+=d.join("\t")}function g(c){var d=this.root.editor,b=d.getSelection(1);this.reset();z=!0;b.root.once("selectionchange",function(a){a.cancel()},null,null,
0);b.selectRanges([c[0]]);b=this._.cache;b.ranges=new CKEDITOR.dom.rangeList(c);b.type=CKEDITOR.SELECTION_TEXT;b.selectedElement=c[0]._getTableElement();b.selectedText=a(c);b.nativeSel=null;this.isFake=1;this.rev=y++;d._.fakeSelection=this;z=!1;this.root.fire("selectionchange")}function m(){var a=this._.fakeSelection,c;if(a){c=this.getSelection(1);var d;if(!(d=!c)&&(d=!c.isHidden())){d=a;var e=c.getRanges(),g=d.getRanges(),f=e.length&&e[0]._getTableElement()&&e[0]._getTableElement().getAscendant("table",
!0),k=g.length&&g[0]._getTableElement()&&g[0]._getTableElement().getAscendant("table",!0),l=1===e.length&&e[0]._getTableElement()&&e[0]._getTableElement().is("table"),n=1===g.length&&g[0]._getTableElement()&&g[0]._getTableElement().is("table");if(b(d.getSelectedElement()))d=!1;else{var m=1===e.length&&e[0].collapsed,g=h(e,!!CKEDITOR.env.webkit)&&h(g);f=f&&k?f.equals(k)||k.contains(f):!1;f&&(m||g)?(l&&!n&&d.selectRanges(e),d=!0):d=!1}d=!d}d&&(a.reset(),a=0)}if(!a&&(a=c||this.getSelection(1),!a||a.getType()==
CKEDITOR.SELECTION_NONE))return;this.fire("selectionCheck",a);c=this.elementPath();c.compare(this._.selectionPreviousPath)||(d=this._.selectionPreviousPath&&this._.selectionPreviousPath.blockLimit.equals(c.blockLimit),!CKEDITOR.env.webkit&&!CKEDITOR.env.gecko||d||(this._.previousActive=this.document.getActive()),this._.selectionPreviousPath=c,this.fire("selectionChange",{selection:a,path:c}))}function k(){x=!0;w||(l.call(this),w=CKEDITOR.tools.setTimeout(l,200,this))}function l(){w=null;x&&(CKEDITOR.tools.setTimeout(m,
0,this),x=!1)}function d(a){return B(a)||a.type==CKEDITOR.NODE_ELEMENT&&!a.is(CKEDITOR.dtd.$empty)?!0:!1}function e(a){function c(d,b){return d&&d.type!=CKEDITOR.NODE_TEXT?a.clone()["moveToElementEdit"+(b?"End":"Start")](d):!1}if(!(a.root instanceof CKEDITOR.editable))return!1;var b=a.startContainer,e=a.getPreviousNode(d,null,b),g=a.getNextNode(d,null,b);return c(e)||c(g,1)||!(e||g||b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary()&&b.getBogus())?!0:!1}function c(a){n(a,!1);var c=a.getDocument().createText(v);
a.setCustomData("cke-fillingChar",c);return c}function n(a,c){var d=a&&a.removeCustomData("cke-fillingChar");if(d){if(!1!==c){var b=a.getDocument().getSelection().getNative(),e=b&&"None"!=b.type&&b.getRangeAt(0),g=v.length;if(d.getLength()>g&&e&&e.intersectsNode(d.$)){var f=[{node:b.anchorNode,offset:b.anchorOffset},{node:b.focusNode,offset:b.focusOffset}];b.anchorNode==d.$&&b.anchorOffset>g&&(f[0].offset-=g);b.focusNode==d.$&&b.focusOffset>g&&(f[1].offset-=g)}}d.setText(r(d.getText(),1));f&&(d=a.getDocument().$,
b=d.getSelection(),d=d.createRange(),d.setStart(f[0].node,f[0].offset),d.collapse(!0),b.removeAllRanges(),b.addRange(d),b.extend(f[1].node,f[1].offset))}}function r(a,c){return c?a.replace(A,function(a,c){return c?" ":""}):a.replace(v,"")}function t(a,c){var d=c&&CKEDITOR.tools.htmlEncode(c)||"\x26nbsp;",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;width:0;height:0;overflow:hidden;")+
'"\x3e'+d+"\x3c/div\x3e",a.document);a.fire("lockSnapshot");a.editable().append(d);var b=a.getSelection(1),e=a.createRange(),g=b.root.on("selectionchange",function(a){a.cancel()},null,null,0);e.setStartAt(d,CKEDITOR.POSITION_AFTER_START);e.setEndAt(d,CKEDITOR.POSITION_BEFORE_END);b.selectRanges([e]);g.removeListener();a.fire("unlockSnapshot");a._.hiddenSelectionContainer=d}function q(a){var c={37:1,39:1,8:1,46:1};return function(d){var b=d.data.getKeystroke();if(c[b]){var e=a.getSelection().getRanges(),
g=e[0];1==e.length&&g.collapsed&&(b=g[38>b?"getPreviousEditableNode":"getNextEditableNode"]())&&b.type==CKEDITOR.NODE_ELEMENT&&"false"==b.getAttribute("contenteditable")&&(a.getSelection().fake(b),d.data.preventDefault(),d.cancel())}}}function p(a){for(var c=0;c<a.length;c++){var d=a[c];d.getCommonAncestor().isReadOnly()&&a.splice(c,1);if(!d.collapsed){if(d.startContainer.isReadOnly())for(var b=d.startContainer,e;b&&!((e=b.type==CKEDITOR.NODE_ELEMENT)&&b.is("body")||!b.isReadOnly());)e&&"false"==
b.getAttribute("contentEditable")&&d.setStartAfter(b),b=b.getParent();b=d.startContainer;e=d.endContainer;var g=d.startOffset,f=d.endOffset,h=d.clone();b&&b.type==CKEDITOR.NODE_TEXT&&(g>=b.getLength()?h.setStartAfter(b):h.setStartBefore(b));e&&e.type==CKEDITOR.NODE_TEXT&&(f?h.setEndAfter(e):h.setEndBefore(e));b=new CKEDITOR.dom.walker(h);b.evaluator=function(b){if(b.type==CKEDITOR.NODE_ELEMENT&&b.isReadOnly()){var e=d.clone();d.setEndBefore(b);d.collapsed&&a.splice(c--,1);b.getPosition(h.endContainer)&
CKEDITOR.POSITION_CONTAINS||(e.setStartAfter(b),e.collapsed||a.splice(c+1,0,e));return!0}return!1};b.next()}}return a}var u="function"!=typeof window.getSelection,y=1,v=CKEDITOR.tools.repeat("​",7),A=new RegExp(v+"( )?","g"),z,w,x,B=CKEDITOR.dom.walker.invisible(1),C=function(){function a(c){return function(a){var d=a.editor.createRange();d.moveToClosestEditablePosition(a.selected,c)&&a.editor.getSelection().selectRanges([d]);return!1}}function c(a){return function(c){var d=c.editor,b=d.createRange(),
e;if(!d.readOnly)return(e=b.moveToClosestEditablePosition(c.selected,a))||(e=b.moveToClosestEditablePosition(c.selected,!a)),e&&d.getSelection().selectRanges([b]),d.fire("saveSnapshot"),c.selected.remove(),e||(b.moveToElementEditablePosition(d.editable()),d.getSelection().selectRanges([b])),d.fire("saveSnapshot"),!1}}var d=a(),b=a(1);return{37:d,38:d,39:b,40:b,8:c(),46:c(1)}}();CKEDITOR.on("instanceCreated",function(a){function c(){var a=d.getSelection();a&&a.removeAllRanges()}var d=a.editor;d.on("contentDom",
function(){function a(){x=new CKEDITOR.dom.selection(d.getSelection());x.lock()}function c(){f.removeListener("mouseup",c);r.removeListener("mouseup",c);var a=CKEDITOR.document.$.selection,d=a.createRange();"None"!=a.type&&d.parentElement()&&d.parentElement().ownerDocument==g.$&&d.select()}function b(a){var c,d;c=(c=this.document.getActive())?"input"===c.getName()||"textarea"===c.getName():!1;c||(c=this.getSelection(1),(d=e(c))&&!d.equals(h)&&(c.selectElement(d),a.data.preventDefault()))}function e(a){a=
a.getRanges()[0];return a?(a=a.startContainer.getAscendant(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("contenteditable")},!0))&&"false"===a.getAttribute("contenteditable")?a:null:null}var g=d.document,f=CKEDITOR.document,h=d.editable(),l=g.getBody(),r=g.getDocumentElement(),v=h.isInline(),y,x;CKEDITOR.env.gecko&&h.attachListener(h,"focus",function(a){a.removeListener();0!==y&&(a=d.getSelection().getNative())&&a.isCollapsed&&a.anchorNode==h.$&&(a=d.createRange(),a.moveToElementEditStart(h),
a.select())},null,null,-2);h.attachListener(h,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){if(y&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){y=d._.previousActive&&d._.previousActive.equals(g.getActive());var a=null!=d._.previousScrollTop&&d._.previousScrollTop!=h.$.scrollTop;CKEDITOR.env.webkit&&y&&a&&(h.$.scrollTop=d._.previousScrollTop)}d.unlockSelection(y);y=0},null,null,-1);h.attachListener(h,"mousedown",function(){y=0});if(CKEDITOR.env.ie||CKEDITOR.env.gecko||v)u?h.attachListener(h,
"beforedeactivate",a,null,null,-1):h.attachListener(d,"selectionCheck",a,null,null,-1),h.attachListener(h,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusout":"blur",function(){var a=x&&(x.isFake||2>x.getRanges().length);CKEDITOR.env.gecko&&!v&&a||(d.lockSelection(x),y=1)},null,null,-1),h.attachListener(h,"mousedown",function(){y=0});if(CKEDITOR.env.ie&&!v){var t;h.attachListener(h,"mousedown",function(a){2==a.data.$.button&&((a=d.document.getSelection())&&a.getType()!=CKEDITOR.SELECTION_NONE||(t=d.window.getScrollPosition()))});
h.attachListener(h,"mouseup",function(a){2==a.data.$.button&&t&&(d.document.$.documentElement.scrollLeft=t.x,d.document.$.documentElement.scrollTop=t.y);t=null});if("BackCompat"!=g.$.compatMode){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat){var p,w;r.on("mousedown",function(a){function c(a){a=a.data.$;if(p){var d=l.$.createTextRange();try{d.moveToPoint(a.clientX,a.clientY)}catch(b){}p.setEndPoint(0>w.compareEndPoints("StartToStart",d)?"EndToEnd":"StartToStart",d);p.select()}}function d(){r.removeListener("mousemove",
c);f.removeListener("mouseup",d);r.removeListener("mouseup",d);p.select()}a=a.data;if(a.getTarget().is("html")&&a.$.y<r.$.clientHeight&&a.$.x<r.$.clientWidth){p=l.$.createTextRange();try{p.moveToPoint(a.$.clientX,a.$.clientY)}catch(b){}w=p.duplicate();r.on("mousemove",c);f.on("mouseup",d);r.on("mouseup",d)}})}if(7<CKEDITOR.env.version&&11>CKEDITOR.env.version)r.on("mousedown",function(a){a.data.getTarget().is("html")&&(f.on("mouseup",c),r.on("mouseup",c))})}}h.attachListener(h,"selectionchange",m,
d);h.attachListener(h,"keyup",k,d);h.attachListener(h,"touchstart",k,d);h.attachListener(h,"touchend",k,d);CKEDITOR.env.ie&&h.attachListener(h,"keydown",b,d);h.attachListener(h,CKEDITOR.env.webkit||CKEDITOR.env.gecko?"focusin":"focus",function(){d.forceNextSelectionCheck();d.selectionChange(1)});if(v&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var A;h.attachListener(h,"mousedown",function(){A=1});h.attachListener(g.getDocumentElement(),"mouseup",function(){A&&k.call(d);A=0})}else h.attachListener(CKEDITOR.env.ie?
h:g.getDocumentElement(),"mouseup",k,d);CKEDITOR.env.webkit&&h.attachListener(g,"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:h.hasFocus&&n(h)}},null,null,-1);h.attachListener(h,"keydown",q(d),null,null,-1)});d.on("setData",function(){d.unlockSelection();CKEDITOR.env.webkit&&c()});d.on("contentDomUnload",function(){d.unlockSelection()});if(CKEDITOR.env.ie9Compat)d.on("beforeDestroy",c,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),c=d.editable().getLast(a);c&&c.hasAttribute("data-cke-hidden-sel")&&(c.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 c=d.getSelection();if(c.isFake){var b=C[a.data.keyCode];if(b)return b({editor:d,selected:c.getSelectedElement(),
selection:c,keyEvent:a})}}})});if(CKEDITOR.env.webkit)CKEDITOR.on("instanceReady",function(a){var c=a.editor;c.on("selectionChange",function(){var a=c.editable(),d=a.getCustomData("cke-fillingChar");d&&(d.getCustomData("ready")?(n(a),a.editor.fire("selectionCheck")):d.setCustomData("ready",1))},null,null,-1);c.on("beforeSetMode",function(){n(c.editable())},null,null,-1);c.on("getSnapshot",function(a){a.data&&(a.data=r(a.data))},c,null,20);c.on("toDataFormat",function(a){a.data.dataValue=r(a.data.dataValue)},
null,null,0)});CKEDITOR.editor.prototype.selectionChange=function(a){(a?m:k).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 c=this._.savedSelection;return c?(c.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 c=a;a=a.root}var d=a instanceof CKEDITOR.dom.element;this.rev=c?c.rev:y++;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root=d?a:this.document.getBody();this.isLocked=0;this._={cache:{}};if(c)return CKEDITOR.tools.extend(this._.cache,c._.cache),this.isFake=c.isFake,this.isLocked=c.isLocked,this;a=this.getNative();var b,e;if(a)if(a.getRangeAt)b=
(e=a.rangeCount&&a.getRangeAt(0))&&new CKEDITOR.dom.node(e.commonAncestorContainer);else{try{e=a.createRange()}catch(g){}b=e&&CKEDITOR.dom.element.get(e.item&&e.item(0)||e.parentElement())}if(!b||b.type!=CKEDITOR.NODE_ELEMENT&&b.type!=CKEDITOR.NODE_TEXT||!this.root.equals(b)&&!this.root.contains(b))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 G=
{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:r,_createFillingCharSequenceNode:c,FILLING_CHAR_SEQUENCE:v});CKEDITOR.dom.selection.prototype={getNative:function(){return void 0!==this._.cache.nativeSel?this._.cache.nativeSel:this._.cache.nativeSel=u?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:u?
function(){var a=this._.cache;if(a.type)return a.type;var c=CKEDITOR.SELECTION_NONE;try{var d=this.getNative(),b=d.type;"Text"==b&&(c=CKEDITOR.SELECTION_TEXT);"Control"==b&&(c=CKEDITOR.SELECTION_ELEMENT);d.createRange().parentElement()&&(c=CKEDITOR.SELECTION_TEXT)}catch(e){}return a.type=c}:function(){var a=this._.cache;if(a.type)return a.type;var c=CKEDITOR.SELECTION_TEXT,d=this.getNative();if(!d||!d.rangeCount)c=CKEDITOR.SELECTION_NONE;else if(1==d.rangeCount){var d=d.getRangeAt(0),b=d.startContainer;
b==d.endContainer&&1==b.nodeType&&1==d.endOffset-d.startOffset&&G[b.childNodes[d.startOffset].nodeName.toLowerCase()]&&(c=CKEDITOR.SELECTION_ELEMENT)}return a.type=c},getRanges:function(){var a=u?function(){function a(c){return(new CKEDITOR.dom.node(c)).getIndex()}var c=function(c,d){c=c.duplicate();c.collapse(d);var b=c.parentElement();if(!b.hasChildNodes())return{container:b,offset:0};for(var e=b.children,g,f,h=c.duplicate(),k=0,l=e.length-1,n=-1,m,r;k<=l;)if(n=Math.floor((k+l)/2),g=e[n],h.moveToElementText(g),
m=h.compareEndPoints("StartToStart",c),0<m)l=n-1;else if(0>m)k=n+1;else return{container:b,offset:a(g)};if(-1==n||n==e.length-1&&0>m){h.moveToElementText(b);h.setEndPoint("StartToStart",c);h=h.text.replace(/(\r\n|\r)/g,"\n").length;e=b.childNodes;if(!h)return g=e[e.length-1],g.nodeType!=CKEDITOR.NODE_TEXT?{container:b,offset:e.length}:{container:g,offset:g.nodeValue.length};for(b=e.length;0<h&&0<b;)f=e[--b],f.nodeType==CKEDITOR.NODE_TEXT&&(r=f,h-=f.nodeValue.length);return{container:r,offset:-h}}h.collapse(0<
m?!0:!1);h.setEndPoint(0<m?"StartToStart":"EndToStart",c);h=h.text.replace(/(\r\n|\r)/g,"\n").length;if(!h)return{container:b,offset:a(g)+(0<m?0:1)};for(;0<h;)try{f=g[0<m?"previousSibling":"nextSibling"],f.nodeType==CKEDITOR.NODE_TEXT&&(h-=f.nodeValue.length,r=f),g=f}catch(v){return{container:b,offset:a(g)}}return{container:r,offset:0<m?-h:r.nodeValue.length+h}};return function(){var a=this.getNative(),d=a&&a.createRange(),b=this.getType();if(!a)return[];if(b==CKEDITOR.SELECTION_TEXT)return a=new CKEDITOR.dom.range(this.root),
b=c(d,!0),a.setStart(new CKEDITOR.dom.node(b.container),b.offset),b=c(d),a.setEnd(new CKEDITOR.dom.node(b.container),b.offset),a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse(),[a];if(b==CKEDITOR.SELECTION_ELEMENT){for(var b=[],e=0;e<d.length;e++){for(var g=d.item(e),f=g.parentNode,h=0,a=new CKEDITOR.dom.range(this.root);h<f.childNodes.length&&f.childNodes[h]!=g;h++);a.setStart(new CKEDITOR.dom.node(f),h);a.setEnd(new CKEDITOR.dom.node(f),
h+1);b.push(a)}return b}return[]}}():function(){var a=[],c,d=this.getNative();if(!d)return a;for(var b=0;b<d.rangeCount;b++){var e=d.getRangeAt(b);c=new CKEDITOR.dom.range(this.root);c.setStart(new CKEDITOR.dom.node(e.startContainer),e.startOffset);c.setEnd(new CKEDITOR.dom.node(e.endContainer),e.endOffset);a.push(c)}return a};return function(c){var d=this._.cache,b=d.ranges;b||(d.ranges=b=new CKEDITOR.dom.rangeList(a.call(this)));return c?p(new CKEDITOR.dom.rangeList(b.slice())):b}}(),getStartElement:function(){var a=
this._.cache;if(void 0!==a.startElement)return a.startElement;var c;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var d=this.getRanges()[0];if(d){if(d.collapsed)c=d.startContainer,c.type!=CKEDITOR.NODE_ELEMENT&&(c=c.getParent());else{for(d.optimize();c=d.startContainer,d.startOffset==(c.getChildCount?c.getChildCount():c.getLength())&&!c.isBlockBoundary();)d.setStartAfter(c);c=d.startContainer;if(c.type!=CKEDITOR.NODE_ELEMENT)return c.getParent();
if((c=c.getChild(d.startOffset))&&c.type==CKEDITOR.NODE_ELEMENT)for(d=c.getFirst();d&&d.type==CKEDITOR.NODE_ELEMENT;)c=d,d=d.getFirst();else c=d.startContainer}c=c.$}}return a.startElement=c?new CKEDITOR.dom.element(c):null},getSelectedElement:function(){var a=this._.cache;if(void 0!==a.selectedElement)return a.selectedElement;var c=this,d=CKEDITOR.tools.tryThese(function(){return c.getNative().createRange().item(0)},function(){for(var a=c.getRanges()[0].clone(),d,b,e=2;e&&!((d=a.getEnclosedNode())&&
d.type==CKEDITOR.NODE_ELEMENT&&G[d.getName()]&&(b=d));e--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return b&&b.$});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 c=this.getNative(),c=u?"Control"==c.type?"":c.createRange().text:c.toString();return a.selectedText=c},lock:function(){this.getRanges();this.getStartElement();this.getSelectedElement();this.getSelectedText();this._.cache.nativeSel=null;
this.isLocked=1},unlock:function(a){if(this.isLocked){if(a)var c=this.getSelectedElement(),d=this.getRanges(),b=this.isFake;this.isLocked=0;this.reset();a&&(a=c||d[0]&&d[0].getCommonAncestor())&&a.getAscendant("body",1)&&(this.root.editor.plugins.tableselection&&h(d)?g.call(this,d):b?this.fake(c):c&&2>d.length?this.selectElement(c):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 c=a._.hiddenSelectionContainer;if(c){var d=a.checkDirty();a.fire("lockSnapshot");c.remove();a.fire("unlockSnapshot");!d&&a.resetDirty()}delete a._.hiddenSelectionContainer}else CKEDITOR.warn("selection-fake-reset");this.rev=y++},selectElement:function(a){var c=new CKEDITOR.dom.range(this.root);c.setStartBefore(a);c.setEndAfter(a);this.selectRanges([c])},selectRanges:function(a){var d=this.root.editor,b=d&&d._.hiddenSelectionContainer;this.reset();if(b)for(var b=this.root,f,k=0;k<a.length;++k)f=
a[k],f.endContainer.equals(b)&&(f.endOffset=Math.min(f.endOffset,b.getChildCount()));if(a.length)if(this.isLocked){var l=CKEDITOR.document.getActive();this.unlock();this.selectRanges(a);this.lock();l&&!l.equals(this.root)&&l.focus()}else{var m;a:{var r,v;if(1==a.length&&!(v=a[0]).collapsed&&(m=v.getEnclosedNode())&&m.type==CKEDITOR.NODE_ELEMENT&&(v=v.clone(),v.shrink(CKEDITOR.SHRINK_ELEMENT,!0),(r=v.getEnclosedNode())&&r.type==CKEDITOR.NODE_ELEMENT&&(m=r),"false"==m.getAttribute("contenteditable")))break a;
m=void 0}if(m)this.fake(m);else if(d&&d.plugins.tableselection&&d.plugins.tableselection.isSupportedEnvironment()&&h(a)&&!z&&!a[0]._getTableElement({table:1}).hasAttribute("data-cke-tableselection-ignored"))g.call(this,a);else{if(u){r=CKEDITOR.dom.walker.whitespaces(!0);m=/\ufeff|\u00a0/;v={table:1,tbody:1,tr:1};1<a.length&&(d=a[a.length-1],a[0].setEnd(d.endContainer,d.endOffset));d=a[0];a=d.collapsed;var y,x,t;if((b=d.getEnclosedNode())&&b.type==CKEDITOR.NODE_ELEMENT&&b.getName()in G&&(!b.is("a")||
!b.getText()))try{t=b.$.createControlRange();t.addElement(b.$);t.select();return}catch(q){}if(d.startContainer.type==CKEDITOR.NODE_ELEMENT&&d.startContainer.getName()in v||d.endContainer.type==CKEDITOR.NODE_ELEMENT&&d.endContainer.getName()in v)d.shrink(CKEDITOR.NODE_ELEMENT,!0),a=d.collapsed;t=d.createBookmark();v=t.startNode;a||(l=t.endNode);t=d.document.$.body.createTextRange();t.moveToElementText(v.$);t.moveStart("character",1);l?(m=d.document.$.body.createTextRange(),m.moveToElementText(l.$),
t.setEndPoint("EndToEnd",m),t.moveEnd("character",-1)):(y=v.getNext(r),x=v.hasAscendant("pre"),y=!(y&&y.getText&&y.getText().match(m))&&(x||!v.hasPrevious()||v.getPrevious().is&&v.getPrevious().is("br")),x=d.document.createElement("span"),x.setHtml("\x26#65279;"),x.insertBefore(v),y&&d.document.createText("﻿").insertBefore(v));d.setStartBefore(v);v.remove();a?(y?(t.moveStart("character",-1),t.select(),d.document.$.selection.clear()):t.select(),d.moveToPosition(x,CKEDITOR.POSITION_BEFORE_START),x.remove()):
(d.setEndBefore(l),l.remove(),t.select())}else{l=this.getNative();if(!l)return;this.removeAllRanges();for(t=0;t<a.length;t++){if(t<a.length-1&&(y=a[t],x=a[t+1],m=y.clone(),m.setStart(y.endContainer,y.endOffset),m.setEnd(x.startContainer,x.startOffset),!m.collapsed&&(m.shrink(CKEDITOR.NODE_ELEMENT,!0),d=m.getCommonAncestor(),m=m.getEnclosedNode(),d.isReadOnly()||m&&m.isReadOnly()))){x.setStart(y.startContainer,y.startOffset);a.splice(t--,1);continue}d=a[t];x=this.document.$.createRange();d.collapsed&&
CKEDITOR.env.webkit&&e(d)&&(m=c(this.root),d.insertNode(m),(y=m.getNext())&&!m.getPrevious()&&y.type==CKEDITOR.NODE_ELEMENT&&"br"==y.getName()?(n(this.root),d.moveToPosition(y,CKEDITOR.POSITION_BEFORE_START)):d.moveToPosition(m,CKEDITOR.POSITION_AFTER_END));x.setStart(d.startContainer.$,d.startOffset);try{x.setEnd(d.endContainer.$,d.endOffset)}catch(p){if(0<=p.toString().indexOf("NS_ERROR_ILLEGAL_VALUE"))d.collapse(1),x.setEnd(d.endContainer.$,d.endOffset);else throw p;}l.addRange(x)}}this.reset();
this.root.fire("selectionchange")}}},fake:function(a,c){var d=this.root.editor;void 0===c&&a.hasAttribute("aria-label")&&(c=a.getAttribute("aria-label"));this.reset();t(d,c);var b=this._.cache,e=new CKEDITOR.dom.range(this.root);e.setStartBefore(a);e.setEndAfter(a);b.ranges=new CKEDITOR.dom.rangeList(e);b.selectedElement=b.startElement=a;b.type=CKEDITOR.SELECTION_ELEMENT;b.selectedText=b.nativeSel=null;this.isFake=1;this.rev=y++;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 h(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 c=[],d,b=0;b<
a.length;b++){var e=new CKEDITOR.dom.range(this.root);e.moveToBookmark(a[b]);c.push(e)}a.isFake&&(d=h(c)?c[0]._getTableElement():c[0].getEnclosedNode(),d&&d.type==CKEDITOR.NODE_ELEMENT||(CKEDITOR.warn("selection-not-fake"),a.isFake=0));a.isFake&&!h(c)?this.fake(d):this.selectRanges(c);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[u?"empty":"removeAllRanges"]()}catch(c){}this.reset()}}}})();"use strict";CKEDITOR.STYLE_BLOCK=1;CKEDITOR.STYLE_INLINE=2;CKEDITOR.STYLE_OBJECT=3;(function(){function b(a,c){for(var d,b;(a=a.getParent())&&!a.equals(c);)if(a.getAttribute("data-nostyle"))d=a;else if(!b){var e=a.getAttribute("contentEditable");"false"==e?d=a:"true"==e&&(b=1)}return d}function h(a,
c,d,b){return(a.getPosition(c)|b)==b&&(!d.childRule||d.childRule(a))}function f(a){var c=a.document;if(a.collapsed)c=y(this,c),a.insertNode(c),a.moveToPosition(c,CKEDITOR.POSITION_BEFORE_END);else{var d=this.element,e=this._.definition,k,l=e.ignoreReadonly,n=l||e.includeReadonly;null==n&&(n=a.root.getCustomData("cke_includeReadonly"));var m=CKEDITOR.dtd[d];m||(k=!0,m=CKEDITOR.dtd.span);a.enlarge(CKEDITOR.ENLARGE_INLINE,1);a.trim();var r=a.createBookmark(),v=r.startNode,u=r.endNode,t=v,x;if(!l){var p=
a.getCommonAncestor(),l=b(v,p),p=b(u,p);l&&(t=l.getNextSourceNode(!0));p&&(u=p)}for(t.getPosition(u)==CKEDITOR.POSITION_FOLLOWING&&(t=0);t;){l=!1;if(t.equals(u))t=null,l=!0;else{var w=t.type==CKEDITOR.NODE_ELEMENT?t.getName():null,p=w&&"false"==t.getAttribute("contentEditable"),A=w&&t.getAttribute("data-nostyle");if(w&&t.data("cke-bookmark")||t.type===CKEDITOR.NODE_COMMENT){t=t.getNextSourceNode(!0);continue}if(p&&n&&CKEDITOR.dtd.$block[w])for(var z=t,B=g(z),L=void 0,P=B.length,ca=0,z=P&&new CKEDITOR.dom.range(z.getDocument());ca<
P;++ca){var L=B[ca],ea=CKEDITOR.filter.instances[L.data("cke-filter")];if(ea?ea.check(this):1)z.selectNodeContents(L),f.call(this,z)}B=w?!m[w]||A?0:p&&!n?0:h(t,u,e,M):1;if(B)if(L=t.getParent(),B=e,P=d,ca=k,!L||!(L.getDtd()||CKEDITOR.dtd.span)[P]&&!ca||B.parentRule&&!B.parentRule(L))l=!0;else{if(x||w&&CKEDITOR.dtd.$removeEmpty[w]&&(t.getPosition(u)|M)!=M||(x=a.clone(),x.setStartBefore(t)),w=t.type,w==CKEDITOR.NODE_TEXT||p||w==CKEDITOR.NODE_ELEMENT&&!t.getChildCount()){for(var w=t,fa;(l=!w.getNext(H))&&
(fa=w.getParent(),m[fa.getName()])&&h(fa,v,e,I);)w=fa;x.setEndAfter(w)}}else l=!0;t=t.getNextSourceNode(A||p)}if(l&&x&&!x.collapsed){for(var l=y(this,c),p=l.hasAttributes(),A=x.getCommonAncestor(),w={},B={},L={},P={},C,G,E;l&&A;){if(A.getName()==d){for(C in e.attributes)!P[C]&&(E=A.getAttribute(G))&&(l.getAttribute(C)==E?B[C]=1:P[C]=1);for(G in e.styles)!L[G]&&(E=A.getStyle(G))&&(l.getStyle(G)==E?w[G]=1:L[G]=1)}A=A.getParent()}for(C in B)l.removeAttribute(C);for(G in w)l.removeStyle(G);p&&!l.hasAttributes()&&
(l=null);l?(x.extractContents().appendTo(l),x.insertNode(l),q.call(this,l),l.mergeSiblings(),CKEDITOR.env.ie||l.$.normalize()):(l=new CKEDITOR.dom.element("span"),x.extractContents().appendTo(l),x.insertNode(l),q.call(this,l),l.remove(!0));x=null}}a.moveToBookmark(r);a.shrink(CKEDITOR.SHRINK_TEXT);a.shrink(CKEDITOR.NODE_ELEMENT,!0)}}function a(a){function c(){for(var a=new CKEDITOR.dom.elementPath(b.getParent()),d=new CKEDITOR.dom.elementPath(n.getParent()),e=null,g=null,f=0;f<a.elements.length;f++){var h=
a.elements[f];if(h==a.block||h==a.blockLimit)break;m.checkElementRemovable(h,!0)&&(e=h)}for(f=0;f<d.elements.length;f++){h=d.elements[f];if(h==d.block||h==d.blockLimit)break;m.checkElementRemovable(h,!0)&&(g=h)}g&&n.breakParent(g);e&&b.breakParent(e)}a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var d=a.createBookmark(),b=d.startNode,e=this._.definition.alwaysRemoveElement;if(a.collapsed){for(var g=new CKEDITOR.dom.elementPath(b.getParent(),a.root),f,h=0,k;h<g.elements.length&&(k=g.elements[h])&&k!=g.block&&
k!=g.blockLimit;h++)if(this.checkElementRemovable(k)){var l;!e&&a.collapsed&&(a.checkBoundaryOfElement(k,CKEDITOR.END)||(l=a.checkBoundaryOfElement(k,CKEDITOR.START)))?(f=k,f.match=l?"start":"end"):(k.mergeSiblings(),k.is(this.element)?t.call(this,k):p(k,z(this)[k.getName()]))}if(f){e=b;for(h=0;;h++){k=g.elements[h];if(k.equals(f))break;else if(k.match)continue;else k=k.clone();k.append(e);e=k}e["start"==f.match?"insertBefore":"insertAfter"](f)}}else{var n=d.endNode,m=this;c();for(g=b;!g.equals(n);)f=
g.getNextSourceNode(),g.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(g)&&(g.getName()==this.element?t.call(this,g):p(g,z(this)[g.getName()]),f.type==CKEDITOR.NODE_ELEMENT&&f.contains(b)&&(c(),f=b.getNext())),g=f}a.moveToBookmark(d);a.shrink(CKEDITOR.NODE_ELEMENT,!0)}function g(a){var c=[];a.forEach(function(a){if("true"==a.getAttribute("contenteditable"))return c.push(a),!1},CKEDITOR.NODE_ELEMENT,!0);return c}function m(a){var c=a.getEnclosedNode()||a.getCommonAncestor(!1,!0);(a=(new CKEDITOR.dom.elementPath(c,
a.root)).contains(this.element,1))&&!a.isReadOnly()&&v(a,this)}function k(a){var c=a.getCommonAncestor(!0,!0);if(a=(new CKEDITOR.dom.elementPath(c,a.root)).contains(this.element,1)){var c=this._.definition,d=c.attributes;if(d)for(var b in d)a.removeAttribute(b,d[b]);if(c.styles)for(var e in c.styles)c.styles.hasOwnProperty(e)&&a.removeStyle(e)}}function l(a){var c=a.createBookmark(!0),d=a.createIterator();d.enforceRealBlocks=!0;this._.enterMode&&(d.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR);for(var b,
g=a.document,f;b=d.getNextParagraph();)!b.isReadOnly()&&(d.activeFilter?d.activeFilter.check(this):1)&&(f=y(this,g,b),e(b,f));a.moveToBookmark(c)}function d(a){var c=a.createBookmark(1),d=a.createIterator();d.enforceRealBlocks=!0;d.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var b,g;b=d.getNextParagraph();)this.checkElementRemovable(b)&&(b.is("pre")?((g=this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&b.copyAttributes(g),e(b,g)):
t.call(this,b));a.moveToBookmark(c)}function e(a,d){var b=!d;b&&(d=a.getDocument().createElement("div"),a.copyAttributes(d));var e=d&&d.is("pre"),g=a.is("pre"),f=!e&&g;if(e&&!g){g=d;(f=a.getBogus())&&f.remove();f=a.getHtml();f=n(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);d=g}else f?d=r(b?[a.getHtml()]:c(a),d):a.moveChildren(d);d.replace(a);if(e){var b=d,k;(k=b.getPrevious(D))&&k.type==CKEDITOR.NODE_ELEMENT&&k.is("pre")&&(e=n(k.getHtml(),/\n$/,"")+"\n\n"+n(b.getHtml(),/^\n/,""),CKEDITOR.env.ie?b.$.outerHTML="\x3cpre\x3e"+e+"\x3c/pre\x3e":b.setHtml(e),k.remove())}else b&&u(d)}function c(a){var c=[];n(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,
function(a,c,d){return c+"\x3c/pre\x3e"+d+"\x3cpre\x3e"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(a,d){c.push(d)});return c}function n(a,c,d){var b="",e="";a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(a,c,d){c&&(b=c);d&&(e=d);return""});return b+a.replace(c,d)+e}function r(a,c){var d;1<a.length&&(d=new CKEDITOR.dom.documentFragment(c.getDocument()));for(var b=0;b<a.length;b++){var e=a[b],e=e.replace(/(\r\n|\r)/g,"\n"),e=n(e,/^[ \t]*\n/,
""),e=n(e,/\n$/,""),e=n(e,/^[ \t]+|[ \t]+$/g,function(a,c){return 1==a.length?"\x26nbsp;":c?" "+CKEDITOR.tools.repeat("\x26nbsp;",a.length-1):CKEDITOR.tools.repeat("\x26nbsp;",a.length-1)+" "}),e=e.replace(/\n/g,"\x3cbr\x3e"),e=e.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat("\x26nbsp;",a.length-1)+" "});if(d){var g=c.clone();g.setHtml(e);d.append(g)}else c.setHtml(e)}return d||c}function t(a,c){var d=this._.definition,b=d.attributes,d=d.styles,e=z(this)[a.getName()],g=CKEDITOR.tools.isEmpty(b)&&
CKEDITOR.tools.isEmpty(d),f;for(f in b)if("class"!=f&&!this._.definition.fullMatch||a.getAttribute(f)==w(f,b[f]))c&&"data-"==f.slice(0,5)||(g=a.hasAttribute(f),a.removeAttribute(f));for(var h in d)this._.definition.fullMatch&&a.getStyle(h)!=w(h,d[h],!0)||(g=g||!!a.getStyle(h),a.removeStyle(h));p(a,e,C[a.getName()]);g&&(this._.definition.alwaysRemoveElement?u(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!a.hasAttributes()?u(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?
"p":"div"))}function q(a){for(var c=z(this),d=a.getElementsByTag(this.element),b,e=d.count();0<=--e;)b=d.getItem(e),b.isReadOnly()||t.call(this,b,!0);for(var g in c)if(g!=this.element)for(d=a.getElementsByTag(g),e=d.count()-1;0<=e;e--)b=d.getItem(e),b.isReadOnly()||p(b,c[g])}function p(a,c,d){if(c=c&&c.attributes)for(var b=0;b<c.length;b++){var e=c[b][0],g;if(g=a.getAttribute(e)){var f=c[b][1];(null===f||f.test&&f.test(g)||"string"==typeof f&&g==f)&&a.removeAttribute(e)}}d||u(a)}function u(a,c){if(!a.hasAttributes()||
c)if(CKEDITOR.dtd.$block[a.getName()]){var d=a.getPrevious(D),b=a.getNext(D);!d||d.type!=CKEDITOR.NODE_TEXT&&d.isBlockBoundary({br:1})||a.append("br",1);!b||b.type!=CKEDITOR.NODE_TEXT&&b.isBlockBoundary({br:1})||a.append("br");a.remove(!0)}else d=a.getFirst(),b=a.getLast(),a.remove(!0),d&&(d.type==CKEDITOR.NODE_ELEMENT&&d.mergeSiblings(),b&&!d.equals(b)&&b.type==CKEDITOR.NODE_ELEMENT&&b.mergeSiblings())}function y(a,c,d){var b;b=a.element;"*"==b&&(b="span");b=new CKEDITOR.dom.element(b,c);d&&d.copyAttributes(b);
b=v(b,a);c.getCustomData("doc_processing_style")&&b.hasAttribute("id")?b.removeAttribute("id"):c.setCustomData("doc_processing_style",1);return b}function v(a,c){var d=c._.definition,b=d.attributes,d=CKEDITOR.style.getStyleText(d);if(b)for(var e in b)a.setAttribute(e,b[e]);d&&a.setAttribute("style",d);a.getDocument().removeCustomData("doc_processing_style");return a}function A(a,c){for(var d in a)a[d]=a[d].replace(J,function(a,d){return c[d]})}function z(a){if(a._.overrides)return a._.overrides;var c=
a._.overrides={},d=a._.definition.overrides;if(d){CKEDITOR.tools.isArray(d)||(d=[d]);for(var b=0;b<d.length;b++){var e=d[b],g,f;"string"==typeof e?g=e.toLowerCase():(g=e.element?e.element.toLowerCase():a.element,f=e.attributes);e=c[g]||(c[g]={});if(f){var e=e.attributes=e.attributes||[],h;for(h in f)e.push([h.toLowerCase(),f[h]])}}}return c}function w(a,c,d){var b=new CKEDITOR.dom.element("span");b[d?"setStyle":"setAttribute"](a,c);return b[d?"getStyle":"getAttribute"](a)}function x(a,c){function d(a,
c){return"font-family"==c.toLowerCase()?a.replace(/["']/g,""):a}"string"==typeof a&&(a=CKEDITOR.tools.parseCssText(a));"string"==typeof c&&(c=CKEDITOR.tools.parseCssText(c,!0));for(var b in a)if(!(b in c)||d(c[b],b)!=d(a[b],b)&&"inherit"!=a[b]&&"inherit"!=c[b])return!1;return!0}function B(a,c,d){var b=a.getRanges();c=c?this.removeFromRange:this.applyToRange;for(var e,g=b.createIterator();e=g.getNextRange();)c.call(this,e,d);a.selectRanges(b)}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},G={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},E=/\s*(?:;\s*|$)/,J=/#\((.+?)\)/g,H=CKEDITOR.dom.walker.bookmark(0,1),D=CKEDITOR.dom.walker.whitespaces(1);CKEDITOR.style=function(a,c){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);c&&(a=CKEDITOR.tools.clone(a),A(a.attributes,c),A(a.styles,c));d=this.element=a.element?"string"==typeof a.element?a.element.toLowerCase():a.element:"*";this.type=a.type||(C[d]?CKEDITOR.STYLE_BLOCK:G[d]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE);"object"==typeof this.element&&(this.type=CKEDITOR.STYLE_OBJECT);this._={definition:a}};CKEDITOR.style.prototype={apply:function(a){if(a instanceof
CKEDITOR.dom.document)return B.call(this,a.getSelection());if(this.checkApplicable(a.elementPath(),a)){var c=this._.enterMode;c||(this._.enterMode=a.activeEnterMode);B.call(this,a.getSelection(),0,a);this._.enterMode=c}},remove:function(a){if(a instanceof CKEDITOR.dom.document)return B.call(this,a.getSelection(),1);if(this.checkApplicable(a.elementPath(),a)){var c=this._.enterMode;c||(this._.enterMode=a.activeEnterMode);B.call(this,a.getSelection(),1,a);this._.enterMode=c}},applyToRange:function(a){this.applyToRange=
this.type==CKEDITOR.STYLE_INLINE?f:this.type==CKEDITOR.STYLE_BLOCK?l:this.type==CKEDITOR.STYLE_OBJECT?m:null;return this.applyToRange(a)},removeFromRange:function(c){this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?a:this.type==CKEDITOR.STYLE_BLOCK?d:this.type==CKEDITOR.STYLE_OBJECT?k:null;return this.removeFromRange(c)},applyToObject:function(a){v(a,this)},checkActive:function(a,c){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(a.block||a.blockLimit,!0,c);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var d=
a.elements,b=0,e;b<d.length;b++)if(e=d[b],this.type!=CKEDITOR.STYLE_INLINE||e!=a.block&&e!=a.blockLimit){if(this.type==CKEDITOR.STYLE_OBJECT){var g=e.getName();if(!("string"==typeof this.element?g==this.element:g in this.element))continue}if(this.checkElementRemovable(e,!0,c))return!0}}return!1},checkApplicable:function(a,c,d){c&&c instanceof CKEDITOR.filter&&(d=c);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,c){var d=this._.definition;if(!a||!d.ignoreReadonly&&a.isReadOnly())return!1;var b=a.getName();if("string"==typeof this.element?b==this.element:b in this.element){if(!c&&!a.hasAttributes())return!0;if(b=d._AC)d=b;else{var b={},e=0,g=d.attributes;if(g)for(var f in g)e++,b[f]=g[f];if(f=CKEDITOR.style.getStyleText(d))b.style||e++,b.style=f;b._length=e;d=d._AC=b}if(d._length){for(var h in d)if("_length"!=h)if(b=a.getAttribute(h)||"","style"==h?x(d[h],b):d[h]==b){if(!c)return!0}else if(c)return!1;
if(c)return!0}else return!0}return!1},checkElementRemovable:function(a,c,d){if(this.checkElementMatch(a,c,d))return!0;if(c=z(this)[a.getName()]){var b;if(!(c=c.attributes))return!0;for(d=0;d<c.length;d++)if(b=c[d][0],b=a.getAttribute(b)){var e=c[d][1];if(null===e)return!0;if("string"==typeof e){if(b==e)return!0}else if(e.test(b))return!0}}return!1},buildPreview:function(a){var c=this._.definition,d=[],b=c.element;"bdo"==b&&(b="span");var d=["\x3c",b],e=c.attributes;if(e)for(var g in e)d.push(" ",
g,'\x3d"',e[g],'"');(e=CKEDITOR.style.getStyleText(c))&&d.push(' style\x3d"',e,'"');d.push("\x3e",a||c.name,"\x3c/",b,"\x3e");return d.join("")},getDefinition:function(){return this._.definition}};CKEDITOR.style.getStyleText=function(a){var c=a._ST;if(c)return c;var c=a.styles,d=a.attributes&&a.attributes.style||"",b="";d.length&&(d=d.replace(E,";"));for(var e in c){var g=c[e],f=(e+":"+g).replace(E,";");"inherit"==g?b+=f:d+=f}d.length&&(d=CKEDITOR.tools.normalizeCssText(d,!0));return a._ST=d+b};CKEDITOR.style.customHandlers=
{};CKEDITOR.style.addCustomHandler=function(a){var c=function(a){this._={definition:a};this.setup&&this.setup(a)};c.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},a,!0);return this.customHandlers[a.type]=c};var M=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,I=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED})();CKEDITOR.styleCommand=function(b,
h){this.requiredContent=this.allowedContent=this.style=b;CKEDITOR.tools.extend(this,h,!0)};CKEDITOR.styleCommand.prototype.exec=function(b){b.focus();this.state==CKEDITOR.TRISTATE_OFF?b.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&b.removeStyle(this.style)};CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet");CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet);CKEDITOR.loadStylesSet=function(b,h,f){CKEDITOR.stylesSet.addExternal(b,h,"");CKEDITOR.stylesSet.load(b,
f)};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(b,h){var f=this._.styleStateChangeCallbacks;f||(f=this._.styleStateChangeCallbacks=[],this.on("selectionChange",function(a){for(var b=0;b<f.length;b++){var h=f[b],k=h.style.checkActive(a.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;h.fn.call(this,k)}}));f.push({style:b,fn:h})},applyStyle:function(b){b.apply(this)},removeStyle:function(b){b.remove(this)},getStylesSet:function(b){if(this._.stylesDefinitions)b(this._.stylesDefinitions);
else{var h=this,f=h.config.stylesCombo_stylesSet||h.config.stylesSet;if(!1===f)b(null);else if(f instanceof Array)h._.stylesDefinitions=f,b(f);else{f||(f="default");var f=f.split(":"),a=f[0];CKEDITOR.stylesSet.addExternal(a,f[1]?f.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(a,function(g){h._.stylesDefinitions=g[a];b(h._.stylesDefinitions)})}}}});(function(){if(window.Promise)CKEDITOR.tools.promise=Promise;else{var b=CKEDITOR.getUrl("vendor/promise.js");if("function"===
typeof window.define&&window.define.amd&&"function"===typeof window.require)return window.require([b],function(b){CKEDITOR.tools.promise=b});CKEDITOR.scriptLoader.load(b,function(h){if(!h)return CKEDITOR.error("no-vendor-lib",{path:b});if("undefined"!==typeof window.ES6Promise)return CKEDITOR.tools.promise=ES6Promise})}})();(function(){function b(a,b,m){a.once("selectionCheck",function(a){if(!h){var l=a.data.getRanges()[0];m.equals(l)?a.cancel():b.equals(l)&&(f=!0)}},null,null,-1)}var h=!0,f=!1;CKEDITOR.dom.selection.setupEditorOptimization=
function(a){a.on("selectionCheck",function(a){a.data&&!f&&a.data.optimizeInElementEnds();f=!1});a.on("contentDom",function(){var b=a.editable();b&&(b.attachListener(b,"keydown",function(a){this._.shiftPressed=a.data.$.shiftKey},this),b.attachListener(b,"keyup",function(a){this._.shiftPressed=a.data.$.shiftKey},this))})};CKEDITOR.dom.selection.prototype.optimizeInElementEnds=function(){var a=this.getRanges()[0],g=this.root.editor,f;if(this.root.editor._.shiftPressed||this.isFake||a.isCollapsed||a.startContainer.equals(a.endContainer))f=
!1;else if(0===a.endOffset)f=!0;else{f=a.startContainer.type===CKEDITOR.NODE_TEXT;var k=a.endContainer.type===CKEDITOR.NODE_TEXT,l=f?a.startContainer.getLength():a.startContainer.getChildCount();f=a.startOffset===l||f^k}f&&(f=a.clone(),a.shrink(CKEDITOR.SHRINK_TEXT,!1,{skipBogus:!0}),h=!1,b(g,a,f),a.select(),h=!0)}})();CKEDITOR.dom.comment=function(b,h){"string"==typeof b&&(b=(h?h.$:document).createComment(b));CKEDITOR.dom.domObject.call(this,b)};CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node;
CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"\x3c!--"+this.$.nodeValue+"--\x3e"}});"use strict";(function(){var b={},h={},f;for(f in CKEDITOR.dtd.$blockLimit)f in CKEDITOR.dtd.$list||(b[f]=1);for(f in CKEDITOR.dtd.$block)f in CKEDITOR.dtd.$blockLimit||f in CKEDITOR.dtd.$empty||(h[f]=1);CKEDITOR.dom.elementPath=function(a,g){var f=null,k=null,l=[],d=a,e;g=g||a.getDocument().getBody();d||(d=g);do if(d.type==CKEDITOR.NODE_ELEMENT){l.push(d);
if(!this.lastElement&&(this.lastElement=d,d.is(CKEDITOR.dtd.$object)||"false"==d.getAttribute("contenteditable")))continue;if(d.equals(g))break;if(!k&&(e=d.getName(),"true"==d.getAttribute("contenteditable")?k=d:!f&&h[e]&&(f=d),b[e])){if(e=!f&&"div"==e){a:{e=d.getChildren();for(var c=0,n=e.count();c<n;c++){var r=e.getItem(c);if(r.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[r.getName()]){e=!0;break a}}e=!1}e=!e}e?f=d:k=d}}while(d=d.getParent());k||(k=g);this.block=f;this.blockLimit=k;this.root=
g;this.elements=l}})();CKEDITOR.dom.elementPath.prototype={compare:function(b){var h=this.elements;b=b&&b.elements;if(!b||h.length!=b.length)return!1;for(var f=0;f<h.length;f++)if(!h[f].equals(b[f]))return!1;return!0},contains:function(b,h,f){var a=0,g;"string"==typeof b&&(g=function(a){return a.getName()==b});b instanceof CKEDITOR.dom.element?g=function(a){return a.equals(b)}:CKEDITOR.tools.isArray(b)?g=function(a){return-1<CKEDITOR.tools.indexOf(b,a.getName())}:"function"==typeof b?g=b:"object"==
typeof b&&(g=function(a){return a.getName()in b});var m=this.elements,k=m.length;h&&(f?a+=1:--k);f&&(m=Array.prototype.slice.call(m,0),m.reverse());for(;a<k;a++)if(g(m[a]))return m[a];return null},isContextFor:function(b){var h;return b in CKEDITOR.dtd.$block?(h=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit,!!h.getDtd()[b]):!0},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}};CKEDITOR.dom.text=function(b,h){"string"==
typeof b&&(b=(h?h.$:document).createTextNode(b));this.$=b};CKEDITOR.dom.text.prototype=new CKEDITOR.dom.node;CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(b){this.$.nodeValue=b},isEmpty:function(b){var h=this.getText();b&&(h=CKEDITOR.tools.trim(h));return!h||h===CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE},split:function(b){var h=this.$.parentNode,f=h.childNodes.length,
a=this.getLength(),g=this.getDocument(),m=new CKEDITOR.dom.text(this.$.splitText(b),g);h.childNodes.length==f&&(b>=a?(m=g.createText(""),m.insertAfter(this)):(b=g.createText(""),b.insertAfter(m),b.remove()));return m},substring:function(b,h){return"number"!=typeof h?this.$.nodeValue.substr(b):this.$.nodeValue.substring(b,h)}});(function(){function b(b,a,g){var h=b.serializable,k=a[g?"endContainer":"startContainer"],l=g?"endOffset":"startOffset",d=h?a.document.getById(b.startNode):b.startNode;b=h?
a.document.getById(b.endNode):b.endNode;k.equals(d.getPrevious())?(a.startOffset=a.startOffset-k.getLength()-b.getPrevious().getLength(),k=b.getNext()):k.equals(b.getPrevious())&&(a.startOffset-=k.getLength(),k=b.getNext());k.equals(d.getParent())&&a[l]++;k.equals(b.getParent())&&a[l]++;a[g?"endContainer":"startContainer"]=k;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,h)};
var h={createIterator:function(){var b=this,a=CKEDITOR.dom.walker.bookmark(),g=[],h;return{getNextRange:function(k){h=void 0===h?0:h+1;var l=b[h];if(l&&1<b.length){if(!h)for(var d=b.length-1;0<=d;d--)g.unshift(b[d].createBookmark(!0));if(k)for(var e=0;b[h+e+1];){var c=l.document;k=0;d=c.getById(g[e].endNode);for(c=c.getById(g[e+1].startNode);;){d=d.getNextSourceNode(!1);if(c.equals(d))k=1;else if(a(d)||d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary())continue;break}if(!k)break;e++}for(l.moveToBookmark(g.shift());e--;)d=
b[++h],d.moveToBookmark(g.shift()),l.setEnd(d.endContainer,d.endOffset)}return l}}},createBookmarks:function(f){for(var a=[],g,h=0;h<this.length;h++){a.push(g=this[h].createBookmark(f,!0));for(var k=h+1;k<this.length;k++)this[k]=b(g,this[k]),this[k]=b(g,this[k],!0)}return a},createBookmarks2:function(b){for(var a=[],g=0;g<this.length;g++)a.push(this[g].createBookmark2(b));return a},moveToBookmarks:function(b){for(var a=0;a<this.length;a++)this[a].moveToBookmark(b[a])}}})();(function(){function b(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||
"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function h(a){var c=CKEDITOR.skin["ua_"+a],d=CKEDITOR.env;if(c)for(var c=c.split(",").sort(function(a,c){return a>c?-1:1}),g=0,f;g<c.length;g++)if(f=c[g],d.ie&&(f.replace(/^ie/,"")==d.version||d.quirks&&"iequirks"==f)&&(f="ie"),d[f]){a+="_"+c[g];break}return CKEDITOR.getUrl(b()+a+".css")}function f(a,c){m[a]||(CKEDITOR.document.appendStyleSheet(h(a)),m[a]=1);c&&c()}function a(a){var c=a.getById(k);c||(c=a.getHead().append("style"),c.setAttribute("id",
k),c.setAttribute("type","text/css"));return c}function g(a,c,d){var b,g,f;if(CKEDITOR.env.webkit)for(c=c.split("}").slice(0,-1),g=0;g<c.length;g++)c[g]=c[g].split("{");for(var h=0;h<a.length;h++)if(CKEDITOR.env.webkit)for(g=0;g<c.length;g++){f=c[g][1];for(b=0;b<d.length;b++)f=f.replace(d[b][0],d[b][1]);a[h].$.sheet.addRule(c[g][0],f)}else{f=c;for(b=0;b<d.length;b++)f=f.replace(d[b][0],d[b][1]);CKEDITOR.env.ie&&11>CKEDITOR.env.version?a[h].$.styleSheet.cssText+=f:a[h].$.innerHTML+=f}}var m={};CKEDITOR.skin=
{path:b,loadPart:function(a,c){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(b()+"skin.js"),function(){f(a,c)}):f(a,c)},getPath:function(a){return CKEDITOR.getUrl(h(a))},icons:{},addIcon:function(a,c,d,b){a=a.toLowerCase();this.icons[a]||(this.icons[a]={path:c,offset:d||0,bgsize:b||"16px"})},getIconStyle:function(a,c,d,b,g){var f;a&&(a=a.toLowerCase(),c&&(f=this.icons[a+"-rtl"]),f||(f=this.icons[a]));a=d||f&&f.path||"";b=b||f&&f.offset;g=g||f&&f.bgsize||
"16px";a&&(a=a.replace(/'/g,"\\'"));return a&&"background-image:url('"+CKEDITOR.getUrl(a)+"');background-position:0 "+b+"px;background-size:"+g+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(b){var c=a(CKEDITOR.document);return(this.setUiColor=function(a){this.uiColor=a;var b=CKEDITOR.skin.chameleon,e="",f="";"function"==typeof b&&(e=b(this,"editor"),f=b(this,"panel"));a=[[d,a]];g([c],e,a);g(l,f,a)}).call(this,b)}});var k="cke_ui_color",
l=[],d=/\$color/g;CKEDITOR.on("instanceLoaded",function(b){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var c=b.editor;b=function(b){b=(b.data[0]||b.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument();if(!b.getById("cke_ui_color")){var e=a(b);l.push(e);c.on("destroy",function(){l=CKEDITOR.tools.array.filter(l,function(a){return e!==a})});(b=c.getUiColor())&&g([e],CKEDITOR.skin.chameleon(c,"panel"),[[d,b]])}};c.on("panelShow",b);c.on("menuShow",b);c.config.uiColor&&c.setUiColor(c.config.uiColor)}})})();
(function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=!1;else{var b=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);b.appendTo(CKEDITOR.document.getHead());try{var h=b.getComputedStyle("border-top-color"),f=b.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!h||h!=f)}catch(a){CKEDITOR.env.hc=!1}b.remove()}CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc");CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}");
CKEDITOR.status="loaded";CKEDITOR.fireOnce("loaded");if(b=CKEDITOR._.pending)for(delete CKEDITOR._.pending,h=0;h<b.length;h++)CKEDITOR.editor.prototype.constructor.apply(b[h][0],b[h][1]),CKEDITOR.add(b[h][0])})();CKEDITOR.skin.name="moono-lisa";CKEDITOR.skin.ua_editor="ie,iequirks,ie8,gecko";CKEDITOR.skin.ua_dialog="ie,iequirks,ie8";CKEDITOR.skin.chameleon=function(){var b=function(){return function(b,a){for(var g=b.match(/[^#]./g),h=0;3>h;h++){var k=h,l;l=parseInt(g[h],16);l=("0"+(0>a?0|l*(1+a):
0|l+(255-l)*a).toString(16)).slice(-2);g[k]=l}return"#"+g.join("")}}(),h={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ background-color:{defaultBackground};border-bottom-color:{defaultBorder};] {id} .cke_bottom [background-color:{defaultBackground};border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [background-color:{defaultBackground};border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [background-color:{defaultBackground};outline-color:{defaultBorder};] {id} .cke_dialog_tab [background-color:{dialogTab};border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [background-color:{lightBackground};] {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} a.cke_button_off:hover,{id} a.cke_button_off:focus,{id} a.cke_button_off:active [background-color:{darkBackground};border-color:{toolbarElementsBorder};] {id} .cke_button_on [background-color:{ckeButtonOn};border-color:{toolbarElementsBorder};] {id} .cke_toolbar_separator,{id} .cke_toolgroup a.cke_button:last-child:after,{id} .cke_toolgroup a.cke_button.cke_button_disabled:hover:last-child:after [background-color: {toolbarElementsBorder};border-color: {toolbarElementsBorder};] {id} a.cke_combo_button:hover,{id} a.cke_combo_button:focus,{id} .cke_combo_on a.cke_combo_button [border-color:{toolbarElementsBorder};background-color:{darkBackground};] {id} .cke_combo:after [border-color:{toolbarElementsBorder};] {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:{darkBackground};] {id}.cke_panel [border-color:{defaultBorder};] "),
panel:new CKEDITOR.template(".cke_panel_grouptitle [background-color:{lightBackground};border-color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menubutton:hover,.cke_menubutton:focus,.cke_menubutton:active [background-color:{menubuttonHover};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .cke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background-color:{menubuttonIconHover};] .cke_menubutton_disabled:hover .cke_menubutton_icon,.cke_menubutton_disabled:focus .cke_menubutton_icon,.cke_menubutton_disabled:active .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menuseparator [background-color:{menubuttonIcon};] a:hover.cke_colorbox, a:active.cke_colorbox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_colormore, a:active.cke_colorauto, a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defaultBorder};] ")};
return function(f,a){var g=b(f.uiColor,.4),g={id:"."+f.id,defaultBorder:b(g,-.2),toolbarElementsBorder:b(g,-.25),defaultBackground:g,lightBackground:b(g,.8),darkBackground:b(g,-.15),ckeButtonOn:b(g,.4),ckeResizer:b(g,-.4),ckeColorauto:b(g,.8),dialogBody:b(g,.7),dialogTab:b(g,.65),dialogTabSelected:"#FFF",dialogTabSelectedBorder:"#FFF",elementsPathColor:b(g,-.6),menubuttonHover:b(g,.1),menubuttonIcon:b(g,.5),menubuttonIconHover:b(g,.3)};return h[a].output(g).replace(/\[/g,"{").replace(/\]/g,"}")}}();
CKEDITOR.plugins.add("dialogui",{onLoad:function(){var b=function(a){this._||(this._={});this._["default"]=this._.initValue=a["default"]||"";this._.required=a.required||!1;for(var b=[this._],c=1;c<arguments.length;c++)b.push(arguments[c]);b.push(!0);CKEDITOR.tools.extend.apply(CKEDITOR.tools,b);return this._},h={build:function(a,b,c){return new CKEDITOR.ui.dialog.textInput(a,b,c)}},f={build:function(a,b,c){return new CKEDITOR.ui.dialog[b.type](a,b,c)}},a={isChanged:function(){return this.getValue()!=
this.getInitValue()},reset:function(a){this.setValue(this.getInitValue(),a)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._["default"]},getInitValue:function(){return this._.initValue}},g=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),m=/^on([A-Z]\w+)/,k=function(a){for(var b in a)(m.test(b)||"title"==b||"type"==b)&&delete a[b];return a},l=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,e,c,g){if(!(4>arguments.length)){var f=b.call(this,e);f.labelId=CKEDITOR.tools.getNextId()+
"_label";this._.children=[];var h={role:e.role||"presentation"};e.includeLabel&&(h["aria-labelledby"]=f.labelId);CKEDITOR.ui.dialog.uiElement.call(this,a,e,c,"div",null,h,function(){var c=[],b=e.required?" cke_required":"";"horizontal"!=e.labelLayout?c.push('\x3clabel class\x3d"cke_dialog_ui_labeled_label'+b+'" ',' id\x3d"'+f.labelId+'"',f.inputId?' for\x3d"'+f.inputId+'"':"",(e.labelStyle?' style\x3d"'+e.labelStyle+'"':"")+"\x3e",e.label,"\x3c/label\x3e",'\x3cdiv class\x3d"cke_dialog_ui_labeled_content"',
e.controlStyle?' style\x3d"'+e.controlStyle+'"':"",' role\x3d"presentation"\x3e',g.call(this,a,e),"\x3c/div\x3e"):(b={type:"hbox",widths:e.widths,padding:0,children:[{type:"html",html:'\x3clabel class\x3d"cke_dialog_ui_labeled_label'+b+'" id\x3d"'+f.labelId+'" for\x3d"'+f.inputId+'"'+(e.labelStyle?' style\x3d"'+e.labelStyle+'"':"")+"\x3e"+CKEDITOR.tools.htmlEncode(e.label)+"\x3c/label\x3e"},{type:"html",html:'\x3cspan class\x3d"cke_dialog_ui_labeled_content"'+(e.controlStyle?' style\x3d"'+e.controlStyle+
'"':"")+"\x3e"+g.call(this,a,e)+"\x3c/span\x3e"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(a,b,c));return c.join("")})}},textInput:function(a,e,c){if(!(3>arguments.length)){b.call(this,e);var g=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",f={"class":"cke_dialog_ui_input_"+e.type,id:g,type:e.type};e.validate&&(this.validate=e.validate);e.maxLength&&(f.maxlength=e.maxLength);e.size&&(f.size=e.size);e.inputStyle&&(f.style=e.inputStyle);var h=this,k=!1;a.on("load",function(){h.getInputElement().on("keydown",
function(a){13==a.data.getKeystroke()&&(k=!0)});h.getInputElement().on("keyup",function(c){13==c.data.getKeystroke()&&k&&(a.getButton("ok")&&setTimeout(function(){a.getButton("ok").click()},0),k=!1);h.bidi&&l.call(h,c)},null,null,1E3)});CKEDITOR.ui.dialog.labeledElement.call(this,a,e,c,function(){var a=['\x3cdiv class\x3d"cke_dialog_ui_input_',e.type,'" role\x3d"presentation"'];e.width&&a.push('style\x3d"width:'+e.width+'" ');a.push("\x3e\x3cinput ");f["aria-labelledby"]=this._.labelId;this._.required&&
(f["aria-required"]=this._.required);for(var c in f)a.push(c+'\x3d"'+f[c]+'" ');a.push(" /\x3e\x3c/div\x3e");return a.join("")})}},textarea:function(a,e,c){if(!(3>arguments.length)){b.call(this,e);var g=this,f=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",h={};e.validate&&(this.validate=e.validate);h.rows=e.rows||5;h.cols=e.cols||20;h["class"]="cke_dialog_ui_input_textarea "+(e["class"]||"");"undefined"!=typeof e.inputStyle&&(h.style=e.inputStyle);e.dir&&(h.dir=e.dir);if(g.bidi)a.on("load",
function(){g.getInputElement().on("keyup",l)},g);CKEDITOR.ui.dialog.labeledElement.call(this,a,e,c,function(){h["aria-labelledby"]=this._.labelId;this._.required&&(h["aria-required"]=this._.required);var a=['\x3cdiv class\x3d"cke_dialog_ui_input_textarea" role\x3d"presentation"\x3e\x3ctextarea id\x3d"',f,'" '],c;for(c in h)a.push(c+'\x3d"'+CKEDITOR.tools.htmlEncode(h[c])+'" ');a.push("\x3e",CKEDITOR.tools.htmlEncode(g._["default"]),"\x3c/textarea\x3e\x3c/div\x3e");return a.join("")})}},checkbox:function(a,
e,c){if(!(3>arguments.length)){var g=b.call(this,e,{"default":!!e["default"]});e.validate&&(this.validate=e.validate);CKEDITOR.ui.dialog.uiElement.call(this,a,e,c,"span",null,null,function(){var c=CKEDITOR.tools.extend({},e,{id:e.id?e.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),b=[],f=CKEDITOR.tools.getNextId()+"_label",h={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":f};k(c);e["default"]&&(h.checked="checked");"undefined"!=typeof c.inputStyle&&(c.style=c.inputStyle);
g.checkbox=new CKEDITOR.ui.dialog.uiElement(a,c,b,"input",null,h);b.push(' \x3clabel id\x3d"',f,'" for\x3d"',h.id,'"'+(e.labelStyle?' style\x3d"'+e.labelStyle+'"':"")+"\x3e",CKEDITOR.tools.htmlEncode(e.label),"\x3c/label\x3e");return b.join("")})}},radio:function(a,e,c){if(!(3>arguments.length)){b.call(this,e);this._["default"]||(this._["default"]=this._.initValue=e.items[0][1]);e.validate&&(this.validate=e.validate);var g=[],f=this;e.role="radiogroup";e.includeLabel=!0;CKEDITOR.ui.dialog.labeledElement.call(this,
a,e,c,function(){for(var c=[],b=[],h=(e.id?e.id:CKEDITOR.tools.getNextId())+"_radio",l=0;l<e.items.length;l++){var m=e.items[l],v=void 0!==m[2]?m[2]:m[0],A=void 0!==m[1]?m[1]:m[0],z=CKEDITOR.tools.getNextId()+"_radio_input",w=z+"_label",z=CKEDITOR.tools.extend({},e,{id:z,title:null,type:null},!0),v=CKEDITOR.tools.extend({},z,{title:v},!0),x={type:"radio","class":"cke_dialog_ui_radio_input",name:h,value:A,"aria-labelledby":w},B=[];f._["default"]==A&&(x.checked="checked");k(z);k(v);"undefined"!=typeof z.inputStyle&&
(z.style=z.inputStyle);z.keyboardFocusable=!0;g.push(new CKEDITOR.ui.dialog.uiElement(a,z,B,"input",null,x));B.push(" ");new CKEDITOR.ui.dialog.uiElement(a,v,B,"label",null,{id:w,"for":x.id},m[0]);c.push(B.join(""))}new CKEDITOR.ui.dialog.hbox(a,g,c,b);return b.join("")});this._.children=g}},button:function(a,e,c){if(arguments.length){"function"==typeof e&&(e=e(a.getParentEditor()));b.call(this,e,{disabled:e.disabled||!1});CKEDITOR.event.implementOn(this);var g=this;a.on("load",function(){var a=this.getElement();
(function(){a.on("click",function(a){g.click();a.data.preventDefault()});a.on("keydown",function(a){a.data.getKeystroke()in{32:1}&&(g.click(),a.data.preventDefault())})})();a.unselectable()},this);var f=CKEDITOR.tools.extend({},e);delete f.style;var h=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,a,f,c,"a",null,{style:e.style,href:"javascript:void(0)",title:e.label,hidefocus:"true","class":e["class"],role:"button","aria-labelledby":h},'\x3cspan id\x3d"'+h+'" class\x3d"cke_dialog_ui_button"\x3e'+
CKEDITOR.tools.htmlEncode(e.label)+"\x3c/span\x3e")}},select:function(a,e,c){if(!(3>arguments.length)){var g=b.call(this,e);e.validate&&(this.validate=e.validate);g.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,a,e,c,function(){var c=CKEDITOR.tools.extend({},e,{id:e.id?e.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),b=[],f=[],h={id:g.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};b.push('\x3cdiv class\x3d"cke_dialog_ui_input_',
e.type,'" role\x3d"presentation"');e.width&&b.push('style\x3d"width:'+e.width+'" ');b.push("\x3e");void 0!==e.size&&(h.size=e.size);void 0!==e.multiple&&(h.multiple=e.multiple);k(c);for(var l=0,m;l<e.items.length&&(m=e.items[l]);l++)f.push('\x3coption value\x3d"',CKEDITOR.tools.htmlEncode(void 0!==m[1]?m[1]:m[0]).replace(/"/g,"\x26quot;"),'" /\x3e ',CKEDITOR.tools.htmlEncode(m[0]));"undefined"!=typeof c.inputStyle&&(c.style=c.inputStyle);g.select=new CKEDITOR.ui.dialog.uiElement(a,c,b,"select",null,
h,f.join(""));b.push("\x3c/div\x3e");return b.join("")})}},file:function(a,e,c){if(!(3>arguments.length)){void 0===e["default"]&&(e["default"]="");var g=CKEDITOR.tools.extend(b.call(this,e),{definition:e,buttons:[]});e.validate&&(this.validate=e.validate);a.on("load",function(){CKEDITOR.document.getById(g.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,a,e,c,function(){g.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"',
g.frameId,'" title\x3d"',e.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,e,c){var g=this;if(!(3>arguments.length)){b.call(this,e);e.validate&&(this.validate=e.validate);var f=CKEDITOR.tools.extend({},e),h=f.onClick;f.className=(f.className?f.className+" ":"")+"cke_dialog_ui_button";f.onClick=function(c){var b=
e["for"];c=h?h.call(this,c):!1;!1!==c&&("xhr"!==c&&a.getContentElement(b[0],b[1]).submit(),this.disable())};a.on("load",function(){a.getContentElement(e["for"][0],e["for"][1])._.buttons.push(g)});CKEDITOR.ui.dialog.button.call(this,a,f,c)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,b=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,c=/\/$/;return function(g,f,h){if(!(3>arguments.length)){var k=[],l=f.html;"\x3c"!=l.charAt(0)&&(l="\x3cspan\x3e"+l+"\x3c/span\x3e");var m=f.focus;if(m){var y=this.focus;
this.focus=function(){("function"==typeof m?m:y).call(this);this.fire("focus")};f.isFocusable&&(this.isFocusable=this.isFocusable);this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,g,f,k,"span",null,null,"");k=k.join("").match(a);l=l.match(b)||["","",""];c.test(l[1])&&(l[1]=l[1].slice(0,-1),l[2]="/"+l[2]);h.push([l[1]," ",k[1]||"",l[2]].join(""))}}}(),fieldset:function(a,b,c,g,f){var h=f.label;this._={children:b};CKEDITOR.ui.dialog.uiElement.call(this,a,f,g,"fieldset",null,null,function(){var a=
[];h&&a.push("\x3clegend"+(f.labelStyle?' style\x3d"'+f.labelStyle+'"':"")+"\x3e"+h+"\x3c/legend\x3e");for(var d=0;d<c.length;d++)a.push(c[d]);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:g},!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,c){var g=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),f=this.getInputElement().$;g.$.text=a;g.$.value=void 0===b||null===b?a:b;void 0===c||null===c?CKEDITOR.env.ie?f.add(g.$):f.add(g.$,null):f.add(g.$,c);return this},remove:function(a){this.getInputElement().$.remove(a);
return this},clear:function(){for(var a=this.getInputElement().$;0<a.length;)a.remove(0);return this},keyboardFocusable:!0},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 g.onChange.apply(this,arguments);a.on("load",function(){var a=this._.checkbox.getElement();a.on("propertychange",function(d){d=d.data.$;"checked"==d.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 c=this._.children,g,f=0;f<c.length&&(g=c[f]);f++)g.getElement().$.checked=
g.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 g.onChange.apply(this,arguments);a.on("load",function(){for(var a=
this._.children,d=this,b=0;b<a.length;b++)a[b].getElement().on("propertychange",function(a){a=a.data.$;"checked"==a.propertyName&&this.$.checked&&d.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+)/,c,g=function(a,c,d,b){a.on("formLoaded",function(){a.getInputElement().on(d,b,a)})},f;for(f in a)if(c=f.match(b))this.eventProcessors[f]?this.eventProcessors[f].call(this,this._.dialog,a[f]):g(this,this._.dialog,c[1].toLowerCase(),a[f]);return this},reset:function(){function a(){c.$.open();
var d="";g.size&&(d=g.size-(CKEDITOR.env.ie?7:0));var v=b.frameId+"_input";c.$.write(['\x3chtml dir\x3d"'+l+'" lang\x3d"'+m+'"\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"'+l+'" lang\x3d"'+m+'" action\x3d"',CKEDITOR.tools.htmlEncode(g.action),'"\x3e\x3clabel id\x3d"',b.labelId,'" for\x3d"',v,'" style\x3d"display:none"\x3e',CKEDITOR.tools.htmlEncode(g.label),
'\x3c/label\x3e\x3cinput style\x3d"width:100%" id\x3d"',v,'" aria-labelledby\x3d"',b.labelId,'" type\x3d"file" name\x3d"',CKEDITOR.tools.htmlEncode(g.id||"cke_upload"),'" size\x3d"',CKEDITOR.tools.htmlEncode(0<d?d:""),'" /\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(""));
c.$.close();for(d=0;d<f.length;d++)f[d].enable()}var b=this._,c=CKEDITOR.document.getById(b.frameId).getFrameDocument(),g=b.definition,f=b.buttons,h=this.formLoadedNumber,k=this.formUnloadNumber,l=b.dialog._.editor.lang.dir,m=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",h);CKEDITOR.dialog.addUIElement("password",h);CKEDITOR.dialog.addUIElement("tel",h);CKEDITOR.dialog.addUIElement("textarea",f);CKEDITOR.dialog.addUIElement("checkbox",f);CKEDITOR.dialog.addUIElement("radio",f);CKEDITOR.dialog.addUIElement("button",f);CKEDITOR.dialog.addUIElement("select",f);CKEDITOR.dialog.addUIElement("file",f);CKEDITOR.dialog.addUIElement("fileButton",
f);CKEDITOR.dialog.addUIElement("html",f);CKEDITOR.dialog.addUIElement("fieldset",{build:function(a,b,c){for(var g=b.children,f,h=[],k=[],l=0;l<g.length&&(f=g[l]);l++){var m=[];h.push(m);k.push(CKEDITOR.dialog._.uiElementBuilders[f.type].build(a,f,m))}return new CKEDITOR.ui.dialog[b.type](a,k,h,c,b)}})}});CKEDITOR.DIALOG_RESIZE_NONE=0;CKEDITOR.DIALOG_RESIZE_WIDTH=1;CKEDITOR.DIALOG_RESIZE_HEIGHT=2;CKEDITOR.DIALOG_RESIZE_BOTH=3;CKEDITOR.DIALOG_STATE_IDLE=1;CKEDITOR.DIALOG_STATE_BUSY=2;(function(){function b(a){a._.tabBarMode=
!0;a._.tabs[a._.currentTabId][0].focus();a._.currentFocusIndex=-1}function h(){for(var a=this._.tabIdList.length,c=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+a,d=c-1;d>c-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,c=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),d=c+1;d<c+a;d++)if(this._.tabs[this._.tabIdList[d%a]][0].$.offsetHeight)return this._.tabIdList[d%a];
return null}function a(a,c){for(var d=a.$.getElementsByTagName("input"),b=0,e=d.length;b<e;b++){var g=new CKEDITOR.dom.element(d[b]);"text"==g.getAttribute("type").toLowerCase()&&(c?(g.setAttribute("value",g.getCustomData("fake_value")||""),g.removeCustomData("fake_value")):(g.setCustomData("fake_value",g.getAttribute("value")),g.setAttribute("value","")))}}function g(a,c){var d=this.getInputElement();d&&(a?d.removeAttribute("aria-invalid"):d.setAttribute("aria-invalid",!0));a||(this.select?this.select():
this.focus());c&&alert(c);this.fire("validated",{valid:a,msg:c})}function m(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")}function k(a){var c=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",J).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=c.getChild([0,0,0,0,0]),b=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()));b.unselectable();e.unselectable();return{element:c,
parts:{dialog:c.getChild(0),title:b,close:e,tabs:d.getChild(2),contents:d.getChild([3,0,0,0]),footer:d.getChild([3,0,1,0])}}}function l(a,c,d){this.element=c;this.focusIndex=d;this.tabIndex=0;this.isFocusable=function(){return!c.getAttribute("disabled")&&c.isVisible()};this.focus=function(){a._.currentFocusIndex=this.focusIndex;this.element.focus()};c.on("keydown",function(a){a.data.getKeystroke()in{32:1,13:1}&&this.fire("click")});c.on("focus",function(){this.fire("mouseover")});c.on("blur",function(){this.fire("mouseout")})}
function d(a){function c(){a.layout()}var d=CKEDITOR.document.getWindow();d.on("resize",c);a.on("hide",function(){d.removeListener("resize",c)})}function e(a,d){this.dialog=a;for(var b=d.contents,e=0,g;g=b[e];e++)b[e]=g&&new c(a,g);CKEDITOR.tools.extend(this,d)}function c(a,c){this._={dialog:a};CKEDITOR.tools.extend(this,c)}function n(a){function c(d){var k=a.getSize(),l=a.parts.dialog.getParent().getClientSize(),m=d.data.$.screenX,n=d.data.$.screenY,r=m-b.x,v=n-b.y;b={x:m,y:n};e.x+=r;e.y+=v;m=e.x+
h[3]<f?-h[3]:e.x-h[1]>l.width-k.width-f?l.width-k.width+("rtl"==g.lang.dir?0:h[1]):e.x;k=e.y+h[0]<f?-h[0]:e.y-h[2]>l.height-k.height-f?l.height-k.height+h[2]:e.y;m=Math.floor(m);k=Math.floor(k);a.move(m,k,1);d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mousemove",c);CKEDITOR.document.removeListener("mouseup",d);if(CKEDITOR.env.ie6Compat){var a=G.getChild(0).getFrameDocument();a.removeListener("mousemove",c);a.removeListener("mouseup",d)}}var b=null,e=null,g=a.getParentEditor(),
f=g.config.dialog_magnetDistance,h=CKEDITOR.skin.margins||[0,0,0,0];"undefined"==typeof f&&(f=20);a.parts.title.on("mousedown",function(g){if(!a._.moved){var f=a._.element;f.getFirst().setStyle("position","absolute");f.removeStyle("display");a._.moved=!0;a.layout()}b={x:g.data.$.screenX,y:g.data.$.screenY};CKEDITOR.document.on("mousemove",c);CKEDITOR.document.on("mouseup",d);e=a.getPosition();CKEDITOR.env.ie6Compat&&(f=G.getChild(0).getFrameDocument(),f.on("mousemove",c),f.on("mouseup",d));g.data.preventDefault()},
a)}function r(a){function c(d){var n="rtl"==g.lang.dir,r=m.width,v=m.height,u=r+(d.data.$.screenX-l.x)*(n?-1:1)*(a._.moved?1:2),x=v+(d.data.$.screenY-l.y)*(a._.moved?1:2),y=a._.element.getFirst(),y=n&&parseInt(y.getComputedStyle("right"),10),w=a.getPosition();w.x=w.x||0;w.y=w.y||0;w.y+x>k.height&&(x=k.height-w.y);(n?y:w.x)+u>k.width&&(u=k.width-(n?y:w.x));x=Math.floor(x);u=Math.floor(u);if(e==CKEDITOR.DIALOG_RESIZE_WIDTH||e==CKEDITOR.DIALOG_RESIZE_BOTH)r=Math.max(b.minWidth||0,u-f);if(e==CKEDITOR.DIALOG_RESIZE_HEIGHT||
e==CKEDITOR.DIALOG_RESIZE_BOTH)v=Math.max(b.minHeight||0,x-h);a.resize(r,v);a._.moved&&t(a,a._.position.x,a._.position.y);a._.moved||a.layout();d.data.preventDefault()}function d(){CKEDITOR.document.removeListener("mouseup",d);CKEDITOR.document.removeListener("mousemove",c);n&&(n.remove(),n=null);if(CKEDITOR.env.ie6Compat){var a=G.getChild(0).getFrameDocument();a.removeListener("mouseup",d);a.removeListener("mousemove",c)}}var b=a.definition,e=b.resizable;if(e!=CKEDITOR.DIALOG_RESIZE_NONE){var g=
a.getParentEditor(),f,h,k,l,m,n,r=CKEDITOR.tools.addFunction(function(b){function e(a){return a.isVisible()}m=a.getSize();var g=a.parts.contents,r=g.$.getElementsByTagName("iframe").length,v=!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks);r&&(n=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_dialog_resize_cover" style\x3d"height: 100%; position: absolute; width: 100%; left:0; top:0;"\x3e\x3c/div\x3e'),g.append(n));h=m.height-a.parts.contents.getFirst(e).getSize("height",v);
f=m.width-a.parts.contents.getFirst(e).getSize("width",1);l={x:b.screenX,y:b.screenY};k=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",c);CKEDITOR.document.on("mouseup",d);CKEDITOR.env.ie6Compat&&(g=G.getChild(0).getFrameDocument(),g.on("mousemove",c),g.on("mouseup",d));b.preventDefault&&b.preventDefault()});a.on("load",function(){var c="";e==CKEDITOR.DIALOG_RESIZE_WIDTH?c=" cke_resizer_horizontal":e==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(c=" cke_resizer_vertical");c=CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_resizer'+
c+" cke_resizer_"+g.lang.dir+'" title\x3d"'+CKEDITOR.tools.htmlEncode(g.lang.common.resize)+'" onmousedown\x3d"CKEDITOR.tools.callFunction('+r+', event )"\x3e'+("ltr"==g.lang.dir?"◢":"◣")+"\x3c/div\x3e");a.parts.footer.append(c,1)});g.on("destroy",function(){CKEDITOR.tools.removeFunction(r)})}}function t(a,c,d){var b=a.parts.dialog.getParent().getClientSize(),e=a.getSize(),g=a._.viewportRatio,f=Math.max(b.width-e.width,0),b=Math.max(b.height-e.height,0);g.width=f?c/f:g.width;g.height=b?d/b:g.height;
a._.viewportRatio=g}function q(a){a.data.preventDefault(1)}function p(a){var c=a.config,d=CKEDITOR.skinName||a.config.skin,b=c.dialog_backgroundCoverColor||("moono-lisa"==d?"black":"white"),d=c.dialog_backgroundCoverOpacity,e=c.baseFloatZIndex,c=CKEDITOR.tools.genKey(b,d,e),g=I[c];CKEDITOR.document.getBody().addClass("cke_dialog_open");g?g.show():(e=['\x3cdiv tabIndex\x3d"-1" style\x3d"position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",e,"; top: 0px; left: 0px; ","; width: 100%; height: 100%;",
CKEDITOR.env.ie6Compat?"":"background-color: "+b,'" class\x3d"cke_dialog_background_cover"\x3e'],CKEDITOR.env.ie6Compat&&(b="\x3chtml\x3e\x3cbody style\x3d\\'background-color:"+b+";\\'\x3e\x3c/body\x3e\x3c/html\x3e",e.push('\x3ciframe hidefocus\x3d"true" frameborder\x3d"0" id\x3d"cke_dialog_background_iframe" src\x3d"javascript:'),e.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+b+"' );document.close();")+"})())"),e.push('" style\x3d"position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity\x3d0)"\x3e\x3c/iframe\x3e')),
e.push("\x3c/div\x3e"),g=CKEDITOR.dom.element.createFromHtml(e.join("")),g.setOpacity(void 0!==d?d:.5),g.on("keydown",q),g.on("keypress",q),g.on("keyup",q),g.appendTo(CKEDITOR.document.getBody()),I[c]=g);a.focusManager.add(g);G=g;CKEDITOR.env.mac&&CKEDITOR.env.webkit||g.focus()}function u(a){CKEDITOR.document.getBody().removeClass("cke_dialog_open");G&&(a.focusManager.remove(G),G.hide())}function y(a){var c=a.data.$.ctrlKey||a.data.$.metaKey,d=a.data.$.altKey,b=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode);
(c=K[(c?"CTRL+":"")+(d?"ALT+":"")+(b?"SHIFT+":"")+e])&&c.length&&(c=c[c.length-1],c.keydown&&c.keydown.call(c.uiElement,c.dialog,c.key),a.data.preventDefault())}function v(a){var c=a.data.$.ctrlKey||a.data.$.metaKey,d=a.data.$.altKey,b=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode);(c=K[(c?"CTRL+":"")+(d?"ALT+":"")+(b?"SHIFT+":"")+e])&&c.length&&(c=c[c.length-1],c.keyup&&(c.keyup.call(c.uiElement,c.dialog,c.key),a.data.preventDefault()))}function A(a,c,d,b,e){(K[d]||(K[d]=[])).push({uiElement:a,
dialog:c,key:d,keyup:e||a.accessKeyUp,keydown:b||a.accessKeyDown})}function z(a){for(var c in K){for(var d=K[c],b=d.length-1;0<=b;b--)d[b].dialog!=a&&d[b].uiElement!=a||d.splice(b,1);0===d.length&&delete K[c]}}function w(a,c){a._.accessKeyMap[c]&&a.selectPage(a._.accessKeyMap[c])}function x(){}var B=CKEDITOR.tools.cssLength,C,G,E=!CKEDITOR.env.ie||CKEDITOR.env.edge,J='\x3cdiv class\x3d"cke_reset_all cke_dialog_container {editorId} {editorDialogClass} {hidpi}" dir\x3d"{langDir}" style\x3d"'+(E?"display:flex":
"")+'" 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"'+(E?"margin:auto":"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(a,c){function d(){var a=B._.focusList;a.sort(function(a,c){return a.tabIndex!=c.tabIndex?c.tabIndex-a.tabIndex:a.focusIndex-c.focusIndex});for(var c=a.length,b=0;b<c;b++)a[b].focusIndex=b}function l(a){var c=B._.focusList;a=a||0;if(!(1>c.length)){var d=B._.currentFocusIndex;B._.tabBarMode&&0>a&&(d=0);try{c[d].getInputElement().$.blur()}catch(b){}var e=d,g=1<B._.pageCount;do{e+=a;if(g&&!B._.tabBarMode&&(e==c.length||-1==e)){B._.tabBarMode=!0;B._.tabs[B._.currentTabId][0].focus();
B._.currentFocusIndex=-1;return}e=(e+c.length)%c.length;if(e==d)break}while(a&&!c[e].isFocusable());c[e].focus();"text"==c[e].type&&c[e].select()}}function v(c){if(B==CKEDITOR.dialog._.currentTop){var d=c.data.getKeystroke(),e="rtl"==a.lang.dir,g=[37,38,39,40];z=p=0;if(9==d||d==CKEDITOR.SHIFT+9)l(d==CKEDITOR.SHIFT+9?-1:1),z=1;else if(d==CKEDITOR.ALT+121&&!B._.tabBarMode&&1<B.getPageCount())b(B),z=1;else if(-1!=CKEDITOR.tools.indexOf(g,d)&&B._.tabBarMode)d=-1!=CKEDITOR.tools.indexOf([e?39:37,38],d)?
h.call(B):f.call(B),B.selectPage(d),B._.tabs[d][0].focus(),z=1;else if(13!=d&&32!=d||!B._.tabBarMode)if(13==d)d=c.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),z=1),p=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(),p=1;else return;else this.selectPage(this._.currentTabId),this._.tabBarMode=!1,this._.currentFocusIndex=
-1,l(1),z=1;u(c)}}function u(a){z?a.data.preventDefault(1):p&&a.data.stopPropagation()}var x=CKEDITOR.dialog._.dialogDefinitions[c],y=CKEDITOR.tools.clone(C),w=a.config.dialog_buttonsOrder||"OS",t=a.lang.dir,A={},z,p;("OS"==w&&CKEDITOR.env.mac||"rtl"==w&&"ltr"==t||"ltr"==w&&"rtl"==t)&&y.buttons.reverse();x=CKEDITOR.tools.extend(x(a),y);x=CKEDITOR.tools.clone(x);x=new e(this,x);y=k(a);this._={editor:a,element:y.element,name:c,model:null,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},
buttons:{},accessKeyMap:{},viewportRatio:{width:.5,height:.5},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:!1,focusList:[],currentFocusIndex:0,hasFocus:!1};this.parts=y.parts;CKEDITOR.tools.setTimeout(function(){a.fire("ariaWidget",this.parts.contents)},0,this);y={top:0,visibility:"hidden"};CKEDITOR.env.ie6Compat&&(y.position="absolute");y["rtl"==t?"right":"left"]=0;this.parts.dialog.setStyles(y);CKEDITOR.event.call(this);this.definition=x=CKEDITOR.fire("dialogDefinition",
{name:c,definition:x,dialog:this},a).definition;if(!("removeDialogTabs"in a._)&&a.config.removeDialogTabs){y=a.config.removeDialogTabs.split(";");for(t=0;t<y.length;t++)if(w=y[t].split(":"),2==w.length){var q=w[0];A[q]||(A[q]=[]);A[q].push(w[1])}a._.removeDialogTabs=A}if(a._.removeDialogTabs&&(A=a._.removeDialogTabs[c]))for(t=0;t<A.length;t++)x.removeContents(A[t]);if(x.onLoad)this.on("load",x.onLoad);if(x.onShow)this.on("show",x.onShow);if(x.onHide)this.on("hide",x.onHide);if(x.onOk)this.on("ok",
function(c){a.fire("saveSnapshot");setTimeout(function(){a.fire("saveSnapshot")},0);!1===x.onOk.call(this,c)&&(c.data.hide=!1)});this.state=CKEDITOR.DIALOG_STATE_IDLE;if(x.onCancel)this.on("cancel",function(a){!1===x.onCancel.call(this,a)&&(a.data.hide=!1)});var B=this,G=function(a){var c=B._.contents,d=!1,b;for(b in c)for(var e in c[b])if(d=a.call(this,c[b][e]))return};this.on("ok",function(a){G(function(c){if(c.validate){var d=c.validate(this),b="string"==typeof d||!1===d;b&&(a.data.hide=!1,a.stop());
g.call(c,!b,"string"==typeof d?d:void 0);return b}})},this,null,0);this.on("cancel",function(c){G(function(d){if(d.isChanged())return a.config.dialog_noConfirmCancel||confirm(a.lang.common.confirmCancel)||(c.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=l;var E=this._.element;a.focusManager.add(E,1);this.on("show",function(){E.on("keydown",v,this);if(CKEDITOR.env.gecko)E.on("keypress",
u,this)});this.on("hide",function(){E.removeListener("keydown",v);CKEDITOR.env.gecko&&E.removeListener("keypress",u);G(function(a){m.apply(a)})});this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",v,this,null,0)});this.on("show",function(){d();var c=1<B._.pageCount;a.config.dialog_startupFocusTab&&c?(B._.tabBarMode=!0,B._.tabs[B._.currentTabId][0].focus(),B._.currentFocusIndex=-1):this._.hasFocus||(this._.currentFocusIndex=c?-1:this._.focusList.length-
1,x.onFocus?(c=x.onFocus.call(this))&&c.focus():l(1))},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on("load",function(){var a=this.getElement(),c=a.getFirst();c.remove();c.appendTo(a)},this);n(this);r(this);(new CKEDITOR.dom.text(x.title,CKEDITOR.document)).appendTo(this.parts.title);for(t=0;t<x.contents.length;t++)(A=x.contents[t])&&this.addPage(A);this.parts.tabs.on("click",function(a){var c=a.data.getTarget();c.hasClass("cke_dialog_tab")&&(c=c.$.id,this.selectPage(c.substring(4,c.lastIndexOf("_"))),
b(this),a.data.preventDefault())},this);t=[];A=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:x.buttons},t).getChild();this.parts.footer.setHtml(t.join(""));for(t=0;t<A.length;t++)this._.buttons[A[t].id]=A[t]};CKEDITOR.dialog.prototype={destroy:function(){this.hide();this._.element.remove()},resize:function(a,c){if(!this._.contentSize||this._.contentSize.width!=a||this._.contentSize.height!=c){CKEDITOR.dialog.fire("resize",
{dialog:this,width:a,height:c},this._.editor);this.fire("resize",{width:a,height:c},this._.editor);this.parts.contents.setStyles({width:a+"px",height:c+"px"});if("rtl"==this._.editor.lang.dir&&this._.position){var d=this.parts.dialog.getParent().getClientSize().width;this._.position.x=d-this._.contentSize.width-parseInt(this._.element.getFirst().getStyle("right"),10)}this._.contentSize={width:a,height:c}}},getSize:function(){var a=this._.element.getFirst();return{width:a.$.offsetWidth||0,height:a.$.offsetHeight||
0}},move:function(a,c,d){var b=this._.element.getFirst(),e="rtl"==this._.editor.lang.dir;CKEDITOR.env.ie&&b.setStyle("zoom","100%");var g=this.parts.dialog.getParent().getClientSize(),f=this.getSize(),h=this._.viewportRatio,k=Math.max(g.width-f.width,0),g=Math.max(g.height-f.height,0);this._.position&&this._.position.x==a&&this._.position.y==c?(a=Math.floor(k*h.width),c=Math.floor(g*h.height)):t(this,a,c);this._.position={x:a,y:c};e&&(a=k-a);c={top:(0<c?c:0)+"px"};c[e?"right":"left"]=(0<a?a:0)+"px";
b.setStyles(c);d&&(this._.moved=1)},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var a=this._.element,c=this.definition,b=CKEDITOR.document.getBody(),e=this._.editor.config.baseFloatZIndex;a.getParent()&&a.getParent().equals(b)?a.setStyle("display",E?"flex":"block"):a.appendTo(b);this.resize(this._.contentSize&&this._.contentSize.width||c.width||c.minWidth,this._.contentSize&&this._.contentSize.height||c.height||c.minHeight);this.reset();null===this._.currentTabId&&
this.selectPage(this.definition.contents[0].id);null===CKEDITOR.dialog._.currentZIndex&&(CKEDITOR.dialog._.currentZIndex=e);this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex+=10);this.getElement().setStyle("z-index",CKEDITOR.dialog._.currentZIndex);null===CKEDITOR.dialog._.currentTop?(CKEDITOR.dialog._.currentTop=this,this._.parentDialog=null,p(this._.editor)):(this._.parentDialog=CKEDITOR.dialog._.currentTop,b=this._.parentDialog.getElement().getFirst(),b.$.style.zIndex-=
Math.floor(e/2),this._.parentDialog.getElement().setStyle("z-index",b.$.style.zIndex),CKEDITOR.dialog._.currentTop=this);a.on("keydown",y);a.on("keyup",v);this._.hasFocus=!1;for(var g in c.contents)if(c.contents[g]){var a=c.contents[g],e=this._.tabs[a.id],b=a.requiredContent,f=0;if(e){for(var h in this._.contents[a.id]){var k=this._.contents[a.id][h];"hbox"!=k.type&&"vbox"!=k.type&&k.getInputElement()&&(k.requiredContent&&!this._.editor.activeFilter.check(k.requiredContent)?k.disable():(k.enable(),
f++))}!f||b&&!this._.editor.activeFilter.check(b)?e[0].addClass("cke_dialog_tab_disabled"):e[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout();d(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;if(this._.moved||!E){var c=this.getSize(),d=CKEDITOR.document.getWindow().getViewPaneSize(),b;this._.moved&&this._.position?(b=this._.position.x,c=this._.position.y):(b=(d.width-c.width)/2,c=(d.height-c.height)/2);CKEDITOR.env.ie6Compat||(a.setStyle("position","absolute"),a.removeStyle("margin"));b=Math.floor(b);c=Math.floor(c);this.move(b,c)}},foreach:function(a){for(var c in this._.contents)for(var d in this._.contents[c])a.call(this,this._.contents[c][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(c){c.setup&&c.setup.apply(c,a)})},commitContent:function(){var a=arguments;this.foreach(function(c){CKEDITOR.env.ie&&this._.currentFocusIndex==c.focusIndex&&c.getInputElement().$.blur();c.commit&&c.commit.apply(c,a)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{});this._.editor.fire("dialogHide",this);this.selectPage(this._.tabIdList[0]);
var a=this._.element;a.setStyle("display","none");this.parts.dialog.setStyle("visibility","hidden");for(z(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var c=this._.parentDialog.getElement().getFirst();this._.parentDialog.getElement().removeStyle("z-index");c.setStyle("z-index",parseInt(c.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else u(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex-=
10;else{CKEDITOR.dialog._.currentZIndex=null;a.removeListener("keydown",y);a.removeListener("keyup",v);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 c=[],d=a.label?' title\x3d"'+CKEDITOR.tools.htmlEncode(a.label)+
'"':"",b=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",children:a.elements,expand:!!a.expand,padding:a.padding,style:a.style||"width: 100%;"},c),e=this._.contents[a.id]={},g=b.getChild(),f=0;b=g.shift();)b.notAllowed||"hbox"==b.type||"vbox"==b.type||f++,e[b.id]=b,"function"==typeof b.getChild&&g.push.apply(g,b.getChild());f||(a.hidden=!0);c=CKEDITOR.dom.element.createFromHtml(c.join(""));c.setAttribute("role","tabpanel");c.setStyle("min-height",
"100%");b=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,'"',b.gecko&&!b.hc?"":' href\x3d"javascript:void(0)"',' tabIndex\x3d"-1" hidefocus\x3d"true" role\x3d"tab"\x3e',a.label,"\x3c/a\x3e"].join(""));c.setAttribute("aria-labelledby",e);this._.tabs[a.id]=[d,c];this._.tabIdList.push(a.id);!a.hidden&&this._.pageCount++;
this._.lastTab=d;this.updateStyle();c.setAttribute("name",a.id);c.appendTo(this.parts.contents);d.unselectable();this.parts.tabs.append(d);a.accessKey&&(A(this,this,"CTRL+"+a.accessKey,x,w),this._.accessKeyMap["CTRL+"+a.accessKey]=a.id)}},selectPage:function(c){if(this._.currentTabId!=c&&!this._.tabs[c][0].hasClass("cke_dialog_tab_disabled")&&!1!==this.fire("selectPage",{page:c,currentPage:this._.currentTabId})){for(var d in this._.tabs){var b=this._.tabs[d][0],e=this._.tabs[d][1];d!=c&&(b.removeClass("cke_dialog_tab_selected"),
e.hide());e.setAttribute("aria-hidden",d!=c)}var g=this._.tabs[c];g[0].addClass("cke_dialog_tab_selected");CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat?(a(g[1]),g[1].show(),setTimeout(function(){a(g[1],1)},0)):g[1].show();this._.currentTabId=c;this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,c)}},updateStyle:function(){this.parts.dialog[(1===this._.pageCount?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(a){var c=this._.tabs[a]&&this._.tabs[a][0];c&&1!=this._.pageCount&&
c.isVisible()&&(a==this._.currentTabId&&this.selectPage(h.call(this)),c.hide(),this._.pageCount--,this.updateStyle())},showPage:function(a){if(a=this._.tabs[a]&&this._.tabs[a][0])a.show(),this._.pageCount++,this.updateStyle()},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(a,c){var d=this._.contents[a];return d&&d[c]},getValueOf:function(a,c){return this.getContentElement(a,c).getValue()},setValueOf:function(a,c,d){return this.getContentElement(a,
c).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,c){if("undefined"==typeof c)c=this._.focusList.length,
this._.focusList.push(new l(this,a,c));else{this._.focusList.splice(c,0,new l(this,a,c));for(var d=c+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 c=this.getParentEditor().lang.dir,d={attributes:{"class":"cke_dialog_spinner"},styles:{"float":"rtl"==c?"right":"left"}};d.styles["margin-"+("rtl"==c?"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)}},getModel:function(a){return this._.model?this._.model:this.definition.getModel?this.definition.getModel(a):null},setModel:function(a){this._.model=a},getMode:function(a){if(this.definition.getMode)return this.definition.getMode(a);
a=this.getModel(a);return!a||a instanceof CKEDITOR.dom.element&&!a.getParent()?CKEDITOR.dialog.CREATION_MODE:CKEDITOR.dialog.EDITING_MODE}};CKEDITOR.tools.extend(CKEDITOR.dialog,{CREATION_MODE:0,EDITING_MODE:1,add:function(a,c){this._.dialogDefinitions[a]&&"function"!=typeof c||(this._.dialogDefinitions[a]=c)},exists:function(a){return!!this._.dialogDefinitions[a]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(a,c,d){a=a.config.removeDialogTabs;return!(a&&a.match(new RegExp("(?:^|;)"+
c+":"+d+"(?:$|;)","i")))},okButton:function(){var a=function(a,c){c=c||{};return CKEDITOR.tools.extend({id:"ok",type:"button",label:a.lang.common.ok,"class":"cke_dialog_ui_button_ok",onClick:function(a){a=a.data.dialog;!1!==a.fire("ok",{hide:!0}).hide&&a.hide()}},c,!0)};a.type="button";a.override=function(c){return CKEDITOR.tools.extend(function(d){return a(d,c)},{type:"button"},!0)};return a}(),cancelButton:function(){var a=function(a,c){c=c||{};return CKEDITOR.tools.extend({id:"cancel",type:"button",
label:a.lang.common.cancel,"class":"cke_dialog_ui_button_cancel",onClick:function(a){a=a.data.dialog;!1!==a.fire("cancel",{hide:!0}).hide&&a.hide()}},c,!0)};a.type="button";a.override=function(c){return CKEDITOR.tools.extend(function(d){return a(d,c)},{type:"button"},!0)};return a}(),addUIElement:function(a,c){this._.uiElementBuilders[a]=c}});CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};CKEDITOR.event.implementOn(CKEDITOR.dialog);CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);
C={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]};var H=function(a,c,d){for(var b=0,e;e=a[b];b++)if(e.id==c||d&&e[d]&&(e=H(e[d],c,d)))return e;return null},D=function(a,c,d,b,e){if(d){for(var g=0,f;f=a[g];g++){if(f.id==d)return a.splice(g,0,c),c;if(b&&f[b]&&(f=D(f[b],c,d,b,!0)))return f}if(e)return null}a.push(c);return c},M=function(a,c,d){for(var b=0,e;e=a[b];b++){if(e.id==c)return a.splice(b,1);if(d&&e[d]&&(e=M(e[d],
c,d)))return e}return null};e.prototype={getContents:function(a){return H(this.contents,a)},getButton:function(a){return H(this.buttons,a)},addContents:function(a,c){return D(this.contents,a,c)},addButton:function(a,c){return D(this.buttons,a,c)},removeContents:function(a){M(this.contents,a)},removeButton:function(a){M(this.buttons,a)}};c.prototype={get:function(a){return H(this.elements,a,"children")},add:function(a,c){return D(this.elements,a,c,"children")},remove:function(a){M(this.elements,a,
"children")}};var I={},K={};(function(){CKEDITOR.ui.dialog={uiElement:function(a,c,d,b,e,g,f){if(!(4>arguments.length)){var h=(b.call?b(c):b)||"div",k=["\x3c",h," "],l=(e&&e.call?e(c):e)||{},m=(g&&g.call?g(c):g)||{},n=(f&&f.call?f.call(this,a,c):f)||"",r=this.domId=m.id||CKEDITOR.tools.getNextId()+"_uiElement";c.requiredContent&&!a.getParentEditor().filter.check(c.requiredContent)&&(l.display="none",this.notAllowed=!0);m.id=r;var v={};c.type&&(v["cke_dialog_ui_"+c.type]=1);c.className&&(v[c.className]=
1);c.disabled&&(v.cke_disabled=1);for(var x=m["class"]&&m["class"].split?m["class"].split(" "):[],r=0;r<x.length;r++)x[r]&&(v[x[r]]=1);x=[];for(r in v)x.push(r);m["class"]=x.join(" ");c.title&&(m.title=c.title);v=(c.style||"").split(";");c.align&&(x=c.align,l["margin-left"]="left"==x?0:"auto",l["margin-right"]="right"==x?0:"auto");for(r in l)v.push(r+":"+l[r]);c.hidden&&v.push("display:none");for(r=v.length-1;0<=r;r--)""===v[r]&&v.splice(r,1);0<v.length&&(m.style=(m.style?m.style+"; ":"")+v.join("; "));
for(r in m)k.push(r+'\x3d"'+CKEDITOR.tools.htmlEncode(m[r])+'" ');k.push("\x3e",n,"\x3c/",h,"\x3e");d.push(k.join(""));(this._||(this._={})).dialog=a;"boolean"==typeof c.isChanged&&(this.isChanged=function(){return c.isChanged});"function"==typeof c.isChanged&&(this.isChanged=c.isChanged);"function"==typeof c.setValue&&(this.setValue=CKEDITOR.tools.override(this.setValue,function(a){return function(d){a.call(this,c.setValue.call(this,d))}}));"function"==typeof c.getValue&&(this.getValue=CKEDITOR.tools.override(this.getValue,
function(a){return function(){return c.getValue.call(this,a.call(this))}}));CKEDITOR.event.implementOn(this);this.registerEvents(c);this.accessKeyUp&&this.accessKeyDown&&c.accessKey&&A(this,a,"CTRL+"+c.accessKey);var u=this;a.on("load",function(){var c=u.getInputElement();if(c){var d=u.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?"cke_dialog_ui_focused":"";c.on("focus",function(){a._.tabBarMode=!1;a._.hasFocus=!0;u.fire("focus");d&&this.addClass(d)});c.on("blur",function(){u.fire("blur");
d&&this.removeClass(d)})}});CKEDITOR.tools.extend(this,c);this.keyboardFocusable&&(this.tabIndex=c.tabIndex||0,this.focusIndex=a._.focusList.push(this)-1,this.on("focus",function(){a._.currentFocusIndex=u.focusIndex}))}},hbox:function(a,c,d,b,e){if(!(4>arguments.length)){this._||(this._={});var g=this._.children=c,f=e&&e.widths||null,h=e&&e.height||null,k,l={role:"presentation"};e&&e.align&&(l.align=e.align);CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"hbox"},b,"table",{},l,function(){var a=
['\x3ctbody\x3e\x3ctr class\x3d"cke_dialog_ui_hbox"\x3e'];for(k=0;k<d.length;k++){var c="cke_dialog_ui_hbox_child",b=[];0===k&&(c="cke_dialog_ui_hbox_first");k==d.length-1&&(c="cke_dialog_ui_hbox_last");a.push('\x3ctd class\x3d"',c,'" role\x3d"presentation" ');f?f[k]&&b.push("width:"+B(f[k])):b.push("width:"+Math.floor(100/d.length)+"%");h&&b.push("height:"+B(h));e&&void 0!==e.padding&&b.push("padding:"+B(e.padding));CKEDITOR.env.ie&&CKEDITOR.env.quirks&&g[k].align&&b.push("text-align:"+g[k].align);
0<b.length&&a.push('style\x3d"'+b.join("; ")+'" ');a.push("\x3e",d[k],"\x3c/td\x3e")}a.push("\x3c/tr\x3e\x3c/tbody\x3e");return a.join("")})}},vbox:function(a,c,d,b,e){if(!(3>arguments.length)){this._||(this._={});var g=this._.children=c,f=e&&e.width||null,h=e&&e.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"vbox"},b,"div",null,{role:"presentation"},function(){var c=['\x3ctable role\x3d"presentation" cellspacing\x3d"0" border\x3d"0" '];c.push('style\x3d"');e&&e.expand&&c.push("height:100%;");
c.push("width:"+B(f||"100%"),";");CKEDITOR.env.webkit&&c.push("float:none;");c.push('"');c.push('align\x3d"',CKEDITOR.tools.htmlEncode(e&&e.align||("ltr"==a.getParentEditor().lang.dir?"left":"right")),'" ');c.push("\x3e\x3ctbody\x3e");for(var b=0;b<d.length;b++){var k=[];c.push('\x3ctr\x3e\x3ctd role\x3d"presentation" ');f&&k.push("width:"+B(f||"100%"));h?k.push("height:"+B(h[b])):e&&e.expand&&k.push("height:"+Math.floor(100/d.length)+"%");e&&void 0!==e.padding&&k.push("padding:"+B(e.padding));CKEDITOR.env.ie&&
CKEDITOR.env.quirks&&g[b].align&&k.push("text-align:"+g[b].align);0<k.length&&c.push('style\x3d"',k.join("; "),'" ');c.push(' class\x3d"cke_dialog_ui_vbox_child"\x3e',d[b],"\x3c/td\x3e\x3c/tr\x3e")}c.push("\x3c/tbody\x3e\x3c/table\x3e");return c.join("")})}}}})();CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(a,c){this.getInputElement().setValue(a);
!c&&this.fire("change",{value:a});return this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return!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 c=
/^on([A-Z]\w+)/,d,b=function(a,c,d,b){c.on("load",function(){a.getInputElement().on(d,b,a)})},e;for(e in a)if(d=e.match(c))this.eventProcessors[e]?this.eventProcessors[e].call(this,this._.dialog,a[e]):b(this,this._.dialog,d[1].toLowerCase(),a[e]);return this},eventProcessors:{onLoad:function(a,c){a.on("load",c,this)},onShow:function(a,c){a.on("show",c,this)},onHide:function(a,c){a.on("hide",c,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var a=this.getElement();
this.getInputElement().setAttribute("disabled","true");a.addClass("cke_disabled")},enable:function(){var a=this.getElement();this.getInputElement().removeAttribute("disabled");a.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return this.isEnabled()&&this.isVisible()?!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,c,d){for(var b=c.children,e,g=[],f=[],h=0;h<b.length&&(e=b[h]);h++){var k=[];g.push(k);f.push(CKEDITOR.dialog._.uiElementBuilders[e.type].build(a,e,k))}return new CKEDITOR.ui.dialog[c.type](a,
f,g,d,c)}};CKEDITOR.dialog.addUIElement("hbox",a);CKEDITOR.dialog.addUIElement("vbox",a)})();CKEDITOR.dialogCommand=function(a,c){this.dialogName=a;CKEDITOR.tools.extend(this,c,!0)};CKEDITOR.dialogCommand.prototype={exec:function(a){var c=this.tabId;a.openDialog(this.dialogName,function(a){c&&a.selectPage(c)})},canUndo:!1,editorFocus:1};(function(){var a=/^([a]|[^a])+$/,c=/^\d*$/,d=/^\d*(?:\.\d+)?$/,b=/^(((\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 c=this&&this.getValue?this.getValue():a[0],d,b=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]&&(b=a[g]);var f=b==CKEDITOR.VALIDATE_AND?!0:!1;for(g=0;g<e.length;g++)f=b==CKEDITOR.VALIDATE_AND?f&&
e[g](c):f||e[g](c);return f?!0:d}},regex:function(a,c){return function(d){d=this&&this.getValue?this.getValue():d;return a.test(d)?!0:c}},notEmpty:function(c){return this.regex(a,c)},integer:function(a){return this.regex(c,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 b.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,c){return this.functions(function(c){return c==a},c)},notEqual:function(a,c){return this.functions(function(c){return c!=a},c)}};CKEDITOR.on("instanceDestroyed",function(a){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var c;c=CKEDITOR.dialog._.currentTop;)c.hide();for(var d in I)I[d].remove();I={}}a=a.editor._.storedDialogs;for(var b in a)a[b].destroy()})})();CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(a,c,d){var b=null,e=CKEDITOR.dialog._.dialogDefinitions[a];
null===CKEDITOR.dialog._.currentTop&&p(this);if("function"==typeof e)e=this._.storedDialogs||(this._.storedDialogs={}),b=e[a]||(e[a]=new CKEDITOR.dialog(this,a)),b.setModel(d),c&&c.call(b,b),b.show();else{if("failed"==e)throw u(this),Error('[CKEDITOR.dialog.openDialog] Dialog "'+a+'" failed when loading definition.');"string"==typeof e&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e),function(){"function"!=typeof CKEDITOR.dialog._.dialogDefinitions[a]&&(CKEDITOR.dialog._.dialogDefinitions[a]="failed");
this.openDialog(a,c,d)},this,0,1)}CKEDITOR.skin.loadPart("dialog");if(b)b.once("hide",function(){b.setModel(null)},null,null,999);return b}})})();var ka=!1;CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(b){ka||(CKEDITOR.document.appendStyleSheet(this.path+"styles/dialog.css"),ka=!0);b.on("doubleclick",function(h){h.data.dialog&&b.openDialog(h.data.dialog)},null,null,999)}});(function(){CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{af:1,ar:1,az:1,bg:1,ca:1,cs:1,
cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-au":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,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn: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},init:function(b){var h=this;b.addCommand("a11yHelp",{exec:function(){var f=b.langCode,f=h.availableLangs[f]?f:h.availableLangs[f.replace(/-.*/,"")]?f.replace(/-.*/,""):
"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(h.path+"dialogs/lang/"+f+".js"),function(){b.lang.a11yhelp=h.langEntries[f];b.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:!1});b.setKeystroke(CKEDITOR.ALT+48,"a11yHelp");CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js");b.on("ariaEditorHelpLabel",function(f){f.data.label=b.lang.common.editorHelp})}})})();CKEDITOR.plugins.add("about",{requires:"dialog",init:function(b){var h=b.addCommand("about",new CKEDITOR.dialogCommand("about"));
h.modes={wysiwyg:1,source:1};h.canUndo=!1;h.readOnly=1;b.ui.addButton&&b.ui.addButton("About",{label:b.lang.about.dlgTitle,command:"about",toolbar:"about"});CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}});CKEDITOR.plugins.add("basicstyles",{init:function(b){var h=0,f=function(g,f,d,e){if(e){e=new CKEDITOR.style(e);var c=a[d];c.unshift(e);b.attachStyleStateChange(e,function(a){!b.readOnly&&b.getCommand(d).setState(a)});b.addCommand(d,new CKEDITOR.styleCommand(e,{contentForms:c}));b.ui.addButton&&
b.ui.addButton(g,{label:f,command:d,toolbar:"basicstyles,"+(h+=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"]},g=b.config,m=b.lang.basicstyles;f("Bold",
m.bold,"bold",g.coreStyles_bold);f("Italic",m.italic,"italic",g.coreStyles_italic);f("Underline",m.underline,"underline",g.coreStyles_underline);f("Strike",m.strike,"strike",g.coreStyles_strike);f("Subscript",m.subscript,"subscript",g.coreStyles_subscript);f("Superscript",m.superscript,"superscript",g.coreStyles_superscript);b.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}});CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"};CKEDITOR.config.coreStyles_italic=
{element:"em",overrides:"i"};CKEDITOR.config.coreStyles_underline={element:"u"};CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"};CKEDITOR.config.coreStyles_subscript={element:"sub"};CKEDITOR.config.coreStyles_superscript={element:"sup"};(function(){function b(a,d,b,e){if(!a.isReadOnly()&&!a.equals(b.editable())){CKEDITOR.dom.element.setMarker(e,a,"bidi_processed",1);e=a;for(var g=b.editable();(e=e.getParent())&&!e.equals(g);)if(e.getCustomData("bidi_processed")){a.removeStyle("direction");
a.removeAttribute("dir");return}e="useComputedState"in b.config?b.config.useComputedState:1;(e?a.getComputedStyle("direction"):a.getStyle("direction")||a.hasAttribute("dir"))!=d&&(a.removeStyle("direction"),e?(a.removeAttribute("dir"),d!=a.getComputedStyle("direction")&&a.setAttribute("dir",d)):a.setAttribute("dir",d),b.forceNextSelectionCheck())}}function h(a,d,b){var e=a.getCommonAncestor(!1,!0);a=a.clone();a.enlarge(b==CKEDITOR.ENTER_BR?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);
if(a.checkBoundaryOfElement(e,CKEDITOR.START)&&a.checkBoundaryOfElement(e,CKEDITOR.END)){for(var g;e&&e.type==CKEDITOR.NODE_ELEMENT&&(g=e.getParent())&&1==g.getChildCount()&&!(e.getName()in d);)e=g;return e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in d&&e}}function f(a){return{context:"p",allowedContent:{"h1 h2 h3 h4 h5 h6 table ul ol blockquote div tr p div li td":{propertiesOnly:!0,attributes:"dir"}},requiredContent:"p[dir]",refresh:function(a,c){var d=a.config.useComputedState,b,d=void 0===d||d;
if(!d){b=c.lastElement;for(var e=a.editable();b&&!(b.getName()in k||b.equals(e));){var g=b.getParent();if(!g)break;b=g}}b=b||c.block||c.blockLimit;b.equals(a.editable())&&(e=a.getSelection().getRanges()[0].getEnclosedNode())&&e.type==CKEDITOR.NODE_ELEMENT&&(b=e);b&&(d=d?b.getComputedStyle("direction"):b.getStyle("direction")||b.getAttribute("dir"),a.getCommand("bidirtl").setState("rtl"==d?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),a.getCommand("bidiltr").setState("ltr"==d?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF));
d=(c.block||c.blockLimit||a.editable()).getDirection(1);d!=(a._.selDir||a.lang.dir)&&(a._.selDir=d,a.fire("contentDirChanged",d))},exec:function(d){var e=d.getSelection(),f=d.config.enterMode,k=e.getRanges();if(k&&k.length){for(var l={},u=e.createBookmarks(),k=k.createIterator(),y,v=0;y=k.getNextRange(1);){var A=y.getEnclosedNode();A&&(!A||A.type==CKEDITOR.NODE_ELEMENT&&A.getName()in m)||(A=h(y,g,f));A&&b(A,a,d,l);var z=new CKEDITOR.dom.walker(y),w=u[v].startNode,x=u[v++].endNode;z.evaluator=function(a){var c=
f==CKEDITOR.ENTER_P?"p":"div",d;if(d=(a?a.type==CKEDITOR.NODE_ELEMENT:!1)&&a.getName()in g){if(c=a.is(c))c=(c=a.getParent())?c.type==CKEDITOR.NODE_ELEMENT:!1;d=!(c&&a.getParent().is("blockquote"))}return!!(d&&a.getPosition(w)&CKEDITOR.POSITION_FOLLOWING&&(a.getPosition(x)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_CONTAINS)==CKEDITOR.POSITION_PRECEDING)};for(;A=z.next();)b(A,a,d,l);y=y.createIterator();for(y.enlargeBr=f!=CKEDITOR.ENTER_BR;A=y.getNextParagraph(f==CKEDITOR.ENTER_P?"p":"div");)b(A,
a,d,l)}CKEDITOR.dom.element.clearAllMarkers(l);d.forceNextSelectionCheck();e.selectBookmarks(u);d.focus()}}}}function a(a){var d=a==l.setAttribute,b=a==l.removeAttribute,e=/\bdirection\s*:\s*(.*?)\s*(:?$|;)/;return function(g,f){if(!this.isReadOnly()){var h;if(h=g==(d||b?"dir":"direction")||"style"==g&&(b||e.test(f))){a:{h=this;for(var k=h.getDocument().getBody().getParent();h;){if(h.equals(k)){h=!1;break a}h=h.getParent()}h=!0}h=!h}if(h&&(h=this.getDirection(1),k=a.apply(this,arguments),h!=this.getDirection(1)))return this.getDocument().fire("dirChanged",
this),k}return a.apply(this,arguments)}}var g={table:1,ul:1,ol:1,blockquote:1,div:1},m={},k={};CKEDITOR.tools.extend(m,g,{tr:1,p:1,div:1,li:1});CKEDITOR.tools.extend(k,m,{td:1});CKEDITOR.plugins.add("bidi",{init:function(a){function d(b,e,g,f,h){a.addCommand(g,new CKEDITOR.command(a,f));a.ui.addButton&&a.ui.addButton(b,{label:e,command:g,toolbar:"bidi,"+h})}if(!a.blockless){var b=a.lang.bidi;d("BidiLtr",b.ltr,"bidiltr",f("ltr"),10);d("BidiRtl",b.rtl,"bidirtl",f("rtl"),20);a.on("contentDom",function(){a.document.on("dirChanged",
function(d){a.fire("dirChanged",{node:d.data,dir:d.data.getDirection(1)})})});a.on("contentDirChanged",function(d){d=(a.lang.dir!=d.data?"add":"remove")+"Class";var b=a.ui.space(a.config.toolbarLocation);if(b)b[d]("cke_mixed_dir_content")})}}});for(var l=CKEDITOR.dom.element.prototype,d=["setStyle","removeStyle","setAttribute","removeAttribute"],e=0;e<d.length;e++)l[d[e]]=CKEDITOR.tools.override(l[d[e]],a)})();(function(){var b={exec:function(b){var f=b.getCommand("blockquote").state,a=b.getSelection(),
g=a&&a.getRanges()[0];if(g){var m=a.createBookmarks();if(CKEDITOR.env.ie){var k=m[0].startNode,l=m[0].endNode,d;if(k&&"blockquote"==k.getParent().getName())for(d=k;d=d.getNext();)if(d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary()){k.move(d,!0);break}if(l&&"blockquote"==l.getParent().getName())for(d=l;d=d.getPrevious();)if(d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary()){l.move(d);break}}var e=g.createIterator();e.enlargeBr=b.config.enterMode!=CKEDITOR.ENTER_BR;if(f==CKEDITOR.TRISTATE_OFF){for(k=
[];f=e.getNextParagraph();)k.push(f);1>k.length&&(f=b.document.createElement(b.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),l=m.shift(),g.insertNode(f),f.append(new CKEDITOR.dom.text("﻿",b.document)),g.moveToBookmark(l),g.selectNodeContents(f),g.collapse(!0),l=g.createBookmark(),k.push(f),m.unshift(l));d=k[0].getParent();g=[];for(l=0;l<k.length;l++)f=k[l],d=d.getCommonAncestor(f.getParent());for(f={table:1,tbody:1,tr:1,ol:1,ul:1};f[d.getName()];)d=d.getParent();for(l=null;0<k.length;){for(f=k.shift();!f.getParent().equals(d);)f=
f.getParent();f.equals(l)||g.push(f);l=f}for(;0<g.length;)if(f=g.shift(),"blockquote"==f.getName()){for(l=new CKEDITOR.dom.documentFragment(b.document);f.getFirst();)l.append(f.getFirst().remove()),k.push(l.getLast());l.replace(f)}else k.push(f);g=b.document.createElement("blockquote");for(g.insertBefore(k[0]);0<k.length;)f=k.shift(),g.append(f)}else if(f==CKEDITOR.TRISTATE_ON){l=[];for(d={};f=e.getNextParagraph();){for(k=g=null;f.getParent();){if("blockquote"==f.getParent().getName()){g=f.getParent();
k=f;break}f=f.getParent()}g&&k&&!k.getCustomData("blockquote_moveout")&&(l.push(k),CKEDITOR.dom.element.setMarker(d,k,"blockquote_moveout",!0))}CKEDITOR.dom.element.clearAllMarkers(d);f=[];k=[];for(d={};0<l.length;)e=l.shift(),g=e.getParent(),e.getPrevious()?e.getNext()?(e.breakParent(e.getParent()),k.push(e.getNext())):e.remove().insertAfter(g):e.remove().insertBefore(g),g.getCustomData("blockquote_processed")||(k.push(g),CKEDITOR.dom.element.setMarker(d,g,"blockquote_processed",!0)),f.push(e);CKEDITOR.dom.element.clearAllMarkers(d);
for(l=k.length-1;0<=l;l--){g=k[l];a:{d=g;for(var e=0,c=d.getChildCount(),n=void 0;e<c&&(n=d.getChild(e));e++)if(n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary()){d=!1;break a}d=!0}d&&g.remove()}if(b.config.enterMode==CKEDITOR.ENTER_BR)for(g=!0;f.length;)if(e=f.shift(),"div"==e.getName()){l=new CKEDITOR.dom.documentFragment(b.document);!g||!e.getPrevious()||e.getPrevious().type==CKEDITOR.NODE_ELEMENT&&e.getPrevious().isBlockBoundary()||l.append(b.document.createElement("br"));for(g=e.getNext()&&
!(e.getNext().type==CKEDITOR.NODE_ELEMENT&&e.getNext().isBlockBoundary());e.getFirst();)e.getFirst().remove().appendTo(l);g&&l.append(b.document.createElement("br"));l.replace(e);g=!1}}a.selectBookmarks(m);b.focus()}},refresh:function(b,f){this.setState(b.elementPath(f.block||f.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"};CKEDITOR.plugins.add("blockquote",{init:function(h){h.blockless||
(h.addCommand("blockquote",b),h.ui.addButton&&h.ui.addButton("Blockquote",{label:h.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"}))}})})();"use strict";(function(){function b(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 h(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 h(b);b.showNotification=function(a,h,k){var l,d;"progress"==h?l=k:d=k;a=new CKEDITOR.plugins.notification(b,{message:a,type:h,progress:l,duration:d});a.show();return a};b.on("key",function(g){if(27==g.data.keyCode){var h=b._.notificationArea.notifications;h.length&&(a(b.lang.notification.closed),h[h.length-1].hide(),g.cancel())}})}});b.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 g=this.element,h=g.findOne(".cke_notification_message"),k=g.findOne(".cke_notification_progress"),l=b.type;g.removeAttribute("role");b.progress&&"progress"!=this.type&&(l="progress");l&&(g.removeClass(this._getClass()),g.removeAttribute("aria-label"),this.type=l,g.addClass(this._getClass()),g.setAttribute("aria-label",this.type),"progress"!=this.type||k?"progress"!=
this.type&&k&&k.remove():(k=this._createProgressElement(),k.insertBefore(h)));void 0!==b.message&&(this.message=b.message,h.setHtml(this.message));void 0!==b.progress&&(this.progress=b.progress,k&&k.setStyle("width",this._getPercentageProgress()));a&&b.important&&(g.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,g,h=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());g=new CKEDITOR.dom.element("p");g.addClass("cke_notification_message");g.setHtml(this.message);a.append(g);g=CKEDITOR.dom.element.createFromHtml('\x3ca class\x3d"cke_notification_close" href\x3d"javascript:void(0)" title\x3d"'+
h+'" role\x3d"button" tabindex\x3d"-1"\x3e\x3cspan class\x3d"cke_label"\x3eX\x3c/span\x3e\x3c/a\x3e');a.append(g);g.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))}};h.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,g=new CKEDITOR.dom.element("div");g.addClass("cke_notifications_area");g.setAttribute("id","cke_notifications_area_"+b.name);g.setStyle("z-index",a.baseFloatZIndex-
2);return g},_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",y(v+h.width-n-r))}var a=this.element,g=this.editor,h=g.ui.contentsElement.getClientRect(),k=g.ui.contentsElement.getDocumentPosition(),l,d,e=a.getClientRect(),c,n=this._notificationWidth,r=this._notificationMargin;c=CKEDITOR.document.getWindow();var t=c.getScrollPosition(),q=c.getViewPaneSize(),p=CKEDITOR.document.getBody(),u=p.getDocumentPosition(),y=CKEDITOR.tools.cssLength;
n&&r||(c=this.element.getChild(0),n=this._notificationWidth=c.getClientRect().width,r=this._notificationMargin=parseInt(c.getComputedStyle("margin-left"),10)+parseInt(c.getComputedStyle("margin-right"),10));g.toolbar&&(l=g.ui.space("top"),d=l.getClientRect());l&&l.isVisible()&&d.bottom>h.top&&d.bottom<h.bottom-e.height?a.setStyles({position:"fixed",top:y(d.bottom)}):0<h.top?a.setStyles({position:"absolute",top:y(k.y)}):k.y+h.height-e.height>t.y?a.setStyles({position:"fixed",top:0}):a.setStyles({position:"absolute",
top:y(k.y+h.height-e.height)});var v="fixed"==a.getStyle("position")?h.left:"static"!=p.getComputedStyle("position")?k.x-u.x:k.x;h.width<n+r?k.x+n+r>t.x+q.width?b():a.setStyle("left",y(v)):k.x+n+r>t.x+q.width?a.setStyle("left",y(v)):k.x+h.width/2+n/2+r>t.x+q.width?a.setStyle("left",y(v-k.x+t.x+q.width-n-r)):0>h.left+h.width-n-r?b():0>h.left+h.width/2-n/2?a.setStyle("left",y(v-k.x+t.x)):a.setStyle("left",y(v+h.width/2-n/2-r/2))}};CKEDITOR.plugins.notification=b})();(function(){var b='\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&&(b+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(b+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');var h="";CKEDITOR.env.ie&&(h='return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26');
var b=b+(' onkeydown\x3d"return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus\x3d"return CKEDITOR.tools.callFunction({focusFn},event);" onclick\x3d"'+h+'CKEDITOR.tools.callFunction({clickFn},this);return false;"\x3e\x3cspan class\x3d"cke_button_icon cke_button__{iconName}_icon" style\x3d"{style}"')+'\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"),a=CKEDITOR.addTemplate("button",b);CKEDITOR.plugins.add("button",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}});CKEDITOR.UI_BUTTON="button";CKEDITOR.ui.button=function(a){CKEDITOR.tools.extend(this,a,{title:a.label,click:a.click||function(b){b.execCommand(a.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a)}};
CKEDITOR.ui.button.prototype={render:function(b,h){function k(){var a=b.mode;a&&(a=this.modes[a]?void 0!==l[a]?l[a]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,a=b.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:a,this.setState(a),this.refresh&&this.refresh())}var l=null,d=CKEDITOR.env,e=this._.id=CKEDITOR.tools.getNextId(),c="",n=this.command,r,t,q;this._.editor=b;var p={id:e,button:this,editor:b,focus:function(){CKEDITOR.document.getById(e).focus()},execute:function(){this.button.click(b)},
attach:function(a){this.button.attach(a)}},u=CKEDITOR.tools.addFunction(function(a){if(p.onkey)return a=new CKEDITOR.dom.event(a),!1!==p.onkey(p,a.getKeystroke())}),y=CKEDITOR.tools.addFunction(function(a){var c;p.onfocus&&(c=!1!==p.onfocus(p,new CKEDITOR.dom.event(a)));return c}),v=0;p.clickFn=r=CKEDITOR.tools.addFunction(function(){v&&(b.unlockSelection(1),v=0);p.execute();d.iOS&&b.focus()});this.modes?(l={},b.on("beforeModeUnload",function(){b.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(l[b.mode]=
this._.state)},this),b.on("activeFilterChange",k,this),b.on("mode",k,this),!this.readOnly&&b.on("readOnly",k,this)):n&&(n=b.getCommand(n))&&(n.on("state",function(){this.setState(n.state)},this),c+=n.state==CKEDITOR.TRISTATE_ON?"on":n.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off");var A;if(this.directional)b.on("contentDirChanged",function(a){var c=CKEDITOR.document.getById(this._.id),d=c.getFirst();a=a.data;a!=b.lang.dir?c.addClass("cke_"+a):c.removeClass("cke_ltr").removeClass("cke_rtl");d.setAttribute("style",
CKEDITOR.skin.getIconStyle(A,"rtl"==a,this.icon,this.iconOffset))},this);n?(t=b.getCommandKeystroke(n))&&(q=CKEDITOR.tools.keystrokeToString(b.lang.common.keyboard,t)):c+="off";t=this.name||this.command;var z=null,w=this.icon;A=t;this.icon&&!/\./.test(this.icon)?(A=this.icon,w=null):(this.icon&&(z=this.icon),CKEDITOR.env.hidpi&&this.iconHiDpi&&(z=this.iconHiDpi));z?(CKEDITOR.skin.addIcon(z,z),w=null):z=A;c={id:e,name:t,iconName:A,label:this.label,cls:(this.hasArrow?"cke_button_expandable ":"")+(this.className||
""),state:c,ariaDisabled:"disabled"==c?"true":"false",title:this.title+(q?" ("+q.display+")":""),ariaShortcut:q?b.lang.common.keyboardShortcut+" "+q.aria:"",titleJs:d.gecko&&!d.hc?"":(this.title||"").replace("'",""),hasArrow:"string"===typeof this.hasArrow&&this.hasArrow||(this.hasArrow?"true":"false"),keydownFn:u,focusFn:y,clickFn:r,style:CKEDITOR.skin.getIconStyle(z,"rtl"==b.lang.dir,w,this.iconOffset),arrowHtml:this.hasArrow?f.output():""};a.output(c,h);if(this.onRender)this.onRender();return p},
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"),b.setAttribute("aria-disabled",a==CKEDITOR.TRISTATE_DISABLED),this.hasArrow?b.setAttribute("aria-expanded",a==CKEDITOR.TRISTATE_ON):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 b(a){function b(){for(var c=f(),d=CKEDITOR.tools.clone(a.config.toolbarGroups)||h(a),e=0;e<d.length;e++){var m=d[e];if("/"!=m){"string"==typeof m&&(m=d[e]={name:m});var p,u=m.groups;if(u)for(var y=0;y<u.length;y++)p=u[y],(p=c[p])&&l(m,p);(p=c[m.name])&&l(m,p)}}return d}function f(){var c={},b,d,e;for(b in a.ui.items)d=
a.ui.items[b],e=d.toolbar||"others",e=e.split(","),d=e[0],e=parseInt(e[1]||-1,10),c[d]||(c[d]=[]),c[d].push({name:b,order:e});for(d in c)c[d]=c[d].sort(function(a,c){return a.order==c.order?0:0>c.order?-1:0>a.order?1:a.order<c.order?-1:1});return c}function l(c,b){if(b.length){c.items?c.items.push(a.ui.create("-")):c.items=[];for(var d;d=b.shift();)d="string"==typeof d?d:d.name,e&&-1!=CKEDITOR.tools.indexOf(e,d)||(d=a.ui.create(d))&&a.addFeature(d)&&c.items.push(d)}}function d(a){var c=[],b,d,e;for(b=
0;b<a.length;++b)d=a[b],e={},"/"==d?c.push(d):CKEDITOR.tools.isArray(d)?(l(e,CKEDITOR.tools.clone(d)),c.push(e)):d.items&&(l(e,CKEDITOR.tools.clone(d.items)),e.name=d.name,c.push(e));return c}var e=a.config.removeButtons,e=e&&e.split(","),c=a.config.toolbar;"string"==typeof c&&(c=a.config["toolbar_"+c]);return a.toolbar=c?d(c):b()}function h(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 f=function(){this.toolbars=[];this.focusCommandExecuted=!1};f.prototype.focus=function(){for(var a=0,b;b=this.toolbars[a++];)for(var f=0,h;h=b.items[f++];)if(h.focus){h.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(g){var h,k=function(a,b){var e,c="rtl"==g.lang.dir,f=g.config.toolbarGroupCycling,r=c?37:39,c=c?39:37,f=void 0===f||f;switch(b){case 9:case CKEDITOR.SHIFT+9:for(;!e||!e.items.length;)if(e=9==b?(e?e.next:a.toolbar.next)||g.toolbox.toolbars[0]:(e?e.previous:
a.toolbar.previous)||g.toolbox.toolbars[g.toolbox.toolbars.length-1],e.items.length)for(a=e.items[h?e.items.length-1:0];a&&!a.focus;)(a=h?a.previous:a.next)||(e=0);a&&a.focus();return!1;case r:e=a;do e=e.next,!e&&f&&(e=a.toolbar.items[0]);while(e&&!e.focus);e?e.focus():k(a,9);return!1;case 40:return a.button&&a.button.hasArrow?a.execute():k(a,40==b?r:c),!1;case c:case 38:e=a;do e=e.previous,!e&&f&&(e=a.toolbar.items[a.toolbar.items.length-1]);while(e&&!e.focus);e?e.focus():(h=1,k(a,CKEDITOR.SHIFT+
9),h=0);return!1;case 27:return g.focus(),!1;case 13:case 32:return a.execute(),!1}return!0};g.on("uiSpace",function(a){if(a.data.space==g.config.toolbarLocation){a.removeListener();g.toolbox=new f;var d=CKEDITOR.tools.getNextId(),e=['\x3cspan id\x3d"',d,'" class\x3d"cke_voice_label"\x3e',g.lang.toolbar.toolbars,"\x3c/span\x3e",'\x3cspan id\x3d"'+g.ui.spaceId("toolbox")+'" class\x3d"cke_toolbox" role\x3d"group" aria-labelledby\x3d"',d,'" onmousedown\x3d"return false;"\x3e'],d=!1!==g.config.toolbarStartupExpanded,
c,h;g.config.toolbarCanCollapse&&g.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&e.push('\x3cspan class\x3d"cke_toolbox_main"'+(d?"\x3e":' style\x3d"display:none"\x3e'));for(var m=g.toolbox.toolbars,t=b(g),q=t.length,p=0;p<q;p++){var u,y=0,v,A=t[p],z="/"!==A&&("/"===t[p+1]||p==q-1),w;if(A)if(c&&(e.push("\x3c/span\x3e"),h=c=0),"/"===A)e.push('\x3cspan class\x3d"cke_toolbar_break"\x3e\x3c/span\x3e');else{w=A.items||A;for(var x=0;x<w.length;x++){var B=w[x],C;if(B){var G=function(a){a=a.render(g,e);E=y.items.push(a)-
1;0<E&&(a.previous=y.items[E-1],a.previous.next=a);a.toolbar=y;a.onkey=k;a.onfocus=function(){g.toolbox.focusCommandExecuted||g.focus()}};if(B.type==CKEDITOR.UI_SEPARATOR)h=c&&B;else{C=!1!==B.canGroup;if(!y){u=CKEDITOR.tools.getNextId();y={id:u,items:[]};v=A.name&&(g.lang.toolbar.toolbarGroups[A.name]||A.name);e.push('\x3cspan id\x3d"',u,'" class\x3d"cke_toolbar'+(z?' cke_toolbar_last"':'"'),v?' aria-labelledby\x3d"'+u+'_label"':"",' role\x3d"toolbar"\x3e');v&&e.push('\x3cspan id\x3d"',u,'_label" class\x3d"cke_voice_label"\x3e',
v,"\x3c/span\x3e");e.push('\x3cspan class\x3d"cke_toolbar_start"\x3e\x3c/span\x3e');var E=m.push(y)-1;0<E&&(y.previous=m[E-1],y.previous.next=y)}C?c||(e.push('\x3cspan class\x3d"cke_toolgroup" role\x3d"presentation"\x3e'),c=1):c&&(e.push("\x3c/span\x3e"),c=0);h&&(G(h),h=0);G(B)}}}c&&(e.push("\x3c/span\x3e"),h=c=0);y&&e.push('\x3cspan class\x3d"cke_toolbar_end"\x3e\x3c/span\x3e\x3c/span\x3e')}}g.config.toolbarCanCollapse&&e.push("\x3c/span\x3e");if(g.config.toolbarCanCollapse&&g.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var J=
CKEDITOR.tools.addFunction(function(){g.execCommand("toolbarCollapse")});g.on("destroy",function(){CKEDITOR.tools.removeFunction(J)});g.addCommand("toolbarCollapse",{readOnly:1,exec:function(a){var c=a.ui.space("toolbar_collapser"),b=c.getPrevious(),d=a.ui.space("contents"),e=b.getParent(),g=parseInt(d.$.style.height,10),f=e.$.offsetHeight,h=c.hasClass("cke_toolbox_collapser_min");h?(b.show(),c.removeClass("cke_toolbox_collapser_min"),c.setAttribute("title",a.lang.toolbar.toolbarCollapse)):(b.hide(),
c.addClass("cke_toolbox_collapser_min"),c.setAttribute("title",a.lang.toolbar.toolbarExpand));c.getFirst().setText(h?"▲":"◀");d.setStyle("height",g-(e.$.offsetHeight-f)+"px");a.fire("resize",{outerHeight:a.container.$.offsetHeight,contentsHeight:d.$.offsetHeight,outerWidth:a.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}});g.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse");e.push('\x3ca title\x3d"'+(d?g.lang.toolbar.toolbarCollapse:g.lang.toolbar.toolbarExpand)+
'" id\x3d"'+g.ui.spaceId("toolbar_collapser")+'" tabIndex\x3d"-1" class\x3d"cke_toolbox_collapser');d||e.push(" cke_toolbox_collapser_min");e.push('" onclick\x3d"CKEDITOR.tools.callFunction('+J+')"\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("")}});g.on("destroy",function(){if(this.toolbox){var a,b=0,e,c,g;for(a=this.toolbox.toolbars;b<a.length;b++)for(c=a[b].items,e=0;e<c.length;e++)g=c[e],g.clickFn&&CKEDITOR.tools.removeFunction(g.clickFn),
g.keyDownFn&&CKEDITOR.tools.removeFunction(g.keyDownFn)}});g.on("uiReady",function(){var a=g.ui.space("toolbox");a&&g.focusManager.add(a,1)});g.addCommand("toolbarFocus",a);g.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");g.ui.add("-",CKEDITOR.UI_SEPARATOR,{});g.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,
f){var l=h(this.editor),d=0===b,e={name:a};if(f){if(f=CKEDITOR.tools.search(l,function(a){return a.name==f})){!f.groups&&(f.groups=[]);if(b&&(b=CKEDITOR.tools.indexOf(f.groups,b),0<=b)){f.groups.splice(b+1,0,a);return}d?f.groups.splice(0,0,a):f.groups.push(a);return}b=null}b&&(b=CKEDITOR.tools.indexOf(l,function(a){return a.name==b}));d?l.splice(0,0,a):"number"==typeof b?l.splice(b+1,0,e):l.push(a)}})();CKEDITOR.UI_SEPARATOR="separator";CKEDITOR.config.toolbarLocation="top";"use strict";(function(){function b(a,
b,d){b.type||(b.type="auto");if(d&&!1===a.fire("beforePaste",b)||!b.dataValue&&b.dataTransfer.isEmpty())return!1;b.dataValue||(b.dataValue="");if(CKEDITOR.env.gecko&&"drop"==b.method&&a.toolbox)a.once("afterPaste",function(){a.toolbox.focus()});return a.fire("paste",b)}function h(a){function d(){var b=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())};
b.on("copy",e);b.on("cut",e);b.on("cut",function(){a.readOnly||a.extractSelectedHtml()},null,null,999)}b.on(C.mainPasteEvent,function(a){"beforepaste"==C.mainPasteEvent&&G||w(a)});"beforepaste"==C.mainPasteEvent&&(b.on("paste",function(a){E||(f(),a.data.preventDefault(),w(a),k("paste"))}),b.on("contextmenu",h,null,null,0),b.on("beforepaste",function(a){!a.data||a.data.$.ctrlKey||a.data.$.shiftKey||h()},null,null,0));b.on("beforecut",function(){!G&&l(a)});var g;b.attachListener(CKEDITOR.env.ie?b:a.document.getDocumentElement(),
"mouseup",function(){g=setTimeout(x,0)});a.on("destroy",function(){clearTimeout(g)});b.on("keyup",x)}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&&l();var b;var d=this.type;if(CKEDITOR.env.ie)b=k(d);else try{b=a.document.$.execCommand(d,!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,c){function d(c,f){f="undefined"!==typeof f?f:!0;c?(c.method="paste",c.dataTransfer||(c.dataTransfer=C.initPasteDataTransfer()),b(a,c,f)):g&&!a._.forcePasteDialog&&a.showNotification(k,"info",a.config.clipboard_notificationDuration);a._.forcePasteDialog=!1;a.fire("afterCommandExec",{name:"paste",command:e,returnValue:!!c})}c="undefined"!==typeof c&&null!==c?c:{};var e=this,g="undefined"!==typeof c.notification?c.notification:!0,f=c.type,h=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"'+h.aria+'"\x3e'+h.display+"\x3c/kbd\x3e"),h="string"===typeof c?c:c.dataValue;f&&!0!==a.config.forcePasteAsPlainText&&"allow-word"!==a.config.forcePasteAsPlainText?a._.nextPasteType=f:delete a._.nextPasteType;"string"===typeof h?d({dataValue:h}):a.getClipboardData(d)}}}function f(){E=1;setTimeout(function(){E=0},100)}function h(){G=1;setTimeout(function(){G=0},10)}function k(b){var d=
a.document,e=d.getBody(),g=!1,f=function(){g=!0};e.on(b,f);7<CKEDITOR.env.version?d.$.execCommand(b):d.$.selection.createRange().execCommand(b);e.removeListener(b,f);return g}function l(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var b=a.getSelection(),d,e,g;b.getType()==CKEDITOR.SELECTION_ELEMENT&&(d=b.getSelectedElement())&&(e=b.getRanges()[0],g=a.document.createText(""),g.insertBefore(d),e.setStartBefore(g),e.setEndAfter(d),b.selectRanges([e]),setTimeout(function(){d.getParent()&&(g.remove(),b.selectElement(d))},
0))}}function m(b,d){var e=a.document,g=a.editable(),f=function(a){a.cancel()},h;if(!e.getById("cke_pastebin")){var k=a.getSelection(),l=k.createBookmarks();CKEDITOR.env.ie&&k.root.fire("selectionchange");var n=new CKEDITOR.dom.element(!CKEDITOR.env.webkit&&!g.is("body")||CKEDITOR.env.ie?"div":"body",e);n.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var v=0,e=e.getWindow();CKEDITOR.env.webkit?(g.append(n),n.addClass("cke_editable"),g.is("body")||(v="static"!=g.getComputedStyle("position")?
g:CKEDITOR.dom.element.get(g.$.offsetParent),v=v.getDocumentPosition().y)):g.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(n);n.setStyles({position:"absolute",top:e.getScrollPosition().y-v+10+"px",width:"1px",height:Math.max(1,e.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0});CKEDITOR.env.safari&&n.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text"));(v=n.getParent().isReadOnly())?(n.setOpacity(0),n.setAttribute("contenteditable",!0)):n.setStyle("ltr"==a.config.contentsLangDirection?
"left":"right","-10000px");a.on("selectionChange",f,null,null,0);if(CKEDITOR.env.webkit||CKEDITOR.env.gecko)h=g.once("blur",f,null,null,-100);v&&n.focus();v=new CKEDITOR.dom.range(n);v.selectNodeContents(n);var r=v.select();CKEDITOR.env.ie&&(h=g.once("blur",function(){a.lockSelection(r)}));var x=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=x);h&&h.removeListener();CKEDITOR.env.ie&&g.focus();k.selectBookmarks(l);
n.remove();var b;CKEDITOR.env.webkit&&(b=n.getFirst())&&b.is&&b.hasClass("Apple-style-span")&&(n=b);a.removeListener("selectionChange",f);d(n.getHtml())},0)}}function A(){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)&&!k("paste"))return b.unlock(),!1;b.unlock();return!0}function z(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 w(d){var e={type:"auto",method:"paste",dataTransfer:C.initPasteDataTransfer(d)};e.dataTransfer.cacheData();var g=!1!==a.fire("beforePaste",e);g&&C.canClipboardApiBeTrusted(e.dataTransfer,a)?(d.data.preventDefault(),setTimeout(function(){b(a,e)},0)):m(d,function(d){e.dataValue=d.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig,
"");g&&b(a,e)})}function x(){if("wysiwyg"==a.mode){var b=B("paste");a.getCommand("cut").setState(B("cut"));a.getCommand("copy").setState(B("copy"));a.getCommand("paste").setState(b);a.fire("pasteState",b)}}function B(b){var d=a.getSelection(),d=d&&d.getRanges()[0];if((a.readOnly||d&&d.checkReadOnly())&&b in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==b)return CKEDITOR.TRISTATE_OFF;b=a.getSelection();d=b.getRanges();return b.getType()==CKEDITOR.SELECTION_NONE||1==d.length&&d[0].collapsed?
CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var C=CKEDITOR.plugins.clipboard,G=0,E=0;(function(){a.on("key",z);a.on("contentDom",d);a.on("selectionChange",x);if(a.contextMenu){a.contextMenu.addListener(function(){return{cut:B("cut"),copy:B("copy"),paste:B("paste")}});var b=null;a.on("menuShow",function(){b&&(b.removeListener(),b=null);var d=a.contextMenu.findItemByCommandName("paste");d&&d.element&&(b=d.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))if(b=CKEDITOR.document.getById(b._.id))b.on("touchend",function(){a._.forcePasteDialog=!0})})})})();(function(){function b(d,e,g,f,h){var k=a.lang.clipboard[e];a.addCommand(e,g);a.ui.addButton&&a.ui.addButton(d,{label:k,command:e,toolbar:"clipboard,"+f});a.addMenuItems&&a.addMenuItem(e,{label:k,command:e,group:"clipboard",order:h})}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,d){function e(a){a.removeListener();a.cancel();d(a.data)}function g(a){a.removeListener();a.cancel();d({type:h,dataValue:a.data.dataValue,dataTransfer:a.data.dataTransfer,method:"paste"})}var f=!1,h="auto";d||(d=b,b=null);a.on("beforePaste",function(a){a.removeListener();f=!0;h=a.data.type},null,null,1E3);a.on("paste",e,null,null,0);!1===A()&&(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||d(null)})):d(null))}}function f(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 d(a){return CKEDITOR.tools.repeat("\x3c/p\x3e\x3cp\x3e",~~(a/2))+(1==a%2?"\x3cbr\x3e":"")}b=b.replace(/(?!\u3000)\s+/g," ").replace(/> +</g,"\x3e\x3c").replace(/<br ?\/>/gi,"\x3cbr\x3e");b=b.replace(/<\/?[A-Z]+>/g,function(a){return a.toLowerCase()});if(b.match(/^[^<]$/))return b;CKEDITOR.env.webkit&&-1<b.indexOf("\x3cdiv\x3e")&&(b=b.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"\x3cbr\x3e").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"\x3cdiv\x3e\x3c/div\x3e"),
b.match(/<div>(<br>|)<\/div>/)&&(b="\x3cp\x3e"+b.replace(/(<div>(<br>|)<\/div>)+/g,function(a){return d(a.split("\x3c/div\x3e\x3cdiv\x3e").length+1)})+"\x3c/p\x3e"),b=b.replace(/<\/div><div>/g,"\x3cbr\x3e"),b=b.replace(/<\/?div>/g,""));CKEDITOR.env.gecko&&a.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(b=b.replace(/^<br><br>$/,"\x3cbr\x3e")),-1<b.indexOf("\x3cbr\x3e\x3cbr\x3e")&&(b="\x3cp\x3e"+b.replace(/(<br>){2,}/g,function(a){return d(a.length/4)})+"\x3c/p\x3e"));return k(a,b)}function g(a){function b(){var a=
{},c;for(c in CKEDITOR.dtd)"$"!=c.charAt(0)&&"div"!=c&&"span"!=c&&(a[c]=1);return a}var d={};return{get:function(e){return"plain-text"==e?d.plainText||(d.plainText=new CKEDITOR.filter(a,"br")):"semantic-content"==e?((e=d.semanticContent)||(e=new CKEDITOR.filter(a,{}),e.allow({$1:{elements:b(),attributes:!0,styles:!1,classes:!1}}),e=d.semanticContent=e),e):e?new CKEDITOR.filter(a,e):null}}}function m(a,b,d){b=CKEDITOR.htmlParser.fragment.fromHtml(b);var e=new CKEDITOR.htmlParser.basicWriter;d.applyTo(b,
!0,!1,a.activeEnterMode);b.writeHtml(e);return e.getHtml()}function k(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 l(a){a.data.preventDefault();a.data.$.dataTransfer.dropEffect="none"}function d(a){var d=CKEDITOR.plugins.clipboard;a.on("contentDom",function(){function e(d,g,f){g.select();b(a,{dataTransfer:f,
method:"drop"},1);f.sourceEditor.fire("saveSnapshot");f.sourceEditor.editable().extractHtmlFromRange(d);f.sourceEditor.getSelection().selectRanges([d]);f.sourceEditor.fire("saveSnapshot")}function g(e,f){e.select();b(a,{dataTransfer:f,method:"drop"},1);d.resetDragDataTransfer()}function f(b,d,e){var g={$:b.data.$,target:b.data.getTarget()};d&&(g.dragRange=d);e&&(g.dropRange=e);!1===a.fire(b.name,g)&&b.data.preventDefault()}function h(a){a.type!=CKEDITOR.NODE_ELEMENT&&(a=a.getParent());return a.getChildCount()}
var k=a.editable(),l=CKEDITOR.plugins.clipboard.getDropTarget(a),m=a.ui.space("top"),A=a.ui.space("bottom");d.preventDefaultDropOnElement(m);d.preventDefaultDropOnElement(A);k.attachListener(l,"dragstart",f);k.attachListener(a,"dragstart",d.resetDragDataTransfer,d,null,1);k.attachListener(a,"dragstart",function(b){d.initDragDataTransfer(b,a)},null,null,2);k.attachListener(a,"dragstart",function(){var b=d.dragRange=a.getSelection().getRanges()[0];CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(d.dragStartContainerChildCount=
b?h(b.startContainer):null,d.dragEndContainerChildCount=b?h(b.endContainer):null)},null,null,100);k.attachListener(l,"dragend",f);k.attachListener(a,"dragend",d.initDragDataTransfer,d,null,1);k.attachListener(a,"dragend",d.resetDragDataTransfer,d,null,100);k.attachListener(l,"dragover",function(a){if(CKEDITOR.env.edge)a.data.preventDefault();else{var c=a.data.getTarget();c&&c.is&&c.is("html")?a.data.preventDefault():CKEDITOR.env.ie&&CKEDITOR.plugins.clipboard.isFileApiSupported&&a.data.$.dataTransfer.types.contains("Files")&&
a.data.preventDefault()}});k.attachListener(l,"drop",function(b){if(!b.data.$.defaultPrevented&&(b.data.preventDefault(),!a.readOnly)){var e=b.data.getTarget();if(!e.isReadOnly()||e.type==CKEDITOR.NODE_ELEMENT&&e.is("html")){var e=d.getRangeAtDropPosition(b,a),g=d.dragRange;e&&f(b,g,e)}}},null,null,9999);k.attachListener(a,"drop",d.initDragDataTransfer,d,null,1);k.attachListener(a,"drop",function(b){if(b=b.data){var f=b.dropRange,h=b.dragRange,k=b.dataTransfer;k.getTransferType(a)==CKEDITOR.DATA_TRANSFER_INTERNAL?
setTimeout(function(){d.internalDrop(h,f,k,a)},0):k.getTransferType(a)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?e(h,f,k):g(f,k)}},null,null,9999)})}var e;CKEDITOR.plugins.add("clipboard",{requires:"dialog,notification,toolbar",init:function(c){function b(a){if(!a||p===a.id)return!1;var c=a.getTypes(),c=1===c.length&&"Files"===c[0];a=1===a.getFilesCount();return c&&a}var e,k=g(c);c.config.forcePasteAsPlainText?e="plain-text":c.config.pasteFilter?e=c.config.pasteFilter:!CKEDITOR.env.webkit||"pasteFilter"in
c.config||(e="semantic-content");c.pasteFilter=k.get(e);h(c);d(c);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js"));if(CKEDITOR.env.gecko){var l=["image/png","image/jpeg","image/gif"],p;c.on("paste",function(a){var d=a.data,e=d.dataTransfer;if(!d.dataValue&&"paste"==d.method&&b(e)&&(e=e.getFile(0),-1!=CKEDITOR.tools.indexOf(l,e.type))){var g=new FileReader;g.addEventListener("load",function(){a.data.dataValue='\x3cimg src\x3d"'+g.result+'" /\x3e';c.fire("paste",a.data)},!1);
g.addEventListener("abort",function(){c.fire("paste",a.data)},!1);g.addEventListener("error",function(){c.fire("paste",a.data)},!1);g.readAsDataURL(e);p=d.dataTransfer.id;a.stop()}},null,null,1)}c.on("paste",function(a){a.data.dataTransfer||(a.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer);if(!a.data.dataValue){var b=a.data.dataTransfer,d=b.getData("text/html");if(d)a.data.dataValue=d,a.data.type="html";else if(d=b.getData("text/plain"))a.data.dataValue=c.editable().transformPlainTextToHtml(d),
a.data.type="text"}},null,null,1);c.on("paste",function(a){var c=a.data.dataValue,b=CKEDITOR.dtd.$block;-1<c.indexOf("Apple-")&&(c=c.replace(/<span class="Apple-converted-space">&nbsp;<\/span>/gi," "),"html"!=a.data.type&&(c=c.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(a,c){return c.replace(/\t/g,"\x26nbsp;\x26nbsp; \x26nbsp;")})),-1<c.indexOf('\x3cbr class\x3d"Apple-interchange-newline"\x3e')&&(a.data.startsWithEOL=1,a.data.preSniffing="html",c=c.replace(/<br class="Apple-interchange-newline">/,
"")),c=c.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1"));if(c.match(/^<[^<]+cke_(editable|contents)/i)){var d,e,g=new CKEDITOR.dom.element("div");for(g.setHtml(c);1==g.getChildCount()&&(d=g.getFirst())&&d.type==CKEDITOR.NODE_ELEMENT&&(d.hasClass("cke_editable")||d.hasClass("cke_contents"));)g=e=d;e&&(c=e.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?c=c.replace(/^&nbsp;(?: |\r\n)?<(\w+)/g,function(c,d){return d.toLowerCase()in b?(a.data.preSniffing="html","\x3c"+d):c}):CKEDITOR.env.webkit?c=c.replace(/<\/(\w+)><div><br><\/div>$/,
function(c,d){return d in b?(a.data.endsWithEOL=1,"\x3c/"+d+"\x3e"):c}):CKEDITOR.env.gecko&&(c=c.replace(/(\s)<br>$/,"$1"));a.data.dataValue=c},null,null,3);c.on("paste",function(b){b=b.data;var d=c._.nextPasteType||b.type,e=b.dataValue,g,h=c.config.clipboard_defaultContentType||"html",l=b.dataTransfer.getTransferType(c)==CKEDITOR.DATA_TRANSFER_EXTERNAL,n=!0===c.config.forcePasteAsPlainText;g="html"==d||"html"==b.preSniffing?"html":f(e);delete c._.nextPasteType;"htmlifiedtext"==g&&(e=a(c.config,e));
if("text"==d&&"html"==g)e=m(c,e,k.get("plain-text"));else if(l&&c.pasteFilter&&!b.dontFilter||n)e=m(c,e,c.pasteFilter);b.startsWithEOL&&(e='\x3cbr data-cke-eol\x3d"1"\x3e'+e);b.endsWithEOL&&(e+='\x3cbr data-cke-eol\x3d"1"\x3e');"auto"==d&&(d="html"==g||"html"==h?"html":"text");b.type=d;b.dataValue=e;delete b.preSniffing;delete b.startsWithEOL;delete b.endsWithEOL},null,null,6);c.on("paste",function(a){a=a.data;a.dataValue&&(c.insertHtml(a.dataValue,a.type,a.range),setTimeout(function(){c.fire("afterPaste")},
0))},null,null,1E3);c.on("pasteDialog",function(a){setTimeout(function(){c.openDialog("paste",a.data)},0)})}});CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:CKEDITOR.env.ie&&16>CKEDITOR.env.version||CKEDITOR.env.iOS&&605>CKEDITOR.env.version?!1:!0,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,d){a.ui.addButton&&
(a.ui.addButton(b,d),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.iOS&&605<=CKEDITOR.env.version||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,d,e){function g(a,c,d){var e=a;e.type==CKEDITOR.NODE_TEXT&&(e=a.getParent());if(e.equals(c)&&d!=c.getChildCount())return a=b.startContainer.getChild(b.startOffset-1),c=b.startContainer.getChild(b.startOffset),a&&a.type==CKEDITOR.NODE_TEXT&&c&&c.type==CKEDITOR.NODE_TEXT&&(d=a.getLength(),a.setText(a.getText()+c.getText()),c.remove(),b.setStart(a,d),b.collapse(!0)),!0}var f=b.startContainer;"number"==typeof e&&"number"==
typeof d&&f.type==CKEDITOR.NODE_ELEMENT&&(g(a.startContainer,f,d)||g(a.endContainer,f,e))},isDropRangeAffectedByDragRange:function(a,b){var d=b.startContainer,e=b.endOffset;return a.endContainer.equals(d)&&a.endOffset<=e||a.startContainer.getParent().equals(d)&&a.startContainer.getIndex()<e||a.endContainer.getParent().equals(d)&&a.endContainer.getIndex()<e?!0:!1},internalDrop:function(a,d,e,g){var f=CKEDITOR.plugins.clipboard,h=g.editable(),k,l;g.fire("saveSnapshot");g.fire("lockSnapshot",{dontUpdate:1});
CKEDITOR.env.ie&&10>CKEDITOR.env.version&&this.fixSplitNodesAfterDrop(a,d,f.dragStartContainerChildCount,f.dragEndContainerChildCount);(l=this.isDropRangeAffectedByDragRange(a,d))||(k=a.createBookmark(!1));f=d.clone().createBookmark(!1);l&&(k=a.createBookmark(!1));a=k.startNode;d=k.endNode;l=f.startNode;d&&a.getPosition(l)&CKEDITOR.POSITION_PRECEDING&&d.getPosition(l)&CKEDITOR.POSITION_FOLLOWING&&l.insertBefore(a);a=g.createRange();a.moveToBookmark(k);h.extractHtmlFromRange(a,1);d=g.createRange();
f.startNode.getCommonAncestor(h)||(f=g.getSelection().createBookmarks()[0]);d.moveToBookmark(f);b(g,{dataTransfer:e,method:"drop",range:d},1);g.fire("unlockSnapshot")},getRangeAtDropPosition:function(a,b){var d=a.data.$,e=d.clientX,g=d.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))d=b.document.$.caretRangeFromPoint(e,g),h.setStart(CKEDITOR.dom.node(d.startContainer),d.startOffset),
h.collapse(!0);else if(d.rangeParent)h.setStart(CKEDITOR.dom.node(d.rangeParent),d.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();d=b.document.getBody().$.createTextRange();try{for(var k=!1,l=0;20>l&&!k;l++){if(!k)try{d.moveToPoint(e,g-l),k=!0}catch(m){}if(!k)try{d.moveToPoint(e,g+l),k=!0}catch(z){}}if(k){var w="cke-temp-"+(new Date).getTime();d.pasteHTML('\x3cspan id\x3d"'+w+'"\x3e​\x3c/span\x3e');
var x=b.document.getById(w);h.moveToPosition(x,CKEDITOR.POSITION_BEFORE_START);x.remove()}else{var B=b.document.$.elementFromPoint(e,g),C=new CKEDITOR.dom.element(B),G;if(C.equals(b.editable())||"html"==C.getName())return f&&f.startContainer&&!f.startContainer.equals(b.editable())?f:null;G=C.getClientRect();e<G.left?h.setStartAt(C,CKEDITOR.POSITION_AFTER_START):h.setStartAt(C,CKEDITOR.POSITION_BEFORE_END);h.collapse(!0)}}catch(E){return null}}else return null}return h},initDragDataTransfer:function(a,
b){var d=a.data.$?a.data.$.dataTransfer:null,e=new this.dataTransfer(d,b);"dragstart"===a.name&&e.storeId();d?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 d=a.data.$.clipboardData,e=new this.dataTransfer(d,b);"copy"!==a.name&&"cut"!==a.name||e.storeId();this.copyCutData&&
e.id==this.copyCutData.id?(e=this.copyCutData,e.$=d):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",l)}};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:/\s*\x3c!--StartFragment--\x3e|\x3c!--EndFragment--\x3e\s*/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 d="text/html"==a&&b?this._.nativeHtmlCache:this._.data[a];if(void 0===d||null===d||""===d){if(this._.fallbackDataTransfer.isRequired())d=this._.fallbackDataTransfer.getData(a,b);else try{d=this.$.getData(a)||""}catch(e){d=""}"text/html"!=a||b||(d=this._stripHtml(d))}"Text"==a&&CKEDITOR.env.gecko&&this.getFilesCount()&&"file://"==
d.substring(0,7)&&(d="");if("string"===typeof d)var g=d.indexOf("\x3c/html\x3e"),d=-1!==g?d.substring(0,g+7):d;return d},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(d){}},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,d,e;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(d=0;d<this.$.types.length;d++)a(this.$.types[d])}else a("Text"),
a("URL");e=this._getImageFromClipboard();if(this.$&&this.$.files||e){this._.files=[];if(this.$.files&&this.$.files.length)for(d=0;d<this.$.files.length;d++)this._.files.push(this.$.files[d]);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.object.keys(this._.data),function(b){a[b]=1});if(this.$)if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(var d=0;d<this.$.types.length;d++)a[this.$.types[d]]=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},getTypes:function(){return this.$&&this.$.types?
[].slice.call(this.$.types):[]},_getImageFromClipboard:function(){var a;try{if(this.$&&this.$.items&&this.$.items[0]&&(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;if(CKEDITOR.env.edge&&17<=CKEDITOR.env.version)return!0;try{b.setData("cke/mimetypetest","cke test value"),a._isCustomMimeTypeSupported="cke test value"===b.getData("cke/mimetypetest"),b.clearData("cke/mimetypetest")}catch(d){}}else return!1;
return!a._isCustomMimeTypeSupported},getData:function(a,b){var d=this._getData(this._customDataFallbackType,!0);if(b)return d;var d=this._extractDataComment(d),e=null,e=a===this._customDataFallbackType?d.content:d.data&&d.data[a]?d.data[a]:this._getData(a,!0);return null!==e?e:""},setData:function(a,b){var d=a===this._customDataFallbackType;d&&(b=this._applyDataComment(b,this._getFallbackTypeData()));var e=b,g=this._dataTransfer.$;try{g.setData(a,e),d&&(this._dataTransfer._.nativeHtmlCache=e)}catch(f){if(this._isUnsupportedMimeTypeError(f)){d=
CKEDITOR.plugins.clipboard.fallbackDataTransfer;-1===CKEDITOR.tools.indexOf(d._customTypes,a)&&d._customTypes.push(a);var d=this._getFallbackTypeContent(),h=this._getFallbackTypeData();h[a]=e;try{e=this._applyDataComment(d,h),g.setData(this._customDataFallbackType,e),this._dataTransfer._.nativeHtmlCache=e}catch(k){e=""}}}return e},_getData:function(a,b){var d=this._dataTransfer._.data;if(!b&&d[a])return d[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||{},d=this._dataTransfer._.data;CKEDITOR.tools.array.forEach(a,function(a){void 0!==d[a]?b[a]=d[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 d;(d=/\x3c!--cke-data:(.*?)--\x3e/g.exec(a))&&d[1]&&(b.data=JSON.parse(decodeURIComponent(d[1])),b.content=a.replace(d[0],""))}return b},_applyDataComment:function(a,b){var d="";b&&CKEDITOR.tools.object.keys(b).length&&(d="\x3c!--cke-data:"+encodeURIComponent(JSON.stringify(b))+"--\x3e");return d+(a&&a.length?a:"")}}})();CKEDITOR.config.clipboard_notificationDuration=
1E4;CKEDITOR.plugins.add("panelbutton",{requires:"button",onLoad:function(){function b(b){var f=this._;f.state!=CKEDITOR.TRISTATE_DISABLED&&(this.createPanel(b),f.on?f.panel.hide():f.panel.showBlock(this._.id,this.document.getById(this._.id),4))}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(h){var f=h.panel||{};delete h.panel;this.base(h);this.document=f.parent&&f.parent.getDocument()||CKEDITOR.document;f.block={attributes:f.attributes};f.toolbarRelated=!0;
this.hasArrow="listbox";this.click=b;this._={panelDefinition:f}},statics:{handler:{create:function(b){return new CKEDITOR.ui.panelButton(b)}}},proto:{createPanel:function(b){var f=this._;if(!f.panel){var a=this._.panelDefinition,g=this._.panelDefinition.block,m=a.parent||CKEDITOR.document.getBody(),k=this._.panel=new CKEDITOR.ui.floatPanel(b,m,a),a=k.addBlock(f.id,g),l=this,d=b.getCommand(this.command);k.onShow=function(){l.className&&this.element.addClass(l.className+"_panel");l.setState(CKEDITOR.TRISTATE_ON);
f.on=1;l.editorFocus&&b.focus();if(l.onOpen)l.onOpen()};k.onHide=function(a){l.className&&this.element.getFirst().removeClass(l.className+"_panel");!l.modes&&d?l.setStateFromCommand(d):l.setState(l.modes&&l.modes[b.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);f.on=0;if(!a&&l.onClose)l.onClose()};k.onEscape=function(){k.hide(1);l.document.getById(f.id).focus()};if(this.onBlock)this.onBlock(k,a);a.onHide=function(){f.on=0;!l.modes&&l.command?l.setStateFromCommand(d):l.setState(CKEDITOR.TRISTATE_OFF)}}},
setStateFromCommand:function(b){this.setState(b.state)}}})},beforeInit:function(b){b.ui.addHandler(CKEDITOR.UI_PANELBUTTON,CKEDITOR.ui.panelButton.handler)}});CKEDITOR.UI_PANELBUTTON="panelbutton";(function(){CKEDITOR.plugins.add("panel",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}});CKEDITOR.UI_PANEL="panel";CKEDITOR.ui.panel=function(a,b){b&&CKEDITOR.tools.extend(this,b);CKEDITOR.tools.extend(this,{className:"",css:[]});this.id=CKEDITOR.tools.getNextId();
this.document=a;this.isFramed=this.forceIFrame||this.css.length;this._={blocks:{}}};CKEDITOR.ui.panel.handler={create:function(a){return new CKEDITOR.ui.panel(a)}};var b=CKEDITOR.addTemplate("panel",'\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'),h=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'),
f=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,g){var m={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};
this.getHolderElement=function(){var a=this._.holder;if(!a){if(this.isFramed){var a=this.document.getById(this.id+"_frame"),b=a.getParent(),a=a.getFrameDocument();CKEDITOR.env.iOS&&b.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"});b=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=!0;if(this.onLoad)this.onLoad()},this));a.write(f.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+
b+");"},m)));a.getWindow().$.CKEDITOR=CKEDITOR;a.on("keydown",function(a){var b=a.data.getKeystroke(),d=this.document.getById(this.id).getAttribute("dir");if("input"!==a.data.getTarget().getName()||37!==b&&39!==b)this._.onKeyDown&&!1===this._.onKeyDown(b)?"input"===a.data.getTarget().getName()&&32===b||a.data.preventDefault():(27==b||b==("rtl"==d?39:37))&&this.onEscape&&!1===this.onEscape(b)&&a.data.preventDefault()},this);a=a.getBody();a.unselectable();CKEDITOR.env.air&&CKEDITOR.tools.callFunction(b)}else a=
this.document.getById(this.id);this._.holder=a}return a};if(this.isFramed){var k=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";m.frame=h.output({id:this.id+"_frame",src:k})}k=b.output(m);g&&g.push(k);return k},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,f=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");b&&b.hide();this._.currentBlock=a;CKEDITOR.fire("ariaWidget",f);a._.focusIndex=-1;this._.onKeyDown=a.onKeyDown&&CKEDITOR.tools.bind(a.onKeyDown,a);a.show();return a},destroy:function(){this.element&&this.element.remove()}};CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(a,
b){this.element=a.append(a.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}}));b&&CKEDITOR.tools.extend(this,b);this.element.setAttributes({role:this.attributes.role||"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]});this.keys={};this._.focusIndex=-1;this.element.disableContextMenu()},_:{markItem:function(a){-1!=a&&(a=this._.getItems().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")},f=this._.getItems(),h,l,d=f.count()-1;0<=d;d--)if(h=f.getItem(d),h.getAscendant(b)||(l=h,this._.focusIndex=d),"true"==h.getAttribute("aria-selected")){l=h;this._.focusIndex=d;break}l&&(a&&a(),CKEDITOR.env.webkit&&l.getDocument().getWindow().focus(),l.focus(),this.onMark&&this.onMark(l))},getItems:function(){return this.element.find("a,input")}},
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 f=this.keys[a];switch(f){case "next":for(var h=this._.focusIndex,f=this._.getItems(),l;l=f.getItem(++h);)if(l.getAttribute("_cke_focus")&&l.$.offsetWidth){this._.focusIndex=h;l.focus(!0);break}return l||b?!1:(this._.focusIndex=-1,this.onKeyDown(a,1));case "prev":h=this._.focusIndex;for(f=this._.getItems();0<h&&(l=
f.getItem(--h));){if(l.getAttribute("_cke_focus")&&l.$.offsetWidth){this._.focusIndex=h;l.focus(!0);break}l=null}return l||b?!1:(this._.focusIndex=f.count(),this.onKeyDown(a,1));case "click":case "mouseup":return h=this._.focusIndex,(l=0<=h&&this._.getItems().getItem(h))&&l.fireEventHandler(f,{button:CKEDITOR.tools.normalizeMouseButton(CKEDITOR.MOUSE_BUTTON_LEFT,!0)}),!1}return!0}}})})();CKEDITOR.plugins.add("floatpanel",{requires:"panel"});(function(){function b(b,a,g,m,k){k=CKEDITOR.tools.genKey(a.getUniqueId(),
g.getUniqueId(),b.lang.dir,b.uiColor||"",m.css||"",k||"");var l=h[k];l||(l=h[k]=new CKEDITOR.ui.panel(a,m),l.element=g.append(CKEDITOR.dom.element.createFromHtml(l.render(b),a)),l.element.setStyles({display:"none",position:"absolute"}));return l}var h={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(f,a,g,h){function k(){c.hide()}g.forceIFrame=1;g.toolbarRelated&&f.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(a=CKEDITOR.document.getById("cke_"+f.name));var l=a.getDocument();h=b(f,l,
a,g,h||0);var d=h.element,e=d.getFirst(),c=this;d.disableContextMenu();this.element=d;this._={editor:f,panel:h,parentElement:a,definition:g,document:l,iframe:e,children:[],dir:f.lang.dir,showBlockParams:null,markFirst:void 0!==g.markFirst?g.markFirst:!0};f.on("mode",k);f.on("resize",k);l.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,g,h,k,l){var d=this._.panel,e=d.showBlock(b);this._.showBlockParams=[].slice.call(arguments);this.allowBlur(!1);var c=this._.editor.editable();this._.returnFocus=c.hasFocus?c:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);this._.hideTimeout=0;var n=this.element,c=this._.iframe,c=CKEDITOR.env.ie&&!CKEDITOR.env.edge?c:new CKEDITOR.dom.window(c.$.contentWindow),r=n.getDocument(),t=this._.parentElement.getPositionedAncestor(),q=a.getDocumentPosition(r),r=t?t.getDocumentPosition(r):
{x:0,y:0},p="rtl"==this._.dir,u=q.x+(h||0)-r.x,y=q.y+(k||0)-r.y;!p||1!=g&&4!=g?p||2!=g&&3!=g||(u+=a.$.offsetWidth-1):u+=a.$.offsetWidth;if(3==g||4==g)y+=a.$.offsetHeight-1;this._.panel._.offsetParentId=a.getId();n.setStyles({top:y+"px",left:0,display:""});n.setOpacity(0);n.getFirst().removeStyle("width");this._.editor.focusManager.add(c);this._.blurSet||(CKEDITOR.event.useCapture=!0,c.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),c.on("focus",function(){this._.focused=!0;this.hideChild();this.allowBlur(!0)},this),CKEDITOR.env.iOS&&(c.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this),c.on("touchend",function(){this._.hideTimeout=0;this.focus()},this)),CKEDITOR.event.useCapture=!1,this._.blurSet=1);d.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=n;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");d._.currentBlock.element.setStyle("display","none").removeStyle("display")}else a.removeStyle("height");p&&(u-=n.$.offsetWidth);n.setStyle("left",u+"px");var b=d.element.getWindow(),a=n.$.getBoundingClientRect(),b=b.getViewPaneSize(),c=a.width||a.right-a.left,g=a.height||a.bottom-a.top,f=p?a.right:b.width-a.left,h=p?b.width-a.right:a.left;p?f<c&&(u=h>c?u+c:b.width>c?u-a.left:u-a.right+b.width):f<c&&(u=h>c?u-c:b.width>c?u-a.right+b.width:u-a.left);c=a.top;b.height-
a.top<g&&(y=c>g?y-g:b.height>g?y-a.bottom+b.height:y-a.top);CKEDITOR.env.ie&&!CKEDITOR.env.edge&&((b=a=n.$.offsetParent&&new CKEDITOR.dom.element(n.$.offsetParent))&&"html"==b.getName()&&(b=b.getDocument().getBody()),b&&"rtl"==b.getComputedStyle("direction")&&(u=CKEDITOR.env.ie8Compat?u-2*n.getDocument().getDocumentElement().$.scrollLeft:u-(a.$.scrollWidth-a.$.clientWidth)));var a=n.getFirst(),k;(k=a.getCustomData("activePanel"))&&k.onHide&&k.onHide.call(this,1);a.setCustomData("activePanel",this);
n.setStyles({top:y+"px",left:u+"px"});n.setOpacity(1);l&&l()},this);d.isLoaded?a():d.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);this._.markFirst&&(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,g,h,k,l){if(this._.activeChild!=b||b._.panel._.offsetParentId!=g.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,g,h,k,l),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 h){var g=h[a];b?g.destroy():g.element.hide()}b&&(h={})})})();CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",init:function(b){function h(a){var d=a.name,h=a.type,l=a.title,t=a.order,q=a.commandName;a=a.contentTransformations||{};var p=new CKEDITOR.style(m["colorButton_"+
h+"Style"]),u=CKEDITOR.tools.getNextId()+"_colorBox",y={type:h},v=new CKEDITOR.style(m["colorButton_"+h+"Style"],{color:"inherit"}),A;b.addCommand(q,{contextSensitive:!0,exec:function(a,b){if(!a.readOnly){var d=b.newStyle;a.removeStyle(v);a.focus();d&&a.applyStyle(d);a.fire("saveSnapshot")}},refresh:function(a,b){v.checkApplicable(b,a,a.activeFilter)?v.checkActive(b,a)?this.setState(CKEDITOR.TRISTATE_ON):this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)}});b.ui.add(d,
CKEDITOR.UI_PANELBUTTON,{label:l,title:l,command:q,editorFocus:0,toolbar:"colors,"+t,allowedContent:p,requiredContent:p,contentTransformations:a,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":k.panelTitle}},onBlock:function(a,d){A=d;d.autoSize=!0;d.element.addClass("cke_colorblock");d.element.setHtml(f({type:h,colorBoxId:u,colorData:y,commandName:q}));d.element.getDocument().getBody().setStyle("overflow","hidden");CKEDITOR.ui.fire("ready",this);var c=d.keys,e="rtl"==
b.lang.dir;c[e?37:39]="next";c[40]="next";c[9]="next";c[e?39:37]="prev";c[38]="prev";c[CKEDITOR.SHIFT+9]="prev";c[32]="click"},onOpen:function(){var a=b.getSelection(),d=a&&a.getStartElement(),c=b.elementPath(d);if(c){d=c.block||c.blockLimit||b.document.getBody();do c=d&&d.getComputedStyle("back"==h?"background-color":"color")||"transparent";while("back"==h&&"transparent"==c&&d&&(d=d.getParent()));c&&"transparent"!=c||(c="#ffffff");!1!==m.colorButton_enableAutomatic&&this._.panel._.iframe.getFrameDocument().getById(u).setStyle("background-color",
c);if(d=a&&a.getRanges()[0]){for(var a=new CKEDITOR.dom.walker(d),e=d.collapsed?d.startContainer:a.next(),d="";e;){e.type!==CKEDITOR.NODE_ELEMENT&&(e=e.getParent());e=g(e.getComputedStyle("back"==h?"background-color":"color"));d=d||e;if(d!==e){d="";break}e=a.next()}"transparent"==d&&(d="");"fore"==h&&(y.automaticTextColor="#"+g(c));y.selectionColor=d?"#"+d:"";a=d;d=A._.getItems();for(e=0;e<d.count();e++){var f=d.getItem(e);f.removeAttribute("aria-selected");a&&a==g(f.getAttribute("data-value"))&&
f.setAttribute("aria-selected",!0)}}return c}}})}function f(d){function c(a){a=a&&new CKEDITOR.style(A,{color:a});b.execCommand(l,{newStyle:a})}var g=d.type,f=d.colorBoxId,h=d.colorData,l=d.commandName;d=[];var p=m.colorButton_colors.split(","),u=m.colorButton_colorsPerRow||6,y=b.plugins.colordialog&&!1!==m.colorButton_enableMore,v=p.length+(y?2:1),A=b.config["colorButton_"+g+"Style"];A.childRule="back"==g?function(b){return a(b)}:function(b){return!(b.is("a")||b.getElementsByTag("a").count())||a(b)};
var z=CKEDITOR.tools.addFunction(function(a){b.focus();b.fire("saveSnapshot");"?"==a?b.getColorFromDialog(function(a){a&&c(a)},null,h):c(a&&"#"+a)});!1!==m.colorButton_enableAutomatic&&d.push('\x3ca class\x3d"cke_colorauto" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"',k.auto,'" draggable\x3d"false" ondragstart\x3d"return false;" onclick\x3d"CKEDITOR.tools.callFunction(',z,",null,'",g,"');return false;\" href\x3d\"javascript:void('",k.auto,'\')" role\x3d"option" aria-posinset\x3d"1" aria-setsize\x3d"',
v,'"\x3e\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e\x3ctr\x3e\x3ctd colspan\x3d"'+u+'" align\x3d"center"\x3e\x3cspan class\x3d"cke_colorbox" id\x3d"',f,'"\x3e\x3c/span\x3e',k.auto,"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/a\x3e");d.push('\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e');for(f=0;f<p.length;f++){0===f%u&&d.push("\x3c/tr\x3e\x3ctr\x3e");var w=p[f].split("/"),x=w[0],B=w[1]||x;d.push('\x3ctd\x3e\x3ca class\x3d"cke_colorbox" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"',
w[1]?x:b.lang.colorbutton.colors[B]||B,'" draggable\x3d"false" ondragstart\x3d"return false;" onclick\x3d"CKEDITOR.tools.callFunction(',z,",'",B,"','",g,"'); return false;\" href\x3d\"javascript:void('",B,'\')" data-value\x3d"'+B+'" role\x3d"option" aria-posinset\x3d"',f+2,'" aria-setsize\x3d"',v,'"\x3e\x3cspan class\x3d"cke_colorbox" style\x3d"background-color:#',B,'"\x3e\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e')}y&&d.push('\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d"'+u+'" align\x3d"center"\x3e\x3ca class\x3d"cke_colormore" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"',
k.more,'" draggable\x3d"false" ondragstart\x3d"return false;" onclick\x3d"CKEDITOR.tools.callFunction(',z,",'?','",g,"');return false;\" href\x3d\"javascript:void('",k.more,"')\"",' role\x3d"option" aria-posinset\x3d"',v,'" aria-setsize\x3d"',v,'"\x3e',k.more,"\x3c/a\x3e\x3c/td\x3e");d.push("\x3c/tr\x3e\x3c/table\x3e");return d.join("")}function a(a){return"false"==a.getAttribute("contentEditable")||a.getAttribute("data-nostyle")}function g(a){return CKEDITOR.tools.normalizeHex("#"+CKEDITOR.tools.convertRgbToHex(a||
"")).replace(/#/g,"")}var m=b.config,k=b.lang.colorbutton;if(!CKEDITOR.env.hc){h({name:"TextColor",type:"fore",commandName:"textColor",title:k.textColorTitle,order: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 l,d=b.config.colorButton_normalizeBackground;if(void 0===d||d)l=[[{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.object.keys(a).length},right:function(a){var d=(new CKEDITOR.style(b.config.colorButton_backStyle,{color:a.styles.background})).getDefinition();a.name=d.element;a.styles=d.styles;a.attributes=d.attributes||{};return a}}]];h({name:"BGColor",type:"back",commandName:"bgColor",title:k.bgColorTitle,order:20,contentTransformations:l})}}});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(b){var h=new CKEDITOR.dialogCommand("colordialog");h.editorFocus=
!1;b.addCommand("colordialog",h);CKEDITOR.dialog.add("colordialog",this.path+"dialogs/colordialog.js");b.getColorFromDialog=function(f,a,g){var h,k,l,d;h=function(b){l(this);b="ok"==b.name?this.getValueOf("picker","selectedColor"):null;/^[0-9a-f]{3}([0-9a-f]{3})?$/i.test(b)&&(b="#"+b);f.call(a,b)};k=function(a){g&&(a.data=g)};l=function(a){a.removeListener("ok",h);a.removeListener("cancel",h);a.removeListener("show",k)};d=function(a){a.on("ok",h);a.on("cancel",h);a.on("show",k,null,null,5)};b.execCommand("colordialog");
if(b._.storedDialogs&&b._.storedDialogs.colordialog)d(b._.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(){d(this);b.onLoad=a;"function"==typeof a&&a.call(this)}})}})}}};CKEDITOR.plugins.add("colordialog",CKEDITOR.plugins.colordialog);(function(){function b(a,b,d,e){var c=new CKEDITOR.dom.walker(a);if(a=a.startContainer.getAscendant(b,
!0)||a.endContainer.getAscendant(b,!0))if(d(a),e)return;for(;a=c.next();)if(a=a.getAscendant(b,!0))if(d(a),e)break}function h(b,g){var d={ul:"ol",ol:"ul"};return-1!==a(g,function(a){return a.element===b||a.element===d[b]})}function f(a){this.styles=null;this.sticky=!1;this.editor=a;this.filter=new CKEDITOR.filter(a,a.config.copyFormatting_allowRules);!0===a.config.copyFormatting_allowRules&&(this.filter.disabled=!0);a.config.copyFormatting_disallowRules&&this.filter.disallow(a.config.copyFormatting_disallowRules)}
var a=CKEDITOR.tools.indexOf,g=CKEDITOR.tools.getMouseButton,m=!1;CKEDITOR.plugins.add("copyformatting",{lang:"az,de,en,it,ja,nb,nl,oc,pl,pt-br,ru,sv,tr,zh,zh-cn",icons:"copyformatting",hidpi:!0,init:function(b){var f=CKEDITOR.plugins.copyformatting;f._addScreenReaderContainer();m||(CKEDITOR.document.appendStyleSheet(this.path+"styles/copyformatting.css"),m=!0);b.addContentsCss&&b.addContentsCss(this.path+"styles/copyformatting.css");b.copyFormatting=new f.state(b);b.addCommand("copyFormatting",f.commands.copyFormatting);
b.addCommand("applyFormatting",f.commands.applyFormatting);b.ui.addButton("CopyFormatting",{label:b.lang.copyformatting.label,command:"copyFormatting",toolbar:"cleanup,0"});b.on("contentDom",function(){var a=b.getCommand("copyFormatting"),e=b.editable(),c=e.isInline()?e:b.document,f=b.ui.get("CopyFormatting");e.attachListener(c,"mouseup",function(c){g(c)===CKEDITOR.MOUSE_BUTTON_LEFT&&a.state===CKEDITOR.TRISTATE_ON&&b.execCommand("applyFormatting")});e.attachListener(CKEDITOR.document,"mouseup",function(c){g(c)!==
CKEDITOR.MOUSE_BUTTON_LEFT||a.state!==CKEDITOR.TRISTATE_ON||e.contains(c.data.getTarget())||b.execCommand("copyFormatting")});f&&(c=CKEDITOR.document.getById(f._.id),e.attachListener(c,"dblclick",function(){b.execCommand("copyFormatting",{sticky:!0})}),e.attachListener(c,"mouseup",function(a){a.data.stopPropagation()}))});b.config.copyFormatting_keystrokeCopy&&b.setKeystroke(b.config.copyFormatting_keystrokeCopy,"copyFormatting");b.on("key",function(a){var e=b.getCommand("copyFormatting");a=a.data.domEvent;
a.getKeystroke&&27===a.getKeystroke()&&e.state===CKEDITOR.TRISTATE_ON&&b.execCommand("copyFormatting")});b.copyFormatting.on("extractFormatting",function(a){var e=a.data.element;if(e.contains(b.editable())||e.equals(b.editable()))return a.cancel();e=f._convertElementToStyleDef(e);if(!b.copyFormatting.filter.check(new CKEDITOR.style(e),!0,!0))return a.cancel();a.data.styleDef=e});b.copyFormatting.on("applyFormatting",function(d){if(!d.data.preventFormatStripping){var e=d.data.range,c=f._extractStylesFromRange(b,
e),g=f._determineContext(e),m,t;if(b.copyFormatting._isContextAllowed(g))for(t=0;t<c.length;t++)g=c[t],m=e.createBookmark(),-1===a(f.preservedElements,g.element)?CKEDITOR.env.webkit&&!CKEDITOR.env.chrome?c[t].removeFromRange(d.data.range,d.editor):c[t].remove(d.editor):h(g.element,d.data.styles)&&f._removeStylesFromElementInRange(e,g.element),e.moveToBookmark(m)}});b.copyFormatting.on("applyFormatting",function(a){var e=CKEDITOR.plugins.copyformatting,c=e._determineContext(a.data.range);"list"===
c&&b.copyFormatting._isContextAllowed("list")?e._applyStylesToListContext(a.editor,a.data.range,a.data.styles):"table"===c&&b.copyFormatting._isContextAllowed("table")?e._applyStylesToTableContext(a.editor,a.data.range,a.data.styles):b.copyFormatting._isContextAllowed("text")&&e._applyStylesToTextContext(a.editor,a.data.range,a.data.styles)},null,null,999)}});f.prototype._isContextAllowed=function(b){var g=this.editor.config.copyFormatting_allowedContexts;return!0===g||-1!==a(g,b)};CKEDITOR.event.implementOn(f.prototype);
CKEDITOR.plugins.copyformatting={state:f,inlineBoundary:"h1 h2 h3 h4 h5 h6 p div".split(" "),excludedAttributes:["id","style","href","data-cke-saved-href","dir"],elementsForInlineTransform:["li"],excludedElementsFromInlineTransform:["table","thead","tbody","ul","ol"],excludedAttributesFromInlineTransform:["value","type"],preservedElements:"ul ol li td th tr thead tbody table".split(" "),breakOnElements:["ul","ol","table"],_initialKeystrokePasteCommand:null,commands:{copyFormatting:{exec:function(a,
b){var d=CKEDITOR.plugins.copyformatting,e=a.copyFormatting,c=b?"keystrokeHandler"==b.from:!1,g=b?b.sticky||c:!1,f=d._getCursorContainer(a),h=CKEDITOR.document.getDocumentElement();if(this.state===CKEDITOR.TRISTATE_ON)return e.styles=null,e.sticky=!1,f.removeClass("cke_copyformatting_active"),h.removeClass("cke_copyformatting_disabled"),h.removeClass("cke_copyformatting_tableresize_cursor"),d._putScreenReaderMessage(a,"canceled"),d._detachPasteKeystrokeHandler(a),this.setState(CKEDITOR.TRISTATE_OFF);
e.styles=d._extractStylesFromElement(a,a.elementPath().lastElement);this.setState(CKEDITOR.TRISTATE_ON);c||(f.addClass("cke_copyformatting_active"),h.addClass("cke_copyformatting_tableresize_cursor"),a.config.copyFormatting_outerCursor&&h.addClass("cke_copyformatting_disabled"));e.sticky=g;d._putScreenReaderMessage(a,"copied");d._attachPasteKeystrokeHandler(a)}},applyFormatting:{editorFocus:CKEDITOR.env.ie&&!CKEDITOR.env.edge?!1:!0,exec:function(a,b){var d=a.getCommand("copyFormatting"),e=b?"keystrokeHandler"==
b.from:!1,c=CKEDITOR.plugins.copyformatting,g=a.copyFormatting,f=c._getCursorContainer(a),h=CKEDITOR.document.getDocumentElement();if(e&&!g.styles)return c._putScreenReaderMessage(a,"failed"),c._detachPasteKeystrokeHandler(a),!1;e=c._applyFormat(a,g.styles);g.sticky||(g.styles=null,f.removeClass("cke_copyformatting_active"),h.removeClass("cke_copyformatting_disabled"),h.removeClass("cke_copyformatting_tableresize_cursor"),d.setState(CKEDITOR.TRISTATE_OFF),c._detachPasteKeystrokeHandler(a));c._putScreenReaderMessage(a,
e?"applied":"canceled")}}},_getCursorContainer:function(a){return a.elementMode===CKEDITOR.ELEMENT_MODE_INLINE?a.editable():a.editable().getParent()},_convertElementToStyleDef:function(a){var b=CKEDITOR.tools,d=a.getAttributes(CKEDITOR.plugins.copyformatting.excludedAttributes),b=b.parseCssText(a.getAttribute("style"),!0,!0);return{element:a.getName(),type:CKEDITOR.STYLE_INLINE,attributes:d,styles:b}},_extractStylesFromElement:function(b,g){var d={},e=[];do if(g.type===CKEDITOR.NODE_ELEMENT&&!g.hasAttribute("data-cke-bookmark")&&
(d.element=g,b.copyFormatting.fire("extractFormatting",d,b)&&d.styleDef&&e.push(new CKEDITOR.style(d.styleDef)),g.getName&&-1!==a(CKEDITOR.plugins.copyformatting.breakOnElements,g.getName())))break;while((g=g.getParent())&&g.type===CKEDITOR.NODE_ELEMENT);return e},_extractStylesFromRange:function(a,b){for(var d=[],e=new CKEDITOR.dom.walker(b),c;c=e.next();)d=d.concat(CKEDITOR.plugins.copyformatting._extractStylesFromElement(a,c));return d},_removeStylesFromElementInRange:function(b,g){for(var d=-1!==
a(["ol","ul","table"],g),e=new CKEDITOR.dom.walker(b),c;c=e.next();)if(c=c.getAscendant(g,!0))if(c.removeAttributes(c.getAttributes()),d)break},_getSelectedWordOffset:function(b){function g(a,b){return a[b?"getPrevious":"getNext"](function(a){return a.type!==CKEDITOR.NODE_COMMENT})}function d(a){return a.type==CKEDITOR.NODE_ELEMENT?(a=a.getHtml().replace(/<span.*?>&nbsp;<\/span>/g,""),a.replace(/<.*?>/g,"")):a.getText()}function e(b,c){var f=b,h=/\s/g,k="p br ol ul li td th div caption body".split(" "),
m=!1,n=!1,r,p;do{for(r=g(f,c);!r&&f.getParent();){f=f.getParent();if(-1!==a(k,f.getName())){n=m=!0;break}r=g(f,c)}if(r&&r.getName&&-1!==a(k,r.getName())){m=!0;break}f=r}while(f&&f.getStyle&&("none"==f.getStyle("display")||!f.getText()));for(f||(f=b);f.type!==CKEDITOR.NODE_TEXT;)f=!m||c||n?f.getChild(0):f.getChild(f.getChildCount()-1);for(k=d(f);null!=(n=h.exec(k))&&(p=n.index,c););if("number"!==typeof p&&!m)return e(f,c);if(m)c?p=0:(h=/([\.\b]*$)/,p=(n=h.exec(k))?n.index:k.length);else if(c&&(p+=
1,p>k.length))return e(f);return{node:f,offset:p}}var c=/\b\w+\b/ig,f,h,m,q,p;m=q=p=b.startContainer;for(f=d(m);null!=(h=c.exec(f));)if(h.index+h[0].length>=b.startOffset)return b=h.index,c=h.index+h[0].length,0===h.index&&(h=e(m,!0),q=h.node,b=h.offset),c>=f.length&&(f=e(m),p=f.node,c=f.offset),{startNode:q,startOffset:b,endNode:p,endOffset:c};return null},_filterStyles:function(a){var b=CKEDITOR.tools.isEmpty,d=[],e,c;for(c=0;c<a.length;c++)e=a[c]._.definition,-1!==CKEDITOR.tools.indexOf(CKEDITOR.plugins.copyformatting.inlineBoundary,
e.element)&&(e.element=a[c].element="span"),"span"===e.element&&b(e.attributes)&&b(e.styles)||d.push(a[c]);return d},_determineContext:function(a){function b(d){var e=new CKEDITOR.dom.walker(a),c;if(a.startContainer.getAscendant(d,!0)||a.endContainer.getAscendant(d,!0))return!0;for(;c=e.next();)if(c.getAscendant(d,!0))return!0}return b({ul:1,ol:1})?"list":b("table")?"table":"text"},_applyStylesToTextContext:function(b,g,d){var e=CKEDITOR.plugins.copyformatting,c=e.excludedAttributesFromInlineTransform,
f,h;CKEDITOR.env.webkit&&!CKEDITOR.env.chrome&&b.getSelection().selectRanges([g]);for(f=0;f<d.length;f++)if(g=d[f],-1===a(e.excludedElementsFromInlineTransform,g.element)){if(-1!==a(e.elementsForInlineTransform,g.element))for(g.element=g._.definition.element="span",h=0;h<c.length;h++)g._.definition.attributes[c[h]]&&delete g._.definition.attributes[c[h]];g.apply(b)}},_applyStylesToListContext:function(a,g,d){var e,c,f;for(f=0;f<d.length;f++)e=d[f],c=g.createBookmark(),"ol"===e.element||"ul"===e.element?
b(g,{ul:1,ol:1},function(a){var b=e;a.getName()!==b.element&&a.renameNode(b.element);b.applyToObject(a)},!0):"li"===e.element?b(g,"li",function(a){e.applyToObject(a)}):CKEDITOR.plugins.copyformatting._applyStylesToTextContext(a,g,[e]),g.moveToBookmark(c)},_applyStylesToTableContext:function(g,f,d){function e(a,b){a.getName()!==b.element&&(b=b.getDefinition(),b.element=a.getName(),b=new CKEDITOR.style(b));b.applyToObject(a)}var c,h,m;for(m=0;m<d.length;m++)c=d[m],h=f.createBookmark(),-1!==a(["table",
"tr"],c.element)?b(f,c.element,function(a){c.applyToObject(a)}):-1!==a(["td","th"],c.element)?b(f,{td:1,th:1},function(a){e(a,c)}):-1!==a(["thead","tbody"],c.element)?b(f,{thead:1,tbody:1},function(a){e(a,c)}):CKEDITOR.plugins.copyformatting._applyStylesToTextContext(g,f,[c]),f.moveToBookmark(h)},_applyFormat:function(a,b){var d=a.getSelection().getRanges()[0],e=CKEDITOR.plugins.copyformatting,c,g;if(!d)return!1;if(d.collapsed){g=a.getSelection().createBookmarks();if(!(c=e._getSelectedWordOffset(d)))return;
d=a.createRange();d.setStart(c.startNode,c.startOffset);d.setEnd(c.endNode,c.endOffset);d.select()}b=e._filterStyles(b);if(!a.copyFormatting.fire("applyFormatting",{styles:b,range:d,preventFormatStripping:!1},a))return!1;g&&a.getSelection().selectBookmarks(g);return!0},_putScreenReaderMessage:function(a,b){var d=this._getScreenReaderContainer();d&&d.setText(a.lang.copyformatting.notification[b])},_addScreenReaderContainer:function(){if(this._getScreenReaderContainer())return this._getScreenReaderContainer();
if(!CKEDITOR.env.ie6Compat&&!CKEDITOR.env.ie7Compat)return CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml('\x3cdiv class\x3d"cke_screen_reader_only cke_copyformatting_notification"\x3e\x3cdiv aria-live\x3d"polite"\x3e\x3c/div\x3e\x3c/div\x3e')).getChild(0)},_getScreenReaderContainer:function(){if(!CKEDITOR.env.ie6Compat&&!CKEDITOR.env.ie7Compat)return CKEDITOR.document.getBody().findOne(".cke_copyformatting_notification div[aria-live]")},_attachPasteKeystrokeHandler:function(a){var b=
a.config.copyFormatting_keystrokePaste;b&&(this._initialKeystrokePasteCommand=a.keystrokeHandler.keystrokes[b],a.setKeystroke(b,"applyFormatting"))},_detachPasteKeystrokeHandler:function(a){var b=a.config.copyFormatting_keystrokePaste;b&&a.setKeystroke(b,this._initialKeystrokePasteCommand||!1)}};CKEDITOR.config.copyFormatting_outerCursor=!0;CKEDITOR.config.copyFormatting_allowRules="b s u i em strong span p div td th ol ul li(*)[*]{*}";CKEDITOR.config.copyFormatting_disallowRules="*[data-cke-widget*,data-widget*,data-cke-realelement](cke_widget*)";
CKEDITOR.config.copyFormatting_allowedContexts=!0;CKEDITOR.config.copyFormatting_keystrokeCopy=CKEDITOR.CTRL+CKEDITOR.SHIFT+67;CKEDITOR.config.copyFormatting_keystrokePaste=CKEDITOR.CTRL+CKEDITOR.SHIFT+86})();CKEDITOR.plugins.add("menu",{requires:"floatpanel",beforeInit:function(b){for(var h=b.config.menu_groups.split(","),f=b._.menuGroups={},a=b._.menuItems={},g=0;g<h.length;g++)f[h[g]]=g+1;b.addMenuGroup=function(a,b){f[a]=b||100};b.addMenuItem=function(b,g){f[g.group]&&(a[b]=new CKEDITOR.menuItem(this,
b,g))};b.addMenuItems=function(a){for(var b in a)this.addMenuItem(b,a[b])};b.getMenuItem=function(b){return a[b]};b.removeMenuItem=function(b){delete a[b]}}});(function(){function b(a){a.sort(function(a,b){return a.group<b.group?-1:a.group>b.group?1:a.order<b.order?-1:a.order>b.order?1:0})}var h='\x3cspan class\x3d"cke_menuitem"\x3e\x3ca id\x3d"{id}" class\x3d"cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href\x3d"{href}" title\x3d"{title}" tabindex\x3d"-1" _cke_focus\x3d1 hidefocus\x3d"true" role\x3d"{role}" aria-label\x3d"{attrLabel}" aria-describedby\x3d"{id}_description" aria-haspopup\x3d"{hasPopup}" aria-disabled\x3d"{disabled}" {ariaChecked} draggable\x3d"false"',
f="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(h+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(h+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;" ondragstart\x3d"return false;"');CKEDITOR.env.ie&&(f='return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26');var h=h+(' onmouseover\x3d"CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout\x3d"CKEDITOR.tools.callFunction({moveOutFn},{index});" onclick\x3d"'+f+'CKEDITOR.tools.callFunction({clickFn},{index}); return false;"\x3e')+
'\x3cspan class\x3d"cke_menubutton_inner"\x3e\x3cspan class\x3d"cke_menubutton_icon"\x3e\x3cspan class\x3d"cke_button_icon cke_button__{iconName}_icon" style\x3d"{iconStyle}"\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"cke_menubutton_label"\x3e{label}\x3c/span\x3e{shortcutHtml}{arrowHtml}\x3c/span\x3e\x3c/a\x3e\x3cspan id\x3d"{id}_description" class\x3d"cke_voice_label" aria-hidden\x3d"false"\x3e{ariaShortcut}\x3c/span\x3e\x3c/span\x3e',a=CKEDITOR.addTemplate("menuItem",h),g=CKEDITOR.addTemplate("menuArrow",
'\x3cspan class\x3d"cke_menuarrow"\x3e\x3cspan\x3e{label}\x3c/span\x3e\x3c/span\x3e'),m=CKEDITOR.addTemplate("menuShortcut",'\x3cspan class\x3d"cke_menubutton_label cke_menubutton_shortcut"\x3e{shortcut}\x3c/span\x3e');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(a,b){b=this._.definition=b||{};this.id=CKEDITOR.tools.getNextId();this.editor=a;this.items=[];this._.listeners=[];this._.level=b.level||1;var d=CKEDITOR.tools.extend({},b.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-
1,block:{}}),e=d.block.attributes=d.attributes||{};!e.role&&(e.role="menu");this._.panelDefinition=d},_:{onShow:function(){var a=this.editor.getSelection(),b=a&&a.getStartElement(),d=this.editor.elementPath(),e=this._.listeners;this.removeAll();for(var c=0;c<e.length;c++){var g=e[c](b,a,d);if(g)for(var f in g){var h=this.editor.getMenuItem(f);!h||h.command&&!this.editor.getCommand(h.command).state||(h.state=g[f],this.add(h))}}},onClick:function(a){this.hide();if(a.onClick)a.onClick();else a.command&&
this.editor.execCommand(a.command)},onEscape:function(a){var b=this.parent;b?b._.panel.hideChild(1):27==a&&this.hide(1);return!1},onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(a){var b=this._.subMenu,d=this.items[a];if(d=d.getItems&&d.getItems()){b?b.removeAll():(b=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({},this._.definition,{level:this._.level+1},!0)),b.parent=this,b._.onClick=CKEDITOR.tools.bind(this._.onClick,this));for(var e in d){var c=this.editor.getMenuItem(e);
c&&(c.state=d[e],b.add(c))}var g=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+String(a));setTimeout(function(){b.show(g,2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(a){a.order||(a.order=this.items.length);this.items.push(a)},removeAll:function(){this.items=[]},show:function(a,g,d,e){if(!this.parent&&(this._.onShow(),!this.items.length))return;g=g||("rtl"==this.editor.lang.dir?2:1);var c=this.items,f=this.editor,h=this._.panel,m=this._.element;if(!h){h=this._.panel=
new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level);h.onEscape=CKEDITOR.tools.bind(function(a){if(!1===this._.onEscape(a))return!1},this);h.onShow=function(){h._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")};h.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this);m=h.addBlock(this.id,this._.panelDefinition.block);m.autoSize=!0;var q=m.keys;q[40]="next";q[9]="next";q[38]="prev";q[CKEDITOR.SHIFT+
9]="prev";q["rtl"==f.lang.dir?37:39]=CKEDITOR.env.ie?"mouseup":"click";q[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(q[13]="mouseup");m=this._.element=m.element;q=m.getDocument();q.getBody().setStyle("overflow","hidden");q.getElementsByTag("html").getItem(0).setStyle("overflow","hidden");this._.itemOverFn=CKEDITOR.tools.addFunction(function(a){clearTimeout(this._.showSubTimeout);this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,f.config.menu_subMenuDelay||400,this,[a])},
this);this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)},this);this._.itemClickFn=CKEDITOR.tools.addFunction(function(a){var b=this.items[a];if(b.state==CKEDITOR.TRISTATE_DISABLED)this.hide(1);else if(b.getItems)this._.showSubMenu(a);else this._.onClick(b)},this)}b(c);for(var q=f.elementPath(),q=['\x3cdiv class\x3d"cke_menu'+(q&&q.direction()!=f.lang.dir?" cke_mixed_dir_content":"")+'" role\x3d"presentation"\x3e'],p=c.length,u=p&&c[0].group,y=0;y<p;y++){var v=
c[y];u!=v.group&&(q.push('\x3cdiv class\x3d"cke_menuseparator" role\x3d"separator"\x3e\x3c/div\x3e'),u=v.group);v.render(this,y,q)}q.push("\x3c/div\x3e");m.setHtml(q.join(""));CKEDITOR.ui.fire("ready",this);this.parent?this.parent._.panel.showAsChild(h,this.id,a,g,d,e):h.showBlock(this.id,a,g,d,e);f.fire("menuShow",[h])},addListener:function(a){this._.listeners.push(a)},hide:function(a){this._.onHide&&this._.onHide();this._.panel&&this._.panel.hide(a)},findItemByCommandName:function(a){var b=CKEDITOR.tools.array.filter(this.items,
function(b){return a===b.command});return b.length?(b=b[0],{item:b,element:this._.element.findOne("."+b.className)}):null}}});CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(a,b,d){CKEDITOR.tools.extend(this,d,{order:0,className:"cke_menubutton__"+b});this.group=a._.menuGroups[this.group];this.editor=a;this.name=b},proto:{render:function(b,f,d){var e=b.id+String(f),c="undefined"==typeof this.state?CKEDITOR.TRISTATE_OFF:this.state,h="",r=this.editor,t,q,p=c==CKEDITOR.TRISTATE_ON?"on":c==CKEDITOR.TRISTATE_DISABLED?
"disabled":"off";this.role in{menuitemcheckbox:1,menuitemradio:1}&&(h=' aria-checked\x3d"'+(c==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var u=this.getItems,y="\x26#"+("rtl"==this.editor.lang.dir?"9668":"9658")+";",v=this.name;this.icon&&!/\./.test(this.icon)&&(v=this.icon);this.command&&(t=r.getCommand(this.command),(t=r.getCommandKeystroke(t))&&(q=CKEDITOR.tools.keystrokeToString(r.lang.common.keyboard,t)));t=CKEDITOR.tools.htmlEncodeAttr(this.label);b={id:e,name:this.name,iconName:v,label:this.label,
attrLabel:t,cls:this.className||"",state:p,hasPopup:u?"true":"false",disabled:c==CKEDITOR.TRISTATE_DISABLED,title:t+(q?" ("+q.display+")":""),ariaShortcut:q?r.lang.common.keyboardShortcut+" "+q.aria:"",href:"javascript:void('"+(t||"").replace("'")+"')",hoverFn:b._.itemOverFn,moveOutFn:b._.itemOutFn,clickFn:b._.itemClickFn,index:f,iconStyle:CKEDITOR.skin.getIconStyle(v,"rtl"==this.editor.lang.dir,v==this.icon?null:this.icon,this.iconOffset),shortcutHtml:q?m.output({shortcut:q.display}):"",arrowHtml:u?
g.output({label:y}):"",role:this.role?this.role:"menuitem",ariaChecked:h};a.output(b,d)}}})})();CKEDITOR.config.menu_groups="clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div";CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(b){this.base.call(this,b,{panel:{css:b.config.contextmenu_contentsCss,
className:"cke_menu_panel",attributes:{"aria-label":b.lang.contextmenu.options}}})},proto:{addTarget:function(b,h){function f(){g=!1}var a,g;b.on("contextmenu",function(b){b=b.data;var f=CKEDITOR.env.webkit?a:CKEDITOR.env.mac?b.$.metaKey:b.$.ctrlKey;if(!h||!f)if(b.preventDefault(),!g){if(CKEDITOR.env.mac&&CKEDITOR.env.webkit){var f=this.editor,d=(new CKEDITOR.dom.elementPath(b.getTarget(),f.editable())).contains(function(a){return a.hasAttribute("contenteditable")},!0);d&&"false"==d.getAttribute("contenteditable")&&
f.getSelection().fake(d)}var d=b.getTarget().getDocument(),e=b.getTarget().getDocument().getDocumentElement(),f=!d.equals(CKEDITOR.document),d=d.getWindow().getScrollPosition(),c=f?b.$.clientX:b.$.pageX||d.x+b.$.clientX,m=f?b.$.clientY:b.$.pageY||d.y+b.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(e,null,c,m)},CKEDITOR.env.ie?200:0,this)}},this);if(CKEDITOR.env.webkit){var m=function(){a=0};b.on("keydown",function(b){a=CKEDITOR.env.mac?b.data.$.metaKey:b.data.$.ctrlKey});b.on("keyup",m);
b.on("contextmenu",m)}CKEDITOR.env.gecko&&!CKEDITOR.env.mac&&(b.on("keydown",function(a){a.data.$.shiftKey&&121===a.data.$.keyCode&&(g=!0)},null,null,0),b.on("keyup",f),b.on("contextmenu",f))},open:function(b,h,f,a){!1!==this.editor.config.enableContextMenu&&this.editor.getSelection().getType()!==CKEDITOR.SELECTION_NONE&&(this.editor.focus(),b=b||CKEDITOR.document.getDocumentElement(),this.editor.selectionChange(1),this.show(b,h,f,a))}}})},beforeInit:function(b){var h=b.contextMenu=new CKEDITOR.plugins.contextMenu(b);
b.on("contentDom",function(){h.addTarget(b.editable(),!1!==b.config.browserContextMenuOnCtrl)});b.addCommand("contextMenu",{exec:function(b){var a=0,g=0,h=b.getSelection().getRanges(),h=h[h.length-1].getClientRects(b.editable().isInline());if(h=h[h.length-1])a=h["rtl"===b.lang.dir?"left":"right"],g=h.bottom;b.contextMenu.open(b.document.getBody().getParent(),null,a,g)}});b.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu");b.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}});(function(){function b(a){var b=
this.att;a=a&&a.hasAttribute(b)&&a.getAttribute(b)||"";void 0!==a&&this.setValue(a)}function h(){for(var a,b=0;b<arguments.length;b++)if(arguments[b]instanceof CKEDITOR.dom.element){a=arguments[b];break}if(a){var b=this.att,f=this.getValue();f?a.setAttribute(b,f):a.removeAttribute(b,f)}}var f={id:1,dir:1,classes:1,styles:1};CKEDITOR.plugins.add("dialogadvtab",{requires:"dialog",allowedContent:function(a){a||(a=f);var b=[];a.id&&b.push("id");a.dir&&b.push("dir");var h="";b.length&&(h+="["+b.join(",")+
"]");a.classes&&(h+="(*)");a.styles&&(h+="{*}");return h},createAdvancedTab:function(a,g,m){g||(g=f);var k=a.lang.common,l={id:"advanced",label:k.advancedTab,title:k.advancedTab,elements:[{type:"vbox",padding:1,children:[]}]},d=[];if(g.id||g.dir)g.id&&d.push({id:"advId",att:"id",type:"text",requiredContent:m?m+"[id]":null,label:k.id,setup:b,commit:h}),g.dir&&d.push({id:"advLangDir",att:"dir",type:"select",requiredContent:m?m+"[dir]":null,label:k.langDir,"default":"",style:"width:100%",items:[[k.notSet,
""],[k.langDirLTR,"ltr"],[k.langDirRTL,"rtl"]],setup:b,commit:h}),l.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(d)});if(g.styles||g.classes)d=[],g.styles&&d.push({id:"advStyles",att:"style",type:"text",requiredContent:m?m+"{cke-xyz}":null,label:k.styles,"default":"",validate:CKEDITOR.dialog.validate.inlineStyle(k.invalidInlineStyle),onChange:function(){},getStyle:function(a,b){var d=this.getValue().match(new RegExp("(?:^|;)\\s*"+a+"\\s*:\\s*([^;]*)","i"));return d?
d[1]:b},updateStyle:function(b,d){var g=this.getValue(),f=a.document.createElement("span");f.setAttribute("style",g);f.setStyle(b,d);g=CKEDITOR.tools.normalizeCssText(f.getAttribute("style"));this.setValue(g,1)},setup:b,commit:h}),g.classes&&d.push({type:"hbox",widths:["45%","55%"],children:[{id:"advCSSClasses",att:"class",type:"text",requiredContent:m?m+"(cke-xyz)":null,label:k.cssClasses,"default":"",setup:b,commit:h}]}),l.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(d)});
return l}})})();(function(){CKEDITOR.plugins.add("div",{requires:"dialog",init:function(b){if(!b.blockless){var h=b.lang.div,f="div(*)";CKEDITOR.dialog.isTabEnabled(b,"editdiv","advanced")&&(f+=";div[dir,id,lang,title]{*}");b.addCommand("creatediv",new CKEDITOR.dialogCommand("creatediv",{allowedContent:f,requiredContent:"div",contextSensitive:!0,contentTransformations:[["div: alignmentToStyle"]],refresh:function(a,b){this.setState("div"in(a.config.div_wrapTable?b.root:b.blockLimit).getDtd()?CKEDITOR.TRISTATE_OFF:
CKEDITOR.TRISTATE_DISABLED)}}));b.addCommand("editdiv",new CKEDITOR.dialogCommand("editdiv",{requiredContent:"div"}));b.addCommand("removediv",{requiredContent:"div",exec:function(a){function b(d){(d=CKEDITOR.plugins.div.getSurroundDiv(a,d))&&!d.data("cke-div-added")&&(e.push(d),d.data("cke-div-added"))}for(var f=a.getSelection(),h=f&&f.getRanges(),l,d=f.createBookmarks(),e=[],c=0;c<h.length;c++)l=h[c],l.collapsed?b(f.getStartElement()):(l=new CKEDITOR.dom.walker(l),l.evaluator=b,l.lastForward());
for(c=0;c<e.length;c++)e[c].remove(!0);f.selectBookmarks(d)}});b.ui.addButton&&b.ui.addButton("CreateDiv",{label:h.toolbar,command:"creatediv",toolbar:"blocks,50"});b.addMenuItems&&(b.addMenuItems({editdiv:{label:h.edit,command:"editdiv",group:"div",order:1},removediv:{label:h.remove,command:"removediv",group:"div",order:5}}),b.contextMenu&&b.contextMenu.addListener(function(a){return!a||a.isReadOnly()?null:CKEDITOR.plugins.div.getSurroundDiv(b)?{editdiv:CKEDITOR.TRISTATE_OFF,removediv:CKEDITOR.TRISTATE_OFF}:
null}));CKEDITOR.dialog.add("creatediv",this.path+"dialogs/div.js");CKEDITOR.dialog.add("editdiv",this.path+"dialogs/div.js")}}});CKEDITOR.plugins.div={getSurroundDiv:function(b,h){var f=b.elementPath(h);return b.elementPath(f.blockLimit).contains(function(a){return a.is("div")&&!a.isReadOnly()},1)}}})();(function(){function b(b,f){function k(a){a=c.list[a];var d;a.equals(b.editable())||"true"==a.getAttribute("contenteditable")?(d=b.createRange(),d.selectNodeContents(a),d=d.select()):(d=b.getSelection(),
d.selectElement(a));CKEDITOR.env.ie&&b.fire("selectionChange",{selection:d,path:new CKEDITOR.dom.elementPath(a)});b.focus()}function l(){e&&e.setHtml('\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e');delete c.list}var d=b.ui.spaceId("path"),e,c=b._.elementsPath,n=c.idBase;f.html+='\x3cspan id\x3d"'+d+'_label" class\x3d"cke_voice_label"\x3e'+b.lang.elementspath.eleLabel+'\x3c/span\x3e\x3cspan id\x3d"'+d+'" class\x3d"cke_path" role\x3d"group" aria-labelledby\x3d"'+d+'_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)});c.onClick=k;var r=CKEDITOR.tools.addFunction(k),t=CKEDITOR.tools.addFunction(function(a,d){var e=c.idBase,f;d=new CKEDITOR.dom.event(d);f="rtl"==b.lang.dir;switch(d.getKeystroke()){case f?39:37:case 9:return(f=CKEDITOR.document.getById(e+(a+1)))||(f=CKEDITOR.document.getById(e+"0")),f.focus(),!1;case f?37:39:case CKEDITOR.SHIFT+9:return(f=CKEDITOR.document.getById(e+(a-1)))||(f=CKEDITOR.document.getById(e+(c.list.length-
1))),f.focus(),!1;case 27:return b.focus(),!1;case 13:case 32:return k(a),!1}return!0});b.on("selectionChange",function(f){for(var h=[],k=c.list=[],l=[],m=c.filters,A=!0,z=f.data.path.elements,w=z.length;w--;){var x=z[w],B=0;f=x.data("cke-display-name")?x.data("cke-display-name"):x.data("cke-real-element-type")?x.data("cke-real-element-type"):x.getName();(A=x.hasAttribute("contenteditable")?"true"==x.getAttribute("contenteditable"):A)||x.hasAttribute("contenteditable")||(B=1);for(var C=0;C<m.length;C++){var G=
m[C](x,f);if(!1===G){B=1;break}f=G||f}B||(k.unshift(x),l.unshift(f))}k=k.length;for(m=0;m<k;m++)f=l[m],A=b.lang.elementspath.eleTitle.replace(/%1/,f),f=a.output({id:n+m,label:A,text:f,jsTitle:"javascript:void('"+f+"')",index:m,keyDownFn:t,clickFn:r}),h.unshift(f);e||(e=CKEDITOR.document.getById(d));l=e;l.setHtml(h.join("")+'\x3cspan class\x3d"cke_path_empty"\x3e\x26nbsp;\x3c/span\x3e');b.fire("elementsPathUpdate",{space:l})});b.on("readOnly",l);b.on("contentDomUnload",l);b.addCommand("elementsPathFocus",
h.toolbarFocus);b.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}var h={toolbarFocus:{editorFocus:!1,readOnly:1,exec:function(a){(a=CKEDITOR.document.getById(a._.elementsPath.idBase+"0"))&&a.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}}},f="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(f+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(f+=' 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}"'+
f+' hidefocus\x3d"true"  draggable\x3d"false"  ondragstart\x3d"return false;" 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(f){"bottom"==f.data.space&&b(a,f.data)})}})})();
(function(){function b(a,b,d){d=a.config.forceEnterMode||d;if("wysiwyg"==a.mode){b||(b=a.activeEnterMode);var g=a.elementPath();g&&!g.isContextFor("p")&&(b=CKEDITOR.ENTER_BR,d=1);a.fire("saveSnapshot");b==CKEDITOR.ENTER_BR?k(a,b,null,d):l(a,b,null,d);a.fire("saveSnapshot")}}function h(a){a=a.getSelection().getRanges(!0);for(var b=a.length-1;0<b;b--)a[b].deleteContents();return a[0]}function f(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){b(a)}});a.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(a){b(a,a.activeShiftEnterMode,1)}});a.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var a=CKEDITOR.dom.walker.whitespaces(),g=CKEDITOR.dom.walker.bookmark(),m,k,l,d;CKEDITOR.plugins.enterkey=
{enterBlock:function(b,c,l,m){function t(a){var b;if(a===CKEDITOR.ENTER_BR||-1===CKEDITOR.tools.indexOf(["td","th"],y.lastElement.getName())||1!==y.lastElement.getChildCount())return!1;a=y.lastElement.getChild(0).clone(!0);(b=a.getBogus())&&b.remove();return a.getText().length?!1:!0}if(l=l||h(b)){l=f(l);var q=l.document,p=l.checkStartOfBlock(),u=l.checkEndOfBlock(),y=b.elementPath(l.startContainer),v=y.block,A=c==CKEDITOR.ENTER_DIV?"div":"p",z;if(v&&p&&u){p=v.getParent();if(p.is("li")&&1<p.getChildCount()){q=
new CKEDITOR.dom.element("li");z=b.createRange();q.insertAfter(p);v.remove();z.setStart(q,0);b.getSelection().selectRanges([z]);return}if(v.is("li")||v.getParent().is("li")){v.is("li")||(v=v.getParent(),p=v.getParent());z=p.getParent();l=!v.hasPrevious();var w=!v.hasNext();m=b.getSelection();var A=m.createBookmarks(),x=v.getDirection(1),u=v.getAttribute("class"),B=v.getAttribute("style"),C=z.getDirection(1)!=x;b=b.enterMode!=CKEDITOR.ENTER_BR||C||B||u;if(z.is("li"))l||w?(l&&w&&p.remove(),v[w?"insertAfter":
"insertBefore"](z)):v.breakParent(z);else{if(b)if(y.block.is("li")?(z=q.createElement(c==CKEDITOR.ENTER_P?"p":"div"),C&&z.setAttribute("dir",x),B&&z.setAttribute("style",B),u&&z.setAttribute("class",u),v.moveChildren(z)):z=y.block,l||w)z[l?"insertBefore":"insertAfter"](p);else v.breakParent(p),z.insertAfter(p);else if(v.appendBogus(!0),l||w)for(;q=v[l?"getFirst":"getLast"]();)q[l?"insertBefore":"insertAfter"](p);else for(v.breakParent(p);q=v.getLast();)q.insertAfter(p);v.remove()}m.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();l.moveToElementEditStart(v);l.select();return}}else if(v&&v.is("pre")&&!u){k(b,c,l,m);return}if(B=l.splitBlock(A)){b=B.previousBlock;v=B.nextBlock;p=B.wasStartOfBlock;u=B.wasEndOfBlock;v?(w=v.getParent(),w.is("li")&&(v.breakParent(w),v.move(v.getNext(),1))):b&&(w=b.getParent())&&
w.is("li")&&(b.breakParent(w),w=b.getNext(),l.moveToElementEditStart(w),b.move(b.getPrevious()));if(p||u)if(t(c))l.moveToElementEditStart(l.getTouchedStartNode());else{if(b){if(b.is("li")||!d.test(b.getName())&&!b.is("pre"))z=b.clone()}else v&&(z=v.clone());z?m&&!z.is("li")&&z.renameNode(A):w&&w.is("li")?z=w:(z=q.createElement(A),b&&(x=b.getDirection())&&z.setAttribute("dir",x));if(q=B.elementPath)for(c=0,m=q.elements.length;c<m;c++){A=q.elements[c];if(A.equals(q.block)||A.equals(q.blockLimit))break;
CKEDITOR.dtd.$removeEmpty[A.getName()]&&(A=A.clone(),z.moveChildren(A),z.append(A))}z.appendBogus();z.getParent()||l.insertNode(z);z.is("li")&&z.removeAttribute("value");!CKEDITOR.env.ie||!p||u&&b.getChildCount()||(l.moveToElementEditStart(u?b:z),l.select());l.moveToElementEditStart(p&&!u?v:z)}else v.is("li")&&(z=l.clone(),z.selectNodeContents(v),z=new CKEDITOR.dom.walker(z),z.evaluator=function(b){return!(g(b)||a(b)||b.type==CKEDITOR.NODE_ELEMENT&&b.getName()in CKEDITOR.dtd.$inline&&!(b.getName()in
CKEDITOR.dtd.$empty))},(w=z.next())&&w.type==CKEDITOR.NODE_ELEMENT&&w.is("ul","ol")&&(CKEDITOR.env.needsBrFiller?q.createElement("br"):q.createText(" ")).insertBefore(w)),v&&l.moveToElementEditStart(v);l.select();l.scrollIntoView()}}},enterBr:function(a,b,g,f){if(g=g||h(a)){var k=g.document,m=g.checkEndOfBlock(),p=new CKEDITOR.dom.elementPath(a.getSelection().getStartElement()),u=p.block,y=u&&p.block.getName();f||"li"!=y?(!f&&m&&d.test(y)?(m=u.getDirection())?(k=k.createElement("div"),k.setAttribute("dir",
m),k.insertAfter(u),g.setStart(k,0)):(k.createElement("br").insertAfter(u),CKEDITOR.env.gecko&&k.createText("").insertAfter(u),g.setStartAt(u.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(a="pre"==y&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?k.createText("\r"):k.createElement("br"),g.deleteContents(),g.insertNode(a),CKEDITOR.env.needsBrFiller?(k.createText("﻿").insertAfter(a),m&&(u||p.blockLimit).appendBogus(),a.getNext().$.nodeValue="",g.setStartAt(a.getNext(),
CKEDITOR.POSITION_AFTER_START)):g.setStartAt(a,CKEDITOR.POSITION_AFTER_END)),g.collapse(!0),g.select(),g.scrollIntoView()):l(a,b,g,f)}}};m=CKEDITOR.plugins.enterkey;k=m.enterBr;l=m.enterBlock;d=/^h[1-6]$/})();(function(){function b(b,f){var a={},g=[],m={nbsp:" ",shy:"­",gt:"\x3e",lt:"\x3c",amp:"\x26",apos:"'",quot:'"'};b=b.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(b,d){var h=f?"\x26"+d+";":m[d];a[h]=f?m[d]:"\x26"+d+";";g.push(h);return""});b=b.replace(/,$/,"");if(!f&&b){b=b.split(",");
var k=document.createElement("div"),l;k.innerHTML="\x26"+b.join(";\x26")+";";l=k.innerHTML;k=null;for(k=0;k<l.length;k++){var d=l.charAt(k);a[d]="\x26"+b[k]+";";g.push(d)}}a.regex=g.join(f?"|":"");return a}CKEDITOR.plugins.add("entities",{afterInit:function(h){function f(a){return d[a]}function a(a){return"force"!=g.entities_processNumerical&&k[a]?k[a]:"\x26#"+a.charCodeAt(0)+";"}var g=h.config;if(h=(h=h.dataProcessor)&&h.htmlFilter){var m=[];!1!==g.basicEntities&&m.push("nbsp,gt,lt,amp");g.entities&&
(m.length&&m.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro"),
g.entities_latin&&m.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml"),g.entities_greek&&m.push("Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv"),
g.entities_additional&&m.push(g.entities_additional));var k=b(m.join(",")),l=k.regex?"["+k.regex+"]":"a^";delete k.regex;g.entities&&g.entities_processNumerical&&(l="[^ -~]|"+l);var l=new RegExp(l,"g"),d=b("nbsp,gt,lt,amp,shy",!0),e=new RegExp(d.regex,"g");h.addRules({text:function(b){return b.replace(e,f).replace(l,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";CKEDITOR.plugins.add("popup");CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(b,h,f,a){h=h||"80%";f=f||"70%";"string"==typeof h&&1<h.length&&"%"==h.substr(h.length-1,1)&&(h=parseInt(window.screen.width*parseInt(h,10)/100,10));"string"==typeof f&&1<f.length&&"%"==f.substr(f.length-1,1)&&(f=parseInt(window.screen.height*parseInt(f,10)/100,10));640>h&&(h=640);420>f&&(f=420);var g=parseInt((window.screen.height-f)/2,10),m=parseInt((window.screen.width-
h)/2,10);a=(a||"location\x3dno,menubar\x3dno,toolbar\x3dno,dependent\x3dyes,minimizable\x3dno,modal\x3dyes,alwaysRaised\x3dyes,resizable\x3dyes,scrollbars\x3dyes")+",width\x3d"+h+",height\x3d"+f+",top\x3d"+g+",left\x3d"+m;var k=window.open("",null,a,!0);if(!k)return!1;try{-1==navigator.userAgent.toLowerCase().indexOf(" chrome/")&&(k.moveTo(m,g),k.resizeTo(h,f)),k.focus(),k.location.href=b}catch(l){window.open(b,null,a,!0)}return!0}});"use strict";(function(){function b(a){this.editor=a;this.loaders=
[]}function h(a,b,h){var l=a.config.fileTools_defaultFileName;this.editor=a;this.lang=a.lang;"string"===typeof b?(this.data=b,this.file=f(this.data),this.loaded=this.total=this.file.size):(this.data=null,this.file=b,this.total=this.file.size,this.loaded=0);h?this.fileName=h:this.file.name?this.fileName=this.file.name:(a=this.file.type.split("/"),l&&(a[0]=l),this.fileName=a.join("."));this.uploaded=0;this.responseData=this.uploadTotal=null;this.status="created";this.abort=function(){this.changeStatus("abort")}}
function f(b){var f=b.match(a)[1];b=b.replace(a,"");b=atob(b);var h=[],l,d,e,c;for(l=0;l<b.length;l+=512){d=b.slice(l,l+512);e=Array(d.length);for(c=0;c<d.length;c++)e[c]=d.charCodeAt(c);d=new Uint8Array(e);h.push(d)}return new Blob(h,{type:f})}CKEDITOR.plugins.add("filetools",{beforeInit:function(a){a.uploadRepository=new b(a);a.on("fileUploadRequest",function(a){var b=a.data.fileLoader;b.xhr.open("POST",b.uploadUrl,!0);a.data.requestData.upload={file:b.file,name:b.fileName}},null,null,5);a.on("fileUploadRequest",
function(b){var f=b.data.fileLoader,h=new FormData;b=b.data.requestData;var d=a.config.fileTools_requestHeaders,e,c;for(c in b){var n=b[c];"object"===typeof n&&n.file?h.append(c,n.file,n.name):h.append(c,n)}h.append("ckCsrfToken",CKEDITOR.tools.getCsrfToken());if(d)for(e in d)f.xhr.setRequestHeader(e,d[e]);f.xhr.send(h)},null,null,999);a.on("fileUploadResponse",function(a){var b=a.data.fileLoader,g=b.xhr,d=a.data;try{var e=JSON.parse(g.responseText);e.error&&e.error.message&&(d.message=e.error.message);
if(e.uploaded)for(var c in e)d[c]=e[c];else a.cancel()}catch(f){d.message=b.lang.filetools.responseError,CKEDITOR.warn("filetools-response-error",{responseText:g.responseText}),a.cancel()}},null,null,999)}});b.prototype={create:function(a,b,f){f=f||h;var l=this.loaders.length;a=new f(this.editor,a,b);a.id=l;this.loaders[l]=a;this.fire("instanceCreated",a);return a},isFinished:function(){for(var a=0;a<this.loaders.length;++a)if(!this.loaders[a].isFinished())return!1;return!0}};h.prototype={loadAndUpload:function(a,
b){var f=this;this.once("loaded",function(h){h.cancel();f.once("update",function(a){a.cancel()},null,null,0);f.upload(a,b)},null,null,0);this.load()},load:function(){var a=this,b=this.reader=new FileReader;a.changeStatus("loading");this.abort=function(){a.reader.abort()};b.onabort=function(){a.changeStatus("abort")};b.onerror=function(){a.message=a.lang.filetools.loadError;a.changeStatus("error")};b.onprogress=function(b){a.loaded=b.loaded;a.update()};b.onload=function(){a.loaded=a.total;a.data=b.result;
a.changeStatus("loaded")};b.readAsDataURL(this.file)},upload:function(a,b){var f=b||{};a?(this.uploadUrl=a,this.xhr=new XMLHttpRequest,this.attachRequestListeners(),this.editor.fire("fileUploadRequest",{fileLoader:this,requestData:f})&&this.changeStatus("uploading")):(this.message=this.lang.filetools.noUrlError,this.changeStatus("error"))},attachRequestListeners:function(){function a(){"error"!=f.status&&(f.message=f.lang.filetools.networkError,f.changeStatus("error"))}function b(){"abort"!=f.status&&
f.changeStatus("abort")}var f=this,h=this.xhr;f.abort=function(){h.abort();b()};h.onerror=a;h.onabort=b;h.upload?(h.upload.onprogress=function(a){a.lengthComputable&&(f.uploadTotal||(f.uploadTotal=a.total),f.uploaded=a.loaded,f.update())},h.upload.onerror=a,h.upload.onabort=b):(f.uploadTotal=f.total,f.update());h.onload=function(){f.update();if("abort"!=f.status)if(f.uploaded=f.uploadTotal,200>h.status||299<h.status)f.message=f.lang.filetools["httpError"+h.status],f.message||(f.message=f.lang.filetools.httpError.replace("%1",
h.status)),f.changeStatus("error");else{for(var a={fileLoader:f},b=["message","fileName","url"],c=f.editor.fire("fileUploadResponse",a),g=0;g<b.length;g++){var m=b[g];"string"===typeof a[m]&&(f[m]=a[m])}f.responseData=a;delete f.responseData.fileLoader;!1===c?f.changeStatus("error"):f.changeStatus("uploaded")}}},changeStatus:function(a){this.status=a;if("error"==a||"abort"==a||"loaded"==a||"uploaded"==a)this.abort=function(){};this.fire(a);this.update()},update:function(){this.fire("update")},isFinished:function(){return!!this.status.match(/^(?:loaded|uploaded|error|abort)$/)}};
CKEDITOR.event.implementOn(b.prototype);CKEDITOR.event.implementOn(h.prototype);var a=/^data:(\S*?);base64,/;CKEDITOR.fileTools||(CKEDITOR.fileTools={});CKEDITOR.tools.extend(CKEDITOR.fileTools,{uploadRepository:b,fileLoader:h,getUploadUrl:function(a,b){var f=CKEDITOR.tools.capitalize;return b&&a[b+"UploadUrl"]?a[b+"UploadUrl"]:a.uploadUrl?a.uploadUrl:b&&a["filebrowser"+f(b,1)+"UploadUrl"]?a["filebrowser"+f(b,1)+"UploadUrl"]+"\x26responseType\x3djson":a.filebrowserUploadUrl?a.filebrowserUploadUrl+
"\x26responseType\x3djson":null},isTypeSupported:function(a,b){return!!a.type.match(b)},isFileUploadSupported:"function"===typeof FileReader&&"function"===typeof(new FileReader).readAsDataURL&&"function"===typeof FormData&&"function"===typeof(new FormData).append&&"function"===typeof XMLHttpRequest&&"function"===typeof Blob})})();(function(){function b(a,b){var d=[];if(b)for(var c in b)d.push(c+"\x3d"+encodeURIComponent(b[c]));else return a;return a+(-1!=a.indexOf("?")?"\x26":"?")+d.join("\x26")}
function h(a){return!a.match(/command=QuickUpload/)||a.match(/(\?|&)responseType=json/)?a:b(a,{responseType:"json"})}function f(a){a+="";return a.charAt(0).toUpperCase()+a.substr(1)}function a(){var a=this.getDialog(),d=a.getParentEditor();d._.filebrowserSe=this;var c=d.config["filebrowser"+f(a.getName())+"WindowWidth"]||d.config.filebrowserWindowWidth||"80%",a=d.config["filebrowser"+f(a.getName())+"WindowHeight"]||d.config.filebrowserWindowHeight||"70%",e=this.filebrowser.params||{};e.CKEditor=d.name;
e.CKEditorFuncNum=d._.filebrowserFn;e.langCode||(e.langCode=d.langCode);e=b(this.filebrowser.url,e);d.popup(e,c,a,d.config.filebrowserWindowFeatures||d.config.fileBrowserWindowFeatures)}function g(a){var b=new CKEDITOR.dom.element(a.$.form);b&&((a=b.$.elements.ckCsrfToken)?a=new CKEDITOR.dom.element(a):(a=new CKEDITOR.dom.element("input"),a.setAttributes({name:"ckCsrfToken",type:"hidden"}),b.append(a)),a.setAttribute("value",CKEDITOR.tools.getCsrfToken()))}function m(){var a=this.getDialog();a.getParentEditor()._.filebrowserSe=
this;return a.getContentElement(this["for"][0],this["for"][1]).getInputElement().$.value&&a.getContentElement(this["for"][0],this["for"][1]).getAction()?!0:!1}function k(a,d,c){var e=c.params||{};e.CKEditor=a.name;e.CKEditorFuncNum=a._.filebrowserFn;e.langCode||(e.langCode=a.langCode);d.action=b(c.url,e);d.filebrowser=c}function l(b,e,t,q){if(q&&q.length)for(var p,u=q.length;u--;)if(p=q[u],"hbox"!=p.type&&"vbox"!=p.type&&"fieldset"!=p.type||l(b,e,t,p.children),p.filebrowser)if("string"==typeof p.filebrowser&&
(p.filebrowser={action:"fileButton"==p.type?"QuickUpload":"Browse",target:p.filebrowser}),"Browse"==p.filebrowser.action){var y=p.filebrowser.url;void 0===y&&(y=b.config["filebrowser"+f(e)+"BrowseUrl"],void 0===y&&(y=b.config.filebrowserBrowseUrl));y&&(p.onClick=a,p.filebrowser.url=y,p.hidden=!1)}else if("QuickUpload"==p.filebrowser.action&&p["for"]&&(y=p.filebrowser.url,void 0===y&&(y=b.config["filebrowser"+f(e)+"UploadUrl"],void 0===y&&(y=b.config.filebrowserUploadUrl)),y)){var v=p.onClick;p.onClick=
function(a){var e=a.sender,f=e.getDialog().getContentElement(this["for"][0],this["for"][1]).getInputElement(),k=CKEDITOR.fileTools&&CKEDITOR.fileTools.isFileUploadSupported;if(v&&!1===v.call(e,a))return!1;if(m.call(e,a)){if("form"!==b.config.filebrowserUploadMethod&&k)return a=b.uploadRepository.create(f.$.files[0]),a.on("uploaded",function(a){var b=a.sender.responseData;c.call(a.sender.editor,b.url,b.message)}),a.on("error",d.bind(this)),a.on("abort",d.bind(this)),a.loadAndUpload(h(y)),"xhr";g(f);
return!0}return!1};p.filebrowser.url=y;p.hidden=!1;k(b,t.getContents(p["for"][0]).get(p["for"][1]),p.filebrowser)}}function d(a){var b={};try{b=JSON.parse(a.sender.xhr.response)||{}}catch(d){}this.enable();alert(b.error?b.error.message:a.sender.message)}function e(a,b,d){if(-1!==d.indexOf(";")){d=d.split(";");for(var c=0;c<d.length;c++)if(e(a,b,d[c]))return!0;return!1}return(a=a.getContents(b).get(d).filebrowser)&&a.url}function c(a,b){var d=this._.filebrowserSe.getDialog(),c=this._.filebrowserSe["for"],
e=this._.filebrowserSe.filebrowser.onSelect;c&&d.getContentElement(c[0],c[1]).reset();if("function"!=typeof b||!1!==b.call(this._.filebrowserSe))if(!e||!1!==e.call(this._.filebrowserSe,a,b))if("string"==typeof b&&b&&alert(b),a&&(c=this._.filebrowserSe,d=c.getDialog(),c=c.filebrowser.target||null))if(c=c.split(":"),e=d.getContentElement(c[0],c[1]))e.setValue(a),d.selectPage(c[0])}CKEDITOR.plugins.add("filebrowser",{requires:"popup,filetools",init:function(a){a._.filebrowserFn=CKEDITOR.tools.addFunction(c,
a);a.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}});CKEDITOR.on("dialogDefinition",function(a){if(a.editor.plugins.filebrowser)for(var b=a.data.definition,d,c=0;c<b.contents.length;++c)if(d=b.contents[c])l(a.editor,a.data.name,b,d.elements),d.hidden&&d.filebrowser&&(d.hidden=!e(b,d.id,d.filebrowser))})})();CKEDITOR.plugins.add("find",{requires:"dialog",init:function(b){var h=b.addCommand("find",new CKEDITOR.dialogCommand("find")),f=b.addCommand("replace",new CKEDITOR.dialogCommand("find",
{tabId:"replace"}));h.canUndo=!1;h.readOnly=1;f.canUndo=!1;b.ui.addButton&&(b.ui.addButton("Find",{label:b.lang.find.find,command:"find",toolbar:"find,10"}),b.ui.addButton("Replace",{label:b.lang.find.replace,command:"replace",toolbar:"find,20"}));CKEDITOR.dialog.add("find",this.path+"dialogs/find.js")}});CKEDITOR.config.find_highlight={element:"span",styles:{"background-color":"#004",color:"#fff"}};(function(){function b(b,f){var g=a.exec(b),d=a.exec(f);if(g){if(!g[2]&&"px"==d[2])return d[1];if("px"==
g[2]&&!d[2])return d[1]+"px"}return f}var h=CKEDITOR.htmlParser.cssStyle,f=CKEDITOR.tools.cssLength,a=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i,g={elements:{$:function(a){var f=a.attributes;if((f=(f=(f=f&&f["data-cke-realelement"])&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(f)))&&f.children[0])&&a.attributes["data-cke-resizable"]){var g=(new h(a)).rules;a=f.attributes;var d=g.width,g=g.height;d&&(a.width=b(a.width,d));g&&(a.height=b(a.height,g))}return f}}};CKEDITOR.plugins.add("fakeobjects",
{init:function(a){a.filter.allow("img[!data-cke-realelement,src,alt,title](*){*}","fakeobjects")},afterInit:function(a){(a=(a=a.dataProcessor)&&a.htmlFilter)&&a.addRules(g,{applyToAll:!0})}});CKEDITOR.editor.prototype.createFakeElement=function(a,b,g,d){var e=this.lang.fakeobjects,e=e[g]||e.unknown;b={"class":b,"data-cke-realelement":encodeURIComponent(a.getOuterHtml()),"data-cke-real-node-type":a.type,alt:e,title:e,align:a.getAttribute("align")||""};CKEDITOR.env.hc||(b.src=CKEDITOR.tools.transparentImageData);
g&&(b["data-cke-real-element-type"]=g);d&&(b["data-cke-resizable"]=d,g=new h,d=a.getAttribute("width"),a=a.getAttribute("height"),d&&(g.rules.width=f(d)),a&&(g.rules.height=f(a)),g.populate(b));return this.document.createElement("img",{attributes:b})};CKEDITOR.editor.prototype.createFakeParserElement=function(a,b,g,d){var e=this.lang.fakeobjects,e=e[g]||e.unknown,c;c=new CKEDITOR.htmlParser.basicWriter;a.writeHtml(c);c=c.getHtml();b={"class":b,"data-cke-realelement":encodeURIComponent(c),"data-cke-real-node-type":a.type,
alt:e,title:e,align:a.attributes.align||""};CKEDITOR.env.hc||(b.src=CKEDITOR.tools.transparentImageData);g&&(b["data-cke-real-element-type"]=g);d&&(b["data-cke-resizable"]=d,d=a.attributes,a=new h,g=d.width,d=d.height,void 0!==g&&(a.rules.width=f(g)),void 0!==d&&(a.rules.height=f(d)),a.populate(b));return new CKEDITOR.htmlParser.element("img",b)};CKEDITOR.editor.prototype.restoreRealElement=function(a){if(a.data("cke-real-node-type")!=CKEDITOR.NODE_ELEMENT)return null;var f=CKEDITOR.dom.element.createFromHtml(decodeURIComponent(a.data("cke-realelement")),
this.document);if(a.data("cke-resizable")){var g=a.getStyle("width");a=a.getStyle("height");g&&f.setAttribute("width",b(f.getAttribute("width"),g));a&&f.setAttribute("height",b(f.getAttribute("height"),a))}return f}})();(function(){function b(a){a=a.attributes;return"application/x-shockwave-flash"==a.type||f.test(a.src||"")}function h(a,b){return a.createFakeParserElement(b,"cke_flash","flash",!0)}var f=/\.swf(?:$|\?)/i;CKEDITOR.plugins.add("flash",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_flash{background-image: url("+
CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(a){var b="object[classid,codebase,height,hspace,vspace,width];param[name,value];embed[height,hspace,pluginspage,src,type,vspace,width]";CKEDITOR.dialog.isTabEnabled(a,"flash","properties")&&(b+=";object[align]; embed[allowscriptaccess,quality,scale,wmode]");CKEDITOR.dialog.isTabEnabled(a,"flash","advanced")&&(b+=
";object[id]{*}; embed[bgcolor]{*}(*)");a.addCommand("flash",new CKEDITOR.dialogCommand("flash",{allowedContent:b,requiredContent:"embed"}));a.ui.addButton&&a.ui.addButton("Flash",{label:a.lang.common.flash,command:"flash",toolbar:"insert,20"});CKEDITOR.dialog.add("flash",this.path+"dialogs/flash.js");a.addMenuItems&&a.addMenuItems({flash:{label:a.lang.flash.properties,command:"flash",group:"flash"}});a.on("doubleclick",function(a){var b=a.data.element;b.is("img")&&"flash"==b.data("cke-real-element-type")&&
(a.data.dialog="flash")});a.contextMenu&&a.contextMenu.addListener(function(a){if(a&&a.is("img")&&!a.isReadOnly()&&"flash"==a.data("cke-real-element-type"))return{flash:CKEDITOR.TRISTATE_OFF}})},afterInit:function(a){var f=a.dataProcessor;(f=f&&f.dataFilter)&&f.addRules({elements:{"cke:object":function(f){var g=f.attributes;if(!(g.classid&&String(g.classid).toLowerCase()||b(f))){for(g=0;g<f.children.length;g++)if("cke:embed"==f.children[g].name){if(!b(f.children[g]))break;return h(a,f)}return null}return h(a,
f)},"cke:embed":function(f){return b(f)?h(a,f):null}}},5)}})})();CKEDITOR.tools.extend(CKEDITOR.config,{flashEmbedTagOnly:!1,flashAddEmbedTag:!0,flashConvertOnEdit:!1});(function(){function b(a){var b=a.config,m=a.fire("uiSpace",{space:"top",html:""}).html,k=function(){function c(a,b,e){d.setStyle(b,f(e));d.setStyle("position",a)}function e(a){var b=m.getDocumentPosition();switch(a){case "top":c("absolute","top",b.y-v-w);break;case "pin":c("fixed","top",B);break;case "bottom":c("absolute","top",b.y+
(u.height||u.bottom-u.top)+w)}l=a}var l,m,p,u,y,v,A,z=b.floatSpaceDockedOffsetX||0,w=b.floatSpaceDockedOffsetY||0,x=b.floatSpacePinnedOffsetX||0,B=b.floatSpacePinnedOffsetY||0;return function(c){if(m=a.editable()){var n=c&&"focus"==c.name;n&&d.show();a.fire("floatingSpaceLayout",{show:n});d.removeStyle("left");d.removeStyle("right");p=d.getClientRect();u=m.getClientRect();y=h.getViewPaneSize();v=p.height;A="pageXOffset"in h.$?h.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft;l?(v+w<=
u.top?e("top"):v+w>y.height-u.bottom?e("pin"):e("bottom"),c=y.width/2,c=b.floatSpacePreferRight?"right":0<u.left&&u.right<y.width&&u.width>p.width?"rtl"==b.contentsLangDirection?"right":"left":c-u.left>u.right-c?"left":"right",p.width>y.width?(c="left",n=0):(n="left"==c?0<u.left?u.left:0:u.right<y.width?y.width-u.right:0,n+p.width>y.width&&(c="left"==c?"right":"left",n=0)),d.setStyle(c,f(("pin"==l?x:z)+n+("pin"==l?0:"left"==c?A:-A)))):(l="pin",e("pin"),k(c))}}}();if(m){var l=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'),d=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(l.output({content:m,
id:a.id,langDir:a.lang.dir,langCode:a.langCode,name:a.name,style:"display:none;z-index:"+(b.baseFloatZIndex-1),topId:a.ui.spaceId("top"),voiceLabel:a.title}))),e=CKEDITOR.tools.eventsBuffer(500,k),c=CKEDITOR.tools.eventsBuffer(100,k);d.unselectable();d.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});a.on("focus",function(b){k(b);a.on("change",e.input);h.on("scroll",c.input);h.on("resize",c.input)});a.on("blur",function(){d.hide();a.removeListener("change",
e.input);h.removeListener("scroll",c.input);h.removeListener("resize",c.input)});a.on("destroy",function(){h.removeListener("scroll",c.input);h.removeListener("resize",c.input);d.clearCustomData();d.remove()});a.focusManager.hasFocus&&d.show();a.focusManager.add(d,1)}}var h=CKEDITOR.document.getWindow(),f=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(a){a.on("loaded",function(){b(this)},null,null,20)}})})();CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var b=
CKEDITOR.addTemplate("panel-list",'\x3cul role\x3d"presentation" class\x3d"cke_panel_list"\x3e{items}\x3c/ul\x3e'),h=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}" draggable\x3d"false" ondragstart\x3d"return false;" href\x3d"javascript:void(\'{val}\')"  onclick\x3d"{onclick}CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role\x3d"option"\x3e{text}\x3c/a\x3e\x3c/li\x3e'),
f=CKEDITOR.addTemplate("panel-list-group",'\x3ch1 id\x3d"{id}" draggable\x3d"false" ondragstart\x3d"return false;" 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 f=b.attributes||(b.attributes={});(this.multiSelect=!!b.multiSelect)&&
(f["aria-multiselectable"]=!0);!f.role&&(f.role="listbox");this.base.apply(this,arguments);this.element.setAttribute("role",f.role);f=this.keys;f[40]="next";f[9]="next";f[38]="prev";f[CKEDITOR.SHIFT+9]="prev";f[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(f[13]="mouseup");this._.pendingHtml=[];this._.pendingList=[];this._.items={};this._.groups={}},_:{close:function(){if(this._.started){var a=b.output({items:this._.pendingList.join("")});this._.pendingList=[];this._.pendingHtml.push(a);
delete this._.started}},getClick:function(){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,f,k){var l=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0);this._.items[b]=l;var d;d=CKEDITOR.tools.htmlEncodeAttr(b).replace(a,"\\'");b={id:l,val:d,onclick:CKEDITOR.env.ie?'return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26':
"",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(k||b),text:f||b};this._.pendingList.push(h.output(b))},startGroup:function(a){this._.close();var b=CKEDITOR.tools.getNextId();this._.groups[a]=b;this._.pendingHtml.push(f.output({id:b,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,f=this.element.getDocument(),h;for(h in a)f.getById(a[h]).setStyle("display","");for(var d in b)a=f.getById(b[d]),h=a.getNext(),a.setStyle("display",""),h&&"ul"==h.getName()&&h.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 f=b.getById(a);f.removeClass("cke_selected");b.getById(a+"_option").removeAttribute("aria-selected");
this.onUnmark&&this.onUnmark(f)},unmarkAll:function(){var a=this._.items,b=this.element.getDocument(),f;for(f in a){var h=a[f];b.getById(h).removeClass("cke_selected");b.getById(h+"_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"),f,h=-1;if(a)for(f=this.element.getDocument().getById(this._.items[a]).getFirst();a=
b.getItem(++h);){if(a.equals(f)){this._.focusIndex=h;break}}else this.element.focus();f&&setTimeout(function(){f.focus()},0)}}})}});CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(b){b.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}});(function(){var b='\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"listbox"',h="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(b+=' onkeypress\x3d"return false;"');CKEDITOR.env.gecko&&(b+=' onblur\x3d"this.style.cssText \x3d this.style.cssText;"');CKEDITOR.env.ie&&(h='return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26');var b=b+(' onkeydown\x3d"return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus\x3d"return CKEDITOR.tools.callFunction({focusFn},event);" onclick\x3d"'+
h+'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",b);CKEDITOR.UI_RICHCOMBO="richcombo";CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(a){CKEDITOR.tools.extend(this,
a,{canGroup:!1,title:a.label,modes:{wysiwyg:1},editorFocus:1});a=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=a.parent&&a.parent.getDocument()||CKEDITOR.document;a.className="cke_combopanel";a.block={multiSelect:a.multiSelect,attributes:a.attributes};a.toolbarRelated=!0;this._={panelDefinition:a,items:{},listeners:[]}},proto:{renderHtml:function(a){var b=[];this.render(a,b);return b.join("")},render:function(a,b){function h(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var b=
this.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;a.readOnly&&!this.readOnly&&(b=CKEDITOR.TRISTATE_DISABLED);this.setState(b);this.setValue("");b!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var k=CKEDITOR.env,l,d,e="cke_"+this.id,c=CKEDITOR.tools.addFunction(function(b){d&&(a.unlockSelection(1),d=0);l.execute(b)},this),n=this;l={id:e,combo:this,focus:function(){CKEDITOR.document.getById(e).getChild(1).focus()},execute:function(b){var d=n._;if(d.state!=CKEDITOR.TRISTATE_DISABLED)if(n.createPanel(a),
d.on)d.panel.hide();else{n.commit();var c=n.getValue();c?d.list.mark(c):d.list.unmarkAll();d.panel.showBlock(n.id,new CKEDITOR.dom.element(b),4)}},clickFn:c};this._.listeners.push(a.on("activeFilterChange",h,this));this._.listeners.push(a.on("mode",h,this));this._.listeners.push(a.on("selectionChange",h,this));!this.readOnly&&this._.listeners.push(a.on("readOnly",h,this));var r=CKEDITOR.tools.addFunction(function(a,b){a=new CKEDITOR.dom.event(a);var d=a.getKeystroke();switch(d){case 13:case 32:case 40:CKEDITOR.tools.callFunction(c,
b);break;default:l.onkey(l,d)}a.preventDefault()}),t=CKEDITOR.tools.addFunction(function(){l.onfocus&&l.onfocus()});d=0;l.keyDownFn=r;k={id:e,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:k.gecko&&!k.hc?"":(this.title||"").replace("'",""),keydownFn:r,focusFn:t,clickFn:c};f.output(k,b);if(this.onRender)this.onRender();return l},createPanel:function(a){if(!this._.panel){var b=this._.panelDefinition,f=this._.panelDefinition.block,h=b.parent||CKEDITOR.document.getBody(),
l="cke_combopanel__"+this.name,d=new CKEDITOR.ui.floatPanel(a,h,b),b=d.addListBlock(this.id,f),e=this;d.onShow=function(){this.element.addClass(l);e.setState(CKEDITOR.TRISTATE_ON);e._.on=1;e.editorFocus&&!a.focusManager.hasFocus&&a.focus();if(e.onOpen)e.onOpen()};d.onHide=function(b){this.element.removeClass(l);e.setState(e.modes&&e.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);e._.on=0;if(!b&&e.onClose)e.onClose()};d.onEscape=function(){d.hide(1)};b.onClick=function(a,b){e.onClick&&
e.onClick.call(e,a,b);d.hide()};this._.panel=d;this._.list=b;d.getBlock(this.id).onHide=function(){e._.on=0;e.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,b){this._.value=a;var f=this.document.getById("cke_"+this.id+"_text");f&&(a||b?f.removeClass("cke_combo_inlinelabel"):(b=this.label,f.addClass("cke_combo_inlinelabel")),f.setText("undefined"!=typeof b?b:a))},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(a){this._.list.mark(a)},
hideItem:function(a){this._.list.hideItem(a)},hideGroup:function(a){this._.list.hideGroup(a)},showAll:function(){this._.list.showAll()},add:function(a,b,f){this._.items[a]=f||a;this._.list.add(a,b,f)},startGroup:function(a){this._.list.startGroup(a)},commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this));this._.committed=1},setState:function(a){if(this._.state!=a){var b=this.document.getById("cke_"+this.id);b.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED?
b.setAttribute("aria-disabled",!0):b.removeAttribute("aria-disabled");this._.state=a}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){this._.state!=CKEDITOR.TRISTATE_DISABLED&&(this._.lastState=this._.state,this.setState(CKEDITOR.TRISTATE_DISABLED))},destroy:function(){CKEDITOR.tools.array.forEach(this._.listeners,function(a){a.removeListener()});this._.listeners=[]},select:function(a){if(!CKEDITOR.tools.isEmpty(this._.items))for(var b in this._.items)if(a({value:b,
text:this._.items[b]})){this.setValue(b);break}}},statics:{handler:{create:function(a){return new CKEDITOR.ui.richCombo(a)}}}});CKEDITOR.ui.prototype.addRichCombo=function(a,b){this.add(a,CKEDITOR.UI_RICHCOMBO,b)}})();(function(){function b(b,a,g,m,k,l,d,e){var c=b.config,n=new CKEDITOR.style(d),r=k.split(";");k=[];for(var t={},q=0;q<r.length;q++){var p=r[q];if(p){var p=p.split("/"),u={},y=r[q]=p[0];u[g]=k[q]=p[1]||y;t[y]=new CKEDITOR.style(d,u);t[y]._.definition.name=y}else r.splice(q--,1)}b.ui.addRichCombo(a,
{label:m.label,title:m.panelTitle,toolbar:"styles,"+e,defaultValue:"cke-default",allowedContent:n,requiredContent:n,contentTransformations:"span"===d.element?[[{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)}}]]:null,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(c.contentsCss),multiSelect:!1,attributes:{"aria-label":m.panelTitle}},init:function(){var a;a="("+b.lang.common.optionDefault+")";this.startGroup(m.panelTitle);this.add(this.defaultValue,a,a);for(var d=0;d<r.length;d++)a=r[d],this.add(a,t[a].buildPreview(),a)},onClick:function(a){b.focus();b.fire("saveSnapshot");
var d=this.getValue(),c=t[a],e,g,k,l,m;if(d&&a!=d)if(e=t[d],d=b.getSelection().getRanges()[0],d.collapsed){if(g=b.elementPath(),k=g.contains(function(a){return e.checkElementRemovable(a)})){l=d.checkBoundaryOfElement(k,CKEDITOR.START);m=d.checkBoundaryOfElement(k,CKEDITOR.END);if(l&&m){for(l=d.createBookmark();g=k.getFirst();)g.insertBefore(k);k.remove();d.moveToBookmark(l)}else l||m?d.moveToPosition(k,l?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_END):(d.splitElement(k),d.moveToPosition(k,
CKEDITOR.POSITION_AFTER_END)),h(d,g.elements.slice(),k);b.getSelection().selectRanges([d])}}else b.removeStyle(e);a===this.defaultValue?e&&b.removeStyle(e):b.applyStyle(c);b.fire("saveSnapshot")},onRender:function(){b.on("selectionChange",function(a){var d=this.getValue();a=a.data.path.elements;for(var c=0,e;c<a.length;c++){e=a[c];for(var g in t)if(t[g].checkElementMatch(e,!0,b)){g!=d&&this.setValue(g);return}}this.setValue("",l)},this)},refresh:function(){b.activeFilter.check(n)||this.setState(CKEDITOR.TRISTATE_DISABLED)}})}
function h(b,a,g){var m=a.pop();if(m){if(g)return h(b,a,m.equals(g)?null:g);g=m.clone();b.insertNode(g);b.moveToPosition(g,CKEDITOR.POSITION_AFTER_START);h(b,a)}}CKEDITOR.plugins.add("font",{requires:"richcombo",init:function(f){var a=f.config;b(f,"Font","family",f.lang.font,a.font_names,a.font_defaultLabel,a.font_style,30);b(f,"FontSize","size",f.lang.font.fontSize,a.fontSize_sizes,a.fontSize_defaultLabel,a.fontSize_style,40)}})})();CKEDITOR.config.font_names="Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif";
CKEDITOR.config.font_defaultLabel="";CKEDITOR.config.font_style={element:"span",styles:{"font-family":"#(family)"},overrides:[{element:"font",attributes:{face:null}}]};CKEDITOR.config.fontSize_sizes="8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px";CKEDITOR.config.fontSize_defaultLabel="";CKEDITOR.config.fontSize_style={element:"span",styles:{"font-size":"#(size)"},overrides:[{element:"font",attributes:{size:null}}]};CKEDITOR.plugins.add("format",
{requires:"richcombo",init:function(b){if(!b.blockless){for(var h=b.config,f=b.lang.format,a=h.format_tags.split(";"),g={},m=0,k=[],l=0;l<a.length;l++){var d=a[l],e=new CKEDITOR.style(h["format_"+d]);if(!b.filter.customConfig||b.filter.check(e))m++,g[d]=e,g[d]._.enterMode=b.config.enterMode,k.push(e)}0!==m&&b.ui.addRichCombo("Format",{label:f.label,title:f.panelTitle,toolbar:"styles,20",allowedContent:k,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(h.contentsCss),multiSelect:!1,attributes:{"aria-label":f.panelTitle}},
init:function(){this.startGroup(f.panelTitle);for(var a in g){var b=f["tag_"+a];this.add(a,g[a].buildPreview(b),b)}},onClick:function(a){b.focus();b.fire("saveSnapshot");a=g[a];var d=b.elementPath();a.checkActive(d,b)||b.applyStyle(a);setTimeout(function(){b.fire("saveSnapshot")},0)},onRender:function(){b.on("selectionChange",function(a){var d=this.getValue();a=a.data.path;this.refresh();for(var e in g)if(g[e].checkActive(a,b)){e!=d&&this.setValue(e,b.lang.format["tag_"+e]);return}this.setValue("")},
this)},onOpen:function(){this.showAll();for(var a in g)b.activeFilter.check(g[a])||this.hideItem(a)},refresh:function(){var a=b.elementPath();if(a){if(a.isContextFor("p"))for(var d in g)if(b.activeFilter.check(g[d]))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}}})}}});CKEDITOR.config.format_tags="p;h1;h2;h3;h4;h5;h6;pre;address;div";CKEDITOR.config.format_p={element:"p"};CKEDITOR.config.format_div={element:"div"};CKEDITOR.config.format_pre={element:"pre"};CKEDITOR.config.format_address={element:"address"};
CKEDITOR.config.format_h1={element:"h1"};CKEDITOR.config.format_h2={element:"h2"};CKEDITOR.config.format_h3={element:"h3"};CKEDITOR.config.format_h4={element:"h4"};CKEDITOR.config.format_h5={element:"h5"};CKEDITOR.config.format_h6={element:"h6"};CKEDITOR.plugins.add("forms",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss(".cke_editable form{border: 1px dotted #FF0000;padding: 2px;}\n");CKEDITOR.addCss("img.cke_hidden{background-image: url("+CKEDITOR.getUrl(this.path+"images/hiddenfield.gif")+
");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 16px !important;height: 16px !important;}")},init:function(b){var h=b.lang,f=0,a={email:1,password:1,search:1,tel:1,text:1,url:1},g={checkbox:"input[type,name,checked,required]",radio:"input[type,name,checked,required]",textfield:"input[type,name,value,size,maxlength,required]",textarea:"textarea[cols,rows,name,required]",select:"select[name,size,multiple,required]; option[value,selected]",button:"input[type,name,value]",
form:"form[action,name,id,enctype,target,method]",hiddenfield:"input[type,name,value]",imagebutton:"input[type,alt,src]{width,height,border,border-width,border-style,margin,float}"},m={checkbox:"input",radio:"input",textfield:"input",textarea:"textarea",select:"select",button:"input",form:"form",hiddenfield:"input",imagebutton:"input"},k=function(a,d,k){var l={allowedContent:g[d],requiredContent:m[d]};"form"==d&&(l.context="form");b.addCommand(d,new CKEDITOR.dialogCommand(d,l));b.ui.addButton&&b.ui.addButton(a,
{label:h.common[a.charAt(0).toLowerCase()+a.slice(1)],command:d,toolbar:"forms,"+(f+=10)});CKEDITOR.dialog.add(d,k)},l=this.path+"dialogs/";!b.blockless&&k("Form","form",l+"form.js");k("Checkbox","checkbox",l+"checkbox.js");k("Radio","radio",l+"radio.js");k("TextField","textfield",l+"textfield.js");k("Textarea","textarea",l+"textarea.js");k("Select","select",l+"select.js");k("Button","button",l+"button.js");var d=b.plugins.image;d&&!b.plugins.image2&&k("ImageButton","imagebutton",CKEDITOR.plugins.getPath("image")+
"dialogs/image.js");k("HiddenField","hiddenfield",l+"hiddenfield.js");b.addMenuItems&&(k={checkbox:{label:h.forms.checkboxAndRadio.checkboxTitle,command:"checkbox",group:"checkbox"},radio:{label:h.forms.checkboxAndRadio.radioTitle,command:"radio",group:"radio"},textfield:{label:h.forms.textfield.title,command:"textfield",group:"textfield"},hiddenfield:{label:h.forms.hidden.title,command:"hiddenfield",group:"hiddenfield"},button:{label:h.forms.button.title,command:"button",group:"button"},select:{label:h.forms.select.title,
command:"select",group:"select"},textarea:{label:h.forms.textarea.title,command:"textarea",group:"textarea"}},d&&(k.imagebutton={label:h.image.titleButton,command:"imagebutton",group:"imagebutton"}),!b.blockless&&(k.form={label:h.forms.form.menu,command:"form",group:"form"}),b.addMenuItems(k));b.contextMenu&&(!b.blockless&&b.contextMenu.addListener(function(a,b,d){if((a=d.contains("form",1))&&!a.isReadOnly())return{form:CKEDITOR.TRISTATE_OFF}}),b.contextMenu.addListener(function(b){if(b&&!b.isReadOnly()){var c=
b.getName();if("select"==c)return{select:CKEDITOR.TRISTATE_OFF};if("textarea"==c)return{textarea:CKEDITOR.TRISTATE_OFF};if("input"==c){var f=b.getAttribute("type")||"text";switch(f){case "button":case "submit":case "reset":return{button:CKEDITOR.TRISTATE_OFF};case "checkbox":return{checkbox:CKEDITOR.TRISTATE_OFF};case "radio":return{radio:CKEDITOR.TRISTATE_OFF};case "image":return d?{imagebutton:CKEDITOR.TRISTATE_OFF}:null}if(a[f])return{textfield:CKEDITOR.TRISTATE_OFF}}if("img"==c&&"hiddenfield"==
b.data("cke-real-element-type"))return{hiddenfield:CKEDITOR.TRISTATE_OFF}}}));b.on("doubleclick",function(d){var c=d.data.element;if(!b.blockless&&c.is("form"))d.data.dialog="form";else if(c.is("select"))d.data.dialog="select";else if(c.is("textarea"))d.data.dialog="textarea";else if(c.is("img")&&"hiddenfield"==c.data("cke-real-element-type"))d.data.dialog="hiddenfield";else if(c.is("input")){c=c.getAttribute("type")||"text";switch(c){case "button":case "submit":case "reset":d.data.dialog="button";
break;case "checkbox":d.data.dialog="checkbox";break;case "radio":d.data.dialog="radio";break;case "image":d.data.dialog="imagebutton"}a[c]&&(d.data.dialog="textfield")}})},afterInit:function(b){var h=b.dataProcessor,f=h&&h.htmlFilter,h=h&&h.dataFilter;CKEDITOR.env.ie&&f&&f.addRules({elements:{input:function(a){a=a.attributes;var b=a.type;b||(a.type="text");"checkbox"!=b&&"radio"!=b||"on"!=a.value||delete a.value}}},{applyToAll:!0});h&&h.addRules({elements:{input:function(a){if("hidden"==a.attributes.type)return b.createFakeParserElement(a,
"cke_hidden","hiddenfield")}}},{applyToAll:!0})}});CKEDITOR.plugins.forms={_setupRequiredAttribute:function(b){this.setValue(b.hasAttribute("required"))}};(function(){var b={canUndo:!1,exec:function(b){var f=b.document.createElement("hr");b.insertElement(f)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",{init:function(h){h.blockless||(h.addCommand("horizontalrule",b),h.ui.addButton&&h.ui.addButton("HorizontalRule",{label:h.lang.horizontalrule.toolbar,command:"horizontalrule",
toolbar:"insert,40"}))}})})();CKEDITOR.plugins.add("htmlwriter",{init:function(b){var h=new CKEDITOR.htmlWriter;h.forceSimpleAmpersand=b.config.forceSimpleAmpersand;h.indentationChars=b.config.dataIndentationChars||"\t";b.dataProcessor.writer=h}});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 b=CKEDITOR.dtd,h;for(h in CKEDITOR.tools.extend({},b.$nonBodyContent,b.$block,b.$listItem,b.$tableContent))this.setRules(h,{indent:!b[h]["#"],breakBeforeOpen:1,breakBeforeClose:!b[h]["#"],breakAfterClose:1,needsSpace:h in b.$block&&!(h in{li:1,dt:1,dd:1})});this.setRules("br",{breakAfterOpen:1});this.setRules("title",{indent:0,breakAfterOpen:0});this.setRules("style",{indent:0,breakBeforeClose:1});this.setRules("pre",{breakAfterOpen:1,indent:0})},proto:{openTag:function(b){var h=
this._.rules[b];this._.afterCloser&&h&&h.needsSpace&&this._.needsSpace&&this._.output.push("\n");this._.indent?this.indentation():h&&h.breakBeforeOpen&&(this.lineBreak(),this.indentation());this._.output.push("\x3c",b);this._.afterCloser=0},openTagClose:function(b,h){var f=this._.rules[b];h?(this._.output.push(this.selfClosingEnd),f&&f.breakAfterClose&&(this._.needsSpace=f.needsSpace)):(this._.output.push("\x3e"),f&&f.indent&&(this._.indentation+=this.indentationChars));f&&f.breakAfterOpen&&this.lineBreak();
"pre"==b&&(this._.inPre=1)},attribute:function(b,h){"string"==typeof h&&(h=CKEDITOR.tools.htmlEncodeAttr(h),this.forceSimpleAmpersand&&(h=h.replace(/&amp;/g,"\x26")));this._.output.push(" ",b,'\x3d"',h,'"')},closeTag:function(b){var h=this._.rules[b];h&&h.indent&&(this._.indentation=this._.indentation.substr(this.indentationChars.length));this._.indent?this.indentation():h&&h.breakBeforeClose&&(this.lineBreak(),this.indentation());this._.output.push("\x3c/",b,"\x3e");"pre"==b&&(this._.inPre=0);h&&
h.breakAfterClose&&(this.lineBreak(),this._.needsSpace=h.needsSpace);this._.afterCloser=1},text:function(b){this._.indent&&(this.indentation(),!this._.inPre&&(b=CKEDITOR.tools.ltrim(b)));this._.output.push(b)},comment:function(b){this._.indent&&this.indentation();this._.output.push("\x3c!--",b,"--\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(b,h){var f=this._.rules[b];f?CKEDITOR.tools.extend(f,h,!0):this._.rules[b]=h}}});(function(){CKEDITOR.plugins.add("iframe",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_iframe{background-image: url("+CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},
init:function(b){var h=b.lang.iframe,f="iframe[align,longdesc,frameborder,height,name,scrolling,src,title,width]";b.plugins.dialogadvtab&&(f+=";iframe"+b.plugins.dialogadvtab.allowedContent({id:1,classes:1,styles:1}));CKEDITOR.dialog.add("iframe",this.path+"dialogs/iframe.js");b.addCommand("iframe",new CKEDITOR.dialogCommand("iframe",{allowedContent:f,requiredContent:"iframe"}));b.ui.addButton&&b.ui.addButton("Iframe",{label:h.toolbar,command:"iframe",toolbar:"insert,80"});b.on("doubleclick",function(a){var b=
a.data.element;b.is("img")&&"iframe"==b.data("cke-real-element-type")&&(a.data.dialog="iframe")});b.addMenuItems&&b.addMenuItems({iframe:{label:h.title,command:"iframe",group:"image"}});b.contextMenu&&b.contextMenu.addListener(function(a){if(a&&a.is("img")&&"iframe"==a.data("cke-real-element-type"))return{iframe:CKEDITOR.TRISTATE_OFF}})},afterInit:function(b){var h=b.dataProcessor;(h=h&&h.dataFilter)&&h.addRules({elements:{iframe:function(f){return b.createFakeParserElement(f,"cke_iframe","iframe",
!0)}}})}})})();(function(){function b(b,a){a||(a=b.getSelection().getSelectedElement());if(a&&a.is("img")&&!a.data("cke-realelement")&&!a.isReadOnly())return a}function h(b){var a=b.getStyle("float");if("inherit"==a||"none"==a)a=0;a||(a=b.getAttribute("align"));return a}CKEDITOR.plugins.add("image",{requires:"dialog",init:function(f){if(!f.plugins.detectConflict("image",["easyimage","image2"])){CKEDITOR.dialog.add("image",this.path+"dialogs/image.js");var a="img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}";
CKEDITOR.dialog.isTabEnabled(f,"image","advanced")&&(a="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)");f.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:a,requiredContent:"img[alt,src]",contentTransformations:[["img{width}: sizeToStyle","img[width]: sizeToAttribute"],["img{float}: alignmentToStyle","img[align]: alignmentToAttribute"]]}));f.ui.addButton&&f.ui.addButton("Image",{label:f.lang.common.image,command:"image",toolbar:"insert,10"});f.on("doubleclick",function(a){var b=
a.data.element;!b.is("img")||b.data("cke-realelement")||b.isReadOnly()||(a.data.dialog="image")});f.addMenuItems&&f.addMenuItems({image:{label:f.lang.image.menu,command:"image",group:"image"}});f.contextMenu&&f.contextMenu.addListener(function(a){if(b(f,a))return{image:CKEDITOR.TRISTATE_OFF}})}},afterInit:function(f){function a(a){var m=f.getCommand("justify"+a);if(m){if("left"==a||"right"==a)m.on("exec",function(k){var l=b(f),d;l&&(d=h(l),d==a?(l.removeStyle("float"),a==h(l)&&l.removeAttribute("align")):
l.setStyle("float",a),k.cancel())});m.on("refresh",function(k){var l=b(f);l&&(l=h(l),this.setState(l==a?CKEDITOR.TRISTATE_ON:"right"==a||"left"==a?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),k.cancel())})}}f.plugins.image2||(a("left"),a("right"),a("center"),a("block"))}})})();CKEDITOR.config.image_removeLinkByEmptyURL=!0;(function(){function b(a,b){var m,k;b.on("refresh",function(a){var b=[h],e;for(e in a.data.states)b.push(a.data.states[e]);this.setState(CKEDITOR.tools.search(b,f)?f:h)},b,
null,100);b.on("exec",function(b){m=a.getSelection();k=m.createBookmarks(1);b.data||(b.data={});b.data.done=!1},b,null,0);b.on("exec",function(){a.forceNextSelectionCheck();m.selectBookmarks(k)},b,null,100)}var h=CKEDITOR.TRISTATE_DISABLED,f=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(a){var f=CKEDITOR.plugins.indent.genericDefinition;b(a,a.addCommand("indent",new f(!0)));b(a,a.addCommand("outdent",new f));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 f=a.createRange(),g=b.data.node;f.setStartBefore(g);f.setEndAfter(g);for(var d=new CKEDITOR.dom.walker(f),e;e=d.next();)if(e.type==CKEDITOR.NODE_ELEMENT)if(!e.equals(g)&&e.getDirection())f.setStartAfter(e),d=new CKEDITOR.dom.walker(f);else{var c=a.config.indentClasses;if(c)for(var h="ltr"==b.data.dir?["_rtl",
""]:["","_rtl"],r=0;r<c.length;r++)e.hasClass(c[r]+h[0])&&(e.removeClass(c[r]+h[0]),e.addClass(c[r]+h[1]));c=e.getStyle("margin-right");h=e.getStyle("margin-left");c?e.setStyle("margin-left",c):e.removeStyle("margin-left");h?e.setStyle("margin-right",h):e.removeStyle("margin-right")}})}});CKEDITOR.plugins.indent={genericDefinition:function(a){this.isIndent=!!a;this.startDisabled=!this.isIndent},specificDefinition:function(a,b,f){this.name=b;this.editor=a;this.jobs={};this.enterBr=a.config.enterMode==
CKEDITOR.ENTER_BR;this.isIndent=!!f;this.relatedGlobal=f?"indent":"outdent";this.indentKey=f?9:CKEDITOR.SHIFT+9;this.database={}},registerCommands:function(a,b){a.on("pluginsLoaded",function(){for(var a in b)(function(a,b){var d=a.getCommand(b.relatedGlobal),e;for(e in b.jobs)d.on("exec",function(d){d.data.done||(a.fire("lockSnapshot"),b.execJob(a,e)&&(d.data.done=!0),a.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(b.database))},this,null,e),d.on("refresh",function(d){d.data.states||
(d.data.states={});d.data.states[b.name+"@"+e]=b.refreshJob(a,e,d.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 f=this.jobs[b];if(f.state!=h)return f.exec.call(this,a)},refreshJob:function(a,b,f){b=this.jobs[b];a.activeFilter.checkFeature(this)?b.state=b.refresh.call(this,a,f):b.state=h;return b.state},getContext:function(a){return a.contains(this.context)}}})();
(function(){function b(a){function b(d){for(var h=k.startContainer,m=k.endContainer;h&&!h.getParent().equals(d);)h=h.getParent();for(;m&&!m.getParent().equals(d);)m=m.getParent();if(!h||!m)return!1;for(var A=[],p=!1;!p;)h.equals(m)&&(p=!0),A.push(h),h=h.getNext();if(1>A.length)return!1;h=d.getParents(!0);for(m=0;m<h.length;m++)if(h[m].getName&&g[h[m].getName()]){d=h[m];break}for(var h=e.isIndent?1:-1,m=A[0],A=A[A.length-1],p=CKEDITOR.plugins.list.listToArray(d,c),w=p[A.getCustomData("listarray_index")].indent,
m=m.getCustomData("listarray_index");m<=A.getCustomData("listarray_index");m++)if(p[m].indent+=h,0<h){for(var x=p[m].parent,B=m-1;0<=B;B--)if(p[B].indent===h){x=p[B].parent;break}p[m].parent=new CKEDITOR.dom.element(x.getName(),x.getDocument())}for(m=A.getCustomData("listarray_index")+1;m<p.length&&p[m].indent>w;m++)p[m].indent+=h;h=CKEDITOR.plugins.list.arrayToList(p,c,null,a.config.enterMode,d.getDirection());if(!e.isIndent){var C;if((C=d.getParent())&&C.is("li"))for(var A=h.listNode.getChildren(),
G=[],t,m=A.count()-1;0<=m;m--)(t=A.getItem(m))&&t.is&&t.is("li")&&G.push(t)}h&&h.listNode.replace(d);if(G&&G.length)for(m=0;m<G.length;m++){for(t=d=G[m];(t=t.getNext())&&t.is&&t.getName()in g;)CKEDITOR.env.needsNbspFiller&&!d.getFirst(f)&&d.append(k.document.createText(" ")),d.append(t);d.insertAfter(C)}h&&a.fire("contentDomInvalidated");return!0}for(var e=this,c=this.database,g=this.context,k,m=a.getSelection(),m=(m&&m.getRanges()).createIterator();k=m.getNextRange();){for(var q=k.getCommonAncestor();q&&
(q.type!=CKEDITOR.NODE_ELEMENT||!g[q.getName()]);){if(a.editable().equals(q)){q=!1;break}q=q.getParent()}q||(q=k.startPath().contains(g))&&k.setEndAt(q,CKEDITOR.POSITION_BEFORE_END);if(!q){var p=k.getEnclosedNode();p&&p.type==CKEDITOR.NODE_ELEMENT&&p.getName()in g&&(k.setStartAt(p,CKEDITOR.POSITION_AFTER_START),k.setEndAt(p,CKEDITOR.POSITION_BEFORE_END),q=p)}q&&k.startContainer.type==CKEDITOR.NODE_ELEMENT&&k.startContainer.getName()in g&&(p=new CKEDITOR.dom.walker(k),p.evaluator=h,k.startContainer=
p.next());q&&k.endContainer.type==CKEDITOR.NODE_ELEMENT&&k.endContainer.getName()in g&&(p=new CKEDITOR.dom.walker(k),p.evaluator=h,k.endContainer=p.previous());if(q)return b(q)}return 0}function h(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}function f(b){return a(b)&&g(b)}var a=CKEDITOR.dom.walker.whitespaces(!0),g=CKEDITOR.dom.walker.bookmark(!1,!0),m=CKEDITOR.TRISTATE_DISABLED,k=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(a){function d(a){e.specificDefinition.apply(this,
arguments);this.requiredContent=["ul","ol"];a.on("key",function(b){var d=a.elementPath();if("wysiwyg"==a.mode&&b.data.keyCode==this.indentKey&&d){var e=this.getContext(d);!e||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,d,e)||(a.execCommand(this.relatedGlobal),b.cancel())}},this);this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(a,b){var d=this.getContext(b),c=CKEDITOR.plugins.indentList.firstItemInPath(this.context,b,d);return d&&this.isIndent&&!c?k:m}:function(a,
b){return!this.getContext(b)||this.isIndent?m:k},exec:CKEDITOR.tools.bind(b,this)}}var e=CKEDITOR.plugins.indent;e.registerCommands(a,{indentlist:new d(a,"indentlist",!0),outdentlist:new d(a,"outdentlist")});CKEDITOR.tools.extend(d.prototype,e.specificDefinition.prototype,{context:{ol:1,ul:1}})}});CKEDITOR.plugins.indentList={};CKEDITOR.plugins.indentList.firstItemInPath=function(a,b,e){var c=b.contains(h);e||(e=b.contains(a));return e&&c&&c.equals(e.getFirst(h))}})();(function(){function b(a,b,d){if(!a.getCustomData("indent_processed")){var e=
this.editor,c=this.isIndent;if(b){e=a.$.className.match(this.classNameRegex);d=0;e&&(e=e[1],d=CKEDITOR.tools.indexOf(b,e)+1);if(0>(d+=c?1:-1))return;d=Math.min(d,b.length);d=Math.max(d,0);a.$.className=CKEDITOR.tools.ltrim(a.$.className.replace(this.classNameRegex,""));0<d&&a.addClass(b[d-1])}else{b=h(a,d);d=parseInt(a.getStyle(b),10);var f=e.config.indentOffset||40;isNaN(d)&&(d=0);d+=(c?1:-1)*f;if(0>d)return;d=Math.max(d,0);d=Math.ceil(d/f)*f;a.setStyle(b,d?d+(e.config.indentUnit||"px"):"");""===
a.getAttribute("style")&&a.removeAttribute("style")}CKEDITOR.dom.element.setMarker(this.database,a,"indent_processed",1)}}function h(a,b){return"ltr"==(b||a.getComputedStyle("direction"))?"margin-left":"margin-right"}var f=CKEDITOR.dtd.$listItem,a=CKEDITOR.dtd.$list,g=CKEDITOR.TRISTATE_DISABLED,m=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(k){function l(){d.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,b){var d=b.block||b.blockLimit;if(!d.is(f))var k=d.getAscendant(f),d=k&&b.contains(k)||d;d.is(f)&&(d=d.getParent());if(this.enterBr||this.getContext(b)){if(e){var k=e,d=d.$.className.match(this.classNameRegex),l=this.isIndent,k=d?l?d[1]!=k.slice(-1):!0:l;return k?m:g}return this.isIndent?m:d?CKEDITOR[0>=(parseInt(d.getStyle(h(d)),10)||0)?"TRISTATE_DISABLED":"TRISTATE_OFF"]:g}return g},exec:function(d){var f=d.getSelection(),f=
f&&f.getRanges()[0],g;if(g=d.elementPath().contains(a))b.call(this,g,e);else for(f=f.createIterator(),d=d.config.enterMode,f.enforceRealBlocks=!0,f.enlargeBr=d!=CKEDITOR.ENTER_BR;g=f.getNextParagraph(d==CKEDITOR.ENTER_P?"p":"div");)g.isReadOnly()||b.call(this,g,e);return!0}}}}var d=CKEDITOR.plugins.indent,e=k.config.indentClasses;d.registerCommands(k,{indentblock:new l(k,"indentblock",!0),outdentblock:new l(k,"outdentblock")});CKEDITOR.tools.extend(l.prototype,d.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 b(a,b){b=void 0===b||b;var f;if(b)f=a.getComputedStyle("text-align");else{for(;!a.hasAttribute||!a.hasAttribute("align")&&!a.getStyle("text-align");){f=a.getParent();if(!f)break;a=f}f=a.getStyle("text-align")||a.getAttribute("align")||""}f&&(f=f.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!f&&b&&(f="rtl"==a.getComputedStyle("direction")?
"right":"left");return f}function h(a,b,f){this.editor=a;this.name=b;this.value=f;this.context="p";b=a.config.justifyClasses;var h=a.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(b){switch(f){case "left":this.cssClassName=b[0];break;case "center":this.cssClassName=b[1];break;case "right":this.cssClassName=b[2];break;case "justify":this.cssClassName=b[3]}this.cssClassRegex=new RegExp("(?:^|\\s+)(?:"+b.join("|")+")(?\x3d$|\\s)");this.requiredContent=h+"("+this.cssClassName+")"}else this.requiredContent=
h+"{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 f(a){var b=a.editor,f=b.createRange();f.setStartBefore(a.data.node);f.setEndAfter(a.data.node);for(var h=new CKEDITOR.dom.walker(f),l;l=h.next();)if(l.type==CKEDITOR.NODE_ELEMENT)if(!l.equals(a.data.node)&&l.getDirection())f.setStartAfter(l),h=
new CKEDITOR.dom.walker(f);else{var d=b.config.justifyClasses;d&&(l.hasClass(d[0])?(l.removeClass(d[0]),l.addClass(d[2])):l.hasClass(d[2])&&(l.removeClass(d[2]),l.addClass(d[0])));d=l.getStyle("text-align");"left"==d?l.setStyle("text-align","right"):"right"==d&&l.setStyle("text-align","left")}}h.prototype={exec:function(a){var f=a.getSelection(),h=a.config.enterMode;if(f){for(var k=f.createBookmarks(),l=f.getRanges(),d=this.cssClassName,e,c,n=a.config.useComputedState,n=void 0===n||n,r=l.length-1;0<=
r;r--)for(e=l[r].createIterator(),e.enlargeBr=h!=CKEDITOR.ENTER_BR;c=e.getNextParagraph(h==CKEDITOR.ENTER_P?"p":"div");)if(!c.isReadOnly()){var t=c.getName(),q;q=a.activeFilter.check(t+"{text-align}");if((t=a.activeFilter.check(t+"("+d+")"))||q){c.removeAttribute("align");c.removeStyle("text-align");var p=d&&(c.$.className=CKEDITOR.tools.ltrim(c.$.className.replace(this.cssClassRegex,""))),u=this.state==CKEDITOR.TRISTATE_OFF&&(!n||b(c,!0)!=this.value);d&&t?u?c.addClass(d):p||c.removeAttribute("class"):
u&&q&&c.setStyle("text-align",this.value)}}a.focus();a.forceNextSelectionCheck();f.selectBookmarks(k)}},refresh:function(a,f){var h=f.block||f.blockLimit,k=h.getName(),l=h.equals(a.editable()),k=this.cssClassName?a.activeFilter.check(k+"("+this.cssClassName+")"):a.activeFilter.check(k+"{text-align}");l&&!CKEDITOR.dtd.$list[f.lastElement.getName()]?this.setState(CKEDITOR.TRISTATE_OFF):!l&&k?this.setState(b(h,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 b=new h(a,"justifyleft","left"),m=new h(a,"justifycenter","center"),k=new h(a,"justifyright","right"),l=new h(a,"justifyblock","justify");a.addCommand("justifyleft",b);a.addCommand("justifycenter",m);a.addCommand("justifyright",k);a.addCommand("justifyblock",l);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",f)}}})})();CKEDITOR.plugins.add("menubutton",{requires:"button,menu",onLoad:function(){var b=function(b){var f=this._,a=f.menu;f.state!==CKEDITOR.TRISTATE_DISABLED&&(f.on&&a?a.hide():(f.previousState=
f.state,a||(a=f.menu=new CKEDITOR.menu(b,{panel:{className:"cke_menu_panel",attributes:{"aria-label":b.lang.common.options}}}),a.onHide=CKEDITOR.tools.bind(function(){var a=this.command?b.getCommand(this.command).modes:this.modes;this.setState(!a||a[b.mode]?f.previousState:CKEDITOR.TRISTATE_DISABLED);f.on=0},this),this.onMenu&&a.addListener(this.onMenu)),this.setState(CKEDITOR.TRISTATE_ON),f.on=1,setTimeout(function(){a.show(CKEDITOR.document.getById(f.id),4)},0)))};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,
$:function(h){delete h.panel;this.base(h);this.hasArrow="menu";this.click=b},statics:{handler:{create:function(b){return new CKEDITOR.ui.menuButton(b)}}}})},beforeInit:function(b){b.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}});CKEDITOR.UI_MENUBUTTON="menubutton";"use strict";(function(){CKEDITOR.plugins.add("language",{requires:"menubutton",init:function(b){var h=b.config.language_list||["ar:Arabic:rtl","fr:French","es:Spanish"],f=this,a=b.lang.language,g={},m,k,l,d;b.addCommand("language",
{allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",contextSensitive:!0,exec:function(a,b){var d=g["language_"+b];if(d)a[d.style.checkActive(a.elementPath(),a)?"removeStyle":"applyStyle"](d.style)},refresh:function(a){this.setState(f.getCurrentLangElement(a)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}});for(d=0;d<h.length;d++)m=h[d].split(":"),k=m[0],l="language_"+k,g[l]={label:m[1],langId:k,group:"language",order:d,ltr:"rtl"!=(""+m[2]).toLowerCase(),onClick:function(){b.execCommand("language",
this.langId)},role:"menuitemcheckbox"},g[l].style=new CKEDITOR.style({element:"span",attributes:{lang:k,dir:g[l].ltr?"ltr":"rtl"}});g.language_remove={label:a.remove,group:"language_remove",state:CKEDITOR.TRISTATE_DISABLED,order:g.length,onClick:function(){var a=f.getCurrentLangElement(b);a&&b.execCommand("language",a.getAttribute("lang"))}};b.addMenuGroup("language",1);b.addMenuGroup("language_remove");b.addMenuItems(g);b.ui.add("Language",CKEDITOR.UI_MENUBUTTON,{label:a.button,allowedContent:"span[!lang,!dir]",
requiredContent:"span[lang,dir]",toolbar:"bidi,30",command:"language",onMenu:function(){var a={},d=f.getCurrentLangElement(b),h;for(h in g)a[h]=CKEDITOR.TRISTATE_OFF;a.language_remove=d?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;d&&(a["language_"+d.getAttribute("lang")]=CKEDITOR.TRISTATE_ON);return a}});b.addRemoveFormatFilter&&b.addRemoveFormatFilter(function(a){return!(a.is("span")&&a.getAttribute("dir")&&a.getAttribute("lang"))})},getCurrentLangElement:function(b){var h=b.elementPath();b=
h&&h.elements;var f;if(h)for(var a=0;a<b.length;a++)h=b[a],!f&&"span"==h.getName()&&h.hasAttribute("dir")&&h.hasAttribute("lang")&&(f=h);return f}})})();"use strict";(function(){function b(a){return a.replace(/'/g,"\\$\x26")}function h(a){for(var b=a.length,d=[],c,e=0;e<b;e++)c=a.charCodeAt(e),d.push(c);return"String.fromCharCode("+d.join(",")+")"}function f(a,d){for(var c=a.plugins.link,e=c.compiledProtectionFunction.params,c=[c.compiledProtectionFunction.name,"("],f,g,h=0;h<e.length;h++)f=e[h].toLowerCase(),
g=d[f],0<h&&c.push(","),c.push("'",g?b(encodeURIComponent(d[f])):"","'");c.push(")");return c.join("")}function a(a){a=a.config.emailProtection||"";var b;a&&"encode"!=a&&(b={},a.replace(/^([^(]+)\(([^)]+)\)$/,function(a,d,c){b.name=d;b.params=[];c.replace(/[^,\s]+/g,function(a){b.params.push(a)})}));return b}CKEDITOR.plugins.add("link",{requires:"dialog,fakeobjects",onLoad:function(){function a(b){return d.replace(/%1/g,"rtl"==b?"right":"left").replace(/%2/g,"cke_contents_"+b)}var b="background:url("+
CKEDITOR.getUrl(this.path+"images"+(CKEDITOR.env.hidpi?"/hidpi":"")+"/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;background-size:16px;",d=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+b+"padding-%1:18px;cursor:auto;}.%2 img.cke_anchor{"+b+"width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;}";CKEDITOR.addCss(a("ltr")+a("rtl"))},init:function(b){var d="a[!href]";CKEDITOR.dialog.isTabEnabled(b,"link","advanced")&&
(d=d.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type,download]{*}(*)"));CKEDITOR.dialog.isTabEnabled(b,"link","target")&&(d=d.replace("]",",target,onclick]"));b.addCommand("link",new CKEDITOR.dialogCommand("link",{allowedContent:d,requiredContent:"a[href]"}));b.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",{allowedContent:"a[!name,id]",requiredContent:"a[name]"}));b.addCommand("unlink",new CKEDITOR.unlinkCommand);b.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand);
b.setKeystroke(CKEDITOR.CTRL+76,"link");b.setKeystroke(CKEDITOR.CTRL+75,"link");b.ui.addButton&&(b.ui.addButton("Link",{label:b.lang.link.toolbar,command:"link",toolbar:"links,10"}),b.ui.addButton("Unlink",{label:b.lang.link.unlink,command:"unlink",toolbar:"links,20"}),b.ui.addButton("Anchor",{label:b.lang.link.anchor.toolbar,command:"anchor",toolbar:"links,30"}));CKEDITOR.dialog.add("link",this.path+"dialogs/link.js");CKEDITOR.dialog.add("anchor",this.path+"dialogs/anchor.js");b.on("doubleclick",
function(a){var d=a.data.element.getAscendant({a:1,img:1},!0);d&&!d.isReadOnly()&&(d.is("a")?(a.data.dialog=!d.getAttribute("name")||d.getAttribute("href")&&d.getChildCount()?"link":"anchor",a.data.link=d):CKEDITOR.plugins.link.tryRestoreFakeAnchor(b,d)&&(a.data.dialog="anchor"))},null,null,0);b.on("doubleclick",function(a){a.data.dialog in{link:1,anchor:1}&&a.data.link&&b.getSelection().selectElement(a.data.link)},null,null,20);b.addMenuItems&&b.addMenuItems({anchor:{label:b.lang.link.anchor.menu,
command:"anchor",group:"anchor",order:1},removeAnchor:{label:b.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:b.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:b.lang.link.unlink,command:"unlink",group:"link",order:5}});b.contextMenu&&b.contextMenu.addListener(function(a){if(!a||a.isReadOnly())return null;a=CKEDITOR.plugins.link.tryRestoreFakeAnchor(b,a);if(!a&&!(a=CKEDITOR.plugins.link.getSelectedLink(b)))return null;var d={};a.getAttribute("href")&&
a.getChildCount()&&(d={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF});a&&a.hasAttribute("name")&&(d.anchor=d.removeAnchor=CKEDITOR.TRISTATE_OFF);return d});this.compiledProtectionFunction=a(b)},afterInit:function(a){a.dataProcessor.dataFilter.addRules({elements:{a:function(b){return b.attributes.name?b.children.length?null:a.createFakeParserElement(b,"cke_anchor","anchor"):null}}});var b=a._.elementsPath&&a._.elementsPath.filters;b&&b.push(function(b,d){if("a"==d&&(CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,
b)||b.getAttribute("name")&&(!b.getAttribute("href")||!b.getChildCount())))return"anchor"})}});var g=/^javascript:/,m=/^(?:mailto)(?:(?!\?(subject|body)=).)+/i,k=/subject=([^;?:@&=$,\/]*)/i,l=/body=([^;?:@&=$,\/]*)/i,d=/^#(.*)$/,e=/^((?:http|https|ftp|news):\/\/)?(.*)$/,c=/^(_(?:self|top|parent|blank))$/,n=/^javascript:void\(location\.href='mailto:'\+String\.fromCharCode\(([^)]+)\)(?:\+'(.*)')?\)$/,r=/^javascript:([^(]+)\(([^)]+)\)$/,t=/\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/,
q=/(?:^|,)([^=]+)=(\d+|yes|no)/gi,p=/^tel:(.*)$/,u={id:"advId",dir:"advLangDir",accessKey:"advAccessKey",name:"advName",lang:"advLangCode",tabindex:"advTabIndex",title:"advTitle",type:"advContentType","class":"advCSSClasses",charset:"advCharset",style:"advStyles",rel:"advRel"};CKEDITOR.plugins.link={getSelectedLink:function(a,b){var d=a.getSelection(),c=d.getSelectedElement(),e=d.getRanges(),f=[],g;if(!b&&c&&c.is("a"))return c;for(c=0;c<e.length;c++)if(g=d.getRanges()[c],g.shrink(CKEDITOR.SHRINK_ELEMENT,
!0,{skipBogus:!0}),(g=a.elementPath(g.getCommonAncestor()).contains("a",1))&&b)f.push(g);else if(g)return g;return b?f:null},getEditorAnchors:function(a){for(var b=a.editable(),d=b.isInline()&&!a.plugins.divarea?a.document:b,b=d.getElementsByTag("a"),d=d.getElementsByTag("img"),c=[],e=0,f;f=b.getItem(e++);)(f.data("cke-saved-name")||f.hasAttribute("name"))&&c.push({name:f.data("cke-saved-name")||f.getAttribute("name"),id:f.getAttribute("id")});for(e=0;f=d.getItem(e++);)(f=this.tryRestoreFakeAnchor(a,
f))&&c.push({name:f.getAttribute("name"),id:f.getAttribute("id")});return c},fakeAnchor:!0,tryRestoreFakeAnchor:function(a,b){if(b&&b.data("cke-real-element-type")&&"anchor"==b.data("cke-real-element-type")){var d=a.restoreRealElement(b);if(d.data("cke-saved-name"))return d}},parseLinkAttributes:function(a,b){var f=b&&(b.data("cke-saved-href")||b.getAttribute("href"))||"",h=a.plugins.link.compiledProtectionFunction,w=a.config.emailProtection,x={},B;f.match(g)&&("encode"==w?f=f.replace(n,function(a,
b,d){d=d||"";return"mailto:"+String.fromCharCode.apply(String,b.split(","))+d.replace(/\\'/g,"'")}):w&&f.replace(r,function(a,b,d){if(b==h.name){x.type="email";a=x.email={};b=/(^')|('$)/g;d=d.match(/[^,\s]+/g);for(var c=d.length,e,f,g=0;g<c;g++)e=decodeURIComponent,f=d[g].replace(b,"").replace(/\\'/g,"'"),f=e(f),e=h.params[g].toLowerCase(),a[e]=f;a.address=[a.name,a.domain].join("@")}}));if(!x.type)if(w=f.match(d))x.type="anchor",x.anchor={},x.anchor.name=x.anchor.id=w[1];else if(w=f.match(p))x.type=
"tel",x.tel=w[1];else if(w=f.match(m)){B=f.match(k);var f=f.match(l),C=x.email={};x.type="email";C.address=w[0].replace("mailto:","");B&&(C.subject=decodeURIComponent(B[1]));f&&(C.body=decodeURIComponent(f[1]))}else f&&(B=f.match(e))&&(x.type="url",x.url={},x.url.protocol=B[1],x.url.url=B[2]);if(b){if(f=b.getAttribute("target"))x.target={type:f.match(c)?f:"frame",name:f};else if(f=(f=b.data("cke-pa-onclick")||b.getAttribute("onclick"))&&f.match(t))for(x.target={type:"popup",name:f[1]};w=q.exec(f[2]);)"yes"!=
w[2]&&"1"!=w[2]||w[1]in{height:1,width:1,top:1,left:1}?isFinite(w[2])&&(x.target[w[1]]=w[2]):x.target[w[1]]=!0;null!==b.getAttribute("download")&&(x.download=!0);var f={},G;for(G in u)(w=b.getAttribute(G))&&(f[u[G]]=w);if(G=b.data("cke-saved-name")||f.advName)f.advName=G;CKEDITOR.tools.isEmpty(f)||(x.advanced=f)}return x},getLinkAttributes:function(a,d){var c=a.config.emailProtection||"",e={};switch(d.type){case "url":var c=d.url&&void 0!==d.url.protocol?d.url.protocol:"http://",g=d.url&&CKEDITOR.tools.trim(d.url.url)||
"";e["data-cke-saved-href"]=0===g.indexOf("/")?g:c+g;break;case "anchor":c=d.anchor&&d.anchor.id;e["data-cke-saved-href"]="#"+(d.anchor&&d.anchor.name||c||"");break;case "email":var k=d.email,g=k.address;switch(c){case "":case "encode":var l=encodeURIComponent(k.subject||""),m=encodeURIComponent(k.body||""),k=[];l&&k.push("subject\x3d"+l);m&&k.push("body\x3d"+m);k=k.length?"?"+k.join("\x26"):"";"encode"==c?(c=["javascript:void(location.href\x3d'mailto:'+",h(g)],k&&c.push("+'",b(k),"'"),c.push(")")):
c=["mailto:",g,k];break;default:c=g.split("@",2),k.name=c[0],k.domain=c[1],c=["javascript:",f(a,k)]}e["data-cke-saved-href"]=c.join("");break;case "tel":e["data-cke-saved-href"]="tel:"+d.tel}if(d.target)if("popup"==d.target.type){for(var c=["window.open(this.href, '",d.target.name||"","', '"],n="resizable status location toolbar menubar fullscreen scrollbars dependent".split(" "),g=n.length,l=function(a){d.target[a]&&n.push(a+"\x3d"+d.target[a])},k=0;k<g;k++)n[k]+=d.target[n[k]]?"\x3dyes":"\x3dno";
l("width");l("left");l("height");l("top");c.push(n.join(","),"'); return false;");e["data-cke-pa-onclick"]=c.join("")}else"notSet"!=d.target.type&&d.target.name&&(e.target=d.target.name);d.download&&(e.download="");if(d.advanced){for(var p in u)(c=d.advanced[u[p]])&&(e[p]=c);e.name&&(e["data-cke-saved-name"]=e.name)}e["data-cke-saved-href"]&&(e.href=e["data-cke-saved-href"]);p={target:1,onclick:1,"data-cke-pa-onclick":1,"data-cke-saved-name":1,download:1};d.advanced&&CKEDITOR.tools.extend(p,u);for(var r in e)delete p[r];
return{set:e,removed:CKEDITOR.tools.object.keys(p)}},showDisplayTextForElement:function(a,b){var d={img:1,table:1,tbody:1,thead:1,tfoot:1,input:1,select:1,textarea:1},c=b.getSelection();return b.widgets&&b.widgets.focused||c&&1<c.getRanges().length?!1:!a||!a.getName||!a.is(d)}};CKEDITOR.unlinkCommand=function(){};CKEDITOR.unlinkCommand.prototype={exec:function(a){if(CKEDITOR.env.ie){var b=a.getSelection().getRanges()[0],d=b.getPreviousEditableNode()&&b.getPreviousEditableNode().getAscendant("a",!0)||
b.getNextEditableNode()&&b.getNextEditableNode().getAscendant("a",!0),c;b.collapsed&&d&&(c=b.createBookmark(),b.selectNodeContents(d),b.select())}d=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1});a.removeStyle(d);c&&(b.moveToBookmark(c),b.select())},refresh:function(a,b){var d=b.lastElement&&b.lastElement.getAscendant("a",!0);d&&"a"==d.getName()&&d.getAttribute("href")&&d.getChildCount()?this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)},
contextSensitive:1,startDisabled:1,requiredContent:"a[href]",editorFocus:1};CKEDITOR.removeAnchorCommand=function(){};CKEDITOR.removeAnchorCommand.prototype={exec:function(a){var b=a.getSelection(),d=b.createBookmarks(),c;if(b&&(c=b.getSelectedElement())&&(c.getChildCount()?c.is("a"):CKEDITOR.plugins.link.tryRestoreFakeAnchor(a,c)))c.remove(1);else if(c=CKEDITOR.plugins.link.getSelectedLink(a))c.hasAttribute("href")?(c.removeAttributes({name:1,"data-cke-saved-name":1}),c.removeClass("cke_anchor")):
c.remove(1);b.selectBookmarks(d)},requiredContent:"a[name]"};CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:!0,linkShowTargetTab:!0,linkDefaultProtocol:"http://"})})();(function(){function b(a,b,d,c){for(var e=CKEDITOR.plugins.list.listToArray(b.root,d),f=[],g=0;g<b.contents.length;g++){var h=b.contents[g];(h=h.getAscendant("li",!0))&&!h.getCustomData("list_item_processed")&&(f.push(h),CKEDITOR.dom.element.setMarker(d,h,"list_item_processed",!0))}for(var h=b.root.getDocument(),k,l,g=0;g<
f.length;g++){var m=f[g].getCustomData("listarray_index");k=e[m].parent;k.is(this.type)||(l=h.createElement(this.type),k.copyAttributes(l,{start:1,type:1}),l.removeStyle("list-style-type"),e[m].parent=l)}d=CKEDITOR.plugins.list.arrayToList(e,d,null,a.config.enterMode);for(var n,e=d.listNode.getChildCount(),g=0;g<e&&(n=d.listNode.getChild(g));g++)n.getName()==this.type&&c.push(n);d.listNode.replace(b.root);a.fire("contentDomInvalidated")}function h(a,b,d){var c=b.contents,e=b.root.getDocument(),f=
[];if(1==c.length&&c[0].equals(b.root)){var g=e.createElement("div");c[0].moveChildren&&c[0].moveChildren(g);c[0].append(g);c[0]=g}b=b.contents[0].getParent();for(g=0;g<c.length;g++)b=b.getCommonAncestor(c[g].getParent());a=a.config.useComputedState;var h,k;a=void 0===a||a;for(g=0;g<c.length;g++)for(var l=c[g],m;m=l.getParent();){if(m.equals(b)){f.push(l);!k&&l.getDirection()&&(k=1);l=l.getDirection(a);null!==h&&(h=h&&h!=l?null:l);break}l=m}if(!(1>f.length)){c=f[f.length-1].getNext();g=e.createElement(this.type);
for(d.push(g);f.length;)d=f.shift(),a=e.createElement("li"),l=d,l.is("pre")||q.test(l.getName())||"false"==l.getAttribute("contenteditable")?d.appendTo(a):(d.copyAttributes(a),h&&d.getDirection()&&(a.removeStyle("direction"),a.removeAttribute("dir")),d.moveChildren(a),d.remove()),a.appendTo(g);h&&k&&g.setAttribute("dir",h);c?g.insertBefore(c):g.appendTo(b)}}function f(a,b,d){function c(d){if(!(!(l=k[d?"getFirst":"getLast"]())||l.is&&l.isBlockBoundary()||!(m=b.root[d?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))||
m.is&&m.isBlockBoundary({br:1})))a.document.createElement("br")[d?"insertBefore":"insertAfter"](l)}for(var e=CKEDITOR.plugins.list.listToArray(b.root,d),f=[],g=0;g<b.contents.length;g++){var h=b.contents[g];(h=h.getAscendant("li",!0))&&!h.getCustomData("list_item_processed")&&(f.push(h),CKEDITOR.dom.element.setMarker(d,h,"list_item_processed",!0))}h=null;for(g=0;g<f.length;g++)h=f[g].getCustomData("listarray_index"),e[h].indent=-1;for(g=h+1;g<e.length;g++)if(e[g].indent>e[g-1].indent+1){f=e[g-1].indent+
1-e[g].indent;for(h=e[g].indent;e[g]&&e[g].indent>=h;)e[g].indent+=f,g++;g--}var k=CKEDITOR.plugins.list.arrayToList(e,d,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,l,m;c(!0);c();k.replace(b.root);a.fire("contentDomInvalidated")}function a(a,b){this.name=a;this.context=this.type=b;this.allowedContent=b+" li";this.requiredContent=b}function g(a,b,d,c){for(var e,f;e=a[c?"getLast":"getFirst"](p);)(f=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",f),e.remove(),d?e[c?"insertBefore":
"insertAfter"](d):b.append(e,c),d=e}function m(a){function b(d){var c=a[d?"getPrevious":"getNext"](r);c&&c.type==CKEDITOR.NODE_ELEMENT&&c.is(a.getName())&&(g(a,c,null,!d),a.remove(),a=c)}b();b(1)}function k(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in CKEDITOR.dtd.$block||a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function l(a,b,c){a.fire("saveSnapshot");c.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var e=c.extractContents();b.trim(!1,!0);var f=b.createBookmark(),
h=new CKEDITOR.dom.elementPath(b.startContainer),k=h.block,h=h.lastElement.getAscendant("li",1)||k,l=new CKEDITOR.dom.elementPath(c.startContainer),n=l.contains(CKEDITOR.dtd.$listItem),l=l.contains(CKEDITOR.dtd.$list);k?(k=k.getBogus())&&k.remove():l&&(k=l.getPrevious(r))&&t(k)&&k.remove();(k=e.getLast())&&k.type==CKEDITOR.NODE_ELEMENT&&k.is("br")&&k.remove();(k=b.startContainer.getChild(b.startOffset))?e.insertBefore(k):b.startContainer.append(e);n&&(e=d(n))&&(h.contains(n)?(g(e,n.getParent(),n),
e.remove()):h.append(e));for(;c.checkStartOfBlock()&&c.checkEndOfBlock();){l=c.startPath();e=l.block;if(!e)break;e.is("li")&&(h=e.getParent(),e.equals(h.getLast(r))&&e.equals(h.getFirst(r))&&(e=h));c.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);e.remove()}c=c.clone();e=a.editable();c.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(c);c.evaluator=function(a){return r(a)&&!t(a)};(c=c.next())&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in CKEDITOR.dtd.$list&&m(c);b.moveToBookmark(f);
b.select();a.fire("saveSnapshot")}function d(a){return(a=a.getLast(r))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in e?a:null}var e={ol:1,ul:1},c=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(),r=function(a){return!(c(a)||n(a))},t=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(a,b,d,c,f){if(!e[a.getName()])return[];c||(c=0);d||(d=[]);for(var g=0,h=a.getChildCount();g<h;g++){var k=a.getChild(g);k.type==CKEDITOR.NODE_ELEMENT&&k.getName()in CKEDITOR.dtd.$list&&
CKEDITOR.plugins.list.listToArray(k,b,d,c+1);if("li"==k.$.nodeName.toLowerCase()){var l={parent:a,indent:c,element:k,contents:[]};f?l.grandparent=f:(l.grandparent=a.getParent(),l.grandparent&&"li"==l.grandparent.$.nodeName.toLowerCase()&&(l.grandparent=l.grandparent.getParent()));b&&CKEDITOR.dom.element.setMarker(b,k,"listarray_index",d.length);d.push(l);for(var m=0,n=k.getChildCount(),p;m<n;m++)p=k.getChild(m),p.type==CKEDITOR.NODE_ELEMENT&&e[p.getName()]?CKEDITOR.plugins.list.listToArray(p,b,d,
c+1,l.grandparent):l.contents.push(p)}}return d},arrayToList:function(a,b,d,c,f){d||(d=0);if(!a||a.length<d+1)return null;for(var g,h=a[d].parent.getDocument(),k=new CKEDITOR.dom.documentFragment(h),l=null,m=d,p=Math.max(a[d].indent,0),t=null,q,D,M=c==CKEDITOR.ENTER_P?"p":"div";;){var I=a[m];g=I.grandparent;q=I.element.getDirection(1);if(I.indent==p){l&&a[m].parent.getName()==l.getName()||(l=a[m].parent.clone(!1,1),f&&l.setAttribute("dir",f),k.append(l));t=l.append(I.element.clone(0,1));q!=l.getDirection(1)&&
t.setAttribute("dir",q);for(g=0;g<I.contents.length;g++)t.append(I.contents[g].clone(1,1));m++}else if(I.indent==Math.max(p,0)+1)I=a[m-1].element.getDirection(1),m=CKEDITOR.plugins.list.arrayToList(a,null,m,c,I!=q?q:null),!t.getChildCount()&&CKEDITOR.env.needsNbspFiller&&7>=h.$.documentMode&&t.append(h.createText(" ")),t.append(m.listNode),m=m.nextIndex;else if(-1==I.indent&&!d&&g){e[g.getName()]?(t=I.element.clone(!1,!0),q!=g.getDirection(1)&&t.setAttribute("dir",q)):t=new CKEDITOR.dom.documentFragment(h);
var l=g.getDirection(1)!=q,K=I.element,F=K.getAttribute("class"),R=K.getAttribute("style"),S=t.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(c!=CKEDITOR.ENTER_BR||l||R||F),N,Y=I.contents.length,U;for(g=0;g<Y;g++)if(N=I.contents[g],n(N)&&1<Y)S?U=N.clone(1,1):t.append(N.clone(1,1));else if(N.type==CKEDITOR.NODE_ELEMENT&&N.isBlockBoundary()){l&&!N.getDirection()&&N.setAttribute("dir",q);D=N;var Z=K.getAttribute("style");Z&&D.setAttribute("style",Z.replace(/([^;])$/,"$1;")+(D.getAttribute("style")||""));F&&
N.addClass(F);D=null;U&&(t.append(U),U=null);t.append(N.clone(1,1))}else S?(D||(D=h.createElement(M),t.append(D),l&&D.setAttribute("dir",q)),R&&D.setAttribute("style",R),F&&D.setAttribute("class",F),U&&(D.append(U),U=null),D.append(N.clone(1,1))):t.append(N.clone(1,1));U&&((D||t).append(U),U=null);t.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&m!=a.length-1&&(CKEDITOR.env.needsBrFiller&&(q=t.getLast())&&q.type==CKEDITOR.NODE_ELEMENT&&q.is("br")&&q.remove(),(q=t.getLast(r))&&q.type==CKEDITOR.NODE_ELEMENT&&
q.is(CKEDITOR.dtd.$block)||t.append(h.createElement("br")));q=t.$.nodeName.toLowerCase();"div"!=q&&"p"!=q||t.appendBogus();k.append(t);l=null;m++}else return null;D=null;if(a.length<=m||Math.max(a[m].indent,0)<p)break}if(b)for(a=k.getFirst();a;){if(a.type==CKEDITOR.NODE_ELEMENT&&(CKEDITOR.dom.element.clearMarkers(b,a),a.getName()in CKEDITOR.dtd.$listItem&&(d=a,h=f=c=void 0,c=d.getDirection()))){for(f=d.getParent();f&&!(h=f.getDirection());)f=f.getParent();c==h&&d.removeAttribute("dir")}a=a.getNextSourceNode()}return{listNode:k,
nextIndex:m}}};var q=/^h[1-6]$/,p=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);a.prototype={exec:function(a){function d(a){return e[a.root.getName()]&&!c(a.root,[CKEDITOR.NODE_COMMENT])}function c(a,b){return CKEDITOR.tools.array.filter(a.getChildren().toArray(),function(a){return-1===CKEDITOR.tools.array.indexOf(b,a.type)}).length}function g(a){var b=!0;if(0===a.getChildCount())return!1;a.forEach(function(a){if(a.type!==CKEDITOR.NODE_COMMENT)return b=!1},null,!0);return b}this.refresh(a,a.elementPath());
var k=a.config,l=a.getSelection(),n=l&&l.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var p=a.editable();if(p.getFirst(r)){var t=1==n.length&&n[0];(k=t&&t.getEnclosedNode())&&k.is&&this.type==k.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else k.enterMode==CKEDITOR.ENTER_BR?p.appendBogus():n[0].fixBlock(1,k.enterMode==CKEDITOR.ENTER_P?"p":"div"),l.selectRanges(n)}for(var k=l.createBookmarks(!0),p=[],q={},n=n.createIterator(),E=0;(t=n.getNextRange())&&++E;){var J=t.getBoundaryNodes(),H=J.startNode,
D=J.endNode;H.type==CKEDITOR.NODE_ELEMENT&&"td"==H.getName()&&t.setStartAt(J.startNode,CKEDITOR.POSITION_AFTER_START);D.type==CKEDITOR.NODE_ELEMENT&&"td"==D.getName()&&t.setEndAt(J.endNode,CKEDITOR.POSITION_BEFORE_END);t=t.createIterator();for(t.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;J=t.getNextParagraph();)if(!J.getCustomData("list_block")&&!g(J)){CKEDITOR.dom.element.setMarker(q,J,"list_block",1);for(var M=a.elementPath(J),H=M.elements,D=0,M=M.blockLimit,I,K=H.length-1;0<=K&&(I=H[K]);K--)if(e[I.getName()]&&
M.contains(I)){M.removeCustomData("list_group_object_"+E);(H=I.getCustomData("list_group_object"))?H.contents.push(J):(H={root:I,contents:[J]},p.push(H),CKEDITOR.dom.element.setMarker(q,I,"list_group_object",H));D=1;break}D||(D=M,D.getCustomData("list_group_object_"+E)?D.getCustomData("list_group_object_"+E).contents.push(J):(H={root:D,contents:[J]},CKEDITOR.dom.element.setMarker(q,D,"list_group_object_"+E,H),p.push(H)))}}for(I=[];0<p.length;)H=p.shift(),this.state==CKEDITOR.TRISTATE_OFF?d(H)||(e[H.root.getName()]?
b.call(this,a,H,q,I):h.call(this,a,H,I)):this.state==CKEDITOR.TRISTATE_ON&&e[H.root.getName()]&&!d(H)&&f.call(this,a,H,q);for(K=0;K<I.length;K++)m(I[K]);CKEDITOR.dom.element.clearAllMarkers(q);l.selectBookmarks(k);a.focus()},refresh:function(a,b){var d=b.contains(e,1),c=b.blockLimit||b.root;d&&c.contains(d)?this.setState(d.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(b){b.blockless||
(b.addCommand("numberedlist",new a("numberedlist","ol")),b.addCommand("bulletedlist",new a("bulletedlist","ul")),b.ui.addButton&&(b.ui.addButton("NumberedList",{label:b.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),b.ui.addButton("BulletedList",{label:b.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),b.on("key",function(a){var c=a.data.domEvent.getKey(),f;if("wysiwyg"==b.mode&&c in{8:1,46:1}){var g=b.getSelection().getRanges()[0],
h=g&&g.startPath();if(g&&g.collapsed){var m=8==c,n=b.editable(),p=new CKEDITOR.dom.walker(g.clone());p.evaluator=function(a){return r(a)&&!t(a)};p.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};c=g.clone();if(m){var q;(q=h.contains(e))&&g.checkBoundaryOfElement(q,CKEDITOR.START)&&(q=q.getParent())&&q.is("li")&&(q=d(q))?(f=q,q=q.getPrevious(r),c.moveToPosition(q&&t(q)?q:f,CKEDITOR.POSITION_BEFORE_START)):(p.range.setStartAt(n,CKEDITOR.POSITION_AFTER_START),p.range.setEnd(g.startContainer,
g.startOffset),(q=p.previous())&&q.type==CKEDITOR.NODE_ELEMENT&&(q.getName()in e||q.is("li"))&&(q.is("li")||(p.range.selectNodeContents(q),p.reset(),p.evaluator=k,q=p.previous()),f=q,c.moveToElementEditEnd(f),c.moveToPosition(c.endPath().block,CKEDITOR.POSITION_BEFORE_END)));if(f)l(b,c,g),a.cancel();else{var E=h.contains(e);E&&g.checkBoundaryOfElement(E,CKEDITOR.START)&&(f=E.getFirst(r),g.checkBoundaryOfElement(f,CKEDITOR.START)&&(q=E.getPrevious(r),d(f)?q&&(g.moveToElementEditEnd(q),g.select()):
b.execCommand("outdent"),a.cancel()))}}else if(f=h.contains("li")){if(p.range.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),m=(n=f.getLast(r))&&k(n)?n:f,h=0,(q=p.next())&&q.type==CKEDITOR.NODE_ELEMENT&&q.getName()in e&&q.equals(n)?(h=1,q=p.next()):g.checkBoundaryOfElement(m,CKEDITOR.END)&&(h=2),h&&q){g=g.clone();g.moveToElementEditStart(q);if(1==h&&(c.optimize(),!c.startContainer.equals(f))){for(f=c.startContainer;f.is(CKEDITOR.dtd.$inline);)E=f,f=f.getParent();E&&c.moveToPosition(E,CKEDITOR.POSITION_AFTER_END)}2==
h&&(c.moveToPosition(c.endPath().block,CKEDITOR.POSITION_BEFORE_END),g.endPath().block&&g.moveToPosition(g.endPath().block,CKEDITOR.POSITION_AFTER_START));l(b,c,g);a.cancel()}}else p.range.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),(q=p.next())&&q.type==CKEDITOR.NODE_ELEMENT&&q.is(e)&&(q=q.getFirst(r),h.block&&g.checkStartOfBlock()&&g.checkEndOfBlock()?(h.block.remove(),g.moveToElementEditStart(q),g.select()):d(q)?(g.moveToElementEditStart(q),g.select()):(g=g.clone(),g.moveToElementEditStart(q),l(b,
c,g)),a.cancel());setTimeout(function(){b.selectionChange(1)})}}}))}})})();(function(){CKEDITOR.plugins.liststyle={requires:"dialog,contextmenu",init:function(b){if(!b.blockless){var h;h=new CKEDITOR.dialogCommand("numberedListStyle",{requiredContent:"ol",allowedContent:"ol{list-style-type}[start]; li{list-style-type}[value]",contentTransformations:[["ol: listTypeToStyle"]]});h=b.addCommand("numberedListStyle",h);b.addFeature(h);CKEDITOR.dialog.add("numberedListStyle",this.path+"dialogs/liststyle.js");
h=new CKEDITOR.dialogCommand("bulletedListStyle",{requiredContent:"ul",allowedContent:"ul{list-style-type}",contentTransformations:[["ul: listTypeToStyle"]]});h=b.addCommand("bulletedListStyle",h);b.addFeature(h);CKEDITOR.dialog.add("bulletedListStyle",this.path+"dialogs/liststyle.js");b.addMenuGroup("list",108);b.addMenuItems({numberedlist:{label:b.lang.liststyle.numberedTitle,group:"list",command:"numberedListStyle"},bulletedlist:{label:b.lang.liststyle.bulletedTitle,group:"list",command:"bulletedListStyle"}});
b.contextMenu.addListener(function(b){if(!b||b.isReadOnly())return null;for(;b;){var a=b.getName();if("ol"==a)return{numberedlist:CKEDITOR.TRISTATE_OFF};if("ul"==a)return{bulletedlist:CKEDITOR.TRISTATE_OFF};b=b.getParent()}return null})}}};CKEDITOR.plugins.add("liststyle",CKEDITOR.plugins.liststyle)})();"use strict";(function(){function b(a,b,d){return n(b)&&n(d)&&d.equals(b.getNext(function(a){return!(Q(a)||T(a)||r(a))}))}function h(a){this.upper=a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}
function f(a){var b=a.element;if(b&&n(b)&&(b=b.getAscendant(a.triggers,!0))&&a.editable.contains(b)){var d=k(b);if("true"==d.getAttribute("contenteditable"))return b;if(d.is(a.triggers))return d}return null}function a(a,b,d){z(a,b);z(a,d);a=b.size.bottom;d=d.size.top;return a&&d?0|(a+d)/2:a||d}function g(a,b,d){return b=b[d?"getPrevious":"getNext"](function(b){return b&&b.type==CKEDITOR.NODE_TEXT&&!Q(b)||n(b)&&!r(b)&&!c(a,b)})}function m(a,b,d){return a>b&&a<d}function k(a,b){if(a.data("cke-editable"))return null;
for(b||(a=a.getParent());a&&!a.data("cke-editable");){if(a.hasAttribute("contenteditable"))return a;a=a.getParent()}return null}function l(a){var b=a.doc,c=E('\x3cspan contenteditable\x3d"false" data-cke-magic-line\x3d"1" style\x3d"'+ba+"position:absolute;border-top:1px dashed "+a.boxColor+'"\x3e\x3c/span\x3e',b),e=CKEDITOR.getUrl(this.path+"images/"+(J.hidpi?"hidpi/":"")+"icon"+(a.rtl?"-rtl":"")+".png");C(c,{attach:function(){this.wrap.getParent()||this.wrap.appendTo(a.editable,!0);return this},
lineChildren:[C(E('\x3cspan title\x3d"'+a.editor.lang.magicline.title+'" contenteditable\x3d"false"\x3e\x26#8629;\x3c/span\x3e',b),{base:ba+"height:17px;width:17px;"+(a.rtl?"left":"right")+":17px;background:url("+e+") center no-repeat "+a.boxColor+";cursor:pointer;"+(J.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(J.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px; border-radius: 2px;","top:-17px; border-radius: 2px 2px 0px 0px;","top:-1px; border-radius: 0px 0px 2px 2px;"]}),
C(E(da,b),{base:W+"left:0px;border-left-color:"+a.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),C(E(da,b),{base:W+"right:0px;border-right-color:"+a.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px","border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],detach:function(){this.wrap.getParent()&&this.wrap.remove();return this},mouseNear:function(){z(a,this);var b=a.holdDistance,d=this.size;
return d&&m(a.mouse.y,d.top-b,d.bottom+b)&&m(a.mouse.x,d.left-b,d.right+b)?!0:!1},place:function(){var b=a.view,d=a.editable,c=a.trigger,e=c.upper,f=c.lower,g=e||f,h=g.getParent(),k={};this.trigger=c;e&&z(a,e,!0);f&&z(a,f,!0);z(a,h,!0);a.inInlineMode&&w(a,!0);h.equals(d)?(k.left=b.scroll.x,k.right=-b.scroll.x,k.width=""):(k.left=g.size.left-g.size.margin.left+b.scroll.x-(a.inInlineMode?b.editable.left+b.editable.border.left:0),k.width=g.size.outerWidth+g.size.margin.left+g.size.margin.right+b.scroll.x,
k.right="");e&&f?k.top=e.size.margin.bottom===f.size.margin.top?0|e.size.bottom+e.size.margin.bottom/2:e.size.margin.bottom<f.size.margin.top?e.size.bottom+e.size.margin.bottom:e.size.bottom+e.size.margin.bottom-f.size.margin.top:e?f||(k.top=e.size.bottom+e.size.margin.bottom):k.top=f.size.top-f.size.margin.top;c.is(S)||m(k.top,b.scroll.y-15,b.scroll.y+5)?(k.top=a.inInlineMode?0:b.scroll.y,this.look(S)):c.is(N)||m(k.top,b.pane.bottom-5,b.pane.bottom+15)?(k.top=a.inInlineMode?b.editable.height+b.editable.padding.top+
b.editable.padding.bottom:b.pane.bottom-1,this.look(N)):(a.inInlineMode&&(k.top-=b.editable.top+b.editable.border.top),this.look(Y));a.inInlineMode&&(k.top--,k.top+=b.editable.scroll.top,k.left+=b.editable.scroll.left);for(var l in k)k[l]=CKEDITOR.tools.cssLength(k[l]);this.setStyles(k)},look:function(a){if(this.oldLook!=a){for(var b=this.lineChildren.length,d;b--;)(d=this.lineChildren[b]).setAttribute("style",d.base+d.looks[0|a/2]);this.oldLook=a}},wrap:new G("span",a.doc)});for(b=c.lineChildren.length;b--;)c.lineChildren[b].appendTo(c);
c.look(Y);c.appendTo(c.wrap);c.unselectable();c.lineChildren[0].on("mouseup",function(b){c.detach();d(a,function(b){var d=a.line.trigger;b[d.is(I)?"insertBefore":"insertAfter"](d.is(I)?d.lower:d.upper)},!0);a.editor.focus();J.ie||a.enterMode==CKEDITOR.ENTER_BR||a.hotNode.scrollIntoView();b.data.preventDefault(!0)});c.on("mousedown",function(a){a.data.preventDefault(!0)});a.line=c}function d(a,b,d){var c=new CKEDITOR.dom.range(a.doc),e=a.editor,f;J.ie&&a.enterMode==CKEDITOR.ENTER_BR?f=a.doc.createText(U):
(f=(f=k(a.element,!0))&&f.data("cke-enter-mode")||a.enterMode,f=new G(M[f],a.doc),f.is("br")||a.doc.createText(U).appendTo(f));d&&e.fire("saveSnapshot");b(f);c.moveToPosition(f,CKEDITOR.POSITION_AFTER_START);e.getSelection().selectRanges([c]);a.hotNode=f;d&&e.fire("saveSnapshot")}function e(a,b){return{canUndo:!0,modes:{wysiwyg:1},exec:function(){function c(e){var f=J.ie&&9>J.version?" ":U,g=a.hotNode&&a.hotNode.getText()==f&&a.element.equals(a.hotNode)&&a.lastCmdDirection===!!b;d(a,function(d){g&&
a.hotNode&&a.hotNode.remove();d[b?"insertAfter":"insertBefore"](e);d.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!b});a.lastCmdDirection=!!b});J.ie||a.enterMode==CKEDITOR.ENTER_BR||a.hotNode.scrollIntoView();a.line.detach()}return function(d){d=d.getSelection().getStartElement();var e;d=d.getAscendant(V,1);if(!p(a,d)&&d&&!d.equals(a.editable)&&!d.contains(a.editable)){(e=k(d))&&"false"==e.getAttribute("contenteditable")&&(d=e);a.element=d;e=g(a,d,!b);var h;n(e)&&e.is(a.triggers)&&
e.is(O)&&(!g(a,e,!b)||(h=g(a,e,!b))&&n(h)&&h.is(a.triggers))?c(e):(h=f(a,d),n(h)&&(g(a,h,!b)?(d=g(a,h,!b))&&n(d)&&d.is(a.triggers)&&c(h):c(h)))}}}()}}function c(a,b){if(!b||b.type!=CKEDITOR.NODE_ELEMENT||!b.$)return!1;var d=a.line;return d.wrap.equals(b)||d.wrap.contains(b)}function n(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.$}function r(a){if(!n(a))return!1;var b;(b=t(a))||(n(a)?(b={left:1,right:1,center:1},b=!(!b[a.getComputedStyle("float")]&&!b[a.getAttribute("align")])):b=!1);return b}function t(a){return!!{absolute:1,
fixed:1}[a.getComputedStyle("position")]}function q(a,b){return n(b)?b.is(a.triggers):null}function p(a,b){if(!b)return!1;for(var d=b.getParents(1),c=d.length;c--;)for(var e=a.tabuList.length;e--;)if(d[c].hasAttribute(a.tabuList[e]))return!0;return!1}function u(a,b,d){b=b[d?"getLast":"getFirst"](function(b){return a.isRelevant(b)&&!b.is(ga)});if(!b)return!1;z(a,b);return d?b.size.top>a.mouse.y:b.size.bottom<a.mouse.y}function y(a){var b=a.editable,d=a.mouse,e=a.view,f=a.triggerOffset;w(a);var g=d.y>
(a.inInlineMode?e.editable.top+e.editable.height/2:Math.min(e.editable.height,e.pane.height)/2),b=b[g?"getLast":"getFirst"](function(a){return!(Q(a)||T(a))});if(!b)return null;c(a,b)&&(b=a.line.wrap[g?"getPrevious":"getNext"](function(a){return!(Q(a)||T(a))}));if(!n(b)||r(b)||!q(a,b))return null;z(a,b);return!g&&0<=b.size.top&&m(d.y,0,b.size.top+f)?(a=a.inInlineMode||0===e.scroll.y?S:Y,new h([null,b,I,R,a])):g&&b.size.bottom<=e.pane.height&&m(d.y,b.size.bottom-f,e.pane.height)?(a=a.inInlineMode||
m(b.size.bottom,e.pane.height-f,e.pane.height)?N:Y,new h([b,null,K,R,a])):null}function v(a){var b=a.mouse,d=a.view,c=a.triggerOffset,e=f(a);if(!e)return null;z(a,e);var c=Math.min(c,0|e.size.outerHeight/2),k=[],l,L;if(m(b.y,e.size.top-1,e.size.top+c))L=!1;else if(m(b.y,e.size.bottom-c,e.size.bottom+1))L=!0;else return null;if(r(e)||u(a,e,L)||e.getParent().is(Z))return null;var p=g(a,e,!L);if(p){if(p&&p.type==CKEDITOR.NODE_TEXT)return null;if(n(p)){if(r(p)||!q(a,p)||p.getParent().is(Z))return null;
k=[p,e][L?"reverse":"concat"]().concat([F,R])}}else e.equals(a.editable[L?"getLast":"getFirst"](a.isRelevant))?(w(a),L&&m(b.y,e.size.bottom-c,d.pane.height)&&m(e.size.bottom,d.pane.height-c,d.pane.height)?l=N:m(b.y,0,e.size.top+c)&&(l=S)):l=Y,k=[null,e][L?"reverse":"concat"]().concat([L?K:I,R,l,e.equals(a.editable[L?"getLast":"getFirst"](a.isRelevant))?L?N:S:Y]);return 0 in k?new h(k):null}function A(a,b,d,c){for(var e=b.getDocumentPosition(),f={},g={},h={},k={},l=P.length;l--;)f[P[l]]=parseInt(b.getComputedStyle.call(b,
"border-"+P[l]+"-width"),10)||0,h[P[l]]=parseInt(b.getComputedStyle.call(b,"padding-"+P[l]),10)||0,g[P[l]]=parseInt(b.getComputedStyle.call(b,"margin-"+P[l]),10)||0;d&&!c||x(a,c);k.top=e.y-(d?0:a.view.scroll.y);k.left=e.x-(d?0:a.view.scroll.x);k.outerWidth=b.$.offsetWidth;k.outerHeight=b.$.offsetHeight;k.height=k.outerHeight-(h.top+h.bottom+f.top+f.bottom);k.width=k.outerWidth-(h.left+h.right+f.left+f.right);k.bottom=k.top+k.outerHeight;k.right=k.left+k.outerWidth;a.inInlineMode&&(k.scroll={top:b.$.scrollTop,
left:b.$.scrollLeft});return C({border:f,padding:h,margin:g,ignoreScroll:d},k,!0)}function z(a,b,d){if(!n(b))return b.size=null;if(!b.size)b.size={};else if(b.size.ignoreScroll==d&&b.size.date>new Date-aa)return null;return C(b.size,A(a,b,d),{date:+new Date},!0)}function w(a,b){a.view.editable=A(a,a.editable,b,!0)}function x(a,b){a.view||(a.view={});var d=a.view;if(!(!b&&d&&d.date>new Date-aa)){var c=a.win,d=c.getScrollPosition(),c=c.getViewPaneSize();C(a.view,{scroll:{x:d.x,y:d.y,width:a.doc.$.documentElement.scrollWidth-
c.width,height:a.doc.$.documentElement.scrollHeight-c.height},pane:{width:c.width,height:c.height,bottom:c.height+d.y},date:+new Date},!0)}}function B(a,b,d,c){for(var e=c,f=c,g=0,k=!1,l=!1,m=a.view.pane.height,n=a.mouse;n.y+g<m&&0<n.y-g;){k||(k=b(e,c));l||(l=b(f,c));!k&&0<n.y-g&&(e=d(a,{x:n.x,y:n.y-g}));!l&&n.y+g<m&&(f=d(a,{x:n.x,y:n.y+g}));if(k&&l)break;g+=2}return new h([e,f,null,null])}CKEDITOR.plugins.add("magicline",{init:function(a){var b=a.config,k=b.magicline_triggerOffset||30,m={editor:a,
enterMode:b.enterMode,triggerOffset:k,holdDistance:0|k*(b.magicline_holdDistance||.5),boxColor:b.magicline_color||"#ff0000",rtl:"rtl"==b.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(b.magicline_tabuList||[]),triggers:b.magicline_everywhere?V:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},u,q,P;m.isRelevant=function(a){return n(a)&&!c(m,a)&&!r(a)};a.on("contentDom",function(){var k=a.editable(),n=a.document,r=a.window;C(m,{editable:k,inInlineMode:k.isInline(),doc:n,win:r,
hotNode:null},!0);m.boundary=m.inInlineMode?m.editable:m.doc.getDocumentElement();k.is(D.$inline)||(m.inInlineMode&&!t(k)&&k.setStyles({position:"relative",top:null,left:null}),l.call(this,m),x(m),k.attachListener(a,"beforeUndoImage",function(){m.line.detach()}),k.attachListener(a,"beforeGetData",function(){m.line.wrap.getParent()&&(m.line.detach(),a.once("getData",function(){m.line.attach()},null,null,1E3))},null,null,0),k.attachListener(m.inInlineMode?n:n.getWindow().getFrame(),"mouseout",function(b){if("wysiwyg"==
a.mode)if(m.inInlineMode){var d=b.data.$.clientX;b=b.data.$.clientY;x(m);w(m,!0);var c=m.view.editable,e=m.view.scroll;d>c.left-e.x&&d<c.right-e.x&&b>c.top-e.y&&b<c.bottom-e.y||(clearTimeout(P),P=null,m.line.detach())}else clearTimeout(P),P=null,m.line.detach()}),k.attachListener(k,"keyup",function(){m.hiddenMode=0}),k.attachListener(k,"keydown",function(b){if("wysiwyg"==a.mode)switch(b.data.getKeystroke()){case 2228240:case 16:m.hiddenMode=1,m.line.detach()}}),k.attachListener(m.inInlineMode?k:n,
"mousemove",function(b){q=!0;if("wysiwyg"==a.mode&&!a.readOnly&&!P){var d={x:b.data.$.clientX,y:b.data.$.clientY};P=setTimeout(function(){m.mouse=d;P=m.trigger=null;x(m);q&&!m.hiddenMode&&a.focusManager.hasFocus&&!m.line.mouseNear()&&(m.element=X(m,!0))&&((m.trigger=y(m)||v(m)||L(m))&&!p(m,m.trigger.upper||m.trigger.lower)?m.line.attach().place():(m.trigger=null,m.line.detach()),q=!1)},30)}}),k.attachListener(r,"scroll",function(){"wysiwyg"==a.mode&&(m.line.detach(),J.webkit&&(m.hiddenMode=1,clearTimeout(u),
u=setTimeout(function(){m.mouseDown||(m.hiddenMode=0)},50)))}),k.attachListener(H?n:r,"mousedown",function(){"wysiwyg"==a.mode&&(m.line.detach(),m.hiddenMode=1,m.mouseDown=1)}),k.attachListener(H?n:r,"mouseup",function(){m.hiddenMode=0;m.mouseDown=0}),a.addCommand("accessPreviousSpace",e(m)),a.addCommand("accessNextSpace",e(m,!0)),a.setKeystroke([[b.magicline_keystrokePrevious,"accessPreviousSpace"],[b.magicline_keystrokeNext,"accessNextSpace"]]),a.on("loadSnapshot",function(){var b,d,c,e;for(e in{p:1,
br:1,div:1})for(b=a.document.getElementsByTag(e),c=b.count();c--;)if((d=b.getItem(c)).data("cke-magicline-hot")){m.hotNode=d;m.lastCmdDirection="true"===d.data("cke-magicline-dir")?!0:!1;return}}),a._.magiclineBackdoor={accessFocusSpace:d,boxTrigger:h,isLine:c,getAscendantTrigger:f,getNonEmptyNeighbour:g,getSize:A,that:m,triggerEdge:v,triggerEditable:y,triggerExpand:L})},this)}});var C=CKEDITOR.tools.extend,G=CKEDITOR.dom.element,E=G.createFromHtml,J=CKEDITOR.env,H=CKEDITOR.env.ie&&9>CKEDITOR.env.version,
D=CKEDITOR.dtd,M={},I=128,K=64,F=32,R=16,S=4,N=2,Y=1,U=" ",Z=D.$listItem,ga=D.$tableContent,O=C({},D.$nonEditable,D.$empty),V=D.$block,aa=100,ba="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",W=ba+"border-color:transparent;display:block;border-style:solid;",da="\x3cspan\x3e"+U+"\x3c/span\x3e";M[CKEDITOR.ENTER_BR]="br";M[CKEDITOR.ENTER_P]="p";M[CKEDITOR.ENTER_DIV]="div";h.prototype={set:function(a,b,d){this.properties=
a+b+(d||Y);return this},is:function(a){return(this.properties&a)==a}};var X=function(){function a(b,d){var c=b.$.elementFromPoint(d.x,d.y);return c&&c.nodeType?new CKEDITOR.dom.element(c):null}return function(b,d,e){if(!b.mouse)return null;var f=b.doc,g=b.line.wrap;e=e||b.mouse;var h=a(f,e);d&&c(b,h)&&(g.hide(),h=a(f,e),g.show());return!h||h.type!=CKEDITOR.NODE_ELEMENT||!h.$||J.ie&&9>J.version&&!b.boundary.equals(h)&&!b.boundary.contains(h)?null:h}}(),Q=CKEDITOR.dom.walker.whitespaces(),T=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),
L=function(){function d(c){var f=c.element,g,h,k;if(!n(f)||f.contains(c.editable)||f.isReadOnly())return null;k=B(c,function(a,b){return!b.equals(a)},function(a,b){return X(a,!0,b)},f);g=k.upper;h=k.lower;if(b(c,g,h))return k.set(F,8);if(g&&f.contains(g))for(;!g.getParent().equals(f);)g=g.getParent();else g=f.getFirst(function(a){return e(c,a)});if(h&&f.contains(h))for(;!h.getParent().equals(f);)h=h.getParent();else h=f.getLast(function(a){return e(c,a)});if(!g||!h)return null;z(c,g);z(c,h);if(!m(c.mouse.y,
g.size.top,h.size.bottom))return null;for(var f=Number.MAX_VALUE,l,L,p,x;h&&!h.equals(g)&&(L=g.getNext(c.isRelevant));)l=Math.abs(a(c,g,L)-c.mouse.y),l<f&&(f=l,p=g,x=L),g=L,z(c,g);if(!p||!x||!m(c.mouse.y,p.size.top,x.size.bottom))return null;k.upper=p;k.lower=x;return k.set(F,8)}function e(a,b){return!(b&&b.type==CKEDITOR.NODE_TEXT||T(b)||r(b)||c(a,b)||b.type==CKEDITOR.NODE_ELEMENT&&b.$&&b.is("br"))}return function(a){var c=d(a),e;if(e=c){e=c.upper;var f=c.lower;e=!e||!f||r(f)||r(e)||f.equals(e)||
e.equals(f)||f.contains(e)||e.contains(f)?!1:q(a,e)&&q(a,f)&&b(a,e,f)?!0:!1}return e?c:null}}(),P=["top","left","right","bottom"]})();CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51;CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52;(function(){function b(a){if(!a||a.type!=CKEDITOR.NODE_ELEMENT||"form"!=a.getName())return[];for(var b=[],f=["style","className"],d=0;d<f.length;d++){var e=a.$.elements.namedItem(f[d]);e&&(e=new CKEDITOR.dom.element(e),
b.push([e,e.nextSibling]),e.remove())}return b}function h(a,b){if(a&&a.type==CKEDITOR.NODE_ELEMENT&&"form"==a.getName()&&0<b.length)for(var f=b.length-1;0<=f;f--){var d=b[f][0],e=b[f][1];e?d.insertBefore(e):d.appendTo(a)}}function f(a,f){var g=b(a),d={},e=a.$;f||(d["class"]=e.className||"",e.className="");d.inline=e.style.cssText||"";f||(e.style.cssText="position: static; overflow: visible");h(g);return d}function a(a,f){var g=b(a),d=a.$;"class"in f&&(d.className=f["class"]);"inline"in f&&(d.style.cssText=
f.inline);h(g)}function g(a){if(!a.editable().isInline()){var b=CKEDITOR.instances,f;for(f in b){var d=b[f];"wysiwyg"!=d.mode||d.readOnly||(d=d.document.getBody(),d.setAttribute("contentEditable",!1),d.setAttribute("contentEditable",!0))}a.editable().hasFocus&&(a.toolbox.focus(),a.focus())}}CKEDITOR.plugins.add("maximize",{init:function(b){function h(){var a=e.getViewPaneSize();b.resize(a.width,a.height,null,!0)}if(b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var l=b.lang,d=CKEDITOR.document,e=d.getWindow(),
c,n,r,t=CKEDITOR.TRISTATE_OFF;b.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:!1,exec:function(){var q=b.container.getFirst(function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_inner")}),p=b.ui.space("contents");if("wysiwyg"==b.mode){var u=b.getSelection();c=u&&u.getRanges();n=e.getScrollPosition()}else{var y=b.editable().$;c=!CKEDITOR.env.ie&&[y.selectionStart,y.selectionEnd];n=[y.scrollLeft,y.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){e.on("resize",
h);r=e.getScrollPosition();for(u=b.container;u=u.getParent();)u.setCustomData("maximize_saved_styles",f(u)),u.setStyle("z-index",b.config.baseFloatZIndex-5);p.setCustomData("maximize_saved_styles",f(p,!0));q.setCustomData("maximize_saved_styles",f(q,!0));p={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};d.getDocumentElement().setStyles(p);!CKEDITOR.env.gecko&&d.getDocumentElement().setStyle("position","fixed");CKEDITOR.env.gecko&&CKEDITOR.env.quirks||d.getBody().setStyles(p);CKEDITOR.env.ie?
setTimeout(function(){e.$.scrollTo(0,0)},0):e.$.scrollTo(0,0);q.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute");q.$.offsetLeft;q.setStyles({"z-index":b.config.baseFloatZIndex-5,left:"0px",top:"0px"});q.addClass("cke_maximized");h();p=q.getDocumentPosition();q.setStyles({left:-1*p.x+"px",top:-1*p.y+"px"});CKEDITOR.env.gecko&&g(b)}else if(this.state==CKEDITOR.TRISTATE_ON){e.removeListener("resize",h);for(var u=[p,q],v=0;v<u.length;v++)a(u[v],u[v].getCustomData("maximize_saved_styles")),
u[v].removeCustomData("maximize_saved_styles");for(u=b.container;u=u.getParent();)a(u,u.getCustomData("maximize_saved_styles")),u.removeCustomData("maximize_saved_styles");CKEDITOR.env.ie?setTimeout(function(){e.$.scrollTo(r.x,r.y)},0):e.$.scrollTo(r.x,r.y);q.removeClass("cke_maximized");CKEDITOR.env.webkit&&(q.setStyle("display","inline"),setTimeout(function(){q.setStyle("display","block")},0));b.fire("resize",{outerHeight:b.container.$.offsetHeight,contentsHeight:p.$.offsetHeight,outerWidth:b.container.$.offsetWidth})}this.toggleState();
if(u=this.uiItems[0])p=this.state==CKEDITOR.TRISTATE_OFF?l.maximize.maximize:l.maximize.minimize,u=CKEDITOR.document.getById(u._.id),u.getChild(1).setHtml(p),u.setAttribute("title",p),u.setAttribute("href",'javascript:void("'+p+'");');"wysiwyg"==b.mode?c?(CKEDITOR.env.gecko&&g(b),b.getSelection().selectRanges(c),(y=b.getSelection().getStartElement())&&y.scrollIntoView(!0)):e.$.scrollTo(n.x,n.y):(c&&(y.selectionStart=c[0],y.selectionEnd=c[1]),y.scrollLeft=n[0],y.scrollTop=n[1]);c=n=null;t=this.state;
b.fire("maximize",this.state)},canUndo:!1});b.ui.addButton&&b.ui.addButton("Maximize",{label:l.maximize.maximize,command:"maximize",toolbar:"tools,10"});b.on("mode",function(){var a=b.getCommand("maximize");a.setState(a.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:t)},null,null,100)}}})})();CKEDITOR.plugins.add("newpage",{init:function(b){b.addCommand("newpage",{modes:{wysiwyg:1,source:1},exec:function(b){var f=this;b.setData(b.config.newpage_html||"",function(){b.focus();setTimeout(function(){b.fire("afterCommandExec",
{name:"newpage",command:f});b.selectionChange()},200)})},async:!0});b.ui.addButton&&b.ui.addButton("NewPage",{label:b.lang.newpage.toolbar,command:"newpage",toolbar:"document,20"})}});"use strict";(function(){function b(b){return{"aria-label":b,"class":"cke_pagebreak",contenteditable:"false","data-cke-display-name":"pagebreak","data-cke-pagebreak":1,style:"page-break-after: always",title:b}}CKEDITOR.plugins.add("pagebreak",{requires:"fakeobjects",onLoad:function(){var b=("background:url("+CKEDITOR.getUrl(this.path+
"images/pagebreak.gif")+") no-repeat center center;clear:both;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;padding:0;height:7px;cursor:default;").replace(/;/g," !important;");CKEDITOR.addCss("div.cke_pagebreak{"+b+"}")},init:function(b){b.blockless||(b.addCommand("pagebreak",CKEDITOR.plugins.pagebreakCmd),b.ui.addButton&&b.ui.addButton("PageBreak",{label:b.lang.pagebreak.toolbar,command:"pagebreak",toolbar:"insert,70"}),CKEDITOR.env.webkit&&b.on("contentDom",function(){b.document.on("click",
function(f){f=f.data.getTarget();f.is("div")&&f.hasClass("cke_pagebreak")&&b.getSelection().selectElement(f)})}))},afterInit:function(h){function f(a){CKEDITOR.tools.extend(a.attributes,b(h.lang.pagebreak.alt),!0);a.children.length=0}var a=h.dataProcessor,g=a&&a.dataFilter,a=a&&a.htmlFilter,m=/page-break-after\s*:\s*always/i,k=/display\s*:\s*none/i;a&&a.addRules({attributes:{"class":function(a,b){var e=a.replace("cke_pagebreak","");if(e!=a){var c=CKEDITOR.htmlParser.fragment.fromHtml('\x3cspan style\x3d"display: none;"\x3e\x26nbsp;\x3c/span\x3e').children[0];
b.children.length=0;b.add(c);c=b.attributes;delete c["aria-label"];delete c.contenteditable;delete c.title}return e}}},{applyToAll:!0,priority:5});g&&g.addRules({elements:{div:function(a){if(a.attributes["data-cke-pagebreak"])f(a);else if(m.test(a.attributes.style)){var b=a.children[0];b&&"span"==b.name&&k.test(b.attributes.style)&&f(a)}}}})}});CKEDITOR.plugins.pagebreakCmd={exec:function(b){b.insertElement(CKEDITOR.plugins.pagebreak.createElement(b))},context:"div",allowedContent:{div:{styles:"!page-break-after"},
span:{match:function(b){return(b=b.parent)&&"div"==b.name&&b.styles&&b.styles["page-break-after"]},styles:"display"}},requiredContent:"div{page-break-after}"};CKEDITOR.plugins.pagebreak={createElement:function(h){return h.document.createElement("div",{attributes:b(h.lang.pagebreak.alt)})}}})();(function(){CKEDITOR.plugins.add("pastefromword",{requires:"pastetools",init:function(b){function h(a){var b=CKEDITOR.plugins.pastefromword&&CKEDITOR.plugins.pastefromword.images,d,e=[];if(b&&a.editor.filter.check("img[src]")&&
(d=b.extractTagsFromHtml(a.data.dataValue),0!==d.length&&(b=b.extractFromRtf(a.data.dataTransfer["text/rtf"]),0!==b.length&&(CKEDITOR.tools.array.forEach(b,function(a){e.push(a.type?"data:"+a.type+";base64,"+CKEDITOR.tools.convertBytesToBase64(CKEDITOR.tools.convertHexStringToBytes(a.hex)):null)},this),d.length===e.length))))for(b=0;b<d.length;b++)0===d[b].indexOf("file://")&&e[b]&&(a.data.dataValue=a.data.dataValue.replace(d[b],e[b]))}var f=0,a=CKEDITOR.plugins.getPath("pastetools"),g=this.path,
m=void 0===b.config.pasteFromWord_inlineImages?!0:b.config.pasteFromWord_inlineImages,a=[CKEDITOR.getUrl(a+"filter/common.js"),CKEDITOR.getUrl(g+"filter/default.js")];b.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(a,b){f=1;a.execCommand("paste",{type:"html",notification:b&&"undefined"!==typeof b.notification?b.notification:!0})}});CKEDITOR.plugins.clipboard.addPasteButton(b,"PasteFromWord",{label:b.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});b.pasteTools.register({filters:b.config.pasteFromWordCleanupFile?
[b.config.pasteFromWordCleanupFile]:a,canHandle:function(a){a=CKEDITOR.plugins.pastetools.getClipboardData(a.data,"text/html");var b=/(class=\"?Mso|style=(?:\"|\')[^\"]*?\bmso\-|w:WordDocument|<o:\w+>|<\/font>)/,b=/<meta\s*name=(?:\"|\')?generator(?:\"|\')?\s*content=(?:\"|\')?microsoft/gi.test(a)||b.test(a);return a&&(f||b)},handle:function(a,g){var d=a.data,e=CKEDITOR.plugins.pastetools.getClipboardData(d,"text/html"),c=CKEDITOR.plugins.pastetools.getClipboardData(d,"text/rtf"),e={dataValue:e,dataTransfer:{"text/rtf":c}};
if(!1!==b.fire("pasteFromWord",e)||f){d.dontFilter=!0;if(f||!b.config.pasteFromWordPromptCleanup||confirm(b.lang.pastefromword.confirmCleanup))e.dataValue=CKEDITOR.cleanWord(e.dataValue,b),b.fire("afterPasteFromWord",e),d.dataValue=e.dataValue,!0===b.config.forcePasteAsPlainText?d.type="text":CKEDITOR.plugins.clipboard.isCustomCopyCutSupported||"allow-word"!==b.config.forcePasteAsPlainText||(d.type="html");f=0;g()}}});if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported&&m)b.on("afterPasteFromWord",
h)}})})();(function(){var b={canUndo:!1,async:!0,exec:function(b,f){var a=b.lang,g=CKEDITOR.tools.keystrokeToString(a.common.keyboard,b.getCommandKeystroke(CKEDITOR.env.ie?b.commands.paste:this)),m=f&&"undefined"!==typeof f.notification?f.notification:!f||!f.from||"keystrokeHandler"===f.from&&CKEDITOR.env.ie,a=m&&"string"===typeof m?m:a.pastetext.pasteNotification.replace(/%1/,'\x3ckbd aria-label\x3d"'+g.aria+'"\x3e'+g.display+"\x3c/kbd\x3e");b.execCommand("paste",{type:"text",notification:m?a:!1})}};
CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(h){var f=CKEDITOR.env.safari?CKEDITOR.CTRL+CKEDITOR.ALT+CKEDITOR.SHIFT+86:CKEDITOR.CTRL+CKEDITOR.SHIFT+86;h.addCommand("pastetext",b);h.setKeystroke(f,"pastetext");CKEDITOR.plugins.clipboard.addPasteButton(h,"PasteText",{label:h.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(h.config.forcePasteAsPlainText)h.on("beforePaste",function(a){"html"!=a.data.type&&(a.data.type="text")});h.on("pasteState",function(a){h.getCommand("pastetext").setState(a.data)})}})})();
(function(){var b,h={modes:{wysiwyg:1,source:1},canUndo:!1,readOnly:1,exec:function(f){var a,g=f.config,h=g.baseHref?'\x3cbase href\x3d"'+g.baseHref+'"/\x3e':"";if(g.fullPage)a=f.getData().replace(/<head>/,"$\x26"+h).replace(/[^>]*(?=<\/title>)/,"$\x26 \x26mdash; "+f.lang.preview.preview);else{var g="\x3cbody ",k=f.document&&f.document.getBody();k&&(k.getAttribute("id")&&(g+='id\x3d"'+k.getAttribute("id")+'" '),k.getAttribute("class")&&(g+='class\x3d"'+k.getAttribute("class")+'" '));g+="\x3e";a=f.config.docType+
'\x3chtml dir\x3d"'+f.config.contentsLangDirection+'"\x3e\x3chead\x3e'+h+"\x3ctitle\x3e"+f.lang.preview.preview+"\x3c/title\x3e"+CKEDITOR.tools.buildStyleHtml(f.config.contentsCss)+"\x3c/head\x3e"+g+f.getData()+"\x3c/body\x3e\x3c/html\x3e"}h=640;g=420;k=80;try{var l=window.screen,h=Math.round(.8*l.width),g=Math.round(.7*l.height),k=Math.round(.1*l.width)}catch(d){}if(!1===f.fire("contentPreview",f={dataValue:a}))return!1;var l="",e;CKEDITOR.env.ie&&(window._cke_htmlToLoad=f.dataValue,e="javascript:void( (function(){document.open();"+
("("+CKEDITOR.tools.fixDomain+")();").replace(/\/\/.*?\n/g,"").replace(/parent\./g,"window.opener.")+"document.write( window.opener._cke_htmlToLoad );document.close();window.opener._cke_htmlToLoad \x3d null;})() )",l="");CKEDITOR.env.gecko&&(window._cke_htmlToLoad=f.dataValue,l=CKEDITOR.getUrl(b+"preview.html"));l=window.open(l,null,"toolbar\x3dyes,location\x3dno,status\x3dyes,menubar\x3dyes,scrollbars\x3dyes,resizable\x3dyes,width\x3d"+h+",height\x3d"+g+",left\x3d"+k);CKEDITOR.env.ie&&l&&(l.location=
e);CKEDITOR.env.ie||CKEDITOR.env.gecko||(e=l.document,e.open(),e.write(f.dataValue),e.close());return!0}};CKEDITOR.plugins.add("preview",{init:function(f){f.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&(b=this.path,f.addCommand("preview",h),f.ui.addButton&&f.ui.addButton("Preview",{label:f.lang.preview.preview,command:"preview",toolbar:"document,40"}))}})})();CKEDITOR.plugins.add("print",{init:function(b){b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&(b.addCommand("print",CKEDITOR.plugins.print),b.ui.addButton&&
b.ui.addButton("Print",{label:b.lang.print.toolbar,command:"print",toolbar:"document,50"}))}});CKEDITOR.plugins.print={exec:function(b){CKEDITOR.env.gecko?b.window.$.print():b.document.$.execCommand("Print")},canUndo:!1,readOnly:1,modes:{wysiwyg:1}};CKEDITOR.plugins.add("removeformat",{init:function(b){b.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);b.ui.addButton&&b.ui.addButton("RemoveFormat",{label:b.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}});
CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(b){for(var h=b._.removeFormatRegex||(b._.removeFormatRegex=new RegExp("^(?:"+b.config.removeFormatTags.replace(/,/g,"|")+")$","i")),f=b._.removeAttributes||(b._.removeAttributes=b.config.removeFormatAttributes.split(",")),a=CKEDITOR.plugins.removeformat.filter,g=b.getSelection().getRanges().createIterator(),m=function(a){return a.type==CKEDITOR.NODE_ELEMENT},k=[],l;l=g.getNextRange();){var d=l.createBookmark();l=b.createRange();
l.setStartBefore(d.startNode);d.endNode&&l.setEndAfter(d.endNode);l.collapsed||l.enlarge(CKEDITOR.ENLARGE_ELEMENT);var e=l.createBookmark(),c=e.startNode,n=e.endNode,r=function(d){for(var c=b.elementPath(d),e=c.elements,f=1,g;(g=e[f])&&!g.equals(c.block)&&!g.equals(c.blockLimit);f++)h.test(g.getName())&&a(b,g)&&d.breakParent(g)};r(c);if(n)for(r(n),c=c.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);c&&!c.equals(n);)if(c.isReadOnly()){if(c.getPosition(n)&CKEDITOR.POSITION_CONTAINS)break;c=c.getNext(m)}else r=
c.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),"img"==c.getName()&&c.data("cke-realelement")||c.hasAttribute("data-cke-bookmark")||!a(b,c)||(h.test(c.getName())?c.remove(1):(c.removeAttributes(f),b.fire("removeFormatCleanup",c))),c=r;e.startNode.remove();e.endNode&&e.endNode.remove();l.moveToBookmark(d);k.push(l)}b.forceNextSelectionCheck();b.getSelection().selectRanges(k)}}},filter:function(b,h){for(var f=b._.removeFormatFilters||[],a=0;a<f.length;a++)if(!1===f[a](h))return!1;return!0}};CKEDITOR.editor.prototype.addRemoveFormatFilter=
function(b){this._.removeFormatFilters||(this._.removeFormatFilters=[]);this._.removeFormatFilters.push(b)};CKEDITOR.config.removeFormatTags="b,big,cite,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var";CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign";CKEDITOR.plugins.add("resize",{init:function(b){function h(f){var g=d.width,h=d.height,k=g+(f.data.$.screenX-l.x)*("rtl"==m?-1:1);f=h+(f.data.$.screenY-l.y);e&&(g=Math.max(a.resize_minWidth,
Math.min(k,a.resize_maxWidth)));c&&(h=Math.max(a.resize_minHeight,Math.min(f,a.resize_maxHeight)));b.resize(e?g:null,h)}function f(){CKEDITOR.document.removeListener("mousemove",h);CKEDITOR.document.removeListener("mouseup",f);b.document&&(b.document.removeListener("mousemove",h),b.document.removeListener("mouseup",f))}var a=b.config,g=b.ui.spaceId("resizer"),m=b.element?b.element.getDirection(1):"ltr";!a.resize_dir&&(a.resize_dir="vertical");void 0===a.resize_maxWidth&&(a.resize_maxWidth=3E3);void 0===
a.resize_maxHeight&&(a.resize_maxHeight=3E3);void 0===a.resize_minWidth&&(a.resize_minWidth=750);void 0===a.resize_minHeight&&(a.resize_minHeight=250);if(!1!==a.resize_enabled){var k=null,l,d,e=("both"==a.resize_dir||"horizontal"==a.resize_dir)&&a.resize_minWidth!=a.resize_maxWidth,c=("both"==a.resize_dir||"vertical"==a.resize_dir)&&a.resize_minHeight!=a.resize_maxHeight,n=CKEDITOR.tools.addFunction(function(c){k||(k=b.getResizable());d={width:k.$.offsetWidth||0,height:k.$.offsetHeight||0};l={x:c.screenX,
y:c.screenY};a.resize_minWidth>d.width&&(a.resize_minWidth=d.width);a.resize_minHeight>d.height&&(a.resize_minHeight=d.height);CKEDITOR.document.on("mousemove",h);CKEDITOR.document.on("mouseup",f);b.document&&(b.document.on("mousemove",h),b.document.on("mouseup",f));c.preventDefault&&c.preventDefault()});b.on("destroy",function(){CKEDITOR.tools.removeFunction(n)});b.on("uiSpace",function(a){if("bottom"==a.data.space){var d="";e&&!c&&(d=" cke_resizer_horizontal");!e&&c&&(d=" cke_resizer_vertical");
var f='\x3cspan id\x3d"'+g+'" class\x3d"cke_resizer'+d+" cke_resizer_"+m+'" title\x3d"'+CKEDITOR.tools.htmlEncode(b.lang.common.resize)+'" onmousedown\x3d"CKEDITOR.tools.callFunction('+n+', event)"\x3e'+("ltr"==m?"◢":"◣")+"\x3c/span\x3e";"ltr"==m&&"ltr"==d?a.data.html+=f:a.data.html=f+a.data.html}},b,null,100);b.on("maximize",function(a){b.ui.space("resizer")[a.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}});(function(){var b={readOnly:1,modes:{wysiwyg:1,source:1},exec:function(b){if(b.fire("save")&&
(b=b.element.$.form))try{b.submit()}catch(f){b.submit.click&&b.submit.click()}}};CKEDITOR.plugins.add("save",{init:function(h){h.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(h.addCommand("save",b).startDisabled=!h.element.$.form,h.ui.addButton&&h.ui.addButton("Save",{label:h.lang.save.toolbar,command:"save",toolbar:"document,10"}))}})})();(function(){CKEDITOR.plugins.add("selectall",{init:function(b){b.addCommand("selectAll",{modes:{wysiwyg:1,source:1},exec:function(b){var f=b.editable();if(f.is("textarea"))b=
f.$,CKEDITOR.env.ie&&b.createTextRange?b.createTextRange().execCommand("SelectAll"):(b.selectionStart=0,b.selectionEnd=b.value.length),b.focus();else{if(f.is("body"))b.document.$.execCommand("SelectAll",!1,null);else{var a=b.createRange();a.selectNodeContents(f);a.select()}b.forceNextSelectionCheck();b.selectionChange()}},canUndo:!1});b.ui.addButton&&b.ui.addButton("SelectAll",{label:b.lang.selectall.toolbar,command:"selectAll",toolbar:"selection,10"})}})})();(function(){var b={readOnly:1,preserveState:!0,
editorFocus:!1,exec:function(b){this.toggleState();this.refresh(b)},refresh:function(b){if(b.document){var f=this.state!=CKEDITOR.TRISTATE_ON||b.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!b.focusManager.hasFocus?"removeClass":"attachClass";b.editable()[f]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",{onLoad:function(){var b="p div pre address blockquote h1 h2 h3 h4 h5 h6".split(" "),f,a,g,m,k=CKEDITOR.getUrl(this.path),l=!(CKEDITOR.env.ie&&9>CKEDITOR.env.version),d=l?":not([contenteditable\x3dfalse]):not(.cke_show_blocks_off)":
"",e,c;for(f=a=g=m="";e=b.pop();)c=b.length?",":"",f+=".cke_show_blocks "+e+d+c,g+=".cke_show_blocks.cke_contents_ltr "+e+d+c,m+=".cke_show_blocks.cke_contents_rtl "+e+d+c,a+=".cke_show_blocks "+e+d+"{background-image:url("+CKEDITOR.getUrl(k+"images/block_"+e+".png")+")}";CKEDITOR.addCss((f+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(a,g+"{background-position:top left;padding-left:8px}",m+"{background-position:top right;padding-right:8px}"));l||CKEDITOR.addCss(".cke_show_blocks [contenteditable\x3dfalse],.cke_show_blocks .cke_show_blocks_off{border:none;padding-top:0;background-image:none}.cke_show_blocks.cke_contents_rtl [contenteditable\x3dfalse],.cke_show_blocks.cke_contents_rtl .cke_show_blocks_off{padding-right:0}.cke_show_blocks.cke_contents_ltr [contenteditable\x3dfalse],.cke_show_blocks.cke_contents_ltr .cke_show_blocks_off{padding-left:0}")},
init:function(h){function f(){a.refresh(h)}if(!h.blockless){var a=h.addCommand("showblocks",b);a.canUndo=!1;h.config.startupOutlineBlocks&&a.setState(CKEDITOR.TRISTATE_ON);h.ui.addButton&&h.ui.addButton("ShowBlocks",{label:h.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"});h.on("mode",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(h)});h.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(h.on("focus",f),h.on("blur",f));h.on("contentDom",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&
a.refresh(h)})}}})})();(function(){var b={preserveState:!0,editorFocus:!1,readOnly:1,exec:function(b){this.toggleState();this.refresh(b)},refresh:function(b){if(b.document){var f=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";b.editable()[f]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var b;b=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted","}"]:".%1 table.%2,;.%1 table.%2 \x3e tr \x3e td, .%1 table.%2 \x3e tr \x3e th,;.%1 table.%2 \x3e tbody \x3e tr \x3e td, .%1 table.%2 \x3e tbody \x3e tr \x3e th,;.%1 table.%2 \x3e thead \x3e tr \x3e td, .%1 table.%2 \x3e thead \x3e tr \x3e th,;.%1 table.%2 \x3e tfoot \x3e tr \x3e td, .%1 table.%2 \x3e tfoot \x3e tr \x3e th;{;border : #d3d3d3 1px dotted;}".split(";")).join("").replace(/%2/g,
"cke_show_border").replace(/%1/g,"cke_show_borders ");CKEDITOR.addCss(b)},init:function(h){var f=h.addCommand("showborders",b);f.canUndo=!1;!1!==h.config.startupShowBorders&&f.setState(CKEDITOR.TRISTATE_ON);h.on("mode",function(){f.state!=CKEDITOR.TRISTATE_DISABLED&&f.refresh(h)},null,null,100);h.on("contentDom",function(){f.state!=CKEDITOR.TRISTATE_DISABLED&&f.refresh(h)});h.on("removeFormatCleanup",function(a){a=a.data;h.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&a.is("table")&&(!a.hasAttribute("border")||
0>=parseInt(a.getAttribute("border"),10))&&a.addClass("cke_show_border")})},afterInit:function(b){var f=b.dataProcessor;b=f&&f.dataFilter;f=f&&f.htmlFilter;b&&b.addRules({elements:{table:function(a){a=a.attributes;var b=a["class"],f=parseInt(a.border,10);f&&!(0>=f)||b&&-1!=b.indexOf("cke_show_border")||(a["class"]=(b||"")+" cke_show_border")}}});f&&f.addRules({elements:{table:function(a){a=a.attributes;var b=a["class"];b&&(a["class"]=b.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,
""))}}})}});CKEDITOR.on("dialogDefinition",function(b){var f=b.data.name;if("table"==f||"tableProperties"==f)if(b=b.data.definition,f=b.getContents("info").get("txtBorder"),f.commit=CKEDITOR.tools.override(f.commit,function(a){return function(b,f){a.apply(this,arguments);var h=parseInt(this.getValue(),10);f[!h||0>=h?"addClass":"removeClass"]("cke_show_border")}}),b=(b=b.getContents("advanced"))&&b.get("advCSSClasses"))b.setup=CKEDITOR.tools.override(b.setup,function(a){return function(){a.apply(this,
arguments);this.setValue(this.getValue().replace(/cke_show_border/,""))}}),b.commit=CKEDITOR.tools.override(b.commit,function(a){return function(b,f){a.apply(this,arguments);parseInt(f.getAttribute("border"),10)||f.addClass("cke_show_border")}})})})();CKEDITOR.plugins.add("smiley",{requires:"dialog",init:function(b){b.config.smiley_path=b.config.smiley_path||this.path+"images/";b.addCommand("smiley",new CKEDITOR.dialogCommand("smiley",{allowedContent:"img[alt,height,!src,title,width]",requiredContent:"img"}));
b.ui.addButton&&b.ui.addButton("Smiley",{label:b.lang.smiley.toolbar,command:"smiley",toolbar:"insert,50"});CKEDITOR.dialog.add("smiley",this.path+"dialogs/smiley.js")}});CKEDITOR.config.smiley_images="regular_smile.png sad_smile.png wink_smile.png teeth_smile.png confused_smile.png tongue_smile.png embarrassed_smile.png omg_smile.png whatchutalkingabout_smile.png angry_smile.png angel_smile.png shades_smile.png devil_smile.png cry_smile.png lightbulb.png thumbs_down.png thumbs_up.png heart.png broken_heart.png kiss.png envelope.png".split(" ");
CKEDITOR.config.smiley_descriptions="smiley;sad;wink;laugh;frown;cheeky;blush;surprise;indecision;angry;angel;cool;devil;crying;enlightened;no;yes;heart;broken heart;kiss;mail".split(";");(function(){CKEDITOR.plugins.add("sourcearea",{init:function(h){function f(){var a=g&&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(h.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var a=
CKEDITOR.plugins.sourcearea;h.addMode("source",function(a){var g=h.ui.space("contents").getDocument().createElement("textarea");g.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",h.config.sourceAreaTabSize||4)));g.setAttribute("dir","ltr");g.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu");h.ui.space("contents").append(g);g=h.editable(new b(h,
g));g.setData(h.getData(1));CKEDITOR.env.ie&&(g.attachListener(h,"resize",f,g),g.attachListener(CKEDITOR.document.getWindow(),"resize",f,g),CKEDITOR.tools.setTimeout(f,0,g));h.fire("ariaWidget",this);a()});h.addCommand("source",a.commands.source);h.ui.addButton&&h.ui.addButton("Source",{label:h.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"});h.on("mode",function(){h.getCommand("source").setState("source"==h.mode?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var g=CKEDITOR.env.ie&&9==
CKEDITOR.env.version}}});var b=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(b){this.setValue(b);this.status="ready";this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(b){this[(b?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){b.baseProto.detach.call(this);this.clearCustomData();this.remove()}}})})();CKEDITOR.plugins.sourcearea=
{commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(b){"wysiwyg"==b.mode&&b.fire("saveSnapshot");b.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);b.setMode("source"==b.mode?"wysiwyg":"source")},canUndo:!1}}};CKEDITOR.plugins.add("specialchar",{availableLangs:{af:1,ar:1,az:1,bg: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,fr:1,"fr-ca":1,gl:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,
lt:1,lv:1,nb:1,nl:1,no:1,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},requires:"dialog",init:function(b){var h=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");b.addCommand("specialchar",{exec:function(){var f=b.langCode,f=h.availableLangs[f]?f:h.availableLangs[f.replace(/-.*/,"")]?f.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(h.path+"dialogs/lang/"+f+".js"),function(){CKEDITOR.tools.extend(b.lang.specialchar,
h.langEntries[f]);b.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1});b.ui.addButton&&b.ui.addButton("SpecialChar",{label:b.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}});CKEDITOR.config.specialChars="! \x26quot; # $ % \x26amp; ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; \x26lt; \x3d \x26gt; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ \x26euro; \x26lsquo; \x26rsquo; \x26ldquo; \x26rdquo; \x26ndash; \x26mdash; \x26iexcl; \x26cent; \x26pound; \x26curren; \x26yen; \x26brvbar; \x26sect; \x26uml; \x26copy; \x26ordf; \x26laquo; \x26not; \x26reg; \x26macr; \x26deg; \x26sup2; \x26sup3; \x26acute; \x26micro; \x26para; \x26middot; \x26cedil; \x26sup1; \x26ordm; \x26raquo; \x26frac14; \x26frac12; \x26frac34; \x26iquest; \x26Agrave; \x26Aacute; \x26Acirc; \x26Atilde; \x26Auml; \x26Aring; \x26AElig; \x26Ccedil; \x26Egrave; \x26Eacute; \x26Ecirc; \x26Euml; \x26Igrave; \x26Iacute; \x26Icirc; \x26Iuml; \x26ETH; \x26Ntilde; \x26Ograve; \x26Oacute; \x26Ocirc; \x26Otilde; \x26Ouml; \x26times; \x26Oslash; \x26Ugrave; \x26Uacute; \x26Ucirc; \x26Uuml; \x26Yacute; \x26THORN; \x26szlig; \x26agrave; \x26aacute; \x26acirc; \x26atilde; \x26auml; \x26aring; \x26aelig; \x26ccedil; \x26egrave; \x26eacute; \x26ecirc; \x26euml; \x26igrave; \x26iacute; \x26icirc; \x26iuml; \x26eth; \x26ntilde; \x26ograve; \x26oacute; \x26ocirc; \x26otilde; \x26ouml; \x26divide; \x26oslash; \x26ugrave; \x26uacute; \x26ucirc; \x26uuml; \x26yacute; \x26thorn; \x26yuml; \x26OElig; \x26oelig; \x26#372; \x26#374 \x26#373 \x26#375; \x26sbquo; \x26#8219; \x26bdquo; \x26hellip; \x26trade; \x26#9658; \x26bull; \x26rarr; \x26rArr; \x26hArr; \x26diams; \x26asymp;".split(" ");
(function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(b){var h=b.config,f=b.lang.stylescombo,a={},g=[],m=[];b.on("stylesSet",function(f){if(f=f.data.styles){for(var l,d,e,c=0,n=f.length;c<n;c++)(l=f[c],b.blockless&&l.element in CKEDITOR.dtd.$block||"string"==typeof l.type&&!CKEDITOR.style.customHandlers[l.type]||(d=l.name,l=new CKEDITOR.style(l),b.filter.customConfig&&!b.filter.check(l)))||(l._name=d,l._.enterMode=h.enterMode,l._.type=e=l.assignedTo||l.type,l._.weight=
c+1E3*(e==CKEDITOR.STYLE_OBJECT?1:e==CKEDITOR.STYLE_BLOCK?2:3),a[d]=l,g.push(l),m.push(l));g.sort(function(a,b){return a._.weight-b._.weight})}});b.ui.addRichCombo("Styles",{label:f.label,title:f.panelTitle,toolbar:"styles,10",allowedContent:m,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(h.contentsCss),multiSelect:!0,attributes:{"aria-label":f.panelTitle}},init:function(){var a,b,d,e,c,h;c=0;for(h=g.length;c<h;c++)a=g[c],b=a._name,e=a._.type,e!=d&&(this.startGroup(f["panelTitle"+String(e)]),
d=e),this.add(b,a.type==CKEDITOR.STYLE_OBJECT?b:a.buildPreview(),b);this.commit()},onClick:function(f){b.focus();b.fire("saveSnapshot");f=a[f];var g=b.elementPath();if(f.group&&f.removeStylesFromSameGroup(b))b.applyStyle(f);else b[f.checkActive(g,b)?"removeStyle":"applyStyle"](f);b.fire("saveSnapshot")},onRender:function(){b.on("selectionChange",function(f){var g=this.getValue();f=f.data.path.elements;for(var d=0,e=f.length,c;d<e;d++){c=f[d];for(var h in a)if(a[h].checkElementRemovable(c,!0,b)){h!=
g&&this.setValue(h);return}}this.setValue("")},this)},onOpen:function(){var g=b.getSelection(),g=g.getSelectedElement()||g.getStartElement()||b.editable(),g=b.elementPath(g),h=[0,0,0,0];this.showAll();this.unmarkAll();for(var d in a){var e=a[d],c=e._.type;e.checkApplicable(g,b,b.activeFilter)?h[c]++:this.hideItem(d);e.checkActive(g,b)&&this.mark(d)}h[CKEDITOR.STYLE_BLOCK]||this.hideGroup(f["panelTitle"+String(CKEDITOR.STYLE_BLOCK)]);h[CKEDITOR.STYLE_INLINE]||this.hideGroup(f["panelTitle"+String(CKEDITOR.STYLE_INLINE)]);
h[CKEDITOR.STYLE_OBJECT]||this.hideGroup(f["panelTitle"+String(CKEDITOR.STYLE_OBJECT)])},refresh:function(){var f=b.elementPath();if(f){for(var g in a)if(a[g].checkApplicable(f,b,b.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){a={};g=[]}})}})})();(function(){function b(a){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(b){if(b.editable().hasFocus){var f=b.getSelection(),h;if(h=(new CKEDITOR.dom.elementPath(f.getCommonAncestor(),f.root)).contains({td:1,
th:1},1)){var f=b.createRange(),d=CKEDITOR.tools.tryThese(function(){var b=h.getParent().$.cells[h.$.cellIndex+(a?-1:1)];b.parentNode.parentNode;return b},function(){var b=h.getParent(),b=b.getAscendant("table").$.rows[b.$.rowIndex+(a?-1:1)];return b.cells[a?b.cells.length-1:0]});if(d||a)if(d)d=new CKEDITOR.dom.element(d),f.moveToElementEditStart(d),f.checkStartOfBlock()&&f.checkEndOfBlock()||f.selectNodeContents(d);else return!0;else{for(var e=h.getAscendant("table").$,d=h.getParent().$.cells,e=
new CKEDITOR.dom.element(e.insertRow(-1),b.document),c=0,n=d.length;c<n;c++)e.append((new CKEDITOR.dom.element(d[c],b.document)).clone(!1,!1)).appendBogus();f.moveToElementEditStart(e)}f.select(!0);return!0}}return!1}}}var h={editorFocus:!1,modes:{wysiwyg:1,source:1}},f={exec:function(a){a.container.focusNext(!0,a.tabIndex)}},a={exec:function(a){a.container.focusPrevious(!0,a.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(g){for(var m=!1!==g.config.enableTabKeyTools,k=g.config.tabSpaces||0,
l="";k--;)l+=" ";if(l)g.on("key",function(a){9==a.data.keyCode&&(g.insertText(l),a.cancel())});if(m)g.on("key",function(a){(9==a.data.keyCode&&g.execCommand("selectNextCell")||a.data.keyCode==CKEDITOR.SHIFT+9&&g.execCommand("selectPreviousCell"))&&a.cancel()});g.addCommand("blur",CKEDITOR.tools.extend(f,h));g.addCommand("blurBack",CKEDITOR.tools.extend(a,h));g.addCommand("selectNextCell",b());g.addCommand("selectPreviousCell",b(!0))}})})();CKEDITOR.dom.element.prototype.focusNext=function(b,h){var f=
void 0===h?this.getTabIndex():h,a,g,m,k,l,d;if(0>=f)for(l=this.getNextSourceNode(b,CKEDITOR.NODE_ELEMENT);l;){if(l.isVisible()&&0===l.getTabIndex()){m=l;break}l=l.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(l=this.getDocument().getBody().getFirst();l=l.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!a)if(!g&&l.equals(this)){if(g=!0,b){if(!(l=l.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;a=1}}else g&&!this.contains(l)&&(a=1);if(l.isVisible()&&!(0>(d=l.getTabIndex()))){if(a&&d==f){m=
l;break}d>f&&(!m||!k||d<k)?(m=l,k=d):m||0!==d||(m=l,k=d)}}m&&m.focus()};CKEDITOR.dom.element.prototype.focusPrevious=function(b,h){for(var f=void 0===h?this.getTabIndex():h,a,g,m,k=0,l,d=this.getDocument().getBody().getLast();d=d.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!a)if(!g&&d.equals(this)){if(g=!0,b){if(!(d=d.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;a=1}}else g&&!this.contains(d)&&(a=1);if(d.isVisible()&&!(0>(l=d.getTabIndex())))if(0>=f){if(a&&0===l){m=d;break}l>k&&
(m=d,k=l)}else{if(a&&l==f){m=d;break}l<f&&(!m||l>k)&&(m=d,k=l)}}m&&m.focus()};CKEDITOR.plugins.add("table",{requires:"dialog",init:function(b){function h(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!b.blockless){var f=b.lang.table;b.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height,border-collapse}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];td{border*,background-color,vertical-align,width,height}[colspan,rowspan];"+
(b.plugins.dialogadvtab?"table"+b.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"],["td: splitBorderShorthand"],[{element:"table",right:function(a){if(a.styles){var b;if(a.styles.border)b=CKEDITOR.tools.style.parse.border(a.styles.border);else if(CKEDITOR.env.ie&&8===CKEDITOR.env.version){var f=a.styles;f["border-left"]&&f["border-left"]===f["border-right"]&&f["border-right"]===f["border-top"]&&
f["border-top"]===f["border-bottom"]&&(b=CKEDITOR.tools.style.parse.border(f["border-top"]))}b&&b.style&&"solid"===b.style&&b.width&&0!==parseFloat(b.width)&&(a.attributes.border=1);"collapse"==a.styles["border-collapse"]&&(a.attributes.cellspacing=0)}}}]]}));b.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",h()));b.addCommand("tableDelete",h({exec:function(a){var b=a.elementPath().contains("table",1);if(b){var f=b.getParent(),h=a.editable();1!=f.getChildCount()||f.is("td",
"th")||f.equals(h)||(b=f);a=a.createRange();a.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START);b.remove();a.select()}}}));b.ui.addButton&&b.ui.addButton("Table",{label:f.toolbar,command:"table",toolbar:"insert,30"});CKEDITOR.dialog.add("table",this.path+"dialogs/table.js");CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js");b.addMenuItems&&b.addMenuItems({table:{label:f.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:f.deleteTable,command:"tableDelete",group:"table",
order:1}});b.on("doubleclick",function(a){a.data.element.is("table")&&(a.data.dialog="tableProperties")});b.contextMenu&&b.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}});(function(){function b(a,b){function d(a){return b?b.contains(a)&&a.getAscendant("table",!0).equals(b):!0}function c(a){var b=/^(?:td|th)$/;0<e.length||a.type!=CKEDITOR.NODE_ELEMENT||!b.test(a.getName())||a.getCustomData("selected_cell")||(CKEDITOR.dom.element.setMarker(f,
a,"selected_cell",!0),e.push(a))}var e=[],f={};if(!a)return e;for(var g=a.getRanges(),h=0;h<g.length;h++){var k=g[h];if(k.collapsed)(k=k.getCommonAncestor().getAscendant({td:1,th:1},!0))&&d(k)&&e.push(k);else{var k=new CKEDITOR.dom.walker(k),l;for(k.guard=c;l=k.next();)l.type==CKEDITOR.NODE_ELEMENT&&l.is(CKEDITOR.dtd.table)||(l=l.getAscendant({td:1,th:1},!0))&&!l.getCustomData("selected_cell")&&d(l)&&(CKEDITOR.dom.element.setMarker(f,l,"selected_cell",!0),e.push(l))}}CKEDITOR.dom.element.clearAllMarkers(f);
return e}function h(a,d){for(var c=q(a)?a:b(a),e=c[0],f=e.getAscendant("table"),e=e.getDocument(),g=c[0].getParent(),h=g.$.rowIndex,c=c[c.length-1],k=c.getParent().$.rowIndex+c.$.rowSpan-1,c=new CKEDITOR.dom.element(f.$.rows[k]),h=d?h:k,g=d?g:c,c=CKEDITOR.tools.buildTableMap(f),f=c[h],h=d?c[h-1]:c[h+1],c=c[0].length,e=e.createElement("tr"),k=0;f[k]&&k<c;k++){var l;1<f[k].rowSpan&&h&&f[k]==h[k]?(l=f[k],l.rowSpan+=1):(l=(new CKEDITOR.dom.element(f[k])).clone(),l.removeAttribute("rowSpan"),l.appendBogus(),
e.append(l),l=l.$);k+=l.colSpan-1}d?e.insertBefore(g):e.insertAfter(g);return e}function f(a){if(a instanceof CKEDITOR.dom.selection){var d=a.getRanges(),c=b(a),e=c[0].getAscendant("table"),g=CKEDITOR.tools.buildTableMap(e),h=c[0].getParent().$.rowIndex,c=c[c.length-1],k=c.getParent().$.rowIndex+c.$.rowSpan-1,c=[];a.reset();for(a=h;a<=k;a++){for(var l=g[a],m=new CKEDITOR.dom.element(e.$.rows[a]),n=0;n<l.length;n++){var r=new CKEDITOR.dom.element(l[n]),q=r.getParent().$.rowIndex;1==r.$.rowSpan?r.remove():
(--r.$.rowSpan,q==a&&(q=g[a+1],q[n-1]?r.insertAfter(new CKEDITOR.dom.element(q[n-1])):(new CKEDITOR.dom.element(e.$.rows[a+1])).append(r,1)));n+=r.$.colSpan-1}c.push(m)}g=e.$.rows;d[0].moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);h=new CKEDITOR.dom.element(g[k+1]||(0<h?g[h-1]:null)||e.$.parentNode);for(a=c.length;0<=a;a--)f(c[a]);return e.$.parentNode?h:(d[0].select(),null)}a instanceof CKEDITOR.dom.element&&(e=a.getAscendant("table"),1==e.$.rows.length?e.remove():a.remove());return null}function a(a){for(var b=
a.getParent().$.cells,d=0,c=0;c<b.length;c++){var e=b[c],d=d+e.colSpan;if(e==a.$)break}return d-1}function g(b,d){for(var c=d?Infinity:0,e=0;e<b.length;e++){var f=a(b[e]);if(d?f<c:f>c)c=f}return c}function m(a,d){for(var c=q(a)?a:b(a),e=c[0].getAscendant("table"),f=g(c,1),c=g(c),h=d?f:c,k=CKEDITOR.tools.buildTableMap(e),e=[],f=[],c=[],l=k.length,m=0;m<l;m++){var n=d?k[m][h-1]:k[m][h+1];e.push(k[m][h]);f.push(n)}for(m=0;m<l;m++)e[m]&&(1<e[m].colSpan&&f[m]==e[m]?(k=e[m],k.colSpan+=1):(h=new CKEDITOR.dom.element(e[m]),
k=h.clone(),k.removeAttribute("colSpan"),k.appendBogus(),k[d?"insertBefore":"insertAfter"].call(k,h),c.push(k),k=k.$),m+=k.rowSpan-1);return c}function k(a){function d(a){var b=a.getRanges(),c,e;if(1!==b.length)return a;b=b[0];if(b.collapsed||0!==b.endOffset)return a;c=b.endContainer;e=c.getName().toLowerCase();if("td"!==e&&"th"!==e)return a;for((e=c.getPrevious())||(e=c.getParent().getPrevious().getLast());e.type!==CKEDITOR.NODE_TEXT&&"br"!==e.getName().toLowerCase();)if(e=e.getLast(),!e)return a;
b.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);return b.select()}CKEDITOR.env.webkit&&!a.isFake&&(a=d(a));var c=a.getRanges(),e=b(a),f=e[0],g=e[e.length-1],e=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(e),k,l,m=[];a.reset();var n=0;for(a=h.length;n<a;n++)for(var r=0,q=h[n].length;r<q;r++)void 0===k&&h[n][r]==f.$&&(k=r),h[n][r]==g.$&&(l=r);for(n=k;n<=l;n++)for(r=0;r<h.length;r++)g=h[r],f=new CKEDITOR.dom.element(e.$.rows[r]),g=new CKEDITOR.dom.element(g[n]),g.$&&(1==g.$.colSpan?g.remove():--g.$.colSpan,
r+=g.$.rowSpan-1,f.$.cells.length||m.push(f));k=h[0].length-1>l?new CKEDITOR.dom.element(h[0][l+1]):k&&-1!==h[0][k-1].cellIndex?new CKEDITOR.dom.element(h[0][k-1]):new CKEDITOR.dom.element(e.$.parentNode);m.length==a&&(c[0].moveToPosition(e,CKEDITOR.POSITION_AFTER_END),c[0].select(),e.remove());return k}function l(a,b){var d=a.getStartElement().getAscendant({td:1,th:1},!0);if(d){var c=d.clone();c.appendBogus();b?c.insertBefore(d):c.insertAfter(d)}}function d(a){if(a instanceof CKEDITOR.dom.selection){var c=
a.getRanges(),f=b(a),g=f[0]&&f[0].getAscendant("table"),h;a:{var k=0;h=f.length-1;for(var l={},m,n;m=f[k++];)CKEDITOR.dom.element.setMarker(l,m,"delete_cell",!0);for(k=0;m=f[k++];)if((n=m.getPrevious())&&!n.getCustomData("delete_cell")||(n=m.getNext())&&!n.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(l);h=n;break a}CKEDITOR.dom.element.clearAllMarkers(l);k=f[0].getParent();(k=k.getPrevious())?h=k.getLast():(k=f[h].getParent(),h=(k=k.getNext())?k.getChild(0):null)}a.reset();for(a=
f.length-1;0<=a;a--)d(f[a]);h?e(h,!0):g&&(c[0].moveToPosition(g,CKEDITOR.POSITION_BEFORE_START),c[0].select(),g.remove())}else a instanceof CKEDITOR.dom.element&&(c=a.getParent(),1==c.getChildCount()?c.remove():a.remove())}function e(a,b){var d=a.getDocument(),c=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(c.focus(),d.focus());d=new CKEDITOR.dom.range(d);d["moveToElementEdit"+(b?"End":"Start")](a)||(d.selectNodeContents(a),d.collapse(b?!1:!0));d.select(!0)}function c(a,b,d){a=a[b];
if("undefined"==typeof d)return a;for(b=0;a&&b<a.length;b++){if(d.is&&a[b]==d.$)return b;if(b==d)return new CKEDITOR.dom.element(a[b])}return d.is?-1:null}function n(a,d,e){var f=b(a),g;if((d?1!=f.length:2>f.length)||(g=a.getCommonAncestor())&&g.type==CKEDITOR.NODE_ELEMENT&&g.is("table"))return!1;a=f[0];g=a.getAscendant("table");var h=CKEDITOR.tools.buildTableMap(g),k=h.length,l=h[0].length,m=a.getParent().$.rowIndex,n=c(h,m,a),r;if(d){var q;try{var t=parseInt(a.getAttribute("rowspan"),10)||1;r=parseInt(a.getAttribute("colspan"),
10)||1;q=h["up"==d?m-t:"down"==d?m+t:m]["left"==d?n-r:"right"==d?n+r:n]}catch(H){return!1}if(!q||a.$==q)return!1;f["up"==d||"left"==d?"unshift":"push"](new CKEDITOR.dom.element(q))}d=a.getDocument();var D=m,t=q=0,M=!e&&new CKEDITOR.dom.documentFragment(d),I=0;for(d=0;d<f.length;d++){r=f[d];var K=r.getParent(),F=r.getFirst(),R=r.$.colSpan,S=r.$.rowSpan,K=K.$.rowIndex,N=c(h,K,r),I=I+R*S,t=Math.max(t,N-n+R);q=Math.max(q,K-m+S);e||(R=r,(S=R.getBogus())&&S.remove(),R.trim(),r.getChildren().count()&&(K==
D||!F||F.isBlockBoundary&&F.isBlockBoundary({br:1})||(D=M.getLast(CKEDITOR.dom.walker.whitespaces(!0)),!D||D.is&&D.is("br")||M.append("br")),r.moveChildren(M)),d?r.remove():r.setHtml(""));D=K}if(e)return q*t==I;M.moveChildren(a);a.appendBogus();t>=l?a.removeAttribute("rowSpan"):a.$.rowSpan=q;q>=k?a.removeAttribute("colSpan"):a.$.colSpan=t;e=new CKEDITOR.dom.nodeList(g.$.rows);f=e.count();for(d=f-1;0<=d;d--)g=e.getItem(d),g.$.cells.length||(g.remove(),f++);return a}function r(a,d){var e=b(a);if(1<
e.length)return!1;if(d)return!0;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(g),k=f.$.rowIndex,l=c(h,k,e),m=e.$.rowSpan,n;if(1<m){n=Math.ceil(m/2);for(var m=Math.floor(m/2),f=k+n,g=new CKEDITOR.dom.element(g.$.rows[f]),h=c(h,f),r,f=e.clone(),k=0;k<h.length;k++)if(r=h[k],r.parentNode==g.$&&k>l){f.insertBefore(new CKEDITOR.dom.element(r));break}else r=null;r||g.append(f)}else for(m=n=1,g=f.clone(),g.insertAfter(f),g.append(f=e.clone()),r=c(h,k),l=0;l<r.length;l++)r[l].rowSpan++;
f.appendBogus();e.$.rowSpan=n;f.$.rowSpan=m;1==n&&e.removeAttribute("rowSpan");1==m&&f.removeAttribute("rowSpan");return f}function t(a,d){var e=b(a);if(1<e.length)return!1;if(d)return!0;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),g=CKEDITOR.tools.buildTableMap(g),h=c(g,f.$.rowIndex,e),k=e.$.colSpan;if(1<k)f=Math.ceil(k/2),k=Math.floor(k/2);else{for(var k=f=1,l=[],m=0;m<g.length;m++){var n=g[m];l.push(n[h]);1<n[h].rowSpan&&(m+=n[h].rowSpan-1)}for(g=0;g<l.length;g++)l[g].colSpan++}g=e.clone();
g.insertAfter(e);g.appendBogus();e.$.colSpan=f;g.$.colSpan=k;1==f&&e.removeAttribute("colSpan");1==k&&g.removeAttribute("colSpan");return g}var q=CKEDITOR.tools.isArray;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(a){function c(a){return CKEDITOR.tools.extend(a||{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function g(b,d){var c=a.addCommand(b,d);a.addFeature(c)}var q=a.lang.table,
A=CKEDITOR.tools.style.parse,z="td{width} td{height} td{border-color} td{background-color} td{white-space} td{vertical-align} td{text-align} td[colspan] td[rowspan] th".split(" ");g("cellProperties",new CKEDITOR.dialogCommand("cellProperties",c({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",requiredContent:z,contentTransformations:[[{element:"td",left:function(a){return a.styles.background&&A.background(a.styles.background).color},
right:function(a){a.styles["background-color"]=A.background(a.styles.background).color}},{element:"td",check:"td{vertical-align}",left:function(a){return a.attributes&&a.attributes.valign},right:function(a){a.styles["vertical-align"]=a.attributes.valign;delete a.attributes.valign}}],[{element:"tr",check:"td{height}",left:function(a){return a.styles&&a.styles.height},right:function(a){CKEDITOR.tools.array.forEach(a.children,function(b){b.name in{td:1,th:1}&&(b.attributes["cke-row-height"]=a.styles.height)});
delete a.styles.height}}],[{element:"td",check:"td{height}",left:function(a){return(a=a.attributes)&&a["cke-row-height"]},right:function(a){a.styles.height=a.attributes["cke-row-height"];delete a.attributes["cke-row-height"]}}]]})));CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js");g("rowDelete",c({requiredContent:"table",exec:function(a){a=a.getSelection();(a=f(a))&&e(a)}}));g("rowInsertBefore",c({requiredContent:"table",exec:function(a){a=a.getSelection();a=b(a);h(a,!0)}}));
g("rowInsertAfter",c({requiredContent:"table",exec:function(a){a=a.getSelection();a=b(a);h(a)}}));g("columnDelete",c({requiredContent:"table",exec:function(a){a=a.getSelection();(a=k(a))&&e(a,!0)}}));g("columnInsertBefore",c({requiredContent:"table",exec:function(a){a=a.getSelection();a=b(a);m(a,!0)}}));g("columnInsertAfter",c({requiredContent:"table",exec:function(a){a=a.getSelection();a=b(a);m(a)}}));g("cellDelete",c({requiredContent:"table",exec:function(a){a=a.getSelection();d(a)}}));g("cellMerge",
c({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(a,b){b.cell=n(a.getSelection());e(b.cell,!0)}}));g("cellMergeRight",c({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a,b){b.cell=n(a.getSelection(),"right");e(b.cell,!0)}}));g("cellMergeDown",c({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a,b){b.cell=n(a.getSelection(),"down");e(b.cell,!0)}}));g("cellVerticalSplit",c({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",
exec:function(a){e(t(a.getSelection()))}}));g("cellHorizontalSplit",c({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){e(r(a.getSelection()))}}));g("cellInsertBefore",c({requiredContent:"table",exec:function(a){a=a.getSelection();l(a,!0)}}));g("cellInsertAfter",c({requiredContent:"table",exec:function(a){a=a.getSelection();l(a)}}));a.addMenuItems&&a.addMenuItems({tablecell:{label:q.cell.menu,group:"tablecell",order:1,getItems:function(){var d=a.getSelection(),c=b(d),d=
{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:n(d,null,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:n(d,"right",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:n(d,"down",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:t(d,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:r(d,!0)?CKEDITOR.TRISTATE_OFF:
CKEDITOR.TRISTATE_DISABLED};a.filter.check(z)&&(d.tablecell_properties=0<c.length?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);return d}},tablecell_insertBefore:{label:q.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:q.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:q.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:q.cell.merge,group:"tablecell",command:"cellMerge",
order:16},tablecell_merge_right:{label:q.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:q.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:q.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:q.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:q.cell.title,group:"tablecellproperties",command:"cellProperties",
order:21},tablerow:{label:q.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:q.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:q.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:q.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},
tablecolumn:{label:q.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:q.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:q.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:q.column.deleteColumn,group:"tablecolumn",
command:"columnDelete",order:15}});a.contextMenu&&a.contextMenu.addListener(function(a,b,d){return(a=d.contains({td:1,th:1},1))&&!a.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getCellColIndex:a,insertRow:h,insertColumn:m,getSelectedCells:b};CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)})();CKEDITOR.tools.buildTableMap=function(b,h,f,a,g){b=b.$.rows;f=f||0;a="number"===typeof a?a:b.length-1;g="number"===typeof g?
g:-1;var m=-1,k=[];for(h=h||0;h<=a;h++){m++;!k[m]&&(k[m]=[]);for(var l=-1,d=f;d<=(-1===g?b[h].cells.length-1:g);d++){var e=b[h].cells[d];if(!e)break;for(l++;k[m][l];)l++;for(var c=isNaN(e.colSpan)?1:e.colSpan,e=isNaN(e.rowSpan)?1:e.rowSpan,n=0;n<e&&!(h+n>a);n++){k[m+n]||(k[m+n]=[]);for(var r=0;r<c;r++)k[m+n][l+r]=b[h].cells[d]}l+=c-1;if(-1!==g&&l>=g)break}}return k};(function(){function b(a){return CKEDITOR.plugins.widget&&CKEDITOR.plugins.widget.isDomWidget(a)}function h(a,b){var c=a.getAscendant("table"),
e=b.getAscendant("table"),f=CKEDITOR.tools.buildTableMap(c),g=d(a),h=d(b),k=[],l={},m,n;c.contains(e)&&(b=b.getAscendant({td:1,th:1}),h=d(b));g>h&&(c=g,g=h,h=c,c=a,a=b,b=c);for(c=0;c<f[g].length;c++)if(a.$===f[g][c]){m=c;break}for(c=0;c<f[h].length;c++)if(b.$===f[h][c]){n=c;break}m>n&&(c=m,m=n,n=c);for(c=g;c<=h;c++)for(g=m;g<=n;g++)e=new CKEDITOR.dom.element(f[c][g]),e.$&&!e.getCustomData("selected_cell")&&(k.push(e),CKEDITOR.dom.element.setMarker(l,e,"selected_cell",!0));CKEDITOR.dom.element.clearAllMarkers(l);
return k}function f(a){return(a=a.editable().findOne(".cke_table-faked-selection"))&&a.getAscendant("table")}function a(a,b){var d=a.editable().find(".cke_table-faked-selection"),c=a.editable().findOne("[data-cke-table-faked-selection-table]"),e;a.fire("lockSnapshot");a.editable().removeClass("cke_table-faked-selection-editor");for(e=0;e<d.count();e++)d.getItem(e).removeClass("cke_table-faked-selection");c&&c.data("cke-table-faked-selection-table",!1);a.fire("unlockSnapshot");b&&(p={active:!1},a.getSelection().isInTable()&&
a.getSelection().reset())}function g(a,b){var d=[],c,e;for(e=0;e<b.length;e++)c=a.createRange(),c.setStartBefore(b[e]),c.setEndAfter(b[e]),d.push(c);a.getSelection().selectRanges(d)}function m(a){var b=a.editable().find(".cke_table-faked-selection");1>b.count()||(b=h(b.getItem(0),b.getItem(b.count()-1)),g(a,b))}function k(d,c,e){var f=y(d.getSelection(!0));c=c.is("table")?null:c;var k;(k=p.active&&!p.first)&&!(k=c)&&(k=d.getSelection().getRanges(),k=1<f.length||k[0]&&!k[0].collapsed?!0:!1);if(k)p.first=
c||f[0],p.dirty=c?!1:1!==f.length;else if(p.active&&c&&p.first.getAscendant("table").equals(c.getAscendant("table"))){f=h(p.first,c);if(!p.dirty&&1===f.length&&!b(e.data.getTarget()))return a(d,"mouseup"===e.name);p.dirty=!0;p.last=c;g(d,f)}}function l(b){var d=(b=b.editor||b.sender.editor)&&b.getSelection(),c=d&&d.getRanges()||[],e=c&&c[0].getEnclosedNode(),e=e&&e.type==CKEDITOR.NODE_ELEMENT&&e.is("img"),f;if(d&&(a(b),d.isInTable()&&d.isFake))if(e)b.getSelection().reset();else if(!c[0]._getTableElement({table:1}).hasAttribute("data-cke-tableselection-ignored")){1===
c.length&&c[0]._getTableElement()&&c[0]._getTableElement().is("table")&&(f=c[0]._getTableElement());f=y(d,f);b.fire("lockSnapshot");for(d=0;d<f.length;d++)f[d].addClass("cke_table-faked-selection");0<f.length&&(b.editable().addClass("cke_table-faked-selection-editor"),f[0].getAscendant("table").data("cke-table-faked-selection-table",""));b.fire("unlockSnapshot")}}function d(a){return a.getAscendant("tr",!0).$.rowIndex}function e(d){function c(a,b){return a&&b?a.equals(b)||a.contains(b)||b.contains(a)||
a.getCommonAncestor(b).is(u):!1}function g(a){return!a.getAscendant("table",!0)&&a.getDocument().equals(l.document)}function h(a,b,d,c){if("mousedown"===a.name&&(CKEDITOR.tools.getMouseButton(a)===CKEDITOR.MOUSE_BUTTON_LEFT||!c))return!0;if(b=a.name===(CKEDITOR.env.gecko?"mousedown":"mouseup")&&!g(a.data.getTarget()))a=a.data.getTarget().getAscendant({td:1,th:1},!0),b=!(a&&a.hasClass("cke_table-faked-selection"));return b}if(d.data.getTarget().getName&&("mouseup"===d.name||!b(d.data.getTarget()))){var l=
d.editor||d.listenerData.editor,n=l.getSelection(1),r=f(l),q=d.data.getTarget(),t=q&&q.getAscendant({td:1,th:1},!0),q=q&&q.getAscendant("table",!0),u={table:1,thead:1,tbody:1,tfoot:1,tr:1,td:1,th:1};q&&q.hasAttribute("data-cke-tableselection-ignored")||(h(d,n,r,q)&&a(l,!0),!p.active&&"mousedown"===d.name&&CKEDITOR.tools.getMouseButton(d)===CKEDITOR.MOUSE_BUTTON_LEFT&&q&&(p={active:!0},CKEDITOR.document.on("mouseup",e,null,{editor:l})),(t||q)&&k(l,t||q,d),"mouseup"===d.name&&(CKEDITOR.tools.getMouseButton(d)===
CKEDITOR.MOUSE_BUTTON_LEFT&&(g(d.data.getTarget())||c(r,q))&&m(l),p={active:!1},CKEDITOR.document.removeListener("mouseup",e)))}}function c(a){var b=a.data.getTarget().getAscendant("table",!0);b&&b.hasAttribute("data-cke-tableselection-ignored")||(b=a.data.getTarget().getAscendant({td:1,th:1},!0))&&!b.hasClass("cke_table-faked-selection")&&(a.cancel(),a.data.preventDefault())}function n(a,b){function d(a){a.cancel()}var c=a.getSelection(),e=c.createBookmarks(),f=a.document,g=a.createRange(),h=f.getDocumentElement().$,
k=CKEDITOR.env.ie&&9>CKEDITOR.env.version,l=a.blockless||CKEDITOR.env.ie?"span":"div",m,n,r,p;f.getById("cke_table_copybin")||(m=f.createElement(l),n=f.createElement(l),n.setAttributes({id:"cke_table_copybin","data-cke-temp":"1"}),m.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"}),m.setStyle("ltr"==a.config.contentsLangDirection?"left":"right","-5000px"),m.setHtml(a.getSelectedHtml(!0)),a.fire("lockSnapshot"),n.append(m),a.editable().append(n),p=a.on("selectionChange",d,
null,null,0),k&&(r=h.scrollTop),g.selectNodeContents(m),g.select(),k&&(h.scrollTop=r),setTimeout(function(){n.remove();c.selectBookmarks(e);p.removeListener();a.fire("unlockSnapshot");b&&(a.extractSelectedHtml(),a.fire("saveSnapshot"))},100))}function r(a){var b=a.editor||a.sender.editor,d=b.getSelection();d.isInTable()&&(d.getRanges()[0]._getTableElement({table:1}).hasAttribute("data-cke-tableselection-ignored")||n(b,"cut"===a.name))}function t(a){this._reset();a&&this.setSelectedCells(a)}function q(a,
b,d){a.on("beforeCommandExec",function(d){-1!==CKEDITOR.tools.array.indexOf(b,d.data.name)&&(d.data.selectedCells=y(a.getSelection()))});a.on("afterCommandExec",function(c){-1!==CKEDITOR.tools.array.indexOf(b,c.data.name)&&d(a,c.data)})}var p={active:!1},u,y,v,A,z;t.prototype={};t.prototype._reset=function(){this.cells={first:null,last:null,all:[]};this.rows={first:null,last:null}};t.prototype.setSelectedCells=function(a){this._reset();a=a.slice(0);this._arraySortByDOMOrder(a);this.cells.all=a;this.cells.first=
a[0];this.cells.last=a[a.length-1];this.rows.first=a[0].getAscendant("tr");this.rows.last=this.cells.last.getAscendant("tr")};t.prototype.getTableMap=function(){var a=v(this.cells.first),b;a:{b=this.cells.last;var c=b.getAscendant("table"),e=d(b),c=CKEDITOR.tools.buildTableMap(c),f;for(f=0;f<c[e].length;f++)if((new CKEDITOR.dom.element(c[e][f])).equals(b)){b=f;break a}b=void 0}return CKEDITOR.tools.buildTableMap(this._getTable(),d(this.rows.first),a,d(this.rows.last),b)};t.prototype._getTable=function(){return this.rows.first.getAscendant("table")};
t.prototype.insertRow=function(a,b,d){if("undefined"===typeof a)a=1;else if(0>=a)return;for(var c=this.cells.first.$.cellIndex,e=this.cells.last.$.cellIndex,f=d?[]:this.cells.all,g,h=0;h<a;h++)g=A(d?this.cells.all:f,b),g=CKEDITOR.tools.array.filter(g.find("td, th").toArray(),function(a){return d?!0:a.$.cellIndex>=c&&a.$.cellIndex<=e}),f=b?g.concat(f):f.concat(g);this.setSelectedCells(f)};t.prototype.insertColumn=function(a){function b(a){a=d(a);return a>=f&&a<=g}if("undefined"===typeof a)a=1;else if(0>=
a)return;for(var c=this.cells,e=c.all,f=d(c.first),g=d(c.last),c=0;c<a;c++)e=e.concat(CKEDITOR.tools.array.filter(z(e),b));this.setSelectedCells(e)};t.prototype.emptyCells=function(a){a=a||this.cells.all;for(var b=0;b<a.length;b++)a[b].setHtml("")};t.prototype._arraySortByDOMOrder=function(a){a.sort(function(a,b){return a.getPosition(b)&CKEDITOR.POSITION_PRECEDING?-1:1})};var w={onPaste:function(a){function b(a){var d=c.createRange();d.selectNodeContents(a);d.select()}function d(a){return Math.max.apply(null,
CKEDITOR.tools.array.map(a,function(a){return a.length},0))}var c=a.editor,e=c.getSelection(),f=y(e),k=e.isInTable(!0)&&this.isBoundarySelection(e),l=this.findTableInPastedContent(c,a.data.dataValue),m,n;(function(a,b,d,c){a=a.getRanges();var e=a.length&&a[0]._getTableElement({table:1});if(!b.length||e&&e.hasAttribute("data-cke-tableselection-ignored")||c&&!d)return!1;if(b=!c)(b=a[0])?(b=b.clone(),b.enlarge(CKEDITOR.ENLARGE_ELEMENT),b=(b=b.getEnclosedNode())&&b.is&&b.is(CKEDITOR.dtd.$tableContent)):
b=void 0,b=!b;return b?!1:!0})(e,f,l,k)&&(f=f[0].getAscendant("table"),m=new t(y(e,f)),c.once("afterPaste",function(){var a;if(n){a=new CKEDITOR.dom.element(n[0][0]);var b=n[n.length-1];a=h(a,new CKEDITOR.dom.element(b[b.length-1]))}else a=m.cells.all;g(c,a)}),l?(a.stop(),k?(m.insertRow(1,1===k,!0),e.selectElement(m.rows.first)):(m.emptyCells(),g(c,m.cells.all)),a=m.getTableMap(),n=CKEDITOR.tools.buildTableMap(l),m.insertRow(n.length-a.length),m.insertColumn(d(n)-d(a)),a=m.getTableMap(),this.pasteTable(m,
a,n),c.fire("saveSnapshot"),setTimeout(function(){c.fire("afterPaste")},0)):(b(m.cells.first),c.once("afterPaste",function(){c.fire("lockSnapshot");m.emptyCells(m.cells.all.slice(1));g(c,m.cells.all);c.fire("unlockSnapshot")})))},isBoundarySelection:function(a){a=a.getRanges()[0];var b=a.endContainer.getAscendant("tr",!0);if(b&&a.collapsed){if(a.checkBoundaryOfElement(b,CKEDITOR.START))return 1;if(a.checkBoundaryOfElement(b,CKEDITOR.END))return 2}return 0},findTableInPastedContent:function(a,b){var d=
a.dataProcessor,c=new CKEDITOR.dom.element("body");d||(d=new CKEDITOR.htmlDataProcessor(a));c.setHtml(d.toHtml(b),{fixForBody:!1});return 1<c.getChildCount()?null:c.findOne("table")},pasteTable:function(a,b,d){var c,e=v(a.cells.first),f=a._getTable(),g={},h,k,l,m;for(l=0;l<d.length;l++)for(h=new CKEDITOR.dom.element(f.$.rows[a.rows.first.$.rowIndex+l]),m=0;m<d[l].length;m++)if(k=new CKEDITOR.dom.element(d[l][m]),c=b[l]&&b[l][m]?new CKEDITOR.dom.element(b[l][m]):null,k&&!k.getCustomData("processed")){if(c&&
c.getParent())k.replace(c);else if(0===m||d[l][m-1])(c=0!==m?new CKEDITOR.dom.element(d[l][m-1]):null)&&h.equals(c.getParent())?k.insertAfter(c):0<e?h.$.cells[e]?k.insertAfter(new CKEDITOR.dom.element(h.$.cells[e])):h.append(k):h.append(k,!0);CKEDITOR.dom.element.setMarker(g,k,"processed",!0)}else k.getCustomData("processed")&&c&&c.remove();CKEDITOR.dom.element.clearAllMarkers(g)}};CKEDITOR.plugins.tableselection={getCellsBetween:h,keyboardIntegration:function(a){function b(a){var d=a.getEnclosedNode();
d&&"function"===typeof d.is&&d.is({td:1,th:1})?d.setText(""):a.deleteContents();CKEDITOR.tools.array.forEach(a._find("td"),function(a){a.appendBogus()})}var d=a.editable();d.attachListener(d,"keydown",function(a){function d(b,c){if(!c.length)return null;var f=a.createRange(),g=CKEDITOR.dom.range.mergeRanges(c);CKEDITOR.tools.array.forEach(g,function(a){a.enlarge(CKEDITOR.ENLARGE_ELEMENT)});var h=g[0].getBoundaryNodes(),k=h.startNode,h=h.endNode;if(k&&k.is&&k.is(e)){for(var l=k.getAscendant("table",
!0),m=k.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT,l),n=!1,r=function(a){return!k.contains(a)&&a.is&&a.is("td","th")};m&&!r(m);)m=m.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT,l);!m&&h&&h.is&&!h.is("table")&&h.getNext()&&(m=h.getNext().findOne("td, th"),n=!0);if(m)f["moveToElementEdit"+(n?"Start":"End")](m);else f.setStartBefore(k.getAscendant("table",!0)),f.collapse(!0);g[0].deleteContents();return[f]}if(k)return f.moveToElementEditablePosition(k),[f]}var c={37:1,38:1,39:1,40:1,8:1,46:1,13:1},
e=CKEDITOR.tools.extend({table:1},CKEDITOR.dtd.$tableContent);delete e.td;delete e.th;return function(e){var f=e.data.getKey(),g=e.data.getKeystroke(),h,k=37===f||38==f,l,m,n;if(c[f]&&!a.readOnly&&(h=a.getSelection())&&h.isInTable()&&h.isFake){l=h.getRanges();m=l[0]._getTableElement();n=l[l.length-1]._getTableElement();if(13!==f||a.plugins.enterkey)e.data.preventDefault(),e.cancel();if(36<f&&41>f)l[0].moveToElementEditablePosition(k?m:n,!k),h.selectRanges([l[0]]);else if(13!==f||13===g||g===CKEDITOR.SHIFT+
13){for(e=0;e<l.length;e++)b(l[e]);(e=d(m,l))?l=e:l[0].moveToElementEditablePosition(m);h.selectRanges(l);13===f&&a.plugins.enterkey?(a.fire("lockSnapshot"),13===g?a.execCommand("enter"):a.execCommand("shiftEnter"),a.fire("unlockSnapshot"),a.fire("saveSnapshot")):13!==f&&a.fire("saveSnapshot")}}}}(a),null,null,-1);d.attachListener(d,"keypress",function(d){var c=a.getSelection(),e=d.data.$.charCode||13===d.data.getKey(),f;if(!a.readOnly&&c&&c.isInTable()&&c.isFake&&e&&!(d.data.getKeystroke()&CKEDITOR.CTRL)){d=
c.getRanges();e=d[0].getEnclosedNode().getAscendant({td:1,th:1},!0);for(f=0;f<d.length;f++)b(d[f]);e&&(d[0].moveToElementEditablePosition(e),c.selectRanges([d[0]]))}},null,null,-1)}};CKEDITOR.plugins.add("tableselection",{requires:"clipboard,tabletools",isSupportedEnvironment:function(){return!(CKEDITOR.env.ie&&11>CKEDITOR.env.version)},onLoad:function(){u=CKEDITOR.plugins.tabletools;y=u.getSelectedCells;v=u.getCellColIndex;A=u.insertRow;z=u.insertColumn;CKEDITOR.document.appendStyleSheet(this.path+
"styles/tableselection.css")},init:function(b){this.isSupportedEnvironment()&&(b.addContentsCss&&b.addContentsCss(this.path+"styles/tableselection.css"),b.on("contentDom",function(){var a=b.editable(),d=a.isInline()?a:b.document,f={editor:b};a.attachListener(d,"mousedown",e,null,f);a.attachListener(d,"mousemove",e,null,f);a.attachListener(d,"mouseup",e,null,f);a.attachListener(a,"dragstart",c);a.attachListener(b,"selectionCheck",l);CKEDITOR.plugins.tableselection.keyboardIntegration(b);CKEDITOR.plugins.clipboard&&
!CKEDITOR.plugins.clipboard.isCustomCopyCutSupported&&(a.attachListener(a,"cut",r),a.attachListener(a,"copy",r))}),b.on("paste",w.onPaste,w),q(b,"rowInsertBefore rowInsertAfter columnInsertBefore columnInsertAfter cellInsertBefore cellInsertAfter".split(" "),function(a,b){g(a,b.selectedCells)}),q(b,["cellMerge","cellMergeRight","cellMergeDown"],function(a,b){g(a,[b.commandData.cell])}),q(b,["cellDelete"],function(b){a(b,!0)}))}})})();(function(){CKEDITOR.plugins.add("templates",{requires:"dialog",
init:function(b){CKEDITOR.dialog.add("templates",CKEDITOR.getUrl(this.path+"dialogs/templates.js"));b.addCommand("templates",new CKEDITOR.dialogCommand("templates"));b.ui.addButton&&b.ui.addButton("Templates",{label:b.lang.templates.button,command:"templates",toolbar:"doctools,10"})}});var b={},h={};CKEDITOR.addTemplates=function(f,a){b[f]=a};CKEDITOR.getTemplates=function(f){return b[f]};CKEDITOR.loadTemplates=function(b,a){for(var g=[],m=0,k=b.length;m<k;m++)h[b[m]]||(g.push(b[m]),h[b[m]]=1);g.length?
CKEDITOR.scriptLoader.load(g,a):setTimeout(a,0)}})();CKEDITOR.config.templates_files=[CKEDITOR.getUrl("plugins/templates/templates/default.js")];CKEDITOR.config.templates_replaceContent=!0;"use strict";(function(){function b(a,b){return CKEDITOR.tools.array.reduce(b,function(a,b){return b(a)},a)}var h=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SHIFT+90],f={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(b){function e(a){f.enabled&&!1!==a.data.command.canUndo&&f.save()}function c(){f.enabled=
b.readOnly?!1:"wysiwyg"==b.mode;f.onChange()}var f=b.undoManager=new a(b),g=f.editingHandler=new k(f),l=b.addCommand("undo",{exec:function(){f.undo()&&(b.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),m=b.addCommand("redo",{exec:function(){f.redo()&&(b.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});b.setKeystroke([[h[0],"undo"],[h[1],"redo"],[h[2],"redo"]]);f.onChange=function(){l.setState(f.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);
m.setState(f.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};b.on("beforeCommandExec",e);b.on("afterCommandExec",e);b.on("saveSnapshot",function(a){f.save(a.data&&a.data.contentOnly)});b.on("contentDom",g.attachListeners,g);b.on("instanceReady",function(){b.fire("saveSnapshot")});b.on("beforeModeUnload",function(){"wysiwyg"==b.mode&&f.save(!0)});b.on("mode",c);b.on("readOnly",c);b.ui.addButton&&(b.ui.addButton("Undo",{label:b.lang.undo.undo,command:"undo",toolbar:"undo,10"}),b.ui.addButton("Redo",
{label:b.lang.undo.redo,command:"redo",toolbar:"undo,20"}));b.resetUndo=function(){f.reset();b.fire("saveSnapshot")};b.on("updateSnapshot",function(){f.currentImage&&f.update()});b.on("lockSnapshot",function(a){a=a.data;f.lock(a&&a.dontUpdate,a&&a.forceUpdate)});b.on("unlockSnapshot",f.unlock,f)}});CKEDITOR.plugins.undo={};var a=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._filterRules=[];this.editor=a;this.reset();CKEDITOR.env.ie&&this.addFilterRule(function(a){return a.replace(/\s+data-cke-expando=".*?"/g,"")})};a.prototype={type:function(b,e){var c=a.getKeyGroup(b),f=this.strokesRecorded[c]+1;e=e||f>=this.strokesLimit;this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange());e?(f=0,this.editor.fire("saveSnapshot")):this.editor.fire("change");this.strokesRecorded[c]=f;this.previousKeyGroup=c},keyGroupChanged:function(b){return a.getKeyGroup(b)!=
this.previousKeyGroup},reset:function(){this.snapshots=[];this.index=-1;this.currentImage=null;this.hasRedo=this.hasUndo=!1;this.locked=null;this.resetType()},resetType:function(){this.strokesRecorded=[0,0];this.typing=!1;this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(!0);this.hasRedo=!!this.getNextImage(!1);this.resetType();this.onChange()},save:function(a,b,c){var f=this.editor;if(this.locked||"ready"!=f.status||"wysiwyg"!=f.mode)return!1;var h=f.editable();if(!h||
"ready"!=h.status)return!1;h=this.snapshots;b||(b=new g(f));if(!1===b.contents)return!1;if(this.currentImage)if(b.equalsContent(this.currentImage)){if(a||b.equalsSelection(this.currentImage))return!1}else!1!==c&&f.fire("change");h.splice(this.index+1,h.length-this.index-1);h.length==this.limit&&h.shift();this.index=h.push(b)-1;this.currentImage=b;!1!==c&&this.refreshState();return!0},restoreImage:function(a){var b=this.editor,c;a.bookmarks&&(b.focus(),c=b.getSelection());this.locked={level:999};this.editor.loadSnapshot(a.contents);
a.bookmarks?c.selectBookmarks(a.bookmarks):CKEDITOR.env.ie&&(c=this.editor.document.getBody().$.createTextRange(),c.collapse(!0),c.select());this.locked=null;this.index=a.index;this.currentImage=this.snapshots[this.index];this.update();this.refreshState();b.fire("change")},getNextImage:function(a){var b=this.snapshots,c=this.currentImage,f;if(c)if(a)for(f=this.index-1;0<=f;f--){if(a=b[f],!c.equalsContent(a))return a.index=f,a}else for(f=this.index+1;f<b.length;f++)if(a=b[f],!c.equalsContent(a))return a.index=
f,a;return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(!0);var a=this.getNextImage(!0);if(a)return this.restoreImage(a),!0}return!1},redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var a=this.getNextImage(!1);if(a)return this.restoreImage(a),!0}return!1},update:function(a){if(!this.locked){a||(a=new g(this.editor));for(var b=this.index,c=this.snapshots;0<b&&this.currentImage.equalsContent(c[b-
1]);)--b;c.splice(b,this.index-b+1,a);this.index=b;this.currentImage=a}},updateSelection:function(a){if(!this.snapshots.length)return!1;var b=this.snapshots,c=b[b.length-1];return c.equalsContent(a)&&!c.equalsSelection(a)?(this.currentImage=b[b.length-1]=a,!0):!1},lock:function(a,b){if(this.locked)this.locked.level++;else if(a)this.locked={level:1};else{var c=null;if(b)c=!0;else{var f=new g(this.editor,!0);this.currentImage&&this.currentImage.equalsContent(f)&&(c=f)}this.locked={update:c,level:1}}},
unlock:function(){if(this.locked&&!--this.locked.level){var a=this.locked.update;this.locked=null;if(!0===a)this.update();else if(a){var b=new g(this.editor,!0);a.equalsContent(b)||this.update()}}},addFilterRule:function(a){this._filterRules.push(a)}};a.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1};a.keyGroups={PRINTABLE:0,FUNCTIONAL:1};a.isNavigationKey=function(b){return!!a.navigationKeyCodes[b]};a.getKeyGroup=function(b){var e=a.keyGroups;return f[b]?e.FUNCTIONAL:e.PRINTABLE};a.getOppositeKeyGroup=
function(b){var e=a.keyGroups;return b==e.FUNCTIONAL?e.PRINTABLE:e.FUNCTIONAL};a.ieFunctionalKeysBug=function(b){return CKEDITOR.env.ie&&a.getKeyGroup(b)==a.keyGroups.FUNCTIONAL};var g=CKEDITOR.plugins.undo.Image=function(a,e){this.editor=a;a.fire("beforeUndoImage");var c=a.getSnapshot();c&&(this.contents=b(c,a.undoManager._filterRules));e||(this.bookmarks=(c=c&&a.getSelection())&&c.createBookmarks2(!0));a.fire("afterUndoImage")},m=/\b(?:href|src|name)="[^"]*?"/gi;g.prototype={equalsContent:function(a){var b=
this.contents;a=a.contents;CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(b=b.replace(m,""),a=a.replace(m,""));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 f=b[c],g=a[c];if(f.startOffset!=g.startOffset||f.endOffset!=g.endOffset||!CKEDITOR.tools.arrayCompare(f.start,g.start)||!CKEDITOR.tools.arrayCompare(f.end,g.end))return!1}}return!0}};var k=CKEDITOR.plugins.undo.NativeEditingHandler=
function(a){this.undoManager=a;this.ignoreInputEvent=!1;this.keyEventsStack=new l;this.lastKeydownImage=null};k.prototype={onKeydown:function(b){var e=b.data.getKey();if(229!==e)if(-1<CKEDITOR.tools.indexOf(h,b.data.getKeystroke()))b.data.preventDefault();else if(this.keyEventsStack.cleanUp(b),b=this.undoManager,this.keyEventsStack.getLast(e)||this.keyEventsStack.push(e),this.lastKeydownImage=new g(b.editor),a.isNavigationKey(e)||this.undoManager.keyGroupChanged(e))if(b.strokesRecorded[0]||b.strokesRecorded[1])b.save(!1,
this.lastKeydownImage,!1),b.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(b){var e=this.undoManager;b=b.data.getKey();var c=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(b);
if(!(a.ieFunctionalKeysBug(b)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new g(e.editor,!0))))if(0<c)e.type(b);else if(a.isNavigationKey(b))this.onNavigationKey(!0)},onNavigationKey:function(a){var b=this.undoManager;!a&&b.save(!0,null,!1)||b.updateSelection(new g(b.editor));b.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=!0},activateInputEventListener:function(){this.ignoreInputEvent=!1},attachListeners:function(){var b=this.undoManager.editor,e=b.editable(),
c=this;e.attachListener(e,"keydown",function(b){c.onKeydown(b);if(a.ieFunctionalKeysBug(b.data.getKey()))c.onInput()},null,null,999);e.attachListener(e,CKEDITOR.env.ie?"keypress":"input",c.onInput,c,null,999);e.attachListener(e,"keyup",c.onKeyup,c,null,999);e.attachListener(e,"paste",c.ignoreInputEventListener,c,null,999);e.attachListener(e,"drop",c.ignoreInputEventListener,c,null,999);b.on("afterPaste",c.activateInputEventListener,c,null,999);e.attachListener(e.isInline()?e:b.document.getDocumentElement(),
"click",function(){c.onNavigationKey()},null,null,999);e.attachListener(this.undoManager.editor,"blur",function(){c.keyEventsStack.remove(9)},null,null,999)}};var l=CKEDITOR.plugins.undo.KeyEventsStack=function(){this.stack=[]};l.prototype={push:function(a){a=this.stack.push({keyCode:a,inputs:0});return this.stack[a-1]},getLastIndex:function(a){if("number"!=typeof a)return this.stack.length-1;for(var b=this.stack.length;b--;)if(this.stack[b].keyCode==a)return b;return-1},getLast:function(a){a=this.getLastIndex(a);
return-1!=a?this.stack[a]:null},increment:function(a){this.getLast(a).inputs++},remove:function(a){a=this.getLastIndex(a);-1!=a&&this.stack.splice(a,1)},resetInputs:function(a){if("number"==typeof a)this.getLast(a).inputs=0;else for(a=this.stack.length;a--;)this.stack[a].inputs=0},getTotalInputs:function(){for(var a=this.stack.length,b=0;a--;)b+=this.stack[a].inputs;return b},cleanUp:function(a){a=a.data.$;a.ctrlKey||a.metaKey||this.remove(17);a.shiftKey||this.remove(16);a.altKey||this.remove(18)}}})();
"use strict";(function(){function b(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 h(a,b){CKEDITOR.tools.extend(this,b,{editor:a},!0)}function f(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),h=CKEDITOR.tools.bind(this.hideVisible,this),k=CKEDITOR.tools.bind(this.removeAll,this);c.attachListener(this.winTop,"resize",f);c.attachListener(this.winTop,"scroll",f);c.attachListener(this.winTop,"resize",h);c.attachListener(this.win,"scroll",h);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",k);a.on("destroy",k);this.lineTpl=(new CKEDITOR.template('\x3cdiv data-cke-lineutils-line\x3d"1" class\x3d"cke_reset_all" style\x3d"{lineStyle}"\x3e\x3cspan style\x3d"{tipLeftStyle}"\x3e\x26nbsp;\x3c/span\x3e\x3cspan style\x3d"{tipRightStyle}"\x3e\x26nbsp;\x3c/span\x3e\x3c/div\x3e')).output({lineStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},
m,this.lineStyle,!0)),tipLeftStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},g,{left:"0px","border-left-color":"red","border-width":"6px 0 6px 6px"},this.tipCss,this.tipLeftStyle,!0)),tipRightStyle:CKEDITOR.tools.writeCssText(CKEDITOR.tools.extend({},g,{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=!(k[a.getComputedStyle("float")]||k[a.getAttribute("align")]);return b&&
!l[a.getComputedStyle("position")]}CKEDITOR.plugins.add("lineutils");CKEDITOR.LINEUTILS_BEFORE=1;CKEDITOR.LINEUTILS_AFTER=2;CKEDITOR.LINEUTILS_INSIDE=4;b.prototype={start:function(a){var b=this,c=this.editor,f=this.doc,g,h,k,l,m=CKEDITOR.tools.eventsBuffer(50,function(){c.readOnly||"wysiwyg"!=c.mode||(b.relations={},(h=f.$.elementFromPoint(k,l))&&h.nodeType&&(g=new CKEDITOR.dom.element(h),b.traverseSearch(g),isNaN(k+l)||b.pixelSearch(g,k,l),a&&a(b.relations,k,l)))});this.listener=this.editable.attachListener(this.target,
"mousemove",function(a){k=a.data.$.clientX;l=a.data.$.clientY;m.input()});this.editable.attachListener(this.inline?this.editable:this.frame,"mouseout",function(){m.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,d,f){var g=a.getUniqueId();g in f?f[g].type|=d:f[g]={element:a,type:d}}return function(e,c){var f;c&CKEDITOR.LINEUTILS_AFTER&&a(f=e.getNext())&&f.isVisible()&&(b(f,CKEDITOR.LINEUTILS_BEFORE,this.relations),c^=CKEDITOR.LINEUTILS_AFTER);c&CKEDITOR.LINEUTILS_INSIDE&&a(f=e.getFirst())&&f.isVisible()&&(b(f,CKEDITOR.LINEUTILS_BEFORE,this.relations),c^=CKEDITOR.LINEUTILS_INSIDE);b(e,c,this.relations)}}(),traverseSearch:function(b){var e,c,f;do if(f=b.$["data-cke-expando"],
!(f&&f in this.relations)){if(b.equals(this.editable))break;if(a(b))for(e in this.lookups)(c=this.lookups[e](b))&&this.store(b,c)}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 l=0,m;k(g);){g+=h;if(25==++l)break;if(m=this.doc.$.elementFromPoint(f,g))if(m==d)l=0;else if(e(d,m)&&(l=0,a(m=new CKEDITOR.dom.element(m))))return m}}var e=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 g=this.win.getViewPaneSize().height,h=b.call(this,c.$,e,f,-1,function(a){return 0<a});e=b.call(this,c.$,e,f,1,function(a){return a<g});if(h)for(this.traverseSearch(h);!h.getParent().equals(c);)h=h.getParent();if(e)for(this.traverseSearch(e);!e.getParent().equals(c);)e=e.getParent();for(;h||e;){h&&(h=h.getNext(a));if(!h||h.equals(e))break;this.traverseSearch(h);e&&(e=e.getPrevious(a));if(!e||e.equals(h))break;this.traverseSearch(e)}}}(),
greedySearch:function(){this.relations={};for(var b=this.editable.getElementsByTag("*"),e=0,c,f,g;c=b.getItem(e++);)if(!c.equals(this.editable)&&c.type==CKEDITOR.NODE_ELEMENT&&(c.hasAttribute("contenteditable")||!c.isReadOnly())&&a(c)&&c.isVisible())for(g in this.lookups)(f=this.lookups[g](c))&&this.store(c,f);return this.relations}};h.prototype={locate:function(){function b(d,c){var f=d.element[c===CKEDITOR.LINEUTILS_BEFORE?"getPrevious":"getNext"]();return f&&a(f)?(d.siblingRect=f.getClientRect(),
c==CKEDITOR.LINEUTILS_BEFORE?(d.siblingRect.bottom+d.elementRect.top)/2:(d.elementRect.bottom+d.siblingRect.top)/2):c==CKEDITOR.LINEUTILS_BEFORE?d.elementRect.top:d.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(g,h){a=this.locations;b=[];for(var k in a)for(var l in a[k])if(c=Math.abs(g-a[k][l]),b.length){for(f=0;f<b.length;f++)if(c<b[f].dist){b.splice(f,0,{uid:+k,type:l,dist:c});break}f==b.length&&b.push({uid:+k,type:l,dist:c})}else b.push({uid:+k,type:l,dist:c});return"undefined"!=typeof h?b.slice(0,h):b}}(),store:function(a,
b,c){this.locations[a]||(this.locations[a]={});this.locations[a][b]=c}};var g={display:"block",width:"0px",height:"0px","border-color":"transparent","border-style":"solid",position:"absolute",top:"-6px"},m={height:"0px","border-top":"1px dashed red",position:"absolute","z-index":9999};f.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,g;if(c=this.getStyle(a.uid,a.type)){for(g in this.visible)if(this.visible[g].getCustomData("hash")!==this.hash){f=this.visible[g];break}if(!f)for(g in this.hidden)if(this.hidden[g].getCustomData("hash")!==this.hash){this.showLine(f=this.hidden[g]);
break}f||this.showLine(f=this.addLine());f.setCustomData("hash",this.hash);this.visible[f.getUniqueId()]=f;f.setStyles(c);b&&b(f)}},getStyle:function(a,b){var c=this.relations[a],f=this.locations[a][b],g={};g.width=c.siblingRect?Math.max(c.siblingRect.width,c.elementRect.width):c.elementRect.width;g.top=this.inline?f+this.winTopScroll.y-this.rect.relativeY:this.rect.top+this.winTopScroll.y+f;if(g.top-this.winTopScroll.y<this.rect.top||g.top-this.winTopScroll.y>this.rect.bottom)return!1;this.inline?
g.left=c.elementRect.left-this.rect.relativeX:(0<c.elementRect.left?g.left=this.rect.left+c.elementRect.left:(g.width+=c.elementRect.left,g.left=this.rect.left),0<(c=g.left+g.width-(this.rect.left+this.winPane.width))&&(g.width-=c));g.left+=this.winTopScroll.x;for(var h in g)g[h]=CKEDITOR.tools.cssLength(g[h]);return g},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 k={left:1,right:1,center:1},l={absolute:1,fixed:1};CKEDITOR.plugins.lineutils={finder:b,locator:h,liner:f}})();(function(){function b(b){return b.getName&&!b.hasAttribute("data-cke-temp")}CKEDITOR.plugins.add("widgetselection",{init:function(b){if(CKEDITOR.env.webkit){var f=CKEDITOR.plugins.widgetselection;b.on("contentDom",function(a){a=a.editor;var b=
a.editable();b.attachListener(b,"keydown",function(a){a.data.getKeystroke()==CKEDITOR.CTRL+65&&CKEDITOR.tools.setTimeout(function(){f.addFillers(b)||f.removeFillers(b)},0)},null,null,-1);a.on("selectionCheck",function(a){f.removeFillers(a.editor.editable())});a.on("paste",function(a){a.data.dataValue=f.cleanPasteData(a.data.dataValue)});"selectall"in a.plugins&&f.addSelectAllIntegration(a)})}}});CKEDITOR.plugins.widgetselection={startFiller:null,endFiller:null,fillerAttribute:"data-cke-filler-webkit",
fillerContent:"\x26nbsp;",fillerTagName:"div",addFillers:function(h){var f=h.editor;if(!this.isWholeContentSelected(h)&&0<h.getChildCount()){var a=h.getFirst(b),g=h.getLast(b);a&&a.type==CKEDITOR.NODE_ELEMENT&&!a.isEditable()&&(this.startFiller=this.createFiller(),h.append(this.startFiller,1));g&&g.type==CKEDITOR.NODE_ELEMENT&&!g.isEditable()&&(this.endFiller=this.createFiller(!0),h.append(this.endFiller,0));if(this.hasFiller(h))return f=f.createRange(),f.selectNodeContents(h),f.select(),!0}return!1},
removeFillers:function(b){if(this.hasFiller(b)&&!this.isWholeContentSelected(b)){var f=b.findOne(this.fillerTagName+"["+this.fillerAttribute+"\x3dstart]"),a=b.findOne(this.fillerTagName+"["+this.fillerAttribute+"\x3dend]");this.startFiller&&f&&this.startFiller.equals(f)?this.removeFiller(this.startFiller,b):this.startFiller=f;this.endFiller&&a&&this.endFiller.equals(a)?this.removeFiller(this.endFiller,b):this.endFiller=a}},cleanPasteData:function(b){b&&b.length&&(b=b.replace(this.createFillerRegex(),
"").replace(this.createFillerRegex(!0),""));return b},isWholeContentSelected:function(b){var f=b.editor.getSelection().getRanges()[0];return!f||f&&f.collapsed?!1:(f=f.clone(),f.enlarge(CKEDITOR.ENLARGE_ELEMENT),!!(f&&b&&f.startContainer&&f.endContainer&&0===f.startOffset&&f.endOffset===b.getChildCount()&&f.startContainer.equals(b)&&f.endContainer.equals(b)))},hasFiller:function(b){return 0<b.find(this.fillerTagName+"["+this.fillerAttribute+"]").count()},createFiller:function(b){var f=new CKEDITOR.dom.element(this.fillerTagName);
f.setHtml(this.fillerContent);f.setAttribute(this.fillerAttribute,b?"end":"start");f.setAttribute("data-cke-temp",1);f.setStyles({display:"block",width:0,height:0,padding:0,border:0,margin:0,position:"absolute",top:0,left:"-9999px",opacity:0,overflow:"hidden"});return f},removeFiller:function(b,f){if(b){var a=f.editor,g=f.editor.getSelection().getRanges()[0].startPath(),m=a.createRange(),k,l;g.contains(b)&&(k=b.getHtml(),l=!0);g="start"==b.getAttribute(this.fillerAttribute);b.remove();k&&0<k.length&&
k!=this.fillerContent?(f.insertHtmlIntoRange(k,a.getSelection().getRanges()[0]),m.setStartAt(f.getChild(f.getChildCount()-1),CKEDITOR.POSITION_BEFORE_END),a.getSelection().selectRanges([m])):l&&(g?m.setStartAt(f.getFirst().getNext(),CKEDITOR.POSITION_AFTER_START):m.setEndAt(f.getLast().getPrevious(),CKEDITOR.POSITION_BEFORE_END),f.editor.getSelection().selectRanges([m]))}},createFillerRegex:function(b){var f=this.createFiller(b).getOuterHtml().replace(/style="[^"]*"/gi,'style\x3d"[^"]*"').replace(/>[^<]*</gi,
"\x3e[^\x3c]*\x3c");return new RegExp((b?"":"^")+f+(b?"$":""))},addSelectAllIntegration:function(b){var f=this;b.editable().attachListener(b,"beforeCommandExec",function(a){var g=b.editable();"selectAll"==a.data.name&&g&&f.addFillers(g)},null,null,9999)}}})();"use strict";(function(){function b(a){this.editor=a;this.registered={};this.instances={};this.selected=[];this.widgetHoldingFocusedEditable=this.focused=null;this._={nextId:0,upcasts:[],upcastCallbacks:[],filters:{}};G(this);C(this);this.on("checkWidgets",
k);this.editor.on("contentDomInvalidated",this.checkWidgets,this);B(this);z(this);w(this);A(this);x(this)}function h(a,b,c,d,e){var f=a.editor;CKEDITOR.tools.extend(this,d,{editor:f,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:h.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);R(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;W(this);this.fire("data",this.data);this.isInited()&&f.editable().contains(this.wrapper)&&(this.ready=!0,this.fire("ready"))}function f(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({editor:a,commandData:c});else if(b.template){var e="function"==
typeof b.defaults?b.defaults():b.defaults,e=CKEDITOR.dom.element.createFromHtml(b.template.output(e),a.document),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 g(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 m(a,b){a.focused=null;if(b.isInited()){var c=b.editor.checkDirty();a.fire("widgetBlurred",{widget:b});b.setFocused(!1);!c&&b.editor.resetDirty()}}function k(a){a=a.data;if("wysiwyg"==this.editor.mode){var b=this.editor.editable(),c=this.instances,d,e,f,g;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++){f=k.getItem(d);if(g=!this.getByElement(f,!0)){a:{g=p;for(var l=f;l=l.getParent();)if(g(l)){g=!0;break a}g=!1}g=!g}g&&b.contains(f)&&(f.addClass("cke_widget_new"),c.push(this.initOn(f.getFirst(h.isDomWidgetElement))))}}a&&a.focusInited&&1==c.length&&c[0].focus()}}}function l(a){if("undefined"!=typeof a.attributes&&a.attributes["data-widget"]){var b=d(a),c=e(a),f=!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;"),f=!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;"),f=!0);f&&(a.attributes["data-cke-widget-white-space"]=1)}}function d(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 c(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 n(a){var b=[],c=a._.upcasts,d=a._.upcastCallbacks;return{toBeWrapped:b,iterator:function(a){var e,f,g,k,l;if("data-cke-widget-wrapper"in a.attributes)return(a=a.getFirst(h.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],g={},f=e[0](a,g))return f instanceof CKEDITOR.htmlParser.element&&(a=f),a.attributes["data-cke-widget-data"]=encodeURIComponent(JSON.stringify(g)),a.attributes["data-cke-widget-upcasted"]=1,b.push([a,e[1]]),!1}}}}function r(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 t(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 t(e,b,c)}}a.add(c,b)}function q(a,b){return"boolean"==typeof a.inline?a.inline:!!CKEDITOR.dtd.$inline[b]}function p(a){return a.hasAttribute("data-cke-temp")}function u(a,b,c,d){var e=a.editor;e.fire("lockSnapshot");c?(d=c.data("cke-widget-editable"),d=b.editables[d],a.widgetHoldingFocusedEditable=
b,b.focusedEditable=d,c.addClass("cke_widget_editable_focused"),d.filter&&e.setActiveFilter(d.filter),e.setActiveEnterMode(d.enterMode,d.shiftEnterMode)):(d||b.focusedEditable.removeClass("cke_widget_editable_focused"),b.focusedEditable=null,a.widgetHoldingFocusedEditable=null,e.setActiveFilter(null),e.setActiveEnterMode(null,null));e.fire("unlockSnapshot")}function y(a){a.contextMenu&&a.contextMenu.addListener(function(b){if(b=a.widgets.getByElement(b,!0))return b.fire("contextMenu",{})})}function v(a,
b){return CKEDITOR.tools.trim(b)}function A(a){var b=a.editor,c=CKEDITOR.plugins.lineutils;b.on("dragstart",function(c){var d=c.data.target;h.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",e.getClipboardHtml()),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)&&!h.isDomNestedEditable(b)&&
!a._.draggedWidget.wrapper.contains(b)){var c=h.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 z(a){var b=
a.editor;b.on("contentDom",function(){var c=b.editable(),d=c.isInline()?c:b.document,e,f;c.attachListener(d,"mousedown",function(c){var d=c.data.getTarget();e=d instanceof CKEDITOR.dom.element?a.getByElement(d):null;f=0;e&&(e.inline&&d.type==CKEDITOR.NODE_ELEMENT&&d.hasAttribute("data-cke-widget-drag-handler")?(f=1,a.focused!=e&&b.getSelection().removeAllRanges()):h.getNestedEditable(e.wrapper,d)?e=null:(c.data.preventDefault(),CKEDITOR.env.ie||e.focus()))});c.attachListener(d,"mouseup",function(){f&&
e&&e.wrapper&&(f=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&&!h.getNestedEditable(c.wrapper,b.data.element))return c.fire("doubleclick",{element:b.data.element})},null,null,1)}function w(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 x(a){function b(d){1>a.selected.length||M(c,"cut"===d.name)}var c=a.editor;c.on("contentDom",function(){var a=c.editable();a.attachListener(a,
"copy",b);a.attachListener(a,"cut",b)})}function B(a){function b(){a.fire("checkSelection")}var c=a.editor;c.on("selectionCheck",b);c.on("contentDom",function(){c.editable().attachListener(c,"key",function(){setTimeout(b,10)})});a.on("checkSelection",a.checkSelection,a);c.on("selectionChange",function(b){var d=(b=h.getNestedEditable(c.editable(),b.data.selection.getStartElement()))&&a.getByElement(b),e=a.widgetHoldingFocusedEditable;e?e===d&&e.focusedEditable.equals(b)||(u(a,e,null),d&&b&&u(a,d,b)):
d&&b&&u(a,d,b)});c.on("dataReady",function(){E(a).commit()});c.on("blur",function(){var b;(b=a.focused)&&m(a,b);(b=a.widgetHoldingFocusedEditable)&&u(a,b,null)})}function C(a){var b=a.editor,c={};b.on("toDataFormat",function(b){var f=CKEDITOR.tools.getNextNumber(),g=[];b.data.downcastingSessionId=f;c[f]=g;b.data.dataValue.forEach(function(b){var c=b.attributes,f;if("data-cke-widget-white-space"in c){f=d(b);var k=e(b);f.parent.attributes["data-cke-white-space-first"]&&(f.value=f.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"]])f=b.getFirst(h.isParserWidgetElement),g.push({wrapper:b,element:f,widget:c,editables:{}}),"1"!=f.attributes["data-cke-widget-keep-attr"]&&delete f.attributes["data-widget"]}else if("data-cke-widget-editable"in c)return 0<g.length&&(g[g.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)for(var b=c[a.data.downcastingSessionId],d,e,f,g,h,k;d=b.shift();){e=d.widget;f=d.element;g=e._.downcastFn&&e._.downcastFn.call(e,f);a.data.widgetsCopy&&e.getClipboardHtml&&(g=CKEDITOR.htmlParser.fragment.fromHtml(e.getClipboardHtml()),g=g.children[0]);for(k in d.editables)h=d.editables[k],delete h.attributes.contenteditable,h.setHtml(e.editables[k].getData());g||(g=f);d.wrapper.replaceWith(g)}},null,null,13);b.on("contentDomUnload",function(){a.destroyAll(!0)})}
function G(a){var b=a.editor,c,d;b.on("toHtml",function(b){var d=n(a),e;for(b.data.dataValue.forEach(d.iterator,CKEDITOR.NODE_ELEMENT,!0);e=d.toBeWrapped.pop();){var f=e[0],g=f.parent;g.type==CKEDITOR.NODE_ELEMENT&&g.attributes["data-cke-widget-wrapper"]&&g.replaceWith(f);a.wrapElement(e[0],e[1])}c=b.data.protectedWhitespaces?3==b.data.dataValue.children.length&&h.isParserWidgetWrapper(b.data.dataValue.children[1]):1==b.data.dataValue.children.length&&h.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,f,g=0,k=c.count();g<k;++g)e=c.getItem(g),f=e.getFirst(h.isDomWidgetElement),f.type==CKEDITOR.NODE_ELEMENT&&f.data("widget")?(f.replace(e),a.wrapElement(f)):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(X,v);a.range&&(a=h.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 E(a){var b=a.selected,c=[],d=b.slice(0),e=null;return{select:function(a){0>CKEDITOR.tools.indexOf(b,a)&&c.push(a);a=CKEDITOR.tools.indexOf(d,a);0<=a&&d.splice(a,1);return this},focus:function(a){e=a;return this},
commit:function(){var f=a.focused!==e,g,h;a.editor.fire("lockSnapshot");for(f&&(g=a.focused)&&m(a,g);g=d.pop();)b.splice(CKEDITOR.tools.indexOf(b,g),1),g.isInited()&&(h=g.editor.checkDirty(),g.setSelected(!1),!h&&g.editor.resetDirty());f&&e&&(h=a.editor.checkDirty(),a.focused=e,a.fire("widgetFocused",{widget:e}),e.setFocused(!0),!h&&a.editor.resetDirty());for(;g=c.pop();)b.push(g),g.setSelected(!0);a.editor.fire("unlockSnapshot")}}}function J(a){a&&a.addFilterRule(function(a){return a.replace(/\s*cke_widget_selected/g,
"").replace(/\s*cke_widget_focused/g,"").replace(/<span[^>]*cke_widget_drag_handler_container[^>]*.*?<\/span>/gmi,"")})}function H(a,b,c){var d=0;b=I(b);var e=a.data.classes||{},f;if(b){for(e=CKEDITOR.tools.clone(e);f=b.pop();)c?e[f]||(d=e[f]=1):e[f]&&(delete e[f],d=1);d&&a.setData("classes",e)}}function D(a){a.cancel()}function M(a,b){function c(){var b=a.getSelectedHtml(!0);if(a.widgets.focused)return a.widgets.focused.getClipboardHtml();a.once("toDataFormat",function(a){a.data.widgetsCopy=!0},
null,null,-1);return a.dataProcessor.toDataFormat(b)}var d=a.widgets.focused,e,f,g;T.hasCopyBin(a)||(f=new T(a,{beforeDestroy:function(){!b&&d&&d.focus();g&&a.getSelection().selectBookmarks(g);e&&CKEDITOR.plugins.widgetselection.addFillers(a.editable())},afterDestroy:function(){b&&!a.readOnly&&(d?a.widgets.del(d):a.extractSelectedHtml(),a.fire("saveSnapshot"))}}),d||(e=CKEDITOR.env.webkit&&CKEDITOR.plugins.widgetselection.isWholeContentSelected(a.editable()),g=a.getSelection().createBookmarks(!0)),
f.handle(c()))}function I(a){return(a=(a=a.getDefinition().attributes)&&a["class"])?a.split(/\s+/):null}function K(){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 F(){CKEDITOR.env.gecko&&this.editor.unlockSelection();CKEDITOR.env.webkit||(this.editor.forceNextSelectionCheck(),this.editor.selectionChange(1))}function R(a,b){S(a);N(a);Y(a);U(a);O(a);aa(a);ba(a);if(CKEDITOR.env.ie&&9>CKEDITOR.env.version)a.wrapper.on("dragstart",
function(b){var c=b.data.getTarget();h.getNestedEditable(a,c)||a.inline&&h.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){M(a.editor,b==CKEDITOR.CTRL+88);return}if(b in Q||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 S(a){(a.wrapper=a.element.getParent()).setAttribute("data-cke-widget-id",a.id)}function N(a){if(a.parts){var b={},c,d;for(d in a.parts)c=a.wrapper.findOne(a.parts[d]),b[d]=c;a.parts=b}}function Y(a){var b=a.editables,c,d;a.editables={};if(a.editables)for(c in b)d=b[c],a.initEditable(c,"string"==typeof d?{selector:d}:d)}function U(a){if(!0===a.mask)Z(a);else if(a.mask){var b=new CKEDITOR.tools.buffers.throttle(250,ga,a),c=CKEDITOR.env.gecko?300:0,d,e;
a.on("focus",function(){b.input();d=a.editor.on("change",b.input);e=a.on("blur",function(){d.removeListener();e.removeListener()})});a.editor.on("instanceReady",function(){setTimeout(function(){b.input()},c)});a.editor.on("mode",function(){setTimeout(function(){b.input()},c)});if(CKEDITOR.env.gecko){var f=a.element.find("img");CKEDITOR.tools.array.forEach(f.toArray(),function(a){a.on("load",function(){b.input()})})}for(var g in a.editables)a.editables[g].on("focus",function(){a.editor.on("change",
b.input);e&&e.removeListener()}),a.editables[g].on("blur",function(){a.editor.removeListener("change",b.input)});b.input()}}function Z(a){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 ga(){if(this.wrapper){this.maskPart=this.maskPart||this.mask;var a=this.parts[this.maskPart],b;if(a){b=this.wrapper.findOne(".cke_widget_partial_mask");
b||(b=new CKEDITOR.dom.element("img",this.editor.document),b.setAttributes({src:CKEDITOR.tools.transparentImageData,"class":"cke_reset cke_widget_partial_mask"}),this.wrapper.append(b));this.mask=b;var c=b.$,d=a.$,e=!(c.offsetTop==d.offsetTop&&c.offsetLeft==d.offsetLeft);if(c.offsetWidth!=d.offsetWidth||c.offsetHeight!=d.offsetHeight||e)c=a.getParent(),d=CKEDITOR.plugins.widget.isDomWidget(c),b.setStyles({top:a.$.offsetTop+(d?0:c.$.offsetTop)+"px",left:a.$.offsetLeft+(d?0:c.$.offsetLeft)+"px",width:a.$.offsetWidth+
"px",height:a.$.offsetHeight+"px"})}}}function O(a){if(a.draggable){var b=a.editor,c=a.wrapper.getLast(h.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);display:none;"}),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",V,a),CKEDITOR.env.ie&&9>CKEDITOR.env.version))d.on("dragstart",
function(a){a.data.preventDefault(!0)});a.dragHandlerContainer=c}}function V(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=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 ba(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 W(a){a.element.data("cke-widget-data",
encodeURIComponent(JSON.stringify(a.data)))}function da(){function a(){}function b(a,c,d){return d&&this.checkElement(a)?(a=d.widgets.getByElement(a,!0))&&a.checkStyleActive(this):!1}function c(a){function b(a,c,d){for(var e=a.length,f=0;f<e;){if(c.call(d,a[f],f,a))return a[f];f++}}function e(a){function b(a,c){var d=CKEDITOR.tools.object.keys(a),e=CKEDITOR.tools.object.keys(c);if(d.length!==e.length)return!1;for(var f in a)if(("object"!==typeof a[f]||"object"!==typeof c[f]||!b(a[f],c[f]))&&a[f]!==
c[f])return!1;return!0}return function(c){return b(a.getDefinition(),c.getDefinition())}}var f=a.widget,g;d[f]||(d[f]={});for(var h=0,k=a.group.length;h<k;h++)g=a.group[h],d[f][g]||(d[f][g]=[]),g=d[f][g],b(g,e(a))||g.push(a)}var d={};CKEDITOR.style.addCustomHandler({type:"widget",setup:function(a){this.widget=a.widget;(this.group="string"==typeof a.group?[a.group]:a.group)&&c(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=!1,c,e;if(!(a instanceof CKEDITOR.editor))return!1;e=a.elementPath();if(this.checkApplicable(e,a))for(var f=0,g=this.group.length;f<g;f++){c=d[this.widget][this.group[f]];for(var h=0;h<c.length;h++)c[h]!==this&&c[h].checkActive(e,a)&&(a.widgets.focused.removeStyle(c[h]),
b=!0)}return b},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 h.isDomWidgetWrapper(a)?(a=a.getFirst(h.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:block;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}.cke_editable[contenteditable\x3d"false"] .cke_widget_drag_handler_container{display:none;}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_widget_partial_mask{position:absolute;display:block}.cke_editable.cke_widget_dragging, .cke_editable.cke_widget_dragging *{cursor:move !important}'),
da())},beforeInit:function(a){void 0!==CKEDITOR.document.$.querySelectorAll&&(a.widgets=new b(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"});y(a);J(a.undoManager)}}});b.prototype={MIN_SELECTION_CHECK_INTERVAL:500,add:function(b,c){var d=this.editor;c=CKEDITOR.tools.prototypedCopy(c);c.name=b;
c._=c._||{};d.fire("widgetDefinition",c);c.template&&(c.template=new CKEDITOR.template(c.template));a(d,c);g(this,c);this.registered[b]=c;if(c.dialog&&d.plugins.dialog)var e=CKEDITOR.on("dialogDefinition",function(a){a=a.data.definition;var b=a.dialog;a.getMode||b.getName()!==c.dialog||(a.getMode=function(){var a=b.getModel(d);return a&&a instanceof CKEDITOR.plugins.widget&&a.ready?CKEDITOR.dialog.EDITING_MODE:CKEDITOR.dialog.CREATION_MODE});e.removeListener()});return c},addUpcastCallback:function(a){this._.upcastCallbacks.push(a)},
checkSelection:function(){var a=this.editor.getSelection(),b=a.getSelectedElement(),c=E(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=h.isDomWidgetWrapper;b=a.next();)c.select(this.getByElement(b));c.commit()},checkWidgets:function(a){this.fire("checkWidgets",CKEDITOR.tools.copy(a||{}))},del:function(a){if(this.focused===a){var b=a.editor,c=b.createRange(),d;(d=c.moveToClosestEditablePosition(a.wrapper,
!0))||(d=c.moveToClosestEditablePosition(a.wrapper,!1));d&&b.getSelection().selectRanges([c])}a.wrapper.remove();this.destroy(a,!0)},destroy:function(a,b){this.widgetHoldingFocusedEditable===a&&u(this,a,null,b);a.destroy(b);delete this.instances[a.id];this.fire("instanceDestroyed",a)},destroyAll:function(a,b){var c,d,e=this.instances;if(b&&!a){d=b.find(".cke_widget_wrapper");for(var e=d.count(),f=0;f<e;++f)(c=this.getByElement(d.getItem(f),!0))&&this.destroy(c)}else for(d in e)c=e[d],this.destroy(c,
a)},finalizeCreation:function(a){(a=a.getFirst())&&h.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 h(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(h.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=q(d,a.getName()))&&l(a);c=new CKEDITOR.dom.element(e?"span":"div",a.getDocument());c.setAttributes(r(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=q(d,a.name))&&l(a);c=new CKEDITOR.htmlParser.element(e?"span":"div",r(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&&t(d,f,c)}return c},_tests_createEditableFilter:c};CKEDITOR.event.implementOn(b.prototype);h.prototype=
{addClass:function(a){this.element.addClass(a);this.wrapper.addClass(h.WRAPPER_CLASS_PREFIX+a)},applyStyle:function(a){H(this,a,1)},checkStyleActive:function(a){a=I(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],d=!0;c.removeListener("focus",F);c.removeListener("blur",K);this.editor.focusManager.remove(c);if(c.filter){for(var e in this.repository.instances){var f=this.repository.instances[e];f.editables&&(f=f.editables[a])&&f!==c&&c.filter===f.filter&&(d=!1)}d&&(c.filter.destroy(),(d=this.repository._.filters[this.name])&&
delete d[a])}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()}))},b);return!0},getClasses:function(){return this.repository.parseElementClasses(this.element.getAttribute("class"))},getClipboardHtml:function(){var a=this.editor.createRange();a.setStartBefore(this.wrapper);a.setEndAfter(this.wrapper);return this.editor.editable().getHtmlFromRange(a).getHtml()},
hasClass:function(a){return this.element.hasClass(a)},initEditable:function(a,b){var d=this._findOneNotNested(b.selector);return d&&d.is(CKEDITOR.dtd.$editable)?(d=new f(this.editor,d,{filter:c.call(this.repository,this.name,a,b)}),this.editables[a]=d,d.setAttributes({contenteditable:"true","data-cke-widget-editable":a,"data-cke-enter-mode":d.enterMode}),d.filter&&d.data("cke-filter",d.filter.id),d.addClass("cke_widget_editable"),d.removeClass("cke_widget_editable_focused"),b.pathName&&d.data("cke-display-name",
b.pathName),this.editor.focusManager.add(d),d.on("focus",F,this),CKEDITOR.env.ie&&d.on("blur",K,this),d._.initialSetData=!0,d.setData(d.getHtml()),!0):!1},_findOneNotNested:function(a){a=this.wrapper.find(a);for(var b,c,d=0;d<a.count();d++)if(b=a.getItem(d),c=b.getAscendant(h.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(h.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&&(W(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"}),this.dragHandlerContainer.removeStyle("display"),a.fire("unlockSnapshot"),
!c&&a.resetDirty(),this._.dragHandlerOffset=b)}};CKEDITOR.event.implementOn(h.prototype);h.getNestedEditable=function(a,b){return!b||b.equals(a)?null:h.isDomNestedEditable(b)?b:h.getNestedEditable(a,b.getParent())};h.isDomDragHandler=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-drag-handler")};h.isDomDragHandlerContainer=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasClass("cke_widget_drag_handler_container")};h.isDomNestedEditable=function(a){return a.type==
CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-editable")};h.isDomWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-widget")};h.isDomWidgetWrapper=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.hasAttribute("data-cke-widget-wrapper")};h.isDomWidget=function(a){return a?this.isDomWidgetWrapper(a)||this.isDomWidgetElement(a):!1};h.isParserWidgetElement=function(a){return a.type==CKEDITOR.NODE_ELEMENT&&!!a.attributes["data-widget"]};h.isParserWidgetWrapper=
function(a){return a.type==CKEDITOR.NODE_ELEMENT&&!!a.attributes["data-cke-widget-wrapper"]};h.WRAPPER_CLASS_PREFIX="cke_widget_wrapper_";f.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 X=/^(?:<(?: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,Q={37:1,38:1,39:1,40:1,8:1,46:1};Q[CKEDITOR.SHIFT+121]=1;
var T=CKEDITOR.tools.createClass({$:function(a,b){this._.createCopyBin(a,b);this._.createListeners(b)},_:{createCopyBin:function(a){var b=a.document,c=CKEDITOR.env.edge&&16<=CKEDITOR.env.version,d=!a.blockless&&!CKEDITOR.env.ie||c?"div":"span",c=b.createElement(d),b=b.createElement(d);b.setAttributes({id:"cke_copybin","data-cke-temp":"1"});c.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"});c.setStyle("ltr"==a.config.contentsLangDirection?"left":"right","-5000px");this.editor=
a;this.copyBin=c;this.container=b},createListeners:function(a){a&&(a.beforeDestroy&&(this.beforeDestroy=a.beforeDestroy),a.afterDestroy&&(this.afterDestroy=a.afterDestroy))}},proto:{handle:function(a){var b=this.copyBin,c=this.editor,d=this.container,e=CKEDITOR.env.ie&&9>CKEDITOR.env.version,f=c.document.getDocumentElement().$,g=c.createRange(),h=this,k=CKEDITOR.env.mac&&CKEDITOR.env.webkit,l=k?100:0,m=window.requestAnimationFrame&&!k?requestAnimationFrame:setTimeout,n,p,q;b.setHtml('\x3cspan data-cke-copybin-start\x3d"1"\x3e​\x3c/span\x3e'+
a+'\x3cspan data-cke-copybin-end\x3d"1"\x3e​\x3c/span\x3e');c.fire("lockSnapshot");d.append(b);c.editable().append(d);n=c.on("selectionChange",D,null,null,0);p=c.widgets.on("checkSelection",D,null,null,0);e&&(q=f.scrollTop);g.selectNodeContents(b);g.select();e&&(f.scrollTop=q);return new CKEDITOR.tools.promise(function(a){m(function(){h.beforeDestroy&&h.beforeDestroy();d.remove();n.removeListener();p.removeListener();c.fire("unlockSnapshot");h.afterDestroy&&h.afterDestroy();a()},l)})}},statics:{hasCopyBin:function(a){return!!T.getCopyBin(a)},
getCopyBin:function(a){return a.document.getById("cke_copybin")}}});CKEDITOR.plugins.widget=h;h.repository=b;h.nestedEditable=f})();(function(){function b(b,a,g){this.editor=b;this.notification=null;this._message=new CKEDITOR.template(a);this._singularMessage=g?new CKEDITOR.template(g):null;this._tasks=[];this._doneTasks=this._doneWeights=this._totalWeights=0}function h(b){this._weight=b||1;this._doneWeight=0;this._isCanceled=!1}CKEDITOR.plugins.add("notificationaggregator",{requires:"notification"});
b.prototype={createTask:function(b){b=b||{};var a=!this.notification,g;a&&(this.notification=this._createNotification());g=this._addTask(b);g.on("updated",this._onTaskUpdate,this);g.on("done",this._onTaskDone,this);g.on("canceled",function(){this._removeTask(g)},this);this.update();a&&this.notification.show();return g},update:function(){this._updateNotification();this.isFinished()&&this.fire("finished")},getPercentage:function(){return 0===this.getTaskCount()?1:this._doneWeights/this._totalWeights},
isFinished:function(){return this.getDoneTaskCount()===this.getTaskCount()},getTaskCount:function(){return this._tasks.length},getDoneTaskCount:function(){return this._doneTasks},_updateNotification:function(){this.notification.update({message:this._getNotificationMessage(),progress:this.getPercentage()})},_getNotificationMessage:function(){var b=this.getTaskCount(),a={current:this.getDoneTaskCount(),max:b,percentage:Math.round(100*this.getPercentage())};return(1==b&&this._singularMessage?this._singularMessage:
this._message).output(a)},_createNotification:function(){return new CKEDITOR.plugins.notification(this.editor,{type:"progress"})},_addTask:function(b){b=new h(b.weight);this._tasks.push(b);this._totalWeights+=b._weight;return b},_removeTask:function(b){var a=CKEDITOR.tools.indexOf(this._tasks,b);-1!==a&&(b._doneWeight&&(this._doneWeights-=b._doneWeight),this._totalWeights-=b._weight,this._tasks.splice(a,1),this.update())},_onTaskUpdate:function(b){this._doneWeights+=b.data;this.update()},_onTaskDone:function(){this._doneTasks+=
1;this.update()}};CKEDITOR.event.implementOn(b.prototype);h.prototype={done:function(){this.update(this._weight)},update:function(b){if(!this.isDone()&&!this.isCanceled()){b=Math.min(this._weight,b);var a=b-this._doneWeight;this._doneWeight=b;this.fire("updated",a);this.isDone()&&this.fire("done")}},cancel:function(){this.isDone()||this.isCanceled()||(this._isCanceled=!0,this.fire("canceled"))},isDone:function(){return this._weight===this._doneWeight},isCanceled:function(){return this._isCanceled}};
CKEDITOR.event.implementOn(h.prototype);CKEDITOR.plugins.notificationAggregator=b;CKEDITOR.plugins.notificationAggregator.task=h})();"use strict";(function(){CKEDITOR.plugins.add("uploadwidget",{requires:"widget,clipboard,filetools,notificationaggregator",init:function(b){b.filter.allow("*[!data-widget,!data-cke-upload-id]")},isSupportedEnvironment:function(){return CKEDITOR.plugins.clipboard.isFileApiSupported}});CKEDITOR.fileTools||(CKEDITOR.fileTools={});CKEDITOR.tools.extend(CKEDITOR.fileTools,
{addUploadWidget:function(b,h,f){var a=CKEDITOR.fileTools,g=b.uploadRepository,m=f.supportedTypes?10:20;if(f.fileToElement)b.on("paste",function(f){f=f.data;var l=b.widgets.registered[h],d=f.dataTransfer,e=d.getFilesCount(),c=l.loadMethod||"loadAndUpload",m,r;if(!f.dataValue&&e)for(r=0;r<e;r++)if(m=d.getFile(r),!l.supportedTypes||a.isTypeSupported(m,l.supportedTypes)){var t=l.fileToElement(m);m=g.create(m,void 0,l.loaderType);t&&(m[c](l.uploadUrl,l.additionalRequestParameters),CKEDITOR.fileTools.markElement(t,
h,m.id),"loadAndUpload"!=c&&"upload"!=c||l.skipNotifications||CKEDITOR.fileTools.bindNotifications(b,m),f.dataValue+=t.getOuterHtml())}},null,null,m);CKEDITOR.tools.extend(f,{downcast:function(){return new CKEDITOR.htmlParser.text("")},init:function(){var a=this,f=this.wrapper.findOne("[data-cke-upload-id]").data("cke-upload-id"),d=g.loaders[f],e=CKEDITOR.tools.capitalize,c,h;d.on("update",function(g){if("abort"===d.status&&"function"===typeof a.onAbort)a.onAbort(d);if(a.wrapper&&a.wrapper.getParent()){b.fire("lockSnapshot");
g="on"+e(d.status);if("abort"===d.status||"function"!==typeof a[g]||!1!==a[g](d))h="cke_upload_"+d.status,a.wrapper&&h!=c&&(c&&a.wrapper.removeClass(c),a.wrapper.addClass(h),c=h),"error"!=d.status&&"abort"!=d.status||b.widgets.del(a);b.fire("unlockSnapshot")}else CKEDITOR.instances[b.name]&&b.editable().find('[data-cke-upload-id\x3d"'+f+'"]').count()||d.abort(),g.removeListener()});d.update()},replaceWith:function(a,f){if(""===a.trim())b.widgets.del(this);else{var d=this==b.widgets.focused,e=b.editable(),
c=b.createRange(),g,h;d||(h=b.getSelection().createBookmarks());c.setStartBefore(this.wrapper);c.setEndAfter(this.wrapper);d&&(g=c.createBookmark());e.insertHtmlIntoRange(a,c,f);b.widgets.checkWidgets({initOnlyNew:!0});b.widgets.destroy(this,!0);d?(c.moveToBookmark(g),c.select()):b.getSelection().selectBookmarks(h)}},_getLoader:function(){var a=this.wrapper.findOne("[data-cke-upload-id]");return a?this.editor.uploadRepository.loaders[a.data("cke-upload-id")]:null}});b.widgets.add(h,f)},markElement:function(b,
h,f){b.setAttributes({"data-cke-upload-id":f,"data-widget":h})},bindNotifications:function(b,h){function f(){a=b._.uploadWidgetNotificaionAggregator;if(!a||a.isFinished())a=b._.uploadWidgetNotificaionAggregator=new CKEDITOR.plugins.notificationAggregator(b,b.lang.uploadwidget.uploadMany,b.lang.uploadwidget.uploadOne),a.once("finished",function(){var f=a.getTaskCount();0===f?a.notification.hide():a.notification.update({message:1==f?b.lang.uploadwidget.doneOne:b.lang.uploadwidget.doneMany.replace("%1",
f),type:"success",important:1})})}var a,g=null;h.on("update",function(){!g&&h.uploadTotal&&(f(),g=a.createTask({weight:h.uploadTotal}));g&&"uploading"==h.status&&g.update(h.uploaded)});h.on("uploaded",function(){g&&g.done()});h.on("error",function(){g&&g.cancel();b.showNotification(h.message,"warning")});h.on("abort",function(){g&&g.cancel();CKEDITOR.instances[b.name]&&b.showNotification(b.lang.uploadwidget.abort,"info")})}})})();"use strict";(function(){function b(a){9>=a&&(a="0"+a);return String(a)}
function h(a){var g=new Date,g=[g.getFullYear(),g.getMonth()+1,g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds()];f+=1;return"image-"+CKEDITOR.tools.array.map(g,b).join("")+"-"+f+"."+a}var f=0;CKEDITOR.plugins.add("uploadimage",{requires:"uploadwidget",onLoad:function(){CKEDITOR.addCss(".cke_upload_uploading img{opacity: 0.3}")},isSupportedEnvironment:function(){return CKEDITOR.plugins.clipboard.isFileApiSupported},init:function(a){if(this.isSupportedEnvironment()){var b=CKEDITOR.fileTools,f=
b.getUploadUrl(a.config,"image");f&&(b.addUploadWidget(a,"uploadimage",{supportedTypes:/image\/(jpeg|png|gif|bmp)/,uploadUrl:f,fileToElement:function(){var a=new CKEDITOR.dom.element("img");a.setAttribute("src","data:image/gif;base64,R0lGODlhDgAOAIAAAAAAAP///yH5BAAAAAAALAAAAAAOAA4AAAIMhI+py+0Po5y02qsKADs\x3d");return a},parts:{img:"img"},onUploading:function(a){this.parts.img.setAttribute("src",a.data)},onUploaded:function(a){var b=this.parts.img.$;this.replaceWith('\x3cimg src\x3d"'+a.url+'" width\x3d"'+
(a.responseData.width||b.naturalWidth)+'" height\x3d"'+(a.responseData.height||b.naturalHeight)+'"\x3e')}}),a.on("paste",function(k){if(k.data.dataValue.match(/<img[\s\S]+data:/i)){k=k.data;var l=document.implementation.createHTMLDocument(""),l=new CKEDITOR.dom.element(l.body),d,e,c;l.data("cke-editable",1);l.appendHtml(k.dataValue);d=l.find("img");for(c=0;c<d.count();c++){e=d.getItem(c);var n=e.getAttribute("src"),r=n&&"data:"==n.substring(0,5),t=null===e.data("cke-realelement");r&&t&&!e.data("cke-upload-id")&&
!e.isReadOnly(1)&&(r=(r=n.match(/image\/([a-z]+?);/i))&&r[1]||"jpg",n=a.uploadRepository.create(n,h(r)),n.upload(f),b.markElement(e,"uploadimage",n.id),b.bindNotifications(a,n))}k.dataValue=l.getHtml()}}))}}})})();(function(){function b(a){function b(a){var d=!1;c.attachListener(c,"keydown",function(){var b=l.getBody().getElementsByTag(a);if(!d){for(var c=0;c<b.count();c++)b.getItem(c).setCustomData("retain",!0);d=!0}},null,null,1);c.attachListener(c,"keyup",function(){var b=l.getElementsByTag(a);
d&&(1==b.count()&&!b.getItem(0).getCustomData("retain")&&CKEDITOR.tools.isEmpty(b.getItem(0).getAttributes())&&b.getItem(0).remove(1),d=!1)})}var f=this.editor;if(f&&!f.isDetached()){var l=a.document,d=l.body,e=l.getElementById("cke_actscrpt");e&&e.parentNode.removeChild(e);(e=l.getElementById("cke_shimscrpt"))&&e.parentNode.removeChild(e);(e=l.getElementById("cke_basetagscrpt"))&&e.parentNode.removeChild(e);d.contentEditable=!0;CKEDITOR.env.ie&&(d.hideFocus=!0,d.disabled=!0,d.removeAttribute("disabled"));
delete this._.isLoadingData;this.$=d;l=new CKEDITOR.dom.document(l);this.setup();this.fixInitialSelection();var c=this;CKEDITOR.env.ie&&!CKEDITOR.env.edge&&l.getDocumentElement().addClass(l.$.compatMode);CKEDITOR.env.ie&&!CKEDITOR.env.edge&&f.enterMode!=CKEDITOR.ENTER_P?b("p"):CKEDITOR.env.edge&&15>CKEDITOR.env.version&&f.enterMode!=CKEDITOR.ENTER_DIV&&b("div");if(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version)l.getDocumentElement().on("mousedown",function(a){a.data.getTarget().is("html")&&
setTimeout(function(){f.editable().focus()})});h(f);try{f.document.$.execCommand("2D-position",!1,!0)}catch(n){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==f.document.$.compatMode)&&this.attachListener(this,"keydown",function(a){var b=a.data.getKeystroke();if(33==b||34==b)if(CKEDITOR.env.ie)setTimeout(function(){f.getSelection().scrollIntoView()},0);else if(f.window.$.innerHeight>this.$.offsetHeight){var c=f.createRange();c[33==b?"moveToElementEditStart":"moveToElementEditEnd"](this);c.select();
a.data.preventDefault()}});CKEDITOR.env.ie&&this.attachListener(l,"blur",function(){try{l.$.selection.empty()}catch(a){}});CKEDITOR.env.iOS&&this.attachListener(l,"touchend",function(){a.focus()});d=f.document.getElementsByTag("title").getItem(0);d.data("cke-title",d.getText());CKEDITOR.env.ie&&(f.document.$.title=this._.docTitle);CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready");f.fire("contentDom");this._.isPendingFocus&&(f.focus(),this._.isPendingFocus=!1);setTimeout(function(){f.fire("dataReady")},
0)},0,this)}}function h(a){function b(){var d;a.editable().attachListener(a,"selectionChange",function(){var b=a.getSelection().getSelectedElement();b&&(d&&(d.detachEvent("onresizestart",f),d=null),b.$.attachEvent("onresizestart",f),d=b.$)})}function f(a){a.returnValue=!1}if(CKEDITOR.env.gecko)try{var h=a.document.$;h.execCommand("enableObjectResizing",!1,!a.config.disableObjectResizing);h.execCommand("enableInlineTableEditing",!1,!a.config.disableNativeTableHandles)}catch(d){}else CKEDITOR.env.ie&&
11>CKEDITOR.env.version&&a.config.disableObjectResizing&&b(a)}function f(){var a=[];if(8<=CKEDITOR.document.$.documentMode){a.push("html.CSS1Compat [contenteditable\x3dfalse]{min-height:0 !important}");var b=[],f;for(f in CKEDITOR.dtd.$removeEmpty)b.push("html.CSS1Compat "+f+"[contenteditable\x3dfalse]");a.push(b.join(",")+"{display:inline-block}")}else CKEDITOR.env.gecko&&(a.push("html{height:100% !important}"),a.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"));
a.push("html{cursor:text;*cursor:auto}");a.push("img,input,textarea{cursor:default}");return a.join("\n")}var a;CKEDITOR.plugins.add("wysiwygarea",{init:function(b){b.config.fullPage&&b.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"});b.addMode("wysiwyg",function(f){function h(c){c&&c.removeListener();b.isDestroyed()||b.isDetached()||(b.editable(new a(b,d.$.contentWindow.document.body)),b.setData(b.getData(1),f))}var l="document.open();"+
(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",l=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(l)+"}())":"",d=CKEDITOR.dom.element.createFromHtml('\x3ciframe src\x3d"'+l+'" frameBorder\x3d"0"\x3e\x3c/iframe\x3e');d.setStyles({width:"100%",height:"100%"});d.addClass("cke_wysiwyg_frame").addClass("cke_reset");l=b.ui.space("contents");l.append(d);var e=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;
if(e)d.on("load",h);var c=b.title,n=b.fire("ariaEditorHelpLabel",{}).label;c&&(CKEDITOR.env.ie&&n&&(c+=", "+n),d.setAttribute("title",c));if(n){var c=CKEDITOR.tools.getNextId(),r=CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+c+'" class\x3d"cke_voice_label"\x3e'+n+"\x3c/span\x3e");l.append(r,1);d.setAttribute("aria-describedby",c)}b.on("beforeModeUnload",function(a){a.removeListener();r&&r.remove()});d.setAttributes({tabIndex:b.tabIndex,allowTransparency:"true"});!e&&h();b.fire("ariaWidget",
d)})}});CKEDITOR.editor.prototype.addContentsCss=function(a){var b=this.config,f=b.contentsCss;CKEDITOR.tools.isArray(f)||(b.contentsCss=f?[f]:[]);b.contentsCss.push(a)};a=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(a){CKEDITOR.tools.setTimeout(b,0,this,a)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(a,b){var h=this.editor;if(b)this.setHtml(a),
this.fixInitialSelection(),h.fire("dataReady");else{this._.isLoadingData=!0;h._.dataStore={id:1};var l=h.config,d=l.fullPage,e=l.docType,c=CKEDITOR.tools.buildStyleHtml(f()).replace(/<style>/,'\x3cstyle data-cke-temp\x3d"1"\x3e');d||(c+=CKEDITOR.tools.buildStyleHtml(h.config.contentsCss));var n=l.baseHref?'\x3cbase href\x3d"'+l.baseHref+'" data-cke-temp\x3d"1" /\x3e':"";d&&(a=a.replace(/<!DOCTYPE[^>]*>/i,function(a){h.docType=e=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){h.xmlDeclaration=
a;return""}));a=h.dataProcessor.toHtml(a);d?(/<body[\s|>]/.test(a)||(a="\x3cbody\x3e"+a),/<html[\s|>]/.test(a)||(a="\x3chtml\x3e"+a+"\x3c/html\x3e"),/<head[\s|>]/.test(a)?/<title[\s|>]/.test(a)||(a=a.replace(/<head[^>]*>/,"$\x26\x3ctitle\x3e\x3c/title\x3e")):a=a.replace(/<html[^>]*>/,"$\x26\x3chead\x3e\x3ctitle\x3e\x3c/title\x3e\x3c/head\x3e"),n&&(a=a.replace(/<head[^>]*?>/,"$\x26"+n)),a=a.replace(/<\/head\s*>/,c+"$\x26"),a=e+a):a=l.docType+'\x3chtml dir\x3d"'+l.contentsLangDirection+'" lang\x3d"'+
(l.contentsLanguage||h.langCode)+'"\x3e\x3chead\x3e\x3ctitle\x3e'+this._.docTitle+"\x3c/title\x3e"+n+c+"\x3c/head\x3e\x3cbody"+(l.bodyId?' id\x3d"'+l.bodyId+'"':"")+(l.bodyClass?' class\x3d"'+l.bodyClass+'"':"")+"\x3e"+a+"\x3c/body\x3e\x3c/html\x3e";CKEDITOR.env.gecko&&(a=a.replace(/<body/,'\x3cbody contenteditable\x3d"true" '),2E4>CKEDITOR.env.version&&(a=a.replace(/<body[^>]*>/,"$\x26\x3c!-- cke-content-start --\x3e")));l='\x3cscript id\x3d"cke_actscrpt" type\x3d"text/javascript"'+(CKEDITOR.env.ie?
' defer\x3d"defer" ':"")+"\x3evar wasLoaded\x3d0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+this._.frameLoadedHandler+",window);wasLoaded\x3d1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"\x3c/script\x3e";CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(l+='\x3cscript id\x3d"cke_shimscrpt"\x3ewindow.parent.CKEDITOR.tools.enableHtml5Elements(document)\x3c/script\x3e');n&&CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(l+='\x3cscript id\x3d"cke_basetagscrpt"\x3evar baseTag \x3d document.querySelector( "base" );baseTag.href \x3d baseTag.href;\x3c/script\x3e');
a=a.replace(/(?=\s*<\/(:?head)>)/,l);this.clearCustomData();this.clearListeners();h.fire("contentDomUnload");var r=this.getDocument();try{r.write(a)}catch(t){setTimeout(function(){r.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();a=this.editor;var b=a.config,f=b.fullPage,h=f&&a.docType,d=f&&a.xmlDeclaration,e=this.getDocument(),f=f?e.getDocumentElement().getOuterHtml():e.getBody().getHtml();CKEDITOR.env.gecko&&b.enterMode!=CKEDITOR.ENTER_BR&&(f=f.replace(/<br>(?=\s*(:?$|<\/body>))/,
""));f=a.dataProcessor.toDataFormat(f);d&&(f=d+"\n"+f);h&&(f=h+"\n"+f);return f},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:a.baseProto.focus.call(this)},detach:function(){var b=this.editor,f=b.document,b=b.container.findOne("iframe.cke_wysiwyg_frame");a.baseProto.detach.call(this);this.clearCustomData(this._.expandoNumber);f.getDocumentElement().clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);b&&(b.clearCustomData(),(f=b.removeCustomData("onResize"))&&
f.removeListener(),b.isDetached()||b.remove())}}})})();CKEDITOR.config.disableObjectResizing=!1;CKEDITOR.config.disableNativeTableHandles=!0;CKEDITOR.config.disableNativeSpellChecker=!0;CKEDITOR.config.plugins="dialogui,dialog,a11yhelp,about,basicstyles,bidi,blockquote,notification,button,toolbar,clipboard,panelbutton,panel,floatpanel,colorbutton,colordialog,copyformatting,menu,contextmenu,dialogadvtab,div,elementspath,enterkey,entities,popup,filetools,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,format,forms,horizontalrule,htmlwriter,iframe,image,indent,indentlist,indentblock,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastefromword,pastetext,preview,print,removeformat,resize,save,selectall,showblocks,showborders,smiley,sourcearea,specialchar,stylescombo,tab,table,tabletools,tableselection,templates,undo,lineutils,widgetselection,widget,notificationaggregator,uploadwidget,uploadimage,wysiwygarea";
CKEDITOR.config.skin="moono-lisa";(function(){var b=function(b,f){var a=CKEDITOR.getUrl("plugins/"+f);b=b.split(",");for(var g=0;g<b.length;g++)CKEDITOR.skin.icons[b[g]]={path:a,offset:-b[++g],bgsize:b[++g]}};CKEDITOR.env.hidpi?b("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,bidiltr,168,,bidirtl,192,,blockquote,216,,copy-rtl,240,,copy,264,,cut-rtl,288,,cut,312,,paste-rtl,336,,paste,360,,codesnippet,384,,bgcolor,408,,textcolor,432,,copyformatting,456,,creatediv,480,,docprops-rtl,504,,docprops,528,,easyimagealigncenter,552,,easyimagealignleft,576,,easyimagealignright,600,,easyimagealt,624,,easyimagefull,648,,easyimageside,672,,easyimageupload,696,,embed,720,,embedsemantic,744,,emojipanel,768,,find-rtl,792,,find,816,,replace,840,,flash,864,,button,888,,checkbox,912,,form,936,,hiddenfield,960,,imagebutton,984,,radio,1008,,select-rtl,1032,,select,1056,,textarea-rtl,1080,,textarea,1104,,textfield-rtl,1128,,textfield,1152,,horizontalrule,1176,,iframe,1200,,image,1224,,indent-rtl,1248,,indent,1272,,outdent-rtl,1296,,outdent,1320,,justifyblock,1344,,justifycenter,1368,,justifyleft,1392,,justifyright,1416,,language,1440,,anchor-rtl,1464,,anchor,1488,,link,1512,,unlink,1536,,bulletedlist-rtl,1560,,bulletedlist,1584,,numberedlist-rtl,1608,,numberedlist,1632,,mathjax,1656,,maximize,1680,,newpage-rtl,1704,,newpage,1728,,pagebreak-rtl,1752,,pagebreak,1776,,pastefromword-rtl,1800,,pastefromword,1824,,pastetext-rtl,1848,,pastetext,1872,,placeholder,1896,,preview-rtl,1920,,preview,1944,,print,1968,,removeformat,1992,,save,2016,,selectall,2040,,showblocks-rtl,2064,,showblocks,2088,,smiley,2112,,source-rtl,2136,,source,2160,,sourcedialog-rtl,2184,,sourcedialog,2208,,specialchar,2232,,table,2256,,templates-rtl,2280,,templates,2304,,uicolor,2328,,redo-rtl,2352,,redo,2376,,undo-rtl,2400,,undo,2424,,simplebox,4896,auto",
"icons_hidpi.png"):b("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,bidiltr,168,auto,bidirtl,192,auto,blockquote,216,auto,copy-rtl,240,auto,copy,264,auto,cut-rtl,288,auto,cut,312,auto,paste-rtl,336,auto,paste,360,auto,codesnippet,384,auto,bgcolor,408,auto,textcolor,432,auto,copyformatting,456,auto,creatediv,480,auto,docprops-rtl,504,auto,docprops,528,auto,easyimagealigncenter,552,auto,easyimagealignleft,576,auto,easyimagealignright,600,auto,easyimagealt,624,auto,easyimagefull,648,auto,easyimageside,672,auto,easyimageupload,696,auto,embed,720,auto,embedsemantic,744,auto,emojipanel,768,auto,find-rtl,792,auto,find,816,auto,replace,840,auto,flash,864,auto,button,888,auto,checkbox,912,auto,form,936,auto,hiddenfield,960,auto,imagebutton,984,auto,radio,1008,auto,select-rtl,1032,auto,select,1056,auto,textarea-rtl,1080,auto,textarea,1104,auto,textfield-rtl,1128,auto,textfield,1152,auto,horizontalrule,1176,auto,iframe,1200,auto,image,1224,auto,indent-rtl,1248,auto,indent,1272,auto,outdent-rtl,1296,auto,outdent,1320,auto,justifyblock,1344,auto,justifycenter,1368,auto,justifyleft,1392,auto,justifyright,1416,auto,language,1440,auto,anchor-rtl,1464,auto,anchor,1488,auto,link,1512,auto,unlink,1536,auto,bulletedlist-rtl,1560,auto,bulletedlist,1584,auto,numberedlist-rtl,1608,auto,numberedlist,1632,auto,mathjax,1656,auto,maximize,1680,auto,newpage-rtl,1704,auto,newpage,1728,auto,pagebreak-rtl,1752,auto,pagebreak,1776,auto,pastefromword-rtl,1800,auto,pastefromword,1824,auto,pastetext-rtl,1848,auto,pastetext,1872,auto,placeholder,1896,auto,preview-rtl,1920,auto,preview,1944,auto,print,1968,auto,removeformat,1992,auto,save,2016,auto,selectall,2040,auto,showblocks-rtl,2064,auto,showblocks,2088,auto,smiley,2112,auto,source-rtl,2136,auto,source,2160,auto,sourcedialog-rtl,2184,auto,sourcedialog,2208,auto,specialchar,2232,auto,table,2256,auto,templates-rtl,2280,auto,templates,2304,auto,uicolor,2328,auto,redo-rtl,2352,auto,redo,2376,auto,undo-rtl,2400,auto,undo,2424,auto,simplebox,2448,auto",
"icons.png")})()}})();