/*
	Copyright (c) 2004-2012, 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
*/

if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.window.getBox=function(){var _1=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _2=dojo._docScroll();return {w:_1.clientWidth,h:_1.clientHeight,l:_2.x,t:_2.y};};dojo.window.get=function(_3){if(dojo.isIE&&window!==document.parentWindow){_3.parentWindow.execScript("document._parentWindow = window;","Javascript");var _4=_3._parentWindow;_3._parentWindow=null;return _4;}return _3.parentWindow||_3.defaultView;};dojo.window.scrollIntoView=function(_5,_6){try{_5=dojo.byId(_5);var _7=_5.ownerDocument||dojo.doc,_8=_7.body||dojo.body(),_9=_7.documentElement||_8.parentNode,_a=dojo.isIE,_b=dojo.isWebKit;if((!(dojo.isMoz||_a||_b||dojo.isOpera)||_5==_8||_5==_9)&&(typeof _5.scrollIntoView!="undefined")){_5.scrollIntoView(false);return;}var _c=_7.compatMode=="BackCompat",_d=(_a>=9&&_5.ownerDocument.parentWindow.frameElement)?((_9.clientHeight>0&&_9.clientWidth>0&&(_8.clientHeight==0||_8.clientWidth==0||_8.clientHeight>_9.clientHeight||_8.clientWidth>_9.clientWidth))?_9:_8):(_c?_8:_9),_e=_b?_8:_d,_f=_d.clientWidth,_10=_d.clientHeight,rtl=!dojo._isBodyLtr(),_11=_6||dojo.position(_5),el=_5.parentNode,_12=function(el){return ((_a<=6||(_a&&_c))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_12(_5)){return;}while(el){if(el==_8){el=_e;}var _13=dojo.position(el),_14=_12(el);if(el==_e){_13.w=_f;_13.h=_10;if(_e==_9&&_a&&rtl){_13.x+=_e.offsetWidth-_13.w;}if(_13.x<0||!_a){_13.x=0;}if(_13.y<0||!_a){_13.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_13.w-=pb.w;_13.h-=pb.h;_13.x+=pb.l;_13.y+=pb.t;var _15=el.clientWidth,_16=_13.w-_15;if(_15>0&&_16>0){_13.w=_15;_13.x+=(rtl&&(_a||el.clientLeft>pb.l))?_16:0;}_15=el.clientHeight;_16=_13.h-_15;if(_15>0&&_16>0){_13.h=_15;}}if(_14){if(_13.y<0){_13.h+=_13.y;_13.y=0;}if(_13.x<0){_13.w+=_13.x;_13.x=0;}if(_13.y+_13.h>_10){_13.h=_10-_13.y;}if(_13.x+_13.w>_f){_13.w=_f-_13.x;}}var l=_11.x-_13.x,t=_11.y-Math.max(_13.y,0),r=l+_11.w-_13.w,bot=t+_11.h-_13.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((_a==8&&!_c)||_a>=9)){s=-s;}_11.x+=el.scrollLeft;el.scrollLeft+=s;_11.x-=el.scrollLeft;}if(bot*t>0){_11.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_11.y-=el.scrollTop;}el=(el!=_e)&&!_14&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_5.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_17){if(this._hash[_17.id]){throw new Error("Tried to register widget with id=="+_17.id+" but that id is already registered");}this._hash[_17.id]=_17;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_18,_19){_19=_19||dojo.global;var i=0,id;for(id in this._hash){_18.call(_19,this._hash[id],i++,this._hash);}return this;},filter:function(_1a,_1b){_1b=_1b||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_1a.call(_1b,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_1c;for(id in this._hash){_1c=this._hash[id];if(_1c.declaredClass==cls){res.add(_1c);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_1d,_1e){return dojo.map(this.toArray(),_1d,_1e);},every:function(_1f,_20){_20=_20||dojo.global;var x=0,i;for(i in this._hash){if(!_1f.call(_20,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_21,_22){_22=_22||dojo.global;var x=0,i;for(i in this._hash){if(_21.call(_22,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _23=dijit.registry._hash,_24=dojo.attr,_25=dojo.hasAttr,_26=dojo.style;dijit.byId=function(id){return typeof id=="string"?_23[id]:id;};var _27={};dijit.getUniqueId=function(_28){var id;do{id=_28+"_"+(_28 in _27?++_27[_28]:_27[_28]=0);}while(_23[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_29){var _2a=[];function _2b(_2c){for(var _2d=_2c.firstChild;_2d;_2d=_2d.nextSibling){if(_2d.nodeType==1){var _2e=_2d.getAttribute("widgetId");if(_2e){_2a.push(_23[_2e]);}else{_2b(_2d);}}}};_2b(_29);return _2a;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_2f){if(!_2f._destroyed){if(_2f.destroyRecursive){_2f.destroyRecursive();}else{if(_2f.destroy){_2f.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_30){return _23[_30.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_31){while(_31){var id=_31.getAttribute&&_31.getAttribute("widgetId");if(id){return _23[id];}_31=_31.parentNode;}return null;};var _32=(dijit._isElementShown=function(_33){var s=_26(_33);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_24(_33,"type")!="hidden");});dijit.hasDefaultTabStop=function(_34){switch(_34.nodeName.toLowerCase()){case "a":return _25(_34,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":if(dojo.isMoz){try{return _34.contentDocument.designMode=="on";}catch(err){return false;}}else{if(dojo.isWebKit){var doc=_34.contentDocument,_35=doc&&doc.body;return _35&&_35.contentEditable=="true";}else{try{doc=_34.contentWindow.document;_35=doc&&doc.body;return _35&&_35.firstChild&&_35.firstChild.contentEditable=="true";}catch(e){return false;}}}default:return _34.contentEditable=="true";}};var _36=(dijit.isTabNavigable=function(_37){if(_24(_37,"disabled")){return false;}else{if(_25(_37,"tabIndex")){return _24(_37,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_37);}}});dijit._getTabNavigable=function(_38){var _39,_3a,_3b,_3c,_3d,_3e;var _3f=function(_40){dojo.query("> *",_40).forEach(function(_41){if((dojo.isIE<=9&&_41.scopeName!=="HTML")||!_32(_41)){return;}if(_36(_41)){var _42=_24(_41,"tabIndex");if(!_25(_41,"tabIndex")||_42==0){if(!_39){_39=_41;}_3a=_41;}else{if(_42>0){if(!_3b||_42<_3c){_3c=_42;_3b=_41;}if(!_3d||_42>=_3e){_3e=_42;_3d=_41;}}}}if(_41.nodeName.toUpperCase()!="SELECT"){_3f(_41);}});};if(_32(_38)){_3f(_38);}return {first:_39,last:_3a,lowest:_3b,highest:_3d};};dijit.getFirstInTabbingOrder=function(_43){var _44=dijit._getTabNavigable(dojo.byId(_43));return _44.lowest?_44.lowest:_44.first;};dijit.getLastInTabbingOrder=function(_45){var _46=dijit._getTabNavigable(dojo.byId(_45));return _46.last?_46.last:_46.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_47){var _48=dojo.doc,_49=_47.mark;if(_49){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_49.pRange){var r=_49;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_49);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_48.selection&&_49){var rg;if(_49.pRange){rg=_49.range;}else{if(dojo.isArray(_49)){rg=_48.body.createControlRange();dojo.forEach(_49,function(n){rg.addElement(n);});}else{rg=_48.body.createTextRange();rg.moveToBookmark(_49);}}rg.select();}}}},getFocus:function(_4a,_4b){var _4c=!dijit._curFocus||(_4a&&dojo.isDescendant(dijit._curFocus,_4a.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_4c,bookmark:(_4c==dijit._curFocus)&&dojo.withGlobal(_4b||dojo.global,dijit.getBookmark),openedForWindow:_4b};},focus:function(_4d){if(!_4d){return;}var _4e="node" in _4d?_4d.node:_4d,_4f=_4d.bookmark,_50=_4d.openedForWindow,_51=_4f?_4f.isCollapsed:false;if(_4e){var _52=(_4e.tagName.toLowerCase()=="iframe")?_4e.contentWindow:_4e;if(_52&&_52.focus){try{_52.focus();}catch(e){}}dijit._onFocusNode(_4e);}if(_4f&&dojo.withGlobal(_50||dojo.global,dijit.isCollapsed)&&!_51){if(_50){_50.focus();}try{dojo.withGlobal(_50||dojo.global,dijit.moveToBookmark,null,[_4f]);}catch(e2){}}},_activeStack:[],registerIframe:function(_53){return dijit.registerWin(_53.contentWindow,_53);},unregisterIframe:function(_54){dijit.unregisterWin(_54);},registerWin:function(_55,_56){var _57=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_56||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_55.document.documentElement:_55.document;if(doc){if(dojo.isIE){doc.attachEvent("onmousedown",_57);var _58=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_56||evt.srcElement);}else{dijit._onTouchNode(_56||evt.srcElement);}};doc.attachEvent("onactivate",_58);var _59=function(evt){dijit._onBlurNode(_56||evt.srcElement);};doc.attachEvent("ondeactivate",_59);return function(){doc.detachEvent("onmousedown",_57);doc.detachEvent("onactivate",_58);doc.detachEvent("ondeactivate",_59);doc=null;};}else{doc.addEventListener("mousedown",_57,true);var _5a=function(evt){dijit._onFocusNode(_56||evt.target);};doc.addEventListener("focus",_5a,true);var _5b=function(evt){dijit._onBlurNode(_56||evt.target);};doc.addEventListener("blur",_5b,true);return function(){doc.removeEventListener("mousedown",_57,true);doc.removeEventListener("focus",_5a,true);doc.removeEventListener("blur",_5b,true);doc=null;};}}},unregisterWin:function(_5c){_5c&&_5c();},_onBlurNode:function(_5d){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(_5e,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _5f=[];try{while(_5e){var _60=dojo.attr(_5e,"dijitPopupParent");if(_60){_5e=dijit.byId(_60).domNode;}else{if(_5e.tagName&&_5e.tagName.toLowerCase()=="body"){if(_5e===dojo.body()){break;}_5e=dojo.window.get(_5e.ownerDocument).frameElement;}else{var id=_5e.getAttribute&&_5e.getAttribute("widgetId"),_61=id&&dijit.byId(id);if(_61&&!(by=="mouse"&&_61.get("disabled"))){_5f.unshift(id);}_5e=_5e.parentNode;}}}}catch(e){}dijit._setStack(_5f,by);},_onFocusNode:function(_62){if(!_62){return;}if(_62.nodeType==9){return;}dijit._onTouchNode(_62);if(_62==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_62;dojo.publish("focusNode",[_62]);},_setStack:function(_63,by){var _64=dijit._activeStack;dijit._activeStack=_63;for(var _65=0;_65<Math.min(_64.length,_63.length);_65++){if(_64[_65]!=_63[_65]){break;}}var _66;for(var i=_64.length-1;i>=_65;i--){_66=dijit.byId(_64[i]);if(_66){_66._focused=false;_66._hasBeenBlurred=true;if(_66._onBlur){_66._onBlur(by);}dojo.publish("widgetBlur",[_66,by]);}}for(i=_65;i<_63.length;i++){_66=dijit.byId(_63[i]);if(_66){_66._focused=true;if(_66._onFocus){_66._onFocus(by);}dojo.publish("widgetFocus",[_66,by]);}}}});dojo.addOnLoad(function(){var _67=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_67);_67=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_68){this.pairs=[];this.returnWrappers=_68||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_69,_6a,_6b,_6c,_6d){this.pairs[((_6d)?"unshift":"push")]([_69,_6a,_6b,_6c]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _6e=this.pairs[i];if(_6e[1].apply(this,arguments)){if((_6e[3])||(this.returnWrappers)){return _6e[2];}else{return _6e[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_6f){for(var i=0;i<this.pairs.length;i++){var _70=this.pairs[i];if(_70[0]==_6f){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){return dojo.window.getBox();};dijit.placeOnScreen=function(_71,pos,_72,_73){var _74=dojo.map(_72,function(_75){var c={corner:_75,pos:{x:pos.x,y:pos.y}};if(_73){c.pos.x+=_75.charAt(1)=="L"?_73.x:-_73.x;c.pos.y+=_75.charAt(0)=="T"?_73.y:-_73.y;}return c;});return dijit._place(_71,_74);};dijit._place=function(_76,_77,_78){var _79=dojo.window.getBox();if(!_76.parentNode||String(_76.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_76);}var _7a=null;dojo.some(_77,function(_7b){var _7c=_7b.corner;var pos=_7b.pos;if(_78){_78(_76,_7b.aroundCorner,_7c);}var _7d=_76.style;var _7e=_7d.display;var _7f=_7d.visibility;_7d.visibility="hidden";_7d.display="";var mb=dojo.marginBox(_76);_7d.display=_7e;_7d.visibility=_7f;var _80=Math.max(_79.l,_7c.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_81=Math.max(_79.t,_7c.charAt(0)=="T"?pos.y:(pos.y-mb.h)),_82=Math.min(_79.l+_79.w,_7c.charAt(1)=="L"?(_80+mb.w):pos.x),_83=Math.min(_79.t+_79.h,_7c.charAt(0)=="T"?(_81+mb.h):pos.y),_84=_82-_80,_85=_83-_81,_86=(mb.w-_84)+(mb.h-_85);if(_7a==null||_86<_7a.overflow){_7a={corner:_7c,aroundCorner:_7b.aroundCorner,x:_80,y:_81,w:_84,h:_85,overflow:_86};}return !_86;});_76.style.left=_7a.x+"px";_76.style.top=_7a.y+"px";if(_7a.overflow&&_78){_78(_76,_7a.aroundCorner,_7a.corner);}return _7a;};dijit.placeOnScreenAroundNode=function(_87,_88,_89,_8a){_88=dojo.byId(_88);var _8b=_88.style.display;_88.style.display="";var _8c=dojo.position(_88,true);_88.style.display=_8b;return dijit._placeOnScreenAroundRect(_87,_8c.x,_8c.y,_8c.w,_8c.h,_89,_8a);};dijit.placeOnScreenAroundRectangle=function(_8d,_8e,_8f,_90){return dijit._placeOnScreenAroundRect(_8d,_8e.x,_8e.y,_8e.width,_8e.height,_8f,_90);};dijit._placeOnScreenAroundRect=function(_91,x,y,_92,_93,_94,_95){var _96=[];for(var _97 in _94){_96.push({aroundCorner:_97,corner:_94[_97],pos:{x:x+(_97.charAt(1)=="L"?0:_92),y:y+(_97.charAt(0)=="T"?0:_93)}});}return dijit._place(_91,_96,_95);};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(_98,_99,_9a,_9b){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_9c,_9d){var _9e={};dojo.forEach(_9c,function(pos){switch(pos){case "after":_9e[_9d?"BR":"BL"]=_9d?"BL":"BR";break;case "before":_9e[_9d?"BL":"BR"]=_9d?"BR":"BL";break;case "below":_9e[_9d?"BL":"BR"]=_9d?"TL":"TR";_9e[_9d?"BR":"BL"]=_9d?"TR":"TL";break;case "above":default:_9e[_9d?"TL":"TR"]=_9d?"BL":"BR";_9e[_9d?"TR":"TL"]=_9d?"BR":"BL";break;}});return _9e;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,moveOffScreen:function(_9f){var _a0=_9f.declaredClass?_9f._popupWrapper:(dojo.hasClass(_9f.parentNode,"dijitPopup")&&_9f.parentNode),_a1=_9f.domNode||_9f;if(_a0){dojo.style(_a0,{visibility:"hidden",top:"-9999px"});}else{_a0=dojo.create("div",{"class":"dijitPopup",style:{visibility:"hidden",top:"-9999px"},role:"presentation"},dojo.body());_a0.appendChild(_a1);var s=_a1.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_9f.declaredClass){_9f._popupWrapper=_a0;dojo.connect(_9f,"destroy",function(){dojo.destroy(_a0);delete _9f._popupWrapper;});}}},getTopPopup:function(){var _a2=this._stack;for(var pi=_a2.length-1;pi>0&&_a2[pi].parent===_a2[pi-1].widget;pi--){}return _a2[pi];},open:function(_a3){var _a4=this._stack,_a5=_a3.popup,_a6=_a3.orient||((_a3.parent?_a3.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_a7=_a3.around,id=(_a3.around&&_a3.around.id)?(_a3.around.id+"_dropdown"):("popup_"+this._idGen++);if(!_a5._popupWrapper){this.moveOffScreen(_a5);}var _a8=_a5._popupWrapper;dojo.attr(_a8,{id:id,style:{zIndex:this._beginZIndex+_a4.length},"class":"dijitPopup "+(_a5.baseClass||_a5["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:_a3.parent?_a3.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_a5.bgIframe){_a5.bgIframe=new dijit.BackgroundIframe(_a8);}}var _a9=_a7?dijit.placeOnScreenAroundElement(_a8,_a7,_a6,_a5.orient?dojo.hitch(_a5,"orient"):null):dijit.placeOnScreen(_a8,_a3,_a6=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_a3.padding);_a8.style.visibility="visible";_a5.domNode.style.visibility="visible";var _aa=[];_aa.push(dojo.connect(_a8,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_a3.onCancel){dojo.stopEvent(evt);_a3.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _ab=this.getTopPopup();if(_ab&&_ab.onCancel){_ab.onCancel();}}}}));if(_a5.onCancel){_aa.push(dojo.connect(_a5,"onCancel",_a3.onCancel));}_aa.push(dojo.connect(_a5,_a5.onExecute?"onExecute":"onChange",this,function(){var _ac=this.getTopPopup();if(_ac&&_ac.onExecute){_ac.onExecute();}}));_a4.push({widget:_a5,parent:_a3.parent,onExecute:_a3.onExecute,onCancel:_a3.onCancel,onClose:_a3.onClose,handlers:_aa});if(_a5.onOpen){_a5.onOpen(_a9);}return _a9;},close:function(_ad){var _ae=this._stack;while(dojo.some(_ae,function(_af){return _af.widget==_ad;})){var top=_ae.pop(),_b0=top.widget,_b1=top.onClose;if(_b0.onClose){_b0.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_b0&&_b0.domNode){this.moveOffScreen(_b0);}if(_b1){_b1();}}}};dijit._frames=new function(){var _b2=[];this.pop=function(){var _b3;if(_b2.length){_b3=_b2.pop();_b3.style.display="";}else{if(dojo.isIE<9){var _b4=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _b5="<iframe src='"+_b4+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_b3=dojo.doc.createElement(_b5);}else{_b3=dojo.create("iframe");_b3.src="javascript:\"\"";_b3.className="dijitBackgroundIframe";dojo.style(_b3,"opacity",0.1);}_b3.tabIndex=-1;dijit.setWaiRole(_b3,"presentation");}return _b3;};this.push=function(_b6){_b6.style.display="none";_b2.push(_b6);};}();dijit.BackgroundIframe=function(_b7){if(!_b7.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _b8=dijit._frames.pop();_b7.appendChild(_b8);if(dojo.isIE<7){this.resize(_b7);this._conn=dojo.connect(_b7,"onresize",this,function(){this.resize(_b7);});}else{dojo.style(_b8,{width:"100%",height:"100%"});}this.iframe=_b8;}};dojo.extend(dijit.BackgroundIframe,{resize:function(_b9){if(this.iframe&&dojo.isIE<7){dojo.style(this.iframe,{width:_b9.offsetWidth+"px",height:_b9.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(_ba,pos){dojo.window.scrollIntoView(_ba,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,_bb=d.doc.documentElement,ie=d.isIE,_bc=d.isOpera,maj=Math.floor,ff=d.isFF,_bd=d.boxModel.replace(/-/,""),_be={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_ie9:maj(ie)==9,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_bc,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_be["dj_"+_bd]=true;var _bf="";for(var clz in _be){if(_be[clz]){_bf+=clz+" ";}}_bb.className=d.trim(_bb.className+" "+_bf);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _c0="dj_rtl dijitRtl "+_bf.replace(/ /g,"-rtl ");_bb.className=d.trim(_bb.className+" "+_c0);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_c1,_c2,_c3,obj,_c4,_c5,_c6){if(obj!=this._obj){this.stop();this._initialDelay=_c5||500;this._subsequentDelay=_c4||0.9;this._minDelay=_c6||10;this._obj=obj;this._evt=evt;this._node=_c2;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_c1,_c3);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},evt);}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(_c7,_c8,_c9,_ca,_cb,_cc,_cd){if(_c8.keyCode){_c8.charOrCode=_c8.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_c8.charCode){_c8.charOrCode=String.fromCharCode(_c8.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(_c7,"onkeypress",this,function(evt){if(evt.charOrCode==_c8.charOrCode&&(_c8.ctrlKey===undefined||_c8.ctrlKey==evt.ctrlKey)&&(_c8.altKey===undefined||_c8.altKey==evt.altKey)&&(_c8.metaKey===undefined||_c8.metaKey==(evt.metaKey||false))&&(_c8.shiftKey===undefined||_c8.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_c9,_c7,_ca,_c8,_cb,_cc,_cd);}else{if(dijit.typematic._obj==_c8){dijit.typematic.stop();}}}),dojo.connect(_c7,"onkeyup",this,function(evt){if(dijit.typematic._obj==_c8){dijit.typematic.stop();}})];},addMouseListener:function(_ce,_cf,_d0,_d1,_d2,_d3){var dc=dojo.connect;return [dc(_ce,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_cf,_ce,_d0,_ce,_d1,_d2,_d3);}),dc(_ce,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_ce,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_ce,"mousemove",this,function(evt){evt.preventDefault();}),dc(_ce,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_cf,_ce,_d0,_ce,_d1,_d2,_d3);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_d4,_d5,_d6,_d7,_d8,_d9,_da,_db){return this.addKeyListener(_d5,_d6,_d7,_d8,_d9,_da,_db).concat(this.addMouseListener(_d4,_d7,_d8,_d9,_da,_db));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());var cs=dojo.getComputedStyle(div);if(cs){var _dc=cs.backgroundImage;var _dd=(cs.borderTopColor==cs.borderRightColor)||(_dc!=null&&(_dc=="none"||_dc=="url(invalid-url:)"));dojo[_dd?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(_de,_df){var _e0=this.getWaiRole(_de);return _df?(_e0.indexOf(_df)>-1):(_e0.length>0);},getWaiRole:function(_e1){return dojo.trim((dojo.attr(_e1,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(_e2,_e3){var _e4=dojo.attr(_e2,"role")||"";if(!this._XhtmlRoles.test(_e4)){dojo.attr(_e2,"role",_e3);}else{if((" "+_e4+" ").indexOf(" "+_e3+" ")<0){var _e5=dojo.trim(_e4.replace(this._XhtmlRoles,""));var _e6=dojo.trim(_e4.replace(_e5,""));dojo.attr(_e2,"role",_e6+(_e6?" ":"")+_e3);}}},removeWaiRole:function(_e7,_e8){var _e9=dojo.attr(_e7,"role");if(!_e9){return;}if(_e8){var t=dojo.trim((" "+_e9+" ").replace(" "+_e8+" "," "));dojo.attr(_e7,"role",t);}else{_e7.removeAttribute("role");}},hasWaiState:function(_ea,_eb){return _ea.hasAttribute?_ea.hasAttribute("aria-"+_eb):!!_ea.getAttribute("aria-"+_eb);},getWaiState:function(_ec,_ed){return _ec.getAttribute("aria-"+_ed)||"";},setWaiState:function(_ee,_ef,_f0){_ee.setAttribute("aria-"+_ef,_f0);},removeWaiState:function(_f1,_f2){_f1.removeAttribute("aria-"+_f2);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"_connect",function(_f3,_f4){if(_f3&&dojo.isFunction(_f3._onConnect)){_f3._onConnect(_f4);}});dijit._connectOnUseEventHandler=function(_f5){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _f6=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_f6);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_f6);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){var _f7={},_f8=function(_f9){var dc=_f9.declaredClass;if(!_f7[dc]){var r=[],_fa,_fb=_f9.constructor.prototype;for(var _fc in _fb){if(dojo.isFunction(_fb[_fc])&&(_fa=_fc.match(/^_set([a-zA-Z]*)Attr$/))&&_fa[1]){r.push(_fa[1].charAt(0).toLowerCase()+_fa[1].substr(1));}}_f7[dc]=r;}return _f7[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_fd,_fe){this.create(_fd,_fe);},create:function(_ff,_100){this.srcNodeRef=dojo.byId(_100);this._connects=[];this._subscribes=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_ff){this.params=_ff;dojo.mixin(this,_ff);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _101=this.srcNodeRef;if(_101&&_101.parentNode){_101.parentNode.replaceChild(this.domNode,_101);}for(attr in this.params){this._onConnect(attr);}}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 _102=function(attr,_103){if((_103.params&&attr in _103.params)||_103[attr]){_103.set(attr,_103[attr]);}};for(var attr in this.attributeMap){_102(attr,this);}dojo.forEach(_f8(this),function(a){if(!(a in this.attributeMap)){_102(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){if(this.baseClass){var _104=this.baseClass.split(" ");if(!this.isLeftToRight()){_104=_104.concat(dojo.map(_104,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_104);}},startup:function(){this._started=true;},destroyRecursive:function(_105){this._beingDestroyed=true;this.destroyDescendants(_105);this.destroy(_105);},destroy:function(_106){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_107){dfe(_107,d.disconnect);});dfe(this._subscribes,function(_108){dun(_108);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_106);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_109){if(this.bgIframe){this.bgIframe.destroy(_109);delete this.bgIframe;}if(this.domNode){if(_109){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_109){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_10a){dojo.forEach(this.getChildren(),function(_10b){if(_10b.destroyRecursive){_10b.destroyRecursive(_10a);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_10c){if(_10c in this._deferredConnects){var _10d=this[this._deferredConnects[_10c]||"domNode"];this.connect(_10d,_10c.toLowerCase(),_10c);delete this._deferredConnects[_10c];}},_setClassAttr:function(_10e){var _10f=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_10f,this["class"]);this["class"]=_10e;dojo.addClass(_10f,_10e);},_setStyleAttr:function(_110){var _111=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_110)){dojo.style(_111,_110);}else{if(_111.style.cssText){_111.style.cssText+="; "+_110;}else{_111.style.cssText=_110;}}this.style=_110;},setAttribute:function(attr,_112){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_112);},_attrToDom:function(attr,_113){var _114=this.attributeMap[attr];dojo.forEach(dojo.isArray(_114)?_114:[_114],function(_115){var _116=this[_115.node||_115||"domNode"];var type=_115.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_113)){_113=dojo.hitch(this,_113);}var _117=_115.attribute?_115.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_116,_117,_113);break;case "innerText":_116.innerHTML="";_116.appendChild(dojo.doc.createTextNode(_113));break;case "innerHTML":_116.innerHTML=_113;break;case "class":dojo.removeClass(_116,this[attr]);dojo.addClass(_116,_113);break;}},this);this[attr]=_113;},attr:function(name,_118){if(dojo.config.isDebug){var _119=arguments.callee._ach||(arguments.callee._ach={}),_11a=(arguments.callee.caller||"unknown caller").toString();if(!_119[_11a]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_11a,"","2.0");_119[_11a]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},get:function(name){var _11b=this._getAttrNames(name);return this[_11b.g]?this[_11b.g]():this[name];},set:function(name,_11c){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _11d=this._getAttrNames(name);if(this[_11d.s]){var _11e=this[_11d.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_11c);}var _11f=this[name];this[name]=_11c;}return _11e||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},nodesWithKeyClick:["input","button"],connect:function(obj,_120,_121){var d=dojo,dc=d._connect,_122=[];if(_120=="ondijitclick"){if(dojo.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_121);_122.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;e.preventDefault();}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target===dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}_120="onclick";}_122.push(dc(obj,_120,this,_121));this._connects.push(_122);return _122;},disconnect:function(_123){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_123){dojo.forEach(_123,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_124,_125){var d=dojo,_126=d.subscribe(_124,this,_125);this._subscribes.push(_126);return _126;},unsubscribe:function(_127){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_127){dojo.unsubscribe(_127);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_128,_129){if(_128.declaredClass&&_128.addChild){_128.addChild(this,_129);}else{dojo.place(this.domNode,_128,_129);}return this;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dojox.gfx.matrix"]){dojo._hasResource["dojox.gfx.matrix"]=true;dojo.provide("dojox.gfx.matrix");(function(){var m=dojox.gfx.matrix;var _12a={};m._degToRad=function(_12b){return _12a[_12b]||(_12a[_12b]=(Math.PI*_12b/180));};m._radToDeg=function(_12c){return _12c/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 _12d=m.normalize(arg[0]);for(var i=1;i<arg.length;++i){var l=_12d,r=dojox.gfx.matrix.normalize(arg[i]);_12d=new m.Matrix2D();_12d.xx=l.xx*r.xx+l.xy*r.yx;_12d.xy=l.xx*r.xy+l.xy*r.yy;_12d.yx=l.yx*r.xx+l.yy*r.yx;_12d.yy=l.yx*r.xy+l.yy*r.yy;_12d.dx=l.xx*r.dx+l.xy*r.dy+l.dx;_12d.dy=l.yx*r.dx+l.yy*r.dy+l.dy;}dojo.mixin(this,_12d);}}else{dojo.mixin(this,arg);}}}};dojo.extend(m.Matrix2D,{xx:1,xy:0,yx:0,yy:1,dx:0,dy:0});dojo.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(_12e){var c=Math.cos(_12e);var s=Math.sin(_12e);return new m.Matrix2D({xx:c,xy:-s,yx:s,yy:c});},rotateg:function(_12f){return m.rotate(m._degToRad(_12f));},skewX:function(_130){return new m.Matrix2D({xy:Math.tan(_130)});},skewXg:function(_131){return m.skewX(m._degToRad(_131));},skewY:function(_132){return new m.Matrix2D({yx:Math.tan(_132)});},skewYg:function(_133){return m.skewY(m._degToRad(_133));},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(_134){return (_134 instanceof m.Matrix2D)?_134:new m.Matrix2D(_134);},clone:function(_135){var obj=new m.Matrix2D();for(var i in _135){if(typeof (_135[i])=="number"&&typeof (obj[i])=="number"&&obj[i]!=_135[i]){obj[i]=_135[i];}}return obj;},invert:function(_136){var M=m.normalize(_136),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(_137,x,y){return {x:_137.xx*x+_137.xy*y+_137.dx,y:_137.yx*x+_137.yy*y+_137.dy};},multiplyPoint:function(_138,a,b){var M=m.normalize(_138);if(typeof a=="number"&&typeof b=="number"){return m._multiplyPoint(M,a,b);}return m._multiplyPoint(M,a.x,a.y);},multiply:function(_139){var M=m.normalize(_139);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(_13a,x,y){return m.multiply(m.translate(x,y),_13a,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(_13b,a,b){if(arguments.length>2){return m._sandwich(m.rotate(_13b),a,b);}return m._sandwich(m.rotate(_13b),a.x,a.y);},rotategAt:function(_13c,a,b){if(arguments.length>2){return m._sandwich(m.rotateg(_13c),a,b);}return m._sandwich(m.rotateg(_13c),a.x,a.y);},skewXAt:function(_13d,a,b){if(arguments.length>2){return m._sandwich(m.skewX(_13d),a,b);}return m._sandwich(m.skewX(_13d),a.x,a.y);},skewXgAt:function(_13e,a,b){if(arguments.length>2){return m._sandwich(m.skewXg(_13e),a,b);}return m._sandwich(m.skewXg(_13e),a.x,a.y);},skewYAt:function(_13f,a,b){if(arguments.length>2){return m._sandwich(m.skewY(_13f),a,b);}return m._sandwich(m.skewY(_13f),a.x,a.y);},skewYgAt:function(_140,a,b){if(arguments.length>2){return m._sandwich(m.skewYg(_140),a,b);}return m._sandwich(m.skewYg(_140),a.x,a.y);}});})();dojox.gfx.Matrix2D=dojox.gfx.matrix.Matrix2D;}if(!dojo._hasResource["dojox.gfx._base"]){dojo._hasResource["dojox.gfx._base"]=true;dojo.provide("dojox.gfx._base");(function(){var g=dojox.gfx,b=g._base;g._hasClass=function(node,_141){var cls=node.getAttribute("className");return cls&&(" "+cls+" ").indexOf(" "+_141+" ")>=0;};g._addClass=function(node,_142){var cls=node.getAttribute("className")||"";if(!cls||(" "+cls+" ").indexOf(" "+_142+" ")<0){node.setAttribute("className",cls+(cls?" ":"")+_142);}};g._removeClass=function(node,_143){var cls=node.getAttribute("className");if(cls){node.setAttribute("className",cls.replace(new RegExp("(^|\\s+)"+_143+"(\\s+|$)"),"$1$2"));}};b._getFontMeasurements=function(){var _144={"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};if(dojo.isIE){dojo.doc.documentElement.style.fontSize="100%";}var div=dojo.doc.createElement("div");var s=div.style;s.position="absolute";s.top="-100px";s.left="0px";s.width="30px";s.height="1000em";s.borderWidth="0px";s.margin="0px";s.padding="0px";s.outline="none";s.lineHeight="1";s.overflow="hidden";dojo.body().appendChild(div);for(var p in _144){div.style.fontSize=p;_144[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);div=null;return _144;};var _145=null;b._getCachedFontMeasurements=function(_146){if(_146||!_145){_145=b._getFontMeasurements();}return _145;};var _147=null,_148={};b._getTextBox=function(text,_149,_14a){var m,s,al=arguments.length;if(!_147){m=_147=dojo.doc.createElement("div");s=m.style;s.position="absolute";s.top="-10000px";s.left="0";dojo.body().appendChild(m);}else{m=_147;s=m.style;}m.className="";s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(al>1&&_149){for(var i in _149){if(i in _148){continue;}s[i]=_149[i];}}if(al>2&&_14a){m.className=_14a;}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 dojo.marginBox(m);}};var _14b=0;b._getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++_14b);}while(dojo.byId(id));return id;};})();dojo.mixin(dojox.gfx,{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 _14c={};return function(type){var t=_14c[type];if(t){return new t();}t=_14c[type]=new Function;t.prototype=dojox.gfx["default"+type];return new t();};})(),normalizeColor:function(_14d){return (_14d instanceof dojo.Color)?_14d:new dojo.Color(_14d);},normalizeParameters:function(_14e,_14f){if(_14f){var _150={};for(var x in _14e){if(x in _14f&&!(x in _150)){_14e[x]=_14f[x];}}}return _14e;},makeParameters:function(_151,_152){if(!_152){return dojo.delegate(_151);}var _153={};for(var i in _151){if(!(i in _153)){_153[i]=dojo.clone((i in _152)?_152[i]:_151[i]);}}return _153;},formatNumber:function(x,_154){var val=x.toString();if(val.indexOf("e")>=0){val=x.toFixed(4);}else{var _155=val.indexOf(".");if(_155>=0&&val.length-_155>5){val=x.toFixed(4);}}if(x<0){return val;}return _154?" "+val:val;},makeFontString:function(font){return font.style+" "+font.variant+" "+font.weight+" "+font.size+" "+font.family;},splitFontString:function(str){var font=dojox.gfx.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 dojox.gfx._base._getCachedFontMeasurements()["12pt"]/12;},pt2px:function(len){return len*dojox.gfx.px_in_pt();},px2pt:function(len){return len/dojox.gfx.px_in_pt();},normalizedLength:function(len){if(len.length==0){return 0;}if(len.length>2){var _156=dojox.gfx.px_in_pt();var val=parseFloat(len);switch(len.slice(-2)){case "px":return val;case "pt":return val*_156;case "in":return val*72*_156;case "pc":return val*12*_156;case "mm":return val*dojox.gfx.mm_in_pt*_156;case "cm":return val*dojox.gfx.cm_in_pt*_156;}}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;}});}if(!dojo._hasResource["dojox.gfx"]){dojo._hasResource["dojox.gfx"]=true;dojo.provide("dojox.gfx");dojo.loadInit(function(){var gfx=dojo.getObject("dojox.gfx",true),sl,flag,_157;if(!gfx.renderer){if(dojo.config.forceGfxRenderer){dojox.gfx.renderer=dojo.config.forceGfxRenderer;return;}var _158=(typeof dojo.config.gfxRenderer=="string"?dojo.config.gfxRenderer:"svg,vml,silverlight,canvas").split(",");var ua=navigator.userAgent,_159=0,_15a=0;if(dojo.isSafari>=3){if(ua.indexOf("iPhone")>=0||ua.indexOf("iPod")>=0){_157=ua.match(/Version\/(\d(\.\d)?(\.\d)?)\sMobile\/([^\s]*)\s?/);if(_157){_159=parseInt(_157[4].substr(0,3),16);}}}if(dojo.isWebKit){if(!_159){_157=ua.match(/Android\s+(\d+\.\d+)/);if(_157){_15a=parseFloat(_157[1]);}}}for(var i=0;i<_158.length;++i){switch(_158[i]){case "svg":if("SVGAngle" in dojo.global){dojox.gfx.renderer="svg";}break;case "vml":if(dojo.isIE){dojox.gfx.renderer="vml";}break;case "silverlight":try{if(dojo.isIE){sl=new ActiveXObject("AgControl.AgControl");if(sl&&sl.IsVersionSupported("1.0")){flag=true;}}else{if(navigator.plugins["Silverlight Plug-In"]){flag=true;}}}catch(e){flag=false;}finally{sl=null;}if(flag){dojox.gfx.renderer="silverlight";}break;case "canvas":if(!dojo.isIE){dojox.gfx.renderer="canvas";}break;}if(dojox.gfx.renderer){break;}}if(dojo.config.isDebug){}}});dojo.requireIf(dojox.gfx.renderer=="svg","dojox.gfx.svg");dojo.requireIf(dojox.gfx.renderer=="vml","dojox.gfx.vml");dojo.requireIf(dojox.gfx.renderer=="silverlight","dojox.gfx.silverlight");dojo.requireIf(dojox.gfx.renderer=="canvas","dojox.gfx.canvas");}if(!dojo._hasResource["dojox.lang.functional.lambda"]){dojo._hasResource["dojox.lang.functional.lambda"]=true;dojo.provide("dojox.lang.functional.lambda");(function(){var df=dojox.lang.functional,_15b={};var _15c="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 _15d=function(s){var args=[],_15e=_15c.call(s,/\s*->\s*/m);if(_15e.length>1){while(_15e.length){s=_15e.pop();args=_15e.pop().split(/\s*,\s*|\s+/m);if(_15e.length){_15e.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={};dojo.forEach(vars,function(v){if(!(v in t)){args.push(v);t[v]=1;}});}}}return {args:args,body:s};};var _15f=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;};};dojo.mixin(df,{rawLambda:function(s){return _15d(s);},buildLambda:function(s){s=_15d(s);return "function("+s.args.join(",")+"){return ("+s.body+");}";},lambda:function(s){if(typeof s=="function"){return s;}if(s instanceof Array){return _15f(s);}if(s in _15b){return _15b[s];}s=_15d(s);return _15b[s]=new Function(s.args,"return ("+s.body+");");},clearLambdaCache:function(){_15b={};}});})();}if(!dojo._hasResource["dojox.lang.functional.array"]){dojo._hasResource["dojox.lang.functional.array"]=true;dojo.provide("dojox.lang.functional.array");(function(){var d=dojo,df=dojox.lang.functional,_160={};d.mixin(df,{filter:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t=[],v,i,n;if(d.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 _160)){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||d.global;f=df.lambda(f);var i,n;if(d.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 _160)){f.call(o,a[i],i,a);}}}}return o;},map:function(a,f,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);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 _160)){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||d.global;f=df.lambda(f);var i,n;if(d.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 _160)){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||d.global;f=df.lambda(f);var i,n;if(d.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 _160)){if(f.call(o,a[i],i,a)){return true;}}}}}return false;}});})();}if(!dojo._hasResource["dojox.lang.functional.object"]){dojo._hasResource["dojox.lang.functional.object"]=true;dojo.provide("dojox.lang.functional.object");(function(){var d=dojo,df=dojox.lang.functional,_161={};d.mixin(df,{keys:function(obj){var t=[];for(var i in obj){if(!(i in _161)){t.push(i);}}return t;},values:function(obj){var t=[];for(var i in obj){if(!(i in _161)){t.push(obj[i]);}}return t;},filterIn:function(obj,f,o){o=o||d.global;f=df.lambda(f);var t={},v,i;for(i in obj){if(!(i in _161)){v=obj[i];if(f.call(o,v,i,obj)){t[i]=v;}}}return t;},forIn:function(obj,f,o){o=o||d.global;f=df.lambda(f);for(var i in obj){if(!(i in _161)){f.call(o,obj[i],i,obj);}}return o;},mapIn:function(obj,f,o){o=o||d.global;f=df.lambda(f);var t={},i;for(i in obj){if(!(i in _161)){t[i]=f.call(o,obj[i],i,obj);}}return t;}});})();}if(!dojo._hasResource["dojox.lang.functional"]){dojo._hasResource["dojox.lang.functional"]=true;dojo.provide("dojox.lang.functional");}if(!dojo._hasResource["dojox.lang.functional.fold"]){dojo._hasResource["dojox.lang.functional.fold"]=true;dojo.provide("dojox.lang.functional.fold");(function(){var d=dojo,df=dojox.lang.functional,_162={};d.mixin(df,{foldl:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var i,n;if(d.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 _162)){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||d.global;f=df.lambda(f);var z,i,n;if(d.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 _163=true;for(i in a){if(!(i in _162)){if(_163){z=a[i];_163=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||d.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||d.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||d.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;}});})();}if(!dojo._hasResource["dojox.lang.functional.reversed"]){dojo._hasResource["dojox.lang.functional.reversed"]=true;dojo.provide("dojox.lang.functional.reversed");(function(){var d=dojo,df=dojox.lang.functional;d.mixin(df,{filterRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.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||d.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||d.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||d.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||d.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;}});})();}if(!dojo._hasResource["dojo.colors"]){dojo._hasResource["dojo.colors"]=true;dojo.provide("dojo.colors");(function(){var _164=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=function(_165,obj){var m=_165.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=dojo.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}return dojo.colorFromArray(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=[_164(m1,m2,H+1/3)*256,_164(m1,m2,H)*256,_164(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}}return null;};var _166=function(c,low,high){c=Number(c);return isNaN(c)?high:c<low?low:c>high?high:c;};dojo.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_166(t.r,0,255));t.g=Math.round(_166(t.g,0,255));t.b=Math.round(_166(t.b,0,255));t.a=_166(t.a,0,1);return this;};})();dojo.colors.makeGrey=function(g,a){return dojo.colorFromArray([g,g,g,a]);};dojo.mixin(dojo.Color.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],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});}if(!dojo._hasResource["dojox.color._base"]){dojo._hasResource["dojox.color._base"]=true;dojo.provide("dojox.color._base");dojox.color.Color=dojo.Color;dojox.color.blend=dojo.blendColors;dojox.color.fromRgb=dojo.colorFromRgb;dojox.color.fromHex=dojo.colorFromHex;dojox.color.fromArray=dojo.colorFromArray;dojox.color.fromString=dojo.colorFromString;dojox.color.greyscale=dojo.colors.makeGrey;dojo.mixin(dojox.color,{fromCmy:function(cyan,_167,_168){if(dojo.isArray(cyan)){_167=cyan[1],_168=cyan[2],cyan=cyan[0];}else{if(dojo.isObject(cyan)){_167=cyan.m,_168=cyan.y,cyan=cyan.c;}}cyan/=100,_167/=100,_168/=100;var r=1-cyan,g=1-_167,b=1-_168;return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromCmyk:function(cyan,_169,_16a,_16b){if(dojo.isArray(cyan)){_169=cyan[1],_16a=cyan[2],_16b=cyan[3],cyan=cyan[0];}else{if(dojo.isObject(cyan)){_169=cyan.m,_16a=cyan.y,_16b=cyan.b,cyan=cyan.c;}}cyan/=100,_169/=100,_16a/=100,_16b/=100;var r,g,b;r=1-Math.min(1,cyan*(1-_16b)+_16b);g=1-Math.min(1,_169*(1-_16b)+_16b);b=1-Math.min(1,_16a*(1-_16b)+_16b);return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsl:function(hue,_16c,_16d){if(dojo.isArray(hue)){_16c=hue[1],_16d=hue[2],hue=hue[0];}else{if(dojo.isObject(hue)){_16c=hue.s,_16d=hue.l,hue=hue.h;}}_16c/=100;_16d/=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*_16c*Math.min(r,1)+(1-_16c);g=2*_16c*Math.min(g,1)+(1-_16c);b=2*_16c*Math.min(b,1)+(1-_16c);if(_16d<0.5){r*=_16d,g*=_16d,b*=_16d;}else{r=(1-_16d)*r+2*_16d-1;g=(1-_16d)*g+2*_16d-1;b=(1-_16d)*b+2*_16d-1;}return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsv:function(hue,_16e,_16f){if(dojo.isArray(hue)){_16e=hue[1],_16f=hue[2],hue=hue[0];}else{if(dojo.isObject(hue)){_16e=hue.s,_16f=hue.v,hue=hue.h;}}if(hue==360){hue=0;}_16e/=100;_16f/=100;var r,g,b;if(_16e==0){r=_16f,b=_16f,g=_16f;}else{var _170=hue/60,i=Math.floor(_170),f=_170-i;var p=_16f*(1-_16e);var q=_16f*(1-(_16e*f));var t=_16f*(1-(_16e*(1-f)));switch(i){case 0:r=_16f,g=t,b=p;break;case 1:r=q,g=_16f,b=p;break;case 2:r=p,g=_16f,b=t;break;case 3:r=p,g=q,b=_16f;break;case 4:r=t,g=p,b=_16f;break;case 5:r=_16f,g=p,b=q;break;}}return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});}});dojo.extend(dojox.color.Color,{toCmy:function(){var cyan=1-(this.r/255),_171=1-(this.g/255),_172=1-(this.b/255);return {c:Math.round(cyan*100),m:Math.round(_171*100),y:Math.round(_172*100)};},toCmyk:function(){var cyan,_173,_174,_175;var r=this.r/255,g=this.g/255,b=this.b/255;_175=Math.min(1-r,1-g,1-b);cyan=(1-r-_175)/(1-_175);_173=(1-g-_175)/(1-_175);_174=(1-b-_175)/(1-_175);return {c:Math.round(cyan*100),m:Math.round(_173*100),y:Math.round(_174*100),b:Math.round(_175*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 _176=max-min;var h=0,s=0,l=(min+max)/2;if(l>0&&l<1){s=_176/((l<0.5)?(2*l):(2-2*l));}if(_176>0){if(max==r&&max!=g){h+=(g-b)/_176;}if(max==g&&max!=b){h+=(2+(b-r)/_176);}if(max==b&&max!=r){h+=(4+(r-g)/_176);}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 _177=max-min;var h=null,s=(max==0)?0:(_177/max);if(s==0){h=0;}else{if(r==max){h=60*(g-b)/_177;}else{if(g==max){h=120+60*(b-r)/_177;}else{h=240+60*(r-g)/_177;}}if(h<0){h+=360;}}return {h:h,s:Math.round(s*100),v:Math.round(max*100)};}});}if(!dojo._hasResource["dojox.color"]){dojo._hasResource["dojox.color"]=true;dojo.provide("dojox.color");}if(!dojo._hasResource["dojox.color.Palette"]){dojo._hasResource["dojox.color.Palette"]=true;dojo.provide("dojox.color.Palette");(function(){var dxc=dojox.color;dxc.Palette=function(base){this.colors=[];if(base instanceof dojox.color.Palette){this.colors=base.colors.slice(0);}else{if(base instanceof dojox.color.Color){this.colors=[null,null,base,null,null];}else{if(dojo.isArray(base)){this.colors=dojo.map(base.slice(0),function(item){if(dojo.isString(item)){return new dojox.color.Color(item);}return item;});}else{if(dojo.isString(base)){this.colors=[null,null,new dojox.color.Color(base),null,null];}}}}};function _178(p,_179,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var r=(_179=="dr")?item.r+val:item.r,g=(_179=="dg")?item.g+val:item.g,b=(_179=="db")?item.b+val:item.b,a=(_179=="da")?item.a+val:item.a;ret.colors.push(new dojox.color.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,_17a,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toCmy(),c=(_17a=="dc")?o.c+val:o.c,m=(_17a=="dm")?o.m+val:o.m,y=(_17a=="dy")?o.y+val:o.y;ret.colors.push(dojox.color.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 _17b(p,_17c,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toCmyk(),c=(_17c=="dc")?o.c+val:o.c,m=(_17c=="dm")?o.m+val:o.m,y=(_17c=="dy")?o.y+val:o.y,k=(_17c=="dk")?o.b+val:o.b;ret.colors.push(dojox.color.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,_17d,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toHsl(),h=(_17d=="dh")?o.h+val:o.h,s=(_17d=="ds")?o.s+val:o.s,l=(_17d=="dl")?o.l+val:o.l;ret.colors.push(dojox.color.fromHsl(h%360,Math.min(100,Math.max(0,s)),Math.min(100,Math.max(0,l))));});return ret;};function tHSV(p,_17e,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toHsv(),h=(_17e=="dh")?o.h+val:o.h,s=(_17e=="ds")?o.s+val:o.s,v=(_17e=="dv")?o.v+val:o.v;ret.colors.push(dojox.color.fromHsv(h%360,Math.min(100,Math.max(0,s)),Math.min(100,Math.max(0,v))));});return ret;};function _17f(val,low,high){return high-((high-val)*((high-low)/high));};dojo.extend(dxc.Palette,{transform:function(_180){var fn=_178;if(_180.use){var use=_180.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=_17b;}else{fn=tCMY;}}}}else{if("dc" in _180||"dm" in _180||"dy" in _180){if("dk" in _180){fn=_17b;}else{fn=tCMY;}}else{if("dh" in _180||"ds" in _180){if("dv" in _180){fn=tHSV;}else{fn=tHSL;}}}}var _181=this;for(var p in _180){if(p=="use"){continue;}_181=fn(_181,p,_180[p]);}return _181;},clone:function(){return new dxc.Palette(this);}});dojo.mixin(dxc.Palette,{generators:{analogous:function(args){var high=args.high||60,low=args.low||18,base=dojo.isString(args.base)?new dojox.color.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(dojo.map(h,function(hue,i){return dojox.color.fromHsv(hue,s[i],v[i]);}));},monochromatic:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var s1=(hsv.s-30>9)?hsv.s-30:hsv.s+30,s2=hsv.s,v1=_17f(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([dojox.color.fromHsv(hsv.h,s1,v1),dojox.color.fromHsv(hsv.h,s2,v3),base,dojox.color.fromHsv(hsv.h,s1,v3),dojox.color.fromHsv(hsv.h,s2,v2)]);},triadic:function(args){var base=dojo.isString(args.base)?new dojox.color.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([dojox.color.fromHsv(h1,s1,hsv.v),dojox.color.fromHsv(hsv.h,s2,v2),base,dojox.color.fromHsv(h2,s2,v1),dojox.color.fromHsv(h2,s3,v3)]);},complementary:function(args){var base=dojo.isString(args.base)?new dojox.color.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=_17f(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([dojox.color.fromHsv(hsv.h,s1,v1),dojox.color.fromHsv(hsv.h,s2,v2),base,dojox.color.fromHsv(h1,s3,v2),dojox.color.fromHsv(h1,hsv.s,hsv.v)]);},splitComplementary:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,_182=args.da||30,hsv=base.toHsv();var _183=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,h1=(_183-_182+360)%360,h2=(_183+_182)%360,s1=Math.max(hsv.s-10,0),s2=_17f(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([dojox.color.fromHsv(h1,s1,v1),dojox.color.fromHsv(h1,s2,v2),base,dojox.color.fromHsv(h2,s3,v2),dojox.color.fromHsv(h2,hsv.s,hsv.v)]);},compound:function(args){var base=dojo.isString(args.base)?new dojox.color.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([dojox.color.fromHsv(h1,s1,v1),dojox.color.fromHsv(h1,s2,v2),base,dojox.color.fromHsv(h2,s3,v3),dojox.color.fromHsv(h3,s2,v2)]);},shades:function(args){var base=dojo.isString(args.base)?new dojox.color.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 dojox.color.fromHsv(hsv.h,s,v1),new dojox.color.fromHsv(hsv.h,s,v2),base,new dojox.color.fromHsv(hsv.h,s,v3),new dojox.color.fromHsv(hsv.h,s,v4)]);}},generate:function(base,type){if(dojo.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.");}});})();}if(!dojo._hasResource["dojox.lang.utils"]){dojo._hasResource["dojox.lang.utils"]=true;dojo.provide("dojox.lang.utils");(function(){var _184={},du=dojox.lang.utils,opts=Object.prototype.toString;var _185=function(o){if(o){switch(opts.call(o)){case "[object Array]":return o.slice(0);case "[object Object]":return dojo.delegate(o);}}return o;};dojo.mixin(du,{coerceType:function(_186,_187){switch(typeof _186){case "number":return Number(eval("("+_187+")"));case "string":return String(_187);case "boolean":return Boolean(eval("("+_187+")"));}return eval("("+_187+")");},updateWithObject:function(_188,_189,conv){if(!_189){return _188;}for(var x in _188){if(x in _189&&!(x in _184)){var t=_188[x];if(t&&typeof t=="object"){du.updateWithObject(t,_189[x],conv);}else{_188[x]=conv?du.coerceType(t,_189[x]):_185(_189[x]);}}}return _188;},updateWithPattern:function(_18a,_18b,_18c,conv){if(!_18b||!_18c){return _18a;}for(var x in _18c){if(x in _18b&&!(x in _184)){_18a[x]=conv?du.coerceType(_18c[x],_18b[x]):_185(_18b[x]);}}return _18a;},merge:function(_18d,_18e){if(_18e){var _18f=opts.call(_18d),_190=opts.call(_18e),t,i,l,m;switch(_190){case "[object Array]":if(_190==_18f){t=new Array(Math.max(_18d.length,_18e.length));for(i=0,l=t.length;i<l;++i){t[i]=du.merge(_18d[i],_18e[i]);}return t;}return _18e.slice(0);case "[object Object]":if(_190==_18f&&_18d){t=dojo.delegate(_18d);for(i in _18e){if(i in _18d){l=_18d[i];m=_18e[i];if(m!==l){t[i]=du.merge(l,m);}}else{t[i]=dojo.clone(_18e[i]);}}return t;}return dojo.clone(_18e);}}return _18e;}});})();}if(!dojo._hasResource["dojox.gfx.gradutils"]){dojo._hasResource["dojox.gfx.gradutils"]=true;dojo.provide("dojox.gfx.gradutils");(function(){var d=dojo,m=dojox.gfx.matrix,C=d.Color;function _191(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 d.blendColors(new C(prev.color),new C(stop.color),(o-prev.offset)/(stop.offset-prev.offset));}return stop.color;}}return c[len-1].color;};dojox.gfx.gradutils.getColor=function(fill,pt){var o;if(fill){switch(fill.type){case "linear":var _192=Math.atan2(fill.y2-fill.y1,fill.x2-fill.x1),_193=m.rotate(-_192),_194=m.project(fill.x2-fill.x1,fill.y2-fill.y1),p=m.multiplyPoint(_194,pt),pf1=m.multiplyPoint(_194,fill.x1,fill.y1),pf2=m.multiplyPoint(_194,fill.x2,fill.y2),_195=m.multiplyPoint(_193,pf2.x-pf1.x,pf2.y-pf1.y).x,o=m.multiplyPoint(_193,p.x-pf1.x,p.y-pf1.y).x/_195;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 _191(o,fill.colors);}return new C(fill||[0,0,0,0]);};dojox.gfx.gradutils.reverse=function(fill){if(fill){switch(fill.type){case "linear":case "radial":fill=dojo.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;};})();}if(!dojo._hasResource["dojox.charting.Theme"]){dojo._hasResource["dojox.charting.Theme"]=true;dojo.provide("dojox.charting.Theme");dojo.declare("dojox.charting.Theme",null,{shapeSpaces:{shape:1,shapeX:1,shapeY:1},constructor:function(_196){_196=_196||{};var def=dojox.charting.Theme.defaultTheme;dojo.forEach(["chart","plotarea","axis","series","marker"],function(name){this[name]=dojo.delegate(def[name],_196[name]);},this);if(_196.seriesThemes&&_196.seriesThemes.length){this.colors=null;this.seriesThemes=_196.seriesThemes.slice(0);}else{this.seriesThemes=null;this.colors=(_196.colors||dojox.charting.Theme.defaultColors).slice(0);}this.markerThemes=null;if(_196.markerThemes&&_196.markerThemes.length){this.markerThemes=_196.markerThemes.slice(0);}this.markers=dojo.delegate(dojox.charting.Theme.defaultMarkers,_196.markers);this.noGradConv=_196.noGradConv;this.noRadialConv=_196.noRadialConv;if(_196.reverseFills){this.reverseFills();}this._current=0;this._buildMarkerArray();},clone:function(){var _197=new dojox.charting.Theme({chart:this.chart,plotarea:this.plotarea,axis:this.axis,series:this.series,marker:this.marker,colors:this.colors,markers:this.markers,seriesThemes:this.seriesThemes,markerThemes:this.markerThemes,noGradConv:this.noGradConv,noRadialConv:this.noRadialConv});dojo.forEach(["clone","clear","next","skip","addMixin","post","getTick"],function(name){if(this.hasOwnProperty(name)){_197[name]=this[name];}},this);return _197;},clear:function(){this._current=0;},next:function(_198,_199,_19a){var _19b=dojox.lang.utils.merge,_19c,_19d;if(this.colors){_19c=dojo.delegate(this.series);_19d=dojo.delegate(this.marker);var _19e=new dojo.Color(this.colors[this._current%this.colors.length]),old;if(_19c.stroke&&_19c.stroke.color){_19c.stroke=dojo.delegate(_19c.stroke);old=new dojo.Color(_19c.stroke.color);_19c.stroke.color=new dojo.Color(_19e);_19c.stroke.color.a=old.a;}else{_19c.stroke={color:_19e};}if(_19d.stroke&&_19d.stroke.color){_19d.stroke=dojo.delegate(_19d.stroke);old=new dojo.Color(_19d.stroke.color);_19d.stroke.color=new dojo.Color(_19e);_19d.stroke.color.a=old.a;}else{_19d.stroke={color:_19e};}if(!_19c.fill||_19c.fill.type){_19c.fill=_19e;}else{old=new dojo.Color(_19c.fill);_19c.fill=new dojo.Color(_19e);_19c.fill.a=old.a;}if(!_19d.fill||_19d.fill.type){_19d.fill=_19e;}else{old=new dojo.Color(_19d.fill);_19d.fill=new dojo.Color(_19e);_19d.fill.a=old.a;}}else{_19c=this.seriesThemes?_19b(this.series,this.seriesThemes[this._current%this.seriesThemes.length]):this.series;_19d=this.markerThemes?_19b(this.marker,this.markerThemes[this._current%this.markerThemes.length]):_19c;}var _19f=_19d&&_19d.symbol||this._markers[this._current%this._markers.length];var _1a0={series:_19c,marker:_19d,symbol:_19f};++this._current;if(_199){_1a0=this.addMixin(_1a0,_198,_199);}if(_19a){_1a0=this.post(_1a0,_198);}return _1a0;},skip:function(){++this._current;},addMixin:function(_1a1,_1a2,_1a3,_1a4){if(dojo.isArray(_1a3)){dojo.forEach(_1a3,function(m){_1a1=this.addMixin(_1a1,_1a2,m);},this);}else{var t={};if("color" in _1a3){if(_1a2=="line"||_1a2=="area"){dojo.setObject("series.stroke.color",_1a3.color,t);dojo.setObject("marker.stroke.color",_1a3.color,t);}else{dojo.setObject("series.fill",_1a3.color,t);}}dojo.forEach(["stroke","outline","shadow","fill","font","fontColor"],function(name){var _1a5="marker"+name.charAt(0).toUpperCase()+name.substr(1),b=_1a5 in _1a3;if(name in _1a3){dojo.setObject("series."+name,_1a3[name],t);if(!b){dojo.setObject("marker."+name,_1a3[name],t);}}if(b){dojo.setObject("marker."+name,_1a3[_1a5],t);}});if("marker" in _1a3){t.symbol=_1a3.marker;}_1a1=dojox.lang.utils.merge(_1a1,t);}if(_1a4){_1a1=this.post(_1a1,_1a2);}return _1a1;},post:function(_1a6,_1a7){var fill=_1a6.series.fill,t;if(!this.noGradConv&&this.shapeSpaces[fill.space]&&fill.type=="linear"){if(_1a7=="bar"){t={x1:fill.y1,y1:fill.x1,x2:fill.y2,y2:fill.x2};}else{if(!this.noRadialConv&&fill.space=="shape"&&(_1a7=="slice"||_1a7=="circle")){t={type:"radial",cx:0,cy:0,r:100};}}if(t){return dojox.lang.utils.merge(_1a6,{series:{fill:t}});}}return _1a6;},getTick:function(name,_1a8){var tick=this.axis.tick,_1a9=name+"Tick";merge=dojox.lang.utils.merge;if(tick){if(this.axis[_1a9]){tick=merge(tick,this.axis[_1a9]);}}else{tick=this.axis[_1a9];}if(_1a8){if(tick){if(_1a8[_1a9]){tick=merge(tick,_1a8[_1a9]);}}else{tick=_1a8[_1a9];}}return tick;},inspectObjects:function(f){dojo.forEach(["chart","plotarea","axis","series","marker"],function(name){f(this[name]);},this);if(this.seriesThemes){dojo.forEach(this.seriesThemes,f);}if(this.markerThemes){dojo.forEach(this.markerThemes,f);}},reverseFills:function(){this.inspectObjects(function(o){if(o&&o.fill){o.fill=dojox.gfx.gradutils.reverse(o.fill);}});},addMarker:function(name,_1aa){this.markers[name]=_1aa;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]);}}});dojo.mixin(dojox.charting.Theme,{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},plotarea:{stroke:null,fill:"white"},axis:{stroke:{color:"#333",width:1},tick:{color:"#666",position:"center",font:"normal normal normal 7pt Tahoma",fontColor:"#333"},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"},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"}},defineColors:function(_1ab){_1ab=_1ab||{};var c=[],n=_1ab.num||5;if(_1ab.colors){var l=_1ab.colors.length;for(var i=0;i<n;i++){c.push(_1ab.colors[i%l]);}return c;}if(_1ab.hue){var s=_1ab.saturation||100;var st=_1ab.low||30;var end=_1ab.high||90;var l=(end+st)/2;return dojox.color.Palette.generate(dojox.color.fromHsv(_1ab.hue,s,l),"monochromatic").colors;}if(_1ab.generator){return dojox.color.Palette.generate(_1ab.base,_1ab.generator).colors;}return c;},generateGradient:function(_1ac,_1ad,_1ae){var fill=dojo.delegate(_1ac);fill.colors=[{offset:0,color:_1ad},{offset:1,color:_1ae}];return fill;},generateHslColor:function(_1af,_1b0){_1af=new dojox.color.Color(_1af);var hsl=_1af.toHsl(),_1b1=dojox.color.fromHsl(hsl.h,hsl.s,_1b0);_1b1.a=_1af.a;return _1b1;},generateHslGradient:function(_1b2,_1b3,_1b4,_1b5){_1b2=new dojox.color.Color(_1b2);var hsl=_1b2.toHsl(),_1b6=dojox.color.fromHsl(hsl.h,hsl.s,_1b4),_1b7=dojox.color.fromHsl(hsl.h,hsl.s,_1b5);_1b6.a=_1b7.a=_1b2.a;return dojox.charting.Theme.generateGradient(_1b3,_1b6,_1b7);}});}if(!dojo._hasResource["dojox.charting.Element"]){dojo._hasResource["dojox.charting.Element"]=true;dojo.provide("dojox.charting.Element");dojo.declare("dojox.charting.Element",null,{chart:null,group:null,htmlElements:null,dirty:true,constructor:function(_1b8){this.chart=_1b8;this.group=null;this.htmlElements=[];this.dirty=true;},createGroup:function(_1b9){if(!_1b9){_1b9=this.chart.surface;}if(!this.group){this.group=_1b9.createGroup();}return this;},purgeGroup:function(){this.destroyHtmlElements();if(this.group){this.group.clear();this.group.removeShape();this.group=null;}this.dirty=true;return this;},cleanGroup:function(_1ba){this.destroyHtmlElements();if(!_1ba){_1ba=this.chart.surface;}if(this.group){this.group.clear();}else{this.group=_1ba.createGroup();}this.dirty=true;return this;},destroyHtmlElements:function(){if(this.htmlElements.length){dojo.forEach(this.htmlElements,dojo.destroy);this.htmlElements=[];}},destroy:function(){this.purgeGroup();},_plotFill:function(fill,dim,_1bb){if(!fill||!fill.type||!fill.space){return fill;}var _1bc=fill.space;switch(fill.type){case "linear":if(_1bc==="plot"||_1bc==="shapeX"||_1bc==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient,fill);fill.space=_1bc;if(_1bc==="plot"||_1bc==="shapeX"){var span=dim.height-_1bb.t-_1bb.b;fill.y1=_1bb.t+span*fill.y1/100;fill.y2=_1bb.t+span*fill.y2/100;}if(_1bc==="plot"||_1bc==="shapeY"){var span=dim.width-_1bb.l-_1bb.r;fill.x1=_1bb.l+span*fill.x1/100;fill.x2=_1bb.l+span*fill.x2/100;}}break;case "radial":if(_1bc==="plot"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_1bc;var _1bd=dim.width-_1bb.l-_1bb.r,_1be=dim.height-_1bb.t-_1bb.b;fill.cx=_1bb.l+_1bd*fill.cx/100;fill.cy=_1bb.t+_1be*fill.cy/100;fill.r=fill.r*Math.sqrt(_1bd*_1bd+_1be*_1be)/200;}break;case "pattern":if(_1bc==="plot"||_1bc==="shapeX"||_1bc==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultPattern,fill);fill.space=_1bc;if(_1bc==="plot"||_1bc==="shapeX"){var span=dim.height-_1bb.t-_1bb.b;fill.y=_1bb.t+span*fill.y/100;fill.height=span*fill.height/100;}if(_1bc==="plot"||_1bc==="shapeY"){var span=dim.width-_1bb.l-_1bb.r;fill.x=_1bb.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 _1bf=fill.space;switch(fill.type){case "linear":if(_1bf==="shape"||_1bf==="shapeX"||_1bf==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient,fill);fill.space=_1bf;if(_1bf==="shape"||_1bf==="shapeX"){var span=bbox.width;fill.x1=bbox.x+span*fill.x1/100;fill.x2=bbox.x+span*fill.x2/100;}if(_1bf==="shape"||_1bf==="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(_1bf==="shape"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_1bf;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(_1bf==="shape"||_1bf==="shapeX"||_1bf==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultPattern,fill);fill.space=_1bf;if(_1bf==="shape"||_1bf==="shapeX"){var span=bbox.width;fill.x=bbox.x+span*fill.x/100;fill.width=span*fill.width/100;}if(_1bf==="shape"||_1bf==="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,_1c0,_1c1,_1c2,end){if(!fill||fill.type!=="radial"||fill.space!=="shape"){return fill;}var _1c3=fill.space;fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_1c3;if(arguments.length<4){fill.cx=_1c0.x;fill.cy=_1c0.y;fill.r=fill.r*_1c1/100;return fill;}var _1c4=arguments.length<5?_1c2:(end+_1c2)/2;return {type:"linear",x1:_1c0.x,y1:_1c0.y,x2:_1c0.x+fill.r*_1c1*Math.cos(_1c4)/100,y2:_1c0.y+fill.r*_1c1*Math.sin(_1c4)/100,colors:fill.colors};return fill;}});}if(!dojo._hasResource["dojox.charting.Series"]){dojo._hasResource["dojox.charting.Series"]=true;dojo.provide("dojox.charting.Series");dojo.declare("dojox.charting.Series",dojox.charting.Element,{constructor:function(_1c5,data,_1c6){dojo.mixin(this,_1c6);if(typeof this.plot!="string"){this.plot="default";}this.update(data);},clear:function(){this.dyn={};},update:function(data){if(dojo.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();}});}if(!dojo._hasResource["dojox.charting.scaler.common"]){dojo._hasResource["dojox.charting.scaler.common"]=true;dojo.provide("dojox.charting.scaler.common");(function(){var eq=function(a,b){return Math.abs(a-b)<=0.000001*(Math.abs(a)+Math.abs(b));};dojo.mixin(dojox.charting.scaler.common,{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(_1c7,_1c8,_1c9){var def=_1c9.fixed?_1c7.toFixed(_1c8<0?-_1c8:0):_1c7.toString();if(_1c9.labelFunc){var r=_1c9.labelFunc(def,_1c7,_1c8);if(r){return r;}}if(_1c9.labels){var l=_1c9.labels,lo=0,hi=l.length;while(lo<hi){var mid=Math.floor((lo+hi)/2),val=l[mid].value;if(val<_1c7){lo=mid+1;}else{hi=mid;}}if(lo<l.length&&eq(l[lo].value,_1c7)){return l[lo].text;}--lo;if(lo>=0&&lo<l.length&&eq(l[lo].value,_1c7)){return l[lo].text;}lo+=2;if(lo<l.length&&eq(l[lo].value,_1c7)){return l[lo].text;}}return def;}});})();}if(!dojo._hasResource["dojox.charting.scaler.linear"]){dojo._hasResource["dojox.charting.scaler.linear"]=true;dojo.provide("dojox.charting.scaler.linear");(function(){var _1ca=3,dc=dojox.charting,dcs=dc.scaler,dcsc=dcs.common,_1cb=dcsc.findString,_1cc=dcsc.getNumericLabel;var _1cd=function(min,max,_1ce,_1cf,_1d0,_1d1,span){_1ce=dojo.delegate(_1ce);if(!_1cf){if(_1ce.fixUpper=="major"){_1ce.fixUpper="minor";}if(_1ce.fixLower=="major"){_1ce.fixLower="minor";}}if(!_1d0){if(_1ce.fixUpper=="minor"){_1ce.fixUpper="micro";}if(_1ce.fixLower=="minor"){_1ce.fixLower="micro";}}if(!_1d1){if(_1ce.fixUpper=="micro"){_1ce.fixUpper="none";}if(_1ce.fixLower=="micro"){_1ce.fixLower="none";}}var _1d2=_1cb(_1ce.fixLower,["major"])?Math.floor(_1ce.min/_1cf)*_1cf:_1cb(_1ce.fixLower,["minor"])?Math.floor(_1ce.min/_1d0)*_1d0:_1cb(_1ce.fixLower,["micro"])?Math.floor(_1ce.min/_1d1)*_1d1:_1ce.min,_1d3=_1cb(_1ce.fixUpper,["major"])?Math.ceil(_1ce.max/_1cf)*_1cf:_1cb(_1ce.fixUpper,["minor"])?Math.ceil(_1ce.max/_1d0)*_1d0:_1cb(_1ce.fixUpper,["micro"])?Math.ceil(_1ce.max/_1d1)*_1d1:_1ce.max;if(_1ce.useMin){min=_1d2;}if(_1ce.useMax){max=_1d3;}var _1d4=(!_1cf||_1ce.useMin&&_1cb(_1ce.fixLower,["major"]))?min:Math.ceil(min/_1cf)*_1cf,_1d5=(!_1d0||_1ce.useMin&&_1cb(_1ce.fixLower,["major","minor"]))?min:Math.ceil(min/_1d0)*_1d0,_1d6=(!_1d1||_1ce.useMin&&_1cb(_1ce.fixLower,["major","minor","micro"]))?min:Math.ceil(min/_1d1)*_1d1,_1d7=!_1cf?0:(_1ce.useMax&&_1cb(_1ce.fixUpper,["major"])?Math.round((max-_1d4)/_1cf):Math.floor((max-_1d4)/_1cf))+1,_1d8=!_1d0?0:(_1ce.useMax&&_1cb(_1ce.fixUpper,["major","minor"])?Math.round((max-_1d5)/_1d0):Math.floor((max-_1d5)/_1d0))+1,_1d9=!_1d1?0:(_1ce.useMax&&_1cb(_1ce.fixUpper,["major","minor","micro"])?Math.round((max-_1d6)/_1d1):Math.floor((max-_1d6)/_1d1))+1,_1da=_1d0?Math.round(_1cf/_1d0):0,_1db=_1d1?Math.round(_1d0/_1d1):0,_1dc=_1cf?Math.floor(Math.log(_1cf)/Math.LN10):0,_1dd=_1d0?Math.floor(Math.log(_1d0)/Math.LN10):0,_1de=span/(max-min);if(!isFinite(_1de)){_1de=1;}return {bounds:{lower:_1d2,upper:_1d3,from:min,to:max,scale:_1de,span:span},major:{tick:_1cf,start:_1d4,count:_1d7,prec:_1dc},minor:{tick:_1d0,start:_1d5,count:_1d8,prec:_1dd},micro:{tick:_1d1,start:_1d6,count:_1d9,prec:0},minorPerMajor:_1da,microPerMinor:_1db,scaler:dcs.linear};};dojo.mixin(dojox.charting.scaler.linear,{buildScaler:function(min,max,span,_1df){var h={fixUpper:"none",fixLower:"none",natural:false};if(_1df){if("fixUpper" in _1df){h.fixUpper=String(_1df.fixUpper);}if("fixLower" in _1df){h.fixLower=String(_1df.fixLower);}if("natural" in _1df){h.natural=Boolean(_1df.natural);}}if("min" in _1df){min=_1df.min;}if("max" in _1df){max=_1df.max;}if(_1df.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 _1df){min=_1df.from;h.useMin=false;}if("to" in _1df){max=_1df.to;h.useMax=false;}if(max<=min){return _1cd(min,max,h,0,0,0,span);}var mag=Math.floor(Math.log(max-min)/Math.LN10),_1e0=_1df&&("majorTickStep" in _1df)?_1df.majorTickStep:Math.pow(10,mag),_1e1=0,_1e2=0,_1e3;if(_1df&&("minorTickStep" in _1df)){_1e1=_1df.minorTickStep;}else{do{_1e1=_1e0/10;if(!h.natural||_1e1>0.9){_1e3=_1cd(min,max,h,_1e0,_1e1,0,span);if(_1e3.bounds.scale*_1e3.minor.tick>_1ca){break;}}_1e1=_1e0/5;if(!h.natural||_1e1>0.9){_1e3=_1cd(min,max,h,_1e0,_1e1,0,span);if(_1e3.bounds.scale*_1e3.minor.tick>_1ca){break;}}_1e1=_1e0/2;if(!h.natural||_1e1>0.9){_1e3=_1cd(min,max,h,_1e0,_1e1,0,span);if(_1e3.bounds.scale*_1e3.minor.tick>_1ca){break;}}return _1cd(min,max,h,_1e0,0,0,span);}while(false);}if(_1df&&("microTickStep" in _1df)){_1e2=_1df.microTickStep;_1e3=_1cd(min,max,h,_1e0,_1e1,_1e2,span);}else{do{_1e2=_1e1/10;if(!h.natural||_1e2>0.9){_1e3=_1cd(min,max,h,_1e0,_1e1,_1e2,span);if(_1e3.bounds.scale*_1e3.micro.tick>_1ca){break;}}_1e2=_1e1/5;if(!h.natural||_1e2>0.9){_1e3=_1cd(min,max,h,_1e0,_1e1,_1e2,span);if(_1e3.bounds.scale*_1e3.micro.tick>_1ca){break;}}_1e2=_1e1/2;if(!h.natural||_1e2>0.9){_1e3=_1cd(min,max,h,_1e0,_1e1,_1e2,span);if(_1e3.bounds.scale*_1e3.micro.tick>_1ca){break;}}_1e2=0;}while(false);}return _1e2?_1e3:_1cd(min,max,h,_1e0,_1e1,0,span);},buildTicks:function(_1e4,_1e5){var step,next,tick,_1e6=_1e4.major.start,_1e7=_1e4.minor.start,_1e8=_1e4.micro.start;if(_1e5.microTicks&&_1e4.micro.tick){step=_1e4.micro.tick,next=_1e8;}else{if(_1e5.minorTicks&&_1e4.minor.tick){step=_1e4.minor.tick,next=_1e7;}else{if(_1e4.major.tick){step=_1e4.major.tick,next=_1e6;}else{return null;}}}var _1e9=1/_1e4.bounds.scale;if(_1e4.bounds.to<=_1e4.bounds.from||isNaN(_1e9)||!isFinite(_1e9)||step<=0||isNaN(step)||!isFinite(step)){return null;}var _1ea=[],_1eb=[],_1ec=[];while(next<=_1e4.bounds.to+_1e9){if(Math.abs(_1e6-next)<step/2){tick={value:_1e6};if(_1e5.majorLabels){tick.label=_1cc(_1e6,_1e4.major.prec,_1e5);}_1ea.push(tick);_1e6+=_1e4.major.tick;_1e7+=_1e4.minor.tick;_1e8+=_1e4.micro.tick;}else{if(Math.abs(_1e7-next)<step/2){if(_1e5.minorTicks){tick={value:_1e7};if(_1e5.minorLabels&&(_1e4.minMinorStep<=_1e4.minor.tick*_1e4.bounds.scale)){tick.label=_1cc(_1e7,_1e4.minor.prec,_1e5);}_1eb.push(tick);}_1e7+=_1e4.minor.tick;_1e8+=_1e4.micro.tick;}else{if(_1e5.microTicks){_1ec.push({value:_1e8});}_1e8+=_1e4.micro.tick;}}next+=step;}return {major:_1ea,minor:_1eb,micro:_1ec};},getTransformerFromModel:function(_1ed){var _1ee=_1ed.bounds.from,_1ef=_1ed.bounds.scale;return function(x){return (x-_1ee)*_1ef;};},getTransformerFromPlot:function(_1f0){var _1f1=_1f0.bounds.from,_1f2=_1f0.bounds.scale;return function(x){return x/_1f2+_1f1;};}});})();}if(!dojo._hasResource["dojox.charting.axis2d.common"]){dojo._hasResource["dojox.charting.axis2d.common"]=true;dojo.provide("dojox.charting.axis2d.common");(function(){var g=dojox.gfx;var _1f3=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 _1f4=function(n){if(n["getBoundingClientRect"]){var bcr=n.getBoundingClientRect();return bcr.width||(bcr.right-bcr.left);}else{return dojo.marginBox(n).w;}};dojo.mixin(dojox.charting.axis2d.common,{createText:{gfx:function(_1f5,_1f6,x,y,_1f7,text,font,_1f8){return _1f6.createText({x:x,y:y,text:text,align:_1f7}).setFont(font).setFill(_1f8);},html:function(_1f9,_1fa,x,y,_1fb,text,font,_1fc,_1fd){var p=dojo.doc.createElement("div"),s=p.style,_1fe;_1f3(s);s.font=font;p.innerHTML=String(text).replace(/\s/g,"&nbsp;");s.color=_1fc;s.position="absolute";s.left="-10000px";dojo.body().appendChild(p);var size=g.normalizedLength(g.splitFontString(font).size);if(!_1fd){_1fe=_1f4(p);}dojo.body().removeChild(p);s.position="relative";if(_1fd){s.width=_1fd+"px";switch(_1fb){case "middle":s.textAlign="center";s.left=(x-_1fd/2)+"px";break;case "end":s.textAlign="right";s.left=(x-_1fd)+"px";break;default:s.left=x+"px";s.textAlign="left";break;}}else{switch(_1fb){case "middle":s.left=Math.floor(x-_1fe/2)+"px";break;case "end":s.left=Math.floor(x-_1fe)+"px";break;default:s.left=Math.floor(x)+"px";break;}}s.top=Math.floor(y-size)+"px";s.whiteSpace="nowrap";var wrap=dojo.doc.createElement("div"),w=wrap.style;_1f3(w);w.width="0px";w.height="0px";wrap.appendChild(p);_1f9.node.insertBefore(wrap,_1f9.node.firstChild);return wrap;}}});})();}if(!dojo._hasResource["dojox.charting.axis2d.Base"]){dojo._hasResource["dojox.charting.axis2d.Base"]=true;dojo.provide("dojox.charting.axis2d.Base");dojo.declare("dojox.charting.axis2d.Base",dojox.charting.Element,{constructor:function(_1ff,_200){this.vertical=_200&&_200.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,_201){this.dirty=false;return this;}});}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");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(_202,map,_203,_204){_204=_204||dojo.global;_203=_203?dojo.hitch(_204,_203):function(v){return v;};return _202.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_205,key,_206){var _207=dojo.getObject(key,false,map);if(_206){_207=dojo.getObject(_206,false,_204).call(_204,_207,key);}return _203(_207,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.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;};}if(!dojo._hasResource["dojox.charting.axis2d.Invisible"]){dojo._hasResource["dojox.charting.axis2d.Invisible"]=true;dojo.provide("dojox.charting.axis2d.Invisible");(function(){var dc=dojox.charting,df=dojox.lang.functional,du=dojox.lang.utils,g=dojox.gfx,lin=dc.scaler.linear,_208=du.merge,_209=4,_20a=45;dojo.declare("dojox.charting.axis2d.Invisible",dojox.charting.axis2d.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},constructor:function(_20b,_20c){this.opt=dojo.delegate(this.defaultParams,_20c);du.updateWithPattern(this.opt,_20c,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(_20d,_20e){this.scale=_20d;this.offset=_20e;return this.clear();},getWindowScale:function(){return "scale" in this?this.scale:1;},getWindowOffset:function(){return "offset" in this?this.offset:0;},_groupLabelWidth:function(_20f,font){if(!_20f.length){return 0;}if(dojo.isObject(_20f[0])){_20f=df.map(_20f,function(_210){return _210.text;});}var s=_20f.join("<br>");return dojox.gfx._base._getTextBox(s,{font:font}).w||0;},calculate:function(min,max,span,_211){if(this.initialized()){return this;}var o=this.opt;this.labels="labels" in o?o.labels:_211;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,_212=0,_213=o.rotation%360,_214=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),size=_214?g.normalizedLength(g.splitFontString(_214).size):0,cosr=Math.abs(Math.cos(_213*Math.PI/180)),sinr=Math.abs(Math.sin(_213*Math.PI/180));if(_213<0){_213+=360;}if(size){if(this.vertical?_213!=0&&_213!=180:_213!=90&&_213!=270){if(o.maxLabelSize){_212=o.maxLabelSize;}else{if(this.labels){_212=this._groupLabelWidth(this.labels,_214);}else{var _215=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(dojo.string.rep("9",_215));var _216=Math.floor(Math.log(tsb.to-tsb.from)/Math.LN10);if(_216>0){t.push(".");t.push(dojo.string.rep("9",_216));}_212=dojox.gfx._base._getTextBox(t.join(""),{font:_214}).w;}}}else{_212=size;}switch(_213){case 0:case 90:case 180:case 270:break;default:var gap1=Math.sqrt(_212*_212+size*size),gap2=this.vertical?size*cosr+_212*sinr:_212*cosr+size*sinr;_212=Math.min(gap1,gap2);break;}}this.scaler.minMinorStep=_212+_209;this.ticks=lin.buildTicks(this.scaler,o);return this;},getScaler:function(){return this.scaler;},getTicks:function(){return this.ticks;}});})();}if(!dojo._hasResource["dojox.charting.axis2d.Default"]){dojo._hasResource["dojox.charting.axis2d.Default"]=true;dojo.provide("dojox.charting.axis2d.Default");(function(){var dc=dojox.charting,du=dojox.lang.utils,g=dojox.gfx,lin=dc.scaler.linear,_217=4,_218=45;dojo.declare("dojox.charting.axis2d.Default",dojox.charting.axis2d.Invisible,{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},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1,labels:[],labelFunc:null,maxLabelSize:0,stroke:{},majorTick:{},minorTick:{},microTick:{},tick:{},font:"",fontColor:""},constructor:function(_219,_21a){this.opt=dojo.delegate(this.defaultParams,_21a);du.updateWithPattern(this.opt,_21a,this.optionalParams);},getOffsets:function(){var s=this.scaler,_21b={l:0,r:0,t:0,b:0};if(!s){return _21b;}var o=this.opt,_21c=0,a,b,c,d,gl=dc.scaler.common.getNumericLabel,_21d=0,ma=s.major,mi=s.minor,ta=this.chart.theme.axis,_21e=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_21f=this.chart.theme.getTick("major",o),_220=this.chart.theme.getTick("minor",o),size=_21e?g.normalizedLength(g.splitFontString(_21e).size):0,_221=o.rotation%360,_222=o.leftBottom,cosr=Math.abs(Math.cos(_221*Math.PI/180)),sinr=Math.abs(Math.sin(_221*Math.PI/180));if(_221<0){_221+=360;}if(size){if(o.maxLabelSize){_21c=o.maxLabelSize;}else{if(this.labels){_21c=this._groupLabelWidth(this.labels,_21e);}else{_21c=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)],_21e);}}if(this.vertical){var side=_222?"l":"r";switch(_221){case 0:case 180:_21b[side]=_21c;_21b.t=_21b.b=size/2;break;case 90:case 270:_21b[side]=size;_21b.t=_21b.b=_21c/2;break;default:if(_221<=_218||(180<_221&&_221<=(180+_218))){_21b[side]=size*sinr/2+_21c*cosr;_21b[_222?"t":"b"]=size*cosr/2+_21c*sinr;_21b[_222?"b":"t"]=size*cosr/2;}else{if(_221>(360-_218)||(180>_221&&_221>(180-_218))){_21b[side]=size*sinr/2+_21c*cosr;_21b[_222?"b":"t"]=size*cosr/2+_21c*sinr;_21b[_222?"t":"b"]=size*cosr/2;}else{if(_221<90||(180<_221&&_221<270)){_21b[side]=size*sinr+_21c*cosr;_21b[_222?"t":"b"]=size*cosr+_21c*sinr;}else{_21b[side]=size*sinr+_21c*cosr;_21b[_222?"b":"t"]=size*cosr+_21c*sinr;}}}break;}_21b[side]+=_217+Math.max(_21f.length,_220.length);}else{var side=_222?"b":"t";switch(_221){case 0:case 180:_21b[side]=size;_21b.l=_21b.r=_21c/2;break;case 90:case 270:_21b[side]=_21c;_21b.l=_21b.r=size/2;break;default:if((90-_218)<=_221&&_221<=90||(270-_218)<=_221&&_221<=270){_21b[side]=size*sinr/2+_21c*cosr;_21b[_222?"r":"l"]=size*cosr/2+_21c*sinr;_21b[_222?"l":"r"]=size*cosr/2;}else{if(90<=_221&&_221<=(90+_218)||270<=_221&&_221<=(270+_218)){_21b[side]=size*sinr/2+_21c*cosr;_21b[_222?"l":"r"]=size*cosr/2+_21c*sinr;_21b[_222?"r":"l"]=size*cosr/2;}else{if(_221<_218||(180<_221&&_221<(180-_218))){_21b[side]=size*sinr+_21c*cosr;_21b[_222?"r":"l"]=size*cosr+_21c*sinr;}else{_21b[side]=size*sinr+_21c*cosr;_21b[_222?"l":"r"]=size*cosr+_21c*sinr;}}}break;}_21b[side]+=_217+Math.max(_21f.length,_220.length);}}if(_21c){this._cachedLabelWidth=_21c;}return _21b;},render:function(dim,_223){if(!this.dirty){return this;}var o=this.opt,ta=this.chart.theme.axis,_224=o.leftBottom,_225=o.rotation%360,_226,stop,_227,_228,_229,_22a,_22b,_22c=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_22d=o.fontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"black",_22e=this.chart.theme.getTick("major",o),_22f=this.chart.theme.getTick("minor",o),_230=this.chart.theme.getTick("micro",o),_231=Math.max(_22e.length,_22f.length,_230.length),_232="stroke" in o?o.stroke:ta.stroke,size=_22c?g.normalizedLength(g.splitFontString(_22c).size):0;if(_225<0){_225+=360;}if(this.vertical){_226={y:dim.height-_223.b};stop={y:_223.t};_227={x:0,y:-1};_22a={x:0,y:0};_228={x:1,y:0};_229={x:_217,y:0};switch(_225){case 0:_22b="end";_22a.y=size*0.4;break;case 90:_22b="middle";_22a.x=-size;break;case 180:_22b="start";_22a.y=-size*0.4;break;case 270:_22b="middle";break;default:if(_225<_218){_22b="end";_22a.y=size*0.4;}else{if(_225<90){_22b="end";_22a.y=size*0.4;}else{if(_225<(180-_218)){_22b="start";}else{if(_225<(180+_218)){_22b="start";_22a.y=-size*0.4;}else{if(_225<270){_22b="start";_22a.x=_224?0:size*0.4;}else{if(_225<(360-_218)){_22b="end";_22a.x=_224?0:size*0.4;}else{_22b="end";_22a.y=size*0.4;}}}}}}}if(_224){_226.x=stop.x=_223.l;_228.x=-1;_229.x=-_229.x;}else{_226.x=stop.x=dim.width-_223.r;switch(_22b){case "start":_22b="end";break;case "end":_22b="start";break;case "middle":_22a.x+=size;break;}}}else{_226={x:_223.l};stop={x:dim.width-_223.r};_227={x:1,y:0};_22a={x:0,y:0};_228={x:0,y:1};_229={x:0,y:_217};switch(_225){case 0:_22b="middle";_22a.y=size;break;case 90:_22b="start";_22a.x=-size*0.4;break;case 180:_22b="middle";break;case 270:_22b="end";_22a.x=size*0.4;break;default:if(_225<(90-_218)){_22b="start";_22a.y=_224?size:0;}else{if(_225<(90+_218)){_22b="start";_22a.x=-size*0.4;}else{if(_225<180){_22b="start";_22a.y=_224?0:-size;}else{if(_225<(270-_218)){_22b="end";_22a.y=_224?0:-size;}else{if(_225<(270+_218)){_22b="end";_22a.y=_224?size*0.4:0;}else{_22b="end";_22a.y=_224?size:0;}}}}}}if(_224){_226.y=stop.y=dim.height-_223.b;}else{_226.y=stop.y=_223.t;_228.y=-1;_229.y=-_229.y;switch(_22b){case "start":_22b="end";break;case "end":_22b="start";break;case "middle":_22a.y-=size;break;}}}this.cleanGroup();try{var s=this.group,c=this.scaler,t=this.ticks,_233,f=lin.getTransformerFromModel(this.scaler),_234=(dojox.gfx.renderer=="canvas"),_235=_234||!_225&&this.opt.htmlLabels&&!dojo.isIE&&!dojo.isOpera?"html":"gfx",dx=_228.x*_22e.length,dy=_228.y*_22e.length;s.createLine({x1:_226.x,y1:_226.y,x2:stop.x,y2:stop.y}).setStroke(_232);dojo.forEach(t.major,function(tick){var _236=f(tick.value),elem,x=_226.x+_227.x*_236,y=_226.y+_227.y*_236;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_22e);if(tick.label){elem=dc.axis2d.common.createText[_235](this.chart,s,x+dx+_229.x+(_225?0:_22a.x),y+dy+_229.y+(_225?0:_22a.y),_22b,tick.label,_22c,_22d);if(_235=="html"){this.htmlElements.push(elem);}else{if(_225){elem.setTransform([{dx:_22a.x,dy:_22a.y},g.matrix.rotategAt(_225,x+dx+_229.x,y+dy+_229.y)]);}}}},this);dx=_228.x*_22f.length;dy=_228.y*_22f.length;_233=c.minMinorStep<=c.minor.tick*c.bounds.scale;dojo.forEach(t.minor,function(tick){var _237=f(tick.value),elem,x=_226.x+_227.x*_237,y=_226.y+_227.y*_237;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_22f);if(_233&&tick.label){elem=dc.axis2d.common.createText[_235](this.chart,s,x+dx+_229.x+(_225?0:_22a.x),y+dy+_229.y+(_225?0:_22a.y),_22b,tick.label,_22c,_22d);if(_235=="html"){this.htmlElements.push(elem);}else{if(_225){elem.setTransform([{dx:_22a.x,dy:_22a.y},g.matrix.rotategAt(_225,x+dx+_229.x,y+dy+_229.y)]);}}}},this);dx=_228.x*_230.length;dy=_228.y*_230.length;dojo.forEach(t.micro,function(tick){var _238=f(tick.value),elem,x=_226.x+_227.x*_238,y=_226.y+_227.y*_238;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_230);},this);}catch(e){}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.common"]){dojo._hasResource["dojox.charting.plot2d.common"]=true;dojo.provide("dojox.charting.plot2d.common");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common;dojo.mixin(dojox.charting.plot2d.common,{makeStroke:function(_239){if(!_239){return _239;}if(typeof _239=="string"||_239 instanceof dojo.Color){_239={color:_239};}return dojox.gfx.makeParameters(dojox.gfx.defaultStroke,_239);},augmentColor:function(_23a,_23b){var t=new dojo.Color(_23a),c=new dojo.Color(_23b);c.a=t.a;return c;},augmentStroke:function(_23c,_23d){var s=dc.makeStroke(_23c);if(s){s.color=dc.augmentColor(s.color,_23d);}return s;},augmentFill:function(fill,_23e){var fc,c=new dojo.Color(_23e);if(typeof fill=="string"||fill instanceof dojo.Color){return dc.augmentColor(fill,_23e);}return fill;},defaultStats:{hmin:Number.POSITIVE_INFINITY,hmax:Number.NEGATIVE_INFINITY,vmin:Number.POSITIVE_INFINITY,vmax:Number.NEGATIVE_INFINITY},collectSimpleStats:function(_23f){var _240=dojo.delegate(dc.defaultStats);for(var i=0;i<_23f.length;++i){var run=_23f[i];for(var j=0;j<run.data.length;j++){if(run.data[j]!==null){if(typeof run.data[j]=="number"){var _241=_240.vmin,_242=_240.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,i){if(val!==null){var x=i+1,y=val;if(isNaN(y)){y=0;}_240.hmin=Math.min(_240.hmin,x);_240.hmax=Math.max(_240.hmax,x);_240.vmin=Math.min(_240.vmin,y);_240.vmax=Math.max(_240.vmax,y);}});}if("ymin" in run){_240.vmin=Math.min(_241,run.ymin);}if("ymax" in run){_240.vmax=Math.max(_242,run.ymax);}}else{var _243=_240.hmin,_244=_240.hmax,_241=_240.vmin,_242=_240.vmax;if(!("xmin" in run)||!("xmax" in run)||!("ymin" in run)||!("ymax" in run)){dojo.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;}_240.hmin=Math.min(_240.hmin,x);_240.hmax=Math.max(_240.hmax,x);_240.vmin=Math.min(_240.vmin,y);_240.vmax=Math.max(_240.vmax,y);}});}if("xmin" in run){_240.hmin=Math.min(_243,run.xmin);}if("xmax" in run){_240.hmax=Math.max(_244,run.xmax);}if("ymin" in run){_240.vmin=Math.min(_241,run.ymin);}if("ymax" in run){_240.vmax=Math.max(_242,run.ymax);}}break;}}}return _240;},calculateBarSize:function(_245,opt,_246){if(!_246){_246=1;}var gap=opt.gap,size=(_245-2*gap)/_246;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=(_245-size*_246)/2;return {size:size,gap:gap};},collectStackedStats:function(_247){var _248=dojo.clone(dc.defaultStats);if(_247.length){_248.hmin=Math.min(_248.hmin,1);_248.hmax=df.foldl(_247,"seed, run -> Math.max(seed, run.data.length)",_248.hmax);for(var i=0;i<_248.hmax;++i){var v=_247[0].data[i];if(isNaN(v)){v=0;}_248.vmin=Math.min(_248.vmin,v);for(var j=1;j<_247.length;++j){var t=_247[j].data[i];if(isNaN(t)){t=0;}v+=t;}_248.vmax=Math.max(_248.vmax,v);}}return _248;},curve:function(a,_249){var arr=a.slice(0);if(_249=="x"){arr[arr.length]=arr[0];}var p=dojo.map(arr,function(item,i){if(i==0){return "M"+item.x+","+item.y;}if(!isNaN(_249)){var dx=item.x-arr[i-1].x,dy=arr[i-1].y;return "C"+(item.x-(_249-1)*(dx/_249))+","+dy+" "+(item.x-(dx/_249))+","+item.y+" "+item.x+","+item.y;}else{if(_249=="X"||_249=="x"||_249=="S"){var p0,p1=arr[i-1],p2=arr[i],p3;var bz1x,bz1y,bz2x,bz2y;var f=1/6;if(i==1){if(_249=="x"){p0=arr[arr.length-2];}else{p0=p1;}f=1/3;}else{p0=arr[i-2];}if(i==(arr.length-1)){if(_249=="x"){p3=arr[1];}else{p3=p2;}f=1/3;}else{p3=arr[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 _24a=p0p2*f;var _24b=p1p3*f;if(_24a>p1p2/2&&_24b>p1p2/2){_24a=p1p2/2;_24b=p1p2/2;}else{if(_24a>p1p2/2){_24a=p1p2/2;_24b=p1p2/2*p1p3/p0p2;}else{if(_24b>p1p2/2){_24b=p1p2/2;_24a=p1p2/2*p0p2/p1p3;}}}if(_249=="S"){if(p0==p1){_24a=0;}if(p2==p3){_24b=0;}}bz1x=p1.x+_24a*(p2.x-p0.x)/p0p2;bz1y=p1.y+_24a*(p2.y-p0.y)/p0p2;bz2x=p2.x-_24b*(p3.x-p1.x)/p1p3;bz2y=p2.y-_24b*(p3.y-p1.y)/p1p3;}}return "C"+(bz1x+","+bz1y+" "+bz2x+","+bz2y+" "+p2.x+","+p2.y);});return p.join(" ");}});})();}if(!dojo._hasResource["dojox.charting.scaler.primitive"]){dojo._hasResource["dojox.charting.scaler.primitive"]=true;dojo.provide("dojox.charting.scaler.primitive");dojox.charting.scaler.primitive={buildScaler:function(min,max,span,_24c){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:dojox.charting.scaler.primitive};},buildTicks:function(_24d,_24e){return {major:[],minor:[],micro:[]};},getTransformerFromModel:function(_24f){var _250=_24f.bounds.from,_251=_24f.bounds.scale;return function(x){return (x-_250)*_251;};},getTransformerFromPlot:function(_252){var _253=_252.bounds.from,_254=_252.bounds.scale;return function(x){return x/_254+_253;};}};}if(!dojo._hasResource["dojox.charting.plot2d._PlotEvents"]){dojo._hasResource["dojox.charting.plot2d._PlotEvents"]=true;dojo.provide("dojox.charting.plot2d._PlotEvents");dojo.declare("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=dojo.delegate(o);t.originalEvent=o.type;t.originalPlot=o.plot;t.type="onindirect";dojo.forEach(this.chart.stack,function(plot){if(plot!==this&&plot.plotEvent){t.plot=plot;plot.plotEvent(t);}},this);},connect:function(_255,_256){this.dirty=true;return dojo.connect(this,"plotEvent",_255,_256);},events:function(){var ls=this.plotEvent._listeners;if(!ls||!ls.length){return false;}for(var i in ls){if(!(i in Array.prototype)){return true;}}return false;},resetEvents:function(){if(this._shapeEvents.length){dojo.forEach(this._shapeEvents,function(item){item.shape.disconnect(item.handle);});this._shapeEvents=[];}this.raiseEvent({type:"onplotreset",plot:this});},_connectSingleEvent:function(o,_257){this._shapeEvents.push({shape:o.eventMask,handle:o.eventMask.connect(_257,this,function(e){o.type=_257;o.event=e;this.raiseEvent(o);o.event=null;})});},_connectEvents:function(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(_258){var a=this._eventSeries[_258];if(a){dojo.forEach(a,this._connectEvents,this);}},fireEvent:function(_259,_25a,_25b,_25c){var s=this._eventSeries[_259];if(s&&s.length&&_25b<s.length){var o=s[_25b];o.type=_25a;o.event=_25c||null;this.raiseEvent(o);o.event=null;}}});}if(!dojo._hasResource["dojox.charting.plot2d.Base"]){dojo._hasResource["dojox.charting.plot2d.Base"]=true;dojo.provide("dojox.charting.plot2d.Base");dojo.declare("dojox.charting.plot2d.Base",[dojox.charting.Element,dojox.charting.plot2d._PlotEvents],{constructor:function(_25d,_25e){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;},addSeries:function(run){this.series.push(run);return this;},getSeriesStats:function(){return dojox.charting.plot2d.common.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 dojo.some(this.series,function(item){return item.dirty;});},performZoom:function(dim,_25f){var vs=this._vAxis.scale||1,hs=this._hAxis.scale||1,_260=dim.height-_25f.b,_261=this._hScaler.bounds,_262=(_261.from-_261.lower)*_261.scale,_263=this._vScaler.bounds,_264=(_263.from-_263.lower)*_263.scale;rVScale=vs/this.lastWindow.vscale,rHScale=hs/this.lastWindow.hscale,rXOffset=(this.lastWindow.xoffset-_262)/((this.lastWindow.hscale==1)?hs:this.lastWindow.hscale),rYOffset=(_264-this.lastWindow.yoffset)/((this.lastWindow.vscale==1)?vs:this.lastWindow.vscale),shape=this.group,anim=dojox.gfx.fx.animateTransform(dojo.delegate({shape:shape,duration:1200,transform:[{name:"translate",start:[0,0],end:[_25f.l*(1-rHScale),_260*(1-rVScale)]},{name:"scale",start:[1,1],end:[rHScale,rVScale]},{name:"original"},{name:"translate",start:[0,0],end:[rXOffset,rYOffset]}]},this.zoom));dojo.mixin(this.lastWindow,{vscale:vs,hscale:hs,xoffset:_262,yoffset:_264});this.zoomQueue.push(anim);dojo.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,_265){return this;},getRequiredColors:function(){return this.series.length;},initializeScalers:function(dim,_266){if(this._hAxis){if(!this._hAxis.initialized()){this._hAxis.calculate(_266.hmin,_266.hmax,dim.width);}this._hScaler=this._hAxis.getScaler();}else{this._hScaler=dojox.charting.scaler.primitive.buildScaler(_266.hmin,_266.hmax,dim.width);}if(this._vAxis){if(!this._vAxis.initialized()){this._vAxis.calculate(_266.vmin,_266.vmax,dim.height);}this._vScaler=this._vAxis.getScaler();}else{this._vScaler=dojox.charting.scaler.primitive.buildScaler(_266.vmin,_266.vmax,dim.height);}return this;}});}if(!dojo._hasResource["dojox.gfx.fx"]){dojo._hasResource["dojox.gfx.fx"]=true;dojo.provide("dojox.gfx.fx");(function(){var d=dojo,g=dojox.gfx,m=g.matrix;var _267=function(_268,end){this.start=_268,this.end=end;};d.extend(_267,{getValue:function(r){return (this.end-this.start)*r+this.start;}});var _269=function(_26a,end,_26b){this.start=_26a,this.end=end;this.units=_26b;};d.extend(_269,{getValue:function(r){return (this.end-this.start)*r+this.start+this.units;}});var _26c=function(_26d,end){this.start=_26d,this.end=end;this.temp=new dojo.Color();};d.extend(_26c,{getValue:function(r){return d.blendColors(this.start,this.end,r,this.temp);}});var _26e=function(_26f){this.values=_26f;this.length=_26f.length;};d.extend(_26e,{getValue:function(r){return this.values[Math.min(Math.floor(r*this.length),this.length-1)];}});var _270=function(_271,def){this.values=_271;this.def=def?def:{};};d.extend(_270,{getValue:function(r){var ret=dojo.clone(this.def);for(var i in this.values){ret[i]=this.values[i].getValue(r);}return ret;}});var _272=function(_273,_274){this.stack=_273;this.original=_274;};d.extend(_272,{getValue:function(r){var ret=[];dojo.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=dojo.map(t.start,function(v,i){return (t.end[i]-v)*r+v;}),_275=f.apply(m,val);if(_275 instanceof m.Matrix2D){ret.push(_275);}},this);return ret;}});var _276=new d.Color(0,0,0,0);var _277=function(prop,obj,name,def){if(prop.values){return new _26e(prop.values);}var _278,_279,end;if(prop.start){_279=g.normalizeColor(prop.start);}else{_279=_278=obj?(name?obj[name]:obj):def;}if(prop.end){end=g.normalizeColor(prop.end);}else{if(!_278){_278=obj?(name?obj[name]:obj):def;}end=_278;}return new _26c(_279,end);};var _27a=function(prop,obj,name,def){if(prop.values){return new _26e(prop.values);}var _27b,_27c,end;if(prop.start){_27c=prop.start;}else{_27c=_27b=obj?obj[name]:def;}if(prop.end){end=prop.end;}else{if(typeof _27b!="number"){_27b=obj?obj[name]:def;}end=_27b;}return new _267(_27c,end);};g.fx.animateStroke=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_27d=args.shape,_27e;d.connect(anim,"beforeBegin",anim,function(){_27e=_27d.getStroke();var prop=args.color,_27f={},_280,_281,end;if(prop){_27f.color=_277(prop,_27e,"color",_276);}prop=args.style;if(prop&&prop.values){_27f.style=new _26e(prop.values);}prop=args.width;if(prop){_27f.width=_27a(prop,_27e,"width",1);}prop=args.cap;if(prop&&prop.values){_27f.cap=new _26e(prop.values);}prop=args.join;if(prop){if(prop.values){_27f.join=new _26e(prop.values);}else{_281=prop.start?prop.start:(_27e&&_27e.join||0);end=prop.end?prop.end:(_27e&&_27e.join||0);if(typeof _281=="number"&&typeof end=="number"){_27f.join=new _267(_281,end);}}}this.curve=new _270(_27f,_27e);});d.connect(anim,"onAnimate",_27d,"setStroke");return anim;};g.fx.animateFill=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_282=args.shape,fill;d.connect(anim,"beforeBegin",anim,function(){fill=_282.getFill();var prop=args.color,_283={};if(prop){this.curve=_277(prop,fill,"",_276);}});d.connect(anim,"onAnimate",_282,"setFill");return anim;};g.fx.animateFont=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_284=args.shape,font;d.connect(anim,"beforeBegin",anim,function(){font=_284.getFont();var prop=args.style,_285={},_286,_287,end;if(prop&&prop.values){_285.style=new _26e(prop.values);}prop=args.variant;if(prop&&prop.values){_285.variant=new _26e(prop.values);}prop=args.weight;if(prop&&prop.values){_285.weight=new _26e(prop.values);}prop=args.family;if(prop&&prop.values){_285.family=new _26e(prop.values);}prop=args.size;if(prop&&prop.units){_287=parseFloat(prop.start?prop.start:(_284.font&&_284.font.size||"0"));end=parseFloat(prop.end?prop.end:(_284.font&&_284.font.size||"0"));_285.size=new _269(_287,end,prop.units);}this.curve=new _270(_285,font);});d.connect(anim,"onAnimate",_284,"setFont");return anim;};g.fx.animateTransform=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_288=args.shape,_289;d.connect(anim,"beforeBegin",anim,function(){_289=_288.getTransform();this.curve=new _272(args.transform,_289);});d.connect(anim,"onAnimate",_288,"setTransform");return anim;};})();}if(!dojo._hasResource["dojox.charting.plot2d.Default"]){dojo._hasResource["dojox.charting.plot2d.Default"]=true;dojo.provide("dojox.charting.plot2d.Default");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_28a=df.lambda("item.purgeGroup()");var _28b=1200;dojo.declare("dojox.charting.plot2d.Default",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",lines:true,areas:false,markers:false,tension:"",animate:false},optionalParams:{stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:"",markerStroke:{},markerOutline:{},markerShadow:{},markerFill:{},markerFont:"",markerFontColor:""},constructor:function(_28c,_28d){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_28d);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_28e){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_28e);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_28a);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,_28f,_290,_291,_292=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 _293=t.next(this.opt.areas?"area":"line",[this.opt,run],true),s=run.group,_294=[],_295=[],rseg=null,_296,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_297=this._eventSeries[run.name]=new Array(run.data.length);for(var j=0;j<run.data.length;j++){if(run.data[j]!=null){if(!rseg){rseg=[];_295.push(j);_294.push(rseg);}rseg.push(run.data[j]);}else{rseg=null;}}for(var seg=0;seg<_294.length;seg++){if(typeof _294[seg][0]=="number"){_296=dojo.map(_294[seg],function(v,i){return {x:ht(i+_295[seg]+1)+_28e.l,y:dim.height-_28e.b-vt(v)};},this);}else{_296=dojo.map(_294[seg],function(v,i){return {x:ht(v.x)+_28e.l,y:dim.height-_28e.b-vt(v.y)};},this);}var _298=this.opt.tension?dc.curve(_296,this.opt.tension):"";if(this.opt.areas&&_296.length>1){var fill=_293.series.fill;var _299=dojo.clone(_296);if(this.opt.tension){var _29a="L"+_299[_299.length-1].x+","+(dim.height-_28e.b)+" L"+_299[0].x+","+(dim.height-_28e.b)+" L"+_299[0].x+","+_299[0].y;run.dyn.fill=s.createPath(_298+" "+_29a).setFill(fill).getFill();}else{_299.push({x:_296[_296.length-1].x,y:dim.height-_28e.b});_299.push({x:_296[0].x,y:dim.height-_28e.b});_299.push(_296[0]);run.dyn.fill=s.createPolyline(_299).setFill(fill).getFill();}}if(this.opt.lines||this.opt.markers){_28f=_293.series.stroke;if(_293.series.outline){_290=run.dyn.outline=dc.makeStroke(_293.series.outline);_290.width=2*_290.width+_28f.width;}}if(this.opt.markers){run.dyn.marker=_293.symbol;}var _29b=null,_29c=null,_29d=null;if(_28f&&_293.series.shadow&&_296.length>1){var _29e=_293.series.shadow,_29f=dojo.map(_296,function(c){return {x:c.x+_29e.dx,y:c.y+_29e.dy};});if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_29f,this.opt.tension)).setStroke(_29e).getStroke();}else{run.dyn.shadow=s.createPolyline(_29f).setStroke(_29e).getStroke();}}if(this.opt.markers&&_293.marker.shadow){_29e=_293.marker.shadow;_29d=dojo.map(_29f,function(c){return s.createPath("M"+c.x+" "+c.y+" "+_293.symbol).setStroke(_29e).setFill(_29e.color);},this);}}if(this.opt.lines&&_296.length>1){if(_290){if(this.opt.tension){run.dyn.outline=s.createPath(_298).setStroke(_290).getStroke();}else{run.dyn.outline=s.createPolyline(_296).setStroke(_290).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_298).setStroke(_28f).getStroke();}else{run.dyn.stroke=s.createPolyline(_296).setStroke(_28f).getStroke();}}if(this.opt.markers){_29b=new Array(_296.length);_29c=new Array(_296.length);_290=null;if(_293.marker.outline){_290=dc.makeStroke(_293.marker.outline);_290.width=2*_290.width+(_293.marker.stroke?_293.marker.stroke.width:0);}dojo.forEach(_296,function(c,i){var path="M"+c.x+" "+c.y+" "+_293.symbol;if(_290){_29c[i]=s.createPath(path).setStroke(_290);}_29b[i]=s.createPath(path).setStroke(_293.marker.stroke).setFill(_293.marker.fill);},this);if(_292){dojo.forEach(_29b,function(s,i){var o={element:"marker",index:i+_295[seg],run:run,shape:s,outline:_29c[i]||null,shadow:_29d&&_29d[i]||null,cx:_296[i].x,cy:_296[i].y};if(typeof _294[seg][0]=="number"){o.x=i+_295[seg]+1;o.y=_294[seg][i];}else{o.x=_294[seg][i].x;o.y=_294[seg][i].y;}this._connectEvents(o);_297[i+_295[seg]]=o;},this);}else{delete this._eventSeries[run.name];}}}run.dirty=false;}if(this.animate){var _2a0=this.group;dojox.gfx.fx.animateTransform(dojo.delegate({shape:_2a0,duration:_28b,transform:[{name:"translate",start:[0,dim.height-_28e.b],end:[0,0]},{name:"scale",start:[1,0],end:[1,1]},{name:"original"}]},this.animate)).play();}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Lines"]){dojo._hasResource["dojox.charting.plot2d.Lines"]=true;dojo.provide("dojox.charting.plot2d.Lines");dojo.declare("dojox.charting.plot2d.Lines",dojox.charting.plot2d.Default,{constructor:function(){this.opt.lines=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Areas"]){dojo._hasResource["dojox.charting.plot2d.Areas"]=true;dojo.provide("dojox.charting.plot2d.Areas");dojo.declare("dojox.charting.plot2d.Areas",dojox.charting.plot2d.Default,{constructor:function(){this.opt.lines=true;this.opt.areas=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Markers"]){dojo._hasResource["dojox.charting.plot2d.Markers"]=true;dojo.provide("dojox.charting.plot2d.Markers");dojo.declare("dojox.charting.plot2d.Markers",dojox.charting.plot2d.Default,{constructor:function(){this.opt.markers=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.MarkersOnly"]){dojo._hasResource["dojox.charting.plot2d.MarkersOnly"]=true;dojo.provide("dojox.charting.plot2d.MarkersOnly");dojo.declare("dojox.charting.plot2d.MarkersOnly",dojox.charting.plot2d.Default,{constructor:function(){this.opt.lines=false;this.opt.markers=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Scatter"]){dojo._hasResource["dojox.charting.plot2d.Scatter"]=true;dojo.provide("dojox.charting.plot2d.Scatter");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_2a1=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Scatter",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",shadows:null,animate:null},optionalParams:{markerStroke:{},markerOutline:{},markerShadow:{},markerFill:{},markerFont:"",markerFontColor:""},constructor:function(_2a2,_2a3){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_2a3);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_2a4){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_2a4);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_2a1);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_2a5=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 _2a6=t.next("marker",[this.opt,run]),s=run.group,_2a7,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler);if(typeof run.data[0]=="number"){_2a7=dojo.map(run.data,function(v,i){return {x:ht(i+1)+_2a4.l,y:dim.height-_2a4.b-vt(v)};},this);}else{_2a7=dojo.map(run.data,function(v,i){return {x:ht(v.x)+_2a4.l,y:dim.height-_2a4.b-vt(v.y)};},this);}var _2a8=new Array(_2a7.length),_2a9=new Array(_2a7.length),_2aa=new Array(_2a7.length);dojo.forEach(_2a7,function(c,i){var _2ab=typeof run.data[i]=="number"?t.post(_2a6,"marker"):t.addMixin(_2a6,"marker",run.data[i],true),path="M"+c.x+" "+c.y+" "+_2ab.symbol;if(_2ab.marker.shadow){_2a8[i]=s.createPath("M"+(c.x+_2ab.marker.shadow.dx)+" "+(c.y+_2ab.marker.shadow.dy)+" "+_2ab.symbol).setStroke(_2ab.marker.shadow).setFill(_2ab.marker.shadow.color);if(this.animate){this._animateScatter(_2a8[i],dim.height-_2a4.b);}}if(_2ab.marker.outline){var _2ac=dc.makeStroke(_2ab.marker.outline);_2ac.width=2*_2ac.width+_2ab.marker.stroke.width;_2aa[i]=s.createPath(path).setStroke(_2ac);if(this.animate){this._animateScatter(_2aa[i],dim.height-_2a4.b);}}var _2ad=dc.makeStroke(_2ab.marker.stroke),fill=this._plotFill(_2ab.marker.fill,dim,_2a4);if(fill&&(fill.type==="linear"||fill.type=="radial")){var _2ae=dojox.gfx.gradutils.getColor(fill,{x:c.x,y:c.y});if(_2ad){_2ad.color=_2ae;}_2a9[i]=s.createPath(path).setStroke(_2ad).setFill(_2ae);}else{_2a9[i]=s.createPath(path).setStroke(_2ad).setFill(fill);}if(this.animate){this._animateScatter(_2a9[i],dim.height-_2a4.b);}},this);if(_2a9.length){run.dyn.stroke=_2a9[_2a9.length-1].getStroke();run.dyn.fill=_2a9[_2a9.length-1].getFill();}if(_2a5){var _2af=new Array(_2a9.length);dojo.forEach(_2a9,function(s,i){var o={element:"marker",index:i,run:run,shape:s,outline:_2aa&&_2aa[i]||null,shadow:_2a8&&_2a8[i]||null,cx:_2a7[i].x,cy:_2a7[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);_2af[i]=o;},this);this._eventSeries[run.name]=_2af;}else{delete this._eventSeries[run.name];}run.dirty=false;}this.dirty=false;return this;},_animateScatter:function(_2b0,_2b1){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_2b0,duration:1200,transform:[{name:"translate",start:[0,_2b1],end:[0,0]},{name:"scale",start:[0,0],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.lang.functional.sequence"]){dojo._hasResource["dojox.lang.functional.sequence"]=true;dojo.provide("dojox.lang.functional.sequence");(function(){var d=dojo,df=dojox.lang.functional;d.mixin(df,{repeat:function(n,f,z,o){o=o||d.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||d.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;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Stacked"]){dojo._hasResource["dojox.charting.plot2d.Stacked"]=true;dojo.provide("dojox.charting.plot2d.Stacked");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_2b2=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Stacked",dojox.charting.plot2d.Default,{getSeriesStats:function(){var _2b3=dc.collectStackedStats(this.series);this._maxRunLength=_2b3.hmax;return _2b3;},render:function(dim,_2b4){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,_2b4);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_2b2);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_2b5=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 _2b6=t.next(this.opt.areas?"area":"line",[this.opt,run],true),s=run.group,_2b7,_2b8=dojo.map(acc,function(v,i){return {x:ht(i+1)+_2b4.l,y:dim.height-_2b4.b-vt(v)};},this);var _2b9=this.opt.tension?dc.curve(_2b8,this.opt.tension):"";if(this.opt.areas){var _2ba=dojo.clone(_2b8);if(this.opt.tension){var p=dc.curve(_2ba,this.opt.tension);p+=" L"+_2b8[_2b8.length-1].x+","+(dim.height-_2b4.b)+" L"+_2b8[0].x+","+(dim.height-_2b4.b)+" L"+_2b8[0].x+","+_2b8[0].y;run.dyn.fill=s.createPath(p).setFill(_2b6.series.fill).getFill();}else{_2ba.push({x:_2b8[_2b8.length-1].x,y:dim.height-_2b4.b});_2ba.push({x:_2b8[0].x,y:dim.height-_2b4.b});_2ba.push(_2b8[0]);run.dyn.fill=s.createPolyline(_2ba).setFill(_2b6.series.fill).getFill();}}if(this.opt.lines||this.opt.markers){if(_2b6.series.outline){_2b7=dc.makeStroke(_2b6.series.outline);_2b7.width=2*_2b7.width+_2b6.series.stroke.width;}}if(this.opt.markers){run.dyn.marker=_2b6.symbol;}var _2bb,_2bc,_2bd;if(_2b6.series.shadow&&_2b6.series.stroke){var _2be=_2b6.series.shadow,_2bf=dojo.map(_2b8,function(c){return {x:c.x+_2be.dx,y:c.y+_2be.dy};});if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_2bf,this.opt.tension)).setStroke(_2be).getStroke();}else{run.dyn.shadow=s.createPolyline(_2bf).setStroke(_2be).getStroke();}}if(this.opt.markers){_2be=_2b6.marker.shadow;_2bd=dojo.map(_2bf,function(c){return s.createPath("M"+c.x+" "+c.y+" "+_2b6.symbol).setStroke(_2be).setFill(_2be.color);},this);}}if(this.opt.lines){if(_2b7){if(this.opt.tension){run.dyn.outline=s.createPath(_2b9).setStroke(_2b7).getStroke();}else{run.dyn.outline=s.createPolyline(_2b8).setStroke(_2b7).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_2b9).setStroke(_2b6.series.stroke).getStroke();}else{run.dyn.stroke=s.createPolyline(_2b8).setStroke(_2b6.series.stroke).getStroke();}}if(this.opt.markers){_2bb=new Array(_2b8.length);_2bc=new Array(_2b8.length);_2b7=null;if(_2b6.marker.outline){_2b7=dc.makeStroke(_2b6.marker.outline);_2b7.width=2*_2b7.width+(_2b6.marker.stroke?_2b6.marker.stroke.width:0);}dojo.forEach(_2b8,function(c,i){var path="M"+c.x+" "+c.y+" "+_2b6.symbol;if(_2b7){_2bc[i]=s.createPath(path).setStroke(_2b7);}_2bb[i]=s.createPath(path).setStroke(_2b6.marker.stroke).setFill(_2b6.marker.fill);},this);if(_2b5){var _2c0=new Array(_2bb.length);dojo.forEach(_2bb,function(s,i){var o={element:"marker",index:i,run:run,shape:s,outline:_2bc[i]||null,shadow:_2bd&&_2bd[i]||null,cx:_2b8[i].x,cy:_2b8[i].y,x:i+1,y:run.data[i]};this._connectEvents(o);_2c0[i]=o;},this);this._eventSeries[run.name]=_2c0;}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;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.StackedLines"]){dojo._hasResource["dojox.charting.plot2d.StackedLines"]=true;dojo.provide("dojox.charting.plot2d.StackedLines");dojo.declare("dojox.charting.plot2d.StackedLines",dojox.charting.plot2d.Stacked,{constructor:function(){this.opt.lines=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.StackedAreas"]){dojo._hasResource["dojox.charting.plot2d.StackedAreas"]=true;dojo.provide("dojox.charting.plot2d.StackedAreas");dojo.declare("dojox.charting.plot2d.StackedAreas",dojox.charting.plot2d.Stacked,{constructor:function(){this.opt.lines=true;this.opt.areas=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Columns"]){dojo._hasResource["dojox.charting.plot2d.Columns"]=true;dojo.provide("dojox.charting.plot2d.Columns");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_2c1=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Columns",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:0,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_2c2,_2c3){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_2c3);du.updateWithPattern(this.opt,_2c3,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},getSeriesStats:function(){var _2c4=dc.collectSimpleStats(this.series);_2c4.hmin-=0.5;_2c4.hmax+=0.5;return _2c4;},render:function(dim,_2c5){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_2c5);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_2c1);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_2c6,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_2c7=Math.max(0,this._vScaler.bounds.lower),_2c8=vt(_2c7),_2c9=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_2c6=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 _2ca=t.next("column",[this.opt,run]),s=run.group,_2cb=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _2cc=run.data[j];if(_2cc!==null){var v=typeof _2cc=="number"?_2cc:_2cc.y,vv=vt(v),_2cd=vv-_2c8,h=Math.abs(_2cd),_2ce=typeof _2cc!="number"?t.addMixin(_2ca,"column",_2cc,true):t.post(_2ca,"column");if(_2c6>=1&&h>=1){var rect={x:_2c5.l+ht(j+0.5)+gap,y:dim.height-_2c5.b-(v>_2c7?vv:_2c8),width:_2c6,height:h};var _2cf=this._plotFill(_2ce.series.fill,dim,_2c5);_2cf=this._shapeFill(_2cf,rect);var _2d0=s.createRect(rect).setFill(_2cf).setStroke(_2ce.series.stroke);run.dyn.fill=_2d0.getFill();run.dyn.stroke=_2d0.getStroke();if(_2c9){var o={element:"column",index:j,run:run,shape:_2d0,x:j+0.5,y:v};this._connectEvents(o);_2cb[j]=o;}if(this.animate){this._animateColumn(_2d0,dim.height-_2c5.b-_2c8,h);}}}}this._eventSeries[run.name]=_2cb;run.dirty=false;}this.dirty=false;return this;},_animateColumn:function(_2d1,_2d2,_2d3){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_2d1,duration:1200,transform:[{name:"translate",start:[0,_2d2-(_2d2/_2d3)],end:[0,0]},{name:"scale",start:[1,1/_2d3],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.StackedColumns"]){dojo._hasResource["dojox.charting.plot2d.StackedColumns"]=true;dojo.provide("dojox.charting.plot2d.StackedColumns");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_2d4=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.StackedColumns",dojox.charting.plot2d.Columns,{getSeriesStats:function(){var _2d5=dc.collectStackedStats(this.series);this._maxRunLength=_2d5.hmax;_2d5.hmin-=0.5;_2d5.hmax+=0.5;return _2d5;},render:function(dim,_2d6){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 _2d7=run.data[j];if(_2d7!==null){var v=typeof _2d7=="number"?_2d7:_2d7.y;if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_2d6);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_2d4);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_2d8,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_2d9=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_2d8=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 _2da=t.next("column",[this.opt,run]),s=run.group,_2db=new Array(acc.length);for(var j=0;j<acc.length;++j){var _2d7=run.data[j];if(_2d7!==null){var v=acc[j],_2dc=vt(v),_2dd=typeof _2d7!="number"?t.addMixin(_2da,"column",_2d7,true):t.post(_2da,"column");if(_2d8>=1&&_2dc>=1){var rect={x:_2d6.l+ht(j+0.5)+gap,y:dim.height-_2d6.b-vt(v),width:_2d8,height:_2dc};var _2de=this._plotFill(_2dd.series.fill,dim,_2d6);_2de=this._shapeFill(_2de,rect);var _2df=s.createRect(rect).setFill(_2de).setStroke(_2dd.series.stroke);run.dyn.fill=_2df.getFill();run.dyn.stroke=_2df.getStroke();if(_2d9){var o={element:"column",index:j,run:run,shape:_2df,x:j+0.5,y:v};this._connectEvents(o);_2db[j]=o;}if(this.animate){this._animateColumn(_2df,dim.height-_2d6.b,_2dc);}}}}this._eventSeries[run.name]=_2db;run.dirty=false;for(var j=0;j<run.data.length;++j){var _2d7=run.data[j];if(_2d7!==null){var v=typeof _2d7=="number"?_2d7:_2d7.y;if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.ClusteredColumns"]){dojo._hasResource["dojox.charting.plot2d.ClusteredColumns"]=true;dojo.provide("dojox.charting.plot2d.ClusteredColumns");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_2e0=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.ClusteredColumns",dojox.charting.plot2d.Columns,{render:function(dim,_2e1){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_2e1);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_2e0);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_2e2,_2e3,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_2e4=Math.max(0,this._vScaler.bounds.lower),_2e5=vt(_2e4),_2e6=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_2e2=_2e3=f.size;for(var i=0;i<this.series.length;++i){var run=this.series[i],_2e7=_2e3*i;if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _2e8=t.next("column",[this.opt,run]),s=run.group,_2e9=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _2ea=run.data[j];if(_2ea!==null){var v=typeof _2ea=="number"?_2ea:_2ea.y,vv=vt(v),_2eb=vv-_2e5,h=Math.abs(_2eb),_2ec=typeof _2ea!="number"?t.addMixin(_2e8,"column",_2ea,true):t.post(_2e8,"column");if(_2e2>=1&&h>=1){var rect={x:_2e1.l+ht(j+0.5)+gap+_2e7,y:dim.height-_2e1.b-(v>_2e4?vv:_2e5),width:_2e2,height:h};var _2ed=this._plotFill(_2ec.series.fill,dim,_2e1);_2ed=this._shapeFill(_2ed,rect);var _2ee=s.createRect(rect).setFill(_2ed).setStroke(_2ec.series.stroke);run.dyn.fill=_2ee.getFill();run.dyn.stroke=_2ee.getStroke();if(_2e6){var o={element:"column",index:j,run:run,shape:_2ee,x:j+0.5,y:v};this._connectEvents(o);_2e9[j]=o;}if(this.animate){this._animateColumn(_2ee,dim.height-_2e1.b-_2e5,h);}}}}this._eventSeries[run.name]=_2e9;run.dirty=false;}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Bars"]){dojo._hasResource["dojox.charting.plot2d.Bars"]=true;dojo.provide("dojox.charting.plot2d.Bars");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_2ef=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Bars",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:0,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_2f0,_2f1){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_2f1);du.updateWithPattern(this.opt,_2f1,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},getSeriesStats:function(){var _2f2=dc.collectSimpleStats(this.series),t;_2f2.hmin-=0.5;_2f2.hmax+=0.5;t=_2f2.hmin,_2f2.hmin=_2f2.vmin,_2f2.vmin=t;t=_2f2.hmax,_2f2.hmax=_2f2.vmax,_2f2.vmax=t;return _2f2;},render:function(dim,_2f3){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_2f3);}this.dirty=this.isDirty();this.resetEvents();if(this.dirty){dojo.forEach(this.series,_2ef);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_2f4,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_2f5=Math.max(0,this._hScaler.bounds.lower),_2f6=ht(_2f5),_2f7=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_2f4=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 _2f8=t.next("bar",[this.opt,run]),s=run.group,_2f9=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _2fa=run.data[j];if(_2fa!==null){var v=typeof _2fa=="number"?_2fa:_2fa.y,hv=ht(v),_2fb=hv-_2f6,w=Math.abs(_2fb),_2fc=typeof _2fa!="number"?t.addMixin(_2f8,"bar",_2fa,true):t.post(_2f8,"bar");if(w>=1&&_2f4>=1){var rect={x:_2f3.l+(v<_2f5?hv:_2f6),y:dim.height-_2f3.b-vt(j+1.5)+gap,width:w,height:_2f4};var _2fd=this._plotFill(_2fc.series.fill,dim,_2f3);_2fd=this._shapeFill(_2fd,rect);var _2fe=s.createRect(rect).setFill(_2fd).setStroke(_2fc.series.stroke);run.dyn.fill=_2fe.getFill();run.dyn.stroke=_2fe.getStroke();if(_2f7){var o={element:"bar",index:j,run:run,shape:_2fe,x:v,y:j+1.5};this._connectEvents(o);_2f9[j]=o;}if(this.animate){this._animateBar(_2fe,_2f3.l+_2f6,-w);}}}}this._eventSeries[run.name]=_2f9;run.dirty=false;}this.dirty=false;return this;},_animateBar:function(_2ff,_300,_301){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_2ff,duration:1200,transform:[{name:"translate",start:[_300-(_300/_301),0],end:[0,0]},{name:"scale",start:[1/_301,1],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.StackedBars"]){dojo._hasResource["dojox.charting.plot2d.StackedBars"]=true;dojo.provide("dojox.charting.plot2d.StackedBars");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_302=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.StackedBars",dojox.charting.plot2d.Bars,{getSeriesStats:function(){var _303=dc.collectStackedStats(this.series),t;this._maxRunLength=_303.hmax;_303.hmin-=0.5;_303.hmax+=0.5;t=_303.hmin,_303.hmin=_303.vmin,_303.vmin=t;t=_303.hmax,_303.hmax=_303.vmax,_303.vmax=t;return _303;},render:function(dim,_304){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 _305=run.data[j];if(_305!==null){var v=typeof _305=="number"?_305:_305.y;if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_304);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_302);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_306,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_307=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_306=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 _308=t.next("bar",[this.opt,run]),s=run.group,_309=new Array(acc.length);for(var j=0;j<acc.length;++j){var _305=run.data[j];if(_305!==null){var v=acc[j],_30a=ht(v),_30b=typeof _305!="number"?t.addMixin(_308,"bar",_305,true):t.post(_308,"bar");if(_30a>=1&&_306>=1){var rect={x:_304.l,y:dim.height-_304.b-vt(j+1.5)+gap,width:_30a,height:_306};var _30c=this._plotFill(_30b.series.fill,dim,_304);_30c=this._shapeFill(_30c,rect);var _30d=s.createRect(rect).setFill(_30c).setStroke(_30b.series.stroke);run.dyn.fill=_30d.getFill();run.dyn.stroke=_30d.getStroke();if(_307){var o={element:"bar",index:j,run:run,shape:_30d,x:v,y:j+1.5};this._connectEvents(o);_309[j]=o;}if(this.animate){this._animateBar(_30d,_304.l,-_30a);}}}}this._eventSeries[run.name]=_309;run.dirty=false;for(var j=0;j<run.data.length;++j){var _305=run.data[j];if(_305!==null){var v=typeof _305=="number"?_305:_305.y;if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.ClusteredBars"]){dojo._hasResource["dojox.charting.plot2d.ClusteredBars"]=true;dojo.provide("dojox.charting.plot2d.ClusteredBars");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_30e=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.ClusteredBars",dojox.charting.plot2d.Bars,{render:function(dim,_30f){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_30f);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_30e);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_310,_311,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_312=Math.max(0,this._hScaler.bounds.lower),_313=ht(_312),_314=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_310=_311=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i],_315=_311*(this.series.length-i-1);if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _316=t.next("bar",[this.opt,run]),s=run.group,_317=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _318=run.data[j];if(_318!==null){var v=typeof _318=="number"?_318:_318.y,hv=ht(v),_319=hv-_313,w=Math.abs(_319),_31a=typeof _318!="number"?t.addMixin(_316,"bar",_318,true):t.post(_316,"bar");if(w>=1&&_310>=1){var rect={x:_30f.l+(v<_312?hv:_313),y:dim.height-_30f.b-vt(j+1.5)+gap+_315,width:w,height:_310};var _31b=this._plotFill(_31a.series.fill,dim,_30f);_31b=this._shapeFill(_31b,rect);var _31c=s.createRect(rect).setFill(_31b).setStroke(_31a.series.stroke);run.dyn.fill=_31c.getFill();run.dyn.stroke=_31c.getStroke();if(_314){var o={element:"bar",index:j,run:run,shape:_31c,x:v,y:j+1.5};this._connectEvents(o);_317[j]=o;}if(this.animate){this._animateBar(_31c,_30f.l+_313,-_319);}}}}this._eventSeries[run.name]=_317;run.dirty=false;}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Grid"]){dojo._hasResource["dojox.charting.plot2d.Grid"]=true;dojo.provide("dojox.charting.plot2d.Grid");(function(){var du=dojox.lang.utils,dc=dojox.charting.plot2d.common;dojo.declare("dojox.charting.plot2d.Grid",dojox.charting.Element,{defaultParams:{hAxis:"x",vAxis:"y",hMajorLines:true,hMinorLines:false,vMajorLines:true,vMinorLines:false,hStripes:"none",vStripes:"none",animate:null},optionalParams:{},constructor:function(_31d,_31e){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_31e);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};},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 dojo.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,_31f){var vs=this._vAxis.scale||1,hs=this._hAxis.scale||1,_320=dim.height-_31f.b,_321=this._hAxis.getScaler().bounds,_322=(_321.from-_321.lower)*_321.scale,_323=this._vAxis.getScaler().bounds,_324=(_323.from-_323.lower)*_323.scale;rVScale=vs/this.lastWindow.vscale,rHScale=hs/this.lastWindow.hscale,rXOffset=(this.lastWindow.xoffset-_322)/((this.lastWindow.hscale==1)?hs:this.lastWindow.hscale),rYOffset=(_324-this.lastWindow.yoffset)/((this.lastWindow.vscale==1)?vs:this.lastWindow.vscale),shape=this.group,anim=dojox.gfx.fx.animateTransform(dojo.delegate({shape:shape,duration:1200,transform:[{name:"translate",start:[0,0],end:[_31f.l*(1-rHScale),_320*(1-rVScale)]},{name:"scale",start:[1,1],end:[rHScale,rVScale]},{name:"original"},{name:"translate",start:[0,0],end:[rXOffset,rYOffset]}]},this.zoom));dojo.mixin(this.lastWindow,{vscale:vs,hscale:hs,xoffset:_322,yoffset:_324});this.zoomQueue.push(anim);dojo.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;},render:function(dim,_325){if(this.zoom){return this.performZoom(dim,_325);}this.dirty=this.isDirty();if(!this.dirty){return this;}this.cleanGroup();var s=this.group,ta=this.chart.theme.axis;try{var _326=this._vAxis.getScaler(),vt=_326.scaler.getTransformerFromModel(_326),_327=this._vAxis.getTicks();if(this.opt.hMinorLines){dojo.forEach(_327.minor,function(tick){var y=dim.height-_325.b-vt(tick.value);var _328=s.createLine({x1:_325.l,y1:y,x2:dim.width-_325.r,y2:y}).setStroke(ta.minorTick);if(this.animate){this._animateGrid(_328,"h",_325.l,_325.r+_325.l-dim.width);}},this);}if(this.opt.hMajorLines){dojo.forEach(_327.major,function(tick){var y=dim.height-_325.b-vt(tick.value);var _329=s.createLine({x1:_325.l,y1:y,x2:dim.width-_325.r,y2:y}).setStroke(ta.majorTick);if(this.animate){this._animateGrid(_329,"h",_325.l,_325.r+_325.l-dim.width);}},this);}}catch(e){}try{var _32a=this._hAxis.getScaler(),ht=_32a.scaler.getTransformerFromModel(_32a),_327=this._hAxis.getTicks();if(_327&&this.opt.vMinorLines){dojo.forEach(_327.minor,function(tick){var x=_325.l+ht(tick.value);var _32b=s.createLine({x1:x,y1:_325.t,x2:x,y2:dim.height-_325.b}).setStroke(ta.minorTick);if(this.animate){this._animateGrid(_32b,"v",dim.height-_325.b,dim.height-_325.b-_325.t);}},this);}if(_327&&this.opt.vMajorLines){dojo.forEach(_327.major,function(tick){var x=_325.l+ht(tick.value);var _32c=s.createLine({x1:x,y1:_325.t,x2:x,y2:dim.height-_325.b}).setStroke(ta.majorTick);if(this.animate){this._animateGrid(_32c,"v",dim.height-_325.b,dim.height-_325.b-_325.t);}},this);}}catch(e){}this.dirty=false;return this;},_animateGrid:function(_32d,type,_32e,size){var _32f=type=="h"?[_32e,0]:[0,_32e];var _330=type=="h"?[1/size,1]:[1,1/size];dojox.gfx.fx.animateTransform(dojo.delegate({shape:_32d,duration:1200,transform:[{name:"translate",start:_32f,end:[0,0]},{name:"scale",start:_330,end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_331,_332,_333){_333=dojo.i18n.normalizeLocale(_333);var _334=_333.split("-");var _335=[_331,"nls",_332].join(".");var _336=dojo._loadedModules[_335];if(_336){var _337;for(var i=_334.length;i>0;i--){var loc=_334.slice(0,i).join("_");if(_336[loc]){_337=_336[loc];break;}}if(!_337){_337=_336.ROOT;}if(_337){var _338=function(){};_338.prototype=_337;return new _338();}}throw new Error("Bundle not found: "+_332+" in "+_331+" , locale="+_333);};dojo.i18n.normalizeLocale=function(_339){var _33a=_339?_339.toLowerCase():dojo.locale;if(_33a=="root"){_33a="ROOT";}return _33a;};dojo.i18n._requireLocalization=function(_33b,_33c,_33d,_33e){var _33f=dojo.i18n.normalizeLocale(_33d);var _340=[_33b,"nls",_33c].join(".");var _341="";if(_33e){var _342=_33e.split(",");for(var i=0;i<_342.length;i++){if(_33f["indexOf"](_342[i])==0){if(_342[i].length>_341.length){_341=_342[i];}}}if(!_341){_341="ROOT";}}var _343=_33e?_341:_33f;var _344=dojo._loadedModules[_340];var _345=null;if(_344){if(dojo.config.localizationComplete&&_344._built){return;}var _346=_343.replace(/-/g,"_");var _347=_340+"."+_346;_345=dojo._loadedModules[_347];}if(!_345){_344=dojo["provide"](_340);var syms=dojo._getModuleSymbols(_33b);var _348=syms.concat("nls").join("/");var _349;dojo.i18n._searchLocalePath(_343,_33e,function(loc){var _34a=loc.replace(/-/g,"_");var _34b=_340+"."+_34a;var _34c=false;if(!dojo._loadedModules[_34b]){dojo["provide"](_34b);var _34d=[_348];if(loc!="ROOT"){_34d.push(loc);}_34d.push(_33c);var _34e=_34d.join("/")+".js";_34c=dojo._loadPath(_34e,null,function(hash){var _34f=function(){};_34f.prototype=_349;_344[_34a]=new _34f();for(var j in hash){_344[_34a][j]=hash[j];}});}else{_34c=true;}if(_34c&&_344[_34a]){_349=_344[_34a];}else{_344[_34a]=_349;}if(_33e){return true;}});}if(_33e&&_33f!=_341){_344[_33f.replace(/-/g,"_")]=_344[_341.replace(/-/g,"_")];}};(function(){var _350=dojo.config.extraLocale;if(_350){if(!_350 instanceof Array){_350=[_350];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_351,_352){req(m,b,_351,_352);if(_351){return;}for(var i=0;i<_350.length;i++){req(m,b,_350[i],_352);}};}})();dojo.i18n._searchLocalePath=function(_353,down,_354){_353=dojo.i18n.normalizeLocale(_353);var _355=_353.split("-");var _356=[];for(var i=_355.length;i>0;i--){_356.push(_355.slice(0,i).join("-"));}_356.push(false);if(down){_356.reverse();}for(var j=_356.length-1;j>=0;j--){var loc=_356[j]||"ROOT";var stop=_354(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_357,_358){function _359(_35a){_35a=dojo.i18n.normalizeLocale(_35a);dojo.i18n._searchLocalePath(_35a,true,function(loc){for(var i=0;i<_358.length;i++){if(_358[i]==loc){dojo["require"](_357+"_"+loc);return true;}}return false;});};_359();var _35b=dojo.config.extraLocale||[];for(var i=0;i<_35b.length;i++){_359(_35b[i]);}};}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_35c){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_35c&&_35c.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_35d){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_35d);};dojo.regexp.group=function(_35e,_35f){return "("+(_35f?"?:":"")+_35e+")";};}if(!dojo._hasResource["dojo.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.number.format=function(_360,_361){_361=dojo.mixin({},_361||{});var _362=dojo.i18n.normalizeLocale(_361.locale),_363=dojo.i18n.getLocalization("dojo.cldr","number",_362);_361.customs=_363;var _364=_361.pattern||_363[(_361.type||"decimal")+"Format"];if(isNaN(_360)||Math.abs(_360)==Infinity){return null;}return dojo.number._applyPattern(_360,_364,_361);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_365,_366,_367){_367=_367||{};var _368=_367.customs.group,_369=_367.customs.decimal,_36a=_366.split(";"),_36b=_36a[0];_366=_36a[(_365<0)?1:0]||("-"+_36b);if(_366.indexOf("%")!=-1){_365*=100;}else{if(_366.indexOf("‰")!=-1){_365*=1000;}else{if(_366.indexOf("¤")!=-1){_368=_367.customs.currencyGroup||_368;_369=_367.customs.currencyDecimal||_369;_366=_366.replace(/\u00a4{1,3}/,function(_36c){var prop=["symbol","currency","displayName"][_36c.length-1];return _367[prop]||_367.currency||"";});}else{if(_366.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _36d=dojo.number._numberPatternRE;var _36e=_36b.match(_36d);if(!_36e){throw new Error("unable to find a number expression in pattern: "+_366);}if(_367.fractional===false){_367.places=0;}return _366.replace(_36d,dojo.number._formatAbsolute(_365,_36e[0],{decimal:_369,group:_368,places:_367.places,round:_367.round}));};dojo.number.round=function(_36f,_370,_371){var _372=10/(_371||10);return (_372*+_36f).toFixed(_370)/_372;};if((0.9).toFixed()==0){(function(){var _373=dojo.number.round;dojo.number.round=function(v,p,m){var d=Math.pow(10,-p||0),a=Math.abs(v);if(!v||a>=d||a*Math.pow(10,p+1)<5){d=0;}return _373(v,p,m)+(v>0?d:-d);};})();}dojo.number._formatAbsolute=function(_374,_375,_376){_376=_376||{};if(_376.places===true){_376.places=0;}if(_376.places===Infinity){_376.places=6;}var _377=_375.split("."),_378=typeof _376.places=="string"&&_376.places.indexOf(","),_379=_376.places;if(_378){_379=_376.places.substring(_378+1);}else{if(!(_379>=0)){_379=(_377[1]||[]).length;}}if(!(_376.round<0)){_374=dojo.number.round(_374,_379,_376.round);}var _37a=String(Math.abs(_374)).split("."),_37b=_37a[1]||"";if(_377[1]||_376.places){if(_378){_376.places=_376.places.substring(0,_378);}var pad=_376.places!==undefined?_376.places:(_377[1]&&_377[1].lastIndexOf("0")+1);if(pad>_37b.length){_37a[1]=dojo.string.pad(_37b,pad,"0",true);}if(_379<_37b.length){_37a[1]=_37b.substr(0,_379);}}else{if(_37a[1]){_37a.pop();}}var _37c=_377[0].replace(",","");pad=_37c.indexOf("0");if(pad!=-1){pad=_37c.length-pad;if(pad>_37a[0].length){_37a[0]=dojo.string.pad(_37a[0],pad);}if(_37c.indexOf("#")==-1){_37a[0]=_37a[0].substr(_37a[0].length-pad);}}var _37d=_377[0].lastIndexOf(","),_37e,_37f;if(_37d!=-1){_37e=_377[0].length-_37d-1;var _380=_377[0].substr(0,_37d);_37d=_380.lastIndexOf(",");if(_37d!=-1){_37f=_380.length-_37d-1;}}var _381=[];for(var _382=_37a[0];_382;){var off=_382.length-_37e;_381.push((off>0)?_382.substr(off):_382);_382=(off>0)?_382.slice(0,off):"";if(_37f){_37e=_37f;delete _37f;}}_37a[0]=_381.reverse().join(_376.group||",");return _37a.join(_376.decimal||".");};dojo.number.regexp=function(_383){return dojo.number._parseInfo(_383).regexp;};dojo.number._parseInfo=function(_384){_384=_384||{};var _385=dojo.i18n.normalizeLocale(_384.locale),_386=dojo.i18n.getLocalization("dojo.cldr","number",_385),_387=_384.pattern||_386[(_384.type||"decimal")+"Format"],_388=_386.group,_389=_386.decimal,_38a=1;if(_387.indexOf("%")!=-1){_38a/=100;}else{if(_387.indexOf("‰")!=-1){_38a/=1000;}else{var _38b=_387.indexOf("¤")!=-1;if(_38b){_388=_386.currencyGroup||_388;_389=_386.currencyDecimal||_389;}}}var _38c=_387.split(";");if(_38c.length==1){_38c.push("-"+_38c[0]);}var re=dojo.regexp.buildGroupRE(_38c,function(_38d){_38d="(?:"+dojo.regexp.escapeString(_38d,".")+")";return _38d.replace(dojo.number._numberPatternRE,function(_38e){var _38f={signed:false,separator:_384.strict?_388:[_388,""],fractional:_384.fractional,decimal:_389,exponent:false},_390=_38e.split("."),_391=_384.places;if(_390.length==1&&_38a!=1){_390[1]="###";}if(_390.length==1||_391===0){_38f.fractional=false;}else{if(_391===undefined){_391=_384.pattern?_390[1].lastIndexOf("0")+1:Infinity;}if(_391&&_384.fractional==undefined){_38f.fractional=true;}if(!_384.places&&(_391<_390[1].length)){_391+=","+_390[1].length;}_38f.places=_391;}var _392=_390[0].split(",");if(_392.length>1){_38f.groupSize=_392.pop().length;if(_392.length>1){_38f.groupSize2=_392.pop().length;}}return "("+dojo.number._realNumberRegexp(_38f)+")";});},true);if(_38b){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_393,_394,_395,_396){var prop=["symbol","currency","displayName"][_395.length-1],_397=dojo.regexp.escapeString(_384[prop]||_384.currency||"");_394=_394?"[\\s\\xa0]":"";_396=_396?"[\\s\\xa0]":"";if(!_384.strict){if(_394){_394+="*";}if(_396){_396+="*";}return "(?:"+_394+_397+_396+")?";}return _394+_397+_396;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_388,decimal:_389,factor:_38a};};dojo.number.parse=function(_398,_399){var info=dojo.number._parseInfo(_399),_39a=(new RegExp("^"+info.regexp+"$")).exec(_398);if(!_39a){return NaN;}var _39b=_39a[1];if(!_39a[1]){if(!_39a[2]){return NaN;}_39b=_39a[2];info.factor*=-1;}_39b=_39b.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _39b*info.factor;};dojo.number._realNumberRegexp=function(_39c){_39c=_39c||{};if(!("places" in _39c)){_39c.places=Infinity;}if(typeof _39c.decimal!="string"){_39c.decimal=".";}if(!("fractional" in _39c)||/^0/.test(_39c.places)){_39c.fractional=[true,false];}if(!("exponent" in _39c)){_39c.exponent=[true,false];}if(!("eSigned" in _39c)){_39c.eSigned=[true,false];}var _39d=dojo.number._integerRegexp(_39c),_39e=dojo.regexp.buildGroupRE(_39c.fractional,function(q){var re="";if(q&&(_39c.places!==0)){re="\\"+_39c.decimal;if(_39c.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_39c.places+"}";}}return re;},true);var _39f=dojo.regexp.buildGroupRE(_39c.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_39c.eSigned})+")";}return "";});var _3a0=_39d+_39e;if(_39e){_3a0="(?:(?:"+_3a0+")|(?:"+_39e+"))";}return _3a0+_39f;};dojo.number._integerRegexp=function(_3a1){_3a1=_3a1||{};if(!("signed" in _3a1)){_3a1.signed=[true,false];}if(!("separator" in _3a1)){_3a1.separator="";}else{if(!("groupSize" in _3a1)){_3a1.groupSize=3;}}var _3a2=dojo.regexp.buildGroupRE(_3a1.signed,function(q){return q?"[-+]":"";},true);var _3a3=dojo.regexp.buildGroupRE(_3a1.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_3a1.groupSize,grp2=_3a1.groupSize2;if(grp2){var _3a4="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_3a4+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_3a4;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _3a2+_3a3;};}if(!dojo._hasResource["dojox.charting.plot2d.Pie"]){dojo._hasResource["dojox.charting.plot2d.Pie"]=true;dojo.provide("dojox.charting.plot2d.Pie");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,da=dojox.charting.axis2d.common,g=dojox.gfx,m=g.matrix,_3a5=0.2;dojo.declare("dojox.charting.plot2d.Pie",[dojox.charting.Element,dojox.charting.plot2d._PlotEvents],{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:""},constructor:function(_3a6,_3a7){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_3a7);du.updateWithPattern(this.opt,_3a7,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 dojo.delegate(dc.defaultStats);},initializeScalers:function(){return this;},getRequiredColors:function(){return this.run?this.run.data.length:0;},render:function(dim,_3a8){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-_3a8.l-_3a8.r)/2,ry=(dim.height-_3a8.t-_3a8.b)/2,r=Math.min(rx,ry),_3a9="font" in this.opt?this.opt.font:t.axis.font,size=_3a9?g.normalizedLength(g.splitFontString(_3a9).size):0,_3aa="fontColor" in this.opt?this.opt.fontColor:t.axis.fontColor,_3ab=m._degToRad(this.opt.startAngle),_3ac=_3ab,step,_3ad,_3ae,_3af,_3b0,_3b1,run=this.run.data,_3b2=this.events();if(typeof run[0]=="number"){_3ad=df.map(run,"x ? Math.max(x, 0) : 0");if(df.every(_3ad,"<= 0")){return this;}_3ae=df.map(_3ad,"/this",df.foldl(_3ad,"+",0));if(this.opt.labels){_3af=dojo.map(_3ae,function(x){return x>0?this._getLabel(x*100)+"%":"";},this);}}else{_3ad=df.map(run,"x ? Math.max(x.y, 0) : 0");if(df.every(_3ad,"<= 0")){return this;}_3ae=df.map(_3ad,"/this",df.foldl(_3ad,"+",0));if(this.opt.labels){_3af=dojo.map(_3ae,function(x,i){if(x<=0){return "";}var v=run[i];return "text" in v?v.text:this._getLabel(x*100)+"%";},this);}}var _3b3=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){_3b0=df.foldl1(df.map(_3af,function(_3b4,i){var font=_3b3[i].series.font;return dojox.gfx._base._getTextBox(_3b4,{font:font}).w;},this),"Math.max(a, b)")/2;if(this.opt.labelOffset<0){r=Math.min(rx-2*_3b0,ry-size)+this.opt.labelOffset;}_3b1=r-this.opt.labelOffset;}if("radius" in this.opt){r=this.opt.radius;_3b1=r-this.opt.labelOffset;}var _3b5={cx:_3a8.l+rx,cy:_3a8.t+ry,r:r};this.dyn=[];var _3b6=new Array(_3ae.length);dojo.some(_3ae,function(_3b7,i){if(_3b7<=0){return false;}var v=run[i],_3b8=_3b3[i],_3b9;if(_3b7>=1){_3b9=this._plotFill(_3b8.series.fill,dim,_3a8);_3b9=this._shapeFill(_3b9,{x:_3b5.cx-_3b5.r,y:_3b5.cy-_3b5.r,width:2*_3b5.r,height:2*_3b5.r});_3b9=this._pseudoRadialFill(_3b9,{x:_3b5.cx,y:_3b5.cy},_3b5.r);var _3ba=s.createCircle(_3b5).setFill(_3b9).setStroke(_3b8.series.stroke);this.dyn.push({fill:_3b9,stroke:_3b8.series.stroke});if(_3b2){var o={element:"slice",index:i,run:this.run,shape:_3ba,x:i,y:typeof v=="number"?v:v.y,cx:_3b5.cx,cy:_3b5.cy,cr:r};this._connectEvents(o);_3b6[i]=o;}return true;}var end=_3ac+_3b7*2*Math.PI;if(i+1==_3ae.length){end=_3ab+2*Math.PI;}var step=end-_3ac,x1=_3b5.cx+r*Math.cos(_3ac),y1=_3b5.cy+r*Math.sin(_3ac),x2=_3b5.cx+r*Math.cos(end),y2=_3b5.cy+r*Math.sin(end);var _3bb=m._degToRad(this.opt.fanSize);if(_3b8.series.fill&&_3b8.series.fill.type==="radial"&&this.opt.radGrad==="fan"&&step>_3bb){var _3bc=s.createGroup(),_3bd=Math.ceil(step/_3bb),_3be=step/_3bd;_3b9=this._shapeFill(_3b8.series.fill,{x:_3b5.cx-_3b5.r,y:_3b5.cy-_3b5.r,width:2*_3b5.r,height:2*_3b5.r});for(var j=0;j<_3bd;++j){var _3bf=j==0?x1:_3b5.cx+r*Math.cos(_3ac+(j-_3a5)*_3be),_3c0=j==0?y1:_3b5.cy+r*Math.sin(_3ac+(j-_3a5)*_3be),_3c1=j==_3bd-1?x2:_3b5.cx+r*Math.cos(_3ac+(j+1+_3a5)*_3be),_3c2=j==_3bd-1?y2:_3b5.cy+r*Math.sin(_3ac+(j+1+_3a5)*_3be),fan=_3bc.createPath({}).moveTo(_3b5.cx,_3b5.cy).lineTo(_3bf,_3c0).arcTo(r,r,0,_3be>Math.PI,true,_3c1,_3c2).lineTo(_3b5.cx,_3b5.cy).closePath().setFill(this._pseudoRadialFill(_3b9,{x:_3b5.cx,y:_3b5.cy},r,_3ac+(j+0.5)*_3be,_3ac+(j+0.5)*_3be));}_3bc.createPath({}).moveTo(_3b5.cx,_3b5.cy).lineTo(x1,y1).arcTo(r,r,0,step>Math.PI,true,x2,y2).lineTo(_3b5.cx,_3b5.cy).closePath().setStroke(_3b8.series.stroke);_3ba=_3bc;}else{_3ba=s.createPath({}).moveTo(_3b5.cx,_3b5.cy).lineTo(x1,y1).arcTo(r,r,0,step>Math.PI,true,x2,y2).lineTo(_3b5.cx,_3b5.cy).closePath().setStroke(_3b8.series.stroke);var _3b9=_3b8.series.fill;if(_3b9&&_3b9.type==="radial"){_3b9=this._shapeFill(_3b9,{x:_3b5.cx-_3b5.r,y:_3b5.cy-_3b5.r,width:2*_3b5.r,height:2*_3b5.r});if(this.opt.radGrad==="linear"){_3b9=this._pseudoRadialFill(_3b9,{x:_3b5.cx,y:_3b5.cy},r,_3ac,end);}}else{if(_3b9&&_3b9.type==="linear"){_3b9=this._plotFill(_3b9,dim,_3a8);_3b9=this._shapeFill(_3b9,_3ba.getBoundingBox());}}_3ba.setFill(_3b9);}this.dyn.push({fill:_3b9,stroke:_3b8.series.stroke});if(_3b2){var o={element:"slice",index:i,run:this.run,shape:_3ba,x:i,y:typeof v=="number"?v:v.y,cx:_3b5.cx,cy:_3b5.cy,cr:r};this._connectEvents(o);_3b6[i]=o;}_3ac=end;return false;},this);if(this.opt.labels){_3ac=_3ab;dojo.some(_3ae,function(_3c3,i){if(_3c3<=0){return false;}var _3c4=_3b3[i];if(_3c3>=1){var v=run[i],elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,_3b5.cx,_3b5.cy+size/2,"middle",_3af[i],_3c4.series.font,_3c4.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}return true;}var end=_3ac+_3c3*2*Math.PI,v=run[i];if(i+1==_3ae.length){end=_3ab+2*Math.PI;}var _3c5=(_3ac+end)/2,x=_3b5.cx+_3b1*Math.cos(_3c5),y=_3b5.cy+_3b1*Math.sin(_3c5)+size/2;var elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,x,y,"middle",_3af[i],_3c4.series.font,_3c4.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}_3ac=end;return false;},this);}var esi=0;this._eventSeries[this.run.name]=df.map(run,function(v){return v<=0?null:_3b6[esi++];});return this;},_getLabel:function(_3c6){return this.opt.fixed?dojo.number.format(_3c6,{places:this.opt.precision}):_3c6.toString();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Bubble"]){dojo._hasResource["dojox.charting.plot2d.Bubble"]=true;dojo.provide("dojox.charting.plot2d.Bubble");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_3c7=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Bubble",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",animate:null},optionalParams:{stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_3c8,_3c9){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_3c9);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_3ca){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_3ca);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_3c7);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),_3cb=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 _3cc=t.next("circle",[this.opt,run]),s=run.group,_3cd=dojo.map(run.data,function(v,i){return v?{x:ht(v.x)+_3ca.l,y:dim.height-_3ca.b-vt(v.y),radius:this._vScaler.bounds.scale*(v.size/2)}:null;},this);var _3ce=null,_3cf=null,_3d0=null;if(_3cc.series.shadow){_3d0=dojo.map(_3cd,function(item){if(item!==null){var _3d1=t.addMixin(_3cc,"circle",item,true),_3d2=_3d1.series.shadow;var _3d3=s.createCircle({cx:item.x+_3d2.dx,cy:item.y+_3d2.dy,r:item.radius}).setStroke(_3d2).setFill(_3d2.color);if(this.animate){this._animateBubble(_3d3,dim.height-_3ca.b,item.radius);}return _3d3;}return null;},this);if(_3d0.length){run.dyn.shadow=_3d0[_3d0.length-1].getStroke();}}if(_3cc.series.outline){_3cf=dojo.map(_3cd,function(item){if(item!==null){var _3d4=t.addMixin(_3cc,"circle",item,true),_3d5=dc.makeStroke(_3d4.series.outline);_3d5.width=2*_3d5.width+_3cc.series.stroke.width;var _3d6=s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setStroke(_3d5);if(this.animate){this._animateBubble(_3d6,dim.height-_3ca.b,item.radius);}return _3d6;}return null;},this);if(_3cf.length){run.dyn.outline=_3cf[_3cf.length-1].getStroke();}}_3ce=dojo.map(_3cd,function(item){if(item!==null){var _3d7=t.addMixin(_3cc,"circle",item,true),rect={x:item.x-item.radius,y:item.y-item.radius,width:2*item.radius,height:2*item.radius};var _3d8=this._plotFill(_3d7.series.fill,dim,_3ca);_3d8=this._shapeFill(_3d8,rect);var _3d9=s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setFill(_3d8).setStroke(_3d7.series.stroke);if(this.animate){this._animateBubble(_3d9,dim.height-_3ca.b,item.radius);}return _3d9;}return null;},this);if(_3ce.length){run.dyn.fill=_3ce[_3ce.length-1].getFill();run.dyn.stroke=_3ce[_3ce.length-1].getStroke();}if(_3cb){var _3da=new Array(_3ce.length);dojo.forEach(_3ce,function(s,i){if(s!==null){var o={element:"circle",index:i,run:run,shape:s,outline:_3cf&&_3cf[i]||null,shadow:_3d0&&_3d0[i]||null,x:run.data[i].x,y:run.data[i].y,r:run.data[i].size/2,cx:_3cd[i].x,cy:_3cd[i].y,cr:_3cd[i].radius};this._connectEvents(o);_3da[i]=o;}},this);this._eventSeries[run.name]=_3da;}else{delete this._eventSeries[run.name];}run.dirty=false;}this.dirty=false;return this;},_animateBubble:function(_3db,_3dc,size){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_3db,duration:1200,transform:[{name:"translate",start:[0,_3dc],end:[0,0]},{name:"scale",start:[0,1/size],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Candlesticks"]){dojo._hasResource["dojox.charting.plot2d.Candlesticks"]=true;dojo.provide("dojox.charting.plot2d.Candlesticks");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_3dd=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Candlesticks",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:2,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_3de,_3df){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_3df);du.updateWithPattern(this.opt,_3df,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},collectStats:function(_3e0){var _3e1=dojo.delegate(dc.defaultStats);for(var i=0;i<_3e0.length;i++){var run=_3e0[i];if(!run.data.length){continue;}var _3e2=_3e1.vmin,_3e3=_3e1.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,idx){if(val!==null){var x=val.x||idx+1;_3e1.hmin=Math.min(_3e1.hmin,x);_3e1.hmax=Math.max(_3e1.hmax,x);_3e1.vmin=Math.min(_3e1.vmin,val.open,val.close,val.high,val.low);_3e1.vmax=Math.max(_3e1.vmax,val.open,val.close,val.high,val.low);}});}if("ymin" in run){_3e1.vmin=Math.min(_3e2,run.ymin);}if("ymax" in run){_3e1.vmax=Math.max(_3e3,run.ymax);}}return _3e1;},getSeriesStats:function(){var _3e4=this.collectStats(this.series);_3e4.hmin-=0.5;_3e4.hmax+=0.5;return _3e4;},render:function(dim,_3e5){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_3e5);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_3dd);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_3e6,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_3e7=Math.max(0,this._vScaler.bounds.lower),_3e8=vt(_3e7),_3e9=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_3e6=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 _3ea=t.next("candlestick",[this.opt,run]),s=run.group,_3eb=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){var _3ec=t.addMixin(_3ea,"candlestick",v,true);var x=ht(v.x||(j+0.5))+_3e5.l+gap,y=dim.height-_3e5.b,open=vt(v.open),_3ed=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(_3e6>=1){var _3ee=open>_3ed;var line={x1:_3e6/2,x2:_3e6/2,y1:y-high,y2:y-low},rect={x:0,y:y-Math.max(open,_3ed),width:_3e6,height:Math.max(_3ee?open-_3ed:_3ed-open,1)};shape=s.createGroup();shape.setTransform({dx:x,dy:0});var _3ef=shape.createGroup();_3ef.createLine(line).setStroke(_3ec.series.stroke);_3ef.createRect(rect).setStroke(_3ec.series.stroke).setFill(_3ee?_3ec.series.fill:"white");if("mid" in v){_3ef.createLine({x1:(_3ec.series.stroke.width||1),x2:_3e6-(_3ec.series.stroke.width||1),y1:y-mid,y2:y-mid}).setStroke(_3ee?"white":_3ec.series.stroke);}run.dyn.fill=_3ec.series.fill;run.dyn.stroke=_3ec.series.stroke;if(_3e9){var o={element:"candlestick",index:j,run:run,shape:_3ef,x:x,y:y-Math.max(open,_3ed),cx:_3e6/2,cy:(y-Math.max(open,_3ed))+(Math.max(_3ee?open-_3ed:_3ed-open,1)/2),width:_3e6,height:Math.max(_3ee?open-_3ed:_3ed-open,1),data:v};this._connectEvents(o);_3eb[j]=o;}}if(this.animate){this._animateCandlesticks(shape,y-low,high-low);}}}this._eventSeries[run.name]=_3eb;run.dirty=false;}this.dirty=false;return this;},_animateCandlesticks:function(_3f0,_3f1,_3f2){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_3f0,duration:1200,transform:[{name:"translate",start:[0,_3f1-(_3f1/_3f2)],end:[0,0]},{name:"scale",start:[1,1/_3f2],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.OHLC"]){dojo._hasResource["dojox.charting.plot2d.OHLC"]=true;dojo.provide("dojox.charting.plot2d.OHLC");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_3f3=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.OHLC",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:2,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_3f4,_3f5){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_3f5);du.updateWithPattern(this.opt,_3f5,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},collectStats:function(_3f6){var _3f7=dojo.delegate(dc.defaultStats);for(var i=0;i<_3f6.length;i++){var run=_3f6[i];if(!run.data.length){continue;}var _3f8=_3f7.vmin,_3f9=_3f7.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,idx){if(val!==null){var x=val.x||idx+1;_3f7.hmin=Math.min(_3f7.hmin,x);_3f7.hmax=Math.max(_3f7.hmax,x);_3f7.vmin=Math.min(_3f7.vmin,val.open,val.close,val.high,val.low);_3f7.vmax=Math.max(_3f7.vmax,val.open,val.close,val.high,val.low);}});}if("ymin" in run){_3f7.vmin=Math.min(_3f8,run.ymin);}if("ymax" in run){_3f7.vmax=Math.max(_3f9,run.ymax);}}return _3f7;},getSeriesStats:function(){var _3fa=this.collectStats(this.series);_3fa.hmin-=0.5;_3fa.hmax+=0.5;return _3fa;},render:function(dim,_3fb){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_3fb);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_3f3);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_3fc,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_3fd=Math.max(0,this._vScaler.bounds.lower),_3fe=vt(_3fd),_3ff=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_3fc=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 _400=t.next("candlestick",[this.opt,run]),s=run.group,_401=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){var _402=t.addMixin(_400,"candlestick",v,true);var x=ht(v.x||(j+0.5))+_3fb.l+gap,y=dim.height-_3fb.b,open=vt(v.open),_403=vt(v.close),high=vt(v.high),low=vt(v.low);if(low>high){var tmp=high;high=low;low=tmp;}if(_3fc>=1){var hl={x1:_3fc/2,x2:_3fc/2,y1:y-high,y2:y-low},op={x1:0,x2:((_3fc/2)+((_402.series.stroke.width||1)/2)),y1:y-open,y2:y-open},cl={x1:((_3fc/2)-((_402.series.stroke.width||1)/2)),x2:_3fc,y1:y-_403,y2:y-_403};shape=s.createGroup();shape.setTransform({dx:x,dy:0});var _404=shape.createGroup();_404.createLine(hl).setStroke(_402.series.stroke);_404.createLine(op).setStroke(_402.series.stroke);_404.createLine(cl).setStroke(_402.series.stroke);run.dyn.stroke=_402.series.stroke;if(_3ff){var o={element:"candlestick",index:j,run:run,shape:_404,x:x,y:y-Math.max(open,_403),cx:_3fc/2,cy:(y-Math.max(open,_403))+(Math.max(open>_403?open-_403:_403-open,1)/2),width:_3fc,height:Math.max(open>_403?open-_403:_403-open,1),data:v};this._connectEvents(o);_401[j]=o;}}if(this.animate){this._animateOHLC(shape,y-low,high-low);}}}this._eventSeries[run.name]=_401;run.dirty=false;}this.dirty=false;return this;},_animateOHLC:function(_405,_406,_407){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_405,duration:1200,transform:[{name:"translate",start:[0,_406-(_406/_407)],end:[0,0]},{name:"scale",start:[1,1/_407],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.Chart2D"]){dojo._hasResource["dojox.charting.Chart2D"]=true;dojo.provide("dojox.charting.Chart2D");(function(){var df=dojox.lang.functional,dc=dojox.charting,_408=df.lambda("item.clear()"),_409=df.lambda("item.purgeGroup()"),_40a=df.lambda("item.destroy()"),_40b=df.lambda("item.dirty = false"),_40c=df.lambda("item.dirty = true"),_40d=df.lambda("item.name");dojo.declare("dojox.charting.Chart2D",null,{constructor:function(node,_40e){if(!_40e){_40e={};}this.margins=_40e.margins?_40e.margins:{l:10,t:10,r:10,b:10};this.stroke=_40e.stroke;this.fill=_40e.fill;this.delayInMs=_40e.delayInMs||200;this.theme=null;this.axes={};this.stack=[];this.plots={};this.series=[];this.runs={};this.dirty=true;this.coords=null;this.node=dojo.byId(node);var box=dojo.marginBox(node);this.surface=dojox.gfx.createSurface(this.node,box.w||400,box.h||300);},destroy:function(){dojo.forEach(this.series,_40a);dojo.forEach(this.stack,_40a);df.forIn(this.axes,_40a);this.surface.destroy();},getCoords:function(){if(!this.coords){this.coords=dojo.coords(this.node,true);}return this.coords;},setTheme:function(_40f){this.theme=_40f.clone();this.dirty=true;return this;},addAxis:function(name,_410){var axis;if(!_410||!("type" in _410)){axis=new dc.axis2d.Default(this,_410);}else{axis=typeof _410.type=="string"?new dc.axis2d[_410.type](this,_410):new _410.type(this,_410);}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,_411){var plot;if(!_411||!("type" in _411)){plot=new dc.plot2d.Default(this,_411);}else{plot=typeof _411.type=="string"?new dc.plot2d[_411.type](this,_411):new _411.type(this,_411);}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;},removePlot:function(name){if(name in this.plots){var _412=this.plots[name];delete this.plots[name];this.stack[_412].destroy();this.stack.splice(_412,1);df.forIn(this.plots,function(idx,name,_413){if(idx>_412){_413[name]=idx-1;}});this.dirty=true;}return this;},getPlotOrder:function(){return df.map(this.stack,_40d);},setPlotOrder:function(_414){var _415={},_416=df.filter(_414,function(name){if(!(name in this.plots)||(name in _415)){return false;}_415[name]=1;return true;},this);if(_416.length<this.stack.length){df.forEach(this.stack,function(plot){var name=plot.name;if(!(name in _415)){_416.push(name);}});}var _417=df.map(_416,function(name){return this.stack[this.plots[name]];},this);df.forEach(_417,function(plot,i){this.plots[plot.name]=i;},this);this.stack=_417;this.dirty=true;return this;},movePlotToFront:function(name){if(name in this.plots){var _418=this.plots[name];if(_418){var _419=this.getPlotOrder();_419.splice(_418,1);_419.unshift(name);return this.setPlotOrder(_419);}}return this;},movePlotToBack:function(name){if(name in this.plots){var _41a=this.plots[name];if(_41a<this.stack.length-1){var _41b=this.getPlotOrder();_41b.splice(_41a,1);_41b.push(name);return this.setPlotOrder(_41b);}}return this;},addSeries:function(name,data,_41c){var run=new dc.Series(this,data,_41c);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;},removeSeries:function(name){if(name in this.runs){var _41d=this.runs[name],_41e=this.series[_41d].plot;delete this.runs[name];this.series[_41d].destroy();this.series.splice(_41d,1);df.forIn(this.runs,function(idx,name,runs){if(idx>_41d){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(_41f){return df.map(df.filter(this.series,function(run){return run.plot==_41f;}),_40d);},setSeriesOrder:function(_420){var _421,_422={},_423=df.filter(_420,function(name){if(!(name in this.runs)||(name in _422)){return false;}var run=this.series[this.runs[name]];if(_421){if(run.plot!=_421){return false;}}else{_421=run.plot;}_422[name]=1;return true;},this);df.forEach(this.series,function(run){var name=run.name;if(!(name in _422)&&run.plot==_421){_423.push(name);}});var _424=df.map(_423,function(name){return this.series[this.runs[name]];},this);this.series=_424.concat(df.filter(this.series,function(run){return run.plot!=_421;}));df.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 _425=this.runs[name],_426=this.getSeriesOrder(this.series[_425].plot);if(name!=_426[0]){_426.splice(_425,1);_426.unshift(name);return this.setSeriesOrder(_426);}}return this;},moveSeriesToBack:function(name){if(name in this.runs){var _427=this.runs[name],_428=this.getSeriesOrder(this.series[_427].plot);if(name!=_428[_428.length-1]){_428.splice(_427,1);_428.push(name);return this.setSeriesOrder(_428);}}return this;},resize:function(_429,_42a){var box;switch(arguments.length){case 0:box=dojo.marginBox(this.node);break;case 1:box=_429;break;default:box={w:_429,h:_42a};break;}dojo.marginBox(this.node,box);this.surface.setDimensions(box.w,box.h);this.dirty=true;this.coords=null;return this.render();},getGeometry:function(){var ret={};df.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,_42b,_42c,zoom){var axis=this.axes[name];if(axis){axis.setWindow(_42b,_42c);dojo.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();}df.forIn(this.axes,function(axis){var _42d,_42e,_42f=axis.getScaler().bounds,s=_42f.span/(_42f.upper-_42f.lower);if(axis.vertical){_42d=sy;_42e=dy/s/_42d;}else{_42d=sx;_42e=dx/s/_42d;}axis.setWindow(_42d,_42e);});dojo.forEach(this.stack,function(plot){plot.zoom=zoom;});return this;},zoomIn:function(name,_430){var axis=this.axes[name];if(axis){var _431,_432,_433=axis.getScaler().bounds;var _434=Math.min(_430[0],_430[1]);var _435=Math.max(_430[0],_430[1]);_434=_430[0]<_433.lower?_433.lower:_434;_435=_430[1]>_433.upper?_433.upper:_435;_431=(_433.upper-_433.lower)/(_435-_434);_432=_434-_433.lower;this.setAxisWindow(name,_431,_432);this.render();}},calculateGeometry:function(){if(this.dirty){return this.fullGeometry();}var _436=dojo.filter(this.stack,function(plot){return plot.dirty||(plot.hAxis&&this.axes[plot.hAxis].dirty)||(plot.vAxis&&this.axes[plot.vAxis].dirty);},this);_437(_436,this.plotArea);return this;},fullGeometry:function(){this._makeDirty();dojo.forEach(this.stack,_408);if(!this.theme){this.setTheme(new dojox.charting.Theme(dojox.charting._def));}dojo.forEach(this.series,function(run){if(!(run.plot in this.plots)){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);dojo.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=dojox.gfx.normalizedLength(dim.width);dim.height=dojox.gfx.normalizedLength(dim.height);df.forIn(this.axes,_408);_437(this.stack,dim);var _438=this.offsets={l:0,r:0,t:0,b:0};df.forIn(this.axes,function(axis){df.forIn(axis.getOffsets(),function(o,i){_438[i]+=o;});});df.forIn(this.margins,function(o,i){_438[i]+=o;});this.plotArea={width:dim.width-_438.l-_438.r,height:dim.height-_438.t-_438.b};df.forIn(this.axes,_408);_437(this.stack,this.plotArea);return this;},render:function(){if(this.theme){this.theme.clear();}if(this.dirty){return this.fullRender();}this.calculateGeometry();df.forEachRev(this.stack,function(plot){plot.render(this.dim,this.offsets);},this);df.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 _439=this.offsets,dim=this.dim;dojo.forEach(this.series,_409);df.forIn(this.axes,_409);dojo.forEach(this.stack,_409);this.surface.clear();var t=this.theme,fill=t.plotarea&&t.plotarea.fill,_43a=t.plotarea&&t.plotarea.stroke;if(fill){this.surface.createRect({x:_439.l-1,y:_439.t-1,width:dim.width-_439.l-_439.r+2,height:dim.height-_439.t-_439.b+2}).setFill(fill);}if(_43a){this.surface.createRect({x:_439.l,y:_439.t,width:dim.width-_439.l-_439.r+1,height:dim.height-_439.t-_439.b+1}).setStroke(_43a);}df.foldr(this.stack,function(z,plot){return plot.render(dim,_439),0;},0);fill=this.fill!==undefined?this.fill:(t.chart&&t.chart.fill);_43a=this.stroke!==undefined?this.stroke:(t.chart&&t.chart.stroke);if(fill=="inherit"){var node=this.node,fill=new dojo.Color(dojo.style(node,"backgroundColor"));while(fill.a==0&&node!=document.documentElement){fill=new dojo.Color(dojo.style(node,"backgroundColor"));node=node.parentNode;}}if(fill){if(_439.l){this.surface.createRect({width:_439.l,height:dim.height+1}).setFill(fill);}if(_439.r){this.surface.createRect({x:dim.width-_439.r,width:_439.r+1,height:dim.height+2}).setFill(fill);}if(_439.t){this.surface.createRect({width:dim.width+1,height:_439.t}).setFill(fill);}if(_439.b){this.surface.createRect({y:dim.height-_439.b,width:dim.width+1,height:_439.b+2}).setFill(fill);}}if(_43a){this.surface.createRect({width:dim.width-1,height:dim.height-1}).setStroke(_43a);}df.forIn(this.axes,function(axis){axis.render(dim,_439);});this._makeClean();if(this.surface.render){this.surface.render();}return this;},delayedRender:function(){if(!this._delayedRenderHandle){this._delayedRenderHandle=setTimeout(dojo.hitch(this,function(){clearTimeout(this._delayedRenderHandle);this._delayedRenderHandle=null;this.render();}),this.delayInMs);}return this;},connectToPlot:function(name,_43b,_43c){return name in this.plots?this.stack[this.plots[name]].connect(_43b,_43c):null;},fireEvent:function(_43d,_43e,_43f){if(_43d in this.runs){var _440=this.series[this.runs[_43d]].plot;if(_440 in this.plots){var plot=this.stack[this.plots[_440]];if(plot){plot.fireEvent(_43d,_43e,_43f);}}}return this;},_makeClean:function(){dojo.forEach(this.axes,_40b);dojo.forEach(this.stack,_40b);dojo.forEach(this.series,_40b);this.dirty=false;},_makeDirty:function(){dojo.forEach(this.axes,_40c);dojo.forEach(this.stack,_40c);dojo.forEach(this.series,_40c);this.dirty=true;},_invalidateDependentPlots:function(_441,_442){if(_441 in this.plots){var plot=this.stack[this.plots[_441]],axis,_443=_442?"vAxis":"hAxis";if(plot[_443]){axis=this.axes[plot[_443]];if(axis&&axis.dependOnData()){axis.dirty=true;dojo.forEach(this.stack,function(p){if(p[_443]&&p[_443]==plot[_443]){p.dirty=true;}});}}else{plot.dirty=true;}}}});function _444(_445){return {min:_445.hmin,max:_445.hmax};};function _446(_447){return {min:_447.vmin,max:_447.vmax};};function _448(_449,h){_449.hmin=h.min;_449.hmax=h.max;};function _44a(_44b,v){_44b.vmin=v.min;_44b.vmax=v.max;};function _44c(_44d,_44e){if(_44d&&_44e){_44d.min=Math.min(_44d.min,_44e.min);_44d.max=Math.max(_44d.max,_44e.max);}return _44d||_44e;};function _437(_44f,_450){var _451={},axes={};dojo.forEach(_44f,function(plot){var _452=_451[plot.name]=plot.getSeriesStats();if(plot.hAxis){axes[plot.hAxis]=_44c(axes[plot.hAxis],_444(_452));}if(plot.vAxis){axes[plot.vAxis]=_44c(axes[plot.vAxis],_446(_452));}});dojo.forEach(_44f,function(plot){var _453=_451[plot.name];if(plot.hAxis){_448(_453,axes[plot.hAxis]);}if(plot.vAxis){_44a(_453,axes[plot.vAxis]);}plot.initializeScalers(_450,_453);});};})();}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");dojo.fx.easing={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-dojo.fx.easing.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 dojo.fx.easing.bounceIn(n*2)/2;}return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["dojox.charting.action2d.Base"]){dojo._hasResource["dojox.charting.action2d.Base"]=true;dojo.provide("dojox.charting.action2d.Base");(function(){var _454=400,_455=dojo.fx.easing.backOut,df=dojox.lang.functional;dojo.declare("dojox.charting.action2d.Base",null,{overOutEvents:{onmouseover:1,onmouseout:1},constructor:function(_456,plot,_457){this.chart=_456;this.plot=plot||"default";this.anim={};if(!_457){_457={};}this.duration=_457.duration?_457.duration:_454;this.easing=_457.easing?_457.easing:_455;},connect:function(){this.handle=this.chart.connectToPlot(this.plot,this,"process");},disconnect:function(){if(this.handle){dojo.disconnect(this.handle);this.handle=null;}},reset:function(){},destroy:function(){this.disconnect();df.forIn(this.anim,function(o){df.forIn(o,function(anim){anim.action.stop(true);});});this.anim={};}});})();}if(!dojo._hasResource["dojox.charting.action2d.Highlight"]){dojo._hasResource["dojox.charting.action2d.Highlight"]=true;dojo.provide("dojox.charting.action2d.Highlight");(function(){var _458=100,_459=75,_45a=50,c=dojox.color,cc=function(_45b){return function(){return _45b;};},hl=function(_45c){var a=new c.Color(_45c),x=a.toHsl();if(x.s==0){x.l=x.l<50?100:0;}else{x.s=_458;if(x.l<_45a){x.l=_459;}else{if(x.l>_459){x.l=_45a;}else{x.l=x.l-_45a>_459-x.l?_45a:_459;}}}return c.fromHsl(x);};dojo.declare("dojox.charting.action2d.Highlight",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut},optionalParams:{highlight:"red"},constructor:function(_45d,plot,_45e){var a=_45e&&_45e.highlight;this.colorFun=a?(dojo.isFunction(a)?a:cc(a)):hl;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)){return;}var _45f=o.run.name,_460=o.index,anim,_461,_462;if(_45f in this.anim){anim=this.anim[_45f][_460];}else{this.anim[_45f]={};}if(anim){anim.action.stop(true);}else{var _463=o.shape.getFill();if(!_463||!(_463 instanceof dojo.Color)){return;}this.anim[_45f][_460]=anim={start:_463,end:this.colorFun(_463)};}var _464=anim.start,end=anim.end;if(o.type=="onmouseout"){var t=_464;_464=end;end=t;}anim.action=dojox.gfx.fx.animateFill({shape:o.shape,duration:this.duration,easing:this.easing,color:{start:_464,end:end}});if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_45f]){delete this.anim[_45f][_460];}});}anim.action.play();}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){var _465=this;dojo.mixin(_465,args);_465.node=args.node;_465._showArgs=dojo.mixin({},args);_465._showArgs.node=_465.node;_465._showArgs.duration=_465.showDuration;_465.showAnim=_465.showFunc(_465._showArgs);_465._hideArgs=dojo.mixin({},args);_465._hideArgs.node=_465.node;_465._hideArgs.duration=_465.hideDuration;_465.hideAnim=_465.hideFunc(_465._hideArgs);dojo.connect(_465.showAnim,"beforeBegin",dojo.hitch(_465.hideAnim,"stop",true));dojo.connect(_465.hideAnim,"beforeBegin",dojo.hitch(_465.showAnim,"stop",true));},show:function(_466){return this.showAnim.play(_466||0);},hide:function(_467){return this.hideAnim.play(_467||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_468={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _469=function(_46a){this._index=-1;this._animations=_46a||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_469,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.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=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_46b,_46c){if(!this._current){this._current=this._animations[this._index=0];}if(!_46c&&this._current.status()=="playing"){return this;}var _46d=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_46e=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_46f=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_46d);d.disconnect(_46e);d.disconnect(_46f);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_470,_471){this.pause();var _472=this.duration*_470;this._current=null;d.some(this._animations,function(a){if(a.duration<=_472){this._current=a;return true;}_472-=a.duration;return false;});if(this._current){this._current.gotoPercent(_472/this._current.duration,_471);}return this;},stop:function(_473){if(this._current){if(_473){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_469,_468);dojo.fx.chain=function(_474){return new _469(_474);};var _475=function(_476){this._animations=_476||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_476,function(a){var _477=a.duration;if(a.delay){_477+=a.delay;}if(this.duration<_477){this.duration=_477;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_475,{_doAction:function(_478,args){d.forEach(this._animations,function(a){a[_478].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_479,args){var t=this._pseudoAnimation;t[_479].apply(t,args);},play:function(_47a,_47b){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(_47c,_47d){var ms=this.duration*_47c;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_47d);});this._call("gotoPercent",arguments);return this;},stop:function(_47e){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_475,_468);dojo.fx.combine=function(_47f){return new _475(_47f);};dojo.fx.wipeIn=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.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 _480=d.style(node,"height");return Math.max(_480,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.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=d.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=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dojox.charting.action2d.Magnify"]){dojo._hasResource["dojox.charting.action2d.Magnify"]=true;dojo.provide("dojox.charting.action2d.Magnify");(function(){var _481=2,m=dojox.gfx.matrix,gf=dojox.gfx.fx;dojo.declare("dojox.charting.action2d.Magnify",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut,scale:_481},optionalParams:{},constructor:function(_482,plot,_483){this.scale=_483&&typeof _483.scale=="number"?_483.scale:_481;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)||!("cx" in o)||!("cy" in o)){return;}var _484=o.run.name,_485=o.index,_486=[],anim,init,_487;if(_484 in this.anim){anim=this.anim[_484][_485];}else{this.anim[_484]={};}if(anim){anim.action.stop(true);}else{this.anim[_484][_485]=anim={};}if(o.type=="onmouseover"){init=m.identity;_487=this.scale;}else{init=m.scaleAt(this.scale,o.cx,o.cy);_487=1/this.scale;}var _488={shape:o.shape,duration:this.duration,easing:this.easing,transform:[{name:"scaleAt",start:[1,o.cx,o.cy],end:[_487,o.cx,o.cy]},init]};if(o.shape){_486.push(gf.animateTransform(_488));}if(o.oultine){_488.shape=o.outline;_486.push(gf.animateTransform(_488));}if(o.shadow){_488.shape=o.shadow;_486.push(gf.animateTransform(_488));}if(!_486.length){delete this.anim[_484][_485];return;}anim.action=dojo.fx.combine(_486);if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_484]){delete this.anim[_484][_485];}});}anim.action.play();}});})();}if(!dojo._hasResource["dojox.lang.functional.scan"]){dojo._hasResource["dojox.lang.functional.scan"]=true;dojo.provide("dojox.lang.functional.scan");(function(){var d=dojo,df=dojox.lang.functional,_489={};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 _489)){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,_48a=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(var i=1;a.hasNext();t.push(z=f.call(o,z,a.next(),i++,a))){}}}else{for(var i in a){if(!(i in _489)){if(_48a){t=[z=a[i]];_48a=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;}});})();}if(!dojo._hasResource["dojox.charting.action2d.MoveSlice"]){dojo._hasResource["dojox.charting.action2d.MoveSlice"]=true;dojo.provide("dojox.charting.action2d.MoveSlice");(function(){var _48b=1.05,_48c=7,m=dojox.gfx.matrix,gf=dojox.gfx.fx,df=dojox.lang.functional;dojo.declare("dojox.charting.action2d.MoveSlice",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut,scale:_48b,shift:_48c},optionalParams:{},constructor:function(_48d,plot,_48e){if(!_48e){_48e={};}this.scale=typeof _48e.scale=="number"?_48e.scale:_48b;this.shift=typeof _48e.shift=="number"?_48e.shift:_48c;this.connect();},process:function(o){if(!o.shape||o.element!="slice"||!(o.type in this.overOutEvents)){return;}if(!this.angles){var _48f=m._degToRad(o.plot.opt.startAngle);if(typeof o.run.data[0]=="number"){this.angles=df.map(df.scanl(o.run.data,"+",_48f),"* 2 * Math.PI / this",df.foldl(o.run.data,"+",0));}else{this.angles=df.map(df.scanl(o.run.data,"a + b.y",_48f),"* 2 * Math.PI / this",df.foldl(o.run.data,"a + b.y",0));}}var _490=o.index,anim,_491,_492,_493,_494,_495=(this.angles[_490]+this.angles[_490+1])/2,_496=m.rotateAt(-_495,o.cx,o.cy),_497=m.rotateAt(_495,o.cx,o.cy);anim=this.anim[_490];if(anim){anim.action.stop(true);}else{this.anim[_490]=anim={};}if(o.type=="onmouseover"){_493=0;_494=this.shift;_491=1;_492=this.scale;}else{_493=this.shift;_494=0;_491=this.scale;_492=1;}anim.action=dojox.gfx.fx.animateTransform({shape:o.shape,duration:this.duration,easing:this.easing,transform:[_497,{name:"translate",start:[_493,0],end:[_494,0]},{name:"scaleAt",start:[_491,o.cx,o.cy],end:[_492,o.cx,o.cy]},_496]});if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){delete this.anim[_490];});}anim.action.play();},reset:function(){delete this.angles;}});})();}if(!dojo._hasResource["dojox.charting.action2d.Shake"]){dojo._hasResource["dojox.charting.action2d.Shake"]=true;dojo.provide("dojox.charting.action2d.Shake");(function(){var _498=3,m=dojox.gfx.matrix,gf=dojox.gfx.fx;dojo.declare("dojox.charting.action2d.Shake",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut,shiftX:_498,shiftY:_498},optionalParams:{},constructor:function(_499,plot,_49a){if(!_49a){_49a={};}this.shiftX=typeof _49a.shiftX=="number"?_49a.shiftX:_498;this.shiftY=typeof _49a.shiftY=="number"?_49a.shiftY:_498;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)){return;}var _49b=o.run.name,_49c=o.index,_49d=[],anim,_49e=o.type=="onmouseover"?this.shiftX:-this.shiftX,_49f=o.type=="onmouseover"?this.shiftY:-this.shiftY;if(_49b in this.anim){anim=this.anim[_49b][_49c];}else{this.anim[_49b]={};}if(anim){anim.action.stop(true);}else{this.anim[_49b][_49c]=anim={};}var _4a0={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){_49d.push(gf.animateTransform(_4a0));}if(o.oultine){_4a0.shape=o.outline;_49d.push(gf.animateTransform(_4a0));}if(o.shadow){_4a0.shape=o.shadow;_49d.push(gf.animateTransform(_4a0));}if(!_49d.length){delete this.anim[_49b][_49c];return;}anim.action=dojo.fx.combine(_49d);if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_49b]){delete this.anim[_49b][_49c];}});}anim.action.play();}});})();}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_4a1,_4a2){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _4a3=dojo.date.stamp._isoRegExp.exec(_4a1),_4a4=null;if(_4a3){_4a3.shift();if(_4a3[1]){_4a3[1]--;}if(_4a3[6]){_4a3[6]*=1000;}if(_4a2){_4a2=new Date(_4a2);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _4a2["get"+prop]();}),function(_4a5,_4a6){_4a3[_4a6]=_4a3[_4a6]||_4a5;});}_4a4=new Date(_4a3[0]||1970,_4a3[1]||0,_4a3[2]||1,_4a3[3]||0,_4a3[4]||0,_4a3[5]||0,_4a3[6]||0);if(_4a3[0]<100){_4a4.setFullYear(_4a3[0]||1970);}var _4a7=0,_4a8=_4a3[7]&&_4a3[7].charAt(0);if(_4a8!="Z"){_4a7=((_4a3[8]||0)*60)+(Number(_4a3[9])||0);if(_4a8!="-"){_4a7*=-1;}}if(_4a8){_4a7-=_4a4.getTimezoneOffset();}if(_4a7){_4a4.setTime(_4a4.getTime()+_4a7*60000);}}return _4a4;};dojo.date.stamp.toISOString=function(_4a9,_4aa){var _4ab=function(n){return (n<10)?"0"+n:n;};_4aa=_4aa||{};var _4ac=[],_4ad=_4aa.zulu?"getUTC":"get",date="";if(_4aa.selector!="time"){var year=_4a9[_4ad+"FullYear"]();date=["0000".substr((year+"").length)+year,_4ab(_4a9[_4ad+"Month"]()+1),_4ab(_4a9[_4ad+"Date"]())].join("-");}_4ac.push(date);if(_4aa.selector!="date"){var time=[_4ab(_4a9[_4ad+"Hours"]()),_4ab(_4a9[_4ad+"Minutes"]()),_4ab(_4a9[_4ad+"Seconds"]())].join(":");var _4ae=_4a9[_4ad+"Milliseconds"]();if(_4aa.milliseconds){time+="."+(_4ae<100?"0":"")+_4ab(_4ae);}if(_4aa.zulu){time+="Z";}else{if(_4aa.selector!="time"){var _4af=_4a9.getTimezoneOffset();var _4b0=Math.abs(_4af);time+=(_4af>0?"-":"+")+_4ab(Math.floor(_4b0/60))+":"+_4ab(_4b0%60);}}_4ac.push(time);}return _4ac.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;this._attrName=d._scopeName+"Type";this._query="["+this._attrName+"]";function _4b1(_4b2){if(d.isString(_4b2)){return "string";}if(typeof _4b2=="number"){return "number";}if(typeof _4b2=="boolean"){return "boolean";}if(d.isFunction(_4b2)){return "function";}if(d.isArray(_4b2)){return "array";}if(_4b2 instanceof Date){return "date";}if(_4b2 instanceof d._Url){return "url";}return "object";};function _4b3(_4b4,type){switch(type){case "string":return _4b4;case "number":return _4b4.length?Number(_4b4):NaN;case "boolean":return typeof _4b4=="boolean"?_4b4:!(_4b4.toLowerCase()=="false");case "function":if(d.isFunction(_4b4)){_4b4=_4b4.toString();_4b4=d.trim(_4b4.substring(_4b4.indexOf("{")+1,_4b4.length-1));}try{if(_4b4===""||_4b4.search(/[^\w\.]+/i)!=-1){return new Function(_4b4);}else{return d.getObject(_4b4,false)||new Function(_4b4);}}catch(e){return new Function();}case "array":return _4b4?_4b4.split(/\s*,\s*/):[];case "date":switch(_4b4){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_4b4);}case "url":return d.baseUrl+_4b4;default:return d.fromJson(_4b4);}};var _4b5={};dojo.connect(dojo,"extend",function(){_4b5={};});function _4b6(_4b7){if(!_4b5[_4b7]){var cls=d.getObject(_4b7);if(!cls){return null;}var _4b8=cls.prototype;var _4b9={},_4ba={};for(var name in _4b8){if(name.charAt(0)=="_"){continue;}if(name in _4ba){continue;}var _4bb=_4b8[name];_4b9[name]=_4b1(_4bb);}_4b5[_4b7]={cls:cls,params:_4b9};}return _4b5[_4b7];};this._functionFromScript=function(_4bc){var _4bd="";var _4be="";var _4bf=_4bc.getAttribute("args");if(_4bf){d.forEach(_4bf.split(/\s*,\s*/),function(part,idx){_4bd+="var "+part+" = arguments["+idx+"]; ";});}var _4c0=_4bc.getAttribute("with");if(_4c0&&_4c0.length){d.forEach(_4c0.split(/\s*,\s*/),function(part){_4bd+="with("+part+"){";_4be+="}";});}return new Function(_4bd+_4bc.innerHTML+_4be);};this.instantiate=function(_4c1,_4c2,args){var _4c3=[],dp=dojo.parser;_4c2=_4c2||{};args=args||{};d.forEach(_4c1,function(obj){if(!obj){return;}var node,type,_4c4,_4c5,_4c6;if(obj.node){node=obj.node;type=obj.type;_4c4=obj.clsInfo||(type&&_4b6(type));_4c5=_4c4&&_4c4.cls;_4c6=obj.scripts;}else{node=obj;type=dp._attrName in _4c2?_4c2[dp._attrName]:node.getAttribute(dp._attrName);_4c4=type&&_4b6(type);_4c5=_4c4&&_4c4.cls;_4c6=(_4c5&&(_4c5._noScript||_4c5.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));}if(!_4c4){throw new Error("Could not load class '"+type);}var _4c7={},_4c8=node.attributes;if(args.defaults){dojo.mixin(_4c7,args.defaults);}if(obj.inherited){dojo.mixin(_4c7,obj.inherited);}for(var name in _4c4.params){var item=name in _4c2?{value:_4c2[name],specified:true}:_4c8.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _4c9=item.value;switch(name){case "class":_4c9="className" in _4c2?_4c2.className:node.className;break;case "style":_4c9="style" in _4c2?_4c2.style:(node.style&&node.style.cssText);}var _4ca=_4c4.params[name];if(typeof _4c9=="string"){_4c7[name]=_4b3(_4c9,_4ca);}else{_4c7[name]=_4c9;}}var _4cb=[],_4cc=[];d.forEach(_4c6,function(_4cd){node.removeChild(_4cd);var _4ce=_4cd.getAttribute("event"),type=_4cd.getAttribute("type"),nf=d.parser._functionFromScript(_4cd);if(_4ce){if(type=="dojo/connect"){_4cb.push({event:_4ce,func:nf});}else{_4c7[_4ce]=nf;}}else{_4cc.push(nf);}});var _4cf=_4c5.markupFactory||_4c5.prototype&&_4c5.prototype.markupFactory;var _4d0=_4cf?_4cf(_4c7,node,_4c5):new _4c5(_4c7,node);_4c3.push(_4d0);var _4d1=node.getAttribute("jsId");if(_4d1){d.setObject(_4d1,_4d0);}d.forEach(_4cb,function(_4d2){d.connect(_4d0,_4d2.event,null,_4d2.func);});d.forEach(_4cc,function(func){func.call(_4d0);});});if(!_4c2._started){d.forEach(_4c3,function(_4d3){if(!args.noStart&&_4d3&&_4d3.startup&&!_4d3._started&&(!_4d3.getParent||!_4d3.getParent())){_4d3.startup();}});}return _4c3;};this.parse=function(_4d4,args){var root;if(!args&&_4d4&&_4d4.rootNode){args=_4d4;root=args.rootNode;}else{root=_4d4;}var _4d5=this._attrName;function scan(_4d6,list){var _4d7=dojo.clone(_4d6.inherited);dojo.forEach(["dir","lang"],function(name){var val=_4d6.node.getAttribute(name);if(val){_4d7[name]=val;}});var _4d8=_4d6.clsInfo&&!_4d6.clsInfo.cls.prototype._noScript?_4d6.scripts:null;var _4d9=!_4d6.clsInfo||!_4d6.clsInfo.cls.prototype.stopParser;for(var _4da=_4d6.node.firstChild;_4da;_4da=_4da.nextSibling){if(_4da.nodeType==1){var type=_4d9&&_4da.getAttribute(_4d5);if(type){var _4db={"type":type,clsInfo:_4b6(type),node:_4da,scripts:[],inherited:_4d7};list.push(_4db);scan(_4db,list);}else{if(_4d8&&_4da.nodeName.toLowerCase()=="script"){type=_4da.getAttribute("type");if(type&&/^dojo\/\w/i.test(type)){_4d8.push(_4da);}}else{if(_4d9){scan({node:_4da,inherited:_4d7},list);}}}}}};var list=[];scan({node:root?dojo.byId(root):dojo.body(),inherited:(args&&args.inherited)||{dir:dojo._isBodyLtr()?"ltr":"rtl"}},list);return this.instantiate(list,null,args);};}();(function(){var _4dc=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_4dc);}else{dojo._loaders.unshift(_4dc);}})();}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");(function(){var _4dd={};dojo.cache=function(_4de,url,_4df){if(typeof _4de=="string"){var _4e0=dojo.moduleUrl(_4de,url);}else{_4e0=_4de;_4df=url;}var key=_4e0.toString();var val=_4df;if(_4df!=undefined&&!dojo.isString(_4df)){val=("value" in _4df?_4df.value:undefined);}var _4e1=_4df&&_4df.sanitize?true:false;if(typeof val=="string"){val=_4dd[key]=_4e1?dojo.cache._sanitize(val):val;}else{if(val===null){delete _4dd[key];}else{if(!(key in _4dd)){val=dojo._getText(key);_4dd[key]=_4e1?dojo.cache._sanitize(val):val;}val=_4dd[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _4e2=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_4e2){val=_4e2[1];}}else{val="";}return val;};})();}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];},_stringRepl:function(tmpl){var _4e3=this.declaredClass,_4e4=this;return dojo.string.substitute(tmpl,this,function(_4e5,key){if(key.charAt(0)=="!"){_4e5=dojo.getObject(key.substr(1),false,_4e4);}if(typeof _4e5=="undefined"){throw new Error(_4e3+" template:"+key);}if(_4e5==null){return "";}return key.charAt(0)=="!"?_4e5:_4e5.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _4e6=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_4e6)){node=dojo._toDom(this._stringRepl(_4e6));if(node.nodeType!=1){throw new Error("Invalid template: "+_4e6);}}else{node=_4e6.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _4e7=dojo.parser,qry,attr;if(_4e7._query!="[dojoType]"){qry=_4e7._query;attr=_4e7._attrName;_4e7._query="[dojoType]";_4e7._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,inherited:{dir:this.dir,lang:this.lang}}));if(qry){_4e7._query=qry;_4e7._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_4e8){var dest=this.containerNode;if(_4e8&&dest){while(_4e8.hasChildNodes()){dest.appendChild(_4e8.firstChild);}}},_attachTemplateNodes:function(_4e9,_4ea){_4ea=_4ea||function(n,p){return n.getAttribute(p);};var _4eb=dojo.isArray(_4e9)?_4e9:(_4e9.all||_4e9.getElementsByTagName("*"));var x=dojo.isArray(_4e9)?0:-1;for(;x<_4eb.length;x++){var _4ec=(x==-1)?_4e9:_4eb[x];if(this.widgetsInTemplate&&_4ea(_4ec,"dojoType")){continue;}var _4ed=_4ea(_4ec,"dojoAttachPoint");if(_4ed){var _4ee,_4ef=_4ed.split(/\s*,\s*/);while((_4ee=_4ef.shift())){if(dojo.isArray(this[_4ee])){this[_4ee].push(_4ec);}else{this[_4ee]=_4ec;}this._attachPoints.push(_4ee);}}var _4f0=_4ea(_4ec,"dojoAttachEvent");if(_4f0){var _4f1,_4f2=_4f0.split(/\s*,\s*/);var trim=dojo.trim;while((_4f1=_4f2.shift())){if(_4f1){var _4f3=null;if(_4f1.indexOf(":")!=-1){var _4f4=_4f1.split(":");_4f1=trim(_4f4[0]);_4f3=trim(_4f4[1]);}else{_4f1=trim(_4f1);}if(!_4f3){_4f3=_4f1;}this.connect(_4ec,_4f1,_4f3);}}}var role=_4ea(_4ec,"waiRole");if(role){dijit.setWaiRole(_4ec,role);}var _4f5=_4ea(_4ec,"waiState");if(_4f5){dojo.forEach(_4f5.split(/\s*,\s*/),function(_4f6){if(_4f6.indexOf("-")!=-1){var pair=_4f6.split("-");dijit.setWaiState(_4ec,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_4f7){delete this[_4f7];},this);this._attachPoints=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_4f8,_4f9,_4fa){var _4fb=dijit._Templated._templateCache;var key=_4f9||_4f8;var _4fc=_4fb[key];if(_4fc){try{if(!_4fc.ownerDocument||_4fc.ownerDocument==dojo.doc){return _4fc;}}catch(e){}dojo.destroy(_4fc);}if(!_4f9){_4f9=dojo.cache(_4f8,{sanitize:true});}_4f9=dojo.string.trim(_4f9);if(_4fa||_4f9.match(/\$\{([^\}]+)\}/g)){return (_4fb[key]=_4f9);}else{var node=dojo._toDom(_4f9);if(node.nodeType!=1){throw new Error("Invalid template: "+_4f9);}return (_4fb[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _4fd=dijit._Templated._templateCache;for(var key in _4fd){var _4fe=_4fd[key];if(typeof _4fe=="object"){dojo.destroy(_4fe);}delete _4fd[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\n\t<div class=\"dijitTooltipConnector\"></div>\n</div>\n"),postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_4ff,_500,_501,rtl){if(this.aroundNode&&this.aroundNode===_500){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_4ff;var pos=dijit.placeOnScreenAroundElement(this.domNode,_500,dijit.getPopupAroundAlignment((_501&&_501.length)?_501:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_500;},orient:function(node,_502,_503){node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_502+"-"+_503];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_504){if(this._onDeck&&this._onDeck[1]==_504){this._onDeck=null;}else{if(this.aroundNode===_504){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;}}});dijit.showTooltip=function(_505,_506,_507,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_505,_506,_507,rtl);};dijit.hideTooltip=function(_508){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_508);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],constructor:function(){this._nodeConnectionsById={};},_setConnectIdAttr:function(_509){for(var _50a in this._nodeConnectionsById){this.removeTarget(_50a);}dojo.forEach(dojo.isArrayLike(_509)?_509:[_509],this.addTarget,this);},_getConnectIdAttr:function(){var ary=[];for(var id in this._nodeConnectionsById){ary.push(id);}return ary;},addTarget:function(id){var node=dojo.byId(id);if(!node){return;}if(node.id in this._nodeConnectionsById){return;}this._nodeConnectionsById[node.id]=[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")];},removeTarget:function(node){var id=node.id||node;if(id in this._nodeConnectionsById){dojo.forEach(this._nodeConnectionsById[id],this.disconnect,this);delete this._nodeConnectionsById[id];}},postCreate:function(){dojo.addClass(this.domNode,"dijitTooltipData");},startup:function(){this.inherited(arguments);var ids=this.connectId;dojo.forEach(dojo.isArrayLike(ids)?ids:[ids],this.addTarget,this);},_onTargetMouseEnter:function(e){this._onHover(e);},_onTargetMouseLeave:function(e){this._onUnHover(e);},_onTargetFocus:function(e){this._focus=true;this._onHover(e);},_onTargetBlur:function(e){this._focus=false;this._onUnHover(e);},_onHover:function(e){if(!this._showTimer){var _50b=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_50b);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_50c){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_50c,this.position,!this.isLeftToRight());this._connectNode=_50c;this.onShow(_50c,this.position);},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;this.onHide();}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},onShow:function(_50d,_50e){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dojox.charting.action2d.Tooltip"]){dojo._hasResource["dojox.charting.action2d.Tooltip"]=true;dojo.provide("dojox.charting.action2d.Tooltip");(function(){var _50f=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 df=dojox.lang.functional,m=dojox.gfx.matrix,pi4=Math.PI/4,pi2=Math.PI/2;dojo.declare("dojox.charting.action2d.Tooltip",dojox.charting.action2d.Base,{defaultParams:{text:_50f},optionalParams:{},constructor:function(_510,plot,_511){this.text=_511&&_511.text?_511.text:_50f;this.connect();},process:function(o){if(o.type==="onplotreset"||o.type==="onmouseout"){_512(this.aroundRect);this.aroundRect=null;return;}if(!o.shape||o.type!=="onmouseover"){return;}var _513={type:"rect"},_514=["after","before"];switch(o.element){case "marker":_513.x=o.cx;_513.y=o.cy;_513.width=_513.height=1;break;case "circle":_513.x=o.cx-o.cr;_513.y=o.cy-o.cr;_513.width=_513.height=2*o.cr;break;case "column":_514=["above","below"];case "bar":_513=dojo.clone(o.shape.getShape());break;case "candlestick":_513.x=o.x;_513.y=o.y;_513.width=o.width;_513.height=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 _515=m._degToRad(o.plot.opt.startAngle),_516=(this.angles[o.index]+this.angles[o.index+1])/2+_515;_513.x=o.cx+o.cr*Math.cos(_516);_513.y=o.cy+o.cr*Math.sin(_516);_513.width=_513.height=1;if(_516<pi4){}else{if(_516<pi2+pi4){_514=["below","above"];}else{if(_516<Math.PI+pi4){_514=["before","after"];}else{if(_516<2*Math.PI-pi4){_514=["above","below"];}}}}break;}var lt=dojo.coords(this.chart.node,true);_513.x+=lt.x;_513.y+=lt.y;_513.x=Math.round(_513.x);_513.y=Math.round(_513.y);_513.width=Math.ceil(_513.width);_513.height=Math.ceil(_513.height);this.aroundRect=_513;_517(this.text(o),this.aroundRect,_514,"center");}});var _518=dojo.declare(dijit._MasterTooltip,{show:function(_519,_51a,_51b,_51c){if(this.aroundNode&&this.aroundNode===_51a){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_519;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";if(!this.connectorNode){this.connectorNode=dojo.query(".dijitTooltipConnector",this.domNode)[0];}var _51d=dojo.coords(this.connectorNode);this.arrowWidth=_51d.w,this.arrowHeight=_51d.h;this.place=(_51c&&_51c=="center")?this.placeChartingTooltip:dijit.placeOnScreenAroundElement,this.place(this.domNode,_51a,dijit.getPopupAroundAlignment((_51b&&_51b.length)?_51b:dijit.Tooltip.defaultPosition,this.isLeftToRight()),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_51a;},placeChartingTooltip:function(node,_51e,_51f,_520){return this._placeOnScreenAroundRect(node,_51e.x,_51e.y,_51e.width,_51e.height,_51f,_520);},_placeOnScreenAroundRect:function(node,x,y,_521,_522,_523,_524){var _525=[];for(var _526 in _523){_525.push({aroundCorner:_526,corner:_523[_526],pos:{x:x+(_526.charAt(1)=="L"?0:_521),y:y+(_526.charAt(0)=="T"?0:_522),w:_521,h:_522}});}return this._place(node,_525,_524);},_place:function(node,_527,_528){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;var _529=null,_52a=null;dojo.some(_527,function(_52b){var _52c=_52b.corner;var _52d=_52b.aroundCorner;var pos=_52b.pos;if(_528){_528(node,_52b.aroundCorner,_52c);}var _52e=node.style;var _52f=_52e.display;var _530=_52e.visibility;_52e.visibility="hidden";_52e.display="";var mb=dojo.marginBox(node);_52e.display=_52f;_52e.visibility=_530;var _531,_532,endX,endY,_533,_534,_535;_529=null,_52a=null;if(_52d.charAt(0)==_52c.charAt(0)){_531=(_52c.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_532=(_52c.charAt(0)=="T"?(pos.y+pos.h/2-mb.h/2):(pos.y-pos.h/2-mb.h/2)),endX=(_52c.charAt(1)=="L"?Math.min(view.l+view.w,_531+mb.w):pos.x),endY=_532+mb.h,_533=endX-_531,_534=endY-_532,_535=(mb.w-_533)+(mb.h-_534);_52a=(mb.h-this.arrowHeight)/2;}else{_531=(_52c.charAt(1)=="L"?(pos.x+pos.w/2-mb.w/2):(pos.x-pos.w/2-mb.w/2)),_532=(_52c.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=_531+mb.w,endY=(_52c.charAt(0)=="T"?Math.min(view.t+view.h,_532+mb.h):pos.y),_533=endX-_531,_534=endY-_532,_535=(mb.w-_533)+(mb.h-_534);_529=(mb.w-this.arrowWidth)/2;}if(best==null||_535<best.overflow){best={corner:_52c,aroundCorner:_52b.aroundCorner,x:_531,y:_532,w:_533,h:_534,overflow:_535};}return !_535;},this);node.style.left=best.x+"px";node.style.top=best.y+"px";this.connectorNode.style.top="";this.connectorNode.style.left="";if(_52a){this.connectorNode.style.top=_52a+"px";}if(_529){this.connectorNode.style.left=_529+"px";}if(best.overflow&&_528){_528(node,best.aroundCorner,best.corner);}return best;}});var _536=null;function _517(_537,_538,_539,_53a){if(!_536){_536=new _518();}return _536.show(_537,_538,_539,_53a);};function _512(_53b){if(!_536){_536=new _518();}return _536.hide(_53b);};})();}if(!dojo._hasResource["dojox.charting.widget.Chart2D"]){dojo._hasResource["dojox.charting.widget.Chart2D"]=true;dojo.provide("dojox.charting.widget.Chart2D");(function(){var _53c,_53d,_53e,_53f,_540,_541=function(o){return o;},df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting,d=dojo;dojo.declare("dojox.charting.widget.Chart2D",dijit._Widget,{theme:null,margins:null,stroke:null,fill:null,buildRendering:function(){var n=this.domNode=this.srcNodeRef;var axes=d.query("> .axis",n).map(_53d).filter(_541),_542=d.query("> .plot",n).map(_53e).filter(_541),_543=d.query("> .action",n).map(_53f).filter(_541),_544=d.query("> .series",n).map(_540).filter(_541);n.innerHTML="";var c=this.chart=new dc.Chart2D(n,{margins:this.margins,stroke:this.stroke,fill:this.fill});if(this.theme){c.setTheme(this.theme);}axes.forEach(function(axis){c.addAxis(axis.name,axis.kwArgs);});_542.forEach(function(plot){c.addPlot(plot.name,plot.kwArgs);});this.actions=_543.map(function(_545){return new _545.action(c,_545.plot,_545.kwArgs);});var _546=df.foldl(_544,function(_547,_548){if(_548.type=="data"){c.addSeries(_548.name,_548.data,_548.kwArgs);_547=true;}else{c.addSeries(_548.name,[0],_548.kwArgs);var kw={};du.updateWithPattern(kw,_548.kwArgs,{"query":"","queryOptions":null,"start":0,"count":1},true);if(_548.kwArgs.sort){kw.sort=dojo.clone(_548.kwArgs.sort);}d.mixin(kw,{onComplete:function(data){var _549;if("valueFn" in _548.kwArgs){var fn=_548.kwArgs.valueFn;_549=d.map(data,function(x){return fn(_548.data.getValue(x,_548.field,0));});}else{_549=d.map(data,function(x){return _548.data.getValue(x,_548.field,0);});}c.addSeries(_548.name,_549,_548.kwArgs).render();}});_548.data.fetch(kw);}return _547;},false);if(_546){c.render();}},destroy:function(){this.chart.destroy();this.inherited(arguments);},resize:function(box){if(box.w>0&&box.h>0){dojo.marginBox(this.domNode,box);this.chart.resize();}}});_53c=function(node,type,kw){var dp=eval("("+type+".prototype.defaultParams)");var x,attr;for(x in dp){if(x in kw){continue;}attr=node.getAttribute(x);kw[x]=du.coerceType(dp[x],attr==null||typeof attr=="undefined"?dp[x]:attr);}var op=eval("("+type+".prototype.optionalParams)");for(x in op){if(x in kw){continue;}attr=node.getAttribute(x);if(attr!=null){kw[x]=du.coerceType(op[x],attr);}}};_53d=function(node){var name=node.getAttribute("name"),type=node.getAttribute("type");if(!name){return null;}var o={name:name,kwArgs:{}},kw=o.kwArgs;if(type){if(dc.axis2d[type]){type=dojox._scopeName+".charting.axis2d."+type;}var axis=eval("("+type+")");if(axis){kw.type=axis;}}else{type=dojox._scopeName+".charting.axis2d.Default";}_53c(node,type,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;};_53e=function(node){var name=node.getAttribute("name"),type=node.getAttribute("type");if(!name){return null;}var o={name:name,kwArgs:{}},kw=o.kwArgs;if(type){if(dc.plot2d[type]){type=dojox._scopeName+".charting.plot2d."+type;}var plot=eval("("+type+")");if(plot){kw.type=plot;}}else{type=dojox._scopeName+".charting.plot2d.Default";}_53c(node,type,kw);return o;};_53f=function(node){var plot=node.getAttribute("plot"),type=node.getAttribute("type");if(!plot){plot="default";}var o={plot:plot,kwArgs:{}},kw=o.kwArgs;if(type){if(dc.action2d[type]){type=dojox._scopeName+".charting.action2d."+type;}var _54a=eval("("+type+")");if(!_54a){return null;}o.action=_54a;}else{return null;}_53c(node,type,kw);return o;};_540=function(node){var ga=d.partial(d.attr,node);var name=ga("name");if(!name){return null;}var o={name:name,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?dojo.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=df.lambda(t);}return o;}return null;};})();}if(!dojo._hasResource["dojox.charting.themes.ET.greys"]){dojo._hasResource["dojox.charting.themes.ET.greys"]=true;dojo.provide("dojox.charting.themes.ET.greys");dojo.deprecated("dojox.charting.themes.ET.greys","1.3");(function(){var dxc=dojox.charting;dxc.themes.ET.greys=new dxc.Theme({antiAlias:false,chart:{stroke:null,fill:"inherit"},plotarea:{stroke:null,fill:"transparent"},axis:{stroke:{width:0},line:{width:0},majorTick:{color:"#666666",width:1,length:5},minorTick:{color:"black",width:0.5,length:2},font:"normal normal normal 8pt Tahoma",fontColor:"#999999"},series:{outline:{width:0,color:"black"},stroke:{width:1,color:"black"},fill:dojo.colorFromHex("#3b444b"),font:"normal normal normal 7pt Tahoma",fontColor:"#717171"},marker:{stroke:{width:1},fill:"#333",font:"normal normal normal 7pt Tahoma",fontColor:"#000"},colors:[dojo.colorFromHex("#8a8c8f"),dojo.colorFromHex("#4b4b4b"),dojo.colorFromHex("#3b444b"),dojo.colorFromHex("#2e2d30"),dojo.colorFromHex("#000000")]});})();}if(!dojo._hasResource["dojox.charting.widget.Sparkline"]){dojo._hasResource["dojox.charting.widget.Sparkline"]=true;dojo.provide("dojox.charting.widget.Sparkline");(function(){var d=dojo;dojo.declare("dojox.charting.widget.Sparkline",dojox.charting.widget.Chart2D,{theme:dojox.charting.themes.ET.greys,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||!d.query("> .axis, > .plot, > .action, > .series",n).length){var plot=document.createElement("div");d.attr(plot,{"class":"plot","name":"default","type":this.type});n.appendChild(plot);var _54b=document.createElement("div");d.attr(_54b,{"class":"series",plot:"default",name:this.name,start:this.start,count:this.count,valueFn:this.valueFn});d.forEach(["store","field","query","queryOptions","sort","data"],function(i){if(this[i].length){d.attr(_54b,i,this[i]);}},this);n.appendChild(_54b);}this.inherited(arguments);}});})();}if(!dojo._hasResource["dojox.charting.widget.Legend"]){dojo._hasResource["dojox.charting.widget.Legend"]=true;dojo.provide("dojox.charting.widget.Legend");dojo.declare("dojox.charting.widget.Legend",[dijit._Widget,dijit._Templated],{chartRef:"",horizontal:true,swatchSize:18,templateString:"<table dojoAttachPoint='legendNode' class='dojoxLegendNode'><tbody dojoAttachPoint='legendBody'></tbody></table>",legendNode:null,legendBody:null,postCreate:function(){if(!this.chart){if(!this.chartRef){return;}this.chart=dijit.byId(this.chartRef);if(!this.chart){var node=dojo.byId(this.chartRef);if(node){this.chart=dijit.byNode(node);}else{return;}}this.series=this.chart.chart.series;}else{this.series=this.chart.series;}this.refresh();},refresh:function(){var df=dojox.lang.functional;if(this._surfaces){dojo.forEach(this._surfaces,function(_54c){_54c.destroy();});}this._surfaces=[];while(this.legendBody.lastChild){dojo.destroy(this.legendBody.lastChild);}if(this.horizontal){dojo.addClass(this.legendNode,"dojoxLegendHorizontal");this._tr=dojo.doc.createElement("tr");this.legendBody.appendChild(this._tr);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 _54d=df.map(t.run.data,"Math.max(x, 0)");if(df.every(_54d,"<= 0")){return;}var _54e=df.map(_54d,"/this",df.foldl(_54d,"+",0));dojo.forEach(_54e,function(x,i){this._addLabel(t.dyn[i],t._getLabel(x*100)+"%");},this);}else{dojo.forEach(t.run.data,function(x,i){this._addLabel(t.dyn[i],x.legend||x.text||x.y);},this);}}else{dojo.forEach(s,function(x){this._addLabel(x.dyn,x.legend||x.name);},this);}},_addLabel:function(dyn,_54f){var icon=dojo.doc.createElement("td"),text=dojo.doc.createElement("td"),div=dojo.doc.createElement("div");dojo.addClass(icon,"dojoxLegendIcon");dojo.addClass(text,"dojoxLegendText");div.style.width=this.swatchSize+"px";div.style.height=this.swatchSize+"px";icon.appendChild(div);if(this._tr){this._tr.appendChild(icon);this._tr.appendChild(text);if(++this._inrow===this.horizontal){this._tr=dojo.doc.createElement("tr");this.legendBody.appendChild(this._tr);this._inrow=0;}}else{var tr=dojo.doc.createElement("tr");this.legendBody.appendChild(tr);tr.appendChild(icon);tr.appendChild(text);}this._makeIcon(div,dyn);text.innerHTML=String(_54f);},_makeIcon:function(div,dyn){var mb={h:this.swatchSize,w:this.swatchSize};var _550=dojox.gfx.createSurface(div,mb.w,mb.h);this._surfaces.push(_550);if(dyn.fill){_550.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){_550.createLine(line).setStroke(dyn.stroke);}if(dyn.marker){var c={x:mb.w/2,y:mb.h/2};if(dyn.stroke){_550.createPath({path:"M"+c.x+" "+c.y+" "+dyn.marker}).setFill(dyn.stroke.color).setStroke(dyn.stroke);}else{_550.createPath({path:"M"+c.x+" "+c.y+" "+dyn.marker}).setFill(dyn.color).setStroke(dyn.color);}}}else{_550.createRect({x:2,y:2,width:mb.w-4,height:mb.h-4}).setStroke("black");_550.createLine({x1:2,y1:2,x2:mb.w-2,y2:mb.h-2}).setStroke("black");_550.createLine({x1:2,y1:mb.h-2,x2:mb.w-2,y2:2}).setStroke("black");}}}});}dojo.i18n._preloadLocalizations("dojox.charting.widget.nls.Chart2D",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nb","nl","nl-nl","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);
