@@ -2,14 +2,14 @@
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 ) return ; window . CKEDITOR || ( window . CKEDITOR = function ( ) { var a = /(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i , d = { timestamp : "K87C " , version : "4.15.0 " , revision : "cc4885b53 " , rnd : Math . floor ( 900 * Math . random ( ) ) + 100 , _ : { pending : [ ] , basePathSrcPattern : a } , status : "unloaded" , basePath : function ( ) { var b = window . CKEDITOR _BASEPATH || "" ; if ( ! b ) for ( var c = document . getElementsByTagName ( "script" ) , d = 0 ; d < c . length ; d ++ ) { var g = c [ d ] . src . match ( a ) ; if ( g ) { b = g [ 1 ] ; break } } - 1 == b . indexOf ( ":/" ) && "//" != b . slice ( 0 , 2 ) && ( b = 0 === b . indexOf ( "/" ) ? location . href . match ( /^.*?:\/\/[^\/]*/ ) [ 0 ] +
b : location . href . match ( /^[^\?]*\/(?:)/ ) [ 0 ] + b ) ; if ( ! b ) throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.' ; return b } ( ) , getUrl : function ( a ) { - 1 == a . indexOf ( ":/" ) && 0 !== a . indexOf ( "/" ) && ( a = this . basePath + a ) ; this . timestamp && "/" != a . charAt ( a . length - 1 ) && ! /[&?]t=/ . test ( a ) && ( a += ( 0 <= a . indexOf ( "?" ) ? "\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 ( c ) { } } function b ( ) { for ( var a ; a = c . shift ( ) ; ) a ( ) } var c = [ ] ; return function ( b ) { function d ( ) { try { document . documentElement . doScroll ( "left" ) } catch ( b ) { setTimeout ( d , 1 ) ; return } a ( ) } c . push ( b ) ; "complete" === document . readyState && setTimeout ( a , 1 ) ; if ( 1 == c . length ) if ( document . addEventListener ) document . addEventListener ( "DOMContentLoaded" , a , ! 1 ) , window . addEventListener ( "load" , a , ! 1 ) ; else if ( document . attachEvent ) { document . attachEvent ( "onreadystatechange" ,
a ) ; window . attachEvent ( "onload" , a ) ; b = ! 1 ; try { b = ! window . frameElement } catch ( h ) { } document . documentElement . doScroll && b && d ( ) } } } ( ) } , b = window . CKEDITOR _GETURL ; if ( b ) { var c = d . getUrl ; d . getUrl = function ( a ) { return b . call ( d , a ) || c . call ( d , a ) } } return d } ( ) ) ;
( function ( ) { if ( window . CKEDITOR && window . CKEDITOR . dom ) return ; window . CKEDITOR || ( window . CKEDITOR = function ( ) { var a = /(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i , d = { timestamp : "KA9B " , version : "4.15.1 " , revision : "1aa21195b " , rnd : Math . floor ( 900 * Math . random ( ) ) + 100 , _ : { pending : [ ] , basePathSrcPattern : a } , status : "unloaded" , basePath : function ( ) { var c = window . CKEDITOR _BASEPATH || "" ; if ( ! c ) for ( var b = document . getElementsByTagName ( "script" ) , d = 0 ; d < b . length ; d ++ ) { var g = b [ d ] . src . match ( a ) ; if ( g ) { c = g [ 1 ] ; break } } - 1 == c . indexOf ( ":/" ) && "//" != c . slice ( 0 , 2 ) && ( c = 0 === c . indexOf ( "/" ) ? location . href . match ( /^.*?:\/\/[^\/]*/ ) [ 0 ] +
c : location . href . match ( /^[^\?]*\/(?:)/ ) [ 0 ] + c ) ; if ( ! c ) throw 'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.' ; return c } ( ) , 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 ) , window . removeEventListener ( "load" , a , ! 1 ) , c ( ) ) : document . attachEvent && "complete" === document . readyState && ( document . detachEvent ( "onreadystatechange" , a ) , window . detachEvent ( "onload" , a ) , c ( ) ) } catch ( b ) { } } function c ( ) { for ( var a ; a = b . shift ( ) ; ) a ( ) } var b = [ ] ; return function ( c ) { function d ( ) { try { document . documentElement . doScroll ( "left" ) } catch ( c ) { setTimeout ( d , 1 ) ; return } a ( ) } b . push ( c ) ; "complete" === document . readyState && setTimeout ( a , 1 ) ; if ( 1 == b . 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 ) ; c = ! 1 ; try { c = ! window . frameElement } catch ( h ) { } document . documentElement . doScroll && c && d ( ) } } } ( ) } , b = window . CKEDITOR _GETURL ; if ( b ) { var c = d . getUrl ; d . getUrl = function ( a ) { return b . call ( d , a ) || c . call ( d , a ) } } return d } ( ) ) ;
CKEDITOR . event || ( CKEDITOR . event = function ( ) { } , CKEDITOR . event . implementOn = function ( a ) { var d = CKEDITOR . event . prototype , b ; for ( b in d ) null == a [ b ] && ( a [ b ] = d [ b ] ) } , CKEDITOR . event . prototype = function ( ) { function a ( a ) { var f = d ( this ) ; return f [ a ] || ( f [ a ] = new b ( a ) ) } var d = function ( a ) { a = a . getPrivate && a . getPrivate ( ) || a . _ || ( a . _ = { } ) ; return a . events || ( a . events = { } ) } , b = function ( a ) { this . name = a ; this . listeners = [ ] } ; b . prototype = { getListenerIndex : function ( a ) { for ( var b = 0 , d = this . listeners ; b < d . length ; b ++ ) if ( d [ b ] . fn == a ) return b ; return - 1 } } ;
return { define : function ( b , d ) { var h = a . call ( this , b ) ; CKEDITOR . tools . extend ( h , d , ! 0 ) } , on : function ( b , d , h , k , g ) { function l ( a , x , w , e ) { a = { name : b , sender : this , editor : a , data : x , listenerData : k , stop : w , cancel : e , removeListener : u } ; return ! 1 === d . call ( h , a ) ? ! 1 : a . data } function u ( ) { x . removeListener ( b , d ) } var e = a . call ( this , b ) ; if ( 0 > e . getListenerIndex ( d ) ) { e = e . listeners ; h || ( h = this ) ; isNaN ( g ) && ( g = 10 ) ; var x = this ; l . fn = d ; l . priority = g ; for ( var w = e . length - 1 ; 0 <= w ; w -- ) if ( e [ w ] . priority <= g ) return e . splice ( w + 1 , 0 , l ) , { removeListener : u } ; e . unshift ( l ) } return { removeListener : u } } ,
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 } , h = 0 , k = function ( ) { h = 1 } ; return function ( g , l , u ) { var e = d ( this ) [ g ] ; g = a ; var x = h ; a = h = 0 ; if ( e ) { var w = e . listeners ; if ( w . length ) for ( var w = w . slice ( 0 ) , z , H = 0 ; H < w . length ; H ++ ) { if ( e . errorProof ) try { z =
w [ H ] . call ( this , u , l , b , k ) } catch ( t ) { } else z = w [ H ] . call ( this , u , l , b , k ) ; ! 1 === z ? h = 1 : "undefined" != typeof z && ( l = z ) ; if ( a || h ) break } } l = h ? ! 1 : "undefined" == typeof l ? ! 0 : l ; a = g ; h = x ; return l } } ( ) , fireOnce : function ( a , b , h ) { b = this . fire ( a , b , h ) ; delete d ( this ) [ a ] ; return b } , removeListener : function ( a , b ) { var h = d ( this ) [ a ] ; if ( h ) { var k = h . getListenerIndex ( b ) ; 0 <= k && h . listeners . splice ( k , 1 ) } } , removeAllListeners : function ( ) { var a = d ( this ) , b ; for ( b in a ) delete a [ b ] } , hasListeners : function ( a ) { return ( a = d ( this ) [ a ] ) && 0 < a . listeners . length } } } ( ) ) ;
return { define : function ( b , d ) { var h = a . call ( this , b ) ; CKEDITOR . tools . extend ( h , d , ! 0 ) } , on : function ( b , d , h , k , g ) { function l ( a , z , w , e ) { a = { name : b , sender : this , editor : a , data : z , listenerData : k , stop : w , cancel : e , removeListener : v } ; return ! 1 === d . call ( h , a ) ? ! 1 : a . data } function v ( ) { z . removeListener ( b , d ) } var e = a . call ( this , b ) ; if ( 0 > e . getListenerIndex ( d ) ) { e = e . listeners ; h || ( h = this ) ; isNaN ( g ) && ( g = 10 ) ; var z = this ; l . fn = d ; l . priority = g ; for ( var w = e . length - 1 ; 0 <= w ; w -- ) if ( e [ w ] . priority <= g ) return e . splice ( w + 1 , 0 , l ) , { removeListener : v } ; e . unshift ( l ) } return { removeListener : v } } ,
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 } , h = 0 , k = function ( ) { h = 1 } ; return function ( g , l , v ) { var e = d ( this ) [ g ] ; g = a ; var z = h ; a = h = 0 ; if ( e ) { var w = e . listeners ; if ( w . length ) for ( var w = w . slice ( 0 ) , A , F = 0 ; F < w . length ; F ++ ) { if ( e . errorProof ) try { A =
w [ F ] . call ( this , v , l , b , k ) } catch ( u ) { } else A = w [ F ] . call ( this , v , l , b , k ) ; ! 1 === A ? h = 1 : "undefined" != typeof A && ( l = A ) ; if ( a || h ) break } } l = h ? ! 1 : "undefined" == typeof l ? ! 0 : l ; a = g ; h = z ; return l } } ( ) , fireOnce : function ( a , b , h ) { b = this . fire ( a , b , h ) ; delete d ( this ) [ a ] ; return b } , removeListener : function ( a , b ) { var h = d ( this ) [ a ] ; if ( h ) { var k = h . getListenerIndex ( b ) ; 0 <= k && h . listeners . splice ( k , 1 ) } } , removeAllListeners : function ( ) { var a = d ( this ) , b ; for ( b in a ) delete a [ b ] } , hasListeners : function ( a ) { return ( a = d ( this ) [ a ] ) && 0 < a . listeners . length } } } ( ) ) ;
CKEDITOR . editor || ( CKEDITOR . editor = function ( ) { CKEDITOR . _ . pending . push ( [ this , arguments ] ) ; CKEDITOR . event . call ( this ) } , CKEDITOR . editor . prototype . fire = function ( a , d ) { a in { instanceReady : 1 , loaded : 1 } && ( this [ a ] = ! 0 ) ; return CKEDITOR . event . prototype . fire . call ( this , a , d , this ) } , CKEDITOR . editor . prototype . fireOnce = function ( a , d ) { a in { instanceReady : 1 , loaded : 1 } && ( this [ a ] = ! 0 ) ; return CKEDITOR . event . prototype . fireOnce . call ( this , a , d , this ) } , CKEDITOR . event . implementOn ( CKEDITOR . editor . prototype ) ) ;
CKEDITOR . env || ( CKEDITOR . env = function ( ) { var a = navigator . userAgent . toLowerCase ( ) , d = a . match ( /edge[ \/](\d+.?\d*)/ ) , b = - 1 < a . indexOf ( "trident/" ) , b = ! ( ! d && ! b ) , b = { ie : b , edge : ! ! d , webkit : ! b && - 1 < a . indexOf ( " applewebkit/" ) , air : - 1 < a . indexOf ( " adobeair/" ) , mac : - 1 < a . indexOf ( "macintosh" ) , quirks : "BackCompat" == document . compatMode && ( ! document . documentMode || 10 > document . documentMode ) , mobile : - 1 < a . indexOf ( "mobile" ) , iOS : /(ipad|iphone|ipod)/ . test ( a ) , isCustomDomain : function ( ) { if ( ! this . ie ) return ! 1 ; var a = document . domain , b = window . location . hostname ;
return a != b && a != "[" + b + "]" } , secure : "https:" == location . protocol } ; b . gecko = "Gecko" == navigator . product && ! b . webkit && ! b . ie ; b . webkit && ( - 1 < a . indexOf ( "chrome" ) ? b . chrome = ! 0 : b . safari = ! 0 ) ; var c = 0 ; b . ie && ( c = d ? parseFloat ( d [ 1 ] ) : b . quirks || ! document . documentMode ? parseFloat ( a . match ( /msie (\d+)/ ) [ 1 ] ) : document . documentMode , b . ie9Compat = 9 == c , b . ie8Compat = 8 == c , b . ie7Compat = 7 == c , b . ie6Compat = 7 > c || b . quirks ) ; b . gecko && ( d = a . match ( /rv:([\d\.]+)/ ) ) && ( d = d [ 1 ] . split ( "." ) , c = 1E4 * d [ 0 ] + 100 * ( d [ 1 ] || 0 ) + 1 * ( d [ 2 ] || 0 ) ) ; b . air && ( c = parseFloat ( a . match ( / adobeair\/(\d+)/ ) [ 1 ] ) ) ;
@@ -19,45 +19,46 @@ b.iOS&&(b.cssClass+=" cke_browser_ios");b.hidpi&&(b.cssClass+=" cke_hidpi");retu
CKEDITOR . loadFullCore , d = CKEDITOR . loadFullCoreTimeout ; a && ( CKEDITOR . status = "basic_ready" , a && a . _load ? a ( ) : d && setTimeout ( function ( ) { CKEDITOR . loadFullCore && CKEDITOR . loadFullCore ( ) } , 1E3 * d ) ) } ) } ) ( ) ; CKEDITOR . status = "basic_loaded" } ( ) ; "use strict" ; CKEDITOR . VERBOSITY _WARN = 1 ; CKEDITOR . VERBOSITY _ERROR = 2 ; CKEDITOR . verbosity = CKEDITOR . VERBOSITY _WARN | CKEDITOR . VERBOSITY _ERROR ; CKEDITOR . warn = function ( a , d ) { CKEDITOR . verbosity & CKEDITOR . VERBOSITY _WARN && CKEDITOR . fire ( "log" , { type : "warn" , errorCode : a , additionalData : d } ) } ;
CKEDITOR . error = function ( a , d ) { CKEDITOR . verbosity & CKEDITOR . VERBOSITY _ERROR && CKEDITOR . fire ( "log" , { type : "error" , errorCode : a , additionalData : d } ) } ;
CKEDITOR . on ( "log" , function ( a ) { if ( window . console && window . console . log ) { var d = console [ a . data . type ] ? a . data . type : "log" , b = a . data . errorCode ; if ( a = a . data . additionalData ) console [ d ] ( "[CKEDITOR] Error code: " + b + "." , a ) ; else console [ d ] ( "[CKEDITOR] Error code: " + b + "." ) ; console [ d ] ( "[CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#" + b ) } } , null , null , 999 ) ; CKEDITOR . dom = { } ;
( function ( ) { function a ( a , b , e ) { this . _minInterval = a ; this . _context = e ; this . _lastOutput = this . _scheduledTimer = 0 ; this . _output = CKEDITOR . tools . bind ( b , e || { } ) ; var c = this ; this . input = function ( ) { function a ( ) { c . _lastOutput = ( new Date ) . getTime ( ) ; c . _scheduledTimer = 0 ; c . _call ( ) } if ( ! c . _scheduledTimer || ! 1 !== c . _reschedule ( ) ) { var x = ( new Date ) . getTime ( ) - c . _lastOutput ; x < c . _minInterval ? c . _scheduledTimer = setTimeout ( a , c . _minInterval - x ) : a ( ) } } } function d ( x , b , e ) { a . call ( this , x , b , e ) ; this . _args = [ ] ; var c = this ; this . input = CKEDITOR . tools . override ( this . input ,
function ( a ) { return function ( ) { c . _args = Array . prototype . slice . call ( arguments ) ; a . call ( this ) } } ) } var b = [ ] , c = CKEDITOR . env . gecko ? "-moz-" : CKEDITOR . env . webkit ? "-webkit-" : CKEDITOR . env . ie ? "-ms-" : "" , f = /&/g , h = />/g , k = /</g , g = /"/g , l = /&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g , u = { lt : "\x3c" , gt : "\x3e" , amp : "\x26" , quot : '"' , nbsp : " " , shy : " " } , e = function ( a , b ) { return "#" == b [ 0 ] ? String . fromCharCode ( parseInt ( b . slice ( 1 ) , 10 ) ) : u [ b ] } ; CKEDITOR . on ( "reset" , function ( ) { b = [ ] } ) ; CKEDITOR . tools = { arrayCompare : function ( a , b ) { if ( ! a && ! b ) return ! 0 ;
if ( ! a || ! b || a . length != b . length ) return ! 1 ; for ( var e = 0 ; e < a . length ; e ++ ) if ( a [ e ] != b [ e ] ) return ! 1 ; return ! 0 } , getIndex : function ( a , b ) { for ( var e = 0 ; e < a . length ; ++ e ) if ( b ( a [ e ] ) ) return e ; return - 1 } , clone : function ( a ) { var b ; if ( a && a instanceof Array ) { b = [ ] ; for ( var e = 0 ; e < a . length ; e ++ ) b [ e ] = CKEDITOR . tools . clone ( a [ e ] ) ; return b } if ( null === a || "object" != typeof a || a instanceof String || a instanceof Number || a instanceof Boolean || a instanceof Date || a instanceof RegExp || a . nodeType || a . window === a ) return a ; b = new a . constructor ; for ( e in a ) b [ e ] =
CKEDITOR . tools . clone ( a [ e ] ) ; return b } , capitalize : function ( a , b ) { return a . charAt ( 0 ) . toUpperCase ( ) + ( b ? a . slice ( 1 ) : a . slice ( 1 ) . toLowerCase ( ) ) } , extend : function ( a ) { var b = arguments . length , e , c ; "boolean" == typeof ( e = arguments [ b - 1 ] ) ? b -- : "boolean" == typeof ( e = arguments [ b - 2 ] ) && ( c = arguments [ b - 1 ] , b -= 2 ) ; for ( var g = 1 ; g < b ; g ++ ) { var n = arguments [ g ] || { } ; CKEDITOR . tools . array . forEach ( CKEDITOR . tools . object . keys ( n ) , function ( b ) { if ( ! 0 === e || null == a [ b ] ) if ( ! c || b in c ) a [ b ] = n [ b ] } ) } return a } , prototypedCopy : function ( a ) { var b = function ( ) { } ;
b . prototype = a ; return new b } , copy : function ( a ) { var b = { } , e ; for ( e in a ) b [ e ] = a [ e ] ; return b } , isArray : function ( a ) { return "[object Array]" == Object . prototype . toString . call ( a ) } , isEmpty : function ( a ) { for ( var b in a ) if ( a . hasOwnProperty ( b ) ) return ! 1 ; return ! 0 } , cssVendorPrefix : function ( a , b , e ) { if ( e ) return c + a + ":" + b + ";" + a + ":" + b ; e = { } ; e [ a ] = b ; e [ c + a ] = b ; return e } , cssStyleToDomStyle : function ( ) { var a = document . createElement ( "div" ) . style , b = "undefined" != typeof a . cssFloat ? "cssFloat" : "undefined" != typeof a . styleFloat ? "styleFloat" :
"float" ; return function ( a ) { return "float" == a ? b : a . replace ( /-./g , function ( a ) { return a . substr ( 1 ) . toUpperCase ( ) } ) } } ( ) , buildStyleHtml : function ( a ) { a = [ ] . concat ( a ) ; for ( var b , e = [ ] , c = 0 ; c < a . length ; c ++ ) if ( b = a [ c ] ) / @ import | [ { } ] / . test ( b ) ? e . push ( "\x3cstyle\x3e" + b + "\x3c/style\x3e" ) : e . push ( '\x3clink type\x3d"text/css" rel\x3dstylesheet href\x3d"' + b + '"\x3e' ) ; return e . join ( "" ) } , htmlEncode : function ( a ) { return void 0 === a || null === a ? "" : String ( a ) . replace ( f , "\x26amp;" ) . replace ( h , "\x26gt;" ) . replace ( k , "\x26lt;" ) } , htmlDecode : function ( a ) { return a . replace ( l ,
e ) } , htmlEncodeAttr : function ( a ) { return CKEDITOR . tools . htmlEncode ( a ) . replace ( g , "\x26quot;" ) } , htmlDecodeAttr : function ( a ) { return CKEDITOR . tools . htmlDecode ( a ) } , transformPlainTextToHtml : function ( a , b ) { var e = b == CKEDITOR . ENTER _BR , c = this . htmlEncode ( a . replace ( /\r\n/g , "\n" ) ) , c = c . replace ( /\t/g , "\x26nbsp;\x26nbsp; \x26nbsp;" ) , g = b == CKEDITOR . ENTER _P ? "p" : "div" ; if ( ! e ) { var n = /\n{2}/g ; if ( n . test ( c ) ) var d = "\x3c" + g + "\x3e" , l = "\x3c/" + g + "\x3e" , c = d + c . replace ( n , function ( ) { return l + d } ) + l } c = c . replace ( /\n/g , "\x3cbr\x3e" ) ; e || ( c =
c . replace ( new RegExp ( "\x3cbr\x3e(?\x3d\x3c/" + g + "\x3e)" ) , function ( a ) { return CKEDITOR . tools . repeat ( a , 2 ) } ) ) ; c = c . replace ( /^ | $/g , "\x26nbsp;" ) ; return c = c . replace ( /(>|\s) /g , function ( a , b ) { return b + "\x26nbsp;" } ) . replace ( / (?=<)/g , "\x26nbsp;" ) } , getNextNumber : function ( ) { var a = 0 ; return function ( ) { return ++ a } } ( ) , getNextId : function ( ) { return "cke_" + this . getNextNumber ( ) } , getUniqueId : function ( ) { for ( var a = "e" , b = 0 ; 8 > b ; b ++ ) a += Math . floor ( 65536 * ( 1 + Math . random ( ) ) ) . toString ( 16 ) . substring ( 1 ) ; return a } , override : function ( a ,
b ) { var e = b ( a ) ; e . prototype = a . prototype ; return e } , setTimeout : function ( a , b , e , c , g ) { g || ( g = window ) ; e || ( e = g ) ; return g . setTimeout ( function ( ) { c ? a . apply ( e , [ ] . concat ( c ) ) : a . apply ( e ) } , b || 0 ) } , throttle : function ( a , b , e ) { return new this . buffers . throttle ( a , b , e ) } , trim : function ( ) { var a = /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g ; return function ( b ) { return b . replace ( a , "" ) } } ( ) , ltrim : function ( ) { var a = /^[ \t\n\r]+/g ; return function ( b ) { return b . replace ( a , "" ) } } ( ) , rtrim : function ( ) { var a = /[ \t\n\r]+$/g ; return function ( b ) { return b . replace ( a ,
"" ) } } ( ) , indexOf : function ( a , b ) { if ( "function" == typeof b ) for ( var e = 0 , c = a . length ; e < c ; e ++ ) { if ( b ( a [ e ] ) ) return e } else { if ( a . indexOf ) return a . indexOf ( b ) ; e = 0 ; for ( c = a . length ; e < c ; e ++ ) if ( a [ e ] === b ) return e } return - 1 } , search : function ( a , b ) { var e = CKEDITOR . tools . indexOf ( a , b ) ; return 0 <= e ? a [ e ] : null } , bind : function ( a , b ) { var e = Array . prototype . slice . call ( arguments , 2 ) ; return function ( ) { return a . apply ( b , e . concat ( Array . prototype . slice . call ( arguments ) ) ) } } , createClass : function ( a ) { var b = a . $ , e = a . base , c = a . privates || a . _ , g = a . proto ;
a = a . statics ; ! b && ( b = function ( ) { e && this . base . apply ( this , arguments ) } ) ; if ( c ) var n = b , b = function ( ) { var a = this . _ || ( this . _ = { } ) , b ; for ( b in c ) { var e = c [ b ] ; a [ b ] = "function" == typeof e ? CKEDITOR . tools . bind ( e , this ) : e } n . apply ( this , arguments ) } ; e && ( b . prototype = this . prototypedCopy ( e . prototype ) , b . prototype . constructor = b , b . base = e , b . baseProto = e . prototype , b . prototype . base = function y ( ) { this . base = e . prototype . base ; e . apply ( this , arguments ) ; this . base = y } ) ; g && this . extend ( b . prototype , g , ! 0 ) ; a && this . extend ( b , a , ! 0 ) ; return b } , addFunction : function ( a ,
e ) { return b . push ( function ( ) { return a . apply ( e || this , arguments ) } ) - 1 } , removeFunction : function ( a ) { b [ a ] = null } , callFunction : function ( a ) { var e = b [ a ] ; return e && e . apply ( window , Array . prototype . slice . call ( arguments , 1 ) ) } , cssLength : function ( ) { var a = /^-?\d+\.?\d*px$/ , b ; return function ( e ) { b = CKEDITOR . tools . trim ( e + "" ) + "px" ; return a . test ( b ) ? b : e || "" } } ( ) , convertToPx : function ( ) { var a ; return function ( b ) { a || ( a = 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 ( a ) ) ; if ( ! /%$/ . test ( b ) ) { var e = 0 > parseFloat ( b ) ; e && ( b = b . replace ( "-" , "" ) ) ; a . setStyle ( "width" , b ) ; b = a . $ . clientWidth ; return e ? - b : b } return b } } ( ) , repeat : function ( a , b ) { return Array ( b + 1 ) . join ( a ) } , tryThese : function ( ) { for ( var a , b = 0 , e = arguments . length ; b < e ; b ++ ) { var c = arguments [ b ] ; try { a = c ( ) ; break } catch ( g ) { } } return a } , genKey : function ( ) { return Array . prototype . slice . call ( arguments ) . join ( "-" ) } , defer : function ( a ) { return function ( ) { var b = arguments , e = this ; window . setTimeout ( function ( ) { a . apply ( e ,
b ) } , 0 ) } } , normalizeCssText : function ( a , b ) { var e = [ ] , c , g = CKEDITOR . tools . parseCssText ( a , ! 0 , b ) ; for ( c in g ) e . push ( c + ":" + g [ c ] ) ; e . sort ( ) ; return e . length ? e . join ( ";" ) + ";" : "" } , convertRgbToHex : function ( a ) { return a . replace ( /(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi , function ( a , b , e , c ) { a = [ b , e , c ] ; for ( b = 0 ; 3 > b ; b ++ ) a [ b ] = ( "0" + parseInt ( a [ b ] , 10 ) . toString ( 16 ) ) . slice ( - 2 ) ; return "#" + a . join ( "" ) } ) } , normalizeHex : function ( a ) { return a . replace ( /#(([0-9a-f]{3}){1,2})($|;|\s+)/gi , function ( a , b , e , c ) { a = b . toLowerCase ( ) ; 3 == a . length &&
( a = a . split ( "" ) , a = [ a [ 0 ] , a [ 0 ] , a [ 1 ] , a [ 1 ] , a [ 2 ] , a [ 2 ] ] . join ( "" ) ) ; return "#" + a + c } ) } , parseCssText : function ( a , b , e ) { var c = { } ; e && ( a = ( new CKEDITOR . dom . element ( "span" ) ) . setAttribute ( "style" , a ) . getAttribute ( "style" ) || "" ) ; a && ( a = CKEDITOR . tools . normalizeHex ( CKEDITOR . tools . convertRgbToHex ( a ) ) ) ; if ( ! a || ";" == a ) return c ; a . replace ( /"/g , '"' ) . replace ( /\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g , function ( a , e , x ) { b && ( e = e . toLowerCase ( ) , "font-family" == e && ( x = x . replace ( /\s*,\s*/g , "," ) ) , x = CKEDITOR . tools . trim ( x ) ) ; c [ e ] = x } ) ; return c } ,
writeCssText : function ( a , b ) { var e , c = [ ] ; for ( e in a ) c . push ( e + ":" + a [ e ] ) ; b && c . sort ( ) ; return c . join ( "; " ) } , objectCompare : function ( a , b , e ) { var c ; if ( ! a && ! b ) return ! 0 ; if ( ! a || ! b ) return ! 1 ; for ( c in a ) if ( a [ c ] != b [ c ] ) return ! 1 ; if ( ! e ) for ( c in b ) if ( a [ c ] != b [ c ] ) return ! 1 ; return ! 0 } , objectKeys : function ( a ) { return CKEDITOR . tools . object . keys ( a ) } , convertArrayToObject : function ( a , b ) { var e = { } ; 1 == arguments . length && ( b = ! 0 ) ; for ( var c = 0 , g = a . length ; c < g ; ++ c ) e [ a [ c ] ] = b ; return e } , getStyledSpans : function ( a , b ) { var e = CKEDITOR . env . ie && 8 == CKEDITOR . env . version ?
a . toUpperCase ( ) : a , e = b . find ( "span[style*\x3d" + e + "]" ) . toArray ( ) ; return CKEDITOR . tools . array . filter ( e , function ( b ) { return ! ! b . getStyle ( a ) } ) } , fixDomain : function ( ) { for ( var a ; ; ) try { a = window . parent . document . domain ; break } catch ( b ) { a = a ? a . replace ( /.+?(?:\.|$)/ , "" ) : document . domain ; if ( ! a ) break ; document . domain = a } return ! ! a } , eventsBuffer : function ( a , b , e ) { return new this . buffers . event ( a , b , e ) } , enableHtml5Elements : function ( a , b ) { 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 ( " " ) ,
c = e . length , g ; c -- ; ) g = a . createElement ( e [ c ] ) , b && a . appendChild ( g ) } , checkIfAnyArrayItemMatches : function ( a , b ) { for ( var e = 0 , c = a . length ; e < c ; ++ e ) if ( a [ e ] . match ( b ) ) return ! 0 ; return ! 1 } , checkIfAnyObjectPropertyMatches : function ( a , b ) { for ( var e in a ) if ( e . match ( b ) ) return ! 0 ; return ! 1 } , keystrokeToString : function ( a , b ) { var e = this . keystrokeToArray ( a , b ) ; e . display = e . display . join ( "+" ) ; e . aria = e . aria . join ( "+" ) ; return e } , keystrokeToArray : function ( a , b ) { var e = b & 16711680 , c = b & 65535 , g = CKEDITOR . env . mac , n = [ ] , d = [ ] ; e & CKEDITOR . CTRL && ( n . push ( g ?
"⌘" : a [ 17 ] ) , d . push ( g ? a [ 224 ] : a [ 17 ] ) ) ; e & CKEDITOR . ALT && ( n . push ( g ? "⌥" : a [ 18 ] ) , d . push ( a [ 18 ] ) ) ; e & CKEDITOR . SHIFT && ( n . push ( g ? "⇧" : a [ 16 ] ) , d . push ( a [ 16 ] ) ) ; c && ( a [ c ] ? ( n . push ( a [ c ] ) , d . push ( a [ c ] ) ) : ( n . push ( String . fromCharCode ( c ) ) , d . push ( String . fromCharCode ( c ) ) ) ) ; return { display : n , aria : d } } , transparentImageData : "data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw\x3d\x3d" , getCookie : function ( a ) { a = a . toLowerCase ( ) ; for ( var b = document . cookie . split ( ";" ) , e , c , g = 0 ; g < b . length ; g ++ ) if ( e = b [ g ] . split ( "\x3d" ) ,
c = decodeURIComponent ( CKEDITOR . tools . trim ( e [ 0 ] ) . toLowerCase ( ) ) , c === a ) return decodeURIComponent ( 1 < e . length ? e [ 1 ] : "" ) ; return null } , setCookie : function ( a , b ) { document . cookie = encodeURIComponent ( a ) + "\x3d" + encodeURIComponent ( b ) + ";path\x3d/" } , getCsrfToken : function ( ) { var a = CKEDITOR . tools . getCookie ( "ckCsrfToken" ) ; if ( ! a || 40 != a . length ) { var a = [ ] , b = "" ; if ( window . crypto && window . crypto . getRandomValues ) a = new Uint8Array ( 40 ) , window . crypto . getRandomValues ( a ) ; else for ( var e = 0 ; 40 > e ; e ++ ) a . push ( Math . floor ( 256 * Math . random ( ) ) ) ;
for ( e = 0 ; e < a . length ; e ++ ) var c = "abcdefghijklmnopqrstuvwxyz0123456789" . charAt ( a [ e ] % 36 ) , b = b + ( . 5 < Math . random ( ) ? c . toUpperCase ( ) : c ) ; a = b ; CKEDITOR . tools . setCookie ( "ckCsrfToken" , a ) } return a } , escapeCss : function ( a ) { return a ? window . CSS && CSS . escape ? CSS . escape ( a ) : isNaN ( parseInt ( a . charAt ( 0 ) , 10 ) ) ? a : "\\3" + a . charAt ( 0 ) + " " + a . substring ( 1 , a . length ) : "" } , getMouseButton : function ( a ) { return ( a = a && a . data ? a . data . $ : a ) ? CKEDITOR . tools . normalizeMouseButton ( a . button ) : ! 1 } , normalizeMouseButton : function ( a , b ) { if ( ! CKEDITOR . env . ie || 9 <= CKEDITOR . env . version &&
! CKEDITOR . env . ie6Compat ) return a ; for ( var e = [ [ CKEDITOR . MOUSE _BUTTON _LEFT , 1 ] , [ CKEDITOR . MOUSE _BUTTON _MIDDLE , 4 ] , [ CKEDITOR . MOUSE _BUTTON _RIGHT , 2 ] ] , c = 0 ; c < e . length ; c ++ ) { var g = e [ c ] ; if ( g [ 0 ] === a && b ) return g [ 1 ] ; if ( ! b && g [ 1 ] === a ) return g [ 0 ] } } , convertHexStringToBytes : function ( a ) { var b = [ ] , e = a . length / 2 , c ; for ( c = 0 ; c < e ; c ++ ) b . push ( parseInt ( a . substr ( 2 * c , 2 ) , 16 ) ) ; return b } , convertBytesToBase64 : function ( a ) { var b = "" , e = a . length , c ; for ( c = 0 ; c < e ; c += 3 ) { var g = a . slice ( c , c + 3 ) , n = g . length , d = [ ] , l ; if ( 3 > n ) for ( l = n ; 3 > l ; l ++ ) g [ l ] = 0 ; d [ 0 ] = ( g [ 0 ] &
252 ) >> 2 ; d [ 1 ] = ( g [ 0 ] & 3 ) << 4 | g [ 1 ] >> 4 ; d [ 2 ] = ( g [ 1 ] & 15 ) << 2 | ( g [ 2 ] & 192 ) >> 6 ; d [ 3 ] = g [ 2 ] & 63 ; for ( l = 0 ; 4 > l ; l ++ ) b = l <= n ? b + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" . charAt ( d [ l ] ) : b + "\x3d" } return b } , 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 ( a ) { var b = { } , e = this . _findColor ( a ) ;
e . length && ( b . color = e [ 0 ] , CKEDITOR . tools . array . forEach ( e , function ( b ) { a = a . replace ( b , "" ) } ) ) ; if ( a = CKEDITOR . tools . trim ( a ) ) b . unprocessed = a ; return b } , margin : function ( a ) { return CKEDITOR . tools . style . parse . sideShorthand ( a , function ( a ) { return a . match ( /(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset|revert)/g ) || [ "0px" ] } ) } , sideShorthand : function ( a , b ) { function e ( a ) { c . top = g [ a [ 0 ] ] ; c . right = g [ a [ 1 ] ] ; c . bottom = g [ a [ 2 ] ] ; c . left = g [ a [ 3 ] ] } var c = { } , g = b ? b ( a ) : a . split ( /\s+/ ) ; switch ( g . 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 c } , border : function ( a ) { return CKEDITOR . tools . style . border . fromCssRule ( a ) } , _findColor : function ( a ) { var b = [ ] , e = CKEDITOR . tools . array , b = b . concat ( a . match ( this . _rgbaRegExp ) || [ ] ) , b = b . concat ( a . match ( this . _hslaRegExp ) || [ ] ) ; return b = b . concat ( e . filter ( a . split ( /\s+/ ) , function ( a ) { return a . match ( /^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi ) ? ! 0 : a . toLowerCase ( ) in CKEDITOR . tools . style . parse . _colors } ) ) } } } , array : { filter : function ( a , b , e ) { var c = [ ] ; this . forEach ( a ,
function ( g , n ) { b . call ( e , g , n , a ) && c . push ( g ) } ) ; return c } , find : function ( a , b , e ) { for ( var c = a . length , g = 0 ; g < c ; ) { if ( b . call ( e , a [ g ] , g , a ) ) return a [ g ] ; g ++ } } , forEach : function ( a , b , e ) { var c = a . length , g ; for ( g = 0 ; g < c ; g ++ ) b . call ( e , a [ g ] , g , a ) } , map : function ( a , b , e ) { for ( var c = [ ] , g = 0 ; g < a . length ; g ++ ) c . push ( b . call ( e , a [ g ] , g , a ) ) ; return c } , reduce : function ( a , b , e , c ) { for ( var g = 0 ; g < a . length ; g ++ ) e = b . call ( c , e , a [ g ] , g , a ) ; return e } , every : function ( a , b , e ) { if ( ! a . length ) return ! 0 ; b = this . filter ( a , b , e ) ; return a . length === b . length } , some : function ( a ,
b , e ) { for ( var c = 0 ; c < a . length ; c ++ ) if ( b . call ( e , a [ c ] , c , a ) ) return ! 0 ; return ! 1 } } , object : { DONT _ENUMS : "toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor" . split ( " " ) , entries : function ( a ) { return CKEDITOR . tools . array . map ( CKEDITOR . tools . object . keys ( a ) , function ( b ) { return [ b , a [ b ] ] } ) } , values : function ( a ) { return CKEDITOR . tools . array . map ( CKEDITOR . tools . object . keys ( a ) , function ( b ) { return a [ b ] } ) } , keys : function ( a ) { var b = Object . prototype . hasOwnProperty , e = [ ] , c = CKEDITOR . tools . object . DONT _ENUMS ;
if ( CKEDITOR . env . ie && 9 > CKEDITOR . env . version && ( ! a || "object" !== typeof a ) ) { b = [ ] ; if ( "string" === typeof a ) for ( e = 0 ; e < a . length ; e ++ ) b . push ( String ( e ) ) ; return b } for ( var g in a ) e . push ( g ) ; if ( CKEDITOR . env . ie && 9 > CKEDITOR . env . version ) for ( g = 0 ; g < c . length ; g ++ ) b . call ( a , c [ g ] ) && e . push ( c [ g ] ) ; return e } , findKey : function ( a , b ) { if ( "object" !== typeof a ) return null ; for ( var e in a ) if ( a [ e ] === b ) return e ; return null } , merge : function ( a , b ) { var e = CKEDITOR . tools , c = e . clone ( a ) , g = e . clone ( b ) ; e . array . forEach ( e . object . keys ( g ) , function ( a ) { c [ a ] =
"object" === typeof g [ a ] && "object" === typeof c [ a ] ? e . object . merge ( c [ a ] , g [ a ] ) : g [ a ] } ) ; return c } } , getAbsoluteRectPosition : function ( a , b ) { function e ( a ) { if ( a ) { var b = a . getClientRect ( ) ; c . top += b . top ; c . left += b . left ; "x" in c && "y" in c && ( c . x += b . x , c . y += b . y ) ; e ( a . getWindow ( ) . getFrame ( ) ) } } var c = CKEDITOR . tools . copy ( b ) ; e ( a . getFrame ( ) ) ; var g = CKEDITOR . document . getWindow ( ) . getScrollPosition ( ) ; c . top += g . y ; c . left += g . x ; "x" in c && "y" in c && ( c . y += g . y , c . x += g . x ) ; c . right = c . left + c . width ; c . bottom = c . top + c . height ; return c } } ; a . 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 } } ; d . prototype = CKEDITOR . tools . prototypedCopy ( a . prototype ) ; d . prototype . _reschedule = function ( ) { this . _scheduledTimer && this . _clearTimer ( ) } ; d . prototype . _call = function ( ) { this . _output . apply ( this . _context , this . _args ) } ; CKEDITOR . tools . buffers = { } ; CKEDITOR . tools . buffers . event = a ; CKEDITOR . tools . buffers . throttle = d ; CKEDITOR . tools . style . border =
CKEDITOR . tools . createClass ( { $ : function ( a ) { a = a || { } ; this . width = a . width ; this . style = a . style ; this . color = a . color ; this . _ . normalize ( ) } , _ : { normalizeMap : { color : [ [ /windowtext/g , "black" ] ] } , normalize : function ( ) { for ( var a in this . _ . normalizeMap ) { var b = this [ a ] ; b && ( this [ a ] = CKEDITOR . tools . array . reduce ( this . _ . normalizeMap [ a ] , function ( a , b ) { return a . replace ( b [ 0 ] , b [ 1 ] ) } , b ) ) } } } , proto : { toString : function ( ) { return CKEDITOR . tools . array . filter ( [ this . width , this . style , this . color ] , function ( a ) { return ! ! a } ) . join ( " " ) } } , statics : { fromCssRule : function ( a ) { var b =
{ } , e = a . split ( /\s+/g ) ; a = CKEDITOR . tools . style . parse . _findColor ( a ) ; a . length && ( b . color = a [ 0 ] ) ; CKEDITOR . tools . array . forEach ( e , function ( a ) { b . style || - 1 === CKEDITOR . tools . indexOf ( CKEDITOR . tools . style . parse . _borderStyle , a ) ? ! b . width && CKEDITOR . tools . style . parse . _widthRegExp . test ( a ) && ( b . width = a ) : b . style = a } ) ; return new CKEDITOR . tools . style . border ( b ) } , splitCssValues : function ( a , b ) { b = b || { } ; var e = CKEDITOR . tools . array . reduce ( [ "width" , "style" , "color" ] , function ( e , c ) { var g = a [ "border-" + c ] || b [ c ] ; e [ c ] = g ? CKEDITOR . tools . style . parse . sideShorthand ( g ) :
null ; return e } , { } ) ; return CKEDITOR . tools . array . reduce ( [ "top" , "right" , "bottom" , "left" ] , function ( b , c ) { var g = { } , d ; for ( d in e ) { var l = a [ "border-" + c + "-" + d ] ; g [ d ] = l ? l : e [ d ] && e [ d ] [ c ] } b [ "border-" + c ] = new CKEDITOR . tools . style . border ( g ) ; return b } , { } ) } } } ) ; 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 } ) ( ) ;
( function ( ) { function a ( a , w , b ) { this . _minInterval = a ; this . _context = b ; this . _lastOutput = this . _scheduledTimer = 0 ; this . _output = CKEDITOR . tools . bind ( w , b || { } ) ; var c = this ; this . input = function ( ) { function a ( ) { c . _lastOutput = ( new Date ) . getTime ( ) ; c . _scheduledTimer = 0 ; c . _call ( ) } if ( ! c . _scheduledTimer || ! 1 !== c . _reschedule ( ) ) { var z = ( new Date ) . getTime ( ) - c . _lastOutput ; z < c . _minInterval ? c . _scheduledTimer = setTimeout ( a , c . _minInterval - z ) : a ( ) } } } function d ( z , b , c ) { a . call ( this , z , b , c ) ; this . _args = [ ] ; var e = this ; this . input = CKEDITOR . tools . override ( this . input ,
function ( a ) { return function ( ) { e . _args = Array . prototype . slice . call ( arguments ) ; a . call ( this ) } } ) } var b = [ ] , c = CKEDITOR . env . gecko ? "-moz-" : CKEDITOR . env . webkit ? "-webkit-" : CKEDITOR . env . ie ? "-ms-" : "" , f = /&/g , h = />/g , k = /</g , g = /"/g , l = /&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g , v = { lt : "\x3c" , gt : "\x3e" , amp : "\x26" , quot : '"' , nbsp : " " , shy : " " } , e = function ( a , b ) { return "#" == b [ 0 ] ? String . fromCharCode ( parseInt ( b . slice ( 1 ) , 10 ) ) : v [ b ] } ; CKEDITOR . on ( "reset" , function ( ) { b = [ ] } ) ; CKEDITOR . tools = { arrayCompare : function ( a , b ) { if ( ! a && ! b ) return ! 0 ;
if ( ! a || ! b || a . length != b . length ) return ! 1 ; for ( var c = 0 ; c < a . length ; c ++ ) if ( a [ c ] != b [ c ] ) return ! 1 ; return ! 0 } , getIndex : function ( a , b ) { for ( var c = 0 ; c < a . length ; ++ c ) if ( b ( a [ c ] ) ) return c ; return - 1 } , clone : function ( a ) { var b ; if ( a && a instanceof Array ) { b = [ ] ; for ( var c = 0 ; c < a . length ; c ++ ) b [ c ] = CKEDITOR . tools . clone ( a [ c ] ) ; return b } if ( null === a || "object" != typeof a || a instanceof String || a instanceof Number || a instanceof Boolean || a instanceof Date || a instanceof RegExp || a . nodeType || a . window === a ) return a ; b = new a . constructor ; for ( c in a ) b [ c ] =
CKEDITOR . tools . clone ( a [ c ] ) ; return b } , capitalize : function ( a , b ) { return a . charAt ( 0 ) . toUpperCase ( ) + ( b ? a . slice ( 1 ) : a . slice ( 1 ) . toLowerCase ( ) ) } , extend : function ( a ) { var b = arguments . length , c , e ; "boolean" == typeof ( c = arguments [ b - 1 ] ) ? b -- : "boolean" == typeof ( c = arguments [ b - 2 ] ) && ( e = arguments [ b - 1 ] , b -= 2 ) ; for ( var g = 1 ; g < b ; g ++ ) { var m = arguments [ g ] || { } ; CKEDITOR . tools . array . forEach ( CKEDITOR . tools . object . keys ( m ) , function ( b ) { if ( ! 0 === c || null == a [ b ] ) if ( ! e || b in e ) a [ b ] = m [ b ] } ) } return a } , prototypedCopy : function ( a ) { var b = function ( ) { } ;
b . prototype = a ; return new b } , copy : function ( a ) { var b = { } , c ; for ( c in a ) b [ c ] = a [ c ] ; return b } , isArray : function ( a ) { return "[object Array]" == Object . prototype . toString . call ( a ) } , isEmpty : function ( a ) { for ( var b in a ) if ( a . hasOwnProperty ( b ) ) return ! 1 ; return ! 0 } , cssVendorPrefix : function ( a , b , e ) { if ( e ) return c + a + ":" + b + ";" + a + ":" + b ; e = { } ; e [ a ] = b ; e [ c + a ] = b ; return e } , cssStyleToDomStyle : function ( ) { var a = document . createElement ( "div" ) . style , b = "undefined" != typeof a . cssFloat ? "cssFloat" : "undefined" != typeof a . styleFloat ? "styleFloat" :
"float" ; return function ( a ) { return "float" == a ? b : a . replace ( /-./g , function ( a ) { return a . substr ( 1 ) . toUpperCase ( ) } ) } } ( ) , buildStyleHtml : function ( a ) { a = [ ] . concat ( a ) ; for ( var b , c = [ ] , e = 0 ; e < a . length ; e ++ ) if ( b = a [ e ] ) / @ import | [ { } ] / . test ( b ) ? c . push ( "\x3cstyle\x3e" + b + "\x3c/style\x3e" ) : c . push ( '\x3clink type\x3d"text/css" rel\x3dstylesheet href\x3d"' + b + '"\x3e' ) ; return c . join ( "" ) } , htmlEncode : function ( a ) { return void 0 === a || null === a ? "" : String ( a ) . replace ( f , "\x26amp;" ) . replace ( h , "\x26gt;" ) . replace ( k , "\x26lt;" ) } , htmlDecode : function ( a ) { return a . replace ( l ,
e ) } , htmlEncodeAttr : function ( a ) { return CKEDITOR . tools . htmlEncode ( a ) . replace ( g , "\x26quot;" ) } , htmlDecodeAttr : function ( a ) { return CKEDITOR . tools . htmlDecode ( a ) } , transformPlainTextToHtml : function ( a , b ) { var c = b == CKEDITOR . ENTER _BR , e = this . htmlEncode ( a . replace ( /\r\n/g , "\n" ) ) , e = e . replace ( /\t/g , "\x26nbsp;\x26nbsp; \x26nbsp;" ) , g = b == CKEDITOR . ENTER _P ? "p" : "div" ; if ( ! c ) { var m = /\n{2}/g ; if ( m . test ( e ) ) var d = "\x3c" + g + "\x3e" , l = "\x3c/" + g + "\x3e" , e = d + e . replace ( m , function ( ) { return l + d } ) + l } e = e . replace ( /\n/g , "\x3cbr\x3e" ) ; c || ( e =
e . replace ( new RegExp ( "\x3cbr\x3e(?\x3d\x3c/" + g + "\x3e)" ) , function ( a ) { return CKEDITOR . tools . repeat ( a , 2 ) } ) ) ; e = e . replace ( /^ | $/g , "\x26nbsp;" ) ; return e = e . replace ( /(>|\s) /g , function ( a , b ) { return b + "\x26nbsp;" } ) . replace ( / (?=<)/g , "\x26nbsp;" ) } , getNextNumber : function ( ) { var a = 0 ; return function ( ) { return ++ a } } ( ) , getNextId : function ( ) { return "cke_" + this . getNextNumber ( ) } , getUniqueId : function ( ) { for ( var a = "e" , b = 0 ; 8 > b ; b ++ ) a += Math . floor ( 65536 * ( 1 + Math . random ( ) ) ) . toString ( 16 ) . substring ( 1 ) ; return a } , override : function ( a ,
b ) { var c = b ( a ) ; c . prototype = a . prototype ; return c } , setTimeout : function ( a , b , c , e , g ) { g || ( g = window ) ; c || ( c = g ) ; return g . setTimeout ( function ( ) { e ? a . apply ( c , [ ] . concat ( e ) ) : a . apply ( c ) } , b || 0 ) } , throttle : function ( a , b , c ) { return new this . buffers . throttle ( a , b , c ) } , trim : function ( ) { var a = /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g ; return function ( b ) { return b . replace ( a , "" ) } } ( ) , ltrim : function ( ) { var a = /^[ \t\n\r]+/g ; return function ( b ) { return b . replace ( a , "" ) } } ( ) , rtrim : function ( ) { var a = /[ \t\n\r]+$/g ; return function ( b ) { return b . replace ( a ,
"" ) } } ( ) , indexOf : function ( a , b ) { if ( "function" == typeof b ) for ( var c = 0 , e = a . length ; c < e ; c ++ ) { if ( b ( a [ c ] ) ) return c } else { if ( a . indexOf ) return a . indexOf ( b ) ; c = 0 ; for ( e = a . length ; c < e ; c ++ ) if ( a [ c ] === b ) return c } return - 1 } , search : function ( a , b ) { var c = CKEDITOR . tools . indexOf ( a , b ) ; return 0 <= c ? a [ c ] : null } , bind : function ( a , b ) { var c = Array . prototype . slice . call ( arguments , 2 ) ; return function ( ) { return a . apply ( b , c . concat ( Array . prototype . slice . call ( arguments ) ) ) } } , createClass : function ( a ) { var b = a . $ , c = a . base , e = a . privates || a . _ , g = a . proto ;
a = a . statics ; ! b && ( b = function ( ) { c && this . base . apply ( this , arguments ) } ) ; if ( e ) var m = b , b = function ( ) { var a = this . _ || ( this . _ = { } ) , b ; for ( b in e ) { var c = e [ b ] ; a [ b ] = "function" == typeof c ? CKEDITOR . tools . bind ( c , this ) : c } m . apply ( this , arguments ) } ; c && ( b . prototype = this . prototypedCopy ( c . prototype ) , b . prototype . constructor = b , b . base = c , b . baseProto = c . prototype , b . prototype . base = function y ( ) { this . base = c . prototype . base ; c . apply ( this , arguments ) ; this . base = y } ) ; g && this . extend ( b . prototype , g , ! 0 ) ; a && this . extend ( b , a , ! 0 ) ; return b } , addFunction : function ( a ,
c ) { return b . push ( function ( ) { return a . apply ( c || this , arguments ) } ) - 1 } , removeFunction : function ( a ) { b [ a ] = null } , callFunction : function ( a ) { var c = b [ a ] ; return c && c . apply ( window , Array . prototype . slice . call ( arguments , 1 ) ) } , cssLength : function ( ) { var a = /^-?\d+\.?\d*px$/ , b ; return function ( c ) { b = CKEDITOR . tools . trim ( c + "" ) + "px" ; return a . test ( b ) ? b : c || "" } } ( ) , convertToPx : function ( ) { var a ; return function ( b ) { a || ( a = 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 ( a ) ) ; if ( ! /%$/ . test ( b ) ) { var c = 0 > parseFloat ( b ) ; c && ( b = b . replace ( "-" , "" ) ) ; a . setStyle ( "width" , b ) ; b = a . $ . clientWidth ; return c ? - b : b } return b } } ( ) , repeat : function ( a , b ) { return Array ( b + 1 ) . join ( a ) } , tryThese : function ( ) { for ( var a , b = 0 , c = arguments . length ; b < c ; b ++ ) { var e = arguments [ b ] ; try { a = e ( ) ; break } catch ( g ) { } } return a } , genKey : function ( ) { return Array . prototype . slice . call ( arguments ) . join ( "-" ) } , defer : function ( a ) { return function ( ) { var b = arguments , c = this ; window . setTimeout ( function ( ) { a . apply ( c ,
b ) } , 0 ) } } , normalizeCssText : function ( a , b ) { var c = [ ] , e , g = CKEDITOR . tools . parseCssText ( a , ! 0 , b ) ; for ( e in g ) c . push ( e + ":" + g [ e ] ) ; c . sort ( ) ; return c . length ? c . join ( ";" ) + ";" : "" } , convertRgbToHex : function ( a ) { return a . replace ( /(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi , function ( a , b , c , e ) { a = [ b , c , e ] ; for ( b = 0 ; 3 > b ; b ++ ) a [ b ] = ( "0" + parseInt ( a [ b ] , 10 ) . toString ( 16 ) ) . slice ( - 2 ) ; return "#" + a . join ( "" ) } ) } , normalizeHex : function ( a ) { return a . replace ( /#(([0-9a-f]{3}){1,2})($|;|\s+)/gi , function ( a , b , c , e ) { a = b . toLowerCase ( ) ; 3 == a . length &&
( a = a . split ( "" ) , a = [ a [ 0 ] , a [ 0 ] , a [ 1 ] , a [ 1 ] , a [ 2 ] , a [ 2 ] ] . join ( "" ) ) ; return "#" + a + e } ) } , _isValidColorFormat : function ( a ) { if ( ! a ) return ! 1 ; a = a . replace ( /\s+/g , "" ) ; return /^[a-z0-9()#%,./]+$/i . test ( a ) } , parseCssText : function ( a , b , c ) { var e = { } ; c && ( a = ( new CKEDITOR . dom . element ( "span" ) ) . setAttribute ( "style" , a ) . getAttribute ( "style" ) || "" ) ; a && ( a = CKEDITOR . tools . normalizeHex ( CKEDITOR . tools . convertRgbToHex ( a ) ) ) ; if ( ! a || ";" == a ) return e ; a . replace ( /"/g , '"' ) . replace ( /\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g , function ( a , c , z ) { b && ( c =
c . toLowerCase ( ) , "font-family" == c && ( z = z . replace ( /\s*,\s*/g , "," ) ) , z = CKEDITOR . tools . trim ( z ) ) ; e [ c ] = z } ) ; return e } , writeCssText : function ( a , b ) { var c , e = [ ] ; for ( c in a ) e . push ( c + ":" + a [ c ] ) ; b && e . sort ( ) ; return e . join ( "; " ) } , objectCompare : function ( a , b , c ) { var e ; if ( ! a && ! b ) return ! 0 ; if ( ! a || ! b ) return ! 1 ; for ( e in a ) if ( a [ e ] != b [ e ] ) return ! 1 ; if ( ! c ) for ( e in b ) if ( a [ e ] != b [ e ] ) return ! 1 ; return ! 0 } , objectKeys : function ( a ) { return CKEDITOR . tools . object . keys ( a ) } , convertArrayToObject : function ( a , b ) { var c = { } ; 1 == arguments . length && ( b = ! 0 ) ;
for ( var e = 0 , g = a . length ; e < g ; ++ e ) c [ a [ e ] ] = b ; return c } , getStyledSpans : function ( a , b ) { var c = CKEDITOR . env . ie && 8 == CKEDITOR . env . version ? a . toUpperCase ( ) : a , c = b . find ( "span[style*\x3d" + c + "]" ) . toArray ( ) ; return CKEDITOR . tools . array . filter ( c , function ( b ) { return ! ! b . getStyle ( a ) } ) } , fixDomain : function ( ) { for ( var a ; ; ) try { a = window . parent . document . domain ; break } catch ( b ) { a = a ? a . replace ( /.+?(?:\.|$)/ , "" ) : document . domain ; if ( ! a ) break ; document . domain = a } return ! ! a } , eventsBuffer : function ( a , b , c ) { return new this . buffers . event ( a , b , c ) } ,
enableHtml5Elements : function ( a , b ) { for ( var c = "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 ( " " ) , e = c . length , g ; e -- ; ) g = a . createElement ( c [ e ] ) , b && a . appendChild ( g ) } , checkIfAnyArrayItemMatches : function ( a , b ) { for ( var c = 0 , e = a . length ; c < e ; ++ c ) if ( a [ c ] . match ( b ) ) return ! 0 ; return ! 1 } , checkIfAnyObjectPropertyMatches : function ( a , b ) { for ( var c in a ) if ( c . match ( b ) ) return ! 0 ; return ! 1 } , keystrokeToString : function ( a ,
b ) { var c = this . keystrokeToArray ( a , b ) ; c . display = c . display . join ( "+" ) ; c . aria = c . aria . join ( "+" ) ; return c } , keystrokeToArray : function ( a , b ) { var c = b & 16711680 , e = b & 65535 , g = CKEDITOR . env . mac , m = [ ] , d = [ ] ; c & CKEDITOR . CTRL && ( m . push ( g ? "⌘" : a [ 17 ] ) , d . push ( g ? a [ 224 ] : a [ 17 ] ) ) ; c & CKEDITOR . ALT && ( m . push ( g ? "⌥" : a [ 18 ] ) , d . push ( a [ 18 ] ) ) ; c & CKEDITOR . SHIFT && ( m . push ( g ? "⇧" : a [ 16 ] ) , d . push ( a [ 16 ] ) ) ; e && ( a [ e ] ? ( m . push ( a [ e ] ) , d . push ( a [ e ] ) ) : ( m . push ( String . fromCharCode ( e ) ) , d . push ( String . fromCharCode ( e ) ) ) ) ; return { display : m , aria : d } } , transparentImageData : "data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw\x3d\x3d" ,
getCookie : function ( a ) { a = a . toLowerCase ( ) ; for ( var b = document . cookie . split ( ";" ) , c , e , g = 0 ; g < b . length ; g ++ ) if ( c = b [ g ] . split ( "\x3d" ) , e = decodeURIComponent ( CKEDITOR . tools . trim ( c [ 0 ] ) . toLowerCase ( ) ) , e === a ) return decodeURIComponent ( 1 < c . length ? c [ 1 ] : "" ) ; return null } , setCookie : function ( a , b ) { document . cookie = encodeURIComponent ( a ) + "\x3d" + encodeURIComponent ( b ) + ";path\x3d/" } , getCsrfToken : function ( ) { var a = CKEDITOR . tools . getCookie ( "ckCsrfToken" ) ; if ( ! a || 40 != a . length ) { var a = [ ] , b = "" ; if ( window . crypto && window . crypto . getRandomValues ) a =
new Uint8Array ( 40 ) , window . crypto . getRandomValues ( a ) ; else for ( var c = 0 ; 40 > c ; c ++ ) a . push ( Math . floor ( 256 * Math . random ( ) ) ) ; for ( c = 0 ; c < a . length ; c ++ ) var e = "abcdefghijklmnopqrstuvwxyz0123456789" . charAt ( a [ c ] % 36 ) , b = b + ( . 5 < Math . random ( ) ? e . toUpperCase ( ) : e ) ; a = b ; CKEDITOR . tools . setCookie ( "ckCsrfToken" , a ) } return a } , escapeCss : function ( a ) { return a ? window . CSS && CSS . escape ? CSS . escape ( a ) : isNaN ( parseInt ( a . charAt ( 0 ) , 10 ) ) ? a : "\\3" + a . charAt ( 0 ) + " " + a . substring ( 1 , a . length ) : "" } , getMouseButton : function ( a ) { return ( a = a && a . data ? a . data . $ :
a ) ? CKEDITOR . tools . normalizeMouseButton ( a . button ) : ! 1 } , normalizeMouseButton : function ( a , b ) { if ( ! CKEDITOR . env . ie || 9 <= CKEDITOR . env . version && ! CKEDITOR . env . ie6Compat ) return a ; for ( var c = [ [ CKEDITOR . MOUSE _BUTTON _LEFT , 1 ] , [ CKEDITOR . MOUSE _BUTTON _MIDDLE , 4 ] , [ CKEDITOR . MOUSE _BUTTON _RIGHT , 2 ] ] , e = 0 ; e < c . length ; e ++ ) { var g = c [ e ] ; if ( g [ 0 ] === a && b ) return g [ 1 ] ; if ( ! b && g [ 1 ] === a ) return g [ 0 ] } } , convertHexStringToBytes : function ( a ) { var b = [ ] , c = a . length / 2 , e ; for ( e = 0 ; e < c ; e ++ ) b . push ( parseInt ( a . substr ( 2 * e , 2 ) , 16 ) ) ; return b } , convertBytesToBase64 : function ( a ) { var b =
"" , c = a . length , e ; for ( e = 0 ; e < c ; e += 3 ) { var g = a . slice ( e , e + 3 ) , m = g . length , d = [ ] , l ; if ( 3 > m ) for ( l = m ; 3 > l ; l ++ ) g [ l ] = 0 ; d [ 0 ] = ( g [ 0 ] & 252 ) >> 2 ; d [ 1 ] = ( g [ 0 ] & 3 ) << 4 | g [ 1 ] >> 4 ; d [ 2 ] = ( g [ 1 ] & 15 ) << 2 | ( g [ 2 ] & 192 ) >> 6 ; d [ 3 ] = g [ 2 ] & 63 ; for ( l = 0 ; 4 > l ; l ++ ) b = l <= m ? b + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" . charAt ( d [ l ] ) : b + "\x3d" } return b } , 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 ( a ) { var b = { } , c = this . _findColor ( a ) ; c . length && ( b . color = c [ 0 ] , CKEDITOR . tools . array . forEach ( c , function ( b ) { a = a . replace ( b , "" ) } ) ) ; if ( a = CKEDITOR . tools . trim ( a ) ) b . unprocessed = a ; return b } , margin : function ( a ) { return CKEDITOR . tools . style . parse . sideShorthand ( a , function ( a ) { return a . match ( /(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset|revert)/g ) || [ "0px" ] } ) } , sideShorthand : function ( a , b ) { function c ( a ) { e . top = g [ a [ 0 ] ] ; e . right = g [ a [ 1 ] ] ; e . bottom = g [ a [ 2 ] ] ; e . left = g [ a [ 3 ] ] } var e = { } , g = b ? b ( a ) : a . split ( /\s+/ ) ;
switch ( g . 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 e } , border : function ( a ) { return CKEDITOR . tools . style . border . fromCssRule ( a ) } , _findColor : function ( a ) { var b = [ ] , c = CKEDITOR . tools . array , b = b . concat ( a . match ( this . _rgbaRegExp ) || [ ] ) , b = b . concat ( a . match ( this . _hslaRegExp ) || [ ] ) ; return b = b . concat ( c . filter ( a . split ( /\s+/ ) , function ( a ) { return a . match ( /^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi ) ? ! 0 : a . toLowerCase ( ) in CKEDITOR . tools . style . parse . _colors } ) ) } } } ,
array : { filter : function ( a , b , c ) { var e = [ ] ; this . forEach ( a , function ( g , m ) { b . call ( c , g , m , a ) && e . push ( g ) } ) ; return e } , find : function ( a , b , c ) { for ( var e = a . length , g = 0 ; g < e ; ) { if ( b . call ( c , a [ g ] , g , a ) ) return a [ g ] ; g ++ } } , forEach : function ( a , b , c ) { var e = a . length , g ; for ( g = 0 ; g < e ; g ++ ) b . call ( c , a [ g ] , g , a ) } , map : function ( a , b , c ) { for ( var e = [ ] , g = 0 ; g < a . length ; g ++ ) e . push ( b . call ( c , a [ g ] , g , a ) ) ; return e } , reduce : function ( a , b , c , e ) { for ( var g = 0 ; g < a . length ; g ++ ) c = b . call ( e , c , a [ g ] , g , a ) ; return c } , every : function ( a , b , c ) { if ( ! a . length ) return ! 0 ; b = this . filter ( a ,
b , c ) ; return a . length === b . length } , some : function ( a , b , c ) { for ( var e = 0 ; e < a . length ; e ++ ) if ( b . call ( c , a [ e ] , e , a ) ) return ! 0 ; return ! 1 } , zip : function ( a , b ) { return CKEDITOR . tools . array . map ( a , function ( a , c ) { return [ a , b [ c ] ] } ) } } , object : { DONT _ENUMS : "toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor" . split ( " " ) , entries : function ( a ) { return CKEDITOR . tools . array . map ( CKEDITOR . tools . object . keys ( a ) , function ( b ) { return [ b , a [ b ] ] } ) } , values : function ( a ) { return CKEDITOR . tools . array . map ( CKEDITOR . tools . object . keys ( a ) ,
function ( b ) { return a [ b ] } ) } , keys : function ( a ) { var b = Object . prototype . hasOwnProperty , c = [ ] , e = CKEDITOR . tools . object . DONT _ENUMS ; if ( CKEDITOR . env . ie && 9 > CKEDITOR . env . version && ( ! a || "object" !== typeof a ) ) { b = [ ] ; if ( "string" === typeof a ) for ( c = 0 ; c < a . length ; c ++ ) b . push ( String ( c ) ) ; return b } for ( var g in a ) c . push ( g ) ; if ( CKEDITOR . env . ie && 9 > CKEDITOR . env . version ) for ( g = 0 ; g < e . length ; g ++ ) b . call ( a , e [ g ] ) && c . push ( e [ g ] ) ; return c } , findKey : function ( a , b ) { if ( "object" !== typeof a ) return null ; for ( var c in a ) if ( a [ c ] === b ) return c ; return null } ,
merge : function ( a , b ) { var c = CKEDITOR . tools , e = c . clone ( a ) , g = c . clone ( b ) ; c . array . forEach ( c . object . keys ( g ) , function ( a ) { e [ a ] = "object" === typeof g [ a ] && "object" === typeof e [ a ] ? c . object . merge ( e [ a ] , g [ a ] ) : g [ a ] } ) ; return e } } , getAbsoluteRectPosition : function ( a , b ) { function c ( a ) { if ( a ) { var b = a . getClientRect ( ) ; e . top += b . top ; e . left += b . left ; "x" in e && "y" in e && ( e . x += b . x , e . y += b . y ) ; c ( a . getWindow ( ) . getFrame ( ) ) } } var e = CKEDITOR . tools . copy ( b ) ; c ( a . getFrame ( ) ) ; var g = CKEDITOR . document . getWindow ( ) . getScrollPosition ( ) ; e . top += g . y ; e . left +=
g . x ; "x" in e && "y" in e && ( e . y += g . y , e . x += g . x ) ; e . right = e . left + e . width ; e . bottom = e . top + e . height ; return e } } ; a . 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 } } ; d . prototype = CKEDITOR . tools . prototypedCopy ( a . prototype ) ; d . prototype . _reschedule = function ( ) { this . _scheduledTimer && this . _clearTimer ( ) } ; d . prototype . _call = function ( ) { this . _output . apply ( this . _context ,
this . _args ) } ; CKEDITOR . tools . buffers = { } ; CKEDITOR . tools . buffers . event = a ; CKEDITOR . tools . buffers . throttle = d ; CKEDITOR . tools . style . border = CKEDITOR . tools . createClass ( { $ : function ( a ) { a = a || { } ; this . width = a . width ; this . style = a . style ; this . color = a . color ; this . _ . normalize ( ) } , _ : { normalizeMap : { color : [ [ /windowtext/g , "black" ] ] } , normalize : function ( ) { for ( var a in this . _ . normalizeMap ) { var b = this [ a ] ; b && ( this [ a ] = CKEDITOR . tools . array . reduce ( this . _ . normalizeMap [ a ] , function ( a , b ) { return a . replace ( b [ 0 ] , b [ 1 ] ) } , b ) ) } } } , proto : { toString : function ( ) { return CKEDITOR . tools . array . filter ( [ this . width ,
this . style , this . color ] , function ( a ) { return ! ! a } ) . join ( " " ) } } , statics : { fromCssRule : function ( a ) { var b = { } , c = a . split ( /\s+/g ) ; a = CKEDITOR . tools . style . parse . _findColor ( a ) ; a . length && ( b . color = a [ 0 ] ) ; CKEDITOR . tools . array . forEach ( c , function ( a ) { b . style || - 1 === CKEDITOR . tools . indexOf ( CKEDITOR . tools . style . parse . _borderStyle , a ) ? ! b . width && CKEDITOR . tools . style . parse . _widthRegExp . test ( a ) && ( b . width = a ) : b . style = a } ) ; return new CKEDITOR . tools . style . border ( b ) } , splitCssValues : function ( a , b ) { b = b || { } ; var c = CKEDITOR . tools . array . reduce ( [ "width" ,
"style" , "color" ] , function ( c , e ) { var g = a [ "border-" + e ] || b [ e ] ; c [ e ] = g ? CKEDITOR . tools . style . parse . sideShorthand ( g ) : null ; return c } , { } ) ; return CKEDITOR . tools . array . reduce ( [ "top" , "right" , "bottom" , "left" ] , function ( b , e ) { var g = { } , d ; for ( d in c ) { var l = a [ "border-" + e + "-" + d ] ; g [ d ] = l ? l : c [ d ] && c [ d ] [ e ] } b [ "border-" + e ] = new CKEDITOR . tools . style . border ( g ) ; return b } , { } ) } } } ) ; 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 a = CKEDITOR . tools . extend , d = function ( a , b ) { for ( var c = CKEDITOR . tools . clone ( a ) , g = 1 ; g < arguments . length ; g ++ ) { b = arguments [ g ] ; for ( var d in b ) delete c [ d ] } return c } , b = { } , c = { } , f = { address : 1 , article : 1 , aside : 1 , blockquote : 1 , details : 1 , div : 1 , dl : 1 , fieldset : 1 , figure : 1 , footer : 1 , form : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 , header : 1 , hgroup : 1 , hr : 1 , main : 1 , menu : 1 , nav : 1 , ol : 1 , p : 1 , pre : 1 , section : 1 , table : 1 , ul : 1 } , h = { command : 1 , link : 1 , meta : 1 , noscript : 1 , script : 1 , style : 1 } , k = { } , g = { "#" : 1 } , l = { center : 1 , dir : 1 , noframes : 1 } ;
a ( b , { a : 1 , abbr : 1 , area : 1 , audio : 1 , b : 1 , bdi : 1 , bdo : 1 , br : 1 , button : 1 , canvas : 1 , cite : 1 , code : 1 , command : 1 , datalist : 1 , del : 1 , dfn : 1 , em : 1 , embed : 1 , i : 1 , iframe : 1 , img : 1 , input : 1 , ins : 1 , kbd : 1 , keygen : 1 , label : 1 , map : 1 , mark : 1 , meter : 1 , noscript : 1 , object : 1 , output : 1 , progress : 1 , q : 1 , ruby : 1 , s : 1 , samp : 1 , script : 1 , select : 1 , small : 1 , span : 1 , strong : 1 , sub : 1 , sup : 1 , textarea : 1 , time : 1 , u : 1 , "var" : 1 , video : 1 , wbr : 1 } , g , { acronym : 1 , applet : 1 , basefont : 1 , big : 1 , font : 1 , isindex : 1 , strike : 1 , style : 1 , tt : 1 } ) ; a ( c , f , b , l ) ; d = { a : d ( b , { a : 1 , button : 1 } ) , abbr : b , address : c ,
area : k , article : c , aside : c , audio : a ( { source : 1 , track : 1 } , c ) , b : b , base : k , bdi : b , bdo : b , blockquote : c , body : c , br : k , button : d ( b , { a : 1 , button : 1 } ) , canvas : b , caption : c , cite : b , code : b , col : k , colgroup : { col : 1 } , command : k , datalist : a ( { option : 1 } , b ) , dd : c , del : b , details : a ( { summary : 1 } , c ) , dfn : b , div : c , dl : { dt : 1 , dd : 1 } , dt : c , em : b , embed : k , fieldset : a ( { legend : 1 } , c ) , figcaption : c , figure : a ( { figcaption : 1 } , c ) , footer : c , form : c , h1 : b , h2 : b , h3 : b , h4 : b , h5 : b , h6 : b , head : a ( { title : 1 , base : 1 } , h ) , header : c , hgroup : { h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 } , hr : k , html : a ( { head : 1 ,
@@ -124,11 +125,11 @@ arguments)}catch(e){}else a.apply(this,arguments);return this}:a}(),setAttribute
0 ; b < a . length ; b ++ ) this . removeAttribute ( a [ b ] ) ; else for ( b in a = a || this . getAttributes ( ) , a ) a . hasOwnProperty ( b ) && this . removeAttribute ( b ) } , removeStyle : function ( a ) { var b = this . $ . style ; if ( b . removeProperty || "border" != a && "margin" != a && "padding" != a ) b . removeProperty ? b . removeProperty ( a ) : b . removeAttribute ( CKEDITOR . tools . cssStyleToDomStyle ( a ) ) , this . $ . style . cssText || this . removeAttribute ( "style" ) ; else { var c = [ "top" , "left" , "right" , "bottom" ] , e ; "border" == a && ( e = [ "color" , "style" , "width" ] ) ; for ( var b = [ ] , d = 0 ; d < c . length ; d ++ ) if ( e ) for ( var w =
0 ; w < e . length ; w ++ ) b . push ( [ a , c [ d ] , e [ w ] ] . join ( "-" ) ) ; else b . push ( [ a , c [ d ] ] . join ( "-" ) ) ; for ( a = 0 ; a < b . length ; a ++ ) this . removeStyle ( b [ a ] ) } } , setStyle : function ( a , b ) { this . $ . style [ CKEDITOR . tools . cssStyleToDomStyle ( a ) ] = b ; return this } , setStyles : function ( a ) { for ( var b in a ) this . setStyle ( b , a [ b ] ) ; return this } , setOpacity : function ( a ) { CKEDITOR . env . ie && 9 > CKEDITOR . env . version ? ( a = Math . round ( 100 * a ) , this . setStyle ( "filter" , 100 <= a ? "" : "progid:DXImageTransform.Microsoft.Alpha(opacity\x3d" + a + ")" ) ) : this . setStyle ( "opacity" , a ) } , unselectable : function ( ) { this . setStyles ( CKEDITOR . tools . cssVendorPrefix ( "user-select" ,
"none" ) ) ; if ( CKEDITOR . env . ie ) { this . setAttribute ( "unselectable" , "on" ) ; for ( var a , b = this . getElementsByTag ( "*" ) , c = 0 , e = b . count ( ) ; c < e ; c ++ ) a = b . getItem ( c ) , a . setAttribute ( "unselectable" , "on" ) } } , getPositionedAncestor : function ( ) { for ( var a = this ; "html" != a . getName ( ) ; ) { if ( "static" != a . getComputedStyle ( "position" ) ) return a ; a = a . getParent ( ) } return null } , getDocumentPosition : function ( a ) { var b = 0 , c = 0 , e = this . getDocument ( ) , d = e . getBody ( ) , w = "BackCompat" == e . $ . compatMode ; if ( document . documentElement . getBoundingClientRect && ( CKEDITOR . env . ie ?
8 !== CKEDITOR . env . version : 1 ) ) { var f = this . $ . getBoundingClientRect ( ) , h = e . $ . documentElement , t = h . clientTop || d . $ . clientTop || 0 , n = h . clientLeft || d . $ . clientLeft || 0 , k = ! 0 ; CKEDITOR . env . ie && ( k = e . getDocumentElement ( ) . contains ( this ) , e = e . getBody ( ) . contains ( this ) , k = w && e || ! w && k ) ; k && ( CKEDITOR . env . webkit || CKEDITOR . env . ie && 12 <= CKEDITOR . env . version ? ( b = d . $ . scrollLeft || h . scrollLeft , c = d . $ . scrollTop || h . scrollTop ) : ( c = w ? d . $ : h , b = c . scrollLeft , c = c . scrollTop ) , b = f . left + b - n , c = f . top + c - t ) } else for ( t = this , n = null ; t && "body" != t . getName ( ) &&
"html" != t . getName ( ) ; ) { b += t . $ . offsetLeft - t . $ . scrollLeft ; c += t . $ . offsetTop - t . $ . scrollTop ; t . equals ( this ) || ( b += t . $ . clientLeft || 0 , c += t . $ . clientTop || 0 ) ; for ( ; n && ! n . equals ( t ) ; ) b -= n . $ . scrollLeft , c -= n . $ . scrollTop , n = n . getParent ( ) ; n = t ; t = ( f = t . $ . offsetParent ) ? new CKEDITOR . dom . element ( f ) : null } a && ( f = this . getWindow ( ) , t = a . getWindow ( ) , ! f . equals ( t ) && f . $ . frameElement && ( a = ( new CKEDITOR . dom . element ( f . $ . frameElement ) ) . getDocumentPosition ( a ) , b += a . x , c += a . y ) ) ; document . documentElement . getBoundingClientRect || ! CKEDITOR . env . gecko ||
8 !== CKEDITOR . env . version : 1 ) ) { var f = this . $ . getBoundingClientRect ( ) , h = e . $ . documentElement , u = h . clientTop || d . $ . clientTop || 0 , m = h . clientLeft || d . $ . clientLeft || 0 , k = ! 0 ; CKEDITOR . env . ie && ( k = e . getDocumentElement ( ) . contains ( this ) , e = e . getBody ( ) . contains ( this ) , k = w && e || ! w && k ) ; k && ( CKEDITOR . env . webkit || CKEDITOR . env . ie && 12 <= CKEDITOR . env . version ? ( b = d . $ . scrollLeft || h . scrollLeft , c = d . $ . scrollTop || h . scrollTop ) : ( c = w ? d . $ : h , b = c . scrollLeft , c = c . scrollTop ) , b = f . left + b - m , c = f . top + c - u ) } else for ( u = this , m = null ; u && "body" != u . getName ( ) &&
"html" != u . getName ( ) ; ) { b += u . $ . offsetLeft - u . $ . scrollLeft ; c += u . $ . offsetTop - u . $ . scrollTop ; u . equals ( this ) || ( b += u . $ . clientLeft || 0 , c += u . $ . clientTop || 0 ) ; for ( ; m && ! m . equals ( u ) ; ) b -= m . $ . scrollLeft , c -= m . $ . scrollTop , m = m . getParent ( ) ; m = u ; u = ( f = u . $ . offsetParent ) ? new CKEDITOR . dom . element ( f ) : null } a && ( f = this . getWindow ( ) , u = a . getWindow ( ) , ! f . equals ( u ) && f . $ . frameElement && ( a = ( new CKEDITOR . dom . element ( f . $ . frameElement ) ) . getDocumentPosition ( a ) , b += a . x , c += a . y ) ) ; document . documentElement . getBoundingClientRect || ! CKEDITOR . env . gecko ||
w || ( b += this . $ . clientLeft ? 1 : 0 , c += this . $ . clientTop ? 1 : 0 ) ; return { x : b , y : c } } , scrollIntoView : function ( a ) { var b = this . getParent ( ) ; if ( b ) { do if ( ( b . $ . clientWidth && b . $ . clientWidth < b . $ . scrollWidth || b . $ . clientHeight && b . $ . clientHeight < b . $ . scrollHeight ) && ! b . is ( "body" ) && this . scrollIntoParent ( b , a , 1 ) , b . is ( "html" ) ) { var c = b . getWindow ( ) ; try { var e = c . $ . frameElement ; e && ( b = new CKEDITOR . dom . element ( e ) ) } catch ( d ) { } } while ( b = b . getParent ( ) ) } } , scrollIntoParent : function ( a , b , c ) { var e , d , w , f ; function h ( b , c ) { /body|html/ . test ( a . getName ( ) ) ?
a . getWindow ( ) . $ . scrollBy ( b , c ) : ( a . $ . scrollLeft += b , a . $ . scrollTop += c ) } function t ( a , b ) { var c = { x : 0 , y : 0 } ; if ( ! a . is ( k ? "body" : "html" ) ) { var e = a . $ . getBoundingClientRect ( ) ; c . x = e . left ; c . y = e . top } e = a . getWindow ( ) ; e . equals ( b ) || ( e = t ( CKEDITOR . dom . element . get ( e . $ . frameElement ) , b ) , c . x += e . x , c . y += e . y ) ; return c } function n ( a , b ) { return parseInt ( a . getComputedStyle ( "margin-" + b ) || 0 , 10 ) || 0 } ! a && ( a = this . getWindow ( ) ) ; w = a . getDocument ( ) ; var k = "BackCompat" == w . $ . compatMode ; a instanceof CKEDITOR . dom . window && ( a = k ? w . getBody ( ) : w . getDocumentElement ( ) ) ;
CKEDITOR . env . webkit && ( w = this . getEditor ( ! 1 ) ) && ( w . _ . previousScrollTop = null ) ; w = a . getWindow ( ) ; d = t ( this , w ) ; var y = t ( a , w ) , F = this . $ . offsetHeight ; e = this . $ . offsetWidth ; var I = a . $ . clientHeight , m = a . $ . clientWidth ; w = d . x - n ( this , "left" ) - y . x || 0 ; f = d . y - n ( this , "top" ) - y . y || 0 ; e = d . x + e + n ( this , "right" ) - ( y . x + m ) || 0 ; d = d . y + F + n ( this , "bottom" ) - ( y . y + I ) || 0 ; ( 0 > f || 0 < d ) && h ( 0 , ! 0 === b ? f : ! 1 === b ? d : 0 > f ? f : d ) ; c && ( 0 > w || 0 < e ) && h ( 0 > w ? w : e , 0 ) } , setState : function ( a , b , c ) { b = b || "cke" ; switch ( a ) { case CKEDITOR . TRISTATE _ON : this . addClass ( b + "_on" ) ; this . removeClass ( b +
a . getWindow ( ) . $ . scrollBy ( b , c ) : ( a . $ . scrollLeft += b , a . $ . scrollTop += c ) } function u ( a , b ) { var c = { x : 0 , y : 0 } ; if ( ! a . is ( k ? "body" : "html" ) ) { var e = a . $ . getBoundingClientRect ( ) ; c . x = e . left ; c . y = e . top } e = a . getWindow ( ) ; e . equals ( b ) || ( e = u ( CKEDITOR . dom . element . get ( e . $ . frameElement ) , b ) , c . x += e . x , c . y += e . y ) ; return c } function m ( a , b ) { return parseInt ( a . getComputedStyle ( "margin-" + b ) || 0 , 10 ) || 0 } ! a && ( a = this . getWindow ( ) ) ; w = a . getDocument ( ) ; var k = "BackCompat" == w . $ . compatMode ; a instanceof CKEDITOR . dom . window && ( a = k ? w . getBody ( ) : w . getDocumentElement ( ) ) ;
CKEDITOR . env . webkit && ( w = this . getEditor ( ! 1 ) ) && ( w . _ . previousScrollTop = null ) ; w = a . getWindow ( ) ; d = u ( this , w ) ; var y = u ( a , w ) , G = this . $ . offsetHeight ; e = this . $ . offsetWidth ; var H = a . $ . clientHeight , n = a . $ . clientWidth ; w = d . x - m ( this , "left" ) - y . x || 0 ; f = d . y - m ( this , "top" ) - y . y || 0 ; e = d . x + e + m ( this , "right" ) - ( y . x + n ) || 0 ; d = d . y + G + m ( this , "bottom" ) - ( y . y + H ) || 0 ; ( 0 > f || 0 < d ) && h ( 0 , ! 0 === b ? f : ! 1 === b ? d : 0 > f ? f : d ) ; c && ( 0 > w || 0 < e ) && h ( 0 > w ? w : e , 0 ) } , setState : function ( a , b , c ) { b = b || "cke" ; switch ( a ) { case CKEDITOR . TRISTATE _ON : this . addClass ( b + "_on" ) ; this . removeClass ( b +
"_off" ) ; this . removeClass ( b + "_disabled" ) ; c && this . setAttribute ( "aria-pressed" , ! 0 ) ; c && this . removeAttribute ( "aria-disabled" ) ; break ; case CKEDITOR . TRISTATE _DISABLED : this . addClass ( b + "_disabled" ) ; this . removeClass ( b + "_off" ) ; this . removeClass ( b + "_on" ) ; c && this . setAttribute ( "aria-disabled" , ! 0 ) ; c && this . removeAttribute ( "aria-pressed" ) ; break ; default : this . addClass ( b + "_off" ) , this . removeClass ( b + "_on" ) , this . removeClass ( b + "_disabled" ) , c && this . removeAttribute ( "aria-pressed" ) , c && this . removeAttribute ( "aria-disabled" ) } } ,
getFrameDocument : function ( ) { var a = this . $ ; try { a . contentWindow . document } catch ( b ) { a . src = a . src } return a && new CKEDITOR . dom . document ( a . contentWindow . document ) } , copyAttributes : function ( a , b ) { var c = this . $ . attributes ; b = b || { } ; for ( var e = 0 ; e < c . length ; e ++ ) { var d = c [ e ] , w = d . nodeName . toLowerCase ( ) , f ; if ( ! ( w in b ) ) if ( "checked" == w && ( f = this . getAttribute ( w ) ) ) a . setAttribute ( w , f ) ; else if ( ! CKEDITOR . env . ie || this . hasAttribute ( w ) ) f = this . getAttribute ( w ) , null === f && ( f = d . nodeValue ) , a . setAttribute ( w , f ) } "" !== this . $ . style . cssText &&
( a . $ . style . cssText = this . $ . style . cssText ) } , renameNode : function ( a ) { if ( this . getName ( ) != a ) { var b = this . getDocument ( ) ; a = new CKEDITOR . dom . element ( a , b ) ; this . copyAttributes ( a ) ; this . moveChildren ( a ) ; this . getParent ( ! 0 ) && this . $ . parentNode . replaceChild ( a . $ , this . $ ) ; a . $ [ "data-cke-expando" ] = this . $ [ "data-cke-expando" ] ; this . $ = a . $ ; delete this . getName } } , getChild : function ( ) { function a ( b , c ) { var e = b . childNodes ; if ( 0 <= c && c < e . length ) return e [ c ] } return function ( b ) { var c = this . $ ; if ( b . slice ) for ( b = b . slice ( ) ; 0 < b . length && c ; ) c = a ( c ,
@@ -139,60 +140,60 @@ d)}else e[e[a]?a:c](b)},isDetached:function(){var a=this.getDocument(),b=a.getDo
( b -= c . call ( this , a ) ) , this . setStyle ( a , b + "px" ) ) } ; CKEDITOR . dom . element . prototype . getSize = function ( a , b ) { var d = Math . max ( this . $ [ "offset" + CKEDITOR . tools . capitalize ( a ) ] , this . $ [ "client" + CKEDITOR . tools . capitalize ( a ) ] ) || 0 ; b && ( d -= c . call ( this , a ) ) ; return d } } ) ( ) ; CKEDITOR . dom . documentFragment = function ( a ) { a = a || CKEDITOR . document ; this . $ = a . type == CKEDITOR . NODE _DOCUMENT ? a . $ . createDocumentFragment ( ) : a } ;
CKEDITOR . tools . extend ( CKEDITOR . dom . documentFragment . prototype , CKEDITOR . dom . element . prototype , { type : CKEDITOR . NODE _DOCUMENT _FRAGMENT , insertAfterNode : function ( a ) { a = a . $ ; a . parentNode . insertBefore ( this . $ , a . nextSibling ) } , getHtml : function ( ) { var a = new CKEDITOR . dom . element ( "div" ) ; this . clone ( 1 , 1 ) . appendTo ( a ) ; return a . getHtml ( ) . replace ( /\s*data-cke-expando=".*?"/g , "" ) } } , ! 0 , { append : 1 , appendBogus : 1 , clone : 1 , getFirst : 1 , getHtml : 1 , getLast : 1 , getParent : 1 , getNext : 1 , getPrevious : 1 , appendTo : 1 , moveChildren : 1 , insertBefore : 1 ,
insertAfterNode : 1 , replace : 1 , trim : 1 , type : 1 , ltrim : 1 , rtrim : 1 , getDocument : 1 , getChildCount : 1 , getChild : 1 , getChildren : 1 } ) ; CKEDITOR . tools . extend ( CKEDITOR . dom . documentFragment . prototype , CKEDITOR . dom . document . prototype , ! 0 , { find : 1 , findOne : 1 } ) ;
( function ( ) { function a ( a , b ) { var c = this . range ; if ( this . _ . end ) return null ; if ( ! this . _ . start ) { this . _ . start = 1 ; if ( c . collapsed ) return this . end ( ) , null ; c . optimize ( ) } var e , d = c . startContainer ; e = c . endContainer ; var f = c . startOffset , x = c . endOffset , h , g = this . guard , m = this . type , C = a ? "getPreviousSourceNode" : "getNextSourceNode" ; if ( ! a && ! this . _ . guardLTR ) { var K = e . type == CKEDITOR . NODE _ELEMENT ? e : e . getParent ( ) , A = e . type == CKEDITOR . NODE _ELEMENT ? e . getChild ( x ) : e . getNext ( ) ; this . _ . guardLTR = function ( a , b ) { return ( ! b || ! K . equals ( a ) ) && ( ! A ||
! a . equals ( A ) ) && ( a . type != CKEDITOR . NODE _ELEMENT || ! b || ! a . equals ( c . root ) ) } } if ( a && ! this . _ . guardRTL ) { var k = d . type == CKEDITOR . NODE _ELEMENT ? d : d . getParent ( ) , r = d . type == CKEDITOR . NODE _ELEMENT ? f ? d . getChild ( f - 1 ) : null : d . getPrevious ( ) ; this . _ . guardRTL = function ( a , b ) { return ( ! b || ! k . equals ( a ) ) && ( ! r || ! a . equals ( r ) ) && ( a . type != CKEDITOR . NODE _ELEMENT || ! b || ! a . equals ( c . root ) ) } } var D = a ? this . _ . guardRTL : this . _ . guardLTR ; h = g ? function ( a , b ) { return ! 1 === D ( a , b ) ? ! 1 : g ( a , b ) } : D ; this . current ? e = this . current [ C ] ( ! 1 , m , h ) : ( a ? e . type == CKEDITOR . NODE _ELEMENT &&
( e = 0 < x ? e . getChild ( x - 1 ) : ! 1 === h ( e , ! 0 ) ? null : e . getPreviousSourceNode ( ! 0 , m , h ) ) : ( e = d , e . type == CKEDITOR . NODE _ELEMENT && ( ( e = e . getChild ( f ) ) || ( e = ! 1 === h ( d , ! 0 ) ? null : d . getNextSourceNode ( ! 0 , m , h ) ) ) ) , e && ! 1 === h ( e ) && ( e = null ) ) ; for ( ; e && ! this . _ . end ; ) { this . current = e ; if ( ! this . evaluator || ! 1 !== this . evaluator ( e ) ) { if ( ! b ) return e } else if ( b && this . evaluator ) return ! 1 ; e = e [ C ] ( ! 1 , m , h ) } this . end ( ) ; return this . current = null } function d ( b ) { for ( var c , e = null ; c = a . call ( this , b ) ; ) e = c ; return e } CKEDITOR . dom . walker = CKEDITOR . tools . createClass ( { $ : function ( a ) { this . range =
( function ( ) { function a ( a , b ) { var c = this . range ; if ( this . _ . end ) return null ; if ( ! this . _ . start ) { this . _ . start = 1 ; if ( c . collapsed ) return this . end ( ) , null ; c . optimize ( ) } var e , d = c . startContainer ; e = c . endContainer ; var f = c . startOffset , z = c . endOffset , h , g = this . guard , n = this . type , C = a ? "getPreviousSourceNode" : "getNextSourceNode" ; if ( ! a && ! this . _ . guardLTR ) { var L = e . type == CKEDITOR . NODE _ELEMENT ? e : e . getParent ( ) , B = e . type == CKEDITOR . NODE _ELEMENT ? e . getChild ( z ) : e . getNext ( ) ; this . _ . guardLTR = function ( a , b ) { return ( ! b || ! L . equals ( a ) ) && ( ! B ||
! a . equals ( B ) ) && ( a . type != CKEDITOR . NODE _ELEMENT || ! b || ! a . equals ( c . root ) ) } } if ( a && ! this . _ . guardRTL ) { var k = d . type == CKEDITOR . NODE _ELEMENT ? d : d . getParent ( ) , q = d . type == CKEDITOR . NODE _ELEMENT ? f ? d . getChild ( f - 1 ) : null : d . getPrevious ( ) ; this . _ . guardRTL = function ( a , b ) { return ( ! b || ! k . equals ( a ) ) && ( ! q || ! a . equals ( q ) ) && ( a . type != CKEDITOR . NODE _ELEMENT || ! b || ! a . equals ( c . root ) ) } } var D = a ? this . _ . guardRTL : this . _ . guardLTR ; h = g ? function ( a , b ) { return ! 1 === D ( a , b ) ? ! 1 : g ( a , b ) } : D ; this . current ? e = this . current [ C ] ( ! 1 , n , h ) : ( a ? e . type == CKEDITOR . NODE _ELEMENT &&
( e = 0 < z ? e . getChild ( z - 1 ) : ! 1 === h ( e , ! 0 ) ? null : e . getPreviousSourceNode ( ! 0 , n , h ) ) : ( e = d , e . type == CKEDITOR . NODE _ELEMENT && ( ( e = e . getChild ( f ) ) || ( e = ! 1 === h ( d , ! 0 ) ? null : d . getNextSourceNode ( ! 0 , n , h ) ) ) ) , e && ! 1 === h ( e ) && ( e = null ) ) ; for ( ; e && ! this . _ . end ; ) { this . current = e ; if ( ! this . evaluator || ! 1 !== this . evaluator ( e ) ) { if ( ! b ) return e } else if ( b && this . evaluator ) return ! 1 ; e = e [ C ] ( ! 1 , n , h ) } this . end ( ) ; return this . current = null } function d ( b ) { for ( var c , e = null ; c = a . call ( this , b ) ; ) e = c ; return e } CKEDITOR . dom . walker = CKEDITOR . tools . createClass ( { $ : function ( a ) { this . range =
a ; this . _ = { } } , proto : { end : function ( ) { this . _ . end = 1 } , next : function ( ) { return a . call ( this ) } , previous : function ( ) { return a . call ( this , 1 ) } , checkForward : function ( ) { return ! 1 !== a . call ( this , 0 , 1 ) } , checkBackward : function ( ) { return ! 1 !== a . call ( this , 1 , 1 ) } , lastForward : function ( ) { return d . call ( this ) } , lastBackward : function ( ) { return d . call ( this , 1 ) } , reset : function ( ) { delete this . current ; this . _ = { } } } } ) ; var b = { block : 1 , "list-item" : 1 , table : 1 , "table-row-group" : 1 , "table-header-group" : 1 , "table-footer-group" : 1 , "table-row" : 1 , "table-column-group" : 1 ,
"table-column" : 1 , "table-cell" : 1 , "table-caption" : 1 } , c = { absolute : 1 , fixed : 1 } ; CKEDITOR . dom . element . prototype . isBlockBoundary = function ( a ) { return "none" != this . getComputedStyle ( "float" ) || this . getComputedStyle ( "position" ) in c || ! b [ this . getComputedStyle ( "display" ) ] ? ! ! ( this . is ( CKEDITOR . dtd . $block ) || a && this . is ( a ) ) : ! 0 } ; CKEDITOR . dom . walker . blockBoundary = function ( a ) { return function ( b ) { return ! ( b . type == CKEDITOR . NODE _ELEMENT && b . isBlockBoundary ( a ) ) } } ; CKEDITOR . dom . walker . listItemBoundary = function ( ) { return this . blockBoundary ( { br : 1 } ) } ;
CKEDITOR . dom . walker . bookmark = function ( a , b ) { function c ( a ) { return a && a . getName && "span" == a . getName ( ) && a . data ( "cke-bookmark" ) } return function ( e ) { var d , f ; d = e && e . type != CKEDITOR . NODE _ELEMENT && ( f = e . getParent ( ) ) && c ( f ) ; d = a ? d : d || c ( e ) ; return ! ! ( b ^ d ) } } ; CKEDITOR . dom . walker . whitespaces = function ( a ) { return function ( b ) { var c ; b && b . type == CKEDITOR . NODE _TEXT && ( c = ! CKEDITOR . tools . trim ( b . getText ( ) ) || CKEDITOR . env . webkit && b . getText ( ) == CKEDITOR . dom . selection . FILLING _CHAR _SEQUENCE ) ; return ! ! ( a ^ c ) } } ; CKEDITOR . dom . walker . invisible =
function ( a ) { var b = CKEDITOR . dom . walker . whitespaces ( ) , c = CKEDITOR . env . webkit ? 1 : 0 ; return function ( e ) { b ( e ) ? e = 1 : ( e . type == CKEDITOR . NODE _TEXT && ( e = e . getParent ( ) ) , e = e . $ . offsetWidth <= c ) ; return ! ! ( a ^ e ) } } ; CKEDITOR . dom . walker . nodeType = function ( a , b ) { return function ( c ) { return ! ! ( b ^ c . type == a ) } } ; CKEDITOR . dom . walker . bogus = function ( a ) { function b ( a ) { return ! h ( a ) && ! k ( a ) } return function ( c ) { var e = CKEDITOR . env . needsBrFiller ? c . is && c . is ( "br" ) : c . getText && f . test ( c . getText ( ) ) ; e && ( e = c . getParent ( ) , c = c . getNext ( b ) , e = e . isBlockBoundary ( ) &&
( ! c || c . type == CKEDITOR . NODE _ELEMENT && c . isBlockBoundary ( ) ) ) ; return ! ! ( a ^ e ) } } ; CKEDITOR . dom . walker . temp = function ( a ) { return function ( b ) { b . type != CKEDITOR . NODE _ELEMENT && ( b = b . getParent ( ) ) ; b = b && b . hasAttribute ( "data-cke-temp" ) ; return ! ! ( a ^ b ) } } ; var f = /^[\t\r\n ]*(?: |\xa0)$/ , h = CKEDITOR . dom . walker . whitespaces ( ) , k = CKEDITOR . dom . walker . bookmark ( ) , g = CKEDITOR . dom . walker . temp ( ) , l = function ( a ) { return k ( a ) || h ( a ) || a . type == CKEDITOR . NODE _ELEMENT && a . is ( CKEDITOR . dtd . $inline ) && ! a . is ( CKEDITOR . dtd . $empty ) } ; CKEDITOR . dom . walker . ignored =
function ( a ) { return function ( b ) { b = h ( b ) || k ( b ) || g ( b ) ; return ! ! ( a ^ b ) } } ; var u = CKEDITOR . dom . walker . ignored ( ) ; CKEDITOR . dom . walker . empty = function ( a ) { return function ( b ) { for ( var c = 0 , e = b . getChildCount ( ) ; c < e ; ++ c ) if ( ! u ( b . getChild ( c ) ) ) return ! ! a ; return ! a } } ; var e = CKEDITOR . dom . walker . empty ( ) , x = CKEDITOR . dom . walker . validEmptyBlockContainers = CKEDITOR . tools . extend ( function ( a ) { var b = { } , c ; for ( c in a ) CKEDITOR . dtd [ c ] [ "#" ] && ( b [ c ] = 1 ) ; return b } ( CKEDITOR . dtd . $block ) , { caption : 1 , td : 1 , th : 1 } ) ; CKEDITOR . dom . walker . editable = function ( a ) { return function ( b ) { b =
u ( b ) ? ! 1 : b . type == CKEDITOR . NODE _TEXT || b . type == CKEDITOR . NODE _ELEMENT && ( b . is ( CKEDITOR . dtd . $inline ) || b . is ( "hr" ) || "false" == b . getAttribute ( "contenteditable" ) || ! CKEDITOR . env . needsBrFiller && b . is ( x ) && e ( b ) ) ? ! 0 : ! 1 ; return ! ! ( a ^ b ) } } ; CKEDITOR . dom . element . prototype . getBogus = function ( ) { var a = this ; do a = a . getPreviousSourceNode ( ) ; while ( l ( a ) ) ; return a && ( CKEDITOR . env . needsBrFiller ? a . is && a . is ( "br" ) : a . getText && f . test ( a . getText ( ) ) ) ? a : ! 1 } } ) ( ) ;
function ( a ) { return function ( b ) { b = h ( b ) || k ( b ) || g ( b ) ; return ! ! ( a ^ b ) } } ; var v = CKEDITOR . dom . walker . ignored ( ) ; CKEDITOR . dom . walker . empty = function ( a ) { return function ( b ) { for ( var c = 0 , e = b . getChildCount ( ) ; c < e ; ++ c ) if ( ! v ( b . getChild ( c ) ) ) return ! ! a ; return ! a } } ; var e = CKEDITOR . dom . walker . empty ( ) , z = CKEDITOR . dom . walker . validEmptyBlockContainers = CKEDITOR . tools . extend ( function ( a ) { var b = { } , c ; for ( c in a ) CKEDITOR . dtd [ c ] [ "#" ] && ( b [ c ] = 1 ) ; return b } ( CKEDITOR . dtd . $block ) , { caption : 1 , td : 1 , th : 1 } ) ; CKEDITOR . dom . walker . editable = function ( a ) { return function ( b ) { b =
v ( b ) ? ! 1 : b . type == CKEDITOR . NODE _TEXT || b . type == CKEDITOR . NODE _ELEMENT && ( b . is ( CKEDITOR . dtd . $inline ) || b . is ( "hr" ) || "false" == b . getAttribute ( "contenteditable" ) || ! CKEDITOR . env . needsBrFiller && b . is ( z ) && e ( b ) ) ? ! 0 : ! 1 ; return ! ! ( a ^ b ) } } ; CKEDITOR . dom . element . prototype . getBogus = function ( ) { var a = this ; do a = a . getPreviousSourceNode ( ) ; while ( l ( a ) ) ; return a && ( CKEDITOR . env . needsBrFiller ? a . is && a . is ( "br" ) : a . getText && f . test ( a . getText ( ) ) ) ? a : ! 1 } } ) ( ) ;
CKEDITOR . dom . range = function ( a ) { this . endOffset = this . endContainer = this . startOffset = this . startContainer = null ; this . collapsed = ! 0 ; var d = a instanceof CKEDITOR . dom . document ; this . document = d ? a : a . getDocument ( ) ; this . root = d ? a . getBody ( ) : a } ;
( function ( ) { function a ( a ) { a . collapsed = a . startContainer && a . endContainer && a . startContainer . equals ( a . endContainer ) && a . startOffset == a . endOffset } function d ( a , b , c , d , f ) { function h ( a , b , c , e ) { var E = c ? a . getPrevious ( ) : a . getNext ( ) ; if ( e && k ) return E ; l || e ? b . append ( a . clone ( ! 0 , f ) , c ) : ( a . remove ( ) , u && b . append ( a , c ) ) ; return E } function n ( ) { var a , b , c , e = Math . min ( R . length , p . length ) ; for ( a = 0 ; a < e ; a ++ ) if ( b = R [ a ] , c = p [ a ] , ! b . equals ( c ) ) return a ; return a - 1 } function g ( ) { var b = N - 1 , c = D && B && ! m . equals ( C ) ; b < O - 1 || b < q - 1 || c ? ( c ? a . moveToPosition ( C ,
CKEDITOR . POSITION _BEFORE _START ) : q == b + 1 && r ? a . moveToPosition ( p [ b ] , CKEDITOR . POSITION _BEFORE _END ) : a . moveToPosition ( p [ b + 1 ] , CKEDITOR . POSITION _BEFORE _START ) , d && ( b = R [ b + 1 ] ) && b . type == CKEDITOR . NODE _ELEMENT && ( c = CKEDITOR . dom . element . createFromHtml ( '\x3cspan data-cke-bookmark\x3d"1" style\x3d"display:none"\x3e\x26nbsp;\x3c/span\x3e' , a . document ) , c . insertAfter ( b ) , b . mergeSiblings ( ! 1 ) , a . moveToBookmark ( { startNode : c } ) ) ) : a . collapse ( ! 0 ) } a . optimizeBookmark ( ) ; var k = 0 === b , u = 1 == b , l = 2 == b ; b = l || u ; var m = a . startContainer , C = a . endContainer ,
K = a . startOffset , A = a . endOffset , M , r , D , B , v , S ; if ( l && C . type == CKEDITOR . NODE _TEXT && ( m . equals ( C ) || m . type === CKEDITOR . NODE _ELEMENT && m . getFirst ( ) . equals ( C ) ) ) c . append ( a . document . createText ( C . substring ( K , A ) ) ) ; else { C . type == CKEDITOR . NODE _TEXT ? l ? S = ! 0 : C = C . split ( A ) : 0 < C . getChildCount ( ) ? A >= C . getChildCount ( ) ? ( C = C . getChild ( A - 1 ) , r = ! 0 ) : C = C . getChild ( A ) : B = r = ! 0 ; m . type == CKEDITOR . NODE _TEXT ? l ? v = ! 0 : m . split ( K ) : 0 < m . getChildCount ( ) ? 0 === K ? ( m = m . getChild ( K ) , M = ! 0 ) : m = m . getChild ( K - 1 ) : D = M = ! 0 ; for ( var R = m . getParents ( ) , p = C . getParents ( ) , N = n ( ) ,
O = R . length - 1 , q = p . length - 1 , G = c , E , ba , J , da = - 1 , T = N ; T <= O ; T ++ ) { ba = R [ T ] ; J = ba . getNext ( ) ; for ( T != O || ba . equals ( p [ T ] ) && O < q ? b && ( E = G . append ( ba . clone ( 0 , f ) ) ) : M ? h ( ba , G , ! 1 , D ) : v && G . append ( a . document . createText ( ba . substring ( K ) ) ) ; J ; ) { if ( J . equals ( p [ T ] ) ) { da = T ; break } J = h ( J , G ) } G = E } G = c ; for ( T = N ; T <= q ; T ++ ) if ( c = p [ T ] , J = c . getPrevious ( ) , c . equals ( R [ T ] ) ) b && ( G = G . getChild ( 0 ) ) ; else { T != q || c . equals ( R [ T ] ) && q < O ? b && ( E = G . append ( c . clone ( 0 , f ) ) ) : r ? h ( c , G , ! 1 , B ) : S && G . append ( a . document . createText ( c . substring ( 0 , A ) ) ) ; if ( T > da ) for ( ; J ; ) J = h ( J , G , ! 0 ) ; G = E } l ||
( function ( ) { function a ( a ) { a . collapsed = a . startContainer && a . endContainer && a . startContainer . equals ( a . endContainer ) && a . startOffset == a . endOffset } function d ( a , b , c , d , f ) { function h ( a , b , c , e ) { var E = c ? a . getPrevious ( ) : a . getNext ( ) ; if ( e && k ) return E ; l || e ? b . append ( a . clone ( ! 0 , f ) , c ) : ( a . remove ( ) , v && b . append ( a , c ) ) ; return E } function m ( ) { var a , b , c , e = Math . min ( S . length , t . length ) ; for ( a = 0 ; a < e ; a ++ ) if ( b = S [ a ] , c = t [ a ] , ! b . equals ( c ) ) return a ; return a - 1 } function g ( ) { var b = P - 1 , c = D && r && ! n . equals ( C ) ; b < I - 1 || b < p - 1 || c ? ( c ? a . moveToPosition ( C ,
CKEDITOR . POSITION _BEFORE _START ) : p == b + 1 && q ? a . moveToPosition ( t [ b ] , CKEDITOR . POSITION _BEFORE _END ) : a . moveToPosition ( t [ b + 1 ] , CKEDITOR . POSITION _BEFORE _START ) , d && ( b = S [ b + 1 ] ) && b . type == CKEDITOR . NODE _ELEMENT && ( c = CKEDITOR . dom . element . createFromHtml ( '\x3cspan data-cke-bookmark\x3d"1" style\x3d"display:none"\x3e\x26nbsp;\x3c/span\x3e' , a . document ) , c . insertAfter ( b ) , b . mergeSiblings ( ! 1 ) , a . moveToBookmark ( { startNode : c } ) ) ) : a . collapse ( ! 0 ) } a . optimizeBookmark ( ) ; var k = 0 === b , v = 1 == b , l = 2 == b ; b = l || v ; var n = a . startContainer , C = a . endContainer ,
L = a . startOffset , B = a . endOffset , N , q , D , r , x , T ; if ( l && C . type == CKEDITOR . NODE _TEXT && ( n . equals ( C ) || n . type === CKEDITOR . NODE _ELEMENT && n . getFirst ( ) . equals ( C ) ) ) c . append ( a . document . createText ( C . substring ( L , B ) ) ) ; else { C . type == CKEDITOR . NODE _TEXT ? l ? T = ! 0 : C = C . split ( B ) : 0 < C . getChildCount ( ) ? B >= C . getChildCount ( ) ? ( C = C . getChild ( B - 1 ) , q = ! 0 ) : C = C . getChild ( B ) : r = q = ! 0 ; n . type == CKEDITOR . NODE _TEXT ? l ? x = ! 0 : n . split ( L ) : 0 < n . getChildCount ( ) ? 0 === L ? ( n = n . getChild ( L ) , N = ! 0 ) : n = n . getChild ( L - 1 ) : D = N = ! 0 ; for ( var S = n . getParents ( ) , t = C . getParents ( ) , P = m ( ) ,
I = S . length - 1 , p = t . length - 1 , J = c , E , ba , K , da = - 1 , U = P ; U <= I ; U ++ ) { ba = S [ U ] ; K = ba . getNext ( ) ; for ( U != I || ba . equals ( t [ U ] ) && I < p ? b && ( E = J . append ( ba . clone ( 0 , f ) ) ) : N ? h ( ba , J , ! 1 , D ) : x && J . append ( a . document . createText ( ba . substring ( L ) ) ) ; K ; ) { if ( K . equals ( t [ U ] ) ) { da = U ; break } K = h ( K , J ) } J = E } J = c ; for ( U = P ; U <= p ; U ++ ) if ( c = t [ U ] , K = c . getPrevious ( ) , c . equals ( S [ U ] ) ) b && ( J = J . getChild ( 0 ) ) ; else { U != p || c . equals ( S [ U ] ) && p < I ? b && ( E = J . append ( c . clone ( 0 , f ) ) ) : q ? h ( c , J , ! 1 , r ) : T && J . append ( a . document . createText ( c . substring ( 0 , B ) ) ) ; if ( U > da ) for ( ; K ; ) K = h ( K , J , ! 0 ) ; J = E } l ||
g ( ) } } function b ( ) { var a = ! 1 , b = CKEDITOR . dom . walker . whitespaces ( ) , c = CKEDITOR . dom . walker . bookmark ( ! 0 ) , d = CKEDITOR . dom . walker . bogus ( ) ; return function ( f ) { return c ( f ) || b ( f ) ? ! 0 : d ( f ) && ! a ? a = ! 0 : f . type == CKEDITOR . NODE _TEXT && ( f . hasAscendant ( "pre" ) || CKEDITOR . tools . trim ( f . getText ( ) ) . length ) || f . type == CKEDITOR . NODE _ELEMENT && ! f . is ( h ) ? ! 1 : ! 0 } } function c ( a ) { var b = CKEDITOR . dom . walker . whitespaces ( ) , c = CKEDITOR . dom . walker . bookmark ( 1 ) ; return function ( d ) { return c ( d ) || b ( d ) ? ! 0 : ! a && k ( d ) || d . type == CKEDITOR . NODE _ELEMENT && d . is ( CKEDITOR . dtd . $removeEmpty ) } }
function f ( a ) { return function ( ) { var b ; return this [ a ? "getPreviousNode" : "getNextNode" ] ( function ( a ) { ! b && u ( a ) && ( b = a ) ; return l ( a ) && ! ( k ( a ) && a . equals ( b ) ) } ) } } var h = { 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 ( ) , g = /^[\t\r\n ]*(?: |\xa0)$/ , l = CKEDITOR . dom . walker . editable ( ) , u = CKEDITOR . dom . walker . ignored ( ! 0 ) ; CKEDITOR . dom . range . prototype = { clone : function ( ) { var a =
function f ( a ) { return function ( ) { var b ; return this [ a ? "getPreviousNode" : "getNextNode" ] ( function ( a ) { ! b && v ( a ) && ( b = a ) ; return l ( a ) && ! ( k ( a ) && a . equals ( b ) ) } ) } } var h = { 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 ( ) , g = /^[\t\r\n ]*(?: |\xa0)$/ , l = CKEDITOR . dom . walker . editable ( ) , v = CKEDITOR . dom . walker . ignored ( ! 0 ) ; CKEDITOR . dom . range . prototype = { clone : function ( ) { var a =
new CKEDITOR . dom . range ( this . root ) ; a . _setStartContainer ( this . startContainer ) ; a . startOffset = this . startOffset ; a . _setEndContainer ( this . endContainer ) ; a . endOffset = this . endOffset ; a . collapsed = this . collapsed ; return a } , collapse : function ( a ) { a ? ( this . _setEndContainer ( this . startContainer ) , this . endOffset = this . startOffset ) : ( this . _setStartContainer ( this . endContainer ) , this . startOffset = this . endOffset ) ; this . collapsed = ! 0 } , cloneContents : function ( a ) { var b = new CKEDITOR . dom . documentFragment ( this . document ) ; this . collapsed ||
d ( this , 2 , b , ! 1 , "undefined" == typeof a ? ! 0 : a ) ; return b } , deleteContents : function ( a ) { this . collapsed || d ( this , 0 , null , a ) } , extractContents : function ( a , b ) { var c = new CKEDITOR . dom . documentFragment ( this . document ) ; this . collapsed || d ( this , 1 , c , a , "undefined" == typeof b ? ! 0 : b ) ; return c } , equals : function ( a ) { return this . startOffset === a . startOffset && this . endOffset === a . endOffset && this . startContainer . equals ( a . startContainer ) && this . endContainer . equals ( a . endContainer ) } , createBookmark : function ( a ) { function b ( a ) { return a . getAscendant ( function ( a ) { var b ;
if ( b = a . data && a . data ( "cke-temp" ) ) b = - 1 === CKEDITOR . tools . array . indexOf ( [ "cke_copybin" , "cke_pastebin" ] , a . getAttribute ( "id" ) ) ; return b } , ! 0 ) } var c = this . startContainer , d = this . endContainer , f = this . collapsed , h , n , g , k ; h = this . document . createElement ( "span" ) ; h . data ( "cke-bookmark" , 1 ) ; h . setStyle ( "display" , "none" ) ; h . setHtml ( "\x26nbsp;" ) ; a && ( g = "cke_bm_" + CKEDITOR . tools . getNextNumber ( ) , h . setAttribute ( "id" , g + ( f ? "C" : "S" ) ) ) ; f || ( n = h . clone ( ) , n . setHtml ( "\x26nbsp;" ) , a && n . setAttribute ( "id" , g + "E" ) , k = this . clone ( ) , b ( d ) && ( d = b ( d ) ,
k . moveToPosition ( d , CKEDITOR . POSITION _AFTER _END ) ) , k . collapse ( ) , k . insertNode ( n ) ) ; k = this . clone ( ) ; b ( c ) && ( d = b ( c ) , k . moveToPosition ( d , CKEDITOR . POSITION _BEFORE _START ) ) ; k . collapse ( ! 0 ) ; k . insertNode ( h ) ; n ? ( this . setStartAfter ( h ) , this . setEndBefore ( n ) ) : this . moveToPosition ( h , CKEDITOR . POSITION _AFTER _END ) ; return { startNode : a ? g + ( f ? "C" : "S" ) : h , endNode : a ? g + "E" : n , serializable : a , collapsed : f } } , createBookmark2 : function ( ) { function a ( b ) { var e = b . container , d = b . offset , n ; n = e ; var f = d ; n = n . type != CKEDITOR . NODE _ELEMENT || 0 === f || f == n . getChildCount ( ) ?
0 : n . getChild ( f - 1 ) . type == CKEDITOR . NODE _TEXT && n . getChild ( f ) . type == CKEDITOR . NODE _TEXT ; n && ( e = e . getChild ( d - 1 ) , d = e . getLength ( ) ) ; if ( e . type == CKEDITOR . NODE _ELEMENT && 0 < d ) { a : { for ( n = e ; d -- ; ) if ( f = n . getChild ( d ) . getIndex ( ! 0 ) , 0 <= f ) { d = f ; break a } d = - 1 } d += 1 } if ( e . type == CKEDITOR . NODE _TEXT ) { n = e ; for ( f = 0 ; ( n = n . getPrevious ( ) ) && n . type == CKEDITOR . NODE _TEXT ; ) f += n . getText ( ) . replace ( CKEDITOR . dom . selection . FILLING _CHAR _SEQUENCE , "" ) . length ; n = f ; e . isEmpty ( ) ? ( f = e . getPrevious ( c ) , n ? ( d = n , e = f ? f . getNext ( ) : e . getParent ( ) . getFirst ( ) ) : ( e = e . getParent ( ) ,
d = f ? f . getIndex ( ! 0 ) + 1 : 0 ) ) : d += n } b . container = e ; b . offset = d } function b ( a , c ) { var e = c . getCustomData ( "cke-fillingChar" ) ; if ( e ) { var d = a . container ; e . equals ( d ) && ( a . offset -= CKEDITOR . dom . selection . FILLING _CHAR _SEQUENCE . length , 0 >= a . offset && ( a . offset = d . getIndex ( ) , a . container = d . getParent ( ) ) ) } } var c = CKEDITOR . dom . walker . nodeType ( CKEDITOR . NODE _TEXT , ! 0 ) ; return function ( c ) { var d = this . collapsed , f = { container : this . startContainer , offset : this . startOffset } , n = { container : this . endContainer , offset : this . endOffset } ; c && ( a ( f ) , b ( f , this . root ) ,
d || ( a ( n ) , b ( n , this . root ) ) ) ; return { start : f . container . getAddress ( c ) , end : d ? null : n . container . getAddress ( c ) , startOffset : f . offset , endOffset : n . offset , normalized : c , collapsed : d , is2 : ! 0 } } } ( ) , moveToBookmark : function ( a ) { if ( a . is2 ) { var b = this . document . getByAddress ( a . start , a . normalized ) , c = a . startOffset , d = a . end && this . document . getByAddress ( a . end , a . normalized ) ; a = a . endOffset ; this . setStart ( b , c ) ; d ? this . setEnd ( d , a ) : this . collapse ( ! 0 ) } else b = ( c = a . serializable ) ? this . document . getById ( a . startNode ) : a . startNode , a = c ? this . document . getById ( a . endNode ) :
if ( b = a . data && a . data ( "cke-temp" ) ) b = - 1 === CKEDITOR . tools . array . indexOf ( [ "cke_copybin" , "cke_pastebin" ] , a . getAttribute ( "id" ) ) ; return b } , ! 0 ) } var c = this . startContainer , d = this . endContainer , f = this . collapsed , h , m , g , k ; h = this . document . createElement ( "span" ) ; h . data ( "cke-bookmark" , 1 ) ; h . setStyle ( "display" , "none" ) ; h . setHtml ( "\x26nbsp;" ) ; a && ( g = "cke_bm_" + CKEDITOR . tools . getNextNumber ( ) , h . setAttribute ( "id" , g + ( f ? "C" : "S" ) ) ) ; f || ( m = h . clone ( ) , m . setHtml ( "\x26nbsp;" ) , a && m . setAttribute ( "id" , g + "E" ) , k = this . clone ( ) , b ( d ) && ( d = b ( d ) ,
k . moveToPosition ( d , CKEDITOR . POSITION _AFTER _END ) ) , k . collapse ( ) , k . insertNode ( m ) ) ; k = this . clone ( ) ; b ( c ) && ( d = b ( c ) , k . moveToPosition ( d , CKEDITOR . POSITION _BEFORE _START ) ) ; k . collapse ( ! 0 ) ; k . insertNode ( h ) ; m ? ( this . setStartAfter ( h ) , this . setEndBefore ( m ) ) : this . moveToPosition ( h , CKEDITOR . POSITION _AFTER _END ) ; return { startNode : a ? g + ( f ? "C" : "S" ) : h , endNode : a ? g + "E" : m , serializable : a , collapsed : f } } , createBookmark2 : function ( ) { function a ( b ) { var e = b . container , d = b . offset , m ; m = e ; var f = d ; m = m . type != CKEDITOR . NODE _ELEMENT || 0 === f || f == m . getChildCount ( ) ?
0 : m . getChild ( f - 1 ) . type == CKEDITOR . NODE _TEXT && m . getChild ( f ) . type == CKEDITOR . NODE _TEXT ; m && ( e = e . getChild ( d - 1 ) , d = e . getLength ( ) ) ; if ( e . type == CKEDITOR . NODE _ELEMENT && 0 < d ) { a : { for ( m = e ; d -- ; ) if ( f = m . getChild ( d ) . getIndex ( ! 0 ) , 0 <= f ) { d = f ; break a } d = - 1 } d += 1 } if ( e . type == CKEDITOR . NODE _TEXT ) { m = e ; for ( f = 0 ; ( m = m . getPrevious ( ) ) && m . type == CKEDITOR . NODE _TEXT ; ) f += m . getText ( ) . replace ( CKEDITOR . dom . selection . FILLING _CHAR _SEQUENCE , "" ) . length ; m = f ; e . isEmpty ( ) ? ( f = e . getPrevious ( c ) , m ? ( d = m , e = f ? f . getNext ( ) : e . getParent ( ) . getFirst ( ) ) : ( e = e . getParent ( ) ,
d = f ? f . getIndex ( ! 0 ) + 1 : 0 ) ) : d += m } b . container = e ; b . offset = d } function b ( a , c ) { var e = c . getCustomData ( "cke-fillingChar" ) ; if ( e ) { var d = a . container ; e . equals ( d ) && ( a . offset -= CKEDITOR . dom . selection . FILLING _CHAR _SEQUENCE . length , 0 >= a . offset && ( a . offset = d . getIndex ( ) , a . container = d . getParent ( ) ) ) } } var c = CKEDITOR . dom . walker . nodeType ( CKEDITOR . NODE _TEXT , ! 0 ) ; return function ( c ) { var d = this . collapsed , f = { container : this . startContainer , offset : this . startOffset } , m = { container : this . endContainer , offset : this . endOffset } ; c && ( a ( f ) , b ( f , this . root ) ,
d || ( a ( m ) , b ( m , this . root ) ) ) ; return { start : f . container . getAddress ( c ) , end : d ? null : m . container . getAddress ( c ) , startOffset : f . offset , endOffset : m . offset , normalized : c , collapsed : d , is2 : ! 0 } } } ( ) , moveToBookmark : function ( a ) { if ( a . is2 ) { var b = this . document . getByAddress ( a . start , a . normalized ) , c = a . startOffset , d = a . end && this . document . getByAddress ( a . end , a . normalized ) ; a = a . endOffset ; this . setStart ( b , c ) ; d ? this . setEnd ( d , a ) : this . collapse ( ! 0 ) } else b = ( c = a . serializable ) ? this . document . getById ( a . startNode ) : a . startNode , a = c ? this . document . getById ( a . endNode ) :
a . endNode , this . setStartBefore ( b ) , b . remove ( ) , a ? ( this . setEndBefore ( a ) , a . remove ( ) ) : this . collapse ( ! 0 ) } , getBoundaryNodes : function ( ) { var a = this . startContainer , b = this . endContainer , c = this . startOffset , d = this . endOffset , f ; if ( a . type == CKEDITOR . NODE _ELEMENT ) if ( f = a . getChildCount ( ) , f > c ) a = a . getChild ( c ) ; else if ( 1 > f ) a = a . getPreviousSourceNode ( ) ; else { for ( a = a . $ ; a . lastChild ; ) a = a . lastChild ; a = new CKEDITOR . dom . node ( a ) ; a = a . getNextSourceNode ( ) || a } if ( b . type == CKEDITOR . NODE _ELEMENT ) if ( f = b . getChildCount ( ) , f > d ) b = b . getChild ( d ) . getPreviousSourceNode ( ! 0 ) ;
else if ( 1 > f ) b = b . getPreviousSourceNode ( ) ; else { for ( b = b . $ ; b . lastChild ; ) b = b . lastChild ; b = new CKEDITOR . dom . node ( b ) } a . getPosition ( b ) & CKEDITOR . POSITION _FOLLOWING && ( a = b ) ; return { startNode : a , endNode : b } } , getCommonAncestor : function ( a , b ) { var c = this . startContainer , d = this . endContainer , c = c . equals ( d ) ? a && c . type == CKEDITOR . NODE _ELEMENT && this . startOffset == this . endOffset - 1 ? c . getChild ( this . startOffset ) : c : c . getCommonAncestor ( d ) ; return b && ! c . is ? c . getParent ( ) : c } , optimize : function ( ) { var a = this . startContainer , b = this . startOffset ;
a . type != CKEDITOR . NODE _ELEMENT && ( b ? b >= a . getLength ( ) && this . setStartAfter ( a ) : this . setStartBefore ( a ) ) ; a = this . endContainer ; b = this . endOffset ; a . type != CKEDITOR . NODE _ELEMENT && ( b ? b >= a . getLength ( ) && this . setEndAfter ( a ) : this . setEndBefore ( a ) ) } , optimizeBookmark : function ( ) { var a = this . startContainer , b = this . endContainer ; a . is && a . is ( "span" ) && a . data ( "cke-bookmark" ) && this . setStartAt ( a , CKEDITOR . POSITION _BEFORE _START ) ; b && b . is && b . is ( "span" ) && b . data ( "cke-bookmark" ) && this . setEndAt ( b , CKEDITOR . POSITION _AFTER _END ) } , trim : function ( a ,
b ) { var c = this . startContainer , d = this . startOffset , f = this . collapsed ; if ( ( ! a || f ) && c && c . type == CKEDITOR . NODE _TEXT ) { if ( d ) if ( d >= c . getLength ( ) ) d = c . getIndex ( ) + 1 , c = c . getParent ( ) ; else { var h = c . split ( d ) , d = c . getIndex ( ) + 1 , c = c . getParent ( ) ; this . startContainer . equals ( this . endContainer ) ? this . setEnd ( h , this . endOffset - this . startOffset ) : c . equals ( this . endContainer ) && ( this . endOffset += 1 ) } else d = c . getIndex ( ) , c = c . getParent ( ) ; this . setStart ( c , d ) ; if ( f ) { this . collapse ( ! 0 ) ; return } } c = this . endContainer ; d = this . endOffset ; b || f || ! c || c . type !=
CKEDITOR . NODE _TEXT || ( d ? ( d >= c . getLength ( ) || c . split ( d ) , d = c . getIndex ( ) + 1 ) : d = c . getIndex ( ) , c = c . getParent ( ) , this . setEnd ( c , d ) ) } , enlarge : function ( a , b ) { function c ( a ) { return a && a . type == CKEDITOR . NODE _ELEMENT && a . hasAttribute ( "contenteditable" ) ? null : a } var d = new RegExp ( /[^\s\ufeff]/ ) ; switch ( a ) { case CKEDITOR . ENLARGE _INLINE : var f = 1 ; case CKEDITOR . ENLARGE _ELEMENT : var h = function ( a , b ) { var c = new CKEDITOR . dom . range ( g ) ; c . setStart ( a , b ) ; c . setEndAt ( g , CKEDITOR . POSITION _BEFORE _END ) ; var c = new CKEDITOR . dom . walker ( c ) , e ; for ( c . guard =
function ( a ) { return ! ( a . type == CKEDITOR . NODE _ELEMENT && a . isBlockBoundary ( ) ) } ; e = c . next ( ) ; ) { if ( e . type != CKEDITOR . NODE _TEXT ) return ! 1 ; M = e != a ? e . getText ( ) : e . substring ( b ) ; if ( d . test ( M ) ) return ! 1 } return ! 0 } ; if ( this . collapsed ) break ; var n = this . getCommonAncestor ( ) , g = this . root , k , u , l , m , C , K = ! 1 , A , M ; A = this . startContainer ; var r = this . startOffset ; A . type == CKEDITOR . NODE _TEXT ? ( r && ( A = ! CKEDITOR . tools . trim ( A . substring ( 0 , r ) ) . length && A , K = ! ! A ) , A && ( ( m = A . getPrevious ( ) ) || ( l = A . getParent ( ) ) ) ) : ( r && ( m = A . getChild ( r - 1 ) || A . getLast ( ) ) , m || ( l = A ) ) ;
for ( l = c ( l ) ; l || m ; ) { if ( l && ! m ) { ! C && l . equals ( n ) && ( C = ! 0 ) ; if ( f ? l . isBlockBoundary ( ) : ! g . contains ( l ) ) break ; K && "inline" == l . getComputedStyle ( "display" ) || ( K = ! 1 , C ? k = l : this . setStartBefore ( l ) ) ; m = l . getPrevious ( ) } for ( ; m ; ) if ( A = ! 1 , m . type == CKEDITOR . NODE _COMMENT ) m = m . getPrevious ( ) ; else { if ( m . type == CKEDITOR . NODE _TEXT ) M = m . getText ( ) , d . test ( M ) && ( m = null ) , A = /[\s\ufeff]$/ . test ( M ) ; else if ( ( m . $ . offsetWidth > ( CKEDITOR . env . webkit ? 1 : 0 ) || b && m . is ( "br" ) ) && ! m . data ( "cke-bookmark" ) ) if ( K && CKEDITOR . dtd . $removeEmpty [ m . getName ( ) ] ) { M = m . getText ( ) ;
if ( d . test ( M ) ) m = null ; else for ( var r = m . $ . getElementsByTagName ( "*" ) , D = 0 , B ; B = r [ D ++ ] ; ) if ( ! CKEDITOR . dtd . $removeEmpty [ B . nodeName . toLowerCase ( ) ] ) { m = null ; break } m && ( A = ! ! M . length ) } else m = null ; A && ( K ? C ? k = l : l && this . setStartBefore ( l ) : K = ! 0 ) ; if ( m ) { A = m . getPrevious ( ) ; if ( ! l && ! A ) { l = m ; m = null ; break } m = A } else l = null } l && ( l = c ( l . getParent ( ) ) ) } A = this . endContainer ; r = this . endOffset ; l = m = null ; C = K = ! 1 ; A . type == CKEDITOR . NODE _TEXT ? CKEDITOR . tools . trim ( A . substring ( r ) ) . length ? K = ! 0 : ( K = ! A . getLength ( ) , r == A . getLength ( ) ? ( m = A . getNext ( ) ) || ( l = A . getParent ( ) ) :
h ( A , r ) && ( l = A . getParent ( ) ) ) : ( m = A . getChild ( r ) ) || ( l = A ) ; for ( ; l || m ; ) { if ( l && ! m ) { ! C && l . equals ( n ) && ( C = ! 0 ) ; if ( f ? l . isBlockBoundary ( ) : ! g . contains ( l ) ) break ; K && "inline" == l . getComputedStyle ( "display" ) || ( K = ! 1 , C ? u = l : l && this . setEndAfter ( l ) ) ; m = l . getNext ( ) } for ( ; m ; ) { A = ! 1 ; if ( m . type == CKEDITOR . NODE _TEXT ) M = m . getText ( ) , h ( m , 0 ) || ( m = null ) , A = /^[\s\ufeff]/ . test ( M ) ; else if ( m . type == CKEDITOR . NODE _ELEMENT ) { if ( ( 0 < m . $ . offsetWidth || b && m . is ( "br" ) ) && ! m . data ( "cke-bookmark" ) ) if ( K && CKEDITOR . dtd . $removeEmpty [ m . getName ( ) ] ) { M = m . getText ( ) ; if ( d . test ( M ) ) m =
null ; else for ( r = m . $ . getElementsByTagName ( "*" ) , D = 0 ; B = r [ D ++ ] ; ) if ( ! CKEDITOR . dtd . $removeEmpty [ B . nodeName . toLowerCase ( ) ] ) { m = null ; break } m && ( A = ! ! M . length ) } else m = null } else A = 1 ; A && K && ( C ? u = l : this . setEndAfter ( l ) ) ; if ( m ) { A = m . getNext ( ) ; if ( ! l && ! A ) { l = m ; m = null ; break } m = A } else l = null } l && ( l = c ( l . getParent ( ) ) ) } k && u && ( n = k . contains ( u ) ? u : k , this . setStartBefore ( n ) , this . setEndAfter ( n ) ) ; break ; case CKEDITOR . ENLARGE _BLOCK _CONTENTS : case CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS : l = new CKEDITOR . dom . range ( this . root ) ; g = this . root ; l . setStartAt ( g ,
CKEDITOR . POSITION _AFTER _START ) ; l . setEnd ( this . startContainer , this . startOffset ) ; l = new CKEDITOR . dom . walker ( l ) ; var v , S , R = CKEDITOR . dom . walker . blockBoundary ( a == CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS ? { br : 1 } : null ) , p = null , N = function ( a ) { if ( a . type == CKEDITOR . NODE _ELEMENT && "false" == a . getAttribute ( "contenteditable" ) ) if ( p ) { if ( p . equals ( a ) ) { p = null ; return } } else p = a ; else if ( p ) return ; var b = R ( a ) ; b || ( v = a ) ; return b } , f = function ( a ) { var b = N ( a ) ; ! b && a . is && a . is ( "br" ) && ( S = a ) ; return b } ; l . guard = N ; l = l . lastBackward ( ) ; v = v || g ; this . setStartAt ( v ,
! v . is ( "br" ) && ( ! l && this . checkStartOfBlock ( ) || l && v . contains ( l ) ) ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _AFTER _END ) ; if ( a == CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS ) { l = this . clone ( ) ; l = new CKEDITOR . dom . walker ( l ) ; var O = CKEDITOR . dom . walker . whitespaces ( ) , q = CKEDITOR . dom . walker . bookmark ( ) ; l . evaluator = function ( a ) { return ! O ( a ) && ! q ( a ) } ; if ( ( l = l . previous ( ) ) && l . type == CKEDITOR . NODE _ELEMENT && l . is ( "br" ) ) break } l = this . clone ( ) ; l . collapse ( ) ; l . setEndAt ( g , CKEDITOR . POSITION _BEFORE _END ) ; l = new CKEDITOR . dom . walker ( l ) ; l . guard =
a == CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS ? f : N ; v = p = S = null ; l = l . lastForward ( ) ; v = v || g ; this . setEndAt ( v , ! l && this . checkEndOfBlock ( ) || l && v . contains ( l ) ? CKEDITOR . POSITION _BEFORE _END : CKEDITOR . POSITION _BEFORE _START ) ; S && this . setEndAfter ( S ) } } , shrink : function ( a , b , c ) { var d = "boolean" === typeof c ? c : c && "boolean" === typeof c . shrinkOnBlockBoundary ? c . shrinkOnBlockBoundary : ! 0 , f = c && c . skipBogus ; if ( ! this . collapsed ) { a = a || CKEDITOR . SHRINK _TEXT ; var h = this . clone ( ) , n = this . startContainer , g = this . endContainer , k = this . startOffset , l = this . endOffset ,
u = c = 1 ; n && n . type == CKEDITOR . NODE _TEXT && ( k ? k >= n . getLength ( ) ? h . setStartAfter ( n ) : ( h . setStartBefore ( n ) , c = 0 ) : h . setStartBefore ( n ) ) ; g && g . type == CKEDITOR . NODE _TEXT && ( l ? l >= g . getLength ( ) ? h . setEndAfter ( g ) : ( h . setEndAfter ( g ) , u = 0 ) : h . setEndBefore ( g ) ) ; var h = new CKEDITOR . dom . walker ( h ) , m = CKEDITOR . dom . walker . bookmark ( ) , C = CKEDITOR . dom . walker . bogus ( ) ; h . evaluator = function ( b ) { return b . type == ( a == CKEDITOR . SHRINK _ELEMENT ? CKEDITOR . NODE _ELEMENT : CKEDITOR . NODE _TEXT ) } ; var K ; h . guard = function ( b , c ) { if ( f && C ( b ) || m ( b ) ) return ! 0 ; if ( a == CKEDITOR . SHRINK _ELEMENT &&
b . type == CKEDITOR . NODE _TEXT || c && b . equals ( K ) || ! 1 === d && b . type == CKEDITOR . NODE _ELEMENT && b . isBlockBoundary ( ) || b . type == CKEDITOR . NODE _ELEMENT && b . hasAttribute ( "contenteditable" ) ) return ! 1 ; c || b . type != CKEDITOR . NODE _ELEMENT || ( K = b ) ; return ! 0 } ; c && ( n = h [ a == CKEDITOR . SHRINK _ELEMENT ? "lastForward" : "next" ] ( ) ) && this . setStartAt ( n , b ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _BEFORE _START ) ; u && ( h . reset ( ) , ( h = h [ a == CKEDITOR . SHRINK _ELEMENT ? "lastBackward" : "previous" ] ( ) ) && this . setEndAt ( h , b ? CKEDITOR . POSITION _BEFORE _END : CKEDITOR . POSITION _AFTER _END ) ) ;
return ! ( ! c && ! u ) } } , insertNode : function ( a ) { this . optimizeBookmark ( ) ; this . trim ( ! 1 , ! 0 ) ; var b = this . startContainer , c = b . getChild ( this . startOffset ) ; c ? a . insertBefore ( c ) : b . append ( a ) ; a . getParent ( ) && a . getParent ( ) . equals ( this . endContainer ) && this . endOffset ++ ; this . setStartBefore ( a ) } , moveToPosition : function ( a , b ) { this . setStartAt ( a , b ) ; this . collapse ( ! 0 ) } , moveToRange : function ( a ) { this . setStart ( a . startContainer , a . startOffset ) ; this . setEnd ( a . endContainer , a . endOffset ) } , selectNodeContents : function ( a ) { this . setStart ( a , 0 ) ; this . setEnd ( a ,
function ( a ) { return ! ( a . type == CKEDITOR . NODE _ELEMENT && a . isBlockBoundary ( ) ) } ; e = c . next ( ) ; ) { if ( e . type != CKEDITOR . NODE _TEXT ) return ! 1 ; N = e != a ? e . getText ( ) : e . substring ( b ) ; if ( d . test ( N ) ) return ! 1 } return ! 0 } ; if ( this . collapsed ) break ; var m = this . getCommonAncestor ( ) , g = this . root , k , v , l , n , C , L = ! 1 , B , N ; B = this . startContainer ; var q = this . startOffset ; B . type == CKEDITOR . NODE _TEXT ? ( q && ( B = ! CKEDITOR . tools . trim ( B . substring ( 0 , q ) ) . length && B , L = ! ! B ) , B && ( ( n = B . getPrevious ( ) ) || ( l = B . getParent ( ) ) ) ) : ( q && ( n = B . getChild ( q - 1 ) || B . getLast ( ) ) , n || ( l = B ) ) ;
for ( l = c ( l ) ; l || n ; ) { if ( l && ! n ) { ! C && l . equals ( m ) && ( C = ! 0 ) ; if ( f ? l . isBlockBoundary ( ) : ! g . contains ( l ) ) break ; L && "inline" == l . getComputedStyle ( "display" ) || ( L = ! 1 , C ? k = l : this . setStartBefore ( l ) ) ; n = l . getPrevious ( ) } for ( ; n ; ) if ( B = ! 1 , n . type == CKEDITOR . NODE _COMMENT ) n = n . getPrevious ( ) ; else { if ( n . type == CKEDITOR . NODE _TEXT ) N = n . getText ( ) , d . test ( N ) && ( n = null ) , B = /[\s\ufeff]$/ . test ( N ) ; else if ( ( n . $ . offsetWidth > ( CKEDITOR . env . webkit ? 1 : 0 ) || b && n . is ( "br" ) ) && ! n . data ( "cke-bookmark" ) ) if ( L && CKEDITOR . dtd . $removeEmpty [ n . getName ( ) ] ) { N = n . getText ( ) ;
if ( d . test ( N ) ) n = null ; else for ( var q = n . $ . getElementsByTagName ( "*" ) , D = 0 , r ; r = q [ D ++ ] ; ) if ( ! CKEDITOR . dtd . $removeEmpty [ r . nodeName . toLowerCase ( ) ] ) { n = null ; break } n && ( B = ! ! N . length ) } else n = null ; B && ( L ? C ? k = l : l && this . setStartBefore ( l ) : L = ! 0 ) ; if ( n ) { B = n . getPrevious ( ) ; if ( ! l && ! B ) { l = n ; n = null ; break } n = B } else l = null } l && ( l = c ( l . getParent ( ) ) ) } B = this . endContainer ; q = this . endOffset ; l = n = null ; C = L = ! 1 ; B . type == CKEDITOR . NODE _TEXT ? CKEDITOR . tools . trim ( B . substring ( q ) ) . length ? L = ! 0 : ( L = ! B . getLength ( ) , q == B . getLength ( ) ? ( n = B . getNext ( ) ) || ( l = B . getParent ( ) ) :
h ( B , q ) && ( l = B . getParent ( ) ) ) : ( n = B . getChild ( q ) ) || ( l = B ) ; for ( ; l || n ; ) { if ( l && ! n ) { ! C && l . equals ( m ) && ( C = ! 0 ) ; if ( f ? l . isBlockBoundary ( ) : ! g . contains ( l ) ) break ; L && "inline" == l . getComputedStyle ( "display" ) || ( L = ! 1 , C ? v = l : l && this . setEndAfter ( l ) ) ; n = l . getNext ( ) } for ( ; n ; ) { B = ! 1 ; if ( n . type == CKEDITOR . NODE _TEXT ) N = n . getText ( ) , h ( n , 0 ) || ( n = null ) , B = /^[\s\ufeff]/ . test ( N ) ; else if ( n . type == CKEDITOR . NODE _ELEMENT ) { if ( ( 0 < n . $ . offsetWidth || b && n . is ( "br" ) ) && ! n . data ( "cke-bookmark" ) ) if ( L && CKEDITOR . dtd . $removeEmpty [ n . getName ( ) ] ) { N = n . getText ( ) ; if ( d . test ( N ) ) n =
null ; else for ( q = n . $ . getElementsByTagName ( "*" ) , D = 0 ; r = q [ D ++ ] ; ) if ( ! CKEDITOR . dtd . $removeEmpty [ r . nodeName . toLowerCase ( ) ] ) { n = null ; break } n && ( B = ! ! N . length ) } else n = null } else B = 1 ; B && L && ( C ? v = l : this . setEndAfter ( l ) ) ; if ( n ) { B = n . getNext ( ) ; if ( ! l && ! B ) { l = n ; n = null ; break } n = B } else l = null } l && ( l = c ( l . getParent ( ) ) ) } k && v && ( m = k . contains ( v ) ? v : k , this . setStartBefore ( m ) , this . setEndAfter ( m ) ) ; break ; case CKEDITOR . ENLARGE _BLOCK _CONTENTS : case CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS : l = new CKEDITOR . dom . range ( this . root ) ; g = this . root ; l . setStartAt ( g ,
CKEDITOR . POSITION _AFTER _START ) ; l . setEnd ( this . startContainer , this . startOffset ) ; l = new CKEDITOR . dom . walker ( l ) ; var x , T , S = CKEDITOR . dom . walker . blockBoundary ( a == CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS ? { br : 1 } : null ) , t = null , P = function ( a ) { if ( a . type == CKEDITOR . NODE _ELEMENT && "false" == a . getAttribute ( "contenteditable" ) ) if ( t ) { if ( t . equals ( a ) ) { t = null ; return } } else t = a ; else if ( t ) return ; var b = S ( a ) ; b || ( x = a ) ; return b } , f = function ( a ) { var b = P ( a ) ; ! b && a . is && a . is ( "br" ) && ( T = a ) ; return b } ; l . guard = P ; l = l . lastBackward ( ) ; x = x || g ; this . setStartAt ( x ,
! x . is ( "br" ) && ( ! l && this . checkStartOfBlock ( ) || l && x . contains ( l ) ) ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _AFTER _END ) ; if ( a == CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS ) { l = this . clone ( ) ; l = new CKEDITOR . dom . walker ( l ) ; var I = CKEDITOR . dom . walker . whitespaces ( ) , p = CKEDITOR . dom . walker . bookmark ( ) ; l . evaluator = function ( a ) { return ! I ( a ) && ! p ( a ) } ; if ( ( l = l . previous ( ) ) && l . type == CKEDITOR . NODE _ELEMENT && l . is ( "br" ) ) break } l = this . clone ( ) ; l . collapse ( ) ; l . setEndAt ( g , CKEDITOR . POSITION _BEFORE _END ) ; l = new CKEDITOR . dom . walker ( l ) ; l . guard =
a == CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS ? f : P ; x = t = T = null ; l = l . lastForward ( ) ; x = x || g ; this . setEndAt ( x , ! l && this . checkEndOfBlock ( ) || l && x . contains ( l ) ? CKEDITOR . POSITION _BEFORE _END : CKEDITOR . POSITION _BEFORE _START ) ; T && this . setEndAfter ( T ) } } , shrink : function ( a , b , c ) { var d = "boolean" === typeof c ? c : c && "boolean" === typeof c . shrinkOnBlockBoundary ? c . shrinkOnBlockBoundary : ! 0 , f = c && c . skipBogus ; if ( ! this . collapsed ) { a = a || CKEDITOR . SHRINK _TEXT ; var h = this . clone ( ) , m = this . startContainer , g = this . endContainer , k = this . startOffset , l = this . endOffset ,
v = c = 1 ; m && m . type == CKEDITOR . NODE _TEXT && ( k ? k >= m . getLength ( ) ? h . setStartAfter ( m ) : ( h . setStartBefore ( m ) , c = 0 ) : h . setStartBefore ( m ) ) ; g && g . type == CKEDITOR . NODE _TEXT && ( l ? l >= g . getLength ( ) ? h . setEndAfter ( g ) : ( h . setEndAfter ( g ) , v = 0 ) : h . setEndBefore ( g ) ) ; var h = new CKEDITOR . dom . walker ( h ) , n = CKEDITOR . dom . walker . bookmark ( ) , C = CKEDITOR . dom . walker . bogus ( ) ; h . evaluator = function ( b ) { return b . type == ( a == CKEDITOR . SHRINK _ELEMENT ? CKEDITOR . NODE _ELEMENT : CKEDITOR . NODE _TEXT ) } ; var L ; h . guard = function ( b , c ) { if ( f && C ( b ) || n ( b ) ) return ! 0 ; if ( a == CKEDITOR . SHRINK _ELEMENT &&
b . type == CKEDITOR . NODE _TEXT || c && b . equals ( L ) || ! 1 === d && b . type == CKEDITOR . NODE _ELEMENT && b . isBlockBoundary ( ) || b . type == CKEDITOR . NODE _ELEMENT && b . hasAttribute ( "contenteditable" ) ) return ! 1 ; c || b . type != CKEDITOR . NODE _ELEMENT || ( L = b ) ; return ! 0 } ; c && ( m = h [ a == CKEDITOR . SHRINK _ELEMENT ? "lastForward" : "next" ] ( ) ) && this . setStartAt ( m , b ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _BEFORE _START ) ; v && ( h . reset ( ) , ( h = h [ a == CKEDITOR . SHRINK _ELEMENT ? "lastBackward" : "previous" ] ( ) ) && this . setEndAt ( h , b ? CKEDITOR . POSITION _BEFORE _END : CKEDITOR . POSITION _AFTER _END ) ) ;
return ! ( ! c && ! v ) } } , insertNode : function ( a ) { this . optimizeBookmark ( ) ; this . trim ( ! 1 , ! 0 ) ; var b = this . startContainer , c = b . getChild ( this . startOffset ) ; c ? a . insertBefore ( c ) : b . append ( a ) ; a . getParent ( ) && a . getParent ( ) . equals ( this . endContainer ) && this . endOffset ++ ; this . setStartBefore ( a ) } , moveToPosition : function ( a , b ) { this . setStartAt ( a , b ) ; this . collapse ( ! 0 ) } , moveToRange : function ( a ) { this . setStart ( a . startContainer , a . startOffset ) ; this . setEnd ( a . endContainer , a . endOffset ) } , selectNodeContents : function ( a ) { this . setStart ( a , 0 ) ; this . setEnd ( a ,
a . type == CKEDITOR . NODE _TEXT ? a . getLength ( ) : a . getChildCount ( ) ) } , setStart : function ( b , c ) { b . type == CKEDITOR . NODE _ELEMENT && CKEDITOR . dtd . $empty [ b . getName ( ) ] && ( c = b . getIndex ( ) , b = b . getParent ( ) ) ; this . _setStartContainer ( b ) ; this . startOffset = c ; this . endContainer || ( this . _setEndContainer ( b ) , this . endOffset = c ) ; a ( this ) } , setEnd : function ( b , c ) { b . type == CKEDITOR . NODE _ELEMENT && CKEDITOR . dtd . $empty [ b . getName ( ) ] && ( c = b . getIndex ( ) + 1 , b = b . getParent ( ) ) ; this . _setEndContainer ( b ) ; this . endOffset = c ; this . startContainer || ( this . _setStartContainer ( b ) ,
this . startOffset = c ) ; a ( this ) } , setStartAfter : function ( a ) { this . setStart ( a . getParent ( ) , a . getIndex ( ) + 1 ) } , setStartBefore : function ( a ) { this . setStart ( a . getParent ( ) , a . getIndex ( ) ) } , setEndAfter : function ( a ) { this . setEnd ( a . getParent ( ) , a . getIndex ( ) + 1 ) } , setEndBefore : function ( a ) { this . setEnd ( a . getParent ( ) , a . getIndex ( ) ) } , setStartAt : function ( b , c ) { switch ( c ) { case CKEDITOR . POSITION _AFTER _START : this . setStart ( b , 0 ) ; break ; case CKEDITOR . POSITION _BEFORE _END : b . type == CKEDITOR . NODE _TEXT ? this . setStart ( b , b . getLength ( ) ) : this . setStart ( b ,
b . getChildCount ( ) ) ; break ; case CKEDITOR . POSITION _BEFORE _START : this . setStartBefore ( b ) ; break ; case CKEDITOR . POSITION _AFTER _END : this . setStartAfter ( b ) } a ( this ) } , setEndAt : function ( b , c ) { switch ( c ) { case CKEDITOR . POSITION _AFTER _START : this . setEnd ( b , 0 ) ; break ; case CKEDITOR . POSITION _BEFORE _END : b . type == CKEDITOR . NODE _TEXT ? this . setEnd ( b , b . getLength ( ) ) : this . setEnd ( b , b . getChildCount ( ) ) ; break ; case CKEDITOR . POSITION _BEFORE _START : this . setEndBefore ( b ) ; break ; case CKEDITOR . POSITION _AFTER _END : this . setEndAfter ( b ) } a ( this ) } , fixBlock : function ( a ,
b ) { var c = this . createBookmark ( ) , d = this . document . createElement ( b ) ; this . collapse ( a ) ; this . enlarge ( CKEDITOR . ENLARGE _BLOCK _CONTENTS ) ; this . extractContents ( ) . appendTo ( d ) ; d . trim ( ) ; this . insertNode ( d ) ; var f = d . getBogus ( ) ; f && f . remove ( ) ; d . appendBogus ( ) ; this . moveToBookmark ( c ) ; return d } , splitBlock : function ( a , b ) { var c = new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) , d = new CKEDITOR . dom . elementPath ( this . endContainer , this . root ) , f = c . block , h = d . block , n = null ; if ( ! c . blockLimit . equals ( d . blockLimit ) ) return null ; "br" !=
a && ( f || ( f = this . fixBlock ( ! 0 , a ) , h = ( new CKEDITOR . dom . elementPath ( this . endContainer , this . root ) ) . block ) , h || ( h = this . fixBlock ( ! 1 , a ) ) ) ; c = f && this . checkStartOfBlock ( ) ; d = h && this . checkEndOfBlock ( ) ; this . deleteContents ( ) ; f && f . equals ( h ) && ( d ? ( n = new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) , this . moveToPosition ( h , CKEDITOR . POSITION _AFTER _END ) , h = null ) : c ? ( n = new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) , this . moveToPosition ( f , CKEDITOR . POSITION _BEFORE _START ) , f = null ) : ( h = this . splitElement ( f , b ||
! 1 ) , f . is ( "ul" , "ol" ) || f . appendBogus ( ) ) ) ; return { previousBlock : f , nextBlock : h , wasStartOfBlock : c , wasEndOfBlock : d , elementPath : n } } , splitElement : function ( a , b ) { if ( ! this . collapsed ) return null ; this . setEndAt ( a , CKEDITOR . POSITION _BEFORE _END ) ; var c = this . extractContents ( ! 1 , b || ! 1 ) , d = a . clone ( ! 1 , b || ! 1 ) ; c . appendTo ( d ) ; d . insertAfter ( a ) ; this . moveToPosition ( a , CKEDITOR . POSITION _AFTER _END ) ; return d } , removeEmptyBlocksAtEnd : function ( ) { function a ( e ) { return function ( a ) { return b ( a ) || c ( a ) || a . type == CKEDITOR . NODE _ELEMENT && a . isEmptyInlineRemoveable ( ) ||
e . is ( "table" ) && a . is ( "caption" ) ? ! 1 : ! 0 } } var b = CKEDITOR . dom . walker . whitespaces ( ) , c = CKEDITOR . dom . walker . bookmark ( ! 1 ) ; return function ( b ) { for ( var c = this . createBookmark ( ) , d = this [ b ? "endPath" : "startPath" ] ( ) , f = d . block || d . blockLimit , h ; f && ! f . equals ( d . root ) && ! f . getFirst ( a ( f ) ) ; ) h = f . getParent ( ) , this [ b ? "setEndAt" : "setStartAt" ] ( f , CKEDITOR . POSITION _AFTER _END ) , f . remove ( 1 ) , f = h ; this . moveToBookmark ( c ) } } ( ) , startPath : function ( ) { return new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) } , endPath : function ( ) { return new CKEDITOR . dom . elementPath ( this . endContainer ,
b ) { var c = this . createBookmark ( ) , d = this . document . createElement ( b ) ; this . collapse ( a ) ; this . enlarge ( CKEDITOR . ENLARGE _BLOCK _CONTENTS ) ; this . extractContents ( ) . appendTo ( d ) ; d . trim ( ) ; this . insertNode ( d ) ; var f = d . getBogus ( ) ; f && f . remove ( ) ; d . appendBogus ( ) ; this . moveToBookmark ( c ) ; return d } , splitBlock : function ( a , b ) { var c = new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) , d = new CKEDITOR . dom . elementPath ( this . endContainer , this . root ) , f = c . block , h = d . block , m = null ; if ( ! c . blockLimit . equals ( d . blockLimit ) ) return null ; "br" !=
a && ( f || ( f = this . fixBlock ( ! 0 , a ) , h = ( new CKEDITOR . dom . elementPath ( this . endContainer , this . root ) ) . block ) , h || ( h = this . fixBlock ( ! 1 , a ) ) ) ; c = f && this . checkStartOfBlock ( ) ; d = h && this . checkEndOfBlock ( ) ; this . deleteContents ( ) ; f && f . equals ( h ) && ( d ? ( m = new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) , this . moveToPosition ( h , CKEDITOR . POSITION _AFTER _END ) , h = null ) : c ? ( m = new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) , this . moveToPosition ( f , CKEDITOR . POSITION _BEFORE _START ) , f = null ) : ( h = this . splitElement ( f , b ||
! 1 ) , f . is ( "ul" , "ol" ) || f . appendBogus ( ) ) ) ; return { previousBlock : f , nextBlock : h , wasStartOfBlock : c , wasEndOfBlock : d , elementPath : m } } , splitElement : function ( a , b ) { if ( ! this . collapsed ) return null ; this . setEndAt ( a , CKEDITOR . POSITION _BEFORE _END ) ; var c = this . extractContents ( ! 1 , b || ! 1 ) , d = a . clone ( ! 1 , b || ! 1 ) ; c . appendTo ( d ) ; d . insertAfter ( a ) ; this . moveToPosition ( a , CKEDITOR . POSITION _AFTER _END ) ; return d } , removeEmptyBlocksAtEnd : function ( ) { function a ( d ) { return function ( a ) { return b ( a ) || c ( a ) || a . type == CKEDITOR . NODE _ELEMENT && a . isEmptyInlineRemoveable ( ) ||
d . is ( "table" ) && a . is ( "caption" ) ? ! 1 : ! 0 } } var b = CKEDITOR . dom . walker . whitespaces ( ) , c = CKEDITOR . dom . walker . bookmark ( ! 1 ) ; return function ( b ) { for ( var c = this . createBookmark ( ) , d = this [ b ? "endPath" : "startPath" ] ( ) , m = d . block || d . blockLimit , f ; m && ! m . equals ( d . root ) && ! m . getFirst ( a ( m ) ) ; ) f = m . getParent ( ) , this [ b ? "setEndAt" : "setStartAt" ] ( m , CKEDITOR . POSITION _AFTER _END ) , m . remove ( 1 ) , m = f ; this . moveToBookmark ( c ) } } ( ) , startPath : function ( ) { return new CKEDITOR . dom . elementPath ( this . startContainer , this . root ) } , endPath : function ( ) { return new CKEDITOR . dom . elementPath ( this . endContainer ,
this . root ) } , checkBoundaryOfElement : function ( a , b ) { var d = b == CKEDITOR . START , f = this . clone ( ) ; f . collapse ( d ) ; f [ d ? "setStartAt" : "setEndAt" ] ( a , d ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _BEFORE _END ) ; f = new CKEDITOR . dom . walker ( f ) ; f . evaluator = c ( d ) ; return f [ d ? "checkBackward" : "checkForward" ] ( ) } , checkStartOfBlock : function ( ) { var a = this . startContainer , c = this . startOffset ; CKEDITOR . env . ie && c && a . type == CKEDITOR . NODE _TEXT && ( a = CKEDITOR . tools . ltrim ( a . substring ( 0 , c ) ) , g . test ( a ) && this . trim ( 0 , 1 ) ) ; this . trim ( ) ; a = new CKEDITOR . dom . elementPath ( this . startContainer ,
this . root ) ; c = this . clone ( ) ; c . collapse ( ! 0 ) ; c . setStartAt ( a . block || a . blockLimit , CKEDITOR . POSITION _AFTER _START ) ; a = new CKEDITOR . dom . walker ( c ) ; a . evaluator = b ( ) ; return a . checkBackward ( ) } , checkEndOfBlock : function ( ) { var a = this . endContainer , c = this . endOffset ; CKEDITOR . env . ie && a . type == CKEDITOR . NODE _TEXT && ( a = CKEDITOR . tools . rtrim ( a . substring ( c ) ) , g . test ( a ) && this . trim ( 1 , 0 ) ) ; this . trim ( ) ; a = new CKEDITOR . dom . elementPath ( this . endContainer , this . root ) ; c = this . clone ( ) ; c . collapse ( ! 1 ) ; c . setEndAt ( a . block || a . blockLimit , CKEDITOR . POSITION _BEFORE _END ) ;
a = new CKEDITOR . dom . walker ( c ) ; a . evaluator = b ( ) ; return a . checkForward ( ) } , getPreviousNode : function ( a , b , c ) { var d = this . clone ( ) ; d . collapse ( 1 ) ; d . setStartAt ( c || this . root , CKEDITOR . POSITION _AFTER _START ) ; c = new CKEDITOR . dom . walker ( d ) ; c . evaluator = a ; c . guard = b ; return c . previous ( ) } , getNextNode : function ( a , b , c ) { var d = this . clone ( ) ; d . collapse ( ) ; d . setEndAt ( c || this . root , CKEDITOR . POSITION _BEFORE _END ) ; c = new CKEDITOR . dom . walker ( d ) ; c . evaluator = a ; c . guard = b ; return c . next ( ) } , checkReadOnly : function ( ) { function a ( b , c ) { for ( ; b ; ) { if ( b . type ==
CKEDITOR . NODE _ELEMENT ) { if ( "false" == b . getAttribute ( "contentEditable" ) && ! b . data ( "cke-editable" ) ) return 0 ; if ( b . is ( "html" ) || "true" == b . getAttribute ( "contentEditable" ) && ( b . contains ( c ) || b . equals ( c ) ) ) break } b = b . getParent ( ) } return 1 } return function ( ) { var b = this . startContainer , c = this . endContainer ; return ! ( a ( b , c ) && a ( c , b ) ) } } ( ) , moveToElementEditablePosition : function ( a , b ) { if ( a . type == CKEDITOR . NODE _ELEMENT && ! a . isEditable ( ! 1 ) ) return this . moveToPosition ( a , b ? CKEDITOR . POSITION _AFTER _END : CKEDITOR . POSITION _BEFORE _START ) ,
! 0 ; for ( var c = 0 ; a ; ) { if ( a . type == CKEDITOR . NODE _TEXT ) { b && this . endContainer && this . checkEndOfBlock ( ) && g . test ( a . getText ( ) ) ? this . moveToPosition ( a , CKEDITOR . POSITION _BEFORE _START ) : this . moveToPosition ( a , b ? CKEDITOR . POSITION _AFTER _END : CKEDITOR . POSITION _BEFORE _START ) ; c = 1 ; break } if ( a . type == CKEDITOR . NODE _ELEMENT ) if ( a . isEditable ( ) ) this . moveToPosition ( a , b ? CKEDITOR . POSITION _BEFORE _END : CKEDITOR . POSITION _AFTER _START ) , c = 1 ; else if ( b && a . is ( "br" ) && this . endContainer && this . checkEndOfBlock ( ) ) this . moveToPosition ( a , CKEDITOR . POSITION _BEFORE _START ) ;
else if ( "false" == a . getAttribute ( "contenteditable" ) && a . is ( CKEDITOR . dtd . $block ) ) return this . setStartBefore ( a ) , this . setEndAfter ( a ) , ! 0 ; var d = a , f = c , h = void 0 ; d . type == CKEDITOR . NODE _ELEMENT && d . isEditable ( ! 1 ) && ( h = d [ b ? "getLast" : "getFirst" ] ( u ) ) ; f || h || ( h = d [ b ? "getPrevious" : "getNext" ] ( u ) ) ; a = h } return ! ! c } , moveToClosestEditablePosition : function ( a , b ) { var c , d = 0 , f , h , n = [ CKEDITOR . POSITION _AFTER _END , CKEDITOR . POSITION _BEFORE _START ] ; a ? ( c = new CKEDITOR . dom . range ( this . root ) , c . moveToPosition ( a , n [ b ? 0 : 1 ] ) ) : c = this . clone ( ) ; if ( a &&
! a . is ( CKEDITOR . dtd . $block ) ) d = 1 ; else if ( f = c [ b ? "getNextEditableNode" : "getPreviousEditableNode" ] ( ) ) d = 1 , ( h = f . type == CKEDITOR . NODE _ELEMENT ) && f . is ( CKEDITOR . dtd . $block ) && "false" == f . getAttribute ( "contenteditable" ) ? ( c . setStartAt ( f , CKEDITOR . POSITION _BEFORE _START ) , c . setEndAt ( f , CKEDITOR . POSITION _AFTER _END ) ) : ! CKEDITOR . env . needsBrFiller && h && f . is ( CKEDITOR . dom . walker . validEmptyBlockContainers ) ? ( c . setEnd ( f , 0 ) , c . collapse ( ) ) : c . moveToPosition ( f , n [ b ? 1 : 0 ] ) ; d && this . moveToRange ( c ) ; return ! ! d } , moveToElementEditStart : function ( a ) { return this . moveToElementEditablePosition ( a ) } ,
else if ( "false" == a . getAttribute ( "contenteditable" ) && a . is ( CKEDITOR . dtd . $block ) ) return this . setStartBefore ( a ) , this . setEndAfter ( a ) , ! 0 ; var d = a , f = c , h = void 0 ; d . type == CKEDITOR . NODE _ELEMENT && d . isEditable ( ! 1 ) && ( h = d [ b ? "getLast" : "getFirst" ] ( v ) ) ; f || h || ( h = d [ b ? "getPrevious" : "getNext" ] ( v ) ) ; a = h } return ! ! c } , moveToClosestEditablePosition : function ( a , b ) { var c , d = 0 , f , h , m = [ CKEDITOR . POSITION _AFTER _END , CKEDITOR . POSITION _BEFORE _START ] ; a ? ( c = new CKEDITOR . dom . range ( this . root ) , c . moveToPosition ( a , m [ b ? 0 : 1 ] ) ) : c = this . clone ( ) ; if ( a &&
! a . is ( CKEDITOR . dtd . $block ) ) d = 1 ; else if ( f = c [ b ? "getNextEditableNode" : "getPreviousEditableNode" ] ( ) ) d = 1 , ( h = f . type == CKEDITOR . NODE _ELEMENT ) && f . is ( CKEDITOR . dtd . $block ) && "false" == f . getAttribute ( "contenteditable" ) ? ( c . setStartAt ( f , CKEDITOR . POSITION _BEFORE _START ) , c . setEndAt ( f , CKEDITOR . POSITION _AFTER _END ) ) : ! CKEDITOR . env . needsBrFiller && h && f . is ( CKEDITOR . dom . walker . validEmptyBlockContainers ) ? ( c . setEnd ( f , 0 ) , c . collapse ( ) ) : c . moveToPosition ( f , m [ b ? 1 : 0 ] ) ; d && this . moveToRange ( c ) ; return ! ! d } , moveToElementEditStart : function ( a ) { return this . moveToElementEditablePosition ( a ) } ,
moveToElementEditEnd : function ( a ) { return this . moveToElementEditablePosition ( a , ! 0 ) } , getEnclosedNode : function ( ) { var a = this . clone ( ) ; a . optimize ( ) ; if ( a . startContainer . type != CKEDITOR . NODE _ELEMENT || a . endContainer . type != CKEDITOR . NODE _ELEMENT ) return null ; var a = new CKEDITOR . dom . walker ( a ) , b = CKEDITOR . dom . walker . bookmark ( ! 1 , ! 0 ) , c = CKEDITOR . dom . walker . whitespaces ( ! 0 ) ; a . evaluator = function ( a ) { return c ( a ) && b ( a ) } ; var d = a . next ( ) ; a . reset ( ) ; return d && d . equals ( a . previous ( ) ) ? d : null } , getTouchedStartNode : function ( ) { var a = this . startContainer ;
return this . collapsed || a . type != CKEDITOR . NODE _ELEMENT ? a : a . getChild ( this . startOffset ) || a } , getTouchedEndNode : function ( ) { var a = this . endContainer ; return this . collapsed || a . type != CKEDITOR . NODE _ELEMENT ? a : a . getChild ( this . endOffset - 1 ) || a } , getNextEditableNode : f ( ) , getPreviousEditableNode : f ( 1 ) , _getTableElement : function ( a ) { a = a || { td : 1 , th : 1 , tr : 1 , tbody : 1 , thead : 1 , tfoot : 1 , table : 1 } ; var b = this . getTouchedStartNode ( ) , c = this . getTouchedEndNode ( ) , d = b . getAscendant ( "table" , ! 0 ) , c = c . getAscendant ( "table" , ! 0 ) ; return d && ! this . root . contains ( d ) ?
null : this . getEnclosedNode ( ) ? this . getEnclosedNode ( ) . getAscendant ( a , ! 0 ) : d && c && ( d . equals ( c ) || d . contains ( c ) || c . contains ( d ) ) ? b . getAscendant ( a , ! 0 ) : null } , scrollIntoView : function ( ) { var a = new CKEDITOR . dom . element . createFromHtml ( "\x3cspan\x3e\x26nbsp;\x3c/span\x3e" , this . document ) , b , c , d , f = this . clone ( ) ; f . optimize ( ) ; ( d = f . startContainer . type == CKEDITOR . NODE _TEXT ) ? ( c = f . startContainer . getText ( ) , b = f . startContainer . split ( f . startOffset ) , a . insertAfter ( f . startContainer ) ) : f . insertNode ( a ) ; a . scrollIntoView ( ) ; d && ( f . startContainer . setText ( c ) ,
@@ -201,60 +202,60 @@ c.startContainer.getIndex());g&&e.setEnd(c.endContainer.getParent(),c.endContain
f . setEnd ( b . getParent ( ) . $ , b . getIndex ( ) + 1 ) ; b = f . getClientRects ( ) ; b . widgetRect = a . getClientRect ( ) ; return b } , c ) , CKEDITOR . tools . array . forEach ( e , function ( a ) { function b ( e ) { CKEDITOR . tools . array . forEach ( d , function ( b , f ) { var h = CKEDITOR . tools . objectCompare ( a [ e ] , b ) ; h || ( h = CKEDITOR . tools . objectCompare ( a . widgetRect , b ) ) ; h && ( Array . prototype . splice . call ( d , f , a . length - e , a . widgetRect ) , c = ! 0 ) } ) ; c || ( e < d . length - 1 ? b ( e + 1 ) : d . push ( a . widgetRect ) ) } var c ; b ( 0 ) } ) , d } function b ( a , c , e ) { var f ; c . collapsed ? e . startContainer instanceof CKEDITOR . dom . element ?
( a = e . checkStartOfBlock ( ) , f = new CKEDITOR . dom . text ( " " ) , a ? e . startContainer . append ( f , ! 0 ) : 0 === e . startOffset ? f . insertBefore ( e . startContainer . getFirst ( ) ) : ( e = e . startContainer . getChildren ( ) . getItem ( e . startOffset - 1 ) , f . insertAfter ( e ) ) , c . setStart ( f . $ , 0 ) , c . setEnd ( f . $ , 0 ) , a = c . getClientRects ( ) , f . remove ( ) ) : e . startContainer instanceof CKEDITOR . dom . text && ( "" === e . startContainer . getText ( ) ? ( e . startContainer . setText ( " " ) , a = c . getClientRects ( ) , e . startContainer . setText ( "" ) ) : a = [ d ( e . createBookmark ( ) ) ] ) : a = [ d ( e . createBookmark ( ) ) ] ;
return a } function c ( a , b , d ) { a = CKEDITOR . tools . extend ( { } , a ) ; b && ( a = CKEDITOR . tools . getAbsoluteRectPosition ( d . document . getWindow ( ) , a ) ) ; ! a . width && ( a . width = a . right - a . left ) ; ! a . height && ( a . height = a . bottom - a . top ) ; return a } function d ( a ) { var b = a . startNode ; a = a . endNode ; var c ; b . setText ( " " ) ; b . removeStyle ( "display" ) ; a ? ( a . setText ( " " ) , a . removeStyle ( "display" ) , c = [ b . getClientRect ( ) , a . getClientRect ( ) ] , a . remove ( ) ) : c = [ b . getClientRect ( ) , b . getClientRect ( ) ] ; b . remove ( ) ; return { right : Math . max ( c [ 0 ] . right , c [ 1 ] . right ) , bottom : Math . max ( c [ 0 ] . bottom ,
c [ 1 ] . bottom ) , left : Math . min ( c [ 0 ] . left , c [ 1 ] . left ) , top : Math . min ( c [ 0 ] . top , c [ 1 ] . top ) , width : Math . abs ( c [ 0 ] . left - c [ 1 ] . left ) , height : Math . max ( c [ 0 ] . bottom , c [ 1 ] . bottom ) - Math . min ( c [ 0 ] . top , c [ 1 ] . top ) } } return void 0 !== this . document . getSelection ? function ( d ) { var f = this . root . getDocument ( ) . $ . createRange ( ) , n ; f . setStart ( this . startContainer . $ , this . startOffset ) ; f . setEnd ( this . endContainer . $ , this . endOffset ) ; n = f . getClientRects ( ) ; n = a ( n , this ) ; n . length || ( n = b ( n , f , this ) ) ; return CKEDITOR . tools . array . map ( n , function ( a ) { return c ( a ,
d , this ) } , this ) } : function ( a ) { return [ c ( d ( this . createBookmark ( ) ) , a , this ) ] } } ( ) , _setStartContainer : function ( a ) { this . startContainer = a } , _setEndContainer : function ( a ) { this . endContainer = a } , _find : function ( a , b ) { var c = this . getCommonAncestor ( ) , d = this . getBoundaryNodes ( ) , f = [ ] , h , n , g , k ; if ( c && c . find ) for ( n = c . find ( a ) , h = 0 ; h < n . count ( ) ; h ++ ) if ( c = n . getItem ( h ) , b || ! c . isReadOnly ( ) ) g = c . getPosition ( d . startNode ) & CKEDITOR . POSITION _FOLLOWING || d . startNode . equals ( c ) , k = c . getPosition ( d . endNode ) & CKEDITOR . POSITION _PRECEDING + CKEDITOR . POSITION _IS _CONTAINED ||
c [ 1 ] . bottom ) , left : Math . min ( c [ 0 ] . left , c [ 1 ] . left ) , top : Math . min ( c [ 0 ] . top , c [ 1 ] . top ) , width : Math . abs ( c [ 0 ] . left - c [ 1 ] . left ) , height : Math . max ( c [ 0 ] . bottom , c [ 1 ] . bottom ) - Math . min ( c [ 0 ] . top , c [ 1 ] . top ) } } return void 0 !== this . document . getSelection ? function ( d ) { var f = this . root . getDocument ( ) . $ . createRange ( ) , m ; f . setStart ( this . startContainer . $ , this . startOffset ) ; f . setEnd ( this . endContainer . $ , this . endOffset ) ; m = f . getClientRects ( ) ; m = a ( m , this ) ; m . length || ( m = b ( m , f , this ) ) ; return CKEDITOR . tools . array . map ( m , function ( a ) { return c ( a ,
d , this ) } , this ) } : function ( a ) { return [ c ( d ( this . createBookmark ( ) ) , a , this ) ] } } ( ) , _setStartContainer : function ( a ) { this . startContainer = a } , _setEndContainer : function ( a ) { this . endContainer = a } , _find : function ( a , b ) { var c = this . getCommonAncestor ( ) , d = this . getBoundaryNodes ( ) , f = [ ] , h , m , g , k ; if ( c && c . find ) for ( m = c . find ( a ) , h = 0 ; h < m . count ( ) ; h ++ ) if ( c = m . getItem ( h ) , b || ! c . isReadOnly ( ) ) g = c . getPosition ( d . startNode ) & CKEDITOR . POSITION _FOLLOWING || d . startNode . equals ( c ) , k = c . getPosition ( d . endNode ) & CKEDITOR . POSITION _PRECEDING + CKEDITOR . POSITION _IS _CONTAINED ||
d . endNode . equals ( c ) , g && k && f . push ( c ) ; return f } } ; CKEDITOR . dom . range . mergeRanges = function ( a ) { return CKEDITOR . tools . array . reduce ( a , function ( a , b ) { var c = a [ a . length - 1 ] , d = ! 1 ; b = b . clone ( ) ; b . enlarge ( CKEDITOR . ENLARGE _ELEMENT ) ; if ( c ) { var e = new CKEDITOR . dom . range ( b . root ) , d = new CKEDITOR . dom . walker ( e ) , f = CKEDITOR . dom . walker . whitespaces ( ) ; e . setStart ( c . endContainer , c . endOffset ) ; e . setEnd ( b . startContainer , b . startOffset ) ; for ( e = d . next ( ) ; f ( e ) || b . endContainer . equals ( e ) ; ) e = d . next ( ) ; d = ! e } d ? c . setEnd ( b . endContainer , b . endOffset ) :
a . push ( b ) ; return a } , [ ] ) } } ) ( ) ; CKEDITOR . POSITION _AFTER _START = 1 ; CKEDITOR . POSITION _BEFORE _END = 2 ; CKEDITOR . POSITION _BEFORE _START = 3 ; CKEDITOR . POSITION _AFTER _END = 4 ; CKEDITOR . ENLARGE _ELEMENT = 1 ; CKEDITOR . ENLARGE _BLOCK _CONTENTS = 2 ; CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS = 3 ; CKEDITOR . ENLARGE _INLINE = 4 ; CKEDITOR . START = 1 ; CKEDITOR . END = 2 ; CKEDITOR . SHRINK _ELEMENT = 1 ; CKEDITOR . SHRINK _TEXT = 2 ; "use strict" ;
( function ( ) { function a ( a ) { 1 > arguments . length || ( this . range = a , this . forceBrBreak = 0 , this . enlargeBr = 1 , this . enforceRealBlocks = 0 , this . _ || ( this . _ = { } ) ) } function d ( a ) { var b = [ ] ; a . forEach ( function ( a ) { if ( "true" == a . getAttribute ( "contenteditable" ) ) return b . push ( a ) , ! 1 } , CKEDITOR . NODE _ELEMENT , ! 0 ) ; return b } function b ( a , c , f , h ) { a : { null == h && ( h = d ( f ) ) ; for ( var g ; g = h . shift ( ) ; ) if ( g . getDtd ( ) . p ) { h = { element : g , remaining : h } ; break a } h = null } if ( ! h ) return 0 ; if ( ( g = CKEDITOR . filter . instances [ h . element . data ( "cke-filter" ) ] ) && ! g . check ( c ) ) return b ( a ,
c , f , h . remaining ) ; c = new CKEDITOR . dom . range ( h . element ) ; c . selectNodeContents ( h . element ) ; c = c . createIterator ( ) ; c . enlargeBr = a . enlargeBr ; c . enforceRealBlocks = a . enforceRealBlocks ; c . activeFilter = c . filter = g ; a . _ . nestedEditable = { element : h . element , container : f , remaining : h . remaining , iterator : c } ; return 1 } function c ( a , b , c ) { if ( ! b ) return ! 1 ; a = a . clone ( ) ; a . collapse ( ! c ) ; return a . checkBoundaryOfElement ( b , c ? CKEDITOR . START : CKEDITOR . END ) } var f = /^[\r\n\t ]+$/ , h = CKEDITOR . dom . walker . bookmark ( ! 1 , ! 0 ) , k = CKEDITOR . dom . walker . whitespaces ( ! 0 ) ,
g = function ( a ) { return h ( a ) && k ( a ) } , l = { dd : 1 , dt : 1 , li : 1 } ; a . prototype = { getNextParagraph : function ( a ) { var d , k , w , z , H ; a = a || "p" ; if ( this . _ . nestedEditable ) { if ( d = this . _ . nestedEditable . iterator . getNextParagraph ( a ) ) return this . activeFilter = this . _ . nestedEditable . iterator . activeFilter , d ; this . activeFilter = this . filter ; if ( b ( this , a , this . _ . nestedEditable . container , this . _ . nestedEditable . remaining ) ) return this . activeFilter = this . _ . nestedEditable . iterator . activeFilter , this . _ . nestedEditable . iterator . getNextParagraph ( a ) ; this . _ . nestedEditable =
null } if ( ! this . range . root . getDtd ( ) [ a ] ) return null ; if ( ! this . _ . started ) { var t = this . range . clone ( ) ; k = t . startPath ( ) ; var n = t . endPath ( ) , L = ! t . collapsed && c ( t , k . block ) , y = ! t . collapsed && c ( t , n . block , 1 ) ; t . shrink ( CKEDITOR . SHRINK _ELEMENT , ! 0 ) ; L && t . setStartAt ( k . block , CKEDITOR . POSITION _BEFORE _END ) ; y && t . setEndAt ( n . block , CKEDITOR . POSITION _AFTER _START ) ; k = t . endContainer . hasAscendant ( "pre" , ! 0 ) || t . startContainer . hasAscendant ( "pre" , ! 0 ) ; t . enlarge ( this . forceBrBreak && ! k || ! this . enlargeBr ? CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS : CKEDITOR . ENLARGE _BLOCK _CONTENTS ) ;
t . collapsed || ( k = new CKEDITOR . dom . walker ( t . clone ( ) ) , n = CKEDITOR . dom . walker . bookmark ( ! 0 , ! 0 ) , k . evaluator = n , this . _ . nextNode = k . next ( ) , k = new CKEDITOR . dom . walker ( t . clone ( ) ) , k . evaluator = n , k = k . previous ( ) , this . _ . lastNode = k . getNextSourceNode ( ! 0 , null , t . root ) , this . _ . lastNode && this . _ . lastNode . type == CKEDITOR . NODE _TEXT && ! CKEDITOR . tools . trim ( this . _ . lastNode . getText ( ) ) && this . _ . lastNode . getParent ( ) . isBlockBoundary ( ) && ( n = this . range . clone ( ) , n . moveToPosition ( this . _ . lastNode , CKEDITOR . POSITION _AFTER _END ) , n . checkEndOfBlock ( ) &&
( n = new CKEDITOR . dom . elementPath ( n . endContainer , n . root ) , this . _ . lastNode = ( n . block || n . blockLimit ) . getNextSourceNode ( ! 0 ) ) ) , this . _ . lastNode && t . root . contains ( this . _ . lastNode ) || ( this . _ . lastNode = this . _ . docEndMarker = t . document . createText ( "" ) , this . _ . lastNode . insertAfter ( k ) ) , t = null ) ; this . _ . started = 1 ; k = t } n = this . _ . nextNode ; t = this . _ . lastNode ; for ( this . _ . nextNode = null ; n ; ) { var L = 0 , y = n . hasAscendant ( "pre" ) , F = n . type != CKEDITOR . NODE _ELEMENT , I = 0 ; if ( F ) n . type == CKEDITOR . NODE _TEXT && f . test ( n . getText ( ) ) && ( F = 0 ) ; else { var m = n . getName ( ) ;
if ( CKEDITOR . dtd . $block [ m ] && "false" == n . getAttribute ( "contenteditable" ) ) { d = n ; b ( this , a , d ) ; break } else if ( n . isBlockBoundary ( this . forceBrBreak && ! y && { br : 1 } ) ) { if ( "br" == m ) F = 1 ; else if ( ! k && ! n . getChildCount ( ) && "hr" != m ) { d = n ; w = n . equals ( t ) ; break } k && ( k . setEndAt ( n , CKEDITOR . POSITION _BEFORE _START ) , "br" != m && ( this . _ . nextNode = n ) ) ; L = 1 } else { if ( n . getFirst ( ) ) { k || ( k = this . range . clone ( ) , k . setStartAt ( n , CKEDITOR . POSITION _BEFORE _START ) ) ; n = n . getFirst ( ) ; continue } F = 1 } } F && ! k && ( k = this . range . clone ( ) , k . setStartAt ( n , CKEDITOR . POSITION _BEFORE _START ) ) ;
w = ( ! L || F ) && n . equals ( t ) ; if ( k && ! L ) for ( ; ! n . getNext ( g ) && ! w ; ) { m = n . getParent ( ) ; if ( m . isBlockBoundary ( this . forceBrBreak && ! y && { br : 1 } ) ) { L = 1 ; F = 0 ; w || m . equals ( t ) ; k . setEndAt ( m , CKEDITOR . POSITION _BEFORE _END ) ; break } n = m ; F = 1 ; w = n . equals ( t ) ; I = 1 } F && k . setEndAt ( n , CKEDITOR . POSITION _AFTER _END ) ; n = this . _getNextSourceNode ( n , I , t ) ; if ( ( w = ! n ) || L && k ) break } if ( ! d ) { if ( ! k ) return this . _ . docEndMarker && this . _ . docEndMarker . remove ( ) , this . _ . nextNode = null ; d = new CKEDITOR . dom . elementPath ( k . startContainer , k . root ) ; n = d . blockLimit ; L = { div : 1 , th : 1 , td : 1 } ;
d = d . block ; ! d && n && ! this . enforceRealBlocks && L [ n . getName ( ) ] && k . checkStartOfBlock ( ) && k . checkEndOfBlock ( ) && ! n . equals ( k . root ) ? d = n : ! d || this . enforceRealBlocks && d . is ( l ) ? ( d = this . range . document . createElement ( a ) , k . extractContents ( ) . appendTo ( d ) , d . trim ( ) , k . insertNode ( d ) , z = H = ! 0 ) : "li" != d . getName ( ) ? k . checkStartOfBlock ( ) && k . checkEndOfBlock ( ) || ( d = d . clone ( ! 1 ) , k . extractContents ( ) . appendTo ( d ) , d . trim ( ) , H = k . splitBlock ( ) , z = ! H . wasStartOfBlock , H = ! H . wasEndOfBlock , k . insertNode ( d ) ) : w || ( this . _ . nextNode = d . equals ( t ) ? null : this . _getNextSourceNode ( k . getBoundaryNodes ( ) . endNode ,
1 , t ) ) } z && ( z = d . getPrevious ( ) ) && z . type == CKEDITOR . NODE _ELEMENT && ( "br" == z . getName ( ) ? z . remove ( ) : z . getLast ( ) && "br" == z . getLast ( ) . $ . nodeName . toLowerCase ( ) && z . getLast ( ) . remove ( ) ) ; H && ( z = d . getLast ( ) ) && z . type == CKEDITOR . NODE _ELEMENT && "br" == z . getName ( ) && ( ! CKEDITOR . env . needsBrFiller || z . getPrevious ( h ) || z . getNext ( h ) ) && z . remove ( ) ; this . _ . nextNode || ( this . _ . nextNode = w || d . equals ( t ) || ! t ? null : this . _getNextSourceNode ( d , 1 , t ) ) ; return d } , _getNextSourceNode : function ( a , b , c ) { function d ( a ) { return ! ( a . equals ( c ) || a . equals ( f ) ) } var f =
g = function ( a ) { return h ( a ) && k ( a ) } , l = { dd : 1 , dt : 1 , li : 1 } ; a . prototype = { getNextParagraph : function ( a ) { var d , k , w , A , F ; a = a || "p" ; if ( this . _ . nestedEditable ) { if ( d = this . _ . nestedEditable . iterator . getNextParagraph ( a ) ) return this . activeFilter = this . _ . nestedEditable . iterator . activeFilter , d ; this . activeFilter = this . filter ; if ( b ( this , a , this . _ . nestedEditable . container , this . _ . nestedEditable . remaining ) ) return this . activeFilter = this . _ . nestedEditable . iterator . activeFilter , this . _ . nestedEditable . iterator . getNextParagraph ( a ) ; this . _ . nestedEditable =
null } if ( ! this . range . root . getDtd ( ) [ a ] ) return null ; if ( ! this . _ . started ) { var u = this . range . clone ( ) ; k = u . startPath ( ) ; var m = u . endPath ( ) , M = ! u . collapsed && c ( u , k . block ) , y = ! u . collapsed && c ( u , m . block , 1 ) ; u . shrink ( CKEDITOR . SHRINK _ELEMENT , ! 0 ) ; M && u . setStartAt ( k . block , CKEDITOR . POSITION _BEFORE _END ) ; y && u . setEndAt ( m . block , CKEDITOR . POSITION _AFTER _START ) ; k = u . endContainer . hasAscendant ( "pre" , ! 0 ) || u . startContainer . hasAscendant ( "pre" , ! 0 ) ; u . enlarge ( this . forceBrBreak && ! k || ! this . enlargeBr ? CKEDITOR . ENLARGE _LIST _ITEM _CONTENTS : CKEDITOR . ENLARGE _BLOCK _CONTENTS ) ;
u . collapsed || ( k = new CKEDITOR . dom . walker ( u . clone ( ) ) , m = CKEDITOR . dom . walker . bookmark ( ! 0 , ! 0 ) , k . evaluator = m , this . _ . nextNode = k . next ( ) , k = new CKEDITOR . dom . walker ( u . clone ( ) ) , k . evaluator = m , k = k . previous ( ) , this . _ . lastNode = k . getNextSourceNode ( ! 0 , null , u . root ) , this . _ . lastNode && this . _ . lastNode . type == CKEDITOR . NODE _TEXT && ! CKEDITOR . tools . trim ( this . _ . lastNode . getText ( ) ) && this . _ . lastNode . getParent ( ) . isBlockBoundary ( ) && ( m = this . range . clone ( ) , m . moveToPosition ( this . _ . lastNode , CKEDITOR . POSITION _AFTER _END ) , m . checkEndOfBlock ( ) &&
( m = new CKEDITOR . dom . elementPath ( m . endContainer , m . root ) , this . _ . lastNode = ( m . block || m . blockLimit ) . getNextSourceNode ( ! 0 ) ) ) , this . _ . lastNode && u . root . contains ( this . _ . lastNode ) || ( this . _ . lastNode = this . _ . docEndMarker = u . document . createText ( "" ) , this . _ . lastNode . insertAfter ( k ) ) , u = null ) ; this . _ . started = 1 ; k = u } m = this . _ . nextNode ; u = this . _ . lastNode ; for ( this . _ . nextNode = null ; m ; ) { var M = 0 , y = m . hasAscendant ( "pre" ) , G = m . type != CKEDITOR . NODE _ELEMENT , H = 0 ; if ( G ) m . type == CKEDITOR . NODE _TEXT && f . test ( m . getText ( ) ) && ( G = 0 ) ; else { var n = m . getName ( ) ;
if ( CKEDITOR . dtd . $block [ n ] && "false" == m . getAttribute ( "contenteditable" ) ) { d = m ; b ( this , a , d ) ; break } else if ( m . isBlockBoundary ( this . forceBrBreak && ! y && { br : 1 } ) ) { if ( "br" == n ) G = 1 ; else if ( ! k && ! m . getChildCount ( ) && "hr" != n ) { d = m ; w = m . equals ( u ) ; break } k && ( k . setEndAt ( m , CKEDITOR . POSITION _BEFORE _START ) , "br" != n && ( this . _ . nextNode = m ) ) ; M = 1 } else { if ( m . getFirst ( ) ) { k || ( k = this . range . clone ( ) , k . setStartAt ( m , CKEDITOR . POSITION _BEFORE _START ) ) ; m = m . getFirst ( ) ; continue } G = 1 } } G && ! k && ( k = this . range . clone ( ) , k . setStartAt ( m , CKEDITOR . POSITION _BEFORE _START ) ) ;
w = ( ! M || G ) && m . equals ( u ) ; if ( k && ! M ) for ( ; ! m . getNext ( g ) && ! w ; ) { n = m . getParent ( ) ; if ( n . isBlockBoundary ( this . forceBrBreak && ! y && { br : 1 } ) ) { M = 1 ; G = 0 ; w || n . equals ( u ) ; k . setEndAt ( n , CKEDITOR . POSITION _BEFORE _END ) ; break } m = n ; G = 1 ; w = m . equals ( u ) ; H = 1 } G && k . setEndAt ( m , CKEDITOR . POSITION _AFTER _END ) ; m = this . _getNextSourceNode ( m , H , u ) ; if ( ( w = ! m ) || M && k ) break } if ( ! d ) { if ( ! k ) return this . _ . docEndMarker && this . _ . docEndMarker . remove ( ) , this . _ . nextNode = null ; d = new CKEDITOR . dom . elementPath ( k . startContainer , k . root ) ; m = d . blockLimit ; M = { div : 1 , th : 1 , td : 1 } ;
d = d . block ; ! d && m && ! this . enforceRealBlocks && M [ m . getName ( ) ] && k . checkStartOfBlock ( ) && k . checkEndOfBlock ( ) && ! m . equals ( k . root ) ? d = m : ! d || this . enforceRealBlocks && d . is ( l ) ? ( d = this . range . document . createElement ( a ) , k . extractContents ( ) . appendTo ( d ) , d . trim ( ) , k . insertNode ( d ) , A = F = ! 0 ) : "li" != d . getName ( ) ? k . checkStartOfBlock ( ) && k . checkEndOfBlock ( ) || ( d = d . clone ( ! 1 ) , k . extractContents ( ) . appendTo ( d ) , d . trim ( ) , F = k . splitBlock ( ) , A = ! F . wasStartOfBlock , F = ! F . wasEndOfBlock , k . insertNode ( d ) ) : w || ( this . _ . nextNode = d . equals ( u ) ? null : this . _getNextSourceNode ( k . getBoundaryNodes ( ) . endNode ,
1 , u ) ) } A && ( A = d . getPrevious ( ) ) && A . type == CKEDITOR . NODE _ELEMENT && ( "br" == A . getName ( ) ? A . remove ( ) : A . getLast ( ) && "br" == A . getLast ( ) . $ . nodeName . toLowerCase ( ) && A . getLast ( ) . remove ( ) ) ; F && ( A = d . getLast ( ) ) && A . type == CKEDITOR . NODE _ELEMENT && "br" == A . getName ( ) && ( ! CKEDITOR . env . needsBrFiller || A . getPrevious ( h ) || A . getNext ( h ) ) && A . remove ( ) ; this . _ . nextNode || ( this . _ . nextNode = w || d . equals ( u ) || ! u ? null : this . _getNextSourceNode ( d , 1 , u ) ) ; return d } , _getNextSourceNode : function ( a , b , c ) { function d ( a ) { return ! ( a . equals ( c ) || a . equals ( f ) ) } var f =
this . range . root ; for ( a = a . getNextSourceNode ( b , null , d ) ; ! h ( a ) ; ) a = a . getNextSourceNode ( b , null , d ) ; return a } } ; CKEDITOR . dom . range . prototype . createIterator = function ( ) { return new a ( this ) } } ) ( ) ;
CKEDITOR . command = function ( a , d ) { this . uiItems = [ ] ; this . exec = function ( b ) { if ( this . state == CKEDITOR . TRISTATE _DISABLED || ! this . checkAllowed ( ) ) return ! 1 ; this . editorFocus && a . focus ( ) ; return ! 1 === this . fire ( "exec" ) ? ! 0 : ! 1 !== d . exec . call ( this , a , b ) } ; 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 : d . refresh && ! 1 !== d . refresh . apply ( this , arguments ) } ; var b ; this . checkAllowed = function ( c ) { return c || "boolean" != typeof b ? b = a . activeFilter . checkFeature ( this ) : b } ; CKEDITOR . tools . extend ( this , d , { modes : { wysiwyg : 1 } , editorFocus : 1 , contextSensitive : ! ! d . context , state : CKEDITOR . TRISTATE _DISABLED } ) ; CKEDITOR . event . call ( this ) } ;
CKEDITOR . command . prototype = { enable : function ( ) { this . state == CKEDITOR . TRISTATE _DISABLED && this . checkAllowed ( ) && this . setState ( this . preserveState && "undefined" != typeof this . previousState ? this . previousState : CKEDITOR . TRISTATE _OFF ) } , disable : function ( ) { this . setState ( CKEDITOR . TRISTATE _DISABLED ) } , setState : function ( a ) { if ( this . state == a || a != CKEDITOR . TRISTATE _DISABLED && ! this . checkAllowed ( ) ) return ! 1 ; this . previousState = this . state ; this . state = a ; this . fire ( "state" ) ; return ! 0 } , toggleState : function ( ) { this . state == CKEDITOR . TRISTATE _OFF ?
this . setState ( CKEDITOR . TRISTATE _ON ) : this . state == CKEDITOR . TRISTATE _ON && this . setState ( CKEDITOR . TRISTATE _OFF ) } } ; CKEDITOR . event . implementOn ( CKEDITOR . command . prototype ) ; CKEDITOR . ENTER _P = 1 ; CKEDITOR . ENTER _BR = 2 ; CKEDITOR . ENTER _DIV = 3 ;
CKEDITOR . config = { customConfig : "config.js" , autoUpdateElement : ! 0 , language : "" , defaultLanguage : "en" , contentsLangDirection : "" , enterMode : CKEDITOR . ENTER _P , forceEnterMode : ! 1 , shiftEnterMode : CKEDITOR . ENTER _BR , docType : "\x3c!DOCTYPE html\x3e" , bodyId : "" , bodyClass : "" , fullPage : ! 1 , height : 200 , 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 a ( a , b , c , d , e ) { var f , m ; a = [ ] ; for ( f in b ) { m = b [ f ] ; m = "boolean" == typeof m ? { } : "function" == typeof m ? { match : m } : D ( m ) ; "$" != f . charAt ( 0 ) && ( m . elements = f ) ; c && ( m . featureName = c . toLowerCase ( ) ) ; var q = m ; q . elements = k ( q . elements , /\s+/ ) || null ; q . propertiesOnly = q . propertiesOnly || ! 0 === q . elements ; var r = /\s*,\s*/ , B = void 0 ; for ( B in S ) { q [ B ] = k ( q [ B ] , r ) || null ; var h = q , p = R [ B ] , n = k ( q [ R [ B ] ] , r ) , g = q [ B ] , v = [ ] , G = ! 0 , N = void 0 ; n ? G = ! 1 : n = { } ; for ( N in g ) "!" == N . charAt ( 0 ) && ( N = N . slice ( 1 ) , v . push ( N ) , n [ N ] = ! 0 , G = ! 1 ) ; for ( ; N = v . pop ( ) ; ) g [ N ] =
g [ "!" + N ] , delete g [ "!" + N ] ; h [ p ] = ( G ? ! 1 : n ) || null } q . match = q . match || null ; d . push ( m ) ; a . push ( m ) } b = e . elements ; e = e . generic ; var C ; c = 0 ; for ( d = a . length ; c < d ; ++ c ) { f = D ( a [ c ] ) ; m = ! 0 === f . classes || ! 0 === f . styles || ! 0 === f . attributes ; q = f ; B = p = r = void 0 ; for ( r in S ) q [ r ] = L ( q [ r ] ) ; h = ! 0 ; for ( B in R ) { r = R [ B ] ; p = q [ r ] ; n = [ ] ; g = void 0 ; for ( g in p ) - 1 < g . indexOf ( "*" ) ? n . push ( new RegExp ( "^" + g . replace ( /\*/g , ".*" ) + "$" ) ) : n . push ( g ) ; p = n ; p . length && ( q [ r ] = p , h = ! 1 ) } q . nothingRequired = h ; q . noProperties = ! ( q . attributes || q . classes || q . styles ) ; if ( ! 0 === f . elements ||
null === f . elements ) e [ m ? "unshift" : "push" ] ( f ) ; else for ( C in q = f . elements , delete f . elements , q ) if ( b [ C ] ) b [ C ] [ m ? "unshift" : "push" ] ( f ) ; else b [ C ] = [ f ] } } function d ( a , c , d , e ) { if ( ! a . match || a . match ( c ) ) if ( e || g ( a , c ) ) if ( a . propertiesOnly || ( d . valid = ! 0 ) , d . allAttributes || ( d . allAttributes = b ( a . attributes , c . attributes , d . validAttributes ) ) , d . allStyles || ( d . allStyles = b ( a . styles , c . styles , d . validStyles ) ) , ! d . allClasses ) { a = a . classes ; c = c . classes ; e = d . validClasses ; if ( a ) if ( ! 0 === a ) a = ! 0 ; else { for ( var f = 0 , m = c . length , q ; f < m ; ++ f ) q = c [ f ] , e [ q ] ||
( e [ q ] = a ( q ) ) ; a = ! 1 } else a = ! 1 ; d . allClasses = a } } function b ( a , b , c ) { if ( ! a ) return ! 1 ; if ( ! 0 === a ) return ! 0 ; for ( var d in b ) c [ d ] || ( c [ d ] = a ( d ) ) ; return ! 1 } function c ( a , b , c ) { if ( ! a . match || a . match ( b ) ) { if ( a . noProperties ) return ! 1 ; c . hadInvalidAttribute = f ( a . attributes , b . attributes ) || c . hadInvalidAttribute ; c . hadInvalidStyle = f ( a . styles , b . styles ) || c . hadInvalidStyle ; a = a . classes ; b = b . classes ; if ( a ) { for ( var d = ! 1 , e = ! 0 === a , m = b . length ; m -- ; ) if ( e || a ( b [ m ] ) ) b . splice ( m , 1 ) , d = ! 0 ; a = d } else a = ! 1 ; c . hadInvalidClass = a || c . hadInvalidClass } } function f ( a ,
b ) { if ( ! a ) return ! 1 ; var c = ! 1 , d = ! 0 === a , e ; for ( e in b ) if ( d || a ( e ) ) delete b [ e ] , c = ! 0 ; return c } function h ( a , b , c ) { if ( a . disabled || a . customConfig && ! c || ! b ) return ! 1 ; a . _ . cachedChecks = { } ; return ! 0 } function k ( a , b ) { if ( ! a ) return ! 1 ; if ( ! 0 === a ) return a ; if ( "string" == typeof a ) return a = B ( a ) , "*" == a ? ! 0 : CKEDITOR . tools . convertArrayToObject ( a . split ( b ) ) ; if ( CKEDITOR . tools . isArray ( a ) ) return a . length ? CKEDITOR . tools . convertArrayToObject ( a ) : ! 1 ; var c = { } , d = 0 , e ; for ( e in a ) c [ e ] = a [ e ] , d ++ ; return d ? c : ! 1 } function g ( a , b ) { if ( a . nothingRequired ) return ! 0 ;
var c , d , e , f ; if ( e = a . requiredClasses ) for ( f = b . classes , c = 0 ; c < e . length ; ++ c ) if ( d = e [ c ] , "string" == typeof d ) { if ( - 1 == CKEDITOR . tools . indexOf ( f , d ) ) return ! 1 } else if ( ! CKEDITOR . tools . checkIfAnyArrayItemMatches ( f , d ) ) return ! 1 ; return l ( b . styles , a . requiredStyles ) && l ( b . attributes , a . requiredAttributes ) } function l ( a , b ) { if ( ! b ) return ! 0 ; for ( var c = 0 , d ; c < b . length ; ++ c ) if ( d = b [ c ] , "string" == typeof d ) { if ( ! ( d in a ) ) return ! 1 } else if ( ! CKEDITOR . tools . checkIfAnyObjectPropertyMatches ( a , d ) ) return ! 1 ; return ! 0 } function u ( a ) { if ( ! a ) return { } ;
a = a . split ( /\s*,\s*/ ) . sort ( ) ; for ( var b = { } ; a . length ; ) b [ a . shift ( ) ] = "cke-test" ; return b } function e ( a ) { var b , c , d , e , f = { } , m = 1 ; for ( a = B ( a ) ; b = a . match ( p ) ; ) ( c = b [ 2 ] ) ? ( d = x ( c , "styles" ) , e = x ( c , "attrs" ) , c = x ( c , "classes" ) ) : d = e = c = null , f [ "$" + m ++ ] = { elements : b [ 1 ] , classes : c , styles : d , attributes : e } , a = a . slice ( b [ 0 ] . length ) ; return f } function x ( a , b ) { var c = a . match ( N [ b ] ) ; return c ? B ( c [ 1 ] ) : null } function w ( a ) { var b = a . styleBackup = a . attributes . style , c = a . classBackup = a . attributes [ "class" ] ; a . styles || ( a . styles = CKEDITOR . tools . parseCssText ( b ||
"" , 1 ) ) ; a . classes || ( a . classes = c ? c . split ( /\s+/ ) : [ ] ) } function z ( a , b , e , f ) { var r = 0 , B ; f . toHtml && ( b . name = b . name . replace ( O , "$1" ) ) ; if ( f . doCallbacks && a . elementCallbacks ) { a : { B = a . elementCallbacks ; for ( var p = 0 , h = B . length , g ; p < h ; ++ p ) if ( g = B [ p ] ( b ) ) { B = g ; break a } B = void 0 } if ( B ) return B } if ( f . doTransform && ( B = a . _ . transformations [ b . name ] ) ) { w ( b ) ; for ( p = 0 ; p < B . length ; ++ p ) m ( a , b , B [ p ] ) ; t ( b ) } if ( f . doFilter ) { a : { p = b . name ; h = a . _ ; a = h . allowedRules . elements [ p ] ; B = h . allowedRules . generic ; p = h . disallowedRules . elements [ p ] ; h = h . disallowedRules . generic ;
g = f . skipRequired ; var k = { valid : ! 1 , validAttributes : { } , validClasses : { } , validStyles : { } , allAttributes : ! 1 , allClasses : ! 1 , allStyles : ! 1 , hadInvalidAttribute : ! 1 , hadInvalidClass : ! 1 , hadInvalidStyle : ! 1 } , v , D ; if ( a || B ) { w ( b ) ; if ( p ) for ( v = 0 , D = p . length ; v < D ; ++ v ) if ( ! 1 === c ( p [ v ] , b , k ) ) { a = null ; break a } if ( h ) for ( v = 0 , D = h . length ; v < D ; ++ v ) c ( h [ v ] , b , k ) ; if ( a ) for ( v = 0 , D = a . length ; v < D ; ++ v ) d ( a [ v ] , b , k , g ) ; if ( B ) for ( v = 0 , D = B . length ; v < D ; ++ v ) d ( B [ v ] , b , k , g ) ; a = k } else a = null } if ( ! a || ! a . valid ) return e . push ( b ) , 1 ; D = a . validAttributes ; var N = a . validStyles ;
B = a . validClasses ; var p = b . attributes , G = b . styles , h = b . classes ; g = b . classBackup ; var C = b . styleBackup , A , K , l = [ ] , k = [ ] , M = /^data-cke-/ ; v = ! 1 ; delete p . style ; delete p [ "class" ] ; delete b . classBackup ; delete b . styleBackup ; if ( ! a . allAttributes ) for ( A in p ) D [ A ] || ( M . test ( A ) ? A == ( K = A . replace ( /^data-cke-saved-/ , "" ) ) || D [ K ] || ( delete p [ A ] , v = ! 0 ) : ( delete p [ A ] , v = ! 0 ) ) ; if ( ! a . allStyles || a . hadInvalidStyle ) { for ( A in G ) a . allStyles || N [ A ] ? l . push ( A + ":" + G [ A ] ) : v = ! 0 ; l . length && ( p . style = l . sort ( ) . join ( "; " ) ) } else C && ( p . style = C ) ; if ( ! a . allClasses ||
a . hadInvalidClass ) { for ( A = 0 ; A < h . length ; ++ A ) ( a . allClasses || B [ h [ A ] ] ) && k . push ( h [ A ] ) ; k . length && ( p [ "class" ] = k . sort ( ) . join ( " " ) ) ; g && k . length < g . split ( /\s+/ ) . length && ( v = ! 0 ) } else g && ( p [ "class" ] = g ) ; v && ( r = 1 ) ; if ( ! f . skipFinalValidation && ! n ( b ) ) return e . push ( b ) , 1 } f . toHtml && ( b . name = b . name . replace ( q , "cke:$1" ) ) ; return r } function H ( a ) { var b = [ ] , c ; for ( c in a ) - 1 < c . indexOf ( "*" ) && b . push ( c . replace ( /\*/g , ".*" ) ) ; return b . length ? new RegExp ( "^(?:" + b . join ( "|" ) + ")$" ) : null } function t ( a ) { var b = a . attributes , c ; delete b . style ; delete b [ "class" ] ;
if ( c = CKEDITOR . tools . writeCssText ( a . styles , ! 0 ) ) b . style = c ; a . classes . length && ( b [ "class" ] = a . classes . sort ( ) . join ( " " ) ) } function n ( 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 L ( a ) { if ( ! a ) return ! 1 ; if ( ! 0 === a ) return ! 0 ; var b = H ( a ) ; return function ( c ) { return c in a || b && c . match ( b ) } } function y ( ) { return new CKEDITOR . htmlParser . element ( "br" ) } function F ( a ) { return a . type == CKEDITOR . NODE _ELEMENT && ( "br" ==
a . name || r . $block [ a . name ] ) } function I ( a , b , c ) { var d = a . name ; if ( r . $empty [ d ] || ! a . children . length ) "hr" == d && "br" == b ? a . replaceWith ( y ( ) ) : ( a . parent && c . push ( { check : "it" , el : a . parent } ) , a . remove ( ) ) ; else if ( r . $block [ d ] || "tr" == d ) if ( "br" == b ) a . previous && ! F ( a . previous ) && ( b = y ( ) , b . insertBefore ( a ) ) , a . next && ! F ( a . next ) && ( b = y ( ) , b . insertAfter ( a ) ) , a . replaceWithChildren ( ) ; else { var d = a . children , e ; b : { e = r [ b ] ; for ( var f = 0 , m = d . length , q ; f < m ; ++ f ) if ( q = d [ f ] , q . type == CKEDITOR . NODE _ELEMENT && ! e [ q . name ] ) { e = ! 1 ; break b } e = ! 0 } if ( e ) a . name = b , a . attributes =
{ } , c . push ( { check : "parent-down" , el : a } ) ; else { e = a . parent ; for ( var f = e . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT || "body" == e . name , p , B , m = d . length ; 0 < m ; ) q = d [ -- m ] , f && ( q . type == CKEDITOR . NODE _TEXT || q . type == CKEDITOR . NODE _ELEMENT && r . $inline [ q . name ] ) ? ( p || ( p = new CKEDITOR . htmlParser . element ( b ) , p . insertAfter ( a ) , c . push ( { check : "parent-down" , el : p } ) ) , p . add ( q , 0 ) ) : ( p = null , B = r [ e . name ] || r . span , q . insertAfter ( a ) , e . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT || q . type != CKEDITOR . NODE _ELEMENT || B [ q . name ] || c . push ( { check : "el-up" , el : q } ) ) ; a . remove ( ) } } else d in
{ style : 1 , script : 1 } ? a . remove ( ) : ( a . parent && c . push ( { check : "it" , el : a . parent } ) , a . replaceWithChildren ( ) ) } function m ( a , b , c ) { var d , e ; for ( d = 0 ; d < c . length ; ++ d ) if ( e = c [ d ] , ! ( e . check && ! a . check ( e . check , ! 1 ) || e . left && ! e . left ( b ) ) ) { e . right ( b , G ) ; break } } function C ( a , b ) { var c = b . getDefinition ( ) , d = c . attributes , e = c . styles , f , m , q , p ; if ( a . name != c . element ) return ! 1 ; for ( f in d ) if ( "class" == f ) for ( c = d [ f ] . split ( /\s+/ ) , q = a . classes . join ( "|" ) ; p = c . pop ( ) ; ) { if ( - 1 == q . indexOf ( p ) ) return ! 1 } else if ( a . attributes [ f ] != d [ f ] ) return ! 1 ; for ( m in e ) if ( a . styles [ m ] !=
e [ m ] ) return ! 1 ; return ! 0 } function K ( a , b ) { var c , d ; "string" == typeof a ? c = a : a instanceof CKEDITOR . style ? d = a : ( c = a [ 0 ] , d = a [ 1 ] ) ; return [ { element : c , left : d , right : function ( a , c ) { c . transform ( a , b ) } } ] } function A ( a ) { return function ( b ) { return C ( b , a ) } } function M ( a ) { return function ( b , c ) { c [ a ] ( b ) } } var r = CKEDITOR . dtd , D = CKEDITOR . tools . copy , B = CKEDITOR . tools . trim , v = [ "" , "p" , "br" , "div" ] ; CKEDITOR . FILTER _SKIP _TREE = 2 ; CKEDITOR . filter = function ( a , b ) { 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 c = this . editor = a instanceof CKEDITOR . editor ? a : null ; if ( c && ! b ) { this . customConfig = ! 0 ; var d = c . config . allowedContent ; ! 0 === d ? this . disabled = ! 0 : ( d || ( this . customConfig = ! 1 ) , this . allow ( d , "config" , 1 ) , this . allow ( c . config . extraAllowedContent , "extra" , 1 ) , this . allow ( v [ c . enterMode ] +
" " + v [ c . shiftEnterMode ] , "default" , 1 ) , this . disallow ( c . config . disallowedContent ) ) } else this . customConfig = ! 1 , this . allow ( b || a , "default" , 1 ) } ; CKEDITOR . filter . instances = { } ; CKEDITOR . filter . prototype = { allow : function ( b , c , d ) { if ( ! h ( this , b , d ) ) return ! 1 ; var f , m ; if ( "string" == typeof b ) b = e ( b ) ; else if ( b instanceof CKEDITOR . style ) { if ( b . toAllowedContentRules ) return this . allow ( b . toAllowedContentRules ( this . editor ) , c , d ) ; f = b . getDefinition ( ) ; b = { } ; d = f . attributes ; b [ f . element ] = f = { styles : f . styles , requiredStyles : f . styles && CKEDITOR . tools . object . keys ( f . styles ) } ;
d && ( d = D ( d ) , f . classes = d [ "class" ] ? d [ "class" ] . split ( /\s+/ ) : null , f . requiredClasses = f . classes , delete d [ "class" ] , f . attributes = d , f . requiredAttributes = d && CKEDITOR . tools . object . keys ( d ) ) } else if ( CKEDITOR . tools . isArray ( b ) ) { for ( f = 0 ; f < b . length ; ++ f ) m = this . allow ( b [ f ] , c , d ) ; return m } a ( this , b , c , this . allowedContent , this . _ . allowedRules ) ; return ! 0 } , applyTo : function ( a , b , c , d ) { if ( this . disabled ) return ! 1 ; var e = this , f = [ ] , m = this . editor && this . editor . config . protectedSource , q , p = ! 1 , B = { doFilter : ! c , doTransform : ! 0 , doCallbacks : ! 0 , toHtml : b } ;
a . forEach ( function ( a ) { if ( a . type == CKEDITOR . NODE _ELEMENT ) { if ( "off" == a . attributes [ "data-cke-filter" ] ) return ! 1 ; if ( ! b || "span" != a . name || ! ~ CKEDITOR . tools . object . keys ( a . attributes ) . join ( "|" ) . indexOf ( "data-cke-" ) ) if ( q = z ( e , a , f , B ) , q & 1 ) p = ! 0 ; else if ( q & 2 ) return ! 1 } else if ( a . type == CKEDITOR . NODE _COMMENT && a . value . match ( /^\{cke_protected\}(?!\{C\})/ ) ) { var c ; a : { var d = decodeURIComponent ( a . value . replace ( /^\{cke_protected\}/ , "" ) ) ; c = [ ] ; var h , r , n ; if ( m ) for ( r = 0 ; r < m . length ; ++ r ) if ( ( n = d . match ( m [ r ] ) ) && n [ 0 ] . length == d . length ) { c =
! 0 ; break a } d = CKEDITOR . htmlParser . fragment . fromHtml ( d ) ; 1 == d . children . length && ( h = d . children [ 0 ] ) . type == CKEDITOR . NODE _ELEMENT && z ( e , h , c , B ) ; c = ! c . length } c || f . push ( a ) } } , null , ! 0 ) ; f . length && ( p = ! 0 ) ; var h ; a = [ ] ; d = v [ d || ( this . editor ? this . editor . enterMode : CKEDITOR . ENTER _P ) ] ; for ( var g ; c = f . pop ( ) ; ) c . type == CKEDITOR . NODE _ELEMENT ? I ( c , d , a ) : c . remove ( ) ; for ( ; h = a . pop ( ) ; ) if ( c = h . el , c . parent ) switch ( g = r [ c . parent . name ] || r . span , h . check ) { case "it" : r . $removeEmpty [ c . name ] && ! c . children . length ? I ( c , d , a ) : n ( c ) || I ( c , d , a ) ; break ; case "el-up" : c . parent . type ==
CKEDITOR . NODE _DOCUMENT _FRAGMENT || g [ c . name ] || I ( c , d , a ) ; break ; case "parent-down" : c . parent . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT || g [ c . name ] || I ( c . parent , d , a ) } return p } , checkFeature : function ( a ) { if ( this . disabled || ! a ) return ! 0 ; a . toFeature && ( a = a . toFeature ( this . editor ) ) ; return ! a . requiredContent || this . check ( a . requiredContent ) } , disable : function ( ) { this . disabled = ! 0 } , disallow : function ( b ) { if ( ! h ( this , b , ! 0 ) ) return ! 1 ; "string" == typeof b && ( b = e ( b ) ) ; a ( this , b , null , this . disallowedContent , this . _ . disallowedRules ) ; return ! 0 } ,
addContentForms : function ( a ) { if ( ! this . disabled && a ) { var b , c , d = [ ] , e ; for ( b = 0 ; b < a . length && ! e ; ++ b ) c = a [ b ] , ( "string" == typeof c || c instanceof CKEDITOR . style ) && this . check ( c ) && ( e = c ) ; if ( e ) { for ( b = 0 ; b < a . length ; ++ b ) d . push ( K ( a [ b ] , e ) ) ; this . addTransformations ( d ) } } } , addElementCallback : function ( a ) { this . elementCallbacks || ( this . elementCallbacks = [ ] ) ; this . elementCallbacks . push ( a ) } , addFeature : function ( a ) { if ( this . disabled || ! a ) return ! 0 ; a . toFeature && ( a = a . toFeature ( this . editor ) ) ; this . allow ( a . allowedContent , a . name ) ; this . addTransformations ( a . contentTransformations ) ;
this . addContentForms ( a . contentForms ) ; return a . requiredContent && ( this . customConfig || this . disallowedContent . length ) ? this . check ( a . requiredContent ) : ! 0 } , addTransformations : function ( a ) { var b , c ; if ( ! this . disabled && a ) { var d = this . _ . transformations , e ; for ( e = 0 ; e < a . length ; ++ e ) { b = a [ e ] ; var f = void 0 , m = void 0 , q = void 0 , p = void 0 , B = void 0 , h = void 0 ; c = [ ] ; for ( m = 0 ; m < b . length ; ++ m ) q = b [ m ] , "string" == typeof q ? ( q = q . split ( /\s*:\s*/ ) , p = q [ 0 ] , B = null , h = q [ 1 ] ) : ( p = q . check , B = q . left , h = q . right ) , f || ( f = q , f = f . element ? f . element : p ? p . match ( /^([a-z0-9]+)/i ) [ 0 ] :
f . left . getDefinition ( ) . element ) , B instanceof CKEDITOR . style && ( B = A ( B ) ) , c . push ( { check : p == f ? null : p , left : B , right : "string" == typeof h ? M ( h ) : h } ) ; b = f ; d [ b ] || ( d [ b ] = [ ] ) ; d [ b ] . push ( c ) } } } , check : function ( a , b , c ) { if ( this . disabled ) return ! 0 ; if ( CKEDITOR . tools . isArray ( a ) ) { for ( var d = a . length ; d -- ; ) if ( this . check ( a [ d ] , b , c ) ) return ! 0 ; return ! 1 } var f , q ; if ( "string" == typeof a ) { q = a + "\x3c" + ( ! 1 === b ? "0" : "1" ) + ( c ? "1" : "0" ) + "\x3e" ; if ( q in this . _ . cachedChecks ) return this . _ . cachedChecks [ q ] ; f = e ( a ) . $1 ; var p = f . styles , d = f . classes ; f . name = f . elements ;
f . classes = d = d ? d . split ( /\s*,\s*/ ) : [ ] ; f . styles = u ( p ) ; f . attributes = u ( f . attributes ) ; f . children = [ ] ; d . length && ( f . attributes [ "class" ] = d . join ( " " ) ) ; p && ( f . attributes . style = CKEDITOR . tools . writeCssText ( f . styles ) ) } else f = a . getDefinition ( ) , p = f . styles , d = f . attributes || { } , p && ! CKEDITOR . tools . isEmpty ( p ) ? ( p = D ( p ) , d . style = CKEDITOR . tools . writeCssText ( p , ! 0 ) ) : p = { } , f = { name : f . element , attributes : d , classes : d [ "class" ] ? d [ "class" ] . split ( /\s+/ ) : [ ] , styles : p , children : [ ] } ; var p = CKEDITOR . tools . clone ( f ) , B = [ ] , h ; if ( ! 1 !== b && ( h = this . _ . transformations [ f . name ] ) ) { for ( d =
0 ; d < h . length ; ++ d ) m ( this , f , h [ d ] ) ; t ( f ) } z ( this , p , B , { doFilter : ! 0 , doTransform : ! 1 !== b , skipRequired : ! c , skipFinalValidation : ! c } ) ; 0 < B . length ? c = ! 1 : ( ( b = f . attributes [ "class" ] ) && ( f . attributes [ "class" ] = f . attributes [ "class" ] . split ( " " ) . sort ( ) . join ( " " ) ) , c = CKEDITOR . tools . objectCompare ( f . attributes , p . attributes , ! 0 ) , b && ( f . attributes [ "class" ] = b ) ) ; "string" == typeof a && ( this . _ . cachedChecks [ q ] = c ) ; return c } , getAllowedEnterMode : function ( ) { var a = [ "p" , "div" , "br" ] , b = { p : CKEDITOR . ENTER _P , div : CKEDITOR . ENTER _DIV , br : CKEDITOR . ENTER _BR } ;
return function ( c , d ) { var f = a . slice ( ) , e ; if ( this . check ( v [ c ] ) ) return c ; for ( d || ( f = f . reverse ( ) ) ; e = f . pop ( ) ; ) if ( this . check ( e ) ) return b [ e ] ; return CKEDITOR . ENTER _BR } } ( ) , clone : function ( ) { var a = new CKEDITOR . filter , b = CKEDITOR . tools . clone ; a . allowedContent = b ( this . allowedContent ) ; a . _ . allowedRules = b ( this . _ . allowedRules ) ; a . disallowedContent = b ( this . disallowedContent ) ; a . _ . disallowedRules = b ( this . _ . disallowedRules ) ; a . _ . transformations = b ( this . _ . transformations ) ; a . disabled = this . disabled ; a . editor = this . editor ; return a } , destroy : function ( ) { delete CKEDITOR . filter . instances [ this . id ] ;
delete this . _ ; delete this . allowedContent ; delete this . disallowedContent } } ; var S = { styles : 1 , attributes : 1 , classes : 1 } , R = { styles : "requiredStyles" , attributes : "requiredAttributes" , classes : "requiredClasses" } , p = /^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i , N = { styles : /{([^}]+)}/ , attrs : /\[([^\]]+)\]/ , classes : /\(([^\)]+)\)/ } , O = /^cke:(object|embed|param)$/ , q = /^(object|embed|param)$/ , G ; G = CKEDITOR . filter . transformationsTools = { sizeToStyle : function ( a ) { this . lengthToStyle ( a ,
( function ( ) { function a ( a , b , c , d , f ) { var e , n ; a = [ ] ; for ( e in b ) { n = b [ e ] ; n = "boolean" == typeof n ? { } : "function" == typeof n ? { match : n } : D ( n ) ; "$" != e . charAt ( 0 ) && ( n . elements = e ) ; c && ( n . featureName = c . toLowerCase ( ) ) ; var p = n ; p . elements = k ( p . elements , /\s+/ ) || null ; p . propertiesOnly = p . propertiesOnly || ! 0 === p . elements ; var m = /\s*,\s*/ , q = void 0 ; for ( q in T ) { p [ q ] = k ( p [ q ] , m ) || null ; var r = p , t = S [ q ] , h = k ( p [ S [ q ] ] , m ) , g = p [ q ] , x = [ ] , J = ! 0 , P = void 0 ; h ? J = ! 1 : h = { } ; for ( P in g ) "!" == P . charAt ( 0 ) && ( P = P . slice ( 1 ) , x . push ( P ) , h [ P ] = ! 0 , J = ! 1 ) ; for ( ; P = x . pop ( ) ; ) g [ P ] =
g [ "!" + P ] , delete g [ "!" + P ] ; r [ t ] = ( J ? ! 1 : h ) || null } p . match = p . match || null ; d . push ( n ) ; a . push ( n ) } b = f . elements ; f = f . generic ; var C ; c = 0 ; for ( d = a . length ; c < d ; ++ c ) { e = D ( a [ c ] ) ; n = ! 0 === e . classes || ! 0 === e . styles || ! 0 === e . attributes ; p = e ; q = t = m = void 0 ; for ( m in T ) p [ m ] = M ( p [ m ] ) ; r = ! 0 ; for ( q in S ) { m = S [ q ] ; t = p [ m ] ; h = [ ] ; g = void 0 ; for ( g in t ) - 1 < g . indexOf ( "*" ) ? h . push ( new RegExp ( "^" + g . replace ( /\*/g , ".*" ) + "$" ) ) : h . push ( g ) ; t = h ; t . length && ( p [ m ] = t , r = ! 1 ) } p . nothingRequired = r ; p . noProperties = ! ( p . attributes || p . classes || p . styles ) ; if ( ! 0 === e . elements ||
null === e . elements ) f [ n ? "unshift" : "push" ] ( e ) ; else for ( C in p = e . elements , delete e . elements , p ) if ( b [ C ] ) b [ C ] [ n ? "unshift" : "push" ] ( e ) ; else b [ C ] = [ e ] } } function d ( a , c , d , f ) { if ( ! a . match || a . match ( c ) ) if ( f || g ( a , c ) ) if ( a . propertiesOnly || ( d . valid = ! 0 ) , d . allAttributes || ( d . allAttributes = b ( a . attributes , c . attributes , d . validAttributes ) ) , d . allStyles || ( d . allStyles = b ( a . styles , c . styles , d . validStyles ) ) , ! d . allClasses ) { a = a . classes ; c = c . classes ; f = d . validClasses ; if ( a ) if ( ! 0 === a ) a = ! 0 ; else { for ( var e = 0 , n = c . length , p ; e < n ; ++ e ) p = c [ e ] , f [ p ] ||
( f [ p ] = a ( p ) ) ; a = ! 1 } else a = ! 1 ; d . allClasses = a } } function b ( a , b , c ) { if ( ! a ) return ! 1 ; if ( ! 0 === a ) return ! 0 ; for ( var d in b ) c [ d ] || ( c [ d ] = a ( d ) ) ; return ! 1 } function c ( a , b , c ) { if ( ! a . match || a . match ( b ) ) { if ( a . noProperties ) return ! 1 ; c . hadInvalidAttribute = f ( a . attributes , b . attributes ) || c . hadInvalidAttribute ; c . hadInvalidStyle = f ( a . styles , b . styles ) || c . hadInvalidStyle ; a = a . classes ; b = b . classes ; if ( a ) { for ( var d = ! 1 , e = ! 0 === a , n = b . length ; n -- ; ) if ( e || a ( b [ n ] ) ) b . splice ( n , 1 ) , d = ! 0 ; a = d } else a = ! 1 ; c . hadInvalidClass = a || c . hadInvalidClass } } function f ( a ,
b ) { if ( ! a ) return ! 1 ; var c = ! 1 , d = ! 0 === a , f ; for ( f in b ) if ( d || a ( f ) ) delete b [ f ] , c = ! 0 ; return c } function h ( a , b , c ) { if ( a . disabled || a . customConfig && ! c || ! b ) return ! 1 ; a . _ . cachedChecks = { } ; return ! 0 } function k ( a , b ) { if ( ! a ) return ! 1 ; if ( ! 0 === a ) return a ; if ( "string" == typeof a ) return a = r ( a ) , "*" == a ? ! 0 : CKEDITOR . tools . convertArrayToObject ( a . split ( b ) ) ; if ( CKEDITOR . tools . isArray ( a ) ) return a . length ? CKEDITOR . tools . convertArrayToObject ( a ) : ! 1 ; var c = { } , d = 0 , f ; for ( f in a ) c [ f ] = a [ f ] , d ++ ; return d ? c : ! 1 } function g ( a , b ) { if ( a . nothingRequired ) return ! 0 ;
var c , d , f , e ; if ( f = a . requiredClasses ) for ( e = b . classes , c = 0 ; c < f . length ; ++ c ) if ( d = f [ c ] , "string" == typeof d ) { if ( - 1 == CKEDITOR . tools . indexOf ( e , d ) ) return ! 1 } else if ( ! CKEDITOR . tools . checkIfAnyArrayItemMatches ( e , d ) ) return ! 1 ; return l ( b . styles , a . requiredStyles ) && l ( b . attributes , a . requiredAttributes ) } function l ( a , b ) { if ( ! b ) return ! 0 ; for ( var c = 0 , d ; c < b . length ; ++ c ) if ( d = b [ c ] , "string" == typeof d ) { if ( ! ( d in a ) ) return ! 1 } else if ( ! CKEDITOR . tools . checkIfAnyObjectPropertyMatches ( a , d ) ) return ! 1 ; return ! 0 } function v ( a ) { if ( ! a ) return { } ;
a = a . split ( /\s*,\s*/ ) . sort ( ) ; for ( var b = { } ; a . length ; ) b [ a . shift ( ) ] = "cke-test" ; return b } function e ( a ) { var b , c , d , f , e = { } , n = 1 ; for ( a = r ( a ) ; b = a . match ( t ) ; ) ( c = b [ 2 ] ) ? ( d = z ( c , "styles" ) , f = z ( c , "attrs" ) , c = z ( c , "classes" ) ) : d = f = c = null , e [ "$" + n ++ ] = { elements : b [ 1 ] , classes : c , styles : d , attributes : f } , a = a . slice ( b [ 0 ] . length ) ; return e } function z ( a , b ) { var c = a . match ( P [ b ] ) ; return c ? r ( c [ 1 ] ) : null } function w ( a ) { var b = a . styleBackup = a . attributes . style , c = a . classBackup = a . attributes [ "class" ] ; a . styles || ( a . styles = CKEDITOR . tools . parseCssText ( b ||
"" , 1 ) ) ; a . classes || ( a . classes = c ? c . split ( /\s+/ ) : [ ] ) } function A ( a , b , f , e ) { var q = 0 , t ; e . toHtml && ( b . name = b . name . replace ( I , "$1" ) ) ; if ( e . doCallbacks && a . elementCallbacks ) { a : { t = a . elementCallbacks ; for ( var r = 0 , h = t . length , g ; r < h ; ++ r ) if ( g = t [ r ] ( b ) ) { t = g ; break a } t = void 0 } if ( t ) return t } if ( e . doTransform && ( t = a . _ . transformations [ b . name ] ) ) { w ( b ) ; for ( r = 0 ; r < t . length ; ++ r ) n ( a , b , t [ r ] ) ; u ( b ) } if ( e . doFilter ) { a : { r = b . name ; h = a . _ ; a = h . allowedRules . elements [ r ] ; t = h . allowedRules . generic ; r = h . disallowedRules . elements [ r ] ; h = h . disallowedRules . generic ;
g = e . skipRequired ; var k = { valid : ! 1 , validAttributes : { } , validClasses : { } , validStyles : { } , allAttributes : ! 1 , allClasses : ! 1 , allStyles : ! 1 , hadInvalidAttribute : ! 1 , hadInvalidClass : ! 1 , hadInvalidStyle : ! 1 } , x , D ; if ( a || t ) { w ( b ) ; if ( r ) for ( x = 0 , D = r . length ; x < D ; ++ x ) if ( ! 1 === c ( r [ x ] , b , k ) ) { a = null ; break a } if ( h ) for ( x = 0 , D = h . length ; x < D ; ++ x ) c ( h [ x ] , b , k ) ; if ( a ) for ( x = 0 , D = a . length ; x < D ; ++ x ) d ( a [ x ] , b , k , g ) ; if ( t ) for ( x = 0 , D = t . length ; x < D ; ++ x ) d ( t [ x ] , b , k , g ) ; a = k } else a = null } if ( ! a || ! a . valid ) return f . push ( b ) , 1 ; D = a . validAttributes ; var P = a . validStyles ;
t = a . validClasses ; var r = b . attributes , J = b . styles , h = b . classes ; g = b . classBackup ; var C = b . styleBackup , B , L , l = [ ] , k = [ ] , N = /^data-cke-/ ; x = ! 1 ; delete r . style ; delete r [ "class" ] ; delete b . classBackup ; delete b . styleBackup ; if ( ! a . allAttributes ) for ( B in r ) D [ B ] || ( N . test ( B ) ? B == ( L = B . replace ( /^data-cke-saved-/ , "" ) ) || D [ L ] || ( delete r [ B ] , x = ! 0 ) : ( delete r [ B ] , x = ! 0 ) ) ; if ( ! a . allStyles || a . hadInvalidStyle ) { for ( B in J ) a . allStyles || P [ B ] ? l . push ( B + ":" + J [ B ] ) : x = ! 0 ; l . length && ( r . style = l . sort ( ) . join ( "; " ) ) } else C && ( r . style = C ) ; if ( ! a . allClasses ||
a . hadInvalidClass ) { for ( B = 0 ; B < h . length ; ++ B ) ( a . allClasses || t [ h [ B ] ] ) && k . push ( h [ B ] ) ; k . length && ( r [ "class" ] = k . sort ( ) . join ( " " ) ) ; g && k . length < g . split ( /\s+/ ) . length && ( x = ! 0 ) } else g && ( r [ "class" ] = g ) ; x && ( q = 1 ) ; if ( ! e . skipFinalValidation && ! m ( b ) ) return f . push ( b ) , 1 } e . toHtml && ( b . name = b . name . replace ( p , "cke:$1" ) ) ; return q } function F ( a ) { var b = [ ] , c ; for ( c in a ) - 1 < c . indexOf ( "*" ) && b . push ( c . replace ( /\*/g , ".*" ) ) ; return b . length ? new RegExp ( "^(?:" + b . join ( "|" ) + ")$" ) : null } function u ( a ) { var b = a . attributes , c ; delete b . style ; delete b [ "class" ] ;
if ( c = CKEDITOR . tools . writeCssText ( a . styles , ! 0 ) ) 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 || a . attributes . id ) ) return ! 1 ; break ; case "img" : if ( ! a . attributes . src ) return ! 1 } return ! 0 } function M ( a ) { if ( ! a ) return ! 1 ; if ( ! 0 === a ) return ! 0 ; var b = F ( a ) ; return function ( c ) { return c in a || b && c . match ( b ) } } function y ( ) { return new CKEDITOR . htmlParser . element ( "br" ) } function G ( a ) { return a . type == CKEDITOR . NODE _ELEMENT && ( "br" ==
a . name || q . $block [ a . name ] ) } function H ( a , b , c ) { var d = a . name ; if ( q . $empty [ d ] || ! a . children . length ) "hr" == d && "br" == b ? a . replaceWith ( y ( ) ) : ( a . parent && c . push ( { check : "it" , el : a . parent } ) , a . remove ( ) ) ; else if ( q . $block [ d ] || "tr" == d ) if ( "br" == b ) a . previous && ! G ( a . previous ) && ( b = y ( ) , b . insertBefore ( a ) ) , a . next && ! G ( a . next ) && ( b = y ( ) , b . insertAfter ( a ) ) , a . replaceWithChildren ( ) ; else { var d = a . children , f ; b : { f = q [ b ] ; for ( var e = 0 , n = d . length , p ; e < n ; ++ e ) if ( p = d [ e ] , p . type == CKEDITOR . NODE _ELEMENT && ! f [ p . name ] ) { f = ! 1 ; break b } f = ! 0 } if ( f ) a . name = b , a . attributes =
{ } , c . push ( { check : "parent-down" , el : a } ) ; else { f = a . parent ; for ( var e = f . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT || "body" == f . name , r , m , n = d . length ; 0 < n ; ) p = d [ -- n ] , e && ( p . type == CKEDITOR . NODE _TEXT || p . type == CKEDITOR . NODE _ELEMENT && q . $inline [ p . name ] ) ? ( r || ( r = new CKEDITOR . htmlParser . element ( b ) , r . insertAfter ( a ) , c . push ( { check : "parent-down" , el : r } ) ) , r . add ( p , 0 ) ) : ( r = null , m = q [ f . name ] || q . span , p . insertAfter ( a ) , f . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT || p . type != CKEDITOR . NODE _ELEMENT || m [ p . name ] || c . push ( { check : "el-up" , el : p } ) ) ; a . remove ( ) } } else d in
{ style : 1 , script : 1 } ? a . remove ( ) : ( a . parent && c . push ( { check : "it" , el : a . parent } ) , a . replaceWithChildren ( ) ) } function n ( a , b , c ) { var d , f ; for ( d = 0 ; d < c . length ; ++ d ) if ( f = c [ d ] , ! ( f . check && ! a . check ( f . check , ! 1 ) || f . left && ! f . left ( b ) ) ) { f . right ( b , J ) ; break } } function C ( a , b ) { var c = b . getDefinition ( ) , d = c . attributes , f = c . styles , e , n , p , r ; if ( a . name != c . element ) return ! 1 ; for ( e in d ) if ( "class" == e ) for ( c = d [ e ] . split ( /\s+/ ) , p = a . classes . join ( "|" ) ; r = c . pop ( ) ; ) { if ( - 1 == p . indexOf ( r ) ) return ! 1 } else if ( a . attributes [ e ] != d [ e ] ) return ! 1 ; for ( n in f ) if ( a . styles [ n ] !=
f [ n ] ) return ! 1 ; return ! 0 } function L ( a , b ) { var c , d ; "string" == typeof a ? c = a : a instanceof CKEDITOR . style ? d = a : ( c = a [ 0 ] , d = a [ 1 ] ) ; return [ { element : c , left : d , right : function ( a , c ) { c . transform ( a , b ) } } ] } function B ( a ) { return function ( b ) { return C ( b , a ) } } function N ( a ) { return function ( b , c ) { c [ a ] ( b ) } } var q = CKEDITOR . dtd , D = CKEDITOR . tools . copy , r = CKEDITOR . tools . trim , x = [ "" , "p" , "br" , "div" ] ; CKEDITOR . FILTER _SKIP _TREE = 2 ; CKEDITOR . filter = function ( a , b ) { 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 c = this . editor = a instanceof CKEDITOR . editor ? a : null ; if ( c && ! b ) { this . customConfig = ! 0 ; var d = c . config . allowedContent ; ! 0 === d ? this . disabled = ! 0 : ( d || ( this . customConfig = ! 1 ) , this . allow ( d , "config" , 1 ) , this . allow ( c . config . extraAllowedContent , "extra" , 1 ) , this . allow ( x [ c . enterMode ] +
" " + x [ c . shiftEnterMode ] , "default" , 1 ) , this . disallow ( c . config . disallowedContent ) ) } else this . customConfig = ! 1 , this . allow ( b || a , "default" , 1 ) } ; CKEDITOR . filter . instances = { } ; CKEDITOR . filter . prototype = { allow : function ( b , c , d ) { if ( ! h ( this , b , d ) ) return ! 1 ; var f , n ; if ( "string" == typeof b ) b = e ( b ) ; else if ( b instanceof CKEDITOR . style ) { if ( b . toAllowedContentRules ) return this . allow ( b . toAllowedContentRules ( this . editor ) , c , d ) ; f = b . getDefinition ( ) ; b = { } ; d = f . attributes ; b [ f . element ] = f = { styles : f . styles , requiredStyles : f . styles && CKEDITOR . tools . object . keys ( f . styles ) } ;
d && ( d = D ( d ) , f . classes = d [ "class" ] ? d [ "class" ] . split ( /\s+/ ) : null , f . requiredClasses = f . classes , delete d [ "class" ] , f . attributes = d , f . requiredAttributes = d && CKEDITOR . tools . object . keys ( d ) ) } else if ( CKEDITOR . tools . isArray ( b ) ) { for ( f = 0 ; f < b . length ; ++ f ) n = this . allow ( b [ f ] , c , d ) ; return n } a ( this , b , c , this . allowedContent , this . _ . allowedRules ) ; return ! 0 } , applyTo : function ( a , b , c , d ) { if ( this . disabled ) return ! 1 ; var f = this , e = [ ] , n = this . editor && this . editor . config . protectedSource , p , r = ! 1 , t = { doFilter : ! c , doTransform : ! 0 , doCallbacks : ! 0 , toHtml : b } ;
a . forEach ( function ( a ) { if ( a . type == CKEDITOR . NODE _ELEMENT ) { if ( "off" == a . attributes [ "data-cke-filter" ] ) return ! 1 ; if ( ! b || "span" != a . name || ! ~ CKEDITOR . tools . object . keys ( a . attributes ) . join ( "|" ) . indexOf ( "data-cke-" ) ) if ( p = A ( f , a , e , t ) , p & 1 ) r = ! 0 ; else if ( p & 2 ) return ! 1 } else if ( a . type == CKEDITOR . NODE _COMMENT && a . value . match ( /^\{cke_protected\}(?!\{C\})/ ) ) { var c ; a : { var d = decodeURIComponent ( a . value . replace ( /^\{cke_protected\}/ , "" ) ) ; c = [ ] ; var m , h , q ; if ( n ) for ( h = 0 ; h < n . length ; ++ h ) if ( ( q = d . match ( n [ h ] ) ) && q [ 0 ] . length == d . length ) { c =
! 0 ; break a } d = CKEDITOR . htmlParser . fragment . fromHtml ( d ) ; 1 == d . children . length && ( m = d . children [ 0 ] ) . type == CKEDITOR . NODE _ELEMENT && A ( f , m , c , t ) ; c = ! c . length } c || e . push ( a ) } } , null , ! 0 ) ; e . length && ( r = ! 0 ) ; var h ; a = [ ] ; d = x [ d || ( this . editor ? this . editor . enterMode : CKEDITOR . ENTER _P ) ] ; for ( var g ; c = e . pop ( ) ; ) c . type == CKEDITOR . NODE _ELEMENT ? H ( c , d , a ) : c . remove ( ) ; for ( ; h = a . pop ( ) ; ) if ( c = h . el , c . parent ) switch ( g = q [ c . parent . name ] || q . span , h . check ) { case "it" : q . $removeEmpty [ c . name ] && ! c . children . length ? H ( c , d , a ) : m ( c ) || H ( c , d , a ) ; break ; case "el-up" : c . parent . type ==
CKEDITOR . NODE _DOCUMENT _FRAGMENT || g [ c . name ] || H ( c , d , a ) ; break ; case "parent-down" : c . parent . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT || g [ c . name ] || H ( c . parent , d , a ) } return r } , checkFeature : function ( a ) { if ( this . disabled || ! a ) return ! 0 ; a . toFeature && ( a = a . toFeature ( this . editor ) ) ; return ! a . requiredContent || this . check ( a . requiredContent ) } , disable : function ( ) { this . disabled = ! 0 } , disallow : function ( b ) { if ( ! h ( this , b , ! 0 ) ) return ! 1 ; "string" == typeof b && ( b = e ( b ) ) ; a ( this , b , null , this . disallowedContent , this . _ . disallowedRules ) ; return ! 0 } ,
addContentForms : function ( a ) { if ( ! this . disabled && a ) { var b , c , d = [ ] , f ; for ( b = 0 ; b < a . length && ! f ; ++ b ) c = a [ b ] , ( "string" == typeof c || c instanceof CKEDITOR . style ) && this . check ( c ) && ( f = c ) ; if ( f ) { for ( b = 0 ; b < a . length ; ++ b ) d . push ( L ( a [ b ] , f ) ) ; this . addTransformations ( d ) } } } , addElementCallback : function ( a ) { this . elementCallbacks || ( this . elementCallbacks = [ ] ) ; this . elementCallbacks . push ( a ) } , addFeature : function ( a ) { if ( this . disabled || ! a ) return ! 0 ; a . toFeature && ( a = a . toFeature ( this . editor ) ) ; this . allow ( a . allowedContent , a . name ) ; this . addTransformations ( a . contentTransformations ) ;
this . addContentForms ( a . contentForms ) ; return a . requiredContent && ( this . customConfig || this . disallowedContent . length ) ? this . check ( a . requiredContent ) : ! 0 } , addTransformations : function ( a ) { var b , c ; if ( ! this . disabled && a ) { var d = this . _ . transformations , f ; for ( f = 0 ; f < a . length ; ++ f ) { b = a [ f ] ; var e = void 0 , n = void 0 , p = void 0 , r = void 0 , m = void 0 , h = void 0 ; c = [ ] ; for ( n = 0 ; n < b . length ; ++ n ) p = b [ n ] , "string" == typeof p ? ( p = p . split ( /\s*:\s*/ ) , r = p [ 0 ] , m = null , h = p [ 1 ] ) : ( r = p . check , m = p . left , h = p . right ) , e || ( e = p , e = e . element ? e . element : r ? r . match ( /^([a-z0-9]+)/i ) [ 0 ] :
e . left . getDefinition ( ) . element ) , m instanceof CKEDITOR . style && ( m = B ( m ) ) , c . push ( { check : r == e ? null : r , left : m , right : "string" == typeof h ? N ( h ) : h } ) ; b = e ; d [ b ] || ( d [ b ] = [ ] ) ; d [ b ] . push ( c ) } } } , check : function ( a , b , c ) { if ( this . disabled ) return ! 0 ; if ( CKEDITOR . tools . isArray ( a ) ) { for ( var d = a . length ; d -- ; ) if ( this . check ( a [ d ] , b , c ) ) return ! 0 ; return ! 1 } var f , p ; if ( "string" == typeof a ) { p = a + "\x3c" + ( ! 1 === b ? "0" : "1" ) + ( c ? "1" : "0" ) + "\x3e" ; if ( p in this . _ . cachedChecks ) return this . _ . cachedChecks [ p ] ; f = e ( a ) . $1 ; var r = f . styles , d = f . classes ; f . name = f . elements ;
f . classes = d = d ? d . split ( /\s*,\s*/ ) : [ ] ; f . styles = v ( r ) ; f . attributes = v ( f . attributes ) ; f . children = [ ] ; d . length && ( f . attributes [ "class" ] = d . join ( " " ) ) ; r && ( f . attributes . style = CKEDITOR . tools . writeCssText ( f . styles ) ) } else f = a . getDefinition ( ) , r = f . styles , d = f . attributes || { } , r && ! CKEDITOR . tools . isEmpty ( r ) ? ( r = D ( r ) , d . style = CKEDITOR . tools . writeCssText ( r , ! 0 ) ) : r = { } , f = { name : f . element , attributes : d , classes : d [ "class" ] ? d [ "class" ] . split ( /\s+/ ) : [ ] , styles : r , children : [ ] } ; var r = CKEDITOR . tools . clone ( f ) , m = [ ] , h ; if ( ! 1 !== b && ( h = this . _ . transformations [ f . name ] ) ) { for ( d =
0 ; d < h . length ; ++ d ) n ( this , f , h [ d ] ) ; u ( f ) } A ( this , r , m , { doFilter : ! 0 , doTransform : ! 1 !== b , skipRequired : ! c , skipFinalValidation : ! c } ) ; 0 < m . length ? c = ! 1 : ( ( b = f . attributes [ "class" ] ) && ( f . attributes [ "class" ] = f . attributes [ "class" ] . split ( " " ) . sort ( ) . join ( " " ) ) , c = CKEDITOR . tools . objectCompare ( f . attributes , r . attributes , ! 0 ) , b && ( f . attributes [ "class" ] = b ) ) ; "string" == typeof a && ( this . _ . cachedChecks [ p ] = c ) ; return c } , getAllowedEnterMode : function ( ) { var a = [ "p" , "div" , "br" ] , b = { p : CKEDITOR . ENTER _P , div : CKEDITOR . ENTER _DIV , br : CKEDITOR . ENTER _BR } ;
return function ( c , d ) { var f = a . slice ( ) , e ; if ( this . check ( x [ c ] ) ) return c ; for ( d || ( f = f . reverse ( ) ) ; e = f . pop ( ) ; ) if ( this . check ( e ) ) return b [ e ] ; return CKEDITOR . ENTER _BR } } ( ) , clone : function ( ) { var a = new CKEDITOR . filter , b = CKEDITOR . tools . clone ; a . allowedContent = b ( this . allowedContent ) ; a . _ . allowedRules = b ( this . _ . allowedRules ) ; a . disallowedContent = b ( this . disallowedContent ) ; a . _ . disallowedRules = b ( this . _ . disallowedRules ) ; a . _ . transformations = b ( this . _ . transformations ) ; a . disabled = this . disabled ; a . editor = this . editor ; return a } , destroy : function ( ) { delete CKEDITOR . filter . instances [ this . id ] ;
delete this . _ ; delete this . allowedContent ; delete this . disallowedContent } } ; var T = { styles : 1 , attributes : 1 , classes : 1 } , S = { styles : "requiredStyles" , attributes : "requiredAttributes" , classes : "requiredClasses" } , t = /^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i , P = { styles : /{([^}]+)}/ , attrs : /\[([^\]]+)\]/ , classes : /\(([^\)]+)\)/ } , I = /^cke:(object|embed|param)$/ , p = /^(object|embed|param)$/ , J ; J = 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 ] ; d && ( /^\d+$/ . test ( 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 ] , f = d && d . match ( /^(\d+)(?:\.\d*)?px$/ ) ; f ? a . attributes [ c ] = f [ 1 ] : "cke-test" == d && ( a . attributes [ c ] = "cke-test" ) } delete a . styles [ b ] } , alignmentToStyle : function ( a ) { if ( ! ( "float" in
a . styles ) ) { var b = a . attributes . align ; if ( "left" == b || "right" == b ) a . styles [ "float" ] = b } delete a . attributes . align } , alignmentToAttribute : function ( a ) { if ( ! ( "align" in a . attributes ) ) { var b = a . styles [ "float" ] ; if ( "left" == b || "right" == b ) a . attributes . align = b } delete a . styles [ "float" ] } , splitBorderShorthand : function ( a ) { if ( a . styles . border ) { var b = CKEDITOR . tools . style . parse . border ( a . styles . border ) ; b . color && ( a . styles [ "border-color" ] = b . color ) ; b . style && ( a . styles [ "border-style" ] = b . style ) ; b . width && ( a . styles [ "border-width" ] = b . width ) ;
delete a . styles . border } } , listTypeToStyle : function ( a ) { if ( a . attributes . type ) switch ( a . attributes . type ) { case "a" : a . styles [ "list-style-type" ] = "lower-alpha" ; break ; case "A" : a . styles [ "list-style-type" ] = "upper-alpha" ; break ; case "i" : a . styles [ "list-style-type" ] = "lower-roman" ; break ; case "I" : a . styles [ "list-style-type" ] = "upper-roman" ; break ; case "1" : a . styles [ "list-style-type" ] = "decimal" ; break ; default : a . styles [ "list-style-type" ] = a . attributes . type } } , splitMarginShorthand : function ( a ) { function b ( d ) { a . styles [ "margin-top" ] =
c [ d [ 0 ] ] ; a . styles [ "margin-right" ] = c [ d [ 1 ] ] ; a . styles [ "margin-bottom" ] = c [ d [ 2 ] ] ; a . styles [ "margin-left" ] = c [ d [ 3 ] ] } if ( a . styles . margin ) { var c = a . styles . margin . match ( /(\-?[\.\d]+\w+ )/g ) || [ "0px" ] ; switch ( c . length ) { case 1 : b ( [ 0 , 0 , 0 , 0 ] ) ; break ; case 2 : b ( [ 0 , 1 , 0 , 1 ] ) ; break ; case 3 : b ( [ 0 , 1 , 2 , 1 ] ) ; break ; case 4 : b ( [ 0 , 1 , 2 , 3 ] ) } delete a . styles . margin } } , matchesStyle : C , transform : function ( a , b ) { if ( "string" == typeof b ) a . name = b ; else { var c = b . getDefinition ( ) , d = c . styles , f = c . attributes , e , m , q , p ; a . name = c . element ; for ( e in f ) if ( "class" == e ) for ( c =
a . classes . join ( "|" ) , q = f [ e ] . split ( /\s+/ ) ; p = q . pop ( ) ; ) - 1 == c . indexOf ( p ) && a . classes . push ( p ) ; else a . attributes [ e ] = f [ e ] ; for ( m in d ) a . styles [ m ] = d [ m ] } } } } ) ( ) ;
c [ d [ 0 ] ] ; a . styles [ "margin-right" ] = c [ d [ 1 ] ] ; a . styles [ "margin-bottom" ] = c [ d [ 2 ] ] ; a . styles [ "margin-left" ] = c [ d [ 3 ] ] } if ( a . styles . margin ) { var c = a . styles . margin . match ( /(auto|0|(?:\-?[\.\d]+(?:\w+|%)) )/g ) || [ "0px" ] ; switch ( c . length ) { case 1 : b ( [ 0 , 0 , 0 , 0 ] ) ; break ; case 2 : b ( [ 0 , 1 , 0 , 1 ] ) ; break ; case 3 : b ( [ 0 , 1 , 2 , 1 ] ) ; break ; case 4 : b ( [ 0 , 1 , 2 , 3 ] ) } delete a . styles . margin } } , matchesStyle : C , transform : function ( a , b ) { if ( "string" == typeof b ) a . name = b ; else { var c = b . getDefinition ( ) , d = c . styles , f = c . attributes , e , n , p , r ; a . name = c . element ; for ( e in f ) if ( "class" ==
e ) for ( c = a . classes . join ( "|" ) , p = f [ e ] . split ( /\s+/ ) ; r = p . pop ( ) ; ) - 1 == c . indexOf ( r ) && a . classes . push ( r ) ; else a . attributes [ e ] = f [ e ] ; for ( n in d ) a . styles [ n ] = d [ n ] } } } } ) ( ) ;
( function ( ) { CKEDITOR . focusManager = function ( a ) { if ( a . focusManager ) return a . focusManager ; this . hasFocus = ! 1 ; this . currentActive = null ; this . _ = { editor : a } ; return this } ; CKEDITOR . focusManager . _ = { blurDelay : 200 } ; CKEDITOR . focusManager . prototype = { focus : function ( a ) { this . _ . timer && clearTimeout ( this . _ . timer ) ; a && ( this . currentActive = a ) ; this . hasFocus || this . _ . locked || ( ( a = CKEDITOR . currentInstance ) && a . focusManager . blur ( 1 ) , this . hasFocus = ! 0 , ( a = this . _ . editor . container ) && a . addClass ( "cke_focus" ) , this . _ . editor . fire ( "focus" ) ) } , lock : function ( ) { this . _ . locked =
1 } , unlock : function ( ) { delete this . _ . locked } , blur : function ( a ) { function d ( ) { if ( this . hasFocus ) { this . hasFocus = ! 1 ; var a = this . _ . editor . container ; a && a . removeClass ( "cke_focus" ) ; this . _ . editor . fire ( "blur" ) } } if ( ! this . _ . locked ) { this . _ . timer && clearTimeout ( this . _ . timer ) ; var b = CKEDITOR . focusManager . _ . blurDelay ; a || ! b ? d . call ( this ) : this . _ . timer = CKEDITOR . tools . setTimeout ( function ( ) { delete this . _ . timer ; d . call ( this ) } , b , this ) } } , add : function ( a , d ) { var b = a . getCustomData ( "focusmanager" ) ; if ( ! b || b != this ) { b && b . remove ( a ) ; var b =
"focus" , c = "blur" ; d && ( CKEDITOR . env . ie ? ( b = "focusin" , c = "focusout" ) : CKEDITOR . event . useCapture = 1 ) ; var f = { blur : function ( ) { a . equals ( this . currentActive ) && this . blur ( ) } , focus : function ( ) { this . focus ( a ) } } ; a . on ( b , f . focus , this ) ; a . on ( c , f . blur , this ) ; d && ( CKEDITOR . event . useCapture = 0 ) ; a . setCustomData ( "focusmanager" , this ) ; a . setCustomData ( "focusmanager_handlers" , f ) } } , remove : function ( a ) { a . removeCustomData ( "focusmanager" ) ; var d = a . removeCustomData ( "focusmanager_handlers" ) ; a . removeListener ( "blur" , d . blur ) ; a . removeListener ( "focus" ,
@@ -262,44 +263,44 @@ d.focus)}}})();CKEDITOR.keystrokeHandler=function(a){if(a.keystrokeHandler)retur
( function ( ) { var a , d = function ( b ) { b = b . data ; var d = b . getKeystroke ( ) , h = this . keystrokes [ d ] , k = this . _ . editor ; a = ! 1 === k . fire ( "key" , { keyCode : d , domEvent : b } ) ; a || ( h && ( a = ! 1 !== k . execCommand ( h , { from : "keystrokeHandler" } ) ) , a || ( a = ! ! this . blockedKeystrokes [ d ] ) ) ; a && b . preventDefault ( ! 0 ) ; return ! a } , b = function ( b ) { a && ( a = ! 1 , b . data . preventDefault ( ! 0 ) ) } ; CKEDITOR . keystrokeHandler . prototype = { attach : function ( a ) { a . on ( "keydown" , d , this ) ; if ( CKEDITOR . env . gecko && CKEDITOR . env . mac ) a . on ( "keypress" , b , this ) } } } ) ( ) ;
( function ( ) { CKEDITOR . lang = { languages : { af : 1 , ar : 1 , az : 1 , bg : 1 , bn : 1 , bs : 1 , ca : 1 , cs : 1 , cy : 1 , da : 1 , de : 1 , "de-ch" : 1 , el : 1 , "en-au" : 1 , "en-ca" : 1 , "en-gb" : 1 , en : 1 , eo : 1 , es : 1 , "es-mx" : 1 , et : 1 , eu : 1 , fa : 1 , fi : 1 , fo : 1 , "fr-ca" : 1 , fr : 1 , gl : 1 , gu : 1 , he : 1 , hi : 1 , hr : 1 , hu : 1 , id : 1 , is : 1 , it : 1 , ja : 1 , ka : 1 , km : 1 , ko : 1 , ku : 1 , lt : 1 , lv : 1 , mk : 1 , mn : 1 , ms : 1 , nb : 1 , nl : 1 , no : 1 , oc : 1 , pl : 1 , "pt-br" : 1 , pt : 1 , ro : 1 , ru : 1 , si : 1 , sk : 1 , sl : 1 , sq : 1 , "sr-latn" : 1 , sr : 1 , sv : 1 , th : 1 , tr : 1 , tt : 1 , ug : 1 , uk : 1 , vi : 1 , "zh-cn" : 1 , zh : 1 } , rtl : { ar : 1 , fa : 1 , he : 1 , ku : 1 , ug : 1 } , load : function ( a , d , b ) { a && CKEDITOR . lang . languages [ a ] ||
( a = this . detect ( d , a ) ) ; var c = this ; d = function ( ) { c [ a ] . dir = c . rtl [ a ] ? "rtl" : "ltr" ; b ( a , c [ a ] ) } ; this [ a ] ? d ( ) : CKEDITOR . scriptLoader . load ( CKEDITOR . getUrl ( "lang/" + a + ".js" ) , d , this ) } , detect : function ( a , d ) { var b = this . languages ; d = d || navigator . userLanguage || navigator . language || a ; var c = d . toLowerCase ( ) . match ( /([a-z]+)(?:-([a-z]+))?/ ) , f = c [ 1 ] , c = c [ 2 ] ; b [ f + "-" + c ] ? f = f + "-" + c : b [ f ] || ( f = null ) ; CKEDITOR . lang . detect = f ? function ( ) { return f } : function ( a ) { return a } ; return f || a } } } ) ( ) ;
CKEDITOR . scriptLoader = function ( ) { var a = { } , d = { } ; return { load : function ( b , c , f , h ) { var k = "string" == typeof b ; k && ( b = [ b ] ) ; f || ( f = CKEDITOR ) ; var g = b . length , l = [ ] , u = [ ] , e = function ( a ) { c && ( k ? c . call ( f , a ) : c . call ( f , l , u ) ) } ; if ( 0 === g ) e ( ! 0 ) ; else { var x = function ( a , b ) { ( b ? l : u ) . push ( a ) ; 0 >= -- g && ( h && CKEDITOR . document . getDocumentElement ( ) . removeStyle ( "cursor" ) , e ( b ) ) } , w = function ( b , c ) { a [ b ] = 1 ; var f = d [ b ] ; delete d [ b ] ; for ( var e = 0 ; e < f . length ; e ++ ) f [ e ] ( b , c ) } , z = function ( b ) { if ( a [ b ] ) x ( b , ! 0 ) ; else { var f = d [ b ] || ( d [ b ] = [ ] ) ; f . push ( x ) ; if ( ! ( 1 < f . length ) ) { var e =
new CKEDITOR . dom . element ( "script" ) ; e . setAttributes ( { type : "text/javascript" , src : b } ) ; c && ( CKEDITOR . env . ie && ( 8 >= CKEDITOR . env . version || CKEDITOR . env . ie9Compat ) ? e . $ . onreadystatechange = function ( ) { if ( "loaded" == e . $ . readyState || "complete" == e . $ . readyState ) e . $ . onreadystatechange = null , w ( b , ! 0 ) } : ( e . $ . onload = function ( ) { setTimeout ( function ( ) { e . $ . onload = null ; e . $ . onerror = null ; w ( b , ! 0 ) } , 0 ) } , e . $ . onerror = function ( ) { e . $ . onload = null ; e . $ . onerror = null ; w ( b , ! 1 ) } ) ) ; e . appendTo ( CKEDITOR . document . getHead ( ) ) } } } ; h && CKEDITOR . document . getDocumentElement ( ) . setStyle ( "cursor" ,
"wait" ) ; for ( var H = 0 ; H < g ; H ++ ) z ( b [ H ] ) } } , queue : function ( ) { function a ( ) { var b ; ( b = c [ 0 ] ) && this . load ( b . scriptUrl , b . callback , CKEDITOR , 0 ) } var c = [ ] ; return function ( d , h ) { var k = this ; c . push ( { scriptUrl : d , callback : function ( ) { h && h . apply ( this , arguments ) ; c . shift ( ) ; a . call ( k ) } } ) ; 1 == c . length && a . call ( this ) } } ( ) } } ( ) ; CKEDITOR . resourceManager = function ( a , d ) { this . basePath = a ; this . fileName = d ; this . registered = { } ; this . loaded = { } ; this . externals = { } ; this . _ = { waitingList : { } } } ;
CKEDITOR . scriptLoader = function ( ) { var a = { } , d = { } ; return { load : function ( b , c , f , h ) { var k = "string" == typeof b ; k && ( b = [ b ] ) ; f || ( f = CKEDITOR ) ; var g = b . length , l = g , v = [ ] , e = [ ] , z = function ( a ) { c && ( k ? c . call ( f , a ) : c . call ( f , v , e ) ) } ; if ( 0 === l ) z ( ! 0 ) ; else { var w = function ( a , b ) { ( b ? v : e ) . push ( a ) ; 0 >= -- l && ( h && CKEDITOR . document . getDocumentElement ( ) . removeStyle ( "cursor" ) , z ( b ) ) } , A = function ( b , c ) { a [ b ] = 1 ; var f = d [ b ] ; delete d [ b ] ; for ( var e = 0 ; e < f . length ; e ++ ) f [ e ] ( b , c ) } , F = function ( b ) { if ( a [ b ] ) w ( b , ! 0 ) ; else { var f = d [ b ] || ( d [ b ] = [ ] ) ; f . push ( w ) ; if ( ! ( 1 < f . length ) ) { var e =
new CKEDITOR . dom . element ( "script" ) ; e . setAttributes ( { type : "text/javascript" , src : b } ) ; c && ( CKEDITOR . env . ie && ( 8 >= CKEDITOR . env . version || CKEDITOR . env . ie9Compat ) ? e . $ . onreadystatechange = function ( ) { if ( "loaded" == e . $ . readyState || "complete" == e . $ . readyState ) e . $ . onreadystatechange = null , A ( b , ! 0 ) } : ( e . $ . onload = function ( ) { setTimeout ( function ( ) { e . $ . onload = null ; e . $ . onerror = null ; A ( b , ! 0 ) } , 0 ) } , e . $ . onerror = function ( ) { e . $ . onload = null ; e . $ . onerror = null ; A ( b , ! 1 ) } ) ) ; e . appendTo ( CKEDITOR . document . getHead ( ) ) } } } ; h && CKEDITOR . document . getDocumentElement ( ) . setStyle ( "cursor" ,
"wait" ) ; for ( var u = 0 ; u < g ; u ++ ) F ( b [ u ] ) } } , queue : function ( ) { function a ( ) { var b ; ( b = c [ 0 ] ) && this . load ( b . scriptUrl , b . callback , CKEDITOR , 0 ) } var c = [ ] ; return function ( d , h ) { var k = this ; c . push ( { scriptUrl : d , callback : function ( ) { h && h . apply ( this , arguments ) ; c . shift ( ) ; a . call ( k ) } } ) ; 1 == c . length && a . call ( this ) } } ( ) } } ( ) ; CKEDITOR . resourceManager = function ( a , d ) { this . basePath = a ; this . fileName = d ; this . registered = { } ; this . loaded = { } ; this . externals = { } ; this . _ = { waitingList : { } } } ;
CKEDITOR . resourceManager . prototype = { add : function ( a , d ) { if ( this . registered [ a ] ) throw Error ( '[CKEDITOR.resourceManager.add] The resource name "' + a + '" is already registered.' ) ; var b = this . registered [ a ] = d || { } ; b . name = a ; b . path = this . getPath ( a ) ; CKEDITOR . fire ( a + CKEDITOR . tools . capitalize ( this . fileName ) + "Ready" , b ) ; return this . get ( a ) } , get : function ( a ) { return this . registered [ a ] || null } , getPath : function ( a ) { var d = this . externals [ a ] ; return CKEDITOR . getUrl ( d && d . dir || this . basePath + a + "/" ) } , getFilePath : function ( a ) { var d = this . externals [ a ] ;
return CKEDITOR . getUrl ( this . getPath ( a ) + ( d ? d . file : this . fileName + ".js" ) ) } , addExternal : function ( a , d , b ) { b || ( d = d . replace ( /[^\/]+$/ , function ( a ) { b = a ; return "" } ) ) ; b = b || this . fileName + ".js" ; a = a . split ( "," ) ; for ( var c = 0 ; c < a . length ; c ++ ) this . externals [ a [ c ] ] = { dir : d , file : b } } , load : function ( a , d , b ) { CKEDITOR . tools . isArray ( a ) || ( a = a ? [ a ] : [ ] ) ; for ( var c = this . loaded , f = this . registered , h = [ ] , k = { } , g = { } , l = 0 ; l < a . length ; l ++ ) { var u = a [ l ] ; if ( u ) if ( c [ u ] || f [ u ] ) g [ u ] = this . get ( u ) ; else { var e = this . getFilePath ( u ) ; h . push ( e ) ; e in k || ( k [ e ] = [ ] ) ; k [ e ] . push ( u ) } } CKEDITOR . scriptLoader . load ( h ,
function ( a , e ) { if ( e . length ) throw Error ( '[CKEDITOR.resourceManager.load] Resource name "' + k [ e [ 0 ] ] . join ( "," ) + '" was not found at "' + e [ 0 ] + '".' ) ; for ( var f = 0 ; f < a . length ; f ++ ) for ( var h = k [ a [ f ] ] , l = 0 ; l < h . length ; l ++ ) { var n = h [ l ] ; g [ n ] = this . get ( n ) ; c [ n ] = 1 } d . call ( b , g ) } , this ) } } ; CKEDITOR . plugins = new CKEDITOR . resourceManager ( "plugins/" , "plugin" ) ;
CKEDITOR . plugins . load = CKEDITOR . tools . override ( CKEDITOR . plugins . load , function ( a ) { var d = { } ; return function ( b , c , f ) { var h = { } , k = function ( b ) { a . call ( this , b , function ( a ) { CKEDITOR . tools . extend ( h , a ) ; var b = [ ] , e ; for ( e in a ) { var g = a [ e ] , w = g && g . requires ; if ( ! d [ e ] ) { if ( g . icons ) for ( var z = g . icons . split ( "," ) , H = z . length ; H -- ; ) CKEDITOR . skin . addIcon ( z [ H ] , g . path + "icons/" + ( CKEDITOR . env . hidpi && g . hidpi ? "hidpi/" : "" ) + z [ H ] + ".png" ) ; g . isSupportedEnvironment = g . isSupportedEnvironment || function ( ) { return ! 0 } ; d [ e ] = 1 } if ( w ) for ( w . split && ( w =
return CKEDITOR . getUrl ( this . getPath ( a ) + ( d ? d . file : this . fileName + ".js" ) ) } , addExternal : function ( a , d , b ) { b || ( d = d . replace ( /[^\/]+$/ , function ( a ) { b = a ; return "" } ) ) ; b = b || this . fileName + ".js" ; a = a . split ( "," ) ; for ( var c = 0 ; c < a . length ; c ++ ) this . externals [ a [ c ] ] = { dir : d , file : b } } , load : function ( a , d , b ) { CKEDITOR . tools . isArray ( a ) || ( a = a ? [ a ] : [ ] ) ; for ( var c = this . loaded , f = this . registered , h = [ ] , k = { } , g = { } , l = 0 ; l < a . length ; l ++ ) { var v = a [ l ] ; if ( v ) if ( c [ v ] || f [ v ] ) g [ v ] = this . get ( v ) ; else { var e = this . getFilePath ( v ) ; h . push ( e ) ; e in k || ( k [ e ] = [ ] ) ; k [ e ] . push ( v ) } } CKEDITOR . scriptLoader . load ( h ,
function ( a , f ) { if ( f . length ) throw Error ( '[CKEDITOR.resourceManager.load] Resource name "' + k [ f [ 0 ] ] . join ( "," ) + '" was not found at "' + f [ 0 ] + '".' ) ; for ( var e = 0 ; e < a . length ; e ++ ) for ( var h = k [ a [ e ] ] , l = 0 ; l < h . length ; l ++ ) { var m = h [ l ] ; g [ m ] = this . get ( m ) ; c [ m ] = 1 } d . call ( b , g ) } , this ) } } ; CKEDITOR . plugins = new CKEDITOR . resourceManager ( "plugins/" , "plugin" ) ;
CKEDITOR . plugins . load = CKEDITOR . tools . override ( CKEDITOR . plugins . load , function ( a ) { var d = { } ; return function ( b , c , f ) { var h = { } , k = function ( b ) { a . call ( this , b , function ( a ) { CKEDITOR . tools . extend ( h , a ) ; var b = [ ] , e ; for ( e in a ) { var g = a [ e ] , w = g && g . requires ; if ( ! d [ e ] ) { if ( g . icons ) for ( var A = g . icons . split ( "," ) , F = A . length ; F -- ; ) CKEDITOR . skin . addIcon ( A [ F ] , g . path + "icons/" + ( CKEDITOR . env . hidpi && g . hidpi ? "hidpi/" : "" ) + A [ F ] + ".png" ) ; g . isSupportedEnvironment = g . isSupportedEnvironment || function ( ) { return ! 0 } ; d [ e ] = 1 } if ( w ) for ( w . split && ( w =
w . split ( "," ) ) , g = 0 ; g < w . length ; g ++ ) h [ w [ g ] ] || b . push ( w [ g ] ) } if ( b . length ) k . call ( this , b ) ; else { for ( e in h ) g = h [ e ] , g . onLoad && ! g . onLoad . _called && ( ! 1 === g . onLoad ( ) && delete h [ e ] , g . onLoad . _called = 1 ) ; c && c . call ( f || window , h ) } } , this ) } ; k . call ( this , b ) } } ) ; CKEDITOR . plugins . setLang = function ( a , d , b ) { var c = this . get ( a ) ; a = c . langEntries || ( c . langEntries = { } ) ; c = c . lang || ( c . lang = [ ] ) ; c . split && ( c = c . split ( "," ) ) ; - 1 == CKEDITOR . tools . indexOf ( c , d ) && c . push ( d ) ; a [ d ] = b } ;
CKEDITOR . ui = function ( a ) { if ( a . ui ) return a . ui ; this . items = { } ; this . instances = { } ; this . editor = a ; this . _ = { handlers : { } } ; return this } ;
CKEDITOR . ui . prototype = { add : function ( a , d , b ) { b . name = a . toLowerCase ( ) ; var c = this . items [ a ] = { type : d , command : b . command || null , args : Array . prototype . slice . call ( arguments , 2 ) } ; CKEDITOR . tools . extend ( c , b ) } , get : function ( a ) { return this . instances [ a ] } , create : function ( a ) { var d = this . items [ a ] , b = d && this . _ . handlers [ d . type ] , c = d && d . command && this . editor . getCommand ( d . command ) , b = b && b . create . apply ( this , d . args ) ; this . instances [ a ] = b ; c && c . uiItems . push ( b ) ; b && ! b . type && ( b . type = d . type ) ; return b } , addHandler : function ( a , d ) { this . _ . handlers [ a ] =
d } , space : function ( a ) { return CKEDITOR . document . getById ( this . spaceId ( a ) ) } , spaceId : function ( a ) { return this . editor . id + "_" + a } } ; CKEDITOR . event . implementOn ( CKEDITOR . ui ) ;
( function ( ) { function a ( a , e , f ) { CKEDITOR . event . call ( this ) ; a = a && CKEDITOR . tools . clone ( a ) ; if ( void 0 !== e ) { if ( ! ( e instanceof CKEDITOR . dom . element ) ) throw Error ( "Expect element of type CKEDITOR.dom.element." ) ; if ( ! f ) throw Error ( "One of the element modes must be specified." ) ; if ( CKEDITOR . env . ie && CKEDITOR . env . quirks && f == CKEDITOR . ELEMENT _MODE _INLINE ) throw Error ( "Inline element mode is not supported on IE quirks." ) ; if ( ! b ( e , f ) ) throw Error ( 'The specified element mode is not supported on element: "' + e . getName ( ) + '".' ) ;
this . element = e ; this . elementMode = f ; this . name = this . elementMode != CKEDITOR . ELEMENT _MODE _APPENDTO && ( e . getId ( ) || e . getNameAtt ( ) ) } else this . elementMode = CKEDITOR . ELEMENT _MODE _NONE ; this . _ = { } ; this . commands = { } ; this . templates = { } ; this . name = this . name || d ( ) ; 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" ,
( function ( ) { function a ( a , f , e ) { CKEDITOR . event . call ( this ) ; a = a && CKEDITOR . tools . clone ( a ) ; if ( void 0 !== f ) { if ( ! ( f instanceof CKEDITOR . dom . element ) ) throw Error ( "Expect element of type CKEDITOR.dom.element." ) ; if ( ! e ) throw Error ( "One of the element modes must be specified." ) ; if ( CKEDITOR . env . ie && CKEDITOR . env . quirks && e == CKEDITOR . ELEMENT _MODE _INLINE ) throw Error ( "Inline element mode is not supported on IE quirks." ) ; if ( ! b ( f , e ) ) throw Error ( 'The specified element mode is not supported on element: "' + f . getName ( ) + '".' ) ;
this . element = f ; this . elementMode = e ; this . name = this . elementMode != CKEDITOR . ELEMENT _MODE _APPENDTO && ( f . getId ( ) || f . getNameAtt ( ) ) } else this . elementMode = CKEDITOR . ELEMENT _MODE _NONE ; this . _ = { } ; this . commands = { } ; this . templates = { } ; this . name = this . name || d ( ) ; 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" ,
c ) ; this . on ( "selectionChange" , function ( a ) { h ( this , a . data . path ) } ) ; this . on ( "activeFilterChange" , function ( ) { h ( this , this . elementPath ( ) , ! 0 ) } ) ; this . on ( "mode" , c ) ; 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 ( ) || g ( this , a ) } , 0 , this ) } function d ( ) { do var a = "editor" + ++ H ; while ( CKEDITOR . instances [ a ] ) ; return a } function b ( a , b ) { return b == CKEDITOR . ELEMENT _MODE _INLINE ? a . is ( CKEDITOR . dtd . $editable ) || a . is ( "textarea" ) : b == CKEDITOR . ELEMENT _MODE _REPLACE ? ! a . is ( CKEDITOR . dtd . $nonBodyContent ) : 1 } function c ( ) { var a = this . commands , b ; for ( b in a ) f ( this , a [ b ] ) } function f ( a , b ) { b [ b . startDisabled ? "disable" : a . readOnly && ! b . readOnly ? "disable" :
b . modes [ a . mode ] ? "enable" : "disable" ] ( ) } function h ( a , b , c ) { if ( b ) { var d , e , f = a . commands ; for ( e in f ) d = f [ e ] , ( c || d . contextSensitive ) && d . refresh ( a , b ) } } function k ( a ) { var b = a . config . customConfig ; if ( ! b ) return ! 1 ; var b = CKEDITOR . getUrl ( b ) , c = t [ b ] || ( t [ b ] = { } ) ; c . fn ? ( c . fn . call ( a , a . config ) , CKEDITOR . getUrl ( a . config . customConfig ) != b && k ( a ) || a . fireOnce ( "customConfigLoaded" ) ) : CKEDITOR . scriptLoader . queue ( b , function ( ) { c . fn = c . fn || CKEDITOR . editorConfig || function ( ) { } ; k ( a ) } ) ; return ! 0 } function g ( a , b ) { a . on ( "customConfigLoaded" , function ( ) { if ( b ) { if ( b . on ) for ( var c in b . on ) a . on ( c ,
null , this ) ; CKEDITOR . add ( this ) ; CKEDITOR . tools . setTimeout ( function ( ) { this . isDestroyed ( ) || this . isDetached ( ) || g ( this , a ) } , 0 , this ) } function d ( ) { do var a = "editor" + ++ F ; while ( CKEDITOR . instances [ a ] ) ; return a } function b ( a , b ) { return b == CKEDITOR . ELEMENT _MODE _INLINE ? a . is ( CKEDITOR . dtd . $editable ) || a . is ( "textarea" ) : b == CKEDITOR . ELEMENT _MODE _REPLACE ? ! a . is ( CKEDITOR . dtd . $nonBodyContent ) : 1 } function c ( ) { var a = this . commands , b ; for ( b in a ) f ( this , a [ b ] ) } function f ( a , b ) { b [ b . startDisabled ? "disable" : a . readOnly && ! b . readOnly ? "disable" :
b . modes [ a . mode ] ? "enable" : "disable" ] ( ) } function h ( a , b , c ) { if ( b ) { var d , f , e = a . commands ; for ( f in e ) d = e [ f ] , ( c || d . contextSensitive ) && d . refresh ( a , b ) } } function k ( a ) { var b = a . config . customConfig ; if ( ! b ) return ! 1 ; var b = CKEDITOR . getUrl ( b ) , c = u [ b ] || ( u [ b ] = { } ) ; c . fn ? ( c . fn . call ( a , a . config ) , CKEDITOR . getUrl ( a . config . customConfig ) != b && k ( a ) || a . fireOnce ( "customConfigLoaded" ) ) : CKEDITOR . scriptLoader . queue ( b , function ( ) { c . fn = c . fn || CKEDITOR . editorConfig || function ( ) { } ; k ( a ) } ) ; return ! 0 } function g ( a , b ) { a . on ( "customConfigLoaded" , function ( ) { if ( b ) { if ( b . on ) for ( var c in b . on ) a . on ( c ,
b . on [ c ] ) ; CKEDITOR . tools . extend ( a . config , b , ! 0 ) ; delete a . config . on } c = a . config ; a . readOnly = c . readOnly ? ! 0 : a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE ? a . element . is ( "textarea" ) ? a . element . hasAttribute ( "disabled" ) || a . element . hasAttribute ( "readonly" ) : a . element . isReadOnly ( ) : a . elementMode == CKEDITOR . ELEMENT _MODE _REPLACE ? a . element . hasAttribute ( "disabled" ) || a . element . hasAttribute ( "readonly" ) : ! 1 ; a . blockless = a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE ? ! ( a . element . is ( "textarea" ) || CKEDITOR . dtd [ a . element . getName ( ) ] . p ) :
! 1 ; a . tabIndex = c . tabIndex || a . element && a . element . getAttribute ( "tabindex" ) || 0 ; a . activeEnterMode = a . enterMode = a . blockless ? CKEDITOR . ENTER _BR : c . enterMode ; a . activeShiftEnterMode = a . shiftEnterMode = a . blockless ? CKEDITOR . ENTER _BR : c . shiftEnterMode ; c . skin && ( CKEDITOR . skinName = c . skin ) ; a . fireOnce ( "configLoaded" ) ; a . dataProcessor = new CKEDITOR . htmlDataProcessor ( a ) ; a . filter = a . activeFilter = new CKEDITOR . filter ( a ) ; l ( a ) } ) ; b && null != b . customConfig && ( a . config . customConfig = b . customConfig ) ; k ( a ) || a . fireOnce ( "customConfigLoaded" ) }
function l ( a ) { CKEDITOR . skin . loadPart ( "editor" , function ( ) { u ( a ) } ) } function u ( a ) { CKEDITOR . lang . load ( a . config . language , a . config . defaultLanguage , function ( b , c ) { var d = a . config . title ; a . langCode = b ; a . lang = CKEDITOR . tools . prototypedCopy ( c ) ; a . title = "string" == typeof d || ! 1 === d ? d : [ 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" ) ; e ( a ) } ) } function e ( a ) { a . getStylesSet ( function ( b ) { a . once ( "loaded" ,
function ( ) { a . fire ( "stylesSet" , { styles : b } ) } , null , null , 1 ) ; x ( a ) } ) } function x ( a ) { function b ( a ) { if ( ! a ) return "" ; CKEDITOR . tools . isArray ( a ) && ( a = a . join ( "," ) ) ; return a . replace ( /\s/g , "" ) } var c = a . config , d = b ( c . plugins ) , e = b ( c . extraPlugins ) , f = b ( c . removePlugins ) ; if ( e ) var h = new RegExp ( "(?:^|,)(?:" + e . replace ( /,/g , "|" ) + ")(?\x3d,|$)" , "g" ) , d = d . replace ( h , "" ) , d = d + ( "," + e ) ; if ( f ) var g = new RegExp ( "(?:^|,)(?:" + f . replace ( /,/g , "|" ) + ")(?\x3d,|$)" , "g" ) , d = d . replace ( g , "" ) ; CKEDITOR . env . air && ( d += ",adobeair" ) ; CKEDITOR . plugins . load ( d . split ( "," ) ,
function ( b ) { var d = [ ] , e = [ ] , f = [ ] ; a . plugins = CKEDITOR . tools . extend ( { } , a . plugins , b ) ; for ( var m in b ) { var h = b [ m ] , k = h . lang , C = null , p = h . requires , N ; CKEDITOR . tools . isArray ( p ) && ( p = p . join ( "," ) ) ; if ( p && ( N = p . match ( g ) ) ) for ( ; p = N . pop ( ) ; ) CKEDITOR . error ( "editor-plugin-required" , { plugin : p . replace ( "," , "" ) , requiredBy : m } ) ; k && ! a . lang [ m ] && ( k . split && ( k = k . split ( "," ) ) , 0 <= CKEDITOR . tools . indexOf ( k , a . langCode ) ? C = a . langCode : ( C = a . langCode . replace ( /-.*/ , "" ) , C = C != a . langCode && 0 <= CKEDITOR . tools . indexOf ( k , C ) ? C : 0 <= CKEDITOR . tools . indexOf ( k ,
"en" ) ? "en" : k [ 0 ] ) , h . langEntries && h . langEntries [ C ] ? ( a . lang [ m ] = h . langEntries [ C ] , C = null ) : f . push ( CKEDITOR . getUrl ( h . path + "lang/" + C + ".js" ) ) ) ; e . push ( C ) ; d . push ( h ) } CKEDITOR . scriptLoader . load ( f , function ( ) { if ( ! a . isDestroyed ( ) && ! a . isDetached ( ) ) { for ( var b = [ "beforeInit" , "init" , "afterInit" ] , f = 0 ; f < b . length ; f ++ ) for ( var m = 0 ; m < d . length ; m ++ ) { var p = d [ m ] ; 0 === f && e [ m ] && p . lang && p . langEntries && ( a . lang [ p . name ] = p . langEntries [ e [ m ] ] ) ; if ( p [ b [ f ] ] ) p [ b [ f ] ] ( a ) } a . fireOnce ( "pluginsLoaded" ) ; c . keystrokes && a . setKeystroke ( a . config . keystrokes ) ;
for ( m = 0 ; m < a . config . blockedKeystrokes . length ; m ++ ) a . keystrokeHandler . blockedKeystrokes [ a . config . blockedKeystrokes [ m ] ] = 1 ; a . status = "loaded" ; a . fireOnce ( "loaded" ) ; CKEDITOR . fire ( "instanceLoaded" , null , a ) } } ) } ) } function w ( ) { var a = this . element ; if ( a && this . elementMode != CKEDITOR . ELEMENT _MODE _APPENDTO ) { var b = this . getData ( ) ; this . config . htmlEncodeOutput && ( b = CKEDITOR . tools . htmlEncode ( b ) ) ; a . is ( "textarea" ) ? a . setValue ( b ) : a . setHtml ( b ) ; return ! 0 } return ! 1 } function z ( a , b ) { function c ( a ) { var b = a . startContainer , d = a . endContainer ;
return b . is && ( b . is ( "tr" ) || b . is ( "td" ) && b . equals ( d ) && a . endOffset === b . getChildCount ( ) ) ? ! 0 : ! 1 } function d ( a ) { var b = a . startContainer ; return b . is ( "tr" ) ? a . cloneContents ( ) : b . clone ( ! 0 ) } for ( var e = new CKEDITOR . dom . documentFragment , f , h , g , k = 0 ; k < a . length ; k ++ ) { var l = a [ k ] , r = l . startContainer . getAscendant ( "tr" , ! 0 ) ; c ( l ) ? ( f || ( f = r . getAscendant ( "table" ) . clone ( ) , f . append ( r . getAscendant ( { thead : 1 , tbody : 1 , tfoot : 1 } ) . clone ( ) ) , e . append ( f ) , f = f . findOne ( "thead, tbody, tfoot" ) ) , h && h . equals ( r ) || ( h = r , g = r . clone ( ) , f . append ( g ) ) , g . append ( d ( l ) ) ) :
e . append ( l . cloneContents ( ) ) } return f ? e : b . getHtmlFromRange ( a [ 0 ] ) } a . prototype = CKEDITOR . editor . prototype ; CKEDITOR . editor = a ; var H = 0 , t = { } ; CKEDITOR . tools . extend ( CKEDITOR . editor . prototype , { plugins : { detectConflict : function ( a , b ) { for ( var c = 0 ; c < b . length ; c ++ ) { var d = b [ c ] ; if ( this [ d ] ) return CKEDITOR . warn ( "editor-plugin-conflict" , { plugin : a , replacedWith : d } ) , ! 0 } return ! 1 } } , addCommand : function ( a , b ) { b . name = a . toLowerCase ( ) ; var c = b instanceof CKEDITOR . command ? b : new CKEDITOR . command ( this , b ) ; this . mode && f ( this , c ) ; return this . commands [ a ] =
c } , _attachToForm : function ( ) { function a ( b ) { c . updateElement ( ) ; c . _ . required && ! d . getValue ( ) && ! 1 === c . fire ( "required" ) && b . data . preventDefault ( ) } function b ( a ) { return ! ! ( a && a . call && a . apply ) } var c = this , d = c . element , e = new CKEDITOR . dom . element ( d . $ . form ) ; d . is ( "textarea" ) && e && ( e . on ( "submit" , a ) , b ( e . $ . submit ) && ( e . $ . submit = CKEDITOR . tools . override ( e . $ . submit , function ( b ) { return function ( ) { a ( ) ; b . apply ? b . apply ( this ) : b ( ) } } ) ) , c . on ( "destroy" , function ( ) { e . removeListener ( "submit" , a ) } ) ) } , destroy : function ( a ) { var b = CKEDITOR . filter . instances ,
function l ( a ) { CKEDITOR . skin . loadPart ( "editor" , function ( ) { v ( a ) } ) } function v ( a ) { CKEDITOR . lang . load ( a . config . language , a . config . defaultLanguage , function ( b , c ) { var d = a . config . title ; a . langCode = b ; a . lang = CKEDITOR . tools . prototypedCopy ( c ) ; a . title = "string" == typeof d || ! 1 === d ? d : [ 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" ) ; e ( a ) } ) } function e ( a ) { a . getStylesSet ( function ( b ) { a . once ( "loaded" ,
function ( ) { a . fire ( "stylesSet" , { styles : b } ) } , null , null , 1 ) ; z ( a ) } ) } function z ( a ) { function b ( a ) { if ( ! a ) return "" ; CKEDITOR . tools . isArray ( a ) && ( a = a . join ( "," ) ) ; return a . replace ( /\s/g , "" ) } var c = a . config , d = b ( c . plugins ) , f = b ( c . extraPlugins ) , e = b ( c . removePlugins ) ; if ( f ) var h = new RegExp ( "(?:^|,)(?:" + f . replace ( /,/g , "|" ) + ")(?\x3d,|$)" , "g" ) , d = d . replace ( h , "" ) , d = d + ( "," + f ) ; if ( e ) var g = new RegExp ( "(?:^|,)(?:" + e . replace ( /,/g , "|" ) + ")(?\x3d,|$)" , "g" ) , d = d . replace ( g , "" ) ; CKEDITOR . env . air && ( d += ",adobeair" ) ; CKEDITOR . plugins . load ( d . split ( "," ) ,
function ( b ) { var d = [ ] , f = [ ] , e = [ ] ; a . plugins = CKEDITOR . tools . extend ( { } , a . plugins , b ) ; for ( var n in b ) { var h = b [ n ] , k = h . lang , C = null , t = h . requires , P ; CKEDITOR . tools . isArray ( t ) && ( t = t . join ( "," ) ) ; if ( t && ( P = t . match ( g ) ) ) for ( ; t = P . pop ( ) ; ) CKEDITOR . error ( "editor-plugin-required" , { plugin : t . replace ( "," , "" ) , requiredBy : n } ) ; k && ! a . lang [ n ] && ( k . split && ( k = k . split ( "," ) ) , 0 <= CKEDITOR . tools . indexOf ( k , a . langCode ) ? C = a . langCode : ( C = a . langCode . replace ( /-.*/ , "" ) , C = C != a . langCode && 0 <= CKEDITOR . tools . indexOf ( k , C ) ? C : 0 <= CKEDITOR . tools . indexOf ( k ,
"en" ) ? "en" : k [ 0 ] ) , h . langEntries && h . langEntries [ C ] ? ( a . lang [ n ] = h . langEntries [ C ] , C = null ) : e . push ( CKEDITOR . getUrl ( h . path + "lang/" + C + ".js" ) ) ) ; f . push ( C ) ; d . push ( h ) } CKEDITOR . scriptLoader . load ( e , function ( ) { if ( ! a . isDestroyed ( ) && ! a . isDetached ( ) ) { for ( var b = [ "beforeInit" , "init" , "afterInit" ] , e = 0 ; e < b . length ; e ++ ) for ( var n = 0 ; n < d . length ; n ++ ) { var r = d [ n ] ; 0 === e && f [ n ] && r . lang && r . langEntries && ( a . lang [ r . name ] = r . langEntries [ f [ n ] ] ) ; if ( r [ b [ e ] ] ) r [ b [ e ] ] ( a ) } a . fireOnce ( "pluginsLoaded" ) ; c . keystrokes && a . setKeystroke ( a . config . keystrokes ) ;
for ( n = 0 ; n < a . config . blockedKeystrokes . length ; n ++ ) a . keystrokeHandler . blockedKeystrokes [ a . config . blockedKeystrokes [ n ] ] = 1 ; a . status = "loaded" ; a . fireOnce ( "loaded" ) ; CKEDITOR . fire ( "instanceLoaded" , null , a ) } } ) } ) } function w ( ) { var a = this . element ; if ( a && this . elementMode != CKEDITOR . ELEMENT _MODE _APPENDTO ) { var b = this . getData ( ) ; this . config . htmlEncodeOutput && ( b = CKEDITOR . tools . htmlEncode ( b ) ) ; a . is ( "textarea" ) ? a . setValue ( b ) : a . setHtml ( b ) ; return ! 0 } return ! 1 } function A ( a , b ) { function c ( a ) { var b = a . startContainer , d = a . endContainer ;
return b . is && ( b . is ( "tr" ) || b . is ( "td" ) && b . equals ( d ) && a . endOffset === b . getChildCount ( ) ) ? ! 0 : ! 1 } function d ( a ) { var b = a . startContainer ; return b . is ( "tr" ) ? a . cloneContents ( ) : b . clone ( ! 0 ) } for ( var f = new CKEDITOR . dom . documentFragment , e , h , g , k = 0 ; k < a . length ; k ++ ) { var l = a [ k ] , q = l . startContainer . getAscendant ( "tr" , ! 0 ) ; c ( l ) ? ( e || ( e = q . getAscendant ( "table" ) . clone ( ) , e . append ( q . getAscendant ( { thead : 1 , tbody : 1 , tfoot : 1 } ) . clone ( ) ) , f . append ( e ) , e = e . findOne ( "thead, tbody, tfoot" ) ) , h && h . equals ( q ) || ( h = q , g = q . clone ( ) , e . append ( g ) ) , g . append ( d ( l ) ) ) :
f . append ( l . cloneContents ( ) ) } return e ? f : b . getHtmlFromRange ( a [ 0 ] ) } a . prototype = CKEDITOR . editor . prototype ; CKEDITOR . editor = a ; var F = 0 , u = { } ; CKEDITOR . tools . extend ( CKEDITOR . editor . prototype , { plugins : { detectConflict : function ( a , b ) { for ( var c = 0 ; c < b . length ; c ++ ) { var d = b [ c ] ; if ( this [ d ] ) return CKEDITOR . warn ( "editor-plugin-conflict" , { plugin : a , replacedWith : d } ) , ! 0 } return ! 1 } } , addCommand : function ( a , b ) { b . name = a . toLowerCase ( ) ; var c = b instanceof CKEDITOR . command ? b : new CKEDITOR . command ( this , b ) ; this . mode && f ( this , c ) ; return this . commands [ a ] =
c } , _attachToForm : function ( ) { function a ( b ) { c . updateElement ( ) ; c . _ . required && ! d . getValue ( ) && ! 1 === c . fire ( "required" ) && b . data . preventDefault ( ) } function b ( a ) { return ! ! ( a && a . call && a . apply ) } var c = this , d = c . element , f = new CKEDITOR . dom . element ( d . $ . form ) ; d . is ( "textarea" ) && f && ( f . on ( "submit" , a ) , b ( f . $ . submit ) && ( f . $ . submit = CKEDITOR . tools . override ( f . $ . submit , function ( b ) { return function ( ) { a ( ) ; b . apply ? b . apply ( this ) : b ( ) } } ) ) , c . on ( "destroy" , function ( ) { f . removeListener ( "submit" , a ) } ) ) } , destroy : function ( a ) { var b = CKEDITOR . filter . instances ,
c = this ; this . fire ( "beforeDestroy" ) ; ! a && w . call ( this ) ; this . editable ( null ) ; this . filter && delete this . filter ; CKEDITOR . tools . array . forEach ( CKEDITOR . tools . object . keys ( b ) , function ( a ) { a = b [ a ] ; c === 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 , b ) { var c = this . getCommand ( a ) , d = { name : a , commandData : b || { } , command : c } ; return c && c . state != CKEDITOR . TRISTATE _DISABLED && ! 1 !== this . fire ( "beforeCommandExec" , d ) && ( d . returnValue = c . exec ( d . commandData ) , ! c . async && ! 1 !== this . fire ( "afterCommandExec" , d ) ) ? d . returnValue : ! 1 } , getCommand : function ( a ) { return this . commands [ a ] } , getData : function ( a ) { ! a && this . fire ( "beforeGetData" ) ; var b = this . _ . data ;
"string" != typeof b && ( b = ( b = this . element ) && this . elementMode == CKEDITOR . ELEMENT _MODE _REPLACE ? b . is ( "textarea" ) ? b . getValue ( ) : b . getHtml ( ) : "" ) ; b = { dataValue : b } ; ! a && this . fire ( "getData" , b ) ; return b . dataValue } , getSnapshot : function ( ) { var a = this . fire ( "getSnapshot" ) ; "string" != typeof a && ( a = ( a = this . element ) && this . elementMode == CKEDITOR . ELEMENT _MODE _REPLACE ? a . is ( "textarea" ) ? a . getValue ( ) : a . getHtml ( ) : "" ) ; return a } , loadSnapshot : function ( a ) { this . fire ( "loadSnapshot" , a ) } , setData : function ( a , b , c ) { var d = ! 0 , e = b ; b && "object" ==
typeof b && ( c = b . internal , e = b . callback , d = ! b . noSnapshot ) ; ! c && d && this . fire ( "saveSnapshot" ) ; if ( e || ! c ) this . once ( "dataReady" , function ( a ) { ! c && d && this . fire ( "saveSnapshot" ) ; e && e . call ( a . editor ) } ) ; a = { dataValue : a } ; ! c && this . fire ( "setData" , a ) ; this . _ . data = a . dataValue ; ! c && this . fire ( "afterSetData" , a ) } , setReadOnly : function ( a ) { a = null == a || a ; this . readOnly != a && ( this . readOnly = a , this . keystrokeHandler . blockedKeystrokes [ 8 ] = + a , this . editable ( ) . setReadOnly ( a ) , this . fire ( "readOnly" ) ) } , insertHtml : function ( a , b , c ) { this . fire ( "insertHtml" ,
{ dataValue : a , mode : b , range : c } ) } , insertText : function ( a ) { this . fire ( "insertText" , a ) } , insertElement : function ( a ) { this . fire ( "insertElement" , a ) } , getSelectedHtml : function ( a ) { var b = this . editable ( ) , c = this . getSelection ( ) , c = c && c . getRanges ( ) ; if ( ! b || ! c || 0 === c . length ) return null ; b = z ( c , b ) ; return a ? b . getHtml ( ) : b } , extractSelectedHtml : function ( a , b ) { var c = this . editable ( ) , d = this . getSelection ( ) . getRanges ( ) , e = new CKEDITOR . dom . documentFragment , f ; if ( ! c || 0 === d . length ) return null ; for ( f = 0 ; f < d . length ; f ++ ) e . append ( c . extractHtmlFromRange ( d [ f ] ,
b ) ) ; b || this . getSelection ( ) . selectRanges ( [ d [ 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 w . call ( this ) } , setKeystroke : function ( ) { for ( var a = this . keystrokeHandler . keystrokes , b = CKEDITOR . tools . isArray ( arguments [ 0 ] ) ? arguments [ 0 ] : [ [ ] . slice . call ( arguments , 0 ) ] , c , d , e = b . length ; e -- ; ) c = b [ e ] , d = 0 , CKEDITOR . tools . isArray ( c ) &&
( d = c [ 1 ] , c = c [ 0 ] ) , d ? a [ c ] = d : delete a [ c ] } , getCommandKeystroke : function ( a , b ) { var c = "string" === typeof a ? this . getCommand ( a ) : a , d = [ ] ; if ( c ) { var e = CKEDITOR . tools . object . findKey ( this . commands , c ) , f = this . keystrokeHandler . keystrokes ; if ( c . fakeKeystroke ) d . push ( c . fakeKeystroke ) ; else for ( var h in f ) f [ h ] === e && d . push ( h ) } return b ? d : d [ 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" ) ,
"string" != typeof b && ( b = ( b = this . element ) && this . elementMode == CKEDITOR . ELEMENT _MODE _REPLACE ? b . is ( "textarea" ) ? b . getValue ( ) : b . getHtml ( ) : "" ) ; b = { dataValue : b } ; ! a && this . fire ( "getData" , b ) ; return b . dataValue } , getSnapshot : function ( ) { var a = this . fire ( "getSnapshot" ) ; "string" != typeof a && ( a = ( a = this . element ) && this . elementMode == CKEDITOR . ELEMENT _MODE _REPLACE ? a . is ( "textarea" ) ? a . getValue ( ) : a . getHtml ( ) : "" ) ; return a } , loadSnapshot : function ( a ) { this . fire ( "loadSnapshot" , a ) } , setData : function ( a , b , c ) { var d = ! 0 , f = b ; b && "object" ==
typeof b && ( c = b . internal , f = b . callback , d = ! b . noSnapshot ) ; ! c && d && this . fire ( "saveSnapshot" ) ; if ( f || ! c ) this . once ( "dataReady" , function ( a ) { ! c && d && this . fire ( "saveSnapshot" ) ; f && f . call ( a . editor ) } ) ; a = { dataValue : a } ; ! c && this . fire ( "setData" , a ) ; this . _ . data = a . dataValue ; ! c && this . fire ( "afterSetData" , a ) } , setReadOnly : function ( a ) { a = null == a || a ; this . readOnly != a && ( this . readOnly = a , this . keystrokeHandler . blockedKeystrokes [ 8 ] = + a , this . editable ( ) . setReadOnly ( a ) , this . fire ( "readOnly" ) ) } , insertHtml : function ( a , b , c ) { this . fire ( "insertHtml" ,
{ dataValue : a , mode : b , range : c } ) } , insertText : function ( a ) { this . fire ( "insertText" , a ) } , insertElement : function ( a ) { this . fire ( "insertElement" , a ) } , getSelectedHtml : function ( a ) { var b = this . editable ( ) , c = this . getSelection ( ) , c = c && c . getRanges ( ) ; if ( ! b || ! c || 0 === c . length ) return null ; b = A ( c , b ) ; return a ? b . getHtml ( ) : b } , extractSelectedHtml : function ( a , b ) { var c = this . editable ( ) , d = this . getSelection ( ) . getRanges ( ) , f = new CKEDITOR . dom . documentFragment , e ; if ( ! c || 0 === d . length ) return null ; for ( e = 0 ; e < d . length ; e ++ ) f . append ( c . extractHtmlFromRange ( d [ e ] ,
b ) ) ; b || this . getSelection ( ) . selectRanges ( [ d [ 0 ] ] ) ; return a ? f . getHtml ( ) : f } , focus : function ( ) { this . fire ( "beforeFocus" ) } , checkDirty : function ( ) { return "ready" == this . status && this . _ . previousValue !== this . getSnapshot ( ) } , resetDirty : function ( ) { this . _ . previousValue = this . getSnapshot ( ) } , updateElement : function ( ) { return w . call ( this ) } , setKeystroke : function ( ) { for ( var a = this . keystrokeHandler . keystrokes , b = CKEDITOR . tools . isArray ( arguments [ 0 ] ) ? arguments [ 0 ] : [ [ ] . slice . call ( arguments , 0 ) ] , c , d , f = b . length ; f -- ; ) c = b [ f ] , d = 0 , CKEDITOR . tools . isArray ( c ) &&
( d = c [ 1 ] , c = c [ 0 ] ) , d ? a [ c ] = d : delete a [ c ] } , getCommandKeystroke : function ( a , b ) { var c = "string" === typeof a ? this . getCommand ( a ) : a , d = [ ] ; if ( c ) { var f = CKEDITOR . tools . object . findKey ( this . commands , c ) , e = this . keystrokeHandler . keystrokes ; if ( c . fakeKeystroke ) d . push ( c . fakeKeystroke ) ; else for ( var h in e ) e [ h ] === f && d . push ( h ) } return b ? d : d [ 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 , b ) { a = a ? this . blockless ? CKEDITOR . ENTER _BR : a : this . enterMode ; b = b ? this . blockless ? CKEDITOR . ENTER _BR : b : this . shiftEnterMode ; if ( this . activeEnterMode != a || this . activeShiftEnterMode != b ) this . activeEnterMode = a , this . activeShiftEnterMode = b , this . fire ( "activeEnterModeChange" ) } , showNotification : function ( a ) { alert ( a ) } , 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 b = CKEDITOR . dom . element . get ( a ) ; return b ? b . getEditor ( ) ? ( CKEDITOR . error ( "editor-element-conflict" , { editorName : b . getEditor ( ) . name } ) , null ) : b : ( 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 a = /([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g , d = { checked : 1 , compact : 1 , declare : 1 , defer : 1 , disabled : 1 , ismap : 1 , multiple : 1 , nohref : 1 , noresize : 1 , noshade : 1 , nowrap : 1 , readonly : 1 , selected : 1 } ; CKEDITOR . htmlParser . prototype = { onTagOpen : function ( ) { } , onTagClose : function ( ) { } , onText : function ( ) { } , onCDATA : function ( ) { } , onComment : function ( ) { } , parse : function ( b ) { for ( var c , f , h = 0 , k ; c = this . _ . htmlPartsRegex . exec ( b ) ; ) { f = c . index ; if ( f > h ) if ( h = b . substring ( h , f ) , k ) k . push ( h ) ; else this . onText ( h ) ;
h = this . _ . htmlPartsRegex . lastIndex ; if ( f = c [ 1 ] ) if ( f = f . toLowerCase ( ) , k && CKEDITOR . dtd . $cdata [ f ] && ( this . onCDATA ( k . join ( "" ) ) , k = null ) , ! k ) { this . onTagClose ( f ) ; continue } if ( k ) k . push ( c [ 0 ] ) ; else if ( f = c [ 3 ] ) { if ( f = f . toLowerCase ( ) , ! /="/ . test ( f ) ) { var g = { } , l , u = c [ 4 ] ; c = ! ! c [ 5 ] ; if ( u ) for ( ; l = a . exec ( u ) ; ) { var e = l [ 1 ] . toLowerCase ( ) ; l = l [ 2 ] || l [ 3 ] || l [ 4 ] || "" ; g [ e ] = ! l && d [ e ] ? e : CKEDITOR . tools . htmlDecodeAttr ( l ) } this . onTagOpen ( f , g , c ) ; ! k && CKEDITOR . dtd . $cdata [ f ] && ( k = [ ] ) } } else if ( f = c [ 2 ] ) this . onComment ( f ) } if ( b . length > h ) this . onText ( b . substring ( h ,
h = this . _ . htmlPartsRegex . lastIndex ; if ( f = c [ 1 ] ) if ( f = f . toLowerCase ( ) , k && CKEDITOR . dtd . $cdata [ f ] && ( this . onCDATA ( k . join ( "" ) ) , k = null ) , ! k ) { this . onTagClose ( f ) ; continue } if ( k ) k . push ( c [ 0 ] ) ; else if ( f = c [ 3 ] ) { if ( f = f . toLowerCase ( ) , ! /="/ . test ( f ) ) { var g = { } , l , v = c [ 4 ] ; c = ! ! c [ 5 ] ; if ( v ) for ( ; l = a . exec ( v ) ; ) { var e = l [ 1 ] . toLowerCase ( ) ; l = l [ 2 ] || l [ 3 ] || l [ 4 ] || "" ; g [ e ] = ! l && d [ e ] ? e : CKEDITOR . tools . htmlDecodeAttr ( l ) } this . onTagOpen ( f , g , c ) ; ! k && CKEDITOR . dtd . $cdata [ f ] && ( k = [ ] ) } } else if ( f = c [ 2 ] ) this . onComment ( f ) } if ( b . length > h ) this . onText ( b . substring ( h ,
b . length ) ) } } } ) ( ) ;
CKEDITOR . htmlParser . basicWriter = CKEDITOR . tools . createClass ( { $ : function ( ) { this . _ = { output : [ ] } } , proto : { openTag : function ( a ) { this . _ . output . push ( "\x3c" , a ) } , openTagClose : function ( a , d ) { d ? this . _ . output . push ( " /\x3e" ) : this . _ . output . push ( "\x3e" ) } , attribute : function ( a , d ) { "string" == typeof d && ( d = CKEDITOR . tools . htmlEncodeAttr ( d ) ) ; this . _ . output . push ( " " , a , '\x3d"' , d , '"' ) } , closeTag : function ( a ) { this . _ . output . push ( "\x3c/" , a , "\x3e" ) } , text : function ( a ) { this . _ . output . push ( a ) } , comment : function ( a ) { this . _ . output . push ( "\x3c!--" , a ,
"--\x3e" ) } , write : function ( a ) { this . _ . output . push ( a ) } , reset : function ( ) { this . _ . output = [ ] ; this . _ . indent = ! 1 } , getHtml : function ( a ) { var d = this . _ . output . join ( "" ) ; a && this . reset ( ) ; return d } } } ) ; "use strict" ;
@@ -310,13 +311,13 @@ CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlPar
( function ( ) { CKEDITOR . htmlParser . text = function ( a ) { this . value = a ; this . _ = { isBlockLike : ! 1 } } ; CKEDITOR . htmlParser . text . prototype = CKEDITOR . tools . extend ( new CKEDITOR . htmlParser . node , { type : CKEDITOR . NODE _TEXT , filter : function ( a , d ) { if ( ! ( this . value = a . onText ( d , this . value , this ) ) ) return this . remove ( ) , ! 1 } , writeHtml : function ( a , d ) { d && this . filter ( d ) ; a . text ( this . value ) } } ) } ) ( ) ; "use strict" ;
( function ( ) { CKEDITOR . htmlParser . cdata = function ( a ) { this . value = a } ; CKEDITOR . htmlParser . cdata . prototype = CKEDITOR . tools . extend ( new CKEDITOR . htmlParser . node , { type : CKEDITOR . NODE _TEXT , filter : function ( ) { } , writeHtml : function ( a ) { a . write ( this . value ) } } ) } ) ( ) ; "use strict" ; CKEDITOR . htmlParser . fragment = function ( ) { this . children = [ ] ; this . parent = null ; this . _ = { isBlockLike : ! 0 , hasInlineStarted : ! 1 } } ;
( function ( ) { function a ( a ) { return a . attributes [ "data-cke-survive" ] ? ! 1 : "a" == a . name && a . attributes . href || CKEDITOR . dtd . $removeEmpty [ a . name ] } var d = CKEDITOR . tools . extend ( { table : 1 , ul : 1 , ol : 1 , dl : 1 } , CKEDITOR . dtd . table , CKEDITOR . dtd . ul , CKEDITOR . dtd . ol , CKEDITOR . dtd . dl ) , b = { ol : 1 , ul : 1 } , c = CKEDITOR . tools . extend ( { } , { html : 1 } , CKEDITOR . dtd . html , CKEDITOR . dtd . body , CKEDITOR . dtd . head , { style : 1 , script : 1 } ) , f = { ul : "li" , ol : "li" , dl : "dd" , table : "tbody" , tbody : "tr" , thead : "tr" , tfoot : "tr" , tr : "td" } ; CKEDITOR . htmlParser . fragment . fromHtml =
function ( h , k , g ) { function l ( a ) { var b ; if ( 0 < n . length ) for ( var c = 0 ; c < n . length ; c ++ ) { var d = n [ c ] , e = d . name , f = CKEDITOR . dtd [ e ] , h = y . name && CKEDITOR . dtd [ y . name ] ; h && ! h [ e ] || a && f && ! f [ a ] && CKEDITOR . dtd [ a ] ? e == y . name && ( x ( y , y . parent , 1 ) , c -- ) : ( b || ( u ( ) , b = 1 ) , d = d . clone ( ) , d . parent = y , y = d , n . splice ( c , 1 ) , c -- ) } } function u ( ) { for ( ; L . length ; ) x ( L . shift ( ) , y ) } function e ( a ) { if ( a . _ . isBlockLike && "pre" != a . name && "textarea" != a . name ) { var b = a . children . length , c = a . children [ b - 1 ] , d ; c && c . type == CKEDITOR . NODE _TEXT && ( ( d = CKEDITOR . tools . rtrim ( c . value ) ) ?
c . value = d : a . children . length = b - 1 ) } } function x ( b , c , d ) { c = c || y || t ; var f = y ; void 0 === b . previous && ( w ( c , b ) && ( y = c , H . onTagOpen ( g , { } ) , b . returnPoint = c = y ) , e ( b ) , a ( b ) && ! b . children . length || c . add ( b ) , "pre" == b . name && ( I = ! 1 ) , "textarea" == b . name && ( F = ! 1 ) ) ; b . returnPoint ? ( y = b . returnPoint , delete b . returnPoint ) : y = d ? c : f } function w ( a , b ) { if ( ( a == t || "body" == a . name ) && g && ( ! a . name || CKEDITOR . dtd [ a . name ] [ g ] ) ) { var c , d ; return ( c = b . attributes && ( d = b . attributes [ "data-cke-real-element-type" ] ) ? d : b . name ) && c in CKEDITOR . dtd . $inline && ! ( c in CKEDITOR . dtd . head ) &&
! b . isOrphan || b . type == CKEDITOR . NODE _TEXT } } function z ( a , b ) { return a in CKEDITOR . dtd . $listItem || a in CKEDITOR . dtd . $tableContent ? a == b || "dt" == a && "dd" == b || "dd" == a && "dt" == b : ! 1 } var H = new CKEDITOR . htmlParser , t = k instanceof CKEDITOR . htmlParser . element ? k : "string" == typeof k ? new CKEDITOR . htmlParser . element ( k ) : new CKEDITOR . htmlParser . fragment , n = [ ] , L = [ ] , y = t , F = "textarea" == t . name , I = "pre" == t . name ; H . onTagOpen = function ( e , f , h , g ) { f = new CKEDITOR . htmlParser . element ( e , f ) ; f . isUnknown && h && ( f . isEmpty = ! 0 ) ; f . isOptionalClose = g ;
if ( a ( f ) ) n . push ( f ) ; else { if ( "pre" == e ) I = ! 0 ; else { if ( "br" == e && I ) { y . add ( new CKEDITOR . htmlParser . text ( "\n" ) ) ; return } "textarea" == e && ( F = ! 0 ) } if ( "br" == e ) L . push ( f ) ; else { for ( ; ! ( g = ( h = y . name ) ? CKEDITOR . dtd [ h ] || ( y . _ . isBlockLike ? CKEDITOR . dtd . div : CKEDITOR . dtd . span ) : c , f . isUnknown || y . isUnknown || g [ e ] ) ; ) if ( y . isOptionalClose ) H . onTagClose ( h ) ; else if ( e in b && h in b ) h = y . children , ( h = h [ h . length - 1 ] ) && "li" == h . name || x ( h = new CKEDITOR . htmlParser . element ( "li" ) , y ) , ! f . returnPoint && ( f . returnPoint = y ) , y = h ; else if ( e in CKEDITOR . dtd . $listItem &&
! z ( e , h ) ) H . onTagOpen ( "li" == e ? "ul" : "dl" , { } , 0 , 1 ) ; else if ( h in d && ! z ( e , h ) ) ! f . returnPoint && ( f . returnPoint = y ) , y = y . parent ; else if ( h in CKEDITOR . dtd . $inline && n . unshift ( y ) , y . parent ) x ( y , y . parent , 1 ) ; else { f . isOrphan = 1 ; break } l ( e ) ; u ( ) ; f . parent = y ; f . isEmpty ? x ( f ) : y = f } } } ; H . onTagClose = function ( a ) { for ( var b = n . length - 1 ; 0 <= b ; b -- ) if ( a == n [ b ] . name ) { n . splice ( b , 1 ) ; return } for ( var c = [ ] , d = [ ] , e = y ; e != t && e . name != a ; ) e . _ . isBlockLike || d . unshift ( e ) , c . push ( e ) , e = e . returnPoint || e . parent ; if ( e != t ) { for ( b = 0 ; b < c . length ; b ++ ) { var f = c [ b ] ; x ( f , f . parent ) } y =
e ; e . _ . isBlockLike && u ( ) ; x ( e , e . parent ) ; e == y && ( y = y . parent ) ; n = n . concat ( d ) } "body" == a && ( g = ! 1 ) } ; H . onText = function ( a ) { if ( ! ( y . _ . hasInlineStarted && ! L . length || I || F ) && ( a = CKEDITOR . tools . ltrim ( a ) , 0 === a . length ) ) return ; var b = y . name , e = b ? CKEDITOR . dtd [ b ] || ( y . _ . isBlockLike ? CKEDITOR . dtd . div : CKEDITOR . dtd . span ) : c ; if ( ! F && ! e [ "#" ] && b in d ) H . onTagOpen ( f [ b ] || "" ) , H . onText ( a ) ; else { u ( ) ; l ( ) ; I || F || ( a = a . replace ( /[\t\r\n ]{2,}|[\t\r\n]/g , " " ) ) ; a = new CKEDITOR . htmlParser . text ( a ) ; if ( w ( y , a ) ) this . onTagOpen ( g , { } , 0 , 1 ) ; y . add ( a ) } } ; H . onCDATA =
function ( a ) { y . add ( new CKEDITOR . htmlParser . cdata ( a ) ) } ; H . onComment = function ( a ) { u ( ) ; l ( ) ; y . add ( new CKEDITOR . htmlParser . comment ( a ) ) } ; H . parse ( h ) ; for ( u ( ) ; y != t ; ) x ( y , y . parent , 1 ) ; e ( t ) ; return t } ; CKEDITOR . htmlParser . fragment . prototype = { type : CKEDITOR . NODE _DOCUMENT _FRAGMENT , add : function ( a , b ) { isNaN ( b ) && ( b = this . children . length ) ; var c = 0 < b ? this . children [ b - 1 ] : null ; if ( c ) { if ( a . _ . isBlockLike && c . type == CKEDITOR . NODE _TEXT && ( c . value = CKEDITOR . tools . rtrim ( c . value ) , 0 === c . value . length ) ) { this . children . pop ( ) ; this . add ( a ) ; return } c . next =
function ( h , k , g ) { function l ( a ) { var b ; if ( 0 < m . length ) for ( var c = 0 ; c < m . length ; c ++ ) { var d = m [ c ] , f = d . name , e = CKEDITOR . dtd [ f ] , h = y . name && CKEDITOR . dtd [ y . name ] ; h && ! h [ f ] || a && e && ! e [ a ] && CKEDITOR . dtd [ a ] ? f == y . name && ( z ( y , y . parent , 1 ) , c -- ) : ( b || ( v ( ) , b = 1 ) , d = d . clone ( ) , d . parent = y , y = d , m . splice ( c , 1 ) , c -- ) } } function v ( ) { for ( ; M . length ; ) z ( M . shift ( ) , y ) } function e ( a ) { if ( a . _ . isBlockLike && "pre" != a . name && "textarea" != a . name ) { var b = a . children . length , c = a . children [ b - 1 ] , d ; c && c . type == CKEDITOR . NODE _TEXT && ( ( d = CKEDITOR . tools . rtrim ( c . value ) ) ?
c . value = d : a . children . length = b - 1 ) } } function z ( b , c , d ) { c = c || y || u ; var f = y ; void 0 === b . previous && ( w ( c , b ) && ( y = c , F . onTagOpen ( g , { } ) , b . returnPoint = c = y ) , e ( b ) , a ( b ) && ! b . children . length || c . add ( b ) , "pre" == b . name && ( H = ! 1 ) , "textarea" == b . name && ( G = ! 1 ) ) ; b . returnPoint ? ( y = b . returnPoint , delete b . returnPoint ) : y = d ? c : f } function w ( a , b ) { if ( ( a == u || "body" == a . name ) && g && ( ! a . name || CKEDITOR . dtd [ a . name ] [ g ] ) ) { var c , d ; return ( c = b . attributes && ( d = b . attributes [ "data-cke-real-element-type" ] ) ? d : b . name ) && c in CKEDITOR . dtd . $inline && ! ( c in CKEDITOR . dtd . head ) &&
! b . isOrphan || b . type == CKEDITOR . NODE _TEXT } } function A ( a , b ) { return a in CKEDITOR . dtd . $listItem || a in CKEDITOR . dtd . $tableContent ? a == b || "dt" == a && "dd" == b || "dd" == a && "dt" == b : ! 1 } var F = new CKEDITOR . htmlParser , u = k instanceof CKEDITOR . htmlParser . element ? k : "string" == typeof k ? new CKEDITOR . htmlParser . element ( k ) : new CKEDITOR . htmlParser . fragment , m = [ ] , M = [ ] , y = u , G = "textarea" == u . name , H = "pre" == u . name ; F . onTagOpen = function ( f , e , h , g ) { e = new CKEDITOR . htmlParser . element ( f , e ) ; e . isUnknown && h && ( e . isEmpty = ! 0 ) ; e . isOptionalClose = g ;
if ( a ( e ) ) m . push ( e ) ; else { if ( "pre" == f ) H = ! 0 ; else { if ( "br" == f && H ) { y . add ( new CKEDITOR . htmlParser . text ( "\n" ) ) ; return } "textarea" == f && ( G = ! 0 ) } if ( "br" == f ) M . push ( e ) ; else { for ( ; ! ( g = ( h = y . name ) ? CKEDITOR . dtd [ h ] || ( y . _ . isBlockLike ? CKEDITOR . dtd . div : CKEDITOR . dtd . span ) : c , e . isUnknown || y . isUnknown || g [ f ] ) ; ) if ( y . isOptionalClose ) F . onTagClose ( h ) ; else if ( f in b && h in b ) h = y . children , ( h = h [ h . length - 1 ] ) && "li" == h . name || z ( h = new CKEDITOR . htmlParser . element ( "li" ) , y ) , ! e . returnPoint && ( e . returnPoint = y ) , y = h ; else if ( f in CKEDITOR . dtd . $listItem &&
! A ( f , h ) ) F . onTagOpen ( "li" == f ? "ul" : "dl" , { } , 0 , 1 ) ; else if ( h in d && ! A ( f , h ) ) ! e . returnPoint && ( e . returnPoint = y ) , y = y . parent ; else if ( h in CKEDITOR . dtd . $inline && m . unshift ( y ) , y . parent ) z ( y , y . parent , 1 ) ; else { e . isOrphan = 1 ; break } l ( f ) ; v ( ) ; e . parent = y ; e . isEmpty ? z ( e ) : y = e } } } ; F . onTagClose = function ( a ) { for ( var b = m . length - 1 ; 0 <= b ; b -- ) if ( a == m [ b ] . name ) { m . splice ( b , 1 ) ; return } for ( var c = [ ] , d = [ ] , f = y ; f != u && f . name != a ; ) f . _ . isBlockLike || d . unshift ( f ) , c . push ( f ) , f = f . returnPoint || f . parent ; if ( f != u ) { for ( b = 0 ; b < c . length ; b ++ ) { var e = c [ b ] ; z ( e , e . parent ) } y =
f ; f . _ . isBlockLike && v ( ) ; z ( f , f . parent ) ; f == y && ( y = y . parent ) ; m = m . concat ( d ) } "body" == a && ( g = ! 1 ) } ; F . onText = function ( a ) { if ( ! ( y . _ . hasInlineStarted && ! M . length || H || G ) && ( a = CKEDITOR . tools . ltrim ( a ) , 0 === a . length ) ) return ; var b = y . name , e = b ? CKEDITOR . dtd [ b ] || ( y . _ . isBlockLike ? CKEDITOR . dtd . div : CKEDITOR . dtd . span ) : c ; if ( ! G && ! e [ "#" ] && b in d ) F . onTagOpen ( f [ b ] || "" ) , F . onText ( a ) ; else { v ( ) ; l ( ) ; H || G || ( a = a . replace ( /[\t\r\n ]{2,}|[\t\r\n]/g , " " ) ) ; a = new CKEDITOR . htmlParser . text ( a ) ; if ( w ( y , a ) ) this . onTagOpen ( g , { } , 0 , 1 ) ; y . add ( a ) } } ; F . onCDATA =
function ( a ) { y . add ( new CKEDITOR . htmlParser . cdata ( a ) ) } ; F . onComment = function ( a ) { v ( ) ; l ( ) ; y . add ( new CKEDITOR . htmlParser . comment ( a ) ) } ; F . parse ( h ) ; for ( v ( ) ; y != u ; ) z ( y , y . parent , 1 ) ; e ( u ) ; return u } ; CKEDITOR . htmlParser . fragment . prototype = { type : CKEDITOR . NODE _DOCUMENT _FRAGMENT , add : function ( a , b ) { isNaN ( b ) && ( b = this . children . length ) ; var c = 0 < b ? this . children [ b - 1 ] : null ; if ( c ) { if ( a . _ . isBlockLike && c . type == CKEDITOR . NODE _TEXT && ( c . value = CKEDITOR . tools . rtrim ( c . value ) , 0 === c . value . length ) ) { this . children . pop ( ) ; this . add ( a ) ; return } c . next =
a } a . previous = c ; a . parent = this ; this . children . splice ( b , 0 , a ) ; this . _ . hasInlineStarted || ( this . _ . hasInlineStarted = a . type == CKEDITOR . NODE _TEXT || a . type == CKEDITOR . NODE _ELEMENT && ! a . _ . isBlockLike ) } , filter : function ( a , b ) { b = this . getFilterContext ( b ) ; a . onRoot ( b , this ) ; this . filterChildren ( a , ! 1 , b ) } , filterChildren : function ( a , b , c ) { if ( this . childrenFilteredBy != a . id ) { c = this . getFilterContext ( c ) ; if ( b && ! this . parent ) a . onRoot ( c , this ) ; this . childrenFilteredBy = a . id ; for ( b = 0 ; b < this . children . length ; b ++ ) ! 1 === this . children [ b ] . filter ( a ,
c ) && b -- } } , writeHtml : function ( a , b ) { b && this . filter ( b ) ; this . writeChildrenHtml ( a ) } , writeChildrenHtml : function ( a , b , c ) { var d = this . getFilterContext ( ) ; if ( c && ! this . parent && b ) b . onRoot ( d , this ) ; b && this . filterChildren ( b , ! 1 , d ) ; b = 0 ; c = this . children ; for ( d = c . length ; b < d ; b ++ ) c [ b ] . writeHtml ( a ) } , forEach : function ( a , b , c ) { if ( ! ( c || b && this . type != b ) ) var d = a ( this ) ; if ( ! 1 !== d ) { c = this . children ; for ( var f = 0 ; f < c . length ; f ++ ) d = c [ f ] , d . type == CKEDITOR . NODE _ELEMENT ? d . forEach ( a , b ) : b && d . type != b || a ( d ) } } , getFilterContext : function ( a ) { return a ||
{ } } } } ) ( ) ; "use strict" ;
@@ -324,36 +325,36 @@ c)&&b--}},writeHtml:function(a,b){b&&this.filter(b);this.writeChildrenHtml(a)},w
c . priority ) ; "number" != typeof f && ( f = 10 ) ; "object" != typeof c && ( c = { } ) ; a . elementNames && this . elementNameRules . addMany ( a . elementNames , f , c ) ; a . attributeNames && this . attributeNameRules . addMany ( a . attributeNames , f , c ) ; a . elements && d ( this . elementsRules , a . elements , f , c ) ; a . attributes && d ( this . attributesRules , a . attributes , f , c ) ; a . text && this . textRules . add ( a . text , f , c ) ; a . comment && this . commentRules . add ( a . comment , f , c ) ; a . root && this . rootRules . add ( a . root , f , c ) } , applyTo : function ( a ) { a . filter ( this ) } , onElementName : function ( a , c ) { return this . elementNameRules . execOnName ( a ,
c ) } , onAttributeName : function ( a , c ) { return this . attributeNameRules . execOnName ( a , c ) } , onText : function ( a , c , d ) { return this . textRules . exec ( a , c , d ) } , onComment : function ( a , c , d ) { return this . commentRules . exec ( a , c , d ) } , onRoot : function ( a , c ) { return this . rootRules . exec ( a , c ) } , onElement : function ( a , c ) { for ( var d = [ this . elementsRules [ "^" ] , this . elementsRules [ c . name ] , this . elementsRules . $ ] , h , k = 0 ; 3 > k ; k ++ ) if ( h = d [ k ] ) { h = h . exec ( a , c , this ) ; if ( ! 1 === h ) return null ; if ( h && h != c ) return this . onNode ( a , h ) ; if ( c . parent && ! c . name ) break } return c } ,
onNode : function ( a , c ) { var d = c . type ; return d == CKEDITOR . NODE _ELEMENT ? this . onElement ( a , c ) : d == CKEDITOR . NODE _TEXT ? new CKEDITOR . htmlParser . text ( this . onText ( a , c . value , c ) ) : d == CKEDITOR . NODE _COMMENT ? new CKEDITOR . htmlParser . comment ( this . onComment ( a , c . value , c ) ) : null } , onAttribute : function ( a , c , d , h ) { return ( d = this . attributesRules [ d ] ) ? d . exec ( a , h , c , this ) : h } } } ) ; CKEDITOR . htmlParser . filterRulesGroup = a ; a . prototype = { add : function ( a , c , d ) { this . rules . splice ( this . findIndex ( c ) , 0 , { value : a , priority : c , options : d } ) } , addMany : function ( a ,
c , d ) { for ( var h = [ this . findIndex ( c ) , 0 ] , k = 0 , g = a . length ; k < g ; k ++ ) h . push ( { value : a [ k ] , priority : c , options : d } ) ; this . rules . splice . apply ( this . rules , h ) } , findIndex : function ( a ) { for ( var c = this . rules , d = c . length - 1 ; 0 <= d && a < c [ d ] . priority ; ) d -- ; return d + 1 } , exec : function ( a , c ) { var d = c instanceof CKEDITOR . htmlParser . node || c instanceof CKEDITOR . htmlParser . fragment , h = Array . prototype . slice . call ( arguments , 1 ) , k = this . rules , g = k . length , l , u , e , x ; for ( x = 0 ; x < g ; x ++ ) if ( d && ( l = c . type , u = c . name ) , e = k [ x ] , ! ( a . nonEditable && ! e . options . applyToAll ||
a . nestedEditable && e . options . excludeNestedEditable ) ) { e = e . value . apply ( null , h ) ; if ( ! 1 === e || d && e && ( e . name != u || e . type != l ) ) return e ; null != e && ( h [ 0 ] = c = e ) } return c } , execOnName : function ( a , c ) { for ( var d = 0 , h = this . rules , k = h . length , g ; c && d < k ; d ++ ) g = h [ d ] , a . nonEditable && ! g . options . applyToAll || a . nestedEditable && g . options . excludeNestedEditable || ( c = c . replace ( g . value [ 0 ] , g . value [ 1 ] ) ) ; return c } } } ) ( ) ;
( function ( ) { function a ( a , d ) { function e ( a ) { return a || CKEDITOR . env . needsNbspFiller ? new CKEDITOR . htmlParser . text ( " " ) : new CKEDITOR . htmlParser . element ( "br" , { "data-cke-bogus" : 1 } ) } function p ( a , d ) { return function ( f ) { if ( f . type != CKEDITOR . NODE _DOCUMENT _FRAGMENT ) { var q = [ ] , p = b ( f ) , m , r ; if ( p ) for ( B ( p , 1 ) && q . push ( p ) ; p ; ) h ( p ) && ( m = c ( p ) ) && B ( m ) && ( ( r = c ( m ) ) && ! h ( r ) ? q . push ( m ) : ( e ( g ) . insertAfter ( m ) , m . remove ( ) ) ) , p = p . previous ; for ( p = 0 ; p < q . length ; p ++ ) q [ p ] . remove ( ) ; if ( q = ! a || ! 1 !== ( "function" == typeof d ? d ( f ) : d ) ) g || CKEDITOR . env . needsBrFiller ||
f . type != CKEDITOR . NODE _DOCUMENT _FRAGMENT ? g || CKEDITOR . env . needsBrFiller || ! ( 7 < document . documentMode || f . name in CKEDITOR . dtd . tr || f . name in CKEDITOR . dtd . $listItem ) ? ( q = b ( f ) , q = ! q || "form" == f . name && "input" == q . name ) : q = ! 1 : q = ! 1 ; q && f . add ( e ( a ) ) } } } function B ( a , b ) { if ( ( ! g || CKEDITOR . env . needsBrFiller ) && a . type == CKEDITOR . NODE _ELEMENT && "br" == a . name && ! a . attributes [ "data-cke-eol" ] ) return ! 0 ; var c ; return a . type == CKEDITOR . NODE _TEXT && ( c = a . value . match ( L ) ) && ( c . index && ( ( new CKEDITOR . htmlParser . text ( a . value . substring ( 0 , c . index ) ) ) . insertBefore ( a ) ,
a . value = c [ 0 ] ) , ! CKEDITOR . env . needsBrFiller && g && ( ! b || a . parent . name in v ) || ! g && ( ( c = a . previous ) && "br" == c . name || ! c || h ( c ) ) ) ? ! 0 : ! 1 } var r = { elements : { } } , g = "html" == d , v = CKEDITOR . tools . extend ( { } , m ) , D ; for ( D in v ) "#" in F [ D ] || delete v [ D ] ; for ( D in v ) r . elements [ D ] = p ( g , a . config . fillEmptyBlocks ) ; r . root = p ( g , ! 1 ) ; r . elements . br = function ( a ) { return function ( b ) { if ( b . parent . type != CKEDITOR . NODE _DOCUMENT _FRAGMENT ) { var d = b . attributes ; if ( "data-cke-bogus" in d || "data-cke-eol" in d ) delete d [ "data-cke-bogus" ] ; else { for ( d = b . next ; d && f ( d ) ; ) d =
d . next ; var q = c ( b ) ; ! d && h ( b . parent ) ? k ( b . parent , e ( a ) ) : h ( d ) && q && ! h ( q ) && e ( a ) . insertBefore ( d ) } } } } ( g ) ; return r } function d ( a , b ) { return a != CKEDITOR . ENTER _BR && ! 1 !== b ? a == CKEDITOR . ENTER _DIV ? "div" : "p" : ! 1 } function b ( a ) { for ( a = a . children [ a . children . length - 1 ] ; a && f ( a ) ; ) a = a . previous ; return a } function c ( a ) { for ( a = a . previous ; a && f ( a ) ; ) a = a . previous ; return a } function f ( a ) { return a . type == CKEDITOR . NODE _TEXT && ! CKEDITOR . tools . trim ( a . value ) || a . type == CKEDITOR . NODE _ELEMENT && a . attributes [ "data-cke-bookmark" ] } function h ( a ) { return a &&
( a . type == CKEDITOR . NODE _ELEMENT && a . name in m || a . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT ) } function k ( a , b ) { var c = a . children [ a . children . length - 1 ] ; a . children . push ( b ) ; b . parent = a ; c && ( c . next = b , b . previous = c ) } function g ( a ) { a = a . attributes ; "false" != a . contenteditable && ( a [ "data-cke-editable" ] = a . contenteditable ? "true" : 1 ) ; a . contenteditable = "false" } function l ( a ) { a = a . attributes ; switch ( a [ "data-cke-editable" ] ) { case "true" : a . contenteditable = "true" ; break ; case "1" : delete a . contenteditable } } function u ( a ) { return a . replace ( r ,
function ( a , b , c ) { return "\x3c" + b + c . replace ( D , function ( a , b ) { return B . test ( b ) && - 1 == c . indexOf ( "data-cke-saved-" + b ) ? " data-cke-saved-" + a + " data-cke-" + CKEDITOR . rnd + "-" + a : a } ) + "\x3e" } ) } function e ( a , b ) { return a . replace ( b , function ( a , b , c ) { 0 === a . indexOf ( "\x3ctextarea" ) && ( a = b + z ( c ) . replace ( /</g , "\x26lt;" ) . replace ( />/g , "\x26gt;" ) + "\x3c/textarea\x3e" ) ; return "\x3ccke:encoded\x3e" + encodeURIComponent ( a ) + "\x3c/cke:encoded\x3e" } ) } function x ( a ) { return a . replace ( R , function ( a , b ) { return decodeURIComponent ( b ) } ) } function w ( a ) { return a . replace ( /\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g ,
function ( a ) { return "\x3c!--" + y + "{C}" + encodeURIComponent ( a ) . replace ( /--/g , "%2D%2D" ) + "--\x3e" } ) } function z ( a ) { return a . replace ( /\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g , function ( a , b ) { return decodeURIComponent ( b ) } ) } function H ( a , b ) { var c = b . _ . dataStore ; return a . replace ( /\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g , function ( a , b ) { return decodeURIComponent ( b ) } ) . replace ( /\{cke_protected_(\d+)\}/g , function ( a , b ) { return c && c [ b ] || "" } ) } function t ( a , b ) { var c = [ ] , d = b . config . protectedSource , e = b . _ . dataStore || ( b . _ . dataStore =
{ id : 1 } ) , f = /<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g , d = [ /<script[\s\S]*?(<\/script>|$)/gi , /<noscript[\s\S]*?<\/noscript>/gi , /<meta[\s\S]*?\/?>/gi ] . concat ( d ) ; a = a . replace ( /\x3c!--[\s\S]*?--\x3e/g , function ( a ) { return "\x3c!--{cke_tempcomment}" + ( c . push ( a ) - 1 ) + "--\x3e" } ) ; for ( var p = 0 ; p < d . length ; p ++ ) a = a . replace ( d [ p ] , function ( a ) { a = a . replace ( f , function ( a , b , d ) { return c [ d ] } ) ; return /cke_temp(comment)?/ . test ( a ) ? a : "\x3c!--{cke_temp}" + ( c . push ( a ) - 1 ) + "--\x3e" } ) ; a = a . replace ( f , function ( a , b , d ) { return "\x3c!--" + y + ( b ? "{C}" :
"" ) + encodeURIComponent ( c [ d ] ) . replace ( /--/g , "%2D%2D" ) + "--\x3e" } ) ; a = a . replace ( /<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g , function ( a ) { return a . replace ( /\x3c!--\{cke_protected\}([^>]*)--\x3e/g , function ( a , b ) { e [ e . id ] = decodeURIComponent ( b ) ; return "{cke_protected_" + e . id ++ + "}" } ) } ) ; return a = a . replace ( /<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g , function ( a , c , d , e ) { return "\x3c" + c + d + "\x3e" + H ( z ( e ) , b ) + "\x3c/" + c + "\x3e" } ) } var n ; CKEDITOR . htmlDataProcessor = function ( b ) { var c ,
f , m = this ; this . editor = b ; this . dataFilter = c = new CKEDITOR . htmlParser . filter ; this . htmlFilter = f = new CKEDITOR . htmlParser . filter ; this . writer = new CKEDITOR . htmlParser . basicWriter ; c . addRules ( C ) ; c . addRules ( K , { applyToAll : ! 0 } ) ; c . addRules ( a ( b , "data" ) , { applyToAll : ! 0 } ) ; f . addRules ( A ) ; f . addRules ( M , { applyToAll : ! 0 } ) ; f . addRules ( a ( b , "html" ) , { applyToAll : ! 0 } ) ; b . on ( "toHtml" , function ( a ) { a = a . data ; var c = a . dataValue , f , c = n ( c ) , c = t ( c , b ) , c = e ( c , S ) , c = u ( c ) , c = e ( c , v ) , c = c . replace ( p , "$1cke:$2" ) , c = c . replace ( O , "\x3ccke:$1$2\x3e\x3c/cke:$1\x3e" ) ,
c = c . replace ( /(<pre\b[^>]*>)(\r\n|\n)/g , "$1$2$2" ) , c = c . replace ( /([^a-z0-9<\-])(on\w{3,})(?!>)/gi , "$1data-cke-" + CKEDITOR . rnd + "-$2" ) ; f = a . context || b . editable ( ) . getName ( ) ; var m ; CKEDITOR . env . ie && 9 > CKEDITOR . env . version && "pre" == f && ( f = "div" , c = "\x3cpre\x3e" + c + "\x3c/pre\x3e" , m = 1 ) ; f = b . document . createElement ( f ) ; f . setHtml ( "a" + c ) ; c = f . getHtml ( ) . substr ( 1 ) ; c = c . replace ( new RegExp ( "data-cke-" + CKEDITOR . rnd + "-" , "ig" ) , "" ) ; m && ( c = c . replace ( /^<pre>|<\/pre>$/gi , "" ) ) ; c = c . replace ( N , "$1$2" ) ; c = x ( c ) ; c = z ( c ) ; f = ! 1 === a . fixForBody ? ! 1 :
d ( a . enterMode , b . config . autoParagraph ) ; c = CKEDITOR . htmlParser . fragment . fromHtml ( c , a . context , f ) ; f && ( m = c , ! m . children . length && CKEDITOR . dtd [ m . name ] [ f ] && ( f = new CKEDITOR . htmlParser . element ( f ) , m . add ( f ) ) ) ; a . dataValue = c } , null , null , 5 ) ; b . on ( "toHtml" , function ( a ) { a . data . filter . applyTo ( a . data . dataValue , ! 0 , a . data . dontFilter , a . data . enterMode ) && b . fire ( "dataFiltered" ) } , null , null , 6 ) ; b . on ( "toHtml" , function ( a ) { a . data . dataValue . filterChildren ( m . dataFilter , ! 0 ) } , null , null , 10 ) ; b . on ( "toHtml" , function ( a ) { a = a . data ; var b = a . dataValue ,
c = new CKEDITOR . htmlParser . basicWriter ; b . writeChildrenHtml ( c ) ; b = c . getHtml ( ! 0 ) ; a . dataValue = w ( b ) } , null , null , 15 ) ; b . on ( "toDataFormat" , function ( a ) { var c = a . data . dataValue ; a . data . enterMode != CKEDITOR . ENTER _BR && ( c = c . replace ( /^<br *\/?>/i , "" ) ) ; a . data . dataValue = CKEDITOR . htmlParser . fragment . fromHtml ( c , a . data . context , d ( a . data . enterMode , b . config . autoParagraph ) ) } , null , null , 5 ) ; b . on ( "toDataFormat" , function ( a ) { a . data . dataValue . filterChildren ( m . htmlFilter , ! 0 ) } , null , null , 10 ) ; b . on ( "toDataFormat" , function ( a ) { a . data . filter . applyTo ( a . data . dataValue ,
! 1 , ! 0 ) } , null , null , 11 ) ; b . on ( "toDataFormat" , function ( a ) { var c = a . data . dataValue , d = m . writer ; d . reset ( ) ; c . writeChildrenHtml ( d ) ; c = d . getHtml ( ! 0 ) ; c = z ( c ) ; c = H ( c , b ) ; a . data . dataValue = c } , null , null , 15 ) } ; CKEDITOR . htmlDataProcessor . prototype = { toHtml : function ( a , b , c , d ) { var e = this . editor , f , p , m , h ; b && "object" == typeof b ? ( f = b . context , c = b . fixForBody , d = b . dontFilter , p = b . filter , m = b . enterMode , h = b . protectedWhitespaces ) : f = b ; f || null === f || ( f = e . editable ( ) . getName ( ) ) ; return e . fire ( "toHtml" , { dataValue : a , context : f , fixForBody : c , dontFilter : d ,
filter : p || e . filter , enterMode : m || e . enterMode , protectedWhitespaces : h } ) . dataValue } , toDataFormat : function ( a , b ) { var c , d , e ; b && ( c = b . context , d = b . filter , e = b . enterMode ) ; c || null === c || ( c = this . editor . editable ( ) . getName ( ) ) ; return this . editor . fire ( "toDataFormat" , { dataValue : a , filter : d || this . editor . filter , context : c , enterMode : e || this . editor . enterMode } ) . dataValue } } ; var L = /(?: |\xa0)$/ , y = "{cke_protected}" , F = CKEDITOR . dtd , I = "caption colgroup col thead tfoot tbody" . split ( " " ) , m = CKEDITOR . tools . extend ( { } , F . $blockLimit ,
F . $block ) , C = { elements : { input : g , textarea : g } } , K = { attributeNames : [ [ /^on/ , "data-cke-pa-on" ] , [ /^srcdoc/ , "data-cke-pa-srcdoc" ] , [ /^data-cke-expando$/ , "" ] ] , elements : { iframe : function ( a ) { if ( a . attributes && a . attributes . src ) { var b = a . attributes . src . toLowerCase ( ) . replace ( /[^a-z]/gi , "" ) ; if ( 0 === b . indexOf ( "javascript" ) || 0 === b . indexOf ( "data" ) ) a . attributes [ "data-cke-pa-src" ] = a . attributes . src , delete a . attributes . src } } } } , A = { elements : { embed : function ( a ) { var b = a . parent ; if ( b && "object" == b . name ) { var c = b . attributes . width , b = b . attributes . height ;
c && ( a . attributes . width = c ) ; b && ( a . attributes . height = b ) } } , a : function ( a ) { var b = a . attributes ; if ( ! ( a . children . length || b . name || b . id || a . attributes [ "data-cke-saved-name" ] ) ) return ! 1 } } } , M = { elementNames : [ [ /^cke:/ , "" ] , [ /^\?xml:namespace$/ , "" ] ] , attributeNames : [ [ /^data-cke-(saved|pa)-/ , "" ] , [ /^data-cke-.*/ , "" ] , [ "hidefocus" , "" ] ] , elements : { $ : function ( a ) { var b = a . attributes ; if ( b ) { if ( b [ "data-cke-temp" ] ) return ! 1 ; for ( var c = [ "name" , "href" , "src" ] , d , e = 0 ; e < c . length ; e ++ ) d = "data-cke-saved-" + c [ e ] , d in b && delete b [ c [ e ] ] } return a } ,
table : function ( a ) { a . children . slice ( 0 ) . sort ( function ( a , b ) { var c , d ; a . type == CKEDITOR . NODE _ELEMENT && b . type == a . type && ( c = CKEDITOR . tools . indexOf ( I , a . name ) , d = CKEDITOR . tools . indexOf ( I , b . name ) ) ; - 1 < c && - 1 < d && c != d || ( c = a . parent ? a . getIndex ( ) : - 1 , d = b . parent ? b . getIndex ( ) : - 1 ) ; return c > d ? 1 : - 1 } ) } , param : function ( a ) { a . children = [ ] ; a . isEmpty = ! 0 ; return a } , span : function ( a ) { "Apple-style-span" == a . attributes [ "class" ] && delete a . name } , html : function ( a ) { delete a . attributes . contenteditable ; delete a . attributes [ "class" ] } , body : function ( a ) { delete a . attributes . spellcheck ;
delete a . attributes . contenteditable } , style : function ( a ) { var b = a . children [ 0 ] ; b && b . value && ( b . value = CKEDITOR . tools . trim ( b . value ) ) ; a . attributes . type || ( a . attributes . type = "text/css" ) } , title : function ( a ) { var b = a . children [ 0 ] ; ! b && k ( a , b = new CKEDITOR . htmlParser . text ) ; b . value = a . attributes [ "data-cke-title" ] || "" } , input : l , textarea : l } , attributes : { "class" : function ( a ) { return CKEDITOR . tools . ltrim ( a . replace ( /(?:^|\s+)cke_[^\s]*/g , "" ) ) || ! 1 } } } ; CKEDITOR . env . ie && ( M . attributes . style = function ( a ) { return a . replace ( /(^|;)([^\:]+)/g ,
function ( a ) { return a . toLowerCase ( ) } ) } ) ; var r = /<(a|area|img|input|source)\b([^>]*)>/gi , D = /([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi , B = /^(href|src|name)$/i , v = /(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi , S = /(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi , R = /<cke:encoded>([^<]*)<\/cke:encoded>/gi , p = /(<\/?)((?:object|embed|param|html|body|head|title)([\s][^>]*)?>)/gi , N = /(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi , O = /<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi ;
n = function ( ) { function a ( c ) { return CKEDITOR . tools . array . reduce ( c . split ( "" ) , function ( a , c ) { var d = c . toLowerCase ( ) , e = c . toUpperCase ( ) , f = b ( d ) ; d !== e && ( f += "|" + b ( e ) ) ; return a + ( "(" + f + ")" ) } , "" ) } function b ( 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 e in c ) c [ e ] && ( a += "|" + c [ e ] ) ; return a } var c = new RegExp ( "(" + a ( "\x3ccke:encoded\x3e" ) + "(.*?)" + a ( "\x3c/cke:encoded\x3e" ) + ")|(" + a ( "\x3c" ) + a ( "/" ) +
c , d ) { for ( var h = [ this . findIndex ( c ) , 0 ] , k = 0 , g = a . length ; k < g ; k ++ ) h . push ( { value : a [ k ] , priority : c , options : d } ) ; this . rules . splice . apply ( this . rules , h ) } , findIndex : function ( a ) { for ( var c = this . rules , d = c . length - 1 ; 0 <= d && a < c [ d ] . priority ; ) d -- ; return d + 1 } , exec : function ( a , c ) { var d = c instanceof CKEDITOR . htmlParser . node || c instanceof CKEDITOR . htmlParser . fragment , h = Array . prototype . slice . call ( arguments , 1 ) , k = this . rules , g = k . length , l , v , e , z ; for ( z = 0 ; z < g ; z ++ ) if ( d && ( l = c . type , v = c . name ) , e = k [ z ] , ! ( a . nonEditable && ! e . options . applyToAll ||
a . nestedEditable && e . options . excludeNestedEditable ) ) { e = e . value . apply ( null , h ) ; if ( ! 1 === e || d && e && ( e . name != v || e . type != l ) ) return e ; null != e && ( h [ 0 ] = c = e ) } return c } , execOnName : function ( a , c ) { for ( var d = 0 , h = this . rules , k = h . length , g ; c && d < k ; d ++ ) g = h [ d ] , a . nonEditable && ! g . options . applyToAll || a . nestedEditable && g . options . excludeNestedEditable || ( c = c . replace ( g . value [ 0 ] , g . value [ 1 ] ) ) ; return c } } } ) ( ) ;
( function ( ) { function a ( a , d ) { function e ( a ) { return a || CKEDITOR . env . needsNbspFiller ? new CKEDITOR . htmlParser . text ( " " ) : new CKEDITOR . htmlParser . element ( "br" , { "data-cke-bogus" : 1 } ) } function r ( a , d ) { return function ( f ) { if ( f . type != CKEDITOR . NODE _DOCUMENT _FRAGMENT ) { var p = [ ] , r = b ( f ) , n , q ; if ( r ) for ( t ( r , 1 ) && p . push ( r ) ; r ; ) h ( r ) && ( n = c ( r ) ) && t ( n ) && ( ( q = c ( n ) ) && ! h ( q ) ? p . push ( n ) : ( e ( g ) . insertAfter ( n ) , n . remove ( ) ) ) , r = r . previous ; for ( r = 0 ; r < p . length ; r ++ ) p [ r ] . remove ( ) ; if ( p = ! a || ! 1 !== ( "function" == typeof d ? d ( f ) : d ) ) g || CKEDITOR . env . needsBrFiller ||
f . type != CKEDITOR . NODE _DOCUMENT _FRAGMENT ? g || CKEDITOR . env . needsBrFiller || ! ( 7 < document . documentMode || f . name in CKEDITOR . dtd . tr || f . name in CKEDITOR . dtd . $listItem ) ? ( p = b ( f ) , p = ! p || "form" == f . name && "input" == p . name ) : p = ! 1 : p = ! 1 ; p && f . add ( e ( a ) ) } } } function t ( a , b ) { if ( ( ! g || CKEDITOR . env . needsBrFiller ) && a . type == CKEDITOR . NODE _ELEMENT && "br" == a . name && ! a . attributes [ "data-cke-eol" ] ) return ! 0 ; var c ; return a . type == CKEDITOR . NODE _TEXT && ( c = a . value . match ( M ) ) && ( c . index && ( ( new CKEDITOR . htmlParser . text ( a . value . substring ( 0 , c . index ) ) ) . insertBefore ( a ) ,
a . value = c [ 0 ] ) , ! CKEDITOR . env . needsBrFiller && g && ( ! b || a . parent . name in x ) || ! g && ( ( c = a . previous ) && "br" == c . name || ! c || h ( c ) ) ) ? ! 0 : ! 1 } var q = { elements : { } } , g = "html" == d , x = CKEDITOR . tools . extend ( { } , n ) , D ; for ( D in x ) "#" in G [ D ] || delete x [ D ] ; for ( D in x ) q . elements [ D ] = r ( g , a . config . fillEmptyBlocks ) ; q . root = r ( g , ! 1 ) ; q . elements . br = function ( a ) { return function ( b ) { if ( b . parent . type != CKEDITOR . NODE _DOCUMENT _FRAGMENT ) { var d = b . attributes ; if ( "data-cke-bogus" in d || "data-cke-eol" in d ) delete d [ "data-cke-bogus" ] ; else { for ( d = b . next ; d && f ( d ) ; ) d =
d . next ; var p = c ( b ) ; ! d && h ( b . parent ) ? k ( b . parent , e ( a ) ) : h ( d ) && p && ! h ( p ) && e ( a ) . insertBefore ( d ) } } } } ( g ) ; return q } function d ( a , b ) { return a != CKEDITOR . ENTER _BR && ! 1 !== b ? a == CKEDITOR . ENTER _DIV ? "div" : "p" : ! 1 } function b ( a ) { for ( a = a . children [ a . children . length - 1 ] ; a && f ( a ) ; ) a = a . previous ; return a } function c ( a ) { for ( a = a . previous ; a && f ( a ) ; ) a = a . previous ; return a } function f ( a ) { return a . type == CKEDITOR . NODE _TEXT && ! CKEDITOR . tools . trim ( a . value ) || a . type == CKEDITOR . NODE _ELEMENT && a . attributes [ "data-cke-bookmark" ] } function h ( a ) { return a &&
( a . type == CKEDITOR . NODE _ELEMENT && a . name in n || a . type == CKEDITOR . NODE _DOCUMENT _FRAGMENT ) } function k ( a , b ) { var c = a . children [ a . children . length - 1 ] ; a . children . push ( b ) ; b . parent = a ; c && ( c . next = b , b . previous = c ) } function g ( a ) { a = a . attributes ; "false" != a . contenteditable && ( a [ "data-cke-editable" ] = a . contenteditable ? "true" : 1 ) ; a . contenteditable = "false" } function l ( a ) { a = a . attributes ; switch ( a [ "data-cke-editable" ] ) { case "true" : a . contenteditable = "true" ; break ; case "1" : delete a . contenteditable } } function v ( a ) { return a . replace ( q ,
function ( a , b , c ) { return "\x3c" + b + c . replace ( D , function ( a , b ) { return r . test ( b ) && - 1 == c . indexOf ( "data-cke-saved-" + b ) ? " data-cke-saved-" + a + " data-cke-" + CKEDITOR . rnd + "-" + a : a } ) + "\x3e" } ) } function e ( a , b ) { return a . replace ( b , function ( a , b , c ) { 0 === a . indexOf ( "\x3ctextarea" ) && ( a = b + A ( c ) . replace ( /</g , "\x26lt;" ) . replace ( />/g , "\x26gt;" ) + "\x3c/textarea\x3e" ) ; return "\x3ccke:encoded\x3e" + encodeURIComponent ( a ) + "\x3c/cke:encoded\x3e" } ) } function z ( a ) { return a . replace ( S , function ( a , b ) { return decodeURIComponent ( b ) } ) } function w ( a ) { return a . replace ( /\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g ,
function ( a ) { return "\x3c!--" + y + "{C}" + encodeURIComponent ( a ) . replace ( /--/g , "%2D%2D" ) + "--\x3e" } ) } function A ( a ) { return a . replace ( /\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g , function ( a , b ) { return decodeURIComponent ( b ) } ) } function F ( a , b ) { var c = b . _ . dataStore ; return a . replace ( /\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g , function ( a , b ) { return decodeURIComponent ( b ) } ) . replace ( /\{cke_protected_(\d+)\}/g , function ( a , b ) { return c && c [ b ] || "" } ) } function u ( a , b ) { var c = [ ] , d = b . config . protectedSource , f = b . _ . dataStore || ( b . _ . dataStore =
{ id : 1 } ) , e = /<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g , d = [ /<script[\s\S]*?(<\/script>|$)/gi , /<noscript[\s\S]*?<\/noscript>/gi , /<meta[\s\S]*?\/?>/gi ] . concat ( d ) ; a = a . replace ( /\x3c!--[\s\S]*?--\x3e/g , function ( a ) { return "\x3c!--{cke_tempcomment}" + ( c . push ( a ) - 1 ) + "--\x3e" } ) ; for ( var r = 0 ; r < d . length ; r ++ ) a = a . replace ( d [ r ] , function ( a ) { a = a . replace ( e , function ( a , b , d ) { return c [ d ] } ) ; return /cke_temp(comment)?/ . test ( a ) ? a : "\x3c!--{cke_temp}" + ( c . push ( a ) - 1 ) + "--\x3e" } ) ; a = a . replace ( e , function ( a , b , d ) { return "\x3c!--" + y + ( b ? "{C}" :
"" ) + encodeURIComponent ( c [ d ] ) . replace ( /--/g , "%2D%2D" ) + "--\x3e" } ) ; a = a . replace ( /<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g , function ( a ) { return a . replace ( /\x3c!--\{cke_protected\}([^>]*)--\x3e/g , function ( a , b ) { f [ f . id ] = decodeURIComponent ( b ) ; return "{cke_protected_" + f . id ++ + "}" } ) } ) ; return a = a . replace ( /<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g , function ( a , c , d , f ) { return "\x3c" + c + d + "\x3e" + F ( A ( f ) , b ) + "\x3c/" + c + "\x3e" } ) } var m ; CKEDITOR . htmlDataProcessor = function ( b ) { var c ,
f , r = this ; this . editor = b ; this . dataFilter = c = new CKEDITOR . htmlParser . filter ; this . htmlFilter = f = new CKEDITOR . htmlParser . filter ; this . writer = new CKEDITOR . htmlParser . basicWriter ; c . addRules ( C ) ; c . addRules ( L , { applyToAll : ! 0 } ) ; c . addRules ( a ( b , "data" ) , { applyToAll : ! 0 } ) ; f . addRules ( B ) ; f . addRules ( N , { applyToAll : ! 0 } ) ; f . addRules ( a ( b , "html" ) , { applyToAll : ! 0 } ) ; b . on ( "toHtml" , function ( a ) { a = a . data ; var c = a . dataValue , f , c = m ( c ) , c = u ( c , b ) , c = e ( c , T ) , c = v ( c ) , c = e ( c , x ) , c = c . replace ( t , "$1cke:$2" ) , c = c . replace ( I , "\x3ccke:$1$2\x3e\x3c/cke:$1\x3e" ) ,
c = c . replace ( /(<pre\b[^>]*>)(\r\n|\n)/g , "$1$2$2" ) , c = c . replace ( /([^a-z0-9<\-])(on\w{3,})(?!>)/gi , "$1data-cke-" + CKEDITOR . rnd + "-$2" ) ; f = a . context || b . editable ( ) . getName ( ) ; var r ; CKEDITOR . env . ie && 9 > CKEDITOR . env . version && "pre" == f && ( f = "div" , c = "\x3cpre\x3e" + c + "\x3c/pre\x3e" , r = 1 ) ; f = b . document . createElement ( f ) ; f . setHtml ( "a" + c ) ; c = f . getHtml ( ) . substr ( 1 ) ; c = c . replace ( new RegExp ( "data-cke-" + CKEDITOR . rnd + "-" , "ig" ) , "" ) ; r && ( c = c . replace ( /^<pre>|<\/pre>$/gi , "" ) ) ; c = c . replace ( P , "$1$2" ) ; c = z ( c ) ; c = A ( c ) ; f = ! 1 === a . fixForBody ? ! 1 :
d ( a . enterMode , b . config . autoParagraph ) ; c = CKEDITOR . htmlParser . fragment . fromHtml ( c , a . context , f ) ; f && ( r = c , ! r . children . length && CKEDITOR . dtd [ r . name ] [ f ] && ( f = new CKEDITOR . htmlParser . element ( f ) , r . add ( f ) ) ) ; a . dataValue = c } , null , null , 5 ) ; b . on ( "toHtml" , function ( a ) { a . data . filter . applyTo ( a . data . dataValue , ! 0 , a . data . dontFilter , a . data . enterMode ) && b . fire ( "dataFiltered" ) } , null , null , 6 ) ; b . on ( "toHtml" , function ( a ) { a . data . dataValue . filterChildren ( r . dataFilter , ! 0 ) } , null , null , 10 ) ; b . on ( "toHtml" , function ( a ) { a = a . data ; var b = a . dataValue ,
c = new CKEDITOR . htmlParser . basicWriter ; b . writeChildrenHtml ( c ) ; b = c . getHtml ( ! 0 ) ; a . dataValue = w ( b ) } , null , null , 15 ) ; b . on ( "toDataFormat" , function ( a ) { var c = a . data . dataValue ; a . data . enterMode != CKEDITOR . ENTER _BR && ( c = c . replace ( /^<br *\/?>/i , "" ) ) ; a . data . dataValue = CKEDITOR . htmlParser . fragment . fromHtml ( c , a . data . context , d ( a . data . enterMode , b . config . autoParagraph ) ) } , null , null , 5 ) ; b . on ( "toDataFormat" , function ( a ) { a . data . dataValue . filterChildren ( r . htmlFilter , ! 0 ) } , null , null , 10 ) ; b . on ( "toDataFormat" , function ( a ) { a . data . filter . applyTo ( a . data . dataValue ,
! 1 , ! 0 ) } , null , null , 11 ) ; b . on ( "toDataFormat" , function ( a ) { var c = a . data . dataValue , d = r . writer ; d . reset ( ) ; c . writeChildrenHtml ( d ) ; c = d . getHtml ( ! 0 ) ; c = A ( c ) ; c = F ( c , b ) ; a . data . dataValue = c } , null , null , 15 ) } ; CKEDITOR . htmlDataProcessor . prototype = { toHtml : function ( a , b , c , d ) { var f = this . editor , e , r , n , h ; b && "object" == typeof b ? ( e = b . context , c = b . fixForBody , d = b . dontFilter , r = b . filter , n = b . enterMode , h = b . protectedWhitespaces ) : e = b ; e || null === e || ( e = f . editable ( ) . getName ( ) ) ; return f . fire ( "toHtml" , { dataValue : a , context : e , fixForBody : c , dontFilter : d ,
filter : r || f . filter , enterMode : n || f . enterMode , protectedWhitespaces : h } ) . dataValue } , toDataFormat : function ( a , b ) { var c , d , f ; b && ( c = b . context , d = b . filter , f = b . enterMode ) ; c || null === c || ( c = this . editor . editable ( ) . getName ( ) ) ; return this . editor . fire ( "toDataFormat" , { dataValue : a , filter : d || this . editor . filter , context : c , enterMode : f || this . editor . enterMode } ) . dataValue } } ; var M = /(?: |\xa0)$/ , y = "{cke_protected}" , G = CKEDITOR . dtd , H = "caption colgroup col thead tfoot tbody" . split ( " " ) , n = CKEDITOR . tools . extend ( { } , G . $blockLimit ,
G . $block ) , C = { elements : { input : g , textarea : g } } , L = { attributeNames : [ [ /^on/ , "data-cke-pa-on" ] , [ /^srcdoc/ , "data-cke-pa-srcdoc" ] , [ /^data-cke-expando$/ , "" ] ] , elements : { iframe : function ( a ) { if ( a . attributes && a . attributes . src ) { var b = a . attributes . src . toLowerCase ( ) . replace ( /[^a-z]/gi , "" ) ; if ( 0 === b . indexOf ( "javascript" ) || 0 === b . indexOf ( "data" ) ) a . attributes [ "data-cke-pa-src" ] = a . attributes . src , delete a . attributes . src } } } } , B = { elements : { embed : function ( a ) { var b = a . parent ; if ( b && "object" == b . name ) { var c = b . attributes . width , b = b . attributes . height ;
c && ( a . attributes . width = c ) ; b && ( a . attributes . height = b ) } } , a : function ( a ) { var b = a . attributes ; if ( ! ( a . children . length || b . name || b . id || a . attributes [ "data-cke-saved-name" ] ) ) return ! 1 } } } , N = { elementNames : [ [ /^cke:/ , "" ] , [ /^\?xml:namespace$/ , "" ] ] , attributeNames : [ [ /^data-cke-(saved|pa)-/ , "" ] , [ /^data-cke-.*/ , "" ] , [ "hidefocus" , "" ] ] , elements : { $ : function ( a ) { var b = a . attributes ; if ( b ) { if ( b [ "data-cke-temp" ] ) return ! 1 ; for ( var c = [ "name" , "href" , "src" ] , d , f = 0 ; f < c . length ; f ++ ) d = "data-cke-saved-" + c [ f ] , d in b && delete b [ c [ f ] ] } return a } ,
table : function ( a ) { a . children . slice ( 0 ) . sort ( function ( a , b ) { var c , d ; a . type == CKEDITOR . NODE _ELEMENT && b . type == a . type && ( c = CKEDITOR . tools . indexOf ( H , a . name ) , d = CKEDITOR . tools . indexOf ( H , b . name ) ) ; - 1 < c && - 1 < d && c != d || ( c = a . parent ? a . getIndex ( ) : - 1 , d = b . parent ? b . getIndex ( ) : - 1 ) ; return c > d ? 1 : - 1 } ) } , param : function ( a ) { a . children = [ ] ; a . isEmpty = ! 0 ; return a } , span : function ( a ) { "Apple-style-span" == a . attributes [ "class" ] && delete a . name } , html : function ( a ) { delete a . attributes . contenteditable ; delete a . attributes [ "class" ] } , body : function ( a ) { delete a . attributes . spellcheck ;
delete a . attributes . contenteditable } , style : function ( a ) { var b = a . children [ 0 ] ; b && b . value && ( b . value = CKEDITOR . tools . trim ( b . value ) ) ; a . attributes . type || ( a . attributes . type = "text/css" ) } , title : function ( a ) { var b = a . children [ 0 ] ; ! b && k ( a , b = new CKEDITOR . htmlParser . text ) ; b . value = a . attributes [ "data-cke-title" ] || "" } , input : l , textarea : l } , attributes : { "class" : function ( a ) { return CKEDITOR . tools . ltrim ( a . replace ( /(?:^|\s+)cke_[^\s]*/g , "" ) ) || ! 1 } } } ; CKEDITOR . env . ie && ( N . attributes . style = function ( a ) { return a . replace ( /(^|;)([^\:]+)/g ,
function ( a ) { return a . toLowerCase ( ) } ) } ) ; var q = /<(a|area|img|input|source)\b([^>]*)>/gi , D = /([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi , r = /^(href|src|name)$/i , x = /(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi , T = /(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi , S = /<cke:encoded>([^<]*)<\/cke:encoded>/gi , t = /(<\/?)((?:object|embed|param|html|body|head|title)([\s][^>]*)?>)/gi , P = /(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi , I = /<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi ;
m = function ( ) { function a ( c ) { return CKEDITOR . tools . array . reduce ( c . split ( "" ) , function ( a , c ) { var d = c . toLowerCase ( ) , f = c . toUpperCase ( ) , e = b ( d ) ; d !== f && ( e += "|" + b ( f ) ) ; return a + ( "(" + e + ")" ) } , "" ) } function b ( 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 f in c ) c [ f ] && ( a += "|" + c [ f ] ) ; return a } var c = new RegExp ( "(" + a ( "\x3ccke:encoded\x3e" ) + "(.*?)" + a ( "\x3c/cke:encoded\x3e" ) + ")|(" + a ( "\x3c" ) + a ( "/" ) +
"?" + a ( "cke:encoded\x3e" ) + ")" , "gi" ) , d = new RegExp ( "((" + a ( "{cke_protected" ) + ")(_[0-9]*)?" + a ( "}" ) + ")" , "gi" ) ; return function ( a ) { return a . replace ( c , "" ) . replace ( d , "" ) } } ( ) } ) ( ) ; "use strict" ;
CKEDITOR . htmlParser . element = function ( a , d ) { this . name = a ; this . attributes = d || { } ; this . children = [ ] ; var b = a || "" , c = b . match ( /^cke:(.*)/ ) ; c && ( b = c [ 1 ] ) ; b = ! ! ( CKEDITOR . dtd . $nonBodyContent [ b ] || CKEDITOR . dtd . $block [ b ] || CKEDITOR . dtd . $listItem [ b ] || CKEDITOR . dtd . $tableContent [ b ] || CKEDITOR . dtd . $nonEditable [ b ] || "br" == b ) ; this . isEmpty = ! ! CKEDITOR . dtd . $empty [ a ] ; this . isUnknown = ! CKEDITOR . dtd [ a ] ; this . _ = { isBlockLike : b , hasInlineStarted : this . isEmpty || ! b } } ;
CKEDITOR . htmlParser . cssStyle = function ( a ) { var d = { } ; ( ( a instanceof CKEDITOR . htmlParser . element ? a . attributes . style : a ) || "" ) . replace ( /"/g , '"' ) . replace ( /\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g , function ( a , c , f ) { "font-family" == c && ( f = f . replace ( /["']/g , "" ) ) ; d [ c . toLowerCase ( ) ] = f } ) ; return { rules : d , populate : function ( a ) { var c = this . toString ( ) ; c && ( a instanceof CKEDITOR . dom . element ? a . setAttribute ( "style" , c ) : a instanceof CKEDITOR . htmlParser . element ? a . attributes . style = c : a . style = c ) } , toString : function ( ) { var a = [ ] , c ;
for ( c in d ) d [ c ] && a . push ( c , ":" , d [ c ] , ";" ) ; return a . join ( "" ) } } } ;
( function ( ) { function a ( a ) { return function ( b ) { return b . type == CKEDITOR . NODE _ELEMENT && ( "string" == typeof a ? b . name == a : b . name in a ) } } var d = function ( a , b ) { a = a [ 0 ] ; b = b [ 0 ] ; return a < b ? - 1 : a > b ? 1 : 0 } , b = CKEDITOR . htmlParser . fragment . prototype ; CKEDITOR . htmlParser . element . prototype = CKEDITOR . tools . extend ( new CKEDITOR . htmlParser . node , { type : CKEDITOR . NODE _ELEMENT , add : b . add , clone : function ( ) { return new CKEDITOR . htmlParser . element ( this . name , this . attributes ) } , filter : function ( a , b ) { var d = this , k , g ; b = d . getFilterContext ( b ) ; if ( ! d . parent ) a . onRoot ( b ,
d ) ; for ( ; ; ) { k = d . name ; if ( ! ( g = a . onElementName ( b , k ) ) ) return this . remove ( ) , ! 1 ; d . name = g ; if ( ! ( d = a . onElement ( b , d ) ) ) return this . remove ( ) , ! 1 ; if ( d !== this ) return this . replaceWith ( d ) , ! 1 ; if ( d . name == k ) break ; if ( d . type != CKEDITOR . NODE _ELEMENT ) return this . replaceWith ( d ) , ! 1 ; if ( ! d . name ) return this . replaceWithChildren ( ) , ! 1 } k = d . attributes ; var l , u ; for ( l in k ) { for ( g = k [ l ] ; ; ) if ( u = a . onAttributeName ( b , l ) ) if ( u != l ) delete k [ l ] , l = u ; else break ; else { delete k [ l ] ; break } u && ( ! 1 === ( g = a . onAttribute ( b , d , u , g ) ) ? delete k [ u ] : k [ u ] = g ) } d . isEmpty ||
this . filterChildren ( a , ! 1 , b ) ; return ! 0 } , filterChildren : b . filterChildren , writeHtml : function ( a , b ) { b && this . filter ( b ) ; var h = this . name , k = [ ] , g = this . attributes , l , u ; a . openTag ( h , g ) ; for ( l in g ) k . push ( [ l , g [ l ] ] ) ; a . sortAttributes && k . sort ( d ) ; l = 0 ; for ( u = k . length ; l < u ; l ++ ) g = k [ l ] , a . attribute ( g [ 0 ] , g [ 1 ] ) ; a . openTagClose ( h , this . isEmpty ) ; this . writeChildrenHtml ( a ) ; this . isEmpty || a . closeTag ( h ) } , writeChildrenHtml : b . writeChildrenHtml , replaceWithChildren : function ( ) { for ( var a = this . children , b = a . length ; b ; ) a [ -- b ] . insertAfter ( this ) ;
d ) ; for ( ; ; ) { k = d . name ; if ( ! ( g = a . onElementName ( b , k ) ) ) return this . remove ( ) , ! 1 ; d . name = g ; if ( ! ( d = a . onElement ( b , d ) ) ) return this . remove ( ) , ! 1 ; if ( d !== this ) return this . replaceWith ( d ) , ! 1 ; if ( d . name == k ) break ; if ( d . type != CKEDITOR . NODE _ELEMENT ) return this . replaceWith ( d ) , ! 1 ; if ( ! d . name ) return this . replaceWithChildren ( ) , ! 1 } k = d . attributes ; var l , v ; for ( l in k ) { for ( g = k [ l ] ; ; ) if ( v = a . onAttributeName ( b , l ) ) if ( v != l ) delete k [ l ] , l = v ; else break ; else { delete k [ l ] ; break } v && ( ! 1 === ( g = a . onAttribute ( b , d , v , g ) ) ? delete k [ v ] : k [ v ] = g ) } d . isEmpty ||
this . filterChildren ( a , ! 1 , b ) ; return ! 0 } , filterChildren : b . filterChildren , writeHtml : function ( a , b ) { b && this . filter ( b ) ; var h = this . name , k = [ ] , g = this . attributes , l , v ; a . openTag ( h , g ) ; for ( l in g ) k . push ( [ l , g [ l ] ] ) ; a . sortAttributes && k . sort ( d ) ; l = 0 ; for ( v = k . length ; l < v ; l ++ ) g = k [ l ] , a . attribute ( g [ 0 ] , g [ 1 ] ) ; a . openTagClose ( h , this . isEmpty ) ; this . writeChildrenHtml ( a ) ; this . isEmpty || a . closeTag ( h ) } , writeChildrenHtml : b . writeChildrenHtml , replaceWithChildren : function ( ) { for ( var a = this . children , b = a . length ; b ; ) a [ -- b ] . insertAfter ( this ) ;
this . remove ( ) } , forEach : b . forEach , getFirst : function ( b ) { if ( ! b ) return this . children . length ? this . children [ 0 ] : null ; "function" != typeof b && ( b = a ( b ) ) ; for ( var d = 0 , h = this . children . length ; d < h ; ++ d ) if ( b ( this . children [ d ] ) ) return this . children [ d ] ; 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 , d = a . length ; b < d ; ++ 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 ) , d = this . clone ( ) , k = 0 ; k < b . length ; ++ k ) b [ k ] . parent = d ; d . children = b ; b [ 0 ] && ( b [ 0 ] . previous = null ) ; 0 < a && ( this . children [ a - 1 ] . next = null ) ; this . parent . add ( d , this . getIndex ( ) + 1 ) ; return d } , find : function ( a , b ) { void 0 === b && ( b = ! 1 ) ; var d = [ ] , k ; for ( k = 0 ; k < this . children . length ; k ++ ) { var g = this . children [ k ] ; "function" == typeof a && a ( g ) ? d . push ( g ) : "string" == typeof a && g . name === a && d . push ( g ) ;
b && g . find && ( d = d . concat ( g . find ( a , b ) ) ) } return d } , findOne : function ( a , b ) { var d = null , k = CKEDITOR . tools . array . find ( this . children , function ( g ) { var k = "function" === typeof a ? a ( g ) : g . name === a ; if ( k || ! b ) return k ; g . children && g . findOne && ( d = g . findOne ( a , ! 0 ) ) ; return ! ! d } ) ; return d || k || 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+|^)" +
@@ -364,164 +365,165 @@ CKEDITOR.add=function(a){function d(){CKEDITOR.currentInstance==a&&(CKEDITOR.cur
CKEDITOR . TRISTATE _DISABLED = 0 ;
( function ( ) { CKEDITOR . inline = function ( a , d ) { a = CKEDITOR . editor . _getEditorElement ( a ) ; if ( ! a ) return null ; var b = new CKEDITOR . editor ( d , a , CKEDITOR . ELEMENT _MODE _INLINE ) , c = a . is ( "textarea" ) ? a : null ; c ? ( b . setData ( c . getValue ( ) , null , ! 0 ) , a = CKEDITOR . dom . element . createFromHtml ( '\x3cdiv contenteditable\x3d"' + ! ! b . readOnly + '" class\x3d"cke_textarea_inline"\x3e' + c . getValue ( ) + "\x3c/div\x3e" , CKEDITOR . document ) , a . insertAfter ( c ) , c . hide ( ) , c . $ . form && b . _attachToForm ( ) ) : ( d && "undefined" !== typeof d . readOnly && ! d . readOnly && a . setAttribute ( "contenteditable" ,
"true" ) , b . setData ( a . getHtml ( ) , null , ! 0 ) ) ; b . on ( "loaded" , function ( ) { b . fire ( "uiReady" ) ; b . editable ( a ) ; b . container = a ; b . ui . contentsElement = a ; b . setData ( b . getData ( 1 ) ) ; b . resetDirty ( ) ; b . fire ( "contentDom" ) ; b . mode = "wysiwyg" ; b . fire ( "mode" ) ; b . status = "ready" ; b . fireOnce ( "instanceReady" ) ; CKEDITOR . fire ( "instanceReady" , null , b ) } , null , null , 1E4 ) ; b . on ( "destroy" , function ( ) { var a = b . container ; c && a && ( a . clearCustomData ( ) , a . remove ( ) ) ; c && c . show ( ) ; b . element . clearCustomData ( ) ; delete b . element } ) ; return b } ; CKEDITOR . inlineAll = function ( ) { var a ,
d , b ; for ( b in CKEDITOR . dtd . $editable ) for ( var c = CKEDITOR . document . getElementsByTag ( b ) , f = 0 , h = c . count ( ) ; f < h ; f ++ ) a = c . getItem ( f ) , "true" = =a . getAttribute ( "contenteditable" ) && ( d = { element : a , config : { } } , ! 1 !== CKEDITOR . fire ( "inline" , d ) && CKEDITOR . inline ( a , d . config ) ) } ; CKEDITOR . domReady ( function ( ) { ! CKEDITOR . disableAutoInline && CKEDITOR . inlineAll ( ) } ) } ) ( ) ; CKEDITOR . replaceClass = "ckeditor" ;
d , b ; for ( b in CKEDITOR . dtd . $editable ) for ( var c = CKEDITOR . document . getElementsByTag ( b ) , f = 0 , h = c . count ( ) ; f < h ; f ++ ) a = c . getItem ( f ) , "true" ! =a . getAttribute ( "contenteditable" ) || a . getEditor ( ) || ( d = { element : a , config : { } } , ! 1 !== CKEDITOR . fire ( "inline" , d ) && CKEDITOR . inline ( a , d . config ) ) } ; CKEDITOR . domReady ( function ( ) { ! CKEDITOR . disableAutoInline && CKEDITOR . inlineAll ( ) } ) } ) ( ) ; CKEDITOR . replaceClass = "ckeditor" ;
( function ( ) { function a ( a , f , h , k ) { a = CKEDITOR . editor . _getEditorElement ( a ) ; if ( ! a ) return null ; var g = new CKEDITOR . editor ( f , a , k ) ; k == CKEDITOR . ELEMENT _MODE _REPLACE && ( a . setStyle ( "visibility" , "hidden" ) , g . _ . required = a . hasAttribute ( "required" ) , a . removeAttribute ( "required" ) ) ; h && g . setData ( h , null , ! 0 ) ; g . on ( "loaded" , function ( ) { g . isDestroyed ( ) || g . isDetached ( ) || ( b ( g ) , k == CKEDITOR . ELEMENT _MODE _REPLACE && g . config . autoUpdateElement && a . $ . form && g . _attachToForm ( ) , g . setMode ( g . config . startupMode , function ( ) { g . resetDirty ( ) ; g . status =
"ready" ; g . fireOnce ( "instanceReady" ) ; CKEDITOR . fire ( "instanceReady" , null , g ) } ) ) } ) ; g . on ( "destroy" , d ) ; return g } function d ( ) { var a = this . container , b = this . element ; a && ( a . clearCustomData ( ) , a . remove ( ) ) ; b && ( b . clearCustomData ( ) , this . elementMode == CKEDITOR . ELEMENT _MODE _REPLACE && ( b . show ( ) , this . _ . required && b . setAttribute ( "required" , "required" ) ) , delete this . element ) } function b ( a ) { var b = a . name , d = a . element , k = a . elementMode , g = a . fire ( "uiSpace" , { space : "top" , html : "" } ) . html , l = a . fire ( "uiSpace" , { space : "bottom" , html : "" } ) . html ,
u = 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 ( u . output ( { id : a . id , name : b , langDir : a . lang . dir , langCode : a . langCode , voiceLabel : a . title , topHtml : g ? '\x3cspan id\x3d"' + a . ui . spaceId ( "top" ) + '" class\x3d"cke_top cke_reset_all" role\x3d"presentation" style\x3d"height:auto"\x3e' + g + "\x3c/span\x3e" : "" , contentId : a . ui . spaceId ( "contents" ) , bottomHtml : l ? '\x3cspan id\x3d"' + a . ui . spaceId ( "bottom" ) + '" class\x3d"cke_bottom cke_reset_all" role\x3d"presentation"\x3e' + l + "\x3c/span\x3e" : "" , outerEl : CKEDITOR . env . ie ? "span" : "div" } ) ) ; k == CKEDITOR . ELEMENT _MODE _REPLACE ?
v = 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 ( v . output ( { id : a . id , name : b , langDir : a . lang . dir , langCode : a . langCode , voiceLabel : a . title , topHtml : g ? '\x3cspan id\x3d"' + a . ui . spaceId ( "top" ) + '" class\x3d"cke_top cke_reset_all" role\x3d"presentation" style\x3d"height:auto"\x3e' + g + "\x3c/span\x3e" : "" , contentId : a . ui . spaceId ( "contents" ) , bottomHtml : l ? '\x3cspan id\x3d"' + a . ui . spaceId ( "bottom" ) + '" class\x3d"cke_bottom cke_reset_all" role\x3d"presentation"\x3e' + l + "\x3c/span\x3e" : "" , outerEl : CKEDITOR . env . ie ? "span" : "div" } ) ) ; k == CKEDITOR . ELEMENT _MODE _REPLACE ?
( d . hide ( ) , b . insertAfter ( d ) ) : d . append ( b ) ; a . container = b ; a . ui . contentsElement = a . ui . space ( "contents" ) ; g && a . ui . space ( "top" ) . unselectable ( ) ; l && a . ui . space ( "bottom" ) . unselectable ( ) ; d = a . config . width ; k = a . config . height ; d && b . setStyle ( "width" , CKEDITOR . tools . cssLength ( d ) ) ; k && a . ui . space ( "contents" ) . setStyle ( "height" , CKEDITOR . tools . cssLength ( k ) ) ; b . disableContextMenu ( ) ; CKEDITOR . env . webkit && b . on ( "focus" , function ( ) { a . focus ( ) } ) ; a . fireOnce ( "uiReady" ) } CKEDITOR . replace = function ( b , d ) { return a ( b , d , null , CKEDITOR . ELEMENT _MODE _REPLACE ) } ;
CKEDITOR . appendTo = function ( b , d , h ) { return a ( b , d , h , CKEDITOR . ELEMENT _MODE _APPENDTO ) } ; CKEDITOR . replaceAll = function ( ) { for ( var a = document . getElementsByTagName ( "textarea" ) , b = 0 ; b < a . length ; b ++ ) { var d = null , k = a [ b ] ; if ( k . name || k . id ) { if ( "string" == typeof arguments [ 0 ] ) { if ( ! ( new RegExp ( "(?:^|\\s)" + arguments [ 0 ] + "(?:$|\\s)" ) ) . test ( k . className ) ) continue } else if ( "function" == typeof arguments [ 0 ] && ( d = { } , ! 1 === arguments [ 0 ] ( k , d ) ) ) continue ; this . replace ( k , d ) } } } ; CKEDITOR . editor . prototype . addMode = function ( a , b ) { ( this . _ . modes || ( this . _ . modes =
{ } ) ) [ a ] = b } ; CKEDITOR . editor . prototype . setMode = function ( a , b ) { var d = this , k = this . _ . modes ; if ( a != d . mode && k && k [ a ] ) { d . fire ( "beforeSetMode" , a ) ; if ( d . mode ) { var g = d . checkDirty ( ) , k = d . _ . previousModeData , l , u = 0 ; d . fire ( "beforeModeUnload" ) ; d . editable ( 0 ) ; d . _ . previousMode = d . mode ; d . _ . previousModeData = l = d . getData ( 1 ) ; "source" == d . mode && k == l && ( d . fire ( "lockSnapshot" , { forceUpdate : ! 0 } ) , u = 1 ) ; d . ui . space ( "contents" ) . setHtml ( "" ) ; d . mode = "" } else d . _ . previousModeData = d . getData ( 1 ) ; this . _ . modes [ a ] ( function ( ) { d . mode = a ; void 0 !== g && ! g &&
d . resetDirty ( ) ; u ? d . fire ( "unlockSnapshot" ) : "wysiwyg" == a && d . fire ( "saveSnapshot" ) ; setTimeout ( function ( ) { d . isDestroyed ( ) || d . isDetached ( ) || ( d . fire ( "mode" ) , b && b . call ( d ) ) } , 0 ) } ) } } ; CKEDITOR . editor . prototype . resize = function ( a , b , d , k ) { var g = this . container , l = this . ui . space ( "contents" ) , u = CKEDITOR . env . webkit && this . document && this . document . getWindow ( ) . $ . frameElement ; k = k ? this . container . getFirst ( function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT && a . hasClass ( "cke_inner" ) } ) : g ; a = CKEDITOR . tools . convertToPx ( CKEDITOR . tools . cssLength ( a ) ) ;
k . setSize ( "width" , a , ! 0 ) ; u && ( u . style . width = "1%" ) ; b = CKEDITOR . tools . convertToPx ( CKEDITOR . tools . cssLength ( b ) ) ; var e = ( k . $ . offsetHeight || 0 ) - ( l . $ . clientHeight || 0 ) , g = Math . max ( b - ( d ? 0 : e ) , 0 ) ; b = d ? b + e : b ; l . setStyle ( "height" , CKEDITOR . tools . cssLength ( g ) ) ; u && ( u . style . width = "100%" ) ; this . fire ( "resize" , { outerHeight : b , contentsHeight : g , outerWidth : a || k . getSize ( "width" ) } ) } ; CKEDITOR . editor . prototype . getResizable = function ( a ) { return a ? this . ui . space ( "contents" ) : this . container } ; CKEDITOR . domReady ( function ( ) { CKEDITOR . replaceClass &&
{ } ) ) [ a ] = b } ; CKEDITOR . editor . prototype . setMode = function ( a , b ) { var d = this , k = this . _ . modes ; if ( a != d . mode && k && k [ a ] ) { d . fire ( "beforeSetMode" , a ) ; if ( d . mode ) { var g = d . checkDirty ( ) , k = d . _ . previousModeData , l , v = 0 ; d . fire ( "beforeModeUnload" ) ; d . editable ( 0 ) ; d . _ . previousMode = d . mode ; d . _ . previousModeData = l = d . getData ( 1 ) ; "source" == d . mode && k == l && ( d . fire ( "lockSnapshot" , { forceUpdate : ! 0 } ) , v = 1 ) ; d . ui . space ( "contents" ) . setHtml ( "" ) ; d . mode = "" } else d . _ . previousModeData = d . getData ( 1 ) ; this . _ . modes [ a ] ( function ( ) { d . mode = a ; void 0 !== g && ! g &&
d . resetDirty ( ) ; v ? d . fire ( "unlockSnapshot" ) : "wysiwyg" == a && d . fire ( "saveSnapshot" ) ; setTimeout ( function ( ) { d . isDestroyed ( ) || d . isDetached ( ) || ( d . fire ( "mode" ) , b && b . call ( d ) ) } , 0 ) } ) } } ; CKEDITOR . editor . prototype . resize = function ( a , b , d , k ) { var g = this . container , l = this . ui . space ( "contents" ) , v = CKEDITOR . env . webkit && this . document && this . document . getWindow ( ) . $ . frameElement ; k = k ? this . container . getFirst ( function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT && a . hasClass ( "cke_inner" ) } ) : g ; if ( a || 0 === a ) a = CKEDITOR . tools . convertToPx ( CKEDITOR . tools . cssLength ( a ) ) ;
k . setSize ( "width" , a , ! 0 ) ; v && ( v . style . width = "1%" ) ; b = CKEDITOR . tools . convertToPx ( CKEDITOR . tools . cssLength ( b ) ) ; var e = ( k . $ . offsetHeight || 0 ) - ( l . $ . clientHeight || 0 ) , g = Math . max ( b - ( d ? 0 : e ) , 0 ) ; b = d ? b + e : b ; l . setStyle ( "height" , CKEDITOR . tools . cssLength ( g ) ) ; v && ( v . style . width = "100%" ) ; this . fire ( "resize" , { outerHeight : b , contentsHeight : g , outerWidth : a || k . getSize ( "width" ) } ) } ; CKEDITOR . editor . prototype . getResizable = function ( a ) { return a ? this . ui . space ( "contents" ) : this . container } ; CKEDITOR . domReady ( function ( ) { CKEDITOR . replaceClass &&
CKEDITOR . replaceAll ( CKEDITOR . replaceClass ) } ) } ) ( ) ; CKEDITOR . config . startupMode = "wysiwyg" ;
( function ( ) { function a ( a ) { var b = a . editor , e = a . data . path , f = e . blockLimit , g = a . data . selection , r = g . getRanges ( ) [ 0 ] , h ; if ( CKEDITOR . env . gecko || CKEDITOR . env . ie && CKEDITOR . env . needsBrFiller ) if ( g = d ( g , e ) ) g . appendBogus ( ) , h = CKEDITOR . env . ie && ! CKEDITOR . env . edge || CKEDITOR . env . edge && b . _ . previousActive ; k ( b , e . block , f ) && r . collapsed && ! r . getCommonAncestor ( ) . isReadOnly ( ) && ( e = r . clone ( ) , e . enlarge ( CKEDITOR . ENLARGE _BLOCK _CONTENTS ) , f = new CKEDITOR . dom . walker ( e ) , f . guard = function ( a ) { return ! c ( a ) || a . type == CKEDITOR . NODE _COMMENT || a . isReadOnly ( ) } ,
! f . checkForward ( ) || e . checkStartOfBlock ( ) && e . checkEndOfBlock ( ) ) && ( b = r . fixBlock ( ! 0 , b . activeEnterMode == CKEDITOR . ENTER _DIV ? "div" : "p" ) , CKEDITOR . env . needsBrFiller || ( b = b . getFirst ( c ) ) && b . type == CKEDITOR . NODE _TEXT && CKEDITOR . tools . trim ( b . getText ( ) ) . match ( /^(?: |\xa0)$/ ) && b . remove ( ) , h = 1 , a . cancel ( ) ) ; h && r . select ( ) } function d ( a , b ) { if ( a . isFake ) return 0 ; var d = b . block || b . blockLimit , e = d && d . getLast ( c ) ; if ( ! ( ! d || ! d . isBlockBoundary ( ) || e && e . type == CKEDITOR . NODE _ELEMENT && e . isBlockBoundary ( ) || d . is ( "pre" ) || d . getBogus ( ) ) ) return d }
function b ( a ) { var b = a . data . getTarget ( ) ; b . is ( "input" ) && ( b = b . getAttribute ( "type" ) , "submit" != b && "reset" != b || a . data . preventDefault ( ) ) } function c ( a ) { return x ( a ) && w ( a ) } function f ( a , b ) { return function ( c ) { var d = c . data . $ . toElement || c . data . $ . fromElement || c . data . $ . relatedTarget ; ( d = d && d . nodeType == CKEDITOR . NODE _ELEMENT ? new CKEDITOR . dom . element ( d ) : null ) && ( b . equals ( d ) || b . contains ( d ) ) || a . call ( this , c ) } } function h ( a ) { function b ( a ) { return function ( b , e ) { e && b . type == CKEDITOR . NODE _ELEMENT && b . is ( f ) && ( d = b ) ; if ( ! ( e || ! c ( b ) ||
a && H ( b ) ) ) return ! 1 } } var d , e = a . getRanges ( ) [ 0 ] ; a = a . root ; var f = { table : 1 , ul : 1 , ol : 1 , dl : 1 } ; if ( e . startPath ( ) . contains ( f ) ) { var r = e . clone ( ) ; r . collapse ( 1 ) ; r . setStartAt ( a , CKEDITOR . POSITION _AFTER _START ) ; a = new CKEDITOR . dom . walker ( r ) ; a . guard = b ( ) ; a . checkBackward ( ) ; if ( d ) return r = e . clone ( ) , r . collapse ( ) , r . setEndAt ( d , CKEDITOR . POSITION _AFTER _END ) , a = new CKEDITOR . dom . walker ( r ) , a . guard = b ( ! 0 ) , d = ! 1 , a . checkForward ( ) , d } return null } function k ( a , b , c ) { return ! 1 !== a . config . autoParagraph && a . activeEnterMode != CKEDITOR . ENTER _BR && ( a . editable ( ) . equals ( c ) &&
! b || b && "true" == b . getAttribute ( "contenteditable" ) ) } function g ( a ) { return a . activeEnterMode != CKEDITOR . ENTER _BR && ! 1 !== a . config . autoParagraph ? a . activeEnterMode == CKEDITOR . ENTER _DIV ? "div" : "p" : ! 1 } function l ( a ) { a && a . isEmptyInlineRemoveable ( ) && a . remove ( ) } function u ( a ) { var b = a . editor ; b . getSelection ( ) . scrollIntoView ( ) ; setTimeout ( function ( ) { b . fire ( "saveSnapshot" ) } , 0 ) } function e ( a , b , c ) { var d = a . getCommonAncestor ( b ) ; for ( b = a = c ? b : a ; ( a = a . getParent ( ) ) && ! d . equals ( a ) && 1 == a . getChildCount ( ) ; ) b = a ; b . remove ( ) } var x , w , z , H , t ,
n , L , y , F , I ; CKEDITOR . editable = CKEDITOR . tools . createClass ( { base : CKEDITOR . dom . element , $ : function ( a , b ) { this . base ( b . $ || b ) ; this . editor = a ; this . status = "unloaded" ; this . hasFocus = ! 1 ; this . setup ( ) } , proto : { focus : function ( ) { var a ; if ( CKEDITOR . env . webkit && ! this . hasFocus && ( a = this . editor . _ . previousActive || this . getDocument ( ) . getActive ( ) , this . contains ( a ) ) ) { a . focus ( ) ; return } CKEDITOR . env . edge && 14 < CKEDITOR . env . version && ! this . hasFocus && this . getDocument ( ) . equals ( CKEDITOR . document ) && ( this . editor . _ . previousScrollTop = this . $ . scrollTop ) ;
( function ( ) { function a ( a ) { var b = a . editor , e = a . data . path , f = e . blockLimit , g = a . data . selection , q = g . getRanges ( ) [ 0 ] , h ; if ( CKEDITOR . env . gecko || CKEDITOR . env . ie && CKEDITOR . env . needsBrFiller ) if ( g = d ( g , e ) ) g . appendBogus ( ) , h = CKEDITOR . env . ie && ! CKEDITOR . env . edge || CKEDITOR . env . edge && b . _ . previousActive ; k ( b , e . block , f ) && q . collapsed && ! q . getCommonAncestor ( ) . isReadOnly ( ) && ( e = q . clone ( ) , e . enlarge ( CKEDITOR . ENLARGE _BLOCK _CONTENTS ) , f = new CKEDITOR . dom . walker ( e ) , f . guard = function ( a ) { return ! c ( a ) || a . type == CKEDITOR . NODE _COMMENT || a . isReadOnly ( ) } ,
! f . checkForward ( ) || e . checkStartOfBlock ( ) && e . checkEndOfBlock ( ) ) && ( b = q . fixBlock ( ! 0 , b . activeEnterMode == CKEDITOR . ENTER _DIV ? "div" : "p" ) , CKEDITOR . env . needsBrFiller || ( b = b . getFirst ( c ) ) && b . type == CKEDITOR . NODE _TEXT && CKEDITOR . tools . trim ( b . getText ( ) ) . match ( /^(?: |\xa0)$/ ) && b . remove ( ) , h = 1 , a . cancel ( ) ) ; h && q . select ( ) } function d ( a , b ) { if ( a . isFake ) return 0 ; var d = b . block || b . blockLimit , e = d && d . getLast ( c ) ; if ( ! ( ! d || ! d . isBlockBoundary ( ) || e && e . type == CKEDITOR . NODE _ELEMENT && e . isBlockBoundary ( ) || d . is ( "pre" ) || d . getBogus ( ) ) ) return d }
function b ( a ) { var b = a . data . getTarget ( ) ; b . is ( "input" ) && ( b = b . getAttribute ( "type" ) , "submit" != b && "reset" != b || a . data . preventDefault ( ) ) } function c ( a ) { return z ( a ) && w ( a ) } function f ( a , b ) { return function ( c ) { var d = c . data . $ . toElement || c . data . $ . fromElement || c . data . $ . relatedTarget ; ( d = d && d . nodeType == CKEDITOR . NODE _ELEMENT ? new CKEDITOR . dom . element ( d ) : null ) && ( b . equals ( d ) || b . contains ( d ) ) || a . call ( this , c ) } } function h ( a ) { function b ( a ) { return function ( b , e ) { e && b . type == CKEDITOR . NODE _ELEMENT && b . is ( f ) && ( d = b ) ; if ( ! ( e || ! c ( b ) ||
a && F ( b ) ) ) return ! 1 } } var d , e = a . getRanges ( ) [ 0 ] ; a = a . root ; var f = { table : 1 , ul : 1 , ol : 1 , dl : 1 } ; if ( e . startPath ( ) . contains ( f ) ) { var q = e . clone ( ) ; q . collapse ( 1 ) ; q . setStartAt ( a , CKEDITOR . POSITION _AFTER _START ) ; a = new CKEDITOR . dom . walker ( q ) ; a . guard = b ( ) ; a . checkBackward ( ) ; if ( d ) return q = e . clone ( ) , q . collapse ( ) , q . setEndAt ( d , CKEDITOR . POSITION _AFTER _END ) , a = new CKEDITOR . dom . walker ( q ) , a . guard = b ( ! 0 ) , d = ! 1 , a . checkForward ( ) , d } return null } function k ( a , b , c ) { return ! 1 !== a . config . autoParagraph && a . activeEnterMode != CKEDITOR . ENTER _BR && ( a . editable ( ) . equals ( c ) &&
! b || b && "true" == b . getAttribute ( "contenteditable" ) ) } function g ( a ) { return a . activeEnterMode != CKEDITOR . ENTER _BR && ! 1 !== a . config . autoParagraph ? a . activeEnterMode == CKEDITOR . ENTER _DIV ? "div" : "p" : ! 1 } function l ( a ) { a && a . isEmptyInlineRemoveable ( ) && a . remove ( ) } function v ( a ) { var b = a . editor ; b . getSelection ( ) . scrollIntoView ( ) ; setTimeout ( function ( ) { b . fire ( "saveSnapshot" ) } , 0 ) } function e ( a , b , c ) { var d = a . getCommonAncestor ( b ) ; for ( b = a = c ? b : a ; ( a = a . getParent ( ) ) && ! d . equals ( a ) && 1 == a . getChildCount ( ) ; ) b = a ; b . remove ( ) } var z , w , A , F , u ,
m , M , y , G , H ; CKEDITOR . editable = CKEDITOR . tools . createClass ( { base : CKEDITOR . dom . element , $ : function ( a , b ) { this . base ( b . $ || b ) ; this . editor = a ; this . status = "unloaded" ; this . hasFocus = ! 1 ; this . setup ( ) } , proto : { focus : function ( ) { var a ; if ( CKEDITOR . env . webkit && ! this . hasFocus && ( a = this . editor . _ . previousActive || this . getDocument ( ) . getActive ( ) , this . contains ( a ) ) ) { a . focus ( ) ; return } CKEDITOR . env . edge && 14 < CKEDITOR . env . version && ! this . hasFocus && this . getDocument ( ) . equals ( CKEDITOR . document ) && ( this . editor . _ . previousScrollTop = this . $ . scrollTop ) ;
try { if ( ! CKEDITOR . env . ie || CKEDITOR . env . edge && 14 < CKEDITOR . env . version || ! this . getDocument ( ) . equals ( CKEDITOR . document ) ) if ( CKEDITOR . env . chrome ) { var b = this . $ . scrollTop ; this . $ . focus ( ) ; this . $ . scrollTop = b } else this . $ . focus ( ) ; else this . $ . setActive ( ) } catch ( c ) { if ( ! CKEDITOR . env . ie ) throw c ; } CKEDITOR . env . safari && ! this . isInline ( ) && ( a = CKEDITOR . document . getActive ( ) , a . equals ( this . getWindow ( ) . getFrame ( ) ) || this . getWindow ( ) . focus ( ) ) } , on : function ( a , b ) { var c = Array . prototype . slice . call ( arguments , 0 ) ; CKEDITOR . env . ie && /^focus|blur$/ . exec ( a ) &&
( a = "focus" == a ? "focusin" : "focusout" , b = f ( b , this ) , c [ 0 ] = a , c [ 1 ] = b ) ; return CKEDITOR . dom . element . prototype . on . apply ( this , c ) } , attachListener : function ( a ) { ! this . _ . listeners && ( this . _ . listeners = [ ] ) ; var b = Array . prototype . slice . call ( arguments , 1 ) , b = a . on . apply ( a , b ) ; this . _ . listeners . push ( b ) ; return b } , clearListeners : function ( ) { var a = this . _ . listeners ; try { for ( ; a . length ; ) a . pop ( ) . removeListener ( ) } catch ( b ) { } } , restoreAttrs : function ( ) { var a = this . _ . attrChanges , b , c ; for ( c in a ) a . hasOwnProperty ( c ) && ( b = a [ c ] , null !== b ? this . setAttribute ( c ,
b ) : this . removeAttribute ( c ) ) } , attachClass : function ( a ) { var b = this . getCustomData ( "classes" ) ; this . hasClass ( a ) || ( ! b && ( b = [ ] ) , b . push ( a ) , this . setCustomData ( "classes" , b ) , this . addClass ( a ) ) } , changeAttr : function ( a , b ) { var c = this . getAttribute ( a ) ; b !== c && ( ! this . _ . attrChanges && ( this . _ . attrChanges = { } ) , a in this . _ . attrChanges || ( this . _ . attrChanges [ a ] = c ) , this . setAttribute ( a , b ) ) } , insertText : function ( a ) { this . editor . focus ( ) ; this . insertHtml ( this . transformPlainTextToHtml ( a ) , "text" ) } , transformPlainTextToHtml : function ( a ) { var b =
this . editor . getSelection ( ) . getStartElement ( ) . hasAscendant ( "pre" , ! 0 ) ? CKEDITOR . ENTER _BR : this . editor . activeEnterMode ; return CKEDITOR . tools . transformPlainTextToHtml ( a , b ) } , insertHtml : function ( a , b , c ) { var d = this . editor ; d . focus ( ) ; d . fire ( "saveSnapshot" ) ; c || ( c = d . getSelection ( ) . getRanges ( ) [ 0 ] ) ; n ( this , b || "html" , a , c ) ; c . select ( ) ; u ( this ) ; this . editor . fire ( "afterInsertHtml" , { } ) } , insertHtmlIntoRange : function ( a , b , c ) { n ( this , c || "html" , a , b ) ; this . editor . fire ( "afterInsertHtml" , { intoRange : b } ) } , insertElement : function ( a , b ) { var d =
this . editor ; d . focus ( ) ; d . fire ( "saveSnapshot" ) ; var e = d . activeEnterMode , d = d . getSelection ( ) , f = a . getName ( ) , f = CKEDITOR . dtd . $block [ f ] ; b || ( b = d . getRanges ( ) [ 0 ] ) ; this . insertElementIntoRange ( a , b ) && ( b . moveToPosition ( a , CKEDITOR . POSITION _AFTER _END ) , f && ( ( f = a . getNext ( function ( a ) { return c ( a ) && ! H ( a ) } ) ) && f . type == CKEDITOR . NODE _ELEMENT && f . is ( CKEDITOR . dtd . $block ) ? f . getDtd ( ) [ "#" ] ? b . moveToElementEditStart ( f ) : b . moveToElementEditEnd ( a ) : f || e == CKEDITOR . ENTER _BR || ( f = b . fixBlock ( ! 0 , e == CKEDITOR . ENTER _DIV ? "div" : "p" ) , b . moveToElementEditStart ( f ) ) ) ) ;
d . selectRanges ( [ b ] ) ; u ( this ) } , insertElementIntoSelection : function ( a ) { this . insertElement ( a ) } , insertElementIntoRange : function ( a , b ) { var c = this . editor , d = c . config . enterMode , e = a . getName ( ) , f = CKEDITOR . dtd . $block [ e ] ; if ( b . checkReadOnly ( ) ) return ! 1 ; b . deleteContents ( 1 ) ; b . startContainer . type == CKEDITOR . NODE _ELEMENT && ( b . startContainer . is ( { tr : 1 , table : 1 , tbody : 1 , thead : 1 , tfoot : 1 } ) ? L ( b ) : b . startContainer . is ( CKEDITOR . dtd . $list ) && y ( b ) ) ; var g , B ; if ( f ) for ( ; ( g = b . getCommonAncestor ( 0 , 1 ) ) && ( B = CKEDITOR . dtd [ g . getName ( ) ] ) && ( ! B || ! B [ e ] ) ; ) if ( g . getName ( ) in
this . editor . getSelection ( ) . getStartElement ( ) . hasAscendant ( "pre" , ! 0 ) ? CKEDITOR . ENTER _BR : this . editor . activeEnterMode ; return CKEDITOR . tools . transformPlainTextToHtml ( a , b ) } , insertHtml : function ( a , b , c ) { var d = this . editor ; d . focus ( ) ; d . fire ( "saveSnapshot" ) ; c || ( c = d . getSelection ( ) . getRanges ( ) [ 0 ] ) ; m ( this , b || "html" , a , c ) ; c . select ( ) ; v ( this ) ; this . editor . fire ( "afterInsertHtml" , { } ) } , insertHtmlIntoRange : function ( a , b , c ) { m ( this , c || "html" , a , b ) ; this . editor . fire ( "afterInsertHtml" , { intoRange : b } ) } , insertElement : function ( a , b ) { var d =
this . editor ; d . focus ( ) ; d . fire ( "saveSnapshot" ) ; var e = d . activeEnterMode , d = d . getSelection ( ) , f = a . getName ( ) , f = CKEDITOR . dtd . $block [ f ] ; b || ( b = d . getRanges ( ) [ 0 ] ) ; this . insertElementIntoRange ( a , b ) && ( b . moveToPosition ( a , CKEDITOR . POSITION _AFTER _END ) , f && ( ( f = a . getNext ( function ( a ) { return c ( a ) && ! F ( a ) } ) ) && f . type == CKEDITOR . NODE _ELEMENT && f . is ( CKEDITOR . dtd . $block ) ? f . getDtd ( ) [ "#" ] ? b . moveToElementEditStart ( f ) : b . moveToElementEditEnd ( a ) : f || e == CKEDITOR . ENTER _BR || ( f = b . fixBlock ( ! 0 , e == CKEDITOR . ENTER _DIV ? "div" : "p" ) , b . moveToElementEditStart ( f ) ) ) ) ;
d . selectRanges ( [ b ] ) ; v ( this ) } , insertElementIntoSelection : function ( a ) { this . insertElement ( a ) } , insertElementIntoRange : function ( a , b ) { var c = this . editor , d = c . config . enterMode , e = a . getName ( ) , f = CKEDITOR . dtd . $block [ e ] ; if ( b . checkReadOnly ( ) ) return ! 1 ; b . deleteContents ( 1 ) ; b . startContainer . type == CKEDITOR . NODE _ELEMENT && ( b . startContainer . is ( { tr : 1 , table : 1 , tbody : 1 , thead : 1 , tfoot : 1 } ) ? M ( b ) : b . startContainer . is ( CKEDITOR . dtd . $list ) && y ( b ) ) ; var g , r ; if ( f ) for ( ; ( g = b . getCommonAncestor ( 0 , 1 ) ) && ( r = CKEDITOR . dtd [ g . getName ( ) ] ) && ( ! r || ! r [ e ] ) ; ) if ( g . getName ( ) in
CKEDITOR . dtd . span ) { var f = b . splitElement ( g ) , h = b . createBookmark ( ) ; l ( g ) ; l ( f ) ; b . moveToBookmark ( h ) } else b . checkStartOfBlock ( ) && b . checkEndOfBlock ( ) ? ( b . setStartBefore ( g ) , b . collapse ( ! 0 ) , g . remove ( ) ) : b . splitBlock ( d == CKEDITOR . ENTER _DIV ? "div" : "p" , c . editable ( ) ) ; b . insertNode ( a ) ; return ! 0 } , setData : function ( a , b ) { b || ( a = this . editor . dataProcessor . toHtml ( a ) ) ; this . setHtml ( a ) ; this . fixInitialSelection ( ) ; "unloaded" == this . status && ( this . status = "ready" ) ; this . editor . fire ( "dataReady" ) } , getData : function ( a ) { var b = this . getHtml ( ) ;
a || ( b = this . editor . dataProcessor . toDataFormat ( b ) ) ; return b } , setReadOnly : function ( a ) { this . setAttribute ( "contenteditable" , ! a ) } , detach : function ( ) { this . 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 b = c . getDocument ( ) . $ , d = b . getSelection ( ) , e ; a : if ( d . anchorNode && d . anchorNode == c . $ ) e = ! 0 ; else { if ( CKEDITOR . env . webkit && ( e = c . getDocument ( ) . getActive ( ) ) && e . equals ( c ) && ! d . anchorNode ) { e = ! 0 ; break a } e = void 0 } e && ( e = new CKEDITOR . dom . range ( c ) , e . moveToElementEditStart ( c ) , b = b . createRange ( ) , b . setStart ( e . startContainer . $ , e . startOffset ) , b . collapse ( ! 0 ) , d . removeAllRanges ( ) , d . addRange ( b ) ) } function b ( ) { var a = c . getDocument ( ) . $ , d = a . selection , e = c . getDocument ( ) . getActive ( ) ; "None" ==
d . type && e . equals ( c ) && ( d = new CKEDITOR . dom . range ( c ) , a = a . body . createTextRange ( ) , d . moveToElementEditStart ( c ) , d = d . startContainer , d . type != CKEDITOR . NODE _ELEMENT && ( d = d . getParent ( ) ) , a . moveToElementText ( d . $ ) , a . collapse ( ! 0 ) , a . select ( ) ) } var c = this ; if ( CKEDITOR . env . ie && ( 9 > CKEDITOR . env . version || CKEDITOR . env . quirks ) ) this . hasFocus && ( this . focus ( ) , b ( ) ) ; else if ( this . hasFocus ) this . focus ( ) , a ( ) ; else this . once ( "focus" , function ( ) { a ( ) } , null , null , - 999 ) } , getHtmlFromRange : function ( a ) { if ( a . collapsed ) return new CKEDITOR . dom . documentFragment ( a . document ) ;
a = { doc : this . getDocument ( ) , range : a . clone ( ) } ; F . eol . detect ( a , this ) ; F . bogus . exclude ( a ) ; F . cell . shrink ( a ) ; a . fragment = a . range . cloneContents ( ) ; F . tree . rebuild ( a , this ) ; F . eol . fix ( a , this ) ; return new CKEDITOR . dom . documentFragment ( a . fragment . $ ) } , extractHtmlFromRange : function ( a , b ) { var c = I , d = { range : a , doc : a . document } , e = this . getHtmlFromRange ( a ) ; if ( a . collapsed ) return a . optimize ( ) , e ; a . enlarge ( CKEDITOR . ENLARGE _INLINE , 1 ) ; c . table . detectPurge ( d ) ; d . bookmark = a . createBookmark ( ) ; delete d . range ; var f = this . editor . createRange ( ) ;
a = { doc : this . getDocument ( ) , range : a . clone ( ) } ; G . eol . detect ( a , this ) ; G . bogus . exclude ( a ) ; G . cell . shrink ( a ) ; a . fragment = a . range . cloneContents ( ) ; G . tree . rebuild ( a , this ) ; G . eol . fix ( a , this ) ; return new CKEDITOR . dom . documentFragment ( a . fragment . $ ) } , extractHtmlFromRange : function ( a , b ) { var c = H , d = { range : a , doc : a . document } , e = this . getHtmlFromRange ( a ) ; if ( a . collapsed ) return a . optimize ( ) , e ; a . enlarge ( CKEDITOR . ENLARGE _INLINE , 1 ) ; c . table . detectPurge ( d ) ; d . bookmark = a . createBookmark ( ) ; delete d . range ; var f = this . editor . createRange ( ) ;
f . moveToPosition ( d . bookmark . startNode , CKEDITOR . POSITION _BEFORE _START ) ; d . targetBookmark = f . createBookmark ( ) ; c . list . detectMerge ( d , this ) ; c . table . detectRanges ( d , this ) ; c . block . detectMerge ( d , this ) ; d . tableContentsRanges ? ( c . table . deleteRanges ( d ) , a . moveToBookmark ( d . bookmark ) , d . range = a ) : ( a . moveToBookmark ( d . bookmark ) , d . range = a , a . extractContents ( c . detectExtractMerge ( d ) ) ) ; a . moveToBookmark ( d . targetBookmark ) ; a . optimize ( ) ; c . fixUneditableRangePosition ( a ) ; c . list . merge ( d , this ) ; c . table . purge ( d , this ) ; c . block . merge ( d , this ) ;
if ( b ) { c = a . startPath ( ) ; if ( d = a . checkStartOfBlock ( ) && a . checkEndOfBlock ( ) && c . block && ! a . root . equals ( c . block ) ) { a : { var d = c . block . getElementsByTag ( "span" ) , f = 0 , g ; if ( d ) for ( ; g = d . getItem ( f ++ ) ; ) if ( ! w ( g ) ) { d = ! 0 ; break a } d = ! 1 } d = ! d } d && ( a . moveToPosition ( c . block , CKEDITOR . POSITION _BEFORE _START ) , c . block . remove ( ) ) } else c . autoParagraph ( this . editor , a ) , z ( a . startContainer ) && a . startContainer . appendBogus ( ) ; a . startContainer . mergeSiblings ( ) ; return e } , setup : function ( ) { var a = this . editor ; this . attachListener ( a , "beforeGetData" , function ( ) { var b =
this . getData ( ) ; this . is ( "textarea" ) || ! 1 !== a . config . ignoreEmptyParagraph && ( b = b . replace ( t , function ( a , b ) { return b } ) ) ; a . setData ( b , null , 1 ) } , this ) ; this . attachListener ( a , "getSnapshot" , function ( a ) { a . data = this . getData ( 1 ) } , this ) ; this . attachListener ( a , "afterSetData" , function ( ) { this . setData ( a . getData ( 1 ) ) } , this ) ; this . attachListener ( a , "loadSnapshot" , function ( a ) { this . setData ( a . data , 1 ) } , this ) ; this . attachListener ( a , "beforeFocus" , function ( ) { var b = a . getSelection ( ) ; ( b = b && b . getNative ( ) ) && "Control" == b . type || this . focus ( ) } ,
if ( b ) { c = a . startPath ( ) ; if ( d = a . checkStartOfBlock ( ) && a . checkEndOfBlock ( ) && c . block && ! a . root . equals ( c . block ) ) { a : { var d = c . block . getElementsByTag ( "span" ) , f = 0 , g ; if ( d ) for ( ; g = d . getItem ( f ++ ) ; ) if ( ! w ( g ) ) { d = ! 0 ; break a } d = ! 1 } d = ! d } d && ( a . moveToPosition ( c . block , CKEDITOR . POSITION _BEFORE _START ) , c . block . remove ( ) ) } else c . autoParagraph ( this . editor , a ) , A ( a . startContainer ) && a . startContainer . appendBogus ( ) ; a . startContainer . mergeSiblings ( ) ; return e } , setup : function ( ) { var a = this . editor ; this . attachListener ( a , "beforeGetData" , function ( ) { var b =
this . getData ( ) ; this . is ( "textarea" ) || ! 1 !== a . config . ignoreEmptyParagraph && ( b = b . replace ( u , function ( a , b ) { return b } ) ) ; a . setData ( b , null , 1 ) } , this ) ; this . attachListener ( a , "getSnapshot" , function ( a ) { a . data = this . getData ( 1 ) } , this ) ; this . attachListener ( a , "afterSetData" , function ( ) { this . setData ( a . getData ( 1 ) ) } , this ) ; this . attachListener ( a , "loadSnapshot" , function ( a ) { this . setData ( a . data , 1 ) } , this ) ; this . attachListener ( a , "beforeFocus" , function ( ) { var b = a . getSelection ( ) ; ( b = b && b . getNative ( ) ) && "Control" == b . type || this . focus ( ) } ,
this ) ; this . attachListener ( a , "insertHtml" , function ( a ) { this . insertHtml ( a . data . dataValue , a . data . mode , a . data . range ) } , this ) ; this . attachListener ( a , "insertElement" , function ( a ) { this . insertElement ( a . data ) } , this ) ; this . attachListener ( a , "insertText" , function ( a ) { this . insertText ( a . data ) } , this ) ; this . setReadOnly ( a . readOnly ) ; this . attachClass ( "cke_editable" ) ; a . elementMode == CKEDITOR . ELEMENT _MODE _INLINE ? this . attachClass ( "cke_editable_inline" ) : a . elementMode != CKEDITOR . ELEMENT _MODE _REPLACE && a . elementMode != CKEDITOR . ELEMENT _MODE _APPENDTO ||
this . attachClass ( "cke_editable_themed" ) ; this . attachClass ( "cke_contents_" + a . config . contentsLangDirection ) ; a . keystrokeHandler . blockedKeystrokes [ 8 ] = + a . readOnly ; a . keystrokeHandler . attach ( this ) ; this . on ( "blur" , function ( ) { this . hasFocus = ! 1 } , null , null , - 1 ) ; this . on ( "focus" , function ( ) { this . hasFocus = ! 0 } , null , null , - 1 ) ; if ( CKEDITOR . env . webkit ) this . on ( "scroll" , function ( ) { a . _ . previousScrollTop = a . editable ( ) . $ . scrollTop } , null , null , - 1 ) ; if ( CKEDITOR . env . edge && 14 < CKEDITOR . env . version ) { var d = function ( ) { var b = a . editable ( ) ;
null != a . _ . previousScrollTop && b . getDocument ( ) . equals ( CKEDITOR . document ) && ( b . $ . scrollTop = a . _ . previousScrollTop , a . _ . previousScrollTop = null , this . removeListener ( "scroll" , d ) ) } ; this . on ( "scroll" , d ) } a . focusManager . add ( this ) ; this . equals ( CKEDITOR . document . getActive ( ) ) && ( this . hasFocus = ! 0 , a . once ( "contentDom" , function ( ) { a . focusManager . focus ( this ) } , this ) ) ; this . isInline ( ) && this . changeAttr ( "tabindex" , a . tabIndex ) ; if ( ! this . is ( "textarea" ) ) { a . document = this . getDocument ( ) ; a . window = this . getWindow ( ) ; var f = a . document ; this . changeAttr ( "spellcheck" ,
! a . config . disableNativeSpellChecker ) ; var g = a . config . contentsLangDirection ; this . getDirection ( 1 ) != g && this . changeAttr ( "dir" , g ) ; var k = CKEDITOR . getCss ( ) ; if ( k ) { var g = f . getHead ( ) , r = g . getCustomData ( "stylesheet" ) ; r ? k != r . getText ( ) && ( CKEDITOR . env . ie && 9 > CKEDITOR . env . version ? r . $ . styleSheet . cssText = k : r . setText ( k ) ) : ( k = f . appendStyleText ( k ) , k = new CKEDITOR . dom . element ( k . ownerNode || k . owningElement ) , g . setCustomData ( "stylesheet" , k ) , k . data ( "cke-temp" , 1 ) ) } g = f . getCustomData ( "stylesheet_ref" ) || 0 ; f . setCustomData ( "stylesheet_ref" ,
g + 1 ) ; this . setCustomData ( "cke_includeReadonly" , ! a . config . disableReadonlyStyling ) ; this . attachListener ( this , "click" , function ( a ) { a = a . data ; var b = ( new CKEDITOR . dom . elementPath ( a . getTarget ( ) , this ) ) . contains ( "a" ) ; b && 2 != a . $ . button && b . isReadOnly ( ) && a . preventDefault ( ) } ) ; var D = { 8 : 1 , 46 : 1 } ; this . attachListener ( a , "key" , function ( b ) { if ( a . readOnly ) return ! 0 ; var c = b . data . domEvent . getKey ( ) , d ; b = a . getSelection ( ) ; if ( 0 !== b . getRanges ( ) . length ) { if ( c in D ) { var e , f = b . getRanges ( ) [ 0 ] , r = f . startPath ( ) , g , q , k , c = 8 == c ; CKEDITOR . env . ie &&
11 > CKEDITOR . env . version && ( e = b . getSelectedElement ( ) ) || ( e = h ( b ) ) ? ( a . fire ( "saveSnapshot" ) , f . moveToPosition ( e , CKEDITOR . POSITION _BEFORE _START ) , e . remove ( ) , f . select ( ) , a . fire ( "saveSnapshot" ) , d = 1 ) : f . collapsed && ( ( g = r . block ) && ( k = g [ c ? "getPrevious" : "getNext" ] ( x ) ) && k . type == CKEDITOR . NODE _ELEMENT && k . is ( "table" ) && f [ c ? "checkStartOfBlock" : "checkEndOfBlock" ] ( ) ? ( a . fire ( "saveSnapshot" ) , f [ c ? "checkEndOfBlock" : "checkStartOfBlock" ] ( ) && g . remove ( ) , f [ "moveToElementEdit" + ( c ? "End" : "Start" ) ] ( k ) , f . select ( ) , a . fire ( "saveSnapshot" ) ,
d = 1 ) : r . blockLimit && r . blockLimit . is ( "td" ) && ( q = r . blockLimit . getAscendant ( "table" ) ) && f . checkBoundaryOfElement ( q , c ? CKEDITOR . START : CKEDITOR . END ) && ( k = q [ c ? "getPrevious" : "getNext" ] ( x ) ) ? ( a . fire ( "saveSnapshot" ) , f [ "moveToElementEdit" + ( c ? "End" : "Start" ) ] ( k ) , f . checkStartOfBlock ( ) && f . checkEndOfBlock ( ) ? k . remove ( ) : f . select ( ) , a . fire ( "saveSnapshot" ) , d = 1 ) : ( q = r . contains ( [ "td" , "th" , "caption" ] ) ) && f . checkBoundaryOfElement ( q , c ? CKEDITOR . START : CKEDITOR . END ) && ( d = 1 ) ) } return ! d } } ) ; a . blockless && CKEDITOR . env . ie && CKEDITOR . env . needsBrFiller &&
! a . config . disableNativeSpellChecker ) ; var g = a . config . contentsLangDirection ; this . getDirection ( 1 ) != g && this . changeAttr ( "dir" , g ) ; var k = CKEDITOR . getCss ( ) ; if ( k ) { var g = f . getHead ( ) , q = g . getCustomData ( "stylesheet" ) ; q ? k != q . getText ( ) && ( CKEDITOR . env . ie && 9 > CKEDITOR . env . version ? q . $ . styleSheet . cssText = k : q . setText ( k ) ) : ( k = f . appendStyleText ( k ) , k = new CKEDITOR . dom . element ( k . ownerNode || k . owningElement ) , g . setCustomData ( "stylesheet" , k ) , k . data ( "cke-temp" , 1 ) ) } g = f . getCustomData ( "stylesheet_ref" ) || 0 ; f . setCustomData ( "stylesheet_ref" ,
g + 1 ) ; this . setCustomData ( "cke_includeReadonly" , ! a . config . disableReadonlyStyling ) ; this . attachListener ( this , "click" , function ( a ) { a = a . data ; var b = ( new CKEDITOR . dom . elementPath ( a . getTarget ( ) , this ) ) . contains ( "a" ) ; b && 2 != a . $ . button && b . isReadOnly ( ) && a . preventDefault ( ) } ) ; var D = { 8 : 1 , 46 : 1 } ; this . attachListener ( a , "key" , function ( b ) { if ( a . readOnly ) return ! 0 ; var c = b . data . domEvent . getKey ( ) , d ; b = a . getSelection ( ) ; if ( 0 !== b . getRanges ( ) . length ) { if ( c in D ) { var e , f = b . getRanges ( ) [ 0 ] , q = f . startPath ( ) , g , p , k , c = 8 == c ; CKEDITOR . env . ie &&
11 > CKEDITOR . env . version && ( e = b . getSelectedElement ( ) ) || ( e = h ( b ) ) ? ( a . fire ( "saveSnapshot" ) , f . moveToPosition ( e , CKEDITOR . POSITION _BEFORE _START ) , e . remove ( ) , f . select ( ) , a . fire ( "saveSnapshot" ) , d = 1 ) : f . collapsed && ( ( g = q . block ) && ( k = g [ c ? "getPrevious" : "getNext" ] ( z ) ) && k . type == CKEDITOR . NODE _ELEMENT && k . is ( "table" ) && f [ c ? "checkStartOfBlock" : "checkEndOfBlock" ] ( ) ? ( a . fire ( "saveSnapshot" ) , f [ c ? "checkEndOfBlock" : "checkStartOfBlock" ] ( ) && g . remove ( ) , f [ "moveToElementEdit" + ( c ? "End" : "Start" ) ] ( k ) , f . select ( ) , a . fire ( "saveSnapshot" ) ,
d = 1 ) : q . blockLimit && q . blockLimit . is ( "td" ) && ( p = q . blockLimit . getAscendant ( "table" ) ) && f . checkBoundaryOfElement ( p , c ? CKEDITOR . START : CKEDITOR . END ) && ( k = p [ c ? "getPrevious" : "getNext" ] ( z ) ) ? ( a . fire ( "saveSnapshot" ) , f [ "moveToElementEdit" + ( c ? "End" : "Start" ) ] ( k ) , f . checkStartOfBlock ( ) && f . checkEndOfBlock ( ) ? k . remove ( ) : f . select ( ) , a . fire ( "saveSnapshot" ) , d = 1 ) : ( p = q . contains ( [ "td" , "th" , "caption" ] ) ) && f . checkBoundaryOfElement ( p , c ? CKEDITOR . START : CKEDITOR . END ) && ( d = 1 ) ) } return ! d } } ) ; a . blockless && CKEDITOR . env . ie && CKEDITOR . env . needsBrFiller &&
this . attachListener ( this , "keyup" , function ( b ) { b . data . getKeystroke ( ) in D && ! this . getFirst ( c ) && ( this . appendBogus ( ) , b = a . createRange ( ) , b . moveToPosition ( this , CKEDITOR . POSITION _AFTER _START ) , b . select ( ) ) } ) ; this . attachListener ( this , "dblclick" , function ( b ) { if ( a . readOnly ) return ! 1 ; b = { element : b . data . getTarget ( ) } ; a . fire ( "doubleclick" , b ) } ) ; CKEDITOR . env . ie && this . attachListener ( this , "click" , b ) ; CKEDITOR . env . ie && ! CKEDITOR . env . edge || this . attachListener ( this , "mousedown" , function ( b ) { var c = b . data . getTarget ( ) ; c . is ( "img" , "hr" ,
"input" , "textarea" , "select" ) && ! c . isReadOnly ( ) && ( a . getSelection ( ) . selectElement ( c ) , c . is ( "input" , "textarea" , "select" ) && b . data . preventDefault ( ) ) } ) ; CKEDITOR . env . edge && this . attachListener ( this , "mouseup" , function ( b ) { ( b = b . data . getTarget ( ) ) && b . is ( "img" ) && ! b . isReadOnly ( ) && a . getSelection ( ) . selectElement ( b ) } ) ; CKEDITOR . env . gecko && this . attachListener ( this , "mouseup" , function ( b ) { if ( 2 == b . data . $ . button && ( b = b . data . getTarget ( ) , ! b . getAscendant ( "table" ) && ! b . getOuterHtml ( ) . replace ( t , "" ) ) ) { var c = a . createRange ( ) ; c . moveToElementEditStart ( b ) ;
"input" , "textarea" , "select" ) && ! c . isReadOnly ( ) && ( a . getSelection ( ) . selectElement ( c ) , c . is ( "input" , "textarea" , "select" ) && b . data . preventDefault ( ) ) } ) ; CKEDITOR . env . edge && this . attachListener ( this , "mouseup" , function ( b ) { ( b = b . data . getTarget ( ) ) && b . is ( "img" ) && ! b . isReadOnly ( ) && a . getSelection ( ) . selectElement ( b ) } ) ; CKEDITOR . env . gecko && this . attachListener ( this , "mouseup" , function ( b ) { if ( 2 == b . data . $ . button && ( b = b . data . getTarget ( ) , ! b . getAscendant ( "table" ) && ! b . getOuterHtml ( ) . replace ( u , "" ) ) ) { var c = a . createRange ( ) ; c . moveToElementEditStart ( b ) ;
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 ( a , "key" , function ( b ) { if ( a . readOnly ) return ! 0 ; var c = b . data . domEvent . getKey ( ) ; if ( c in D && ( b = a . getSelection ( ) , 0 !== b . getRanges ( ) . length ) ) { var c = 8 == c , d = b . getRanges ( ) [ 0 ] ; b = d . startPath ( ) ; if ( d . collapsed ) a : { var f =
b . block ; if ( f && d [ c ? "checkStartOfBlock" : "checkEndOfBlock" ] ( ) && d . moveToClosestEditablePosition ( f , ! c ) && d . collapsed ) { if ( d . startContainer . type == CKEDITOR . NODE _ELEMENT ) { var p = d . startContainer . getChild ( d . startOffset - ( c ? 1 : 0 ) ) ; if ( p && p . type == CKEDITOR . NODE _ELEMENT && p . is ( "hr" ) ) { a . fire ( "saveSnapshot" ) ; p . remove ( ) ; b = ! 0 ; break a } } d = d . startPath ( ) . block ; if ( ! d || d && d . contains ( f ) ) b = void 0 ; else { a . fire ( "saveSnapshot" ) ; var r ; ( r = ( c ? d : f ) . getBogus ( ) ) && r . remove ( ) ; r = a . getSelection ( ) ; p = r . createBookmarks ( ) ; ( c ? f : d ) . moveChildren ( c ?
d : f , ! 1 ) ; b . lastElement . mergeSiblings ( ) ; e ( f , d , ! c ) ; r . selectBookmarks ( p ) ; b = ! 0 } } else b = ! 1 } else c = d , r = b . block , d = c . endPath ( ) . block , r && d && ! r . equals ( d ) ? ( a . fire ( "saveSnapshot" ) , ( f = r . getBogus ( ) ) && f . remove ( ) , c . enlarge ( CKEDITOR . ENLARGE _INLINE ) , c . deleteContents ( ) , d . getParent ( ) && ( d . moveChildren ( r , ! 1 ) , b . lastElement . mergeSiblings ( ) , e ( r , d , ! 0 ) ) , c = a . getSelection ( ) . getRanges ( ) [ 0 ] , c . collapse ( 1 ) , c . optimize ( ) , "" === c . startContainer . getHtml ( ) && c . startContainer . appendBogus ( ) , c . select ( ) , b = ! 0 ) : b = ! 1 ; if ( ! b ) return ; a . getSelection ( ) . scrollIntoView ( ) ;
b . block ; if ( f && d [ c ? "checkStartOfBlock" : "checkEndOfBlock" ] ( ) && d . moveToClosestEditablePosition ( f , ! c ) && d . collapsed ) { if ( d . startContainer . type == CKEDITOR . NODE _ELEMENT ) { var t = d . startContainer . getChild ( d . startOffset - ( c ? 1 : 0 ) ) ; if ( t && t . type == CKEDITOR . NODE _ELEMENT && t . is ( "hr" ) ) { a . fire ( "saveSnapshot" ) ; t . remove ( ) ; b = ! 0 ; break a } } d = d . startPath ( ) . block ; if ( ! d || d && d . contains ( f ) ) b = void 0 ; else { a . fire ( "saveSnapshot" ) ; var q ; ( q = ( c ? d : f ) . getBogus ( ) ) && q . remove ( ) ; q = a . getSelection ( ) ; t = q . createBookmarks ( ) ; ( c ? f : d ) . moveChildren ( c ?
d : f , ! 1 ) ; b . lastElement . mergeSiblings ( ) ; e ( f , d , ! c ) ; q . selectBookmarks ( t ) ; b = ! 0 } } else b = ! 1 } else c = d , q = b . block , d = c . endPath ( ) . block , q && d && ! q . equals ( d ) ? ( a . fire ( "saveSnapshot" ) , ( f = q . getBogus ( ) ) && f . remove ( ) , c . enlarge ( CKEDITOR . ENLARGE _INLINE ) , c . deleteContents ( ) , d . getParent ( ) && ( d . moveChildren ( q , ! 1 ) , b . lastElement . mergeSiblings ( ) , e ( q , d , ! 0 ) ) , c = a . getSelection ( ) . getRanges ( ) [ 0 ] , c . collapse ( 1 ) , c . optimize ( ) , "" === c . startContainer . getHtml ( ) && c . startContainer . appendBogus ( ) , c . select ( ) , b = ! 0 ) : b = ! 1 ; if ( ! b ) return ; a . getSelection ( ) . scrollIntoView ( ) ;
a . fire ( "saveSnapshot" ) ; return ! 1 } } , this , null , 100 ) } } , getUniqueId : function ( ) { var a ; try { this . _ . expandoNumber = a = CKEDITOR . dom . domObject . prototype . getUniqueId . call ( this ) } catch ( b ) { 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 ( ) , b = a . getHead ( ) ; if ( b . getCustomData ( "stylesheet" ) ) { var c = a . getCustomData ( "stylesheet_ref" ) ;
-- c ? a . setCustomData ( "stylesheet_ref" , c ) : ( a . removeCustomData ( "stylesheet_ref" ) , b . removeCustomData ( "stylesheet" ) . remove ( ) ) } } } } } ) ; CKEDITOR . editor . prototype . editable = function ( a ) { var b = this . _ . editable ; if ( b && a ) return 0 ; if ( ! arguments . length ) return b ; a ? b = a instanceof CKEDITOR . editable ? a : new CKEDITOR . editable ( this , a ) : ( b && b . detach ( ) , b = null ) ; return this . _ . editable = b } ; CKEDITOR . on ( "instanceLoaded" , function ( b ) { var c = b . 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 ( b ) { if ( ! c . readOnly ) { var d = c . getSelection ( ) ; d && ! d . isLocked && ( d = c . checkDirty ( ) , c . fire ( "lockSnapshot" ) , a ( b ) , c . fire ( "unlockSnapshot" ) , ! d && c . resetDirty ( ) ) } } ) } ) ; CKEDITOR . on ( "instanceCreated" , function ( a ) { var b = a . editor ; b . on ( "mode" , function ( ) { var a = b . editable ( ) ; if ( a && a . isInline ( ) ) { var c = b . title ; a . changeAttr ( "role" ,
"textbox" ) ; a . changeAttr ( "aria-multiline" , "true" ) ; a . changeAttr ( "aria-label" , c ) ; c && a . changeAttr ( "title" , c ) ; var d = b . fire ( "ariaEditorHelpLabel" , { } ) . label ; if ( d && ( c = this . ui . space ( this . elementMode == CKEDITOR . ELEMENT _MODE _INLINE ? "top" : "contents" ) ) ) { var e = CKEDITOR . tools . getNextId ( ) , d = CKEDITOR . dom . element . createFromHtml ( '\x3cspan id\x3d"' + e + '" class\x3d"cke_voice_label"\x3e' + d + "\x3c/span\x3e" ) ; c . append ( d ) ; a . changeAttr ( "aria-describedby" , e ) } } } ) } ) ; CKEDITOR . addCss ( ".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}" ) ;
x = CKEDITOR . dom . walker . whitespaces ( ! 0 ) ; w = CKEDITOR . dom . walker . bookmark ( ! 1 , ! 0 ) ; z = CKEDITOR . dom . walker . empty ( ) ; H = CKEDITOR . dom . walker . bogus ( ) ; t = /(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi ; n = function ( ) { function a ( b ) { return b . type == CKEDITOR . NODE _ELEMENT } function b ( c , d ) { var e , f , r , g , h = [ ] , k = d . range . startContainer ; e = d . range . startPath ( ) ; for ( var k = B [ k . getName ( ) ] , D = 0 , v = c . getChildren ( ) , l = v . count ( ) , n = - 1 , A = - 1 , u = 0 , S = e . contains ( B . $list ) ; D <
l ; ++ D ) e = v . getItem ( D ) , a ( e ) ? ( r = e . getName ( ) , S && r in CKEDITOR . dtd . $list ? h = h . concat ( b ( e , d ) ) : ( g = ! ! k [ r ] , "br" != r || ! e . data ( "cke-eol" ) || D && D != l - 1 || ( u = ( f = D ? h [ D - 1 ] . node : v . getItem ( D + 1 ) ) && ( ! a ( f ) || ! f . is ( "br" ) ) , f = f && a ( f ) && B . $block [ f . getName ( ) ] ) , - 1 != n || g || ( n = D ) , g || ( A = D ) , h . push ( { isElement : 1 , isLineBreak : u , isBlock : e . isBlockBoundary ( ) , hasBlockSibling : f , node : e , name : r , allowed : g } ) , f = u = 0 ) ) : h . push ( { isElement : 0 , node : e , allowed : 1 } ) ; - 1 < n && ( h [ n ] . firstNotAllowed = 1 ) ; - 1 < A && ( h [ A ] . lastNotAllowed = 1 ) ; return h } function d ( b , c ) { var e = [ ] ,
f = b . getChildren ( ) , r = f . count ( ) , g , h = 0 , k = B [ c ] , D = ! b . is ( B . $inline ) || b . is ( "br" ) ; for ( D && e . push ( " " ) ; h < r ; h ++ ) g = f . getItem ( h ) , a ( g ) && ! g . is ( k ) ? e = e . concat ( d ( g , c ) ) : e . push ( g ) ; D && e . push ( " " ) ; return e } function e ( b ) { return a ( b . startContainer ) && b . startContainer . getChild ( b . startOffset - 1 ) } function f ( b ) { return b && a ( b ) && ( b . is ( B . $removeEmpty ) || b . is ( "a" ) && ! b . isBlockBoundary ( ) ) } function r ( b , c , d , e ) { var f = b . clone ( ) , g , h ; f . setEndAt ( c , CKEDITOR . POSITION _BEFORE _END ) ; ( g = ( new CKEDITOR . dom . walker ( f ) ) . next ( ) ) && a ( g ) && v [ g . getName ( ) ] &&
( h = g . getPrevious ( ) ) && a ( h ) && ! h . getParent ( ) . equals ( b . startContainer ) && d . contains ( h ) && e . contains ( g ) && g . isIdentical ( h ) && ( g . moveChildren ( h ) , g . remove ( ) , r ( b , c , d , e ) ) } function h ( b , c ) { function d ( b , c ) { if ( c . isBlock && c . isElement && ! c . node . is ( "br" ) && a ( b ) && b . is ( "br" ) ) return b . remove ( ) , 1 } var e = c . endContainer . getChild ( c . endOffset ) , f = c . endContainer . getChild ( c . endOffset - 1 ) ; e && d ( e , b [ b . length - 1 ] ) ; f && d ( f , b [ 0 ] ) && ( c . setEnd ( c . endContainer , c . endOffset - 1 ) , c . collapse ( ) ) } var B = CKEDITOR . dtd , v = { p : 1 , div : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 ,
h6 : 1 , ul : 1 , ol : 1 , li : 1 , pre : 1 , dl : 1 , blockquote : 1 } , n = { p : 1 , div : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 } , u = CKEDITOR . tools . extend ( { } , B . $inline ) ; delete u . br ; return function ( p , v , O , q ) { var G = p . editor , E = ! 1 ; "unfiltered_html" == v && ( v = "html" , E = ! 0 ) ; if ( ! q . checkReadOnly ( ) ) { var w = ( new CKEDITOR . dom . elementPath ( q . startContainer , q . root ) ) . blockLimit || q . root ; v = { type : v , dontFilter : E , editable : p , editor : G , range : q , blockLimit : w , mergeCandidates : [ ] , zombies : [ ] } ; var E = v . range , w = v . mergeCandidates , J = "html" === v . type , x , t , z , y , H , U ; "text" == v . type &&
E . shrink ( CKEDITOR . SHRINK _ELEMENT , ! 0 , ! 1 ) && ( t = CKEDITOR . dom . element . createFromHtml ( "\x3cspan\x3e\x26nbsp;\x3c/span\x3e" , E . document ) , E . insertNode ( t ) , E . setStartAfter ( t ) ) ; z = new CKEDITOR . dom . elementPath ( E . startContainer ) ; v . endPath = y = new CKEDITOR . dom . elementPath ( E . endContainer ) ; if ( ! E . collapsed ) { x = y . block || y . blockLimit ; var aa = E . getCommonAncestor ( ) ; x && ! x . equals ( aa ) && ! x . contains ( aa ) && E . checkEndOfBlock ( ) && v . zombies . push ( x ) ; E . deleteContents ( ) } for ( ; ( H = e ( E ) ) && a ( H ) && H . isBlockBoundary ( ) && z . contains ( H ) ; ) E . moveToPosition ( H ,
CKEDITOR . POSITION _BEFORE _END ) ; r ( E , v . blockLimit , z , y ) ; t && ( E . setEndBefore ( t ) , E . collapse ( ) , t . remove ( ) ) ; t = E . startPath ( ) ; if ( x = t . contains ( f , ! 1 , 1 ) ) U = E . splitElement ( x ) , v . inlineStylesRoot = x , v . inlineStylesPeak = t . lastElement ; t = E . createBookmark ( ) ; J && ( l ( x ) , l ( U ) ) ; ( x = t . startNode . getPrevious ( c ) ) && a ( x ) && f ( x ) && w . push ( x ) ; ( x = t . startNode . getNext ( c ) ) && a ( x ) && f ( x ) && w . push ( x ) ; for ( x = t . startNode ; ( x = x . getParent ( ) ) && f ( x ) ; ) w . push ( x ) ; E . moveToBookmark ( t ) ; G . enterMode === CKEDITOR . ENTER _DIV && "" === G . getData ( ! 0 ) && ( ( G = p . getFirst ( ) ) && G . remove ( ) ,
q . setStartAt ( p , CKEDITOR . POSITION _AFTER _START ) , q . collapse ( ! 0 ) ) ; if ( p = O ) { p = v . range ; if ( "text" == v . type && v . inlineStylesRoot ) { q = v . inlineStylesPeak ; G = q . getDocument ( ) . createText ( "{cke-peak}" ) ; for ( U = v . inlineStylesRoot . getParent ( ) ; ! q . equals ( U ) ; ) G = G . appendTo ( q . clone ( ) ) , q = q . getParent ( ) ; O = G . getOuterHtml ( ) . split ( "{cke-peak}" ) . join ( O ) } q = v . blockLimit . getName ( ) ; if ( /^\s+|\s+$/ . test ( O ) && "span" in CKEDITOR . dtd [ q ] ) { var V = '\x3cspan data-cke-marker\x3d"1"\x3e\x26nbsp;\x3c/span\x3e' ; O = V + O + V } O = v . editor . dataProcessor . toHtml ( O ,
{ context : null , fixForBody : ! 1 , protectedWhitespaces : ! ! V , dontFilter : v . dontFilter , filter : v . editor . activeFilter , enterMode : v . editor . activeEnterMode } ) ; q = p . document . createElement ( "body" ) ; q . setHtml ( O ) ; V && ( q . getFirst ( ) . remove ( ) , q . getLast ( ) . remove ( ) ) ; if ( ( V = p . startPath ( ) . block ) && ( 1 != V . getChildCount ( ) || ! V . getBogus ( ) ) ) a : { var P ; if ( 1 == q . getChildCount ( ) && a ( P = q . getFirst ( ) ) && P . is ( n ) && ! P . hasAttribute ( "contenteditable" ) ) { V = P . getElementsByTag ( "*" ) ; p = 0 ; for ( U = V . count ( ) ; p < U ; p ++ ) if ( G = V . getItem ( p ) , ! G . is ( u ) ) break a ; P . moveChildren ( P . getParent ( 1 ) ) ;
P . remove ( ) } } v . dataWrapper = q ; p = O } if ( p ) { P = v . range ; p = P . document ; q = v . blockLimit ; U = 0 ; var Q , V = [ ] , F , I ; O = t = 0 ; var L , G = P . startContainer ; H = v . endPath . elements [ 0 ] ; var Z , E = H . getPosition ( G ) , w = ! ! H . getCommonAncestor ( G ) && E != CKEDITOR . POSITION _IDENTICAL && ! ( E & CKEDITOR . POSITION _CONTAINS + CKEDITOR . POSITION _IS _CONTAINED ) , G = b ( v . dataWrapper , v ) ; for ( h ( G , P ) ; U < G . length ; U ++ ) { E = G [ U ] ; if ( J = E . isLineBreak ) J = P , x = q , y = z = void 0 , E . hasBlockSibling ? J = 1 : ( z = J . startContainer . getAscendant ( B . $block , 1 ) ) && z . is ( { div : 1 , p : 1 } ) ? ( y = z . getPosition ( x ) , y ==
CKEDITOR . POSITION _IDENTICAL || y == CKEDITOR . POSITION _CONTAINS ? J = 0 : ( x = J . splitElement ( z ) , J . moveToPosition ( x , CKEDITOR . POSITION _AFTER _START ) , J = 1 ) ) : J = 0 ; if ( J ) O = 0 < U ; else { J = P . startPath ( ) ; ! E . isBlock && k ( v . editor , J . block , J . blockLimit ) && ( I = g ( v . editor ) ) && ( I = p . createElement ( I ) , I . appendBogus ( ) , P . insertNode ( I ) , CKEDITOR . env . needsBrFiller && ( Q = I . getBogus ( ) ) && Q . remove ( ) , P . moveToPosition ( I , CKEDITOR . POSITION _BEFORE _END ) ) ; if ( ( J = P . startPath ( ) . block ) && ! J . equals ( F ) ) { if ( Q = J . getBogus ( ) ) Q . remove ( ) , V . push ( J ) ; F = J } E . firstNotAllowed &&
( t = 1 ) ; if ( t && E . isElement ) { J = P . startContainer ; for ( x = null ; J && ! B [ J . getName ( ) ] [ E . name ] ; ) { if ( J . equals ( q ) ) { J = null ; break } x = J ; J = J . getParent ( ) } if ( J ) x && ( L = P . splitElement ( x ) , v . zombies . push ( L ) , v . zombies . push ( x ) ) ; else { x = q . getName ( ) ; Z = ! U ; J = U == G . length - 1 ; x = d ( E . node , x ) ; z = [ ] ; y = x . length ; for ( var aa = 0 , ca = void 0 , X = 0 , W = - 1 ; aa < y ; aa ++ ) ca = x [ aa ] , " " == ca ? ( X || Z && ! aa || ( z . push ( new CKEDITOR . dom . text ( " " ) ) , W = z . length ) , X = 1 ) : ( z . push ( ca ) , X = 0 ) ; J && W == z . length && z . pop ( ) ; Z = z } } if ( Z ) { for ( ; J = Z . pop ( ) ; ) P . insertNode ( J ) ; Z = 0 } else P . insertNode ( E . node ) ;
E . lastNotAllowed && U < G . length - 1 && ( ( L = w ? H : L ) && P . setEndAt ( L , CKEDITOR . POSITION _AFTER _START ) , t = 0 ) ; P . collapse ( ) } } 1 != G . length ? Q = ! 1 : ( Q = G [ 0 ] , Q = Q . isElement && "false" == Q . node . getAttribute ( "contenteditable" ) ) ; Q && ( O = ! 0 , J = G [ 0 ] . node , P . setStartAt ( J , CKEDITOR . POSITION _BEFORE _START ) , P . setEndAt ( J , CKEDITOR . POSITION _AFTER _END ) ) ; v . dontMoveCaret = O ; v . bogusNeededBlocks = V } Q = v . range ; var Y ; L = v . bogusNeededBlocks ; for ( Z = Q . createBookmark ( ) ; F = v . zombies . pop ( ) ; ) F . getParent ( ) && ( I = Q . clone ( ) , I . moveToElementEditStart ( F ) , I . removeEmptyBlocksAtEnd ( ) ) ;
if ( L ) for ( ; F = L . pop ( ) ; ) CKEDITOR . env . needsBrFiller ? F . appendBogus ( ) : F . append ( Q . document . createText ( " " ) ) ; for ( ; F = v . mergeCandidates . pop ( ) ; ) F . mergeSiblings ( ) ; Q . moveToBookmark ( Z ) ; if ( ! v . dontMoveCaret ) { for ( F = e ( Q ) ; F && a ( F ) && ! F . is ( B . $empty ) ; ) { if ( F . isBlockBoundary ( ) ) Q . moveToPosition ( F , CKEDITOR . POSITION _BEFORE _END ) ; else { if ( f ( F ) && F . getHtml ( ) . match ( /(\s| )$/g ) ) { Y = null ; break } Y = Q . clone ( ) ; Y . moveToPosition ( F , CKEDITOR . POSITION _BEFORE _END ) } F = F . getLast ( c ) } Y && Q . moveToRange ( Y ) } } } } ( ) ; L = function ( ) { function a ( b ) { b = new CKEDITOR . dom . walker ( b ) ;
b . guard = function ( a , b ) { if ( b ) return ! 1 ; if ( a . type == CKEDITOR . NODE _ELEMENT ) return a . is ( CKEDITOR . dtd . $tableContent ) } ; b . evaluator = function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT } ; return b } function b ( a , c , d ) { c = a . getDocument ( ) . createElement ( c ) ; a . append ( c , d ) ; return c } function c ( a ) { var b = a . count ( ) , d ; for ( b ; 0 < b -- ; ) d = a . getItem ( b ) , CKEDITOR . tools . trim ( d . getHtml ( ) ) || ( d . appendBogus ( ) , CKEDITOR . env . ie && 9 > CKEDITOR . env . version && d . getChildCount ( ) && d . getFirst ( ) . remove ( ) ) } return function ( d ) { var e = d . startContainer , f = e . getAscendant ( "table" ,
1 ) , g = ! 1 ; c ( f . getElementsByTag ( "td" ) ) ; c ( f . getElementsByTag ( "th" ) ) ; f = d . clone ( ) ; f . setStart ( e , 0 ) ; f = a ( f ) . lastBackward ( ) ; f || ( f = d . clone ( ) , f . setEndAt ( e , CKEDITOR . POSITION _BEFORE _END ) , f = a ( f ) . lastForward ( ) , g = ! 0 ) ; f || ( f = e ) ; f . is ( "table" ) ? ( d . setStartAt ( f , CKEDITOR . POSITION _BEFORE _START ) , d . collapse ( ! 0 ) , f . remove ( ) ) : ( f . is ( { tbody : 1 , thead : 1 , tfoot : 1 } ) && ( f = b ( f , "tr" , g ) ) , f . is ( "tr" ) && ( f = b ( f , f . getParent ( ) . is ( "thead" ) ? "th" : "td" , g ) ) , ( e = f . getBogus ( ) ) && e . remove ( ) , d . moveToPosition ( f , g ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _BEFORE _END ) ) } } ( ) ;
y = function ( ) { function a ( b ) { b = new CKEDITOR . dom . walker ( b ) ; b . guard = function ( a , b ) { if ( b ) return ! 1 ; if ( a . type == CKEDITOR . NODE _ELEMENT ) return a . is ( CKEDITOR . dtd . $list ) || a . is ( CKEDITOR . dtd . $listItem ) } ; b . evaluator = function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT && a . is ( CKEDITOR . dtd . $listItem ) } ; return b } return function ( b ) { var c = b . startContainer , d = ! 1 , e ; e = b . clone ( ) ; e . setStart ( c , 0 ) ; e = a ( e ) . lastBackward ( ) ; e || ( e = b . clone ( ) , e . setEndAt ( c , CKEDITOR . POSITION _BEFORE _END ) , e = a ( e ) . lastForward ( ) , d = ! 0 ) ; e || ( e = c ) ; e . is ( CKEDITOR . dtd . $list ) ?
( b . setStartAt ( e , CKEDITOR . POSITION _BEFORE _START ) , b . collapse ( ! 0 ) , e . remove ( ) ) : ( ( c = e . getBogus ( ) ) && c . remove ( ) , b . moveToPosition ( e , d ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _BEFORE _END ) , b . select ( ) ) } } ( ) ; F = { eol : { detect : function ( a , b ) { var c = a . range , d = c . clone ( ) , e = c . clone ( ) , f = new CKEDITOR . dom . elementPath ( c . startContainer , b ) , g = new CKEDITOR . dom . elementPath ( c . endContainer , b ) ; d . collapse ( 1 ) ; e . collapse ( ) ; f . block && d . checkBoundaryOfElement ( f . block , CKEDITOR . END ) && ( c . setStartAfter ( f . block ) , a . prependEolBr = 1 ) ; g . block &&
e . checkBoundaryOfElement ( g . block , CKEDITOR . START ) && ( c . setEndBefore ( g . block ) , a . appendEolBr = 1 ) } , fix : function ( a , b ) { var c = b . getDocument ( ) , d ; a . appendEolBr && ( d = this . createEolBr ( c ) , a . fragment . append ( d ) ) ; ! a . prependEolBr || d && ! d . getPrevious ( ) || a . fragment . append ( this . createEolBr ( c ) , 1 ) } , createEolBr : function ( a ) { return a . createElement ( "br" , { attributes : { "data-cke-eol" : 1 } } ) } } , bogus : { exclude : function ( a ) { var b = a . range . getBoundaryNodes ( ) , c = b . startNode , b = b . endNode ; ! b || ! H ( b ) || c && c . equals ( b ) || a . range . setEndBefore ( b ) } } ,
tree : { rebuild : function ( a , b ) { var c = a . range , d = c . getCommonAncestor ( ) , e = new CKEDITOR . dom . elementPath ( d , b ) , f = new CKEDITOR . dom . elementPath ( c . startContainer , b ) , c = new CKEDITOR . dom . elementPath ( c . endContainer , b ) , g ; d . type == CKEDITOR . NODE _TEXT && ( d = d . getParent ( ) ) ; if ( e . blockLimit . is ( { tr : 1 , table : 1 } ) ) { var h = e . contains ( "table" ) . getParent ( ) ; g = function ( a ) { return ! a . equals ( h ) } } else if ( e . block && e . block . is ( CKEDITOR . dtd . $listItem ) && ( f = f . contains ( CKEDITOR . dtd . $list ) , c = c . contains ( CKEDITOR . dtd . $list ) , ! f . equals ( c ) ) ) { var k = e . contains ( CKEDITOR . dtd . $list ) . getParent ( ) ;
g = function ( a ) { return ! a . equals ( k ) } } g || ( g = function ( a ) { return ! a . equals ( e . block ) && ! a . equals ( e . blockLimit ) } ) ; this . rebuildFragment ( a , b , d , g ) } , rebuildFragment : function ( a , b , c , d ) { for ( var e ; c && ! c . equals ( b ) && d ( c ) ; ) e = c . clone ( 0 , 1 ) , a . fragment . appendTo ( e ) , a . fragment = e , c = c . getParent ( ) } } , cell : { shrink : function ( a ) { a = a . range ; var b = a . startContainer , c = a . endContainer , d = a . startOffset , e = a . endOffset ; b . type == CKEDITOR . NODE _ELEMENT && b . equals ( c ) && b . is ( "tr" ) && ++ d == e && a . shrink ( CKEDITOR . SHRINK _TEXT ) } } } ; I = function ( ) { function a ( b , c ) { var d =
b . getParent ( ) ; if ( d . is ( CKEDITOR . dtd . $inline ) ) b [ c ? "insertBefore" : "insertAfter" ] ( d ) } function b ( c , d , e ) { a ( d ) ; a ( e , 1 ) ; for ( var f ; f = e . getNext ( ) ; ) f . insertAfter ( d ) , d = f ; z ( c ) && c . remove ( ) } function c ( a , b ) { var d = new CKEDITOR . dom . range ( a ) ; d . setStartAfter ( b . startNode ) ; d . setEndBefore ( b . endNode ) ; return d } return { list : { detectMerge : function ( a , b ) { var d = c ( b , a . bookmark ) , e = d . startPath ( ) , f = d . endPath ( ) , g = e . contains ( CKEDITOR . dtd . $list ) , h = f . contains ( CKEDITOR . dtd . $list ) ; a . mergeList = g && h && g . getParent ( ) . equals ( h . getParent ( ) ) && ! g . equals ( h ) ;
a . mergeListItems = e . block && f . block && e . block . is ( CKEDITOR . dtd . $listItem ) && f . block . is ( CKEDITOR . dtd . $listItem ) ; if ( a . mergeList || a . mergeListItems ) d = d . clone ( ) , d . setStartBefore ( a . bookmark . startNode ) , d . setEndAfter ( a . bookmark . endNode ) , a . mergeListBookmark = d . createBookmark ( ) } , merge : function ( a , c ) { if ( a . mergeListBookmark ) { var d = a . mergeListBookmark . startNode , e = a . mergeListBookmark . endNode , f = new CKEDITOR . dom . elementPath ( d , c ) , g = new CKEDITOR . dom . elementPath ( e , c ) ; if ( a . mergeList ) { var h = f . contains ( CKEDITOR . dtd . $list ) , k =
g . contains ( CKEDITOR . dtd . $list ) ; h . equals ( k ) || ( k . moveChildren ( h ) , k . remove ( ) ) } a . mergeListItems && ( f = f . contains ( CKEDITOR . dtd . $listItem ) , g = g . contains ( CKEDITOR . dtd . $listItem ) , f . equals ( g ) || b ( g , d , e ) ) ; d . remove ( ) ; e . remove ( ) } } } , block : { detectMerge : function ( a , b ) { if ( ! a . tableContentsRanges && ! a . mergeListBookmark ) { var c = new CKEDITOR . dom . range ( b ) ; c . setStartBefore ( a . bookmark . startNode ) ; c . setEndAfter ( a . bookmark . endNode ) ; a . mergeBlockBookmark = c . createBookmark ( ) } } , merge : function ( a , c ) { if ( a . mergeBlockBookmark && ! a . purgeTableBookmark ) { var d =
a . mergeBlockBookmark . startNode , e = a . mergeBlockBookmark . endNode , f = new CKEDITOR . dom . elementPath ( d , c ) , g = new CKEDITOR . dom . elementPath ( e , c ) , f = f . block , g = g . block ; f && g && ! f . equals ( g ) && b ( g , d , e ) ; d . remove ( ) ; e . remove ( ) } } } , table : function ( ) { function a ( c ) { var e = [ ] , f , g = new CKEDITOR . dom . walker ( c ) , h = c . startPath ( ) . contains ( d ) , p = c . endPath ( ) . contains ( d ) , k = { } ; g . guard = function ( a , g ) { if ( a . type == CKEDITOR . NODE _ELEMENT ) { var l = "visited_" + ( g ? "out" : "in" ) ; if ( a . getCustomData ( l ) ) return ; CKEDITOR . dom . element . setMarker ( k , a , l , 1 ) } if ( g &&
h && a . equals ( h ) ) f = c . clone ( ) , f . setEndAt ( h , CKEDITOR . POSITION _BEFORE _END ) , e . push ( f ) ; else if ( ! g && p && a . equals ( p ) ) f = c . clone ( ) , f . setStartAt ( p , CKEDITOR . POSITION _AFTER _START ) , e . push ( f ) ; else { if ( l = ! g ) l = a . type == CKEDITOR . NODE _ELEMENT && a . is ( d ) && ( ! h || b ( a , h ) ) && ( ! p || b ( a , p ) ) ; if ( ! l && ( l = g ) ) if ( a . is ( d ) ) var l = h && h . getAscendant ( "table" , ! 0 ) , n = p && p . getAscendant ( "table" , ! 0 ) , m = a . getAscendant ( "table" , ! 0 ) , l = l && l . contains ( m ) || n && n . contains ( m ) ; else l = void 0 ; l && ( f = c . clone ( ) , f . selectNodeContents ( a ) , e . push ( f ) ) } } ; g . lastForward ( ) ; CKEDITOR . dom . element . clearAllMarkers ( k ) ;
return e } function b ( a , c ) { var d = CKEDITOR . POSITION _CONTAINS + CKEDITOR . POSITION _IS _CONTAINED , e = a . getPosition ( c ) ; return e === CKEDITOR . POSITION _IDENTICAL ? ! 1 : 0 === ( e & d ) } var d = { td : 1 , th : 1 , caption : 1 } ; return { detectPurge : function ( a ) { var b = a . range , c = b . clone ( ) ; c . enlarge ( CKEDITOR . ENLARGE _ELEMENT ) ; var c = new CKEDITOR . dom . walker ( c ) , e = 0 ; c . evaluator = function ( a ) { a . type == CKEDITOR . NODE _ELEMENT && a . is ( d ) && ++ e } ; c . checkForward ( ) ; if ( 1 < e ) { var c = b . startPath ( ) . contains ( "table" ) , f = b . endPath ( ) . contains ( "table" ) ; c && f && b . checkBoundaryOfElement ( c ,
CKEDITOR . START ) && b . checkBoundaryOfElement ( f , CKEDITOR . END ) && ( b = a . range . clone ( ) , b . setStartBefore ( c ) , b . setEndAfter ( f ) , a . purgeTableBookmark = b . createBookmark ( ) ) } } , detectRanges : function ( e , f ) { var g = c ( f , e . bookmark ) , h = g . clone ( ) , k , p , l = g . getCommonAncestor ( ) ; l . is ( CKEDITOR . dtd . $tableContent ) && ! l . is ( d ) && ( l = l . getAscendant ( "table" , ! 0 ) ) ; p = l ; l = new CKEDITOR . dom . elementPath ( g . startContainer , p ) ; p = new CKEDITOR . dom . elementPath ( g . endContainer , p ) ; l = l . contains ( "table" ) ; p = p . contains ( "table" ) ; if ( l || p ) l && p && b ( l , p ) ? ( e . tableSurroundingRange =
h , h . setStartAt ( l , CKEDITOR . POSITION _AFTER _END ) , h . setEndAt ( p , CKEDITOR . POSITION _BEFORE _START ) , h = g . clone ( ) , h . setEndAt ( l , CKEDITOR . POSITION _AFTER _END ) , k = g . clone ( ) , k . setStartAt ( p , CKEDITOR . POSITION _BEFORE _START ) , k = a ( h ) . concat ( a ( k ) ) ) : l ? p || ( e . tableSurroundingRange = h , h . setStartAt ( l , CKEDITOR . POSITION _AFTER _END ) , g . setEndAt ( l , CKEDITOR . POSITION _AFTER _END ) ) : ( e . tableSurroundingRange = h , h . setEndAt ( p , CKEDITOR . POSITION _BEFORE _START ) , g . setStartAt ( p , CKEDITOR . POSITION _AFTER _START ) ) , e . tableContentsRanges = k ? k : a ( g ) } , deleteRanges : function ( a ) { for ( var b ; b =
a . tableContentsRanges . pop ( ) ; ) b . extractContents ( ) , z ( b . startContainer ) && b . startContainer . appendBogus ( ) ; a . tableSurroundingRange && a . tableSurroundingRange . extractContents ( ) } , purge : function ( a ) { if ( a . purgeTableBookmark ) { var b = a . doc , c = a . range . clone ( ) , b = b . createElement ( "p" ) ; b . insertBefore ( a . purgeTableBookmark . startNode ) ; c . moveToBookmark ( a . purgeTableBookmark ) ; c . deleteContents ( ) ; a . range . moveToPosition ( b , CKEDITOR . POSITION _AFTER _START ) } } } } ( ) , detectExtractMerge : function ( a ) { return ! ( a . range . startPath ( ) . contains ( CKEDITOR . dtd . $listItem ) &&
a . range . endPath ( ) . contains ( CKEDITOR . dtd . $listItem ) ) } , fixUneditableRangePosition : function ( a ) { a . startContainer . getDtd ( ) [ "#" ] || a . moveToClosestEditablePosition ( null , ! 0 ) } , autoParagraph : function ( a , b ) { var c = b . startPath ( ) , d ; k ( a , c . block , c . blockLimit ) && ( d = g ( a ) ) && ( d = b . document . createElement ( d ) , d . appendBogus ( ) , b . insertNode ( d ) , b . moveToPosition ( d , CKEDITOR . POSITION _AFTER _START ) ) } } } ( ) } ) ( ) ;
z = CKEDITOR . dom . walker . whitespaces ( ! 0 ) ; w = CKEDITOR . dom . walker . bookmark ( ! 1 , ! 0 ) ; A = CKEDITOR . dom . walker . empty ( ) ; F = CKEDITOR . dom . walker . bogus ( ) ; u = /(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi ; m = function ( ) { function a ( b ) { return b . type == CKEDITOR . NODE _ELEMENT } function b ( c , d ) { var e , f , q , g , h = [ ] , k = d . range . startContainer ; e = d . range . startPath ( ) ; for ( var k = r [ k . getName ( ) ] , D = 0 , x = c . getChildren ( ) , l = x . count ( ) , m = - 1 , B = - 1 , v = 0 , T = e . contains ( r . $list ) ; D <
l ; ++ D ) e = x . getItem ( D ) , a ( e ) ? ( q = e . getName ( ) , T && q in CKEDITOR . dtd . $list ? h = h . concat ( b ( e , d ) ) : ( g = ! ! k [ q ] , "br" != q || ! e . data ( "cke-eol" ) || D && D != l - 1 || ( v = ( f = D ? h [ D - 1 ] . node : x . getItem ( D + 1 ) ) && ( ! a ( f ) || ! f . is ( "br" ) ) , f = f && a ( f ) && r . $block [ f . getName ( ) ] ) , - 1 != m || g || ( m = D ) , g || ( B = D ) , h . push ( { isElement : 1 , isLineBreak : v , isBlock : e . isBlockBoundary ( ) , hasBlockSibling : f , node : e , name : q , allowed : g } ) , f = v = 0 ) ) : h . push ( { isElement : 0 , node : e , allowed : 1 } ) ; - 1 < m && ( h [ m ] . firstNotAllowed = 1 ) ; - 1 < B && ( h [ B ] . lastNotAllowed = 1 ) ; return h } function d ( b , c ) { var e = [ ] ,
f = b . getChildren ( ) , q = f . count ( ) , g , h = 0 , k = r [ c ] , D = ! b . is ( r . $inline ) || b . is ( "br" ) ; for ( D && e . push ( " " ) ; h < q ; h ++ ) g = f . getItem ( h ) , a ( g ) && ! g . is ( k ) ? e = e . concat ( d ( g , c ) ) : e . push ( g ) ; D && e . push ( " " ) ; return e } function e ( b ) { return a ( b . startContainer ) && b . startContainer . getChild ( b . startOffset - 1 ) } function f ( b ) { return b && a ( b ) && ( b . is ( r . $removeEmpty ) || b . is ( "a" ) && ! b . isBlockBoundary ( ) ) } function q ( b , c , d , e ) { var f = b . clone ( ) , g , r ; f . setEndAt ( c , CKEDITOR . POSITION _BEFORE _END ) ; ( g = ( new CKEDITOR . dom . walker ( f ) ) . next ( ) ) && a ( g ) && x [ g . getName ( ) ] &&
( r = g . getPrevious ( ) ) && a ( r ) && ! r . getParent ( ) . equals ( b . startContainer ) && d . contains ( r ) && e . contains ( g ) && g . isIdentical ( r ) && ( g . moveChildren ( r ) , g . remove ( ) , q ( b , c , d , e ) ) } function h ( b , c ) { function d ( b , c ) { if ( c . isBlock && c . isElement && ! c . node . is ( "br" ) && a ( b ) && b . is ( "br" ) ) return b . remove ( ) , 1 } var e = c . endContainer . getChild ( c . endOffset ) , f = c . endContainer . getChild ( c . endOffset - 1 ) ; e && d ( e , b [ b . length - 1 ] ) ; f && d ( f , b [ 0 ] ) && ( c . setEnd ( c . endContainer , c . endOffset - 1 ) , c . collapse ( ) ) } var r = CKEDITOR . dtd , x = { p : 1 , div : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 ,
h6 : 1 , ul : 1 , ol : 1 , li : 1 , pre : 1 , dl : 1 , blockquote : 1 } , m = { p : 1 , div : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 } , v = CKEDITOR . tools . extend ( { } , r . $inline ) ; delete v . br ; return function ( t , x , I , p ) { var J = t . editor , E = ! 1 ; "unfiltered_html" == x && ( x = "html" , E = ! 0 ) ; if ( ! p . checkReadOnly ( ) ) { var w = ( new CKEDITOR . dom . elementPath ( p . startContainer , p . root ) ) . blockLimit || p . root ; x = { type : x , dontFilter : E , editable : t , editor : J , range : p , blockLimit : w , mergeCandidates : [ ] , zombies : [ ] } ; var E = x . range , w = x . mergeCandidates , K = "html" === x . type , u , z , A , y , F , V ; "text" == x . type &&
E . shrink ( CKEDITOR . SHRINK _ELEMENT , ! 0 , ! 1 ) && ( z = CKEDITOR . dom . element . createFromHtml ( "\x3cspan\x3e\x26nbsp;\x3c/span\x3e" , E . document ) , E . insertNode ( z ) , E . setStartAfter ( z ) ) ; A = new CKEDITOR . dom . elementPath ( E . startContainer ) ; x . endPath = y = new CKEDITOR . dom . elementPath ( E . endContainer ) ; if ( ! E . collapsed ) { u = y . block || y . blockLimit ; var aa = E . getCommonAncestor ( ) ; u && ! u . equals ( aa ) && ! u . contains ( aa ) && E . checkEndOfBlock ( ) && x . zombies . push ( u ) ; E . deleteContents ( ) } for ( ; ( F = e ( E ) ) && a ( F ) && F . isBlockBoundary ( ) && A . contains ( F ) ; ) E . moveToPosition ( F ,
CKEDITOR . POSITION _BEFORE _END ) ; q ( E , x . blockLimit , A , y ) ; z && ( E . setEndBefore ( z ) , E . collapse ( ) , z . remove ( ) ) ; z = E . startPath ( ) ; if ( u = z . contains ( f , ! 1 , 1 ) ) V = E . splitElement ( u ) , x . inlineStylesRoot = u , x . inlineStylesPeak = z . lastElement ; z = E . createBookmark ( ) ; K && ( l ( u ) , l ( V ) ) ; ( u = z . startNode . getPrevious ( c ) ) && a ( u ) && f ( u ) && w . push ( u ) ; ( u = z . startNode . getNext ( c ) ) && a ( u ) && f ( u ) && w . push ( u ) ; for ( u = z . startNode ; ( u = u . getParent ( ) ) && f ( u ) ; ) w . push ( u ) ; E . moveToBookmark ( z ) ; J . enterMode === CKEDITOR . ENTER _DIV && "" === J . getData ( ! 0 ) && ( ( J = t . getFirst ( ) ) && J . remove ( ) ,
p . setStartAt ( t , CKEDITOR . POSITION _AFTER _START ) , p . collapse ( ! 0 ) ) ; if ( t = I ) { t = x . range ; if ( "text" == x . type && x . inlineStylesRoot ) { p = x . inlineStylesPeak ; J = p . getDocument ( ) . createText ( "{cke-peak}" ) ; for ( V = x . inlineStylesRoot . getParent ( ) ; ! p . equals ( V ) ; ) J = J . appendTo ( p . clone ( ) ) , p = p . getParent ( ) ; I = J . getOuterHtml ( ) . split ( "{cke-peak}" ) . join ( I ) } p = x . blockLimit . getName ( ) ; if ( /^\s+|\s+$/ . test ( I ) && "span" in CKEDITOR . dtd [ p ] ) { var W = '\x3cspan data-cke-marker\x3d"1"\x3e\x26nbsp;\x3c/span\x3e' ; I = W + I + W } I = x . editor . dataProcessor . toHtml ( I ,
{ context : null , fixForBody : ! 1 , protectedWhitespaces : ! ! W , dontFilter : x . dontFilter , filter : x . editor . activeFilter , enterMode : x . editor . activeEnterMode } ) ; p = t . document . createElement ( "body" ) ; p . setHtml ( I ) ; W && ( p . getFirst ( ) . remove ( ) , p . getLast ( ) . remove ( ) ) ; if ( ( W = t . startPath ( ) . block ) && ( 1 != W . getChildCount ( ) || ! W . getBogus ( ) ) ) a : { var Q ; if ( 1 == p . getChildCount ( ) && a ( Q = p . getFirst ( ) ) && Q . is ( m ) && ! Q . hasAttribute ( "contenteditable" ) ) { W = Q . getElementsByTag ( "*" ) ; t = 0 ; for ( V = W . count ( ) ; t < V ; t ++ ) if ( J = W . getItem ( t ) , ! J . is ( v ) ) break a ; Q . moveChildren ( Q . getParent ( 1 ) ) ;
Q . remove ( ) } } x . dataWrapper = p ; t = I } if ( t ) { Q = x . range ; t = Q . document ; p = x . blockLimit ; V = 0 ; var R , W = [ ] , G , O ; I = z = 0 ; var H , J = Q . startContainer ; F = x . endPath . elements [ 0 ] ; var M , E = F . getPosition ( J ) , w = ! ! F . getCommonAncestor ( J ) && E != CKEDITOR . POSITION _IDENTICAL && ! ( E & CKEDITOR . POSITION _CONTAINS + CKEDITOR . POSITION _IS _CONTAINED ) , J = b ( x . dataWrapper , x ) ; for ( h ( J , Q ) ; V < J . length ; V ++ ) { E = J [ V ] ; if ( K = E . isLineBreak ) K = Q , u = p , y = A = void 0 , E . hasBlockSibling ? K = 1 : ( A = K . startContainer . getAscendant ( r . $block , 1 ) ) && A . is ( { div : 1 , p : 1 } ) ? ( y = A . getPosition ( u ) , y ==
CKEDITOR . POSITION _IDENTICAL || y == CKEDITOR . POSITION _CONTAINS ? K = 0 : ( u = K . splitElement ( A ) , K . moveToPosition ( u , CKEDITOR . POSITION _AFTER _START ) , K = 1 ) ) : K = 0 ; if ( K ) I = 0 < V ; else { K = Q . startPath ( ) ; ! E . isBlock && k ( x . editor , K . block , K . blockLimit ) && ( O = g ( x . editor ) ) && ( O = t . createElement ( O ) , O . appendBogus ( ) , Q . insertNode ( O ) , CKEDITOR . env . needsBrFiller && ( R = O . getBogus ( ) ) && R . remove ( ) , Q . moveToPosition ( O , CKEDITOR . POSITION _BEFORE _END ) ) ; if ( ( K = Q . startPath ( ) . block ) && ! K . equals ( G ) ) { if ( R = K . getBogus ( ) ) R . remove ( ) , W . push ( K ) ; G = K } E . firstNotAllowed &&
( z = 1 ) ; if ( z && E . isElement ) { K = Q . startContainer ; for ( u = null ; K && ! r [ K . getName ( ) ] [ E . name ] ; ) { if ( K . equals ( p ) ) { K = null ; break } u = K ; K = K . getParent ( ) } if ( K ) u && ( H = Q . splitElement ( u ) , x . zombies . push ( H ) , x . zombies . push ( u ) ) ; else { u = p . getName ( ) ; M = ! V ; K = V == J . length - 1 ; u = d ( E . node , u ) ; A = [ ] ; y = u . length ; for ( var aa = 0 , ca = void 0 , Y = 0 , X = - 1 ; aa < y ; aa ++ ) ca = u [ aa ] , " " == ca ? ( Y || M && ! aa || ( A . push ( new CKEDITOR . dom . text ( " " ) ) , X = A . length ) , Y = 1 ) : ( A . push ( ca ) , Y = 0 ) ; K && X == A . length && A . pop ( ) ; M = A } } if ( M ) { for ( ; K = M . pop ( ) ; ) Q . insertNode ( K ) ; M = 0 } else Q . insertNode ( E . node ) ;
E . lastNotAllowed && V < J . length - 1 && ( ( H = w ? F : H ) && Q . setEndAt ( H , CKEDITOR . POSITION _AFTER _START ) , z = 0 ) ; Q . collapse ( ) } } 1 != J . length ? R = ! 1 : ( R = J [ 0 ] , R = R . isElement && "false" == R . node . getAttribute ( "contenteditable" ) ) ; R && ( I = ! 0 , K = J [ 0 ] . node , Q . setStartAt ( K , CKEDITOR . POSITION _BEFORE _START ) , Q . setEndAt ( K , CKEDITOR . POSITION _AFTER _END ) ) ; x . dontMoveCaret = I ; x . bogusNeededBlocks = W } R = x . range ; var Z ; M = x . bogusNeededBlocks ; for ( G = R . createBookmark ( ) ; O = x . zombies . pop ( ) ; ) O . getParent ( ) && ( H = R . clone ( ) , H . moveToElementEditStart ( O ) , H . removeEmptyBlocksAtEnd ( ) ) ;
if ( M ) for ( ; O = M . pop ( ) ; ) CKEDITOR . env . needsBrFiller ? O . appendBogus ( ) : O . append ( R . document . createText ( " " ) ) ; for ( ; O = x . mergeCandidates . pop ( ) ; ) O . mergeSiblings ( ) ; CKEDITOR . env . webkit && R . startPath ( ) && ( O = R . startPath ( ) , O . block ? O . block . $ . normalize ( ) : O . blockLimit && O . blockLimit . $ . normalize ( ) ) ; R . moveToBookmark ( G ) ; if ( ! x . dontMoveCaret ) { for ( O = e ( R ) ; O && a ( O ) && ! O . is ( r . $empty ) ; ) { if ( O . isBlockBoundary ( ) ) R . moveToPosition ( O , CKEDITOR . POSITION _BEFORE _END ) ; else { if ( f ( O ) && O . getHtml ( ) . match ( /(\s| )$/g ) ) { Z = null ; break } Z = R . clone ( ) ;
Z . moveToPosition ( O , CKEDITOR . POSITION _BEFORE _END ) } O = O . getLast ( c ) } Z && R . moveToRange ( Z ) } } } } ( ) ; M = function ( ) { function a ( b ) { b = new CKEDITOR . dom . walker ( b ) ; b . guard = function ( a , b ) { if ( b ) return ! 1 ; if ( a . type == CKEDITOR . NODE _ELEMENT ) return a . is ( CKEDITOR . dtd . $tableContent ) } ; b . evaluator = function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT } ; return b } function b ( a , c , d ) { c = a . getDocument ( ) . createElement ( c ) ; a . append ( c , d ) ; return c } function c ( a ) { var b = a . count ( ) , d ; for ( b ; 0 < b -- ; ) d = a . getItem ( b ) , CKEDITOR . tools . trim ( d . getHtml ( ) ) || ( d . appendBogus ( ) ,
CKEDITOR . env . ie && 9 > CKEDITOR . env . version && d . getChildCount ( ) && d . getFirst ( ) . remove ( ) ) } return function ( d ) { var e = d . startContainer , f = e . getAscendant ( "table" , 1 ) , g = ! 1 ; c ( f . getElementsByTag ( "td" ) ) ; c ( f . getElementsByTag ( "th" ) ) ; f = d . clone ( ) ; f . setStart ( e , 0 ) ; f = a ( f ) . lastBackward ( ) ; f || ( f = d . clone ( ) , f . setEndAt ( e , CKEDITOR . POSITION _BEFORE _END ) , f = a ( f ) . lastForward ( ) , g = ! 0 ) ; f || ( f = e ) ; f . is ( "table" ) ? ( d . setStartAt ( f , CKEDITOR . POSITION _BEFORE _START ) , d . collapse ( ! 0 ) , f . remove ( ) ) : ( f . is ( { tbody : 1 , thead : 1 , tfoot : 1 } ) && ( f = b ( f , "tr" , g ) ) , f . is ( "tr" ) &&
( f = b ( f , f . getParent ( ) . is ( "thead" ) ? "th" : "td" , g ) ) , ( e = f . getBogus ( ) ) && e . remove ( ) , d . moveToPosition ( f , g ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _BEFORE _END ) ) } } ( ) ; y = function ( ) { function a ( b ) { b = new CKEDITOR . dom . walker ( b ) ; b . guard = function ( a , b ) { if ( b ) return ! 1 ; if ( a . type == CKEDITOR . NODE _ELEMENT ) return a . is ( CKEDITOR . dtd . $list ) || a . is ( CKEDITOR . dtd . $listItem ) } ; b . evaluator = function ( a ) { return a . type == CKEDITOR . NODE _ELEMENT && a . is ( CKEDITOR . dtd . $listItem ) } ; return b } return function ( b ) { var c = b . startContainer , d = ! 1 , e ; e =
b . clone ( ) ; e . setStart ( c , 0 ) ; e = a ( e ) . lastBackward ( ) ; e || ( e = b . clone ( ) , e . setEndAt ( c , CKEDITOR . POSITION _BEFORE _END ) , e = a ( e ) . lastForward ( ) , d = ! 0 ) ; e || ( e = c ) ; e . is ( CKEDITOR . dtd . $list ) ? ( b . setStartAt ( e , CKEDITOR . POSITION _BEFORE _START ) , b . collapse ( ! 0 ) , e . remove ( ) ) : ( ( c = e . getBogus ( ) ) && c . remove ( ) , b . moveToPosition ( e , d ? CKEDITOR . POSITION _AFTER _START : CKEDITOR . POSITION _BEFORE _END ) , b . select ( ) ) } } ( ) ; G = { eol : { detect : function ( a , b ) { var c = a . range , d = c . clone ( ) , e = c . clone ( ) , f = new CKEDITOR . dom . elementPath ( c . startContainer , b ) , g = new CKEDITOR . dom . elementPath ( c . endContainer ,
b ) ; d . collapse ( 1 ) ; e . collapse ( ) ; f . block && d . checkBoundaryOfElement ( f . block , CKEDITOR . END ) && ( c . setStartAfter ( f . block ) , a . prependEolBr = 1 ) ; g . block && e . checkBoundaryOfElement ( g . block , CKEDITOR . START ) && ( c . setEndBefore ( g . block ) , a . appendEolBr = 1 ) } , fix : function ( a , b ) { var c = b . getDocument ( ) , d ; a . appendEolBr && ( d = this . createEolBr ( c ) , a . fragment . append ( d ) ) ; ! a . prependEolBr || d && ! d . getPrevious ( ) || a . fragment . append ( this . createEolBr ( c ) , 1 ) } , createEolBr : function ( a ) { return a . createElement ( "br" , { attributes : { "data-cke-eol" : 1 } } ) } } ,
bogus : { exclude : function ( a ) { var b = a . range . getBoundaryNodes ( ) , c = b . startNode , b = b . endNode ; ! b || ! F ( b ) || c && c . equals ( b ) || a . range . setEndBefore ( b ) } } , tree : { rebuild : function ( a , b ) { var c = a . range , d = c . getCommonAncestor ( ) , e = new CKEDITOR . dom . elementPath ( d , b ) , f = new CKEDITOR . dom . elementPath ( c . startContainer , b ) , c = new CKEDITOR . dom . elementPath ( c . endContainer , b ) , g ; d . type == CKEDITOR . NODE _TEXT && ( d = d . getParent ( ) ) ; if ( e . blockLimit . is ( { tr : 1 , table : 1 } ) ) { var r = e . contains ( "table" ) . getParent ( ) ; g = function ( a ) { return ! a . equals ( r ) } } else if ( e . block &&
e . block . is ( CKEDITOR . dtd . $listItem ) && ( f = f . contains ( CKEDITOR . dtd . $list ) , c = c . contains ( CKEDITOR . dtd . $list ) , ! f . equals ( c ) ) ) { var h = e . contains ( CKEDITOR . dtd . $list ) . getParent ( ) ; g = function ( a ) { return ! a . equals ( h ) } } g || ( g = function ( a ) { return ! a . equals ( e . block ) && ! a . equals ( e . blockLimit ) } ) ; this . rebuildFragment ( a , b , d , g ) } , rebuildFragment : function ( a , b , c , d ) { for ( var e ; c && ! c . equals ( b ) && d ( c ) ; ) e = c . clone ( 0 , 1 ) , a . fragment . appendTo ( e ) , a . fragment = e , c = c . getParent ( ) } } , cell : { shrink : function ( a ) { a = a . range ; var b = a . startContainer , c = a . endContainer ,
d = a . startOffset , e = a . endOffset ; b . type == CKEDITOR . NODE _ELEMENT && b . equals ( c ) && b . is ( "tr" ) && ++ d == e && a . shrink ( CKEDITOR . SHRINK _TEXT ) } } } ; H = function ( ) { function a ( b , c ) { var d = b . getParent ( ) ; if ( d . is ( CKEDITOR . dtd . $inline ) ) b [ c ? "insertBefore" : "insertAfter" ] ( d ) } function b ( c , d , e ) { a ( d ) ; a ( e , 1 ) ; for ( var f ; f = e . getNext ( ) ; ) f . insertAfter ( d ) , d = f ; A ( c ) && c . remove ( ) } function c ( a , b ) { var d = new CKEDITOR . dom . range ( a ) ; d . setStartAfter ( b . startNode ) ; d . setEndBefore ( b . endNode ) ; return d } return { list : { detectMerge : function ( a , b ) { var d = c ( b , a . bookmark ) ,
e = d . startPath ( ) , f = d . endPath ( ) , g = e . contains ( CKEDITOR . dtd . $list ) , h = f . contains ( CKEDITOR . dtd . $list ) ; a . mergeList = g && h && g . getParent ( ) . equals ( h . getParent ( ) ) && ! g . equals ( h ) ; a . mergeListItems = e . block && f . block && e . block . is ( CKEDITOR . dtd . $listItem ) && f . block . is ( CKEDITOR . dtd . $listItem ) ; if ( a . mergeList || a . mergeListItems ) d = d . clone ( ) , d . setStartBefore ( a . bookmark . startNode ) , d . setEndAfter ( a . bookmark . endNode ) , a . mergeListBookmark = d . createBookmark ( ) } , merge : function ( a , c ) { if ( a . mergeListBookmark ) { var d = a . mergeListBookmark . startNode ,
e = a . mergeListBookmark . endNode , f = new CKEDITOR . dom . elementPath ( d , c ) , g = new CKEDITOR . dom . elementPath ( e , c ) ; if ( a . mergeList ) { var h = f . contains ( CKEDITOR . dtd . $list ) , k = g . contains ( CKEDITOR . dtd . $list ) ; h . equals ( k ) || ( k . moveChildren ( h ) , k . remove ( ) ) } a . mergeListItems && ( f = f . contains ( CKEDITOR . dtd . $listItem ) , g = g . contains ( CKEDITOR . dtd . $listItem ) , f . equals ( g ) || b ( g , d , e ) ) ; d . remove ( ) ; e . remove ( ) } } } , block : { detectMerge : function ( a , b ) { if ( ! a . tableContentsRanges && ! a . mergeListBookmark ) { var c = new CKEDITOR . dom . range ( b ) ; c . setStartBefore ( a . bookmark . startNode ) ;
c . setEndAfter ( a . bookmark . endNode ) ; a . mergeBlockBookmark = c . createBookmark ( ) } } , merge : function ( a , c ) { if ( a . mergeBlockBookmark && ! a . purgeTableBookmark ) { var d = a . mergeBlockBookmark . startNode , e = a . mergeBlockBookmark . endNode , f = new CKEDITOR . dom . elementPath ( d , c ) , g = new CKEDITOR . dom . elementPath ( e , c ) , f = f . block , g = g . block ; f && g && ! f . equals ( g ) && b ( g , d , e ) ; d . remove ( ) ; e . remove ( ) } } } , table : function ( ) { function a ( c ) { var e = [ ] , f , g = new CKEDITOR . dom . walker ( c ) , h = c . startPath ( ) . contains ( d ) , t = c . endPath ( ) . contains ( d ) , k = { } ; g . guard = function ( a ,
g ) { if ( a . type == CKEDITOR . NODE _ELEMENT ) { var l = "visited_" + ( g ? "out" : "in" ) ; if ( a . getCustomData ( l ) ) return ; CKEDITOR . dom . element . setMarker ( k , a , l , 1 ) } if ( g && h && a . equals ( h ) ) f = c . clone ( ) , f . setEndAt ( h , CKEDITOR . POSITION _BEFORE _END ) , e . push ( f ) ; else if ( ! g && t && a . equals ( t ) ) f = c . clone ( ) , f . setStartAt ( t , CKEDITOR . POSITION _AFTER _START ) , e . push ( f ) ; else { if ( l = ! g ) l = a . type == CKEDITOR . NODE _ELEMENT && a . is ( d ) && ( ! h || b ( a , h ) ) && ( ! t || b ( a , t ) ) ; if ( ! l && ( l = g ) ) if ( a . is ( d ) ) var l = h && h . getAscendant ( "table" , ! 0 ) , m = t && t . getAscendant ( "table" , ! 0 ) , n = a . getAscendant ( "table" ,
! 0 ) , l = l && l . contains ( n ) || m && m . contains ( n ) ; else l = void 0 ; l && ( f = c . clone ( ) , f . selectNodeContents ( a ) , e . push ( f ) ) } } ; g . lastForward ( ) ; CKEDITOR . dom . element . clearAllMarkers ( k ) ; return e } function b ( a , c ) { var d = CKEDITOR . POSITION _CONTAINS + CKEDITOR . POSITION _IS _CONTAINED , e = a . getPosition ( c ) ; return e === CKEDITOR . POSITION _IDENTICAL ? ! 1 : 0 === ( e & d ) } var d = { td : 1 , th : 1 , caption : 1 } ; return { detectPurge : function ( a ) { var b = a . range , c = b . clone ( ) ; c . enlarge ( CKEDITOR . ENLARGE _ELEMENT ) ; var c = new CKEDITOR . dom . walker ( c ) , e = 0 ; c . evaluator = function ( a ) { a . type ==
CKEDITOR . NODE _ELEMENT && a . is ( d ) && ++ e } ; c . checkForward ( ) ; if ( 1 < e ) { var c = b . startPath ( ) . contains ( "table" ) , f = b . endPath ( ) . contains ( "table" ) ; c && f && b . checkBoundaryOfElement ( c , CKEDITOR . START ) && b . checkBoundaryOfElement ( f , CKEDITOR . END ) && ( b = a . range . clone ( ) , b . setStartBefore ( c ) , b . setEndAfter ( f ) , a . purgeTableBookmark = b . createBookmark ( ) ) } } , detectRanges : function ( e , f ) { var g = c ( f , e . bookmark ) , h = g . clone ( ) , k , t , l = g . getCommonAncestor ( ) ; l . is ( CKEDITOR . dtd . $tableContent ) && ! l . is ( d ) && ( l = l . getAscendant ( "table" , ! 0 ) ) ; t = l ; l = new CKEDITOR . dom . elementPath ( g . startContainer ,
t ) ; t = new CKEDITOR . dom . elementPath ( g . endContainer , t ) ; l = l . contains ( "table" ) ; t = t . contains ( "table" ) ; if ( l || t ) l && t && b ( l , t ) ? ( e . tableSurroundingRange = h , h . setStartAt ( l , CKEDITOR . POSITION _AFTER _END ) , h . setEndAt ( t , CKEDITOR . POSITION _BEFORE _START ) , h = g . clone ( ) , h . setEndAt ( l , CKEDITOR . POSITION _AFTER _END ) , k = g . clone ( ) , k . setStartAt ( t , CKEDITOR . POSITION _BEFORE _START ) , k = a ( h ) . concat ( a ( k ) ) ) : l ? t || ( e . tableSurroundingRange = h , h . setStartAt ( l , CKEDITOR . POSITION _AFTER _END ) , g . setEndAt ( l , CKEDITOR . POSITION _AFTER _END ) ) : ( e . tableSurroundingRange =
h , h . setEndAt ( t , CKEDITOR . POSITION _BEFORE _START ) , g . setStartAt ( t , CKEDITOR . POSITION _AFTER _START ) ) , e . tableContentsRanges = k ? k : a ( g ) } , deleteRanges : function ( a ) { for ( var b ; b = a . tableContentsRanges . pop ( ) ; ) b . extractContents ( ) , A ( b . startContainer ) && b . startContainer . appendBogus ( ) ; a . tableSurroundingRange && a . tableSurroundingRange . extractContents ( ) } , purge : function ( a ) { if ( a . purgeTableBookmark ) { var b = a . doc , c = a . range . clone ( ) , b = b . createElement ( "p" ) ; b . insertBefore ( a . purgeTableBookmark . startNode ) ; c . moveToBookmark ( a . purgeTableBookmark ) ;
c . deleteContents ( ) ; a . range . moveToPosition ( b , CKEDITOR . POSITION _AFTER _START ) } } } } ( ) , detectExtractMerge : function ( a ) { return ! ( a . range . startPath ( ) . contains ( CKEDITOR . dtd . $listItem ) && a . range . endPath ( ) . contains ( CKEDITOR . dtd . $listItem ) ) } , fixUneditableRangePosition : function ( a ) { a . startContainer . getDtd ( ) [ "#" ] || a . moveToClosestEditablePosition ( null , ! 0 ) } , autoParagraph : function ( a , b ) { var c = b . startPath ( ) , d ; k ( a , c . block , c . blockLimit ) && ( d = g ( a ) ) && ( d = b . document . createElement ( d ) , d . appendBogus ( ) , b . insertNode ( d ) , b . moveToPosition ( d ,
CKEDITOR . POSITION _AFTER _START ) ) } } } ( ) } ) ( ) ;
( function ( ) { function a ( a ) { return CKEDITOR . plugins . widget && CKEDITOR . plugins . widget . isDomWidget ( a ) } function d ( b , c ) { if ( 0 === b . length || a ( b [ 0 ] . getEnclosedNode ( ) ) ) return ! 1 ; var d , e ; if ( ( d = ! c && 1 === b . length ) && ! ( d = b [ 0 ] . collapsed ) ) { var f = b [ 0 ] ; d = f . startContainer . getAscendant ( { td : 1 , th : 1 } , ! 0 ) ; var g = f . endContainer . getAscendant ( { td : 1 , th : 1 } , ! 0 ) ; e = CKEDITOR . tools . trim ; d && d . equals ( g ) && ! d . findOne ( "td, th, tr, tbody, table" ) ? ( f = f . cloneContents ( ) , d = f . getFirst ( ) ? e ( f . getFirst ( ) . getText ( ) ) !== e ( d . getText ( ) ) : ! 0 ) : d = ! 1 } if ( d ) return ! 1 ;
for ( e = 0 ; e < b . length ; e ++ ) if ( d = b [ e ] . _getTableElement ( ) , ! d ) return ! 1 ; return ! 0 } function b ( a ) { function b ( a ) { a = a . find ( "td, th" ) ; var c = [ ] , d ; for ( d = 0 ; d < a . count ( ) ; d ++ ) c . push ( a . getItem ( d ) ) ; return c } var c = [ ] , d , e ; for ( e = 0 ; e < a . length ; e ++ ) d = a [ e ] . _getTableElement ( ) , d . is && d . is ( { td : 1 , th : 1 } ) ? c . push ( d ) : c = c . concat ( b ( d ) ) ; return c } function c ( a ) { a = b ( a ) ; var c = "" , d = [ ] , e , f ; for ( f = 0 ; f < a . length ; f ++ ) e && ! e . equals ( a [ f ] . getAscendant ( "tr" ) ) ? ( c += d . join ( "\t" ) + "\n" , e = a [ f ] . getAscendant ( "tr" ) , d = [ ] ) : 0 === f && ( e = a [ f ] . getAscendant ( "tr" ) ) , d . push ( a [ f ] . getText ( ) ) ;
return c += d . join ( "\t" ) } function f ( a ) { var b = this . root . editor , d = b . getSelection ( 1 ) ; this . reset ( ) ; I = ! 0 ; d . root . once ( "selectionchange" , function ( a ) { a . cancel ( ) } , null , null , 0 ) ; d . selectRanges ( [ a [ 0 ] ] ) ; d = this . _ . cache ; d . ranges = new CKEDITOR . dom . rangeList ( a ) ; d . type = CKEDITOR . SELECTION _TEXT ; d . selectedElement = a [ 0 ] . _getTableElement ( ) ; d . selectedText = c ( a ) ; d . nativeSel = null ; this . isFake = 1 ; this . rev = L ++ ; b . _ . fakeSelection = this ; I = ! 1 ; this . root . fire ( "selectionchange" ) } function h ( ) { var b = this . _ . fakeSelection , c ; if ( b ) { c = this . getSelection ( 1 ) ;
var e ; if ( ! ( e = ! c ) && ( e = ! c . isHidden ( ) ) ) { e = b ; var f = c . getRanges ( ) , g = e . getRanges ( ) , h = f . length && f [ 0 ] . _getTableElement ( ) && f [ 0 ] . _getTableElement ( ) . getAscendant ( "table" , ! 0 ) , p = g . length && g [ 0 ] . _getTableElement ( ) && g [ 0 ] . _getTableElement ( ) . getAscendant ( "table" , ! 0 ) , k = 1 === f . length && f [ 0 ] . _getTableElement ( ) && f [ 0 ] . _getTableElement ( ) . is ( "table" ) , l = 1 === g . length && g [ 0 ] . _getTableElement ( ) && g [ 0 ] . _getTableElement ( ) . is ( "table" ) ; if ( a ( e . getSelectedElement ( ) ) ) e = ! 1 ; else { var q = 1 === f . length && f [ 0 ] . collapsed , g = d ( f , ! ! CKEDITOR . env . webkit ) &&
d ( g ) ; h = h && p ? h . equals ( p ) || p . contains ( h ) : ! 1 ; h && ( q || g ) ? ( k && ! l && e . selectRanges ( f ) , e = ! 0 ) : e = ! 1 } e = ! e } e && ( b . reset ( ) , b = 0 ) } if ( ! b && ( b = c || this . getSelection ( 1 ) , ! b || b . getType ( ) == CKEDITOR . SELECTION _NONE ) ) return ; this . fire ( "selectionCheck" , b ) ; c = this . elementPath ( ) ; c . compare ( this . _ . selectionPreviousPath ) || ( e = this . _ . selectionPreviousPath && this . _ . selectionPreviousPath . blockLimit . equals ( c . blockLimit ) , ! CKEDITOR . env . webkit && ! CKEDITOR . env . gecko || e || ( this . _ . previousActive = this . document . getActive ( ) ) , this . _ . selectionPreviousPath =
c , this . fire ( "selectionChange" , { selection : b , path : c } ) ) } function k ( ) { C = ! 0 ; m || ( g . call ( this ) , m = CKEDITOR . tools . setTimeout ( g , 200 , this ) ) } function g ( ) { m = null ; C && ( CKEDITOR . tools . setTimeout ( h , 0 , this ) , C = ! 1 ) } function l ( a ) { return K ( a ) || a . type == CKEDITOR . NODE _ELEMENT && ! a . is ( CKEDITOR . dtd . $empty ) ? ! 0 : ! 1 } function u ( a ) { function b ( c , d ) { return c && c . type != CKEDITOR . NODE _TEXT ? a . clone ( ) [ "moveToElementEdit" + ( d ? "End" : "Start" ) ] ( c ) : ! 1 } if ( ! ( a . root instanceof CKEDITOR . editable ) ) return ! 1 ; var c = a . startContainer , d = a . getPreviousNode ( l ,
null , c ) , e = a . getNextNode ( l , null , c ) ; return b ( d ) || b ( e , 1 ) || ! ( d || e || c . type == CKEDITOR . NODE _ELEMENT && c . isBlockBoundary ( ) && c . getBogus ( ) ) ? ! 0 : ! 1 } function e ( a ) { x ( a , ! 1 ) ; var b = a . getDocument ( ) . createText ( y ) ; a . setCustomData ( "cke-fillingChar" , b ) ; return b } function x ( a , b ) { var c = a && a . removeCustomData ( "cke-fillingChar" ) ; if ( c ) { if ( ! 1 !== b ) { var d = a . getDocument ( ) . getSelection ( ) . getNative ( ) , e = d && "None" != d . type && d . getRangeAt ( 0 ) , f = y . length ; if ( c . getLength ( ) > f && e && e . intersectsNode ( c . $ ) ) { var g = [ { node : d . anchorNode , offset : d . anchorOffset } ,
{ node : d . focusNode , offset : d . focusOffset } ] ; d . anchorNode == c . $ && d . anchorOffset > f && ( g [ 0 ] . offset -= f ) ; d . focusNode == c . $ && d . focusOffset > f && ( g [ 1 ] . offset -= f ) } } c . setText ( w ( c . getText ( ) , 1 ) ) ; g && ( c = a . getDocument ( ) . $ , d = c . getSelection ( ) , c = c . createRange ( ) , c . setStart ( g [ 0 ] . node , g [ 0 ] . offset ) , c . collapse ( ! 0 ) , d . removeAllRanges ( ) , d . addRange ( c ) , d . extend ( g [ 1 ] . node , g [ 1 ] . offset ) ) } } function w ( a , b ) { return b ? a . replace ( F , function ( a , b ) { return b ? " " : "" } ) : a . replace ( y , "" ) } function z ( a , b ) { var c = b && CKEDITOR . tools . htmlEncode ( b ) || "\x26nbsp;" ,
return c += d . join ( "\t" ) } function f ( a ) { var b = this . root . editor , d = b . getSelection ( 1 ) ; this . reset ( ) ; H = ! 0 ; d . root . once ( "selectionchange" , function ( a ) { a . cancel ( ) } , null , null , 0 ) ; d . selectRanges ( [ a [ 0 ] ] ) ; d = this . _ . cache ; d . ranges = new CKEDITOR . dom . rangeList ( a ) ; d . type = CKEDITOR . SELECTION _TEXT ; d . selectedElement = a [ 0 ] . _getTableElement ( ) ; d . selectedText = c ( a ) ; d . nativeSel = null ; this . isFake = 1 ; this . rev = M ++ ; b . _ . fakeSelection = this ; H = ! 1 ; this . root . fire ( "selectionchange" ) } function h ( ) { var b = this . _ . fakeSelection , c ; if ( b ) { c = this . getSelection ( 1 ) ;
var e ; if ( ! ( e = ! c ) && ( e = ! c . isHidden ( ) ) ) { e = b ; var f = c . getRanges ( ) , g = e . getRanges ( ) , h = f . length && f [ 0 ] . _getTableElement ( ) && f [ 0 ] . _getTableElement ( ) . getAscendant ( "table" , ! 0 ) , t = g . length && g [ 0 ] . _getTableElement ( ) && g [ 0 ] . _getTableElement ( ) . getAscendant ( "table" , ! 0 ) , k = 1 === f . length && f [ 0 ] . _getTableElement ( ) && f [ 0 ] . _getTableElement ( ) . is ( "table" ) , l = 1 === g . length && g [ 0 ] . _getTableElement ( ) && g [ 0 ] . _getTableElement ( ) . is ( "table" ) ; if ( a ( e . getSelectedElement ( ) ) ) e = ! 1 ; else { var p = 1 === f . length && f [ 0 ] . collapsed , g = d ( f , ! ! CKEDITOR . env . webkit ) &&
d ( g ) ; h = h && t ? h . equals ( t ) || t . contains ( h ) : ! 1 ; h && ( p || g ) ? ( k && ! l && e . selectRanges ( f ) , e = ! 0 ) : e = ! 1 } e = ! e } e && ( b . reset ( ) , b = 0 ) } if ( ! b && ( b = c || this . getSelection ( 1 ) , ! b || b . getType ( ) == CKEDITOR . SELECTION _NONE ) ) return ; this . fire ( "selectionCheck" , b ) ; c = this . elementPath ( ) ; c . compare ( this . _ . selectionPreviousPath ) || ( e = this . _ . selectionPreviousPath && this . _ . selectionPreviousPath . blockLimit . equals ( c . blockLimit ) , ! CKEDITOR . env . webkit && ! CKEDITOR . env . gecko || e || ( this . _ . previousActive = this . document . getActive ( ) ) , this . _ . selectionPreviousPath =
c , this . fire ( "selectionChange" , { selection : b , path : c } ) ) } function k ( ) { C = ! 0 ; n || ( g . call ( this ) , n = CKEDITOR . tools . setTimeout ( g , 200 , this ) ) } function g ( ) { n = null ; C && ( CKEDITOR . tools . setTimeout ( h , 0 , this ) , C = ! 1 ) } function l ( a ) { return L ( a ) || a . type == CKEDITOR . NODE _ELEMENT && ! a . is ( CKEDITOR . dtd . $empty ) ? ! 0 : ! 1 } function v ( a ) { function b ( c , d ) { return c && c . type != CKEDITOR . NODE _TEXT ? a . clone ( ) [ "moveToElementEdit" + ( d ? "End" : "Start" ) ] ( c ) : ! 1 } if ( ! ( a . root instanceof CKEDITOR . editable ) ) return ! 1 ; var c = a . startContainer , d = a . getPreviousNode ( l ,
null , c ) , e = a . getNextNode ( l , null , c ) ; return b ( d ) || b ( e , 1 ) || ! ( d || e || c . type == CKEDITOR . NODE _ELEMENT && c . isBlockBoundary ( ) && c . getBogus ( ) ) ? ! 0 : ! 1 } function e ( a ) { z ( a , ! 1 ) ; var b = a . getDocument ( ) . createText ( y ) ; a . setCustomData ( "cke-fillingChar" , b ) ; return b } function z ( a , b ) { var c = a && a . removeCustomData ( "cke-fillingChar" ) ; if ( c ) { if ( ! 1 !== b ) { var d = a . getDocument ( ) . getSelection ( ) . getNative ( ) , e = d && "None" != d . type && d . getRangeAt ( 0 ) , f = y . length ; if ( c . getLength ( ) > f && e && e . intersectsNode ( c . $ ) ) { var g = [ { node : d . anchorNode , offset : d . anchorOffset } ,
{ node : d . focusNode , offset : d . focusOffset } ] ; d . anchorNode == c . $ && d . anchorOffset > f && ( g [ 0 ] . offset -= f ) ; d . focusNode == c . $ && d . focusOffset > f && ( g [ 1 ] . offset -= f ) } } c . setText ( w ( c . getText ( ) , 1 ) ) ; g && ( c = a . getDocument ( ) . $ , d = c . getSelection ( ) , c = c . createRange ( ) , c . setStart ( g [ 0 ] . node , g [ 0 ] . offset ) , c . collapse ( ! 0 ) , d . removeAllRanges ( ) , d . addRange ( c ) , d . extend ( g [ 1 ] . node , g [ 1 ] . offset ) ) } } function w ( a , b ) { return b ? a . replace ( G , function ( a , b ) { return b ? " " : "" } ) : a . replace ( y , "" ) } function A ( a , b ) { var c = b && CKEDITOR . tools . htmlEncode ( b ) || "\x26nbsp;" ,
c = 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' + c + "\x3c/div\x3e" , a . document ) ; a . fire ( "lockSnapshot" ) ; a . editable ( ) . append ( c ) ; var d = a . getSelection ( 1 ) , e = a . createRange ( ) , f = d . root . on ( "selectionchange" , function ( a ) { a . cancel ( ) } , null , null , 0 ) ; e . setStartAt ( c , CKEDITOR . POSITION _AFTER _START ) ; e . setEndAt ( c , CKEDITOR . POSITION _BEFORE _END ) ;
d . selectRanges ( [ e ] ) ; f . removeListener ( ) ; a . fire ( "unlockSnapshot" ) ; a . _ . hiddenSelectionContainer = c } function H ( a ) { var b = { 37 : 1 , 39 : 1 , 8 : 1 , 46 : 1 } ; return function ( c ) { var d = c . data . getKeystroke ( ) ; if ( b [ d ] ) { var e = a . getSelection ( ) . getRanges ( ) , f = e [ 0 ] ; 1 == e . length && f . collapsed && ( d = f [ 38 > d ? "getPreviousEditableNode" : "getNextEditableNode" ] ( ) ) && d . type == CKEDITOR . NODE _ELEMENT && "false" == d . getAttribute ( "contenteditable" ) && ( a . getSelection ( ) . fake ( d ) , c . data . preventDefault ( ) , c . cancel ( ) ) } } } function t ( a ) { for ( var b = 0 ; b < a . length ; b ++ ) { var c =
d . selectRanges ( [ e ] ) ; f . removeListener ( ) ; a . fire ( "unlockSnapshot" ) ; a . _ . hiddenSelectionContainer = c } function F ( a ) { var b = { 37 : 1 , 39 : 1 , 8 : 1 , 46 : 1 } ; return function ( c ) { var d = c . data . getKeystroke ( ) ; if ( b [ d ] ) { var e = a . getSelection ( ) . getRanges ( ) , f = e [ 0 ] ; 1 == e . length && f . collapsed && ( d = f [ 38 > d ? "getPreviousEditableNode" : "getNextEditableNode" ] ( ) ) && d . type == CKEDITOR . NODE _ELEMENT && "false" == d . getAttribute ( "contenteditable" ) && ( a . getSelection ( ) . fake ( d ) , c . data . preventDefault ( ) , c . cancel ( ) ) } } } function u ( a ) { for ( var b = 0 ; b < a . length ; b ++ ) { var c =
a [ b ] ; c . getCommonAncestor ( ) . isReadOnly ( ) && a . splice ( b , 1 ) ; if ( ! c . collapsed ) { if ( c . startContainer . isReadOnly ( ) ) for ( var d = c . startContainer , e ; d && ! ( ( e = d . type == CKEDITOR . NODE _ELEMENT ) && d . is ( "body" ) || ! d . isReadOnly ( ) ) ; ) e && "false" == d . getAttribute ( "contentEditable" ) && c . setStartAfter ( d ) , d = d . getParent ( ) ; d = c . startContainer ; e = c . endContainer ; var f = c . startOffset , g = c . endOffset , h = c . clone ( ) ; d && d . type == CKEDITOR . NODE _TEXT && ( f >= d . getLength ( ) ? h . setStartAfter ( d ) : h . setStartBefore ( d ) ) ; e && e . type == CKEDITOR . NODE _TEXT && ( g ? h . setEndAfter ( e ) :
h . setEndBefore ( e ) ) ; d = new CKEDITOR . dom . walker ( h ) ; d . evaluator = function ( d ) { if ( d . type == CKEDITOR . NODE _ELEMENT && d . isReadOnly ( ) ) { var e = c . clone ( ) ; c . setEndBefore ( d ) ; c . collapsed && a . splice ( b -- , 1 ) ; d . getPosition ( h . endContainer ) & CKEDITOR . POSITION _CONTAINS || ( e . setStartAfter ( d ) , e . collapsed || a . splice ( b + 1 , 0 , e ) ) ; return ! 0 } return ! 1 } ; d . next ( ) } } return a } var n = "function" != typeof window . getSelection , L = 1 , y = CKEDITOR . tools . repeat ( " " , 7 ) , F = new RegExp ( y + "( )?" , "g" ) , I , m , C , K = CKEDITOR . dom . walker . invisible ( 1 ) , A = function ( ) { function a ( b ) { return function ( a ) { var c =
h . setEndBefore ( e ) ) ; d = new CKEDITOR . dom . walker ( h ) ; d . evaluator = function ( d ) { if ( d . type == CKEDITOR . NODE _ELEMENT && d . isReadOnly ( ) ) { var e = c . clone ( ) ; c . setEndBefore ( d ) ; c . collapsed && a . splice ( b -- , 1 ) ; d . getPosition ( h . endContainer ) & CKEDITOR . POSITION _CONTAINS || ( e . setStartAfter ( d ) , e . collapsed || a . splice ( b + 1 , 0 , e ) ) ; return ! 0 } return ! 1 } ; d . next ( ) } } return a } var m = "function" != typeof window . getSelection , M = 1 , y = CKEDITOR . tools . repeat ( " " , 7 ) , G = new RegExp ( y + "( )?" , "g" ) , H , n , C , L = CKEDITOR . dom . walker . invisible ( 1 ) , B = function ( ) { function a ( b ) { return function ( a ) { var c =
a . editor . createRange ( ) ; c . moveToClosestEditablePosition ( a . selected , b ) && a . editor . getSelection ( ) . selectRanges ( [ c ] ) ; return ! 1 } } function b ( a ) { return function ( b ) { var c = b . editor , d = c . createRange ( ) , e ; if ( ! c . readOnly ) return ( e = d . moveToClosestEditablePosition ( b . selected , a ) ) || ( e = d . moveToClosestEditablePosition ( b . selected , ! a ) ) , e && c . getSelection ( ) . selectRanges ( [ d ] ) , c . fire ( "saveSnapshot" ) , b . selected . remove ( ) , e || ( d . moveToElementEditablePosition ( c . editable ( ) ) , c . getSelection ( ) . selectRanges ( [ d ] ) ) , c . fire ( "saveSnapshot" ) ,
! 1 } } var c = a ( ) , d = a ( 1 ) ; return { 37 : c , 38 : c , 39 : d , 40 : d , 8 : b ( ) , 46 : b ( 1 ) } } ( ) ; CKEDITOR . on ( "instanceCreated" , function ( a ) { function b ( ) { var a = c . getSelection ( ) ; a && a . removeAllRanges ( ) } var c = a . editor ; c . on ( "contentDom" , function ( ) { function a ( ) { u = new CKEDITOR . dom . selection ( c . getSelection ( ) ) ; u . lock ( ) } function b ( ) { g . removeListener ( "mouseup" , b ) ; r . removeListener ( "mouseup" , b ) ; var a = CKEDITOR . document . $ . selection , c = a . createRange ( ) ; "None" != a . type && c . parentElement ( ) && c . parentElement ( ) . ownerDocument == f . $ && c . select ( ) } function d ( a ) { var b ,
c ; b = ( b = this . document . getActive ( ) ) ? "input" === b . getName ( ) || "textarea" === b . getName ( ) : ! 1 ; b || ( b = this . getSelection ( 1 ) , ( c = e ( b ) ) && ! c . equals ( q ) && ( b . selectElement ( c ) , 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 f = c . document , g = CKEDITOR . document , q = c . editable ( ) , l = f . getBody ( ) , r = f . getDocumentElement ( ) , D = q . isInline ( ) ,
m , u ; CKEDITOR . env . gecko && q . attachListener ( q , "focus" , function ( a ) { a . removeListener ( ) ; 0 !== m && ( a = c . getSelection ( ) . getNative ( ) ) && a . isCollapsed && a . anchorNode == q . $ && ( a = c . createRange ( ) , a . moveToElementEditStart ( q ) , a . select ( ) ) } , null , null , - 2 ) ; q . attachListener ( q , CKEDITOR . env . webkit || CKEDITOR . env . gecko ? "focusin" : "focus" , function ( ) { if ( m && ( CKEDITOR . env . webkit || CKEDITOR . env . gecko ) ) { m = c . _ . previousActive && c . _ . previousActive . equals ( f . getActive ( ) ) ; var a = null != c . _ . previousScrollTop && c . _ . previousScrollTop != q . $ . scrollTop ;
CKEDITOR . env . webkit && m && a && ( q . $ . scrollTop = c . _ . previousScrollTop ) } c . unlockSelection ( m ) ; m = 0 } , null , null , - 1 ) ; q . attachListener ( q , "mousedown" , function ( ) { m = 0 } ) ; if ( CKEDITOR . env . ie || CKEDITOR . env . gecko || D ) n ? q . attachListener ( q , "beforedeactivate" , a , null , null , - 1 ) : q . attachListener ( c , "selectionCheck" , a , null , null , - 1 ) , q . attachListener ( q , CKEDITOR . env . webkit || CKEDITOR . env . gecko ? "focusout" : "blur" , function ( ) { var a = u && ( u . isFake || 2 > u . getRanges ( ) . length ) ; CKEDITOR . env . gecko && ! D && a || ( c . lockSelection ( u ) , m = 1 ) } , null , null , - 1 ) ,
q . attachListener ( q , "mousedown" , function ( ) { m = 0 } ) ; if ( CKEDITOR . env . ie && ! D ) { var w ; q . attachListener ( q , "mousedown" , function ( a ) { 2 == a . data . $ . button && ( ( a = c . document . getSelection ( ) ) && a . getType ( ) != CKEDITOR . SELECTION _NONE || ( w = c . window . getScrollPosition ( ) ) ) } ) ; q . attachListener ( q , "mouseup" , function ( a ) { 2 == a . data . $ . button && w && ( c . document . $ . documentElement . scrollLeft = w . x , c . document . $ . documentElement . scrollTop = w . y ) ; w = null } ) ; if ( "BackCompat" != f . $ . compatMode ) { if ( CKEDITOR . env . ie7Compat || CKEDITOR . env . ie6Compat ) { var t , z ;
r . on ( "mousedown" , function ( a ) { function b ( a ) { a = a . data . $ ; if ( t ) { var c = l . $ . createTextRange ( ) ; try { c . moveToPoint ( a . clientX , a . clientY ) } catch ( d ) { } t . setEndPoint ( 0 > z . compareEndPoints ( "StartToStart" , c ) ? "EndToEnd" : "StartToStart" , c ) ; t . select ( ) } } function c ( ) { r . removeListener ( "mousemove" , b ) ; g . removeListener ( "mouseup" , c ) ; r . removeListener ( "mouseup" , c ) ; t . select ( ) } a = a . data ; if ( a . getTarget ( ) . is ( "html" ) && a . $ . y < r . $ . clientHeight && a . $ . x < r . $ . clientWidth ) { t = l . $ . createTextRange ( ) ; try { t . moveToPoint ( a . $ . clientX , a . $ . clientY ) } catch ( d ) { } z =
t . duplicate ( ) ; r . on ( "mousemove" , b ) ; g . on ( "mouseup" , c ) ; r . on ( "mouseup" , c ) } } ) } if ( 7 < CKEDITOR . env . version && 11 > CKEDITOR . env . version ) r . on ( "mousedown" , function ( a ) { a . data . getTarget ( ) . is ( "html" ) && ( g . on ( "mouseup" , b ) , r . on ( "mouseup" , b ) ) } ) } } q . attachListener ( q , "selectionchange" , h , c ) ; q . attachListener ( q , "keyup" , k , c ) ; q . attachListener ( q , "touchstart" , k , c ) ; q . attachListener ( q , "touchend" , k , c ) ; CKEDITOR . env . ie && q . attachListener ( q , "keydown" , d , c ) ; q . attachListener ( q , CKEDITOR . env . webkit || CKEDITOR . env . gecko ? "focusin" : "focus" , function ( ) { c . forceNextSelectionCheck ( ) ;
c . selectionChange ( 1 ) } ) ; if ( D && ( CKEDITOR . env . webkit || CKEDITOR . env . gecko ) ) { var y ; q . attachListener ( q , "mousedown" , function ( ) { y = 1 } ) ; q . attachListener ( f . getDocumentElement ( ) , "mouseup" , function ( ) { y && k . call ( c ) ; y = 0 } ) } else q . attachListener ( CKEDITOR . env . ie ? q : f . getDocumentElement ( ) , "mouseup" , k , c ) ; CKEDITOR . env . webkit && q . attachListener ( f , "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 : q . hasFocus && x ( q ) } } , null , null , - 1 ) ; q . attachListener ( q ,
"keydown" , H ( c ) , null , null , - 1 ) } ) ; c . on ( "setData" , function ( ) { c . unlockSelection ( ) ; CKEDITOR . env . webkit && b ( ) } ) ; c . on ( "contentDomUnload" , function ( ) { c . unlockSelection ( ) } ) ; if ( CKEDITOR . env . ie9Compat ) c . on ( "beforeDestroy" , b , null , null , 9 ) ; c . on ( "dataReady" , function ( ) { delete c . _ . fakeSelection ; delete c . _ . hiddenSelectionContainer ; c . selectionChange ( 1 ) } ) ; c . on ( "loadSnapshot" , function ( ) { var a = CKEDITOR . dom . walker . nodeType ( CKEDITOR . NODE _ELEMENT ) , b = c . editable ( ) . getLast ( a ) ; b && b . hasAttribute ( "data-cke-hidden-sel" ) && ( b . remove ( ) ,
CKEDITOR . env . gecko && ( a = c . editable ( ) . getFirst ( a ) ) && a . is ( "br" ) && a . getAttribute ( "_moz_editor_bogus_node" ) && a . remove ( ) ) } , null , null , 100 ) ; c . on ( "key" , function ( a ) { if ( "wysiwyg" == c . mode ) { var b = c . getSelection ( ) ; if ( b . isFake ) { var d = A [ a . data . keyCode ] ; if ( d ) return d ( { editor : c , selected : b . getSelectedElement ( ) , selection : b , keyEvent : a } ) } } } ) } ) ; if ( CKEDITOR . env . webkit ) CKEDITOR . on ( "instanceReady" , function ( a ) { var b = a . editor ; b . on ( "selectionChange" , function ( ) { var a = b . editable ( ) , c = a . getCustomData ( "cke-fillingChar" ) ; c && ( c . getCustomData ( "ready" ) ?
( x ( a ) , a . editor . fire ( "selectionCheck" ) ) : c . setCustomData ( "ready" , 1 ) ) } , null , null , - 1 ) ; b . on ( "beforeSetMode" , function ( ) { x ( b . editable ( ) ) } , null , null , - 1 ) ; b . on ( "getSnapshot" , function ( a ) { a . data && ( a . data = w ( a . data ) ) } , b , null , 20 ) ; b . on ( "toDataFormat" , function ( a ) { a . data . dataValue = w ( a . data . dataValue ) } , null , null , 0 ) } ) ; CKEDITOR . editor . prototype . selectionChange = function ( a ) { ( a ? h : k ) . call ( this ) } ; CKEDITOR . editor . prototype . getSelection = function ( a ) { return ! this . _ . savedSelection && ! this . _ . fakeSelection || a ? ( a = this . editable ( ) ) &&
! 1 } } var c = a ( ) , d = a ( 1 ) ; return { 37 : c , 38 : c , 39 : d , 40 : d , 8 : b ( ) , 46 : b ( 1 ) } } ( ) ; CKEDITOR . on ( "instanceCreated" , function ( a ) { function b ( ) { var a = c . getSelection ( ) ; a && a . removeAllRanges ( ) } var c = a . editor ; c . on ( "contentDom" , function ( ) { function a ( ) { v = new CKEDITOR . dom . selection ( c . getSelection ( ) ) ; v . lock ( ) } function b ( ) { g . removeListener ( "mouseup" , b ) ; q . removeListener ( "mouseup" , b ) ; var a = CKEDITOR . document . $ . selection , c = a . createRange ( ) ; "None" != a . type && c . parentElement ( ) && c . parentElement ( ) . ownerDocument == f . $ && c . select ( ) } function d ( a ) { var b ,
c ; b = ( b = this . document . getActive ( ) ) ? "input" === b . getName ( ) || "textarea" === b . getName ( ) : ! 1 ; b || ( b = this . getSelection ( 1 ) , ( c = e ( b ) ) && ! c . equals ( p ) && ( b . selectElement ( c ) , 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 f = c . document , g = CKEDITOR . document , p = c . editable ( ) , l = f . getBody ( ) , q = f . getDocumentElement ( ) , D = p . isInline ( ) ,
n , v ; CKEDITOR . env . gecko && p . attachListener ( p , "focus" , function ( a ) { a . removeListener ( ) ; 0 !== n && ( a = c . getSelection ( ) . getNative ( ) ) && a . isCollapsed && a . anchorNode == p . $ && ( a = c . createRange ( ) , a . moveToElementEditStart ( p ) , a . select ( ) ) } , null , null , - 2 ) ; p . attachListener ( p , CKEDITOR . env . webkit || CKEDITOR . env . gecko ? "focusin" : "focus" , function ( ) { if ( n && ( CKEDITOR . env . webkit || CKEDITOR . env . gecko ) ) { n = c . _ . previousActive && c . _ . previousActive . equals ( f . getActive ( ) ) ; var a = null != c . _ . previousScrollTop && c . _ . previousScrollTop != p . $ . scrollTop ;
CKEDITOR . env . webkit && n && a && ( p . $ . scrollTop = c . _ . previousScrollTop ) } c . unlockSelection ( n ) ; n = 0 } , null , null , - 1 ) ; p . attachListener ( p , "mousedown" , function ( ) { n = 0 } ) ; if ( CKEDITOR . env . ie || CKEDITOR . env . gecko || D ) m ? p . attachListener ( p , "beforedeactivate" , a , null , null , - 1 ) : p . attachListener ( c , "selectionCheck" , a , null , null , - 1 ) , p . attachListener ( p , CKEDITOR . env . webkit || CKEDITOR . env . gecko ? "focusout" : "blur" , function ( ) { var a = v && ( v . isFake || 2 > v . getRanges ( ) . length ) ; CKEDITOR . env . gecko && ! D && a || ( c . lockSelection ( v ) , n = 1 ) } , null , null , - 1 ) ,
p . attachListener ( p , "mousedown" , function ( ) { n = 0 } ) ; if ( CKEDITOR . env . ie && ! D ) { var u ; p . attachListener ( p , "mousedown" , function ( a ) { 2 == a . data . $ . button && ( ( a = c . document . getSelection ( ) ) && a . getType ( ) != CKEDITOR . SELECTION _NONE || ( u = c . window . getScrollPosition ( ) ) ) } ) ; p . attachListener ( p , "mouseup" , function ( a ) { 2 == a . data . $ . button && u && ( c . document . $ . documentElement . scrollLeft = u . x , c . document . $ . documentElement . scrollTop = u . y ) ; u = null } ) ; if ( "BackCompat" != f . $ . compatMode ) { if ( CKEDITOR . env . ie7Compat || CKEDITOR . env . ie6Compat ) { var w , A ;
q . on ( "mousedown" , function ( a ) { function b ( a ) { a = a . data . $ ; if ( w ) { var c = l . $ . createTextRange ( ) ; try { c . moveToPoint ( a . clientX , a . clientY ) } catch ( d ) { } w . setEndPoint ( 0 > A . compareEndPoints ( "StartToStart" , c ) ? "EndToEnd" : "StartToStart" , c ) ; w . select ( ) } } function c ( ) { q . removeListener ( "mousemove" , b ) ; g . removeListener ( "mouseup" , c ) ; q . removeListener ( "mouseup" , c ) ; w . select ( ) } a = a . data ; if ( a . getTarget ( ) . is ( "html" ) && a . $ . y < q . $ . clientHeight && a . $ . x < q . $ . clientWidth ) { w = l . $ . createTextRange ( ) ; try { w . moveToPoint ( a . $ . clientX , a . $ . clientY ) } catch ( d ) { } A =
w . duplicate ( ) ; q . on ( "mousemove" , b ) ; g . on ( "mouseup" , c ) ; q . on ( "mouseup" , c ) } } ) } if ( 7 < CKEDITOR . env . version && 11 > CKEDITOR . env . version ) q . on ( "mousedown" , function ( a ) { a . data . getTarget ( ) . is ( "html" ) && ( g . on ( "mouseup" , b ) , q . on ( "mouseup" , b ) ) } ) } } p . attachListener ( p , "selectionchange" , h , c ) ; p . attachListener ( p , "keyup" , k , c ) ; p . attachListener ( p , "touchstart" , k , c ) ; p . attachListener ( p , "touchend" , k , c ) ; CKEDITOR . env . ie && p . attachListener ( p , "keydown" , d , c ) ; p . attachListener ( p , CKEDITOR . env . webkit || CKEDITOR . env . gecko ? "focusin" : "focus" , function ( ) { c . forceNextSelectionCheck ( ) ;
c . selectionChange ( 1 ) } ) ; if ( D && ( CKEDITOR . env . webkit || CKEDITOR . env . gecko ) ) { var y ; p . attachListener ( p , "mousedown" , function ( ) { y = 1 } ) ; p . attachListener ( f . getDocumentElement ( ) , "mouseup" , function ( ) { y && k . call ( c ) ; y = 0 } ) } else p . attachListener ( CKEDITOR . env . ie ? p : f . getDocumentElement ( ) , "mouseup" , k , c ) ; CKEDITOR . env . webkit && p . attachListener ( f , "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 : p . hasFocus && z ( p ) } } , null , null , - 1 ) ; p . attachListener ( p ,
"keydown" , F ( c ) , null , null , - 1 ) } ) ; c . on ( "setData" , function ( ) { c . unlockSelection ( ) ; CKEDITOR . env . webkit && b ( ) } ) ; c . on ( "contentDomUnload" , function ( ) { c . unlockSelection ( ) } ) ; if ( CKEDITOR . env . ie9Compat ) c . on ( "beforeDestroy" , b , null , null , 9 ) ; c . on ( "dataReady" , function ( ) { delete c . _ . fakeSelection ; delete c . _ . hiddenSelectionContainer ; c . selectionChange ( 1 ) } ) ; c . on ( "loadSnapshot" , function ( ) { var a = CKEDITOR . dom . walker . nodeType ( CKEDITOR . NODE _ELEMENT ) , b = c . editable ( ) . getLast ( a ) ; b && b . hasAttribute ( "data-cke-hidden-sel" ) && ( b . remove ( ) ,
CKEDITOR . env . gecko && ( a = c . editable ( ) . getFirst ( a ) ) && a . is ( "br" ) && a . getAttribute ( "_moz_editor_bogus_node" ) && a . remove ( ) ) } , null , null , 100 ) ; c . on ( "key" , function ( a ) { if ( "wysiwyg" == c . mode ) { var b = c . getSelection ( ) ; if ( b . isFake ) { var d = B [ a . data . keyCode ] ; if ( d ) return d ( { editor : c , selected : b . getSelectedElement ( ) , selection : b , keyEvent : a } ) } } } ) } ) ; if ( CKEDITOR . env . webkit ) CKEDITOR . on ( "instanceReady" , function ( a ) { var b = a . editor ; b . on ( "selectionChange" , function ( ) { var a = b . editable ( ) , c = a . getCustomData ( "cke-fillingChar" ) ; c && ( c . getCustomData ( "ready" ) ?
( z ( a ) , a . editor . fire ( "selectionCheck" ) ) : c . setCustomData ( "ready" , 1 ) ) } , null , null , - 1 ) ; b . on ( "beforeSetMode" , function ( ) { z ( b . editable ( ) ) } , null , null , - 1 ) ; b . on ( "getSnapshot" , function ( a ) { a . data && ( a . data = w ( a . data ) ) } , b , null , 20 ) ; b . on ( "toDataFormat" , function ( a ) { a . data . dataValue = w ( a . data . dataValue ) } , null , null , 0 ) } ) ; CKEDITOR . editor . prototype . selectionChange = function ( a ) { ( a ? h : 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 . getSelectedRanges = function ( a ) { var b = this . getSelection ( ) ; return b && b . getRanges ( a ) || [ ] } ; CKEDITOR . editor . prototype . lockSelection = function ( a ) { a = a || this . getSelection ( 1 ) ; return a . getType ( ) != CKEDITOR . SELECTION _NONE ? ( ! a . isLocked && a . lock ( ) , this . _ . savedSelection = a , ! 0 ) : ! 1 } ; CKEDITOR . editor . prototype . unlockSelection = function ( a ) { var b = this . _ . savedSelection ; return b ? ( b . unlock ( a ) , delete this . _ . savedSelection ,
! 0 ) : ! 1 } ; CKEDITOR . editor . prototype . forceNextSelectionCheck = function ( ) { delete this . _ . selectionPreviousPath } ; CKEDITOR . dom . document . prototype . getSelection = function ( ) { return new CKEDITOR . dom . selection ( this ) } ; CKEDITOR . dom . range . prototype . select = function ( ) { var a = this . root instanceof CKEDITOR . editable ? this . root . editor . getSelection ( ) : new CKEDITOR . dom . selection ( this . root ) ; a . selectRanges ( [ this ] ) ; return a } ; CKEDITOR . SELECTION _NONE = 1 ; CKEDITOR . SELECTION _TEXT = 2 ; CKEDITOR . SELECTION _ELEMENT = 3 ; CKEDITOR . dom . selection =
function ( a ) { if ( a instanceof CKEDITOR . dom . selection ) { var b = a ; a = a . root } var c = a instanceof CKEDITOR . dom . element ; this . rev = b ? b . rev : L ++ ; this . document = a instanceof CKEDITOR . dom . document ? a : a . getDocument ( ) ; this . root = c ? a : this . document . getBody ( ) ; this . isLocked = 0 ; this . _ = { cache : { } } ; if ( b ) return CKEDITOR . tools . extend ( this . _ . cache , b . _ . cache ) , this . isFake = b . isFake , this . isLocked = b . isLocked , this ; a = this . getNative ( ) ; var d , e ; if ( a ) if ( a . getRangeAt ) d = ( e = a . rangeCount && a . getRangeAt ( 0 ) ) && new CKEDITOR . dom . node ( e . commonAncestorContainer ) ;
else { try { e = a . createRange ( ) } catch ( f ) { } d = e && CKEDITOR . dom . element . get ( e . item && e . item ( 0 ) || e . parentElement ( ) ) } if ( ! d || d . type != CKEDITOR . NODE _ELEMENT && d . type != CKEDITOR . NODE _TEXT || ! this . root . equals ( d ) && ! this . root . contains ( d ) ) 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 M = { 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 : w , _createFillingCharSequenceNode : e , FILLING _CHAR _SEQUENCE : y } ) ; CKEDITOR . dom . selection . prototype = { getNative : function ( ) { return void 0 !== this . _ . cache . nativeSel ? this . _ . cache . nativeSel : this . _ . cache . nativeSel = n ? this . document . $ . selection : this . document . getWindow ( ) . $ . getSelection ( ) } , getType : n ? function ( ) { var a = this . _ . cache ; if ( a . type ) return a . type ; var b = CKEDITOR . SELECTION _NONE ;
try { var c = this . getNative ( ) , d = c . type ; "Text" == d && ( b = CKEDITOR . SELECTION _TEXT ) ; "Control" == d && ( b = CKEDITOR . SELECTION _ELEMENT ) ; c . createRange ( ) . parentElement ( ) && ( b = CKEDITOR . SELECTION _TEXT ) } catch ( e ) { } return a . type = b } : function ( ) { var a = this . _ . cache ; if ( a . type ) return a . type ; var b = CKEDITOR . SELECTION _TEXT , c = this . getNative ( ) ; if ( ! c || ! c . rangeCount ) b = CKEDITOR . SELECTION _NONE ; else if ( 1 == c . rangeCount ) { var c = c . getRangeAt ( 0 ) , d = c . startContainer ; d == c . endContainer && 1 == d . nodeType && 1 == c . endOffset - c . startOffset && M [ d . childNodes [ c . startOffset ] . nodeName . toLowerCase ( ) ] &&
( b = CKEDITOR . SELECTION _ELEMENT ) } return a . type = b } , getRanges : function ( ) { var a = n ? function ( ) { function a ( b ) { return ( new CKEDITOR . dom . node ( b ) ) . getIndex ( ) } var b = function ( b , c ) { b = b . duplicate ( ) ; b . collapse ( c ) ; var d = b . parentElement ( ) ; if ( ! d . hasChildNodes ( ) ) return { container : d , offset : 0 } ; for ( var e = d . children , f , g , h = b . duplicate ( ) , k = 0 , l = e . length - 1 , r = - 1 , n , m ; k <= l ; ) if ( r = Math . floor ( ( k + l ) / 2 ) , f = e [ r ] , h . moveToElementText ( f ) , n = h . compareEndPoints ( "StartToStart" , b ) , 0 < n ) l = r - 1 ; else if ( 0 > n ) k = r + 1 ; else return { container : d , offset : a ( f ) } ;
if ( - 1 == r || r == e . length - 1 && 0 > n ) { h . moveToElementText ( d ) ; h . setEndPoint ( "StartToStart" , b ) ; h = h . text . replace ( /(\r\n|\r)/g , "\n" ) . length ; e = d . childNodes ; if ( ! h ) return f = e [ e . length - 1 ] , f . nodeType != CKEDITOR . NODE _TEXT ? { container : d , offset : e . length } : { container : f , offset : f . nodeValue . length } ; for ( d = e . length ; 0 < h && 0 < d ; ) g = e [ -- d ] , g . nodeType == CKEDITOR . NODE _TEXT && ( m = g , h -= g . nodeValue . length ) ; return { container : m , offset : - h } } h . collapse ( 0 < n ? ! 0 : ! 1 ) ; h . setEndPoint ( 0 < n ? "StartToStart" : "EndToStart" , b ) ; h = h . text . replace ( /(\r\n|\r)/g , "\n" ) . length ;
if ( ! h ) return { container : d , offset : a ( f ) + ( 0 < n ? 0 : 1 ) } ; for ( ; 0 < h ; ) try { g = f [ 0 < n ? "previousSibling" : "nextSibling" ] , g . nodeType == CKEDITOR . NODE _TEXT && ( h -= g . nodeValue . length , m = g ) , f = g } catch ( u ) { return { container : d , offset : a ( f ) } } return { container : m , offset : 0 < n ? - h : m . nodeValue . length + h } } ; return function ( ) { var a = this . getNative ( ) , c = a && a . createRange ( ) , d = this . getType ( ) ; if ( ! a ) return [ ] ; if ( d == CKEDITOR . SELECTION _TEXT ) return a = new CKEDITOR . dom . range ( this . root ) , d = b ( c , ! 0 ) , a . setStart ( new CKEDITOR . dom . node ( d . container ) , d . offset ) , d = b ( c ) ,
function ( a ) { if ( a instanceof CKEDITOR . dom . selection ) { var b = a ; a = a . root } var c = a instanceof CKEDITOR . dom . element ; this . rev = b ? b . rev : M ++ ; this . document = a instanceof CKEDITOR . dom . document ? a : a . getDocument ( ) ; this . root = c ? a : this . document . getBody ( ) ; this . isLocked = 0 ; this . _ = { cache : { } } ; if ( b ) return CKEDITOR . tools . extend ( this . _ . cache , b . _ . cache ) , this . isFake = b . isFake , this . isLocked = b . isLocked , this ; a = this . getNative ( ) ; var d , e ; if ( a ) if ( a . getRangeAt ) d = ( e = a . rangeCount && a . getRangeAt ( 0 ) ) && new CKEDITOR . dom . node ( e . commonAncestorContainer ) ;
else { try { e = a . createRange ( ) } catch ( f ) { } d = e && CKEDITOR . dom . element . get ( e . item && e . item ( 0 ) || e . parentElement ( ) ) } if ( ! d || d . type != CKEDITOR . NODE _ELEMENT && d . type != CKEDITOR . NODE _TEXT || ! this . root . equals ( d ) && ! this . root . contains ( d ) ) 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 N = { 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 : w , _createFillingCharSequenceNode : e , FILLING _CHAR _SEQUENCE : y } ) ; CKEDITOR . dom . selection . prototype = { getNative : function ( ) { return void 0 !== this . _ . cache . nativeSel ? this . _ . cache . nativeSel : this . _ . cache . nativeSel = m ? this . document . $ . selection : this . document . getWindow ( ) . $ . getSelection ( ) } , getType : m ? function ( ) { var a = this . _ . cache ; if ( a . type ) return a . type ; var b = CKEDITOR . SELECTION _NONE ;
try { var c = this . getNative ( ) , d = c . type ; "Text" == d && ( b = CKEDITOR . SELECTION _TEXT ) ; "Control" == d && ( b = CKEDITOR . SELECTION _ELEMENT ) ; c . createRange ( ) . parentElement ( ) && ( b = CKEDITOR . SELECTION _TEXT ) } catch ( e ) { } return a . type = b } : function ( ) { var a = this . _ . cache ; if ( a . type ) return a . type ; var b = CKEDITOR . SELECTION _TEXT , c = this . getNative ( ) ; if ( ! c || ! c . rangeCount ) b = CKEDITOR . SELECTION _NONE ; else if ( 1 == c . rangeCount ) { var c = c . getRangeAt ( 0 ) , d = c . startContainer ; d == c . endContainer && 1 == d . nodeType && 1 == c . endOffset - c . startOffset && N [ d . childNodes [ c . startOffset ] . nodeName . toLowerCase ( ) ] &&
( b = CKEDITOR . SELECTION _ELEMENT ) } return a . type = b } , getRanges : function ( ) { var a = m ? function ( ) { function a ( b ) { return ( new CKEDITOR . dom . node ( b ) ) . getIndex ( ) } var b = function ( b , c ) { b = b . duplicate ( ) ; b . collapse ( c ) ; var d = b . parentElement ( ) ; if ( ! d . hasChildNodes ( ) ) return { container : d , offset : 0 } ; for ( var e = d . children , f , g , h = b . duplicate ( ) , k = 0 , l = e . length - 1 , m = - 1 , q , r ; k <= l ; ) if ( m = Math . floor ( ( k + l ) / 2 ) , f = e [ m ] , h . moveToElementText ( f ) , q = h . compareEndPoints ( "StartToStart" , b ) , 0 < q ) l = m - 1 ; else if ( 0 > q ) k = m + 1 ; else return { container : d , offset : a ( f ) } ;
if ( - 1 == m || m == e . length - 1 && 0 > q ) { h . moveToElementText ( d ) ; h . setEndPoint ( "StartToStart" , b ) ; h = h . text . replace ( /(\r\n|\r)/g , "\n" ) . length ; e = d . childNodes ; if ( ! h ) return f = e [ e . length - 1 ] , f . nodeType != CKEDITOR . NODE _TEXT ? { container : d , offset : e . length } : { container : f , offset : f . nodeValue . length } ; for ( d = e . length ; 0 < h && 0 < d ; ) g = e [ -- d ] , g . nodeType == CKEDITOR . NODE _TEXT && ( r = g , h -= g . nodeValue . length ) ; return { container : r , offset : - h } } h . collapse ( 0 < q ? ! 0 : ! 1 ) ; h . setEndPoint ( 0 < q ? "StartToStart" : "EndToStart" , b ) ; h = h . text . replace ( /(\r\n|\r)/g , "\n" ) . length ;
if ( ! h ) return { container : d , offset : a ( f ) + ( 0 < q ? 0 : 1 ) } ; for ( ; 0 < h ; ) try { g = f [ 0 < q ? "previousSibling" : "nextSibling" ] , g . nodeType == CKEDITOR . NODE _TEXT && ( h -= g . nodeValue . length , r = g ) , f = g } catch ( n ) { return { container : d , offset : a ( f ) } } return { container : r , offset : 0 < q ? - h : r . nodeValue . length + h } } ; return function ( ) { var a = this . getNative ( ) , c = a && a . createRange ( ) , d = this . getType ( ) ; if ( ! a ) return [ ] ; if ( d == CKEDITOR . SELECTION _TEXT ) return a = new CKEDITOR . dom . range ( this . root ) , d = b ( c , ! 0 ) , a . setStart ( new CKEDITOR . dom . node ( d . container ) , d . offset ) , d = b ( c ) ,
a . setEnd ( new CKEDITOR . dom . node ( d . container ) , d . offset ) , a . endContainer . getPosition ( a . startContainer ) & CKEDITOR . POSITION _PRECEDING && a . endOffset <= a . startContainer . getIndex ( ) && a . collapse ( ) , [ a ] ; if ( d == CKEDITOR . SELECTION _ELEMENT ) { for ( var d = [ ] , e = 0 ; e < c . length ; e ++ ) { for ( var f = c . item ( e ) , g = f . parentNode , h = 0 , a = new CKEDITOR . dom . range ( this . root ) ; h < g . childNodes . length && g . childNodes [ h ] != f ; h ++ ) ; a . setStart ( new CKEDITOR . dom . node ( g ) , h ) ; a . setEnd ( new CKEDITOR . dom . node ( g ) , h + 1 ) ; d . push ( a ) } return d } return [ ] } } ( ) : function ( ) { var a =
[ ] , b , c = this . getNative ( ) ; if ( ! c ) return a ; for ( var d = 0 ; d < c . rangeCount ; d ++ ) { var e = c . getRangeAt ( d ) ; b = new CKEDITOR . dom . range ( this . root ) ; b . setStart ( new CKEDITOR . dom . node ( e . startContainer ) , e . startOffset ) ; b . setEnd ( new CKEDITOR . dom . node ( e . endContainer ) , e . endOffset ) ; a . push ( b ) } return a } ; return function ( b ) { var c = this . _ . cache , d = c . ranges ; d || ( c . ranges = d = new CKEDITOR . dom . rangeList ( a . call ( this ) ) ) ; return b ? t ( new CKEDITOR . dom . rangeList ( d . slice ( ) ) ) : d } } ( ) , getStartElement : function ( ) { var a = this . _ . cache ; if ( void 0 !== a . startElement ) return a . startElement ;
[ ] , b , c = this . getNative ( ) ; if ( ! c ) return a ; for ( var d = 0 ; d < c . rangeCount ; d ++ ) { var e = c . getRangeAt ( d ) ; b = new CKEDITOR . dom . range ( this . root ) ; b . setStart ( new CKEDITOR . dom . node ( e . startContainer ) , e . startOffset ) ; b . setEnd ( new CKEDITOR . dom . node ( e . endContainer ) , e . endOffset ) ; a . push ( b ) } return a } ; return function ( b ) { var c = this . _ . cache , d = c . ranges ; d || ( c . ranges = d = new CKEDITOR . dom . rangeList ( a . call ( this ) ) ) ; return b ? u ( new CKEDITOR . dom . rangeList ( d . slice ( ) ) ) : d } } ( ) , getStartElement : function ( ) { var a = this . _ . cache ; if ( void 0 !== a . startElement ) return a . startElement ;
var b ; switch ( this . getType ( ) ) { case CKEDITOR . SELECTION _ELEMENT : return this . getSelectedElement ( ) ; case CKEDITOR . SELECTION _TEXT : var c = this . getRanges ( ) [ 0 ] ; if ( c ) { if ( c . collapsed ) b = c . startContainer , b . type != CKEDITOR . NODE _ELEMENT && ( b = b . getParent ( ) ) ; else { for ( c . optimize ( ) ; b = c . startContainer , c . startOffset == ( b . getChildCount ? b . getChildCount ( ) : b . getLength ( ) ) && ! b . isBlockBoundary ( ) ; ) c . setStartAfter ( b ) ; b = c . startContainer ; if ( b . type != CKEDITOR . NODE _ELEMENT ) return b . getParent ( ) ; if ( ( b = b . getChild ( c . startOffset ) ) && b . type ==
CKEDITOR . NODE _ELEMENT ) for ( c = b . getFirst ( ) ; c && c . type == CKEDITOR . NODE _ELEMENT ; ) b = c , c = c . getFirst ( ) ; else b = c . startContainer } b = b . $ } } return a . startElement = b ? new CKEDITOR . dom . element ( b ) : null } , getSelectedElement : function ( ) { var a = this . _ . cache ; if ( void 0 !== a . selectedElement ) return a . selectedElement ; var b = this , c = CKEDITOR . tools . tryThese ( function ( ) { return b . getNative ( ) . createRange ( ) . item ( 0 ) } , function ( ) { for ( var a = b . getRanges ( ) [ 0 ] . clone ( ) , c , d , e = 2 ; e && ! ( ( c = a . getEnclosedNode ( ) ) && c . type == CKEDITOR . NODE _ELEMENT && M [ c . getName ( ) ] &&
( d = c ) ) ; e -- ) a . shrink ( CKEDITOR . SHRINK _ELEMENT ) ; return d && d . $ } ) ; return a . selectedElement = c ? new CKEDITOR . dom . element ( c ) : null } , getSelectedText : function ( ) { var a = this . _ . cache ; if ( void 0 !== a . selectedText ) return a . selectedText ; var b = this . getNative ( ) , b = n ? "Control" == b . type ? "" : b . createRange ( ) . text : b . toString ( ) ; return a . selectedText = b } , lock : function ( ) { this . getRanges ( ) ; this . getStartElement ( ) ; this . getSelectedElement ( ) ; this . getSelectedText ( ) ; this . _ . cache . nativeSel = null ; this . isLocked = 1 } , unlock : function ( a ) { if ( this . isLocked ) { if ( a ) var b =
CKEDITOR . NODE _ELEMENT ) for ( c = b . getFirst ( ) ; c && c . type == CKEDITOR . NODE _ELEMENT ; ) b = c , c = c . getFirst ( ) ; else b = c . startContainer } b = b . $ } } return a . startElement = b ? new CKEDITOR . dom . element ( b ) : null } , getSelectedElement : function ( ) { var a = this . _ . cache ; if ( void 0 !== a . selectedElement ) return a . selectedElement ; var b = this , c = CKEDITOR . tools . tryThese ( function ( ) { return b . getNative ( ) . createRange ( ) . item ( 0 ) } , function ( ) { for ( var a = b . getRanges ( ) [ 0 ] . clone ( ) , c , d , e = 2 ; e && ! ( ( c = a . getEnclosedNode ( ) ) && c . type == CKEDITOR . NODE _ELEMENT && N [ c . getName ( ) ] &&
( d = c ) ) ; e -- ) a . shrink ( CKEDITOR . SHRINK _ELEMENT ) ; return d && d . $ } ) ; return a . selectedElement = c ? new CKEDITOR . dom . element ( c ) : null } , getSelectedText : function ( ) { var a = this . _ . cache ; if ( void 0 !== a . selectedText ) return a . selectedText ; var b = this . getNative ( ) , b = m ? "Control" == b . type ? "" : b . createRange ( ) . text : b . toString ( ) ; return a . selectedText = b } , lock : function ( ) { this . getRanges ( ) ; this . getStartElement ( ) ; this . getSelectedElement ( ) ; this . getSelectedText ( ) ; this . _ . cache . nativeSel = null ; this . isLocked = 1 } , unlock : function ( a ) { if ( this . isLocked ) { if ( a ) var b =
this . getSelectedElement ( ) , c = this . getRanges ( ) , e = this . isFake ; this . isLocked = 0 ; this . reset ( ) ; a && ( a = b || c [ 0 ] && c [ 0 ] . getCommonAncestor ( ) ) && a . getAscendant ( "body" , 1 ) && ( ( a = this . root . editor ) && a . plugins . tableselection && a . plugins . tableselection . isSupportedEnvironment ( a ) && d ( c ) ? f . call ( this , c ) : e ? this . fake ( b ) : b && 2 > c . length ? this . selectElement ( b ) : this . selectRanges ( c ) ) } } , reset : function ( ) { this . _ . cache = { } ; this . isFake = 0 ; var a = this . root . editor ; if ( a && a . _ . fakeSelection ) if ( this . rev == a . _ . fakeSelection . rev ) { delete a . _ . fakeSelection ;
var b = a . _ . hiddenSelectionContainer ; if ( b ) { var c = a . checkDirty ( ) ; a . fire ( "lockSnapshot" ) ; b . remove ( ) ; a . fire ( "unlockSnapshot" ) ; ! c && a . resetDirty ( ) } delete a . _ . hiddenSelectionContainer } else CKEDITOR . warn ( "selection-fake-reset" ) ; this . rev = L ++ } , selectElement : function ( a ) { var b = new CKEDITOR . dom . range ( this . root ) ; b . setStartBefore ( a ) ; b . setEndAfter ( a ) ; this . selectRanges ( [ b ] ) } , selectRanges : function ( a ) { var b = this . root . editor , c = b && b . _ . hiddenSelectionContainer ; this . reset ( ) ; if ( c ) for ( var c = this . root , g , h = 0 ; h < a . length ; ++ h ) g =
a [ h ] , g . endContainer . equals ( c ) && ( g . endOffset = Math . min ( g . endOffset , c . getChildCount ( ) ) ) ; if ( a . length ) if ( this . isLocked ) { var k = CKEDITOR . document . getActive ( ) ; this . unlock ( ) ; this . selectRanges ( a ) ; this . lock ( ) ; k && ! k . equals ( this . root ) && k . focus ( ) } else { var p ; a : { var l , m ; if ( 1 == a . length && ! ( m = a [ 0 ] ) . collapsed && ( p = m . getEnclosedNode ( ) ) && p . type == CKEDITOR . NODE _ELEMENT && ( m = m . clone ( ) , m . shrink ( CKEDITOR . SHRINK _ELEMENT , ! 0 ) , ( l = m . getEnclosedNode ( ) ) && l . type == CKEDITOR . NODE _ELEMENT && ( p = l ) , "false" == p . getAttribute ( "contenteditable" ) ) ) break a ;
p = void 0 } if ( p ) this . fake ( p ) ; else if ( b && b . plugins . tableselection && b . plugins . tableselection . isSupportedEnvironment ( b ) && d ( a ) && ! I && ! a [ 0 ] . _getTableElement ( { table : 1 } ) . hasAttribute ( "data-cke-tableselection-ignored" ) ) f . call ( this , a ) ; else { if ( n ) { l = CKEDITOR . dom . walker . whitespaces ( ! 0 ) ; p = /\ufeff|\u00a0/ ; m = { table : 1 , tbody : 1 , tr : 1 } ; 1 < a . length && ( b = a [ a . length - 1 ] , a [ 0 ] . setEnd ( b . endContainer , b . endOffset ) ) ; b = a [ 0 ] ; a = b . collapsed ; var q , G , E ; if ( ( c = b . getEnclosedNode ( ) ) && c . type == CKEDITOR . NODE _ELEMENT && c . getName ( ) in M && ( ! c . is ( "a" ) ||
! c . getText ( ) ) ) try { E = c . $ . createControlRange ( ) ; E . addElement ( c . $ ) ; E . select ( ) ; return } catch ( w ) { } if ( b . startContainer . type == CKEDITOR . NODE _ELEMENT && b . startContainer . getName ( ) in m || b . endContainer . type == CKEDITOR . NODE _ELEMENT && b . endContainer . getName ( ) in m ) b . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) , a = b . collapsed ; E = b . createBookmark ( ) ; m = E . startNode ; a || ( k = E . endNode ) ; E = b . document . $ . body . createTextRange ( ) ; E . moveToElementText ( m . $ ) ; E . moveStart ( "character" , 1 ) ; k ? ( p = b . document . $ . body . createTextRange ( ) , p . moveToElementText ( k . $ ) ,
E . setEndPoint ( "EndToEnd" , p ) , E . moveEnd ( "character" , - 1 ) ) : ( q = m . getNext ( l ) , G = m . hasAscendant ( "pre" ) , q = ! ( q && q . getText && q . getText ( ) . match ( p ) ) && ( G || ! m . hasPrevious ( ) || m . getPrevious ( ) . is && m . getPrevious ( ) . is ( "br" ) ) , G = b . document . createElement ( "span" ) , G . setHtml ( "\x26#65279;" ) , G . insertBefore ( m ) , q && b . document . createText ( " " ) . insertBefore ( m ) ) ; b . setStartBefore ( m ) ; m . remove ( ) ; a ? ( q ? ( E . moveStart ( "character" , - 1 ) , E . select ( ) , b . document . $ . selection . clear ( ) ) : E . select ( ) , b . moveToPosition ( G , CKEDITOR . POSITION _BEFORE _START ) , G . remove ( ) ) :
( b . setEndBefore ( k ) , k . remove ( ) , E . select ( ) ) } else { k = this . getNative ( ) ; if ( ! k ) return ; this . removeAllRanges ( ) ; for ( E = 0 ; E < a . length ; E ++ ) { if ( E < a . length - 1 && ( q = a [ E ] , G = a [ E + 1 ] , p = q . clone ( ) , p . setStart ( q . endContainer , q . endOffset ) , p . setEnd ( G . startContainer , G . startOffset ) , ! p . collapsed && ( p . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) , b = p . getCommonAncestor ( ) , p = p . getEnclosedNode ( ) , b . isReadOnly ( ) || p && p . isReadOnly ( ) ) ) ) { G . setStart ( q . startContainer , q . startOffset ) ; a . splice ( E -- , 1 ) ; continue } b = a [ E ] ; G = this . document . $ . createRange ( ) ; b . collapsed &&
CKEDITOR . env . webkit && u ( b ) && ( p = e ( this . root ) , b . insertNode ( p ) , ( q = p . getNext ( ) ) && ! p . getPrevious ( ) && q . type == CKEDITOR . NODE _ELEMENT && "br" == q . getName ( ) ? ( x ( this . root ) , b . moveToPosition ( q , CKEDITOR . POSITION _BEFORE _START ) ) : b . moveToPosition ( p , CKEDITOR . POSITION _AFTER _END ) ) ; G . setStart ( b . startContainer . $ , b . startOffset ) ; try { G . setEnd ( b . endContainer . $ , b . endOffset ) } catch ( t ) { if ( 0 <= t . toString ( ) . indexOf ( "NS_ERROR_ILLEGAL_VALUE" ) ) b . collapse ( 1 ) , G . setEnd ( b . endContainer . $ , b . endOffset ) ; else throw t ; } k . addRange ( G ) } } this . reset ( ) ;
this . root . fire ( "selectionchange" ) } } } , fake : function ( a , b ) { var c = this . root . editor ; void 0 === b && a . hasAttribute ( "aria-label" ) && ( b = a . getAttribute ( "aria-label" ) ) ; this . reset ( ) ; z ( c , b ) ; var d = this . _ . cache , e = new CKEDITOR . dom . range ( this . root ) ; e . setStartBefore ( a ) ; e . setEndAfter ( a ) ; d . ranges = new CKEDITOR . dom . rangeList ( e ) ; d . selectedElement = d . startElement = a ; d . type = CKEDITOR . SELECTION _ELEMENT ; d . selectedText = d . nativeSel = null ; this . isFake = 1 ; this . rev = L ++ ; c . _ . fakeSelection = this ; this . root . fire ( "selectionchange" ) } , isHidden : function ( ) { var a =
var b = a . _ . hiddenSelectionContainer ; if ( b ) { var c = a . checkDirty ( ) ; a . fire ( "lockSnapshot" ) ; b . remove ( ) ; a . fire ( "unlockSnapshot" ) ; ! c && a . resetDirty ( ) } delete a . _ . hiddenSelectionContainer } else CKEDITOR . warn ( "selection-fake-reset" ) ; this . rev = M ++ } , selectElement : function ( a ) { var b = new CKEDITOR . dom . range ( this . root ) ; b . setStartBefore ( a ) ; b . setEndAfter ( a ) ; this . selectRanges ( [ b ] ) } , selectRanges : function ( a ) { var b = this . root . editor , c = b && b . _ . hiddenSelectionContainer ; this . reset ( ) ; if ( c ) for ( var c = this . root , g , h = 0 ; h < a . length ; ++ h ) g =
a [ h ] , g . endContainer . equals ( c ) && ( g . endOffset = Math . min ( g . endOffset , c . getChildCount ( ) ) ) ; if ( a . length ) if ( this . isLocked ) { var k = CKEDITOR . document . getActive ( ) ; this . unlock ( ) ; this . selectRanges ( a ) ; this . lock ( ) ; k && ! k . equals ( this . root ) && k . focus ( ) } else { var t ; a : { var l , I ; if ( 1 == a . length && ! ( I = a [ 0 ] ) . collapsed && ( t = I . getEnclosedNode ( ) ) && t . type == CKEDITOR . NODE _ELEMENT && ( I = I . clone ( ) , I . shrink ( CKEDITOR . SHRINK _ELEMENT , ! 0 ) , ( l = I . getEnclosedNode ( ) ) && l . type == CKEDITOR . NODE _ELEMENT && ( t = l ) , "false" == t . getAttribute ( "contenteditable" ) ) ) break a ;
t = void 0 } if ( t ) this . fake ( t ) ; else if ( b && b . plugins . tableselection && b . plugins . tableselection . isSupportedEnvironment ( b ) && d ( a ) && ! H && ! a [ 0 ] . _getTableElement ( { table : 1 } ) . hasAttribute ( "data-cke-tableselection-ignored" ) ) f . call ( this , a ) ; else { if ( m ) { l = CKEDITOR . dom . walker . whitespaces ( ! 0 ) ; t = /\ufeff|\u00a0/ ; I = { table : 1 , tbody : 1 , tr : 1 } ; 1 < a . length && ( b = a [ a . length - 1 ] , a [ 0 ] . setEnd ( b . endContainer , b . endOffset ) ) ; b = a [ 0 ] ; a = b . collapsed ; var p , n , E ; if ( ( c = b . getEnclosedNode ( ) ) && c . type == CKEDITOR . NODE _ELEMENT && c . getName ( ) in N && ( ! c . is ( "a" ) ||
! c . getText ( ) ) ) try { E = c . $ . createControlRange ( ) ; E . addElement ( c . $ ) ; E . select ( ) ; return } catch ( u ) { } if ( b . startContainer . type == CKEDITOR . NODE _ELEMENT && b . startContainer . getName ( ) in I || b . endContainer . type == CKEDITOR . NODE _ELEMENT && b . endContainer . getName ( ) in I ) b . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) , a = b . collapsed ; E = b . createBookmark ( ) ; I = E . startNode ; a || ( k = E . endNode ) ; E = b . document . $ . body . createTextRange ( ) ; E . moveToElementText ( I . $ ) ; E . moveStart ( "character" , 1 ) ; k ? ( t = b . document . $ . body . createTextRange ( ) , t . moveToElementText ( k . $ ) ,
E . setEndPoint ( "EndToEnd" , t ) , E . moveEnd ( "character" , - 1 ) ) : ( p = I . getNext ( l ) , n = I . hasAscendant ( "pre" ) , p = ! ( p && p . getText && p . getText ( ) . match ( t ) ) && ( n || ! I . hasPrevious ( ) || I . getPrevious ( ) . is && I . getPrevious ( ) . is ( "br" ) ) , n = b . document . createElement ( "span" ) , n . setHtml ( "\x26#65279;" ) , n . insertBefore ( I ) , p && b . document . createText ( " " ) . insertBefore ( I ) ) ; b . setStartBefore ( I ) ; I . remove ( ) ; a ? ( p ? ( E . moveStart ( "character" , - 1 ) , E . select ( ) , b . document . $ . selection . clear ( ) ) : E . select ( ) , b . moveToPosition ( n , CKEDITOR . POSITION _BEFORE _START ) , n . remove ( ) ) :
( b . setEndBefore ( k ) , k . remove ( ) , E . select ( ) ) } else { k = this . getNative ( ) ; if ( ! k ) return ; this . removeAllRanges ( ) ; for ( E = 0 ; E < a . length ; E ++ ) { if ( E < a . length - 1 && ( p = a [ E ] , n = a [ E + 1 ] , t = p . clone ( ) , t . setStart ( p . endContainer , p . endOffset ) , t . setEnd ( n . startContainer , n . startOffset ) , ! t . collapsed && ( t . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) , b = t . getCommonAncestor ( ) , t = t . getEnclosedNode ( ) , b . isReadOnly ( ) || t && t . isReadOnly ( ) ) ) ) { n . setStart ( p . startContainer , p . startOffset ) ; a . splice ( E -- , 1 ) ; continue } b = a [ E ] ; n = this . document . $ . createRange ( ) ; b . collapsed &&
CKEDITOR . env . webkit && v ( b ) && ( t = e ( this . root ) , b . insertNode ( t ) , ( p = t . getNext ( ) ) && ! t . getPrevious ( ) && p . type == CKEDITOR . NODE _ELEMENT && "br" == p . getName ( ) ? ( z ( this . root ) , b . moveToPosition ( p , CKEDITOR . POSITION _BEFORE _START ) ) : b . moveToPosition ( t , CKEDITOR . POSITION _AFTER _END ) ) ; n . setStart ( b . startContainer . $ , b . startOffset ) ; try { n . setEnd ( b . endContainer . $ , b . endOffset ) } catch ( w ) { if ( 0 <= w . toString ( ) . indexOf ( "NS_ERROR_ILLEGAL_VALUE" ) ) b . collapse ( 1 ) , n . setEnd ( b . endContainer . $ , b . endOffset ) ; else throw w ; } k . addRange ( n ) } } this . reset ( ) ;
this . root . fire ( "selectionchange" ) } } } , fake : function ( a , b ) { var c = this . root . editor ; void 0 === b && a . hasAttribute ( "aria-label" ) && ( b = a . getAttribute ( "aria-label" ) ) ; this . reset ( ) ; A ( c , b ) ; var d = this . _ . cache , e = new CKEDITOR . dom . range ( this . root ) ; e . setStartBefore ( a ) ; e . setEndAfter ( a ) ; d . ranges = new CKEDITOR . dom . rangeList ( e ) ; d . selectedElement = d . startElement = a ; d . type = CKEDITOR . SELECTION _ELEMENT ; d . selectedText = d . nativeSel = null ; this . isFake = 1 ; this . rev = M ++ ; c . _ . fakeSelection = this ; this . root . fire ( "selectionchange" ) } , isHidden : function ( ) { var a =
this . getCommonAncestor ( ) ; a && a . type == CKEDITOR . NODE _TEXT && ( a = a . getParent ( ) ) ; return ! ( ! a || ! a . data ( "cke-hidden-sel" ) ) } , isInTable : function ( a ) { return d ( this . getRanges ( ) , a ) } , isCollapsed : function ( ) { var a = this . getRanges ( ) ; return 1 === a . length && a [ 0 ] . collapsed } , createBookmarks : function ( a ) { a = this . getRanges ( ) . createBookmarks ( a ) ; this . isFake && ( a . isFake = 1 ) ; return a } , createBookmarks2 : function ( a ) { a = this . getRanges ( ) . createBookmarks2 ( a ) ; this . isFake && ( a . isFake = 1 ) ; return a } , selectBookmarks : function ( a ) { for ( var b = [ ] , c , e = 0 ; e <
a . length ; e ++ ) { var f = new CKEDITOR . dom . range ( this . root ) ; f . moveToBookmark ( a [ e ] ) ; b . push ( f ) } a . isFake && ( c = d ( b ) ? b [ 0 ] . _getTableElement ( ) : b [ 0 ] . getEnclosedNode ( ) , c && c . type == CKEDITOR . NODE _ELEMENT || ( CKEDITOR . warn ( "selection-not-fake" ) , a . isFake = 0 ) ) ; a . isFake && ! d ( b ) ? this . fake ( c ) : this . selectRanges ( b ) ; return this } , getCommonAncestor : function ( ) { var a = this . getRanges ( ) ; return a . length ? a [ 0 ] . startContainer . getCommonAncestor ( a [ a . length - 1 ] . endContainer ) : null } , scrollIntoView : function ( ) { this . getType ( ) != CKEDITOR . SELECTION _NONE &&
this . getRanges ( ) [ 0 ] . scrollIntoView ( ) } , removeAllRanges : function ( ) { if ( this . getType ( ) != CKEDITOR . SELECTION _NONE ) { var a = this . getNative ( ) ; try { a && a [ n ? "empty" : "removeAllRanges" ] ( ) } catch ( b ) { } this . reset ( ) } } } } ) ( ) ; "use strict" ; CKEDITOR . STYLE _BLOCK = 1 ; CKEDITOR . STYLE _INLINE = 2 ; CKEDITOR . STYLE _OBJECT = 3 ;
( function ( ) { function a ( a , b ) { for ( var c , d ; ( a = a . getParent ( ) ) && ! a . equals ( b ) ; ) if ( a . getAttribute ( "data-nostyle" ) ) c = a ; else if ( ! d ) { var e = a . getAttribute ( "contentEditable" ) ; "false" == e ? c = a : "true" == e && ( d = 1 ) } return c } function d ( a , b , c , d ) { return ( a . getPosition ( b ) | d ) == d && ( ! c . childRule || c . childRule ( a ) ) } function b ( c ) { var e = c . document ; if ( c . collapsed ) e = L ( this , e ) , c . insertNode ( e ) , c . moveToPosition ( e , CKEDITOR . POSITION _BEFORE _END ) ; else { var g = this . element , h = this . _ . definition , k , l = h . ignoreReadonly , m = l || h . includeReadonly ; null ==
m && ( m = c . root . getCustomData ( "cke_includeReadonly" ) ) ; var n = CKEDITOR . dtd [ g ] ; n || ( k = ! 0 , n = CKEDITOR . dtd . span ) ; c . enlarge ( CKEDITOR . ENLARGE _INLINE , 1 ) ; c . trim ( ) ; var u = c . createBookmark ( ) , x = u . startNode , w = u . endNode , r = x , t ; if ( ! l ) { var v = c . getCommonAncestor ( ) , l = a ( x , v ) , v = a ( w , v ) ; l && ( r = l . getNextSourceNode ( ! 0 ) ) ; v && ( w = v ) } for ( r . getPosition ( w ) == CKEDITOR . POSITION _FOLLOWING && ( r = 0 ) ; r ; ) { l = ! 1 ; if ( r . equals ( w ) ) r = null , l = ! 0 ; else { var z = r . type == CKEDITOR . NODE _ELEMENT ? r . getName ( ) : null , v = z && "false" == r . getAttribute ( "contentEditable" ) , y = z &&
- 1 !== CKEDITOR . tools . array . indexOf ( CKEDITOR . style . unstylableElements , z ) , y = z && ( r . getAttribute ( "data-nostyle" ) || y ) ; if ( z && r . data ( "cke-bookmark" ) || r . type === CKEDITOR . NODE _COMMENT ) { r = r . getNextSourceNode ( ! 0 ) ; continue } if ( v && m && CKEDITOR . dtd . $block [ z ] ) for ( var A = r , C = f ( A ) , D = void 0 , F = C . length , I = 0 , A = F && new CKEDITOR . dom . range ( A . getDocument ( ) ) ; I < F ; ++ I ) { var D = C [ I ] , K = CKEDITOR . filter . instances [ D . data ( "cke-filter" ) ] ; if ( K ? K . check ( this ) : 1 ) A . selectNodeContents ( D ) , b . call ( this , A ) } C = z ? ! n [ z ] || y ? 0 : v && ! m ? 0 : d ( r , w , h , S ) : 1 ; if ( C ) if ( D =
r . getParent ( ) , C = h , F = g , I = k , ! D || ! ( D . getDtd ( ) || CKEDITOR . dtd . span ) [ F ] && ! I || C . parentRule && ! C . parentRule ( D ) ) l = ! 0 ; else { if ( t || z && CKEDITOR . dtd . $removeEmpty [ z ] && ( r . getPosition ( w ) | S ) != S || ( t = c . clone ( ) , t . setStartBefore ( r ) ) , z = r . type , z == CKEDITOR . NODE _TEXT || v || z == CKEDITOR . NODE _ELEMENT && ! r . getChildCount ( ) ) { for ( var z = r , M ; ( l = ! z . getNext ( B ) ) && ( M = z . getParent ( ) , n [ M . getName ( ) ] ) && d ( M , x , h , R ) ; ) z = M ; t . setEndAfter ( z ) } } else l = ! 0 ; r = r . getNextSourceNode ( y || v ) } if ( l && t && ! t . collapsed ) { for ( var l = L ( this , e ) , v = l . hasAttributes ( ) , y = t . getCommonAncestor ( ) ,
z = { } , C = { } , D = { } , F = { } , X , W , Y ; l && y ; ) { if ( y . getName ( ) == g ) { for ( X in h . attributes ) ! F [ X ] && ( Y = y . getAttribute ( W ) ) && ( l . getAttribute ( X ) == Y ? C [ X ] = 1 : F [ X ] = 1 ) ; for ( W in h . styles ) ! D [ W ] && ( Y = y . getStyle ( W ) ) && ( l . getStyle ( W ) == Y ? z [ W ] = 1 : D [ W ] = 1 ) } y = y . getParent ( ) } for ( X in C ) l . removeAttribute ( X ) ; for ( W in z ) l . removeStyle ( W ) ; v && ! l . hasAttributes ( ) && ( l = null ) ; l ? ( t . extractContents ( ) . appendTo ( l ) , t . insertNode ( l ) , H . call ( this , l ) , l . mergeSiblings ( ) , CKEDITOR . env . ie || l . $ . normalize ( ) ) : ( l = new CKEDITOR . dom . element ( "span" ) , t . extractContents ( ) . appendTo ( l ) ,
t . insertNode ( l ) , H . call ( this , l ) , l . remove ( ! 0 ) ) ; t = null } } c . moveToBookmark ( u ) ; c . shrink ( CKEDITOR . SHRINK _TEXT ) ; c . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) } } function c ( a ) { function b ( ) { for ( var a = new CKEDITOR . dom . elementPath ( d . getParent ( ) ) , c = new CKEDITOR . dom . elementPath ( m . getParent ( ) ) , e = null , f = null , g = 0 ; g < a . elements . length ; g ++ ) { var h = a . elements [ g ] ; if ( h == a . block || h == a . blockLimit ) break ; n . checkElementRemovable ( h , ! 0 ) && ( e = h ) } for ( g = 0 ; g < c . elements . length ; g ++ ) { h = c . elements [ g ] ; if ( h == c . block || h == c . blockLimit ) break ; n . checkElementRemovable ( h ,
this . getRanges ( ) [ 0 ] . scrollIntoView ( ) } , removeAllRanges : function ( ) { if ( this . getType ( ) != CKEDITOR . SELECTION _NONE ) { var a = this . getNative ( ) ; try { a && a [ m ? "empty" : "removeAllRanges" ] ( ) } catch ( b ) { } this . reset ( ) } } } } ) ( ) ; "use strict" ; CKEDITOR . STYLE _BLOCK = 1 ; CKEDITOR . STYLE _INLINE = 2 ; CKEDITOR . STYLE _OBJECT = 3 ;
( function ( ) { function a ( a , b ) { for ( var c , d ; ( a = a . getParent ( ) ) && ! a . equals ( b ) ; ) if ( a . getAttribute ( "data-nostyle" ) ) c = a ; else if ( ! d ) { var e = a . getAttribute ( "contentEditable" ) ; "false" == e ? c = a : "true" == e && ( d = 1 ) } return c } function d ( a , b , c , d ) { return ( a . getPosition ( b ) | d ) == d && ( ! c . childRule || c . childRule ( a ) ) } function b ( c ) { var e = c . document ; if ( c . collapsed ) e = M ( this , e ) , c . insertNode ( e ) , c . moveToPosition ( e , CKEDITOR . POSITION _BEFORE _END ) ; else { var g = this . element , h = this . _ . definition , k , l = h . ignoreReadonly , m = l || h . includeReadonly ; null ==
m && ( m = c . root . getCustomData ( "cke_includeReadonly" ) ) ; var n = CKEDITOR . dtd [ g ] ; n || ( k = ! 0 , n = CKEDITOR . dtd . span ) ; c . enlarge ( CKEDITOR . ENLARGE _INLINE , 1 ) ; c . trim ( ) ; var v = c . createBookmark ( ) , u = v . startNode , w = v . endNode , q = u , z ; if ( ! l ) { var x = c . getCommonAncestor ( ) , l = a ( u , x ) , x = a ( w , x ) ; l && ( q = l . getNextSourceNode ( ! 0 ) ) ; x && ( w = x ) } for ( q . getPosition ( w ) == CKEDITOR . POSITION _FOLLOWING && ( q = 0 ) ; q ; ) { l = ! 1 ; if ( q . equals ( w ) ) q = null , l = ! 0 ; else { var A = q . type == CKEDITOR . NODE _ELEMENT ? q . getName ( ) : null , x = A && "false" == q . getAttribute ( "contentEditable" ) , y = A &&
- 1 !== CKEDITOR . tools . array . indexOf ( CKEDITOR . style . unstylableElements , A ) , y = A && ( q . getAttribute ( "data-nostyle" ) || y ) ; if ( A && q . data ( "cke-bookmark" ) || q . type === CKEDITOR . NODE _COMMENT ) { q = q . getNextSourceNode ( ! 0 ) ; continue } if ( x && m && CKEDITOR . dtd . $block [ A ] ) for ( var B = q , C = f ( B ) , D = void 0 , G = C . length , H = 0 , B = G && new CKEDITOR . dom . range ( B . getDocument ( ) ) ; H < G ; ++ H ) { var D = C [ H ] , L = CKEDITOR . filter . instances [ D . data ( "cke-filter" ) ] ; if ( L ? L . check ( this ) : 1 ) B . selectNodeContents ( D ) , b . call ( this , B ) } C = A ? ! n [ A ] || y ? 0 : x && ! m ? 0 : d ( q , w , h , T ) : 1 ; if ( C ) if ( D =
q . getParent ( ) , C = h , G = g , H = k , ! D || ! ( D . getDtd ( ) || CKEDITOR . dtd . span ) [ G ] && ! H || C . parentRule && ! C . parentRule ( D ) ) l = ! 0 ; else { if ( z || A && CKEDITOR . dtd . $removeEmpty [ A ] && ( q . getPosition ( w ) | T ) != T || ( z = c . clone ( ) , z . setStartBefore ( q ) ) , A = q . type , A == CKEDITOR . NODE _TEXT || x || A == CKEDITOR . NODE _ELEMENT && ! q . getChildCount ( ) ) { for ( var A = q , N ; ( l = ! A . getNext ( r ) ) && ( N = A . getParent ( ) , n [ N . getName ( ) ] ) && d ( N , u , h , S ) ; ) A = N ; z . setEndAfter ( A ) } } else l = ! 0 ; q = q . getNextSourceNode ( y || x ) } if ( l && z && ! z . collapsed ) { for ( var l = M ( this , e ) , x = l . hasAttributes ( ) , y = z . getCommonAncestor ( ) ,
A = { } , C = { } , D = { } , G = { } , Y , X , Z ; l && y ; ) { if ( y . getName ( ) == g ) { for ( Y in h . attributes ) ! G [ Y ] && ( Z = y . getAttribute ( X ) ) && ( l . getAttribute ( Y ) == Z ? C [ Y ] = 1 : G [ Y ] = 1 ) ; for ( X in h . styles ) ! D [ X ] && ( Z = y . getStyle ( X ) ) && ( l . getStyle ( X ) == Z ? A [ X ] = 1 : D [ X ] = 1 ) } y = y . getParent ( ) } for ( Y in C ) l . removeAttribute ( Y ) ; for ( X in A ) l . removeStyle ( X ) ; x && ! l . hasAttributes ( ) && ( l = null ) ; l ? ( z . extractContents ( ) . appendTo ( l ) , z . insertNode ( l ) , F . call ( this , l ) , l . mergeSiblings ( ) , CKEDITOR . env . ie || l . $ . normalize ( ) ) : ( l = new CKEDITOR . dom . element ( "span" ) , z . extractContents ( ) . appendTo ( l ) ,
z . insertNode ( l ) , F . call ( this , l ) , l . remove ( ! 0 ) ) ; z = null } } c . moveToBookmark ( v ) ; c . shrink ( CKEDITOR . SHRINK _TEXT ) ; c . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) } } function c ( a ) { function b ( ) { for ( var a = new CKEDITOR . dom . elementPath ( d . getParent ( ) ) , c = new CKEDITOR . dom . elementPath ( m . getParent ( ) ) , e = null , f = null , g = 0 ; g < a . elements . length ; g ++ ) { var h = a . elements [ g ] ; if ( h == a . block || h == a . blockLimit ) break ; n . checkElementRemovable ( h , ! 0 ) && ( e = h ) } for ( g = 0 ; g < c . elements . length ; g ++ ) { h = c . elements [ g ] ; if ( h == c . block || h == c . blockLimit ) break ; n . checkElementRemovable ( h ,
! 0 ) && ( f = h ) } f && m . breakParent ( f ) ; e && d . breakParent ( e ) } a . enlarge ( CKEDITOR . ENLARGE _INLINE , 1 ) ; var c = a . createBookmark ( ) , d = c . startNode , e = this . _ . definition . alwaysRemoveElement ; if ( a . collapsed ) { for ( var f = new CKEDITOR . dom . elementPath ( d . getParent ( ) , a . root ) , g , h = 0 , k ; h < f . elements . length && ( k = f . elements [ h ] ) && k != f . block && k != f . blockLimit ; h ++ ) if ( this . checkElementRemovable ( k ) ) { var l ; ! e && a . collapsed && ( a . checkBoundaryOfElement ( k , CKEDITOR . END ) || ( l = a . checkBoundaryOfElement ( k , CKEDITOR . START ) ) ) ? ( g = k , g . match = l ? "start" : "end" ) :
( k . mergeSiblings ( ) , k . is ( this . element ) ? z . call ( this , k ) : t ( k , I ( this ) [ k . getName ( ) ] ) ) } if ( g ) { e = d ; for ( h = 0 ; ; h ++ ) { k = f . elements [ h ] ; if ( k . equals ( g ) ) break ; else if ( k . match ) continue ; else k = k . clone ( ) ; k . append ( e ) ; e = k } e [ "start" == g . match ? "insertBefore" : "insertAfter" ] ( g ) } } else { var m = c . endNode , n = this ; b ( ) ; for ( f = d ; ! f . equals ( m ) ; ) g = f . getNextSourceNode ( ) , f . type == CKEDITOR . NODE _ELEMENT && this . checkElementRemovable ( f ) && ( f . getName ( ) == this . element ? z . call ( this , f ) : t ( f , I ( this ) [ f . getName ( ) ] ) , g . type == CKEDITOR . NODE _ELEMENT && g . contains ( d ) &&
( k . mergeSiblings ( ) , k . is ( this . element ) ? A . call ( this , k ) : u ( k , H ( this ) [ k . getName ( ) ] ) ) } if ( g ) { e = d ; for ( h = 0 ; ; h ++ ) { k = f . elements [ h ] ; if ( k . equals ( g ) ) break ; else if ( k . match ) continue ; else k = k . clone ( ) ; k . append ( e ) ; e = k } e [ "start" == g . match ? "insertBefore" : "insertAfter" ] ( g ) } } else { var m = c . endNode , n = this ; b ( ) ; for ( f = d ; ! f . equals ( m ) ; ) g = f . getNextSourceNode ( ) , f . type == CKEDITOR . NODE _ELEMENT && this . checkElementRemovable ( f ) && ( f . getName ( ) == this . element ? A . call ( this , f ) : u ( f , H ( this ) [ f . getName ( ) ] ) , g . type == CKEDITOR . NODE _ELEMENT && g . contains ( d ) &&
( b ( ) , g = d . getNext ( ) ) ) , f = g } a . moveToBookmark ( c ) ; a . shrink ( CKEDITOR . NODE _ELEMENT , ! 0 ) } function f ( a ) { var b = [ ] ; a . forEach ( function ( a ) { if ( "true" == a . getAttribute ( "contenteditable" ) ) return b . push ( a ) , ! 1 } , CKEDITOR . NODE _ELEMENT , ! 0 ) ; return b } function h ( a ) { var b = a . getEnclosedNode ( ) || a . getCommonAncestor ( ! 1 , ! 0 ) ; ( a = ( new CKEDITOR . dom . elementPath ( b , a . root ) ) . contains ( this . element , 1 ) ) && ! a . isReadOnly ( ) && y ( a , this ) } function k ( a ) { var b = a . getCommonAncestor ( ! 0 , ! 0 ) ; if ( a = ( new CKEDITOR . dom . elementPath ( b , a . root ) ) . contains ( this . element ,
1 ) ) { var b = this . _ . definition , c = b . attributes ; if ( c ) for ( var d in c ) a . removeAttribute ( d , c [ d ] ) ; if ( b . styles ) for ( var e in b . styles ) b . styles . hasOwnProperty ( e ) && a . removeStyle ( e ) } } function g ( a ) { var b = a . createBookmark ( ! 0 ) , c = a . createIterator ( ) ; c . enforceRealBlocks = ! 0 ; this . _ . enterMode && ( c . enlargeBr = this . _ . enterMode != CKEDITOR . ENTER _BR ) ; for ( var d , e = a . document , f ; d = c . getNextParagraph ( ) ; ) ! d . isReadOnly ( ) && ( c . activeFilter ? c . activeFilter . check ( this ) : 1 ) && ( f = L ( this , e , d ) , u ( d , f ) ) ; a . moveToBookmark ( b ) } function l ( a ) { var b = a . createBookmark ( 1 ) ,
c = a . createIterator ( ) ; c . enforceRealBlocks = ! 0 ; c . enlargeBr = this . _ . enterMode != CKEDITOR . ENTER _BR ; for ( var d , e ; d = c . getNextParagraph ( ) ; ) this . checkElementRemovable ( d ) && ( d . is ( "pre" ) ? ( ( e = this . _ . enterMode == CKEDITOR . ENTER _BR ? null : a . document . createElement ( this . _ . enterMode == CKEDITOR . ENTER _P ? "p" : "div" ) ) && d . copyAttributes ( e ) , u ( d , e ) ) : z . call ( this , d ) ) ; a . moveToBookmark ( b ) } function u ( a , b ) { var c = ! b ; c && ( b = a . getDocument ( ) . createElement ( "div" ) , a . copyAttributes ( b ) ) ; var d = b && b . is ( "pre" ) , f = a . is ( "pre" ) , g = ! d && f ; if ( d && ! f ) { f = b ; ( g =
a . getBogus ( ) ) && g . remove ( ) ; g = a . getHtml ( ) ; g = x ( g , /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g , "" ) ; g = g . replace ( /[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi , "$1" ) ; g = g . replace ( /([ \t\n\r]+| )/g , " " ) ; g = g . replace ( /<br\b[^>]*>/gi , "\n" ) ; if ( CKEDITOR . env . ie ) { var h = a . getDocument ( ) . createElement ( "div" ) ; h . append ( f ) ; f . $ . outerHTML = "\x3cpre\x3e" + g + "\x3c/pre\x3e" ; f . copyAttributes ( h . getFirst ( ) ) ; f = h . getFirst ( ) . remove ( ) } else f . setHtml ( g ) ; b = f } else g ? b = w ( c ? [ a . getHtml ( ) ] : e ( a ) , b ) : a . moveChildren ( b ) ; b . replace ( a ) ; if ( d ) { var c = b , k ; ( k = c . getPrevious ( v ) ) &&
k . type == CKEDITOR . NODE _ELEMENT && k . is ( "pre" ) && ( d = x ( k . getHtml ( ) , /\n$/ , "" ) + "\n\n" + x ( c . getHtml ( ) , /^\n/ , "" ) , CKEDITOR . env . ie ? c . $ . outerHTML = "\x3cpre\x3e" + d + "\x3c/pre\x3e" : c . setHtml ( d ) , k . remove ( ) ) } else c && n ( b ) } function e ( a ) { var b = [ ] ; x ( a . getOuterHtml ( ) , /(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi , function ( a , b , c ) { return b + "\x3c/pre\x3e" + c + "\x3cpre\x3e" } ) . replace ( /<pre\b.*?>([\s\S]*?)<\/pre>/gi , function ( a , c ) { b . push ( c ) } ) ; return b } function x ( a , b , c ) { var d = "" , e = "" ; a = a . replace ( /(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi ,
function ( a , b , c ) { b && ( d = b ) ; c && ( e = c ) ; return "" } ) ; return d + a . replace ( b , c ) + e } function w ( a , b ) { var c ; 1 < a . length && ( c = new CKEDITOR . dom . documentFragment ( b . getDocument ( ) ) ) ; for ( var d = 0 ; d < a . length ; d ++ ) { var e = a [ d ] , e = e . replace ( /(\r\n|\r)/g , "\n" ) , e = x ( e , /^[ \t]*\n/ , "" ) , e = x ( e , /\n$/ , "" ) , e = x ( e , /^[ \t]+|[ \t]+$/g , function ( a , b ) { return 1 == a . length ? "\x26nbsp;" : b ? " " + CKEDITOR . tools . repeat ( "\x26nbsp;" , a . length - 1 ) : CKEDITOR . tools . repeat ( "\x26nbsp;" , a . length - 1 ) + " " } ) , e = e . replace ( /\n/g , "\x3cbr\x3e" ) , e = e . replace ( /[ \t]{2,}/g , function ( a ) { return CKEDITOR . tools . repeat ( "\x26nbsp;" ,
a . length - 1 ) + " " } ) ; if ( c ) { var f = b . clone ( ) ; f . setHtml ( e ) ; c . append ( f ) } else b . setHtml ( e ) } return c || b } function z ( a , b ) { var c = this . _ . definition , d = c . attributes , c = c . styles , e = I ( this ) [ a . getName ( ) ] , f = CKEDITOR . tools . isEmpty ( d ) && CKEDITOR . tools . isEmpty ( c ) , g ; for ( g in d ) if ( "class" != g && ! this . _ . definition . fullMatch || a . getAttribute ( g ) == m ( g , d [ g ] ) ) b && "data-" == g . slice ( 0 , 5 ) || ( f = a . hasAttribute ( g ) , a . removeAttribute ( g ) ) ; for ( var h in c ) this . _ . definition . fullMatch && a . getStyle ( h ) != m ( h , c [ h ] , ! 0 ) || ( f = f || ! ! a . getStyle ( h ) , a . removeStyle ( h ) ) ;
t ( a , e , A [ a . getName ( ) ] ) ; f && ( this . _ . definition . alwaysRemoveElement ? n ( a , 1 ) : ! CKEDITOR . dtd . $block [ a . getName ( ) ] || this . _ . enterMode == CKEDITOR . ENTER _BR && ! a . hasAttributes ( ) ? n ( a ) : a . renameNode ( this . _ . enterMode == CKEDITOR . ENTER _P ? "p" : "div" ) ) } function H ( a ) { for ( var b = I ( this ) , c = a . getElementsByTag ( this . element ) , d , e = c . count ( ) ; 0 <= -- e ; ) d = c . getItem ( e ) , d . isReadOnly ( ) || z . call ( this , d , ! 0 ) ; for ( var f in b ) if ( f != this . element ) for ( c = a . getElementsByTag ( f ) , e = c . count ( ) - 1 ; 0 <= e ; e -- ) d = c . getItem ( e ) , d . isReadOnly ( ) || t ( d , b [ f ] ) } function t ( a ,
b , c ) { if ( b = b && b . attributes ) for ( var d = 0 ; d < b . length ; d ++ ) { var e = b [ d ] [ 0 ] , f ; if ( f = a . getAttribute ( e ) ) { var g = b [ d ] [ 1 ] ; ( null === g || g . test && g . test ( f ) || "string" == typeof g && f == g ) && a . removeAttribute ( e ) } } c || n ( a ) } function n ( a , b ) { if ( ! a . hasAttributes ( ) || b ) if ( CKEDITOR . dtd . $block [ a . getName ( ) ] ) { var c = a . getPrevious ( v ) , d = a . getNext ( v ) ; ! c || c . type != CKEDITOR . NODE _TEXT && c . isBlockBoundary ( { br : 1 } ) || a . append ( "br" , 1 ) ; ! d || d . type != CKEDITOR . NODE _TEXT && d . isBlockBoundary ( { br : 1 } ) || a . append ( "br" ) ; a . remove ( ! 0 ) } else c = a . getFirst ( ) , d = a . getLast ( ) ,
a . remove ( ! 0 ) , c && ( c . type == CKEDITOR . NODE _ELEMENT && c . mergeSiblings ( ) , d && ! c . equals ( d ) && d . type == CKEDITOR . NODE _ELEMENT && d . mergeSiblings ( ) ) } function L ( a , b , c ) { var d ; d = a . element ; "*" == d && ( d = "span" ) ; d = new CKEDITOR . dom . element ( d , b ) ; c && c . copyAttributes ( d ) ; d = y ( d , a ) ; b . getCustomData ( "doc_processing_style" ) && d . hasAttribute ( "id" ) ? d . removeAttribute ( "id" ) : b . setCustomData ( "doc_processing_style" , 1 ) ; return d } function y ( a , b ) { var c = b . _ . definition , d = c . attributes , c = CKEDITOR . style . getStyleText ( c ) ; if ( d ) for ( var e in d ) a . setAttribute ( e ,
d [ e ] ) ; c && a . setAttribute ( "style" , c ) ; a . getDocument ( ) . removeCustomData ( "doc_processing_style" ) ; return a } function F ( a , b ) { for ( var c in a ) a [ c ] = a [ c ] . replace ( D , function ( a , c ) { return b [ c ] } ) } function I ( a ) { if ( a . _ . overrides ) return a . _ . overrides ; var b = a . _ . overrides = { } , c = a . _ . definition . overrides ; if ( c ) { CKEDITOR . tools . isArray ( c ) || ( c = [ c ] ) ; for ( var d = 0 ; d < c . length ; d ++ ) { var e = c [ d ] , f , g ; "string" == typeof e ? f = e . toLowerCase ( ) : ( f = e . element ? e . element . toLowerCase ( ) : a . element , g = e . attributes ) ; e = b [ f ] || ( b [ f ] = { } ) ; if ( g ) { var e = e . attributes =
e . attributes || [ ] , h ; for ( h in g ) e . push ( [ h . toLowerCase ( ) , g [ h ] ] ) } } } return b } function m ( a , b , c ) { var d = new CKEDITOR . dom . element ( "span" ) ; d [ c ? "setStyle" : "setAttribute" ] ( a , b ) ; return d [ c ? "getStyle" : "getAttribute" ] ( a ) } function C ( a , b ) { function c ( a , b ) { return "font-family" == b . toLowerCase ( ) ? a . replace ( /["']/g , "" ) : a } "string" == typeof a && ( a = CKEDITOR . tools . parseCssText ( a ) ) ; "string" == typeof b && ( b = CKEDITOR . tools . parseCssText ( b , ! 0 ) ) ; for ( var d in a ) if ( ! ( d in b ) || c ( b [ d ] , d ) != c ( a [ d ] , d ) && "inherit" != a [ d ] && "inherit" != b [ d ] ) return ! 1 ;
return ! 0 } function K ( a , b , c ) { var d = a . getRanges ( ) ; b = b ? this . removeFromRange : this . applyToRange ; for ( var e , f = d . createIterator ( ) ; e = f . getNextRange ( ) ; ) b . call ( this , e , c ) ; a . selectRanges ( d ) } var A = { address : 1 , div : 1 , h1 : 1 , h2 : 1 , h3 : 1 , h4 : 1 , h5 : 1 , h6 : 1 , p : 1 , pre : 1 , section : 1 , header : 1 , footer : 1 , nav : 1 , article : 1 , aside : 1 , figure : 1 , dialog : 1 , hgroup : 1 , time : 1 , meter : 1 , menu : 1 , command : 1 , keygen : 1 , output : 1 , progress : 1 , details : 1 , datagrid : 1 , datalist : 1 } , M = { 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 } , r = /\s*(?:;\s*|$)/ , D = /#\((.+?)\)/g , B = CKEDITOR . dom . walker . bookmark ( 0 , 1 ) , v = CKEDITOR . dom . walker . whitespaces ( 1 ) ; CKEDITOR . style = function ( a , b ) { if ( "string" == typeof a . type ) return new CKEDITOR . style . customHandlers [ a . type ] ( a ) ; var c = a . attributes ; c && c . style && ( a . styles = CKEDITOR . tools . extend ( { } , a . styles , CKEDITOR . tools . parseCssText ( c . style ) ) , delete c . style ) ; b && ( a = CKEDITOR . tools . clone ( a ) , F ( a . attributes , b ) , F ( a . styles , b ) ) ; c = this . element = a . element ? "string" == typeof a . element ? a . element . toLowerCase ( ) :
a . element : "*" ; this . type = a . type || ( A [ c ] ? CKEDITOR . STYLE _BLOCK : M [ c ] ? 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 K . call ( this , a . getSelection ( ) ) ; if ( this . checkApplicable ( a . elementPath ( ) , a ) ) { var b = this . _ . enterMode ; b || ( this . _ . enterMode = a . activeEnterMode ) ; K . call ( this , a . getSelection ( ) , 0 , a ) ; this . _ . enterMode = b } } , remove : function ( a ) { if ( a instanceof
CKEDITOR . dom . document ) return K . call ( this , a . getSelection ( ) , 1 ) ; if ( this . checkApplicable ( a . elementPath ( ) , a ) ) { var b = this . _ . enterMode ; b || ( this . _ . enterMode = a . activeEnterMode ) ; K . call ( this , a . getSelection ( ) , 1 , a ) ; this . _ . enterMode = b } } , applyToRange : function ( a ) { this . applyToRange = this . type == CKEDITOR . STYLE _INLINE ? b : this . type == CKEDITOR . STYLE _BLOCK ? g : this . type == CKEDITOR . STYLE _OBJECT ? h : null ; return this . applyToRange ( a ) } , removeFromRange : function ( a ) { this . removeFromRange = this . type == CKEDITOR . STYLE _INLINE ? c : this . type == CKEDITOR . STYLE _BLOCK ?
1 ) ) { var b = this . _ . definition , c = b . attributes ; if ( c ) for ( var d in c ) a . removeAttribute ( d , c [ d ] ) ; if ( b . styles ) for ( var e in b . styles ) b . styles . hasOwnProperty ( e ) && a . removeStyle ( e ) } } function g ( a ) { var b = a . createBookmark ( ! 0 ) , c = a . createIterator ( ) ; c . enforceRealBlocks = ! 0 ; this . _ . enterMode && ( c . enlargeBr = this . _ . enterMode != CKEDITOR . ENTER _BR ) ; for ( var d , e = a . document , f ; d = c . getNextParagraph ( ) ; ) ! d . isReadOnly ( ) && ( c . activeFilter ? c . activeFilter . check ( this ) : 1 ) && ( f = M ( this , e , d ) , v ( d , f ) ) ; a . moveToBookmark ( b ) } function l ( a ) { var b = a . createBookmark ( 1 ) ,
c = a . createIterator ( ) ; c . enforceRealBlocks = ! 0 ; c . enlargeBr = this . _ . enterMode != CKEDITOR . ENTER _BR ; for ( var d , e ; d = c . getNextParagraph ( ) ; ) this . checkElementRemovable ( d ) && ( d . is ( "pre" ) ? ( ( e = this . _ . enterMode == CKEDITOR . ENTER _BR ? null : a . document . createElement ( this . _ . enterMode == CKEDITOR . ENTER _P ? "p" : "div" ) ) && d . copyAttributes ( e ) , v ( d , e ) ) : A . call ( this , d ) ) ; a . moveToBookmark ( b ) } function v ( a , b ) { var c = ! b ; c && ( b = a . getDocument ( ) . createElement ( "div" ) , a . copyAttributes ( b ) ) ; var d = b && b . is ( "pre" ) , f = a . is ( "pre" ) , g = ! d && f ; if ( d && ! f ) { f = b ; ( g =
a . getBogus ( ) ) && g . remove ( ) ; g = a . getHtml ( ) ; g = z ( g , /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g , "" ) ; g = g . replace ( /[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi , "$1" ) ; g = g . replace ( /([ \t\n\r]+| )/g , " " ) ; g = g . replace ( /<br\b[^>]*>/gi , "\n" ) ; if ( CKEDITOR . env . ie ) { var h = a . getDocument ( ) . createElement ( "div" ) ; h . append ( f ) ; f . $ . outerHTML = "\x3cpre\x3e" + g + "\x3c/pre\x3e" ; f . copyAttributes ( h . getFirst ( ) ) ; f = h . getFirst ( ) . remove ( ) } else f . setHtml ( g ) ; b = f } else g ? b = w ( c ? [ a . getHtml ( ) ] : e ( a ) , b ) : a . moveChildren ( b ) ; b . replace ( a ) ; if ( d ) { var c = b , k ; ( k = c . getPrevious ( x ) ) &&
k . type == CKEDITOR . NODE _ELEMENT && k . is ( "pre" ) && ( d = z ( k . getHtml ( ) , /\n$/ , "" ) + "\n\n" + z ( c . getHtml ( ) , /^\n/ , "" ) , CKEDITOR . env . ie ? c . $ . outerHTML = "\x3cpre\x3e" + d + "\x3c/pre\x3e" : c . setHtml ( d ) , k . remove ( ) ) } else c && m ( b ) } function e ( a ) { var b = [ ] ; z ( a . getOuterHtml ( ) , /(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi , function ( a , b , c ) { return b + "\x3c/pre\x3e" + c + "\x3cpre\x3e" } ) . replace ( /<pre\b.*?>([\s\S]*?)<\/pre>/gi , function ( a , c ) { b . push ( c ) } ) ; return b } function z ( a , b , c ) { var d = "" , e = "" ; a = a . replace ( /(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi ,
function ( a , b , c ) { b && ( d = b ) ; c && ( e = c ) ; return "" } ) ; return d + a . replace ( b , c ) + e } function w ( a , b ) { var c ; 1 < a . length && ( c = new CKEDITOR . dom . documentFragment ( b . getDocument ( ) ) ) ; for ( var d = 0 ; d < a . length ; d ++ ) { var e = a [ d ] , e = e . replace ( /(\r\n|\r)/g , "\n" ) , e = z ( e , /^[ \t]*\n/ , "" ) , e = z ( e , /\n$/ , "" ) , e = z ( e , /^[ \t]+|[ \t]+$/g , function ( a , b ) { return 1 == a . length ? "\x26nbsp;" : b ? " " + CKEDITOR . tools . repeat ( "\x26nbsp;" , a . length - 1 ) : CKEDITOR . tools . repeat ( "\x26nbsp;" , a . length - 1 ) + " " } ) , e = e . replace ( /\n/g , "\x3cbr\x3e" ) , e = e . replace ( /[ \t]{2,}/g , function ( a ) { return CKEDITOR . tools . repeat ( "\x26nbsp;" ,
a . length - 1 ) + " " } ) ; if ( c ) { var f = b . clone ( ) ; f . setHtml ( e ) ; c . append ( f ) } else b . setHtml ( e ) } return c || b } function A ( a , b ) { var c = this . _ . definition , d = c . attributes , c = c . styles , e = H ( this ) [ a . getName ( ) ] , f = CKEDITOR . tools . isEmpty ( d ) && CKEDITOR . tools . isEmpty ( c ) , g ; for ( g in d ) if ( "class" != g && ! this . _ . definition . fullMatch || a . getAttribute ( g ) == n ( g , d [ g ] ) ) b && "data-" == g . slice ( 0 , 5 ) || ( f = a . hasAttribute ( g ) , a . removeAttribute ( g ) ) ; for ( var h in c ) this . _ . definition . fullMatch && a . getStyle ( h ) != n ( h , c [ h ] , ! 0 ) || ( f = f || ! ! a . getStyle ( h ) , a . removeStyle ( h ) ) ;
u ( a , e , B [ a . getName ( ) ] ) ; f && ( this . _ . definition . alwaysRemoveElement ? m ( a , 1 ) : ! CKEDITOR . dtd . $block [ a . getName ( ) ] || this . _ . enterMode == CKEDITOR . ENTER _BR && ! a . hasAttributes ( ) ? m ( a ) : a . renameNode ( this . _ . enterMode == CKEDITOR . ENTER _P ? "p" : "div" ) ) } function F ( a ) { for ( var b = H ( this ) , c = a . getElementsByTag ( this . element ) , d , e = c . count ( ) ; 0 <= -- e ; ) d = c . getItem ( e ) , d . isReadOnly ( ) || A . call ( this , d , ! 0 ) ; for ( var f in b ) if ( f != this . element ) for ( c = a . getElementsByTag ( f ) , e = c . count ( ) - 1 ; 0 <= e ; e -- ) d = c . getItem ( e ) , d . isReadOnly ( ) || u ( d , b [ f ] ) } function u ( a ,
b , c ) { if ( b = b && b . attributes ) for ( var d = 0 ; d < b . length ; d ++ ) { var e = b [ d ] [ 0 ] , f ; if ( f = a . getAttribute ( e ) ) { var g = b [ d ] [ 1 ] ; ( null === g || g . test && g . test ( f ) || "string" == typeof g && f == g ) && a . removeAttribute ( e ) } } c || m ( a ) } function m ( a , b ) { if ( ! a . hasAttributes ( ) || b ) if ( CKEDITOR . dtd . $block [ a . getName ( ) ] ) { var c = a . getPrevious ( x ) , d = a . getNext ( x ) ; ! c || c . type != CKEDITOR . NODE _TEXT && c . isBlockBoundary ( { br : 1 } ) || a . append ( "br" , 1 ) ; ! d || d . type != CKEDITOR . NODE _TEXT && d . isBlockBoundary ( { br : 1 } ) || a . append ( "br" ) ; a . remove ( ! 0 ) } else c = a . getFirst ( ) , d = a . getLast ( ) ,
a . remove ( ! 0 ) , c && ( c . type == CKEDITOR . NODE _ELEMENT && c . mergeSiblings ( ) , d && ! c . equals ( d ) && d . type == CKEDITOR . NODE _ELEMENT && d . mergeSiblings ( ) ) } function M ( a , b , c ) { var d ; d = a . element ; "*" == d && ( d = "span" ) ; d = new CKEDITOR . dom . element ( d , b ) ; c && c . copyAttributes ( d ) ; d = y ( d , a ) ; b . getCustomData ( "doc_processing_style" ) && d . hasAttribute ( "id" ) ? d . removeAttribute ( "id" ) : b . setCustomData ( "doc_processing_style" , 1 ) ; return d } function y ( a , b ) { var c = b . _ . definition , d = c . attributes , c = CKEDITOR . style . getStyleText ( c ) ; if ( d ) for ( var e in d ) a . setAttribute ( e ,
d [ e ] ) ; c && a . setAttribute ( "style" , c ) ; a . getDocument ( ) . removeCustomData ( "doc_processing_style" ) ; return a } function G ( a , b ) { for ( var c in a ) a [ c ] = a [ c ] . replace ( D , function ( a , c ) { return b [ c ] } ) } function H ( a ) { if ( a . _ . overrides ) return a . _ . overrides ; var b = a . _ . overrides = { } , c = a . _ . definition . overrides ; if ( c ) { CKEDITOR . tools . isArray ( c ) || ( c = [ c ] ) ; for ( var d = 0 ; d < c . length ; d ++ ) { var e = c [ d ] , f , g ; "string" == typeof e ? f = e . toLowerCase ( ) : ( f = e . element ? e . element . toLowerCase ( ) : a . element , g = e . attributes ) ; e = b [ f ] || ( b [ f ] = { } ) ; if ( g ) { var e = e . attributes =
e . attributes || [ ] , h ; for ( h in g ) e . push ( [ h . toLowerCase ( ) , g [ h ] ] ) } } } return b } function n ( a , b , c ) { var d = new CKEDITOR . dom . element ( "span" ) ; d [ c ? "setStyle" : "setAttribute" ] ( a , b ) ; return d [ c ? "getStyle" : "getAttribute" ] ( a ) } function C ( a , b ) { function c ( a , b ) { return "font-family" == b . toLowerCase ( ) ? a . replace ( /["']/g , "" ) : a } "string" == typeof a && ( a = CKEDITOR . tools . parseCssText ( a ) ) ; "string" == typeof b && ( b = CKEDITOR . tools . parseCssText ( b , ! 0 ) ) ; for ( var d in a ) if ( ! ( d in b ) || c ( b [ d ] , d ) != c ( a [ d ] , d ) && "inherit" != a [ d ] && "inherit" != b [ d ] ) return ! 1 ;
return ! 0 } function L ( a , b , c ) { var d = a . getRanges ( ) ; b = b ? this . removeFromRange : this . applyToRange ; for ( var e , f = d . createIterator ( ) ; e = f . getNextRange ( ) ; ) b . call ( this , e , c ) ; a . selectRanges ( d ) } var B = { 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 } , N = { 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 } , q = /\s*(?:;\s*|$)/ , D = /#\((.+?)\)/g , r = CKEDITOR . dom . walker . bookmark ( 0 , 1 ) , x = CKEDITOR . dom . walker . whitespaces ( 1 ) ; CKEDITOR . style = function ( a , b ) { if ( "string" == typeof a . type ) return new CKEDITOR . style . customHandlers [ a . type ] ( a ) ; var c = a . attributes ; c && c . style && ( a . styles = CKEDITOR . tools . extend ( { } , a . styles , CKEDITOR . tools . parseCssText ( c . style ) ) , delete c . style ) ; b && ( a = CKEDITOR . tools . clone ( a ) , G ( a . attributes , b ) , G ( a . styles , b ) ) ; c = this . element = a . element ? "string" == typeof a . element ? a . element . toLowerCase ( ) :
a . element : "*" ; this . type = a . type || ( B [ c ] ? CKEDITOR . STYLE _BLOCK : N [ c ] ? 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 L . call ( this , a . getSelection ( ) ) ; if ( this . checkApplicable ( a . elementPath ( ) , a ) ) { var b = this . _ . enterMode ; b || ( this . _ . enterMode = a . activeEnterMode ) ; L . call ( this , a . getSelection ( ) , 0 , a ) ; this . _ . enterMode = b } } , remove : function ( a ) { if ( a instanceof
CKEDITOR . dom . document ) return L . call ( this , a . getSelection ( ) , 1 ) ; if ( this . checkApplicable ( a . elementPath ( ) , a ) ) { var b = this . _ . enterMode ; b || ( this . _ . enterMode = a . activeEnterMode ) ; L . call ( this , a . getSelection ( ) , 1 , a ) ; this . _ . enterMode = b } } , applyToRange : function ( a ) { this . applyToRange = this . type == CKEDITOR . STYLE _INLINE ? b : this . type == CKEDITOR . STYLE _BLOCK ? g : this . type == CKEDITOR . STYLE _OBJECT ? h : null ; return this . applyToRange ( a ) } , removeFromRange : function ( a ) { this . removeFromRange = this . type == CKEDITOR . STYLE _INLINE ? c : this . type == CKEDITOR . STYLE _BLOCK ?
l : this . type == CKEDITOR . STYLE _OBJECT ? k : null ; return this . removeFromRange ( a ) } , applyToObject : function ( a ) { y ( a , this ) } , checkActive : function ( a , b ) { switch ( this . type ) { case CKEDITOR . STYLE _BLOCK : return this . checkElementRemovable ( a . block || a . blockLimit , ! 0 , b ) ; case CKEDITOR . STYLE _OBJECT : case CKEDITOR . STYLE _INLINE : for ( var c = a . elements , d = 0 , e ; d < c . length ; d ++ ) if ( e = c [ d ] , this . type != CKEDITOR . STYLE _INLINE || e != a . block && e != a . blockLimit ) { if ( this . type == CKEDITOR . STYLE _OBJECT ) { var f = e . getName ( ) ; if ( ! ( "string" == typeof this . element ?
f == this . element : f in this . element ) ) continue } if ( this . checkElementRemovable ( e , ! 0 , b ) ) return ! 0 } } return ! 1 } , checkApplicable : function ( a , b , c ) { b && b instanceof CKEDITOR . filter && ( c = b ) ; if ( c && ! c . check ( this ) ) return ! 1 ; switch ( this . type ) { case CKEDITOR . STYLE _OBJECT : return ! ! a . contains ( this . element ) ; case CKEDITOR . STYLE _BLOCK : return ! ! a . blockLimit . getDtd ( ) [ this . element ] } return ! 0 } , checkElementMatch : function ( a , b ) { var c = this . _ . definition ; if ( ! a || ! c . ignoreReadonly && a . isReadOnly ( ) ) return ! 1 ; var d = a . getName ( ) ; if ( "string" == typeof this . element ?
d == this . element : d in this . element ) { if ( ! b && ! a . hasAttributes ( ) ) return ! 0 ; if ( d = c . _AC ) c = d ; else { var d = { } , e = 0 , f = c . attributes ; if ( f ) for ( var g in f ) e ++ , d [ g ] = f [ g ] ; if ( g = CKEDITOR . style . getStyleText ( c ) ) d . style || e ++ , d . style = g ; d . _length = e ; c = c . _AC = d } if ( c . _length ) { for ( var h in c ) if ( "_length" != h ) if ( d = a . getAttribute ( h ) || "" , "style" == h ? C ( c [ h ] , d ) : c [ h ] == d ) { if ( ! b ) return ! 0 } else if ( b ) return ! 1 ; if ( b ) return ! 0 } else return ! 0 } return ! 1 } , checkElementRemovable : function ( a , b , c ) { if ( this . checkElementMatch ( a , b , c ) ) return ! 0 ; if ( b = I ( this ) [ a . getName ( ) ] ) { var d ;
d == this . element : d in this . element ) { if ( ! b && ! a . hasAttributes ( ) ) return ! 0 ; if ( d = c . _AC ) c = d ; else { var d = { } , e = 0 , f = c . attributes ; if ( f ) for ( var g in f ) e ++ , d [ g ] = f [ g ] ; if ( g = CKEDITOR . style . getStyleText ( c ) ) d . style || e ++ , d . style = g ; d . _length = e ; c = c . _AC = d } if ( c . _length ) { for ( var h in c ) if ( "_length" != h ) if ( d = a . getAttribute ( h ) || "" , "style" == h ? C ( c [ h ] , d ) : c [ h ] == d ) { if ( ! b ) return ! 0 } else if ( b ) return ! 1 ; if ( b ) return ! 0 } else return ! 0 } return ! 1 } , checkElementRemovable : function ( a , b , c ) { if ( this . checkElementMatch ( a , b , c ) ) return ! 0 ; if ( b = H ( this ) [ a . getName ( ) ] ) { var d ;
if ( ! ( b = b . attributes ) ) return ! 0 ; for ( c = 0 ; c < b . length ; c ++ ) if ( d = b [ c ] [ 0 ] , d = a . getAttribute ( d ) ) { var e = b [ c ] [ 1 ] ; if ( null === e ) return ! 0 ; if ( "string" == typeof e ) { if ( d == e ) return ! 0 } else if ( e . test ( d ) ) return ! 0 } } return ! 1 } , buildPreview : function ( a ) { var b = this . _ . definition , c = [ ] , d = b . element ; "bdo" == d && ( d = "span" ) ; var c = [ "\x3c" , d ] , e = b . attributes ; if ( e ) for ( var f in e ) c . push ( " " , f , '\x3d"' , e [ f ] , '"' ) ; ( e = CKEDITOR . style . getStyleText ( b ) ) && c . push ( ' style\x3d"' , e , '"' ) ; c . push ( "\x3e" , a || b . name , "\x3c/" , d , "\x3e" ) ; return c . join ( "" ) } , getDefinition : function ( ) { return this . _ . definition } } ;
CKEDITOR . style . getStyleText = function ( a ) { var b = a . _ST ; if ( b ) return b ; var b = a . styles , c = a . attributes && a . attributes . style || "" , d = "" ; c . length && ( c = c . replace ( r , ";" ) ) ; for ( var e in b ) { var f = b [ e ] , g = ( e + ":" + f ) . replace ( r , ";" ) ; "inherit" == f ? d += g : c += g } c . length && ( c = CKEDITOR . tools . normalizeCssText ( c , ! 0 ) ) ; return a . _ST = c + d } ; CKEDITOR . style . customHandlers = { } ; CKEDITOR . style . unstylableElements = [ ] ; CKEDITOR . style . addCustomHandler = function ( a ) { var b = function ( a ) { this . _ = { definition : a } ; this . setup && this . setup ( a ) } ; b . prototype = CKEDITOR . tools . extend ( CKEDITOR . tools . prototypedCopy ( CKEDITOR . style . prototype ) ,
{ assignedTo : CKEDITOR . STYLE _OBJECT } , a , ! 0 ) ; return this . customHandlers [ a . type ] = b } ; var S = CKEDITOR . POSITION _PRECEDING | CKEDITOR . POSITION _IDENTICAL | CKEDITOR . POSITION _IS _CONTAINED , R = CKEDITOR . POSITION _FOLLOWING | CKEDITOR . POSITION _IDENTICAL | CKEDITOR . POSITION _IS _CONTAINED } ) ( ) ; CKEDITOR . styleCommand = function ( a , d ) { this . requiredContent = this . allowedContent = this . style = a ; CKEDITOR . tools . extend ( this , d , ! 0 ) } ;
CKEDITOR . style . getStyleText = function ( a ) { var b = a . _ST ; if ( b ) return b ; var b = a . styles , c = a . attributes && a . attributes . style || "" , d = "" ; c . length && ( c = c . replace ( q , ";" ) ) ; for ( var e in b ) { var f = b [ e ] , g = ( e + ":" + f ) . replace ( q , ";" ) ; "inherit" == f ? d += g : c += g } c . length && ( c = CKEDITOR . tools . normalizeCssText ( c , ! 0 ) ) ; return a . _ST = c + d } ; CKEDITOR . style . customHandlers = { } ; CKEDITOR . style . unstylableElements = [ ] ; CKEDITOR . style . addCustomHandler = function ( a ) { var b = function ( a ) { this . _ = { definition : a } ; this . setup && this . setup ( a ) } ; b . prototype = CKEDITOR . tools . extend ( CKEDITOR . tools . prototypedCopy ( CKEDITOR . style . prototype ) ,
{ assignedTo : CKEDITOR . STYLE _OBJECT } , a , ! 0 ) ; return this . customHandlers [ a . type ] = b } ; var T = CKEDITOR . POSITION _PRECEDING | CKEDITOR . POSITION _IDENTICAL | CKEDITOR . POSITION _IS _CONTAINED , S = CKEDITOR . POSITION _FOLLOWING | CKEDITOR . POSITION _IDENTICAL | CKEDITOR . POSITION _IS _CONTAINED } ) ( ) ; CKEDITOR . styleCommand = function ( a , d ) { this . requiredContent = this . allowedContent = this . style = a ; CKEDITOR . tools . extend ( this , d , ! 0 ) } ;
CKEDITOR . styleCommand . prototype . exec = function ( a ) { a . focus ( ) ; this . state == CKEDITOR . TRISTATE _OFF ? a . applyStyle ( this . style ) : this . state == CKEDITOR . TRISTATE _ON && a . removeStyle ( this . style ) } ; CKEDITOR . stylesSet = new CKEDITOR . resourceManager ( "" , "stylesSet" ) ; CKEDITOR . addStylesSet = CKEDITOR . tools . bind ( CKEDITOR . stylesSet . add , CKEDITOR . stylesSet ) ; CKEDITOR . loadStylesSet = function ( a , d , b ) { CKEDITOR . stylesSet . addExternal ( a , d , "" ) ; CKEDITOR . stylesSet . load ( a , b ) } ;
CKEDITOR . tools . extend ( CKEDITOR . editor . prototype , { attachStyleStateChange : function ( a , d ) { var b = this . _ . styleStateChangeCallbacks ; b || ( b = this . _ . styleStateChangeCallbacks = [ ] , this . on ( "selectionChange" , function ( a ) { for ( var d = 0 ; d < b . length ; d ++ ) { var h = b [ d ] , k = h . style . checkActive ( a . data . path , this ) ? CKEDITOR . TRISTATE _ON : CKEDITOR . TRISTATE _OFF ; h . fn . call ( this , k ) } } ) ) ; b . push ( { style : a , fn : d } ) } , applyStyle : function ( a ) { a . apply ( this ) } , removeStyle : function ( a ) { a . remove ( this ) } , getStylesSet : function ( a ) { if ( this . _ . stylesDefinitions ) a ( this . _ . stylesDefinitions ) ;
else { var d = this , b = d . config . stylesCombo _stylesSet || d . config . stylesSet ; if ( ! 1 === b ) a ( null ) ; else if ( b instanceof Array ) d . _ . stylesDefinitions = b , a ( b ) ; else { b || ( b = "default" ) ; var b = b . split ( ":" ) , c = b [ 0 ] ; CKEDITOR . stylesSet . addExternal ( c , b [ 1 ] ? b . slice ( 1 ) . join ( ":" ) : CKEDITOR . getUrl ( "styles.js" ) , "" ) ; CKEDITOR . stylesSet . load ( c , function ( b ) { d . _ . stylesDefinitions = b [ c ] ; a ( d . _ . stylesDefinitions ) } ) } } } } ) ;
@@ -529,16 +531,16 @@ else{var d=this,b=d.config.stylesCombo_stylesSet||d.config.stylesSet;if(!1===b)a
( function ( ) { function a ( a , f , h ) { a . once ( "selectionCheck" , function ( a ) { if ( ! d ) { var c = a . data . getRanges ( ) [ 0 ] ; h . equals ( c ) ? a . cancel ( ) : f . equals ( c ) && ( b = ! 0 ) } } , null , null , - 1 ) } var d = ! 0 , b = ! 1 ; CKEDITOR . dom . selection . setupEditorOptimization = function ( a ) { a . on ( "selectionCheck" , function ( a ) { a . data && ! b && a . data . optimizeInElementEnds ( ) ; b = ! 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 b = this . getRanges ( ) [ 0 ] , f = this . root . editor , h ; if ( this . root . editor . _ . shiftPressed || this . isFake || b . isCollapsed || b . startContainer . equals ( b . endContainer ) ) h = ! 1 ; else if ( 0 === b . endOffset ) h = ! 0 ; else { h = b . startContainer . type === CKEDITOR . NODE _TEXT ; var k = b . endContainer . type === CKEDITOR . NODE _TEXT , g = h ? b . startContainer . getLength ( ) : b . startContainer . getChildCount ( ) ; h = b . startOffset === g || h ^ k } h && ( h = b . clone ( ) , b . shrink ( CKEDITOR . SHRINK _TEXT ,
! 1 , { skipBogus : ! CKEDITOR . env . webkit } ) , d = ! 1 , a ( f , b , h ) , b . select ( ) , d = ! 0 ) } } ) ( ) ; CKEDITOR . dom . comment = function ( a , d ) { "string" == typeof a && ( a = ( d ? d . $ : document ) . createComment ( a ) ) ; CKEDITOR . dom . domObject . call ( this , a ) } ; CKEDITOR . dom . comment . prototype = new CKEDITOR . dom . node ; CKEDITOR . tools . extend ( CKEDITOR . dom . comment . prototype , { type : CKEDITOR . NODE _COMMENT , getOuterHtml : function ( ) { return "\x3c!--" + this . $ . nodeValue + "--\x3e" } } ) ; "use strict" ;
( function ( ) { var a = { } , d = { } , b ; for ( b in CKEDITOR . dtd . $blockLimit ) b in CKEDITOR . dtd . $list || ( a [ b ] = 1 ) ; for ( b in CKEDITOR . dtd . $block ) b in CKEDITOR . dtd . $blockLimit || b in CKEDITOR . dtd . $empty || ( d [ b ] = 1 ) ; CKEDITOR . dom . elementPath = function ( b , f ) { var h = null , k = null , g = [ ] , l = b , u ; f = f || b . getDocument ( ) . getBody ( ) ; l || ( l = f ) ; do if ( l . type == CKEDITOR . NODE _ELEMENT ) { g . push ( l ) ; if ( ! this . lastElement && ( this . lastElement = l , l . is ( CKEDITOR . dtd . $object ) || "false" == l . getAttribute ( "contenteditable" ) ) ) continue ; if ( l . equals ( f ) ) break ; if ( ! k && ( u = l . getName ( ) ,
"true" == l . getAttribute ( "contenteditable" ) ? k = l : ! h && d [ u ] && ( h = l ) , a [ u ] ) ) { if ( u = ! h && "div" == u ) { a : { u = l . getChildren ( ) ; for ( var e = 0 , x = u . count ( ) ; e < x ; e ++ ) { var w = u . getItem ( e ) ; if ( w . type == CKEDITOR . NODE _ELEMENT && CKEDITOR . dtd . $block [ w . getName ( ) ] ) { u = ! 0 ; break a } } u = ! 1 } u = ! u } u ? h = l : k = l } } while ( l = l . getParent ( ) ) ; k || ( k = f ) ; this . block = h ; this . blockLimit = k ; this . root = f ; this . elements = g } } ) ( ) ;
( function ( ) { var a = { } , d = { } , b ; for ( b in CKEDITOR . dtd . $blockLimit ) b in CKEDITOR . dtd . $list || ( a [ b ] = 1 ) ; for ( b in CKEDITOR . dtd . $block ) b in CKEDITOR . dtd . $blockLimit || b in CKEDITOR . dtd . $empty || ( d [ b ] = 1 ) ; CKEDITOR . dom . elementPath = function ( b , f ) { var h = null , k = null , g = [ ] , l = b , v ; f = f || b . getDocument ( ) . getBody ( ) ; l || ( l = f ) ; do if ( l . type == CKEDITOR . NODE _ELEMENT ) { g . push ( l ) ; if ( ! this . lastElement && ( this . lastElement = l , l . is ( CKEDITOR . dtd . $object ) || "false" == l . getAttribute ( "contenteditable" ) ) ) continue ; if ( l . equals ( f ) ) break ; if ( ! k && ( v = l . getName ( ) ,
"true" == l . getAttribute ( "contenteditable" ) ? k = l : ! h && d [ v ] && ( h = l ) , a [ v ] ) ) { if ( v = ! h && "div" == v ) { a : { v = l . getChildren ( ) ; for ( var e = 0 , z = v . count ( ) ; e < z ; e ++ ) { var w = v . getItem ( e ) ; if ( w . type == CKEDITOR . NODE _ELEMENT && CKEDITOR . dtd . $block [ w . getName ( ) ] ) { v = ! 0 ; break a } } v = ! 1 } v = ! v } v ? h = l : k = l } } while ( l = l . getParent ( ) ) ; k || ( k = f ) ; this . block = h ; this . blockLimit = k ; this . root = f ; this . elements = g } } ) ( ) ;
CKEDITOR . dom . elementPath . prototype = { compare : function ( a ) { var d = this . elements ; a = a && a . elements ; if ( ! a || d . length != a . length ) return ! 1 ; for ( var b = 0 ; b < d . length ; b ++ ) if ( ! d [ b ] . equals ( a [ b ] ) ) return ! 1 ; return ! 0 } , contains : function ( a , d , b ) { var c = 0 , f ; "string" == typeof a && ( f = function ( b ) { return b . getName ( ) == a } ) ; a instanceof CKEDITOR . dom . element ? f = function ( b ) { return b . equals ( a ) } : CKEDITOR . tools . isArray ( a ) ? f = function ( b ) { return - 1 < CKEDITOR . tools . indexOf ( a , b . getName ( ) ) } : "function" == typeof a ? f = a : "object" == typeof a && ( f = function ( b ) { return b . getName ( ) in
a } ) ; var h = this . elements , k = h . length ; d && ( b ? c += 1 : -- k ) ; b && ( h = Array . prototype . slice . call ( h , 0 ) , h . reverse ( ) ) ; for ( ; c < k ; c ++ ) if ( f ( h [ c ] ) ) return h [ c ] ; return null } , isContextFor : function ( a ) { var d ; return a in CKEDITOR . dtd . $block ? ( d = this . contains ( CKEDITOR . dtd . $intermediate ) || this . root . equals ( this . block ) && this . block || this . blockLimit , ! ! d . getDtd ( ) [ a ] ) : ! 0 } , direction : function ( ) { return ( this . block || this . blockLimit || this . root ) . getDirection ( 1 ) } } ;
CKEDITOR . dom . text = function ( a , d ) { "string" == typeof a && ( a = ( d ? d . $ : document ) . createTextNode ( a ) ) ; this . $ = a } ; CKEDITOR . dom . text . prototype = new CKEDITOR . dom . node ;
CKEDITOR . tools . extend ( CKEDITOR . dom . text . prototype , { type : CKEDITOR . NODE _TEXT , getLength : function ( ) { return this . $ . nodeValue . length } , getText : function ( ) { return this . $ . nodeValue } , setText : function ( a ) { this . $ . nodeValue = a } , isEmpty : function ( a ) { var d = this . getText ( ) ; a && ( d = CKEDITOR . tools . trim ( d ) ) ; return ! d || d === CKEDITOR . dom . selection . FILLING _CHAR _SEQUENCE } , split : function ( a ) { var d = this . $ . parentNode , b = d . childNodes . length , c = this . getLength ( ) , f = this . getDocument ( ) , h = new CKEDITOR . dom . text ( this . $ . splitText ( a ) , f ) ; d . childNodes . length ==
b && ( a >= c ? ( h = f . createText ( "" ) , h . insertAfter ( this ) ) : ( a = f . createText ( "" ) , a . insertAfter ( h ) , a . remove ( ) ) ) ; return h } , substring : function ( a , d ) { return "number" != typeof d ? this . $ . nodeValue . substr ( a ) : this . $ . nodeValue . substring ( a , d ) } } ) ;
( function ( ) { function a ( a , c , d ) { var h = a . serializable , k = c [ d ? "endContainer" : "startContainer" ] , g = d ? "endOffset" : "startOffset" , l = h ? c . document . getById ( a . startNode ) : a . startNode ; a = h ? c . document . getById ( a . endNode ) : a . endNode ; k . equals ( l . getPrevious ( ) ) ? ( c . startOffset = c . startOffset - k . getLength ( ) - a . getPrevious ( ) . getLength ( ) , k = a . getNext ( ) ) : k . equals ( a . getPrevious ( ) ) && ( c . startOffset -= k . getLength ( ) , k = a . getNext ( ) ) ; k . equals ( l . getParent ( ) ) && c [ g ] ++ ; k . equals ( a . getParent ( ) ) && c [ g ] ++ ; c [ d ? "endContainer" : "startContainer" ] = k ; return c }
CKEDITOR . dom . rangeList = function ( a ) { if ( a instanceof CKEDITOR . dom . rangeList ) return a ; a ? a instanceof CKEDITOR . dom . range && ( a = [ a ] ) : a = [ ] ; return CKEDITOR . tools . extend ( a , d ) } ; var d = { createIterator : function ( ) { var a = this , c = CKEDITOR . dom . walker . bookmark ( ) , d = [ ] , h ; return { getNextRange : function ( k ) { h = void 0 === h ? 0 : h + 1 ; var g = a [ h ] ; if ( g && 1 < a . length ) { if ( ! h ) for ( var l = a . length - 1 ; 0 <= l ; l -- ) d . unshift ( a [ l ] . createBookmark ( ! 0 ) ) ; if ( k ) for ( var u = 0 ; a [ h + u + 1 ] ; ) { var e = g . document ; k = 0 ; l = e . getById ( d [ u ] . endNode ) ; for ( e = e . getById ( d [ u + 1 ] . startNode ) ; ; ) { l =
l . getNextSourceNode ( ! 1 ) ; if ( e . equals ( l ) ) k = 1 ; else if ( c ( l ) || l . type == CKEDITOR . NODE _ELEMENT && l . isBlockBoundary ( ) ) continue ; break } if ( ! k ) break ; u ++ } for ( g . moveToBookmark ( d . shift ( ) ) ; u -- ; ) l = a [ ++ h ] , l . moveToBookmark ( d . shift ( ) ) , g . setEnd ( l . endContainer , l . endOffset ) } return g } } } , createBookmarks : function ( b ) { for ( var c = [ ] , d , h = 0 ; h < this . length ; h ++ ) { c . push ( d = this [ h ] . createBookmark ( b , ! 0 ) ) ; for ( var k = h + 1 ; k < this . length ; k ++ ) this [ k ] = a ( d , this [ k ] ) , this [ k ] = a ( d , this [ k ] , ! 0 ) } return c } , createBookmarks2 : function ( a ) { for ( var c = [ ] , d = 0 ; d <
CKEDITOR . dom . rangeList = function ( a ) { if ( a instanceof CKEDITOR . dom . rangeList ) return a ; a ? a instanceof CKEDITOR . dom . range && ( a = [ a ] ) : a = [ ] ; return CKEDITOR . tools . extend ( a , d ) } ; var d = { createIterator : function ( ) { var a = this , c = CKEDITOR . dom . walker . bookmark ( ) , d = [ ] , h ; return { getNextRange : function ( k ) { h = void 0 === h ? 0 : h + 1 ; var g = a [ h ] ; if ( g && 1 < a . length ) { if ( ! h ) for ( var l = a . length - 1 ; 0 <= l ; l -- ) d . unshift ( a [ l ] . createBookmark ( ! 0 ) ) ; if ( k ) for ( var v = 0 ; a [ h + v + 1 ] ; ) { var e = g . document ; k = 0 ; l = e . getById ( d [ v ] . endNode ) ; for ( e = e . getById ( d [ v + 1 ] . startNode ) ; ; ) { l =
l . getNextSourceNode ( ! 1 ) ; if ( e . equals ( l ) ) k = 1 ; else if ( c ( l ) || l . type == CKEDITOR . NODE _ELEMENT && l . isBlockBoundary ( ) ) continue ; break } if ( ! k ) break ; v ++ } for ( g . moveToBookmark ( d . shift ( ) ) ; v -- ; ) l = a [ ++ h ] , l . moveToBookmark ( d . shift ( ) ) , g . setEnd ( l . endContainer , l . endOffset ) } return g } } } , createBookmarks : function ( b ) { for ( var c = [ ] , d , h = 0 ; h < this . length ; h ++ ) { c . push ( d = this [ h ] . createBookmark ( b , ! 0 ) ) ; for ( var k = h + 1 ; k < this . length ; k ++ ) this [ k ] = a ( d , this [ k ] ) , this [ k ] = a ( d , this [ k ] , ! 0 ) } return c } , createBookmarks2 : function ( a ) { for ( var c = [ ] , d = 0 ; d <
this . length ; d ++ ) c . push ( this [ d ] . createBookmark2 ( a ) ) ; return c } , moveToBookmarks : function ( a ) { for ( var c = 0 ; c < this . length ; c ++ ) this [ c ] . moveToBookmark ( a [ c ] ) } } } ) ( ) ;
( function ( ) { function a ( ) { return CKEDITOR . getUrl ( CKEDITOR . skinName . split ( "," ) [ 1 ] || "skins/" + CKEDITOR . skinName . split ( "," ) [ 0 ] + "/" ) } function d ( b ) { var c = CKEDITOR . skin [ "ua_" + b ] , d = CKEDITOR . env ; if ( c ) for ( var c = c . split ( "," ) . sort ( function ( a , b ) { return a > b ? - 1 : 1 } ) , f = 0 , g ; f < c . length ; f ++ ) if ( g = c [ f ] , d . ie && ( g . replace ( /^ie/ , "" ) == d . version || d . quirks && "iequirks" == g ) && ( g = "ie" ) , d [ g ] ) { b += "_" + c [ f ] ; break } return CKEDITOR . getUrl ( a ( ) + b + ".css" ) } function b ( a , b ) { h [ a ] || ( CKEDITOR . document . appendStyleSheet ( d ( a ) ) , h [ a ] = 1 ) ; b && b ( ) } function c ( a ) { var b =
a . getById ( k ) ; b || ( b = a . getHead ( ) . append ( "style" ) , b . setAttribute ( "id" , k ) , b . setAttribute ( "type" , "text/css" ) ) ; return b } function f ( a , b , c ) { var d , f , g ; if ( CKEDITOR . env . webkit ) for ( b = b . split ( "}" ) . slice ( 0 , - 1 ) , f = 0 ; f < b . length ; f ++ ) b [ f ] = b [ f ] . split ( "{" ) ; for ( var h = 0 ; h < a . length ; h ++ ) if ( CKEDITOR . env . webkit ) for ( f = 0 ; f < b . length ; f ++ ) { g = b [ f ] [ 1 ] ; for ( d = 0 ; d < c . length ; d ++ ) g = g . replace ( c [ d ] [ 0 ] , c [ d ] [ 1 ] ) ; a [ h ] . $ . sheet . addRule ( b [ f ] [ 0 ] , g ) } else { g = b ; for ( d = 0 ; d < c . length ; d ++ ) g = g . replace ( c [ d ] [ 0 ] , c [ d ] [ 1 ] ) ; CKEDITOR . env . ie && 11 > CKEDITOR . env . version ?
@@ -590,60 +592,60 @@ d.$.close();for(b=0;b<c.length;b++)c[b].enable()}var a=this._,d=CKEDITOR.documen
CKEDITOR . tools . removeFunction ( m ) } ) ) ; CKEDITOR . env . gecko ? setTimeout ( b , 500 ) : b ( ) } , getValue : function ( ) { return this . getInputElement ( ) . $ . value || "" } , setInitValue : function ( ) { this . _ . initValue = "" } , eventProcessors : { onChange : function ( b , a ) { 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" , a ) } } , 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" , r ) ; CKEDITOR . dialog . addUIElement ( "password" , r ) ; CKEDITOR . dialog . addUIElement ( "tel" , r ) ; CKEDITOR . dialog . addUIElement ( "textarea" , n ) ; CKEDITOR . dialog . addUIElement ( "checkbox" , n ) ; CKEDITOR . dialog . addUIElement ( "radio" , n ) ; CKEDITOR . dialog . addUIElement ( "button" , n ) ; CKEDITOR . dialog . addUIElement ( "select" , n ) ; CKEDITOR . dialog . addUIElement ( "file" , n ) ; CKEDITOR . dialog . addUIElement ( "fileButton" ,
n ) ; CKEDITOR . dialog . addUIElement ( "html" , n ) ; CKEDITOR . dialog . addUIElement ( "fieldset" , { build : function ( b , a , d ) { for ( var f = a . children , c , e = [ ] , h = [ ] , g = 0 ; g < f . length && ( c = f [ g ] ) ; g ++ ) { var k = [ ] ; e . push ( k ) ; h . push ( CKEDITOR . dialog . _ . uiElementBuilders [ c . type ] . build ( b , c , k ) ) } return new CKEDITOR . ui . dialog [ a . type ] ( b , h , e , d , a ) } } ) } } ) ; 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 z ( a ) { a . _ . tabBarMode = ! 0 ; a . _ . tabs [ a . _ . currentTabId ] [ 0 ] . focus ( ) ; a . _ . currentFocusIndex = - 1 } function A ( ) { for ( var a = this . _ . tabIdList . length , b = CKEDITOR . tools . indexOf ( this . _ . tabIdList , this . _ . currentTabId ) + a , c = b - 1 ; c > b - a ; c -- ) if ( this . _ . tabs [ this . _ . tabIdList [ c % a ] ] [ 0 ] . $ . offsetHeight ) return this . _ . tabIdList [ c % a ] ; return null } function V ( ) { for ( var a = this . _ . tabIdList . length , b = CKEDITOR . tools . indexOf ( this . _ . tabIdList , this . _ . currentTabId ) , c = b + 1 ; c < b + a ; c ++ ) if ( this . _ . tabs [ this . _ . tabIdList [ c % a ] ] [ 0 ] . $ . offsetHeight ) return this . _ . tabIdList [ c %
a ] ; return null } function K ( a , b ) { for ( var c = a . $ . getElementsByTagName ( "input" ) , e = 0 , d = c . length ; e < d ; e ++ ) { var f = new CKEDITOR . dom . element ( c [ e ] ) ; "text" == f . getAttribute ( "type" ) . toLowerCase ( ) && ( b ? ( f . setAttribute ( "value" , f . getCustomData ( "fake_value" ) || "" ) , f . removeCustomData ( "fake_value" ) ) : ( f . setCustomData ( "fake_value" , f . getAttribute ( "value" ) ) , f . setAttribute ( "value" , "" ) ) ) } } function W ( a , b ) { var c = this . getInputElement ( ) ; c && ( a ? c . removeAttribute ( "aria-invalid" ) : c . setAttribute ( "aria-invalid" , ! 0 ) ) ; a || ( this . select ? this . select ( ) :
this . focus ( ) ) ; b && alert ( b ) ; this . fire ( "validated" , { valid : a , msg : b } ) } function X ( ) { var a = this . getInputElement ( ) ; a && a . removeAttribute ( "aria-invalid" ) } function Y ( a ) { var b = CKEDITOR . dom . element . createFromHtml ( CKEDITOR . addTemplate ( "dialog" , Z ) . 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" : "" } ) ) , c = b . getChild ( [ 0 , 0 , 0 , 0 , 0 ] ) , e = c . getChild ( 0 ) ,
d = c . getChild ( 1 ) ; a . plugins . clipboard && CKEDITOR . plugins . clipboard . preventDefaultDropOnElement ( c ) ; ! 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 ( c . getParent ( ) ) ) ; e . unselectable ( ) ; d . unselectable ( ) ; return { element : b ,
parts : { dialog : b . getChild ( 0 ) , title : e , close : d , tabs : c . getChild ( 2 ) , contents : c . getChild ( [ 3 , 0 , 0 , 0 ] ) , footer : c . getChild ( [ 3 , 0 , 1 , 0 ] ) } } } function L ( a , b , c ) { this . element = b ; this . focusIndex = c ; this . tabIndex = 0 ; this . isFocusable = function ( ) { return ! b . getAttribute ( "disabled" ) && b . isVisible ( ) } ; this . focus = function ( ) { a . _ . currentFocusIndex = this . focusIndex ; this . element . focus ( ) } ; b . on ( "keydown" , function ( a ) { a . data . getKeystroke ( ) in { 32 : 1 , 13 : 1 } && this . fire ( "click" ) } ) ; b . on ( "focus" , function ( ) { this . fire ( "mouseover" ) } ) ; b . on ( "blur" , function ( ) { this . fire ( "mouseout" ) } ) }
function aa ( a ) { function b ( ) { a . layout ( ) } var c = CKEDITOR . document . getWindow ( ) ; c . on ( "resize" , b ) ; a . on ( "hide" , function ( ) { c . removeListener ( "resize" , b ) } ) } function M ( a , b ) { this . dialog = a ; for ( var c = b . contents , e = 0 , d ; d = c [ e ] ; e ++ ) c [ e ] = d && new N ( a , d ) ; CKEDITOR . tools . extend ( this , b ) } function N ( a , b ) { this . _ = { dialog : a } ; CKEDITOR . tools . extend ( this , b ) } function ba ( a ) { function b ( b ) { var c = a . getSize ( ) , k = a . parts . dialog . getParent ( ) . getClientSize ( ) , q = b . data . $ . screenX , l = b . data . $ . screenY , r = q - e . x , n = l - e . y ; e = { x : q , y : l } ; d . x += r ; d . y += n ; q =
d . x + h [ 3 ] < g ? - h [ 3 ] : d . x - h [ 1 ] > k . width - c . width - g ? k . width - c . width + ( "rtl" == f . lang . dir ? 0 : h [ 1 ] ) : d . x ; c = d . y + h [ 0 ] < g ? - h [ 0 ] : d . y - h [ 2 ] > k . height - c . height - g ? k . height - c . height + h [ 2 ] : d . y ; q = Math . floor ( q ) ; c = Math . floor ( c ) ; a . move ( q , c , 1 ) ; b . data . preventDefault ( ) } function c ( ) { CKEDITOR . document . removeListener ( "mousemove" , b ) ; CKEDITOR . document . removeListener ( "mouseup" , c ) ; if ( CKEDITOR . env . ie6Compat ) { var a = u . getChild ( 0 ) . getFrameDocument ( ) ; a . removeListener ( "mousemove" , b ) ; a . removeListener ( "mouseup" , c ) } } var e = null , d = null , f = a . getParentEditor ( ) ,
g = f . config . dialog _magnetDistance , h = CKEDITOR . skin . margins || [ 0 , 0 , 0 , 0 ] ; "undefined" == typeof g && ( g = 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 ( ) } e = { x : g . data . $ . screenX , y : g . data . $ . screenY } ; CKEDITOR . document . on ( "mousemove" , b ) ; CKEDITOR . document . on ( "mouseup" , c ) ; d = a . getPosition ( ) ; CKEDITOR . env . ie6Compat && ( f = u . getChild ( 0 ) . getFrameDocument ( ) , f . on ( "mousemove" , b ) , f . on ( "mouseup" , c ) ) ; g . data . preventDefault ( ) } ,
a ) } function ca ( a ) { function b ( b ) { var c = "rtl" == f . lang . dir , q = k . width , l = k . height , w = q + ( b . data . $ . screenX - m . x ) * ( c ? - 1 : 1 ) * ( a . _ . moved ? 1 : 2 ) , C = l + ( b . data . $ . screenY - m . y ) * ( a . _ . moved ? 1 : 2 ) , E = a . _ . element . getFirst ( ) , E = c && parseInt ( E . getComputedStyle ( "right" ) , 10 ) , v = a . getPosition ( ) ; v . x = v . x || 0 ; v . y = v . y || 0 ; v . y + C > p . height && ( C = p . height - v . y ) ; ( c ? E : v . x ) + w > p . width && ( w = p . width - ( c ? E : v . x ) ) ; C = Math . floor ( C ) ; w = Math . floor ( w ) ; if ( d == CKEDITOR . DIALOG _RESIZE _WIDTH || d == CKEDITOR . DIALOG _RESIZE _BOTH ) q = Math . max ( e . minWidth || 0 , w - g ) ; if ( d == CKEDITOR . DIALOG _RESIZE _HEIGHT ||
d == CKEDITOR . DIALOG _RESIZE _BOTH ) l = Math . max ( e . minHeight || 0 , C - h ) ; a . resize ( q , l ) ; a . _ . moved && O ( a , a . _ . position . x , a . _ . position . y ) ; a . _ . moved || a . layout ( ) ; b . data . preventDefault ( ) } function c ( ) { CKEDITOR . document . removeListener ( "mouseup" , c ) ; CKEDITOR . document . removeListener ( "mousemove" , b ) ; q && ( q . remove ( ) , q = null ) ; if ( CKEDITOR . env . ie6Compat ) { var a = u . getChild ( 0 ) . getFrameDocument ( ) ; a . removeListener ( "mouseup" , c ) ; a . removeListener ( "mousemove" , b ) } } var e = a . definition , d = e . resizable ; if ( d != CKEDITOR . DIALOG _RESIZE _NONE ) { var f =
a . getParentEditor ( ) , g , h , p , m , k , q , l = CKEDITOR . tools . addFunction ( function ( d ) { function e ( a ) { return a . isVisible ( ) } k = a . getSize ( ) ; var f = a . parts . contents , l = f . $ . getElementsByTagName ( "iframe" ) . length , w = ! ( CKEDITOR . env . gecko || CKEDITOR . env . ie && CKEDITOR . env . quirks ) ; l && ( q = 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' ) , f . append ( q ) ) ; h = k . height - a . parts . contents . getFirst ( e ) . getSize ( "height" , w ) ;
g = k . width - a . parts . contents . getFirst ( e ) . getSize ( "width" , 1 ) ; m = { x : d . screenX , y : d . screenY } ; p = CKEDITOR . document . getWindow ( ) . getViewPaneSize ( ) ; CKEDITOR . document . on ( "mousemove" , b ) ; CKEDITOR . document . on ( "mouseup" , c ) ; CKEDITOR . env . ie6Compat && ( f = u . getChild ( 0 ) . getFrameDocument ( ) , f . on ( "mousemove" , b ) , f . on ( "mouseup" , c ) ) ; d . preventDefault && d . preventDefault ( ) } ) ; a . on ( "load" , function ( ) { var b = "" ; d == CKEDITOR . DIALOG _RESIZE _WIDTH ? b = " cke_resizer_horizontal" : d == CKEDITOR . DIALOG _RESIZE _HEIGHT && ( b = " cke_resizer_vertical" ) ; b = CKEDITOR . dom . element . createFromHtml ( '\x3cdiv class\x3d"cke_resizer' +
b + " cke_resizer_" + f . lang . dir + '" title\x3d"' + CKEDITOR . tools . htmlEncode ( f . lang . common . resize ) + '" onmousedown\x3d"CKEDITOR.tools.callFunction(' + l + ', event )"\x3e' + ( "ltr" == f . lang . dir ? "◢" : "◣" ) + "\x3c/div\x3e" ) ; a . parts . footer . append ( b , 1 ) } ) ; f . on ( "destroy" , function ( ) { CKEDITOR . tools . removeFunction ( l ) } ) } } function O ( a , b , c ) { var e = a . parts . dialog . getParent ( ) . getClientSize ( ) , d = a . getSize ( ) , f = a . _ . viewportRatio , g = Math . max ( e . width - d . width , 0 ) , e = Math . max ( e . height - d . height , 0 ) ; f . width = g ? b / g : f . width ; f . height = e ? c / e : f . height ;
a . _ . viewportRatio = f } function J ( a ) { a . data . preventDefault ( 1 ) } function P ( a ) { var b = a . config , c = CKEDITOR . skinName || a . config . skin , e = b . dialog _backgroundCoverColor || ( "moono-lisa" == c ? "black" : "white" ) , c = b . dialog _backgroundCoverOpacity , d = b . baseFloatZIndex , b = CKEDITOR . tools . genKey ( e , c , d ) , f = D [ b ] ; CKEDITOR . document . getBody ( ) . addClass ( "cke_dialog_open" ) ; f ? f . show ( ) : ( d = [ '\x3cdiv tabIndex\x3d"-1" style\x3d"position: ' , CKEDITOR . env . ie6Compat ? "absolute" : "fixed" , "; z-index: " , d , "; top: 0px; left: 0px; " , "; width: 100%; height: 100%;" ,
CKEDITOR . env . ie6Compat ? "" : "background-color: " + e , '" class\x3d"cke_dialog_background_cover"\x3e' ] , CKEDITOR . env . ie6Compat && ( e = "\x3chtml\x3e\x3cbody style\x3d\\'background-color:" + e + ";\\'\x3e\x3c/body\x3e\x3c/html\x3e" , d . push ( '\x3ciframe hidefocus\x3d"true" frameborder\x3d"0" id\x3d"cke_dialog_background_iframe" src\x3d"javascript:' ) , d . push ( "void((function(){" + encodeURIComponent ( "document.open();(" + CKEDITOR . tools . fixDomain + ")();document.write( '" + e + "' );document.close();" ) + "})())" ) , d . push ( '" style\x3d"position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity\x3d0)"\x3e\x3c/iframe\x3e' ) ) ,
d . push ( "\x3c/div\x3e" ) , f = CKEDITOR . dom . element . createFromHtml ( d . join ( "" ) ) , f . setOpacity ( void 0 !== c ? c : . 5 ) , f . on ( "keydown" , J ) , f . on ( "keypress" , J ) , f . on ( "keyup" , J ) , f . appendTo ( CKEDITOR . document . getBody ( ) ) , D [ b ] = f ) ; a . focusManager . add ( f ) ; u = f ; CKEDITOR . env . mac && CKEDITOR . env . webkit || f . focus ( ) } function Q ( a ) { CKEDITOR . document . getBody ( ) . removeClass ( "cke_dialog_open" ) ; u && ( a . focusManager . remove ( u ) , u . hide ( ) ) } function R ( a ) { var b = a . data . $ . ctrlKey || a . data . $ . metaKey , c = a . data . $ . altKey , e = a . data . $ . shiftKey , d = String . fromCharCode ( a . data . $ . keyCode ) ;
( b = x [ ( b ? "CTRL+" : "" ) + ( c ? "ALT+" : "" ) + ( e ? "SHIFT+" : "" ) + d ] ) && b . length && ( b = b [ b . length - 1 ] , b . keydown && b . keydown . call ( b . uiElement , b . dialog , b . key ) , a . data . preventDefault ( ) ) } function S ( a ) { var b = a . data . $ . ctrlKey || a . data . $ . metaKey , c = a . data . $ . altKey , e = a . data . $ . shiftKey , d = String . fromCharCode ( a . data . $ . keyCode ) ; ( b = x [ ( b ? "CTRL+" : "" ) + ( c ? "ALT+" : "" ) + ( e ? "SHIFT+" : "" ) + d ] ) && b . length && ( b = b [ b . length - 1 ] , b . keyup && ( b . keyup . call ( b . uiElement , b . dialog , b . key ) , a . data . preventDefault ( ) ) ) } function T ( a , b , c , e , d ) { ( x [ c ] || ( x [ c ] = [ ] ) ) . push ( { uiElement : a ,
dialog : b , key : c , keyup : d || a . accessKeyUp , keydown : e || a . accessKeyDown } ) } function da ( a ) { for ( var b in x ) { for ( var c = x [ b ] , e = c . length - 1 ; 0 <= e ; e -- ) c [ e ] . dialog != a && c [ e ] . uiElement != a || c . splice ( e , 1 ) ; 0 === c . length && delete x [ b ] } } function ea ( a , b ) { a . _ . accessKeyMap [ b ] && a . selectPage ( a . _ . accessKeyMap [ b ] ) } function fa ( ) { } var y = CKEDITOR . tools . cssLength , U , u , F = ! CKEDITOR . env . ie || CKEDITOR . env . edge , Z = '\x3cdiv class\x3d"cke_reset_all cke_dialog_container {editorId} {editorDialogClass} {hidpi}" dir\x3d"{langDir}" style\x3d"' + ( F ?
"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"' + ( F ? "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' ;
( function ( ) { function I ( a ) { a . _ . tabBarMode = ! 0 ; a . _ . tabs [ a . _ . currentTabId ] [ 0 ] . focus ( ) ; a . _ . currentFocusIndex = - 1 } function J ( ) { for ( var a = this . _ . tabIdList . length , b = CKEDITOR . tools . indexOf ( this . _ . tabIdList , this . _ . currentTabId ) + a , c = b - 1 ; c > b - a ; c -- ) if ( this . _ . tabs [ this . _ . tabIdList [ c % a ] ] [ 0 ] . $ . offsetHeight ) return this . _ . tabIdList [ c % a ] ; return null } function W ( ) { for ( var a = this . _ . tabIdList . length , b = CKEDITOR . tools . indexOf ( this . _ . tabIdList , this . _ . currentTabId ) , c = b + 1 ; c < b + a ; c ++ ) if ( this . _ . tabs [ this . _ . tabIdList [ c % a ] ] [ 0 ] . $ . offsetHeight ) return this . _ . tabIdList [ c %
a ] ; return null } function K ( a , b ) { for ( var c = a . $ . getElementsByTagName ( "input" ) , e = 0 , d = c . length ; e < d ; e ++ ) { var f = new CKEDITOR . dom . element ( c [ e ] ) ; "text" == f . getAttribute ( "type" ) . toLowerCase ( ) && ( b ? ( f . setAttribute ( "value" , f . getCustomData ( "fake_value" ) || "" ) , f . removeCustomData ( "fake_value" ) ) : ( f . setCustomData ( "fake_value" , f . getAttribute ( "value" ) ) , f . setAttribute ( "value" , "" ) ) ) } } function X ( a , b ) { var c = this . getInputElement ( ) ; c && ( a ? c . removeAttribute ( "aria-invalid" ) : c . setAttribute ( "aria-invalid" , ! 0 ) ) ; a || ( this . select ? this . select ( ) :
this . focus ( ) ) ; b && alert ( b ) ; this . fire ( "validated" , { valid : a , msg : b } ) } function Y ( ) { var a = this . getInputElement ( ) ; a && a . removeAttribute ( "aria-invalid" ) } function Z ( a ) { var b = CKEDITOR . dom . element . createFromHtml ( CKEDITOR . addTemplate ( "dialog" , aa ) . 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" : "" } ) ) , c = b . getChild ( [ 0 , 0 , 0 , 0 , 0 ] ) , e =
c . getChild ( 0 ) , d = c . getChild ( 1 ) ; a . plugins . clipboard && CKEDITOR . plugins . clipboard . preventDefaultDropOnElement ( c ) ; ! 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 ( c . getParent ( ) ) ) ; e . unselectable ( ) ; d . unselectable ( ) ;
return { element : b , parts : { dialog : b . getChild ( 0 ) , title : e , close : d , tabs : c . getChild ( 2 ) , contents : c . getChild ( [ 3 , 0 , 0 , 0 ] ) , footer : c . getChild ( [ 3 , 0 , 1 , 0 ] ) } } } function L ( a , b , c ) { this . element = b ; this . focusIndex = c ; this . tabIndex = 0 ; this . isFocusable = function ( ) { return ! b . getAttribute ( "disabled" ) && b . isVisible ( ) } ; this . focus = function ( ) { a . _ . currentFocusIndex = this . focusIndex ; this . element . focus ( ) } ; b . on ( "keydown" , function ( a ) { a . data . getKeystroke ( ) in { 32 : 1 , 13 : 1 } && this . fire ( "click" ) } ) ; b . on ( "focus" , function ( ) { this . fire ( "mouseover" ) } ) ;
b . on ( "blur" , function ( ) { this . fire ( "mouseout" ) } ) } function ba ( a ) { function b ( ) { a . layout ( ) } var c = CKEDITOR . document . getWindow ( ) ; c . on ( "resize" , b ) ; a . on ( "hide" , function ( ) { c . removeListener ( "resize" , b ) } ) } function M ( a , b ) { this . dialog = a ; for ( var c = b . contents , e = 0 , d ; d = c [ e ] ; e ++ ) c [ e ] = d && new N ( a , d ) ; CKEDITOR . tools . extend ( this , b ) } function N ( a , b ) { this . _ = { dialog : a } ; CKEDITOR . tools . extend ( this , b ) } function ca ( a ) { function b ( b ) { var c = a . getSize ( ) , k = a . parts . dialog . getParent ( ) . getClientSize ( ) , q = b . data . $ . screenX , l = b . data . $ . screenY ,
r = q - e . x , n = l - e . y ; e = { x : q , y : l } ; d . x += r ; d . y += n ; q = d . x + h [ 3 ] < g ? - h [ 3 ] : d . x - h [ 1 ] > k . width - c . width - g ? k . width - c . width + ( "rtl" == f . lang . dir ? 0 : h [ 1 ] ) : d . x ; c = d . y + h [ 0 ] < g ? - h [ 0 ] : d . y - h [ 2 ] > k . height - c . height - g ? k . height - c . height + h [ 2 ] : d . y ; q = Math . floor ( q ) ; c = Math . floor ( c ) ; a . move ( q , c , 1 ) ; b . data . preventDefault ( ) } function c ( ) { CKEDITOR . document . removeListener ( "mousemove" , b ) ; CKEDITOR . document . removeListener ( "mouseup" , c ) ; if ( CKEDITOR . env . ie6Compat ) { var a = u . getChild ( 0 ) . getFrameDocument ( ) ; a . removeListener ( "mousemove" , b ) ; a . removeListener ( "mouseup" ,
c ) } } var e = null , d = null , f = a . getParentEditor ( ) , g = f . config . dialog _magnetDistance , h = CKEDITOR . skin . margins || [ 0 , 0 , 0 , 0 ] ; "undefined" == typeof g && ( g = 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 ( ) } e = { x : g . data . $ . screenX , y : g . data . $ . screenY } ; CKEDITOR . document . on ( "mousemove" , b ) ; CKEDITOR . document . on ( "mouseup" , c ) ; d = a . getPosition ( ) ; CKEDITOR . env . ie6Compat && ( f = u . getChild ( 0 ) . getFrameDocument ( ) , f . on ( "mousemove" ,
b ) , f . on ( "mouseup" , c ) ) ; g . data . preventDefault ( ) } , a ) } function da ( a ) { function b ( b ) { var c = "rtl" == f . lang . dir , q = k . width , l = k . height , w = q + ( b . data . $ . screenX - m . x ) * ( c ? - 1 : 1 ) * ( a . _ . moved ? 1 : 2 ) , A = l + ( b . data . $ . screenY - m . y ) * ( a . _ . moved ? 1 : 2 ) , C = a . _ . element . getFirst ( ) , C = c && parseInt ( C . getComputedStyle ( "right" ) , 10 ) , v = a . getPosition ( ) ; v . x = v . x || 0 ; v . y = v . y || 0 ; v . y + A > p . height && ( A = p . height - v . y ) ; ( c ? C : v . x ) + w > p . width && ( w = p . width - ( c ? C : v . x ) ) ; A = Math . floor ( A ) ; w = Math . floor ( w ) ; if ( d == CKEDITOR . DIALOG _RESIZE _WIDTH || d == CKEDITOR . DIALOG _RESIZE _BOTH ) q =
Math . max ( e . minWidth || 0 , w - g ) ; if ( d == CKEDITOR . DIALOG _RESIZE _HEIGHT || d == CKEDITOR . DIALOG _RESIZE _BOTH ) l = Math . max ( e . minHeight || 0 , A - h ) ; a . resize ( q , l ) ; a . _ . moved && O ( a , a . _ . position . x , a . _ . position . y ) ; a . _ . moved || a . layout ( ) ; b . data . preventDefault ( ) } function c ( ) { CKEDITOR . document . removeListener ( "mouseup" , c ) ; CKEDITOR . document . removeListener ( "mousemove" , b ) ; q && ( q . remove ( ) , q = null ) ; if ( CKEDITOR . env . ie6Compat ) { var a = u . getChild ( 0 ) . getFrameDocument ( ) ; a . removeListener ( "mouseup" , c ) ; a . removeListener ( "mousemove" , b ) } } var e = a . definition ,
d = e . resizable ; if ( d != CKEDITOR . DIALOG _RESIZE _NONE ) { var f = a . getParentEditor ( ) , g , h , p , m , k , q , l = CKEDITOR . tools . addFunction ( function ( d ) { function e ( a ) { return a . isVisible ( ) } k = a . getSize ( ) ; var f = a . parts . contents , l = f . $ . getElementsByTagName ( "iframe" ) . length , w = ! ( CKEDITOR . env . gecko || CKEDITOR . env . ie && CKEDITOR . env . quirks ) ; l && ( q = 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' ) , f . append ( q ) ) ; h = k . height -
a . parts . contents . getFirst ( e ) . getSize ( "height" , w ) ; g = k . width - a . parts . contents . getFirst ( e ) . getSize ( "width" , 1 ) ; m = { x : d . screenX , y : d . screenY } ; p = CKEDITOR . document . getWindow ( ) . getViewPaneSize ( ) ; CKEDITOR . document . on ( "mousemove" , b ) ; CKEDITOR . document . on ( "mouseup" , c ) ; CKEDITOR . env . ie6Compat && ( f = u . getChild ( 0 ) . getFrameDocument ( ) , f . on ( "mousemove" , b ) , f . on ( "mouseup" , c ) ) ; d . preventDefault && d . preventDefault ( ) } ) ; a . on ( "load" , function ( ) { var b = "" ; d == CKEDITOR . DIALOG _RESIZE _WIDTH ? b = " cke_resizer_horizontal" : d == CKEDITOR . DIALOG _RESIZE _HEIGHT &&
( b = " cke_resizer_vertical" ) ; b = CKEDITOR . dom . element . createFromHtml ( '\x3cdiv class\x3d"cke_resizer' + b + " cke_resizer_" + f . lang . dir + '" title\x3d"' + CKEDITOR . tools . htmlEncode ( f . lang . common . resize ) + '" onmousedown\x3d"CKEDITOR.tools.callFunction(' + l + ', event )"\x3e' + ( "ltr" == f . lang . dir ? "◢" : "◣" ) + "\x3c/div\x3e" ) ; a . parts . footer . append ( b , 1 ) } ) ; f . on ( "destroy" , function ( ) { CKEDITOR . tools . removeFunction ( l ) } ) } } function O ( a , b , c ) { var e = a . parts . dialog . getParent ( ) . getClientSize ( ) , d = a . getSize ( ) , f = a . _ . viewportRatio , g = Math . max ( e . width -
d . width , 0 ) , e = Math . max ( e . height - d . height , 0 ) ; f . width = g ? b / g : f . width ; f . height = e ? c / e : f . height ; a . _ . viewportRatio = f } function H ( a ) { a . data . preventDefault ( 1 ) } function P ( a ) { var b = a . config , c = CKEDITOR . skinName || a . config . skin , e = b . dialog _backgroundCoverColor || ( "moono-lisa" == c ? "black" : "white" ) , c = b . dialog _backgroundCoverOpacity , d = b . baseFloatZIndex , b = CKEDITOR . tools . genKey ( e , c , d ) , f = B [ b ] ; CKEDITOR . document . getBody ( ) . addClass ( "cke_dialog_open" ) ; f ? f . show ( ) : ( d = [ '\x3cdiv tabIndex\x3d"-1" style\x3d"position: ' , CKEDITOR . env . ie6Compat ?
"absolute" : "fixed" , "; z-index: " , d , "; top: 0px; left: 0px; " , "; width: 100%; height: 100%;" , CKEDITOR . env . ie6Compat ? "" : "background-color: " + e , '" class\x3d"cke_dialog_background_cover"\x3e' ] , CKEDITOR . env . ie6Compat && ( e = "\x3chtml\x3e\x3cbody style\x3d\\'background-color:" + e + ";\\'\x3e\x3c/body\x3e\x3c/html\x3e" , d . push ( '\x3ciframe hidefocus\x3d"true" frameborder\x3d"0" id\x3d"cke_dialog_background_iframe" src\x3d"javascript:' ) , d . push ( "void((function(){" + encodeURIComponent ( "document.open();(" + CKEDITOR . tools . fixDomain +
")();document.write( '" + e + "' );document.close();" ) + "})())" ) , d . push ( '" style\x3d"position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity\x3d0)"\x3e\x3c/iframe\x3e' ) ) , d . push ( "\x3c/div\x3e" ) , f = CKEDITOR . dom . element . createFromHtml ( d . join ( "" ) ) , f . setOpacity ( void 0 !== c ? c : . 5 ) , f . on ( "keydown" , H ) , f . on ( "keypress" , H ) , f . on ( "keyup" , H ) , f . appendTo ( CKEDITOR . document . getBody ( ) ) , B [ b ] = f ) ; a . focusManager . add ( f ) ; u = f ; CKEDITOR . env . mac && CKEDITOR . env . webkit || f . focus ( ) } function Q ( a ) { CKEDITOR . document . getBody ( ) . removeClass ( "cke_dialog_open" ) ;
u && ( a . focusManager . remove ( u ) , u . hide ( ) ) } function R ( a ) { var b = a . data . $ . ctrlKey || a . data . $ . metaKey , c = a . data . $ . altKey , e = a . data . $ . shiftKey , d = String . fromCharCode ( a . data . $ . keyCode ) ; ( b = x [ ( b ? "CTRL+" : "" ) + ( c ? "ALT+" : "" ) + ( e ? "SHIFT+" : "" ) + d ] ) && b . length && ( b = b [ b . length - 1 ] , b . keydown && b . keydown . call ( b . uiElement , b . dialog , b . key ) , a . data . preventDefault ( ) ) } function S ( a ) { var b = a . data . $ . ctrlKey || a . data . $ . metaKey , c = a . data . $ . altKey , e = a . data . $ . shiftKey , d = String . fromCharCode ( a . data . $ . keyCode ) ; ( b = x [ ( b ? "CTRL+" : "" ) + ( c ? "ALT+" : "" ) + ( e ?
"SHIFT+" : "" ) + d ] ) && b . length && ( b = b [ b . length - 1 ] , b . keyup && ( b . keyup . call ( b . uiElement , b . dialog , b . key ) , a . data . preventDefault ( ) ) ) } function T ( a , b , c , e , d ) { ( x [ c ] || ( x [ c ] = [ ] ) ) . push ( { uiElement : a , dialog : b , key : c , keyup : d || a . accessKeyUp , keydown : e || a . accessKeyDown } ) } function ea ( a ) { for ( var b in x ) { for ( var c = x [ b ] , e = c . length - 1 ; 0 <= e ; e -- ) c [ e ] . dialog != a && c [ e ] . uiElement != a || c . splice ( e , 1 ) ; 0 === c . length && delete x [ b ] } } function fa ( a , b ) { a . _ . accessKeyMap [ b ] && a . selectPage ( a . _ . accessKeyMap [ b ] ) } function ga ( ) { } var y = CKEDITOR . tools . cssLength ,
U , u , V = ! 1 , D = ! CKEDITOR . env . ie || CKEDITOR . env . edge , aa = '\x3cdiv class\x3d"cke_reset_all cke_dialog_container {editorId} {editorDialogClass} {hidpi}" dir\x3d"{langDir}" style\x3d"' + ( D ? "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"' + ( D ? "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 , b ) { function c ( ) { var a = n . _ . focusList ; a . sort ( function ( a , b ) { return a . tabIndex != b . tabIndex ? b . tabIndex - a . tabIndex : a . focusIndex - b . focusIndex } ) ; for ( var b = a . length , c = 0 ; c < b ; c ++ ) a [ c ] . focusIndex = c } function e ( a ) { var b = n . _ . focusList ; a = a || 0 ; if ( ! ( 1 > b . length ) ) { var c = n . _ . currentFocusIndex ; n . _ . tabBarMode && 0 > a && ( c = 0 ) ; try { b [ c ] . getInputElement ( ) . $ . blur ( ) } catch ( d ) { } var e = c , g = 1 < n . _ . pageCount ; do { e += a ; if ( g && ! n . _ . tabBarMode && ( e == b . length || - 1 == e ) ) { n . _ . tabBarMode = ! 0 ; n . _ . tabs [ n . _ . currentTabId ] [ 0 ] . focus ( ) ;
n . _ . currentFocusIndex = - 1 ; return } e = ( e + b . length ) % b . length ; if ( e == c ) break } while ( a && ! b [ e ] . isFocusable ( ) ) ; b [ e ] . focus ( ) ; "text" == b [ e ] . type && b [ e ] . select ( ) } } function d ( b ) { if ( n == CKEDITOR . dialog . _ . currentTop ) { var c = b . data . getKeystroke ( ) , d = "rtl" == a . lang . dir , g = [ 37 , 38 , 39 , 40 ] ; q = l = 0 ; if ( 9 == c || c == CKEDITOR . SHIFT + 9 ) e ( c == CKEDITOR . SHIFT + 9 ? - 1 : 1 ) , q = 1 ; else if ( c == CKEDITOR . ALT + 121 && ! n . _ . tabBarMode && 1 < n . getPageCount ( ) ) z ( n ) , q = 1 ; else if ( - 1 != CKEDITOR . tools . indexOf ( g , c ) && n . _ . tabBarMode ) c = - 1 != CKEDITOR . tools . indexOf ( [ d ? 39 : 37 , 38 ] , c ) ?
A . call ( n ) : V . call ( n ) , n . selectPage ( c ) , n . _ . tabs [ c ] [ 0 ] . focus ( ) , q = 1 ; else if ( 13 != c && 32 != c || ! n . _ . tabBarMode ) if ( 13 == c ) c = b . data . getTarget ( ) , c . is ( "a" , "button" , "select" , "textarea" ) || c . is ( "input" ) && "button" == c . $ . type || ( ( c = this . getButton ( "ok" ) ) && CKEDITOR . tools . setTimeout ( c . click , 0 , c ) , q = 1 ) , l = 1 ; else if ( 27 == c ) ( c = this . getButton ( "cancel" ) ) ? CKEDITOR . tools . setTimeout ( c . click , 0 , c ) : ! 1 !== this . fire ( "cancel" , { hide : ! 0 } ) . hide && this . hide ( ) , l = 1 ; else return ; else this . selectPage ( this . _ . currentTabId ) , this . _ . tabBarMode = ! 1 , this . _ . currentFocusIndex =
- 1 , e ( 1 ) , q = 1 ; f ( b ) } } function f ( a ) { q ? a . data . preventDefault ( 1 ) : l && a . data . stopPropagation ( ) } var g = CKEDITOR . dialog . _ . dialogDefinitions [ b ] , h = CKEDITOR . tools . clone ( U ) , p = a . config . dialog _buttonsOrder || "OS" , m = a . lang . dir , k = { } , q , l ; ( "OS" == p && CKEDITOR . env . mac || "rtl" == p && "ltr" == m || "ltr" == p && "rtl" == m ) && h . buttons . reverse ( ) ; g = CKEDITOR . tools . extend ( g ( a ) , h ) ; g = CKEDITOR . tools . clone ( g ) ; g = new M ( this , g ) ; h = Y ( a ) ; this . _ = { editor : a , element : h . element , name : b , model : null , contentSize : { width : 0 , height : 0 } , size : { width : 0 , height : 0 } , contents : { } ,
n . _ . currentFocusIndex = - 1 ; return } e = ( e + b . length ) % b . length ; if ( e == c ) break } while ( a && ! b [ e ] . isFocusable ( ) ) ; b [ e ] . focus ( ) ; "text" == b [ e ] . type && b [ e ] . select ( ) } } function d ( b ) { if ( n == CKEDITOR . dialog . _ . currentTop ) { var c = b . data . getKeystroke ( ) , d = "rtl" == a . lang . dir , g = [ 37 , 38 , 39 , 40 ] ; q = l = 0 ; if ( 9 == c || c == CKEDITOR . SHIFT + 9 ) e ( c == CKEDITOR . SHIFT + 9 ? - 1 : 1 ) , q = 1 ; else if ( c == CKEDITOR . ALT + 121 && ! n . _ . tabBarMode && 1 < n . getPageCount ( ) ) I ( n ) , q = 1 ; else if ( - 1 != CKEDITOR . tools . indexOf ( g , c ) && n . _ . tabBarMode ) c = - 1 != CKEDITOR . tools . indexOf ( [ d ? 39 : 37 , 38 ] , c ) ?
J . call ( n ) : W . call ( n ) , n . selectPage ( c ) , n . _ . tabs [ c ] [ 0 ] . focus ( ) , q = 1 ; else if ( 13 != c && 32 != c || ! n . _ . tabBarMode ) if ( 13 == c ) c = b . data . getTarget ( ) , c . is ( "a" , "button" , "select" , "textarea" ) || c . is ( "input" ) && "button" == c . $ . type || ( ( c = this . getButton ( "ok" ) ) && CKEDITOR . tools . setTimeout ( c . click , 0 , c ) , q = 1 ) , l = 1 ; else if ( 27 == c ) ( c = this . getButton ( "cancel" ) ) ? CKEDITOR . tools . setTimeout ( c . click , 0 , c ) : ! 1 !== this . fire ( "cancel" , { hide : ! 0 } ) . hide && this . hide ( ) , l = 1 ; else return ; else this . selectPage ( this . _ . currentTabId ) , this . _ . tabBarMode = ! 1 , this . _ . currentFocusIndex =
- 1 , e ( 1 ) , q = 1 ; f ( b ) } } function f ( a ) { q ? a . data . preventDefault ( 1 ) : l && a . data . stopPropagation ( ) } var g = CKEDITOR . dialog . _ . dialogDefinitions [ b ] , h = CKEDITOR . tools . clone ( U ) , p = a . config . dialog _buttonsOrder || "OS" , m = a . lang . dir , k = { } , q , l ; ( "OS" == p && CKEDITOR . env . mac || "rtl" == p && "ltr" == m || "ltr" == p && "rtl" == m ) && h . buttons . reverse ( ) ; g = CKEDITOR . tools . extend ( g ( a ) , h ) ; g = CKEDITOR . tools . clone ( g ) ; g = new M ( this , g ) ; h = Z ( a ) ; this . _ = { editor : a , element : h . element , name : b , 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 = h . parts ; CKEDITOR . tools . setTimeout ( function ( ) { a . fire ( "ariaWidget" , this . parts . contents ) } , 0 , this ) ; h = { top : 0 , visibility : "hidden" } ; CKEDITOR . env . ie6Compat && ( h . position = "absolute" ) ; h [ "rtl" == m ? "right" : "left" ] = 0 ; this . parts . dialog . setStyles ( h ) ; CKEDITOR . event . call ( this ) ; this . definition = g = CKEDITOR . fire ( "dialogDefinition" ,
{ name : b , definition : g , dialog : this } , a ) . definition ; if ( ! ( "removeDialogTabs" in a . _ ) && a . config . removeDialogTabs ) { h = a . config . removeDialogTabs . split ( ";" ) ; for ( m = 0 ; m < h . length ; m ++ ) if ( p = h [ m ] . split ( ":" ) , 2 == p . length ) { var r = p [ 0 ] ; k [ r ] || ( k [ r ] = [ ] ) ; k [ r ] . push ( p [ 1 ] ) } a . _ . removeDialogTabs = k } if ( a . _ . removeDialogTabs && ( k = a . _ . removeDialogTabs [ b ] ) ) for ( m = 0 ; m < k . length ; m ++ ) g . removeContents ( k [ m ] ) ; if ( g . onLoad ) this . on ( "load" , g . onLoad ) ; if ( g . onShow ) this . on ( "show" , g . onShow ) ; if ( g . onHide ) this . on ( "hide" , g . onHide ) ; if ( g . onOk ) this . on ( "ok" ,
function ( b ) { a . fire ( "saveSnapshot" ) ; setTimeout ( function ( ) { a . fire ( "saveSnapshot" ) } , 0 ) ; ! 1 === g . onOk . call ( this , b ) && ( b . data . hide = ! 1 ) } ) ; this . state = CKEDITOR . DIALOG _STATE _IDLE ; if ( g . onCancel ) this . on ( "cancel" , function ( a ) { ! 1 === g . onCancel . call ( this , a ) && ( a . data . hide = ! 1 ) } ) ; var n = this , t = function ( a ) { var b = n . _ . contents , c = ! 1 , d ; for ( d in b ) for ( var e in b [ d ] ) if ( c = a . call ( this , b [ d ] [ e ] ) ) return } ; this . on ( "ok" , function ( a ) { t ( function ( b ) { if ( b . validate ) { var c = b . validate ( this ) , d = "string" == typeof c || ! 1 === c ; d && ( a . data . hide = ! 1 , a . stop ( ) ) ;
W . call ( b , ! d , "string" == typeof c ? c : void 0 ) ; return d } } ) } , this , null , 0 ) ; this . on ( "cancel" , function ( b ) { t ( function ( c ) { if ( c . isChanged ( ) ) return a . config . dialog _noConfirmCancel || confirm ( a . lang . common . confirmCancel ) || ( b . 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 = e ; var B = this . _ . element ; a . focusManager . add ( B , 1 ) ; this . on ( "show" , function ( ) { B . on ( "keydown" , d , this ) ; if ( CKEDITOR . env . gecko ) B . on ( "keypress" ,
f , this ) } ) ; this . on ( "hide" , function ( ) { B . removeListener ( "keydown" , d ) ; CKEDITOR . env . gecko && B . removeListener ( "keypress" , f ) ; t ( function ( a ) { X . apply ( a ) } ) } ) ; this . on ( "iframeAdded" , function ( a ) { ( new CKEDITOR . dom . document ( a . data . iframe . $ . contentWindow . document ) ) . on ( "keydown" , d , this , null , 0 ) } ) ; this . on ( "show" , function ( ) { c ( ) ; var b = 1 < n . _ . pageCount ; a . config . dialog _startupFocusTab && b ? ( n . _ . tabBarMode = ! 0 , n . _ . tabs [ n . _ . currentTabId ] [ 0 ] . focus ( ) , n . _ . currentFocusIndex = - 1 ) : this . _ . hasFocus || ( this . _ . currentFocusIndex = b ? - 1 : this . _ . focusList . length -
1 , g . onFocus ? ( b = g . onFocus . call ( this ) ) && b . focus ( ) : e ( 1 ) ) } , this , null , 4294967295 ) ; if ( CKEDITOR . env . ie6Compat ) this . on ( "load" , function ( ) { var a = this . getElement ( ) , b = a . getFirst ( ) ; b . remove ( ) ; b . appendTo ( a ) } , this ) ; ba ( this ) ; ca ( this ) ; ( new CKEDITOR . dom . text ( g . title , CKEDITOR . document ) ) . appendTo ( this . parts . title ) ; for ( m = 0 ; m < g . contents . length ; m ++ ) ( k = g . contents [ m ] ) && this . addPage ( k ) ; this . parts . tabs . on ( "click" , function ( a ) { var b = a . data . getTarget ( ) ; b . hasClass ( "cke_dialog_tab" ) && ( b = b . $ . id , this . selectPage ( b . substring ( 4 , b . lastIndexOf ( "_" ) ) ) ,
z ( this ) , a . data . preventDefault ( ) ) } , this ) ; m = [ ] ; k = CKEDITOR . dialog . _ . uiElementBuilders . hbox . build ( this , { type : "hbox" , className : "cke_dialog_footer_buttons" , widths : [ ] , children : g . buttons } , m ) . getChild ( ) ; this . parts . footer . setHtml ( m . join ( "" ) ) ; for ( m = 0 ; m < k . length ; m ++ ) this . _ . buttons [ k [ m ] . id ] = k [ m ] } ; CKEDITOR . dialog . prototype = { destroy : function ( ) { this . hide ( ) ; this . _ . element . remove ( ) } , resize : function ( a , b ) { if ( ! this . _ . contentSize || this . _ . contentSize . width != a || this . _ . contentSize . height != b ) { CKEDITOR . dialog . fire ( "resize" ,
X . call ( b , ! d , "string" == typeof c ? c : void 0 ) ; return d } } ) } , this , null , 0 ) ; this . on ( "cancel" , function ( b ) { t ( function ( c ) { if ( c . isChanged ( ) ) return a . config . dialog _noConfirmCancel || confirm ( a . lang . common . confirmCancel ) || ( b . 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 = e ; var z = this . _ . element ; a . focusManager . add ( z , 1 ) ; this . on ( "show" , function ( ) { z . on ( "keydown" , d , this ) ; if ( CKEDITOR . env . gecko ) z . on ( "keypress" ,
f , this ) } ) ; this . on ( "hide" , function ( ) { z . removeListener ( "keydown" , d ) ; CKEDITOR . env . gecko && z . removeListener ( "keypress" , f ) ; t ( function ( a ) { Y . apply ( a ) } ) } ) ; this . on ( "iframeAdded" , function ( a ) { ( new CKEDITOR . dom . document ( a . data . iframe . $ . contentWindow . document ) ) . on ( "keydown" , d , this , null , 0 ) } ) ; this . on ( "show" , function ( ) { c ( ) ; var b = 1 < n . _ . pageCount ; a . config . dialog _startupFocusTab && b ? ( n . _ . tabBarMode = ! 0 , n . _ . tabs [ n . _ . currentTabId ] [ 0 ] . focus ( ) , n . _ . currentFocusIndex = - 1 ) : this . _ . hasFocus || ( this . _ . currentFocusIndex = b ? - 1 : this . _ . focusList . length -
1 , g . onFocus ? ( b = g . onFocus . call ( this ) ) && b . focus ( ) : e ( 1 ) ) } , this , null , 4294967295 ) ; if ( CKEDITOR . env . ie6Compat ) this . on ( "load" , function ( ) { var a = this . getElement ( ) , b = a . getFirst ( ) ; b . remove ( ) ; b . appendTo ( a ) } , this ) ; ca ( this ) ; da ( this ) ; ( new CKEDITOR . dom . text ( g . title , CKEDITOR . document ) ) . appendTo ( this . parts . title ) ; for ( m = 0 ; m < g . contents . length ; m ++ ) ( k = g . contents [ m ] ) && this . addPage ( k ) ; this . parts . tabs . on ( "click" , function ( a ) { var b = a . data . getTarget ( ) ; b . hasClass ( "cke_dialog_tab" ) && ( b = b . $ . id , this . selectPage ( b . substring ( 4 , b . lastIndexOf ( "_" ) ) ) ,
I ( this ) , a . data . preventDefault ( ) ) } , this ) ; m = [ ] ; k = CKEDITOR . dialog . _ . uiElementBuilders . hbox . build ( this , { type : "hbox" , className : "cke_dialog_footer_buttons" , widths : [ ] , children : g . buttons } , m ) . getChild ( ) ; this . parts . footer . setHtml ( m . join ( "" ) ) ; for ( m = 0 ; m < k . length ; m ++ ) this . _ . buttons [ k [ m ] . id ] = k [ m ] } ; CKEDITOR . dialog . prototype = { destroy : function ( ) { this . hide ( ) ; this . _ . element . remove ( ) } , resize : function ( a , b ) { if ( ! this . _ . contentSize || this . _ . contentSize . width != a || this . _ . contentSize . height != b ) { CKEDITOR . dialog . fire ( "resize" ,
{ dialog : this , width : a , height : b } , this . _ . editor ) ; this . fire ( "resize" , { width : a , height : b } , this . _ . editor ) ; this . parts . contents . setStyles ( { width : a + "px" , height : b + "px" } ) ; if ( "rtl" == this . _ . editor . lang . dir && this . _ . position ) { var c = this . parts . dialog . getParent ( ) . getClientSize ( ) . width ; this . _ . position . x = c - this . _ . contentSize . width - parseInt ( this . _ . element . getFirst ( ) . getStyle ( "right" ) , 10 ) } this . _ . contentSize = { width : a , height : b } } } , getSize : function ( ) { var a = this . _ . element . getFirst ( ) ; return { width : a . $ . offsetWidth || 0 , height : a . $ . offsetHeight ||
0 } } , move : function ( a , b , c ) { var e = this . _ . element . getFirst ( ) , d = "rtl" == this . _ . editor . lang . dir ; CKEDITOR . env . ie && e . setStyle ( "zoom" , "100%" ) ; var f = this . parts . dialog . getParent ( ) . getClientSize ( ) , g = this . getSize ( ) , h = this . _ . viewportRatio , p = Math . max ( f . width - g . width , 0 ) , f = Math . max ( f . height - g . height , 0 ) ; this . _ . position && this . _ . position . x == a && this . _ . position . y == b ? ( a = Math . floor ( p * h . width ) , b = Math . floor ( f * h . height ) ) : O ( this , a , b ) ; this . _ . position = { x : a , y : b } ; d && ( a = p - a ) ; b = { top : ( 0 < b ? b : 0 ) + "px" } ; b [ d ? "right" : "left" ] = ( 0 < a ? a : 0 ) + "px" ;
e . setStyles ( b ) ; c && ( this . _ . moved = 1 ) } , getPosition : function ( ) { return CKEDITOR . tools . extend ( { } , this . _ . position ) } , show : function ( ) { var a = this . _ . element , b = this . definition , c = CKEDITOR . document . getBody ( ) , e = this . _ . editor . config . baseFloatZIndex ; a . getParent ( ) && a . getParent ( ) . equals ( c ) ? a . setStyle ( "display" , F ? "flex" : "block" ) : a . appendTo ( c ) ; this . resize ( this . _ . contentSize && this . _ . contentSize . width || b . width || b . minWidth , this . _ . contentSize && this . _ . contentSize . height || b . height || b . minHeight ) ; this . reset ( ) ; null === this . _ . currentTabId &&
e . setStyles ( b ) ; c && ( this . _ . moved = 1 ) } , getPosition : function ( ) { return CKEDITOR . tools . extend ( { } , this . _ . position ) } , show : function ( ) { var a = this . _ . element , b = this . definition , c = CKEDITOR . document . getBody ( ) , e = this . _ . editor . config . baseFloatZIndex ; a . getParent ( ) && a . getParent ( ) . equals ( c ) ? a . setStyle ( "display" , D ? "flex" : "block" ) : a . appendTo ( c ) ; this . resize ( this . _ . contentSize && this . _ . contentSize . width || b . width || b . minWidth , this . _ . contentSize && this . _ . contentSize . height || b . height || b . minHeight ) ; this . reset ( ) ; null === this . _ . currentTabId &&
this . selectPage ( this . definition . contents [ 0 ] . id ) ; null === CKEDITOR . dialog . _ . currentZIndex && ( CKEDITOR . dialog . _ . currentZIndex = 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 , c = this . _ . parentDialog . getElement ( ) . getFirst ( ) , c . $ . style . zIndex -=
Math . floor ( e / 2 ) , this . _ . parentDialog . getElement ( ) . setStyle ( "z-index" , c . $ . style . zIndex ) , CKEDITOR . dialog . _ . currentTop = this ) ; a . on ( "keydown" , R ) ; a . on ( "keyup" , S ) ; this . _ . hasFocus = ! 1 ; for ( var d in b . contents ) if ( b . contents [ d ] ) { var a = b . contents [ d ] , e = this . _ . tabs [ a . id ] , c = a . requiredContent , f = 0 ; if ( e ) { for ( var g in this . _ . contents [ a . id ] ) { var h = this . _ . contents [ a . id ] [ g ] ; "hbox" != h . type && "vbox" != h . type && h . getInputElement ( ) && ( h . requiredContent && ! this . _ . editor . activeFilter . check ( h . requiredContent ) ? h . disable ( ) : ( h . enable ( ) ,
f ++ ) ) } ! f || c && ! this . _ . editor . activeFilter . check ( c ) ? e [ 0 ] . addClass ( "cke_dialog_tab_disabled" ) : e [ 0 ] . removeClass ( "cke_dialog_tab_disabled" ) } } CKEDITOR . tools . setTimeout ( function ( ) { this . layout ( ) ; aa ( 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 || ! F ) { var b = this . getSize ( ) , c = CKEDITOR . document . getWindow ( ) . getViewPaneSize ( ) , e ; this . _ . moved && this . _ . position ? ( e = this . _ . position . x , b = this . _ . position . y ) : ( e = ( c . width - b . width ) / 2 , b = ( c . height - b . height ) / 2 ) ; CKEDITOR . env . ie6Compat || ( a . setStyle ( "position" , "absolute" ) , a . removeStyle ( "margin" ) ) ; e = Math . floor ( e ) ; b = Math . floor ( b ) ; this . move ( e , b ) } } , foreach : function ( a ) { for ( var b in this . _ . contents ) for ( var c in this . _ . contents [ b ] ) a . call ( this , this . _ . contents [ b ] [ c ] ) ; return this } , reset : function ( ) { var a =
f ++ ) ) } ! f || c && ! this . _ . editor . activeFilter . check ( c ) ? e [ 0 ] . addClass ( "cke_dialog_tab_disabled" ) : e [ 0 ] . removeClass ( "cke_dialog_tab_disabled" ) } } CKEDITOR . tools . setTimeout ( function ( ) { this . layout ( ) ; ba ( 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 || ! D ) { var b = this . getSize ( ) , c = CKEDITOR . document . getWindow ( ) . getViewPaneSize ( ) , e ; this . _ . moved && this . _ . position ? ( e = this . _ . position . x , b = this . _ . position . y ) : ( e = ( c . width - b . width ) / 2 , b = ( c . height - b . height ) / 2 ) ; CKEDITOR . env . ie6Compat || ( a . setStyle ( "position" , "absolute" ) , a . removeStyle ( "margin" ) ) ; e = Math . floor ( e ) ; b = Math . floor ( b ) ; this . move ( e , b ) } } , foreach : function ( a ) { for ( var b in this . _ . contents ) for ( var c in this . _ . contents [ b ] ) a . call ( this , this . _ . contents [ b ] [ c ] ) ; return this } , reset : function ( ) { var a =
function ( a ) { a . reset && a . reset ( 1 ) } ; return function ( ) { this . foreach ( a ) ; return this } } ( ) , setupContent : function ( ) { var a = arguments ; this . foreach ( function ( b ) { b . setup && b . setup . apply ( b , a ) } ) } , commitContent : function ( ) { var a = arguments ; this . foreach ( function ( b ) { CKEDITOR . env . ie && this . _ . currentFocusIndex == b . focusIndex && b . getInputElement ( ) . $ . blur ( ) ; b . commit && b . commit . apply ( b , a ) } ) } , hide : function ( ) { if ( this . parts . dialog . isVisible ( ) ) { this . fire ( "hide" , { } ) ; this . _ . editor . fire ( "dialogHide" , this ) ; this . selectPage ( this . _ . tabIdList [ 0 ] ) ;
var a = this . _ . element ; a . setStyle ( "display" , "none" ) ; this . parts . dialog . setStyle ( "visibility" , "hidden" ) ; for ( da ( this ) ; CKEDITOR . dialog . _ . currentTop != this ; ) CKEDITOR . dialog . _ . currentTop . hide ( ) ; if ( this . _ . parentDialog ) { var b = this . _ . parentDialog . getElement ( ) . getFirst ( ) ; this . _ . parentDialog . getElement ( ) . removeStyle ( "z-index" ) ; b . setStyle ( "z-index" , parseInt ( b . $ . style . zIndex , 10 ) + Math . floor ( this . _ . editor . config . baseFloatZIndex / 2 ) ) } else Q ( this . _ . editor ) ; if ( CKEDITOR . dialog . _ . currentTop = this . _ . parentDialog ) CKEDITOR . dialog . _ . currentZIndex -=
var a = this . _ . element ; a . setStyle ( "display" , "none" ) ; this . parts . dialog . setStyle ( "visibility" , "hidden" ) ; for ( ea ( this ) ; CKEDITOR . dialog . _ . currentTop != this ; ) CKEDITOR . dialog . _ . currentTop . hide ( ) ; if ( this . _ . parentDialog ) { var b = this . _ . parentDialog . getElement ( ) . getFirst ( ) ; this . _ . parentDialog . getElement ( ) . removeStyle ( "z-index" ) ; b . setStyle ( "z-index" , parseInt ( b . $ . style . zIndex , 10 ) + Math . floor ( this . _ . editor . config . baseFloatZIndex / 2 ) ) } else Q ( this . _ . editor ) ; if ( CKEDITOR . dialog . _ . currentTop = this . _ . parentDialog ) CKEDITOR . dialog . _ . currentZIndex -=
10 ; else { CKEDITOR . dialog . _ . currentZIndex = null ; a . removeListener ( "keydown" , R ) ; a . removeListener ( "keyup" , S ) ; var c = this . _ . editor ; c . focus ( ) ; setTimeout ( function ( ) { c . focusManager . unlock ( ) ; CKEDITOR . env . iOS && c . window . focus ( ) } , 0 ) } delete this . _ . parentDialog ; this . foreach ( function ( a ) { a . resetInitValue && a . resetInitValue ( ) } ) ; this . setState ( CKEDITOR . DIALOG _STATE _IDLE ) } } , addPage : function ( a ) { if ( ! a . requiredContent || this . _ . editor . filter . check ( a . requiredContent ) ) { for ( var b = [ ] , c = a . label ? ' title\x3d"' + CKEDITOR . tools . htmlEncode ( a . label ) +
'"' : "" , e = CKEDITOR . dialog . _ . uiElementBuilders . vbox . build ( this , { type : "vbox" , className : "cke_dialog_page_contents" , children : a . elements , expand : ! ! a . expand , padding : a . padding , style : a . style || "width: 100%;" } , b ) , d = this . _ . contents [ a . id ] = { } , f = e . getChild ( ) , g = 0 ; e = f . shift ( ) ; ) e . notAllowed || "hbox" == e . type || "vbox" == e . type || g ++ , d [ e . id ] = e , "function" == typeof e . getChild && f . push . apply ( f , e . getChild ( ) ) ; g || ( a . hidden = ! 0 ) ; b = CKEDITOR . dom . element . createFromHtml ( b . join ( "" ) ) ; b . setAttribute ( "role" , "tabpanel" ) ; b . setStyle ( "min-height" ,
"100%" ) ; e = CKEDITOR . env ; d = "cke_" + a . id + "_" + CKEDITOR . tools . getNextNumber ( ) ; c = CKEDITOR . dom . element . createFromHtml ( [ '\x3ca class\x3d"cke_dialog_tab"' , 0 < this . _ . pageCount ? " cke_last" : "cke_first" , c , a . hidden ? ' style\x3d"display:none"' : "" , ' id\x3d"' , d , '"' , e . gecko && ! e . hc ? "" : ' href\x3d"javascript:void(0)"' , ' tabIndex\x3d"-1" hidefocus\x3d"true" role\x3d"tab"\x3e' , a . label , "\x3c/a\x3e" ] . join ( "" ) ) ; b . setAttribute ( "aria-labelledby" , d ) ; this . _ . tabs [ a . id ] = [ c , b ] ; this . _ . tabIdList . push ( a . id ) ; ! a . hidden && this . _ . pageCount ++ ;
this . _ . lastTab = c ; this . updateStyle ( ) ; b . setAttribute ( "name" , a . id ) ; b . appendTo ( this . parts . contents ) ; c . unselectable ( ) ; this . parts . tabs . append ( c ) ; a . accessKey && ( T ( this , this , "CTRL+" + a . accessKey , fa , ea ) , this . _ . accessKeyMap [ "CTRL+" + a . accessKey ] = a . id ) } } , selectPage : function ( a ) { if ( this . _ . currentTabId != a && ! this . _ . tabs [ a ] [ 0 ] . hasClass ( "cke_dialog_tab_disabled" ) && ! 1 !== this . fire ( "selectPage" , { page : a , currentPage : this . _ . currentTabId } ) ) { for ( var b in this . _ . tabs ) { var c = this . _ . tabs [ b ] [ 0 ] , e = this . _ . tabs [ b ] [ 1 ] ; b != a && ( c . removeClass ( "cke_dialog_tab_selected" ) ,
this . _ . lastTab = c ; this . updateStyle ( ) ; b . setAttribute ( "name" , a . id ) ; b . appendTo ( this . parts . contents ) ; c . unselectable ( ) ; this . parts . tabs . append ( c ) ; a . accessKey && ( T ( this , this , "CTRL+" + a . accessKey , ga , fa ) , this . _ . accessKeyMap [ "CTRL+" + a . accessKey ] = a . id ) } } , selectPage : function ( a ) { if ( this . _ . currentTabId != a && ! this . _ . tabs [ a ] [ 0 ] . hasClass ( "cke_dialog_tab_disabled" ) && ! 1 !== this . fire ( "selectPage" , { page : a , currentPage : this . _ . currentTabId } ) ) { for ( var b in this . _ . tabs ) { var c = this . _ . tabs [ b ] [ 0 ] , e = this . _ . tabs [ b ] [ 1 ] ; b != a && ( c . removeClass ( "cke_dialog_tab_selected" ) ,
c . removeAttribute ( "aria-selected" ) , e . hide ( ) ) ; e . setAttribute ( "aria-hidden" , b != a ) } var d = this . _ . tabs [ a ] ; d [ 0 ] . addClass ( "cke_dialog_tab_selected" ) ; d [ 0 ] . setAttribute ( "aria-selected" , ! 0 ) ; CKEDITOR . env . ie6Compat || CKEDITOR . env . ie7Compat ? ( K ( d [ 1 ] ) , d [ 1 ] . show ( ) , setTimeout ( function ( ) { K ( d [ 1 ] , 1 ) } , 0 ) ) : d [ 1 ] . show ( ) ; this . _ . currentTabId = a ; this . _ . currentTabIndex = CKEDITOR . tools . indexOf ( this . _ . tabIdList , a ) } } , updateStyle : function ( ) { this . parts . dialog [ ( 1 === this . _ . pageCount ? "add" : "remove" ) + "Class" ] ( "cke_single_page" ) } , hidePage : function ( a ) { var b =
this . _ . tabs [ a ] && this . _ . tabs [ a ] [ 0 ] ; b && 1 != this . _ . pageCount && b . isVisible ( ) && ( a == this . _ . currentTabId && this . selectPage ( A . call ( this ) ) , b . hide ( ) , this . _ . pageCount -- , this . updateStyle ( ) ) } , showPage : function ( a ) { if ( a = this . _ . tabs [ a ] && this . _ . tabs [ a ] [ 0 ] ) a . show ( ) , this . _ . pageCount ++ , this . updateStyle ( ) } , getElement : function ( ) { return this . _ . element } , getName : function ( ) { return this . _ . name } , getContentElement : function ( a , b ) { var c = this . _ . contents [ a ] ; return c && c [ b ] } , getValueOf : function ( a , b ) { return this . getContentElement ( a , b ) . getValue ( ) } ,
this . _ . tabs [ a ] && this . _ . tabs [ a ] [ 0 ] ; b && 1 != this . _ . pageCount && b . isVisible ( ) && ( a == this . _ . currentTabId && this . selectPage ( J . call ( this ) ) , b . hide ( ) , this . _ . pageCount -- , this . updateStyle ( ) ) } , showPage : function ( a ) { if ( a = this . _ . tabs [ a ] && this . _ . tabs [ a ] [ 0 ] ) a . show ( ) , this . _ . pageCount ++ , this . updateStyle ( ) } , getElement : function ( ) { return this . _ . element } , getName : function ( ) { return this . _ . name } , getContentElement : function ( a , b ) { var c = this . _ . contents [ a ] ; return c && c [ b ] } , getValueOf : function ( a , b ) { return this . getContentElement ( a , b ) . getValue ( ) } ,
setValueOf : function ( a , b , c ) { return this . getContentElement ( a , b ) . setValue ( c ) } , getButton : function ( a ) { return this . _ . buttons [ a ] } , click : function ( a ) { return this . _ . buttons [ a ] . click ( ) } , disableButton : function ( a ) { return this . _ . buttons [ a ] . disable ( ) } , enableButton : function ( a ) { return this . _ . buttons [ a ] . enable ( ) } , getPageCount : function ( ) { return this . _ . pageCount } , getParentEditor : function ( ) { return this . _ . editor } , getSelectedElement : function ( ) { return this . getParentEditor ( ) . getSelection ( ) . getSelectedElement ( ) } , addFocusable : function ( a ,
b ) { if ( "undefined" == typeof b ) b = this . _ . focusList . length , this . _ . focusList . push ( new L ( this , a , b ) ) ; else { this . _ . focusList . splice ( b , 0 , new L ( this , a , b ) ) ; for ( var c = b + 1 ; c < this . _ . focusList . length ; c ++ ) this . _ . focusList [ c ] . focusIndex ++ } } , setState : function ( a ) { if ( this . state != a ) { this . state = a ; if ( a == CKEDITOR . DIALOG _STATE _BUSY ) { if ( ! this . parts . spinner ) { var b = this . getParentEditor ( ) . lang . dir , c = { attributes : { "class" : "cke_dialog_spinner" } , styles : { "float" : "rtl" == b ? "right" : "left" } } ; c . styles [ "margin-" + ( "rtl" == b ? "left" : "right" ) ] =
"8px" ; this . parts . spinner = CKEDITOR . document . createElement ( "div" , c ) ; 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 , b ) { this . _ . dialogDefinitions [ a ] && "function" != typeof b || ( this . _ . dialogDefinitions [ a ] = b ) } , exists : function ( a ) { return ! ! this . _ . dialogDefinitions [ a ] } , getCurrent : function ( ) { return CKEDITOR . dialog . _ . currentTop } , isTabEnabled : function ( a , b , c ) { a = a . config . removeDialogTabs ; return ! ( a && a . match ( new RegExp ( "(?:^|;)" +
b + ":" + c + "(?:$|;)" , "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 ( b ) { return CKEDITOR . tools . extend ( function ( c ) { return a ( c , b ) } , { 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 ( b ) { return CKEDITOR . tools . extend ( function ( c ) { return a ( c , b ) } , { type : "button" } , ! 0 ) } ; return a } ( ) , addUIElement : function ( a , b ) { this . _ . uiElementBuilders [ a ] = b } } ) ; CKEDITOR . dialog . _ = { uiElementBuilders : { } , dialogDefinitions : { } , currentTop : null , currentZIndex : null } ; CKEDITOR . event . implementOn ( CKEDITOR . dialog ) ; CKEDITOR . event . implementOn ( CKEDITOR . dialog . prototype ) ;
U = { resizable : CKEDITOR . DIALOG _RESIZE _BOTH , minWidth : 600 , minHeight : 400 , buttons : [ CKEDITOR . dialog . okButton , CKEDITOR . dialog . cancelButton ] } ; var G = function ( a , b , c ) { for ( var e = 0 , d ; d = a [ e ] ; e ++ ) if ( d . id == b || c && d [ c ] && ( d = G ( d [ c ] , b , c ) ) ) return d ; return null } , H = function ( a , b , c , e , d ) { if ( c ) { for ( var f = 0 , g ; g = a [ f ] ; f ++ ) { if ( g . id == c ) return a . splice ( f , 0 , b ) , b ; if ( e && g [ e ] && ( g = H ( g [ e ] , b , c , e , ! 0 ) ) ) return g } if ( d ) return null } a . push ( b ) ; return b } , I = function ( a , b , c ) { for ( var e = 0 , d ; d = a [ e ] ; e ++ ) { if ( d . id == b ) return a . splice ( e , 1 ) ; if ( c && d [ c ] && ( d = I ( d [ c ] ,
b , c ) ) ) return d } return null } ; M . prototype = { getContents : function ( a ) { return G ( this . contents , a ) } , getButton : function ( a ) { return G ( this . buttons , a ) } , addContents : function ( a , b ) { return H ( this . contents , a , b ) } , addButton : function ( a , b ) { return H ( this . buttons , a , b ) } , removeContents : function ( a ) { I ( this . contents , a ) } , removeButton : function ( a ) { I ( this . buttons , a ) } } ; N . prototype = { get : function ( a ) { return G ( this . elements , a , "children" ) } , add : function ( a , b ) { return H ( this . elements , a , b , "children" ) } , remove : function ( a ) { I ( this . elements , a ,
"children" ) } } ; var D = { } , x = { } ; ( function ( ) { CKEDITOR . ui . dialog = { uiElement : function ( a , b , c , e , d , f , g ) { if ( ! ( 4 > arguments . length ) ) { var h = ( e . call ? e ( b ) : e ) || "div" , p = [ "\x3c" , h , " " ] , m = ( d && d . call ? d ( b ) : d ) || { } , k = ( f && f . call ? f ( b ) : f ) || { } , q = ( g && g . call ? g . call ( this , a , b ) : g ) || "" , l = this . domId = k . id || CKEDITOR . tools . getNextId ( ) + "_uiElement" ; b . requiredContent && ! a . getParentEditor ( ) . filter . check ( b . requiredContent ) && ( m . display = "none" , this . notAllowed = ! 0 ) ; k . id = l ; var r = { } ; b . type && ( r [ "cke_dialog_ui_" + b . type ] = 1 ) ; b . className && ( r [ b . className ] =
U = { resizable : CKEDITOR . DIALOG _RESIZE _BOTH , minWidth : 600 , minHeight : 400 , buttons : [ CKEDITOR . dialog . okButton , CKEDITOR . dialog . cancelButton ] } ; var E = function ( a , b , c ) { for ( var e = 0 , d ; d = a [ e ] ; e ++ ) if ( d . id == b || c && d [ c ] && ( d = E ( d [ c ] , b , c ) ) ) return d ; return null } , F = function ( a , b , c , e , d ) { if ( c ) { for ( var f = 0 , g ; g = a [ f ] ; f ++ ) { if ( g . id == c ) return a . splice ( f , 0 , b ) , b ; if ( e && g [ e ] && ( g = F ( g [ e ] , b , c , e , ! 0 ) ) ) return g } if ( d ) return null } a . push ( b ) ; return b } , G = function ( a , b , c ) { for ( var e = 0 , d ; d = a [ e ] ; e ++ ) { if ( d . id == b ) return a . splice ( e , 1 ) ; if ( c && d [ c ] && ( d = G ( d [ c ] ,
b , c ) ) ) return d } return null } ; M . prototype = { getContents : function ( a ) { return E ( this . contents , a ) } , getButton : function ( a ) { return E ( this . buttons , a ) } , addContents : function ( a , b ) { return F ( this . contents , a , b ) } , addButton : function ( a , b ) { return F ( this . buttons , a , b ) } , removeContents : function ( a ) { G ( this . contents , a ) } , removeButton : function ( a ) { G ( this . buttons , a ) } } ; N . prototype = { get : function ( a ) { return E ( this . elements , a , "children" ) } , add : function ( a , b ) { return F ( this . elements , a , b , "children" ) } , remove : function ( a ) { G ( this . elements , a ,
"children" ) } } ; var B = { } , x = { } ; ( function ( ) { CKEDITOR . ui . dialog = { uiElement : function ( a , b , c , e , d , f , g ) { if ( ! ( 4 > arguments . length ) ) { var h = ( e . call ? e ( b ) : e ) || "div" , p = [ "\x3c" , h , " " ] , m = ( d && d . call ? d ( b ) : d ) || { } , k = ( f && f . call ? f ( b ) : f ) || { } , q = ( g && g . call ? g . call ( this , a , b ) : g ) || "" , l = this . domId = k . id || CKEDITOR . tools . getNextId ( ) + "_uiElement" ; b . requiredContent && ! a . getParentEditor ( ) . filter . check ( b . requiredContent ) && ( m . display = "none" , this . notAllowed = ! 0 ) ; k . id = l ; var r = { } ; b . type && ( r [ "cke_dialog_ui_" + b . type ] = 1 ) ; b . className && ( r [ b . className ] =
1 ) ; b . disabled && ( r . cke _disabled = 1 ) ; for ( var n = k [ "class" ] && k [ "class" ] . split ? k [ "class" ] . split ( " " ) : [ ] , l = 0 ; l < n . length ; l ++ ) n [ l ] && ( r [ n [ l ] ] = 1 ) ; n = [ ] ; for ( l in r ) n . push ( l ) ; k [ "class" ] = n . join ( " " ) ; b . title && ( k . title = b . title ) ; r = ( b . style || "" ) . split ( ";" ) ; b . align && ( n = b . align , m [ "margin-left" ] = "left" == n ? 0 : "auto" , m [ "margin-right" ] = "right" == n ? 0 : "auto" ) ; for ( l in m ) r . push ( l + ":" + m [ l ] ) ; b . hidden && r . push ( "display:none" ) ; for ( l = r . length - 1 ; 0 <= l ; l -- ) "" === r [ l ] && r . splice ( l , 1 ) ; 0 < r . length && ( k . style = ( k . style ? k . style + "; " : "" ) + r . join ( "; " ) ) ;
for ( l in k ) p . push ( l + '\x3d"' + CKEDITOR . tools . htmlEncode ( k [ l ] ) + '" ' ) ; p . push ( "\x3e" , q , "\x3c/" , h , "\x3e" ) ; c . push ( p . join ( "" ) ) ; ( this . _ || ( this . _ = { } ) ) . dialog = a ; "boolean" == typeof b . isChanged && ( this . isChanged = function ( ) { return b . isChanged } ) ; "function" == typeof b . isChanged && ( this . isChanged = b . isChanged ) ; "function" == typeof b . setValue && ( this . setValue = CKEDITOR . tools . override ( this . setValue , function ( a ) { return function ( c ) { a . call ( this , b . setValue . call ( this , c ) ) } } ) ) ; "function" == typeof b . getValue && ( this . getValue = CKEDITOR . tools . override ( this . getValue ,
function ( a ) { return function ( ) { return b . getValue . call ( this , a . call ( this ) ) } } ) ) ; CKEDITOR . event . implementOn ( this ) ; this . registerEvents ( b ) ; this . accessKeyUp && this . accessKeyDown && b . accessKey && T ( this , a , "CTRL+" + b . accessKey ) ; var t = this ; a . on ( "load" , function ( ) { var b = t . getInputElement ( ) ; if ( b ) { var c = t . type in { checkbox : 1 , ratio : 1 } && CKEDITOR . env . ie && 8 > CKEDITOR . env . version ? "cke_dialog_ui_focused" : "" ; b . on ( "focus" , function ( ) { a . _ . tabBarMode = ! 1 ; a . _ . hasFocus = ! 0 ; t . fire ( "focus" ) ; c && this . addClass ( c ) } ) ; b . on ( "blur" , function ( ) { t . fire ( "blur" ) ;
@@ -659,9 +661,9 @@ this.getInputElement().setAttribute("disabled","true");a.addClass("cke_disabled"
h , g , e , c ) } } ; CKEDITOR . dialog . addUIElement ( "hbox" , a ) ; CKEDITOR . dialog . addUIElement ( "vbox" , a ) } ) ( ) ; CKEDITOR . dialogCommand = function ( a , b ) { this . dialogName = a ; CKEDITOR . tools . extend ( this , b , ! 0 ) } ; CKEDITOR . dialogCommand . prototype = { exec : function ( a ) { var b = this . tabId ; a . openDialog ( this . dialogName , function ( a ) { b && a . selectPage ( b ) } ) } , canUndo : ! 1 , editorFocus : 1 } ; ( function ( ) { var a = /^([a]|[^a])+$/ , b = /^\d*$/ , c = /^\d*(?:\.\d+)?$/ , e = /^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/ , d = /^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i ,
f = /^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/ ; CKEDITOR . VALIDATE _OR = 1 ; CKEDITOR . VALIDATE _AND = 2 ; CKEDITOR . dialog . validate = { functions : function ( ) { var a = arguments ; return function ( ) { var b = this && this . getValue ? this . getValue ( ) : a [ 0 ] , c , d = CKEDITOR . VALIDATE _AND , e = [ ] , f ; for ( f = 0 ; f < a . length ; f ++ ) if ( "function" == typeof a [ f ] ) e . push ( a [ f ] ) ; else break ; f < a . length && "string" == typeof a [ f ] && ( c = a [ f ] , f ++ ) ; f < a . length && "number" == typeof a [ f ] && ( d = a [ f ] ) ; var l = d == CKEDITOR . VALIDATE _AND ? ! 0 : ! 1 ; for ( f = 0 ; f < e . length ; f ++ ) l = d == CKEDITOR . VALIDATE _AND ? l &&
e [ f ] ( b ) : l || e [ f ] ( b ) ; return l ? ! 0 : c } } , regex : function ( a , b ) { return function ( c ) { c = this && this . getValue ? this . getValue ( ) : c ; return a . test ( c ) ? ! 0 : b } } , notEmpty : function ( b ) { return this . regex ( a , b ) } , integer : function ( a ) { return this . regex ( b , a ) } , number : function ( a ) { return this . regex ( c , a ) } , cssLength : function ( a ) { return this . functions ( function ( a ) { return d . test ( CKEDITOR . tools . trim ( a ) ) } , a ) } , htmlLength : function ( a ) { return this . functions ( function ( a ) { return e . test ( CKEDITOR . tools . trim ( a ) ) } , a ) } , inlineStyle : function ( a ) { return this . functions ( function ( a ) { return f . test ( CKEDITOR . tools . trim ( a ) ) } ,
a ) } , equals : function ( a , b ) { return this . functions ( function ( b ) { return b == a } , b ) } , notEqual : function ( a , b ) { return this . functions ( function ( b ) { return b != a } , b ) } } ; CKEDITOR . on ( "instanceDestroyed" , function ( a ) { if ( CKEDITOR . tools . isEmpty ( CKEDITOR . instances ) ) { for ( var b ; b = CKEDITOR . dialog . _ . currentTop ; ) b . hide ( ) ; for ( var c in D ) D [ c ] . remove ( ) ; D = { } } a = a . editor . _ . storedDialogs ; for ( var d in a ) a [ d ] . destroy ( ) } ) } ) ( ) ; CKEDITOR . tools . extend ( CKEDITOR . editor . prototype , { openDialog : function ( a , b , c ) { var e = null , d = CKEDITOR . dialog . _ . dialogDefinitions [ a ] ;
a ) } , equals : function ( a , b ) { return this . functions ( function ( b ) { return b == a } , b ) } , notEqual : function ( a , b ) { return this . functions ( function ( b ) { return b != a } , b ) } } ; CKEDITOR . on ( "instanceDestroyed" , function ( a ) { if ( CKEDITOR . tools . isEmpty ( CKEDITOR . instances ) ) { for ( var b ; b = CKEDITOR . dialog . _ . currentTop ; ) b . hide ( ) ; for ( var c in B ) B [ c ] . remove ( ) ; B = { } } a = a . editor . _ . storedDialogs ; for ( var d in a ) a [ d ] . destroy ( ) } ) } ) ( ) ; CKEDITOR . tools . extend ( CKEDITOR . editor . prototype , { openDialog : function ( a , b , c ) { var e = null , d = CKEDITOR . dialog . _ . dialogDefinitions [ a ] ;
null === CKEDITOR . dialog . _ . currentTop && P ( this ) ; if ( "function" == typeof d ) d = this . _ . storedDialogs || ( this . _ . storedDialogs = { } ) , e = d [ a ] || ( d [ a ] = new CKEDITOR . dialog ( this , a ) ) , e . setModel ( c ) , b && b . call ( e , e ) , e . show ( ) ; else { if ( "failed" == d ) throw Q ( this ) , Error ( '[CKEDITOR.dialog.openDialog] Dialog "' + a + '" failed when loading definition.' ) ; "string" == typeof d && CKEDITOR . scriptLoader . load ( CKEDITOR . getUrl ( d ) , function ( ) { "function" != typeof CKEDITOR . dialog . _ . dialogDefinitions [ a ] && ( CKEDITOR . dialog . _ . dialogDefinitions [ a ] = "failed" ) ;
this . openDialog ( a , b , c ) } , this , 0 , 1 ) } CKEDITOR . skin . loadPart ( "dialog" ) ; if ( e ) e . once ( "hide" , function ( ) { e . setModel ( null ) } , null , null , 999 ) ; return e } } ) } ) ( ) ; var stylesLoaded = ! 1 ; CKEDITOR . plugins . add ( "dialog" , { requires : "dialogui" , init : function ( z ) { stylesLoaded || ( CKEDITOR . document . appendStyleSheet ( this . path + "styles/dialog.css" ) , stylesLoaded = ! 0 ) ; z . on ( "doubleclick" , function ( A ) { A . data . dialog && z . openDialog ( A . data . dialog ) } , null , null , 999 ) } } ) ; CKEDITOR . plugins . add ( "about" , { requires : "dialog" , init : function ( a ) { var b = a . addCommand ( "about" , new CKEDITOR . dialogCommand ( "about" ) ) ; b . modes = { wysiwyg : 1 , source : 1 } ; b . canUndo = ! 1 ; b . readOnly = 1 ; a . ui . addButton && a . ui . addButton ( "About" , { label : a . lang . about . dlgTitle , command : "about" , toolbar : "about" } ) ; CKEDITOR . dialog . add ( "about" , this . path + "dialogs/about.js" ) } } ) ; ( function ( ) { CKEDITOR . plugins . add ( "a11yhelp" , { requires : "dialog" , availableLangs : { af : 1 , ar : 1 , 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 c = this ; b . addCommand ( "a11yHelp" , { exec : function ( ) { var a =
this . openDialog ( a , b , c ) } , this , 0 , 1 ) } CKEDITOR . skin . loadPart ( "dialog" ) ; if ( e ) e . once ( "hide" , function ( ) { e . setModel ( null ) } , null , null , 999 ) ; return e } } ) ; CKEDITOR . plugins . add ( "dialog" , { requires : "dialogui" , init : function ( a ) { V || ( CKEDITOR . document . appendStyleSheet ( this . path + "styles/dialog.css" ) , V = ! 0 ) ; a . on ( "doubleclick" , function ( b ) { b . data . dialog && a . openDialog ( b . data . dialog ) } , null , null , 999 ) } } ) } ) ( ) ; CKEDITOR . plugins . add ( "about" , { requires : "dialog" , init : function ( a ) { var b = a . addCommand ( "about" , new CKEDITOR . dialogCommand ( "about" ) ) ; b . modes = { wysiwyg : 1 , source : 1 } ; b . canUndo = ! 1 ; b . readOnly = 1 ; a . ui . addButton && a . ui . addButton ( "About" , { label : a . lang . about . dlgTitle , command : "about" , toolbar : "about" } ) ; CKEDITOR . dialog . add ( "about" , this . path + "dialogs/about.js" ) } } ) ; ( function ( ) { CKEDITOR . plugins . add ( "a11yhelp" , { requires : "dialog" , availableLangs : { af : 1 , ar : 1 , 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 c = this ; b . addCommand ( "a11yHelp" , { exec : function ( ) { var a =
b . langCode , a = c . availableLangs [ a ] ? a : c . availableLangs [ a . replace ( /-.*/ , "" ) ] ? a . replace ( /-.*/ , "" ) : "en" ; CKEDITOR . scriptLoader . load ( CKEDITOR . getUrl ( c . path + "dialogs/lang/" + a + ".js" ) , function ( ) { b . lang . a11yhelp = c . langEntries [ a ] ; 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 ( a ) { a . data . label = b . lang . common . editorHelp } ) } } ) } ) ( ) ; ( function ( ) { function f ( c ) { var a = this . att ; c = c && c . hasAttribute ( a ) && c . getAttribute ( a ) || "" ; void 0 !== c && this . setValue ( c ) } function g ( ) { for ( var c , a = 0 ; a < arguments . length ; a ++ ) if ( arguments [ a ] instanceof CKEDITOR . dom . element ) { c = arguments [ a ] ; break } if ( c ) { var a = this . att , b = this . getValue ( ) ; b ? c . setAttribute ( a , b ) : c . removeAttribute ( a , b ) } } var k = { id : 1 , dir : 1 , classes : 1 , styles : 1 } ; CKEDITOR . plugins . add ( "dialogadvtab" , { requires : "dialog" , allowedContent : function ( c ) { c || ( c = k ) ; var a = [ ] ; c . id && a . push ( "id" ) ; c . dir && a . push ( "dir" ) ; var b =
"" ; a . length && ( b += "[" + a . join ( "," ) + "]" ) ; c . classes && ( b += "(*)" ) ; c . styles && ( b += "{*}" ) ; return b } , createAdvancedTab : function ( c , a , b ) { a || ( a = k ) ; var d = c . lang . common , h = { id : "advanced" , label : d . advancedTab , title : d . advancedTab , elements : [ { type : "vbox" , padding : 1 , children : [ ] } ] } , e = [ ] ; if ( a . id || a . dir ) a . id && e . push ( { id : "advId" , att : "id" , type : "text" , requiredContent : b ? b + "[id]" : null , label : d . id , setup : f , commit : g } ) , a . dir && e . push ( { id : "advLangDir" , att : "dir" , type : "select" , requiredContent : b ? b + "[dir]" : null , label : d . langDir , "default" : "" ,
style : "width:100%" , items : [ [ d . notSet , "" ] , [ d . langDirLTR , "ltr" ] , [ d . langDirRTL , "rtl" ] ] , setup : f , commit : g } ) , h . elements [ 0 ] . children . push ( { type : "hbox" , widths : [ "50%" , "50%" ] , children : [ ] . concat ( e ) } ) ; if ( a . styles || a . classes ) e = [ ] , a . styles && e . push ( { id : "advStyles" , att : "style" , type : "text" , requiredContent : b ? b + "{cke-xyz}" : null , label : d . styles , "default" : "" , validate : CKEDITOR . dialog . validate . inlineStyle ( d . invalidInlineStyle ) , onChange : function ( ) { } , getStyle : function ( a , c ) { var b = this . getValue ( ) . match ( new RegExp ( "(?:^|;)\\s*" +
@@ -797,32 +799,32 @@ var a=k.getFirst(),f;(f=a.getCustomData("activePanel"))&&f.onHide&&f.onHide.call
l . markFirstDisplayed ( ) : l . _ . markFirstDisplayed ( ) } , 0 ) : l . markFirstDisplayed ? l . markFirstDisplayed ( ) : l . _ . 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 a = this . _ . showBlockParams ; this . visible && this . _ . showBlockParams && ( this . hide ( ) , this . showBlock . apply ( this , a ) ) } , focus : function ( ) { if ( CKEDITOR . env . webkit ) { var a = CKEDITOR . document . getActive ( ) ; a && ! a . equals ( this . _ . iframe ) && a . $ . blur ( ) } ( this . _ . lastFocused ||
this . _ . iframe . getFrameDocument ( ) . getWindow ( ) ) . focus ( ) } , blur : function ( ) { var a = this . _ . iframe . getFrameDocument ( ) . getActive ( ) ; a && a . is ( "a" ) && ( this . _ . lastFocused = a ) } , hide : function ( a ) { if ( this . visible && ( ! this . onHide || ! 0 !== this . onHide . call ( this ) ) ) { this . hideChild ( ) ; CKEDITOR . env . gecko && this . _ . iframe . getFrameDocument ( ) . $ . activeElement . blur ( ) ; this . element . setStyle ( "display" , "none" ) ; this . visible = 0 ; this . element . getFirst ( ) . removeCustomData ( "activePanel" ) ; if ( a = a && this . _ . returnFocus ) CKEDITOR . env . webkit && a . type && a . getWindow ( ) . $ . focus ( ) ,
a . focus ( ) ; delete this . _ . lastFocused ; this . _ . showBlockParams = null ; this . _ . editor . fire ( "panelHide" , this ) } } , allowBlur : function ( a ) { var b = this . _ . panel ; void 0 !== a && ( b . allowBlur = a ) ; return b . allowBlur } , showAsChild : function ( a , b , c , f , h , g ) { if ( this . _ . activeChild != a || a . _ . panel . _ . offsetParentId != c . getId ( ) ) this . hideChild ( ) , a . onHide = CKEDITOR . tools . bind ( function ( ) { CKEDITOR . tools . setTimeout ( function ( ) { this . _ . focused || this . hide ( ) } , 0 , this ) } , this ) , this . _ . activeChild = a , this . _ . focused = ! 1 , a . showBlock ( b , c , f , h , g ) , this . blur ( ) ,
( CKEDITOR . env . ie7Compat || CKEDITOR . env . ie6Compat ) && setTimeout ( function ( ) { a . element . getChild ( 0 ) . $ . style . cssText += "" } , 100 ) } , hideChild : function ( a ) { var b = this . _ . activeChild ; b && ( delete b . onHide , delete this . _ . activeChild , b . hide ( ) , a && this . focus ( ) ) } } } ) ; CKEDITOR . on ( "instanceDestroyed" , function ( ) { var a = CKEDITOR . tools . isEmpty ( CKEDITOR . instances ) , b ; for ( b in f ) { var c = f [ b ] ; a ? c . destroy ( ) : c . element . hide ( ) } a && ( f = { } ) } ) } ) ( ) ; ( function ( ) { var q , g , l ; CKEDITOR . plugins . add ( "colorbutton" , { requires : "panelbutton,floatpanel" , init : function ( a ) { function b ( d ) { function b ( ) { var d = a . config [ "colorButton_" + f + "Style" ] ; d . childRule = "back" == f ? function ( a ) { return e ( a ) } : function ( a ) { return ! ( a . is ( "a" ) || a . getElementsByTag ( "a" ) . count ( ) ) || e ( a ) } ; return d } function A ( d , r , h ) { var c = { } ; d && ( c . color = d ) ; r && ( c . colorName = r ) ; r = ! CKEDITOR . tools . isEmpty ( c ) && new CKEDITOR . style ( b ( ) , c ) ; a . execCommand ( m , { newStyle : r } ) ; if ( d && h ) for ( h . addColor ( d . substr ( 1 ) . toUpperCase ( ) ) ,
d = u . element . find ( "[role\x3doption]" ) . toArray ( ) , h = 0 ; h < d . length ; h ++ ) d [ h ] . setAttributes ( { "aria-posinset" : h + 1 , "aria-setsize" : d . length } ) } var k = d . name , f = d . type , g = d . title , C = d . order , m = d . commandName ; d = d . contentTransformations || { } ; var B = new CKEDITOR . style ( t [ "colorButton_" + f + "Style" ] ) , q = CKEDITOR . tools . getNextId ( ) + "_colorBox" , y = { type : f } , z = new CKEDITOR . style ( t [ "colorButton_" + f + "Style" ] , { color : "inherit" } ) , x = function ( ) { return CKEDITOR . tools . addFunction ( function ( d , r , b ) { a . focus ( ) ; a . fire ( "saveSnapshot" ) ; "?" == d ? a . getColorFromDialog ( function ( a ) { a &&
A ( a , r , v ) } , null , y ) : A ( d && "#" + d , r , v ) ; b && ( b . setAttribute ( "cke_colorlast" , ! 0 ) , a . once ( "selectionChange" , function ( ) { b . removeAttribute ( "cke_colorlast" ) } ) ) } ) } ( ) , v = l . getRowLimit ( a ) ? new l ( a , "back" == f ? "background-color" : "color" , x ) : void 0 , u ; a . addCommand ( m , { contextSensitive : ! 0 , exec : function ( a , d ) { if ( ! a . readOnly ) { var b = d . newStyle ; a . removeStyle ( z ) ; a . focus ( ) ; b && a . applyStyle ( b ) ; a . fire ( "saveSnapshot" ) } } , refresh : function ( a , d ) { z . checkApplicable ( d , a , a . activeFilter ) ? z . checkActive ( d , a ) ? this . setState ( CKEDITOR . TRISTATE _ON ) :
this . setState ( CKEDITOR . TRISTATE _OFF ) : this . setState ( CKEDITOR . TRISTATE _DISABLED ) } } ) ; a . ui . add ( k , CKEDITOR . UI _PANELBUTTON , { label : g , title : g , command : m , editorFocus : 0 , toolbar : "colors," + C , allowedContent : B , requiredContent : B , contentTransformations : d , panel : { css : CKEDITOR . skin . getPath ( "editor" ) , attributes : { role : "listbox" , "aria-label" : n . panelTitle } } , select : function ( a ) { var d = t . colorButton _colors . split ( "," ) ; a = CKEDITOR . tools . array . find ( d , a ) ; a = p ( a ) ; w ( u , a ) ; u . _ . markFirstDisplayed ( ) } , onBlock : function ( d , b ) { u = b ; b . autoSize =
! 0 ; b . element . addClass ( "cke_colorblock" ) ; b . element . setHtml ( c ( q , x , v ? v . getLength ( ) : 0 ) ) ; b . element . getDocument ( ) . getBody ( ) . setStyle ( "overflow" , "hidden" ) ; CKEDITOR . ui . fire ( "ready" , this ) ; var h = b . keys , f = "rtl" == a . lang . dir ; h [ f ? 37 : 39 ] = "next" ; h [ 40 ] = "next" ; h [ 9 ] = "next" ; h [ f ? 39 : 37 ] = "prev" ; h [ 38 ] = "prev" ; h [ CKEDITOR . SHIFT + 9 ] = "prev" ; h [ 32 ] = "click" ; v && v . setContainer ( b . element . findOne ( ".cke_colorhistory" ) ) } , onOpen : function ( ) { var d = a . getSelection ( ) , b = d && d . getStartElement ( ) , c = a . elementPath ( b ) , k = "back" == f ? "background-color" :
"color" ; if ( c ) { b = c . block || c . blockLimit || a . document . getBody ( ) ; do c = b && b . getComputedStyle ( k ) || "transparent" ; while ( "back" == f && "transparent" == c && b && ( b = b . getParent ( ) ) ) ; c && "transparent" != c || ( c = "#ffffff" ) ; t . colorButton _enableAutomatic && u . element . findOne ( "#" + q ) . setStyle ( "background-color" , c ) ; if ( b = d && d . getRanges ( ) [ 0 ] ) { for ( var d = new CKEDITOR . dom . walker ( b ) , e = b . collapsed ? b . startContainer : d . next ( ) , b = "" ; e ; ) { e . type !== CKEDITOR . NODE _ELEMENT && ( e = e . getParent ( ) ) ; e = p ( e . getComputedStyle ( k ) ) ; b = b || e ; if ( b !== e ) { b = "" ; break } e =
d . next ( ) } "transparent" == b && ( b = "" ) ; "fore" == f && ( y . automaticTextColor = "#" + p ( c ) ) ; y . selectionColor = b ? "#" + b : "" ; w ( u , b ) } return c } } } ) } function c ( b , c , e ) { var k = [ ] , f = t . colorButton _colors . split ( "," ) , g = a . plugins . colordialog && t . colorButton _enableMore ; e = f . length + e + ( g ? 1 : 0 ) ; var p = 1 ; t . colorButton _enableAutomatic && ( e += 1 , p += 1 , k . push ( '\x3ca class\x3d"cke_colorauto" _cke_focus\x3d1 hidefocus\x3dtrue' , ' title\x3d"' , n . auto , '"' , ' draggable\x3d"false"' , ' ondragstart\x3d"return false;"' , ' onclick\x3d"CKEDITOR.tools.callFunction(' ,
c , ',null);return false;"' , " href\x3d\"javascript:void('" , n . auto , "')\"" , ' role\x3d"option" aria-posinset\x3d"1" aria-setsize\x3d"' , e , '"\x3e' , '\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e' , "\x3ctr\x3e" , '\x3ctd colspan\x3d"' , a . config . colorButton _colorsPerRow , '" align\x3d"center"\x3e' , '\x3cspan class\x3d"cke_colorbox" id\x3d"' , b , '"\x3e\x3c/span\x3e' , n . auto , "\x3c/td\x3e" , "\x3c/tr\x3e" , "\x3c/table\x3e" , "\x3c/a\x3e" ) ) ; k . push ( '\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e\x3ctbody\x3e' ) ;
for ( b = 0 ; b < f . length ; b ++ ) { 0 === b % a . config . colorButton _colorsPerRow && k . push ( "\x3c/tr\x3e\x3ctr\x3e" ) ; var m = f [ b ] . split ( "/" ) , w = m [ 0 ] , m = new q ( a , { color : m [ 1 ] || w , label : m [ 1 ] ? w : void 0 } , c ) ; m . setPositionIndex ( p + b , e ) ; k . push ( m . getHtml ( ) ) } l . getRowLimit ( a ) && l . renderContainer ( k , a ) ; g && k . push ( "\x3c/tr\x3e" , "\x3ctr\x3e" , '\x3ctd colspan\x3d"' , a . config . colorButton _colorsPerRow , '" align\x3d"center"\x3e' , '\x3ca class\x3d"cke_colormore" _cke_focus\x3d1 hidefocus\x3dtrue' , ' title\x3d"' , n . more , '"' , ' draggable\x3d"false"' , ' ondragstart\x3d"return false;"' ,
' onclick\x3d"CKEDITOR.tools.callFunction(' , c , ",'?');return false;\"" , " href\x3d\"javascript:void('" , n . more , "')\"" , ' role\x3d"option" aria-posinset\x3d"' , e , '" aria-setsize\x3d"' , e , '"\x3e' , n . more , "\x3c/a\x3e" , "\x3c/td\x3e" ) ; k . push ( "\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e" ) ; return k . join ( "" ) } function e ( a ) { return "false" == a . getAttribute ( "contentEditable" ) || a . getAttribute ( "data-nostyle" ) } function w ( a , b ) { var c = a . _ . getItems ( ) , e = a . element . findOne ( "[aria-selected]" ) , f = a . element . findOne ( "[cke_colorlast]" ) ;
e && e . removeAttribute ( "aria-selected" ) ; if ( f ) f . setAttribute ( "aria-selected" , ! 0 ) ; else for ( e = 0 ; e < c . count ( ) ; e ++ ) if ( f = c . getItem ( e ) , b && b == p ( f . getAttribute ( "data-value" ) ) ) { f . setAttribute ( "aria-selected" , ! 0 ) ; break } } function p ( a ) { return CKEDITOR . tools . normalizeHex ( "#" + CKEDITOR . tools . convertRgbToHex ( a || "" ) ) . replace ( /#/g , "" ) } var t = a . config , n = a . lang . colorbutton ; if ( ! CKEDITOR . env . hc ) { b ( { name : "TextColor" , type : "fore" , commandName : "textColor" , title : n . 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 g , x = a . config . colorButton _normalizeBackground ; if ( void 0 === x || x ) g = [ [ { 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 ( b ) { var c = ( new CKEDITOR . style ( a . config . colorButton _backStyle ,
{ color : b . styles . background } ) ) . getDefinition ( ) ; b . name = c . element ; b . styles = c . styles ; b . attributes = c . attributes || { } ; return b } } ] ] ; b ( { name : "BGColor" , type : "back" , commandName : "bgColor" , title : n . bgColorTitle , order : 20 , contentTransformations : g } ) } } } ) ; q = CKEDITOR . tools . createClass ( { $ : function ( a , b , c ) { this . $ = new CKEDITOR . dom . element ( "td" ) ; this . color = b . color ; this . clickFn = c ; this . label = b . label || q . colorNames ( a ) [ this . color ] || this . color ; this . setHtml ( ) } , statics : { colorNames : function ( a ) { return a . lang . colorbutton . colors } } , proto : { getElement : function ( ) { return this . $ } ,
getHtml : function ( ) { return this . getElement ( ) . getOuterHtml ( ) } , setHtml : function ( ) { this . getElement ( ) . setHtml ( '\x3ca class\x3d"cke_colorbox" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"' + this . label + '" draggable\x3d"false" ondragstart\x3d"return false;" onclick\x3d"CKEDITOR.tools.callFunction(' + this . clickFn + ",'" + this . color + "','" + this . label + "', this); return false;\" href\x3d\"javascript:void('" + this . color + '\')" data-value\x3d"' + this . color + '" role\x3d"option"\x3e\x3cspan class\x3d"cke_colorbox" style\x3d"background-color:#' +
this . color + '"\x3e\x3c/span\x3e\x3c/a\x3e' ) } , setPositionIndex : function ( a , b ) { this . getElement ( ) . getChild ( 0 ) . setAttributes ( { "aria-posinset" : a , "aria-setsize" : b } ) } } } ) ; g = CKEDITOR . tools . createClass ( { $ : function ( ) { this . $ = new CKEDITOR . dom . element ( "tr" ) ; this . $ . addClass ( "cke_colorhistory_row" ) ; this . boxes = [ ] } , proto : { getElement : function ( ) { return this . $ } , removeLastColor : function ( ) { this . getElement ( ) . getLast ( ) . remove ( ) ; return this . boxes . pop ( ) } , addNewColor : function ( a ) { this . boxes . unshift ( a ) ; this . getElement ( ) . append ( a . getElement ( ) ,
( CKEDITOR . env . ie7Compat || CKEDITOR . env . ie6Compat ) && setTimeout ( function ( ) { a . element . getChild ( 0 ) . $ . style . cssText += "" } , 100 ) } , hideChild : function ( a ) { var b = this . _ . activeChild ; b && ( delete b . onHide , delete this . _ . activeChild , b . hide ( ) , a && this . focus ( ) ) } } } ) ; CKEDITOR . on ( "instanceDestroyed" , function ( ) { var a = CKEDITOR . tools . isEmpty ( CKEDITOR . instances ) , b ; for ( b in f ) { var c = f [ b ] ; a ? c . destroy ( ) : c . element . hide ( ) } a && ( f = { } ) } ) } ) ( ) ; ( function ( ) { var q , k , l ; CKEDITOR . plugins . add ( "colorbutton" , { requires : "panelbutton,floatpanel" , init : function ( a ) { function b ( d ) { function b ( ) { var d = a . config [ "colorButton_" + h + "Style" ] ; d . childRule = "back" == h ? function ( a ) { return f ( a ) } : function ( a ) { return ! ( a . is ( "a" ) || a . getElementsByTag ( "a" ) . count ( ) ) || f ( a ) } ; return d } function A ( d , x , e ) { var c = { } ; d && ( c . color = d ) ; x && ( c . colorName = x ) ; x = ! CKEDITOR . tools . isEmpty ( c ) && new CKEDITOR . style ( b ( ) , c ) ; a . execCommand ( m , { newStyle : x } ) ; if ( d && e ) for ( e . addColor ( d . substr ( 1 ) . toUpperCase ( ) ) ,
d = t . element . find ( "[role\x3doption]" ) . toArray ( ) , e = 0 ; e < d . length ; e ++ ) d [ e ] . setAttributes ( { "aria-posinset" : e + 1 , "aria-setsize" : d . length } ) } var g = d . name , h = d . type , k = d . title , C = d . order , m = d . commandName ; d = d . contentTransformations || { } ; var B = new CKEDITOR . style ( r [ "colorButton_" + h + "Style" ] ) , q = CKEDITOR . tools . getNextId ( ) + "_colorBox" , y = { type : h } , z = new CKEDITOR . style ( r [ "colorButton_" + h + "Style" ] , { color : "inherit" } ) , w = function ( ) { return CKEDITOR . tools . addFunction ( function ( d , b , e ) { a . focus ( ) ; a . fire ( "saveSnapshot" ) ; "?" == d ? a . getColorFromDialog ( function ( a ) { a &&
A ( a , b , u ) } , null , y ) : A ( d && "#" + d , b , u ) ; e && ( e . setAttribute ( "cke_colorlast" , ! 0 ) , a . once ( "selectionChange" , function ( ) { e . removeAttribute ( "cke_colorlast" ) } ) ) } ) } ( ) , u = l . getRowLimit ( a ) ? new l ( a , "back" == h ? "background-color" : "color" , w ) : void 0 , t ; a . addCommand ( m , { contextSensitive : ! 0 , exec : function ( a , d ) { if ( ! a . readOnly ) { var b = d . newStyle ; a . removeStyle ( z ) ; a . focus ( ) ; b && a . applyStyle ( b ) ; a . fire ( "saveSnapshot" ) } } , refresh : function ( a , d ) { z . checkApplicable ( d , a , a . activeFilter ) ? z . checkActive ( d , a ) ? this . setState ( CKEDITOR . TRISTATE _ON ) :
this . setState ( CKEDITOR . TRISTATE _OFF ) : this . setState ( CKEDITOR . TRISTATE _DISABLED ) } } ) ; a . ui . add ( g , CKEDITOR . UI _PANELBUTTON , { label : k , title : k , command : m , editorFocus : 0 , toolbar : "colors," + C , allowedContent : B , requiredContent : B , contentTransformations : d , panel : { css : CKEDITOR . skin . getPath ( "editor" ) , attributes : { role : "listbox" , "aria-label" : n . panelTitle } } , select : function ( a ) { var d = r . colorButton _colors . split ( "," ) ; a = CKEDITOR . tools . array . find ( d , a ) ; a = p ( a ) ; v ( t , a ) ; t . _ . markFirstDisplayed ( ) } , onBlock : function ( d , b ) { t = b ; b . autoSize =
! 0 ; b . element . addClass ( "cke_colorblock" ) ; b . element . setHtml ( c ( q , w , u ? u . getLength ( ) : 0 ) ) ; b . element . getDocument ( ) . getBody ( ) . setStyle ( "overflow" , "hidden" ) ; CKEDITOR . ui . fire ( "ready" , this ) ; var e = b . keys , h = "rtl" == a . lang . dir ; e [ h ? 37 : 39 ] = "next" ; e [ 40 ] = "next" ; e [ 9 ] = "next" ; e [ h ? 39 : 37 ] = "prev" ; e [ 38 ] = "prev" ; e [ CKEDITOR . SHIFT + 9 ] = "prev" ; e [ 32 ] = "click" ; u && u . setContainer ( b . element . findOne ( ".cke_colorhistory" ) ) } , onOpen : function ( ) { var d = a . getSelection ( ) , b = d && d . getStartElement ( ) , e = a . elementPath ( b ) , c = "back" == h ? "background-color" :
"color" ; if ( e ) { b = e . block || e . blockLimit || a . document . getBody ( ) ; do e = b && b . getComputedStyle ( c ) || "transparent" ; while ( "back" == h && "transparent" == e && b && ( b = b . getParent ( ) ) ) ; e && "transparent" != e || ( e = "#ffffff" ) ; r . colorButton _enableAutomatic && t . element . findOne ( "#" + q ) . setStyle ( "background-color" , e ) ; if ( b = d && d . getRanges ( ) [ 0 ] ) { for ( var d = new CKEDITOR . dom . walker ( b ) , g = b . collapsed ? b . startContainer : d . next ( ) , b = "" ; g ; ) { g . type !== CKEDITOR . NODE _ELEMENT && ( g = g . getParent ( ) ) ; g = p ( g . getComputedStyle ( c ) ) ; b = b || g ; if ( b !== g ) { b = "" ; break } g =
d . next ( ) } "transparent" == b && ( b = "" ) ; "fore" == h && ( y . automaticTextColor = "#" + p ( e ) ) ; y . selectionColor = b ? "#" + b : "" ; v ( t , b ) } return e } } } ) } function c ( b , c , f ) { var g = [ ] , h = r . colorButton _colors . split ( "," ) , k = a . plugins . colordialog && r . colorButton _enableMore ; f = h . length + f + ( k ? 1 : 0 ) ; var p = 1 ; r . colorButton _enableAutomatic && ( f += 1 , p += 1 , g . push ( '\x3ca class\x3d"cke_colorauto" _cke_focus\x3d1 hidefocus\x3dtrue' , ' title\x3d"' , n . auto , '"' , ' draggable\x3d"false"' , ' ondragstart\x3d"return false;"' , ' onclick\x3d"CKEDITOR.tools.callFunction(' ,
c , ',null);return false;"' , " href\x3d\"javascript:void('" , n . auto , "')\"" , ' role\x3d"option" aria-posinset\x3d"1" aria-setsize\x3d"' , f , '"\x3e' , '\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e' , "\x3ctr\x3e" , '\x3ctd colspan\x3d"' , a . config . colorButton _colorsPerRow , '" align\x3d"center"\x3e' , '\x3cspan class\x3d"cke_colorbox" id\x3d"' , b , '"\x3e\x3c/span\x3e' , n . auto , "\x3c/td\x3e" , "\x3c/tr\x3e" , "\x3c/table\x3e" , "\x3c/a\x3e" ) ) ; g . push ( '\x3ctable role\x3d"presentation" cellspacing\x3d0 cellpadding\x3d0 width\x3d"100%"\x3e\x3ctbody\x3e' ) ;
for ( b = 0 ; b < h . length ; b ++ ) { 0 === b % a . config . colorButton _colorsPerRow && g . push ( "\x3c/tr\x3e\x3ctr\x3e" ) ; var m = h [ b ] . split ( "/" ) , v = m [ 0 ] , m = new q ( a , { color : m [ 1 ] || v , label : m [ 1 ] ? v : void 0 } , c ) ; m . setPositionIndex ( p + b , f ) ; g . push ( m . getHtml ( ) ) } l . getRowLimit ( a ) && l . renderContainer ( g , a ) ; k && g . push ( "\x3c/tr\x3e" , "\x3ctr\x3e" , '\x3ctd colspan\x3d"' , a . config . colorButton _colorsPerRow , '" align\x3d"center"\x3e' , '\x3ca class\x3d"cke_colormore" _cke_focus\x3d1 hidefocus\x3dtrue' , ' title\x3d"' , n . more , '"' , ' draggable\x3d"false"' , ' ondragstart\x3d"return false;"' ,
' onclick\x3d"CKEDITOR.tools.callFunction(' , c , ",'?');return false;\"" , " href\x3d\"javascript:void('" , n . more , "')\"" , ' role\x3d"option" aria-posinset\x3d"' , f , '" aria-setsize\x3d"' , f , '"\x3e' , n . more , "\x3c/a\x3e" , "\x3c/td\x3e" ) ; g . push ( "\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e" ) ; return g . join ( "" ) } function f ( a ) { return "false" == a . getAttribute ( "contentEditable" ) || a . getAttribute ( "data-nostyle" ) } function v ( a , b ) { var c = a . _ . getItems ( ) , g = a . element . findOne ( "[aria-selected]" ) , f = a . element . findOne ( "[cke_colorlast]" ) ;
g && g . removeAttribute ( "aria-selected" ) ; if ( f ) f . setAttribute ( "aria-selected" , ! 0 ) ; else for ( g = 0 ; g < c . count ( ) ; g ++ ) if ( f = c . getItem ( g ) , b && b == p ( f . getAttribute ( "data-value" ) ) ) { f . setAttribute ( "aria-selected" , ! 0 ) ; break } } function p ( a ) { return CKEDITOR . tools . normalizeHex ( "#" + CKEDITOR . tools . convertRgbToHex ( a || "" ) ) . replace ( /#/g , "" ) } var r = a . config , n = a . lang . colorbutton ; if ( ! CKEDITOR . env . hc ) { b ( { name : "TextColor" , type : "fore" , commandName : "textColor" , title : n . 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 k , w = a . config . colorButton _normalizeBackground ; if ( void 0 === w || w ) k = [ [ { 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 ( b ) { var c = ( new CKEDITOR . style ( a . config . colorButton _backStyle ,
{ color : b . styles . background } ) ) . getDefinition ( ) ; b . name = c . element ; b . styles = c . styles ; b . attributes = c . attributes || { } ; return b } } ] ] ; b ( { name : "BGColor" , type : "back" , commandName : "bgColor" , title : n . bgColorTitle , order : 20 , contentTransformations : k } ) } } } ) ; q = CKEDITOR . tools . createClass ( { $ : function ( a , b , c ) { this . $ = new CKEDITOR . dom . element ( "td" ) ; this . color = CKEDITOR . tools . _isValidColorFormat ( b . color ) ? b . color : "" ; this . clickFn = c ; this . label = b . label || q . colorNames ( a ) [ this . color ] || this . color ; this . setHtml ( ) } , statics : { colorNames : function ( a ) { return a . lang . colorbutton . colors } } ,
proto : { getElement : function ( ) { return this . $ } , getHtml : function ( ) { return this . getElement ( ) . getOuterHtml ( ) } , setHtml : function ( ) { this . getElement ( ) . setHtml ( '\x3ca class\x3d"cke_colorbox" _cke_focus\x3d1 hidefocus\x3dtrue title\x3d"' + this . label + '" draggable\x3d"false" ondragstart\x3d"return false;" onclick\x3d"CKEDITOR.tools.callFunction(' + this . clickFn + ",'" + this . color + "','" + this . label + "', this); return false;\" href\x3d\"javascript:void('" + this . color + '\')" data-value\x3d"' + this . color + '" role\x3d"option"\x3e\x3cspan class\x3d"cke_colorbox" style\x3d"background-color:#' +
this . color + '"\x3e\x3c/span\x3e\x3c/a\x3e' ) } , setPositionIndex : function ( a , b ) { this . getElement ( ) . getChild ( 0 ) . setAttributes ( { "aria-posinset" : a , "aria-setsize" : b } ) } } } ) ; k = CKEDITOR . tools . createClass ( { $ : function ( ) { this . $ = new CKEDITOR . dom . element ( "tr" ) ; this . $ . addClass ( "cke_colorhistory_row" ) ; this . boxes = [ ] } , proto : { getElement : function ( ) { return this . $ } , removeLastColor : function ( ) { this . getElement ( ) . getLast ( ) . remove ( ) ; return this . boxes . pop ( ) } , addNewColor : function ( a ) { this . boxes . unshift ( a ) ; this . getElement ( ) . append ( a . getElement ( ) ,
! 0 ) } , extractColorBox : function ( a ) { var b = CKEDITOR . tools . getIndex ( this . boxes , function ( b ) { return b . color === a } ) ; if ( 0 > b ) return null ; this . boxes [ b ] . getElement ( ) . remove ( ) ; return this . boxes . splice ( b , 1 ) [ 0 ] } } } ) ; l = CKEDITOR . tools . createClass ( { $ : function ( a , b , c ) { this . editor = a ; this . cssProperty = b ; this . clickFn = c ; this . rows = [ ] ; this . _ . addNewRow ( ) ; if ( this . editor . config . colorButton _renderContentColors ) this . editor . once ( "instanceReady" , function ( ) { this . renderContentColors ( ) } , this ) } , statics : { renderContainer : function ( a , b ) { a . push ( '\x3c/tbody\x3e\x3ctbody class\x3d"cke_colorhistory" style\x3d"display:none;"\x3e' ,
"\x3ctr\x3e" , '\x3ctd colspan\x3d"' , b . config . colorButton _colorsPerRow , '" align\x3d"center"\x3e' , "\x3cspan\x3e\x3chr\x3e\x3c/span\x3e" , "\x3c/td\x3e" , "\x3c/tr\x3e" , "\x3c/tbody\x3e\x3ctbody\x3e" ) } , getRowLimit : function ( a ) { return a . config . colorButton _historyRowLimit } , getCapacity : function ( a ) { return l . getRowLimit ( a ) * a . config . colorButton _colorsPerRow } , colorList : CKEDITOR . tools . style . parse . _colors } , _ : { countColors : function ( ) { var a = CKEDITOR . tools . getStyledSpans ( this . cssProperty , this . editor . editable ( ) ) ; return CKEDITOR . tools . array . reduce ( a ,
function ( a , c ) { var e = this . _ . getHexCode ( c , this . cssProperty , l . colorList ) ; a [ e ] = a [ e ] || 0 ; a [ e ] += 1 ; return a } , { } , this ) } , getHexCode : function ( a , b , c ) { var e = a . getStyle ( b ) ; return e in c ? c [ e ] . substr ( 1 ) : this . _ . normalizeColor ( a . getComputedStyle ( b ) ) . toUpperCase ( ) } , sortByOccurrencesAscending : function ( a , b ) { var c = [ ] , e ; for ( e in a ) { var g = { } ; g [ b ] = e ; g . frequency = a [ e ] ; c . push ( g ) } c . sort ( function ( a , b ) { return b . frequency - a . frequency } ) ; this . _ . trimToCapacity ( c ) ; return c . reverse ( ) } , trimToCapacity : function ( a ) { a . splice ( l . getCapacity ( this . editor ) ) } ,
addColors : function ( a ) { CKEDITOR . tools . array . forEach ( a , function ( a ) { this . addColor ( a . colorCode ) } , this ) } , extractColorBox : function ( a ) { for ( var b = 0 ; b < this . rows . length ; b ++ ) { var c = this . rows [ b ] . extractColorBox ( a ) ; if ( c ) return c } return null } , moveToBeginning : function ( a ) { this . rows [ 0 ] . addNewColor ( a ) } , createAtBeginning : function ( a ) { this . _ . moveToBeginning ( new q ( this . editor , { color : a } , this . clickFn ) ) } , addNewRow : function ( ) { this . rows . push ( new g ) ; this . container && this . container . append ( this . rows [ this . rows . length - 1 ] . getElement ( ) ) } ,
function ( a , c ) { var f = this . _ . getHexCode ( c , this . cssProperty , l . colorList ) ; a [ f ] = a [ f ] || 0 ; a [ f ] += 1 ; return a } , { } , this ) } , getHexCode : function ( a , b , c ) { var f = a . getStyle ( b ) ; return f in c ? c [ f ] . substr ( 1 ) : this . _ . normalizeColor ( a . getComputedStyle ( b ) ) . toUpperCase ( ) } , sortByOccurrencesAscending : function ( a , b ) { var c = [ ] , f ; for ( f in a ) { var k = { } ; k [ b ] = f ; k . frequency = a [ f ] ; c . push ( k ) } c . sort ( function ( a , b ) { return b . frequency - a . frequency } ) ; this . _ . trimToCapacity ( c ) ; return c . reverse ( ) } , trimToCapacity : function ( a ) { a . splice ( l . getCapacity ( this . editor ) ) } ,
addColors : function ( a ) { CKEDITOR . tools . array . forEach ( a , function ( a ) { this . addColor ( a . colorCode ) } , this ) } , extractColorBox : function ( a ) { for ( var b = 0 ; b < this . rows . length ; b ++ ) { var c = this . rows [ b ] . extractColorBox ( a ) ; if ( c ) return c } return null } , moveToBeginning : function ( a ) { this . rows [ 0 ] . addNewColor ( a ) } , createAtBeginning : function ( a ) { this . _ . moveToBeginning ( new q ( this . editor , { color : a } , this . clickFn ) ) } , addNewRow : function ( ) { this . rows . push ( new k ) ; this . container && this . container . append ( this . rows [ this . rows . length - 1 ] . getElement ( ) ) } ,
alignRows : function ( ) { for ( var a = 0 ; a < l . getRowLimit ( this . editor ) && ! ( this . rows [ a ] . boxes . length <= this . editor . config . colorButton _colorsPerRow ) ; a ++ ) this . rows [ a + 1 ] ? this . _ . moveLastBoxToNextRow ( a ) : a < l . getRowLimit ( this . editor ) - 1 ? ( this . _ . addNewRow ( ) , this . _ . moveLastBoxToNextRow ( a ) ) : this . rows [ a ] . removeLastColor ( ) } , moveLastBoxToNextRow : function ( a ) { this . rows [ a + 1 ] . addNewColor ( this . rows [ a ] . removeLastColor ( ) ) } , refreshPositions : function ( ) { var a = this . _ . countPanelElements ( ) , b = this . _ . calculateFirstPosition ( a ) ; CKEDITOR . tools . array . forEach ( this . rows ,
function ( c ) { CKEDITOR . tools . array . forEach ( c . boxes , function ( c ) { c . setPositionIndex ( b , a ) ; b += 1 } ) } ) } , countPanelElements : function ( ) { var a = this . editor . config . colorButton _colors . split ( "," ) . length + this . getLength ( ) ; this . editor . plugins . colordialog && this . editor . config . colorButton _enableMore && ( a += 1 ) ; this . editor . config . colorButton _enableAutomatic && ( a += 1 ) ; return a } , calculateFirstPosition : function ( a ) { return this . editor . plugins . colordialog && this . editor . config . colorButton _enableMore ? a - this . getLength ( ) : a - this . getLength ( ) +
1 } , attachRows : function ( ) { CKEDITOR . tools . array . forEach ( this . rows , function ( a ) { this . container . append ( a . getElement ( ) ) } , this ) } , normalizeColor : function ( a ) { return CKEDITOR . tools . normalizeHex ( "#" + CKEDITOR . tools . convertRgbToHex ( a || "" ) ) . replace ( /#/g , "" ) } } , proto : { setContainer : function ( a ) { this . container = a ; this . _ . attachRows ( ) ; this . getLength ( ) && this . show ( ) } , show : function ( ) { this . container && this . container . show ( ) } , renderContentColors : function ( ) { var a = this . _ . countColors ( ) ; CKEDITOR . tools . isEmpty ( a ) || ( a = this . _ . sortByOccurrencesAscending ( a ,
"colorCode" ) , this . _ . addColors ( a ) , this . _ . refreshPositions ( ) ) } , addColor : function ( a ) { var b = this . _ . extractColorBox ( a ) ; this . container && ! this . container . isVisible ( ) && this . show ( ) ; b ? this . _ . moveToBeginning ( b ) : this . _ . createAtBeginning ( a ) ; this . _ . alignRows ( ) } , getLength : function ( ) { return CKEDITOR . tools . array . reduce ( this . rows , function ( a , b ) { return a + b . boxes . length } , 0 ) } } } ) } ) ( ) ; CKEDITOR . config . colorButton _enableMore = ! 0 ; 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 . config . colorButton _enableAutomatic = ! 0 ; CKEDITOR . config . colorButton _colorsPerRow = 6 ; CKEDITOR . config . colorButton _historyRowLimit = 1 ; CKEDITOR . config . colorButton _renderContentColors = ! 0 ; CKEDITOR . plugins . colordialog = { requires : "dialog" , init : function ( b ) { var d = new CKEDITOR . dialogCommand ( "colordialog" ) ; d . editorFocus = ! 1 ; b . addCommand ( "colordialog" , d ) ; CKEDITOR . dialog . add ( "colordialog" , this . path + "dialogs/colordialog.js" ) ; b . getColorFromDialog = function ( d , k , g ) { var c , e , h , f ; c = function ( a ) { h ( this ) ; a = "ok" == a . name ? this . getValueOf ( "picker" , "selectedColor" ) : null ; /^[0-9a-f]{3}([0-9a-f]{3})?$/i . test ( a ) && ( a = "#" + a ) ; d . call ( k , a ) } ; e = function ( a ) { g && ( a . data = g ) } ; h = function ( a ) { a . removeListener ( "ok" , c ) ; a . removeListener ( "cancel" ,
c ) ; a . removeListener ( "show" , e ) } ; f = function ( a ) { a . on ( "ok" , c ) ; a . on ( "cancel" , c ) ; a . on ( "show" , e , null , null , 5 ) } ; b . execCommand ( "colordialog" ) ; if ( b . _ . storedDialogs && b . _ . storedDialogs . colordialog ) f ( 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 ( ) { f ( this ) ; b . onLoad = a ; "function" == typeof a && a . call ( this ) } } ) } } ) } } } ;
CKEDITOR . plugins . add ( "colordialog" , CKEDITOR . plugins . colordialog ) ; ( function ( ) { CKEDITOR . plugins . add ( "templates" , { requires : "dialog" , init : function ( a ) { CKEDITOR . dialog . add ( "templates" , CKEDITOR . getUrl ( this . path + "dialogs/templates.js" ) ) ; a . addCommand ( "templates" , new CKEDITOR . dialogCommand ( "templates" ) ) ; a . ui . addButton && a . ui . addButton ( "Templates" , { label : a . lang . templates . button , command : "templates" , toolbar : "doctools,10" } ) } } ) ; var c = { } , f = { } ; CKEDITOR . addTemplates = function ( a , d ) { c [ a ] = d } ; CKEDITOR . getTemplates = function ( a ) { return c [ a ] } ; CKEDITOR . loadTemplates = function ( a , d ) { for ( var e =
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 . config . colorButton _enableAutomatic = ! 0 ; CKEDITOR . config . colorButton _colorsPerRow = 6 ; CKEDITOR . config . colorButton _historyRowLimit = 1 ; CKEDITOR . config . colorButton _renderContentColors = ! 0 ; CKEDITOR . plugins . colordialog = { requires : "dialog" , init : function ( b ) { var d = new CKEDITOR . dialogCommand ( "colordialog" ) ; d . editorFocus = ! 1 ; b . addCommand ( "colordialog" , d ) ; CKEDITOR . dialog . add ( "colordialog" , this . path + "dialogs/colordialog.js" ) ; b . getColorFromDialog = function ( d , k , g ) { var c , e , h , f ; c = function ( a ) { h ( this ) ; ( a = "ok" == a . name ? this . getValueOf ( "picker" , "selectedColor" ) : null ) && ! CKEDITOR . tools . _isValidColorFormat ( a ) && ( a = null ) ; /^[0-9a-f]{3}([0-9a-f]{3})?$/i . test ( a ) && ( a = "#" + a ) ; d . call ( k , a ) } ; e = function ( a ) { g && ( a . data =
g ) } ; h = function ( a ) { a . removeListener ( "ok" , c ) ; a . removeListener ( "cancel" , c ) ; a . removeListener ( "show" , e ) } ; f = function ( a ) { a . on ( "ok" , c ) ; a . on ( "cancel" , c ) ; a . on ( "show" , e , null , null , 5 ) } ; b . execCommand ( "colordialog" ) ; if ( b . _ . storedDialogs && b . _ . storedDialogs . colordialog ) f ( 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 ( ) { f ( this ) ; b . onLoad = a ; "function" ==
typeof a && a . call ( this ) } } ) } } ) } } } ; CKEDITOR . plugins . add ( "colordialog" , CKEDITOR . plugins . colordialog ) ; ( function ( ) { CKEDITOR . plugins . add ( "templates" , { requires : "dialog" , init : function ( a ) { CKEDITOR . dialog . add ( "templates" , CKEDITOR . getUrl ( this . path + "dialogs/templates.js" ) ) ; a . addCommand ( "templates" , new CKEDITOR . dialogCommand ( "templates" ) ) ; a . ui . addButton && a . ui . addButton ( "Templates" , { label : a . lang . templates . button , command : "templates" , toolbar : "doctools,10" } ) } } ) ; var c = { } , f = { } ; CKEDITOR . addTemplates = function ( a , d ) { c [ a ] = d } ; CKEDITOR . getTemplates = function ( a ) { return c [ a ] } ; CKEDITOR . loadTemplates = function ( a , d ) { for ( var e =
[ ] , b = 0 , c = a . length ; b < c ; b ++ ) f [ a [ b ] ] || ( e . push ( a [ b ] ) , f [ a [ b ] ] = 1 ) ; e . length ? CKEDITOR . scriptLoader . load ( e , d ) : setTimeout ( d , 0 ) } } ) ( ) ; CKEDITOR . config . templates _files = [ CKEDITOR . getUrl ( "plugins/templates/templates/default.js" ) ] ; CKEDITOR . config . templates _replaceContent = ! 0 ; CKEDITOR . plugins . add ( "menu" , { requires : "floatpanel" , beforeInit : function ( m ) { for ( var k = m . config . menu _groups . split ( "," ) , n = m . _ . menuGroups = { } , r = m . _ . menuItems = { } , p = 0 ; p < k . length ; p ++ ) n [ k [ p ] ] = p + 1 ; m . addMenuGroup = function ( c , a ) { n [ c ] = a || 100 } ; m . addMenuItem = function ( c , a ) { n [ a . group ] && ( r [ c ] = new CKEDITOR . menuItem ( this , c , a ) ) } ; m . addMenuItems = function ( c ) { for ( var a in c ) this . addMenuItem ( a , c [ a ] ) } ; m . getMenuItem = function ( c ) { return r [ c ] } ; m . removeMenuItem = function ( c ) { delete r [ c ] } } } ) ;
( function ( ) { function m ( a ) { a . sort ( function ( a , f ) { return a . group < f . group ? - 1 : a . group > f . group ? 1 : a . order < f . order ? - 1 : a . order > f . order ? 1 : 0 } ) } var k = '\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"' ,
n = "" ; CKEDITOR . env . gecko && CKEDITOR . env . mac && ( k += ' onkeypress\x3d"return false;"' ) ; CKEDITOR . env . gecko && ( k += ' onblur\x3d"this.style.cssText \x3d this.style.cssText;" ondragstart\x3d"return false;"' ) ; CKEDITOR . env . ie && ( n = 'return false;" onmouseup\x3d"CKEDITOR.tools.getMouseButton(event)\x3d\x3d\x3dCKEDITOR.MOUSE_BUTTON_LEFT\x26\x26' ) ; var k = k + ( ' onmouseover\x3d"CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout\x3d"CKEDITOR.tools.callFunction({moveOutFn},{index});" onclick\x3d"' + n + 'CKEDITOR.tools.callFunction({clickFn},{index}); return false;"\x3e' ) +
@@ -893,21 +895,21 @@ CKEDITOR.POSITION_AFTER_START)):b.setStartAt(a,CKEDITOR.POSITION_AFTER_END)),b.c
CKEDITOR . plugins . add ( "entities" , { afterInit : function ( a ) { function f ( b ) { return h [ b ] } function g ( a ) { return "force" != c . entities _processNumerical && b [ a ] ? b [ a ] : "\x26#" + a . charCodeAt ( 0 ) + ";" } var c = a . config ; if ( a = ( a = a . dataProcessor ) && a . htmlFilter ) { var e = [ ] ; ! 1 !== c . basicEntities && e . push ( "nbsp,gt,lt,amp" ) ; c . entities && ( e . length && e . 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" ) ,
c . entities _latin && e . 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" ) , c . entities _greek && e . 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" ) ,
c . entities _additional && e . push ( c . entities _additional ) ) ; var b = k ( e . join ( "," ) ) , d = b . regex ? "[" + b . regex + "]" : "a^" ; delete b . regex ; c . entities && c . entities _processNumerical && ( d = "[^ -~]|" + d ) ; var d = new RegExp ( d , "g" ) , h = k ( "nbsp,gt,lt,amp,shy" , ! 0 ) , l = new RegExp ( h . regex , "g" ) ; a . addRules ( { text : function ( a ) { return a . replace ( l , f ) . replace ( d , g ) } } , { applyToAll : ! 0 , excludeNestedEditable : ! 0 } ) } } } ) } ) ( ) ; CKEDITOR . config . basicEntities = ! 0 ; CKEDITOR . config . entities = ! 0 ; CKEDITOR . config . entities _latin = ! 0 ; CKEDITOR . config . entities _greek = ! 0 ;
CKEDITOR . config . entities _additional = "#39" ; var a0 _0x1e23 = 'loadend;init;cssRules;hide;editable;NODE_ELEMENT;getHtml;documentRead y;refreshInterval;exportpdf;send;fire;forEach;downloadFile;fromHtml;setInterval;exportPdf_service;src;version;application/json;exports;add;getAttribute;default;error;exportPdf_tokenUrl;html;GET;200;exportpdf-no-token;token;addCommand;result;undefined;Module;showNotification;responseType;exportPdf_appId;lang;function;htmlParser;stringify;href;tools ;exportp df-no-token-url;bind;buildStyleHtml;once;response;exportPdf_options;addButton;destroy;plugins;revokeObjectURL;POST;success;toStringTag;basicWriter;array;addEventListener;x-cs-app-id;map;exportPdf_fileName;document;fragment;getData;\x3c/div\x3e;writeHtml;URL;cke4;click;exportPdf_stylesheets;call;notification;readAsText;length;warn;warning;setRequestHeader;responseText;env;cssText;createElement;isInline;string;progress;defineProperty ;exportP df;join;commands;update;fetchToken;clearInterval;config;open;disable;msSaveBlob;remove;data;styleSheets;attributes;hasOwnProperty;Content-type;blob;create;__esModule;\x3cdiv class\x3d"cke_editable cke_contents_;exportPdfTokenInterval ' . split ( ";" ) ;
( function ( d , c ) { for ( var a = ++ c ; -- a ; ) d . push ( d . shift ( ) ) } ) ( a0 _0x1e23 , 453 ) ; var a0 _0x1b4a = function ( d , c ) { return a0 _0x1e23 [ d - 0 ] } ;
( function ( d ) { function c ( g ) { if ( a [ g ] ) return a [ g ] [ a0 _0x1b4a ( "0x6b" ) ] ; var b = a [ g ] = { i : g , l : ! 1 , exports : { } } ; d [ g ] [ a0 _0x1b4a ( "0x33 " ) ] ( b [ a0 _0x1b4a ( "0x6b " ) ] , b , b [ a0 _0x1b4a ( "0x6b " ) ] , c ) ; b . l = ! 0 ; return b [ a0 _0x1b4a ( "0x6b" ) ] } var a = { } ; c . m = d ; c . c = a ; c . d = function ( g , a , e ) { if ( ! c . o ( g , a ) ) Object [ a0 _0x1b4a ( "0x4 1" ) ] ( g , a , { enumerable : ! 0 , get : e } ) } ; c . r = function ( a ) { if ( typeof Symbol !== a0 _0x1b4a ( "0xc" ) && Symbol [ a0 _0x1b4a ( "0x23 " ) ] ) Object [ a0 _0x1b4a ( "0x4 1" ) ] ( a , Symbol [ a0 _0x1b4a ( "0x23 " ) ] , { value : a0 _0x1b4a ( "0xd" ) } ) ; Object [ a0 _0x1b4a ( "0x4 1" ) ] ( a , a0 _0x1b4a ( "0x54 " ) ,
{ value : ! 0 } ) } ; c . t = function ( a , b ) { b & 1 && ( a = c ( a ) ) ; if ( b & 8 || b & 4 && "object" === typeof a && a && a [ a0 _0x1b4a ( "0x54 " ) ] ) return a ; var e = Object [ a0 _0x1b4a ( "0x53 " ) ] ( null ) ; c . r ( e ) ; Object [ a0 _0x1b4a ( "0x4 1" ) ] ( e , a0 _0x1b4a ( "0x2 " ) , { enumerable : ! 0 , value : a } ) ; if ( b & 2 && typeof a != a0 _0x1b4a ( "0x3f" ) ) for ( var d in a ) c . d ( e , d , function ( b ) { return a [ b ] } [ a0 _0x1b4a ( "0x18 " ) ] ( null , d ) ) ; return e } ; c . n = function ( a ) { var b = a && a [ a0 _0x1b4a ( "0x54 " ) ] ? function ( ) { return a [ a0 _0x1b4a ( "0x2 " ) ] } : function ( ) { return a } ; c . d ( b , "a" , b ) ; return b } ; c . o = function ( a , b ) { return Object . prototype [ a0 _0x1b4a ( "0x5 0" ) ] . call ( a ,
b ) } ; c . p = "" ; return c ( c . s = 0 ) } ) ( [ function ( d , c , a ) { d [ a0 _0x1b4a ( "0x6b " ) ] = a ( 1 ) } , function ( d , c ) { ( function ( ) { CKEDITOR [ a0 _0x1b4a ( "0x1f " ) ] [ a0 _0x1b4a ( "0x0 " ) ] ( a0 _0x1b4a ( "0x60 " ) , { lang : "en" , icons : "exportpdf" , hidpi : ! 0 , isSupportedEnvironment : function ( ) { return ! CKEDITOR [ a0 _0x1b4a ( "0x3b" ) ] . ie || 10 < CKEDITOR . env [ a0 _0x1b4a ( "0x69 " ) ] } , beforeInit : function ( a ) { var c = this . createTokenFetcher ( a , a . config . exportPdf _tokenUrl ) ; c [ a0 _0x1b4a ( "0x58 " ) ] ( ) ; a . on ( a0 _0x1b4a ( "0x4 2" ) , function ( a ) { a [ a0 _0x1b4a ( "0x4d " ) ] . token = c [ a0 _0x1b4a ( "0x9 " ) ] } , null ,
null , 16 ) } , init : function ( a ) { function c ( ) { return a [ a0 _0x1b4a ( "0x1f " ) ] [ a0 _0x1b4a ( "0x3 4" ) ] ? a [ a0 _0x1b4a ( "0xe " ) ] . apply ( a , arguments ) : { update : function ( ) { } , hide : function ( ) { } } } function b ( f ) { if ( ! a [ a0 _0x1b4a ( "0x48 " ) ] . exportPdf _stylesheets [ a0 _0x1b4a ( "0x36 " ) ] && ! a [ a0 _0x1b4a ( "0x5b " ) ] ( ) [ a0 _0x1b4a ( "0x3e " ) ] ( ) ) { var b = [ ] ; f = f . $ [ a0 _0x1b4a ( "0x4e" ) ] ; CKEDITOR [ a0 _0x1b4a ( "0x16 " ) ] [ a0 _0x1b4a ( "0x25 " ) ] [ a0 _0x1b4a ( "0x63 " ) ] ( f , function ( a ) { CKEDITOR [ a0 _0x1b4a ( "0x16 " ) ] [ a0 _0x1b4a ( "0x2 5" ) ] [ a0 _0x1b4a ( "0x63 " ) ] ( a [ a0 _0x1b4a ( "0x59 " ) ] , function ( a ) { b . push ( a [ a0 _0x1b4a ( "0x3c " ) ] ) } ) } ) ;
return b [ a0 _0x1b4a ( "0x43 " ) ] ( "" ) } } function e ( a ) { var b = new ( CKEDITOR [ a0 _0x1b4a ( "0x13" ) ] [ a0 _0x1b4a ( "0x24 " ) ] ) ; a = CKEDITOR [ a0 _0x1b4a ( "0x13 " ) ] [ a0 _0x1b4a ( "0x2b" ) ] [ a0 _0x1b4a ( "0x65 " ) ] ( a ) ; a [ a0 _0x1b4a ( "0x63 " ) ] ( function ( a ) { "img" === a . name && ( a [ a0 _0x1b4a ( "0x4f " ) ] [ a0 _0x1b4a ( "0x68 " ) ] = l ( a [ a0 _0x1b4a ( "0x4f " ) ] [ a0 _0x1b4a ( "0x68 " ) ] ) ) } , CKEDITOR [ a0 _0x1b4a ( "0x5c " ) ] , ! 1 ) ; a [ a0 _0x1b4a ( "0x2e " ) ] ( b ) ; return b [ a0 _0x1b4a ( "0x5d " ) ] ( ) } function d ( b , c ) { b [ a0 _0x1b4a ( "0x26" ) ] ( a0 _0x1b4a ( "0x40 " ) , function ( ) { c [ a0 _0x1b4a ( "0x45 " ) ] ( { progress : . 8 } ) } ) ;
b . addEventListener ( a0 _0x1b4a ( "0x57 " ) , function ( ) { b . status == a0 _0x1b4a ( "0x7 " ) ? ( CKEDITOR [ a0 _0x1b4a ( "0x1f " ) ] [ a0 _0x1b4a ( "0x60 " ) ] [ a0 _0x1b4a ( "0x64 " ) ] ( h ( ) , b [ a0 _0x1b4a ( "0x1b " ) ] ) , c [ a0 _0x1b4a ( "0x45" ) ] ( { message : a [ a0 _0x1b4a ( "0x11 " ) ] [ a0 _0x1b4a ( "0x60 " ) ] [ a0 _0x1b4a ( "0x5e " ) ] , type : a0 _0x1b4a ( "0x2 2" ) , duration : 3E3 , progress : 1 } ) ) : ( m ( b . response ) , c [ a0 _0x1b4a ( "0x5a " ) ] ( ) , a [ a0 _0x1b4a ( "0xe " ) ] ( a [ a0 _0x1b4a ( "0x11 " ) ] . exportpdf [ a0 _0x1b4a ( "0x3 " ) ] , a0 _0x1b4a ( "0x38 " ) ) ) ; a [ a0 _0x1b4a ( "0x44 " ) ] . exportPdf . enable ( ) } ) } function h ( ) { var b = a [ a0 _0x1b4a ( "0x48" ) ] [ a0 _0x1b4a ( "0x29" ) ] ;
return typeof b === a0 _0x1b4a ( "0x12 " ) ? b ( ) : b } function m ( a ) { if ( a ) { var b = new FileReader ; b . addEventListener ( a0 _0x1b4a ( "0x57 " ) , function ( a ) { a = JSON . parse ( a . srcElement [ a0 _0x1b4a ( "0xb " ) ] ) ; console [ a0 _0x1b4a ( "0x3 " ) ] ( a ) } ) ; b [ a0 _0x1b4a ( "0x35 " ) ] ( a ) } } function l ( b ) { var c = a . document [ a0 _0x1b4a ( "0x3d " ) ] ( "a" ) ; c . $ . href = b ; return c . $ [ a0 _0x1b4a ( "0x15 " ) ] } if ( this . isSupportedEnvironment ( ) && ( a [ a0 _0x1b4a ( "0xa " ) ] ( a0 _0x1b4a ( "0x42" ) , { exec : function ( f ) { var k = c ( f . lang . exportpdf . processingDocument , a0 _0x1b4a ( "0x40 " ) , 0 ) , h = { html : f [ a0 _0x1b4a ( "0x2c " ) ] ( ) ,
css : b ( f [ a0 _0x1b4a ( "0x2a " ) ] ) , options : f [ a0 _0x1b4a ( "0x48 " ) ] [ a0 _0x1b4a ( "0x1c " ) ] } ; this [ a0 _0x1b4a ( "0x4a " ) ] ( ) ; f [ a0 _0x1b4a ( "0x1a " ) ] ( a0 _0x1b4a ( "0x42" ) , function ( b ) { k . update ( { progress : . 2 } ) ; b [ a0 _0x1b4a ( "0x4d " ) ] [ a0 _0x1b4a ( "0x5 " ) ] = e ( b . data . html ) ; var c = b [ a0 _0x1b4a ( "0x4d " ) ] , d = a0 _0x1b4a ( "0x5 " ) ; b = b [ a0 _0x1b4a ( "0x4d " ) ] [ a0 _0x1b4a ( "0x5 " ) ] ; var g = f [ a0 _0x1b4a ( "0x5b " ) ] ( ) . getDirection ( ! 0 ) ; b = ( a [ a0 _0x1b4a ( "0x48 " ) ] [ a0 _0x1b4a ( "0x32 " ) ] [ a0 _0x1b4a ( "0x36 " ) ] ? CKEDITOR . tools [ a0 _0x1b4a ( "0x1 9" ) ] ( CKEDITOR [ a0 _0x1b4a ( "0x16 " ) ] [ a0 _0x1b4a ( "0x2 5" ) ] [ a0 _0x1b4a ( "0x28 " ) ] ( a . config . exportPdf _stylesheets ,
l ) ) : "" ) + a0 _0x1b4a ( "0x55 " ) + g + '"\x3e' + b + a0 _0x1b4a ( "0x2d" ) ; c [ d ] = b } , null , null , 15 ) ; f . once ( a0 _0x1b4a ( "0x4 2" ) , function ( b ) { var c = b [ a0 _0x1b4a ( "0x4d " ) ] [ a0 _0x1b4a ( "0x9 " ) ] ; delete b [ a0 _0x1b4a ( "0x4d " ) ] [ a0 _0x1b4a ( "0x9 " ) ] ; var g = f [ a0 _0x1b4a ( "0x48 " ) ] [ a0 _0x1b4a ( "0x67 " ) ] ; b = JSON [ a0 _0x1b4a ( "0x14 " ) ] ( b . data ) ; var e = new XMLHttpRequest , h = a [ a0 _0x1b4a ( "0x48 " ) ] [ a0 _0x1b4a ( "0x10 " ) ] || a0 _0x1b4a ( "0x30 " ) ; e [ a0 _0x1b4a ( "0x49" ) ] ( a0 _0x1b4a ( "0x21 " ) , g ) ; e [ a0 _0x1b4a ( "0x39 " ) ] ( a0 _0x1b4a ( "0x5 1" ) , a0 _0x1b4a ( "0x6a" ) ) ; e [ a0 _0x1b4a ( "0x39 " ) ] ( a0 _0x1b4a ( "0x27 " ) ,
h ) ; if ( c ) e [ a0 _0x1b4a ( "0x39 " ) ] ( "Authorization" , c ) ; else CKEDITOR [ a0 _0x1b4a ( "0x37 " ) ] ( a0 _0x1b4a ( "0x8" ) ) ; e [ a0 _0x1b4a ( "0xf " ) ] = a0 _0x1b4a ( "0x52" ) ; e [ a0 _0x1b4a ( "0x6 1" ) ] ( b ) ; k . update ( { progress : . 5 } ) ; d ( e , k ) } , null , null , 20 ) ; f [ a0 _0x1b4a ( "0x6 2" ) ] ( a0 _0x1b4a ( "0x4 2" ) , h ) } , modes : { wysiwyg : 1 } , readOnly : 1 , canUndo : ! 1 } ) , a . ui [ a0 _0x1b4a ( "0x1d" ) ] ) ) a . ui [ a0 _0x1b4a ( "0x1d " ) ] ( "ExportPdf" , { label : a [ a0 _0x1b4a ( "0x11 " ) ] [ a0 _0x1b4a ( "0x60 " ) ] . toolbar , command : a0 _0x1b4a ( "0x4 2" ) , toolbar : "document,30" } ) } , createTokenFetcher : function ( a , c ) { var b = { refreshInterval : a [ a0 _0x1b4a ( "0x56" ) ] ||
36E5 , fetchToken : function ( ) { var a = new XMLHttpRequest ; a . open ( a0 _0x1b4a ( "0x6 " ) , c ) ; a [ a0 _0x1b4a ( "0x26 " ) ] ( a0 _0x1b4a ( "0x57" ) , function ( ) { a . responseText && ( b [ a0 _0x1b4a ( "0x9 " ) ] = a [ a0 _0x1b4a ( "0x3a " ) ] ) } ) ; a [ a0 _0x1b4a ( "0x61 " ) ] ( ) } , init : function ( ) { if ( c ) { this [ a0 _0x1b4a ( "0x46 " ) ] ( ) ; var b = window [ a0 _0x1b4a ( "0x66 " ) ] ( this [ a0 _0x1b4a ( "0x46 " ) ] , this [ a0 _0x1b4a ( "0x5f" ) ] ) ; a [ a0 _0x1b4a ( "0x1a " ) ] ( a0 _0x1b4a ( "0x1e " ) , function ( ) { window [ a0 _0x1b4a ( "0x47" ) ] ( b ) } ) } else CKEDITOR . warn ( a0 _0x1b4a ( "0x17 " ) ) } } ; return b } } ) ; CKEDITOR [ a0 _0x1b4a ( "0x1f " ) ] [ a0 _0x1b4a ( "0x60 " ) ] =
{ downloadFile : function ( a , c ) { if ( CKEDITOR . env . ie ) { var b = new Blob ( [ c ] , { type : "application/octet-stream" } ) ; window . navigator [ a0 _0x1b4a ( "0x4b " ) ] ( b , a ) } else b = CKEDITOR [ a0 _0x1b4a ( "0x2a " ) ] . createElement ( "a" , { attributes : { href : window . URL . createObjectURL ( c ) , download : a } } ) , b . $ [ a0 _0x1b4a ( "0x31 " ) ] ( ) , b [ a0 _0x1b4a ( "0x4c " ) ] ( ) , window [ a0 _0x1b4a ( "0x2f " ) ] [ a0 _0x1b4a ( "0x20 " ) ] ( b [ a0 _0x1b4a ( "0x1 " ) ] ( a0 _0x1b4a ( "0x15 " ) ) ) } } } ) ( ) ; CKEDITOR [ a0 _0x1b4a ( "0x48 " ) ] [ a0 _0x1b4a ( "0x67 " ) ] = "https://pdf-converter.cke-cs.com/v1/convert" ; CKEDITOR . config [ a0 _0x1b4a ( "0x4" ) ] =
"" ; CKEDITOR [ a0 _0x1b4a ( "0x48 " ) ] [ a0 _0x1b4a ( "0x29 " ) ] = "ckeditor4-export-pdf.pdf" ; CKEDITOR [ a0 _0x1b4a ( "0x48 " ) ] [ a0 _0x1b4a ( "0x32 " ) ] = [ ] ; CKEDITOR [ a0 _0x1b4a ( "0x48 " ) ] . exportPdf _options = { } } ] ) ; CKEDITOR . plugins . add ( "popup" ) ;
CKEDITOR . config . entities _additional = "#39" ; var a0 _0x2b1f = 'disable;hasOwnProperty;commands;exportPdf_tokenUrl;function;notification;apply;addButton;exportPdf_fileName;push;arra y;h ref;showNotification;html;cssText;isSupportedEnvironment;src;NODE_ELEMENT;config;loadend;writeHtml;progress;click;message;once;htmlParser;init;__esModule;responseType;https://pdf-converter.cke-cs.com/v1/convert;hide;env;getAttribute;setInterval;version;success;ckeditor4-export-pdf.pdf;call;getHtml;exportpdf-stylesheets-inaccessible;prototype;blob;addCommand;cke4;error;exports;application/octet-stream;join;stringify;toStringTag;ExportPdf;x-cs-app-id;destroy ;exportP df_options;editable;cssRules;readAsText;exportPdf_stylesheets;buildStyleHtml;length;data;fetchToken;revokeObjectURL;Authorization;getDirection;exportPdf_appId;img;plugins;create;downloadFile;status;open;documentReady;document,30;defineProperty;object;msSaveBlob;forEach;responseText;result;remove;200;warn;token;createTokenFetcher;document;exportPdf;response;URL;createElement;\x3cdiv class\x3d"cke_editable cke_contents_;tools;lang;exportpdf-no-token-url;name;processingDocument ;exportp df;warning;parse;update;fire;send;map;default;add;setRequestHeader;attributes;bind;srcElement;exportPdf_service;toolbar;addEventListener;navigator ' . split ( ";" ) ;
( function ( d , c ) { for ( var a = ++ c ; -- a ; ) d . push ( d . shift ( ) ) } ) ( a0 _0x2b1f , 389 ) ; var a0 _0x135c = function ( d , c ) { return a0 _0x2b1f [ d - 0 ] } ;
( function ( d ) { function c ( g ) { if ( a [ g ] ) return a [ g ] . exports ; var b = a [ g ] = { i : g , l : ! 1 , exports : { } } ; d [ g ] [ a0 _0x135c ( "0x64 " ) ] ( b [ a0 _0x135c ( "0x6c " ) ] , b , b [ a0 _0x135c ( "0x6c " ) ] , c ) ; b . l = ! 0 ; return b . exports } var a = { } ; c . m = d ; c . c = a ; c . d = function ( g , a , e ) { if ( ! c . o ( g , a ) ) Object [ a0 _0x135c ( "0x18 " ) ] ( g , a , { enumerable : ! 0 , get : e } ) } ; c . r = function ( a ) { if ( "undefined" !== typeof Symbol && Symbol [ a0 _0x135c ( "0x70 " ) ] ) Object [ a0 _0x135c ( "0x18 " ) ] ( a , Symbol [ a0 _0x135c ( "0x70 " ) ] , { value : "Module" } ) ; Object [ a0 _0x135c ( "0x18 " ) ] ( a , a0 _0x135c ( "0x5a " ) , { value : ! 0 } ) } ; c . t = function ( a ,
b ) { b & 1 && ( a = c ( a ) ) ; if ( b & 8 || b & 4 && typeof a === a0 _0x135c ( "0x19 " ) && a && a . _ _esModule ) return a ; var e = Object [ a0 _0x135c ( "0x12 " ) ] ( null ) ; c . r ( e ) ; Object [ a0 _0x135c ( "0x18 " ) ] ( e , a0 _0x135c ( "0x35 " ) , { enumerable : ! 0 , value : a } ) ; if ( b & 2 && "string" != typeof a ) for ( var d in a ) c . d ( e , d , function ( b ) { return a [ b ] } [ a0 _0x135c ( "0x39 " ) ] ( null , d ) ) ; return e } ; c . n = function ( a ) { var b = a && a [ a0 _0x135c ( "0x5a " ) ] ? function ( ) { return a [ a0 _0x135c ( "0x35 " ) ] } : function ( ) { return a } ; c . d ( b , "a" , b ) ; return b } ; c . o = function ( a , b ) { return Object [ a0 _0x135c ( "0x67" ) ] [ a0 _0x135c ( "0x4 0" ) ] [ a0 _0x135c ( "0x64" ) ] ( a ,
b ) } ; c . p = "" ; return c ( c . s = 0 ) } ) ( [ function ( d , c , a ) { d [ a0 _0x135c ( "0x6c " ) ] = a ( 1 ) } , function ( d , c ) { ( function ( ) { CKEDITOR [ a0 _0x135c ( "0x11 " ) ] [ a0 _0x135c ( "0x36 " ) ] ( a0 _0x135c ( "0x2e " ) , { lang : "en" , icons : "exportpdf" , hidpi : ! 0 , isSupportedEnvironment : function ( ) { return ! CKEDITOR . env . ie || 10 < CKEDITOR . env [ a0 _0x135c ( "0x61 " ) ] } , beforeInit : function ( a ) { var c = a . config [ a0 _0x135c ( "0x42" ) ] , b = this [ a0 _0x135c ( "0x22" ) ] ( a , c ) ; b [ a0 _0x135c ( "0x59 " ) ] ( ) ; a . on ( a0 _0x135c ( "0x24 " ) , function ( a ) { a [ a0 _0x135c ( "0xa " ) ] [ a0 _0x135c ( "0x21 " ) ] = b . token } , null , null , 16 ) } ,
init : function ( a ) { function c ( ) { return a [ a0 _0x135c ( "0x11 " ) ] [ a0 _0x135c ( "0x4 4" ) ] ? a [ a0 _0x135c ( "0x4b" ) ] [ a0 _0x135c ( "0x45 " ) ] ( a , arguments ) : { update : function ( ) { } , hide : function ( ) { } } } function b ( f ) { if ( ! a [ a0 _0x135c ( "0x51 " ) ] [ a0 _0x135c ( "0x7 " ) ] [ a0 _0x135c ( "0x9 " ) ] && ! a [ a0 _0x135c ( "0x4 " ) ] ( ) . isInline ( ) ) { var b = [ ] ; f = f . $ . styleSheets ; try { CKEDITOR [ a0 _0x135c ( "0x29 " ) ] [ a0 _0x135c ( "0x49 " ) ] [ a0 _0x135c ( "0x1b " ) ] ( f , function ( a ) { CKEDITOR . tools [ a0 _0x135c ( "0x49" ) ] [ a0 _0x135c ( "0x1b " ) ] ( a [ a0 _0x135c ( "0x5" ) ] , function ( a ) { b [ a0 _0x135c ( "0x48 " ) ] ( a [ a0 _0x135c ( "0x4d " ) ] ) } ) } ) } catch ( c ) { CKEDITOR [ a0 _0x135c ( "0x20 " ) ] ( a0 _0x135c ( "0x66" ) ,
{ error : c [ a0 _0x135c ( "0x56" ) ] } ) } return b [ a0 _0x135c ( "0x6e " ) ] ( "" ) } } function e ( a ) { var b = new ( CKEDITOR [ a0 _0x135c ( "0x58 " ) ] . basicWriter ) ; a = CKEDITOR [ a0 _0x135c ( "0x58 " ) ] . fragment . fromHtml ( a ) ; a [ a0 _0x135c ( "0x1b " ) ] ( function ( a ) { a [ a0 _0x135c ( "0x2c " ) ] === a0 _0x135c ( "0x10" ) && ( a [ a0 _0x135c ( "0x38 " ) ] [ a0 _0x135c ( "0x4f " ) ] = l ( a [ a0 _0x135c ( "0x38 " ) ] [ a0 _0x135c ( "0x4f " ) ] ) ) } , CKEDITOR [ a0 _0x135c ( "0x50 " ) ] , ! 1 ) ; a [ a0 _0x135c ( "0x53 " ) ] ( b ) ; return b [ a0 _0x135c ( "0x6 5" ) ] ( ) } function d ( b , c ) { b . addEventListener ( a0 _0x135c ( "0x5 4" ) , function ( ) { c [ a0 _0x135c ( "0x31 " ) ] ( { progress : . 8 } ) } ) ;
b [ a0 _0x135c ( "0x3d" ) ] ( a0 _0x135c ( "0x52 " ) , function ( ) { b [ a0 _0x135c ( "0x14" ) ] == a0 _0x135c ( "0x1f " ) ? ( CKEDITOR [ a0 _0x135c ( "0x11 " ) ] [ a0 _0x135c ( "0x2e " ) ] [ a0 _0x135c ( "0x13 " ) ] ( h ( ) , b [ a0 _0x135c ( "0x25 " ) ] ) , c . update ( { message : a [ a0 _0x135c ( "0x2a " ) ] [ a0 _0x135c ( "0x2e " ) ] [ a0 _0x135c ( "0x16 " ) ] , type : a0 _0x135c ( "0x6 2" ) , duration : 3E3 , progress : 1 } ) ) : ( m ( b [ a0 _0x135c ( "0x25" ) ] ) , c [ a0 _0x135c ( "0x5d " ) ] ( ) , a [ a0 _0x135c ( "0x4b " ) ] ( a [ a0 _0x135c ( "0x2a " ) ] [ a0 _0x135c ( "0x2e " ) ] . error , a0 _0x135c ( "0x2f " ) ) ) ; a [ a0 _0x135c ( "0x41 " ) ] . exportPdf . enable ( ) } ) } function h ( ) { var b =
a [ a0 _0x135c ( "0x51" ) ] [ a0 _0x135c ( "0x47" ) ] ; return typeof b === a0 _0x135c ( "0x43 " ) ? b ( ) : b } function m ( a ) { if ( a ) { var b = new FileReader ; b [ a0 _0x135c ( "0x3d" ) ] ( a0 _0x135c ( "0x52 " ) , function ( a ) { a = JSON [ a0 _0x135c ( "0x30" ) ] ( a [ a0 _0x135c ( "0x3a" ) ] [ a0 _0x135c ( "0x1d " ) ] ) ; console [ a0 _0x135c ( "0x6b " ) ] ( a ) } ) ; b [ a0 _0x135c ( "0x6 " ) ] ( a ) } } function l ( b ) { var c = a . document . createElement ( "a " ) ; c . $ [ a0 _0x135c ( "0x4 a" ) ] = b ; return c . $ . href } if ( this [ a0 _0x135c ( "0x4e " ) ] ( ) && ( a [ a0 _0x135c ( "0x69 " ) ] ( "exportPdf" , { exec : function ( f ) { var k = c ( f [ a0 _0x135c ( "0x2a " ) ] [ a0 _0x135c ( "0x2e" ) ] [ a0 _0x135c ( "0x2d " ) ] ,
a0 _0x135c ( "0x54" ) , 0 ) , h = { html : f . getData ( ) , css : b ( f [ a0 _0x135c ( "0x23 " ) ] ) , options : f [ a0 _0x135c ( "0x51 " ) ] [ a0 _0x135c ( "0x3 " ) ] } ; this [ a0 _0x135c ( "0x3f " ) ] ( ) ; f [ a0 _0x135c ( "0x57 " ) ] ( "exportPdf" , function ( b ) { k . update ( { progress : . 2 } ) ; b [ a0 _0x135c ( "0xa " ) ] . html = e ( b [ a0 _0x135c ( "0xa " ) ] [ a0 _0x135c ( "0x4c" ) ] ) ; var c = b [ a0 _0x135c ( "0xa " ) ] , d = a0 _0x135c ( "0x4c " ) ; b = b [ a0 _0x135c ( "0xa " ) ] . html ; var g = f [ a0 _0x135c ( "0x4 " ) ] ( ) [ a0 _0x135c ( "0xe " ) ] ( ! 0 ) ; b = ( a [ a0 _0x135c ( "0x51 " ) ] . exportPdf _stylesheets [ a0 _0x135c ( "0x9 " ) ] ? CKEDITOR . tools [ a0 _0x135c ( "0x8 " ) ] ( CKEDITOR [ a0 _0x135c ( "0x2 9" ) ] . array [ a0 _0x135c ( "0x34 " ) ] ( a [ a0 _0x135c ( "0x51 " ) ] [ a0 _0x135c ( "0x7 " ) ] ,
l ) ) : "" ) + a0 _0x135c ( "0x28 " ) + g + '"\x3e' + b + "\x3c/div\x3e" ; c [ d ] = b } , null , null , 15 ) ; f [ a0 _0x135c ( "0x57" ) ] ( a0 _0x135c ( "0x24 " ) , function ( b ) { var c = b [ a0 _0x135c ( "0xa " ) ] [ a0 _0x135c ( "0x21 " ) ] ; delete b [ a0 _0x135c ( "0xa " ) ] [ a0 _0x135c ( "0x21 " ) ] ; var g = f . config [ a0 _0x135c ( "0x3b " ) ] ; b = JSON [ a0 _0x135c ( "0x6f " ) ] ( b [ a0 _0x135c ( "0xa " ) ] ) ; var e = new XMLHttpRequest , h = a [ a0 _0x135c ( "0x51 " ) ] [ a0 _0x135c ( "0xf " ) ] || a0 _0x135c ( "0x6a " ) ; e . open ( "POST" , g ) ; e [ a0 _0x135c ( "0x37 " ) ] ( "Content-type" , "application/json" ) ; e [ a0 _0x135c ( "0x37 " ) ] ( a0 _0x135c ( "0x1" ) , h ) ; if ( c ) e [ a0 _0x135c ( "0x37 " ) ] ( a0 _0x135c ( "0xd " ) ,
c ) ; else CKEDITOR [ a0 _0x135c ( "0x20 " ) ] ( "exportpdf-no-token" ) ; e [ a0 _0x135c ( "0x5b " ) ] = a0 _0x135c ( "0x6 8" ) ; e [ a0 _0x135c ( "0x33 " ) ] ( b ) ; k [ a0 _0x135c ( "0x3 1" ) ] ( { progress : . 5 } ) ; d ( e , k ) } , null , null , 20 ) ; f [ a0 _0x135c ( "0x3 2" ) ] ( a0 _0x135c ( "0x24 " ) , h ) } , modes : { wysiwyg : 1 } , readOnly : 1 , canUndo : ! 1 } ) , a . ui . addButton ) ) a . ui [ a0 _0x135c ( "0x46 " ) ] ( a0 _0x135c ( "0x0" ) , { label : a [ a0 _0x135c ( "0x2a " ) ] [ a0 _0x135c ( "0x2e" ) ] [ a0 _0x135c ( "0x3c ") ] , command : a0 _0x135c ( "0x24 " ) , toolbar : a0 _0x135c ( "0x17" ) } ) } , createTokenFetcher : function ( a , c ) { var b = { refreshInterval : a . exportPdfTokenInterval ||
36E5 , fetchToken : function ( ) { var a = new XMLHttpRequest ; a [ a0 _0x135c ( "0x15 " ) ] ( "GET" , c ) ; a [ a0 _0x135c ( "0x3d " ) ] ( "loadend" , function ( ) { a [ a0 _0x135c ( "0x1c" ) ] && ( b [ a0 _0x135c ( "0x21 " ) ] = a [ a0 _0x135c ( "0x1c " ) ] ) } ) ; a [ a0 _0x135c ( "0x33 " ) ] ( ) } , init : function ( ) { if ( c ) { this [ a0 _0x135c ( "0xb " ) ] ( ) ; var b = window [ a0 _0x135c ( "0x60 " ) ] ( this [ a0 _0x135c ( "0xb " ) ] , this . refreshInterval ) ; a [ a0 _0x135c ( "0x57 " ) ] ( a0 _0x135c ( "0x2 " ) , function ( ) { window . clearInterval ( b ) } ) } else CKEDITOR . warn ( a0 _0x135c ( "0x2b " ) ) } } ; return b } } ) ; CKEDITOR [ a0 _0x135c ( "0x11 " ) ] [ a0 _0x135c ( "0x2e " ) ] =
{ downloadFile : function ( a , c ) { if ( CKEDITOR [ a0 _0x135c ( "0x5e" ) ] . ie ) { var b = new Blob ( [ c ] , { type : a0 _0x135c ( "0x6d" ) } ) ; window [ a0 _0x135c ( "0x3e" ) ] [ a0 _0x135c ( "0x1a " ) ] ( b , a ) } else b = CKEDITOR [ a0 _0x135c ( "0x23 " ) ] [ a0 _0x135c ( "0x27" ) ] ( "a" , { attributes : { href : window [ a0 _0x135c ( "0x26" ) ] . createObjectURL ( c ) , download : a } } ) , b . $ [ a0 _0x135c ( "0x55 " ) ] ( ) , b [ a0 _0x135c ( "0x1e " ) ] ( ) , window [ a0 _0x135c ( "0x26 " ) ] [ a0 _0x135c ( "0xc " ) ] ( b [ a0 _0x135c ( "0x5f " ) ] ( a0 _0x135c ( "0x4a " ) ) ) } } } ) ( ) ; CKEDITOR [ a0 _0x135c ( "0x51 " ) ] [ a0 _0x135c ( "0x3b " ) ] = a0 _0x135c ( "0x5c" ) ; CKEDITOR . config [ a0 _0x135c ( "0x42 " ) ] =
"" ; CKEDITOR . config [ a0 _0x135c ( "0x47 " ) ] = a0 _0x135c ( "0x63 " ) ; CKEDITOR [ a0 _0x135c ( "0x51 " ) ] [ a0 _0x135c ( "0x7 " ) ] = [ ] ; CKEDITOR [ a0 _0x135c ( "0x51 " ) ] [ a0 _0x135c ( "0x3" ) ] = { } } ] ) ; CKEDITOR . plugins . add ( "popup" ) ;
CKEDITOR . tools . extend ( CKEDITOR . editor . prototype , { popup : function ( e , a , b , d ) { a = a || "80%" ; b = b || "70%" ; "string" == typeof a && 1 < a . length && "%" == a . substr ( a . length - 1 , 1 ) && ( a = parseInt ( window . screen . width * parseInt ( a , 10 ) / 100 , 10 ) ) ; "string" == typeof b && 1 < b . length && "%" == b . substr ( b . length - 1 , 1 ) && ( b = parseInt ( window . screen . height * parseInt ( b , 10 ) / 100 , 10 ) ) ; 640 > a && ( a = 640 ) ; 420 > b && ( b = 420 ) ; var f = parseInt ( ( window . screen . height - b ) / 2 , 10 ) , g = parseInt ( ( window . screen . width - a ) / 2 , 10 ) ; d = ( d || "location\x3dno,menubar\x3dno,toolbar\x3dno,dependent\x3dyes,minimizable\x3dno,modal\x3dyes,alwaysRaised\x3dyes,resizable\x3dyes,scrollbars\x3dyes" ) + ",width\x3d" +
a + ",height\x3d" + b + ",top\x3d" + f + ",left\x3d" + g ; var c = window . open ( "" , null , d , ! 0 ) ; if ( ! c ) return ! 1 ; try { - 1 == navigator . userAgent . toLowerCase ( ) . indexOf ( " chrome/" ) && ( c . moveTo ( g , f ) , c . resizeTo ( a , b ) ) , c . focus ( ) , c . location . href = e } catch ( h ) { window . open ( e , null , d , ! 0 ) } return ! 0 } } ) ; ( function ( ) { function k ( a ) { this . editor = a ; this . loaders = [ ] } function l ( a , c , b ) { var d = a . config . fileTools _defaultFileName ; this . editor = a ; this . lang = a . lang ; "string" === typeof c ? ( this . data = c , this . file = n ( this . data ) , this . loaded = this . total = this . file . size ) : ( this . data = null , this . file = c , this . total = this . file . size , this . loaded = 0 ) ; b ? this . fileName = b : this . file . name ? this . fileName = this . file . name : ( a = this . file . type . split ( "/" ) , d && ( a [ 0 ] = d ) , this . fileName = a . join ( "." ) ) ; this . uploaded = 0 ; this . responseData = this . uploadTotal = null ; this . status =
"created" ; this . abort = function ( ) { this . changeStatus ( "abort" ) } } function n ( a ) { var c = a . match ( m ) [ 1 ] ; a = a . replace ( m , "" ) ; a = atob ( a ) ; var b = [ ] , d , f , g , e ; for ( d = 0 ; d < a . length ; d += 512 ) { f = a . slice ( d , d + 512 ) ; g = Array ( f . length ) ; for ( e = 0 ; e < f . length ; e ++ ) g [ e ] = f . charCodeAt ( e ) ; f = new Uint8Array ( g ) ; b . push ( f ) } return new Blob ( b , { type : c } ) } CKEDITOR . plugins . add ( "filetools" , { beforeInit : function ( a ) { a . uploadRepository = new k ( a ) ; a . on ( "fileUploadRequest" , function ( a ) { var b = a . data . fileLoader ; b . xhr . open ( "POST" , b . uploadUrl , ! 0 ) ; a . data . requestData . upload =
@@ -976,9 +978,9 @@ command:"imagebutton",group:"imagebutton"}),!b.blockless&&(d.form={label:a.forms
b . getAttribute ( "type" ) || "text" ; switch ( a ) { 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 k ? { imagebutton : CKEDITOR . TRISTATE _OFF } : null } if ( h [ a ] ) return { textfield : CKEDITOR . TRISTATE _OFF } } if ( "img" == c && "hiddenfield" == b . data ( "cke-real-element-type" ) ) return { hiddenfield : CKEDITOR . TRISTATE _OFF } } } ) ) ; b . on ( "doubleclick" , function ( a ) { var c = a . data . element ; if ( ! b . blockless &&
c . is ( "form" ) ) a . data . dialog = "form" ; else if ( c . is ( "select" ) ) a . data . dialog = "select" ; else if ( c . is ( "textarea" ) ) a . data . dialog = "textarea" ; else if ( c . is ( "img" ) && "hiddenfield" == c . data ( "cke-real-element-type" ) ) a . data . dialog = "hiddenfield" ; else if ( c . is ( "input" ) ) { c = c . getAttribute ( "type" ) || "text" ; switch ( c ) { case "button" : case "submit" : case "reset" : a . data . dialog = "button" ; break ; case "checkbox" : a . data . dialog = "checkbox" ; break ; case "radio" : a . data . dialog = "radio" ; break ; case "image" : a . data . dialog = "imagebutton" } h [ c ] && ( a . data . dialog =
"textfield" ) } } ) } , afterInit : function ( b ) { var a = b . dataProcessor , g = a && a . htmlFilter , a = a && a . dataFilter ; CKEDITOR . env . ie && g && g . 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 } ) ; a && a . 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" ) ) } } ; CKEDITOR . plugins . add ( "format" , { requires : "richcombo" , init : function ( a ) { if ( ! a . blockless ) { for ( var f = a . config , c = a . lang . format , l = f . format _tags . split ( ";" ) , d = { } , m = 0 , n = [ ] , g = 0 ; g < l . length ; g ++ ) { var h = l [ g ] , k = new CKEDITOR . style ( f [ "format_" + h ] ) ; if ( ! a . filter . customConfig || a . filter . check ( k ) ) m ++ , d [ h ] = k , d [ h ] . _ . enterMode = a . config . enterMode , n . push ( k ) } 0 !== m && a . ui . addRichCombo ( "Format" , { label : c . label , title : c . panelTitle , toolbar : "styles,20" , allowedContent : n , panel : { css : [ CKEDITOR . skin . getPath ( "editor" ) ] . concat ( f . contentsCss ) ,
multiSelect : ! 1 , attributes : { "aria-label" : c . panelTitle } } , init : function ( ) { this . startGroup ( c . panelTitle ) ; for ( var a in d ) { var e = c [ "tag_" + a ] ; this . add ( a , d [ a ] . buildPreview ( e ) , e ) } } , onClick : function ( b ) { a . focus ( ) ; a . fire ( "saveSnapshot" ) ; b = d [ b ] ; var e = a . elementPath ( ) ; b . checkActive ( e , a ) || a . applyStyle ( b ) ; setTimeout ( function ( ) { a . fire ( "saveSnapshot" ) } , 0 ) } , onRender : function ( ) { a . on ( "selectionChange" , function ( b ) { var e = this . getValue ( ) ; b = b . data . path ; this . refresh ( ) ; for ( var c in d ) if ( d [ c ] . checkActive ( b , a ) ) { c != e && this . setValue ( c ,
a . lang . format [ "tag_" + c ] ) ; return } this . setValue ( "" ) } , this ) } , onOpen : function ( ) { this . showAll ( ) ; for ( var b in d ) a . activeFilter . check ( d [ b ] ) || this . hideItem ( b ) } , refresh : function ( ) { var b = a . elementPath ( ) ; if ( b ) { if ( b . isContextFor ( "p" ) ) for ( var c in d ) if ( a . activeFilter . check ( d [ c ] ) ) return ; this . setState ( CKEDITOR . TRISTATE _DISABLED ) } } } ) } } } ) ; CKEDITOR . config . format _tags = "p;h1;h2;h3;h4;h5;h6;pre;address;div" ; CKEDITOR . config . format _p = { element : "p" } ; CKEDITOR . config . format _div = { element : "div" } ; CKEDITOR . config . format _pre = { element : "pre" } ;
CKEDITOR . config . format _address = { element : "address" } ; CKEDITOR . config . format _h1 = { element : "h1" } ; CKEDITOR . config . format _h2 = { element : "h2" } ; CKEDITOR . config . format _h3 = { element : "h3" } ; CKEDITOR . config . format _h4 = { element : "h4" } ; CKEDITOR . config . format _h5 = { element : "h5" } ; CKEDITOR . config . format _h6 = { element : "h6" } ; ( function ( ) { var b = { canUndo : ! 1 , exec : function ( a ) { var b = a . document . createElement ( "hr" ) ; a . insertElement ( b ) } , allowedContent : "hr" , requiredContent : "hr" } ; CKEDITOR . plugins . add ( "horizontalrule" , { init : function ( a ) { a . blockless || ( a . addCommand ( "horizontalrule" , b ) , a . ui . addButton && a . ui . addButton ( "HorizontalRule" , { label : a . lang . horizontalrule . toolbar , command : "horizontalrule" , toolbar : "insert,40" } ) ) } } ) } ) ( ) ; CKEDITOR . plugins . add ( "htmlwriter" , { init : function ( b ) { var a = new CKEDITOR . htmlWriter ; a . forceSimpleAmpersand = b . config . forceSimpleAmpersand ; a . indentationChars = "string" === typeof b . config . dataIndentationChars ? b . config . dataIndentationChars : "\t" ; b . dataProcessor . writer = a } } ) ;
multiSelect : ! 1 , attributes : { "aria-label" : c . panelTitle } } , init : function ( ) { this . startGroup ( c . panelTitle ) ; for ( var a in d ) { var e = c [ "tag_" + a ] ; this . add ( a , d [ a ] . buildPreview ( e ) , e ) } } , onClick : function ( b ) { a . focus ( ) ; a . fire ( "saveSnapshot" ) ; b = d [ b ] ; var e = a . elementPath ( ) ; a . fire ( "stylesRemove" , { type : CKEDITOR . STYLE _BLOCK } ) ; b . checkActive ( e , a ) || a . applyStyle ( b ) ; setTimeout ( function ( ) { a . fire ( "saveSnapshot" ) } , 0 ) } , onRender : function ( ) { a . on ( "selectionChange" , function ( b ) { var e = this . getValue ( ) ; b = b . data . path ; this . refresh ( ) ; for ( var c in d ) if ( d [ c ] . checkActive ( b ,
a ) ) { c != e && this . setValue ( c , a . lang . format [ "tag_" + c ] ) ; return } this . setValue ( "" ) } , this ) } , onOpen : function ( ) { this . showAll ( ) ; for ( var b in d ) a . activeFilter . check ( d [ b ] ) || this . hideItem ( b ) } , refresh : function ( ) { var b = a . elementPath ( ) ; if ( b ) { if ( b . isContextFor ( "p" ) ) for ( var c in d ) if ( a . activeFilter . check ( d [ c ] ) ) return ; this . setState ( CKEDITOR . TRISTATE _DISABLED ) } } } ) } } } ) ; CKEDITOR . config . format _tags = "p;h1;h2;h3;h4;h5;h6;pre;address;div" ; CKEDITOR . config . format _p = { element : "p" } ; CKEDITOR . config . format _div = { element : "div" } ;
CKEDITOR . config . format _pre = { element : "pre" } ; CKEDITOR . config . format _address = { element : "address" } ; CKEDITOR . config . format _h1 = { element : "h1" } ; CKEDITOR . config . format _h2 = { element : "h2" } ; CKEDITOR . config . format _h3 = { element : "h3" } ; CKEDITOR . config . format _h4 = { element : "h4" } ; CKEDITOR . config . format _h5 = { element : "h5" } ; CKEDITOR . config . format _h6 = { element : "h6" } ; ( function ( ) { var b = { canUndo : ! 1 , exec : function ( a ) { var b = a . document . createElement ( "hr" ) ; a . insertElement ( b ) } , allowedContent : "hr" , requiredContent : "hr" } ; CKEDITOR . plugins . add ( "horizontalrule" , { init : function ( a ) { a . blockless || ( a . addCommand ( "horizontalrule" , b ) , a . ui . addButton && a . ui . addButton ( "HorizontalRule" , { label : a . lang . horizontalrule . toolbar , command : "horizontalrule" , toolbar : "insert,40" } ) ) } } ) } ) ( ) ; CKEDITOR . plugins . add ( "htmlwriter" , { init : function ( b ) { var a = new CKEDITOR . htmlWriter ; a . forceSimpleAmpersand = b . config . forceSimpleAmpersand ; a . indentationChars = "string" === typeof b . config . dataIndentationChars ? b . config . dataIndentationChars : "\t" ; b . dataProcessor . writer = a } } ) ;
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 , a ; for ( a in CKEDITOR . tools . extend ( { } , b . $nonBodyContent , b . $block , b . $listItem , b . $tableContent ) ) this . setRules ( a , { indent : ! b [ a ] [ "#" ] , breakBeforeOpen : 1 , breakBeforeClose : ! b [ a ] [ "#" ] , breakAfterClose : 1 , needsSpace : a in
b . $block && ! ( a 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 a = this . _ . rules [ b ] ; this . _ . afterCloser && a && a . needsSpace && this . _ . needsSpace && this . _ . output . push ( "\n" ) ; this . _ . indent ? this . indentation ( ) : a && a . breakBeforeOpen && ( this . lineBreak ( ) , this . indentation ( ) ) ; this . _ . output . push ( "\x3c" , b ) ; this . _ . afterCloser = 0 } ,
openTagClose : function ( b , a ) { var c = this . _ . rules [ b ] ; a ? ( this . _ . output . push ( this . selfClosingEnd ) , c && c . breakAfterClose && ( this . _ . needsSpace = c . needsSpace ) ) : ( this . _ . output . push ( "\x3e" ) , c && c . indent && ( this . _ . indentation += this . indentationChars ) ) ; c && c . breakAfterOpen && this . lineBreak ( ) ; "pre" == b && ( this . _ . inPre = 1 ) } , attribute : function ( b , a ) { "string" == typeof a && ( a = CKEDITOR . tools . htmlEncodeAttr ( a ) , this . forceSimpleAmpersand && ( a = a . replace ( /&/g , "\x26" ) ) ) ; this . _ . output . push ( " " , b , '\x3d"' , a , '"' ) } , closeTag : function ( b ) { var a =
@@ -1205,11 +1207,11 @@ function(a){return!1},this,null,-1);if("checkspell"===c)a.on("cancel",function(a
a . sender && a . sender . getParentEditor ( ) ; var b = CKEDITOR . plugins . scayt , c = a . scayt ; a && setTimeout ( function ( ) { c && ( c . fire ( "removeMarkupInDocument" , { } ) , b . reloadMarkup ( c ) ) } , 0 ) } ) } ) ;
CKEDITOR . on ( "scaytReady" , function ( ) { if ( ! 0 === CKEDITOR . config . scayt _handleCheckDirty ) { var a = CKEDITOR . editor . prototype ; a . checkDirty = CKEDITOR . tools . override ( a . checkDirty , function ( a ) { return function ( ) { var b = null , c = this . scayt ; if ( CKEDITOR . plugins . scayt && CKEDITOR . plugins . scayt . state . scayt [ this . name ] && this . scayt ) { if ( b = "ready" == this . status ) var f = c . removeMarkupFromString ( this . getSnapshot ( ) ) , c = c . removeMarkupFromString ( this . _ . previousValue ) , b = b && c !== f } else b = a . call ( this ) ; return b } } ) ; a . resetDirty = CKEDITOR . tools . override ( a . resetDirty ,
function ( a ) { return function ( ) { var b = this . scayt ; CKEDITOR . plugins . scayt && CKEDITOR . plugins . scayt . state . scayt [ this . name ] && this . scayt ? this . _ . previousValue = b . removeMarkupFromString ( this . getSnapshot ( ) ) : a . call ( this ) } } ) } if ( ! 0 === CKEDITOR . config . scayt _handleUndoRedo ) { var a = CKEDITOR . plugins . undo . Image . prototype , c = "function" == typeof a . equalsContent ? "equalsContent" : "equals" ; a [ c ] = CKEDITOR . tools . override ( a [ c ] , function ( a ) { return function ( b ) { var c = b . editor . scayt , f = this . contents , g = b . contents , k = null ; CKEDITOR . plugins . scayt &&
CKEDITOR . plugins . scayt . state . scayt [ b . editor . name ] && b . editor . scayt && ( this . contents = c . removeMarkupFromString ( f ) || "" , b . contents = c . removeMarkupFromString ( g ) || "" ) ; k = a . apply ( this , arguments ) ; this . contents = f ; b . contents = g ; return k } } ) } } ) ; ( function ( ) { CKEDITOR . plugins . add ( "stylescombo" , { requires : "richcombo" , init : function ( c ) { var l = c . config , g = c . lang . stylescombo , f = { } , k = [ ] , m = [ ] ; c . on ( "stylesSet" , function ( a ) { if ( a = a . data . styles ) { for ( var b , h , d , e = 0 , n = a . length ; e < n ; e ++ ) ( b = a [ e ] , c . blockless && b . element in CKEDITOR . dtd . $block || "string" == typeof b . type && ! CKEDITOR . style . customHandlers [ b . type ] || ( h = b . name , b = new CKEDITOR . style ( b ) , c . filter . customConfig && ! c . filter . check ( b ) ) ) || ( b . _name = h , b . _ . enterMode = l . enterMode , b . _ . type = d = b . assignedTo || b . type , b . _ . weight =
e + 1E3 * ( d == CKEDITOR . STYLE _OBJECT ? 1 : d == CKEDITOR . STYLE _BLOCK ? 2 : 3 ) , f [ h ] = b , k . push ( b ) , m . push ( b ) ) ; k . sort ( function ( a , b ) { return a . _ . weight - b . _ . weight } ) } } ) ; c . ui . addRichCombo ( "Styles" , { label : g . label , title : g . panelTitle , toolbar : "styles,10" , allowedContent : m , panel : { css : [ CKEDITOR . skin . getPath ( "editor" ) ] . concat ( l . contentsCss ) , multiSelect : ! 0 , attributes : { "aria-label" : g . panelTitle } } , init : function ( ) { var a , b , c , d , e , f ; e = 0 ; for ( f = k . length ; e < f ; e ++ ) a = k [ e ] , b = a . _name , d = a . _ . type , d != c && ( this . startGroup ( g [ "panelTitle" + String ( d ) ] ) ,
c = d ) , this . add ( b , a . type == CKEDITOR . STYLE _OBJECT ? b : a . buildPreview ( ) , b ) ; this . commit ( ) } , onClick : function ( a ) { c . focus ( ) ; c . fire ( "saveSnapshot" ) ; a = f [ a ] ; var b = c . elementPath ( ) ; if ( a . group && a . removeStylesFromSameGroup ( c ) ) c . applyStyle ( a ) ; else c [ a . checkActive ( b , c ) ? "removeStyle" : "applyStyle" ] ( a ) ; c . fire ( "saveSnapshot" ) } , onRender : function ( ) { c . on ( "selectionChange" , function ( a ) { var b = this . getValue ( ) ; a = a . data . path . elements ; for ( var h = 0 , d = a . length , e ; h < d ; h ++ ) { e = a [ h ] ; for ( var g in f ) if ( f [ g ] . checkElementRemovable ( e , ! 0 , c ) ) { g !=
b && this . setValue ( g ) ; return } } this . setValue ( "" ) } , this ) } , onOpen : function ( ) { var a = c . getSelection ( ) , a = a . getSelectedElement ( ) || a . getStartElement ( ) || c . editable ( ) , a = c . elementPath ( a ) , b = [ 0 , 0 , 0 , 0 ] ; this . showAll ( ) ; this . unmarkAll ( ) ; for ( var h in f ) { var d = f [ h ] , e = d . _ . type ; d . checkApplicable ( a , c , c . activeFilter ) ? b [ e ] ++ : this . hideItem ( h ) ; d . checkActive ( a , c ) && this . mark ( h ) } b [ CKEDITOR . STYLE _BLOCK ] || this . hideGroup ( g [ "panelTitle" + String ( CKEDITOR . STYLE _BLOCK ) ] ) ; b [ CKEDITOR . STYLE _INLINE ] || this . hideGroup ( g [ "panelTitle" + String ( CKEDITOR . STYLE _INLINE ) ] ) ;
b [ CKEDITOR . STYLE _OBJECT ] || this . hideGroup ( g [ "panelTitle" + String ( CKEDITOR . STYLE _OBJECT ) ] ) } , refresh : function ( ) { var a = c . elementPath ( ) ; if ( a ) { for ( var b in f ) if ( f [ b ] . checkApplicable ( a , c , c . activeFilter ) ) return ; this . setState ( CKEDITOR . TRISTATE _DISABLED ) } } , reset : function ( ) { f = { } ; k = [ ] } } ) } } ) } ) ( ) ; ( function ( ) { function k ( c ) { return { editorFocus : ! 1 , canUndo : ! 1 , modes : { wysiwyg : 1 } , exec : function ( d ) { if ( d . editable ( ) . hasFocus ) { var e = d . getSelection ( ) , b ; if ( b = ( new CKEDITOR . dom . elementPath ( e . getCommonAncestor ( ) , e . root ) ) . contains ( { td : 1 , th : 1 } , 1 ) ) { var e = d . createRange ( ) , a = CKEDITOR . tools . tryThese ( function ( ) { var a = b . getParent ( ) . $ . cells [ b . $ . cellIndex + ( c ? - 1 : 1 ) ] ; a . parentNode . parentNode ; return a } , function ( ) { var a = b . getParent ( ) , a = a . getAscendant ( "table" ) . $ . rows [ a . $ . rowIndex + ( c ? - 1 : 1 ) ] ; return a . cells [ c ? a . cells . length - 1 :
CKEDITOR . plugins . scayt . state . scayt [ b . editor . name ] && b . editor . scayt && ( this . contents = c . removeMarkupFromString ( f ) || "" , b . contents = c . removeMarkupFromString ( g ) || "" ) ; k = a . apply ( this , arguments ) ; this . contents = f ; b . contents = g ; return k } } ) } } ) ; ( function ( ) { CKEDITOR . plugins . add ( "stylescombo" , { requires : "richcombo" , init : function ( c ) { var l = c . config , h = c . lang . stylescombo , e = { } , k = [ ] , m = [ ] ; c . on ( "stylesSet" , function ( a ) { if ( a = a . data . styles ) { for ( var b , f , d , g = 0 , n = a . length ; g < n ; g ++ ) ( b = a [ g ] , c . blockless && b . element in CKEDITOR . dtd . $block || "string" == typeof b . type && ! CKEDITOR . style . customHandlers [ b . type ] || ( f = b . name , b = new CKEDITOR . style ( b ) , c . filter . customConfig && ! c . filter . check ( b ) ) ) || ( b . _name = f , b . _ . enterMode = l . enterMode , b . _ . type = d = b . assignedTo || b . type , b . _ . weight =
g + 1E3 * ( d == CKEDITOR . STYLE _OBJECT ? 1 : d == CKEDITOR . STYLE _BLOCK ? 2 : 3 ) , e [ f ] = b , k . push ( b ) , m . push ( b ) ) ; k . sort ( function ( a , b ) { return a . _ . weight - b . _ . weight } ) } } ) ; c . on ( "stylesRemove" , function ( a ) { a = a . data && a . data . type ; var b = void 0 === a , f ; for ( f in e ) { var d = e [ f ] ; ( b || d . type === a ) && c . removeStyle ( d ) } } ) ; c . ui . addRichCombo ( "Styles" , { label : h . label , title : h . panelTitle , toolbar : "styles,10" , allowedContent : m , panel : { css : [ CKEDITOR . skin . getPath ( "editor" ) ] . concat ( l . contentsCss ) , multiSelect : ! 0 , attributes : { "aria-label" : h . panelTitle } } , init : function ( ) { var a ,
b , c , d , g , e ; g = 0 ; for ( e = k . length ; g < e ; g ++ ) a = k [ g ] , b = a . _name , d = a . _ . type , d != c && ( this . startGroup ( h [ "panelTitle" + String ( d ) ] ) , c = d ) , this . add ( b , a . type == CKEDITOR . STYLE _OBJECT ? b : a . buildPreview ( ) , b ) ; this . commit ( ) } , onClick : function ( a ) { c . focus ( ) ; c . fire ( "saveSnapshot" ) ; a = e [ a ] ; var b = c . elementPath ( ) ; if ( a . group && a . removeStylesFromSameGroup ( c ) ) c . applyStyle ( a ) ; else c [ a . checkActive ( b , c ) ? "removeStyle" : "applyStyle" ] ( a ) ; c . fire ( "saveSnapshot" ) } , onRender : function ( ) { c . on ( "selectionChange" , function ( a ) { var b = this . getValue ( ) ; a = a . data . path . elements ;
for ( var f = 0 , d = a . length , g ; f < d ; f ++ ) { g = a [ f ] ; for ( var h in e ) if ( e [ h ] . checkElementRemovable ( g , ! 0 , c ) ) { h != b && this . setValue ( h ) ; return } } this . setValue ( "" ) } , this ) } , onOpen : function ( ) { var a = c . getSelection ( ) , a = a . getSelectedElement ( ) || a . getStartElement ( ) || c . editable ( ) , a = c . elementPath ( a ) , b = [ 0 , 0 , 0 , 0 ] ; this . showAll ( ) ; this . unmarkAll ( ) ; for ( var f in e ) { var d = e [ f ] , g = d . _ . type ; d . checkApplicable ( a , c , c . activeFilter ) ? b [ g ] ++ : this . hideItem ( f ) ; d . checkActive ( a , c ) && this . mark ( f ) } b [ CKEDITOR . STYLE _BLOCK ] || this . hideGroup ( h [ "panelTitle" +
String ( CKEDITOR . STYLE _BLOCK ) ] ) ; b [ CKEDITOR . STYLE _INLINE ] || this . hideGroup ( h [ "panelTitle" + String ( CKEDITOR . STYLE _INLINE ) ] ) ; b [ CKEDITOR . STYLE _OBJECT ] || this . hideGroup ( h [ "panelTitle" + String ( CKEDITOR . STYLE _OBJECT ) ] ) } , refresh : function ( ) { var a = c . elementPath ( ) ; if ( a ) { for ( var b in e ) if ( e [ b ] . checkApplicable ( a , c , c . activeFilter ) ) return ; this . setState ( CKEDITOR . TRISTATE _DISABLED ) } } , reset : function ( ) { e = { } ; k = [ ] } } ) } } ) } ) ( ) ; ( function ( ) { function k ( c ) { return { editorFocus : ! 1 , canUndo : ! 1 , modes : { wysiwyg : 1 } , exec : function ( d ) { if ( d . editable ( ) . hasFocus ) { var e = d . getSelection ( ) , b ; if ( b = ( new CKEDITOR . dom . elementPath ( e . getCommonAncestor ( ) , e . root ) ) . contains ( { td : 1 , th : 1 } , 1 ) ) { var e = d . createRange ( ) , a = CKEDITOR . tools . tryThese ( function ( ) { var a = b . getParent ( ) . $ . cells [ b . $ . cellIndex + ( c ? - 1 : 1 ) ] ; a . parentNode . parentNode ; return a } , function ( ) { var a = b . getParent ( ) , a = a . getAscendant ( "table" ) . $ . rows [ a . $ . rowIndex + ( c ? - 1 : 1 ) ] ; return a . cells [ c ? a . cells . length - 1 :
0 ] } ) ; if ( a || c ) if ( a ) a = new CKEDITOR . dom . element ( a ) , e . moveToElementEditStart ( a ) , e . checkStartOfBlock ( ) && e . checkEndOfBlock ( ) || e . selectNodeContents ( a ) ; else return ! 0 ; else { for ( var f = b . getAscendant ( "table" ) . $ , a = b . getParent ( ) . $ . cells , f = new CKEDITOR . dom . element ( f . insertRow ( - 1 ) , d . document ) , g = 0 , h = a . length ; g < h ; g ++ ) f . append ( ( new CKEDITOR . dom . element ( a [ g ] , d . document ) ) . clone ( ! 1 , ! 1 ) ) . appendBogus ( ) ; e . moveToElementEditStart ( f ) } e . select ( ! 0 ) ; return ! 0 } } return ! 1 } } } var h = { editorFocus : ! 1 , modes : { wysiwyg : 1 , source : 1 } } , g = { exec : function ( c ) { c . container . focusNext ( ! 0 ,
c . tabIndex ) } } , f = { exec : function ( c ) { c . container . focusPrevious ( ! 0 , c . tabIndex ) } } ; CKEDITOR . plugins . add ( "tab" , { init : function ( c ) { for ( var d = ! 1 !== c . config . enableTabKeyTools , e = c . config . tabSpaces || 0 , b = "" ; e -- ; ) b += " " ; if ( b ) c . on ( "key" , function ( a ) { 9 == a . data . keyCode && ( c . insertText ( b ) , a . cancel ( ) ) } ) ; if ( d ) c . on ( "key" , function ( a ) { ( 9 == a . data . keyCode && c . execCommand ( "selectNextCell" ) || a . data . keyCode == CKEDITOR . SHIFT + 9 && c . execCommand ( "selectPreviousCell" ) ) && a . cancel ( ) } ) ; c . addCommand ( "blur" , CKEDITOR . tools . extend ( g , h ) ) ; c . addCommand ( "blurBack" ,
CKEDITOR . tools . extend ( f , h ) ) ; c . addCommand ( "selectNextCell" , k ( ) ) ; c . addCommand ( "selectPreviousCell" , k ( ! 0 ) ) } } ) } ) ( ) ;