/* Copyright (c) 2003-2022, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function(){if(!window.CKEDITOR||!window.CKEDITOR.dom)window.CKEDITOR||(window.CKEDITOR=function(){var b=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,f={timestamp:"M8E3",version:"4.11.2 DEV",revision:"0",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:b},status:"unloaded",basePath:function(){var a=window.CKEDITOR_BASEPATH||"";if(!a)for(var e=document.getElementsByTagName("script"),f=0;f=0;n--)if(d[n].priority<=c){d.splice(n+1,0,i);return{removeListener:g}}d.unshift(i)}return{removeListener:g}},once:function(){var a=Array.prototype.slice.call(arguments),b=a[1];a[1]=function(a){a.removeListener();return b.apply(this,arguments)};return this.on.apply(this,a)},capture:function(){CKEDITOR.event.useCapture= 1;var a=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return a},fire:function(){var a=0,b=function(){a=1},k=0,j=function(){k=1};return function(c,i,g){var d=f(this)[c],c=a,l=k;a=k=0;if(d){var n=d.listeners;if(n.length)for(var n=n.slice(0),r,s=0;s=0&&k.listeners.splice(j,1)}},removeAllListeners:function(){var a=f(this),b;for(b in a)delete a[b]},hasListeners:function(a){return(a=f(this)[a])&&a.listeners.length>0}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(b,f){b in{instanceReady:1,loaded:1}&&(this[b]= true);return CKEDITOR.event.prototype.fire.call(this,b,f,this)},CKEDITOR.editor.prototype.fireOnce=function(b,f){b in{instanceReady:1,loaded:1}&&(this[b]=true);return CKEDITOR.event.prototype.fireOnce.call(this,b,f,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var b=navigator.userAgent.toLowerCase(),f=b.match(/edge[ \/](\d+.?\d*)/),a=b.indexOf("trident/")>-1,a=!(!f&&!a),a={ie:a,edge:!!f,webkit:!a&&b.indexOf(" applewebkit/")>-1,air:b.indexOf(" adobeair/")> -1,mac:b.indexOf("macintosh")>-1,quirks:document.compatMode=="BackCompat"&&(!document.documentMode||document.documentMode<10),mobile:b.indexOf("mobile")>-1,iOS:/(ipad|iphone|ipod)/.test(b),isCustomDomain:function(){if(!this.ie)return false;var a=document.domain,b=window.location.hostname;return a!=b&&a!="["+b+"]"},secure:location.protocol=="https:"};a.gecko=navigator.product=="Gecko"&&!a.webkit&&!a.ie;if(a.webkit)b.indexOf("chrome")>-1?a.chrome=true:a.safari=true;var e=0;if(a.ie){e=f?parseFloat(f[1]): a.quirks||!document.documentMode?parseFloat(b.match(/msie (\d+)/)[1]):document.documentMode;a.ie9Compat=e==9;a.ie8Compat=e==8;a.ie7Compat=e==7;a.ie6Compat=e<7||a.quirks}if(a.gecko)if(f=b.match(/rv:([\d\.]+)/)){f=f[1].split(".");e=f[0]*1E4+(f[1]||0)*100+(f[2]||0)*1}a.air&&(e=parseFloat(b.match(/ adobeair\/(\d+)/)[1]));a.webkit&&(e=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]));a.version=e;a.isCompatible=!(a.ie&&e<7)&&!(a.gecko&&e<4E4)&&!(a.webkit&&e<534);a.hidpi=window.devicePixelRatio>=2;a.needsBrFiller= a.gecko||a.webkit||a.ie&&e>10;a.needsNbspFiller=a.ie&&e<11;a.cssClass="cke_browser_"+(a.ie?"ie":a.gecko?"gecko":a.webkit?"webkit":"unknown");if(a.quirks)a.cssClass=a.cssClass+" cke_browser_quirks";if(a.ie)a.cssClass=a.cssClass+(" cke_browser_ie"+(a.quirks?"6 cke_browser_iequirks":a.version));if(a.air)a.cssClass=a.cssClass+" cke_browser_air";if(a.iOS)a.cssClass=a.cssClass+" cke_browser_ios";if(a.hidpi)a.cssClass=a.cssClass+" cke_hidpi";return a}()),"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR); CKEDITOR.loadFullCore=function(){if(CKEDITOR.status!="basic_ready")CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var 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,f=CKEDITOR.loadFullCoreTimeout;if(b){CKEDITOR.status= "basic_ready";b&&b._load?b():f&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},f*1E3)}})})();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,f){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:b,additionalData:f})},CKEDITOR.error=function(b,f){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log", {type:"error",errorCode:b,additionalData:f})},CKEDITOR.on("log",function(b){if(window.console&&window.console.log){var f=console[b.data.type]?b.data.type:"log",a=b.data.errorCode;if(b=b.data.additionalData)console[f]("[CKEDITOR] Error code: "+a+".",b);else console[f]("[CKEDITOR] Error code: "+a+".");console[f]("[CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#"+a)}},null,null,999),CKEDITOR.dom={},function(){function b(d,c,a){this._minInterval= d;this._context=a;this._lastOutput=this._scheduledTimer=0;this._output=CKEDITOR.tools.bind(c,a||{});var b=this;this.input=function(){function d(){b._lastOutput=(new Date).getTime();b._scheduledTimer=0;b._call()}if(!(b._scheduledTimer&&b._reschedule()===false)){var l=(new Date).getTime()-b._lastOutput;l/g,j=/",amp:"&",quot:'"',nbsp:" ",shy:"­"},d=function(d,c){return c[0]=="#"?String.fromCharCode(parseInt(c.slice(1),10)):g[c]};CKEDITOR.on("reset",function(){a=[]});CKEDITOR.tools={arrayCompare:function(d,c){if(!d&&!c)return true;if(!d||!c||d.length!=c.length)return false; for(var a=0;a"+c+""):a.push('');return a.join("")},htmlEncode:function(d){return d===void 0||d===null?"":(""+d).replace(h,"&").replace(k,">").replace(j,"<")},htmlDecode:function(c){return c.replace(i,d)},htmlEncodeAttr:function(d){return CKEDITOR.tools.htmlEncode(d).replace(c,""")},htmlDecodeAttr:function(d){return CKEDITOR.tools.htmlDecode(d)}, transformPlainTextToHtml:function(d,c){var a=c==CKEDITOR.ENTER_BR,b=this.htmlEncode(d.replace(/\r\n/g,"\n")),b=b.replace(/\t/g,"    "),g=c==CKEDITOR.ENTER_P?"p":"div";if(!a){var e=/\n{2}/g;if(e.test(b))var i="<"+g+">",h="",b=i+b.replace(e,function(){return h+i})+h}b=b.replace(/\n/g,"
");a||(b=b.replace(RegExp("
(?=)"),function(d){return CKEDITOR.tools.repeat(d,2)}));b=b.replace(/^ | $/g," ");return b=b.replace(/(>|\s) /g,function(d,c){return c+" "}).replace(/ (?=<)/g, " ")},getNextNumber:function(){var d=0;return function(){return++d}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var d="e",c=0;c<8;c++)d=d+Math.floor((1+Math.random())*65536).toString(16).substring(1);return d},override:function(d,c){var a=c(d);a.prototype=d.prototype;return a},setTimeout:function(d,c,a,b,g){g||(g=window);a||(a=g);return g.setTimeout(function(){b?d.apply(a,[].concat(b)):d.apply(a)},c||0)},throttle:function(d,c,a){return new this.buffers.throttle(d, c,a)},trim:function(){var d=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(c){return c.replace(d,"")}}(),ltrim:function(){var d=/^[ \t\n\r]+/g;return function(c){return c.replace(d,"")}}(),rtrim:function(){var d=/[ \t\n\r]+$/g;return function(c){return c.replace(d,"")}}(),indexOf:function(d,c){if(typeof c=="function")for(var a=0,b=d.length;a=0?d[a]:null},bind:function(d,c){return function(){return d.apply(c,arguments)}},createClass:function(d){var c=d.$,a=d.base,b=d.privates||d._,g=d.proto,d=d.statics;!c&&(c=function(){a&&this.base.apply(this,arguments)});if(b)var e=c,c=function(){var d=this._||(this._={}),c;for(c in b){var a=b[c];d[c]=typeof a=="function"?CKEDITOR.tools.bind(a,this):a}e.apply(this,arguments)};if(a){c.prototype=this.prototypedCopy(a.prototype);c.prototype.constructor=c;c.base=a;c.baseProto=a.prototype;c.prototype.base= function(){this.base=a.prototype.base;a.apply(this,arguments);this.base=arguments.callee}}g&&this.extend(c.prototype,g,true);d&&this.extend(c,d,true);return c},addFunction:function(d,c){return a.push(function(){return d.apply(c||this,arguments)})-1},removeFunction:function(d){a[d]=null},callFunction:function(d){var c=a[d];return c&&c.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var d=/^-?\d+\.?\d*px$/,c;return function(a){c=CKEDITOR.tools.trim(a+"")+"px";return d.test(c)? c:a||""}}(),convertToPx:function(){var d;return function(c){if(!d){d=CKEDITOR.dom.element.createFromHtml('
',CKEDITOR.document);CKEDITOR.document.getBody().append(d)}if(!/%$/.test(c)){var a=parseFloat(c)<0;a&&(c=c.replace("-",""));d.setStyle("width",c);c=d.$.clientWidth;return a?-c:c}return c}}(),repeat:function(d,c){return Array(c+1).join(d)},tryThese:function(){for(var d,c=0,a=arguments.length;c1?a[1]:"")}return null},setCookie:function(d,c){document.cookie=encodeURIComponent(d)+"="+encodeURIComponent(c)+";path=/"},getCsrfToken:function(){var d=CKEDITOR.tools.getCookie("ckCsrfToken");if(!d||d.length!=40){var d=[],c="";if(window.crypto&&window.crypto.getRandomValues){d= new Uint8Array(40);window.crypto.getRandomValues(d)}else for(var a=0;a<40;a++)d.push(Math.floor(Math.random()*256));for(a=0;a0.5?b.toUpperCase():b);d=c;CKEDITOR.tools.setCookie("ckCsrfToken",d)}return d},escapeCss:function(d){return!d?"":window.CSS&&CSS.escape?CSS.escape(d):!isNaN(parseInt(d.charAt(0),10))?"\\3"+d.charAt(0)+" "+d.substring(1,d.length):d},getMouseButton:function(d){var c=(d=d.data)&&d.$;return!d|| !c?false:CKEDITOR.env.ie&&CKEDITOR.env.version<9?c.button===4?CKEDITOR.MOUSE_BUTTON_MIDDLE:c.button===1?CKEDITOR.MOUSE_BUTTON_LEFT:CKEDITOR.MOUSE_BUTTON_RIGHT:c.button},convertHexStringToBytes:function(d){var c=[],a=d.length/2,b;for(b=0;b>2;i[1]=(g[0]&3)<<4|g[1]>>4;i[2]=(g[1]&15)<<2|(g[2]& 192)>>6;i[3]=g[2]&63;for(h=0;h<4;h++)c=h<=e?c+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i[h]):c+"="}return c},style:{parse:{_colors:{aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED", cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF", dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080", lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371", mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD", powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF", whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},_borderStyle:["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],_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(d){var c={},a=this._findColor(d);if(a.length){c.color=a[0];CKEDITOR.tools.array.forEach(a, function(c){d=d.replace(c,"")})}if(d=CKEDITOR.tools.trim(d))c.unprocessed=d;return c},margin:function(d){function c(d){a.top=b[d[0]];a.right=b[d[1]];a.bottom=b[d[2]];a.left=b[d[3]]}var a={},b=d.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset)/g)||["0px"];switch(b.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])}return a},border:function(d){var c={},a=d.split(/\s+/g),d=CKEDITOR.tools.style.parse._findColor(d);if(d.length)c.color=d[0]; CKEDITOR.tools.array.forEach(a,function(d){if(!c.style&&CKEDITOR.tools.indexOf(CKEDITOR.tools.style.parse._borderStyle,d)!==-1)c.style=d;else if(!c.width&&CKEDITOR.tools.style.parse._widthRegExp.test(d))c.width=d});return c},_findColor:function(d){var c=[],a=CKEDITOR.tools.array,c=c.concat(d.match(this._rgbaRegExp)||[]),c=c.concat(d.match(this._hslaRegExp)||[]);return c=c.concat(a.filter(d.split(/\s+/),function(d){return d.match(/^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi)?true:d.toLowerCase()in CKEDITOR.tools.style.parse._colors}))}}}, array:{filter:function(d,c,a){var b=[];this.forEach(d,function(g,e){c.call(a,g,e,d)&&b.push(g)});return b},forEach:function(d,c,a){var b=d.length,g;for(g=0;g]*?>)|^/i,'$&\n'); edit.write(''); edit.write(''); edit.write(''); edit.write($('#'+id).val()); edit.write(''); edit.write(''); edit.designMode="On"; CKEDITOR.instances[id]={ getData:function() { return document.getElementById('oz_'+id).contentWindow.document.body.innerHTML; }, insertHtml:function(html) { var _iframe=document.getElementById('oz_'+id); _iframe.contentWindow.focus(); if(_iframe.contentWindow.document.selection) { var oRng=_iframe.contentWindow.document.selection.createRange(); oRng.pasteHTML(html); oRng.collapse(false); oRng.select(); } else { _iframe.contentWindow.document.execCommand("InsertHTML", false, html); } }, mode:'wysiwyg' }; } }); }); });