/*
	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/charting/widget/Chart":function(){define("dojox/charting/widget/Chart",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/html","dojo/_base/declare","dojo/query","dijit/_Widget","../Chart","dojox/lang/utils","dojox/lang/functional","dojox/lang/functional/lambda","dijit/_base/manager"],function(_1,_2,_3,_4,_5,_6,_7,_8,du,df,_9){var _a,_b,_c,_d,_e,_f=function(o){return o;},dc=_2.getObject("dojox.charting");var _10=_5("dojox.charting.widget.Chart",_7,{theme:null,margins:null,stroke:undefined,fill:undefined,buildRendering:function(){this.inherited(arguments);n=this.domNode;var _11=_6("> .axis",n).map(_b).filter(_f),_12=_6("> .plot",n).map(_c).filter(_f),_13=_6("> .action",n).map(_d).filter(_f),_14=_6("> .series",n).map(_e).filter(_f);n.innerHTML="";var c=this.chart=new _8(n,{margins:this.margins,stroke:this.stroke,fill:this.fill,textDir:this.textDir});if(this.theme){c.setTheme(this.theme);}_11.forEach(function(_15){c.addAxis(_15.name,_15.kwArgs);});_12.forEach(function(_16){c.addPlot(_16.name,_16.kwArgs);});this.actions=_13.map(function(_17){return new _17.action(c,_17.plot,_17.kwArgs);});var _18=df.foldl(_14,function(_19,_1a){if(_1a.type=="data"){c.addSeries(_1a.name,_1a.data,_1a.kwArgs);_19=true;}else{c.addSeries(_1a.name,[0],_1a.kwArgs);var kw={};du.updateWithPattern(kw,_1a.kwArgs,{"query":"","queryOptions":null,"start":0,"count":1},true);if(_1a.kwArgs.sort){kw.sort=_2.clone(_1a.kwArgs.sort);}_2.mixin(kw,{onComplete:function(_1b){var _1c;if("valueFn" in _1a.kwArgs){var fn=_1a.kwArgs.valueFn;_1c=_3.map(_1b,function(x){return fn(_1a.data.getValue(x,_1a.field,0));});}else{_1c=_3.map(_1b,function(x){return _1a.data.getValue(x,_1a.field,0);});}c.addSeries(_1a.name,_1c,_1a.kwArgs).render();}});_1a.data.fetch(kw);}return _19;},false);if(_18){c.render();}},destroy:function(){this.chart.destroy();this.inherited(arguments);},resize:function(box){this.chart.resize(box);}});_a=function(_1d,_1e,kw){var dp=eval("("+_1e+".prototype.defaultParams)");var x,_1f;for(x in dp){if(x in kw){continue;}_1f=_1d.getAttribute(x);kw[x]=du.coerceType(dp[x],_1f==null||typeof _1f=="undefined"?dp[x]:_1f);}var op=eval("("+_1e+".prototype.optionalParams)");for(x in op){if(x in kw){continue;}_1f=_1d.getAttribute(x);if(_1f!=null){kw[x]=du.coerceType(op[x],_1f);}}};_b=function(_20){var _21=_20.getAttribute("name"),_22=_20.getAttribute("type");if(!_21){return null;}var o={name:_21,kwArgs:{}},kw=o.kwArgs;if(_22){if(dc.axis2d[_22]){_22=dojo._scopeName+"x.charting.axis2d."+_22;}var _23=eval("("+_22+")");if(_23){kw.type=_23;}}else{_22=dojo._scopeName+"x.charting.axis2d.Default";}_a(_20,_22,kw);if(kw.font||kw.fontColor){if(!kw.tick){kw.tick={};}if(kw.font){kw.tick.font=kw.font;}if(kw.fontColor){kw.tick.fontColor=kw.fontColor;}}return o;};_c=function(_24){var _25=_24.getAttribute("name"),_26=_24.getAttribute("type");if(!_25){return null;}var o={name:_25,kwArgs:{}},kw=o.kwArgs;if(_26){if(dc.plot2d&&dc.plot2d[_26]){_26=dojo._scopeName+"x.charting.plot2d."+_26;}var _27=eval("("+_26+")");if(_27){kw.type=_27;}}else{_26=dojo._scopeName+"x.charting.plot2d.Default";}_a(_24,_26,kw);return o;};_d=function(_28){var _29=_28.getAttribute("plot"),_2a=_28.getAttribute("type");if(!_29){_29="default";}var o={plot:_29,kwArgs:{}},kw=o.kwArgs;if(_2a){if(dc.action2d[_2a]){_2a=dojo._scopeName+"x.charting.action2d."+_2a;}var _2b=eval("("+_2a+")");if(!_2b){return null;}o.action=_2b;}else{return null;}_a(_28,_2a,kw);return o;};_e=function(_2c){var ga=_2.partial(_4.attr,_2c);var _2d=ga("name");if(!_2d){return null;}var o={name:_2d,kwArgs:{}},kw=o.kwArgs,t;t=ga("plot");if(t!=null){kw.plot=t;}t=ga("marker");if(t!=null){kw.marker=t;}t=ga("stroke");if(t!=null){kw.stroke=eval("("+t+")");}t=ga("outline");if(t!=null){kw.outline=eval("("+t+")");}t=ga("shadow");if(t!=null){kw.shadow=eval("("+t+")");}t=ga("fill");if(t!=null){kw.fill=eval("("+t+")");}t=ga("font");if(t!=null){kw.font=t;}t=ga("fontColor");if(t!=null){kw.fontColor=eval("("+t+")");}t=ga("legend");if(t!=null){kw.legend=t;}t=ga("data");if(t!=null){o.type="data";o.data=t?_3.map(String(t).split(","),Number):[];return o;}t=ga("array");if(t!=null){o.type="data";o.data=eval("("+t+")");return o;}t=ga("store");if(t!=null){o.type="store";o.data=eval("("+t+")");t=ga("field");o.field=t!=null?t:"value";t=ga("query");if(!!t){kw.query=t;}t=ga("queryOptions");if(!!t){kw.queryOptions=eval("("+t+")");}t=ga("start");if(!!t){kw.start=Number(t);}t=ga("count");if(!!t){kw.count=Number(t);}t=ga("sort");if(!!t){kw.sort=eval("("+t+")");}t=ga("valueFn");if(!!t){kw.valueFn=_9.lambda(t);}return o;}return null;};return _10;});},"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(_2e,_2f,_30,_31,_32,_33,_34,_35,_36,_37,_38,_39){function _3a(){};function _3b(_3c){return function(obj,_3d,_3e,_3f){if(obj&&typeof _3d=="string"&&obj[_3d]==_3a){return obj.on(_3d.substring(2).toLowerCase(),_33.hitch(_3e,_3f));}return _3c.apply(_30,arguments);};};_2e.around(_30,"connect",_3b);if(_32.connect){_2e.around(_32,"connect",_3b);}var _40=_31("dijit._Widget",[_37,_38,_39],{onClick:_3a,onDblClick:_3a,onKeyDown:_3a,onKeyPress:_3a,onKeyUp:_3a,onMouseDown:_3a,onMouseMove:_3a,onMouseOut:_3a,onMouseOver:_3a,onMouseLeave:_3a,onMouseEnter:_3a,onMouseUp:_3a,constructor:function(_41){this._toConnect={};for(var _42 in _41){if(this[_42]===_3a){this._toConnect[_42.replace(/^on/,"").toLowerCase()]=_41[_42];delete _41[_42];}}},postCreate:function(){this.inherited(arguments);for(var _43 in this._toConnect){this.on(_43,this._toConnect[_43]);}delete this._toConnect;},on:function(_44,_45){if(this[this._onMap(_44)]===_3a){return _30.connect(this.domNode,_44.toLowerCase(),this,_45);}return this.inherited(arguments);},_setFocusedAttr:function(val){this._focused=val;this._set("focused",val);},setAttribute:function(_46,_47){_32.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(_46,_47);},attr:function(_48,_49){if(_2f.isDebug){var _4a=arguments.callee._ach||(arguments.callee._ach={}),_4b=(arguments.callee.caller||"unknown caller").toString();if(!_4a[_4b]){_32.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_4b,"","2.0");_4a[_4b]=true;}}var _4c=arguments.length;if(_4c>=2||typeof _48==="object"){return this.set.apply(this,arguments);}else{return this.get(_48);}},getDescendants:function(){_32.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_34("[widgetId]",this.containerNode).map(_36.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(!_32.isAsync){_35(0,function(){var _4d=["dijit/_base"];require(_4d);});}return _40;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window","."],function(_4e,has,_4f,win,_50){var _51={},_52={};var _53={length:0,add:function(_54){if(_52[_54.id]){throw new Error("Tried to register widget with id=="+_54.id+" but that id is already registered");}_52[_54.id]=_54;this.length++;},remove:function(id){if(_52[id]){delete _52[id];this.length--;}},byId:function(id){return typeof id=="string"?_52[id]:id;},byNode:function(_55){return _52[_55.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in _52){ar.push(_52[id]);}return ar;},getUniqueId:function(_56){var id;do{id=_56+"_"+(_56 in _51?++_51[_56]:_51[_56]=0);}while(_52[id]);return _50._scopeName=="dijit"?id:_50._scopeName+"_"+id;},findWidgets:function(_57){var _58=[];function _59(_5a){for(var _5b=_5a.firstChild;_5b;_5b=_5b.nextSibling){if(_5b.nodeType==1){var _5c=_5b.getAttribute("widgetId");if(_5c){var _5d=_52[_5c];if(_5d){_58.push(_5d);}}else{_59(_5b);}}}};_59(_57);return _58;},_destroyAll:function(){_50._curFocus=null;_50._prevFocus=null;_50._activeStack=[];_4e.forEach(_53.findWidgets(win.body()),function(_5e){if(!_5e._destroyed){if(_5e.destroyRecursive){_5e.destroyRecursive();}else{if(_5e.destroy){_5e.destroy();}}}});},getEnclosingWidget:function(_5f){while(_5f){var id=_5f.getAttribute&&_5f.getAttribute("widgetId");if(id){return _52[id];}_5f=_5f.parentNode;}return null;},_hash:_52};_50.registry=_53;return _53;});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(_60){return _60.dijit;});},"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(_61,_62,_63,_64,_65,_66,dom,_67,_68,_69,_6a,_6b,_6c,_6d,on,_6e,_6f,_70,win,_71){if(!_6c.isAsync){_6e(0,function(){var _72=["dijit/_base/manager"];_61(_72);});}var _73={};function _74(obj){var ret={};for(var _75 in obj){ret[_75.toLowerCase()]=true;}return ret;};function _76(_77){return function(val){_67[val?"set":"remove"](this.domNode,_77,val);this._set(_77,val);};};function _78(a,b){return a===b||(a!==a&&b!==b);};return _66("dijit._WidgetBase",_6f,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_76("lang"),dir:"",_setDirAttr:_76("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_64.blankGif||_61.toUrl("dojo/resources/blank.gif"),postscript:function(_79,_7a){this.create(_79,_7a);},create:function(_7b,_7c){this.srcNodeRef=dom.byId(_7c);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_7b){this.params=_7b;_6d.mixin(this,_7b);}this.postMixInProperties();if(!this.id){this.id=_71.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_71.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _7d=this.srcNodeRef;if(_7d&&_7d.parentNode&&this.domNode!==_7d){_7d.parentNode.replaceChild(this.domNode,_7d);}}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 _7e=this.constructor,_7f=_7e._setterAttrs;if(!_7f){_7f=(_7e._setterAttrs=[]);for(var _80 in this.attributeMap){_7f.push(_80);}var _81=_7e.prototype;for(var _82 in _81){if(_82 in this.attributeMap){continue;}var _83="_set"+_82.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_83 in _81){_7f.push(_82);}}}_62.forEach(_7f,function(_84){if(this.params&&_84 in this.params){}else{if(this[_84]){this.set(_84,this[_84]);}}},this);for(var _85 in this.params){this.set(_85,this[_85]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_69.create("div");}if(this.baseClass){var _86=this.baseClass.split(" ");if(!this.isLeftToRight()){_86=_86.concat(_62.map(_86,function(_87){return _87+"Rtl";}));}_68.add(this.domNode,_86);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_62.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_6d.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_88){this._beingDestroyed=true;this.destroyDescendants(_88);this.destroy(_88);},destroy:function(_89){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(_89);_71.remove(this.id);this._destroyed=true;},destroyRendering:function(_8a){if(this.bgIframe){this.bgIframe.destroy(_8a);delete this.bgIframe;}if(this.domNode){if(_8a){_67.remove(this.domNode,"widgetId");}else{_69.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_8a){_69.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_8b){_62.forEach(this.getChildren(),function(_8c){if(_8c.destroyRecursive){_8c.destroyRecursive(_8b);}});},uninitialize:function(){return false;},_setStyleAttr:function(_8d){var _8e=this.domNode;if(_6d.isObject(_8d)){_6b.set(_8e,_8d);}else{if(_8e.style.cssText){_8e.style.cssText+="; "+_8d;}else{_8e.style.cssText=_8d;}}this._set("style",_8d);},_attrToDom:function(_8f,_90,_91){_91=arguments.length>=3?_91:this.attributeMap[_8f];_62.forEach(_6d.isArray(_91)?_91:[_91],function(_92){var _93=this[_92.node||_92||"domNode"];var _94=_92.type||"attribute";switch(_94){case "attribute":if(_6d.isFunction(_90)){_90=_6d.hitch(this,_90);}var _95=_92.attribute?_92.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_8f)?_8f.toLowerCase():_8f);_67.set(_93,_95,_90);break;case "innerText":_93.innerHTML="";_93.appendChild(win.doc.createTextNode(_90));break;case "innerHTML":_93.innerHTML=_90;break;case "class":_68.replace(_93,_90,this[_8f]);break;}},this);},get:function(_96){var _97=this._getAttrNames(_96);return this[_97.g]?this[_97.g]():this[_96];},set:function(_98,_99){if(typeof _98==="object"){for(var x in _98){this.set(x,_98[x]);}return this;}var _9a=this._getAttrNames(_98),_9b=this[_9a.s];if(_6d.isFunction(_9b)){var _9c=_9b.apply(this,Array.prototype.slice.call(arguments,1));}else{var _9d=this.focusNode&&!_6d.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_9d].tagName,_9e=_73[tag]||(_73[tag]=_74(this[_9d])),map=_98 in this.attributeMap?this.attributeMap[_98]:_9a.s in this?this[_9a.s]:((_9a.l in _9e&&typeof _99!="function")||/^aria-|^data-|^role$/.test(_98))?_9d:null;if(map!=null){this._attrToDom(_98,_99,map);}this._set(_98,_99);}return _9c||this;},_attrPairNames:{},_getAttrNames:function(_9f){var apn=this._attrPairNames;if(apn[_9f]){return apn[_9f];}var uc=_9f.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[_9f]={n:_9f+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(_a0,_a1){var _a2=this[_a0];this[_a0]=_a1;if(this._watchCallbacks&&this._created&&!_78(_a1,_a2)){this._watchCallbacks(_a0,_a2,_a1);}},on:function(_a3,_a4){return _63.after(this,this._onMap(_a3),_a4,true);},_onMap:function(_a5){var _a6=this.constructor,map=_a6._onMap;if(!map){map=(_a6._onMap={});for(var _a7 in _a6.prototype){if(/^on/.test(_a7)){map[_a7.replace(/^on/,"").toLowerCase()]=_a7;}}}return map[_a5.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_71.findWidgets(this.containerNode):[];},getParent:function(){return _71.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_a8,_a9){var _aa=_65.connect(obj,_a8,this,_a9);this._connects.push(_aa);return _aa;},disconnect:function(_ab){var i=_62.indexOf(this._connects,_ab);if(i!=-1){_ab.remove();this._connects.splice(i,1);}},subscribe:function(t,_ac){var _ad=_70.subscribe(t,_6d.hitch(this,_ac));this._connects.push(_ad);return _ad;},unsubscribe:function(_ae){this.disconnect(_ae);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_6a.isBodyLtr();},isFocusable:function(){return this.focus&&(_6b.get(this.domNode,"display")!="none");},placeAt:function(_af,_b0){if(_af.declaredClass&&_af.addChild){_af.addChild(this,_b0);}else{_69.place(this.domNode,_af,_b0);}return this;},getTextDir:function(_b1,_b2){return _b2;},applyTextDir:function(){},defer:function(fcn,_b3){var _b4=setTimeout(_6d.hitch(this,function(){if(!_b4){return;}_b4=null;if(!this._destroyed){_6d.hitch(this,fcn)();}}),_b3||0);return {remove:function(){if(_b4){clearTimeout(_b4);_b4=null;}return null;}};}});});},"dojo/Stateful":function(){define(["./_base/kernel","./_base/declare","./_base/lang","./_base/array"],function(_b5,_b6,_b7,_b8){return _b5.declare("dojo.Stateful",null,{postscript:function(_b9){if(_b9){_b7.mixin(this,_b9);}},get:function(_ba){return this[_ba];},set:function(_bb,_bc){if(typeof _bb==="object"){for(var x in _bb){this.set(x,_bb[x]);}return this;}var _bd=this[_bb];this[_bb]=_bc;if(this._watchCallbacks){this._watchCallbacks(_bb,_bd,_bc);}return this;},watch:function(_be,_bf){var _c0=this._watchCallbacks;if(!_c0){var _c1=this;_c0=this._watchCallbacks=function(_c2,_c3,_c4,_c5){var _c6=function(_c7){if(_c7){_c7=_c7.slice();for(var i=0,l=_c7.length;i<l;i++){try{_c7[i].call(_c1,_c2,_c3,_c4);}catch(e){console.error(e);}}}};_c6(_c0["_"+_c2]);if(!_c5){_c6(_c0["*"]);}};}if(!_bf&&typeof _be==="function"){_bf=_be;_be="*";}else{_be="_"+_be;}var _c8=_c0[_be];if(typeof _c8!=="object"){_c8=_c0[_be]=[];}_c8.push(_bf);return {unwatch:function(){_c8.splice(_b8.indexOf(_c8,_bf),1);}};}});});},"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,_c9,_ca,_cb,has,_cc,win){var _cd=null;if(has("ie")<9){(function(){var _ce=function(evt){_cd=evt.srcElement;};win.doc.attachEvent("onkeydown",_ce);_cc.addOnWindowUnload(function(){win.doc.detachEvent("onkeydown",_ce);});})();}else{win.doc.addEventListener("keydown",function(evt){_cd=evt.target;},true);}var _cf=function(_d0,_d1){if(/input|button/i.test(_d0.nodeName)){return on(_d0,"click",_d1);}else{function _d2(e){return (e.keyCode==_ca.ENTER||e.keyCode==_ca.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey;};var _d3=[on(_d0,"keypress",function(e){if(_d2(e)){_cd=e.target;e.preventDefault();}}),on(_d0,"keyup",function(e){if(_d2(e)&&e.target==_cd){_cd=null;_d1.call(this,e);}}),on(_d0,"click",function(e){_d1.call(this,e);})];return {remove:function(){_c9.forEach(_d3,function(h){h.remove();});}};}};return _cb("dijit._OnDijitClickMixin",null,{connect:function(obj,_d4,_d5){return this.inherited(arguments,[obj,_d4=="ondijitclick"?_cf:_d4,_d5]);}});});},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_d6,_d7,_d8,_d9){_d9.extend(_d7,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _d8("dijit._FocusMixin",null,{_focusManager:_d6});});},"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/domReady","dojo/_base/sniff","dojo/Stateful","dojo/_base/window","dojo/window","./a11y","./registry","./main"],function(_da,_db,dom,_dc,_dd,_de,_df,on,_e0,has,_e1,win,_e2,_e3,_e4,_e5){var _e6=_db([_e1,_de],{curNode:null,activeStack:[],constructor:function(){var _e7=_df.hitch(this,function(_e8){if(dom.isDescendant(this.curNode,_e8)){this.set("curNode",null);}if(dom.isDescendant(this.prevNode,_e8)){this.set("prevNode",null);}});_da.before(_dd,"empty",_e7);_da.before(_dd,"destroy",_e7);},registerIframe:function(_e9){return this.registerWin(_e9.contentWindow,_e9);},registerWin:function(_ea,_eb){var _ec=this,_ed=_ea.document&&_ea.document.body;if(_ed){var mdh=on(_ed,"mousedown",function(evt){_ec._justMouseDowned=true;setTimeout(function(){_ec._justMouseDowned=false;},13);if(evt&&evt.target&&evt.target.parentNode==null){return;}_ec._onTouchNode(_eb||evt.target,"mouse");});var fih=on(_ed,"focusin",function(evt){if(!evt.target.tagName){return;}var tag=evt.target.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(_e3.isTabNavigable(evt.target)){_ec._onFocusNode(_eb||evt.target);}else{_ec._onTouchNode(_eb||evt.target);}});var foh=on(_ed,"focusout",function(evt){_ec._onBlurNode(_eb||evt.target);});return {remove:function(){mdh.remove();fih.remove();foh.remove();mdh=fih=foh=null;_ed=null;}};}},_onBlurNode:function(_ee){if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);}this._clearFocusTimer=setTimeout(_df.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null);}),0);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(_df.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);}),100);},_onTouchNode:function(_ef,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _f0=[];try{while(_ef){var _f1=_dc.get(_ef,"dijitPopupParent");if(_f1){_ef=_e4.byId(_f1).domNode;}else{if(_ef.tagName&&_ef.tagName.toLowerCase()=="body"){if(_ef===win.body()){break;}_ef=_e2.get(_ef.ownerDocument).frameElement;}else{var id=_ef.getAttribute&&_ef.getAttribute("widgetId"),_f2=id&&_e4.byId(id);if(_f2&&!(by=="mouse"&&_f2.get("disabled"))){_f0.unshift(id);}_ef=_ef.parentNode;}}}}catch(e){}this._setStack(_f0,by);},_onFocusNode:function(_f3){if(!_f3){return;}if(_f3.nodeType==9){return;}if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);delete this._clearFocusTimer;}this._onTouchNode(_f3);if(_f3==this.curNode){return;}this.set("prevNode",this.curNode);this.set("curNode",_f3);},_setStack:function(_f4,by){var _f5=this.activeStack,_f6=_f5.length-1,_f7=_f4.length-1;if(_f4[_f7]==_f5[_f6]){return;}this.set("activeStack",_f4);var _f8,i;for(i=_f6;i>=0&&_f5[i]!=_f4[i];i--){_f8=_e4.byId(_f5[i]);if(_f8){_f8._hasBeenBlurred=true;_f8.set("focused",false);if(_f8._focusManager==this){_f8._onBlur(by);}this.emit("widget-blur",_f8,by);}}for(i++;i<=_f7;i++){_f8=_e4.byId(_f4[i]);if(_f8){_f8.set("focused",true);if(_f8._focusManager==this){_f8._onFocus(by);}this.emit("widget-focus",_f8,by);}}},focus:function(_f9){if(_f9){try{_f9.focus();}catch(e){}}}});var _fa=new _e6();_e0(function(){var _fb=_fa.registerWin(_e2.get(document));if(has("ie")){on(window,"unload",function(){if(_fb){_fb.remove();_fb=null;}});}});_e5.focus=function(_fc){_fa.focus(_fc);};for(var _fd in _fa){if(!/^_/.test(_fd)){_e5.focus[_fd]=typeof _fa[_fd]=="function"?_df.hitch(_fa,_fd):_fa[_fd];}}_fa.watch(function(_fe,_ff,_100){_e5.focus[_fe]=_100;});return _fa;});},"dojo/window":function(){define(["./_base/lang","./_base/sniff","./_base/window","./dom","./dom-geometry","./dom-style","./dom-construct"],function(lang,has,_101,dom,geom,_102,_103){has.add("rtl-adjust-position-for-verticalScrollBar",function(win,doc){var body=_101.body(doc),_104=_103.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},body,"last"),div=_103.create("div",{style:{overflow:"hidden",direction:"ltr"}},_104,"last"),ret=geom.position(div).x!=0;_104.removeChild(div);body.removeChild(_104);return ret;});has.add("position-fixed-support",function(win,doc){var body=_101.body(doc),_105=_103.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},body,"last"),_106=_103.create("span",{style:{position:"fixed",left:"0",top:"0"}},_105,"last"),ret=geom.position(_106).x!=geom.position(_105).x;_105.removeChild(_106);body.removeChild(_105);return ret;});var _107=lang.getObject("dojo.window",true);_107.getBox=function(){var _108=(_101.doc.compatMode=="BackCompat")?_101.body():_101.doc.documentElement,_109=geom.docScroll(),w,h;if(has("touch")){var _10a=_101.doc.parentWindow||_101.doc.defaultView;w=_10a.innerWidth||_108.clientWidth;h=_10a.innerHeight||_108.clientHeight;}else{w=_108.clientWidth;h=_108.clientHeight;}return {l:_109.x,t:_109.y,w:w,h:h};};_107.get=function(doc){if(has("ie")<9&&_107!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};_107.scrollIntoView=function(node,pos){try{node=dom.byId(node);var doc=node.ownerDocument||_101.doc,body=_101.body(doc),html=doc.documentElement||body.parentNode,isIE=has("ie"),isWK=has("webkit");if(node==body||node==html){return;}if(!(has("mozilla")||isIE||isWK||has("opera")||has("trident"))&&("scrollIntoView" in node)){node.scrollIntoView(false);return;}var _10b=doc.compatMode=="BackCompat",_10c=Math.min(body.clientWidth||html.clientWidth,html.clientWidth||body.clientWidth),_10d=Math.min(body.clientHeight||html.clientHeight,html.clientHeight||body.clientHeight),_10e=(isWK||_10b)?body:html,_10f=pos||geom.position(node),el=node.parentNode,_110=function(el){return (isIE<=6||(isIE==7&&_10b))?false:(has("position-fixed-support")&&(_102.get(el,"position").toLowerCase()=="fixed"));},self=this,_111=function(el,x,y){if(el.tagName=="BODY"||el.tagName=="HTML"){self.get(el.ownerDocument).scrollBy(x,y);}else{x&&(el.scrollLeft+=x);y&&(el.scrollTop+=y);}};if(_110(node)){return;}while(el){if(el==body){el=_10e;}var _112=geom.position(el),_113=_110(el),rtl=_102.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_10e){_112.w=_10c;_112.h=_10d;if(_10e==html&&(isIE||has("trident"))&&rtl){_112.x+=_10e.offsetWidth-_112.w;}_112.x=0;_112.y=0;}else{var pb=geom.getPadBorderExtents(el);_112.w-=pb.w;_112.h-=pb.h;_112.x+=pb.l;_112.y+=pb.t;var _114=el.clientWidth,_115=_112.w-_114;if(_114>0&&_115>0){if(rtl&&has("rtl-adjust-position-for-verticalScrollBar")){_112.x+=_115;}_112.w=_114;}_114=el.clientHeight;_115=_112.h-_114;if(_114>0&&_115>0){_112.h=_114;}}if(_113){if(_112.y<0){_112.h+=_112.y;_112.y=0;}if(_112.x<0){_112.w+=_112.x;_112.x=0;}if(_112.y+_112.h>_10d){_112.h=_10d-_112.y;}if(_112.x+_112.w>_10c){_112.w=_10c-_112.x;}}var l=_10f.x-_112.x,t=_10f.y-_112.y,r=l+_10f.w-_112.w,bot=t+_10f.h-_112.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_10e||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_10b)||has("trident")>=5||has("edge"))){s=-s;}old=el.scrollLeft;_111(el,s,0);s=el.scrollLeft-old;_10f.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_10e||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;_111(el,0,s);s=el.scrollTop-old;_10f.y-=s;}el=(el!=_10e)&&!_113&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};return _107;});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/_base/sniff","./main"],function(_116,dom,_117,_118,lang,has,_119){var _11a;var a11y={_isElementShown:function(elem){var s=_118.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_117.get(elem,"type")!="hidden");},hasDefaultTabStop:function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _117.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _11b=elem.contentDocument;if("designMode" in _11b&&_11b.designMode=="on"){return true;}body=_11b.body;}catch(e1){try{body=elem.contentWindow.document.body;}catch(e2){return false;}}return body&&(body.contentEditable=="true"||(body.firstChild&&body.firstChild.contentEditable=="true"));default:return elem.contentEditable=="true";}},effectiveTabIndex:function(elem){if(_117.get(elem,"disabled")){return _11a;}else{if(_117.has(elem,"tabIndex")){return +_117.get(elem,"tabIndex");}else{return a11y.hasDefaultTabStop(elem)?0:_11a;}}},isTabNavigable:function(elem){return a11y.effectiveTabIndex(elem)>=0;},isFocusable:function(elem){return a11y.effectiveTabIndex(elem)>=-1;},_getTabNavigable:function(root){var _11c,last,_11d,_11e,_11f,_120,_121={};function _122(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _123=a11y._isElementShown,_124=a11y.effectiveTabIndex;var _125=function(_126){for(var _127=_126.firstChild;_127;_127=_127.nextSibling){if(_127.nodeType!=1||(has("ie")<=9&&_127.scopeName!=="HTML")||!_123(_127)){continue;}var _128=_124(_127);if(_128>=0){if(_128==0){if(!_11c){_11c=_127;}last=_127;}else{if(_128>0){if(!_11d||_128<_11e){_11e=_128;_11d=_127;}if(!_11f||_128>=_120){_120=_128;_11f=_127;}}}var rn=_122(_127);if(_117.get(_127,"checked")&&rn){_121[rn]=_127;}}if(_127.nodeName.toUpperCase()!="SELECT"){_125(_127);}}};if(_123(root)){_125(root);}function rs(node){return _121[_122(node)]||node;};return {first:rs(_11c),last:rs(last),lowest:rs(_11d),highest:rs(_11f)};},getFirstInTabbingOrder:function(root,doc){var _129=a11y._getTabNavigable(dom.byId(root,doc));return _129.lowest?_129.lowest:_129.first;},getLastInTabbingOrder:function(root,doc){var _12a=a11y._getTabNavigable(dom.byId(root,doc));return _12a.last?_12a.last:_12a.highest;}};1&&lang.mixin(_119,a11y);return a11y;});},"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./ready","./_base/sniff","./_base/window"],function(_12b,lang,_12c,has,_12d){var html=_12d.doc.documentElement,ie=has("ie"),_12e=has("trident"),_12f=has("opera"),maj=Math.floor,ff=has("ff"),_130=_12b.boxModel.replace(/-/,""),_131={"dj_quirks":has("quirks"),"dj_opera":_12f,"dj_khtml":has("khtml"),"dj_webkit":has("webkit"),"dj_safari":has("safari"),"dj_chrome":has("chrome"),"dj_gecko":has("mozilla")};if(ie){_131["dj_ie"]=true;_131["dj_ie"+maj(ie)]=true;_131["dj_iequirks"]=has("quirks");}if(_12e){_131["dj_trident"]=true;_131["dj_trident"+maj(_12e)]=true;}if(ff){_131["dj_ff"+maj(ff)]=true;}_131["dj_"+_130]=true;var _132="";for(var clz in _131){if(_131[clz]){_132+=clz+" ";}}html.className=lang.trim(html.className+" "+_132);_12c(90,function(){if(!_12b.isBodyLtr()){var _133="dj_rtl dijitRtl "+_132.replace(/ /g,"-rtl ");html.className=lang.trim(html.className+" "+_133+"dj_rtl dijitRtl "+_132.replace(/ /g,"-rtl "));}});return has;});},"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(_134,_135,_136,_137,_138,_139,has,win){if(has("ie")||has("mozilla")){_139(90,function(){var div=_137.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_135.blankGif||_134.toUrl("dojo/resources/blank.gif"))+"\");"}},win.body());var cs=_138.getComputedStyle(div);if(cs){var _13a=cs.backgroundImage;var _13b=(cs.borderTopColor==cs.borderRightColor)||(_13a!=null&&(_13a=="none"||_13a=="url(invalid-url:)"));if(_13b){_136.add(win.body(),"dijit_a11y");}if(has("ie")){div.outerHTML="";}else{win.body().removeChild(div);}}});}});},"dojox/charting/Chart":function(){define("dojox/charting/Chart",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/html","dojo/dom","dojo/dom-geometry","dojo/dom-construct","dojo/_base/Color","dojo/_base/sniff","./Element","./Theme","./Series","./axis2d/common","dojox/gfx/shape","dojox/gfx","dojox/lang/functional","dojox/lang/functional/fold","dojox/lang/functional/reversed"],function(lang,arr,_13c,html,dom,_13d,_13e,_13f,has,_140,_141,_142,_143,_144,g,func,_145,_146){var dc=dojox.charting,_147=func.lambda("item.clear()"),_148=func.lambda("item.purgeGroup()"),_149=func.lambda("item.destroy()"),_14a=func.lambda("item.dirty = false"),_14b=func.lambda("item.dirty = true"),_14c=func.lambda("item.name");_13c("dojox.charting.Chart",null,{constructor:function(node,_14d){if(!_14d){_14d={};}this.margins=_14d.margins?_14d.margins:{l:10,t:10,r:10,b:10};this.stroke=_14d.stroke;this.fill=_14d.fill;this.delayInMs=_14d.delayInMs||200;this.title=_14d.title;this.titleGap=_14d.titleGap;this.titlePos=_14d.titlePos;this.titleFont=_14d.titleFont;this.titleFontColor=_14d.titleFontColor;this.chartTitle=null;this.theme=null;this.axes={};this.stack=[];this.plots={};this.series=[];this.runs={};this.dirty=true;this.coords=null;this._clearRects=[];this.node=dom.byId(node);var box=_13d.getMarginBox(node);this.surface=g.createSurface(this.node,box.w||400,box.h||300);},destroy:function(){arr.forEach(this.series,_149);arr.forEach(this.stack,_149);func.forIn(this.axes,_149);if(this.chartTitle&&this.chartTitle.tagName){_13e.destroy(this.chartTitle);}arr.forEach(this._clearRects,function(_14e){_144.dispose(_14e);});this.surface.destroy();},getCoords:function(){return html.coords(this.node,true);},setTheme:function(_14f){this.theme=_14f.clone();this.dirty=true;return this;},addAxis:function(name,_150){var axis,_151=_150&&_150.type||"Default";if(typeof _151=="string"){if(!dc.axis2d||!dc.axis2d[_151]){throw Error("Can't find axis: "+_151+" - Check "+"require() dependencies.");}axis=new dc.axis2d[_151](this,_150);}else{axis=new _151(this,_150);}axis.name=name;axis.dirty=true;if(name in this.axes){this.axes[name].destroy();}this.axes[name]=axis;this.dirty=true;return this;},getAxis:function(name){return this.axes[name];},removeAxis:function(name){if(name in this.axes){this.axes[name].destroy();delete this.axes[name];this.dirty=true;}return this;},addPlot:function(name,_152){var plot,_153=_152&&_152.type||"Default";if(typeof _153=="string"){if(!dc.plot2d||!dc.plot2d[_153]){throw Error("Can't find plot: "+_153+" - didn't you forget to dojo"+".require() it?");}plot=new dc.plot2d[_153](this,_152);}else{plot=new _153(this,_152);}plot.name=name;plot.dirty=true;if(name in this.plots){this.stack[this.plots[name]].destroy();this.stack[this.plots[name]]=plot;}else{this.plots[name]=this.stack.length;this.stack.push(plot);}this.dirty=true;return this;},getPlot:function(name){return this.stack[this.plots[name]];},removePlot:function(name){if(name in this.plots){var _154=this.plots[name];delete this.plots[name];this.stack[_154].destroy();this.stack.splice(_154,1);func.forIn(this.plots,function(idx,name,_155){if(idx>_154){_155[name]=idx-1;}});var ns=arr.filter(this.series,function(run){return run.plot!=name;});if(ns.length<this.series.length){arr.forEach(this.series,function(run){if(run.plot==name){run.destroy();}});this.runs={};arr.forEach(ns,function(run,_156){this.runs[run.plot]=_156;},this);this.series=ns;}this.dirty=true;}return this;},getPlotOrder:function(){return func.map(this.stack,_14c);},setPlotOrder:function(_157){var _158={},_159=func.filter(_157,function(name){if(!(name in this.plots)||(name in _158)){return false;}_158[name]=1;return true;},this);if(_159.length<this.stack.length){func.forEach(this.stack,function(plot){var name=plot.name;if(!(name in _158)){_159.push(name);}});}var _15a=func.map(_159,function(name){return this.stack[this.plots[name]];},this);func.forEach(_15a,function(plot,i){this.plots[plot.name]=i;},this);this.stack=_15a;this.dirty=true;return this;},movePlotToFront:function(name){if(name in this.plots){var _15b=this.plots[name];if(_15b){var _15c=this.getPlotOrder();_15c.splice(_15b,1);_15c.unshift(name);return this.setPlotOrder(_15c);}}return this;},movePlotToBack:function(name){if(name in this.plots){var _15d=this.plots[name];if(_15d<this.stack.length-1){var _15e=this.getPlotOrder();_15e.splice(_15d,1);_15e.push(name);return this.setPlotOrder(_15e);}}return this;},addSeries:function(name,data,_15f){var run=new _142(this,data,_15f);run.name=name;if(name in this.runs){this.series[this.runs[name]].destroy();this.series[this.runs[name]]=run;}else{this.runs[name]=this.series.length;this.series.push(run);}this.dirty=true;if(!("ymin" in run)&&"min" in run){run.ymin=run.min;}if(!("ymax" in run)&&"max" in run){run.ymax=run.max;}return this;},getSeries:function(name){return this.series[this.runs[name]];},removeSeries:function(name){if(name in this.runs){var _160=this.runs[name];delete this.runs[name];this.series[_160].destroy();this.series.splice(_160,1);func.forIn(this.runs,function(idx,name,runs){if(idx>_160){runs[name]=idx-1;}});this.dirty=true;}return this;},updateSeries:function(name,data){if(name in this.runs){var run=this.series[this.runs[name]];run.update(data);this._invalidateDependentPlots(run.plot,false);this._invalidateDependentPlots(run.plot,true);}return this;},getSeriesOrder:function(_161){return func.map(func.filter(this.series,function(run){return run.plot==_161;}),_14c);},setSeriesOrder:function(_162){var _163,_164={},_165=func.filter(_162,function(name){if(!(name in this.runs)||(name in _164)){return false;}var run=this.series[this.runs[name]];if(_163){if(run.plot!=_163){return false;}}else{_163=run.plot;}_164[name]=1;return true;},this);func.forEach(this.series,function(run){var name=run.name;if(!(name in _164)&&run.plot==_163){_165.push(name);}});var _166=func.map(_165,function(name){return this.series[this.runs[name]];},this);this.series=_166.concat(func.filter(this.series,function(run){return run.plot!=_163;}));func.forEach(this.series,function(run,i){this.runs[run.name]=i;},this);this.dirty=true;return this;},moveSeriesToFront:function(name){if(name in this.runs){var _167=this.runs[name],_168=this.getSeriesOrder(this.series[_167].plot);if(name!=_168[0]){_168.splice(_167,1);_168.unshift(name);return this.setSeriesOrder(_168);}}return this;},moveSeriesToBack:function(name){if(name in this.runs){var _169=this.runs[name],_16a=this.getSeriesOrder(this.series[_169].plot);if(name!=_16a[_16a.length-1]){_16a.splice(_169,1);_16a.push(name);return this.setSeriesOrder(_16a);}}return this;},resize:function(_16b,_16c){var box;switch(arguments.length){case 1:box=lang.mixin({},_16b);_13d.setMarginBox(this.node,box);break;case 2:box={w:_16b,h:_16c};_13d.setMarginBox(this.node,box);break;}box=_13d.getMarginBox(this.node);var d=this.surface.getDimensions();if(d.width!=box.w||d.height!=box.h){this.surface.setDimensions(box.w,box.h);this.dirty=true;return this.render();}else{return this;}},getGeometry:function(){var ret={};func.forIn(this.axes,function(axis){if(axis.initialized()){ret[axis.name]={name:axis.name,vertical:axis.vertical,scaler:axis.scaler,ticks:axis.ticks};}});return ret;},setAxisWindow:function(name,_16d,_16e,zoom){var axis=this.axes[name];if(axis){axis.setWindow(_16d,_16e);arr.forEach(this.stack,function(plot){if(plot.hAxis==name||plot.vAxis==name){plot.zoom=zoom;}});}return this;},setWindow:function(sx,sy,dx,dy,zoom){if(!("plotArea" in this)){this.calculateGeometry();}func.forIn(this.axes,function(axis){var _16f,_170,_171=axis.getScaler().bounds,s=_171.span/(_171.upper-_171.lower);if(axis.vertical){_16f=sy;_170=dy/s/_16f;}else{_16f=sx;_170=dx/s/_16f;}axis.setWindow(_16f,_170);});arr.forEach(this.stack,function(plot){plot.zoom=zoom;});return this;},zoomIn:function(name,_172){var axis=this.axes[name];if(axis){var _173,_174,_175=axis.getScaler().bounds;var _176=Math.min(_172[0],_172[1]);var _177=Math.max(_172[0],_172[1]);_176=_172[0]<_175.lower?_175.lower:_176;_177=_172[1]>_175.upper?_175.upper:_177;_173=(_175.upper-_175.lower)/(_177-_176);_174=_176-_175.lower;this.setAxisWindow(name,_173,_174);this.render();}},calculateGeometry:function(){if(this.dirty){return this.fullGeometry();}var _178=arr.filter(this.stack,function(plot){return plot.dirty||(plot.hAxis&&this.axes[plot.hAxis].dirty)||(plot.vAxis&&this.axes[plot.vAxis].dirty);},this);_179(_178,this.plotArea);return this;},fullGeometry:function(){this._makeDirty();arr.forEach(this.stack,_147);if(!this.theme){this.setTheme(new _141(dojox.charting._def));}arr.forEach(this.series,function(run){if(!(run.plot in this.plots)){if(!dc.plot2d||!dc.plot2d.Default){throw Error("Can't find plot: Default - didn't you forget to dojo"+".require() it?");}var plot=new dc.plot2d.Default(this,{});plot.name=run.plot;this.plots[run.plot]=this.stack.length;this.stack.push(plot);}this.stack[this.plots[run.plot]].addSeries(run);},this);arr.forEach(this.stack,function(plot){if(plot.hAxis){plot.setAxis(this.axes[plot.hAxis]);}if(plot.vAxis){plot.setAxis(this.axes[plot.vAxis]);}},this);var dim=this.dim=this.surface.getDimensions();dim.width=g.normalizedLength(dim.width);dim.height=g.normalizedLength(dim.height);func.forIn(this.axes,_147);_179(this.stack,dim);var _17a=this.offsets={l:0,r:0,t:0,b:0};func.forIn(this.axes,function(axis){func.forIn(axis.getOffsets(),function(o,i){_17a[i]+=o;});});if(this.title){this.titleGap=(this.titleGap==0)?0:this.titleGap||this.theme.chart.titleGap||20;this.titlePos=this.titlePos||this.theme.chart.titlePos||"top";this.titleFont=this.titleFont||this.theme.chart.titleFont;this.titleFontColor=this.titleFontColor||this.theme.chart.titleFontColor||"black";var _17b=g.normalizedLength(g.splitFontString(this.titleFont).size);_17a[this.titlePos=="top"?"t":"b"]+=(_17b+this.titleGap);}func.forIn(this.margins,function(o,i){_17a[i]+=o;});this.plotArea={width:dim.width-_17a.l-_17a.r,height:dim.height-_17a.t-_17a.b};func.forIn(this.axes,_147);_179(this.stack,this.plotArea);return this;},render:function(){if(this.theme){this.theme.clear();}if(this.dirty){return this.fullRender();}this.calculateGeometry();func.forEachRev(this.stack,function(plot){plot.render(this.dim,this.offsets);},this);func.forIn(this.axes,function(axis){axis.render(this.dim,this.offsets);},this);this._makeClean();if(this.surface.render){this.surface.render();}return this;},fullRender:function(){this.fullGeometry();var _17c=this.offsets,dim=this.dim,rect;arr.forEach(this.series,_148);func.forIn(this.axes,_148);arr.forEach(this.stack,_148);arr.forEach(this._clearRects,function(_17d){_144.dispose(_17d);});this._clearRects=[];if(this.chartTitle&&this.chartTitle.tagName){_13e.destroy(this.chartTitle);}this.surface.clear();this.chartTitle=null;var t=this.theme,fill=t.plotarea&&t.plotarea.fill,_17e=t.plotarea&&t.plotarea.stroke,w=Math.max(0,dim.width-_17c.l-_17c.r),h=Math.max(0,dim.height-_17c.t-_17c.b),rect={x:_17c.l-1,y:_17c.t-1,width:w+2,height:h+2};if(fill){fill=_140.prototype._shapeFill(_140.prototype._plotFill(fill,dim,_17c),rect);this._clearRects.push(this.surface.createRect(rect).setFill(fill));}if(_17e){this._clearRects.push(this.surface.createRect({x:_17c.l,y:_17c.t,width:w+1,height:h+1}).setStroke(_17e));}func.foldr(this.stack,function(z,plot){return plot.render(dim,_17c),0;},0);fill=this.fill!==undefined?this.fill:(t.chart&&t.chart.fill);_17e=this.stroke!==undefined?this.stroke:(t.chart&&t.chart.stroke);if(fill=="inherit"){var node=this.node,fill=new _13f(html.style(node,"backgroundColor"));while(fill.a==0&&node!=document.documentElement){fill=new _13f(html.style(node,"backgroundColor"));node=node.parentNode;}}if(fill){fill=_140.prototype._plotFill(fill,dim,_17c);if(_17c.l){rect={width:_17c.l,height:dim.height+1};this._clearRects.push(this.surface.createRect(rect).setFill(_140.prototype._shapeFill(fill,rect)));}if(_17c.r){rect={x:dim.width-_17c.r,width:_17c.r+1,height:dim.height+2};this._clearRects.push(this.surface.createRect(rect).setFill(_140.prototype._shapeFill(fill,rect)));}if(_17c.t){rect={width:dim.width+1,height:_17c.t};this._clearRects.push(this.surface.createRect(rect).setFill(_140.prototype._shapeFill(fill,rect)));}if(_17c.b){rect={y:dim.height-_17c.b,width:dim.width+1,height:_17c.b+2};this._clearRects.push(this.surface.createRect(rect).setFill(_140.prototype._shapeFill(fill,rect)));}}if(_17e){this._clearRects.push(this.surface.createRect({width:dim.width-1,height:dim.height-1}).setStroke(_17e));}if(this.title){var _17f=(g.renderer=="canvas"),_180=_17f||!has("ie")&&!has("opera")?"html":"gfx",_181=g.normalizedLength(g.splitFontString(this.titleFont).size);this.chartTitle=_143.createText[_180](this,this.surface,dim.width/2,this.titlePos=="top"?_181+this.margins.t:dim.height-this.margins.b,"middle",this.title,this.titleFont,this.titleFontColor);}func.forIn(this.axes,function(axis){axis.render(dim,_17c);});this._makeClean();if(this.surface.render){this.surface.render();}return this;},delayedRender:function(){if(!this._delayedRenderHandle){this._delayedRenderHandle=setTimeout(lang.hitch(this,function(){clearTimeout(this._delayedRenderHandle);this._delayedRenderHandle=null;this.render();}),this.delayInMs);}return this;},connectToPlot:function(name,_182,_183){return name in this.plots?this.stack[this.plots[name]].connect(_182,_183):null;},fireEvent:function(_184,_185,_186){if(_184 in this.runs){var _187=this.series[this.runs[_184]].plot;if(_187 in this.plots){var plot=this.stack[this.plots[_187]];if(plot){plot.fireEvent(_184,_185,_186);}}}return this;},_makeClean:function(){arr.forEach(this.axes,_14a);arr.forEach(this.stack,_14a);arr.forEach(this.series,_14a);this.dirty=false;},_makeDirty:function(){arr.forEach(this.axes,_14b);arr.forEach(this.stack,_14b);arr.forEach(this.series,_14b);this.dirty=true;},_invalidateDependentPlots:function(_188,_189){if(_188 in this.plots){var plot=this.stack[this.plots[_188]],axis,_18a=_189?"vAxis":"hAxis";if(plot[_18a]){axis=this.axes[plot[_18a]];if(axis&&axis.dependOnData()){axis.dirty=true;arr.forEach(this.stack,function(p){if(p[_18a]&&p[_18a]==plot[_18a]){p.dirty=true;}});}}else{plot.dirty=true;}}}});function _18b(_18c){return {min:_18c.hmin,max:_18c.hmax};};function _18d(_18e){return {min:_18e.vmin,max:_18e.vmax};};function _18f(_190,h){_190.hmin=h.min;_190.hmax=h.max;};function _191(_192,v){_192.vmin=v.min;_192.vmax=v.max;};function _193(_194,_195){if(_194&&_195){_194.min=Math.min(_194.min,_195.min);_194.max=Math.max(_194.max,_195.max);}return _194||_195;};function _179(_196,_197){var _198={},axes={};arr.forEach(_196,function(plot){var _199=_198[plot.name]=plot.getSeriesStats();if(plot.hAxis){axes[plot.hAxis]=_193(axes[plot.hAxis],_18b(_199));}if(plot.vAxis){axes[plot.vAxis]=_193(axes[plot.vAxis],_18d(_199));}});arr.forEach(_196,function(plot){var _19a=_198[plot.name];if(plot.hAxis){_18f(_19a,axes[plot.hAxis]);}if(plot.vAxis){_191(_19a,axes[plot.vAxis]);}plot.initializeScalers(_197,_19a);});};return dojox.charting.Chart;});},"dojox/charting/Element":function(){define("dojox/charting/Element",["dojo/_base/lang","dojo/_base/array","dojo/dom-construct","dojo/_base/declare","dojox/gfx","dojox/gfx/utils","dojox/gfx/shape"],function(lang,arr,_19b,_19c,gfx,_19d,_19e){return _19c("dojox.charting.Element",null,{chart:null,group:null,htmlElements:null,dirty:true,constructor:function(_19f){this.chart=_19f;this.group=null;this.htmlElements=[];this.dirty=true;this.trailingSymbol="...";this._events=[];},createGroup:function(_1a0){if(!_1a0){_1a0=this.chart.surface;}if(!this.group){this.group=_1a0.createGroup();}return this;},purgeGroup:function(){this.destroyHtmlElements();if(this.group){_19d.forEach(this.group,function(_1a1){_19e.dispose(_1a1);});if(this.group.rawNode){_19b.empty(this.group.rawNode);}this.group.clear();this.group.removeShape();_19e.dispose(this.group);this.group=null;}this.dirty=true;if(this._events.length){arr.forEach(this._events,function(item){item.shape.disconnect(item.handle);});this._events=[];}return this;},cleanGroup:function(_1a2){this.destroyHtmlElements();if(!_1a2){_1a2=this.chart.surface;}if(this.group){var _1a3;_19d.forEach(this.group,function(_1a4){_19e.dispose(_1a4);});if(this.group.rawNode){_1a3=this.group.bgNode;_19b.empty(this.group.rawNode);}this.group.clear();if(_1a3){this.group.rawNode.appendChild(_1a3);}}else{this.group=_1a2.createGroup();}this.dirty=true;return this;},destroyHtmlElements:function(){if(this.htmlElements.length){arr.forEach(this.htmlElements,_19b.destroy);this.htmlElements=[];}},destroy:function(){this.purgeGroup();},getTextWidth:function(s,font){return gfx._base._getTextBox(s,{font:font}).w||0;},getTextWithLimitLength:function(s,font,_1a5,_1a6){if(!s||s.length<=0){return {text:"",truncated:_1a6||false};}if(!_1a5||_1a5<=0){return {text:s,truncated:_1a6||false};}var _1a7=2,_1a8=0.618,_1a9=s.substring(0,1)+this.trailingSymbol,_1aa=this.getTextWidth(_1a9,font);if(_1a5<=_1aa){return {text:_1a9,truncated:true};}var _1ab=this.getTextWidth(s,font);if(_1ab<=_1a5){return {text:s,truncated:_1a6||false};}else{var _1ac=0,end=s.length;while(_1ac<end){if(end-_1ac<=_1a7){while(this.getTextWidth(s.substring(0,_1ac)+this.trailingSymbol,font)>_1a5){_1ac-=1;}return {text:(s.substring(0,_1ac)+this.trailingSymbol),truncated:true};}var _1ad=_1ac+Math.round((end-_1ac)*_1a8),_1ae=this.getTextWidth(s.substring(0,_1ad),font);if(_1ae<_1a5){_1ac=_1ad;end=end;}else{_1ac=_1ac;end=_1ad;}}}},getTextWithLimitCharCount:function(s,font,_1af,_1b0){if(!s||s.length<=0){return {text:"",truncated:_1b0||false};}if(!_1af||_1af<=0||s.length<=_1af){return {text:s,truncated:_1b0||false};}return {text:s.substring(0,_1af)+this.trailingSymbol,truncated:true};},_plotFill:function(fill,dim,_1b1){if(!fill||!fill.type||!fill.space){return fill;}var _1b2=fill.space;switch(fill.type){case "linear":if(_1b2==="plot"||_1b2==="shapeX"||_1b2==="shapeY"){fill=gfx.makeParameters(gfx.defaultLinearGradient,fill);fill.space=_1b2;if(_1b2==="plot"||_1b2==="shapeX"){var span=dim.height-_1b1.t-_1b1.b;fill.y1=_1b1.t+span*fill.y1/100;fill.y2=_1b1.t+span*fill.y2/100;}if(_1b2==="plot"||_1b2==="shapeY"){var span=dim.width-_1b1.l-_1b1.r;fill.x1=_1b1.l+span*fill.x1/100;fill.x2=_1b1.l+span*fill.x2/100;}}break;case "radial":if(_1b2==="plot"){fill=gfx.makeParameters(gfx.defaultRadialGradient,fill);fill.space=_1b2;var _1b3=dim.width-_1b1.l-_1b1.r,_1b4=dim.height-_1b1.t-_1b1.b;fill.cx=_1b1.l+_1b3*fill.cx/100;fill.cy=_1b1.t+_1b4*fill.cy/100;fill.r=fill.r*Math.sqrt(_1b3*_1b3+_1b4*_1b4)/200;}break;case "pattern":if(_1b2==="plot"||_1b2==="shapeX"||_1b2==="shapeY"){fill=gfx.makeParameters(gfx.defaultPattern,fill);fill.space=_1b2;if(_1b2==="plot"||_1b2==="shapeX"){var span=dim.height-_1b1.t-_1b1.b;fill.y=_1b1.t+span*fill.y/100;fill.height=span*fill.height/100;}if(_1b2==="plot"||_1b2==="shapeY"){var span=dim.width-_1b1.l-_1b1.r;fill.x=_1b1.l+span*fill.x/100;fill.width=span*fill.width/100;}}break;}return fill;},_shapeFill:function(fill,bbox){if(!fill||!fill.space){return fill;}var _1b5=fill.space;switch(fill.type){case "linear":if(_1b5==="shape"||_1b5==="shapeX"||_1b5==="shapeY"){fill=gfx.makeParameters(gfx.defaultLinearGradient,fill);fill.space=_1b5;if(_1b5==="shape"||_1b5==="shapeX"){var span=bbox.width;fill.x1=bbox.x+span*fill.x1/100;fill.x2=bbox.x+span*fill.x2/100;}if(_1b5==="shape"||_1b5==="shapeY"){var span=bbox.height;fill.y1=bbox.y+span*fill.y1/100;fill.y2=bbox.y+span*fill.y2/100;}}break;case "radial":if(_1b5==="shape"){fill=gfx.makeParameters(gfx.defaultRadialGradient,fill);fill.space=_1b5;fill.cx=bbox.x+bbox.width/2;fill.cy=bbox.y+bbox.height/2;fill.r=fill.r*bbox.width/200;}break;case "pattern":if(_1b5==="shape"||_1b5==="shapeX"||_1b5==="shapeY"){fill=gfx.makeParameters(gfx.defaultPattern,fill);fill.space=_1b5;if(_1b5==="shape"||_1b5==="shapeX"){var span=bbox.width;fill.x=bbox.x+span*fill.x/100;fill.width=span*fill.width/100;}if(_1b5==="shape"||_1b5==="shapeY"){var span=bbox.height;fill.y=bbox.y+span*fill.y/100;fill.height=span*fill.height/100;}}break;}return fill;},_pseudoRadialFill:function(fill,_1b6,_1b7,_1b8,end){if(!fill||fill.type!=="radial"||fill.space!=="shape"){return fill;}var _1b9=fill.space;fill=gfx.makeParameters(gfx.defaultRadialGradient,fill);fill.space=_1b9;if(arguments.length<4){fill.cx=_1b6.x;fill.cy=_1b6.y;fill.r=fill.r*_1b7/100;return fill;}var _1ba=arguments.length<5?_1b8:(end+_1b8)/2;return {type:"linear",x1:_1b6.x,y1:_1b6.y,x2:_1b6.x+fill.r*_1b7*Math.cos(_1ba)/100,y2:_1b6.y+fill.r*_1b7*Math.sin(_1ba)/100,colors:fill.colors};return fill;}});});},"dojox/gfx":function(){require({cache:{"dojox/gfx/_base":function(){define(["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(lang,html,_1bb,has,win,arr,dom,_1bc,_1bd){var g=lang.getObject("dojox.gfx",true),b=g._base={};g._hasClass=function(node,_1be){var cls=node.getAttribute("className");return cls&&(" "+cls+" ").indexOf(" "+_1be+" ")>=0;};g._addClass=function(node,_1bf){var cls=node.getAttribute("className")||"";if(!cls||(" "+cls+" ").indexOf(" "+_1bf+" ")<0){node.setAttribute("className",cls+(cls?" ":"")+_1bf);}};g._removeClass=function(node,_1c0){var cls=node.getAttribute("className");if(cls){node.setAttribute("className",cls.replace(new RegExp("(^|\\s+)"+_1c0+"(\\s+|$)"),"$1$2"));}};b._getFontMeasurements=function(){var _1c1={"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=_1bc.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 _1c1){div.style.fontSize=p;_1c1[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}win.body().removeChild(div);return _1c1;};var _1c2=null;b._getCachedFontMeasurements=function(_1c3){if(_1c3||!_1c2){_1c2=b._getFontMeasurements();}return _1c2;};var _1c4=null,_1c5={};b._getTextBox=function(text,_1c6,_1c7){var m,s,al=arguments.length;var i;if(!_1c4){_1c4=_1bc.create("div",{style:{position:"absolute",top:"-10000px",left:"0"}},win.body());}m=_1c4;m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(al>1&&_1c6){for(i in _1c6){if(i in _1c5){continue;}s[i]=_1c6[i];}}if(al>2&&_1c7){m.className=_1c7;}m.innerHTML=text;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 _1bd.getMarginBox(m);}};var _1c8=0;b._getUniqueId=function(){var id;do{id=dojo._scopeName+"xUnique"+(++_1c8);}while(dom.byId(id));return id;};lang.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 _1c9={};return function(type){var t=_1c9[type];if(t){return new t();}t=_1c9[type]=new Function();t.prototype=g["default"+type];return new t();};})(),normalizeColor:function(_1ca){return (_1ca instanceof _1bb)?_1ca:new _1bb(_1ca);},normalizeParameters:function(_1cb,_1cc){var x;if(_1cc){var _1cd={};for(x in _1cb){if(x in _1cc&&!(x in _1cd)){_1cb[x]=_1cc[x];}}}return _1cb;},makeParameters:function(_1ce,_1cf){var i=null;if(!_1cf){return lang.delegate(_1ce);}var _1d0={};for(i in _1ce){if(!(i in _1d0)){_1d0[i]=lang.clone((i in _1cf)?_1cf[i]:_1ce[i]);}}return _1d0;},formatNumber:function(x,_1d1){var val=x.toString();if(val.indexOf("e")>=0){val=x.toFixed(4);}else{var _1d2=val.indexOf(".");if(_1d2>=0&&val.length-_1d2>5){val=x.toFixed(4);}}if(x<0){return val;}return _1d1?" "+val:val;},makeFontString:function(font){return font.style+" "+font.variant+" "+font.weight+" "+font.size+" "+font.family;},splitFontString:function(str){var font=g.getDefault("Font");var t=str.split(/\s+/);do{if(t.length<5){break;}font.style=t[0];font.variant=t[1];font.weight=t[2];var i=t[3].indexOf("/");font.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(j<t.length){font.family=t.slice(j).join(" ");}}while(false);return font;},cm_in_pt:72/2.54,mm_in_pt:7.2/2.54,px_in_pt:function(){return g._base._getCachedFontMeasurements()["12pt"]/12;},pt2px:function(len){return len*g.px_in_pt();},px2pt:function(len){return len/g.px_in_pt();},normalizedLength:function(len){if(len.length===0){return 0;}if(len.length>2){var _1d3=g.px_in_pt();var val=parseFloat(len);switch(len.slice(-2)){case "px":return val;case "pt":return val*_1d3;case "in":return val*72*_1d3;case "pc":return val*12*_1d3;case "mm":return val*g.mm_in_pt*_1d3;case "cm":return val*g.cm_in_pt*_1d3;}}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(_1d4){var ns=typeof _1d4=="string"?g[_1d4]:_1d4;if(ns){arr.forEach(["Group","Rect","Ellipse","Circle","Line","Polyline","Image","Text","Path","TextPath","Surface","createSurface","fixTarget"],function(name){g[name]=ns[name];});}}});return g;});},"dojox/gfx/renderer":function(){define(["./_base","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/config"],function(g,lang,has,win,_1d5){var _1d6=null;has.add("vml",function(_1d7,_1d8,_1d9){_1d9.innerHTML="<v:shape adj=\"1\"/>";var _1da=("adj" in _1d9.firstChild);_1d9.innerHTML="";return _1da;});return {load:function(id,_1db,load){if(_1d6&&id!="force"){load(_1d6);return;}var _1dc=_1d5.forceGfxRenderer,_1dd=!_1dc&&(lang.isString(_1d5.gfxRenderer)?_1d5.gfxRenderer:"svg,vml,canvas,silverlight").split(","),_1de,_1df;while(!_1dc&&_1dd.length){switch(_1dd.shift()){case "svg":if("SVGAngle" in win.global){_1dc="svg";}break;case "vml":if(has("vml")){_1dc="vml";}break;case "silverlight":try{if(has("ie")){_1de=new ActiveXObject("AgControl.AgControl");if(_1de&&_1de.IsVersionSupported("1.0")){_1df=true;}}else{if(navigator.plugins["Silverlight Plug-In"]){_1df=true;}}}catch(e){_1df=false;}finally{_1de=null;}if(_1df){_1dc="silverlight";}break;case "canvas":if(win.global.CanvasRenderingContext2D){_1dc="canvas";}break;}}if(_1dc==="canvas"&&_1d5.canvasEvents!==false){_1dc="canvasWithEvents";}if(_1d5.isDebug){}function _1e0(){_1db(["dojox/gfx/"+_1dc],function(_1e1){g.renderer=_1dc;_1d6=_1e1;load(_1e1);});};if(_1dc=="svg"&&typeof window.svgweb!="undefined"){window.svgweb.addOnLoad(_1e0);}else{_1e0();}}};});}}});define("dojox/gfx",["dojo/_base/lang","./gfx/_base","./gfx/renderer!"],function(lang,_1e2,_1e3){_1e2.switchTo(_1e3);return _1e2;});},"dojox/gfx/_base":function(){define(["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(lang,html,_1e4,has,win,arr,dom,_1e5,_1e6){var g=lang.getObject("dojox.gfx",true),b=g._base={};g._hasClass=function(node,_1e7){var cls=node.getAttribute("className");return cls&&(" "+cls+" ").indexOf(" "+_1e7+" ")>=0;};g._addClass=function(node,_1e8){var cls=node.getAttribute("className")||"";if(!cls||(" "+cls+" ").indexOf(" "+_1e8+" ")<0){node.setAttribute("className",cls+(cls?" ":"")+_1e8);}};g._removeClass=function(node,_1e9){var cls=node.getAttribute("className");if(cls){node.setAttribute("className",cls.replace(new RegExp("(^|\\s+)"+_1e9+"(\\s+|$)"),"$1$2"));}};b._getFontMeasurements=function(){var _1ea={"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=_1e5.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 _1ea){div.style.fontSize=p;_1ea[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}win.body().removeChild(div);return _1ea;};var _1eb=null;b._getCachedFontMeasurements=function(_1ec){if(_1ec||!_1eb){_1eb=b._getFontMeasurements();}return _1eb;};var _1ed=null,_1ee={};b._getTextBox=function(text,_1ef,_1f0){var m,s,al=arguments.length;var i;if(!_1ed){_1ed=_1e5.create("div",{style:{position:"absolute",top:"-10000px",left:"0"}},win.body());}m=_1ed;m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(al>1&&_1ef){for(i in _1ef){if(i in _1ee){continue;}s[i]=_1ef[i];}}if(al>2&&_1f0){m.className=_1f0;}m.innerHTML=text;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 _1e6.getMarginBox(m);}};var _1f1=0;b._getUniqueId=function(){var id;do{id=dojo._scopeName+"xUnique"+(++_1f1);}while(dom.byId(id));return id;};lang.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 _1f2={};return function(type){var t=_1f2[type];if(t){return new t();}t=_1f2[type]=new Function();t.prototype=g["default"+type];return new t();};})(),normalizeColor:function(_1f3){return (_1f3 instanceof _1e4)?_1f3:new _1e4(_1f3);},normalizeParameters:function(_1f4,_1f5){var x;if(_1f5){var _1f6={};for(x in _1f4){if(x in _1f5&&!(x in _1f6)){_1f4[x]=_1f5[x];}}}return _1f4;},makeParameters:function(_1f7,_1f8){var i=null;if(!_1f8){return lang.delegate(_1f7);}var _1f9={};for(i in _1f7){if(!(i in _1f9)){_1f9[i]=lang.clone((i in _1f8)?_1f8[i]:_1f7[i]);}}return _1f9;},formatNumber:function(x,_1fa){var val=x.toString();if(val.indexOf("e")>=0){val=x.toFixed(4);}else{var _1fb=val.indexOf(".");if(_1fb>=0&&val.length-_1fb>5){val=x.toFixed(4);}}if(x<0){return val;}return _1fa?" "+val:val;},makeFontString:function(font){return font.style+" "+font.variant+" "+font.weight+" "+font.size+" "+font.family;},splitFontString:function(str){var font=g.getDefault("Font");var t=str.split(/\s+/);do{if(t.length<5){break;}font.style=t[0];font.variant=t[1];font.weight=t[2];var i=t[3].indexOf("/");font.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(j<t.length){font.family=t.slice(j).join(" ");}}while(false);return font;},cm_in_pt:72/2.54,mm_in_pt:7.2/2.54,px_in_pt:function(){return g._base._getCachedFontMeasurements()["12pt"]/12;},pt2px:function(len){return len*g.px_in_pt();},px2pt:function(len){return len/g.px_in_pt();},normalizedLength:function(len){if(len.length===0){return 0;}if(len.length>2){var _1fc=g.px_in_pt();var val=parseFloat(len);switch(len.slice(-2)){case "px":return val;case "pt":return val*_1fc;case "in":return val*72*_1fc;case "pc":return val*12*_1fc;case "mm":return val*g.mm_in_pt*_1fc;case "cm":return val*g.cm_in_pt*_1fc;}}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(_1fd){var ns=typeof _1fd=="string"?g[_1fd]:_1fd;if(ns){arr.forEach(["Group","Rect","Ellipse","Circle","Line","Polyline","Image","Text","Path","TextPath","Surface","createSurface","fixTarget"],function(name){g[name]=ns[name];});}}});return g;});},"dojox/gfx/renderer":function(){define(["./_base","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/config"],function(g,lang,has,win,_1fe){var _1ff=null;has.add("vml",function(_200,_201,_202){_202.innerHTML="<v:shape adj=\"1\"/>";var _203=("adj" in _202.firstChild);_202.innerHTML="";return _203;});return {load:function(id,_204,load){if(_1ff&&id!="force"){load(_1ff);return;}var _205=_1fe.forceGfxRenderer,_206=!_205&&(lang.isString(_1fe.gfxRenderer)?_1fe.gfxRenderer:"svg,vml,canvas,silverlight").split(","),_207,_208;while(!_205&&_206.length){switch(_206.shift()){case "svg":if("SVGAngle" in win.global){_205="svg";}break;case "vml":if(has("vml")){_205="vml";}break;case "silverlight":try{if(has("ie")){_207=new ActiveXObject("AgControl.AgControl");if(_207&&_207.IsVersionSupported("1.0")){_208=true;}}else{if(navigator.plugins["Silverlight Plug-In"]){_208=true;}}}catch(e){_208=false;}finally{_207=null;}if(_208){_205="silverlight";}break;case "canvas":if(win.global.CanvasRenderingContext2D){_205="canvas";}break;}}if(_205==="canvas"&&_1fe.canvasEvents!==false){_205="canvasWithEvents";}if(_1fe.isDebug){}function _209(){_204(["dojox/gfx/"+_205],function(_20a){g.renderer=_205;_1ff=_20a;load(_20a);});};if(_205=="svg"&&typeof window.svgweb!="undefined"){window.svgweb.addOnLoad(_209);}else{_209();}}};});},"dojox/gfx/utils":function(){define(["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(_20b,lang,g,html,arr,win,_20c,_20d,has,_20e,_20f){var gu=g.utils={};lang.mixin(gu,{forEach:function(_210,f,o){o=o||win.global;f.call(o,_210);if(_210 instanceof g.Surface||_210 instanceof g.Group){arr.forEach(_210.children,function(_211){gu.forEach(_211,f,o);});}},serialize:function(_212){var t={},v,_213=_212 instanceof g.Surface;if(_213||_212 instanceof g.Group){t.children=arr.map(_212.children,gu.serialize);if(_213){return t.children;}}else{t.shape=_212.getShape();}if(_212.getTransform){v=_212.getTransform();if(v){t.transform=v;}}if(_212.getStroke){v=_212.getStroke();if(v){t.stroke=v;}}if(_212.getFill){v=_212.getFill();if(v){t.fill=v;}}if(_212.getFont){v=_212.getFont();if(v){t.font=v;}}return t;},toJson:function(_214,_215){return _20c.toJson(gu.serialize(_214),_215);},deserialize:function(_216,_217){if(_217 instanceof Array){return arr.map(_217,lang.hitch(null,gu.deserialize,_216));}var _218=("shape" in _217)?_216.createShape(_217.shape):_216.createGroup();if("transform" in _217){_218.setTransform(_217.transform);}if("stroke" in _217){_218.setStroke(_217.stroke);}if("fill" in _217){_218.setFill(_217.fill);}if("font" in _217){_218.setFont(_217.font);}if("children" in _217){arr.forEach(_217.children,lang.hitch(null,gu.deserialize,_218));}return _218;},fromJson:function(_219,json){return gu.deserialize(_219,_20c.fromJson(json));},toSvg:function(_21a){var _21b=new _20d();if(g.renderer==="svg"){try{var svg=gu._cleanSvg(gu._innerXML(_21a.rawNode));_21b.callback(svg);}catch(e){_21b.errback(e);}}else{if(!gu._initSvgSerializerDeferred){gu._initSvgSerializer();}var _21c=gu.toJson(_21a);var _21d=function(){try{var sDim=_21a.getDimensions();var _21e=sDim.width;var _21f=sDim.height;var node=gu._gfxSvgProxy.document.createElement("div");gu._gfxSvgProxy.document.body.appendChild(node);win.withDoc(gu._gfxSvgProxy.document,function(){html.style(node,"width",_21e);html.style(node,"height",_21f);},this);var ts=gu._gfxSvgProxy[dojox._scopeName].gfx.createSurface(node,_21e,_21f);var draw=function(_220){try{gu._gfxSvgProxy[dojox._scopeName].gfx.utils.fromJson(_220,_21c);var svg=gu._cleanSvg(node.innerHTML);_220.clear();_220.destroy();gu._gfxSvgProxy.document.body.removeChild(node);_21b.callback(svg);}catch(e){_21b.errback(e);}};ts.whenLoaded(null,draw);}catch(ex){_21b.errback(ex);}};if(gu._initSvgSerializerDeferred.fired>0){_21d();}else{gu._initSvgSerializerDeferred.addCallback(_21d);}}return _21b;},_gfxSvgProxy:null,_initSvgSerializerDeferred:null,_svgSerializerInitialized:function(){gu._initSvgSerializerDeferred.callback(true);},_initSvgSerializer:function(){if(!gu._initSvgSerializerDeferred){gu._initSvgSerializerDeferred=new _20d();var f=win.doc.createElement("iframe");html.style(f,{display:"none",position:"absolute",width:"1em",height:"1em",top:"-10000px"});var intv;if(has("ie")){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onreadystatechange=function(){};intv=setInterval(function(){if(f.contentWindow[_20b.scopeMap["dojo"][1]._scopeName]&&f.contentWindow[_20b.scopeMap["dojox"][1]._scopeName].gfx&&f.contentWindow[_20b.scopeMap["dojox"][1]._scopeName].gfx.utils){clearInterval(intv);f.contentWindow.parent[_20b.scopeMap["dojox"][1]._scopeName].gfx.utils._gfxSvgProxy=f.contentWindow;f.contentWindow.parent[_20b.scopeMap["dojox"][1]._scopeName].gfx.utils._svgSerializerInitialized();}},50);}};}else{f.onload=function(){f.onload=function(){};intv=setInterval(function(){if(f.contentWindow[_20b.scopeMap["dojo"][1]._scopeName]&&f.contentWindow[_20b.scopeMap["dojox"][1]._scopeName].gfx&&f.contentWindow[_20b.scopeMap["dojox"][1]._scopeName].gfx.utils){clearInterval(intv);f.contentWindow.parent[_20b.scopeMap["dojox"][1]._scopeName].gfx.utils._gfxSvgProxy=f.contentWindow;f.contentWindow.parent[_20b.scopeMap["dojox"][1]._scopeName].gfx.utils._svgSerializerInitialized();}},50);};}var uri=(_20f["dojoxGfxSvgProxyFrameUrl"]||_20e.toUrl("dojox/gfx/resources/gfxSvgProxyFrame.html"));f.setAttribute("src",uri.toString());win.body().appendChild(f);}},_innerXML:function(node){if(node.innerXML){return node.innerXML;}else{if(node.xml){return node.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(node);}}}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="<svg xmlns=\"http://www.w3.org/2000/svg\""+svg;}if(svg.indexOf("xmlns:xlink=\"http://www.w3.org/1999/xlink\"")==-1){svg=svg.substring(4,svg.length);svg="<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\""+svg;}if(svg.indexOf("xlink:href")===-1){svg=svg.replace(/href\s*=/g,"xlink:href=");}svg=svg.replace(/\bdojoGfx\w*\s*=\s*(['"])\w*\1/g,"");svg=svg.replace(/\b__gfxObject__\s*=\s*(['"])\w*\1/g,"");svg=svg.replace(/[=]([^"']+?)(\s|>)/g,"=\"$1\"$2");svg=svg.replace(/\bstroke-opacity\w*\s*=\s*(['"])undefined\1/g,"");}return svg;}});return gu;});},"dojox/gfx/shape":function(){define(["./_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,lang,_221,win,has,_222,arr,_223,_224,_225){var _226=g.shape={};var _227={};var _228={};var _229=0,_22a=has("ie")<9;function _22b(_22c){var _22d={};for(var key in _22c){if(_22c.hasOwnProperty(key)){_22d[key]=_22c[key];}}return _22d;};_226.register=function(_22e){var t=_22e.declaredClass.split(".").pop();var i=t in _227?++_227[t]:((_227[t]=0));var uid=t+i;_228[uid]=_22e;return uid;};_226.byId=function(id){return _228[id];};_226.dispose=function(_22f){delete _228[_22f.getUID()];++_229;if(_22a&&_229>10000){_228=_22b(_228);_229=0;}};_221("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=_226.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=_225;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(_230){this.shape=g.makeParameters(this.shape,_230);this.bbox=null;return this;},setFill:function(fill){if(!fill){this.fillStyle=null;return this;}var f=null;if(typeof (fill)=="object"&&"type" in fill){switch(fill.type){case "linear":f=g.makeParameters(g.defaultLinearGradient,fill);break;case "radial":f=g.makeParameters(g.defaultRadialGradient,fill);break;case "pattern":f=g.makeParameters(g.defaultPattern,fill);break;}}else{f=g.normalizeColor(fill);}this.fillStyle=f;return this;},setStroke:function(_231){if(!_231){this.strokeStyle=null;return this;}if(typeof _231=="string"||lang.isArray(_231)||_231 instanceof _224){_231={color:_231};}var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_231);s.color=g.normalizeColor(s.color);return this;},setTransform:function(_232){this.matrix=_225.clone(_232?_225.normalize(_232):_225.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(_233){return _233?this.setTransform([this.matrix,_233]):this;},applyLeftTransform:function(_234){return _234?this.setTransform([_234,this.matrix]):this;},applyTransform:function(_235){return _235?this.setTransform([this.matrix,_235]):this;},removeShape:function(_236){if(this.parent){this.parent.remove(this,_236);}return this;},_setParent:function(_237,_238){this.parent=_237;return this._updateParentMatrix(_238);},_updateParentMatrix:function(_239){this.parentMatrix=_239?_225.clone(_239):null;return this._applyTransform();},_getRealMatrix:function(){var m=this.matrix;var p=this.parent;while(p){if(p.matrix){m=_225.multiply(p.matrix,m);}p=p.parent;}return m;}});_226._eventsProcessing={connect:function(name,_23a,_23b){return _222.connect(this.getEventSource(),name,_226.fixCallback(this,g.fixTarget,_23a,_23b));},disconnect:function(_23c){_222.disconnect(_23c);}};_226.fixCallback=function(_23d,_23e,_23f,_240){if(!_240){_240=_23f;_23f=null;}if(lang.isString(_240)){_23f=_23f||win.global;if(!_23f[_240]){throw (["dojox.gfx.shape.fixCallback: scope[\"",_240,"\"] is null (scope=\"",_23f,"\")"].join(""));}return function(e){return _23e(e,_23d)?_23f[_240].apply(_23f,arguments||[]):undefined;};}return !_23f?function(e){return _23e(e,_23d)?_240.apply(_23f,arguments):undefined;}:function(e){return _23e(e,_23d)?_240.apply(_23f,arguments||[]):undefined;};};lang.extend(_226.Shape,_226._eventsProcessing);_226.Container={_init:function(){this.children=[];},openBatch:function(){},closeBatch:function(){},add:function(_241){var _242=_241.getParent();if(_242){_242.remove(_241,true);}this.children.push(_241);return _241._setParent(this,this._getRealMatrix());},remove:function(_243,_244){for(var i=0;i<this.children.length;++i){if(this.children[i]==_243){if(_244){}else{_243.parent=null;_243.parentMatrix=null;}this.children.splice(i,1);break;}}return this;},clear:function(){var _245;for(var i=0;i<this.children.length;++i){_245=this.children[i];_245.parent=null;_245.parentMatrix=null;}this.children=[];return this;},_moveChildToFront:function(_246){for(var i=0;i<this.children.length;++i){if(this.children[i]==_246){this.children.splice(i,1);this.children.push(_246);break;}}return this;},_moveChildToBack:function(_247){for(var i=0;i<this.children.length;++i){if(this.children[i]==_247){this.children.splice(i,1);this.children.unshift(_247);break;}}return this;}};_221("dojox.gfx.shape.Surface",null,{constructor:function(){this.rawNode=null;this._parent=null;this._nodes=[];this._events=[];},destroy:function(){var _248=function(s){_226.dispose(s);s.parent=null;if(s.children&&s.children.length){arr.forEach(s.children,_248);s.children=null;}};arr.forEach(this.children,_248);this.children=null;arr.forEach(this._nodes,_223.destroy);this._nodes=[];arr.forEach(this._events,_222.disconnect);this._events=[];this.rawNode=null;if(has("ie")){while(this._parent.lastChild){_223.destroy(this._parent.lastChild);}}else{this._parent.innerHTML="";}this._parent=null;},getEventSource:function(){return this.rawNode;},_getRealMatrix:function(){return null;},isLoaded:true,onLoad:function(_249){},whenLoaded:function(_24a,_24b){var f=lang.hitch(_24a,_24b);if(this.isLoaded){f(this);}else{var h=_222.connect(this,"onLoad",function(_24c){_222.disconnect(h);f(_24c);});}}});lang.extend(_226.Surface,_226._eventsProcessing);_221("dojox.gfx.Point",null,{});_221("dojox.gfx.Rectangle",null,{});_221("dojox.gfx.shape.Rect",_226.Shape,{constructor:function(_24d){this.shape=g.getDefault("Rect");this.rawNode=_24d;},getBoundingBox:function(){return this.shape;}});_221("dojox.gfx.shape.Ellipse",_226.Shape,{constructor:function(_24e){this.shape=g.getDefault("Ellipse");this.rawNode=_24e;},getBoundingBox:function(){if(!this.bbox){var _24f=this.shape;this.bbox={x:_24f.cx-_24f.rx,y:_24f.cy-_24f.ry,width:2*_24f.rx,height:2*_24f.ry};}return this.bbox;}});_221("dojox.gfx.shape.Circle",_226.Shape,{constructor:function(_250){this.shape=g.getDefault("Circle");this.rawNode=_250;},getBoundingBox:function(){if(!this.bbox){var _251=this.shape;this.bbox={x:_251.cx-_251.r,y:_251.cy-_251.r,width:2*_251.r,height:2*_251.r};}return this.bbox;}});_221("dojox.gfx.shape.Line",_226.Shape,{constructor:function(_252){this.shape=g.getDefault("Line");this.rawNode=_252;},getBoundingBox:function(){if(!this.bbox){var _253=this.shape;this.bbox={x:Math.min(_253.x1,_253.x2),y:Math.min(_253.y1,_253.y2),width:Math.abs(_253.x2-_253.x1),height:Math.abs(_253.y2-_253.y1)};}return this.bbox;}});_221("dojox.gfx.shape.Polyline",_226.Shape,{constructor:function(_254){this.shape=g.getDefault("Polyline");this.rawNode=_254;},setShape:function(_255,_256){if(_255&&_255 instanceof Array){this.inherited(arguments,[{points:_255}]);if(_256&&this.shape.points.length){this.shape.points.push(this.shape.points[0]);}}else{this.inherited(arguments,[_255]);}return this;},_normalizePoints:function(){var p=this.shape.points,l=p&&p.length;if(l&&typeof p[0]=="number"){var _257=[];for(var i=0;i<l;i+=2){_257.push({x:p[i],y:p[i+1]});}this.shape.points=_257;}},getBoundingBox:function(){if(!this.bbox&&this.shape.points.length){var p=this.shape.points;var l=p.length;var t=p[0];var bbox={l:t.x,t:t.y,r:t.x,b:t.y};for(var i=1;i<l;++i){t=p[i];if(bbox.l>t.x){bbox.l=t.x;}if(bbox.r<t.x){bbox.r=t.x;}if(bbox.t>t.y){bbox.t=t.y;}if(bbox.b<t.y){bbox.b=t.y;}}this.bbox={x:bbox.l,y:bbox.t,width:bbox.r-bbox.l,height:bbox.b-bbox.t};}return this.bbox;}});_221("dojox.gfx.shape.Image",_226.Shape,{constructor:function(_258){this.shape=g.getDefault("Image");this.rawNode=_258;},getBoundingBox:function(){return this.shape;},setStroke:function(){return this;},setFill:function(){return this;}});_221("dojox.gfx.shape.Text",_226.Shape,{constructor:function(_259){this.fontStyle=null;this.shape=g.getDefault("Text");this.rawNode=_259;},getFont:function(){return this.fontStyle;},setFont:function(_25a){this.fontStyle=typeof _25a=="string"?g.splitFontString(_25a):g.makeParameters(g.defaultFont,_25a);this._setFont();return this;}});_226.Creator={createShape:function(_25b){switch(_25b.type){case g.defaultPath.type:return this.createPath(_25b);case g.defaultRect.type:return this.createRect(_25b);case g.defaultCircle.type:return this.createCircle(_25b);case g.defaultEllipse.type:return this.createEllipse(_25b);case g.defaultLine.type:return this.createLine(_25b);case g.defaultPolyline.type:return this.createPolyline(_25b);case g.defaultImage.type:return this.createImage(_25b);case g.defaultText.type:return this.createText(_25b);case g.defaultTextPath.type:return this.createTextPath(_25b);}return null;},createGroup:function(){return this.createObject(g.Group);},createRect:function(rect){return this.createObject(g.Rect,rect);},createEllipse:function(_25c){return this.createObject(g.Ellipse,_25c);},createCircle:function(_25d){return this.createObject(g.Circle,_25d);},createLine:function(line){return this.createObject(g.Line,line);},createPolyline:function(_25e){return this.createObject(g.Polyline,_25e);},createImage:function(_25f){return this.createObject(g.Image,_25f);},createText:function(text){return this.createObject(g.Text,text);},createPath:function(path){return this.createObject(g.Path,path);},createTextPath:function(text){return this.createObject(g.TextPath,{}).setText(text);},createObject:function(_260,_261){return null;}};return _226;});},"dojox/gfx/matrix":function(){define(["./_base","dojo/_base/lang"],function(g,lang){var m=g.matrix={};var _262={};m._degToRad=function(_263){return _262[_263]||(_262[_263]=(Math.PI*_263/180));};m._radToDeg=function(_264){return _264/Math.PI*180;};m.Matrix2D=function(arg){if(arg){if(typeof arg=="number"){this.xx=this.yy=arg;}else{if(arg instanceof Array){if(arg.length>0){var _265=m.normalize(arg[0]);for(var i=1;i<arg.length;++i){var l=_265,r=m.normalize(arg[i]);_265=new m.Matrix2D();_265.xx=l.xx*r.xx+l.xy*r.yx;_265.xy=l.xx*r.xy+l.xy*r.yy;_265.yx=l.yx*r.xx+l.yy*r.yx;_265.yy=l.yx*r.xy+l.yy*r.yy;_265.dx=l.xx*r.dx+l.xy*r.dy+l.dx;_265.dy=l.yx*r.dx+l.yy*r.dy+l.dy;}lang.mixin(this,_265);}}else{lang.mixin(this,arg);}}}};lang.extend(m.Matrix2D,{xx:1,xy:0,yx:0,yy:1,dx:0,dy:0});lang.mixin(m,{identity:new m.Matrix2D(),flipX:new m.Matrix2D({xx:-1}),flipY:new m.Matrix2D({yy:-1}),flipXY:new m.Matrix2D({xx:-1,yy:-1}),translate:function(a,b){if(arguments.length>1){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(_266){var c=Math.cos(_266);var s=Math.sin(_266);return new m.Matrix2D({xx:c,xy:-s,yx:s,yy:c});},rotateg:function(_267){return m.rotate(m._degToRad(_267));},skewX:function(_268){return new m.Matrix2D({xy:Math.tan(_268)});},skewXg:function(_269){return m.skewX(m._degToRad(_269));},skewY:function(_26a){return new m.Matrix2D({yx:Math.tan(_26a)});},skewYg:function(_26b){return m.skewY(m._degToRad(_26b));},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(_26c){return (_26c instanceof m.Matrix2D)?_26c:new m.Matrix2D(_26c);},clone:function(_26d){var obj=new m.Matrix2D();for(var i in _26d){if(typeof (_26d[i])=="number"&&typeof (obj[i])=="number"&&obj[i]!=_26d[i]){obj[i]=_26d[i];}}return obj;},invert:function(_26e){var M=m.normalize(_26e),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(_26f,x,y){return {x:_26f.xx*x+_26f.xy*y+_26f.dx,y:_26f.yx*x+_26f.yy*y+_26f.dy};},multiplyPoint:function(_270,a,b){var M=m.normalize(_270);if(typeof a=="number"&&typeof b=="number"){return m._multiplyPoint(M,a,b);}return m._multiplyPoint(M,a.x,a.y);},multiply:function(_271){var M=m.normalize(_271);for(var i=1;i<arguments.length;++i){var l=M,r=m.normalize(arguments[i]);M=new m.Matrix2D();M.xx=l.xx*r.xx+l.xy*r.yx;M.xy=l.xx*r.xy+l.xy*r.yy;M.yx=l.yx*r.xx+l.yy*r.yx;M.yy=l.yx*r.xy+l.yy*r.yy;M.dx=l.xx*r.dx+l.xy*r.dy+l.dx;M.dy=l.yx*r.dx+l.yy*r.dy+l.dy;}return M;},_sandwich:function(_272,x,y){return m.multiply(m.translate(x,y),_272,m.translate(-x,-y));},scaleAt:function(a,b,c,d){switch(arguments.length){case 4:return m._sandwich(m.scale(a,b),c,d);case 3:if(typeof c=="number"){return m._sandwich(m.scale(a),b,c);}return m._sandwich(m.scale(a,b),c.x,c.y);}return m._sandwich(m.scale(a),b.x,b.y);},rotateAt:function(_273,a,b){if(arguments.length>2){return m._sandwich(m.rotate(_273),a,b);}return m._sandwich(m.rotate(_273),a.x,a.y);},rotategAt:function(_274,a,b){if(arguments.length>2){return m._sandwich(m.rotateg(_274),a,b);}return m._sandwich(m.rotateg(_274),a.x,a.y);},skewXAt:function(_275,a,b){if(arguments.length>2){return m._sandwich(m.skewX(_275),a,b);}return m._sandwich(m.skewX(_275),a.x,a.y);},skewXgAt:function(_276,a,b){if(arguments.length>2){return m._sandwich(m.skewXg(_276),a,b);}return m._sandwich(m.skewXg(_276),a.x,a.y);},skewYAt:function(_277,a,b){if(arguments.length>2){return m._sandwich(m.skewY(_277),a,b);}return m._sandwich(m.skewY(_277),a.x,a.y);},skewYgAt:function(_278,a,b){if(arguments.length>2){return m._sandwich(m.skewYg(_278),a,b);}return m._sandwich(m.skewYg(_278),a.x,a.y);}});g.Matrix2D=m.Matrix2D;return m;});},"dojox/charting/Theme":function(){define("dojox/charting/Theme",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/Color","dojox/color/_base","dojox/color/Palette","dojox/lang/utils","dojox/gfx/gradutils"],function(lang,arr,_279,_27a,_27b,_27c,dlu,dgg){var _27d=_279("dojox.charting.Theme",null,{shapeSpaces:{shape:1,shapeX:1,shapeY:1},constructor:function(_27e){_27e=_27e||{};var def=_27d.defaultTheme;arr.forEach(["chart","plotarea","axis","series","marker","indicator"],function(name){this[name]=lang.delegate(def[name],_27e[name]);},this);if(_27e.seriesThemes&&_27e.seriesThemes.length){this.colors=null;this.seriesThemes=_27e.seriesThemes.slice(0);}else{this.seriesThemes=null;this.colors=(_27e.colors||_27d.defaultColors).slice(0);}this.markerThemes=null;if(_27e.markerThemes&&_27e.markerThemes.length){this.markerThemes=_27e.markerThemes.slice(0);}this.markers=_27e.markers?lang.clone(_27e.markers):lang.delegate(_27d.defaultMarkers);this.noGradConv=_27e.noGradConv;this.noRadialConv=_27e.noRadialConv;if(_27e.reverseFills){this.reverseFills();}this._current=0;this._buildMarkerArray();},clone:function(){var _27f=new _27d({chart:this.chart,plotarea:this.plotarea,axis:this.axis,series:this.series,marker:this.marker,colors:this.colors,markers:this.markers,indicator:this.indicator,seriesThemes:this.seriesThemes,markerThemes:this.markerThemes,noGradConv:this.noGradConv,noRadialConv:this.noRadialConv});arr.forEach(["clone","clear","next","skip","addMixin","post","getTick"],function(name){if(this.hasOwnProperty(name)){_27f[name]=this[name];}},this);return _27f;},clear:function(){this._current=0;},next:function(_280,_281,_282){var _283=dlu.merge,_284,_285;if(this.colors){_284=lang.delegate(this.series);_285=lang.delegate(this.marker);var _286=new _27a(this.colors[this._current%this.colors.length]),old;if(_284.stroke&&_284.stroke.color){_284.stroke=lang.delegate(_284.stroke);old=new _27a(_284.stroke.color);_284.stroke.color=new _27a(_286);_284.stroke.color.a=old.a;}else{_284.stroke={color:_286};}if(_285.stroke&&_285.stroke.color){_285.stroke=lang.delegate(_285.stroke);old=new _27a(_285.stroke.color);_285.stroke.color=new _27a(_286);_285.stroke.color.a=old.a;}else{_285.stroke={color:_286};}if(!_284.fill||_284.fill.type){_284.fill=_286;}else{old=new _27a(_284.fill);_284.fill=new _27a(_286);_284.fill.a=old.a;}if(!_285.fill||_285.fill.type){_285.fill=_286;}else{old=new _27a(_285.fill);_285.fill=new _27a(_286);_285.fill.a=old.a;}}else{_284=this.seriesThemes?_283(this.series,this.seriesThemes[this._current%this.seriesThemes.length]):this.series;_285=this.markerThemes?_283(this.marker,this.markerThemes[this._current%this.markerThemes.length]):_284;}var _287=_285&&_285.symbol||this._markers[this._current%this._markers.length];var _288={series:_284,marker:_285,symbol:_287};++this._current;if(_281){_288=this.addMixin(_288,_280,_281);}if(_282){_288=this.post(_288,_280);}return _288;},skip:function(){++this._current;},addMixin:function(_289,_28a,_28b,_28c){if(lang.isArray(_28b)){arr.forEach(_28b,function(m){_289=this.addMixin(_289,_28a,m);},this);}else{var t={};if("color" in _28b){if(_28a=="line"||_28a=="area"){lang.setObject("series.stroke.color",_28b.color,t);lang.setObject("marker.stroke.color",_28b.color,t);}else{lang.setObject("series.fill",_28b.color,t);}}arr.forEach(["stroke","outline","shadow","fill","font","fontColor","labelWiring"],function(name){var _28d="marker"+name.charAt(0).toUpperCase()+name.substr(1),b=_28d in _28b;if(name in _28b){lang.setObject("series."+name,_28b[name],t);if(!b){lang.setObject("marker."+name,_28b[name],t);}}if(b){lang.setObject("marker."+name,_28b[_28d],t);}});if("marker" in _28b){t.symbol=_28b.marker;}_289=dlu.merge(_289,t);}if(_28c){_289=this.post(_289,_28a);}return _289;},post:function(_28e,_28f){var fill=_28e.series.fill,t;if(!this.noGradConv&&this.shapeSpaces[fill.space]&&fill.type=="linear"){if(_28f=="bar"){t={x1:fill.y1,y1:fill.x1,x2:fill.y2,y2:fill.x2};}else{if(!this.noRadialConv&&fill.space=="shape"&&(_28f=="slice"||_28f=="circle")){t={type:"radial",cx:0,cy:0,r:100};}}if(t){return dlu.merge(_28e,{series:{fill:t}});}}return _28e;},getTick:function(name,_290){var tick=this.axis.tick,_291=name+"Tick",_292=dlu.merge;if(tick){if(this.axis[_291]){tick=_292(tick,this.axis[_291]);}}else{tick=this.axis[_291];}if(_290){if(tick){if(_290[_291]){tick=_292(tick,_290[_291]);}}else{tick=_290[_291];}}return tick;},inspectObjects:function(f){arr.forEach(["chart","plotarea","axis","series","marker","indicator"],function(name){f(this[name]);},this);if(this.seriesThemes){arr.forEach(this.seriesThemes,f);}if(this.markerThemes){arr.forEach(this.markerThemes,f);}},reverseFills:function(){this.inspectObjects(function(o){if(o&&o.fill){o.fill=dgg.reverse(o.fill);}});},addMarker:function(name,_293){this.markers[name]=_293;this._buildMarkerArray();},setMarkers:function(obj){this.markers=obj;this._buildMarkerArray();},_buildMarkerArray:function(){this._markers=[];for(var p in this.markers){this._markers.push(this.markers[p]);}}});lang.mixin(_27d,{defaultMarkers:{CIRCLE:"m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",SQUARE:"m-3,-3 l0,6 6,0 0,-6 z",DIAMOND:"m0,-3 l3,3 -3,3 -3,-3 z",CROSS:"m0,-3 l0,6 m-3,-3 l6,0",X:"m-3,-3 l6,6 m0,-6 l-6,6",TRIANGLE:"m-3,3 l3,-6 3,6 z",TRIANGLE_INVERTED:"m-3,-3 l3,6 3,-6 z"},defaultColors:["#54544c","#858e94","#6e767a","#948585","#474747"],defaultTheme:{chart:{stroke:null,fill:"white",pageStyle:null,titleGap:20,titlePos:"top",titleFont:"normal normal bold 14pt Tahoma",titleFontColor:"#333"},plotarea:{stroke:null,fill:"white"},axis:{stroke:{color:"#333",width:1},tick:{color:"#666",position:"center",font:"normal normal normal 7pt Tahoma",fontColor:"#333",titleGap:15,titleFont:"normal normal normal 11pt Tahoma",titleFontColor:"#333",titleOrientation:"axis"},majorTick:{width:1,length:6},minorTick:{width:0.8,length:3},microTick:{width:0.5,length:1}},series:{stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",font:"normal normal normal 8pt Tahoma",fontColor:"#000",labelWiring:{width:1,color:"#ccc"}},marker:{stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",font:"normal normal normal 8pt Tahoma",fontColor:"#000"},indicator:{lineStroke:{width:1.5,color:"#333"},lineOutline:{width:0.1,color:"#ccc"},lineShadow:null,stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",radius:3,font:"normal normal normal 10pt Tahoma",fontColor:"#000",markerFill:"#ccc",markerSymbol:"m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",markerStroke:{width:1.5,color:"#333"},markerOutline:{width:0.1,color:"#ccc"},markerShadow:null}},defineColors:function(_294){_294=_294||{};var l,c=[],n=_294.num||5;if(_294.colors){l=_294.colors.length;for(var i=0;i<n;i++){c.push(_294.colors[i%l]);}return c;}if(_294.hue){var s=_294.saturation||100,st=_294.low||30,end=_294.high||90;l=(end+st)/2;return _27b.Palette.generate(_27b.fromHsv(_294.hue,s,l),"monochromatic").colors;}if(_294.generator){return _27b.Palette.generate(_294.base,_294.generator).colors;}return c;},generateGradient:function(_295,_296,_297){var fill=lang.delegate(_295);fill.colors=[{offset:0,color:_296},{offset:1,color:_297}];return fill;},generateHslColor:function(_298,_299){_298=new _27a(_298);var hsl=_298.toHsl(),_29a=_27b.fromHsl(hsl.h,hsl.s,_299);_29a.a=_298.a;return _29a;},generateHslGradient:function(_29b,_29c,_29d,_29e){_29b=new _27a(_29b);var hsl=_29b.toHsl(),_29f=_27b.fromHsl(hsl.h,hsl.s,_29d),_2a0=_27b.fromHsl(hsl.h,hsl.s,_29e);_29f.a=_2a0.a=_29b.a;return _27d.generateGradient(_29c,_29f,_2a0);}});return _27d;});},"dojox/color/_base":function(){define(["dojo/_base/kernel","../main","dojo/_base/lang","dojo/_base/Color","dojo/colors"],function(dojo,_2a1,lang,_2a2,_2a3){var cx=lang.getObject("dojox.color",true);cx.Color=_2a2;cx.blend=_2a2.blendColors;cx.fromRgb=_2a2.fromRgb;cx.fromHex=_2a2.fromHex;cx.fromArray=_2a2.fromArray;cx.fromString=_2a2.fromString;cx.greyscale=_2a3.makeGrey;lang.mixin(cx,{fromCmy:function(cyan,_2a4,_2a5){if(lang.isArray(cyan)){_2a4=cyan[1],_2a5=cyan[2],cyan=cyan[0];}else{if(lang.isObject(cyan)){_2a4=cyan.m,_2a5=cyan.y,cyan=cyan.c;}}cyan/=100,_2a4/=100,_2a5/=100;var r=1-cyan,g=1-_2a4,b=1-_2a5;return new _2a2({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromCmyk:function(cyan,_2a6,_2a7,_2a8){if(lang.isArray(cyan)){_2a6=cyan[1],_2a7=cyan[2],_2a8=cyan[3],cyan=cyan[0];}else{if(lang.isObject(cyan)){_2a6=cyan.m,_2a7=cyan.y,_2a8=cyan.b,cyan=cyan.c;}}cyan/=100,_2a6/=100,_2a7/=100,_2a8/=100;var r,g,b;r=1-Math.min(1,cyan*(1-_2a8)+_2a8);g=1-Math.min(1,_2a6*(1-_2a8)+_2a8);b=1-Math.min(1,_2a7*(1-_2a8)+_2a8);return new _2a2({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsl:function(hue,_2a9,_2aa){if(lang.isArray(hue)){_2a9=hue[1],_2aa=hue[2],hue=hue[0];}else{if(lang.isObject(hue)){_2a9=hue.s,_2aa=hue.l,hue=hue.h;}}_2a9/=100;_2aa/=100;while(hue<0){hue+=360;}while(hue>=360){hue-=360;}var r,g,b;if(hue<120){r=(120-hue)/60,g=hue/60,b=0;}else{if(hue<240){r=0,g=(240-hue)/60,b=(hue-120)/60;}else{r=(hue-240)/60,g=0,b=(360-hue)/60;}}r=2*_2a9*Math.min(r,1)+(1-_2a9);g=2*_2a9*Math.min(g,1)+(1-_2a9);b=2*_2a9*Math.min(b,1)+(1-_2a9);if(_2aa<0.5){r*=_2aa,g*=_2aa,b*=_2aa;}else{r=(1-_2aa)*r+2*_2aa-1;g=(1-_2aa)*g+2*_2aa-1;b=(1-_2aa)*b+2*_2aa-1;}return new _2a2({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});}});cx.fromHsv=function(hue,_2ab,_2ac){if(lang.isArray(hue)){_2ab=hue[1],_2ac=hue[2],hue=hue[0];}else{if(lang.isObject(hue)){_2ab=hue.s,_2ac=hue.v,hue=hue.h;}}if(hue==360){hue=0;}_2ab/=100;_2ac/=100;var r,g,b;if(_2ab==0){r=_2ac,b=_2ac,g=_2ac;}else{var _2ad=hue/60,i=Math.floor(_2ad),f=_2ad-i;var p=_2ac*(1-_2ab);var q=_2ac*(1-(_2ab*f));var t=_2ac*(1-(_2ab*(1-f)));switch(i){case 0:r=_2ac,g=t,b=p;break;case 1:r=q,g=_2ac,b=p;break;case 2:r=p,g=_2ac,b=t;break;case 3:r=p,g=q,b=_2ac;break;case 4:r=t,g=p,b=_2ac;break;case 5:r=_2ac,g=p,b=q;break;}}return new _2a2({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});};lang.extend(_2a2,{toCmy:function(){var cyan=1-(this.r/255),_2ae=1-(this.g/255),_2af=1-(this.b/255);return {c:Math.round(cyan*100),m:Math.round(_2ae*100),y:Math.round(_2af*100)};},toCmyk:function(){var cyan,_2b0,_2b1,_2b2;var r=this.r/255,g=this.g/255,b=this.b/255;_2b2=Math.min(1-r,1-g,1-b);cyan=(1-r-_2b2)/(1-_2b2);_2b0=(1-g-_2b2)/(1-_2b2);_2b1=(1-b-_2b2)/(1-_2b2);return {c:Math.round(cyan*100),m:Math.round(_2b0*100),y:Math.round(_2b1*100),b:Math.round(_2b2*100)};},toHsl:function(){var r=this.r/255,g=this.g/255,b=this.b/255;var min=Math.min(r,b,g),max=Math.max(r,g,b);var _2b3=max-min;var h=0,s=0,l=(min+max)/2;if(l>0&&l<1){s=_2b3/((l<0.5)?(2*l):(2-2*l));}if(_2b3>0){if(max==r&&max!=g){h+=(g-b)/_2b3;}if(max==g&&max!=b){h+=(2+(b-r)/_2b3);}if(max==b&&max!=r){h+=(4+(r-g)/_2b3);}h*=60;}return {h:h,s:Math.round(s*100),l:Math.round(l*100)};},toHsv:function(){var r=this.r/255,g=this.g/255,b=this.b/255;var min=Math.min(r,b,g),max=Math.max(r,g,b);var _2b4=max-min;var h=null,s=(max==0)?0:(_2b4/max);if(s==0){h=0;}else{if(r==max){h=60*(g-b)/_2b4;}else{if(g==max){h=120+60*(b-r)/_2b4;}else{h=240+60*(r-g)/_2b4;}}if(h<0){h+=360;}}return {h:h,s:Math.round(s*100),v:Math.round(max*100)};}});return cx;});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(dojo){return dojo.dojox;});},"dojo/colors":function(){define(["./_base/kernel","./_base/lang","./_base/Color","./_base/array"],function(dojo,lang,_2b5,_2b6){var _2b7=lang.getObject("dojo.colors",true);var _2b8=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};dojo.colorFromRgb=_2b5.fromRgb=function(_2b9,obj){var m=_2b9.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1],a;if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){a=_2b6.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return _2b5.fromArray(a,obj);}return _2b5.fromArray(c,obj);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;a=[_2b8(m1,m2,H+1/3)*256,_2b8(m1,m2,H)*256,_2b8(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return _2b5.fromArray(a,obj);}}return null;};var _2ba=function(c,low,high){c=Number(c);return isNaN(c)?high:c<low?low:c>high?high:c;};_2b5.prototype.sanitize=function(){var t=this;t.r=Math.round(_2ba(t.r,0,255));t.g=Math.round(_2ba(t.g,0,255));t.b=Math.round(_2ba(t.b,0,255));t.a=_2ba(t.a,0,1);return this;};_2b7.makeGrey=_2b5.makeGrey=function(g,a){return _2b5.fromArray([g,g,g,a]);};lang.mixin(_2b5.named,{"aliceblue":[240,248,255],"antiquewhite":[250,235,215],"aquamarine":[127,255,212],"azure":[240,255,255],"beige":[245,245,220],"bisque":[255,228,196],"blanchedalmond":[255,235,205],"blueviolet":[138,43,226],"brown":[165,42,42],"burlywood":[222,184,135],"cadetblue":[95,158,160],"chartreuse":[127,255,0],"chocolate":[210,105,30],"coral":[255,127,80],"cornflowerblue":[100,149,237],"cornsilk":[255,248,220],"crimson":[220,20,60],"cyan":[0,255,255],"darkblue":[0,0,139],"darkcyan":[0,139,139],"darkgoldenrod":[184,134,11],"darkgray":[169,169,169],"darkgreen":[0,100,0],"darkgrey":[169,169,169],"darkkhaki":[189,183,107],"darkmagenta":[139,0,139],"darkolivegreen":[85,107,47],"darkorange":[255,140,0],"darkorchid":[153,50,204],"darkred":[139,0,0],"darksalmon":[233,150,122],"darkseagreen":[143,188,143],"darkslateblue":[72,61,139],"darkslategray":[47,79,79],"darkslategrey":[47,79,79],"darkturquoise":[0,206,209],"darkviolet":[148,0,211],"deeppink":[255,20,147],"deepskyblue":[0,191,255],"dimgray":[105,105,105],"dimgrey":[105,105,105],"dodgerblue":[30,144,255],"firebrick":[178,34,34],"floralwhite":[255,250,240],"forestgreen":[34,139,34],"gainsboro":[220,220,220],"ghostwhite":[248,248,255],"gold":[255,215,0],"goldenrod":[218,165,32],"greenyellow":[173,255,47],"grey":[128,128,128],"honeydew":[240,255,240],"hotpink":[255,105,180],"indianred":[205,92,92],"indigo":[75,0,130],"ivory":[255,255,240],"khaki":[240,230,140],"lavender":[230,230,250],"lavenderblush":[255,240,245],"lawngreen":[124,252,0],"lemonchiffon":[255,250,205],"lightblue":[173,216,230],"lightcoral":[240,128,128],"lightcyan":[224,255,255],"lightgoldenrodyellow":[250,250,210],"lightgray":[211,211,211],"lightgreen":[144,238,144],"lightgrey":[211,211,211],"lightpink":[255,182,193],"lightsalmon":[255,160,122],"lightseagreen":[32,178,170],"lightskyblue":[135,206,250],"lightslategray":[119,136,153],"lightslategrey":[119,136,153],"lightsteelblue":[176,196,222],"lightyellow":[255,255,224],"limegreen":[50,205,50],"linen":[250,240,230],"magenta":[255,0,255],"mediumaquamarine":[102,205,170],"mediumblue":[0,0,205],"mediumorchid":[186,85,211],"mediumpurple":[147,112,219],"mediumseagreen":[60,179,113],"mediumslateblue":[123,104,238],"mediumspringgreen":[0,250,154],"mediumturquoise":[72,209,204],"mediumvioletred":[199,21,133],"midnightblue":[25,25,112],"mintcream":[245,255,250],"mistyrose":[255,228,225],"moccasin":[255,228,181],"navajowhite":[255,222,173],"oldlace":[253,245,230],"olivedrab":[107,142,35],"orange":[255,165,0],"orangered":[255,69,0],"orchid":[218,112,214],"palegoldenrod":[238,232,170],"palegreen":[152,251,152],"paleturquoise":[175,238,238],"palevioletred":[219,112,147],"papayawhip":[255,239,213],"peachpuff":[255,218,185],"peru":[205,133,63],"pink":[255,192,203],"plum":[221,160,221],"powderblue":[176,224,230],"rosybrown":[188,143,143],"royalblue":[65,105,225],"saddlebrown":[139,69,19],"salmon":[250,128,114],"sandybrown":[244,164,96],"seagreen":[46,139,87],"seashell":[255,245,238],"sienna":[160,82,45],"skyblue":[135,206,235],"slateblue":[106,90,205],"slategray":[112,128,144],"slategrey":[112,128,144],"snow":[255,250,250],"springgreen":[0,255,127],"steelblue":[70,130,180],"tan":[210,180,140],"thistle":[216,191,216],"tomato":[255,99,71],"turquoise":[64,224,208],"violet":[238,130,238],"wheat":[245,222,179],"whitesmoke":[245,245,245],"yellowgreen":[154,205,50]});return _2b5;});},"dojox/color/Palette":function(){define(["dojo/_base/kernel","../main","dojo/_base/lang","dojo/_base/array","./_base"],function(dojo,_2bb,lang,arr,dxc){dxc.Palette=function(base){this.colors=[];if(base instanceof dxc.Palette){this.colors=base.colors.slice(0);}else{if(base instanceof dxc.Color){this.colors=[null,null,base,null,null];}else{if(lang.isArray(base)){this.colors=arr.map(base.slice(0),function(item){if(lang.isString(item)){return new dxc.Color(item);}return item;});}else{if(lang.isString(base)){this.colors=[null,null,new dxc.Color(base),null,null];}}}}};function _2bc(p,_2bd,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(item){var r=(_2bd=="dr")?item.r+val:item.r,g=(_2bd=="dg")?item.g+val:item.g,b=(_2bd=="db")?item.b+val:item.b,a=(_2bd=="da")?item.a+val:item.a;ret.colors.push(new dxc.Color({r:Math.min(255,Math.max(0,r)),g:Math.min(255,Math.max(0,g)),b:Math.min(255,Math.max(0,b)),a:Math.min(1,Math.max(0,a))}));});return ret;};function tCMY(p,_2be,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(item){var o=item.toCmy(),c=(_2be=="dc")?o.c+val:o.c,m=(_2be=="dm")?o.m+val:o.m,y=(_2be=="dy")?o.y+val:o.y;ret.colors.push(dxc.fromCmy(Math.min(100,Math.max(0,c)),Math.min(100,Math.max(0,m)),Math.min(100,Math.max(0,y))));});return ret;};function _2bf(p,_2c0,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(item){var o=item.toCmyk(),c=(_2c0=="dc")?o.c+val:o.c,m=(_2c0=="dm")?o.m+val:o.m,y=(_2c0=="dy")?o.y+val:o.y,k=(_2c0=="dk")?o.b+val:o.b;ret.colors.push(dxc.fromCmyk(Math.min(100,Math.max(0,c)),Math.min(100,Math.max(0,m)),Math.min(100,Math.max(0,y)),Math.min(100,Math.max(0,k))));});return ret;};function tHSL(p,_2c1,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(item){var o=item.toHsl(),h=(_2c1=="dh")?o.h+val:o.h,s=(_2c1=="ds")?o.s+val:o.s,l=(_2c1=="dl")?o.l+val:o.l;ret.colors.push(dxc.fromHsl(h%360,Math.min(100,Math.max(0,s)),Math.min(100,Math.max(0,l))));});return ret;};function tHSV(p,_2c2,val){var ret=new dxc.Palette();ret.colors=[];arr.forEach(p.colors,function(item){var o=item.toHsv(),h=(_2c2=="dh")?o.h+val:o.h,s=(_2c2=="ds")?o.s+val:o.s,v=(_2c2=="dv")?o.v+val:o.v;ret.colors.push(dxc.fromHsv(h%360,Math.min(100,Math.max(0,s)),Math.min(100,Math.max(0,v))));});return ret;};function _2c3(val,low,high){return high-((high-val)*((high-low)/high));};lang.extend(dxc.Palette,{transform:function(_2c4){var fn=_2bc;if(_2c4.use){var use=_2c4.use.toLowerCase();if(use.indexOf("hs")==0){if(use.charAt(2)=="l"){fn=tHSL;}else{fn=tHSV;}}else{if(use.indexOf("cmy")==0){if(use.charAt(3)=="k"){fn=_2bf;}else{fn=tCMY;}}}}else{if("dc" in _2c4||"dm" in _2c4||"dy" in _2c4){if("dk" in _2c4){fn=_2bf;}else{fn=tCMY;}}else{if("dh" in _2c4||"ds" in _2c4){if("dv" in _2c4){fn=tHSV;}else{fn=tHSL;}}}}var _2c5=this;for(var p in _2c4){if(p=="use"){continue;}_2c5=fn(_2c5,p,_2c4[p]);}return _2c5;},clone:function(){return new dxc.Palette(this);}});lang.mixin(dxc.Palette,{generators:{analogous:function(args){var high=args.high||60,low=args.low||18,base=lang.isString(args.base)?new dxc.Color(args.base):args.base,hsv=base.toHsv();var h=[(hsv.h+low+360)%360,(hsv.h+Math.round(low/2)+360)%360,hsv.h,(hsv.h-Math.round(high/2)+360)%360,(hsv.h-high+360)%360];var s1=Math.max(10,(hsv.s<=95)?hsv.s+5:(100-(hsv.s-95))),s2=(hsv.s>1)?hsv.s-1:21-hsv.s,v1=(hsv.v>=92)?hsv.v-9:Math.max(hsv.v+9,20),v2=(hsv.v<=90)?Math.max(hsv.v+5,20):(95+Math.ceil((hsv.v-90)/2)),s=[s1,s2,hsv.s,s1,s1],v=[v1,v2,hsv.v,v1,v2];return new dxc.Palette(arr.map(h,function(hue,i){return dxc.fromHsv(hue,s[i],v[i]);}));},monochromatic:function(args){var base=lang.isString(args.base)?new dxc.Color(args.base):args.base,hsv=base.toHsv();var s1=(hsv.s-30>9)?hsv.s-30:hsv.s+30,s2=hsv.s,v1=_2c3(hsv.v,20,100),v2=(hsv.v-20>20)?hsv.v-20:hsv.v+60,v3=(hsv.v-50>20)?hsv.v-50:hsv.v+30;return new dxc.Palette([dxc.fromHsv(hsv.h,s1,v1),dxc.fromHsv(hsv.h,s2,v3),base,dxc.fromHsv(hsv.h,s1,v3),dxc.fromHsv(hsv.h,s2,v2)]);},triadic:function(args){var base=lang.isString(args.base)?new dxc.Color(args.base):args.base,hsv=base.toHsv();var h1=(hsv.h+57+360)%360,h2=(hsv.h-157+360)%360,s1=(hsv.s>20)?hsv.s-10:hsv.s+10,s2=(hsv.s>90)?hsv.s-10:hsv.s+10,s3=(hsv.s>95)?hsv.s-5:hsv.s+5,v1=(hsv.v-20>20)?hsv.v-20:hsv.v+20,v2=(hsv.v-30>20)?hsv.v-30:hsv.v+30,v3=(hsv.v-30>70)?hsv.v-30:hsv.v+30;return new dxc.Palette([dxc.fromHsv(h1,s1,hsv.v),dxc.fromHsv(hsv.h,s2,v2),base,dxc.fromHsv(h2,s2,v1),dxc.fromHsv(h2,s3,v3)]);},complementary:function(args){var base=lang.isString(args.base)?new dxc.Color(args.base):args.base,hsv=base.toHsv();var h1=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,s1=Math.max(hsv.s-10,0),s2=_2c3(hsv.s,10,100),s3=Math.min(100,hsv.s+20),v1=Math.min(100,hsv.v+30),v2=(hsv.v>20)?hsv.v-30:hsv.v+30;return new dxc.Palette([dxc.fromHsv(hsv.h,s1,v1),dxc.fromHsv(hsv.h,s2,v2),base,dxc.fromHsv(h1,s3,v2),dxc.fromHsv(h1,hsv.s,hsv.v)]);},splitComplementary:function(args){var base=lang.isString(args.base)?new dxc.Color(args.base):args.base,_2c6=args.da||30,hsv=base.toHsv();var _2c7=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,h1=(_2c7-_2c6+360)%360,h2=(_2c7+_2c6)%360,s1=Math.max(hsv.s-10,0),s2=_2c3(hsv.s,10,100),s3=Math.min(100,hsv.s+20),v1=Math.min(100,hsv.v+30),v2=(hsv.v>20)?hsv.v-30:hsv.v+30;return new dxc.Palette([dxc.fromHsv(h1,s1,v1),dxc.fromHsv(h1,s2,v2),base,dxc.fromHsv(h2,s3,v2),dxc.fromHsv(h2,hsv.s,hsv.v)]);},compound:function(args){var base=lang.isString(args.base)?new dxc.Color(args.base):args.base,hsv=base.toHsv();var h1=((hsv.h*2)+18<360)?(hsv.h*2)+18:Math.floor(hsv.h/2)-18,h2=((hsv.h*2)+120<360)?(hsv.h*2)+120:Math.floor(hsv.h/2)-120,h3=((hsv.h*2)+99<360)?(hsv.h*2)+99:Math.floor(hsv.h/2)-99,s1=(hsv.s-40>10)?hsv.s-40:hsv.s+40,s2=(hsv.s-10>80)?hsv.s-10:hsv.s+10,s3=(hsv.s-25>10)?hsv.s-25:hsv.s+25,v1=(hsv.v-40>10)?hsv.v-40:hsv.v+40,v2=(hsv.v-20>80)?hsv.v-20:hsv.v+20,v3=Math.max(hsv.v,20);return new dxc.Palette([dxc.fromHsv(h1,s1,v1),dxc.fromHsv(h1,s2,v2),base,dxc.fromHsv(h2,s3,v3),dxc.fromHsv(h3,s2,v2)]);},shades:function(args){var base=lang.isString(args.base)?new dxc.Color(args.base):args.base,hsv=base.toHsv();var s=(hsv.s==100&&hsv.v==0)?0:hsv.s,v1=(hsv.v-50>20)?hsv.v-50:hsv.v+30,v2=(hsv.v-25>=20)?hsv.v-25:hsv.v+55,v3=(hsv.v-75>=20)?hsv.v-75:hsv.v+5,v4=Math.max(hsv.v-10,20);return new dxc.Palette([new dxc.fromHsv(hsv.h,s,v1),new dxc.fromHsv(hsv.h,s,v2),base,new dxc.fromHsv(hsv.h,s,v3),new dxc.fromHsv(hsv.h,s,v4)]);}},generate:function(base,type){if(lang.isFunction(type)){return type({base:base});}else{if(dxc.Palette.generators[type]){return dxc.Palette.generators[type]({base:base});}}throw new Error("dojox.color.Palette.generate: the specified generator ('"+type+"') does not exist.");}});return dxc.Palette;});},"dojox/lang/utils":function(){define(["..","dojo/_base/lang"],function(_2c8,lang){var du=lang.getObject("lang.utils",true,_2c8);var _2c9={},opts=Object.prototype.toString;var _2ca=function(o){if(o){switch(opts.call(o)){case "[object Array]":return o.slice(0);case "[object Object]":return lang.delegate(o);}}return o;};lang.mixin(du,{coerceType:function(_2cb,_2cc){switch(typeof _2cb){case "number":return Number(eval("("+_2cc+")"));case "string":return String(_2cc);case "boolean":return Boolean(eval("("+_2cc+")"));}return eval("("+_2cc+")");},updateWithObject:function(_2cd,_2ce,conv){if(!_2ce){return _2cd;}for(var x in _2cd){if(x in _2ce&&!(x in _2c9)){var t=_2cd[x];if(t&&typeof t=="object"){du.updateWithObject(t,_2ce[x],conv);}else{_2cd[x]=conv?du.coerceType(t,_2ce[x]):_2ca(_2ce[x]);}}}return _2cd;},updateWithPattern:function(_2cf,_2d0,_2d1,conv){if(!_2d0||!_2d1){return _2cf;}for(var x in _2d1){if(x in _2d0&&!(x in _2c9)){_2cf[x]=conv?du.coerceType(_2d1[x],_2d0[x]):_2ca(_2d0[x]);}}return _2cf;},merge:function(_2d2,_2d3){if(_2d3){var _2d4=opts.call(_2d2),_2d5=opts.call(_2d3),t,i,l,m;switch(_2d5){case "[object Array]":if(_2d5==_2d4){t=new Array(Math.max(_2d2.length,_2d3.length));for(i=0,l=t.length;i<l;++i){t[i]=du.merge(_2d2[i],_2d3[i]);}return t;}return _2d3.slice(0);case "[object Object]":if(_2d5==_2d4&&_2d2){t=lang.delegate(_2d2);for(i in _2d3){if(i in _2d2){l=_2d2[i];m=_2d3[i];if(m!==l){t[i]=du.merge(l,m);}}else{t[i]=lang.clone(_2d3[i]);}}return t;}return lang.clone(_2d3);}}return _2d3;}});return du;});},"dojox/gfx/gradutils":function(){define(["./_base","dojo/_base/lang","./matrix","dojo/_base/Color"],function(g,lang,m,_2d6){var _2d7=g.gradutils={};function _2d8(o,c){if(o<=0){return c[0].color;}var len=c.length;if(o>=1){return c[len-1].color;}for(var i=0;i<len;++i){var stop=c[i];if(stop.offset>=o){if(i){var prev=c[i-1];return _2d6.blendColors(new _2d6(prev.color),new _2d6(stop.color),(o-prev.offset)/(stop.offset-prev.offset));}return stop.color;}}return c[len-1].color;};_2d7.getColor=function(fill,pt){var o;if(fill){switch(fill.type){case "linear":var _2d9=Math.atan2(fill.y2-fill.y1,fill.x2-fill.x1),_2da=m.rotate(-_2d9),_2db=m.project(fill.x2-fill.x1,fill.y2-fill.y1),p=m.multiplyPoint(_2db,pt),pf1=m.multiplyPoint(_2db,fill.x1,fill.y1),pf2=m.multiplyPoint(_2db,fill.x2,fill.y2),_2dc=m.multiplyPoint(_2da,pf2.x-pf1.x,pf2.y-pf1.y).x;o=m.multiplyPoint(_2da,p.x-pf1.x,p.y-pf1.y).x/_2dc;break;case "radial":var dx=pt.x-fill.cx,dy=pt.y-fill.cy;o=Math.sqrt(dx*dx+dy*dy)/fill.r;break;}return _2d8(o,fill.colors);}return new _2d6(fill||[0,0,0,0]);};_2d7.reverse=function(fill){if(fill){switch(fill.type){case "linear":case "radial":fill=lang.delegate(fill);if(fill.colors){var c=fill.colors,l=c.length,i=0,stop,n=fill.colors=new Array(c.length);for(;i<l;++i){stop=c[i];n[i]={offset:1-stop.offset,color:stop.color};}n.sort(function(a,b){return a.offset-b.offset;});}break;}}return fill;};return _2d7;});},"dojox/charting/Series":function(){define("dojox/charting/Series",["dojo/_base/lang","dojo/_base/declare","./Element"],function(lang,_2dd,_2de){return _2dd("dojox.charting.Series",_2de,{constructor:function(_2df,data,_2e0){lang.mixin(this,_2e0);if(typeof this.plot!="string"){this.plot="default";}this.update(data);},clear:function(){this.dyn={};},update:function(data){if(lang.isArray(data)){this.data=data;}else{this.source=data;this.data=this.source.data;if(this.source.setSeriesObject){this.source.setSeriesObject(this);}}this.dirty=true;this.clear();}});});},"dojox/charting/axis2d/common":function(){define("dojox/charting/axis2d/common",["dojo/_base/lang","dojo/_base/html","dojo/_base/window","dojo/dom-geometry","dojox/gfx"],function(lang,html,win,_2e1,g){var _2e2=lang.getObject("dojox.charting.axis2d.common",true);var _2e3=function(s){s.marginLeft="0px";s.marginTop="0px";s.marginRight="0px";s.marginBottom="0px";s.paddingLeft="0px";s.paddingTop="0px";s.paddingRight="0px";s.paddingBottom="0px";s.borderLeftWidth="0px";s.borderTopWidth="0px";s.borderRightWidth="0px";s.borderBottomWidth="0px";};var _2e4=function(n){if(n["getBoundingClientRect"]){var bcr=n.getBoundingClientRect();return bcr.width||(bcr.right-bcr.left);}else{return _2e1.getMarginBox(n).w;}};return lang.mixin(_2e2,{createText:{gfx:function(_2e5,_2e6,x,y,_2e7,text,font,_2e8){return _2e6.createText({x:x,y:y,text:text,align:_2e7}).setFont(font).setFill(_2e8);},html:function(_2e9,_2ea,x,y,_2eb,text,font,_2ec,_2ed){var p=win.doc.createElement("div"),s=p.style,_2ee;if(_2e9.getTextDir){p.dir=_2e9.getTextDir(text);}_2e3(s);s.font=font;p.innerHTML=String(text).replace(/\s/g,"&nbsp;");s.color=_2ec;s.position="absolute";s.left="-10000px";win.body().appendChild(p);var size=g.normalizedLength(g.splitFontString(font).size);if(!_2ed){_2ee=_2e4(p);}if(p.dir=="rtl"){x+=_2ed?_2ed:_2ee;}win.body().removeChild(p);s.position="relative";if(_2ed){s.width=_2ed+"px";switch(_2eb){case "middle":s.textAlign="center";s.left=(x-_2ed/2)+"px";break;case "end":s.textAlign="right";s.left=(x-_2ed)+"px";break;default:s.left=x+"px";s.textAlign="left";break;}}else{switch(_2eb){case "middle":s.left=Math.floor(x-_2ee/2)+"px";break;case "end":s.left=Math.floor(x-_2ee)+"px";break;default:s.left=Math.floor(x)+"px";break;}}s.top=Math.floor(y-size)+"px";s.whiteSpace="nowrap";var wrap=win.doc.createElement("div"),w=wrap.style;_2e3(w);w.width="0px";w.height="0px";wrap.appendChild(p);_2e9.node.insertBefore(wrap,_2e9.node.firstChild);return wrap;}}});});},"dojox/lang/functional":function(){define(["./functional/lambda","./functional/array","./functional/object"],function(df){return df;});},"dojox/lang/functional/lambda":function(){define(["../..","dojo/_base/kernel","dojo/_base/lang","dojo/_base/array"],function(_2ef,dojo,lang,arr){var df=lang.getObject("lang.functional",true,_2ef);var _2f0={};var _2f1="ab".split(/a*/).length>1?String.prototype.split:function(sep){var r=this.split.call(this,sep),m=sep.exec(this);if(m&&m.index==0){r.unshift("");}return r;};var _2f2=function(s){var args=[],_2f3=_2f1.call(s,/\s*->\s*/m);if(_2f3.length>1){while(_2f3.length){s=_2f3.pop();args=_2f3.pop().split(/\s*,\s*|\s+/m);if(_2f3.length){_2f3.push("(function("+args+"){return ("+s+")})");}}}else{if(s.match(/\b_\b/)){args=["_"];}else{var l=s.match(/^\s*(?:[+*\/%&|\^\.=<>]|!=)/m),r=s.match(/[+\-*\/%&|\^\.=<>!]\s*$/m);if(l||r){if(l){args.push("$1");s="$1"+s;}if(r){args.push("$2");s=s+"$2";}}else{var vars=s.replace(/(?:\b[A-Z]|\.[a-zA-Z_$])[a-zA-Z_$\d]*|[a-zA-Z_$][a-zA-Z_$\d]*:|this|true|false|null|undefined|typeof|instanceof|in|delete|new|void|arguments|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval|isFinite|isNaN|parseFloat|parseInt|unescape|dojo|dijit|dojox|window|document|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"/g,"").match(/([a-z_$][a-z_$\d]*)/gi)||[],t={};arr.forEach(vars,function(v){if(!(v in t)){args.push(v);t[v]=1;}});}}}return {args:args,body:s};};var _2f4=function(a){return a.length?function(){var i=a.length-1,x=df.lambda(a[i]).apply(this,arguments);for(--i;i>=0;--i){x=df.lambda(a[i]).call(this,x);}return x;}:function(x){return x;};};lang.mixin(df,{rawLambda:function(s){return _2f2(s);},buildLambda:function(s){s=_2f2(s);return "function("+s.args.join(",")+"){return ("+s.body+");}";},lambda:function(s){if(typeof s=="function"){return s;}if(s instanceof Array){return _2f4(s);}if(s in _2f0){return _2f0[s];}s=_2f2(s);return _2f0[s]=new Function(s.args,"return ("+s.body+");");},clearLambdaCache:function(){_2f0={};}});return df;});},"dojox/lang/functional/array":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/window","./lambda"],function(dojo,lang,arr,win,df){var _2f5={};lang.mixin(df,{filter:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var t=[],v,i,n;if(lang.isArray(a)){for(i=0,n=a.length;i<n;++i){v=a[i];if(f.call(o,v,i,a)){t.push(v);}}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();){v=a.next();if(f.call(o,v,i++,a)){t.push(v);}}}else{for(i in a){if(!(i in _2f5)){v=a[i];if(f.call(o,v,i,a)){t.push(v);}}}}}return t;},forEach:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var i,n;if(lang.isArray(a)){for(i=0,n=a.length;i<n;f.call(o,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();f.call(o,a.next(),i++,a)){}}else{for(i in a){if(!(i in _2f5)){f.call(o,a[i],i,a);}}}}return o;},map:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var t,n,i;if(lang.isArray(a)){t=new Array(n=a.length);for(i=0;i<n;t[i]=f.call(o,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){t=[];for(i=0;a.hasNext();t.push(f.call(o,a.next(),i++,a))){}}else{t=[];for(i in a){if(!(i in _2f5)){t.push(f.call(o,a[i],i,a));}}}}return t;},every:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var i,n;if(lang.isArray(a)){for(i=0,n=a.length;i<n;++i){if(!f.call(o,a[i],i,a)){return false;}}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();){if(!f.call(o,a.next(),i++,a)){return false;}}}else{for(i in a){if(!(i in _2f5)){if(!f.call(o,a[i],i,a)){return false;}}}}}return true;},some:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var i,n;if(lang.isArray(a)){for(i=0,n=a.length;i<n;++i){if(f.call(o,a[i],i,a)){return true;}}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();){if(f.call(o,a.next(),i++,a)){return true;}}}else{for(i in a){if(!(i in _2f5)){if(f.call(o,a[i],i,a)){return true;}}}}}return false;}});return df;});},"dojox/lang/functional/object":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","./lambda"],function(dojo,lang,win,df){var _2f6={};lang.mixin(df,{keys:function(obj){var t=[];for(var i in obj){if(!(i in _2f6)){t.push(i);}}return t;},values:function(obj){var t=[];for(var i in obj){if(!(i in _2f6)){t.push(obj[i]);}}return t;},filterIn:function(obj,f,o){o=o||win.global;f=df.lambda(f);var t={},v,i;for(i in obj){if(!(i in _2f6)){v=obj[i];if(f.call(o,v,i,obj)){t[i]=v;}}}return t;},forIn:function(obj,f,o){o=o||win.global;f=df.lambda(f);for(var i in obj){if(!(i in _2f6)){f.call(o,obj[i],i,obj);}}return o;},mapIn:function(obj,f,o){o=o||win.global;f=df.lambda(f);var t={},i;for(i in obj){if(!(i in _2f6)){t[i]=f.call(o,obj[i],i,obj);}}return t;}});return df;});},"dojox/lang/functional/fold":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/window","./lambda"],function(lang,arr,win,df){var _2f7={};lang.mixin(df,{foldl:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var i,n;if(lang.isArray(a)){for(i=0,n=a.length;i<n;z=f.call(o,z,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();z=f.call(o,z,a.next(),i++,a)){}}else{for(i in a){if(!(i in _2f7)){z=f.call(o,z,a[i],i,a);}}}}return z;},foldl1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var z,i,n;if(lang.isArray(a)){z=a[0];for(i=1,n=a.length;i<n;z=f.call(o,z,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){if(a.hasNext()){z=a.next();for(i=1;a.hasNext();z=f.call(o,z,a.next(),i++,a)){}}}else{var _2f8=true;for(i in a){if(!(i in _2f7)){if(_2f8){z=a[i];_2f8=false;}else{z=f.call(o,z,a[i],i,a);}}}}}return z;},foldr:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);for(var i=a.length;i>0;--i,z=f.call(o,z,a[i],i,a)){}return z;},foldr1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var n=a.length,z=a[n-1],i=n-1;for(;i>0;--i,z=f.call(o,z,a[i],i,a)){}return z;},reduce:function(a,f,z){return arguments.length<3?df.foldl1(a,f):df.foldl(a,f,z);},reduceRight:function(a,f,z){return arguments.length<3?df.foldr1(a,f):df.foldr(a,f,z);},unfold:function(pr,f,g,z,o){o=o||win.global;f=df.lambda(f);g=df.lambda(g);pr=df.lambda(pr);var t=[];for(;!pr.call(o,z);t.push(f.call(o,z)),z=g.call(o,z)){}return t;}});});},"dojox/lang/functional/reversed":function(){define(["dojo/_base/lang","dojo/_base/window","./lambda"],function(lang,win,df){lang.mixin(df,{filterRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var t=[],v,i=a.length-1;for(;i>=0;--i){v=a[i];if(f.call(o,v,i,a)){t.push(v);}}return t;},forEachRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);for(var i=a.length-1;i>=0;f.call(o,a[i],i,a),--i){}},mapRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);var n=a.length,t=new Array(n),i=n-1,j=0;for(;i>=0;t[j++]=f.call(o,a[i],i,a),--i){}return t;},everyRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);for(var i=a.length-1;i>=0;--i){if(!f.call(o,a[i],i,a)){return false;}}return true;},someRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||win.global;f=df.lambda(f);for(var i=a.length-1;i>=0;--i){if(f.call(o,a[i],i,a)){return true;}}return false;}});return df;});},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","../registry",".."],function(_2f9,_2fa,_2fb,_2fc){_2f9.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(name){_2fc[name]=_2fb[name];});_2fc.defaultDuration=_2fa["defaultDuration"]||200;return _2fc;});},"dojox/charting/Chart2D":function(){define("dojox/charting/Chart2D",["dojo/_base/kernel","dojox","./Chart","./axis2d/Default","./axis2d/Invisible","./plot2d/Default","./plot2d/Lines","./plot2d/Areas","./plot2d/Markers","./plot2d/MarkersOnly","./plot2d/Scatter","./plot2d/Stacked","./plot2d/StackedLines","./plot2d/StackedAreas","./plot2d/Columns","./plot2d/StackedColumns","./plot2d/ClusteredColumns","./plot2d/Bars","./plot2d/StackedBars","./plot2d/ClusteredBars","./plot2d/Grid","./plot2d/Pie","./plot2d/Bubble","./plot2d/Candlesticks","./plot2d/OHLC","./plot2d/Spider"],function(dojo,_2fd,_2fe){dojo.deprecated("dojox.charting.Chart2D","Use dojo.charting.Chart instead and require all other components explicitly","2.0");return _2fd.charting.Chart2D=_2fe;});},"dojox/charting/axis2d/Default":function(){define("dojox/charting/axis2d/Default",["dojo/_base/lang","dojo/_base/array","dojo/_base/sniff","dojo/_base/declare","dojo/_base/connect","dojo/_base/html","dojo/dom-geometry","./Invisible","../scaler/common","../scaler/linear","./common","dojox/gfx","dojox/lang/utils"],function(lang,arr,has,_2ff,_300,html,_301,_302,_303,lin,_304,g,du){var _305=4,_306=45;return _2ff("dojox.charting.axis2d.Default",_302,{defaultParams:{vertical:false,fixUpper:"none",fixLower:"none",natural:false,leftBottom:true,includeZero:false,fixed:true,majorLabels:true,minorTicks:true,minorLabels:true,microTicks:false,rotation:0,htmlLabels:true,enableCache:false},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1,labels:[],labelFunc:null,maxLabelSize:0,maxLabelCharCount:0,trailingSymbol:null,stroke:{},majorTick:{},minorTick:{},microTick:{},tick:{},font:"",fontColor:"",title:"",titleGap:0,titleFont:"",titleFontColor:"",titleOrientation:""},constructor:function(_307,_308){this.opt=lang.clone(this.defaultParams);du.updateWithObject(this.opt,_308);du.updateWithPattern(this.opt,_308,this.optionalParams);if(this.opt.enableCache){this._textFreePool=[];this._lineFreePool=[];this._textUsePool=[];this._lineUsePool=[];}},getOffsets:function(){var s=this.scaler,_309={l:0,r:0,t:0,b:0};if(!s){return _309;}var o=this.opt,_30a=0,a,b,c,d,gl=_303.getNumericLabel,_30b=0,ma=s.major,mi=s.minor,ta=this.chart.theme.axis,_30c=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_30d=o.titleFont||(ta.tick&&ta.tick.titleFont),_30e=(o.titleGap==0)?0:o.titleGap||(ta.tick&&ta.tick.titleGap)||15,_30f=this.chart.theme.getTick("major",o),_310=this.chart.theme.getTick("minor",o),size=_30c?g.normalizedLength(g.splitFontString(_30c).size):0,_311=_30d?g.normalizedLength(g.splitFontString(_30d).size):0,_312=o.rotation%360,_313=o.leftBottom,cosr=Math.abs(Math.cos(_312*Math.PI/180)),sinr=Math.abs(Math.sin(_312*Math.PI/180));this.trailingSymbol=(o.trailingSymbol===undefined||o.trailingSymbol===null)?this.trailingSymbol:o.trailingSymbol;if(_312<0){_312+=360;}if(size){if(this.labels){_30a=this._groupLabelWidth(this.labels,_30c,o.maxLabelCharCount);}else{_30a=this._groupLabelWidth([gl(ma.start,ma.prec,o),gl(ma.start+ma.count*ma.tick,ma.prec,o),gl(mi.start,mi.prec,o),gl(mi.start+mi.count*mi.tick,mi.prec,o)],_30c,o.maxLabelCharCount);}_30a=o.maxLabelSize?Math.min(o.maxLabelSize,_30a):_30a;if(this.vertical){var side=_313?"l":"r";switch(_312){case 0:case 180:_309[side]=_30a;_309.t=_309.b=size/2;break;case 90:case 270:_309[side]=size;_309.t=_309.b=_30a/2;break;default:if(_312<=_306||(180<_312&&_312<=(180+_306))){_309[side]=size*sinr/2+_30a*cosr;_309[_313?"t":"b"]=size*cosr/2+_30a*sinr;_309[_313?"b":"t"]=size*cosr/2;}else{if(_312>(360-_306)||(180>_312&&_312>(180-_306))){_309[side]=size*sinr/2+_30a*cosr;_309[_313?"b":"t"]=size*cosr/2+_30a*sinr;_309[_313?"t":"b"]=size*cosr/2;}else{if(_312<90||(180<_312&&_312<270)){_309[side]=size*sinr+_30a*cosr;_309[_313?"t":"b"]=size*cosr+_30a*sinr;}else{_309[side]=size*sinr+_30a*cosr;_309[_313?"b":"t"]=size*cosr+_30a*sinr;}}}break;}_309[side]+=_305+Math.max(_30f.length,_310.length)+(o.title?(_311+_30e):0);}else{var side=_313?"b":"t";switch(_312){case 0:case 180:_309[side]=size;_309.l=_309.r=_30a/2;break;case 90:case 270:_309[side]=_30a;_309.l=_309.r=size/2;break;default:if((90-_306)<=_312&&_312<=90||(270-_306)<=_312&&_312<=270){_309[side]=size*sinr/2+_30a*cosr;_309[_313?"r":"l"]=size*cosr/2+_30a*sinr;_309[_313?"l":"r"]=size*cosr/2;}else{if(90<=_312&&_312<=(90+_306)||270<=_312&&_312<=(270+_306)){_309[side]=size*sinr/2+_30a*cosr;_309[_313?"l":"r"]=size*cosr/2+_30a*sinr;_309[_313?"r":"l"]=size*cosr/2;}else{if(_312<_306||(180<_312&&_312<(180-_306))){_309[side]=size*sinr+_30a*cosr;_309[_313?"r":"l"]=size*cosr+_30a*sinr;}else{_309[side]=size*sinr+_30a*cosr;_309[_313?"l":"r"]=size*cosr+_30a*sinr;}}}break;}_309[side]+=_305+Math.max(_30f.length,_310.length)+(o.title?(_311+_30e):0);}}if(_30a){this._cachedLabelWidth=_30a;}return _309;},cleanGroup:function(_314){if(this.opt.enableCache&&this.group){this._lineFreePool=this._lineFreePool.concat(this._lineUsePool);this._lineUsePool=[];this._textFreePool=this._textFreePool.concat(this._textUsePool);this._textUsePool=[];}this.inherited(arguments);},createText:function(_315,_316,x,y,_317,_318,font,_319,_31a){if(!this.opt.enableCache||_315=="html"){return _304.createText[_315](this.chart,_316,x,y,_317,_318,font,_319,_31a);}var text;if(this._textFreePool.length>0){text=this._textFreePool.pop();text.setShape({x:x,y:y,text:_318,align:_317});_316.add(text);}else{text=_304.createText[_315](this.chart,_316,x,y,_317,_318,font,_319,_31a);}this._textUsePool.push(text);return text;},createLine:function(_31b,_31c){var line;if(this.opt.enableCache&&this._lineFreePool.length>0){line=this._lineFreePool.pop();line.setShape(_31c);_31b.add(line);}else{line=_31b.createLine(_31c);}if(this.opt.enableCache){this._lineUsePool.push(line);}return line;},render:function(dim,_31d){if(!this.dirty){return this;}var o=this.opt,ta=this.chart.theme.axis,_31e=o.leftBottom,_31f=o.rotation%360,_320,stop,_321,_322=0,_323,_324,_325,_326,_327,_328,_329=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_32a=o.titleFont||(ta.tick&&ta.tick.titleFont),_32b=o.fontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"black",_32c=o.titleFontColor||(ta.tick&&ta.tick.titleFontColor)||"black",_32d=(o.titleGap==0)?0:o.titleGap||(ta.tick&&ta.tick.titleGap)||15,_32e=o.titleOrientation||(ta.tick&&ta.tick.titleOrientation)||"axis",_32f=this.chart.theme.getTick("major",o),_330=this.chart.theme.getTick("minor",o),_331=this.chart.theme.getTick("micro",o),_332=Math.max(_32f.length,_330.length,_331.length),_333="stroke" in o?o.stroke:ta.stroke,size=_329?g.normalizedLength(g.splitFontString(_329).size):0,cosr=Math.abs(Math.cos(_31f*Math.PI/180)),sinr=Math.abs(Math.sin(_31f*Math.PI/180)),_334=_32a?g.normalizedLength(g.splitFontString(_32a).size):0;if(_31f<0){_31f+=360;}if(this.vertical){_320={y:dim.height-_31d.b};stop={y:_31d.t};_321={y:(dim.height-_31d.b+_31d.t)/2};_323=size*sinr+(this._cachedLabelWidth||0)*cosr+_305+Math.max(_32f.length,_330.length)+_334+_32d;_324={x:0,y:-1};_327={x:0,y:0};_325={x:1,y:0};_326={x:_305,y:0};switch(_31f){case 0:_328="end";_327.y=size*0.4;break;case 90:_328="middle";_327.x=-size;break;case 180:_328="start";_327.y=-size*0.4;break;case 270:_328="middle";break;default:if(_31f<_306){_328="end";_327.y=size*0.4;}else{if(_31f<90){_328="end";_327.y=size*0.4;}else{if(_31f<(180-_306)){_328="start";}else{if(_31f<(180+_306)){_328="start";_327.y=-size*0.4;}else{if(_31f<270){_328="start";_327.x=_31e?0:size*0.4;}else{if(_31f<(360-_306)){_328="end";_327.x=_31e?0:size*0.4;}else{_328="end";_327.y=size*0.4;}}}}}}}if(_31e){_320.x=stop.x=_31d.l;_322=(_32e&&_32e=="away")?90:270;_321.x=_31d.l-_323+(_322==270?_334:0);_325.x=-1;_326.x=-_326.x;}else{_320.x=stop.x=dim.width-_31d.r;_322=(_32e&&_32e=="axis")?90:270;_321.x=dim.width-_31d.r+_323-(_322==270?0:_334);switch(_328){case "start":_328="end";break;case "end":_328="start";break;case "middle":_327.x+=size;break;}}}else{_320={x:_31d.l};stop={x:dim.width-_31d.r};_321={x:(dim.width-_31d.r+_31d.l)/2};_323=size*cosr+(this._cachedLabelWidth||0)*sinr+_305+Math.max(_32f.length,_330.length)+_334+_32d;_324={x:1,y:0};_327={x:0,y:0};_325={x:0,y:1};_326={x:0,y:_305};switch(_31f){case 0:_328="middle";_327.y=size;break;case 90:_328="start";_327.x=-size*0.4;break;case 180:_328="middle";break;case 270:_328="end";_327.x=size*0.4;break;default:if(_31f<(90-_306)){_328="start";_327.y=_31e?size:0;}else{if(_31f<(90+_306)){_328="start";_327.x=-size*0.4;}else{if(_31f<180){_328="start";_327.y=_31e?0:-size;}else{if(_31f<(270-_306)){_328="end";_327.y=_31e?0:-size;}else{if(_31f<(270+_306)){_328="end";_327.y=_31e?size*0.4:0;}else{_328="end";_327.y=_31e?size:0;}}}}}}if(_31e){_320.y=stop.y=dim.height-_31d.b;_322=(_32e&&_32e=="axis")?180:0;_321.y=dim.height-_31d.b+_323-(_322?_334:0);}else{_320.y=stop.y=_31d.t;_322=(_32e&&_32e=="away")?180:0;_321.y=_31d.t-_323+(_322?0:_334);_325.y=-1;_326.y=-_326.y;switch(_328){case "start":_328="end";break;case "end":_328="start";break;case "middle":_327.y-=size;break;}}}this.cleanGroup();try{var s=this.group,c=this.scaler,t=this.ticks,_335,f=lin.getTransformerFromModel(this.scaler),_336=(!o.title||!_322)&&!_31f&&this.opt.htmlLabels&&!has("ie")&&!has("opera")?"html":"gfx",dx=_325.x*_32f.length,dy=_325.y*_32f.length;s.createLine({x1:_320.x,y1:_320.y,x2:stop.x,y2:stop.y}).setStroke(_333);if(o.title){var _337=_304.createText[_336](this.chart,s,_321.x,_321.y,"middle",o.title,_32a,_32c);if(_336=="html"){this.htmlElements.push(_337);}else{_337.setTransform(g.matrix.rotategAt(_322,_321.x,_321.y));}}if(t==null){this.dirty=false;return this;}arr.forEach(t.major,function(tick){var _338=f(tick.value),elem,x=_320.x+_324.x*_338,y=_320.y+_324.y*_338;this.createLine(s,{x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_32f);if(tick.label){var _339=o.maxLabelCharCount?this.getTextWithLimitCharCount(tick.label,_329,o.maxLabelCharCount):{text:tick.label,truncated:false};_339=o.maxLabelSize?this.getTextWithLimitLength(_339.text,_329,o.maxLabelSize,_339.truncated):_339;elem=this.createText(_336,s,x+dx+_326.x+(_31f?0:_327.x),y+dy+_326.y+(_31f?0:_327.y),_328,_339.text,_329,_32b);if(this.chart.truncateBidi&&_339.truncated){this.chart.truncateBidi(elem,tick.label,_336);}_339.truncated&&this.labelTooltip(elem,this.chart,tick.label,_339.text,_329,_336);if(_336=="html"){this.htmlElements.push(elem);}else{if(_31f){elem.setTransform([{dx:_327.x,dy:_327.y},g.matrix.rotategAt(_31f,x+dx+_326.x,y+dy+_326.y)]);}}}},this);dx=_325.x*_330.length;dy=_325.y*_330.length;_335=c.minMinorStep<=c.minor.tick*c.bounds.scale;arr.forEach(t.minor,function(tick){var _33a=f(tick.value),elem,x=_320.x+_324.x*_33a,y=_320.y+_324.y*_33a;this.createLine(s,{x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_330);if(_335&&tick.label){var _33b=o.maxLabelCharCount?this.getTextWithLimitCharCount(tick.label,_329,o.maxLabelCharCount):{text:tick.label,truncated:false};_33b=o.maxLabelSize?this.getTextWithLimitLength(_33b.text,_329,o.maxLabelSize,_33b.truncated):_33b;elem=this.createText(_336,s,x+dx+_326.x+(_31f?0:_327.x),y+dy+_326.y+(_31f?0:_327.y),_328,_33b.text,_329,_32b);if(this.chart.getTextDir&&_33b.truncated){this.chart.truncateBidi(elem,tick.label,_336);}_33b.truncated&&this.labelTooltip(elem,this.chart,tick.label,_33b.text,_329,_336);if(_336=="html"){this.htmlElements.push(elem);}else{if(_31f){elem.setTransform([{dx:_327.x,dy:_327.y},g.matrix.rotategAt(_31f,x+dx+_326.x,y+dy+_326.y)]);}}}},this);dx=_325.x*_331.length;dy=_325.y*_331.length;arr.forEach(t.micro,function(tick){var _33c=f(tick.value),elem,x=_320.x+_324.x*_33c,y=_320.y+_324.y*_33c;this.createLine(s,{x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_331);},this);}catch(e){}this.dirty=false;return this;},labelTooltip:function(elem,_33d,_33e,_33f,font,_340){var _341=["dijit/Tooltip"];var _342={type:"rect"},_343=["above","below"],_344=g._base._getTextBox(_33f,{font:font}).w||0,_345=font?g.normalizedLength(g.splitFontString(font).size):0;if(_340=="html"){lang.mixin(_342,html.coords(elem.firstChild,true));_342.width=Math.ceil(_344);_342.height=Math.ceil(_345);this._events.push({shape:dojo,handle:_300.connect(elem.firstChild,"onmouseover",this,function(e){require(_341,function(_346){_346.show(_33e,_342,_343);});})});this._events.push({shape:dojo,handle:_300.connect(elem.firstChild,"onmouseout",this,function(e){require(_341,function(_347){_347.hide(_342);});})});}else{var shp=elem.getShape(),lt=html.coords(_33d.node,true);_342=lang.mixin(_342,{x:shp.x-_344/2,y:shp.y});_342.x+=lt.x;_342.y+=lt.y;_342.x=Math.round(_342.x);_342.y=Math.round(_342.y);_342.width=Math.ceil(_344);_342.height=Math.ceil(_345);this._events.push({shape:elem,handle:elem.connect("onmouseenter",this,function(e){require(_341,function(_348){_348.show(_33e,_342,_343);});})});this._events.push({shape:elem,handle:elem.connect("onmouseleave",this,function(e){require(_341,function(_349){_349.hide(_342);});})});}}});});},"dojox/charting/axis2d/Invisible":function(){define("dojox/charting/axis2d/Invisible",["dojo/_base/lang","dojo/_base/declare","./Base","../scaler/linear","dojox/gfx","dojox/lang/utils","dojox/lang/functional","dojo/string"],function(lang,_34a,Base,lin,g,du,df,_34b){var _34c=du.merge,_34d=4,_34e=45;return _34a("dojox.charting.axis2d.Invisible",Base,{defaultParams:{vertical:false,fixUpper:"none",fixLower:"none",natural:false,leftBottom:true,includeZero:false,fixed:true,majorLabels:true,minorTicks:true,minorLabels:true,microTicks:false,rotation:0},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1,labels:[],labelFunc:null,maxLabelSize:0,maxLabelCharCount:0,trailingSymbol:null},constructor:function(_34f,_350){this.opt=lang.clone(this.defaultParams);du.updateWithObject(this.opt,_350);du.updateWithPattern(this.opt,_350,this.optionalParams);},dependOnData:function(){return !("min" in this.opt)||!("max" in this.opt);},clear:function(){delete this.scaler;delete this.ticks;this.dirty=true;return this;},initialized:function(){return "scaler" in this&&!(this.dirty&&this.dependOnData());},setWindow:function(_351,_352){this.scale=_351;this.offset=_352;return this.clear();},getWindowScale:function(){return "scale" in this?this.scale:1;},getWindowOffset:function(){return "offset" in this?this.offset:0;},_groupLabelWidth:function(_353,font,_354){if(!_353.length){return 0;}if(lang.isObject(_353[0])){_353=df.map(_353,function(_355){return _355.text;});}if(_354){_353=df.map(_353,function(_356){return lang.trim(_356).length==0?"":_356.substring(0,_354)+this.trailingSymbol;},this);}var s=_353.join("<br>");return g._base._getTextBox(s,{font:font}).w||0;},calculate:function(min,max,span,_357){if(this.initialized()){return this;}var o=this.opt;this.labels="labels" in o?o.labels:_357;this.scaler=lin.buildScaler(min,max,span,o);var tsb=this.scaler.bounds;if("scale" in this){o.from=tsb.lower+this.offset;o.to=(tsb.upper-tsb.lower)/this.scale+o.from;if(!isFinite(o.from)||isNaN(o.from)||!isFinite(o.to)||isNaN(o.to)||o.to-o.from>=tsb.upper-tsb.lower){delete o.from;delete o.to;delete this.scale;delete this.offset;}else{if(o.from<tsb.lower){o.to+=tsb.lower-o.from;o.from=tsb.lower;}else{if(o.to>tsb.upper){o.from+=tsb.upper-o.to;o.to=tsb.upper;}}this.offset=o.from-tsb.lower;}this.scaler=lin.buildScaler(min,max,span,o);tsb=this.scaler.bounds;if(this.scale==1&&this.offset==0){delete this.scale;delete this.offset;}}var ta=this.chart.theme.axis,_358=0,_359=o.rotation%360,_35a=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),size=_35a?g.normalizedLength(g.splitFontString(_35a).size):0,cosr=Math.abs(Math.cos(_359*Math.PI/180)),sinr=Math.abs(Math.sin(_359*Math.PI/180));if(_359<0){_359+=360;}if(size){if(this.vertical?_359!=0&&_359!=180:_359!=90&&_359!=270){if(this.labels){_358=this._groupLabelWidth(this.labels,_35a,o.maxLabelCharCount);}else{var _35b=Math.ceil(Math.log(Math.max(Math.abs(tsb.from),Math.abs(tsb.to)))/Math.LN10),t=[];if(tsb.from<0||tsb.to<0){t.push("-");}t.push(_34b.rep("9",_35b));var _35c=Math.floor(Math.log(tsb.to-tsb.from)/Math.LN10);if(_35c>0){t.push(".");t.push(_34b.rep("9",_35c));}_358=g._base._getTextBox(t.join(""),{font:_35a}).w;}_358=o.maxLabelSize?Math.min(o.maxLabelSize,_358):_358;}else{_358=size;}switch(_359){case 0:case 90:case 180:case 270:break;default:var gap1=Math.sqrt(_358*_358+size*size),gap2=this.vertical?size*cosr+_358*sinr:_358*cosr+size*sinr;_358=Math.min(gap1,gap2);break;}}this.scaler.minMinorStep=_358+_34d;this.ticks=lin.buildTicks(this.scaler,o);return this;},getScaler:function(){return this.scaler;},getTicks:function(){return this.ticks;}});});},"dojox/charting/axis2d/Base":function(){define("dojox/charting/axis2d/Base",["dojo/_base/declare","../Element"],function(_35d,_35e){return _35d("dojox.charting.axis2d.Base",_35e,{constructor:function(_35f,_360){this.vertical=_360&&_360.vertical;},clear:function(){return this;},initialized:function(){return false;},calculate:function(min,max,span){return this;},getScaler:function(){return null;},getTicks:function(){return null;},getOffsets:function(){return {l:0,r:0,t:0,b:0};},render:function(dim,_361){this.dirty=false;return this;}});});},"dojox/charting/scaler/linear":function(){define("dojox/charting/scaler/linear",["dojo/_base/lang","./common"],function(lang,_362){var _363=lang.getObject("dojox.charting.scaler.linear",true);var _364=3,_365=_362.findString,_366=_362.getNumericLabel;var _367=function(min,max,_368,_369,_36a,_36b,span){_368=lang.delegate(_368);if(!_369){if(_368.fixUpper=="major"){_368.fixUpper="minor";}if(_368.fixLower=="major"){_368.fixLower="minor";}}if(!_36a){if(_368.fixUpper=="minor"){_368.fixUpper="micro";}if(_368.fixLower=="minor"){_368.fixLower="micro";}}if(!_36b){if(_368.fixUpper=="micro"){_368.fixUpper="none";}if(_368.fixLower=="micro"){_368.fixLower="none";}}var _36c=_365(_368.fixLower,["major"])?Math.floor(_368.min/_369)*_369:_365(_368.fixLower,["minor"])?Math.floor(_368.min/_36a)*_36a:_365(_368.fixLower,["micro"])?Math.floor(_368.min/_36b)*_36b:_368.min,_36d=_365(_368.fixUpper,["major"])?Math.ceil(_368.max/_369)*_369:_365(_368.fixUpper,["minor"])?Math.ceil(_368.max/_36a)*_36a:_365(_368.fixUpper,["micro"])?Math.ceil(_368.max/_36b)*_36b:_368.max;if(_368.useMin){min=_36c;}if(_368.useMax){max=_36d;}var _36e=(!_369||_368.useMin&&_365(_368.fixLower,["major"]))?min:Math.ceil(min/_369)*_369,_36f=(!_36a||_368.useMin&&_365(_368.fixLower,["major","minor"]))?min:Math.ceil(min/_36a)*_36a,_370=(!_36b||_368.useMin&&_365(_368.fixLower,["major","minor","micro"]))?min:Math.ceil(min/_36b)*_36b,_371=!_369?0:(_368.useMax&&_365(_368.fixUpper,["major"])?Math.round((max-_36e)/_369):Math.floor((max-_36e)/_369))+1,_372=!_36a?0:(_368.useMax&&_365(_368.fixUpper,["major","minor"])?Math.round((max-_36f)/_36a):Math.floor((max-_36f)/_36a))+1,_373=!_36b?0:(_368.useMax&&_365(_368.fixUpper,["major","minor","micro"])?Math.round((max-_370)/_36b):Math.floor((max-_370)/_36b))+1,_374=_36a?Math.round(_369/_36a):0,_375=_36b?Math.round(_36a/_36b):0,_376=_369?Math.floor(Math.log(_369)/Math.LN10):0,_377=_36a?Math.floor(Math.log(_36a)/Math.LN10):0,_378=span/(max-min);if(!isFinite(_378)){_378=1;}return {bounds:{lower:_36c,upper:_36d,from:min,to:max,scale:_378,span:span},major:{tick:_369,start:_36e,count:_371,prec:_376},minor:{tick:_36a,start:_36f,count:_372,prec:_377},micro:{tick:_36b,start:_370,count:_373,prec:0},minorPerMajor:_374,microPerMinor:_375,scaler:_363};};return lang.mixin(_363,{buildScaler:function(min,max,span,_379){var h={fixUpper:"none",fixLower:"none",natural:false};if(_379){if("fixUpper" in _379){h.fixUpper=String(_379.fixUpper);}if("fixLower" in _379){h.fixLower=String(_379.fixLower);}if("natural" in _379){h.natural=Boolean(_379.natural);}}if("min" in _379){min=_379.min;}if("max" in _379){max=_379.max;}if(_379.includeZero){if(min>0){min=0;}if(max<0){max=0;}}h.min=min;h.useMin=true;h.max=max;h.useMax=true;if("from" in _379){min=_379.from;h.useMin=false;}if("to" in _379){max=_379.to;h.useMax=false;}if(max<=min){return _367(min,max,h,0,0,0,span);}var mag=Math.floor(Math.log(max-min)/Math.LN10),_37a=_379&&("majorTickStep" in _379)?_379.majorTickStep:Math.pow(10,mag),_37b=0,_37c=0,_37d;if(_379&&("minorTickStep" in _379)){_37b=_379.minorTickStep;}else{do{_37b=_37a/10;if(!h.natural||_37b>0.9){_37d=_367(min,max,h,_37a,_37b,0,span);if(_37d.bounds.scale*_37d.minor.tick>_364){break;}}_37b=_37a/5;if(!h.natural||_37b>0.9){_37d=_367(min,max,h,_37a,_37b,0,span);if(_37d.bounds.scale*_37d.minor.tick>_364){break;}}_37b=_37a/2;if(!h.natural||_37b>0.9){_37d=_367(min,max,h,_37a,_37b,0,span);if(_37d.bounds.scale*_37d.minor.tick>_364){break;}}return _367(min,max,h,_37a,0,0,span);}while(false);}if(_379&&("microTickStep" in _379)){_37c=_379.microTickStep;_37d=_367(min,max,h,_37a,_37b,_37c,span);}else{do{_37c=_37b/10;if(!h.natural||_37c>0.9){_37d=_367(min,max,h,_37a,_37b,_37c,span);if(_37d.bounds.scale*_37d.micro.tick>_364){break;}}_37c=_37b/5;if(!h.natural||_37c>0.9){_37d=_367(min,max,h,_37a,_37b,_37c,span);if(_37d.bounds.scale*_37d.micro.tick>_364){break;}}_37c=_37b/2;if(!h.natural||_37c>0.9){_37d=_367(min,max,h,_37a,_37b,_37c,span);if(_37d.bounds.scale*_37d.micro.tick>_364){break;}}_37c=0;}while(false);}return _37c?_37d:_367(min,max,h,_37a,_37b,0,span);},buildTicks:function(_37e,_37f){var step,next,tick,_380=_37e.major.start,_381=_37e.minor.start,_382=_37e.micro.start;if(_37f.microTicks&&_37e.micro.tick){step=_37e.micro.tick,next=_382;}else{if(_37f.minorTicks&&_37e.minor.tick){step=_37e.minor.tick,next=_381;}else{if(_37e.major.tick){step=_37e.major.tick,next=_380;}else{return null;}}}var _383=1/_37e.bounds.scale;if(_37e.bounds.to<=_37e.bounds.from||isNaN(_383)||!isFinite(_383)||step<=0||isNaN(step)||!isFinite(step)){return null;}var _384=[],_385=[],_386=[];while(next<=_37e.bounds.to+_383){if(Math.abs(_380-next)<step/2){tick={value:_380};if(_37f.majorLabels){tick.label=_366(_380,_37e.major.prec,_37f);}_384.push(tick);_380+=_37e.major.tick;_381+=_37e.minor.tick;_382+=_37e.micro.tick;}else{if(Math.abs(_381-next)<step/2){if(_37f.minorTicks){tick={value:_381};if(_37f.minorLabels&&(_37e.minMinorStep<=_37e.minor.tick*_37e.bounds.scale)){tick.label=_366(_381,_37e.minor.prec,_37f);}_385.push(tick);}_381+=_37e.minor.tick;_382+=_37e.micro.tick;}else{if(_37f.microTicks){_386.push({value:_382});}_382+=_37e.micro.tick;}}next+=step;}return {major:_384,minor:_385,micro:_386};},getTransformerFromModel:function(_387){var _388=_387.bounds.from,_389=_387.bounds.scale;return function(x){return (x-_388)*_389;};},getTransformerFromPlot:function(_38a){var _38b=_38a.bounds.from,_38c=_38a.bounds.scale;return function(x){return x/_38c+_38b;};}});});},"dojox/charting/scaler/common":function(){define("dojox/charting/scaler/common",["dojo/_base/lang"],function(lang){var eq=function(a,b){return Math.abs(a-b)<=0.000001*(Math.abs(a)+Math.abs(b));};var _38d=lang.getObject("dojox.charting.scaler.common",true);var _38e={};return lang.mixin(_38d,{doIfLoaded:function(_38f,_390,_391){if(_38e[_38f]==undefined){try{_38e[_38f]=require(_38f);}catch(e){_38e[_38f]=null;}}if(_38e[_38f]){return _390(_38e[_38f]);}else{return _391();}},findString:function(val,text){val=val.toLowerCase();for(var i=0;i<text.length;++i){if(val==text[i]){return true;}}return false;},getNumericLabel:function(_392,_393,_394){var def="";_38d.doIfLoaded("dojo/number",function(_395){def=(_394.fixed?_395.format(_392,{places:_393<0?-_393:0}):_395.format(_392))||"";},function(){def=_394.fixed?_392.toFixed(_393<0?-_393:0):_392.toString();});if(_394.labelFunc){var r=_394.labelFunc(def,_392,_393);if(r){return r;}}if(_394.labels){var l=_394.labels,lo=0,hi=l.length;while(lo<hi){var mid=Math.floor((lo+hi)/2),val=l[mid].value;if(val<_392){lo=mid+1;}else{hi=mid;}}if(lo<l.length&&eq(l[lo].value,_392)){return l[lo].text;}--lo;if(lo>=0&&lo<l.length&&eq(l[lo].value,_392)){return l[lo].text;}lo+=2;if(lo<l.length&&eq(l[lo].value,_392)){return l[lo].text;}}return def;}});});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(dojo,lang){lang.getObject("string",true,dojo);dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_396,map,_397,_398){_398=_398||dojo.global;_397=_397?lang.hitch(_398,_397):function(v){return v;};return _396.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_399,key,_39a){var _39b=lang.getObject(key,false,map);if(_39a){_39b=lang.getObject(_39a,false,_398).call(_398,_39b,key);}return _397(_39b,key).toString();});};dojo.string.trim=String.prototype.trim?lang.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};return dojo.string;});},"dojox/charting/plot2d/Default":function(){define("dojox/charting/plot2d/Default",["dojo/_base/lang","dojo/_base/declare","dojo/_base/array","./Base","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/utils","dojox/gfx/fx"],function(lang,_39c,arr,Base,dc,df,dfr,du,fx){var _39d=dfr.lambda("item.purgeGroup()");var _39e=1200;return _39c("dojox.charting.plot2d.Default",Base,{defaultParams:{hAxis:"x",vAxis:"y",lines:true,areas:false,markers:false,tension:"",animate:false,enableCache:false},optionalParams:{stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:"",markerStroke:{},markerOutline:{},markerShadow:{},markerFill:{},markerFont:"",markerFontColor:""},constructor:function(_39f,_3a0){this.opt=lang.clone(this.defaultParams);du.updateWithObject(this.opt,_3a0);du.updateWithPattern(this.opt,_3a0,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},createPath:function(run,_3a1,_3a2){var path;if(this.opt.enableCache&&run._pathFreePool.length>0){path=run._pathFreePool.pop();path.setShape(_3a2);_3a1.add(path);}else{path=_3a1.createPath(_3a2);}if(this.opt.enableCache){run._pathUsePool.push(path);}return path;},render:function(dim,_3a3){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_3a3);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){arr.forEach(this.series,_39d);this._eventSeries={};this.cleanGroup();this.group.setTransform(null);var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_3a4,_3a5,_3a6,_3a7=this.events();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(this.opt.enableCache){run._pathFreePool=(run._pathFreePool?run._pathFreePool:[]).concat(run._pathUsePool?run._pathUsePool:[]);run._pathUsePool=[];}if(!run.data.length){run.dirty=false;t.skip();continue;}var _3a8=t.next(this.opt.areas?"area":"line",[this.opt,run],true),s=run.group,_3a9=[],_3aa=[],rseg=null,_3ab,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_3ac=this._eventSeries[run.name]=new Array(run.data.length);var _3ad=typeof run.data[0]=="number";var min=_3ad?Math.max(0,Math.floor(this._hScaler.bounds.from-1)):0,max=_3ad?Math.min(run.data.length,Math.ceil(this._hScaler.bounds.to)):run.data.length;for(var j=min;j<max;j++){if(run.data[j]!=null){if(!rseg){rseg=[];_3aa.push(j);_3a9.push(rseg);}rseg.push(run.data[j]);}else{rseg=null;}}for(var seg=0;seg<_3a9.length;seg++){if(typeof _3a9[seg][0]=="number"){_3ab=arr.map(_3a9[seg],function(v,i){return {x:ht(i+_3aa[seg]+1)+_3a3.l,y:dim.height-_3a3.b-vt(v)};},this);}else{_3ab=arr.map(_3a9[seg],function(v,i){return {x:ht(v.x)+_3a3.l,y:dim.height-_3a3.b-vt(v.y)};},this);}var _3ae=this.opt.tension?dc.curve(_3ab,this.opt.tension):"";if(this.opt.areas&&_3ab.length>1){var fill=_3a8.series.fill;var _3af=lang.clone(_3ab);if(this.opt.tension){var _3b0="L"+_3af[_3af.length-1].x+","+(dim.height-_3a3.b)+" L"+_3af[0].x+","+(dim.height-_3a3.b)+" L"+_3af[0].x+","+_3af[0].y;run.dyn.fill=s.createPath(_3ae+" "+_3b0).setFill(fill).getFill();}else{_3af.push({x:_3ab[_3ab.length-1].x,y:dim.height-_3a3.b});_3af.push({x:_3ab[0].x,y:dim.height-_3a3.b});_3af.push(_3ab[0]);run.dyn.fill=s.createPolyline(_3af).setFill(fill).getFill();}}if(this.opt.lines||this.opt.markers){_3a4=_3a8.series.stroke;if(_3a8.series.outline){_3a5=run.dyn.outline=dc.makeStroke(_3a8.series.outline);_3a5.width=2*_3a5.width+_3a4.width;}}if(this.opt.markers){run.dyn.marker=_3a8.symbol;}var _3b1=null,_3b2=null,_3b3=null;if(_3a4&&_3a8.series.shadow&&_3ab.length>1){var _3b4=_3a8.series.shadow,_3b5=arr.map(_3ab,function(c){return {x:c.x+_3b4.dx,y:c.y+_3b4.dy};});if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_3b5,this.opt.tension)).setStroke(_3b4).getStroke();}else{run.dyn.shadow=s.createPolyline(_3b5).setStroke(_3b4).getStroke();}}if(this.opt.markers&&_3a8.marker.shadow){_3b4=_3a8.marker.shadow;_3b3=arr.map(_3b5,function(c){return this.createPath(run,s,"M"+c.x+" "+c.y+" "+_3a8.symbol).setStroke(_3b4).setFill(_3b4.color);},this);}}if(this.opt.lines&&_3ab.length>1){if(_3a5){if(this.opt.tension){run.dyn.outline=s.createPath(_3ae).setStroke(_3a5).getStroke();}else{run.dyn.outline=s.createPolyline(_3ab).setStroke(_3a5).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_3ae).setStroke(_3a4).getStroke();}else{run.dyn.stroke=s.createPolyline(_3ab).setStroke(_3a4).getStroke();}}if(this.opt.markers){_3b1=new Array(_3ab.length);_3b2=new Array(_3ab.length);_3a5=null;if(_3a8.marker.outline){_3a5=dc.makeStroke(_3a8.marker.outline);_3a5.width=2*_3a5.width+(_3a8.marker.stroke?_3a8.marker.stroke.width:0);}arr.forEach(_3ab,function(c,i){var path="M"+c.x+" "+c.y+" "+_3a8.symbol;if(_3a5){_3b2[i]=this.createPath(run,s,path).setStroke(_3a5);}_3b1[i]=this.createPath(run,s,path).setStroke(_3a8.marker.stroke).setFill(_3a8.marker.fill);},this);run.dyn.markerFill=_3a8.marker.fill;run.dyn.markerStroke=_3a8.marker.stroke;if(_3a7){arr.forEach(_3b1,function(s,i){var o={element:"marker",index:i+_3aa[seg],run:run,shape:s,outline:_3b2[i]||null,shadow:_3b3&&_3b3[i]||null,cx:_3ab[i].x,cy:_3ab[i].y};if(typeof _3a9[seg][0]=="number"){o.x=i+_3aa[seg]+1;o.y=_3a9[seg][i];}else{o.x=_3a9[seg][i].x;o.y=_3a9[seg][i].y;}this._connectEvents(o);_3ac[i+_3aa[seg]]=o;},this);}else{delete this._eventSeries[run.name];}}}run.dirty=false;}if(this.animate){var _3b6=this.group;fx.animateTransform(lang.delegate({shape:_3b6,duration:_39e,transform:[{name:"translate",start:[0,dim.height-_3a3.b],end:[0,0]},{name:"scale",start:[1,0],end:[1,1]},{name:"original"}]},this.animate)).play();}this.dirty=false;return this;}});});},"dojox/charting/plot2d/Base":function(){define("dojox/charting/plot2d/Base",["dojo/_base/lang","dojo/_base/declare","dojo/_base/connect","../Element","./_PlotEvents","dojo/_base/array","../scaler/primitive","./common","dojox/gfx/fx"],function(lang,_3b7,hub,_3b8,_3b9,arr,_3ba,_3bb,fx){return _3b7("dojox.charting.plot2d.Base",[_3b8,_3b9],{constructor:function(_3bc,_3bd){this.zoom=null,this.zoomQueue=[];this.lastWindow={vscale:1,hscale:1,xoffset:0,yoffset:0};},clear:function(){this.series=[];this._hAxis=null;this._vAxis=null;this.dirty=true;return this;},setAxis:function(axis){if(axis){this[axis.vertical?"_vAxis":"_hAxis"]=axis;}return this;},toPage:function(_3be){var ah=this._hAxis,av=this._vAxis,sh=ah.getScaler(),sv=av.getScaler(),th=sh.scaler.getTransformerFromModel(sh),tv=sv.scaler.getTransformerFromModel(sv),c=this.chart.getCoords(),o=this.chart.offsets,dim=this.chart.dim;var t=function(_3bf){var r={};r.x=th(_3bf[ah.name])+c.x+o.l;r.y=c.y+dim.height-o.b-tv(_3bf[av.name]);return r;};return _3be?t(_3be):t;},toData:function(_3c0){var ah=this._hAxis,av=this._vAxis,sh=ah.getScaler(),sv=av.getScaler(),th=sh.scaler.getTransformerFromPlot(sh),tv=sv.scaler.getTransformerFromPlot(sv),c=this.chart.getCoords(),o=this.chart.offsets,dim=this.chart.dim;var t=function(_3c1){var r={};r[ah.name]=th(_3c1.x-c.x-o.l);r[av.name]=tv(c.y+dim.height-_3c1.y-o.b);return r;};return _3c0?t(_3c0):t;},addSeries:function(run){this.series.push(run);return this;},getSeriesStats:function(){return _3bb.collectSimpleStats(this.series);},calculateAxes:function(dim){this.initializeScalers(dim,this.getSeriesStats());return this;},isDirty:function(){return this.dirty||this._hAxis&&this._hAxis.dirty||this._vAxis&&this._vAxis.dirty;},isDataDirty:function(){return arr.some(this.series,function(item){return item.dirty;});},performZoom:function(dim,_3c2){var vs=this._vAxis.scale||1,hs=this._hAxis.scale||1,_3c3=dim.height-_3c2.b,_3c4=this._hScaler.bounds,_3c5=(_3c4.from-_3c4.lower)*_3c4.scale,_3c6=this._vScaler.bounds,_3c7=(_3c6.from-_3c6.lower)*_3c6.scale,_3c8=vs/this.lastWindow.vscale,_3c9=hs/this.lastWindow.hscale,_3ca=(this.lastWindow.xoffset-_3c5)/((this.lastWindow.hscale==1)?hs:this.lastWindow.hscale),_3cb=(_3c7-this.lastWindow.yoffset)/((this.lastWindow.vscale==1)?vs:this.lastWindow.vscale),_3cc=this.group,anim=fx.animateTransform(lang.delegate({shape:_3cc,duration:1200,transform:[{name:"translate",start:[0,0],end:[_3c2.l*(1-_3c9),_3c3*(1-_3c8)]},{name:"scale",start:[1,1],end:[_3c9,_3c8]},{name:"original"},{name:"translate",start:[0,0],end:[_3ca,_3cb]}]},this.zoom));lang.mixin(this.lastWindow,{vscale:vs,hscale:hs,xoffset:_3c5,yoffset:_3c7});this.zoomQueue.push(anim);hub.connect(anim,"onEnd",this,function(){this.zoom=null;this.zoomQueue.shift();if(this.zoomQueue.length>0){this.zoomQueue[0].play();}});if(this.zoomQueue.length==1){this.zoomQueue[0].play();}return this;},render:function(dim,_3cd){return this;},getRequiredColors:function(){return this.series.length;},initializeScalers:function(dim,_3ce){if(this._hAxis){if(!this._hAxis.initialized()){this._hAxis.calculate(_3ce.hmin,_3ce.hmax,dim.width);}this._hScaler=this._hAxis.getScaler();}else{this._hScaler=_3ba.buildScaler(_3ce.hmin,_3ce.hmax,dim.width);}if(this._vAxis){if(!this._vAxis.initialized()){this._vAxis.calculate(_3ce.vmin,_3ce.vmax,dim.height);}this._vScaler=this._vAxis.getScaler();}else{this._vScaler=_3ba.buildScaler(_3ce.vmin,_3ce.vmax,dim.height);}return this;}});});},"dojox/charting/plot2d/_PlotEvents":function(){define("dojox/charting/plot2d/_PlotEvents",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/connect"],function(lang,arr,_3cf,hub){return _3cf("dojox.charting.plot2d._PlotEvents",null,{constructor:function(){this._shapeEvents=[];this._eventSeries={};},destroy:function(){this.resetEvents();this.inherited(arguments);},plotEvent:function(o){},raiseEvent:function(o){this.plotEvent(o);var t=lang.delegate(o);t.originalEvent=o.type;t.originalPlot=o.plot;t.type="onindirect";arr.forEach(this.chart.stack,function(plot){if(plot!==this&&plot.plotEvent){t.plot=plot;plot.plotEvent(t);}},this);},connect:function(_3d0,_3d1){this.dirty=true;return hub.connect(this,"plotEvent",_3d0,_3d1);},events:function(){return !!this.plotEvent.after;},resetEvents:function(){if(this._shapeEvents.length){arr.forEach(this._shapeEvents,function(item){item.shape.disconnect(item.handle);});this._shapeEvents=[];}this.raiseEvent({type:"onplotreset",plot:this});},_connectSingleEvent:function(o,_3d2){this._shapeEvents.push({shape:o.eventMask,handle:o.eventMask.connect(_3d2,this,function(e){o.type=_3d2;o.event=e;this.raiseEvent(o);o.event=null;})});},_connectEvents:function(o){if(o){o.chart=this.chart;o.plot=this;o.hAxis=this.hAxis||null;o.vAxis=this.vAxis||null;o.eventMask=o.eventMask||o.shape;this._connectSingleEvent(o,"onmouseover");this._connectSingleEvent(o,"onmouseout");this._connectSingleEvent(o,"onclick");}},_reconnectEvents:function(_3d3){var a=this._eventSeries[_3d3];if(a){arr.forEach(a,this._connectEvents,this);}},fireEvent:function(_3d4,_3d5,_3d6,_3d7){var s=this._eventSeries[_3d4];if(s&&s.length&&_3d6<s.length){var o=s[_3d6];o.type=_3d5;o.event=_3d7||null;this.raiseEvent(o);o.event=null;}}});});},"dojox/charting/scaler/primitive":function(){define("dojox/charting/scaler/primitive",["dojo/_base/lang"],function(lang){var _3d8=lang.getObject("dojox.charting.scaler.primitive",true);return lang.mixin(_3d8,{buildScaler:function(min,max,span,_3d9){if(min==max){min-=0.5;max+=0.5;}return {bounds:{lower:min,upper:max,from:min,to:max,scale:span/(max-min),span:span},scaler:_3d8};},buildTicks:function(_3da,_3db){return {major:[],minor:[],micro:[]};},getTransformerFromModel:function(_3dc){var _3dd=_3dc.bounds.from,_3de=_3dc.bounds.scale;return function(x){return (x-_3dd)*_3de;};},getTransformerFromPlot:function(_3df){var _3e0=_3df.bounds.from,_3e1=_3df.bounds.scale;return function(x){return x/_3e1+_3e0;};}});});},"dojox/charting/plot2d/common":function(){define("dojox/charting/plot2d/common",["dojo/_base/lang","dojo/_base/array","dojo/_base/Color","dojox/gfx","dojox/lang/functional","../scaler/common"],function(lang,arr,_3e2,g,df,sc){var _3e3=lang.getObject("dojox.charting.plot2d.common",true);return lang.mixin(_3e3,{doIfLoaded:sc.doIfLoaded,makeStroke:function(_3e4){if(!_3e4){return _3e4;}if(typeof _3e4=="string"||_3e4 instanceof _3e2){_3e4={color:_3e4};}return g.makeParameters(g.defaultStroke,_3e4);},augmentColor:function(_3e5,_3e6){var t=new _3e2(_3e5),c=new _3e2(_3e6);c.a=t.a;return c;},augmentStroke:function(_3e7,_3e8){var s=_3e3.makeStroke(_3e7);if(s){s.color=_3e3.augmentColor(s.color,_3e8);}return s;},augmentFill:function(fill,_3e9){var fc,c=new _3e2(_3e9);if(typeof fill=="string"||fill instanceof _3e2){return _3e3.augmentColor(fill,_3e9);}return fill;},defaultStats:{vmin:Number.POSITIVE_INFINITY,vmax:Number.NEGATIVE_INFINITY,hmin:Number.POSITIVE_INFINITY,hmax:Number.NEGATIVE_INFINITY},collectSimpleStats:function(_3ea){var _3eb=lang.delegate(_3e3.defaultStats);for(var i=0;i<_3ea.length;++i){var run=_3ea[i];for(var j=0;j<run.data.length;j++){if(run.data[j]!==null){if(typeof run.data[j]=="number"){var _3ec=_3eb.vmin,_3ed=_3eb.vmax;if(!("ymin" in run)||!("ymax" in run)){arr.forEach(run.data,function(val,i){if(val!==null){var x=i+1,y=val;if(isNaN(y)){y=0;}_3eb.hmin=Math.min(_3eb.hmin,x);_3eb.hmax=Math.max(_3eb.hmax,x);_3eb.vmin=Math.min(_3eb.vmin,y);_3eb.vmax=Math.max(_3eb.vmax,y);}});}if("ymin" in run){_3eb.vmin=Math.min(_3ec,run.ymin);}if("ymax" in run){_3eb.vmax=Math.max(_3ed,run.ymax);}}else{var _3ee=_3eb.hmin,_3ef=_3eb.hmax,_3ec=_3eb.vmin,_3ed=_3eb.vmax;if(!("xmin" in run)||!("xmax" in run)||!("ymin" in run)||!("ymax" in run)){arr.forEach(run.data,function(val,i){if(val!==null){var x="x" in val?val.x:i+1,y=val.y;if(isNaN(x)){x=0;}if(isNaN(y)){y=0;}_3eb.hmin=Math.min(_3eb.hmin,x);_3eb.hmax=Math.max(_3eb.hmax,x);_3eb.vmin=Math.min(_3eb.vmin,y);_3eb.vmax=Math.max(_3eb.vmax,y);}});}if("xmin" in run){_3eb.hmin=Math.min(_3ee,run.xmin);}if("xmax" in run){_3eb.hmax=Math.max(_3ef,run.xmax);}if("ymin" in run){_3eb.vmin=Math.min(_3ec,run.ymin);}if("ymax" in run){_3eb.vmax=Math.max(_3ed,run.ymax);}}break;}}}return _3eb;},calculateBarSize:function(_3f0,opt,_3f1){if(!_3f1){_3f1=1;}var gap=opt.gap,size=(_3f0-2*gap)/_3f1;if("minBarSize" in opt){size=Math.max(size,opt.minBarSize);}if("maxBarSize" in opt){size=Math.min(size,opt.maxBarSize);}size=Math.max(size,1);gap=(_3f0-size*_3f1)/2;return {size:size,gap:gap};},collectStackedStats:function(_3f2){var _3f3=lang.clone(_3e3.defaultStats);if(_3f2.length){_3f3.hmin=Math.min(_3f3.hmin,1);_3f3.hmax=df.foldl(_3f2,"seed, run -> Math.max(seed, run.data.length)",_3f3.hmax);for(var i=0;i<_3f3.hmax;++i){var v=_3f2[0].data[i];v=v&&(typeof v=="number"?v:v.y);if(isNaN(v)){v=0;}_3f3.vmin=Math.min(_3f3.vmin,v);for(var j=1;j<_3f2.length;++j){var t=_3f2[j].data[i];t=t&&(typeof t=="number"?t:t.y);if(isNaN(t)){t=0;}v+=t;}_3f3.vmax=Math.max(_3f3.vmax,v);}}return _3f3;},curve:function(a,_3f4){var _3f5=a.slice(0);if(_3f4=="x"){_3f5[_3f5.length]=arr[0];}var p=arr.map(_3f5,function(item,i){if(i==0){return "M"+item.x+","+item.y;}if(!isNaN(_3f4)){var dx=item.x-_3f5[i-1].x,dy=_3f5[i-1].y;return "C"+(item.x-(_3f4-1)*(dx/_3f4))+","+dy+" "+(item.x-(dx/_3f4))+","+item.y+" "+item.x+","+item.y;}else{if(_3f4=="X"||_3f4=="x"||_3f4=="S"){var p0,p1=_3f5[i-1],p2=_3f5[i],p3;var bz1x,bz1y,bz2x,bz2y;var f=1/6;if(i==1){if(_3f4=="x"){p0=_3f5[_3f5.length-2];}else{p0=p1;}f=1/3;}else{p0=_3f5[i-2];}if(i==(_3f5.length-1)){if(_3f4=="x"){p3=_3f5[1];}else{p3=p2;}f=1/3;}else{p3=_3f5[i+1];}var p1p2=Math.sqrt((p2.x-p1.x)*(p2.x-p1.x)+(p2.y-p1.y)*(p2.y-p1.y));var p0p2=Math.sqrt((p2.x-p0.x)*(p2.x-p0.x)+(p2.y-p0.y)*(p2.y-p0.y));var p1p3=Math.sqrt((p3.x-p1.x)*(p3.x-p1.x)+(p3.y-p1.y)*(p3.y-p1.y));var _3f6=p0p2*f;var _3f7=p1p3*f;if(_3f6>p1p2/2&&_3f7>p1p2/2){_3f6=p1p2/2;_3f7=p1p2/2;}else{if(_3f6>p1p2/2){_3f6=p1p2/2;_3f7=p1p2/2*p1p3/p0p2;}else{if(_3f7>p1p2/2){_3f7=p1p2/2;_3f6=p1p2/2*p0p2/p1p3;}}}if(_3f4=="S"){if(p0==p1){_3f6=0;}if(p2==p3){_3f7=0;}}bz1x=p1.x+_3f6*(p2.x-p0.x)/p0p2;bz1y=p1.y+_3f6*(p2.y-p0.y)/p0p2;bz2x=p2.x-_3f7*(p3.x-p1.x)/p1p3;bz2y=p2.y-_3f7*(p3.y-p1.y)/p1p3;}}return "C"+(bz1x+","+bz1y+" "+bz2x+","+bz2y+" "+p2.x+","+p2.y);});return p.join(" ");},getLabel:function(_3f8,_3f9,_3fa){return sc.doIfLoaded("dojo/number",function(_3fb){return (_3f9?_3fb.format(_3f8,{places:_3fa}):_3fb.format(_3f8))||"";},function(){return _3f9?_3f8.toFixed(_3fa):_3f8.toString();});}});});},"dojox/gfx/fx":function(){define(["dojo/_base/lang","./_base","./matrix","dojo/_base/Color","dojo/_base/array","dojo/_base/fx","dojo/_base/connect"],function(lang,g,m,_3fc,arr,fx,Hub){var fxg=g.fx={};function _3fd(_3fe,end){this.start=_3fe,this.end=end;};_3fd.prototype.getValue=function(r){return (this.end-this.start)*r+this.start;};function _3ff(_400,end,_401){this.start=_400,this.end=end;this.units=_401;};_3ff.prototype.getValue=function(r){return (this.end-this.start)*r+this.start+this.units;};function _402(_403,end){this.start=_403,this.end=end;this.temp=new _3fc();};_402.prototype.getValue=function(r){return _3fc.blendColors(this.start,this.end,r,this.temp);};function _404(_405){this.values=_405;this.length=_405.length;};_404.prototype.getValue=function(r){return this.values[Math.min(Math.floor(r*this.length),this.length-1)];};function _406(_407,def){this.values=_407;this.def=def?def:{};};_406.prototype.getValue=function(r){var ret=lang.clone(this.def);for(var i in this.values){ret[i]=this.values[i].getValue(r);}return ret;};function _408(_409,_40a){this.stack=_409;this.original=_40a;};_408.prototype.getValue=function(r){var ret=[];arr.forEach(this.stack,function(t){if(t instanceof m.Matrix2D){ret.push(t);return;}if(t.name=="original"&&this.original){ret.push(this.original);return;}if(!(t.name in m)){return;}var f=m[t.name];if(typeof f!="function"){ret.push(f);return;}var val=arr.map(t.start,function(v,i){return (t.end[i]-v)*r+v;}),_40b=f.apply(m,val);if(_40b instanceof m.Matrix2D){ret.push(_40b);}},this);return ret;};var _40c=new _3fc(0,0,0,0);function _40d(prop,obj,name,def){if(prop.values){return new _404(prop.values);}var _40e,_40f,end;if(prop.start){_40f=g.normalizeColor(prop.start);}else{_40f=_40e=obj?(name?obj[name]:obj):def;}if(prop.end){end=g.normalizeColor(prop.end);}else{if(!_40e){_40e=obj?(name?obj[name]:obj):def;}end=_40e;}return new _402(_40f,end);};function _410(prop,obj,name,def){if(prop.values){return new _404(prop.values);}var _411,_412,end;if(prop.start){_412=prop.start;}else{_412=_411=obj?obj[name]:def;}if(prop.end){end=prop.end;}else{if(typeof _411!="number"){_411=obj?obj[name]:def;}end=_411;}return new _3fd(_412,end);};fxg.animateStroke=function(args){if(!args.easing){args.easing=fx._defaultEasing;}var anim=new fx.Animation(args),_413=args.shape,_414;Hub.connect(anim,"beforeBegin",anim,function(){_414=_413.getStroke();var prop=args.color,_415={},_416,_417,end;if(prop){_415.color=_40d(prop,_414,"color",_40c);}prop=args.style;if(prop&&prop.values){_415.style=new _404(prop.values);}prop=args.width;if(prop){_415.width=_410(prop,_414,"width",1);}prop=args.cap;if(prop&&prop.values){_415.cap=new _404(prop.values);}prop=args.join;if(prop){if(prop.values){_415.join=new _404(prop.values);}else{_417=prop.start?prop.start:(_414&&_414.join||0);end=prop.end?prop.end:(_414&&_414.join||0);if(typeof _417=="number"&&typeof end=="number"){_415.join=new _3fd(_417,end);}}}this.curve=new _406(_415,_414);});Hub.connect(anim,"onAnimate",_413,"setStroke");return anim;};fxg.animateFill=function(args){if(!args.easing){args.easing=fx._defaultEasing;}var anim=new fx.Animation(args),_418=args.shape,fill;Hub.connect(anim,"beforeBegin",anim,function(){fill=_418.getFill();var prop=args.color,_419={};if(prop){this.curve=_40d(prop,fill,"",_40c);}});Hub.connect(anim,"onAnimate",_418,"setFill");return anim;};fxg.animateFont=function(args){if(!args.easing){args.easing=fx._defaultEasing;}var anim=new fx.Animation(args),_41a=args.shape,font;Hub.connect(anim,"beforeBegin",anim,function(){font=_41a.getFont();var prop=args.style,_41b={},_41c,_41d,end;if(prop&&prop.values){_41b.style=new _404(prop.values);}prop=args.variant;if(prop&&prop.values){_41b.variant=new _404(prop.values);}prop=args.weight;if(prop&&prop.values){_41b.weight=new _404(prop.values);}prop=args.family;if(prop&&prop.values){_41b.family=new _404(prop.values);}prop=args.size;if(prop&&prop.units){_41d=parseFloat(prop.start?prop.start:(_41a.font&&_41a.font.size||"0"));end=parseFloat(prop.end?prop.end:(_41a.font&&_41a.font.size||"0"));_41b.size=new _3ff(_41d,end,prop.units);}this.curve=new _406(_41b,font);});Hub.connect(anim,"onAnimate",_41a,"setFont");return anim;};fxg.animateTransform=function(args){if(!args.easing){args.easing=fx._defaultEasing;}var anim=new fx.Animation(args),_41e=args.shape,_41f;Hub.connect(anim,"beforeBegin",anim,function(){_41f=_41e.getTransform();this.curve=new _408(args.transform,_41f);});Hub.connect(anim,"onAnimate",_41e,"setTransform");return anim;};return fxg;});},"dojox/charting/plot2d/Lines":function(){define("dojox/charting/plot2d/Lines",["dojo/_base/declare","./Default"],function(_420,_421){return _420("dojox.charting.plot2d.Lines",_421,{constructor:function(){this.opt.lines=true;}});});},"dojox/charting/plot2d/Areas":function(){define("dojox/charting/plot2d/Areas",["dojo/_base/declare","./Default"],function(_422,_423){return _422("dojox.charting.plot2d.Areas",_423,{constructor:function(){this.opt.lines=true;this.opt.areas=true;}});});},"dojox/charting/plot2d/Markers":function(){define("dojox/charting/plot2d/Markers",["dojo/_base/declare","./Default"],function(_424,_425){return _424("dojox.charting.plot2d.Markers",_425,{constructor:function(){this.opt.markers=true;}});});},"dojox/charting/plot2d/MarkersOnly":function(){define("dojox/charting/plot2d/MarkersOnly",["dojo/_base/declare","./Default"],function(_426,_427){return _426("dojox.charting.plot2d.MarkersOnly",_427,{constructor:function(){this.opt.lines=false;this.opt.markers=true;}});});},"dojox/charting/plot2d/Scatter":function(){define("dojox/charting/plot2d/Scatter",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","./Base","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/utils","dojox/gfx/fx","dojox/gfx/gradutils"],function(lang,arr,_428,Base,dc,df,dfr,du,fx,_429){var _42a=dfr.lambda("item.purgeGroup()");return _428("dojox.charting.plot2d.Scatter",Base,{defaultParams:{hAxis:"x",vAxis:"y",shadows:null,animate:null},optionalParams:{markerStroke:{},markerOutline:{},markerShadow:{},markerFill:{},markerFont:"",markerFontColor:""},constructor:function(_42b,_42c){this.opt=lang.clone(this.defaultParams);du.updateWithObject(this.opt,_42c);du.updateWithPattern(this.opt,_42c,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_42d){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_42d);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){arr.forEach(this.series,_42a);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_42e=this.events();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(!run.data.length){run.dirty=false;t.skip();continue;}var _42f=t.next("marker",[this.opt,run]),s=run.group,_430,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler);if(typeof run.data[0]=="number"){_430=arr.map(run.data,function(v,i){return {x:ht(i+1)+_42d.l,y:dim.height-_42d.b-vt(v)};},this);}else{_430=arr.map(run.data,function(v,i){return {x:ht(v.x)+_42d.l,y:dim.height-_42d.b-vt(v.y)};},this);}var _431=new Array(_430.length),_432=new Array(_430.length),_433=new Array(_430.length);arr.forEach(_430,function(c,i){var _434=typeof run.data[i]=="number"?t.post(_42f,"marker"):t.addMixin(_42f,"marker",run.data[i],true),path="M"+c.x+" "+c.y+" "+_434.symbol;if(_434.marker.shadow){_431[i]=s.createPath("M"+(c.x+_434.marker.shadow.dx)+" "+(c.y+_434.marker.shadow.dy)+" "+_434.symbol).setStroke(_434.marker.shadow).setFill(_434.marker.shadow.color);if(this.animate){this._animateScatter(_431[i],dim.height-_42d.b);}}if(_434.marker.outline){var _435=dc.makeStroke(_434.marker.outline);_435.width=2*_435.width+_434.marker.stroke.width;_433[i]=s.createPath(path).setStroke(_435);if(this.animate){this._animateScatter(_433[i],dim.height-_42d.b);}}var _436=dc.makeStroke(_434.marker.stroke),fill=this._plotFill(_434.marker.fill,dim,_42d);if(fill&&(fill.type==="linear"||fill.type=="radial")){var _437=_429.getColor(fill,{x:c.x,y:c.y});if(_436){_436.color=_437;}_432[i]=s.createPath(path).setStroke(_436).setFill(_437);}else{_432[i]=s.createPath(path).setStroke(_436).setFill(fill);}if(this.animate){this._animateScatter(_432[i],dim.height-_42d.b);}},this);if(_432.length){run.dyn.stroke=_432[_432.length-1].getStroke();run.dyn.fill=_432[_432.length-1].getFill();}if(_42e){var _438=new Array(_432.length);arr.forEach(_432,function(s,i){var o={element:"marker",index:i,run:run,shape:s,outline:_433&&_433[i]||null,shadow:_431&&_431[i]||null,cx:_430[i].x,cy:_430[i].y};if(typeof run.data[0]=="number"){o.x=i+1;o.y=run.data[i];}else{o.x=run.data[i].x;o.y=run.data[i].y;}this._connectEvents(o);_438[i]=o;},this);this._eventSeries[run.name]=_438;}else{delete this._eventSeries[run.name];}run.dirty=false;}this.dirty=false;return this;},_animateScatter:function(_439,_43a){fx.animateTransform(lang.delegate({shape:_439,duration:1200,transform:[{name:"translate",start:[0,_43a],end:[0,0]},{name:"scale",start:[0,0],end:[1,1]},{name:"original"}]},this.animate)).play();}});});},"dojox/charting/plot2d/Stacked":function(){define("dojox/charting/plot2d/Stacked",["dojo/_base/lang","dojo/_base/declare","dojo/_base/array","./Default","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/functional/sequence"],function(lang,_43b,arr,_43c,dc,df,dfr,dfs){var _43d=dfr.lambda("item.purgeGroup()");return _43b("dojox.charting.plot2d.Stacked",_43c,{getSeriesStats:function(){var _43e=dc.collectStackedStats(this.series);this._maxRunLength=_43e.hmax;return _43e;},render:function(dim,_43f){if(this._maxRunLength<=0){return this;}var acc=df.repeat(this._maxRunLength,"-> 0",0);for(var i=0;i<this.series.length;++i){var run=this.series[i];for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_43f);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){arr.forEach(this.series,_43d);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_440=this.events(),ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler);for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _441=t.next(this.opt.areas?"area":"line",[this.opt,run],true),s=run.group,_442,_443=arr.map(acc,function(v,i){return {x:ht(i+1)+_43f.l,y:dim.height-_43f.b-vt(v)};},this);var _444=this.opt.tension?dc.curve(_443,this.opt.tension):"";if(this.opt.areas){var _445=lang.clone(_443);if(this.opt.tension){var p=dc.curve(_445,this.opt.tension);p+=" L"+_443[_443.length-1].x+","+(dim.height-_43f.b)+" L"+_443[0].x+","+(dim.height-_43f.b)+" L"+_443[0].x+","+_443[0].y;run.dyn.fill=s.createPath(p).setFill(_441.series.fill).getFill();}else{_445.push({x:_443[_443.length-1].x,y:dim.height-_43f.b});_445.push({x:_443[0].x,y:dim.height-_43f.b});_445.push(_443[0]);run.dyn.fill=s.createPolyline(_445).setFill(_441.series.fill).getFill();}}if(this.opt.lines||this.opt.markers){if(_441.series.outline){_442=dc.makeStroke(_441.series.outline);_442.width=2*_442.width+_441.series.stroke.width;}}if(this.opt.markers){run.dyn.marker=_441.symbol;}var _446,_447,_448;if(_441.series.shadow&&_441.series.stroke){var _449=_441.series.shadow,_44a=arr.map(_443,function(c){return {x:c.x+_449.dx,y:c.y+_449.dy};});if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_44a,this.opt.tension)).setStroke(_449).getStroke();}else{run.dyn.shadow=s.createPolyline(_44a).setStroke(_449).getStroke();}}if(this.opt.markers){_449=_441.marker.shadow;_448=arr.map(_44a,function(c){return s.createPath("M"+c.x+" "+c.y+" "+_441.symbol).setStroke(_449).setFill(_449.color);},this);}}if(this.opt.lines){if(_442){if(this.opt.tension){run.dyn.outline=s.createPath(_444).setStroke(_442).getStroke();}else{run.dyn.outline=s.createPolyline(_443).setStroke(_442).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_444).setStroke(_441.series.stroke).getStroke();}else{run.dyn.stroke=s.createPolyline(_443).setStroke(_441.series.stroke).getStroke();}}if(this.opt.markers){_446=new Array(_443.length);_447=new Array(_443.length);_442=null;if(_441.marker.outline){_442=dc.makeStroke(_441.marker.outline);_442.width=2*_442.width+(_441.marker.stroke?_441.marker.stroke.width:0);}arr.forEach(_443,function(c,i){var path="M"+c.x+" "+c.y+" "+_441.symbol;if(_442){_447[i]=s.createPath(path).setStroke(_442);}_446[i]=s.createPath(path).setStroke(_441.marker.stroke).setFill(_441.marker.fill);},this);if(_440){var _44b=new Array(_446.length);arr.forEach(_446,function(s,i){var o={element:"marker",index:i,run:run,shape:s,outline:_447[i]||null,shadow:_448&&_448[i]||null,cx:_443[i].x,cy:_443[i].y,x:i+1,y:run.data[i]};this._connectEvents(o);_44b[i]=o;},this);this._eventSeries[run.name]=_44b;}else{delete this._eventSeries[run.name];}}run.dirty=false;for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});});},"dojox/lang/functional/sequence":function(){define(["dojo/_base/lang","./lambda"],function(lang,df){lang.mixin(df,{repeat:function(n,f,z,o){o=o||dojo.global;f=df.lambda(f);var t=new Array(n),i=1;t[0]=z;for(;i<n;t[i]=z=f.call(o,z),++i){}return t;},until:function(pr,f,z,o){o=o||dojo.global;f=df.lambda(f);pr=df.lambda(pr);var t=[];for(;!pr.call(o,z);t.push(z),z=f.call(o,z)){}return t;}});return df;});},"dojox/charting/plot2d/StackedLines":function(){define("dojox/charting/plot2d/StackedLines",["dojo/_base/declare","./Stacked"],function(_44c,_44d){return _44c("dojox.charting.plot2d.StackedLines",_44d,{constructor:function(){this.opt.lines=true;}});});},"dojox/charting/plot2d/StackedAreas":function(){define("dojox/charting/plot2d/StackedAreas",["dojo/_base/declare","./Stacked"],function(_44e,_44f){return _44e("dojox.charting.plot2d.StackedAreas",_44f,{constructor:function(){this.opt.lines=true;this.opt.areas=true;}});});},"dojox/charting/plot2d/Columns":function(){define("dojox/charting/plot2d/Columns",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","./Base","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/utils","dojox/gfx/fx"],function(lang,arr,_450,Base,dc,df,dfr,du,fx){var _451=dfr.lambda("item.purgeGroup()");return _450("dojox.charting.plot2d.Columns",Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:0,animate:null,enableCache:false},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_452,_453){this.opt=lang.clone(this.defaultParams);du.updateWithObject(this.opt,_453);du.updateWithPattern(this.opt,_453,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},getSeriesStats:function(){var _454=dc.collectSimpleStats(this.series);_454.hmin-=0.5;_454.hmax+=0.5;return _454;},createRect:function(run,_455,_456){var rect;if(this.opt.enableCache&&run._rectFreePool.length>0){rect=run._rectFreePool.pop();rect.setShape(_456);_455.add(rect);}else{rect=_455.createRect(_456);}if(this.opt.enableCache){run._rectUsePool.push(rect);}return rect;},render:function(dim,_457){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_457);}var t=this.getSeriesStats();this.resetEvents();this.dirty=this.isDirty();if(this.dirty){arr.forEach(this.series,_451);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_458,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_459=Math.max(0,this._vScaler.bounds.lower),_45a=vt(_459),min=Math.max(0,Math.floor(this._hScaler.bounds.from-1)),max=Math.ceil(this._hScaler.bounds.to),_45b=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_458=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(this.opt.enableCache){run._rectFreePool=(run._rectFreePool?run._rectFreePool:[]).concat(run._rectUsePool?run._rectUsePool:[]);run._rectUsePool=[];}var _45c=t.next("column",[this.opt,run]),s=run.group,_45d=new Array(run.data.length);var l=Math.min(run.data.length,max);for(var j=min;j<l;++j){var _45e=run.data[j];if(_45e!==null){var v=typeof _45e=="number"?_45e:_45e.y,vv=vt(v),_45f=vv-_45a,h=Math.abs(_45f),_460=typeof _45e!="number"?t.addMixin(_45c,"column",_45e,true):t.post(_45c,"column");if(_458>=1&&h>=0){var rect={x:_457.l+ht(j+0.5)+gap,y:dim.height-_457.b-(v>_459?vv:_45a),width:_458,height:h};var _461=this._plotFill(_460.series.fill,dim,_457);_461=this._shapeFill(_461,rect);var _462=this.createRect(run,s,rect).setFill(_461).setStroke(_460.series.stroke);run.dyn.fill=_462.getFill();run.dyn.stroke=_462.getStroke();if(_45b){var o={element:"column",index:j,run:run,shape:_462,x:j+0.5,y:v};this._connectEvents(o);_45d[j]=o;}if(this.animate){this._animateColumn(_462,dim.height-_457.b-_45a,h);}}}}this._eventSeries[run.name]=_45d;run.dirty=false;}this.dirty=false;return this;},_animateColumn:function(_463,_464,_465){fx.animateTransform(lang.delegate({shape:_463,duration:1200,transform:[{name:"translate",start:[0,_464-(_464/_465)],end:[0,0]},{name:"scale",start:[1,1/_465],end:[1,1]},{name:"original"}]},this.animate)).play();}});});},"dojox/charting/plot2d/StackedColumns":function(){define("dojox/charting/plot2d/StackedColumns",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","./Columns","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/functional/sequence"],function(lang,arr,_466,_467,dc,df,dfr,dfs){var _468=dfr.lambda("item.purgeGroup()");return _466("dojox.charting.plot2d.StackedColumns",_467,{getSeriesStats:function(){var _469=dc.collectStackedStats(this.series);this._maxRunLength=_469.hmax;_469.hmin-=0.5;_469.hmax+=0.5;return _469;},render:function(dim,_46a){if(this._maxRunLength<=0){return this;}var acc=df.repeat(this._maxRunLength,"-> 0",0);for(var i=0;i<this.series.length;++i){var run=this.series[i];for(var j=0;j<run.data.length;++j){var _46b=run.data[j];if(_46b!==null){var v=typeof _46b=="number"?_46b:_46b.y;if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_46a);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){arr.forEach(this.series,_468);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_46c,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_46d=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_46c=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _46e=t.next("column",[this.opt,run]),s=run.group,_46f=new Array(acc.length);for(var j=0;j<acc.length;++j){var _46b=run.data[j];if(_46b!==null){var v=acc[j],_470=vt(v),_471=typeof _46b!="number"?t.addMixin(_46e,"column",_46b,true):t.post(_46e,"column");if(_46c>=1&&_470>=0){var rect={x:_46a.l+ht(j+0.5)+gap,y:dim.height-_46a.b-vt(v),width:_46c,height:_470};var _472=this._plotFill(_471.series.fill,dim,_46a);_472=this._shapeFill(_472,rect);var _473=s.createRect(rect).setFill(_472).setStroke(_471.series.stroke);run.dyn.fill=_473.getFill();run.dyn.stroke=_473.getStroke();if(_46d){var o={element:"column",index:j,run:run,shape:_473,x:j+0.5,y:v};this._connectEvents(o);_46f[j]=o;}if(this.animate){this._animateColumn(_473,dim.height-_46a.b,_470);}}}}this._eventSeries[run.name]=_46f;run.dirty=false;for(var j=0;j<run.data.length;++j){var _46b=run.data[j];if(_46b!==null){var v=typeof _46b=="number"?_46b:_46b.y;if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});});},"dojox/charting/plot2d/ClusteredColumns":function(){define("dojox/charting/plot2d/ClusteredColumns",["dojo/_base/array","dojo/_base/declare","./Columns","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/utils"],function(arr,_474,_475,dc,df,dfr,du){var _476=dfr.lambda("item.purgeGroup()");return _474("dojox.charting.plot2d.ClusteredColumns",_475,{render:function(dim,_477){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_477);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){arr.forEach(this.series,_476);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_478,_479,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_47a=Math.max(0,this._vScaler.bounds.lower),_47b=vt(_47a),_47c=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_478=_479=f.size;for(var i=0;i<this.series.length;++i){var run=this.series[i],_47d=_479*i;if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _47e=t.next("column",[this.opt,run]),s=run.group,_47f=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _480=run.data[j];if(_480!==null){var v=typeof _480=="number"?_480:_480.y,vv=vt(v),_481=vv-_47b,h=Math.abs(_481),_482=typeof _480!="number"?t.addMixin(_47e,"column",_480,true):t.post(_47e,"column");if(_478>=1&&h>=0){var rect={x:_477.l+ht(j+0.5)+gap+_47d,y:dim.height-_477.b-(v>_47a?vv:_47b),width:_478,height:h};var _483=this._plotFill(_482.series.fill,dim,_477);_483=this._shapeFill(_483,rect);var _484=s.createRect(rect).setFill(_483).setStroke(_482.series.stroke);run.dyn.fill=_484.getFill();run.dyn.stroke=_484.getStroke();if(_47c){var o={element:"column",index:j,run:run,shape:_484,x:j+0.5,y:v};this._connectEvents(o);_47f[j]=o;}if(this.animate){this._animateColumn(_484,dim.height-_477.b-_47b,h);}}}}this._eventSeries[run.name]=_47f;run.dirty=false;}this.dirty=false;return this;}});});},"dojox/charting/plot2d/Bars":function(){define("dojox/charting/plot2d/Bars",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/declare","./Base","./common","dojox/gfx/fx","dojox/lang/utils","dojox/lang/functional","dojox/lang/functional/reversed"],function(dojo,lang,arr,_485,Base,dc,fx,du,df,dfr){var _486=dfr.lambda("item.purgeGroup()");return _485("dojox.charting.plot2d.Bars",Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:0,animate:null,enableCache:false},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_487,_488){this.opt=lang.clone(this.defaultParams);du.updateWithObject(this.opt,_488);du.updateWithPattern(this.opt,_488,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},getSeriesStats:function(){var _489=dc.collectSimpleStats(this.series),t;_489.hmin-=0.5;_489.hmax+=0.5;t=_489.hmin,_489.hmin=_489.vmin,_489.vmin=t;t=_489.hmax,_489.hmax=_489.vmax,_489.vmax=t;return _489;},createRect:function(run,_48a,_48b){var rect;if(this.opt.enableCache&&run._rectFreePool.length>0){rect=run._rectFreePool.pop();rect.setShape(_48b);_48a.add(rect);}else{rect=_48a.createRect(_48b);}if(this.opt.enableCache){run._rectUsePool.push(rect);}return rect;},render:function(dim,_48c){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_48c);}this.dirty=this.isDirty();this.resetEvents();if(this.dirty){arr.forEach(this.series,_486);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_48d,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_48e=Math.max(0,this._hScaler.bounds.lower),_48f=ht(_48e),_490=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_48d=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(this.opt.enableCache){run._rectFreePool=(run._rectFreePool?run._rectFreePool:[]).concat(run._rectUsePool?run._rectUsePool:[]);run._rectUsePool=[];}var _491=t.next("bar",[this.opt,run]),s=run.group,_492=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _493=run.data[j];if(_493!==null){var v=typeof _493=="number"?_493:_493.y,hv=ht(v),_494=hv-_48f,w=Math.abs(_494),_495=typeof _493!="number"?t.addMixin(_491,"bar",_493,true):t.post(_491,"bar");if(w>=0&&_48d>=1){var rect={x:_48c.l+(v<_48e?hv:_48f),y:dim.height-_48c.b-vt(j+1.5)+gap,width:w,height:_48d};var _496=this._plotFill(_495.series.fill,dim,_48c);_496=this._shapeFill(_496,rect);var _497=this.createRect(run,s,rect).setFill(_496).setStroke(_495.series.stroke);run.dyn.fill=_497.getFill();run.dyn.stroke=_497.getStroke();if(_490){var o={element:"bar",index:j,run:run,shape:_497,x:v,y:j+1.5};this._connectEvents(o);_492[j]=o;}if(this.animate){this._animateBar(_497,_48c.l+_48f,-w);}}}}this._eventSeries[run.name]=_492;run.dirty=false;}this.dirty=false;return this;},_animateBar:function(_498,_499,_49a){fx.animateTransform(lang.delegate({shape:_498,duration:1200,transform:[{name:"translate",start:[_499-(_499/_49a),0],end:[0,0]},{name:"scale",start:[1/_49a,1],end:[1,1]},{name:"original"}]},this.animate)).play();}});});},"dojox/charting/plot2d/StackedBars":function(){define("dojox/charting/plot2d/StackedBars",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","./Bars","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/functional/sequence"],function(lang,arr,_49b,Bars,dc,df,dfr,dfs){var _49c=dfr.lambda("item.purgeGroup()");return _49b("dojox.charting.plot2d.StackedBars",Bars,{getSeriesStats:function(){var _49d=dc.collectStackedStats(this.series),t;this._maxRunLength=_49d.hmax;_49d.hmin-=0.5;_49d.hmax+=0.5;t=_49d.hmin,_49d.hmin=_49d.vmin,_49d.vmin=t;t=_49d.hmax,_49d.hmax=_49d.vmax,_49d.vmax=t;return _49d;},render:function(dim,_49e){if(this._maxRunLength<=0){return this;}var acc=df.repeat(this._maxRunLength,"-> 0",0);for(var i=0;i<this.series.length;++i){var run=this.series[i];for(var j=0;j<run.data.length;++j){var _49f=run.data[j];if(_49f!==null){var v=typeof _49f=="number"?_49f:_49f.y;if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_49e);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){arr.forEach(this.series,_49c);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_4a0,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_4a1=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_4a0=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _4a2=t.next("bar",[this.opt,run]),s=run.group,_4a3=new Array(acc.length);for(var j=0;j<acc.length;++j){var _49f=run.data[j];if(_49f!==null){var v=acc[j],_4a4=ht(v),_4a5=typeof _49f!="number"?t.addMixin(_4a2,"bar",_49f,true):t.post(_4a2,"bar");if(_4a4>=0&&_4a0>=1){var rect={x:_49e.l,y:dim.height-_49e.b-vt(j+1.5)+gap,width:_4a4,height:_4a0};var _4a6=this._plotFill(_4a5.series.fill,dim,_49e);_4a6=this._shapeFill(_4a6,rect);var _4a7=s.createRect(rect).setFill(_4a6).setStroke(_4a5.series.stroke);run.dyn.fill=_4a7.getFill();run.dyn.stroke=_4a7.getStroke();if(_4a1){var o={element:"bar",index:j,run:run,shape:_4a7,x:v,y:j+1.5};this._connectEvents(o);_4a3[j]=o;}if(this.animate){this._animateBar(_4a7,_49e.l,-_4a4);}}}}this._eventSeries[run.name]=_4a3;run.dirty=false;for(var j=0;j<run.data.length;++j){var _49f=run.data[j];if(_49f!==null){var v=typeof _49f=="number"?_49f:_49f.y;if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});});},"dojox/charting/plot2d/ClusteredBars":function(){define("dojox/charting/plot2d/ClusteredBars",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","./Bars","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/utils"],function(lang,arr,_4a8,Bars,dc,df,dfr,du){var _4a9=dfr.lambda("item.purgeGroup()");return _4a8("dojox.charting.plot2d.ClusteredBars",Bars,{render:function(dim,_4aa){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_4aa);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){arr.forEach(this.series,_4a9);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_4ab,_4ac,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_4ad=Math.max(0,this._hScaler.bounds.lower),_4ae=ht(_4ad),_4af=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_4ab=_4ac=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i],_4b0=_4ac*(this.series.length-i-1);if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _4b1=t.next("bar",[this.opt,run]),s=run.group,_4b2=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _4b3=run.data[j];if(_4b3!==null){var v=typeof _4b3=="number"?_4b3:_4b3.y,hv=ht(v),_4b4=hv-_4ae,w=Math.abs(_4b4),_4b5=typeof _4b3!="number"?t.addMixin(_4b1,"bar",_4b3,true):t.post(_4b1,"bar");if(w>=0&&_4ab>=1){var rect={x:_4aa.l+(v<_4ad?hv:_4ae),y:dim.height-_4aa.b-vt(j+1.5)+gap+_4b0,width:w,height:_4ab};var _4b6=this._plotFill(_4b5.series.fill,dim,_4aa);_4b6=this._shapeFill(_4b6,rect);var _4b7=s.createRect(rect).setFill(_4b6).setStroke(_4b5.series.stroke);run.dyn.fill=_4b7.getFill();run.dyn.stroke=_4b7.getStroke();if(_4af){var o={element:"bar",index:j,run:run,shape:_4b7,x:v,y:j+1.5};this._connectEvents(o);_4b2[j]=o;}if(this.animate){this._animateBar(_4b7,_4aa.l+_4ae,-_4b4);}}}}this._eventSeries[run.name]=_4b2;run.dirty=false;}this.dirty=false;return this;}});});},"dojox/charting/plot2d/Grid":function(){define("dojox/charting/plot2d/Grid",["dojo/_base/lang","dojo/_base/declare","dojo/_base/connect","dojo/_base/array","../Element","./common","dojox/lang/utils","dojox/gfx/fx"],function(lang,_4b8,hub,arr,_4b9,dc,du,fx){return _4b8("dojox.charting.plot2d.Grid",_4b9,{defaultParams:{hAxis:"x",vAxis:"y",hMajorLines:true,hMinorLines:false,vMajorLines:true,vMinorLines:false,hStripes:"none",vStripes:"none",animate:null,enableCache:false},optionalParams:{},constructor:function(_4ba,_4bb){this.opt=lang.clone(this.defaultParams);du.updateWithObject(this.opt,_4bb);this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.dirty=true;this.animate=this.opt.animate;this.zoom=null,this.zoomQueue=[];this.lastWindow={vscale:1,hscale:1,xoffset:0,yoffset:0};if(this.opt.enableCache){this._lineFreePool=[];this._lineUsePool=[];}},clear:function(){this._hAxis=null;this._vAxis=null;this.dirty=true;return this;},setAxis:function(axis){if(axis){this[axis.vertical?"_vAxis":"_hAxis"]=axis;}return this;},addSeries:function(run){return this;},getSeriesStats:function(){return lang.delegate(dc.defaultStats);},initializeScalers:function(){return this;},isDirty:function(){return this.dirty||this._hAxis&&this._hAxis.dirty||this._vAxis&&this._vAxis.dirty;},performZoom:function(dim,_4bc){var vs=this._vAxis.scale||1,hs=this._hAxis.scale||1,_4bd=dim.height-_4bc.b,_4be=this._hAxis.getScaler().bounds,_4bf=(_4be.from-_4be.lower)*_4be.scale,_4c0=this._vAxis.getScaler().bounds,_4c1=(_4c0.from-_4c0.lower)*_4c0.scale,_4c2=vs/this.lastWindow.vscale,_4c3=hs/this.lastWindow.hscale,_4c4=(this.lastWindow.xoffset-_4bf)/((this.lastWindow.hscale==1)?hs:this.lastWindow.hscale),_4c5=(_4c1-this.lastWindow.yoffset)/((this.lastWindow.vscale==1)?vs:this.lastWindow.vscale),_4c6=this.group,anim=fx.animateTransform(lang.delegate({shape:_4c6,duration:1200,transform:[{name:"translate",start:[0,0],end:[_4bc.l*(1-_4c3),_4bd*(1-_4c2)]},{name:"scale",start:[1,1],end:[_4c3,_4c2]},{name:"original"},{name:"translate",start:[0,0],end:[_4c4,_4c5]}]},this.zoom));lang.mixin(this.lastWindow,{vscale:vs,hscale:hs,xoffset:_4bf,yoffset:_4c1});this.zoomQueue.push(anim);hub.connect(anim,"onEnd",this,function(){this.zoom=null;this.zoomQueue.shift();if(this.zoomQueue.length>0){this.zoomQueue[0].play();}});if(this.zoomQueue.length==1){this.zoomQueue[0].play();}return this;},getRequiredColors:function(){return 0;},cleanGroup:function(){this.inherited(arguments);if(this.opt.enableCache){this._lineFreePool=this._lineFreePool.concat(this._lineUsePool);this._lineUsePool=[];}},createLine:function(_4c7,_4c8){var line;if(this.opt.enableCache&&this._lineFreePool.length>0){line=this._lineFreePool.pop();line.setShape(_4c8);_4c7.add(line);}else{line=_4c7.createLine(_4c8);}if(this.opt.enableCache){this._lineUsePool.push(line);}return line;},render:function(dim,_4c9){if(this.zoom){return this.performZoom(dim,_4c9);}this.dirty=this.isDirty();if(!this.dirty){return this;}this.cleanGroup();var s=this.group,ta=this.chart.theme.axis;try{var _4ca=this._vAxis.getScaler(),vt=_4ca.scaler.getTransformerFromModel(_4ca),_4cb=this._vAxis.getTicks();if(_4cb!=null){if(this.opt.hMinorLines){arr.forEach(_4cb.minor,function(tick){var y=dim.height-_4c9.b-vt(tick.value);var _4cc=this.createLine(s,{x1:_4c9.l,y1:y,x2:dim.width-_4c9.r,y2:y}).setStroke(ta.minorTick);if(this.animate){this._animateGrid(_4cc,"h",_4c9.l,_4c9.r+_4c9.l-dim.width);}},this);}if(this.opt.hMajorLines){arr.forEach(_4cb.major,function(tick){var y=dim.height-_4c9.b-vt(tick.value);var _4cd=this.createLine(s,{x1:_4c9.l,y1:y,x2:dim.width-_4c9.r,y2:y}).setStroke(ta.majorTick);if(this.animate){this._animateGrid(_4cd,"h",_4c9.l,_4c9.r+_4c9.l-dim.width);}},this);}}}catch(e){}try{var _4ce=this._hAxis.getScaler(),ht=_4ce.scaler.getTransformerFromModel(_4ce),_4cb=this._hAxis.getTicks();if(this!=null){if(_4cb&&this.opt.vMinorLines){arr.forEach(_4cb.minor,function(tick){var x=_4c9.l+ht(tick.value);var _4cf=this.createLine(s,{x1:x,y1:_4c9.t,x2:x,y2:dim.height-_4c9.b}).setStroke(ta.minorTick);if(this.animate){this._animateGrid(_4cf,"v",dim.height-_4c9.b,dim.height-_4c9.b-_4c9.t);}},this);}if(_4cb&&this.opt.vMajorLines){arr.forEach(_4cb.major,function(tick){var x=_4c9.l+ht(tick.value);var _4d0=this.createLine(s,{x1:x,y1:_4c9.t,x2:x,y2:dim.height-_4c9.b}).setStroke(ta.majorTick);if(this.animate){this._animateGrid(_4d0,"v",dim.height-_4c9.b,dim.height-_4c9.b-_4c9.t);}},this);}}}catch(e){}this.dirty=false;return this;},_animateGrid:function(_4d1,type,_4d2,size){var _4d3=type=="h"?[_4d2,0]:[0,_4d2];var _4d4=type=="h"?[1/size,1]:[1,1/size];fx.animateTransform(lang.delegate({shape:_4d1,duration:1200,transform:[{name:"translate",start:_4d3,end:[0,0]},{name:"scale",start:_4d4,end:[1,1]},{name:"original"}]},this.animate)).play();}});});},"dojox/charting/plot2d/Pie":function(){define("dojox/charting/plot2d/Pie",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","../Element","./_PlotEvents","./common","../axis2d/common","dojox/gfx","dojox/gfx/matrix","dojox/lang/functional","dojox/lang/utils"],function(lang,arr,_4d5,_4d6,_4d7,dc,da,g,m,df,du){var _4d8=0.2;return _4d5("dojox.charting.plot2d.Pie",[_4d6,_4d7],{defaultParams:{labels:true,ticks:false,fixed:true,precision:1,labelOffset:20,labelStyle:"default",htmlLabels:true,radGrad:"native",fanSize:5,startAngle:0},optionalParams:{radius:0,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:"",labelWiring:{}},constructor:function(_4d9,_4da){this.opt=lang.clone(this.defaultParams);du.updateWithObject(this.opt,_4da);du.updateWithPattern(this.opt,_4da,this.optionalParams);this.run=null;this.dyn=[];},clear:function(){this.dirty=true;this.dyn=[];this.run=null;return this;},setAxis:function(axis){return this;},addSeries:function(run){this.run=run;return this;},getSeriesStats:function(){return lang.delegate(dc.defaultStats);},initializeScalers:function(){return this;},getRequiredColors:function(){return this.run?this.run.data.length:0;},render:function(dim,_4db){if(!this.dirty){return this;}this.resetEvents();this.dirty=false;this._eventSeries={};this.cleanGroup();var s=this.group,t=this.chart.theme;if(!this.run||!this.run.data.length){return this;}var rx=(dim.width-_4db.l-_4db.r)/2,ry=(dim.height-_4db.t-_4db.b)/2,r=Math.min(rx,ry),_4dc="font" in this.opt?this.opt.font:t.axis.font,size=_4dc?g.normalizedLength(g.splitFontString(_4dc).size):0,_4dd="fontColor" in this.opt?this.opt.fontColor:t.axis.fontColor,_4de=m._degToRad(this.opt.startAngle),_4df=_4de,step,_4e0,_4e1,_4e2,_4e3,_4e4,run=this.run.data,_4e5=this.events();if(typeof run[0]=="number"){_4e0=df.map(run,"x ? Math.max(x, 0) : 0");if(df.every(_4e0,"<= 0")){return this;}_4e1=df.map(_4e0,"/this",df.foldl(_4e0,"+",0));if(this.opt.labels){_4e2=arr.map(_4e1,function(x){return x>0?this._getLabel(x*100)+"%":"";},this);}}else{_4e0=df.map(run,"x ? Math.max(x.y, 0) : 0");if(df.every(_4e0,"<= 0")){return this;}_4e1=df.map(_4e0,"/this",df.foldl(_4e0,"+",0));if(this.opt.labels){_4e2=arr.map(_4e1,function(x,i){if(x<=0){return "";}var v=run[i];return "text" in v?v.text:this._getLabel(x*100)+"%";},this);}}var _4e6=df.map(run,function(v,i){if(v===null||typeof v=="number"){return t.next("slice",[this.opt,this.run],true);}return t.next("slice",[this.opt,this.run,v],true);},this);if(this.opt.labels){_4e3=df.foldl1(df.map(_4e2,function(_4e7,i){var font=_4e6[i].series.font;return g._base._getTextBox(_4e7,{font:font}).w;},this),"Math.max(a, b)")/2;if(this.opt.labelOffset<0){r=Math.min(rx-2*_4e3,ry-size)+this.opt.labelOffset;}_4e4=r-this.opt.labelOffset;}if("radius" in this.opt){r=this.opt.radius;_4e4=r-this.opt.labelOffset;}var _4e8={cx:_4db.l+rx,cy:_4db.t+ry,r:r};this.dyn=[];var _4e9=new Array(_4e1.length);arr.some(_4e1,function(_4ea,i){if(_4ea<0){return false;}if(_4ea==0){this.dyn.push({fill:null,stroke:null});return false;}var v=run[i],_4eb=_4e6[i],_4ec;if(_4ea>=1){_4ec=this._plotFill(_4eb.series.fill,dim,_4db);_4ec=this._shapeFill(_4ec,{x:_4e8.cx-_4e8.r,y:_4e8.cy-_4e8.r,width:2*_4e8.r,height:2*_4e8.r});_4ec=this._pseudoRadialFill(_4ec,{x:_4e8.cx,y:_4e8.cy},_4e8.r);var _4ed=s.createCircle(_4e8).setFill(_4ec).setStroke(_4eb.series.stroke);this.dyn.push({fill:_4ec,stroke:_4eb.series.stroke});if(_4e5){var o={element:"slice",index:i,run:this.run,shape:_4ed,x:i,y:typeof v=="number"?v:v.y,cx:_4e8.cx,cy:_4e8.cy,cr:r};this._connectEvents(o);_4e9[i]=o;}return true;}var end=_4df+_4ea*2*Math.PI;if(i+1==_4e1.length){end=_4de+2*Math.PI;}var step=end-_4df,x1=_4e8.cx+r*Math.cos(_4df),y1=_4e8.cy+r*Math.sin(_4df),x2=_4e8.cx+r*Math.cos(end),y2=_4e8.cy+r*Math.sin(end);var _4ee=m._degToRad(this.opt.fanSize);if(_4eb.series.fill&&_4eb.series.fill.type==="radial"&&this.opt.radGrad==="fan"&&step>_4ee){var _4ef=s.createGroup(),_4f0=Math.ceil(step/_4ee),_4f1=step/_4f0;_4ec=this._shapeFill(_4eb.series.fill,{x:_4e8.cx-_4e8.r,y:_4e8.cy-_4e8.r,width:2*_4e8.r,height:2*_4e8.r});for(var j=0;j<_4f0;++j){var _4f2=j==0?x1:_4e8.cx+r*Math.cos(_4df+(j-_4d8)*_4f1),_4f3=j==0?y1:_4e8.cy+r*Math.sin(_4df+(j-_4d8)*_4f1),_4f4=j==_4f0-1?x2:_4e8.cx+r*Math.cos(_4df+(j+1+_4d8)*_4f1),_4f5=j==_4f0-1?y2:_4e8.cy+r*Math.sin(_4df+(j+1+_4d8)*_4f1),fan=_4ef.createPath().moveTo(_4e8.cx,_4e8.cy).lineTo(_4f2,_4f3).arcTo(r,r,0,_4f1>Math.PI,true,_4f4,_4f5).lineTo(_4e8.cx,_4e8.cy).closePath().setFill(this._pseudoRadialFill(_4ec,{x:_4e8.cx,y:_4e8.cy},r,_4df+(j+0.5)*_4f1,_4df+(j+0.5)*_4f1));}_4ef.createPath().moveTo(_4e8.cx,_4e8.cy).lineTo(x1,y1).arcTo(r,r,0,step>Math.PI,true,x2,y2).lineTo(_4e8.cx,_4e8.cy).closePath().setStroke(_4eb.series.stroke);_4ed=_4ef;}else{_4ed=s.createPath().moveTo(_4e8.cx,_4e8.cy).lineTo(x1,y1).arcTo(r,r,0,step>Math.PI,true,x2,y2).lineTo(_4e8.cx,_4e8.cy).closePath().setStroke(_4eb.series.stroke);var _4ec=_4eb.series.fill;if(_4ec&&_4ec.type==="radial"){_4ec=this._shapeFill(_4ec,{x:_4e8.cx-_4e8.r,y:_4e8.cy-_4e8.r,width:2*_4e8.r,height:2*_4e8.r});if(this.opt.radGrad==="linear"){_4ec=this._pseudoRadialFill(_4ec,{x:_4e8.cx,y:_4e8.cy},r,_4df,end);}}else{if(_4ec&&_4ec.type==="linear"){_4ec=this._plotFill(_4ec,dim,_4db);_4ec=this._shapeFill(_4ec,_4ed.getBoundingBox());}}_4ed.setFill(_4ec);}this.dyn.push({fill:_4ec,stroke:_4eb.series.stroke});if(_4e5){var o={element:"slice",index:i,run:this.run,shape:_4ed,x:i,y:typeof v=="number"?v:v.y,cx:_4e8.cx,cy:_4e8.cy,cr:r};this._connectEvents(o);_4e9[i]=o;}_4df=end;return false;},this);if(this.opt.labels){if(this.opt.labelStyle=="default"){_4df=_4de;arr.some(_4e1,function(_4f6,i){if(_4f6<=0){return false;}var _4f7=_4e6[i];if(_4f6>=1){var v=run[i],elem=da.createText[this.opt.htmlLabels&&g.renderer!="vml"?"html":"gfx"](this.chart,s,_4e8.cx,_4e8.cy+size/2,"middle",_4e2[i],_4f7.series.font,_4f7.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}return true;}var end=_4df+_4f6*2*Math.PI,v=run[i];if(i+1==_4e1.length){end=_4de+2*Math.PI;}var _4f8=(_4df+end)/2,x=_4e8.cx+_4e4*Math.cos(_4f8),y=_4e8.cy+_4e4*Math.sin(_4f8)+size/2;var elem=da.createText[this.opt.htmlLabels&&g.renderer!="vml"?"html":"gfx"](this.chart,s,x,y,"middle",_4e2[i],_4f7.series.font,_4f7.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}_4df=end;return false;},this);}else{if(this.opt.labelStyle=="columns"){_4df=_4de;var _4f9=[];arr.forEach(_4e1,function(_4fa,i){var end=_4df+_4fa*2*Math.PI;if(i+1==_4e1.length){end=_4de+2*Math.PI;}var _4fb=(_4df+end)/2;_4f9.push({angle:_4fb,left:Math.cos(_4fb)<0,theme:_4e6[i],index:i,omit:end-_4df<0.001});_4df=end;});var _4fc=g._base._getTextBox("a",{font:_4dc}).h;this._getProperLabelRadius(_4f9,_4fc,_4e8.r*1.1);arr.forEach(_4f9,function(_4fd,i){if(!_4fd.omit){var _4fe=_4e8.cx-_4e8.r*2,_4ff=_4e8.cx+_4e8.r*2,_500=g._base._getTextBox(_4e2[i],{font:_4dc}).w,x=_4e8.cx+_4fd.labelR*Math.cos(_4fd.angle),y=_4e8.cy+_4fd.labelR*Math.sin(_4fd.angle),_501=(_4fd.left)?(_4fe+_500):(_4ff-_500),_502=(_4fd.left)?_4fe:_501;var _503=s.createPath().moveTo(_4e8.cx+_4e8.r*Math.cos(_4fd.angle),_4e8.cy+_4e8.r*Math.sin(_4fd.angle));if(Math.abs(_4fd.labelR*Math.cos(_4fd.angle))<_4e8.r*2-_500){_503.lineTo(x,y);}_503.lineTo(_501,y).setStroke(_4fd.theme.series.labelWiring);var elem=da.createText[this.opt.htmlLabels&&g.renderer!="vml"?"html":"gfx"](this.chart,s,_502,y,"left",_4e2[i],_4fd.theme.series.font,_4fd.theme.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}}},this);}}}var esi=0;this._eventSeries[this.run.name]=df.map(run,function(v){return v<=0?null:_4e9[esi++];});return this;},_getProperLabelRadius:function(_504,_505,_506){var _507={},_508={},_509=1,_50a=1;if(_504.length==1){_504[0].labelR=_506;return;}for(var i=0;i<_504.length;i++){var _50b=Math.abs(Math.sin(_504[i].angle));if(_504[i].left){if(_509>=_50b){_509=_50b;_507=_504[i];}}else{if(_50a>=_50b){_50a=_50b;_508=_504[i];}}}_507.labelR=_508.labelR=_506;this._calculateLabelR(_507,_504,_505);this._calculateLabelR(_508,_504,_505);},_calculateLabelR:function(_50c,_50d,_50e){var i=_50c.index,_50f=_50d.length,_510=_50c.labelR;while(!(_50d[i%_50f].left^_50d[(i+1)%_50f].left)){if(!_50d[(i+1)%_50f].omit){var _511=(Math.sin(_50d[i%_50f].angle)*_510+((_50d[i%_50f].left)?(-_50e):_50e))/Math.sin(_50d[(i+1)%_50f].angle);_510=(_511<_50c.labelR)?_50c.labelR:_511;_50d[(i+1)%_50f].labelR=_510;}i++;}i=_50c.index;var j=(i==0)?_50f-1:i-1;while(!(_50d[i].left^_50d[j].left)){if(!_50d[j].omit){var _511=(Math.sin(_50d[i].angle)*_510+((_50d[i].left)?_50e:(-_50e)))/Math.sin(_50d[j].angle);_510=(_511<_50c.labelR)?_50c.labelR:_511;_50d[j].labelR=_510;}i--;j--;i=(i<0)?i+_50d.length:i;j=(j<0)?j+_50d.length:j;}},_getLabel:function(_512){return dc.getLabel(_512,this.opt.fixed,this.opt.precision);}});});},"dojox/charting/plot2d/Bubble":function(){define("dojox/charting/plot2d/Bubble",["dojo/_base/lang","dojo/_base/declare","dojo/_base/array","./Base","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/utils","dojox/gfx/fx"],function(lang,_513,arr,Base,dc,df,dfr,du,fx){var _514=dfr.lambda("item.purgeGroup()");return _513("dojox.charting.plot2d.Bubble",Base,{defaultParams:{hAxis:"x",vAxis:"y",animate:null},optionalParams:{stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_515,_516){this.opt=lang.clone(this.defaultParams);du.updateWithObject(this.opt,_516);du.updateWithPattern(this.opt,_516,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_517){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_517);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){arr.forEach(this.series,_514);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_518=this.events();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(!run.data.length){run.dirty=false;t.skip();continue;}if(typeof run.data[0]=="number"){console.warn("dojox.charting.plot2d.Bubble: the data in the following series cannot be rendered as a bubble chart; ",run);continue;}var _519=t.next("circle",[this.opt,run]),s=run.group,_51a=arr.map(run.data,function(v,i){return v?{x:ht(v.x)+_517.l,y:dim.height-_517.b-vt(v.y),radius:this._vScaler.bounds.scale*(v.size/2)}:null;},this);var _51b=null,_51c=null,_51d=null;if(_519.series.shadow){_51d=arr.map(_51a,function(item){if(item!==null){var _51e=t.addMixin(_519,"circle",item,true),_51f=_51e.series.shadow;var _520=s.createCircle({cx:item.x+_51f.dx,cy:item.y+_51f.dy,r:item.radius}).setStroke(_51f).setFill(_51f.color);if(this.animate){this._animateBubble(_520,dim.height-_517.b,item.radius);}return _520;}return null;},this);if(_51d.length){run.dyn.shadow=_51d[_51d.length-1].getStroke();}}if(_519.series.outline){_51c=arr.map(_51a,function(item){if(item!==null){var _521=t.addMixin(_519,"circle",item,true),_522=dc.makeStroke(_521.series.outline);_522.width=2*_522.width+_519.series.stroke.width;var _523=s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setStroke(_522);if(this.animate){this._animateBubble(_523,dim.height-_517.b,item.radius);}return _523;}return null;},this);if(_51c.length){run.dyn.outline=_51c[_51c.length-1].getStroke();}}_51b=arr.map(_51a,function(item){if(item!==null){var _524=t.addMixin(_519,"circle",item,true),rect={x:item.x-item.radius,y:item.y-item.radius,width:2*item.radius,height:2*item.radius};var _525=this._plotFill(_524.series.fill,dim,_517);_525=this._shapeFill(_525,rect);var _526=s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setFill(_525).setStroke(_524.series.stroke);if(this.animate){this._animateBubble(_526,dim.height-_517.b,item.radius);}return _526;}return null;},this);if(_51b.length){run.dyn.fill=_51b[_51b.length-1].getFill();run.dyn.stroke=_51b[_51b.length-1].getStroke();}if(_518){var _527=new Array(_51b.length);arr.forEach(_51b,function(s,i){if(s!==null){var o={element:"circle",index:i,run:run,shape:s,outline:_51c&&_51c[i]||null,shadow:_51d&&_51d[i]||null,x:run.data[i].x,y:run.data[i].y,r:run.data[i].size/2,cx:_51a[i].x,cy:_51a[i].y,cr:_51a[i].radius};this._connectEvents(o);_527[i]=o;}},this);this._eventSeries[run.name]=_527;}else{delete this._eventSeries[run.name];}run.dirty=false;}this.dirty=false;return this;},_animateBubble:function(_528,_529,size){fx.animateTransform(lang.delegate({shape:_528,duration:1200,transform:[{name:"translate",start:[0,_529],end:[0,0]},{name:"scale",start:[0,1/size],end:[1,1]},{name:"original"}]},this.animate)).play();}});});},"dojox/charting/plot2d/Candlesticks":function(){define("dojox/charting/plot2d/Candlesticks",["dojo/_base/lang","dojo/_base/declare","dojo/_base/array","./Base","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/utils","dojox/gfx/fx"],function(lang,_52a,arr,Base,dc,df,dfr,du,fx){var _52b=dfr.lambda("item.purgeGroup()");return _52a("dojox.charting.plot2d.Candlesticks",Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:2,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_52c,_52d){this.opt=lang.clone(this.defaultParams);du.updateWithObject(this.opt,_52d);du.updateWithPattern(this.opt,_52d,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},collectStats:function(_52e){var _52f=lang.delegate(dc.defaultStats);for(var i=0;i<_52e.length;i++){var run=_52e[i];if(!run.data.length){continue;}var _530=_52f.vmin,_531=_52f.vmax;if(!("ymin" in run)||!("ymax" in run)){arr.forEach(run.data,function(val,idx){if(val!==null){var x=val.x||idx+1;_52f.hmin=Math.min(_52f.hmin,x);_52f.hmax=Math.max(_52f.hmax,x);_52f.vmin=Math.min(_52f.vmin,val.open,val.close,val.high,val.low);_52f.vmax=Math.max(_52f.vmax,val.open,val.close,val.high,val.low);}});}if("ymin" in run){_52f.vmin=Math.min(_530,run.ymin);}if("ymax" in run){_52f.vmax=Math.max(_531,run.ymax);}}return _52f;},getSeriesStats:function(){var _532=this.collectStats(this.series);_532.hmin-=0.5;_532.hmax+=0.5;return _532;},render:function(dim,_533){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_533);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){arr.forEach(this.series,_52b);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_534,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_535=Math.max(0,this._vScaler.bounds.lower),_536=vt(_535),_537=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_534=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _538=t.next("candlestick",[this.opt,run]),s=run.group,_539=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){var _53a=t.addMixin(_538,"candlestick",v,true);var x=ht(v.x||(j+0.5))+_533.l+gap,y=dim.height-_533.b,open=vt(v.open),_53b=vt(v.close),high=vt(v.high),low=vt(v.low);if("mid" in v){var mid=vt(v.mid);}if(low>high){var tmp=high;high=low;low=tmp;}if(_534>=1){var _53c=open>_53b;var line={x1:_534/2,x2:_534/2,y1:y-high,y2:y-low},rect={x:0,y:y-Math.max(open,_53b),width:_534,height:Math.max(_53c?open-_53b:_53b-open,1)};var _53d=s.createGroup();_53d.setTransform({dx:x,dy:0});var _53e=_53d.createGroup();_53e.createLine(line).setStroke(_53a.series.stroke);_53e.createRect(rect).setStroke(_53a.series.stroke).setFill(_53c?_53a.series.fill:"white");if("mid" in v){_53e.createLine({x1:(_53a.series.stroke.width||1),x2:_534-(_53a.series.stroke.width||1),y1:y-mid,y2:y-mid}).setStroke(_53c?"white":_53a.series.stroke);}run.dyn.fill=_53a.series.fill;run.dyn.stroke=_53a.series.stroke;if(_537){var o={element:"candlestick",index:j,run:run,shape:_53e,x:x,y:y-Math.max(open,_53b),cx:_534/2,cy:(y-Math.max(open,_53b))+(Math.max(_53c?open-_53b:_53b-open,1)/2),width:_534,height:Math.max(_53c?open-_53b:_53b-open,1),data:v};this._connectEvents(o);_539[j]=o;}}if(this.animate){this._animateCandlesticks(_53d,y-low,high-low);}}}this._eventSeries[run.name]=_539;run.dirty=false;}this.dirty=false;return this;},_animateCandlesticks:function(_53f,_540,_541){fx.animateTransform(lang.delegate({shape:_53f,duration:1200,transform:[{name:"translate",start:[0,_540-(_540/_541)],end:[0,0]},{name:"scale",start:[1,1/_541],end:[1,1]},{name:"original"}]},this.animate)).play();}});});},"dojox/charting/plot2d/OHLC":function(){define("dojox/charting/plot2d/OHLC",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","./Base","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/utils","dojox/gfx/fx"],function(lang,arr,_542,Base,dc,df,dfr,du,fx){var _543=dfr.lambda("item.purgeGroup()");return _542("dojox.charting.plot2d.OHLC",Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:2,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_544,_545){this.opt=lang.clone(this.defaultParams);du.updateWithObject(this.opt,_545);du.updateWithPattern(this.opt,_545,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},collectStats:function(_546){var _547=lang.delegate(dc.defaultStats);for(var i=0;i<_546.length;i++){var run=_546[i];if(!run.data.length){continue;}var _548=_547.vmin,_549=_547.vmax;if(!("ymin" in run)||!("ymax" in run)){arr.forEach(run.data,function(val,idx){if(val!==null){var x=val.x||idx+1;_547.hmin=Math.min(_547.hmin,x);_547.hmax=Math.max(_547.hmax,x);_547.vmin=Math.min(_547.vmin,val.open,val.close,val.high,val.low);_547.vmax=Math.max(_547.vmax,val.open,val.close,val.high,val.low);}});}if("ymin" in run){_547.vmin=Math.min(_548,run.ymin);}if("ymax" in run){_547.vmax=Math.max(_549,run.ymax);}}return _547;},getSeriesStats:function(){var _54a=this.collectStats(this.series);_54a.hmin-=0.5;_54a.hmax+=0.5;return _54a;},render:function(dim,_54b){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_54b);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){arr.forEach(this.series,_543);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_54c,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_54d=Math.max(0,this._vScaler.bounds.lower),_54e=vt(_54d),_54f=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_54c=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _550=t.next("candlestick",[this.opt,run]),s=run.group,_551=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){var _552=t.addMixin(_550,"candlestick",v,true);var x=ht(v.x||(j+0.5))+_54b.l+gap,y=dim.height-_54b.b,open=vt(v.open),_553=vt(v.close),high=vt(v.high),low=vt(v.low);if(low>high){var tmp=high;high=low;low=tmp;}if(_54c>=1){var hl={x1:_54c/2,x2:_54c/2,y1:y-high,y2:y-low},op={x1:0,x2:((_54c/2)+((_552.series.stroke.width||1)/2)),y1:y-open,y2:y-open},cl={x1:((_54c/2)-((_552.series.stroke.width||1)/2)),x2:_54c,y1:y-_553,y2:y-_553};var _554=s.createGroup();_554.setTransform({dx:x,dy:0});var _555=_554.createGroup();_555.createLine(hl).setStroke(_552.series.stroke);_555.createLine(op).setStroke(_552.series.stroke);_555.createLine(cl).setStroke(_552.series.stroke);run.dyn.stroke=_552.series.stroke;if(_54f){var o={element:"candlestick",index:j,run:run,shape:_555,x:x,y:y-Math.max(open,_553),cx:_54c/2,cy:(y-Math.max(open,_553))+(Math.max(open>_553?open-_553:_553-open,1)/2),width:_54c,height:Math.max(open>_553?open-_553:_553-open,1),data:v};this._connectEvents(o);_551[j]=o;}}if(this.animate){this._animateOHLC(_554,y-low,high-low);}}}this._eventSeries[run.name]=_551;run.dirty=false;}this.dirty=false;return this;},_animateOHLC:function(_556,_557,_558){fx.animateTransform(lang.delegate({shape:_556,duration:1200,transform:[{name:"translate",start:[0,_557-(_557/_558)],end:[0,0]},{name:"scale",start:[1,1/_558],end:[1,1]},{name:"original"}]},this.animate)).play();}});});},"dojox/charting/plot2d/Spider":function(){define("dojox/charting/plot2d/Spider",["dojo/_base/lang","dojo/_base/declare","dojo/_base/connect","dojo/_base/html","dojo/_base/array","dojo/dom-geometry","dojo/_base/fx","dojo/fx","dojo/_base/sniff","../Element","./_PlotEvents","dojo/_base/Color","dojox/color/_base","./common","../axis2d/common","../scaler/primitive","dojox/gfx","dojox/gfx/matrix","dojox/gfx/fx","dojox/lang/functional","dojox/lang/utils","dojo/fx/easing"],function(lang,_559,hub,html,arr,_55a,_55b,_55c,has,_55d,_55e,_55f,_560,dc,da,_561,g,m,_562,df,du,_563){var _564=0.2;var _565=_559("dojox.charting.plot2d.Spider",[_55d,_55e],{defaultParams:{labels:true,ticks:false,fixed:true,precision:1,labelOffset:-10,labelStyle:"default",htmlLabels:true,startAngle:-90,divisions:3,axisColor:"",axisWidth:0,spiderColor:"",spiderWidth:0,seriesWidth:0,seriesFillAlpha:0.2,spiderOrigin:0.16,markerSize:3,spiderType:"polygon",animationType:_563.backOut,axisTickFont:"",axisTickFontColor:"",axisFont:"",axisFontColor:""},optionalParams:{radius:0,font:"",fontColor:""},constructor:function(_566,_567){this.opt=lang.clone(this.defaultParams);du.updateWithObject(this.opt,_567);du.updateWithPattern(this.opt,_567,this.optionalParams);this.series=[];this.dyn=[];this.datas={};this.labelKey=[];this.oldSeriePoints={};this.animations={};},clear:function(){this.dirty=true;this.dyn=[];this.series=[];this.datas={};this.labelKey=[];this.oldSeriePoints={};this.animations={};return this;},setAxis:function(axis){return this;},addSeries:function(run){var _568=false;this.series.push(run);for(var key in run.data){var val=run.data[key],data=this.datas[key];if(data){data.vlist.push(val);data.min=Math.min(data.min,val);data.max=Math.max(data.max,val);}else{this.datas[key]={min:val,max:val,vlist:[val]};}}if(this.labelKey.length<=0){for(var key in run.data){this.labelKey.push(key);}}return this;},getSeriesStats:function(){return dc.collectSimpleStats(this.series);},calculateAxes:function(dim){this.initializeScalers(dim,this.getSeriesStats());return this;},getRequiredColors:function(){return this.series.length;},initializeScalers:function(dim,_569){if(this._hAxis){if(!this._hAxis.initialized()){this._hAxis.calculate(_569.hmin,_569.hmax,dim.width);}this._hScaler=this._hAxis.getScaler();}else{this._hScaler=_561.buildScaler(_569.hmin,_569.hmax,dim.width);}if(this._vAxis){if(!this._vAxis.initialized()){this._vAxis.calculate(_569.vmin,_569.vmax,dim.height);}this._vScaler=this._vAxis.getScaler();}else{this._vScaler=_561.buildScaler(_569.vmin,_569.vmax,dim.height);}return this;},render:function(dim,_56a){if(!this.dirty){return this;}this.dirty=false;this.cleanGroup();var s=this.group,t=this.chart.theme;this.resetEvents();if(!this.series||!this.series.length){return this;}var o=this.opt,ta=t.axis,rx=(dim.width-_56a.l-_56a.r)/2,ry=(dim.height-_56a.t-_56a.b)/2,r=Math.min(rx,ry),_56b=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font)||"normal normal normal 7pt Tahoma",_56c=o.axisFont||(ta.tick&&ta.tick.titleFont)||"normal normal normal 11pt Tahoma",_56d=o.axisTickFontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"silver",_56e=o.axisFontColor||(ta.tick&&ta.tick.titleFontColor)||"black",_56f=o.axisColor||(ta.tick&&ta.tick.axisColor)||"silver",_570=o.spiderColor||(ta.tick&&ta.tick.spiderColor)||"silver",_571=o.axisWidth||(ta.stroke&&ta.stroke.width)||2,_572=o.spiderWidth||(ta.stroke&&ta.stroke.width)||2,_573=o.seriesWidth||(ta.stroke&&ta.stroke.width)||2,_574=g.normalizedLength(g.splitFontString(_56c).size),_575=m._degToRad(o.startAngle),_576=_575,step,_577,_578,_579,_57a,_57b,_57c,_57d,_57e,_57f,_580,ro=o.spiderOrigin,dv=o.divisions>=3?o.divisions:3,ms=o.markerSize,spt=o.spiderType,at=o.animationType,_581=o.labelOffset<-10?o.labelOffset:-10,_582=0.2;if(o.labels){_579=arr.map(this.series,function(s){return s.name;},this);_57a=df.foldl1(df.map(_579,function(_583,i){var font=t.series.font;return g._base._getTextBox(_583,{font:font}).w;},this),"Math.max(a, b)")/2;r=Math.min(rx-2*_57a,ry-_574)+_581;_57b=r-_581;}if("radius" in o){r=o.radius;_57b=r-_581;}r/=(1+_582);var _584={cx:_56a.l+rx,cy:_56a.t+ry,r:r};for(var i=this.series.length-1;i>=0;i--){var _585=this.series[i];if(!this.dirty&&!_585.dirty){t.skip();continue;}_585.cleanGroup();var run=_585.data;if(run!==null){var len=this._getObjectLength(run);if(!_57c||_57c.length<=0){_57c=[],_57d=[],_580=[];this._buildPoints(_57c,len,_584,r,_576,true);this._buildPoints(_57d,len,_584,r*ro,_576,true);this._buildPoints(_580,len,_584,_57b,_576);if(dv>2){_57e=[],_57f=[];for(var j=0;j<dv-2;j++){_57e[j]=[];this._buildPoints(_57e[j],len,_584,r*(ro+(1-ro)*(j+1)/(dv-1)),_576,true);_57f[j]=r*(ro+(1-ro)*(j+1)/(dv-1));}}}}}var _586=s.createGroup(),_587={color:_56f,width:_571},_588={color:_570,width:_572};for(var j=_57c.length-1;j>=0;--j){var _589=_57c[j],st={x:_589.x+(_589.x-_584.cx)*_582,y:_589.y+(_589.y-_584.cy)*_582},nd={x:_589.x+(_589.x-_584.cx)*_582/2,y:_589.y+(_589.y-_584.cy)*_582/2};_586.createLine({x1:_584.cx,y1:_584.cy,x2:st.x,y2:st.y}).setStroke(_587);this._drawArrow(_586,st,nd,_587);}var _58a=s.createGroup();for(var j=_580.length-1;j>=0;--j){var _589=_580[j],_58b=g._base._getTextBox(this.labelKey[j],{font:_56c}).w||0,_58c=this.opt.htmlLabels&&g.renderer!="vml"?"html":"gfx",elem=da.createText[_58c](this.chart,_58a,(!_55a.isBodyLtr()&&_58c=="html")?(_589.x+_58b-dim.width):_589.x,_589.y,"middle",this.labelKey[j],_56c,_56e);if(this.opt.htmlLabels){this.htmlElements.push(elem);}}var _58d=s.createGroup();if(spt=="polygon"){_58d.createPolyline(_57c).setStroke(_588);_58d.createPolyline(_57d).setStroke(_588);if(_57e.length>0){for(var j=_57e.length-1;j>=0;--j){_58d.createPolyline(_57e[j]).setStroke(_588);}}}else{var _58e=this._getObjectLength(this.datas);_58d.createCircle({cx:_584.cx,cy:_584.cy,r:r}).setStroke(_588);_58d.createCircle({cx:_584.cx,cy:_584.cy,r:r*ro}).setStroke(_588);if(_57f.length>0){for(var j=_57f.length-1;j>=0;--j){_58d.createCircle({cx:_584.cx,cy:_584.cy,r:_57f[j]}).setStroke(_588);}}}var _58f=s.createGroup(),len=this._getObjectLength(this.datas),k=0;for(var key in this.datas){var data=this.datas[key],min=data.min,max=data.max,_590=max-min,end=_576+2*Math.PI*k/len;for(var i=0;i<dv;i++){var text=min+_590*i/(dv-1),_589=this._getCoordinate(_584,r*(ro+(1-ro)*i/(dv-1)),end);text=this._getLabel(text);var _58b=g._base._getTextBox(text,{font:_56b}).w||0,_58c=this.opt.htmlLabels&&g.renderer!="vml"?"html":"gfx";if(this.opt.htmlLabels){this.htmlElements.push(da.createText[_58c](this.chart,_58f,(!_55a.isBodyLtr()&&_58c=="html")?(_589.x+_58b-dim.width):_589.x,_589.y,"start",text,_56b,_56d));}}k++;}this.chart.seriesShapes={};var _591=[];for(var i=this.series.length-1;i>=0;i--){var _585=this.series[i],run=_585.data;if(run!==null){var _592=[],k=0,_593=[];for(var key in run){var data=this.datas[key],min=data.min,max=data.max,_590=max-min,_594=run[key],end=_576+2*Math.PI*k/len,_589=this._getCoordinate(_584,r*(ro+(1-ro)*(_594-min)/_590),end);_592.push(_589);_593.push({sname:_585.name,key:key,data:_594});k++;}_592[_592.length]=_592[0];_593[_593.length]=_593[0];var _595=this._getBoundary(_592),_596=t.next("spider",[o,_585]),ts=_585.group,f=g.normalizeColor(_596.series.fill),sk={color:_596.series.fill,width:_573};f.a=o.seriesFillAlpha;_585.dyn={fill:f,stroke:sk};var osps=this.oldSeriePoints[_585.name];var cs=this._createSeriesEntry(ts,(osps||_57d),_592,f,sk,r,ro,ms,at);this.chart.seriesShapes[_585.name]=cs;this.oldSeriePoints[_585.name]=_592;var po={element:"spider_poly",index:i,id:"spider_poly_"+_585.name,run:_585,plot:this,shape:cs.poly,parent:ts,brect:_595,cx:_584.cx,cy:_584.cy,cr:r,f:f,s:s};this._connectEvents(po);var so={element:"spider_plot",index:i,id:"spider_plot_"+_585.name,run:_585,plot:this,shape:_585.group};this._connectEvents(so);arr.forEach(cs.circles,function(c,i){var _597=c.getShape(),co={element:"spider_circle",index:i,id:"spider_circle_"+_585.name+i,run:_585,plot:this,shape:c,parent:ts,tdata:_593[i],cx:_592[i].x,cy:_592[i].y,f:f,s:s};this._connectEvents(co);},this);}}return this;},_createSeriesEntry:function(ts,osps,sps,f,sk,r,ro,ms,at){var _598=ts.createPolyline(osps).setFill(f).setStroke(sk),_599=[];for(var j=0;j<osps.length;j++){var _59a=osps[j],cr=ms;var _59b=ts.createCircle({cx:_59a.x,cy:_59a.y,r:cr}).setFill(f).setStroke(sk);_599.push(_59b);}var _59c=arr.map(sps,function(np,j){var sp=osps[j],anim=new _55b.Animation({duration:1000,easing:at,curve:[sp.y,np.y]});var spl=_598,sc=_599[j];hub.connect(anim,"onAnimate",function(y){var _59d=spl.getShape();_59d.points[j].y=y;spl.setShape(_59d);var _59e=sc.getShape();_59e.cy=y;sc.setShape(_59e);});return anim;});var _59f=arr.map(sps,function(np,j){var sp=osps[j],anim=new _55b.Animation({duration:1000,easing:at,curve:[sp.x,np.x]});var spl=_598,sc=_599[j];hub.connect(anim,"onAnimate",function(x){var _5a0=spl.getShape();_5a0.points[j].x=x;spl.setShape(_5a0);var _5a1=sc.getShape();_5a1.cx=x;sc.setShape(_5a1);});return anim;});var _5a2=_55c.combine(_59c.concat(_59f));_5a2.play();return {group:ts,poly:_598,circles:_599};},plotEvent:function(o){var _5a3=o.id?o.id:"default",a;if(_5a3 in this.animations){a=this.animations[_5a3];a.anim&&a.anim.stop(true);}else{a=this.animations[_5a3]={};}if(o.element=="spider_poly"){if(!a.color){var _5a4=o.shape.getFill();if(!_5a4||!(_5a4 instanceof _55f)){return;}a.color={start:_5a4,end:_5a5(_5a4)};}var _5a6=a.color.start,end=a.color.end;if(o.type=="onmouseout"){var t=_5a6;_5a6=end;end=t;}a.anim=_562.animateFill({shape:o.shape,duration:800,easing:_563.backOut,color:{start:_5a6,end:end}});a.anim.play();}else{if(o.element=="spider_circle"){var init,_5a7,_5a8=1.5;if(o.type=="onmouseover"){init=m.identity;_5a7=_5a8;var _5a9={type:"rect"};_5a9.x=o.cx;_5a9.y=o.cy;_5a9.width=_5a9.height=1;var lt=html.coords(this.chart.node,true);_5a9.x+=lt.x;_5a9.y+=lt.y;_5a9.x=Math.round(_5a9.x);_5a9.y=Math.round(_5a9.y);_5a9.width=_5a9.w=Math.ceil(_5a9.width);_5a9.height=_5a9.h=Math.ceil(_5a9.height);this.aroundRect=_5a9;var _5aa=["after-centered","before-centered"];dc.doIfLoaded("dijit/Tooltip",dojo.hitch(this,function(_5ab){_5ab.show(o.tdata.sname+"<br/>"+o.tdata.key+"<br/>"+o.tdata.data,this.aroundRect,_5aa);}));}else{init=m.scaleAt(_5a8,o.cx,o.cy);_5a7=1/_5a8;dc.doIfLoaded("dijit/Tooltip",dojo.hitch(this,function(_5ac){this.aroundRect&&_5ac.hide(this.aroundRect);}));}var cs=o.shape.getShape(),init=m.scaleAt(_5a8,cs.cx,cs.cy),_5ad={shape:o.shape,duration:200,easing:_563.backOut,transform:[{name:"scaleAt",start:[1,cs.cx,cs.cy],end:[_5a7,cs.cx,cs.cy]},init]};a.anim=_562.animateTransform(_5ad);a.anim.play();}else{if(o.element=="spider_plot"){if(o.type=="onmouseover"&&!has("ie")){o.shape.moveToFront();}}}}},_getBoundary:function(_5ae){var xmax=_5ae[0].x,xmin=_5ae[0].x,ymax=_5ae[0].y,ymin=_5ae[0].y;for(var i=0;i<_5ae.length;i++){var _5af=_5ae[i];xmax=Math.max(_5af.x,xmax);ymax=Math.max(_5af.y,ymax);xmin=Math.min(_5af.x,xmin);ymin=Math.min(_5af.y,ymin);}return {x:xmin,y:ymin,width:xmax-xmin,height:ymax-ymin};},_drawArrow:function(s,_5b0,end,_5b1){var len=Math.sqrt(Math.pow(end.x-_5b0.x,2)+Math.pow(end.y-_5b0.y,2)),sin=(end.y-_5b0.y)/len,cos=(end.x-_5b0.x)/len,_5b2={x:end.x+(len/3)*(-sin),y:end.y+(len/3)*cos},_5b3={x:end.x+(len/3)*sin,y:end.y+(len/3)*(-cos)};s.createPolyline([_5b0,_5b2,_5b3]).setFill(_5b1.color).setStroke(_5b1);},_buildPoints:function(_5b4,_5b5,_5b6,_5b7,_5b8,_5b9){for(var i=0;i<_5b5;i++){var end=_5b8+2*Math.PI*i/_5b5;_5b4.push(this._getCoordinate(_5b6,_5b7,end));}if(_5b9){_5b4.push(this._getCoordinate(_5b6,_5b7,_5b8+2*Math.PI));}},_getCoordinate:function(_5ba,_5bb,_5bc){return {x:_5ba.cx+_5bb*Math.cos(_5bc),y:_5ba.cy+_5bb*Math.sin(_5bc)};},_getObjectLength:function(obj){var _5bd=0;if(lang.isObject(obj)){for(var key in obj){_5bd++;}}return _5bd;},_getLabel:function(_5be){return dc.getLabel(_5be,this.opt.fixed,this.opt.precision);}});function _5a5(_5bf){var a=new _560.Color(_5bf),x=a.toHsl();if(x.s==0){x.l=x.l<50?100:0;}else{x.s=100;if(x.l<50){x.l=75;}else{if(x.l>75){x.l=50;}else{x.l=x.l-50>75-x.l?50:75;}}}var _5bf=_560.fromHsl(x);_5bf.a=0.7;return _5bf;};return _565;});},"dojo/fx":function(){define(["./_base/lang","./Evented","./_base/kernel","./_base/array","./_base/connect","./_base/fx","./dom","./dom-style","./dom-geometry","./ready","require"],function(lang,_5c0,dojo,_5c1,_5c2,_5c3,dom,_5c4,geom,_5c5,_5c6){if(!dojo.isAsync){_5c5(0,function(){var _5c7=["./fx/Toggler"];_5c6(_5c7);});}var _5c8=dojo.fx={};var _5c9={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _5ca=function(_5cb){this._index=-1;this._animations=_5cb||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;_5c1.forEach(this._animations,function(a){if(a){if(typeof a.duration!="undefined"){this.duration+=a.duration;}if(a.delay){this.duration+=a.delay;}}},this);};_5ca.prototype=new _5c0();lang.extend(_5ca,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){_5c2.disconnect(this._onAnimateCtx);_5c2.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=_5c2.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=_5c2.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_5cc,_5cd){if(!this._current){this._current=this._animations[this._index=0];}if(!_5cd&&this._current.status()=="playing"){return this;}var _5ce=_5c2.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_5cf=_5c2.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_5d0=_5c2.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);_5c2.disconnect(_5ce);_5c2.disconnect(_5cf);_5c2.disconnect(_5d0);});if(this._onAnimateCtx){_5c2.disconnect(this._onAnimateCtx);}this._onAnimateCtx=_5c2.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){_5c2.disconnect(this._onEndCtx);}this._onEndCtx=_5c2.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=_5c2.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);_5c2.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_5d1,_5d2){this.pause();var _5d3=this.duration*_5d1;this._current=null;_5c1.some(this._animations,function(a){if(a.duration<=_5d3){this._current=a;return true;}_5d3-=a.duration;return false;});if(this._current){this._current.gotoPercent(_5d3/this._current.duration,_5d2);}return this;},stop:function(_5d4){if(this._current){if(_5d4){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=_5c2.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);_5c2.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){_5c2.disconnect(this._onAnimateCtx);}if(this._onEndCtx){_5c2.disconnect(this._onEndCtx);}}});lang.extend(_5ca,_5c9);_5c8.chain=function(_5d5){return new _5ca(_5d5);};var _5d6=function(_5d7){this._animations=_5d7||[];this._connects=[];this._finished=0;this.duration=0;_5c1.forEach(_5d7,function(a){var _5d8=a.duration;if(a.delay){_5d8+=a.delay;}if(this.duration<_5d8){this.duration=_5d8;}this._connects.push(_5c2.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new _5c3.Animation({curve:[0,1],duration:this.duration});var self=this;_5c1.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(_5c2.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};lang.extend(_5d6,{_doAction:function(_5d9,args){_5c1.forEach(this._animations,function(a){a[_5d9].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_5da,args){var t=this._pseudoAnimation;t[_5da].apply(t,args);},play:function(_5db,_5dc){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_5dd,_5de){var ms=this.duration*_5dd;_5c1.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_5de);});this._call("gotoPercent",arguments);return this;},stop:function(_5df){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){_5c1.forEach(this._connects,_5c2.disconnect);}});lang.extend(_5d6,_5c9);_5c8.combine=function(_5e0){return new _5d6(_5e0);};_5c8.wipeIn=function(args){var node=args.node=dom.byId(args.node),s=node.style,o;var anim=_5c3.animateProperty(lang.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _5e1=_5c4.get(node,"height");return Math.max(_5e1,1);}},end:function(){return node.scrollHeight;}}}},args));var fini=function(){s.height="auto";s.overflow=o;};_5c2.connect(anim,"onStop",fini);_5c2.connect(anim,"onEnd",fini);return anim;};_5c8.wipeOut=function(args){var node=args.node=dom.byId(args.node),s=node.style,o;var anim=_5c3.animateProperty(lang.mixin({properties:{height:{end:1}}},args));_5c2.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});var fini=function(){s.overflow=o;s.height="auto";s.display="none";};_5c2.connect(anim,"onStop",fini);_5c2.connect(anim,"onEnd",fini);return anim;};_5c8.slideTo=function(args){var node=args.node=dom.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=_5c4.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=geom.position(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 anim=_5c3.animateProperty(lang.mixin({properties:{top:args.top||0,left:args.left||0}},args));_5c2.connect(anim,"beforeBegin",anim,init);return anim;};return _5c8;});},"dojo/fx/easing":function(){define(["../_base/lang"],function(lang){var _5e2={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-_5e2.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return _5e2.bounceIn(n*2)/2;}return (_5e2.bounceOut(n*2-1)/2)+0.5;}};lang.setObject("dojo.fx.easing",_5e2);return _5e2;});},"dojox/charting/action2d/Highlight":function(){define("dojox/charting/action2d/Highlight",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/declare","dojo/_base/Color","dojo/_base/connect","dojox/color/_base","./PlotAction","dojo/fx/easing","dojox/gfx/fx"],function(dojo,lang,_5e3,_5e4,hub,c,_5e5,dfe,dgf){var _5e6=100,_5e7=75,_5e8=50,cc=function(_5e9){return function(){return _5e9;};},hl=function(_5ea){var a=new c.Color(_5ea),x=a.toHsl();if(x.s==0){x.l=x.l<50?100:0;}else{x.s=_5e6;if(x.l<_5e8){x.l=_5e7;}else{if(x.l>_5e7){x.l=_5e8;}else{x.l=x.l-_5e8>_5e7-x.l?_5e8:_5e7;}}}return c.fromHsl(x);};return _5e3("dojox.charting.action2d.Highlight",_5e5,{defaultParams:{duration:400,easing:dfe.backOut},optionalParams:{highlight:"red"},constructor:function(_5eb,plot,_5ec){var a=_5ec&&_5ec.highlight;this.colorFun=a?(lang.isFunction(a)?a:cc(a)):hl;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)){return;}var _5ed=o.run.name,_5ee=o.index,anim,_5ef,_5f0;if(_5ed in this.anim){anim=this.anim[_5ed][_5ee];}else{this.anim[_5ed]={};}if(anim){anim.action.stop(true);}else{var _5f1=o.shape.getFill();if(!_5f1||!(_5f1 instanceof _5e4)){return;}this.anim[_5ed][_5ee]=anim={start:_5f1,end:this.colorFun(_5f1)};}var _5f2=anim.start,end=anim.end;if(o.type=="onmouseout"){var t=_5f2;_5f2=end;end=t;}anim.action=dgf.animateFill({shape:o.shape,duration:this.duration,easing:this.easing,color:{start:_5f2,end:end}});if(o.type=="onmouseout"){hub.connect(anim.action,"onEnd",this,function(){if(this.anim[_5ed]){delete this.anim[_5ed][_5ee];}});}anim.action.play();}});});},"dojox/charting/action2d/PlotAction":function(){define("dojox/charting/action2d/PlotAction",["dojo/_base/connect","dojo/_base/declare","./Base","dojo/fx/easing","dojox/lang/functional","dojox/lang/functional/object"],function(hub,_5f3,Base,dfe,df,dlfo){var _5f4=400,_5f5=dfe.backOut;return _5f3("dojox.charting.action2d.PlotAction",Base,{overOutEvents:{onmouseover:1,onmouseout:1},constructor:function(_5f6,plot,_5f7){this.anim={};if(!_5f7){_5f7={};}this.duration=_5f7.duration?_5f7.duration:_5f4;this.easing=_5f7.easing?_5f7.easing:_5f5;},connect:function(){this.handle=this.chart.connectToPlot(this.plot.name,this,"process");},disconnect:function(){if(this.handle){hub.disconnect(this.handle);this.handle=null;}},reset:function(){},destroy:function(){this.inherited(arguments);df.forIn(this.anim,function(o){df.forIn(o,function(anim){anim.action.stop(true);});});this.anim={};}});});},"dojox/charting/action2d/Base":function(){define("dojox/charting/action2d/Base",["dojo/_base/lang","dojo/_base/declare"],function(lang,_5f8){return _5f8("dojox.charting.action2d.Base",null,{constructor:function(_5f9,plot){this.chart=_5f9;this.plot=plot?(lang.isString(plot)?this.chart.getPlot(plot):plot):this.chart.getPlot("default");},connect:function(){},disconnect:function(){},destroy:function(){this.disconnect();}});});},"dojox/charting/action2d/Magnify":function(){define("dojox/charting/action2d/Magnify",["dojo/_base/connect","dojo/_base/declare","./PlotAction","dojox/gfx/matrix","dojox/gfx/fx","dojo/fx","dojo/fx/easing"],function(Hub,_5fa,_5fb,m,gf,df,dfe){var _5fc=2;return _5fa("dojox.charting.action2d.Magnify",_5fb,{defaultParams:{duration:400,easing:dfe.backOut,scale:_5fc},optionalParams:{},constructor:function(_5fd,plot,_5fe){this.scale=_5fe&&typeof _5fe.scale=="number"?_5fe.scale:_5fc;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)||!("cx" in o)||!("cy" in o)){return;}var _5ff=o.run.name,_600=o.index,_601=[],anim,init,_602;if(_5ff in this.anim){anim=this.anim[_5ff][_600];}else{this.anim[_5ff]={};}if(anim){anim.action.stop(true);}else{this.anim[_5ff][_600]=anim={};}if(o.type=="onmouseover"){init=m.identity;_602=this.scale;}else{init=m.scaleAt(this.scale,o.cx,o.cy);_602=1/this.scale;}var _603={shape:o.shape,duration:this.duration,easing:this.easing,transform:[{name:"scaleAt",start:[1,o.cx,o.cy],end:[_602,o.cx,o.cy]},init]};if(o.shape){_601.push(gf.animateTransform(_603));}if(o.oultine){_603.shape=o.outline;_601.push(gf.animateTransform(_603));}if(o.shadow){_603.shape=o.shadow;_601.push(gf.animateTransform(_603));}if(!_601.length){delete this.anim[_5ff][_600];return;}anim.action=df.combine(_601);if(o.type=="onmouseout"){Hub.connect(anim.action,"onEnd",this,function(){if(this.anim[_5ff]){delete this.anim[_5ff][_600];}});}anim.action.play();}});});},"dojox/charting/action2d/MoveSlice":function(){define("dojox/charting/action2d/MoveSlice",["dojo/_base/connect","dojo/_base/declare","./PlotAction","dojo/fx/easing","dojox/gfx/matrix","dojox/gfx/fx","dojox/lang/functional","dojox/lang/functional/scan","dojox/lang/functional/fold"],function(hub,_604,_605,dfe,m,gf,df,dfs,dff){var _606=1.05,_607=7;return _604("dojox.charting.action2d.MoveSlice",_605,{defaultParams:{duration:400,easing:dfe.backOut,scale:_606,shift:_607},optionalParams:{},constructor:function(_608,plot,_609){if(!_609){_609={};}this.scale=typeof _609.scale=="number"?_609.scale:_606;this.shift=typeof _609.shift=="number"?_609.shift:_607;this.connect();},process:function(o){if(!o.shape||o.element!="slice"||!(o.type in this.overOutEvents)){return;}if(!this.angles){var _60a=m._degToRad(o.plot.opt.startAngle);if(typeof o.run.data[0]=="number"){this.angles=df.map(df.scanl(o.run.data,"+",_60a),"* 2 * Math.PI / this",df.foldl(o.run.data,"+",0));}else{this.angles=df.map(df.scanl(o.run.data,"a + b.y",_60a),"* 2 * Math.PI / this",df.foldl(o.run.data,"a + b.y",0));}}var _60b=o.index,anim,_60c,_60d,_60e,_60f,_610=(this.angles[_60b]+this.angles[_60b+1])/2,_611=m.rotateAt(-_610,o.cx,o.cy),_612=m.rotateAt(_610,o.cx,o.cy);anim=this.anim[_60b];if(anim){anim.action.stop(true);}else{this.anim[_60b]=anim={};}if(o.type=="onmouseover"){_60e=0;_60f=this.shift;_60c=1;_60d=this.scale;}else{_60e=this.shift;_60f=0;_60c=this.scale;_60d=1;}anim.action=gf.animateTransform({shape:o.shape,duration:this.duration,easing:this.easing,transform:[_612,{name:"translate",start:[_60e,0],end:[_60f,0]},{name:"scaleAt",start:[_60c,o.cx,o.cy],end:[_60d,o.cx,o.cy]},_611]});if(o.type=="onmouseout"){hub.connect(anim.action,"onEnd",this,function(){delete this.anim[_60b];});}anim.action.play();},reset:function(){delete this.angles;}});});},"dojox/lang/functional/scan":function(){define(["dojo/_base/kernel","dojo/_base/lang","./lambda"],function(d,_613,df){var _614={};d.mixin(df,{scanl:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t,n,i;if(d.isArray(a)){t=new Array((n=a.length)+1);t[0]=z;for(i=0;i<n;z=f.call(o,z,a[i],i,a),t[++i]=z){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){t=[z];for(i=0;a.hasNext();t.push(z=f.call(o,z,a.next(),i++,a))){}}else{t=[z];for(i in a){if(!(i in _614)){t.push(z=f.call(o,z,a[i],i,a));}}}}return t;},scanl1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t,n,z,_615=true;if(d.isArray(a)){t=new Array(n=a.length);t[0]=z=a[0];for(var i=1;i<n;t[i]=z=f.call(o,z,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){if(a.hasNext()){t=[z=a.next()];for(i=1;a.hasNext();t.push(z=f.call(o,z,a.next(),i++,a))){}}}else{for(i in a){if(!(i in _614)){if(_615){t=[z=a[i]];_615=false;}else{t.push(z=f.call(o,z,a[i],i,a));}}}}}return t;},scanr:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,t=new Array(n+1),i=n;t[n]=z;for(;i>0;--i,z=f.call(o,z,a[i],i,a),t[i]=z){}return t;},scanr1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,t=new Array(n),z=a[n-1],i=n-1;t[i]=z;for(;i>0;--i,z=f.call(o,z,a[i],i,a),t[i]=z){}return t;}});});},"dojox/charting/action2d/Shake":function(){define("dojox/charting/action2d/Shake",["dojo/_base/connect","dojo/_base/declare","./PlotAction","dojo/fx","dojo/fx/easing","dojox/gfx/matrix","dojox/gfx/fx"],function(hub,_616,_617,df,dfe,m,gf){var _618=3;return _616("dojox.charting.action2d.Shake",_617,{defaultParams:{duration:400,easing:dfe.backOut,shiftX:_618,shiftY:_618},optionalParams:{},constructor:function(_619,plot,_61a){if(!_61a){_61a={};}this.shiftX=typeof _61a.shiftX=="number"?_61a.shiftX:_618;this.shiftY=typeof _61a.shiftY=="number"?_61a.shiftY:_618;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)){return;}var _61b=o.run.name,_61c=o.index,_61d=[],anim,_61e=o.type=="onmouseover"?this.shiftX:-this.shiftX,_61f=o.type=="onmouseover"?this.shiftY:-this.shiftY;if(_61b in this.anim){anim=this.anim[_61b][_61c];}else{this.anim[_61b]={};}if(anim){anim.action.stop(true);}else{this.anim[_61b][_61c]=anim={};}var _620={shape:o.shape,duration:this.duration,easing:this.easing,transform:[{name:"translate",start:[this.shiftX,this.shiftY],end:[0,0]},m.identity]};if(o.shape){_61d.push(gf.animateTransform(_620));}if(o.oultine){_620.shape=o.outline;_61d.push(gf.animateTransform(_620));}if(o.shadow){_620.shape=o.shadow;_61d.push(gf.animateTransform(_620));}if(!_61d.length){delete this.anim[_61b][_61c];return;}anim.action=df.combine(_61d);if(o.type=="onmouseout"){hub.connect(anim.action,"onEnd",this,function(){if(this.anim[_61b]){delete this.anim[_61b][_61c];}});}anim.action.play();}});});},"dojox/charting/action2d/Tooltip":function(){define("dojox/charting/action2d/Tooltip",["dojo/_base/kernel","dijit/Tooltip","dojo/_base/lang","dojo/_base/html","dojo/_base/declare","./PlotAction","dojox/gfx/matrix","dojox/lang/functional","dojox/lang/functional/scan","dojox/lang/functional/fold"],function(dojo,_621,lang,html,_622,_623,m,df,dfs,dff){var _624=function(o){var t=o.run&&o.run.data&&o.run.data[o.index];if(t&&typeof t!="number"&&(t.tooltip||t.text)){return t.tooltip||t.text;}if(o.element=="candlestick"){return "<table cellpadding=\"1\" cellspacing=\"0\" border=\"0\" style=\"font-size:0.9em;\">"+"<tr><td>Open:</td><td align=\"right\"><strong>"+o.data.open+"</strong></td></tr>"+"<tr><td>High:</td><td align=\"right\"><strong>"+o.data.high+"</strong></td></tr>"+"<tr><td>Low:</td><td align=\"right\"><strong>"+o.data.low+"</strong></td></tr>"+"<tr><td>Close:</td><td align=\"right\"><strong>"+o.data.close+"</strong></td></tr>"+(o.data.mid!==undefined?"<tr><td>Mid:</td><td align=\"right\"><strong>"+o.data.mid+"</strong></td></tr>":"")+"</table>";}return o.element=="bar"?o.x:o.y;};var pi4=Math.PI/4,pi2=Math.PI/2;return _622("dojox.charting.action2d.Tooltip",_623,{defaultParams:{text:_624},optionalParams:{},constructor:function(_625,plot,_626){this.text=_626&&_626.text?_626.text:_624;this.connect();},process:function(o){if(o.type==="onplotreset"||o.type==="onmouseout"){_621.hide(this.aroundRect);this.aroundRect=null;if(o.type==="onplotreset"){delete this.angles;}return;}if(!o.shape||o.type!=="onmouseover"){return;}var _627={type:"rect"},_628=["after","before"];switch(o.element){case "marker":_627.x=o.cx;_627.y=o.cy;_627.w=_627.h=1;break;case "circle":_627.x=o.cx-o.cr;_627.y=o.cy-o.cr;_627.w=_627.h=2*o.cr;break;case "column":_628=["above","below"];case "bar":_627=lang.clone(o.shape.getShape());_627.w=_627.width;_627.h=_627.height;break;case "candlestick":_627.x=o.x;_627.y=o.y;_627.w=o.width;_627.h=o.height;break;default:if(!this.angles){if(typeof o.run.data[0]=="number"){this.angles=df.map(df.scanl(o.run.data,"+",0),"* 2 * Math.PI / this",df.foldl(o.run.data,"+",0));}else{this.angles=df.map(df.scanl(o.run.data,"a + b.y",0),"* 2 * Math.PI / this",df.foldl(o.run.data,"a + b.y",0));}}var _629=m._degToRad(o.plot.opt.startAngle),_62a=(this.angles[o.index]+this.angles[o.index+1])/2+_629;_627.x=o.cx+o.cr*Math.cos(_62a);_627.y=o.cy+o.cr*Math.sin(_62a);_627.w=_627.h=1;if(_62a<pi4){}else{if(_62a<pi2+pi4){_628=["below","above"];}else{if(_62a<Math.PI+pi4){_628=["before","after"];}else{if(_62a<2*Math.PI-pi4){_628=["above","below"];}}}}break;}var lt=this.chart.getCoords();_627.x+=lt.x;_627.y+=lt.y;_627.x=Math.round(_627.x);_627.y=Math.round(_627.y);_627.w=Math.ceil(_627.w);_627.h=Math.ceil(_627.h);this.aroundRect=_627;var _62b=this.text(o);if(this.chart.getTextDir){var _62c=(html.style(this.chart.node,"direction")=="rtl");var _62d=(this.chart.getTextDir(_62b)=="rtl");}if(_62b){if(_62d&&!_62c){_621.show("<span dir = 'rtl'>"+_62b+"</span>",this.aroundRect,_628);}else{if(!_62d&&_62c){_621.show("<span dir = 'ltr'>"+_62b+"</span>",this.aroundRect,_628);}else{_621.show(_62b,this.aroundRect,_628);}}}}});});},"dijit/Tooltip":function(){require({cache:{"url:dijit/templates/Tooltip.html":"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\"\n\t><div class=\"dijitTooltipContainer dijitTooltipContents\" data-dojo-attach-point=\"containerNode\" role='alert'></div\n\t><div class=\"dijitTooltipConnector\" data-dojo-attach-point=\"connectorNode\"></div\n></div>\n"}});define("dijit/Tooltip",["dojo/_base/array","dojo/_base/declare","dojo/_base/fx","dojo/dom","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","./_base/manager","./place","./_Widget","./_TemplatedMixin","./BackgroundIframe","dojo/text!./templates/Tooltip.html","."],function(_62e,_62f,fx,dom,_630,_631,_632,lang,has,win,_633,_634,_635,_636,_637,_638,_639){var _63a=_62f("dijit._MasterTooltip",[_635,_636],{duration:_633.defaultDuration,templateString:_638,postCreate:function(){win.body().appendChild(this.domNode);this.bgIframe=new _637(this.domNode);this.fadeIn=fx.fadeIn({node:this.domNode,duration:this.duration,onEnd:lang.hitch(this,"_onShow")});this.fadeOut=fx.fadeOut({node:this.domNode,duration:this.duration,onEnd:lang.hitch(this,"_onHide")});},show:function(_63b,_63c,_63d,rtl,_63e){if(this.aroundNode&&this.aroundNode===_63c&&this.containerNode.innerHTML==_63b){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_63b;if(_63e){this.set("textDir",_63e);}this.containerNode.align=rtl?"right":"left";var pos=_634.around(this.domNode,_63c,_63d&&_63d.length?_63d:_63f.defaultPosition,!rtl,lang.hitch(this,"orient"));var _640=pos.aroundNodePos;if(pos.corner.charAt(0)=="M"&&pos.aroundCorner.charAt(0)=="M"){this.connectorNode.style.top=_640.y+((_640.h-this.connectorNode.offsetHeight)>>1)-pos.y+"px";this.connectorNode.style.left="";}else{if(pos.corner.charAt(1)=="M"&&pos.aroundCorner.charAt(1)=="M"){this.connectorNode.style.left=_640.x+((_640.w-this.connectorNode.offsetWidth)>>1)-pos.x+"px";}}_632.set(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_63c;},orient:function(node,_641,_642,_643,_644){this.connectorNode.style.top="";var _645=_643.h,_646=_643.w;if(_641.charAt(1)!=_642.charAt(1)){_646-=this.connectorNode.offsetWidth;}else{_645-=this.connectorNode.offsetHeight;}node.className="dijitTooltip "+{"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove","BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_641+"-"+_642];this.domNode.style.width="auto";var size=_631.getContentBox(this.domNode);var _647=Math.min((Math.max(_646,1)),size.w);var _648=_647<size.w;this.domNode.style.width=_647+"px";if(_642.charAt(0)=="B"&&_641.charAt(0)=="B"){var bb=_631.position(node);var _649=this.connectorNode.offsetHeight;if(bb.h>_645){var _64a=_645-((_644.h+_649)>>1);this.connectorNode.style.top=_64a+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_644.h/2-_649/2,0),bb.h-_649)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_646);},_onShow:function(){if(has("ie")){this.domNode.style.filter="";}},hide:function(_64b){if(this._onDeck&&this._onDeck[1]==_64b){this._onDeck=null;}else{if(this.aroundNode===_64b){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}},_setAutoTextDir:function(node){this.applyTextDir(node,has("ie")?node.outerText:node.textContent);_62e.forEach(node.children,function(_64c){this._setAutoTextDir(_64c);},this);},_setTextDirAttr:function(_64d){this._set("textDir",_64d);if(_64d=="auto"){this._setAutoTextDir(this.containerNode);}else{this.containerNode.dir=this.textDir;}}});_639.showTooltip=function(_64e,_64f,_650,rtl,_651){if(_650){_650=_62e.map(_650,function(val){return {after:"after-centered",before:"before-centered"}[val]||val;});}if(!_63f._masterTT){_639._masterTT=_63f._masterTT=new _63a();}return _63f._masterTT.show(_64e,_64f,_650,rtl,_651);};_639.hideTooltip=function(_652){return _63f._masterTT&&_63f._masterTT.hide(_652);};var _63f=_62f("dijit.Tooltip",_635,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_653){_62e.forEach(this._connections||[],function(_654){_62e.forEach(_654,lang.hitch(this,"disconnect"));},this);this._connectIds=_62e.filter(lang.isArrayLike(_653)?_653:(_653?[_653]:[]),function(id){return dom.byId(id);});this._connections=_62e.map(this._connectIds,function(id){var node=dom.byId(id);return [this.connect(node,"onmouseenter","_onHover"),this.connect(node,"onmouseleave","_onUnHover"),this.connect(node,"onfocus","_onHover"),this.connect(node,"onblur","_onUnHover")];},this);this._set("connectId",_653);},addTarget:function(node){var id=node.id||node;if(_62e.indexOf(this._connectIds,id)==-1){this.set("connectId",this._connectIds.concat(id));}},removeTarget:function(node){var id=node.id||node,idx=_62e.indexOf(this._connectIds,id);if(idx>=0){this._connectIds.splice(idx,1);this.set("connectId",this._connectIds);}},buildRendering:function(){this.inherited(arguments);_630.add(this.domNode,"dijitTooltipData");},startup:function(){this.inherited(arguments);var ids=this.connectId;_62e.forEach(lang.isArrayLike(ids)?ids:[ids],this.addTarget,this);},_onHover:function(e){if(!this._showTimer){var _655=e.target;this._showTimer=setTimeout(lang.hitch(this,function(){this.open(_655);}),this.showDelay);}},_onUnHover:function(){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_656){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}_63f.show(this.label||this.domNode.innerHTML,_656,this.position,!this.isLeftToRight(),this.textDir);this._connectNode=_656;this.onShow(_656,this.position);},close:function(){if(this._connectNode){_63f.hide(this._connectNode);delete this._connectNode;this.onHide();}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},onShow:function(){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});_63f._MasterTooltip=_63a;_63f.show=_639.showTooltip;_63f.hide=_639.hideTooltip;_63f.defaultPosition=["after-centered","before-centered"];return _63f;});},"dijit/place":function(){define("dijit/place",["dojo/_base/array","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/window","./Viewport","."],function(_657,_658,_659,_65a,win,_65b,_65c){function _65d(node,_65e,_65f,_660){var view=_65b.getEffectiveBox(node.ownerDocument);if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){win.body().appendChild(node);}var best=null;_657.some(_65e,function(_661){var _662=_661.corner;var pos=_661.pos;var _663=0;var _664={w:{"L":view.l+view.w-pos.x,"R":pos.x-view.l,"M":view.w}[_662.charAt(1)],h:{"T":view.t+view.h-pos.y,"B":pos.y-view.t,"M":view.h}[_662.charAt(0)]};var s=node.style;s.left=s.right="auto";if(_65f){var res=_65f(node,_661.aroundCorner,_662,_664,_660);_663=typeof res=="undefined"?0:res;}var _665=node.style;var _666=_665.display;var _667=_665.visibility;if(_665.display=="none"){_665.visibility="hidden";_665.display="";}var bb=_658.position(node);_665.display=_666;_665.visibility=_667;var _668={"L":pos.x,"R":pos.x-bb.w,"M":Math.max(view.l,Math.min(view.l+view.w,pos.x+(bb.w>>1))-bb.w)}[_662.charAt(1)],_669={"T":pos.y,"B":pos.y-bb.h,"M":Math.max(view.t,Math.min(view.t+view.h,pos.y+(bb.h>>1))-bb.h)}[_662.charAt(0)],_66a=Math.max(view.l,_668),_66b=Math.max(view.t,_669),endX=Math.min(view.l+view.w,_668+bb.w),endY=Math.min(view.t+view.h,_669+bb.h),_66c=endX-_66a,_66d=endY-_66b;_663+=(bb.w-_66c)+(bb.h-_66d);if(best==null||_663<best.overflow){best={corner:_662,aroundCorner:_661.aroundCorner,x:_66a,y:_66b,w:_66c,h:_66d,overflow:_663,spaceAvailable:_664};}return !_663;});if(best.overflow&&_65f){_65f(node,best.aroundCorner,best.corner,best.spaceAvailable,_660);}var s=node.style;s.top=best.y+"px";s.left=best.x+"px";s.right="auto";return best;};return (_65c.place={at:function(node,pos,_66e,_66f){var _670=_657.map(_66e,function(_671){var c={corner:_671,pos:{x:pos.x,y:pos.y}};if(_66f){c.pos.x+=_671.charAt(1)=="L"?_66f.x:-_66f.x;c.pos.y+=_671.charAt(0)=="T"?_66f.y:-_66f.y;}return c;});return _65d(node,_670);},around:function(node,_672,_673,_674,_675){var _676=(typeof _672=="string"||"offsetWidth" in _672)?_658.position(_672,true):_672;if(_672.parentNode){var _677=_659.getComputedStyle(_672).position=="absolute";var _678=_672.parentNode;while(_678&&_678.nodeType==1&&_678.nodeName!="BODY"){var _679=_658.position(_678,true),pcs=_659.getComputedStyle(_678);if(/relative|absolute/.test(pcs.position)){_677=false;}if(!_677&&/hidden|auto|scroll/.test(pcs.overflow)){var _67a=Math.min(_676.y+_676.h,_679.y+_679.h);var _67b=Math.min(_676.x+_676.w,_679.x+_679.w);_676.x=Math.max(_676.x,_679.x);_676.y=Math.max(_676.y,_679.y);_676.h=_67a-_676.y;_676.w=_67b-_676.x;}if(pcs.position=="absolute"){_677=true;}_678=_678.parentNode;}}var x=_676.x,y=_676.y,_67c="w" in _676?_676.w:(_676.w=_676.width),_67d="h" in _676?_676.h:(_65a.deprecated("place.around: dijit.place.__Rectangle: { x:"+x+", y:"+y+", height:"+_676.height+", width:"+_67c+" } has been deprecated.  Please use { x:"+x+", y:"+y+", h:"+_676.height+", w:"+_67c+" }","","2.0"),_676.h=_676.height);var _67e=[];function push(_67f,_680){_67e.push({aroundCorner:_67f,corner:_680,pos:{x:{"L":x,"R":x+_67c,"M":x+(_67c>>1)}[_67f.charAt(1)],y:{"T":y,"B":y+_67d,"M":y+(_67d>>1)}[_67f.charAt(0)]}});};_657.forEach(_673,function(pos){var ltr=_674;switch(pos){case "above-centered":push("TM","BM");break;case "below-centered":push("BM","TM");break;case "after-centered":ltr=!ltr;case "before-centered":push(ltr?"ML":"MR",ltr?"MR":"ML");break;case "after":ltr=!ltr;case "before":push(ltr?"TL":"TR",ltr?"TR":"TL");push(ltr?"BL":"BR",ltr?"BR":"BL");break;case "below-alt":ltr=!ltr;case "below":push(ltr?"BL":"BR",ltr?"TL":"TR");push(ltr?"BR":"BL",ltr?"TR":"TL");break;case "above-alt":ltr=!ltr;case "above":push(ltr?"TL":"TR",ltr?"BL":"BR");push(ltr?"TR":"TL",ltr?"BR":"BL");break;default:push(pos.aroundCorner,pos.corner);}});var _681=_65d(node,_67e,_675,{w:_67c,h:_67d});_681.aroundNodePos=_676;return _681;}});});},"dijit/Viewport":function(){define("dijit/Viewport",["dojo/Evented","dojo/on","dojo/ready","dojo/_base/sniff","dojo/_base/window","dojo/window"],function(_682,on,_683,has,win,_684){var _685=new _682();var _686;_683(200,function(){var _687=_684.getBox();_685._rlh=on(win.global,"resize",function(){var _688=_684.getBox();if(_687.h==_688.h&&_687.w==_688.w){return;}_687=_688;_685.emit("resize");});if(has("ie")==8){var _689=screen.deviceXDPI;setInterval(function(){if(screen.deviceXDPI!=_689){_689=screen.deviceXDPI;_685.emit("resize");}},500);}if(has("ios")){on(document,"focusin",function(evt){_686=evt.target;});on(document,"focusout",function(evt){_686=null;});}});_685.getEffectiveBox=function(doc){var box=_684.getBox(doc);var tag=_686&&_686.tagName&&_686.tagName.toLowerCase();if(has("ios")&&_686&&!_686.readOnly&&(tag=="textarea"||(tag=="input"&&/^(color|email|number|password|search|tel|text|url)$/.test(_686.type)))){box.h*=(orientation==0||orientation==180?0.66:0.4);var rect=_686.getBoundingClientRect();box.h=Math.max(box.h,rect.top+rect.height);}return box;};return _685;});},"dijit/_TemplatedMixin":function(){define("dijit/_TemplatedMixin",["dojo/_base/lang","dojo/touch","./_WidgetBase","dojo/string","dojo/cache","dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window"],function(lang,_68a,_68b,_68c,_68d,_68e,_68f,_690,has,_691,win){var _692=_68f("dijit._TemplatedMixin",null,{templateString:null,templatePath:null,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _693=this.declaredClass,_694=this;return _68c.substitute(tmpl,this,function(_695,key){if(key.charAt(0)=="!"){_695=lang.getObject(key.substr(1),false,_694);}if(typeof _695=="undefined"){throw new Error(_693+" template:"+key);}if(_695==null){return "";}return key.charAt(0)=="!"?_695:_695.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){if(!this.templateString){this.templateString=_68d(this.templatePath,{sanitize:true});}var _696=_692.getCachedTemplate(this.templateString,this._skipNodeCache);var node;if(lang.isString(_696)){node=_690.toDom(this._stringRepl(_696));if(node.nodeType!=1){throw new Error("Invalid template: "+_696);}}else{node=_696.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node,function(n,p){return n.getAttribute(p);});this._beforeFillContent();this._fillContent(this.srcNodeRef);},_beforeFillContent:function(){},_fillContent:function(_697){var dest=this.containerNode;if(_697&&dest){while(_697.hasChildNodes()){dest.appendChild(_697.firstChild);}}},_attachTemplateNodes:function(_698,_699){var _69a=lang.isArray(_698)?_698:(_698.all||_698.getElementsByTagName("*"));var x=lang.isArray(_698)?0:-1;for(;x<_69a.length;x++){var _69b=(x==-1)?_698:_69a[x];if(this.widgetsInTemplate&&(_699(_69b,"dojoType")||_699(_69b,"data-dojo-type"))){continue;}var _69c=_699(_69b,"dojoAttachPoint")||_699(_69b,"data-dojo-attach-point");if(_69c){var _69d,_69e=_69c.split(/\s*,\s*/);while((_69d=_69e.shift())){if(lang.isArray(this[_69d])){this[_69d].push(_69b);}else{this[_69d]=_69b;}this._attachPoints.push(_69d);}}var _69f=_699(_69b,"dojoAttachEvent")||_699(_69b,"data-dojo-attach-event");if(_69f){var _6a0,_6a1=_69f.split(/\s*,\s*/);var trim=lang.trim;while((_6a0=_6a1.shift())){if(_6a0){var _6a2=null;if(_6a0.indexOf(":")!=-1){var _6a3=_6a0.split(":");_6a0=trim(_6a3[0]);_6a2=trim(_6a3[1]);}else{_6a0=trim(_6a0);}if(!_6a2){_6a2=_6a0;}this._attachEvents.push(this.connect(_69b,_68a[_6a0]||_6a0,_6a2));}}}}},destroyRendering:function(){_68e.forEach(this._attachPoints,function(_6a4){delete this[_6a4];},this);this._attachPoints=[];_68e.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});_692._templateCache={};_692.getCachedTemplate=function(_6a5,_6a6){var _6a7=_692._templateCache;var key=_6a5;var _6a8=_6a7[key];if(_6a8){try{if(!_6a8.ownerDocument||_6a8.ownerDocument==win.doc){return _6a8;}}catch(e){}_690.destroy(_6a8);}_6a5=_68c.trim(_6a5);if(_6a6||_6a5.match(/\$\{([^\}]+)\}/g)){return (_6a7[key]=_6a5);}else{var node=_690.toDom(_6a5);if(node.nodeType!=1){throw new Error("Invalid template: "+_6a5);}return (_6a7[key]=node);}};if(has("ie")){_691.addOnWindowUnload(function(){var _6a9=_692._templateCache;for(var key in _6a9){var _6aa=_6a9[key];if(typeof _6aa=="object"){_690.destroy(_6aa);}delete _6a9[key];}});}lang.extend(_68b,{dojoAttachEvent:"",dojoAttachPoint:""});return _692;});},"dojo/touch":function(){define(["./_base/kernel","./aspect","./dom","./on","./has","./mouse","./domReady","./_base/window"],function(dojo,_6ab,dom,on,has,_6ac,_6ad,win){var _6ae=has("touch");var ios4=false;if(has("ios")){var ua=navigator.userAgent;var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));ios4=os<5;}var _6af;function _6b0(_6b1,_6b2){if(_6ae){return function(node,_6b3){var _6b4=on(node,_6b2,_6b3),_6b5=on(node,_6b1,function(evt){if(!_6af||(new Date()).getTime()>_6af+1000){_6b3.call(this,evt);}});return {remove:function(){_6b4.remove();_6b5.remove();}};};}else{return function(node,_6b6){return on(node,_6b1,_6b6);};}};var _6b7,_6b8;if(_6ae){_6ad(function(){_6b8=win.body();win.doc.addEventListener("touchstart",function(evt){_6af=(new Date()).getTime();var _6b9=_6b8;_6b8=evt.target;on.emit(_6b9,"dojotouchout",{target:_6b9,relatedTarget:_6b8,bubbles:true});on.emit(_6b8,"dojotouchover",{target:_6b8,relatedTarget:_6b9,bubbles:true});},true);on(win.doc,"touchmove",function(evt){_6af=(new Date()).getTime();var _6ba=win.doc.elementFromPoint(evt.pageX-(ios4?0:win.global.pageXOffset),evt.pageY-(ios4?0:win.global.pageYOffset));if(_6ba&&_6b8!==_6ba){on.emit(_6b8,"dojotouchout",{target:_6b8,relatedTarget:_6ba,bubbles:true});on.emit(_6ba,"dojotouchover",{target:_6ba,relatedTarget:_6b8,bubbles:true});_6b8=_6ba;}});});_6b7=function(node,_6bb){return on(win.doc,"touchmove",function(evt){if(node===win.doc||dom.isDescendant(_6b8,node)){evt.target=_6b8;_6bb.call(this,evt);}});};}var _6bc={press:_6b0("mousedown","touchstart"),move:_6b0("mousemove",_6b7),release:_6b0("mouseup","touchend"),cancel:_6b0(_6ac.leave,"touchcancel"),over:_6b0("mouseover","dojotouchover"),out:_6b0("mouseout","dojotouchout"),enter:_6ac._eventHandler(_6b0("mouseover","dojotouchover")),leave:_6ac._eventHandler(_6b0("mouseout","dojotouchout"))};1&&(dojo.touch=_6bc);return _6bc;});},"dojo/cache":function(){define(["./_base/kernel","./text"],function(dojo,text){return dojo.cache;});},"dijit/BackgroundIframe":function(){define("dijit/BackgroundIframe",["require",".","dojo/_base/config","dojo/dom-construct","dojo/dom-style","dojo/_base/lang","dojo/on","dojo/_base/sniff","dojo/_base/window"],function(_6bd,_6be,_6bf,_6c0,_6c1,lang,on,has,win){has.add("bgIframe",has("ie")||has("mozilla"));var _6c2=new function(){var _6c3=[];this.pop=function(){var _6c4;if(_6c3.length){_6c4=_6c3.pop();_6c4.style.display="";}else{if(has("ie")<9){var burl=_6bf["dojoBlankHtmlUrl"]||_6bd.toUrl("dojo/resources/blank.html")||"javascript:\"\"";var html="<iframe src='"+burl+"' role='presentation'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_6c4=win.doc.createElement(html);}else{_6c4=_6c0.create("iframe");_6c4.src="javascript:\"\"";_6c4.className="dijitBackgroundIframe";_6c4.setAttribute("role","presentation");_6c1.set(_6c4,"opacity",0.1);}_6c4.tabIndex=-1;}return _6c4;};this.push=function(_6c5){_6c5.style.display="none";_6c3.push(_6c5);};}();_6be.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(has("bgIframe")){var _6c6=(this.iframe=_6c2.pop());node.appendChild(_6c6);if(has("ie")<7||has("quirks")){this.resize(node);this._conn=on(node,"resize",lang.hitch(this,function(){this.resize(node);}));}else{_6c1.set(_6c6,{width:"100%",height:"100%"});}}};lang.extend(_6be.BackgroundIframe,{resize:function(node){if(this.iframe){_6c1.set(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){this._conn.remove();this._conn=null;}if(this.iframe){_6c2.push(this.iframe);delete this.iframe;}}});return _6be.BackgroundIframe;});},"url:dijit/templates/Tooltip.html":"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\"\n\t><div class=\"dijitTooltipContainer dijitTooltipContents\" data-dojo-attach-point=\"containerNode\" role='alert'></div\n\t><div class=\"dijitTooltipConnector\" data-dojo-attach-point=\"connectorNode\"></div\n></div>\n","dojox/charting/widget/Sparkline":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/html","dojo/query","./Chart","../themes/GreySkies","../plot2d/Lines","dojo/dom-prop"],function(lang,_6c7,_6c8,html,_6c9,_6ca,_6cb,_6cc,_6cd){_6c8("dojox.charting.widget.Sparkline",_6ca,{theme:_6cb,margins:{l:0,r:0,t:0,b:0},type:"Lines",valueFn:"Number(x)",store:"",field:"",query:"",queryOptions:"",start:"0",count:"Infinity",sort:"",data:"",name:"default",buildRendering:function(){var n=this.srcNodeRef;if(!n.childNodes.length||!_6c9("> .axis, > .plot, > .action, > .series",n).length){var plot=document.createElement("div");_6cd.set(plot,{"class":"plot","name":"default","type":this.type});n.appendChild(plot);var _6ce=document.createElement("div");_6cd.set(_6ce,{"class":"series",plot:"default",name:this.name,start:this.start,count:this.count,valueFn:this.valueFn});_6c7.forEach(["store","field","query","queryOptions","sort","data"],function(i){if(this[i].length){_6cd.set(_6ce,i,this[i]);}},this);n.appendChild(_6ce);}this.inherited(arguments);}});});},"dojox/charting/themes/GreySkies":function(){define("dojox/charting/themes/GreySkies",["../Theme","./common"],function(_6cf,_6d0){_6d0.GreySkies=new _6cf(_6cf._def);return _6d0.GreySkies;});},"dojox/charting/themes/common":function(){define("dojox/charting/themes/common",["dojo/_base/lang"],function(lang){return lang.getObject("dojox.charting.themes",true);});},"dojox/charting/widget/Legend":function(){define(["dojo/_base/lang","dojo/_base/html","dojo/_base/declare","dijit/_Widget","dojox/gfx","dojo/_base/array","dojox/lang/functional","dojox/lang/functional/array","dojox/lang/functional/fold","dojo/dom","dojo/dom-construct","dojo/dom-class","dijit/_base/manager"],function(lang,html,_6d1,_6d2,gfx,_6d3,df,dfa,dff,dom,_6d4,_6d5,_6d6){var _6d7=/\.(StackedColumns|StackedAreas|ClusteredBars)$/;return _6d1("dojox.charting.widget.Legend",_6d2,{chartRef:"",horizontal:true,swatchSize:18,legendBody:null,postCreate:function(){if(!this.chart){if(!this.chartRef){return;}this.chart=_6d6.byId(this.chartRef);if(!this.chart){var node=dom.byId(this.chartRef);if(node){this.chart=_6d6.byNode(node);}else{return;}}this.series=this.chart.chart.series;}else{this.series=this.chart.series;}this.refresh();},buildRendering:function(){this.domNode=_6d4.create("table",{role:"group","aria-label":"chart legend","class":"dojoxLegendNode"});this.legendBody=_6d4.create("tbody",null,this.domNode);this.inherited(arguments);},destroy:function(){if(this._surfaces){_6d3.forEach(this._surfaces,function(_6d8){_6d8.destroy();});}this.inherited(arguments);},refresh:function(){if(this._surfaces){_6d3.forEach(this._surfaces,function(_6d9){_6d9.destroy();});}this._surfaces=[];while(this.legendBody.lastChild){_6d4.destroy(this.legendBody.lastChild);}if(this.horizontal){_6d5.add(this.domNode,"dojoxLegendHorizontal");this._tr=_6d4.create("tr",null,this.legendBody);this._inrow=0;}var s=this.series;if(s.length==0){return;}if(s[0].chart.stack[0].declaredClass=="dojox.charting.plot2d.Pie"){var t=s[0].chart.stack[0];if(typeof t.run.data[0]=="number"){var _6da=df.map(t.run.data,"Math.max(x, 0)");if(df.every(_6da,"<= 0")){return;}var _6db=df.map(_6da,"/this",df.foldl(_6da,"+",0));_6d3.forEach(_6db,function(x,i){this._addLabel(t.dyn[i],t._getLabel(x*100)+"%");},this);}else{_6d3.forEach(t.run.data,function(x,i){this._addLabel(t.dyn[i],x.legend||x.text||x.y);},this);}}else{if(this._isReversal()){s=s.slice(0).reverse();}_6d3.forEach(s,function(x){this._addLabel(x.dyn,x.legend||x.name);},this);}},_addLabel:function(dyn,_6dc){var _6dd=_6d4.create("td"),icon=_6d4.create("div",null,_6dd),text=_6d4.create("label",null,_6dd),div=_6d4.create("div",{style:{"width":this.swatchSize+"px","height":this.swatchSize+"px","float":"left"}},icon);_6d5.add(icon,"dojoxLegendIcon dijitInline");_6d5.add(text,"dojoxLegendText");if(this._tr){this._tr.appendChild(_6dd);if(++this._inrow===this.horizontal){this._tr=_6d4.create("tr",null,this.legendBody);this._inrow=0;}}else{var tr=_6d4.create("tr",null,this.legendBody);tr.appendChild(_6dd);}this._makeIcon(div,dyn);text.innerHTML=String(_6dc);text.dir=this.getTextDir(_6dc,text.dir);},_makeIcon:function(div,dyn){var mb={h:this.swatchSize,w:this.swatchSize};var _6de=gfx.createSurface(div,mb.w,mb.h);this._surfaces.push(_6de);if(dyn.fill){_6de.createRect({x:2,y:2,width:mb.w-4,height:mb.h-4}).setFill(dyn.fill).setStroke(dyn.stroke);}else{if(dyn.stroke||dyn.marker){var line={x1:0,y1:mb.h/2,x2:mb.w,y2:mb.h/2};if(dyn.stroke){_6de.createLine(line).setStroke(dyn.stroke);}if(dyn.marker){var c={x:mb.w/2,y:mb.h/2};if(dyn.stroke){_6de.createPath({path:"M"+c.x+" "+c.y+" "+dyn.marker}).setFill(dyn.stroke.color).setStroke(dyn.stroke);}else{_6de.createPath({path:"M"+c.x+" "+c.y+" "+dyn.marker}).setFill(dyn.color).setStroke(dyn.color);}}}else{_6de.createRect({x:2,y:2,width:mb.w-4,height:mb.h-4}).setStroke("black");_6de.createLine({x1:2,y1:2,x2:mb.w-2,y2:mb.h-2}).setStroke("black");_6de.createLine({x1:2,y1:mb.h-2,x2:mb.w-2,y2:2}).setStroke("black");}}},_isReversal:function(){return (!this.horizontal)&&_6d3.some(this.chart.stack,function(item){return _6d7.test(item.declaredClass);});}});});}}});define("dojox/charting/widget/Chart2D",["dojo/_base/kernel","./Chart","../Chart2D","../action2d/Highlight","../action2d/Magnify","../action2d/MoveSlice","../action2d/Shake","../action2d/Tooltip"],function(dojo,_6df){dojo.deprecated("dojox.charting.widget.Chart2D","Use dojo.charting.widget.Chart instead and require all other components explicitly","2.0");return dojox.charting.widget.Chart2D=_6df;});