diff --git a/Apps/Sandcastle/CesiumSandcastle.css b/Apps/Sandcastle/CesiumSandcastle.css index b1fe0992dcd4..d122bfb3597a 100644 --- a/Apps/Sandcastle/CesiumSandcastle.css +++ b/Apps/Sandcastle/CesiumSandcastle.css @@ -1,4 +1,4 @@ -@import url('../../ThirdParty/dojo-release-1.9.0/dijit/themes/claro/claro.css'); +@import url('../../ThirdParty/dojo-release-1.9.1/dijit/themes/claro/claro.css'); html, body { height: 100%; diff --git a/Apps/Sandcastle/CesiumSandcastle.js b/Apps/Sandcastle/CesiumSandcastle.js index 48200b17816e..4b6bc237ec6c 100644 --- a/Apps/Sandcastle/CesiumSandcastle.js +++ b/Apps/Sandcastle/CesiumSandcastle.js @@ -5,10 +5,10 @@ require({ baseUrl : '../../Source', packages : [{ name : 'dojo', - location : '../ThirdParty/dojo-release-1.9.0/dojo' + location : '../ThirdParty/dojo-release-1.9.1/dojo' }, { name : 'dijit', - location : '../ThirdParty/dojo-release-1.9.0/dijit' + location : '../ThirdParty/dojo-release-1.9.1/dijit' }, { name : 'Sandcastle', location : '../Apps/Sandcastle' diff --git a/Apps/Sandcastle/gallery/Animations.html b/Apps/Sandcastle/gallery/Animations.html index d8f3bf6e981c..b6fbabfcf6af 100644 --- a/Apps/Sandcastle/gallery/Animations.html +++ b/Apps/Sandcastle/gallery/Animations.html @@ -11,13 +11,13 @@ var dojoConfig = { baseUrl : '../../../Source', packages: [ - { name: 'dojo', location: '../ThirdParty/dojo-release-1.9.0/dojo' }, - { name: 'dijit', location: '../ThirdParty/dojo-release-1.9.0/dijit' } + { name: 'dojo', location: '../ThirdParty/dojo-release-1.9.1/dojo' }, + { name: 'dijit', location: '../ThirdParty/dojo-release-1.9.1/dijit' } ] }; - - + + + src="../../ThirdParty/dojo-release-1.9.1/dojo/dojo.js"> diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 472ef047ed22..ff17a3b004aa 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -9,6 +9,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu * [Ed Mackey](https://github.com/emackey) * [Dan Bagnell](https://github.com/bagnell) * [Scott Hunter](https://github.com/shunter) + * [Frank Stoner](https://github.com/fstoner) * [Matthew Ford](https://github.com/mrmattf) * [Tom Fili](https://github.com/tfili) * [Matthew Amato](https://github.com/mramato) diff --git a/Specs/Scene/PolylineCollectionSpec.js b/Specs/Scene/PolylineCollectionSpec.js index 8ac37c3f1f92..aa2f1891f14a 100644 --- a/Specs/Scene/PolylineCollectionSpec.js +++ b/Specs/Scene/PolylineCollectionSpec.js @@ -366,7 +366,7 @@ defineSuite([ expect(context.readPixels()).toNotEqual([0, 0, 0, 0]); }); - it('does not crash is polyline has one position', function() { + it('does not crash if polyline has one position', function() { polylines.add({ positions : [{ x : 1647745.6656519484, diff --git a/ThirdParty/dojo-release-1.9.0/dijit/dijit-all.js b/ThirdParty/dojo-release-1.9.0/dijit/dijit-all.js deleted file mode 100644 index 1ebb68777abf..000000000000 --- a/ThirdParty/dojo-release-1.9.0/dijit/dijit-all.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - -/* - This is an optimized version of Dojo, built for deployment and not for - development. To get sources and documentation, please visit: - - http://dojotoolkit.org -*/ - -//>>built -require({cache:{"dijit/_editor/plugins/FontChoice":function(){define(["require","dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/i18n","dojo/_base/lang","dojo/store/Memory","../../registry","../../_Widget","../../_TemplatedMixin","../../_WidgetsInTemplateMixin","../../form/FilteringSelect","../_Plugin","../range","dojo/i18n!../nls/FontChoice"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e){var _f=_3("dijit._editor.plugins._FontDropDown",[_9,_a,_b],{label:"",plainText:false,templateString:""+""+""+"",contextRequire:_1,postMixInProperties:function(){this.inherited(arguments);this.strings=_5.getLocalization("dijit._editor","FontChoice");this.label=this.strings[this.command];this.id=_8.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.selectId=this.id+"_select";this.inherited(arguments);},postCreate:function(){this.select.set("store",new _7({idProperty:"value",data:_2.map(this.values,function(_10){var _11=this.strings[_10]||_10;return {label:this.getLabel(_10,_11),name:_11,value:_10};},this)}));this.select.set("value","",false);this.disabled=this.select.get("disabled");},_setValueAttr:function(_12,_13){_13=_13!==false;this.select.set("value",_2.indexOf(this.values,_12)<0?"":_12,_13);if(!_13){this.select._lastValueReported=null;}},_getValueAttr:function(){return this.select.get("value");},focus:function(){this.select.focus();},_setDisabledAttr:function(_14){this._set("disabled",_14);this.select.set("disabled",_14);}});var _15=_3("dijit._editor.plugins._FontNameDropDown",_f,{generic:false,command:"fontName",comboClass:"dijitFontNameCombo",postMixInProperties:function(){if(!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(_16,_17){if(this.plainText){return _17;}else{return "
"+_17+"
";}},_setValueAttr:function(_18,_19){_19=_19!==false;if(this.generic){var map={"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"};_18=map[_18]||_18;}this.inherited(arguments,[_18,_19]);}});var _1a=_3("dijit._editor.plugins._FontSizeDropDown",_f,{command:"fontSize",comboClass:"dijitFontSizeCombo",values:[1,2,3,4,5,6,7],getLabel:function(_1b,_1c){if(this.plainText){return _1c;}else{return ""+_1c+"";}},_setValueAttr:function(_1d,_1e){_1e=_1e!==false;if(_1d.indexOf&&_1d.indexOf("px")!=-1){var _1f=parseInt(_1d,10);_1d={10:1,13:2,16:3,18:4,24:5,32:6,48:7}[_1f]||_1d;}this.inherited(arguments,[_1d,_1e]);}});var _20=_3("dijit._editor.plugins._FormatBlockDropDown",_f,{command:"formatBlock",comboClass:"dijitFormatBlockCombo",values:["noFormat","p","h1","h2","h3","pre"],postCreate:function(){this.inherited(arguments);this.set("value","noFormat",false);},getLabel:function(_21,_22){if(this.plainText||_21=="noFormat"){return _22;}else{return "<"+_21+">"+_22+"";}},_execCommand:function(_23,_24,_25){if(_25==="noFormat"){var _26;var end;var sel=_e.getSelection(_23.window);if(sel&&sel.rangeCount>0){var _27=sel.getRangeAt(0);var _28,tag;if(_27){_26=_27.startContainer;end=_27.endContainer;while(_26&&_26!==_23.editNode&&_26!==_23.document.body&&_26.nodeType!==1){_26=_26.parentNode;}while(end&&end!==_23.editNode&&end!==_23.document.body&&end.nodeType!==1){end=end.parentNode;}var _29=_6.hitch(this,function(_2a,ary){if(_2a.childNodes&&_2a.childNodes.length){var i;for(i=0;i<_2a.childNodes.length;i++){var c=_2a.childNodes[i];if(c.nodeType==1){if(_23.selection.inSelection(c)){var tag=c.tagName?c.tagName.toLowerCase():"";if(_2.indexOf(this.values,tag)!==-1){ary.push(c);}_29(c,ary);}}}}});var _2b=_6.hitch(this,function(_2c){if(_2c&&_2c.length){_23.beginEditing();while(_2c.length){this._removeFormat(_23,_2c.pop());}_23.endEditing();}});var _2d=[];if(_26==end){var _2e;_28=_26;while(_28&&_28!==_23.editNode&&_28!==_23.document.body){if(_28.nodeType==1){tag=_28.tagName?_28.tagName.toLowerCase():"";if(_2.indexOf(this.values,tag)!==-1){_2e=_28;break;}}_28=_28.parentNode;}_29(_26,_2d);if(_2e){_2d=[_2e].concat(_2d);}_2b(_2d);}else{_28=_26;while(_23.selection.inSelection(_28)){if(_28.nodeType==1){tag=_28.tagName?_28.tagName.toLowerCase():"";if(_2.indexOf(this.values,tag)!==-1){_2d.push(_28);}_29(_28,_2d);}_28=_28.nextSibling;}_2b(_2d);}_23.onDisplayChanged();}}}else{_23.execCommand(_24,_25);}},_removeFormat:function(_2f,_30){if(_2f.customUndo){while(_30.firstChild){_4.place(_30.firstChild,_30,"before");}_30.parentNode.removeChild(_30);}else{_2f.selection.selectElementChildren(_30);var _31=_2f.selection.getSelectedHtml();_2f.selection.selectElement(_30);_2f.execCommand("inserthtml",_31||"");}}});var _32=_3("dijit._editor.plugins.FontChoice",_d,{useDefaultCommand:false,_initButton:function(){var _33={fontName:_15,fontSize:_1a,formatBlock:_20}[this.command],_34=this.params;if(this.params.custom){_34.values=this.params.custom;}var _35=this.editor;this.button=new _33(_6.delegate({dir:_35.dir,lang:_35.lang},_34));this.own(this.button.select.on("change",_6.hitch(this,function(_36){if(this.editor.focused){this.editor.focus();}if(this.command=="fontName"&&_36.indexOf(" ")!=-1){_36="'"+_36+"'";}if(this.button._execCommand){this.button._execCommand(this.editor,this.command,_36);}else{this.editor.execCommand(this.command,_36);}})));},updateState:function(){var _37=this.editor;var _38=this.command;if(!_37||!_37.isLoaded||!_38.length){return;}if(this.button){var _39=this.get("disabled");this.button.set("disabled",_39);if(_39){return;}var _3a;try{_3a=_37.queryCommandValue(_38)||"";}catch(e){_3a="";}var _3b=_6.isString(_3a)&&_3a.match(/'([^']*)'/);if(_3b){_3a=_3b[1];}if(_38==="formatBlock"){if(!_3a||_3a=="p"){_3a=null;var _3c;var sel=_e.getSelection(this.editor.window);if(sel&&sel.rangeCount>0){var _3d=sel.getRangeAt(0);if(_3d){_3c=_3d.endContainer;}}while(_3c&&_3c!==_37.editNode&&_3c!==_37.document){var tg=_3c.tagName?_3c.tagName.toLowerCase():"";if(tg&&_2.indexOf(this.button.values,tg)>-1){_3a=tg;break;}_3c=_3c.parentNode;}if(!_3a){_3a="noFormat";}}else{if(_2.indexOf(this.button.values,_3a)<0){_3a="noFormat";}}}if(_3a!==this.button.get("value")){this.button.set("value",_3a,false);}}}});_2.forEach(["fontName","fontSize","formatBlock"],function(_3e){_d.registry[_3e]=function(_3f){return new _32({command:_3e,plainText:_3f.plainText});};});_32._FontDropDown=_f;_32._FontNameDropDown=_15;_32._FontSizeDropDown=_1a;_32._FormatBlockDropDown=_20;return _32;});},"dijit/form/TextBox":function(){define(["dojo/_base/declare","dojo/dom-construct","dojo/dom-style","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/sniff","./_FormValueWidget","./_TextBoxMixin","dojo/text!./templates/TextBox.html","../main"],function(_40,_41,_42,_43,_44,on,has,_45,_46,_47,_48){var _49=_40("dijit.form.TextBox"+(has("dojo-bidi")?"_NoBidi":""),[_45,_46],{templateString:_47,_singleNodeTemplate:"",_buttonInputDisabled:has("ie")?"disabled":"",baseClass:"dijitTextBox",postMixInProperties:function(){var _4a=this.type.toLowerCase();if(this.templateString&&this.templateString.toLowerCase()=="input"||((_4a=="hidden"||_4a=="file")&&this.templateString==this.constructor.prototype.templateString)){this.templateString=this._singleNodeTemplate;}this.inherited(arguments);},postCreate:function(){this.inherited(arguments);if(has("ie")<9){this.defer(function(){try{var s=_42.getComputedStyle(this.domNode);if(s){var ff=s.fontFamily;if(ff){var _4b=this.domNode.getElementsByTagName("INPUT");if(_4b){for(var i=0;i<_4b.length;i++){_4b[i].style.fontFamily=ff;}}}}}catch(e){}});}},_setPlaceHolderAttr:function(v){this._set("placeHolder",v);if(!this._phspan){this._attachPoints.push("_phspan");this._phspan=_41.create("span",{onmousedown:function(e){e.preventDefault();},className:"dijitPlaceHolder dijitInputField"},this.textbox,"after");this.own(on(this._phspan,"touchend, MSPointerUp",_44.hitch(this,function(){this.focus();})));}this._phspan.innerHTML="";this._phspan.appendChild(this._phspan.ownerDocument.createTextNode(v));this._updatePlaceHolder();},_onInput:function(evt){this.inherited(arguments);this._updatePlaceHolder();},_updatePlaceHolder:function(){if(this._phspan){this._phspan.style.display=(this.placeHolder&&!this.textbox.value)?"":"none";}},_setValueAttr:function(_4c,_4d,_4e){this.inherited(arguments);this._updatePlaceHolder();},getDisplayedValue:function(){_43.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use get('displayedValue') instead.","","2.0");return this.get("displayedValue");},setDisplayedValue:function(_4f){_43.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_4f);},_onBlur:function(e){if(this.disabled){return;}this.inherited(arguments);this._updatePlaceHolder();if(has("mozilla")){if(this.selectOnClick){this.textbox.selectionStart=this.textbox.selectionEnd=undefined;}}},_onFocus:function(by){if(this.disabled||this.readOnly){return;}this.inherited(arguments);this._updatePlaceHolder();}});if(has("ie")){_49.prototype._isTextSelected=function(){var _50=this.ownerDocument.selection.createRange();var _51=_50.parentElement();return _51==this.textbox&&_50.text.length>0;};_48._setSelectionRange=_46._setSelectionRange=function(_52,_53,_54){if(_52.createTextRange){var r=_52.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_53);r.moveEnd("character",_54-_53);r.select();}};}if(has("dojo-bidi")){_49=_40("dijit.form.TextBox",_49,{_setPlaceHolderAttr:function(v){this.inherited(arguments);this.applyTextDir(this._phspan);}});}return _49;});},"dojo/currency":function(){define(["./_base/array","./_base/lang","./number","./i18n","./i18n!./cldr/nls/currency","./cldr/monetary"],function(_55,_56,_57,_58,_59,_5a){var _5b={};_56.setObject("dojo.currency",_5b);_5b._mixInDefaults=function(_5c){_5c=_5c||{};_5c.type="currency";var _5d=_58.getLocalization("dojo.cldr","currency",_5c.locale)||{};var iso=_5c.currency;var _5e=_5a.getData(iso);_55.forEach(["displayName","symbol","group","decimal"],function(_5f){_5e[_5f]=_5d[iso+"_"+_5f];});_5e.fractional=[true,false];return _56.mixin(_5e,_5c);};_5b.format=function(_60,_61){return _57.format(_60,_5b._mixInDefaults(_61));};_5b.regexp=function(_62){return _57.regexp(_5b._mixInDefaults(_62));};_5b.parse=function(_63,_64){return _57.parse(_63,_5b._mixInDefaults(_64));};return _5b;});},"dijit/layout/ScrollingTabController":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/fx","dojo/_base/lang","dojo/on","dojo/query","dojo/sniff","../registry","dojo/text!./templates/ScrollingTabController.html","dojo/text!./templates/_ScrollingTabControllerButton.html","./TabController","./utils","../_WidgetsInTemplateMixin","../Menu","../MenuItem","../form/Button","../_HasDropDown","dojo/NodeList-dom","../a11yclick"],function(_65,_66,_67,_68,_69,fx,_6a,on,_6b,has,_6c,_6d,_6e,_6f,_70,_71,_72,_73,_74,_75){var _76=_66("dijit.layout.ScrollingTabController",[_6f,_71],{baseClass:"dijitTabController dijitScrollingTabController",templateString:_6d,useMenu:true,useSlider:true,tabStripClass:"",_minScroll:5,_setClassAttr:{node:"containerNode",type:"class"},buildRendering:function(){this.inherited(arguments);var n=this.domNode;this.scrollNode=this.tablistWrapper;this._initButtons();if(!this.tabStripClass){this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"")+"None";_67.add(n,"tabStrip-disabled");}_67.add(this.tablistWrapper,this.tabStripClass);},onStartup:function(){this.inherited(arguments);_69.set(this.domNode,"visibility","");this._postStartup=true;this.own(on(this.containerNode,"attrmodified-label, attrmodified-iconclass",_6a.hitch(this,function(evt){if(this._dim){this.resize(this._dim);}})));},onAddChild:function(_77,_78){this.inherited(arguments);_69.set(this.containerNode,"width",(_69.get(this.containerNode,"width")+200)+"px");},onRemoveChild:function(_79,_7a){var _7b=this.pane2button(_79.id);if(this._selectedTab===_7b.domNode){this._selectedTab=null;}this.inherited(arguments);},_initButtons:function(){this._btnWidth=0;this._buttons=_6b("> .tabStripButton",this.domNode).filter(function(btn){if((this.useMenu&&btn==this._menuBtn.domNode)||(this.useSlider&&(btn==this._rightBtn.domNode||btn==this._leftBtn.domNode))){this._btnWidth+=_68.getMarginSize(btn).w;return true;}else{_69.set(btn,"display","none");return false;}},this);},_getTabsWidth:function(){var _7c=this.getChildren();if(_7c.length){var _7d=_7c[this.isLeftToRight()?0:_7c.length-1].domNode,_7e=_7c[this.isLeftToRight()?_7c.length-1:0].domNode;return _7e.offsetLeft+_7e.offsetWidth-_7d.offsetLeft;}else{return 0;}},_enableBtn:function(_7f){var _80=this._getTabsWidth();_7f=_7f||_69.get(this.scrollNode,"width");return _80>0&&_7f<_80;},resize:function(dim){this._dim=dim;this.scrollNode.style.height="auto";var cb=this._contentBox=_70.marginBox2contentBox(this.domNode,{h:0,w:dim.w});cb.h=this.scrollNode.offsetHeight;_68.setContentSize(this.domNode,cb);var _81=this._enableBtn(this._contentBox.w);this._buttons.style("display",_81?"":"none");this._leftBtn.region="left";this._rightBtn.region="right";this._menuBtn.region=this.isLeftToRight()?"right":"left";_70.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,region:"center"}]);if(this._selectedTab){if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}this.scrollNode.scrollLeft=this._convertToScrollLeft(this._getScrollForSelectedTab());}this._setButtonClass(this._getScroll());this._postResize=true;return {h:this._contentBox.h,w:dim.w};},_getScroll:function(){return (this.isLeftToRight()||has("ie")<8||(has("ie")&&has("quirks"))||has("webkit"))?this.scrollNode.scrollLeft:_69.get(this.containerNode,"width")-_69.get(this.scrollNode,"width")+(has("ie")>=8?-1:1)*this.scrollNode.scrollLeft;},_convertToScrollLeft:function(val){if(this.isLeftToRight()||has("ie")<8||(has("ie")&&has("quirks"))||has("webkit")){return val;}else{var _82=_69.get(this.containerNode,"width")-_69.get(this.scrollNode,"width");return (has("ie")>=8?-1:1)*(val-_82);}},onSelectChild:function(_83){var tab=this.pane2button(_83.id);if(!tab){return;}var _84=tab.domNode;if(_84!=this._selectedTab){this._selectedTab=_84;if(this._postResize){var sl=this._getScroll();if(sl>_84.offsetLeft||sl+_69.get(this.scrollNode,"width")<_84.offsetLeft+_69.get(_84,"width")){this.createSmoothScroll().play();}}}this.inherited(arguments);},_getScrollBounds:function(){var _85=this.getChildren(),_86=_69.get(this.scrollNode,"width"),_87=_69.get(this.containerNode,"width"),_88=_87-_86,_89=this._getTabsWidth();if(_85.length&&_89>_86){return {min:this.isLeftToRight()?0:_85[_85.length-1].domNode.offsetLeft,max:this.isLeftToRight()?(_85[_85.length-1].domNode.offsetLeft+_85[_85.length-1].domNode.offsetWidth)-_86:_88};}else{var _8a=this.isLeftToRight()?0:_88;return {min:_8a,max:_8a};}},_getScrollForSelectedTab:function(){var w=this.scrollNode,n=this._selectedTab,_8b=_69.get(this.scrollNode,"width"),_8c=this._getScrollBounds();var pos=(n.offsetLeft+_69.get(n,"width")/2)-_8b/2;pos=Math.min(Math.max(pos,_8c.min),_8c.max);return pos;},createSmoothScroll:function(x){if(arguments.length>0){var _8d=this._getScrollBounds();x=Math.min(Math.max(x,_8d.min),_8d.max);}else{x=this._getScrollForSelectedTab();}if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}var _8e=this,w=this.scrollNode,_8f=new fx.Animation({beforeBegin:function(){if(this.curve){delete this.curve;}var _90=w.scrollLeft,_91=_8e._convertToScrollLeft(x);_8f.curve=new fx._Line(_90,_91);},onAnimate:function(val){w.scrollLeft=val;}});this._anim=_8f;this._setButtonClass(x);return _8f;},_getBtnNode:function(e){var n=e.target;while(n&&!_67.contains(n,"tabStripButton")){n=n.parentNode;}return n;},doSlideRight:function(e){this.doSlide(1,this._getBtnNode(e));},doSlideLeft:function(e){this.doSlide(-1,this._getBtnNode(e));},doSlide:function(_92,_93){if(_93&&_67.contains(_93,"dijitTabDisabled")){return;}var _94=_69.get(this.scrollNode,"width");var d=(_94*0.75)*_92;var to=this._getScroll()+d;this._setButtonClass(to);this.createSmoothScroll(to).play();},_setButtonClass:function(_95){var _96=this._getScrollBounds();this._leftBtn.set("disabled",_95<=_96.min);this._rightBtn.set("disabled",_95>=_96.max);}});var _97=_66("dijit.layout._ScrollingTabControllerButtonMixin",null,{baseClass:"dijitTab tabStripButton",templateString:_6e,tabIndex:"",isFocusable:function(){return false;}});_66("dijit.layout._ScrollingTabControllerButton",[_74,_97]);_66("dijit.layout._ScrollingTabControllerMenuButton",[_74,_75,_97],{containerId:"",tabIndex:"-1",isLoaded:function(){return false;},loadDropDown:function(_98){this.dropDown=new _72({id:this.containerId+"_menu",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir});var _99=_6c.byId(this.containerId);_65.forEach(_99.getChildren(),function(_9a){var _9b=new _73({id:_9a.id+"_stcMi",label:_9a.title,iconClass:_9a.iconClass,disabled:_9a.disabled,ownerDocument:this.ownerDocument,dir:_9a.dir,lang:_9a.lang,textDir:_9a.textDir||_99.textDir,onClick:function(){_99.selectChild(_9a);}});this.dropDown.addChild(_9b);},this);_98();},closeDropDown:function(_9c){this.inherited(arguments);if(this.dropDown){this._popupStateNode.removeAttribute("aria-owns");this.dropDown.destroyRecursive();delete this.dropDown;}}});return _76;});},"dijit/DialogUnderlay":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/aspect","dojo/dom-attr","dojo/dom-style","dojo/on","dojo/window","./_Widget","./_TemplatedMixin","./BackgroundIframe","./Viewport","./main"],function(_9d,_9e,_9f,_a0,_a1,on,_a2,_a3,_a4,_a5,_a6,_a7){var _a8=_9d("dijit.DialogUnderlay",[_a3,_a4],{templateString:"
",dialogId:"","class":"",_modalConnects:[],_setDialogIdAttr:function(id){_a0.set(this.node,"id",id+"_underlay");this._set("dialogId",id);},_setClassAttr:function(_a9){this.node.className="dijitDialogUnderlay "+_a9;this._set("class",_a9);},postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);this.own(on(this.domNode,"keydown",_9e.hitch(this,"_onKeyDown")));this.inherited(arguments);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _aa=_a2.getBox(this.ownerDocument);os.top=_aa.t+"px";os.left=_aa.l+"px";is.width=_aa.w+"px";is.height=_aa.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.open=true;this.layout();this.bgIframe=new _a5(this.domNode);var win=_a2.get(this.ownerDocument);this._modalConnects=[_a6.on("resize",_9e.hitch(this,"layout")),on(win,"scroll",_9e.hitch(this,"layout"))];},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none";while(this._modalConnects.length){(this._modalConnects.pop()).remove();}this.open=false;},destroy:function(){while(this._modalConnects.length){(this._modalConnects.pop()).remove();}this.inherited(arguments);},_onKeyDown:function(){}});_a8.show=function(_ab,_ac){var _ad=_a8._singleton;if(!_ad||_ad._destroyed){_ad=_a7._underlay=_a8._singleton=new _a8(_ab);}else{if(_ab){_ad.set(_ab);}}_a1.set(_ad.domNode,"zIndex",_ac);if(!_ad.open){_ad.show();}};_a8.hide=function(){var _ae=_a8._singleton;if(_ae&&!_ae._destroyed){_ae.hide();}};return _a8;});},"dijit/_editor/html":function(){define(["dojo/_base/array","dojo/_base/lang","dojo/sniff"],function(_af,_b0,has){var _b1={};_b0.setObject("dijit._editor.html",_b1);var _b2=_b1.escapeXml=function(str,_b3){str=str.replace(/&/gm,"&").replace(//gm,">").replace(/"/gm,""");if(!_b3){str=str.replace(/'/gm,"'");}return str;};_b1.getNodeHtml=function(_b4){var _b5=[];_b1.getNodeHtmlHelper(_b4,_b5);return _b5.join("");};_b1.getNodeHtmlHelper=function(_b6,_b7){switch(_b6.nodeType){case 1:var _b8=_b6.nodeName.toLowerCase();if(!_b8||_b8.charAt(0)=="/"){return "";}_b7.push("<",_b8);var _b9=[],_ba={};var _bb;if(has("dom-attributes-explicit")||has("dom-attributes-specified-flag")){var i=0;while((_bb=_b6.attributes[i++])){var n=_bb.name;if(n.substr(0,3)!=="_dj"&&(!has("dom-attributes-specified-flag")||_bb.specified)&&!(n in _ba)){var v=_bb.value;if(n=="src"||n=="href"){if(_b6.getAttribute("_djrealurl")){v=_b6.getAttribute("_djrealurl");}}if(has("ie")===8&&n==="style"){v=v.replace("HEIGHT:","height:").replace("WIDTH:","width:");}_b9.push([n,v]);_ba[n]=v;}}}else{var _bc=/^input$|^img$/i.test(_b6.nodeName)?_b6:_b6.cloneNode(false);var s=_bc.outerHTML;var _bd=/[\w-]+=("[^"]*"|'[^']*'|\S*)/gi;var _be=s.match(_bd);s=s.substr(0,s.indexOf(">"));_af.forEach(_be,function(_bf){if(_bf){var idx=_bf.indexOf("=");if(idx>0){var key=_bf.substring(0,idx);if(key.substr(0,3)!="_dj"){if(key=="src"||key=="href"){if(_b6.getAttribute("_djrealurl")){_b9.push([key,_b6.getAttribute("_djrealurl")]);return;}}var val,_c0;switch(key){case "style":val=_b6.style.cssText.toLowerCase();break;case "class":val=_b6.className;break;case "width":if(_b8==="img"){_c0=/width=(\S+)/i.exec(s);if(_c0){val=_c0[1];}break;}case "height":if(_b8==="img"){_c0=/height=(\S+)/i.exec(s);if(_c0){val=_c0[1];}break;}default:val=_b6.getAttribute(key);}if(val!=null){_b9.push([key,val.toString()]);}}}}},this);}_b9.sort(function(a,b){return a[0]");break;case "script":_b7.push(">",_b6.innerHTML,"");break;default:_b7.push(">");if(_b6.hasChildNodes()){_b1.getChildrenHtmlHelper(_b6,_b7);}_b7.push("");}break;case 4:case 3:_b7.push(_b2(_b6.nodeValue,true));break;case 8:_b7.push("");break;default:_b7.push("");}};_b1.getChildrenHtml=function(_c1){var _c2=[];_b1.getChildrenHtmlHelper(_c1,_c2);return _c2.join("");};_b1.getChildrenHtmlHelper=function(dom,_c3){if(!dom){return;}var _c4=dom["childNodes"]||dom;var _c5=!has("ie")||_c4!==dom;var _c6,i=0;while((_c6=_c4[i++])){if(!_c5||_c6.parentNode==dom){_b1.getNodeHtmlHelper(_c6,_c3);}}};return _b1;});},"dijit/_HasDropDown":function(){define(["dojo/_base/declare","dojo/_base/Deferred","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/keys","dojo/_base/lang","dojo/on","dojo/touch","./registry","./focus","./popup","./_FocusMixin"],function(_c7,_c8,dom,_c9,_ca,_cb,_cc,has,_cd,_ce,on,_cf,_d0,_d1,_d2,_d3){return _c7("dijit._HasDropDown",_d3,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:-1,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(e){if(this.disabled||this.readOnly){return;}e.preventDefault();this._docHandler=this.own(on(this.ownerDocument,_cf.release,_ce.hitch(this,"_onDropDownMouseUp")))[0];this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this._docHandler.remove();this._docHandler=null;}var _d4=this.dropDown,_d5=false;if(e&&this._opened){var c=_cb.position(this._buttonNode,true);if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){var t=e.target;while(t&&!_d5){if(_ca.contains(t,"dijitPopup")){_d5=true;}else{t=t.parentNode;}}if(_d5){t=e.target;if(_d4.onItemClick){var _d6;while(t&&!(_d6=_d0.byNode(t))){t=t.parentNode;}if(_d6&&_d6.onClick&&_d6.getParent){_d6.getParent().onItemClick(_d6,e);}}return;}}}if(this._opened){if(_d4.focus&&_d4.autoFocus!==false){this._focusDropDownTimer=this.defer(function(){_d4.focus();delete this._focusDropDownTimer;});}}else{if(this.focus){this.defer("focus");}}},_onDropDownClick:function(e){if(this._stopClickEvents){e.stopPropagation();e.preventDefault();}},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var _d7={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";_ca.add(this._arrowWrapperNode||this._buttonNode,"dijit"+_d7+"ArrowButton");},postCreate:function(){this.inherited(arguments);var _d8=this.focusNode||this.domNode;this.own(on(this._buttonNode,_cf.press,_ce.hitch(this,"_onDropDownMouseDown")),on(this._buttonNode,"click",_ce.hitch(this,"_onDropDownClick")),on(_d8,"keydown",_ce.hitch(this,"_onKey")),on(_d8,"keyup",_ce.hitch(this,"_onKeyUp")));},destroy:function(){if(this.dropDown){if(!this.dropDown._destroyed){this.dropDown.destroyRecursive();}delete this.dropDown;}this.inherited(arguments);},_onKey:function(e){if(this.disabled||this.readOnly){return;}var d=this.dropDown,_d9=e.target;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){e.stopPropagation();e.preventDefault();return;}}if(d&&this._opened&&e.keyCode==_cd.ESCAPE){this.closeDropDown();e.stopPropagation();e.preventDefault();}else{if(!this._opened&&(e.keyCode==_cd.DOWN_ARROW||((e.keyCode==_cd.ENTER||(e.keyCode==_cd.SPACE&&(!this._searchTimer||(e.ctrlKey||e.altKey||e.metaKey))))&&((_d9.tagName||"").toLowerCase()!=="input"||(_d9.type&&_d9.type.toLowerCase()!=="text"))))){this._toggleOnKeyUp=true;e.stopPropagation();e.preventDefault();}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var d=this.dropDown;if(d&&d.focus){this.defer(_ce.hitch(d,"focus"),1);}}},_onBlur:function(){this.closeDropDown(false);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_da){_da();},loadAndOpenDropDown:function(){var d=new _c8(),_db=_ce.hitch(this,function(){this.openDropDown();d.resolve(this.dropDown);});if(!this.isLoaded()){this.loadDropDown(_db);}else{_db();}return d;},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}if(!this._opened){this.loadAndOpenDropDown();}else{this.closeDropDown(true);}},openDropDown:function(){var _dc=this.dropDown,_dd=_dc.domNode,_de=this._aroundNode||this.domNode,_df=this;var _e0=_d2.open({parent:this,popup:_dc,around:_de,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){_df.closeDropDown(true);},onCancel:function(){_df.closeDropDown(true);},onClose:function(){_c9.set(_df._popupStateNode,"popupActive",false);_ca.remove(_df._popupStateNode,"dijitHasDropDownOpen");_df._set("_opened",false);}});if(this.forceWidth||(this.autoWidth&&_de.offsetWidth>_dc._popupWrapper.offsetWidth)){var _e1={w:_de.offsetWidth-(_dc._popupWrapper.offsetWidth-_dc.domNode.offsetWidth)};if(_ce.isFunction(_dc.resize)){_dc.resize(_e1);}else{_cb.setMarginBox(_dd,_e1);}}_c9.set(this._popupStateNode,"popupActive","true");_ca.add(this._popupStateNode,"dijitHasDropDownOpen");this._set("_opened",true);this._popupStateNode.setAttribute("aria-expanded","true");this._popupStateNode.setAttribute("aria-owns",_dc.id);if(_dd.getAttribute("role")!=="presentation"&&!_dd.getAttribute("aria-labelledby")){_dd.setAttribute("aria-labelledby",this.id);}return _e0;},closeDropDown:function(_e2){if(this._focusDropDownTimer){this._focusDropDownTimer.remove();delete this._focusDropDownTimer;}if(this._opened){this._popupStateNode.setAttribute("aria-expanded","false");if(_e2){this.focus();}_d2.close(this.dropDown);this._opened=false;}}});});},"dijit/tree/TreeStoreModel":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/_base/lang"],function(_e3,_e4,_e5,_e6){return _e5("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:false,constructor:function(_e7){_e6.mixin(this,_e7);this.connects=[];var _e8=this.store;if(!_e8.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.tree.TreeStoreModel: store must support dojo.data.Identity");}if(_e8.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([_e4.after(_e8,"onNew",_e6.hitch(this,"onNewItem"),true),_e4.after(_e8,"onDelete",_e6.hitch(this,"onDeleteItem"),true),_e4.after(_e8,"onSet",_e6.hitch(this,"onSetItem"),true)]);}},destroy:function(){var h;while(h=this.connects.pop()){h.remove();}},getRoot:function(_e9,_ea){if(this.root){_e9(this.root);}else{this.store.fetch({query:this.query,onComplete:_e6.hitch(this,function(_eb){if(_eb.length!=1){throw new Error("dijit.tree.TreeStoreModel: root query returned "+_eb.length+" items, but must return exactly one");}this.root=_eb[0];_e9(this.root);}),onError:_ea});}},mayHaveChildren:function(_ec){return _e3.some(this.childrenAttrs,function(_ed){return this.store.hasAttribute(_ec,_ed);},this);},getChildren:function(_ee,_ef,_f0){var _f1=this.store;if(!_f1.isItemLoaded(_ee)){var _f2=_e6.hitch(this,arguments.callee);_f1.loadItem({item:_ee,onItem:function(_f3){_f2(_f3,_ef,_f0);},onError:_f0});return;}var _f4=[];for(var i=0;i=9){this.own(on(_117.document,"paste",lang.hitch(this,function(e){setTimeout(lang.hitch(this,function(){var r=this.editor.document.selection.createRange();r.move("character",-1);r.select();r.move("character",1);r.select();}),0);})));}return d;}));}else{if(this.blockNodeForEnter){var h=lang.hitch(this,"handleEnterKey");_117.addKeyHandler(13,0,0,h);_117.addKeyHandler(13,0,1,h);this.own(this.editor.on("KeyPressed",lang.hitch(this,"onKeyPressed")));}}},onKeyPressed:function(){if(this._checkListLater){if(win.withGlobal(this.editor.window,"isCollapsed",_116)){var _118=this.editor.selection.getAncestorElement("LI");if(!_118){_114.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);var _119=this.editor.selection.getAncestorElement(this.blockNodeForEnter);if(_119){_119.innerHTML=this.bogusHtmlContent;if(has("ie")<=9){var r=this.editor.document.selection.createRange();r.move("character",-1);r.select();}}else{console.error("onKeyPressed: Cannot find the new block node");}}else{if(has("mozilla")){if(_118.parentNode.parentNode.nodeName=="LI"){_118=_118.parentNode.parentNode;}}var fc=_118.firstChild;if(fc&&fc.nodeType==1&&(fc.nodeName=="UL"||fc.nodeName=="OL")){_118.insertBefore(fc.ownerDocument.createTextNode(" "),fc);var _11a=_115.create(this.editor.window);_11a.setStart(_118.firstChild,0);var _11b=_115.getSelection(this.editor.window,true);_11b.removeAllRanges();_11b.addRange(_11a);}}}this._checkListLater=false;}if(this._pressedEnterInBlock){if(this._pressedEnterInBlock.previousSibling){this.removeTrailingBr(this._pressedEnterInBlock.previousSibling);}delete this._pressedEnterInBlock;}},bogusHtmlContent:" ",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(e){var _11c,_11d,_11e,_11f,_120,_121,doc=this.editor.document,br,rs,txt;if(e.shiftKey){var _122=this.editor.selection.getParentElement();var _123=_115.getAncestor(_122,this.blockNodes);if(_123){if(_123.tagName=="LI"){return true;}_11c=_115.getSelection(this.editor.window);_11d=_11c.getRangeAt(0);if(!_11d.collapsed){_11d.deleteContents();_11c=_115.getSelection(this.editor.window);_11d=_11c.getRangeAt(0);}if(_115.atBeginningOfContainer(_123,_11d.startContainer,_11d.startOffset)){br=doc.createElement("br");_11e=_115.create(this.editor.window);_123.insertBefore(br,_123.firstChild);_11e.setStartAfter(br);_11c.removeAllRanges();_11c.addRange(_11e);}else{if(_115.atEndOfContainer(_123,_11d.startContainer,_11d.startOffset)){_11e=_115.create(this.editor.window);br=doc.createElement("br");_123.appendChild(br);_123.appendChild(doc.createTextNode(" "));_11e.setStart(_123.lastChild,0);_11c.removeAllRanges();_11c.addRange(_11e);}else{rs=_11d.startContainer;if(rs&&rs.nodeType==3){txt=rs.nodeValue;_11f=doc.createTextNode(txt.substring(0,_11d.startOffset));_120=doc.createTextNode(txt.substring(_11d.startOffset));_121=doc.createElement("br");if(_120.nodeValue==""&&has("webkit")){_120=doc.createTextNode(" ");}_111.place(_11f,rs,"after");_111.place(_121,_11f,"after");_111.place(_120,_121,"after");_111.destroy(rs);_11e=_115.create(this.editor.window);_11e.setStart(_120,0);_11c.removeAllRanges();_11c.addRange(_11e);return false;}return true;}}}else{_11c=_115.getSelection(this.editor.window);if(_11c.rangeCount){_11d=_11c.getRangeAt(0);if(_11d&&_11d.startContainer){if(!_11d.collapsed){_11d.deleteContents();_11c=_115.getSelection(this.editor.window);_11d=_11c.getRangeAt(0);}rs=_11d.startContainer;if(rs&&rs.nodeType==3){var _124=false;var _125=_11d.startOffset;if(rs.length<_125){ret=this._adjustNodeAndOffset(rs,_125);rs=ret.node;_125=ret.offset;}txt=rs.nodeValue;_11f=doc.createTextNode(txt.substring(0,_125));_120=doc.createTextNode(txt.substring(_125));_121=doc.createElement("br");if(!_120.length){_120=doc.createTextNode(" ");_124=true;}if(_11f.length){_111.place(_11f,rs,"after");}else{_11f=rs;}_111.place(_121,_11f,"after");_111.place(_120,_121,"after");_111.destroy(rs);_11e=_115.create(this.editor.window);_11e.setStart(_120,0);_11e.setEnd(_120,_120.length);_11c.removeAllRanges();_11c.addRange(_11e);if(_124&&!has("webkit")){this.editor.selection.remove();}else{this.editor.selection.collapse(true);}}else{var _126;if(_11d.startOffset>=0){_126=rs.childNodes[_11d.startOffset];}var _121=doc.createElement("br");var _120=doc.createTextNode(" ");if(!_126){rs.appendChild(_121);rs.appendChild(_120);}else{_111.place(_121,_126,"before");_111.place(_120,_121,"after");}_11e=_115.create(this.editor.window);_11e.setStart(_120,0);_11e.setEnd(_120,_120.length);_11c.removeAllRanges();_11c.addRange(_11e);this.editor.selection.collapse(true);}}}else{_114.prototype.execCommand.call(this.editor,"inserthtml","
");}}return false;}var _127=true;_11c=_115.getSelection(this.editor.window);_11d=_11c.getRangeAt(0);if(!_11d.collapsed){_11d.deleteContents();_11c=_115.getSelection(this.editor.window);_11d=_11c.getRangeAt(0);}var _128=_115.getBlockAncestor(_11d.endContainer,null,this.editor.editNode);var _129=_128.blockNode;if((this._checkListLater=(_129&&(_129.nodeName=="LI"||_129.parentNode.nodeName=="LI")))){if(has("mozilla")){this._pressedEnterInBlock=_129;}if(/^(\s| | |\xA0|]*\bclass=['"]Apple-style-span['"][^>]*>(\s| | |\xA0)<\/span>)?(
)?$/.test(_129.innerHTML)){_129.innerHTML="";if(has("webkit")){_11e=_115.create(this.editor.window);_11e.setStart(_129,0);_11c.removeAllRanges();_11c.addRange(_11e);}this._checkListLater=false;}return true;}if(!_128.blockNode||_128.blockNode===this.editor.editNode){try{_114.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);}catch(e2){}_128={blockNode:this.editor.selection.getAncestorElement(this.blockNodeForEnter),blockContainer:this.editor.editNode};if(_128.blockNode){if(_128.blockNode!=this.editor.editNode&&(!(_128.blockNode.textContent||_128.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length)){this.removeTrailingBr(_128.blockNode);return false;}}else{_128.blockNode=this.editor.editNode;}_11c=_115.getSelection(this.editor.window);_11d=_11c.getRangeAt(0);}var _12a=doc.createElement(this.blockNodeForEnter);_12a.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(_128.blockNode);var _12b=_11d.endOffset;var node=_11d.endContainer;if(node.length<_12b){var ret=this._adjustNodeAndOffset(node,_12b);node=ret.node;_12b=ret.offset;}if(_115.atEndOfContainer(_128.blockNode,node,_12b)){if(_128.blockNode===_128.blockContainer){_128.blockNode.appendChild(_12a);}else{_111.place(_12a,_128.blockNode,"after");}_127=false;_11e=_115.create(this.editor.window);_11e.setStart(_12a,0);_11c.removeAllRanges();_11c.addRange(_11e);if(this.editor.height){_112.scrollIntoView(_12a);}}else{if(_115.atBeginningOfContainer(_128.blockNode,_11d.startContainer,_11d.startOffset)){_111.place(_12a,_128.blockNode,_128.blockNode===_128.blockContainer?"first":"before");if(_12a.nextSibling&&this.editor.height){_11e=_115.create(this.editor.window);_11e.setStart(_12a.nextSibling,0);_11c.removeAllRanges();_11c.addRange(_11e);_112.scrollIntoView(_12a.nextSibling);}_127=false;}else{if(_128.blockNode===_128.blockContainer){_128.blockNode.appendChild(_12a);}else{_111.place(_12a,_128.blockNode,"after");}_127=false;if(_128.blockNode.style){if(_12a.style){if(_128.blockNode.style.cssText){_12a.style.cssText=_128.blockNode.style.cssText;}}}rs=_11d.startContainer;var _12c;if(rs&&rs.nodeType==3){var _12d,_12e;_12b=_11d.endOffset;if(rs.length<_12b){ret=this._adjustNodeAndOffset(rs,_12b);rs=ret.node;_12b=ret.offset;}txt=rs.nodeValue;_11f=doc.createTextNode(txt.substring(0,_12b));_120=doc.createTextNode(txt.substring(_12b,txt.length));_111.place(_11f,rs,"before");_111.place(_120,rs,"after");_111.destroy(rs);var _12f=_11f.parentNode;while(_12f!==_128.blockNode){var tg=_12f.tagName;var _130=doc.createElement(tg);if(_12f.style){if(_130.style){if(_12f.style.cssText){_130.style.cssText=_12f.style.cssText;}}}if(_12f.tagName==="FONT"){if(_12f.color){_130.color=_12f.color;}if(_12f.face){_130.face=_12f.face;}if(_12f.size){_130.size=_12f.size;}}_12d=_120;while(_12d){_12e=_12d.nextSibling;_130.appendChild(_12d);_12d=_12e;}_111.place(_130,_12f,"after");_11f=_12f;_120=_130;_12f=_12f.parentNode;}_12d=_120;if(_12d.nodeType==1||(_12d.nodeType==3&&_12d.nodeValue)){_12a.innerHTML="";}_12c=_12d;while(_12d){_12e=_12d.nextSibling;_12a.appendChild(_12d);_12d=_12e;}}_11e=_115.create(this.editor.window);var _131;var _132=_12c;if(this.blockNodeForEnter!=="BR"){while(_132){_131=_132;_12e=_132.firstChild;_132=_12e;}if(_131&&_131.parentNode){_12a=_131.parentNode;_11e.setStart(_12a,0);_11c.removeAllRanges();_11c.addRange(_11e);if(this.editor.height){_112.scrollIntoView(_12a);}if(has("mozilla")){this._pressedEnterInBlock=_128.blockNode;}}else{_127=true;}}else{_11e.setStart(_12a,0);_11c.removeAllRanges();_11c.addRange(_11e);if(this.editor.height){_112.scrollIntoView(_12a);}if(has("mozilla")){this._pressedEnterInBlock=_128.blockNode;}}}}return _127;},_adjustNodeAndOffset:function(node,_133){while(node.length<_133&&node.nextSibling&&node.nextSibling.nodeType==3){_133=_133-node.length;node=node.nextSibling;}return {"node":node,"offset":_133};},removeTrailingBr:function(_134){var para=/P|DIV|LI/i.test(_134.tagName)?_134:this.editor.selection.getParentOfType(_134,["P","DIV","LI"]);if(!para){return;}if(para.lastChild){if((para.childNodes.length>1&¶.lastChild.nodeType==3&&/^[\s\xAD]*$/.test(para.lastChild.nodeValue))||para.lastChild.tagName=="BR"){_111.destroy(para.lastChild);}}if(!para.childNodes.length){para.innerHTML=this.bogusHtmlContent;}}});});},"dijit/_MenuBase":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/_base/lang","dojo/mouse","dojo/on","dojo/window","./a11yclick","./registry","./_Widget","./_CssStateMixin","./_KeyNavContainer","./_TemplatedMixin"],function(_135,_136,dom,_137,_138,lang,_139,on,_13a,_13b,_13c,_13d,_13e,_13f,_140){return _136("dijit._MenuBase",[_13d,_140,_13f,_13e],{selected:null,_setSelectedAttr:function(item){if(this.selected!=item){if(this.selected){this.selected._setSelected(false);this._onChildDeselect(this.selected);}if(item){item._setSelected(true);}this._set("selected",item);}},activated:false,_setActivatedAttr:function(val){_138.toggle(this.domNode,"dijitMenuActive",val);_138.toggle(this.domNode,"dijitMenuPassive",!val);this._set("activated",val);},parentMenu:null,popupDelay:500,passivePopupDelay:Infinity,autoFocus:false,childSelector:function(node){var _141=_13c.byNode(node);return node.parentNode==this.containerNode&&_141&&_141.focus;},postCreate:function(){var self=this,_142=typeof this.childSelector=="string"?this.childSelector:lang.hitch(this,"childSelector");this.own(on(this.containerNode,on.selector(_142,_139.enter),function(){self.onItemHover(_13c.byNode(this));}),on(this.containerNode,on.selector(_142,_139.leave),function(){self.onItemUnhover(_13c.byNode(this));}),on(this.containerNode,on.selector(_142,_13b),function(evt){self.onItemClick(_13c.byNode(this),evt);evt.stopPropagation();evt.preventDefault();}));this.inherited(arguments);},onKeyboardSearch:function(item,evt,_143,_144){this.inherited(arguments);if(!!item&&(_144==-1||(!!item.popup&&_144==1))){this.onItemClick(item,evt);}},_keyboardSearchCompare:function(item,_145){if(!!item.shortcutKey){return _145==item.shortcutKey.toLowerCase()?-1:0;}return this.inherited(arguments)?1:0;},onExecute:function(){},onCancel:function(){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.onItemClick(this.focusedChild,evt);}else{var _146=this._getTopMenu();if(_146&&_146._isMenuBar){_146.focusNext();}}},_onPopupHover:function(){this.set("selected",this.currentPopupItem);this._stopPendingCloseTimer();},onItemHover:function(item){if(this.activated){this.set("selected",item);if(item.popup&&!item.disabled&&!this.hover_timer){this.hover_timer=this.defer(function(){this._openItemPopup(item);},this.popupDelay);}}else{if(this.passivePopupDelay_188.total&&_189.count==_188.length){_18c=true;}}}else{if(_189.count==_188.length){_18c=true;}}this.nextButton.style.display=_18c?"":"none";_182.set(this.nextButton,"id",this.id+"_next");},clearResultList:function(){var _18d=this.containerNode;while(_18d.childNodes.length>2){_18d.removeChild(_18d.childNodes[_18d.childNodes.length-2]);}this._setSelectedAttr(null);},highlightFirstOption:function(){this.selectFirstNode();},highlightLastOption:function(){this.selectLastNode();},selectFirstNode:function(){this.inherited(arguments);if(this.getHighlightedOption()==this.previousButton){this.selectNextNode();}},selectLastNode:function(){this.inherited(arguments);if(this.getHighlightedOption()==this.nextButton){this.selectPreviousNode();}},getHighlightedOption:function(){return this.selected;}});if(has("dojo-bidi")){_183=_181("dijit.form._ComboBoxMenuMixin",_183,{_createOption:function(){var _18e=this.inherited(arguments);this.applyTextDir(_18e);return _18e;}});}return _183;});},"dijit/form/_SearchMixin":function(){define(["dojo/_base/declare","dojo/keys","dojo/_base/lang","dojo/query","dojo/string","dojo/when","../registry"],function(_18f,keys,lang,_190,_191,when,_192){return _18f("dijit.form._SearchMixin",null,{pageSize:Infinity,store:null,fetchProperties:{},query:{},searchDelay:200,searchAttr:"name",queryExpr:"${0}*",ignoreCase:true,_patternToRegExp:function(_193){return new RegExp("^"+_193.replace(/(\\.)|(\*)|(\?)|\W/g,function(str,_194,star,_195){return star?".*":_195?".":_194?_194:"\\"+str;})+"$",this.ignoreCase?"mi":"m");},_abortQuery:function(){if(this.searchTimer){this.searchTimer=this.searchTimer.remove();}if(this._queryDeferHandle){this._queryDeferHandle=this._queryDeferHandle.remove();}if(this._fetchHandle){if(this._fetchHandle.abort){this._cancelingQuery=true;this._fetchHandle.abort();this._cancelingQuery=false;}if(this._fetchHandle.cancel){this._cancelingQuery=true;this._fetchHandle.cancel();this._cancelingQuery=false;}this._fetchHandle=null;}},_processInput:function(evt){if(this.disabled||this.readOnly){return;}var key=evt.charOrCode;if("type" in evt&&evt.type.substring(0,3)=="key"&&(evt.altKey||((evt.ctrlKey||evt.metaKey)&&(key!="x"&&key!="v"))||key==keys.SHIFT)){return;}var _196=false;this._prev_key_backspace=false;switch(key){case keys.DELETE:case keys.BACKSPACE:this._prev_key_backspace=true;this._maskValidSubsetError=true;_196=true;break;default:_196=typeof key=="string"||key==229;}if(_196){if(!this.store){this.onSearch();}else{this.searchTimer=this.defer("_startSearchFromInput",1);}}},onSearch:function(){},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));},_startSearch:function(text){this._abortQuery();var _197=this,_190=lang.clone(this.query),_198={start:0,count:this.pageSize,queryOptions:{ignoreCase:this.ignoreCase,deep:true}},qs=_191.substitute(this.queryExpr,[text]),q,_199=function(){var _19a=_197._fetchHandle=_197.store.query(_190,_198);if(_197.disabled||_197.readOnly||(q!==_197._lastQuery)){return;}when(_19a,function(res){_197._fetchHandle=null;if(!_197.disabled&&!_197.readOnly&&(q===_197._lastQuery)){when(_19a.total,function(_19b){res.total=_19b;var _19c=_197.pageSize;if(isNaN(_19c)||_19c>res.total){_19c=res.total;}res.nextPage=function(_19d){_198.direction=_19d=_19d!==false;_198.count=_19c;if(_19d){_198.start+=res.length;if(_198.start>=res.total){_198.count=0;}}else{_198.start-=_19c;if(_198.start<0){_198.count=Math.max(_19c+_198.start,0);_198.start=0;}}if(_198.count<=0){res.length=0;_197.onSearch(res,_190,_198);}else{_199();}};_197.onSearch(res,_190,_198);});}},function(err){_197._fetchHandle=null;if(!_197._cancelingQuery){console.error(_197.declaredClass+" "+err.toString());}});};lang.mixin(_198,this.fetchProperties);if(this.store._oldAPI){q=qs;}else{q=this._patternToRegExp(qs);q.toString=function(){return qs;};}this._lastQuery=_190[this.searchAttr]=q;this._queryDeferHandle=this.defer(_199,this.searchDelay);},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.store){var list=this.list;if(list){this.store=_192.byId(list);}}this.inherited(arguments);}});});},"dijit/form/ToggleButton":function(){define(["dojo/_base/declare","dojo/_base/kernel","./Button","./_ToggleButtonMixin"],function(_19e,_19f,_1a0,_1a1){return _19e("dijit.form.ToggleButton",[_1a0,_1a1],{baseClass:"dijitToggleButton",setChecked:function(_1a2){_19f.deprecated("setChecked("+_1a2+") is deprecated. Use set('checked',"+_1a2+") instead.","","2.0");this.set("checked",_1a2);}});});},"dijit/form/NumberSpinner":function(){define(["dojo/_base/declare","dojo/keys","./_Spinner","./NumberTextBox"],function(_1a3,keys,_1a4,_1a5){return _1a3("dijit.form.NumberSpinner",[_1a4,_1a5.Mixin],{baseClass:"dijitTextBox dijitSpinner dijitNumberTextBox",adjust:function(val,_1a6){var tc=this.constraints,v=isNaN(val),_1a7=!isNaN(tc.max),_1a8=!isNaN(tc.min);if(v&&_1a6!=0){val=(_1a6>0)?_1a8?tc.min:_1a7?tc.max:0:_1a7?this.constraints.max:_1a8?tc.min:0;}var _1a9=val+_1a6;if(v||isNaN(_1a9)){return val;}if(_1a7&&(_1a9>tc.max)){_1a9=tc.max;}if(_1a8&&(_1a9",this.contentWidget.domNode,"after");var _1cb=this.contentWidget,cls=lang.isString(this.buttonWidget)?lang.getObject(this.buttonWidget):this.buttonWidget;this.button=_1cb._buttonWidget=(new cls({contentWidget:_1cb,label:_1cb.title,title:_1cb.tooltip,dir:_1cb.dir,lang:_1cb.lang,textDir:_1cb.textDir||this.textDir,iconClass:_1cb.iconClass,id:_1cb.id+"_button",parent:this.parent})).placeAt(this.domNode);this.containerNode=_1b7.place("