-(function(){function b(a,b,g,e,f){var p=b.name;if((e||typeof a.elements!="function"||a.elements(p))&&(!a.match||a.match(b))){if(e=!f){a:if(a.nothingRequired)e=true;else{if(f=a.requiredClasses){p=b.classes;for(e=0;e<f.length;++e)if(CKEDITOR.tools.indexOf(p,f[e])==-1){e=false;break a}}e=d(b.styles,a.requiredStyles)&&d(b.attributes,a.requiredAttributes)}e=!e}if(!e){if(!a.propertiesOnly)g.valid=true;if(!g.allAttributes)g.allAttributes=c(a.attributes,b.attributes,g.validAttributes);if(!g.allStyles)g.allStyles=
-c(a.styles,b.styles,g.validStyles);if(!g.allClasses){a=a.classes;b=b.classes;e=g.validClasses;if(a)if(a===true)b=true;else{for(var f=0,p=b.length,h;f<p;++f){h=b[f];e[h]||(e[h]=a(h))}b=false}else b=false;g.allClasses=b}}}}function c(a,b,c){if(!a)return false;if(a===true)return true;for(var d in b)c[d]||(c[d]=a(d,b[d]));return false}function a(a,b){if(!a)return false;if(a===true)return a;if(typeof a=="string"){a=x(a);return a=="*"?true:CKEDITOR.tools.convertArrayToObject(a.split(b))}if(CKEDITOR.tools.isArray(a))return a.length?
-CKEDITOR.tools.convertArrayToObject(a):false;var c={},d=0,g;for(g in a){c[g]=a[g];d++}return d?c:false}function f(a){if(a._.filterFunction)return a._.filterFunction;var c=/^cke:(object|embed|param)$/,d=/^(object|embed|param)$/;return a._.filterFunction=function(g,e,f,h,l,q,n){var o=g.name,v,j=false;if(l)g.name=o=o.replace(c,"$1");if(f=f&&f[o]){i(g);for(o=0;o<f.length;++o)p(a,g,f[o]);k(g)}if(e){var o=g.name,f=e.elements[o],u=e.generic,e={valid:false,validAttributes:{},validClasses:{},validStyles:{},
-allAttributes:false,allClasses:false,allStyles:false};if(!f&&!u){h.push(g);return true}i(g);if(f){o=0;for(v=f.length;o<v;++o)b(f[o],g,e,true,q)}if(u){o=0;for(v=u.length;o<v;++o)b(u[o],g,e,false,q)}if(!e.valid){h.push(g);return true}q=e.validAttributes;o=e.validStyles;f=e.validClasses;v=g.attributes;var u=g.styles,s=v["class"],w=v.style,r,x,A=[],t=[],F=/^data-cke-/,z=false;delete v.style;delete v["class"];if(!e.allAttributes)for(r in v)if(!q[r])if(F.test(r)){if(r!=(x=r.replace(/^data-cke-saved-/,""))&&
-!q[x]){delete v[r];z=true}}else{delete v[r];z=true}if(e.allStyles){if(w)v.style=w}else{for(r in u)o[r]?A.push(r+":"+u[r]):z=true;if(A.length)v.style=A.sort().join("; ")}if(e.allClasses)s&&(v["class"]=s);else{for(r in f)f[r]&&t.push(r);t.length&&(v["class"]=t.sort().join(" "));s&&t.length<s.split(/\s+/).length&&(z=true)}z&&(j=true);if(!n&&!m(g)){h.push(g);return true}}if(l)g.name=g.name.replace(d,"cke:$1");return j}}function d(a,b){if(!b)return true;for(var c=0;c<b.length;++c)if(!(b[c]in a))return false;
-return true}function e(a){if(!a)return{};for(var a=a.split(/\s*,\s*/).sort(),b={};a.length;)b[a.shift()]=z;return b}function h(a){for(var b,c,g,d,e={},f=1,a=x(a);b=a.match(y);){if(c=b[2]){g=j(c,"styles");d=j(c,"attrs");c=j(c,"classes")}else g=d=c=null;e["$"+f++]={elements:b[1],classes:c,styles:g,attributes:d};a=a.slice(b[0].length)}return e}function j(a,b){var c=a.match(n[b]);return c?x(c[1]):null}function i(a){if(!a.styles)a.styles=CKEDITOR.tools.parseCssText(a.attributes.style||"",1);if(!a.classes)a.classes=
-a.attributes["class"]?a.attributes["class"].split(/\s+/):[]}function k(a){var b=a.attributes,c;delete b.style;delete b["class"];if(c=CKEDITOR.tools.writeCssText(a.styles,true))b.style=c;a.classes.length&&(b["class"]=a.classes.sort().join(" "))}function m(a){switch(a.name){case "a":if(!a.children.length&&!a.attributes.name)return false;break;case "img":if(!a.attributes.src)return false}return true}function q(a){return!a?false:a===true?true:function(b){return b in a}}function r(){return new CKEDITOR.htmlParser.element("br")}
-function l(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.name=="br"||A.$block[a.name])}function g(a,b,c){var g=a.name;if(A.$empty[g]||!a.children.length)if(g=="hr"&&b=="br")a.replaceWith(r());else{a.parent&&c.push({check:"it",el:a.parent});a.remove()}else if(A.$block[g]||g=="tr")if(b=="br"){if(a.previous&&!l(a.previous)){b=r();b.insertBefore(a)}if(a.next&&!l(a.next)){b=r();b.insertAfter(a)}a.replaceWithChildren()}else{var g=a.children,d;b:{d=A[b];for(var e=0,f=g.length,p;e<f;++e){p=g[e];if(p.type==
-CKEDITOR.NODE_ELEMENT&&!d[p.name]){d=false;break b}}d=true}if(d){a.name=b;a.attributes={};c.push({check:"parent-down",el:a})}else{d=a.parent;for(var e=d.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||d.name=="body",h,f=g.length;f>0;){p=g[--f];if(e&&(p.type==CKEDITOR.NODE_TEXT||p.type==CKEDITOR.NODE_ELEMENT&&A.$inline[p.name])){if(!h){h=new CKEDITOR.htmlParser.element(b);h.insertAfter(a);c.push({check:"parent-down",el:h})}h.add(p,0)}else{h=null;p.insertAfter(a);d.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(p.type==
-CKEDITOR.NODE_ELEMENT&&!A[d.name][p.name])&&c.push({check:"el-up",el:p})}}a.remove()}}else if(g=="style")a.remove();else{a.parent&&c.push({check:"it",el:a.parent});a.replaceWithChildren()}}function p(a,b,c){var g,d;for(g=0;g<c.length;++g){d=c[g];if((!d.check||a.check(d.check,false))&&(!d.left||d.left(b))){d.right(b,w);break}}}function v(a,b){var c=b.getDefinition(),g=c.attributes,d=c.styles,e,f,p,h;if(a.name!=c.element)return false;for(e in g)if(e=="class"){c=g[e].split(/\s+/);for(p=a.classes.join("|");h=
-c.pop();)if(p.indexOf(h)==-1)return false}else if(a.attributes[e]!=g[e])return false;for(f in d)if(a.styles[f]!=d[f])return false;return true}function u(a,b){var c,g;if(typeof a=="string")c=a;else if(a instanceof CKEDITOR.style)g=a;else{c=a[0];g=a[1]}return[{element:c,left:g,right:function(a,c){c.transform(a,b)}}]}function o(a){return function(b){return v(b,a)}}function F(a){return function(b,c){c[a](b)}}var A=CKEDITOR.dtd,s=CKEDITOR.tools.copy,x=CKEDITOR.tools.trim,z="cke-test";CKEDITOR.filter=function(a){this.allowedContent=
-[];this.disabled=false;this.editor=null;this.enterMode=CKEDITOR.ENTER_P;this._={rules:{},transformations:{},cachedTests:{}};if(a instanceof CKEDITOR.editor){var b=this.editor=a;this.customConfig=true;var a=b.config.allowedContent,c;if(a===true)this.disabled=true;else{if(!a)this.customConfig=false;this.enterMode=c=b.blockless?CKEDITOR.ENTER_BR:b.config.enterMode;var g=["br"],d=b.blockless?CKEDITOR.ENTER_BR:b.config.shiftEnterMode;(c==CKEDITOR.ENTER_P||d==CKEDITOR.ENTER_P)&&g.push("p");(c==CKEDITOR.ENTER_DIV||
-d==CKEDITOR.ENTER_DIV)&&g.push("div");this.allow(g.join(" "),"default",1);this.allow(a,"config",1);this.allow(b.config.extraAllowedContent,"extra",1);this._.toHtmlListener=b.on("toHtml",function(a){this.applyTo(a.data.dataValue,true,a.data.dontFilter)&&b.fire("dataFiltered")},this,null,6);this._.toDataFormatListener=b.on("toDataFormat",function(a){this.applyTo(a.data.dataValue,false,true)},this,null,11)}}else{this.customConfig=false;this.allow(a,"default",1)}};CKEDITOR.filter.prototype={allow:function(b,
-c,g){if(this.disabled||this.customConfig&&!g||!b)return false;this._.cachedChecks={};var d,e;if(typeof b=="string")b=h(b);else if(b instanceof CKEDITOR.style){e=b.getDefinition();g={};b=e.attributes;g[e.element]=e={styles:e.styles,requiredStyles:e.styles&&CKEDITOR.tools.objectKeys(e.styles)};if(b){b=s(b);e.classes=b["class"]?b["class"].split(/\s+/):null;e.requiredClasses=e.classes;delete b["class"];e.attributes=b;e.requiredAttributes=b&&CKEDITOR.tools.objectKeys(b)}b=g}else if(CKEDITOR.tools.isArray(b)){for(d=
-0;d<b.length;++d)e=this.allow(b[d],c,g);return e}var f,g=[];for(f in b){e=b[f];e=typeof e=="boolean"?{}:typeof e=="function"?{match:e}:s(e);if(f.charAt(0)!="$")e.elements=f;if(c)e.featureName=c.toLowerCase();var p=e;p.elements=a(p.elements,/\s+/)||null;p.propertiesOnly=p.propertiesOnly||p.elements===true;var l=/\s*,\s*/,n=void 0;for(n in t){p[n]=a(p[n],l)||null;var o=p,v=C[n],i=a(p[C[n]],l),j=p[n],u=[],r=true,w=void 0;i?r=false:i={};for(w in j)if(w.charAt(0)=="!"){w=w.slice(1);u.push(w);i[w]=true;
-r=false}for(;w=u.pop();){j[w]=j["!"+w];delete j["!"+w]}o[v]=(r?false:i)||null}p.match=p.match||null;this.allowedContent.push(e);g.push(e)}c=this._.rules;f=c.elements||{};b=c.generic||[];e=0;for(p=g.length;e<p;++e){l=s(g[e]);n=l.classes===true||l.styles===true||l.attributes===true;o=l;v=void 0;for(v in t)o[v]=q(o[v]);i=true;for(v in C){v=C[v];o[v]=CKEDITOR.tools.objectKeys(o[v]);o[v]&&(i=false)}o.nothingRequired=i;if(l.elements===true||l.elements===null){l.elements=q(l.elements);b[n?"unshift":"push"](l)}else{o=
-l.elements;delete l.elements;for(d in o)if(f[d])f[d][n?"unshift":"push"](l);else f[d]=[l]}}c.elements=f;c.generic=b.length?b:null;return true},applyTo:function(a,b,c){var d=[],e=!c&&this._.rules,p=this._.transformations,h=f(this),l=this.editor&&this.editor.config.protectedSource,q=false;a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if(!b||!(a.name=="span"&&~CKEDITOR.tools.objectKeys(a.attributes).join("|").indexOf("data-cke-")))h(a,e,p,d,b)&&(q=true)}else if(a.type==CKEDITOR.NODE_COMMENT&&
-a.value.match(/^\{cke_protected\}(?!\{C\})/)){var c;a:{var g=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));c=[];var f,n,o;if(l)for(n=0;n<l.length;++n)if((o=g.match(l[n]))&&o[0].length==g.length){c=true;break a}g=CKEDITOR.htmlParser.fragment.fromHtml(g);g.children.length==1&&(f=g.children[0]).type==CKEDITOR.NODE_ELEMENT&&h(f,e,p,c,b);c=!c.length}c||d.push(a)}},null,true);d.length&&(q=true);for(var n,o,a=[],c=["p","br","div"][this.enterMode-1];n=d.pop();)n.type==CKEDITOR.NODE_ELEMENT?
-g(n,c,a):n.remove();for(;o=a.pop();){n=o.el;if(n.parent)switch(o.check){case "it":A.$removeEmpty[n.name]&&!n.children.length?g(n,c,a):m(n)||g(n,c,a);break;case "el-up":n.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!A[n.parent.name][n.name]&&g(n,c,a);break;case "parent-down":n.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!A[n.parent.name][n.name]&&g(n.parent,c,a)}}return q},checkFeature:function(a){if(this.disabled||!a)return true;a.toFeature&&(a=a.toFeature(this.editor));return!a.requiredContent||
-this.check(a.requiredContent)},disable:function(){this.disabled=true;this._.toHtmlListener&&this._.toHtmlListener.removeListener();this._.toDataFormatListener&&this._.toDataFormatListener.removeListener()},addContentForms:function(a){if(!this.disabled&&a){var b,c,g=[],d;for(b=0;b<a.length&&!d;++b){c=a[b];if((typeof c=="string"||c instanceof CKEDITOR.style)&&this.check(c))d=c}if(d){for(b=0;b<a.length;++b)g.push(u(a[b],d));this.addTransformations(g)}}},addFeature:function(a){if(this.disabled||!a)return true;
-a.toFeature&&(a=a.toFeature(this.editor));this.allow(a.allowedContent,a.name);this.addTransformations(a.contentTransformations);this.addContentForms(a.contentForms);return this.customConfig&&a.requiredContent?this.check(a.requiredContent):true},addTransformations:function(a){var b,c;if(!this.disabled&&a){var g=this._.transformations,d;for(d=0;d<a.length;++d){b=a[d];var e=void 0,f=void 0,p=void 0,h=void 0,l=void 0,n=void 0;c=[];for(f=0;f<b.length;++f){p=b[f];if(typeof p=="string"){p=p.split(/\s*:\s*/);
-h=p[0];l=null;n=p[1]}else{h=p.check;l=p.left;n=p.right}if(!e){e=p;e=e.element?e.element:h?h.match(/^([a-z0-9]+)/i)[0]:e.left.getDefinition().element}l instanceof CKEDITOR.style&&(l=o(l));c.push({check:h==e?null:h,left:l,right:typeof n=="string"?F(n):n})}b=e;g[b]||(g[b]=[]);g[b].push(c)}}},check:function(a,b,c){if(this.disabled)return true;if(CKEDITOR.tools.isArray(a)){for(var g=a.length;g--;)if(this.check(a[g],b,c))return true;return false}var d,l;if(typeof a=="string"){l=a+"<"+(b===false?"0":"1")+
-(c?"1":"0")+">";if(l in this._.cachedChecks)return this._.cachedChecks[l];g=h(a).$1;d=g.styles;var n=g.classes;g.name=g.elements;g.classes=n=n?n.split(/\s*,\s*/):[];g.styles=e(d);g.attributes=e(g.attributes);g.children=[];n.length&&(g.attributes["class"]=n.join(" "));if(d)g.attributes.style=CKEDITOR.tools.writeCssText(g.styles);d=g}else{g=a.getDefinition();d=g.styles;n=g.attributes||{};if(d){d=s(d);n.style=CKEDITOR.tools.writeCssText(d,true)}else d={};d={name:g.element,attributes:n,classes:n["class"]?
-n["class"].split(/\s+/):[],styles:d,children:[]}}var n=CKEDITOR.tools.clone(d),q=[],o;if(b!==false&&(o=this._.transformations[d.name])){for(g=0;g<o.length;++g)p(this,d,o[g]);k(d)}f(this)(n,this._.rules,b===false?false:this._.transformations,q,false,!c,!c);b=q.length>0?false:CKEDITOR.tools.objectCompare(d.attributes,n.attributes,true)?true:false;typeof a=="string"&&(this._.cachedChecks[l]=b);return b}};var t={styles:1,attributes:1,classes:1},C={styles:"requiredStyles",attributes:"requiredAttributes",
-classes:"requiredClasses"},y=/^([a-z0-9*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,n={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},w=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a,"height")},sizeToAttribute:function(a){this.lengthToAttribute(a,"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,b,c){c=c||b;if(!(c in a.styles)){var g=a.attributes[b];
-if(g){/^\d+$/.test(g)&&(g=g+"px");a.styles[c]=g}}delete a.attributes[b]},lengthToAttribute:function(a,b,c){c=c||b;if(!(c in a.attributes)){var g=a.styles[b],d=g&&g.match(/^(\d+)(?:\.\d*)?px$/);d?a.attributes[c]=d[1]:g==z&&(a.attributes[c]=z)}delete a.styles[b]},alignmentToStyle:function(a){if(!("float"in a.styles)){var b=a.attributes.align;if(b=="left"||b=="right")a.styles["float"]=b}delete a.attributes.align},alignmentToAttribute:function(a){if(!("align"in a.attributes)){var b=a.styles["float"];
-if(b=="left"||b=="right")a.attributes.align=b}delete a.styles["float"]},matchesStyle:v,transform:function(a,b){if(typeof b=="string")a.name=b;else{var c=b.getDefinition(),g=c.styles,d=c.attributes,e,f,p,h;a.name=c.element;for(e in d)if(e=="class"){c=a.classes.join("|");for(p=d[e].split(/\s+/);h=p.pop();)c.indexOf(h)==-1&&a.classes.push(h)}else a.attributes[e]=d[e];for(f in g)a.styles[f]=g[f]}}}})();
+(function(){function b(a,b,g,e,f){var h=b.name;if((e||typeof a.elements!="function"||a.elements(h))&&(!a.match||a.match(b))){if(e=!f){a:if(a.nothingRequired)e=true;else{if(f=a.requiredClasses){h=b.classes;for(e=0;e<f.length;++e)if(CKEDITOR.tools.indexOf(h,f[e])==-1){e=false;break a}}e=d(b.styles,a.requiredStyles)&&d(b.attributes,a.requiredAttributes)}e=!e}if(!e){if(!a.propertiesOnly)g.valid=true;if(!g.allAttributes)g.allAttributes=c(a.attributes,b.attributes,g.validAttributes);if(!g.allStyles)g.allStyles=
+c(a.styles,b.styles,g.validStyles);if(!g.allClasses){a=a.classes;b=b.classes;e=g.validClasses;if(a)if(a===true)b=true;else{for(var f=0,h=b.length,p;f<h;++f){p=b[f];e[p]||(e[p]=a(p))}b=false}else b=false;g.allClasses=b}}}}function c(a,b,c){if(!a)return false;if(a===true)return true;for(var g in b)c[g]||(c[g]=a(g,b[g]));return false}function a(a,b){if(!a)return false;if(a===true)return a;if(typeof a=="string"){a=x(a);return a=="*"?true:CKEDITOR.tools.convertArrayToObject(a.split(b))}if(CKEDITOR.tools.isArray(a))return a.length?
+CKEDITOR.tools.convertArrayToObject(a):false;var c={},g=0,d;for(d in a){c[d]=a[d];g++}return g?c:false}function f(a){if(a._.filterFunction)return a._.filterFunction;var c=/^cke:(object|embed|param)$/,g=/^(object|embed|param)$/;return a._.filterFunction=function(d,e,f,h,k,q,o){var n=d.name,v,j=false;if(k)d.name=n=n.replace(c,"$1");if(f=f&&f[n]){i(d);for(n=0;n<f.length;++n)p(a,d,f[n]);l(d)}if(e){var n=d.name,f=e.elements[n],t=e.generic,e={valid:false,validAttributes:{},validClasses:{},validStyles:{},
+allAttributes:false,allClasses:false,allStyles:false};if(!f&&!t){h.push(d);return true}i(d);if(f){n=0;for(v=f.length;n<v;++n)b(f[n],d,e,true,q)}if(t){n=0;for(v=t.length;n<v;++n)b(t[n],d,e,false,q)}if(!e.valid){h.push(d);return true}q=e.validAttributes;n=e.validStyles;f=e.validClasses;v=d.attributes;var t=d.styles,r=v["class"],x=v.style,u,w,B=[],s=[],E=/^data-cke-/,z=false;delete v.style;delete v["class"];if(!e.allAttributes)for(u in v)if(!q[u])if(E.test(u)){if(u!=(w=u.replace(/^data-cke-saved-/,""))&&
+!q[w]){delete v[u];z=true}}else{delete v[u];z=true}if(e.allStyles){if(x)v.style=x}else{for(u in t)n[u]?B.push(u+":"+t[u]):z=true;if(B.length)v.style=B.sort().join("; ")}if(e.allClasses)r&&(v["class"]=r);else{for(u in f)f[u]&&s.push(u);s.length&&(v["class"]=s.sort().join(" "));r&&s.length<r.split(/\s+/).length&&(z=true)}z&&(j=true);if(!o&&!m(d)){h.push(d);return true}}if(k)d.name=d.name.replace(g,"cke:$1");return j}}function d(a,b){if(!b)return true;for(var c=0;c<b.length;++c)if(!(b[c]in a))return false;
+return true}function e(a){if(!a)return{};for(var a=a.split(/\s*,\s*/).sort(),b={};a.length;)b[a.shift()]=z;return b}function h(a){for(var b,c,d,g,e={},f=1,a=x(a);b=a.match(y);){if(c=b[2]){d=j(c,"styles");g=j(c,"attrs");c=j(c,"classes")}else d=g=c=null;e["$"+f++]={elements:b[1],classes:c,styles:d,attributes:g};a=a.slice(b[0].length)}return e}function j(a,b){var c=a.match(o[b]);return c?x(c[1]):null}function i(a){if(!a.styles)a.styles=CKEDITOR.tools.parseCssText(a.attributes.style||"",1);if(!a.classes)a.classes=
+a.attributes["class"]?a.attributes["class"].split(/\s+/):[]}function l(a){var b=a.attributes,c;delete b.style;delete b["class"];if(c=CKEDITOR.tools.writeCssText(a.styles,true))b.style=c;a.classes.length&&(b["class"]=a.classes.sort().join(" "))}function m(a){switch(a.name){case "a":if(!a.children.length&&!a.attributes.name)return false;break;case "img":if(!a.attributes.src)return false}return true}function q(a){return!a?false:a===true?true:function(b){return b in a}}function w(){return new CKEDITOR.htmlParser.element("br")}
+function k(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.name=="br"||B.$block[a.name])}function g(a,b,c){var d=a.name;if(B.$empty[d]||!a.children.length)if(d=="hr"&&b=="br")a.replaceWith(w());else{a.parent&&c.push({check:"it",el:a.parent});a.remove()}else if(B.$block[d]||d=="tr")if(b=="br"){if(a.previous&&!k(a.previous)){b=w();b.insertBefore(a)}if(a.next&&!k(a.next)){b=w();b.insertAfter(a)}a.replaceWithChildren()}else{var d=a.children,g;b:{g=B[b];for(var e=0,f=d.length,h;e<f;++e){h=d[e];if(h.type==
+CKEDITOR.NODE_ELEMENT&&!g[h.name]){g=false;break b}}g=true}if(g){a.name=b;a.attributes={};c.push({check:"parent-down",el:a})}else{g=a.parent;for(var e=g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||g.name=="body",p,f=d.length;f>0;){h=d[--f];if(e&&(h.type==CKEDITOR.NODE_TEXT||h.type==CKEDITOR.NODE_ELEMENT&&B.$inline[h.name])){if(!p){p=new CKEDITOR.htmlParser.element(b);p.insertAfter(a);c.push({check:"parent-down",el:p})}p.add(h,0)}else{p=null;h.insertAfter(a);g.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(h.type==
+CKEDITOR.NODE_ELEMENT&&!B[g.name][h.name])&&c.push({check:"el-up",el:h})}}a.remove()}}else if(d=="style")a.remove();else{a.parent&&c.push({check:"it",el:a.parent});a.replaceWithChildren()}}function p(a,b,c){var d,g;for(d=0;d<c.length;++d){g=c[d];if((!g.check||a.check(g.check,false))&&(!g.left||g.left(b))){g.right(b,u);break}}}function v(a,b){var c=b.getDefinition(),d=c.attributes,g=c.styles,e,f,h,p;if(a.name!=c.element)return false;for(e in d)if(e=="class"){c=d[e].split(/\s+/);for(h=a.classes.join("|");p=
+c.pop();)if(h.indexOf(p)==-1)return false}else if(a.attributes[e]!=d[e])return false;for(f in g)if(a.styles[f]!=g[f])return false;return true}function t(a,b){var c,d;if(typeof a=="string")c=a;else if(a instanceof CKEDITOR.style)d=a;else{c=a[0];d=a[1]}return[{element:c,left:d,right:function(a,c){c.transform(a,b)}}]}function n(a){return function(b){return v(b,a)}}function E(a){return function(b,c){c[a](b)}}var B=CKEDITOR.dtd,r=CKEDITOR.tools.copy,x=CKEDITOR.tools.trim,z="cke-test";CKEDITOR.filter=function(a){this.allowedContent=
+[];this.disabled=false;this.editor=null;this.enterMode=CKEDITOR.ENTER_P;this._={rules:{},transformations:{},cachedTests:{}};if(a instanceof CKEDITOR.editor){var b=this.editor=a;this.customConfig=true;var a=b.config.allowedContent,c;if(a===true)this.disabled=true;else{if(!a)this.customConfig=false;this.enterMode=c=b.blockless?CKEDITOR.ENTER_BR:b.config.enterMode;var d=["br"],g=b.blockless?CKEDITOR.ENTER_BR:b.config.shiftEnterMode;(c==CKEDITOR.ENTER_P||g==CKEDITOR.ENTER_P)&&d.push("p");(c==CKEDITOR.ENTER_DIV||
+g==CKEDITOR.ENTER_DIV)&&d.push("div");this.allow(d.join(" "),"default",1);this.allow(a,"config",1);this.allow(b.config.extraAllowedContent,"extra",1);this._.toHtmlListener=b.on("toHtml",function(a){this.applyTo(a.data.dataValue,true,a.data.dontFilter)&&b.fire("dataFiltered")},this,null,6);this._.toDataFormatListener=b.on("toDataFormat",function(a){this.applyTo(a.data.dataValue,false,true)},this,null,11)}}else{this.customConfig=false;this.allow(a,"default",1)}};CKEDITOR.filter.prototype={allow:function(b,
+c,d){if(this.disabled||this.customConfig&&!d||!b)return false;this._.cachedChecks={};var g,e;if(typeof b=="string")b=h(b);else if(b instanceof CKEDITOR.style){e=b.getDefinition();d={};b=e.attributes;d[e.element]=e={styles:e.styles,requiredStyles:e.styles&&CKEDITOR.tools.objectKeys(e.styles)};if(b){b=r(b);e.classes=b["class"]?b["class"].split(/\s+/):null;e.requiredClasses=e.classes;delete b["class"];e.attributes=b;e.requiredAttributes=b&&CKEDITOR.tools.objectKeys(b)}b=d}else if(CKEDITOR.tools.isArray(b)){for(g=
+0;g<b.length;++g)e=this.allow(b[g],c,d);return e}var f,d=[];for(f in b){e=b[f];e=typeof e=="boolean"?{}:typeof e=="function"?{match:e}:r(e);if(f.charAt(0)!="$")e.elements=f;if(c)e.featureName=c.toLowerCase();var p=e;p.elements=a(p.elements,/\s+/)||null;p.propertiesOnly=p.propertiesOnly||p.elements===true;var k=/\s*,\s*/,o=void 0;for(o in s){p[o]=a(p[o],k)||null;var n=p,v=C[o],i=a(p[C[o]],k),j=p[o],t=[],u=true,x=void 0;i?u=false:i={};for(x in j)if(x.charAt(0)=="!"){x=x.slice(1);t.push(x);i[x]=true;
+u=false}for(;x=t.pop();){j[x]=j["!"+x];delete j["!"+x]}n[v]=(u?false:i)||null}p.match=p.match||null;this.allowedContent.push(e);d.push(e)}c=this._.rules;f=c.elements||{};b=c.generic||[];e=0;for(p=d.length;e<p;++e){k=r(d[e]);o=k.classes===true||k.styles===true||k.attributes===true;n=k;v=void 0;for(v in s)n[v]=q(n[v]);i=true;for(v in C){v=C[v];n[v]=CKEDITOR.tools.objectKeys(n[v]);n[v]&&(i=false)}n.nothingRequired=i;if(k.elements===true||k.elements===null){k.elements=q(k.elements);b[o?"unshift":"push"](k)}else{n=
+k.elements;delete k.elements;for(g in n)if(f[g])f[g][o?"unshift":"push"](k);else f[g]=[k]}}c.elements=f;c.generic=b.length?b:null;return true},applyTo:function(a,b,c){var d=[],e=!c&&this._.rules,h=this._.transformations,p=f(this),k=this.editor&&this.editor.config.protectedSource,q=false;a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT){if(!b||!(a.name=="span"&&~CKEDITOR.tools.objectKeys(a.attributes).join("|").indexOf("data-cke-")))p(a,e,h,d,b)&&(q=true)}else if(a.type==CKEDITOR.NODE_COMMENT&&
+a.value.match(/^\{cke_protected\}(?!\{C\})/)){var c;a:{var g=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));c=[];var f,o,n;if(k)for(o=0;o<k.length;++o)if((n=g.match(k[o]))&&n[0].length==g.length){c=true;break a}g=CKEDITOR.htmlParser.fragment.fromHtml(g);g.children.length==1&&(f=g.children[0]).type==CKEDITOR.NODE_ELEMENT&&p(f,e,h,c,b);c=!c.length}c||d.push(a)}},null,true);d.length&&(q=true);for(var o,n,a=[],c=["p","br","div"][this.enterMode-1];o=d.pop();)o.type==CKEDITOR.NODE_ELEMENT?
+g(o,c,a):o.remove();for(;n=a.pop();){o=n.el;if(o.parent)switch(n.check){case "it":B.$removeEmpty[o.name]&&!o.children.length?g(o,c,a):m(o)||g(o,c,a);break;case "el-up":o.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!B[o.parent.name][o.name]&&g(o,c,a);break;case "parent-down":o.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!B[o.parent.name][o.name]&&g(o.parent,c,a)}}return q},checkFeature:function(a){if(this.disabled||!a)return true;a.toFeature&&(a=a.toFeature(this.editor));return!a.requiredContent||
+this.check(a.requiredContent)},disable:function(){this.disabled=true;this._.toHtmlListener&&this._.toHtmlListener.removeListener();this._.toDataFormatListener&&this._.toDataFormatListener.removeListener()},addContentForms:function(a){if(!this.disabled&&a){var b,c,d=[],g;for(b=0;b<a.length&&!g;++b){c=a[b];if((typeof c=="string"||c instanceof CKEDITOR.style)&&this.check(c))g=c}if(g){for(b=0;b<a.length;++b)d.push(t(a[b],g));this.addTransformations(d)}}},addFeature:function(a){if(this.disabled||!a)return true;
+a.toFeature&&(a=a.toFeature(this.editor));this.allow(a.allowedContent,a.name);this.addTransformations(a.contentTransformations);this.addContentForms(a.contentForms);return this.customConfig&&a.requiredContent?this.check(a.requiredContent):true},addTransformations:function(a){var b,c;if(!this.disabled&&a){var d=this._.transformations,g;for(g=0;g<a.length;++g){b=a[g];var e=void 0,f=void 0,h=void 0,p=void 0,k=void 0,o=void 0;c=[];for(f=0;f<b.length;++f){h=b[f];if(typeof h=="string"){h=h.split(/\s*:\s*/);
+p=h[0];k=null;o=h[1]}else{p=h.check;k=h.left;o=h.right}if(!e){e=h;e=e.element?e.element:p?p.match(/^([a-z0-9]+)/i)[0]:e.left.getDefinition().element}k instanceof CKEDITOR.style&&(k=n(k));c.push({check:p==e?null:p,left:k,right:typeof o=="string"?E(o):o})}b=e;d[b]||(d[b]=[]);d[b].push(c)}}},check:function(a,b,c){if(this.disabled)return true;if(CKEDITOR.tools.isArray(a)){for(var d=a.length;d--;)if(this.check(a[d],b,c))return true;return false}var g,k;if(typeof a=="string"){k=a+"<"+(b===false?"0":"1")+
+(c?"1":"0")+">";if(k in this._.cachedChecks)return this._.cachedChecks[k];d=h(a).$1;g=d.styles;var o=d.classes;d.name=d.elements;d.classes=o=o?o.split(/\s*,\s*/):[];d.styles=e(g);d.attributes=e(d.attributes);d.children=[];o.length&&(d.attributes["class"]=o.join(" "));if(g)d.attributes.style=CKEDITOR.tools.writeCssText(d.styles);g=d}else{d=a.getDefinition();g=d.styles;o=d.attributes||{};if(g){g=r(g);o.style=CKEDITOR.tools.writeCssText(g,true)}else g={};g={name:d.element,attributes:o,classes:o["class"]?
+o["class"].split(/\s+/):[],styles:g,children:[]}}var o=CKEDITOR.tools.clone(g),q=[],n;if(b!==false&&(n=this._.transformations[g.name])){for(d=0;d<n.length;++d)p(this,g,n[d]);l(g)}f(this)(o,this._.rules,b===false?false:this._.transformations,q,false,!c,!c);b=q.length>0?false:CKEDITOR.tools.objectCompare(g.attributes,o.attributes,true)?true:false;typeof a=="string"&&(this._.cachedChecks[k]=b);return b}};var s={styles:1,attributes:1,classes:1},C={styles:"requiredStyles",attributes:"requiredAttributes",
+classes:"requiredClasses"},y=/^([a-z0-9*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,o={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},u=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a,"height")},sizeToAttribute:function(a){this.lengthToAttribute(a,"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,b,c){c=c||b;if(!(c in a.styles)){var d=a.attributes[b];
+if(d){/^\d+$/.test(d)&&(d=d+"px");a.styles[c]=d}}delete a.attributes[b]},lengthToAttribute:function(a,b,c){c=c||b;if(!(c in a.attributes)){var d=a.styles[b],g=d&&d.match(/^(\d+)(?:\.\d*)?px$/);g?a.attributes[c]=g[1]:d==z&&(a.attributes[c]=z)}delete a.styles[b]},alignmentToStyle:function(a){if(!("float"in a.styles)){var b=a.attributes.align;if(b=="left"||b=="right")a.styles["float"]=b}delete a.attributes.align},alignmentToAttribute:function(a){if(!("align"in a.attributes)){var b=a.styles["float"];
+if(b=="left"||b=="right")a.attributes.align=b}delete a.styles["float"]},matchesStyle:v,transform:function(a,b){if(typeof b=="string")a.name=b;else{var c=b.getDefinition(),d=c.styles,g=c.attributes,e,f,h,p;a.name=c.element;for(e in g)if(e=="class"){c=a.classes.join("|");for(h=g[e].split(/\s+/);p=h.pop();)c.indexOf(p)==-1&&a.classes.push(p)}else a.attributes[e]=g[e];for(f in d)a.styles[f]=d[f]}}}})();