raptor-editor-rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -3,21 +3,25 @@
3
3
  The simplest way to get [Raptor Editor](http://www.raptor-editor.com/) onto the
4
4
  Asset Pipeline in your Rails applications.
5
5
 
6
+ ## Version
7
+
8
+ Version 0.1.1 contains Raptor Editor 0.0.9-beta.
9
+
6
10
  ## Requirements
7
11
 
8
12
  * [jQuery](http://jquery.com/),
9
13
  * [jQuery UI](http://jqueryui.com/),
10
14
  * a jQuery UI theme.
15
+ * [Rangy](http://code.google.com/p/rangy/) - [see below](#usage)
11
16
 
12
17
  ## Usage
13
18
 
14
19
  raptor-editor-rails provides two Raptor Editor packages:
15
20
 
16
- * `raptor.min.js` is just Raptor Editor on its own, and
17
- * `raptor.light.min.js` is Raptor Editor and
18
- [Rangy](http://code.google.com/p/rangy/).
21
+ * `raptor.min.js` is Raptor Editor on its own
22
+ * `raptor.light.min.js` is Raptor Editor and Rangy
19
23
 
20
- If by some chance you are already using Rangy then use `raptor.min`.
24
+ If, by some chance, you are already using Rangy then use `raptor.min`.
21
25
  Otherwise, use `raptor.light.min`.
22
26
 
23
27
  Add raptor-editor-rails to your `Gemfile`:
@@ -41,6 +45,15 @@ and jQuery UI:
41
45
  //= require raptor.light.min # or raptor.min.js if you already have Rangy
42
46
  ```
43
47
 
48
+ You can now make elements of your site editable using:
49
+
50
+ ```js
51
+ $("#my_editable_element").editor();
52
+ ```
53
+
54
+ See the [Raptor Editor documentation](http://www.raptor-editor.com/demo) for
55
+ more information.
56
+
44
57
  ## Bugs, Issues and Feature Requests
45
58
 
46
59
  Please raise an issue on
@@ -64,4 +77,5 @@ Raptor Editor is [distributed under GPL](http://www.raptor-editor.com/license).
64
77
  https://github.com/PANmedia/Raptor/tags,
65
78
  2. Update `RAPTOR_EDITOR_VERSION` in `lib/raptor_editor_rails/version.rb` (don't
66
79
  include the "v" in the tag name),
67
- 3. Run `rake fetch` to automatically download the correct files.
80
+ 3. Run `rake fetch` to automatically download the correct files,
81
+ 4. Update README.md with the latest version number.
@@ -1,4 +1,4 @@
1
1
  module RaptorEditorRails
2
- VERSION = "0.1.0"
3
- RAPTOR_EDITOR_VERSION = "0.0.7-beta"
2
+ VERSION = "0.1.1"
3
+ RAPTOR_EDITOR_VERSION = "0.0.9-beta"
4
4
  end
@@ -1,4 +1,4 @@
1
- /*! VERSION: 0.0.7 *//*
1
+ /*! VERSION: 0.0.9 *//*
2
2
  Rangy, a cross-browser JavaScript range and selection library
3
3
  http://code.google.com/p/rangy/
4
4
 
@@ -44,246 +44,248 @@
44
44
  Version: 1.2.3
45
45
  Build date: 26 February 2012
46
46
  */
47
- window.rangy=function(){function d(a,c){var b=typeof a[c];return b==o||!!(b==p&&a[c])||"unknown"==b}function q(a,c){return!!(typeof a[c]==p&&a[c])}function m(a,c){return typeof a[c]!=i}function t(a){return function(c,b){for(var d=b.length;d--;)if(!a(c,b[d]))return!1;return!0}}function r(d){return d&&c(d,b)&&g(d,a)}function s(a){window.alert("Rangy not supported in your browser. Reason: "+a);h.initialized=!0;h.supported=!1}function f(){if(!h.initialized){var a,b=!1,e=!1;d(document,"createRange")&&
48
- (a=document.createRange(),c(a,k)&&g(a,l)&&(b=!0),a.detach());if((a=q(document,"body")?document.body:document.getElementsByTagName("body")[0])&&d(a,"createTextRange"))a=a.createTextRange(),r(a)&&(e=!0);!b&&!e&&s("Neither Range nor TextRange are implemented");h.initialized=!0;h.features={implementsDomRange:b,implementsTextRange:e};b=C.concat(n);e=0;for(a=b.length;e<a;++e)try{b[e](h)}catch(p){q(window,"console")&&d(window.console,"log")&&window.console.log("Init listener threw an exception. Continuing.",
49
- p)}}}function v(a){this.name=a;this.supported=this.initialized=!1}var p="object",o="function",i="undefined",l="startContainer,startOffset,endContainer,endOffset,collapsed,commonAncestorContainer,START_TO_START,START_TO_END,END_TO_START,END_TO_END".split(","),k="setStart,setStartBefore,setStartAfter,setEnd,setEndBefore,setEndAfter,collapse,selectNode,selectNodeContents,compareBoundaryPoints,deleteContents,extractContents,cloneContents,insertNode,surroundContents,cloneRange,toString,detach".split(","),
50
- a="boundingHeight,boundingLeft,boundingTop,boundingWidth,htmlText,text".split(","),b="collapse,compareEndPoints,duplicate,getBookmark,moveToBookmark,moveToElementText,parentElement,pasteHTML,select,setEndPoint,getBoundingClientRect".split(","),c=t(d),e=t(q),g=t(m),h={version:"1.2.3",initialized:!1,supported:!0,util:{isHostMethod:d,isHostObject:q,isHostProperty:m,areHostMethods:c,areHostObjects:e,areHostProperties:g,isTextRange:r},features:{},modules:{},config:{alertOnWarn:!1,preferTextRange:!1}};
51
- h.fail=s;h.warn=function(a){a="Rangy warning: "+a;h.config.alertOnWarn?window.alert(a):typeof window.console!=i&&typeof window.console.log!=i&&window.console.log(a)};({}).hasOwnProperty?h.util.extend=function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])}:s("hasOwnProperty not supported");var n=[],C=[];h.init=f;h.addInitListener=function(a){h.initialized?a(h):n.push(a)};var B=[];h.addCreateMissingNativeApiListener=function(a){B.push(a)};h.createMissingNativeApi=function(a){a=a||window;f();
52
- for(var c=0,b=B.length;c<b;++c)B[c](a)};v.prototype.fail=function(a){this.initialized=!0;this.supported=!1;throw Error("Module '"+this.name+"' failed to load: "+a);};v.prototype.warn=function(a){h.warn("Module "+this.name+": "+a)};v.prototype.createError=function(a){return Error("Error in Rangy "+this.name+" module: "+a)};h.createModule=function(a,c){var b=new v(a);h.modules[a]=b;C.push(function(a){c(a,b);b.initialized=!0;b.supported=!0})};h.requireModules=function(a){for(var c=0,b=a.length,d,e;c<
53
- b;++c){e=a[c];d=h.modules[e];if(!d||!(d instanceof v))throw Error("Module '"+e+"' not found");if(!d.supported)throw Error("Module '"+e+"' not supported");}};var z=!1,e=function(){z||(z=!0,h.initialized||f())};if(typeof window==i)s("No window found");else if(typeof document==i)s("No document found");else return d(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",e,!1),d(window,"addEventListener")?window.addEventListener("load",e,!1):d(window,"attachEvent")?window.attachEvent("onload",
54
- e):s("Window does not have required addEventListener or attachEvent method"),h}();
55
- rangy.createModule("DomUtil",function(d,q){function m(a){for(var c=0;a=a.previousSibling;)c++;return c}function t(a,b){var d=[],n;for(n=a;n;n=n.parentNode)d.push(n);for(n=b;n;n=n.parentNode)if(c(d,n))return n;return null}function r(a,c,b){for(b=b?a:a.parentNode;b;){a=b.parentNode;if(a===c)return b;b=a}return null}function s(a){a=a.nodeType;return 3==a||4==a||8==a}function f(a,c){var b=c.nextSibling,d=c.parentNode;b?d.insertBefore(a,b):d.appendChild(a);return a}function v(a){if(9==a.nodeType)return a;
56
- if(typeof a.ownerDocument!=k)return a.ownerDocument;if(typeof a.document!=k)return a.document;if(a.parentNode)return v(a.parentNode);throw Error("getDocument: no document found for node");}function p(a){return!a?"[No node]":s(a)?'"'+a.data+'"':1==a.nodeType?"<"+a.nodeName+(a.id?' id="'+a.id+'"':"")+">["+a.childNodes.length+"]":a.nodeName}function o(a){this._next=this.root=a}function i(a,c){this.node=a;this.offset=c}function l(a){this.code=this[a];this.codeName=a;this.message="DOMException: "+this.codeName}
57
- var k="undefined",a=d.util;a.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||q.fail("document missing a Node creation method");a.isHostMethod(document,"getElementsByTagName")||q.fail("document missing getElementsByTagName method");var b=document.createElement("div");a.areHostMethods(b,["insertBefore","appendChild","cloneNode"])||q.fail("Incomplete Element implementation");a.isHostProperty(b,"innerHTML")||q.fail("Element is missing innerHTML property");b=document.createTextNode("test");
58
- a.areHostMethods(b,["splitText","deleteData","insertData","appendData","cloneNode"])||q.fail("Incomplete Text Node implementation");var c=function(a,c){for(var b=a.length;b--;)if(a[b]===c)return!0;return!1};o.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var a=this._current=this._next,c;if(this._current){c=a.firstChild;if(!c)for(c=null;a!==this.root&&!(c=a.nextSibling);)a=a.parentNode;this._next=c}return this._current},detach:function(){this._current=this._next=this.root=
59
- null}};i.prototype={equals:function(a){return this.node===a.node&this.offset==a.offset},inspect:function(){return"[DomPosition("+p(this.node)+":"+this.offset+")]"}};l.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11};l.prototype.toString=function(){return this.message};d.dom={arrayContains:c,isHtmlNamespace:function(a){var c;return typeof a.namespaceURI==k||null===(c=a.namespaceURI)||"http://www.w3.org/1999/xhtml"==
60
- c},parentElement:function(a){a=a.parentNode;return 1==a.nodeType?a:null},getNodeIndex:m,getNodeLength:function(a){var c;return s(a)?a.length:(c=a.childNodes)?c.length:0},getCommonAncestor:t,isAncestorOf:function(a,c,b){for(c=b?c:c.parentNode;c;){if(c===a)return!0;c=c.parentNode}return!1},getClosestAncestorIn:r,isCharacterDataNode:s,insertAfter:f,splitDataNode:function(a,c){var b=a.cloneNode(!1);b.deleteData(0,c);a.deleteData(c,a.length-c);f(b,a);return b},getDocument:v,getWindow:function(a){a=v(a);
61
- if(typeof a.defaultView!=k)return a.defaultView;if(typeof a.parentWindow!=k)return a.parentWindow;throw Error("Cannot get a window object for node");},getIframeWindow:function(a){if(typeof a.contentWindow!=k)return a.contentWindow;if(typeof a.contentDocument!=k)return a.contentDocument.defaultView;throw Error("getIframeWindow: No Window object found for iframe element");},getIframeDocument:function(a){if(typeof a.contentDocument!=k)return a.contentDocument;if(typeof a.contentWindow!=k)return a.contentWindow.document;
62
- throw Error("getIframeWindow: No Document object found for iframe element");},getBody:function(c){return a.isHostObject(c,"body")?c.body:c.getElementsByTagName("body")[0]},getRootContainer:function(a){for(var c;c=a.parentNode;)a=c;return a},comparePoints:function(a,c,b,d){var p;if(a==b)return c===d?0:c<d?-1:1;if(p=r(b,a,!0))return c<=m(p)?-1:1;if(p=r(a,b,!0))return m(p)<d?-1:1;c=t(a,b);a=a===c?c:r(a,c,!0);b=b===c?c:r(b,c,!0);if(a===b)throw Error("comparePoints got to case 4 and childA and childB are the same!");
63
- for(c=c.firstChild;c;){if(c===a)return-1;if(c===b)return 1;c=c.nextSibling}throw Error("Should not be here!");},inspectNode:p,fragmentFromNodeChildren:function(a){for(var c=v(a).createDocumentFragment(),b;b=a.firstChild;)c.appendChild(b);return c},createIterator:function(a){return new o(a)},DomPosition:i};d.DOMException=l});
64
- rangy.createModule("DomRange",function(d){function q(a,c){return 3!=a.nodeType&&(j.isAncestorOf(a,c.startContainer,!0)||j.isAncestorOf(a,c.endContainer,!0))}function m(a){return j.getDocument(a.startContainer)}function t(a,c,b){if(c=a._listeners[c])for(var d=0,e=c.length;d<e;++d)c[d].call(a,{target:a,args:b})}function r(a){return new J(a.parentNode,j.getNodeIndex(a))}function s(a){return new J(a.parentNode,j.getNodeIndex(a)+1)}function f(a,c,b){var d=11==a.nodeType?a.firstChild:a;j.isCharacterDataNode(c)?
65
- b==c.length?j.insertAfter(a,c):c.parentNode.insertBefore(a,0==b?c:j.splitDataNode(c,b)):b>=c.childNodes.length?c.appendChild(a):c.insertBefore(a,c.childNodes[b]);return d}function v(a){for(var c,b,d=m(a.range).createDocumentFragment();b=a.next();){c=a.isPartiallySelectedSubtree();b=b.cloneNode(!c);c&&(c=a.getSubtreeIterator(),b.appendChild(v(c)),c.detach(!0));if(10==b.nodeType)throw new D("HIERARCHY_REQUEST_ERR");d.appendChild(b)}return d}function p(a,c,b){for(var d,e,b=b||{stop:!1};d=a.next();)if(a.isPartiallySelectedSubtree())if(!1===
66
- c(d)){b.stop=!0;break}else{if(d=a.getSubtreeIterator(),p(d,c,b),d.detach(!0),b.stop)break}else for(d=j.createIterator(d);e=d.next();)if(!1===c(e)){b.stop=!0;return}}function o(a){for(var c;a.next();)a.isPartiallySelectedSubtree()?(c=a.getSubtreeIterator(),o(c),c.detach(!0)):a.remove()}function i(a){for(var c,b=m(a.range).createDocumentFragment(),d;c=a.next();){a.isPartiallySelectedSubtree()?(c=c.cloneNode(!1),d=a.getSubtreeIterator(),c.appendChild(i(d)),d.detach(!0)):a.remove();if(10==c.nodeType)throw new D("HIERARCHY_REQUEST_ERR");
67
- b.appendChild(c)}return b}function l(c,b,d){var e=!(!b||!b.length),g,x=!!d;e&&(g=RegExp("^("+b.join("|")+")$"));var u=[];p(new a(c,!1),function(a){(!e||g.test(a.nodeType))&&(!x||d(a))&&u.push(a)});return u}function k(a){return"["+("undefined"==typeof a.getName?"Range":a.getName())+"("+j.inspectNode(a.startContainer)+":"+a.startOffset+", "+j.inspectNode(a.endContainer)+":"+a.endOffset+")]"}function a(a,c){this.range=a;this.clonePartiallySelectedTextNodes=c;if(!a.collapsed){this.sc=a.startContainer;
68
- this.so=a.startOffset;this.ec=a.endContainer;this.eo=a.endOffset;var b=a.commonAncestorContainer;this.sc===this.ec&&j.isCharacterDataNode(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc===b&&!j.isCharacterDataNode(this.sc)?this.sc.childNodes[this.so]:j.getClosestAncestorIn(this.sc,b,!0),this._last=this.ec===b&&!j.isCharacterDataNode(this.ec)?this.ec.childNodes[this.eo-1]:j.getClosestAncestorIn(this.ec,b,!0))}}function b(a){this.code=
69
- this[a];this.codeName=a;this.message="RangeException: "+this.codeName}function c(a,c,b){this.nodes=l(a,c,b);this._next=this.nodes[0];this._position=0}function e(a){return function(c,b){for(var d,e=b?c:c.parentNode;e;){d=e.nodeType;if(j.arrayContains(a,d))return e;e=e.parentNode}return null}}function g(a,c){if(aa(a,c))throw new b("INVALID_NODE_TYPE_ERR");}function h(a){if(!a.startContainer)throw new D("INVALID_STATE_ERR");}function n(a,c){if(!j.arrayContains(c,a.nodeType))throw new b("INVALID_NODE_TYPE_ERR");
70
- }function C(a,c){if(0>c||c>(j.isCharacterDataNode(a)?a.length:a.childNodes.length))throw new D("INDEX_SIZE_ERR");}function B(a,c){if(Q(a,!0)!==Q(c,!0))throw new D("WRONG_DOCUMENT_ERR");}function z(a){if(ba(a,!0))throw new D("NO_MODIFICATION_ALLOWED_ERR");}function y(a,c){if(!a)throw new D(c);}function F(a){return!!a.startContainer&&!!a.endContainer&&!(!j.arrayContains(M,a.startContainer.nodeType)&&!Q(a.startContainer,!0))&&!(!j.arrayContains(M,a.endContainer.nodeType)&&!Q(a.endContainer,!0))&&a.startOffset<=
71
- (j.isCharacterDataNode(a.startContainer)?a.startContainer.length:a.startContainer.childNodes.length)&&a.endOffset<=(j.isCharacterDataNode(a.endContainer)?a.endContainer.length:a.endContainer.childNodes.length)}function w(a){h(a);if(!F(a))throw Error("Range error: Range is no longer valid after DOM mutation ("+a.inspect()+")");}function H(){}function G(a){a.START_TO_START=R;a.START_TO_END=V;a.END_TO_END=ca;a.END_TO_START=W;a.NODE_BEFORE=X;a.NODE_AFTER=Y;a.NODE_BEFORE_AND_AFTER=Z;a.NODE_INSIDE=S}function E(a){G(a);
72
- G(a.prototype)}function u(c,b){return function(){w(this);var d=this.startContainer,e=this.startOffset,g=this.commonAncestorContainer,x=new a(this,!0);d!==g&&(d=j.getClosestAncestorIn(d,g,!0),e=s(d),d=e.node,e=e.offset);p(x,z);x.reset();g=c(x);x.detach();b(this,d,e,d,e);return g}}function I(c,b,e){function x(a,c){return function(b){h(this);n(b,K);n(O(b),M);b=(a?r:s)(b);(c?I:p)(this,b.node,b.offset)}}function I(a,c,d){var e=a.endContainer,g=a.endOffset;if(c!==a.startContainer||d!==a.startOffset){if(O(c)!=
73
- O(e)||1==j.comparePoints(c,d,e,g))e=c,g=d;b(a,c,d,e,g)}}function p(a,c,d){var e=a.startContainer,g=a.startOffset;if(c!==a.endContainer||d!==a.endOffset){if(O(c)!=O(e)||-1==j.comparePoints(c,d,e,g))e=c,g=d;b(a,e,g,c,d)}}c.prototype=new H;d.util.extend(c.prototype,{setStart:function(a,c){h(this);g(a,!0);C(a,c);I(this,a,c)},setEnd:function(a,c){h(this);g(a,!0);C(a,c);p(this,a,c)},setStartBefore:x(!0,!0),setStartAfter:x(!1,!0),setEndBefore:x(!0,!1),setEndAfter:x(!1,!1),collapse:function(a){w(this);a?
74
- b(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):b(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(a){h(this);g(a,!0);b(this,a,0,a,j.getNodeLength(a))},selectNode:function(a){h(this);g(a,!1);n(a,K);var c=r(a),a=s(a);b(this,c.node,c.offset,a.node,a.offset)},extractContents:u(i,b),deleteContents:u(o,b),canSurroundContents:function(){w(this);z(this.startContainer);z(this.endContainer);var c=new a(this,!0),b=c._first&&
75
- q(c._first,this)||c._last&&q(c._last,this);c.detach();return!b},detach:function(){e(this)},splitBoundaries:function(){w(this);var a=this.startContainer,c=this.startOffset,d=this.endContainer,e=this.endOffset,g=a===d;j.isCharacterDataNode(d)&&0<e&&e<d.length&&j.splitDataNode(d,e);j.isCharacterDataNode(a)&&0<c&&c<a.length&&(a=j.splitDataNode(a,c),g?(e-=c,d=a):d==a.parentNode&&e>=j.getNodeIndex(a)&&e++,c=0);b(this,a,c,d,e)},normalizeBoundaries:function(){w(this);var a=this.startContainer,c=this.startOffset,
76
- d=this.endContainer,e=this.endOffset,g=function(a){var c=a.nextSibling;c&&c.nodeType==a.nodeType&&(d=a,e=a.length,a.appendData(c.data),c.parentNode.removeChild(c))},x=function(b){var g=b.previousSibling;if(g&&g.nodeType==b.nodeType){a=b;var x=b.length;c=g.length;b.insertData(0,g.data);g.parentNode.removeChild(g);a==d?(e+=c,d=a):d==b.parentNode&&(g=j.getNodeIndex(b),e==g?(d=b,e=x):e>g&&e--)}},u=!0;j.isCharacterDataNode(d)?d.length==e&&g(d):(0<e&&(u=d.childNodes[e-1])&&j.isCharacterDataNode(u)&&g(u),
77
- u=!this.collapsed);u?j.isCharacterDataNode(a)?0==c&&x(a):c<a.childNodes.length&&(g=a.childNodes[c])&&j.isCharacterDataNode(g)&&x(g):(a=d,c=e);b(this,a,c,d,e)},collapseToPoint:function(a,c){h(this);g(a,!0);C(a,c);(a!==this.startContainer||c!==this.startOffset||a!==this.endContainer||c!==this.endOffset)&&b(this,a,c,a,c)}});E(c)}function N(a){a.collapsed=a.startContainer===a.endContainer&&a.startOffset===a.endOffset;a.commonAncestorContainer=a.collapsed?a.startContainer:j.getCommonAncestor(a.startContainer,
78
- a.endContainer)}function P(a,c,b,d,e){var g=a.startContainer!==c||a.startOffset!==b,x=a.endContainer!==d||a.endOffset!==e;a.startContainer=c;a.startOffset=b;a.endContainer=d;a.endOffset=e;N(a);t(a,"boundarychange",{startMoved:g,endMoved:x})}function A(a){this.startContainer=a;this.startOffset=0;this.endContainer=a;this.endOffset=0;this._listeners={boundarychange:[],detach:[]};N(this)}d.requireModules(["DomUtil"]);var j=d.dom,J=j.DomPosition,D=d.DOMException;a.prototype={_current:null,_next:null,_first:null,
79
- _last:null,isSingleCharacterDataNode:!1,reset:function(){this._current=null;this._next=this._first},hasNext:function(){return!!this._next},next:function(){var a=this._current=this._next;a&&(this._next=a!==this._last?a.nextSibling:null,j.isCharacterDataNode(a)&&this.clonePartiallySelectedTextNodes&&(a===this.ec&&(a=a.cloneNode(!0)).deleteData(this.eo,a.length-this.eo),this._current===this.sc&&(a=a.cloneNode(!0)).deleteData(0,this.so)));return a},remove:function(){var a=this._current,c,b;j.isCharacterDataNode(a)&&
80
- (a===this.sc||a===this.ec)?(c=a===this.sc?this.so:0,b=a===this.ec?this.eo:a.length,c!=b&&a.deleteData(c,b-c)):a.parentNode&&a.parentNode.removeChild(a)},isPartiallySelectedSubtree:function(){return q(this._current,this.range)},getSubtreeIterator:function(){var c;if(this.isSingleCharacterDataNode)c=this.range.cloneRange(),c.collapse();else{c=new A(m(this.range));var b=this._current,d=b,e=0,g=b,x=j.getNodeLength(b);j.isAncestorOf(b,this.sc,!0)&&(d=this.sc,e=this.so);j.isAncestorOf(b,this.ec,!0)&&(g=
81
- this.ec,x=this.eo);P(c,d,e,g,x)}return new a(c,this.clonePartiallySelectedTextNodes)},detach:function(a){a&&this.range.detach();this.range=this._current=this._next=this._first=this._last=this.sc=this.so=this.ec=this.eo=null}};b.prototype={BAD_BOUNDARYPOINTS_ERR:1,INVALID_NODE_TYPE_ERR:2};b.prototype.toString=function(){return this.message};c.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){this._current=this._next;this._next=this.nodes[++this._position];return this._current},
82
- detach:function(){this._current=this._next=this.nodes=null}};var K=[1,3,4,5,7,8,10],M=[2,9,11],L=[1,3,4,5,7,8,10,11],x=[1,3,4,5,7,8],O=j.getRootContainer,Q=e([9,11]),ba=e([5,6,10,12]),aa=e([6,10,12]),$=document.createElement("style"),T=!1;try{$.innerHTML="<b>x</b>",T=3==$.firstChild.nodeType}catch(da){}d.features.htmlParsingConforms=T;var U="startContainer,startOffset,endContainer,endOffset,collapsed,commonAncestorContainer".split(","),R=0,V=1,ca=2,W=3,X=0,Y=1,Z=2,S=3;H.prototype={attachListener:function(a,
83
- c){this._listeners[a].push(c)},compareBoundaryPoints:function(a,c){w(this);B(this.startContainer,c.startContainer);var b=a==W||a==R?"start":"end",d=a==V||a==R?"start":"end";return j.comparePoints(this[b+"Container"],this[b+"Offset"],c[d+"Container"],c[d+"Offset"])},insertNode:function(a){w(this);n(a,L);z(this.startContainer);if(j.isAncestorOf(a,this.startContainer,!0))throw new D("HIERARCHY_REQUEST_ERR");this.setStartBefore(f(a,this.startContainer,this.startOffset))},cloneContents:function(){w(this);
84
- var c,b;if(this.collapsed)return m(this).createDocumentFragment();if(this.startContainer===this.endContainer&&j.isCharacterDataNode(this.startContainer))return c=this.startContainer.cloneNode(!0),c.data=c.data.slice(this.startOffset,this.endOffset),b=m(this).createDocumentFragment(),b.appendChild(c),b;b=new a(this,!0);c=v(b);b.detach();return c},canSurroundContents:function(){w(this);z(this.startContainer);z(this.endContainer);var c=new a(this,!0),b=c._first&&q(c._first,this)||c._last&&q(c._last,
85
- this);c.detach();return!b},surroundContents:function(a){n(a,x);if(!this.canSurroundContents())throw new b("BAD_BOUNDARYPOINTS_ERR");var c=this.extractContents();if(a.hasChildNodes())for(;a.lastChild;)a.removeChild(a.lastChild);f(a,this.startContainer,this.startOffset);a.appendChild(c);this.selectNode(a)},cloneRange:function(){w(this);for(var a=new A(m(this)),c=U.length,b;c--;)b=U[c],a[b]=this[b];return a},toString:function(){w(this);var c=this.startContainer;if(c===this.endContainer&&j.isCharacterDataNode(c))return 3==
86
- c.nodeType||4==c.nodeType?c.data.slice(this.startOffset,this.endOffset):"";var b=[],c=new a(this,!0);p(c,function(a){(3==a.nodeType||4==a.nodeType)&&b.push(a.data)});c.detach();return b.join("")},compareNode:function(a){w(this);var c=a.parentNode,b=j.getNodeIndex(a);if(!c)throw new D("NOT_FOUND_ERR");a=this.comparePoint(c,b);c=this.comparePoint(c,b+1);return 0>a?0<c?Z:X:0<c?Y:S},comparePoint:function(a,c){w(this);y(a,"HIERARCHY_REQUEST_ERR");B(a,this.startContainer);return 0>j.comparePoints(a,c,this.startContainer,
87
- this.startOffset)?-1:0<j.comparePoints(a,c,this.endContainer,this.endOffset)?1:0},createContextualFragment:T?function(a){var c=this.startContainer,b=j.getDocument(c);if(!c)throw new D("INVALID_STATE_ERR");var d=null;1==c.nodeType?d=c:j.isCharacterDataNode(c)&&(d=j.parentElement(c));d=null===d||"HTML"==d.nodeName&&j.isHtmlNamespace(j.getDocument(d).documentElement)&&j.isHtmlNamespace(d)?b.createElement("body"):d.cloneNode(!1);d.innerHTML=a;return j.fragmentFromNodeChildren(d)}:function(a){h(this);
88
- var c=m(this).createElement("body");c.innerHTML=a;return j.fragmentFromNodeChildren(c)},toHtml:function(){w(this);var a=m(this).createElement("div");a.appendChild(this.cloneContents());return a.innerHTML},intersectsNode:function(a,c){w(this);y(a,"NOT_FOUND_ERR");if(j.getDocument(a)!==m(this))return!1;var b=a.parentNode,d=j.getNodeIndex(a);y(b,"NOT_FOUND_ERR");var e=j.comparePoints(b,d,this.endContainer,this.endOffset),b=j.comparePoints(b,d+1,this.startContainer,this.startOffset);return c?0>=e&&0<=
89
- b:0>e&&0<b},isPointInRange:function(a,c){w(this);y(a,"HIERARCHY_REQUEST_ERR");B(a,this.startContainer);return 0<=j.comparePoints(a,c,this.startContainer,this.startOffset)&&0>=j.comparePoints(a,c,this.endContainer,this.endOffset)},intersectsRange:function(a,c){w(this);if(m(a)!=m(this))throw new D("WRONG_DOCUMENT_ERR");var b=j.comparePoints(this.startContainer,this.startOffset,a.endContainer,a.endOffset),d=j.comparePoints(this.endContainer,this.endOffset,a.startContainer,a.startOffset);return c?0>=
90
- b&&0<=d:0>b&&0<d},intersection:function(a){if(this.intersectsRange(a)){var c=j.comparePoints(this.startContainer,this.startOffset,a.startContainer,a.startOffset),b=j.comparePoints(this.endContainer,this.endOffset,a.endContainer,a.endOffset),d=this.cloneRange();-1==c&&d.setStart(a.startContainer,a.startOffset);1==b&&d.setEnd(a.endContainer,a.endOffset);return d}return null},union:function(a){if(this.intersectsRange(a,!0)){var c=this.cloneRange();-1==j.comparePoints(a.startContainer,a.startOffset,this.startContainer,
91
- this.startOffset)&&c.setStart(a.startContainer,a.startOffset);1==j.comparePoints(a.endContainer,a.endOffset,this.endContainer,this.endOffset)&&c.setEnd(a.endContainer,a.endOffset);return c}throw new b("Ranges do not intersect");},containsNode:function(a,c){return c?this.intersectsNode(a,!1):this.compareNode(a)==S},containsNodeContents:function(a){return 0<=this.comparePoint(a,0)&&0>=this.comparePoint(a,j.getNodeLength(a))},containsRange:function(a){return this.intersection(a).equals(a)},containsNodeText:function(a){var c=
92
- this.cloneRange();c.selectNode(a);var b=c.getNodes([3]);return 0<b.length?(c.setStart(b[0],0),a=b.pop(),c.setEnd(a,a.length),a=this.containsRange(c),c.detach(),a):this.containsNodeContents(a)},createNodeIterator:function(a,b){w(this);return new c(this,a,b)},getNodes:function(a,c){w(this);return l(this,a,c)},getDocument:function(){return m(this)},collapseBefore:function(a){h(this);this.setEndBefore(a);this.collapse(!1)},collapseAfter:function(a){h(this);this.setStartAfter(a);this.collapse(!0)},getName:function(){return"DomRange"},
93
- equals:function(a){return A.rangesEqual(this,a)},isValid:function(){return F(this)},inspect:function(){return k(this)}};I(A,P,function(a){h(a);a.startContainer=a.startOffset=a.endContainer=a.endOffset=null;a.collapsed=a.commonAncestorContainer=null;t(a,"detach",null);a._listeners=null});d.rangePrototype=H.prototype;A.rangeProperties=U;A.RangeIterator=a;A.copyComparisonConstants=E;A.createPrototypeRange=I;A.inspect=k;A.getRangeDocument=m;A.rangesEqual=function(a,c){return a.startContainer===c.startContainer&&
94
- a.startOffset===c.startOffset&&a.endContainer===c.endContainer&&a.endOffset===c.endOffset};d.DomRange=A;d.RangeException=b});
95
- rangy.createModule("WrappedRange",function(d){function q(d,f,i,l){var k=d.duplicate();k.collapse(i);var a=k.parentElement();r.isAncestorOf(f,a,!0)||(a=f);if(!a.canHaveHTML)return new s(a.parentNode,r.getNodeIndex(a));var f=r.getDocument(a).createElement("span"),b,c=i?"StartToStart":"StartToEnd";do a.insertBefore(f,f.previousSibling),k.moveToElementText(f);while(0<(b=k.compareEndPoints(c,d))&&f.previousSibling);c=f.nextSibling;if(-1==b&&c&&r.isCharacterDataNode(c)){k.setEndPoint(i?"EndToStart":"EndToEnd",
96
- d);if(/[\r\n]/.test(c.data)){a=k.duplicate();i=a.text.replace(/\r\n/g,"\r").length;for(i=a.moveStart("character",i);-1==a.compareEndPoints("StartToEnd",a);)i++,a.moveStart("character",1)}else i=k.text.length;a=new s(c,i)}else c=(l||!i)&&f.previousSibling,a=(i=(l||i)&&f.nextSibling)&&r.isCharacterDataNode(i)?new s(i,0):c&&r.isCharacterDataNode(c)?new s(c,c.length):new s(a,r.getNodeIndex(f));f.parentNode.removeChild(f);return a}function m(d,f){var i,l,k=d.offset,a=r.getDocument(d.node),b=a.body.createTextRange(),
97
- c=r.isCharacterDataNode(d.node);c?(i=d.node,l=i.parentNode):(i=d.node.childNodes,i=k<i.length?i[k]:null,l=d.node);a=a.createElement("span");a.innerHTML="&#feff;";i?l.insertBefore(a,i):l.appendChild(a);b.moveToElementText(a);b.collapse(!f);l.removeChild(a);if(c)b[f?"moveStart":"moveEnd"]("character",k);return b}d.requireModules(["DomUtil","DomRange"]);var t,r=d.dom,s=r.DomPosition,f=d.DomRange;if(d.features.implementsDomRange&&(!d.features.implementsTextRange||!d.config.preferTextRange))(function(){function p(a){for(var b=
98
- i.length,d;b--;)d=i[b],a[d]=a.nativeRange[d]}var o,i=f.rangeProperties,l;t=function(a){if(!a)throw Error("Range must be specified");this.nativeRange=a;p(this)};f.createPrototypeRange(t,function(a,b,d,h,f){var p=a.endContainer!==h||a.endOffset!=f;if(a.startContainer!==b||a.startOffset!=d||p)a.setEnd(h,f),a.setStart(b,d)},function(a){a.nativeRange.detach();a.detached=!0;for(var b=i.length,d;b--;)d=i[b],a[d]=null});o=t.prototype;o.selectNode=function(a){this.nativeRange.selectNode(a);p(this)};o.deleteContents=
99
- function(){this.nativeRange.deleteContents();p(this)};o.extractContents=function(){var a=this.nativeRange.extractContents();p(this);return a};o.cloneContents=function(){return this.nativeRange.cloneContents()};o.surroundContents=function(a){this.nativeRange.surroundContents(a);p(this)};o.collapse=function(a){this.nativeRange.collapse(a);p(this)};o.cloneRange=function(){return new t(this.nativeRange.cloneRange())};o.refresh=function(){p(this)};o.toString=function(){return this.nativeRange.toString()};
100
- var k=document.createTextNode("test");r.getBody(document).appendChild(k);var a=document.createRange();a.setStart(k,0);a.setEnd(k,0);try{a.setStart(k,1),o.setStart=function(a,b){this.nativeRange.setStart(a,b);p(this)},o.setEnd=function(a,b){this.nativeRange.setEnd(a,b);p(this)},l=function(a){return function(b){this.nativeRange[a](b);p(this)}}}catch(b){o.setStart=function(a,b){try{this.nativeRange.setStart(a,b)}catch(d){this.nativeRange.setEnd(a,b),this.nativeRange.setStart(a,b)}p(this)},o.setEnd=function(a,
101
- b){try{this.nativeRange.setEnd(a,b)}catch(d){this.nativeRange.setStart(a,b),this.nativeRange.setEnd(a,b)}p(this)},l=function(a,b){return function(d){try{this.nativeRange[a](d)}catch(h){this.nativeRange[b](d),this.nativeRange[a](d)}p(this)}}}o.setStartBefore=l("setStartBefore","setEndBefore");o.setStartAfter=l("setStartAfter","setEndAfter");o.setEndBefore=l("setEndBefore","setStartBefore");o.setEndAfter=l("setEndAfter","setStartAfter");a.selectNodeContents(k);o.selectNodeContents=a.startContainer==
102
- k&&a.endContainer==k&&0==a.startOffset&&a.endOffset==k.length?function(a){this.nativeRange.selectNodeContents(a);p(this)}:function(a){this.setStart(a,0);this.setEnd(a,f.getEndOffset(a))};a.selectNodeContents(k);a.setEnd(k,3);l=document.createRange();l.selectNodeContents(k);l.setEnd(k,4);l.setStart(k,2);o.compareBoundaryPoints=-1==a.compareBoundaryPoints(a.START_TO_END,l)&1==a.compareBoundaryPoints(a.END_TO_START,l)?function(a,b){b=b.nativeRange||b;a==b.START_TO_END?a=b.END_TO_START:a==b.END_TO_START&&
103
- (a=b.START_TO_END);return this.nativeRange.compareBoundaryPoints(a,b)}:function(a,b){return this.nativeRange.compareBoundaryPoints(a,b.nativeRange||b)};d.util.isHostMethod(a,"createContextualFragment")&&(o.createContextualFragment=function(a){return this.nativeRange.createContextualFragment(a)});r.getBody(document).removeChild(k);a.detach();l.detach()})(),d.createNativeRange=function(d){return(d||document).createRange()};else if(d.features.implementsTextRange){t=function(d){this.textRange=d;this.refresh()};
104
- t.prototype=new f(document);t.prototype.refresh=function(){var d,f,i=this.textRange;d=i.parentElement();var l=i.duplicate();l.collapse(!0);f=l.parentElement();l=i.duplicate();l.collapse(!1);i=l.parentElement();f=f==i?f:r.getCommonAncestor(f,i);f=f==d?f:r.getCommonAncestor(d,f);0==this.textRange.compareEndPoints("StartToEnd",this.textRange)?f=d=q(this.textRange,f,!0,!0):(d=q(this.textRange,f,!0,!1),f=q(this.textRange,f,!1,!1));this.setStart(d.node,d.offset);this.setEnd(f.node,f.offset)};f.copyComparisonConstants(t);
105
- var v=function(){return this}();"undefined"==typeof v.Range&&(v.Range=t);d.createNativeRange=function(d){return(d||document).body.createTextRange()}}d.features.implementsTextRange&&(t.rangeToTextRange=function(d){if(d.collapsed)return m(new s(d.startContainer,d.startOffset),!0);var f=m(new s(d.startContainer,d.startOffset),!0),i=m(new s(d.endContainer,d.endOffset),!1),d=r.getDocument(d.startContainer).body.createTextRange();d.setEndPoint("StartToStart",f);d.setEndPoint("EndToEnd",i);return d});t.prototype.getName=
106
- function(){return"WrappedRange"};d.WrappedRange=t;d.createRange=function(f){return new t(d.createNativeRange(f||document))};d.createRangyRange=function(d){return new f(d||document)};d.createIframeRange=function(f){return d.createRange(r.getIframeDocument(f))};d.createIframeRangyRange=function(f){return d.createRangyRange(r.getIframeDocument(f))};d.addCreateMissingNativeApiListener(function(f){f=f.document;if(typeof f.createRange=="undefined")f.createRange=function(){return d.createRange(this)};f=
47
+ window.rangy=function(){function b(a,c){var b=typeof a[c];return b==q||!!(b==v&&a[c])||"unknown"==b}function r(a,c){return!!(typeof a[c]==v&&a[c])}function o(a,c){return typeof a[c]!=n}function u(a){return function(c,b){for(var d=b.length;d--;)if(!a(c,b[d]))return!1;return!0}}function s(c){return c&&h(c,p)&&a(c,g)}function t(a){window.alert("Rangy not supported in your browser. Reason: "+a);c.initialized=!0;c.supported=!1}function f(){if(!c.initialized){var l,i=!1,g=!1;b(document,"createRange")&&
48
+ (l=document.createRange(),h(l,m)&&a(l,j)&&(i=!0),l.detach());if((l=r(document,"body")?document.body:document.getElementsByTagName("body")[0])&&b(l,"createTextRange"))l=l.createTextRange(),s(l)&&(g=!0);!i&&!g&&t("Neither Range nor TextRange are implemented");c.initialized=!0;c.features={implementsDomRange:i,implementsTextRange:g};i=e.concat(d);g=0;for(l=i.length;g<l;++g)try{i[g](c)}catch(A){r(window,"console")&&b(window.console,"log")&&window.console.log("Init listener threw an exception. Continuing.",
49
+ A)}}}function w(a){this.name=a;this.supported=this.initialized=!1}var v="object",q="function",n="undefined",j="startContainer,startOffset,endContainer,endOffset,collapsed,commonAncestorContainer,START_TO_START,START_TO_END,END_TO_START,END_TO_END".split(","),m="setStart,setStartBefore,setStartAfter,setEnd,setEndBefore,setEndAfter,collapse,selectNode,selectNodeContents,compareBoundaryPoints,deleteContents,extractContents,cloneContents,insertNode,surroundContents,cloneRange,toString,detach".split(","),
50
+ g="boundingHeight,boundingLeft,boundingTop,boundingWidth,htmlText,text".split(","),p="collapse,compareEndPoints,duplicate,getBookmark,moveToBookmark,moveToElementText,parentElement,pasteHTML,select,setEndPoint,getBoundingClientRect".split(","),h=u(b),l=u(r),a=u(o),c={version:"1.2.3",initialized:!1,supported:!0,util:{isHostMethod:b,isHostObject:r,isHostProperty:o,areHostMethods:h,areHostObjects:l,areHostProperties:a,isTextRange:s},features:{},modules:{},config:{alertOnWarn:!1,preferTextRange:!1}};
51
+ c.fail=t;c.warn=function(a){a="Rangy warning: "+a;c.config.alertOnWarn?window.alert(a):typeof window.console!=n&&typeof window.console.log!=n&&window.console.log(a)};({}).hasOwnProperty?c.util.extend=function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])}:t("hasOwnProperty not supported");var d=[],e=[];c.init=f;c.addInitListener=function(a){c.initialized?a(c):d.push(a)};var i=[];c.addCreateMissingNativeApiListener=function(a){i.push(a)};c.createMissingNativeApi=function(a){a=a||window;f();
52
+ for(var c=0,b=i.length;c<b;++c)i[c](a)};w.prototype.fail=function(a){this.initialized=!0;this.supported=!1;throw Error("Module '"+this.name+"' failed to load: "+a);};w.prototype.warn=function(a){c.warn("Module "+this.name+": "+a)};w.prototype.createError=function(a){return Error("Error in Rangy "+this.name+" module: "+a)};c.createModule=function(a,b){var d=new w(a);c.modules[a]=d;e.push(function(a){b(a,d);d.initialized=!0;d.supported=!0})};c.requireModules=function(a){for(var b=0,d=a.length,e,l;b<
53
+ d;++b){l=a[b];e=c.modules[l];if(!e||!(e instanceof w))throw Error("Module '"+l+"' not found");if(!e.supported)throw Error("Module '"+l+"' not supported");}};var A=!1,l=function(){A||(A=!0,c.initialized||f())};if(typeof window==n)t("No window found");else if(typeof document==n)t("No document found");else return b(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",l,!1),b(window,"addEventListener")?window.addEventListener("load",l,!1):b(window,"attachEvent")?window.attachEvent("onload",
54
+ l):t("Window does not have required addEventListener or attachEvent method"),c}();
55
+ rangy.createModule("DomUtil",function(b,r){function o(b){for(var a=0;b=b.previousSibling;)a++;return a}function u(b,a){var c=[],d;for(d=b;d;d=d.parentNode)c.push(d);for(d=a;d;d=d.parentNode)if(h(c,d))return d;return null}function s(b,a,c){for(c=c?b:b.parentNode;c;){b=c.parentNode;if(b===a)return c;c=b}return null}function t(b){b=b.nodeType;return 3==b||4==b||8==b}function f(b,a){var c=a.nextSibling,d=a.parentNode;c?d.insertBefore(b,c):d.appendChild(b);return b}function w(b){if(9==b.nodeType)return b;
56
+ if(typeof b.ownerDocument!=m)return b.ownerDocument;if(typeof b.document!=m)return b.document;if(b.parentNode)return w(b.parentNode);throw Error("getDocument: no document found for node");}function v(b){return!b?"[No node]":t(b)?'"'+b.data+'"':1==b.nodeType?"<"+b.nodeName+(b.id?' id="'+b.id+'"':"")+">["+b.childNodes.length+"]":b.nodeName}function q(b){this._next=this.root=b}function n(b,a){this.node=b;this.offset=a}function j(b){this.code=this[b];this.codeName=b;this.message="DOMException: "+this.codeName}
57
+ var m="undefined",g=b.util;g.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||r.fail("document missing a Node creation method");g.isHostMethod(document,"getElementsByTagName")||r.fail("document missing getElementsByTagName method");var p=document.createElement("div");g.areHostMethods(p,["insertBefore","appendChild","cloneNode"])||r.fail("Incomplete Element implementation");g.isHostProperty(p,"innerHTML")||r.fail("Element is missing innerHTML property");p=document.createTextNode("test");
58
+ g.areHostMethods(p,["splitText","deleteData","insertData","appendData","cloneNode"])||r.fail("Incomplete Text Node implementation");var h=function(b,a){for(var c=b.length;c--;)if(b[c]===a)return!0;return!1};q.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var b=this._current=this._next,a;if(this._current){a=b.firstChild;if(!a)for(a=null;b!==this.root&&!(a=b.nextSibling);)b=b.parentNode;this._next=a}return this._current},detach:function(){this._current=this._next=this.root=
59
+ null}};n.prototype={equals:function(b){return this.node===b.node&this.offset==b.offset},inspect:function(){return"[DomPosition("+v(this.node)+":"+this.offset+")]"}};j.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11};j.prototype.toString=function(){return this.message};b.dom={arrayContains:h,isHtmlNamespace:function(b){var a;return typeof b.namespaceURI==m||null===(a=b.namespaceURI)||"http://www.w3.org/1999/xhtml"==
60
+ a},parentElement:function(b){b=b.parentNode;return 1==b.nodeType?b:null},getNodeIndex:o,getNodeLength:function(b){var a;return t(b)?b.length:(a=b.childNodes)?a.length:0},getCommonAncestor:u,isAncestorOf:function(b,a,c){for(a=c?a:a.parentNode;a;){if(a===b)return!0;a=a.parentNode}return!1},getClosestAncestorIn:s,isCharacterDataNode:t,insertAfter:f,splitDataNode:function(b,a){var c=b.cloneNode(!1);c.deleteData(0,a);b.deleteData(a,b.length-a);f(c,b);return c},getDocument:w,getWindow:function(b){b=w(b);
61
+ if(typeof b.defaultView!=m)return b.defaultView;if(typeof b.parentWindow!=m)return b.parentWindow;throw Error("Cannot get a window object for node");},getIframeWindow:function(b){if(typeof b.contentWindow!=m)return b.contentWindow;if(typeof b.contentDocument!=m)return b.contentDocument.defaultView;throw Error("getIframeWindow: No Window object found for iframe element");},getIframeDocument:function(b){if(typeof b.contentDocument!=m)return b.contentDocument;if(typeof b.contentWindow!=m)return b.contentWindow.document;
62
+ throw Error("getIframeWindow: No Document object found for iframe element");},getBody:function(b){return g.isHostObject(b,"body")?b.body:b.getElementsByTagName("body")[0]},getRootContainer:function(b){for(var a;a=b.parentNode;)b=a;return b},comparePoints:function(b,a,c,d){var e;if(b==c)return a===d?0:a<d?-1:1;if(e=s(c,b,!0))return a<=o(e)?-1:1;if(e=s(b,c,!0))return o(e)<d?-1:1;a=u(b,c);b=b===a?a:s(b,a,!0);c=c===a?a:s(c,a,!0);if(b===c)throw Error("comparePoints got to case 4 and childA and childB are the same!");
63
+ for(a=a.firstChild;a;){if(a===b)return-1;if(a===c)return 1;a=a.nextSibling}throw Error("Should not be here!");},inspectNode:v,fragmentFromNodeChildren:function(b){for(var a=w(b).createDocumentFragment(),c;c=b.firstChild;)a.appendChild(c);return a},createIterator:function(b){return new q(b)},DomPosition:n};b.DOMException=j});
64
+ rangy.createModule("DomRange",function(b){function r(a,b){return 3!=a.nodeType&&(k.isAncestorOf(a,b.startContainer,!0)||k.isAncestorOf(a,b.endContainer,!0))}function o(a){return k.getDocument(a.startContainer)}function u(a,b,c){if(b=a._listeners[b])for(var d=0,e=b.length;d<e;++d)b[d].call(a,{target:a,args:c})}function s(a){return new J(a.parentNode,k.getNodeIndex(a))}function t(a){return new J(a.parentNode,k.getNodeIndex(a)+1)}function f(a,b,c){var d=11==a.nodeType?a.firstChild:a;k.isCharacterDataNode(b)?
65
+ c==b.length?k.insertAfter(a,b):b.parentNode.insertBefore(a,0==c?b:k.splitDataNode(b,c)):c>=b.childNodes.length?b.appendChild(a):b.insertBefore(a,b.childNodes[c]);return d}function w(a){for(var b,c,d=o(a.range).createDocumentFragment();c=a.next();){b=a.isPartiallySelectedSubtree();c=c.cloneNode(!b);b&&(b=a.getSubtreeIterator(),c.appendChild(w(b)),b.detach(!0));if(10==c.nodeType)throw new C("HIERARCHY_REQUEST_ERR");d.appendChild(c)}return d}function v(a,b,c){for(var d,e,c=c||{stop:!1};d=a.next();)if(a.isPartiallySelectedSubtree())if(!1===
66
+ b(d)){c.stop=!0;break}else{if(d=a.getSubtreeIterator(),v(d,b,c),d.detach(!0),c.stop)break}else for(d=k.createIterator(d);e=d.next();)if(!1===b(e)){c.stop=!0;return}}function q(a){for(var b;a.next();)a.isPartiallySelectedSubtree()?(b=a.getSubtreeIterator(),q(b),b.detach(!0)):a.remove()}function n(a){for(var b,c=o(a.range).createDocumentFragment(),d;b=a.next();){a.isPartiallySelectedSubtree()?(b=b.cloneNode(!1),d=a.getSubtreeIterator(),b.appendChild(n(d)),d.detach(!0)):a.remove();if(10==b.nodeType)throw new C("HIERARCHY_REQUEST_ERR");
67
+ c.appendChild(b)}return c}function j(a,b,c){var d=!(!b||!b.length),e,x=!!c;d&&(e=RegExp("^("+b.join("|")+")$"));var i=[];v(new g(a,!1),function(a){(!d||e.test(a.nodeType))&&(!x||c(a))&&i.push(a)});return i}function m(a){return"["+("undefined"==typeof a.getName?"Range":a.getName())+"("+k.inspectNode(a.startContainer)+":"+a.startOffset+", "+k.inspectNode(a.endContainer)+":"+a.endOffset+")]"}function g(a,b){this.range=a;this.clonePartiallySelectedTextNodes=b;if(!a.collapsed){this.sc=a.startContainer;
68
+ this.so=a.startOffset;this.ec=a.endContainer;this.eo=a.endOffset;var c=a.commonAncestorContainer;this.sc===this.ec&&k.isCharacterDataNode(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc===c&&!k.isCharacterDataNode(this.sc)?this.sc.childNodes[this.so]:k.getClosestAncestorIn(this.sc,c,!0),this._last=this.ec===c&&!k.isCharacterDataNode(this.ec)?this.ec.childNodes[this.eo-1]:k.getClosestAncestorIn(this.ec,c,!0))}}function p(a){this.code=
69
+ this[a];this.codeName=a;this.message="RangeException: "+this.codeName}function h(a,b,c){this.nodes=j(a,b,c);this._next=this.nodes[0];this._position=0}function l(a){return function(b,c){for(var d,e=c?b:b.parentNode;e;){d=e.nodeType;if(k.arrayContains(a,d))return e;e=e.parentNode}return null}}function a(a,b){if(aa(a,b))throw new p("INVALID_NODE_TYPE_ERR");}function c(a){if(!a.startContainer)throw new C("INVALID_STATE_ERR");}function d(a,b){if(!k.arrayContains(b,a.nodeType))throw new p("INVALID_NODE_TYPE_ERR");
70
+ }function e(a,b){if(0>b||b>(k.isCharacterDataNode(a)?a.length:a.childNodes.length))throw new C("INDEX_SIZE_ERR");}function i(a,b){if(Q(a,!0)!==Q(b,!0))throw new C("WRONG_DOCUMENT_ERR");}function A(a){if(ba(a,!0))throw new C("NO_MODIFICATION_ALLOWED_ERR");}function y(a,b){if(!a)throw new C(b);}function F(a){return!!a.startContainer&&!!a.endContainer&&!(!k.arrayContains(M,a.startContainer.nodeType)&&!Q(a.startContainer,!0))&&!(!k.arrayContains(M,a.endContainer.nodeType)&&!Q(a.endContainer,!0))&&a.startOffset<=
71
+ (k.isCharacterDataNode(a.startContainer)?a.startContainer.length:a.startContainer.childNodes.length)&&a.endOffset<=(k.isCharacterDataNode(a.endContainer)?a.endContainer.length:a.endContainer.childNodes.length)}function z(a){c(a);if(!F(a))throw Error("Range error: Range is no longer valid after DOM mutation ("+a.inspect()+")");}function I(){}function G(a){a.START_TO_START=R;a.START_TO_END=V;a.END_TO_END=ca;a.END_TO_START=W;a.NODE_BEFORE=X;a.NODE_AFTER=Y;a.NODE_BEFORE_AND_AFTER=Z;a.NODE_INSIDE=S}function D(a){G(a);
72
+ G(a.prototype)}function E(a,b){return function(){z(this);var c=this.startContainer,d=this.startOffset,e=this.commonAncestorContainer,x=new g(this,!0);c!==e&&(c=k.getClosestAncestorIn(c,e,!0),d=t(c),c=d.node,d=d.offset);v(x,A);x.reset();e=a(x);x.detach();b(this,c,d,c,d);return e}}function H(x,i,h){function H(a,b){return function(e){c(this);d(e,K);d(O(e),M);e=(a?s:t)(e);(b?l:f)(this,e.node,e.offset)}}function l(a,b,c){var d=a.endContainer,e=a.endOffset;if(b!==a.startContainer||c!==a.startOffset){if(O(b)!=
73
+ O(d)||1==k.comparePoints(b,c,d,e))d=b,e=c;i(a,b,c,d,e)}}function f(a,b,c){var d=a.startContainer,e=a.startOffset;if(b!==a.endContainer||c!==a.endOffset){if(O(b)!=O(d)||-1==k.comparePoints(b,c,d,e))d=b,e=c;i(a,d,e,b,c)}}x.prototype=new I;b.util.extend(x.prototype,{setStart:function(b,d){c(this);a(b,!0);e(b,d);l(this,b,d)},setEnd:function(b,d){c(this);a(b,!0);e(b,d);f(this,b,d)},setStartBefore:H(!0,!0),setStartAfter:H(!1,!0),setEndBefore:H(!0,!1),setEndAfter:H(!1,!1),collapse:function(a){z(this);a?
74
+ i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(b){c(this);a(b,!0);i(this,b,0,b,k.getNodeLength(b))},selectNode:function(b){c(this);a(b,!1);d(b,K);var e=s(b),b=t(b);i(this,e.node,e.offset,b.node,b.offset)},extractContents:E(n,i),deleteContents:E(q,i),canSurroundContents:function(){z(this);A(this.startContainer);A(this.endContainer);var a=new g(this,!0),b=a._first&&
75
+ r(a._first,this)||a._last&&r(a._last,this);a.detach();return!b},detach:function(){h(this)},splitBoundaries:function(){z(this);var a=this.startContainer,b=this.startOffset,c=this.endContainer,d=this.endOffset,e=a===c;k.isCharacterDataNode(c)&&0<d&&d<c.length&&k.splitDataNode(c,d);k.isCharacterDataNode(a)&&0<b&&b<a.length&&(a=k.splitDataNode(a,b),e?(d-=b,c=a):c==a.parentNode&&d>=k.getNodeIndex(a)&&d++,b=0);i(this,a,b,c,d)},normalizeBoundaries:function(){z(this);var a=this.startContainer,b=this.startOffset,
76
+ c=this.endContainer,d=this.endOffset,e=function(a){var b=a.nextSibling;b&&b.nodeType==a.nodeType&&(c=a,d=a.length,a.appendData(b.data),b.parentNode.removeChild(b))},x=function(e){var x=e.previousSibling;if(x&&x.nodeType==e.nodeType){a=e;var i=e.length;b=x.length;e.insertData(0,x.data);x.parentNode.removeChild(x);a==c?(d+=b,c=a):c==e.parentNode&&(x=k.getNodeIndex(e),d==x?(c=e,d=i):d>x&&d--)}},h=!0;k.isCharacterDataNode(c)?c.length==d&&e(c):(0<d&&(h=c.childNodes[d-1])&&k.isCharacterDataNode(h)&&e(h),
77
+ h=!this.collapsed);h?k.isCharacterDataNode(a)?0==b&&x(a):b<a.childNodes.length&&(e=a.childNodes[b])&&k.isCharacterDataNode(e)&&x(e):(a=c,b=d);i(this,a,b,c,d)},collapseToPoint:function(b,d){c(this);a(b,!0);e(b,d);(b!==this.startContainer||d!==this.startOffset||b!==this.endContainer||d!==this.endOffset)&&i(this,b,d,b,d)}});D(x)}function N(a){a.collapsed=a.startContainer===a.endContainer&&a.startOffset===a.endOffset;a.commonAncestorContainer=a.collapsed?a.startContainer:k.getCommonAncestor(a.startContainer,
78
+ a.endContainer)}function P(a,b,c,d,e){var x=a.startContainer!==b||a.startOffset!==c,i=a.endContainer!==d||a.endOffset!==e;a.startContainer=b;a.startOffset=c;a.endContainer=d;a.endOffset=e;N(a);u(a,"boundarychange",{startMoved:x,endMoved:i})}function B(a){this.startContainer=a;this.startOffset=0;this.endContainer=a;this.endOffset=0;this._listeners={boundarychange:[],detach:[]};N(this)}b.requireModules(["DomUtil"]);var k=b.dom,J=k.DomPosition,C=b.DOMException;g.prototype={_current:null,_next:null,_first:null,
79
+ _last:null,isSingleCharacterDataNode:!1,reset:function(){this._current=null;this._next=this._first},hasNext:function(){return!!this._next},next:function(){var a=this._current=this._next;a&&(this._next=a!==this._last?a.nextSibling:null,k.isCharacterDataNode(a)&&this.clonePartiallySelectedTextNodes&&(a===this.ec&&(a=a.cloneNode(!0)).deleteData(this.eo,a.length-this.eo),this._current===this.sc&&(a=a.cloneNode(!0)).deleteData(0,this.so)));return a},remove:function(){var a=this._current,b,c;k.isCharacterDataNode(a)&&
80
+ (a===this.sc||a===this.ec)?(b=a===this.sc?this.so:0,c=a===this.ec?this.eo:a.length,b!=c&&a.deleteData(b,c-b)):a.parentNode&&a.parentNode.removeChild(a)},isPartiallySelectedSubtree:function(){return r(this._current,this.range)},getSubtreeIterator:function(){var a;if(this.isSingleCharacterDataNode)a=this.range.cloneRange(),a.collapse();else{a=new B(o(this.range));var b=this._current,c=b,d=0,e=b,x=k.getNodeLength(b);k.isAncestorOf(b,this.sc,!0)&&(c=this.sc,d=this.so);k.isAncestorOf(b,this.ec,!0)&&(e=
81
+ this.ec,x=this.eo);P(a,c,d,e,x)}return new g(a,this.clonePartiallySelectedTextNodes)},detach:function(a){a&&this.range.detach();this.range=this._current=this._next=this._first=this._last=this.sc=this.so=this.ec=this.eo=null}};p.prototype={BAD_BOUNDARYPOINTS_ERR:1,INVALID_NODE_TYPE_ERR:2};p.prototype.toString=function(){return this.message};h.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){this._current=this._next;this._next=this.nodes[++this._position];return this._current},
82
+ detach:function(){this._current=this._next=this.nodes=null}};var K=[1,3,4,5,7,8,10],M=[2,9,11],L=[1,3,4,5,7,8,10,11],x=[1,3,4,5,7,8],O=k.getRootContainer,Q=l([9,11]),ba=l([5,6,10,12]),aa=l([6,10,12]),$=document.createElement("style"),T=!1;try{$.innerHTML="<b>x</b>",T=3==$.firstChild.nodeType}catch(da){}b.features.htmlParsingConforms=T;var U="startContainer,startOffset,endContainer,endOffset,collapsed,commonAncestorContainer".split(","),R=0,V=1,ca=2,W=3,X=0,Y=1,Z=2,S=3;I.prototype={attachListener:function(a,
83
+ b){this._listeners[a].push(b)},compareBoundaryPoints:function(a,b){z(this);i(this.startContainer,b.startContainer);var c=a==W||a==R?"start":"end",d=a==V||a==R?"start":"end";return k.comparePoints(this[c+"Container"],this[c+"Offset"],b[d+"Container"],b[d+"Offset"])},insertNode:function(a){z(this);d(a,L);A(this.startContainer);if(k.isAncestorOf(a,this.startContainer,!0))throw new C("HIERARCHY_REQUEST_ERR");this.setStartBefore(f(a,this.startContainer,this.startOffset))},cloneContents:function(){z(this);
84
+ var a,b;if(this.collapsed)return o(this).createDocumentFragment();if(this.startContainer===this.endContainer&&k.isCharacterDataNode(this.startContainer))return a=this.startContainer.cloneNode(!0),a.data=a.data.slice(this.startOffset,this.endOffset),b=o(this).createDocumentFragment(),b.appendChild(a),b;b=new g(this,!0);a=w(b);b.detach();return a},canSurroundContents:function(){z(this);A(this.startContainer);A(this.endContainer);var a=new g(this,!0),b=a._first&&r(a._first,this)||a._last&&r(a._last,
85
+ this);a.detach();return!b},surroundContents:function(a){d(a,x);if(!this.canSurroundContents())throw new p("BAD_BOUNDARYPOINTS_ERR");var b=this.extractContents();if(a.hasChildNodes())for(;a.lastChild;)a.removeChild(a.lastChild);f(a,this.startContainer,this.startOffset);a.appendChild(b);this.selectNode(a)},cloneRange:function(){z(this);for(var a=new B(o(this)),b=U.length,c;b--;)c=U[b],a[c]=this[c];return a},toString:function(){z(this);var a=this.startContainer;if(a===this.endContainer&&k.isCharacterDataNode(a))return 3==
86
+ a.nodeType||4==a.nodeType?a.data.slice(this.startOffset,this.endOffset):"";var b=[],a=new g(this,!0);v(a,function(a){(3==a.nodeType||4==a.nodeType)&&b.push(a.data)});a.detach();return b.join("")},compareNode:function(a){z(this);var b=a.parentNode,c=k.getNodeIndex(a);if(!b)throw new C("NOT_FOUND_ERR");a=this.comparePoint(b,c);b=this.comparePoint(b,c+1);return 0>a?0<b?Z:X:0<b?Y:S},comparePoint:function(a,b){z(this);y(a,"HIERARCHY_REQUEST_ERR");i(a,this.startContainer);return 0>k.comparePoints(a,b,this.startContainer,
87
+ this.startOffset)?-1:0<k.comparePoints(a,b,this.endContainer,this.endOffset)?1:0},createContextualFragment:T?function(a){var b=this.startContainer,c=k.getDocument(b);if(!b)throw new C("INVALID_STATE_ERR");var d=null;1==b.nodeType?d=b:k.isCharacterDataNode(b)&&(d=k.parentElement(b));d=null===d||"HTML"==d.nodeName&&k.isHtmlNamespace(k.getDocument(d).documentElement)&&k.isHtmlNamespace(d)?c.createElement("body"):d.cloneNode(!1);d.innerHTML=a;return k.fragmentFromNodeChildren(d)}:function(a){c(this);
88
+ var b=o(this).createElement("body");b.innerHTML=a;return k.fragmentFromNodeChildren(b)},toHtml:function(){z(this);var a=o(this).createElement("div");a.appendChild(this.cloneContents());return a.innerHTML},intersectsNode:function(a,b){z(this);y(a,"NOT_FOUND_ERR");if(k.getDocument(a)!==o(this))return!1;var c=a.parentNode,d=k.getNodeIndex(a);y(c,"NOT_FOUND_ERR");var e=k.comparePoints(c,d,this.endContainer,this.endOffset),c=k.comparePoints(c,d+1,this.startContainer,this.startOffset);return b?0>=e&&0<=
89
+ c:0>e&&0<c},isPointInRange:function(a,b){z(this);y(a,"HIERARCHY_REQUEST_ERR");i(a,this.startContainer);return 0<=k.comparePoints(a,b,this.startContainer,this.startOffset)&&0>=k.comparePoints(a,b,this.endContainer,this.endOffset)},intersectsRange:function(a,b){z(this);if(o(a)!=o(this))throw new C("WRONG_DOCUMENT_ERR");var c=k.comparePoints(this.startContainer,this.startOffset,a.endContainer,a.endOffset),d=k.comparePoints(this.endContainer,this.endOffset,a.startContainer,a.startOffset);return b?0>=
90
+ c&&0<=d:0>c&&0<d},intersection:function(a){if(this.intersectsRange(a)){var b=k.comparePoints(this.startContainer,this.startOffset,a.startContainer,a.startOffset),c=k.comparePoints(this.endContainer,this.endOffset,a.endContainer,a.endOffset),d=this.cloneRange();-1==b&&d.setStart(a.startContainer,a.startOffset);1==c&&d.setEnd(a.endContainer,a.endOffset);return d}return null},union:function(a){if(this.intersectsRange(a,!0)){var b=this.cloneRange();-1==k.comparePoints(a.startContainer,a.startOffset,this.startContainer,
91
+ this.startOffset)&&b.setStart(a.startContainer,a.startOffset);1==k.comparePoints(a.endContainer,a.endOffset,this.endContainer,this.endOffset)&&b.setEnd(a.endContainer,a.endOffset);return b}throw new p("Ranges do not intersect");},containsNode:function(a,b){return b?this.intersectsNode(a,!1):this.compareNode(a)==S},containsNodeContents:function(a){return 0<=this.comparePoint(a,0)&&0>=this.comparePoint(a,k.getNodeLength(a))},containsRange:function(a){return this.intersection(a).equals(a)},containsNodeText:function(a){var b=
92
+ this.cloneRange();b.selectNode(a);var c=b.getNodes([3]);return 0<c.length?(b.setStart(c[0],0),a=c.pop(),b.setEnd(a,a.length),a=this.containsRange(b),b.detach(),a):this.containsNodeContents(a)},createNodeIterator:function(a,b){z(this);return new h(this,a,b)},getNodes:function(a,b){z(this);return j(this,a,b)},getDocument:function(){return o(this)},collapseBefore:function(a){c(this);this.setEndBefore(a);this.collapse(!1)},collapseAfter:function(a){c(this);this.setStartAfter(a);this.collapse(!0)},getName:function(){return"DomRange"},
93
+ equals:function(a){return B.rangesEqual(this,a)},isValid:function(){return F(this)},inspect:function(){return m(this)}};H(B,P,function(a){c(a);a.startContainer=a.startOffset=a.endContainer=a.endOffset=null;a.collapsed=a.commonAncestorContainer=null;u(a,"detach",null);a._listeners=null});b.rangePrototype=I.prototype;B.rangeProperties=U;B.RangeIterator=g;B.copyComparisonConstants=D;B.createPrototypeRange=H;B.inspect=m;B.getRangeDocument=o;B.rangesEqual=function(a,b){return a.startContainer===b.startContainer&&
94
+ a.startOffset===b.startOffset&&a.endContainer===b.endContainer&&a.endOffset===b.endOffset};b.DomRange=B;b.RangeException=p});
95
+ rangy.createModule("WrappedRange",function(b){function r(b,f,n,j){var m=b.duplicate();m.collapse(n);var g=m.parentElement();s.isAncestorOf(f,g,!0)||(g=f);if(!g.canHaveHTML)return new t(g.parentNode,s.getNodeIndex(g));var f=s.getDocument(g).createElement("span"),p,h=n?"StartToStart":"StartToEnd";do g.insertBefore(f,f.previousSibling),m.moveToElementText(f);while(0<(p=m.compareEndPoints(h,b))&&f.previousSibling);h=f.nextSibling;if(-1==p&&h&&s.isCharacterDataNode(h)){m.setEndPoint(n?"EndToStart":"EndToEnd",
96
+ b);if(/[\r\n]/.test(h.data)){g=m.duplicate();n=g.text.replace(/\r\n/g,"\r").length;for(n=g.moveStart("character",n);-1==g.compareEndPoints("StartToEnd",g);)n++,g.moveStart("character",1)}else n=m.text.length;g=new t(h,n)}else h=(j||!n)&&f.previousSibling,g=(n=(j||n)&&f.nextSibling)&&s.isCharacterDataNode(n)?new t(n,0):h&&s.isCharacterDataNode(h)?new t(h,h.length):new t(g,s.getNodeIndex(f));f.parentNode.removeChild(f);return g}function o(b,f){var n,j,m=b.offset,g=s.getDocument(b.node),p=g.body.createTextRange(),
97
+ h=s.isCharacterDataNode(b.node);h?(n=b.node,j=n.parentNode):(n=b.node.childNodes,n=m<n.length?n[m]:null,j=b.node);g=g.createElement("span");g.innerHTML="&#feff;";n?j.insertBefore(g,n):j.appendChild(g);p.moveToElementText(g);p.collapse(!f);j.removeChild(g);if(h)p[f?"moveStart":"moveEnd"]("character",m);return p}b.requireModules(["DomUtil","DomRange"]);var u,s=b.dom,t=s.DomPosition,f=b.DomRange;if(b.features.implementsDomRange&&(!b.features.implementsTextRange||!b.config.preferTextRange))(function(){function v(b){for(var g=
98
+ n.length,a;g--;)a=n[g],b[a]=b.nativeRange[a]}var q,n=f.rangeProperties,j;u=function(b){if(!b)throw Error("Range must be specified");this.nativeRange=b;v(this)};f.createPrototypeRange(u,function(b,g,a,c,d){var e=b.endContainer!==c||b.endOffset!=d;if(b.startContainer!==g||b.startOffset!=a||e)b.setEnd(c,d),b.setStart(g,a)},function(b){b.nativeRange.detach();b.detached=!0;for(var g=n.length,a;g--;)a=n[g],b[a]=null});q=u.prototype;q.selectNode=function(b){this.nativeRange.selectNode(b);v(this)};q.deleteContents=
99
+ function(){this.nativeRange.deleteContents();v(this)};q.extractContents=function(){var b=this.nativeRange.extractContents();v(this);return b};q.cloneContents=function(){return this.nativeRange.cloneContents()};q.surroundContents=function(b){this.nativeRange.surroundContents(b);v(this)};q.collapse=function(b){this.nativeRange.collapse(b);v(this)};q.cloneRange=function(){return new u(this.nativeRange.cloneRange())};q.refresh=function(){v(this)};q.toString=function(){return this.nativeRange.toString()};
100
+ var m=document.createTextNode("test");s.getBody(document).appendChild(m);var g=document.createRange();g.setStart(m,0);g.setEnd(m,0);try{g.setStart(m,1),q.setStart=function(b,g){this.nativeRange.setStart(b,g);v(this)},q.setEnd=function(b,g){this.nativeRange.setEnd(b,g);v(this)},j=function(b){return function(g){this.nativeRange[b](g);v(this)}}}catch(p){q.setStart=function(b,g){try{this.nativeRange.setStart(b,g)}catch(a){this.nativeRange.setEnd(b,g),this.nativeRange.setStart(b,g)}v(this)},q.setEnd=function(b,
101
+ g){try{this.nativeRange.setEnd(b,g)}catch(a){this.nativeRange.setStart(b,g),this.nativeRange.setEnd(b,g)}v(this)},j=function(b,g){return function(a){try{this.nativeRange[b](a)}catch(c){this.nativeRange[g](a),this.nativeRange[b](a)}v(this)}}}q.setStartBefore=j("setStartBefore","setEndBefore");q.setStartAfter=j("setStartAfter","setEndAfter");q.setEndBefore=j("setEndBefore","setStartBefore");q.setEndAfter=j("setEndAfter","setStartAfter");g.selectNodeContents(m);q.selectNodeContents=g.startContainer==
102
+ m&&g.endContainer==m&&0==g.startOffset&&g.endOffset==m.length?function(b){this.nativeRange.selectNodeContents(b);v(this)}:function(b){this.setStart(b,0);this.setEnd(b,f.getEndOffset(b))};g.selectNodeContents(m);g.setEnd(m,3);j=document.createRange();j.selectNodeContents(m);j.setEnd(m,4);j.setStart(m,2);q.compareBoundaryPoints=-1==g.compareBoundaryPoints(g.START_TO_END,j)&1==g.compareBoundaryPoints(g.END_TO_START,j)?function(b,g){g=g.nativeRange||g;b==g.START_TO_END?b=g.END_TO_START:b==g.END_TO_START&&
103
+ (b=g.START_TO_END);return this.nativeRange.compareBoundaryPoints(b,g)}:function(b,g){return this.nativeRange.compareBoundaryPoints(b,g.nativeRange||g)};b.util.isHostMethod(g,"createContextualFragment")&&(q.createContextualFragment=function(b){return this.nativeRange.createContextualFragment(b)});s.getBody(document).removeChild(m);g.detach();j.detach()})(),b.createNativeRange=function(b){return(b||document).createRange()};else if(b.features.implementsTextRange){u=function(b){this.textRange=b;this.refresh()};
104
+ u.prototype=new f(document);u.prototype.refresh=function(){var b,f,n=this.textRange;b=n.parentElement();var j=n.duplicate();j.collapse(!0);f=j.parentElement();j=n.duplicate();j.collapse(!1);n=j.parentElement();f=f==n?f:s.getCommonAncestor(f,n);f=f==b?f:s.getCommonAncestor(b,f);0==this.textRange.compareEndPoints("StartToEnd",this.textRange)?f=b=r(this.textRange,f,!0,!0):(b=r(this.textRange,f,!0,!1),f=r(this.textRange,f,!1,!1));this.setStart(b.node,b.offset);this.setEnd(f.node,f.offset)};f.copyComparisonConstants(u);
105
+ var w=function(){return this}();"undefined"==typeof w.Range&&(w.Range=u);b.createNativeRange=function(b){return(b||document).body.createTextRange()}}b.features.implementsTextRange&&(u.rangeToTextRange=function(b){if(b.collapsed)return o(new t(b.startContainer,b.startOffset),!0);var f=o(new t(b.startContainer,b.startOffset),!0),n=o(new t(b.endContainer,b.endOffset),!1),b=s.getDocument(b.startContainer).body.createTextRange();b.setEndPoint("StartToStart",f);b.setEndPoint("EndToEnd",n);return b});u.prototype.getName=
106
+ function(){return"WrappedRange"};b.WrappedRange=u;b.createRange=function(f){return new u(b.createNativeRange(f||document))};b.createRangyRange=function(b){return new f(b||document)};b.createIframeRange=function(f){return b.createRange(s.getIframeDocument(f))};b.createIframeRangyRange=function(f){return b.createRangyRange(s.getIframeDocument(f))};b.addCreateMissingNativeApiListener(function(f){f=f.document;if(typeof f.createRange=="undefined")f.createRange=function(){return b.createRange(this)};f=
107
107
  f=null})});
108
- rangy.createModule("WrappedSelection",function(d,q){function m(a){return(a||window).getSelection()}function t(a){return(a||window).document.selection}function r(a,c,b){var d=b?"end":"start",b=b?"start":"end";a.anchorNode=c[d+"Container"];a.anchorOffset=c[d+"Offset"];a.focusNode=c[b+"Container"];a.focusOffset=c[b+"Offset"]}function s(a){a.anchorNode=a.focusNode=null;a.anchorOffset=a.focusOffset=0;a.rangeCount=0;a.isCollapsed=!0;a._ranges.length=0}function f(a){var b;a instanceof g?(b=a._selectionNativeRange,b||
109
- (b=d.createNativeRange(c.getDocument(a.startContainer)),b.setEnd(a.endContainer,a.endOffset),b.setStart(a.startContainer,a.startOffset),a._selectionNativeRange=b,a.attachListener("detach",function(){this._selectionNativeRange=null}))):a instanceof h?b=a.nativeRange:d.features.implementsDomRange&&a instanceof c.getWindow(a.startContainer).Range&&(b=a);return b}function v(a){var b=a.getNodes(),d;a:if(!b.length||1!=b[0].nodeType)d=!1;else{d=1;for(var e=b.length;d<e;++d)if(!c.isAncestorOf(b[0],b[d])){d=
110
- !1;break a}d=!0}if(!d)throw Error("getSingleElementFromRange: range "+a.inspect()+" did not consist of a single element");return b[0]}function p(a,c){var b=new h(c);a._ranges=[b];r(a,b,!1);a.rangeCount=1;a.isCollapsed=b.collapsed}function o(a){a._ranges.length=0;if("None"==a.docSelection.type)s(a);else{var b=a.docSelection.createRange();if(b&&"undefined"!=typeof b.text)p(a,b);else{a.rangeCount=b.length;for(var e,g=c.getDocument(b.item(0)),u=0;u<a.rangeCount;++u)e=d.createRange(g),e.selectNode(b.item(u)),
111
- a._ranges.push(e);a.isCollapsed=1==a.rangeCount&&a._ranges[0].collapsed;r(a,a._ranges[a.rangeCount-1],!1)}}}function i(a,b){for(var d=a.docSelection.createRange(),e=v(b),g=c.getDocument(d.item(0)),g=c.getBody(g).createControlRange(),u=0,h=d.length;u<h;++u)g.add(d.item(u));try{g.add(e)}catch(f){throw Error("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)");}g.select();o(a)}function l(a,c,b){this.nativeSelection=a;this.docSelection=c;this._ranges=
112
- [];this.win=b;this.refresh()}function k(a,b){for(var d=c.getDocument(b[0].startContainer),d=c.getBody(d).createControlRange(),e=0,g;e<rangeCount;++e){g=v(b[e]);try{d.add(g)}catch(u){throw Error("setRanges(): Element within the one of the specified Ranges could not be added to control selection (does it have layout?)");}}d.select();o(a)}function a(a,b){if(a.anchorNode&&c.getDocument(a.anchorNode)!==c.getDocument(b))throw new n("WRONG_DOCUMENT_ERR");}function b(a){var c=[],b=new C(a.anchorNode,a.anchorOffset),
113
- d=new C(a.focusNode,a.focusOffset),e="function"==typeof a.getName?a.getName():"Selection";if("undefined"!=typeof a.rangeCount)for(var u=0,h=a.rangeCount;u<h;++u)c[u]=g.inspect(a.getRangeAt(u));return"["+e+"(Ranges: "+c.join(", ")+")(anchor: "+b.inspect()+", focus: "+d.inspect()+"]"}d.requireModules(["DomUtil","DomRange","WrappedRange"]);d.config.checkSelectionRanges=!0;var c=d.dom,e=d.util,g=d.DomRange,h=d.WrappedRange,n=d.DOMException,C=c.DomPosition,B,z,y=d.util.isHostMethod(window,"getSelection"),
114
- F=d.util.isHostObject(document,"selection"),w=F&&(!y||d.config.preferTextRange);w?(B=t,d.isSelectionValid=function(a){var a=(a||window).document,b=a.selection;return"None"!=b.type||c.getDocument(b.createRange().parentElement())==a}):y?(B=m,d.isSelectionValid=function(){return!0}):q.fail("Neither document.selection or window.getSelection() detected.");d.getNativeSelection=B;var y=B(),H=d.createNativeRange(document),G=c.getBody(document),E=e.areHostObjects(y,e.areHostProperties(y,["anchorOffset","focusOffset"]));
115
- d.features.selectionHasAnchorAndFocus=E;var u=e.isHostMethod(y,"extend");d.features.selectionHasExtend=u;var I="number"==typeof y.rangeCount;d.features.selectionHasRangeCount=I;var N=!1,P=!0;e.areHostMethods(y,["addRange","getRangeAt","removeAllRanges"])&&"number"==typeof y.rangeCount&&d.features.implementsDomRange&&function(){var a=document.createElement("iframe");a.frameBorder=0;a.style.position="absolute";a.style.left="-10000px";G.appendChild(a);var b=c.getIframeDocument(a);b.open();b.write("<html><head></head><body>12</body></html>");
116
- b.close();var d=c.getIframeWindow(a).getSelection(),e=b.documentElement.lastChild.firstChild,b=b.createRange();b.setStart(e,1);b.collapse(true);d.addRange(b);P=d.rangeCount==1;d.removeAllRanges();var g=b.cloneRange();b.setStart(e,0);g.setEnd(e,2);d.addRange(b);d.addRange(g);N=d.rangeCount==2;b.detach();g.detach();G.removeChild(a)}();d.features.selectionSupportsMultipleRanges=N;d.features.collapsedNonEditableSelectionsSupported=P;var A=!1,j;G&&e.isHostMethod(G,"createControlRange")&&(j=G.createControlRange(),
117
- e.areHostProperties(j,["item","add"])&&(A=!0));d.features.implementsControlRange=A;z=E?function(a){return a.anchorNode===a.focusNode&&a.anchorOffset===a.focusOffset}:function(a){return a.rangeCount?a.getRangeAt(a.rangeCount-1).collapsed:false};var J;e.isHostMethod(y,"getRangeAt")?J=function(a,b){try{return a.getRangeAt(b)}catch(c){return null}}:E&&(J=function(a){var b=c.getDocument(a.anchorNode),b=d.createRange(b);b.setStart(a.anchorNode,a.anchorOffset);b.setEnd(a.focusNode,a.focusOffset);if(b.collapsed!==
118
- this.isCollapsed){b.setStart(a.focusNode,a.focusOffset);b.setEnd(a.anchorNode,a.anchorOffset)}return b});d.getSelection=function(a){var a=a||window,b=a._rangySelection,c=B(a),d=F?t(a):null;if(b){b.nativeSelection=c;b.docSelection=d;b.refresh(a)}else{b=new l(c,d,a);a._rangySelection=b}return b};d.getIframeSelection=function(a){return d.getSelection(c.getIframeWindow(a))};j=l.prototype;if(!w&&E&&e.areHostMethods(y,["removeAllRanges","addRange"])){j.removeAllRanges=function(){this.nativeSelection.removeAllRanges();
119
- s(this)};var D=function(a,b){var c=g.getRangeDocument(b),c=d.createRange(c);c.collapseToPoint(b.endContainer,b.endOffset);a.nativeSelection.addRange(f(c));a.nativeSelection.extend(b.startContainer,b.startOffset);a.refresh()};j.addRange=I?function(a,b){if(A&&F&&this.docSelection.type=="Control")i(this,a);else if(b&&u)D(this,a);else{var c;if(N)c=this.rangeCount;else{this.removeAllRanges();c=0}this.nativeSelection.addRange(f(a));this.rangeCount=this.nativeSelection.rangeCount;if(this.rangeCount==c+1){if(d.config.checkSelectionRanges)(c=
120
- J(this.nativeSelection,this.rangeCount-1))&&!g.rangesEqual(c,a)&&(a=new h(c));this._ranges[this.rangeCount-1]=a;r(this,a,L(this.nativeSelection));this.isCollapsed=z(this)}else this.refresh()}}:function(a,b){if(b&&u)D(this,a);else{this.nativeSelection.addRange(f(a));this.refresh()}};j.setRanges=function(a){if(A&&a.length>1)k(this,a);else{this.removeAllRanges();for(var b=0,c=a.length;b<c;++b)this.addRange(a[b])}}}else if(e.isHostMethod(y,"empty")&&e.isHostMethod(H,"select")&&A&&w)j.removeAllRanges=
121
- function(){try{this.docSelection.empty();if(this.docSelection.type!="None"){var a;if(this.anchorNode)a=c.getDocument(this.anchorNode);else if(this.docSelection.type=="Control"){var b=this.docSelection.createRange();b.length&&(a=c.getDocument(b.item(0)).body.createTextRange())}if(a){a.body.createTextRange().select();this.docSelection.empty()}}}catch(d){}s(this)},j.addRange=function(a){if(this.docSelection.type=="Control")i(this,a);else{h.rangeToTextRange(a).select();this._ranges[0]=a;this.rangeCount=
122
- 1;this.isCollapsed=this._ranges[0].collapsed;r(this,a,false)}},j.setRanges=function(a){this.removeAllRanges();var b=a.length;b>1?k(this,a):b&&this.addRange(a[0])};else return q.fail("No means of selecting a Range or TextRange was found"),!1;j.getRangeAt=function(a){if(a<0||a>=this.rangeCount)throw new n("INDEX_SIZE_ERR");return this._ranges[a]};var K;if(w)K=function(a){var b;if(d.isSelectionValid(a.win))b=a.docSelection.createRange();else{b=c.getBody(a.win.document).createTextRange();b.collapse(true)}a.docSelection.type==
123
- "Control"?o(a):b&&typeof b.text!="undefined"?p(a,b):s(a)};else if(e.isHostMethod(y,"getRangeAt")&&"number"==typeof y.rangeCount)K=function(a){if(A&&F&&a.docSelection.type=="Control")o(a);else{a._ranges.length=a.rangeCount=a.nativeSelection.rangeCount;if(a.rangeCount){for(var b=0,c=a.rangeCount;b<c;++b)a._ranges[b]=new d.WrappedRange(a.nativeSelection.getRangeAt(b));r(a,a._ranges[a.rangeCount-1],L(a.nativeSelection));a.isCollapsed=z(a)}else s(a)}};else if(E&&"boolean"==typeof y.isCollapsed&&"boolean"==
124
- typeof H.collapsed&&d.features.implementsDomRange)K=function(a){var b;b=a.nativeSelection;if(b.anchorNode){b=J(b,0);a._ranges=[b];a.rangeCount=1;b=a.nativeSelection;a.anchorNode=b.anchorNode;a.anchorOffset=b.anchorOffset;a.focusNode=b.focusNode;a.focusOffset=b.focusOffset;a.isCollapsed=z(a)}else s(a)};else return q.fail("No means of obtaining a Range or TextRange from the user's selection was found"),!1;j.refresh=function(a){var b=a?this._ranges.slice(0):null;K(this);if(a){a=b.length;if(a!=this._ranges.length)return false;
125
- for(;a--;)if(!g.rangesEqual(b[a],this._ranges[a]))return false;return true}};var M=function(a,b){var c=a.getAllRanges(),d=false;a.removeAllRanges();for(var e=0,g=c.length;e<g;++e)d||b!==c[e]?a.addRange(c[e]):d=true;a.rangeCount||s(a)};j.removeRange=A?function(a){if(this.docSelection.type=="Control"){for(var b=this.docSelection.createRange(),a=v(a),d=c.getDocument(b.item(0)),d=c.getBody(d).createControlRange(),e,g=false,u=0,h=b.length;u<h;++u){e=b.item(u);e!==a||g?d.add(b.item(u)):g=true}d.select();
126
- o(this)}else M(this,a)}:function(a){M(this,a)};var L;!w&&E&&d.features.implementsDomRange?(L=function(a){var b=false;a.anchorNode&&(b=c.comparePoints(a.anchorNode,a.anchorOffset,a.focusNode,a.focusOffset)==1);return b},j.isBackwards=function(){return L(this)}):L=j.isBackwards=function(){return false};j.toString=function(){for(var a=[],b=0,c=this.rangeCount;b<c;++b)a[b]=""+this._ranges[b];return a.join("")};j.collapse=function(b,e){a(this,b);var g=d.createRange(c.getDocument(b));g.collapseToPoint(b,
127
- e);this.removeAllRanges();this.addRange(g);this.isCollapsed=true};j.collapseToStart=function(){if(this.rangeCount){var a=this._ranges[0];this.collapse(a.startContainer,a.startOffset)}else throw new n("INVALID_STATE_ERR");};j.collapseToEnd=function(){if(this.rangeCount){var a=this._ranges[this.rangeCount-1];this.collapse(a.endContainer,a.endOffset)}else throw new n("INVALID_STATE_ERR");};j.selectAllChildren=function(b){a(this,b);var e=d.createRange(c.getDocument(b));e.selectNodeContents(b);this.removeAllRanges();
128
- this.addRange(e)};j.deleteFromDocument=function(){if(A&&F&&this.docSelection.type=="Control"){for(var a=this.docSelection.createRange(),b;a.length;){b=a.item(0);a.remove(b);b.parentNode.removeChild(b)}this.refresh()}else if(this.rangeCount){a=this.getAllRanges();this.removeAllRanges();b=0;for(var c=a.length;b<c;++b)a[b].deleteContents();this.addRange(a[c-1])}};j.getAllRanges=function(){return this._ranges.slice(0)};j.setSingleRange=function(a){this.setRanges([a])};j.containsNode=function(a,b){for(var c=
129
- 0,d=this._ranges.length;c<d;++c)if(this._ranges[c].containsNode(a,b))return true;return false};j.toHtml=function(){var a="";if(this.rangeCount){for(var a=g.getRangeDocument(this._ranges[0]).createElement("div"),b=0,c=this._ranges.length;b<c;++b)a.appendChild(this._ranges[b].cloneContents());a=a.innerHTML}return a};j.getName=function(){return"WrappedSelection"};j.inspect=function(){return b(this)};j.detach=function(){this.win=this.anchorNode=this.focusNode=this.win._rangySelection=null};l.inspect=
130
- b;d.Selection=l;d.selectionPrototype=j;d.addCreateMissingNativeApiListener(function(a){if(typeof a.getSelection=="undefined")a.getSelection=function(){return d.getSelection(this)};a=null})});
131
- rangy.createModule("CssClassApplier",function(d,q){function m(a,b){return a.className&&RegExp("(?:^|\\s)"+b+"(?:\\s|$)").test(a.className)}function t(a,b){a.className?m(a,b)||(a.className+=" "+b):a.className=b}function r(a){return a.split(/\s+/).sort().join(" ")}function s(a,b){return r(a.className)==r(b.className)}function f(a){for(var b=a.parentNode;a.hasChildNodes();)b.insertBefore(a.firstChild,a);b.removeChild(a)}function v(a,b){var c=a.cloneRange();c.selectNodeContents(b);var d=c.intersection(a),
132
- d=d?d.toString():"";c.detach();return""!=d}function p(a){return a.getNodes([3],function(b){return v(a,b)})}function o(a,b){if(a.attributes.length!=b.attributes.length)return!1;for(var c=0,d=a.attributes.length,e,g;c<d;++c)if(e=a.attributes[c],g=e.name,"class"!=g&&(g=b.attributes.getNamedItem(g),e.specified!=g.specified||e.specified&&e.nodeValue!==g.nodeValue))return!1;return!0}function i(a,b){for(var c=0,d=a.attributes.length,e;c<d;++c)if(e=a.attributes[c].name,(!b||!n.arrayContains(b,e))&&a.attributes[c].specified&&
133
- "class"!=e)return!0;return!1}function l(a){var b;return a&&1==a.nodeType&&((b=a.parentNode)&&9==b.nodeType&&"on"==b.designMode||z(a)&&!z(a.parentNode))}function k(a){return(z(a)||1!=a.nodeType&&z(a.parentNode))&&!l(a)}function a(a){return a&&1==a.nodeType&&!y.test(B(a,"display"))}function b(b){if(0==b.data.length)return!0;if(F.test(b.data))return!1;switch(B(b.parentNode,"whiteSpace")){case "pre":case "pre-wrap":case "-moz-pre-wrap":return!1;case "pre-line":if(/[\r\n]/.test(b.data))return!1}return a(b.previousSibling)||
134
- a(b.nextSibling)}function c(a,b,d,e){var g,h=0==d;if(n.isAncestorOf(b,a))return a;if(n.isCharacterDataNode(b))if(0==d)d=n.getNodeIndex(b),b=b.parentNode;else if(d==b.length)d=n.getNodeIndex(b)+1,b=b.parentNode;else throw q.createError("splitNodeAt should not be called with offset in the middle of a data node ("+d+" in "+b.data);if(n.isCharacterDataNode(b)?0==d?b.previousSibling:d==b.length?b.nextSibling:1:0<d&&d<b.childNodes.length){if(!g){g=b.cloneNode(!1);for(g.id&&g.removeAttribute("id");h=b.childNodes[d];)g.appendChild(h);
135
- n.insertAfter(g,b)}return b==a?g:c(a,g.parentNode,n.getNodeIndex(g),e)}return a!=b?(g=b.parentNode,b=n.getNodeIndex(b),h||b++,c(a,g,b,e)):a}function e(a){var b=a?"nextSibling":"previousSibling";return function(c,d){var e=c.parentNode,g=c[b];if(g){if(g&&3==g.nodeType)return g}else if(d&&(g=e[b])&&1==g.nodeType&&e.tagName==g.tagName&&s(e,g)&&o(e,g))return g[a?"firstChild":"lastChild"];return null}}function g(a){this.firstTextNode=(this.isElementMerge=1==a.nodeType)?a.lastChild:a;this.textNodes=[this.firstTextNode]}
136
- function h(a,b,c){this.cssClass=a;var d,e,g=null;if("object"==typeof b&&null!==b){c=b.tagNames;g=b.elementProperties;for(d=0;e=G[d++];)b.hasOwnProperty(e)&&(this[e]=b[e]);d=b.normalize}else d=b;this.normalize="undefined"==typeof d?!0:d;this.attrExceptions=[];d=document.createElement(this.elementTagName);this.elementProperties={};for(var h in g)g.hasOwnProperty(h)&&(E.hasOwnProperty(h)&&(h=E[h]),d[h]=g[h],this.elementProperties[h]=d[h],this.attrExceptions.push(h));this.elementSortedClassName=this.elementProperties.hasOwnProperty("className")?
137
- r(this.elementProperties.className+" "+a):a;this.applyToAnyTagName=!1;a=typeof c;if("string"==a)"*"==c?this.applyToAnyTagName=!0:this.tagNames=c.toLowerCase().replace(/^\s\s*/,"").replace(/\s\s*$/,"").split(/\s*,\s*/);else if("object"==a&&"number"==typeof c.length){this.tagNames=[];d=0;for(a=c.length;d<a;++d)"*"==c[d]?this.applyToAnyTagName=!0:this.tagNames.push(c[d].toLowerCase())}else this.tagNames=[this.elementTagName]}d.requireModules(["WrappedSelection","WrappedRange"]);var n=d.dom,C=function(){function a(b,
138
- c,d){return c&&d?" ":""}return function(b,c){b.className&&(b.className=b.className.replace(RegExp("(?:^|\\s)"+c+"(?:\\s|$)"),a))}}(),B;"undefined"!=typeof window.getComputedStyle?B=function(a,b){return n.getWindow(a).getComputedStyle(a,null)[b]}:"undefined"!=typeof document.documentElement.currentStyle?B=function(a,b){return a.currentStyle[b]}:q.fail("No means of obtaining computed style properties found");var z;(function(){z="boolean"==typeof document.createElement("div").isContentEditable?function(a){return a&&
139
- 1==a.nodeType&&a.isContentEditable}:function(a){return!a||1!=a.nodeType||"false"==a.contentEditable?!1:"true"==a.contentEditable||z(a.parentNode)}})();var y=/^inline(-block|-table)?$/i,F=/[^\r\n\t\f \u200B]/,w=e(!1),H=e(!0);g.prototype={doMerge:function(){for(var a=[],b,c,d=0,e=this.textNodes.length;d<e;++d)b=this.textNodes[d],c=b.parentNode,a[d]=b.data,d&&(c.removeChild(b),c.hasChildNodes()||c.parentNode.removeChild(c));return this.firstTextNode.data=a=a.join("")},getLength:function(){for(var a=
140
- this.textNodes.length,b=0;a--;)b+=this.textNodes[a].length;return b},toString:function(){for(var a=[],b=0,c=this.textNodes.length;b<c;++b)a[b]="'"+this.textNodes[b].data+"'";return"[Merge("+a.join(",")+")]"}};var G=["elementTagName","ignoreWhiteSpace","applyToEditableOnly"],E={"class":"className"};h.prototype={elementTagName:"span",elementProperties:{},ignoreWhiteSpace:!0,applyToEditableOnly:!1,hasClass:function(a){return 1==a.nodeType&&n.arrayContains(this.tagNames,a.tagName.toLowerCase())&&m(a,
141
- this.cssClass)},getSelfOrAncestorWithClass:function(a){for(;a;){if(this.hasClass(a,this.cssClass))return a;a=a.parentNode}return null},isModifiable:function(a){return!this.applyToEditableOnly||k(a)},isIgnorableWhiteSpaceNode:function(a){return this.ignoreWhiteSpace&&a&&3==a.nodeType&&b(a)},postApply:function(a,b,c){for(var d=a[0],e=a[a.length-1],h=[],f,n=d,p=e,i=0,k=e.length,l,m,o=0,C=a.length;o<C;++o)if(l=a[o],m=w(l,!c)){if(f||(f=new g(m),h.push(f)),f.textNodes.push(l),l===d&&(n=f.firstTextNode,
142
- i=n.length),l===e)p=f.firstTextNode,k=f.getLength()}else f=null;if(a=H(e,!c))f||(f=new g(e),h.push(f)),f.textNodes.push(a);if(h.length){o=0;for(C=h.length;o<C;++o)h[o].doMerge();b.setStart(n,i);b.setEnd(p,k)}},createContainer:function(a){a=a.createElement(this.elementTagName);d.util.extend(a,this.elementProperties);t(a,this.cssClass);return a},applyToTextNode:function(a){var b=a.parentNode;1==b.childNodes.length&&n.arrayContains(this.tagNames,b.tagName.toLowerCase())?t(b,this.cssClass):(b=this.createContainer(n.getDocument(a)),
143
- a.parentNode.insertBefore(b,a),b.appendChild(a))},isRemovable:function(a){var b;if(b=a.tagName.toLowerCase()==this.elementTagName)if(b=r(a.className)==this.elementSortedClassName){var c;a:{b=this.elementProperties;for(c in b)if(b.hasOwnProperty(c)&&a[c]!==b[c]){c=!1;break a}c=!0}b=c&&!i(a,this.attrExceptions)&&this.isModifiable(a)}return b},undoToTextNode:function(a,b,d){b.containsNode(d)||(a=b.cloneRange(),a.selectNode(d),a.isPointInRange(b.endContainer,b.endOffset)&&(c(d,b.endContainer,b.endOffset,
144
- [b]),b.setEndAfter(d)),a.isPointInRange(b.startContainer,b.startOffset)&&(d=c(d,b.startContainer,b.startOffset,[b])));this.isRemovable(d)?f(d):C(d,this.cssClass)},applyToRange:function(a){a.splitBoundaries();var b=p(a);if(b.length){for(var c,d=0,e=b.length;d<e;++d)c=b[d],!this.isIgnorableWhiteSpaceNode(c)&&!this.getSelfOrAncestorWithClass(c)&&this.isModifiable(c)&&this.applyToTextNode(c);a.setStart(b[0],0);c=b[b.length-1];a.setEnd(c,c.length);this.normalize&&this.postApply(b,a,!1)}},applyToSelection:function(a){var a=
145
- d.getSelection(a||window),b,c=a.getAllRanges();a.removeAllRanges();for(var e=c.length;e--;)b=c[e],this.applyToRange(b),a.addRange(b)},undoToRange:function(a){a.splitBoundaries();var b=p(a),c,d,e=b[b.length-1];if(b.length){for(var g=0,h=b.length;g<h;++g)c=b[g],(d=this.getSelfOrAncestorWithClass(c))&&this.isModifiable(c)&&this.undoToTextNode(c,a,d),a.setStart(b[0],0),a.setEnd(e,e.length);this.normalize&&this.postApply(b,a,!0)}},undoToSelection:function(a){var a=d.getSelection(a||window),b=a.getAllRanges(),
146
- c;a.removeAllRanges();for(var e=0,g=b.length;e<g;++e)c=b[e],this.undoToRange(c),a.addRange(c)},getTextSelectedByRange:function(a,b){var c=b.cloneRange();c.selectNodeContents(a);var d=c.intersection(b),d=d?d.toString():"";c.detach();return d},isAppliedToRange:function(a){if(a.collapsed)return!!this.getSelfOrAncestorWithClass(a.commonAncestorContainer);for(var b=a.getNodes([3]),c=0,d;d=b[c++];)if(!this.isIgnorableWhiteSpaceNode(d)&&v(a,d)&&this.isModifiable(d)&&!this.getSelfOrAncestorWithClass(d))return!1;
147
- return!0},isAppliedToSelection:function(a){for(var a=d.getSelection(a||window).getAllRanges(),b=a.length;b--;)if(!this.isAppliedToRange(a[b]))return!1;return!0},toggleRange:function(a){this.isAppliedToRange(a)?this.undoToRange(a):this.applyToRange(a)},toggleSelection:function(a){this.isAppliedToSelection(a)?this.undoToSelection(a):this.applyToSelection(a)},detach:function(){}};h.util={hasClass:m,addClass:t,removeClass:C,hasSameClasses:s,replaceWithOwnChildren:f,elementsHaveSameNonClassAttributes:o,
148
- elementHasNonClassAttributes:i,splitNodeAt:c,isEditableElement:z,isEditingHost:l,isEditable:k};d.CssClassApplier=h;d.createCssClassApplier=function(a,b,c){return new h(a,b,c)}});
149
- rangy.createModule("SaveRestore",function(d,q){function m(d,m){var i="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),l,k=f.getDocument(d.startContainer),a=d.cloneRange();a.collapse(m);l=k.createElement("span");l.id=i;l.style.lineHeight="0";l.style.display="none";l.className="rangySelectionBoundary";l.appendChild(k.createTextNode(v));a.insertNode(l);a.detach();return l}function t(d,f,i,l){(d=(d||document).getElementById(i))?(f[l?"setStartBefore":"setEndBefore"](d),d.parentNode.removeChild(d)):
150
- q.warn("Marker element has been removed. Cannot restore selection.")}function r(d,f){return f.compareBoundaryPoints(d.START_TO_START,d)}function s(d,f){var i=(d||document).getElementById(f);i&&i.parentNode.removeChild(i)}d.requireModules(["DomUtil","DomRange","WrappedRange"]);var f=d.dom,v="\ufeff";d.saveSelection=function(f){var f=f||window,o=f.document;if(d.isSelectionValid(f)){var i=d.getSelection(f),l=i.getAllRanges(),k=[],a,b;l.sort(r);for(var c=0,e=l.length;c<e;++c)a=l[c],a.collapsed?(b=m(a,
151
- !1),k.push({markerId:b.id,collapsed:!0})):(b=m(a,!1),a=m(a,!0),k[c]={startMarkerId:a.id,endMarkerId:b.id,collapsed:!1,backwards:1==l.length&&i.isBackwards()});for(c=e-1;0<=c;--c)a=l[c],a.collapsed?a.collapseBefore((o||document).getElementById(k[c].markerId)):(a.setEndBefore((o||document).getElementById(k[c].endMarkerId)),a.setStartAfter((o||document).getElementById(k[c].startMarkerId)));i.setRanges(l);return{win:f,doc:o,rangeInfos:k,restored:!1}}q.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus.")};
152
- d.restoreSelection=function(f,m){if(!f.restored){for(var i=f.rangeInfos,l=d.getSelection(f.win),k=[],a=i.length,b=a-1,c,e;0<=b;--b){c=i[b];e=d.createRange(f.doc);if(c.collapsed)if(c=(f.doc||document).getElementById(c.markerId)){c.style.display="inline";var g=c.previousSibling;g&&3==g.nodeType?(c.parentNode.removeChild(c),e.collapseToPoint(g,g.length)):(e.collapseBefore(c),c.parentNode.removeChild(c))}else q.warn("Marker element has been removed. Cannot restore selection.");else t(f.doc,e,c.startMarkerId,
153
- !0),t(f.doc,e,c.endMarkerId,!1);1==a&&e.normalizeBoundaries();k[b]=e}1==a&&m&&d.features.selectionHasExtend&&i[0].backwards?(l.removeAllRanges(),l.addRange(k[0],!0)):l.setRanges(k);f.restored=!0}};d.removeMarkerElement=s;d.removeMarkers=function(d){for(var f=d.rangeInfos,i=0,l=f.length,k;i<l;++i)k=f[i],k.collapsed?s(d.doc,k.markerId):(s(d.doc,k.startMarkerId),s(d.doc,k.endMarkerId))}});
154
- rangy.createModule("Serializer",function(d,q){function m(a,b){var b=b||[],c=a.nodeType,d=a.childNodes,g=d.length,h=[c,a.nodeName,g].join(":"),f="",i="";switch(c){case 3:f=a.nodeValue.replace(/</g,"&lt;").replace(/>/g,"&gt;");break;case 8:f="<\!--"+a.nodeValue.replace(/</g,"&lt;").replace(/>/g,"&gt;")+"--\>";break;default:f="<"+h+">",i="</>"}f&&b.push(f);for(c=0;c<g;++c)m(d[c],b);i&&b.push(i);return b}function t(a){a=m(a).join("");return l(a).toString(16)}function r(a,b,c){for(var d=[],g=a,c=c||k.getDocument(a).documentElement;g&&
155
- g!=c;)d.push(k.getNodeIndex(g,!0)),g=g.parentNode;return d.join("/")+":"+b}function s(a,b,c){b?c||k.getDocument(b):b=(c||document).documentElement;for(var a=a.split(":"),c=a[0]?a[0].split("/"):[],d=c.length,g;d--;)if(g=parseInt(c[d],10),g<b.childNodes.length)b=b.childNodes[parseInt(c[d],10)];else throw q.createError("deserializePosition failed: node "+k.inspectNode(b)+" has no child with index "+g+", "+d);return new k.DomPosition(b,parseInt(a[1],10))}function f(a,b,c){c=c||d.DomRange.getRangeDocument(a).documentElement;
156
- if(!k.isAncestorOf(c,a.commonAncestorContainer,!0))throw Error("serializeRange: range is not wholly contained within specified root node");a=r(a.startContainer,a.startOffset,c)+","+r(a.endContainer,a.endOffset,c);b||(a+="{"+t(c)+"}");return a}function v(a,b,c){b?c=c||k.getDocument(b):(c=c||document,b=c.documentElement);var a=/^([^,]+),([^,\{]+)({([^}]+)})?$/.exec(a),e=a[4],g=t(b);if(e&&e!==t(b))throw Error("deserializeRange: checksums of serialized range root node ("+e+") and target root node ("+
157
- g+") do not match");e=s(a[1],b,c);b=s(a[2],b,c);c=d.createRange(c);c.setStart(e.node,e.offset);c.setEnd(b.node,b.offset);return c}function p(a,b,c){b?c||k.getDocument(b):b=(c||document).documentElement;a=/^([^,]+),([^,]+)({([^}]+)})?$/.exec(a)[3];return!a||a===t(b)}function o(a,b,c){for(var a=a||d.getSelection(),a=a.getAllRanges(),e=[],g=0,h=a.length;g<h;++g)e[g]=f(a[g],b,c);return e.join("|")}function i(a,b,c){b?c=c||k.getWindow(b):(c=c||window,b=c.document.documentElement);for(var a=a.split("|"),
158
- e=d.getSelection(c),g=[],h=0,f=a.length;h<f;++h)g[h]=v(a[h],b,c.document);e.setRanges(g);return e}d.requireModules(["WrappedSelection","WrappedRange"]);("undefined"==typeof encodeURIComponent||"undefined"==typeof decodeURIComponent)&&q.fail("Global object is missing encodeURIComponent and/or decodeURIComponent method");var l=function(){var a=null;return function(b){for(var c=[],d=0,g=b.length,h;d<g;++d)h=b.charCodeAt(d),128>h?c.push(h):2048>h?c.push(h>>6|192,h&63|128):c.push(h>>12|224,h>>6&63|128,
159
- h&63|128);b=-1;if(!a){for(var d=[],g=0,f;256>g;++g){f=g;for(h=8;h--;)f=1==(f&1)?f>>>1^3988292384:f>>>1;d[g]=f>>>0}a=d}d=a;g=0;for(h=c.length;g<h;++g)f=(b^c[g])&255,b=b>>>8^d[f];return(b^-1)>>>0}}(),k=d.dom;d.serializePosition=r;d.deserializePosition=s;d.serializeRange=f;d.deserializeRange=v;d.canDeserializeRange=p;d.serializeSelection=o;d.deserializeSelection=i;d.canDeserializeSelection=function(a,b,c){var d;b?d=c?c.document:k.getDocument(b):b=(c||window).document.documentElement;for(var a=a.split("|"),
160
- c=0,g=a.length;c<g;++c)if(!p(a[c],b,d))return!1;return!0};d.restoreSelectionFromCookie=function(a){var a=a||window,b;a:{b=a.document.cookie.split(/[;,]/);for(var c=0,d=b.length,g;c<d;++c)if(g=b[c].split("="),"rangySerializedSelection"==g[0].replace(/^\s+/,"")&&(g=g[1])){b=decodeURIComponent(g.replace(/\s+$/,""));break a}b=null}b&&i(b,a.doc)};d.saveSelectionCookie=function(a,b){var a=a||window,b="object"==typeof b?b:{},c=b.expires?";expires="+b.expires.toUTCString():"",e=b.path?";path="+b.path:"",
161
- g=b.domain?";domain="+b.domain:"",f=b.secure?";secure":"",n=o(d.getSelection(a));a.document.cookie=encodeURIComponent("rangySerializedSelection")+"="+encodeURIComponent(n)+c+e+g+f};d.getElementChecksum=t});
162
- (function(d,q,m,t){function r(a,b,c){o[a]=c;i[a]=b;p||(p=a)}function s(a){p!==a&&(p=a,d.ui.editor.eachInstance(function(){this.reinit()}))}function f(a,b){p&&o[p]&&o[p][a]&&(a=o[p][a]);if(!b)return a;for(var c in b)a=a.replace("{{"+c+"}}",b[c]);return a}function v(a){if(l===t){l=!0;if(k=/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent))d("html").addClass(a.options.baseClass+"-ios"),k&&d(document).bind("scroll",function(){setInterval(function(){d("body").css("height","+=1").css("height",
163
- "-=1")},0)});d.browser.mozilla&&d("html").addClass(a.options.baseClass+"-ff");if(d.browser.msie&&9>d.browser.version){l=!1;var b=d("<div></div>").addClass(a.options.baseClass+"-unsupported").html(a.getTemplate("unsupported")).appendTo("body"),c=1;b.siblings().each(function(){var a=d(this).css("z-index");!isNaN(a)&&a>c&&(c=a+1)});b.css("z-index",c);b.find("."+a.options.baseClass+"-unsupported-close").click(function(){b.remove()})}}return l}var p=null,o={},i={};d(function(){m.initialized||m.init();
164
- d.isFunction(m.rangePrototype.insertNodeAtEnd)||(m.rangePrototype.insertNodeAtEnd=function(a){var b=this.cloneRange();b.collapse(!1);b.insertNode(a);b.detach();this.setEndAfter(a)})});d("html").click(function(){d(".ui-editor-selectmenu-visible").removeClass("ui-editor-selectmenu-visible")});d.widget("ui.editor",{_init:function(){-1===d.inArray(this,d.ui.editor.instances)&&d.ui.editor.instances.push(this);var a=this;d.ui.editor.eachInstance(function(b){a!=b&&a.element.closest(b.element).length&&handleError("Nesting editors is unsupported",
165
- a.element,b.element)});this.options=d.extend({},d.ui.editor.defaults,this.options);this.options.uiOrder=this.options.uiOrder||[["logo"],["save","cancel"],["dock","showGuides","clean"],["viewSource"],["undo","redo"],["alignLeft","alignCenter","alignJustify","alignRight"],["textBold","textItalic","textUnderline","textStrike"],["textSuper","textSub"],["listUnordered","listOrdered"],["hr","quoteBlock"],["fontSizeInc","fontSizeDec"],["link","unlink"],["embed"],["floatLeft","floatNone","floatRight"],["tagMenu"],
166
- ["i18n"],["raptorize"],["length"],["debugReinit","debugDestroy"]];this.element.attr("id")||this.element.attr("id",this.getUniqueId());this.ready=!1;this.events={};this.ui={};this.plugins={};this.templates=d.extend({},d.ui.editor.templates);this.path=this.toolbarWrapper=this.toolbar=this.wrapper=null;this.visible=this.enabled=!1;this.uiObjects={};for(var b in this.options.bind)this.bind(b,this.options.bind[b]);this.history=[];this.present=0;this.historyEnabled=!0;v(this)&&(this.cloneDomTools(),this.setOriginalHtml(this.element.is(":input")?
167
- this.element.val():this.element.html()),this.options.replace&&(this.replaceOriginal(),this.options.replace=!1),this.attach(),this.loadPlugins(),this.dirty=!1,this.previousSelection=this.previousContent=null,this.ready=!0,this.fire("ready"),this.options.autoEnable&&d(function(){a.enableEditing();a.showToolbar()}))},attach:function(){this.bind("change",this.historyPush);this.bind("selectionChange",this.updateTagTree);this.bind("show",this.updateTagTree);var a=d.proxy(this.checkChange,this);this.getElement().find("img").bind("click."+
168
- this.widgetName,d.proxy(function(a){this.selectOuter(a.target)},this));this.getElement().bind("mouseup."+this.widgetName,a);this.getElement().bind("keyup."+this.widgetName,a);d(q).bind("beforeunload",d.proxy(d.ui.editor.unloadWarning,d.ui.editor))},reinit:function(){if(this.ready){var a=this.enabled,b=this.visible;this.destruct();this._init();a&&this.enableEditing();b&&this.showToolbar()}else{var c;c=function(){this.unbind("ready",c);this.reinit()};this.bind("ready",c)}},getElement:function(){return this.target?
169
- this.target:this.element},getOriginalElement:function(){return this.element},replaceOriginal:function(){if(!this.target){for(var a=d("<div/>").html(this.element.is(":input")?this.element.val():this.element.html()).insertBefore(this.element).attr("id",this.getUniqueId()).addClass(this.element.attr("class")),b=this.options.domTools.getStyles(this.element),c=0;c<this.options.replaceStyle.length;c++)a.css(this.options.replaceStyle[c],b[this.options.replaceStyle[c]]);this.element.hide();this.bind("change",
170
- function(){this.element.is("input")?this.element.val(this.getHtml()):this.element.html(this.getHtml())});this.target=a}},cloneDomTools:function(){for(var a in this.options.domTools)this[a]||(this[a]=function(a){return function(){this.options.domTools.constrainSelection(this.getElement());var c=this.getHtml(),d=this.options.domTools[a].apply(this.options.domTools,arguments);c!==this.getHtml()&&this.change();return d}}(a))},checkChange:function(){var a=m.serializeSelection();this.previousSelection!=
171
- a&&this.fire("selectionChange");this.previousSelection=a;var a=this.getCleanHtml(),b=this.dirty;this.dirty=this.getOriginalHtml()!=a;this.previousHtml!=a&&(this.previousHtml=a,this.change(),b!=this.dirty&&(this.dirty?this.fire("dirty"):this.fire("cleaned")))},change:function(){this.fire("change")},destruct:function(){this.hideToolbar();this.disableEditing();this.fire("destroy",!1);this.events={};this.getElement().unbind("."+this.widgetName);this.wrapper&&this.wrapper.remove()},destroy:function(){this.destruct();
172
- d.Widget.prototype.destroy.call(this)},persist:function(a,b){return!this.options.persistence?null:d.ui.editor.persist(a,b,this.options.namespace)},enableEditing:function(){this.isToolbarLoaded()||this.loadToolbar();if(!this.enabled){this.enabled=!0;this.getElement().addClass(this.options.baseClass+"-editing");this.options.partialEdit?this.getElement().find(this.options.partialEdit).attr("contenteditable",!0):this.getElement().attr("contenteditable",!0);try{document.execCommand("enableInlineTableEditing",
173
- !1,!1),document.execCommand("styleWithCSS",!0,!0)}catch(a){}this.fire("enabled");this.fire("resize")}},disableEditing:function(){this.enabled&&(this.enabled=!1,this.getElement().attr("contenteditable",!1).removeClass(this.options.baseClass+"-editing"),this.fire("disabled"))},isEditing:function(){return this.enabled},updateTagTree:function(){if(this.isEditing()){var a=this,b="",c=[],e=0;this.eachRange(function(g){var g=g.commonAncestorContainer,f;f=3===g.nodeType?d(g).parent():d(g);g=[];for(c.push(g);f[0]&&
174
- !a.isRoot(f)&&"body"!==f[0].tagName.toLowerCase();)g.push(f),f=f.parent();g.reverse();b&&(b+=" | ");b+=this.getTemplate("root");for(f=0;f<g.length;f++)b+=this.getTemplate("tag",{element:g[f][0].tagName.toLowerCase(),data:"["+e+","+f+"]"});e++},null,this);b||(b=this.getTemplate("root"));this.path.html(b).find("a").click(function(){var b=d(this).data("ui-editor-selection");b?(a.selectOuter(c[b[0]][b[1]]),a.updateTagTree()):a.selectOuter(a.getElement())});this.fire("tagTreeUpdated")}},isRoot:function(a){return this.getElement()[0]===
175
- d(a)[0]},unify:function(a,b){!1!==b&&a(this);if(this.options.unify)for(var c=d.ui.editor.getInstances(),e=0;e<c.length;e++)c[e]!==this&&c[e].options.unify&&a(c[e])},getUniqueId:function(){return d.ui.editor.getUniqueId()},loadMessages:function(){this.messages=d(this.getTemplate("messages")).appendTo(this.wrapper)},showMessage:function(a,b,c){var c=d.extend({},this.options.message,c),e;e={timer:null,editor:this,show:function(){this.element.slideDown();this.timer=q.setTimeout(function(){this.timer=
176
- null;e.hide()},c.delay,this)},hide:function(){this.timer&&(q.clearTimeout(this.timer),this.timer=null);this.element.stop().slideUp(d.proxy(function(){d.isFunction(c.hide)&&c.hide.call(this);this.element.remove()},this))}};e.element=d(this.getTemplate("message",{type:a,message:b})).hide().appendTo(this.messages).find(".ui-editor-message-close").click(function(){e.hide()}).end();e.show();return e},showLoading:function(a,b){return this.showMessage("clock",a,b)},showInfo:function(a,b){return this.showMessage("info",
177
- a,b)},showError:function(a,b){return this.showMessage("circle-close",a,b)},showConfirm:function(a,b){return this.showMessage("circle-check",a,b)},showWarning:function(a,b){return this.showMessage("alert",a,b)},loadToolbar:function(){var a=this.toolbar=d("<div/>").addClass(this.options.baseClass+"-toolbar"),a=this.toolbarWrapper=d("<div/>").addClass(this.options.baseClass+"-toolbar-wrapper").addClass("ui-widget-content").append(a),b=this.path=d("<div/>").addClass(this.options.baseClass+"-path").addClass("ui-widget-header").html(this.getTemplate("root")),
178
- c=this.wrapper=d("<div/>").addClass(this.options.baseClass+"-wrapper").css("display","none").append(b).append(a);d.fn.draggable&&this.options.draggable&&(c.draggable({cancel:"a, button",cursor:"move",handle:".ui-editor-path",stop:d.proxy(function(){var a=this.persist("position",[c.css("top"),c.css("left")]);c.css({top:Math.abs(a[0]),left:Math.abs(a[1])})},this)}),c.css("position",""),(a=this.persist("position")||this.options.dialogPosition)||(a=[10,10]),parseInt(a[0],10)+c.outerHeight()>d(q).height()&&
179
- (a[0]=d(q).height()-c.outerHeight()),parseInt(a[1],10)+c.outerWidth()>d(q).width()&&(a[1]=d(q).width()-c.outerWidth()),c.css({top:Math.abs(parseInt(a[0])),left:Math.abs(parseInt(a[1]))}),this.loadMessages());d(function(){c.appendTo("body")});this.loadUi()},isToolbarLoaded:function(){return null!==this.wrapper},showToolbar:function(a){this.isToolbarLoaded()||this.loadToolbar();if(!this.visible){this.options.unify&&this.hideOtherToolbars(!0);this.visible=!0;this.wrapper.css("display","");this.fire("resize");
180
- "undefined"===typeof this.getElement().attr("tabindex")&&this.getElement().attr("tabindex",-1);if(a)if(a.select)a.select();else{var b=q.getSelection();b.removeAllRanges();b.addRange(a)}var c=this;d(function(){c.fire("show");c.getElement().focus()})}},hideToolbar:function(){this.visible&&(this.visible=!1,this.wrapper.hide(),this.fire("hide"),this.fire("resize"))},hideOtherToolbars:function(a){this.unify(function(b){b.hideToolbar(a)},!1)},isVisible:function(){return this.visible},getTemplate:function(a,
181
- b){var c;c=this.templates[a]?this.templates[a]:d.ui.editor.getTemplate(a,this.options.urlPrefix);c=c.replace(/_\('(.*?)'\)/g,function(a,b){b=b.replace(/\\(.?)/g,function(a,b){switch(b){case "\\":return"\\";case "0":return"\x00";case "":return"";default:return b}});return f(b)});b=d.extend({},this.options,b||{});b=this.getTemplateVars(b);return c=c.replace(/\{\{(.*?)\}\}/g,function(a,c){return b[c]})},getTemplateVars:function(a,b,c){b=b?b+".":"";c||(c=1);var d={},g;for(g in a)if("object"===typeof a[g]&&
182
- 5>c){var f=this.getTemplateVars(a[g],b+g,++c),n;for(n in f)d[n]=f[n]}else d[b+g]=a[g];return d},historyPush:function(){this.historyEnabled&&this.getHtml()!==this.historyPeak()&&(this.present!==this.history.length-1&&(this.history=this.history.splice(0,this.present+1)),this.history.push(this.getHtml()),this.present=this.history.length-1)},historyPeak:function(){return!this.history.length?null:this.history[this.present]},historyBack:function(){0<this.present&&(this.present--,this.setHtml(this.history[this.present]),
183
- this.historyEnabled=!1,this.change(),this.historyEnabled=!0)},historyForward:function(){this.present<this.history.length-1&&(this.present++,this.setHtml(this.history[this.present]),this.historyEnabled=!1,this.change(),this.historyEnabled=!0)},uiEnabled:function(a){return!1===this.options.enableUi&&"undefined"===typeof this.options.ui[a]||!1===this.options.ui[a]||-1!==d.inArray(a,this.options.disabledUi)?!1:!0},getUi:function(a){return this.uiObjects[a]},loadUi:function(){for(var a=0,b=this.options.uiOrder.length;a<
184
- b;a++){for(var c=this.options.uiOrder[a],e=d("<div/>"),g=0,f=c.length;g<f;g++)if(this.uiEnabled(c[g])){var n=c[g].replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()});if(d.ui.editor.ui[c[g]]){var i=d.extend({},d.ui.editor.ui[c[g]]),n=d.extend(!0,{},this.options,{baseClass:this.options.baseClass+"-ui-"+n},i.options,this.options.ui[c[g]]);i.editor=this;i.options=n;i.ui=i.init(this,n);i.ui.init(c[g],this,n,i).appendTo(e);this.uiObjects[c[g]]=i}}e.addClass("ui-buttonset").addClass(this.options.baseClass+
185
- "-buttonset");0<e.children().length&&e.appendTo(this.toolbar)}d("<div/>").css("clear","both").appendTo(this.toolbar)},uiButton:function(a){return d.extend({button:null,options:{},init:function(a,c,e,g){var h=a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()}),e=d.extend({},c.options,{baseClass:c.options.baseClass+"-"+h+"-button"},this.options,c.options.ui[a]);this.title||(this.title=f("Unnamed Button"));this.button=d("<div/>").html(this.label||this.title).addClass(e.baseClass).attr("name",
186
- a).attr("title",this.title).val(a);e.classes&&this.button.addClass(e.classes);this.button.bind("mousedown."+g.editor.widgetName,function(a){a.preventDefault()});var n=this;this.button.bind("mouseup."+g.editor.widgetName,function(a){a.preventDefault();n.click.apply(g,arguments)});c.bind("destroy",d.proxy(function(){this.button.button("destroy").remove()},this));this.button.button({icons:{primary:this.icon||"ui-icon-"+h},disabled:e.disabled?!0:!1,text:this.text||!1,label:this.label||null});this.ready.call(g);
187
- return this.button},disable:function(){this.button.button("option","disabled",!0)},enable:function(){this.button.button("option","disabled",!1)},ready:function(){},click:function(){}},a)},uiSelectMenu:function(a){return d.extend({select:null,selectMenu:null,button:null,menu:null,options:{},init:function(a,c){var e=this,g=a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()});d.extend({},c.options,{baseClass:c.options.baseClass+g+"-select-menu"},e.options,c.options.ui[a]);e.title||(e.title=f("Unnamed Select Menu"));
188
- e.wrapper=d('<div class="ui-editor-selectmenu-wrapper"/>').append(e.select.hide());e.selectMenu=d('<div class="ui-selectmenu ui-editor-selectmenu"/>').appendTo(e.wrapper);e.menu=d('<div class="ui-selectmenu-menu ui-editor-selectmenu-menu ui-widget-content ui-corner-bottom ui-corner-tr"/>').appendTo(e.wrapper);e.select.find("option").each(function(){d("<div/>").addClass("ui-selectmenu-menu-item ui-editor-selectmenu-menu-item").addClass("ui-corner-all").html(d(this).html()).appendTo(e.menu).bind("mouseenter."+
189
- c.widgetName,function(){d(this).addClass("ui-state-focus")}).bind("mouseleave."+c.widgetName,function(){d(this).removeClass("ui-state-focus")}).bind("mousedown."+c.widgetName,function(){return false}).bind("click."+c.widgetName,function(){var a=e.select.find("option").eq(d(this).index());e.select.val(a.val());e.update();e.wrapper.removeClass("ui-editor-selectmenu-visible");e.button.addClass("ui-corner-all").removeClass("ui-corner-top");e.change(e.select.val());return false})});var g=d("<div/>").addClass("ui-selectmenu-text"),
190
- h=d("<div/>").addClass("ui-icon ui-icon-triangle-1-s");e.button=d("<div/>").addClass("ui-selectmenu-button ui-editor-selectmenu-button ui-button ui-state-default").attr("title",e.title).append(g).append(h).prependTo(e.selectMenu);e.button.bind("mousedown."+c.widgetName,function(){return false}).bind("click."+c.widgetName,function(){d(".ui-editor-selectmenu-visible").removeClass("ui-editor-selectmenu-visible");e.menu.css("min-width",e.button.outerWidth()+10);e.wrapper.toggleClass("ui-editor-selectmenu-visible");
191
- return false});g=e.select.find("option[value="+e.select.val()+"]").html();e.button.find(".ui-selectmenu-text").html(g);return e.wrapper},update:function(){var a=this.select.find("option[value="+this.select.val()+"]").html();this.button.find(".ui-selectmenu-text").html(a)},val:function(){var a=this.select.val.apply(this.select,arguments);this.update();return a},change:function(){}},a)},getPlugin:function(a){return this.plugins[a]},loadPlugins:function(){this.options.plugins||(this.options.plugins=
192
- {});for(var a in d.ui.editor.plugins)if(!(!1===this.options.enablePlugins&&"undefined"===typeof this.options.plugins[a]||!1===this.options.plugins[a])&&-1===d.inArray(a,this.options.disabledPlugins)){var b=d.extend({},d.ui.editor.plugins[a]),c=a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()}),c=d.extend(!0,{},this.options,{baseClass:this.options.baseClass+"-"+c},b.options,this.options.plugins[a]);b.editor=this;b.options=c;b.init(this,c);this.plugins[a]=b}},isDirty:function(){return this.dirty},
193
- getHtml:function(){var a=this.getElement().html(),a=d("<div/>").html(a);a.find(".rangySelectionBoundary").remove();return a=a.html()},getCleanHtml:function(){this.fire("clean");var a=this.getElement().html();this.fire("restore");a=d("<div/>").html(a);a.find(".rangySelectionBoundary").remove();return a=a.html()},setHtml:function(a){this.getElement().html(a);this.fire("html");this.change()},resetHtml:function(){this.setHtml(this.getOriginalHtml())},getOriginalHtml:function(){return this.originalHtml},
194
- save:function(){var a=this.getCleanHtml();this.fire("save");this.setOriginalHtml(a);this.fire("saved");this.fire("change");return a},setOriginalHtml:function(a){this.originalHtml=a},bind:function(a,b,c){var e=this.events;d.each(a.split(","),function(a,f){f=d.trim(f);e[f]||(e[f]=[]);e[f].push({context:c,callback:b})})},unbind:function(a,b,c){for(var d=0,g=this.events[a].length;d<g;d++)this.events[a][d]&&this.events[a][d].callback===b&&this.events[a][d].context===c&&this.events[a].splice(d,1)},fire:function(a,
195
- b,c){c||this.fire("before:"+a,b,!0);if(this.events[a])for(var e=0,g=this.events[a].length;e<g;e++){var f=this.events[a][e];f.callback.call(f.context||this)}!1!==b&&d.ui.editor.fire(a);c||this.fire("after:"+a,b,!0)}});d.extend(d.ui.editor,{defaults:{plugins:{},ui:{},bind:{},domTools:{savedSelection:!1,saveSelection:function(){this.savedSelection=m.saveSelection()},restoreSelection:function(){this.savedSelection&&(m.restoreSelection(this.savedSelection),this.savedSelection=!1)},eachRange:function(a,
196
- b,c){for(var b=b||m.getSelection(),c=c||this,d,g=0;d=b.getAllRanges()[g++];)a.call(c,d)},constrainSelection:function(a,b){var a=d(a)[0],b=b||m.getSelection(),c;d(b.getAllRanges()).each(function(e,g){c=3===this.commonAncestorContainer.nodeType?d(g.commonAncestorContainer).parent()[0]:g.commonAncestorContainer;a!==c&&!d.contains(a,c)&&b.removeRange(g)})},getSelectedElements:function(){var a=new jQuery;this.eachRange(function(b){a.push(this.getSelectedElement(b)[0])});return a},getSelectedElement:function(a){a=
197
- a||m.getSelection().getRangeAt(0);return d(3===a.commonAncestorContainer.nodeType?a.commonAncestorContainer.parentNode:a.commonAncestorContainer)},getSelectedHtml:function(a){a=a||m.getSelection();return a.toHtml()},getSelectionStartElement:function(){var a=m.getSelection();return a.isBackwards()?3===a.focusNode.nodeType?d(a.focusNode.parentElement):d(a.focusNode):3===a.anchorNode.nodeType?d(a.anchorNode.parentElement):d(a.anchorNode)},getSelectionEndElement:function(){var a=m.getSelection();return a.isBackwards()?
198
- 3===a.anchorNode.nodeType?d(a.anchorNode.parentElement):d(a.anchorNode):3===a.focusNode.nodeType?d(a.focusNode.parentElement):d(a.focusNode)},unwrapParentTag:function(a){this.getSelectedElements().each(function(){d(this).is(a)&&d(this).replaceWith(d(this).html())})},wrapTagWithAttribute:function(a,b,c){this.eachRange(function(d){d=this.getSelectedElement(d);d.is(a)?d.attr(b):this.toggleWrapper(a,{classes:c,attributes:b})})},selectInner:function(a,b){b=b||m.getSelection();b.removeAllRanges();d(a).focus().contents().each(function(){var a=
199
- m.createRange();a.selectNodeContents(this);b.addRange(a)})},selectOuter:function(a,b){b=b||m.getSelection();b.removeAllRanges();d(a).each(function(){var a=m.createRange();a.selectNode(this);b.addRange(a)}).focus()},selectEnd:function(a,b){b=b||m.getSelection();b.removeAllRanges();d(a).each(function(){var a=m.createRange();a.selectNodeContents(this);a.collapse();b.addRange(a)})},toggleWrapper:function(a,b){var b=b||{},c=m.createCssClassApplier(b.classes||"",{normalize:!0,elementTagName:a,elementProperties:b.attributes||
200
- {}});this.eachRange(function(e){this.rangeEmptyTag(e)?this.replaceRange(d("<"+a+"/>").addClass(b.classes).attr(b.attributes||{}).append(this.domFragmentToHtml(e.cloneContents())),e):c.toggleRange(e)})},rangeEmptyTag:function(a){a=this.domFragmentToHtml(a.cloneContents());"string"===typeof a&&(a=a.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g,"\\$1"));return d(a).is(":empty")?!0:!1},execCommand:function(a,b,c){document.execCommand(a,b,c)},insertTag:function(a,b){this.eachRange(function(b){b.insertNode(d("<"+
201
- a+"/>")[0])},b)},insertTagAtEnd:function(a,b){this.eachRange(function(b){b.insertNodeAtEnd(d("<"+a+"/>")[0])},b)},insertElement:function(a,b,c){this.eachRange(function(c){d(a).each(function(){c.insertNode(!1===b?this:this.cloneNode(!0))})},c)},insertElementAtEnd:function(a,b,c){this.eachRange(function(c){d(a).each(function(){c.insertNodeAtEnd(!1===b?this:this.cloneNode(!0))})},c)},toggleBlockStyle:function(a,b){this.eachRange(function(c){for(c=d(c.commonAncestorContainer);c.length&&c[0]!==b[0]&&(3===
202
- c[0].nodeType||"inline"===c.css("display"));)c=c.parent();c[0]===b[0]&&"inline"!==b.css("display")&&(this.wrapInner(b,"div"),c=b.children().first());this.toggleStyle(c,a)})},wrapInner:function(a,b){this.saveSelection();d(a).each(function(){var c=d("<"+b+"/>").html(d(this).html());a.html(c)});this.restoreSelection()},inverseWrapWithTagClass:function(a,b,c,e){this.saveSelection();var g="domTools"+Math.ceil(1E7*Math.random());this.eachRange(function(a){var d=m.createCssClassApplier(e,{elementTagName:c});
203
- d.isAppliedToRange(a)?d.toggleSelection():m.createCssClassApplier(b,{elementTagName:g}).toggleSelection()});d(g).each(function(){d(this).replaceWith(d("<"+a+"/>").addClass(b).html(d(this).html()))});this.restoreSelection()},toggleStyle:function(a,b){d.each(b,function(b,e){d(a).css(b)===e?d(a).css(b,""):d(a).css(b,e)})},getStyles:function(a){for(var b={},a=q.getComputedStyle(a[0],null),c=0;c<a.length;c++)b[a.item(c)]=a.getPropertyValue(a.item(c));return b},swapStyles:function(a,b,c){for(var d in c)a.css(d,
204
- b.css(d)),b.css(d,c[d])},replaceSelectionWithinValidTags:function(a,b,c){var c=c||m.getSelection(),d=this.getSelectionStartElement()[0],g=this.getSelectionEndElement()[0],f=this.isElementValid(this.getSelectedElements()[0],b),d=this.isElementValid(d,b),b=this.isElementValid(g,b);f&&d&&b?this.replaceSelection(a):this.replaceSelectionSplittingSelectedElement(a,c)},replaceSelectionSplittingSelectedElement:function(a,b){var b=b||m.getSelection(),c=b.getRangeAt(0),e=this.getSelectedElements()[0],g=m.createRange();
205
- g.setStartBefore(e);g.setEnd(c.startContainer,c.startOffset);var g=g.cloneContents(),f=m.createRange();f.setStart(c.endContainer,c.endOffset);f.setEndAfter(e);c=f.cloneContents();g=this.outerHtml(d(this.domFragmentToHtml(g)));g+=this.outerHtml(d(a));g+=this.outerHtml(d(this.domFragmentToHtml(c)));d(e).replaceWith(d(g))},replaceSelection:function(a,b){this.eachRange(function(b){this.replaceRange(a,b)},b)},replaceRange:function(a,b){var c=d("<div></div>").append(a)[0].childNodes;b.deleteContents();
206
- c.length===t||1===c.length?b.insertNode(c[0].cloneNode(!0)):d.each(c,function(a,c){b.insertNodeAtEnd(c.cloneNode(!0))})},insertDomFragmentBefore:function(a,b,c){for(var e=0,g=a.childNodes.length;e<g;e++){var f=a.childNodes.item(e);(f=3===f.nodeType?f.nodeValue:d(f).html())&&d("<"+c+"/>").html(d.trim(f)).insertBefore(b)}},domFragmentToHtml:function(a,b){for(var c="",e=0,g=a.childNodes.length;e<g;e++){var f=a.childNodes.item(e);(f=3===f.nodeType?f.nodeValue:this.outerHtml(f))&&(c+=f)}b&&(c=d("<"+b+
207
- ">"+c+"</"+b+">"),c.find("p").wrapInner("<"+b+"/>"),c.find("p > *").unwrap(),c=d("<div></div>").html(c).html());return c},selectionExists:function(a){var b=!1;this.eachRange(function(a){this.isEmpty(a)||(b=!0)},a);return b},isEmpty:function(a){return a.startOffset===a.endOffset&&a.startContainer===a.endContainer},expandToParent:function(a){a.setStartBefore(a.startContainer);a.setEndAfter(a.endContainer)},changeTag:function(a,b){this.insertDomFragmentBefore(a.extractContents(),a.startContainer,b);
208
- d(a.startContainer).remove()},tagSelection:function(a,b){this.tagSelectionWithin(a,null,b)},tagSelectionWithin:function(a,b,c){this.eachRange(function(c){this.isEmpty(c)?(this.expandToParent(c),b=d(b)[0],"undefined"!==typeof b&&c.startContainer===b&&c.endContainer===b?this.wrapInner(d(b),a):this.changeTag(c,a)):this.replaceRange(this.domFragmentToHtml(c.extractContents(),a),c)},c)},isElementValid:function(a,b){return-1!==d.inArray(d(a)[0].tagName.toLowerCase(),b)},outerHtml:function(a){return d(a).clone().wrap("<div></div>").parent().html()},
209
- stripTags:function(a,b){allowed=[];for(var c=0;c<b.length;c++)b[c].match(/[a-z][a-z0-9]+/g)&&allowed.push("<"+b[c]+">");return a.replace(/<\!--[\s\S]*?--\>|<\?(?:php)?[\s\S]*?\?>/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,function(a,b){return-1<allowed.indexOf("<"+b.toLowerCase()+">")?a:""})}},namespace:null,unify:!0,persistence:!0,persistenceName:"uiEditor",unloadWarning:!0,autoEnable:!1,partialEdit:!1,enablePlugins:!0,disabledPlugins:[],uiOrder:null,enableUi:!0,disabledUi:[],message:{delay:5E3},
210
- replace:!1,replaceStyle:"display,position,float,width,padding-left,padding-right,padding-top,padding-bottom,margin-left,margin-right,margin-top,margin-bottom".split(","),baseClass:"ui-editor",cssPrefix:"cms-",draggable:!0},events:{},plugins:{},ui:{},instances:[],getInstances:function(){return this.instances},eachInstance:function(a){for(var b=0;b<this.instances.length;b++)a.call(this.instances[b],this.instances[b])},urlPrefix:"/jquery-raptor/",templates:{"paste.dialog":'<div class="ui-editor-paste-panel ui-dialog-content ui-widget-content">\n <div class="ui-editor-paste-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all">\n <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">\n <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a>_(\'Plain Text\')</a></li>\n <li class="ui-state-default ui-corner-top"><a>_(\'Formatted &amp; Cleaned\')</a></li>\n <li class="ui-state-default ui-corner-top"><a>_(\'Formatted Unclean\')</a></li>\n <li class="ui-state-default ui-corner-top"><a>_(\'Source Code\')</a></li>\n </ul>\n <label class="ui-editor-paste-synchronize-text" title="Synchronize changes to text across the three tabs">\n <input type="checkbox" value="synchronize" name="synchronizeText" class="synchronizeText"/>\n Synchronize\n </label>\n <div class="ui-editor-paste-plain-tab">\n <textarea class="ui-editor-paste-area ui-editor-paste-plain">{{plain}}</textarea>\n </div>\n <div class="ui-editor-paste-markup-tab" style="display: none">\n <div contenteditable="true" class="ui-editor-paste-area ui-editor-paste-markup">{{markup}}</div>\n </div>\n <div class="ui-editor-paste-rich-tab" style="display: none">\n <div contenteditable="true" class="ui-editor-paste-area ui-editor-paste-rich">{{html}}</div>\n </div>\n <div class="ui-editor-paste-source-tab" style="display: none">\n <textarea class="ui-editor-paste-area ui-editor-paste-source">{{html}}</textarea>\n </div>\n </div>\n</div>\n',
211
- "imageresize.manually-resize-image":'<div>\n <fieldset>\n <label for="{{baseClass}}-width">_(\'Image width\')</label>\n <input id="{{baseClass}}-width" name="width" type="text" value="{{width}}" placeholder="_(\'Image width\')"/>\n </fieldset>\n <fieldset>\n <label for="{{baseClass}}-height">_(\'Image height\')</label>\n <input id="{{baseClass}}-height" name="height" type="text" value="{{height}}" placeholder="_(\'Image height\')"/>\n </fieldset>\n</div>',"viewsource.dialog":'<div style="display:none" class="{{baseClass}}-dialog">\n <div class="{{baseClass}}-plain-text" style="display:none">\n <textarea></textarea>\n </div>\n <div class="{{baseClass}}-highlighted" style="display:none">\n <pre id="{{baseClass}}-rainbow"><code data-language="html"></code></pre>\n </div>\n</div>\n',
108
+ rangy.createModule("WrappedSelection",function(b,r){function o(a){return(a||window).getSelection()}function u(a){return(a||window).document.selection}function s(a,b,c){var d=c?"end":"start",c=c?"start":"end";a.anchorNode=b[d+"Container"];a.anchorOffset=b[d+"Offset"];a.focusNode=b[c+"Container"];a.focusOffset=b[c+"Offset"]}function t(a){a.anchorNode=a.focusNode=null;a.anchorOffset=a.focusOffset=0;a.rangeCount=0;a.isCollapsed=!0;a._ranges.length=0}function f(d){var e;d instanceof a?(e=d._selectionNativeRange,e||
109
+ (e=b.createNativeRange(h.getDocument(d.startContainer)),e.setEnd(d.endContainer,d.endOffset),e.setStart(d.startContainer,d.startOffset),d._selectionNativeRange=e,d.attachListener("detach",function(){this._selectionNativeRange=null}))):d instanceof c?e=d.nativeRange:b.features.implementsDomRange&&d instanceof h.getWindow(d.startContainer).Range&&(e=d);return e}function w(a){var b=a.getNodes(),c;a:if(!b.length||1!=b[0].nodeType)c=!1;else{c=1;for(var d=b.length;c<d;++c)if(!h.isAncestorOf(b[0],b[c])){c=
110
+ !1;break a}c=!0}if(!c)throw Error("getSingleElementFromRange: range "+a.inspect()+" did not consist of a single element");return b[0]}function v(a,b){var d=new c(b);a._ranges=[d];s(a,d,!1);a.rangeCount=1;a.isCollapsed=d.collapsed}function q(a){a._ranges.length=0;if("None"==a.docSelection.type)t(a);else{var c=a.docSelection.createRange();if(c&&"undefined"!=typeof c.text)v(a,c);else{a.rangeCount=c.length;for(var d,e=h.getDocument(c.item(0)),i=0;i<a.rangeCount;++i)d=b.createRange(e),d.selectNode(c.item(i)),
111
+ a._ranges.push(d);a.isCollapsed=1==a.rangeCount&&a._ranges[0].collapsed;s(a,a._ranges[a.rangeCount-1],!1)}}}function n(a,b){for(var c=a.docSelection.createRange(),d=w(b),e=h.getDocument(c.item(0)),e=h.getBody(e).createControlRange(),i=0,g=c.length;i<g;++i)e.add(c.item(i));try{e.add(d)}catch(E){throw Error("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)");}e.select();q(a)}function j(a,b,c){this.nativeSelection=a;this.docSelection=b;this._ranges=
112
+ [];this.win=c;this.refresh()}function m(a,b){for(var c=h.getDocument(b[0].startContainer),c=h.getBody(c).createControlRange(),d=0,e;d<rangeCount;++d){e=w(b[d]);try{c.add(e)}catch(i){throw Error("setRanges(): Element within the one of the specified Ranges could not be added to control selection (does it have layout?)");}}c.select();q(a)}function g(a,b){if(a.anchorNode&&h.getDocument(a.anchorNode)!==h.getDocument(b))throw new d("WRONG_DOCUMENT_ERR");}function p(b){var c=[],d=new e(b.anchorNode,b.anchorOffset),
113
+ i=new e(b.focusNode,b.focusOffset),g="function"==typeof b.getName?b.getName():"Selection";if("undefined"!=typeof b.rangeCount)for(var E=0,f=b.rangeCount;E<f;++E)c[E]=a.inspect(b.getRangeAt(E));return"["+g+"(Ranges: "+c.join(", ")+")(anchor: "+d.inspect()+", focus: "+i.inspect()+"]"}b.requireModules(["DomUtil","DomRange","WrappedRange"]);b.config.checkSelectionRanges=!0;var h=b.dom,l=b.util,a=b.DomRange,c=b.WrappedRange,d=b.DOMException,e=h.DomPosition,i,A,y=b.util.isHostMethod(window,"getSelection"),
114
+ F=b.util.isHostObject(document,"selection"),z=F&&(!y||b.config.preferTextRange);z?(i=u,b.isSelectionValid=function(a){var a=(a||window).document,b=a.selection;return"None"!=b.type||h.getDocument(b.createRange().parentElement())==a}):y?(i=o,b.isSelectionValid=function(){return!0}):r.fail("Neither document.selection or window.getSelection() detected.");b.getNativeSelection=i;var y=i(),I=b.createNativeRange(document),G=h.getBody(document),D=l.areHostObjects(y,l.areHostProperties(y,["anchorOffset","focusOffset"]));
115
+ b.features.selectionHasAnchorAndFocus=D;var E=l.isHostMethod(y,"extend");b.features.selectionHasExtend=E;var H="number"==typeof y.rangeCount;b.features.selectionHasRangeCount=H;var N=!1,P=!0;l.areHostMethods(y,["addRange","getRangeAt","removeAllRanges"])&&"number"==typeof y.rangeCount&&b.features.implementsDomRange&&function(){var a=document.createElement("iframe");a.frameBorder=0;a.style.position="absolute";a.style.left="-10000px";G.appendChild(a);var b=h.getIframeDocument(a);b.open();b.write("<html><head></head><body>12</body></html>");
116
+ b.close();var c=h.getIframeWindow(a).getSelection(),d=b.documentElement.lastChild.firstChild,b=b.createRange();b.setStart(d,1);b.collapse(true);c.addRange(b);P=c.rangeCount==1;c.removeAllRanges();var e=b.cloneRange();b.setStart(d,0);e.setEnd(d,2);c.addRange(b);c.addRange(e);N=c.rangeCount==2;b.detach();e.detach();G.removeChild(a)}();b.features.selectionSupportsMultipleRanges=N;b.features.collapsedNonEditableSelectionsSupported=P;var B=!1,k;G&&l.isHostMethod(G,"createControlRange")&&(k=G.createControlRange(),
117
+ l.areHostProperties(k,["item","add"])&&(B=!0));b.features.implementsControlRange=B;A=D?function(a){return a.anchorNode===a.focusNode&&a.anchorOffset===a.focusOffset}:function(a){return a.rangeCount?a.getRangeAt(a.rangeCount-1).collapsed:false};var J;l.isHostMethod(y,"getRangeAt")?J=function(a,b){try{return a.getRangeAt(b)}catch(c){return null}}:D&&(J=function(a){var c=h.getDocument(a.anchorNode),c=b.createRange(c);c.setStart(a.anchorNode,a.anchorOffset);c.setEnd(a.focusNode,a.focusOffset);if(c.collapsed!==
118
+ this.isCollapsed){c.setStart(a.focusNode,a.focusOffset);c.setEnd(a.anchorNode,a.anchorOffset)}return c});b.getSelection=function(a){var a=a||window,b=a._rangySelection,c=i(a),d=F?u(a):null;if(b){b.nativeSelection=c;b.docSelection=d;b.refresh(a)}else{b=new j(c,d,a);a._rangySelection=b}return b};b.getIframeSelection=function(a){return b.getSelection(h.getIframeWindow(a))};k=j.prototype;if(!z&&D&&l.areHostMethods(y,["removeAllRanges","addRange"])){k.removeAllRanges=function(){this.nativeSelection.removeAllRanges();
119
+ t(this)};var C=function(c,d){var e=a.getRangeDocument(d),e=b.createRange(e);e.collapseToPoint(d.endContainer,d.endOffset);c.nativeSelection.addRange(f(e));c.nativeSelection.extend(d.startContainer,d.startOffset);c.refresh()};k.addRange=H?function(d,e){if(B&&F&&this.docSelection.type=="Control")n(this,d);else if(e&&E)C(this,d);else{var i;if(N)i=this.rangeCount;else{this.removeAllRanges();i=0}this.nativeSelection.addRange(f(d));this.rangeCount=this.nativeSelection.rangeCount;if(this.rangeCount==i+1){if(b.config.checkSelectionRanges)(i=
120
+ J(this.nativeSelection,this.rangeCount-1))&&!a.rangesEqual(i,d)&&(d=new c(i));this._ranges[this.rangeCount-1]=d;s(this,d,L(this.nativeSelection));this.isCollapsed=A(this)}else this.refresh()}}:function(a,b){if(b&&E)C(this,a);else{this.nativeSelection.addRange(f(a));this.refresh()}};k.setRanges=function(a){if(B&&a.length>1)m(this,a);else{this.removeAllRanges();for(var b=0,c=a.length;b<c;++b)this.addRange(a[b])}}}else if(l.isHostMethod(y,"empty")&&l.isHostMethod(I,"select")&&B&&z)k.removeAllRanges=
121
+ function(){try{this.docSelection.empty();if(this.docSelection.type!="None"){var a;if(this.anchorNode)a=h.getDocument(this.anchorNode);else if(this.docSelection.type=="Control"){var b=this.docSelection.createRange();b.length&&(a=h.getDocument(b.item(0)).body.createTextRange())}if(a){a.body.createTextRange().select();this.docSelection.empty()}}}catch(c){}t(this)},k.addRange=function(a){if(this.docSelection.type=="Control")n(this,a);else{c.rangeToTextRange(a).select();this._ranges[0]=a;this.rangeCount=
122
+ 1;this.isCollapsed=this._ranges[0].collapsed;s(this,a,false)}},k.setRanges=function(a){this.removeAllRanges();var b=a.length;b>1?m(this,a):b&&this.addRange(a[0])};else return r.fail("No means of selecting a Range or TextRange was found"),!1;k.getRangeAt=function(a){if(a<0||a>=this.rangeCount)throw new d("INDEX_SIZE_ERR");return this._ranges[a]};var K;if(z)K=function(a){var c;if(b.isSelectionValid(a.win))c=a.docSelection.createRange();else{c=h.getBody(a.win.document).createTextRange();c.collapse(true)}a.docSelection.type==
123
+ "Control"?q(a):c&&typeof c.text!="undefined"?v(a,c):t(a)};else if(l.isHostMethod(y,"getRangeAt")&&"number"==typeof y.rangeCount)K=function(a){if(B&&F&&a.docSelection.type=="Control")q(a);else{a._ranges.length=a.rangeCount=a.nativeSelection.rangeCount;if(a.rangeCount){for(var c=0,d=a.rangeCount;c<d;++c)a._ranges[c]=new b.WrappedRange(a.nativeSelection.getRangeAt(c));s(a,a._ranges[a.rangeCount-1],L(a.nativeSelection));a.isCollapsed=A(a)}else t(a)}};else if(D&&"boolean"==typeof y.isCollapsed&&"boolean"==
124
+ typeof I.collapsed&&b.features.implementsDomRange)K=function(a){var b;b=a.nativeSelection;if(b.anchorNode){b=J(b,0);a._ranges=[b];a.rangeCount=1;b=a.nativeSelection;a.anchorNode=b.anchorNode;a.anchorOffset=b.anchorOffset;a.focusNode=b.focusNode;a.focusOffset=b.focusOffset;a.isCollapsed=A(a)}else t(a)};else return r.fail("No means of obtaining a Range or TextRange from the user's selection was found"),!1;k.refresh=function(b){var c=b?this._ranges.slice(0):null;K(this);if(b){b=c.length;if(b!=this._ranges.length)return false;
125
+ for(;b--;)if(!a.rangesEqual(c[b],this._ranges[b]))return false;return true}};var M=function(a,b){var c=a.getAllRanges(),d=false;a.removeAllRanges();for(var e=0,i=c.length;e<i;++e)d||b!==c[e]?a.addRange(c[e]):d=true;a.rangeCount||t(a)};k.removeRange=B?function(a){if(this.docSelection.type=="Control"){for(var b=this.docSelection.createRange(),a=w(a),c=h.getDocument(b.item(0)),c=h.getBody(c).createControlRange(),d,e=false,i=0,g=b.length;i<g;++i){d=b.item(i);d!==a||e?c.add(b.item(i)):e=true}c.select();
126
+ q(this)}else M(this,a)}:function(a){M(this,a)};var L;!z&&D&&b.features.implementsDomRange?(L=function(a){var b=false;a.anchorNode&&(b=h.comparePoints(a.anchorNode,a.anchorOffset,a.focusNode,a.focusOffset)==1);return b},k.isBackwards=function(){return L(this)}):L=k.isBackwards=function(){return false};k.toString=function(){for(var a=[],b=0,c=this.rangeCount;b<c;++b)a[b]=""+this._ranges[b];return a.join("")};k.collapse=function(a,c){g(this,a);var d=b.createRange(h.getDocument(a));d.collapseToPoint(a,
127
+ c);this.removeAllRanges();this.addRange(d);this.isCollapsed=true};k.collapseToStart=function(){if(this.rangeCount){var a=this._ranges[0];this.collapse(a.startContainer,a.startOffset)}else throw new d("INVALID_STATE_ERR");};k.collapseToEnd=function(){if(this.rangeCount){var a=this._ranges[this.rangeCount-1];this.collapse(a.endContainer,a.endOffset)}else throw new d("INVALID_STATE_ERR");};k.selectAllChildren=function(a){g(this,a);var c=b.createRange(h.getDocument(a));c.selectNodeContents(a);this.removeAllRanges();
128
+ this.addRange(c)};k.deleteFromDocument=function(){if(B&&F&&this.docSelection.type=="Control"){for(var a=this.docSelection.createRange(),b;a.length;){b=a.item(0);a.remove(b);b.parentNode.removeChild(b)}this.refresh()}else if(this.rangeCount){a=this.getAllRanges();this.removeAllRanges();b=0;for(var c=a.length;b<c;++b)a[b].deleteContents();this.addRange(a[c-1])}};k.getAllRanges=function(){return this._ranges.slice(0)};k.setSingleRange=function(a){this.setRanges([a])};k.containsNode=function(a,b){for(var c=
129
+ 0,d=this._ranges.length;c<d;++c)if(this._ranges[c].containsNode(a,b))return true;return false};k.toHtml=function(){var b="";if(this.rangeCount){for(var b=a.getRangeDocument(this._ranges[0]).createElement("div"),c=0,d=this._ranges.length;c<d;++c)b.appendChild(this._ranges[c].cloneContents());b=b.innerHTML}return b};k.getName=function(){return"WrappedSelection"};k.inspect=function(){return p(this)};k.detach=function(){this.win=this.anchorNode=this.focusNode=this.win._rangySelection=null};j.inspect=
130
+ p;b.Selection=j;b.selectionPrototype=k;b.addCreateMissingNativeApiListener(function(a){if(typeof a.getSelection=="undefined")a.getSelection=function(){return b.getSelection(this)};a=null})});
131
+ rangy.createModule("CssClassApplier",function(b,r){function o(a,b){return a.className&&RegExp("(?:^|\\s)"+b+"(?:\\s|$)").test(a.className)}function u(a,b){a.className?o(a,b)||(a.className+=" "+b):a.className=b}function s(a){return a.split(/\s+/).sort().join(" ")}function t(a,b){return s(a.className)==s(b.className)}function f(a){for(var b=a.parentNode;a.hasChildNodes();)b.insertBefore(a.firstChild,a);b.removeChild(a)}function w(a,b){var c=a.cloneRange();c.selectNodeContents(b);var d=c.intersection(a),
132
+ d=d?d.toString():"";c.detach();return""!=d}function v(a){return a.getNodes([3],function(b){return w(a,b)})}function q(a,b){if(a.attributes.length!=b.attributes.length)return!1;for(var c=0,d=a.attributes.length,e,i;c<d;++c)if(e=a.attributes[c],i=e.name,"class"!=i&&(i=b.attributes.getNamedItem(i),e.specified!=i.specified||e.specified&&e.nodeValue!==i.nodeValue))return!1;return!0}function n(a,b){for(var c=0,e=a.attributes.length,i;c<e;++c)if(i=a.attributes[c].name,(!b||!d.arrayContains(b,i))&&a.attributes[c].specified&&
133
+ "class"!=i)return!0;return!1}function j(a){var b;return a&&1==a.nodeType&&((b=a.parentNode)&&9==b.nodeType&&"on"==b.designMode||A(a)&&!A(a.parentNode))}function m(a){return(A(a)||1!=a.nodeType&&A(a.parentNode))&&!j(a)}function g(a){return a&&1==a.nodeType&&!y.test(i(a,"display"))}function p(a){if(0==a.data.length)return!0;if(F.test(a.data))return!1;switch(i(a.parentNode,"whiteSpace")){case "pre":case "pre-wrap":case "-moz-pre-wrap":return!1;case "pre-line":if(/[\r\n]/.test(a.data))return!1}return g(a.previousSibling)||
134
+ g(a.nextSibling)}function h(a,b,c,e){var i,g=0==c;if(d.isAncestorOf(b,a))return a;if(d.isCharacterDataNode(b))if(0==c)c=d.getNodeIndex(b),b=b.parentNode;else if(c==b.length)c=d.getNodeIndex(b)+1,b=b.parentNode;else throw r.createError("splitNodeAt should not be called with offset in the middle of a data node ("+c+" in "+b.data);if(d.isCharacterDataNode(b)?0==c?b.previousSibling:c==b.length?b.nextSibling:1:0<c&&c<b.childNodes.length){if(!i){i=b.cloneNode(!1);for(i.id&&i.removeAttribute("id");g=b.childNodes[c];)i.appendChild(g);
135
+ d.insertAfter(i,b)}return b==a?i:h(a,i.parentNode,d.getNodeIndex(i),e)}return a!=b?(i=b.parentNode,b=d.getNodeIndex(b),g||b++,h(a,i,b,e)):a}function l(a){var b=a?"nextSibling":"previousSibling";return function(c,d){var e=c.parentNode,i=c[b];if(i){if(i&&3==i.nodeType)return i}else if(d&&(i=e[b])&&1==i.nodeType&&e.tagName==i.tagName&&t(e,i)&&q(e,i))return i[a?"firstChild":"lastChild"];return null}}function a(a){this.firstTextNode=(this.isElementMerge=1==a.nodeType)?a.lastChild:a;this.textNodes=[this.firstTextNode]}
136
+ function c(a,b,c){this.cssClass=a;var d,e,i=null;if("object"==typeof b&&null!==b){c=b.tagNames;i=b.elementProperties;for(d=0;e=G[d++];)b.hasOwnProperty(e)&&(this[e]=b[e]);d=b.normalize}else d=b;this.normalize="undefined"==typeof d?!0:d;this.attrExceptions=[];d=document.createElement(this.elementTagName);this.elementProperties={};for(var g in i)i.hasOwnProperty(g)&&(D.hasOwnProperty(g)&&(g=D[g]),d[g]=i[g],this.elementProperties[g]=d[g],this.attrExceptions.push(g));this.elementSortedClassName=this.elementProperties.hasOwnProperty("className")?
137
+ s(this.elementProperties.className+" "+a):a;this.applyToAnyTagName=!1;a=typeof c;if("string"==a)"*"==c?this.applyToAnyTagName=!0:this.tagNames=c.toLowerCase().replace(/^\s\s*/,"").replace(/\s\s*$/,"").split(/\s*,\s*/);else if("object"==a&&"number"==typeof c.length){this.tagNames=[];d=0;for(a=c.length;d<a;++d)"*"==c[d]?this.applyToAnyTagName=!0:this.tagNames.push(c[d].toLowerCase())}else this.tagNames=[this.elementTagName]}b.requireModules(["WrappedSelection","WrappedRange"]);var d=b.dom,e=function(){function a(b,
138
+ c,d){return c&&d?" ":""}return function(b,c){b.className&&(b.className=b.className.replace(RegExp("(?:^|\\s)"+c+"(?:\\s|$)"),a))}}(),i;"undefined"!=typeof window.getComputedStyle?i=function(a,b){return d.getWindow(a).getComputedStyle(a,null)[b]}:"undefined"!=typeof document.documentElement.currentStyle?i=function(a,b){return a.currentStyle[b]}:r.fail("No means of obtaining computed style properties found");var A;(function(){A="boolean"==typeof document.createElement("div").isContentEditable?function(a){return a&&
139
+ 1==a.nodeType&&a.isContentEditable}:function(a){return!a||1!=a.nodeType||"false"==a.contentEditable?!1:"true"==a.contentEditable||A(a.parentNode)}})();var y=/^inline(-block|-table)?$/i,F=/[^\r\n\t\f \u200B]/,z=l(!1),I=l(!0);a.prototype={doMerge:function(){for(var a=[],b,c,d=0,e=this.textNodes.length;d<e;++d)b=this.textNodes[d],c=b.parentNode,a[d]=b.data,d&&(c.removeChild(b),c.hasChildNodes()||c.parentNode.removeChild(c));return this.firstTextNode.data=a=a.join("")},getLength:function(){for(var a=
140
+ this.textNodes.length,b=0;a--;)b+=this.textNodes[a].length;return b},toString:function(){for(var a=[],b=0,c=this.textNodes.length;b<c;++b)a[b]="'"+this.textNodes[b].data+"'";return"[Merge("+a.join(",")+")]"}};var G=["elementTagName","ignoreWhiteSpace","applyToEditableOnly"],D={"class":"className"};c.prototype={elementTagName:"span",elementProperties:{},ignoreWhiteSpace:!0,applyToEditableOnly:!1,hasClass:function(a){return 1==a.nodeType&&d.arrayContains(this.tagNames,a.tagName.toLowerCase())&&o(a,
141
+ this.cssClass)},getSelfOrAncestorWithClass:function(a){for(;a;){if(this.hasClass(a,this.cssClass))return a;a=a.parentNode}return null},isModifiable:function(a){return!this.applyToEditableOnly||m(a)},isIgnorableWhiteSpaceNode:function(a){return this.ignoreWhiteSpace&&a&&3==a.nodeType&&p(a)},postApply:function(b,c,d){for(var e=b[0],i=b[b.length-1],g=[],f,h=e,A=i,p=0,l=i.length,y,m,j=0,n=b.length;j<n;++j)if(y=b[j],m=z(y,!d)){if(f||(f=new a(m),g.push(f)),f.textNodes.push(y),y===e&&(h=f.firstTextNode,
142
+ p=h.length),y===i)A=f.firstTextNode,l=f.getLength()}else f=null;if(b=I(i,!d))f||(f=new a(i),g.push(f)),f.textNodes.push(b);if(g.length){j=0;for(n=g.length;j<n;++j)g[j].doMerge();c.setStart(h,p);c.setEnd(A,l)}},createContainer:function(a){a=a.createElement(this.elementTagName);b.util.extend(a,this.elementProperties);u(a,this.cssClass);return a},applyToTextNode:function(a){var b=a.parentNode;1==b.childNodes.length&&d.arrayContains(this.tagNames,b.tagName.toLowerCase())?u(b,this.cssClass):(b=this.createContainer(d.getDocument(a)),
143
+ a.parentNode.insertBefore(b,a),b.appendChild(a))},isRemovable:function(a){var b;if(b=a.tagName.toLowerCase()==this.elementTagName)if(b=s(a.className)==this.elementSortedClassName){var c;a:{b=this.elementProperties;for(c in b)if(b.hasOwnProperty(c)&&a[c]!==b[c]){c=!1;break a}c=!0}b=c&&!n(a,this.attrExceptions)&&this.isModifiable(a)}return b},undoToTextNode:function(a,b,c){b.containsNode(c)||(a=b.cloneRange(),a.selectNode(c),a.isPointInRange(b.endContainer,b.endOffset)&&(h(c,b.endContainer,b.endOffset,
144
+ [b]),b.setEndAfter(c)),a.isPointInRange(b.startContainer,b.startOffset)&&(c=h(c,b.startContainer,b.startOffset,[b])));this.isRemovable(c)?f(c):e(c,this.cssClass)},applyToRange:function(a){a.splitBoundaries();var b=v(a);if(b.length){for(var c,d=0,e=b.length;d<e;++d)c=b[d],!this.isIgnorableWhiteSpaceNode(c)&&!this.getSelfOrAncestorWithClass(c)&&this.isModifiable(c)&&this.applyToTextNode(c);a.setStart(b[0],0);c=b[b.length-1];a.setEnd(c,c.length);this.normalize&&this.postApply(b,a,!1)}},applyToSelection:function(a){var a=
145
+ b.getSelection(a||window),c,d=a.getAllRanges();a.removeAllRanges();for(var e=d.length;e--;)c=d[e],this.applyToRange(c),a.addRange(c)},undoToRange:function(a){a.splitBoundaries();var b=v(a),c,d,e=b[b.length-1];if(b.length){for(var i=0,g=b.length;i<g;++i)c=b[i],(d=this.getSelfOrAncestorWithClass(c))&&this.isModifiable(c)&&this.undoToTextNode(c,a,d),a.setStart(b[0],0),a.setEnd(e,e.length);this.normalize&&this.postApply(b,a,!0)}},undoToSelection:function(a){var a=b.getSelection(a||window),c=a.getAllRanges(),
146
+ d;a.removeAllRanges();for(var e=0,i=c.length;e<i;++e)d=c[e],this.undoToRange(d),a.addRange(d)},getTextSelectedByRange:function(a,b){var c=b.cloneRange();c.selectNodeContents(a);var d=c.intersection(b),d=d?d.toString():"";c.detach();return d},isAppliedToRange:function(a){if(a.collapsed)return!!this.getSelfOrAncestorWithClass(a.commonAncestorContainer);for(var b=a.getNodes([3]),c=0,d;d=b[c++];)if(!this.isIgnorableWhiteSpaceNode(d)&&w(a,d)&&this.isModifiable(d)&&!this.getSelfOrAncestorWithClass(d))return!1;
147
+ return!0},isAppliedToSelection:function(a){for(var a=b.getSelection(a||window).getAllRanges(),c=a.length;c--;)if(!this.isAppliedToRange(a[c]))return!1;return!0},toggleRange:function(a){this.isAppliedToRange(a)?this.undoToRange(a):this.applyToRange(a)},toggleSelection:function(a){this.isAppliedToSelection(a)?this.undoToSelection(a):this.applyToSelection(a)},detach:function(){}};c.util={hasClass:o,addClass:u,removeClass:e,hasSameClasses:t,replaceWithOwnChildren:f,elementsHaveSameNonClassAttributes:q,
148
+ elementHasNonClassAttributes:n,splitNodeAt:h,isEditableElement:A,isEditingHost:j,isEditable:m};b.CssClassApplier=c;b.createCssClassApplier=function(a,b,d){return new c(a,b,d)}});
149
+ rangy.createModule("SaveRestore",function(b,r){function o(b,o){var n="selectionBoundary_"+ +new Date+"_"+(""+Math.random()).slice(2),j,m=f.getDocument(b.startContainer),g=b.cloneRange();g.collapse(o);j=m.createElement("span");j.id=n;j.style.lineHeight="0";j.style.display="none";j.className="rangySelectionBoundary";j.appendChild(m.createTextNode(w));g.insertNode(j);g.detach();return j}function u(b,f,n,j){(b=(b||document).getElementById(n))?(f[j?"setStartBefore":"setEndBefore"](b),b.parentNode.removeChild(b)):
150
+ r.warn("Marker element has been removed. Cannot restore selection.")}function s(b,f){return f.compareBoundaryPoints(b.START_TO_START,b)}function t(b,f){var n=(b||document).getElementById(f);n&&n.parentNode.removeChild(n)}b.requireModules(["DomUtil","DomRange","WrappedRange"]);var f=b.dom,w="\ufeff";b.saveSelection=function(f){var f=f||window,q=f.document;if(b.isSelectionValid(f)){var n=b.getSelection(f),j=n.getAllRanges(),m=[],g,p;j.sort(s);for(var h=0,l=j.length;h<l;++h)g=j[h],g.collapsed?(p=o(g,
151
+ !1),m.push({markerId:p.id,collapsed:!0})):(p=o(g,!1),g=o(g,!0),m[h]={startMarkerId:g.id,endMarkerId:p.id,collapsed:!1,backwards:1==j.length&&n.isBackwards()});for(h=l-1;0<=h;--h)g=j[h],g.collapsed?g.collapseBefore((q||document).getElementById(m[h].markerId)):(g.setEndBefore((q||document).getElementById(m[h].endMarkerId)),g.setStartAfter((q||document).getElementById(m[h].startMarkerId)));n.setRanges(j);return{win:f,doc:q,rangeInfos:m,restored:!1}}r.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus.")};
152
+ b.restoreSelection=function(f,o){if(!f.restored){for(var n=f.rangeInfos,j=b.getSelection(f.win),m=[],g=n.length,p=g-1,h,l;0<=p;--p){h=n[p];l=b.createRange(f.doc);if(h.collapsed)if(h=(f.doc||document).getElementById(h.markerId)){h.style.display="inline";var a=h.previousSibling;a&&3==a.nodeType?(h.parentNode.removeChild(h),l.collapseToPoint(a,a.length)):(l.collapseBefore(h),h.parentNode.removeChild(h))}else r.warn("Marker element has been removed. Cannot restore selection.");else u(f.doc,l,h.startMarkerId,
153
+ !0),u(f.doc,l,h.endMarkerId,!1);1==g&&l.normalizeBoundaries();m[p]=l}1==g&&o&&b.features.selectionHasExtend&&n[0].backwards?(j.removeAllRanges(),j.addRange(m[0],!0)):j.setRanges(m);f.restored=!0}};b.removeMarkerElement=t;b.removeMarkers=function(b){for(var f=b.rangeInfos,n=0,j=f.length,m;n<j;++n)m=f[n],m.collapsed?t(b.doc,m.markerId):(t(b.doc,m.startMarkerId),t(b.doc,m.endMarkerId))}});
154
+ rangy.createModule("Serializer",function(b,r){function o(b,f){var f=f||[],h=b.nodeType,l=b.childNodes,a=l.length,c=[h,b.nodeName,a].join(":"),d="",e="";switch(h){case 3:d=b.nodeValue.replace(/</g,"&lt;").replace(/>/g,"&gt;");break;case 8:d="<\!--"+b.nodeValue.replace(/</g,"&lt;").replace(/>/g,"&gt;")+"--\>";break;default:d="<"+c+">",e="</>"}d&&f.push(d);for(h=0;h<a;++h)o(l[h],f);e&&f.push(e);return f}function u(b){b=o(b).join("");return j(b).toString(16)}function s(b,f,h){for(var l=[],a=b,h=h||m.getDocument(b).documentElement;a&&
155
+ a!=h;)l.push(m.getNodeIndex(a,!0)),a=a.parentNode;return l.join("/")+":"+f}function t(b,f,h){f?h||m.getDocument(f):f=(h||document).documentElement;for(var b=b.split(":"),h=b[0]?b[0].split("/"):[],l=h.length,a;l--;)if(a=parseInt(h[l],10),a<f.childNodes.length)f=f.childNodes[parseInt(h[l],10)];else throw r.createError("deserializePosition failed: node "+m.inspectNode(f)+" has no child with index "+a+", "+l);return new m.DomPosition(f,parseInt(b[1],10))}function f(f,p,h){h=h||b.DomRange.getRangeDocument(f).documentElement;
156
+ if(!m.isAncestorOf(h,f.commonAncestorContainer,!0))throw Error("serializeRange: range is not wholly contained within specified root node");f=s(f.startContainer,f.startOffset,h)+","+s(f.endContainer,f.endOffset,h);p||(f+="{"+u(h)+"}");return f}function w(f,p,h){p?h=h||m.getDocument(p):(h=h||document,p=h.documentElement);var f=/^([^,]+),([^,\{]+)({([^}]+)})?$/.exec(f),l=f[4],a=u(p);if(l&&l!==u(p))throw Error("deserializeRange: checksums of serialized range root node ("+l+") and target root node ("+
157
+ a+") do not match");l=t(f[1],p,h);p=t(f[2],p,h);h=b.createRange(h);h.setStart(l.node,l.offset);h.setEnd(p.node,p.offset);return h}function v(b,f,h){f?h||m.getDocument(f):f=(h||document).documentElement;b=/^([^,]+),([^,]+)({([^}]+)})?$/.exec(b)[3];return!b||b===u(f)}function q(g,p,h){for(var g=g||b.getSelection(),g=g.getAllRanges(),l=[],a=0,c=g.length;a<c;++a)l[a]=f(g[a],p,h);return l.join("|")}function n(f,p,h){p?h=h||m.getWindow(p):(h=h||window,p=h.document.documentElement);for(var f=f.split("|"),
158
+ l=b.getSelection(h),a=[],c=0,d=f.length;c<d;++c)a[c]=w(f[c],p,h.document);l.setRanges(a);return l}b.requireModules(["WrappedSelection","WrappedRange"]);("undefined"==typeof encodeURIComponent||"undefined"==typeof decodeURIComponent)&&r.fail("Global object is missing encodeURIComponent and/or decodeURIComponent method");var j=function(){var b=null;return function(f){for(var h=[],l=0,a=f.length,c;l<a;++l)c=f.charCodeAt(l),128>c?h.push(c):2048>c?h.push(c>>6|192,c&63|128):h.push(c>>12|224,c>>6&63|128,
159
+ c&63|128);f=-1;if(!b){for(var l=[],a=0,d;256>a;++a){d=a;for(c=8;c--;)d=1==(d&1)?d>>>1^3988292384:d>>>1;l[a]=d>>>0}b=l}l=b;a=0;for(c=h.length;a<c;++a)d=(f^h[a])&255,f=f>>>8^l[d];return(f^-1)>>>0}}(),m=b.dom;b.serializePosition=s;b.deserializePosition=t;b.serializeRange=f;b.deserializeRange=w;b.canDeserializeRange=v;b.serializeSelection=q;b.deserializeSelection=n;b.canDeserializeSelection=function(b,f,h){var l;f?l=h?h.document:m.getDocument(f):f=(h||window).document.documentElement;for(var b=b.split("|"),
160
+ h=0,a=b.length;h<a;++h)if(!v(b[h],f,l))return!1;return!0};b.restoreSelectionFromCookie=function(b){var b=b||window,f;a:{f=b.document.cookie.split(/[;,]/);for(var h=0,l=f.length,a;h<l;++h)if(a=f[h].split("="),"rangySerializedSelection"==a[0].replace(/^\s+/,"")&&(a=a[1])){f=decodeURIComponent(a.replace(/\s+$/,""));break a}f=null}f&&n(f,b.doc)};b.saveSelectionCookie=function(f,j){var f=f||window,j="object"==typeof j?j:{},h=j.expires?";expires="+j.expires.toUTCString():"",l=j.path?";path="+j.path:"",
161
+ a=j.domain?";domain="+j.domain:"",c=j.secure?";secure":"",d=q(b.getSelection(f));f.document.cookie=encodeURIComponent("rangySerializedSelection")+"="+encodeURIComponent(d)+h+l+a+c};b.getElementChecksum=u});
162
+ (function(b,r,o,u){function s(a,b,d){g[a]=d;p[a]=b;m||(m=a)}function t(a){m!==a&&(m=a,b.ui.editor.eachInstance(function(){this.reinit()}))}function f(a,b){m&&g[m]&&g[m][a]&&(a=g[m][a]);if(!b)return a;for(var d in b)a=a.replace("{{"+d+"}}",b[d]);return a}function w(a){if(h===u){h=!0;if(l=/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent))b("html").addClass(a.options.baseClass+"-ios"),l&&b(document).bind("scroll",function(){setInterval(function(){b("body").css("height","+=1").css("height",
163
+ "-=1")},0)});b.browser.mozilla&&b("html").addClass(a.options.baseClass+"-ff");if(b.browser.msie&&9>b.browser.version){h=!1;var c=b("<div/>").addClass(a.options.baseClass+"-unsupported").html(a.getTemplate("unsupported")).appendTo("body");v(c);c.find("."+a.options.baseClass+"-unsupported-close").click(function(){c.remove()})}}return h}function v(a){var c=1;a.siblings().each(function(){var a=b(this).css("z-index");!isNaN(a)&&a>c&&(c=a+1)});a.css("z-index",c)}function q(a){return a.clone().wrap("<div/>").parent().html()}
164
+ function n(a,c){for(var d="",e=0,i=a.childNodes.length;e<i;e++){var f=a.childNodes.item(e);(f=3===f.nodeType?f.nodeValue:q(b(f)))&&(d+=f)}c&&(d=b("<"+c+">"+d+"</"+c+">"),d.find("p").wrapInner("<"+c+"/>"),d.find("p > *").unwrap(),d=b("<div/>").html(d).html());return d}function j(a,b,d){for(var b=b||o.getSelection(),e,i=0;e=b.getAllRanges()[i++];)a.call(d,e)}var m=null,g={},p={};b(function(){o.initialized||o.init();b.isFunction(o.rangePrototype.insertNodeAtEnd)||(o.rangePrototype.insertNodeAtEnd=function(a){var b=
165
+ this.cloneRange();b.collapse(!1);b.insertNode(a);b.detach();this.setEndAfter(a)})});b("html").click(function(){b(".ui-editor-selectmenu-visible").removeClass("ui-editor-selectmenu-visible")});b.widget("ui.editor",{_init:function(){-1===b.inArray(this,b.ui.editor.instances)&&b.ui.editor.instances.push(this);var a=this;b.ui.editor.eachInstance(function(b){a!=b&&a.element.closest(b.element).length&&handleError("Nesting editors is unsupported",a.element,b.element)});this.options=b.extend({},b.ui.editor.defaults,
166
+ this.options);this.options.uiOrder=this.options.uiOrder||[["logo"],["save","cancel"],["dock","showGuides","clean"],["viewSource"],["undo","redo"],["alignLeft","alignCenter","alignJustify","alignRight"],["textBold","textItalic","textUnderline","textStrike"],["textSuper","textSub"],["listUnordered","listOrdered"],["hr","quoteBlock"],["fontSizeInc","fontSizeDec"],["clearFormatting"],["link","unlink"],["embed"],["floatLeft","floatNone","floatRight"],["tagMenu"],["i18n"],["raptorize"],["length"],["debugReinit",
167
+ "debugDestroy"]];this.element.attr("id")||this.element.attr("id",this.getUniqueId());this.ready=!1;this.events={};this.ui={};this.plugins={};this.templates=b.extend({},b.ui.editor.templates);this.path=this.toolbarWrapper=this.toolbar=this.wrapper=null;this.visible=this.enabled=!1;this.uiObjects={};for(var c in this.options.bind)this.bind(c,this.options.bind[c]);this.history=[];this.present=0;this.historyEnabled=!0;w(this)&&(this.cloneDomTools(),this.setOriginalHtml(this.element.is(":input")?this.element.val():
168
+ this.element.html()),this.options.replace&&(this.replaceOriginal(),this.options.replace=!1),this.attach(),this.loadPlugins(),this.dirty=!1,this.previousSelection=this.previousContent=null,this.ready=!0,this.fire("ready"),this.options.autoEnable&&b(function(){a.enableEditing();a.showToolbar()}))},attach:function(){this.bind("change",this.historyPush);this.bind("selectionChange",this.updateTagTree);this.bind("show",this.updateTagTree);var a=b.proxy(this.checkChange,this);this.getElement().find("img").bind("click."+
169
+ this.widgetName,b.proxy(function(a){this.selectOuter(a.target)},this));this.getElement().bind("mouseup."+this.widgetName,a);this.getElement().bind("keyup."+this.widgetName,a);b(r).bind("beforeunload",b.proxy(b.ui.editor.unloadWarning,b.ui.editor))},reinit:function(){if(this.ready){var a=this.enabled,b=this.visible;this.destruct();this._init();a&&this.enableEditing();b&&this.showToolbar()}else{var d;d=function(){this.unbind("ready",d);this.reinit()};this.bind("ready",d)}},getElement:function(){return this.target?
170
+ this.target:this.element},getOriginalElement:function(){return this.element},replaceOriginal:function(){if(!this.target){for(var a=b("<div/>").html(this.element.is(":input")?this.element.val():this.element.html()).insertBefore(this.element).attr("id",this.getUniqueId()).addClass(this.element.attr("class")),c=this.options.domTools.getStyles(this.element),d=0;d<this.options.replaceStyle.length;d++)a.css(this.options.replaceStyle[d],c[this.options.replaceStyle[d]]);this.element.hide();this.bind("change",
171
+ function(){this.element.is("input")?this.element.val(this.getHtml()):this.element.html(this.getHtml())});this.target=a}},cloneDomTools:function(){for(var a in this.options.domTools)this[a]||(this[a]=function(a){return function(){this.options.domTools.constrainSelection(this.getElement());var b=this.getHtml(),e=this.options.domTools[a].apply(this.options.domTools,arguments);b!==this.getHtml()&&this.change();return e}}(a))},checkChange:function(){var a=o.serializeSelection();this.previousSelection!==
172
+ a&&this.fire("selectionChange");this.previousSelection=a;var a=this.getCleanHtml(),b=this.dirty;this.dirty=this.getOriginalHtml()!==a;this.previousHtml!==a&&(this.previousHtml=a,this.change(),b!==this.dirty&&(this.dirty?this.fire("dirty"):this.fire("cleaned")))},change:function(){this.fire("change")},destruct:function(){this.hideToolbar();this.disableEditing();this.fire("destroy",!1);this.events={};this.getElement().unbind("."+this.widgetName);this.wrapper&&this.wrapper.remove()},destroy:function(){this.destruct();
173
+ b.Widget.prototype.destroy.call(this)},persist:function(a,c){return!this.options.persistence?null:b.ui.editor.persist(a,c,this.options.namespace)},enableEditing:function(){this.isToolbarLoaded()||this.loadToolbar();this.enabled||(this.enabled=!0,this.getElement().addClass(this.options.baseClass+"-editing"),this.options.partialEdit?this.getElement().find(this.options.partialEdit).attr("contenteditable",!0):this.getElement().attr("contenteditable",!0),this.execCommand("enableInlineTableEditing",!1,
174
+ !1),this.execCommand("styleWithCSS",!0,!0),this.fire("enabled"),this.fire("resize"))},disableEditing:function(){this.enabled&&(this.enabled=!1,this.getElement().attr("contenteditable",!1).removeClass(this.options.baseClass+"-editing"),o.getSelection().removeAllRanges(),this.fire("disabled"))},isEditing:function(){return this.enabled},updateTagTree:function(){if(this.isEditing()){var a=this,c="",d=[],e=0;j(function(i){var i=i.commonAncestorContainer,f;f=3===i.nodeType?b(i).parent():b(i);i=[];for(d.push(i);f[0]&&
175
+ !a.isRoot(f)&&"body"!==f[0].tagName.toLowerCase();)i.push(f),f=f.parent();i.reverse();c&&(c+=" | ");c+=this.getTemplate("root");for(f=0;f<i.length;f++)c+=this.getTemplate("tag",{element:i[f][0].tagName.toLowerCase(),data:"["+e+","+f+"]"});e++},null,this);c||(c=this.getTemplate("root"));this.path.html(c).find("a").click(function(){var c=b(this).data("ui-editor-selection");c?(a.selectOuter(d[c[0]][c[1]]),a.updateTagTree()):a.selectOuter(a.getElement())});this.fire("tagTreeUpdated")}},isRoot:function(a){return this.getElement()[0]===
176
+ b(a)[0]},unify:function(a,c){!1!==c&&a(this);if(this.options.unify)for(var d=b.ui.editor.getInstances(),e=0;e<d.length;e++)d[e]!==this&&d[e].options.unify&&a(d[e])},getUniqueId:function(){return b.ui.editor.getUniqueId()},loadMessages:function(){this.messages=b(this.getTemplate("messages")).appendTo(this.wrapper)},showMessage:function(a,c,d){var d=b.extend({},this.options.message,d),e;e={timer:null,editor:this,show:function(){this.element.slideDown();this.timer=r.setTimeout(function(){this.timer=
177
+ null;e.hide()},d.delay,this)},hide:function(){this.timer&&(r.clearTimeout(this.timer),this.timer=null);this.element.stop().slideUp(b.proxy(function(){b.isFunction(d.hide)&&d.hide.call(this);this.element.remove()},this))}};e.element=b(this.getTemplate("message",{type:a,message:c})).hide().appendTo(this.messages).find(".ui-editor-message-close").click(function(){e.hide()}).end();e.show();return e},showLoading:function(a,b){return this.showMessage("clock",a,b)},showInfo:function(a,b){return this.showMessage("info",
178
+ a,b)},showError:function(a,b){return this.showMessage("circle-close",a,b)},showConfirm:function(a,b){return this.showMessage("circle-check",a,b)},showWarning:function(a,b){return this.showMessage("alert",a,b)},loadToolbar:function(){var a=this.toolbar=b("<div/>").addClass(this.options.baseClass+"-toolbar"),a=this.toolbarWrapper=b("<div/>").addClass(this.options.baseClass+"-toolbar-wrapper").addClass("ui-widget-content").append(a),c=this.path=b("<div/>").addClass(this.options.baseClass+"-path").addClass("ui-widget-header").html(this.getTemplate("root")),
179
+ d=this.wrapper=b("<div/>").addClass(this.options.baseClass+"-wrapper").css("display","none").append(c).append(a);b.fn.draggable&&this.options.draggable&&(d.draggable({cancel:"a, button",cursor:"move",handle:".ui-editor-path",stop:b.proxy(function(){var a=this.persist("position",[d.css("top"),d.css("left")]);d.css({top:Math.abs(a[0]),left:Math.abs(a[1])})},this)}),d.css("position",""),(a=this.persist("position")||this.options.dialogPosition)||(a=[10,10]),parseInt(a[0],10)+d.outerHeight()>b(r).height()&&
180
+ (a[0]=b(r).height()-d.outerHeight()),parseInt(a[1],10)+d.outerWidth()>b(r).width()&&(a[1]=b(r).width()-d.outerWidth()),d.css({top:Math.abs(parseInt(a[0])),left:Math.abs(parseInt(a[1]))}),this.loadMessages());b(function(){d.appendTo("body")});this.loadUi()},isToolbarLoaded:function(){return null!==this.wrapper},showToolbar:function(a){this.isToolbarLoaded()||this.loadToolbar();if(!this.visible){this.options.unify&&this.hideOtherToolbars(!0);this.visible=!0;this.wrapper.css("display","");this.fire("resize");
181
+ "undefined"===typeof this.getElement().attr("tabindex")&&this.getElement().attr("tabindex",-1);if(a)if(a.select)a.select();else{var c=r.getSelection();c.removeAllRanges();c.addRange(a)}var d=this;b(function(){d.fire("show");d.getElement().focus()})}},hideToolbar:function(){this.visible&&(this.visible=!1,this.wrapper.hide(),this.fire("hide"),this.fire("resize"))},hideOtherToolbars:function(a){this.unify(function(b){b.hideToolbar(a)},!1)},isVisible:function(){return this.visible},getTemplate:function(a,
182
+ c){var d;d=this.templates[a]?this.templates[a]:b.ui.editor.getTemplate(a,this.options.urlPrefix);d=d.replace(/_\('(.*?)'\)/g,function(a,b){b=b.replace(/\\(.?)/g,function(a,b){switch(b){case "\\":return"\\";case "0":return"\x00";case "":return"";default:return b}});return f(b)});c=b.extend({},this.options,c||{});c=this.getTemplateVars(c);return d=d.replace(/\{\{(.*?)\}\}/g,function(a,b){return c[b]})},getTemplateVars:function(a,b,d){b=b?b+".":"";d||(d=1);var e={},i;for(i in a)if("object"===typeof a[i]&&
183
+ 5>d){var f=this.getTemplateVars(a[i],b+i,++d),g;for(g in f)e[g]=f[g]}else e[b+i]=a[i];return e},historyPush:function(){this.historyEnabled&&this.getHtml()!==this.historyPeak()&&(this.present!==this.history.length-1&&(this.history=this.history.splice(0,this.present+1)),this.history.push(this.getHtml()),this.present=this.history.length-1)},historyPeak:function(){return!this.history.length?null:this.history[this.present]},historyBack:function(){0<this.present&&(this.present--,this.setHtml(this.history[this.present]),
184
+ this.historyEnabled=!1,this.change(),this.historyEnabled=!0)},historyForward:function(){this.present<this.history.length-1&&(this.present++,this.setHtml(this.history[this.present]),this.historyEnabled=!1,this.change(),this.historyEnabled=!0)},uiEnabled:function(a){return!1===this.options.enableUi&&"undefined"===typeof this.options.ui[a]||!1===this.options.ui[a]||-1!==b.inArray(a,this.options.disabledUi)?!1:!0},getUi:function(a){return this.uiObjects[a]},loadUi:function(){for(var a=0,c=this.options.uiOrder.length;a<
185
+ c;a++){for(var d=this.options.uiOrder[a],e=b("<div/>"),i=0,f=d.length;i<f;i++)if(this.uiEnabled(d[i])){var g=d[i].replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()});if(b.ui.editor.ui[d[i]]){var h=b.extend({},b.ui.editor.ui[d[i]]),g=b.extend(!0,{},this.options,{baseClass:this.options.baseClass+"-ui-"+g},h.options,this.options.ui[d[i]]);h.editor=this;h.options=g;h.ui=h.init(this,g);h.ui.init(d[i],this,g,h).appendTo(e);this.uiObjects[d[i]]=h}}e.addClass("ui-buttonset").addClass(this.options.baseClass+
186
+ "-buttonset");0<e.children().length&&e.appendTo(this.toolbar)}b("<div/>").css("clear","both").appendTo(this.toolbar)},uiButton:function(a){return b.extend({button:null,options:{},init:function(a,d,e,i){var g=a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()}),e=b.extend({},d.options,{baseClass:d.options.baseClass+"-"+g+"-button"},this.options,d.options.ui[a]);this.title||(this.title=f("Unnamed Button"));this.button=b("<div/>").html(this.label||this.title).addClass(e.baseClass).attr("name",
187
+ a).attr("title",this.title).val(a);e.classes&&this.button.addClass(e.classes);this.button.bind("mousedown."+i.editor.widgetName,function(a){a.preventDefault()});var h=this;this.button.bind("mouseup."+i.editor.widgetName,function(a){a.preventDefault();h.click.apply(i,arguments)});d.bind("destroy",b.proxy(function(){this.button.button("destroy").remove()},this));this.button.button({icons:{primary:this.icon||"ui-icon-"+g},disabled:e.disabled?!0:!1,text:this.text||!1,label:this.label||null});this.ready.call(i);
188
+ return this.button},disable:function(){this.button.button("option","disabled",!0)},enable:function(){this.button.button("option","disabled",!1)},ready:function(){},click:function(){}},a)},uiSelectMenu:function(a){return b.extend({select:null,selectMenu:null,button:null,menu:null,options:{},init:function(a,d){var e=this,i=a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()});b.extend({},d.options,{baseClass:d.options.baseClass+i+"-select-menu"},e.options,d.options.ui[a]);e.title||(e.title=f("Unnamed Select Menu"));
189
+ e.wrapper=b('<div class="ui-editor-selectmenu-wrapper"/>').append(e.select.hide());e.selectMenu=b('<div class="ui-editor-selectmenu"/>').appendTo(e.wrapper);e.menu=b('<div class="ui-editor-selectmenu-menu ui-widget-content ui-corner-bottom ui-corner-tr"/>').appendTo(e.wrapper);e.select.find("option").each(function(){b("<div/>").addClass("ui-editor-selectmenu-menu-item").addClass("ui-corner-all").html(b(this).html()).appendTo(e.menu).bind("mouseenter."+d.widgetName,function(){b(this).addClass("ui-state-focus")}).bind("mouseleave."+
190
+ d.widgetName,function(){b(this).removeClass("ui-state-focus")}).bind("mousedown."+d.widgetName,function(){return false}).bind("click."+d.widgetName,function(){var a=e.select.find("option").eq(b(this).index());e.select.val(a.val());e.update();e.wrapper.removeClass("ui-editor-selectmenu-visible");e.button.addClass("ui-corner-all").removeClass("ui-corner-top");e.change(e.select.val());return false})});var i=b("<div/>").addClass("ui-editor-selectmenu-text"),g=b("<div/>").addClass("ui-icon ui-icon-triangle-1-s");
191
+ e.button=b("<div/>").addClass("ui-editor-selectmenu-button ui-editor-selectmenu-button ui-button ui-state-default").attr("title",e.title).append(i).append(g).prependTo(e.selectMenu);e.button.bind("mousedown."+d.widgetName,function(){return false}).bind("click."+d.widgetName,function(){if(!b(this).hasClass("ui-state-disabled")){e.menu.css("min-width",e.button.outerWidth()+10);e.wrapper.toggleClass("ui-editor-selectmenu-visible");return false}}).bind("mouseenter."+d.widgetName,function(){b(this).hasClass("ui-state-disabled")||
192
+ b(this).addClass("ui-state-hover",b(this).hasClass("ui-state-disabled"))}).bind("mouseleave."+d.widgetName,function(){b(this).removeClass("ui-state-hover")});i=e.select.find("option[value="+e.select.val()+"]").html();e.button.find(".ui-editor-selectmenu-text").html(i);return e.wrapper},update:function(){var a=this.select.find("option[value="+this.select.val()+"]").html();this.button.find(".ui-editor-selectmenu-text").html(a)},val:function(){var a=this.select.val.apply(this.select,arguments);this.update();
193
+ return a},change:function(){}},a)},getPlugin:function(a){return this.plugins[a]},loadPlugins:function(){this.options.plugins||(this.options.plugins={});for(var a in b.ui.editor.plugins)if(!(!1===this.options.enablePlugins&&"undefined"===typeof this.options.plugins[a]||!1===this.options.plugins[a])&&-1===b.inArray(a,this.options.disabledPlugins)){var c=b.extend({},b.ui.editor.plugins[a]),d=a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()}),d=b.extend(!0,{},this.options,{baseClass:this.options.baseClass+
194
+ "-"+d},c.options,this.options.plugins[a]);c.editor=this;c.options=d;c.init(this,d);this.plugins[a]=c}},isDirty:function(){return this.dirty},getHtml:function(){var a=this.getElement().html(),a=b("<div/>").html(a);a.find(".rangySelectionBoundary").remove();return a=a.html()},getCleanHtml:function(){this.fire("clean");var a=this.getElement().html();this.fire("restore");a=b("<div/>").html(a);a.find(".rangySelectionBoundary").remove();return a=a.html()},setHtml:function(a){this.getElement().html(a);this.fire("html");
195
+ this.change()},resetHtml:function(){this.setHtml(this.getOriginalHtml());this.fire("cleaned")},getOriginalHtml:function(){return this.originalHtml},save:function(){var a=this.getCleanHtml();this.fire("save");this.setOriginalHtml(a);this.fire("saved");this.fire("cleaned");return a},setOriginalHtml:function(a){this.originalHtml=a},bind:function(a,c,d){var e=this.events;b.each(a.split(","),function(a,f){f=b.trim(f);e[f]||(e[f]=[]);e[f].push({context:d,callback:c})})},unbind:function(a,b,d){for(var e=
196
+ 0,f=this.events[a].length;e<f;e++)this.events[a][e]&&this.events[a][e].callback===b&&this.events[a][e].context===d&&this.events[a].splice(e,1)},fire:function(a,c,d){d||this.fire("before:"+a,c,!0);if(this.events[a])for(var e=0,f=this.events[a].length;e<f;e++){var g=this.events[a][e];"undefined"!==typeof g.callback&&g.callback.call(g.context||this)}!1!==c&&b.ui.editor.fire(a);d||this.fire("after:"+a,c,!0)}});b.extend(b.ui.editor,{defaults:{plugins:{},ui:{},bind:{},domTools:{savedSelection:!1,saveSelection:function(){this.savedSelection=
197
+ o.saveSelection()},restoreSelection:function(){this.savedSelection&&(o.restoreSelection(this.savedSelection),this.savedSelection=!1)},constrainSelection:function(a,c){var a=b(a)[0],c=c||o.getSelection(),d;b(c.getAllRanges()).each(function(e,f){d=3===this.commonAncestorContainer.nodeType?b(f.commonAncestorContainer).parent()[0]:f.commonAncestorContainer;a!==d&&!b.contains(a,d)&&c.removeRange(f)})},getSelectedElements:function(a){var b=new jQuery;j(function(a){b.push(this.getSelectedElement(a)[0])},
198
+ a,this);return b},getSelectedElement:function(a){a=a||o.getSelection().getRangeAt(0);return b(3===a.commonAncestorContainer.nodeType?a.commonAncestorContainer.parentNode:a.commonAncestorContainer)},getSelectedHtml:function(a){a=a||o.getSelection();return a.toHtml()},getSelectionStartElement:function(){var a=o.getSelection();return a.isBackwards()?3===a.focusNode.nodeType?b(a.focusNode.parentElement):b(a.focusNode):3===a.anchorNode.nodeType?b(a.anchorNode.parentElement):b(a.anchorNode)},getSelectionEndElement:function(){var a=
199
+ o.getSelection();return a.isBackwards()?3===a.anchorNode.nodeType?b(a.anchorNode.parentElement):b(a.anchorNode):3===a.focusNode.nodeType?b(a.focusNode.parentElement):b(a.focusNode)},unwrapParentTag:function(a){this.getSelectedElements().each(function(){b(this).is(a)&&b(this).replaceWith(b(this).html())})},wrapTagWithAttribute:function(a,b,d){j(function(e){e=this.getSelectedElement(e);e.is(a)?e.attr(b):this.toggleWrapper(a,{classes:d,attributes:b})},null,this)},selectInner:function(a,c){c=c||o.getSelection();
200
+ c.removeAllRanges();b(a).focus().contents().each(function(){var a=o.createRange();a.selectNodeContents(this);c.addRange(a)})},selectOuter:function(a,c){c=c||o.getSelection();c.removeAllRanges();b(a).each(function(){var a=o.createRange();a.selectNode(this);c.addRange(a)}).focus()},selectEnd:function(a,c){c=c||o.getSelection();c.removeAllRanges();b(a).each(function(){var a=o.createRange();a.selectNodeContents(this);a.collapse();c.addRange(a)})},toggleWrapper:function(a,c){var c=c||{},d=o.createCssClassApplier(c.classes||
201
+ "",{normalize:!0,elementTagName:a,elementProperties:c.attributes||{}});j(function(e){this.rangeEmptyTag(e)?this.replaceRange(b("<"+a+"/>").addClass(c.classes).attr(c.attributes||{}).append(n(e.cloneContents())),e):d.toggleRange(e)},null,this)},rangeEmptyTag:function(a){a=a.cloneContents();a=n(a);"string"===typeof a&&(a=a.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g,"\\$1"));return b(a).is(":empty")?!0:!1},execCommand:function(a,b,d){try{document.execCommand(a,b,d)}catch(e){}},insertTag:function(a,c){j(function(c){c.insertNode(b("<"+
202
+ a+"/>")[0])},c,this)},insertTagAtEnd:function(a,c){j(function(c){c.insertNodeAtEnd(b("<"+a+"/>")[0])},c,this)},insertElement:function(a,c,d){j(function(d){b(a).each(function(){d.insertNode(!1===c?this:this.cloneNode(!0))})},d,this)},insertElementAtEnd:function(a,c,d){j(function(d){b(a).each(function(){d.insertNodeAtEnd(!1===c?this:this.cloneNode(!0))})},d,this)},toggleBlockStyle:function(a,c){j(function(d){for(d=b(d.commonAncestorContainer);d.length&&d[0]!==c[0]&&(3===d[0].nodeType||"inline"===d.css("display"));)d=
203
+ d.parent();d[0]===c[0]&&"inline"!==c.css("display")&&(this.wrapInner(c,"div"),d=c.children().first());this.toggleStyle(d,a)},null,this)},wrapInner:function(a,c){this.saveSelection();b(a).each(function(){var d=b("<"+c+"/>").html(b(this).html());a.html(d)});this.restoreSelection()},inverseWrapWithTagClass:function(a,c,d,e){this.saveSelection();var f="domTools"+Math.ceil(1E7*Math.random());j(function(a){var b=o.createCssClassApplier(e,{elementTagName:d});b.isAppliedToRange(a)?b.toggleSelection():o.createCssClassApplier(c,
204
+ {elementTagName:f}).toggleSelection()},null,this);b(f).each(function(){b(this).replaceWith(b("<"+a+"/>").addClass(c).html(b(this).html()))});this.restoreSelection()},toggleStyle:function(a,c){b.each(c,function(c,e){b(a).css(c)===e?b(a).css(c,""):b(a).css(c,e)})},getStyles:function(a){for(var b={},a=r.getComputedStyle(a[0],null),d=0;d<a.length;d++)b[a.item(d)]=a.getPropertyValue(a.item(d));return b},swapStyles:function(a,b,d){for(var e in d)a.css(e,b.css(e)),b.css(e,d[e])},replaceSelectionWithinValidTags:function(a,
205
+ b,d){var d=d||o.getSelection(),e=this.getSelectionStartElement()[0],f=this.getSelectionEndElement()[0],g=this.isElementValid(this.getSelectedElements()[0],b),e=this.isElementValid(e,b),b=this.isElementValid(f,b);g&&e&&b?this.replaceSelection(a):this.replaceSelectionSplittingSelectedElement(a,d)},replaceSelectionSplittingSelectedElement:function(a,c){var c=c||o.getSelection(),d=c.getRangeAt(0),e=this.getSelectedElements()[0],f=o.createRange();f.setStartBefore(e);f.setEnd(d.startContainer,d.startOffset);
206
+ var f=f.cloneContents(),g=o.createRange();g.setStart(d.endContainer,d.endOffset);g.setEndAfter(e);d=g.cloneContents();f=q(b(n(f)));f+=q(b(a));f+=q(b(n(d)));b(e).replaceWith(b(f))},replaceSelection:function(a,b){j(function(b){this.replaceRange(a,b)},b,this)},replaceRange:function(a,c){var d=b("<div/>").append(a)[0].childNodes;c.deleteContents();d.length===u||1===d.length?c.insertNode(d[0].cloneNode(!0)):b.each(d,function(a,b){c.insertNodeAtEnd(b.cloneNode(!0))})},insertDomFragmentBefore:function(a,
207
+ c,d){for(var e=0,f=a.childNodes.length;e<f;e++){var g=a.childNodes.item(e);(g=3===g.nodeType?g.nodeValue:b(g).html())&&b("<"+d+"/>").html(b.trim(g)).insertBefore(c)}},selectionExists:function(a){var b=!1;j(function(a){this.isEmpty(a)||(b=!0)},a,this);return b},isEmpty:function(a){return a.startOffset===a.endOffset&&a.startContainer===a.endContainer},isElementValid:function(a,c){return-1!==b.inArray(b(a)[0].tagName.toLowerCase(),c)},stripTags:function(a,b){allowed=[];for(var d=0;d<b.length;d++)b[d].match(/[a-z][a-z0-9]{0,}/g)&&
208
+ allowed.push(b[d]);return a.replace(/<\!--[\s\S]*?--\>|<\?(?:php)?[\s\S]*?\?>/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*\/?>/gi,function(a,b){return-1<allowed.indexOf(b.toLowerCase())?a:""})}},namespace:null,unify:!0,persistence:!0,persistenceName:"uiEditor",unloadWarning:!0,autoEnable:!1,partialEdit:!1,enablePlugins:!0,disabledPlugins:[],uiOrder:null,enableUi:!0,disabledUi:[],message:{delay:5E3},replace:!1,replaceStyle:"display,position,float,width,padding-left,padding-right,padding-top,padding-bottom,margin-left,margin-right,margin-top,margin-bottom".split(","),
209
+ baseClass:"ui-editor",cssPrefix:"cms-",draggable:!0},events:{},plugins:{},ui:{},instances:[],getInstances:function(){return this.instances},eachInstance:function(a){for(var b=0;b<this.instances.length;b++)a.call(this.instances[b],this.instances[b])},urlPrefix:"/jquery-raptor/",templates:{"paste.dialog":'<div class="ui-editor-paste-panel ui-dialog-content ui-widget-content">\n <div class="ui-editor-paste-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all">\n <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">\n <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a>_(\'Plain Text\')</a></li>\n <li class="ui-state-default ui-corner-top"><a>_(\'Formatted &amp; Cleaned\')</a></li>\n <li class="ui-state-default ui-corner-top"><a>_(\'Formatted Unclean\')</a></li>\n <li class="ui-state-default ui-corner-top"><a>_(\'Source Code\')</a></li>\n </ul>\n <label class="ui-editor-paste-synchronize-text" title="Synchronize changes to text across the three tabs">\n <input type="checkbox" value="synchronize" name="synchronizeText" class="synchronizeText"/>\n Synchronize\n </label>\n <div class="ui-editor-paste-plain-tab">\n <textarea class="ui-editor-paste-area ui-editor-paste-plain">{{plain}}</textarea>\n </div>\n <div class="ui-editor-paste-markup-tab" style="display: none">\n <div contenteditable="true" class="ui-editor-paste-area ui-editor-paste-markup">{{markup}}</div>\n </div>\n <div class="ui-editor-paste-rich-tab" style="display: none">\n <div contenteditable="true" class="ui-editor-paste-area ui-editor-paste-rich">{{html}}</div>\n </div>\n <div class="ui-editor-paste-source-tab" style="display: none">\n <textarea class="ui-editor-paste-area ui-editor-paste-source">{{html}}</textarea>\n </div>\n </div>\n</div>\n',
210
+ "imageresize.manually-resize-image":'<div>\n <fieldset>\n <label for="{{baseClass}}-width">_(\'Image width\')</label>\n <input id="{{baseClass}}-width" name="width" type="text" value="{{width}}" placeholder="_(\'Image width\')"/>\n </fieldset>\n <fieldset>\n <label for="{{baseClass}}-height">_(\'Image height\')</label>\n <input id="{{baseClass}}-height" name="height" type="text" value="{{height}}" placeholder="_(\'Image height\')"/>\n </fieldset>\n</div>',"viewsource.dialog":'<div style="display:none" class="{{baseClass}}-dialog">\n <div class="{{baseClass}}-plain-text">\n <textarea>{{source}}</textarea>\n </div>\n</div>\n',
212
211
  "clicktoedit.message":'<div class="{{baseClass}}-message" style="opacity: 0;">_(\'Click to begin editing\')</div>\n',"length.dialog":"<div>\n <ul>\n <li>{{characters}}</li>\n <li>{{words}}</li>\n <li>{{sentences}}</li>\n <li>{{truncation}}</li>\n </ul>\n</div>\n","i18n.menu":'<select autocomplete="off" name="tag" class="ui-editor-tag-select">\n <option value="na">_(\'N/A\')</option>\n <option value="p">_(\'Paragraph\')</option>\n <option value="h1">_(\'Heading&nbsp;1\')</option>\n <option value="h2">_(\'Heading&nbsp;2\')</option>\n <option value="h3">_(\'Heading&nbsp;3\')</option>\n <option value="div">_(\'Divider\')</option>\n</select>\n',
213
212
  "link.label":'<label>\n <input class="{{classes}}" type="radio" value="{{type}}" name="link-type" autocomplete="off"/>\n <span>{{title}}</span>\n</label>\n',"link.email":'<h2>_(\'Link to an email address\')</h2>\n<fieldset class="{{baseClass}}-email">\n <label for="{{baseClass}}-email">_(\'Email\')</label>\n <input id="{{baseClass}}-email" name="email" type="text" placeholder="_(\'Enter email address\')"/>\n</fieldset>\n<fieldset class="{{baseClass}}-email">\n <label for="{{baseClass}}-email-subject">_(\'Subject (optional)\')</label>\n <input id="{{baseClass}}-email-subject" name="subject" type="text" placeholder="_(\'Enter subject\')"/>\n</fieldset>\n',
214
213
  "link.error":'<div style="display:none" class="ui-widget {{baseClass}}-error-message {{messageClass}}">\n <div class="ui-state-error ui-corner-all"> \n <p>\n <span class="ui-icon ui-icon-alert"></span> \n {{message}}\n </p>\n </div>\n</div>',"link.dialog":'<div style="display:none" class="{{baseClass}}-panel">\n <div class="{{baseClass}}-menu">\n <p>_(\'Choose a link type:\')</p>\n <fieldset></fieldset>\n </div>\n <div class="{{baseClass}}-wrap">\n <div class="{{baseClass}}-content"></div>\n </div>\n</div>\n',
215
214
  "link.file-url":'<h2>_(\'Link to a document or other file\')</h2>\n<fieldset>\n <label for="{{baseClass}}-external-href">_(\'Location\')</label>\n <input id="{{baseClass}}-external-href" value="http://" name="location" class="{{baseClass}}-external-href" type="text" placeholder="_(\'Enter your URL\')" />\n</fieldset>\n<h2>_(\'New window\')</h2>\n<fieldset>\n <label for="{{baseClass}}-external-target">\n <input id="{{baseClass}}-external-target" name="blank" type="checkbox" />\n <span>_(\'Check this box to have the file open in a new browser window\')</span>\n </label>\n</fieldset>\n<h2>_(\'Not sure what to put in the box above?\')</h2>\n<ol>\n <li>_(\'Ensure the file has been uploaded to your website\')</li>\n <li>_(\'Open the uploaded file in your browser\')</li>\n <li>_(\'Copy the file\'s URL from your browser\'s address bar and paste it into the box above\')</li>\n</ol>\n',
216
215
  "link.external":'<h2>_(\'Link to a page on this or another website\')</h2>\n<fieldset>\n <label for="{{baseClass}}-external-href">_(\'Location\')</label>\n <input id="{{baseClass}}-external-href" value="http://" name="location" class="{{baseClass}}-external-href" type="text" placeholder="_(\'Enter your URL\')" />\n</fieldset>\n<h2>_(\'New window\')</h2>\n<fieldset>\n <label for="{{baseClass}}-external-target">\n <input id="{{baseClass}}-external-target" name="blank" type="checkbox" />\n <span>_(\'Check this box to have the link open in a new browser window\')</span>\n </label>\n</fieldset>\n<h2>_(\'Not sure what to put in the box above?\')</h2>\n<ol>\n <li>_(\'Find the page on the web you want to link to\')</li>\n <li>_(\'Copy the web address from your browser\'s address bar and paste it into the box above\')</li>\n</ol>\n',
217
216
  "embed.dialog":'<div style="display:none" class="{{baseClass}}-dialog">\n <div class="ui-editor-embed-panel-tabs ui-tabs ui-widget ui-widget-content ui-corner-all">\n <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">\n <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a>_(\'Embed Code\')</a></li>\n <li class="ui-state-default ui-corner-top"><a>_(\'Preview\')</a></li>\n </ul>\n <div class="ui-editor-embed-code-tab">\n <p>_(\'Paste your embed code into the text area below.\')</p>\n <textarea></textarea>\n </div>\n <div class="ui-editor-preview-tab" style="display: none">\n <p>_(\'A preview of your embedded object is displayed below.\')</p>\n <div class="ui-editor-embed-preview"></div>\n </div>\n </div>\n</div>\n',
218
- "cancel.dialog":"<div>\n _('Are you sure you want to stop editing?')\n <br/><br/>\n _('All changes will be lost!')\n</div>\n","tagmenu.menu":'<select autocomplete="off" name="tag" class="ui-editor-tag-select">\n <option value="na">_(\'N/A\')</option>\n <option value="p">_(\'Paragraph\')</option>\n <option value="h1">_(\'Heading&nbsp;1\')</option>\n <option value="h2">_(\'Heading&nbsp;2\')</option>\n <option value="h3">_(\'Heading&nbsp;3\')</option>\n <option value="div">_(\'Divider\')</option>\n</select>\n',
219
- "unsavededitwarning.warning":'<div title="_(\'This block contains unsaved changes\')" class="{{baseClass}}" style="display: none2">\n <span class="ui-icon ui-icon-alert"></span>\n <span>There are unsaved edits on this page</span>\n</div>',root:"<a href=\"javascript: // _('Select all editable content')\" \n class=\"{{baseClass}}-select-element\"\n title=\"_('Click to select all editable content')\">_('root')</a> \n",message:'<div class="{{baseClass}}-message-wrapper {{baseClass}}-message-{{type}}">\n <div class="ui-icon ui-icon-{{type}}" />\n <div class="{{baseClass}}-message">{{message}}</div>\n <div class="{{baseClass}}-message-close ui-icon ui-icon-circle-close"></div>\n</div>\n',
220
- tag:' &gt; <a href="javascript: // _(\'Select {{element}} element\')" \n class="{{baseClass}}-select-element"\n title="_(\'Click to select the contents of the \'{{element}}\' element\')"\n data-ui-editor-selection="{{data}}">{{element}}</a> \n',unsupported:'<div class="{{baseClass}}-unsupported-overlay"></div>\n<div class="{{baseClass}}-unsupported-content">\n It has been detected that you a using a browser that is not supported by Raptor, please\n use one of the following browsers:\n\n <ul>\n <li><a href="http://www.google.com/chrome">Google Chrome</a></li>\n <li><a href="http://www.firefox.com">Mozilla Firefox</a></li>\n <li><a href="http://www.google.com/chromeframe">Internet Explorer with Chrome Frame</a></li>\n </ul>\n\n <div class="{{baseClass}}-unsupported-input">\n <button class="{{baseClass}}-unsupported-close">Close</button>\n <input name="{{baseClass}}-unsupported-show" type="checkbox" />\n <label>Don\'t show this message again</label>\n </div>\n<div>',
221
- messages:'<div class="{{baseClass}}-messages" />\n'},getTemplate:function(a,b){var c;if(this.templates[a])c=this.templates[a];else{var e=b||this.urlPrefix,g=a.split("."),e=1===g.length?e+("templates/"+g[0]+".html"):e+("plugins/"+g[0]+"/templates/"+g.splice(1).join("/")+".html");d.ajax({url:e,type:"GET",async:!1,timeout:15E3,error:function(){c=null},success:function(a){c=a}});this.templates[a]=c}return c},getUniqueId:function(){for(var a=d.ui.editor.defaults.baseClass+"-uid-"+(new Date).getTime()+
222
- "-"+Math.floor(1E5*Math.random());d("#"+a).length;)a=d.ui.editor.defaults.baseClass+"-uid-"+(new Date).getTime()+"-"+Math.floor(1E5*Math.random());return a},isDirty:function(){for(var a=this.getInstances(),b=0;b<a.length;b++)if(a[b].isDirty())return!0;return!1},unloadWarning:function(){for(var a=this.getInstances(),b=0;b<a.length;b++)if(a[b].isDirty()&&a[b].isEditing()&&a[b].options.unloadWarning)return f("\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes")},
223
- defaultUi:{ui:null,editor:null,options:null,init:function(){},persist:function(a,b){return this.editor.persist(a,b)},bind:function(a,b,c){this.editor.bind(a,b,c||this)},unbind:function(a,b,c){this.editor.unbind(a,b,c||this)}},registerUi:function(a,b){if("string"===typeof a)this.ui[a]=d.extend({},this.defaultUi,b);else for(var c in a)this.registerUi(c,a[c])},defaultPlugin:{editor:null,options:null,init:function(){},persist:function(a,b){return this.editor.persist(a,b)},bind:function(a,b,c){this.editor.bind(a,
224
- b,c||this)},unbind:function(a,b,c){this.editor.unbind(a,b,c||this)}},registerPlugin:function(a,b){if("string"===typeof a)this.plugins[a]=d.extend({},this.defaultPlugin,b);else for(var c in a)this.registerPlugin(c,a[c])},bind:function(a,b){this.events[a]||(this.events[a]=[]);this.events[a].push(b)},unbind:function(a){d.each(this.events,function(b){for(var c=0;c<this.length;c++)this[c]===a&&this.events[b].splice(c,1)})},fire:function(a){if(this.events[a])for(var b=0,c=this.events[a].length;b<c;b++)this.events[a][b].call(this)},
225
- persist:function(a,b,c){a=c?c+"."+a:a;if(localStorage){c=localStorage.uiWidgetEditor?JSON.parse(localStorage.uiWidgetEditor):{};if(b===t)return c[a];c[a]=b;localStorage.uiWidgetEditor=JSON.stringify(c)}return b}});var l,k;d.ui.editor.registerUi({alignLeft:{init:function(a){return a.uiButton({title:f("Left Align"),click:function(){a.toggleBlockStyle({"text-align":"left"},a.getElement())}})}},alignJustify:{init:function(a){return a.uiButton({title:f("Justify"),click:function(){a.toggleBlockStyle({"text-align":"justify"},
226
- a.getElement())}})}},alignCenter:{init:function(a){return a.uiButton({title:f("Center Align"),click:function(){a.toggleBlockStyle({"text-align":"center"},a.getElement())}})}},alignRight:{init:function(a){return a.uiButton({title:f("Right Align"),click:function(){a.toggleBlockStyle({"text-align":"right"},a.getElement())}})}}});d.ui.editor.registerUi({textBold:{init:function(a,b){return this.editor.uiButton({title:f("Bold"),click:function(){a.toggleWrapper("strong",{classes:b.classes||b.cssPrefix+"bold"})}})}},
217
+ "cancel.dialog":"<div>\n _('Are you sure you want to stop editing?')\n <br/><br/>\n _('All changes will be lost!')\n</div>\n","tagmenu.menu":'<select autocomplete="off" name="tag" class="ui-editor-tag-select">\n <option value="na">_(\'N/A\')</option>\n <option value="p">_(\'Paragraph\')</option>\n <option value="h1">_(\'Heading&nbsp;1\')</option>\n <option value="h2">_(\'Heading&nbsp;2\')</option>\n <option value="h3">_(\'Heading&nbsp;3\')</option>\n</select>\n',"unsavededitwarning.warning":'<div title="_(\'This block contains unsaved changes\')" class="{{baseClass}}">\n <span class="ui-icon ui-icon-alert"></span>\n <span>There are unsaved edits on this page</span>\n</div>',
218
+ root:"<a href=\"javascript: // _('Select all editable content')\" \n class=\"{{baseClass}}-select-element\"\n title=\"_('Click to select all editable content')\">_('root')</a> \n",message:'<div class="{{baseClass}}-message-wrapper {{baseClass}}-message-{{type}}">\n <div class="ui-icon ui-icon-{{type}}" />\n <div class="{{baseClass}}-message">{{message}}</div>\n <div class="{{baseClass}}-message-close ui-icon ui-icon-circle-close"></div>\n</div>\n',tag:' &gt; <a href="javascript: // _(\'Select {{element}} element\')" \n class="{{baseClass}}-select-element"\n title="_(\'Click to select the contents of the \'{{element}}\' element\')"\n data-ui-editor-selection="{{data}}">{{element}}</a> \n',
219
+ unsupported:'<div class="{{baseClass}}-unsupported-overlay"></div>\n<div class="{{baseClass}}-unsupported-content">\n It has been detected that you a using a browser that is not supported by Raptor, please\n use one of the following browsers:\n\n <ul>\n <li><a href="http://www.google.com/chrome">Google Chrome</a></li>\n <li><a href="http://www.firefox.com">Mozilla Firefox</a></li>\n <li><a href="http://www.google.com/chromeframe">Internet Explorer with Chrome Frame</a></li>\n </ul>\n\n <div class="{{baseClass}}-unsupported-input">\n <button class="{{baseClass}}-unsupported-close">Close</button>\n <input name="{{baseClass}}-unsupported-show" type="checkbox" />\n <label>Don\'t show this message again</label>\n </div>\n<div>',
220
+ messages:'<div class="{{baseClass}}-messages" />\n'},getTemplate:function(a,c){var d;if(this.templates[a])d=this.templates[a];else{var e=c||this.urlPrefix,f=a.split("."),e=1===f.length?e+("templates/"+f[0]+".html"):e+("plugins/"+f[0]+"/templates/"+f.splice(1).join("/")+".html");b.ajax({url:e,type:"GET",async:!1,timeout:15E3,error:function(){d=null},success:function(a){d=a}});this.templates[a]=d}return d},getUniqueId:function(){for(var a=b.ui.editor.defaults.baseClass+"-uid-"+(new Date).getTime()+
221
+ "-"+Math.floor(1E5*Math.random());b("#"+a).length;)a=b.ui.editor.defaults.baseClass+"-uid-"+(new Date).getTime()+"-"+Math.floor(1E5*Math.random());return a},isDirty:function(){for(var a=this.getInstances(),b=0;b<a.length;b++)if(a[b].isDirty())return!0;return!1},unloadWarning:function(){for(var a=this.getInstances(),b=0;b<a.length;b++)if(a[b].isDirty()&&a[b].isEditing()&&a[b].options.unloadWarning)return f("\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes")},
222
+ defaultUi:{ui:null,editor:null,options:null,init:function(){},persist:function(a,b){return this.editor.persist(a,b)},bind:function(a,b,d){this.editor.bind(a,b,d||this)},unbind:function(a,b,d){this.editor.unbind(a,b,d||this)}},registerUi:function(a,c){if("string"===typeof a)this.ui[a]=b.extend({},this.defaultUi,c);else for(var d in a)this.registerUi(d,a[d])},defaultPlugin:{editor:null,options:null,init:function(){},persist:function(a,b){return this.editor.persist(a,b)},bind:function(a,b,d){this.editor.bind(a,
223
+ b,d||this)},unbind:function(a,b,d){this.editor.unbind(a,b,d||this)}},registerPlugin:function(a,c){if("string"===typeof a)this.plugins[a]=b.extend({},this.defaultPlugin,c);else for(var d in a)this.registerPlugin(d,a[d])},bind:function(a,b){this.events[a]||(this.events[a]=[]);this.events[a].push(b)},unbind:function(a){b.each(this.events,function(b){for(var d=0;d<this.length;d++)this[d]===a&&this.events[b].splice(d,1)})},fire:function(a){if(this.events[a])for(var b=0,d=this.events[a].length;b<d;b++)this.events[a][b].call(this)},
224
+ persist:function(a,b,d){a=d?d+"."+a:a;if(localStorage){d=localStorage.uiWidgetEditor?JSON.parse(localStorage.uiWidgetEditor):{};if(b===u)return d[a];d[a]=b;localStorage.uiWidgetEditor=JSON.stringify(d)}return b}});var h,l;b.ui.editor.registerUi({alignLeft:{init:function(a){return a.uiButton({title:f("Left Align"),click:function(){a.toggleBlockStyle({"text-align":"left"},a.getElement())}})}},alignJustify:{init:function(a){return a.uiButton({title:f("Justify"),click:function(){a.toggleBlockStyle({"text-align":"justify"},
225
+ a.getElement())}})}},alignCenter:{init:function(a){return a.uiButton({title:f("Center Align"),click:function(){a.toggleBlockStyle({"text-align":"center"},a.getElement())}})}},alignRight:{init:function(a){return a.uiButton({title:f("Right Align"),click:function(){a.toggleBlockStyle({"text-align":"right"},a.getElement())}})}}});b.ui.editor.registerUi({textBold:{init:function(a,b){return this.editor.uiButton({title:f("Bold"),click:function(){a.toggleWrapper("strong",{classes:b.classes||b.cssPrefix+"bold"})}})}},
227
226
  textItalic:{init:function(a,b){return a.uiButton({title:f("Italic"),click:function(){a.toggleWrapper("em",{classes:b.classes||b.cssPrefix+"italic"})}})}},textUnderline:{init:function(a,b){return a.uiButton({title:f("Underline"),click:function(){a.toggleWrapper("u",{classes:b.classes||b.cssPrefix+"underline"})}})}},textStrike:{init:function(a,b){return a.uiButton({title:f("Strikethrough"),click:function(){a.toggleWrapper("del",{classes:b.classes||b.cssPrefix+"strike"})}})}},textSub:{init:function(a,
228
- b){return a.uiButton({title:f("Sub script"),click:function(){a.toggleWrapper("sub",{classes:b.classes||b.cssPrefix+"sub"})}})}},textSuper:{init:function(a,b){return a.uiButton({title:f("Super script"),click:function(){a.toggleWrapper("sup",{classes:b.classes||b.cssPrefix+"super"})}})}}});d.ui.editor.registerUi({quoteBlock:{init:function(a,b){return a.uiButton({title:f("Blockquote"),icon:"ui-icon-quote",click:function(){a.toggleWrapper("blockquote",{classes:b.classes||b.cssPrefix+"blockquote"})}})}}});
229
- d.ui.editor.registerUi({cancel:{init:function(a){return a.uiButton({name:"cancel",title:f("Cancel"),icons:{primary:"ui-icon-cancel"},dialog:null,click:function(){this.confirm()}})},confirm:function(){var a=this.editor.getPlugin("cancel"),b=this.editor;b.isDirty()?(this.dialog||(this.dialog=d(b.getTemplate("cancel.dialog"))),this.dialog.dialog({modal:!0,resizable:!1,title:f("Confirm Cancel Editing"),dialogClass:b.options.dialogClass+" "+b.options.baseClass,show:b.options.dialogShowAnimation,hide:b.options.dialogHideAnimation,
230
- buttons:[{text:f("OK"),click:function(){a.cancel();d(this).dialog("close")}},{text:f("Cancel"),click:function(){d(this).dialog("close")}}],open:function(){var a=d(this).parent().find(".ui-dialog-buttonpane");a.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});a.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}})},close:function(){d(this).dialog("destroy").remove()}})):a.cancel()}}});d.ui.editor.registerPlugin({cancel:{cancel:function(){this.editor.unify(function(a){a.fire("cancel");
231
- a.resetHtml();a.hideToolbar();a.disableEditing()})}}});d.ui.editor.registerPlugin("clean",{options:{stripAttrs:["_moz_dirty"],stripAttrContent:{type:"_moz"},stripEmptyTags:"h1,h2,h3,h4,h5,h6,p,b,i,u,strong,em,big,small,div,span".split(","),stripEmptyAttrs:["class","id","style"]},init:function(a){a.bind("change",this.clean,this)},clean:function(){var a,b=this.editor;for(a=0;a<this.options.stripAttrs.length;a++)b.getElement().find("["+this.options.stripAttrs[a]+"]").removeAttr(this.options.stripAttrs[a]);
232
- for(a=0;a<this.options.stripAttrContent.length;a++)b.getElement().find("["+a+'="'+this.options.stripAttrs[a]+'"]').removeAttr(this.options.stripAttrs[a]);for(a=0;a<this.options.stripEmptyTags.length;a++)b.getElement().find(this.options.stripEmptyTags[a]).filter(function(){if(""!==d.trim(d(this).html()))return!1;if(!d(this).hasClass("rangySelectionBoundary"))return!0;if(!1!==b.savedSelection)return!1}).remove();for(a=0;a<this.options.stripEmptyAttrs.length;a++){var c=this.options.stripEmptyAttrs[a];
233
- b.getElement().find("["+this.options.stripEmptyAttrs[a]+"]").filter(function(){return""===d.trim(d(this).attr(c))}).removeAttr(this.options.stripEmptyAttrs[a])}}});d.ui.editor.registerUi({clean:{init:function(a){return a.uiButton({title:f("Remove unnecessary markup from editor content"),click:function(){a.getPlugin("clean").clean()}})}}});d.ui.editor.registerPlugin("clickToEdit",{init:function(a,b){var c=this,e=d(a.getTemplate("clicktoedit.message",b)).appendTo("body"),b=d.extend({},{obscureLinks:!1,
234
- position:{at:"center center",of:a.getElement(),my:"center center",using:function(a){d(this).css({position:"absolute",top:a.top,left:a.left})}}},b);this.selection=function(){var a;document.selection?a=document.selection.createRange():document.getSelection().rangeCount&&(a=document.getSelection().getRangeAt(0));return a};this.show=function(){a.isEditing()||(a.getElement().addClass(b.baseClass+"-highlight"),a.getElement().addClass(b.baseClass+"-hover"),e.position(b.position),e.addClass(b.baseClass+"-visible"))};
235
- this.hide=function(){a.getElement().removeClass(b.baseClass+"-highlight");a.getElement().removeClass(b.baseClass+"-hover");e.removeClass(b.baseClass+"-visible")};this.edit=function(){c.hide();a.isEditing()||a.enableEditing();a.isVisible()||a.showToolbar(c.selection())};e.position(b.position);b.obscureLinks||(a.getElement().find("a").bind("mouseenter."+a.widgetName,c.hide),a.getElement().find("a").bind("mouseleave."+a.widgetName,c.show));a.getElement().bind("mouseenter."+a.widgetName,c.show);a.getElement().bind("mouseleave."+
236
- a.widgetName,c.hide);a.getElement().bind("click."+a.widgetName,function(a){(b.obscureLinks||!d(a.target).is("a")&&!d(a.target).parents("a").length)&&c.edit()});a.bind("destroy",function(){e.remove();a.getElement().unbind("mouseenter."+a.widgetName,c.show);a.getElement().unbind("mouseleave."+a.widgetName,c.hide);a.getElement().unbind("click."+a.widgetName,c.edit)})}});d.ui.editor.registerPlugin("dock",{enabled:!1,docked:!1,topSpacer:null,bottomSpacer:null,options:{docked:!1,dockToElement:!1,dockUnder:!1,
237
- persist:!0,persistID:null},init:function(){this.bind("show",this.show);this.bind("hide",this.hide);this.bind("disabled",this.disable);this.bind("destroy",this.destroy,this)},show:function(){this.enabled?this.isDocked()&&this.showSpacers():((this.loadState()||this.options.docked)&&this.dock(),this.enabled=!0)},hide:function(){this.hideSpacers();this.editor.toolbar.css("width","auto")},showSpacers:function(){!this.options.dockToElement&&this.editor.toolbar.is(":visible")&&(this.topSpacer=d("<div/>").addClass(this.options.baseClass+
238
- "-top-spacer").height(this.editor.toolbar.outerHeight()).prependTo("body"),this.bottomSpacer=d("<div/>").addClass(this.options.baseClass+"-bottom-spacer").height(this.editor.path.outerHeight()).appendTo("body"),this.editor.fire("resize"))},hideSpacers:function(){this.topSpacer&&(this.topSpacer.remove(),this.topSpacer=null);this.bottomSpacer&&(this.bottomSpacer.remove(),this.bottomSpacer=null);this.editor.fire("resize")},swapStyle:function(a,b,c){var d={},g;for(g in c)a.css(g,b.css(g)),d[g]=b.css(g),
239
- b.css(g,c[g]);return d},revertStyle:function(a,b){for(var c in b)a.css(c,b[c])},dockToElement:function(){var a=d("<div/>").insertBefore(this.editor.getElement()).addClass(this.options.baseClass+"-docked-to-element-wrapper");this.editor.wrapper.appendTo(a);this.previousStyle=this.swapStyle(a,this.editor.getElement(),{display:"block","float":"none",clear:"none",position:"static","margin-left":0,"margin-right":0,"margin-top":0,"margin-bottom":0,outline:0,width:"auto"});a.css("width",a.width()+parseInt(this.editor.getElement().css("padding-left"),
240
- 10)+parseInt(this.editor.getElement().css("padding-right"),10));this.editor.getElement().appendTo(this.editor.wrapper).addClass(this.options.baseClass+"-docked-element")},undockFromElement:function(){this.editor.getElement().insertAfter(this.editor.wrapper).removeClass(this.options.baseClass+"-docked-element");this.editor.wrapper.appendTo("body").removeClass(this.options.baseClass+"-docked-to-element")},dockToBody:function(){var a=0;d(this.options.dockUnder).length&&(a=d(this.options.dockUnder).outerHeight());
241
- this.top=this.editor.toolbarWrapper.css("top");this.editor.toolbarWrapper.css("top",a);this.editor.wrapper.addClass(this.options.baseClass+"-docked");this.editor.messages.css("top",a+this.editor.toolbar.outerHeight())},undockFromBody:function(){this.editor.toolbarWrapper.css("top",this.top);this.editor.wrapper.removeClass(this.options.baseClass+"-docked");this.hideSpacers()},dock:function(){if(!this.docked){this.docked=this.saveState(!0);this.options.dockToElement?this.dockToElement():this.dockToBody();
242
- var a=this.editor.wrapper.find("."+this.options.baseClass+"-button").button({icons:{primary:"ui-icon-pin-w"}});a.attr("title")?a.attr("title",this.getTitle()):a.attr("data-title",this.getTitle());this.editor.toolbar.find("."+this.editor.options.baseClass+"-inner").addClass("ui-widget-header");this.showSpacers()}},undock:function(){if(this.docked){this.docked=this.destroying?!1:this.saveState(!1);this.editor.toolbar.find("."+this.editor.options.baseClass+"-inner").removeClass("ui-widget-header");var a=
243
- this.editor.wrapper.find("."+this.options.baseClass+"-button").button({icons:{primary:"ui-icon-pin-s"}});a.attr("title")?a.attr("title",this.getTitle()):a.attr("data-title",this.getTitle());this.options.dockToElement?this.undockFromElement():this.undockFromBody();this.editor.fire("resize")}},isDocked:function(){return this.docked},getTitle:function(){return this.isDocked()?f("Click to detach the toolbar"):f("Click to dock the toolbar")},saveState:function(a){if(this.persist)return this.persistID?
244
- this.persist("docked:"+this.persistID,a):this.persist("docked",a),a},loadState:function(){return!this.persist?null:this.persistID?this.persist("docked:"+this.persistID):this.persist("docked")},disable:function(){this.hideSpacers()},destroy:function(){this.destroying=!0;this.undock()}});d.ui.editor.registerUi({dock:{init:function(a){return a.uiButton({title:a.getPlugin("dock").getTitle(),icon:a.getPlugin("dock").isDocked()?"ui-icon-pin-w":"ui-icon-pin-s",click:function(){var b=a.getPlugin("dock");
245
- b.isDocked()?b.undock():b.dock();a.unify(function(a){b.isDocked()?a.getPlugin("dock").dock():a.getPlugin("dock").undock()})}})}}});d.ui.editor.registerUi({embed:{dialog:null,init:function(a){a.bind("hide",this.hide,this);return a.uiButton({icon:"ui-icon-youtube",title:f("Embed object"),click:function(){this.show()}})},hide:function(){this.dialog&&d(this.dialog).dialog("destroy").remove();this.dialog=null;d(this.ui.button).button("option","disabled",!1)},show:function(){if(!this.dialog){d(this.ui.button).button("option",
246
- "disabled",!0);var a=this;a.editor.saveSelection();this.dialog=d(this.editor.getTemplate("embed.dialog"));this.dialog.dialog({modal:!1,width:600,height:400,resizable:!0,title:f("Paste Embed Code"),autoOpen:!0,dialogClass:a.options.baseClass+" "+a.options.dialogClass,buttons:[{text:f("Embed Object"),click:function(){a.editor.restoreSelection();a.editor.replaceSelection(d(this).find("textarea").val());d(this).dialog("close")}},{text:f("Close"),click:function(){a.hide()}}],open:function(){var a=d(this).parent().find(".ui-dialog-buttonpane");
247
- a.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});a.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}});var c=d(this).find(".ui-editor-embed-panel-tabs");c.find("ul li").click(function(){c.find("ul li").removeClass("ui-state-active").removeClass("ui-tabs-selected");d(this).addClass("ui-state-active").addClass("ui-tabs-selected");c.children("div").hide().eq(d(this).index()).show()});var e=d(this).find(".ui-editor-embed-preview");d(this).find("textarea").change(function(){d(e).html(d(this).val())})},
248
- close:function(){a.hide()}})}}}});d.ui.editor.registerPlugin("emptyElement",{options:{tag:"<p/>"},init:function(){this.bind("change",this.change)},change:function(){var a=this;this.textNodes(this.editor.getElement()).each(function(){d(this).wrap(d(a.options.tag));a.editor.selectEnd(this)})},textNodes:function(a){return d(a).contents().filter(function(){return 3==this.nodeType&&d.trim(this.nodeValue).length})}});d.ui.editor.registerUi({floatLeft:{init:function(a){return a.uiButton({title:f("Float Left"),
249
- click:function(){a.toggleBlockStyle({"float":"left"},a.getElement())}})}},floatRight:{init:function(a){return a.uiButton({title:f("Float Right"),click:function(){a.toggleBlockStyle({"float":"right"},a.getElement())}})}},floatNone:{init:function(a){return a.uiButton({title:f("Float None"),click:function(){a.toggleBlockStyle({"float":"none"},a.getElement())}})}}});d.ui.editor.registerUi({fontSizeInc:{init:function(a,b){return a.uiButton({title:f("Increase Font Size"),click:function(){a.inverseWrapWithTagClass("big",
250
- b.cssPrefix+"big","small",b.cssPrefix+"small")}})}},fontSizeDec:{init:function(a,b){return a.uiButton({title:f("Decrease Font Size"),click:function(){a.inverseWrapWithTagClass("small",b.cssPrefix+"small","big",b.cssPrefix+"big")}})}}});d.ui.editor.registerUi({showGuides:{init:function(a,b){a.bind("cancel",this.cancel,this);a.bind("destroy",this.cancel,this);return a.uiButton({title:f("Show Guides"),icon:"ui-icon-pencil",click:function(){a.getElement().toggleClass(b.baseClass+"-visible")}})},cancel:function(){this.editor.getElement().removeClass(this.options.baseClass+
251
- "-visible")}}});d.ui.editor.registerUi({undo:{init:function(a){a.bind("change",this.change,this);return a.uiButton({title:f("Step Back"),disabled:!0,click:function(){a.historyBack()}})},change:function(){0===this.editor.present?this.ui.disable():this.ui.enable()}},redo:{init:function(a){a.bind("change",this.change,this);return this.ui=a.uiButton({title:f("Step Forward"),disabled:!0,click:function(){a.historyForward()}})},change:function(){this.editor.present===this.editor.history.length-1?this.ui.disable():
252
- this.ui.enable()}}});d.ui.editor.registerPlugin("hotkeys",{options:{actions:[{ui:"textBold",key:"b",label:f("ctrl + b")},{ui:"textItalic",key:"i",label:f("ctrl + i")},{ui:"textUnderline",key:"u",label:f("ctrl + u")},{ui:"undo",key:"z",label:f("ctrl + z")},{ui:"redo",key:"y",label:f("ctrl + y")},{ui:"cancel",meta:!1,key:27,label:f("esc")},{ui:"save",key:"s",label:f("ctrl + s")}]},indexedActions:{},keyUpEventSignature:null,keyDownEventSignature:null,init:function(a){this.keyUpEventSignature="keyup."+
253
- this.options.baseClass;this.keyDownEventSignature="keydown."+this.options.baseClass;a.bind("enabled",this.enabled,this);a.bind("disabled",this.disabled,this)},disabled:function(){d(q).unbind(this.keyUpEventSignature);d(q).unbind(this.keyDownEventSignature);this.indexedActions={}},enabled:function(){for(var a,b=0;b<this.options.actions.length;b++)if(a=this.options.actions[b],this.indexedActions[this.isNumeric(a.key)?a.key:a.key.charCodeAt(0)]=a,"undefined"!==typeof a.ui){var c=this.editor.getUi(a.ui);
254
- "undefined"!==typeof c&&c.ui.button.attr("title",c.ui.title+" ("+a.label+")")}var e=this;d(q).bind(this.keyDownEventSignature,function(a){e.actionForKeyCombination.call(e,a)&&a.preventDefault()});d(q).bind(this.keyUpEventSignature,function(a){var b=e.actionForKeyCombination.call(e,a);b&&((d.isFunction(b.callback)?b.callback:function(){e.triggerUiAction(b.ui)}).call(e,a),a.preventDefault())})},actionForKeyCombination:function(a){var b=a.which;65<=b&&90>=b&&(b+=32);var c=this.indexedActions[b];if("undefined"===
255
- typeof c||!(!1===c.meta||a.ctrlKey||a.metaKey))return!1;a=!1;return(a=this.isNumeric(c.key)?b===c.key:String.fromCharCode(b).toLowerCase()===c.key)?c:!1},triggerUiAction:function(a,b){var c=this.editor.getUi(a);"undefined"!==typeof c&&c.ui.click.apply(c,b)},isNumeric:function(a){return!isNaN(a-0)}});d.ui.editor.registerUi({hr:{init:function(a){return a.uiButton({title:f("Insert Horizontal Rule"),click:function(){a.replaceSelection("<hr/>")}})}}});d.ui.editor.registerUi({i18n:{init:function(a){var b=
256
- this,c=this.persist("locale");c&&s(c);var c=d('<select autocomplete="off" name="i18n"/>'),e;for(e in o){var g=d('<option value="'+e+'" class="'+e+'"/>');g.html(i[e]);p===e&&g.attr("selected","selected");c.append(g)}return a.uiSelectMenu({title:f("Change Language"),select:c,change:function(a){s(b.persist("locale",a))}})}}});r("en","English",{"A preview of your embedded object is displayed below.":"A preview of your embedded object is displayed below.","Added link: {{link}}":"Added link: {{link}}",
257
- "All changes will be lost!":"All changes will be lost!","Apply Source":"Apply Source","Are you sure you want to stop editing?":"Are you sure you want to stop editing?",Blockquote:"Blockquote",Bold:"Bold",Cancel:"Cancel","Center Align":"Center Align","Change HTML tag of selected element":"Change HTML tag of selected element","Change Language":"Change Language","Check this box to have the file open in a new browser window":"Check this box to have the file open in a new browser window","Check this box to have the link open in a new browser window":"Check this box to have the link open in a new browser window",
258
- "Choose a link type:":"Choose a link type:","Click to begin editing":"Click to begin editing","Click to detach the toolbar":"Click to detach the toolbar","Click to dock the toolbar":"Click to dock the toolbar","Click to select all editable content":"Click to select all editable content","Click to select the contents of the '{{element}}' element":"Click to select the contents of the '{{element}}' element",Close:"Close","Confirm Cancel Editing":"Confirm Cancel Editing","Content Statistics":"Content Statistics",
259
- "Content contains more than {{limit}} characters and may be truncated":"Content contains more than {{limit}} characters and may be truncated","Content will not be truncated":"Content will not be truncated","Copy the file's URL from your browser's address bar and paste it into the box above":"Copy the file's URL from your browser's address bar and paste it into the box above","Copy the web address from your browser's address bar and paste it into the box above":"Copy the web address from your browser's address bar and paste it into the box above",
260
- "Decrease Font Size":"Decrease Font Size",Destroy:"Destroy",Divider:"Divider","Document or other file":"Document or other file","Edit Link":"Edit Link",Email:"Email","Email address":"Email address","Embed Code":"Embed Code","Embed Object":"Embed Object","Embed object":"Embed object","Ensure the file has been uploaded to your website":"Ensure the file has been uploaded to your website","Enter email address":"Enter email address","Enter subject":"Enter subject","Enter your URL":"Enter your URL","Failed to resize images (error {{error}})":"Failed to resize images (error {{error}})",
261
- "Failed to save {{failed}} content block(s).":"Failed to save {{failed}} content block(s).","Find the page on the web you want to link to":"Find the page on the web you want to link to","Float Left":"Float Left","Float None":"Float None","Float Right":"Float Right","Formatted &amp; Cleaned":"Formatted &amp; Cleaned","Formatted Unclean":"Formatted Unclean","Heading&nbsp;1":"Heading&nbsp;1","Heading&nbsp;2":"Heading&nbsp;2","Heading&nbsp;3":"Heading&nbsp;3","Increase Font Size":"Increase Font Size",
262
- Initializing:"Initializing",Insert:"Insert","Insert Horizontal Rule":"Insert Horizontal Rule","Insert Link":"Insert Link","Insert Snippet":"Insert Snippet",Italic:"Italic",Justify:"Justify","Learn More About the Raptor WYSIWYG Editor":"Learn More About the Raptor WYSIWYG Editor","Left Align":"Left Align","Link to a document or other file":"Link to a document or other file","Link to a page on this or another website":"Link to a page on this or another website","Link to an email address":"Link to an email address",
263
- Location:"Location","N/A":"N/A","New window":"New window","No changes detected to save...":"No changes detected to save...","Not sure what to put in the box above?":"Not sure what to put in the box above?",OK:"OK","Open the uploaded file in your browser":"Open the uploaded file in your browser","Ordered List":"Ordered List","Page on this or another website":"Page on this or another website",Paragraph:"Paragraph","Paste Embed Code":"Paste Embed Code","Paste your embed code into the text area below.":"Paste your embed code into the text area below.",
264
- "Plain Text":"Plain Text",Preview:"Preview",Raptorize:"Raptorize",Reinitialise:"Reinitialise","Remaining characters before the recommended character limit is reached":"Remaining characters before the recommended character limit is reached","Remove Link":"Remove Link","Remove unnecessary markup from editor content":"Remove unnecessary markup from editor content","Resizing image(s)":"Resizing image(s)","Right Align":"Right Align",Save:"Save","Saved {{saved}} out of {{dirty}} content blocks.":"Saved {{saved}} out of {{dirty}} content blocks.",
265
- "Saving changes...":"Saving changes...","Select all editable content":"Select all editable content","Select {{element}} element":"Select {{element}} element","Show Guides":"Show Guides","Source Code":"Source Code","Step Back":"Step Back","Step Forward":"Step Forward",Strikethrough:"Strikethrough","Sub script":"Sub script","Subject (optional)":"Subject (optional)","Successfully saved {{saved}} content block(s).":"Successfully saved {{saved}} content block(s).","Super script":"Super script","The URL does not look well formed":"The URL does not look well formed",
266
- "The email address does not look well formed":"The email address does not look well formed",'The image "{{image}}" is too large for the element being edited.<br/>It has been resized with CSS.':'The image "{{image}}" is too large for the element being edited.<br/>It has been resized with CSS.','The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.':'The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.',
267
- "The url for the file you inserted doesn't look well formed":"The url for the file you inserted doesn't look well formed","The url for the link you inserted doesn't look well formed":"The url for the link you inserted doesn't look well formed","This block contains unsaved changes":"This block contains unsaved changes",Underline:"Underline","Unnamed Button":"Unnamed Button","Unnamed Select Menu":"Unnamed Select Menu","Unordered List":"Unordered List","Update Link":"Update Link","Updated link: {{link}}":"Updated link: {{link}}",
268
- "View / Edit Source":"View / Edit Source","View Source":"View Source","\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes":"\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes","ctrl + b":"ctrl + b","ctrl + i":"ctrl + i","ctrl + s":"ctrl + s","ctrl + u":"ctrl + u","ctrl + y":"ctrl + y","ctrl + z":"ctrl + z",esc:"esc",root:"root","{{charactersRemaining}} characters over limit":"{{charactersRemaining}} characters over limit",
269
- "{{charactersRemaining}} characters remaining":"{{charactersRemaining}} characters remaining","{{characters}} characters, {{charactersRemaining}} over the recommended limit":"{{characters}} characters, {{charactersRemaining}} over the recommended limit","{{characters}} characters, {{charactersRemaining}} remaining":"{{characters}} characters, {{charactersRemaining}} remaining","{{images}} image(s) have been replaced with resized versions":"{{images}} image(s) have been replaced with resized versions",
270
- "{{sentences}} sentences":"{{sentences}} sentences","{{words}} word":"{{words}} word","{{words}} words":"{{words}} words"});r("fr","Fran\u00e7ais",{"A preview of your embedded object is displayed below.":"Un aper\u00e7u de votre objet int\u00e9gr\u00e9 est affich\u00e9 ci-dessous.","Added link: {{link}}":"Lien ajout\u00e9 : {{link}}","All changes will be lost!":"Toutes les modifications seront perdues !","Apply Source":"Appliquer la source","Are you sure you want to stop editing?":"\u00cates-vous s\u00fbr(e) de vouloir arr\u00eater la modification ?",
271
- Blockquote:"Citation",Bold:"Gras",Cancel:"Annuler","Center Align":"Aligner au centre","Change HTML tag of selected element":"Modifier la balise HTML de l'\u00e9l\u00e9ment s\u00e9lectionn\u00e9","Change Language":"Changer de langue","Check this box to have the file open in a new browser window":"Cochez cette case pour ouvrir le fichier dans une nouvelle fen\u00eatre de navigateur","Check this box to have the link open in a new browser window":"Cochez cette case pour ouvrir le lien dans une nouvelle fen\u00eatre de navigateur",
272
- "Choose a link type:":"Choisissez un type de lien :","Click to begin editing":"Cliquer pour commencer la modification","Click to detach the toolbar":"Cliquer pour d\u00e9tacher la barre d'outils","Click to dock the toolbar":"Cliquer pour ancrer la barre d'outils","Click to select all editable content":"Cliquer pour s\u00e9lectionner tout le contenu modifiable","Click to select the contents of the '{{element}}' element":"Cliquer pour s\u00e9lectionner le contenu de l'\u00e9l\u00e9ment '{{element}}'",
273
- Close:"Fermer","Confirm Cancel Editing":"Confirmer l'annulation des modifications","Content Statistics":"Statistiques de contenu","Content contains more than {{limit}} characters and may be truncated":"Le contenu contient plus de {{limit}} caract\u00e8res et peut \u00eatre tronqu\u00e9","Content will not be truncated":"Le contenu ne sera pas tronqu\u00e9","Copy the file's URL from your browser's address bar and paste it into the box above":"Copiez l'URL du fichier depuis la barre d'adresse de votre navigateur et collez-la dans le champ ci-dessus",
274
- "Copy the web address from your browser's address bar and paste it into the box above":"Copiez l'adresse web depuis la barre d'adresse de votre navigateur et collez-la dans le champ ci-dessus","Decrease Font Size":"Diminuer la taille de la police",Destroy:"D\u00e9truire",Divider:"Div","Document or other file":"Document ou autre fichier","Edit Link":"Modifier le lien",Email:"E-mail","Email address":"Adresse e-mail","Embed Code":"Code int\u00e9gr\u00e9","Embed Object":"Int\u00e9grer l'objet","Embed object":"Object int\u00e9gr\u00e9",
275
- "Ensure the file has been uploaded to your website":"V\u00e9rifiez que le fichier a \u00e9t\u00e9 transf\u00e9r\u00e9 vers votre site","Enter email address":"Saisir l'adresse e-mail","Enter subject":"Saisir le sujet","Enter your URL":"Saisir l'URL","Failed to resize images (error {{error}})":"\u00c9chec de redimensionnement des images (erreur {{error}})","Failed to save {{failed}} content block(s).":"\u00c9chec d'enregistrement du(des) bloc(s) de contenu {{failed}}.","Find the page on the web you want to link to":"Trouvez la page web que vous voulez lier",
276
- "Float Left":"Flotter \u00e0 gauche","Float None":"Ne pas flotter","Float Right":"Flotter \u00e0 droite","Formatted &amp; Cleaned":"Formatt\u00e9 &amp; Nettoy\u00e9","Formatted Unclean":"Formatt\u00e9 non nettoy\u00e9","Heading&nbsp;1":"Titre&nbsp;1","Heading&nbsp;2":"Titre&nbsp;2","Heading&nbsp;3":"Titre&nbsp;3","Increase Font Size":"Augmenter la taille de la police",Initializing:"Initialisation",Insert:"Ins\u00e9rer","Insert Horizontal Rule":"Ins\u00e9rer une r\u00e8gle horizontale","Insert Link":"Ins\u00e9rer un lien",
277
- "Insert Snippet":"Ins\u00e9rer un bout de code",Italic:"Italique",Justify:"Justifier","Learn More About the Raptor WYSIWYG Editor":"En savoir plus sur l'\u00e9diteur WYSIWYG Raptor","Left Align":"Aligner \u00e0 gauche","Link to a document or other file":"Lier un document ou un autre fichier","Link to a page on this or another website":"Lier une page ou un autre site","Link to an email address":"Lier une adresse e-mail",Location:"Emplacement","N/A":"N/A","New window":"Nouvelle fen\u00eatre","No changes detected to save...":"Aucune modification d\u00e9tect\u00e9e \u00e0 enregistrer...",
278
- "Not sure what to put in the box above?":"Pas s\u00fbr(e) de savoir quoi mettre dans le champ ci-dessus ?",OK:"OK","Open the uploaded file in your browser":"Ouvrir le fichier trasnf\u00e9r\u00e9 dans votre navigateur","Ordered List":"Liste ordonn\u00e9e","Page on this or another website":"Page sur ce site ou un autre site",Paragraph:"Paragraphe","Paste Embed Code":"Coller le code","Paste your embed code into the text area below.":"Collez votre code int\u00e9gr\u00e9 dans la zone de texte ci-dessous.",
279
- "Plain Text":"Texte brut",Preview:"Aper\u00e7u",Raptorize:"Raptoriser",Reinitialise:"R\u00e9initialiser","Remaining characters before the recommended character limit is reached":"Caract\u00e8res restants avant que la limite de caract\u00e8re recommand\u00e9e ne soit atteinte","Remove Link":"Retirer le lien","Remove unnecessary markup from editor content":"Retirer le balisage non n\u00e9cessaire du contenu de l'\u00e9diteur","Resizing image(s)":"Redimensionnement de(s) image(s)","Right Align":"Aligner \u00e0 droite",
280
- Save:"Enregistrer","Saved {{saved}} out of {{dirty}} content blocks.":"{{saved}} enregistr\u00e9 sur {{dirty}} blocs de contenu.","Saving changes...":"Enregistrement des modifications...","Select all editable content":"S\u00e9lectionner tout le contenu modifiable","Select {{element}} element":"S\u00e9lectionner l'\u00e9l\u00e9ment {{element}}","Show Guides":"Afficher les guides","Source Code":"Code source","Step Back":"En arri\u00e8re","Step Forward":"En avant",Strikethrough:"Barr\u00e9","Sub script":"Indice",
281
- "Subject (optional)":"Sujet (facultatif)","Successfully saved {{saved}} content block(s).":"{{saved}} bloc(s) de contenu enregistr\u00e9(s) avec succ\u00e8s.","Super script":"Exposant","The URL does not look well formed":"L'URL para\u00eet malform\u00e9e","The email address does not look well formed":"L'adresse e-mail para\u00eet malform\u00e9e",'The image "{{image}}" is too large for the element being edited.<br/>It has been resized with CSS.':"L'image \"{{image}}\" est trop grande pour l'\u00e9l\u00e9ment en cours de modification.<br/>Elle a \u00e9t\u00e9 redimensionn\u00e9e en CSS.",
282
- 'The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.':"L'image \"{{image}}\" est trop grande pour l'\u00e9l\u00e9ment en cours de modification.<br/>Elle sera remplac\u00e9e par une copie redimensionn\u00e9e quand vos modifications seront enregistr\u00e9es.","The url for the file you inserted doesn't look well formed":"L'url du fichier que vous avez ins\u00e9r\u00e9 para\u00eet malform\u00e9e","The url for the link you inserted doesn't look well formed":"L'url du lien que vous avez ins\u00e9r\u00e9 para\u00eet malform\u00e9e",
283
- "This block contains unsaved changes":"Ce bloc contient des modifications non enregistr\u00e9es",Underline:"Soulign\u00e9","Unnamed Button":"Boutton sans nom","Unnamed Select Menu":"Menu de s\u00e9lection sans nom","Unordered List":"Liste non ordonn\u00e9e","Update Link":"Mettre \u00e0 jour le lien","Updated link: {{link}}":"Lien mis \u00e0 jour : {{link}}","View / Edit Source":"Voir / Modifier la source","View Source":"Voir la source","\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes":"\nIl y a des modifications non enregistr\u00e9es sur cette page. \nSi vous quittez cette page, vous perdrez vos modifications non enregistr\u00e9es",
284
- "ctrl + b":"ctrl + b","ctrl + i":"ctrl + i","ctrl + s":"ctrl + s","ctrl + u":"ctrl + u","ctrl + y":"ctrl + y","ctrl + z":"ctrl + z",esc:"esc",root:"racine","{{charactersRemaining}} characters over limit":"{{charactersRemaining}} caract\u00e8res au-dessus de la limite","{{charactersRemaining}} characters remaining":"{{charactersRemaining}} caract\u00e8res restants","{{characters}} characters, {{charactersRemaining}} over the recommended limit":"{{characters}} caract\u00e8res, {{charactersRemaining}} au-dessus de la limite",
285
- "{{characters}} characters, {{charactersRemaining}} remaining":"{{characters}} caract\u00e8res, {{charactersRemaining}} restants","{{images}} image(s) have been replaced with resized versions":"{{images}} image(s) a(ont) \u00e9t\u00e9 remplac\u00e9e(s) par une version redimensionn\u00e9e","{{sentences}} sentences":"{{sentences}} phrases","{{words}} word":"{{words}} mot","{{words}} words":"{{words}} mots"});r("zh_CN","\u7b80\u4f53\u4e2d\u6587",{"A preview of your embedded object is displayed below.":"A preview of your embedded object is displayed below.",
286
- "Added link: {{link}}":"Added link: {{link}}","All changes will be lost!":"All changes will be lost!","Apply Source":"\u5e94\u7528\u6e90\u4ee3\u7801","Are you sure you want to stop editing?":"Are you sure you want to stop editing?",Blockquote:"\u5927\u6bb5\u5f15\u7528",Bold:"\u7c97\u4f53",Cancel:"\u53d6\u6d88","Center Align":"\u4e2d\u5fc3\u5bf9\u9f50\u6587\u672c","Change HTML tag of selected element":"Change HTML tag of selected element","Change Language":"\u6539\u53d8\u8bed\u8a00","Check this box to have the file open in a new browser window":"Check this box to have the file open in a new browser window",
227
+ b){return a.uiButton({title:f("Sub script"),click:function(){a.toggleWrapper("sub",{classes:b.classes||b.cssPrefix+"sub"})}})}},textSuper:{init:function(a,b){return a.uiButton({title:f("Super script"),click:function(){a.toggleWrapper("sup",{classes:b.classes||b.cssPrefix+"super"})}})}}});b.ui.editor.registerUi({quoteBlock:{init:function(a,b){return a.uiButton({title:f("Blockquote"),icon:"ui-icon-quote",click:function(){a.toggleWrapper("blockquote",{classes:b.classes||b.cssPrefix+"blockquote"})}})}}});
228
+ b.ui.editor.registerUi({cancel:{init:function(a){return a.uiButton({name:"cancel",title:f("Cancel"),icons:{primary:"ui-icon-cancel"},dialog:null,click:function(){this.confirm()}})},confirm:function(){var a=this.editor.getPlugin("cancel"),c=this.editor;c.isDirty()?(this.dialog||(this.dialog=b(c.getTemplate("cancel.dialog"))),this.dialog.dialog({modal:!0,resizable:!1,title:f("Confirm Cancel Editing"),dialogClass:c.options.dialogClass+" "+c.options.baseClass,show:c.options.dialogShowAnimation,hide:c.options.dialogHideAnimation,
229
+ buttons:[{text:f("OK"),click:function(){a.cancel();b(this).dialog("close")}},{text:f("Cancel"),click:function(){b(this).dialog("close")}}],open:function(){var a=b(this).parent().find(".ui-dialog-buttonpane");a.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});a.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}})},close:function(){b(this).dialog("destroy").remove()}})):a.cancel()}}});b.ui.editor.registerPlugin({cancel:{cancel:function(){this.editor.unify(function(a){a.fire("cancel");
230
+ a.resetHtml();a.hideToolbar();a.disableEditing()})}}});b.ui.editor.registerPlugin("clean",{options:{stripAttrs:["_moz_dirty"],stripAttrContent:{type:"_moz"},stripEmptyTags:"h1,h2,h3,h4,h5,h6,p,b,i,u,strong,em,big,small,div,span".split(","),stripEmptyAttrs:["class","id","style"],stripDomains:[{selector:"a",attributes:["href"]},{selector:"img",attributes:["src"]}]},init:function(a){a.bind("change",this.clean,this)},clean:function(){var a,c=this.editor;for(a=0;a<this.options.stripAttrs.length;a++)c.getElement().find("["+
231
+ this.options.stripAttrs[a]+"]").removeAttr(this.options.stripAttrs[a]);for(a=0;a<this.options.stripAttrContent.length;a++)c.getElement().find("["+a+'="'+this.options.stripAttrs[a]+'"]').removeAttr(this.options.stripAttrs[a]);for(a=0;a<this.options.stripEmptyTags.length;a++)c.getElement().find(this.options.stripEmptyTags[a]).filter(function(){if(""!==b.trim(b(this).html()))return!1;if(!b(this).hasClass("rangySelectionBoundary"))return!0;if(!1!==c.savedSelection)return!1}).remove();for(a=0;a<this.options.stripEmptyAttrs.length;a++){var d=
232
+ this.options.stripEmptyAttrs[a];c.getElement().find("["+this.options.stripEmptyAttrs[a]+"]").filter(function(){return""===b.trim(b(this).attr(d))}).removeAttr(this.options.stripEmptyAttrs[a])}var e=r.location.protocol+"//"+r.location.host,f="//"+r.location.host;for(a=0;a<this.options.stripDomains.length;a++){var g=this.options.stripDomains[a];this.editor.getElement().find(g.selector).each(function(){for(var a=0;a<g.attributes.length;a++){var c=b(this).attr(g.attributes[a]);"undefined"!==typeof c&&
233
+ (0===c.indexOf(e)?b(this).attr(g.attributes[a],c.substr(e.length)):0===c.indexOf(f)&&b(this).attr(g.attributes[a],c.substr(f.length)))}})}}});b.ui.editor.registerUi({clean:{init:function(a){return a.uiButton({title:f("Remove unnecessary markup from editor content"),click:function(){a.getPlugin("clean").clean()}})}}});b.ui.editor.registerUi({clearFormatting:{init:function(a){return this.editor.uiButton({title:f("Clear Formatting"),click:function(){var c=o.getSelection();if(0<c.rangeCount){var d=c.getRangeAt(0).cloneRange(),
234
+ e=d.extractContents();""==n(e)&&(a.expandToParent(d),c.setSingleRange(d),e=d.extractContents());e=b("<div/>").append(n(e)).text();for(c=d.commonAncestorContainer;c&&c.parentNode!=a.getElement().get(0);)c=c.parentNode;if(c){d.setEndAfter(c);var f=d.extractContents();d.collapseAfter(c);d.insertNode(f);d.collapseAfter(c)}d.insertNode(document.createTextNode(e))}a.checkChange()}})}}});b.ui.editor.registerPlugin("clickToEdit",{init:function(a,c){var d=this,e=b(a.getTemplate("clicktoedit.message",c)).appendTo("body"),
235
+ c=b.extend({},{obscureLinks:!1,position:{at:"center center",of:a.getElement(),my:"center center",using:function(a){b(this).css({position:"absolute",top:a.top,left:a.left})}}},c);this.selection=function(){var a;document.selection?a=document.selection.createRange():document.getSelection().rangeCount&&(a=document.getSelection().getRangeAt(0));return a};this.show=function(){a.isEditing()||(a.getElement().addClass(c.baseClass+"-highlight"),a.getElement().addClass(c.baseClass+"-hover"),e.position(c.position),
236
+ e.addClass(c.baseClass+"-visible"))};this.hide=function(){a.getElement().removeClass(c.baseClass+"-highlight");a.getElement().removeClass(c.baseClass+"-hover");e.removeClass(c.baseClass+"-visible")};this.edit=function(){d.hide();a.isEditing()||a.enableEditing();a.isVisible()||a.showToolbar(d.selection())};e.position(c.position);c.obscureLinks||(a.getElement().find("a").bind("mouseenter."+a.widgetName,d.hide),a.getElement().find("a").bind("mouseleave."+a.widgetName,d.show));a.getElement().bind("mouseenter."+
237
+ a.widgetName,d.show);a.getElement().bind("mouseleave."+a.widgetName,d.hide);a.getElement().bind("click."+a.widgetName,function(a){(c.obscureLinks||!b(a.target).is("a")&&!b(a.target).parents("a").length)&&d.edit()});a.bind("destroy",function(){e.remove();a.getElement().unbind("mouseenter."+a.widgetName,d.show);a.getElement().unbind("mouseleave."+a.widgetName,d.hide);a.getElement().unbind("click."+a.widgetName,d.edit)})}});b.ui.editor.registerPlugin("dock",{enabled:!1,docked:!1,topSpacer:null,bottomSpacer:null,
238
+ options:{docked:!1,dockToElement:!1,dockUnder:!1,persist:!0,persistID:null},init:function(){this.bind("show",this.show);this.bind("hide",this.hide);this.bind("disabled",this.disable);this.bind("destroy",this.destroy,this)},show:function(){this.enabled?this.isDocked()&&this.showSpacers():((this.loadState()||this.options.docked)&&this.dock(),this.enabled=!0)},hide:function(){this.hideSpacers();this.editor.toolbar.css("width","auto")},showSpacers:function(){!this.options.dockToElement&&this.editor.toolbar.is(":visible")&&
239
+ (this.topSpacer=b("<div/>").addClass(this.options.baseClass+"-top-spacer").height(this.editor.toolbar.outerHeight()).prependTo("body"),this.bottomSpacer=b("<div/>").addClass(this.options.baseClass+"-bottom-spacer").height(this.editor.path.outerHeight()).appendTo("body"),this.editor.fire("resize"))},hideSpacers:function(){this.topSpacer&&(this.topSpacer.remove(),this.topSpacer=null);this.bottomSpacer&&(this.bottomSpacer.remove(),this.bottomSpacer=null);this.editor.fire("resize")},swapStyle:function(a,
240
+ b,d){var e={},f;for(f in d)a.css(f,b.css(f)),e[f]=b.css(f),b.css(f,d[f]);return e},revertStyle:function(a,b){for(var d in b)a.css(d,b[d])},dockToElement:function(){var a=b("<div/>").insertBefore(this.editor.getElement()).addClass(this.options.baseClass+"-docked-to-element-wrapper");this.editor.wrapper.appendTo(a);this.previousStyle=this.swapStyle(a,this.editor.getElement(),{display:"block","float":"none",clear:"none",position:"static","margin-left":0,"margin-right":0,"margin-top":0,"margin-bottom":0,
241
+ outline:0,width:"auto"});a.css("width",a.width()+parseInt(this.editor.getElement().css("padding-left"),10)+parseInt(this.editor.getElement().css("padding-right"),10));this.editor.getElement().appendTo(this.editor.wrapper).addClass(this.options.baseClass+"-docked-element")},undockFromElement:function(){this.editor.getElement().insertAfter(this.editor.wrapper).removeClass(this.options.baseClass+"-docked-element");this.editor.wrapper.appendTo("body").removeClass(this.options.baseClass+"-docked-to-element")},
242
+ dockToBody:function(){var a=0;b(this.options.dockUnder).length&&(a=b(this.options.dockUnder).outerHeight());this.top=this.editor.toolbarWrapper.css("top");this.editor.toolbarWrapper.css("top",a);this.editor.wrapper.addClass(this.options.baseClass+"-docked");this.editor.messages.css("top",a+this.editor.toolbar.outerHeight())},undockFromBody:function(){this.editor.toolbarWrapper.css("top",this.top);this.editor.wrapper.removeClass(this.options.baseClass+"-docked");this.hideSpacers()},dock:function(){if(!this.docked){this.docked=
243
+ this.saveState(!0);this.options.dockToElement?this.dockToElement():this.dockToBody();var a=this.editor.wrapper.find("."+this.options.baseClass+"-button").button({icons:{primary:"ui-icon-pin-w"}});a.attr("title")?a.attr("title",this.getTitle()):a.attr("data-title",this.getTitle());this.editor.toolbar.find("."+this.editor.options.baseClass+"-inner").addClass("ui-widget-header");this.showSpacers()}},undock:function(){if(this.docked){this.docked=this.destroying?!1:this.saveState(!1);this.editor.toolbar.find("."+
244
+ this.editor.options.baseClass+"-inner").removeClass("ui-widget-header");var a=this.editor.wrapper.find("."+this.options.baseClass+"-button").button({icons:{primary:"ui-icon-pin-s"}});a.attr("title")?a.attr("title",this.getTitle()):a.attr("data-title",this.getTitle());this.options.dockToElement?this.undockFromElement():this.undockFromBody();this.editor.fire("resize")}},isDocked:function(){return this.docked},getTitle:function(){return this.isDocked()?f("Click to detach the toolbar"):f("Click to dock the toolbar")},
245
+ saveState:function(a){if(this.persist)return this.persistID?this.persist("docked:"+this.persistID,a):this.persist("docked",a),a},loadState:function(){return!this.persist?null:this.persistID?this.persist("docked:"+this.persistID):this.persist("docked")},disable:function(){this.hideSpacers()},destroy:function(){this.destroying=!0;this.undock()}});b.ui.editor.registerUi({dock:{init:function(a){return a.uiButton({title:a.getPlugin("dock").getTitle(),icon:a.getPlugin("dock").isDocked()?"ui-icon-pin-w":
246
+ "ui-icon-pin-s",click:function(){var b=a.getPlugin("dock");b.isDocked()?b.undock():b.dock();a.unify(function(a){b.isDocked()?a.getPlugin("dock").dock():a.getPlugin("dock").undock()})}})}}});b.ui.editor.registerUi({embed:{dialog:null,init:function(a){a.bind("hide",this.hide,this);return a.uiButton({icon:"ui-icon-youtube",title:f("Embed object"),click:function(){this.show()}})},hide:function(){this.dialog&&b(this.dialog).dialog("destroy").remove();this.dialog=null;b(this.ui.button).button("option",
247
+ "disabled",!1)},show:function(){if(!this.dialog){b(this.ui.button).button("option","disabled",!0);var a=this;a.editor.saveSelection();this.dialog=b(this.editor.getTemplate("embed.dialog"));this.dialog.dialog({modal:!1,width:600,height:400,resizable:!0,title:f("Paste Embed Code"),autoOpen:!0,dialogClass:a.options.baseClass+" "+a.options.dialogClass,buttons:[{text:f("Embed Object"),click:function(){a.editor.restoreSelection();a.editor.replaceSelection(b(this).find("textarea").val());b(this).dialog("close")}},
248
+ {text:f("Close"),click:function(){a.hide()}}],open:function(){var a=b(this).parent().find(".ui-dialog-buttonpane");a.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});a.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}});var d=b(this).find(".ui-editor-embed-panel-tabs");d.find("ul li").click(function(){d.find("ul li").removeClass("ui-state-active").removeClass("ui-tabs-selected");b(this).addClass("ui-state-active").addClass("ui-tabs-selected");d.children("div").hide().eq(b(this).index()).show()});
249
+ var e=b(this).find(".ui-editor-embed-preview");b(this).find("textarea").change(function(){b(e).html(b(this).val())})},close:function(){a.hide()}})}}}});b.ui.editor.registerPlugin("emptyElement",{options:{tag:"<p/>"},init:function(){this.bind("change",this.change)},change:function(){var a=this;this.textNodes(this.editor.getElement()).each(function(){b(this).wrap(b(a.options.tag));a.editor.selectEnd(this)});this.editor.checkChange()},textNodes:function(a){return b(a).contents().filter(function(){return 3==
250
+ this.nodeType&&b.trim(this.nodeValue).length})}});b.ui.editor.registerUi({floatLeft:{init:function(a){return a.uiButton({title:f("Float Image Left"),click:function(){j(function(a){b(a.commonAncestorContainer).find("img").css("float","left")})}})}},floatRight:{init:function(a){return a.uiButton({title:f("Float Image Right"),click:function(){j(function(a){b(a.commonAncestorContainer).find("img").css("float","right")})}})}},floatNone:{init:function(a){return a.uiButton({title:f("Remove Image Float"),
251
+ click:function(){j(function(a){b(a.commonAncestorContainer).find("img").css("float","none")})}})}}});b.ui.editor.registerUi({fontSizeInc:{init:function(a,b){return a.uiButton({title:f("Increase Font Size"),click:function(){a.inverseWrapWithTagClass("big",b.cssPrefix+"big","small",b.cssPrefix+"small")}})}},fontSizeDec:{init:function(a,b){return a.uiButton({title:f("Decrease Font Size"),click:function(){a.inverseWrapWithTagClass("small",b.cssPrefix+"small","big",b.cssPrefix+"big")}})}}});b.ui.editor.registerUi({showGuides:{init:function(a,
252
+ b){a.bind("cancel",this.cancel,this);a.bind("destroy",this.cancel,this);return a.uiButton({title:f("Show Guides"),icon:"ui-icon-pencil",click:function(){a.getElement().toggleClass(b.baseClass+"-visible")}})},cancel:function(){this.editor.getElement().removeClass(this.options.baseClass+"-visible")}}});b.ui.editor.registerUi({undo:{init:function(a){a.bind("change",this.change,this);return a.uiButton({title:f("Step Back"),disabled:!0,click:function(){a.historyBack()}})},change:function(){0===this.editor.present?
253
+ this.ui.disable():this.ui.enable()}},redo:{init:function(a){a.bind("change",this.change,this);return this.ui=a.uiButton({title:f("Step Forward"),disabled:!0,click:function(){a.historyForward()}})},change:function(){this.editor.present===this.editor.history.length-1?this.ui.disable():this.ui.enable()}}});b.ui.editor.registerPlugin("hotkeys",{options:{actions:[{ui:"textBold",key:"b",label:f("ctrl + b")},{ui:"textItalic",key:"i",label:f("ctrl + i")},{ui:"textUnderline",key:"u",label:f("ctrl + u")},{ui:"undo",
254
+ key:"z",label:f("ctrl + z")},{ui:"redo",key:"y",label:f("ctrl + y")},{ui:"cancel",meta:!1,key:27,label:f("esc")},{ui:"save",key:"s",label:f("ctrl + s")}]},indexedActions:{},keyUpEventSignature:null,keyDownEventSignature:null,init:function(a){this.keyUpEventSignature="keyup."+this.options.baseClass;this.keyDownEventSignature="keydown."+this.options.baseClass;a.bind("enabled",this.enabled,this);a.bind("disabled",this.disabled,this)},disabled:function(){b(r).unbind(this.keyUpEventSignature);b(r).unbind(this.keyDownEventSignature);
255
+ this.indexedActions={}},enabled:function(){for(var a,c=0;c<this.options.actions.length;c++)if(a=this.options.actions[c],this.indexedActions[this.isNumeric(a.key)?a.key:a.key.charCodeAt(0)]=a,"undefined"!==typeof a.ui){var d=this.editor.getUi(a.ui);"undefined"!==typeof d&&d.ui.button.attr("title",d.ui.title+" ("+a.label+")")}var e=this;b(r).bind(this.keyDownEventSignature,function(a){e.actionForKeyCombination.call(e,a)&&a.preventDefault()});b(r).bind(this.keyUpEventSignature,function(a){var c=e.actionForKeyCombination.call(e,
256
+ a);c&&((b.isFunction(c.callback)?c.callback:function(){e.triggerUiAction(c.ui)}).call(e,a),a.preventDefault())})},actionForKeyCombination:function(a){var b=a.which;65<=b&&90>=b&&(b+=32);var d=this.indexedActions[b];if("undefined"===typeof d||!(!1===d.meta||a.ctrlKey||a.metaKey))return!1;a=!1;return(a=this.isNumeric(d.key)?b===d.key:String.fromCharCode(b).toLowerCase()===d.key)?d:!1},triggerUiAction:function(a,b){var d=this.editor.getUi(a);"undefined"!==typeof d&&d.ui.click.apply(d,b)},isNumeric:function(a){return!isNaN(a-
257
+ 0)}});b.ui.editor.registerUi({hr:{init:function(a){return a.uiButton({title:f("Insert Horizontal Rule"),click:function(){a.replaceSelection("<hr/>")}})}}});b.ui.editor.registerUi({i18n:{init:function(a){var c=this,d=this.persist("locale");d&&t(d);var d=b('<select autocomplete="off" name="i18n"/>'),e;for(e in g){var i=b('<option value="'+e+'" class="'+e+'"/>');i.html(p[e]);m===e&&i.attr("selected","selected");d.append(i)}return a.uiSelectMenu({title:f("Change Language"),select:d,change:function(a){t(c.persist("locale",
258
+ a))}})}}});s("en","English",{"A preview of your embedded object is displayed below.":"A preview of your embedded object is displayed below.","Added link: {{link}}":"Added link: {{link}}","All changes will be lost!":"All changes will be lost!","Apply Source":"Apply Source","Are you sure you want to stop editing?":"Are you sure you want to stop editing?",Blockquote:"Blockquote",Bold:"Bold",Cancel:"Cancel","Center Align":"Center Align","Change HTML tag of selected element":"Change HTML tag of selected element",
259
+ "Change Language":"Change Language","Check this box to have the file open in a new browser window":"Check this box to have the file open in a new browser window","Check this box to have the link open in a new browser window":"Check this box to have the link open in a new browser window","Choose a link type:":"Choose a link type:","Click to begin editing":"Click to begin editing","Click to detach the toolbar":"Click to detach the toolbar","Click to dock the toolbar":"Click to dock the toolbar","Click to select all editable content":"Click to select all editable content",
260
+ "Click to select the contents of the '{{element}}' element":"Click to select the contents of the '{{element}}' element",Close:"Close","Confirm Cancel Editing":"Confirm Cancel Editing","Content Statistics":"Content Statistics","Content contains more than {{limit}} characters and may be truncated":"Content contains more than {{limit}} characters and may be truncated","Content will not be truncated":"Content will not be truncated","Copy the file's URL from your browser's address bar and paste it into the box above":"Copy the file's URL from your browser's address bar and paste it into the box above",
261
+ "Copy the web address from your browser's address bar and paste it into the box above":"Copy the web address from your browser's address bar and paste it into the box above","Decrease Font Size":"Decrease Font Size",Destroy:"Destroy",Divider:"Divider","Document or other file":"Document or other file","Edit Link":"Edit Link",Email:"Email","Email address":"Email address","Embed Code":"Embed Code","Embed Object":"Embed Object","Embed object":"Embed object","Ensure the file has been uploaded to your website":"Ensure the file has been uploaded to your website",
262
+ "Enter email address":"Enter email address","Enter subject":"Enter subject","Enter your URL":"Enter your URL","Failed to resize images (error {{error}})":"Failed to resize images (error {{error}})","Failed to save {{failed}} content block(s).":"Failed to save {{failed}} content block(s).","Find the page on the web you want to link to":"Find the page on the web you want to link to","Float Left":"Float Left","Float None":"Float None","Float Right":"Float Right","Formatted &amp; Cleaned":"Formatted &amp; Cleaned",
263
+ "Formatted Unclean":"Formatted Unclean","Heading&nbsp;1":"Heading&nbsp;1","Heading&nbsp;2":"Heading&nbsp;2","Heading&nbsp;3":"Heading&nbsp;3","Increase Font Size":"Increase Font Size",Initializing:"Initializing",Insert:"Insert","Insert Horizontal Rule":"Insert Horizontal Rule","Insert Link":"Insert Link","Insert Snippet":"Insert Snippet",Italic:"Italic",Justify:"Justify","Learn More About the Raptor WYSIWYG Editor":"Learn More About the Raptor WYSIWYG Editor","Left Align":"Left Align","Link to a document or other file":"Link to a document or other file",
264
+ "Link to a page on this or another website":"Link to a page on this or another website","Link to an email address":"Link to an email address",Location:"Location","N/A":"N/A","New window":"New window","No changes detected to save...":"No changes detected to save...","Not sure what to put in the box above?":"Not sure what to put in the box above?",OK:"OK","Open the uploaded file in your browser":"Open the uploaded file in your browser","Ordered List":"Ordered List","Page on this or another website":"Page on this or another website",
265
+ Paragraph:"Paragraph","Paste Embed Code":"Paste Embed Code","Paste your embed code into the text area below.":"Paste your embed code into the text area below.","Plain Text":"Plain Text",Preview:"Preview",Raptorize:"Raptorize",Reinitialise:"Reinitialise","Remaining characters before the recommended character limit is reached":"Remaining characters before the recommended character limit is reached","Remove Link":"Remove Link","Remove unnecessary markup from editor content":"Remove unnecessary markup from editor content",
266
+ "Resizing image(s)":"Resizing image(s)","Right Align":"Right Align",Save:"Save","Saved {{saved}} out of {{dirty}} content blocks.":"Saved {{saved}} out of {{dirty}} content blocks.","Saving changes...":"Saving changes...","Select all editable content":"Select all editable content","Select {{element}} element":"Select {{element}} element","Show Guides":"Show Guides","Source Code":"Source Code","Step Back":"Step Back","Step Forward":"Step Forward",Strikethrough:"Strikethrough","Sub script":"Sub script",
267
+ "Subject (optional)":"Subject (optional)","Successfully saved {{saved}} content block(s).":"Successfully saved {{saved}} content block(s).","Super script":"Super script","The URL does not look well formed":"The URL does not look well formed","The email address does not look well formed":"The email address does not look well formed",'The image "{{image}}" is too large for the element being edited.<br/>It has been resized with CSS.':'The image "{{image}}" is too large for the element being edited.<br/>It has been resized with CSS.',
268
+ 'The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.':'The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.',"The url for the file you inserted doesn't look well formed":"The url for the file you inserted doesn't look well formed","The url for the link you inserted doesn't look well formed":"The url for the link you inserted doesn't look well formed",
269
+ "This block contains unsaved changes":"This block contains unsaved changes",Underline:"Underline","Unnamed Button":"Unnamed Button","Unnamed Select Menu":"Unnamed Select Menu","Unordered List":"Unordered List","Update Link":"Update Link","Updated link: {{link}}":"Updated link: {{link}}","View / Edit Source":"View / Edit Source","View Source":"View Source","\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes":"\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes",
270
+ "ctrl + b":"ctrl + b","ctrl + i":"ctrl + i","ctrl + s":"ctrl + s","ctrl + u":"ctrl + u","ctrl + y":"ctrl + y","ctrl + z":"ctrl + z",esc:"esc",root:"root","{{charactersRemaining}} characters over limit":"{{charactersRemaining}} characters over limit","{{charactersRemaining}} characters remaining":"{{charactersRemaining}} characters remaining","{{characters}} characters, {{charactersRemaining}} over the recommended limit":"{{characters}} characters, {{charactersRemaining}} over the recommended limit",
271
+ "{{characters}} characters, {{charactersRemaining}} remaining":"{{characters}} characters, {{charactersRemaining}} remaining","{{images}} image(s) have been replaced with resized versions":"{{images}} image(s) have been replaced with resized versions","{{sentences}} sentences":"{{sentences}} sentences","{{words}} word":"{{words}} word","{{words}} words":"{{words}} words"});s("fr","Fran\u00e7ais",{"A preview of your embedded object is displayed below.":"Un aper\u00e7u de votre objet int\u00e9gr\u00e9 est affich\u00e9 ci-dessous.",
272
+ "Added link: {{link}}":"Lien ajout\u00e9 : {{link}}","All changes will be lost!":"Toutes les modifications seront perdues !","Apply Source":"Appliquer la source","Are you sure you want to stop editing?":"\u00cates-vous s\u00fbr(e) de vouloir arr\u00eater la modification ?",Blockquote:"Citation",Bold:"Gras",Cancel:"Annuler","Center Align":"Aligner au centre","Change HTML tag of selected element":"Modifier la balise HTML de l'\u00e9l\u00e9ment s\u00e9lectionn\u00e9","Change Language":"Changer de langue",
273
+ "Check this box to have the file open in a new browser window":"Cochez cette case pour ouvrir le fichier dans une nouvelle fen\u00eatre de navigateur","Check this box to have the link open in a new browser window":"Cochez cette case pour ouvrir le lien dans une nouvelle fen\u00eatre de navigateur","Choose a link type:":"Choisissez un type de lien :","Click to begin editing":"Cliquer pour commencer la modification","Click to detach the toolbar":"Cliquer pour d\u00e9tacher la barre d'outils","Click to dock the toolbar":"Cliquer pour ancrer la barre d'outils",
274
+ "Click to select all editable content":"Cliquer pour s\u00e9lectionner tout le contenu modifiable","Click to select the contents of the '{{element}}' element":"Cliquer pour s\u00e9lectionner le contenu de l'\u00e9l\u00e9ment '{{element}}'",Close:"Fermer","Confirm Cancel Editing":"Confirmer l'annulation des modifications","Content Statistics":"Statistiques de contenu","Content contains more than {{limit}} characters and may be truncated":"Le contenu contient plus de {{limit}} caract\u00e8res et peut \u00eatre tronqu\u00e9",
275
+ "Content will not be truncated":"Le contenu ne sera pas tronqu\u00e9","Copy the file's URL from your browser's address bar and paste it into the box above":"Copiez l'URL du fichier depuis la barre d'adresse de votre navigateur et collez-la dans le champ ci-dessus","Copy the web address from your browser's address bar and paste it into the box above":"Copiez l'adresse web depuis la barre d'adresse de votre navigateur et collez-la dans le champ ci-dessus","Decrease Font Size":"Diminuer la taille de la police",
276
+ Destroy:"D\u00e9truire",Divider:"Div","Document or other file":"Document ou autre fichier","Edit Link":"Modifier le lien",Email:"E-mail","Email address":"Adresse e-mail","Embed Code":"Code int\u00e9gr\u00e9","Embed Object":"Int\u00e9grer l'objet","Embed object":"Object int\u00e9gr\u00e9","Ensure the file has been uploaded to your website":"V\u00e9rifiez que le fichier a \u00e9t\u00e9 transf\u00e9r\u00e9 vers votre site","Enter email address":"Saisir l'adresse e-mail","Enter subject":"Saisir le sujet",
277
+ "Enter your URL":"Saisir l'URL","Failed to resize images (error {{error}})":"\u00c9chec de redimensionnement des images (erreur {{error}})","Failed to save {{failed}} content block(s).":"\u00c9chec d'enregistrement du(des) bloc(s) de contenu {{failed}}.","Find the page on the web you want to link to":"Trouvez la page web que vous voulez lier","Float Left":"Flotter \u00e0 gauche","Float None":"Ne pas flotter","Float Right":"Flotter \u00e0 droite","Formatted &amp; Cleaned":"Formatt\u00e9 &amp; Nettoy\u00e9",
278
+ "Formatted Unclean":"Formatt\u00e9 non nettoy\u00e9","Heading&nbsp;1":"Titre&nbsp;1","Heading&nbsp;2":"Titre&nbsp;2","Heading&nbsp;3":"Titre&nbsp;3","Increase Font Size":"Augmenter la taille de la police",Initializing:"Initialisation",Insert:"Ins\u00e9rer","Insert Horizontal Rule":"Ins\u00e9rer une r\u00e8gle horizontale","Insert Link":"Ins\u00e9rer un lien","Insert Snippet":"Ins\u00e9rer un bout de code",Italic:"Italique",Justify:"Justifier","Learn More About the Raptor WYSIWYG Editor":"En savoir plus sur l'\u00e9diteur WYSIWYG Raptor",
279
+ "Left Align":"Aligner \u00e0 gauche","Link to a document or other file":"Lier un document ou un autre fichier","Link to a page on this or another website":"Lier une page ou un autre site","Link to an email address":"Lier une adresse e-mail",Location:"Emplacement","N/A":"N/A","New window":"Nouvelle fen\u00eatre","No changes detected to save...":"Aucune modification d\u00e9tect\u00e9e \u00e0 enregistrer...","Not sure what to put in the box above?":"Pas s\u00fbr(e) de savoir quoi mettre dans le champ ci-dessus ?",
280
+ OK:"OK","Open the uploaded file in your browser":"Ouvrir le fichier trasnf\u00e9r\u00e9 dans votre navigateur","Ordered List":"Liste ordonn\u00e9e","Page on this or another website":"Page sur ce site ou un autre site",Paragraph:"Paragraphe","Paste Embed Code":"Coller le code","Paste your embed code into the text area below.":"Collez votre code int\u00e9gr\u00e9 dans la zone de texte ci-dessous.","Plain Text":"Texte brut",Preview:"Aper\u00e7u",Raptorize:"Raptoriser",Reinitialise:"R\u00e9initialiser",
281
+ "Remaining characters before the recommended character limit is reached":"Caract\u00e8res restants avant que la limite de caract\u00e8re recommand\u00e9e ne soit atteinte","Remove Link":"Retirer le lien","Remove unnecessary markup from editor content":"Retirer le balisage non n\u00e9cessaire du contenu de l'\u00e9diteur","Resizing image(s)":"Redimensionnement de(s) image(s)","Right Align":"Aligner \u00e0 droite",Save:"Enregistrer","Saved {{saved}} out of {{dirty}} content blocks.":"{{saved}} enregistr\u00e9 sur {{dirty}} blocs de contenu.",
282
+ "Saving changes...":"Enregistrement des modifications...","Select all editable content":"S\u00e9lectionner tout le contenu modifiable","Select {{element}} element":"S\u00e9lectionner l'\u00e9l\u00e9ment {{element}}","Show Guides":"Afficher les guides","Source Code":"Code source","Step Back":"En arri\u00e8re","Step Forward":"En avant",Strikethrough:"Barr\u00e9","Sub script":"Indice","Subject (optional)":"Sujet (facultatif)","Successfully saved {{saved}} content block(s).":"{{saved}} bloc(s) de contenu enregistr\u00e9(s) avec succ\u00e8s.",
283
+ "Super script":"Exposant","The URL does not look well formed":"L'URL para\u00eet malform\u00e9e","The email address does not look well formed":"L'adresse e-mail para\u00eet malform\u00e9e",'The image "{{image}}" is too large for the element being edited.<br/>It has been resized with CSS.':"L'image \"{{image}}\" est trop grande pour l'\u00e9l\u00e9ment en cours de modification.<br/>Elle a \u00e9t\u00e9 redimensionn\u00e9e en CSS.",'The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.':"L'image \"{{image}}\" est trop grande pour l'\u00e9l\u00e9ment en cours de modification.<br/>Elle sera remplac\u00e9e par une copie redimensionn\u00e9e quand vos modifications seront enregistr\u00e9es.",
284
+ "The url for the file you inserted doesn't look well formed":"L'url du fichier que vous avez ins\u00e9r\u00e9 para\u00eet malform\u00e9e","The url for the link you inserted doesn't look well formed":"L'url du lien que vous avez ins\u00e9r\u00e9 para\u00eet malform\u00e9e","This block contains unsaved changes":"Ce bloc contient des modifications non enregistr\u00e9es",Underline:"Soulign\u00e9","Unnamed Button":"Boutton sans nom","Unnamed Select Menu":"Menu de s\u00e9lection sans nom","Unordered List":"Liste non ordonn\u00e9e",
285
+ "Update Link":"Mettre \u00e0 jour le lien","Updated link: {{link}}":"Lien mis \u00e0 jour : {{link}}","View / Edit Source":"Voir / Modifier la source","View Source":"Voir la source","\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes":"\nIl y a des modifications non enregistr\u00e9es sur cette page. \nSi vous quittez cette page, vous perdrez vos modifications non enregistr\u00e9es","ctrl + b":"ctrl + b","ctrl + i":"ctrl + i","ctrl + s":"ctrl + s",
286
+ "ctrl + u":"ctrl + u","ctrl + y":"ctrl + y","ctrl + z":"ctrl + z",esc:"esc",root:"racine","{{charactersRemaining}} characters over limit":"{{charactersRemaining}} caract\u00e8res au-dessus de la limite","{{charactersRemaining}} characters remaining":"{{charactersRemaining}} caract\u00e8res restants","{{characters}} characters, {{charactersRemaining}} over the recommended limit":"{{characters}} caract\u00e8res, {{charactersRemaining}} au-dessus de la limite","{{characters}} characters, {{charactersRemaining}} remaining":"{{characters}} caract\u00e8res, {{charactersRemaining}} restants",
287
+ "{{images}} image(s) have been replaced with resized versions":"{{images}} image(s) a(ont) \u00e9t\u00e9 remplac\u00e9e(s) par une version redimensionn\u00e9e","{{sentences}} sentences":"{{sentences}} phrases","{{words}} word":"{{words}} mot","{{words}} words":"{{words}} mots"});s("zh_CN","\u7b80\u4f53\u4e2d\u6587",{"A preview of your embedded object is displayed below.":"A preview of your embedded object is displayed below.","Added link: {{link}}":"Added link: {{link}}","All changes will be lost!":"All changes will be lost!",
288
+ "Apply Source":"\u5e94\u7528\u6e90\u4ee3\u7801","Are you sure you want to stop editing?":"Are you sure you want to stop editing?",Blockquote:"\u5927\u6bb5\u5f15\u7528",Bold:"\u7c97\u4f53",Cancel:"\u53d6\u6d88","Center Align":"\u4e2d\u5fc3\u5bf9\u9f50\u6587\u672c","Change HTML tag of selected element":"Change HTML tag of selected element","Change Language":"\u6539\u53d8\u8bed\u8a00","Check this box to have the file open in a new browser window":"Check this box to have the file open in a new browser window",
287
289
  "Check this box to have the link open in a new browser window":"Check this box to have the link open in a new browser window","Choose a link type:":"Choose a link type:","Click to begin editing":"Click to begin editing","Click to detach the toolbar":"Click to detach the toolbar","Click to dock the toolbar":"Click to dock the toolbar","Click to select all editable content":"Click to select all editable content","Click to select the contents of the '{{element}}' element":"Click to select the contents of the '{{element}}' element",
288
290
  Close:"Close","Confirm Cancel Editing":"\u786e\u8ba4\u53d6\u6d88\u7f16\u8f91","Content Statistics":"Content Statistics","Content contains more than {{limit}} characters and may be truncated":"Content contains more than {{limit}} characters and may be truncated","Content will not be truncated":"Content will not be truncated","Copy the file's URL from your browser's address bar and paste it into the box above":"Copy the file's URL from your browser's address bar and paste it into the box above","Copy the web address from your browser's address bar and paste it into the box above":"Copy the web address from your browser's address bar and paste it into the box above",
289
291
  "Decrease Font Size":"Decrease Font Size",Destroy:"Destroy",Divider:"Divider","Document or other file":"Document or other file","Edit Link":"Edit Link",Email:"Email","Email address":"\u7535\u5b50\u90ae\u4ef6","Embed Code":"Embed Code","Embed Object":"Embed Object","Embed object":"Embed object","Ensure the file has been uploaded to your website":"Ensure the file has been uploaded to your website","Enter email address":"Enter email address","Enter subject":"Enter subject","Enter your URL":"Enter your URL",
@@ -296,75 +298,71 @@ Paragraph:"Paragraph","Paste Embed Code":"Paste Embed Code","Paste your embed co
296
298
  'The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.':'The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.',"The url for the file you inserted doesn't look well formed":"The url for the file you inserted doesn't look well formed","The url for the link you inserted doesn't look well formed":"The url for the link you inserted doesn't look well formed",
297
299
  "This block contains unsaved changes":"This block contains unsaved changes",Underline:"\u4e0b\u5212\u7ebf","Unnamed Button":"Unnamed Button","Unnamed Select Menu":"Unnamed Select Menu","Unordered List":"Unordered List","Update Link":"Update Link","Updated link: {{link}}":"Updated link: {{link}}","View / Edit Source":"View / Edit Source","View Source":"View Source","\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes":"\nThere are unsaved changes on this page. \nIf you navigate away from this page you will lose your unsaved changes",
298
300
  "ctrl + b":"ctrl + b","ctrl + i":"ctrl + i","ctrl + s":"ctrl + s","ctrl + u":"ctrl + u","ctrl + y":"ctrl + y","ctrl + z":"ctrl + z",esc:"esc",root:"\u672c","{{charactersRemaining}} characters over limit":"{{charactersRemaining}} characters over limit","{{charactersRemaining}} characters remaining":"{{charactersRemaining}} characters remaining","{{characters}} characters, {{charactersRemaining}} over the recommended limit":"{{characters}} characters, {{charactersRemaining}} over the recommended limit",
299
- "{{characters}} characters, {{charactersRemaining}} remaining":"{{characters}} characters, {{charactersRemaining}} remaining","{{images}} image(s) have been replaced with resized versions":"{{images}} image(s) have been replaced with resized versions","{{sentences}} sentences":"{{sentences}} sentences","{{words}} word":"{{words}} word","{{words}} words":"{{words}} words"});d.ui.editor.registerPlugin("imageResize",{options:{allowOversizeImages:!1,manuallyResizingClass:"",resizeButtonClass:"",resizeAjax:!1,
300
- resizingClass:"",resizeAjaxClass:"",ajax:{url:"/",type:"post",cache:!1}},init:function(a){this.options=d.extend(this.options,{manuallyResizingClass:this.options.baseClass+"-manually-resize",resizeButtonClass:this.options.baseClass+"-resize-button",resizingClass:this.options.baseClass+"-in-progress",resizeAjaxClass:this.options.baseClass+"-on-save"});a.bind("enabled",this.bind,this)},bind:function(){this.options.allowOversizeImages||(this.addImageListeners(),this.editor.bind("change",this.scanForOversizedImages,
301
- this),this.editor.bind("save",this.save,this));this.editor.bind("destroy",this.cancel,this);this.editor.bind("cancel",this.cancel,this);this.editor.getElement().on("mouseenter."+this.options.baseClass,"img",d.proxy(this.imageMouseEnter,this));this.editor.getElement().on("mouseleave."+this.options.baseClass,"img",d.proxy(this.imageMouseLeave,this))},unbind:function(){this.options.allowOversizeImages||(this.removeImageListeners(),this.editor.unbind("change",this.scanForOversizedImages,this));this.editor.getElement().off("mouseenter."+
302
- this.options.baseClass,"img");this.editor.getElement().off("mouseleave."+this.options.baseClass,"img")},addImageListeners:function(){this.resized=d.proxy(this.imageResizedByUser,this);var a=this;this.editor.getElement().find("img").each(function(){this.addEventListener&&this.addEventListener("DOMAttrModified",a.resized,!1);this.attachEvent&&this.attachEvent("onpropertychange",a.resized)})},removeImageListeners:function(){var a=this;this.editor.getElement().find("img").each(function(){this.removeEventListener&&
303
- this.addEventListener("DOMAttrModified",a.resized,!1);this.detachEvent&&this.detachEvent("onpropertychange",a.resized)})},imageResizedByUser:function(a){var b=d(a.target);b.is("img")&&b.attr("_moz_resizing")&&"style"==a.attrName&&a.newValue.match(/width|height/)&&(this.options.resizeAjax&&b.addClass(this.options.resizeAjaxClass),this.editor.fire("change"))},scanForOversizedImages:function(){var a=this.editor.getElement(),b=[];d(a.find("img")).each(function(){(a.height()<d(this).outerHeight()||a.width()<
304
- d(this).outerWidth())&&b.push(d(this))});b.length&&this.resizeOversizedImages(b,a.width(),a.height())},resizeOversizedImages:function(a,b,c){for(var e=d("<a>",{href:"",target:"_blank"}),g=0;g<a.length;g++){var f=a[g],n=f.outerWidth(),i=f.outerHeight(),k=Math.min(b/n,c/i),n=Math.abs(k*(n-(f.outerWidth()-f.width()))),i=Math.abs(k*(i-(f.outerHeight()-f.height())));f.addClass(this.options.resizingClass);e=e.html(f.attr("title")||f.attr("src").substr(f.attr("src").lastIndexOf("/")+1)).attr("href",f.attr("src"));
305
- d(f).css({width:n,height:i}).attr("height",i).attr("width",n);this.options.resizeAjax&&f.addClass(this.options.resizeAjaxClass);var l=this;this.showOversizeWarning(this.editor.outerHtml(e),{hide:function(){f.removeClass(l.options.resizingClass)}})}},cancel:function(){this.removeClasses();this.removeToolsButtons();this.unbind()},save:function(){this.removeClasses(this.options.resizingClass);this.options.resizeAjax&&this.resizeImagesAjax();this.removeToolsButtons();this.unbind()},resizeImagesAjax:function(){var a=
306
- this,b=[];d("."+this.options.resizeAjaxClass).each(function(){d(this).attr("id")||d(this).attr("id",a.editor.getUniqueId());b.push({id:d(this).attr("id"),src:this.src,width:d(this).width(),height:d(this).height()})});if(b.length){var c=this.editor.showLoading(f("Resizing image(s)")),e=this.options.ajax;e.data={images:b};e.async=!1;d.ajax(e).done(function(e){d(e).each(function(){d("#"+this.id).attr("src",this.src).removeAttr("id")});a.editor.fire("change");c.hide();a.editor.showConfirm(f("{{images}} image(s) have been replaced with resized versions",
307
- {images:b.length}))}).fail(function(b){c.hide();a.editor.showError(f("Failed to resize images (error {{error}})",{error:b.status}))}).always(function(){a.removeClasses([a.options.resizeAjaxClass])})}},showOversizeWarning:function(a,b){this.options.resizeAjax?this.editor.showInfo(f('The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.',{image:a}),b):this.editor.showInfo(f('The image "{{image}}" is too large for the element being edited.<br/>It has been resized with CSS.',
308
- {image:a}),b)},removeClasses:function(a){a||(a=[this.options.resizingClass,this.options.resizeAjaxClass,this.options.manuallyResizingClass]);d.isArray(a)||(a=[a]);for(var b=0;b<a.length;b++)this.editor.getElement().find("img."+a[b]).removeClass(a[b])},manuallyResizeImage:function(){this.removeToolsButtons();var a=this.editor.getElement().find("img."+this.options.manuallyResizingClass),b=d(a).innerWidth(),c=d(a).innerHeight(),e="#"+this.options.baseClass+"-width",g="#"+this.options.baseClass+"-height",
309
- h=this,n=function(){d(a).css({width:Math.round(d(e).val())+"px",height:Math.round(d(g).val())+"px"})};d(this.editor.getTemplate("imageresize.manually-resize-image",{width:b,height:c,baseClass:this.options.baseClass})).dialog({modal:!0,resizable:!1,title:f("Modify Image Size"),buttons:[{text:f("Resize Image"),click:function(){n();d(this).dialog("close")}},{text:f("Cancel"),click:function(){d(this).dialog("close")}}],close:function(){h.editor.fire("change")},open:function(){var a=d(this).find(e),f=
310
- d(this).find(g);a.keyup(function(){f.val(Math.round(Math.abs(c/b*d(this).val())));n()});f.keyup(function(){a.val(Math.round(Math.abs(b/c*d(this).val())));n()})}}).dialog("open")},displayToolsButtonRelativeToImage:function(a){var b=d("<button/>").appendTo("body").addClass(this.options.resizeButtonClass).button({text:!1,icons:{primary:"ui-icon-tools"}});b.css({position:"absolute",left:d(a).innerWidth()-d(b).outerWidth()-20+"px",marginTop:"20px"}).click(d.proxy(this.manuallyResizeImage,this));d(a).before(b)},
311
- removeToolsButtons:function(){this.editor.getElement().find("."+this.options.resizeButtonClass).each(function(){d(this).remove()})},imageMouseEnter:function(a){d(a.target).addClass(this.options.manuallyResizingClass);this.displayToolsButtonRelativeToImage(a.target)},imageMouseLeave:function(a){d(a.relatedTarget).hasClass(this.options.resizeButtonClass)||(d(a.target).removeClass(this.options.manuallyResizingClass),this.removeToolsButtons())}});d.ui.editor.registerUi({length:{ui:null,options:{length:150},
312
- init:function(a){a.bind("show",d.proxy(this.updateCount,this));a.bind("change",d.proxy(this.updateCount,this));return this.ui=this.editor.uiButton({title:f("Remaining characters before the recommended character limit is reached"),label:f("Initializing"),text:!0,icon:"ui-icon-dashboard",click:function(){this.showStatistics()}})},updateCount:function(){var a=this.options.length-d("<div></div>").html(this.editor.getCleanHtml()).text().length,b=this.ui.button,c=null,c=0<=a?f("{{charactersRemaining}} characters remaining",
313
- {charactersRemaining:a}):f("{{charactersRemaining}} characters over limit",{charactersRemaining:-1*a});b.button("option","label",c);b.button("option","text",!0);0>a?b.addClass("ui-state-error"):0<=a&&15>=a?b.addClass("ui-state-highlight").removeClass("ui-state-error"):b.removeClass("ui-state-highlight ui-state-error")},showStatistics:function(){this.processTemplate().dialog({modal:!0,resizable:!1,title:f("Content Statistics"),dialogClass:this.editor.options.dialogClass+" "+this.editor.options.baseClass,
314
- show:this.editor.options.dialogShowAnimation,hide:this.editor.options.dialogHideAnimation,buttons:[{text:f("OK"),click:function(){d(this).dialog("close")}}],open:function(){d(this).parent().find(".ui-dialog-buttonpane").find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}})},close:function(){d(this).dialog("destroy").remove()}})},processTemplate:function(){var a=d("<div></div>").html(this.editor.getCleanHtml()).text(),b=null,c=this.options.length-a.length,b=0>c?f("Content contains more than {{limit}} characters and may be truncated",
315
- {limit:this.options.length}):f("Content will not be truncated"),e=null,e=a.split(" ").length,e=1==e?f("{{words}} word",{words:e}):f("{{words}} words",{words:e}),g=null,g=a.split(". ").length,g=f("{{sentences}} sentences",{sentences:g}),h=null,h=0<=c?f("{{characters}} characters, {{charactersRemaining}} remaining",{characters:a.length,charactersRemaining:c}):f("{{characters}} characters, {{charactersRemaining}} over the recommended limit",{characters:a.length,charactersRemaining:-1*c});return d(this.editor.getTemplate("length.dialog",
316
- {characters:h,words:e,sentences:g,truncation:b}))}}});d.ui.editor.registerPlugin("link",{visible:null,dialog:null,types:{},defaultLinkTypes:[{type:"external",title:f("Page on this or another website"),focusSelector:'input[name="location"]',init:function(){this.content=this.plugin.editor.getTemplate("link.external",this.options);return this},show:function(a,b){var c=this;a.find('input[name="location"]').bind("keyup",function(){c.validate(a)});b&&(a.find('input[name="location"]').val(this.plugin.selectedElement.attr("href")).trigger("keyup"),
317
- "_blank"===this.plugin.selectedElement.attr("target")&&a.find('input[name="blank"]').attr("checked","checked"));return this},attributes:function(a){var b={href:a.find('input[name="location"]').val()};a.find('input[name="blank"]').is(":checked")&&(b.target="_blank");this.options.regexLink.test(b.href)||this.plugin.editor.showWarning(f("The url for the link you inserted doesn't look well formed"));return b},validate:function(a){var b="."+this.options.baseClass+"-error-message-url",c=!0;this.options.regexLink.test(a.find('input[name="location"]').val())?
318
- a.find(b).has(":visible").hide():(a.find(b).size()||a.find('input[name="location"]').after(this.plugin.editor.getTemplate("link.error",d.extend({},this.options,{messageClass:this.options.baseClass+"-error-message-url",message:f("The URL does not look well formed")}))),a.find(b).not(":visible").show(),c=!1);return c}},{type:"email",title:f("Email address"),focusSelector:'input[name="email"]',init:function(){this.content=this.plugin.editor.getTemplate("link.email",this.options);return this},show:function(a,
319
- b){var c=this;a.find('input[name="email"]').bind("keyup",function(){c.validate(a)});b&&(a.find('input[name="email"]').val(this.plugin.selectedElement.attr("href").replace(/(mailto:)|(\?Subject.*)/gi,"")).trigger("keyup"),/\?Subject\=/i.test(this.plugin.selectedElement.attr("href"))&&a.find('input[name="subject"]').val(decodeURIComponent(this.plugin.selectedElement.attr("href").replace(/(.*\?Subject=)/i,""))));return this},attributes:function(a){var b={href:"mailto:"+a.find('input[name="email"]').val()};
320
- if(a=a.find('input[name="subject"]').val())b.href=b.href+"?Subject="+encodeURIComponent(a);return b},validate:function(a){var b="."+this.options.baseClass+"-error-message-email",c=!0;this.options.regexEmail.test(a.find('input[name="email"]').val())?a.find(b).has(":visible").hide():(a.find(b).size()||a.find('input[name="email"]').after(this.plugin.editor.getTemplate("link.error",d.extend({},this.options,{messageClass:this.options.baseClass+"-error-message-email",message:f("The email address does not look well formed")}))),
321
- a.find(b).not(":visible").show(),c=!1);return c}},{type:"fileUrl",title:f("Document or other file"),focusSelector:'input[name="location"]',init:function(){this.content=this.plugin.editor.getTemplate("link.file-url",this.options);return this},show:function(a,b){var c=this;a.find('input[name="location"]').bind("keyup",function(){c.validate(a)});b&&(a.find('input[name="location"]').val(this.plugin.selectedElement.attr("href")).trigger("click"),"_blank"===this.plugin.selectedElement.attr("target")&&a.find('input[name="blank"]').attr("checked",
322
- "checked"));return this},attributes:function(a){var b={href:a.find('input[name="location"]').val()};a.find('input[name="blank"]').is(":checked")&&(b.target="_blank");this.options.regexLink.test(b.href)||this.plugin.editor.showWarning(f("The url for the file you inserted doesn't look well formed"));return b},validate:function(a){var b="."+this.options.baseClass+"-error-message-file-url",c=!0;this.options.regexLink.test(a.find('input[name="location"]').val())?a.find(b).has(":visible").hide():(a.find(b).size()||
323
- a.find('input[name="location"]').after(this.plugin.editor.getTemplate("link.error",d.extend({},this.options,{messageClass:this.options.baseClass+"-error-message-file-url",message:f("The URL does not look well formed")}))),a.find(b).not(":visible").show(),c=!1);return c}}],init:function(a,b){this.options=d.extend({},{panelAnimation:"fade",replaceTypes:!1,customTypes:[],typeDataName:"uiWidgetEditorLinkType",dialogWidth:750,dialogHeight:"auto",dialogMinWidth:670,regexLink:/^(http|https|ftp):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i,
324
- regexEmail:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/},b);a.bind("save",this.repairLinks,this);a.bind("cancel",this.cancel,this)},initTypes:function(){this.types={};for(var a={type:null,title:null,content:null,plugin:this,options:this.options,attributes:function(){},init:function(){return this},show:function(){},editing:function(a){if(a.attr("class"))for(var b=this.classes.split(/\s/gi),c=0;c<b.length;c++)if(b[c].trim()&&
325
- d(a).hasClass(b[c]))return!0;return!1},focusSelector:null,focus:function(){if(this.focusSelector){var a=d(this.focusSelector),b=a.val();a.val("");a.focus().val(b)}}},b=null,b=this.options.replaceTypes?this.options.customTypes:d.merge(this.defaultLinkTypes,this.options.customTypes),c,e=0;e<b.length;e++)c=d.extend({},a,b[e],{classes:this.options.baseClass+"-"+b[e].type}).init(),this.types[c.type]=c},show:function(){if(!this.visible){this.selectedElement=this.editor.getSelectedElements().first();var a=
326
- this.selectedElement.is("a"),b=this.options,c=m.saveSelection(),e=this,g=this.dialog=d(this.editor.getTemplate("link.dialog",b)).appendTo("body");this.initTypes();var h=this.dialog.find("fieldset"),n;for(n in this.types)d(this.editor.getTemplate("link.label",this.types[n])).appendTo(h);h.find('input[type="radio"]').bind("change."+this.editor.widgetName,function(){e.typeChange(e.types[d(this).val()],a)});g.dialog({autoOpen:!1,modal:!0,resizable:!0,width:b.dialogWidth,minWidth:b.dialogMinWidth,height:b.dialogHeight,
327
- title:a?f("Edit Link"):f("Insert Link"),dialogClass:b.baseClass+" "+b.dialogClass,buttons:[{text:a?f("Update Link"):f("Insert Link"),click:function(){m.restoreSelection(c);e.apply(a)?d(this).dialog("close"):c=m.saveSelection()}},{text:f("Cancel"),click:function(){m.restoreSelection(c);d(this).dialog("close")}}],beforeopen:function(){e.dialog.find("."+e.options.baseClass+"-content").hide()},open:function(){e.visible=!0;var b=g.parent().find(".ui-dialog-buttonpane");b.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});
328
- b.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}});var c=g.find('.ui-editor-link-menu input[type="radio"]');c.first().attr("checked","checked");var f=!1;if(a)for(var h in e.types)if(f=e.types[h].editing(e.selectedElement)){c.filter('[value="'+h+'"]').attr("checked","checked");e.typeChange(e.types[h],a);break}(!a||a&&!f)&&e.typeChange(e.types[c.filter(":checked").val()],a);d(this).unbind("keyup."+e.editor.widgetName).bind("keyup."+e.editor.widgetName,function(a){13==a.keyCode&&
329
- (a=e.types[c.filter(":checked").val()],(!d.isFunction(a.validate)||a.validate(e.dialog.find("."+e.options.baseClass+"-content")))&&b.find("button:eq(0)").trigger("click"))})},close:function(){e.visible=!1;g.find("."+b.baseClass+"-content").hide();d(this).dialog("destroy")}}).dialog("open")}},apply:function(a){var b=this.types[this.dialog.find('input[type="radio"]:checked').val()],c=b.attributes(this.dialog.find("."+this.options.baseClass+"-content"),a);if(!c)return!0;var e=this.editor.outerHtml(d("<a>"+
330
- (c.title?c.title:c.href)+"</a>").attr(d.extend({},c,{target:"_blank"})));a?(this.selectedElement[0].className=this.selectedElement[0].className.replace(RegExp(this.options.baseClass+"-[a-zA-Z]+","g"),""),this.selectedElement.addClass(b.classes).attr(c),this.editor.showConfirm(f("Updated link: {{link}}",{link:e}))):(this.editor.wrapTagWithAttribute("a",d.extend(c,{id:this.editor.getUniqueId()}),b.classes),this.editor.showConfirm(f("Added link: {{link}}",{link:e})),this.selectedElement=d("#"+c.id).removeAttr("id"));
331
- this.selectedElement.data(this.options.baseClass+"-href",c.href);return!0},typeChange:function(a,b){var c=this.dialog.find("."+this.options.baseClass+"-content"),e=c.closest("."+this.options.baseClass+"-wrap"),g=a.ajaxUri&&!this.types[a.type].content;g&&e.addClass(this.options.baseClass+"-loading");var f=this;c.hide(this.options.panelAnimation,function(){g?d.ajax({url:a.ajaxUri,type:"get",success:function(g){c.html(g);f.types[a.type].content=g;e.removeClass(f.options.baseClass+"-loading");a.show(c,
332
- b);c.show(f.options.panelAnimation,d.proxy(a.focus,a))}}):(c.html(a.content),a.show(c,b),c.show(f.options.panelAnimation,d.proxy(a.focus,a)))})},remove:function(){this.editor.unwrapParentTag("a")},repairLinks:function(){var a=this;this.editor.getElement().find('a[class^="'+this.options.baseClass+'"]').each(function(){d(this).data(a.options.baseClass+"-href")&&d(this).attr("href",d(this).data(a.options.baseClass+"-href"))})},cancel:function(){this.dialog&&d(this.dialog.dialog("close"))}});d.ui.editor.registerUi({link:{init:function(a){a.bind("selectionChange",
333
- this.change,this);return a.uiButton({title:f("Insert Link"),click:function(){a.getPlugin("link").show()}})},change:function(){this.editor.getSelectedElements().length?this.ui.enable():this.ui.disable()}},unlink:{init:function(a){a.bind("selectionChange",this.change,this);a.bind("show",this.change,this);return a.uiButton({title:f("Remove Link"),click:function(){a.getPlugin("link").remove()}})},change:function(){this.editor.getSelectedElements().is("a")?this.ui.enable():this.ui.disable()}}});d.ui.editor.registerPlugin("list",
334
- {options:{},validParents:"blockquote,body,button,center,dd,div,fieldset,form,iframe,li,noframes,noscript,object,td,th".split(","),validChildren:"a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,dfn,em,font,i,iframe,img,input,kbd,label,map,object,p,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var".split(","),toggleList:function(a){d(this.editor.getSelectedElements()).is("li")&&d(this.editor.getSelectedElements()).parent().is(a)?this.unwrapList():this.wrapList(a);this.editor.fire("selectionChange");
335
- this.editor.fire("change")},unwrapList:function(){this.editor.saveSelection();var a=[],b=[],c=this.editor.getSelectionStartElement(),e=this.editor.getSelectionEndElement();a.push(d(c).html());b.push(c);if(d(c)[0]!==d(e)[0]){var g=c;do g=d(g).next(),a.push(d(g).html()),b.push(g);while(d(g)[0]!==d(e)[0])}g=0===d(c).prev().length;e=0===d(e).next().length;c=d(c).parent();for(listElementsIndex=0;listElementsIndex<b.length;listElementsIndex++)d(b[listElementsIndex]).remove();for(b=0;b<a.length;b++)c.parent().is("li")||
336
- (a[b]="<p>"+a[b]+"</p>");g&&e?(this.editor.selectOuter(c),this.editor.replaceSelection(a.join(""))):(g?d(c).before(a.join("")):e?d(c).after(a.join("")):this.editor.replaceSelectionSplittingSelectedElement(a.join("")),this.editor.restoreSelection())},wrapList:function(a){var b=d("<div>").html(this.editor.getSelectedHtml()),c=[],e=this;d(b).contents().each(function(){var a;a="block"===e.getElementDefaultDisplay(this.tagName)?e.editor.stripTags(d(this).html(),e.validChildren):e.editor.stripTags(e.editor.outerHtml(d(this)),
337
- e.validChildren);a=d("<li>"+a+"</li>");""!==d.trim(a.text())&&c.push(e.editor.outerHtml(a))});c.length||c.push("<li>List element content</li>");b=this.options.baseClass+"-selection";a="<"+a+' class="'+b+'">'+c.join("")+"</"+a+">";this.editor.restoreSelection();this.editor.replaceSelectionWithinValidTags(a,this.validParents);this.editor.selectInner(d(this.editor.getElement().find("."+b).removeClass(b)).find("li:first")[0])},getElementDefaultDisplay:function(a){var b,a=document.createElement(a);b="getComputedStyle"in
338
- q;document.body.appendChild(a);b=(b?q.getComputedStyle(a,""):a.currentStyle).display;document.body.removeChild(a);return b}});d.ui.editor.registerUi({listUnordered:{init:function(a){return a.uiButton({title:f("Unordered List"),click:function(){a.getPlugin("list").toggleList("ul")}})}},listOrdered:{init:function(a){return a.uiButton({title:f("Ordered List"),click:function(){a.getPlugin("list").toggleList("ol")}})}}});d.ui.editor.registerUi({logo:{ui:null,init:function(){return this.ui=this.editor.uiButton({title:f("Learn More About the Raptor WYSIWYG Editor"),
339
- click:function(){q.open("http://www.jquery-raptor.com/about/editors/","_blank")},ready:function(){var a=function(b){var c=typeof b;if("object"!=c||null===b)return"string"==c&&(b='"'+b+'"'),""+b;var e=[],f=b&&d.isArray(b);d.each(b,function(b,d){c=typeof d;"string"==c?d='"'+d+'"':"object"==c&null!==d&&(d=a(d));e.push((f?"":'"'+b+'":')+(""+d))});return(f?"[":"{")+(""+e)+(f?"]":"}")},b={enableUi:this.options.enableUi,enablePlugins:this.options.enablePlugins,disabledPlugins:a(this.options.disabledPlugins),
340
- ui:a(this.options.ui),t:(new Date).getTime()},c=[],e;for(e in b)c.push(e+"="+encodeURIComponent(b[e]));this.ui.button.find(".ui-button-icon-primary").css({"background-image":"url(http://www.jquery-raptor.com/logo/0.0.7?"+c.join("&")+")"})}})}}});d.ui.editor.registerPlugin("paste",{options:{allowedTags:"h1,h2,h3,h4,h5,h6,div,ul,ol,li,blockquote,p,a,span".split(",")},init:function(a,b){var c=!1,e=!1,g=this;a.getElement().bind("paste."+a.widgetName,d.proxy(function(){if(c)return!1;c=!0;a.saveSelection();
341
- d(".uiWidgetEditorPasteBin").length&&d(".uiWidgetEditorPasteBin").remove();d('<div class="uiWidgetEditorPasteBin" contenteditable="true" style="width: 1px; height: 1px; overflow: hidden; position: fixed; top: -1px;" />').appendTo("body");d(".uiWidgetEditorPasteBin").focus();q.setTimeout(function(){var h=d(".uiWidgetEditorPasteBin").html(),h=g.filterAttributes(h),h=g.filterChars(h),h=g.editor.stripTags(h,g.options.allowedTags),h=g.stripEmpty(h),h={html:h,plain:d("<div/>").html(h).text(),markup:g.stripAttributes(h)};
342
- e=d(a.getTemplate("paste.dialog",h));e.find(".ui-editor-paste-area").bind("keyup."+a.widgetname,function(){g.updateAreas(this,e)});d(e).dialog({modal:!0,width:650,height:500,resizable:!0,title:"Paste",position:"center",show:b.dialogShowAnimation,hide:b.dialogHideAnimation,dialogClass:b.baseClass+" "+b.dialogClass,buttons:[{text:f("Insert"),click:function(){var b=null,b=d(this).find(".ui-editor-paste-area:visible"),b=b.hasClass("ui-editor-paste-plain")||b.hasClass("ui-editor-paste-source")?b.val():
343
- b.html(),b=g.filterAttributes(b),b=g.filterChars(b);a.restoreSelection();a.replaceSelection(b);c=!1;d(this).dialog("close")}},{text:f("Cancel"),click:function(){a.restoreSelection();c=!1;d(this).dialog("close")}}],open:function(){var a=d(this).find(".ui-editor-paste-panel-tabs");a.find("ul li").click(function(){a.find("ul li").removeClass("ui-state-active").removeClass("ui-tabs-selected");d(this).addClass("ui-state-active").addClass("ui-tabs-selected");a.children("div").hide().eq(d(this).index()).show()});
344
- var b=e.parent().find(".ui-dialog-buttonpane");b.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});b.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}})},close:function(){c=!1;d(this).dialog("destroy").remove()}});d(".uiWidgetEditorPasteBin").remove()},0);return!0},this))},filterAttributes:function(a){d.each([{regexp:/(<meta\s*[^>]*\s*>)|(<\s*link\s* href="file:[^>]*\s*>)|(<\/?\s*\w+:[^>]*\s*>)/gi,handler:""},{regexp:/(class="Mso[^"]*")|(<\!--(.|\s){1,}?--\>)/gi,
345
- handler:""},{regexp:/(class="Apple-(style|converted)-[a-z]+\s?[^"]+")/,handle:""},{regexp:/id="internal-source-marker_[^"]+"|dir="[rtl]{3}"/,handle:""},{regexp:/(<p[^>]*>\s*(\&nbsp;|\u00A0)*\s*<\/p[^>]*>)|(<p[^>]*>\s*<font[^>]*>\s*(\&nbsp;|\u00A0)*\s*<\/\s*font\s*>\s<\/p[^>]*>)/ig,handler:""},{regexp:/(style="[^"]*mso-[^;][^"]*")|(style="margin:\s*[^;"]*;")/gi,handler:""},{regexp:/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,
346
- handler:""},{regexp:/(<\s*script[^>]*>((.|\s)*?)<\\?\/\s*script\s*>)|(<\s*script\b([^<>]|\s)*>?)|(<[^>]*=(\s|)*[("|')]javascript:[^$1][(\s|.)]*[$1][^>]*>)/ig,handler:""}],function(b,c){a=a.replace(c.regexp,c.handler)});return a},filterChars:function(a){a=a.replace(/[\u2018|\u2019|\u201A]/g,"'");a=a.replace(/[\u201C|\u201D|\u201E]/g,'"');a=a.replace(/\u2026/g,"...");a=a.replace(/[\u2013|\u2014]/g,"-");a=a.replace(/\u02C6/g,"^");a=a.replace(/\u2039/g,"<");a=a.replace(/\u203A/g,">");return a=a.replace(/[\u02DC|\u00A0]/g,
347
- " ")},stripAttributes:function(a){a=d("<div/>").html(a);d(a.find("*")).each(function(){var a=d.map(this.attributes,function(a){return a.name}),c=d(this);d.each(a,function(a,b){try{c.removeAttr(b)}catch(d){}})});return a.html()},stripEmpty:function(a){a=d("<div/>").html(a);a.find("*").filter(function(){return""===d.trim(d(this).text())}).remove();return a.html()},updateAreas:function(a,b){var c=b.find('.ui-editor-paste-synchronize-text input[type="checkbox"]'),e=d(a).is("textarea")?d(a).val():d(a).html();
348
- c.attr("checked")&&(d(a).hasClass("ui-editor-paste-plain")||b.find(".ui-editor-paste-plain").val(d("<div/>").html(e).text()),d(a).hasClass("ui-editor-paste-rich")||b.find(".ui-editor-paste-rich").html(e),d(a).hasClass("ui-editor-paste-source")||b.find(".ui-editor-paste-source").html(e),d(a).hasClass("ui-editor-paste-markup")||b.find(".ui-editor-paste-markup").html(this.stripAttributes(e)))}});d.ui.editor.registerPlugin("placeholder",{init:function(a,b){b=d.extend({},{content:"[Your content here]",
349
- tag:"p",select:!0},b);this.show=function(){if(!d.trim(a.getElement().html())){var c=d(document.createElement(b.tag)).html(b.content);a.getElement().html(c);b.select&&a.selectInner(c)}};a.bind("show",this.show)}});d.ui.editor.registerPlugin("saveJson",{options:{id:{attr:"name"},postName:"content",showResponse:!1,appendId:!1,ajax:{url:"/",type:"post",cache:!1}},init:function(){},getId:function(){if("string"===typeof this.options.id)return this.options.id;if("function"===typeof this.options.id)return this.options.id.apply(this,
350
- [this.editor.getOriginalElement()]);if(this.options.id.attr){var a=this.editor.getOriginalElement().attr(this.options.id.attr);if(a)return a}return null},getData:function(){var a={};a[this.getId()]=this.editor.save();return a},save:function(){this.message=this.editor.showLoading(f("Saving changes..."));var a={},b=0;this.editor.unify(function(c){c.isDirty()&&(b++,c=c.getPlugin("saveJson"),d.extend(a,c.getData()))});this.dirty=b;this.requests=this.failed=this.saved=0;this.ajax(a)},done:function(a){this.options.multiple?
351
- this.saved++:this.saved=this.dirty;this.options.showResponse&&this.editor.showConfirm(a,{delay:1E3,hide:function(){this.editor.unify(function(a){a.disableEditing();a.hideToolbar()})}})},fail:function(a){this.options.multiple?this.failed++:this.failed=this.dirty;this.options.showResponse&&this.editor.showError(a.responseText)},always:function(){this.dirty===this.saved+this.failed&&(this.options.showResponse||(0<this.failed&&0===this.saved?this.editor.showError(f("Failed to save {{failed}} content block(s).",
352
- this)):0<this.failed?this.editor.showError(f("Saved {{saved}} out of {{dirty}} content blocks.",this)):this.editor.showConfirm(f("Successfully saved {{saved}} content block(s).",this),{delay:1E3,hide:function(){this.editor.unify(function(a){a.disableEditing();a.hideToolbar()})}})),this.message.hide(),this.message=null)},ajax:function(a,b){var c=d.extend(!0,{},this.options.ajax);d.isFunction(c.data)?c.data=c.data.apply(this,[b,a]):this.options.postName&&(c.data={},c.data[this.options.postName]=JSON.stringify(a));
353
- d.isFunction(c.url)&&(c.url=c.url.apply(this,[b]));this.requests++;d.ajax(c).done(d.proxy(this.done,this)).fail(d.proxy(this.fail,this)).always(d.proxy(this.always,this))}});d.ui.editor.registerPlugin("saveRest",{options:{showResponse:!1,ajax:{url:"/",type:"post",cache:!1}},init:function(){},getId:function(){if("string"===typeof this.options.id)return this.options.id;if(this.options.id.attr){var a=this.editor.getOriginalElement().attr(this.options.id.attr);if(a)return a}return null},getData:function(){this.getId();
354
- this.editor.save();return this.editor.save()},save:function(){this.message=this.editor.showLoading(f("Saving changes..."));var a=this.requests=this.failed=this.saved=0;this.editor.unify(function(b){if(b.isDirty()){a++;var b=b.getPlugin("saveRest"),c=b.editor.save();b.ajax(c)}});this.dirty=a;0===a&&(this.message.hide(),this.editor.showInfo(f("No changes detected to save...")))},done:function(a){this.options.multiple?this.saved++:this.saved=this.dirty;this.options.showResponse&&this.editor.showConfirm(a,
355
- {delay:1E3,hide:function(){this.editor.unify(function(a){a.disableEditing();a.hideToolbar()})}})},fail:function(a){this.options.multiple?this.failed++:this.failed=this.dirty;this.options.showResponse&&this.editor.showError(a.responseText)},always:function(){this.dirty===this.saved+this.failed&&(this.options.showResponse||(0<this.failed&&0===this.saved?this.editor.showError(f("Failed to save {{failed}} content block(s).",this)):0<this.failed?this.editor.showError(f("Saved {{saved}} out of {{dirty}} content blocks.",
356
- this)):this.editor.showConfirm(f("Successfully saved {{saved}} content block(s).",this),{delay:1E3,hide:function(){this.editor.unify(function(a){a.disableEditing();a.hideToolbar()})}})),this.message.hide(),this.message=null)},ajax:function(a,b){var c=d.extend(!0,{},this.options.ajax);d.isFunction(c.data)?c.data=c.data.apply(this,[b,a]):this.options.postName&&(c.data={},c.data[this.options.postName]=JSON.stringify(a));d.isFunction(c.url)&&(c.url=c.url.apply(this,[b]));this.requests++;d.ajax(c).done(d.proxy(this.done,
357
- this)).fail(d.proxy(this.fail,this)).always(d.proxy(this.always,this))}});d.ui.editor.registerUi({save:{options:{plugin:"saveJson"},init:function(a){return a.uiButton({title:f("Save"),icon:"ui-icon-save",click:function(){a.getPlugin(this.options.plugin).save()}})}}});d.ui.editor.registerPlugin({snippet:{ids:[],enabled:!1,init:function(a,b){if(b.snippets){for(var c=0,d=b.snippets.length;c<d;c++)this.createSnippet(b.snippets[c],a);a.bind("restore",this.createButtons,this);a.bind("save",this.disable,
358
- this);a.bind("cancel",this.disable,this);a.bind("enabled",this.enable,this);a.bind("disabled",this.disable,this)}},createSnippet:function(){},enable:function(){this.enabled=!0;this.createButtons()},disable:function(){this.removeButtons();this.enabled=!1},createButtons:function(){for(var a=this.editor,b=0,c=this.options.snippets.length;b<c;b++){var d=this.options.snippets[b];d.repeatable&&this.createButton(d,a)}},createButton:function(a,b){if(this.enabled){var c=this,e=b.getUniqueId();this.ids.push(e);
359
- var g=d("<button/>").addClass(c.options.baseClass).addClass(c.options.baseClass+"-button").addClass(c.options.baseClass+"-button-"+a.name).addClass(e).text("Add").click(function(){c.insertSnippet.call(c,a,b,this)}),f=a.buttonAfter||b.getElement();d.isFunction(f)?f.call(this,g,a):g.insertAfter(f);d("."+e).button({icons:{primary:"ui-icon-plusthick"}})}},removeButtons:function(){if(this.enabled){for(var a=0,b=this.ids.length;a<b;a++)d("."+this.ids[a]).remove();a=0;for(b=this.options.snippets.length;a<
360
- b;a++){var c=this.options.snippets[a];d.isFunction(c.clean)&&c.clean.call(c,this,this.editor)}}},insertSnippet:function(a,b,c){var e=d(a.template).html(),f=a.appendTo||b.getElement();d.isFunction(f)?f.call(this,e,a,c):d(e).appendTo(f);b.disableEditing();b.enableEditing()}}});d.ui.editor.registerUi({tagMenu:{init:function(a){a.bind("selectionChange",this.change,this);a.bind("show",this.change,this);var b=this;return a.uiSelectMenu({name:"tagMenu",title:f("Change HTML tag of selected element"),select:d(a.getTemplate("tagmenu.menu")),
361
- change:function(c){"undefined"===typeof c||"na"===c?b.change():a.tagSelectionWithin(c,a.getElement())}})},change:function(){var a=this.editor.getSelectedElements()[0];a&&(a=a.tagName.toLowerCase(),this.ui.select.find("option[value="+a+"]").length?this.ui.val(a):this.ui.val("na"))}}});d.ui.editor.registerPlugin("toolbarTip",{init:function(){d.browser.msie||this.bind("show, tagTreeUpdated",function(){d(".ui-editor-wrapper [title]").each(function(){d(this).attr("data-title",d(this).attr("title"));d(this).removeAttr("title")})})}});
362
- (function(){var a=null,b=0;d.ui.editor.registerPlugin("unsavedEditWarning",{options:{},init:function(c){a||(a=d(c.getTemplate("unsavededitwarning.warning",this.options)).attr("id",c.getUniqueId()).appendTo("body"));var e=this;c.bind("dirty",function(){b++;0<b&&a.addClass(e.options.baseClass+"-visible")});c.bind("cleaned",function(){b--;0===b&&a.removeClass(e.options.baseClass+"-visible")})},show:function(){},hide:function(){},reposition:function(){}})})();d.ui.editor.registerUi({viewSource:{dialog:null,
363
- init:function(a){a.bind("hide",this.hide,this);return a.uiButton({title:f("View / Edit Source"),click:function(){this.show()}})},tab:function(){return" "},highlightSource:function(){return"undefined"!==typeof q.Rainbow},untidyHtml:function(a){a=d("<div/>").html(a);d(a).find("span.support").each(function(){d(this).contents().unwrap()});a=a.html();a=a.replace(/&lt;/g,"<");a=a.replace(/&gt;/g,">");return a=a.replace(/&amp;/g,"&")},tidyHtml:function(a){if("undefined"===typeof HTMLParser)return a;var b=
364
- 0,c="",d=this;HTMLParser(a,{start:function(a,f,i){for(var k=0;k<b;k++)c+=d.tab();c+="<"+a;for(k=0;k<f.length;k++)c+=" "+f[k].name+'="'+f[k].escaped+'"';c+=(i?"/":"")+">";b++},end:function(a){c+="</"+a+">";b--},chars:function(a){c+=a},comment:function(a){c+="<\!--"+a+"--\>"}});return c},prepareSource:function(a){if(this.highlightSource()){var b=this.tidyHtml(d.trim(this.editor.getHtml())),a=d(a).find("."+this.options.baseClass+"-highlighted"),c=function(a,b,f){var a=d(a),i=a.find("code:first");i.unbind("keydown keyup");
365
- i.attr("contenteditable",!0);Rainbow.color(b,"html",function(b){i.html(b);a.show();var g=function(){var a=m.getSelection();return a.rangeCount?a.getRangeAt(0):null},k="";i.bind("keydown",function(a){k=i.html();switch(a.keyCode){case 13:var b=g(),c=!1,d=document.createTextNode("\r\n");b&&(b.insertNode(d),b.setEndAfter(d),b.setStartAfter(d),c=m.getSelection(),c.setSingleRange(b),c=!0);c&&a.preventDefault();return!1;case 9:return b=g(),a=document.createTextNode(f.tab()),b&&(b.insertNode(a),c=m.getSelection(),
366
- b.setEndAfter(a),b.setStartAfter(a),c.setSingleRange(b)),!1}});var l=!1;i.bind("keydown",function(){l=!0});i.bind("keyup",function(){l=!1;q.setTimeout(function(){if(!l){if(k==i.html())return!0;try{var b=f.untidyHtml(i.html());d("<div/>").html(b).html()==b&&c(a,b,f)}catch(g){console.log("error")}}},5E3)})})};c(a,b,this)}else d(a).find("textarea").val(d.trim(this.editor.getHtml())),d(a).find("."+this.options.baseClass+"-plain-text").show()},hide:function(){this.dialog&&d(this.dialog).dialog("destroy").remove();
367
- this.dialog=null;d(this.ui.button).button("option","disabled",!1)},show:function(){if(!this.dialog){d(this.ui.button).button("option","disabled",!0);var a=this;this.dialog=d(this.editor.getTemplate("viewsource.dialog",{baseClass:a.options.baseClass}));this.dialog.dialog({modal:!1,width:600,height:400,resizable:!0,title:f("View Source"),autoOpen:!0,dialogClass:a.options.baseClass+" "+a.options.dialogClass,buttons:[{text:f("Apply Source"),click:function(){var b;a.highlightSource()?(b=d(this).find("."+
368
- a.options.baseClass+"-highlighted pre code:first").html(),b=a.untidyHtml(b)):b=d(this).find("textarea").val();a.editor.setHtml(b);d(this).find("textarea").val(a.editor.getHtml())}},{text:f("Close"),click:function(){a.hide()}}],open:function(){var b=d(this).parent().find(".ui-dialog-buttonpane");b.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});b.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}});a.prepareSource.call(a,this)},close:function(){a.hide()}})}}}})})(jQuery,
301
+ "{{characters}} characters, {{charactersRemaining}} remaining":"{{characters}} characters, {{charactersRemaining}} remaining","{{images}} image(s) have been replaced with resized versions":"{{images}} image(s) have been replaced with resized versions","{{sentences}} sentences":"{{sentences}} sentences","{{words}} word":"{{words}} word","{{words}} words":"{{words}} words"});b.ui.editor.registerPlugin("imageResize",{options:{allowOversizeImages:!1,manuallyResizingClass:"",resizeButtonClass:"",resizingClass:""},
302
+ init:function(a){this.options=b.extend(this.options,{manuallyResizingClass:this.options.baseClass+"-manually-resize",resizeButtonClass:this.options.baseClass+"-resize-button",resizingClass:this.options.baseClass+"-in-progress"});a.bind("enabled",this.bind,this)},bind:function(){this.options.allowOversizeImages||(this.addImageListeners(),this.editor.bind("change",this.scanForOversizedImages,this),this.editor.bind("save",this.save,this));this.editor.bind("destroy",this.cancel,this);this.editor.bind("cancel",
303
+ this.cancel,this);this.editor.getElement().on("mouseenter."+this.options.baseClass,"img",b.proxy(this.imageMouseEnter,this));this.editor.getElement().on("mouseleave."+this.options.baseClass,"img",b.proxy(this.imageMouseLeave,this))},unbind:function(){this.options.allowOversizeImages||(this.removeImageListeners(),this.editor.unbind("change",this.scanForOversizedImages,this));this.editor.getElement().off("mouseenter."+this.options.baseClass,"img");this.editor.getElement().off("mouseleave."+this.options.baseClass,
304
+ "img")},addImageListeners:function(){this.resized=b.proxy(this.imageResizedByUser,this);var a=this;this.editor.getElement().find("img").each(function(){this.addEventListener&&this.addEventListener("DOMAttrModified",a.resized,!1);this.attachEvent&&this.attachEvent("onpropertychange",a.resized)})},removeImageListeners:function(){var a=this;this.editor.getElement().find("img").each(function(){this.removeEventListener&&this.addEventListener("DOMAttrModified",a.resized,!1);this.detachEvent&&this.detachEvent("onpropertychange",
305
+ a.resized)})},imageResizedByUser:function(a){var c=b(a.target);c.is("img")&&c.attr("_moz_resizing")&&"style"==a.attrName&&a.newValue.match(/width|height/)&&this.editor.fire("change")},scanForOversizedImages:function(){var a=this.editor.getElement(),c=[];b(a.find("img")).each(function(){a.width()<b(this).outerWidth()&&c.push(b(this))});c.length&&this.resizeOversizedImages(c,a.width())},resizeOversizedImages:function(a,c){for(var d=b("<a>",{href:"",target:"_blank"}),e=0;e<a.length;e++){var f=a[e],g=
306
+ f.outerWidth();f.outerHeight();var h=Math.min(c/g),g=Math.round(Math.abs(h*(g-(f.outerWidth()-f.width()))));f.addClass(this.options.resizingClass);d=d.html(f.attr("title")||f.attr("src").substr(f.attr("src").lastIndexOf("/")+1)).attr("href",f.attr("src"));b(f).css({width:g});var j=this;this.showOversizeWarning(q(b(d)),{hide:function(){f.removeClass(j.options.resizingClass)}})}},cancel:function(){this.removeClasses();this.removeToolsButtons();this.unbind()},save:function(){this.removeClasses(this.options.resizingClass);
307
+ this.removeToolsButtons();this.unbind()},showOversizeWarning:function(a,b){this.editor.showInfo(f('The image "{{image}}" is too large for the element being edited.<br/>It will be replaced with a resized copy when your edits are saved.',{image:a}),b)},removeClasses:function(a){a||(a=[this.options.resizingClass,this.options.manuallyResizingClass]);b.isArray(a)||(a=[a]);for(var c=0;c<a.length;c++)this.editor.getElement().find("img."+a[c]).removeClass(a[c])},manuallyResizeImage:function(){this.removeToolsButtons();
308
+ var a=this.editor.getElement().find("img."+this.options.manuallyResizingClass),c=b(a).innerWidth(),d=b(a).innerHeight(),e="#"+this.options.baseClass+"-width",i="#"+this.options.baseClass+"-height",g=this,h=function(c){c=Math.round(c||b(e).val())+"px";b(a).css({width:c})},j=b(this.editor.getTemplate("imageresize.manually-resize-image",{width:c,height:d,baseClass:this.options.baseClass}));j.dialog({modal:!0,resizable:!1,title:f("Modify Image Size"),autoOpen:!0,buttons:[{text:f("Resize Image"),click:function(){h();
309
+ b(this).dialog("close")}},{text:f("Cancel"),click:function(){b(this).dialog("close")}}],close:function(){h(c);g.editor.checkChange();b(j).remove()},open:function(){var a=b(this).find(e),f=b(this).find(i);a.keyup(function(){f.val(Math.round(Math.abs(d/c*b(this).val())));h()});f.keyup(function(){a.val(Math.round(Math.abs(c/d*b(this).val())));h()})}})},displayToolsButtonRelativeToImage:function(a){var c=b("<button/>").appendTo("body").addClass(this.options.resizeButtonClass).button({text:!1,icons:{primary:"ui-icon-tools"}});
310
+ c.css({position:"absolute",left:b(a).position().left+b(a).innerWidth()-b(c).outerWidth()-10+"px",marginTop:"10px"}).click(b.proxy(this.manuallyResizeImage,this));b(a).before(c)},removeToolsButtons:function(){this.editor.getElement().find("."+this.options.resizeButtonClass).each(function(){b(this).remove()})},imageMouseEnter:function(a){b(a.target).addClass(this.options.manuallyResizingClass);this.displayToolsButtonRelativeToImage(a.target)},imageMouseLeave:function(a){b(a.relatedTarget).hasClass(this.options.resizeButtonClass)||
311
+ (b(a.target).removeClass(this.options.manuallyResizingClass),this.removeToolsButtons())}});b.ui.editor.registerUi({length:{ui:null,options:{length:150},init:function(a){a.bind("show",b.proxy(this.updateCount,this));a.bind("change",b.proxy(this.updateCount,this));return this.ui=this.editor.uiButton({title:f("Remaining characters before the recommended character limit is reached"),label:f("Initializing"),text:!0,icon:"ui-icon-dashboard",click:function(){this.showStatistics()}})},updateCount:function(){var a=
312
+ this.options.length-b("<div/>").html(this.editor.getCleanHtml()).text().length,c=this.ui.button,d=null,d=0<=a?f("{{charactersRemaining}} characters remaining",{charactersRemaining:a}):f("{{charactersRemaining}} characters over limit",{charactersRemaining:-1*a});c.button("option","label",d);c.button("option","text",!0);0>a?c.addClass("ui-state-error"):0<=a&&15>=a?c.addClass("ui-state-highlight").removeClass("ui-state-error"):c.removeClass("ui-state-highlight ui-state-error")},showStatistics:function(){this.processTemplate().dialog({modal:!0,
313
+ resizable:!1,title:f("Content Statistics"),dialogClass:this.editor.options.dialogClass+" "+this.editor.options.baseClass,show:this.editor.options.dialogShowAnimation,hide:this.editor.options.dialogHideAnimation,buttons:[{text:f("OK"),click:function(){b(this).dialog("close")}}],open:function(){b(this).parent().find(".ui-dialog-buttonpane").find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}})},close:function(){b(this).dialog("destroy").remove()}})},processTemplate:function(){var a=
314
+ b("<div/>").html(this.editor.getCleanHtml()).text(),c=null,d=this.options.length-a.length,c=0>d?f("Content contains more than {{limit}} characters and may be truncated",{limit:this.options.length}):f("Content will not be truncated"),e=null,e=a.split(" ").length,e=1==e?f("{{words}} word",{words:e}):f("{{words}} words",{words:e}),i=null,i=a.split(". ").length,i=f("{{sentences}} sentences",{sentences:i}),g=null,g=0<=d?f("{{characters}} characters, {{charactersRemaining}} remaining",{characters:a.length,
315
+ charactersRemaining:d}):f("{{characters}} characters, {{charactersRemaining}} over the recommended limit",{characters:a.length,charactersRemaining:-1*d});return b(this.editor.getTemplate("length.dialog",{characters:g,words:e,sentences:i,truncation:c}))}}});b.ui.editor.registerPlugin("link",{visible:null,dialog:null,types:{},defaultLinkTypes:[{type:"external",title:f("Page on this or another website"),focusSelector:'input[name="location"]',init:function(){this.content=this.plugin.editor.getTemplate("link.external",
316
+ this.options);return this},show:function(a,b){var d=this;a.find('input[name="location"]').bind("keyup",function(){d.validate(a)});b&&(a.find('input[name="location"]').val(this.plugin.selectedElement.attr("href")).trigger("keyup"),"_blank"===this.plugin.selectedElement.attr("target")&&a.find('input[name="blank"]').attr("checked","checked"));return this},attributes:function(a){var b={href:a.find('input[name="location"]').val()};a.find('input[name="blank"]').is(":checked")&&(b.target="_blank");this.options.regexLink.test(b.href)||
317
+ this.plugin.editor.showWarning(f("The url for the link you inserted doesn't look well formed"));return b},validate:function(a){var c="."+this.options.baseClass+"-error-message-url",d=!0;this.options.regexLink.test(a.find('input[name="location"]').val())?a.find(c).has(":visible").hide():(a.find(c).size()||a.find('input[name="location"]').after(this.plugin.editor.getTemplate("link.error",b.extend({},this.options,{messageClass:this.options.baseClass+"-error-message-url",message:f("The URL does not look well formed")}))),
318
+ a.find(c).not(":visible").show(),d=!1);return d}},{type:"email",title:f("Email address"),focusSelector:'input[name="email"]',init:function(){this.content=this.plugin.editor.getTemplate("link.email",this.options);return this},show:function(a,b){var d=this;a.find('input[name="email"]').bind("keyup",function(){d.validate(a)});b&&(a.find('input[name="email"]').val(this.plugin.selectedElement.attr("href").replace(/(mailto:)|(\?Subject.*)/gi,"")).trigger("keyup"),/\?Subject\=/i.test(this.plugin.selectedElement.attr("href"))&&
319
+ a.find('input[name="subject"]').val(decodeURIComponent(this.plugin.selectedElement.attr("href").replace(/(.*\?Subject=)/i,""))));return this},attributes:function(a){var b={href:"mailto:"+a.find('input[name="email"]').val()};if(a=a.find('input[name="subject"]').val())b.href=b.href+"?Subject="+encodeURIComponent(a);return b},validate:function(a){var c="."+this.options.baseClass+"-error-message-email",d=!0;this.options.regexEmail.test(a.find('input[name="email"]').val())?a.find(c).has(":visible").hide():
320
+ (a.find(c).size()||a.find('input[name="email"]').after(this.plugin.editor.getTemplate("link.error",b.extend({},this.options,{messageClass:this.options.baseClass+"-error-message-email",message:f("The email address does not look well formed")}))),a.find(c).not(":visible").show(),d=!1);return d}},{type:"fileUrl",title:f("Document or other file"),focusSelector:'input[name="location"]',init:function(){this.content=this.plugin.editor.getTemplate("link.file-url",this.options);return this},show:function(a,
321
+ b){var d=this;a.find('input[name="location"]').bind("keyup",function(){d.validate(a)});b&&(a.find('input[name="location"]').val(this.plugin.selectedElement.attr("href")).trigger("click"),"_blank"===this.plugin.selectedElement.attr("target")&&a.find('input[name="blank"]').attr("checked","checked"));return this},attributes:function(a){var b={href:a.find('input[name="location"]').val()};a.find('input[name="blank"]').is(":checked")&&(b.target="_blank");this.options.regexLink.test(b.href)||this.plugin.editor.showWarning(f("The url for the file you inserted doesn't look well formed"));
322
+ return b},validate:function(a){var c="."+this.options.baseClass+"-error-message-file-url",d=!0;this.options.regexLink.test(a.find('input[name="location"]').val())?a.find(c).has(":visible").hide():(a.find(c).size()||a.find('input[name="location"]').after(this.plugin.editor.getTemplate("link.error",b.extend({},this.options,{messageClass:this.options.baseClass+"-error-message-file-url",message:f("The URL does not look well formed")}))),a.find(c).not(":visible").show(),d=!1);return d}}],init:function(a,
323
+ c){this.options=b.extend({},{panelAnimation:"fade",replaceTypes:!1,customTypes:[],typeDataName:"uiWidgetEditorLinkType",dialogWidth:750,dialogHeight:"auto",dialogMinWidth:670,regexLink:/^(http|https|ftp):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i,regexEmail:/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/},c);a.bind("save",this.repairLinks,this);a.bind("cancel",this.cancel,this)},initTypes:function(){this.types=
324
+ {};for(var a={type:null,title:null,content:null,plugin:this,options:this.options,attributes:function(){},init:function(){return this},show:function(){},editing:function(a){if(a.attr("class"))for(var c=this.classes.split(/\s/gi),d=0;d<c.length;d++)if(c[d].trim()&&b(a).hasClass(c[d]))return!0;return!1},focusSelector:null,focus:function(){if(this.focusSelector){var a=b(this.focusSelector),c=a.val();a.val("");a.focus().val(c)}}},c=null,c=this.options.replaceTypes?this.options.customTypes:b.merge(this.defaultLinkTypes,
325
+ this.options.customTypes),d,e=0;e<c.length;e++)d=b.extend({},a,c[e],{classes:this.options.baseClass+"-"+c[e].type}).init(),this.types[d.type]=d},show:function(){if(!this.visible){this.selectedElement=this.editor.getSelectedElements().first();var a=this.selectedElement.is("a"),c=this.options,d=o.saveSelection(),e=this,i=this.dialog=b(this.editor.getTemplate("link.dialog",c)).appendTo("body");this.initTypes();var g=this.dialog.find("fieldset"),h;for(h in this.types)b(this.editor.getTemplate("link.label",
326
+ this.types[h])).appendTo(g);g.find('input[type="radio"]').bind("change."+this.editor.widgetName,function(){e.typeChange(e.types[b(this).val()],a)});i.dialog({autoOpen:!1,modal:!0,resizable:!0,width:c.dialogWidth,minWidth:c.dialogMinWidth,height:c.dialogHeight,title:a?f("Edit Link"):f("Insert Link"),dialogClass:c.baseClass+" "+c.dialogClass,buttons:[{text:a?f("Update Link"):f("Insert Link"),click:function(){o.restoreSelection(d);e.apply(a)?b(this).dialog("close"):d=o.saveSelection()}},{text:f("Cancel"),
327
+ click:function(){o.restoreSelection(d);b(this).dialog("close")}}],beforeopen:function(){e.dialog.find("."+e.options.baseClass+"-content").hide()},open:function(){e.visible=!0;var c=i.parent().find(".ui-dialog-buttonpane");c.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});c.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}});var d=i.find('.ui-editor-link-menu input[type="radio"]');d.first().attr("checked","checked");var f=!1;if(a)for(var g in e.types)if(f=e.types[g].editing(e.selectedElement)){d.filter('[value="'+
328
+ g+'"]').attr("checked","checked");e.typeChange(e.types[g],a);break}(!a||a&&!f)&&e.typeChange(e.types[d.filter(":checked").val()],a);b(this).unbind("keyup."+e.editor.widgetName).bind("keyup."+e.editor.widgetName,function(a){13==a.keyCode&&(a=e.types[d.filter(":checked").val()],(!b.isFunction(a.validate)||a.validate(e.dialog.find("."+e.options.baseClass+"-content")))&&c.find("button:eq(0)").trigger("click"))})},close:function(){e.visible=!1;i.find("."+c.baseClass+"-content").hide();b(this).dialog("destroy")}}).dialog("open")}},
329
+ apply:function(a){var c=this.types[this.dialog.find('input[type="radio"]:checked').val()],d=c.attributes(this.dialog.find("."+this.options.baseClass+"-content"),a);if(!d)return!0;var e=q(b("<a>"+(d.title?d.title:d.href)+"</a>").attr(b.extend({},d,{target:"_blank"})));a?(this.selectedElement[0].className=this.selectedElement[0].className.replace(RegExp(this.options.baseClass+"-[a-zA-Z]+","g"),""),this.selectedElement.addClass(c.classes).attr(d),this.editor.showConfirm(f("Updated link: {{link}}",{link:e}))):
330
+ (this.editor.wrapTagWithAttribute("a",b.extend(d,{id:this.editor.getUniqueId()}),c.classes),this.editor.showConfirm(f("Added link: {{link}}",{link:e})),this.selectedElement=b("#"+d.id).removeAttr("id"));this.selectedElement.data(this.options.baseClass+"-href",d.href);return!0},typeChange:function(a,c){var d=this.dialog.find("."+this.options.baseClass+"-content"),e=d.closest("."+this.options.baseClass+"-wrap"),f=a.ajaxUri&&!this.types[a.type].content;f&&e.addClass(this.options.baseClass+"-loading");
331
+ var g=this;d.hide(this.options.panelAnimation,function(){f?b.ajax({url:a.ajaxUri,type:"get",success:function(f){d.html(f);g.types[a.type].content=f;e.removeClass(g.options.baseClass+"-loading");a.show(d,c);d.show(g.options.panelAnimation,b.proxy(a.focus,a))}}):(d.html(a.content),a.show(d,c),d.show(g.options.panelAnimation,b.proxy(a.focus,a)))})},remove:function(){this.editor.unwrapParentTag("a")},repairLinks:function(){var a=this;this.editor.getElement().find('a[class^="'+this.options.baseClass+'"]').each(function(){b(this).data(a.options.baseClass+
332
+ "-href")&&b(this).attr("href",b(this).data(a.options.baseClass+"-href"))})},cancel:function(){this.dialog&&b(this.dialog.dialog("close"))}});b.ui.editor.registerUi({link:{init:function(a){a.bind("selectionChange",this.change,this);return a.uiButton({title:f("Insert Link"),click:function(){a.getPlugin("link").show()}})},change:function(){this.editor.getSelectedElements().length?this.ui.enable():this.ui.disable()}},unlink:{init:function(a){a.bind("selectionChange",this.change,this);a.bind("show",this.change,
333
+ this);return a.uiButton({title:f("Remove Link"),click:function(){a.getPlugin("link").remove()}})},change:function(){this.editor.getSelectedElements().is("a")?this.ui.enable():this.ui.disable()}}});b.ui.editor.registerPlugin("list",{options:{},validParents:"blockquote,body,button,center,dd,div,fieldset,form,iframe,li,noframes,noscript,object,td,th".split(","),validChildren:"a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,dfn,em,font,i,iframe,img,input,kbd,label,map,object,p,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var".split(","),
334
+ toggleList:function(a){b(this.editor.getSelectedElements()).is("li")&&b(this.editor.getSelectedElements()).parent().is(a)?this.unwrapList():this.wrapList(a);this.editor.fire("selectionChange");this.editor.fire("change")},unwrapList:function(){this.editor.saveSelection();var a=[],c=[],d=this.editor.getSelectionStartElement(),e=this.editor.getSelectionEndElement();a.push(b(d).html());c.push(d);if(b(d)[0]!==b(e)[0]){var f=d;do f=b(f).next(),a.push(b(f).html()),c.push(f);while(b(f)[0]!==b(e)[0])}f=0===
335
+ b(d).prev().length;e=0===b(e).next().length;d=b(d).parent();for(listElementsIndex=0;listElementsIndex<c.length;listElementsIndex++)b(c[listElementsIndex]).remove();for(c=0;c<a.length;c++)d.parent().is("li")||(a[c]="<p>"+a[c]+"</p>");f&&e?(d.replaceWith(a.join("")),this.editor.restoreSelection(),this.editor.selectOuter(this.editor.getSelectedElements()[0])):(f?b(d).before(a.join("")):e?b(d).after(a.join("")):this.editor.replaceSelectionSplittingSelectedElement(a.join("")),this.editor.restoreSelection(),
336
+ this.editor.checkChange())},wrapList:function(a){this.editor.constrainSelection(this.editor.getElement());""===b.trim(this.editor.getSelectedHtml())&&this.editor.selectInner(this.editor.getSelectedElements());var c=b("<div>").html(this.editor.getSelectedHtml()),d=[],e=this;b(c).contents().each(function(){var a;a="block"===e.getElementDefaultDisplay(this.tagName)?e.editor.stripTags(b(this).html(),e.validChildren):e.editor.stripTags(q(b(this)),e.validChildren);a=b("<li>"+a+"</li>");""!==b.trim(a.text())&&
337
+ d.push(q(a))});c=this.options.baseClass+"-selection";a="<"+a+' class="'+c+'">'+d.join("")+"</"+a+">";this.editor.restoreSelection();var f=b(this.editor.getSelectedElements()[0]).parent(),g=this.editor.getElement()[0];f===g||this.editor.getSelectedElements()[0]===g?this.editor.replaceSelection(a):this.editor.replaceSelectionWithinValidTags(a,this.validParents);this.editor.selectInner(b(this.editor.getElement().find("."+c).removeClass(c)).find("li:first")[0]);this.editor.checkChange()},getElementDefaultDisplay:function(a){var b,
338
+ a=document.createElement(a);b="getComputedStyle"in r;document.body.appendChild(a);b=(b?r.getComputedStyle(a,""):a.currentStyle).display;document.body.removeChild(a);return b}});b.ui.editor.registerUi({listUnordered:{init:function(a){return a.uiButton({title:f("Unordered List"),click:function(){a.getPlugin("list").toggleList("ul")}})}},listOrdered:{init:function(a){return a.uiButton({title:f("Ordered List"),click:function(){a.getPlugin("list").toggleList("ol")}})}}});b.ui.editor.registerUi({logo:{ui:null,
339
+ init:function(){return this.ui=this.editor.uiButton({title:f("Learn More About the Raptor WYSIWYG Editor"),click:function(){r.open("http://www.jquery-raptor.com/about/editors/","_blank")},ready:function(){var a=function(c){var d=typeof c;if("object"!=d||null===c)return"string"==d&&(c='"'+c+'"'),""+c;var e=[],f=c&&b.isArray(c);b.each(c,function(b,c){d=typeof c;"string"==d?c='"'+c+'"':"object"==d&null!==c&&(c=a(c));e.push((f?"":'"'+b+'":')+(""+c))});return(f?"[":"{")+(""+e)+(f?"]":"}")},c={enableUi:this.options.enableUi,
340
+ enablePlugins:this.options.enablePlugins,disabledPlugins:a(this.options.disabledPlugins),ui:a(this.options.ui),t:(new Date).getTime()},d=[],e;for(e in c)d.push(e+"="+encodeURIComponent(c[e]));this.ui.button.find(".ui-button-icon-primary").css({"background-image":"url(http://www.jquery-raptor.com/logo/0.0.9?"+d.join("&")+")"})}})}}});b.ui.editor.registerPlugin("paste",{options:{allowedTags:"h1,h2,h3,h4,h5,h6,div,ul,ol,li,blockquote,p,a,span,hr,br".split(","),allowedAttributes:["href","title"],allowedEmptyTags:["hr",
341
+ "br"]},init:function(a,c){var d=!1,e=!1,g=this;a.getElement().bind("paste."+a.widgetName,b.proxy(function(){if(d)return!1;d=!0;a.saveSelection();b(".uiWidgetEditorPasteBin").length&&b(".uiWidgetEditorPasteBin").remove();b('<div class="uiWidgetEditorPasteBin" contenteditable="true" style="width: 1px; height: 1px; overflow: hidden; position: fixed; top: -1px;" />').appendTo("body");b(".uiWidgetEditorPasteBin").focus();r.setTimeout(function(){var h=b(".uiWidgetEditorPasteBin").html(),h=g.filterAttributes(h),
342
+ h=g.filterChars(h),h=g.stripEmpty(h),h=g.stripAttributes(h),h=g.editor.stripTags(h,g.options.allowedTags),h={plain:b("<div/>").html(b(".uiWidgetEditorPasteBin").html()).text(),markup:h,html:b(".uiWidgetEditorPasteBin").html()};e=b(a.getTemplate("paste.dialog",h));e.find(".ui-editor-paste-area").bind("keyup."+a.widgetname,function(){g.updateAreas(this,e)});b(e).dialog({modal:!0,width:650,height:500,resizable:!0,title:"Paste",position:"center",show:c.dialogShowAnimation,hide:c.dialogHideAnimation,dialogClass:c.baseClass+
343
+ " "+c.dialogClass,buttons:[{text:f("Insert"),click:function(){var c=null,c=b(this).find(".ui-editor-paste-area:visible"),c=c.hasClass("ui-editor-paste-plain")||c.hasClass("ui-editor-paste-source")?c.val():c.html(),c=g.filterAttributes(c),c=g.filterChars(c);a.restoreSelection();a.replaceSelection(c);d=!1;b(this).dialog("close")}},{text:f("Cancel"),click:function(){a.restoreSelection();d=!1;b(this).dialog("close")}}],open:function(){var a=b(this).find(".ui-editor-paste-panel-tabs");a.find("ul.ui-tabs-nav li").click(function(){a.find("ul.ui-tabs-nav li").removeClass("ui-state-active").removeClass("ui-tabs-selected");
344
+ b(this).addClass("ui-state-active").addClass("ui-tabs-selected");a.children("div").hide().eq(b(this).index()).show()});var c=e.parent().find(".ui-dialog-buttonpane");c.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});c.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}})},close:function(){d=!1;b(this).dialog("destroy").remove()}});b(".uiWidgetEditorPasteBin").remove()},0);return!0},this))},filterAttributes:function(a){b.each([{regexp:/(<meta\s*[^>]*\s*>)|(<\s*link\s* href="file:[^>]*\s*>)|(<\/?\s*\w+:[^>]*\s*>)/gi,
345
+ handler:""},{regexp:/(class="Mso[^"]*")|(<\!--(.|\s){1,}?--\>)/gi,handler:""},{regexp:/(class="Apple-(style|converted)-[a-z]+\s?[^"]+")/,handle:""},{regexp:/id="internal-source-marker_[^"]+"|dir="[rtl]{3}"/,handle:""},{regexp:/(<p[^>]*>\s*(\&nbsp;|\u00A0)*\s*<\/p[^>]*>)|(<p[^>]*>\s*<font[^>]*>\s*(\&nbsp;|\u00A0)*\s*<\/\s*font\s*>\s<\/p[^>]*>)/ig,handler:""},{regexp:/(style="[^"]*mso-[^;][^"]*")|(style="margin:\s*[^;"]*;")/gi,handler:""},{regexp:/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,
346
+ handler:""},{regexp:/(<\s*script[^>]*>((.|\s)*?)<\\?\/\s*script\s*>)|(<\s*script\b([^<>]|\s)*>?)|(<[^>]*=(\s|)*[("|')]javascript:[^$1][(\s|.)]*[$1][^>]*>)/ig,handler:""}],function(b,d){a=a.replace(d.regexp,d.handler)});return a},filterChars:function(a){a=a.replace(/[\u2018|\u2019|\u201A]/g,"'");a=a.replace(/[\u201C|\u201D|\u201E]/g,'"');a=a.replace(/\u2026/g,"...");a=a.replace(/[\u2013|\u2014]/g,"-");a=a.replace(/\u02C6/g,"^");a=a.replace(/\u2039/g,"<");a=a.replace(/\u203A/g,">");return a=a.replace(/[\u02DC|\u00A0]/g,
347
+ " ")},stripAttributes:function(a){var a=b("<div/>").html(a),c=this.options.allowedAttributes;b(a.find("*")).each(function(){var a=[];b.each(this.attributes,function(e,f){-1===b.inArray(f.nodeName,c)&&a.push(f.nodeName)});for(var e=0;e<a.length;e++)b(this).attr(a[e],null)});return a.html()},stripEmpty:function(a){var a=b("<div/>").html(a),c=this.options.allowedEmptyTags;a.find("*").filter(function(){return-1!==b.inArray(this.tagName.toLowerCase(),c)||b(this).find(c.join(",")).length?!1:""===b.trim(b(this).text())}).remove();
348
+ return a.html()},updateAreas:function(a,c){var d=c.find('.ui-editor-paste-synchronize-text input[type="checkbox"]'),e=b(a).is("textarea")?b(a).val():b(a).html();d.attr("checked")&&(b(a).hasClass("ui-editor-paste-plain")||c.find(".ui-editor-paste-plain").val(b("<div/>").html(e).text()),b(a).hasClass("ui-editor-paste-rich")||c.find(".ui-editor-paste-rich").html(e),b(a).hasClass("ui-editor-paste-source")||c.find(".ui-editor-paste-source").html(e),b(a).hasClass("ui-editor-paste-markup")||c.find(".ui-editor-paste-markup").html(this.stripAttributes(e)))}});
349
+ b.ui.editor.registerPlugin("placeholder",{init:function(a,c){c=b.extend({},{content:"[Your content here]",tag:"p",select:!0},c);this.show=function(){if(!b.trim(a.getElement().html())){var d=b(document.createElement(c.tag)).html(c.content);a.getElement().html(d);c.select&&a.selectInner(d)}};a.bind("show",this.show)}});b.ui.editor.registerPlugin("saveJson",{options:{id:{attr:"name"},postName:"content",showResponse:!1,appendId:!1,ajax:{url:"/",type:"post",cache:!1}},init:function(){},getId:function(){if("string"===
350
+ typeof this.options.id)return this.options.id;if("function"===typeof this.options.id)return this.options.id.apply(this,[this.editor.getOriginalElement()]);if(this.options.id.attr){var a=this.editor.getOriginalElement().attr(this.options.id.attr);if(a)return a}return null},getData:function(){var a={};a[this.getId()]=this.editor.save();return a},save:function(){this.message=this.editor.showLoading(f("Saving changes..."));var a={},c=0;this.editor.unify(function(d){d.isDirty()&&(c++,d=d.getPlugin("saveJson"),
351
+ b.extend(a,d.getData()))});this.dirty=c;this.requests=this.failed=this.saved=0;this.ajax(a)},done:function(a){this.options.multiple?this.saved++:this.saved=this.dirty;this.options.showResponse&&this.editor.showConfirm(a,{delay:1E3,hide:function(){this.editor.unify(function(a){a.disableEditing();a.hideToolbar()})}})},fail:function(a){this.options.multiple?this.failed++:this.failed=this.dirty;this.options.showResponse&&this.editor.showError(a.responseText)},always:function(){this.dirty===this.saved+
352
+ this.failed&&(this.options.showResponse||(0<this.failed&&0===this.saved?this.editor.showError(f("Failed to save {{failed}} content block(s).",this)):0<this.failed?this.editor.showError(f("Saved {{saved}} out of {{dirty}} content blocks.",this)):this.editor.showConfirm(f("Successfully saved {{saved}} content block(s).",this),{delay:1E3,hide:function(){this.editor.unify(function(a){a.disableEditing();a.hideToolbar()})}})),this.message.hide(),this.message=null)},ajax:function(a,c){var d=b.extend(!0,
353
+ {},this.options.ajax);b.isFunction(d.data)?d.data=d.data.apply(this,[c,a]):this.options.postName&&(d.data={},d.data[this.options.postName]=JSON.stringify(a));b.isFunction(d.url)&&(d.url=d.url.apply(this,[c]));this.requests++;b.ajax(d).done(b.proxy(this.done,this)).fail(b.proxy(this.fail,this)).always(b.proxy(this.always,this))}});b.ui.editor.registerPlugin("saveRest",{options:{showResponse:!1,ajax:{url:"/",type:"post",cache:!1}},init:function(){},getId:function(){if("string"===typeof this.options.id)return this.options.id;
354
+ if(this.options.id.attr){var a=this.editor.getOriginalElement().attr(this.options.id.attr);if(a)return a}return null},getData:function(){this.getId();this.editor.save();return this.editor.save()},save:function(){this.message=this.editor.showLoading(f("Saving changes..."));var a=this.requests=this.failed=this.saved=0;this.editor.unify(function(b){if(b.isDirty()){a++;var b=b.getPlugin("saveRest"),d=b.editor.save();b.ajax(d)}});this.dirty=a;0===a&&(this.message.hide(),this.editor.showInfo(f("No changes detected to save...")))},
355
+ done:function(a){this.options.multiple?this.saved++:this.saved=this.dirty;this.options.showResponse&&this.editor.showConfirm(a,{delay:1E3,hide:function(){this.editor.unify(function(a){a.disableEditing();a.hideToolbar()})}})},fail:function(a){this.options.multiple?this.failed++:this.failed=this.dirty;this.options.showResponse&&this.editor.showError(a.responseText)},always:function(){this.dirty===this.saved+this.failed&&(this.options.showResponse||(0<this.failed&&0===this.saved?this.editor.showError(f("Failed to save {{failed}} content block(s).",
356
+ this)):0<this.failed?this.editor.showError(f("Saved {{saved}} out of {{dirty}} content blocks.",this)):this.editor.showConfirm(f("Successfully saved {{saved}} content block(s).",this),{delay:1E3,hide:function(){this.editor.unify(function(a){a.disableEditing();a.hideToolbar()})}})),this.message.hide(),this.message=null)},ajax:function(a,c){var d=b.extend(!0,{},this.options.ajax);b.isFunction(d.data)?d.data=d.data.apply(this,[c,a]):this.options.postName&&(d.data={},d.data[this.options.postName]=JSON.stringify(a));
357
+ b.isFunction(d.url)&&(d.url=d.url.apply(this,[c]));this.requests++;b.ajax(d).done(b.proxy(this.done,this)).fail(b.proxy(this.fail,this)).always(b.proxy(this.always,this))}});b.ui.editor.registerUi({save:{options:{plugin:"saveJson"},init:function(a){return a.uiButton({title:f("Save"),icon:"ui-icon-save",click:function(){a.checkChange();a.getPlugin(this.options.plugin).save()}})}}});b.ui.editor.registerPlugin({snippet:{ids:[],enabled:!1,init:function(a,b){if(b.snippets){for(var d=0,e=b.snippets.length;d<
358
+ e;d++)this.createSnippet(b.snippets[d],a);a.bind("restore",this.createButtons,this);a.bind("save",this.disable,this);a.bind("cancel",this.disable,this);a.bind("enabled",this.enable,this);a.bind("disabled",this.disable,this)}},createSnippet:function(){},enable:function(){this.enabled=!0;this.createButtons()},disable:function(){this.removeButtons();this.enabled=!1},createButtons:function(){for(var a=this.editor,b=0,d=this.options.snippets.length;b<d;b++){var e=this.options.snippets[b];e.repeatable&&
359
+ this.createButton(e,a)}},createButton:function(a,c){if(this.enabled){var d=this,e=c.getUniqueId();this.ids.push(e);var f=b("<button/>").addClass(d.options.baseClass).addClass(d.options.baseClass+"-button").addClass(d.options.baseClass+"-button-"+a.name).addClass(e).text("Add").click(function(){d.insertSnippet.call(d,a,c,this)}),g=a.buttonAfter||c.getElement();b.isFunction(g)?g.call(this,f,a):f.insertAfter(g);b("."+e).button({icons:{primary:"ui-icon-plusthick"}})}},removeButtons:function(){if(this.enabled){for(var a=
360
+ 0,c=this.ids.length;a<c;a++)b("."+this.ids[a]).remove();a=0;for(c=this.options.snippets.length;a<c;a++){var d=this.options.snippets[a];b.isFunction(d.clean)&&d.clean.call(d,this,this.editor)}}},insertSnippet:function(a,c,d){var e=b(a.template).html(),f=a.appendTo||c.getElement();b.isFunction(f)?f.call(this,e,a,d):b(e).appendTo(f);c.disableEditing();c.enableEditing()}}});b.ui.editor.registerUi({tagMenu:{validParents:"blockquote,body,button,center,dd,div,fieldset,form,iframe,li,noframes,noscript,object,td,th".split(","),
361
+ init:function(a){a.bind("selectionChange",this.change,this);a.bind("show",this.change,this);return a.uiSelectMenu({name:"tagMenu",title:f("Change HTML tag of selected element"),select:b(a.getTemplate("tagmenu.menu")),change:function(c){if(!("undefined"===typeof c||"na"===c)){var d=a.getElement()[0],e=a.getSelectedElements();if(!a.getSelectedHtml()||""===a.getSelectedHtml()){if(b(e)[0]===b(d)[0])return;a.saveSelection();d=b("<"+c+">").html(e.html());e.replaceWith(d);a.restoreSelection()}else{var e=
362
+ b(a.getSelectedElements()[0]).parent(),f=this.options.baseClass+"-selection",c=b("<"+c+">").html(a.getSelectedHtml()).addClass(f);e===d||a.getSelectedElements()[0]===d?a.replaceSelection(c):a.replaceSelectionWithinValidTags(c,this.validParents);a.selectInner(a.getElement().find("."+f).removeClass(f))}a.checkChange()}}})},change:function(){var a=this.editor.getSelectedElements()[0];a?(a=a.tagName.toLowerCase(),this.ui.select.find("option[value="+a+"]").length?this.ui.val(a):this.ui.val("na"),b(this.ui.button).toggleClass("ui-state-disabled",
363
+ this.editor.getElement()[0]===this.editor.getSelectedElements()[0])):b(this.ui.button).toggleClass("ui-state-disabled",!0)}}});b.ui.editor.registerPlugin("toolbarTip",{init:function(){b.browser.msie||this.bind("show, tagTreeUpdated",function(){b(".ui-editor-wrapper [title]").each(function(){b(this).attr("data-title",b(this).attr("title"));b(this).removeAttr("title")})})}});(function(){var a=null,c=0;b.ui.editor.registerPlugin("unsavedEditWarning",{init:function(d){var e=this;a||(a=b(d.getTemplate("unsavededitwarning.warning",
364
+ this.options)).attr("id",d.getUniqueId()).appendTo("body").bind("mouseenter."+d.widgetName,function(){b.ui.editor.eachInstance(function(a){a.isDirty()&&a.getElement().addClass(e.options.baseClass+"-dirty")})}).bind("mouseleave."+d.widgetName,function(){b("."+e.options.baseClass+"-dirty").removeClass(e.options.baseClass+"-dirty")}));d.bind("dirty",function(){c++;0<c&&(v(a),a.addClass(e.options.baseClass+"-visible"))});d.bind("cleaned",function(){c--;0===c&&a.removeClass(e.options.baseClass+"-visible")})}})})();
365
+ b.ui.editor.registerUi({viewSource:{init:function(a){return a.uiButton({title:f("View / Edit Source"),click:function(){this.show()}})},show:function(){var a=this,c=b(this.editor.getTemplate("viewsource.dialog",{baseClass:a.options.baseClass,source:a.editor.getHtml()})),d=this.ui.button;b(d).button("option","disabled",!0);c.dialog({modal:!1,width:600,height:400,resizable:!0,title:f("View Source"),autoOpen:!0,dialogClass:a.options.baseClass+" "+a.options.dialogClass,buttons:[{text:f("Apply Source"),
366
+ click:function(){var c=b(this).find("textarea").val();a.editor.setHtml(c);b(this).find("textarea").val(a.editor.getHtml())}},{text:f("Close"),click:function(){b(this).dialog("close")}}],open:function(){var a=b(this).parent().find(".ui-dialog-buttonpane");a.find("button:eq(0)").button({icons:{primary:"ui-icon-circle-check"}});a.find("button:eq(1)").button({icons:{primary:"ui-icon-circle-close"}})},close:function(){b(this).dialog("destroy").remove();b(d).button("option","disabled",!1);a.editor.checkChange()}})}}})})(jQuery,
369
367
  window,rangy);
370
- jQuery('<style type="text/css">.ui-editor-wrapper{overflow:visible;z-index:1001;position:fixed}.ui-editor-wrapper .ui-editor-toolbar{padding:6px 0 0 5px;overflow:visible}.ui-editor-wrapper .ui-editor-toolbar,.ui-editor-wrapper .ui-editor-toolbar *{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ui-editor-wrapper .ui-dialog-titlebar .ui-editor-element-path:first-child{margin-left:5px}.ui-editor-wrapper .ui-dialog-titlebar .ui-editor-element-path{min-width:10px;min-height:15px;display:inline-block}.ui-editor-dock-docked-to-element .ui-editor-toolbar{padding:5px 0 0 5px!important}.ui-editor-dock-docked-to-element .ui-editor-toolbar .ui-editor-group{margin:0 5px 5px 0}.ui-editor-dock-docked-element{display:block!important;border:0 none transparent;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-wrapper textarea,.ui-editor-wrapper input{padding:5px}.ui-editor-wrapper .ui-dialog-content{font-size:13px}.ui-editor-wrapper textarea{display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1}html body div.ui-dialog div.ui-dialog-titlebar a.ui-dialog-titlebar-close span.ui-icon{margin-top:0!important}.ui-editor-wrapper textarea,.ui-editor-wrapper input{border:1px solid #d4d4d4}.ui-editor-wrapper .ui-dialog-content{font-size:13px}html body div.ui-wrapper div.ui-dialog-titlebar a.ui-dialog-titlebar-close span.ui-icon{margin-top:0!important}.ui-editor-path{padding:5px;font-size:13px}.ui-editor-selectmenu{overflow:visible;position:relative}.ui-editor-selectmenu-button{text-align:left;padding:3px 18px 5px 5px!important}.ui-editor-selectmenu-button .ui-icon{position:absolute;right:1px;top:8px}.ui-editor-selectmenu-button .ui-selectmenu-text{font-size:13px}.ui-editor-selectmenu-wrapper{position:relative}.ui-editor-selectmenu-button .ui-button-text{padding:0 25px 0 5px}.ui-editor-selectmenu-button .ui-icon{background-repeat:no-repeat}.ui-editor-selectmenu-menu{position:absolute;top:100%;left:0;right:auto;display:none;margin-top:-1px!important}.ui-editor-selectmenu-visible .ui-editor-selectmenu-menu{display:block;z-index:1}.ui-editor-selectmenu-menu-item{padding:5px;margin:3px;z-index:1;text-align:left;font-size:13px;font-weight:normal!important;border:1px solid transparent;cursor:pointer;background-color:inherit}.ui-selectmenu-button{background:#f5f5f5;border:1px solid #ccc}.ui-editor-buttonset .ui-selectmenu-button:first-child{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;-ms-border-top-left-radius:5px;-o-border-top-left-radius:5px;border-top-left-radius:5px;-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;-ms-border-bottom-left-radius:5px;-o-border-bottom-left-radius:5px;border-bottom-left-radius:5px}.ui-editor-buttonset .ui-selectmenu-button:last-child{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;-ms-border-top-right-radius:5px;-o-border-top-right-radius:5px;border-top-right-radius:5px;-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;-ms-border-bottom-right-radius:5px;-o-border-bottom-right-radius:5px;border-bottom-right-radius:5px}.ui-editor-buttonset .ui-editor-selectmenu-visible .ui-editor-selectmenu-button{-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;-ms-border-bottom-left-radius:0;-o-border-bottom-left-radius:0;border-bottom-left-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;-ms-border-bottom-right-radius:0;-o-border-bottom-right-radius:0;border-bottom-right-radius:0}.ui-editor-buttonset{float:left;margin:0 5px 4px 0;display:inline-block}.ui-editor-buttonset>.ui-button{float:left;display:block;margin:0 -1px 0 0;font-size:13px}.ui-editor-buttonset .ui-button:hover{z-index:1}.ui-editor-buttonset .ui-editor-selectmenu{display:block}.ui-editor-buttonset .ui-editor-selectmenu .ui-button{margin:0 -1px 0 0}.ui-editor-ff .ui-editor-buttonset{float:none;vertical-align:top}.ui-editor-wrapper .ui-button{height:32px;margin-bottom:0;margin-top:0;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-wrapper .ui-button-icon-only{width:32px}.ui-editor-wrapper .ui-editor-buttonset>.ui-button{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}.ui-editor-wrapper .ui-editor-buttonset>.ui-button:first-child{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;-ms-border-top-left-radius:5px;-o-border-top-left-radius:5px;border-top-left-radius:5px;-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;-ms-border-bottom-left-radius:5px;-o-border-bottom-left-radius:5px;border-bottom-left-radius:5px}.ui-editor-wrapper .ui-editor-buttonset>.ui-button:last-child{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;-ms-border-top-right-radius:5px;-o-border-top-right-radius:5px;border-top-right-radius:5px;-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;-ms-border-bottom-right-radius:5px;-o-border-bottom-right-radius:5px;border-bottom-right-radius:5px}.ui-button-icon-only .ui-button-text{display:none}.ui-editor-unsupported{position:relative}.ui-editor-unsupported-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:black;filter:alpha(opacity=50);opacity:.5}.ui-editor-unsupported-content{position:fixed;top:50%;left:50%;margin:-200px 0 0 -300px;width:600px;height:400px}.ui-editor-unsupported-input{position:absolute;bottom:10px}.ui-editor-unsupported-content{padding:10px;background-color:white;border:1px solid #777}.ui-editor-messages{margin:0}.ui-editor-messages .ui-editor-message-close{cursor:pointer;float:right}.ui-editor-messages .ui-icon{margin:0 0 3px 3px}.ui-editor-messages .ui-icon,.ui-editor-messages .ui-editor-message{display:inline-block;vertical-align:top}.ui-editor-messages .ui-editor-message-wrapper{padding:3px 3px 3px 1px;-webkit-box-shadow:inset 0 -1px 1px rgba(0,0,0,0.35),inset 0 1px 2px rgba(255,255,255,0.5);-moz-box-shadow:inset 0 -1px 1px rgba(0,0,0,0.35),inset 0 1px 2px rgba(255,255,255,0.5);box-shadow:inset 0 -1px 1px rgba(0,0,0,0.35),inset 0 1px 2px rgba(255,255,255,0.5)}.ui-editor-messages .ui-editor-message-wrapper:first-child{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;-ms-border-top-right-radius:5px;-o-border-top-right-radius:5px;border-top-right-radius:5px;-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;-ms-border-top-left-radius:5px;-o-border-top-left-radius:5px;border-top-left-radius:5px}.ui-editor-messages .ui-editor-message-wrapper:last-child{-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;-ms-border-bottom-right-radius:5px;-o-border-bottom-right-radius:5px;border-bottom-right-radius:5px;-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;-ms-border-bottom-left-radius:5px;-o-border-bottom-left-radius:5px;border-bottom-left-radius:5px}.ui-editor-messages .ui-editor-message-circle-close{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmNWQ0YiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZhMWMxYyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#ff5d4b),color-stop(100%,#fa1c1c));background:-webkit-linear-gradient(top,#ff5d4b,#fa1c1c);background:-moz-linear-gradient(top,#ff5d4b,#fa1c1c);background:-o-linear-gradient(top,#ff5d4b,#fa1c1c);background:-ms-linear-gradient(top,#ff5d4b,#fa1c1c);background:linear-gradient(top,#ff5d4b,#fa1c1c)}.ui-editor-messages .ui-editor-message-circle-check{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2NkZWI4ZSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2E1Yzk1NiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#cdeb8e),color-stop(100%,#a5c956));background:-webkit-linear-gradient(top,#cdeb8e,#a5c956);background:-moz-linear-gradient(top,#cdeb8e,#a5c956);background:-o-linear-gradient(top,#cdeb8e,#a5c956);background:-ms-linear-gradient(top,#cdeb8e,#a5c956);background:linear-gradient(top,#cdeb8e,#a5c956)}.ui-editor-messages .ui-editor-message-info{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2E5ZTRmNyIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzBmYjRlNyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#a9e4f7),color-stop(100%,#0fb4e7));background:-webkit-linear-gradient(top,#a9e4f7,#0fb4e7);background:-moz-linear-gradient(top,#a9e4f7,#0fb4e7);background:-o-linear-gradient(top,#a9e4f7,#0fb4e7);background:-ms-linear-gradient(top,#a9e4f7,#0fb4e7);background:linear-gradient(top,#a9e4f7,#0fb4e7)}.ui-editor-messages .ui-editor-message-alert{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZDY1ZSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZlYmYwNCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#ffd65e),color-stop(100%,#febf04));background:-webkit-linear-gradient(top,#ffd65e,#febf04);background:-moz-linear-gradient(top,#ffd65e,#febf04);background:-o-linear-gradient(top,#ffd65e,#febf04);background:-ms-linear-gradient(top,#ffd65e,#febf04);background:linear-gradient(top,#ffd65e,#febf04)}.ui-editor-messages .ui-editor-message-clock{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZiODNmYSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2U5M2NlYyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#fb83fa),color-stop(100%,#e93cec));background:-webkit-linear-gradient(top,#fb83fa,#e93cec);background:-moz-linear-gradient(top,#fb83fa,#e93cec);background:-o-linear-gradient(top,#fb83fa,#e93cec);background:-ms-linear-gradient(top,#fb83fa,#e93cec);background:linear-gradient(top,#fb83fa,#e93cec)}.ui-editor-messages .ui-editor-message-clock .ui-icon.ui-icon-clock{background:transparent url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAOXRFWHRTb2Z0d2FyZQBBbmltYXRlZCBQTkcgQ3JlYXRvciB2MS42LjIgKHd3dy5waHBjbGFzc2VzLm9yZyl0zchKAAAAOnRFWHRUZWNobmljYWwgaW5mb3JtYXRpb25zADUuMi4xNzsgYnVuZGxlZCAoMi4wLjM0IGNvbXBhdGlibGUpCBSqhQAAAAhhY1RMAAAACAAAAAC5PYvRAAAAGmZjVEwAAAAAAAAAEAAAABAAAAAAAAAAAAA8A+gAAIIkGDIAAACsSURBVDiNtZLBCcMwDEUfJgOUjhAyQsmp9FA8TgfISj6F4gl66jSdIIf00G9wnLjYKf3w0Qch6Us2fMdVLMYx0haYRZsrMJEegZdiDj3gFFeT54jBiU2mO+XdVvdRyV0OYidVMEAH3AEPHGoboMKwuy+seYqLV9iNTpM90P7S6AQMitXogYnPHSbyz2SAC9HqQVigkW7If90z8FAsctCyvMvKQdpkSOzfxP/hDd++JCi8XmbFAAAAGmZjVEwAAAABAAAAEAAAABAAAAAAAAAAAAA8A+gAABlX8uYAAAC3ZmRBVAAAAAI4jaWQsQ3CQBAEB4cECFGCI1fiAlyFKwARWgSIeqjCNTh0gIjIkBw9gffFSfz74VlpdX/W3Xr3YBmlmIUSmMSoSGHee+CmGsMGaFU/cAecqnVh/95qpg0J/O0gCytgDRzUX4DnryIn5lwO6L7c6fxskRhMwkc4qj+TEcFjC9SqWcsj8x3GhMgu9LHmfUinvgKuYmWWp5BIyEFvBPuUAy9ibzAYgWEhUhQN8BCb2NALKY4q8wCrG7AAAAAaZmNUTAAAAAMAAAAQAAAAEAAAAAAAAAAAADwD6AAA9MEhDwAAAKhmZEFUAAAABDiNY2CgMTgNxTgBExLbh4GB4SCUxgeMcEkcZmBg+A+lcQETqBoTbJI+UM1ku4AiEATFZIEQBoi//kPZxIAAKEaJBYpACAm24wUSBORVGBgYUqA0BtjKAAmHrXg0f4aq+YxuiAQDIiD/Q/k8DAwMdVDMw8DAkIamJo2QCyYjKZ4MtfErlP8VlzeQw2AlkgErkbyBMwzQgRoDA8N+KMapAQDdvyovpG6D8gAAABpmY1RMAAAABQAAABAAAAAQAAAAAAAAAAAAPAPoAAAZC1N1AAAAsWZkQVQAAAAGOI21kkEOgjAURF9YGBbGtYcwLowrwxk8BMcg3XACD9djGJaujKmLTkMRCiXEl0ympYX8+Xz4M62UpIjWR8DI59inDgzg5CkOwEs+YnMFmzhJOdwAK1UAZ+ANfLRewuJ75QAb/kKRvp/HmggVPxHWsAMu8hEN8JRPUdLnt9oP6HTYRc/uEsCVvnlO+wFGFYRJrKPLdU4FU5HCB0KsEt+DxZfBj+xDSo7vF9AbJ9PxYV81AAAAGmZjVEwAAAAHAAAAEAAAABAAAAAAAAAAAAA8A+gAAPSdgJwAAADDZmRBVAAAAAg4jaWSTQrCMBCFP6NIT5AjCF6gJ6jbUnoCL1biDTyF5AAueoZu3LkSrAtHTEJiIn3wmCTz92YILMQ64++BPTDKXQMH4AbcAZQTvAEasTFo4AqcxeowoAFmsSk1s8M+DChRMEnyFFNQAg10sWSFv49cESPUn+RRWFLE8N2DKe2axaIR/sU25eiAi9gUBt6zDzGnFad13nZCgAr/I1UxBdZRUAMPYV2iIETrdGudd28Hqx8FFHCU8wl4xoJeZnUrSRiyCSsAAAAaZmNUTAAAAAkAAAAQAAAAEAAAAAAAAAAAADwD6AAAGe6xwAAAALtmZEFUAAAACjiNpZJBCsIwEEWfpUsPULoSl55Beh4J7nqCHkDceR3pIaSr4Ak8Qq2L/khomlrig+FPhszwJy3EqYCHolq4F6UDBkWnWgbspN+CT7EwMAPuwFM67aUAem/IdIW952jQOeCXg1bN7ZyDNQRvsEkYkgNG+S1XcpHWKwacgatzlLLH2z/8vUJCf5wSaKQxToCVBjSM37jxaluFw+qOXeOgBF4KVzNqNkH3DAfGX7tXnsRREeUD4f8lQGjw+ycAAAAaZmNUTAAAAAsAAAAQAAAAEAAAAAAAAAAAADwD6AAA9HhiKQAAAJ9mZEFUAAAADDiNtZDLCcMwEEQfIUcXoDpCKgg6qIRUEtKB6wg6poDgalyFTj7YBw+2QyRlCc6DYVm0n9FCGQc8JFepWzgBN0WACIxS/NZ8BgYVD8pzA1ogKb5x3xSPyp0a4+YLSe/J4iBH0QF83uCvXKSFq2TBs97KH/Y1ZsdL+3IEgmJt86u0PTAfJlQGdKrprA6ekslBjl76mUYqMgFhpStJaQVr0gAAABpmY1RMAAAADQAAABAAAAAQAAAAAAAAAAAAPAPoAAAZshBTAAAAu2ZkQVQAAAAOOI21kCEOwkAQRR8rKkkFCtmjkJ4ARTgBArViT4LjLJwBgUZUr8NBQlrR38Am3XYEvOTnT7PzuzO7IE8BHFWfgNdELwBLYCMH8EAr+VzIyUvgBlzkZaZ/D1zlCfXXba2+C93sVaNwK08ogUaHzcQEu9wE0O9e83kDEw7YAhG4K/ww5CoJFB52j8bwU6rcTLOJYYWo2kKywk9Zz5yvgCAfDb9nfhLoHztYJzhIpgnGOEv/owMnkSfarUXVlAAAAABJRU5ErkJggg==\') no-repeat center center}.ui-editor-align-left-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAItJREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzYWEzQfHlf//+lYL0McK8ADSAJJuBBqC6AAjWYrEN2VYPbAZR1QUb0WxEZmPD1lR3wTYCttpSJQxg6mE0sgt2E/AzCLMBMTsQcwCxAskuQE722FwwEYiNsNjKClR8EUjH4w2DActMFBsAEGAAnS84DrgEl1wAAAAASUVORK5CYII=\') 0 0}.ui-editor-align-left-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-align-right-button .ui-icon{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIxJREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzYWEzQfHlf//+lYL0McK8ADSAJJuBBqC6AAvYjGYrMhuEHanugo0EbETH1jQPg714bGcGYhOqu2A3AT+DMBvQQnYgzQHECiS7ADnZw9j4wmA61J+sQMUcUFtBtrMC8TEg9kNxwYBlJooNAAgwAJo0OAu5XKT8AAAAAElFTkSuQmCC\') 0 0}.ui-editor-align-right-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-align-center-button .ui-icon{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAI1JREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzYWEzQfHlf//+lYL0McK8ADSAJJuBBqC6AAlswGErjO2KrJiqLtiIw0Zc2JpmYbCTgM2WFIUBTD2MRnbBbgI2gzAbELMDMQcQK5DsAuRkj80FMDAFiI2RbGUFKuaA2noGiEOwhsGAZSaKDQAIMAB/BzgOq8akNwAAAABJRU5ErkJggg==\') 0 0}.ui-editor-align-center-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-align-justify-button .ui-icon{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJFJREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzYWEzQfHlf//+lYL0McK8ADSAJJuBBqC6AAjWYrEN2VZkNgg7Ut0FGwnYiI6tqe6CbUTYCsPMQGxCdRfsJsJmNqCF7ECaA4gVSHYBcrKHsZFdMBGIjbDYygpUzAG1FWQ7KxAfA2I/FBcMWGai2ACAAAMAvPA4C7ttvJ4AAAAASUVORK5CYII=\') 0 0}.ui-editor-align-justify-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-bold-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKRJREFUeNpi/P//PwMlgImBQjDwBrCgmMbEpA2kGnGofQ3E9UD86t+/fzhdcBWIpwExMxQ3AHEIEK8BYgkgdsLrAih4A8SsaBYwQcWYiDGAEcmAbiwuJBiIIAPYoLgfiMuBeBmUXwHEXIQMYEIy4BUQXwDiy1C+HBBrEPKCDBCzwwwDpVRGRkZksU8ozkVOykCFVkBqOZ5oB3lpAoqe0bzAABBgANfuIyxmXKp/AAAAAElFTkSuQmCC\') 0 0}.ui-editor-text-bold-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-italic-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAH1JREFUeNpi/P//PwMlgImBQjDwBrBgmMgEN1MbiBvRpOv//ft3FUUEFIjImJGRERnrAPF6IO6BiaGrZyLCi6xAvJDcMLAA4j9AfJlcA/yBeCe5sWAExAJAfIKkWIAFJBAUATE7kM+M143ooQoEVkD8EA1b4Yy10bzAABBgAC7mS5rTXrDAAAAAAElFTkSuQmCC\') 0 0}.ui-editor-text-italic-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-underline-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKZJREFUeNpi/P//PwMlgImBQkCxASwopjExhQGpMCSheijdiCz279+/q3AeKAxgmJGREYSdgHgdlIaJ6SCLIevB5oXXUJe9RhK7gkUMZxgwAjEzlEYG2MRwGsCKRTErKQawYFHMQqwBn6G2qSCJGULFPmPYhpwSgdEIY6YCcTKa2rlAPBvEAEYjdgNAUYRMowOYWmQ9LFjUPSGQP2RwemFoZiaAAAMAlEI7bVBRJkoAAAAASUVORK5CYII=\') 0 0}.ui-editor-text-underline-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-strike-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAL5JREFUeNpi/P//PwMlgImBQkCxASwopjHBzbMB4nQg5oTyrwKxNhAXAfGjf//+EXRBFhC/BOI0KAapYwZpxusCJPASquEdlD8FiHWwKWREjgUkL4gDcQ0QfwfiXqiBcIDsBXQD9hATcEADXOAckAEwzMjIiI4lgHgiEM8GYkmYOLIeXAZ4I2sA4vlQjGEArkBsAeJzQAUVYH8yMnIAKTmC6QAaHhpALALEPCBDoOJfgFQ5wVgYmnmBYgMAAgwAEGZWNyZpBykAAAAASUVORK5CYII=\') 0 0}.ui-editor-text-strike-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-sub-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKZJREFUeNpi/P//PwMlgImBQjDwBrDATWJCMWs6lM7Ep/nfv39YXSAPxL+AWALKJtkLLkB8EohZoWySDbAH4uNQQ+xJNUAJiH8DMT8QPwZiWagYDEwA4v1QGgJACQmEGRkZQTgXiI+i4VyoHAy7AfEaEBucCNEM2AzEKkiKu6BiYMuAdAYQLwZiKQwDgGAVED+E0iBgBeUjiy1HErMCWzyaFxgAAgwA5Gw9vTeiCqoAAAAASUVORK5CYII=\') 0 0}.ui-editor-text-sub-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-super-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNpi/P//PwMlgImBQjDwBrCgmMaEYt50KJ0JpRuBWBuIrwJx/b9///C6QB6IfwGxBJQNAvVAPAkqRtALLkB8EohZoWwQiAbiICCuI8YAeyA+DjXEHiqmD8SaQLwIysYMAyhQAuLfQMwPxI+B2AkqVkZsLHgDsQYQTwXiVCBmg4phB6CUCMOMjIwgvBmIVaBsEO6CijEgY5geFAOAYBUQP4TSIGAF5SOLoVjMOJoXGAACDACTRz3jjn6PnwAAAABJRU5ErkJggg==\') 0 0}.ui-editor-text-super-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-quote-block-button .ui-icon-quote{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGVJREFUeNpi/P//PwMlgImBQjAcDWBhYZEA4r1AHA/EKHxiXQBS+BKIF+LgEzTAG4h3I0UvOh+/AUCFbECcDmROA2lC5mMzgAWLGDuUtsTBJ+iFeUDMC6Wx8VEA42hSptwAgAADAO3wKLgntfGkAAAAAElFTkSuQmCC\') 0 0}.ui-editor-quote-block-button:hover .ui-icon-quote{filter:alpha(opacity=100);opacity:1}.ui-editor-clean-button .ui-icon-clean{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABNVBMVEUAAAAAAAAgSocgSocgPnAAAABxcXFPT09YWFggSocgSocoToUbPXgSN3kyYZw0ZqT///8iUZkgSoc1Z6UiUJaJrNkwXpZIeLiOvO03a6s4b7JekNUjUpqCp9eNr9pSjeAwX5g2aqquxuV8otPB1euOsNv8/f6gveFgkdVnkMmbuuVfk9lkk9fK3Pbs8vmWtd5Vjs98odCHqNWkv+Jzms6Qt+xnmNuzyudVidS90u6hwe5mmuQtXKCow+OqxepNg82Xtd3C1Ox0m89vl8x3oNl4n9NSjuDi7PqlxO+MtOyWtt2fwO60y+dUjt5zm8/L2+9qneT3+f7g6/qDrelRi95snuWowuSfvOGPr9uwyeqRsdqUs9qat92OrtmDptN5ns9Rh8hqk8uXuehwnt1vl83e6vmZu+gBAK69AAAADXRSTlMbAKM01gogSSmAy7W1OP1GaAAAAM1JREFUeF5VzNN2A1EAQNE7TIrrsSe0Udu2zf//hHZWk672PO6HAySR/UmUwBjT9XyzeJlZuGpe60wE474TxxghhHEcOz4DzLcxRoZhJGT/AOcoiiKEOE9AZEGw291fOcpNdZeD74fEqKZ5lFLP0+YplIDAzBfXrTQKNyW3bEIhgV51QD5fyVv1fQir0zOzcxfW4tLaCGqkHoYWWR/BxubW9k5/7+PgcAjZ8JicnJKz82wC6gRstTu3d/cPj0/PcFIF6ZQMf5NTaaCAfylf1j4ecCeyzckAAAAASUVORK5CYII=\') 0 0}.ui-editor-clean-button:hover .ui-icon-clean{filter:alpha(opacity=100);opacity:1}.ui-editor-click-to-edit-message{padding:10px;border:1px solid #d4d4d4;font-size:13px;z-index:4000;color:#000;text-shadow:none;-webkit-pointer-events:none;-moz-pointer-events:none;pointer-events:none;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2YyZmZmMiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2RhZjJkNyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#f2fff2),color-stop(100%,#daf2d7));background:-webkit-linear-gradient(top,#f2fff2,#daf2d7);background:-moz-linear-gradient(top,#f2fff2,#daf2d7);background:-o-linear-gradient(top,#f2fff2,#daf2d7);background:-ms-linear-gradient(top,#f2fff2,#daf2d7);background:linear-gradient(top,#f2fff2,#daf2d7);-webkit-box-shadow:0 2px 10px #ccc;-moz-box-shadow:0 2px 10px #ccc;box-shadow:0 2px 10px #ccc;-webkit-transition:opacity .5s 0s;-moz-transition:opacity .5s 0s;-ms-transition:opacity .5s 0s;-o-transition:opacity .5s 0s;transition:opacity .5s 0s;filter:alpha(opacity=0);opacity:0}.ui-editor-click-to-edit-visible{filter:alpha(opacity=100);opacity:1}.ui-editor-click-to-edit-highlight{cursor:pointer;outline:1px dotted rgba(0,0,0,0.5);-webkit-transition:all .5s 0s;-moz-transition:all .5s 0s;-ms-transition:all .5s 0s;-o-transition:all .5s 0s;transition:all .5s 0s}.ui-editor-debug-reinit-button .ui-icon-reload{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAqBJREFUeNqkU01PE2EQnrfdtmyLpbRNA/ULGyAhRi+NHkTk5sEEiRyMEi+evHszJh5I/AF613ho9EIwhEiMB4kSjQcWSDxgIAhJoZV26dd2t/v17jqzkoLGG5vM7rvzzPPsfOww13XhOJdAt8vPN0EIBEAQBPD5/UHGWALdnWgW2iO07H+40sL91APhH2ev4HOH+tJiZzoZCia7guXpj8XsnevprGX9yVQMM8i9K0jA2GI7A+9y3Uwo4I6Mj6aijToHzl2nXrNk27bBMDg0FQ7dcQFezeYljH6PlmsLuI4T8zF+e+zqqZ69ggaKZrH13WaxXDcUwm2LQ6xbgOKOCreu9WTfLuQVy3bSCBV8XoBpjmR6xYvFfKNflpuZTyuF1q+y8sHhXLINA7q6g/Byek06ERWgUlJh8EykHzkTxPUETMMYTcWCQ/Wqllnb3hct0/yM01nWVZUwePZiWcLnt0Vpd1NvmZCMBuL4PtwuwdL1S37GMqpuQaFUL+Mk5rllgeM41BuqeZH5/bmNzdJSbzQEiUggjJyBtgCqRVTDjqrc9c6YOjbRhlCHSON9YKMYGQpDrWVDh2F7mR2WoOsbezVdU30CdMXEGNY3abZ0rLcEVVkGpVqlPk0SRjEUS5y2gGUYX7byckURgnB66OxJ7MFD7MHkAQZ0Jh9hFEOxxDkUMM2ZrR/bMo+IsA3hjuzN4fPpvtQUjneJjM7kI4xiKJY4xGW0C9F7bwDrHvNHwk8T4zcutGz0hRjEQp4+1AwHGoYLosBgf3b+O1e1x9iPuUbu7uGfiEJzerUGu6+npwKDA8lm5lx8J54Ie2lWapr7c6tSWd+QwTSfYGPn/lqmoyKOpkn2yuoErKxeQdfgAbSO9hWXbAa/XDjKYcdd598CDAAkzn7JYhVZYAAAAABJRU5ErkJggg==\') 0 0}.ui-editor-debug-reinit-button:hover .ui-icon-reload{filter:alpha(opacity=100);opacity:1}.ui-editor-debug-destroy-button .ui-icon-close{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAtFBMVEX///+nAABhAACnAACjAACCAACgAACHAACjAAByAAB1AAByAACDAACnAACCAACHAACgAACNAACbAACXAACMAACSAABfAACYAACRAACjAACbAAChAACqAACNAACcAACHAACqAADEERGsERHQERG+NjaiERHUTEzYERG4ERGlFBSfFRX/d3f6cnK0JSWoHh7qYmLkXFyvFRXmXl7vZ2fNRUX4cHDXT0/+dnbbU1O3Li7GPT26MTG2f8oMAAAAIXRSTlMASEjMzADMzAAASMxIAMwAAMzMzEjMzEhISABIzABISEg/DPocAAAAj0lEQVR4Xo3PVw6DMBBF0RgXTO+hBYhtILX3sv99RRpvgPcxVzp/M5syb7lYepxDABDeYcQ5wg+MAMhr3JOyJKfxTABqduuvjD37O6sBwjZ+f76/7TFuQw1VnhyGYZPklYagKbKLlDIrmkBDGq1hUaqhM4UQJpwOwFdK+a4LAbCdlWNTCgGwjLlhUQqZ8uofSk8NKY1Fm8EAAAAASUVORK5CYII=\') 0 0}.ui-editor-debug-destroy-button:hover .ui-icon-close{filter:alpha(opacity=100);opacity:1}.ui-editor-dock-button .ui-icon-pin-s{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAbFJREFUeNpi/P//PwMlgAVEPGNiIqTOBojz/zIwTHrPwHD4BZDzGGhxMhAzEWlRvtTy5SE/GRiKge61R5YgyoB/IHVPnzIoTprk/52BoRJoiDNBA5BCxuY3UN2vz58Znu7ZwyAaHOz+8f//RqC8OzEuAPtdcfbsgM937zJ8+fKFgePHDwa3sDBroKGt8EBEAo1ArAV1ARPQucwqs2f7vz14kOHH378MF/buPQ4S+wXEQPkauAG3EFHp7bBihTHDs2cMf4E2ffvwgQGmeeuyZWf+MDA0ATXs+I8eiP+gGBhNNTsjIs7+5+Vl+HTrFsOry5cZXr56xXB02bKjQM21QCU7sKaDRYiA2wE0RPJnamq2VVGR8adr1xi4uLkZPjMwsDJCNf/HagAjI8SA//95gRRb5pEjxnttbM6aeHsb87CwMED9DAZ/0QxAjgVmRkZGj+vXr0+wt7evWc3ENPfI1q1n2djYGP4TSsqMEBfYLV26tExXVzcfyF8NdM17oG33V69e3QKUO0vIAF1PT8+Y2NhYUDRuh7n0PyTEdzAQ4YKYHTt2TAEyz5OaGxkpzc4AAQYAvlOuK2pYar0AAAAASUVORK5CYII=\') 0 0}.ui-editor-dock-button:hover .ui-icon-pin-s{filter:alpha(opacity=100);opacity:1}.ui-editor-dock-button .ui-icon-pin-w{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wFFgA2AnOoAZ4AAAH4SURBVDjLtZNNaxNhFIXPfefNJJlkppFI09Ca1FiRMiDduCjWQltdtILdu1DcSkpx7UL6A1zGH+BKEFy5MkhErRvpwo+NSDEaaYyZSZNJJslkPl43XQQaaUA8u3M5PFwu5wL/KBo1FEC4DJALiN2jjAWIbcA5EVABzotkUu+ZJmvLsmQwJtcHA2oHQc8FXm8D9eE8HzafgThPpS5H19Zux4kmIqbJWL3OT/u+9LNWK1er1V8PgMMdwBsJ8AARtFoD6na1qK7PubFYTOOc9RqNQxEEX1ygswP4Jx6mDNw3Fhc/WVtb4uPy8uAx0YeHwMaoLBs1DBE9kzTtIJLJ4FQ6LQnghZVMFscCCIB8IeKB7/e6lYpjNZs2V1WeNk02FuApwAJA8xwnFHgeSUL4rmVJ3yIRfyzAFWA+Oj29EZqcvODYNveJEloisZnq9++NAkjD5gCY59nsnfjq6iafnT3bNQzJrtWQzeUm+p3OxQXbll8Cb45tYBGRKcucEd2Irq/fDC8tzSm5nKRMTSEUi3lcUXB1ZSV1RlVvPWLs2rEiaUIIDAbee+AtisWMUyqpRhAoiq7rLdtudvf2fsQlqWe02yQDr/7axEvAbml///uTcHjhqyxncjMz5zqO87th28+vu+47GWjfBdyxP61QKFA+nydVVQn/S38ATpHDEx6slP8AAAAASUVORK5CYII=\') 0 0}.ui-editor-dock-button:hover .ui-icon-pin-w{filter:alpha(opacity=100);opacity:1}.ui-editor-dock-docked{z-index:10000}.ui-editor-dock-docked .ui-editor-toolbar-wrapper{position:fixed;top:0;left:0;right:0;border-top:0;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-pack:center;-moz-box-pack:center;-ms-box-pack:center;box-pack:center;-webkit-box-align:center;-moz-box-align:center;-ms-box-align:center;box-align:center}.ui-editor-dock-docked .ui-editor-toolbar{text-align:center}.ui-editor-dock-docked .ui-editor-path{position:fixed;bottom:0;left:0;right:0}.ui-editor-ios .ui-editor-dock-docked .ui-editor-path{display:none}.ui-editor-dock-docked-to-element-wrapper{font-size:inherit;color:inherit;font-family:inherit}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper{position:relative!important;top:auto!important;left:auto!important;border:0 none;padding:0;margin:0;z-index:auto;width:100%;font-size:inherit;color:inherit;font-family:inherit;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper .ui-editor-toolbar{margin:0;z-index:2;-webkit-box-ordinal-group:1;-moz-box-ordinal-group:1;-ms-box-ordinal-group:1;box-ordinal-group:1}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper .ui-editor-toolbar .ui-widget-header{border-top:0;border-left:0;border-right:0}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper .ui-editor-path{border:0 none;margin:0;-webkit-box-ordinal-group:3;-moz-box-ordinal-group:3;-ms-box-ordinal-group:3;box-ordinal-group:3;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper .ui-editor-messages{margin:0}.ui-editor-dock-docked-element{margin:0!important;display:block;z-index:1;-webkit-box-ordinal-group:2;-moz-box-ordinal-group:2;-ms-box-ordinal-group:2;box-ordinal-group:2}.ui-editor-dock-docked .ui-editor-messages{position:fixed;top:0;left:50%;margin:0 -400px 10px;padding:0;text-align:left}.ui-editor-dock-docked .ui-editor-messages .ui-editor-message-wrapper{width:800px}.ui-editor-dock-docked .ui-editor-messages .ui-editor-message-wrapper:first-child{-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;-ms-border-top-right-radius:0;-o-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;-ms-border-top-left-radius:0;-o-border-top-left-radius:0;border-top-left-radius:0}.ui-editor-embed-button .ui-icon-youtube{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAxlBMVEX////////fNzfaMTHVLCzKISHFGxvvR0flPDzpSEjdMTH4Y2PaKyvtTk7PJibXIyOnLi7lQECkKyvSHR3mPj6eJCSUGhqRFxfqQkL0XFziOTmOFBSBBwehKCiHDQ3PFRWaISGXHR3wVlaECgqqMTGLEBDGHR365eW1ICDaXFz139/LDg7NLi6tNDTSKSnMNzd9AwP1TEy/Fhbwxsbqv7+7EhKzFBS6EBDonZ3akJDkhISxBwf8a2vLIiLPcHD88fH67+/fYGAnLmvBAAAAAXRSTlMAQObYZgAAAJtJREFUeF5Vx0WShFAUBMB631F3afdxd7v/pQaiN5C7BK4mgM3nxAahczfihIgrrfVTqs+qGN2qLMvHwy4tB6sOmWeMIXp7/jI9L8PCYowR0e/3xzVj1gLLiHNOg9OR82iJvBZC0GD/J0Sdo7B93+/78+737AKNK6Uker2UA7fBNlBKPdyos2CLWXI/ksywnr+MzNdoLyZa4HYC/3EAHWTN0A0YAAAAAElFTkSuQmCC\') 0 0}.ui-editor-embed-button:hover .ui-icon-youtube{filter:alpha(opacity=100);opacity:1}.ui-editor-ui-embed .ui-dialog-content .ui-editor-embed-panel-tabs{display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;height:100%;width:100%}.ui-editor-ui-embed .ui-dialog-content .ui-editor-embed-panel-tabs>div{display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-ui-embed .ui-dialog-content .ui-editor-embed-panel-tabs>div>p:first-child{padding-top:10px}.ui-editor-ui-embed .ui-dialog-content .ui-editor-embed-panel-tabs>div textarea{display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-flex:4;-moz-box-flex:4;-ms-box-flex:4;box-flex:4}.ui-editor-float-left-button .ui-icon-float-left{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAS5JREFUeNpi/P//PwMlgImBQsACY1zaIH4A6Bp7dAUzV31jnLHy22YgkxFqIQhf/vfvXymKAQ8eidtra35lYAQqY+FgZWBmZ2X49fk7AxvbX6DsN1+CLlgwn5khMECAwcLiL4OogiIDj6QEw9uLZ4AGfAVJ70BzAQg7ohigrnaP4cEDLoY3bzkYzL6/ZVA34ma4ev07w/sPv0HSHgRdoKICUvgR6IWPDK8evWb49+8iw/1bfxhevwYbsBfNdhC2BkkwwqLRxRhuFgM3HyMDrwAjw8vH/xj2nvuH1WZgIDKgGMDExLQNiz9xYWagASboBpAU/zAXsCCJ7SbCZjaghexAmgOIFUh2AXKyh7GRXTARiI2w2MoKVMwBtRVkOysQHwNiPxQXDFhmotgAgAADAKYzbYynfqX2AAAAAElFTkSuQmCC\') 0 0}.ui-editor-float-left-button:hover .ui-icon-float-left{filter:alpha(opacity=100);opacity:1}.ui-editor-float-none-button .ui-icon-float-none{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAkFBMVEUAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAABAQEAAADRrxbRsBYBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAACcegnCrQ6ffgqukQv+/GixkS3duyLhwyfkyizevSNRMDCigDLauC/y41DcuiLrzTTQrhWCYBiObSDErz3r4VvApCt4Vg6dewnDaH3NAAAAGHRSTlMAycfDxcu9v8HYu+DAwIm3uZnRkdDn7LIyy/h+AAAAWklEQVR4Xp2KRwqFMBQAYzfGXmPtvfx//9spgvAWQcRZzgx6gz6dGEDkQ1FWNRBN2/XZCMRvXtZtB4LSfxon6AHTsjVZUQWR5xz2cWfJxYR9eFf2MQnCCH3hAIfwBUXJe8YuAAAAAElFTkSuQmCC\') 0 0}.ui-editor-float-none-button:hover .ui-icon-float-none{filter:alpha(opacity=100);opacity:1}.ui-editor-float-right-button .ui-icon-float-right{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAS1JREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzZYRzBaaHcWE4kZGJ8aCe/0sHFAOAoB5d4avXfAwPH4swaGt+ZWAEGsnCwcrAzM7K8Ovzd3sMFwDBWpjNMPrK5b++C94yMwQGCDBYWPxlEFVQZOCRlGB4e/EMAzYDgtFdICr6kUFd7QfDgwdcDG/ecjCYfX/LoG7EzXD1+ncGeyNMAzYiuQDsCmHhf54qKr+BzI9AL3xkePXoNcO/fxcZ7t/6wwDzAyMsGoGBiDWUnQwR4tx8jAy8AowMLx//Y9h95g+GAdvQXIAPM//798+EKBfgAkADMMJgNxE2swEtZAfSHECsQLILkJM9jI3sgolAbITFVlagYg6orSDbWYH4GBD7obhgwDITxQYABBgAdBpg+9sXURwAAAAASUVORK5CYII=\') 0 0}.ui-editor-float-right-button:hover .ui-icon-float-right{filter:alpha(opacity=100);opacity:1}.ui-editor-font-size-inc-button .ui-icon-font-size-inc{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAOhJREFUeNpi/P//PwMlgImBQkCxASxgU5gwzJkOpTORBZ2ilzO8+MjFwMIixnBhnTlOF8gD8U8gFoey4UBSyZooLzgD8Umo65xhgsYu5USHgS0QHwfiE1A2TtuxGaAIxL+B+AEQnwFiaagYg6Qi2AAHIP4PpbEa4AHEz4HYAIi/QL3hgSS/H4gfQmlELCAHNBBLQGlksenP7x9l4Bc3YMTnBRWogbZIuBOIZUFyW2b5EQwDVyA+giYPcionSA6U5Jc0yTK8vrUcVQU0L1gB8RMotkKSXoMkXgQT5BM3A+sDYcahn5kAAgwArro7Z1GYijsAAAAASUVORK5CYII=\') 0 0}.ui-editor-font-size-inc-button:hover .ui-icon-font-size-inc{filter:alpha(opacity=100);opacity:1}.ui-editor-font-size-dec-button .ui-icon-font-size-dec{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKxJREFUeNpi/P//PwMlgImBQjAMDGBBMY0Jbp4JEFcAcQcQnwEJpLa/Zfj27SvD+fPnGVhYxBgurDPH6wI9IP4DpRmMXcpJ9oIZELcBcRiaOCjOH0BpnAYoAbE6EE8EYnYgtjq7pxMm5wjE8lAapwFOQLwFiIuB+AQ0PBi2zvYHUQeAmBFKYxoATJWWQOwLxJJAfA6I5YE4FyT+9O5hBiSXwAHjaFKm3ACAAAMA85o8WKYZErQAAAAASUVORK5CYII=\') 0 0}.ui-editor-font-size-dec-button:hover .ui-icon-font-size-dec{filter:alpha(opacity=100);opacity:1}.ui-editor-show-guides-button .ui-icon-pencil{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHZJREFUeNpi/P//PwNFAGQAIyMjDK9BYqNgXHqZ0MSYcFmEyxBGsClMTGS5+t+/fxg2biLGAGTXoBvATGoYkuUFGMDmhd2kGjL4vHCUUi9cIjcpnwPi2UAsBaXPQZPwOXxscD5Cy0xLSbUc3YDnJLue0uwMEGAA2O1APJOrHFQAAAAASUVORK5CYII=\') 0 0}.ui-editor-show-guides-button:hover .ui-icon-pencil{filter:alpha(opacity=100);opacity:1}.ui-editor-ui-show-guides-visible *{outline:1px dashed rgba(0,0,0,0.5)}.ui-editor-undo-button .ui-icon-undo{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAe1JREFUeNrEUzFrFEEU/mazu7d3x8U9g0ROwkHEwrSrNmksJBxok1RRwUIEz0awFStZoqQw5B9ok1jYiRDBwl4PSaFJVLCMMfHWS7zb3ZndGd9ssgdXiVzhwGNnH+/75n3vm2FKKQyzDAy5zKmHLRSKRdiOA6tQgGlZDcrPUme3dcFBEPSLlZQQcZyFTFN8WZiGOUCnVCMRws9/4zD8BwkEFpz7N66c8vQJUbeLNEn+LuEQqxo8jv0716e8/f0UPIp0+n1OTbFLsUF1z+n7boAgA0eRf/em521tdeE4BuYunfa0OYehEMUJ3wt6Fza+7s4EkVwh3DJFLyPgYejfa0576+u/MsZe70g/tX8QRujSHDgXtpTpmOvarkjYrZ97Qg/xUTYDOv3B46U3rcnJMqRUUKaBtsXwzWDYJmfax1y0x07gx/FxfLbckd+1Wj0dYddI8vlcwhp1gcUnr/z55mXvbcfA99WXrVwjMwzGHNs0yiWbVSpFXqtVMTFxkrU+zOt55ENc04N7tvTCP9O86mn76D6cIzDSODYRhhUEnXFguy4/bs6gWr1IubN9F3KShHN8Wn6a3QNtZaFU0lvtZXAUm1LK13Jn5z7Vzw0Q9EmE0NvZDNnpoDw6OuC7voFUs0C19Uzif39MQxP8EWAA91//GdkHdYEAAAAASUVORK5CYII=\') 0 0}.ui-editor-undo-button:hover .ui-icon-undo{filter:alpha(opacity=100);opacity:1}.ui-editor-redo-button .ui-icon-redo{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAd9JREFUeNrEU89LG0EUfjP7KyvEGsRorRhoySGCuSyht0IPgicFQZCcvXsvHoP/Q8FDKZRCpQityKIHvZT2YI6t6MUfCJqQKpt1d7Ozu7N9O9vWhIIUcvDBt/OY4X3z3vfNkjiOoZ+g0GfIyaf46gtQSQJF0wQIvePN5nJiJYS8xmUzDAIz8H1gnQ74npcS3BeubYOm60lqCKQjm/89QhSG0HEcSG6tzo4bAWM1JJntGaE7UNQKcL6EaQkxknQfcS6Imk0GizOTxrvPx7Xf4pvdBAOc85VBnVTLU6OPhx8NZBVZUjmPIYpStNsMGo0I5l8+NT5sfxckggCFAYrFzyaHlo1yoYDdSs2WD9e2A/atC4wFooMkJBT79EqBF88Lxu7eYU0QMN+v5Eey1enSRKF1y6ULFoKFAFUDntMgwpsiDuAEMbgBhydDKmxtH9TRmdWUwPOWSsXi2Fmr7RyfNG6sa9vzbI+FHT+MI3730hbmjIwEcLTxSRSrup5qgH6Wvn39cd76ae9TSndw6wzRQNiSooQxiohjHij4Pqy379PiTMb86wJalL+6ZB+pLK9RSv+x0XddkQfrb9K2VdXssRHZk4M1mRDc6XXWsaw/aT15ibKimN3n5MF/pr4JfgkwANDA599q/NhJAAAAAElFTkSuQmCC\') 0 0}.ui-editor-redo-button:hover .ui-icon-redo{filter:alpha(opacity=100);opacity:1}.ui-editor-hr-button .ui-icon-hr{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAXhJREFUeNpi/P//PwMTExMDEmgEYi0gZsSCrwJxNUzhv3//GBixGEA0ABnAgkV8LZqtTFDaF6aAX8KCwdBrA4QDckFq+1sGSUVrBkZGRqKwvEEhg2PyS7BeuAv07AsZXjw4BmJuQLIV5gImJLYrv7g53LlwA8TkLRgCi28wXDzQF/Dr10+G379/M/z58wfoz/9gfUxMrAzMzGwMsnr5DBwcvBgGHABiexBDyTiV4cuXTwxfv35j+PHjB9CQ/0BnszCwsHAysLHxIofVQSB2gBlgnxogAqREiI6B+ikf7ZFdcHD2hjf2X79+Zfj8+TNeF7Cz84K9wMrKdRDZAAcQ8fbJaYYndw4zYAsDHlFjBjZxKwyXwAPx1cMTDIdWxoKY+5BCHo7f31tp8VM9iUFQ0oaBQ9YBYQIoLo1dygmmA2QgIGHJoGhUCtaLLSkfweICVqA6diDNAcQKyJYTlRdAanCJY8sL04HYFM3WM0Acgs0QRlymEwsAAgwAwwCYinucCRoAAAAASUVORK5CYII=\') 0 0}.ui-editor-hr-button:hover .ui-icon-hr{filter:alpha(opacity=100);opacity:1}.ui-editor-wrapper .ui-editor-i18n-select{height:23px;top:-8px;text-align:left}.ui-editor-wrapper .ui-editor-i18n-select .ui-selectmenu-status{font-size:13px;line-height:10px}.ui-selectmenu-menu li a,.ui-selectmenu-status{line-height:12px}.ui-editor-wrapper .ui-editor-i18n-select .ui-selectmenu-item-icon{height:24px;width:24px}.ui-selectmenu-menu .ui-icon.ui-editor-i18n-en,.ui-editor-wrapper .ui-icon.ui-editor-i18n-en{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAflJREFUeNpinDRzn5qN3uFDt16+YWBg+Pv339+KGN0rbVP+//2rW5tf0Hfy/2+mr99+yKpyOl3Ydt8njEWIn8f9zj639NC7j78eP//8739GVUUhNUNuhl8//ysKeZrJ/v7z10Zb2PTQTIY1XZO2Xmfad+f7XgkXxuUrVB6cjPVXef78JyMjA8PFuwyX7gAZj97+T2e9o3d4BWNp84K1NzubTjAB3fH0+fv6N3qP/ir9bW6ozNQCijB8/8zw/TuQ7r4/ndvN5mZgkpPXiis3Pv34+ZPh5t23//79Rwehof/9/NDEgMrOXHvJcrllgpoRN8PFOwy/fzP8+gUlgZI/f/5xcPj/69e/37//AUX+/mXRkN555gsOG2xt/5hZQMwF4r9///75++f3nz8nr75gSms82jfvQnT6zqvXPjC8e/srJQHo9P9fvwNtAHmG4f8zZ6dDc3bIyM2LTNlsbtfM9OPHH3FhtqUz3eXX9H+cOy9ZMB2o6t/Pn0DHMPz/b+2wXGTvPlPGFxdcD+mZyjP8+8MUE6sa7a/xo6Pykn1s4zdzIZ6///8zMGpKM2pKAB0jqy4UE7/msKat6Jw5mafrsxNtWZ6/fjvNLW29qv25pQd///n+5+/fxDDVbcc//P/zx/36m5Ub9zL8+7t66yEROcHK7q5bldMBAgwADcRBCuVLfoEAAAAASUVORK5CYII=\') 0 0}.ui-selectmenu-menu .ui-icon.ui-editor-i18n-zh_CN,.ui-editor-wrapper .ui-icon.ui-editor-i18n-zh_CN{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFqSURBVHjaYrzOwPAPjJgYQEDAleHVbhADIvgHLPgHiQ0QQCxAlkR9NW8sw+cV/1gV/7Gb/hV4+vfzhj8Mv/78//Pn/+/f/8AkhH1t0yaAAAJp4I37zyz2lDfu79uqv/++/WYz+cuq/vvLxt8gdb+A5K9/v34B2SyyskBLAAII5JAva/7/+/z367a/f3/8ZuT9+//Pr78vQUrB6n4CSSj6/RuoASCAWEDO/fD3ddEfhv9/OE3/sKj8/n7k9/fDQNUIs/+DVf8HawAIIJCT/v38C3Hr95N/GDh/f94AVvT7N8RUBpjxQAVADQABBNLw/y/Ifwy/f/399ufTOpDBEPf8g5sN0QBEDAwAAQTWABEChgOSA9BVA00E2wAQQCANQBbEif/AzoCqgLkbbBYwWP/+//sXqBYggFhAkfL7D7OkJFCOCSj65zfUeFjwg8z++/ffX5AGoGKAAGI8jhSRyIw/SJH9D4aAYQoQYAA6rnMw1jU2vQAAAABJRU5ErkJggg==\') 0 0}.ui-editor-image-resize-in-progress{outline:1px dashed rgba(0,0,0,0.5)}.ui-editor-length-button .ui-icon-dashboard{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAhFJREFUeNrEk7tv01AUxr/4kcRO7Fh1HghFgSAeYglDlIfUbGEBhaWoUxFiQWJGMDDyhzB2ZmANYmAoIvQPaIHIkVJjKyWkcdzYSR1zbhSGQhFDB47007333PN9V/cVCcMQ5wkO54wIxe+5q8Rt4gaRW+VsYo9oE1/+ZpAktjKZzL1arXatWCzmFEVhOYzH40m327U7nc7nwWDwhlLbxITN8SsDVvisXq9vtVqtuqZp2XK5HDcMg5vNZlylUon7vq+XSqXLi8WiYJqmTvWfiNkvg8e06gMqLDmOI5AIvV4P8/l8CeuzHMHn8/kcmeiWZQWk6zCD67quP280GuXNdlv4qKrwTk6WwpXoFNVqNTKdTtf6/X7C87wPzOAhrX4nCIK195KEp4aBtxyHKRm4roujozGdwQSO49LYx/7+VzIPeVEUOcsyh+wab9Ge0+SKGW3nhSzj5WiEoWlhMvHolKOIRmVIkgpZVhGPKxAEGdlsIc20zOASz/NSs9lkl4IwJuOJH+CVksDi2APPx0iYIgNlCTNYXy8hmdQkpmUGCfag2u134DgJipKGdqGAR6NjbKdVOAMbQRAiRsaCEKMaHru7XdYutRw95R+Hh0NXVTNIpXQy0KDrOVy8chOb34Z4XcjCMvZoO86p12bbBy7Tsv5dYoc4OAtFFM3BxkZ4xtzOSvvPuE98X7V//oX//ht/CjAAagzmsnB4V5cAAAAASUVORK5CYII=\') 0 0}.ui-editor-length-button:hover .ui-icon-dashboard{filter:alpha(opacity=100);opacity:1}.ui-editor-link-button .ui-icon-link{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAilBMVEX///8EBARUVFRUVFQEBARTU1MqKiwfHx5MTEzGxsZNTU1FRUWAgH8SEhJnZ2fd3d06Ojrg4ODIyMgODg4DAwMSEhLCwsGcnKXExNEvLy+ysrh+foMQEBBBQUEEBATJydeenqcDAwPT09OIiIjj4+OZmZl3d3fU1OPCwsHW1tXq6urr6+va2trGxsaRnmwcAAAAI3RSTlMAimdfRTOWgDXbAGXFj339cv3dAHtC3OP8bt+2cnuA/OMA+Akct2IAAABoSURBVHhetcVZFoIgGAbQ7wcVwyEKtBi01OZh/9urw2EJdV8ufkHmnDHG85RE2a7Wp812GGJtiaqvG1rOXws1dV9BzWKi2/3xfL1pErOCdT6YS2SCdxZdsdtfD8ci1UFnIxGNWUrjHz6V6QhqNdQf6wAAAABJRU5ErkJggg==\') 0 0}.ui-editor-link-button:hover .ui-icon-link{filter:alpha(opacity=100);opacity:1}.ui-editor-unlink-button .ui-icon-unlink{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAA2FBMVEX///8WFhYvLy9LS0sEBAQODg4EBARNTU0DAwNVVVVUVFQtLS1nZ2cfHx46OjoSEhLGxsZTU1OAgH/T09NUVFQEBAQ6OjpMTEwvLy+4uMDCwsEQEBCvr7sSEhIEBAR+foMqKixFRUUEBARDQ0MBAQEBAQG5ucQiIiICAgIODg7Z2dlAQEBMTEwsLCxGRkYAAABPT0/e3t4mJiYqKiopKSlUVFQiIiJJSUkjIyNFRUU5OTkBAQEoKCi/v8zCws+qgFWFZkY7MSbc3Nzj4+Pm5ubOztzU1OTQ0N6IE/7FAAAAQ3RSTlMAAAAAigAAAAAAZwB9gACP2zPF+F9ocjVu39xy40KAtpZlRQBrUPx9AIb8AE8AAAAA/AAAAAAAAAAAAAAA/PwAAAD8PWHlxQAAALtJREFUeF5dzsVWxEAQheHqpGPEPeMWGXfcmQHe/42oC+ewmH95F1UfGWFyhZLQUBHlTvBxOp92gZP/DaN25Esp/ag9ukeUxa5p6qbpxpmHqGgNOtWm6gxahaIokwX1ht16ps3q7rAn9utrg7RxX6Z6KvtjbWJZGHTuuLLtw8P2f/CAWd4uGYNBqCpj5s1NM2cMPd3xc2D4EDDkIWCmj1NgSEHAlGUJDAnEmOfPr+8XxtDr27sQwHDA0GU/2RcVwEV78WkAAAAASUVORK5CYII=\') 0 0}.ui-editor-unlink-button:hover .ui-icon-unlink{filter:alpha(opacity=100);opacity:1}.ui-editor-link-panel .ui-editor-link-menu{height:100%;width:200px;float:left;border-right:1px dashed #d4d4d4;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical}.ui-editor-link-panel .ui-editor-link-menu p{font-weight:bold;margin:12px 0 8px}.ui-editor-link-panel .ui-editor-link-menu fieldset{-webkit-box-flex:2;-moz-box-flex:2;-ms-box-flex:2;box-flex:2;margin:2px 4px;padding:7px 4px;font-size:13px}.ui-editor-link-panel .ui-editor-link-menu fieldset label{display:block;margin-bottom:10px}.ui-editor-link-panel .ui-editor-link-menu fieldset label span{display:inline-block;width:150px;font-size:13px;vertical-align:top}.ui-editor-link-panel .ui-editor-link-menu fieldset,.ui-editor-link-panel .ui-editor-link-wrap fieldset{border:0}.ui-editor-link-panel .ui-editor-link-wrap{margin-left:200px;padding-left:20px;min-height:200px;position:relative}.ui-editor-link-panel .ui-editor-link-wrap.ui-editor-link-loading:after{content:\'Loading...\';position:absolute;top:60px;left:200px;padding-left:20px;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAOXRFWHRTb2Z0d2FyZQBBbmltYXRlZCBQTkcgQ3JlYXRvciB2MS42LjIgKHd3dy5waHBjbGFzc2VzLm9yZyl0zchKAAAAOnRFWHRUZWNobmljYWwgaW5mb3JtYXRpb25zADUuMi4xNzsgYnVuZGxlZCAoMi4wLjM0IGNvbXBhdGlibGUpCBSqhQAAAAhhY1RMAAAACAAAAAC5PYvRAAAAGmZjVEwAAAAAAAAAEAAAABAAAAAAAAAAAAA8A+gAAIIkGDIAAACsSURBVDiNtZLBCcMwDEUfJgOUjhAyQsmp9FA8TgfISj6F4gl66jSdIIf00G9wnLjYKf3w0Qch6Us2fMdVLMYx0haYRZsrMJEegZdiDj3gFFeT54jBiU2mO+XdVvdRyV0OYidVMEAH3AEPHGoboMKwuy+seYqLV9iNTpM90P7S6AQMitXogYnPHSbyz2SAC9HqQVigkW7If90z8FAsctCyvMvKQdpkSOzfxP/hDd++JCi8XmbFAAAAGmZjVEwAAAABAAAAEAAAABAAAAAAAAAAAAA8A+gAABlX8uYAAAC3ZmRBVAAAAAI4jaWQsQ3CQBAEB4cECFGCI1fiAlyFKwARWgSIeqjCNTh0gIjIkBw9gffFSfz74VlpdX/W3Xr3YBmlmIUSmMSoSGHee+CmGsMGaFU/cAecqnVh/95qpg0J/O0gCytgDRzUX4DnryIn5lwO6L7c6fxskRhMwkc4qj+TEcFjC9SqWcsj8x3GhMgu9LHmfUinvgKuYmWWp5BIyEFvBPuUAy9ibzAYgWEhUhQN8BCb2NALKY4q8wCrG7AAAAAaZmNUTAAAAAMAAAAQAAAAEAAAAAAAAAAAADwD6AAA9MEhDwAAAKhmZEFUAAAABDiNY2CgMTgNxTgBExLbh4GB4SCUxgeMcEkcZmBg+A+lcQETqBoTbJI+UM1ku4AiEATFZIEQBoi//kPZxIAAKEaJBYpACAm24wUSBORVGBgYUqA0BtjKAAmHrXg0f4aq+YxuiAQDIiD/Q/k8DAwMdVDMw8DAkIamJo2QCyYjKZ4MtfErlP8VlzeQw2AlkgErkbyBMwzQgRoDA8N+KMapAQDdvyovpG6D8gAAABpmY1RMAAAABQAAABAAAAAQAAAAAAAAAAAAPAPoAAAZC1N1AAAAsWZkQVQAAAAGOI21kkEOgjAURF9YGBbGtYcwLowrwxk8BMcg3XACD9djGJaujKmLTkMRCiXEl0ympYX8+Xz4M62UpIjWR8DI59inDgzg5CkOwEs+YnMFmzhJOdwAK1UAZ+ANfLRewuJ75QAb/kKRvp/HmggVPxHWsAMu8hEN8JRPUdLnt9oP6HTYRc/uEsCVvnlO+wFGFYRJrKPLdU4FU5HCB0KsEt+DxZfBj+xDSo7vF9AbJ9PxYV81AAAAGmZjVEwAAAAHAAAAEAAAABAAAAAAAAAAAAA8A+gAAPSdgJwAAADDZmRBVAAAAAg4jaWSTQrCMBCFP6NIT5AjCF6gJ6jbUnoCL1biDTyF5AAueoZu3LkSrAtHTEJiIn3wmCTz92YILMQ64++BPTDKXQMH4AbcAZQTvAEasTFo4AqcxeowoAFmsSk1s8M+DChRMEnyFFNQAg10sWSFv49cESPUn+RRWFLE8N2DKe2axaIR/sU25eiAi9gUBt6zDzGnFad13nZCgAr/I1UxBdZRUAMPYV2iIETrdGudd28Hqx8FFHCU8wl4xoJeZnUrSRiyCSsAAAAaZmNUTAAAAAkAAAAQAAAAEAAAAAAAAAAAADwD6AAAGe6xwAAAALtmZEFUAAAACjiNpZJBCsIwEEWfpUsPULoSl55Beh4J7nqCHkDceR3pIaSr4Ak8Qq2L/khomlrig+FPhszwJy3EqYCHolq4F6UDBkWnWgbspN+CT7EwMAPuwFM67aUAem/IdIW952jQOeCXg1bN7ZyDNQRvsEkYkgNG+S1XcpHWKwacgatzlLLH2z/8vUJCf5wSaKQxToCVBjSM37jxaluFw+qOXeOgBF4KVzNqNkH3DAfGX7tXnsRREeUD4f8lQGjw+ycAAAAaZmNUTAAAAAsAAAAQAAAAEAAAAAAAAAAAADwD6AAA9HhiKQAAAJ9mZEFUAAAADDiNtZDLCcMwEEQfIUcXoDpCKgg6qIRUEtKB6wg6poDgalyFTj7YBw+2QyRlCc6DYVm0n9FCGQc8JFepWzgBN0WACIxS/NZ8BgYVD8pzA1ogKb5x3xSPyp0a4+YLSe/J4iBH0QF83uCvXKSFq2TBs97KH/Y1ZsdL+3IEgmJt86u0PTAfJlQGdKrprA6ekslBjl76mUYqMgFhpStJaQVr0gAAABpmY1RMAAAADQAAABAAAAAQAAAAAAAAAAAAPAPoAAAZshBTAAAAu2ZkQVQAAAAOOI21kCEOwkAQRR8rKkkFCtmjkJ4ARTgBArViT4LjLJwBgUZUr8NBQlrR38Am3XYEvOTnT7PzuzO7IE8BHFWfgNdELwBLYCMH8EAr+VzIyUvgBlzkZaZ/D1zlCfXXba2+C93sVaNwK08ogUaHzcQEu9wE0O9e83kDEw7YAhG4K/ww5CoJFB52j8bwU6rcTLOJYYWo2kKywk9Zz5yvgCAfDb9nfhLoHztYJzhIpgnGOEv/owMnkSfarUXVlAAAAABJRU5ErkJggg==\') no-repeat left center}.ui-editor-link-panel .ui-editor-link-wrap h2{margin:10px 0 0}.ui-editor-link-panel .ui-editor-link-wrap fieldset{margin:2px 4px;padding:7px 4px;font-size:13px}.ui-editor-link-panel .ui-editor-link-wrap fieldset input[type=text]{width:400px}.ui-editor-link-panel .ui-editor-link-wrap fieldset.ui-editor-external-href{width:365px}.ui-editor-link-panel .ui-editor-link-wrap fieldset.ui-editor-link-email label{display:inline-block;width:115px}.ui-editor-link-panel .ui-editor-link-wrap fieldset.ui-editor-link-email input{width:340px}.ui-editor-link-panel .ui-editor-link-wrap ol li{list-style:decimal inside}.ui-editor-link-panel .ui-editor-link-wrap .ui-editor-link-panel .ui-editor-link-wrap fieldset #ui-editor-link-external-target{vertical-align:middle}.ui-editor-link-error-message div{padding:0 .7em}.ui-editor-link-error-message div p{margin:0}.ui-editor-link-error-message div p .ui-icon{margin-top:2px;float:left;margin-right:2px}.ui-editor-list-unordered-button .ui-icon-list-unordered{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMlJREFUeNpi/P//PwNFAGQAIyNjGBCvgdIMxGKQXhaoORFlZWWBXV1dTED2KqjYGiBmRMJMaOwrQFwOc0EEEG+A0iS5gBFEMDExkeX9f//+MTAxUAhgBsQC8U4oTRKABWJ8Rkae84wZk5iB7MVQsW1IAYYLW8MCMRGID0Bp+gYiC46EhTPR4QrEdCA+A6VJT8pAcDMsLB3EuAniQP14BIiPAfEJID4FxGehqe8OED8B4vVgvVADioH4GZTGGWhYvUtpbqQ4JQIEGABjeFYu055ToAAAAABJRU5ErkJggg==\') 0 0}.ui-editor-list-unordered-button:hover .ui-icon-list-unordered{filter:alpha(opacity=100);opacity:1}.ui-editor-list-ordered-button .ui-icon-list-ordered{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAM1JREFUeNpi/P//PwNFAGQAIyNjIxCvAWJBIGYgFoP0skDNqQfidUDMiGT2GigfhpnQ2FeAuJwFSQMTmuNCiPEBTFMblF1CahAwgvzBxMREVvj9+/cP7oIuIN4Bpcl2gRMQJwFxDFRuG1KAYcVAF1jDojEBiGcAsQSp0QjzgiEQawLxSiibNoGInmqRE9J0IJaEYnNSXAAzYC4QNwJxIJLcEbRAYwZidiDmgOLTYPVIzgJpPgD2F45Aw+olqAFrgfg5EBeTagAjpdkZIMAAg/ZGwsH5qkAAAAAASUVORK5CYII=\') 0 0}.ui-editor-list-ordered-button:hover .ui-icon-list-ordered{filter:alpha(opacity=100);opacity:1}.ui-editor-paste-panel-tabs{height:100%;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-paste .ui-tabs a{outline:0}.ui-editor-paste-panel-tabs{position:relative;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical}.ui-editor-paste-panel-tabs .ui-editor-paste-synchronize-text{height:25px;line-height:25px;position:absolute;right:0;top:0;width:100px}.ui-editor-paste-panel-tabs .ui-editor-paste-synchronize-text input{margin:0;padding:0;vertical-align:text-bottom}.ui-editor-paste-panel-tabs>div{overflow:auto;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-paste-panel-tabs>div>.ui-editor-paste-area{-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1;display:-webkit-box;display:-moz-box;display:-ms-box;display:box}.ui-editor-raptorize-button .ui-icon-raptorize{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABDlBMVEX///9NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU0Y/iVtAAAAWXRSTlMA/v1mTvW+WQFF+nGpsyPlDhXL1GvZHduk48LslL2a7tadwee772kEfqD8+OGCXWJ2+bQ9pt7xCme4iQU4iNH0mCEPEd82Ocxj4De2HoMaq3MHZJsDeGwCG8H1fioAAAC1SURBVHheNchFlsMwEADRlmRkSDKmMDMMMjMz9P0vkifLrl194F3NW0qtugV5Wt1FHpnloGKRmr3TK96YDjiMxFGCONngcJ1De4GNDJqhvd2VkbzsY+eDw2efMTYsjRFxd4+DZx6ajC1xhXTTB560EyfWASJW2FEG3vGJElZOz4xzH6QLKLqMgpvbu3sxD+4jPBFJe05fBby9ly0S6ADxl4BviGjp5xd0Of0TUqaUEPs/kR1YA96IIUDtx93SAAAAAElFTkSuQmCC\') 0 0}.ui-editor-raptorize-button:hover .ui-icon-raptorize{filter:alpha(opacity=100);opacity:1}.ui-editor-save-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAVNJREFUeNqkU71ugzAQPowtwdAdqRLK3odg6161a+cukZonoGrElgWWDqhb16oP0AfoytStirows0QRMj/unQsohAQi5aTD5vju4/Pd2VBKwTnG6cEYe8bl6s73P09Jel8ur3H5ruv6CUiBYRgfQRAosnrCyQhLOZTLG1ImpYQSA1VVjf7dNE0gLOV0R6AXlAMSk4uiGCUQ6ITdJzDpz0SQTxAoxlqVZo+gLEuQyDxFwIQAwg4IiPV3vYbL2WyUgDBHFbxG0Um9t237sIIkSeDYYGHbur3neQMCTgqoRWEYDToh8NyLxSO4rgtpmrY14D0CUsA5h80mh/n8QQdXq7CTTN/ILMtqa9AjEDjOGrTdSnAcRwdpr1unzB5BMweiGwY8tx/H8U+WZbmUSoPJlfr3NrZLgDkXujbNXaD9DfoLAt8OFRHPfb8X+sLcW+Pc6/wnwABHMdnKf4KT4gAAAABJRU5ErkJggg==\') 0 0}.ui-editor-save-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-cancel-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAtFBMVEX///+nAABhAACnAACjAACCAACgAACHAACjAAByAAB1AAByAACDAACnAACCAACHAACgAACNAACbAACXAACMAACSAABfAACYAACRAACjAACbAAChAACqAACNAACcAACHAACqAADEERGsERHQERG+NjaiERHUTEzYERG4ERGlFBSfFRX/d3f6cnK0JSWoHh7qYmLkXFyvFRXmXl7vZ2fNRUX4cHDXT0/+dnbbU1O3Li7GPT26MTG2f8oMAAAAIXRSTlMASEjMzADMzAAASMxIAMwAAMzMzEjMzEhISABIzABISEg/DPocAAAAj0lEQVR4Xo3PVw6DMBBF0RgXTO+hBYhtILX3sv99RRpvgPcxVzp/M5syb7lYepxDABDeYcQ5wg+MAMhr3JOyJKfxTABqduuvjD37O6sBwjZ+f76/7TFuQw1VnhyGYZPklYagKbKLlDIrmkBDGq1hUaqhM4UQJpwOwFdK+a4LAbCdlWNTCgGwjLlhUQqZ8uofSk8NKY1Fm8EAAAAASUVORK5CYII=\') 0 0}.ui-editor-cancel-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-wrapper .ui-editor-selectmenu .ui-editor-selectmenu-button .ui-icon{text-align:left}.ui-editor-wrapper .ui-editor-selectmenu .ui-editor-selectmenu-button .ui-selectmenu-text{font-size:13px;line-height:22px}.ui-selectmenu-menu li a,.ui-selectmenu-status{line-height:12px}.ui-editor-wrapper [data-title]:after{opacity:0;content:attr(data-title);display:block;position:absolute;top:100%;font-size:12px;font-weight:normal;color:white;padding:11px 16px 7px;white-space:nowrap;overflow:visible;z-index:1000;-webkit-pointer-events:none;-moz-pointer-events:none;pointer-events:none;-webkit-border-radius:9px 9px 2px 2px;-moz-border-radius:9px 9px 2px 2px;-ms-border-radius:9px 9px 2px 2px;-o-border-radius:9px 9px 2px 2px;border-radius:9px 9px 2px 2px;-webkit-transition:opacity .23s 0s;-moz-transition:opacity .23s 0s;-ms-transition:opacity .23s 0s;-o-transition:opacity .23s 0s;transition:opacity .23s 0s;background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSI1cHgiIHN0b3AtY29sb3I9InJnYmEoNDAsIDQwLCA0MCwgMCkiLz48c3RvcCBvZmZzZXQ9IjZweCIgc3RvcC1jb2xvcj0iIzI4MjgyOCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzI4MjgyOCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\'),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(5px,rgba(40,40,40,0)),color-stop(6px,#282828),color-stop(100%,#282828)),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-webkit-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-moz-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-o-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-ms-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0}.ui-editor-wrapper [data-title]:hover:after{opacity:1}.ui-editor-wrapper .ui-editor-select-element{position:relative}.ui-editor-wrapper .ui-editor-select-element:after{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSI1cHgiIHN0b3AtY29sb3I9InJnYmEoNDAsIDQwLCA0MCwgMCkiLz48c3RvcCBvZmZzZXQ9IjZweCIgc3RvcC1jb2xvcj0iIzI4MjgyOCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzI4MjgyOCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\'),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(5px,rgba(40,40,40,0)),color-stop(6px,#282828),color-stop(100%,#282828)),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-webkit-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-moz-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-o-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-ms-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0}.ui-editor-unsaved-edit-warning{position:fixed;bottom:0;right:0;height:30px;line-height:30px;border-radius:5px 0 0 0;border:1px solid #d4d4d4;padding-right:7px;background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmMiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2VkZWNiZCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#fffff2),color-stop(100%,#edecbd));background:-webkit-linear-gradient(top,#fffff2,#edecbd);background:-moz-linear-gradient(top,#fffff2,#edecbd);background:-o-linear-gradient(top,#fffff2,#edecbd);background:-ms-linear-gradient(top,#fffff2,#edecbd);background:linear-gradient(top,#fffff2,#edecbd);-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-ms-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s;filter:alpha(opacity=0);opacity:0}.ui-editor-unsaved-edit-warning .ui-icon{display:inline-block;float:left;margin:8px 5px 0 5px}.ui-editor-unsaved-edit-warning-visible{filter:alpha(opacity=100);opacity:1}.ui-editor-view-source-button .ui-icon-view-source{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKtJREFUeNpi/P//PwMlgImBQkCxAQwgLzAyMqLjMCCehsSfBhVDUQf2PhYDIoB4JhCLIYmJQcUiCBkQBcRzgFgci6vEoXJRuAyIAeIFODQjG7IAqhbFAAMg3gOlGQhguFp0FyQC8UoglgTx0QFUjSRUTSKuMEgG4nUghVgMkITKJROKhXQg3gbUI42kXxokBpUjGI0gDYVAfBzJABC7EFs6YBz6eYFiAwACDAADJlDtLE22CAAAAABJRU5ErkJggg==\') 0 0}.ui-editor-view-source-button:hover .ui-icon-view-source{filter:alpha(opacity=100);opacity:1}.ui-editor-ui-view-source .ui-editor-ui-view-source-dialog{overflow:auto}.ui-editor-ui-view-source-highlighted,.ui-editor-ui-view-source-plain-text{height:100%;width:100%;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical}.ui-editor-ui-view-source-dialog code,.ui-editor-ui-view-source-dialog textarea{white-space:pre-line;width:100%;height:100%;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}</style>').appendTo('head');
368
+ jQuery('<style type="text/css">.ui-editor-wrapper{overflow:visible;z-index:1001;position:fixed}.ui-editor-wrapper .ui-editor-toolbar{padding:6px 0 0 5px;overflow:visible}.ui-editor-wrapper .ui-editor-toolbar,.ui-editor-wrapper .ui-editor-toolbar *{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ui-editor-wrapper .ui-dialog-titlebar .ui-editor-element-path:first-child{margin-left:5px}.ui-editor-wrapper .ui-dialog-titlebar .ui-editor-element-path{min-width:10px;min-height:15px;display:inline-block}.ui-editor-dock-docked-to-element .ui-editor-toolbar{padding:5px 0 0 5px!important}.ui-editor-dock-docked-to-element .ui-editor-toolbar .ui-editor-group{margin:0 5px 5px 0}.ui-editor-dock-docked-element{display:block!important;border:0 none transparent;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-wrapper textarea,.ui-editor-wrapper input{padding:5px}.ui-editor-wrapper .ui-dialog-content{font-size:13px}.ui-editor-wrapper textarea{display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1}html body div.ui-dialog div.ui-dialog-titlebar a.ui-dialog-titlebar-close span.ui-icon{margin-top:0!important}.ui-editor-editing{outline:0}.ui-editor-wrapper textarea,.ui-editor-wrapper input{border:1px solid #d4d4d4}.ui-editor-wrapper .ui-dialog-content{font-size:13px}html body div.ui-wrapper div.ui-dialog-titlebar a.ui-dialog-titlebar-close span.ui-icon{margin-top:0!important}.ui-editor-path{padding:5px;font-size:13px}.ui-editor-selectmenu{overflow:visible;position:relative}.ui-editor-selectmenu-button{text-align:left;padding:3px 18px 5px 5px!important;float:none!important}.ui-editor-selectmenu-button .ui-icon{position:absolute;right:1px;top:8px}.ui-editor-selectmenu-button .ui-editor-selectmenu-text{font-size:13px}.ui-editor-selectmenu-wrapper{position:relative}.ui-editor-selectmenu-button .ui-button-text{padding:0 25px 0 5px}.ui-editor-selectmenu-button .ui-icon{background-repeat:no-repeat}.ui-editor-selectmenu-menu{position:absolute;top:100%;left:0;right:auto;display:none;margin-top:-1px!important}.ui-editor-selectmenu-visible .ui-editor-selectmenu-menu{display:block;z-index:1}.ui-editor-selectmenu-menu-item{padding:5px;margin:3px;z-index:1;text-align:left;font-size:13px;font-weight:normal!important;border:1px solid transparent;cursor:pointer;background-color:inherit}.ui-editor-selectmenu-button{background:#f5f5f5;border:1px solid #ccc}.ui-editor-buttonset .ui-editor-selectmenu-visible .ui-editor-selectmenu-button{-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0}.ui-editor-buttonset{float:left;margin:0 5px 4px 0;display:inline-block}.ui-editor-buttonset>.ui-button{float:left;display:block;margin:0 -1px 0 0;font-size:13px}.ui-editor-buttonset .ui-button:hover{z-index:1}.ui-editor-buttonset .ui-editor-selectmenu{display:block}.ui-editor-buttonset .ui-editor-selectmenu .ui-button{margin:0 -1px 0 0}.ui-editor-ff .ui-editor-buttonset{float:none;vertical-align:top}.ui-editor-wrapper .ui-button{height:32px;margin-bottom:0;margin-top:0;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-wrapper .ui-button-icon-only{width:32px}.ui-editor-wrapper .ui-editor-buttonset>.ui-button{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}.ui-editor-wrapper .ui-editor-buttonset>.ui-button:first-child{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;border-top-left-radius:5px;-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;border-bottom-left-radius:5px}.ui-editor-wrapper .ui-editor-buttonset>.ui-button:last-child{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;border-top-right-radius:5px;-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;border-bottom-right-radius:5px}.ui-button-icon-only .ui-button-text{display:none}.ui-editor-unsupported{position:relative}.ui-editor-unsupported-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:black;filter:alpha(opacity=50);opacity:.5}.ui-editor-unsupported-content{position:fixed;top:50%;left:50%;margin:-200px 0 0 -300px;width:600px;height:400px}.ui-editor-unsupported-input{position:absolute;bottom:10px}.ui-editor-unsupported-content{padding:10px;background-color:white;border:1px solid #777}.ui-editor-messages{margin:0}.ui-editor-messages .ui-editor-message-close{cursor:pointer;float:right}.ui-editor-messages .ui-icon{margin:0 0 3px 3px}.ui-editor-messages .ui-icon,.ui-editor-messages .ui-editor-message{display:inline-block;vertical-align:top}.ui-editor-messages .ui-editor-message-wrapper{padding:3px 3px 3px 1px;-webkit-box-shadow:inset 0 -1px 1px rgba(0,0,0,0.35),inset 0 1px 2px rgba(255,255,255,0.5);-moz-box-shadow:inset 0 -1px 1px rgba(0,0,0,0.35),inset 0 1px 2px rgba(255,255,255,0.5);box-shadow:inset 0 -1px 1px rgba(0,0,0,0.35),inset 0 1px 2px rgba(255,255,255,0.5)}.ui-editor-messages .ui-editor-message-wrapper:first-child{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;border-top-right-radius:5px;-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;border-top-left-radius:5px}.ui-editor-messages .ui-editor-message-wrapper:last-child{-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;border-bottom-right-radius:5px;-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;border-bottom-left-radius:5px}.ui-editor-messages .ui-editor-message-circle-close{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmNWQ0YiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZhMWMxYyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#ff5d4b),color-stop(100%,#fa1c1c));background:-webkit-linear-gradient(top,#ff5d4b,#fa1c1c);background:-moz-linear-gradient(top,#ff5d4b,#fa1c1c);background:-o-linear-gradient(top,#ff5d4b,#fa1c1c);background:linear-gradient(top,#ff5d4b,#fa1c1c)}.ui-editor-messages .ui-editor-message-circle-check{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2NkZWI4ZSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2E1Yzk1NiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#cdeb8e),color-stop(100%,#a5c956));background:-webkit-linear-gradient(top,#cdeb8e,#a5c956);background:-moz-linear-gradient(top,#cdeb8e,#a5c956);background:-o-linear-gradient(top,#cdeb8e,#a5c956);background:linear-gradient(top,#cdeb8e,#a5c956)}.ui-editor-messages .ui-editor-message-info{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2E5ZTRmNyIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzBmYjRlNyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#a9e4f7),color-stop(100%,#0fb4e7));background:-webkit-linear-gradient(top,#a9e4f7,#0fb4e7);background:-moz-linear-gradient(top,#a9e4f7,#0fb4e7);background:-o-linear-gradient(top,#a9e4f7,#0fb4e7);background:linear-gradient(top,#a9e4f7,#0fb4e7)}.ui-editor-messages .ui-editor-message-alert{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZDY1ZSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZlYmYwNCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#ffd65e),color-stop(100%,#febf04));background:-webkit-linear-gradient(top,#ffd65e,#febf04);background:-moz-linear-gradient(top,#ffd65e,#febf04);background:-o-linear-gradient(top,#ffd65e,#febf04);background:linear-gradient(top,#ffd65e,#febf04)}.ui-editor-messages .ui-editor-message-clock{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZiODNmYSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2U5M2NlYyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#fb83fa),color-stop(100%,#e93cec));background:-webkit-linear-gradient(top,#fb83fa,#e93cec);background:-moz-linear-gradient(top,#fb83fa,#e93cec);background:-o-linear-gradient(top,#fb83fa,#e93cec);background:linear-gradient(top,#fb83fa,#e93cec)}.ui-editor-messages .ui-editor-message-clock .ui-icon.ui-icon-clock{background:transparent url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAOXRFWHRTb2Z0d2FyZQBBbmltYXRlZCBQTkcgQ3JlYXRvciB2MS42LjIgKHd3dy5waHBjbGFzc2VzLm9yZyl0zchKAAAAOnRFWHRUZWNobmljYWwgaW5mb3JtYXRpb25zADUuMi4xNzsgYnVuZGxlZCAoMi4wLjM0IGNvbXBhdGlibGUpCBSqhQAAAAhhY1RMAAAACAAAAAC5PYvRAAAAGmZjVEwAAAAAAAAAEAAAABAAAAAAAAAAAAA8A+gAAIIkGDIAAACsSURBVDiNtZLBCcMwDEUfJgOUjhAyQsmp9FA8TgfISj6F4gl66jSdIIf00G9wnLjYKf3w0Qch6Us2fMdVLMYx0haYRZsrMJEegZdiDj3gFFeT54jBiU2mO+XdVvdRyV0OYidVMEAH3AEPHGoboMKwuy+seYqLV9iNTpM90P7S6AQMitXogYnPHSbyz2SAC9HqQVigkW7If90z8FAsctCyvMvKQdpkSOzfxP/hDd++JCi8XmbFAAAAGmZjVEwAAAABAAAAEAAAABAAAAAAAAAAAAA8A+gAABlX8uYAAAC3ZmRBVAAAAAI4jaWQsQ3CQBAEB4cECFGCI1fiAlyFKwARWgSIeqjCNTh0gIjIkBw9gffFSfz74VlpdX/W3Xr3YBmlmIUSmMSoSGHee+CmGsMGaFU/cAecqnVh/95qpg0J/O0gCytgDRzUX4DnryIn5lwO6L7c6fxskRhMwkc4qj+TEcFjC9SqWcsj8x3GhMgu9LHmfUinvgKuYmWWp5BIyEFvBPuUAy9ibzAYgWEhUhQN8BCb2NALKY4q8wCrG7AAAAAaZmNUTAAAAAMAAAAQAAAAEAAAAAAAAAAAADwD6AAA9MEhDwAAAKhmZEFUAAAABDiNY2CgMTgNxTgBExLbh4GB4SCUxgeMcEkcZmBg+A+lcQETqBoTbJI+UM1ku4AiEATFZIEQBoi//kPZxIAAKEaJBYpACAm24wUSBORVGBgYUqA0BtjKAAmHrXg0f4aq+YxuiAQDIiD/Q/k8DAwMdVDMw8DAkIamJo2QCyYjKZ4MtfErlP8VlzeQw2AlkgErkbyBMwzQgRoDA8N+KMapAQDdvyovpG6D8gAAABpmY1RMAAAABQAAABAAAAAQAAAAAAAAAAAAPAPoAAAZC1N1AAAAsWZkQVQAAAAGOI21kkEOgjAURF9YGBbGtYcwLowrwxk8BMcg3XACD9djGJaujKmLTkMRCiXEl0ympYX8+Xz4M62UpIjWR8DI59inDgzg5CkOwEs+YnMFmzhJOdwAK1UAZ+ANfLRewuJ75QAb/kKRvp/HmggVPxHWsAMu8hEN8JRPUdLnt9oP6HTYRc/uEsCVvnlO+wFGFYRJrKPLdU4FU5HCB0KsEt+DxZfBj+xDSo7vF9AbJ9PxYV81AAAAGmZjVEwAAAAHAAAAEAAAABAAAAAAAAAAAAA8A+gAAPSdgJwAAADDZmRBVAAAAAg4jaWSTQrCMBCFP6NIT5AjCF6gJ6jbUnoCL1biDTyF5AAueoZu3LkSrAtHTEJiIn3wmCTz92YILMQ64++BPTDKXQMH4AbcAZQTvAEasTFo4AqcxeowoAFmsSk1s8M+DChRMEnyFFNQAg10sWSFv49cESPUn+RRWFLE8N2DKe2axaIR/sU25eiAi9gUBt6zDzGnFad13nZCgAr/I1UxBdZRUAMPYV2iIETrdGudd28Hqx8FFHCU8wl4xoJeZnUrSRiyCSsAAAAaZmNUTAAAAAkAAAAQAAAAEAAAAAAAAAAAADwD6AAAGe6xwAAAALtmZEFUAAAACjiNpZJBCsIwEEWfpUsPULoSl55Beh4J7nqCHkDceR3pIaSr4Ak8Qq2L/khomlrig+FPhszwJy3EqYCHolq4F6UDBkWnWgbspN+CT7EwMAPuwFM67aUAem/IdIW952jQOeCXg1bN7ZyDNQRvsEkYkgNG+S1XcpHWKwacgatzlLLH2z/8vUJCf5wSaKQxToCVBjSM37jxaluFw+qOXeOgBF4KVzNqNkH3DAfGX7tXnsRREeUD4f8lQGjw+ycAAAAaZmNUTAAAAAsAAAAQAAAAEAAAAAAAAAAAADwD6AAA9HhiKQAAAJ9mZEFUAAAADDiNtZDLCcMwEEQfIUcXoDpCKgg6qIRUEtKB6wg6poDgalyFTj7YBw+2QyRlCc6DYVm0n9FCGQc8JFepWzgBN0WACIxS/NZ8BgYVD8pzA1ogKb5x3xSPyp0a4+YLSe/J4iBH0QF83uCvXKSFq2TBs97KH/Y1ZsdL+3IEgmJt86u0PTAfJlQGdKrprA6ekslBjl76mUYqMgFhpStJaQVr0gAAABpmY1RMAAAADQAAABAAAAAQAAAAAAAAAAAAPAPoAAAZshBTAAAAu2ZkQVQAAAAOOI21kCEOwkAQRR8rKkkFCtmjkJ4ARTgBArViT4LjLJwBgUZUr8NBQlrR38Am3XYEvOTnT7PzuzO7IE8BHFWfgNdELwBLYCMH8EAr+VzIyUvgBlzkZaZ/D1zlCfXXba2+C93sVaNwK08ogUaHzcQEu9wE0O9e83kDEw7YAhG4K/ww5CoJFB52j8bwU6rcTLOJYYWo2kKywk9Zz5yvgCAfDb9nfhLoHztYJzhIpgnGOEv/owMnkSfarUXVlAAAAABJRU5ErkJggg==\') no-repeat center center}.ui-editor-align-left-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAItJREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzYWEzQfHlf//+lYL0McK8ADSAJJuBBqC6AAjWYrEN2VYPbAZR1QUb0WxEZmPD1lR3wTYCttpSJQxg6mE0sgt2E/AzCLMBMTsQcwCxAskuQE722FwwEYiNsNjKClR8EUjH4w2DActMFBsAEGAAnS84DrgEl1wAAAAASUVORK5CYII=\') 0 0}.ui-editor-align-left-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-align-right-button .ui-icon{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIxJREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzYWEzQfHlf//+lYL0McK8ADSAJJuBBqC6AAvYjGYrMhuEHanugo0EbETH1jQPg714bGcGYhOqu2A3AT+DMBvQQnYgzQHECiS7ADnZw9j4wmA61J+sQMUcUFtBtrMC8TEg9kNxwYBlJooNAAgwAJo0OAu5XKT8AAAAAElFTkSuQmCC\') 0 0}.ui-editor-align-right-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-align-center-button .ui-icon{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAI1JREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzYWEzQfHlf//+lYL0McK8ADSAJJuBBqC6AAlswGErjO2KrJiqLtiIw0Zc2JpmYbCTgM2WFIUBTD2MRnbBbgI2gzAbELMDMQcQK5DsAuRkj80FMDAFiI2RbGUFKuaA2noGiEOwhsGAZSaKDQAIMAB/BzgOq8akNwAAAABJRU5ErkJggg==\') 0 0}.ui-editor-align-center-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-align-justify-button .ui-icon{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJFJREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzYWEzQfHlf//+lYL0McK8ADSAJJuBBqC6AAjWYrEN2VZkNgg7Ut0FGwnYiI6tqe6CbUTYCsPMQGxCdRfsJsJmNqCF7ECaA4gVSHYBcrKHsZFdMBGIjbDYygpUzAG1FWQ7KxAfA2I/FBcMWGai2ACAAAMAvPA4C7ttvJ4AAAAASUVORK5CYII=\') 0 0}.ui-editor-align-justify-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-bold-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKRJREFUeNpi/P//PwMlgImBQjDwBrCgmMbEpA2kGnGofQ3E9UD86t+/fzhdcBWIpwExMxQ3AHEIEK8BYgkgdsLrAih4A8SsaBYwQcWYiDGAEcmAbiwuJBiIIAPYoLgfiMuBeBmUXwHEXIQMYEIy4BUQXwDiy1C+HBBrEPKCDBCzwwwDpVRGRkZksU8ozkVOykCFVkBqOZ5oB3lpAoqe0bzAABBgANfuIyxmXKp/AAAAAElFTkSuQmCC\') 0 0}.ui-editor-text-bold-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-italic-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAH1JREFUeNpi/P//PwMlgImBQjDwBrBgmMgEN1MbiBvRpOv//ft3FUUEFIjImJGRERnrAPF6IO6BiaGrZyLCi6xAvJDcMLAA4j9AfJlcA/yBeCe5sWAExAJAfIKkWIAFJBAUATE7kM+M143ooQoEVkD8EA1b4Yy10bzAABBgAC7mS5rTXrDAAAAAAElFTkSuQmCC\') 0 0}.ui-editor-text-italic-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-underline-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKZJREFUeNpi/P//PwMlgImBQkCxASwopjExhQGpMCSheijdiCz279+/q3AeKAxgmJGREYSdgHgdlIaJ6SCLIevB5oXXUJe9RhK7gkUMZxgwAjEzlEYG2MRwGsCKRTErKQawYFHMQqwBn6G2qSCJGULFPmPYhpwSgdEIY6YCcTKa2rlAPBvEAEYjdgNAUYRMowOYWmQ9LFjUPSGQP2RwemFoZiaAAAMAlEI7bVBRJkoAAAAASUVORK5CYII=\') 0 0}.ui-editor-text-underline-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-strike-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAL5JREFUeNpi/P//PwMlgImBQkCxASwopjHBzbMB4nQg5oTyrwKxNhAXAfGjf//+EXRBFhC/BOI0KAapYwZpxusCJPASquEdlD8FiHWwKWREjgUkL4gDcQ0QfwfiXqiBcIDsBXQD9hATcEADXOAckAEwzMjIiI4lgHgiEM8GYkmYOLIeXAZ4I2sA4vlQjGEArkBsAeJzQAUVYH8yMnIAKTmC6QAaHhpALALEPCBDoOJfgFQ5wVgYmnmBYgMAAgwAEGZWNyZpBykAAAAASUVORK5CYII=\') 0 0}.ui-editor-text-strike-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-sub-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKZJREFUeNpi/P//PwMlgImBQjDwBrDATWJCMWs6lM7Ep/nfv39YXSAPxL+AWALKJtkLLkB8EohZoWySDbAH4uNQQ+xJNUAJiH8DMT8QPwZiWagYDEwA4v1QGgJACQmEGRkZQTgXiI+i4VyoHAy7AfEaEBucCNEM2AzEKkiKu6BiYMuAdAYQLwZiKQwDgGAVED+E0iBgBeUjiy1HErMCWzyaFxgAAgwA5Gw9vTeiCqoAAAAASUVORK5CYII=\') 0 0}.ui-editor-text-sub-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-text-super-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNpi/P//PwMlgImBQjDwBrCgmMaEYt50KJ0JpRuBWBuIrwJx/b9///C6QB6IfwGxBJQNAvVAPAkqRtALLkB8EohZoWwQiAbiICCuI8YAeyA+DjXEHiqmD8SaQLwIysYMAyhQAuLfQMwPxI+B2AkqVkZsLHgDsQYQTwXiVCBmg4phB6CUCMOMjIwgvBmIVaBsEO6CijEgY5geFAOAYBUQP4TSIGAF5SOLoVjMOJoXGAACDACTRz3jjn6PnwAAAABJRU5ErkJggg==\') 0 0}.ui-editor-text-super-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-quote-block-button .ui-icon-quote{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGVJREFUeNpi/P//PwMlgImBQjAcDWBhYZEA4r1AHA/EKHxiXQBS+BKIF+LgEzTAG4h3I0UvOh+/AUCFbECcDmROA2lC5mMzgAWLGDuUtsTBJ+iFeUDMC6Wx8VEA42hSptwAgAADAO3wKLgntfGkAAAAAElFTkSuQmCC\') 0 0}.ui-editor-quote-block-button:hover .ui-icon-quote{filter:alpha(opacity=100);opacity:1}.ui-editor-clean-button .ui-icon-clean{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABNVBMVEUAAAAAAAAgSocgSocgPnAAAABxcXFPT09YWFggSocgSocoToUbPXgSN3kyYZw0ZqT///8iUZkgSoc1Z6UiUJaJrNkwXpZIeLiOvO03a6s4b7JekNUjUpqCp9eNr9pSjeAwX5g2aqquxuV8otPB1euOsNv8/f6gveFgkdVnkMmbuuVfk9lkk9fK3Pbs8vmWtd5Vjs98odCHqNWkv+Jzms6Qt+xnmNuzyudVidS90u6hwe5mmuQtXKCow+OqxepNg82Xtd3C1Ox0m89vl8x3oNl4n9NSjuDi7PqlxO+MtOyWtt2fwO60y+dUjt5zm8/L2+9qneT3+f7g6/qDrelRi95snuWowuSfvOGPr9uwyeqRsdqUs9qat92OrtmDptN5ns9Rh8hqk8uXuehwnt1vl83e6vmZu+gBAK69AAAADXRSTlMbAKM01gogSSmAy7W1OP1GaAAAAM1JREFUeF5VzNN2A1EAQNE7TIrrsSe0Udu2zf//hHZWk672PO6HAySR/UmUwBjT9XyzeJlZuGpe60wE474TxxghhHEcOz4DzLcxRoZhJGT/AOcoiiKEOE9AZEGw291fOcpNdZeD74fEqKZ5lFLP0+YplIDAzBfXrTQKNyW3bEIhgV51QD5fyVv1fQir0zOzcxfW4tLaCGqkHoYWWR/BxubW9k5/7+PgcAjZ8JicnJKz82wC6gRstTu3d/cPj0/PcFIF6ZQMf5NTaaCAfylf1j4ecCeyzckAAAAASUVORK5CYII=\') 0 0}.ui-editor-clean-button:hover .ui-icon-clean{filter:alpha(opacity=100);opacity:1}.ui-editor-clear-formatting-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wGGxcPH7KJ9wUAAAEKSURBVDjL3ZG9SgNBFIW/I76D1RIEazEIFitWNguxUPANUkUIKG4jYiEBC7WwUFJZiNssFvoOFipMFx/AoIVVEAvxB7w2MyBhV5Iq4IHLPecy9zBzBv4nJLUltQc5O1awXAE+gAnPhzMAFoE7YNzzoQ0WgBvg1vPBDSRNAl9m9gC4ebPpc+jkkADkkOTggi4KryFpV9KMpHgfXr/T1DJwGWxn4IIuM7iQdB1qDu73oPder9spuNDPYLZoeUrSZd9saQUej6DzUqvZCbhj2Pjr+pu/ZzuwnMLbc7Vqh+BCPyjIIAaefMVhuA69bhTZGnyuwlULXDeKrFWWQT+akDTAbfk3B90s+4WR4Acs5VZuyM1J1wAAAABJRU5ErkJggg==\') 0 0}.ui-editor-clear-formatting-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-click-to-edit-message{padding:10px;border:1px solid #d4d4d4;font-size:13px;z-index:4000;color:#000;text-shadow:none;-webkit-pointer-events:none;-moz-pointer-events:none;pointer-events:none;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2YyZmZmMiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2RhZjJkNyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#f2fff2),color-stop(100%,#daf2d7));background:-webkit-linear-gradient(top,#f2fff2,#daf2d7);background:-moz-linear-gradient(top,#f2fff2,#daf2d7);background:-o-linear-gradient(top,#f2fff2,#daf2d7);background:linear-gradient(top,#f2fff2,#daf2d7);-webkit-box-shadow:0 2px 10px #ccc;-moz-box-shadow:0 2px 10px #ccc;box-shadow:0 2px 10px #ccc;-webkit-transition:opacity .5s;-webkit-transition-delay:0s;-moz-transition:opacity .5s 0s;-o-transition:opacity .5s 0s;transition:opacity .5s 0s;filter:alpha(opacity=0);opacity:0}.ui-editor-click-to-edit-visible{filter:alpha(opacity=100);opacity:1}.ui-editor-click-to-edit-highlight{cursor:pointer;outline:1px dotted rgba(0,0,0,0.5);-webkit-transition:all .5s;-webkit-transition-delay:0s;-moz-transition:all .5s 0s;-o-transition:all .5s 0s;transition:all .5s 0s}.ui-editor-debug-reinit-button .ui-icon-reload{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAqBJREFUeNqkU01PE2EQnrfdtmyLpbRNA/ULGyAhRi+NHkTk5sEEiRyMEi+evHszJh5I/AF613ho9EIwhEiMB4kSjQcWSDxgIAhJoZV26dd2t/v17jqzkoLGG5vM7rvzzPPsfOww13XhOJdAt8vPN0EIBEAQBPD5/UHGWALdnWgW2iO07H+40sL91APhH2ev4HOH+tJiZzoZCia7guXpj8XsnevprGX9yVQMM8i9K0jA2GI7A+9y3Uwo4I6Mj6aijToHzl2nXrNk27bBMDg0FQ7dcQFezeYljH6PlmsLuI4T8zF+e+zqqZ69ggaKZrH13WaxXDcUwm2LQ6xbgOKOCreu9WTfLuQVy3bSCBV8XoBpjmR6xYvFfKNflpuZTyuF1q+y8sHhXLINA7q6g/Byek06ERWgUlJh8EykHzkTxPUETMMYTcWCQ/Wqllnb3hct0/yM01nWVZUwePZiWcLnt0Vpd1NvmZCMBuL4PtwuwdL1S37GMqpuQaFUL+Mk5rllgeM41BuqeZH5/bmNzdJSbzQEiUggjJyBtgCqRVTDjqrc9c6YOjbRhlCHSON9YKMYGQpDrWVDh2F7mR2WoOsbezVdU30CdMXEGNY3abZ0rLcEVVkGpVqlPk0SRjEUS5y2gGUYX7byckURgnB66OxJ7MFD7MHkAQZ0Jh9hFEOxxDkUMM2ZrR/bMo+IsA3hjuzN4fPpvtQUjneJjM7kI4xiKJY4xGW0C9F7bwDrHvNHwk8T4zcutGz0hRjEQp4+1AwHGoYLosBgf3b+O1e1x9iPuUbu7uGfiEJzerUGu6+npwKDA8lm5lx8J54Ie2lWapr7c6tSWd+QwTSfYGPn/lqmoyKOpkn2yuoErKxeQdfgAbSO9hWXbAa/XDjKYcdd598CDAAkzn7JYhVZYAAAAABJRU5ErkJggg==\') 0 0}.ui-editor-debug-reinit-button:hover .ui-icon-reload{filter:alpha(opacity=100);opacity:1}.ui-editor-debug-destroy-button .ui-icon-close{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAtFBMVEX///+nAABhAACnAACjAACCAACgAACHAACjAAByAAB1AAByAACDAACnAACCAACHAACgAACNAACbAACXAACMAACSAABfAACYAACRAACjAACbAAChAACqAACNAACcAACHAACqAADEERGsERHQERG+NjaiERHUTEzYERG4ERGlFBSfFRX/d3f6cnK0JSWoHh7qYmLkXFyvFRXmXl7vZ2fNRUX4cHDXT0/+dnbbU1O3Li7GPT26MTG2f8oMAAAAIXRSTlMASEjMzADMzAAASMxIAMwAAMzMzEjMzEhISABIzABISEg/DPocAAAAj0lEQVR4Xo3PVw6DMBBF0RgXTO+hBYhtILX3sv99RRpvgPcxVzp/M5syb7lYepxDABDeYcQ5wg+MAMhr3JOyJKfxTABqduuvjD37O6sBwjZ+f76/7TFuQw1VnhyGYZPklYagKbKLlDIrmkBDGq1hUaqhM4UQJpwOwFdK+a4LAbCdlWNTCgGwjLlhUQqZ8uofSk8NKY1Fm8EAAAAASUVORK5CYII=\') 0 0}.ui-editor-debug-destroy-button:hover .ui-icon-close{filter:alpha(opacity=100);opacity:1}.ui-editor-dock-button .ui-icon-pin-s{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAbFJREFUeNpi/P//PwMlgAVEPGNiIqTOBojz/zIwTHrPwHD4BZDzGGhxMhAzEWlRvtTy5SE/GRiKge61R5YgyoB/IHVPnzIoTprk/52BoRJoiDNBA5BCxuY3UN2vz58Znu7ZwyAaHOz+8f//RqC8OzEuAPtdcfbsgM937zJ8+fKFgePHDwa3sDBroKGt8EBEAo1ArAV1ARPQucwqs2f7vz14kOHH378MF/buPQ4S+wXEQPkauAG3EFHp7bBihTHDs2cMf4E2ffvwgQGmeeuyZWf+MDA0ATXs+I8eiP+gGBhNNTsjIs7+5+Vl+HTrFsOry5cZXr56xXB02bKjQM21QCU7sKaDRYiA2wE0RPJnamq2VVGR8adr1xi4uLkZPjMwsDJCNf/HagAjI8SA//95gRRb5pEjxnttbM6aeHsb87CwMED9DAZ/0QxAjgVmRkZGj+vXr0+wt7evWc3ENPfI1q1n2djYGP4TSsqMEBfYLV26tExXVzcfyF8NdM17oG33V69e3QKUO0vIAF1PT8+Y2NhYUDRuh7n0PyTEdzAQ4YKYHTt2TAEyz5OaGxkpzc4AAQYAvlOuK2pYar0AAAAASUVORK5CYII=\') 0 0}.ui-editor-dock-button:hover .ui-icon-pin-s{filter:alpha(opacity=100);opacity:1}.ui-editor-dock-button .ui-icon-pin-w{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wFFgA2AnOoAZ4AAAH4SURBVDjLtZNNaxNhFIXPfefNJJlkppFI09Ca1FiRMiDduCjWQltdtILdu1DcSkpx7UL6A1zGH+BKEFy5MkhErRvpwo+NSDEaaYyZSZNJJslkPl43XQQaaUA8u3M5PFwu5wL/KBo1FEC4DJALiN2jjAWIbcA5EVABzotkUu+ZJmvLsmQwJtcHA2oHQc8FXm8D9eE8HzafgThPpS5H19Zux4kmIqbJWL3OT/u+9LNWK1er1V8PgMMdwBsJ8AARtFoD6na1qK7PubFYTOOc9RqNQxEEX1ygswP4Jx6mDNw3Fhc/WVtb4uPy8uAx0YeHwMaoLBs1DBE9kzTtIJLJ4FQ6LQnghZVMFscCCIB8IeKB7/e6lYpjNZs2V1WeNk02FuApwAJA8xwnFHgeSUL4rmVJ3yIRfyzAFWA+Oj29EZqcvODYNveJEloisZnq9++NAkjD5gCY59nsnfjq6iafnT3bNQzJrtWQzeUm+p3OxQXbll8Cb45tYBGRKcucEd2Irq/fDC8tzSm5nKRMTSEUi3lcUXB1ZSV1RlVvPWLs2rEiaUIIDAbee+AtisWMUyqpRhAoiq7rLdtudvf2fsQlqWe02yQDr/7axEvAbml///uTcHjhqyxncjMz5zqO87th28+vu+47GWjfBdyxP61QKFA+nydVVQn/S38ATpHDEx6slP8AAAAASUVORK5CYII=\') 0 0}.ui-editor-dock-button:hover .ui-icon-pin-w{filter:alpha(opacity=100);opacity:1}.ui-editor-dock-docked{z-index:10000}.ui-editor-dock-docked .ui-editor-toolbar-wrapper{position:fixed;top:0;left:0;right:0;border-top:0;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-pack:center;-moz-box-pack:center;-ms-box-pack:center;box-pack:center;-webkit-box-align:center;-moz-box-align:center;-ms-box-align:center;box-align:center}.ui-editor-dock-docked .ui-editor-toolbar{text-align:center}.ui-editor-dock-docked .ui-editor-path{position:fixed;bottom:0;left:0;right:0}.ui-editor-ios .ui-editor-dock-docked .ui-editor-path{display:none}.ui-editor-dock-docked-to-element-wrapper{font-size:inherit;color:inherit;font-family:inherit}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper{position:relative!important;top:auto!important;left:auto!important;border:0 none;padding:0;margin:0;z-index:auto;width:100%;font-size:inherit;color:inherit;font-family:inherit;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper .ui-editor-toolbar{margin:0;z-index:2;-webkit-box-ordinal-group:1;-moz-box-ordinal-group:1;-ms-box-ordinal-group:1;box-ordinal-group:1}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper .ui-editor-toolbar .ui-widget-header{border-top:0;border-left:0;border-right:0}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper .ui-editor-path{border:0 none;margin:0;-webkit-box-ordinal-group:3;-moz-box-ordinal-group:3;-ms-box-ordinal-group:3;box-ordinal-group:3;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}.ui-editor-dock-docked-to-element-wrapper .ui-editor-wrapper .ui-editor-messages{margin:0}.ui-editor-dock-docked-element{margin:0!important;display:block;z-index:1;-webkit-box-ordinal-group:2;-moz-box-ordinal-group:2;-ms-box-ordinal-group:2;box-ordinal-group:2}.ui-editor-dock-docked .ui-editor-messages{position:fixed;top:0;left:50%;margin:0 -400px 10px;padding:0;text-align:left}.ui-editor-dock-docked .ui-editor-messages .ui-editor-message-wrapper{width:800px}.ui-editor-dock-docked .ui-editor-messages .ui-editor-message-wrapper:first-child{-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0}.ui-editor-embed-button .ui-icon-youtube{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAxlBMVEX////////fNzfaMTHVLCzKISHFGxvvR0flPDzpSEjdMTH4Y2PaKyvtTk7PJibXIyOnLi7lQECkKyvSHR3mPj6eJCSUGhqRFxfqQkL0XFziOTmOFBSBBwehKCiHDQ3PFRWaISGXHR3wVlaECgqqMTGLEBDGHR365eW1ICDaXFz139/LDg7NLi6tNDTSKSnMNzd9AwP1TEy/Fhbwxsbqv7+7EhKzFBS6EBDonZ3akJDkhISxBwf8a2vLIiLPcHD88fH67+/fYGAnLmvBAAAAAXRSTlMAQObYZgAAAJtJREFUeF5Vx0WShFAUBMB631F3afdxd7v/pQaiN5C7BK4mgM3nxAahczfihIgrrfVTqs+qGN2qLMvHwy4tB6sOmWeMIXp7/jI9L8PCYowR0e/3xzVj1gLLiHNOg9OR82iJvBZC0GD/J0Sdo7B93+/78+737AKNK6Uker2UA7fBNlBKPdyos2CLWXI/ksywnr+MzNdoLyZa4HYC/3EAHWTN0A0YAAAAAElFTkSuQmCC\') 0 0}.ui-editor-embed-button:hover .ui-icon-youtube{filter:alpha(opacity=100);opacity:1}.ui-editor-ui-embed .ui-dialog-content .ui-editor-embed-panel-tabs{display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;height:100%;width:100%}.ui-editor-ui-embed .ui-dialog-content .ui-editor-embed-panel-tabs>div{display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-ui-embed .ui-dialog-content .ui-editor-embed-panel-tabs>div>p:first-child{padding-top:10px}.ui-editor-ui-embed .ui-dialog-content .ui-editor-embed-panel-tabs>div textarea{display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-flex:4;-moz-box-flex:4;-ms-box-flex:4;box-flex:4}.ui-editor-float-left-button .ui-icon-float-left{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAS5JREFUeNpi/P//PwMlgImBQsACY1zaIH4A6Bp7dAUzV31jnLHy22YgkxFqIQhf/vfvXymKAQ8eidtra35lYAQqY+FgZWBmZ2X49fk7AxvbX6DsN1+CLlgwn5khMECAwcLiL4OogiIDj6QEw9uLZ4AGfAVJ70BzAQg7ohigrnaP4cEDLoY3bzkYzL6/ZVA34ma4ev07w/sPv0HSHgRdoKICUvgR6IWPDK8evWb49+8iw/1bfxhevwYbsBfNdhC2BkkwwqLRxRhuFgM3HyMDrwAjw8vH/xj2nvuH1WZgIDKgGMDExLQNiz9xYWagASboBpAU/zAXsCCJ7SbCZjaghexAmgOIFUh2AXKyh7GRXTARiI2w2MoKVMwBtRVkOysQHwNiPxQXDFhmotgAgAADAKYzbYynfqX2AAAAAElFTkSuQmCC\') 0 0}.ui-editor-float-left-button:hover .ui-icon-float-left{filter:alpha(opacity=100);opacity:1}.ui-editor-float-none-button .ui-icon-float-none{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAkFBMVEUAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAABAQEAAADRrxbRsBYBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAACcegnCrQ6ffgqukQv+/GixkS3duyLhwyfkyizevSNRMDCigDLauC/y41DcuiLrzTTQrhWCYBiObSDErz3r4VvApCt4Vg6dewnDaH3NAAAAGHRSTlMAycfDxcu9v8HYu+DAwIm3uZnRkdDn7LIyy/h+AAAAWklEQVR4Xp2KRwqFMBQAYzfGXmPtvfx//9spgvAWQcRZzgx6gz6dGEDkQ1FWNRBN2/XZCMRvXtZtB4LSfxon6AHTsjVZUQWR5xz2cWfJxYR9eFf2MQnCCH3hAIfwBUXJe8YuAAAAAElFTkSuQmCC\') 0 0}.ui-editor-float-none-button:hover .ui-icon-float-none{filter:alpha(opacity=100);opacity:1}.ui-editor-float-right-button .ui-icon-float-right{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAS1JREFUeNpi/P//PwMlgImBQsACN4mJqRFIaQExIxQzZYRzBaaHcWE4kZGJ8aCe/0sHFAOAoB5d4avXfAwPH4swaGt+ZWAEGsnCwcrAzM7K8Ovzd3sMFwDBWpjNMPrK5b++C94yMwQGCDBYWPxlEFVQZOCRlGB4e/EMAzYDgtFdICr6kUFd7QfDgwdcDG/ecjCYfX/LoG7EzXD1+ncGeyNMAzYiuQDsCmHhf54qKr+BzI9AL3xkePXoNcO/fxcZ7t/6wwDzAyMsGoGBiDWUnQwR4tx8jAy8AowMLx//Y9h95g+GAdvQXIAPM//798+EKBfgAkADMMJgNxE2swEtZAfSHECsQLILkJM9jI3sgolAbITFVlagYg6orSDbWYH4GBD7obhgwDITxQYABBgAdBpg+9sXURwAAAAASUVORK5CYII=\') 0 0}.ui-editor-float-right-button:hover .ui-icon-float-right{filter:alpha(opacity=100);opacity:1}.ui-editor-font-size-inc-button .ui-icon-font-size-inc{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAOhJREFUeNpi/P//PwMlgImBQkCxASxgU5gwzJkOpTORBZ2ilzO8+MjFwMIixnBhnTlOF8gD8U8gFoey4UBSyZooLzgD8Umo65xhgsYu5USHgS0QHwfiE1A2TtuxGaAIxL+B+AEQnwFiaagYg6Qi2AAHIP4PpbEa4AHEz4HYAIi/QL3hgSS/H4gfQmlELCAHNBBLQGlksenP7x9l4Bc3YMTnBRWogbZIuBOIZUFyW2b5EQwDVyA+giYPcionSA6U5Jc0yTK8vrUcVQU0L1gB8RMotkKSXoMkXgQT5BM3A+sDYcahn5kAAgwArro7Z1GYijsAAAAASUVORK5CYII=\') 0 0}.ui-editor-font-size-inc-button:hover .ui-icon-font-size-inc{filter:alpha(opacity=100);opacity:1}.ui-editor-font-size-dec-button .ui-icon-font-size-dec{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKxJREFUeNpi/P//PwMlgImBQjAMDGBBMY0Jbp4JEFcAcQcQnwEJpLa/Zfj27SvD+fPnGVhYxBgurDPH6wI9IP4DpRmMXcpJ9oIZELcBcRiaOCjOH0BpnAYoAbE6EE8EYnYgtjq7pxMm5wjE8lAapwFOQLwFiIuB+AQ0PBi2zvYHUQeAmBFKYxoATJWWQOwLxJJAfA6I5YE4FyT+9O5hBiSXwAHjaFKm3ACAAAMA85o8WKYZErQAAAAASUVORK5CYII=\') 0 0}.ui-editor-font-size-dec-button:hover .ui-icon-font-size-dec{filter:alpha(opacity=100);opacity:1}.ui-editor-show-guides-button .ui-icon-pencil{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHZJREFUeNpi/P//PwNFAGQAIyMjDK9BYqNgXHqZ0MSYcFmEyxBGsClMTGS5+t+/fxg2biLGAGTXoBvATGoYkuUFGMDmhd2kGjL4vHCUUi9cIjcpnwPi2UAsBaXPQZPwOXxscD5Cy0xLSbUc3YDnJLue0uwMEGAA2O1APJOrHFQAAAAASUVORK5CYII=\') 0 0}.ui-editor-show-guides-button:hover .ui-icon-pencil{filter:alpha(opacity=100);opacity:1}.ui-editor-ui-show-guides-visible *{outline:1px dashed rgba(0,0,0,0.5)}.ui-editor-undo-button .ui-icon-undo{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAe1JREFUeNrEUzFrFEEU/mazu7d3x8U9g0ROwkHEwrSrNmksJBxok1RRwUIEz0awFStZoqQw5B9ok1jYiRDBwl4PSaFJVLCMMfHWS7zb3ZndGd9ssgdXiVzhwGNnH+/75n3vm2FKKQyzDAy5zKmHLRSKRdiOA6tQgGlZDcrPUme3dcFBEPSLlZQQcZyFTFN8WZiGOUCnVCMRws9/4zD8BwkEFpz7N66c8vQJUbeLNEn+LuEQqxo8jv0716e8/f0UPIp0+n1OTbFLsUF1z+n7boAgA0eRf/em521tdeE4BuYunfa0OYehEMUJ3wt6Fza+7s4EkVwh3DJFLyPgYejfa0576+u/MsZe70g/tX8QRujSHDgXtpTpmOvarkjYrZ97Qg/xUTYDOv3B46U3rcnJMqRUUKaBtsXwzWDYJmfax1y0x07gx/FxfLbckd+1Wj0dYddI8vlcwhp1gcUnr/z55mXvbcfA99WXrVwjMwzGHNs0yiWbVSpFXqtVMTFxkrU+zOt55ENc04N7tvTCP9O86mn76D6cIzDSODYRhhUEnXFguy4/bs6gWr1IubN9F3KShHN8Wn6a3QNtZaFU0lvtZXAUm1LK13Jn5z7Vzw0Q9EmE0NvZDNnpoDw6OuC7voFUs0C19Uzif39MQxP8EWAA91//GdkHdYEAAAAASUVORK5CYII=\') 0 0}.ui-editor-undo-button:hover .ui-icon-undo{filter:alpha(opacity=100);opacity:1}.ui-editor-redo-button .ui-icon-redo{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAd9JREFUeNrEU89LG0EUfjP7KyvEGsRorRhoySGCuSyht0IPgicFQZCcvXsvHoP/Q8FDKZRCpQityKIHvZT2YI6t6MUfCJqQKpt1d7Ozu7N9O9vWhIIUcvDBt/OY4X3z3vfNkjiOoZ+g0GfIyaf46gtQSQJF0wQIvePN5nJiJYS8xmUzDAIz8H1gnQ74npcS3BeubYOm60lqCKQjm/89QhSG0HEcSG6tzo4bAWM1JJntGaE7UNQKcL6EaQkxknQfcS6Imk0GizOTxrvPx7Xf4pvdBAOc85VBnVTLU6OPhx8NZBVZUjmPIYpStNsMGo0I5l8+NT5sfxckggCFAYrFzyaHlo1yoYDdSs2WD9e2A/atC4wFooMkJBT79EqBF88Lxu7eYU0QMN+v5Eey1enSRKF1y6ULFoKFAFUDntMgwpsiDuAEMbgBhydDKmxtH9TRmdWUwPOWSsXi2Fmr7RyfNG6sa9vzbI+FHT+MI3730hbmjIwEcLTxSRSrup5qgH6Wvn39cd76ae9TSndw6wzRQNiSooQxiohjHij4Pqy379PiTMb86wJalL+6ZB+pLK9RSv+x0XddkQfrb9K2VdXssRHZk4M1mRDc6XXWsaw/aT15ibKimN3n5MF/pr4JfgkwANDA599q/NhJAAAAAElFTkSuQmCC\') 0 0}.ui-editor-redo-button:hover .ui-icon-redo{filter:alpha(opacity=100);opacity:1}.ui-editor-hr-button .ui-icon-hr{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAXhJREFUeNpi/P//PwMTExMDEmgEYi0gZsSCrwJxNUzhv3//GBixGEA0ABnAgkV8LZqtTFDaF6aAX8KCwdBrA4QDckFq+1sGSUVrBkZGRqKwvEEhg2PyS7BeuAv07AsZXjw4BmJuQLIV5gImJLYrv7g53LlwA8TkLRgCi28wXDzQF/Dr10+G379/M/z58wfoz/9gfUxMrAzMzGwMsnr5DBwcvBgGHABiexBDyTiV4cuXTwxfv35j+PHjB9CQ/0BnszCwsHAysLHxIofVQSB2gBlgnxogAqREiI6B+ikf7ZFdcHD2hjf2X79+Zfj8+TNeF7Cz84K9wMrKdRDZAAcQ8fbJaYYndw4zYAsDHlFjBjZxKwyXwAPx1cMTDIdWxoKY+5BCHo7f31tp8VM9iUFQ0oaBQ9YBYQIoLo1dygmmA2QgIGHJoGhUCtaLLSkfweICVqA6diDNAcQKyJYTlRdAanCJY8sL04HYFM3WM0Acgs0QRlymEwsAAgwAwwCYinucCRoAAAAASUVORK5CYII=\') 0 0}.ui-editor-hr-button:hover .ui-icon-hr{filter:alpha(opacity=100);opacity:1}.ui-editor-wrapper .ui-editor-i18n-select{height:23px;top:-8px;text-align:left}.ui-editor-wrapper .ui-editor-i18n-select .ui-editor-selectmenu-status{font-size:13px;line-height:10px}.ui-editor-selectmenu-menu li a,.ui-editor-selectmenu-status{line-height:12px}.ui-editor-wrapper .ui-editor-i18n-select .ui-editor-selectmenu-item-icon{height:24px;width:24px}.ui-editor-selectmenu-menu .ui-icon.ui-editor-i18n-en,.ui-editor-wrapper .ui-icon.ui-editor-i18n-en{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAflJREFUeNpinDRzn5qN3uFDt16+YWBg+Pv339+KGN0rbVP+//2rW5tf0Hfy/2+mr99+yKpyOl3Ydt8njEWIn8f9zj639NC7j78eP//8739GVUUhNUNuhl8//ysKeZrJ/v7z10Zb2PTQTIY1XZO2Xmfad+f7XgkXxuUrVB6cjPVXef78JyMjA8PFuwyX7gAZj97+T2e9o3d4BWNp84K1NzubTjAB3fH0+fv6N3qP/ir9bW6ozNQCijB8/8zw/TuQ7r4/ndvN5mZgkpPXiis3Pv34+ZPh5t23//79Rwehof/9/NDEgMrOXHvJcrllgpoRN8PFOwy/fzP8+gUlgZI/f/5xcPj/69e/37//AUX+/mXRkN555gsOG2xt/5hZQMwF4r9///75++f3nz8nr75gSms82jfvQnT6zqvXPjC8e/srJQHo9P9fvwNtAHmG4f8zZ6dDc3bIyM2LTNlsbtfM9OPHH3FhtqUz3eXX9H+cOy9ZMB2o6t/Pn0DHMPz/b+2wXGTvPlPGFxdcD+mZyjP8+8MUE6sa7a/xo6Pykn1s4zdzIZ6///8zMGpKM2pKAB0jqy4UE7/msKat6Jw5mafrsxNtWZ6/fjvNLW29qv25pQd///n+5+/fxDDVbcc//P/zx/36m5Ub9zL8+7t66yEROcHK7q5bldMBAgwADcRBCuVLfoEAAAAASUVORK5CYII=\') 0 0}.ui-editor-selectmenu-menu .ui-icon.ui-editor-i18n-zh_CN,.ui-editor-wrapper .ui-icon.ui-editor-i18n-zh_CN{background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFqSURBVHjaYrzOwPAPjJgYQEDAleHVbhADIvgHLPgHiQ0QQCxAlkR9NW8sw+cV/1gV/7Gb/hV4+vfzhj8Mv/78//Pn/+/f/8AkhH1t0yaAAAJp4I37zyz2lDfu79uqv/++/WYz+cuq/vvLxt8gdb+A5K9/v34B2SyyskBLAAII5JAva/7/+/z367a/f3/8ZuT9+//Pr78vQUrB6n4CSSj6/RuoASCAWEDO/fD3ddEfhv9/OE3/sKj8/n7k9/fDQNUIs/+DVf8HawAIIJCT/v38C3Hr95N/GDh/f94AVvT7N8RUBpjxQAVADQABBNLw/y/Ifwy/f/399ufTOpDBEPf8g5sN0QBEDAwAAQTWABEChgOSA9BVA00E2wAQQCANQBbEif/AzoCqgLkbbBYwWP/+//sXqBYggFhAkfL7D7OkJFCOCSj65zfUeFjwg8z++/ffX5AGoGKAAGI8jhSRyIw/SJH9D4aAYQoQYAA6rnMw1jU2vQAAAABJRU5ErkJggg==\') 0 0}.ui-editor-image-resize-in-progress{outline:1px dashed rgba(0,0,0,0.5)}.ui-editor-length-button .ui-icon-dashboard{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAhFJREFUeNrEk7tv01AUxr/4kcRO7Fh1HghFgSAeYglDlIfUbGEBhaWoUxFiQWJGMDDyhzB2ZmANYmAoIvQPaIHIkVJjKyWkcdzYSR1zbhSGQhFDB47007333PN9V/cVCcMQ5wkO54wIxe+5q8Rt4gaRW+VsYo9oE1/+ZpAktjKZzL1arXatWCzmFEVhOYzH40m327U7nc7nwWDwhlLbxITN8SsDVvisXq9vtVqtuqZp2XK5HDcMg5vNZlylUon7vq+XSqXLi8WiYJqmTvWfiNkvg8e06gMqLDmOI5AIvV4P8/l8CeuzHMHn8/kcmeiWZQWk6zCD67quP280GuXNdlv4qKrwTk6WwpXoFNVqNTKdTtf6/X7C87wPzOAhrX4nCIK195KEp4aBtxyHKRm4roujozGdwQSO49LYx/7+VzIPeVEUOcsyh+wab9Ge0+SKGW3nhSzj5WiEoWlhMvHolKOIRmVIkgpZVhGPKxAEGdlsIc20zOASz/NSs9lkl4IwJuOJH+CVksDi2APPx0iYIgNlCTNYXy8hmdQkpmUGCfag2u134DgJipKGdqGAR6NjbKdVOAMbQRAiRsaCEKMaHru7XdYutRw95R+Hh0NXVTNIpXQy0KDrOVy8chOb34Z4XcjCMvZoO86p12bbBy7Tsv5dYoc4OAtFFM3BxkZ4xtzOSvvPuE98X7V//oX//ht/CjAAagzmsnB4V5cAAAAASUVORK5CYII=\') 0 0}.ui-editor-length-button:hover .ui-icon-dashboard{filter:alpha(opacity=100);opacity:1}.ui-editor-link-button .ui-icon-link{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAilBMVEX///8EBARUVFRUVFQEBARTU1MqKiwfHx5MTEzGxsZNTU1FRUWAgH8SEhJnZ2fd3d06Ojrg4ODIyMgODg4DAwMSEhLCwsGcnKXExNEvLy+ysrh+foMQEBBBQUEEBATJydeenqcDAwPT09OIiIjj4+OZmZl3d3fU1OPCwsHW1tXq6urr6+va2trGxsaRnmwcAAAAI3RSTlMAimdfRTOWgDXbAGXFj339cv3dAHtC3OP8bt+2cnuA/OMA+Akct2IAAABoSURBVHhetcVZFoIgGAbQ7wcVwyEKtBi01OZh/9urw2EJdV8ufkHmnDHG85RE2a7Wp812GGJtiaqvG1rOXws1dV9BzWKi2/3xfL1pErOCdT6YS2SCdxZdsdtfD8ci1UFnIxGNWUrjHz6V6QhqNdQf6wAAAABJRU5ErkJggg==\') 0 0}.ui-editor-link-button:hover .ui-icon-link{filter:alpha(opacity=100);opacity:1}.ui-editor-unlink-button .ui-icon-unlink{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAA2FBMVEX///8WFhYvLy9LS0sEBAQODg4EBARNTU0DAwNVVVVUVFQtLS1nZ2cfHx46OjoSEhLGxsZTU1OAgH/T09NUVFQEBAQ6OjpMTEwvLy+4uMDCwsEQEBCvr7sSEhIEBAR+foMqKixFRUUEBARDQ0MBAQEBAQG5ucQiIiICAgIODg7Z2dlAQEBMTEwsLCxGRkYAAABPT0/e3t4mJiYqKiopKSlUVFQiIiJJSUkjIyNFRUU5OTkBAQEoKCi/v8zCws+qgFWFZkY7MSbc3Nzj4+Pm5ubOztzU1OTQ0N6IE/7FAAAAQ3RSTlMAAAAAigAAAAAAZwB9gACP2zPF+F9ocjVu39xy40KAtpZlRQBrUPx9AIb8AE8AAAAA/AAAAAAAAAAAAAAA/PwAAAD8PWHlxQAAALtJREFUeF5dzsVWxEAQheHqpGPEPeMWGXfcmQHe/42oC+ewmH95F1UfGWFyhZLQUBHlTvBxOp92gZP/DaN25Esp/ag9ukeUxa5p6qbpxpmHqGgNOtWm6gxahaIokwX1ht16ps3q7rAn9utrg7RxX6Z6KvtjbWJZGHTuuLLtw8P2f/CAWd4uGYNBqCpj5s1NM2cMPd3xc2D4EDDkIWCmj1NgSEHAlGUJDAnEmOfPr+8XxtDr27sQwHDA0GU/2RcVwEV78WkAAAAASUVORK5CYII=\') 0 0}.ui-editor-unlink-button:hover .ui-icon-unlink{filter:alpha(opacity=100);opacity:1}.ui-editor-link-panel .ui-editor-link-menu{height:100%;width:200px;float:left;border-right:1px dashed #d4d4d4;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical}.ui-editor-link-panel .ui-editor-link-menu p{font-weight:bold;margin:12px 0 8px}.ui-editor-link-panel .ui-editor-link-menu fieldset{-webkit-box-flex:2;-moz-box-flex:2;-ms-box-flex:2;box-flex:2;margin:2px 4px;padding:7px 4px;font-size:13px}.ui-editor-link-panel .ui-editor-link-menu fieldset label{display:block;margin-bottom:10px}.ui-editor-link-panel .ui-editor-link-menu fieldset label span{display:inline-block;width:150px;font-size:13px;vertical-align:top}.ui-editor-link-panel .ui-editor-link-menu fieldset,.ui-editor-link-panel .ui-editor-link-wrap fieldset{border:0}.ui-editor-link-panel .ui-editor-link-wrap{margin-left:200px;padding-left:20px;min-height:200px;position:relative}.ui-editor-link-panel .ui-editor-link-wrap.ui-editor-link-loading:after{content:\'Loading...\';position:absolute;top:60px;left:200px;padding-left:20px;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAOXRFWHRTb2Z0d2FyZQBBbmltYXRlZCBQTkcgQ3JlYXRvciB2MS42LjIgKHd3dy5waHBjbGFzc2VzLm9yZyl0zchKAAAAOnRFWHRUZWNobmljYWwgaW5mb3JtYXRpb25zADUuMi4xNzsgYnVuZGxlZCAoMi4wLjM0IGNvbXBhdGlibGUpCBSqhQAAAAhhY1RMAAAACAAAAAC5PYvRAAAAGmZjVEwAAAAAAAAAEAAAABAAAAAAAAAAAAA8A+gAAIIkGDIAAACsSURBVDiNtZLBCcMwDEUfJgOUjhAyQsmp9FA8TgfISj6F4gl66jSdIIf00G9wnLjYKf3w0Qch6Us2fMdVLMYx0haYRZsrMJEegZdiDj3gFFeT54jBiU2mO+XdVvdRyV0OYidVMEAH3AEPHGoboMKwuy+seYqLV9iNTpM90P7S6AQMitXogYnPHSbyz2SAC9HqQVigkW7If90z8FAsctCyvMvKQdpkSOzfxP/hDd++JCi8XmbFAAAAGmZjVEwAAAABAAAAEAAAABAAAAAAAAAAAAA8A+gAABlX8uYAAAC3ZmRBVAAAAAI4jaWQsQ3CQBAEB4cECFGCI1fiAlyFKwARWgSIeqjCNTh0gIjIkBw9gffFSfz74VlpdX/W3Xr3YBmlmIUSmMSoSGHee+CmGsMGaFU/cAecqnVh/95qpg0J/O0gCytgDRzUX4DnryIn5lwO6L7c6fxskRhMwkc4qj+TEcFjC9SqWcsj8x3GhMgu9LHmfUinvgKuYmWWp5BIyEFvBPuUAy9ibzAYgWEhUhQN8BCb2NALKY4q8wCrG7AAAAAaZmNUTAAAAAMAAAAQAAAAEAAAAAAAAAAAADwD6AAA9MEhDwAAAKhmZEFUAAAABDiNY2CgMTgNxTgBExLbh4GB4SCUxgeMcEkcZmBg+A+lcQETqBoTbJI+UM1ku4AiEATFZIEQBoi//kPZxIAAKEaJBYpACAm24wUSBORVGBgYUqA0BtjKAAmHrXg0f4aq+YxuiAQDIiD/Q/k8DAwMdVDMw8DAkIamJo2QCyYjKZ4MtfErlP8VlzeQw2AlkgErkbyBMwzQgRoDA8N+KMapAQDdvyovpG6D8gAAABpmY1RMAAAABQAAABAAAAAQAAAAAAAAAAAAPAPoAAAZC1N1AAAAsWZkQVQAAAAGOI21kkEOgjAURF9YGBbGtYcwLowrwxk8BMcg3XACD9djGJaujKmLTkMRCiXEl0ympYX8+Xz4M62UpIjWR8DI59inDgzg5CkOwEs+YnMFmzhJOdwAK1UAZ+ANfLRewuJ75QAb/kKRvp/HmggVPxHWsAMu8hEN8JRPUdLnt9oP6HTYRc/uEsCVvnlO+wFGFYRJrKPLdU4FU5HCB0KsEt+DxZfBj+xDSo7vF9AbJ9PxYV81AAAAGmZjVEwAAAAHAAAAEAAAABAAAAAAAAAAAAA8A+gAAPSdgJwAAADDZmRBVAAAAAg4jaWSTQrCMBCFP6NIT5AjCF6gJ6jbUnoCL1biDTyF5AAueoZu3LkSrAtHTEJiIn3wmCTz92YILMQ64++BPTDKXQMH4AbcAZQTvAEasTFo4AqcxeowoAFmsSk1s8M+DChRMEnyFFNQAg10sWSFv49cESPUn+RRWFLE8N2DKe2axaIR/sU25eiAi9gUBt6zDzGnFad13nZCgAr/I1UxBdZRUAMPYV2iIETrdGudd28Hqx8FFHCU8wl4xoJeZnUrSRiyCSsAAAAaZmNUTAAAAAkAAAAQAAAAEAAAAAAAAAAAADwD6AAAGe6xwAAAALtmZEFUAAAACjiNpZJBCsIwEEWfpUsPULoSl55Beh4J7nqCHkDceR3pIaSr4Ak8Qq2L/khomlrig+FPhszwJy3EqYCHolq4F6UDBkWnWgbspN+CT7EwMAPuwFM67aUAem/IdIW952jQOeCXg1bN7ZyDNQRvsEkYkgNG+S1XcpHWKwacgatzlLLH2z/8vUJCf5wSaKQxToCVBjSM37jxaluFw+qOXeOgBF4KVzNqNkH3DAfGX7tXnsRREeUD4f8lQGjw+ycAAAAaZmNUTAAAAAsAAAAQAAAAEAAAAAAAAAAAADwD6AAA9HhiKQAAAJ9mZEFUAAAADDiNtZDLCcMwEEQfIUcXoDpCKgg6qIRUEtKB6wg6poDgalyFTj7YBw+2QyRlCc6DYVm0n9FCGQc8JFepWzgBN0WACIxS/NZ8BgYVD8pzA1ogKb5x3xSPyp0a4+YLSe/J4iBH0QF83uCvXKSFq2TBs97KH/Y1ZsdL+3IEgmJt86u0PTAfJlQGdKrprA6ekslBjl76mUYqMgFhpStJaQVr0gAAABpmY1RMAAAADQAAABAAAAAQAAAAAAAAAAAAPAPoAAAZshBTAAAAu2ZkQVQAAAAOOI21kCEOwkAQRR8rKkkFCtmjkJ4ARTgBArViT4LjLJwBgUZUr8NBQlrR38Am3XYEvOTnT7PzuzO7IE8BHFWfgNdELwBLYCMH8EAr+VzIyUvgBlzkZaZ/D1zlCfXXba2+C93sVaNwK08ogUaHzcQEu9wE0O9e83kDEw7YAhG4K/ww5CoJFB52j8bwU6rcTLOJYYWo2kKywk9Zz5yvgCAfDb9nfhLoHztYJzhIpgnGOEv/owMnkSfarUXVlAAAAABJRU5ErkJggg==\') no-repeat left center}.ui-editor-link-panel .ui-editor-link-wrap h2{margin:10px 0 0}.ui-editor-link-panel .ui-editor-link-wrap fieldset{margin:2px 4px;padding:7px 4px;font-size:13px}.ui-editor-link-panel .ui-editor-link-wrap fieldset input[type=text]{width:400px}.ui-editor-link-panel .ui-editor-link-wrap fieldset.ui-editor-external-href{width:365px}.ui-editor-link-panel .ui-editor-link-wrap fieldset.ui-editor-link-email label{display:inline-block;width:115px}.ui-editor-link-panel .ui-editor-link-wrap fieldset.ui-editor-link-email input{width:340px}.ui-editor-link-panel .ui-editor-link-wrap ol li{list-style:decimal inside}.ui-editor-link-panel .ui-editor-link-wrap .ui-editor-link-panel .ui-editor-link-wrap fieldset #ui-editor-link-external-target{vertical-align:middle}.ui-editor-link-error-message div{padding:0 .7em}.ui-editor-link-error-message div p{margin:0}.ui-editor-link-error-message div p .ui-icon{margin-top:2px;float:left;margin-right:2px}.ui-editor-list-unordered-button .ui-icon-list-unordered{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMlJREFUeNpi/P//PwNFAGQAIyNjGBCvgdIMxGKQXhaoORFlZWWBXV1dTED2KqjYGiBmRMJMaOwrQFwOc0EEEG+A0iS5gBFEMDExkeX9f//+MTAxUAhgBsQC8U4oTRKABWJ8Rkae84wZk5iB7MVQsW1IAYYLW8MCMRGID0Bp+gYiC46EhTPR4QrEdCA+A6VJT8pAcDMsLB3EuAniQP14BIiPAfEJID4FxGehqe8OED8B4vVgvVADioH4GZTGGWhYvUtpbqQ4JQIEGABjeFYu055ToAAAAABJRU5ErkJggg==\') 0 0}.ui-editor-list-unordered-button:hover .ui-icon-list-unordered{filter:alpha(opacity=100);opacity:1}.ui-editor-list-ordered-button .ui-icon-list-ordered{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAM1JREFUeNpi/P//PwNFAGQAIyNjIxCvAWJBIGYgFoP0skDNqQfidUDMiGT2GigfhpnQ2FeAuJwFSQMTmuNCiPEBTFMblF1CahAwgvzBxMREVvj9+/cP7oIuIN4Bpcl2gRMQJwFxDFRuG1KAYcVAF1jDojEBiGcAsQSp0QjzgiEQawLxSiibNoGInmqRE9J0IJaEYnNSXAAzYC4QNwJxIJLcEbRAYwZidiDmgOLTYPVIzgJpPgD2F45Aw+olqAFrgfg5EBeTagAjpdkZIMAAg/ZGwsH5qkAAAAAASUVORK5CYII=\') 0 0}.ui-editor-list-ordered-button:hover .ui-icon-list-ordered{filter:alpha(opacity=100);opacity:1}.ui-editor-paste-panel-tabs{height:100%;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-paste .ui-tabs a{outline:0}.ui-editor-paste-panel-tabs{position:relative;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical}.ui-editor-paste-panel-tabs .ui-editor-paste-synchronize-text{height:25px;line-height:25px;position:absolute;right:0;top:0;width:100px}.ui-editor-paste-panel-tabs .ui-editor-paste-synchronize-text input{margin:0;padding:0;vertical-align:text-bottom}.ui-editor-paste-panel-tabs>div{overflow:auto;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ui-editor-paste-panel-tabs>div>textarea.ui-editor-paste-area{-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1;display:-webkit-box;display:-moz-box;display:-ms-box;display:box}.ui-editor-raptorize-button .ui-icon-raptorize{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABDlBMVEX///9NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU0Y/iVtAAAAWXRSTlMA/v1mTvW+WQFF+nGpsyPlDhXL1GvZHduk48LslL2a7tadwee772kEfqD8+OGCXWJ2+bQ9pt7xCme4iQU4iNH0mCEPEd82Ocxj4De2HoMaq3MHZJsDeGwCG8H1fioAAAC1SURBVHheNchFlsMwEADRlmRkSDKmMDMMMjMz9P0vkifLrl194F3NW0qtugV5Wt1FHpnloGKRmr3TK96YDjiMxFGCONngcJ1De4GNDJqhvd2VkbzsY+eDw2efMTYsjRFxd4+DZx6ajC1xhXTTB560EyfWASJW2FEG3vGJElZOz4xzH6QLKLqMgpvbu3sxD+4jPBFJe05fBby9ly0S6ADxl4BviGjp5xd0Of0TUqaUEPs/kR1YA96IIUDtx93SAAAAAElFTkSuQmCC\') 0 0}.ui-editor-raptorize-button:hover .ui-icon-raptorize{filter:alpha(opacity=100);opacity:1}.ui-editor-save-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAVNJREFUeNqkU71ugzAQPowtwdAdqRLK3odg6161a+cukZonoGrElgWWDqhb16oP0AfoytStirows0QRMj/unQsohAQi5aTD5vju4/Pd2VBKwTnG6cEYe8bl6s73P09Jel8ur3H5ruv6CUiBYRgfQRAosnrCyQhLOZTLG1ImpYQSA1VVjf7dNE0gLOV0R6AXlAMSk4uiGCUQ6ITdJzDpz0SQTxAoxlqVZo+gLEuQyDxFwIQAwg4IiPV3vYbL2WyUgDBHFbxG0Um9t237sIIkSeDYYGHbur3neQMCTgqoRWEYDToh8NyLxSO4rgtpmrY14D0CUsA5h80mh/n8QQdXq7CTTN/ILMtqa9AjEDjOGrTdSnAcRwdpr1unzB5BMweiGwY8tx/H8U+WZbmUSoPJlfr3NrZLgDkXujbNXaD9DfoLAt8OFRHPfb8X+sLcW+Pc6/wnwABHMdnKf4KT4gAAAABJRU5ErkJggg==\') 0 0}.ui-editor-save-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-cancel-button .ui-icon{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAtFBMVEX///+nAABhAACnAACjAACCAACgAACHAACjAAByAAB1AAByAACDAACnAACCAACHAACgAACNAACbAACXAACMAACSAABfAACYAACRAACjAACbAAChAACqAACNAACcAACHAACqAADEERGsERHQERG+NjaiERHUTEzYERG4ERGlFBSfFRX/d3f6cnK0JSWoHh7qYmLkXFyvFRXmXl7vZ2fNRUX4cHDXT0/+dnbbU1O3Li7GPT26MTG2f8oMAAAAIXRSTlMASEjMzADMzAAASMxIAMwAAMzMzEjMzEhISABIzABISEg/DPocAAAAj0lEQVR4Xo3PVw6DMBBF0RgXTO+hBYhtILX3sv99RRpvgPcxVzp/M5syb7lYepxDABDeYcQ5wg+MAMhr3JOyJKfxTABqduuvjD37O6sBwjZ+f76/7TFuQw1VnhyGYZPklYagKbKLlDIrmkBDGq1hUaqhM4UQJpwOwFdK+a4LAbCdlWNTCgGwjLlhUQqZ8uofSk8NKY1Fm8EAAAAASUVORK5CYII=\') 0 0}.ui-editor-cancel-button:hover .ui-icon{filter:alpha(opacity=100);opacity:1}.ui-editor-wrapper .ui-editor-selectmenu .ui-editor-selectmenu-button .ui-icon{text-align:left}.ui-editor-wrapper .ui-editor-selectmenu .ui-editor-selectmenu-button .ui-editor-selectmenu-text{font-size:13px;line-height:22px}.ui-editor-selectmenu-menu li a,.ui-editor-selectmenu-status{line-height:12px}.ui-editor-wrapper [data-title]:after{opacity:0;content:attr(data-title);display:block;position:absolute;top:100%;font-size:12px;font-weight:normal;color:white;padding:11px 16px 7px;white-space:nowrap;text-shadow:none;overflow:visible;z-index:1000;-webkit-pointer-events:none;-moz-pointer-events:none;pointer-events:none;-webkit-border-radius:9px 9px 2px 2px;-moz-border-radius:9px 9px 2px 2px;-ms-border-radius:9px 9px 2px 2px;-o-border-radius:9px 9px 2px 2px;border-radius:9px 9px 2px 2px;-webkit-transition:opacity .23s;-webkit-transition-delay:0s;-moz-transition:opacity .23s 0s;-o-transition:opacity .23s 0s;transition:opacity .23s 0s;background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSI1cHgiIHN0b3AtY29sb3I9InJnYmEoNDAsIDQwLCA0MCwgMCkiLz48c3RvcCBvZmZzZXQ9IjZweCIgc3RvcC1jb2xvcj0iIzI4MjgyOCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzI4MjgyOCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\'),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(5px,rgba(40,40,40,0)),color-stop(6px,#282828),color-stop(100%,#282828)),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-webkit-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-moz-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:-o-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0;background:linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 10px 0}.ui-editor-wrapper [data-title]:hover:after{opacity:1}.ui-editor-wrapper .ui-editor-select-element{position:relative}.ui-editor-wrapper .ui-editor-select-element:after{background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSI1cHgiIHN0b3AtY29sb3I9InJnYmEoNDAsIDQwLCA0MCwgMCkiLz48c3RvcCBvZmZzZXQ9IjZweCIgc3RvcC1jb2xvcj0iIzI4MjgyOCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzI4MjgyOCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\'),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(5px,rgba(40,40,40,0)),color-stop(6px,#282828),color-stop(100%,#282828)),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-webkit-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-moz-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:-o-linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0;background:linear-gradient(rgba(40,40,40,0) 5px,#282828 6px,#282828),url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGAgMAAACKgJcSAAAADFBMVEUAAAAoKCgoKCgoKCj7f2xyAAAAA3RSTlMATLP00ibhAAAAJklEQVR4XgXAMRUAEBQF0GtSwK6KYrKpIIz5P4eBTcvSc808J/UBPj4IdoCAGiAAAAAASUVORK5CYII=\') no-repeat 3px 0}.ui-editor-unsaved-edit-warning{position:fixed;bottom:0;right:0;height:30px;line-height:30px;border-radius:5px 0 0 0;border:1px solid #d4d4d4;padding-right:7px;background:url(\'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmMiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2VkZWNiZCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==\');background:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#fffff2),color-stop(100%,#edecbd));background:-webkit-linear-gradient(top,#fffff2,#edecbd);background:-moz-linear-gradient(top,#fffff2,#edecbd);background:-o-linear-gradient(top,#fffff2,#edecbd);background:linear-gradient(top,#fffff2,#edecbd);-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s;filter:alpha(opacity=0);opacity:0}.ui-editor-unsaved-edit-warning .ui-icon{display:inline-block;float:left;margin:8px 5px 0 5px}.ui-editor-unsaved-edit-warning-visible{filter:alpha(opacity=100);opacity:1}.ui-editor-unsaved-edit-warning-dirty{outline:1px dotted #aaa;background-image:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAQMAAAC2MCouAAAABlBMVEUAAACfn5/FQV4CAAAAAnRSTlMAG/z2BNQAAABPSURBVHhexc2xEYAgEAXRdQwILYFSKA1LsxRKIDRwOG8LMDb9++aO8tAvjps4qXMLaGNf5JglxyyEhWVBXpAfyCvyhrwjD74OySfy8dffFyMcWadc9txXAAAAAElFTkSuQmCC\')!important}.ui-editor-view-source-button .ui-icon-view-source{filter:alpha(opacity=85);opacity:.85;background:url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKtJREFUeNpi/P//PwMlgImBQkCxAQwgLzAyMqLjMCCehsSfBhVDUQf2PhYDIoB4JhCLIYmJQcUiCBkQBcRzgFgci6vEoXJRuAyIAeIFODQjG7IAqhbFAAMg3gOlGQhguFp0FyQC8UoglgTx0QFUjSRUTSKuMEgG4nUghVgMkITKJROKhXQg3gbUI42kXxokBpUjGI0gDYVAfBzJABC7EFs6YBz6eYFiAwACDAADJlDtLE22CAAAAABJRU5ErkJggg==\') 0 0}.ui-editor-view-source-button:hover .ui-icon-view-source{filter:alpha(opacity=100);opacity:1}.ui-editor-ui-view-source .ui-editor-ui-view-source-dialog{overflow:auto}.ui-editor-ui-view-source-plain-text{height:100%;width:100%;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical}.ui-editor-ui-view-source-dialog textarea{white-space:pre-line;width:100%;height:100%;display:-webkit-box;display:-moz-box;display:-ms-box;display:box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;-webkit-box-flex:1;-moz-box-flex:1;-ms-box-flex:1;box-flex:1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}</style>').appendTo('head');