// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://@sbaseurl@/jsapi/jsapi/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.

//>>built
require({cache:{"dijit/Editor":function(){define("require dojo/_base/array dojo/_base/declare dojo/Deferred dojo/i18n dojo/dom-attr dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/keys dojo/_base/lang dojo/sniff dojo/string dojo/topic ./_Container ./Toolbar ./ToolbarSeparator ./layout/_LayoutWidget ./form/ToggleButton ./_editor/_Plugin ./_editor/plugins/EnterKeyHandling ./_editor/html ./_editor/range ./_editor/RichText ./main dojo/i18n!./_editor/nls/commands".split(" "),function(v,x,H,F,E,d,
c,f,e,h,q,l,t,y,B,b,k,D,O,n,u,z,C,M,L){function Q(m){return new n({command:m.name})}function p(m){return new n({buttonClass:O,command:m.name})}H=H("dijit.Editor",M,{plugins:null,extraPlugins:null,constructor:function(){q.isArray(this.plugins)||(this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull",u]);this._plugins=[];this._editInterval=
1E3*this.editActionInterval;if(l("ie")||l("trident")||l("edge"))this.events.push("onBeforeDeactivate"),this.events.push("onBeforeActivate")},postMixInProperties:function(){this.setValueDeferred=new F;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);q.isArray(this.extraPlugins)&&(this.plugins=this.plugins.concat(this.extraPlugins));this.commands=E.getLocalization("dijit._editor","commands",this.lang);
l("webkit")&&e.set(this.domNode,"KhtmlUserSelect","none")},startup:function(){this.inherited(arguments);this.toolbar||(this.toolbar=new b({ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,"aria-label":this.id}),this.header.appendChild(this.toolbar.domNode));x.forEach(this.plugins,this.addPlugin,this);this.setValueDeferred.resolve(!0);c.add(this.iframe.parentNode,"dijitEditorIFrameContainer");c.add(this.iframe,"dijitEditorIFrame");d.set(this.iframe,"allowTransparency",!0);this.toolbar.startup();
this.onNormalizedDisplayChanged()},destroy:function(){x.forEach(this._plugins,function(m){m&&m.destroy&&m.destroy()});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments)},addPlugin:function(m,G){var K=q.isString(m)?{name:m}:q.isFunction(m)?{ctor:m}:m;if(!K.setEditor){var a={args:K,plugin:null,editor:this};K.name&&(n.registry[K.name]?a.plugin=n.registry[K.name](K):y.publish(L._scopeName+".Editor.getPlugin",a));if(!a.plugin)try{var g=K.ctor||q.getObject(K.name)||
v(K.name);g&&(a.plugin=new g(K))}catch(r){throw Error(this.id+": cannot find plugin ["+K.name+"]");}if(!a.plugin)throw Error(this.id+": cannot find plugin ["+K.name+"]");m=a.plugin}1<arguments.length?this._plugins[G]=m:this._plugins.push(m);m.setEditor(this);q.isFunction(m.setToolbar)&&m.setToolbar(this.toolbar)},resize:function(m){m&&D.prototype.resize.apply(this,arguments)},layout:function(){var m=this._contentBox.h-(this.getHeaderHeight()+this.getFooterHeight()+f.getPadBorderExtents(this.iframe.parentNode).h+
f.getMarginExtents(this.iframe.parentNode).h);this.editingArea.style.height=m+"px";this.iframe&&(this.iframe.style.height="100%");this._layoutMode=!0},_onIEMouseDown:function(m){var G,K=this.document.body,a=K.clientWidth,g=K.clientHeight,r=K.clientLeft,A=K.offsetWidth,w=K.offsetHeight,I=K.offsetLeft;/^rtl$/i.test(K.dir||"")?a<A&&m.x>a&&m.x<A&&(G=!0):m.x<r&&m.x>I&&(G=!0);G||g<w&&m.y>g&&m.y<w&&(G=!0);G||(delete this._cursorToStart,delete this._savedSelection,"BODY"==m.target.tagName&&this.defer("placeCursorAtEnd"),
this.inherited(arguments))},onBeforeActivate:function(){this._restoreSelection()},onBeforeDeactivate:function(m){this.customUndo&&this.endEditing(!0);"BODY"!=m.target.tagName&&this._saveSelection()},customUndo:!0,editActionInterval:3,beginEditing:function(m){this._inEditing||(this._inEditing=!0,this._beginEditing(m));0<this.editActionInterval&&(this._editTimer&&this._editTimer.remove(),this._editTimer=this.defer("endEditing",this._editInterval))},_steps:[],_undoedSteps:[],execCommand:function(m){if(!this.customUndo||
"undo"!=m&&"redo"!=m){this.customUndo&&(this.endEditing(),this._beginEditing());var G=this.inherited(arguments);this.customUndo&&this._endEditing();return G}return this[m]()},_pasteImpl:function(){return this._clipboardCommand("paste")},_cutImpl:function(){return this._clipboardCommand("cut")},_copyImpl:function(){return this._clipboardCommand("copy")},_clipboardCommand:function(m){try{var G=this.document.execCommand(m,!1,null);if(l("webkit")&&!G)throw{};}catch(K){G=t.substitute,alert(G(this.commands.systemShortcut,
[this.commands[m],G(this.commands[l("mac")?"appleKey":"ctrlKey"],[{cut:"X",copy:"C",paste:"V"}[m]])])),G=!1}return G},queryCommandEnabled:function(m){return!this.customUndo||"undo"!=m&&"redo"!=m?this.inherited(arguments):"undo"==m?1<this._steps.length:0<this._undoedSteps.length},_moveToBookmark:function(m){var G=m.mark,K=m.mark;m=m.isCollapsed;var a;if(K)if(9>l("ie")||9===l("ie")&&l("quirks"))if(q.isArray(K))G=[],x.forEach(K,function(A){G.push(C.getNode(A,this.editNode))},this),this.selection.moveToBookmark({mark:G,
isCollapsed:m});else{if(K.startContainer&&K.endContainer&&(a=C.getSelection(this.window))&&a.removeAllRanges){a.removeAllRanges();m=C.create(this.window);var g=C.getNode(K.startContainer,this.editNode);var r=C.getNode(K.endContainer,this.editNode);g&&r&&(m.setStart(g,K.startOffset),m.setEnd(r,K.endOffset),a.addRange(m))}}else(a=C.getSelection(this.window))&&a.removeAllRanges&&(a.removeAllRanges(),m=C.create(this.window),g=C.getNode(K.startContainer,this.editNode),r=C.getNode(K.endContainer,this.editNode),
g&&r&&(m.setStart(g,K.startOffset),m.setEnd(r,K.endOffset),a.addRange(m)))},_changeToStep:function(m,G){this.setValue(G.text);(m=G.bookmark)&&this._moveToBookmark(m)},undo:function(){var m=!1;if(!this._undoRedoActive){this._undoRedoActive=!0;this.endEditing(!0);var G=this._steps.pop();G&&0<this._steps.length&&(this.focus(),this._changeToStep(G,this._steps[this._steps.length-1]),this._undoedSteps.push(G),this.onDisplayChanged(),delete this._undoRedoActive,m=!0);delete this._undoRedoActive}return m},
redo:function(){var m=!1;if(!this._undoRedoActive){this._undoRedoActive=!0;this.endEditing(!0);var G=this._undoedSteps.pop();G&&0<this._steps.length&&(this.focus(),this._changeToStep(this._steps[this._steps.length-1],G),this._steps.push(G),this.onDisplayChanged(),m=!0);delete this._undoRedoActive}return m},endEditing:function(m){this._editTimer&&(this._editTimer=this._editTimer.remove());this._inEditing&&(this._endEditing(m),this._inEditing=!1)},_getBookmark:function(){var m=this.selection.getBookmark(),
G=[];if(m&&m.mark){var K=m.mark;if(9>l("ie")||9===l("ie")&&l("quirks")){var a=C.getSelection(this.window);if(q.isArray(K))x.forEach(m.mark,function(r){G.push(C.getIndex(r,this.editNode).o)},this),m.mark=G;else if(a){var g;a.rangeCount&&(g=a.getRangeAt(0));m.mark=g?g.cloneRange():this.selection.getBookmark()}}try{m.mark&&m.mark.startContainer&&(G=C.getIndex(m.mark.startContainer,this.editNode).o,m.mark={startContainer:G,startOffset:m.mark.startOffset,endContainer:m.mark.endContainer===m.mark.startContainer?
G:C.getIndex(m.mark.endContainer,this.editNode).o,endOffset:m.mark.endOffset})}catch(r){m.mark=null}}return m},_beginEditing:function(){0===this._steps.length&&this._steps.push({text:z.getChildrenHtml(this.editNode),bookmark:this._getBookmark()})},_endEditing:function(){var m=z.getChildrenHtml(this.editNode);this._undoedSteps=[];this._steps.push({text:m,bookmark:this._getBookmark()})},onKeyDown:function(m){l("ie")||this.iframe||m.keyCode!=h.TAB||this.tabIndent||this._saveSelection();if(this.customUndo){var G=
m.keyCode;if(m.ctrlKey&&!m.shiftKey&&!m.altKey){if(90==G||122==G){m.stopPropagation();m.preventDefault();this.undo();return}if(89==G||121==G){m.stopPropagation();m.preventDefault();this.redo();return}}this.inherited(arguments);switch(G){case h.ENTER:case h.BACKSPACE:case h.DELETE:this.beginEditing();break;case 88:case 86:if(m.ctrlKey&&!m.altKey&&!m.metaKey){this.endEditing();88==m.keyCode?this.beginEditing("cut"):this.beginEditing("paste");this.defer("endEditing",1);break}default:if(!m.ctrlKey&&!m.altKey&&
!m.metaKey&&(m.keyCode<h.F1||m.keyCode>h.F15)){this.beginEditing();break}case h.ALT:this.endEditing();break;case h.UP_ARROW:case h.DOWN_ARROW:case h.LEFT_ARROW:case h.RIGHT_ARROW:case h.HOME:case h.END:case h.PAGE_UP:case h.PAGE_DOWN:this.endEditing(!0);case h.CTRL:case h.SHIFT:case h.TAB:}}else this.inherited(arguments)},_onBlur:function(){this.inherited(arguments);this.endEditing(!0)},_saveSelection:function(){try{this._savedSelection=this._getBookmark()}catch(m){}},_restoreSelection:function(){this._savedSelection&&
(delete this._cursorToStart,this.selection.isCollapsed()&&this._moveToBookmark(this._savedSelection),delete this._savedSelection)},onClick:function(){this.endEditing(!0);this.inherited(arguments)},replaceValue:function(m){this.customUndo?this.isClosed?this.setValue(m):(this.beginEditing(),m||(m="\x26#160;"),this.setValue(m),this.endEditing()):this.inherited(arguments)},_setDisabledAttr:function(m){this.setValueDeferred.then(q.hitch(this,function(){!this.disabled&&m||!this._buttonEnabledPlugins&&m?
x.forEach(this._plugins,function(G){G.set("disabled",!0)}):this.disabled&&!m&&x.forEach(this._plugins,function(G){G.set("disabled",!1)})}));this.inherited(arguments)},_setStateClass:function(){try{this.inherited(arguments),this.document&&this.document.body&&(e.set(this.document.body,"color",e.get(this.iframe,"color")),e.set(this.document.body,"background-color",e.get(this.iframe,"background-color")))}catch(m){}}});q.mixin(n.registry,{undo:Q,redo:Q,cut:Q,copy:Q,paste:Q,insertOrderedList:Q,insertUnorderedList:Q,
indent:Q,outdent:Q,justifyCenter:Q,justifyFull:Q,justifyLeft:Q,justifyRight:Q,"delete":Q,selectAll:Q,removeFormat:Q,unlink:Q,insertHorizontalRule:Q,bold:p,italic:p,underline:p,strikethrough:p,subscript:p,superscript:p,"|":function(){return new n({setEditor:function(m){this.editor=m;this.button=new k({ownerDocument:m.ownerDocument})}})}});return H})},"dijit/Toolbar":function(){define("require dojo/_base/declare dojo/has dojo/keys dojo/ready ./_Widget ./_KeyNavContainer ./_TemplatedMixin".split(" "),
function(v,x,H,F,E,d,c,f){H("dijit-legacy-requires")&&E(0,function(){v(["dijit/ToolbarSeparator"])});return x("dijit.Toolbar",[d,f,c],{templateString:'\x3cdiv class\x3d"dijit" role\x3d"toolbar" tabIndex\x3d"${tabIndex}" data-dojo-attach-point\x3d"containerNode"\x3e\x3c/div\x3e',baseClass:"dijitToolbar",_onLeftArrow:function(){this.focusPrev()},_onRightArrow:function(){this.focusNext()}})})},"dijit/ToolbarSeparator":function(){define(["dojo/_base/declare","dojo/dom","./_Widget","./_TemplatedMixin"],
function(v,x,H,F){return v("dijit.ToolbarSeparator",[H,F],{templateString:'\x3cdiv class\x3d"dijitToolbarSeparator dijitInline" role\x3d"presentation"\x3e\x3c/div\x3e',buildRendering:function(){this.inherited(arguments);x.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}})})},"dijit/_editor/_Plugin":function(){define(["dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","../Destroyable","../form/Button"],function(v,x,H,F,E){x=x("dijit._editor._Plugin",F,{constructor:function(d){this.params=
d||{};H.mixin(this,this.params);this._attrPairNames={}},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,command:"",useDefaultCommand:!0,buttonClass:E,disabled:!1,getLabel:function(d){return this.editor.commands[d]},_initButton:function(){if(this.command.length){var d=this.getLabel(this.command),c=this.editor,f=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);this.button||(d=H.mixin({label:d,ownerDocument:c.ownerDocument,dir:c.dir,
lang:c.lang,showLabel:!1,iconClass:f,dropDown:this.dropDown,tabIndex:"-1"},this.params||{}),delete d.name,this.button=new this.buttonClass(d))}this.get("disabled")&&this.button&&this.button.set("disabled",this.get("disabled"))},destroy:function(){this.dropDown&&this.dropDown.destroyRecursive();this.inherited(arguments)},connect:function(d,c,f){this.own(v.connect(d,c,this,f))},updateState:function(){var d=this.editor,c=this.command;if(d&&d.isLoaded&&c.length){var f=this.get("disabled");if(this.button)try{var e=
d._implCommand(c);var h=!f&&(this[e]?this[e](c):d.queryCommandEnabled(c));this.enabled!==h&&(this.enabled=h,this.button.set("disabled",!h));if(h&&"boolean"==typeof this.button.checked){var q=d.queryCommandState(c);this.checked!==q&&(this.checked=q,this.button.set("checked",d.queryCommandState(c)))}}catch(l){console.log(l)}}},setEditor:function(d){this.editor=d;this._initButton();this.button&&this.useDefaultCommand&&(this.editor.queryCommandAvailable(this.command)?this.own(this.button.on("click",H.hitch(this.editor,
"execCommand",this.command,this.commandArg))):this.button.domNode.style.display="none");this.own(this.editor.on("NormalizedDisplayChanged",H.hitch(this,"updateState")))},setToolbar:function(d){this.button&&d.addChild(this.button)},set:function(d,c){if("object"===typeof d){for(var f in d)this.set(f,d[f]);return this}f=this._getAttrNames(d);if(this[f.s])var e=this[f.s].apply(this,Array.prototype.slice.call(arguments,1));else this._set(d,c);return e||this},get:function(d){var c=this._getAttrNames(d);
return this[c.g]?this[c.g]():this[d]},_setDisabledAttr:function(d){this._set("disabled",d);this.updateState()},_getAttrNames:function(d){var c=this._attrPairNames;if(c[d])return c[d];var f=d.charAt(0).toUpperCase()+d.substr(1);return c[d]={s:"_set"+f+"Attr",g:"_get"+f+"Attr"}},_set:function(d,c){this[d]=c}});x.registry={};return x})},"dijit/_editor/plugins/EnterKeyHandling":function(){define("dojo/_base/declare dojo/dom-construct dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/_base/window dojo/window ../_Plugin ../RichText ../range".split(" "),
function(v,x,H,F,E,d,c,f,e,h,q){return v("dijit._editor.plugins.EnterKeyHandling",e,{blockNodeForEnter:"BR",constructor:function(l){l&&("blockNodeForEnter"in l&&(l.blockNodeForEnter=l.blockNodeForEnter.toUpperCase()),F.mixin(this,l))},setEditor:function(l){if(this.editor!==l)if(this.editor=l,"BR"==this.blockNodeForEnter)this.editor.customUndo=!0,l.onLoadDeferred.then(F.hitch(this,function(y){this.own(E(l.document,"keydown",F.hitch(this,function(B){if(B.keyCode==H.ENTER){var b=F.mixin({},B);b.shiftKey=
!0;this.handleEnterKey(b)||(B.stopPropagation(),B.preventDefault())}})));9<=d("ie")&&10>=d("ie")&&this.own(E(l.document,"paste",F.hitch(this,function(B){setTimeout(F.hitch(this,function(){var b=this.editor.document.selection.createRange();b.move("character",-1);b.select();b.move("character",1);b.select()}),0)})));return y}));else if(this.blockNodeForEnter){var t=F.hitch(this,"handleEnterKey");l.addKeyHandler(13,0,0,t);l.addKeyHandler(13,0,1,t);this.own(this.editor.on("KeyPressed",F.hitch(this,"onKeyPressed")))}},
onKeyPressed:function(){if(this._checkListLater){if(this.editor.selection.isCollapsed()){var l=this.editor.selection.getAncestorElement("LI");if(l){d("mozilla")&&"LI"==l.parentNode.parentNode.nodeName&&(l=l.parentNode.parentNode);var t=l.firstChild;!t||1!=t.nodeType||"UL"!=t.nodeName&&"OL"!=t.nodeName||(l.insertBefore(t.ownerDocument.createTextNode("\u00a0"),t),t=q.create(this.editor.window),t.setStart(l.firstChild,0),l=q.getSelection(this.editor.window,!0),l.removeAllRanges(),l.addRange(t))}else h.prototype.execCommand.call(this.editor,
"formatblock",this.blockNodeForEnter),(l=this.editor.selection.getAncestorElement(this.blockNodeForEnter))?(l.innerHTML=this.bogusHtmlContent,9>=d("ie")&&(l=this.editor.document.selection.createRange(),l.move("character",-1),l.select())):console.error("onKeyPressed: Cannot find the new block node")}this._checkListLater=!1}this._pressedEnterInBlock&&(this._pressedEnterInBlock.previousSibling&&this.removeTrailingBr(this._pressedEnterInBlock.previousSibling),delete this._pressedEnterInBlock)},bogusHtmlContent:"\x26#160;",
blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(l){var t,y=this.editor.document,B;if(l.shiftKey){l=this.editor.selection.getParentElement();if(t=q.getAncestor(l,this.blockNodes)){if("LI"==t.tagName)return!0;l=q.getSelection(this.editor.window);var b=l.getRangeAt(0);b.collapsed||(b.deleteContents(),l=q.getSelection(this.editor.window),b=l.getRangeAt(0));if(q.atBeginningOfContainer(t,b.startContainer,b.startOffset)){var k=y.createElement("br");b=q.create(this.editor.window);t.insertBefore(k,
t.firstChild);b.setStartAfter(k);l.removeAllRanges();l.addRange(b)}else if(q.atEndOfContainer(t,b.startContainer,b.startOffset))b=q.create(this.editor.window),k=y.createElement("br"),t.appendChild(k),t.appendChild(y.createTextNode("\u00a0")),b.setStart(t.lastChild,0),l.removeAllRanges(),l.addRange(b);else{if((B=b.startContainer)&&3==B.nodeType){var D=B.nodeValue;var O=y.createTextNode(D.substring(0,b.startOffset));var n=y.createTextNode(D.substring(b.startOffset));t=y.createElement("br");""==n.nodeValue&&
d("webkit")&&(n=y.createTextNode("\u00a0"));x.place(O,B,"after");x.place(t,O,"after");x.place(n,t,"after");x.destroy(B);b=q.create(this.editor.window);b.setStart(n,0);l.removeAllRanges();l.addRange(b);return!1}return!0}}else l=q.getSelection(this.editor.window),l.rangeCount?(b=l.getRangeAt(0))&&b.startContainer&&(b.collapsed||(b.deleteContents(),l=q.getSelection(this.editor.window),b=l.getRangeAt(0)),(B=b.startContainer)&&3==B.nodeType?(t=b.startOffset,B.length<t&&(n=this._adjustNodeAndOffset(B,t),
B=n.node,t=n.offset),D=B.nodeValue,O=y.createTextNode(D.substring(0,t)),n=y.createTextNode(D.substring(t)),t=y.createElement("br"),n.length||(n=y.createTextNode("\u00a0")),O.length?x.place(O,B,"after"):O=B,x.place(t,O,"after"),x.place(n,t,"after"),x.destroy(B)):(0<=b.startOffset&&(k=B.childNodes[b.startOffset]),t=y.createElement("br"),n=y.createTextNode("\u00a0"),k?(x.place(t,k,"before"),x.place(n,t,"after")):(B.appendChild(t),B.appendChild(n))),b=q.create(this.editor.window),b.setStart(n,0),b.setEnd(n,
n.length),l.removeAllRanges(),l.addRange(b),this.editor.selection.collapse(!0)):h.prototype.execCommand.call(this.editor,"inserthtml","\x3cbr\x3e");return!1}var u=!0;l=q.getSelection(this.editor.window);b=l.getRangeAt(0);b.collapsed||(b.deleteContents(),l=q.getSelection(this.editor.window),b=l.getRangeAt(0));k=q.getBlockAncestor(b.endContainer,null,this.editor.editNode);var z=k.blockNode;if(this._checkListLater=z&&("LI"==z.nodeName||"LI"==z.parentNode.nodeName))return d("mozilla")&&(this._pressedEnterInBlock=
z),/^(\s|&nbsp;|&#160;|\xA0|<span\b[^>]*\bclass=['"]Apple-style-span['"][^>]*>(\s|&nbsp;|&#160;|\xA0)<\/span>)?(<br>)?$/.test(z.innerHTML)&&(z.innerHTML="",d("webkit")&&(b=q.create(this.editor.window),b.setStart(z,0),l.removeAllRanges(),l.addRange(b)),this._checkListLater=!1),!0;if(!k.blockNode||k.blockNode===this.editor.editNode){try{h.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter)}catch(C){}k={blockNode:this.editor.selection.getAncestorElement(this.blockNodeForEnter),
blockContainer:this.editor.editNode};if(k.blockNode){if(k.blockNode!=this.editor.editNode&&!(k.blockNode.textContent||k.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length)return this.removeTrailingBr(k.blockNode),!1}else k.blockNode=this.editor.editNode;l=q.getSelection(this.editor.window);b=l.getRangeAt(0)}z=y.createElement(this.blockNodeForEnter);z.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(k.blockNode);n=b.endOffset;u=b.endContainer;u.length<n&&(n=this._adjustNodeAndOffset(u,n),u=
n.node,n=n.offset);if(q.atEndOfContainer(k.blockNode,u,n))k.blockNode===k.blockContainer?k.blockNode.appendChild(z):x.place(z,k.blockNode,"after"),u=!1,b=q.create(this.editor.window),b.setStart(z,0),l.removeAllRanges(),l.addRange(b),this.editor.height&&f.scrollIntoView(z);else if(q.atBeginningOfContainer(k.blockNode,b.startContainer,b.startOffset))x.place(z,k.blockNode,k.blockNode===k.blockContainer?"first":"before"),z.nextSibling&&this.editor.height&&(b=q.create(this.editor.window),b.setStart(z.nextSibling,
0),l.removeAllRanges(),l.addRange(b),f.scrollIntoView(z.nextSibling)),u=!1;else{k.blockNode===k.blockContainer?k.blockNode.appendChild(z):x.place(z,k.blockNode,"after");u=!1;k.blockNode.style&&z.style&&k.blockNode.style.cssText&&(z.style.cssText=k.blockNode.style.cssText);if((B=b.startContainer)&&3==B.nodeType){n=b.endOffset;B.length<n&&(n=this._adjustNodeAndOffset(B,n),B=n.node,n=n.offset);D=B.nodeValue;O=y.createTextNode(D.substring(0,n));n=y.createTextNode(D.substring(n,D.length));x.place(O,B,
"before");x.place(n,B,"after");x.destroy(B);for(b=O.parentNode;b!==k.blockNode;){D=y.createElement(b.tagName);b.style&&D.style&&b.style.cssText&&(D.style.cssText=b.style.cssText);"FONT"===b.tagName&&(b.color&&(D.color=b.color),b.face&&(D.face=b.face),b.size&&(D.size=b.size));for(;n;)B=n.nextSibling,D.appendChild(n),n=B;x.place(D,b,"after");O=b;n=D;b=b.parentNode}if(1==n.nodeType||3==n.nodeType&&n.nodeValue)z.innerHTML="";for(O=n;n;)B=n.nextSibling,z.appendChild(n),n=B}b=q.create(this.editor.window);
y=O;if("BR"!==this.blockNodeForEnter){for(;y;)t=y,y=B=y.firstChild;t&&t.parentNode?(z=t.parentNode,b.setStart(z,0),l.removeAllRanges(),l.addRange(b),this.editor.height&&f.scrollIntoView(z),d("mozilla")&&(this._pressedEnterInBlock=k.blockNode)):u=!0}else b.setStart(z,0),l.removeAllRanges(),l.addRange(b),this.editor.height&&f.scrollIntoView(z),d("mozilla")&&(this._pressedEnterInBlock=k.blockNode)}return u},_adjustNodeAndOffset:function(l,t){for(;l.length<t&&l.nextSibling&&3==l.nextSibling.nodeType;)t-=
l.length,l=l.nextSibling;return{node:l,offset:t}},removeTrailingBr:function(l){if(l=/P|DIV|LI/i.test(l.tagName)?l:this.editor.selection.getParentOfType(l,["P","DIV","LI"]))l.lastChild&&(1<l.childNodes.length&&3==l.lastChild.nodeType&&/^[\s\xAD]*$/.test(l.lastChild.nodeValue)||"BR"==l.lastChild.tagName)&&x.destroy(l.lastChild),l.childNodes.length||(l.innerHTML=this.bogusHtmlContent)}})})},"dijit/_editor/RichText":function(){define("dojo/_base/array dojo/_base/config dojo/_base/declare dojo/_base/Deferred dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dojo/query dojo/domReady dojo/sniff dojo/string dojo/topic dojo/_base/unload dojo/_base/url dojo/window ../_Widget ../_CssStateMixin ../selection ./range ./html ../focus ../main".split(" "),
function(v,x,H,F,E,d,c,f,e,h,q,l,t,y,B,b,k,D,O,n,u,z,C,M,L,Q,p,m,G){var K=H("dijit._editor.RichText",[C,M],{constructor:function(a){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this.events=[].concat(this.events);this._keyHandlers={};a&&t.isString(a.value)&&(this.value=a.value);this.onLoadDeferred=new F},baseClass:"dijitEditor",inheritWidth:!1,focusOnLoad:!1,name:"",styleSheets:"",height:"300px",minHeight:"1em",
isClosed:!0,isLoaded:!1,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",_NAME_CONTENT_SEP:"@@**%%:%%**@@",onLoadDeferred:null,isTabIndent:!1,disableSpellCheck:!1,postCreate:function(){"textarea"===this.domNode.tagName.toLowerCase()&&console.warn("RichText should not be used with the TEXTAREA tag.  See dijit._editor.RichText docs.");this.contentPreFilters=[t.trim,t.hitch(this,"_preFixUrlAttributes")].concat(this.contentPreFilters);k("mozilla")&&(this.contentPreFilters=[this._normalizeFontStyle].concat(this.contentPreFilters),
this.contentPostFilters=[this._removeMozBogus].concat(this.contentPostFilters));k("webkit")&&(this.contentPreFilters=[this._removeWebkitBogus].concat(this.contentPreFilters),this.contentPostFilters=[this._removeWebkitBogus].concat(this.contentPostFilters));if(k("ie")||k("trident"))this.contentPostFilters=[this._normalizeFontStyle].concat(this.contentPostFilters),this.contentDomPostFilters=[t.hitch(this,"_stripBreakerNodes")].concat(this.contentDomPostFilters);this.contentDomPostFilters=[t.hitch(this,
"_stripTrailingEmptyNodes")].concat(this.contentDomPostFilters);this.inherited(arguments);O.publish(G._scopeName+"._editor.RichText::init",this)},startup:function(){this.inherited(arguments);this.open();this.setupDefaultShortcuts()},setupDefaultShortcuts:function(){var a=t.hitch(this,function(A,w){return function(){return!this.execCommand(A,w)}}),g={b:a("bold"),i:a("italic"),u:a("underline"),a:a("selectall"),s:function(){this.save(!0)},m:function(){this.isTabIndent=!this.isTabIndent},1:a("formatblock",
"h1"),2:a("formatblock","h2"),3:a("formatblock","h3"),4:a("formatblock","h4"),"\\":a("insertunorderedlist")};k("ie")||(g.Z=a("redo"));for(var r in g)this.addKeyHandler(r,!0,!1,g[r])},events:["onKeyDown","onKeyUp"],captureEvents:[],_editorCommandsLocalized:!1,_localizeEditorCommands:function(){if(K._editorCommandsLocalized)this._local2NativeFormatNames=K._local2NativeFormatNames,this._native2LocalFormatNames=K._native2LocalFormatNames;else{K._editorCommandsLocalized=!0;K._local2NativeFormatNames={};
K._native2LocalFormatNames={};this._local2NativeFormatNames=K._local2NativeFormatNames;this._native2LocalFormatNames=K._native2LocalFormatNames;for(var a="div p pre h1 h2 h3 h4 h5 h6 ol ul address".split(" "),g="",r,A=0;r=a[A++];)g="l"!==r.charAt(1)?g+("\x3c"+r+"\x3e\x3cspan\x3econtent\x3c/span\x3e\x3c/"+r+"\x3e\x3cbr/\x3e"):g+("\x3c"+r+"\x3e\x3cli\x3econtent\x3c/li\x3e\x3c/"+r+"\x3e\x3cbr/\x3e");var w=f.create("div",{style:{position:"absolute",top:"0px",zIndex:10,opacity:.01},innerHTML:g});this.ownerDocumentBody.appendChild(w);
a=t.hitch(this,function(){for(var I=w.firstChild;I;)try{this.selection.selectElement(I.firstChild);var J=I.tagName.toLowerCase();this._local2NativeFormatNames[J]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[J]]=J;I=I.nextSibling.nextSibling}catch(P){}f.destroy(w)});this.defer(a)}},open:function(a){if(!this.onLoadDeferred||0<=this.onLoadDeferred.fired)this.onLoadDeferred=new F;this.isClosed||this.close();O.publish(G._scopeName+"._editor.RichText::open",
this);1===arguments.length&&a.nodeName&&(this.domNode=a);var g=this.domNode;if(t.isString(this.value)){var r=this.value;g.innerHTML=""}else if(g.nodeName&&"textarea"==g.nodeName.toLowerCase()){var A=this.textarea=g;this.name=A.name;r=A.value;g=this.domNode=this.ownerDocument.createElement("div");g.setAttribute("widgetId",this.id);A.removeAttribute("widgetId");g.cssText=A.cssText;g.className+=" "+A.className;f.place(g,A,"before");var w=t.hitch(this,function(){h.set(A,{display:"block",position:"absolute",
top:"-1000px"});if(k("ie")){var N=A.style;this.__overflow=N.overflow;N.overflow="hidden"}});k("ie")?this.defer(w,10):w();if(A.form){var I=A.value;this.reset=function(){this.getValue()!==I&&this.replaceValue(I)};y(A.form,"submit",t.hitch(this,function(){d.set(A,"disabled",this.disabled);A.value=this.getValue()}))}}else r=p.getChildrenHtml(g),g.innerHTML="";this.value=r;g.nodeName&&"LI"===g.nodeName&&(g.innerHTML=" \x3cbr\x3e");this.header=g.ownerDocument.createElement("div");g.appendChild(this.header);
this.editingArea=g.ownerDocument.createElement("div");g.appendChild(this.editingArea);this.footer=g.ownerDocument.createElement("div");g.appendChild(this.footer);this.name||(this.name=this.id+"_AUTOGEN");if(""!==this.name&&(!x.useXDomain||x.allowXdRichTextSave)){if((r=E.byId(G._scopeName+"._editor.RichText.value"))&&""!==r.value){w=r.value.split(this._SEPARATOR);for(var J=0,P;P=w[J++];)if(P=P.split(this._NAME_CONTENT_SEP),P[0]===this.name){this.value=P[1];w=w.splice(J,1);r.value=w.join(this._SEPARATOR);
break}}K._globalSaveHandler||(K._globalSaveHandler={},n.addOnUnload(function(){for(var N in K._globalSaveHandler){var S=K._globalSaveHandler[N];t.isFunction(S)&&S()}}));K._globalSaveHandler[this.id]=t.hitch(this,"_saveContent")}this.isClosed=!1;r=this.editorObject=this.iframe=this.ownerDocument.createElement("iframe");r.id=this.id+"_iframe";r.style.border="none";r.style.width="100%";this._layoutMode?r.style.height="100%":7<=k("ie")?(this.height&&(r.style.height=this.height),this.minHeight&&(r.style.minHeight=
this.minHeight)):r.style.height=this.height?this.height:this.minHeight;r.frameBorder=0;r._loadFunc=t.hitch(this,function(N){this.window=N;this.document=N.document;this.selection=new L.SelectionManager(N);k("ie")&&this._localizeEditorCommands();this.onLoad(this.get("value"))});w=this._getIframeDocTxt().replace(/\\/g,"\\\\").replace(/'/g,"\\'");w=11>k("ie")?'javascript:document.open();try{parent.window;}catch(e){document.domain\x3d"'+document.domain+"\";}document.write('"+w+"');document.close()":"javascript: '"+
w+"'";this.editingArea.appendChild(r);r.src=w;"LI"===g.nodeName&&(g.lastChild.style.marginTop="-1.2em");c.add(this.domNode,this.baseClass)},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_getIframeDocTxt:function(){var a=h.getComputedStyle(this.domNode);if(this["aria-label"])var g=this["aria-label"];else{var r=B('label[for\x3d"'+this.id+'"]',this.ownerDocument)[0]||E.byId(this["aria-labelledby"],this.ownerDocument);r&&(g=r.textContent||r.innerHTML||"")}r="\x3cdiv id\x3d'dijitEditorBody' role\x3d'textbox' aria-multiline\x3d'true' "+
(g?" aria-label\x3d'"+D.escape(g)+"'":"")+"\x3e\x3c/div\x3e";var A=[a.fontWeight,a.fontSize,a.fontFamily].join(" "),w=a.lineHeight;w=0<=w.indexOf("px")?parseFloat(w)/parseFloat(a.fontSize):0<=w.indexOf("em")?parseFloat(w):"normal";var I="",J=this;this.style.replace(/(^|;)\s*(line-|font-?)[^;]+/ig,function(P){P=P.replace(/^;/ig,"")+";";var N=P.split(":")[0];if(N){N=t.trim(N);N=N.toLowerCase();var S,R="";for(S=0;S<N.length;S++){var T=N.charAt(S);switch(T){case "-":S++,T=N.charAt(S).toUpperCase();default:R+=
T}}h.set(J.domNode,R,"")}I+=P+";"});this.iframe.setAttribute("title",g);return["\x3c!DOCTYPE html\x3e","\x3chtml lang\x3d'"+(this.lang||q.locale.replace(/-.*/,""))+"'"+(this.isLeftToRight()?"":" dir\x3d'rtl'")+"\x3e\n","\x3chead\x3e\n\x3cmeta http-equiv\x3d'Content-Type' content\x3d'text/html'\x3e\n",g?"\x3ctitle\x3e"+D.escape(g)+"\x3c/title\x3e":"","\x3cstyle\x3e\n\tbody,html {\n\t\tbackground:transparent;\n\t\tpadding: 1px 0 0 0;\n\t\tmargin: -1px 0 0 0;\n\t}\n\tbody,html,#dijitEditorBody { outline: none; }html { height: 100%; width: 100%; overflow: hidden; }\n",
this.height?"\tbody,#dijitEditorBody { height: 100%; width: 100%; overflow: auto; }\n":"\tbody,#dijitEditorBody { min-height: "+this.minHeight+"; width: 100%; overflow-x: auto; overflow-y: hidden; }\n","\tbody{\n\t\ttop:0px;\n\t\tleft:0px;\n\t\tright:0px;\n\t\tfont:",A,";\n",this.height||k("opera")?"":"\t\tposition: fixed;\n","\t\tline-height:",w,";\n\t}\n\tp{ margin: 1em 0; }\n\tli \x3e ul:-moz-first-node, li \x3e ol:-moz-first-node{ padding-top: 1.2em; }\n",k("ie")||k("trident")||k("edge")?"":"\tli{ min-height:1.2em; }\n",
"\x3c/style\x3e\n",this._applyEditingAreaStyleSheets(),"\n\x3c/head\x3e\n\x3cbody role\x3d'application'",g?" aria-label\x3d'"+D.escape(g)+"'":"","onload\x3d'try{frameElement \x26\x26 frameElement._loadFunc(window,document)}catch(e){document.domain\x3d\""+document.domain+"\";frameElement._loadFunc(window,document)}' ","style\x3d'"+I+"'\x3e",r,"\x3c/body\x3e\n\x3c/html\x3e"].join("")},_applyEditingAreaStyleSheets:function(){var a=[];this.styleSheets&&(a=this.styleSheets.split(";"),this.styleSheets=
"");a=a.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];for(var g="",r=0,A,w=z.get(this.ownerDocument);A=a[r++];)A=(new u(w.location,A)).toString(),this.editingAreaStyleSheets.push(A),g+='\x3clink rel\x3d"stylesheet" type\x3d"text/css" href\x3d"'+A+'"/\x3e';return g},addStyleSheet:function(a){var g=a.toString(),r=z.get(this.ownerDocument);if("."===g.charAt(0)||"/"!==g.charAt(0)&&!a.host)g=(new u(r.location,g)).toString();-1<v.indexOf(this.editingAreaStyleSheets,g)||(this.editingAreaStyleSheets.push(g),
this.onLoadDeferred.then(t.hitch(this,function(){if(this.document.createStyleSheet)this.document.createStyleSheet(g);else{var A=this.document.getElementsByTagName("head")[0],w=this.document.createElement("link");w.rel="stylesheet";w.type="text/css";w.href=g;A.appendChild(w)}})))},removeStyleSheet:function(a){var g=a.toString(),r=z.get(this.ownerDocument);if("."===g.charAt(0)||"/"!==g.charAt(0)&&!a.host)g=(new u(r.location,g)).toString();a=v.indexOf(this.editingAreaStyleSheets,g);-1!==a&&(delete this.editingAreaStyleSheets[a],
B('link[href\x3d"'+g+'"]',this.window.document).orphan())},disabled:!1,_mozSettingProps:{styleWithCSS:!1},_setDisabledAttr:function(a){a=!!a;this._set("disabled",a);if(this.isLoaded){var g=k("ie")&&(this.isLoaded||!this.focusOnLoad);g&&(this.editNode.unselectable="on");this.editNode.contentEditable=!a;this.editNode.tabIndex=a?"-1":this.tabIndex;g&&this.defer(function(){this.editNode&&(this.editNode.unselectable="off")});if(k("mozilla")&&!a&&this._mozSettingProps){a=this._mozSettingProps;for(var r in a)if(a.hasOwnProperty(r))try{this.document.execCommand(r,
!1,a[r])}catch(A){}}this._disabledOK=!0}},onLoad:function(a){this.window.__registeredWindow||(this.window.__registeredWindow=!0,this._iframeRegHandle=m.registerIframe(this.iframe));this.editNode=this.document.body.firstChild;var g=this;this.beforeIframeNode=f.place("\x3cdiv tabIndex\x3d-1\x3e\x3c/div\x3e",this.iframe,"before");this.afterIframeNode=f.place("\x3cdiv tabIndex\x3d-1\x3e\x3c/div\x3e",this.iframe,"after");this.iframe.onfocus=this.document.onfocus=function(){g.editNode.focus()};this.focusNode=
this.editNode;var r=this.events.concat(this.captureEvents),A=this.iframe?this.document:this.editNode;this.own.apply(this,v.map(r,function(w){var I=w.toLowerCase().replace(/^on/,"");return y(A,I,t.hitch(this,w))},this));this.own(y(A,"mouseup",t.hitch(this,"onClick")));k("ie")&&(this.own(y(this.document,"mousedown",t.hitch(this,"_onIEMouseDown"))),this.editNode.style.zoom=1);k("webkit")&&(this._webkitListener=this.own(y(this.document,"mouseup",t.hitch(this,"onDisplayChanged")))[0],this.own(y(this.document,
"mousedown",t.hitch(this,function(w){w=w.target;!w||w!==this.document.body&&w!==this.document||this.defer("placeCursorAtEnd")}))));if(k("ie"))try{this.document.execCommand("RespectVisibilityInDesign",!0,null)}catch(w){}this.isLoaded=!0;this.set("disabled",this.disabled);r=t.hitch(this,function(){this.setValue(a);this.onLoadDeferred&&!this.onLoadDeferred.isFulfilled()&&this.onLoadDeferred.resolve(!0);this.onDisplayChanged();this.focusOnLoad&&b(t.hitch(this,"defer","focus",this.updateInterval));this.value=
this.getValue(!0)});this.setValueDeferred?this.setValueDeferred.then(r):r()},onKeyDown:function(a){if(a.keyCode===l.SHIFT||a.keyCode===l.ALT||a.keyCode===l.META||a.keyCode===l.CTRL)return!0;a.keyCode===l.TAB&&this.isTabIndent&&(a.stopPropagation(),a.preventDefault(),this.queryCommandEnabled(a.shiftKey?"outdent":"indent")&&this.execCommand(a.shiftKey?"outdent":"indent"));if(a.keyCode==l.TAB&&!this.isTabIndent&&!a.ctrlKey&&!a.altKey)return a.shiftKey?this.beforeIframeNode.focus():this.afterIframeNode.focus(),
!0;9>k("ie")&&a.keyCode===l.BACKSPACE&&"Control"===this.document.selection.type&&(a.stopPropagation(),a.preventDefault(),this.execCommand("delete"));k("ff")&&(a.keyCode===l.PAGE_UP||a.keyCode===l.PAGE_DOWN)&&this.editNode.clientHeight>=this.editNode.scrollHeight&&a.preventDefault();var g=this._keyHandlers[a.keyCode],r=arguments;g&&!a.altKey&&v.some(g,function(A){if(!(A.shift^a.shiftKey||A.ctrl^(a.ctrlKey||a.metaKey)))return A.handler.apply(this,r)||a.preventDefault(),!0},this);this.defer("onKeyPressed",
1);return!0},onKeyUp:function(){},setDisabled:function(a){q.deprecated("dijit.Editor::setDisabled is deprecated",'use dijit.Editor::attr("disabled",boolean) instead',2);this.set("disabled",a)},_setValueAttr:function(a){this.setValue(a)},_setDisableSpellCheckAttr:function(a){this.document?d.set(this.document.body,"spellcheck",!a):this.onLoadDeferred.then(t.hitch(this,function(){d.set(this.document.body,"spellcheck",!a)}));this._set("disableSpellCheck",a)},addKeyHandler:function(a,g,r,A){"string"==
typeof a&&(a=a.toUpperCase().charCodeAt(0));t.isArray(this._keyHandlers[a])||(this._keyHandlers[a]=[]);this._keyHandlers[a].push({shift:r||!1,ctrl:g||!1,handler:A})},onKeyPressed:function(){this.onDisplayChanged()},onClick:function(a){this.onDisplayChanged(a)},_onIEMouseDown:function(){this.focused||this.disabled||this.focus()},_onBlur:function(a){(k("ie")||k("trident"))&&this.defer(function(){m.curNode||this.ownerDocumentBody.focus()});this.inherited(arguments);var g=this.getValue(!0);if(g!==this.value)this.onChange(g);
this._set("value",g)},_onFocus:function(a){this.disabled||(this._disabledOK||this.set("disabled",!1),this.inherited(arguments))},blur:function(){!k("ie")&&this.window.document.documentElement&&this.window.document.documentElement.focus?this.window.document.documentElement.focus():this.ownerDocumentBody.focus&&this.ownerDocumentBody.focus()},focus:function(){this.isLoaded?9>k("ie")?this.iframe.fireEvent("onfocus",document.createEventObject()):this.editNode.focus():this.focusOnLoad=!0},updateInterval:200,
_updateTimer:null,onDisplayChanged:function(){this._updateTimer&&this._updateTimer.remove();this._updateTimer=this.defer("onNormalizedDisplayChanged",this.updateInterval)},onNormalizedDisplayChanged:function(){delete this._updateTimer},onChange:function(){},_normalizeCommand:function(a,g){a=a.toLowerCase();"formatblock"===a?k("safari")&&void 0===g&&(a="heading"):"hilitecolor"!==a||k("mozilla")||(a="backcolor");return a},_implCommand:function(a){return"_"+this._normalizeCommand(a)+"EnabledImpl"},_qcaCache:{},
queryCommandAvailable:function(a){var g=this._qcaCache[a];return void 0!==g?g:this._qcaCache[a]=this._queryCommandAvailable(a)},_queryCommandAvailable:function(a){switch(a.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":case "toggledir":case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":case "tabindent":case "cut":case "copy":case "paste":return!0;
case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":return k("ie")||k("trident")||k("edge");case "inserttable":case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":return!k("webkit");default:return!1}},execCommand:function(a,g){this.focused&&this.focus();a=this._normalizeCommand(a,g);if(void 0!==g){if("heading"===a)throw Error("unimplemented");"formatblock"===
a&&(k("ie")||k("trident"))&&(g="\x3c"+g+"\x3e")}var r="_"+a+"Impl";if(this[r])var A=this[r](g);else if((g=1<arguments.length?g:null)||"createlink"!==a)A=this.document.execCommand(a,!1,g);this.onDisplayChanged();return A},queryCommandEnabled:function(a){if(this.disabled||!this._disabledOK)return!1;a=this._normalizeCommand(a);var g=this._implCommand(a);return this[g]?this[g](a):this._browserQueryCommandEnabled(a)},queryCommandState:function(a){if(this.disabled||!this._disabledOK)return!1;a=this._normalizeCommand(a);
try{return this.document.queryCommandState(a)}catch(g){return!1}},queryCommandValue:function(a){if(this.disabled||!this._disabledOK)return!1;a=this._normalizeCommand(a);if(k("ie")&&"formatblock"===a)a=this._native2LocalFormatNames[this.document.queryCommandValue(a)];else if(k("mozilla")&&"hilitecolor"===a){try{var g=this.document.queryCommandValue("styleWithCSS")}catch(r){g=!1}this.document.execCommand("styleWithCSS",!1,!0);a=this.document.queryCommandValue(a);this.document.execCommand("styleWithCSS",
!1,g)}else a=this.document.queryCommandValue(a);return a},_sCall:function(a,g){return this.selection[a].apply(this.selection,g)},placeCursorAtStart:function(){this.focus();var a=!1;if(k("mozilla"))for(var g=this.editNode.firstChild;g;){if(3===g.nodeType){if(0<g.nodeValue.replace(/^\s+|\s+$/g,"").length){a=!0;this.selection.selectElement(g);break}}else if(1===g.nodeType){a=!0;var r=g.tagName?g.tagName.toLowerCase():"";/br|input|img|base|meta|area|basefont|hr|link/.test(r)?this.selection.selectElement(g):
this.selection.selectElementChildren(g);break}g=g.nextSibling}else a=!0,this.selection.selectElementChildren(this.editNode);a&&this.selection.collapse(!0)},placeCursorAtEnd:function(){this.focus();var a=!1;if(k("mozilla"))for(var g=this.editNode.lastChild;g;){if(3===g.nodeType){if(0<g.nodeValue.replace(/^\s+|\s+$/g,"").length){a=!0;this.selection.selectElement(g);break}}else if(1===g.nodeType){a=!0;this.selection.selectElement(g.lastChild||g);break}g=g.previousSibling}else a=!0,this.selection.selectElementChildren(this.editNode);
a&&this.selection.collapse(!1)},getValue:function(a){return!this.textarea||!this.isClosed&&this.isLoaded?this.isLoaded?this._postFilterContent(null,a):this.value:this.textarea.value},_getValueAttr:function(){return this.getValue(!0)},setValue:function(a){if(this.isLoaded){if(!this.textarea||!this.isClosed&&this.isLoaded){a=this._preFilterContent(a);var g=this.isClosed?this.domNode:this.editNode;g.innerHTML=a;this._preDomFilterContent(g)}else this.textarea.value=a;this.onDisplayChanged();this._set("value",
this.getValue(!0))}else this.onLoadDeferred.then(t.hitch(this,function(){this.setValue(a)}))},replaceValue:function(a){this.isClosed?this.setValue(a):this.window&&this.window.getSelection&&!k("mozilla")?this.setValue(a):this.window&&this.window.getSelection?(a=this._preFilterContent(a),this.execCommand("selectall"),this.execCommand("inserthtml",a),this._preDomFilterContent(this.editNode)):this.document&&this.document.selection&&this.setValue(a);this._set("value",this.getValue(!0))},_preFilterContent:function(a){var g=
a;v.forEach(this.contentPreFilters,function(r){r&&(g=r(g))});return g},_preDomFilterContent:function(a){a=a||this.editNode;v.forEach(this.contentDomPreFilters,function(g){g&&t.isFunction(g)&&g(a)},this)},_postFilterContent:function(a,g){if(t.isString(a))var r=a;else a=a||this.editNode,this.contentDomPostFilters.length&&(g&&(a=t.clone(a)),v.forEach(this.contentDomPostFilters,function(A){a=A(a)})),r=p.getChildrenHtml(a);t.trim(r.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length||(r="");v.forEach(this.contentPostFilters,
function(A){r=A(r)});return r},_saveContent:function(){var a=E.byId(G._scopeName+"._editor.RichText.value");a&&(a.value&&(a.value+=this._SEPARATOR),a.value+=this.name+this._NAME_CONTENT_SEP+this.getValue(!0))},escapeXml:function(a,g){a=a.replace(/&/gm,"\x26amp;").replace(/</gm,"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;");g||(a=a.replace(/'/gm,"\x26#39;"));return a},getNodeHtml:function(a){q.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit/_editor/html::getNodeHtml instead",
2);return p.getNodeHtml(a)},getNodeChildrenHtml:function(a){q.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit/_editor/html::getChildrenHtml instead",2);return p.getChildrenHtml(a)},close:function(a){if(!this.isClosed){arguments.length||(a=!0);a&&this._set("value",this.getValue(!0));this.interval&&clearInterval(this.interval);this._webkitListener&&(this._webkitListener.remove(),delete this._webkitListener);k("ie")&&(this.iframe.onfocus=null);this.iframe._loadFunc=null;this._iframeRegHandle&&
(this._iframeRegHandle.remove(),delete this._iframeRegHandle);if(this.textarea){var g=this.textarea.style;g.position="";g.left=g.top="";k("ie")&&(g.overflow=this.__overflow,this.__overflow=null);this.textarea.value=this.value;f.destroy(this.domNode);this.domNode=this.textarea}else this.domNode.innerHTML=this.value;delete this.iframe;c.remove(this.domNode,this.baseClass);this.isClosed=!0;this.isLoaded=!1;delete this.editNode;delete this.focusNode;this.window&&this.window._frameElement&&(this.window._frameElement=
null);this.editorObject=this.editingArea=this.document=this.window=null}},destroy:function(){this.isClosed||this.close(!1);this._updateTimer&&this._updateTimer.remove();this.inherited(arguments);K._globalSaveHandler&&delete K._globalSaveHandler[this.id]},_removeMozBogus:function(a){return a.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"").replace(/_moz_resizing="(true|false)"/gi,"")},_removeWebkitBogus:function(a){a=a.replace(/\sclass="webkit-block-placeholder"/gi,"");a=a.replace(/\sclass="apple-style-span"/gi,
"");return a=a.replace(/<meta charset="utf-8" \/>/gi,"")},_normalizeFontStyle:function(a){return a.replace(/<(\/)?strong([ >])/gi,"\x3c$1b$2").replace(/<(\/)?em([ >])/gi,"\x3c$1i$2")},_preFixUrlAttributes:function(a){return a.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl\x3d$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl\x3d$2$3$5$2")},_browserQueryCommandEnabled:function(a){if(!a)return!1;
if(k("ie")||k("trident")||k("edge"))return this.focused&&!this.disabled;var g=9>k("ie")?this.document.selection.createRange():this.document;try{return g.queryCommandEnabled(a)}catch(r){return!1}},_createlinkEnabledImpl:function(){var a=!0;return a=k("opera")?this.window.getSelection().isCollapsed?!0:this.document.queryCommandEnabled("createlink"):this._browserQueryCommandEnabled("createlink")},_unlinkEnabledImpl:function(){var a=!0;return a=k("mozilla")||k("webkit")||k("ie")||k("trident")||k("edge")?
this.selection.hasAncestorElement("a"):this._browserQueryCommandEnabled("unlink")},_inserttableEnabledImpl:function(){var a=!0;return a=k("mozilla")||k("webkit")?!0:this._browserQueryCommandEnabled("inserttable")},_cutEnabledImpl:function(){var a=!0;k("webkit")?((a=this.window.getSelection())&&(a=a.toString()),a=!!a):a=this._browserQueryCommandEnabled("cut");return a},_copyEnabledImpl:function(){var a=!0;k("webkit")?((a=this.window.getSelection())&&(a=a.toString()),a=!!a):a=this._browserQueryCommandEnabled("copy");
return a},_pasteEnabledImpl:function(){var a=!0;return k("webkit")?!0:a=this._browserQueryCommandEnabled("paste")},_inserthorizontalruleImpl:function(a){return k("ie")?this._inserthtmlImpl("\x3chr\x3e"):this.document.execCommand("inserthorizontalrule",!1,a)},_unlinkImpl:function(a){return this.queryCommandEnabled("unlink")&&(k("mozilla")||k("webkit"))?(a=this.selection.getAncestorElement("a"),this.selection.selectElement(a),this.document.execCommand("unlink",!1,null)):this.document.execCommand("unlink",
!1,a)},_hilitecolorImpl:function(a){if(!this._handleTextColorOrProperties("hilitecolor",a))if(k("mozilla")){this.document.execCommand("styleWithCSS",!1,!0);console.log("Executing color command.");var g=this.document.execCommand("hilitecolor",!1,a);this.document.execCommand("styleWithCSS",!1,!1)}else g=this.document.execCommand("hilitecolor",!1,a);return g},_backcolorImpl:function(a){k("ie")&&(a=a?a:null);var g=this._handleTextColorOrProperties("backcolor",a);g||(g=this.document.execCommand("backcolor",
!1,a));return g},_forecolorImpl:function(a){k("ie")&&(a=a?a:null);var g=!1;(g=this._handleTextColorOrProperties("forecolor",a))||(g=this.document.execCommand("forecolor",!1,a));return g},_inserthtmlImpl:function(a){a=this._preFilterContent(a);var g=!0;if(9>k("ie")){var r=this.document.selection.createRange();if("CONTROL"===this.document.selection.type.toUpperCase()){for(var A=r.item(0);r.length;)r.remove(r.item(0));A.outerHTML=a}else r.pasteHTML(a);r.select()}else if(8>k("trident")){var w=Q.getSelection(this.window);
if(w&&w.rangeCount&&w.getRangeAt){r=w.getRangeAt(0);r.deleteContents();var I=f.create("div");I.innerHTML=a;for(A=this.document.createDocumentFragment();a=I.firstChild;)var J=A.appendChild(a);r.insertNode(A);J&&(r=r.cloneRange(),r.setStartAfter(J),r.collapse(!1),w.removeAllRanges(),w.addRange(r))}}else k("mozilla")&&!a.length?this.selection.remove():g=this.document.execCommand("inserthtml",!1,a);return g},_boldImpl:function(a){var g=!1;if(k("ie")||k("trident"))this._adaptIESelection(),g=this._adaptIEFormatAreaAndExec("bold");
g||(g=this.document.execCommand("bold",!1,a));return g},_italicImpl:function(a){var g=!1;if(k("ie")||k("trident"))this._adaptIESelection(),g=this._adaptIEFormatAreaAndExec("italic");g||(g=this.document.execCommand("italic",!1,a));return g},_underlineImpl:function(a){var g=!1;if(k("ie")||k("trident"))this._adaptIESelection(),g=this._adaptIEFormatAreaAndExec("underline");g||(g=this.document.execCommand("underline",!1,a));return g},_strikethroughImpl:function(a){var g=!1;if(k("ie")||k("trident"))this._adaptIESelection(),
g=this._adaptIEFormatAreaAndExec("strikethrough");g||(g=this.document.execCommand("strikethrough",!1,a));return g},_superscriptImpl:function(a){var g=!1;if(k("ie")||k("trident"))this._adaptIESelection(),g=this._adaptIEFormatAreaAndExec("superscript");g||(g=this.document.execCommand("superscript",!1,a));return g},_subscriptImpl:function(a){var g=!1;if(k("ie")||k("trident"))this._adaptIESelection(),g=this._adaptIEFormatAreaAndExec("subscript");g||(g=this.document.execCommand("subscript",!1,a));return g},
_fontnameImpl:function(a){if(k("ie")||k("trident"))var g=this._handleTextColorOrProperties("fontname",a);g||(g=this.document.execCommand("fontname",!1,a));return g},_fontsizeImpl:function(a){if(k("ie")||k("trident"))var g=this._handleTextColorOrProperties("fontsize",a);g||(g=this.document.execCommand("fontsize",!1,a));return g},_insertorderedlistImpl:function(a){var g=!1;if(k("ie")||k("trident")||k("edge"))g=this._adaptIEList("insertorderedlist",a);g||(g=this.document.execCommand("insertorderedlist",
!1,a));return g},_insertunorderedlistImpl:function(a){var g=!1;if(k("ie")||k("trident")||k("edge"))g=this._adaptIEList("insertunorderedlist",a);g||(g=this.document.execCommand("insertunorderedlist",!1,a));return g},getHeaderHeight:function(){return this._getNodeChildrenHeight(this.header)},getFooterHeight:function(){return this._getNodeChildrenHeight(this.footer)},_getNodeChildrenHeight:function(a){var g=0;if(a&&a.childNodes){var r;for(r=0;r<a.childNodes.length;r++){var A=e.position(a.childNodes[r]);
g+=A.h}}return g},_isNodeEmpty:function(a,g){return 1===a.nodeType?0<a.childNodes.length?this._isNodeEmpty(a.childNodes[0],g):!0:3===a.nodeType?""===a.nodeValue.substring(g):!1},_removeStartingRangeFromRange:function(a,g){if(a.nextSibling)g.setStart(a.nextSibling,0);else{for(a=a.parentNode;a&&null==a.nextSibling;)a=a.parentNode;a&&g.setStart(a.nextSibling,0)}return g},_adaptIESelection:function(){var a=Q.getSelection(this.window);if(a&&a.rangeCount&&!a.isCollapsed){for(var g=a.getRangeAt(0),r=g.startContainer,
A=g.startOffset;3===r.nodeType&&A>=r.length&&r.nextSibling;)A-=r.length,r=r.nextSibling;for(var w=null;this._isNodeEmpty(r,A)&&r!==w;)w=r,g=this._removeStartingRangeFromRange(r,g),r=g.startContainer,A=0;a.removeAllRanges();a.addRange(g)}},_adaptIEFormatAreaAndExec:function(a){var g=Q.getSelection(this.window),r=this.document,A;if(a&&g&&g.isCollapsed){if(this.queryCommandValue(a)){a=this._tagNamesForCommand(a);var w=g.getRangeAt(0);var I=w.startContainer;if(3===I.nodeType){var J=w.endOffset;I.length<
J&&(J=this._adjustNodeAndOffset(P,J),I=J.node,J=J.offset)}for(;I&&I!==this.editNode;){var P=I.tagName?I.tagName.toLowerCase():"";if(-1<v.indexOf(a,P)){var N=I;break}I=I.parentNode}if(N&&(P=w.startContainer,a=r.createElement(N.tagName),f.place(a,N,"after"),P&&3===P.nodeType)){J=w.endOffset;P.length<J&&(J=this._adjustNodeAndOffset(P,J),P=J.node,J=J.offset);I=P.nodeValue;w=r.createTextNode(I.substring(0,J));var S=I.substring(J,I.length);S&&(A=r.createTextNode(S));f.place(w,P,"before");if(A){var R=r.createElement("span");
R.className="ieFormatBreakerSpan";f.place(R,P,"after");f.place(A,R,"after");A=R}f.destroy(P);J=w.parentNode;for(P=[];J!==N;){I=J.tagName;w={tagName:I};P.push(w);I=r.createElement(I);J.style&&I.style&&J.style.cssText&&(I.style.cssText=J.style.cssText,w.cssText=J.style.cssText);"FONT"===J.tagName&&(J.color&&(I.color=J.color,w.color=J.color),J.face&&(I.face=J.face,w.face=J.face),J.size&&(I.size=J.size,w.size=J.size));J.className&&(I.className=J.className,w.className=J.className);if(A)for(;A;)w=A.nextSibling,
I.appendChild(A),A=w;I.tagName==J.tagName?(R=r.createElement("span"),R.className="ieFormatBreakerSpan",f.place(R,J,"after"),f.place(I,R,"after")):f.place(I,J,"after");w=J;A=I;J=J.parentNode}if(A){if(1===A.nodeType||3===A.nodeType&&A.nodeValue)a.innerHTML="";for(;A;)w=A.nextSibling,a.appendChild(A),A=w}if(P.length){w=P.pop();A=r.createElement(w.tagName);w.cssText&&A.style&&(A.style.cssText=w.cssText);w.className&&(A.className=w.className);"FONT"===w.tagName&&(w.color&&(A.color=w.color),w.face&&(A.face=
w.face),w.size&&(A.size=w.size));for(f.place(A,a,"before");P.length;)w=P.pop(),N=r.createElement(w.tagName),w.cssText&&N.style&&(N.style.cssText=w.cssText),w.className&&(N.className=w.className),"FONT"===w.tagName&&(w.color&&(N.color=w.color),w.face&&(N.face=w.face),w.size&&(N.size=w.size)),A.appendChild(N),A=N;N=r.createTextNode(".");R.appendChild(N);A.appendChild(N)}else R=r.createElement("span"),R.className="ieFormatBreakerSpan",N=r.createTextNode("."),R.appendChild(N),f.place(R,a,"before");A=
Q.create(this.window);A.setStart(N,0);A.setEnd(N,N.length);g.removeAllRanges();g.addRange(A);this.selection.collapse(!1);N.parentNode.innerHTML="";a.firstChild||f.destroy(a);return!0}return!1}w=g.getRangeAt(0);if((P=w.startContainer)&&3===P.nodeType)return J=w.startOffset,P.length<J&&(J=this._adjustNodeAndOffset(P,J),P=J.node,J=J.offset),I=P.nodeValue,w=r.createTextNode(I.substring(0,J)),S=I.substring(J),""!==S&&(A=r.createTextNode(I.substring(J))),R=r.createElement("span"),N=r.createTextNode("."),
R.appendChild(N),w.length?f.place(w,P,"after"):w=P,f.place(R,w,"after"),A&&f.place(A,R,"after"),f.destroy(P),A=Q.create(this.window),A.setStart(N,0),A.setEnd(N,N.length),g.removeAllRanges(),g.addRange(A),r.execCommand(a),f.place(R.firstChild,R,"before"),f.destroy(R),A.setStart(N,0),A.setEnd(N,N.length),g.removeAllRanges(),g.addRange(A),this.selection.collapse(!1),N.parentNode.innerHTML="",!0}else return!1},_adaptIEList:function(a){var g=Q.getSelection(this.window);if(g.isCollapsed&&g.rangeCount&&
!this.queryCommandValue(a)){var r=g.getRangeAt(0),A=r.startContainer;if(A&&3==A.nodeType&&!r.startOffset)return r="ul","insertorderedlist"===a&&(r="ol"),a=this.document.createElement(r),r=f.create("li",null,a),f.place(a,A,"before"),r.appendChild(A),f.create("br",null,a,"after"),a=Q.create(this.window),a.setStart(A,0),a.setEnd(A,A.length),g.removeAllRanges(),g.addRange(a),this.selection.collapse(!0),!0}return!1},_handleTextColorOrProperties:function(a,g){var r=Q.getSelection(this.window),A=this.document,
w,I;g=g||null;if(a&&r&&r.isCollapsed&&r.rangeCount){var J=r.getRangeAt(0);if((w=J.startContainer)&&3===w.nodeType){var P=J.startOffset;w.length<P&&(J=this._adjustNodeAndOffset(w,P),w=J.node,P=J.offset);var N=w.nodeValue;J=A.createTextNode(N.substring(0,P));""!==N.substring(P)&&(I=A.createTextNode(N.substring(P)));N=A.createElement("span");P=A.createTextNode(".");N.appendChild(P);A=A.createElement("span");N.appendChild(A);J.length?f.place(J,w,"after"):J=w;f.place(N,J,"after");I&&f.place(I,N,"after");
f.destroy(w);w=Q.create(this.window);w.setStart(P,0);w.setEnd(P,P.length);r.removeAllRanges();r.addRange(w);if(k("webkit")){r="color";if("hilitecolor"===a||"backcolor"===a)r="backgroundColor";h.set(N,r,g);this.selection.remove();f.destroy(A);N.innerHTML="\x26#160;";this.selection.selectElement(N);this.focus()}else this.execCommand(a,g),f.place(N.firstChild,N,"before"),f.destroy(N),w.setStart(P,0),w.setEnd(P,P.length),r.removeAllRanges(),r.addRange(w),this.selection.collapse(!1),P.parentNode.removeChild(P);
return!0}}return!1},_adjustNodeAndOffset:function(a,g){for(;a.length<g&&a.nextSibling&&3===a.nextSibling.nodeType;)g-=a.length,a=a.nextSibling;return{node:a,offset:g}},_tagNamesForCommand:function(a){return"bold"===a?["b","strong"]:"italic"===a?["i","em"]:"strikethrough"===a?["s","strike"]:"superscript"===a?["sup"]:"subscript"===a?["sub"]:"underline"===a?["u"]:[]},_stripBreakerNodes:function(a){if(this.isLoaded)return B(".ieFormatBreakerSpan",a).forEach(function(g){for(;g.firstChild;)f.place(g.firstChild,
g,"before");f.destroy(g)}),a},_stripTrailingEmptyNodes:function(a){function g(r){return/^(p|div|br)$/i.test(r.nodeName)&&0==r.children.length&&/^[\s\xA0]*$/.test(r.textContent||r.innerText||"")||3===r.nodeType&&/^[\s\xA0]*$/.test(r.nodeValue)}for(;a.lastChild&&g(a.lastChild);)f.destroy(a.lastChild);return a},_setTextDirAttr:function(a){this._set("textDir",a);this.onLoadDeferred.then(t.hitch(this,function(){this.editNode.dir=a}))}});return K})},"dijit/_editor/range":function(){define(["dojo/_base/array",
"dojo/_base/declare","dojo/_base/lang"],function(v,x,H){var F={getIndex:function(c,f){for(var e=[],h=[],q=c,l,t;c!=f;){var y=0;for(l=c.parentNode;t=l.childNodes[y++];)if(t===c){--y;break}e.unshift(y);h.unshift(y-l.childNodes.length);c=l}if(0<e.length&&3==q.nodeType){for(t=q.previousSibling;t&&3==t.nodeType;)e[e.length-1]--,t=t.previousSibling;for(t=q.nextSibling;t&&3==t.nodeType;)h[h.length-1]++,t=t.nextSibling}return{o:e,r:h}},getNode:function(c,f){if(!H.isArray(c)||0==c.length)return f;var e=f;
v.every(c,function(h){if(0<=h&&h<e.childNodes.length)e=e.childNodes[h];else return e=null,!1;return!0});return e},getCommonAncestor:function(c,f,e){e=e||c.ownerDocument.body;var h=function(t){for(var y=[];t;)if(y.unshift(t),t!==e)t=t.parentNode;else break;return y};c=h(c);f=h(f);h=Math.min(c.length,f.length);for(var q=c[0],l=1;l<h;l++)if(c[l]===f[l])q=c[l];else break;return q},getAncestor:function(c,f,e){for(e=e||c.ownerDocument.body;c&&c!==e;){var h=c.nodeName.toUpperCase();if(f.test(h))return c;
c=c.parentNode}return null},BlockTagNames:/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|DT|DE)$/,getBlockAncestor:function(c,f,e){e=e||c.ownerDocument.body;f=f||F.BlockTagNames;for(var h=null,q;c&&c!==e;){var l=c.nodeName.toUpperCase();!h&&f.test(l)&&(h=c);!q&&/^(?:BODY|TD|TH|CAPTION)$/.test(l)&&(q=c);c=c.parentNode}return{blockNode:h,blockContainer:q||c.ownerDocument.body}},atBeginningOfContainer:function(c,f,e){var h=!1,q=0==e;q||3!=f.nodeType||/^[\s\xA0]+$/.test(f.nodeValue.substr(0,e))&&(q=
!0);if(q)for(h=!0;f&&f!==c;){if(f.previousSibling){h=!1;break}f=f.parentNode}return h},atEndOfContainer:function(c,f,e){var h=!1,q=e==(f.length||f.childNodes.length);q||3!=f.nodeType||/^[\s\xA0]+$/.test(f.nodeValue.substr(e))&&(q=!0);if(q)for(h=!0;f&&f!==c;){if(f.nextSibling){h=!1;break}f=f.parentNode}return h},adjacentNoneTextNode:function(c,f){var e=c;c=0-c.length||0;for(f=f?"nextSibling":"previousSibling";e&&3==e.nodeType;)c+=e.length,e=e[f];return[e,c]},create:function(c){c=c||window;return c.getSelection?
c.document.createRange():new d},getSelection:function(c,f){if(c.getSelection)return c.getSelection();c=new E.selection(c);f||c._getCurrentSelection();return c}};if(!window.getSelection)var E=F.ie={cachedSelection:{},selection:function(c){this._ranges=[];this.addRange=function(f,e){this._ranges.push(f);e||f._select();this.rangeCount=this._ranges.length};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0};this.getRangeAt=function(f){return this._ranges[f]};this._getCurrentSelection=function(){this.removeAllRanges();
var f=c.document.selection.createRange();f="CONTROL"==c.document.selection.type.toUpperCase()?new d(E.decomposeControlRange(f)):new d(E.decomposeTextRange(f));this.addRange(f,!0),this.isCollapsed=f.collapsed}},decomposeControlRange:function(c){var f=c.item(0),e=c.item(c.length-1);c=f.parentNode;var h=e.parentNode;f=F.getIndex(f,c).o[0];e=F.getIndex(e,h).o[0]+1;return[c,f,h,e]},getEndPoint:function(c,f){var e=c.duplicate();e.collapse(!f);var h="EndTo"+(f?"End":"Start"),q=e.parentElement(),l;if(0<q.childNodes.length)v.every(q.childNodes,
function(B,b){if(3!=B.nodeType)if(e.moveToElementText(B),0<e.compareEndPoints(h,c))if(l&&3==l.nodeType){t=l;var k=!0}else return t=q,y=b,!1;else{if(b==q.childNodes.length-1)return t=q,y=q.childNodes.length,!1}else b==q.childNodes.length-1&&(t=B,k=!0);if(k&&t)return t=(B=F.adjacentNoneTextNode(t)[0])?B.nextSibling:q.firstChild,b=F.adjacentNoneTextNode(t),B=b[0],b=b[1],B?(e.moveToElementText(B),e.collapse(!1)):e.moveToElementText(q),e.setEndPoint(h,c),y=e.text.length-b,!1;l=B;return!0});else{var t=
q;var y=0}f||1!=t.nodeType||y!=t.childNodes.length||(f=t.nextSibling)&&3==f.nodeType&&(t=f,y=0);return[t,y]},setEndPoint:function(c,f,e){c=c.duplicate();var h;if(3!=f.nodeType)if(0<e){if(h=f.childNodes[e-1])if(3==h.nodeType)f=h,e=h.length;else if(h.nextSibling&&3==h.nextSibling.nodeType)f=h.nextSibling,e=0;else{c.moveToElementText(h.nextSibling?h:f);var q=h.parentNode;h=q.insertBefore(h.ownerDocument.createTextNode(" "),h.nextSibling);c.collapse(!1);q.removeChild(h)}}else c.moveToElementText(f),c.collapse(!0);
3==f.nodeType&&(h=F.adjacentNoneTextNode(f),q=h[0],h=h[1],q?(c.moveToElementText(q),c.collapse(!1),"inherit"!=q.contentEditable&&h++):(c.moveToElementText(f.parentNode),c.collapse(!0),c.move("character",1),c.move("character",-1)),e+=h,0<e&&c.move("character",e)!=e&&console.error("Error when moving!"));return c},decomposeTextRange:function(c){var f=E.getEndPoint(c),e=f[0],h=f[1],q=f[0];f=f[1];c.htmlText.length&&(c.htmlText==c.text?f=h+c.text.length:(f=E.getEndPoint(c,!0),q=f[0],f=f[1]));return[e,h,
q,f]},setRange:function(c,f,e,h,q,l){f=E.setEndPoint(c,f,e);c.setEndPoint("StartToStart",f);if(!l)var t=E.setEndPoint(c,h,q);c.setEndPoint("EndToEnd",t||f);return c}},d=F.W3CRange=x(null,{constructor:function(){0<arguments.length?(this.setStart(arguments[0][0],arguments[0][1]),this.setEnd(arguments[0][2],arguments[0][3])):(this.startContainer=this.commonAncestorContainer=null,this.startOffset=0,this.endContainer=null,this.endOffset=0,this.collapsed=!0)},_updateInternal:function(){this.commonAncestorContainer=
this.startContainer!==this.endContainer?F.getCommonAncestor(this.startContainer,this.endContainer):this.startContainer;this.collapsed=this.startContainer===this.endContainer&&this.startOffset==this.endOffset},setStart:function(c,f){f=parseInt(f);if(this.startContainer!==c||this.startOffset!=f)delete this._cachedBookmark,this.startContainer=c,this.startOffset=f,this.endContainer?this._updateInternal():this.setEnd(c,f)},setEnd:function(c,f){f=parseInt(f);if(this.endContainer!==c||this.endOffset!=f)delete this._cachedBookmark,
this.endContainer=c,this.endOffset=f,this.startContainer?this._updateInternal():this.setStart(c,f)},setStartAfter:function(c,f){this._setPoint("setStart",c,f,1)},setStartBefore:function(c,f){this._setPoint("setStart",c,f,0)},setEndAfter:function(c,f){this._setPoint("setEnd",c,f,1)},setEndBefore:function(c,f){this._setPoint("setEnd",c,f,0)},_setPoint:function(c,f,e,h){e=F.getIndex(f,f.parentNode).o;this[c](f.parentNode,e.pop()+h)},_getIERange:function(){var c=(this._body||this.endContainer.ownerDocument.body).createTextRange();
E.setRange(c,this.startContainer,this.startOffset,this.endContainer,this.endOffset,this.collapsed);return c},getBookmark:function(){this._getIERange();return this._cachedBookmark},_select:function(){this._getIERange().select()},deleteContents:function(){var c=this.startContainer,f=this._getIERange();3!==c.nodeType||this.startOffset||this.setStartBefore(c);f.pasteHTML("");this.endContainer=this.startContainer;this.endOffset=this.startOffset;this.collapsed=!0},cloneRange:function(){var c=new d([this.startContainer,
this.startOffset,this.endContainer,this.endOffset]);c._body=this._body;return c},detach:function(){this.startContainer=this.commonAncestorContainer=this._body=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=!0}});H.setObject("dijit.range",F);return F})},"dijit/_editor/html":function(){define(["dojo/_base/array","dojo/_base/lang","dojo/sniff"],function(v,x,H){var F={};x.setObject("dijit._editor.html",F);var E=F.escapeXml=function(d,c){d=d.replace(/&/gm,"\x26amp;").replace(/</gm,
"\x26lt;").replace(/>/gm,"\x26gt;").replace(/"/gm,"\x26quot;");c||(d=d.replace(/'/gm,"\x26#39;"));return d};F.getNodeHtml=function(d){var c=[];F.getNodeHtmlHelper(d,c);return c.join("")};F.getNodeHtmlHelper=function(d,c){switch(d.nodeType){case 1:var f=d.nodeName.toLowerCase();if(!f||"/"==f.charAt(0))return"";c.push("\x3c",f);var e=[],h={},q;if(H("dom-attributes-explicit")||H("dom-attributes-specified-flag"))for(var l=0;q=d.attributes[l++];){var t=q.name;"_dj"===t.substr(0,3)||H("dom-attributes-specified-flag")&&
!q.specified||t in h||(q=q.value,("src"==t||"href"==t)&&d.getAttribute("_djrealurl")&&(q=d.getAttribute("_djrealurl")),8===H("ie")&&"style"===t&&(q=q.replace("HEIGHT:","height:").replace("WIDTH:","width:")),e.push([t,q]),h[t]=q)}else{var y=(/^input$|^img$/i.test(d.nodeName)?d:d.cloneNode(!1)).outerHTML;h=y.match(/[\w-]+=("[^"]*"|'[^']*'|\S*)/gi);y=y.substr(0,y.indexOf("\x3e"));v.forEach(h,function(B){if(B){var b=B.indexOf("\x3d");if(0<b&&(B=B.substring(0,b),"_dj"!=B.substr(0,3)))if("src"!=B&&"href"!=
B||!d.getAttribute("_djrealurl")){switch(B){case "style":var k=d.style.cssText.toLowerCase();break;case "class":k=d.className;break;case "width":if("img"===f){(b=/width=(\S+)/i.exec(y))&&(k=b[1]);break}case "height":if("img"===f){(b=/height=(\S+)/i.exec(y))&&(k=b[1]);break}default:k=d.getAttribute(B)}null!=k&&e.push([B,k.toString()])}else e.push([B,d.getAttribute("_djrealurl")])}},this)}e.sort(function(B,b){return B[0]<b[0]?-1:B[0]==b[0]?0:1});for(h=0;q=e[h++];)c.push(" ",q[0],'\x3d"',"string"===
typeof q[1]?E(q[1],!0):q[1],'"');switch(f){case "br":case "hr":case "img":case "input":case "base":case "meta":case "area":case "basefont":c.push(" /\x3e");break;case "script":c.push("\x3e",d.innerHTML,"\x3c/",f,"\x3e");break;default:c.push("\x3e"),d.hasChildNodes()&&F.getChildrenHtmlHelper(d,c),c.push("\x3c/",f,"\x3e")}break;case 4:case 3:c.push(E(d.nodeValue,!0));break;case 8:c.push("\x3c!--",E(d.nodeValue,!0),"--\x3e");break;default:c.push("\x3c!-- Element not recognized - Type: ",d.nodeType," Name: ",
d.nodeName,"--\x3e")}};F.getChildrenHtml=function(d){var c=[];F.getChildrenHtmlHelper(d,c);return c.join("")};F.getChildrenHtmlHelper=function(d,c){if(d)for(var f=d.childNodes||d,e=!H("ie")||f!==d,h,q=0;h=f[q++];)e&&h.parentNode!=d||F.getNodeHtmlHelper(h,c)};return F})},"widgets/About/common":function(){define([],function(){var v={_defaultContent:'\x3cdiv\x3e\x26nbsp;\x3c/div\x3e\n\t\x3cdiv align\x3d"center"\x3e\n\t\x3cimg id\x3d"img_1560482577021" src\x3d"data:image/png;base64, "\x3e\n\x3c/div\x3e\n',
isDefaultContent:function(x){return x&&x.about&&x.about.aboutContent?x.about.aboutContent===v._defaultContent:!1},setDefaultContent:function(x,H){var F="";x&&x.about&&x.about.aboutContent&&(F=x.about.aboutContent);return F+'\x3cdiv style\x3d"text-align: center;"\x3e'+H.productVersion+window.productVersion+'\x3c/div\x3e\x3cdiv style\x3d"text-align: center;"\x3e'+H.kernelVersion+window.wabVersion+"\x3c/div\x3e"}};return v})},"jimu/dijit/EditorXssFilter":function(){define("dojo/_base/declare dojo/_base/array dijit/_WidgetBase dojo/_base/lang dojo/Evented libs/arcgis-html-sanitizer/arcgis-html-sanitizer".split(" "),
function(v,x,H,F,E,d){var c=null,f=v([H,E],{baseClass:"jimu-editor-xss-filter",declaredClass:"jimu.dijit.EditorXssFilter",sanitizer:null,xss:null,whiteList:{},graphicsWhiteList:{},postCreate:function(){this.whiteList=this._getWhiteList();this.sanitizer=new d({whiteList:this.whiteList,safeAttrValue:F.hitch(this,function(e,h,q,l){return"style"===h?this.xss.friendlyAttrValue(q).replace(/"/g,"'"):"img"===e&&"src"===h?this.xss.escapeAttrValue(q):this.xss.safeAttrValue(e,h,q,l)}),onTag:F.hitch(this,function(e,
h,q){if(q.isWhite&&this._isInWhiteList(e,this.graphicsWhiteList))return h}),onIgnoreTagAttr:F.hitch(this,function(e,h,q,l){if("data-"===h.substr(0,5))return h+'\x3d"'+this.xss.escapeAttrValue(q)+'"'}),onIgnoreTag:F.hitch(this,function(e,h,q){if("o:"===e.substr(0,2)||"!--[if"===e||"!--[endif]--"===e)return h})},!0);this.xss=this.sanitizer.xss},sanitize:function(e){return this.sanitizer.sanitize(e)},_getWhiteList:function(){var e="title height width class style font-family id align text-align".split(" "),
h={div:e,h1:e,h2:e,h3:e,h4:e,h5:e,h6:e,span:e,p:e,s:e,strong:e,em:e,u:e,ol:e,ul:e,li:e,a:["href","target"].concat(e),img:["src","alt","border"].concat(e),blockquote:e,font:["face","size","color"].concat(e),pre:e,code:e,b:e,i:e,wbr:e,video:"autoplay controls loop muted poster preload".split(" ").concat(e),audio:["autoplay","controls","loop","muted","preload"].concat(e),source:["media","src","type"].concat(e),table:["cellpadding","cellspacing","border"].concat(e),tbody:[].concat(e),tr:["valign"].concat(e),
td:["valign","colspan","rowspan","nowrap"].concat(e),th:["valign","colspan","rowspan","nowrap"].concat(e),hr:e,html:e,title:e,link:["rel","href"],style:["type"].concat(e),body:e};this.graphicsWhiteList={animate:[],animateMotion:[],animateTransform:[],circle:[],clipPath:[],"color-profile":[],defs:[],desc:[],discard:[],ellipse:[],feBlend:[],feColorMatrix:[],feComponentTransfer:[],feComposite:[],feConvolveMatrix:[],feDiffuseLighting:[],feDisplacementMap:[],feDistantLight:[],feDropShadow:[],feFlood:[],
feFuncA:[],feFuncB:[],feFuncG:[],feFuncR:[],feGaussianBlur:[],feImage:[],feMerge:[],feMergeNode:[],feMorphology:[],feOffset:[],fePointLight:[],feSpecularLighting:[],feSpotLight:[],feTile:[],feTurbulence:[],filter:[],foreignObject:[],g:[],hatch:[],hatchpath:[],line:[],linearGradient:[],marker:[],mask:[],mesh:[],meshgradient:[],meshpatch:[],meshrow:[],metadata:[],mpath:[],path:[],pattern:[],polygon:[],polyline:[],radialGradient:[],rect:[],set:[],solidcolor:[],stop:[],svg:[],switch:[],symbol:[],text:[],
textPath:[],title:[],tspan:[],use:[],view:[],object:[],canvas:e};return this._extendObjectOfArrays([h,{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],
em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align",
"valign"],tt:[],u:[],ul:[],video:"autoplay controls loop preload src height width".split(" ")},this.graphicsWhiteList])},_extendObjectOfArrays:function(e){var h={};x.forEach(e,function(q){var l=Object.keys(q);x.forEach(l,function(t){Array.isArray(q[t])&&Array.isArray(h[t])?h[t]=h[t].concat(q[t]):h[t]=q[t]},this)},this);return h},_isInWhiteList:function(e,h){h=Object.keys(h);var q=!1;x.forEach(h,function(l){e===l&&(q=!0)},this);return q}});f.getInstance=function(){null===c&&(c=new f);return c};return f})},
"dijit/_editor/plugins/LinkDialog":function(){define("require dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/query dojo/string ../_Plugin ../../form/DropDownButton ../range".split(" "),function(v,x,H,F,E,d,c,f,e,h,q,l,t){var y=H("dijit._editor.plugins.LinkDialog",q,{allowUnsafeHtml:!1,linkFilter:[[/</g,"\x26lt;"]],buttonClass:l,useDefaultCommand:!1,urlRegExp:"((https?|ftps?|file)\\://|./|../|/|)(/[a-zA-Z]{1,1}:/|)(((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)*(?:[a-zA-Z](?:[-\\da-zA-Z]{0,80}[\\da-zA-Z])?)\\.?)|(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])|(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]|(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]|(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])|0[xX]0*[\\da-fA-F]{1,8}|([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}|([\\da-fA-F]{1,4}\\:){6}((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])))(\\:\\d+)?(/(?:[^?#\\s/]+/)*(?:[^?#\\s/]{0,}(?:\\?[^?#\\s/]*)?(?:#.*)?)?)?",
emailRegExp:"\x3c?(mailto\\:)([!#-'*+\\-\\/-9\x3d?A-Z^-~]+[.])*[!#-'*+\\-\\/-9\x3d?A-Z^-~]+@((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)+(?:[a-zA-Z](?:[-\\da-zA-Z]{0,6}[\\da-zA-Z])?)\\.?)|localhost|^[^-][a-zA-Z0-9_-]*\x3e?",htmlTemplate:'\x3ca href\x3d"${urlInput}" _djrealurl\x3d"${urlInput}" target\x3d"${targetSelect}"\x3e${textInput}\x3c/a\x3e',tag:"a",_hostRxp:/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/,_userAtRxp:/^([!#-'*+\-\/-9=?A-Z^-~]+[.])*[!#-'*+\-\/-9=?A-Z^-~]+@/i,
linkDialogTemplate:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_urlInput'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_textInput' name\x3d'textInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_targetSelect'\x3e${target}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect id\x3d'${id}_targetSelect' name\x3d'targetSelect' data-dojo-type\x3d'dijit.form.Select'\x3e\x3coption selected\x3d'selected' value\x3d'_self'\x3e${currentWindow}\x3c/option\x3e\x3coption value\x3d'_blank'\x3e${newWindow}\x3c/option\x3e\x3coption value\x3d'_top'\x3e${topWindow}\x3c/option\x3e\x3coption value\x3d'_parent'\x3e${parentWindow}\x3c/option\x3e\x3c/select\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
_initButton:function(){this.inherited(arguments);this.button.loadDropDown=d.hitch(this,"_loadDropDown");this._connectTagEvents()},_loadDropDown:function(b){v("dojo/i18n ../../TooltipDialog ../../registry ../../form/Button ../../form/Select ../../form/ValidationTextBox dojo/i18n!../../nls/common dojo/i18n!../nls/LinkDialog".split(" "),d.hitch(this,function(k,D,O){var n=this;this.tag="insertImage"==this.command?"img":"a";k=d.delegate(k.getLocalization("dijit","common",this.lang),k.getLocalization("dijit._editor",
"LinkDialog",this.lang));var u=this.dropDown=this.button.dropDown=new D({title:k[this.command+"Title"],ownerDocument:this.editor.ownerDocument,dir:this.editor.dir,execute:d.hitch(this,"setValue"),onOpen:function(){n._onOpenDialog();D.prototype.onOpen.apply(this,arguments)},onCancel:function(){setTimeout(d.hitch(n,"_onCloseDialog"),0)}});k.urlRegExp=this.urlRegExp;k.id=O.getUniqueId(this.editor.id);this._uniqueId=k.id;this._setContent(u.title+"\x3cdiv style\x3d'border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'\x3e\x3c/div\x3e"+
h.substitute(this.linkDialogTemplate,k));u.startup();this._urlInput=O.byId(this._uniqueId+"_urlInput");this._textInput=O.byId(this._uniqueId+"_textInput");this._setButton=O.byId(this._uniqueId+"_setButton");this.own(O.byId(this._uniqueId+"_cancelButton").on("click",d.hitch(this.dropDown,"onCancel")));this._urlInput&&this.own(this._urlInput.on("change",d.hitch(this,"_checkAndFixInput")));this._textInput&&this.own(this._textInput.on("change",d.hitch(this,"_checkAndFixInput")));this._urlRegExp=new RegExp("^"+
this.urlRegExp+"$","i");this._emailRegExp=new RegExp("^"+this.emailRegExp+"$","i");this._urlInput.isValid=d.hitch(this,function(){var z=this._urlInput.get("value");return this._urlRegExp.test(z)||this._emailRegExp.test(z)});this.own(c(u.domNode,"keydown",d.hitch(this,d.hitch(this,function(z){!z||z.keyCode!=E.ENTER||z.shiftKey||z.metaKey||z.ctrlKey||z.altKey||this._setButton.get("disabled")||(u.onExecute(),u.execute(u.get("value")))}))));b()}))},_checkAndFixInput:function(){var b=this,k=this._urlInput.get("value");
this._delayedCheck&&(clearTimeout(this._delayedCheck),this._delayedCheck=null);this._delayedCheck=setTimeout(function(){var D=k,O=!1,n=!1;D&&1<D.length&&(D=d.trim(D),0!==D.indexOf("mailto:")&&(0<D.indexOf("/")?-1===D.indexOf("://")&&"/"!==D.charAt(0)&&D.indexOf("./")&&0!==D.indexOf("../")&&b._hostRxp.test(D)&&(O=!0):b._userAtRxp.test(D)&&(n=!0)));O&&b._urlInput.set("value","http://"+D);n&&b._urlInput.set("value","mailto:"+D);b._setButton.set("disabled",!b._isValid())},250)},_connectTagEvents:function(){this.editor.onLoadDeferred.then(d.hitch(this,
function(){this.own(c(this.editor.editNode,"mouseup",d.hitch(this,"_onMouseUp")));this.own(c(this.editor.editNode,"dblclick",d.hitch(this,"_onDblClick")))}))},_isValid:function(){return this._urlInput.isValid()&&this._textInput.isValid()},_setContent:function(b){this.dropDown.set({parserScope:"dojo",content:b})},_checkValues:function(b){b&&b.urlInput&&(b.urlInput=b.urlInput.replace(/"/g,"\x26quot;"));!this.allowUnsafeHtml&&b&&b.textInput&&("function"===typeof this.linkFilter?b.textInput=this.linkFilter(b.textInput):
x.forEach(this.linkFilter,function(k){b.textInput=b.textInput.replace(k[0],k[1])}));return b},_createlinkEnabledImpl:function(){return!0},setValue:function(b){this._onCloseDialog();if(9>f("ie")){var k=t.getSelection(this.editor.window).getRangeAt(0).endContainer;3===k.nodeType&&(k=k.parentNode);k&&k.nodeName&&k.nodeName.toLowerCase()!==this.tag&&(k=this.editor.selection.getSelectedElement(this.tag));k&&k.nodeName&&k.nodeName.toLowerCase()===this.tag&&this.editor.queryCommandEnabled("unlink")&&(this.editor.selection.selectElementChildren(k),
this.editor.execCommand("unlink"))}b=this._checkValues(b);this.editor.execCommand("inserthtml",h.substitute(this.htmlTemplate,b));e("a",this.editor.document).forEach(function(D){D.innerHTML||F.has(D,"name")||D.parentNode.removeChild(D)},this)},_onCloseDialog:function(){this.editor.focused&&this.editor.focus()},_getCurrentValues:function(b){if(b&&b.tagName.toLowerCase()===this.tag){var k=b.getAttribute("_djrealurl")||b.getAttribute("href");var D=b.getAttribute("target")||"_self";var O=b.textContent||
b.innerText;this.editor.selection.selectElement(b,!0)}else O=this.editor.selection.getSelectedText();return{urlInput:k||"",textInput:O||"",targetSelect:D||""}},_onOpenDialog:function(){if(f("ie")){var b=t.getSelection(this.editor.window);if(b.rangeCount){var k=b.getRangeAt(0);var D=k.endContainer;3===D.nodeType&&(D=D.parentNode);D&&D.nodeName&&D.nodeName.toLowerCase()!==this.tag&&(D=this.editor.selection.getSelectedElement(this.tag));if(!D||D.nodeName&&D.nodeName.toLowerCase()!==this.tag)(b=this.editor.selection.getAncestorElement(this.tag))&&
b.nodeName&&b.nodeName.toLowerCase()==this.tag?(D=b,this.editor.selection.selectElement(D)):k.startContainer===k.endContainer&&(b=k.startContainer.firstChild)&&b.nodeName&&b.nodeName.toLowerCase()==this.tag&&(D=b,this.editor.selection.selectElement(D))}}else D=this.editor.selection.getAncestorElement(this.tag);this.dropDown.reset();this._setButton.set("disabled",!0);this.dropDown.set("value",this._getCurrentValues(D))},_onDblClick:function(b){if(b&&b.target&&(b=b.target,(b.tagName?b.tagName.toLowerCase():
"")===this.tag&&F.get(b,"href"))){var k=this.editor;this.editor.selection.selectElement(b);k.onDisplayChanged();k._updateTimer&&(k._updateTimer.remove(),delete k._updateTimer);k.onNormalizedDisplayChanged();var D=this.button;setTimeout(function(){D.set("disabled",!1);D.loadAndOpenDropDown().then(function(){D.dropDown.focus&&D.dropDown.focus()})},10)}},_onMouseUp:function(){if(f("ff")){var b=this.editor.selection.getAncestorElement(this.tag);if(b){var k=t.getSelection(this.editor.window).getRangeAt(0);
if(k.collapsed&&b.childNodes.length){var D=k.cloneRange();D.selectNodeContents(b.childNodes[b.childNodes.length-1]);D.setStart(b.childNodes[0],0);1!==k.compareBoundaryPoints(D.START_TO_START,D)?k.setStartBefore(b):-1!==k.compareBoundaryPoints(D.END_TO_START,D)&&k.setStartAfter(b)}}}}}),B=H("dijit._editor.plugins.ImgLinkDialog",[y],{linkDialogTemplate:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_urlInput'\x3e${url}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' regExp\x3d'${urlRegExp}' required\x3d'true' id\x3d'${id}_urlInput' name\x3d'urlInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput data-dojo-type\x3d'dijit.form.ValidationTextBox' required\x3d'false' id\x3d'${id}_textInput' name\x3d'textInput' data-dojo-props\x3d'intermediateChanges:true'/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton data-dojo-type\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
htmlTemplate:'\x3cimg src\x3d"${urlInput}" _djrealurl\x3d"${urlInput}" alt\x3d"${textInput}" /\x3e',tag:"img",_getCurrentValues:function(b){if(b&&b.tagName.toLowerCase()===this.tag){var k=b.getAttribute("_djrealurl")||b.getAttribute("src");var D=b.getAttribute("alt");this.editor.selection.selectElement(b,!0)}else D=this.editor.selection.getSelectedText();return{urlInput:k||"",textInput:D||""}},_isValid:function(){return this._urlInput.isValid()},_connectTagEvents:function(){this.inherited(arguments);
this.editor.onLoadDeferred.then(d.hitch(this,function(){this.own(c(this.editor.editNode,"mousedown",d.hitch(this,"_selectTag")))}))},_selectTag:function(b){b&&b.target&&(b=b.target,(b.tagName?b.tagName.toLowerCase():"")===this.tag&&this.editor.selection.selectElement(b))},_checkValues:function(b){b&&b.urlInput&&(b.urlInput=b.urlInput.replace(/"/g,"\x26quot;"));b&&b.textInput&&(b.textInput=b.textInput.replace(/"/g,"\x26quot;"));return b},_onDblClick:function(b){if(b&&b.target&&(b=b.target,(b.tagName?
b.tagName.toLowerCase():"")===this.tag&&F.get(b,"src"))){var k=this.editor;this.editor.selection.selectElement(b);k.onDisplayChanged();k._updateTimer&&(k._updateTimer.remove(),delete k._updateTimer);k.onNormalizedDisplayChanged();var D=this.button;setTimeout(function(){D.set("disabled",!1);D.loadAndOpenDropDown().then(function(){D.dropDown.focus&&D.dropDown.focus()})},10)}}});q.registry.createLink=function(b){var k={command:"createLink",allowUnsafeHtml:"allowUnsafeHtml"in b?b.allowUnsafeHtml:!1};
"linkFilter"in b&&(k.linkFilter=b.linkFilter);return new y(k)};q.registry.insertImage=function(){return new B({command:"insertImage"})};y.ImgLinkDialog=B;return y})},"dijit/_editor/plugins/ViewSource":function(){define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/window ../../focus ../_Plugin ../../form/ToggleButton ../.. ../../registry dojo/i18n!../nls/commands".split(" "),
function(v,x,H,F,E,d,c,f,e,h,q,l,t,y,B,b,k,D){var O=H("dijit._editor.plugins.ViewSource",B,{stripScripts:!0,stripComments:!0,stripIFrames:!0,stripEventHandlers:!0,readOnly:!1,_fsPlugin:null,toggle:function(){l("webkit")&&(this._vsFocused=!0);this.button.set("checked",!this.button.get("checked"))},_initButton:function(){var n=f.getLocalization("dijit._editor","commands"),u=this.editor;this.button=new b({label:n.viewSource,ownerDocument:u.ownerDocument,dir:u.dir,lang:u.lang,showLabel:!1,iconClass:this.iconClassPrefix+
" "+this.iconClassPrefix+"ViewSource",tabIndex:"-1",onChange:h.hitch(this,"_showSource")});this.button.set("readOnly",!1)},setEditor:function(n){this.editor=n;this._initButton();this.removeValueFilterHandles();this._setValueFilterHandle=x.before(this.editor,"setValue",h.hitch(this,function(u){return[this._filter(u)]}));this._getValueFilterHandle=x.after(this.editor,"getValue",h.hitch(this,function(u){return this._filter(u)}));this.editor.addKeyHandler(e.F12,!0,!0,h.hitch(this,function(u){this.button.focus();
this.toggle();u.stopPropagation();u.preventDefault();setTimeout(h.hitch(this,function(){this.editor.focused&&this.editor.focus()}),100)}))},_showSource:function(n){var u=this.editor,z=u._plugins;this._sourceShown=n;var C=this;try{this.sourceArea||this._createSourceView();if(n)u._sourceQueryCommandEnabled=u.queryCommandEnabled,u.queryCommandEnabled=function(L){return"viewsource"===L.toLowerCase()},this.editor.onDisplayChanged(),v.forEach(z,function(L){!L||L instanceof O||!L.isInstanceOf(B)||L.set("disabled",
!0)}),this._fsPlugin&&(this._fsPlugin._getAltViewNode=function(){return C.sourceArea}),this.sourceArea.value=u.get("value"),this.sourceArea.style.height=u.iframe.style.height,this.sourceArea.style.width=u.iframe.style.width,u.iframe.parentNode.style.position="relative",c.set(u.iframe,{position:"absolute",top:0,visibility:"hidden"}),c.set(this.sourceArea,{display:"block"}),this._resizeHandle=q(window,"resize",h.hitch(this,function(){var L=t.getBox(u.ownerDocument);"_prevW"in this&&"_prevH"in this&&
L.w===this._prevW&&L.h===this._prevH||(this._prevW=L.w,this._prevH=L.h,this._resizer&&(clearTimeout(this._resizer),delete this._resizer),this._resizer=setTimeout(h.hitch(this,function(){delete this._resizer;this._resize()}),10))})),setTimeout(h.hitch(this,this._resize),100),this.editor.onNormalizedDisplayChanged(),this.editor.__oldGetValue=this.editor.getValue,this.editor.getValue=h.hitch(this,function(){var L=this.sourceArea.value;return L=this._filter(L)}),this._setListener=x.after(this.editor,
"setValue",h.hitch(this,function(L){this.sourceArea.value=L||""}),!0);else{if(!u._sourceQueryCommandEnabled)return;this._setListener.remove();delete this._setListener;this._resizeHandle.remove();delete this._resizeHandle;this.editor.__oldGetValue&&(this.editor.getValue=this.editor.__oldGetValue,delete this.editor.__oldGetValue);u.queryCommandEnabled=u._sourceQueryCommandEnabled;if(!this._readOnly){var M=this.sourceArea.value;u.beginEditing();u.set("value",M);u.endEditing()}v.forEach(z,function(L){L&&
L.isInstanceOf(B)&&L.set("disabled",!1)});c.set(this.sourceArea,"display","none");c.set(u.iframe,{position:"relative",visibility:"visible"});delete u._sourceQueryCommandEnabled;this.editor.onDisplayChanged()}setTimeout(h.hitch(this,function(){var L=u.domNode.parentNode;L&&(L=D.getEnclosingWidget(L))&&L.resize&&L.resize();u.resize()}),300)}catch(L){console.log(L)}},updateState:function(){this.button.set("disabled",this.get("disabled"))},_resize:function(){var n=this.editor,u=n.getHeaderHeight(),z=
n.getFooterHeight(),C=d.position(n.domNode),M=d.getPadBorderExtents(n.iframe.parentNode),L=d.getMarginExtents(n.iframe.parentNode),Q=d.getPadBorderExtents(n.domNode),p=C.w-Q.w;C=C.h-(u+Q.h+z);this._fsPlugin&&this._fsPlugin.isFullscreen&&(n=t.getBox(n.ownerDocument),p=n.w-Q.w,C=n.h-(u+Q.h+z));d.setMarginBox(this.sourceArea,{w:Math.round(p-(M.w+L.w)),h:Math.round(C-(M.h+L.h))})},_createSourceView:function(){var n=this.editor,u=n._plugins;this.sourceArea=E.create("textarea");this.readOnly&&(F.set(this.sourceArea,
"readOnly",!0),this._readOnly=!0);c.set(this.sourceArea,{padding:"0px",margin:"0px",borderWidth:"0px",borderStyle:"none"});F.set(this.sourceArea,"aria-label",this.editor.id);E.place(this.sourceArea,n.iframe,"before");l("ie")&&n.iframe.parentNode.lastChild!==n.iframe&&c.set(n.iframe.parentNode.lastChild,{width:"0px",height:"0px",padding:"0px",margin:"0px",borderWidth:"0px",borderStyle:"none"});n._viewsource_oldFocus=n.focus;var z=this;n.focus=function(){if(z._sourceShown)z.setSourceAreaCaret();else try{this._vsFocused?
(delete this._vsFocused,y.focus(n.editNode)):n._viewsource_oldFocus()}catch(L){console.log("ViewSource focus code error: "+L)}};var C,M;for(C=0;C<u.length;C++)if((M=u[C])&&("dijit._editor.plugins.FullScreen"===M.declaredClass||M.declaredClass===k._scopeName+"._editor.plugins.FullScreen")){this._fsPlugin=M;break}this._fsPlugin&&(this._fsPlugin._viewsource_getAltViewNode=this._fsPlugin._getAltViewNode,this._fsPlugin._getAltViewNode=function(){return z._sourceShown?z.sourceArea:this._viewsource_getAltViewNode()});
this.own(q(this.sourceArea,"keydown",h.hitch(this,function(L){this._sourceShown&&L.keyCode==e.F12&&L.ctrlKey&&L.shiftKey&&(this.button.focus(),this.button.set("checked",!1),setTimeout(h.hitch(this,function(){n.focus()}),100),L.stopPropagation(),L.preventDefault())})))},_stripScripts:function(n){n&&(n=n.replace(/<\s*script[^>]*>((.|\s)*?)<\\?\/\s*script\s*>/ig,""),n=n.replace(/<\s*script\b([^<>]|\s)*>?/ig,""),n=n.replace(/<[^>]*=(\s|)*[("|')]javascript:[^$1][(\s|.)]*[$1][^>]*>/ig,""));return n},_stripComments:function(n){n&&
(n=n.replace(/\x3c!--(.|\s){1,}?--\x3e/g,""));return n},_stripIFrames:function(n){n&&(n=n.replace(/<\s*iframe[^>]*>((.|\s)*?)<\\?\/\s*iframe\s*>/ig,""));return n},_stripEventHandlers:function(n){if(n){var u=n.match(/<[a-z]+?\b(.*?on.*?(['"]).*?\2.*?)+>/gim);if(u)for(var z=0,C=u.length;z<C;z++){var M=u[z],L=M.replace(/\s+on[a-z]*\s*=\s*(['"])(.*?)\1/igm,"");n=n.replace(M,L)}}return n},_filter:function(n){n&&(this.stripScripts&&(n=this._stripScripts(n)),this.stripComments&&(n=this._stripComments(n)),
this.stripIFrames&&(n=this._stripIFrames(n)),this.stripEventHandlers&&(n=this._stripEventHandlers(n)));return n},removeValueFilterHandles:function(){this._setValueFilterHandle&&(this._setValueFilterHandle.remove(),delete this._setValueFilterHandle);this._getValueFilterHandle&&(this._getValueFilterHandle.remove(),delete this._getValueFilterHandle)},setSourceAreaCaret:function(){var n=this.sourceArea;y.focus(n);this._sourceShown&&!this.readOnly&&(n.setSelectionRange?n.setSelectionRange(0,0):this.sourceArea.createTextRange&&
(n=n.createTextRange(),n.collapse(!0),n.moveStart("character",-99999),n.moveStart("character",0),n.moveEnd("character",0),n.select()))},destroy:function(){this._resizer&&(clearTimeout(this._resizer),delete this._resizer);this._resizeHandle&&(this._resizeHandle.remove(),delete this._resizeHandle);this._setListener&&(this._setListener.remove(),delete this._setListener);this.removeValueFilterHandles();this.inherited(arguments)}});B.registry.viewSource=B.registry.viewsource=function(n){return new O({readOnly:"readOnly"in
n?n.readOnly:!1,stripComments:"stripComments"in n?n.stripComments:!0,stripScripts:"stripScripts"in n?n.stripScripts:!0,stripIFrames:"stripIFrames"in n?n.stripIFrames:!0,stripEventHandlers:"stripEventHandlers"in n?n.stripEventHandlers:!0})};return O})},"dijit/_editor/plugins/FontChoice":function(){define("require dojo/_base/array dojo/_base/declare dojo/dom-construct dojo/i18n dojo/_base/lang dojo/string dojo/store/Memory ../../registry ../../_Widget ../../_TemplatedMixin ../../_WidgetsInTemplateMixin ../../form/FilteringSelect ../_Plugin ../range dojo/i18n!../nls/FontChoice".split(" "),
function(v,x,H,F,E,d,c,f,e,h,q,l,t,y,B){v=H("dijit._editor.plugins._FontDropDown",[h,q,l],{label:"",plainText:!1,templateString:"\x3cspan style\x3d'white-space: nowrap' class\x3d'dijit dijitReset dijitInline'\x3e\x3clabel class\x3d'dijitLeft dijitInline' for\x3d'${selectId}'\x3e${label}\x3c/label\x3e\x3cinput data-dojo-type\x3d'../../form/FilteringSelect' required\x3d'false' data-dojo-props\x3d'labelType:\"html\", labelAttr:\"label\", searchAttr:\"name\"' class\x3d'${comboClass}' tabIndex\x3d'-1' id\x3d'${selectId}' data-dojo-attach-point\x3d'select' value\x3d''/\x3e\x3c/span\x3e",
contextRequire:v,postMixInProperties:function(){this.inherited(arguments);this.strings=E.getLocalization("dijit._editor","FontChoice");this.label=this.strings[this.command];this.id=e.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.selectId=this.id+"_select";this.inherited(arguments)},postCreate:function(){this.select.set("store",new f({idProperty:"value",data:x.map(this.values,function(n){var u=this.strings[n]||n;return{label:this.getLabel(n,u),name:u,value:n}},this)}));this.select.set("value",
"",!1);this.disabled=this.select.get("disabled")},_setValueAttr:function(n,u){u=!1!==u;this.select.set("value",0>x.indexOf(this.values,n)?"":n,u);u||(this.select._lastValueReported=null)},_getValueAttr:function(){return this.select.get("value")},focus:function(){this.select.focus()},_setDisabledAttr:function(n){this._set("disabled",n);this.select.set("disabled",n)}});var b=H("dijit._editor.plugins._FontNameDropDown",v,{generic:!1,command:"fontName",comboClass:"dijitFontNameCombo",postMixInProperties:function(){this.values||
(this.values=this.generic?["serif","sans-serif","monospace","cursive","fantasy"]:["Arial","Times New Roman","Comic Sans MS","Courier New"]);this.inherited(arguments)},getLabel:function(n,u){return this.plainText?u:"\x3cdiv style\x3d'font-family: "+n+"'\x3e"+u+"\x3c/div\x3e"},_normalizeFontName:function(n){var u=this.values;if(!n||!u)return n;var z=n.split(",");if(1<z.length)for(var C=0,M=z.length;C<M;C++){var L=c.trim(z[C]);if(-1<x.indexOf(u,L))return L}return n},_setValueAttr:function(n,u){u=!1!==
u;n=this._normalizeFontName(n);this.generic&&(n={Arial:"sans-serif",Helvetica:"sans-serif",Myriad:"sans-serif",Times:"serif","Times New Roman":"serif","Comic Sans MS":"cursive","Apple Chancery":"cursive",Courier:"monospace","Courier New":"monospace",Papyrus:"fantasy","Estrangelo Edessa":"cursive",Gabriola:"fantasy"}[n]||n);this.inherited(arguments,[n,u])}}),k=H("dijit._editor.plugins._FontSizeDropDown",v,{command:"fontSize",comboClass:"dijitFontSizeCombo",values:[1,2,3,4,5,6,7],getLabel:function(n,
u){return this.plainText?u:"\x3cfont size\x3d"+n+"'\x3e"+u+"\x3c/font\x3e"},_setValueAttr:function(n,u){u=!1!==u;n.indexOf&&-1!=n.indexOf("px")&&(n={10:1,13:2,16:3,18:4,24:5,32:6,48:7}[parseInt(n,10)]||n);this.inherited(arguments,[n,u])}}),D=H("dijit._editor.plugins._FormatBlockDropDown",v,{command:"formatBlock",comboClass:"dijitFormatBlockCombo",values:"noFormat p h1 h2 h3 pre".split(" "),postCreate:function(){this.inherited(arguments);this.set("value","noFormat",!1)},getLabel:function(n,u){return this.plainText||
"noFormat"==n?u:"\x3c"+n+"\x3e"+u+"\x3c/"+n+"\x3e"},_execCommand:function(n,u,z){if("noFormat"===z){var C;if((u=B.getSelection(n.window))&&0<u.rangeCount&&(z=u.getRangeAt(0),z)){u=z.startContainer;for(C=z.endContainer;u&&u!==n.editNode&&u!==n.document.body&&1!==u.nodeType;)u=u.parentNode;for(;C&&C!==n.editNode&&C!==n.document.body&&1!==C.nodeType;)C=C.parentNode;var M=d.hitch(this,function(m,G){if(m.childNodes&&m.childNodes.length){var K;for(K=0;K<m.childNodes.length;K++){var a=m.childNodes[K];if(1==
a.nodeType&&n.selection.inSelection(a)){var g=a.tagName?a.tagName.toLowerCase():"";-1!==x.indexOf(this.values,g)&&G.push(a);M(a,G)}}}});z=d.hitch(this,function(m){if(m&&m.length){for(n.beginEditing();m.length;)this._removeFormat(n,m.pop());n.endEditing()}});var L=[];if(u==C){for(C=u;C&&C!==n.editNode&&C!==n.document.body;){if(1==C.nodeType){var Q=C.tagName?C.tagName.toLowerCase():"";if(-1!==x.indexOf(this.values,Q)){var p=C;break}}C=C.parentNode}M(u,L);p&&(L=[p].concat(L))}else for(C=u;n.selection.inSelection(C);)1==
C.nodeType&&(Q=C.tagName?C.tagName.toLowerCase():"",-1!==x.indexOf(this.values,Q)&&L.push(C),M(C,L)),C=C.nextSibling;z(L);n.onDisplayChanged()}}else n.execCommand(u,z)},_removeFormat:function(n,u){if(n.customUndo){for(;u.firstChild;)F.place(u.firstChild,u,"before");u.parentNode.removeChild(u)}else{n.selection.selectElementChildren(u);var z=n.selection.getSelectedHtml();n.selection.selectElement(u);n.execCommand("inserthtml",z||"")}}}),O=H("dijit._editor.plugins.FontChoice",y,{useDefaultCommand:!1,
_initButton:function(){var n={fontName:b,fontSize:k,formatBlock:D}[this.command],u=this.params;this.params.custom&&(u.values=this.params.custom);var z=this.editor;this.button=new n(d.delegate({dir:z.dir,lang:z.lang},u));this.own(this.button.select.on("change",d.hitch(this,function(C){this.editor.focused&&this.editor.focus();"fontName"==this.command&&-1!=C.indexOf(" ")&&(C="'"+C+"'");this.button._execCommand?this.button._execCommand(this.editor,this.command,C):this.editor.execCommand(this.command,
C)})))},updateState:function(){var n=this.editor,u=this.command;if(n&&n.isLoaded&&u.length&&this.button){var z=this.get("disabled");this.button.set("disabled",z);if(!z){try{var C=n.queryCommandValue(u)||""}catch(L){C=""}(z=d.isString(C)&&(C.match(/'([^']*)'/)||C.match(/"([^"]*)"/)))&&(C=z[1]);"fontSize"!==u||C||(C=3);if("formatBlock"===u)if(C&&"p"!=C)0>x.indexOf(this.button.values,C)&&(C="noFormat");else{C=null;if((u=B.getSelection(this.editor.window))&&0<u.rangeCount&&(u=u.getRangeAt(0)))var M=u.endContainer;
for(;M&&M!==n.editNode&&M!==n.document;){if((u=M.tagName?M.tagName.toLowerCase():"")&&-1<x.indexOf(this.button.values,u)){C=u;break}M=M.parentNode}C||(C="noFormat")}C!==this.button.get("value")&&this.button.set("value",C,!1)}}}});x.forEach(["fontName","fontSize","formatBlock"],function(n){y.registry[n]=function(u){return new O({command:n,plainText:u.plainText})}});O._FontDropDown=v;O._FontNameDropDown=b;O._FontSizeDropDown=k;O._FormatBlockDropDown=D;return O})},"dojox/editor/plugins/Preview":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/form/Button dojo/_base/connect dojo/_base/declare dojo/i18n dojo/i18n!dojox/editor/plugins/nls/Preview".split(" "),
function(v,x,H,F){var E=v.declare("dojox.editor.plugins.Preview",F,{useDefaultCommand:!1,styles:"",stylesheets:null,iconClassPrefix:"dijitAdditionalEditorIcon",_initButton:function(){this._nlsResources=v.i18n.getLocalization("dojox.editor.plugins","Preview");this.button=new x.form.Button({label:this._nlsResources.preview,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"Preview",tabIndex:"-1",onClick:v.hitch(this,"_preview")})},setEditor:function(d){this.editor=d;this._initButton()},
updateState:function(){this.button.set("disabled",this.get("disabled"))},_preview:function(){try{var d=this.editor.get("value"),c="\t\t\x3cmeta http-equiv\x3d'Content-Type' content\x3d'text/html; charset\x3dUTF-8'\x3e\n",f;if(this.stylesheets)for(f=0;f<this.stylesheets.length;f++)c+="\t\t\x3clink rel\x3d'stylesheet' type\x3d'text/css' href\x3d'"+this.stylesheets[f]+"'\x3e\n";this.styles&&(c+="\t\t\x3cstyle\x3e"+this.styles+"\x3c/style\x3e\n");d="\x3chtml\x3e\n\t\x3chead\x3e\n"+c+"\t\x3c/head\x3e\n\t\x3cbody\x3e\n"+
d+"\n\t\x3c/body\x3e\n\x3c/html\x3e";var e=window.open("javascript: ''",this._nlsResources.preview,"status\x3d1,menubar\x3d0,location\x3d0,toolbar\x3d0");e.document.open();e.document.write(d);e.document.close()}catch(h){console.warn(h)}}});v.subscribe(x._scopeName+".Editor.getPlugin",null,function(d){d.plugin||"preview"!==d.args.name.toLowerCase()||(d.plugin=new E({styles:"styles"in d.args?d.args.styles:"",stylesheets:"stylesheets"in d.args?d.args.stylesheets:null}))});return E})},"dijit/_editor/plugins/TextColor":function(){define("require dojo/colors dojo/_base/declare dojo/_base/lang ../_Plugin ../../form/DropDownButton".split(" "),
function(v,x,H,F,E,d){var c=H("dijit._editor.plugins.TextColor",E,{buttonClass:d,colorPicker:"dijit/ColorPalette",useDefaultCommand:!1,_initButton:function(){this.command=this.name;this.inherited(arguments);var f=this;this.button.loadDropDown=function(e){function h(q){f.button.dropDown=new q({dir:f.editor.dir,ownerDocument:f.editor.ownerDocument,value:f.value,onChange:function(l){f.editor.execCommand(f.command,l)},onExecute:function(){f.editor.execCommand(f.command,this.get("value"))}});e()}"string"==
typeof f.colorPicker?v([f.colorPicker],h):h(f.colorPicker)}},updateState:function(){var f=this.editor,e=this.command;if(f&&f.isLoaded&&e.length){if(this.button){var h=this.get("disabled");this.button.set("disabled",h);if(h)return;try{var q=f.queryCommandValue(e)||""}catch(l){q=""}}""==q&&(q="#000000");"transparent"==q&&(q="#ffffff");"string"==typeof q?-1<q.indexOf("rgb")&&(q=x.fromRgb(q).toHex()):(q=((q&255)<<16|q&65280|(q&16711680)>>>16).toString(16),q="#000000".slice(0,7-q.length)+q);this.value=
q;(f=this.button.dropDown)&&f.get&&q!==f.get("value")&&f.set("value",q,!1)}}});E.registry.foreColor=function(f){return new c(f)};E.registry.hiliteColor=function(f){return new c(f)};return c})},"dojox/editor/plugins/ToolbarLineBreak":function(){define("dojo dijit dojox dijit/_Widget dijit/_TemplatedMixin dijit/_editor/_Plugin dojo/_base/declare".split(" "),function(v,x,H,F,E,d,c){var f=c("dojox.editor.plugins.ToolbarLineBreak",[F,E],{templateString:"\x3cspan class\x3d'dijit dijitReset'\x3e\x3cbr\x3e\x3c/span\x3e",
postCreate:function(){v.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}});v.subscribe(x._scopeName+".Editor.getPlugin",null,function(e){if(!e.plugin){var h=e.args.name.toLowerCase();if("||"===h||"toolbarlinebreak"===h)e.plugin=new d({button:new f,setEditor:function(q){this.editor=q}})}});return f})},"dojox/editor/plugins/FindReplace":function(){define("dojo dijit dojox dijit/_base/manager dijit/_base/popup dijit/_Widget dijit/_TemplatedMixin dijit/_KeyNavContainer dijit/_WidgetsInTemplateMixin dijit/TooltipDialog dijit/Toolbar dijit/form/CheckBox dijit/form/_TextBoxMixin dijit/form/TextBox dijit/_editor/_Plugin dijit/form/Button dijit/form/DropDownButton dijit/form/ToggleButton ./ToolbarLineBreak dojo/_base/connect dojo/_base/declare dojo/i18n dojo/string dojo/i18n!dojox/editor/plugins/nls/FindReplace".split(" "),
function(v,x,H,F,E,d,c,f,e,h,q,l,t,y,B){v.experimental("dojox.editor.plugins.FindReplace");var b=v.declare("dojox.editor.plugins._FindReplaceCloseBox",[d,c,e],{btnId:"",widget:null,widgetsInTemplate:!0,templateString:"\x3cspan style\x3d'float: right' class\x3d'dijitInline' tabindex\x3d'-1'\x3e\x3cbutton class\x3d'dijit dijitReset dijitInline' id\x3d'${btnId}' dojoAttachPoint\x3d'button' dojoType\x3d'dijit.form.Button' tabindex\x3d'-1' iconClass\x3d'dijitEditorIconsFindReplaceClose' showLabel\x3d'false'\x3eX\x3c/button\x3e\x3c/span\x3e",
postMixInProperties:function(){this.id=x.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.btnId=this.id+"_close";this.inherited(arguments)},startup:function(){this.connect(this.button,"onClick","onClick")},onClick:function(){}}),k=v.declare("dojox.editor.plugins._FindReplaceTextBox",[d,c,e],{textId:"",label:"",toolTip:"",widget:null,widgetsInTemplate:!0,templateString:"\x3cspan style\x3d'white-space: nowrap' class\x3d'dijit dijitReset dijitInline dijitEditorFindReplaceTextBox' title\x3d'${tooltip}' tabindex\x3d'-1'\x3e\x3clabel class\x3d'dijitLeft dijitInline' for\x3d'${textId}' tabindex\x3d'-1'\x3e${label}\x3c/label\x3e\x3cinput dojoType\x3d'dijit.form.TextBox' intermediateChanges\x3d'true' class\x3d'focusTextBox' tabIndex\x3d'0' id\x3d'${textId}' dojoAttachPoint\x3d'textBox, focusNode' value\x3d'' dojoAttachEvent\x3d'onKeyPress: _onKeyPress'/\x3e\x3c/span\x3e",
postMixInProperties:function(){this.id=x.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.textId=this.id+"_text";this.inherited(arguments)},postCreate:function(){this.textBox.set("value","");this.disabled=this.textBox.get("disabled");this.connect(this.textBox,"onChange","onChange");v.attr(this.textBox.textbox,"formnovalidate","true")},_setValueAttr:function(u){this.value=u;this.textBox.set("value",u)},focus:function(){this.textBox.focus()},_setDisabledAttr:function(u){this.disabled=u;this.textBox.set("disabled",
u)},onChange:function(u){this.value=u},_onKeyPress:function(u){var z=0,C=0;!u.target||u.ctrlKey||u.altKey||u.shiftKey||(u.keyCode==v.keys.LEFT_ARROW?(z=u.target.selectionStart,C=u.target.selectionEnd,z<C&&(x.selectInputText(u.target,z,z),v.stopEvent(u))):u.keyCode==v.keys.RIGHT_ARROW&&(z=u.target.selectionStart,C=u.target.selectionEnd,z<C&&(x.selectInputText(u.target,C,C),v.stopEvent(u))))}}),D=v.declare("dojox.editor.plugins._FindReplaceCheckBox",[d,c,e],{checkId:"",label:"",tooltip:"",widget:null,
widgetsInTemplate:!0,templateString:"\x3cspan style\x3d'white-space: nowrap' tabindex\x3d'-1' class\x3d'dijit dijitReset dijitInline dijitEditorFindReplaceCheckBox' title\x3d'${tooltip}' \x3e\x3cinput dojoType\x3d'dijit.form.CheckBox' tabIndex\x3d'0' id\x3d'${checkId}' dojoAttachPoint\x3d'checkBox, focusNode' value\x3d''/\x3e\x3clabel tabindex\x3d'-1' class\x3d'dijitLeft dijitInline' for\x3d'${checkId}'\x3e${label}\x3c/label\x3e\x3c/span\x3e",postMixInProperties:function(){this.id=x.getUniqueId(this.declaredClass.replace(/\./g,
"_"));this.checkId=this.id+"_check";this.inherited(arguments)},postCreate:function(){this.checkBox.set("checked",!1);this.disabled=this.checkBox.get("disabled");this.checkBox.isFocusable=function(){return!1}},_setValueAttr:function(u){this.checkBox.set("value",u)},_getValueAttr:function(){return this.checkBox.get("value")},focus:function(){this.checkBox.focus()},_setDisabledAttr:function(u){this.disabled=u;this.checkBox.set("disabled",u)}}),O=v.declare("dojox.editor.plugins._FindReplaceToolbar",q,
{postCreate:function(){this.connectKeyNavHandlers([],[]);this.connect(this.containerNode,"onclick","_onToolbarEvent");this.connect(this.containerNode,"onkeydown","_onToolbarEvent");v.addClass(this.domNode,"dijitToolbar")},addChild:function(u,z){x._KeyNavContainer.superclass.addChild.apply(this,arguments)},_onToolbarEvent:function(u){u.stopPropagation()}}),n=v.declare("dojox.editor.plugins.FindReplace",[B],{buttonClass:x.form.ToggleButton,iconClassPrefix:"dijitEditorIconsFindReplace",editor:null,button:null,
_frToolbar:null,_closeBox:null,_findField:null,_replaceField:null,_findButton:null,_replaceButton:null,_replaceAllButton:null,_caseSensitive:null,_backwards:null,_promDialog:null,_promDialogTimeout:null,_strings:null,_bookmark:null,_initButton:function(){this._strings=v.i18n.getLocalization("dojox.editor.plugins","FindReplace");this.button=new x.form.ToggleButton({label:this._strings.findReplace,showLabel:!1,iconClass:this.iconClassPrefix+" dijitEditorIconFindString",tabIndex:"-1",onChange:v.hitch(this,
"_toggleFindReplace")});v.isOpera&&this.button.set("disabled",!0);this.connect(this.button,"set",v.hitch(this,function(u,z){"disabled"===u&&this._toggleFindReplace(!z&&this._displayed,!0,!0)}))},setEditor:function(u){this.editor=u;this._initButton()},toggle:function(){this.button.set("checked",!this.button.get("checked"))},_toggleFindReplace:function(u,z,C){var M=v.marginBox(this.editor.domNode);u&&!v.isOpera?(v.style(this._frToolbar.domNode,"display","block"),this._populateFindField(),z||(this._displayed=
!0)):(v.style(this._frToolbar.domNode,"display","none"),z||(this._displayed=!1),C||this.editor.focus());this.editor.resize({h:M.h})},_populateFindField:function(){var u=this.editor._sCall("getSelectedText",[null]);this._findField&&this._findField.textBox&&(u&&this._findField.textBox.set("value",u),this._findField.textBox.focus(),x.selectInputText(this._findField.textBox.focusNode))},setToolbar:function(u){this.inherited(arguments);if(!v.isOpera){var z=this._frToolbar=new O;v.style(z.domNode,"display",
"none");v.place(z.domNode,u.domNode,"after");z.startup();this._closeBox=new b;z.addChild(this._closeBox);this._findField=new k({label:this._strings.findLabel,tooltip:this._strings.findTooltip});z.addChild(this._findField);this._replaceField=new k({label:this._strings.replaceLabel,tooltip:this._strings.replaceTooltip});z.addChild(this._replaceField);z.addChild(new H.editor.plugins.ToolbarLineBreak);this._findButton=new x.form.Button({label:this._strings.findButton,showLabel:!0,iconClass:this.iconClassPrefix+
" dijitEditorIconFind"});this._findButton.titleNode.title=this._strings.findButtonTooltip;z.addChild(this._findButton);this._replaceButton=new x.form.Button({label:this._strings.replaceButton,showLabel:!0,iconClass:this.iconClassPrefix+" dijitEditorIconReplace"});this._replaceButton.titleNode.title=this._strings.replaceButtonTooltip;z.addChild(this._replaceButton);this._replaceAllButton=new x.form.Button({label:this._strings.replaceAllButton,showLabel:!0,iconClass:this.iconClassPrefix+" dijitEditorIconReplaceAll"});
this._replaceAllButton.titleNode.title=this._strings.replaceAllButtonTooltip;z.addChild(this._replaceAllButton);this._caseSensitive=new D({label:this._strings.matchCase,tooltip:this._strings.matchCaseTooltip});z.addChild(this._caseSensitive);this._backwards=new D({label:this._strings.backwards,tooltip:this._strings.backwardsTooltip});z.addChild(this._backwards);this._findButton.set("disabled",!0);this._replaceButton.set("disabled",!0);this._replaceAllButton.set("disabled",!0);this.connect(this._findField,
"onChange","_checkButtons");this.connect(this._findField,"onKeyDown","_onFindKeyDown");this.connect(this._replaceField,"onKeyDown","_onReplaceKeyDown");this.connect(this._findButton,"onClick","_find");this.connect(this._replaceButton,"onClick","_replace");this.connect(this._replaceAllButton,"onClick","_replaceAll");this.connect(this._closeBox,"onClick","toggle");this._promDialog=new x.TooltipDialog;this._promDialog.startup();this._promDialog.set("content","")}},_checkButtons:function(){this._findField.get("value")?
(this._findButton.set("disabled",!1),this._replaceButton.set("disabled",!1),this._replaceAllButton.set("disabled",!1)):(this._findButton.set("disabled",!0),this._replaceButton.set("disabled",!0),this._replaceAllButton.set("disabled",!0))},_onFindKeyDown:function(u){u.keyCode==v.keys.ENTER&&(this._find(),v.stopEvent(u))},_onReplaceKeyDown:function(u){u.keyCode==v.keys.ENTER&&(this._replace()||this._replace(),v.stopEvent(u))},_find:function(u){var z=this._findField.get("value")||"";if(z){var C=this._caseSensitive.get("value"),
M=this._backwards.get("value");z=this._findText(z,C,M);!z&&u&&(this._promDialog.set("content",v.string.substitute(this._strings.eofDialogText,{0:this._strings.eofDialogTextFind})),x.popup.open({popup:this._promDialog,around:this._findButton.domNode}),this._promDialogTimeout=setTimeout(v.hitch(this,function(){clearTimeout(this._promDialogTimeout);this._promDialogTimeout=null;x.popup.close(this._promDialog)}),3E3),setTimeout(v.hitch(this,function(){this.editor.focus()}),0));return z}return!1},_replace:function(u){var z=
!1,C=this.editor;C.focus();var M=this._findField.get("value")||"",L=this._replaceField.get("value")||"";if(M){var Q=this._caseSensitive.get("value"),p=this._backwards.get("value"),m=C._sCall("getSelectedText",[null]);v.isMoz&&(M=v.trim(M),m=v.trim(m));M=this._filterRegexp(M,!Q);m&&M.test(m)&&(C.execCommand("inserthtml",L),z=!0,p&&(this._findText(L,Q,p),C._sCall("collapse",[!0])));!this._find(!1)&&u&&(this._promDialog.set("content",v.string.substitute(this._strings.eofDialogText,{0:this._strings.eofDialogTextReplace})),
x.popup.open({popup:this._promDialog,around:this._replaceButton.domNode}),this._promDialogTimeout=setTimeout(v.hitch(this,function(){clearTimeout(this._promDialogTimeout);this._promDialogTimeout=null;x.popup.close(this._promDialog)}),3E3),setTimeout(v.hitch(this,function(){this.editor.focus()}),0));return z}return null},_replaceAll:function(u){var z=0;this._backwards.get("value")?this.editor.placeCursorAtEnd():this.editor.placeCursorAtStart();this._replace(!1)&&z++;var C=v.hitch(this,function(){this._replace(!1)?
(z++,setTimeout(C,10)):u&&(this._promDialog.set("content",v.string.substitute(this._strings.replaceDialogText,{0:""+z})),x.popup.open({popup:this._promDialog,around:this._replaceAllButton.domNode}),this._promDialogTimeout=setTimeout(v.hitch(this,function(){clearTimeout(this._promDialogTimeout);this._promDialogTimeout=null;x.popup.close(this._promDialog)}),3E3),setTimeout(v.hitch(this,function(){this._findField.focus();this._findField.textBox.focusNode.select()}),0))});C()},_findText:function(u,z,
C){var M=this.editor,L=M.window,Q=!1;if(u)if(L.find)Q=L.find(u,z,C,!1,!1,!1,!1);else{var p=M.document;if(p.selection||L.getSelection)if(this.editor.focus(),M=p.body.createTextRange(),Q=M.duplicate(),L.getSelection().getRangeAt(0),(p=p.selection?p.selection.createRange():null)?C?M.setEndPoint("EndToStart",p):M.setEndPoint("StartToEnd",p):this._bookmark&&(L=L.getSelection().toString(),M.moveToBookmark(this._bookmark),M.text!=L?(M=Q.duplicate(),this._bookmark=null):(C?Q.setEndPoint("EndToStart",M):Q.setEndPoint("StartToEnd",
M),M=Q.duplicate())),z=z?4:0,C&&(z|=1),Q=M.findText(u,M.text.length,z))M.select(),this._bookmark=M.getBookmark()}return Q},_filterRegexp:function(u,z){for(var C="",M=null,L=0;L<u.length;L++)switch(M=u.charAt(L),M){case "\\":C+=M;L++;C+=u.charAt(L);break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":C+="\\";default:C+=M}C="^"+C+"$";return z?new RegExp(C,"mi"):new RegExp(C,"m")},updateState:function(){this.button.set("disabled",this.get("disabled"))},
destroy:function(){this.inherited(arguments);this._promDialogTimeout&&(clearTimeout(this._promDialogTimeout),this._promDialogTimeout=null,x.popup.close(this._promDialog));this._frToolbar&&(this._frToolbar.destroyRecursive(),this._frToolbar=null);this._promDialog&&(this._promDialog.destroyRecursive(),this._promDialog=null)}});n._FindReplaceCloseBox=b;n._FindReplaceTextBox=k;n._FindReplaceCheckBox=D;n._FindReplaceToolbar=O;v.subscribe(x._scopeName+".Editor.getPlugin",null,function(u){u.plugin||"findreplace"!==
u.args.name.toLowerCase()||(u.plugin=new n({}))});return n})},"dojox/editor/plugins/PasteFromWord":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/_base/manager dijit/_editor/RichText dijit/form/Button dijit/Dialog dojox/html/format dojo/_base/connect dojo/_base/declare dojo/i18n dojo/string dojo/i18n!dojox/editor/plugins/nls/PasteFromWord dojo/i18n!dijit/nls/common dojo/i18n!dijit/_editor/nls/commands".split(" "),function(v,x,H,F){var E=v.declare("dojox.editor.plugins.PasteFromWord",
F,{iconClassPrefix:"dijitAdditionalEditorIcon",width:"400px",height:"300px",_template:"\x3cdiv class\x3d'dijitPasteFromWordEmbeddedRTE'\x3e\x3cdiv style\x3d'width: ${width}; padding-top: 5px; padding-bottom: 5px;'\x3e${instructions}\x3c/div\x3e\x3cdiv id\x3d'${uId}_rte' style\x3d'width: ${width}; height: ${height}'\x3e\x3c/div\x3e\x3ctable style\x3d'width: ${width}' tabindex\x3d'-1'\x3e\x3ctbody\x3e\x3ctr\x3e\x3ctd align\x3d'center'\x3e\x3cbutton type\x3d'button' dojoType\x3d'dijit.form.Button' id\x3d'${uId}_paste'\x3e${paste}\x3c/button\x3e\x26nbsp;\x3cbutton type\x3d'button' dojoType\x3d'dijit.form.Button' id\x3d'${uId}_cancel'\x3e${buttonCancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e\x3c/div\x3e",
_filters:[{regexp:/(<meta\s*[^>]*\s*>)|(<\s*link\s* href="file:[^>]*\s*>)|(<\/?\s*\w+:[^>]*\s*>)/gi,handler:""},{regexp:/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,handler:""},{regexp:/(class="Mso[^"]*")|(\x3c!--(.|\s){1,}?--\x3e)/gi,handler:""},{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:/(<\s*script[^>]*>((.|\s)*?)<\\?\/\s*script\s*>)|(<\s*script\b([^<>]|\s)*>?)|(<[^>]*=(\s|)*[("|')]javascript:[^$1][(\s|.)]*[$1][^>]*>)/ig,handler:""},{regexp:/<(\/?)o:p[^>]*>/gi,handler:""}],_initButton:function(){this._filters=this._filters.slice(0);var d=v.i18n.getLocalization("dojox.editor.plugins","PasteFromWord");v.mixin(d,v.i18n.getLocalization("dijit","common"));v.mixin(d,v.i18n.getLocalization("dijit._editor","commands"));this.button=new x.form.Button({label:d.pasteFromWord,
showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"PasteFromWord",tabIndex:"-1",onClick:v.hitch(this,"_openDialog")});this._uId=x.getUniqueId(this.editor.id);d.uId=this._uId;d.width=this.width||"400px";d.height=this.height||"300px";this._dialog=(new x.Dialog({title:d.pasteFromWord})).placeAt(v.body());this._dialog.set("content",v.string.substitute(this._template,d));v.style(v.byId(this._uId+"_rte"),"opacity",.001);this.connect(x.byId(this._uId+"_paste"),"onClick","_paste");this.connect(x.byId(this._uId+
"_cancel"),"onClick","_cancel");this.connect(this._dialog,"onHide","_clearDialog")},updateState:function(){this.button.set("disabled",this.get("disabled"))},setEditor:function(d){this.editor=d;this._initButton()},_openDialog:function(){this._dialog.show();this._rte||setTimeout(v.hitch(this,function(){this._rte=new x._editor.RichText({height:this.height||"300px"},this._uId+"_rte");this._rte.startup();this._rte.onLoadDeferred.addCallback(v.hitch(this,function(){v.animateProperty({node:this._rte.domNode,
properties:{opacity:{start:.001,end:1}}}).play()}))}),100)},_paste:function(){var d=H.html.format.prettyPrint(this._rte.get("value"));this._dialog.hide();var c;for(c=0;c<this._filters.length;c++){var f=this._filters[c];d=d.replace(f.regexp,f.handler)}d=H.html.format.prettyPrint(d);this.editor.focus();this.editor.execCommand("inserthtml",d)},_cancel:function(){this._dialog.hide()},_clearDialog:function(){this._rte.set("value","")},destroy:function(){this._rte&&this._rte.destroy();this._dialog&&this._dialog.destroyRecursive();
delete this._dialog;delete this._rte;this.inherited(arguments)}});v.subscribe(x._scopeName+".Editor.getPlugin",null,function(d){d.plugin||"pastefromword"!==d.args.name.toLowerCase()||(d.plugin=new E({width:"width"in d.args?d.args.width:"400px",height:"height"in d.args?d.args.width:"300px"}))});return E})},"dojox/html/format":function(){define(["dojo/_base/kernel","./entities","dojo/_base/array","dojo/_base/window","dojo/_base/sniff"],function(v,x,H,F,E){var d=v.getObject("dojox.html.format",!0);d.prettyPrint=
function(c,f,e,h,q){var l=[],t=0,y=[],B="\t",b="",k=[],D,O=/[=]([^"']+?)(\s|>)/g,n=/style=("[^"]*"|'[^']*'|\S*)/gi,u=/[\w-]+=("[^"]*"|'[^']*'|\S*)/gi;if(f&&0<f&&10>f)for(B="",D=0;D<f;D++)B+=" ";f=F.doc.createElement("div");f.innerHTML=c;var z=x.encode,C=x.decode,M=f.ownerDocument.createElement("div"),L=function(g){g=g.cloneNode(!1);M.appendChild(g);g=M.innerHTML;M.innerHTML="";return g},Q=function(){var g;for(g=0;g<t;g++)l.push(B)},p=function(){l.push("\n")},m=function(g){var r;g=g.split("\n");for(r=
0;r<g.length;r++)g[r]=v.trim(g[r]);g=g.join(" ");g=v.trim(g);if(""!==g){var A=[];if(e&&0<e){var w="";for(r=0;r<t;r++)w+=B;r=w.length;w=e;for(e>r&&(w-=r);g;)if(g.length>e){for(r=w;0<r&&" "!==g.charAt(r);r--);if(!r)for(r=w;r<g.length&&" "!==g.charAt(r);r++);var I=g.substring(0,r);I=v.trim(I);g=v.trim(g.substring(r==g.length?g.length:r+1,g.length));if(I){var J="";for(r=0;r<t;r++)J+=B;I=J+I+"\n"}A.push(I)}else{J="";for(r=0;r<t;r++)J+=B;g=J+g+"\n";A.push(g);g=null}return A.join("")}J="";for(r=0;r<t;r++)J+=
B;return J+g+"\n"}return""},G=function(g){if(g){var r=g;r&&(r=r.replace(/&quot;/gi,'"'),r=r.replace(/&gt;/gi,"\x3e"),r=r.replace(/&lt;/gi,"\x3c"),r=r.replace(/&amp;/gi,"\x26"));var A;g=0;var w=r.split("\n"),I=[];for(r=0;r<w.length;r++){var J=w[r],P=-1<J.indexOf("\n");if(J=v.trim(J)){P=g;for(A=0;A<J.length;A++){var N=J.charAt(A);"{"===N?g++:"}"===N&&(g--,P=g)}N="";for(A=0;A<t+P;A++)N+=B;I.push(N+J+"\n")}else P&&0===r&&I.push("\n")}g=I.join("")}return g},K=function(g){var r=g.nodeName.toLowerCase(),
A=v.trim(L(g));g=A.substring(0,A.indexOf("\x3e")+1);g=g.replace(O,'\x3d"$1"$2');g=g.replace(n,function(I){var J=I.substring(0,6);I=I.substring(6,I.length);var P=I.charAt(0);I=v.trim(I.substring(1,I.length-1));I=I.split(";");var N=[];H.forEach(I,function(R){if(R=v.trim(R))R=R.substring(0,R.indexOf(":")).toLowerCase()+R.substring(R.indexOf(":"),R.length),N.push(R)});N=N.sort();I=N.join("; ");var S=v.trim(I);return S&&";"!==S?J+P+(I+";")+P:""});var w=[];g=g.replace(u,function(I){w.push(v.trim(I));return""});
w=w.sort();g="\x3c"+r;w.length&&(g+=" "+w.join(" "));-1!=A.indexOf("\x3c/")?(y.push(r),g+="\x3e"):(g=q?g+" /\x3e":g+"\x3e",y.push(!1));a:switch(r){case "a":case "b":case "strong":case "s":case "strike":case "i":case "u":case "em":case "sup":case "sub":case "span":case "font":case "big":case "cite":case "q":case "small":r=!0;break a;default:r=!1}k.push(r);b&&!r&&(l.push(m(b)),b="");r?b+=g:(Q(),l.push(g),p(),t++)},a=function(g){var r=g.childNodes;if(r){var A;for(A=0;A<r.length;A++){var w=r[A];if(1===
w.nodeType){var I=v.trim(w.tagName.toLowerCase());E("ie")&&w.parentNode!=g||I&&"/"===I.charAt(0)||(K(w),"script"===I?l.push(G(w.innerHTML)):"pre"===I?(w=w.innerHTML,E("mozilla")&&(w=w.replace("\x3cbr\x3e","\n"),w=w.replace("\x3cpre\x3e",""),w=w.replace("\x3c/pre\x3e","")),"\n"!==w.charAt(w.length-1)&&(w+="\n"),l.push(w)):a(w),w=k.pop(),b&&!w&&(l.push(m(b)),b=""),(I=y.pop())?(I="\x3c/"+I+"\x3e",w?b+=I:(t--,Q(),l.push(I),p())):t--)}else 3===w.nodeType||4===w.nodeType?b+=z(w.nodeValue,h):8===w.nodeType&&
(w=C(w.nodeValue,h),Q(),l.push("\x3c!--"),p(),t++,l.push(m(w)),t--,Q(),l.push("--\x3e"),p())}}};a(f);b&&(l.push(m(b)),b="");return l.join("")};return d})},"dojox/editor/plugins/InsertAnchor":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/_base/manager dijit/_editor/range dijit/_Templated dijit/TooltipDialog dijit/form/ValidationTextBox dijit/form/Select dijit/form/Button dijit/form/DropDownButton dojo/_base/declare dojo/i18n dojo/string dojo/NodeList-dom dojox/editor/plugins/ToolbarLineBreak dojo/i18n!dojox/editor/plugins/nls/InsertAnchor dojo/i18n!dijit/nls/common".split(" "),
function(v,x,H,F){var E=v.declare("dojox.editor.plugins.InsertAnchor",F,{htmlTemplate:'\x3ca name\x3d"${anchorInput}" class\x3d"dijitEditorPluginInsertAnchorStyle"\x3e${textInput}\x3c/a\x3e',iconClassPrefix:"dijitAdditionalEditorIcon",_template:"\x3ctable role\x3d'presentation'\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_anchorInput'\x3e${anchor}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_anchorInput' name\x3d'anchorInput' intermediateChanges\x3d'true'\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3clabel for\x3d'${id}_textInput'\x3e${text}\x3c/label\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoType\x3d'dijit.form.ValidationTextBox' required\x3d'true' id\x3d'${id}_textInput' name\x3d'textInput' intermediateChanges\x3d'true'\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d'2'\x3e\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'submit' id\x3d'${id}_setButton'\x3e${set}\x3c/button\x3e\x3cbutton dojoType\x3d'dijit.form.Button' type\x3d'button' id\x3d'${id}_cancelButton'\x3e${cancel}\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
_initButton:function(){var d=this,c=v.i18n.getLocalization("dojox.editor.plugins","InsertAnchor",this.lang),f=this.dropDown=new x.TooltipDialog({title:c.title,execute:v.hitch(this,"setValue"),onOpen:function(){d._onOpenDialog();x.TooltipDialog.prototype.onOpen.apply(this,arguments)},onCancel:function(){setTimeout(v.hitch(d,"_onCloseDialog"),0)}});this.button=new x.form.DropDownButton({label:c.insertAnchor,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"InsertAnchor",tabIndex:"-1",
dropDown:this.dropDown});c.id=x.getUniqueId(this.editor.id);this._uniqueId=c.id;this.dropDown.set("content",f.title+"\x3cdiv style\x3d'border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'\x3e\x3c/div\x3e"+v.string.substitute(this._template,c));f.startup();this._anchorInput=x.byId(this._uniqueId+"_anchorInput");this._textInput=x.byId(this._uniqueId+"_textInput");this._setButton=x.byId(this._uniqueId+"_setButton");this.connect(x.byId(this._uniqueId+"_cancelButton"),"onClick",function(){this.dropDown.onCancel()});
this._anchorInput&&this.connect(this._anchorInput,"onChange","_checkInput");this._textInput&&this.connect(this._anchorInput,"onChange","_checkInput");this.editor.contentDomPreFilters.push(v.hitch(this,this._preDomFilter));this.editor.contentDomPostFilters.push(v.hitch(this,this._postDomFilter));this._setup()},updateState:function(){this.button.set("disabled",this.get("disabled"))},setEditor:function(d){this.editor=d;this._initButton()},_checkInput:function(){var d=!0;this._anchorInput.isValid()&&
(d=!1);this._setButton.set("disabled",d)},_setup:function(){this.editor.onLoadDeferred.addCallback(v.hitch(this,function(){this.connect(this.editor.editNode,"ondblclick",this._onDblClick);setTimeout(v.hitch(this,function(){this._applyStyles()}),100)}))},getAnchorStyle:function(){var d=v.moduleUrl(H._scopeName,"editor/plugins/resources").toString();if(!d.match(/^https?:\/\//i)&&!d.match(/^file:\/\//i)){var c="/"===d.charAt(0)?v.doc.location.protocol+"//"+v.doc.location.host:this._calcBaseUrl(v.global.location.href);
"/"!==c[c.length-1]&&"/"!==d.charAt(0)&&(c+="/");d=c+d}return"@media screen {\n\t.dijitEditorPluginInsertAnchorStyle {\n\t\tbackground-image: url({MODURL}/images/anchor.gif);\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: top left;\n\t\tborder-width: 1px;\n\t\tborder-style: dashed;\n\t\tborder-color: #D0D0D0;\n\t\tpadding-left: 20px;\n\t}\n}\n".replace(/\{MODURL\}/gi,d)},_applyStyles:function(){if(!this._styled)try{this._styled=!0;var d=this.editor.document,c=this.getAnchorStyle();if(v.isIE)d.createStyleSheet("").cssText=
c;else{var f=d.createElement("style");f.appendChild(d.createTextNode(c));d.getElementsByTagName("head")[0].appendChild(f)}}catch(e){}},_calcBaseUrl:function(d){var c=null;null!==d&&(c=d.indexOf("?"),-1!=c&&(d=d.substring(0,c)),c=d.lastIndexOf("/"),c=0<c&&c<d.length?d.substring(0,c):d);return c},_checkValues:function(d){d&&(d.anchorInput&&(d.anchorInput=d.anchorInput.replace(/"/g,"\x26quot;")),d.textInput||(d.textInput="\x26nbsp;"));return d},setValue:function(d){this._onCloseDialog();if(!this.editor.window.getSelection){var c=
x.range.getSelection(this.editor.window).getRangeAt(0).endContainer;3===c.nodeType&&(c=c.parentNode);c&&c.nodeName&&"a"!==c.nodeName.toLowerCase()&&(c=this.editor._sCall("getSelectedElement",["a"]));c&&c.nodeName&&"a"===c.nodeName.toLowerCase()&&this.editor.queryCommandEnabled("unlink")&&(this.editor._sCall("selectElementChildren",[c]),this.editor.execCommand("unlink"))}d=this._checkValues(d);this.editor.execCommand("inserthtml",v.string.substitute(this.htmlTemplate,d))},_onCloseDialog:function(){this.editor.focus()},
_getCurrentValues:function(d){if(d&&"a"===d.tagName.toLowerCase()&&v.attr(d,"name")){var c=v.attr(d,"name");var f=d.textContent||d.innerText;this.editor._sCall("selectElement",[d,!0])}else f=this.editor._sCall("getSelectedText");return{anchorInput:c||"",textInput:f||""}},_onOpenDialog:function(){if(this.editor.window.getSelection)var d=this.editor._sCall("getAncestorElement",["a"]);else d=x.range.getSelection(this.editor.window).getRangeAt(0).endContainer,3===d.nodeType&&(d=d.parentNode),d&&d.nodeName&&
"a"!==d.nodeName.toLowerCase()&&(d=this.editor._sCall("getSelectedElement",["a"]));this.dropDown.reset();this._setButton.set("disabled",!0);this.dropDown.set("value",this._getCurrentValues(d))},_onDblClick:function(d){d&&d.target&&(d=d.target,"a"===(d.tagName?d.tagName.toLowerCase():"")&&v.attr(d,"name")&&(this.editor.onDisplayChanged(),this.editor._sCall("selectElement",[d]),setTimeout(v.hitch(this,function(){this.button.set("disabled",!1);this.button.openDropDown();this.button.dropDown.focus&&this.button.dropDown.focus()}),
10)))},_preDomFilter:function(d){v.query("a[name]:not([href])",this.editor.editNode).addClass("dijitEditorPluginInsertAnchorStyle")},_postDomFilter:function(d){d&&v.query("a[name]:not([href])",d).removeClass("dijitEditorPluginInsertAnchorStyle");return d}});v.subscribe(x._scopeName+".Editor.getPlugin",null,function(d){if(!d.plugin){var c=d.args.name;c&&(c=c.toLowerCase());"insertanchor"===c&&(d.plugin=new E)}});return E})},"dojox/editor/plugins/Blockquote":function(){define("dojo dijit dojox dijit/_editor/_Plugin dijit/form/ToggleButton dojo/_base/connect dojo/_base/declare dojo/i18n dojo/i18n!dojox/editor/plugins/nls/Blockquote".split(" "),
function(v,x,H,F){var E=v.declare("dojox.editor.plugins.Blockquote",F,{iconClassPrefix:"dijitAdditionalEditorIcon",_initButton:function(){this._nlsResources=v.i18n.getLocalization("dojox.editor.plugins","Blockquote");this.button=new x.form.ToggleButton({label:this._nlsResources.blockquote,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"Blockquote",tabIndex:"-1",onClick:v.hitch(this,"_toggleQuote")})},setEditor:function(d){this.editor=d;this._initButton();this.connect(this.editor,
"onNormalizedDisplayChanged","updateState");d.customUndo=!0},_toggleQuote:function(d){try{var c=this.editor;c.focus();var f=this.button.get("checked"),e=x.range.getSelection(c.window),h,q,l,t;e&&0<e.rangeCount&&(h=e.getRangeAt(0));if(h){c.beginEditing();if(f)if(h.startContainer===h.endContainer){if(this._isRootInline(h.startContainer)){for(l=h.startContainer;l&&l.parentNode!==c.editNode;)l=l.parentNode;for(;l&&l.previousSibling&&(this._isTextElement(l)||1===l.nodeType&&this._isInlineFormat(this._getTagName(l)));)l=
l.previousSibling;l&&1===l.nodeType&&!this._isInlineFormat(this._getTagName(l))&&(l=l.nextSibling);if(l){var y=c.document.createElement("blockquote");v.place(y,l,"after");y.appendChild(l);for(t=y.nextSibling;t&&(this._isTextElement(t)||1===t.nodeType&&this._isInlineFormat(this._getTagName(t)));)y.appendChild(t),t=y.nextSibling}}else{for(var B=h.startContainer;(this._isTextElement(B)||this._isInlineFormat(this._getTagName(B))||"li"===this._getTagName(B))&&B!==c.editNode&&B!==c.document.body;)B=B.parentNode;
B!==c.editNode&&B!==B.ownerDocument.documentElement&&(y=c.document.createElement("blockquote"),v.place(y,B,"after"),y.appendChild(B))}y&&(c._sCall("selectElementChildren",[y]),c._sCall("collapse",[!0]))}else{var b;l=h.startContainer;for(t=h.endContainer;l&&this._isTextElement(l)&&l.parentNode!==c.editNode;)l=l.parentNode;for(b=l;b.nextSibling&&c._sCall("inSelection",[b]);)b=b.nextSibling;t=b;if(t===c.editNode||t===c.document.body){y=c.document.createElement("blockquote");v.place(y,l,"after");var k=
this._getTagName(l);if(this._isTextElement(l)||this._isInlineFormat(k))for(c=l;c&&(this._isTextElement(c)||1===c.nodeType&&this._isInlineFormat(this._getTagName(c)));)y.appendChild(c),c=y.nextSibling;else y.appendChild(l);return}t=t.nextSibling;for(b=l;b&&b!==t;){if(1===b.nodeType){if(k=this._getTagName(b),"br"!==k){if(!window.getSelection&&"p"===k&&this._isEmpty(b)){b=b.nextSibling;continue}this._isInlineFormat(k)?y||(y=c.document.createElement("blockquote"),v.place(y,b,"after")):(y&&this._isEmpty(y)&&
y.parentNode.removeChild(y),y=c.document.createElement("blockquote"),v.place(y,b,"after"));y.appendChild(b);b=y}}else this._isTextElement(b)&&(y||(y=c.document.createElement("blockquote"),v.place(y,b,"after")),y.appendChild(b),b=y);b=b.nextSibling}y&&(this._isEmpty(y)?y.parentNode.removeChild(y):(c._sCall("selectElementChildren",[y]),c._sCall("collapse",[!0])),y=null)}else if(y=!1,h.startContainer===h.endContainer){for(q=h.endContainer;q&&q!==c.editNode&&q!==c.document.body;){if("blockquote"===(q.tagName?
q.tagName.toLowerCase():"")){y=!0;break}q=q.parentNode}if(y){for(var D;q.firstChild;)D=q.firstChild,v.place(D,q,"before");q.parentNode.removeChild(q);D&&(c._sCall("selectElementChildren",[D]),c._sCall("collapse",[!0]))}}else{l=h.startContainer;for(t=h.endContainer;l&&this._isTextElement(l)&&l.parentNode!==c.editNode;)l=l.parentNode;for(h=[];l&&l.nextSibling&&c._sCall("inSelection",[l]);)l.parentNode&&"blockquote"===this._getTagName(l.parentNode)&&(l=l.parentNode),h.push(l),l=l.nextSibling;for(var O=
this._findBlockQuotes(h);O.length;){var n=O.pop();if(n.parentNode){for(;n.firstChild;)v.place(n.firstChild,n,"before");n.parentNode.removeChild(n)}}}c.endEditing()}c.onNormalizedDisplayChanged()}catch(u){}},updateState:function(){var d=this.editor,c=this.get("disabled");if(d&&d.isLoaded&&this.button&&(this.button.set("disabled",c),!c)){c=!1;var f=x.range.getSelection(d.window);if(f&&0<f.rangeCount&&(f=f.getRangeAt(0)))var e=f.endContainer;for(;e&&e!==d.editNode&&e!==d.document;){if("blockquote"===
(e.tagName?e.tagName.toLowerCase():"")){c=!0;break}e=e.parentNode}this.button.set("checked",c)}},_findBlockQuotes:function(d){var c=[];if(d){var f;for(f=0;f<d.length;f++){var e=d[f];1===e.nodeType&&("blockquote"===this._getTagName(e)&&c.push(e),e.childNodes&&0<e.childNodes.length&&(c=c.concat(this._findBlockQuotes(e.childNodes))))}}return c},_getTagName:function(d){var c="";d&&1===d.nodeType&&(c=d.tagName?d.tagName.toLowerCase():"");return c},_isRootInline:function(d){var c=this.editor;if(this._isTextElement(d)&&
d.parentNode===c.editNode||1===d.nodeType&&this._isInlineFormat(d)&&d.parentNode===c.editNode)return!0;if(this._isTextElement(d)&&this._isInlineFormat(this._getTagName(d.parentNode))){for(d=d.parentNode;d&&d!==c.editNode&&this._isInlineFormat(this._getTagName(d));)d=d.parentNode;if(d===c.editNode)return!0}return!1},_isTextElement:function(d){return d&&3===d.nodeType||4===d.nodeType?!0:!1},_isEmpty:function(d){if(d.childNodes){var c=!0,f;for(f=0;f<d.childNodes.length;f++){var e=d.childNodes[f];if(1===
e.nodeType){if("p"!==this._getTagName(e)||v.trim(e.innerHTML)){c=!1;break}}else if(this._isTextElement(e)){if((e=v.trim(e.nodeValue))&&"\x26nbsp;"!==e&&"\u00a0"!==e){c=!1;break}}else{c=!1;break}}return c}return!0},_isInlineFormat:function(d){switch(d){case "a":case "b":case "strong":case "s":case "strike":case "i":case "u":case "em":case "sup":case "sub":case "span":case "font":case "big":case "cite":case "q":case "img":case "small":return!0;default:return!1}}});v.subscribe(x._scopeName+".Editor.getPlugin",
null,function(d){d.plugin||"blockquote"!==d.args.name.toLowerCase()||(d.plugin=new E({}))});return E})},"dojox/editor/plugins/UploadImage":function(){define("dojo dijit dojox dijit/_editor/_Plugin dojo/_base/connect dojo/_base/declare dojox/form/FileUploader dijit/_editor/_Plugin".split(" "),function(v,x,H,F){v.experimental("dojox.editor.plugins.UploadImage");var E=v.declare("dojox.editor.plugins.UploadImage",F,{tempImageUrl:"",iconClassPrefix:"editorIcon",useDefaultCommand:!1,uploadUrl:"",button:null,
label:"Upload",setToolbar:function(d){this.button.destroy();this.createFileInput();d.addChild(this.button)},_initButton:function(){this.command="uploadImage";this.editor.commands[this.command]="Upload Image";this.inherited("_initButton",arguments);delete this.command},updateState:function(){this.button.set("disabled",this.get("disabled"))},createFileInput:function(){var d=v.create("span",{innerHTML:"."},document.body);v.style(d,{width:"40px",height:"20px",paddingLeft:"8px",paddingRight:"8px"});this.button=
new H.form.FileUploader({isDebug:!0,uploadUrl:this.uploadUrl,uploadOnChange:!0,selectMultipleFiles:!1,baseClass:"dojoxEditorUploadNorm",hoverClass:"dojoxEditorUploadHover",activeClass:"dojoxEditorUploadActive",disabledClass:"dojoxEditorUploadDisabled"},d);this.connect(this.button,"onChange","insertTempImage");this.connect(this.button,"onComplete","onComplete")},onComplete:function(d,c,f){d=d[0];c=v.byId(this.currentImageId,this.editor.document);f=this.downloadPath?this.downloadPath+d.name:d.file;
c.src=f;v.attr(c,"_djrealurl",f);d.width&&(c.width=d.width,c.height=d.height)},insertTempImage:function(){this.currentImageId="img_"+(new Date).getTime();this.editor.execCommand("inserthtml",'\x3cimg id\x3d"'+this.currentImageId+'" src\x3d"'+this.tempImageUrl+'" width\x3d"32" height\x3d"32"/\x3e')}});v.subscribe(x._scopeName+".Editor.getPlugin",null,function(d){if(!d.plugin)switch(d.args.name){case "uploadImage":d.plugin=new E({url:d.args.url})}});return E})},"dojox/form/FileUploader":function(){define("dojo/_base/kernel dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/connect dojo/_base/window dojo/_base/sniff dojo/query dojo/dom dojo/dom-style dojo/dom-geometry dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-form dojo/_base/config dijit/_base/manager dojo/io/iframe dojo/_base/Color dojo/_base/unload dijit/_Widget dijit/_TemplatedMixin dijit/_Contained dojox/embed/Flash dojox/embed/flashVars dojox/html/styles".split(" "),
function(v,x,H,F,E,d,c,f,e,h,q,l,t,y,B,b,k,D,O,n,u,z,C,M,L,Q){v.deprecated("dojox.form.FileUploader","Use dojox.form.Uploader","2.0");return x("dojox.form.FileUploader",[u,z,C],{swfPath:b.uploaderPath||require.toUrl("dojox/form/resources/fileuploader.swf"),templateString:'\x3cdiv\x3e\x3cdiv dojoAttachPoint\x3d"progNode"\x3e\x3cdiv dojoAttachPoint\x3d"progTextNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv dojoAttachPoint\x3d"insideNode" class\x3d"uploaderInsideNode"\x3e\x3c/div\x3e\x3c/div\x3e',uploadUrl:"",
isDebug:!1,devMode:!1,baseClass:"dojoxUploaderNorm",hoverClass:"dojoxUploaderHover",activeClass:"dojoxUploaderActive",disabledClass:"dojoxUploaderDisabled",force:"",uploaderType:"",flashObject:null,flashMovie:null,insideNode:null,deferredUploading:1,fileListId:"",uploadOnChange:!1,selectMultipleFiles:!0,htmlFieldName:"uploadedfile",flashFieldName:"flashUploadFiles",fileMask:null,minFlashVersion:9,tabIndex:-1,showProgress:!1,progressMessage:"Loading",progressBackgroundUrl:require.toUrl("dijit/themes/tundra/images/buttonActive.png"),
progressBackgroundColor:"#ededed",progressWidgetId:"",skipServerCheck:!1,serverTimeout:5E3,log:function(){this.isDebug&&console.log(Array.prototype.slice.call(arguments).join(" "))},constructor:function(){this._subs=[]},postMixInProperties:function(){this.fileList=[];this._cons=[];this.fileMask=this.fileMask||[];this.fileInputs=[];this.fileCount=0;this._disabled=this.flashReady=!1;this.force=this.force.toLowerCase();this.uploaderType=(M.available>=this.minFlashVersion||"flash"==this.force)&&"html"!=
this.force?"flash":"html";this.deferredUploading=!0===this.deferredUploading?1:this.deferredUploading;this._refNode=this.srcNodeRef;this.getButtonStyle()},startup:function(){},postCreate:function(){this.inherited(arguments);this.setButtonStyle();if("flash"==this.uploaderType)var p="createFlashUploader";else this.uploaderType="html",p="createHtmlUploader";this[p]();this.fileListId&&this.connect(e.byId(this.fileListId),"click",function(m){m=m.target.parentNode.parentNode.parentNode;m.id&&-1<m.id.indexOf("file_")&&
this.removeFile(m.id.split("file_")[1])});n.addOnUnload(this,this.destroy)},getHiddenNode:function(p){if(!p)return null;var m=null;for(p=p.parentNode;p&&"body"!=p.tagName.toLowerCase();){if("none"==h.get(p,"display")){m=p;break}p=p.parentNode}return m},getButtonStyle:function(){var p=this.srcNodeRef;(this._hiddenNode=this.getHiddenNode(p))&&h.set(this._hiddenNode,"display","block");if(!p&&this.button&&this.button.domNode){var m=!0;p=this.button.domNode.className+" dijitButtonNode";var G=this.getText(f(".dijitButtonText",
this.button.domNode)[0]);this.srcNodeRef=p=y.place('\x3cbutton id\x3d"'+this.button.id+'" class\x3d"'+p+'"\x3e'+G+"\x3c/button\x3e",this.button.domNode,"after");this.button.destroy();this.baseClass="dijitButton";this.hoverClass="dijitButtonHover";this.pressClass="dijitButtonActive";this.disabledClass="dijitButtonDisabled"}else!this.srcNodeRef&&this.button&&(p=this.button);l.get(p,"class")&&(this.baseClass+=" "+l.get(p,"class"));l.set(p,"class",this.baseClass);this.norm=this.getStyle(p);this.width=
this.norm.w;this.height=this.norm.h;"flash"==this.uploaderType?(this.over=this.getTempNodeStyle(p,this.baseClass+" "+this.hoverClass,m),this.down=this.getTempNodeStyle(p,this.baseClass+" "+this.activeClass,m),this.dsbl=this.getTempNodeStyle(p,this.baseClass+" "+this.disabledClass,m),this.fhtml={cn:this.getText(p),nr:this.norm,ov:this.over,dn:this.down,ds:this.dsbl}):(this.fhtml={cn:this.getText(p),nr:this.norm},"middle"==this.norm.va&&(this.norm.lh=this.norm.h));this.devMode&&(this.log("classes - base:",
this.baseClass," hover:",this.hoverClass,"active:",this.activeClass),this.log("fhtml:",this.fhtml),this.log("norm:",this.norm),this.log("over:",this.over),this.log("down:",this.down))},setButtonStyle:function(){h.set(this.domNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+"px",padding:"0px",lineHeight:"normal",position:"relative"});"html"==this.uploaderType&&"middle"==this.norm.va&&h.set(this.domNode,"lineHeight",this.norm.lh+"px");this.showProgress?(this.progTextNode.innerHTML=this.progressMessage,
h.set(this.progTextNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+0+"px",padding:"0px",margin:"0px",left:"0px",lineHeight:this.fhtml.nr.h+0+"px",position:"absolute"}),h.set(this.progNode,{width:this.fhtml.nr.w+"px",height:this.fhtml.nr.h+0+"px",padding:"0px",margin:"0px",left:"0px",position:"absolute",display:"none",backgroundImage:"url("+this.progressBackgroundUrl+")",backgroundPosition:"bottom",backgroundRepeat:"repeat-x",backgroundColor:this.progressBackgroundColor})):y.destroy(this.progNode);
h.set(this.insideNode,{position:"absolute",top:"0px",left:"0px",display:""});t.add(this.domNode,this.srcNodeRef.className);-1<this.fhtml.nr.d.indexOf("inline")&&t.add(this.domNode,"dijitInline");try{this.insideNode.innerHTML=this.fhtml.cn}catch(m){if("flash"==this.uploaderType){this.insideNode=this.insideNode.parentNode.removeChild(this.insideNode);d.body().appendChild(this.insideNode);this.insideNode.innerHTML=this.fhtml.cn;var p=E.connect(this,"onReady",this,function(){E.disconnect(p);this.insideNode=
this.insideNode.parentNode.removeChild(this.insideNode);this.domNode.appendChild(this.insideNode)})}else this.insideNode.appendChild(document.createTextNode(this.fhtml.cn))}this._hiddenNode&&h.set(this._hiddenNode,"display","none")},onChange:function(p){},onProgress:function(p){},onComplete:function(p){},onCancel:function(){},onError:function(p){},onReady:function(p){},onLoad:function(p){},submit:function(p){p=p?B.toObject(p):null;this.upload(p);return!1},upload:function(p){if(!this.fileList.length)return!1;
if(!this.uploadUrl)return console.warn("uploadUrl not provided. Aborting."),!1;this.showProgress||this.set("disabled",!0);if(this.progressWidgetId){var m=k.byId(this.progressWidgetId).domNode;"none"==h.get(m,"display")&&(this.restoreProgDisplay="none",h.set(m,"display","block"));"hidden"==h.get(m,"visibility")&&(this.restoreProgDisplay="hidden",h.set(m,"visibility","visible"))}p&&!p.target&&(this.postData=p);this.log("upload type:",this.uploaderType," - postData:",this.postData);for(p=0;p<this.fileList.length;p++)m=
this.fileList[p],m.bytesLoaded=0,m.bytesTotal=m.size||1E5,m.percent=0;"flash"==this.uploaderType?this.uploadFlash():this.uploadHTML();return!1},removeFile:function(p,m){var G;for(G=0;G<this.fileList.length;G++)if(this.fileList[G].name==p){m||this.fileList.splice(G,1);break}"flash"==this.uploaderType?this.flashMovie.removeFile(p):m||(y.destroy(this.fileInputs[G]),this.fileInputs.splice(G,1),this._renumberInputs());this.fileListId&&y.destroy("file_"+p)},destroy:function(){"flash"!=this.uploaderType||
this.flashMovie?(F.forEach(this._subs,E.unsubscribe,dojo),F.forEach(this._cons,E.disconnect,dojo),this.scrollConnect&&E.disconnect(this.scrollConnect),"flash"==this.uploaderType?(this.flashObject.destroy(),delete this.flashObject):(y.destroy(this._fileInput),y.destroy(this._formNode)),this.inherited(arguments)):this._cons.push(E.connect(this,"onLoad",this,"destroy"))},_displayProgress:function(p){!0===p?("flash"==this.uploaderType?h.set(this.insideNode,"top","-2500px"):h.set(this.insideNode,"display",
"none"),h.set(this.progNode,"display","")):!1===p?(h.set(this.insideNode,{display:"",top:"0"}),h.set(this.progNode,"display","none")):h.set(this.progNode,"width",p*this.fhtml.nr.w+"px")},_animateProgress:function(){this._displayProgress(!0);var p=!1,m=E.connect(this,"_complete",function(){E.disconnect(m);p=!0}),G=0,K=setInterval(H.hitch(this,function(){G+=5;G>this.fhtml.nr.w&&(G=0,p=!0);this._displayProgress(G/this.fhtml.nr.w);p&&(clearInterval(K),setTimeout(H.hitch(this,function(){this._displayProgress(!1)}),
500))}),50)},_error:function(p){"string"==typeof p&&(p=Error(p));this.onError(p)},_addToFileList:function(){if(this.fileListId){var p="";F.forEach(this.fileList,function(m){p+='\x3ctable id\x3d"file_'+m.name+'" class\x3d"fileToUpload"\x3e\x3ctr\x3e\x3ctd class\x3d"fileToUploadClose"\x3e\x3c/td\x3e\x3ctd class\x3d"fileToUploadName"\x3e'+m.name+'\x3c/td\x3e\x3ctd class\x3d"fileToUploadSize"\x3e'+(m.size?Math.ceil(.001*m.size)+"kb":"")+"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e"},this);e.byId(this.fileListId).innerHTML=
p}},_change:function(p){c("ie")&&F.forEach(p,function(m){m.name=m.name.split("\\")[m.name.split("\\").length-1]});this.selectMultipleFiles?this.fileList=this.fileList.concat(p):(this.fileList[0]&&this.removeFile(this.fileList[0].name,!0),this.fileList=p);this._addToFileList();this.onChange(p);this.uploadOnChange?("html"==this.uploaderType&&this._buildFileInput(),this.upload()):"html"==this.uploaderType&&this.selectMultipleFiles&&(this._buildFileInput(),this._connectInput())},_complete:function(p){p=
H.isArray(p)?p:[p];F.forEach(p,function(m){m.ERROR&&this._error(m.ERROR)},this);F.forEach(this.fileList,function(m){m.bytesLoaded=1;m.bytesTotal=1;m.percent=100;this._progress(m)},this);F.forEach(this.fileList,function(m){this.removeFile(m.name,!0)},this);this.onComplete(p);this.fileList=[];this._resetHTML();this.set("disabled",!1);this.restoreProgDisplay&&setTimeout(H.hitch(this,function(){h.set(k.byId(this.progressWidgetId).domNode,"none"==this.restoreProgDisplay?"display":"visibility",this.restoreProgDisplay)}),
500)},_progress:function(p){for(var m=0,G=0,K=0;K<this.fileList.length;K++){var a=this.fileList[K];a.name==p.name&&(a.bytesLoaded=p.bytesLoaded,a.bytesTotal=p.bytesTotal,a.percent=Math.ceil(a.bytesLoaded/a.bytesTotal*100),this.log(a.name,"percent:",a.percent));G+=Math.ceil(.001*a.bytesLoaded);m+=Math.ceil(.001*a.bytesTotal)}p=Math.ceil(G/m*100);this.progressWidgetId&&k.byId(this.progressWidgetId).update({progress:p+"%"});this.showProgress&&this._displayProgress(.01*p);this.onProgress(this.fileList)},
_getDisabledAttr:function(){return this._disabled},_setDisabledAttr:function(p){if(this._disabled!=p){if("flash"==this.uploaderType){if(!this.flashReady){var m=E.connect(this,"onLoad",this,function(){E.disconnect(m);this._setDisabledAttr(p)});return}this._disabled=p;this.flashMovie.doDisable(p)}else this._disabled=p,h.set(this._fileInput,"display",this._disabled?"none":"");t.toggle(this.domNode,this.disabledClass,p)}},_onFlashBlur:function(){this.flashMovie.blur();if(!this.nextFocusObject&&this.tabIndex)for(var p=
f("[tabIndex]"),m=0;m<p.length;m++)if(p[m].tabIndex>=Number(this.tabIndex)+1){this.nextFocusObject=p[m];break}this.nextFocusObject.focus()},_disconnect:function(){F.forEach(this._cons,E.disconnect,dojo)},uploadHTML:function(){this.selectMultipleFiles&&y.destroy(this._fileInput);this._setHtmlPostData();this.showProgress&&this._animateProgress();D.send({url:this.uploadUrl.toString(),form:this._formNode,handleAs:"json",error:H.hitch(this,function(p){this._error("HTML Upload Error:"+p.message)}),load:H.hitch(this,
function(p,m,G){this._complete(p)})})},createHtmlUploader:function(){this._buildForm();this._setFormStyle();this._buildFileInput();this._connectInput();this._styleContent();h.set(this.insideNode,"visibility","visible");this.onReady()},_connectInput:function(){this._disconnect();this._cons.push(E.connect(this._fileInput,"mouseover",this,function(p){t.add(this.domNode,this.hoverClass);this.onMouseOver(p)}));this._cons.push(E.connect(this._fileInput,"mouseout",this,function(p){setTimeout(H.hitch(this,
function(){t.remove(this.domNode,this.activeClass);t.remove(this.domNode,this.hoverClass);this.onMouseOut(p);this._checkHtmlCancel("off")}),0)}));this._cons.push(E.connect(this._fileInput,"mousedown",this,function(p){t.add(this.domNode,this.activeClass);t.remove(this.domNode,this.hoverClass);this.onMouseDown(p)}));this._cons.push(E.connect(this._fileInput,"mouseup",this,function(p){t.remove(this.domNode,this.activeClass);this.onMouseUp(p);this.onClick(p);this._checkHtmlCancel("up")}));this._cons.push(E.connect(this._fileInput,
"change",this,function(){this._checkHtmlCancel("change");var p=this._fileInput.value;p?this._change([{name:p,type:"",size:0}]):this._change([])}));0<=this.tabIndex&&l.set(this.domNode,"tabIndex",this.tabIndex)},_checkHtmlCancel:function(p){"change"==p&&(this.dialogIsOpen=!1);"up"==p&&(this.dialogIsOpen=!0);if("off"==p){if(this.dialogIsOpen)this.onCancel();this.dialogIsOpen=!1}},_styleContent:function(){var p=this.fhtml.nr;h.set(this.insideNode,{width:p.w+"px",height:"middle"==p.va?p.h+"px":"auto",
textAlign:p.ta,paddingTop:p.p[0]+"px",paddingRight:p.p[1]+"px",paddingBottom:p.p[2]+"px",paddingLeft:p.p[3]+"px"});try{h.set(this.insideNode,"lineHeight","inherit")}catch(m){}},_resetHTML:function(){"html"==this.uploaderType&&this._formNode&&(this.fileInputs=[],f("*",this._formNode).forEach(function(p){y.destroy(p)}),this.fileCount=0,this._buildFileInput(),this._connectInput())},_buildForm:function(){this._formNode||(9>c("ie")||c("ie")&&c("quirks")?(this._formNode=document.createElement('\x3cform enctype\x3d"multipart/form-data" method\x3d"post"\x3e'),
this._formNode.encoding="multipart/form-data",this._formNode.id=k.getUniqueId("FileUploaderForm"),this.domNode.appendChild(this._formNode)):this._formNode=y.create("form",{enctype:"multipart/form-data",method:"post",id:k.getUniqueId("FileUploaderForm")},this.domNode))},_buildFileInput:function(){this._fileInput&&(this._disconnect(),this._fileInput.id+=this.fileCount,h.set(this._fileInput,"display","none"));this._fileInput=document.createElement("input");this.fileInputs.push(this._fileInput);var p=
this.htmlFieldName;this.selectMultipleFiles&&(p+=this.fileCount,this.fileCount++);l.set(this._fileInput,{id:this.id,name:p,type:"file"});t.add(this._fileInput,"dijitFileInputReal");this._formNode.appendChild(this._fileInput);p=q.getMarginBox(this._fileInput);h.set(this._fileInput,{position:"relative",left:this.fhtml.nr.w-p.w+"px",opacity:0})},_renumberInputs:function(){if(this.selectMultipleFiles){var p;this.fileCount=0;F.forEach(this.fileInputs,function(m){p=this.htmlFieldName+this.fileCount;this.fileCount++;
l.set(m,"name",p)},this)}},_setFormStyle:function(){Q.insertCssRule("#"+this._formNode.id+" input","font-size:"+Math.max(2,Math.max(Math.ceil(this.fhtml.nr.w/60),Math.ceil(this.fhtml.nr.h/15)))+"em");h.set(this.domNode,{overflow:"hidden",position:"relative"});h.set(this.insideNode,"position","absolute")},_setHtmlPostData:function(){if(this.postData)for(var p in this.postData)y.create("input",{type:"hidden",name:p,value:this.postData[p]},this._formNode)},uploadFlash:function(){try{if(this.showProgress){this._displayProgress(!0);
var p=E.connect(this,"_complete",this,function(){E.disconnect(p);this._displayProgress(!1)})}var m={},G;for(G in this.postData)m[G]=this.postData[G];this.flashMovie.doUpload(m)}catch(K){this._error("FileUploader - Sorry, the SWF failed to initialize."+K)}},createFlashUploader:function(){if(this.uploadUrl=this.uploadUrl.toString())if(0>this.uploadUrl.toLowerCase().indexOf("http")&&0!=this.uploadUrl.indexOf("/")){var p=window.location.href.split("/");p.pop();p=p.join("/")+"/";this.uploadUrl=p+this.uploadUrl;
this.log("SWF Fixed - Relative loc:",p," abs loc:",this.uploadUrl)}else this.log("SWF URL unmodified:",this.uploadUrl);else console.warn("Warning: no uploadUrl provided.");p={expressInstall:!0,path:this.swfPath.uri||this.swfPath,width:this.fhtml.nr.w,height:this.fhtml.nr.h,allowScriptAccess:"always",allowNetworking:"all",vars:{uploadDataFieldName:this.flashFieldName,uploadUrl:this.uploadUrl,uploadOnSelect:this.uploadOnChange,deferredUploading:this.deferredUploading||0,selectMultipleFiles:this.selectMultipleFiles,
id:this.id,isDebug:this.isDebug,devMode:this.devMode,flashButton:L.serialize("fh",this.fhtml),fileMask:L.serialize("fm",this.fileMask),noReturnCheck:this.skipServerCheck,serverTimeout:this.serverTimeout},params:{scale:"noscale",wmode:"opaque",allowScriptAccess:"always",allowNetworking:"all"}};this.flashObject=new M(p,this.insideNode);this.flashObject.onError=H.hitch(function(m){this._error("Flash Error: "+m)});this.flashObject.onReady=H.hitch(this,function(){h.set(this.insideNode,"visibility","visible");
this.log("FileUploader flash object ready");this.onReady(this)});this.flashObject.onLoad=H.hitch(this,function(m){this.flashMovie=m;this.flashReady=!0;this.onLoad(this)});this._connectFlash()},_connectFlash:function(){this._doSub("/filesSelected","_change");this._doSub("/filesUploaded","_complete");this._doSub("/filesProgress","_progress");this._doSub("/filesError","_error");this._doSub("/filesCanceled","onCancel");this._doSub("/stageBlur","_onFlashBlur");this._doSub("/up","onMouseUp");this._doSub("/down",
"onMouseDown");this._doSub("/over","onMouseOver");this._doSub("/out","onMouseOut");this.connect(this.domNode,"focus",function(){this.flashMovie.focus();this.flashMovie.doFocus()});0<=this.tabIndex&&l.set(this.domNode,"tabIndex",this.tabIndex)},_doSub:function(p,m){this._subs.push(E.subscribe(this.id+p,this,m))},urlencode:function(p){return p&&"none"!=p?p.replace(/:/g,"||").replace(/\./g,"^^").replace("url(","").replace(")","").replace(/'/g,"").replace(/"/g,""):!1},isButton:function(p){p=p.tagName.toLowerCase();
return"button"==p||"input"==p},getTextStyle:function(p){var m={};m.ff=h.get(p,"fontFamily");if(m.ff){m.ff=m.ff.replace(", ",",");m.ff=m.ff.replace(/"|'/g,"");m.ff="sans-serif"==m.ff?"Arial":m.ff;m.fw=h.get(p,"fontWeight");m.fi=h.get(p,"fontStyle");m.fs=parseInt(h.get(p,"fontSize"),10);if(-1<h.get(p,"fontSize").indexOf("%"))for(var G=p;G.tagName;){if(-1==h.get(G,"fontSize").indexOf("%")){m.fs=parseInt(h.get(G,"fontSize"),10);break}"body"==G.tagName.toLowerCase()&&(m.fs=.16*parseInt(h.get(G,"fontSize"),
10));G=G.parentNode}m.fc=(new O(h.get(p,"color"))).toHex();m.fc=parseInt(m.fc.substring(1,Infinity),16)}m.lh=h.get(p,"lineHeight");m.ta=h.get(p,"textAlign");m.ta="start"!=m.ta&&m.ta?m.ta:"left";m.va=this.isButton(p)?"middle":m.lh==m.h?"middle":h.get(p,"verticalAlign");return m},getText:function(p){p=H.trim(p.innerHTML);-1<p.indexOf("\x3c")&&(p=escape(p));return p},getStyle:function(p){var m={},G=q.getContentBox(p),K=q.getPadExtents(p);m.p=[K.t,K.w-K.l,K.h-K.t,K.l];m.w=G.w+K.w;m.h=G.h+K.h;m.d=h.get(p,
"display");G=new O(h.get(p,"backgroundColor"));m.bc=0==G.a?"#ffffff":G.toHex();m.bc=parseInt(m.bc.substring(1,Infinity),16);if(G=this.urlencode(h.get(p,"backgroundImage")))m.bi={url:G,rp:h.get(p,"backgroundRepeat"),pos:escape(h.get(p,"backgroundPosition"))},m.bi.pos||(G=h.get(p,"backgroundPositionX"),K=h.get(p,"backgroundPositionY"),m.bi.pos=escape(("left"==G?"0%":"right"==G?"100%":G)+" "+("top"==K?"0%":"bottom"==K?"100%":K)));return H.mixin(m,this.getTextStyle(p))},getTempNodeStyle:function(p,m,
G){if(G){G=y.place("\x3c"+p.tagName+"\x3e\x3cspan\x3e"+p.innerHTML+"\x3c/span\x3e\x3c/"+p.tagName+"\x3e",p.parentNode);var K=G.firstChild;t.add(K,p.className);t.add(G,m);p=this.getStyle(K)}else G=y.place("\x3c"+p.tagName+"\x3e"+p.innerHTML+"\x3c/"+p.tagName+"\x3e",p.parentNode),t.add(G,p.className),t.add(G,m),G.id=p.id,p=this.getStyle(G);y.destroy(G);return p}})})},"dojo/io/iframe":function(){define("../_base/config ../_base/json ../_base/kernel ../_base/lang ../_base/xhr ../sniff ../_base/window ../dom ../dom-construct ../query require ../aspect ../request/iframe".split(" "),
function(v,x,H,F,E,d,c,f,e,h,q,l,t){H.deprecated("dojo/io/iframe","Use dojo/request/iframe.","2.0");d=t._iframeName;d=d.substring(0,d.lastIndexOf("_"));var y=F.delegate(t,{create:function(){return y._frame=t.create.apply(t,arguments)},get:null,post:null,send:function(B){var b=E._ioSetArgs(B,function(z){u&&u.cancel()},function(z){var C=null;z=z.ioArgs;try{var M=z.handleAs;"xml"===M||"html"===M?C=u.response.data:(C=u.response.text,"json"===M?C=x.fromJson(C):"javascript"===M&&(C=H.eval(C)))}catch(L){C=
L}return C},function(z,C){C.ioArgs._hasError=!0;return z}),k=b.ioArgs,D="GET",O=f.byId(B.form);B.method&&"POST"===B.method.toUpperCase()&&O&&(D="POST");B={method:D,handleAs:"json"===B.handleAs||"javascript"===B.handleAs?"text":B.handleAs,form:B.form,query:O?null:B.content,data:O?B.content:null,timeout:B.timeout,ioArgs:k};B.method&&(B.method=B.method.toUpperCase());if(v.ioPublish&&H.publish&&!1!==k.args.ioPublish)var n=l.after(t,"_notifyStart",function(z){z.options.ioArgs===k&&(n.remove(),E._ioNotifyStart(b))},
!0);var u=t(k.url,B,!0);k._callNext=u._callNext;u.then(function(){b.resolve(b)}).otherwise(function(z){b.ioArgs.error=z;b.reject(z)});return b},_iframeOnload:c.global[d+"_onload"]});F.setObject("dojo.io.iframe",y);return y})},"dojox/embed/Flash":function(){define("dojo/_base/lang dojo/_base/unload dojo/_base/array dojo/query dojo/has dojo/dom dojo/on dojo/window dojo/string".split(" "),function(v,x,H,F,E,d,c,f,e){function h(b){b=v.delegate(l,b);if(!("path"in b))return console.error("dojox.embed.Flash(ctor):: no path reference to a Flash movie was provided."),
null;"id"in b||(b.id="dojox-embed-flash-"+q++);return b}var q=0,l={expressInstall:!1,width:320,height:240,swLiveConnect:"true",allowScriptAccess:"sameDomain",allowNetworking:"all",style:null,redirect:null};if(E("ie")){var t=function(b){b=h(b);if(!b)return null;var k,D=b.path;if(b.vars){var O=[];for(k in b.vars)O.push(encodeURIComponent(k)+"\x3d"+encodeURIComponent(b.vars[k]));b.params.FlashVars=O.join("\x26");delete b.vars}D='\x3cobject id\x3d"'+e.escape(String(b.id))+'" classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width\x3d"'+
e.escape(String(b.width))+'" height\x3d"'+e.escape(String(b.height))+'"'+(b.style?' style\x3d"'+e.escape(String(b.style))+'"':"")+'\x3e\x3cparam name\x3d"movie" value\x3d"'+e.escape(String(D))+'" /\x3e';if(b.params)for(k in b.params)D+='\x3cparam name\x3d"'+e.escape(k)+'" value\x3d"'+e.escape(String(b.params[k]))+'" /\x3e';return{id:b.id,markup:D+"\x3c/object\x3e"}};var y=function(){for(var b=10,k=null;!k&&7<b;)try{k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+b--)}catch(D){}return k?(b=k.GetVariable("$version").split(" ")[1].split(","),
{major:null!=b[0]?parseInt(b[0]):0,minor:null!=b[1]?parseInt(b[1]):0,rev:null!=b[2]?parseInt(b[2]):0}):{major:0,minor:0,rev:0}}();x.addOnWindowUnload(function(){console.warn("***************UNLOAD");var b=function(){};F("object").reverse().style("display","none").forEach(function(k){for(var D in k)if("FlashVars"!=D&&"function"==typeof k[D])try{k[D]=b}catch(O){}})})}else t=function(b){b=h(b);if(!b)return null;var k,D=b.path;if(b.vars){var O=[];for(k in b.vars)O.push(encodeURIComponent(k)+"\x3d"+encodeURIComponent(b.vars[k]));
b.params.flashVars=O.join("\x26");delete b.vars}D='\x3cembed type\x3d"application/x-shockwave-flash" src\x3d"'+e.escape(String(D))+'" id\x3d"'+e.escape(String(b.id))+'" width\x3d"'+e.escape(String(b.width))+'" height\x3d"'+e.escape(String(b.height))+'"'+(b.style?' style\x3d"'+e.escape(String(b.style))+'" ':"")+'pluginspage\x3d"'+window.location.protocol+'//www.adobe.com/go/getflashplayer" ';if(b.params)for(k in b.params)D+=" "+e.escape(k)+'\x3d"'+e.escape(String(b.params[k]))+'"';return{id:b.id,markup:D+
" /\x3e"}},y=function(){var b=navigator.plugins["Shockwave Flash"];return b&&b.description?(b=b.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."),{major:null!=b[0]?parseInt(b[0]):0,minor:null!=b[1]?parseInt(b[1]):0,rev:null!=b[2]?parseInt(b[2]):0}):{major:0,minor:0,rev:0}}();var B=function(b,k){if(-1<location.href.toLowerCase().indexOf("file://"))throw Error("dojox.embed.Flash can't be run directly from a file. To instatiate the required SWF correctly it must be run from a server, like localHost.");
this.available=y.major;this.minimumVersion=b.minimumVersion||9;this.domNode=this.movie=this.id=null;k&&(k=d.byId(k));setTimeout(v.hitch(this,function(){if(b.expressInstall||this.available&&this.available>=this.minimumVersion)if(b&&k)this.init(b,k);else this.onError("embed.Flash was not provided with the proper arguments.");else if(this.available)this.onError("Flash version detected: "+this.available+" is out of date. Minimum required: "+this.minimumVersion);else this.onError("Flash is not installed.")}),
100)};v.extend(B,{onReady:function(b){},onLoad:function(b){},onError:function(b){},_onload:function(){clearInterval(this._poller);delete this._poller;delete this._pollCount;delete this._pollMax;this.onLoad(this.movie)},init:function(b,k){this.destroy();k=d.byId(k||this.domNode);if(!k)throw Error("dojox.embed.Flash: no domNode reference has been passed.");var D=0;this._poller=null;this._pollCount=0;this._pollMax=15;this.pollTime=100;B.initialized&&(this.id=B.place(b,k),this.domNode=k,setTimeout(v.hitch(this,
function(){this.movie=this.byId(this.id,b.doc);this.onReady(this.movie);this._poller=setInterval(v.hitch(this,function(){try{D=this.movie.PercentLoaded()}catch(O){console.warn("this.movie.PercentLoaded() failed",O,this.movie)}if(100==D)this._onload();else if(0==D&&this._pollCount++>this._pollMax)throw clearInterval(this._poller),Error("Building SWF failed.");}),this.pollTime)}),1))},_destroy:function(){try{this.domNode.removeChild(this.movie)}catch(b){}this.id=this.movie=this.domNode=null},destroy:function(){if(this.movie){var b=
v.delegate({id:!0,movie:!0,domNode:!0,onReady:!0,onLoad:!0}),k;for(k in this)b[k]||delete this[k];this._poller?c(this,"Load",this,"_destroy"):this._destroy()}},byId:function(b,k){k=k||document;return k.embeds[b]?k.embeds[b]:k[b]?k[b]:window[b]?window[b]:document[b]?document[b]:null}});v.mixin(B,{minSupported:8,available:y.major,supported:y.major>=y.required,minimumRequired:y.required,version:y,initialized:!1,onInitialize:function(){B.initialized=!0},__ie_markup__:function(b){return t(b)},proxy:function(b,
k){H.forEach(k instanceof Array?k:[k],function(D){this[D]=v.hitch(this,function(){return function(){return eval(this.movie.CallFunction('\x3cinvoke name\x3d"'+D+'" returntype\x3d"javascript"\x3e\x3carguments\x3e'+H.map(arguments,function(O){return __flash__toXML(O)}).join("")+"\x3c/arguments\x3e\x3c/invoke\x3e"))}.apply(this,arguments||[])})},b)}});B.place=function(b,k){b=t(b);k=d.byId(k);k||(k=f.doc.createElement("div"),k.id=b.id+"-container",f.body().appendChild(k));return b?(k.innerHTML=b.markup,
b.id):null};B.onInitialize();v.setObject("dojox.embed.Flash",B);return B})},"dojox/embed/flashVars":function(){define(["dojo"],function(v){v.deprecated("dojox.embed.flashVars","Will be removed in 2.0","2.0");var x={serialize:function(H,F){var E=function(e){"string"==typeof e&&(e=e.replace(/;/g,"_sc_"),e=e.replace(/\./g,"_pr_"),e=e.replace(/:/g,"_cl_"));return e},d=dojox.embed.flashVars.serialize,c="";if(v.isArray(F)){for(var f=0;f<F.length;f++)c+=d(H+"."+f,E(F[f]))+";";return c.replace(/;{2,}/g,";")}if(v.isObject(F)){for(f in F)c+=
d(H+"."+f,E(F[f]))+";";return c.replace(/;{2,}/g,";")}return H+":"+F}};v.setObject("dojox.embed.flashVars",x);return x})},"dojox/html/styles":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/window","dojo/_base/sniff"],function(v,x,H,F){var E=v.getObject("dojox.html",!0),d={},c={},f=[];E.insertCssRule=function(e,h,q){q=E.getDynamicStyleSheet(q);var l=e+" {"+h+"}";console.log("insertRule:",l);F("ie")?(q.cssText+=l,console.log("ss.cssText:",q.cssText)):q.sheet?q.sheet.insertRule(l,
q._indicies.length):q.appendChild(H.doc.createTextNode(l));q._indicies.push(e+" "+h);return e};E.removeCssRule=function(e,h,q){var l=-1,t,y;for(t in d)if(!q||q===t){var B=d[t];for(y=0;y<B._indicies.length;y++)if(e+" "+h===B._indicies[y]){l=y;break}if(-1<l)break}if(!B)return console.warn("No dynamic style sheet has been created from which to remove a rule."),!1;if(-1===l)return console.warn("The css rule was not found and could not be removed."),!1;B._indicies.splice(l,1);F("ie")?B.removeRule(l):B.sheet&&
B.sheet.deleteRule(l);return!0};E.modifyCssRule=function(e,h,q){};E.getStyleSheet=function(e){if(d[e||"default"])return d[e||"default"];if(!e)return!1;var h=E.getStyleSheets();if(h[e])return E.getStyleSheets()[e];for(var q in h)if(h[q].href&&-1<h[q].href.indexOf(e))return h[q];return!1};E.getDynamicStyleSheet=function(e){e||(e="default");d[e]||(H.doc.createStyleSheet?(d[e]=H.doc.createStyleSheet(),9>F("ie")&&(d[e].title=e)):(d[e]=H.doc.createElement("style"),d[e].setAttribute("type","text/css"),H.doc.getElementsByTagName("head")[0].appendChild(d[e]),
console.log(e," ss created: ",d[e].sheet)),d[e]._indicies=[]);return d[e]};E.enableStyleSheet=function(e){if(e=E.getStyleSheet(e))e.sheet?e.sheet.disabled=!1:e.disabled=!1};E.disableStyleSheet=function(e){if(e=E.getStyleSheet(e))e.sheet?e.sheet.disabled=!0:e.disabled=!0};E.activeStyleSheet=function(e){var h=E.getToggledStyleSheets(),q;if(1===arguments.length)x.forEach(h,function(l){l.disabled=l.title===e?!1:!0});else for(q=0;q<h.length;q++)if(!1===h[q].disabled)return h[q];return!0};E.getPreferredStyleSheet=
function(){};E.getToggledStyleSheets=function(){var e;if(!f.length){var h=E.getStyleSheets();for(e in h)h[e].title&&f.push(h[e])}return f};E.getStyleSheets=function(){if(c.collected)return c;x.forEach(H.doc.styleSheets,function(e){var h=e.sheet?e.sheet:e;e=h.title||h.href;if(F("ie"))-1===h.cssText.indexOf("#default#VML")&&(h.href?c[e]=h:h.imports.length?x.forEach(h.imports,function(q){c[q.title||q.href]=q}):c[e]=h);else{c[e]=h;c[e].id=h.ownerNode.id;e=[];try{e=h[h.cssRules?"cssRules":"rules"]}catch(q){console.warn("Reading css rules from stylesheet "+
h.href+" is forbidden due to same-origin policy. See http://www.w3.org/TR/CSP/#cascading-style-sheet-css-parsing",h)}x.forEach(e,function(q){q.href&&(c[q.href]=q.styleSheet,c[q.href].id=h.ownerNode.id)})}});c.collected=!0;return c};return E})},"jimu/dijit/EditorChooseImage":function(){define("dojo dijit dijit/_editor/_Plugin jimu/dijit/ImageChooser dojo/_base/html dojo/_base/lang dojo/i18n dojo/_base/connect dojo/_base/declare".split(" "),function(v,x,H,F,E,d,c){v.experimental("dojox.editor.plugins.ChooseImage");
var f=v.declare("dojox.editor.plugins.ChooseImage",H,{iconClassPrefix:"editorIcon",useDefaultCommand:!1,_initButton:function(){this.createFileInput();this.command="chooseImage";var e=c.getLocalization("dijit._editor","commands");this.button=new x.form.Button({label:e.insertImage,showLabel:!1,iconClass:this.iconClassPrefix+" "+this.iconClassPrefix+"UploadImage",tabIndex:"-1",onClick:d.hitch(this,this._chooseImage)});this.button.set("readOnly",!1);this.editor.commands[this.command]="Upload Image";this.inherited("_initButton",
arguments);delete this.command},updateState:function(){var e=this.get("disabled");this.button.set("disabled",this.get("disabled"));!0===e?(E.addClass(this.button,"dijitButtonDisabled"),this.imageChooser.disableChooseImage()):(E.removeClass(this.button,"dijitButtonDisabled"),this.imageChooser.enableChooseImage())},createFileInput:function(){var e=v.create("span",{innerHTML:"."},document.body);this.imageChooser=new F({showSelfImg:!1,cropImage:!1,format:[F.GIF,F.JPEG,F.PNG]},e);this.connect(this.imageChooser,
"onImageChange","insertTempImage")},_chooseImage:function(){E.setStyle(this.imageChooser.domNode,"display","none");this.imageChooser.triggerImgUpload()},onComplete:function(e){e=e[0];var h=v.byId(this.currentImageId,this.editor.document);var q=this.downloadPath?this.downloadPath+e.name:e.file;h.src=q;v.attr(h,"_djrealurl",q);e.width&&(h.width=e.width,h.height=e.height)},insertTempImage:function(e,h){h=h&&h.fileName?'alt\x3d"'+h.fileName+'"':"";this.currentImageId="img_"+(new Date).getTime();this.editor.execCommand("inserthtml",
'\x3cimg id\x3d"'+this.currentImageId+'" src\x3d"'+e+'" '+h+"/\x3e")},destroy:function(){this.imageChooser&&this.imageChooser.destroy();this.inherited(arguments)}});v.subscribe(x._scopeName+".Editor.getPlugin",null,function(e){if(!e.plugin)switch(e.args.name){case "chooseImage":e.plugin=new f({url:e.args.url})}});H.registry.chooseImage=function(e){return new f(e)};return f})},"jimu/dijit/EditorTextColor":function(){define("require dojo dijit dojo/_base/declare dijit/_editor/_Plugin dijit/form/DropDownButton".split(" "),
function(v,x,H,F,E,d){x.experimental("dijit.editor.plugins.EditorTextColor");var c=F("dijit.editor.plugins.EditorTextColor",E,{buttonClass:d,colorPicker:"jimu/dijit/ColorPalette",useDefaultCommand:!1,_initButton:function(){this.command="editorTextColor";this.hackCommand="foreColor";this.inherited(arguments);var f="",e=!1;this.params.custom&&(this.params.custom.recordUID&&(f=this.params.custom.recordUID),this.params.custom.forceAttr&&(e=this.params.custom.forceAttr));var h=this;this.button.set("iconClass",
this.iconClassPrefix+" "+this.iconClassPrefix+"ForeColor");this.button.set("title",this.getLabel(this.hackCommand));this.button.loadDropDown=function(q){function l(t){h.button.dropDown=new t({dir:h.editor.dir,ownerDocument:h.editor.ownerDocument,value:h.value,appearance:{showTransparent:!1,showColorPalette:!0,showCoustom:!0,showColorPickerApply:!1,showCoustomRecord:!0},recordUID:f,onChange:function(y){h.editor.execCommand("useCSS",e);h.editor.execCommand("styleWithCSS",!e);h.editor.execCommand(h.hackCommand,
y)},onClose:function(){h.button.closeDropDown()}});q()}"string"===typeof h.colorPicker?v([h.colorPicker],l):l(h.colorPicker)}},updateState:function(){var f=this.editor,e=this.hackCommand;if(f&&f.isLoaded&&e.length){if(this.button){var h=this.get("disabled");this.button.set("disabled",h);if(h)return;try{var q=f.queryCommandValue(e)||""}catch(l){q=""}}""===q?q="#000000":"transparent"===q&&(q="rgba(0, 0, 0, 0)");this.value=q;(f=this.button.dropDown)&&f.getColor&&q!==f.getColor()&&(f.refreshRecords(),
f.setColor(q))}}});x.subscribe(H._scopeName+".Editor.getPlugin",null,function(f){if(!f.plugin)switch(f.args.name){case "editorTextColor":f.plugin=new c}});return c})},"jimu/dijit/EditorBackgroundColor":function(){define("require dojo dijit dojo/_base/declare dijit/_editor/_Plugin dijit/form/DropDownButton".split(" "),function(v,x,H,F,E,d){x.experimental("dijit.editor.plugins.EditorBackgroundColor");var c=F("dijit.editor.plugins.EditorBackgroundColor",E,{buttonClass:d,colorPicker:"jimu/dijit/ColorPalette",
useDefaultCommand:!1,_initButton:function(){this.command="editorBackgroundColor";this.hackCommand="hiliteColor";this.inherited(arguments);var f="";this.params.custom&&this.params.custom.recordUID&&(f=this.params.custom.recordUID);var e=this;this.button.set("iconClass",this.iconClassPrefix+" "+this.iconClassPrefix+"HiliteColor");this.button.set("title",this.getLabel(this.hackCommand));this.button.loadDropDown=function(h){function q(l){e.button.dropDown=new l({dir:e.editor.dir,ownerDocument:e.editor.ownerDocument,
value:e.value,appearance:{showTransparent:!0,showColorPalette:!0,showCoustom:!0,showColorPickerOK:!0,showColorPickerApply:!1,showCoustomRecord:!0},recordUID:f,onChange:function(t){e.editor.execCommand("useCSS",!1);e.editor.execCommand("styleWithCSS",!0);e.editor.execCommand(e.hackCommand,t)},onExecute:function(){e.editor.execCommand(e.hackCommand,this.get("value"))},onClose:function(){e.button.closeDropDown()}});h()}"string"===typeof e.colorPicker?v([e.colorPicker],q):q(e.colorPicker)}},updateState:function(){var f=
this.editor,e=this.hackCommand;if(f&&f.isLoaded&&e.length){if(this.button){var h=this.get("disabled");this.button.set("disabled",h);if(h)return;try{var q=f.queryCommandValue(e)||""}catch(l){q=""}}""===q?q="#000000":"transparent"===q&&(q="rgba(0, 0, 0, 0)");this.value=q;(f=this.button.dropDown)&&f.getColor&&q!==f.getColor()&&(f.refreshRecords(),f.setColor(q))}}});x.subscribe(H._scopeName+".Editor.getPlugin",null,function(f){if(!f.plugin)switch(f.args.name){case "editorBackgroundColor":f.plugin=new c}});
return c})},"widgets/About/setting/_build-generate_module":function(){define(["dojo/text!./Setting.html","dojo/text!./css/style.css","dojo/i18n!./nls/strings"],function(){})},"url:widgets/About/setting/Setting.html":'\x3cdiv style\x3d"width:100%;"\x3e\r\n  \x3cdiv class\x3d"instruction"\x3e\r\n    \x3cspan class\x3d"instruction-inner"\x3e${nls.instruction}\x3c/span\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"editor-container" data-dojo-attach-point\x3d"editorContainer"\x3e\r\n  \t\x3cdiv data-dojo-attach-point\x3d"editor"\x3e\x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e',
"url:widgets/About/setting/css/style.css":".jimu-widget-about-setting{margin:0; padding:0; font-size:14px; margin-top: 20px; position: absolute; top: 0; bottom: 0; left: 0; right: 0;}.jimu-widget-about-setting .instruction span{color: #596679;}.jimu-widget-about-setting .editor-container{position: absolute; top: 34px; bottom: 5px; left: 0; right: 0; border: 1px solid #d2dae2; background-color: #fafafc;}.jimu-widget-about-setting .editor-container .uploaderInsideNode embed {display: none;}.jimu-widget-about-setting .editor-container .dijitEditorIFrameContainer{position: relative; width: 100%; overflow: hidden;}.jimu-widget-about-setting .editor-container .dijitEditorIFrameContainer {padding-top: 0;}.jimu-widget-about-setting .editor-container .dijitEditorIFrameContainer textarea {resize: none;}.jimu-widget-about-setting .dojoxEditorUploadNorm.dijitButtonDisabled {background: #ccc url(../../css/images/uploadImageIcon_disabled.gif) no-repeat 2px 2px;}",
"*now":function(v){v(['dojo/i18n!*preload*widgets/About/setting/nls/Setting*["ar","bs","ca","cs","da","de","en","el","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nb","nl","pl","pt-br","pt-pt","ro","ru","sk","sl","sr","sv","th","tr","zh-cn","uk","vi","zh-hk","zh-tw","ROOT"]'])},"*noref":1}});
define("dojo/_base/declare dojo/_base/lang dojo/_base/html dojo/sniff dojo/query dijit/_WidgetsInTemplateMixin dijit/Editor jimu/utils ../common jimu/BaseWidgetSetting jimu/dijit/EditorXssFilter dojo/NodeList-manipulate dijit/_editor/plugins/LinkDialog dijit/_editor/plugins/ViewSource dijit/_editor/plugins/FontChoice dojox/editor/plugins/Preview dijit/_editor/plugins/TextColor dojox/editor/plugins/ToolbarLineBreak dijit/ToolbarSeparator dojox/editor/plugins/FindReplace dojox/editor/plugins/PasteFromWord dojox/editor/plugins/InsertAnchor dojox/editor/plugins/Blockquote dojox/editor/plugins/UploadImage jimu/dijit/EditorChooseImage jimu/dijit/EditorTextColor jimu/dijit/EditorBackgroundColor".split(" "),function(v,
x,H,F,E,d,c,f,e,h,q){return v([h,d],{baseClass:"jimu-widget-about-setting",postCreate:function(){this.inherited(arguments);this.editorXssFilter=q.getInstance()},startup:function(){this.inherited(arguments);this.config.about||(this.config.about={});this.initEditor();this.setConfig(this.config);this.resize()},initEditor:function(){var l=document.getElementsByTagName("head")[0],t=window.apiUrl+"dojox/editor/plugins/resources/css/TextColor.css";E('link[href\x3d"'+t+'"]',l)[0]||f.loadStyleLink("editor_plugins_resources_TextColor",
t);t=window.apiUrl+"dojox/editor/plugins/resources/editorPlugins.css";E('link[href\x3d"'+t+'"]',l)[0]||f.loadStyleLink("editor_plugins_resources_editorPlugins",t);t=window.apiUrl+"dojox/editor/plugins/resources/css/PasteFromWord.css";E('link[href\x3d"'+t+'"]',l)[0]||f.loadStyleLink("editor_plugins_resources_PasteFromWord",t);this.editor=new c({plugins:["bold","italic","underline",f.getEditorTextColor("about"),f.getEditorBackgroundColor("about"),"|","justifyLeft","justifyCenter","justifyRight","justifyFull",
"|","insertOrderedList","insertUnorderedList","indent","outdent"],extraPlugins:["|","createLink","unlink","pastefromword","|","undo","redo","|","chooseImage","|","viewsource","toolbarlinebreak",{name:"dijit._editor.plugins.FontChoice",command:"fontName",custom:"Arial;Comic Sans MS;Courier New;Garamond;Tahoma;Times New Roman;Verdana".split(";")},"fontSize","formatBlock"],style:"font-family:Verdana;"},this.editor);H.setStyle(this.editor.domNode,{width:"100%",height:"100%"});this.editor.startup();8!==
F("ie")&&this.editor.resize({w:"100%",h:"100%"})},setConfig:function(l){this.config=l;e.isDefaultContent(l)&&(l.about.aboutContent=e.setDefaultContent(l,this.nls));l=this.editorXssFilter.sanitize(l.about.aboutContent||this.nls.defaultContent);this.editor.set("value",l);this.resize();setTimeout(x.hitch(this,function(){this.resize()}),200)},getConfig:function(){this.config.about.aboutContent=this.editor.get("value");return this.config},destroy:function(){var l=document.getElementsByTagName("head")[0];
E('link[id^\x3d"editor_plugins_resources"]',l).remove();this.inherited(arguments)},resize:function(){var l=H.getContentBox(this.editorContainer),t=E(".dijitEditorIFrameContainer",this.editorContainer)[0],y;this.editor&&this.editor.header&&(y=H.getContentBox(this.editor.header));t&&l&&y&&H.setStyle(t,"height",l.h-y.h-4+"px")}})});