"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/jscripts/sceditor/jquery.sceditor.bbcode.min.js" between
mybb_1819.zip and mybb_1820.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

jquery.sceditor.bbcode.min.js  (mybb_1819):jquery.sceditor.bbcode.min.js  (mybb_1820)
/* SCEditor v1.4.7 | (C) 2015, Sam Clarke | sceditor.com/license */ /* SCEditor v1.5.2 | (C) 2016, Sam Clarke | sceditor.com/license */
!function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id !function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id
:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}va :d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}va
r c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){var d;d=function(){"use r c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){var d;d=function(a){"use
strict";var a=c(1),b=c(2),d=c(3),e=c(4),f=c(5);a.sceditor=b,b.commands=c(6),b.de strict";var b=c(1),d=c(2),e=c(3),f=c(6),g=c(7);b.sceditor=d,d.commands=c(9),d.d
faultOptions=c(7),b.RangeHelper=c(8),b.dom=c(9),b.ie=e.ie,b.ios=e.ios,b.isWysiwy efaultOptions=c(10),d.RangeHelper=c(4),d.dom=c(5),d.ie=f.ie,d.ios=f.ios,d.isWysi
gSupported=e.isWysiwygSupported,b.regexEscape=f.regex,b.escapeEntities=f.entitie wygSupported=f.isWysiwygSupported,d.regexEscape=g.regex,d.escapeEntities=g.entit
s,b.escapeUriScheme=f.uriScheme,b.PluginManager=d,b.plugins=d.plugins,a.fn.scedi ies,d.escapeUriScheme=g.uriScheme,d.PluginManager=e,d.plugins=e.plugins,b.fn.sce
tor=function(c){var d,f,g=[];return c=c||{},c.runWithoutWysiwygSupport||e.isWysi ditor=function(a){var c,e,g=[];if(a=a||{},a.runWithoutWysiwygSupport||f.isWysiwy
wygSupported?(this.each(function(){d=this.jquery?this:a(this),f=d.data("sceditor gSupported)return this.each(function(){c=this.jquery?this:b(this),e=c.data("sced
"),d.parents(".sceditor-container").length>0||("state"===c?g.push(!!f):"instance itor"),c.parents(".sceditor-container").length>0||("state"===a?g.push(!!e):"inst
"===c?g.push(f):f||new b(this,c))}),g.length?1===g.length?g[0]:a(g):this):void 0 ance"===a?g.push(e):e||new d(this,a))}),g.length?1===g.length?g[0]:b(g):this}}.c
}}.call(b,c,b,a),!(void 0!==d&&(a.exports=d))},function(a){a.exports=jQuery},fun all(b,c,b,a),!(void 0!==d&&(a.exports=d))},function(a,b){a.exports=jQuery},funct
ction(a,b,c){var d;d=function(){"use strict";var a=c(1),b=c(3),d=c(8),e=c(9),f=c ion(a,b,c){var d;d=function(a){"use strict";var b=c(1),d=c(3),e=c(4),f=c(5),g=c(
(5),g=c(4),h=c(10),i=window,j=document,k=a(i),l=a(j),m=g.ie,n=m&&11>m,o=function 7),h=c(6),i=c(8),j=window,k=document,l=b(j),m=b(k),n=h.ie,o=n&&n<11,p=function(a
(c,p){var q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y, ,c){var q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,
Z,$,_,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub=this,vb=c.g $,_,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua=this,va=a.get
et?c.get(0):c,wb=a(vb),xb=[],yb=[],zb=[],Ab={},Bb=[],Cb={};ub.commands=a.extend( ?a.get(0):a,wa=b(va),xa=[],ya=[],za=[],Aa={},Ba=[],Ca={};ua.commands=b.extend(!0
!0,{},p.commands||o.commands),ub.opts=p=a.extend({},o.defaultOptions,p),K=functi ,{},c.commands||p.commands),ua.opts=c=b.extend({},p.defaultOptions,c),K=function
on(){wb.data("sceditor",ub),a.each(p,function(b,c){a.isPlainObject(c)&&(p[b]=a.e (){wa.data("sceditor",ua),b.each(c,function(a,d){b.isPlainObject(d)&&(c[a]=b.ext
xtend(!0,{},c))}),p.locale&&"en"!==p.locale&&Q(),q=a('<div class="sceditor-conta end(!0,{},d))}),c.locale&&"en"!==c.locale&&Q(),q=b('<div class="sceditor-contain
iner" />').insertAfter(wb).css("z-index",p.zIndex),m&&q.addClass("ie ie"+m),H=!! er" />').insertAfter(wa).css("z-index",c.zIndex),n&&q.addClass("ie ie"+n),H=!!wa
wb.attr("required"),wb.removeAttr("required"),P(),W(),R(),O(),U(),S(),T(),g.isWy .attr("required"),wa.removeAttr("required"),P(),W(),R(),O(!!c.startInSourceMode)
siwygSupported||ub.toggleSourceMode(),hb();var b=function(){k.unbind("load",b),p ,U(),S(),T(),h.isWysiwygSupported||ua.toggleSourceMode(),ha();var a=function(){l
.autofocus&&mb(),p.autoExpand&&ub.expandToContent(),fb(),C.call("ready")};k.load .off("load",a),c.autofocus&&ma(),c.autoExpand&&ua.expandToContent(),fa(),C.call(
(b),j.readyState&&"complete"===j.readyState&&b()},P=function(){var c=p.plugins;c "ready")};l.on("load",a),k.readyState&&"complete"===k.readyState&&a()},P=functio
=c?c.toString().split(","):[],C=new b(ub),a.each(c,function(b,c){C.register(a.tr n(){var a=c.plugins;a=a?a.toString().split(","):[],C=new d(ua),b.each(a,function
im(c))})},Q=function(){var a;A=o.locale[p.locale],A||(a=p.locale.split("-"),A=o. (a,c){C.register(b.trim(c))})},Q=function(){var a;A=p.locale[c.locale],A||(a=c.l
locale[a[0]]),A&&A.dateFormat&&(p.dateFormat=A.dateFormat)},O=function(){var b,c ocale.split("-"),A=p.locale[a[0]]),A&&A.dateFormat&&(c.dateFormat=A.dateFormat)}
;w=a("<textarea></textarea>").hide(),s=a('<iframe frameborder="0" allowfullscree ,O=function(a){var d,f;w=b("<textarea></textarea>"),s=b('<iframe frameborder="0"
n="true"></iframe>'),p.spellcheck||w.attr("spellcheck","false"),"https:"===i.loc allowfullscreen="true"></iframe>'),a?(q.addClass("sourceMode"),s.hide()):(q.add
ation.protocol&&s.attr("src","javascript:false"),q.append(s).append(w),t=s[0],x= Class("wysiwygMode"),w.hide()),c.spellcheck||w.attr("spellcheck","false"),"https
w[0],ub.dimensions(p.width||wb.width(),p.height||wb.height()),b=X(),b.open(),b.w :"===j.location.protocol&&s.attr("src","javascript:false"),q.append(s).append(w)
rite(h("html",{attrs:m?' class="ie ie"'+m:"",spellcheck:p.spellcheck?"":'spellch ,t=s[0],x=w[0],ua.dimensions(c.width||wa.width(),c.height||wa.height()),d=X(),d.
eck="false"',charset:p.charset,style:p.style})),b.close(),v=a(b),u=a(b.body),ub. open(),d.write(i("html",{attrs:n?' class="ie ie'+n+'"':"",spellcheck:c.spellchec
readOnly(!!p.readOnly),(g.ios||m)&&(u.height("100%"),m||u.bind("touchend",ub.foc k?"":'spellcheck="false"',charset:c.charset,style:c.style})),d.close(),v=b(d),u=
us)),c=wb.attr("tabindex"),w.attr("tabindex",c),s.attr("tabindex",c),B=new d(t.c b(d.body),ua.readOnly(!!c.readOnly),(h.ios||n)&&(u.height("100%"),n||u.on("touch
ontentWindow),ub.val(wb.hide().val())},S=function(){p.autoUpdate&&(u.bind("blur" end",ua.focus)),f=wa.attr("tabindex"),w.attr("tabindex",f),s.attr("tabindex",f),
,tb),w.bind("blur",tb)),null===p.rtl&&(p.rtl="rtl"===w.css("direction")),ub.rtl( B=new e(t.contentWindow),ua.val(wa.hide().val())},S=function(){c.autoUpdate&&(u.
!!p.rtl),p.autoExpand&&v.bind("keyup",ub.expandToContent),p.resizeEnabled&&V(),q on("blur",ta),w.on("blur",ta)),null===c.rtl&&(c.rtl="rtl"===w.css("direction")),
.attr("id",p.id),ub.emoticons(p.emoticonsEnabled)},T=function(){var b=m?"selecti ua.rtl(!!c.rtl),c.autoExpand&&v.on("keyup",ua.expandToContent),c.resizeEnabled&&
onchange":"keyup focus blur contextmenu mouseup touchend click",c="keydown keyup V(),q.attr("id",c.id),ua.emoticons(c.emoticonsEnabled)},T=function(){var a=n?"se
keypress focus blur contextmenu";l.click(eb),a(vb.form).bind("reset",bb).submit lectionchange":"keyup focus blur contextmenu mouseup touchend click",d="keydown
(ub.updateOriginal),k.bind("resize orientationChanged",fb),u.keypress(ab).keydow keyup keypress focus blur contextmenu";m.click(ea),b(va.form).on("reset",ba).sub
n($).keydown(_).keyup(jb).blur(rb).keyup(sb).bind("paste",Y).bind(b,kb).bind(c,d mit(ua.updateOriginal),l.on("resize orientationChanged",fa),u.keypress(aa).keydo
b),p.emoticonsCompat&&i.getSelection&&u.keyup(ob),w.blur(rb).keyup(sb).keydown($ wn($).keydown(_).keyup(ja).blur(ra).keyup(sa).on("paste",Y).on(a,ka).on(d,da),c.
).bind(c,db),v.mousedown(cb).blur(rb).bind(b,kb).bind("beforedeactivate keyup mo emoticonsCompat&&j.getSelection&&u.keyup(oa),w.blur(ra).keyup(sa).keydown($).on(
useup",N).keyup(jb).focus(function(){z=null}),q.bind("selectionchanged",lb).bind d,da),v.mousedown(ca).blur(ra).on(a,ka).on("beforedeactivate keyup mouseup",N).k
("selectionchanged",hb).bind("selectionchanged valuechanged nodechanged",db)},R= eyup(ja).focus(function(){z=null}),q.on("selectionchanged",la).on("selectionchan
function(){var b,c=ub.commands,d=(p.toolbarExclude||"").split(","),e=p.toolbar.s ged",ha).on("selectionchanged valuechanged nodechanged",da)},R=function(){var a,
plit("|");r=a('<div class="sceditor-toolbar" unselectable="on" />'),a.each(e,fun d=ua.commands,e=(c.toolbarExclude||"").split(","),f=c.toolbar.split("|");r=b('<d
ction(e,f){b=a('<div class="sceditor-group" />'),a.each(f.split(","),function(e, iv class="sceditor-toolbar" unselectable="on" />'),b.each(f,function(c,f){a=b('<
f){var g,i,j=c[f];!j||a.inArray(f,d)>-1||(i=j.shortcut,g=h("toolbarButton",{name div class="sceditor-group" />'),b.each(f.split(","),function(c,f){var g,h,j=d[f]
:f,dispName:ub._(j.tooltip||f)},!0),g.data("sceditor-txtmode",!!j.txtExec).data( ;!j||b.inArray(f,e)>-1||(h=j.shortcut,g=i("toolbarButton",{name:f,dispName:ua._(
"sceditor-wysiwygmode",!!j.exec).toggleClass("disabled",!j.exec).mousedown(funct j.name||j.tooltip||f)},!0),g.data("sceditor-txtmode",!!j.txtExec).data("sceditor
ion(){(!m||9>m)&&(J=!0)}).click(function(){var b=a(this);return b.hasClass("disa -wysiwygmode",!!j.exec).toggleClass("disabled",!j.exec).mousedown(function(){(!n
bled")||M(b,j),hb(),!1}),j.tooltip&&g.attr("title",ub._(j.tooltip)+(i?"("+i+")": ||n<9)&&(J=!0)}).click(function(){var a=b(this);return a.hasClass("disabled")||M
"")),i&&ub.addShortcut(i,f),j.state?zb.push({name:f,state:j.state}):"string"==ty (a,j),ha(),!1}),j.tooltip&&g.attr("title",ua._(j.tooltip)+(h?" ("+h+")":"")),h&&
peof j.exec&&zb.push({name:f,state:j.exec}),b.append(g),Cb[f]=g)}),b[0].firstChi ua.addShortcut(h,f),j.state?za.push({name:f,state:j.state}):"string"==typeof j.e
ld&&r.append(b)}),a(p.toolbarContainer||q).append(r)},U=function(){a.each(ub.com xec&&za.push({name:f,state:j.exec}),a.append(g),Ca[f]=g)}),a[0].firstChild&&r.ap
mands,function(b,c){c.forceNewLineAfter&&a.isArray(c.forceNewLineAfter)&&(yb=a.m pend(a)}),b(c.toolbarContainer||q).append(r)},U=function(){b.each(ua.commands,fu
erge(yb,c.forceNewLineAfter))}),jb()},V=function(){var b,c,d,e,f,g,h=a('<div cla nction(a,c){c.forceNewLineAfter&&b.isArray(c.forceNewLineAfter)&&(ya=b.merge(ya,
ss="sceditor-grip" />'),j=a('<div class="sceditor-resize-cover" />'),k="touchmov c.forceNewLineAfter))}),ja()},V=function(){var a,d,e,f,g,h,i=b('<div class="sced
e mousemove",n="touchcancel touchend mouseup",o=0,r=0,s=0,t=0,u=0,v=0,w=q.width( itor-grip" />'),k=b('<div class="sceditor-resize-cover" />'),l="touchmove mousem
),x=q.height(),y=!1,z=ub.rtl();b=p.resizeMinHeight||x/1.5,c=p.resizeMaxHeight||2 ove",o="touchcancel touchend mouseup",p=0,r=0,s=0,t=0,u=0,v=0,w=q.width(),x=q.he
.5*x,d=p.resizeMinWidth||w/1.25,e=p.resizeMaxWidth||1.25*w,f=function(a){"touchm ight(),y=!1,z=ua.rtl();a=c.resizeMinHeight||x/1.5,d=c.resizeMaxHeight||2.5*x,e=c
ove"===a.type?(a=i.event,s=a.changedTouches[0].pageX,t=a.changedTouches[0].pageY .resizeMinWidth||w/1.25,f=c.resizeMaxWidth||1.25*w,g=function(b){"touchmove"===b
):(s=a.pageX,t=a.pageY);var f=v+(t-r),g=z?u-(s-o):u+(s-o);e>0&&g>e&&(g=e),d>0&&d .type?(b=j.event,s=b.changedTouches[0].pageX,t=b.changedTouches[0].pageY):(s=b.p
>g&&(g=d),p.resizeWidth||(g=!1),c>0&&f>c&&(f=c),b>0&&b>f&&(f=b),p.resizeHeight|| ageX,t=b.pageY);var g=v+(t-r),h=z?u-(s-p):u+(s-p);f>0&&h>f&&(h=f),e>0&&h<e&&(h=e
(f=!1),(g||f)&&(ub.dimensions(g,f),7>m&&q.height(f)),a.preventDefault()},g=funct ),c.resizeWidth||(h=!1),d>0&&g>d&&(g=d),a>0&&g<a&&(g=a),c.resizeHeight||(g=!1),(
ion(a){y&&(y=!1,j.hide(),q.removeClass("resizing").height("auto"),l.unbind(k,f), h||g)&&(ua.dimensions(h,g),n<7&&q.height(g)),b.preventDefault()},h=function(a){y
l.unbind(n,g),a.preventDefault())},q.append(h),q.append(j.hide()),h.bind("touchs &&(y=!1,k.hide(),q.removeClass("resizing").height("auto"),m.off(l,g),m.off(o,h),
tart mousedown",function(a){"touchstart"===a.type?(a=i.event,o=a.touches[0].page a.preventDefault())},q.append(i),q.append(k.hide()),i.on("touchstart mousedown",
X,r=a.touches[0].pageY):(o=a.pageX,r=a.pageY),u=q.width(),v=q.height(),y=!0,q.ad function(a){"touchstart"===a.type?(a=j.event,p=a.touches[0].pageX,r=a.touches[0]
dClass("resizing"),j.show(),l.bind(k,f),l.bind(n,g),7>m&&q.height(v),a.preventDe .pageY):(p=a.pageX,r=a.pageY),u=q.width(),v=q.height(),y=!0,q.addClass("resizing
fault()})},W=function(){var b,c=p.emoticons,d=p.emoticonsRoot;a.isPlainObject(c) "),k.show(),m.on(l,g),m.on(o,h),n<7&&q.height(v),a.preventDefault()})},W=functio
&&p.emoticonsEnabled&&a.each(c,function(e,f){a.each(f,function(a,f){d&&(f={url:d n(){var a,d=c.emoticons,e=c.emoticonsRoot;b.isPlainObject(d)&&c.emoticonsEnabled
+(f.url||f),tooltip:f.tooltip||a},c[e][a]=f),b=j.createElement("img"),b.src=f.ur &&b.each(d,function(c,f){b.each(f,function(b,f){e&&(f={url:e+(f.url||f),tooltip:
l||f,xb.push(b)})})},mb=function(){var b,c,d=v[0],f=u[0],g=f.firstChild,h=!!p.au f.tooltip||b},d[c][b]=f),a=k.createElement("img"),a.src=f.url||f,xa.push(a)})})}
tofocusEnd;if(q.is(":visible")){if(ub.sourceMode())return c=h?x.value.length:0,v ,ma=function(){var a,d,e=v[0],g=u[0],h=g.firstChild,i=!!c.autofocusEnd;if(q.is("
oid(x.setSelectionRange?x.setSelectionRange(c,c):(b=x.createTextRange(),b.moveEn :visible")){if(ua.sourceMode())return d=i?x.value.length:0,void(x.setSelectionRa
d("character",c),b.collapse(!1),b.select()));if(e.removeWhiteSpace(f),h)for((g=f nge?x.setSelectionRange(d,d):(a=x.createTextRange(),a.moveEnd("character",d),a.c
.lastChild)||(g=d.createElement("p"),u.append(g));g.lastChild;)g=g.lastChild,!n& ollapse(!1),a.select()));if(f.removeWhiteSpace(g),i)for((h=g.lastChild)||(h=e.cr
&a(g).is("br")&&g.previousSibling&&(g=g.previousSibling);d.createRange?(b=d.crea eateElement("p"),u.append(h));h.lastChild;)h=h.lastChild,!o&&b(h).is("br")&&h.pr
teRange(),e.canHaveChildren(g)?b.selectNodeContents(g):(b.setStartBefore(g),h&&b eviousSibling&&(h=h.previousSibling);e.createRange?(a=e.createRange(),f.canHaveC
.setStartAfter(g))):(b=f.createTextRange(),b.moveToElementText(3!==g.nodeType?g: hildren(h)?a.selectNodeContents(h):(a.setStartBefore(h),i&&a.setStartAfter(h))):
g.parentNode)),b.collapse(!h),B.selectRange(b),F=b,h&&(v.scrollTop(f.scrollHeigh (a=g.createTextRange(),a.moveToElementText(3!==h.nodeType?h:h.parentNode)),a.col
t),u.scrollTop(f.scrollHeight)),ub.focus()}},ub.readOnly=function(a){return"bool lapse(!i),B.selectRange(a),F=a,i&&(v.scrollTop(g.scrollHeight),u.scrollTop(g.scr
ean"!=typeof a?"readonly"===w.attr("readonly"):(u[0].contentEditable=!a,a?w.attr ollHeight)),ua.focus()}},ua.readOnly=function(a){return"boolean"!=typeof a?"read
("readonly","readonly"):w.removeAttr("readonly"),gb(a),ub)},ub.rtl=function(a){v only"===w.attr("readonly"):(u[0].contentEditable=!a,a?w.attr("readonly","readonl
ar b=a?"rtl":"ltr";return"boolean"!=typeof a?"rtl"===w.attr("dir"):(u.attr("dir" y"):w.removeAttr("readonly"),ga(a),ua)},ua.rtl=function(a){var b=a?"rtl":"ltr";r
,b),w.attr("dir",b),q.removeClass("rtl").removeClass("ltr").addClass(b),ub)},gb= eturn"boolean"!=typeof a?"rtl"===w.attr("dir"):(u.attr("dir",b),w.attr("dir",b),
function(b){var c=ub.inSourceMode()?"txtmode":"wysiwygmode";a.each(Cb,function(a q.removeClass("rtl").removeClass("ltr").addClass(b),ua)},ga=function(a){var c=ua
,d){b!==!0&&d.data("sceditor-"+c)?d.removeClass("disabled"):d.addClass("disabled .inSourceMode()?"txtmode":"wysiwygmode";b.each(Ca,function(b,d){a!==!0&&d.data("
")})},ub.width=function(a,b){return a||0===a?(ub.dimensions(a,null,b),ub):q.widt sceditor-"+c)?d.removeClass("disabled"):d.addClass("disabled")})},ua.width=funct
h()},ub.dimensions=function(a,b,c){var d,e=8>m||j.documentMode<8?2:0;return a=a| ion(a,b){return a||0===a?(ua.dimensions(a,null,b),ua):q.width()},ua.dimensions=f
|0===a?a:!1,b=b||0===b?b:!1,a===!1&&b===!1?{width:ub.width(),height:ub.height()} unction(a,b,d){var e,f=n<8||k.documentMode<8?2:0;return a=!(!a&&0!==a)&&a,b=!(!b
:(s.data("outerWidthOffset")===d&&ub.updateStyleCache(),a!==!1&&(c!==!1&&(p.widt &&0!==b)&&b,a===!1&&b===!1?{width:ua.width(),height:ua.height()}:(s.data("outerW
h=a),b===!1&&(b=q.height(),c=!1),q.width(a),a&&a.toString().indexOf("%")>-1&&(a= idthOffset")===e&&ua.updateStyleCache(),a!==!1&&(d!==!1&&(c.width=a),b===!1&&(b=
q.width()),s.width(a-s.data("outerWidthOffset")),w.width(a-w.data("outerWidthOff q.height(),d=!1),q.width(a),a&&a.toString().indexOf("%")>-1&&(a=q.width()),s.wid
set")),g.ios&&u&&u.width(a-s.data("outerWidthOffset")-(u.outerWidth(!0)-u.width( th(a-s.data("outerWidthOffset")),w.width(a-w.data("outerWidthOffset")),h.ios&&u&
)))),b!==!1&&(c!==!1&&(p.height=b),b&&b.toString().indexOf("%")>-1&&(b=q.height( &u.width(a-s.data("outerWidthOffset")-(u.outerWidth(!0)-u.width()))),b!==!1&&(d!
b).height(),q.height("auto")),b-=p.toolbarContainer?0:r.outerHeight(!0),s.height ==!1&&(c.height=b),b&&b.toString().indexOf("%")>-1&&(b=q.height(b).height(),q.he
(b-s.data("outerHeightOffset")),w.height(b-e-w.data("outerHeightOffset"))),ub)}, ight("auto")),b-=c.toolbarContainer?0:r.outerHeight(!0),s.height(b-s.data("outer
ub.updateStyleCache=function(){s.data("outerWidthOffset",s.outerWidth(!0)-s.widt HeightOffset")),w.height(b-f-w.data("outerHeightOffset"))),ua)},ua.updateStyleCa
h()),w.data("outerWidthOffset",w.outerWidth(!0)-w.width()),s.data("outerHeightOf che=function(){s.data("outerWidthOffset",s.outerWidth(!0)-s.width()),w.data("out
fset",s.outerHeight(!0)-s.height()),w.data("outerHeightOffset",w.outerHeight(!0) erWidthOffset",w.outerWidth(!0)-w.width()),s.data("outerHeightOffset",s.outerHei
-w.height())},ub.height=function(a,b){return a||0===a?(ub.dimensions(null,a,b),u ght(!0)-s.height()),w.data("outerHeightOffset",w.outerHeight(!0)-w.height())},ua
b):q.height()},ub.maximize=function(b){return"undefined"==typeof b?q.is(".scedit .height=function(a,b){return a||0===a?(ua.dimensions(null,a,b),ua):q.height()},u
or-maximize"):(b=!!b,7>m&&a("html, body").toggleClass("sceditor-maximize",b),q.t a.maximize=function(a){return"undefined"==typeof a?q.is(".sceditor-maximize"):(a
oggleClass("sceditor-maximize",b),ub.width(b?"100%":p.width,!1),ub.height(b?"100 =!!a,n<7&&b("html, body").toggleClass("sceditor-maximize",a),q.toggleClass("sced
%":p.height,!1),ub)},ub.expandToContent=function(a){var b=q.height(),c=b-s.heigh itor-maximize",a),ua.width(a?"100%":c.width,!1),ua.height(a?"100%":c.height,!1),
t(),d=u[0].scrollHeight||v[0].documentElement.scrollHeight,e=p.resizeMaxHeight|| ua)},ua.expandToContent=function(a){var b=q.height(),d=b-s.height(),e=u[0].scrol
2*(p.height||wb.height());d+=c,(a===!0||e>=d)&&d>b&&ub.height(d)},ub.destroy=fun lHeight||v[0].documentElement.scrollHeight,f=c.resizeMaxHeight||2*(c.height||wa.
ction(){C&&(C.destroy(),B=null,z=null,C=null,l.unbind("click",eb),k.unbind("resi height());e+=d,(a===!0||e<=f)&&e>b&&ua.height(e)},ua.destroy=function(){C&&(C.de
ze orientationChanged",fb),a(vb.form).unbind("reset",bb).unbind("submit",ub.upda stroy(),B=null,z=null,C=null,y&&y.off().remove(),m.off("click",ea),l.off("resize
teOriginal),u.unbind(),v.unbind().find("*").remove(),w.unbind().remove(),r.remov orientationChanged",fa),b(va.form).off("reset",ba).off("submit",ua.updateOrigin
e(),q.unbind().find("*").unbind().remove(),q.remove(),wb.removeData("sceditor"). al),u.off(),v.off().find("*").remove(),w.off().remove(),r.remove(),q.off().find(
removeData("sceditorbbcode").show(),H&&wb.attr("required","required"))},ub.creat "*").off().remove(),q.remove(),wa.removeData("sceditor").removeData("sceditorbbc
eDropDown=function(b,c,d,e){var f,g="sceditor-"+c,h=y&&y.is("."+g);ub.closeDropD ode").show(),H&&wa.attr("required","required"))},ua.createDropDown=function(a,d,
own(),h||(e!==!1&&a(d).find(":not(input,textarea)").filter(function(){return 1== e,f){var g,h="sceditor-"+d,i=y&&y.is("."+h);ua.closeDropDown(!0),i||(f!==!1&&b(e
=this.nodeType}).attr("unselectable","on"),f={top:b.offset().top,left:b.offset() ).find(":not(input,textarea)").filter(function(){return 1===this.nodeType}).attr
.left,marginTop:b.outerHeight()},a.extend(f,p.dropDownCss),y=a('<div class="sced ("unselectable","on"),g={top:a.offset().top,left:a.offset().left,marginTop:a.out
itor-dropdown '+g+'" />').css(f).append(d).appendTo(a("body")).on("click focusin erHeight()},b.extend(g,c.dropDownCss),y=b('<div class="sceditor-dropdown '+h+'"
",function(a){a.stopPropagation()}),setTimeout(function(){y.find("input,textarea />').css(g).append(e).appendTo(b("body")).on("click focusin",function(a){a.stopP
").first().focus()}))},eb=function(a){3!==a.which&&y&&(tb(),ub.closeDropDown())} ropagation()}),setTimeout(function(){y&&y.find("input,textarea").first().focus()
,Y=function(a){var b,c,d,e=u[0],f=v[0],g=0,h=j.createElement("div"),i=f.createDo }))},ea=function(a){3!==a.which&&y&&(ta(),ua.closeDropDown())},Y=function(a){var
cumentFragment(),k=a?a.clipboardData:!1;if(p.disablePasting)return!1;if(p.enable b,d,e,f=u[0],g=v[0],h=0,i=k.createElement("div"),j=g.createDocumentFragment(),l
PasteFiltering){if(B.saveRange(),j.body.appendChild(h),k&&k.getData&&((b=k.getDa =!!a&&a.clipboardData;if(c.disablePasting)return!1;if(c.enablePasteFiltering){if
ta("text/html"))||(b=k.getData("text/plain"))))return h.innerHTML=b,Z(e,h),!1;fo (B.saveRange(),k.body.appendChild(i),l&&l.getData&&((b=l.getData("text/html"))||
r(d=u.scrollTop()||v.scrollTop();e.firstChild;)i.appendChild(e.firstChild);retur (b=l.getData("text/plain"))))return i.innerHTML=b,Z(f,i),!1;for(e=u.scrollTop()|
n c=function(a,b){if(a.childNodes.length>0||g>25){for(;a.firstChild;)b.appendChi |v.scrollTop();f.firstChild;)j.appendChild(f.firstChild);return d=function(a,b){
ld(a.firstChild);for(;i.firstChild;)a.appendChild(i.firstChild);u.scrollTop(d),v if(a.childNodes.length>0||h>25){for(;a.firstChild;)b.appendChild(a.firstChild);f
.scrollTop(d),b.childNodes.length>0?Z(a,b):B.restoreRange()}else g++,setTimeout( or(;j.firstChild;)a.appendChild(j.firstChild);u.scrollTop(e),v.scrollTop(e),b.ch
function(){c(a,b)},20)},c(e,h),ub.focus(),!0}},Z=function(b,c){e.fixNesting(c);v ildNodes.length>0?Z(a,b):B.restoreRange()}else h++,setTimeout(function(){d(a,b)}
ar d=c.innerHTML;C.hasHandler("toSource")&&(d=C.callOnlyFirst("toSource",d,a(c)) ,20)},d(f,i),ua.focus(),!0}},Z=function(a,c){f.fixNesting(c);var d=c.innerHTML;C
),c.parentNode.removeChild(c),C.hasHandler("toWysiwyg")&&(d=C.callOnlyFirst("toW .hasHandler("toSource")&&(d=C.callOnlyFirst("toSource",d,b(c))),c.parentNode.rem
ysiwyg",d,!0)),B.restoreRange(),ub.wysiwygEditorInsertHtml(d,null,!0)},ub.closeD oveChild(c),C.hasHandler("toWysiwyg")&&(d=C.callOnlyFirst("toWysiwyg",d,!0)),B.r
ropDown=function(a){y&&(y.unbind().remove(),y=null),a===!0&&ub.focus()},X=functi estoreRange(),ua.wysiwygEditorInsertHtml(d,null,!0)},ua.closeDropDown=function(a
on(){return t.contentDocument?t.contentDocument:t.contentWindow&&t.contentWindow ){y&&(y.off().remove(),y=null),a===!0&&ua.focus()},X=function(){return t.content
.document?t.contentWindow.document:t.document},ub.wysiwygEditorInsertHtml=functi Document?t.contentDocument:t.contentWindow&&t.contentWindow.document?t.contentWi
on(b,c,d){var f,g,h,i=s.height();ub.focus(),(d||!a(E).is("code")&&0===a(E).paren ndow.document:t.document},ua.wysiwygEditorInsertHtml=function(a,c,d){var e,g,h,i
ts("code").length)&&(B.insertHTML(b,c),B.saveRange(),L(u[0]),f=u.find("#sceditor =s.height();ua.focus(),(d||!b(E).is("code")&&0===b(E).parents("code").length)&&(
-end-marker").show(),g=u.scrollTop()||v.scrollTop(),h=e.getOffset(f[0]).top+1.5* B.insertHTML(a,c),B.saveRange(),L(u[0]),e=u.find("#sceditor-end-marker").show(),
f.outerHeight(!0)-i,f.hide(),(h>g||g>h+i)&&(u.scrollTop(h),v.scrollTop(h)),qb(!1 g=u.scrollTop()||v.scrollTop(),h=f.getOffset(e[0]).top+1.5*e.outerHeight(!0)-i,e
),B.restoreRange(),jb())},ub.wysiwygEditorInsertText=function(a,b){ub.wysiwygEdi .hide(),(h>g||h+i<g)&&(u.scrollTop(h),v.scrollTop(h)),qa(!1),B.restoreRange(),ja
torInsertHtml(f.entities(a),f.entities(b))},ub.insertText=function(a,b){return u ())},ua.wysiwygEditorInsertText=function(a,b){ua.wysiwygEditorInsertHtml(g.entit
b.inSourceMode()?ub.sourceEditorInsertText(a,b):ub.wysiwygEditorInsertText(a,b), ies(a),g.entities(b))},ua.insertText=function(a,b){return ua.inSourceMode()?ua.s
ub},ub.sourceEditorInsertText=function(a,b){var c,d,e,f=x.selectionStart,g=x.sel ourceEditorInsertText(a,b):ua.wysiwygEditorInsertText(a,b),ua},ua.sourceEditorIn
ectionEnd;d=x.scrollTop,x.focus(),"undefined"!=typeof f?(e=x.value,b&&(a+=e.subs sertText=function(a,b){var c,d,e,f=x.selectionStart,g=x.selectionEnd;d=x.scrollT
tring(f,g)+b),x.value=e.substring(0,f)+a+e.substring(g,e.length),x.selectionStar op,x.focus(),"undefined"!=typeof f?(e=x.value,b&&(a+=e.substring(f,g)+b),x.value
t=f+a.length-(b?b.length:0),x.selectionEnd=x.selectionStart):(c=j.selection.crea =e.substring(0,f)+a+e.substring(g,e.length),x.selectionStart=f+a.length-(b?b.len
teRange(),b&&(a+=c.text+b),c.text=a,b&&c.moveEnd("character",0-b.length),c.moveS gth:0),x.selectionEnd=x.selectionStart):(c=k.selection.createRange(),b&&(a+=c.te
tart("character",c.End-c.Start),c.select()),x.scrollTop=d,x.focus(),qb()},ub.get xt+b),c.text=a,b&&c.moveEnd("character",0-b.length),c.moveStart("character",c.En
RangeHelper=function(){return B},ub.sourceEditorCaret=function(a){var b,c={};ret d-c.Start),c.select()),x.scrollTop=d,x.focus(),qa()},ua.getRangeHelper=function(
urn x.focus(),"undefined"!=typeof x.selectionStart?a?(x.selectionStart=a.start,x ){return B},ua.sourceEditorCaret=function(a){var b,c={};return x.focus(),"undefi
.selectionEnd=a.end):(c.start=x.selectionStart,c.end=x.selectionEnd):(b=j.select ned"!=typeof x.selectionStart?a?(x.selectionStart=a.start,x.selectionEnd=a.end):
ion.createRange(),a?(b.moveEnd("character",a.end),b.moveStart("character",a.star (c.start=x.selectionStart,c.end=x.selectionEnd):(b=k.selection.createRange(),a?(
t),b.select()):(c.start=b.Start,c.end=b.End)),a?this:c},ub.val=function(a,b){ret b.moveEnd("character",a.end),b.moveStart("character",a.start),b.select()):(c.sta
urn"string"!=typeof a?ub.inSourceMode()?ub.getSourceEditorValue(!1):ub.getWysiwy rt=b.Start,c.end=b.End)),a?this:c},ua.val=function(a,b){return"string"!=typeof a
gEditorValue(b):(ub.inSourceMode()?ub.setSourceEditorValue(a):(b!==!1&&C.hasHand ?ua.inSourceMode()?ua.getSourceEditorValue(!1):ua.getWysiwygEditorValue(b):(ua.i
ler("toWysiwyg")&&(a=C.callOnlyFirst("toWysiwyg",a)),ub.setWysiwygEditorValue(a) nSourceMode()?ua.setSourceEditorValue(a):(b!==!1&&C.hasHandler("toWysiwyg")&&(a=
),ub)},ub.insert=function(b,c,d,e,f){if(ub.inSourceMode())return ub.sourceEditor C.callOnlyFirst("toWysiwyg",a)),ua.setWysiwygEditorValue(a)),ua)},ua.insert=func
InsertText(b,c),ub;if(c){var g=B.selectedHtml(),h=a("<div>").appendTo(a("body")) tion(a,c,d,e,f){if(ua.inSourceMode())return ua.sourceEditorInsertText(a,c),ua;if
.hide().html(g);d!==!1&&C.hasHandler("toSource")&&(g=C.callOnlyFirst("toSource", (c){var g=B.selectedHtml(),h=b("<div>").appendTo(b("body")).hide().html(g);d!==!
g,h)),h.remove(),b+=g+c}return d!==!1&&C.hasHandler("toWysiwyg")&&(b=C.callOnlyF 1&&C.hasHandler("toSource")&&(g=C.callOnlyFirst("toSource",g,h)),h.remove(),a+=g
irst("toWysiwyg",b,!0)),d!==!1&&f===!0&&(b=b.replace(/&lt;/g,"<").replace(/&gt;/ +c}return d!==!1&&C.hasHandler("toWysiwyg")&&(a=C.callOnlyFirst("toWysiwyg",a,!0
g,">").replace(/&amp;/g,"&")),ub.wysiwygEditorInsertHtml(b),ub},ub.getWysiwygEdi )),d!==!1&&f===!0&&(a=a.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;
torValue=function(a){var b,c,d=B.hasSelection();return d?B.saveRange():z&&z.getB /g,"&")),ua.wysiwygEditorInsertHtml(a),ua},ua.getWysiwygEditorValue=function(a){
ookmark&&(c=z.getBookmark()),e.fixNesting(u[0]),b=u.html(),a!==!1&&C.hasHandler( var c,d=b("<div>").appendTo(document.body).append(b(u[0].childNodes).clone());re
"toSource")&&(b=C.callOnlyFirst("toSource",b,u)),d?(B.restoreRange(),z=null):c&& turn f.fixNesting(d[0]),c=d.html(),a!==!1&&C.hasHandler("toSource")&&(c=C.callOn
(z.moveToBookmark(c),z=null),b},ub.getBody=function(){return u},ub.getContentAre lyFirst("toSource",c,d)),d.remove(),c},ua.getBody=function(){return u},ua.getCon
aContainer=function(){return s},ub.getSourceEditorValue=function(a){var b=w.val( tentAreaContainer=function(){return s},ua.getSourceEditorValue=function(a){var b
);return a!==!1&&C.hasHandler("toWysiwyg")&&(b=C.callOnlyFirst("toWysiwyg",b)),b =w.val();return a!==!1&&C.hasHandler("toWysiwyg")&&(b=C.callOnlyFirst("toWysiwyg
},ub.setWysiwygEditorValue=function(a){a||(a="<p>"+(m?"":"<br />")+"</p>"),u[0]. ",b)),b},ua.setWysiwygEditorValue=function(a){a||(a="<p>"+(n?"":"<br />")+"</p>"
innerHTML=a,L(u[0]),jb(),qb()},ub.setSourceEditorValue=function(a){w.val(a),qb() ),u[0].innerHTML=a,L(u[0]),ja(),qa()},ua.setSourceEditorValue=function(a){w.val(
},ub.updateOriginal=function(){wb.val(ub.val())},L=function(b){if(p.emoticonsEna a),qa()},ua.updateOriginal=function(){wa.val(ua.val())},L=function(a){if(c.emoti
bled&&!a(b).parents("code").length){var c=b.ownerDocument,d="\\s| | | | |&nbsp;" consEnabled&&!b(a).parents("code").length){var d=a.ownerDocument,e="\\s| | | | |
,g=[],i=[],j=a.extend({},p.emoticons.more,p.emoticons.dropdown,p.emoticons.hidde &nbsp;",h=[],j=[],k=b.extend({},c.emoticons.more,c.emoticons.dropdown,c.emoticon
n);a.each(j,function(a){p.emoticonsCompat&&(i[a]=new RegExp("(>|^|"+d+")"+f.rege s.hidden);b.each(k,function(a){c.emoticonsCompat&&(j[a]=new RegExp("(>|^|"+e+")"
x(a)+"($|<|"+d+")")),g.push(a)});var k=function(b){for(b=b.firstChild;b;){var d, +g.regex(a)+"($|<|"+e+")")),h.push(a)});var l=function(a){for(a=a.firstChild;a;)
f,l,m,n,o,q,r=b.parentNode,s=b.nodeValue;if(3!==b.nodeType)a(b).is("code")||k(b) {var e,g,m,n,o,p,q,r=a.parentNode,s=a.nodeValue;if(3!==a.nodeType)b(a).is("code"
;else if(s)for(n=g.length;n--;)f=g[n],q=p.emoticonsCompat?s.search(i[f]):s.index )||l(a);else if(s)for(o=h.length;o--;)g=h[o],q=c.emoticonsCompat?s.search(j[g]):
Of(f),q>-1&&(o=b.nextSibling,l=j[f],d=s.substr(q).split(f),s=s.substr(0,q)+d.shi s.indexOf(g),q>-1&&(p=a.nextSibling,m=k[g],e=s.substr(q).split(g),s=s.substr(0,q
ft(),b.nodeValue=s,m=e.parseHTML(h("emoticon",{key:f,url:l.url||l,tooltip:l.tool )+e.shift(),a.nodeValue=s,n=f.parseHTML(i("emoticon",{key:g,url:m.url||m,tooltip
tip||f}),c),r.insertBefore(m[0],o),r.insertBefore(c.createTextNode(d.join(f)),o) :m.tooltip||g}),d),r.insertBefore(n[0],p),r.insertBefore(d.createTextNode(e.join
);b=b.nextSibling}};k(b),p.emoticonsCompat&&(Bb=u.find("img[data-sceditor-emotic (g)),p));a=a.nextSibling}};l(a),c.emoticonsCompat&&(Ba=u.find("img[data-sceditor
on]"))}},ub.inSourceMode=function(){return q.hasClass("sourceMode")},ub.sourceMo -emoticon]"))}},ua.inSourceMode=function(){return q.hasClass("sourceMode")},ua.s
de=function(a){var b=ub.inSourceMode();return"boolean"!=typeof a?b:((b&&!a||!b&& ourceMode=function(a){var b=ua.inSourceMode();return"boolean"!=typeof a?b:((b&&!
a)&&ub.toggleSourceMode(),ub)},ub.toggleSourceMode=function(){var a=ub.inSourceM a||!b&&a)&&ua.toggleSourceMode(),ua)},ua.toggleSourceMode=function(){var a=ua.in
ode();(g.isWysiwygSupported||!a)&&(a||(B.saveRange(),B.clear()),ub.blur(),a?ub.s SourceMode();!h.isWysiwygSupported&&a||(a||(B.saveRange(),B.clear()),ua.blur(),a
etWysiwygEditorValue(ub.getSourceEditorValue()):ub.setSourceEditorValue(ub.getWy ?ua.setWysiwygEditorValue(ua.getSourceEditorValue()):ua.setSourceEditorValue(ua.
siwygEditorValue()),z=null,w.toggle(),s.toggle(),q.toggleClass("wysiwygMode",a). getWysiwygEditorValue()),z=null,w.toggle(),s.toggle(),q.toggleClass("wysiwygMode
toggleClass("sourceMode",!a),gb(),hb())},ib=function(){return x.focus(),"undefin ",a).toggleClass("sourceMode",!a),ga(),ha())},ia=function(){return x.focus(),"un
ed"!=typeof x.selectionStart?x.value.substring(x.selectionStart,x.selectionEnd): defined"!=typeof x.selectionStart?x.value.substring(x.selectionStart,x.selection
j.selection.createRange().text},M=function(b,c){ub.inSourceMode()?c.txtExec&&(a. End):k.selection.createRange().text},M=function(a,c){ua.inSourceMode()?c.txtExec
isArray(c.txtExec)?ub.sourceEditorInsertText.apply(ub,c.txtExec):c.txtExec.call( &&(b.isArray(c.txtExec)?ua.sourceEditorInsertText.apply(ua,c.txtExec):c.txtExec.
ub,b,ib())):c.exec&&(a.isFunction(c.exec)?c.exec.call(ub,b):ub.execCommand(c.exe call(ua,a,ia())):c.exec&&(b.isFunction(c.exec)?c.exec.call(ua,a):ua.execCommand(
c,c.hasOwnProperty("execParam")?c.execParam:null))},N=function(){m&&(z=B.selecte c.exec,c.hasOwnProperty("execParam")?c.execParam:null))},N=function(){n&&(z=B.se
dRange())},ub.execCommand=function(b,c){var d=!1,e=ub.commands[b],f=a(B.parentNo lectedRange())},ua.execCommand=function(a,c){var d=!1,e=ua.commands[a],f=b(B.par
de());if(ub.focus(),!f.is("code")&&0===f.parents("code").length){try{d=v[0].exec entNode());if(ua.focus(),!f.is("code")&&0===f.parents("code").length){try{d=v[0]
Command(b,!1,c)}catch(g){}!d&&e&&e.errorMessage&&alert(ub._(e.errorMessage)),hb( .execCommand(a,!1,c)}catch(a){}!d&&e&&e.errorMessage&&alert(ua._(e.errorMessage)
)}},kb=function(){function b(){B&&!B.compare(F)&&(F=B.cloneSelected(),q.trigger( ),ha()}},ka=function(){function a(){B&&!B.compare(F)&&(F=B.cloneSelected(),q.tri
a.Event("selectionchanged"))),G=!1}G||(G=!0,m?b():setTimeout(b,100))},lb=functio gger(b.Event("selectionchanged"))),G=!1}G||(G=!0,n?a():setTimeout(a,100))},la=fu
n(){var b,c=B.parentNode();D!==c&&(b=D,D=c,E=B.getFirstBlockParent(c),q.trigger( nction(){var a,c=B.parentNode();D!==c&&(a=D,D=c,E=B.getFirstBlockParent(c),q.tri
a.Event("nodechanged",{oldNode:b,newNode:D})))},ub.currentNode=function(){return gger(b.Event("nodechanged",{oldNode:a,newNode:D})))},ua.currentNode=function(){r
D},ub.currentBlockNode=function(){return E},hb=function(a){var b,c,d="active",e eturn D},ua.currentBlockNode=function(){return E},ha=function(a){var b,c,d="acti
=v[0],f=ub.sourceMode();if(ub.readOnly())return void r.find(d).removeClass(d);f| ve",e=v[0],f=ua.sourceMode();if(ua.readOnly())return void r.find(d).removeClass(
|(c=a?a.newNode:B.parentNode(),b=B.getFirstBlockParent(c));for(var g=0;g<zb.leng d);f||(c=a?a.newNode:B.parentNode(),b=B.getFirstBlockParent(c));for(var g=0;g<za
th;g++){var h=0,i=Cb[zb[g].name],j=zb[g].state,k=f&&!i.data("sceditor-txtmode")| .length;g++){var h=0,i=Ca[za[g].name],j=za[g].state,k=f&&!i.data("sceditor-txtmo
|!f&&!i.data("sceditor-wysiwygmode");if("string"==typeof j){if(!f)try{h=e.queryC de")||!f&&!i.data("sceditor-wysiwygmode");if("string"==typeof j){if(!f)try{h=e.q
ommandEnabled(j)?0:-1,h>-1&&(h=e.queryCommandState(j)?1:0)}catch(l){}}else k||(h ueryCommandEnabled(j)?0:-1,h>-1&&(h=e.queryCommandState(j)?1:0)}catch(a){}}else
=j.call(ub,c,b));i.toggleClass("disabled",k||0>h).toggleClass(d,h>0)}},ab=functi k||(h=j.call(ua,c,b));i.toggleClass("disabled",k||h<0).toggleClass(d,h>0)}},aa=f
on(b){var c,d,f,g,h="code,blockquote,pre",i="li,ul,ol";return b.originalEvent.de unction(a){var c,d,e,g,h="code,blockquote,pre",i="li,ul,ol";if(!a.originalEvent.
faultPrevented?void 0:(ub.closeDropDown(),c=a(E).closest(h+","+i).first(),13===b defaultPrevented)return ua.closeDropDown(),c=b(E).closest(h+","+i).first(),13===
.which&&c.length&&!c.is(i)?(z=null,d=v[0].createElement("br"),B.insertNode(d),n| a.which&&c.length&&!c.is(i)?(z=null,d=v[0].createElement("br"),B.insertNode(d),o
|(f=d.parentNode,g=f.lastChild,g&&3===g.nodeType&&""===g.nodeValue&&(f.removeChi ||(e=d.parentNode,g=e.lastChild,g&&3===g.nodeType&&""===g.nodeValue&&(e.removeCh
ld(g),g=f.lastChild),!e.isInline(f,!0)&&g===d&&e.isInline(d.previousSibling)&&B. ild(g),g=e.lastChild),!f.isInline(e,!0)&&g===d&&f.isInline(d.previousSibling)&&B
insertHTML("<br>")),!1):void 0)},jb=function(){var b,c,d,f=u[0];e.rTraverse(f,fu .insertHTML("<br>")),!1):void 0},ja=function(){var a,c,d,e=u[0];f.rTraverse(e,fu
nction(g){return b=g.nodeName.toLowerCase(),a.inArray(b,yb)>-1&&(c=!0),3===g.nod nction(g){if(a=g.nodeName.toLowerCase(),b.inArray(a,ya)>-1&&(c=!0),3===g.nodeTyp
eType&&!/^\s*$/.test(g.nodeValue)||"br"===b||n&&!g.firstChild&&!e.isInline(g,!1) e&&!/^\s*$/.test(g.nodeValue)||"br"===a||o&&!g.firstChild&&!f.isInline(g,!1))ret
?(c&&(d=v[0].createElement("p"),d.className="sceditor-nlf",d.innerHTML=n?"":"<br urn c&&(d=v[0].createElement("p"),d.className="sceditor-nlf",d.innerHTML=o?"":"<
/>",f.appendChild(d)),!1):void 0})},bb=function(){ub.val(wb.val())},cb=function br />",e.appendChild(d)),!1})},ba=function(){ua.val(wa.val())},ca=function(){ua.
(){ub.closeDropDown(),z=null},fb=function(){var a=p.height,b=p.width;ub.maximize closeDropDown(),z=null},fa=function(){var a=c.height,b=c.width;ua.maximize()?ua.
()?ub.dimensions("100%","100%",!1):(a&&a.toString().indexOf("%")>-1||b&&b.toStri dimensions("100%","100%",!1):(a&&a.toString().indexOf("%")>-1||b&&b.toString().i
ng().indexOf("%")>-1)&&ub.dimensions(b,a)},ub._=function(){var a,b=arguments;ret ndexOf("%")>-1)&&ua.dimensions(b,a)},ua._=function(){var a,b=arguments;return A&
urn A&&A[b[0]]&&(b[0]=A[b[0]]),b[0].replace(/\{(\d+)\}/g,function(c,d){return b[ &A[b[0]]&&(b[0]=A[b[0]]),b[0].replace(/\{(\d+)\}/g,function(c,d){return b[d-0+1]
d-0+1]!==a?b[d-0+1]:"{"+d+"}"})},db=function(b){C.call(b.type+"Event",b,ub);var !==a?b[d-0+1]:"{"+d+"}"})},da=function(a){C.call(a.type+"Event",a,ua);var c=a.ta
c=b.target===x?"scesrc":"scewys",d=a.Event(b);d.type=c+b.type,q.trigger(d,ub)},u rget===x?"scesrc":"scewys",d=b.Event(a);d.type=c+a.type,q.trigger(d,ua)},ua.bind
b.bind=function(b,c,d,e){b=b.split(" ");for(var f=b.length;f--;)a.isFunction(c)& =function(a,c,d,e){a=a.split(" ");for(var f=a.length;f--;)b.isFunction(c)&&(d||q
&(d||q.bind("scewys"+b[f],c),e||q.bind("scesrc"+b[f],c),"valuechanged"===b[f]&&( .on("scewys"+a[f],c),e||q.on("scesrc"+a[f],c),"valuechanged"===a[f]&&(qa.hasHand
qb.hasHandler=!0));return ub},ub.unbind=function(b,c,d,e){b=b.split(" ");for(var ler=!0));return ua},ua.unbind=function(a,c,d,e){a=a.split(" ");for(var f=a.lengt
f=b.length;f--;)a.isFunction(c)&&(d||q.unbind("scewys"+b[f],c),e||q.unbind("sce h;f--;)b.isFunction(c)&&(d||q.off("scewys"+a[f],c),e||q.off("scesrc"+a[f],c));re
src"+b[f],c));return ub},ub.blur=function(b,c,d){return a.isFunction(b)?ub.bind( turn ua},ua.blur=function(a,c,d){return b.isFunction(a)?ua.bind("blur",a,c,d):ua
"blur",b,c,d):ub.sourceMode()?w.blur():u.blur(),ub},ub.focus=function(b,c,d){if( .sourceMode()?w.blur():u.blur(),ua},ua.focus=function(a,c,d){if(b.isFunction(a))
a.isFunction(b))ub.bind("focus",b,c,d);else if(ub.inSourceMode())x.focus();else{ ua.bind("focus",a,c,d);else if(ua.inSourceMode())x.focus();else{var e,f=B.select
var e,f=B.selectedRange();F||B.hasSelection()||mb(),!n&&f&&1===f.endOffset&&f.co edRange();F||B.hasSelection()||ma(),!o&&f&&1===f.endOffset&&f.collapsed&&(e=f.en
llapsed&&(e=f.endContainer,e&&1===e.childNodes.length&&a(e.firstChild).is("br")& dContainer,e&&1===e.childNodes.length&&b(e.firstChild).is("br")&&(f.setStartBefo
&(f.setStartBefore(e.firstChild),f.collapse(!0),B.selectRange(f))),t.contentWind re(e.firstChild),f.collapse(!0),B.selectRange(f))),t.contentWindow.focus(),u[0].
ow.focus(),u[0].focus(),z&&(B.selectRange(z),z=null)}return ub},ub.keyDown=funct focus(),z&&(B.selectRange(z),z=null)}return ha(),ua},ua.keyDown=function(a,b,c){
ion(a,b,c){return ub.bind("keydown",a,b,c)},ub.keyPress=function(a,b,c){return u return ua.bind("keydown",a,b,c)},ua.keyPress=function(a,b,c){return ua.bind("key
b.bind("keypress",a,b,c)},ub.keyUp=function(a,b,c){return ub.bind("keyup",a,b,c) press",a,b,c)},ua.keyUp=function(a,b,c){return ua.bind("keyup",a,b,c)},ua.nodeCh
},ub.nodeChanged=function(a){return ub.bind("nodechanged",a,!1,!0)},ub.selection anged=function(a){return ua.bind("nodechanged",a,!1,!0)},ua.selectionChanged=fun
Changed=function(a){return ub.bind("selectionchanged",a,!1,!0)},ub.valueChanged= ction(a){return ua.bind("selectionchanged",a,!1,!0)},ua.valueChanged=function(a,
function(a,b,c){return ub.bind("valuechanged",a,b,c)},nb=function(b){var c,d=0,e b,c){return ua.bind("valuechanged",a,b,c)},na=function(a){var d,e=0,f=ua.emotico
=ub.emoticonsCache,f=String.fromCharCode(b.which);return a(E).is("code")||a(E).p nsCache,g=String.fromCharCode(a.which);if(!b(E).is("code")&&!b(E).parents("code"
arents("code").length?void 0:(e||(e=[],a.each(a.extend({},p.emoticons.more,p.emo ).length)return f||(f=[],b.each(b.extend({},c.emoticons.more,c.emoticons.dropdow
ticons.dropdown,p.emoticons.hidden),function(a,b){e[d++]=[a,h("emoticon",{key:a, n,c.emoticons.hidden),function(a,b){f[e++]=[a,i("emoticon",{key:a,url:b.url||b,t
url:b.url||b,tooltip:b.tooltip||a})]}),e.sort(function(a,b){return a[0].length-b ooltip:b.tooltip||a})]}),f.sort(function(a,b){return a[0].length-b[0].length}),u
[0].length}),ub.emoticonsCache=e,ub.longestEmoticonCode=e[e.length-1][0].length) a.emoticonsCache=f,ua.longestEmoticonCode=f[f.length-1][0].length),d=B.replaceKe
,c=B.raplaceKeyword(ub.emoticonsCache,!0,!0,ub.longestEmoticonCode,p.emoticonsCo yword(ua.emoticonsCache,!0,!0,ua.longestEmoticonCode,c.emoticonsCompat,g),d&&c.e
mpat,f),c&&p.emoticonsCompat?(Bb=u.find("img[data-sceditor-emoticon]"),/^\s$/.te moticonsCompat?(Ba=u.find("img[data-sceditor-emoticon]"),/^\s$/.test(g)):!d},oa=
st(f)):!c)},ob=function(){if(Bb.length){var b,c,d,e,f,g,h=ub.currentBlockNode(), function(){if(Ba.length){var a,c,d,e,f,g,h=ua.currentBlockNode(),i=!1,j=/[^\s\xA
i=!1,j=/[^\s\xA0\u2002\u2003\u2009\u00a0]+/;Bb=a.map(Bb,function(k){return k&&k. 0\u2002\u2003\u2009\u00a0]+/;Ba=b.map(Ba,function(k){return k&&k.parentNode?b.co
parentNode?a.contains(h,k)?(b=k.previousSibling,c=k.nextSibling,f=b.nodeValue,nu ntains(h,k)?(a=k.previousSibling,c=k.nextSibling,f=a.nodeValue,null===f&&(f=a.in
ll===f&&(f=b.innerText||""),b&&j.test(b.nodeValue.slice(-1))||c&&j.test((c.nodeV nerText||""),a&&j.test(a.nodeValue.slice(-1))||c&&j.test((c.nodeValue||"")[0])?(
alue||"")[0])?(d=k.parentNode,e=B.cloneSelected(),g=e.startContainer,f+=a(k).dat d=k.parentNode,e=B.cloneSelected(),g=e.startContainer,f+=b(k).data("sceditor-emo
a("sceditor-emoticon"),g===c?i=f.length+e.startOffset:g===h&&h.childNodes[e.star ticon"),g===c?i=f.length+e.startOffset:g===h&&h.childNodes[e.startOffset]===c?i=
tOffset]===c?i=f.length:g===b&&(i=e.startOffset),c&&3===c.nodeType||(c=d.insertB f.length:g===a&&(i=e.startOffset),c&&3===c.nodeType||(c=d.insertBefore(d.ownerDo
efore(d.ownerDocument.createTextNode(""),c)),c.insertData(0,f),d.removeChild(b), cument.createTextNode(""),c)),c.insertData(0,f),d.removeChild(a),d.removeChild(k
d.removeChild(k),i!==!1&&(e.setStart(c,i),e.collapse(!0),B.selectRange(e)),null) ),i!==!1&&(e.setStart(c,i),e.collapse(!0),B.selectRange(e)),null):k):k:null})}},
:k):k:null})}},ub.emoticons=function(b){return b||b===!1?(p.emoticonsEnabled=b,b ua.emoticons=function(a){return a||a===!1?(c.emoticonsEnabled=a,a?(u.keypress(na
?(u.keypress(nb),ub.sourceMode()||(B.saveRange(),L(u[0]),Bb=u.find("img[data-sce ),ua.sourceMode()||(B.saveRange(),L(u[0]),Ba=u.find("img[data-sceditor-emoticon]
ditor-emoticon]"),qb(!1),B.restoreRange())):(u.find("img[data-sceditor-emoticon] "),qa(!1),B.restoreRange())):(u.find("img[data-sceditor-emoticon]").replaceWith(
").replaceWith(function(){return a(this).data("sceditor-emoticon")}),Bb=[],u.unb function(){return b(this).data("sceditor-emoticon")}),Ba=[],u.off("keypress",na)
ind("keypress",nb),qb()),ub):p.emoticonsEnabled},ub.css=function(b){return I||(I ,qa()),ua):c.emoticonsEnabled},ua.css=function(a){return I||(I=b('<style id="#in
=a('<style id="#inline" />',v[0]).appendTo(v.find("head"))[0]),"string"!=typeof line" />',v[0]).appendTo(v.find("head"))[0]),"string"!=typeof a?I.styleSheet?I.s
b?I.styleSheet?I.styleSheet.cssText:I.innerHTML:(I.styleSheet?I.styleSheet.cssTe tyleSheet.cssText:I.innerHTML:(I.styleSheet?I.styleSheet.cssText=a:I.innerHTML=a
xt=b:I.innerHTML=b,ub)},$=function(a){var b=[],c={"`":"~",1:"!",2:"@",3:"#",4:"$ ,ua)},$=function(a){var b=[],c={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&
",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<"," ",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\
.":">","/":"?","\\":"|","[":"{","]":"}"},d={8:"backspace",9:"tab",13:"enter",19: ":"|","[":"{","]":"}"},d={8:"backspace",9:"tab",13:"enter",19:"pause",20:"capslo
"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36: ck",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",3
"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",91:"win",92:" 8:"up",39:"right",40:"down",45:"insert",46:"del",91:"win",92:"win",93:"select",9
win",93:"select",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104 6:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"
:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3", *",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",
115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f 117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",
12",144:"numlock",145:"scrolllock",186:";",187:"=",188:",",189:"-",190:".",191:" 145:"scrolllock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"["
/",192:"`",219:"[",220:"\\",221:"]",222:"'"},e={109:"-",110:"del",111:"/",96:"0" ,220:"\\",221:"]",222:"'"},e={109:"-",110:"del",111:"/",96:"0",97:"1",98:"2",99:
,97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},f=a.which "3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},f=a.which,g=d[f]||String.fr
,g=d[f]||String.fromCharCode(f).toLowerCase();return a.ctrlKey&&b.push("ctrl"),a omCharCode(f).toLowerCase();if((a.ctrlKey||a.metaKey)&&b.push("ctrl"),a.altKey&&
.altKey&&b.push("alt"),a.shiftKey&&(b.push("shift"),e[f]?g=e[f]:c[g]&&(g=c[g])), b.push("alt"),a.shiftKey&&(b.push("shift"),e[f]?g=e[f]:c[g]&&(g=c[g])),g&&(f<16|
g&&(16>f||f>18)&&b.push(g),b=b.join("+"),Ab[b]?Ab[b].call(ub):void 0},ub.addShor |f>18)&&b.push(g),b=b.join("+"),Aa[b])return Aa[b].call(ua)},ua.addShortcut=func
tcut=function(a,b){return a=a.toLowerCase(),Ab[a]="string"==typeof b?function(){ tion(a,b){return a=a.toLowerCase(),"string"==typeof b?Aa[a]=function(){return M(
return M(Cb[b],ub.commands[b]),!1}:b,ub},ub.removeShortcut=function(a){return de Ca[b],ua.commands[b]),!1}:Aa[a]=b,ua},ua.removeShortcut=function(a){return delet
lete Ab[a.toLowerCase()],ub},_=function(b){var c,d,e,f,g;if(!p.disableBlockRemov e Aa[a.toLowerCase()],ua},_=function(a){var d,e,f,g,h;if(!c.disableBlockRemove&&
e&&8===b.which&&(f=B.selectedRange())&&(i.getSelection?(c=f.startContainer,d=f.s 8===a.which&&(g=B.selectedRange())&&(j.getSelection?(d=g.startContainer,e=g.star
tartOffset):(c=f.parentElement(),e=v[0].selection.createRange(),e.moveToElementT tOffset):(d=g.parentElement(),f=v[0].selection.createRange(),f.moveToElementText
ext(c),e.setEndPoint("EndToStart",f),d=e.text.length),0===d&&(g=pb()))){for(;c!= (d),f.setEndPoint("EndToStart",g),e=f.text.length),0===e&&(h=pa()))){for(;d!==h;
=g;){for(;c.previousSibling;)if(c=c.previousSibling,3!==c.nodeType||c.nodeValue) ){for(;d.previousSibling;)if(d=d.previousSibling,3!==d.nodeType||d.nodeValue)ret
return;if(!(c=c.parentNode))return}if(g&&!a(g).is("body"))return ub.clearBlockFo urn;if(!(d=d.parentNode))return}if(h&&!b(h).is("body"))return ua.clearBlockForma
rmatting(g),!1}},pb=function(){for(var b=E;!e.hasStyling(b)||e.isInline(b,!0);)i tting(h),!1}},pa=function(){for(var a=E;!f.hasStyling(a)||f.isInline(a,!0);)if(!
f(!(b=b.parentNode)||a(b).is("body"))return;return b},ub.clearBlockFormatting=fu (a=a.parentNode)||b(a).is("body"))return;return a},ua.clearBlockFormatting=funct
nction(b){return b=b||pb(),!b||a(b).is("body")?ub:(B.saveRange(),b.className="", ion(a){return a=a||pa(),!a||b(a).is("body")?ua:(B.saveRange(),a.className="",z=n
z=null,a(b).attr("style",""),a(b).is("p,div,td")||e.convertElement(b,"p"),B.rest ull,b(a).attr("style",""),b(a).is("p,div,td")||f.convertElement(a,"p"),B.restore
oreRange(),ub)},qb=function(b){if(C&&(C.hasHandler("valuechangedEvent")||qb.hasH Range(),ua)},qa=function(a){if(C&&(C.hasHandler("valuechangedEvent")||qa.hasHand
andler)){var c,d=ub.sourceMode(),e=!d&&B.hasSelection();b=b!==!1&&!v[0].getEleme ler)){var c,d=ua.sourceMode(),e=!d&&B.hasSelection();a=a!==!1&&!v[0].getElementB
ntById("sceditor-start-marker"),sb.timer&&(clearTimeout(sb.timer),sb.timer=!1),e yId("sceditor-start-marker"),sa.timer&&(clearTimeout(sa.timer),sa.timer=!1),e&&a
&&b&&B.saveRange(),c=d?w.val():u.html(),c!==qb.lastHtmlValue&&(qb.lastHtmlValue= &&B.saveRange(),c=d?w.val():u.html(),c!==qa.lastHtmlValue&&(qa.lastHtmlValue=c,q
c,q.trigger(a.Event("valuechanged",{rawValue:d?ub.val():c}))),e&&b&&B.removeMark .trigger(b.Event("valuechanged",{rawValue:d?ua.val():c}))),e&&a&&B.removeMarkers
ers()}},rb=function(){sb.timer&&qb()},sb=function(a){var b=a.which,c=sb.lastChar ()}},ra=function(){sa.timer&&qa()},sa=function(a){var b=a.which,c=sa.lastChar,d=
,d=13===c||32===c,e=8===c||46===c;sb.lastChar=b,13===b||32===b?d?sb.triggerNextC 13===c||32===c,e=8===c||46===c;sa.lastChar=b,13===b||32===b?d?sa.triggerNextChar
har=!0:qb():8===b||46===b?e?sb.triggerNextChar=!0:qb():sb.triggerNextChar&&(qb() =!0:qa():8===b||46===b?e?sa.triggerNextChar=!0:qa():sa.triggerNextChar&&(qa(),sa
,sb.triggerNextChar=!1),sb.timer&&clearTimeout(sb.timer),sb.timer=setTimeout(fun .triggerNextChar=!1),sa.timer&&clearTimeout(sa.timer),sa.timer=setTimeout(functi
ction(){qb()},1500)},tb=function(){J||ub.updateOriginal(),J=!1},K()};return o.lo on(){qa()},1500)},ta=function(){J||ua.updateOriginal(),J=!1},K()};return p.local
cale={},o.command={get:function(a){return o.commands[a]||null},set:function(b,c) e={},p.command={get:function(a){return p.commands[a]||null},set:function(a,c){re
{return b&&c?(c=a.extend(o.commands[b]||{},c),c.remove=function(){o.command.remo turn!(!a||!c)&&(c=b.extend(p.commands[a]||{},c),c.remove=function(){p.command.re
ve(b)},o.commands[b]=c,this):!1},remove:function(a){return o.commands[a]&&delete move(a)},p.commands[a]=c,this)},remove:function(a){return p.commands[a]&&delete
o.commands[a],this}},o}.call(b,c,b,a),!(void 0!==d&&(a.exports=d))},function(a, p.commands[a],this}},p}.call(b,c,b,a),!(void 0!==d&&(a.exports=d))},function(a,b
b,c){var d;d=function(){"use strict";var a={},b=function(b){var c=this,d=[],e=fu ,c){var d;d=function(){"use strict";var a={},b=function(b){var c=this,d=[],e=fun
nction(a){return"signal"+a.charAt(0).toUpperCase()+a.slice(1)},f=function(a,c){a ction(a){return"signal"+a.charAt(0).toUpperCase()+a.slice(1)},f=function(a,c){a=
=[].slice.call(a);var f,g,h=e(a.shift());for(f=0;f<d.length;f++)if(h in d[f]&&(g [].slice.call(a);var f,g,h=e(a.shift());for(f=0;f<d.length;f++)if(h in d[f]&&(g=
=d[f][h].apply(b,a),c))return g};c.call=function(){f(arguments,!1)},c.callOnlyFi d[f][h].apply(b,a),c))return g};c.call=function(){f(arguments,!1)},c.callOnlyFir
rst=function(){return f(arguments,!0)},c.hasHandler=function(a){var b=d.length;f st=function(){return f(arguments,!0)},c.hasHandler=function(a){var b=d.length;fo
or(a=e(a);b--;)if(a in d[b])return!0;return!1},c.exists=function(b){return b in r(a=e(a);b--;)if(a in d[b])return!0;return!1},c.exists=function(b){return b in a
a?(b=a[b],"function"==typeof b&&"object"==typeof b.prototype):!1},c.isRegistered &&(b=a[b],"function"==typeof b&&"object"==typeof b.prototype)},c.isRegistered=fu
=function(b){if(c.exists(b))for(var e=d.length;e--;)if(d[e]instanceof a[b])retur nction(b){if(c.exists(b))for(var e=d.length;e--;)if(d[e]instanceof a[b])return!0
n!0;return!1},c.register=function(e){return!c.exists(e)||c.isRegistered(e)?!1:(e ;return!1},c.register=function(e){return!(!c.exists(e)||c.isRegistered(e)||(e=ne
=new a[e],d.push(e),"init"in e&&e.init.call(b),!0)},c.deregister=function(e){var w a[e],d.push(e),"init"in e&&e.init.call(b),0))},c.deregister=function(e){var f,
f,g=d.length,h=!1;if(!c.isRegistered(e))return h;for(;g--;)d[g]instanceof a[e]& g=d.length,h=!1;if(!c.isRegistered(e))return h;for(;g--;)d[g]instanceof a[e]&&(f
&(f=d.splice(g,1)[0],h=!0,"destroy"in f&&f.destroy.call(b));return h},c.destroy= =d.splice(g,1)[0],h=!0,"destroy"in f&&f.destroy.call(b));return h},c.destroy=fun
function(){for(var a=d.length;a--;)"destroy"in d[a]&&d[a].destroy.call(b);d=[],b ction(){for(var a=d.length;a--;)"destroy"in d[a]&&d[a].destroy.call(b);d=[],b=nu
=null}};return b.plugins=a,b}.call(b,c,b,a),!(void 0!==d&&(a.exports=d))},functi ll}};return b.plugins=a,b}.call(b,c,b,a),!(void 0!==d&&(a.exports=d))},function(
on(a,b,c){var d;d=function(a,b){"use strict";var d=c(1),e=navigator.userAgent;b. a,b,c){var d;d=function(a){"use strict";var b=c(1),d=c(5),e=c(7),f=c(6),g=f.ie,h
ie=function(){var a,b=3,c=document,d=c.createElement("div"),e=d.getElementsByTag =g&&g<11,i=function(a){return b("<p>",a.ownerDocument).append(a).html()},j=funct
Name("i");do d.innerHTML="<!--[if gt IE "+ ++b+"]><i></i><![endif]-->";while(e[0 ion(a,b,c){var d,e,f,g,h,i="",j=a.startContainer,k=a.startOffset;for(j&&3!==j.no
]);return c.documentMode&&c.all&&window.atob&&(b=10),4===b&&c.documentMode&&(b=1 deType&&(j=j.childNodes[k],k=0),f=g=k;c>i.length&&j&&3===j.nodeType;)d=j.nodeVal
1),b>4?b:a}(),b.ios=/iPhone|iPod|iPad| wosbrowser\//i.test(e),b.isWysiwygSupport ue,e=c-i.length,h&&(g=d.length,f=0),h=j,b?(f=Math.max(g-e,0),k=f,i=d.substr(f,g-
ed=function(){var a,c,f,g=d('<p contenteditable="true">')[0].contentEditable;ret f)+i,j=h.previousSibling):(g=Math.min(e,d.length),k=f+g,i+=d.substr(f,g),j=h.nex
urn g===f&&"inherit"===g?!1:(c=/Opera Mobi|Opera Mini/i.test(e),/Android/i.test( tSibling);return{node:h||j,offset:k,text:i}},k=function(a,c){var f,k,l,m=c||a.co
e)&&(c=!0,/Safari/.test(e)&&(a=/Safari\/(\d+)/.exec(e),c=a&&a[1]?a[1]<534:!0)),/ ntentDocument||a.document,n=a,o=!!a.getSelection,p="sceditor-start-marker",q="sc
Silk\//i.test(e)&&(a=/AppleWebKit\/(\d+)/.exec(e),c=a&&a[1]?a[1]<534:!0),b.ios& editor-end-marker",r="character",s=this;s.insertHTML=function(a,b){var c,d,e=s.s
&(c=/OS [0-4](_\d)+ like Mac/i.test(e)),/Firefox/i.test(e)&&(c=!1),/OneBrowser/i electedRange();if(!e)return!1;if(o){for(b&&(a+=s.selectedHtml()+b),d=m.createEle
.test(e)&&(c=!1),"UCWEB"===navigator.vendor&&(c=!1),!c)}()}.call(b,c,b,a),!(void ment("p"),c=m.createDocumentFragment(),d.innerHTML=a;d.firstChild;)c.appendChild
0!==d&&(a.exports=d))},function(a,b,c){var d;d=function(a,b){"use strict";var c (d.firstChild);s.insertNode(c)}else e.pasteHTML(l(a,b,!0)),s.restoreRange()},l=f
=/^(?:https?|s?ftp|mailto|spotify|skype|ssh|teamspeak|tel):|(?:\/\/)/i;b.regex=f unction(a,c,e){var h,i,j=m.createElement("div"),k=b(j);if("string"==typeof a?(c&
unction(a){return a.replace(/([\-.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")},b.entities= &(a+=s.selectedHtml()+c),k.html(a)):(k.append(a),c&&k.append(s.selectedRange().e
function(a,b){if(!a)return a;var c={"&":"&amp;","<":"&lt;",">":"&gt;"," ":" &nb xtractContents()).append(c)),h=j.lastChild){for(;!d.isInline(h.lastChild,!0);)h=
sp;","\r\n":"\n","\r":"\n","\n":"<br />"};return b!==!1&&(c['"']="&#34;",c["'"]= h.lastChild;return d.canHaveChildren(h)&&(i=b(h),h.lastChild||i.append("​")),g&&
"&#39;",c["`"]="&#96;"),a=a.replace(/ {2}|\r\n|[&<>\r\n'"`]/g,function(a){return g<9&&b(h).is("img")&&k.append("​"),s.removeMarkers(),(i||k).append(f(p)).append(
c[a]||a})},b.uriScheme=function(a){var b,d=/^[^\/]*:/i,e=window.location;return f(q)),e?k.html():b(m.createDocumentFragment()).append(k.contents())[0]}},s.inser
a&&d.test(a)&&!c.test(a)?(b=e.pathname.split("/"),b.pop(),e.protocol+"//"+e.hos tNode=function(a,b){if(o){var c=l(a,b),e=s.selectedRange(),f=e.commonAncestorCon
t+b.join("/")+"/"+a):a}}.call(b,c,b,a),!(void 0!==d&&(a.exports=d))},function(a, tainer;if(!c)return!1;e.deleteContents(),f&&3!==f.nodeType&&!d.canHaveChildren(f
b,c){var d;d=function(){"use strict";var a=c(1),b=c(4).ie,d=c(10),e=b&&11>b,f={b )?f.parentNode.insertBefore(c,f):e.insertNode(c),s.restoreRange()}else s.insertH
old:{exec:"bold",tooltip:"Bold",shortcut:"ctrl+b"},italic:{exec:"italic",tooltip TML(i(a),b?i(b):null)},s.cloneSelected=function(){var a=s.selectedRange();if(a)r
:"Italic",shortcut:"ctrl+i"},underline:{exec:"underline",tooltip:"Underline",sho eturn o?a.cloneRange():a.duplicate()},s.selectedRange=function(){var a,b,c=o?n.g
rtcut:"ctrl+u"},strike:{exec:"strikethrough",tooltip:"Strikethrough"},subscript: etSelection():m.selection;if(c){if(c.getRangeAt&&c.rangeCount<=0){for(b=m.body;b
{exec:"subscript",tooltip:"Subscript"},superscript:{exec:"superscript",tooltip:" .firstChild;)b=b.firstChild;a=m.createRange(),a.setStartBefore(b),c.addRange(a)}
Superscript"},left:{exec:"justifyleft",tooltip:"Align left"},center:{exec:"justi return o&&c.rangeCount>0&&(a=c.getRangeAt(0)),o||"Control"===c.type||(a=c.create
fycenter",tooltip:"Center"},right:{exec:"justifyright",tooltip:"Align right"},ju Range()),k(a)?a:null}},k=function(a){var b;return a&&!o&&(b=a.parentElement()),!
stify:{exec:"justifyfull",tooltip:"Justify"},font:{_dropDown:function(b,c,e){for b||b.ownerDocument===m},s.hasSelection=function(){var a=o?n.getSelection():m.sel
(var f=0,g=b.opts.fonts.split(","),h=a("<div />"),i=function(){return e(a(this). ection;return o||!a?a&&a.rangeCount>0:"None"!==a.type&&k(a.createRange())},s.sel
data("font")),b.closeDropDown(!0),!1};f<g.length;f++)h.append(d("fontOpt",{font: ectedHtml=function(){var a,b=s.selectedRange();if(b){if(o)return a=m.createEleme
g[f]},!0).click(i));b.createDropDown(c,"font-picker",h)},exec:function(a){var b= nt("p"),a.appendChild(b.cloneContents()),a.innerHTML;if(""!==b.text&&b.htmlText)
this;f.font._dropDown(b,a,function(a){b.execCommand("fontname",a)})},tooltip:"Fo return b.htmlText}return""},s.parentNode=function(){var a=s.selectedRange();if(a
nt Name"},size:{_dropDown:function(b,c,e){for(var f=a("<div />"),g=function(c){e )return a.parentElement?a.parentElement():a.commonAncestorContainer},s.getFirstB
(a(this).data("size")),b.closeDropDown(!0),c.preventDefault()},h=1;7>=h;h++)f.ap lockParent=function(a){var b=function(a){return d.isInline(a,!0)?(a=a?a.parentNo
pend(d("sizeOpt",{size:h},!0).click(g));b.createDropDown(c,"fontsize-picker",f)} de:null,a?b(a):a):a};return b(a||s.parentNode())},s.insertNodeAt=function(a,b){v
,exec:function(a){var b=this;f.size._dropDown(b,a,function(a){b.execCommand("fon ar c=s.selectedRange(),d=s.cloneSelected();return!!d&&(d.collapse(a),o?d.insertN
tsize",a)})},tooltip:"Font Size"},color:{_dropDown:function(b,c,d){var e,g,h,i,j ode(b):d.pasteHTML(i(b)),void s.selectRange(c))},f=function(a){s.removeMarker(a)
={r:255,g:255,b:255},k=a("<div />"),l=b.opts.colors?b.opts.colors.split("|"):new ;var b=m.createElement("span");return b.id=a,b.style.lineHeight="0",b.style.disp
Array(21),m=[],n=f.color;if(!n._htmlCache){for(e=0;e<l.length;++e){for(i=l[e]?l lay="none",b.className="sceditor-selection sceditor-ignore",b.innerHTML=" ",b},s
[e].split(","):new Array(21),m.push('<div class="sceditor-color-column">'),g=0;g .insertMarkers=function(){s.insertNodeAt(!0,f(p)),s.insertNodeAt(!1,f(q))},s.get
<i.length;++g)h=i[g]||"#"+j.r.toString(16)+j.g.toString(16)+j.b.toString(16),m.p Marker=function(a){return m.getElementById(a)},s.removeMarker=function(a){var b=
ush('<a href="#" class="sceditor-color-option" style="background-color: '+h+'" d s.getMarker(a);b&&b.parentNode.removeChild(b)},s.removeMarkers=function(){s.remo
ata-color="'+h+'"></a>'),g%5===0?(j.g-=51,j.b=255):j.b-=51;m.push("</div>"),e%5= veMarker(p),s.removeMarker(q)},s.saveRange=function(){s.insertMarkers()},s.selec
==0?(j.r-=51,j.g=255,j.b=255):(j.g=255,j.b=255)}n._htmlCache=m.join("")}k.append tRange=function(a){if(o){var c,e=n.getSelection(),f=a.endContainer;if(!h&&a.coll
(n._htmlCache).find("a").click(function(c){d(a(this).attr("data-color")),b.close apsed&&f&&!d.isInline(f,!0)){for(c=f.lastChild;c&&b(c).is(".sceditor-ignore");)c
DropDown(!0),c.preventDefault()}),b.createDropDown(c,"color-picker",k)},exec:fun =c.previousSibling;if(b(c).is("br")){var g=m.createRange();g.setEndAfter(c),g.co
ction(a){var b=this;f.color._dropDown(b,a,function(a){b.execCommand("forecolor", llapse(!1),s.compare(a,g)&&(a.setStartBefore(c),a.collapse(!0))}}e&&(s.clear(),e
a)})},tooltip:"Font Color"},removeformat:{exec:"removeformat",tooltip:"Remove Fo .addRange(a))}else a.select()},s.restoreRange=function(){var a,c,e,f=s.selectedR
rmatting"},cut:{exec:"cut",tooltip:"Cut",errorMessage:"Your browser does not all ange(),g=s.getMarker(p),h=s.getMarker(q);return!!(g&&h&&f)&&(c=g.nextSibling===h
ow the cut command. Please use the keyboard shortcut Ctrl/Cmd-X"},copy:{exec:"co ,o?(f=m.createRange(),f.setStartBefore(g),f.setEndAfter(h)):(f=m.body.createText
py",tooltip:"Copy",errorMessage:"Your browser does not allow the copy command. P Range(),a=m.body.createTextRange(),e=g.previousSibling,g.nextSibling!==h||e&&d.i
lease use the keyboard shortcut Ctrl/Cmd-C"},paste:{exec:"paste",tooltip:"Paste" sInline(e,!0)&&!b(e).is("br")||b(g).before("​"),a.moveToElementText(g),f.setEndP
,errorMessage:"Your browser does not allow the paste command. Please use the key oint("StartToStart",a),f.moveStart(r,0),a.moveToElementText(h),f.setEndPoint("En
board shortcut Ctrl/Cmd-V"},pastetext:{exec:function(a){var b,c,e=this;c=d("past dToStart",a),f.moveEnd(r,0)),c&&f.collapse(!0),s.selectRange(f),void s.removeMar
etext",{label:e._("Paste your text inside the following box:"),insert:e._("Inser kers())},s.selectOuterText=function(a,b){var c,d,e=s.cloneSelected();return!!e&&
t")},!0),c.find(".button").click(function(a){b=c.find("#txt").val(),b&&e.wysiwyg (e.collapse(!1),o?(c=j(e,!0,a),d=j(e,!1,b),e.setStart(c.node,c.offset),e.setEnd(
EditorInsertText(b),e.closeDropDown(!0),a.preventDefault()}),e.createDropDown(a, d.node,d.offset)):(e.moveStart(r,0-a),e.moveEnd(r,b)),void s.selectRange(e))},s.
"pastetext",c)},tooltip:"Paste Text"},bulletlist:{exec:"insertunorderedlist",too getOuterText=function(a,b){var c=s.cloneSelected();return c?(c.collapse(!a),o?j(
ltip:"Bullet list"},orderedlist:{exec:"insertorderedlist",tooltip:"Numbered list c,a,b).text:(a?c.moveStart(r,0-b):c.moveEnd(r,b),c.text)):""},s.replaceKeyword=f
"},indent:{state:function(b,c){var d,e,f,g=a(c),h=g.parents("ul,ol,menu"),i=h.fi unction(a,b,c,d,f,g){c||a.sort(function(a,b){return a[0].length-b[0].length});va
rst();if(h.length>1||i.children().length>1)return 0;if(g.is("ul,ol,menu")){if(d= r h,i,j,k,l,m,n,p="[\\s    ]",q=a.length,r=f?1:0,t=d||a[q-1][0].length;if(f){if(
this.getRangeHelper().selectedRange(),!(window.Range&&d instanceof Range))return !o)return!1;t++}for(g=g||"",h=s.getOuterText(!0,t),k=h.length,h+=g,b&&(h+=s.getO
g.is("li,ul,ol,menu")?0:-1;if(e=d.startContainer.parentNode,f=d.endContainer.pa uterText(!1,t));q--;)if(m=a[q][0],n=m.length,j=Math.max(0,k-n-r),i=f?h.substr(j)
rentNode,e!==e.parentNode.firstElementChild||a(f).is("li")&&f!==f.parentNode.las .search(new RegExp("(?:"+p+")"+e.regex(m)+"(?="+p+")")):h.indexOf(m,j),i>-1&&(f&
tElementChild)return 0}return-1},exec:function(){var b=this,c=a(b.getRangeHelper &(i+=j+1),i<=k&&i+n+r>=k))return l=k-i,s.selectOuterText(l,n-l-(/^\S/.test(g)?1:
().getFirstBlockParent());b.focus(),c.parents("ul,ol,menu")&&b.execCommand("inde 0)),s.insertHTML(a[q][1]),!0;return!1},s.compare=function(a,b){var c=o?Range.END
nt")},tooltip:"Add indent"},outdent:{state:function(b,c){return a(c).is("ul,ol,m _TO_END:"EndToEnd",d=o?Range.START_TO_START:"StartToStart",e=o?"compareBoundaryP
enu")||a(c).parents("ul,ol,menu").length>0?0:-1},exec:function(){var b=this,c=a( oints":"compareEndPoints";return b||(b=s.selectedRange()),a&&b?k(a)&&k(b)&&0===a
b.getRangeHelper().getFirstBlockParent());c.parents("ul,ol,menu")&&b.execCommand [e](c,b)&&0===a[e](d,b):!a&&!b},s.clear=function(){var a=o?n.getSelection():m.se
("outdent")},tooltip:"Remove one indent"},table:{forceNewLineAfter:["table"],exe lection;a&&(a.removeAllRanges?a.removeAllRanges():a.empty&&a.empty())}};return k
c:function(a){var b=this,c=d("table",{rows:b._("Rows:"),cols:b._("Cols:"),insert }.call(b,c,b,a),!(void 0!==d&&(a.exports=d))},function(a,b,c){var d;d=function(a
:b._("Insert")},!0);c.find(".button").click(function(a){var d,f,g=c.find("#rows" ){"use strict";var b=c(1),d=c(6),e={},f={traverse:function(a,b,c,d,e){if(a)for(a
).val()-0,h=c.find("#cols").val()-0,i="<table>";if(!(1>g||1>h)){for(d=0;g>d;d++) =e?a.lastChild:a.firstChild;a;){var g=e?a.previousSibling:a.nextSibling;if(!c&&b
{for(i+="<tr>",f=0;h>f;f++)i+="<td>"+(e?"":"<br />")+"</td>";i+="</tr>"}i+="</ta (a)===!1||!d&&f.traverse(a,b,c,d,e)===!1||c&&b(a)===!1)return!1;a=g}},rTraverse:
ble>",b.wysiwygEditorInsertHtml(i),b.closeDropDown(!0),a.preventDefault()}}),b.c function(a,b,c,d){this.traverse(a,b,c,d,!0)},parseHTML:function(a,c){var d=[],e=
reateDropDown(a,"inserttable",c)},tooltip:"Insert a table"},horizontalrule:{exec (c||document).createElement("div");return e.innerHTML=a,b.merge(d,e.childNodes),
:"inserthorizontalrule",tooltip:"Insert a horizontal rule"},code:{forceNewLineAf d},hasStyling:function(a){var c=b(a);return a&&(!c.is("p,div")||a.className||c.a
ter:["code"],exec:function(){this.wysiwygEditorInsertHtml("<code>",(e?"":"<br /> ttr("style")||!b.isEmptyObject(c.data()))},convertElement:function(a,b){for(var
")+"</code>")},tooltip:"Code"},image:{exec:function(a){var b=this,c=d("image",{u c,e,g=a.attributes,h=g.length,i=a.ownerDocument.createElement(b);h--;)if(e=g[h],
rl:b._("URL:"),width:b._("Width (optional):"),height:b._("Height (optional):"),i !d.ie||e.specified)if(d.ie<8&&/style/i.test(e.name))f.copyCSS(a,i);else try{
nsert:b._("Insert")},!0); i.setAttribute(e.name,e.value)}catch(a){}for(;c=a.firstChild;)i.appendChild(c);r
c.find(".button").click(function(a){var d=c.find("#image").val(),e=c.find("#widt eturn a.parentNode.replaceChild(i,a),i},blockLevelList:"|body|hr|p|div|h1|h2|h3|
h").val(),f=c.find("#height").val(),g="";e&&(g+=' width="'+e+'"'),f&&(g+=' heigh h4|h5|h6|address|pre|form|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|blockquote|c
t="'+f+'"'),d&&b.wysiwygEditorInsertHtml("<img"+g+' src="'+d+'" />'),b.closeDrop enter|",canHaveChildren:function(a){return!!/11?|9/.test(a.nodeType)&&"|iframe|a
Down(!0),a.preventDefault()}),b.createDropDown(a,"insertimage",c)},tooltip:"Inse rea|base|basefont|br|col|frame|hr|img|input|wbr|isindex|link|meta|param|command|
rt an image"},email:{exec:function(a){var b=this,c=d("email",{label:b._("E-mail: embed|keygen|source|track|object|".indexOf("|"+a.nodeName.toLowerCase()+"|")<0},
"),desc:b._("Description (optional):"),insert:b._("Insert")},!0);c.find(".button isInline:function(a,b){var c,d=(a||{}).nodeType||3;return 1!==d?3===d:(c=a.tagNa
").click(function(a){var d=c.find("#email").val(),e=c.find("#des").val();d&&(b.f me.toLowerCase(),"code"===c?!b:f.blockLevelList.indexOf("|"+c+"|")<0)},copyCSS:f
ocus(),!b.getRangeHelper().selectedHtml()||e?(e=e||d,b.wysiwygEditorInsertHtml(' unction(a,b){b.style.cssText=a.style.cssText+b.style.cssText},fixNesting:functio
<a href="mailto:'+d+'">'+e+"</a>")):b.execCommand("createlink","mailto:"+d)),b.c n(a){var b=function(a){for(;f.isInline(a.parentNode,!0);)a=a.parentNode;return a
loseDropDown(!0),a.preventDefault()}),b.createDropDown(a,"insertemail",c)},toolt };f.traverse(a,function(a){if(1===a.nodeType&&!f.isInline(a,!0)&&f.isInline(a.pa
ip:"Insert an email"},link:{exec:function(a){var b=this,c=d("link",{url:b._("URL rentNode,!0)){var c=b(a),d=c.parentNode,e=f.extractContents(c,a),g=a;f.copyCSS(c
:"),desc:b._("Description (optional):"),ins:b._("Insert")},!0);c.find(".button") ,g),d.insertBefore(e,c),d.insertBefore(g,c)}})},findCommonAncestor:function(a,c)
.click(function(a){var d=c.find("#link").val(),e=c.find("#des").val();d&&(b.focu {return b(a).parents().has(b(c)).first()},getSibling:function(a,b){return a?(b?a
s(),!b.getRangeHelper().selectedHtml()||e?(e=e||d,b.wysiwygEditorInsertHtml('<a .previousSibling:a.nextSibling)||f.getSibling(a.parentNode,b):null},removeWhiteS
href="'+d+'">'+e+"</a>")):b.execCommand("createlink",d)),b.closeDropDown(!0),a.p pace:function(a,c){for(var d,e,g,h,i,j,k,l,m=f.getSibling,n=f.isInline,o=a.first
reventDefault()}),b.createDropDown(a,"insertlink",c)},tooltip:"Insert a link"},u Child;o;){if(k=o.nextSibling,d=o.nodeValue,e=o.nodeType,1===e&&o.firstChild&&(j=
nlink:{state:function(){var b=a(this.currentNode());return b.is("a")||b.parents( b(o).css("whiteSpace"),/pre(\-wrap)?$/i.test(j)||f.removeWhiteSpace(o,/line$/i.t
"a").length>0?0:-1},exec:function(){var b=a(this.currentNode()),c=b.is("a")?b:b. est(j))),3===e&&d){for(g=m(o),h=m(o,!0),l=!1;b(h).hasClass("sceditor-ignore");)h
parents("a").first();c.length&&c.replaceWith(c.contents())},tooltip:"Unlink"},qu =m(h,!0);if(n(o)&&h){for(i=h;i.lastChild;)i=i.lastChild;l=3===i.nodeType?/[\t\n\
ote:{forceNewLineAfter:["blockquote"],exec:function(a,b,c){var d="<blockquote>", r ]$/.test(i.nodeValue):!n(i)}d=d.replace(/\u200B/g,""),h&&n(h)&&!l||(d=d.replac
f="</blockquote>";b?(c=c?"<cite>"+c+"</cite>":"",d=d+c+b+f,f=null):""===this.get e(c?/^[\t ]+/:/^[\t\n\r ]+/,"")),g&&n(g)||(d=d.replace(c?/[\t ]+$/:/[\t\n\r ]+$/
RangeHelper().selectedHtml()&&(f=(e?"":"<br />")+f),this.wysiwygEditorInsertHtml ,"")),d.length?o.nodeValue=d.replace(c?/[\t ]+/g:/[\t\n\r ]+/g," "):a.removeChil
(d,f)},tooltip:"Insert a Quote"},emoticon:{exec:function(b){var c=this,d=functio d(o)}o=k}},extractContents:function(a,c){var d,e=f.findCommonAncestor(a,c).get(0
n(e){var f,g=c.opts.emoticonsCompat,h=c.getRangeHelper(),i=g&&" "!==h.getOuterTe ),g=!1,h=!1;return(d=function(e){var i,j=a.ownerDocument.createDocumentFragment(
xt(!0,1)?" ":"",j=g&&" "!==h.getOuterText(!1,1)?" ":"",k=a("<div />"),l=a("<div );return f.traverse(e,function(e){return h||e===c?(h=!0,!1):(e===a&&(g=!0),void(
/>").appendTo(k),m=0,n=a.extend({},c.opts.emoticons.dropdown,e?c.opts.emoticons. b.contains(e,a)||g&&b.contains(e,c)?(i=e.cloneNode(!1),i.appendChild(d(e)),j.app
more:{});return a.each(n,function(){m++}),m=Math.sqrt(m),a.each(n,function(b,d){ endChild(i)):g&&!b.contains(j,e)&&j.appendChild(e)))},!1),j})(e)},getOffset:func
l.append(a("<img />").attr({src:d.url||d,alt:b,title:d.tooltip||b}).click(functi tion(a){for(var b=0,c=0;a;)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;retur
on(){return c.insert(i+a(this).attr("alt")+j,null,!1).closeDropDown(!0),!1})),l. n{left:b,top:c}},getStyle:function(a,c){var d,f,g,h=a.style;if(!h)return"";if(e[
children().length>=m&&(l=a("<div />").appendTo(k))}),e||(f=a('<a class="sceditor c]||(e[c]=b.camelCase(c)),c=e[c],g=h[c],"textAlign"===c){if(d=b(a),f=h.direction
-more">'+c._("More")+"</a>").click(function(){return c.createDropDown(b,"more-em ,g=g||d.css(c),d.parent().css(c)===g||"block"!==d.css("display")||d.is("hr")||d.
oticons",d(!0)),!1}),k.append(f)),k};c.createDropDown(b,"emoticons",d(!1))},txtE is("th"))return"";if(/right/i.test(g)&&"rtl"===f||/left/i.test(g)&&"ltr"===f)ret
xec:function(a){f.emoticon.exec.call(this,a)},tooltip:"Insert an emoticon"},yout urn""}return g},hasStyle:function(a,c,d){var e=f.getStyle(a,c);return!!e&&(!d||e
ube:{_dropDown:function(a,b,c){var e,f=d("youtubeMenu",{label:a._("Video URL:"), ===d||b.isArray(d)&&b.inArray(e,d)>-1)}};return f}.call(b,c,b,a),!(void 0!==d&&(
insert:a._("Insert")},!0);f.find(".button").click(function(b){var d=f.find("#lin a.exports=d))},function(a,b,c){var d;d=function(a,b){"use strict";var d=c(1),e=n
k").val();d&&(e=d.match(/(?:v=|v\/|embed\/|youtu.be\/)(.{11})/),e&&(d=e[1]),/^[a avigator.userAgent;b.ie=function(){var a,b=3,c=document,d=c.createElement("div")
-zA-Z0-9_\-]{11}$/.test(d)?c(d):alert("Invalid YouTube video")),a.closeDropDown( ,e=d.getElementsByTagName("i");do d.innerHTML="<!--[if gt IE "+ ++b+"]><i></i><!
!0),b.preventDefault()}),a.createDropDown(b,"insertlink",f)},exec:function(a){va [endif]-->";while(e[0]);return c.documentMode&&c.all&&window.atob&&(b=10),4===b&
r b=this;f.youtube._dropDown(b,a,function(a){b.wysiwygEditorInsertHtml(d("youtub &c.documentMode&&(b=11),b>4?b:a}(),b.ios=/iPhone|iPod|iPad| wosbrowser\//i.test(
e",{id:a}))})},tooltip:"Insert a YouTube video"},date:{_date:function(a){var b=n e),b.isWysiwygSupported=function(){var a,c,f,g=d('<p contenteditable="true">')[0
ew Date,c=b.getYear(),d=b.getMonth()+1,e=b.getDate();return 2e3>c&&(c=1900+c),10 ].contentEditable;return g!==f&&"inherit"!==g&&(c=/Opera Mobi|Opera Mini/i.test(
>d&&(d="0"+d),10>e&&(e="0"+e),a.opts.dateFormat.replace(/year/i,c).replace(/mont e),/Android/i.test(e)&&(c=!0,/Safari/.test(e)&&(a=/Safari\/(\d+)/.exec(e),c=!a||
h/i,d).replace(/day/i,e)},exec:function(){this.insertText(f.date._date(this))},t !a[1]||a[1]<534)),/ Silk\//i.test(e)&&(a=/AppleWebKit\/(\d+)/.exec(e),c=!a||!a[1
xtExec:function(){this.insertText(f.date._date(this))},tooltip:"Insert current d ]||a[1]<534),b.ios&&(c=/OS [0-4](_\d)+ like Mac/i.test(e)),/Firefox/i.test(e)&&(
ate"},time:{_time:function(){var a=new Date,b=a.getHours(),c=a.getMinutes(),d=a. c=!1),/OneBrowser/i.test(e)&&(c=!1),"UCWEB"===navigator.vendor&&(c=!1),!c)}()}.c
getSeconds();return 10>b&&(b="0"+b),10>c&&(c="0"+c),10>d&&(d="0"+d),b+":"+c+":"+ all(b,c,b,a),!(void 0!==d&&(a.exports=d))},function(a,b,c){var d;d=function(a,b)
d},exec:function(){this.insertText(f.time._time())},txtExec:function(){this.inse {"use strict";var c=/^(?:https?|s?ftp|mailto|spotify|skype|ssh|teamspeak|tel):|(
rtText(f.time._time())},tooltip:"Insert current time"},ltr:{state:function(a,b){ ?:\/\/)/i;b.regex=function(a){return a.replace(/([\-.*+?^=!:${}()|\[\]\/\\])/g,"
return b&&"ltr"===b.style.direction},exec:function(){var b=this,c=b.getRangeHelp \\$1")},b.entities=function(a,b){if(!a)return a;var c={"&":"&amp;","<":"&lt;",">
er().getFirstBlockParent(),d=a(c);b.focus(),(c&&!d.is("body")||(b.execCommand("f ":"&gt;"," ":" &nbsp;","\r\n":"\n","\r":"\n","\n":"<br />"};return b!==!1&&(c['
ormatBlock","p"),c=b.getRangeHelper().getFirstBlockParent(),d=a(c),c&&!d.is("bod "']="&#34;",c["'"]="&#39;",c["`"]="&#96;"),a=a.replace(/ {2}|\r\n|[&<>\r\n'"`]/g
y")))&&("ltr"===d.css("direction")?d.css("direction",""):d.css("direction","ltr" ,function(a){return c[a]||a})},b.uriScheme=function(a){var b,d=/^[^\/]*:/i,e=win
))},tooltip:"Left-to-Right"},rtl:{state:function(a,b){return b&&"rtl"===b.style. dow.location;return a&&d.test(a)&&!c.test(a)?(b=e.pathname.split("/"),b.pop(),e.
direction},exec:function(){var b=this,c=b.getRangeHelper().getFirstBlockParent() protocol+"//"+e.host+b.join("/")+"/"+a):a}}.call(b,c,b,a),!(void 0!==d&&(a.expor
,d=a(c);b.focus(),(c&&!d.is("body")||(b.execCommand("formatBlock","p"),c=b.getRa ts=d))},function(a,b,c){var d;d=function(){"use strict";var a={html:'<!DOCTYPE h
ngeHelper().getFirstBlockParent(),d=a(c),c&&!d.is("body")))&&("rtl"===d.css("dir tml><html{attrs}><head><style>.ie * {min-height: auto !important} .ie table td {
ection")?d.css("direction",""):d.css("direction","rtl"))},tooltip:"Right-to-Left height:15px} @supports (-ms-ime-align:auto) { * { min-height: auto !important; }
"},print:{exec:"print",tooltip:"Print"},maximize:{state:function(){return this.m }</style><meta http-equiv="Content-Type" content="text/html;charset={charset}"
aximize()},exec:function(){this.maximize(!this.maximize())},txtExec:function(){t /><link rel="stylesheet" type="text/css" href="{style}" /></head><body contented
his.maximize(!this.maximize())},tooltip:"Maximize",shortcut:"ctrl+shift+m"},sour itable="true" {spellcheck}><p></p></body></html>',toolbarButton:'<a class="scedi
ce:{state:function(){return this.sourceMode()},exec:function(){this.toggleSource tor-button sceditor-button-{name}" data-sceditor-command="{name}" unselectable="
Mode()},txtExec:function(){this.toggleSourceMode()},tooltip:"View source",shortc on"><div unselectable="on">{dispName}</div></a>',emoticon:'<img src="{url}" data
ut:"ctrl+shift+s"},ignore:{}};return f}.call(b,c,b,a),!(void 0!==d&&(a.exports=d -sceditor-emoticon="{key}" alt="{key}" title="{tooltip}" />',fontOpt:'<a class="
))},function(a,b,c){var d;d=function(){"use strict";var a=c(1);return{toolbar:"b sceditor-font-option" href="#" data-font="{font}"><font face="{font}">{font}</fo
old,italic,underline,strike,subscript,superscript|left,center,right,justify|font nt></a>',sizeOpt:'<a class="sceditor-fontsize-option" data-size="{size}" href="#
,size,color,removeformat|cut,copy,paste,pastetext|bulletlist,orderedlist,indent, "><font size="{size}">{size}</font></a>',pastetext:'<div><label for="txt">{label
outdent|table|code,quote|horizontalrule,image,email,link,unlink|emoticon,youtube }</label> <textarea cols="20" rows="7" id="txt"></textarea></div><div><input typ
,date,time|ltr,rtl|print,maximize,source",toolbarExclude:null,style:"jquery.sced e="button" class="button" value="{insert}" /></div>',table:'<div><label for="row
itor.default.css",fonts:"Arial,Arial Black,Comic Sans MS,Courier New,Georgia,Imp s">{rows}</label><input type="text" id="rows" value="2" /></div><div><label for=
act,Sans-serif,Serif,Times New Roman,Trebuchet MS,Verdana",colors:null,locale:a( "cols">{cols}</label><input type="text" id="cols" value="2" /></div><div><input
"html").attr("lang")||"en",charset:"utf-8",emoticonsCompat:!1,emoticonsEnabled:! type="button" class="button" value="{insert}" /></div>',image:'<div><label for="
0,emoticonsRoot:"",emoticons:{dropdown:{":)":"emoticons/smile.png",":angel:":"em link">{url}</label> <input type="text" id="image" placeholder="http://" /></div>
oticons/angel.png",":angry:":"emoticons/angry.png","8-)":"emoticons/cool.png",": <div><label for="width">{width}</label> <input type="text" id="width" size="2" /
'(":"emoticons/cwy.png",":ermm:":"emoticons/ermm.png",":D":"emoticons/grin.png", ></div><div><label for="height">{height}</label> <input type="text" id="height"
"<3":"emoticons/heart.png",":(":"emoticons/sad.png",":O":"emoticons/shocked.png" size="2" /></div><div><input type="button" class="button" value="{insert}" /></d
,":P":"emoticons/tongue.png",";)":"emoticons/wink.png"},more:{":alien:":"emotico iv>',email:'<div><label for="email">{label}</label> <input type="text" id="email
ns/alien.png",":blink:":"emoticons/blink.png",":blush:":"emoticons/blush.png",": " /></div><div><label for="des">{desc}</label> <input type="text" id="des" /></d
cheerful:":"emoticons/cheerful.png",":devil:":"emoticons/devil.png",":dizzy:":"e iv><div><input type="button" class="button" value="{insert}" /></div>',link:'<di
moticons/dizzy.png",":getlost:":"emoticons/getlost.png",":happy:":"emoticons/hap v><label for="link">{url}</label> <input type="text" id="link" placeholder="http
py.png",":kissing:":"emoticons/kissing.png",":ninja:":"emoticons/ninja.png",":pi ://" /></div><div><label for="des">{desc}</label> <input type="text" id="des" />
nch:":"emoticons/pinch.png",":pouty:":"emoticons/pouty.png",":sick:":"emoticons/ </div><div><input type="button" class="button" value="{ins}" /></div>',youtubeMe
sick.png",":sideways:":"emoticons/sideways.png",":silly:":"emoticons/silly.png", nu:'<div><label for="link">{label}</label> <input type="text" id="link" placehol
":sleeping:":"emoticons/sleeping.png",":unsure:":"emoticons/unsure.png",":woot:" der="https://" /></div><div><input type="button" class="button" value="{insert}"
:"emoticons/w00t.png",":wassat:":"emoticons/wassat.png"},hidden:{":whistling:":" /></div>',youtube:'<iframe width="560" height="315" src="https://www.youtube.co
emoticons/whistling.png",":love:":"emoticons/wub.png"}},width:null,height:null,r m/embed/{id}?wmode=opaque" data-youtube-id="{id}" frameborder="0" allowfullscree
esizeEnabled:!0,resizeMinWidth:null,resizeMinHeight:null,resizeMaxHeight:null,re n></iframe>'};return function(b,c,d){var e=a[b];return $.each(c,function(a,b){e=
sizeMaxWidth:null,resizeHeight:!0,resizeWidth:!0,dateFormat:"year-month-day",too e.replace(new RegExp("\\{"+a+"\\}","g"),b)}),d&&(e=$(e)),e}}.call(b,c,b,a),!(voi
lbarContainer:null,enablePasteFiltering:!1,disablePasting:!1,readOnly:!1,rtl:!1, d 0!==d&&(a.exports=d))},function(a,b,c){var d;d=function(a){"use strict";var b=
autofocus:!1,autofocusEnd:!0,autoExpand:!1,autoUpdate:!1,spellcheck:!0,runWithou c(1),d=c(6).ie,e=c(8),f=d&&d<11,g={bold:{exec:"bold",tooltip:"Bold",shortcut:"Ct
tWysiwygSupport:!1,id:null,plugins:"",zIndex:null,bbcodeTrim:!1,disableBlockRemo rl+B"},italic:{exec:"italic",tooltip:"Italic",shortcut:"Ctrl+I"},underline:{exec
ve:!1,parserOptions:{},dropDownCss:{}}}.call(b,c,b,a),!(void 0!==d&&(a.exports=d :"underline",tooltip:"Underline",shortcut:"Ctrl+U"},strike:{exec:"strikethrough"
))},function(a,b,c){var d;d=function(){"use strict";var a=c(1),b=c(9),d=c(5),e=c ,tooltip:"Strikethrough"},subscript:{exec:"subscript",tooltip:"Subscript"},super
(4),f=e.ie,g=f&&11>f,h=function(b){return a("<p>",b.ownerDocument).append(b).htm script:{exec:"superscript",tooltip:"Superscript"},left:{exec:"justifyleft",toolt
l()},i=function(c,e){var i,j,k,l=e||c.contentDocument||c.document,m=c,n=!!c.getS ip:"Align left"},center:{exec:"justifycenter",tooltip:"Center"},right:{exec:"jus
election,o="sceditor-start-marker",p="sceditor-end-marker",q="character",r=this; tifyright",tooltip:"Align right"},justify:{exec:"justifyfull",tooltip:"Justify"}
r.insertHTML=function(a,b){var c,d,e=r.selectedRange();if(!e)return!1;if(n){for( ,font:{_dropDown:function(a,c,d){for(var f=0,g=a.opts.fonts.split(","),h=b("<div
b&&(a+=r.selectedHtml()+b),d=l.createElement("p"),c=l.createDocumentFragment(),d />"),i=function(){return d(b(this).data("font")),a.closeDropDown(!0),!1};f<g.le
.innerHTML=a;d.firstChild;)c.appendChild(d.firstChild);r.insertNode(c)}else e.pa ngth;f++)h.append(e("fontOpt",{font:g[f]},!0).click(i));a.createDropDown(c,"font
steHTML(k(a,b,!0)),r.restoreRange()},k=function(c,d,e){var g,h,j=l.createElement -picker",h)},exec:function(a){var b=this;g.font._dropDown(b,a,function(a){b.exec
("div"),k=a(j);if("string"==typeof c?(d&&(c+=r.selectedHtml()+d),k.html(c)):(k.a Command("fontname",a)})},tooltip:"Font Name"},size:{_dropDown:function(a,c,d){fo
ppend(c),d&&k.append(r.selectedRange().extractContents()).append(d)),g=j.lastChi r(var f=b("<div />"),g=function(c){d(b(this).data("size")),a.closeDropDown(!0),c
ld){for(;!b.isInline(g.lastChild,!0);)g=g.lastChild;return b.canHaveChildren(g)& .preventDefault()},h=1;h<=7;h++)f.append(e("sizeOpt",{size:h},!0).click(g));a.cr
&(h=a(g),g.lastChild||h.append("​")),f&&9>f&&a(g).is("img")&&k.append("​"),r.rem eateDropDown(c,"fontsize-picker",f)},exec:function(a){var b=this;g.size._dropDow
oveMarkers(),(h||k).append(i(o)).append(i(p)),e?k.html():a(l.createDocumentFragm n(b,a,function(a){b.execCommand("fontsize",a)})},tooltip:"Font Size"},color:{_dr
ent()).append(k.contents())[0]}},r.insertNode=function(a,c){if(n){var d=k(a,c),e opDown:function(a,c,d){var e,f,h,i,j={r:255,g:255,b:255},k=b("<div />"),l=a.opts
=r.selectedRange(),f=e.commonAncestorContainer;if(!d)return!1;e.deleteContents() .colors?a.opts.colors.split("|"):new Array(21),m=[],n=g.color;if(!n._htmlCache){
,f&&3!==f.nodeType&&!b.canHaveChildren(f)?f.parentNode.insertBefore(d,f):e.inser for(e=0;e<l.length;++e){for(i=l[e]?l[e].split(","):new Array(21),m.push('<div cl
tNode(d),r.restoreRange()}else r.insertHTML(h(a),c?h(c):null)},r.cloneSelected=f ass="sceditor-color-column">'),f=0;f<i.length;++f)h=i[f]||"#"+j.r.toString(16)+j
unction(){var a=r.selectedRange();return a?n?a.cloneRange():a.duplicate():void 0 .g.toString(16)+j.b.toString(16),m.push('<a href="#" class="sceditor-color-optio
},r.selectedRange=function(){var a,b,c=n?m.getSelection():l.selection;if(c){if(c n" style="background-color: '+h+'" data-color="'+h+'"></a>'),f%5===0?(j.g-=51,j.
.getRangeAt&&c.rangeCount<=0){for(b=l.body;b.firstChild;)b=b.firstChild;a=l.crea b=255):j.b-=51;m.push("</div>"),e%5===0?(j.r-=51,j.g=255,j.b=255):(j.g=255,j.b=2
teRange(),a.setStart(b,0),c.addRange(a)}return n&&(a=c.getRangeAt(0)),n||"Contro 55)}n._htmlCache=m.join("")}k.append(n._htmlCache).find("a").click(function(c){d
l"===c.type||(a=c.createRange()),j(a)?a:null}},j=function(a){var b;return a&&!n& (b(this).attr("data-color")),a.closeDropDown(!0),c.preventDefault()}),a.createDr
&(b=a.parentElement()),b?b.ownerDocument===l:!0},r.hasSelection=function(){var a opDown(c,"color-picker",k)},exec:function(a){var b=this;g.color._dropDown(b,a,fu
=n?m.getSelection():l.selection;return n||!a?a&&a.rangeCount>0:"None"!==a.type&& nction(a){b.execCommand("forecolor",a)})},tooltip:"Font Color"},removeformat:{ex
j(a.createRange())},r.selectedHtml=function(){var a,b=r.selectedRange();if(b){if ec:"removeformat",tooltip:"Remove Formatting"},cut:{exec:"cut",tooltip:"Cut",err
(n)return a=l.createElement("p"),a.appendChild(b.cloneContents()),a.innerHTML;if orMessage:"Your browser does not allow the cut command. Please use the keyboard
(""!==b.text&&b.htmlText)return b.htmlText}return""},r.parentNode=function(){var shortcut Ctrl/Cmd-X"},copy:{exec:"copy",tooltip:"Copy",errorMessage:"Your browse
a=r.selectedRange();return a?a.parentElement?a.parentElement():a.commonAncestor r does not allow the copy command. Please use the keyboard shortcut Ctrl/Cmd-C"}
Container:void 0},r.getFirstBlockParent=function(a){var c=function(a){return b.i ,paste:{exec:"paste",tooltip:"Paste",errorMessage:"Your browser does not allow t
sInline(a,!0)?(a=a?a.parentNode:null,a?c(a):a):a};return c(a||r.parentNode())},r he paste command. Please use the keyboard shortcut Ctrl/Cmd-V"},pastetext:{exec:
.insertNodeAt=function(a,b){var c=r.selectedRange(),d=r.cloneSelected();return d function(a){var b,c,d=this;c=e("pastetext",{label:d._("Paste your text inside th
?(d.collapse(a),n?d.insertNode(b):d.pasteHTML(h(b)),void r.selectRange(c)):!1},i e following box:"),insert:d._("Insert")},!0),c.find(".button").click(function(a)
=function(a){r.removeMarker(a);var b=l.createElement("span");return b.id=a,b.sty {b=c.find("#txt").val(),b&&d.wysiwygEditorInsertText(b),d.closeDropDown(!0),a.pr
le.lineHeight="0",b.style.display="none",b.className="sceditor-selection scedito eventDefault()}),d.createDropDown(a,"pastetext",c)},tooltip:"Paste Text"},bullet
r-ignore",b.innerHTML=" ",b},r.insertMarkers=function(){r.insertNodeAt(!0,i(o)), list:{exec:"insertunorderedlist",tooltip:"Bullet list"},orderedlist:{exec:"inser
r.insertNodeAt(!1,i(p))},r.getMarker=function(a){return l.getElementById(a)},r.r torderedlist",tooltip:"Numbered list"},indent:{state:function(a,c){var d,e,f,g=b
emoveMarker=function(a){var b=r.getMarker(a);b&&b.parentNode.removeChild(b)},r.r (c),h=g.parents("ul,ol,menu"),i=h.first();if(h.length>1||i.children().length>1)r
emoveMarkers=function(){r.removeMarker(o),r.removeMarker(p)},r.saveRange=functio eturn 0;if(g.is("ul,ol,menu")){if(d=this.getRangeHelper().selectedRange(),!(wind
n(){r.insertMarkers()},r.selectRange=function(c){if(n){var d,e=m.getSelection(), ow.Range&&d instanceof Range))return g.is("li,ul,ol,menu")?0:-1;if(e=d.startCont
f=c.endContainer;if(!g&&c.collapsed&&f&&!b.isInline(f,!0)){for(d=f.lastChild;d&& ainer.parentNode,f=d.endContainer.parentNode,e!==e.parentNode.firstElementChild|
a(d).is(".sceditor-ignore");)d=d.previousSibling;if(a(d).is("br")){var h=l.creat |b(f).is("li")&&f!==f.parentNode.lastElementChild)return 0}return-1},exec:functi
eRange();h.setEndAfter(d),h.collapse(!1),r.compare(c,h)&&(c.setStartBefore(d),c. on(){var a=this,c=b(a.getRangeHelper().getFirstBlockParent());a.focus(),c.parent
collapse(!0))}}e&&(r.clear(),e.addRange(c))}else c.select()},r.restoreRange=func s("ul,ol,menu")&&a.execCommand("indent")},tooltip:"Add indent"},outdent:{state:f
tion(){var c,d,e,f=r.selectedRange(),g=r.getMarker(o),h=r.getMarker(p);return g& unction(a,c){return b(c).is("ul,ol,menu")||b(c).parents("ul,ol,menu").length>0?0
&h&&f?(d=g.nextSibling===h,n?(f=l.createRange(),f.setStartBefore(g),f.setEndAfte :-1},exec:function(){var a=this,c=b(a.getRangeHelper().getFirstBlockParent());c.
r(h)):(f=l.body.createTextRange(),c=l.body.createTextRange(),e=g.previousSibling parents("ul,ol,menu")&&a.execCommand("outdent")},tooltip:"Remove one indent"},ta
,g.nextSibling!==h||e&&b.isInline(e,!0)&&!a(e).is("br")||a(g).before("​"),c.move ble:{forceNewLineAfter:["table"],exec:function(a){var b=this,c=e("table",{rows:b
ToElementText(g),f.setEndPoint("StartToStart",c),f.moveStart(q,0),c.moveToElemen ._("Rows:"),cols:b._("Cols:"),insert:b._("Insert")},!0);c.find(".button").click(
tText(h),f.setEndPoint("EndToStart",c),f.moveEnd(q,0)),d&&f.collapse(!0),r.selec function(a){var d,e,g=c.find("#rows").val()-0,h=c.find("#cols").val()-0,i="<tabl
tRange(f),void r.removeMarkers()):!1},r.selectOuterText=function(a,b){var c=r.cl e>";if(!(g<1||h<1)){for(d=0;d<g;d++){for(i+="<tr>",e=0;e<h;e++)i+="<td>"+(f?"":"
oneSelected();return c?(c.collapse(!1),n?(c.setStart(c.startContainer,c.startOff <br />")+"</td>";i+="</tr>"}i+="</table>",b.wysiwygEditorInsertHtml(i),b.closeDr
set-a),c.setEnd(c.endContainer,c.endOffset+b)):(c.moveStart(q,0-a),c.moveEnd(q,b opDown(!0),a.preventDefault()}}),b.createDropDown(a,"inserttable",c)},tooltip:"I
)),void r.selectRange(c)):!1},r.getOuterText=function(a,b){var c,d,e="",f=r.clon nsert a table"},horizontalrule:{exec:"inserthorizontalrule",tooltip:"Insert a ho
eSelected();return f?(f.collapse(!a),n?(c=f.startContainer.textContent,d=f.start rizontal rule"},code:{forceNewLineAfter:["code"],exec:function(){this.wysiwygEdi
Offset,a&&(d-=b,0>d&&(b+=d,d=0)),e=c.substr(d,b)):(a?f.moveStart(q,0-b):f.moveEn torInsertHtml("<code>",(f?"":"<br />")+"</code>")},tooltip:"Code"},image:{exec:f
d(q,b),e=f.text),e):""},r.raplaceKeyword=function(a,b,c,e,f,g){c||a.sort(functio unction(a){var b=this,c=e("image",{url:b._("URL:"),width:b._("Width (optional):"
n(a,b){return a[0].length-b[0].length});var h,i,j,k,l,m,o,p,q="[\\s    ]",s=a.le ),height:b._("Height (optional):"),insert:b._("Insert")},!0);c.find(".button").c
ngth,t=e||a[s-1][0].length;if(f){if(!n)return!1;t++}for(g=g||"",h=r.getOuterText lick(function(a){var d=c.find("#image").val(),e=c.find("#width").val(),f=c.find(
(!0,t),l=h.length,i=h+g,b&&(i+=r.getOuterText(!1,t));s--;)if(o=a[s][0],p=o.lengt "#height").val(),g="";e&&(g+=' width="'+e+'"'),f&&(g+=' height="'+f+'"'),d&&b.wy
h,k=l-1-p,j=f?i.substr(Math.max(0,k-1)).search(new RegExp("(?:"+q+")"+d.regex(o) siwygEditorInsertHtml("<img"+g+' src="'+d+'" />'),b.closeDropDown(!0),a.preventD
+"(?="+q+")")):i.indexOf(o,k),j>-1){if(f&&(j+=k+1),j>l||l>j+p+(f?1:0))continue;r efault()}),b.createDropDown(a,"insertimage",c)},tooltip:"Insert an image"},email
eturn m=l-j,r.selectOuterText(m,p-m-(/^\S/.test(g)?1:0)),r.insertHTML(a[s][1]),! :{exec:function(a){var b=this,c=e("email",{label:b._("E-mail:"),desc:b._("Descri
0}return!1},r.compare=function(a,b){var c=n?Range.END_TO_END:"EndToEnd",d=n?Rang ption (optional):"),insert:b._("Insert")},!0);c.find(".button").click(function(a
e.START_TO_START:"StartToStart",e=n?"compareBoundaryPoints":"compareEndPoints";r ){var d=c.find("#email").val(),e=c.find("#des").val();d&&(b.focus(),!b.getRangeH
eturn b||(b=r.selectedRange()),a&&b?j(a)&&j(b)&&0===a[e](c,b)&&0===a[e](d,b):!a& elper().selectedHtml()||e?(e=e||d,b.wysiwygEditorInsertHtml('<a href="mailto:'+d
&!b},r.clear=function(){var a=n?m.getSelection():l.selection;a&&(a.removeAllRang +'">'+e+"</a>")):b.execCommand("createlink","mailto:"+d)),b.closeDropDown(!0),a.
es?a.removeAllRanges():a.empty&&a.empty())}};return i}.call(b,c,b,a),!(void 0!== preventDefault()}),b.createDropDown(a,"insertemail",c)},tooltip:"Insert an email
d&&(a.exports=d))},function(a,b,c){var d;d=function(){"use strict";var a=c(1),b= "},link:{exec:function(a){var b=this,c=e("link",{url:b._("URL:"),desc:b._("Descr
c(4),d={},e={traverse:function(a,b,c,d,f){if(a)for(a=f?a.lastChild:a.firstChild; iption (optional):"),ins:b._("Insert")},!0);c.find(".button").click(function(a){
a;){var g=f?a.previousSibling:a.nextSibling;if(!c&&b(a)===!1||!d&&e.traverse(a,b var d=c.find("#link").val(),e=c.find("#des").val();d&&(b.focus(),!b.getRangeHelp
,c,d,f)===!1||c&&b(a)===!1)return!1;a=g}},rTraverse:function(a,b,c,d){this.trave er().selectedHtml()||e?(e=e||d,b.wysiwygEditorInsertHtml('<a href="'+d+'">'+e+"<
rse(a,b,c,d,!0)},parseHTML:function(b,c){var d=[],e=(c||document).createElement( /a>")):b.execCommand("createlink",d)),b.closeDropDown(!0),a.preventDefault()}),b
"div");return e.innerHTML=b,a.merge(d,e.childNodes),d},hasStyling:function(b){va .createDropDown(a,"insertlink",c)},tooltip:"Insert a link"},unlink:{state:functi
r c=a(b);return b&&(!c.is("p,div")||b.className||c.attr("style")||!a.isEmptyObje on(){var a=b(this.currentNode());return a.is("a")||a.parents("a").length>0?0:-1}
ct(c.data()))},convertElement:function(a,c){for(var d,f,g=a.attributes,h=g.lengt ,exec:function(){var a=b(this.currentNode()),c=a.is("a")?a:a.parents("a").first(
h,i=a.ownerDocument.createElement(c);h--;)f=g[h],(!b.ie||f.specified)&&(b.ie<8&& );c.length&&c.replaceWith(c.contents())},tooltip:"Unlink"},quote:{forceNewLineAf
/style/i.test(f.name)?e.copyCSS(a,i):i.setAttribute(f.name,f.value));for(;d=a.fi ter:["blockquote"],exec:function(a,b,c){var d="<blockquote>",e="</blockquote>";b
rstChild;)i.appendChild(d);return a.parentNode.replaceChild(i,a),i},blockLevelLi ?(c=c?"<cite>"+c+"</cite>":"",d=d+c+b+e,e=null):""===this.getRangeHelper().selec
st:"|body|hr|p|div|h1|h2|h3|h4|h5|h6|address|pre|form|table|tbody|thead|tfoot|th tedHtml()&&(e=(f?"":"<br />")+e),this.wysiwygEditorInsertHtml(d,e)},tooltip:"Ins
|tr|td|li|ol|ul|blockquote|center|",canHaveChildren:function(a){return/11?|9/.te ert a Quote"},emoticon:{exec:function(a){var c=this,d=function(e){var f,g=c.opts
st(a.nodeType)?"|iframe|area|base|basefont|br|col|frame|hr|img|input|isindex|lin .emoticonsCompat,h=c.getRangeHelper(),i=g&&" "!==h.getOuterText(!0,1)?" ":"",j=g
k|meta|param|command|embed|keygen|source|track|wbr|".indexOf("|"+a.nodeName.toLo &&" "!==h.getOuterText(!1,1)?" ":"",k=b("<div />"),l=b("<div />").appendTo(k),m=
werCase()+"|")<0:!1},isInline:function(a,b){var c,d=(a||{}).nodeType||3;return 1 0,n=b.extend({},c.opts.emoticons.dropdown,e?c.opts.emoticons.more:{});return b.e
!==d?3===d:(c=a.tagName.toLowerCase(),"code"===c?!b:e.blockLevelList.indexOf("|" ach(n,function(){m++}),m=Math.sqrt(m),b.each(n,function(a,d){l.append(b("<img />
+c+"|")<0)},copyCSS:function(a,b){b.style.cssText=a.style.cssText+b.style.cssTex ").attr({src:d.url||d,alt:a,title:d.tooltip||a}).click(function(){return c.inser
t},fixNesting:function(a){var b=function(a){for(;e.isInline(a.parentNode,!0);)a= t(i+b(this).attr("alt")+j,null,!1).closeDropDown(!0),!1})),l.children().length>=
a.parentNode;return a};e.traverse(a,function(a){if(1===a.nodeType&&!e.isInline(a m&&(l=b("<div />").appendTo(k))}),!e&&c.opts.emoticons.more&&(f=b('<a class="sce
,!0)&&e.isInline(a.parentNode,!0)){var c=b(a),d=c.parentNode,f=e.extractContents ditor-more">'+c._("More")+"</a>").click(function(){return c.createDropDown(a,"mo
(c,a),g=a;e.copyCSS(c,g),d.insertBefore(f,c),d.insertBefore(g,c)}})},findCommonA re-emoticons",d(!0)),!1}),k.append(f)),k};c.createDropDown(a,"emoticons",d(!1))}
ncestor:function(b,c){return a(b).parents().has(a(c)).first()},getSibling:functi ,txtExec:function(a){g.emoticon.exec.call(this,a)},tooltip:"Insert an emoticon"}
on(a,b){return a?(b?a.previousSibling:a.nextSibling)||e.getSibling(a.parentNode, ,youtube:{_dropDown:function(a,b,c){var d,f=e("youtubeMenu",{label:a._("Video UR
b):null},removeWhiteSpace:function(b,c){for(var d,f,g,h,i,j,k,l,m=e.getSibling,n L:"),insert:a._("Insert")},!0);f.find(".button").click(function(b){var e=f.find(
=e.isInline,o=b.firstChild;o;){if(k=o.nextSibling,d=o.nodeValue,f=o.nodeType,1== "#link").val();e&&(d=e.match(/(?:v=|v\/|embed\/|youtu.be\/)(.{11})/),d&&(e=d[1])
=f&&o.firstChild&&(j=a(o).css("whiteSpace"),/pre(\-wrap)?$/i.test(j)||e.removeWh ,/^[a-zA-Z0-9_\-]{11}$/.test(e)?c(e):alert("Invalid YouTube video")),a.closeDrop
iteSpace(o,/line$/i.test(j))),3===f&&d){for(g=m(o),h=m(o,!0),l=!1;a(h).hasClass( Down(!0),b.preventDefault()}),a.createDropDown(b,"insertlink",f)},exec:function(
"sceditor-ignore");)h=m(h,!0);if(n(o)&&h){for(i=h;i.lastChild;)i=i.lastChild;l=3 a){var b=this;g.youtube._dropDown(b,a,function(a){b.wysiwygEditorInsertHtml(e("y
===i.nodeType?/[\t\n\r ]$/.test(i.nodeValue):!n(i)}d=d.replace(/\u200B/g,""),h&& outube",{id:a}))})},tooltip:"Insert a YouTube video"},date:{_date:function(a){va
n(h)&&!l||(d=d.replace(c?/^[\t ]+/:/^[\t\n\r ]+/,"")),g&&n(g)||(d=d.replace(c?/[ r b=new Date,c=b.getYear(),d=b.getMonth()+1,e=b.getDate();return c<2e3&&(c=1900+
\t ]+$/:/[\t\n\r ]+$/,"")),d.length?o.nodeValue=d.replace(c?/[\t ]+/g:/[\t\n\r ] c),d<10&&(d="0"+d),e<10&&(e="0"+e),a.opts.dateFormat.replace(/year/i,c).replace(
+/g," "):b.removeChild(o)}o=k}},extractContents:function(b,c){var d,f=e.findComm /month/i,d).replace(/day/i,e)},exec:function(){this.insertText(g.date._date(this
onAncestor(b,c).get(0),g=!1,h=!1;return(d=function(f){var i,j=b.ownerDocument.cr ))},txtExec:function(){this.insertText(g.date._date(this))},tooltip:"Insert curr
eateDocumentFragment();return e.traverse(f,function(e){return h||e===c?(h=!0,!1) ent date"},time:{_time:function(){var a=new Date,b=a.getHours(),c=a.getMinutes()
:(e===b&&(g=!0),void(a.contains(e,b)||g&&a.contains(e,c)?(i=e.cloneNode(!1),i.ap ,d=a.getSeconds();return b<10&&(b="0"+b),c<10&&(c="0"+c),d<10&&(d="0"+d),b+":"+c
pendChild(d(e)),j.appendChild(i)):g&&!a.contains(j,e)&&j.appendChild(e)))},!1),j +":"+d},exec:function(){this.insertText(g.time._time())},txtExec:function(){this
})(f)},getOffset:function(a){for(var b=0,c=0;a;)b+=a.offsetLeft,c+=a.offsetTop,a .insertText(g.time._time())},tooltip:"Insert current time"},ltr:{state:function(
=a.offsetParent;return{left:b,top:c}},getStyle:function(b,c){var e,f,g,h=b.style a,b){return b&&"ltr"===b.style.direction},exec:function(){var a=this,c=a.getRang
;if(!h)return"";if(d[c]||(d[c]=a.camelCase(c)),c=d[c],g=h[c],"textAlign"===c){if eHelper().getFirstBlockParent(),d=b(c);a.focus(),(c&&!d.is("body")||(a.execComma
(e=a(b),f=h.direction,g=g||e.css(c),e.parent().css(c)===g||"block"!==e.css("disp nd("formatBlock","p"),c=a.getRangeHelper().getFirstBlockParent(),d=b(c),c&&!d.is
lay")||e.is("hr")||e.is("th"))return"";if(f&&g&&(/right/i.test(g)&&"rtl"===f||/l ("body")))&&("ltr"===d.css("direction")?d.css("direction",""):d.css("direction",
eft/i.test(g)&&"ltr"===f))return""}return g},hasStyle:function(b,c,d){var f=e.ge "ltr"))},tooltip:"Left-to-Right"},rtl:{state:function(a,b){return b&&"rtl"===b.s
tStyle(b,c);return f?!d||f===d||a.isArray(d)&&a.inArray(f,d)>-1:!1}};return e}.c tyle.direction},exec:function(){var a=this,c=a.getRangeHelper().getFirstBlockPar
all(b,c,b,a),!(void 0!==d&&(a.exports=d))},function(a,b,c){var d;d=function(){"u ent(),d=b(c);a.focus(),(c&&!d.is("body")||(a.execCommand("formatBlock","p"),c=a.
se strict";var a={html:'<!DOCTYPE html><html{attrs}><head><style>.ie * {min-heig getRangeHelper().getFirstBlockParent(),d=b(c),c&&!d.is("body")))&&("rtl"===d.css
ht: auto !important} .ie table td {height:15px}</style><meta http-equiv="Content ("direction")?d.css("direction",""):d.css("direction","rtl"))},tooltip:"Right-to
-Type" content="text/html;charset={charset}" /><link rel="stylesheet" type="text -Left"},print:{exec:"print",tooltip:"Print"},maximize:{state:function(){return t
/css" href="{style}" /></head><body contenteditable="true" {spellcheck}><p></p>< his.maximize()},exec:function(){this.maximize(!this.maximize())},txtExec:functio
/body></html>',toolbarButton:'<a class="sceditor-button sceditor-button-{name}" n(){this.maximize(!this.maximize())},tooltip:"Maximize",shortcut:"Ctrl+Shift+M"}
data-sceditor-command="{name}" unselectable="on"><div unselectable="on">{dispNam ,source:{state:function(){return this.sourceMode()},exec:function(){this.toggleS
e}</div></a>',emoticon:'<img src="{url}" data-sceditor-emoticon="{key}" alt="{ke ourceMode()},txtExec:function(){this.toggleSourceMode()},tooltip:"View source",s
y}" title="{tooltip}" />',fontOpt:'<a class="sceditor-font-option" href="#" data hortcut:"Ctrl+Shift+S"},ignore:{}};return g}.call(b,c,b,a),!(void 0!==d&&(a.expo
-font="{font}"><font face="{font}">{font}</font></a>',sizeOpt:'<a class="scedito rts=d))},function(a,b,c){var d;d=function(a){"use strict";var b=c(1);return{tool
r-fontsize-option" data-size="{size}" href="#"><font size="{size}">{size}</font> bar:"bold,italic,underline,strike,subscript,superscript|left,center,right,justif
</a>',pastetext:'<div><label for="txt">{label}</label> <textarea cols="20" rows= y|font,size,color,removeformat|cut,copy,paste,pastetext|bulletlist,orderedlist,i
"7" id="txt"></textarea></div><div><input type="button" class="button" value="{i ndent,outdent|table|code,quote|horizontalrule,image,email,link,unlink|emoticon,y
nsert}" /></div>',table:'<div><label for="rows">{rows}</label><input type="text" outube,date,time|ltr,rtl|print,maximize,source",toolbarExclude:null,style:"jquer
id="rows" value="2" /></div><div><label for="cols">{cols}</label><input type="t y.sceditor.default.css",fonts:"Arial,Arial Black,Comic Sans MS,Courier New,Georg
ext" id="cols" value="2" /></div><div><input type="button" class="button" value= ia,Impact,Sans-serif,Serif,Times New Roman,Trebuchet MS,Verdana",colors:null,loc
"{insert}" /></div>',image:'<div><label for="link">{url}</label> <input type="te ale:b("html").attr("lang")||"en",charset:"utf-8",emoticonsCompat:!1,emoticonsEna
xt" id="image" placeholder="http://" /></div><div><label for="width">{width}</la bled:!0,emoticonsRoot:"",emoticons:{dropdown:{":)":"emoticons/smile.png",":angel
bel> <input type="text" id="width" size="2" /></div><div><label for="height">{he :":"emoticons/angel.png",":angry:":"emoticons/angry.png","8-)":"emoticons/cool.p
ight}</label> <input type="text" id="height" size="2" /></div><div><input type=" ng",":'(":"emoticons/cwy.png",":ermm:":"emoticons/ermm.png",":D":"emoticons/grin
button" class="button" value="{insert}" /></div>',email:'<div><label for="email" .png","<3":"emoticons/heart.png",":(":"emoticons/sad.png",":O":"emoticons/shocke
>{label}</label> <input type="text" id="email" /></div><div><label for="des">{de d.png",":P":"emoticons/tongue.png",";)":"emoticons/wink.png"},more:{":alien:":"e
sc}</label> <input type="text" id="des" /></div><div><input type="button" class= moticons/alien.png",":blink:":"emoticons/blink.png",":blush:":"emoticons/blush.p
"button" value="{insert}" /></div>',link:'<div><label for="link">{url}</label> < ng",":cheerful:":"emoticons/cheerful.png",":devil:":"emoticons/devil.png",":dizz
input type="text" id="link" placeholder="http://" /></div><div><label for="des"> y:":"emoticons/dizzy.png",":getlost:":"emoticons/getlost.png",":happy:":"emotico
{desc}</label> <input type="text" id="des" /></div><div><input type="button" cla ns/happy.png",":kissing:":"emoticons/kissing.png",":ninja:":"emoticons/ninja.png
ss="button" value="{ins}" /></div>',youtubeMenu:'<div><label for="link">{label}< ",":pinch:":"emoticons/pinch.png",":pouty:":"emoticons/pouty.png",":sick:":"emot
/label> <input type="text" id="link" placeholder="http://" /></div><div><input t icons/sick.png",":sideways:":"emoticons/sideways.png",":silly:":"emoticons/silly
ype="button" class="button" value="{insert}" /></div>',youtube:'<iframe width="5 .png",":sleeping:":"emoticons/sleeping.png",":unsure:":"emoticons/unsure.png",":
60" height="315" src="http://www.youtube.com/embed/{id}?wmode=opaque" data-youtu woot:":"emoticons/w00t.png",":wassat:":"emoticons/wassat.png"},hidden:{":whistli
be-id="{id}" frameborder="0" allowfullscreen></iframe>'};return function(b,c,d){ ng:":"emoticons/whistling.png",":love:":"emoticons/wub.png"}},width:null,height:
var e=a[b];return $.each(c,function(a,b){e=e.replace(new RegExp("\\{"+a+"\\}","g null,resizeEnabled:!0,resizeMinWidth:null,resizeMinHeight:null,resizeMaxHeight:n
"),b)}),d&&(e=$(e)),e}}.call(b,c,b,a),!(void 0!==d&&(a.exports=d))}]),function(a ull,resizeMaxWidth:null,resizeHeight:!0,resizeWidth:!0,dateFormat:"year-month-da
,b,c){"use strict";var d=a.sceditor,e=d.plugins,f=d.escapeEntities,g=d.escapeUri y",toolbarContainer:null,enablePasteFiltering:!1,disablePasting:!1,readOnly:!1,r
Scheme,h=d.ie,i=h&&11>h,j=d.command.get,k={bold:{txtExec:["[b]","[/b]"]},italic: tl:!1,autofocus:!1,autofocusEnd:!0,autoExpand:!1,autoUpdate:!1,spellcheck:!0,run
{txtExec:["[i]","[/i]"]},underline:{txtExec:["[u]","[/u]"]},strike:{txtExec:["[s WithoutWysiwygSupport:!1,startInSourceMode:!1,id:null,plugins:"",zIndex:null,bbc
]","[/s]"]},subscript:{txtExec:["[sub]","[/sub]"]},superscript:{txtExec:["[sup]" odeTrim:!1,disableBlockRemove:!1,parserOptions:{},dropDownCss:{}}}.call(b,c,b,a)
,"[/sup]"]},left:{txtExec:["[left]","[/left]"]},center:{txtExec:["[center]","[/c ,!(void 0!==d&&(a.exports=d))}]),function(a,b,c){"use strict";var d=a.sceditor,e
enter]"]},right:{txtExec:["[right]","[/right]"]},justify:{txtExec:["[justify]"," =d.plugins,f=d.escapeEntities,g=d.escapeUriScheme,h=d.ie,i=h&&h<11,j=d.command.g
[/justify]"]},font:{txtExec:function(a){var b=this;j("font")._dropDown(b,a,funct et,k={bold:{txtExec:["[b]","[/b]"]},italic:{txtExec:["[i]","[/i]"]},underline:{t
ion(a){b.insertText("[font="+a+"]","[/font]")})}},size:{txtExec:function(a){var xtExec:["[u]","[/u]"]},strike:{txtExec:["[s]","[/s]"]},subscript:{txtExec:["[sub
b=this;j("size")._dropDown(b,a,function(a){b.insertText("[size="+a+"]","[/size]" ]","[/sub]"]},superscript:{txtExec:["[sup]","[/sup]"]},left:{txtExec:["[left]","
)})}},color:{txtExec:function(a){var b=this;j("color")._dropDown(b,a,function(a) [/left]"]},center:{txtExec:["[center]","[/center]"]},right:{txtExec:["[right]","
{b.insertText("[color="+a+"]","[/color]")})}},bulletlist:{txtExec:function(b,c){ [/right]"]},justify:{txtExec:["[justify]","[/justify]"]},font:{txtExec:function(
var d="";a.each(c.split(/\r?\n/),function(){d+=(d?"\n":"")+"[li]"+this+"[/li]"}) a){var b=this;j("font")._dropDown(b,a,function(a){b.insertText("[font="+a+"]","[
,this.insertText("[ul]\n"+d+"\n[/ul]")}},orderedlist:{txtExec:function(b,c){var /font]")})}},size:{txtExec:function(a){var b=this;j("size")._dropDown(b,a,functi
d="";a.each(c.split(/\r?\n/),function(){d+=(d?"\n":"")+"[li]"+this+"[/li]"}),e.b on(a){b.insertText("[size="+a+"]","[/size]")})}},color:{txtExec:function(a){var
bcode.bbcode.get(""),this.insertText("[ol]\n"+d+"\n[/ol]")}},table:{txtExec:["[t b=this;j("color")._dropDown(b,a,function(a){b.insertText("[color="+a+"]","[/colo
able][tr][td]","[/td][/tr][/table]"]},horizontalrule:{txtExec:["[hr]"]},code:{tx r]")})}},bulletlist:{txtExec:function(b,c){var d="";a.each(c.split(/\r?\n/),func
tExec:["[code]","[/code]"]},image:{txtExec:function(a,b){var c=this,d=prompt(c._ tion(){d+=(d?"\n":"")+"[li]"+this+"[/li]"}),this.insertText("[ul]\n"+d+"\n[/ul]"
("Enter the image URL:"),b);d&&c.insertText("[img]"+d+"[/img]")}},email:{txtExec )}},orderedlist:{txtExec:function(b,c){var d="";a.each(c.split(/\r?\n/),function
:function(a,b){var c=this,d=b&&b.indexOf("@")>-1?null:b,e=prompt(c._("Enter the (){d+=(d?"\n":"")+"[li]"+this+"[/li]"}),e.bbcode.bbcode.get(""),this.insertText(
e-mail address:"),d?"":b),f=prompt(c._("Enter the displayed text:"),d||e)||e;e&& "[ol]\n"+d+"\n[/ol]")}},table:{txtExec:["[table][tr][td]","[/td][/tr][/table]"]}
c.insertText("[email="+e+"]"+f+"[/email]")}},link:{txtExec:function(b,c){var d=t ,horizontalrule:{txtExec:["[hr]"]},code:{txtExec:["[code]","[/code]"]},image:{tx
his,e=/^[a-z]+:\/\//i.test(a.trim(c))?null:c,f=prompt(d._("Enter URL:"),e?"http: tExec:function(a,b){var c=this,d=prompt(c._("Enter the image URL:"),b);d&&c.inse
//":a.trim(c)),g=prompt(d._("Enter the displayed text:"),e||f)||f;f&&d.insertTex rtText("[img]"+d+"[/img]")}},email:{txtExec:function(a,b){var c=this,d=b&&b.inde
t("[url="+f+"]"+g+"[/url]")}},quote:{txtExec:["[quote]","[/quote]"]},youtube:{tx xOf("@")>-1?null:b,e=prompt(c._("Enter the e-mail address:"),d?"":b),f=prompt(c.
tExec:function(a){var b=this;j("youtube")._dropDown(b,a,function(a){b.insertText _("Enter the displayed text:"),d||e)||e;e&&c.insertText("[email="+e+"]"+f+"[/ema
("[youtube]"+a+"[/youtube]")})}},rtl:{txtExec:["[rtl]","[/rtl]"]},ltr:{txtExec:[ il]")}},link:{txtExec:function(b,c){var d=this,e=/^[a-z]+:\/\//i.test(a.trim(c))
"[ltr]","[/ltr]"]}},l=function(a){return a?a.replace(/\\(.)/g,"$1").replace(/^([ ?null:c,f=prompt(d._("Enter URL:"),e?"http://":a.trim(c)),g=prompt(d._("Enter th
"'])(.*?)\1$/,"$2"):a},m=function(){var a,b=arguments;return b[0].replace(/\{(\d e displayed text:"),e||f)||f;f&&d.insertText("[url="+f+"]"+g+"[/url]")}},quote:{
+)\}/g,function(c,d){return b[d-0+1]!==a?b[d-0+1]:"{"+d+"}"})},n={OPEN:"open",CO txtExec:["[quote]","[/quote]"]},youtube:{txtExec:function(a){var b=this;j("youtu
NTENT:"content",NEWLINE:"newline",CLOSE:"close"},o=function(a,b,c,d,e,f){var g=t be")._dropDown(b,a,function(a){b.insertText("[youtube]"+a+"[/youtube]")})}},rtl:
his;g.type=a,g.name=b,g.val=c,g.attrs=d||{},g.children=e||[],g.closing=f||null}; {txtExec:["[rtl]","[/rtl]"]},ltr:{txtExec:["[ltr]","[/ltr]"]}},l=function(a){ret
o.prototype={clone:function(a){var b=this;return new o(b.type,b.name,b.val,b.att urn a?a.replace(/\\(.)/g,"$1").replace(/^(["'])(.*?)\1$/,"$2"):a},m=function(){v
rs,a?b.children:[],b.closing?b.closing.clone():null)},splitAt:function(b){var c, ar a,b=arguments;return b[0].replace(/\{(\d+)\}/g,function(c,d){return b[d-0+1]!
d=this,e=0,f=d.children.length;if("number"!=typeof b&&(b=a.inArray(b,d.children) ==a?b[d-0+1]:"{"+d+"}"})},n={OPEN:"open",CONTENT:"content",NEWLINE:"newline",CLO
),0>b||b>f)return null;for(;f--;)f>=b?e++:f=0;return c=d.clone(),c.children=d.ch SE:"close"},o=function(a,b,c,d,e,f){var g=this;g.type=a,g.name=b,g.val=c,g.attrs
ildren.splice(b,e),c}};var p=function(b){if(!(this instanceof p))return new p(b) =d||{},g.children=e||[],g.closing=f||null};o.prototype={clone:function(a){var b=
;var d,g,j,k,m,q,r,s,t,u,v,w,x,y,z,A=this;d=function(){A.bbcodes=e.bbcode.bbcode this;return new o(b.type,b.name,b.val,b.attrs,a?b.children:[],b.closing?b.closin
s,A.opts=a.extend({},p.defaults,b)},A.tokenize=function(a){var b,c,d,e=[],f=[{ty g.clone():null)},splitAt:function(b){var c,d=this,e=0,f=d.children.length;if("nu
pe:n.CLOSE,regex:/^\[\/[^\[\]]+\]/},{type:n.OPEN,regex:/^\[[^\[\]]+\]/},{type:n. mber"!=typeof b&&(b=a.inArray(b,d.children)),b<0||b>f)return null;for(;f--;)f>=b
NEWLINE,regex:/^(\r\n|\r|\n)/},{type:n.CONTENT,regex:/^([^\[\r\n]+|\[)/}];f.reve ?e++:f=0;return c=d.clone(),c.children=d.children.splice(b,e),c}};var p=function
rse();a:for(;a.length;){for(d=f.length;d--;)if(c=f[d].type,(b=a.match(f[d].regex (b){if(!(this instanceof p))return new p(b);var d,g,j,k,m,q,r,s,t,u,v,w,x,y,z,A=
))&&b[0]){e.push(g(c,b[0])),a=a.substr(b[0].length);continue a}a.length&&e.push( this;d=function(){A.bbcodes=e.bbcode.bbcodes,A.opts=a.extend({},p.defaults,b)},A
g(n.CONTENT,a)),a=""}return e},g=function(b,c){var d,f,g,h=/\[([^\]\s=]+)(?:([^\ .tokenize=function(a){var b,c,d,e=[],f=[{type:n.CLOSE,regex:/^\[\/[^\[\]]+\]/},{
]]+))?\]/,i=/\[\/([^\[\]]+)\]/;return b===n.OPEN&&(d=c.match(h))&&(g=y(d[1]),d[2 type:n.OPEN,regex:/^\[[^\[\]]+\]/},{type:n.NEWLINE,regex:/^(\r\n|\r|\n)/},{type:
]&&(d[2]=a.trim(d[2]))&&(f=j(d[2]))),b===n.CLOSE&&(d=c.match(i))&&(g=y(d[1])),b= n.CONTENT,regex:/^([^\[\r\n]+|\[)/}];f.reverse();a:for(;a.length;){for(d=f.lengt
==n.NEWLINE&&(g="#newline"),g&&(b!==n.OPEN&&b!==n.CLOSE||e.bbcode.bbcodes[g])||( h;d--;)if(c=f[d].type,(b=a.match(f[d].regex))&&b[0]){e.push(g(c,b[0])),a=a.subst
b=n.CONTENT,g="#"),new o(b,g,c,f)},j=function(a){var b,c=/([^\s=]+)=(?:(?:(["']) r(b[0].length);continue a}a.length&&e.push(g(n.CONTENT,a)),a=""}return e},g=func
((?:\\\2|[^\2])*?)\2)|((?:.(?!\s\S+=))*.))/g,d={};if("="===a.charAt(0)&&a.indexO tion(b,c){var d,f,g,h=/\[([^\]\s=]+)(?:([^\]]+))?\]/,i=/\[\/([^\[\]]+)\]/;return
f("=",1)<0)d.defaultattr=l(a.substr(1));else for("="===a.charAt(0)&&(a="defaulta b===n.OPEN&&(d=c.match(h))&&(g=y(d[1]),d[2]&&(d[2]=a.trim(d[2]))&&(f=j(d[2]))),
ttr"+a);b=c.exec(a);)d[y(b[1])]=l(b[3])||b[4];return d},A.parse=function(a,b){va b===n.CLOSE&&(d=c.match(i))&&(g=y(d[1])),b===n.NEWLINE&&(g="#newline"),g&&(b!==n
r c=k(A.tokenize(a)),d=A.opts;return d.fixInvalidChildren&&t(c),d.removeEmptyTag .OPEN&&b!==n.CLOSE||e.bbcode.bbcodes[g])||(b=n.CONTENT,g="#"),new o(b,g,c,f)},j=
s&&s(c),d.fixInvalidNesting&&q(c),m(c,null,b),d.removeEmptyTags&&s(c),c},w=funct function(a){var b,c=/([^\s=]+)=(?:(?:(["'])((?:\\\2|[^\2])*?)\2)|((?:.(?!\s\S+=)
ion(a,b,c){for(var d=c.length;d--;)if(c[d].type===b&&c[d].name===a)return!0;retu )*.))/g,d={};if("="===a.charAt(0)&&a.indexOf("=",1)<0)d.defaultattr=l(a.substr(1
rn!1},r=function(b,c){var d=b?A.bbcodes[b.name]:{},e=d.allowedChildren;return A. ));else for("="===a.charAt(0)&&(a="defaultattr"+a);b=c.exec(a);)d[y(b[1])]=l(b[3
opts.fixInvalidChildren&&e?a.inArray(c.name||"#",e)>-1:!0},k=function(b){for(var ])||b[4];return d},A.parse=function(a,b){var c=k(A.tokenize(a)),d=A.opts;return
c,d,e,f,g,h,i,j=[],k=[],l=[],m=function(){return z(l)},o=function(a){m()?m().ch d.fixInvalidChildren&&t(c),d.removeEmptyTags&&s(c),d.fixInvalidNesting&&q(c),m(c
ildren.push(a):k.push(a)},p=function(b){return m()&&(d=A.bbcodes[m().name])&&d.c ,null,b),d.removeEmptyTags&&s(c),c},w=function(a,b,c){for(var d=c.length;d--;)if
losedBy&&a.inArray(b,d.closedBy)>-1};c=b.shift();){switch(i=b[0],c.type){case n. (c[d].type===b&&c[d].name===a)return!0;return!1},r=function(b,c){var d=b?A.bbcod
OPEN:p(c.name)&&l.pop(),o(c),d=A.bbcodes[c.name],d&&d.isSelfClosing||!d.closedBy es[b.name]:{},e=d.allowedChildren;return!A.opts.fixInvalidChildren||!e||a.inArra
&&!w(c.name,n.CLOSE,b)?d&&d.isSelfClosing||(c.type=n.CONTENT):l.push(c);break;ca y(c.name||"#",e)>-1},k=function(b){for(var c,d,e,f,g,h,i,j=[],k=[],l=[],m=functi
se n.CLOSE:if(m()&&c.name!==m().name&&p("/"+c.name)&&l.pop(),m()&&c.name===m().n on(){return z(l)},o=function(a){m()?m().children.push(a):k.push(a)},p=function(b
ame)m().closing=c,l.pop();else if(w(c.name,n.OPEN,l)){for(;e=l.pop();){if(e.name ){return m()&&(d=A.bbcodes[m().name])&&d.closedBy&&a.inArray(b,d.closedBy)>-1};c
===c.name){e.closing=c;break}f=e.clone(),j.length>1&&f.children.push(z(j)),j.pus =b.shift();){switch(i=b[0],c.type){case n.OPEN:p(c.name)&&l.pop(),o(c),d=A.bbcod
h(f)}for(o(z(j)),g=j.length;g--;)l.push(j[g]);j.length=0}else c.type=n.CONTENT,o es[c.name],d&&d.isSelfClosing||!d.closedBy&&!w(c.name,n.CLOSE,b)?d&&d.isSelfClos
(c);break;case n.NEWLINE:m()&&i&&p((i.type===n.CLOSE?"/":"")+i.name)&&(i.type!== ing||(c.type=n.CONTENT):l.push(c);break;case n.CLOSE:if(m()&&c.name!==m().name&&
n.CLOSE||i.name!==m().name)&&(d=A.bbcodes[m().name],d&&d.breakAfter?l.pop():d&&d p("/"+c.name)&&l.pop(),m()&&c.name===m().name)m().closing=c,l.pop();else if(w(c.
.isInline===!1&&A.opts.breakAfterBlock&&d.breakAfter!==!1&&l.pop()),o(c);break;d name,n.OPEN,l)){for(;e=l.pop();){if(e.name===c.name){e.closing=c;break}f=e.clone
efault:o(c)}h=c}return k},m=function(a,b,c){var d,e,f,g,h,i,j,k,l=a.length;b&&(g (),j.length&&f.children.push(z(j)),j.push(f)}for(o(z(j)),g=j.length;g--;)l.push(
=A.bbcodes[b.name]);for(var o=l;o--;)if(d=a[o])if(d.type===n.NEWLINE){if(e=o>0?a j[g]);j.length=0}else c.type=n.CONTENT,o(c);break;case n.NEWLINE:m()&&i&&p((i.ty
[o-1]:null,f=l-1>o?a[o+1]:null,k=!1,!c&&g&&g.isSelfClosing!==!0&&(e?i||f||(g.isI pe===n.CLOSE?"/":"")+i.name)&&(i.type===n.CLOSE&&i.name===m().name||(d=A.bbcodes
nline===!1&&A.opts.breakEndBlock&&g.breakEnd!==!1&&(k=!0),g.breakEnd&&(k=!0),i=k [m().name],d&&d.breakAfter?l.pop():d&&d.isInline===!1&&A.opts.breakAfterBlock&&d
):(g.isInline===!1&&A.opts.breakStartBlock&&g.breakStart!==!1&&(k=!0),g.breakSta .breakAfter!==!1&&l.pop())),o(c);break;default:o(c)}h=c}return k},m=function(a,b
rt&&(k=!0))),e&&e.type===n.OPEN&&(h=A.bbcodes[e.name])&&(c?h.isInline===!1&&(k=! ,c){var d,e,f,g,h,i,j,k,l=a.length;b&&(g=A.bbcodes[b.name]);for(var o=l;o--;)if(
0):(h.isInline===!1&&A.opts.breakAfterBlock&&h.breakAfter!==!1&&(k=!0),h.breakAf d=a[o])if(d.type===n.NEWLINE){if(e=o>0?a[o-1]:null,f=o<l-1?a[o+1]:null,k=!1,!c&&
ter&&(k=!0))),!c&&!j&&f&&f.type===n.OPEN&&(h=A.bbcodes[f.name])&&(h.isInline===! g&&g.isSelfClosing!==!0&&(e?i||f||(g.isInline===!1&&A.opts.breakEndBlock&&g.brea
1&&A.opts.breakBeforeBlock&&h.breakBefore!==!1&&(k=!0),h.breakBefore&&(k=!0),j=k kEnd!==!1&&(k=!0),g.breakEnd&&(k=!0),i=k):(g.isInline===!1&&A.opts.breakStartBlo
,k)){a.splice(o,1);continue}k&&a.splice(o,1),j=!1}else d.type===n.OPEN&&m(d.chil ck&&g.breakStart!==!1&&(k=!0),g.breakStart&&(k=!0))),e&&e.type===n.OPEN&&(h=A.bb
dren,d,c)},q=function(b,c,d,e){var f,g,h,i,j,k,l=function(a){var b=A.bbcodes[a.n codes[e.name])&&(c?h.isInline===!1&&(k=!0):(h.isInline===!1&&A.opts.breakAfterBl
ame];return!b||b.isInline!==!1};for(c=c||[],e=e||b,g=0;g<b.length;g++)if((f=b[g] ock&&h.breakAfter!==!1&&(k=!0),h.breakAfter&&(k=!0))),!c&&!j&&f&&f.type===n.OPEN
)&&f.type===n.OPEN){if(!l(f)&&d&&(h=z(c),k=h.splitAt(f),j=c.length>1?c[c.length- &&(h=A.bbcodes[f.name])&&(h.isInline===!1&&A.opts.breakBeforeBlock&&h.breakBefor
2].children:e,i=a.inArray(h,j),i>-1))return k.children.splice(a.inArray(f,k.chil e!==!1&&(k=!0),h.breakBefore&&(k=!0),j=k,k)){a.splice(o,1);continue}k&&a.splice(
dren),1),void j.splice(i+1,0,f,k);c.push(f),q(f.children,c,d||l(f),e),c.pop(f)}} o,1),j=!1}else d.type===n.OPEN&&m(d.children,d,c)},q=function(b,c,d,e){var f,g,h
,t=function(a,b){for(var c,d,e=a.length;e--;)(c=a[e])&&(r(b,c)||(c.name=null,c.t ,i,j,k,l=function(a){var b=A.bbcodes[a.name];return!b||b.isInline!==!1};for(c=c|
ype=n.CONTENT,r(b,c)?(d=[e+1,0].concat(c.children),c.closing&&(c.closing.name=nu |[],e=e||b,g=0;g<b.length;g++)if((f=b[g])&&f.type===n.OPEN){if(!l(f)&&d&&(h=z(c)
ll,c.closing.type=n.CONTENT,d.push(c.closing)),e+=d.length-1,Array.prototype.spl ,k=h.splitAt(f),j=c.length>1?c[c.length-2].children:e,i=a.inArray(h,j),i>-1))ret
ice.apply(a,d)):b.children.splice(e,1)),c.type===n.OPEN&&t(c.children,c))},s=fun urn k.children.splice(a.inArray(f,k.children),1),void j.splice(i+1,0,f,k);c.push
ction(b){for(var c,d,e=function(a){for(var b=a.length;b--;){var c=a[b].type;if(c (f),q(f.children,c,d||l(f),e),c.pop(f)}},t=function(a,b){for(var c,d,e=a.length;
===n.OPEN||c===n.CLOSE)return!1;if(c===n.CONTENT&&/\S|\u00A0/.test(a[b].val))ret e--;)(c=a[e])&&(r(b,c)||(c.name=null,c.type=n.CONTENT,r(b,c)?(d=[e+1,0].concat(c
urn!1}return!0},f=b.length;f--;)(c=b[f])&&c.type===n.OPEN&&(d=A.bbcodes[c.name], .children),c.closing&&(c.closing.name=null,c.closing.type=n.CONTENT,d.push(c.clo
s(c.children),e(c.children)&&d&&!d.isSelfClosing&&!d.allowsEmpty&&b.splice.apply sing)),e+=d.length-1,Array.prototype.splice.apply(a,d)):b.children.splice(e,1)),
(b,a.merge([f,1],c.children)))},A.toHTML=function(a,b){return u(A.parse(a,b),!0) c.type===n.OPEN&&t(c.children,c))},s=function(b){for(var c,d,e=function(a){for(v
},u=function(b,d){var g,j,k,l,m,o,p,q,r,s=[];for(q=function(a){return(!a||(a.isH ar b=a.length;b--;){var c=a[b].type;if(c===n.OPEN||c===n.CLOSE)return!1;if(c===n
tmlInline!==g?a.isHtmlInline:a.isInline))!==!1};b.length>0;)if(j=b.shift()){if(j .CONTENT&&/\S|\u00A0/.test(a[b].val))return!1}return!0},f=b.length;f--;)(c=b[f])
.type===n.OPEN)r=j.children[j.children.length-1]||{},k=A.bbcodes[j.name],o=d&&q( &&c.type===n.OPEN&&(d=A.bbcodes[c.name],s(c.children),e(c.children)&&d&&!d.isSel
k),l=u(j.children,!1),k&&k.html?(q(k)||!q(A.bbcodes[r.name])||k.isPreFormatted|| fClosing&&!d.allowsEmpty&&b.splice.apply(b,a.merge([f,1],c.children)))},A.toHTML
k.skipLastLineBreak||i||(l+="<br />"),a.isFunction(k.html)?m=k.html.call(A,j,j.a =function(a,b){return u(A.parse(a,b),!0)},u=function(b,d){var g,j,k,l,m,o,p,q,r,
ttrs,l):(j.attrs[0]=l,m=e.bbcode.formatBBCodeString(k.html,j.attrs))):m=j.val+l+ s=[];for(q=function(a){return(!a||(a.isHtmlInline!==g?a.isHtmlInline:a.isInline)
(j.closing?j.closing.val:"");else{if(j.type===n.NEWLINE){if(!d){s.push("<br />") )!==!1};b.length>0;)if(j=b.shift()){if(j.type===n.OPEN)r=j.children[j.children.l
;continue}p||(s.push("<div>"),(8>h||c.documentMode&&c.documentMode<8)&&s.push("  ength-1]||{},k=A.bbcodes[j.name],o=d&&q(k),l=u(j.children,!1),k&&k.html?(q(k)||!
")),i||s.push("<br />"),b.length||s.push("<br />"),s.push("</div>\n"),p=!1;conti q(A.bbcodes[r.name])||k.isPreFormatted||k.skipLastLineBreak||i||(l+="<br />"),a.
nue}o=d,m=f(j.val,!0)}o&&!p?(s.push("<div>"),p=!0):!o&&p&&(s.push("</div>\n"),p= isFunction(k.html)?m=k.html.call(A,j,j.attrs,l):(j.attrs[0]=l,m=e.bbcode.formatB
!1),s.push(m)}return p&&s.push("</div>\n"),s.join("")},A.toBBCode=function(a,b){ BCodeString(k.html,j.attrs))):m=j.val+l+(j.closing?j.closing.val:"");else{if(j.t
return v(A.parse(a,b))},v=function(a){for(var b,c,d,e,f,g,h,i,j,k,l=[];a.length> ype===n.NEWLINE){if(!d){s.push("<br />");continue}p||(s.push("<div>"),(h<8||c.do
0;)if(b=a.shift())if(d=A.bbcodes[b.name],e=!(!d||d.isInline!==!1),f=d&&d.isSelfC cumentMode&&c.documentMode<8)&&s.push(" ")),i||s.push("<br />"),b.length||s.push
losing,h=e&&A.opts.breakBeforeBlock&&d.breakBefore!==!1||d&&d.breakBefore,i=e&&! ("<br />"),s.push("</div>\n"),p=!1;continue}o=d,m=f(j.val,!0)}o&&!p?(s.push("<di
f&&A.opts.breakStartBlock&&d.breakStart!==!1||d&&d.breakStart,j=e&&A.opts.breakE v>"),p=!0):!o&&p&&(s.push("</div>\n"),p=!1),s.push(m)}return p&&s.push("</div>\n
ndBlock&&d.breakEnd!==!1||d&&d.breakEnd,k=e&&A.opts.breakAfterBlock&&d.breakAfte "),s.join("")},A.toBBCode=function(a,b){return v(A.parse(a,b))},v=function(a){fo
r!==!1||d&&d.breakAfter,g=(d?d.quoteType:null)||A.opts.quoteType||p.QuoteType.au r(var b,c,d,e,f,g,h,i,j,k,l=[];a.length>0;)if(b=a.shift())if(d=A.bbcodes[b.name]
to,d||b.type!==n.OPEN)if(b.type===n.OPEN){if(h&&l.push("\n"),l.push("["+b.name), ,e=!(!d||d.isInline!==!1),f=d&&d.isSelfClosing,h=e&&A.opts.breakBeforeBlock&&d.b
b.attrs){b.attrs.defaultattr&&(l.push("=",x(b.attrs.defaultattr,g,"defaultattr") reakBefore!==!1||d&&d.breakBefore,i=e&&!f&&A.opts.breakStartBlock&&d.breakStart!
),delete b.attrs.defaultattr);for(c in b.attrs)b.attrs.hasOwnProperty(c)&&l.push ==!1||d&&d.breakStart,j=e&&A.opts.breakEndBlock&&d.breakEnd!==!1||d&&d.breakEnd,
(" ",c,"=",x(b.attrs[c],g,c))}l.push("]"),i&&l.push("\n"),b.children&&l.push(v(b k=e&&A.opts.breakAfterBlock&&d.breakAfter!==!1||d&&d.breakAfter,g=(d?d.quoteType
.children)),f||d.excludeClosing||(j&&l.push("\n"),l.push("[/"+b.name+"]")),k&&l. :null)||A.opts.quoteType||p.QuoteType.auto,d||b.type!==n.OPEN)if(b.type===n.OPEN
push("\n"),b.closing&&f&&l.push(b.closing.val)}else l.push(b.val);else l.push(b. ){if(h&&l.push("\n"),l.push("["+b.name),b.attrs){b.attrs.defaultattr&&(l.push("=
val),b.children&&l.push(v(b.children)),b.closing&&l.push(b.closing.val);return l ",x(b.attrs.defaultattr,g,"defaultattr")),delete b.attrs.defaultattr);for(c in b
.join("")},x=function(b,c,d){var e=p.QuoteType,f=/\s|=/.test(b);return a.isFunct .attrs)b.attrs.hasOwnProperty(c)&&l.push(" ",c,"=",x(b.attrs[c],g,c))}l.push("]"
ion(c)?c(b,d):c===e.never||c===e.auto&&!f?b:'"'+b.replace("\\","\\\\").replace(' ),i&&l.push("\n"),b.children&&l.push(v(b.children)),f||d.excludeClosing||(j&&l.p
"','\\"')+'"'},z=function(a){return a.length?a[a.length-1]:null},y=function(a){r ush("\n"),l.push("[/"+b.name+"]")),k&&l.push("\n"),b.closing&&f&&l.push(b.closin
eturn a.toLowerCase()},d()};p.QuoteType={always:1,never:2,auto:3},p.defaults={br g.val)}else l.push(b.val);else l.push(b.val),b.children&&l.push(v(b.children)),b
eakBeforeBlock:!1,breakStartBlock:!1,breakEndBlock:!1,breakAfterBlock:!0,removeE .closing&&l.push(b.closing.val);return l.join("")},x=function(b,c,d){var e=p.Quo
mptyTags:!0,fixInvalidNesting:!0,fixInvalidChildren:!0,quoteType:p.QuoteType.aut teType,f=/\s|=/.test(b);return a.isFunction(c)?c(b,d):c===e.never||c===e.auto&&!
o},a.sceditorBBCodePlugin=e.bbcode=function(){var b,f,g,h,j=this;j.bbcodes=e.bbc f?b:'"'+b.replace("\\","\\\\").replace('"','\\"')+'"'},z=function(a){return a.le
ode.bbcodes,j.stripQuotes=l;var n={},o={},q={ul:["li","ol","ul"],ol:["li","ol"," ngth?a[a.length-1]:null},y=function(a){return a.toLowerCase()},d()};p.QuoteType=
ul"],table:["tr"],tr:["td","th"],code:["br","p","div"]};j.init=function(){j.opts {always:1,never:2,auto:3},p.defaults={breakBeforeBlock:!1,breakStartBlock:!1,bre
=this.opts,b(),this.commands=a.extend(!0,{},k,this.commands),this.toBBCode=j.sig akEndBlock:!1,breakAfterBlock:!0,removeEmptyTags:!0,fixInvalidNesting:!0,fixInva
nalToSource,this.fromBBCode=j.signalToWysiwyg},b=function(){a.each(j.bbcodes,fun lidChildren:!0,quoteType:p.QuoteType.auto},a.sceditorBBCodePlugin=e.bbcode=funct
ction(b){var c,d=j.bbcodes[b].tags,e=j.bbcodes[b].styles;d&&a.each(d,function(a, ion(){var b,f,g,h,j=this;j.bbcodes=e.bbcode.bbcodes,j.stripQuotes=l;var n={},o={
d){c=j.bbcodes[b].isInline===!1,n[a]=n[a]||{},n[a][c]=n[a][c]||{},n[a][c][b]=d}) },q={ul:["li","ol","ul"],ol:["li","ol","ul"],table:["tr"],tr:["td","th"],code:["
,e&&a.each(e,function(a,d){c=j.bbcodes[b].isInline===!1,o[c]=o[c]||{},o[c][a]=o[ br","p","div"]};j.init=function(){j.opts=this.opts,b(),this.commands=a.extend(!0
c][a]||{},o[c][a][b]=d})})},f=function(b,c,e){var f,g,h=d.dom.getStyle;return e= ,{},k,this.commands),this.toBBCode=j.signalToSource,this.fromBBCode=j.signalToWy
!!e,o[e]?(a.each(o[e],function(d,e){f=h(b[0],d),f&&h(b.parent()[0],d)!==f&&a.eac siwyg},b=function(){a.each(j.bbcodes,function(b){var c,d=j.bbcodes[b].tags,e=j.b
h(e,function(d,e){(!e||a.inArray(f.toString(),e)>-1)&&(g=j.bbcodes[d].format,c=a bcodes[b].styles;d&&a.each(d,function(a,d){c=j.bbcodes[b].isInline===!1,n[a]=n[a
.isFunction(g)?g.call(j,b,c):m(g,c))})}),c):c},g=function(b,c,e){var f,g,h=b[0], ]||{},n[a][c]=n[a][c]||{},n[a][c][b]=d}),e&&a.each(e,function(a,d){c=j.bbcodes[b
k=h.nodeName.toLowerCase();e=!!e,n[k]&&n[k][e]&&a.each(n[k][e],function(d,e){(!e ].isInline===!1,o[c]=o[c]||{},o[c][a]=o[c][a]||{},o[c][a][b]=d})})},f=function(b
||(f=!1,a.each(e,function(c,d){return!b.attr(c)||d&&a.inArray(b.attr(c),d)<0?voi ,c,e){var f,g,h=d.dom.getStyle;return e=!!e,o[e]?(a.each(o[e],function(d,e){f=h(
d 0:(f=!0,!1)}),f))&&(g=j.bbcodes[d].format,c=a.isFunction(g)?g.call(j,b,c):m(g, b[0],d),f&&h(b.parent()[0],d)!==f&&a.each(e,function(d,e){(!e||a.inArray(f.toStr
c))});var l=d.dom.isInline;if(e&&(!l(h,!0)||"br"===k)){for(var o,p,q,r=h.previou ing(),e)>-1)&&(g=j.bbcodes[d].format,c=a.isFunction(g)?g.call(j,b,c):m(g,c))})})
sSibling;r&&(a(r).hasClass("sceditor-ignore")||1===r.nodeType&&!a(r).is("br")&&l ,c):c},g=function(b,c,e){var f,g,h=b[0],k=h.nodeName.toLowerCase();e=!!e,n[k]&&n
(r,!0)&&!r.firstChild);)r=r.previousSibling;do{for(p=h.parentNode,q=p.lastChild; [k][e]&&a.each(n[k][e],function(d,e){e&&(f=!1,a.each(e,function(c,d){if(b.attr(c
a(q).hasClass("sceditor-ignore");)q=q.previousSibling;o=q===h,h=p}while(p&&o&&l( )&&!(d&&a.inArray(b.attr(c),d)<0))return f=!0,!1}),!f)||(g=j.bbcodes[d].format,c
p,!0));(!o||"li"===k||"br"===k&&i)&&(c+="\n"),"br"!==k&&r&&!a(r).is("br")&&l(r,! =a.isFunction(g)?g.call(j,b,c):m(g,c))});var l=d.dom.isInline;if(e&&(!l(h,!0)||"
0)&&(c="\n"+c)}return c},j.signalToSource=function(b,e){var f,g,h=new p(j.opts.p br"===k)){for(var o,p,q,r=h.previousSibling;r&&1===r.nodeType&&!a(r).is("br")&&l
arserOptions);return e||("string"==typeof b?(f=a("<div />").css("visibility","hi (r,!0)&&!r.firstChild;)r=r.previousSibling;do p=h.parentNode,q=p.lastChild,o=q==
dden").appendTo(c.body).html(b),e=f):e=a(b)),e&&e.jquery?(d.dom.removeWhiteSpace =h,h=p;while(p&&o&&l(p,!0));(!o||"li"===k||"br"===k&&i)&&(c+="\n"),"br"!==k&&r&&
(e[0]),g=j.elementToBbcode(e),f&&f.remove(),g=h.toBBCode(g,!0),j.opts.bbcodeTrim !a(r).is("br")&&l(r,!0)&&(c="\n"+c)}return c},j.signalToSource=function(b,e){var
&&(g=a.trim(g)),g):""},j.elementToBbcode=function(b){var c=function(b,e){var h=" f,g,h=new p(j.opts.parserOptions);return e||("string"==typeof b?(f=a("<div />")
";return d.dom.traverse(b,function(b){var d=a(b),j="",k=b.nodeType,l=b.nodeName. .css("visibility","hidden").appendTo(c.body).html(b),e=f):e=a(b)),e&&e.jquery?(d
toLowerCase(),m=q[l],n=b.firstChild,o=!0;if("object"==typeof e&&(o=a.inArray(l,e .dom.removeWhiteSpace(e[0]),a(".sceditor-ignore",e).remove(),g=j.elementToBbcode
)>-1,d.is("img")&&d.data("sceditor-emoticon")&&(o=!0),o||(m=e)),3===k||1===k)if( (e),f&&f.remove(),g=h.toBBCode(g,!0),j.opts.bbcodeTrim&&(g=a.trim(g)),g):""},j.e
1===k){if(d.hasClass("sceditor-ignore"))return;if(d.hasClass("sceditor-nlf")&&(! lementToBbcode=function(b){var c=function(b,e){var h="";return d.dom.traverse(b,
n||!i&&1===b.childNodes.length&&/br/i.test(n.nodeName)))return;"iframe"!==l&&(j= function(b){var d=a(b),j="",k=b.nodeType,l=b.nodeName.toLowerCase(),m=q[l],n=b.f
c(b,m)),o?("code"!==l&&(j=f(d,j),j=g(d,j),j=f(d,j,!0)),h+=g(d,j,!0)):h+=j}else h irstChild,o=!0;if("object"==typeof e&&(o=a.inArray(l,e)>-1,d.is("img")&&d.data("
+=b.nodeValue},!1,!0),h};return c(b[0])},j.signalToWysiwyg=function(b,c){var d=n sceditor-emoticon")&&(o=!0),o||(m=e)),3===k||1===k)if(1===k){if(d.hasClass("sced
ew p(j.opts.parserOptions),e=d.toHTML(j.opts.bbcodeTrim?a.trim(b):b);return c?h( itor-nlf")&&(!n||!i&&1===b.childNodes.length&&/br/i.test(n.nodeName)))return;"if
e):e},h=function(b){var e,f,g,h=a("<div />").hide().appendTo(c.body),j=h[0];retu rame"!==l&&(j=c(b,m)),o?("code"!==l&&(j=f(d,j),j=g(d,j),j=f(d,j,!0)),h+=g(d,j,!0
rn g=function(b,e){if(!d.dom.hasStyling(b)){if(i||1!==b.childNodes.length||!a(b. )):h+=j}else h+=b.nodeValue},!1,!0),h};return c(b[0])},j.signalToWysiwyg=functio
firstChild).is("br"))for(;f=b.firstChild;)j.insertBefore(f,b);if(e){var g=j.last n(b,c){var d=new p(j.opts.parserOptions),e=d.toHTML(j.opts.bbcodeTrim?a.trim(b):
Child;b!==g&&a(g).is("div")&&b.nextSibling===g&&j.insertBefore(c.createElement(" b);return c?h(e):e},h=function(b){var e,f,g,h=a("<div />").hide().appendTo(c.bod
br"),b)}j.removeChild(b)}},j.innerHTML=b.replace(/<\/div>\n/g,"</div>"),(e=j.fir y),j=h[0];return g=function(b,e){if(!d.dom.hasStyling(b)){if(i||1!==b.childNodes
stChild)&&a(e).is("div")&&g(e,!0),(e=j.lastChild)&&a(e).is("div")&&g(e),j=j.inne .length||!a(b.firstChild).is("br"))for(;f=b.firstChild;)j.insertBefore(f,b);if(e
rHTML,h.remove(),j}},e.bbcode.formatBBCodeString=function(a,b){return a.replace( ){var g=j.lastChild;b!==g&&a(g).is("div")&&b.nextSibling===g&&j.insertBefore(c.c
/\{([^}]+)\}/g,function(a,c){var d,e=!0;return"!"===c.charAt(0)&&(e=!1,c=c.subst reateElement("br"),b)}j.removeChild(b)}},j.innerHTML=b.replace(/<\/div>\n/g,"</d
ring(1)),"0"===c&&(e=!1),b[c]===d?a:e?f(b[c],!0):b[c]})};var q=function(a){retur iv>"),(e=j.firstChild)&&a(e).is("div")&&g(e,!0),(e=j.lastChild)&&a(e).is("div")&
n a=parseInt(a,10),isNaN(a)?"00":(a=Math.max(0,Math.min(a,255)).toString(16),a.l &g(e),j=j.innerHTML,h.remove(),j}},e.bbcode.formatBBCodeString=function(a,b){ret
ength<2?"0"+a:a)},r=function(a){var b;return a=a||"#000",(b=a.match(/rgb\((\d{1, urn a.replace(/\{([^}]+)\}/g,function(a,c){
3}),\s*?(\d{1,3}),\s*?(\d{1,3})\)/i))?"#"+q(b[1])+q(b[2]-0)+q(b[3]-0):(b=a.match var d,e=!0;return"!"===c.charAt(0)&&(e=!1,c=c.substring(1)),"0"===c&&(e=!1),b[c]
(/#([0-f])([0-f])([0-f])\s*?$/i))?"#"+b[1]+b[1]+b[2]+b[2]+b[3]+b[3]:a ===d?a:e?f(b[c],!0):b[c]})};var q=function(a){return a=parseInt(a,10),isNaN(a)?"
},s={b:{tags:{b:null,strong:null},styles:{"font-weight":["bold","bolder","401"," 00":(a=Math.max(0,Math.min(a,255)).toString(16),a.length<2?"0"+a:a)},r=function(
700","800","900"]},format:"[b]{0}[/b]",html:"<strong>{0}</strong>"},i:{tags:{i:n a){var b;return a=a||"#000",(b=a.match(/rgb\((\d{1,3}),\s*?(\d{1,3}),\s*?(\d{1,3
ull,em:null},styles:{"font-style":["italic","oblique"]},format:"[i]{0}[/i]",html })\)/i))?"#"+q(b[1])+q(b[2]-0)+q(b[3]-0):(b=a.match(/#([0-f])([0-f])([0-f])\s*?$
:"<em>{0}</em>"},u:{tags:{u:null},styles:{"text-decoration":["underline"]},forma /i))?"#"+b[1]+b[1]+b[2]+b[2]+b[3]+b[3]:a},s={b:{tags:{b:null,strong:null},styles
t:"[u]{0}[/u]",html:"<u>{0}</u>"},s:{tags:{s:null,strike:null},styles:{"text-dec :{"font-weight":["bold","bolder","401","700","800","900"]},format:"[b]{0}[/b]",h
oration":["line-through"]},format:"[s]{0}[/s]",html:"<s>{0}</s>"},sub:{tags:{sub tml:"<strong>{0}</strong>"},i:{tags:{i:null,em:null},styles:{"font-style":["ital
:null},format:"[sub]{0}[/sub]",html:"<sub>{0}</sub>"},sup:{tags:{sup:null},forma ic","oblique"]},format:"[i]{0}[/i]",html:"<em>{0}</em>"},u:{tags:{u:null},styles
t:"[sup]{0}[/sup]",html:"<sup>{0}</sup>"},font:{tags:{font:{face:null}},styles:{ :{"text-decoration":["underline"]},format:"[u]{0}[/u]",html:"<u>{0}</u>"},s:{tag
"font-family":null},quoteType:p.QuoteType.never,format:function(a,b){var c;retur s:{s:null,strike:null},styles:{"text-decoration":["line-through"]},format:"[s]{0
n a.is("font")&&(c=a.attr("face"))||(c=a.css("font-family")),"[font="+l(c)+"]"+b }[/s]",html:"<s>{0}</s>"},sub:{tags:{sub:null},format:"[sub]{0}[/sub]",html:"<su
+"[/font]"},html:'<font face="{defaultattr}">{0}</font>'},size:{tags:{font:{size b>{0}</sub>"},sup:{tags:{sup:null},format:"[sup]{0}[/sup]",html:"<sup>{0}</sup>"
:null}},styles:{"font-size":null},format:function(a,b){var c=a.attr("size"),d=2; },font:{tags:{font:{face:null}},styles:{"font-family":null},quoteType:p.QuoteTyp
return c||(c=a.css("fontSize")),c.indexOf("px")>-1?(c=c.replace("px","")-0,12>c& e.never,format:function(a,b){var c;return a.is("font")&&(c=a.attr("face"))||(c=a
&(d=1),c>15&&(d=3),c>17&&(d=4),c>23&&(d=5),c>31&&(d=6),c>47&&(d=7)):d=c,"[size=" .css("font-family")),"[font="+l(c)+"]"+b+"[/font]"},html:'<font face="{defaultat
+d+"]"+b+"[/size]"},html:'<font size="{defaultattr}">{!0}</font>'},color:{tags:{ tr}">{0}</font>'},size:{tags:{font:{size:null}},styles:{"font-size":null},format
font:{color:null}},styles:{color:null},quoteType:p.QuoteType.never,format:functi :function(a,b){var c=a.attr("size"),d=2;return c||(c=a.css("fontSize")),c.indexO
on(a,b){var c;return a.is("font")&&(c=a.attr("color"))||(c=a[0].style.color||a.c f("px")>-1?(c=c.replace("px","")-0,c<12&&(d=1),c>15&&(d=3),c>17&&(d=4),c>23&&(d=
ss("color")),"[color="+r(c)+"]"+b+"[/color]"},html:function(a,b,c){return'<font 5),c>31&&(d=6),c>47&&(d=7)):d=c,"[size="+d+"]"+b+"[/size]"},html:'<font size="{d
color="'+f(r(b.defaultattr),!0)+'">'+c+"</font>"}},ul:{tags:{ul:null},breakStart efaultattr}">{!0}</font>'},color:{tags:{font:{color:null}},styles:{color:null},q
:!0,isInline:!1,skipLastLineBreak:!0,format:"[ul]{0}[/ul]",html:"<ul>{0}</ul>"}, uoteType:p.QuoteType.never,format:function(a,b){var c;return a.is("font")&&(c=a.
list:{breakStart:!0,isInline:!1,skipLastLineBreak:!0,html:"<ul>{0}</ul>"},ol:{ta attr("color"))||(c=a[0].style.color||a.css("color")),"[color="+r(c)+"]"+b+"[/col
gs:{ol:null},breakStart:!0,isInline:!1,skipLastLineBreak:!0,format:"[ol]{0}[/ol] or]"},html:function(a,b,c){return'<font color="'+f(r(b.defaultattr),!0)+'">'+c+"
",html:"<ol>{0}</ol>"},li:{tags:{li:null},isInline:!1,closedBy:["/ul","/ol","/li </font>"}},ul:{tags:{ul:null},breakStart:!0,isInline:!1,skipLastLineBreak:!0,for
st","*","li"],format:"[li]{0}[/li]",html:"<li>{0}</li>"},"*":{isInline:!1,closed mat:"[ul]{0}[/ul]",html:"<ul>{0}</ul>"},list:{breakStart:!0,isInline:!1,skipLast
By:["/ul","/ol","/list","*","li"],html:"<li>{0}</li>"},table:{tags:{table:null}, LineBreak:!0,html:"<ul>{0}</ul>"},ol:{tags:{ol:null},breakStart:!0,isInline:!1,s
isInline:!1,isHtmlInline:!0,skipLastLineBreak:!0,format:"[table]{0}[/table]",htm kipLastLineBreak:!0,format:"[ol]{0}[/ol]",html:"<ol>{0}</ol>"},li:{tags:{li:null
l:"<table>{0}</table>"},tr:{tags:{tr:null},isInline:!1,skipLastLineBreak:!0,form },isInline:!1,closedBy:["/ul","/ol","/list","*","li"],format:"[li]{0}[/li]",html
at:"[tr]{0}[/tr]",html:"<tr>{0}</tr>"},th:{tags:{th:null},allowsEmpty:!0,isInlin :"<li>{0}</li>"},"*":{isInline:!1,closedBy:["/ul","/ol","/list","*","li"],html:"
e:!1,format:"[th]{0}[/th]",html:"<th>{0}</th>"},td:{tags:{td:null},allowsEmpty:! <li>{0}</li>"},table:{tags:{table:null},isInline:!1,isHtmlInline:!0,skipLastLine
0,isInline:!1,format:"[td]{0}[/td]",html:"<td>{0}</td>"},emoticon:{allowsEmpty:! Break:!0,format:"[table]{0}[/table]",html:"<table>{0}</table>"},tr:{tags:{tr:nul
0,tags:{img:{src:null,"data-sceditor-emoticon":null}},format:function(a,b){retur l},isInline:!1,skipLastLineBreak:!0,format:"[tr]{0}[/tr]",html:"<tr>{0}</tr>"},t
n a.data("sceditor-emoticon")+b},html:"{0}"},hr:{tags:{hr:null},allowsEmpty:!0,i h:{tags:{th:null},allowsEmpty:!0,isInline:!1,format:"[th]{0}[/th]",html:"<th>{0}
sSelfClosing:!0,isInline:!1,format:"[hr]{0}",html:"<hr />"},img:{allowsEmpty:!0, </th>"},td:{tags:{td:null},allowsEmpty:!0,isInline:!1,format:"[td]{0}[/td]",html
tags:{img:{src:null}},allowedChildren:["#"],quoteType:p.QuoteType.never,format:f :"<td>{0}</td>"},emoticon:{allowsEmpty:!0,tags:{img:{src:null,"data-sceditor-emo
unction(a,b){var c,d,e="",f=a[0],g=function(a){return f.style?f.style[a]:null};r ticon":null}},format:function(a,b){return a.data("sceditor-emoticon")+b},html:"{
eturn a.attr("data-sceditor-emoticon")?b:(c=a.attr("width")||g("width"),d=a.attr 0}"},hr:{tags:{hr:null},allowsEmpty:!0,isSelfClosing:!0,isInline:!1,format:"[hr]
("height")||g("height"),(f.complete&&(c||d)||c&&d)&&(e="="+a.width()+"x"+a.heigh {0}",html:"<hr />"},img:{allowsEmpty:!0,tags:{img:{src:null}},allowedChildren:["
t()),"[img"+e+"]"+a.attr("src")+"[/img]")},html:function(a,b,c){var d,e,h,i,j="" #"],quoteType:p.QuoteType.never,format:function(a,b){var c,d,e="",f=a[0],g=funct
;return e=b.width,h=b.height,b.defaultattr&&(i=b.defaultattr.split(/x/i),e=i[0], ion(a){return f.style?f.style[a]:null};return a.attr("data-sceditor-emoticon")?b
h=2===i.length?i[1]:i[0]),e!==d&&(j+=' width="'+f(e,!0)+'"'),h!==d&&(j+=' height :(c=a.attr("width")||g("width"),d=a.attr("height")||g("height"),(f.complete&&(c|
="'+f(h,!0)+'"'),"<img"+j+' src="'+g(c)+'" />'}},url:{allowsEmpty:!0,tags:{a:{hr |d)||c&&d)&&(e="="+a.width()+"x"+a.height()),"[img"+e+"]"+a.attr("src")+"[/img]"
ef:null}},quoteType:p.QuoteType.never,format:function(a,b){var c=a.attr("href"); )},html:function(a,b,c){var d,e,h,i,j="";return e=b.width,h=b.height,b.defaultat
return"mailto:"===c.substr(0,7)?'[email="'+c.substr(7)+'"]'+b+"[/email]":"[url=" tr&&(i=b.defaultattr.split(/x/i),e=i[0],h=2===i.length?i[1]:i[0]),e!==d&&(j+=' w
+c+"]"+b+"[/url]"},html:function(a,b,c){return b.defaultattr=f(b.defaultattr,!0) idth="'+f(e,!0)+'"'),h!==d&&(j+=' height="'+f(h,!0)+'"'),"<img"+j+' src="'+g(c)+
||c,'<a href="'+g(b.defaultattr)+'">'+c+"</a>"}},email:{quoteType:p.QuoteType.ne '" />'}},url:{allowsEmpty:!0,tags:{a:{href:null}},quoteType:p.QuoteType.never,fo
ver,html:function(a,b,c){return'<a href="mailto:'+(f(b.defaultattr,!0)||c)+'">'+ rmat:function(a,b){var c=a.attr("href");return"mailto:"===c.substr(0,7)?'[email=
c+"</a>"}},quote:{tags:{blockquote:null},isInline:!1,quoteType:p.QuoteType.never "'+c.substr(7)+'"]'+b+"[/email]":"[url="+c+"]"+b+"[/url]"},html:function(a,b,c){
,format:function(b,c){var d="",e=a(b),f=e.children("cite").first();return(1===f. return b.defaultattr=f(b.defaultattr,!0)||c,'<a href="'+g(b.defaultattr)+'">'+c+
length||e.data("author"))&&(d=f.text()||e.data("author"),e.data("author",d),f.re "</a>"}},email:{quoteType:p.QuoteType.never,html:function(a,b,c){return'<a href=
move(),c=this.elementToBbcode(a(b)),d="="+d.replace(/(^\s+|\s+$)/g,""),e.prepend "mailto:'+(f(b.defaultattr,!0)||c)+'">'+c+"</a>"}},quote:{tags:{blockquote:null}
(f)),"[quote"+d+"]"+c+"[/quote]"},html:function(a,b,c){return b.defaultattr&&(c= ,isInline:!1,quoteType:p.QuoteType.never,format:function(b,c){var d="",e=a(b),f=
"<cite>"+f(b.defaultattr)+"</cite>"+c),"<blockquote>"+c+"</blockquote>"}},code:{ e.children("cite").first();return(1===f.length||e.data("author"))&&(d=f.text()||
tags:{code:null},isInline:!1,allowedChildren:["#","#newline"],format:"[code]{0}[ e.data("author"),e.data("author",d),f.remove(),c=this.elementToBbcode(a(b)),d="=
/code]",html:"<code>{0}</code>"},left:{styles:{"text-align":["left","-webkit-lef "+d.replace(/(^\s+|\s+$)/g,""),e.prepend(f)),"[quote"+d+"]"+c+"[/quote]"},html:f
t","-moz-left","-khtml-left"]},isInline:!1,format:"[left]{0}[/left]",html:'<div unction(a,b,c){return b.defaultattr&&(c="<cite>"+f(b.defaultattr)+"</cite>"+c),"
align="left">{0}</div>'},center:{styles:{"text-align":["center","-webkit-center" <blockquote>"+c+"</blockquote>"}},code:{tags:{code:null},isInline:!1,allowedChil
,"-moz-center","-khtml-center"]},isInline:!1,format:"[center]{0}[/center]",html: dren:["#","#newline"],format:"[code]{0}[/code]",html:"<code>{0}</code>"},left:{s
'<div align="center">{0}</div>'},right:{styles:{"text-align":["right","-webkit-r tyles:{"text-align":["left","-webkit-left","-moz-left","-khtml-left"]},isInline:
ight","-moz-right","-khtml-right"]},isInline:!1,format:"[right]{0}[/right]",html !1,format:"[left]{0}[/left]",html:'<div align="left">{0}</div>'},center:{styles:
:'<div align="right">{0}</div>'},justify:{styles:{"text-align":["justify","-webk {"text-align":["center","-webkit-center","-moz-center","-khtml-center"]},isInlin
it-justify","-moz-justify","-khtml-justify"]},isInline:!1,format:"[justify]{0}[/ e:!1,format:"[center]{0}[/center]",html:'<div align="center">{0}</div>'},right:{
justify]",html:'<div align="justify">{0}</div>'},youtube:{allowsEmpty:!0,tags:{i styles:{"text-align":["right","-webkit-right","-moz-right","-khtml-right"]},isIn
frame:{"data-youtube-id":null}},format:function(a,b){return a=a.attr("data-youtu line:!1,format:"[right]{0}[/right]",html:'<div align="right">{0}</div>'},justify
be-id"),a?"[youtube]"+a+"[/youtube]":b},html:'<iframe width="560" height="315" f :{styles:{"text-align":["justify","-webkit-justify","-moz-justify","-khtml-justi
rameborder="0" src="http://www.youtube.com/embed/{0}?wmode=opaque" data-youtube- fy"]},isInline:!1,format:"[justify]{0}[/justify]",html:'<div align="justify">{0}
id="{0}" allowfullscreen></iframe>'},rtl:{styles:{direction:["rtl"]},format:"[rt </div>'},youtube:{allowsEmpty:!0,tags:{iframe:{"data-youtube-id":null}},format:f
l]{0}[/rtl]",html:'<div style="direction: rtl">{0}</div>'},ltr:{styles:{directio unction(a,b){return a=a.attr("data-youtube-id"),a?"[youtube]"+a+"[/youtube]":b},
n:["ltr"]},format:"[ltr]{0}[/ltr]",html:'<div style="direction: ltr">{0}</div>'} html:'<iframe width="560" height="315" frameborder="0" src="https://www.youtube.
,ignore:{}};e.bbcode.bbcode={get:function(a){return s[a]||null},set:function(b,c com/embed/{0}?wmode=opaque" data-youtube-id="{0}" allowfullscreen></iframe>'},rt
){return b&&c?(c=a.extend(s[b]||{},c),c.remove=function(){delete s[b]},s[b]=c,th l:{styles:{direction:["rtl"]},format:"[rtl]{0}[/rtl]",html:'<div style="directio
is):!1},rename:function(a,b){return a in s?(s[b]=s[a],delete s[a],this):!1},remo n: rtl">{0}</div>'},ltr:{styles:{direction:["ltr"]},format:"[ltr]{0}[/ltr]",html
ve:function(a){return a in s&&delete s[a],this}},a.fn.sceditorBBCodePlugin=funct :'<div style="direction: ltr">{0}</div>'},ignore:{}};e.bbcode.bbcode={get:functi
ion(b){return b=b||{},a.isPlainObject(b)&&(b.plugins=(b.plugins||"")+"bbcode"),t on(a){return s[a]||null},set:function(b,c){return!(!b||!c)&&(c=a.extend(s[b]||{}
his.sceditor(b)},e.bbcode.normaliseColour=r,e.bbcode.formatString=m,e.bbcode.str ,c),c.remove=function(){delete s[b]},s[b]=c,this)},rename:function(a,b){return a
ipQuotes=l,e.bbcode.bbcodes=s,d.BBCodeParser=p}(jQuery,window,document); in s&&(s[b]=s[a],delete s[a],this)},remove:function(a){return a in s&&delete s[
a],this}},a.fn.sceditorBBCodePlugin=function(b){return b=b||{},a.isPlainObject(b
)&&(b.plugins=(b.plugins||"")+"bbcode"),this.sceditor(b)},e.bbcode.normaliseColo
ur=r,e.bbcode.formatString=m,e.bbcode.stripQuotes=l,e.bbcode.bbcodes=s,d.BBCodeP
arser=p}(jQuery,window,document);
 End of changes. 1 change blocks. 
lines changed or deleted lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)