define('dijit/nls/_dijit_layout_basic_en',{
'dijit/nls/loading':{"loadingState":"Loading...","errorState":"Sorry, an error occurred"}
,
'dijit/nls/common':{"buttonOk":"OK","buttonCancel":"Cancel","buttonSave":"Save","itemClose":"Close"}
});/*
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:{"dojo/uacss":function(){define("dojo/uacss",["./dom-geometry","./_base/lang","./ready","./_base/sniff","./_base/window"],function(_1,_2,_3,_4,_5){var _6=_5.doc.documentElement,ie=_4("ie"),_7=_4("opera"),_8=Math.floor,ff=_4("ff"),_9=_1.boxModel.replace(/-/,""),_a={"dj_quirks":_4("quirks"),"dj_opera":_7,"dj_khtml":_4("khtml"),"dj_webkit":_4("webkit"),"dj_safari":_4("safari"),"dj_chrome":_4("chrome"),"dj_gecko":_4("mozilla")};if(ie){_a["dj_ie"]=true;_a["dj_ie"+_8(ie)]=true;_a["dj_iequirks"]=_4("quirks");}if(ff){_a["dj_ff"+_8(ff)]=true;}_a["dj_"+_9]=true;var _b="";for(var _c in _a){if(_a[_c]){_b+=_c+" ";}}_6.className=_2.trim(_6.className+" "+_b);_3(90,function(){if(!_1.isBodyLtr()){var _d="dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl ");_6.className=_2.trim(_6.className+" "+_d+"dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl "));}});return _4;});},"dojo/text":function(){define("dojo/text",["./_base/kernel","require","./has","./_base/xhr"],function(_e,_f,has,xhr){var _10;if(1){_10=function(url,_11,_12){xhr("GET",{url:url,sync:!!_11,load:_12});};}else{if(_f.getText){_10=_f.getText;}else{console.error("dojo/text plugin failed to load because loader does not support getText");}}var _13={},_14=function(_15){if(_15){_15=_15.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _16=_15.match(/
]*>\s*([\s\S]+)\s*<\/body>/im);if(_16){_15=_16[1];}}else{_15="";}return _15;},_17={},_18={},_19={dynamic:true,normalize:function(id,_1a){var _1b=id.split("!"),url=_1b[0];return (/^\./.test(url)?_1a(url):url)+(_1b[1]?"!"+_1b[1]:"");},load:function(id,_1c,_1d){var _1e=id.split("!"),_1f=_1e.length>1,_20=_1e[0],url=_1c.toUrl(_1e[0]),_21=_17,_22=function(_23){_1d(_1f?_14(_23):_23);};if(_20 in _13){_21=_13[_20];}else{if(url in _1c.cache){_21=_1c.cache[url];}else{if(url in _13){_21=_13[url];}}}if(_21===_17){if(_18[url]){_18[url].push(_22);}else{var _24=_18[url]=[_22];_10(url,!_1c.async,function(_25){_13[_20]=_13[url]=_25;for(var i=0;i<_24.length;){_24[i++](_25);}delete _18[url];});}}else{_22(_21);}}};_e.cache=function(_26,url,_27){var key;if(typeof _26=="string"){if(/\//.test(_26)){key=_26;_27=url;}else{key=_f.toUrl(_26.replace(/\./g,"/")+(url?("/"+url):""));}}else{key=_26+"";_27=url;}var val=(_27!=undefined&&typeof _27!="string")?_27.value:_27,_28=_27&&_27.sanitize;if(typeof val=="string"){_13[key]=val;return _28?_14(val):val;}else{if(val===null){delete _13[key];return null;}else{if(!(key in _13)){_10(key,true,function(_29){_13[key]=_29;});}return _28?_14(_13[key]):_13[key];}}};return _19;});},"dijit/layout/LinkPane":function(){define("dijit/layout/LinkPane",["./ContentPane","../_TemplatedMixin","dojo/_base/declare"],function(_2a,_2b,_2c){return _2c("dijit.layout.LinkPane",[_2a,_2b],{templateString:"",postMixInProperties:function(){if(this.srcNodeRef){this.title+=this.srcNodeRef.innerHTML;}this.inherited(arguments);},_fillContent:function(){}});});},"dojo/parser":function(){define("dojo/parser",["./_base/kernel","./_base/lang","./_base/array","./_base/config","./_base/html","./_base/window","./_base/url","./_base/json","./aspect","./date/stamp","./has","./query","./on","./ready"],function(_2d,_2e,_2f,_30,_31,_32,_33,_34,_35,_36,has,_37,don,_38){new Date("X");if(1){var _39=document.createElement("form");has.add("dom-attributes-explicit",_39.attributes.length==0);has.add("dom-attributes-specified-flag",_39.attributes.length<40);}_2d.parser=new function(){var _3a={};function _3b(_3c){var map={};for(var _3d in _3c){if(_3d.charAt(0)=="_"){continue;}map[_3d.toLowerCase()]=_3d;}return map;};_35.after(_2e,"extend",function(){_3a={};},true);var _3e={};function _3f(_40){var map=_3e[_40]||(_3e[_40]={});return map["__type"]||(map["__type"]=(_2e.getObject(_40)||require(_40)));};this._functionFromScript=function(_41,_42){var _43="";var _44="";var _45=(_41.getAttribute(_42+"args")||_41.getAttribute("args"));if(_45){_2f.forEach(_45.split(/\s*,\s*/),function(_46,idx){_43+="var "+_46+" = arguments["+idx+"]; ";});}var _47=_41.getAttribute("with");if(_47&&_47.length){_2f.forEach(_47.split(/\s*,\s*/),function(_48){_43+="with("+_48+"){";_44+="}";});}return new Function(_43+_41.innerHTML+_44);};this.instantiate=function(_49,_4a,_4b){_4a=_4a||{};_4b=_4b||{};var _4c=(_4b.scope||_2d._scopeName)+"Type",_4d="data-"+(_4b.scope||_2d._scopeName)+"-",_4e=_4d+"type";var _4f=[];_2f.forEach(_49,function(_50){var _51=_4c in _4a?_4a[_4c]:_50.getAttribute(_4e)||_50.getAttribute(_4c);if(_51){_4f.push({node:_50,"type":_51});}});return this._instantiate(_4f,_4a,_4b);};this._instantiate=function(_52,_53,_54){var _55=[];var _56=(_54.scope||_2d._scopeName)+"Type",_57="data-"+(_54.scope||_2d._scopeName)+"-",_58=_57+"type",_59=_57+"props",_5a=_57+"attach-point",_5b=_57+"attach-event",_5c=_57+"id",_5d=_57+"mixins";var _5e={};_2f.forEach([_59,_58,_56,_5c,"jsId",_5a,_5b,"dojoAttachPoint","dojoAttachEvent","class","style",_5d],function(_5f){_5e[_5f.toLowerCase()]=_5f.replace(_54.scope,"dojo");});function _60(_61,_62){return _61.createSubclass&&_61.createSubclass(_62)||_61.extend.apply(_61,_62);};_2f.forEach(_52,function(obj){if(!obj){return;}var _63=obj.node,_64=obj.type,_65=_63.getAttribute(_5d),_66;if(_65){var map=_3e[_64];_65=_65.replace(/ /g,"");_66=map&&map[_65];if(!_66){_66=_3f(_64);_66=_3e[_64][_65]=_60(_66,_2f.map(_65.split(","),_3f));}}else{_66=_3f(_64);}var _67=_66&&_66.prototype;var _68={};if(_54.defaults){_2e.mixin(_68,_54.defaults);}if(obj.inherited){_2e.mixin(_68,obj.inherited);}var _69;if(has("dom-attributes-explicit")){_69=_63.attributes;}else{if(has("dom-attributes-specified-flag")){_69=_2f.filter(_63.attributes,function(a){return a.specified;});}else{var _6a=/^input$|^img$/i.test(_63.nodeName)?_63:_63.cloneNode(false),_6b=_6a.outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,"");_69=_2f.map(_6b.split(/\s+/),function(_6c){var _6d=_6c.toLowerCase();return {name:_6c,value:(_63.nodeName=="LI"&&_6c=="value")||_6d=="enctype"?_63.getAttribute(_6d):_63.getAttributeNode(_6d).value};});}}var i=0,_6e;while(_6e=_69[i++]){var _6f=_6e.name,_70=_6f.toLowerCase(),_71=_6e.value;if(_70 in _5e){switch(_5e[_70]){case "data-dojo-props":var _72=_71;break;case "data-dojo-id":case "jsId":var _73=_71;break;case "data-dojo-attach-point":case "dojoAttachPoint":_68.dojoAttachPoint=_71;break;case "data-dojo-attach-event":case "dojoAttachEvent":_68.dojoAttachEvent=_71;break;case "class":_68["class"]=_63.className;break;case "style":_68["style"]=_63.style&&_63.style.cssText;break;}}else{if(!(_6f in _67)){var map=(_3a[_64]||(_3a[_64]=_3b(_67)));_6f=map[_70]||_6f;}if(_6f in _67){switch(typeof _67[_6f]){case "string":_68[_6f]=_71;break;case "number":_68[_6f]=_71.length?Number(_71):NaN;break;case "boolean":_68[_6f]=_71.toLowerCase()!="false";break;case "function":if(_71===""||_71.search(/[^\w\.]+/i)!=-1){_68[_6f]=new Function(_71);}else{_68[_6f]=_2e.getObject(_71,false)||new Function(_71);}break;default:var _74=_67[_6f];_68[_6f]=(_74&&"length" in _74)?(_71?_71.split(/\s*,\s*/):[]):(_74 instanceof Date)?(_71==""?new Date(""):_71=="now"?new Date():_36.fromISOString(_71)):(_74 instanceof _2d._Url)?(_2d.baseUrl+_71):_34.fromJson(_71);}}else{_68[_6f]=_71;}}}if(_72){try{_72=_34.fromJson.call(_54.propsThis,"{"+_72+"}");_2e.mixin(_68,_72);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_72+"'");}}_2e.mixin(_68,_53);var _75=obj.scripts||(_66&&(_66._noScript||_67._noScript)?[]:_37("> script[type^='dojo/']",_63));var _76=[],_77=[],_78=[],on=[];if(_75){for(i=0;i<_75.length;i++){var _79=_75[i];_63.removeChild(_79);var _7a=(_79.getAttribute(_57+"event")||_79.getAttribute("event")),_7b=_79.getAttribute(_57+"prop"),_7c=_79.getAttribute("type"),nf=this._functionFromScript(_79,_57);if(_7a){if(_7c=="dojo/connect"){_76.push({event:_7a,func:nf});}else{if(_7c=="dojo/on"){on.push({event:_7a,func:nf});}else{_68[_7a]=nf;}}}else{if(_7c=="dojo/watch"){_78.push({prop:_7b,func:nf});}else{_77.push(nf);}}}}var _7d=_66.markupFactory||_67.markupFactory;var _7e=_7d?_7d(_68,_63,_66):new _66(_68,_63);_55.push(_7e);if(_73){_2e.setObject(_73,_7e);}for(i=0;i<_76.length;i++){_35.after(_7e,_76[i].event,_2d.hitch(_7e,_76[i].func),true);}for(i=0;i<_77.length;i++){_77[i].call(_7e);}for(i=0;i<_78.length;i++){_7e.watch(_78[i].prop,_78[i].func);}for(i=0;i=0?"Error":_9e.indexOf(_b3,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){_9e.forEach(this._childConnections||[],_a1.hitch(this,"disconnect"));_9e.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_b4){var _b5=this;this.disconnectChildren();this._descendants=this._getDescendantFormWidgets();var set=_b4?function(_b6,val){_b5[_b6]=val;}:_a1.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _b7=(this._childConnections=[]),_b8=(this._childWatches=[]);_9e.forEach(_9e.filter(this._descendants,function(_b9){return _b9.validate;}),function(_ba){_9e.forEach(["state","disabled"],function(_bb){_b8.push(_ba.watch(_bb,function(){_b5.set("state",_b5._getState());}));});});var _bc=function(){if(_b5._onChangeDelayTimer){clearTimeout(_b5._onChangeDelayTimer);}_b5._onChangeDelayTimer=setTimeout(function(){delete _b5._onChangeDelayTimer;_b5._set("value",_b5.get("value"));},10);};_9e.forEach(_9e.filter(this._descendants,function(_bd){return _bd.onChange;}),function(_be){_b7.push(_b5.connect(_be,"onChange",_bc));_b8.push(_be.watch("disabled",_bc));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(_bf,_c0,_c1){this.onValidStateChange(_c1=="");});},destroy:function(){this.disconnectChildren();this.inherited(arguments);}});});},"dijit/Dialog":function(){require({cache:{"url:dijit/templates/Dialog.html":"
\n\t
\n\t\n\t\n\t\tx\n\t\n\t
\n\t\t\n
\n"}});define("dijit/Dialog",["require","dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/event","dojo/_base/fx","dojo/i18n","dojo/_base/kernel","dojo/keys","dojo/_base/lang","dojo/on","dojo/ready","dojo/_base/sniff","dojo/_base/window","dojo/window","dojo/dnd/Moveable","dojo/dnd/TimedMoveable","./focus","./_base/manager","./_Widget","./_TemplatedMixin","./_CssStateMixin","./form/_FormMixin","./_DialogMixin","./DialogUnderlay","./layout/ContentPane","dojo/text!./templates/Dialog.html",".","dojo/i18n!./nls/common"],function(_c2,_c3,_c4,_c5,_c6,dom,_c7,_c8,_c9,_ca,fx,_cb,_cc,_cd,_ce,on,_cf,has,win,_d0,_d1,_d2,_d3,_d4,_d5,_d6,_d7,_d8,_d9,_da,_db,_dc,_dd){var _de=_c5("dijit._DialogBase",[_d6,_d8,_d9,_d7],{templateString:_dc,baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},_setTitleAttr:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],open:false,duration:_d4.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var _df=_cb.getLocalization("dijit","common");_ce.mixin(this,_df);this.inherited(arguments);},postCreate:function(){_c9.set(this.domNode,{display:"none",position:"absolute"});win.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();if(this.autofocus&&_e0.isTop(this)){this._getFocusItems(this.domNode);_d3.focus(this._firstFocusItem);}this.inherited(arguments);},_endDrag:function(){var _e1=_c8.position(this.domNode),_e2=_d0.getBox();_e1.y=Math.min(Math.max(_e1.y,0),(_e2.h-_e1.h));_e1.x=Math.min(Math.max(_e1.x,0),(_e2.w-_e1.w));this._relativePosition=_e1;this._position();},_setup:function(){var _e3=this.domNode;if(this.titleBar&&this.draggable){this._moveable=new ((has("ie")==6)?_d2:_d1)(_e3,{handle:this.titleBar});this.connect(this._moveable,"onMoveStop","_endDrag");}else{_c7.add(_e3,"dijitDialogFixed");}this.underlayAttrs={dialogId:this.id,"class":_c3.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle){this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;}delete this._singleChildOriginalStyle;}else{_c9.set(this.containerNode,{width:"auto",height:"auto"});}var bb=_c8.position(this.domNode);var _e4=_d0.getBox();if(bb.w>=_e4.w||bb.h>=_e4.h){var w=Math.min(bb.w,Math.floor(_e4.w*0.75)),h=Math.min(bb.h,Math.floor(_e4.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:w,h:h});}else{_c9.set(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});}}else{if(this._singleChild&&this._singleChild.resize){this._singleChild.resize();}}},_position:function(){if(!_c7.contains(win.body(),"dojoMove")){var _e5=this.domNode,_e6=_d0.getBox(),p=this._relativePosition,bb=p?null:_c8.position(_e5),l=Math.floor(_e6.l+(p?p.x:(_e6.w-bb.w)/2)),t=Math.floor(_e6.t+(p?p.y:(_e6.h-bb.h)/2));_c9.set(_e5,{left:l+"px",top:t+"px"});}},_onKey:function(evt){if(evt.charOrCode){var _e7=evt.target;if(evt.charOrCode===_cd.TAB){this._getFocusItems(this.domNode);}var _e8=(this._firstFocusItem==this._lastFocusItem);if(_e7==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===_cd.TAB){if(!_e8){_d3.focus(this._lastFocusItem);}_ca.stop(evt);}else{if(_e7==this._lastFocusItem&&evt.charOrCode===_cd.TAB&&!evt.shiftKey){if(!_e8){_d3.focus(this._firstFocusItem);}_ca.stop(evt);}else{while(_e7){if(_e7==this.domNode||_c7.contains(_e7,"dijitPopup")){if(evt.charOrCode==_cd.ESCAPE){this.onCancel();}else{return;}}_e7=_e7.parentNode;}if(evt.charOrCode!==_cd.TAB){_ca.stop(evt);}else{if(!has("opera")){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._started){this.startup();}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}if(!has("touch")){this._modalconnects.push(on(window,"scroll",_ce.hitch(this,"layout")));this._modalconnects.push(on(window,"resize",_ce.hitch(this,function(){var _e9=_d0.getBox();if(!this._oldViewport||_e9.h!=this._oldViewport.h||_e9.w!=this._oldViewport.w){this.layout();this._oldViewport=_e9;}})));}this._modalconnects.push(on(this.domNode,_c4._keypress,_ce.hitch(this,"_onKey")));_c9.set(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this._size();this._position();var _ea;this._fadeInDeferred=new _c6(_ce.hitch(this,function(){_ea.stop();delete this._fadeInDeferred;}));_ea=fx.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:_ce.hitch(this,function(){_e0.show(this,this.underlayAttrs);}),onEnd:_ce.hitch(this,function(){if(this.autofocus&&_e0.isTop(this)){this._getFocusItems(this.domNode);_d3.focus(this._firstFocusItem);}this._fadeInDeferred.callback(true);delete this._fadeInDeferred;})}).play();return this._fadeInDeferred;},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeInDeferred){this._fadeInDeferred.cancel();}var _eb;this._fadeOutDeferred=new _c6(_ce.hitch(this,function(){_eb.stop();delete this._fadeOutDeferred;}));this._fadeOutDeferred.then(_ce.hitch(this,"onHide"));_eb=fx.fadeOut({node:this.domNode,duration:this.duration,onEnd:_ce.hitch(this,function(){this.domNode.style.display="none";_e0.hide(this);this._fadeOutDeferred.callback(true);delete this._fadeOutDeferred;})}).play();if(this._scrollConnected){this._scrollConnected=false;}var h;while(h=this._modalconnects.pop()){h.remove();}if(this._relativePosition){delete this._relativePosition;}this._set("open",false);return this._fadeOutDeferred;},layout:function(){if(this.domNode.style.display!="none"){if(_dd._underlay){_dd._underlay.layout();}this._position();}},destroy:function(){if(this._fadeInDeferred){this._fadeInDeferred.cancel();}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}if(this._moveable){this._moveable.destroy();}var h;while(h=this._modalconnects.pop()){h.remove();}_e0.hide(this);this.inherited(arguments);}});var _ec=_c5("dijit.Dialog",[_db,_de],{});_ec._DialogBase=_de;var _e0=_ec._DialogLevelManager={_beginZIndex:950,show:function(_ed,_ee){ds[ds.length-1].focus=_d3.curNode;var _ef=_dd._underlay;if(!_ef||_ef._destroyed){_ef=_dd._underlay=new _da(_ee);}else{_ef.set(_ed.underlayAttrs);}var _f0=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:_ec._DialogLevelManager._beginZIndex;if(ds.length==1){_ef.show();}_c9.set(_dd._underlay.domNode,"zIndex",_f0-1);_c9.set(_ed.domNode,"zIndex",_f0);ds.push({dialog:_ed,underlayAttrs:_ee,zIndex:_f0});},hide:function(_f1){if(ds[ds.length-1].dialog==_f1){ds.pop();var pd=ds[ds.length-1];if(ds.length==1){if(!_dd._underlay._destroyed){_dd._underlay.hide();}}else{_c9.set(_dd._underlay.domNode,"zIndex",pd.zIndex-1);_dd._underlay.set(pd.underlayAttrs);}if(_f1.refocus){var _f2=pd.focus;if(pd.dialog&&(!_f2||!dom.isDescendant(_f2,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_f2=pd.dialog._firstFocusItem;}if(_f2){try{_f2.focus();}catch(e){}}}}else{var idx=_c3.indexOf(_c3.map(ds,function(_f3){return _f3.dialog;}),_f1);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_f4){return ds[ds.length-1].dialog==_f4;}};var ds=_ec._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];if(!_cc.isAsync){_cf(0,function(){var _f5=["dijit/TooltipDialog"];_c2(_f5);});}return _ec;});},"dijit/_DialogMixin":function(){define("dijit/_DialogMixin",["dojo/_base/declare","./a11y"],function(_f6,_f7){return _f6("dijit._DialogMixin",null,{execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _f8=_f7._getTabNavigable(this.containerNode);this._firstFocusItem=_f8.lowest||_f8.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_f8.last||_f8.highest||this._firstFocusItem;}});});},"dijit/layout/utils":function(){define("dijit/layout/utils",["dojo/_base/array","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/lang",".."],function(_f9,_fa,_fb,_fc,_fd,_fe){var _ff=_fd.getObject("layout",true,_fe);_ff.marginBox2contentBox=function(node,mb){var cs=_fc.getComputedStyle(node);var me=_fb.getMarginExtents(node,cs);var pb=_fb.getPadBorderExtents(node,cs);return {l:_fc.toPixelValue(node,cs.paddingLeft),t:_fc.toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};function _100(word){return word.substring(0,1).toUpperCase()+word.substring(1);};function size(_101,dim){var _102=_101.resize?_101.resize(dim):_fb.setMarginBox(_101.domNode,dim);if(_102){_fd.mixin(_101,_102);}else{_fd.mixin(_101,_fb.getMarginBox(_101.domNode));_fd.mixin(_101,dim);}};_ff.layoutChildren=function(_103,dim,_104,_105,_106){dim=_fd.mixin({},dim);_fa.add(_103,"dijitLayoutContainer");_104=_f9.filter(_104,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(_f9.filter(_104,function(item){return item.region=="center"||item.layoutAlign=="client";}));_f9.forEach(_104,function(_107){var elm=_107.domNode,pos=(_107.region||_107.layoutAlign);if(!pos){throw new Error("No region setting for "+_107.id);}var _108=elm.style;_108.left=dim.l+"px";_108.top=dim.t+"px";_108.position="absolute";_fa.add(elm,"dijitAlign"+_100(pos));var _109={};if(_105&&_105==_107.id){_109[_107.region=="top"||_107.region=="bottom"?"h":"w"]=_106;}if(pos=="top"||pos=="bottom"){_109.w=dim.w;size(_107,_109);dim.h-=_107.h;if(pos=="top"){dim.t+=_107.h;}else{_108.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_109.h=dim.h;size(_107,_109);dim.w-=_107.w;if(pos=="left"){dim.l+=_107.w;}else{_108.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_107,dim);}}}});};return {marginBox2contentBox:_ff.marginBox2contentBox,layoutChildren:_ff.layoutChildren};});},"dijit/layout/ContentPane":function(){define("dijit/layout/ContentPane",["dojo/_base/kernel","dojo/_base/lang","../_Widget","./_ContentPaneResizeMixin","dojo/string","dojo/html","dojo/i18n!../nls/loading","dojo/_base/array","dojo/_base/declare","dojo/_base/Deferred","dojo/dom","dojo/dom-attr","dojo/_base/window","dojo/_base/xhr","dojo/i18n"],function(_10a,lang,_10b,_10c,_10d,html,_10e,_10f,_110,_111,dom,_112,win,xhr,i18n){return _110("dijit.layout.ContentPane",[_10b,_10c],{href:"",content:"",extractContent:false,parseOnLoad:true,parserScope:_10a._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"${loadingState}",errorMessage:"${errorState}",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,_setTitleAttr:null,stopParser:true,template:false,create:function(_113,_114){if((!_113||!_113.template)&&_114&&!("href" in _113)&&!("content" in _113)){var df=win.doc.createDocumentFragment();_114=dom.byId(_114);while(_114.firstChild){df.appendChild(_114.firstChild);}_113=lang.delegate(_113,{content:df});}this.inherited(arguments,[_113,_114]);},postMixInProperties:function(){this.inherited(arguments);var _115=i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=_10d.substitute(this.loadingMessage,_115);this.errorMessage=_10d.substitute(this.errorMessage,_115);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}this.domNode.removeAttribute("title");if(!_112.get(this.domNode,"role")){this.domNode.setAttribute("role","group");}},startup:function(){this.inherited(arguments);if(this._contentSetter){_10f.forEach(this._contentSetter.parseResults,function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}},this);}},setHref:function(href){_10a.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",href);},_setHrefAttr:function(href){this.cancel();this.onLoadDeferred=new _111(lang.hitch(this,"cancel"));this.onLoadDeferred.addCallback(lang.hitch(this,"onLoad"));this._set("href",href);if(this.preload||(this._created&&this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(data){_10a.deprecated("dijit.layout.ContentPane.setContent() is deprecated. Use set('content', ...) instead.","","2.0");this.set("content",data);},_setContentAttr:function(data){this._set("href","");this.cancel();this.onLoadDeferred=new _111(lang.hitch(this,"cancel"));if(this._created){this.onLoadDeferred.addCallback(lang.hitch(this,"onLoad"));}this._setContent(data||"");this._isDownloaded=false;return this.onLoadDeferred;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;this.onLoadDeferred=null;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}this.inherited(arguments);},destroyRecursive:function(_116){if(this._beingDestroyed){return;}this.inherited(arguments);},_onShow:function(){this.inherited(arguments);if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){return this.refresh();}}},refresh:function(){this.cancel();this.onLoadDeferred=new _111(lang.hitch(this,"cancel"));this.onLoadDeferred.addCallback(lang.hitch(this,"onLoad"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _117={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(lang.isObject(this.ioArgs)){lang.mixin(_117,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||xhr.get)(_117));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});delete this._hrefChanged;},_onLoadHandler:function(data){this._set("isLoaded",true);try{this.onLoadDeferred.callback(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this._set("isLoaded",false);try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(_118){if(this.isLoaded){this._onUnloadHandler();}var _119=this._contentSetter;_10f.forEach(this.getChildren(),function(_11a){if(_11a.destroyRecursive){_11a.destroyRecursive(_118);}});if(_119){_10f.forEach(_119.parseResults,function(_11b){if(_11b.destroyRecursive&&_11b.domNode&&_11b.domNode.parentNode==win.body()){_11b.destroyRecursive(_118);}});delete _119.parseResults;}if(!_118){html._emptyNode(this.containerNode);}delete this._singleChild;},_setContent:function(cont,_11c){this.destroyDescendants();var _11d=this._contentSetter;if(!(_11d&&_11d instanceof html._ContentSetter)){_11d=this._contentSetter=new html._ContentSetter({node:this.containerNode,_onError:lang.hitch(this,this._onError),onContentError:lang.hitch(this,function(e){var _11e=this.onContentError(e);try{this.containerNode.innerHTML=_11e;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _11f=lang.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:!cont.domNode&&this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang,textDir:this.textDir},this._contentSetterParams||{});_11d.set((lang.isObject(cont)&&cont.domNode)?cont.domNode:cont,_11f);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_11c){if(this._started){delete this._started;this.startup();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_120){this.onLoadDeferred.errback(err);var _121=this["on"+type+"Error"].call(this,err);if(_120){console.error(_120,err);}else{if(_121){this._setContent(_121,true);}}},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(){},onDownloadError:function(){return this.errorMessage;},onDownloadEnd:function(){}});});},"dojo/i18n":function(){define("dojo/i18n",["./_base/kernel","require","./has","./_base/array","./_base/config","./_base/lang","./_base/xhr","./json"],function(dojo,_122,has,_123,_124,lang,xhr,json){has.add("dojo-preload-i18n-Api",1);true||has.add("dojo-v1x-i18n-Api",1);var _125=dojo.i18n={},_126=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,_127=function(root,_128,_129,_12a){for(var _12b=[_129+_12a],_12c=_128.split("-"),_12d="",i=0;i<_12c.length;i++){_12d+=(_12d?"-":"")+_12c[i];if(!root||root[_12d]){_12b.push(_129+_12d+"/"+_12a);}}return _12b;},_12e={},_12f=dojo.getL10nName=function(_130,_131,_132){_132=_132?_132.toLowerCase():dojo.locale;_130="dojo/i18n!"+_130.replace(/\./g,"/");_131=_131.replace(/\./g,"/");return (/root/i.test(_132))?(_130+"/nls/"+_131):(_130+"/nls/"+_132+"/"+_131);},_133=function(_134,_135,_136,_137,_138,load){_134([_135],function(root){var _139=lang.clone(root.root||root.ROOT),_13a=_127(!root._v1x&&root,_138,_136,_137);_134(_13a,function(){for(var i=1;i<_13a.length;i++){_139=lang.mixin(lang.clone(_139),arguments[i]);}var _13b=_135+"/"+_138;_12e[_13b]=_139;load();});});},_13c=function(id,_13d){return /^\./.test(id)?_13d(id):id;},_13e=function(_13f){var list=_124.extraLocale||[];list=lang.isArray(list)?list:[list];list.push(_13f);return list;},load=function(id,_140,load){if(has("dojo-preload-i18n-Api")){var _141=id.split("*"),_142=_141[1]=="preload";if(_142){if(!_12e[id]){_12e[id]=1;_143(_141[2],json.parse(_141[3]),1);}load(1);}if(_142||_144(id,_140,load)){return;}}var _145=_126.exec(id),_146=_145[1]+"/",_147=_145[5]||_145[4],_148=_146+_147,_149=(_145[5]&&_145[4]),_14a=_149||dojo.locale,_14b=_148+"/"+_14a,_14c=_149?[_14a]:_13e(_14a),_14d=_14c.length,_14e=function(){if(!--_14d){load(lang.delegate(_12e[_14b]));}};_123.forEach(_14c,function(_14f){var _150=_148+"/"+_14f;if(has("dojo-preload-i18n-Api")){_151(_150);}if(!_12e[_150]){_133(_140,_148,_146,_147,_14f,_14e);}else{_14e();}});};if(has("dojo-unit-tests")){var _152=_125.unitTests=[];}if(has("dojo-preload-i18n-Api")||1){var _153=_125.normalizeLocale=function(_154){var _155=_154?_154.toLowerCase():dojo.locale;return _155=="root"?"ROOT":_155;},isXd=function(mid){return (1&&1)?_122.isXdUrl(_122.toUrl(mid+".js")):true;},_156=0,_157=[],_143=_125._preloadLocalizations=function(_158,_159,_15a){function _15b(_15c,func){var _15d=_15c.split("-");while(_15d.length){if(func(_15d.join("-"))){return true;}_15d.pop();}return func("ROOT");};function _15e(_15f){_15f=_153(_15f);_15b(_15f,function(loc){if(_123.indexOf(_159,loc)>=0){var mid=_158.replace(/\./g,"/")+"_"+loc;_156++;(isXd(mid)||_15a?_122:_163)([mid],function(_160){for(var p in _160){_12e[p+"/"+loc]=_160[p];}--_156;while(!_156&&_157.length){load.apply(null,_157.shift());}});return true;}return false;});};_15e();_123.forEach(dojo.config.extraLocale,_15e);},_144=function(id,_161,load){if(_156){_157.push([id,_161,load]);}return _156;};}if(1){var _162=new Function("__bundle","__checkForLegacyModules","__mid","var define = function(){define.called = 1;},"+" require = function(){define.called = 1;};"+"try{"+"define.called = 0;"+"eval(__bundle);"+"if(define.called==1)"+"return 1;"+"if((__checkForLegacyModules = __checkForLegacyModules(__mid)))"+"return __checkForLegacyModules;"+"}catch(e){}"+"try{"+"return eval('('+__bundle+')');"+"}catch(e){"+"return e;"+"}"),_163=function(deps,_164){var _165=[];_123.forEach(deps,function(mid){var url=_122.toUrl(mid+".js");function load(text){var _166=_162(text,_151,mid);if(_166===1){_122([mid],function(_167){_165.push(_12e[url]=_167);});}else{if(_166 instanceof Error){console.error("failed to evaluate i18n bundle; url="+url,_166);_166={};}_165.push(_12e[url]=(/nls\/[^\/]+\/[^\/]+$/.test(url)?_166:{root:_166,_v1x:1}));}};if(_12e[url]){_165.push(_12e[url]);}else{var _168=_122.syncLoadNls(mid);if(_168){_165.push(_168);}else{if(!xhr){try{_122.getText(url,true,load);}catch(e){_165.push(_12e[url]={});}}else{xhr.get({url:url,sync:true,load:load,error:function(){_165.push(_12e[url]={});}});}}}});_164&&_164.apply(null,_165);},_151=function(_169){for(var _16a,_16b=_169.split("/"),_16c=dojo.global[_16b[0]],i=1;_16c&&i<_16b.length-1;_16c=_16c[_16b[i++]]){}if(_16c){_16a=_16c[_16b[i]];if(!_16a){_16a=_16c[_16b[i].replace(/-/g,"_")];}if(_16a){_12e[_169]=_16a;}}return _16a;};_125.getLocalization=function(_16d,_16e,_16f){var _170,_171=_12f(_16d,_16e,_16f).substring(10);load(_171,(!isXd(_171)?_163:_122),function(_172){_170=_172;});return _170;};if(has("dojo-unit-tests")){_152.push(function(doh){doh.register("tests.i18n.unit",function(t){var _173;_173=_162("{prop:1}");t.is({prop:1},_173);t.is(undefined,_173[1]);_173=_162("({prop:1})");t.is({prop:1},_173);t.is(undefined,_173[1]);_173=_162("{'prop-x':1}");t.is({"prop-x":1},_173);t.is(undefined,_173[1]);_173=_162("({'prop-x':1})");t.is({"prop-x":1},_173);t.is(undefined,_173[1]);_173=_162("define({'prop-x':1})");t.is(1,_173);_173=_162("this is total nonsense and should throw an error");t.is(_173 instanceof Error,true);});});}}return lang.mixin(_125,{dynamic:true,normalize:_13c,load:load,cache:_12e});});},"dojo/Stateful":function(){define("dojo/Stateful",["./_base/declare","./_base/lang","./_base/array"],function(_174,lang,_175){return _174("dojo.Stateful",null,{postscript:function(_176){if(_176){lang.mixin(this,_176);}},get:function(name){return this[name];},set:function(name,_177){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _178=this[name];this[name]=_177;if(this._watchCallbacks){this._watchCallbacks(name,_178,_177);}return this;},watch:function(name,_179){var _17a=this._watchCallbacks;if(!_17a){var self=this;_17a=this._watchCallbacks=function(name,_17b,_17c,_17d){var _17e=function(_17f){if(_17f){_17f=_17f.slice();for(var i=0,l=_17f.length;i\n\t
\n"}});define("dijit/TooltipDialog",["dojo/_base/declare","dojo/dom-class","dojo/_base/event","dojo/keys","dojo/_base/lang","./focus","./layout/ContentPane","./_DialogMixin","./form/_FormMixin","./_TemplatedMixin","dojo/text!./templates/TooltipDialog.html","."],function(_1b9,_1ba,_1bb,keys,lang,_1bc,_1bd,_1be,_1bf,_1c0,_1c1,_1c2){return _1b9("dijit.TooltipDialog",[_1bd,_1c0,_1bf,_1be],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:_1c1,_setTitleAttr:function(_1c3){this.containerNode.title=_1c3;this._set("title",_1c3);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(node,_1c4,_1c5){var newC="dijitTooltipAB"+(_1c5.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_1c5.charAt(0)=="T"?"Below":"Above");_1ba.replace(this.domNode,newC,this._currentOrientClass||"");this._currentOrientClass=newC;},focus:function(){this._getFocusItems(this.containerNode);_1bc.focus(this._firstFocusItem);},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();},onClose:function(){this.onHide();},_onKey:function(evt){var node=evt.target;if(evt.charOrCode===keys.TAB){this._getFocusItems(this.containerNode);}var _1c6=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==keys.ESCAPE){setTimeout(lang.hitch(this,"onCancel"),0);_1bb.stop(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===keys.TAB){if(!_1c6){_1bc.focus(this._lastFocusItem);}_1bb.stop(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===keys.TAB&&!evt.shiftKey){if(!_1c6){_1bc.focus(this._firstFocusItem);}_1bb.stop(evt);}else{if(evt.charOrCode===keys.TAB){evt.stopPropagation();}}}}}});});},"dijit/layout/_ContentPaneResizeMixin":function(){define("dijit/layout/_ContentPaneResizeMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom-attr","dojo/dom-class","dojo/dom-geometry","dojo/_base/lang","dojo/query","dojo/_base/sniff","dojo/_base/window","../registry","./utils","../_Contained"],function(_1c7,_1c8,_1c9,_1ca,_1cb,lang,_1cc,has,win,_1cd,_1ce,_1cf){return _1c8("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isLayoutContainer:true,startup:function(){if(this._started){return;}var _1d0=this.getParent();this._childOfLayoutWidget=_1d0&&_1d0.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);if(this._isShown()){this._onShow();}if(!this._childOfLayoutWidget){this.connect(has("ie")?this.domNode:win.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize();});}},_checkIfSingleChild:function(){var _1d1=_1cc("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_1d2=_1d1.filter(function(node){return _1c9.has(node,"data-dojo-type")||_1c9.has(node,"dojoType")||_1c9.has(node,"widgetId");}),_1d3=_1c7.filter(_1d2.map(_1cd.byNode),function(_1d4){return _1d4&&_1d4.domNode&&_1d4.resize;});if(_1d1.length==_1d2.length&&_1d3.length==1){this._singleChild=_1d3[0];}else{delete this._singleChild;}_1ca.toggle(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_1d5,_1d6){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_1d5,_1d6);},_scheduleLayout:function(_1d7,_1d8){if(this._isShown()){this._layout(_1d7,_1d8);}else{this._needLayout=true;this._changeSize=_1d7;this._resultSize=_1d8;}},_layout:function(_1d9,_1da){if(_1d9){_1cb.setMarginBox(this.domNode,_1d9);}var cn=this.containerNode;if(cn===this.domNode){var mb=_1da||{};lang.mixin(mb,_1d9||{});if(!("h" in mb)||!("w" in mb)){mb=lang.mixin(_1cb.getMarginBox(cn),mb);}this._contentBox=_1ce.marginBox2contentBox(cn,mb);}else{this._contentBox=_1cb.getContentBox(cn);}this._layoutChildren();delete this._needLayout;},_layoutChildren:function(){if(this.doLayout){this._checkIfSingleChild();}if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||_1cb.getContentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{_1c7.forEach(this.getChildren(),function(_1db){if(_1db.resize){_1db.resize();}});}},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open" in this){return this.open;}return this._resizeCalled;}else{if("open" in this){return this.open;}else{var node=this.domNode,_1dc=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!_1ca.contains(node,"dijitHidden")&&_1dc&&_1dc.style&&(_1dc.style.display!="none");}}},_onShow:function(){if(this._needLayout){this._layout(this._changeSize,this._resultSize);}this.inherited(arguments);this._wasShown=true;}});});},"dojo/html":function(){define("dojo/html",["./_base/kernel","./_base/lang","./_base/array","./_base/declare","./dom","./dom-construct","./parser"],function(dojo,lang,_1dd,_1de,dom,_1df,_1e0){lang.getObject("html",true,dojo);var _1e1=0;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*]+>|]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=_1df.empty;dojo.html._setNodeContent=function(node,cont){_1df.empty(node);if(cont){if(typeof cont=="string"){cont=_1df.toDom(cont,node.ownerDocument);}if(!cont.nodeType&&lang.isArrayLike(cont)){for(var _1e2=cont.length,i=0;i]*>\s*([\s\S]+)\s*<\/body>/im);if(_1e6){cont=_1e6[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_1e7){var _1e8={},key;for(key in _1e7){if(key in _1e8){continue;}this[key]=_1e7[key];}},_parse:function(){var _1e9=this.node;try{var _1ea={};_1dd.forEach(["dir","lang","textDir"],function(name){if(this[name]){_1ea[name]=this[name];}},this);this.parseResults=_1e0.parse({rootNode:_1e9,noStart:!this.startup,inherited:_1ea,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_1eb){var _1ec=this["on"+type+"Error"].call(this,err);if(_1eb){console.error(_1eb,err);}else{if(_1ec){dojo.html._setNodeContent(this.node,_1ec,true);}}}});dojo.html.set=function(node,cont,_1ed){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_1ed){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(lang.mixin(_1ed,{content:cont,node:node}));return op.set();}};return dojo.html;});},"*now":function(r){r(["dojo/i18n!*preload*dijit/nls/_dijit_layout_basic*[\"ar\",\"ca\",\"cs\",\"da\",\"de\",\"el\",\"en\",\"es\",\"fi\",\"fr\",\"he\",\"hr\",\"hu\",\"it\",\"ja\",\"kk\",\"ko\",\"nl\",\"no\",\"pl\",\"pt\",\"pt-br\",\"ro\",\"ru\",\"sk\",\"sl\",\"sv\",\"th\",\"tr\",\"uk\",\"zh\",\"zh-tw\",\"ROOT\"]"]);},"*noref":1}});define("dijit/_dijit_layout_basic",[],1);require(["dijit/layout/ContentPane","dijit/layout/LinkPane","dijit/TitlePane","dijit/Dialog","dijit/TooltipDialog"]);/*
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:{"url:dijit/layout/templates/AccordionButton.html":"
"},_1c);
this.widget=new _16({window:prm.window,title:prm.title,autoPosition:prm.autoPosition,modal:prm.modal,itemClose:"Close",template:prm.template,z_index:this.z_index});
var cb=this.widget.closeButtonNode;
cb&&i$.bindDomEvt(cb,"onclick",i$.scope(this,"_close"));
if(prm.autoClose){
i$.bindDomEvt(this.widget._overlayNode,"onclick",i$.scope(this,"_close"));
}
_3.push(this);
}),{open:function(){
var w=this.widget,p=this.prm,wd=w.domNode,m=p.metrics,tb=p.targetBox={};
if(p.url){
w.containerNode.innerHTML=_4("
"+""+""+""+"
"+"",{id:w.id,url:i$.isIE?"":p.url,title:p.title||p.description||"dialog contents",blank:this.blankImgSrc,loading:"loading...",border:i$.isIE?"border='0'":"",visibility:i$.isIE?"visibility:hidden;":"opacity:0;filter:Alpha(opacity=0)"});
var f=_11(w);
if(i$.isIE){
f.src=p.url;
this._initCallbacksOnloadIE();
this._ieRefreshListener=i$.addListener("wpModules/dialog/Dialog/ieRefresh",i$.scope(this,this._handleIeRefreshEvent));
}else{
f.onload=i$.scope(this,this._initCallbacks);
}
}
wd.style.visibility="hidden";
w.show();
if(m){
if(!p.autoPosition){
m.top&&(tb.top=m.top);
m.left&&(tb.left=m.left);
}
m.width&&(tb.width=m.width);
m.height&&(tb.height=m.height);
}
_f(p,wd,tb);
setTimeout(function(){
wd.style.visibility="visible";
},100);
return false;
},_initCallbacks:function(){
var w=this.widget;
var p=this.prm;
var f=_11(w);
var _1d=i$.scope(this,function(){
var fw=f.contentWindow,_1e=fw.contentDocument||fw.document,_1f=i$.scope(this,function(){
this.onLoadFrame();
p.onLoadCallbackFn&&p.onLoadCallbackFn(_1e);
});
fw.onunload=function(){
p.onUnloadCallbackFn&&p.onUnloadCallbackFn(_1e);
};
fw.onload=_1f;
fw.resize=i$.scope(this,"resize");
fw.close=fw.closeDialog=f.onCloseModalDialog=i$.scope(this,"close");
_1f();
});
_1d();
},_initCallbacksOnloadIE:function(){
var _20=this;
var w=this.widget;
var p=this.prm;
var f=_11(w);
var fn=function(i){
p.window.setTimeout(function(){
if((f.contentDocument.readyState&&f.contentDocument.readyState==="complete")||(f.readyState&&f.readyState==="complete")){
_20._initCallbacks();
}else{
if(i<300){
fn(i+1);
}
}
},200+10);
};
fn(0);
},_handleIeRefreshEvent:function(_21){
var w=this.widget;
var f=_11(w);
var cw=f.contentWindow;
if(_21==cw){
this._initCallbacksOnloadIE();
}
},isActive:function(){
return _3.length>0&&this.widget.id===_3[_3.length-1].widget.id;
},onLoadFrame:function(){
var w=this.widget,wd=w.domNode,p=this.prm,_22=p.targetBox,_23=p.autoResize,_24=_b(p.window.document),_25=_11(w),bs=wd.style;
bs.maxWidth="none";
bs.maxHeight="none";
bs.minWidth="0";
bs.minHeight="0";
var _26=p.window.document.getElementById(w.id+"-progressLoading");
if(_26){
_26.style.display="none";
}
var cs=w.containerNode.style,fs=_25.style;
cs.paddingBottom="0px";
cs.marginBottom="0px";
if(i$.isIE){
fs.visibility="visible";
}else{
fs.opacity="100";
fs.filter="Alpha(opacity=100)";
}
var fw=_25.contentWindow,_27=fw.contentDocument||fw.document,fde=_27.documentElement,_28=_27.body;
if(i$.isWebKit){
_28.style.overflow="auto";
}
_13(_25,{width:300,height:150});
var _29=Math.max(_28.scrollHeight,fde.scrollHeight,_28.offsetHeight,fde.offsetHeight,fde.clientHeight),_2a=Math.max(_28.scrollWidth,fde.scrollWidth,_28.offsetWidth,fde.offsetWidth,fde.clientWidth),_2b=_d(wd),_2c=_d(_25),_2d=_2b.width-_2c.width,_2e=_2b.height-_2c.height,_2f=_24.width-2*p.viewMargin-_2d,_30=_24.height-2*p.viewMargin-_2e,_31=_22.height||(_23?_29:_24.height/3),_32=_22.width||(_23?_2a:_24.width/3);
_2a=Math.min(_32,_2f);
_29=Math.min(_31,_30);
_13(wd,{top:0,left:0});
_13(_25,{width:_2a,height:_29});
if(_23&&!_22.width){
if(i$.isIE>=11){
_2a+=2;
_13(_25,{width:_2a});
}
if(i$.isFF){
if(fde.clientWidth_30){
var _33=Math.max(_28.scrollWidth,fde.scrollWidth),_34=Math.max(_28.clientWidth,fde.clientWidth);
if(_34<_33){
var _35=_33-_34;
if(_2a+_35<=_2f){
_2a+=_35;
_13(_25,{width:_2a});
}
}
}
}
_f(p,wd,{top:p.targetBox.top,left:p.targetBox.left,width:_2a+_2d,height:_29+_2e});
i$.bindDomEvt(_28,"onkeydown",i$.scope(this,function(e){
if(e.keyCode===27){
this._close();
}
}));
p.window.setTimeout(function(){
_25.focus();
},100);
},resize:function(_36){
var is=_36&&(_36.width||_36.height);
if(is){
i$.mash(this.prm.targetBox,_36);
}
this.prm.autoResize=!is;
this.onLoadFrame();
},setFocus:function(){
},setMarkup:function(_37){
this.widget.containerNode.innerHTML=_37;
},_close:function(){
this.close();
},close:function(_38){
var w=this.widget,r=w.rootNode,p=this.prm,_39=_11(w),fw=_39&&_39.contentWindow;
if(fw&&fw.onbeforeunload){
var _3a=fw.onbeforeunload();
if(_3a&&!confirm(_3a)){
return;
}
}
w.hide();
for(var da=_3,i=da.length;i>0;i--){
if(da[i-1].widget.id===w.id){
da.splice(i-1,1);
break;
}
}
p.callbackFn&&p.callbackFn(_38);
r&&r.parentNode.removeChild(r);
if(i$.isIE){
i$.removeListener(this._ieRefreshListener);
}
}});
}(window));
}
/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2012 - All Rights reserved. **/
(function(_1){
var _2=_1.document;
var _3=false;
var _4=function(){
return !!(i$.query);
};
function _5(){
return Math.round(Math.random()*1000000000);
};
var _6={cache:{},triggerRegisterHandlers:{},triggerUnregisterHandlers:{},positioningHandlers:{},defaultCss:{focus:"wpthemeMenuFocus",disabled:"wpthemeMenuDisabled",show:"wpthemeMenuShow",error:"wpthemeMenuError",menuTemplate:"wpthemeTemplateMenu",submenuTemplate:"wpthemeTemplateSubmenu",loadingTemplate:"wpthemeTemplateLoading",firstItem:"wpthemeFirst",lastItem:"wpthemeLast"},init:function(_7){
var _8=_7.refNode;
var _9=_8||_7.node;
var _a=_9._contextMenu=_9._contextMenu||{};
var _b=(_8?_a.menuId:_7.menuId);
var _c=_6._sticky;
if(_9._contextMenu.preventOpen||_c){
delete _9._contextMenu.preventOpen;
return;
}
_a.id=_a.id||_9.getAttribute("id")||_5();
_9.setAttribute("id",_a.id);
_a.menuId=_b;
_a.closeFn=_7.onClose||null;
_a.params=_a.params||{};
if(_7.params){
_7.params.sticky&&(_6._sticky=true);
i$.mash(_a.params,_7.params);
}
_a.jsonQuery=_a.jsonQuery||{};
_a.jsonQuery=i$.mash(_a.jsonQuery,_7.jsonQuery);
_a.css=_8?_a.css:_6._getCssClasses(_9);
_a.defaultTemplateId=_a.defaultTemplateId||(_b+"Template");
_a.templateId=_a.templateId||_a.params.templateId||null;
var _d=function(_e){
if(!_e.displayMenu){
return;
}
i$.fireEvent("wptheme/contextMenu/close/all");
if(_a.params._executeDefaultAction){
delete _a.params._executeDefaultAction;
delete _7.params._executeDefaultAction;
_6._hideLoadingAnimation(_a);
_6._registerEventHandlers(_a);
i$.fireEvent("wpModules/contextMenu/close/id/"+_a.id);
_6._executeDefaultAction(_a);
return;
}
if(_a._loading||!i$.hasClass((_a.shadowNode)?_a.shadowNode:i$.byId(_a.id),_6.defaultCss.show)){
var _f=_a.menuNode;
i$.when(_6._updateVisibility(_f,_a)).then(function(_10){
if(_a._loading){
_a.loadingNode.style.display="none";
_a._loading=false;
}
if(!_10){
return;
}
_6._updateAbsolutePosition(i$.byId(_a.id));
var _11=_6._adjustScreenPositionStart();
if(!_a._hoverEventRegistered){
_6._addHoverEventListeners(_7);
}
i$.addClass((_a.shadowNode)?_a.shadowNode:i$.byId(_a.id),_6.defaultCss.show);
_6._adjustScreenPositionEnd(_11);
if(_a.params._setFocus){
delete _a.params._setFocus;
delete _7.params._setFocus;
var n=i$.byId(_a.id),_12=n&&n._firstSelectable;
if(_12){
_12.focus();
n._currentSelected=_12;
}
}
_6._registerEventHandlers(_a);
});
}
};
_6._initialize(_9).then(_d,_d);
_9=null;
return function(_13){
if(_a._preventClose||_a._closing){
delete _a._preventClose;
delete _7._preventClose;
return;
}
_a._closing=true;
_6._executeMenuAction(_13,_a);
_1.setTimeout(function(){
i$.fireEvent("wpModules/contextMenu/close/id/"+_a.id,[true]);
},1);
delete _a._closing;
};
},lock:function(_14){
var cm=_14._contextMenu=_14._contextMenu||{};
cm._lockMenu=true;
},unlock:function(_15){
var cm=_15._contextMenu||{};
cm._lockMenu=false;
},reposition:function(_16){
var _17=_16._contextMenu;
_6._updateAbsolutePosition(_16);
var _18=_6._adjustScreenPositionStart();
i$.addClass((_17.shadowNode)?_17.shadowNode:i$.byId(_17.id),_6.defaultCss.show);
_6._adjustScreenPositionEnd(_18);
},_hideLoadingAnimation:function(_19){
if(_19._loading){
_19.loadingNode.style.display="none";
_19._loading=false;
}
},_executeDefaultAction:function(_1a){
var _1b=_1a.menuNode;
var _1c=_6._findNodes(_1b),_1d=_1c.menu,_1e=_1d.children;
var _1f,_20;
for(var i=0,l=_1e.length;i=0;i--){
_42=_46.childNodes[i];
if(i$.hasClass(_42,_43.menuTemplate)){
_3f=_42;
continue;
}
if(i$.hasClass(_42,_43.submenuTemplate)){
_40=_42;
continue;
}
if(i$.hasClass(_42,_43.loadingTemplate)){
_41=_42;
continue;
}
if(_42.childNodes){
i=_45(_42,i);
}
}
return _47;
};
_45(_44);
return {"menu":_3f,"submenu":_40,"loading":_41};
},_findMenuNode:function(_48){
var _49,cm=_48._contextMenu,_4a=cm.templateId,_4b=cm.defaultTemplateId;
if(_4a){
_49=_2.getElementById(_4a);
}
_49=_49||(_4()?_6._findMenuNodeSelector(_48):_6._findMenuNodeRecursive(_48));
_49=_49||_2.getElementById(_4b);
return _49;
},_findMenuNodeSelector:function(_4c){
return i$.query([".wpthemeMenu",", .wpthemeMenuRight",", .wpthemeMenuLeft"].join(""),_4c).shift();
},_findMenuNodeRecursive:function(_4d){
var _4e,i,_4f;
var _50=function(_51,_52){
for(i=_51.childNodes.length-1;i>=0;i--){
_4f=_51.childNodes[i];
if(i$.hasClass(_4f,"wpthemeMenu")||i$.hasClass(_4f,"wpthemeMenuRight")||i$.hasClass(_4f,"wpthemeMenuLeft")){
_4e=_4f;
break;
}
if(_4f.childNodes){
i=_50(_4f,i);
}
}
return _52;
};
_50(_4d);
return _4e;
},_invalidateCallback:function(){
_6.cache={};
},_initialize:function(_53){
var _54=true;
var _55=_53._contextMenu,_56=_55.css;
if(_6.cache[_55.id]||_55._inProgress){
return i$.promise.resolved({displayMenu:_54});
}
if(!_55._menuTemplateNode){
_55._menuTemplateNode=_6._findMenuNode(_53);
if(_55._menuTemplateNode.parentNode!=_53){
_55._menuTemplateNode=_55._menuTemplateNode.cloneNode(true);
_55._menuTemplateNode.removeAttribute("id");
_53.appendChild(_55._menuTemplateNode);
}
}
_55._inProgress=true;
i$.addListener("wptheme/contextMenu/invalidate/all",_6._invalidateCallback);
var _57,_58,tmp=i$.createDom("div");
if(_55._submenu){
tmp.innerHTML=_55._subMenuTemplate.replace(/\$\{submenu-id\}/g,_55.id+"_menu");
_53.appendChild(tmp.firstChild);
_57=i$.byId(_55.id+"_menu");
_58=i$.createDom("div");
_58.innerHTML=_55._loadingTemplate;
}else{
var _59=_6._findNodes((_55.shadowNode)?_55.shadowNode:_53);
_57=_59.menu;
if(!_55._menuitemTemplate){
_55._menuitemTemplate=i$.trim(_57.innerHTML);
}
if(!_55._loadingTemplate&&_59.loading){
_58=i$.createDom("div");
_58.appendChild(_59.loading);
_58.innerHTML=_58.innerHTML.replace(/\$\{loading\}/g,_6.nls.LOADING_0);
_55._loadingTemplate=i$.trim(_58.innerHTML);
_58=null;
}
_58=i$.createDom("div");
_58.innerHTML=_55._loadingTemplate||"";
if(_59.submenu){
tmp.appendChild(_59.submenu.cloneNode(true));
if(!_55._subMenuTemplate){
_55._subMenuTemplate=i$.trim(tmp.innerHTML);
}
}
}
while(_57.firstChild){
_57.removeChild(_57.firstChild);
}
_57.appendChild(_58);
_55.loadingNode=_58;
var _5a;
if(_55.shadowNode){
_5a=_55.shadowNode;
}else{
_5a=_6._transformIntoAbsolutePosition(_53);
}
i$.addClass((_5a)?_5a:_53,_56.show);
return _6._load(_55).then(function(_5b){
var _5c=_6._parseData(_5b).then(function(_5d){
_5d=_6._filterMenu(_5d);
if(!_5d||_5d.length==0){
var tmp=i$.createDom("div");
tmp.innerHTML=_6._fromTemplate(_55._menuitemTemplate,_56.error,_6.nls.NO_ITEMS_0);
while(_57.firstChild){
_57.removeChild(_57.firstChild);
}
_57.appendChild(tmp);
}else{
_6._buildMenu(_55,_57,_5d);
}
_55._inProgress=false;
_55._loading=true;
_6.cache[_55.id]=true;
return {displayMenu:_54};
});
return _5c;
},function(){
var tmp=i$.createDom("div");
tmp.innerHTML=_6._fromTemplate(_55._menuitemTemplate,_56.error,_6.nls.ERROR_LOADING_0);
while(_57.firstChild){
_57.removeChild(_57.firstChild);
}
_57.appendChild(tmp);
_55._inProgress=false;
_6.cache[_55.id]=true;
return {displayMenu:_54};
});
},_updateVisibility:function(_5e,_5f){
var _60=_6._findNodes(_5e),_61=_60.menu,_62=_61.children,_63=[];
var _64,_65;
for(var i=0,l=_62.length;i-1){
var n=i$.byId(_5f.id);
n._firstSelectable=_70;
n._currentSelected=null;
i$.addClass(_62[_68],_5f.css.firstItem);
}
(_69>-1)&&i$.addClass(_62[_69],_5f.css.lastItem);
_6a.resolve(_6b);
});
return _6a;
},_filterMenu:function(_72){
var _73=[],_74,_75={"type":"Separator"};
for(var i=_72.length-1;i>=0;i--){
_74=_72[i];
if(_74.type=="Separator"){
if(_75.type=="Separator"){
continue;
}
}else{
if(_74.type=="Header"){
if((_75.type=="Separator")||(_75.type=="Header")){
continue;
}
}
}
_75=_74;
_73.unshift(_74);
}
while(_73.length>0&&_73[0].type=="Separator"){
_73=_73.slice(1);
}
return _73;
},_buildMenu:function(_76,_77,_78){
var _79=_2.createDocumentFragment(),tmp=i$.createDom("div"),_7a,_7b,_7c=_76.id,_7d,_7e=i$.byId(_76.id);
for(var i=0,l=_78.length;i 0) {
if (projectLink != null && projectLink.length > 0) {
message = dojo.replace(wcmModules.nls.inplace["added_item_to_the_project_1"], [contentTitle]);
} else {
message = dojo.replace(wcmModules.nls.inplace["draft_of_item_was_created_1"], [contentTitle]);
}
}
var messageObject = new com.ibm.widgets.StatusMessage("info", message , "");
i$.fireEvent("/portal/status",[{message: messageObject, uid: 'ibmStatusBox'}]);
inplaceMenu._createdDrafts[publishedId] = draftId;
},
/** Get the id of the auto-created draft given a published id.
* Returns null if no draft has been created.
*/
/*String*/getCreatedDraft: function(/*String*/publishedId)
{
return inplaceMenu._createdDrafts[publishedId];
},
/** Called to edit property or element using true inplace editing */
edit : function(/*Object*/jsonData) {
var wcmMetaData = inplaceMenu._extractWcmMetaData(jsonData);
// Can't edit while saving
if (inplaceMenu.isSaving(wcmMetaData.editableRegionId)) {
return;
}
// Node to which the CAM menu is attached
var attachNode = i$.byId(wcmMetaData.editableRegionId);
// Lock the CAM menu. It will be unlocked again once we've loaded an editor
wpModules.contextMenu.lock(attachNode);
try
{
//console.log("wcmInplaceModule: edit: wcmMetaData", wcmMetaData);
inplaceMenu.setEditing(wcmMetaData.editableRegionId, true);
// If a draft has been created since page load, we need to edit that instead of the published item
var draftId = inplaceMenu.getCreatedDraft(wcmMetaData.itemId);
if (draftId != null) {
//console.log("Identified that we should edit draft with id " + draftId + " instead of published item " + wcmMetaData.itemId);
wcmMetaData.itemId = draftId;
}
//Property here is defined by 'wcm/TagType.PROPERTY',
if (wcmMetaData.tagType === "Property") {
wcmModules.inplaceMenu.editProperty(wcmMetaData);
} else {
wcmModules.inplaceMenu.editElement(wcmMetaData);
}
}
catch (e) {
// If anything goes wrong, make sure to unlock the CAM menu again
wpModules.contextMenu.unlock(attachNode);
inplaceMenu.setEditing(wcmMetaData.editableRegionId, false);
throw e;
}
},
/** Called to edit property using true inplace editing */
editProperty : function(/*Object*/wcmMetaData) {
//console.log("Entered editProperty: ", wcmMetaData);
if (inplaceMenu._textBox[wcmMetaData.editableRegionId]) {
// Reuse textBox if already created
var textBox = inplaceMenu._textBox[wcmMetaData.editableRegionId];
// Don't reload the item value - the user may already have edited this value
textBox.editInplace(false);
} else {
require({
packages : [ {
name : 'wcm',
location : wcmModules.config.inplaceResourceRoot + '/js'
} ]
}, [ 'wcm/InplaceTextBox', 'wcm/InplaceEditable', 'wcm/SavePropertyHandler', 'wcm/ItemRepository' ],
function(InplaceTextBox, InplaceEditable, SavePropertyHandler, ItemRepository) {
var saveHandlerObject = new SavePropertyHandler({
wcmMetaData : wcmMetaData
});
var saveHandler = saveHandlerObject.createHandler();
var useEmbedEdit = (wcmMetaData.editMode == "embed") || (wcmMetaData.editMode == "default" && wcmMetaData.defaultMode == "embed");
var textBox = null;
if (useEmbedEdit) {
textBox = new InplaceEditable({
onChange : saveHandler,
renderAsHtml : false,
getItemValue : function(callback) {
var rep = new ItemRepository({
wcmMetaData : wcmMetaData
});
var propValue = rep.getPropertyValue(wcmMetaData.itemId, wcmMetaData.propertyType);
propValue.then(function(value) {
callback(value);
});
},
uniqueId : wcmMetaData.editableRegionId
}, wcmMetaData.contentRegion);
} else {
textBox = new InplaceTextBox({
onChange : saveHandler,
autoSave : false, // don't use dijit's autosave - we'll implement this ourselves
editorParams : {
// TODO: We should set this max using the value from the template. For now, this
// will be checked on the server
//maxLength : 250
},
editor : 'dijit.form.Textarea',
renderAsHtml : false,
getItemValue : function(callback) {
var rep = new ItemRepository({
wcmMetaData : wcmMetaData
});
var propValue = rep.getPropertyValue(wcmMetaData.itemId, wcmMetaData.propertyType);
propValue.then(function(value) {
callback(value);
});
},
uniqueId : wcmMetaData.editableRegionId
}, wcmMetaData.contentRegion);
}
inplaceMenu._textBox[wcmMetaData.editableRegionId] = textBox;
// Load the item value - we want to edit the real item value, not the rendered value
textBox.editInplace(true);
});
}
},
/** Called to edit element using true inplace editing */
editElement : function(/*Object*/wcmMetaData) {
//console.log("wcmInplaceModule: Entered editElement: ", wcmMetaData);
if (inplaceMenu._textBox[wcmMetaData.editableRegionId]) {
// Reuse textBox if already created
var textBox = inplaceMenu._textBox[wcmMetaData.editableRegionId];
//console.log("wcmInplaceModule: editElement reused textBox: ", textBox);
// Don't reload the item value - the user may already have edited this value
textBox.editInplace(false);
} else {
require({
packages : [ {
name : 'wcm',
location : wcmModules.config.inplaceResourceRoot + '/js'
} ]
}, [ 'dojo/dom', 'dojo/DeferredList', 'wcm/InplaceTextBox', 'wcm/InplaceEditable', 'wcm/SaveElementHandler', 'wcm/ItemRepository', 'wcm/ElementType' ],
function(dom, DeferredList, InplaceTextBox, InplaceEditable, SaveElementHandler, ItemRepository, ElementType) {
//console.log("wcmMetaData.elementType", wcmMetaData.elementType);
var saveHandlerObject = new SaveElementHandler({
wcmMetaData : wcmMetaData,
isNumber : (wcmMetaData.elementType === ElementType.NUMBER)
});
var saveHandler = saveHandlerObject.createHandler();
var isRichText = (wcmMetaData.elementType === ElementType.RICH_TEXT);
var useEmbedEdit = (wcmMetaData.editMode == "embed") || (wcmMetaData.editMode == "default" && wcmMetaData.defaultMode == "embed");
var textBox = null;
if (useEmbedEdit) {
textBox = new InplaceEditable({
onChange : saveHandler,
renderAsHtml : (wcmMetaData.elementType === ElementType.RICH_TEXT), // Render everything as text, apart from RICH_TEXT
getItemValue : function(callback) {
var rep = new ItemRepository({
wcmMetaData : wcmMetaData
});
var elementValue = rep.getElementValue(wcmMetaData.itemId, wcmMetaData.elementName);
elementValue.then(function(value) {
//console.log("wcmInplaceModule: editElement: Element Value is", value);
callback(value);
});
},
uniqueId : wcmMetaData.editableRegionId,
isRichText : isRichText
}, wcmMetaData.contentRegion);
} else {
textBox = new InplaceTextBox({
onChange : saveHandler,
autoSave : false, // don't use dijit's autosave - we'll implement this ourselves
editorParams : {
// TODO: We should set this max using the value from the template. For now, this
// will be checked on the server
//maxLength : 250
},
editor : 'dijit.form.Textarea',
renderAsHtml : (wcmMetaData.elementType === ElementType.RICH_TEXT), // Render everything as text, apart from RICH_TEXT
getItemValue : function(callback) {
var rep = new ItemRepository({
wcmMetaData : wcmMetaData
});
var elementValue = rep.getElementValue(wcmMetaData.itemId, wcmMetaData.elementName);
elementValue.then(function(value) {
//console.log("wcmInplaceModule: editElement: Element Value is", value);
callback(value);
});
},
uniqueId : wcmMetaData.editableRegionId,
isRichText : isRichText
}, wcmMetaData.contentRegion);
}
inplaceMenu._textBox[wcmMetaData.editableRegionId] = textBox;
// Initiate edit inplace
if (wcmMetaData.elementType === ElementType.RICH_TEXT) {
var contentRegionNode = i$.byId(wcmMetaData.contentRegion);
// Show RTE has inactive while it's loading - this is equivalent to 'saving'
i$.addClass(contentRegionNode.parentNode, "saving");
// Load all required scripts for RTE in paralled. When all are loaded, initiate inplace edit
// The inplace edit will fail if the scripts have not all been loaded in time.
var deferred1 = dojo.io.script.get({
url : wcmModules.config.inplaceResourceRoot + "/ckeditor/ckeditor.js"
});
var deferred2 = dojo.io.script.get({
url : wcmModules.config.inplaceResourceRoot + "/js/editor/ckeditorIntegration.js"
});
var deferred3 = dojo.io.script.get({
url : wcmModules.config.inplaceResourceRoot + "/js/editor/RTEFieldActions.js"
});
var deferredList = new DeferredList([deferred1, deferred2, deferred3]);
deferredList.then(function() {
// Remove loading indicator
i$.removeClass(contentRegionNode.parentNode, "saving");
// Load the item value - we want to edit the real item value, not the rendered value
textBox.editInplace(true);
});
}
else
{
// Load the item value - we want to edit the real item value, not the rendered value
textBox.editInplace(true);
}
});
}
},
/** Called to save item using true inplace editing */
save : function(/*Object*/jsonData) {
var wcmMetaData = inplaceMenu._extractWcmMetaData(jsonData);
inplaceMenu.setEditing(wcmMetaData.editableRegionId, false);
if (inplaceMenu._textBox[wcmMetaData.editableRegionId]) {
var textBox = inplaceMenu._textBox[wcmMetaData.editableRegionId];
textBox.save();
} else {
console.log("wcmInplaceModule: No Inplace Widget for : " + wcmMetaData.editableRegionId);
}
},
/** Called to cancel item using true inplace editing */
cancel : function(/*Object*/jsonData) {
var wcmMetaData = inplaceMenu._extractWcmMetaData(jsonData);
inplaceMenu.setEditing(wcmMetaData.editableRegionId, false);
if (inplaceMenu._textBox[wcmMetaData.editableRegionId]) {
var textBox = inplaceMenu._textBox[wcmMetaData.editableRegionId];
textBox.cancel();
} else {
console.log("wcmInplaceModule: No Inplace Widget for : " + wcmMetaData.editableRegionId);
}
},
/**
* Whether the property/element corresponding to the jsonData is NOT being
* edited using true inplace editing. This is used in the Java code as a CAM visibility function.
*/
isNotEditing : function(/*Object*/jsonData) {
var wcmMetaData = inplaceMenu._extractWcmMetaData(jsonData);
var notEditing = (!inplaceMenu.isEditing(jsonData) );
var notSaving = !inplaceMenu.isSaving(wcmMetaData.editableRegionId);
return (notEditing && notSaving);
},
/**
* Whether the property/element corresponding to the jsonData is being
* edited using true inplace editing.
*/
isEditing : function(/*Object*/jsonData) {
var wcmMetaData = inplaceMenu._extractWcmMetaData(jsonData);
var isEdit = (inplaceMenu._isEditing[wcmMetaData.editableRegionId] === true);
//console.log("isEditing: ", isEdit);
return isEdit;
},
/**
* Set whether the property/element corresponding to the jsonData is being
* edited using true inplace editing.
*/
setEditing : function(/*String*/key, /*boolean*/editing) {
inplaceMenu._isEditing[key] = editing;
},
/** Open the inplace edit popup dialog with the supplied jsonData.actionUrl */
editDialog : function(/*Object*/jsonData) {
//console.log("wcmInplaceModule:", jsonData);
var wcmMetaData = inplaceMenu._extractWcmMetaData(jsonData);
//console.log("wcmInplaceModule: editDialog extracted wcmMetaData: ", wcmMetaData);
// No need to look in the createdDrafts map to see if there's a project draft - the remote action will
// find it.
var contentRegionNode = i$.byId(wcmMetaData.contentRegion);
i$.addClass(contentRegionNode.parentNode, "editing");
inplaceMenu._extractedWcmMetaData = wcmMetaData;
// Create promise. When promise is resolved, the edit popup dialog will be shown, with the given URL.
var promise = new i$.promise.Promise();
require({
packages : [ {
name : 'wcm',
location : wcmModules.config.inplaceResourceRoot + '/js'
} ]
}, ['dojo/topic', 'wcm/EventTopic', 'wcm/ItemRepository'], function(topic, EventTopic, ItemRepository) {
if (ItemRepository && ItemRepository._saveDeferredCount && ItemRepository._saveDeferredCount > 0) {
if (inplaceMenu.updatesCompleteTopic) {
inplaceMenu.updatesCompleteTopic.remove();
}
// Show 'loading' until all true inplace saves have completed, then allow popup dialog to open.
inplaceMenu.showOverlay();
inplaceMenu.updatesCompleteTopic = topic.subscribe(EventTopic.updatesComplete, function() {
//console.log("wcmInplaceModule: editDialog: Updates complete callback", jsonData);
inplaceMenu.hideOverlay();
promise.resolve(jsonData.actionUrl);
});
} else {
// Resolve immediately, to allow popup dialog to open
promise.resolve(jsonData.actionUrl);
}
});
return promise;
},
/** Called when the inplace edit popup dialog is closed */
closeDialog : function(/*Object*/event) {
//console.log("wcmInplaceModule: Entering closeDialog: event", event);
var wcmMetaData = inplaceMenu._extractedWcmMetaData;
//console.log("wcmInplaceModule: editDialog extracted wcmMetaData: ", wcmMetaData);
var contentRegionNode = i$.byId(wcmMetaData.contentRegion);
// Empty event indicates that the dialog was cancelled
if (event && event.resultInfo && event.resultInfo.itemId) {
// Inplace re-render, and publish create-draft event if necessary
var outerEvent = event;
require(['wcm/InplaceRender', 'wcm/PropertyType', 'wcm/ItemRepository'], function(InplaceRender, PropertyType, ItemRepository) {
// If we've just updated the name, we need to refresh the whole page, as all the re-render URLs will be wrong
if (wcmMetaData.propertyType === PropertyType.NAME) {
ItemRepository.noUnloadPrompt = true;
document.location.reload();
} else {
inplaceMenu.setSaving(wcmMetaData.editableRegionId, true);
i$.removeClass(contentRegionNode.parentNode, "editing");
if (outerEvent.resultInfo.createdDraftId) {
//console.log("Draft was auto-created in dialog. Publishing the event");
inplaceMenu.notifyCreatedDraft(outerEvent.resultInfo.itemId, outerEvent.resultInfo.createdDraftId);
}
var inplaceRender = new InplaceRender({wcmMetaData : wcmMetaData});
//console.log("Re-rendering with this URL: " + wcmMetaData.rerenderURL);
inplaceRender.render(wcmMetaData.rerenderURL, function(/*Object*/renderJson) {
//console.log("wcmInplaceModule: Entering re-render callback: ", renderJson);
// Don't allow the HTML to be empty, as then inplace edit is not possible
contentRegionNode.innerHTML = renderJson.contents + " ";
inplaceMenu.setSaving(renderJson.editableRegionId, false);
});
}
});
} else {
i$.removeClass(contentRegionNode.parentNode, "editing");
}
},
/**
* Whether the property/element corresponding to the jsonData is NOT being
* saved using true inplace editing. This is used in the Java code as a CAM visibility function.
*/
isNotSaving : function(/*Object*/jsonData) {
var wcmMetaData = inplaceMenu._extractWcmMetaData(jsonData);
var isSaving = inplaceMenu._isSaving[wcmMetaData.editableRegionId];
return !isSaving;
},
/**
* @return true if the field is currently being saved
*/
isSaving : function(/*String*/editableRegionId) {
var isSaving = !!inplaceMenu._isSaving[editableRegionId];
return isSaving;
},
/** Set the editableRegion element as saving (disabled), or no longer saving (enabled again) */
setSaving : function(/*String*/editableRegionId, /*boolean*/saving) {
var editableRegionNode = i$.byId(editableRegionId);
if (saving) {
i$.addClass(editableRegionNode, "saving");
} else {
i$.removeClass(editableRegionNode, "saving");
}
dojo.setAttr(editableRegionNode, "aria-busy", saving);
inplaceMenu._isSaving[editableRegionId] = saving;
},
/** Set the editableRegionNodeId as in error, or no longer in error */
setError : function(/*String*/editableRegionNodeId, /*boolean*/error) {
var editableRegionNode = i$.byId(editableRegionNodeId);
if (error) {
i$.addClass(editableRegionNode, "error");
} else {
i$.removeClass(editableRegionNode, "error");
}
dojo.setAttr(editableRegionNode, "aria-invalid", error);
},
/** Show an overlay over the entire screen, blocking interaction until the overlay is hidden */
showOverlay : function() {
var loading = wcmModules.nls.inplace["loading_msg"];
require(['dojo/_base/window', 'dojo/window', 'dojo/dom-construct', 'dojo/dom-style'], function(baseWin, win, domConstruct, domStyle){
var body = baseWin.body();
var browserHeight = (win.getBox().h/2) + "px";
var bodyHeight = domStyle.get(body, "height") + "px";
var bodyWidth = domStyle.get(body, "width") + "px";
var overlay = domConstruct.place("
" +
"
" +
"" + loading + "
", body);
});
},
/** Hide the previously shown overlay */
hideOverlay : function() {
require(['dojo/dom'], function(dom){
document.body.removeChild(dom.byId("wcm-inplace-overlay"));
});
}
};
i$.toPath("wcmModules.inplaceMenu", inplaceMenu);
})(window);
/** This Module is part of the Theme. Its packaged into wcmModules.inplace. This is the handler to inplace Creating of new items
* It contains JS code for the UI for creating inplace Items and the code to trigger the rest requests*/
(function(window) {
"use strict";
var create = {
/** The function that returns a promise to create the item */
createPromiseFunction : null,
/**
* Show the Form to Create a new WCM content item in place, and create the item (via the WCM Rest API) once
* the form has been filled out.
*
* Note that this is a public method, used in CTC, so the signature and promise interface should not be changed.
*
* @param attachTo domNode that the form will launch around
* @param templateId the UUID of the content Template to use to create a new content item
* @param siteAreaId the UUID of the site area that the new content should be saved under
*/
showFormAndCreateContent : function(/*Node*/attachTo, /*String*/templateId, /*String*/siteAreaId) {
var createParams = {templateId : templateId, siteAreaId : siteAreaId};
this.showForm(attachTo, this.getCreateItemPromiseFunction(createParams));
},
/**
* Show the Form to Create a new WCM item inplace. A promise function must be set that is called once the form has been
* complete by the user, by clicking 'Create'.
*
* This promise can then be resolved or rejected by the calling function. Typically this will mean creating a new item (or items)
* of some type. The id of the created item can be returned when the promise is resolved.
*
* If the promise is resolved, then the form will be dismissed, and a redirect to the created item will occur if the id of the new item
* is returned by the promise as the optional single parameter. If the promise is rejected, an error will be shown and the form will not
* dismiss. In this case, the promise should be rejected, optionally with an error message as the single parameter.
*
* Note that this is a public method, used in CTC, so the signature and promise interface should not be changed.
*
* @param attachTo dom Node that the form will launch around
* @param createPromiseFunction The function that returns an i$.Promise to do the create
*/
showForm : function(/*Node*/attachTo, /*Function*/createPromiseFunction) {
//console.log("wcmModuleInplaceCreate: Entering showForm: ", attachTo);
wcmModules.inplace.create.createPromiseFunction = createPromiseFunction;
require({
packages : [{
name : 'wcm',
location : wcmModules.config.inplaceResourceRoot + '/js'
}]
}, ['wcm/CreateForm', 'wcm/Item', 'dijit/TooltipDialog', 'dijit/popup'], function(CreateForm, Item, TooltipDialog, popup) {
// Create the 'new item' form
var dialogId = Math.round(Math.random() * 1000000) + "_create_dialog";
var createForm = new CreateForm({
dialogRef : dialogId,
consumeForm : wcmModules.inplace.create.consumeForm
});
// Put the 'new item' form inside a tooltip dialog
var tooltipDialog = new TooltipDialog({
id : dialogId,
content : createForm,
onBlur : function(){
// 'new item' popup should close on blur
popup.close(tooltipDialog);
}
});
i$.addClass(tooltipDialog.domNode, 'noPadding');
// Show the tooltip dialog
popup.open({
popup : tooltipDialog,
around : attachTo,
orient : [ "below", "below-alt", "above", "above-alt" ],
onCancel: function(){
popup.close(tooltipDialog);
},
onClose : function(){
attachTo.focus();
}
});
// Add a class to the tooltip container, so that we can style it in createForm.css
var tooltipContainer = dojo.query("div", tooltipDialog.domNode)[0];
if (tooltipContainer) i$.addClass(tooltipContainer, "wpwcmCreateTooltipContainer");
// Ensure the New dialog appears behind the inline edit popup dialog
if (tooltipDialog.domNode.parentNode) dojo.style(tooltipDialog.domNode.parentNode, "zIndex", 500);
tooltipDialog.focus();
});
},
/**
* This function handles consuming the Create New item form, using the promise returned by
* executing the createPromiseFunction that has already been specified. This promise is returned.
* @param value the value that form has provided
* @return A promise to consume the form
*/
consumeForm : function(/*String*/value) {
//console.log("wcmModuleInplaceCreate: Entering consumeForm: ", value);
var promise = new i$.Promise();
// Run the createPromiseFunction with the value to return a promise
wcmModules.inplace.create.createPromiseFunction(value).then(
function(/*String*/itemId) {
//console.log("wcmModuleInplaceCreate: consumeForm promise resolved, ", itemId);
promise.resolve(itemId);
// Success - redirect to the created item
if (itemId) {
var pocUrl = '?uri=wcm:oid:' + itemId +
"&previewopt=id&previewopt=" + itemId + "&previewopt=isdraft&previewopt=true";
window.location.replace(pocUrl);
}
}, function(/*String*/errorMessage) {
//console.log("wcmModuleInplaceCreate: consumeForm promise rejected, ", errorMessage);
// on error we write out the error message in the CreateForm
promise.reject(errorMessage);
});
return promise;
},
/**
* Get a promise to call the relevant Rest Requests to create the content item.
* @param createParams the create item parameters
* createParams.templateId the UUID of the content Template to use to create a new content item
* createParams.siteAreaId the UUID of the site area that the new content should be saved under
* @return A function
*/
getCreateItemPromiseFunction : function(/*Object*/createParams) {
// Create a closure that when called returns the createItem promise function, with createParams inside the closure.
// This is done so that createParams can be fixed and doesn't need to be passed through all the code.
/**
* Define a function that returns a promise to call the relevant Rest Requests to create the content item.
* @param value the value entered in the form
* @return A promise to create the item
*/
var createItemPromiseFunction = function(/*String*/value) {
//console.log("wcmModuleInplaceCreate: Entering createItem: ", value);
var promise = new i$.Promise();
// Use the value entered in the dialog as the new content name
var name = value;
// Just use the name for the title
var title = value;
// Create content via WCM Rest API
require({
packages : [{
name : 'wcm',
location : wcmModules.config.inplaceResourceRoot + '/js'
}]
}, ['wcm/ItemRepository', 'wcm/Item'], function(ItemRepository, Item) {
var rep = new ItemRepository();
var createPromise = rep.createContentWithTemplate({
templateId : createParams.templateId,
name : name,
title : title,
siteAreaId : createParams.siteAreaId
});
// Chain a promise with just the ItemId or the errorMessage in it. That is, we pull out the info
// that we need from the ItemRepository objects, to allow for a simple promise interface for createPromiseFunction.
createPromise.then(
function(/*Item*/item) {
// Success
promise.resolve(item.getId());
},
function(/*Error*/error) {
// Failure
var errorMessage;
var errorObj = i$.fromJson(error.responseText);
if (errorObj.errors && errorObj.errors.message && errorObj.errors.message.length > 0) {
errorMessage = errorObj.errors.message[0].text;
}
promise.reject(errorMessage)
});
});
return promise;
};
return createItemPromiseFunction;
}
};
i$.toPath("wcmModules.inplace.create", create);
})(window);
/**
* This Module is part of the Theme. Its packaged into wcmModules.inplace. This
* particular code manages the Portlet level Inplace editing toolbar Functions
* include all the basic WCM inline editing functionalties such as
* edit/publish/approve etc.
*
* The functions are called by the CAM Framework when building the menu.
* In particular the performAction corresponds to the CAM actionFn
* and the isActionEnabled corresponds to the CAM visibilityFn
*/
(function(window) {
"use strict";
var portletMenu = {
/**
* the item cache , is key value pair of UUID to a "wcm/Item" object. The
* portlet menu has many actions that refer to the same item. Without a
* Page level cache we could perform as many as 12 requests every time the
* menu is loaded! The disadvantage is that other inline changes to the
* page will not be picked up by the menu as it will continue looking at
* the cache item until a page refresh occurs. The solution to this is to
* hook on an event producer/listener (e.g. i$.fireEvent) to handle
* changes to items
*
* Important!:
* To stop a thundering herds scenario where multiple requests are created for the same item since the
* cache was empty there is a possibility the itemCache item may be a dojo.Deferred object that resolves to the "wcm/Item"
* As a result it is important to combine this with a "Deferred.when()" when working with item
*
* For more information about dojo Deferred and When see dojo documentation.
*
*/
_itemCache : {},
/**
* the argument object passed into all the action Functions is not
* controlled by WCM. CAM in fact passes the entire Menu JSON entry as the
* argument. The relevant WCM metadata is encapsulated within at
* args.metadata.wcm. This is a convenience method to extract this WCM metadata.
*/
_extractWcmMetaData : function(/*Object*/jsonData) {
return jsonData.metadata.wcm;
},
/**
* The function is called by the CAM menu. It corresponds to the CAM
* "actionFn" {Object} args
*
* @param [args.title]
* The localized title of this action , used for the dialog
* title metadata = args.metadata.wcm
* @param [metaData.itemId]
* the UUID of the item
* @param [metaData.action]
* the Inline Action to peform , (represented by
* wcm/inplace/portlet/InlineAction)
*/
performAction : function(/*Object*/args) {
var title = args.title.value;
var metaData = portletMenu._extractWcmMetaData(args);
//console.log("wcmModuleInplacePortlet: performAction", metaData);
var outer = this;
//dojo time
require({
packages : [ {
name : 'wcm',
location : wcmModules.config.inplaceResourceRoot + '/js'
} ]
}, [ 'dojo/_base/Deferred', 'wcm/RemoteAction', 'wcm/ItemRepository', 'wcm/inplace/portlet/InlineAction' ], function(Deferred,
RemoteAction, ItemRepository, InlineAction) {
var rep = new ItemRepository({
wcmMetaData : metaData
});
//cache the item
var item = portletMenu._itemCache[metaData.itemId];
if (!item) {
item = rep.getById(metaData.itemId);
//console.log("Retrieving item from REST...");
//put the deferred item in the cache ,
//this will prevent other asynchronous threads from trying to
//retrieve the item from the cache and instead will block on the Deferred.when
portletMenu._itemCache[metaData.itemId] = item;
} else {
//console.log("Found item in cache....");
}
Deferred.when(item, function(resolvedItem) {
var enabled;
portletMenu._itemCache[metaData.itemId] = resolvedItem;
//console.log("building remote action..");
var inlineAction = new InlineAction({
action : metaData.action
});
var remoteAction = new RemoteAction({
id : metaData.itemId,
action : inlineAction.getRemoteAction()
});
//okay we got the url
//now lets get the function
//console.log("Calling openInlineEditDialog");
var openDialogFn = window["ns_" + metaData.windowId + "_openInlineEditingDialog"];
if (!openDialogFn) {
console.error("Can't find openDialog function");
}
openDialogFn(remoteAction.getUrl(), title);
});
});
//console.log("wcmModuleInplacePortlet: performAction returning");
},
/**
* This method is called by the CAM to check if the menu entry should be
* shown. It corresponds to the CAM "visibilityFn" Retrieves the item by
* the given UUID and then checks if the passed in action is one of the
* actions available in the retrieved item (retrieve through REST).
* ${Object} args
*
* @param args.action
* the InlineAction
* @param args.itemId
* the items UUID
* @return A Promise
*/
isActionEnabled : function(/*Object*/args) {
//console.log("isActionEnabled: entering: ", args);
var metaData = portletMenu._extractWcmMetaData(args);
//console.log("isActionEnabled: itemId: ", metaData.itemId, " action: ", metaData.action);
//this promise will return the value of whether the item is visble or not
var enabledPromise = new i$.Promise();
//dojo time
require({
packages : [ {
name : 'wcm',
location : wcmModules.config.inplaceResourceRoot + '/js'
} ]
}, [ 'dojo/_base/Deferred', 'wcm/ItemRepository', 'wcm/inplace/portlet/InlineAction', 'wcm/rest/RelationType'], function(Deferred, ItemRepository,
InlineAction, RelationType) {
var rep = new ItemRepository({
wcmMetaData : metaData
});
//cache the item
var item = portletMenu._itemCache[metaData.itemId];
if (!item) {
//console.log("Retrieving item from REST...");
item = rep.getById(metaData.itemId);
//put the deferred item in the cache ,
//this will prevent other asynchronous threads from trying to
//retrieve the item from the cache and instead will block on the Deferred.when
portletMenu._itemCache[metaData.itemId] = item;
} else {
//console.log("Found item in cache....");
}
Deferred.when(item, function(resolvedItem) {
var enabled;
portletMenu._itemCache[metaData.itemId] = resolvedItem;
//console.log("Recieved item, determining if entry should be visible");
var inlineAction = new InlineAction({
action : metaData.action
});
var rel = inlineAction.getRelation();
if (resolvedItem.getLinks().hasLink(rel)) {
//if this is create draft then don't display if we are in a project.
// Edit in project mode is essentially "create-draft" so having both is redundant
if (rel === RelationType.CREATE_DRAFT && wcmModules.config.projectId && wcmModules.config.projectId !== "") {
enabled = false;
//console.log("Create Draft disabled as we are in project context");
} else {
enabled = true;
//console.log("Item has link for given action , visible");
}
} else {
enabled = false;
}
enabledPromise.resolve(enabled);
}, function(error){
//something went wrong looking up the item
// the error handling should be covered by the ItemRepository
//lets just log to the console
console.error("Error retrieving item for Portlet level actions", error);
enabledPromise.resolve(false);
});
});
//console.log("isActionEnabled returning promise");
return enabledPromise;
}
};
//namespace this object
i$.toPath("wcmModules.inplace.portletMenu", portletMenu);
})(window);
/*
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:{"dojox/fx/easing":function(){define("dojox/fx/easing",["dojo/_base/lang","dojo/_base/kernel","dojo/fx/easing"],function(_1,_2,_3){_2.deprecated("dojox.fx.easing","Upgraded to Core, use dojo.fx.easing instead","2.0");var _4=_1.getObject("dojox.fx",true);_4.easing=_3;return _3;});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/sniff","./_base/manager","."],function(_5,_6,_7,_8,_9,_a,_b,_c,_d){var _e=(_d._isElementShown=function(_f){var s=_a.get(_f);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_9.get(_f,"type")!="hidden");});_d.hasDefaultTabStop=function(_10){switch(_10.nodeName.toLowerCase()){case "a":return _9.has(_10,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _11;try{var _12=_10.contentDocument;if("designMode" in _12&&_12.designMode=="on"){return true;}_11=_12.body;}catch(e1){try{_11=_10.contentWindow.document.body;}catch(e2){return false;}}return _11&&(_11.contentEditable=="true"||(_11.firstChild&&_11.firstChild.contentEditable=="true"));default:return _10.contentEditable=="true";}};var _13=(_d.isTabNavigable=function(_14){if(_9.get(_14,"disabled")){return false;}else{if(_9.has(_14,"tabIndex")){return _9.get(_14,"tabIndex")>=0;}else{return _d.hasDefaultTabStop(_14);}}});_d._getTabNavigable=function(_15){var _16,_17,_18,_19,_1a,_1b,_1c={};function _1d(_1e){return _1e&&_1e.tagName.toLowerCase()=="input"&&_1e.type&&_1e.type.toLowerCase()=="radio"&&_1e.name&&_1e.name.toLowerCase();};var _1f=function(_20){for(var _21=_20.firstChild;_21;_21=_21.nextSibling){if(_21.nodeType!=1||(_b("ie")<=9&&_21.scopeName!=="HTML")||!_e(_21)){continue;}if(_13(_21)){var _22=_9.get(_21,"tabIndex");if(!_9.has(_21,"tabIndex")||_22==0){if(!_16){_16=_21;}_17=_21;}else{if(_22>0){if(!_18||_22<_19){_19=_22;_18=_21;}if(!_1a||_22>=_1b){_1b=_22;_1a=_21;}}}var rn=_1d(_21);if(_9.get(_21,"checked")&&rn){_1c[rn]=_21;}}if(_21.nodeName.toUpperCase()!="SELECT"){_1f(_21);}}};if(_e(_15)){_1f(_15);}function rs(_23){return _1c[_1d(_23)]||_23;};return {first:rs(_16),last:rs(_17),lowest:rs(_18),highest:rs(_1a)};};_d.getFirstInTabbingOrder=function(_24){var _25=_d._getTabNavigable(_8.byId(_24));return _25.lowest?_25.lowest:_25.first;};_d.getLastInTabbingOrder=function(_26){var _27=_d._getTabNavigable(_8.byId(_26));return _27.last?_27.last:_27.highest;};return {hasDefaultTabStop:_d.hasDefaultTabStop,isTabNavigable:_d.isTabNavigable,_getTabNavigable:_d._getTabNavigable,getFirstInTabbingOrder:_d.getFirstInTabbingOrder,getLastInTabbingOrder:_d.getLastInTabbingOrder};});},"dojo/NodeList-fx":function(){define("dojo/NodeList-fx",["dojo/_base/NodeList","./_base/lang","./_base/connect","./_base/fx","./fx"],function(_28,_29,_2a,_2b,_2c){_29.extend(_28,{_anim:function(obj,_2d,_2e){_2e=_2e||{};var a=_2c.combine(this.map(function(_2f){var _30={node:_2f};_29.mixin(_30,_2e);return obj[_2d](_30);}));return _2e.auto?a.play()&&this:a;},wipeIn:function(_31){return this._anim(_2c,"wipeIn",_31);},wipeOut:function(_32){return this._anim(_2c,"wipeOut",_32);},slideTo:function(_33){return this._anim(_2c,"slideTo",_33);},fadeIn:function(_34){return this._anim(_2b,"fadeIn",_34);},fadeOut:function(_35){return this._anim(_2b,"fadeOut",_35);},animateProperty:function(_36){return this._anim(_2b,"animateProperty",_36);},anim:function(_37,_38,_39,_3a,_3b){var _3c=_2c.combine(this.map(function(_3d){return _2b.animateProperty({node:_3d,properties:_37,duration:_38||350,easing:_39});}));if(_3a){_2a.connect(_3c,"onEnd",_3a);}return _3c.play(_3b||0);}});return _28;});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./registry"],function(_3e,_3f,_40,_41,_42,_43,dom,_44,_45,_46,_47,_48,_49,_4a,on,_4b,_4c,_4d,win,_4e){if(!_49.isAsync){_4b(0,function(){var _4f=["dijit/_base/manager"];_3e(_4f);});}var _50={};function _51(obj){var ret={};for(var _52 in obj){ret[_52.toLowerCase()]=true;}return ret;};function _53(_54){return function(val){_44[val?"set":"remove"](this.domNode,_54,val);this._set(_54,val);};};function _55(a,b){return a===b||(a!==a&&b!==b);};return _43("dijit._WidgetBase",_4c,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_53("lang"),dir:"",_setDirAttr:_53("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_41.blankGif||_3e.toUrl("dojo/resources/blank.gif"),postscript:function(_56,_57){this.create(_56,_57);},create:function(_58,_59){this.srcNodeRef=dom.byId(_59);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_58){this.params=_58;_4a.mixin(this,_58);}this.postMixInProperties();if(!this.id){this.id=_4e.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_4e.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _5a=this.srcNodeRef;if(_5a&&_5a.parentNode&&this.domNode!==_5a){_5a.parentNode.replaceChild(this.domNode,_5a);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _5b=this.constructor,_5c=_5b._setterAttrs;if(!_5c){_5c=(_5b._setterAttrs=[]);for(var _5d in this.attributeMap){_5c.push(_5d);}var _5e=_5b.prototype;for(var _5f in _5e){if(_5f in this.attributeMap){continue;}var _60="_set"+_5f.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_60 in _5e){_5c.push(_5f);}}}_3f.forEach(_5c,function(_61){if(this.params&&_61 in this.params){}else{if(this[_61]){this.set(_61,this[_61]);}}},this);for(var _62 in this.params){this.set(_62,this[_62]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_46.create("div");}if(this.baseClass){var _63=this.baseClass.split(" ");if(!this.isLeftToRight()){_63=_63.concat(_3f.map(_63,function(_64){return _64+"Rtl";}));}_45.add(this.domNode,_63);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_3f.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_4a.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_65){this._beingDestroyed=true;this.destroyDescendants(_65);this.destroy(_65);},destroy:function(_66){this._beingDestroyed=true;this.uninitialize();var c;while((c=this._connects.pop())){c.remove();}var w;while((w=this._supportingWidgets.pop())){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}}this.destroyRendering(_66);_4e.remove(this.id);this._destroyed=true;},destroyRendering:function(_67){if(this.bgIframe){this.bgIframe.destroy(_67);delete this.bgIframe;}if(this.domNode){if(_67){_44.remove(this.domNode,"widgetId");}else{_46.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_67){_46.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_68){_3f.forEach(this.getChildren(),function(_69){if(_69.destroyRecursive){_69.destroyRecursive(_68);}});},uninitialize:function(){return false;},_setStyleAttr:function(_6a){var _6b=this.domNode;if(_4a.isObject(_6a)){_48.set(_6b,_6a);}else{if(_6b.style.cssText){_6b.style.cssText+="; "+_6a;}else{_6b.style.cssText=_6a;}}this._set("style",_6a);},_attrToDom:function(_6c,_6d,_6e){_6e=arguments.length>=3?_6e:this.attributeMap[_6c];_3f.forEach(_4a.isArray(_6e)?_6e:[_6e],function(_6f){var _70=this[_6f.node||_6f||"domNode"];var _71=_6f.type||"attribute";switch(_71){case "attribute":if(_4a.isFunction(_6d)){_6d=_4a.hitch(this,_6d);}var _72=_6f.attribute?_6f.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_6c)?_6c.toLowerCase():_6c);_44.set(_70,_72,_6d);break;case "innerText":_70.innerHTML="";_70.appendChild(win.doc.createTextNode(_6d));break;case "innerHTML":_70.innerHTML=_6d;break;case "class":_45.replace(_70,_6d,this[_6c]);break;}},this);},get:function(_73){var _74=this._getAttrNames(_73);return this[_74.g]?this[_74.g]():this[_73];},set:function(_75,_76){if(typeof _75==="object"){for(var x in _75){this.set(x,_75[x]);}return this;}var _77=this._getAttrNames(_75),_78=this[_77.s];if(_4a.isFunction(_78)){var _79=_78.apply(this,Array.prototype.slice.call(arguments,1));}else{var _7a=this.focusNode&&!_4a.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_7a].tagName,_7b=_50[tag]||(_50[tag]=_51(this[_7a])),map=_75 in this.attributeMap?this.attributeMap[_75]:_77.s in this?this[_77.s]:((_77.l in _7b&&typeof _76!="function")||/^aria-|^data-|^role$/.test(_75))?_7a:null;if(map!=null){this._attrToDom(_75,_76,map);}this._set(_75,_76);}return _79||this;},_attrPairNames:{},_getAttrNames:function(_7c){var apn=this._attrPairNames;if(apn[_7c]){return apn[_7c];}var uc=_7c.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[_7c]={n:_7c+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(_7d,_7e){var _7f=this[_7d];this[_7d]=_7e;if(this._watchCallbacks&&this._created&&!_55(_7e,_7f)){this._watchCallbacks(_7d,_7f,_7e);}},on:function(_80,_81){return _40.after(this,this._onMap(_80),_81,true);},_onMap:function(_82){var _83=this.constructor,map=_83._onMap;if(!map){map=(_83._onMap={});for(var _84 in _83.prototype){if(/^on/.test(_84)){map[_84.replace(/^on/,"").toLowerCase()]=_84;}}}return map[_82.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_4e.findWidgets(this.containerNode):[];},getParent:function(){return _4e.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_85,_86){var _87=_42.connect(obj,_85,this,_86);this._connects.push(_87);return _87;},disconnect:function(_88){var i=_3f.indexOf(this._connects,_88);if(i!=-1){_88.remove();this._connects.splice(i,1);}},subscribe:function(t,_89){var _8a=_4d.subscribe(t,_4a.hitch(this,_89));this._connects.push(_8a);return _8a;},unsubscribe:function(_8b){this.disconnect(_8b);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_47.isBodyLtr();},isFocusable:function(){return this.focus&&(_48.get(this.domNode,"display")!="none");},placeAt:function(_8c,_8d){if(_8c.declaredClass&&_8c.addChild){_8c.addChild(this,_8d);}else{_46.place(this.domNode,_8c,_8d);}return this;},getTextDir:function(_8e,_8f){return _8f;},applyTextDir:function(){},defer:function(fcn,_90){var _91=setTimeout(_4a.hitch(this,function(){if(!_91){return;}_91=null;if(!this._destroyed){_4a.hitch(this,fcn)();}}),_90||0);return {remove:function(){if(_91){clearTimeout(_91);_91=null;}return null;}};}});});},"dojox/fx":function(){define("dojox/fx",["./fx/_base"],function(_92){return _92;});},"dojo/Stateful":function(){define("dojo/Stateful",["./_base/declare","./_base/lang","./_base/array"],function(_93,_94,_95){return _93("dojo.Stateful",null,{postscript:function(_96){if(_96){_94.mixin(this,_96);}},get:function(_97){return this[_97];},set:function(_98,_99){if(typeof _98==="object"){for(var x in _98){if(_98.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,_98[x]);}}return this;}var _9a=this[_98];this[_98]=_99;if(this._watchCallbacks){this._watchCallbacks(_98,_9a,_99);}return this;},watch:function(_9b,_9c){var _9d=this._watchCallbacks;if(!_9d){var _9e=this;_9d=this._watchCallbacks=function(_9f,_a0,_a1,_a2){var _a3=function(_a4){if(_a4){_a4=_a4.slice();for(var i=0,l=_a4.length;i=9){_f7.x=0;}if(_f7.y<0||!_ef||_ef>=9){_f7.y=0;}}else{var pb=_e0.getPadBorderExtents(el);_f7.w-=pb.w;_f7.h-=pb.h;_f7.x+=pb.l;_f7.y+=pb.t;var _f9=el.clientWidth,_fa=_f7.w-_f9;if(_f9>0&&_fa>0){if(rtl&&has("rtl-adjust-position-for-verticalScrollBar")){_f7.x+=_fa;}_f7.w=_f9;}_f9=el.clientHeight;_fa=_f7.h-_f9;if(_f9>0&&_fa>0){_f7.h=_f9;}}if(_f8){if(_f7.y<0){_f7.h+=_f7.y;_f7.y=0;}if(_f7.x<0){_f7.w+=_f7.x;_f7.x=0;}if(_f7.y+_f7.h>_f3){_f7.h=_f3-_f7.y;}if(_f7.x+_f7.w>_f2){_f7.w=_f2-_f7.x;}}var l=_f5.x-_f7.x,t=_f5.y-_f7.y,r=l+_f5.w-_f7.w,bot=t+_f5.h-_f7.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_f4||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((_ef==8&&!_f1)||_ef>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_f5.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_f4||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_f5.y-=s;}el=(el!=_f4)&&!_f8&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_ec.scrollIntoView(false);}};return _e8;});},"dijit/_OnDijitClickMixin":function(){define("dijit/_OnDijitClickMixin",["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window"],function(on,_fb,_fc,_fd,has,_fe,win){var _ff=null;if(has("ie")<9){(function(){var _100=function(evt){_ff=evt.srcElement;};win.doc.attachEvent("onkeydown",_100);_fe.addOnWindowUnload(function(){win.doc.detachEvent("onkeydown",_100);});})();}else{win.doc.addEventListener("keydown",function(evt){_ff=evt.target;},true);}var _101=function(node,_102){if(/input|button/i.test(node.nodeName)){return on(node,"click",_102);}else{function _103(e){return (e.keyCode==_fc.ENTER||e.keyCode==_fc.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey;};var _104=[on(node,"keypress",function(e){if(_103(e)){_ff=e.target;e.preventDefault();}}),on(node,"keyup",function(e){if(_103(e)&&e.target==_ff){_ff=null;_102.call(this,e);}}),on(node,"click",function(e){_102.call(this,e);})];return {remove:function(){_fb.forEach(_104,function(h){h.remove();});}};}};return _fd("dijit._OnDijitClickMixin",null,{connect:function(obj,_105,_106){return this.inherited(arguments,[obj,_105=="ondijitclick"?_101:_105,_106]);}});});},"dijit/hccss":function(){define("dijit/hccss",["require","dojo/_base/config","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dojo/_base/sniff","dojo/_base/window"],function(_107,_108,_109,_10a,_10b,_10c,has,win){if(has("ie")||has("mozilla")){_10c(90,function(){var div=_10a.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_108.blankGif||_107.toUrl("dojo/resources/blank.gif"))+"\");"}},win.body());var cs=_10b.getComputedStyle(div);if(cs){var _10d=cs.backgroundImage;var _10e=(cs.borderTopColor==cs.borderRightColor)||(_10d!=null&&(_10d=="none"||_10d=="url(invalid-url:)"));if(_10e){_109.add(win.body(),"dijit_a11y");}if(has("ie")){div.outerHTML="";}else{win.body().removeChild(div);}}});}});},"dojox/fx/_base":function(){define("dojox/fx/_base",["dojo/_base/array","dojo/_base/lang","dojo/_base/fx","dojo/fx","dojo/dom","dojo/dom-style","dojo/dom-geometry","dojo/_base/connect","dojo/_base/html"],function(_10f,lang,_110,_111,dom,_112,_113,_114,_115){var _116=lang.getObject("dojox.fx",true);_116.sizeTo=function(args){var node=args.node=dom.byId(args.node),abs="absolute";var _117=args.method||"chain";if(!args.duration){args.duration=500;}if(_117=="chain"){args.duration=Math.floor(args.duration/2);}var top,_118,left,_119,_11a,_11b=null;var init=(function(n){return function(){var cs=_112.getComputedStyle(n),pos=cs.position,w=cs.width,h=cs.height;top=(pos==abs?n.offsetTop:parseInt(cs.top)||0);left=(pos==abs?n.offsetLeft:parseInt(cs.left)||0);_11a=(w=="auto"?0:parseInt(w));_11b=(h=="auto"?0:parseInt(h));_119=left-Math.floor((args.width-_11a)/2);_118=top-Math.floor((args.height-_11b)/2);if(pos!=abs&&pos!="relative"){var ret=_112.coords(n,true);top=ret.y;left=ret.x;n.style.position=abs;n.style.top=top+"px";n.style.left=left+"px";}};})(node);var _11c=_110.animateProperty(lang.mixin({properties:{height:function(){init();return {end:args.height||0,start:_11b};},top:function(){return {start:top,end:_118};}}},args));var _11d=_110.animateProperty(lang.mixin({properties:{width:function(){return {start:_11a,end:args.width||0};},left:function(){return {start:left,end:_119};}}},args));var anim=_111[(args.method=="combine"?"combine":"chain")]([_11c,_11d]);return anim;};_116.slideBy=function(args){var node=args.node=dom.byId(args.node),top,left;var init=(function(n){return function(){var cs=_112.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=_113.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var _11e=_110.animateProperty(lang.mixin({properties:{top:top+(args.top||0),left:left+(args.left||0)}},args));_114.connect(_11e,"beforeBegin",_11e,init);return _11e;};_116.crossFade=function(args){var _11f=args.nodes[0]=dom.byId(args.nodes[0]),op1=_115.style(_11f,"opacity"),_120=args.nodes[1]=dom.byId(args.nodes[1]),op2=_115.style(_120,"opacity");var _121=_111.combine([_110[(op1==0?"fadeIn":"fadeOut")](lang.mixin({node:_11f},args)),_110[(op1==0?"fadeOut":"fadeIn")](lang.mixin({node:_120},args))]);return _121;};_116.highlight=function(args){var node=args.node=dom.byId(args.node);args.duration=args.duration||400;var _122=args.color||"#ffff99",_123=_115.style(node,"backgroundColor");if(_123=="rgba(0, 0, 0, 0)"){_123="transparent";}var anim=_110.animateProperty(lang.mixin({properties:{backgroundColor:{start:_122,end:_123}}},args));if(_123=="transparent"){_114.connect(anim,"onEnd",anim,function(){node.style.backgroundColor=_123;});}return anim;};_116.wipeTo=function(args){args.node=dom.byId(args.node);var node=args.node,s=node.style;var dir=(args.width?"width":"height"),_124=args[dir],_125={};_125[dir]={start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s[dir]="1px";s.display="";s.visibility="";return 1;}else{var now=_115.style(node,dir);return Math.max(now,1);}},end:_124};var anim=_110.animateProperty(lang.mixin({properties:_125},args));return anim;};return _116;});},"dijit/_Widget":function(){define("dijit/_Widget",["dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","dojo/query","dojo/ready","./registry","./_WidgetBase","./_OnDijitClickMixin","./_FocusMixin","dojo/uacss","./hccss"],function(_126,_127,_128,_129,_12a,lang,_12b,_12c,_12d,_12e,_12f,_130){function _131(){};function _132(_133){return function(obj,_134,_135,_136){if(obj&&typeof _134=="string"&&obj[_134]==_131){return obj.on(_134.substring(2).toLowerCase(),lang.hitch(_135,_136));}return _133.apply(_128,arguments);};};_126.around(_128,"connect",_132);if(_12a.connect){_126.around(_12a,"connect",_132);}var _137=_129("dijit._Widget",[_12e,_12f,_130],{onClick:_131,onDblClick:_131,onKeyDown:_131,onKeyPress:_131,onKeyUp:_131,onMouseDown:_131,onMouseMove:_131,onMouseOut:_131,onMouseOver:_131,onMouseLeave:_131,onMouseEnter:_131,onMouseUp:_131,constructor:function(_138){this._toConnect={};for(var name in _138){if(this[name]===_131){this._toConnect[name.replace(/^on/,"").toLowerCase()]=_138[name];delete _138[name];}}},postCreate:function(){this.inherited(arguments);for(var name in this._toConnect){this.on(name,this._toConnect[name]);}delete this._toConnect;},on:function(type,func){if(this[this._onMap(type)]===_131){return _128.connect(this.domNode,type.toLowerCase(),this,func);}return this.inherited(arguments);},_setFocusedAttr:function(val){this._focused=val;this._set("focused",val);},setAttribute:function(attr,_139){_12a.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_139);},attr:function(name,_13a){if(_127.isDebug){var _13b=arguments.callee._ach||(arguments.callee._ach={}),_13c=(arguments.callee.caller||"unknown caller").toString();if(!_13b[_13c]){_12a.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_13c,"","2.0");_13b[_13c]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_12a.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_12b("[widgetId]",this.containerNode).map(_12d.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(!_12a.isAsync){_12c(0,function(){var _13d=["dijit/_base"];require(_13d);});}return _137;});},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_13e,_13f,_140,lang){lang.extend(_13f,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _140("dijit._FocusMixin",null,{_focusManager:_13e});});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/ready","dojo/_base/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","."],function(_141,_142,dom,_143,_144,_145,lang,on,_146,has,_147,_148,win,_149,a11y,_14a,_14b){var _14c=_142([_147,_145],{curNode:null,activeStack:[],constructor:function(){var _14d=lang.hitch(this,function(node){if(dom.isDescendant(this.curNode,node)){this.set("curNode",null);}if(dom.isDescendant(this.prevNode,node)){this.set("prevNode",null);}});_141.before(_144,"empty",_14d);_141.before(_144,"destroy",_14d);},registerIframe:function(_14e){return this.registerWin(_14e.contentWindow,_14e);},registerWin:function(_14f,_150){var _151=this;var _152=function(evt){_151._justMouseDowned=true;setTimeout(function(){_151._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_151._onTouchNode(_150||evt.target||evt.srcElement,"mouse");};var doc=has("ie")<9?_14f.document.documentElement:_14f.document;if(doc){if(has("ie")<9){_14f.document.body.attachEvent("onmousedown",_152);var _153=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_151._onFocusNode(_150||evt.srcElement);}else{_151._onTouchNode(_150||evt.srcElement);}};doc.attachEvent("onactivate",_153);var _154=function(evt){_151._onBlurNode(_150||evt.srcElement);};doc.attachEvent("ondeactivate",_154);return {remove:function(){_14f.document.detachEvent("onmousedown",_152);doc.detachEvent("onactivate",_153);doc.detachEvent("ondeactivate",_154);doc=null;}};}else{doc.body.addEventListener("mousedown",_152,true);doc.body.addEventListener("touchstart",_152,true);var _155=function(evt){_151._onFocusNode(_150||evt.target);};doc.addEventListener("focus",_155,true);var _156=function(evt){_151._onBlurNode(_150||evt.target);};doc.addEventListener("blur",_156,true);return {remove:function(){doc.body.removeEventListener("mousedown",_152,true);doc.body.removeEventListener("touchstart",_152,true);doc.removeEventListener("focus",_155,true);doc.removeEventListener("blur",_156,true);doc=null;}};}}},_onBlurNode:function(){this.set("prevNode",this.curNode);this.set("curNode",null);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);this.prevNode=null;}),100);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _157=[];try{while(node){var _158=_143.get(node,"dijitPopupParent");if(_158){node=_14a.byId(_158).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_149.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_159=id&&_14a.byId(id);if(_159&&!(by=="mouse"&&_159.get("disabled"))){_157.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_157,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("curNode",node);},_setStack:function(_15a,by){var _15b=this.activeStack;this.set("activeStack",_15a);for(var _15c=0;_15c=_15c;i--){_15d=_14a.byId(_15b[i]);if(_15d){_15d._hasBeenBlurred=true;_15d.set("focused",false);if(_15d._focusManager==this){_15d._onBlur(by);}this.emit("widget-blur",_15d,by);}}for(i=_15c;i<_15a.length;i++){_15d=_14a.byId(_15a[i]);if(_15d){_15d.set("focused",true);if(_15d._focusManager==this){_15d._onFocus(by);}this.emit("widget-focus",_15d,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _15e=new _14c();_146(function(){var _15f=_15e.registerWin(win.doc.parentWindow||win.doc.defaultView);if(has("ie")){_148.addOnWindowUnload(function(){_15f.remove();_15f=null;});}});_14b.focus=function(node){_15e.focus(node);};for(var attr in _15e){if(!/^_/.test(attr)){_14b.focus[attr]=typeof _15e[attr]=="function"?lang.hitch(_15e,attr):_15e[attr];}}_15e.watch(function(attr,_160,_161){_14b.focus[attr]=_161;});return _15e;});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dojo/_base/query":function(){define("dojo/_base/query",["./kernel","../query","./NodeList"],function(dojo){return dojo.query;});},"*noref":1}});define("dojox/_dojox_fx",[],1);require(["dojox/fx","dojox/fx/Shadow","dojox/fx/easing"]);/*
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:{"dojox/gfx/arc":function(){define("dojox/gfx/arc",["./_base","dojo/_base/lang","./matrix"],function(g,_1,m){var _2=2*Math.PI,_3=Math.PI/4,_4=Math.PI/8,_5=_3+_4,_6=_7(_4);function _7(_8){var _9=Math.cos(_8),_a=Math.sin(_8),p2={x:_9+(4/3)*(1-_9),y:_a-(4/3)*_9*(1-_9)/_a};return {s:{x:_9,y:-_a},c1:{x:p2.x,y:-p2.y},c2:p2,e:{x:_9,y:_a}};};var _b=g.arc={unitArcAsBezier:_7,curvePI4:_6,arcAsBezier:function(_c,rx,ry,_d,_e,_f,x,y){_e=Boolean(_e);_f=Boolean(_f);var _10=m._degToRad(_d),rx2=rx*rx,ry2=ry*ry,pa=m.multiplyPoint(m.rotate(-_10),{x:(_c.x-x)/2,y:(_c.y-y)/2}),_11=pa.x*pa.x,_12=pa.y*pa.y,c1=Math.sqrt((rx2*ry2-rx2*_12-ry2*_11)/(rx2*_12+ry2*_11));if(isNaN(c1)){c1=0;}var ca={x:c1*rx*pa.y/ry,y:-c1*ry*pa.x/rx};if(_e==_f){ca={x:-ca.x,y:-ca.y};}var c=m.multiplyPoint([m.translate((_c.x+x)/2,(_c.y+y)/2),m.rotate(_10)],ca);var _13=m.normalize([m.translate(c.x,c.y),m.rotate(_10),m.scale(rx,ry)]);var _14=m.invert(_13),sp=m.multiplyPoint(_14,_c),ep=m.multiplyPoint(_14,x,y),_15=Math.atan2(sp.y,sp.x),_16=Math.atan2(ep.y,ep.x),_17=_15-_16;if(_f){_17=-_17;}if(_17<0){_17+=_2;}else{if(_17>_2){_17-=_2;}}var _18=_4,_19=_6,_1a=_f?_18:-_18,_1b=[];for(var _1c=_17;_1c>0;_1c-=_3){if(_1c<_5){_18=_1c/2;_19=_7(_18);_1a=_f?_18:-_18;_1c=0;}var c2,e,M=m.normalize([_13,m.rotate(_15+_1a)]);if(_f){c1=m.multiplyPoint(M,_19.c1);c2=m.multiplyPoint(M,_19.c2);e=m.multiplyPoint(M,_19.e);}else{c1=m.multiplyPoint(M,_19.c2);c2=m.multiplyPoint(M,_19.c1);e=m.multiplyPoint(M,_19.s);}_1b.push([c1.x,c1.y,c2.x,c2.y,e.x,e.y]);_15+=2*_1a;}return _1b;}};return _b;});},"dojox/gfx":function(){define("dojox/gfx",["dojo/_base/lang","./gfx/_base","./gfx/renderer!"],function(_1d,_1e,_1f){_1e.switchTo(_1f);return _1e;});},"dojox/gfx/gradient":function(){define("dojox/gfx/gradient",["dojo/_base/lang","./matrix","dojo/_base/Color"],function(_20,m,_21){var _22=_20.getObject("dojox.gfx.gradient",true);var C=_21;_22.rescale=function(_23,_24,to){var len=_23.length,_25=(to<_24),_26;if(_25){var tmp=_24;_24=to;to=tmp;}if(!len){return [];}if(to<=_23[0].offset){_26=[{offset:0,color:_23[0].color},{offset:1,color:_23[0].color}];}else{if(_24>=_23[len-1].offset){_26=[{offset:0,color:_23[len-1].color},{offset:1,color:_23[len-1].color}];}else{var _27=to-_24,_28,_29,i;_26=[];if(_24<0){_26.push({offset:0,color:new C(_23[0].color)});}for(i=0;i=_24){break;}}if(i){_29=_23[i-1];_26.push({offset:0,color:_21.blendColors(new C(_29.color),new C(_28.color),(_24-_29.offset)/(_28.offset-_29.offset))});}else{_26.push({offset:0,color:new C(_28.color)});}for(;i=to){break;}_26.push({offset:(_28.offset-_24)/_27,color:new C(_28.color)});}if(i=4)?"auto":"optimizeLegibility";function _42(ns,_43){if(win.doc.createElementNS){return win.doc.createElementNS(ns,_43);}else{return win.doc.createElement(_43);}};function _44(_45){if(svg.useSvgWeb){return win.doc.createTextNode(_45,true);}else{return win.doc.createTextNode(_45);}};function _46(){if(svg.useSvgWeb){return win.doc.createDocumentFragment(true);}else{return win.doc.createDocumentFragment();}};svg.xmlns={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"};svg.getRef=function(_47){if(!_47||_47=="none"){return null;}if(_47.match(/^url\(#.+\)$/)){return dom.byId(_47.slice(5,-1));}if(_47.match(/^#dojoUnique\d+$/)){return dom.byId(_47.slice(1));}return null;};svg.dasharray={solid:"none",shortdash:[4,1],shortdot:[1,1],shortdashdot:[4,1,1,1],shortdashdotdot:[4,1,1,1,1,1],dot:[1,3],dash:[4,3],longdash:[8,3],dashdot:[4,3,1,3],longdashdot:[8,3,1,3],longdashdotdot:[8,3,1,3,1,3]};_3b("dojox.gfx.svg.Shape",gs.Shape,{setFill:function(_48){if(!_48){this.fillStyle=null;this.rawNode.setAttribute("fill","none");this.rawNode.setAttribute("fill-opacity",0);return this;}var f;var _49=function(x){this.setAttribute(x,f[x].toFixed(8));};if(typeof (_48)=="object"&&"type" in _48){switch(_48.type){case "linear":f=g.makeParameters(g.defaultLinearGradient,_48);var _4a=this._setFillObject(f,"linearGradient");arr.forEach(["x1","y1","x2","y2"],_49,_4a);break;case "radial":f=g.makeParameters(g.defaultRadialGradient,_48);var _4b=this._setFillObject(f,"radialGradient");arr.forEach(["cx","cy","r"],_49,_4b);break;case "pattern":f=g.makeParameters(g.defaultPattern,_48);var _4c=this._setFillObject(f,"pattern");arr.forEach(["x","y","width","height"],_49,_4c);break;}this.fillStyle=f;return this;}f=g.normalizeColor(_48);this.fillStyle=f;this.rawNode.setAttribute("fill",f.toCss());this.rawNode.setAttribute("fill-opacity",f.a);this.rawNode.setAttribute("fill-rule","evenodd");return this;},setStroke:function(_4d){var rn=this.rawNode;if(!_4d){this.strokeStyle=null;rn.setAttribute("stroke","none");rn.setAttribute("stroke-opacity",0);return this;}if(typeof _4d=="string"||_3a.isArray(_4d)||_4d instanceof _3d){_4d={color:_4d};}var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_4d);s.color=g.normalizeColor(s.color);if(s){rn.setAttribute("stroke",s.color.toCss());rn.setAttribute("stroke-opacity",s.color.a);rn.setAttribute("stroke-width",s.width);rn.setAttribute("stroke-linecap",s.cap);if(typeof s.join=="number"){rn.setAttribute("stroke-linejoin","miter");rn.setAttribute("stroke-miterlimit",s.join);}else{rn.setAttribute("stroke-linejoin",s.join);}var da=s.style.toLowerCase();if(da in svg.dasharray){da=svg.dasharray[da];}if(da instanceof Array){da=_3a._toArray(da);for(var i=0;ix){this.bbox.l=x;}if(this.bbox.ry){this.bbox.t=y;}if(this.bbox.b=_98){_99={action:_96,args:_97.slice(0,_97.length-_97.length%_98)};this.segments.push(_99);this._updateWithSegment(_99);}}else{_99={action:_96,args:[]};this.segments.push(_99);this._updateWithSegment(_99);}}},_collectArgs:function(_9a,_9b){for(var i=0;i<_9b.length;++i){var t=_9b[i];if(typeof t=="boolean"){_9a.push(t?1:0);}else{if(typeof t=="number"){_9a.push(t);}else{if(t instanceof Array){this._collectArgs(_9a,t);}else{if("x" in t&&"y" in t){_9a.push(t.x,t.y);}}}}}},moveTo:function(){this._confirmSegmented();var _9c=[];this._collectArgs(_9c,arguments);this._pushSegment(this.absolute?"M":"m",_9c);return this;},lineTo:function(){this._confirmSegmented();var _9d=[];this._collectArgs(_9d,arguments);this._pushSegment(this.absolute?"L":"l",_9d);return this;},hLineTo:function(){this._confirmSegmented();var _9e=[];this._collectArgs(_9e,arguments);this._pushSegment(this.absolute?"H":"h",_9e);return this;},vLineTo:function(){this._confirmSegmented();var _9f=[];this._collectArgs(_9f,arguments);this._pushSegment(this.absolute?"V":"v",_9f);return this;},curveTo:function(){this._confirmSegmented();var _a0=[];this._collectArgs(_a0,arguments);this._pushSegment(this.absolute?"C":"c",_a0);return this;},smoothCurveTo:function(){this._confirmSegmented();var _a1=[];this._collectArgs(_a1,arguments);this._pushSegment(this.absolute?"S":"s",_a1);return this;},qCurveTo:function(){this._confirmSegmented();var _a2=[];this._collectArgs(_a2,arguments);this._pushSegment(this.absolute?"Q":"q",_a2);return this;},qSmoothCurveTo:function(){this._confirmSegmented();var _a3=[];this._collectArgs(_a3,arguments);this._pushSegment(this.absolute?"T":"t",_a3);return this;},arcTo:function(){this._confirmSegmented();var _a4=[];this._collectArgs(_a4,arguments);this._pushSegment(this.absolute?"A":"a",_a4);return this;},closePath:function(){this._confirmSegmented();this._pushSegment("Z",[]);return this;},_confirmSegmented:function(){if(!this.segmented){var _a5=this.shape.path;this.shape.path=[];this._setPath(_a5);this.shape.path=this.shape.path.join("");this.segmented=true;}},_setPath:function(_a6){var p=_89.isArray(_a6)?_a6:_a6.match(g.pathSvgRegExp);this.segments=[];this.absolute=true;this.bbox={};this.last={};if(!p){return;}var _a7="",_a8=[],l=p.length;for(var i=0;i0){var _b2=m.normalize(arg[0]);for(var i=1;i1){return new m.Matrix2D({dx:a,dy:b});}return new m.Matrix2D({dx:a.x,dy:a.y});},scale:function(a,b){if(arguments.length>1){return new m.Matrix2D({xx:a,yy:b});}if(typeof a=="number"){return new m.Matrix2D({xx:a,yy:a});}return new m.Matrix2D({xx:a.x,yy:a.y});},rotate:function(_b3){var c=Math.cos(_b3);var s=Math.sin(_b3);return new m.Matrix2D({xx:c,xy:-s,yx:s,yy:c});},rotateg:function(_b4){return m.rotate(m._degToRad(_b4));},skewX:function(_b5){return new m.Matrix2D({xy:Math.tan(_b5)});},skewXg:function(_b6){return m.skewX(m._degToRad(_b6));},skewY:function(_b7){return new m.Matrix2D({yx:Math.tan(_b7)});},skewYg:function(_b8){return m.skewY(m._degToRad(_b8));},reflect:function(a,b){if(arguments.length==1){b=a.y;a=a.x;}var a2=a*a,b2=b*b,n2=a2+b2,xy=2*a*b/n2;return new m.Matrix2D({xx:2*a2/n2-1,xy:xy,yx:xy,yy:2*b2/n2-1});},project:function(a,b){if(arguments.length==1){b=a.y;a=a.x;}var a2=a*a,b2=b*b,n2=a2+b2,xy=a*b/n2;return new m.Matrix2D({xx:a2/n2,xy:xy,yx:xy,yy:b2/n2});},normalize:function(_b9){return (_b9 instanceof m.Matrix2D)?_b9:new m.Matrix2D(_b9);},clone:function(_ba){var obj=new m.Matrix2D();for(var i in _ba){if(typeof (_ba[i])=="number"&&typeof (obj[i])=="number"&&obj[i]!=_ba[i]){obj[i]=_ba[i];}}return obj;},invert:function(_bb){var M=m.normalize(_bb),D=M.xx*M.yy-M.xy*M.yx;M=new m.Matrix2D({xx:M.yy/D,xy:-M.xy/D,yx:-M.yx/D,yy:M.xx/D,dx:(M.xy*M.dy-M.yy*M.dx)/D,dy:(M.yx*M.dx-M.xx*M.dy)/D});return M;},_multiplyPoint:function(_bc,x,y){return {x:_bc.xx*x+_bc.xy*y+_bc.dx,y:_bc.yx*x+_bc.yy*y+_bc.dy};},multiplyPoint:function(_bd,a,b){var M=m.normalize(_bd);if(typeof a=="number"&&typeof b=="number"){return m._multiplyPoint(M,a,b);}return m._multiplyPoint(M,a.x,a.y);},multiply:function(_be){var M=m.normalize(_be);for(var i=1;i2){return m._sandwich(m.rotate(_c0),a,b);}return m._sandwich(m.rotate(_c0),a.x,a.y);},rotategAt:function(_c1,a,b){if(arguments.length>2){return m._sandwich(m.rotateg(_c1),a,b);}return m._sandwich(m.rotateg(_c1),a.x,a.y);},skewXAt:function(_c2,a,b){if(arguments.length>2){return m._sandwich(m.skewX(_c2),a,b);}return m._sandwich(m.skewX(_c2),a.x,a.y);},skewXgAt:function(_c3,a,b){if(arguments.length>2){return m._sandwich(m.skewXg(_c3),a,b);}return m._sandwich(m.skewXg(_c3),a.x,a.y);},skewYAt:function(_c4,a,b){if(arguments.length>2){return m._sandwich(m.skewY(_c4),a,b);}return m._sandwich(m.skewY(_c4),a.x,a.y);},skewYgAt:function(_c5,a,b){if(arguments.length>2){return m._sandwich(m.skewYg(_c5),a,b);}return m._sandwich(m.skewYg(_c5),a.x,a.y);}});g.Matrix2D=m.Matrix2D;return m;});},"dojox/gfx/_base":function(){define("dojox/gfx/_base",["dojo/_base/lang","dojo/_base/html","dojo/_base/Color","dojo/_base/sniff","dojo/_base/window","dojo/_base/array","dojo/dom","dojo/dom-construct","dojo/dom-geometry"],function(_c6,_c7,_c8,has,win,arr,dom,_c9,_ca){var g=_c6.getObject("dojox.gfx",true),b=g._base={};g._hasClass=function(_cb,_cc){var cls=_cb.getAttribute("className");return cls&&(" "+cls+" ").indexOf(" "+_cc+" ")>=0;};g._addClass=function(_cd,_ce){var cls=_cd.getAttribute("className")||"";if(!cls||(" "+cls+" ").indexOf(" "+_ce+" ")<0){_cd.setAttribute("className",cls+(cls?" ":"")+_ce);}};g._removeClass=function(_cf,_d0){var cls=_cf.getAttribute("className");if(cls){_cf.setAttribute("className",cls.replace(new RegExp("(^|\\s+)"+_d0+"(\\s+|$)"),"$1$2"));}};b._getFontMeasurements=function(){var _d1={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0};var p;if(has("ie")){win.doc.documentElement.style.fontSize="100%";}var div=_c9.create("div",{style:{position:"absolute",left:"0",top:"-100px",width:"30px",height:"1000em",borderWidth:"0",margin:"0",padding:"0",outline:"none",lineHeight:"1",overflow:"hidden"}},win.body());for(p in _d1){div.style.fontSize=p;_d1[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}win.body().removeChild(div);return _d1;};var _d2=null;b._getCachedFontMeasurements=function(_d3){if(_d3||!_d2){_d2=b._getFontMeasurements();}return _d2;};var _d4=null,_d5={};b._getTextBox=function(_d6,_d7,_d8){var m,s,al=arguments.length;var i;if(!_d4){_d4=_c9.create("div",{style:{position:"absolute",top:"-10000px",left:"0"}},win.body());}m=_d4;m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(al>1&&_d7){for(i in _d7){if(i in _d5){continue;}s[i]=_d7[i];}}if(al>2&&_d8){m.className=_d8;}m.innerHTML=_d6;if(m["getBoundingClientRect"]){var bcr=m.getBoundingClientRect();return {l:bcr.left,t:bcr.top,w:bcr.width||(bcr.right-bcr.left),h:bcr.height||(bcr.bottom-bcr.top)};}else{return _ca.getMarginBox(m);}};var _d9=0;b._getUniqueId=function(){var id;do{id=dojo._scopeName+"xUnique"+(++_d9);}while(dom.byId(id));return id;};_c6.mixin(g,{defaultPath:{type:"path",path:""},defaultPolyline:{type:"polyline",points:[]},defaultRect:{type:"rect",x:0,y:0,width:100,height:100,r:0},defaultEllipse:{type:"ellipse",cx:0,cy:0,rx:200,ry:100},defaultCircle:{type:"circle",cx:0,cy:0,r:100},defaultLine:{type:"line",x1:0,y1:0,x2:100,y2:100},defaultImage:{type:"image",x:0,y:0,width:0,height:0,src:""},defaultText:{type:"text",x:0,y:0,text:"",align:"start",decoration:"none",rotated:false,kerning:true},defaultTextPath:{type:"textpath",text:"",align:"start",decoration:"none",rotated:false,kerning:true},defaultStroke:{type:"stroke",color:"black",style:"solid",width:1,cap:"butt",join:4},defaultLinearGradient:{type:"linear",x1:0,y1:0,x2:100,y2:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultRadialGradient:{type:"radial",cx:0,cy:0,r:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultPattern:{type:"pattern",x:0,y:0,width:0,height:0,src:""},defaultFont:{type:"font",style:"normal",variant:"normal",weight:"normal",size:"10pt",family:"serif"},getDefault:(function(){var _da={};return function(_db){var t=_da[_db];if(t){return new t();}t=_da[_db]=new Function();t.prototype=g["default"+_db];return new t();};})(),normalizeColor:function(_dc){return (_dc instanceof _c8)?_dc:new _c8(_dc);},normalizeParameters:function(_dd,_de){var x;if(_de){var _df={};for(x in _dd){if(x in _de&&!(x in _df)){_dd[x]=_de[x];}}}return _dd;},makeParameters:function(_e0,_e1){var i=null;if(!_e1){return _c6.delegate(_e0);}var _e2={};for(i in _e0){if(!(i in _e2)){_e2[i]=_c6.clone((i in _e1)?_e1[i]:_e0[i]);}}return _e2;},formatNumber:function(x,_e3){var val=x.toString();if(val.indexOf("e")>=0){val=x.toFixed(4);}else{var _e4=val.indexOf(".");if(_e4>=0&&val.length-_e4>5){val=x.toFixed(4);}}if(x<0){return val;}return _e3?" "+val:val;},makeFontString:function(_e5){return _e5.style+" "+_e5.variant+" "+_e5.weight+" "+_e5.size+" "+_e5.family;},splitFontString:function(str){var _e6=g.getDefault("Font");var t=str.split(/\s+/);do{if(t.length<5){break;}_e6.style=t[0];_e6.variant=t[1];_e6.weight=t[2];var i=t[3].indexOf("/");_e6.size=i<0?t[3]:t[3].substring(0,i);var j=4;if(i<0){if(t[4]=="/"){j=6;}else{if(t[4].charAt(0)=="/"){j=5;}}}if(j2){var _e7=g.px_in_pt();var val=parseFloat(len);switch(len.slice(-2)){case "px":return val;case "pt":return val*_e7;case "in":return val*72*_e7;case "pc":return val*12*_e7;case "mm":return val*g.mm_in_pt*_e7;case "cm":return val*g.cm_in_pt*_e7;}}return parseFloat(len);},pathVmlRegExp:/([A-Za-z]+)|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,pathSvgRegExp:/([A-Za-z])|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,equalSources:function(a,b){return a&&b&&a===b;},switchTo:function(_e8){var ns=typeof _e8=="string"?g[_e8]:_e8;if(ns){arr.forEach(["Group","Rect","Ellipse","Circle","Line","Polyline","Image","Text","Path","TextPath","Surface","createSurface","fixTarget"],function(_e9){g[_e9]=ns[_e9];});}}});return g;});},"dojox/gfx/shape":function(){define("dojox/gfx/shape",["./_base","dojo/_base/lang","dojo/_base/declare","dojo/_base/window","dojo/_base/sniff","dojo/_base/connect","dojo/_base/array","dojo/dom-construct","dojo/_base/Color","./matrix"],function(g,_ea,_eb,win,has,_ec,arr,_ed,_ee,_ef){var _f0=g.shape={};var _f1={};var _f2={};var _f3=0,_f4=has("ie")<9;function _f5(_f6){var _f7={};for(var key in _f6){if(_f6.hasOwnProperty(key)){_f7[key]=_f6[key];}}return _f7;};_f0.register=function(_f8){var t=_f8.declaredClass.split(".").pop();var i=t in _f1?++_f1[t]:((_f1[t]=0));var uid=t+i;_f2[uid]=_f8;return uid;};_f0.byId=function(id){return _f2[id];};_f0.dispose=function(_f9){delete _f2[_f9.getUID()];++_f3;if(_f4&&_f3>10000){_f2=_f5(_f2);_f3=0;}};_eb("dojox.gfx.shape.Shape",null,{constructor:function(){this.rawNode=null;this.shape=null;this.matrix=null;this.fillStyle=null;this.strokeStyle=null;this.bbox=null;this.parent=null;this.parentMatrix=null;var uid=_f0.register(this);this.getUID=function(){return uid;};},getNode:function(){return this.rawNode;},getShape:function(){return this.shape;},getTransform:function(){return this.matrix;},getFill:function(){return this.fillStyle;},getStroke:function(){return this.strokeStyle;},getParent:function(){return this.parent;},getBoundingBox:function(){return this.bbox;},getTransformedBoundingBox:function(){var b=this.getBoundingBox();if(!b){return null;}var m=this._getRealMatrix(),gm=_ef;return [gm.multiplyPoint(m,b.x,b.y),gm.multiplyPoint(m,b.x+b.width,b.y),gm.multiplyPoint(m,b.x+b.width,b.y+b.height),gm.multiplyPoint(m,b.x,b.y+b.height)];},getEventSource:function(){return this.rawNode;},setShape:function(_fa){this.shape=g.makeParameters(this.shape,_fa);this.bbox=null;return this;},setFill:function(_fb){if(!_fb){this.fillStyle=null;return this;}var f=null;if(typeof (_fb)=="object"&&"type" in _fb){switch(_fb.type){case "linear":f=g.makeParameters(g.defaultLinearGradient,_fb);break;case "radial":f=g.makeParameters(g.defaultRadialGradient,_fb);break;case "pattern":f=g.makeParameters(g.defaultPattern,_fb);break;}}else{f=g.normalizeColor(_fb);}this.fillStyle=f;return this;},setStroke:function(_fc){if(!_fc){this.strokeStyle=null;return this;}if(typeof _fc=="string"||_ea.isArray(_fc)||_fc instanceof _ee){_fc={color:_fc};}var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_fc);s.color=g.normalizeColor(s.color);return this;},setTransform:function(_fd){this.matrix=_ef.clone(_fd?_ef.normalize(_fd):_ef.identity);return this._applyTransform();},_applyTransform:function(){return this;},moveToFront:function(){var p=this.getParent();if(p){p._moveChildToFront(this);this._moveToFront();}return this;},moveToBack:function(){var p=this.getParent();if(p){p._moveChildToBack(this);this._moveToBack();}return this;},_moveToFront:function(){},_moveToBack:function(){},applyRightTransform:function(_fe){return _fe?this.setTransform([this.matrix,_fe]):this;},applyLeftTransform:function(_ff){return _ff?this.setTransform([_ff,this.matrix]):this;},applyTransform:function(_100){return _100?this.setTransform([this.matrix,_100]):this;},removeShape:function(_101){if(this.parent){this.parent.remove(this,_101);}return this;},_setParent:function(_102,_103){this.parent=_102;return this._updateParentMatrix(_103);},_updateParentMatrix:function(_104){this.parentMatrix=_104?_ef.clone(_104):null;return this._applyTransform();},_getRealMatrix:function(){var m=this.matrix;var p=this.parent;while(p){if(p.matrix){m=_ef.multiply(p.matrix,m);}p=p.parent;}return m;}});_f0._eventsProcessing={connect:function(name,_105,_106){return _ec.connect(this.getEventSource(),name,_f0.fixCallback(this,g.fixTarget,_105,_106));},disconnect:function(_107){_ec.disconnect(_107);}};_f0.fixCallback=function(_108,_109,_10a,_10b){if(!_10b){_10b=_10a;_10a=null;}if(_ea.isString(_10b)){_10a=_10a||win.global;if(!_10a[_10b]){throw (["dojox.gfx.shape.fixCallback: scope[\"",_10b,"\"] is null (scope=\"",_10a,"\")"].join(""));}return function(e){return _109(e,_108)?_10a[_10b].apply(_10a,arguments||[]):undefined;};}return !_10a?function(e){return _109(e,_108)?_10b.apply(_10a,arguments):undefined;}:function(e){return _109(e,_108)?_10b.apply(_10a,arguments||[]):undefined;};};_ea.extend(_f0.Shape,_f0._eventsProcessing);_f0.Container={_init:function(){this.children=[];},openBatch:function(){},closeBatch:function(){},add:function(_10c){var _10d=_10c.getParent();if(_10d){_10d.remove(_10c,true);}this.children.push(_10c);return _10c._setParent(this,this._getRealMatrix());},remove:function(_10e,_10f){for(var i=0;it.x){bbox.l=t.x;}if(bbox.rt.y){bbox.t=t.y;}if(bbox.b";var _132=("adj" in _131.firstChild);_131.innerHTML="";return _132;});return {load:function(id,_133,load){if(_12e&&id!="force"){load(_12e);return;}var _134=_12d.forceGfxRenderer,_135=!_134&&(lang.isString(_12d.gfxRenderer)?_12d.gfxRenderer:"svg,vml,canvas,silverlight").split(","),_136,_137;while(!_134&&_135.length){switch(_135.shift()){case "svg":if("SVGAngle" in win.global){_134="svg";}break;case "vml":if(has("vml")){_134="vml";}break;case "silverlight":try{if(has("ie")){_136=new ActiveXObject("AgControl.AgControl");if(_136&&_136.IsVersionSupported("1.0")){_137=true;}}else{if(navigator.plugins["Silverlight Plug-In"]){_137=true;}}}catch(e){_137=false;}finally{_136=null;}if(_137){_134="silverlight";}break;case "canvas":if(win.global.CanvasRenderingContext2D){_134="canvas";}break;}}if(_134==="canvas"&&_12d.canvasEvents!==false){_134="canvasWithEvents";}if(_12d.isDebug){}function _138(){_133(["dojox/gfx/"+_134],function(_139){g.renderer=_134;_12e=_139;load(_139);});};if(_134=="svg"&&typeof window.svgweb!="undefined"){window.svgweb.addOnLoad(_138);}else{_138();}}};});},"dojox/gfx/vml":function(){define("dojox/gfx/vml",["dojo/_base/lang","dojo/_base/declare","dojo/_base/array","dojo/_base/Color","dojo/_base/sniff","dojo/_base/config","dojo/dom","dojo/dom-geometry","dojo/_base/window","./_base","./shape","./path","./arc","./gradient","./matrix"],function(lang,_13a,arr,_13b,has,_13c,dom,_13d,win,g,gs,_13e,_13f,_140,m){var vml=g.vml={};vml.xmlns="urn:schemas-microsoft-com:vml";document.namespaces.add("v",vml.xmlns);var _141=["*","group","roundrect","oval","shape","rect","imagedata","path","textpath","text"],i=0,l=1,s=document.createStyleSheet();if(has("ie")>=8){i=1;l=_141.length;}for(;i0){a.push({offset:1,color:g.normalizeColor(f.colors[0].color)});}arr.forEach(f.colors,function(v,i){a.push({offset:1-v.offset*c,color:g.normalizeColor(v.color)});});i=a.length-1;while(i>=0&&a[i].offset<0){--i;}if(i2){a.pop();}}i=a.length-1,s=[];if(a[i].offset>0){s.push("0 "+a[i].color.toHex());}for(;i>=0;--i){s.push(a[i].offset.toFixed(5)+" "+a[i].color.toHex());}fo=this.rawNode.fill;fo.colors.value=s.join(";");fo.method="sigma";fo.type="gradientradial";if(isNaN(w)||isNaN(h)||isNaN(l)||isNaN(t)){fo.focusposition="0.5 0.5";}else{fo.focusposition=((f.cx-l)/w).toFixed(5)+" "+((f.cy-t)/h).toFixed(5);}fo.focussize="0 0";fo.on=true;break;case "pattern":f=g.makeParameters(g.defaultPattern,fill);this.fillStyle=f;fo=this.rawNode.fill;fo.type="tile";fo.src=f.src;if(f.width&&f.height){fo.size.x=g.px2pt(f.width);fo.size.y=g.px2pt(f.height);}fo.alignShape="f";fo.position.x=0;fo.position.y=0;fo.origin.x=f.width?f.x/f.width:0;fo.origin.y=f.height?f.y/f.height:0;fo.on=true;break;}this.rawNode.fill.opacity=1;return this;}this.fillStyle=g.normalizeColor(fill);fo=this.rawNode.fill;if(!fo){fo=this.rawNode.ownerDocument.createElement("v:fill");}fo.method="any";fo.type="solid";fo.opacity=this.fillStyle.a;var _144=this.rawNode.filters["DXImageTransform.Microsoft.Alpha"];if(_144){_144.opacity=Math.round(this.fillStyle.a*100);}this.rawNode.fillcolor=this.fillStyle.toHex();this.rawNode.filled=true;return this;},setStroke:function(_145){if(!_145){this.strokeStyle=null;this.rawNode.stroked="f";return this;}if(typeof _145=="string"||lang.isArray(_145)||_145 instanceof _13b){_145={color:_145};}var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_145);s.color=g.normalizeColor(s.color);var rn=this.rawNode;rn.stroked=true;rn.strokecolor=s.color.toCss();rn.strokeweight=s.width+"px";if(rn.stroke){rn.stroke.opacity=s.color.a;rn.stroke.endcap=this._translate(this._capMap,s.cap);if(typeof s.join=="number"){rn.stroke.joinstyle="miter";rn.stroke.miterlimit=s.join;}else{rn.stroke.joinstyle=s.join;}rn.stroke.dashstyle=s.style=="none"?"Solid":s.style;}return this;},_capMap:{butt:"flat"},_capMapReversed:{flat:"butt"},_translate:function(dict,_146){return (_146 in dict)?dict[_146]:_146;},_applyTransform:function(){var _147=this._getRealMatrix();if(_147){var skew=this.rawNode.skew;if(typeof skew=="undefined"){for(var i=0;i7){var node=this.rawNode.ownerDocument.createElement("v:roundrect");node.arcsize=r;node.style.display="inline-block";this.rawNode=node;this.rawNode.__gfxObject__=this.getUID();}else{this.rawNode.arcsize=r;}if(_152){if(_153){_152.insertBefore(this.rawNode,_153);}else{_152.appendChild(this.rawNode);}}var _154=this.rawNode.style;_154.left=_151.x.toFixed();_154.top=_151.y.toFixed();_154.width=(typeof _151.width=="string"&&_151.width.indexOf("%")>=0)?_151.width:Math.max(_151.width.toFixed(),0);_154.height=(typeof _151.height=="string"&&_151.height.indexOf("%")>=0)?_151.height:Math.max(_151.height.toFixed(),0);return this.setTransform(this.matrix).setFill(this.fillStyle).setStroke(this.strokeStyle);}});vml.Rect.nodeType="roundrect";_13a("dojox.gfx.vml.Ellipse",[vml.Shape,gs.Ellipse],{setShape:function(_155){var _156=this.shape=g.makeParameters(this.shape,_155);this.bbox=null;var _157=this.rawNode.style;_157.left=(_156.cx-_156.rx).toFixed();_157.top=(_156.cy-_156.ry).toFixed();_157.width=(_156.rx*2).toFixed();_157.height=(_156.ry*2).toFixed();return this.setTransform(this.matrix);}});vml.Ellipse.nodeType="oval";_13a("dojox.gfx.vml.Circle",[vml.Shape,gs.Circle],{setShape:function(_158){var _159=this.shape=g.makeParameters(this.shape,_158);this.bbox=null;var _15a=this.rawNode.style;_15a.left=(_159.cx-_159.r).toFixed();_15a.top=(_159.cy-_159.r).toFixed();_15a.width=(_159.r*2).toFixed();_15a.height=(_159.r*2).toFixed();return this;}});vml.Circle.nodeType="oval";_13a("dojox.gfx.vml.Line",[vml.Shape,gs.Line],{constructor:function(_15b){if(_15b){_15b.setAttribute("dojoGfxType","line");}},setShape:function(_15c){var _15d=this.shape=g.makeParameters(this.shape,_15c);this.bbox=null;this.rawNode.path.v="m"+_15d.x1.toFixed()+" "+_15d.y1.toFixed()+"l"+_15d.x2.toFixed()+" "+_15d.y2.toFixed()+"e";return this.setTransform(this.matrix);}});vml.Line.nodeType="shape";_13a("dojox.gfx.vml.Polyline",[vml.Shape,gs.Polyline],{constructor:function(_15e){if(_15e){_15e.setAttribute("dojoGfxType","polyline");}},setShape:function(_15f,_160){if(_15f&&_15f instanceof Array){this.shape=g.makeParameters(this.shape,{points:_15f});if(_160&&this.shape.points.length){this.shape.points.push(this.shape.points[0]);}}else{this.shape=g.makeParameters(this.shape,_15f);}this.bbox=null;this._normalizePoints();var attr=[],p=this.shape.points;if(p.length>0){attr.push("m");attr.push(p[0].x.toFixed(),p[0].y.toFixed());if(p.length>1){attr.push("l");for(var i=1;i0&&_163.yy>0){s.filter="";s.width=Math.floor(_163.xx*_165.width);s.height=Math.floor(_163.yy*_165.height);s.left=Math.floor(_163.dx);s.top=Math.floor(_163.dy);}else{var ps=_164.parentNode.style;s.left="0px";s.top="0px";s.width=ps.width;s.height=ps.height;_163=m.multiply(_163,{xx:_165.width/parseInt(s.width),yy:_165.height/parseInt(s.height)});var f=_164.filters["DXImageTransform.Microsoft.Matrix"];if(f){f.M11=_163.xx;f.M12=_163.xy;f.M21=_163.yx;f.M22=_163.yy;f.Dx=_163.dx;f.Dy=_163.dy;}else{s.filter="progid:DXImageTransform.Microsoft.Matrix(M11="+_163.xx+", M12="+_163.xy+", M21="+_163.yx+", M22="+_163.yy+", Dx="+_163.dx+", Dy="+_163.dy+")";}}return this;},_setDimensions:function(_166,_167){var r=this.rawNode,f=r.filters["DXImageTransform.Microsoft.Matrix"];if(f){var s=r.style;s.width=_166;s.height=_167;return this._applyTransform();}return this;}});vml.Image.nodeType="rect";_13a("dojox.gfx.vml.Text",[vml.Shape,gs.Text],{constructor:function(_168){if(_168){_168.setAttribute("dojoGfxType","text");}this.fontStyle=null;},_alignment:{start:"left",middle:"center",end:"right"},setShape:function(_169){this.shape=g.makeParameters(this.shape,_169);this.bbox=null;var r=this.rawNode,s=this.shape,x=s.x,y=s.y.toFixed(),path;switch(s.align){case "middle":x-=5;break;case "end":x-=10;break;}path="m"+x.toFixed()+","+y+"l"+(x+10).toFixed()+","+y+"e";var p=null,t=null,c=r.childNodes;for(var i=0;i1){return;}var path=this[this.renderers[_16f.action]](_16f,last);if(typeof this.vmlPath=="string"){this.vmlPath+=path.join("");this.rawNode.path.v=this.vmlPath+" r0,0 e";}else{Array.prototype.push.apply(this.vmlPath,path);}},setShape:function(_170){this.vmlPath=[];this.lastControl.type="";this.inherited(arguments);this.vmlPath=this.vmlPath.join("");this.rawNode.path.v=this.vmlPath+" r0,0 e";return this;},_pathVmlToSvgMap:{m:"M",l:"L",t:"m",r:"l",c:"C",v:"c",qb:"Q",x:"z",e:""},renderers:{M:"_moveToA",m:"_moveToR",L:"_lineToA",l:"_lineToR",H:"_hLineToA",h:"_hLineToR",V:"_vLineToA",v:"_vLineToR",C:"_curveToA",c:"_curveToR",S:"_smoothCurveToA",s:"_smoothCurveToR",Q:"_qCurveToA",q:"_qCurveToR",T:"_qSmoothCurveToA",t:"_qSmoothCurveToR",A:"_arcTo",a:"_arcTo",Z:"_closePath",z:"_closePath"},_addArgs:function(path,_171,from,upto){var n=_171 instanceof Array?_171:_171.args;for(var i=from;i2){p.push(" l");this._addArgs(p,n,2,l);}this.lastControl.type="";return p;},_moveToR:function(_177,last){return this._moveToA(this._adjustRelCrd(last,_177));},_lineToA:function(_178){var p=[" l"],n=_178 instanceof Array?_178:_178.args;this._addArgs(p,n,0,n.length);this.lastControl.type="";return p;},_lineToR:function(_179,last){return this._lineToA(this._adjustRelCrd(last,_179));},_hLineToA:function(_17a,last){var p=[" l"],y=" "+last.y.toFixed(),n=_17a instanceof Array?_17a:_17a.args,l=n.length;for(var i=0;i7){rs.display="inline-block";}s._parent=p;s._nodes.push(c);p.style.width=_18f;p.style.height=_190;cs.position="absolute";cs.width=_18f;cs.height=_190;cs.clip="rect(0px "+_18f+" "+_190+" 0px)";rs.position="absolute";rs.width=_18f;rs.height=_190;r.coordsize=(_18f==="100%"?_18f:parseFloat(_18f))+" "+(_190==="100%"?_190:parseFloat(_190));r.coordorigin="0 0";var b=s.bgNode=r.ownerDocument.createElement("v:rect"),bs=b.style;bs.left=bs.top=0;bs.width=rs.width;bs.height=rs.height;b.filled=b.stroked="f";r.appendChild(b);c.appendChild(r);p.appendChild(c);s.width=g.normalizedLength(_18f);s.height=g.normalizedLength(_190);return s;};function _191(_192,f,o){o=o||win.global;f.call(o,_192);if(_192 instanceof g.Surface||_192 instanceof g.Group){arr.forEach(_192.children,function(_193){_191(_193,f,o);});}};var _194=function(_195){if(this!=_195.getParent()){var _196=_195.getParent();if(_196){_196.remove(_195);}this.rawNode.appendChild(_195.rawNode);C.add.apply(this,arguments);_191(this,function(s){if(typeof (s.getFont)=="function"){s.setShape(s.getShape());s.setFont(s.getFont());}if(typeof (s.setFill)=="function"){s.setFill(s.getFill());s.setStroke(s.getStroke());}});}return this;};var _197=function(_198){if(this!=_198.getParent()){this.rawNode.appendChild(_198.rawNode);if(!_198.getParent()){_198.setFill(_198.getFill());_198.setStroke(_198.getStroke());}C.add.apply(this,arguments);}return this;};var C=gs.Container,_199={add:_13c.fixVmlAdd===true?_194:_197,remove:function(_19a,_19b){if(this==_19a.getParent()){if(this.rawNode==_19a.rawNode.parentNode){this.rawNode.removeChild(_19a.rawNode);}C.remove.apply(this,arguments);}return this;},clear:function(){var r=this.rawNode;while(r.firstChild!=r.lastChild){if(r.firstChild!=this.bgNode){r.removeChild(r.firstChild);}if(r.lastChild!=this.bgNode){r.removeChild(r.lastChild);}}return C.clear.apply(this,arguments);},_moveChildToFront:C._moveChildToFront,_moveChildToBack:C._moveChildToBack};var _19c={createGroup:function(){var node=this.createObject(vml.Group,null);var r=node.rawNode.ownerDocument.createElement("v:rect");r.style.left=r.style.top=0;r.style.width=node.rawNode.style.width;r.style.height=node.rawNode.style.height;r.filled=r.stroked="f";node.rawNode.appendChild(r);node.bgNode=r;return node;},createImage:function(_19d){if(!this.rawNode){return null;}var _19e=new vml.Image(),doc=this.rawNode.ownerDocument,node=doc.createElement("v:rect");node.stroked="f";node.style.width=this.rawNode.style.width;node.style.height=this.rawNode.style.height;var img=doc.createElement("v:imagedata");node.appendChild(img);_19e.setRawNode(node);this.rawNode.appendChild(node);_19e.setShape(_19d);this.add(_19e);return _19e;},createRect:function(rect){if(!this.rawNode){return null;}var _19f=new vml.Rect,node=this.rawNode.ownerDocument.createElement("v:roundrect");if(has("ie")>7){node.style.display="inline-block";}_19f.setRawNode(node);this.rawNode.appendChild(node);_19f.setShape(rect);this.add(_19f);return _19f;},createObject:function(_1a0,_1a1){if(!this.rawNode){return null;}var _1a2=new _1a0(),node=this.rawNode.ownerDocument.createElement("v:"+_1a0.nodeType);_1a2.setRawNode(node);this.rawNode.appendChild(node);switch(_1a0){case vml.Group:case vml.Line:case vml.Polyline:case vml.Image:case vml.Text:case vml.Path:case vml.TextPath:this._overrideSize(node);}_1a2.setShape(_1a1);this.add(_1a2);return _1a2;},_overrideSize:function(node){var s=this.rawNode.style,w=s.width,h=s.height;node.style.width=w;node.style.height=h;node.coordsize=parseInt(w)+" "+parseInt(h);}};lang.extend(vml.Group,_199);lang.extend(vml.Group,gs.Creator);lang.extend(vml.Group,_19c);lang.extend(vml.Surface,_199);lang.extend(vml.Surface,gs.Creator);lang.extend(vml.Surface,_19c);vml.fixTarget=function(_1a3,_1a4){if(!_1a3.gfxTarget){_1a3.gfxTarget=gs.byId(_1a3.target.__gfxObject__);}return true;};return vml;});},"*noref":1}});define("dojox/_dojox_gfx",[],1);require(["dojox/gfx"]);/*
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:{"dojox/lang/functional/array":function(){define("dojox/lang/functional/array",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/window","./lambda"],function(_1,_2,_3,_4,df){var _5={};_2.mixin(df,{filter:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||_4.global;f=df.lambda(f);var t=[],v,i,n;if(_2.isArray(a)){for(i=0,n=a.length;i_16){_1d-=1;}return {text:(s.substring(0,_1d)+this.trailingSymbol),truncated:true};}var _1e=_1d+Math.round((end-_1d)*_19),_1f=this.getTextWidth(s.substring(0,_1e),_15);if(_1f<_16){_1d=_1e;end=end;}else{_1d=_1d;end=_1e;}}}},getTextWithLimitCharCount:function(s,_20,_21,_22){if(!s||s.length<=0){return {text:"",truncated:_22||false};}if(!_21||_21<=0||s.length<=_21){return {text:s,truncated:_22||false};}return {text:s.substring(0,_21)+this.trailingSymbol,truncated:true};},_plotFill:function(_23,dim,_24){if(!_23||!_23.type||!_23.space){return _23;}var _25=_23.space;switch(_23.type){case "linear":if(_25==="plot"||_25==="shapeX"||_25==="shapeY"){_23=_a.makeParameters(_a.defaultLinearGradient,_23);_23.space=_25;if(_25==="plot"||_25==="shapeX"){var _26=dim.height-_24.t-_24.b;_23.y1=_24.t+_26*_23.y1/100;_23.y2=_24.t+_26*_23.y2/100;}if(_25==="plot"||_25==="shapeY"){var _26=dim.width-_24.l-_24.r;_23.x1=_24.l+_26*_23.x1/100;_23.x2=_24.l+_26*_23.x2/100;}}break;case "radial":if(_25==="plot"){_23=_a.makeParameters(_a.defaultRadialGradient,_23);_23.space=_25;var _27=dim.width-_24.l-_24.r,_28=dim.height-_24.t-_24.b;_23.cx=_24.l+_27*_23.cx/100;_23.cy=_24.t+_28*_23.cy/100;_23.r=_23.r*Math.sqrt(_27*_27+_28*_28)/200;}break;case "pattern":if(_25==="plot"||_25==="shapeX"||_25==="shapeY"){_23=_a.makeParameters(_a.defaultPattern,_23);_23.space=_25;if(_25==="plot"||_25==="shapeX"){var _26=dim.height-_24.t-_24.b;_23.y=_24.t+_26*_23.y/100;_23.height=_26*_23.height/100;}if(_25==="plot"||_25==="shapeY"){var _26=dim.width-_24.l-_24.r;_23.x=_24.l+_26*_23.x/100;_23.width=_26*_23.width/100;}}break;}return _23;},_shapeFill:function(_29,_2a){if(!_29||!_29.space){return _29;}var _2b=_29.space;switch(_29.type){case "linear":if(_2b==="shape"||_2b==="shapeX"||_2b==="shapeY"){_29=_a.makeParameters(_a.defaultLinearGradient,_29);_29.space=_2b;if(_2b==="shape"||_2b==="shapeX"){var _2c=_2a.width;_29.x1=_2a.x+_2c*_29.x1/100;_29.x2=_2a.x+_2c*_29.x2/100;}if(_2b==="shape"||_2b==="shapeY"){var _2c=_2a.height;_29.y1=_2a.y+_2c*_29.y1/100;_29.y2=_2a.y+_2c*_29.y2/100;}}break;case "radial":if(_2b==="shape"){_29=_a.makeParameters(_a.defaultRadialGradient,_29);_29.space=_2b;_29.cx=_2a.x+_2a.width/2;_29.cy=_2a.y+_2a.height/2;_29.r=_29.r*_2a.width/200;}break;case "pattern":if(_2b==="shape"||_2b==="shapeX"||_2b==="shapeY"){_29=_a.makeParameters(_a.defaultPattern,_29);_29.space=_2b;if(_2b==="shape"||_2b==="shapeX"){var _2c=_2a.width;_29.x=_2a.x+_2c*_29.x/100;_29.width=_2c*_29.width/100;}if(_2b==="shape"||_2b==="shapeY"){var _2c=_2a.height;_29.y=_2a.y+_2c*_29.y/100;_29.height=_2c*_29.height/100;}}break;}return _29;},_pseudoRadialFill:function(_2d,_2e,_2f,_30,end){if(!_2d||_2d.type!=="radial"||_2d.space!=="shape"){return _2d;}var _31=_2d.space;_2d=_a.makeParameters(_a.defaultRadialGradient,_2d);_2d.space=_31;if(arguments.length<4){_2d.cx=_2e.x;_2d.cy=_2e.y;_2d.r=_2d.r*_2f/100;return _2d;}var _32=arguments.length<5?_30:(end+_30)/2;return {type:"linear",x1:_2e.x,y1:_2e.y,x2:_2e.x+_2d.r*_2f*Math.cos(_32)/100,y2:_2e.y+_2d.r*_2f*Math.sin(_32)/100,colors:_2d.colors};return _2d;}});});},"dojox/gfx/utils":function(){define("dojox/gfx/utils",["dojo/_base/kernel","dojo/_base/lang","./_base","dojo/_base/html","dojo/_base/array","dojo/_base/window","dojo/_base/json","dojo/_base/Deferred","dojo/_base/sniff","require","dojo/_base/config"],function(_33,_34,g,_35,arr,win,_36,_37,has,_38,_39){var gu=g.utils={};_34.mixin(gu,{forEach:function(_3a,f,o){o=o||win.global;f.call(o,_3a);if(_3a instanceof g.Surface||_3a instanceof g.Group){arr.forEach(_3a.children,function(_3b){gu.forEach(_3b,f,o);});}},serialize:function(_3c){var t={},v,_3d=_3c instanceof g.Surface;if(_3d||_3c instanceof g.Group){t.children=arr.map(_3c.children,gu.serialize);if(_3d){return t.children;}}else{t.shape=_3c.getShape();}if(_3c.getTransform){v=_3c.getTransform();if(v){t.transform=v;}}if(_3c.getStroke){v=_3c.getStroke();if(v){t.stroke=v;}}if(_3c.getFill){v=_3c.getFill();if(v){t.fill=v;}}if(_3c.getFont){v=_3c.getFont();if(v){t.font=v;}}return t;},toJson:function(_3e,_3f){return _36.toJson(gu.serialize(_3e),_3f);},deserialize:function(_40,_41){if(_41 instanceof Array){return arr.map(_41,_34.hitch(null,gu.deserialize,_40));}var _42=("shape" in _41)?_40.createShape(_41.shape):_40.createGroup();if("transform" in _41){_42.setTransform(_41.transform);}if("stroke" in _41){_42.setStroke(_41.stroke);}if("fill" in _41){_42.setFill(_41.fill);}if("font" in _41){_42.setFont(_41.font);}if("children" in _41){arr.forEach(_41.children,_34.hitch(null,gu.deserialize,_42));}return _42;},fromJson:function(_43,_44){return gu.deserialize(_43,_36.fromJson(_44));},toSvg:function(_45){var _46=new _37();if(g.renderer==="svg"){try{var svg=gu._cleanSvg(gu._innerXML(_45.rawNode));_46.callback(svg);}catch(e){_46.errback(e);}}else{if(!gu._initSvgSerializerDeferred){gu._initSvgSerializer();}var _47=gu.toJson(_45);var _48=function(){try{var _49=_45.getDimensions();var _4a=_49.width;var _4b=_49.height;var _4c=gu._gfxSvgProxy.document.createElement("div");gu._gfxSvgProxy.document.body.appendChild(_4c);win.withDoc(gu._gfxSvgProxy.document,function(){_35.style(_4c,"width",_4a);_35.style(_4c,"height",_4b);},this);var ts=gu._gfxSvgProxy[dojox._scopeName].gfx.createSurface(_4c,_4a,_4b);var _4d=function(_4e){try{gu._gfxSvgProxy[dojox._scopeName].gfx.utils.fromJson(_4e,_47);var svg=gu._cleanSvg(_4c.innerHTML);_4e.clear();_4e.destroy();gu._gfxSvgProxy.document.body.removeChild(_4c);_46.callback(svg);}catch(e){_46.errback(e);}};ts.whenLoaded(null,_4d);}catch(ex){_46.errback(ex);}};if(gu._initSvgSerializerDeferred.fired>0){_48();}else{gu._initSvgSerializerDeferred.addCallback(_48);}}return _46;},_gfxSvgProxy:null,_initSvgSerializerDeferred:null,_svgSerializerInitialized:function(){gu._initSvgSerializerDeferred.callback(true);},_initSvgSerializer:function(){if(!gu._initSvgSerializerDeferred){gu._initSvgSerializerDeferred=new _37();var f=win.doc.createElement("iframe");_35.style(f,{display:"none",position:"absolute",width:"1em",height:"1em",top:"-10000px"});var _4f;if(has("ie")){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onreadystatechange=function(){};_4f=setInterval(function(){if(f.contentWindow[_33.scopeMap["dojo"][1]._scopeName]&&f.contentWindow[_33.scopeMap["dojox"][1]._scopeName].gfx&&f.contentWindow[_33.scopeMap["dojox"][1]._scopeName].gfx.utils){clearInterval(_4f);f.contentWindow.parent[_33.scopeMap["dojox"][1]._scopeName].gfx.utils._gfxSvgProxy=f.contentWindow;f.contentWindow.parent[_33.scopeMap["dojox"][1]._scopeName].gfx.utils._svgSerializerInitialized();}},50);}};}else{f.onload=function(){f.onload=function(){};_4f=setInterval(function(){if(f.contentWindow[_33.scopeMap["dojo"][1]._scopeName]&&f.contentWindow[_33.scopeMap["dojox"][1]._scopeName].gfx&&f.contentWindow[_33.scopeMap["dojox"][1]._scopeName].gfx.utils){clearInterval(_4f);f.contentWindow.parent[_33.scopeMap["dojox"][1]._scopeName].gfx.utils._gfxSvgProxy=f.contentWindow;f.contentWindow.parent[_33.scopeMap["dojox"][1]._scopeName].gfx.utils._svgSerializerInitialized();}},50);};}var uri=(_39["dojoxGfxSvgProxyFrameUrl"]||_38.toUrl("dojox/gfx/resources/gfxSvgProxyFrame.html"));f.setAttribute("src",uri.toString());win.body().appendChild(f);}},_innerXML:function(_50){if(_50.innerXML){return _50.innerXML;}else{if(_50.xml){return _50.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(_50);}}}return null;},_cleanSvg:function(svg){if(svg){if(svg.indexOf("xmlns=\"http://www.w3.org/2000/svg\"")==-1){svg=svg.substring(4,svg.length);svg="